@qlover/create-app 0.3.7 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/index.js +2418 -1
  3. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -1,2 +1,2419 @@
1
1
  #!/usr/bin/env node
2
- var e=Object.create,t=Object.defineProperty,s=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,r=Object.getPrototypeOf,n=Object.prototype.hasOwnProperty,i=(e=>"undefined"!=typeof require?require:"undefined"!=typeof Proxy?new Proxy(e,{get:(e,t)=>("undefined"!=typeof require?require:e)[t]}):e)((function(e){if("undefined"!=typeof require)return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')})),u=(e,t)=>function(){return t||(0,e[o(e)[0]])((t={exports:{}}).exports,t),t.exports},a=(i,u,a)=>(a=null!=i?e(r(i)):{},((e,r,i,u)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let a of o(r))n.call(e,a)||a===i||t(e,a,{get:()=>r[a],enumerable:!(u=s(r,a))||u.enumerable});return e})(!u&&i&&i.__esModule?a:t(a,"default",{value:i,enumerable:!0}),i)),l=u({"../../node_modules/.pnpm/commander@13.1.0/node_modules/commander/lib/error.js"(e){var t=class extends Error{constructor(e,t,s){super(s),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=t,this.exitCode=e,this.nestedError=void 0}};e.CommanderError=t,e.InvalidArgumentError=class extends t{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}}}),D=u({"../../node_modules/.pnpm/commander@13.1.0/node_modules/commander/lib/argument.js"(e){var{InvalidArgumentError:t}=l();e.Argument=class{constructor(e,t){switch(this.description=t||"",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}this._name.length>3&&"..."===this._name.slice(-3)&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,t){return t!==this.defaultValue&&Array.isArray(t)?t.concat(e):[e]}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(e,s)=>{if(!this.argChoices.includes(e))throw new t(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(e,s):e},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}},e.humanReadableArgName=function(e){const t=e.name()+(!0===e.variadic?"...":"");return e.required?"<"+t+">":"["+t+"]"}}}),h=u({"../../node_modules/.pnpm/commander@13.1.0/node_modules/commander/lib/help.js"(e){var{humanReadableArgName:t}=D();function s(e){return e.replace(/\x1b\[\d*(;\d*)*m/g,"")}e.Help=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(e){this.helpWidth=this.helpWidth??e.helpWidth??80}visibleCommands(e){const t=e.commands.filter((e=>!e._hidden)),s=e._getHelpCommand();return s&&!s._hidden&&t.push(s),this.sortSubcommands&&t.sort(((e,t)=>e.name().localeCompare(t.name()))),t}compareOptions(e,t){const s=e=>e.short?e.short.replace(/^-/,""):e.long.replace(/^--/,"");return s(e).localeCompare(s(t))}visibleOptions(e){const t=e.options.filter((e=>!e.hidden)),s=e._getHelpOption();if(s&&!s.hidden){const o=s.short&&e._findOption(s.short),r=s.long&&e._findOption(s.long);o||r?s.long&&!r?t.push(e.createOption(s.long,s.description)):s.short&&!o&&t.push(e.createOption(s.short,s.description)):t.push(s)}return this.sortOptions&&t.sort(this.compareOptions),t}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];const t=[];for(let s=e.parent;s;s=s.parent){const e=s.options.filter((e=>!e.hidden));t.push(...e)}return this.sortOptions&&t.sort(this.compareOptions),t}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach((t=>{t.description=t.description||e._argsDescription[t.name()]||""})),e.registeredArguments.find((e=>e.description))?e.registeredArguments:[]}subcommandTerm(e){const s=e.registeredArguments.map((e=>t(e))).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(s?" "+s:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,t){return t.visibleCommands(e).reduce(((e,s)=>Math.max(e,this.displayWidth(t.styleSubcommandTerm(t.subcommandTerm(s))))),0)}longestOptionTermLength(e,t){return t.visibleOptions(e).reduce(((e,s)=>Math.max(e,this.displayWidth(t.styleOptionTerm(t.optionTerm(s))))),0)}longestGlobalOptionTermLength(e,t){return t.visibleGlobalOptions(e).reduce(((e,s)=>Math.max(e,this.displayWidth(t.styleOptionTerm(t.optionTerm(s))))),0)}longestArgumentTermLength(e,t){return t.visibleArguments(e).reduce(((e,s)=>Math.max(e,this.displayWidth(t.styleArgumentTerm(t.argumentTerm(s))))),0)}commandUsage(e){let t=e._name;e._aliases[0]&&(t=t+"|"+e._aliases[0]);let s="";for(let t=e.parent;t;t=t.parent)s=t.name()+" "+s;return s+t+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){const t=[];if(e.argChoices&&t.push(`choices: ${e.argChoices.map((e=>JSON.stringify(e))).join(", ")}`),void 0!==e.defaultValue){(e.required||e.optional||e.isBoolean()&&"boolean"==typeof e.defaultValue)&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`)}return void 0!==e.presetArg&&e.optional&&t.push(`preset: ${JSON.stringify(e.presetArg)}`),void 0!==e.envVar&&t.push(`env: ${e.envVar}`),t.length>0?`${e.description} (${t.join(", ")})`:e.description}argumentDescription(e){const t=[];if(e.argChoices&&t.push(`choices: ${e.argChoices.map((e=>JSON.stringify(e))).join(", ")}`),void 0!==e.defaultValue&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),t.length>0){const s=`(${t.join(", ")})`;return e.description?`${e.description} ${s}`:s}return e.description}formatHelp(e,t){const s=t.padWidth(e,t),o=t.helpWidth??80;function r(e,o){return t.formatItem(e,s,o,t)}let n=[`${t.styleTitle("Usage:")} ${t.styleUsage(t.commandUsage(e))}`,""];const i=t.commandDescription(e);i.length>0&&(n=n.concat([t.boxWrap(t.styleCommandDescription(i),o),""]));const u=t.visibleArguments(e).map((e=>r(t.styleArgumentTerm(t.argumentTerm(e)),t.styleArgumentDescription(t.argumentDescription(e)))));u.length>0&&(n=n.concat([t.styleTitle("Arguments:"),...u,""]));const a=t.visibleOptions(e).map((e=>r(t.styleOptionTerm(t.optionTerm(e)),t.styleOptionDescription(t.optionDescription(e)))));if(a.length>0&&(n=n.concat([t.styleTitle("Options:"),...a,""])),t.showGlobalOptions){const s=t.visibleGlobalOptions(e).map((e=>r(t.styleOptionTerm(t.optionTerm(e)),t.styleOptionDescription(t.optionDescription(e)))));s.length>0&&(n=n.concat([t.styleTitle("Global Options:"),...s,""]))}const l=t.visibleCommands(e).map((e=>r(t.styleSubcommandTerm(t.subcommandTerm(e)),t.styleSubcommandDescription(t.subcommandDescription(e)))));return l.length>0&&(n=n.concat([t.styleTitle("Commands:"),...l,""])),n.join("\n")}displayWidth(e){return s(e).length}styleTitle(e){return e}styleUsage(e){return e.split(" ").map((e=>"[options]"===e?this.styleOptionText(e):"[command]"===e?this.styleSubcommandText(e):"["===e[0]||"<"===e[0]?this.styleArgumentText(e):this.styleCommandText(e))).join(" ")}styleCommandDescription(e){return this.styleDescriptionText(e)}styleOptionDescription(e){return this.styleDescriptionText(e)}styleSubcommandDescription(e){return this.styleDescriptionText(e)}styleArgumentDescription(e){return this.styleDescriptionText(e)}styleDescriptionText(e){return e}styleOptionTerm(e){return this.styleOptionText(e)}styleSubcommandTerm(e){return e.split(" ").map((e=>"[options]"===e?this.styleOptionText(e):"["===e[0]||"<"===e[0]?this.styleArgumentText(e):this.styleSubcommandText(e))).join(" ")}styleArgumentTerm(e){return this.styleArgumentText(e)}styleOptionText(e){return e}styleArgumentText(e){return e}styleSubcommandText(e){return e}styleCommandText(e){return e}padWidth(e,t){return Math.max(t.longestOptionTermLength(e,t),t.longestGlobalOptionTermLength(e,t),t.longestSubcommandTermLength(e,t),t.longestArgumentTermLength(e,t))}preformatted(e){return/\n[^\S\r\n]/.test(e)}formatItem(e,t,s,o){const r=" ".repeat(2);if(!s)return r+e;const n=e.padEnd(t+e.length-o.displayWidth(e)),i=(this.helpWidth??80)-t-2-2;let u;if(i<this.minWidthToWrap||o.preformatted(s))u=s;else{u=o.boxWrap(s,i).replace(/\n/g,"\n"+" ".repeat(t+2))}return r+n+" ".repeat(2)+u.replace(/\n/g,`\n${r}`)}boxWrap(e,t){if(t<this.minWidthToWrap)return e;const s=e.split(/\r\n|\n/),o=/[\s]*[^\s]+/g,r=[];return s.forEach((e=>{const s=e.match(o);if(null===s)return void r.push("");let n=[s.shift()],i=this.displayWidth(n[0]);s.forEach((e=>{const s=this.displayWidth(e);if(i+s<=t)return n.push(e),void(i+=s);r.push(n.join(""));const o=e.trimStart();n=[o],i=this.displayWidth(o)})),r.push(n.join(""))})),r.join("\n")}},e.stripColor=s}}),d=u({"../../node_modules/.pnpm/commander@13.1.0/node_modules/commander/lib/option.js"(e){var{InvalidArgumentError:t}=l();function s(e){return e.split("-").reduce(((e,t)=>e+t[0].toUpperCase()+t.slice(1)))}e.Option=class{constructor(e,t){this.flags=e,this.description=t||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;const s=function(e){let t,s;const o=/^-[^-]$/,r=/^--[^-]/,n=e.split(/[ |,]+/).concat("guard");o.test(n[0])&&(t=n.shift());r.test(n[0])&&(s=n.shift());!t&&o.test(n[0])&&(t=n.shift());!t&&r.test(n[0])&&(t=s,s=n.shift());if(n[0].startsWith("-")){const t=n[0],s=`option creation failed due to '${t}' in option flags '${e}'`;if(/^-[^-][^-]/.test(t))throw new Error(`${s}\n- a short flag is a single dash and a single character\n - either use a single dash and a single character (for a short flag)\n - or use a double dash for a long option (and can have two, like '--ws, --workspace')`);if(o.test(t))throw new Error(`${s}\n- too many short flags`);if(r.test(t))throw new Error(`${s}\n- too many long flags`);throw new Error(`${s}\n- unrecognised flag format`)}if(void 0===t&&void 0===s)throw new Error(`option creation failed due to no flags found in '${e}'.`);return{shortFlag:t,longFlag:s}}(e);this.short=s.shortFlag,this.long=s.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=[],this.implied=void 0}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let t=e;return"string"==typeof e&&(t={[e]:!0}),this.implied=Object.assign(this.implied||{},t),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,t){return t!==this.defaultValue&&Array.isArray(t)?t.concat(e):[e]}choices(e){return this.argChoices=e.slice(),this.parseArg=(e,s)=>{if(!this.argChoices.includes(e))throw new t(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(e,s):e},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?s(this.name().replace(/^no-/,"")):s(this.name())}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},e.DualOptions=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach((e=>{e.negate?this.negativeOptions.set(e.attributeName(),e):this.positiveOptions.set(e.attributeName(),e)})),this.negativeOptions.forEach(((e,t)=>{this.positiveOptions.has(t)&&this.dualOptions.add(t)}))}valueFromOption(e,t){const s=t.attributeName();if(!this.dualOptions.has(s))return!0;const o=this.negativeOptions.get(s).presetArg,r=void 0!==o&&o;return t.negate===(r===e)}}}}),p=u({"../../node_modules/.pnpm/commander@13.1.0/node_modules/commander/lib/suggestSimilar.js"(e){e.suggestSimilar=function(e,t){if(!t||0===t.length)return"";t=Array.from(new Set(t));const s=e.startsWith("--");s&&(e=e.slice(2),t=t.map((e=>e.slice(2))));let o=[],r=3;return t.forEach((t=>{if(t.length<=1)return;const s=function(e,t){if(Math.abs(e.length-t.length)>3)return Math.max(e.length,t.length);const s=[];for(let t=0;t<=e.length;t++)s[t]=[t];for(let e=0;e<=t.length;e++)s[0][e]=e;for(let o=1;o<=t.length;o++)for(let r=1;r<=e.length;r++){let n=1;n=e[r-1]===t[o-1]?0:1,s[r][o]=Math.min(s[r-1][o]+1,s[r][o-1]+1,s[r-1][o-1]+n),r>1&&o>1&&e[r-1]===t[o-2]&&e[r-2]===t[o-1]&&(s[r][o]=Math.min(s[r][o],s[r-2][o-2]+1))}return s[e.length][t.length]}(e,t),n=Math.max(e.length,t.length);(n-s)/n>.4&&(s<r?(r=s,o=[t]):s===r&&o.push(t))})),o.sort(((e,t)=>e.localeCompare(t))),s&&(o=o.map((e=>`--${e}`))),o.length>1?`\n(Did you mean one of ${o.join(", ")}?)`:1===o.length?`\n(Did you mean ${o[0]}?)`:""}}}),c=u({"../../node_modules/.pnpm/commander@13.1.0/node_modules/commander/lib/command.js"(e){var t=i("node:events").EventEmitter,s=i("node:child_process"),o=i("node:path"),r=i("node:fs"),n=i("node:process"),{Argument:u,humanReadableArgName:a}=D(),{CommanderError:c}=l(),{Help:m,stripColor:_}=h(),{Option:f,DualOptions:F}=d(),{suggestSimilar:g}=p();function C(e){return e.map((e=>{if(!e.startsWith("--inspect"))return e;let t,s,o="127.0.0.1",r="9229";return null!==(s=e.match(/^(--inspect(-brk)?)$/))?t=s[1]:null!==(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))?(t=s[1],/^\d+$/.test(s[3])?r=s[3]:o=s[3]):null!==(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))&&(t=s[1],o=s[3],r=s[4]),t&&"0"!==r?`${t}=${o}:${parseInt(r)+1}`:e}))}function E(){return!n.env.NO_COLOR&&"0"!==n.env.FORCE_COLOR&&"false"!==n.env.FORCE_COLOR&&(!(!n.env.FORCE_COLOR&&void 0===n.env.CLICOLOR_FORCE)||void 0)}e.Command=class e extends t{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,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._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:e=>n.stdout.write(e),writeErr:e=>n.stderr.write(e),outputError:(e,t)=>t(e),getOutHelpWidth:()=>n.stdout.isTTY?n.stdout.columns:void 0,getErrHelpWidth:()=>n.stderr.isTTY?n.stderr.columns:void 0,getOutHasColors:()=>E()??(n.stdout.isTTY&&n.stdout.hasColors?.()),getErrHasColors:()=>E()??(n.stderr.isTTY&&n.stderr.hasColors?.()),stripColor:e=>_(e)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={}}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._helpOption=e._helpOption,this._helpCommand=e._helpCommand,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}_getCommandAndAncestors(){const e=[];for(let t=this;t;t=t.parent)e.push(t);return e}command(e,t,s){let o=t,r=s;"object"==typeof o&&null!==o&&(r=o,o=null),r=r||{};const[,n,i]=e.match(/([^ ]+) *(.*)/),u=this.createCommand(n);return o&&(u.description(o),u._executableHandler=!0),r.isDefault&&(this._defaultCommandName=u._name),u._hidden=!(!r.noHelp&&!r.hidden),u._executableFile=r.executableFile||null,i&&u.arguments(i),this._registerCommand(u),u.parent=this,u.copyInheritedSettings(this),o?this:u}createCommand(t){return new e(t)}createHelp(){return Object.assign(new m,this.configureHelp())}configureHelp(e){return void 0===e?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return void 0===e?this._outputConfiguration:(Object.assign(this._outputConfiguration,e),this)}showHelpAfterError(e=!0){return"string"!=typeof e&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,t){if(!e._name)throw new Error("Command passed to .addCommand() must have a name\n- specify the name in Command constructor or using .name()");return(t=t||{}).isDefault&&(this._defaultCommandName=e._name),(t.noHelp||t.hidden)&&(e._hidden=!0),this._registerCommand(e),e.parent=this,e._checkForBrokenPassThrough(),this}createArgument(e,t){return new u(e,t)}argument(e,t,s,o){const r=this.createArgument(e,t);return"function"==typeof s?r.default(o).argParser(s):r.default(s),this.addArgument(r),this}arguments(e){return e.trim().split(/ +/).forEach((e=>{this.argument(e)})),this}addArgument(e){const t=this.registeredArguments.slice(-1)[0];if(t&&t.variadic)throw new Error(`only the last argument can be variadic '${t.name()}'`);if(e.required&&void 0!==e.defaultValue&&void 0===e.parseArg)throw new Error(`a default value for a required argument is never used: '${e.name()}'`);return this.registeredArguments.push(e),this}helpCommand(e,t){if("boolean"==typeof e)return this._addImplicitHelpCommand=e,this;e=e??"help [command]";const[,s,o]=e.match(/([^ ]+) *(.*)/),r=t??"display help for command",n=this.createCommand(s);return n.helpOption(!1),o&&n.arguments(o),r&&n.description(r),this._addImplicitHelpCommand=!0,this._helpCommand=n,this}addHelpCommand(e,t){return"object"!=typeof e?(this.helpCommand(e,t),this):(this._addImplicitHelpCommand=!0,this._helpCommand=e,this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(void 0===this._helpCommand&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(e,t){const s=["preSubcommand","preAction","postAction"];if(!s.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.\nExpecting one of '${s.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(t):this._lifeCycleHooks[e]=[t],this}exitOverride(e){return this._exitCallback=e||(e=>{if("commander.executeSubCommandAsync"!==e.code)throw e}),this}_exit(e,t,s){this._exitCallback&&this._exitCallback(new c(e,t,s)),n.exit(e)}action(e){return this._actionHandler=t=>{const s=this.registeredArguments.length,o=t.slice(0,s);return this._storeOptionsAsProperties?o[s]=this:o[s]=this.opts(),o.push(this),e.apply(this,o)},this}createOption(e,t){return new f(e,t)}_callParseArg(e,t,s,o){try{return e.parseArg(t,s)}catch(e){if("commander.invalidArgument"===e.code){const t=`${o} ${e.message}`;this.error(t,{exitCode:e.exitCode,code:e.code})}throw e}}_registerOption(e){const t=e.short&&this._findOption(e.short)||e.long&&this._findOption(e.long);if(t){const s=e.long&&this._findOption(e.long)?e.long:e.short;throw new Error(`Cannot add option '${e.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${s}'\n- already used by option '${t.flags}'`)}this.options.push(e)}_registerCommand(e){const t=e=>[e.name()].concat(e.aliases()),s=t(e).find((e=>this._findCommand(e)));if(s){const o=t(this._findCommand(s)).join("|"),r=t(e).join("|");throw new Error(`cannot add command '${r}' as already have command '${o}'`)}this.commands.push(e)}addOption(e){this._registerOption(e);const t=e.name(),s=e.attributeName();if(e.negate){const t=e.long.replace(/^--no-/,"--");this._findOption(t)||this.setOptionValueWithSource(s,void 0===e.defaultValue||e.defaultValue,"default")}else void 0!==e.defaultValue&&this.setOptionValueWithSource(s,e.defaultValue,"default");const o=(t,o,r)=>{null==t&&void 0!==e.presetArg&&(t=e.presetArg);const n=this.getOptionValue(s);null!==t&&e.parseArg?t=this._callParseArg(e,t,n,o):null!==t&&e.variadic&&(t=e._concatValue(t,n)),null==t&&(t=!e.negate&&(!(!e.isBoolean()&&!e.optional)||"")),this.setOptionValueWithSource(s,t,r)};return this.on("option:"+t,(t=>{const s=`error: option '${e.flags}' argument '${t}' is invalid.`;o(t,s,"cli")})),e.envVar&&this.on("optionEnv:"+t,(t=>{const s=`error: option '${e.flags}' value '${t}' from env '${e.envVar}' is invalid.`;o(t,s,"env")})),this}_optionEx(e,t,s,o,r){if("object"==typeof t&&t instanceof f)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");const n=this.createOption(t,s);if(n.makeOptionMandatory(!!e.mandatory),"function"==typeof o)n.default(r).argParser(o);else if(o instanceof RegExp){const e=o;o=(t,s)=>{const o=e.exec(t);return o?o[0]:s},n.default(r).argParser(o)}else n.default(o);return this.addOption(n)}option(e,t,s,o){return this._optionEx({},e,t,s,o)}requiredOption(e,t,s,o){return this._optionEx({mandatory:!0},e,t,s,o)}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){return this._passThroughOptions=!!e,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(e=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!e,this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,t){return this.setOptionValueWithSource(e,t,void 0)}setOptionValueWithSource(e,t,s){return this._storeOptionsAsProperties?this[e]=t:this._optionValues[e]=t,this._optionValueSources[e]=s,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let t;return this._getCommandAndAncestors().forEach((s=>{void 0!==s.getOptionValueSource(e)&&(t=s.getOptionValueSource(e))})),t}_prepareUserArgs(e,t){if(void 0!==e&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");if(t=t||{},void 0===e&&void 0===t.from){n.versions?.electron&&(t.from="electron");const e=n.execArgv??[];(e.includes("-e")||e.includes("--eval")||e.includes("-p")||e.includes("--print"))&&(t.from="eval")}let s;switch(void 0===e&&(e=n.argv),this.rawArgs=e.slice(),t.from){case void 0:case"node":this._scriptPath=e[1],s=e.slice(2);break;case"electron":n.defaultApp?(this._scriptPath=e[1],s=e.slice(2)):s=e.slice(1);break;case"user":s=e.slice(0);break;case"eval":s=e.slice(1);break;default:throw new Error(`unexpected parse option { from: '${t.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",s}parse(e,t){this._prepareForParse();const s=this._prepareUserArgs(e,t);return this._parseCommand([],s),this}async parseAsync(e,t){this._prepareForParse();const s=this._prepareUserArgs(e,t);return await this._parseCommand([],s),this}_prepareForParse(){null===this._savedState?this.saveStateBeforeParse():this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw new Error("Can not call parse again when storeOptionsAsProperties is true.\n- either make a new Command for each call to parse, or stop storing options as properties");this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(e,t,s){if(r.existsSync(e))return;throw new Error(`'${e}' does not exist\n - if '${s}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead\n - if the default executable name is not suitable, use the executableFile option to supply a custom name or path\n - ${t?`searched for local subcommand relative to directory '${t}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory"}`)}_executeSubCommand(e,t){t=t.slice();let i=!1;const u=[".js",".ts",".tsx",".mjs",".cjs"];function a(e,t){const s=o.resolve(e,t);if(r.existsSync(s))return s;if(u.includes(o.extname(t)))return;const n=u.find((e=>r.existsSync(`${s}${e}`)));return n?`${s}${n}`:void 0}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let l,D=e._executableFile||`${this._name}-${e._name}`,h=this._executableDir||"";if(this._scriptPath){let e;try{e=r.realpathSync(this._scriptPath)}catch{e=this._scriptPath}h=o.resolve(o.dirname(e),h)}if(h){let t=a(h,D);if(!t&&!e._executableFile&&this._scriptPath){const s=o.basename(this._scriptPath,o.extname(this._scriptPath));s!==this._name&&(t=a(h,`${s}-${e._name}`))}D=t||D}if(i=u.includes(o.extname(D)),"win32"!==n.platform?i?(t.unshift(D),t=C(n.execArgv).concat(t),l=s.spawn(n.argv[0],t,{stdio:"inherit"})):l=s.spawn(D,t,{stdio:"inherit"}):(this._checkForMissingExecutable(D,h,e._name),t.unshift(D),t=C(n.execArgv).concat(t),l=s.spawn(n.execPath,t,{stdio:"inherit"})),!l.killed){["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach((e=>{n.on(e,(()=>{!1===l.killed&&null===l.exitCode&&l.kill(e)}))}))}const d=this._exitCallback;l.on("close",(e=>{e=e??1,d?d(new c(e,"commander.executeSubCommandAsync","(close)")):n.exit(e)})),l.on("error",(t=>{if("ENOENT"===t.code)this._checkForMissingExecutable(D,h,e._name);else if("EACCES"===t.code)throw new Error(`'${D}' not executable`);if(d){const e=new c(1,"commander.executeSubCommandAsync","(error)");e.nestedError=t,d(e)}else n.exit(1)})),this.runningCommand=l}_dispatchSubcommand(e,t,s){const o=this._findCommand(e);let r;return o||this.help({error:!0}),o._prepareForParse(),r=this._chainOrCallSubCommandHook(r,o,"preSubcommand"),r=this._chainOrCall(r,(()=>{if(!o._executableHandler)return o._parseCommand(t,s);this._executeSubCommand(o,t.concat(s))})),r}_dispatchHelpCommand(e){e||this.help();const t=this._findCommand(e);return t&&!t._executableHandler&&t.help(),this._dispatchSubcommand(e,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach(((e,t)=>{e.required&&null==this.args[t]&&this.missingArgument(e.name())})),this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic||this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){const e=(e,t,s)=>{let o=t;if(null!==t&&e.parseArg){const r=`error: command-argument value '${t}' is invalid for argument '${e.name()}'.`;o=this._callParseArg(e,t,s,r)}return o};this._checkNumberOfArguments();const t=[];this.registeredArguments.forEach(((s,o)=>{let r=s.defaultValue;s.variadic?o<this.args.length?(r=this.args.slice(o),s.parseArg&&(r=r.reduce(((t,o)=>e(s,o,t)),s.defaultValue))):void 0===r&&(r=[]):o<this.args.length&&(r=this.args[o],s.parseArg&&(r=e(s,r,s.defaultValue))),t[o]=r})),this.processedArgs=t}_chainOrCall(e,t){return e&&e.then&&"function"==typeof e.then?e.then((()=>t())):t()}_chainOrCallHooks(e,t){let s=e;const o=[];return this._getCommandAndAncestors().reverse().filter((e=>void 0!==e._lifeCycleHooks[t])).forEach((e=>{e._lifeCycleHooks[t].forEach((t=>{o.push({hookedCommand:e,callback:t})}))})),"postAction"===t&&o.reverse(),o.forEach((e=>{s=this._chainOrCall(s,(()=>e.callback(e.hookedCommand,this)))})),s}_chainOrCallSubCommandHook(e,t,s){let o=e;return void 0!==this._lifeCycleHooks[s]&&this._lifeCycleHooks[s].forEach((e=>{o=this._chainOrCall(o,(()=>e(this,t)))})),o}_parseCommand(e,t){const s=this.parseOptions(t);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(s.operands),t=s.unknown,this.args=e.concat(t),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),t);if(this._getHelpCommand()&&e[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(t),this._dispatchSubcommand(this._defaultCommandName,e,t);!this.commands.length||0!==this.args.length||this._actionHandler||this._defaultCommandName||this.help({error:!0}),this._outputHelpIfRequested(s.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();const o=()=>{s.unknown.length>0&&this.unknownOption(s.unknown[0])},r=`command:${this.name()}`;if(this._actionHandler){let s;return o(),this._processArguments(),s=this._chainOrCallHooks(s,"preAction"),s=this._chainOrCall(s,(()=>this._actionHandler(this.processedArgs))),this.parent&&(s=this._chainOrCall(s,(()=>{this.parent.emit(r,e,t)}))),s=this._chainOrCallHooks(s,"postAction"),s}if(this.parent&&this.parent.listenerCount(r))o(),this._processArguments(),this.parent.emit(r,e,t);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,t);this.listenerCount("command:*")?this.emit("command:*",e,t):this.commands.length?this.unknownCommand():(o(),this._processArguments())}else this.commands.length?(o(),this.help({error:!0})):(o(),this._processArguments())}_findCommand(e){if(e)return this.commands.find((t=>t._name===e||t._aliases.includes(e)))}_findOption(e){return this.options.find((t=>t.is(e)))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((e=>{e.options.forEach((t=>{t.mandatory&&void 0===e.getOptionValue(t.attributeName())&&e.missingMandatoryOptionValue(t)}))}))}_checkForConflictingLocalOptions(){const e=this.options.filter((e=>{const t=e.attributeName();return void 0!==this.getOptionValue(t)&&"default"!==this.getOptionValueSource(t)}));e.filter((e=>e.conflictsWith.length>0)).forEach((t=>{const s=e.find((e=>t.conflictsWith.includes(e.attributeName())));s&&this._conflictingOption(t,s)}))}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((e=>{e._checkForConflictingLocalOptions()}))}parseOptions(e){const t=[],s=[];let o=t;const r=e.slice();function n(e){return e.length>1&&"-"===e[0]}let i=null;for(;r.length;){const e=r.shift();if("--"===e){o===s&&o.push(e),o.push(...r);break}if(!i||n(e)){if(i=null,n(e)){const t=this._findOption(e);if(t){if(t.required){const e=r.shift();void 0===e&&this.optionMissingArgument(t),this.emit(`option:${t.name()}`,e)}else if(t.optional){let e=null;r.length>0&&!n(r[0])&&(e=r.shift()),this.emit(`option:${t.name()}`,e)}else this.emit(`option:${t.name()}`);i=t.variadic?t:null;continue}}if(e.length>2&&"-"===e[0]&&"-"!==e[1]){const t=this._findOption(`-${e[1]}`);if(t){t.required||t.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${t.name()}`,e.slice(2)):(this.emit(`option:${t.name()}`),r.unshift(`-${e.slice(2)}`));continue}}if(/^--[^=]+=/.test(e)){const t=e.indexOf("="),s=this._findOption(e.slice(0,t));if(s&&(s.required||s.optional)){this.emit(`option:${s.name()}`,e.slice(t+1));continue}}if(n(e)&&(o=s),(this._enablePositionalOptions||this._passThroughOptions)&&0===t.length&&0===s.length){if(this._findCommand(e)){t.push(e),r.length>0&&s.push(...r);break}if(this._getHelpCommand()&&e===this._getHelpCommand().name()){t.push(e),r.length>0&&t.push(...r);break}if(this._defaultCommandName){s.push(e),r.length>0&&s.push(...r);break}}if(this._passThroughOptions){o.push(e),r.length>0&&o.push(...r);break}o.push(e)}else this.emit(`option:${i.name()}`,e)}return{operands:t,unknown:s}}opts(){if(this._storeOptionsAsProperties){const e={},t=this.options.length;for(let s=0;s<t;s++){const t=this.options[s].attributeName();e[t]=t===this._versionOptionName?this._version:this[t]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce(((e,t)=>Object.assign(e,t.opts())),{})}error(e,t){this._outputConfiguration.outputError(`${e}\n`,this._outputConfiguration.writeErr),"string"==typeof this._showHelpAfterError?this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`):this._showHelpAfterError&&(this._outputConfiguration.writeErr("\n"),this.outputHelp({error:!0}));const s=t||{},o=s.exitCode||1,r=s.code||"commander.error";this._exit(o,r,e)}_parseOptionsEnv(){this.options.forEach((e=>{if(e.envVar&&e.envVar in n.env){const t=e.attributeName();(void 0===this.getOptionValue(t)||["default","config","env"].includes(this.getOptionValueSource(t)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,n.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}}))}_parseOptionsImplied(){const e=new F(this.options),t=e=>void 0!==this.getOptionValue(e)&&!["default","implied"].includes(this.getOptionValueSource(e));this.options.filter((s=>void 0!==s.implied&&t(s.attributeName())&&e.valueFromOption(this.getOptionValue(s.attributeName()),s))).forEach((e=>{Object.keys(e.implied).filter((e=>!t(e))).forEach((t=>{this.setOptionValueWithSource(t,e.implied[t],"implied")}))}))}missingArgument(e){const t=`error: missing required argument '${e}'`;this.error(t,{code:"commander.missingArgument"})}optionMissingArgument(e){const t=`error: option '${e.flags}' argument missing`;this.error(t,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){const t=`error: required option '${e.flags}' not specified`;this.error(t,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,t){const s=e=>{const t=e.attributeName(),s=this.getOptionValue(t),o=this.options.find((e=>e.negate&&t===e.attributeName())),r=this.options.find((e=>!e.negate&&t===e.attributeName()));return o&&(void 0===o.presetArg&&!1===s||void 0!==o.presetArg&&s===o.presetArg)?o:r||e},o=e=>{const t=s(e),o=t.attributeName();return"env"===this.getOptionValueSource(o)?`environment variable '${t.envVar}'`:`option '${t.flags}'`},r=`error: ${o(e)} cannot be used with ${o(t)}`;this.error(r,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let t="";if(e.startsWith("--")&&this._showSuggestionAfterError){let s=[],o=this;do{const e=o.createHelp().visibleOptions(o).filter((e=>e.long)).map((e=>e.long));s=s.concat(e),o=o.parent}while(o&&!o._enablePositionalOptions);t=g(e,s)}const s=`error: unknown option '${e}'${t}`;this.error(s,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;const t=this.registeredArguments.length,s=1===t?"":"s",o=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${t} argument${s} but got ${e.length}.`;this.error(o,{code:"commander.excessArguments"})}unknownCommand(){const e=this.args[0];let t="";if(this._showSuggestionAfterError){const s=[];this.createHelp().visibleCommands(this).forEach((e=>{s.push(e.name()),e.alias()&&s.push(e.alias())})),t=g(e,s)}const s=`error: unknown command '${e}'${t}`;this.error(s,{code:"commander.unknownCommand"})}version(e,t,s){if(void 0===e)return this._version;this._version=e,t=t||"-V, --version",s=s||"output the version number";const o=this.createOption(t,s);return this._versionOptionName=o.attributeName(),this._registerOption(o),this.on("option:"+o.name(),(()=>{this._outputConfiguration.writeOut(`${e}\n`),this._exit(0,"commander.version",e)})),this}description(e,t){return void 0===e&&void 0===t?this._description:(this._description=e,t&&(this._argsDescription=t),this)}summary(e){return void 0===e?this._summary:(this._summary=e,this)}alias(e){if(void 0===e)return this._aliases[0];let t=this;if(0!==this.commands.length&&this.commands[this.commands.length-1]._executableHandler&&(t=this.commands[this.commands.length-1]),e===t._name)throw new Error("Command alias can't be the same as its name");const s=this.parent?._findCommand(e);if(s){const t=[s.name()].concat(s.aliases()).join("|");throw new Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${t}'`)}return t._aliases.push(e),this}aliases(e){return void 0===e?this._aliases:(e.forEach((e=>this.alias(e))),this)}usage(e){if(void 0===e){if(this._usage)return this._usage;const e=this.registeredArguments.map((e=>a(e)));return[].concat(this.options.length||null!==this._helpOption?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?e:[]).join(" ")}return this._usage=e,this}name(e){return void 0===e?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=o.basename(e,o.extname(e)),this}executableDir(e){return void 0===e?this._executableDir:(this._executableDir=e,this)}helpInformation(e){const t=this.createHelp(),s=this._getOutputContext(e);t.prepareContext({error:s.error,helpWidth:s.helpWidth,outputHasColors:s.hasColors});const o=t.formatHelp(this,t);return s.hasColors?o:this._outputConfiguration.stripColor(o)}_getOutputContext(e){const t=!!(e=e||{}).error;let s,o,r;t?(s=e=>this._outputConfiguration.writeErr(e),o=this._outputConfiguration.getErrHasColors(),r=this._outputConfiguration.getErrHelpWidth()):(s=e=>this._outputConfiguration.writeOut(e),o=this._outputConfiguration.getOutHasColors(),r=this._outputConfiguration.getOutHelpWidth());return{error:t,write:e=>(o||(e=this._outputConfiguration.stripColor(e)),s(e)),hasColors:o,helpWidth:r}}outputHelp(e){let t;"function"==typeof e&&(t=e,e=void 0);const s=this._getOutputContext(e),o={error:s.error,write:s.write,command:this};this._getCommandAndAncestors().reverse().forEach((e=>e.emit("beforeAllHelp",o))),this.emit("beforeHelp",o);let r=this.helpInformation({error:s.error});if(t&&(r=t(r),"string"!=typeof r&&!Buffer.isBuffer(r)))throw new Error("outputHelp callback must return a string or a Buffer");s.write(r),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",o),this._getCommandAndAncestors().forEach((e=>e.emit("afterAllHelp",o)))}helpOption(e,t){return"boolean"==typeof e?(this._helpOption=e?this._helpOption??void 0:null,this):(e=e??"-h, --help",t=t??"display help for command",this._helpOption=this.createOption(e,t),this)}_getHelpOption(){return void 0===this._helpOption&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(e){return this._helpOption=e,this}help(e){this.outputHelp(e);let t=Number(n.exitCode??0);0===t&&e&&"function"!=typeof e&&e.error&&(t=1),this._exit(t,"commander.help","(outputHelp)")}addHelpText(e,t){const s=["beforeAll","before","after","afterAll"];if(!s.includes(e))throw new Error(`Unexpected value for position to addHelpText.\nExpecting one of '${s.join("', '")}'`);const o=`${e}Help`;return this.on(o,(e=>{let s;s="function"==typeof t?t({error:e.error,command:e.command}):t,s&&e.write(`${s}\n`)})),this}_outputHelpIfRequested(e){const t=this._getHelpOption();t&&e.find((e=>t.is(e)))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}},e.useColor=E}}),m=u({"../../node_modules/.pnpm/commander@13.1.0/node_modules/commander/index.js"(e){var{Argument:t}=D(),{Command:s}=c(),{CommanderError:o,InvalidArgumentError:r}=l(),{Help:n}=h(),{Option:i}=d();e.program=new s,e.createCommand=e=>new s(e),e.createOption=(e,t)=>new i(e,t),e.createArgument=(e,s)=>new t(e,s),e.Command=s,e.Option=i,e.Argument=t,e.Help=n,e.CommanderError=o,e.InvalidArgumentError=r,e.InvalidOptionArgumentError=r}}),_=u({"../../node_modules/.pnpm/cli-spinners@2.9.2/node_modules/cli-spinners/spinners.json"(e,t){t.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:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},dots13:{interval:80,frames:["⣼","⣹","⢻","⠿","⡟","⣏","⣧","⣶"]},dots8Bit:{interval:80,frames:["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},sand:{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:["◢","◣","◤","◥"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},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:["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]},dwarfFortress:{interval:80,frames:[" ██████£££ ","☺██████£££ ","☺██████£££ ","☺▓█████£££ ","☺▓█████£££ ","☺▒█████£££ ","☺▒█████£££ ","☺░█████£££ ","☺░█████£££ ","☺ █████£££ "," ☺█████£££ "," ☺█████£££ "," ☺▓████£££ "," ☺▓████£££ "," ☺▒████£££ "," ☺▒████£££ "," ☺░████£££ "," ☺░████£££ "," ☺ ████£££ "," ☺████£££ "," ☺████£££ "," ☺▓███£££ "," ☺▓███£££ "," ☺▒███£££ "," ☺▒███£££ "," ☺░███£££ "," ☺░███£££ "," ☺ ███£££ "," ☺███£££ "," ☺███£££ "," ☺▓██£££ "," ☺▓██£££ "," ☺▒██£££ "," ☺▒██£££ "," ☺░██£££ "," ☺░██£££ "," ☺ ██£££ "," ☺██£££ "," ☺██£££ "," ☺▓█£££ "," ☺▓█£££ "," ☺▒█£££ "," ☺▒█£££ "," ☺░█£££ "," ☺░█£££ "," ☺ █£££ "," ☺█£££ "," ☺█£££ "," ☺▓£££ "," ☺▓£££ "," ☺▒£££ "," ☺▒£££ "," ☺░£££ "," ☺░£££ "," ☺ £££ "," ☺£££ "," ☺£££ "," ☺▓££ "," ☺▓££ "," ☺▒££ "," ☺▒££ "," ☺░££ "," ☺░££ "," ☺ ££ "," ☺££ "," ☺££ "," ☺▓£ "," ☺▓£ "," ☺▒£ "," ☺▒£ "," ☺░£ "," ☺░£ "," ☺ £ "," ☺£ "," ☺£ "," ☺▓ "," ☺▓ "," ☺▒ "," ☺▒ "," ☺░ "," ☺░ "," ☺ "," ☺ &"," ☺ ☼&"," ☺ ☼ &"," ☺☼ &"," ☺☼ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & ","‼ & "," & "," & "," & ░ "," & ▒ "," & ▓ "," & £ "," & ░£ "," & ▒£ "," & ▓£ "," & ££ "," & ░££ "," & ▒££ ","& ▓££ ","& £££ "," ░£££ "," ▒£££ "," ▓£££ "," █£££ "," ░█£££ "," ▒█£££ "," ▓█£££ "," ██£££ "," ░██£££ "," ▒██£££ "," ▓██£££ "," ███£££ "," ░███£££ "," ▒███£££ "," ▓███£££ "," ████£££ "," ░████£££ "," ▒████£££ "," ▓████£££ "," █████£££ "," ░█████£££ "," ▒█████£££ "," ▓█████£££ "," ██████£££ "," ██████£££ "]}}}}),f=u({"../../node_modules/.pnpm/cli-spinners@2.9.2/node_modules/cli-spinners/index.js"(e,t){var s=Object.assign({},_()),o=Object.keys(s);Object.defineProperty(s,"random",{get(){const e=Math.floor(Math.random()*o.length),t=o[e];return s[t]}}),t.exports=s}}),F=u({"../../node_modules/.pnpm/ignore@7.0.4/node_modules/ignore/index.js"(e,t){function s(e){return Array.isArray(e)?e:[e]}var o=/^\s+$/,r=/(?:[^\\]|^)\\$/,n=/^\\!/,i=/^\\#/,u=/\r?\n/g,a=/^\.{0,2}\/|^\.{1,2}$/,l=/\/$/,D="/",h="node-ignore";"undefined"!=typeof Symbol&&(h=Symbol.for("node-ignore"));var d=h,p=(e,t,s)=>(Object.defineProperty(e,t,{value:s}),s),c=/([0-z])-([0-z])/g,m=()=>!1,_=[[/^\uFEFF/,()=>""],[/((?:\\\\)*?)(\\?\s+)$/,(e,t,s)=>t+(0===s.indexOf("\\")?" ":"")],[/(\\+?)\s/g,(e,t)=>{const{length:s}=t;return t.slice(0,s-s%2)+" "}],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,s)=>t+6<s.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,s)=>t+s.replace(/\\\*/g,"[^\\/]*")],[/\\\\\\(?=[$.|*+(){^])/g,()=>"\\"],[/\\\\/g,()=>"\\"],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,s,o,r)=>"\\"===t?`\\[${s}${(e=>{const{length:t}=e;return e.slice(0,t-t%2)})(o)}${r}`:"]"===r&&o.length%2==0?`[${(e=>e.replace(c,((e,t,s)=>t.charCodeAt(0)<=s.charCodeAt(0)?e:"")))(s)}${o}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`]],f=/(^|\\\/)?\\\*$/,F="regex",g="checkRegex",C={[F]:(e,t)=>`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`,[g]:(e,t)=>`${t?`${t}[^/]*`:"[^/]*"}(?=$|\\/$)`},E=e=>"string"==typeof e,v=class{constructor(e,t,s,o,r,n){this.pattern=e,this.mark=t,this.negative=r,p(this,"body",s),p(this,"ignoreCase",o),p(this,"regexPrefix",n)}get regex(){const e="_"+F;return this[e]?this[e]:this._make(F,e)}get checkRegex(){const e="_"+g;return this[e]?this[e]:this._make(g,e)}_make(e,t){const s=this.regexPrefix.replace(f,C[e]),o=this.ignoreCase?new RegExp(s,"i"):new RegExp(s);return p(this,t,o)}},b=({pattern:e,mark:t},s)=>{let o=!1,r=e;0===r.indexOf("!")&&(o=!0,r=r.substr(1)),r=r.replace(n,"!").replace(i,"#");const u=(e=>_.reduce(((t,[s,o])=>t.replace(s,o.bind(e))),e))(r);return new v(e,t,r,s,o,u)},y=class{constructor(e){this._ignoreCase=e,this._rules=[]}_add(e){if(e&&e[d])return this._rules=this._rules.concat(e._rules._rules),void(this._added=!0);if(E(e)&&(e={pattern:e}),(e=>e&&E(e)&&!o.test(e)&&!r.test(e)&&0!==e.indexOf("#"))(e.pattern)){const t=b(e,this._ignoreCase);this._added=!0,this._rules.push(t)}}add(e){return this._added=!1,s(E(e)?(e=>e.split(u).filter(Boolean))(e):e).forEach(this._add,this),this._added}test(e,t,s){let o,r=!1,n=!1;this._rules.forEach((i=>{const{negative:u}=i;if(n===u&&r!==n||u&&!r&&!n&&!t)return;i[s].test(e)&&(r=!u,n=u,o=u?undefined:i)}));const i={ignored:r,unignored:n};return o&&(i.rule=o),i}},x=(e,t)=>{throw new t(e)},A=(e,t,s)=>{if(!E(e))return s(`path must be a string, but got \`${t}\``,TypeError);if(!e)return s("path must not be empty",TypeError);if(A.isNotRelative(e)){return s(`path should be a ${"`path.relative()`d"} string, but got "${t}"`,RangeError)}return!0},O=e=>a.test(e);A.isNotRelative=O,A.convert=e=>e;var B=class{constructor({ignorecase:e=!0,ignoreCase:t=e,allowRelativePaths:s=!1}={}){p(this,d,!0),this._rules=new y(t),this._strictPathCheck=!s,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(e){return this._rules.add(e)&&this._initCache(),this}addPattern(e){return this.add(e)}_test(e,t,s,o){const r=e&&A.convert(e);return A(r,e,this._strictPathCheck?x:m),this._t(r,t,s,o)}checkIgnore(e){if(!l.test(e))return this.test(e);const t=e.split(D).filter(Boolean);if(t.pop(),t.length){const e=this._t(t.join(D)+D,this._testCache,!0,t);if(e.ignored)return e}return this._rules.test(e,!1,g)}_t(e,t,s,o){if(e in t)return t[e];if(o||(o=e.split(D).filter(Boolean)),o.pop(),!o.length)return t[e]=this._rules.test(e,s,F);const r=this._t(o.join(D)+D,t,s,o);return t[e]=r.ignored?r:this._rules.test(e,s,F)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return s(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}},w=e=>new B(e);if("undefined"!=typeof process&&(process.env&&process.env.IGNORE_TEST_WIN32||"win32"===process.platform)){const e=e=>/^\\\\\?\\/.test(e)||/["<>|\u0000-\u001F]+/u.test(e)?e:e.replace(/\\/g,"/");A.convert=e;const t=/^[a-z]:\//i;A.isNotRelative=e=>t.test(e)||O(e)}t.exports=w,w.default=w,t.exports.isPathValid=e=>A(e&&A.convert(e),e,m)}}),g=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js"(e,t){t.exports=function(){this.__data__=[],this.size=0}}}),C=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js"(e,t){t.exports=function(e,t){return e===t||e!=e&&t!=t}}}),E=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js"(e,t){var s=C();t.exports=function(e,t){for(var o=e.length;o--;)if(s(e[o][0],t))return o;return-1}}}),v=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js"(e,t){var s=E(),o=Array.prototype.splice;t.exports=function(e){var t=this.__data__,r=s(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}}}),b=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js"(e,t){var s=E();t.exports=function(e){var t=this.__data__,o=s(t,e);return o<0?void 0:t[o][1]}}}),y=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js"(e,t){var s=E();t.exports=function(e){return s(this.__data__,e)>-1}}}),x=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js"(e,t){var s=E();t.exports=function(e,t){var o=this.__data__,r=s(o,e);return r<0?(++this.size,o.push([e,t])):o[r][1]=t,this}}}),A=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js"(e,t){var s=g(),o=v(),r=b(),n=y(),i=x();function u(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var o=e[t];this.set(o[0],o[1])}}u.prototype.clear=s,u.prototype.delete=o,u.prototype.get=r,u.prototype.has=n,u.prototype.set=i,t.exports=u}}),O=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js"(e,t){var s=A();t.exports=function(){this.__data__=new s,this.size=0}}}),B=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js"(e,t){t.exports=function(e){var t=this.__data__,s=t.delete(e);return this.size=t.size,s}}}),w=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js"(e,t){t.exports=function(e){return this.__data__.get(e)}}}),T=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js"(e,t){t.exports=function(e){return this.__data__.has(e)}}}),j=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js"(e,t){var s="object"==typeof global&&global&&global.Object===Object&&global;t.exports=s}}),S=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js"(e,t){var s=j(),o="object"==typeof self&&self&&self.Object===Object&&self,r=s||o||Function("return this")();t.exports=r}}),P=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js"(e,t){var s=S().Symbol;t.exports=s}}),$=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js"(e,t){var s=P(),o=Object.prototype,r=o.hasOwnProperty,n=o.toString,i=s?s.toStringTag:void 0;t.exports=function(e){var t=r.call(e,i),s=e[i];try{e[i]=void 0;var o=!0}catch(e){}var u=n.call(e);return o&&(t?e[i]=s:delete e[i]),u}}}),k=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js"(e,t){var s=Object.prototype.toString;t.exports=function(e){return s.call(e)}}}),I=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js"(e,t){var s=P(),o=$(),r=k(),n=s?s.toStringTag:void 0;t.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":n&&n in Object(e)?o(e):r(e)}}}),R=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js"(e,t){t.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}}),H=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js"(e,t){var s=I(),o=R();t.exports=function(e){if(!o(e))return!1;var t=s(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}}}),V=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_coreJsData.js"(e,t){var s=S()["__core-js_shared__"];t.exports=s}}),M=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isMasked.js"(e,t){var s,o=V(),r=(s=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"";t.exports=function(e){return!!r&&r in e}}}),N=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js"(e,t){var s=Function.prototype.toString;t.exports=function(e){if(null!=e){try{return s.call(e)}catch(e){}try{return e+""}catch(e){}}return""}}}),L=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js"(e,t){var s=H(),o=M(),r=R(),n=N(),i=/^\[object .+?Constructor\]$/,u=Function.prototype,a=Object.prototype,l=u.toString,D=a.hasOwnProperty,h=RegExp("^"+l.call(D).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(e){return!(!r(e)||o(e))&&(s(e)?h:i).test(n(e))}}}),W=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getValue.js"(e,t){t.exports=function(e,t){return null==e?void 0:e[t]}}}),G=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js"(e,t){var s=L(),o=W();t.exports=function(e,t){var r=o(e,t);return s(r)?r:void 0}}}),U=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js"(e,t){var s=G()(S(),"Map");t.exports=s}}),q=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js"(e,t){var s=G()(Object,"create");t.exports=s}}),z=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashClear.js"(e,t){var s=q();t.exports=function(){this.__data__=s?s(null):{},this.size=0}}}),Y=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashDelete.js"(e,t){t.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}}}),J=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashGet.js"(e,t){var s=q(),o=Object.prototype.hasOwnProperty;t.exports=function(e){var t=this.__data__;if(s){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}}}),K=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashHas.js"(e,t){var s=q(),o=Object.prototype.hasOwnProperty;t.exports=function(e){var t=this.__data__;return s?void 0!==t[e]:o.call(t,e)}}}),Z=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashSet.js"(e,t){var s=q();t.exports=function(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=s&&void 0===t?"__lodash_hash_undefined__":t,this}}}),Q=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Hash.js"(e,t){var s=z(),o=Y(),r=J(),n=K(),i=Z();function u(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var o=e[t];this.set(o[0],o[1])}}u.prototype.clear=s,u.prototype.delete=o,u.prototype.get=r,u.prototype.has=n,u.prototype.set=i,t.exports=u}}),X=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js"(e,t){var s=Q(),o=A(),r=U();t.exports=function(){this.size=0,this.__data__={hash:new s,map:new(r||o),string:new s}}}}),ee=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKeyable.js"(e,t){t.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}}}),te=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js"(e,t){var s=ee();t.exports=function(e,t){var o=e.__data__;return s(t)?o["string"==typeof t?"string":"hash"]:o.map}}}),se=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js"(e,t){var s=te();t.exports=function(e){var t=s(this,e).delete(e);return this.size-=t?1:0,t}}}),oe=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js"(e,t){var s=te();t.exports=function(e){return s(this,e).get(e)}}}),re=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js"(e,t){var s=te();t.exports=function(e){return s(this,e).has(e)}}}),ne=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js"(e,t){var s=te();t.exports=function(e,t){var o=s(this,e),r=o.size;return o.set(e,t),this.size+=o.size==r?0:1,this}}}),ie=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js"(e,t){var s=X(),o=se(),r=oe(),n=re(),i=ne();function u(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var o=e[t];this.set(o[0],o[1])}}u.prototype.clear=s,u.prototype.delete=o,u.prototype.get=r,u.prototype.has=n,u.prototype.set=i,t.exports=u}}),ue=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js"(e,t){var s=A(),o=U(),r=ie();t.exports=function(e,t){var n=this.__data__;if(n instanceof s){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new r(i)}return n.set(e,t),this.size=n.size,this}}}),ae=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js"(e,t){var s=A(),o=O(),r=B(),n=w(),i=T(),u=ue();function a(e){var t=this.__data__=new s(e);this.size=t.size}a.prototype.clear=o,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=i,a.prototype.set=u,t.exports=a}}),le=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js"(e,t){var s=G(),o=function(){try{var e=s(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();t.exports=o}}),De=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js"(e,t){var s=le();t.exports=function(e,t,o){"__proto__"==t&&s?s(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}}}),he=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignMergeValue.js"(e,t){var s=De(),o=C();t.exports=function(e,t,r){(void 0!==r&&!o(e[t],r)||void 0===r&&!(t in e))&&s(e,t,r)}}}),de=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createBaseFor.js"(e,t){t.exports=function(e){return function(t,s,o){for(var r=-1,n=Object(t),i=o(t),u=i.length;u--;){var a=i[e?u:++r];if(!1===s(n[a],a,n))break}return t}}}}),pe=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFor.js"(e,t){var s=de()();t.exports=s}}),ce=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneBuffer.js"(e,t){var s=S(),o="object"==typeof e&&e&&!e.nodeType&&e,r=o&&"object"==typeof t&&t&&!t.nodeType&&t,n=r&&r.exports===o?s.Buffer:void 0,i=n?n.allocUnsafe:void 0;t.exports=function(e,t){if(t)return e.slice();var s=e.length,o=i?i(s):new e.constructor(s);return e.copy(o),o}}}),me=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js"(e,t){var s=S().Uint8Array;t.exports=s}}),_e=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneArrayBuffer.js"(e,t){var s=me();t.exports=function(e){var t=new e.constructor(e.byteLength);return new s(t).set(new s(e)),t}}}),fe=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneTypedArray.js"(e,t){var s=_e();t.exports=function(e,t){var o=t?s(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}}}),Fe=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyArray.js"(e,t){t.exports=function(e,t){var s=-1,o=e.length;for(t||(t=Array(o));++s<o;)t[s]=e[s];return t}}}),ge=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseCreate.js"(e,t){var s=R(),o=Object.create,r=function(){function e(){}return function(t){if(!s(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();t.exports=r}}),Ce=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js"(e,t){t.exports=function(e,t){return function(s){return e(t(s))}}}}),Ee=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getPrototype.js"(e,t){var s=Ce()(Object.getPrototypeOf,Object);t.exports=s}}),ve=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js"(e,t){var s=Object.prototype;t.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||s)}}}),be=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_initCloneObject.js"(e,t){var s=ge(),o=Ee(),r=ve();t.exports=function(e){return"function"!=typeof e.constructor||r(e)?{}:s(o(e))}}}),ye=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js"(e,t){t.exports=function(e){return null!=e&&"object"==typeof e}}}),xe=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsArguments.js"(e,t){var s=I(),o=ye();t.exports=function(e){return o(e)&&"[object Arguments]"==s(e)}}}),Ae=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArguments.js"(e,t){var s=xe(),o=ye(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,u=s(function(){return arguments}())?s:function(e){return o(e)&&n.call(e,"callee")&&!i.call(e,"callee")};t.exports=u}}),Oe=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js"(e,t){var s=Array.isArray;t.exports=s}}),Be=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js"(e,t){t.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}}),we=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js"(e,t){var s=H(),o=Be();t.exports=function(e){return null!=e&&o(e.length)&&!s(e)}}}),Te=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js"(e,t){var s=we(),o=ye();t.exports=function(e){return o(e)&&s(e)}}}),je=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js"(e,t){t.exports=function(){return!1}}}),Se=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isBuffer.js"(e,t){var s=S(),o=je(),r="object"==typeof e&&e&&!e.nodeType&&e,n=r&&"object"==typeof t&&t&&!t.nodeType&&t,i=n&&n.exports===r?s.Buffer:void 0,u=(i?i.isBuffer:void 0)||o;t.exports=u}}),Pe=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js"(e,t){var s=I(),o=Ee(),r=ye(),n=Function.prototype,i=Object.prototype,u=n.toString,a=i.hasOwnProperty,l=u.call(Object);t.exports=function(e){if(!r(e)||"[object Object]"!=s(e))return!1;var t=o(e);if(null===t)return!0;var n=a.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==l}}}),$e=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsTypedArray.js"(e,t){var s=I(),o=Be(),r=ye(),n={};n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0,n["[object Arguments]"]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n["[object Map]"]=n["[object Number]"]=n["[object Object]"]=n["[object RegExp]"]=n["[object Set]"]=n["[object String]"]=n["[object WeakMap]"]=!1,t.exports=function(e){return r(e)&&o(e.length)&&!!n[s(e)]}}}),ke=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js"(e,t){t.exports=function(e){return function(t){return e(t)}}}}),Ie=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nodeUtil.js"(e,t){var s=j(),o="object"==typeof e&&e&&!e.nodeType&&e,r=o&&"object"==typeof t&&t&&!t.nodeType&&t,n=r&&r.exports===o&&s.process,i=function(){try{var e=r&&r.require&&r.require("util").types;return e||n&&n.binding&&n.binding("util")}catch(e){}}();t.exports=i}}),Re=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isTypedArray.js"(e,t){var s=$e(),o=ke(),r=Ie(),n=r&&r.isTypedArray,i=n?o(n):s;t.exports=i}}),He=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_safeGet.js"(e,t){t.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}}}),Ve=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js"(e,t){var s=De(),o=C(),r=Object.prototype.hasOwnProperty;t.exports=function(e,t,n){var i=e[t];r.call(e,t)&&o(i,n)&&(void 0!==n||t in e)||s(e,t,n)}}}),Me=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyObject.js"(e,t){var s=Ve(),o=De();t.exports=function(e,t,r,n){var i=!r;r||(r={});for(var u=-1,a=t.length;++u<a;){var l=t[u],D=n?n(r[l],e[l],l,r,e):void 0;void 0===D&&(D=e[l]),i?o(r,l,D):s(r,l,D)}return r}}}),Ne=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js"(e,t){t.exports=function(e,t){for(var s=-1,o=Array(e);++s<e;)o[s]=t(s);return o}}}),Le=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js"(e,t){var s=/^(?:0|[1-9]\d*)$/;t.exports=function(e,t){var o=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==o||"symbol"!=o&&s.test(e))&&e>-1&&e%1==0&&e<t}}}),We=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js"(e,t){var s=Ne(),o=Ae(),r=Oe(),n=Se(),i=Le(),u=Re(),a=Object.prototype.hasOwnProperty;t.exports=function(e,t){var l=r(e),D=!l&&o(e),h=!l&&!D&&n(e),d=!l&&!D&&!h&&u(e),p=l||D||h||d,c=p?s(e.length,String):[],m=c.length;for(var _ in e)!t&&!a.call(e,_)||p&&("length"==_||h&&("offset"==_||"parent"==_)||d&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||i(_,m))||c.push(_);return c}}}),Ge=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.js"(e,t){t.exports=function(e){var t=[];if(null!=e)for(var s in Object(e))t.push(s);return t}}}),Ue=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeysIn.js"(e,t){var s=R(),o=ve(),r=Ge(),n=Object.prototype.hasOwnProperty;t.exports=function(e){if(!s(e))return r(e);var t=o(e),i=[];for(var u in e)("constructor"!=u||!t&&n.call(e,u))&&i.push(u);return i}}}),qe=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keysIn.js"(e,t){var s=We(),o=Ue(),r=we();t.exports=function(e){return r(e)?s(e,!0):o(e)}}}),ze=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toPlainObject.js"(e,t){var s=Me(),o=qe();t.exports=function(e){return s(e,o(e))}}}),Ye=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMergeDeep.js"(e,t){var s=he(),o=ce(),r=fe(),n=Fe(),i=be(),u=Ae(),a=Oe(),l=Te(),D=Se(),h=H(),d=R(),p=Pe(),c=Re(),m=He(),_=ze();t.exports=function(e,t,f,F,g,C,E){var v=m(e,f),b=m(t,f),y=E.get(b);if(y)s(e,f,y);else{var x=C?C(v,b,f+"",e,t,E):void 0,A=void 0===x;if(A){var O=a(b),B=!O&&D(b),w=!O&&!B&&c(b);x=b,O||B||w?a(v)?x=v:l(v)?x=n(v):B?(A=!1,x=o(b,!0)):w?(A=!1,x=r(b,!0)):x=[]:p(b)||u(b)?(x=v,u(v)?x=_(v):d(v)&&!h(v)||(x=i(b))):A=!1}A&&(E.set(b,x),g(x,b,F,C,E),E.delete(b)),s(e,f,x)}}}}),Je=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMerge.js"(e,t){var s=ae(),o=he(),r=pe(),n=Ye(),i=R(),u=qe(),a=He();t.exports=function e(t,l,D,h,d){t!==l&&r(l,(function(r,u){if(d||(d=new s),i(r))n(t,l,u,D,e,h,d);else{var p=h?h(a(t,u),r,u+"",t,l,d):void 0;void 0===p&&(p=r),o(t,u,p)}}),u)}}}),Ke=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js"(e,t){t.exports=function(e){return e}}}),Ze=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_apply.js"(e,t){t.exports=function(e,t,s){switch(s.length){case 0:return e.call(t);case 1:return e.call(t,s[0]);case 2:return e.call(t,s[0],s[1]);case 3:return e.call(t,s[0],s[1],s[2])}return e.apply(t,s)}}}),Qe=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overRest.js"(e,t){var s=Ze(),o=Math.max;t.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var n=arguments,i=-1,u=o(n.length-t,0),a=Array(u);++i<u;)a[i]=n[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=n[i];return l[t]=r(a),s(e,this,l)}}}}),Xe=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js"(e,t){t.exports=function(e){return function(){return e}}}}),et=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSetToString.js"(e,t){var s=Xe(),o=le(),r=Ke(),n=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:s(t),writable:!0})}:r;t.exports=n}}),tt=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_shortOut.js"(e,t){var s=Date.now;t.exports=function(e){var t=0,o=0;return function(){var r=s(),n=16-(r-o);if(o=r,n>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}}}),st=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToString.js"(e,t){var s=et(),o=tt()(s);t.exports=o}}),ot=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js"(e,t){var s=Ke(),o=Qe(),r=st();t.exports=function(e,t){return r(o(e,t,s),e+"")}}}),rt=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js"(e,t){var s=C(),o=we(),r=Le(),n=R();t.exports=function(e,t,i){if(!n(i))return!1;var u=typeof t;return!!("number"==u?o(i)&&r(t,i.length):"string"==u&&t in i)&&s(i[t],e)}}}),nt=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createAssigner.js"(e,t){var s=ot(),o=rt();t.exports=function(e){return s((function(t,s){var r=-1,n=s.length,i=n>1?s[n-1]:void 0,u=n>2?s[2]:void 0;for(i=e.length>3&&"function"==typeof i?(n--,i):void 0,u&&o(s[0],s[1],u)&&(i=n<3?void 0:i,n=1),t=Object(t);++r<n;){var a=s[r];a&&e(t,a,r,i)}return t}))}}}),it=u({"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/merge.js"(e,t){var s=Je(),o=nt()((function(e,t,o){s(e,t,o)}));t.exports=o}});import{join as ut}from"path";import{existsSync as at}from"fs";var lt=a(m(),1),{program:Dt,createCommand:ht,createArgument:dt,createOption:pt,CommanderError:ct,InvalidArgumentError:mt,InvalidOptionArgumentError:_t,Command:ft,Argument:Ft,Option:gt,Help:Ct}=lt.default;import{FeScriptContext as Et}from"@qlover/scripts-context";import vt from"inquirer";import{join as bt}from"path";import yt from"node:process";var xt=(e=0)=>t=>`[${t+e}m`,At=(e=0)=>t=>`[${38+e};5;${t}m`,Ot=(e=0)=>(t,s,o)=>`[${38+e};2;${t};${s};${o}m`,Bt={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],gray:[90,39],grey:[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],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(Bt.modifier),Object.keys(Bt.color),Object.keys(Bt.bgColor);var wt=function(){const e=new Map;for(const[t,s]of Object.entries(Bt)){for(const[t,o]of Object.entries(s))Bt[t]={open:`[${o[0]}m`,close:`[${o[1]}m`},s[t]=Bt[t],e.set(o[0],o[1]);Object.defineProperty(Bt,t,{value:s,enumerable:!1})}return Object.defineProperty(Bt,"codes",{value:e,enumerable:!1}),Bt.color.close="",Bt.bgColor.close="",Bt.color.ansi=xt(),Bt.color.ansi256=At(),Bt.color.ansi16m=Ot(),Bt.bgColor.ansi=xt(10),Bt.bgColor.ansi256=At(10),Bt.bgColor.ansi16m=Ot(10),Object.defineProperties(Bt,{rgbToAnsi256:{value:(e,t,s)=>e===t&&t===s?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(s/255*5),enumerable:!1},hexToRgb:{value(e){const t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[s]=t;3===s.length&&(s=[...s].map((e=>e+e)).join(""));const o=Number.parseInt(s,16);return[o>>16&255,o>>8&255,255&o]},enumerable:!1},hexToAnsi256:{value:e=>Bt.rgbToAnsi256(...Bt.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return e-8+90;let t,s,o;if(e>=232)t=(10*(e-232)+8)/255,s=t,o=t;else{const r=(e-=16)%36;t=Math.floor(e/36)/5,s=Math.floor(r/6)/5,o=r%6/5}const r=2*Math.max(t,s,o);if(0===r)return 30;let n=30+(Math.round(o)<<2|Math.round(s)<<1|Math.round(t));return 2===r&&(n+=60),n},enumerable:!1},rgbToAnsi:{value:(e,t,s)=>Bt.ansi256ToAnsi(Bt.rgbToAnsi256(e,t,s)),enumerable:!1},hexToAnsi:{value:e=>Bt.ansi256ToAnsi(Bt.hexToAnsi256(e)),enumerable:!1}}),Bt}();import Tt from"node:process";import jt from"node:os";import St from"node:tty";function Pt(e,t=(globalThis.Deno?globalThis.Deno.args:Tt.argv)){const s=e.startsWith("-")?"":1===e.length?"-":"--",o=t.indexOf(s+e),r=t.indexOf("--");return-1!==o&&(-1===r||o<r)}var $t,{env:kt}=Tt;function It(e,{streamIsTTY:t,sniffFlags:s=!0}={}){const o=function(){if("FORCE_COLOR"in kt)return"true"===kt.FORCE_COLOR?1:"false"===kt.FORCE_COLOR?0:0===kt.FORCE_COLOR.length?1:Math.min(Number.parseInt(kt.FORCE_COLOR,10),3)}();void 0!==o&&($t=o);const r=s?$t:o;if(0===r)return 0;if(s){if(Pt("color=16m")||Pt("color=full")||Pt("color=truecolor"))return 3;if(Pt("color=256"))return 2}if("TF_BUILD"in kt&&"AGENT_NAME"in kt)return 1;if(e&&!t&&void 0===r)return 0;const n=r||0;if("dumb"===kt.TERM)return n;if("win32"===Tt.platform){const e=jt.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in kt)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((e=>e in kt))?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((e=>e in kt))||"codeship"===kt.CI_NAME?1:n;if("TEAMCITY_VERSION"in kt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(kt.TEAMCITY_VERSION)?1:0;if("truecolor"===kt.COLORTERM)return 3;if("xterm-kitty"===kt.TERM)return 3;if("TERM_PROGRAM"in kt){const e=Number.parseInt((kt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(kt.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(kt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(kt.TERM)||"COLORTERM"in kt?1:n}function Rt(e,t={}){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(It(e,{streamIsTTY:e&&e.isTTY,...t}))}Pt("no-color")||Pt("no-colors")||Pt("color=false")||Pt("color=never")?$t=0:(Pt("color")||Pt("colors")||Pt("color=true")||Pt("color=always"))&&($t=1);var Ht={stdout:Rt({isTTY:St.isatty(1)}),stderr:Rt({isTTY:St.isatty(2)})};function Vt(e,t,s){let o=e.indexOf(t);if(-1===o)return e;const r=t.length;let n=0,i="";do{i+=e.slice(n,o)+t+s,n=o+r,o=e.indexOf(t,n)}while(-1!==o);return i+=e.slice(n),i}var{stdout:Mt,stderr:Nt}=Ht,Lt=Symbol("GENERATOR"),Wt=Symbol("STYLER"),Gt=Symbol("IS_EMPTY"),Ut=["ansi","ansi","ansi256","ansi16m"],qt=Object.create(null),zt=e=>{const t=(...e)=>e.join(" ");return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const s=Mt?Mt.level:0;e.level=void 0===t.level?s:t.level})(t,e),Object.setPrototypeOf(t,Yt.prototype),t};function Yt(e){return zt(e)}Object.setPrototypeOf(Yt.prototype,Function.prototype);for(const[e,t]of Object.entries(wt))qt[e]={get(){const s=Qt(this,Zt(t.open,t.close,this[Wt]),this[Gt]);return Object.defineProperty(this,e,{value:s}),s}};qt.visible={get(){const e=Qt(this,this[Wt],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Jt=(e,t,s,...o)=>"rgb"===e?"ansi16m"===t?wt[s].ansi16m(...o):"ansi256"===t?wt[s].ansi256(wt.rgbToAnsi256(...o)):wt[s].ansi(wt.rgbToAnsi(...o)):"hex"===e?Jt("rgb",t,s,...wt.hexToRgb(...o)):wt[s][e](...o);for(const e of["rgb","hex","ansi256"]){qt[e]={get(){const{level:t}=this;return function(...s){const o=Zt(Jt(e,Ut[t],"color",...s),wt.color.close,this[Wt]);return Qt(this,o,this[Gt])}}};qt["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...s){const o=Zt(Jt(e,Ut[t],"bgColor",...s),wt.bgColor.close,this[Wt]);return Qt(this,o,this[Gt])}}}}var Kt=Object.defineProperties((()=>{}),{...qt,level:{enumerable:!0,get(){return this[Lt].level},set(e){this[Lt].level=e}}}),Zt=(e,t,s)=>{let o,r;return void 0===s?(o=e,r=t):(o=s.openAll+e,r=t+s.closeAll),{open:e,close:t,openAll:o,closeAll:r,parent:s}},Qt=(e,t,s)=>{const o=(...e)=>Xt(o,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(o,Kt),o[Lt]=e,o[Wt]=t,o[Gt]=s,o},Xt=(e,t)=>{if(e.level<=0||!t)return e[Gt]?"":t;let s=e[Wt];if(void 0===s)return t;const{openAll:o,closeAll:r}=s;if(t.includes(""))for(;void 0!==s;)t=Vt(t,s.close,s.open),s=s.parent;const n=t.indexOf("\n");return-1!==n&&(t=function(e,t,s,o){let r=0,n="";do{const i="\r"===e[o-1];n+=e.slice(r,i?o-1:o)+t+(i?"\r\n":"\n")+s,r=o+1,o=e.indexOf("\n",r)}while(-1!==o);return n+=e.slice(r),n}(t,r,o,n)),o+t+r};Object.defineProperties(Yt.prototype,qt);var es=Yt(),ts=(Yt({level:Nt?Nt.level:0}),es);import ss from"node:process";import os from"node:process";var rs=(e,t,s,o)=>{if("length"===s||"prototype"===s)return;if("arguments"===s||"caller"===s)return;const r=Object.getOwnPropertyDescriptor(e,s),n=Object.getOwnPropertyDescriptor(t,s);!ns(r,n)&&o||Object.defineProperty(e,s,n)},ns=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},is=(e,t)=>`/* Wrapped ${e}*/\n${t}`,us=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),as=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name");function ls(e,t,{ignoreNonConfigurable:s=!1}={}){const{name:o}=e;for(const o of Reflect.ownKeys(t))rs(e,t,o,s);return((e,t)=>{const s=Object.getPrototypeOf(t);s!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,s)})(e,t),((e,t,s)=>{const o=""===s?"":`with ${s.trim()}() `,r=is.bind(null,o,t.toString());Object.defineProperty(r,"name",as);const{writable:n,enumerable:i,configurable:u}=us;Object.defineProperty(e,"toString",{value:r,writable:n,enumerable:i,configurable:u})})(e,t,o),e}var Ds=new WeakMap,hs=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let s,o=0;const r=e.displayName||e.name||"<anonymous>",n=function(...i){if(Ds.set(n,++o),1===o)s=e.apply(this,i),e=void 0;else if(!0===t.throw)throw new Error(`Function \`${r}\` can only be called once`);return s};return ls(n,e),Ds.set(n,o),n};hs.callCount=e=>{if(!Ds.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Ds.get(e)};var ds=hs,ps=[];ps.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&ps.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&ps.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var cs,ms=e=>!!e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on,_s=Symbol.for("signal-exit emitter"),fs=globalThis,Fs=Object.defineProperty.bind(Object),gs=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(fs[_s])return fs[_s];Fs(fs,_s,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){const s=this.listeners[e],o=s.indexOf(t);-1!==o&&(0===o&&1===s.length?s.length=0:s.splice(o,1))}emit(e,t,s){if(this.emitted[e])return!1;this.emitted[e]=!0;let o=!1;for(const r of this.listeners[e])o=!0===r(t,s)||o;return"exit"===e&&(o=this.emit("afterExit",t,s)||o),o}},Cs=class{},Es=globalThis.process,{onExit:vs,load:bs,unload:ys}=(cs=ms(Es)?new class extends Cs{#e="win32"===Es.platform?"SIGINT":"SIGHUP";#t=new gs;#s;#o;#r;#n={};#i=!1;constructor(e){super(),this.#s=e,this.#n={};for(const t of ps)this.#n[t]=()=>{const s=this.#s.listeners(t);let{count:o}=this.#t;const r=e;if("object"==typeof r.__signal_exit_emitter__&&"number"==typeof r.__signal_exit_emitter__.count&&(o+=r.__signal_exit_emitter__.count),s.length===o){this.unload();const s=this.#t.emit("exit",null,t),o="SIGHUP"===t?this.#e:t;s||e.kill(e.pid,o)}};this.#r=e.reallyExit,this.#o=e.emit}onExit(e,t){if(!ms(this.#s))return()=>{};!1===this.#i&&this.load();const s=t?.alwaysLast?"afterExit":"exit";return this.#t.on(s,e),()=>{this.#t.removeListener(s,e),0===this.#t.listeners.exit.length&&0===this.#t.listeners.afterExit.length&&this.unload()}}load(){if(!this.#i){this.#i=!0,this.#t.count+=1;for(const e of ps)try{const t=this.#n[e];t&&this.#s.on(e,t)}catch(e){}this.#s.emit=(e,...t)=>this.#u(e,...t),this.#s.reallyExit=e=>this.#a(e)}}unload(){this.#i&&(this.#i=!1,ps.forEach((e=>{const t=this.#n[e];if(!t)throw new Error("Listener not defined for signal: "+e);try{this.#s.removeListener(e,t)}catch(e){}})),this.#s.emit=this.#o,this.#s.reallyExit=this.#r,this.#t.count-=1)}#a(e){return ms(this.#s)?(this.#s.exitCode=e||0,this.#t.emit("exit",this.#s.exitCode,null),this.#r.call(this.#s,this.#s.exitCode)):0}#u(e,...t){const s=this.#o;if("exit"===e&&ms(this.#s)){"number"==typeof t[0]&&(this.#s.exitCode=t[0]);const o=s.call(this.#s,e,...t);return this.#t.emit("exit",this.#s.exitCode,null),o}return s.call(this.#s,e,...t)}}(Es):new class extends Cs{onExit(){return()=>{}}load(){}unload(){}},{onExit:(e,t)=>cs.onExit(e,t),load:()=>cs.load(),unload:()=>cs.unload()}),xs=os.stderr.isTTY?os.stderr:os.stdout.isTTY?os.stdout:void 0,As=xs?ds((()=>{vs((()=>{xs.write("[?25h")}),{alwaysLast:!0})})):()=>{},Os=!1,Bs={show:(e=ss.stderr)=>{e.isTTY&&(Os=!1,e.write("[?25h"))},hide:(e=ss.stderr)=>{e.isTTY&&(As(),Os=!0,e.write("[?25l"))},toggle:(e,t)=>{void 0!==e&&(Os=e),Os?Bs.show(t):Bs.hide(t)}},ws=Bs,Ts=a(f(),1);import js from"node:process";var Ss={info:ts.blue("ℹ"),success:ts.green("✔"),warning:ts.yellow("⚠"),error:ts.red("✖")},Ps={info:ts.blue("i"),success:ts.green("√"),warning:ts.yellow("‼"),error:ts.red("×")},$s=("win32"!==js.platform?"linux"!==js.env.TERM:Boolean(js.env.CI)||Boolean(js.env.WT_SESSION)||Boolean(js.env.TERMINUS_SUBLIME)||"{cmd::Cmder}"===js.env.ConEmuTask||"Terminus-Sublime"===js.env.TERM_PROGRAM||"vscode"===js.env.TERM_PROGRAM||"xterm-256color"===js.env.TERM||"alacritty"===js.env.TERM||"JetBrains-JediTerm"===js.env.TERMINAL_EMULATOR)?Ss:Ps;var ks=function({onlyFirst:e=!1}={}){const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}();function Is(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(ks,"")}function Rs(e,{ambiguousAsWide:t=!1}={}){return function(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}(e),12288===(s=e)||s>=65281&&s<=65376||s>=65504&&s<=65510||function(e){return e>=4352&&e<=4447||8986===e||8987===e||9001===e||9002===e||e>=9193&&e<=9196||9200===e||9203===e||9725===e||9726===e||9748===e||9749===e||e>=9776&&e<=9783||e>=9800&&e<=9811||9855===e||e>=9866&&e<=9871||9875===e||9889===e||9898===e||9899===e||9917===e||9918===e||9924===e||9925===e||9934===e||9940===e||9962===e||9970===e||9971===e||9973===e||9978===e||9981===e||9989===e||9994===e||9995===e||10024===e||10060===e||10062===e||e>=10067&&e<=10069||10071===e||e>=10133&&e<=10135||10160===e||10175===e||11035===e||11036===e||11088===e||11093===e||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||94192===e||94193===e||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||110589===e||110590===e||e>=110592&&e<=110882||110898===e||e>=110928&&e<=110930||110933===e||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||126980===e||127183===e||127374===e||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||127568===e||127569===e||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||127988===e||e>=127992&&e<=128062||128064===e||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||128378===e||128405===e||128406===e||128420===e||e>=128507&&e<=128591||e>=128640&&e<=128709||128716===e||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||128747===e||128748===e||e>=128756&&e<=128764||e>=128992&&e<=129003||129008===e||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}(e)||t&&function(e){return 161===e||164===e||167===e||168===e||170===e||173===e||174===e||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||198===e||208===e||215===e||216===e||e>=222&&e<=225||230===e||e>=232&&e<=234||236===e||237===e||240===e||242===e||243===e||e>=247&&e<=250||252===e||254===e||257===e||273===e||275===e||283===e||294===e||295===e||299===e||e>=305&&e<=307||312===e||e>=319&&e<=322||324===e||e>=328&&e<=331||333===e||338===e||339===e||358===e||359===e||363===e||462===e||464===e||466===e||468===e||470===e||472===e||474===e||476===e||593===e||609===e||708===e||711===e||e>=713&&e<=715||717===e||720===e||e>=728&&e<=731||733===e||735===e||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||1025===e||e>=1040&&e<=1103||1105===e||8208===e||e>=8211&&e<=8214||8216===e||8217===e||8220===e||8221===e||e>=8224&&e<=8226||e>=8228&&e<=8231||8240===e||8242===e||8243===e||8245===e||8251===e||8254===e||8308===e||8319===e||e>=8321&&e<=8324||8364===e||8451===e||8453===e||8457===e||8467===e||8470===e||8481===e||8482===e||8486===e||8491===e||8531===e||8532===e||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||8585===e||e>=8592&&e<=8601||8632===e||8633===e||8658===e||8660===e||8679===e||8704===e||8706===e||8707===e||8711===e||8712===e||8715===e||8719===e||8721===e||8725===e||8730===e||e>=8733&&e<=8736||8739===e||8741===e||e>=8743&&e<=8748||8750===e||e>=8756&&e<=8759||8764===e||8765===e||8776===e||8780===e||8786===e||8800===e||8801===e||e>=8804&&e<=8807||8810===e||8811===e||8814===e||8815===e||8834===e||8835===e||8838===e||8839===e||8853===e||8857===e||8869===e||8895===e||8978===e||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||9632===e||9633===e||e>=9635&&e<=9641||9650===e||9651===e||9654===e||9655===e||9660===e||9661===e||9664===e||9665===e||e>=9670&&e<=9672||9675===e||e>=9678&&e<=9681||e>=9698&&e<=9701||9711===e||9733===e||9734===e||9737===e||9742===e||9743===e||9756===e||9758===e||9792===e||9794===e||9824===e||9825===e||e>=9827&&e<=9829||e>=9831&&e<=9834||9836===e||9837===e||9839===e||9886===e||9887===e||9919===e||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||9955===e||9960===e||9961===e||e>=9963&&e<=9969||9972===e||e>=9974&&e<=9977||9979===e||9980===e||9982===e||9983===e||10045===e||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||65533===e||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||127375===e||127376===e||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}(e)?2:1;var s}var Hs=new Intl.Segmenter,Vs=/^\p{Default_Ignorable_Code_Point}$/u;function Ms(e,t={}){if("string"!=typeof e||0===e.length)return 0;const{ambiguousIsNarrow:s=!0,countAnsiEscapeCodes:o=!1}=t;if(o||(e=Is(e)),0===e.length)return 0;let r=0;const n={ambiguousAsWide:!s};for(const{segment:t}of Hs.segment(e)){const e=t.codePointAt(0);e<=31||e>=127&&e<=159||(e>=8203&&e<=8207||65279===e||e>=768&&e<=879||e>=6832&&e<=6911||e>=7616&&e<=7679||e>=8400&&e<=8447||e>=65056&&e<=65071||e>=55296&&e<=57343||e>=65024&&e<=65039||Vs.test(t)||(/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g.test(t)?r+=2:r+=Rs(e,n)))}return r}import Ns from"node:process";import Ls from"node:process";var Ws=new class{#l=0;start(){this.#l++,1===this.#l&&this.#D()}stop(){if(this.#l<=0)throw new Error("`stop` called more times than `start`");this.#l--,0===this.#l&&this.#h()}#D(){"win32"!==Ls.platform&&Ls.stdin.isTTY&&(Ls.stdin.setRawMode(!0),Ls.stdin.on("data",this.#d),Ls.stdin.resume())}#h(){Ls.stdin.isTTY&&(Ls.stdin.off("data",this.#d),Ls.stdin.pause(),Ls.stdin.setRawMode(!1))}#d(e){3===e[0]&&Ls.emit("SIGINT")}},Gs=(a(f(),1),class{#p=0;#c=!1;#m=0;#_=-1;#f=0;#F;#g;#C;#E;#v;#b;#y;#x;#A;#O;#B;color;constructor(e){"string"==typeof e&&(e={text:e}),this.#F={color:"cyan",stream:yt.stderr,discardStdin:!0,hideCursor:!0,...e},this.color=this.#F.color,this.spinner=this.#F.spinner,this.#v=this.#F.interval,this.#C=this.#F.stream,this.#b="boolean"==typeof this.#F.isEnabled?this.#F.isEnabled:function({stream:e=process.stdout}={}){return Boolean(e&&e.isTTY&&"dumb"!==process.env.TERM&&!("CI"in process.env))}({stream:this.#C}),this.#y="boolean"==typeof this.#F.isSilent&&this.#F.isSilent,this.text=this.#F.text,this.prefixText=this.#F.prefixText,this.suffixText=this.#F.suffixText,this.indent=this.#F.indent,"test"===yt.env.NODE_ENV&&(this._stream=this.#C,this._isEnabled=this.#b,Object.defineProperty(this,"_linesToClear",{get(){return this.#p},set(e){this.#p=e}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#_}}),Object.defineProperty(this,"_lineCount",{get(){return this.#m}}))}get indent(){return this.#x}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.#x=e,this.#w()}get interval(){return this.#v??this.#g.interval??100}get spinner(){return this.#g}set spinner(e){if(this.#_=-1,this.#v=void 0,"object"==typeof e){if(void 0===e.frames)throw new Error("The given spinner must have a `frames` property");this.#g=e}else if(function(){const{env:e}=Ns,{TERM:t,TERM_PROGRAM:s}=e;return"win32"!==Ns.platform?"linux"!==t:Boolean(e.WT_SESSION)||Boolean(e.TERMINUS_SUBLIME)||"{cmd::Cmder}"===e.ConEmuTask||"Terminus-Sublime"===s||"vscode"===s||"xterm-256color"===t||"alacritty"===t||"rxvt-unicode"===t||"rxvt-unicode-256color"===t||"JetBrains-JediTerm"===e.TERMINAL_EMULATOR}())if(void 0===e)this.#g=Ts.default.dots;else{if("default"===e||!Ts.default[e])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.`);this.#g=Ts.default[e]}else this.#g=Ts.default.line}get text(){return this.#A}set text(e=""){this.#A=e,this.#w()}get prefixText(){return this.#O}set prefixText(e=""){this.#O=e,this.#w()}get suffixText(){return this.#B}set suffixText(e=""){this.#B=e,this.#w()}get isSpinning(){return void 0!==this.#E}#T(e=this.#O,t=" "){return"string"==typeof e&&""!==e?e+t:"function"==typeof e?e()+t:""}#j(e=this.#B,t=" "){return"string"==typeof e&&""!==e?t+e:"function"==typeof e?t+e():""}#w(){const e=this.#C.columns??80,t=this.#T(this.#O,"-"),s=this.#j(this.#B,"-"),o=" ".repeat(this.#x)+t+"--"+this.#A+"--"+s;this.#m=0;for(const t of Is(o).split("\n"))this.#m+=Math.max(1,Math.ceil(Ms(t,{countAnsiEscapeCodes:!0})/e))}get isEnabled(){return this.#b&&!this.#y}set isEnabled(e){if("boolean"!=typeof e)throw new TypeError("The `isEnabled` option must be a boolean");this.#b=e}get isSilent(){return this.#y}set isSilent(e){if("boolean"!=typeof e)throw new TypeError("The `isSilent` option must be a boolean");this.#y=e}frame(){const e=Date.now();(-1===this.#_||e-this.#f>=this.interval)&&(this.#_=++this.#_%this.#g.frames.length,this.#f=e);const{frames:t}=this.#g;let s=t[this.#_];this.color&&(s=ts[this.color](s));return("string"==typeof this.#O&&""!==this.#O?this.#O+" ":"")+s+("string"==typeof this.text?" "+this.text:"")+("string"==typeof this.#B&&""!==this.#B?" "+this.#B:"")}clear(){if(!this.#b||!this.#C.isTTY)return this;this.#C.cursorTo(0);for(let e=0;e<this.#p;e++)e>0&&this.#C.moveCursor(0,-1),this.#C.clearLine(1);return(this.#x||this.lastIndent!==this.#x)&&this.#C.cursorTo(this.#x),this.lastIndent=this.#x,this.#p=0,this}render(){return this.#y||(this.clear(),this.#C.write(this.frame()),this.#p=this.#m),this}start(e){return e&&(this.text=e),this.#y?this:this.#b?(this.isSpinning||(this.#F.hideCursor&&ws.hide(this.#C),this.#F.discardStdin&&yt.stdin.isTTY&&(this.#c=!0,Ws.start()),this.render(),this.#E=setInterval(this.render.bind(this),this.interval)),this):(this.text&&this.#C.write(`- ${this.text}\n`),this)}stop(){return this.#b?(clearInterval(this.#E),this.#E=void 0,this.#_=0,this.clear(),this.#F.hideCursor&&ws.show(this.#C),this.#F.discardStdin&&yt.stdin.isTTY&&this.#c&&(Ws.stop(),this.#c=!1),this):this}succeed(e){return this.stopAndPersist({symbol:$s.success,text:e})}fail(e){return this.stopAndPersist({symbol:$s.error,text:e})}warn(e){return this.stopAndPersist({symbol:$s.warning,text:e})}info(e){return this.stopAndPersist({symbol:$s.info,text:e})}stopAndPersist(e={}){if(this.#y)return this;const t=e.prefixText??this.#O,s=this.#T(t," "),o=e.symbol??" ",r=e.text??this.text,n="string"==typeof r?(o?" ":"")+r:"",i=e.suffixText??this.#B,u=s+o+n+this.#j(i," ")+"\n";return this.stop(),this.#C.write(u),this}});async function Us(e,t){const s="function"==typeof e,o="function"==typeof e.then;if(!s&&!o)throw new TypeError("Parameter `action` must be a Function or a Promise");const{successText:r,failText:n}="object"==typeof t?t:{successText:void 0,failText:void 0},i=function(e){return new Gs(e)}(t).start();try{const t=s?e(i):e,o=await t;return i.succeed(void 0===r?void 0:"string"==typeof r?r:r(o)),o}catch(e){throw i.fail(void 0===n?void 0:"string"==typeof n?n:n(e)),e}}import{existsSync as qs}from"fs";var zs=a(F(),1);import{dirname as Ys,join as Js}from"path";import{existsSync as Ks,readFileSync as Zs}from"fs";import{promises as Qs}from"fs";import{existsSync as Xs,mkdirSync as eo}from"fs";var to=class{static ensureDir(e){Xs(e)||eo(e,{recursive:!0})}},{copyFile:so,stat:oo}=Qs,ro=class e{constructor(t,s=e.IGNORE_FILE){this.ignoreTargetPath=t,this.ignoreFile=s}static IGNORE_FILE=".gitignore.template";getIg(e=this.ignoreTargetPath){const t=Js(e,this.ignoreFile);if(!Ks(t))return;const s=Zs(t,"utf8").split("\n").map((e=>e.trim())).filter((e=>e&&!e.startsWith("#")));return(0,zs.default)().add(s)}async copyFiles(e,t,s,o){const r=await Qs.readdir(e);await Promise.all(r.map((async r=>{const n=Js(e,r),i=Js(t,r);if(s&&s.ignores(r))return;to.ensureDir(Ys(i));if((await oo(n)).isDirectory())await this.copyFiles(n,i,s,o);else{if(o&&await o(n,i))return;await so(n,i)}})))}copyPaths({sourcePath:e,targetPath:t,copyCallback:s}){to.ensureDir(t);const o=this.getIg();return this.copyFiles(e,t,o,s)}},no=a(it(),1);import{readFileSync as io,writeFileSync as uo,existsSync as ao}from"fs";var lo=class{constructor(){}isJSONFilePath(e){return e.endsWith(".json")||e.endsWith(".json.template")}isTemplateFilePath(e){return e.endsWith(".template")}getRealTemplateFilePath(e){return e.replace(".template","")}readFile(e){return io(e,"utf-8")}readJSONFile(e){return JSON.parse(this.readFile(e))}writeFile(e,t){uo(this.getRealTemplateFilePath(e),t,{encoding:"utf-8"})}replaceFile(e,t){let s=this.readFile(e);return Object.keys(t).forEach((e=>{const o=t[e];s=s.replace(new RegExp(`\\[TPL:${e}\\]`,"g"),"string"==typeof o?o:JSON.stringify(o))})),s}mergeJSONFile(e,t){const s=this.readJSONFile(e),o=(0,no.default)(t,s);this.writeFile(e,JSON.stringify(o,null,2))}composeConfigFile(e,t,s){if(this.isTemplateFilePath(t)){const o=this.replaceFile(t,e);if(this.isJSONFilePath(t)&&this.isJSONFilePath(s)){const e=this.getRealTemplateFilePath(s);return ao(e)?(this.mergeJSONFile(e,JSON.parse(o)),!0):(this.writeFile(e,o),!0)}return this.writeFile(s,o),!0}return!1}},Do=["pack-app"],ho=class{ora;context;subPackages;copyer;compose;constructor(e){const t=e.options?.templateRootPath;if(!t)throw new Error("template path not exit");if(!qs(t))throw new Error("template path not exit");this.ora=Us,this.context=new Et(e),this.subPackages=["node-lib","react-app"],this.copyer=new ro(bt(this.context.options.configsRootPath,"_common")),this.compose=new lo}get logger(){return this.context.logger}async steps(e){try{return await vt.prompt(e)}catch(e){throw e.isTtyError,this.logger.error(e),e}}async action({label:e,task:t}){let s=t();s instanceof Promise||(s=Promise.resolve(s));const o=e;return this.ora(s,o),s}isPackageTemplate(e){return Do.includes(e)}async getGeneratorContext(){const e=(t=this.subPackages,s=Do,[{type:"input",name:"projectName",message:"Project name",validate:e=>((e,t)=>"string"==typeof e&&""!==e.trim()||`${t} is required`)(e,"Project name")},{type:"list",name:"template",message:"Template name",choices:[...t,...s]}]);var t,s;const o=await this.steps(e);if(this.isPackageTemplate(o.template)){const e=function(e){return[{type:"checkbox",name:"subPackages",message:"Sub package names",choices:e}]}(this.subPackages),t=await this.steps(e);Object.assign(o,t)}return o.targetPath=bt(process.cwd(),o.projectName),o.releasePath=o.releasePath||"src",o}async generate(){const e=await this.getGeneratorContext();this.logger.debug("context is:",e,this.context.options.templateRootPath),e.subPackages?await this.action({label:"Generate Directories(subPackages)",task:async()=>{await this.generateTemplateDir(e),await this.generateSubPackages(e),await this.generateConfigs(e,e.targetPath,"_common")}}):await this.action({label:"Generate Directory",task:async()=>{await this.generateTemplateDir(e),await this.generateConfigs(e,e.targetPath,"_common"),await this.generateConfigs(e,e.targetPath,e.template)}})}async generateConfigs(e,t,s){const{configsRootPath:o,config:r}=this.context.options;r?await this.copyer.copyPaths({sourcePath:bt(o,s),targetPath:t,copyCallback:(t,s)=>(this.logger.debug("copyCallback",t,s),this.compose.composeConfigFile(e,t,s))}):this.logger.debug("no copy config files")}generateTemplateDir(e){return this.copyer.copyPaths({sourcePath:bt(this.context.options.templateRootPath,e.template),targetPath:e.targetPath})}async generateSubPackages(e){const{packagesNames:t="packages",subPackages:s=[],targetPath:o=""}=e,{templateRootPath:r}=this.context.options;for(const e of s){const s=bt(r,e),n=bt(o,t,e);this.logger.debug("copy sub package",s,n),await this.copyer.copyPaths({sourcePath:s,targetPath:n})}}},po="0.3.7",co="Create a new app with a single command";import{fileURLToPath as mo}from"url";(async function(){const{dryRun:e,verbose:t,...s}=function(){const e=new ft;return e.version(po,"-v, --version","Show version").description(co).option("-d, --dry-run","Do not touch or write anything, but show the commands").option("-V, --verbose","Show more information").option("--config","Copy config files (default: true)",!0).option("--no-config","Do not copy config files"),e.parse(),e.opts()}(),o=mo(import.meta.url),r=ut(o,"../templates"),n=ut(o,"../configs");at(r)||(console.error("Template is empty!"),process.exit(1)),at(n)||(console.error("Configs is empty!"),process.exit(1));const i=new ho({dryRun:e,verbose:t,options:{...s,templateRootPath:r,configsRootPath:n}});await i.generate()})().catch((e=>{console.error(e),process.exit(1)}));
2
+ import { dirname, join } from 'path';
3
+ import { promises, existsSync, readFileSync, writeFileSync, mkdirSync } from 'fs';
4
+ import { Command } from 'commander';
5
+ import { FeScriptContext } from '@qlover/scripts-context';
6
+ import inquirer from 'inquirer';
7
+ import { oraPromise } from 'ora';
8
+ import { fileURLToPath } from 'url';
9
+
10
+ var __create = Object.create;
11
+ var __defProp = Object.defineProperty;
12
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
13
+ var __getOwnPropNames = Object.getOwnPropertyNames;
14
+ var __getProtoOf = Object.getPrototypeOf;
15
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
16
+ var __commonJS = (cb, mod) => function __require() {
17
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
18
+ };
19
+ var __copyProps = (to, from, except, desc) => {
20
+ if (from && typeof from === "object" || typeof from === "function") {
21
+ for (let key of __getOwnPropNames(from))
22
+ if (!__hasOwnProp.call(to, key) && key !== except)
23
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
24
+ }
25
+ return to;
26
+ };
27
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
28
+ // If the importer is in node compatibility mode or this is not an ESM
29
+ // file that has been converted to a CommonJS file using a Babel-
30
+ // compatible transform (i.e. "__esModule" has not been set), then set
31
+ // "default" to the CommonJS "module.exports" for node compatibility.
32
+ __defProp(target, "default", { value: mod, enumerable: true }) ,
33
+ mod
34
+ ));
35
+
36
+ // ../../node_modules/.pnpm/ignore@7.0.4/node_modules/ignore/index.js
37
+ var require_ignore = __commonJS({
38
+ "../../node_modules/.pnpm/ignore@7.0.4/node_modules/ignore/index.js"(exports, module) {
39
+ function makeArray(subject) {
40
+ return Array.isArray(subject) ? subject : [subject];
41
+ }
42
+ var UNDEFINED = void 0;
43
+ var EMPTY = "";
44
+ var SPACE = " ";
45
+ var ESCAPE = "\\";
46
+ var REGEX_TEST_BLANK_LINE = /^\s+$/;
47
+ var REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/;
48
+ var REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/;
49
+ var REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/;
50
+ var REGEX_SPLITALL_CRLF = /\r?\n/g;
51
+ var REGEX_TEST_INVALID_PATH = /^\.{0,2}\/|^\.{1,2}$/;
52
+ var REGEX_TEST_TRAILING_SLASH = /\/$/;
53
+ var SLASH = "/";
54
+ var TMP_KEY_IGNORE = "node-ignore";
55
+ if (typeof Symbol !== "undefined") {
56
+ TMP_KEY_IGNORE = Symbol.for("node-ignore");
57
+ }
58
+ var KEY_IGNORE = TMP_KEY_IGNORE;
59
+ var define = (object, key, value) => {
60
+ Object.defineProperty(object, key, { value });
61
+ return value;
62
+ };
63
+ var REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g;
64
+ var RETURN_FALSE = () => false;
65
+ var sanitizeRange = (range) => range.replace(
66
+ REGEX_REGEXP_RANGE,
67
+ (match, from, to) => from.charCodeAt(0) <= to.charCodeAt(0) ? match : EMPTY
68
+ );
69
+ var cleanRangeBackSlash = (slashes) => {
70
+ const { length } = slashes;
71
+ return slashes.slice(0, length - length % 2);
72
+ };
73
+ var REPLACERS = [
74
+ [
75
+ // Remove BOM
76
+ // TODO:
77
+ // Other similar zero-width characters?
78
+ /^\uFEFF/,
79
+ () => EMPTY
80
+ ],
81
+ // > Trailing spaces are ignored unless they are quoted with backslash ("\")
82
+ [
83
+ // (a\ ) -> (a )
84
+ // (a ) -> (a)
85
+ // (a ) -> (a)
86
+ // (a \ ) -> (a )
87
+ /((?:\\\\)*?)(\\?\s+)$/,
88
+ (_, m1, m2) => m1 + (m2.indexOf("\\") === 0 ? SPACE : EMPTY)
89
+ ],
90
+ // Replace (\ ) with ' '
91
+ // (\ ) -> ' '
92
+ // (\\ ) -> '\\ '
93
+ // (\\\ ) -> '\\ '
94
+ [
95
+ /(\\+?)\s/g,
96
+ (_, m1) => {
97
+ const { length } = m1;
98
+ return m1.slice(0, length - length % 2) + SPACE;
99
+ }
100
+ ],
101
+ // Escape metacharacters
102
+ // which is written down by users but means special for regular expressions.
103
+ // > There are 12 characters with special meanings:
104
+ // > - the backslash \,
105
+ // > - the caret ^,
106
+ // > - the dollar sign $,
107
+ // > - the period or dot .,
108
+ // > - the vertical bar or pipe symbol |,
109
+ // > - the question mark ?,
110
+ // > - the asterisk or star *,
111
+ // > - the plus sign +,
112
+ // > - the opening parenthesis (,
113
+ // > - the closing parenthesis ),
114
+ // > - and the opening square bracket [,
115
+ // > - the opening curly brace {,
116
+ // > These special characters are often called "metacharacters".
117
+ [
118
+ /[\\$.|*+(){^]/g,
119
+ (match) => `\\${match}`
120
+ ],
121
+ [
122
+ // > a question mark (?) matches a single character
123
+ /(?!\\)\?/g,
124
+ () => "[^/]"
125
+ ],
126
+ // leading slash
127
+ [
128
+ // > A leading slash matches the beginning of the pathname.
129
+ // > For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c".
130
+ // A leading slash matches the beginning of the pathname
131
+ /^\//,
132
+ () => "^"
133
+ ],
134
+ // replace special metacharacter slash after the leading slash
135
+ [
136
+ /\//g,
137
+ () => "\\/"
138
+ ],
139
+ [
140
+ // > A leading "**" followed by a slash means match in all directories.
141
+ // > For example, "**/foo" matches file or directory "foo" anywhere,
142
+ // > the same as pattern "foo".
143
+ // > "**/foo/bar" matches file or directory "bar" anywhere that is directly
144
+ // > under directory "foo".
145
+ // Notice that the '*'s have been replaced as '\\*'
146
+ /^\^*\\\*\\\*\\\//,
147
+ // '**/foo' <-> 'foo'
148
+ () => "^(?:.*\\/)?"
149
+ ],
150
+ // starting
151
+ [
152
+ // there will be no leading '/'
153
+ // (which has been replaced by section "leading slash")
154
+ // If starts with '**', adding a '^' to the regular expression also works
155
+ /^(?=[^^])/,
156
+ function startingReplacer() {
157
+ return !/\/(?!$)/.test(this) ? "(?:^|\\/)" : "^";
158
+ }
159
+ ],
160
+ // two globstars
161
+ [
162
+ // Use lookahead assertions so that we could match more than one `'/**'`
163
+ /\\\/\\\*\\\*(?=\\\/|$)/g,
164
+ // Zero, one or several directories
165
+ // should not use '*', or it will be replaced by the next replacer
166
+ // Check if it is not the last `'/**'`
167
+ (_, index, str) => index + 6 < str.length ? "(?:\\/[^\\/]+)*" : "\\/.+"
168
+ ],
169
+ // normal intermediate wildcards
170
+ [
171
+ // Never replace escaped '*'
172
+ // ignore rule '\*' will match the path '*'
173
+ // 'abc.*/' -> go
174
+ // 'abc.*' -> skip this rule,
175
+ // coz trailing single wildcard will be handed by [trailing wildcard]
176
+ /(^|[^\\]+)(\\\*)+(?=.+)/g,
177
+ // '*.js' matches '.js'
178
+ // '*.js' doesn't match 'abc'
179
+ (_, p1, p2) => {
180
+ const unescaped = p2.replace(/\\\*/g, "[^\\/]*");
181
+ return p1 + unescaped;
182
+ }
183
+ ],
184
+ [
185
+ // unescape, revert step 3 except for back slash
186
+ // For example, if a user escape a '\\*',
187
+ // after step 3, the result will be '\\\\\\*'
188
+ /\\\\\\(?=[$.|*+(){^])/g,
189
+ () => ESCAPE
190
+ ],
191
+ [
192
+ // '\\\\' -> '\\'
193
+ /\\\\/g,
194
+ () => ESCAPE
195
+ ],
196
+ [
197
+ // > The range notation, e.g. [a-zA-Z],
198
+ // > can be used to match one of the characters in a range.
199
+ // `\` is escaped by step 3
200
+ /(\\)?\[([^\]/]*?)(\\*)($|\])/g,
201
+ (match, leadEscape, range, endEscape, close) => leadEscape === ESCAPE ? `\\[${range}${cleanRangeBackSlash(endEscape)}${close}` : close === "]" ? endEscape.length % 2 === 0 ? `[${sanitizeRange(range)}${endEscape}]` : "[]" : "[]"
202
+ ],
203
+ // ending
204
+ [
205
+ // 'js' will not match 'js.'
206
+ // 'ab' will not match 'abc'
207
+ /(?:[^*])$/,
208
+ // WTF!
209
+ // https://git-scm.com/docs/gitignore
210
+ // changes in [2.22.1](https://git-scm.com/docs/gitignore/2.22.1)
211
+ // which re-fixes #24, #38
212
+ // > If there is a separator at the end of the pattern then the pattern
213
+ // > will only match directories, otherwise the pattern can match both
214
+ // > files and directories.
215
+ // 'js*' will not match 'a.js'
216
+ // 'js/' will not match 'a.js'
217
+ // 'js' will match 'a.js' and 'a.js/'
218
+ (match) => /\/$/.test(match) ? `${match}$` : `${match}(?=$|\\/$)`
219
+ ]
220
+ ];
221
+ var REGEX_REPLACE_TRAILING_WILDCARD = /(^|\\\/)?\\\*$/;
222
+ var MODE_IGNORE = "regex";
223
+ var MODE_CHECK_IGNORE = "checkRegex";
224
+ var UNDERSCORE = "_";
225
+ var TRAILING_WILD_CARD_REPLACERS = {
226
+ [MODE_IGNORE](_, p1) {
227
+ const prefix = p1 ? `${p1}[^/]+` : "[^/]*";
228
+ return `${prefix}(?=$|\\/$)`;
229
+ },
230
+ [MODE_CHECK_IGNORE](_, p1) {
231
+ const prefix = p1 ? `${p1}[^/]*` : "[^/]*";
232
+ return `${prefix}(?=$|\\/$)`;
233
+ }
234
+ };
235
+ var makeRegexPrefix = (pattern) => REPLACERS.reduce(
236
+ (prev, [matcher, replacer]) => prev.replace(matcher, replacer.bind(pattern)),
237
+ pattern
238
+ );
239
+ var isString = (subject) => typeof subject === "string";
240
+ var checkPattern = (pattern) => pattern && isString(pattern) && !REGEX_TEST_BLANK_LINE.test(pattern) && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern) && pattern.indexOf("#") !== 0;
241
+ var splitPattern = (pattern) => pattern.split(REGEX_SPLITALL_CRLF).filter(Boolean);
242
+ var IgnoreRule = class {
243
+ constructor(pattern, mark, body, ignoreCase, negative, prefix) {
244
+ this.pattern = pattern;
245
+ this.mark = mark;
246
+ this.negative = negative;
247
+ define(this, "body", body);
248
+ define(this, "ignoreCase", ignoreCase);
249
+ define(this, "regexPrefix", prefix);
250
+ }
251
+ get regex() {
252
+ const key = UNDERSCORE + MODE_IGNORE;
253
+ if (this[key]) {
254
+ return this[key];
255
+ }
256
+ return this._make(MODE_IGNORE, key);
257
+ }
258
+ get checkRegex() {
259
+ const key = UNDERSCORE + MODE_CHECK_IGNORE;
260
+ if (this[key]) {
261
+ return this[key];
262
+ }
263
+ return this._make(MODE_CHECK_IGNORE, key);
264
+ }
265
+ _make(mode, key) {
266
+ const str = this.regexPrefix.replace(
267
+ REGEX_REPLACE_TRAILING_WILDCARD,
268
+ // It does not need to bind pattern
269
+ TRAILING_WILD_CARD_REPLACERS[mode]
270
+ );
271
+ const regex = this.ignoreCase ? new RegExp(str, "i") : new RegExp(str);
272
+ return define(this, key, regex);
273
+ }
274
+ };
275
+ var createRule = ({
276
+ pattern,
277
+ mark
278
+ }, ignoreCase) => {
279
+ let negative = false;
280
+ let body = pattern;
281
+ if (body.indexOf("!") === 0) {
282
+ negative = true;
283
+ body = body.substr(1);
284
+ }
285
+ body = body.replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, "!").replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, "#");
286
+ const regexPrefix = makeRegexPrefix(body);
287
+ return new IgnoreRule(
288
+ pattern,
289
+ mark,
290
+ body,
291
+ ignoreCase,
292
+ negative,
293
+ regexPrefix
294
+ );
295
+ };
296
+ var RuleManager = class {
297
+ constructor(ignoreCase) {
298
+ this._ignoreCase = ignoreCase;
299
+ this._rules = [];
300
+ }
301
+ _add(pattern) {
302
+ if (pattern && pattern[KEY_IGNORE]) {
303
+ this._rules = this._rules.concat(pattern._rules._rules);
304
+ this._added = true;
305
+ return;
306
+ }
307
+ if (isString(pattern)) {
308
+ pattern = {
309
+ pattern
310
+ };
311
+ }
312
+ if (checkPattern(pattern.pattern)) {
313
+ const rule = createRule(pattern, this._ignoreCase);
314
+ this._added = true;
315
+ this._rules.push(rule);
316
+ }
317
+ }
318
+ // @param {Array<string> | string | Ignore} pattern
319
+ add(pattern) {
320
+ this._added = false;
321
+ makeArray(
322
+ isString(pattern) ? splitPattern(pattern) : pattern
323
+ ).forEach(this._add, this);
324
+ return this._added;
325
+ }
326
+ // Test one single path without recursively checking parent directories
327
+ //
328
+ // - checkUnignored `boolean` whether should check if the path is unignored,
329
+ // setting `checkUnignored` to `false` could reduce additional
330
+ // path matching.
331
+ // - check `string` either `MODE_IGNORE` or `MODE_CHECK_IGNORE`
332
+ // @returns {TestResult} true if a file is ignored
333
+ test(path, checkUnignored, mode) {
334
+ let ignored = false;
335
+ let unignored = false;
336
+ let matchedRule;
337
+ this._rules.forEach((rule) => {
338
+ const { negative } = rule;
339
+ if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
340
+ return;
341
+ }
342
+ const matched = rule[mode].test(path);
343
+ if (!matched) {
344
+ return;
345
+ }
346
+ ignored = !negative;
347
+ unignored = negative;
348
+ matchedRule = negative ? UNDEFINED : rule;
349
+ });
350
+ const ret = {
351
+ ignored,
352
+ unignored
353
+ };
354
+ if (matchedRule) {
355
+ ret.rule = matchedRule;
356
+ }
357
+ return ret;
358
+ }
359
+ };
360
+ var throwError = (message, Ctor) => {
361
+ throw new Ctor(message);
362
+ };
363
+ var checkPath = (path, originalPath, doThrow) => {
364
+ if (!isString(path)) {
365
+ return doThrow(
366
+ `path must be a string, but got \`${originalPath}\``,
367
+ TypeError
368
+ );
369
+ }
370
+ if (!path) {
371
+ return doThrow(`path must not be empty`, TypeError);
372
+ }
373
+ if (checkPath.isNotRelative(path)) {
374
+ const r = "`path.relative()`d";
375
+ return doThrow(
376
+ `path should be a ${r} string, but got "${originalPath}"`,
377
+ RangeError
378
+ );
379
+ }
380
+ return true;
381
+ };
382
+ var isNotRelative = (path) => REGEX_TEST_INVALID_PATH.test(path);
383
+ checkPath.isNotRelative = isNotRelative;
384
+ checkPath.convert = (p) => p;
385
+ var Ignore = class {
386
+ constructor({
387
+ ignorecase = true,
388
+ ignoreCase = ignorecase,
389
+ allowRelativePaths = false
390
+ } = {}) {
391
+ define(this, KEY_IGNORE, true);
392
+ this._rules = new RuleManager(ignoreCase);
393
+ this._strictPathCheck = !allowRelativePaths;
394
+ this._initCache();
395
+ }
396
+ _initCache() {
397
+ this._ignoreCache = /* @__PURE__ */ Object.create(null);
398
+ this._testCache = /* @__PURE__ */ Object.create(null);
399
+ }
400
+ add(pattern) {
401
+ if (this._rules.add(pattern)) {
402
+ this._initCache();
403
+ }
404
+ return this;
405
+ }
406
+ // legacy
407
+ addPattern(pattern) {
408
+ return this.add(pattern);
409
+ }
410
+ // @returns {TestResult}
411
+ _test(originalPath, cache, checkUnignored, slices) {
412
+ const path = originalPath && checkPath.convert(originalPath);
413
+ checkPath(
414
+ path,
415
+ originalPath,
416
+ this._strictPathCheck ? throwError : RETURN_FALSE
417
+ );
418
+ return this._t(path, cache, checkUnignored, slices);
419
+ }
420
+ checkIgnore(path) {
421
+ if (!REGEX_TEST_TRAILING_SLASH.test(path)) {
422
+ return this.test(path);
423
+ }
424
+ const slices = path.split(SLASH).filter(Boolean);
425
+ slices.pop();
426
+ if (slices.length) {
427
+ const parent = this._t(
428
+ slices.join(SLASH) + SLASH,
429
+ this._testCache,
430
+ true,
431
+ slices
432
+ );
433
+ if (parent.ignored) {
434
+ return parent;
435
+ }
436
+ }
437
+ return this._rules.test(path, false, MODE_CHECK_IGNORE);
438
+ }
439
+ _t(path, cache, checkUnignored, slices) {
440
+ if (path in cache) {
441
+ return cache[path];
442
+ }
443
+ if (!slices) {
444
+ slices = path.split(SLASH).filter(Boolean);
445
+ }
446
+ slices.pop();
447
+ if (!slices.length) {
448
+ return cache[path] = this._rules.test(path, checkUnignored, MODE_IGNORE);
449
+ }
450
+ const parent = this._t(
451
+ slices.join(SLASH) + SLASH,
452
+ cache,
453
+ checkUnignored,
454
+ slices
455
+ );
456
+ return cache[path] = parent.ignored ? parent : this._rules.test(path, checkUnignored, MODE_IGNORE);
457
+ }
458
+ ignores(path) {
459
+ return this._test(path, this._ignoreCache, false).ignored;
460
+ }
461
+ createFilter() {
462
+ return (path) => !this.ignores(path);
463
+ }
464
+ filter(paths) {
465
+ return makeArray(paths).filter(this.createFilter());
466
+ }
467
+ // @returns {TestResult}
468
+ test(path) {
469
+ return this._test(path, this._testCache, true);
470
+ }
471
+ };
472
+ var factory = (options) => new Ignore(options);
473
+ var isPathValid = (path) => checkPath(path && checkPath.convert(path), path, RETURN_FALSE);
474
+ if (
475
+ // Detect `process` so that it can run in browsers.
476
+ typeof process !== "undefined" && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === "win32")
477
+ ) {
478
+ const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
479
+ checkPath.convert = makePosix;
480
+ const REGEX_TEST_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
481
+ checkPath.isNotRelative = (path) => REGEX_TEST_WINDOWS_PATH_ABSOLUTE.test(path) || isNotRelative(path);
482
+ }
483
+ module.exports = factory;
484
+ factory.default = factory;
485
+ module.exports.isPathValid = isPathValid;
486
+ }
487
+ });
488
+
489
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js
490
+ var require_listCacheClear = __commonJS({
491
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js"(exports, module) {
492
+ function listCacheClear() {
493
+ this.__data__ = [];
494
+ this.size = 0;
495
+ }
496
+ module.exports = listCacheClear;
497
+ }
498
+ });
499
+
500
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js
501
+ var require_eq = __commonJS({
502
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js"(exports, module) {
503
+ function eq(value, other) {
504
+ return value === other || value !== value && other !== other;
505
+ }
506
+ module.exports = eq;
507
+ }
508
+ });
509
+
510
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js
511
+ var require_assocIndexOf = __commonJS({
512
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js"(exports, module) {
513
+ var eq = require_eq();
514
+ function assocIndexOf(array, key) {
515
+ var length = array.length;
516
+ while (length--) {
517
+ if (eq(array[length][0], key)) {
518
+ return length;
519
+ }
520
+ }
521
+ return -1;
522
+ }
523
+ module.exports = assocIndexOf;
524
+ }
525
+ });
526
+
527
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js
528
+ var require_listCacheDelete = __commonJS({
529
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js"(exports, module) {
530
+ var assocIndexOf = require_assocIndexOf();
531
+ var arrayProto = Array.prototype;
532
+ var splice = arrayProto.splice;
533
+ function listCacheDelete(key) {
534
+ var data = this.__data__, index = assocIndexOf(data, key);
535
+ if (index < 0) {
536
+ return false;
537
+ }
538
+ var lastIndex = data.length - 1;
539
+ if (index == lastIndex) {
540
+ data.pop();
541
+ } else {
542
+ splice.call(data, index, 1);
543
+ }
544
+ --this.size;
545
+ return true;
546
+ }
547
+ module.exports = listCacheDelete;
548
+ }
549
+ });
550
+
551
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js
552
+ var require_listCacheGet = __commonJS({
553
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js"(exports, module) {
554
+ var assocIndexOf = require_assocIndexOf();
555
+ function listCacheGet(key) {
556
+ var data = this.__data__, index = assocIndexOf(data, key);
557
+ return index < 0 ? void 0 : data[index][1];
558
+ }
559
+ module.exports = listCacheGet;
560
+ }
561
+ });
562
+
563
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js
564
+ var require_listCacheHas = __commonJS({
565
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js"(exports, module) {
566
+ var assocIndexOf = require_assocIndexOf();
567
+ function listCacheHas(key) {
568
+ return assocIndexOf(this.__data__, key) > -1;
569
+ }
570
+ module.exports = listCacheHas;
571
+ }
572
+ });
573
+
574
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js
575
+ var require_listCacheSet = __commonJS({
576
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js"(exports, module) {
577
+ var assocIndexOf = require_assocIndexOf();
578
+ function listCacheSet(key, value) {
579
+ var data = this.__data__, index = assocIndexOf(data, key);
580
+ if (index < 0) {
581
+ ++this.size;
582
+ data.push([key, value]);
583
+ } else {
584
+ data[index][1] = value;
585
+ }
586
+ return this;
587
+ }
588
+ module.exports = listCacheSet;
589
+ }
590
+ });
591
+
592
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js
593
+ var require_ListCache = __commonJS({
594
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js"(exports, module) {
595
+ var listCacheClear = require_listCacheClear();
596
+ var listCacheDelete = require_listCacheDelete();
597
+ var listCacheGet = require_listCacheGet();
598
+ var listCacheHas = require_listCacheHas();
599
+ var listCacheSet = require_listCacheSet();
600
+ function ListCache(entries) {
601
+ var index = -1, length = entries == null ? 0 : entries.length;
602
+ this.clear();
603
+ while (++index < length) {
604
+ var entry = entries[index];
605
+ this.set(entry[0], entry[1]);
606
+ }
607
+ }
608
+ ListCache.prototype.clear = listCacheClear;
609
+ ListCache.prototype["delete"] = listCacheDelete;
610
+ ListCache.prototype.get = listCacheGet;
611
+ ListCache.prototype.has = listCacheHas;
612
+ ListCache.prototype.set = listCacheSet;
613
+ module.exports = ListCache;
614
+ }
615
+ });
616
+
617
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js
618
+ var require_stackClear = __commonJS({
619
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js"(exports, module) {
620
+ var ListCache = require_ListCache();
621
+ function stackClear() {
622
+ this.__data__ = new ListCache();
623
+ this.size = 0;
624
+ }
625
+ module.exports = stackClear;
626
+ }
627
+ });
628
+
629
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js
630
+ var require_stackDelete = __commonJS({
631
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js"(exports, module) {
632
+ function stackDelete(key) {
633
+ var data = this.__data__, result = data["delete"](key);
634
+ this.size = data.size;
635
+ return result;
636
+ }
637
+ module.exports = stackDelete;
638
+ }
639
+ });
640
+
641
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js
642
+ var require_stackGet = __commonJS({
643
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js"(exports, module) {
644
+ function stackGet(key) {
645
+ return this.__data__.get(key);
646
+ }
647
+ module.exports = stackGet;
648
+ }
649
+ });
650
+
651
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js
652
+ var require_stackHas = __commonJS({
653
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js"(exports, module) {
654
+ function stackHas(key) {
655
+ return this.__data__.has(key);
656
+ }
657
+ module.exports = stackHas;
658
+ }
659
+ });
660
+
661
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js
662
+ var require_freeGlobal = __commonJS({
663
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js"(exports, module) {
664
+ var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
665
+ module.exports = freeGlobal;
666
+ }
667
+ });
668
+
669
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js
670
+ var require_root = __commonJS({
671
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js"(exports, module) {
672
+ var freeGlobal = require_freeGlobal();
673
+ var freeSelf = typeof self == "object" && self && self.Object === Object && self;
674
+ var root = freeGlobal || freeSelf || Function("return this")();
675
+ module.exports = root;
676
+ }
677
+ });
678
+
679
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js
680
+ var require_Symbol = __commonJS({
681
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js"(exports, module) {
682
+ var root = require_root();
683
+ var Symbol2 = root.Symbol;
684
+ module.exports = Symbol2;
685
+ }
686
+ });
687
+
688
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js
689
+ var require_getRawTag = __commonJS({
690
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js"(exports, module) {
691
+ var Symbol2 = require_Symbol();
692
+ var objectProto = Object.prototype;
693
+ var hasOwnProperty = objectProto.hasOwnProperty;
694
+ var nativeObjectToString = objectProto.toString;
695
+ var symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
696
+ function getRawTag(value) {
697
+ var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
698
+ try {
699
+ value[symToStringTag] = void 0;
700
+ var unmasked = true;
701
+ } catch (e) {
702
+ }
703
+ var result = nativeObjectToString.call(value);
704
+ if (unmasked) {
705
+ if (isOwn) {
706
+ value[symToStringTag] = tag;
707
+ } else {
708
+ delete value[symToStringTag];
709
+ }
710
+ }
711
+ return result;
712
+ }
713
+ module.exports = getRawTag;
714
+ }
715
+ });
716
+
717
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js
718
+ var require_objectToString = __commonJS({
719
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js"(exports, module) {
720
+ var objectProto = Object.prototype;
721
+ var nativeObjectToString = objectProto.toString;
722
+ function objectToString(value) {
723
+ return nativeObjectToString.call(value);
724
+ }
725
+ module.exports = objectToString;
726
+ }
727
+ });
728
+
729
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js
730
+ var require_baseGetTag = __commonJS({
731
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js"(exports, module) {
732
+ var Symbol2 = require_Symbol();
733
+ var getRawTag = require_getRawTag();
734
+ var objectToString = require_objectToString();
735
+ var nullTag = "[object Null]";
736
+ var undefinedTag = "[object Undefined]";
737
+ var symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
738
+ function baseGetTag(value) {
739
+ if (value == null) {
740
+ return value === void 0 ? undefinedTag : nullTag;
741
+ }
742
+ return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
743
+ }
744
+ module.exports = baseGetTag;
745
+ }
746
+ });
747
+
748
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js
749
+ var require_isObject = __commonJS({
750
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js"(exports, module) {
751
+ function isObject(value) {
752
+ var type = typeof value;
753
+ return value != null && (type == "object" || type == "function");
754
+ }
755
+ module.exports = isObject;
756
+ }
757
+ });
758
+
759
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js
760
+ var require_isFunction = __commonJS({
761
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js"(exports, module) {
762
+ var baseGetTag = require_baseGetTag();
763
+ var isObject = require_isObject();
764
+ var asyncTag = "[object AsyncFunction]";
765
+ var funcTag = "[object Function]";
766
+ var genTag = "[object GeneratorFunction]";
767
+ var proxyTag = "[object Proxy]";
768
+ function isFunction(value) {
769
+ if (!isObject(value)) {
770
+ return false;
771
+ }
772
+ var tag = baseGetTag(value);
773
+ return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
774
+ }
775
+ module.exports = isFunction;
776
+ }
777
+ });
778
+
779
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_coreJsData.js
780
+ var require_coreJsData = __commonJS({
781
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_coreJsData.js"(exports, module) {
782
+ var root = require_root();
783
+ var coreJsData = root["__core-js_shared__"];
784
+ module.exports = coreJsData;
785
+ }
786
+ });
787
+
788
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isMasked.js
789
+ var require_isMasked = __commonJS({
790
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isMasked.js"(exports, module) {
791
+ var coreJsData = require_coreJsData();
792
+ var maskSrcKey = function() {
793
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
794
+ return uid ? "Symbol(src)_1." + uid : "";
795
+ }();
796
+ function isMasked(func) {
797
+ return !!maskSrcKey && maskSrcKey in func;
798
+ }
799
+ module.exports = isMasked;
800
+ }
801
+ });
802
+
803
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js
804
+ var require_toSource = __commonJS({
805
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js"(exports, module) {
806
+ var funcProto = Function.prototype;
807
+ var funcToString = funcProto.toString;
808
+ function toSource(func) {
809
+ if (func != null) {
810
+ try {
811
+ return funcToString.call(func);
812
+ } catch (e) {
813
+ }
814
+ try {
815
+ return func + "";
816
+ } catch (e) {
817
+ }
818
+ }
819
+ return "";
820
+ }
821
+ module.exports = toSource;
822
+ }
823
+ });
824
+
825
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js
826
+ var require_baseIsNative = __commonJS({
827
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js"(exports, module) {
828
+ var isFunction = require_isFunction();
829
+ var isMasked = require_isMasked();
830
+ var isObject = require_isObject();
831
+ var toSource = require_toSource();
832
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
833
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
834
+ var funcProto = Function.prototype;
835
+ var objectProto = Object.prototype;
836
+ var funcToString = funcProto.toString;
837
+ var hasOwnProperty = objectProto.hasOwnProperty;
838
+ var reIsNative = RegExp(
839
+ "^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
840
+ );
841
+ function baseIsNative(value) {
842
+ if (!isObject(value) || isMasked(value)) {
843
+ return false;
844
+ }
845
+ var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
846
+ return pattern.test(toSource(value));
847
+ }
848
+ module.exports = baseIsNative;
849
+ }
850
+ });
851
+
852
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getValue.js
853
+ var require_getValue = __commonJS({
854
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getValue.js"(exports, module) {
855
+ function getValue(object, key) {
856
+ return object == null ? void 0 : object[key];
857
+ }
858
+ module.exports = getValue;
859
+ }
860
+ });
861
+
862
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js
863
+ var require_getNative = __commonJS({
864
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js"(exports, module) {
865
+ var baseIsNative = require_baseIsNative();
866
+ var getValue = require_getValue();
867
+ function getNative(object, key) {
868
+ var value = getValue(object, key);
869
+ return baseIsNative(value) ? value : void 0;
870
+ }
871
+ module.exports = getNative;
872
+ }
873
+ });
874
+
875
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js
876
+ var require_Map = __commonJS({
877
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js"(exports, module) {
878
+ var getNative = require_getNative();
879
+ var root = require_root();
880
+ var Map = getNative(root, "Map");
881
+ module.exports = Map;
882
+ }
883
+ });
884
+
885
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js
886
+ var require_nativeCreate = __commonJS({
887
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js"(exports, module) {
888
+ var getNative = require_getNative();
889
+ var nativeCreate = getNative(Object, "create");
890
+ module.exports = nativeCreate;
891
+ }
892
+ });
893
+
894
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashClear.js
895
+ var require_hashClear = __commonJS({
896
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashClear.js"(exports, module) {
897
+ var nativeCreate = require_nativeCreate();
898
+ function hashClear() {
899
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
900
+ this.size = 0;
901
+ }
902
+ module.exports = hashClear;
903
+ }
904
+ });
905
+
906
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashDelete.js
907
+ var require_hashDelete = __commonJS({
908
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashDelete.js"(exports, module) {
909
+ function hashDelete(key) {
910
+ var result = this.has(key) && delete this.__data__[key];
911
+ this.size -= result ? 1 : 0;
912
+ return result;
913
+ }
914
+ module.exports = hashDelete;
915
+ }
916
+ });
917
+
918
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashGet.js
919
+ var require_hashGet = __commonJS({
920
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashGet.js"(exports, module) {
921
+ var nativeCreate = require_nativeCreate();
922
+ var HASH_UNDEFINED = "__lodash_hash_undefined__";
923
+ var objectProto = Object.prototype;
924
+ var hasOwnProperty = objectProto.hasOwnProperty;
925
+ function hashGet(key) {
926
+ var data = this.__data__;
927
+ if (nativeCreate) {
928
+ var result = data[key];
929
+ return result === HASH_UNDEFINED ? void 0 : result;
930
+ }
931
+ return hasOwnProperty.call(data, key) ? data[key] : void 0;
932
+ }
933
+ module.exports = hashGet;
934
+ }
935
+ });
936
+
937
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashHas.js
938
+ var require_hashHas = __commonJS({
939
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashHas.js"(exports, module) {
940
+ var nativeCreate = require_nativeCreate();
941
+ var objectProto = Object.prototype;
942
+ var hasOwnProperty = objectProto.hasOwnProperty;
943
+ function hashHas(key) {
944
+ var data = this.__data__;
945
+ return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
946
+ }
947
+ module.exports = hashHas;
948
+ }
949
+ });
950
+
951
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashSet.js
952
+ var require_hashSet = __commonJS({
953
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashSet.js"(exports, module) {
954
+ var nativeCreate = require_nativeCreate();
955
+ var HASH_UNDEFINED = "__lodash_hash_undefined__";
956
+ function hashSet(key, value) {
957
+ var data = this.__data__;
958
+ this.size += this.has(key) ? 0 : 1;
959
+ data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
960
+ return this;
961
+ }
962
+ module.exports = hashSet;
963
+ }
964
+ });
965
+
966
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Hash.js
967
+ var require_Hash = __commonJS({
968
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Hash.js"(exports, module) {
969
+ var hashClear = require_hashClear();
970
+ var hashDelete = require_hashDelete();
971
+ var hashGet = require_hashGet();
972
+ var hashHas = require_hashHas();
973
+ var hashSet = require_hashSet();
974
+ function Hash(entries) {
975
+ var index = -1, length = entries == null ? 0 : entries.length;
976
+ this.clear();
977
+ while (++index < length) {
978
+ var entry = entries[index];
979
+ this.set(entry[0], entry[1]);
980
+ }
981
+ }
982
+ Hash.prototype.clear = hashClear;
983
+ Hash.prototype["delete"] = hashDelete;
984
+ Hash.prototype.get = hashGet;
985
+ Hash.prototype.has = hashHas;
986
+ Hash.prototype.set = hashSet;
987
+ module.exports = Hash;
988
+ }
989
+ });
990
+
991
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js
992
+ var require_mapCacheClear = __commonJS({
993
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js"(exports, module) {
994
+ var Hash = require_Hash();
995
+ var ListCache = require_ListCache();
996
+ var Map = require_Map();
997
+ function mapCacheClear() {
998
+ this.size = 0;
999
+ this.__data__ = {
1000
+ "hash": new Hash(),
1001
+ "map": new (Map || ListCache)(),
1002
+ "string": new Hash()
1003
+ };
1004
+ }
1005
+ module.exports = mapCacheClear;
1006
+ }
1007
+ });
1008
+
1009
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKeyable.js
1010
+ var require_isKeyable = __commonJS({
1011
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKeyable.js"(exports, module) {
1012
+ function isKeyable(value) {
1013
+ var type = typeof value;
1014
+ return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
1015
+ }
1016
+ module.exports = isKeyable;
1017
+ }
1018
+ });
1019
+
1020
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js
1021
+ var require_getMapData = __commonJS({
1022
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js"(exports, module) {
1023
+ var isKeyable = require_isKeyable();
1024
+ function getMapData(map, key) {
1025
+ var data = map.__data__;
1026
+ return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
1027
+ }
1028
+ module.exports = getMapData;
1029
+ }
1030
+ });
1031
+
1032
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js
1033
+ var require_mapCacheDelete = __commonJS({
1034
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js"(exports, module) {
1035
+ var getMapData = require_getMapData();
1036
+ function mapCacheDelete(key) {
1037
+ var result = getMapData(this, key)["delete"](key);
1038
+ this.size -= result ? 1 : 0;
1039
+ return result;
1040
+ }
1041
+ module.exports = mapCacheDelete;
1042
+ }
1043
+ });
1044
+
1045
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js
1046
+ var require_mapCacheGet = __commonJS({
1047
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js"(exports, module) {
1048
+ var getMapData = require_getMapData();
1049
+ function mapCacheGet(key) {
1050
+ return getMapData(this, key).get(key);
1051
+ }
1052
+ module.exports = mapCacheGet;
1053
+ }
1054
+ });
1055
+
1056
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js
1057
+ var require_mapCacheHas = __commonJS({
1058
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js"(exports, module) {
1059
+ var getMapData = require_getMapData();
1060
+ function mapCacheHas(key) {
1061
+ return getMapData(this, key).has(key);
1062
+ }
1063
+ module.exports = mapCacheHas;
1064
+ }
1065
+ });
1066
+
1067
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js
1068
+ var require_mapCacheSet = __commonJS({
1069
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js"(exports, module) {
1070
+ var getMapData = require_getMapData();
1071
+ function mapCacheSet(key, value) {
1072
+ var data = getMapData(this, key), size = data.size;
1073
+ data.set(key, value);
1074
+ this.size += data.size == size ? 0 : 1;
1075
+ return this;
1076
+ }
1077
+ module.exports = mapCacheSet;
1078
+ }
1079
+ });
1080
+
1081
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js
1082
+ var require_MapCache = __commonJS({
1083
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js"(exports, module) {
1084
+ var mapCacheClear = require_mapCacheClear();
1085
+ var mapCacheDelete = require_mapCacheDelete();
1086
+ var mapCacheGet = require_mapCacheGet();
1087
+ var mapCacheHas = require_mapCacheHas();
1088
+ var mapCacheSet = require_mapCacheSet();
1089
+ function MapCache(entries) {
1090
+ var index = -1, length = entries == null ? 0 : entries.length;
1091
+ this.clear();
1092
+ while (++index < length) {
1093
+ var entry = entries[index];
1094
+ this.set(entry[0], entry[1]);
1095
+ }
1096
+ }
1097
+ MapCache.prototype.clear = mapCacheClear;
1098
+ MapCache.prototype["delete"] = mapCacheDelete;
1099
+ MapCache.prototype.get = mapCacheGet;
1100
+ MapCache.prototype.has = mapCacheHas;
1101
+ MapCache.prototype.set = mapCacheSet;
1102
+ module.exports = MapCache;
1103
+ }
1104
+ });
1105
+
1106
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js
1107
+ var require_stackSet = __commonJS({
1108
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js"(exports, module) {
1109
+ var ListCache = require_ListCache();
1110
+ var Map = require_Map();
1111
+ var MapCache = require_MapCache();
1112
+ var LARGE_ARRAY_SIZE = 200;
1113
+ function stackSet(key, value) {
1114
+ var data = this.__data__;
1115
+ if (data instanceof ListCache) {
1116
+ var pairs = data.__data__;
1117
+ if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
1118
+ pairs.push([key, value]);
1119
+ this.size = ++data.size;
1120
+ return this;
1121
+ }
1122
+ data = this.__data__ = new MapCache(pairs);
1123
+ }
1124
+ data.set(key, value);
1125
+ this.size = data.size;
1126
+ return this;
1127
+ }
1128
+ module.exports = stackSet;
1129
+ }
1130
+ });
1131
+
1132
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js
1133
+ var require_Stack = __commonJS({
1134
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js"(exports, module) {
1135
+ var ListCache = require_ListCache();
1136
+ var stackClear = require_stackClear();
1137
+ var stackDelete = require_stackDelete();
1138
+ var stackGet = require_stackGet();
1139
+ var stackHas = require_stackHas();
1140
+ var stackSet = require_stackSet();
1141
+ function Stack(entries) {
1142
+ var data = this.__data__ = new ListCache(entries);
1143
+ this.size = data.size;
1144
+ }
1145
+ Stack.prototype.clear = stackClear;
1146
+ Stack.prototype["delete"] = stackDelete;
1147
+ Stack.prototype.get = stackGet;
1148
+ Stack.prototype.has = stackHas;
1149
+ Stack.prototype.set = stackSet;
1150
+ module.exports = Stack;
1151
+ }
1152
+ });
1153
+
1154
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js
1155
+ var require_defineProperty = __commonJS({
1156
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js"(exports, module) {
1157
+ var getNative = require_getNative();
1158
+ var defineProperty = function() {
1159
+ try {
1160
+ var func = getNative(Object, "defineProperty");
1161
+ func({}, "", {});
1162
+ return func;
1163
+ } catch (e) {
1164
+ }
1165
+ }();
1166
+ module.exports = defineProperty;
1167
+ }
1168
+ });
1169
+
1170
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js
1171
+ var require_baseAssignValue = __commonJS({
1172
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js"(exports, module) {
1173
+ var defineProperty = require_defineProperty();
1174
+ function baseAssignValue(object, key, value) {
1175
+ if (key == "__proto__" && defineProperty) {
1176
+ defineProperty(object, key, {
1177
+ "configurable": true,
1178
+ "enumerable": true,
1179
+ "value": value,
1180
+ "writable": true
1181
+ });
1182
+ } else {
1183
+ object[key] = value;
1184
+ }
1185
+ }
1186
+ module.exports = baseAssignValue;
1187
+ }
1188
+ });
1189
+
1190
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignMergeValue.js
1191
+ var require_assignMergeValue = __commonJS({
1192
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignMergeValue.js"(exports, module) {
1193
+ var baseAssignValue = require_baseAssignValue();
1194
+ var eq = require_eq();
1195
+ function assignMergeValue(object, key, value) {
1196
+ if (value !== void 0 && !eq(object[key], value) || value === void 0 && !(key in object)) {
1197
+ baseAssignValue(object, key, value);
1198
+ }
1199
+ }
1200
+ module.exports = assignMergeValue;
1201
+ }
1202
+ });
1203
+
1204
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createBaseFor.js
1205
+ var require_createBaseFor = __commonJS({
1206
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createBaseFor.js"(exports, module) {
1207
+ function createBaseFor(fromRight) {
1208
+ return function(object, iteratee, keysFunc) {
1209
+ var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
1210
+ while (length--) {
1211
+ var key = props[fromRight ? length : ++index];
1212
+ if (iteratee(iterable[key], key, iterable) === false) {
1213
+ break;
1214
+ }
1215
+ }
1216
+ return object;
1217
+ };
1218
+ }
1219
+ module.exports = createBaseFor;
1220
+ }
1221
+ });
1222
+
1223
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFor.js
1224
+ var require_baseFor = __commonJS({
1225
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFor.js"(exports, module) {
1226
+ var createBaseFor = require_createBaseFor();
1227
+ var baseFor = createBaseFor();
1228
+ module.exports = baseFor;
1229
+ }
1230
+ });
1231
+
1232
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneBuffer.js
1233
+ var require_cloneBuffer = __commonJS({
1234
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneBuffer.js"(exports, module) {
1235
+ var root = require_root();
1236
+ var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
1237
+ var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
1238
+ var moduleExports = freeModule && freeModule.exports === freeExports;
1239
+ var Buffer2 = moduleExports ? root.Buffer : void 0;
1240
+ var allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0;
1241
+ function cloneBuffer(buffer, isDeep) {
1242
+ if (isDeep) {
1243
+ return buffer.slice();
1244
+ }
1245
+ var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
1246
+ buffer.copy(result);
1247
+ return result;
1248
+ }
1249
+ module.exports = cloneBuffer;
1250
+ }
1251
+ });
1252
+
1253
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js
1254
+ var require_Uint8Array = __commonJS({
1255
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js"(exports, module) {
1256
+ var root = require_root();
1257
+ var Uint8Array2 = root.Uint8Array;
1258
+ module.exports = Uint8Array2;
1259
+ }
1260
+ });
1261
+
1262
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneArrayBuffer.js
1263
+ var require_cloneArrayBuffer = __commonJS({
1264
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneArrayBuffer.js"(exports, module) {
1265
+ var Uint8Array2 = require_Uint8Array();
1266
+ function cloneArrayBuffer(arrayBuffer) {
1267
+ var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
1268
+ new Uint8Array2(result).set(new Uint8Array2(arrayBuffer));
1269
+ return result;
1270
+ }
1271
+ module.exports = cloneArrayBuffer;
1272
+ }
1273
+ });
1274
+
1275
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneTypedArray.js
1276
+ var require_cloneTypedArray = __commonJS({
1277
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneTypedArray.js"(exports, module) {
1278
+ var cloneArrayBuffer = require_cloneArrayBuffer();
1279
+ function cloneTypedArray(typedArray, isDeep) {
1280
+ var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
1281
+ return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
1282
+ }
1283
+ module.exports = cloneTypedArray;
1284
+ }
1285
+ });
1286
+
1287
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyArray.js
1288
+ var require_copyArray = __commonJS({
1289
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyArray.js"(exports, module) {
1290
+ function copyArray(source, array) {
1291
+ var index = -1, length = source.length;
1292
+ array || (array = Array(length));
1293
+ while (++index < length) {
1294
+ array[index] = source[index];
1295
+ }
1296
+ return array;
1297
+ }
1298
+ module.exports = copyArray;
1299
+ }
1300
+ });
1301
+
1302
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseCreate.js
1303
+ var require_baseCreate = __commonJS({
1304
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseCreate.js"(exports, module) {
1305
+ var isObject = require_isObject();
1306
+ var objectCreate = Object.create;
1307
+ var baseCreate = /* @__PURE__ */ function() {
1308
+ function object() {
1309
+ }
1310
+ return function(proto) {
1311
+ if (!isObject(proto)) {
1312
+ return {};
1313
+ }
1314
+ if (objectCreate) {
1315
+ return objectCreate(proto);
1316
+ }
1317
+ object.prototype = proto;
1318
+ var result = new object();
1319
+ object.prototype = void 0;
1320
+ return result;
1321
+ };
1322
+ }();
1323
+ module.exports = baseCreate;
1324
+ }
1325
+ });
1326
+
1327
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js
1328
+ var require_overArg = __commonJS({
1329
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js"(exports, module) {
1330
+ function overArg(func, transform) {
1331
+ return function(arg) {
1332
+ return func(transform(arg));
1333
+ };
1334
+ }
1335
+ module.exports = overArg;
1336
+ }
1337
+ });
1338
+
1339
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getPrototype.js
1340
+ var require_getPrototype = __commonJS({
1341
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getPrototype.js"(exports, module) {
1342
+ var overArg = require_overArg();
1343
+ var getPrototype = overArg(Object.getPrototypeOf, Object);
1344
+ module.exports = getPrototype;
1345
+ }
1346
+ });
1347
+
1348
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js
1349
+ var require_isPrototype = __commonJS({
1350
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js"(exports, module) {
1351
+ var objectProto = Object.prototype;
1352
+ function isPrototype(value) {
1353
+ var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
1354
+ return value === proto;
1355
+ }
1356
+ module.exports = isPrototype;
1357
+ }
1358
+ });
1359
+
1360
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_initCloneObject.js
1361
+ var require_initCloneObject = __commonJS({
1362
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_initCloneObject.js"(exports, module) {
1363
+ var baseCreate = require_baseCreate();
1364
+ var getPrototype = require_getPrototype();
1365
+ var isPrototype = require_isPrototype();
1366
+ function initCloneObject(object) {
1367
+ return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
1368
+ }
1369
+ module.exports = initCloneObject;
1370
+ }
1371
+ });
1372
+
1373
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js
1374
+ var require_isObjectLike = __commonJS({
1375
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js"(exports, module) {
1376
+ function isObjectLike(value) {
1377
+ return value != null && typeof value == "object";
1378
+ }
1379
+ module.exports = isObjectLike;
1380
+ }
1381
+ });
1382
+
1383
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsArguments.js
1384
+ var require_baseIsArguments = __commonJS({
1385
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsArguments.js"(exports, module) {
1386
+ var baseGetTag = require_baseGetTag();
1387
+ var isObjectLike = require_isObjectLike();
1388
+ var argsTag = "[object Arguments]";
1389
+ function baseIsArguments(value) {
1390
+ return isObjectLike(value) && baseGetTag(value) == argsTag;
1391
+ }
1392
+ module.exports = baseIsArguments;
1393
+ }
1394
+ });
1395
+
1396
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArguments.js
1397
+ var require_isArguments = __commonJS({
1398
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArguments.js"(exports, module) {
1399
+ var baseIsArguments = require_baseIsArguments();
1400
+ var isObjectLike = require_isObjectLike();
1401
+ var objectProto = Object.prototype;
1402
+ var hasOwnProperty = objectProto.hasOwnProperty;
1403
+ var propertyIsEnumerable = objectProto.propertyIsEnumerable;
1404
+ var isArguments = baseIsArguments(/* @__PURE__ */ function() {
1405
+ return arguments;
1406
+ }()) ? baseIsArguments : function(value) {
1407
+ return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
1408
+ };
1409
+ module.exports = isArguments;
1410
+ }
1411
+ });
1412
+
1413
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js
1414
+ var require_isArray = __commonJS({
1415
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js"(exports, module) {
1416
+ var isArray = Array.isArray;
1417
+ module.exports = isArray;
1418
+ }
1419
+ });
1420
+
1421
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js
1422
+ var require_isLength = __commonJS({
1423
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js"(exports, module) {
1424
+ var MAX_SAFE_INTEGER = 9007199254740991;
1425
+ function isLength(value) {
1426
+ return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
1427
+ }
1428
+ module.exports = isLength;
1429
+ }
1430
+ });
1431
+
1432
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js
1433
+ var require_isArrayLike = __commonJS({
1434
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js"(exports, module) {
1435
+ var isFunction = require_isFunction();
1436
+ var isLength = require_isLength();
1437
+ function isArrayLike(value) {
1438
+ return value != null && isLength(value.length) && !isFunction(value);
1439
+ }
1440
+ module.exports = isArrayLike;
1441
+ }
1442
+ });
1443
+
1444
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js
1445
+ var require_isArrayLikeObject = __commonJS({
1446
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js"(exports, module) {
1447
+ var isArrayLike = require_isArrayLike();
1448
+ var isObjectLike = require_isObjectLike();
1449
+ function isArrayLikeObject(value) {
1450
+ return isObjectLike(value) && isArrayLike(value);
1451
+ }
1452
+ module.exports = isArrayLikeObject;
1453
+ }
1454
+ });
1455
+
1456
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js
1457
+ var require_stubFalse = __commonJS({
1458
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js"(exports, module) {
1459
+ function stubFalse() {
1460
+ return false;
1461
+ }
1462
+ module.exports = stubFalse;
1463
+ }
1464
+ });
1465
+
1466
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isBuffer.js
1467
+ var require_isBuffer = __commonJS({
1468
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isBuffer.js"(exports, module) {
1469
+ var root = require_root();
1470
+ var stubFalse = require_stubFalse();
1471
+ var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
1472
+ var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
1473
+ var moduleExports = freeModule && freeModule.exports === freeExports;
1474
+ var Buffer2 = moduleExports ? root.Buffer : void 0;
1475
+ var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0;
1476
+ var isBuffer = nativeIsBuffer || stubFalse;
1477
+ module.exports = isBuffer;
1478
+ }
1479
+ });
1480
+
1481
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js
1482
+ var require_isPlainObject = __commonJS({
1483
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js"(exports, module) {
1484
+ var baseGetTag = require_baseGetTag();
1485
+ var getPrototype = require_getPrototype();
1486
+ var isObjectLike = require_isObjectLike();
1487
+ var objectTag = "[object Object]";
1488
+ var funcProto = Function.prototype;
1489
+ var objectProto = Object.prototype;
1490
+ var funcToString = funcProto.toString;
1491
+ var hasOwnProperty = objectProto.hasOwnProperty;
1492
+ var objectCtorString = funcToString.call(Object);
1493
+ function isPlainObject(value) {
1494
+ if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
1495
+ return false;
1496
+ }
1497
+ var proto = getPrototype(value);
1498
+ if (proto === null) {
1499
+ return true;
1500
+ }
1501
+ var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
1502
+ return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
1503
+ }
1504
+ module.exports = isPlainObject;
1505
+ }
1506
+ });
1507
+
1508
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsTypedArray.js
1509
+ var require_baseIsTypedArray = __commonJS({
1510
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsTypedArray.js"(exports, module) {
1511
+ var baseGetTag = require_baseGetTag();
1512
+ var isLength = require_isLength();
1513
+ var isObjectLike = require_isObjectLike();
1514
+ var argsTag = "[object Arguments]";
1515
+ var arrayTag = "[object Array]";
1516
+ var boolTag = "[object Boolean]";
1517
+ var dateTag = "[object Date]";
1518
+ var errorTag = "[object Error]";
1519
+ var funcTag = "[object Function]";
1520
+ var mapTag = "[object Map]";
1521
+ var numberTag = "[object Number]";
1522
+ var objectTag = "[object Object]";
1523
+ var regexpTag = "[object RegExp]";
1524
+ var setTag = "[object Set]";
1525
+ var stringTag = "[object String]";
1526
+ var weakMapTag = "[object WeakMap]";
1527
+ var arrayBufferTag = "[object ArrayBuffer]";
1528
+ var dataViewTag = "[object DataView]";
1529
+ var float32Tag = "[object Float32Array]";
1530
+ var float64Tag = "[object Float64Array]";
1531
+ var int8Tag = "[object Int8Array]";
1532
+ var int16Tag = "[object Int16Array]";
1533
+ var int32Tag = "[object Int32Array]";
1534
+ var uint8Tag = "[object Uint8Array]";
1535
+ var uint8ClampedTag = "[object Uint8ClampedArray]";
1536
+ var uint16Tag = "[object Uint16Array]";
1537
+ var uint32Tag = "[object Uint32Array]";
1538
+ var typedArrayTags = {};
1539
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
1540
+ typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
1541
+ function baseIsTypedArray(value) {
1542
+ return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
1543
+ }
1544
+ module.exports = baseIsTypedArray;
1545
+ }
1546
+ });
1547
+
1548
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js
1549
+ var require_baseUnary = __commonJS({
1550
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js"(exports, module) {
1551
+ function baseUnary(func) {
1552
+ return function(value) {
1553
+ return func(value);
1554
+ };
1555
+ }
1556
+ module.exports = baseUnary;
1557
+ }
1558
+ });
1559
+
1560
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nodeUtil.js
1561
+ var require_nodeUtil = __commonJS({
1562
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nodeUtil.js"(exports, module) {
1563
+ var freeGlobal = require_freeGlobal();
1564
+ var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
1565
+ var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
1566
+ var moduleExports = freeModule && freeModule.exports === freeExports;
1567
+ var freeProcess = moduleExports && freeGlobal.process;
1568
+ var nodeUtil = function() {
1569
+ try {
1570
+ var types = freeModule && freeModule.require && freeModule.require("util").types;
1571
+ if (types) {
1572
+ return types;
1573
+ }
1574
+ return freeProcess && freeProcess.binding && freeProcess.binding("util");
1575
+ } catch (e) {
1576
+ }
1577
+ }();
1578
+ module.exports = nodeUtil;
1579
+ }
1580
+ });
1581
+
1582
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isTypedArray.js
1583
+ var require_isTypedArray = __commonJS({
1584
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isTypedArray.js"(exports, module) {
1585
+ var baseIsTypedArray = require_baseIsTypedArray();
1586
+ var baseUnary = require_baseUnary();
1587
+ var nodeUtil = require_nodeUtil();
1588
+ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
1589
+ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
1590
+ module.exports = isTypedArray;
1591
+ }
1592
+ });
1593
+
1594
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_safeGet.js
1595
+ var require_safeGet = __commonJS({
1596
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_safeGet.js"(exports, module) {
1597
+ function safeGet(object, key) {
1598
+ if (key === "constructor" && typeof object[key] === "function") {
1599
+ return;
1600
+ }
1601
+ if (key == "__proto__") {
1602
+ return;
1603
+ }
1604
+ return object[key];
1605
+ }
1606
+ module.exports = safeGet;
1607
+ }
1608
+ });
1609
+
1610
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js
1611
+ var require_assignValue = __commonJS({
1612
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js"(exports, module) {
1613
+ var baseAssignValue = require_baseAssignValue();
1614
+ var eq = require_eq();
1615
+ var objectProto = Object.prototype;
1616
+ var hasOwnProperty = objectProto.hasOwnProperty;
1617
+ function assignValue(object, key, value) {
1618
+ var objValue = object[key];
1619
+ if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
1620
+ baseAssignValue(object, key, value);
1621
+ }
1622
+ }
1623
+ module.exports = assignValue;
1624
+ }
1625
+ });
1626
+
1627
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyObject.js
1628
+ var require_copyObject = __commonJS({
1629
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyObject.js"(exports, module) {
1630
+ var assignValue = require_assignValue();
1631
+ var baseAssignValue = require_baseAssignValue();
1632
+ function copyObject(source, props, object, customizer) {
1633
+ var isNew = !object;
1634
+ object || (object = {});
1635
+ var index = -1, length = props.length;
1636
+ while (++index < length) {
1637
+ var key = props[index];
1638
+ var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
1639
+ if (newValue === void 0) {
1640
+ newValue = source[key];
1641
+ }
1642
+ if (isNew) {
1643
+ baseAssignValue(object, key, newValue);
1644
+ } else {
1645
+ assignValue(object, key, newValue);
1646
+ }
1647
+ }
1648
+ return object;
1649
+ }
1650
+ module.exports = copyObject;
1651
+ }
1652
+ });
1653
+
1654
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js
1655
+ var require_baseTimes = __commonJS({
1656
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js"(exports, module) {
1657
+ function baseTimes(n, iteratee) {
1658
+ var index = -1, result = Array(n);
1659
+ while (++index < n) {
1660
+ result[index] = iteratee(index);
1661
+ }
1662
+ return result;
1663
+ }
1664
+ module.exports = baseTimes;
1665
+ }
1666
+ });
1667
+
1668
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js
1669
+ var require_isIndex = __commonJS({
1670
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js"(exports, module) {
1671
+ var MAX_SAFE_INTEGER = 9007199254740991;
1672
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
1673
+ function isIndex(value, length) {
1674
+ var type = typeof value;
1675
+ length = length == null ? MAX_SAFE_INTEGER : length;
1676
+ return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
1677
+ }
1678
+ module.exports = isIndex;
1679
+ }
1680
+ });
1681
+
1682
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js
1683
+ var require_arrayLikeKeys = __commonJS({
1684
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js"(exports, module) {
1685
+ var baseTimes = require_baseTimes();
1686
+ var isArguments = require_isArguments();
1687
+ var isArray = require_isArray();
1688
+ var isBuffer = require_isBuffer();
1689
+ var isIndex = require_isIndex();
1690
+ var isTypedArray = require_isTypedArray();
1691
+ var objectProto = Object.prototype;
1692
+ var hasOwnProperty = objectProto.hasOwnProperty;
1693
+ function arrayLikeKeys(value, inherited) {
1694
+ var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
1695
+ for (var key in value) {
1696
+ if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
1697
+ (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
1698
+ isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
1699
+ isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
1700
+ isIndex(key, length)))) {
1701
+ result.push(key);
1702
+ }
1703
+ }
1704
+ return result;
1705
+ }
1706
+ module.exports = arrayLikeKeys;
1707
+ }
1708
+ });
1709
+
1710
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.js
1711
+ var require_nativeKeysIn = __commonJS({
1712
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.js"(exports, module) {
1713
+ function nativeKeysIn(object) {
1714
+ var result = [];
1715
+ if (object != null) {
1716
+ for (var key in Object(object)) {
1717
+ result.push(key);
1718
+ }
1719
+ }
1720
+ return result;
1721
+ }
1722
+ module.exports = nativeKeysIn;
1723
+ }
1724
+ });
1725
+
1726
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeysIn.js
1727
+ var require_baseKeysIn = __commonJS({
1728
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeysIn.js"(exports, module) {
1729
+ var isObject = require_isObject();
1730
+ var isPrototype = require_isPrototype();
1731
+ var nativeKeysIn = require_nativeKeysIn();
1732
+ var objectProto = Object.prototype;
1733
+ var hasOwnProperty = objectProto.hasOwnProperty;
1734
+ function baseKeysIn(object) {
1735
+ if (!isObject(object)) {
1736
+ return nativeKeysIn(object);
1737
+ }
1738
+ var isProto = isPrototype(object), result = [];
1739
+ for (var key in object) {
1740
+ if (!(key == "constructor" && (isProto || !hasOwnProperty.call(object, key)))) {
1741
+ result.push(key);
1742
+ }
1743
+ }
1744
+ return result;
1745
+ }
1746
+ module.exports = baseKeysIn;
1747
+ }
1748
+ });
1749
+
1750
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keysIn.js
1751
+ var require_keysIn = __commonJS({
1752
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keysIn.js"(exports, module) {
1753
+ var arrayLikeKeys = require_arrayLikeKeys();
1754
+ var baseKeysIn = require_baseKeysIn();
1755
+ var isArrayLike = require_isArrayLike();
1756
+ function keysIn(object) {
1757
+ return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
1758
+ }
1759
+ module.exports = keysIn;
1760
+ }
1761
+ });
1762
+
1763
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toPlainObject.js
1764
+ var require_toPlainObject = __commonJS({
1765
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toPlainObject.js"(exports, module) {
1766
+ var copyObject = require_copyObject();
1767
+ var keysIn = require_keysIn();
1768
+ function toPlainObject(value) {
1769
+ return copyObject(value, keysIn(value));
1770
+ }
1771
+ module.exports = toPlainObject;
1772
+ }
1773
+ });
1774
+
1775
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMergeDeep.js
1776
+ var require_baseMergeDeep = __commonJS({
1777
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMergeDeep.js"(exports, module) {
1778
+ var assignMergeValue = require_assignMergeValue();
1779
+ var cloneBuffer = require_cloneBuffer();
1780
+ var cloneTypedArray = require_cloneTypedArray();
1781
+ var copyArray = require_copyArray();
1782
+ var initCloneObject = require_initCloneObject();
1783
+ var isArguments = require_isArguments();
1784
+ var isArray = require_isArray();
1785
+ var isArrayLikeObject = require_isArrayLikeObject();
1786
+ var isBuffer = require_isBuffer();
1787
+ var isFunction = require_isFunction();
1788
+ var isObject = require_isObject();
1789
+ var isPlainObject = require_isPlainObject();
1790
+ var isTypedArray = require_isTypedArray();
1791
+ var safeGet = require_safeGet();
1792
+ var toPlainObject = require_toPlainObject();
1793
+ function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
1794
+ var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue);
1795
+ if (stacked) {
1796
+ assignMergeValue(object, key, stacked);
1797
+ return;
1798
+ }
1799
+ var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : void 0;
1800
+ var isCommon = newValue === void 0;
1801
+ if (isCommon) {
1802
+ var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue);
1803
+ newValue = srcValue;
1804
+ if (isArr || isBuff || isTyped) {
1805
+ if (isArray(objValue)) {
1806
+ newValue = objValue;
1807
+ } else if (isArrayLikeObject(objValue)) {
1808
+ newValue = copyArray(objValue);
1809
+ } else if (isBuff) {
1810
+ isCommon = false;
1811
+ newValue = cloneBuffer(srcValue, true);
1812
+ } else if (isTyped) {
1813
+ isCommon = false;
1814
+ newValue = cloneTypedArray(srcValue, true);
1815
+ } else {
1816
+ newValue = [];
1817
+ }
1818
+ } else if (isPlainObject(srcValue) || isArguments(srcValue)) {
1819
+ newValue = objValue;
1820
+ if (isArguments(objValue)) {
1821
+ newValue = toPlainObject(objValue);
1822
+ } else if (!isObject(objValue) || isFunction(objValue)) {
1823
+ newValue = initCloneObject(srcValue);
1824
+ }
1825
+ } else {
1826
+ isCommon = false;
1827
+ }
1828
+ }
1829
+ if (isCommon) {
1830
+ stack.set(srcValue, newValue);
1831
+ mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
1832
+ stack["delete"](srcValue);
1833
+ }
1834
+ assignMergeValue(object, key, newValue);
1835
+ }
1836
+ module.exports = baseMergeDeep;
1837
+ }
1838
+ });
1839
+
1840
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMerge.js
1841
+ var require_baseMerge = __commonJS({
1842
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMerge.js"(exports, module) {
1843
+ var Stack = require_Stack();
1844
+ var assignMergeValue = require_assignMergeValue();
1845
+ var baseFor = require_baseFor();
1846
+ var baseMergeDeep = require_baseMergeDeep();
1847
+ var isObject = require_isObject();
1848
+ var keysIn = require_keysIn();
1849
+ var safeGet = require_safeGet();
1850
+ function baseMerge(object, source, srcIndex, customizer, stack) {
1851
+ if (object === source) {
1852
+ return;
1853
+ }
1854
+ baseFor(source, function(srcValue, key) {
1855
+ stack || (stack = new Stack());
1856
+ if (isObject(srcValue)) {
1857
+ baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
1858
+ } else {
1859
+ var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : void 0;
1860
+ if (newValue === void 0) {
1861
+ newValue = srcValue;
1862
+ }
1863
+ assignMergeValue(object, key, newValue);
1864
+ }
1865
+ }, keysIn);
1866
+ }
1867
+ module.exports = baseMerge;
1868
+ }
1869
+ });
1870
+
1871
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js
1872
+ var require_identity = __commonJS({
1873
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js"(exports, module) {
1874
+ function identity(value) {
1875
+ return value;
1876
+ }
1877
+ module.exports = identity;
1878
+ }
1879
+ });
1880
+
1881
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_apply.js
1882
+ var require_apply = __commonJS({
1883
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_apply.js"(exports, module) {
1884
+ function apply(func, thisArg, args) {
1885
+ switch (args.length) {
1886
+ case 0:
1887
+ return func.call(thisArg);
1888
+ case 1:
1889
+ return func.call(thisArg, args[0]);
1890
+ case 2:
1891
+ return func.call(thisArg, args[0], args[1]);
1892
+ case 3:
1893
+ return func.call(thisArg, args[0], args[1], args[2]);
1894
+ }
1895
+ return func.apply(thisArg, args);
1896
+ }
1897
+ module.exports = apply;
1898
+ }
1899
+ });
1900
+
1901
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overRest.js
1902
+ var require_overRest = __commonJS({
1903
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overRest.js"(exports, module) {
1904
+ var apply = require_apply();
1905
+ var nativeMax = Math.max;
1906
+ function overRest(func, start, transform) {
1907
+ start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
1908
+ return function() {
1909
+ var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
1910
+ while (++index < length) {
1911
+ array[index] = args[start + index];
1912
+ }
1913
+ index = -1;
1914
+ var otherArgs = Array(start + 1);
1915
+ while (++index < start) {
1916
+ otherArgs[index] = args[index];
1917
+ }
1918
+ otherArgs[start] = transform(array);
1919
+ return apply(func, this, otherArgs);
1920
+ };
1921
+ }
1922
+ module.exports = overRest;
1923
+ }
1924
+ });
1925
+
1926
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js
1927
+ var require_constant = __commonJS({
1928
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js"(exports, module) {
1929
+ function constant(value) {
1930
+ return function() {
1931
+ return value;
1932
+ };
1933
+ }
1934
+ module.exports = constant;
1935
+ }
1936
+ });
1937
+
1938
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSetToString.js
1939
+ var require_baseSetToString = __commonJS({
1940
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSetToString.js"(exports, module) {
1941
+ var constant = require_constant();
1942
+ var defineProperty = require_defineProperty();
1943
+ var identity = require_identity();
1944
+ var baseSetToString = !defineProperty ? identity : function(func, string) {
1945
+ return defineProperty(func, "toString", {
1946
+ "configurable": true,
1947
+ "enumerable": false,
1948
+ "value": constant(string),
1949
+ "writable": true
1950
+ });
1951
+ };
1952
+ module.exports = baseSetToString;
1953
+ }
1954
+ });
1955
+
1956
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_shortOut.js
1957
+ var require_shortOut = __commonJS({
1958
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_shortOut.js"(exports, module) {
1959
+ var HOT_COUNT = 800;
1960
+ var HOT_SPAN = 16;
1961
+ var nativeNow = Date.now;
1962
+ function shortOut(func) {
1963
+ var count = 0, lastCalled = 0;
1964
+ return function() {
1965
+ var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
1966
+ lastCalled = stamp;
1967
+ if (remaining > 0) {
1968
+ if (++count >= HOT_COUNT) {
1969
+ return arguments[0];
1970
+ }
1971
+ } else {
1972
+ count = 0;
1973
+ }
1974
+ return func.apply(void 0, arguments);
1975
+ };
1976
+ }
1977
+ module.exports = shortOut;
1978
+ }
1979
+ });
1980
+
1981
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToString.js
1982
+ var require_setToString = __commonJS({
1983
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToString.js"(exports, module) {
1984
+ var baseSetToString = require_baseSetToString();
1985
+ var shortOut = require_shortOut();
1986
+ var setToString = shortOut(baseSetToString);
1987
+ module.exports = setToString;
1988
+ }
1989
+ });
1990
+
1991
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js
1992
+ var require_baseRest = __commonJS({
1993
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js"(exports, module) {
1994
+ var identity = require_identity();
1995
+ var overRest = require_overRest();
1996
+ var setToString = require_setToString();
1997
+ function baseRest(func, start) {
1998
+ return setToString(overRest(func, start, identity), func + "");
1999
+ }
2000
+ module.exports = baseRest;
2001
+ }
2002
+ });
2003
+
2004
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js
2005
+ var require_isIterateeCall = __commonJS({
2006
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js"(exports, module) {
2007
+ var eq = require_eq();
2008
+ var isArrayLike = require_isArrayLike();
2009
+ var isIndex = require_isIndex();
2010
+ var isObject = require_isObject();
2011
+ function isIterateeCall(value, index, object) {
2012
+ if (!isObject(object)) {
2013
+ return false;
2014
+ }
2015
+ var type = typeof index;
2016
+ if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) {
2017
+ return eq(object[index], value);
2018
+ }
2019
+ return false;
2020
+ }
2021
+ module.exports = isIterateeCall;
2022
+ }
2023
+ });
2024
+
2025
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createAssigner.js
2026
+ var require_createAssigner = __commonJS({
2027
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createAssigner.js"(exports, module) {
2028
+ var baseRest = require_baseRest();
2029
+ var isIterateeCall = require_isIterateeCall();
2030
+ function createAssigner(assigner) {
2031
+ return baseRest(function(object, sources) {
2032
+ var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
2033
+ customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0;
2034
+ if (guard && isIterateeCall(sources[0], sources[1], guard)) {
2035
+ customizer = length < 3 ? void 0 : customizer;
2036
+ length = 1;
2037
+ }
2038
+ object = Object(object);
2039
+ while (++index < length) {
2040
+ var source = sources[index];
2041
+ if (source) {
2042
+ assigner(object, source, index, customizer);
2043
+ }
2044
+ }
2045
+ return object;
2046
+ });
2047
+ }
2048
+ module.exports = createAssigner;
2049
+ }
2050
+ });
2051
+
2052
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/merge.js
2053
+ var require_merge = __commonJS({
2054
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/merge.js"(exports, module) {
2055
+ var baseMerge = require_baseMerge();
2056
+ var createAssigner = require_createAssigner();
2057
+ var merge2 = createAssigner(function(object, source, srcIndex) {
2058
+ baseMerge(object, source, srcIndex);
2059
+ });
2060
+ module.exports = merge2;
2061
+ }
2062
+ });
2063
+
2064
+ // src/prompts.ts
2065
+ var validRequiredString = (value, key) => {
2066
+ if (typeof value !== "string" || value.trim() === "") {
2067
+ return `${key} is required`;
2068
+ }
2069
+ return true;
2070
+ };
2071
+ function createDefaultPrompts(templates, packages2) {
2072
+ return [
2073
+ {
2074
+ type: "input",
2075
+ name: "projectName",
2076
+ message: "Project name",
2077
+ validate: (value) => validRequiredString(value, "Project name")
2078
+ },
2079
+ {
2080
+ type: "list",
2081
+ name: "template",
2082
+ message: "Template name",
2083
+ choices: [...templates, ...packages2]
2084
+ }
2085
+ ];
2086
+ }
2087
+ function createPackagePrompts(templates) {
2088
+ return [
2089
+ {
2090
+ type: "checkbox",
2091
+ name: "subPackages",
2092
+ message: "Sub package names",
2093
+ choices: templates
2094
+ }
2095
+ ];
2096
+ }
2097
+
2098
+ // src/Copyer.ts
2099
+ var import_ignore = __toESM(require_ignore());
2100
+ var Util = class {
2101
+ static ensureDir(dir) {
2102
+ if (!existsSync(dir)) {
2103
+ mkdirSync(dir, { recursive: true });
2104
+ }
2105
+ }
2106
+ };
2107
+
2108
+ // src/Copyer.ts
2109
+ var { copyFile, stat } = promises;
2110
+ var Copyer = class _Copyer {
2111
+ constructor(ignoreTargetPath, ignoreFile = _Copyer.IGNORE_FILE) {
2112
+ this.ignoreTargetPath = ignoreTargetPath;
2113
+ this.ignoreFile = ignoreFile;
2114
+ }
2115
+ static IGNORE_FILE = ".gitignore.template";
2116
+ getIg(targetDir = this.ignoreTargetPath) {
2117
+ const gitignorePath = join(targetDir, this.ignoreFile);
2118
+ if (!existsSync(gitignorePath)) {
2119
+ return;
2120
+ }
2121
+ const gitignoreContent = readFileSync(gitignorePath, "utf8");
2122
+ const ignoreToClean = gitignoreContent.split("\n").map((line) => line.trim()).filter((line) => line && !line.startsWith("#"));
2123
+ const allRules = ignoreToClean;
2124
+ return (0, import_ignore.default)().add(allRules);
2125
+ }
2126
+ /**
2127
+ * Asynchronously copy files from source to target directory.
2128
+ * @param {string} sourcePath - Source directory.
2129
+ * @param {string} targetDir - Target directory.
2130
+ * @param {ignore.Ignore} ig - Ignore rules.
2131
+ * @returns {Promise<void>} - A promise that resolves when the copy is complete.
2132
+ * @example
2133
+ * await copyer.copyFilesPromise('src', 'dest', ignoreInstance);
2134
+ */
2135
+ async copyFiles(sourcePath, targetDir, ig, copyCallback) {
2136
+ const items = await promises.readdir(sourcePath);
2137
+ await Promise.all(
2138
+ items.map(async (item) => {
2139
+ const sourceFilePath = join(sourcePath, item);
2140
+ const targetFilePath = join(targetDir, item);
2141
+ if (ig && ig.ignores(item)) {
2142
+ return;
2143
+ }
2144
+ Util.ensureDir(dirname(targetFilePath));
2145
+ const fileStat = await stat(sourceFilePath);
2146
+ if (fileStat.isDirectory()) {
2147
+ await this.copyFiles(
2148
+ sourceFilePath,
2149
+ targetFilePath,
2150
+ ig,
2151
+ copyCallback
2152
+ );
2153
+ } else {
2154
+ if (copyCallback && await copyCallback(sourceFilePath, targetFilePath)) {
2155
+ return;
2156
+ }
2157
+ await copyFile(sourceFilePath, targetFilePath);
2158
+ }
2159
+ })
2160
+ );
2161
+ }
2162
+ copyPaths({
2163
+ sourcePath,
2164
+ targetPath,
2165
+ copyCallback
2166
+ }) {
2167
+ Util.ensureDir(targetPath);
2168
+ const ig = this.getIg();
2169
+ return this.copyFiles(sourcePath, targetPath, ig, copyCallback);
2170
+ }
2171
+ };
2172
+
2173
+ // src/Compose.ts
2174
+ var import_merge = __toESM(require_merge());
2175
+ var Compose = class {
2176
+ constructor() {
2177
+ }
2178
+ isJSONFilePath(filePath) {
2179
+ return filePath.endsWith(".json") || filePath.endsWith(".json.template");
2180
+ }
2181
+ isTemplateFilePath(filePath) {
2182
+ return filePath.endsWith(".template");
2183
+ }
2184
+ getRealTemplateFilePath(filePath) {
2185
+ return filePath.replace(".template", "");
2186
+ }
2187
+ readFile(filePath) {
2188
+ return readFileSync(filePath, "utf-8");
2189
+ }
2190
+ readJSONFile(filePath) {
2191
+ return JSON.parse(this.readFile(filePath));
2192
+ }
2193
+ writeFile(filePath, content) {
2194
+ writeFileSync(this.getRealTemplateFilePath(filePath), content, {
2195
+ encoding: "utf-8"
2196
+ });
2197
+ }
2198
+ replaceFile(targetFilePath, context) {
2199
+ let targetFileContent = this.readFile(targetFilePath);
2200
+ Object.keys(context).forEach((key) => {
2201
+ const value = context[key];
2202
+ targetFileContent = targetFileContent.replace(
2203
+ new RegExp(`\\[TPL:${key}\\]`, "g"),
2204
+ typeof value === "string" ? value : JSON.stringify(value)
2205
+ );
2206
+ });
2207
+ return targetFileContent;
2208
+ }
2209
+ mergeJSONFile(targetJSONFilePath, sourceJSONContent) {
2210
+ const targetFileContent = this.readJSONFile(targetJSONFilePath);
2211
+ const composedFileContent = (0, import_merge.default)(sourceJSONContent, targetFileContent);
2212
+ this.writeFile(
2213
+ targetJSONFilePath,
2214
+ JSON.stringify(composedFileContent, null, 2)
2215
+ );
2216
+ }
2217
+ composeConfigFile(context, sourceFilePath, targetFilePath) {
2218
+ if (this.isTemplateFilePath(sourceFilePath)) {
2219
+ const fileContent = this.replaceFile(
2220
+ sourceFilePath,
2221
+ context
2222
+ );
2223
+ if (this.isJSONFilePath(sourceFilePath) && this.isJSONFilePath(targetFilePath)) {
2224
+ const realTargetFilePath = this.getRealTemplateFilePath(targetFilePath);
2225
+ if (existsSync(realTargetFilePath)) {
2226
+ this.mergeJSONFile(realTargetFilePath, JSON.parse(fileContent));
2227
+ return true;
2228
+ }
2229
+ this.writeFile(realTargetFilePath, fileContent);
2230
+ return true;
2231
+ }
2232
+ this.writeFile(targetFilePath, fileContent);
2233
+ return true;
2234
+ }
2235
+ return false;
2236
+ }
2237
+ };
2238
+
2239
+ // src/Generator.ts
2240
+ var packages = ["pack-app"];
2241
+ var Generator = class {
2242
+ ora;
2243
+ context;
2244
+ subPackages;
2245
+ copyer;
2246
+ compose;
2247
+ constructor(context) {
2248
+ const templatePath = context.options?.templateRootPath;
2249
+ if (!templatePath) {
2250
+ throw new Error("template path not exit");
2251
+ }
2252
+ if (!existsSync(templatePath)) {
2253
+ throw new Error("template path not exit");
2254
+ }
2255
+ this.ora = oraPromise;
2256
+ this.context = new FeScriptContext(context);
2257
+ this.subPackages = ["node-lib", "react-app"];
2258
+ this.copyer = new Copyer(
2259
+ join(this.context.options.configsRootPath, "_common")
2260
+ );
2261
+ this.compose = new Compose();
2262
+ }
2263
+ get logger() {
2264
+ return this.context.logger;
2265
+ }
2266
+ async steps(prompts) {
2267
+ try {
2268
+ const answers = await inquirer.prompt(prompts);
2269
+ return answers;
2270
+ } catch (error) {
2271
+ if (error.isTtyError) ;
2272
+ this.logger.error(error);
2273
+ throw error;
2274
+ }
2275
+ }
2276
+ async action({
2277
+ label,
2278
+ task
2279
+ }) {
2280
+ let awaitTask = task();
2281
+ if (!(awaitTask instanceof Promise)) {
2282
+ awaitTask = Promise.resolve(awaitTask);
2283
+ }
2284
+ const text = label;
2285
+ this.ora(awaitTask, text);
2286
+ return awaitTask;
2287
+ }
2288
+ isPackageTemplate(template) {
2289
+ return packages.includes(template);
2290
+ }
2291
+ async getGeneratorContext() {
2292
+ const prompts = createDefaultPrompts(this.subPackages, packages);
2293
+ const context = await this.steps(prompts);
2294
+ if (this.isPackageTemplate(context.template)) {
2295
+ const prompts2 = createPackagePrompts(this.subPackages);
2296
+ const choseSubPackages = await this.steps(prompts2);
2297
+ Object.assign(context, choseSubPackages);
2298
+ }
2299
+ context.targetPath = join(process.cwd(), context.projectName);
2300
+ context.releasePath = context.releasePath || "src";
2301
+ return context;
2302
+ }
2303
+ async generate() {
2304
+ const context = await this.getGeneratorContext();
2305
+ this.logger.debug(
2306
+ "context is:",
2307
+ context,
2308
+ this.context.options.templateRootPath
2309
+ );
2310
+ if (context.subPackages) {
2311
+ await this.action({
2312
+ label: "Generate Directories(subPackages)",
2313
+ task: async () => {
2314
+ await this.generateTemplateDir(context);
2315
+ await this.generateSubPackages(context);
2316
+ await this.generateConfigs(context, context.targetPath, "_common");
2317
+ }
2318
+ });
2319
+ return;
2320
+ }
2321
+ await this.action({
2322
+ label: "Generate Directory",
2323
+ task: async () => {
2324
+ await this.generateTemplateDir(context);
2325
+ await this.generateConfigs(context, context.targetPath, "_common");
2326
+ await this.generateConfigs(
2327
+ context,
2328
+ context.targetPath,
2329
+ context.template
2330
+ );
2331
+ }
2332
+ });
2333
+ }
2334
+ async generateConfigs(context, targetPath, configName) {
2335
+ const copyCallback = (sourceFilePath, targetFilePath) => {
2336
+ this.logger.debug("copyCallback", sourceFilePath, targetFilePath);
2337
+ return this.compose.composeConfigFile(
2338
+ context,
2339
+ sourceFilePath,
2340
+ targetFilePath
2341
+ );
2342
+ };
2343
+ const { configsRootPath, config } = this.context.options;
2344
+ if (!config) {
2345
+ this.logger.debug("no copy config files");
2346
+ return;
2347
+ }
2348
+ await this.copyer.copyPaths({
2349
+ sourcePath: join(configsRootPath, configName),
2350
+ targetPath,
2351
+ copyCallback
2352
+ });
2353
+ }
2354
+ generateTemplateDir(context) {
2355
+ return this.copyer.copyPaths({
2356
+ sourcePath: join(this.context.options.templateRootPath, context.template),
2357
+ targetPath: context.targetPath
2358
+ });
2359
+ }
2360
+ async generateSubPackages(context) {
2361
+ const {
2362
+ packagesNames = "packages",
2363
+ subPackages = [],
2364
+ targetPath = ""
2365
+ } = context;
2366
+ const { templateRootPath } = this.context.options;
2367
+ for (const subPackage of subPackages) {
2368
+ const sourePath = join(templateRootPath, subPackage);
2369
+ const packagesPath = join(targetPath, packagesNames, subPackage);
2370
+ this.logger.debug("copy sub package", sourePath, packagesPath);
2371
+ await this.copyer.copyPaths({
2372
+ sourcePath: sourePath,
2373
+ targetPath: packagesPath
2374
+ });
2375
+ }
2376
+ }
2377
+ };
2378
+
2379
+ // package.json
2380
+ var package_default = {
2381
+ version: "0.4.0",
2382
+ description: "Create a new app with a single command"};
2383
+ function programArgs() {
2384
+ const program = new Command();
2385
+ program.version(package_default.version, "-v, --version", "Show version").description(package_default.description).option(
2386
+ "-d, --dry-run",
2387
+ "Do not touch or write anything, but show the commands"
2388
+ ).option("-V, --verbose", "Show more information").option("--config", "Copy config files (default: true)", true).option("--no-config", "Do not copy config files");
2389
+ program.parse();
2390
+ return program.opts();
2391
+ }
2392
+ async function main() {
2393
+ const { dryRun, verbose, ...commandOptions } = programArgs();
2394
+ const rootPath = dirname(fileURLToPath(import.meta.url));
2395
+ const templateRootPath = join(rootPath, "../templates");
2396
+ const configsRootPath = join(rootPath, "../configs");
2397
+ if (!existsSync(templateRootPath)) {
2398
+ console.error("Template is empty!");
2399
+ process.exit(1);
2400
+ }
2401
+ if (!existsSync(configsRootPath)) {
2402
+ console.error("Configs is empty!");
2403
+ process.exit(1);
2404
+ }
2405
+ const generator = new Generator({
2406
+ dryRun,
2407
+ verbose,
2408
+ options: {
2409
+ ...commandOptions,
2410
+ templateRootPath,
2411
+ configsRootPath
2412
+ }
2413
+ });
2414
+ await generator.generate();
2415
+ }
2416
+ main().catch((err) => {
2417
+ console.error(err);
2418
+ process.exit(1);
2419
+ });