UNPKG

@serverless-devs/s

Version:

Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.

21 lines 6.83 MB
var R0r=Object.create;var lS=Object.defineProperty;var I0r=Object.getOwnPropertyDescriptor;var j0r=Object.getOwnPropertyNames;var L0r=Object.getPrototypeOf,N0r=Object.prototype.hasOwnProperty;var q0r=(e,t,r)=>t in e?lS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var dMe=e=>t=>{var r=e[t];if(r)return r();throw new Error("Module not found in bundle: "+t)};var bt=(e,t)=>()=>(e&&(t=e(e=0)),t);var I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),zr=(e,t)=>{for(var r in t)lS(e,r,{get:t[r],enumerable:!0})},mMe=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of j0r(t))!N0r.call(e,u)&&u!==r&&lS(e,u,{get:()=>t[u],enumerable:!(n=I0r(t,u))||n.enumerable});return e};var nt=(e,t,r)=>(r=e!=null?R0r(L0r(e)):{},mMe(t||!e||!e.__esModule?lS(r,"default",{value:e,enumerable:!0}):r,e)),gMe=e=>mMe(lS({},"__esModule",{value:!0}),e);var An=(e,t,r)=>(q0r(e,typeof t!="symbol"?t+"":t,r),r),Mpe=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var De=(e,t,r)=>(Mpe(e,t,"read from private field"),r?r.call(e):t.get(e)),Tt=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Bt=(e,t,r,n)=>(Mpe(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var wb=(e,t,r,n)=>({set _(u){Bt(e,t,u,r)},get _(){return De(e,t,n)}}),Mt=(e,t,r)=>(Mpe(e,t,"access private method"),r);var fS=I($pe=>{var N$=class extends Error{constructor(t,r,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=t,this.nestedError=void 0}},Upe=class extends N${constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};$pe.CommanderError=N$;$pe.InvalidArgumentError=Upe});var q$=I(Gpe=>{var{InvalidArgumentError:M0r}=fS(),zpe=class{constructor(t,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,t[0]){case"<":this.required=!0,this._name=t.slice(1,-1);break;case"[":this.required=!1,this._name=t.slice(1,-1);break;default:this.required=!0,this._name=t;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(t,r){return r===this.defaultValue||!Array.isArray(r)?[t]:r.concat(t)}default(t,r){return this.defaultValue=t,this.defaultValueDescription=r,this}argParser(t){return this.parseArg=t,this}choices(t){return this.argChoices=t.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new M0r(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function U0r(e){let t=e.name()+(e.variadic===!0?"...":"");return e.required?"<"+t+">":"["+t+"]"}Gpe.Argument=zpe;Gpe.humanReadableArgName=U0r});var Vpe=I(vMe=>{var{humanReadableArgName:$0r}=q$(),Wpe=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(t){let r=t.commands.filter(n=>!n._hidden);if(t._hasImplicitHelpCommand()){let[,n,u]=t._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),i=t.createCommand(n).helpOption(!1);i.description(t._helpCommandDescription),u&&i.arguments(u),r.push(i)}return this.sortSubcommands&&r.sort((n,u)=>n.name().localeCompare(u.name())),r}compareOptions(t,r){let n=u=>u.short?u.short.replace(/^-/,""):u.long.replace(/^--/,"");return n(t).localeCompare(n(r))}visibleOptions(t){let r=t.options.filter(i=>!i.hidden),n=t._hasHelpOption&&t._helpShortFlag&&!t._findOption(t._helpShortFlag),u=t._hasHelpOption&&!t._findOption(t._helpLongFlag);if(n||u){let i;n?u?i=t.createOption(t._helpFlags,t._helpDescription):i=t.createOption(t._helpShortFlag,t._helpDescription):i=t.createOption(t._helpLongFlag,t._helpDescription),r.push(i)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(t){if(!this.showGlobalOptions)return[];let r=[];for(let n=t.parent;n;n=n.parent){let u=n.options.filter(i=>!i.hidden);r.push(...u)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(t){return t._argsDescription&&t.registeredArguments.forEach(r=>{r.description=r.description||t._argsDescription[r.name()]||""}),t.registeredArguments.find(r=>r.description)?t.registeredArguments:[]}subcommandTerm(t){let r=t.registeredArguments.map(n=>$0r(n)).join(" ");return t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(t){return t.flags}argumentTerm(t){return t.name()}longestSubcommandTermLength(t,r){return r.visibleCommands(t).reduce((n,u)=>Math.max(n,r.subcommandTerm(u).length),0)}longestOptionTermLength(t,r){return r.visibleOptions(t).reduce((n,u)=>Math.max(n,r.optionTerm(u).length),0)}longestGlobalOptionTermLength(t,r){return r.visibleGlobalOptions(t).reduce((n,u)=>Math.max(n,r.optionTerm(u).length),0)}longestArgumentTermLength(t,r){return r.visibleArguments(t).reduce((n,u)=>Math.max(n,r.argumentTerm(u).length),0)}commandUsage(t){let r=t._name;t._aliases[0]&&(r=r+"|"+t._aliases[0]);let n="";for(let u=t.parent;u;u=u.parent)n=u.name()+" "+n;return n+r+" "+t.usage()}commandDescription(t){return t.description()}subcommandDescription(t){return t.summary()||t.description()}optionDescription(t){let r=[];return t.argChoices&&r.push(`choices: ${t.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),t.defaultValue!==void 0&&(t.required||t.optional||t.isBoolean()&&typeof t.defaultValue=="boolean")&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),t.presetArg!==void 0&&t.optional&&r.push(`preset: ${JSON.stringify(t.presetArg)}`),t.envVar!==void 0&&r.push(`env: ${t.envVar}`),r.length>0?`${t.description} (${r.join(", ")})`:t.description}argumentDescription(t){let r=[];if(t.argChoices&&r.push(`choices: ${t.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),t.defaultValue!==void 0&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),r.length>0){let n=`(${r.join(", ")})`;return t.description?`${t.description} ${n}`:n}return t.description}formatHelp(t,r){let n=r.padWidth(t,r),u=r.helpWidth||80,i=2,o=2;function s(d,m){if(m){let v=`${d.padEnd(n+o)}${m}`;return r.wrap(v,u-i,n+o)}return d}function a(d){return d.join(` `).replace(/^/gm," ".repeat(i))}let c=[`Usage: ${r.commandUsage(t)}`,""],l=r.commandDescription(t);l.length>0&&(c=c.concat([r.wrap(l,u,0),""]));let f=r.visibleArguments(t).map(d=>s(r.argumentTerm(d),r.argumentDescription(d)));f.length>0&&(c=c.concat(["Arguments:",a(f),""]));let p=r.visibleOptions(t).map(d=>s(r.optionTerm(d),r.optionDescription(d)));if(p.length>0&&(c=c.concat(["Options:",a(p),""])),this.showGlobalOptions){let d=r.visibleGlobalOptions(t).map(m=>s(r.optionTerm(m),r.optionDescription(m)));d.length>0&&(c=c.concat(["Global Options:",a(d),""]))}let h=r.visibleCommands(t).map(d=>s(r.subcommandTerm(d),r.subcommandDescription(d)));return h.length>0&&(c=c.concat(["Commands:",a(h),""])),c.join(` `)}padWidth(t,r){return Math.max(r.longestOptionTermLength(t,r),r.longestGlobalOptionTermLength(t,r),r.longestSubcommandTermLength(t,r),r.longestArgumentTermLength(t,r))}wrap(t,r,n,u=40){let i=" \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF",o=new RegExp(`[\\n][${i}]+`);if(t.match(o))return t;let s=r-n;if(s<u)return t;let a=t.slice(0,n),c=t.slice(n).replace(`\r `,` `),l=" ".repeat(n),p="\\s\u200B",h=new RegExp(` |.{1,${s-1}}([${p}]|$)|[^${p}]+?([${p}]|$)`,"g"),d=c.match(h)||[];return a+d.map((m,v)=>m===` `?"":(v>0?l:"")+m.trimEnd()).join(` `)}};vMe.Help=Wpe});var Ype=I(M$=>{var{InvalidArgumentError:z0r}=fS(),Hpe=class{constructor(t,r){this.flags=t,this.description=r||"",this.required=t.includes("<"),this.optional=t.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(t),this.mandatory=!1;let n=yMe(t);this.short=n.shortFlag,this.long=n.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(t,r){return this.defaultValue=t,this.defaultValueDescription=r,this}preset(t){return this.presetArg=t,this}conflicts(t){return this.conflictsWith=this.conflictsWith.concat(t),this}implies(t){let r=t;return typeof t=="string"&&(r={[t]:!0}),this.implied=Object.assign(this.implied||{},r),this}env(t){return this.envVar=t,this}argParser(t){return this.parseArg=t,this}makeOptionMandatory(t=!0){return this.mandatory=!!t,this}hideHelp(t=!0){return this.hidden=!!t,this}_concatValue(t,r){return r===this.defaultValue||!Array.isArray(r)?[t]:r.concat(t)}choices(t){return this.argChoices=t.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new z0r(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return G0r(this.name().replace(/^no-/,""))}is(t){return this.short===t||this.long===t}isBoolean(){return!this.required&&!this.optional&&!this.negate}},Kpe=class{constructor(t){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,t.forEach(r=>{r.negate?this.negativeOptions.set(r.attributeName(),r):this.positiveOptions.set(r.attributeName(),r)}),this.negativeOptions.forEach((r,n)=>{this.positiveOptions.has(n)&&this.dualOptions.add(n)})}valueFromOption(t,r){let n=r.attributeName();if(!this.dualOptions.has(n))return!0;let u=this.negativeOptions.get(n).presetArg,i=u!==void 0?u:!1;return r.negate===(i===t)}};function G0r(e){return e.split("-").reduce((t,r)=>t+r[0].toUpperCase()+r.slice(1))}function yMe(e){let t,r,n=e.split(/[ |,]+/);return n.length>1&&!/^[[<]/.test(n[1])&&(t=n.shift()),r=n.shift(),!t&&/^-[^-]$/.test(r)&&(t=r,r=void 0),{shortFlag:t,longFlag:r}}M$.Option=Hpe;M$.splitOptionFlags=yMe;M$.DualOptions=Kpe});var EMe=I(DMe=>{function W0r(e,t){if(Math.abs(e.length-t.length)>3)return Math.max(e.length,t.length);let r=[];for(let n=0;n<=e.length;n++)r[n]=[n];for(let n=0;n<=t.length;n++)r[0][n]=n;for(let n=1;n<=t.length;n++)for(let u=1;u<=e.length;u++){let i=1;e[u-1]===t[n-1]?i=0:i=1,r[u][n]=Math.min(r[u-1][n]+1,r[u][n-1]+1,r[u-1][n-1]+i),u>1&&n>1&&e[u-1]===t[n-2]&&e[u-2]===t[n-1]&&(r[u][n]=Math.min(r[u][n],r[u-2][n-2]+1))}return r[e.length][t.length]}function V0r(e,t){if(!t||t.length===0)return"";t=Array.from(new Set(t));let r=e.startsWith("--");r&&(e=e.slice(2),t=t.map(o=>o.slice(2)));let n=[],u=3,i=.4;return t.forEach(o=>{if(o.length<=1)return;let s=W0r(e,o),a=Math.max(e.length,o.length);(a-s)/a>i&&(s<u?(u=s,n=[o]):s===u&&n.push(o))}),n.sort((o,s)=>o.localeCompare(s)),r&&(n=n.map(o=>`--${o}`)),n.length>1?` (Did you mean one of ${n.join(", ")}?)`:n.length===1?` (Did you mean ${n[0]}?)`:""}DMe.suggestSimilar=V0r});var _Me=I(FMe=>{var H0r=require("events").EventEmitter,Xpe=require("child_process"),o5=require("path"),Jpe=require("fs"),Xi=require("process"),{Argument:K0r,humanReadableArgName:Y0r}=q$(),{CommanderError:Qpe}=fS(),{Help:X0r}=Vpe(),{Option:bMe,splitOptionFlags:J0r,DualOptions:Q0r}=Ype(),{suggestSimilar:CMe}=EMe(),Zpe=class e extends H0r{constructor(t){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=t||"",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._outputConfiguration={writeOut:r=>Xi.stdout.write(r),writeErr:r=>Xi.stderr.write(r),getOutHelpWidth:()=>Xi.stdout.isTTY?Xi.stdout.columns:void 0,getErrHelpWidth:()=>Xi.stderr.isTTY?Xi.stderr.columns:void 0,outputError:(r,n)=>n(r)},this._hidden=!1,this._hasHelpOption=!0,this._helpFlags="-h, --help",this._helpDescription="display help for command",this._helpShortFlag="-h",this._helpLongFlag="--help",this._addImplicitHelpCommand=void 0,this._helpCommandName="help",this._helpCommandnameAndArgs="help [command]",this._helpCommandDescription="display help for command",this._helpConfiguration={}}copyInheritedSettings(t){return this._outputConfiguration=t._outputConfiguration,this._hasHelpOption=t._hasHelpOption,this._helpFlags=t._helpFlags,this._helpDescription=t._helpDescription,this._helpShortFlag=t._helpShortFlag,this._helpLongFlag=t._helpLongFlag,this._helpCommandName=t._helpCommandName,this._helpCommandnameAndArgs=t._helpCommandnameAndArgs,this._helpCommandDescription=t._helpCommandDescription,this._helpConfiguration=t._helpConfiguration,this._exitCallback=t._exitCallback,this._storeOptionsAsProperties=t._storeOptionsAsProperties,this._combineFlagAndOptionalValue=t._combineFlagAndOptionalValue,this._allowExcessArguments=t._allowExcessArguments,this._enablePositionalOptions=t._enablePositionalOptions,this._showHelpAfterError=t._showHelpAfterError,this._showSuggestionAfterError=t._showSuggestionAfterError,this}_getCommandAndAncestors(){let t=[];for(let r=this;r;r=r.parent)t.push(r);return t}command(t,r,n){let u=r,i=n;typeof u=="object"&&u!==null&&(i=u,u=null),i=i||{};let[,o,s]=t.match(/([^ ]+) *(.*)/),a=this.createCommand(o);return u&&(a.description(u),a._executableHandler=!0),i.isDefault&&(this._defaultCommandName=a._name),a._hidden=!!(i.noHelp||i.hidden),a._executableFile=i.executableFile||null,s&&a.arguments(s),this.commands.push(a),a.parent=this,a.copyInheritedSettings(this),u?this:a}createCommand(t){return new e(t)}createHelp(){return Object.assign(new X0r,this.configureHelp())}configureHelp(t){return t===void 0?this._helpConfiguration:(this._helpConfiguration=t,this)}configureOutput(t){return t===void 0?this._outputConfiguration:(Object.assign(this._outputConfiguration,t),this)}showHelpAfterError(t=!0){return typeof t!="string"&&(t=!!t),this._showHelpAfterError=t,this}showSuggestionAfterError(t=!0){return this._showSuggestionAfterError=!!t,this}addCommand(t,r){if(!t._name)throw new Error(`Command passed to .addCommand() must have a name - specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=t._name),(r.noHelp||r.hidden)&&(t._hidden=!0),this.commands.push(t),t.parent=this,this}createArgument(t,r){return new K0r(t,r)}argument(t,r,n,u){let i=this.createArgument(t,r);return typeof n=="function"?i.default(u).argParser(n):i.default(n),this.addArgument(i),this}arguments(t){return t.trim().split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(t){let r=this.registeredArguments.slice(-1)[0];if(r&&r.variadic)throw new Error(`only the last argument can be variadic '${r.name()}'`);if(t.required&&t.defaultValue!==void 0&&t.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${t.name()}'`);return this.registeredArguments.push(t),this}addHelpCommand(t,r){return t===!1?this._addImplicitHelpCommand=!1:(this._addImplicitHelpCommand=!0,typeof t=="string"&&(this._helpCommandName=t.split(" ")[0],this._helpCommandnameAndArgs=t),this._helpCommandDescription=r||this._helpCommandDescription),this}_hasImplicitHelpCommand(){return this._addImplicitHelpCommand===void 0?this.commands.length&&!this._actionHandler&&!this._findCommand("help"):this._addImplicitHelpCommand}hook(t,r){let n=["preSubcommand","preAction","postAction"];if(!n.includes(t))throw new Error(`Unexpected value for event passed to hook : '${t}'. Expecting one of '${n.join("', '")}'`);return this._lifeCycleHooks[t]?this._lifeCycleHooks[t].push(r):this._lifeCycleHooks[t]=[r],this}exitOverride(t){return t?this._exitCallback=t:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(t,r,n){this._exitCallback&&this._exitCallback(new Qpe(t,r,n)),Xi.exit(t)}action(t){let r=n=>{let u=this.registeredArguments.length,i=n.slice(0,u);return this._storeOptionsAsProperties?i[u]=this:i[u]=this.opts(),i.push(this),t.apply(this,i)};return this._actionHandler=r,this}createOption(t,r){return new bMe(t,r)}_callParseArg(t,r,n,u){try{return t.parseArg(r,n)}catch(i){if(i.code==="commander.invalidArgument"){let o=`${u} ${i.message}`;this.error(o,{exitCode:i.exitCode,code:i.code})}throw i}}addOption(t){let r=t.name(),n=t.attributeName();if(t.negate){let i=t.long.replace(/^--no-/,"--");this._findOption(i)||this.setOptionValueWithSource(n,t.defaultValue===void 0?!0:t.defaultValue,"default")}else t.defaultValue!==void 0&&this.setOptionValueWithSource(n,t.defaultValue,"default");this.options.push(t);let u=(i,o,s)=>{i==null&&t.presetArg!==void 0&&(i=t.presetArg);let a=this.getOptionValue(n);i!==null&&t.parseArg?i=this._callParseArg(t,i,a,o):i!==null&&t.variadic&&(i=t._concatValue(i,a)),i==null&&(t.negate?i=!1:t.isBoolean()||t.optional?i=!0:i=""),this.setOptionValueWithSource(n,i,s)};return this.on("option:"+r,i=>{let o=`error: option '${t.flags}' argument '${i}' is invalid.`;u(i,o,"cli")}),t.envVar&&this.on("optionEnv:"+r,i=>{let o=`error: option '${t.flags}' value '${i}' from env '${t.envVar}' is invalid.`;u(i,o,"env")}),this}_optionEx(t,r,n,u,i){if(typeof r=="object"&&r instanceof bMe)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let o=this.createOption(r,n);if(o.makeOptionMandatory(!!t.mandatory),typeof u=="function")o.default(i).argParser(u);else if(u instanceof RegExp){let s=u;u=(a,c)=>{let l=s.exec(a);return l?l[0]:c},o.default(i).argParser(u)}else o.default(u);return this.addOption(o)}option(t,r,n,u){return this._optionEx({},t,r,n,u)}requiredOption(t,r,n,u){return this._optionEx({mandatory:!0},t,r,n,u)}combineFlagAndOptionalValue(t=!0){return this._combineFlagAndOptionalValue=!!t,this}allowUnknownOption(t=!0){return this._allowUnknownOption=!!t,this}allowExcessArguments(t=!0){return this._allowExcessArguments=!!t,this}enablePositionalOptions(t=!0){return this._enablePositionalOptions=!!t,this}passThroughOptions(t=!0){if(this._passThroughOptions=!!t,this.parent&&t&&!this.parent._enablePositionalOptions)throw new Error("passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)");return this}storeOptionsAsProperties(t=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");return this._storeOptionsAsProperties=!!t,this}getOptionValue(t){return this._storeOptionsAsProperties?this[t]:this._optionValues[t]}setOptionValue(t,r){return this.setOptionValueWithSource(t,r,void 0)}setOptionValueWithSource(t,r,n){return this._storeOptionsAsProperties?this[t]=r:this._optionValues[t]=r,this._optionValueSources[t]=n,this}getOptionValueSource(t){return this._optionValueSources[t]}getOptionValueSourceWithGlobals(t){let r;return this._getCommandAndAncestors().forEach(n=>{n.getOptionValueSource(t)!==void 0&&(r=n.getOptionValueSource(t))}),r}_prepareUserArgs(t,r){if(t!==void 0&&!Array.isArray(t))throw new Error("first parameter to parse must be array or undefined");r=r||{},t===void 0&&(t=Xi.argv,Xi.versions&&Xi.versions.electron&&(r.from="electron")),this.rawArgs=t.slice();let n;switch(r.from){case void 0:case"node":this._scriptPath=t[1],n=t.slice(2);break;case"electron":Xi.defaultApp?(this._scriptPath=t[1],n=t.slice(2)):n=t.slice(1);break;case"user":n=t.slice(0);break;default:throw new Error(`unexpected parse option { from: '${r.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",n}parse(t,r){let n=this._prepareUserArgs(t,r);return this._parseCommand([],n),this}async parseAsync(t,r){let n=this._prepareUserArgs(t,r);return await this._parseCommand([],n),this}_executeSubCommand(t,r){r=r.slice();let n=!1,u=[".js",".ts",".tsx",".mjs",".cjs"];function i(l,f){let p=o5.resolve(l,f);if(Jpe.existsSync(p))return p;if(u.includes(o5.extname(f)))return;let h=u.find(d=>Jpe.existsSync(`${p}${d}`));if(h)return`${p}${h}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let o=t._executableFile||`${this._name}-${t._name}`,s=this._executableDir||"";if(this._scriptPath){let l;try{l=Jpe.realpathSync(this._scriptPath)}catch{l=this._scriptPath}s=o5.resolve(o5.dirname(l),s)}if(s){let l=i(s,o);if(!l&&!t._executableFile&&this._scriptPath){let f=o5.basename(this._scriptPath,o5.extname(this._scriptPath));f!==this._name&&(l=i(s,`${f}-${t._name}`))}o=l||o}n=u.includes(o5.extname(o));let a;Xi.platform!=="win32"?n?(r.unshift(o),r=AMe(Xi.execArgv).concat(r),a=Xpe.spawn(Xi.argv[0],r,{stdio:"inherit"})):a=Xpe.spawn(o,r,{stdio:"inherit"}):(r.unshift(o),r=AMe(Xi.execArgv).concat(r),a=Xpe.spawn(Xi.execPath,r,{stdio:"inherit"})),a.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(f=>{Xi.on(f,()=>{a.killed===!1&&a.exitCode===null&&a.kill(f)})});let c=this._exitCallback;c?a.on("close",()=>{c(new Qpe(Xi.exitCode||0,"commander.executeSubCommandAsync","(close)"))}):a.on("close",Xi.exit.bind(Xi)),a.on("error",l=>{if(l.code==="ENOENT"){let f=s?`searched for local subcommand relative to directory '${s}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",p=`'${o}' does not exist - if '${t._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead - if the default executable name is not suitable, use the executableFile option to supply a custom name or path - ${f}`;throw new Error(p)}else if(l.code==="EACCES")throw new Error(`'${o}' not executable`);if(!c)Xi.exit(1);else{let f=new Qpe(1,"commander.executeSubCommandAsync","(error)");f.nestedError=l,c(f)}}),this.runningCommand=a}_dispatchSubcommand(t,r,n){let u=this._findCommand(t);u||this.help({error:!0});let i;return i=this._chainOrCallSubCommandHook(i,u,"preSubcommand"),i=this._chainOrCall(i,()=>{if(u._executableHandler)this._executeSubCommand(u,r.concat(n));else return u._parseCommand(r,n)}),i}_dispatchHelpCommand(t){t||this.help();let r=this._findCommand(t);return r&&!r._executableHandler&&r.help(),this._dispatchSubcommand(t,[],[this._helpLongFlag||this._helpShortFlag])}_checkNumberOfArguments(){this.registeredArguments.forEach((t,r)=>{t.required&&this.args[r]==null&&this.missingArgument(t.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let t=(n,u,i)=>{let o=u;if(u!==null&&n.parseArg){let s=`error: command-argument value '${u}' is invalid for argument '${n.name()}'.`;o=this._callParseArg(n,u,i,s)}return o};this._checkNumberOfArguments();let r=[];this.registeredArguments.forEach((n,u)=>{let i=n.defaultValue;n.variadic?u<this.args.length?(i=this.args.slice(u),n.parseArg&&(i=i.reduce((o,s)=>t(n,s,o),n.defaultValue))):i===void 0&&(i=[]):u<this.args.length&&(i=this.args[u],n.parseArg&&(i=t(n,i,n.defaultValue))),r[u]=i}),this.processedArgs=r}_chainOrCall(t,r){return t&&t.then&&typeof t.then=="function"?t.then(()=>r()):r()}_chainOrCallHooks(t,r){let n=t,u=[];return this._getCommandAndAncestors().reverse().filter(i=>i._lifeCycleHooks[r]!==void 0).forEach(i=>{i._lifeCycleHooks[r].forEach(o=>{u.push({hookedCommand:i,callback:o})})}),r==="postAction"&&u.reverse(),u.forEach(i=>{n=this._chainOrCall(n,()=>i.callback(i.hookedCommand,this))}),n}_chainOrCallSubCommandHook(t,r,n){let u=t;return this._lifeCycleHooks[n]!==void 0&&this._lifeCycleHooks[n].forEach(i=>{u=this._chainOrCall(u,()=>i(this,r))}),u}_parseCommand(t,r){let n=this.parseOptions(r);if(this._parseOptionsEnv(),this._parseOptionsImplied(),t=t.concat(n.operands),r=n.unknown,this.args=t.concat(r),t&&this._findCommand(t[0]))return this._dispatchSubcommand(t[0],t.slice(1),r);if(this._hasImplicitHelpCommand()&&t[0]===this._helpCommandName)return this._dispatchHelpCommand(t[1]);if(this._defaultCommandName)return xMe(this,r),this._dispatchSubcommand(this._defaultCommandName,t,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),xMe(this,n.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let u=()=>{n.unknown.length>0&&this.unknownOption(n.unknown[0])},i=`command:${this.name()}`;if(this._actionHandler){u(),this._processArguments();let o;return o=this._chainOrCallHooks(o,"preAction"),o=this._chainOrCall(o,()=>this._actionHandler(this.processedArgs)),this.parent&&(o=this._chainOrCall(o,()=>{this.parent.emit(i,t,r)})),o=this._chainOrCallHooks(o,"postAction"),o}if(this.parent&&this.parent.listenerCount(i))u(),this._processArguments(),this.parent.emit(i,t,r);else if(t.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",t,r);this.listenerCount("command:*")?this.emit("command:*",t,r):this.commands.length?this.unknownCommand():(u(),this._processArguments())}else this.commands.length?(u(),this.help({error:!0})):(u(),this._processArguments())}_findCommand(t){if(t)return this.commands.find(r=>r._name===t||r._aliases.includes(t))}_findOption(t){return this.options.find(r=>r.is(t))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(t=>{t.options.forEach(r=>{r.mandatory&&t.getOptionValue(r.attributeName())===void 0&&t.missingMandatoryOptionValue(r)})})}_checkForConflictingLocalOptions(){let t=this.options.filter(n=>{let u=n.attributeName();return this.getOptionValue(u)===void 0?!1:this.getOptionValueSource(u)!=="default"});t.filter(n=>n.conflictsWith.length>0).forEach(n=>{let u=t.find(i=>n.conflictsWith.includes(i.attributeName()));u&&this._conflictingOption(n,u)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(t=>{t._checkForConflictingLocalOptions()})}parseOptions(t){let r=[],n=[],u=r,i=t.slice();function o(a){return a.length>1&&a[0]==="-"}let s=null;for(;i.length;){let a=i.shift();if(a==="--"){u===n&&u.push(a),u.push(...i);break}if(s&&!o(a)){this.emit(`option:${s.name()}`,a);continue}if(s=null,o(a)){let c=this._findOption(a);if(c){if(c.required){let l=i.shift();l===void 0&&this.optionMissingArgument(c),this.emit(`option:${c.name()}`,l)}else if(c.optional){let l=null;i.length>0&&!o(i[0])&&(l=i.shift()),this.emit(`option:${c.name()}`,l)}else this.emit(`option:${c.name()}`);s=c.variadic?c:null;continue}}if(a.length>2&&a[0]==="-"&&a[1]!=="-"){let c=this._findOption(`-${a[1]}`);if(c){c.required||c.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${c.name()}`,a.slice(2)):(this.emit(`option:${c.name()}`),i.unshift(`-${a.slice(2)}`));continue}}if(/^--[^=]+=/.test(a)){let c=a.indexOf("="),l=this._findOption(a.slice(0,c));if(l&&(l.required||l.optional)){this.emit(`option:${l.name()}`,a.slice(c+1));continue}}if(o(a)&&(u=n),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&n.length===0){if(this._findCommand(a)){r.push(a),i.length>0&&n.push(...i);break}else if(a===this._helpCommandName&&this._hasImplicitHelpCommand()){r.push(a),i.length>0&&r.push(...i);break}else if(this._defaultCommandName){n.push(a),i.length>0&&n.push(...i);break}}if(this._passThroughOptions){u.push(a),i.length>0&&u.push(...i);break}u.push(a)}return{operands:r,unknown:n}}opts(){if(this._storeOptionsAsProperties){let t={},r=this.options.length;for(let n=0;n<r;n++){let u=this.options[n].attributeName();t[u]=u===this._versionOptionName?this._version:this[u]}return t}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((t,r)=>Object.assign(t,r.opts()),{})}error(t,r){this._outputConfiguration.outputError(`${t} `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError} `):this._showHelpAfterError&&(this._outputConfiguration.writeErr(` `),this.outputHelp({error:!0}));let n=r||{},u=n.exitCode||1,i=n.code||"commander.error";this._exit(u,i,t)}_parseOptionsEnv(){this.options.forEach(t=>{if(t.envVar&&t.envVar in Xi.env){let r=t.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(t.required||t.optional?this.emit(`optionEnv:${t.name()}`,Xi.env[t.envVar]):this.emit(`optionEnv:${t.name()}`))}})}_parseOptionsImplied(){let t=new Q0r(this.options),r=n=>this.getOptionValue(n)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(n));this.options.filter(n=>n.implied!==void 0&&r(n.attributeName())&&t.valueFromOption(this.getOptionValue(n.attributeName()),n)).forEach(n=>{Object.keys(n.implied).filter(u=>!r(u)).forEach(u=>{this.setOptionValueWithSource(u,n.implied[u],"implied")})})}missingArgument(t){let r=`error: missing required argument '${t}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(t){let r=`error: option '${t.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(t){let r=`error: required option '${t.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(t,r){let n=o=>{let s=o.attributeName(),a=this.getOptionValue(s),c=this.options.find(f=>f.negate&&s===f.attributeName()),l=this.options.find(f=>!f.negate&&s===f.attributeName());return c&&(c.presetArg===void 0&&a===!1||c.presetArg!==void 0&&a===c.presetArg)?c:l||o},u=o=>{let s=n(o),a=s.attributeName();return this.getOptionValueSource(a)==="env"?`environment variable '${s.envVar}'`:`option '${s.flags}'`},i=`error: ${u(t)} cannot be used with ${u(r)}`;this.error(i,{code:"commander.conflictingOption"})}unknownOption(t){if(this._allowUnknownOption)return;let r="";if(t.startsWith("--")&&this._showSuggestionAfterError){let u=[],i=this;do{let o=i.createHelp().visibleOptions(i).filter(s=>s.long).map(s=>s.long);u=u.concat(o),i=i.parent}while(i&&!i._enablePositionalOptions);r=CMe(t,u)}let n=`error: unknown option '${t}'${r}`;this.error(n,{code:"commander.unknownOption"})}_excessArguments(t){if(this._allowExcessArguments)return;let r=this.registeredArguments.length,n=r===1?"":"s",i=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${n} but got ${t.length}.`;this.error(i,{code:"commander.excessArguments"})}unknownCommand(){let t=this.args[0],r="";if(this._showSuggestionAfterError){let u=[];this.createHelp().visibleCommands(this).forEach(i=>{u.push(i.name()),i.alias()&&u.push(i.alias())}),r=CMe(t,u)}let n=`error: unknown command '${t}'${r}`;this.error(n,{code:"commander.unknownCommand"})}version(t,r,n){if(t===void 0)return this._version;this._version=t,r=r||"-V, --version",n=n||"output the version number";let u=this.createOption(r,n);return this._versionOptionName=u.attributeName(),this.options.push(u),this.on("option:"+u.name(),()=>{this._outputConfiguration.writeOut(`${t} `),this._exit(0,"commander.version",t)}),this}description(t,r){return t===void 0&&r===void 0?this._description:(this._description=t,r&&(this._argsDescription=r),this)}summary(t){return t===void 0?this._summary:(this._summary=t,this)}alias(t){if(t===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),t===r._name)throw new Error("Command alias can't be the same as its name");return r._aliases.push(t),this}aliases(t){return t===void 0?this._aliases:(t.forEach(r=>this.alias(r)),this)}usage(t){if(t===void 0){if(this._usage)return this._usage;let r=this.registeredArguments.map(n=>Y0r(n));return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?r:[]).join(" ")}return this._usage=t,this}name(t){return t===void 0?this._name:(this._name=t,this)}nameFromFilename(t){return this._name=o5.basename(t,o5.extname(t)),this}executableDir(t){return t===void 0?this._executableDir:(this._executableDir=t,this)}helpInformation(t){let r=this.createHelp();return r.helpWidth===void 0&&(r.helpWidth=t&&t.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()),r.formatHelp(this,r)}_getHelpContext(t){t=t||{};let r={error:!!t.error},n;return r.error?n=u=>this._outputConfiguration.writeErr(u):n=u=>this._outputConfiguration.writeOut(u),r.write=t.write||n,r.command=this,r}outputHelp(t){let r;typeof t=="function"&&(r=t,t=void 0);let n=this._getHelpContext(t);this._getCommandAndAncestors().reverse().forEach(i=>i.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let u=this.helpInformation(n);if(r&&(u=r(u),typeof u!="string"&&!Buffer.isBuffer(u)))throw new Error("outputHelp callback must return a string or a Buffer");n.write(u),this._helpLongFlag&&this.emit(this._helpLongFlag),this.emit("afterHelp",n),this._getCommandAndAncestors().forEach(i=>i.emit("afterAllHelp",n))}helpOption(t,r){if(typeof t=="boolean")return this._hasHelpOption=t,this;this._helpFlags=t||this._helpFlags,this._helpDescription=r||this._helpDescription;let n=J0r(this._helpFlags);return this._helpShortFlag=n.shortFlag,this._helpLongFlag=n.longFlag,this}help(t){this.outputHelp(t);let r=Xi.exitCode||0;r===0&&t&&typeof t!="function"&&t.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(t,r){let n=["beforeAll","before","after","afterAll"];if(!n.includes(t))throw new Error(`Unexpected value for position to addHelpText. Expecting one of '${n.join("', '")}'`);let u=`${t}Help`;return this.on(u,i=>{let o;typeof r=="function"?o=r({error:i.error,command:i.command}):o=r,o&&i.write(`${o} `)}),this}};function xMe(e,t){e._hasHelpOption&&t.find(n=>n===e._helpLongFlag||n===e._helpShortFlag)&&(e.outputHelp(),e._exit(0,"commander.helpDisplayed","(outputHelp)"))}function AMe(e){return e.map(t=>{if(!t.startsWith("--inspect"))return t;let r,n="127.0.0.1",u="9229",i;return(i=t.match(/^(--inspect(-brk)?)$/))!==null?r=i[1]:(i=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=i[1],/^\d+$/.test(i[3])?u=i[3]:n=i[3]):(i=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=i[1],n=i[3],u=i[4]),r&&u!=="0"?`${r}=${n}:${parseInt(u)+1}`:t})}FMe.Command=Zpe});var OMe=I((hd,SMe)=>{var{Argument:Z0r}=q$(),{Command:BMe}=_Me(),{CommanderError:epr,InvalidArgumentError:wMe}=fS(),{Help:tpr}=Vpe(),{Option:rpr}=Ype();hd=SMe.exports=new BMe;hd.program=hd;hd.Command=BMe;hd.Option=rpr;hd.Argument=Z0r;hd.Help=tpr;hd.CommanderError=epr;hd.InvalidArgumentError=wMe;hd.InvalidOptionArgumentError=wMe});var TMe,Ebu,bbu,Cbu,xbu,Abu,Fbu,_bu,PMe,Bbu,Gp,wbu,pS=bt(()=>{TMe=nt(OMe(),1),{program:Ebu,createCommand:bbu,createArgument:Cbu,createOption:xbu,CommanderError:Abu,InvalidArgumentError:Fbu,InvalidOptionArgumentError:_bu,Command:PMe,Argument:Bbu,Option:Gp,Help:wbu}=TMe.default});var ur=I((Sb,hS)=>{(function(){var e,t="4.17.21",r=200,n="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",i="Invalid `variable` option passed into `_.template`",o="__lodash_hash_undefined__",s=500,a="__lodash_placeholder__",c=1,l=2,f=4,p=1,h=2,d=1,m=2,v=4,D=8,g=16,y=32,E=64,b=128,C=256,x=512,A=30,F="...",S=800,B=16,O=1,T=2,P=3,L=1/0,N=9007199254740991,$=17976931348623157e292,G=NaN,j=4294967295,U=j-1,z=j>>>1,V=[["ary",b],["bind",d],["bindKey",m],["curry",D],["curryRight",g],["flip",x],["partial",y],["partialRight",E],["rearg",C]],X="[object Arguments]",Z="[object Array]",ne="[object AsyncFunction]",te="[object Boolean]",Y="[object Date]",ee="[object DOMException]",Q="[object Error]",q="[object Function]",M="[object GeneratorFunction]",J="[object Map]",re="[object Number]",ie="[object Null]",ue="[object Object]",ae="[object Promise]",de="[object Proxy]",Ce="[object RegExp]",be="[object Set]",Fe="[object String]",Pe="[object Symbol]",Le="[object Undefined]",se="[object WeakMap]",Be="[object WeakSet]",ze="[object ArrayBuffer]",he="[object DataView]",pe="[object Float32Array]",ge="[object Float64Array]",me="[object Int8Array]",Ae="[object Int16Array]",Se="[object Int32Array]",Ue="[object Uint8Array]",qe="[object Uint8ClampedArray]",Ye="[object Uint16Array]",at="[object Uint32Array]",ve=/\b__p \+= '';/g,tt=/\b(__p \+=) '' \+/g,lt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,je=/&(?:amp|lt|gt|quot|#39);/g,Xe=/[&<>"']/g,ct=RegExp(je.source),Ge=RegExp(Xe.source),Oe=/<%-([\s\S]+?)%>/g,et=/<%([\s\S]+?)%>/g,ut=/<%=([\s\S]+?)%>/g,Rt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Je=/^\w*$/,ft=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ot=/[\\^$.*+?()[\]{}|]/g,Ke=RegExp(Ot.source),mt=/^\s+/,St=/\s/,Ut=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,sr=/\{\n\/\* \[wrapped with (.+)\] \*/,vn=/,? & /,pn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Cr=/[()=,{}\[\]\/\s]/,yn=/\\(\\)?/g,hn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,eu=/\w*$/,au=/^[-+]0x[0-9a-f]+$/i,ni=/^0b[01]+$/i,Oi=/^\[object .+?Constructor\]$/,xe=/^0o[0-7]+$/i,Ie=/^(?:0|[1-9]\d*)$/,pt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ft=/($^)/,ot=/['\n\r\u2028\u2029\\]/g,Pt="\\ud800-\\udfff",qt="\\u0300-\\u036f",Vt="\\ufe20-\\ufe2f",mr="\\u20d0-\\u20ff",Rr=qt+Vt+mr,on="\\u2700-\\u27bf",Dn="a-z\\xdf-\\xf6\\xf8-\\xff",ir="\\xac\\xb1\\xd7\\xf7",mn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Cs="\\u2000-\\u206f",xc=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",$s="A-Z\\xc0-\\xd6\\xd8-\\xde",dl="\\ufe0e\\ufe0f",zs=ir+mn+Cs+xc,Gs="['\u2019]",ml="["+Pt+"]",Lo="["+zs+"]",Ws="["+Rr+"]",cf="\\d+",gl="["+on+"]",i0="["+Dn+"]",o0="[^"+Pt+zs+cf+on+Dn+$s+"]",lf="\\ud83c[\\udffb-\\udfff]",L1="(?:"+Ws+"|"+lf+")",s0="[^"+Pt+"]",ff="(?:\\ud83c[\\udde6-\\uddff]){2}",vl="[\\ud800-\\udbff][\\udc00-\\udfff]",Sa="["+$s+"]",a0="\\u200d",xs="(?:"+i0+"|"+o0+")",Ac="(?:"+Sa+"|"+o0+")",yl="(?:"+Gs+"(?:d|ll|m|re|s|t|ve))?",c0="(?:"+Gs+"(?:D|LL|M|RE|S|T|VE))?",l0=L1+"?",_p="["+dl+"]?",$h="(?:"+a0+"(?:"+[s0,ff,vl].join("|")+")"+_p+l0+")*",zh="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",N1="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Gh=_p+l0+$h,Wh="(?:"+[gl,ff,vl].join("|")+")"+Gh,f0="(?:"+[s0+Ws+"?",Ws,ff,vl,ml].join("|")+")",Bp=RegExp(Gs,"g"),p0=RegExp(Ws,"g"),pf=RegExp(lf+"(?="+lf+")|"+f0+Gh,"g"),q1=RegExp([Sa+"?"+i0+"+"+yl+"(?="+[Lo,Sa,"$"].join("|")+")",Ac+"+"+c0+"(?="+[Lo,Sa+xs,"$"].join("|")+")",Sa+"?"+xs+"+"+yl,Sa+"+"+c0,N1,zh,cf,Wh].join("|"),"g"),h0=RegExp("["+a0+Pt+Rr+dl+"]"),M1=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,wp=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Sp=-1,tu={};tu[pe]=tu[ge]=tu[me]=tu[Ae]=tu[Se]=tu[Ue]=tu[qe]=tu[Ye]=tu[at]=!0,tu[X]=tu[Z]=tu[ze]=tu[te]=tu[he]=tu[Y]=tu[Q]=tu[q]=tu[J]=tu[re]=tu[ue]=tu[Ce]=tu[be]=tu[Fe]=tu[se]=!1;var Kn={};Kn[X]=Kn[Z]=Kn[ze]=Kn[he]=Kn[te]=Kn[Y]=Kn[pe]=Kn[ge]=Kn[me]=Kn[Ae]=Kn[Se]=Kn[J]=Kn[re]=Kn[ue]=Kn[Ce]=Kn[be]=Kn[Fe]=Kn[Pe]=Kn[Ue]=Kn[qe]=Kn[Ye]=Kn[at]=!0,Kn[Q]=Kn[q]=Kn[se]=!1;var ru={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Yn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},U1={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Vh={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},$1=parseFloat,Op=parseInt,hf=typeof global=="object"&&global&&global.Object===Object&&global,Hh=typeof self=="object"&&self&&self.Object===Object&&self,Qu=hf||Hh||Function("return this")(),Tp=typeof Sb=="object"&&Sb&&!Sb.nodeType&&Sb,gu=Tp&&typeof hS=="object"&&hS&&!hS.nodeType&&hS,df=gu&&gu.exports===Tp,Vs=df&&hf.process,zu=function(){try{var Dt=gu&&gu.require&&gu.require("util").types;return Dt||Vs&&Vs.binding&&Vs.binding("util")}catch{}}(),bo=zu&&zu.isArrayBuffer,Gu=zu&&zu.isDate,Hs=zu&&zu.isMap,z1=zu&&zu.isRegExp,$e=zu&&zu.isSet,fe=zu&&zu.isTypedArray;function ce(Dt,kt,Me){switch(Me.length){case 0:return Dt.call(kt);case 1:return Dt.call(kt,Me[0]);case 2:return Dt.call(kt,Me[0],Me[1]);case 3:return Dt.call(kt,Me[0],Me[1],Me[2])}return Dt.apply(kt,Me)}function Ee(Dt,kt,Me,gt){for(var yt=-1,Wt=Dt==null?0:Dt.length;++yt<Wt;){var vr=Dt[yt];kt(gt,vr,Me(vr),Dt)}return gt}function we(Dt,kt){for(var Me=-1,gt=Dt==null?0:Dt.length;++Me<gt&&kt(Dt[Me],Me,Dt)!==!1;);return Dt}function We(Dt,kt){for(var Me=Dt==null?0:Dt.length;Me--&&kt(Dt[Me],Me,Dt)!==!1;);return Dt}function Ve(Dt,kt){for(var Me=-1,gt=Dt==null?0:Dt.length;++Me<gt;)if(!kt(Dt[Me],Me,Dt))return!1;return!0}function Qe(Dt,kt){for(var Me=-1,gt=Dt==null?0:Dt.length,yt=0,Wt=[];++Me<gt;){var vr=Dt[Me];kt(vr,Me,Dt)&&(Wt[yt++]=vr)}return Wt}function rt(Dt,kt){var Me=Dt==null?0:Dt.length;return!!Me&&Lt(Dt,kt,0)>-1}function At(Dt,kt,Me){for(var gt=-1,yt=Dt==null?0:Dt.length;++gt<yt;)if(Me(kt,Dt[gt]))return!0;return!1}function It(Dt,kt){for(var Me=-1,gt=Dt==null?0:Dt.length,yt=Array(gt);++Me<gt;)yt[Me]=kt(Dt[Me],Me,Dt);return yt}function rr(Dt,kt){for(var Me=-1,gt=kt.length,yt=Dt.length;++Me<gt;)Dt[yt+Me]=kt[Me];return Dt}function Ht(Dt,kt,Me,gt){var yt=-1,Wt=Dt==null?0:Dt.length;for(gt&&Wt&&(Me=Dt[++yt]);++yt<Wt;)Me=kt(Me,Dt[yt],yt,Dt);return Me}function Mr(Dt,kt,Me,gt){var yt=Dt==null?0:Dt.length;for(gt&&yt&&(Me=Dt[--yt]);yt--;)Me=kt(Me,Dt[yt],yt,Dt);return Me}function fi(Dt,kt){for(var Me=-1,gt=Dt==null?0:Dt.length;++Me<gt;)if(kt(Dt[Me],Me,Dt))return!0;return!1}var Ks=$n("length");function As(Dt){return Dt.split("")}function Sn(Dt){return Dt.match(pn)||[]}function Qt(Dt,kt,Me){var gt;return Me(Dt,function(yt,Wt,vr){if(kt(yt,Wt,vr))return gt=Wt,!1}),gt}function Nt(Dt,kt,Me,gt){for(var yt=Dt.length,Wt=Me+(gt?1:-1);gt?Wt--:++Wt<yt;)if(kt(Dt[Wt],Wt,Dt))return Wt;return-1}function Lt(Dt,kt,Me){return kt===kt?j9(Dt,kt,Me):Nt(Dt,fr,Me)}function Kt(Dt,kt,Me,gt){for(var yt=Me-1,Wt=Dt.length;++yt<Wt;)if(gt(Dt[yt],kt))return yt;return-1}function fr(Dt){return Dt!==Dt}function dn(Dt,kt){var Me=Dt==null?0:Dt.length;return Me?Pp(Dt,kt)/Me:G}function $n(Dt){return function(kt){return kt==null?e:kt[Dt]}}function Di(Dt){return function(kt){return Dt==null?e:Dt[kt]}}function No(Dt,kt,Me,gt,yt){return yt(Dt,function(Wt,vr,Nr){Me=gt?(gt=!1,Wt):kt(Me,Wt,vr,Nr)}),Me}function Fs(Dt,kt){var Me=Dt.length;for(Dt.sort(kt);Me--;)Dt[Me]=Dt[Me].value;return Dt}function Pp(Dt,kt){for(var Me,gt=-1,yt=Dt.length;++gt<yt;){var Wt=kt(Dt[gt]);Wt!==e&&(Me=Me===e?Wt:Me+Wt)}return Me}function sw(Dt,kt){for(var Me=-1,gt=Array(Dt);++Me<Dt;)gt[Me]=kt(Me);return gt}function aw(Dt,kt){return It(kt,function(Me){return[Me,Dt[Me]]})}function k9(Dt){return Dt&&Dt.slice(0,Um(Dt)+1).replace(mt,"")}function Dl(Dt){return function(kt){return Dt(kt)}}function R9(Dt,kt){return It(kt,function(Me){return Dt[Me]})}function _s(Dt,kt){return Dt.has(kt)}function I9(Dt,kt){for(var Me=-1,gt=Dt.length;++Me<gt&&Lt(kt,Dt[Me],0)>-1;);return Me}function D6(Dt,kt){for(var Me=Dt.length;Me--&&Lt(kt,Dt[Me],0)>-1;);return Me}function tU(Dt,kt){for(var Me=Dt.length,gt=0;Me--;)Dt[Me]===kt&&++gt;return gt}var rU=Di(ru),Sce=Di(Yn);function Oce(Dt){return"\\"+Vh[Dt]}function Tce(Dt,kt){return Dt==null?e:Dt[kt]}function E6(Dt){return h0.test(Dt)}function Pce(Dt){return M1.test(Dt)}function b6(Dt){for(var kt,Me=[];!(kt=Dt.next()).done;)Me.push(kt.value);return Me}function cw(Dt){var kt=-1,Me=Array(Dt.size);return Dt.forEach(function(gt,yt){Me[++kt]=[yt,gt]}),Me}function nU(Dt,kt){return function(Me){return Dt(kt(Me))}}function kp(Dt,kt){for(var Me=-1,gt=Dt.length,yt=0,Wt=[];++Me<gt;){var vr=Dt[Me];(vr===kt||vr===a)&&(Dt[Me]=a,Wt[yt++]=Me)}return Wt}function nD(Dt){var kt=-1,Me=Array(Dt.size);return Dt.forEach(function(gt){Me[++kt]=gt}),Me}function G1(Dt){var kt=-1,Me=Array(Dt.size);return Dt.forEach(function(gt){Me[++kt]=[gt,gt]}),Me}function j9(Dt,kt,Me){for(var gt=Me-1,yt=Dt.length;++gt<yt;)if(Dt[gt]===kt)return gt;return-1}function kce(Dt,kt,Me){for(var gt=Me+1;gt--;)if(Dt[gt]===kt)return gt;return gt}function C6(Dt){return E6(Dt)?uU(Dt):Ks(Dt)}function d0(Dt){return E6(Dt)?Rce(Dt):As(Dt)}function Um(Dt){for(var kt=Dt.length;kt--&&St.test(Dt.charAt(kt)););return kt}var m0=Di(U1);function uU(Dt){for(var kt=pf.lastIndex=0;pf.test(Dt);)++kt;return kt}function Rce(Dt){return Dt.match(pf)||[]}function Ice(Dt){return Dt.match(q1)||[]}var jce=function Dt(kt){kt=kt==null?Qu:W1.defaults(Qu.Object(),kt,W1.pick(Qu,wp));var Me=kt.Array,gt=kt.Date,yt=kt.Error,Wt=kt.Function,vr=kt.Math,Nr=kt.Object,so=kt.RegExp,Zu=kt.String,Fc=kt.TypeError,L9=Me.prototype,mf=Wt.prototype,Kh=Nr.prototype,N9=kt["__core-js_shared__"],Yh=mf.toString,pu=Kh.hasOwnProperty,q9=0,Tu=function(){var R=/[^.]+$/.exec(N9&&N9.keys&&N9.keys.IE_PROTO||"");return R?"Symbol(src)_1."+R:""}(),M9=Kh.toString,iU=Yh.call(Nr),U9=Qu._,Lce=so("^"+Yh.call(pu).replace(Ot,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$9=df?kt.Buffer:e,V1=kt.Symbol,$m=kt.Uint8Array,Xh=$9?$9.allocUnsafe:e,zm=nU(Nr.getPrototypeOf,Nr),lw=Nr.create,uD=Kh.propertyIsEnumerable,iD=L9.splice,fw=V1?V1.isConcatSpreadable:e,H1=V1?V1.iterator:e,K1=V1?V1.toStringTag:e,Y1=function(){try{var R=Up(Nr,"defineProperty");return R({},"",{}),R}catch{}}(),Gm=kt.clearTimeout!==Qu.clearTimeout&&kt.clearTimeout,z9=gt&&gt.now!==Qu.Date.now&&gt.now,Nce=kt.setTimeout!==Qu.setTimeout&&kt.setTimeout,G9=vr.ceil,W9=vr.floor,x6=Nr.getOwnPropertySymbols,V9=$9?$9.isBuffer:e,H9=kt.isFinite,qce=L9.join,oU=nU(Nr.keys,Nr),qo=vr.max,Ys=vr.min,Mo=gt.now,Xs=kt.parseInt,sU=vr.random,Mce=L9.reverse,K9=Up(kt,"DataView"),oD=Up(kt,"Map"),sD=Up(kt,"Promise"),Rp=Up(kt,"Set"),Wm=Up(kt,"WeakMap"),Ip=Up(Nr,"create"),X1=Wm&&new Wm,jp={},Y9=Z1(K9),A6=Z1(oD),Uce=Z1(sD),$ce=Z1(Rp),zce=Z1(Wm),X9=V1?V1.prototype:e,aD=X9?X9.valueOf:e,cD=X9?X9.toString:e;function ke(R){if(pi(R)&&!En(R)&&!(R instanceof Rn)){if(R instanceof Bs)return R;if(pu.call(R,"__wrapped__"))return e2(R)}return new Bs(R)}var Vm=function(){function R(){}return function(W){if(!Ei(W))return{};if(lw)return lw(W);R.prototype=W;var w=new R;return R.prototype=e,w}}();function Re(){}function Bs(R,W){this.__wrapped__=R,this.__actions__=[],this.__chain__=!!W,this.__index__=0,this.__values__=e}ke.templateSettings={escape:Oe,evaluate:et,interpolate:ut,variable:"",imports:{_:ke}},ke.prototype=Re.prototype,ke.prototype.constructor=ke,Bs.prototype=Vm(Re.prototype),Bs.prototype.constructor=Bs;function Rn(R){this.__wrapped__=R,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=j,this.__views__=[]}function gf(){var R=new Rn(this.__wrapped__);return R.__actions__=Ia(this.__actions__),R.__dir__=this.__dir__,R.__filtered__=this.__filtered__,R.__iteratees__=Ia(this.__iteratees__),R.__takeCount__=this.__takeCount__,R.__views__=Ia(this.__views__),R}function zn(){if(this.__filtered__){var R=new Rn(this);R.__dir__=-1,R.__filtered__=!0}else R=this.clone(),R.__dir__*=-1;return R}function Gce(){var R=this.__wrapped__.value(),W=this.__dir__,w=En(R),k=W<0,H=w?R.length:0,oe=qU(0,H,this.__views__),le=oe.start,ye=oe.end,_e=ye-le,Ne=k?ye:le-1,He=this.__iteratees__,st=He.length,vt=0,_t=Ys(_e,this.__takeCount__);if(!w||!k&&H==_e&&_t==_e)return xw(R,this.__actions__);var jt=[];e:for(;_e--&&vt<_t;){Ne+=W;for(var $t=-1,zt=R[Ne];++$t<st;){var nr=He[$t],er=nr.iteratee,cn=nr.type,ln=er(zt);if(cn==T)zt=ln;else if(!ln){if(cn==O)continue e;break e}}jt[vt++]=zt}return jt}Rn.prototype=Vm(Re.prototype),Rn.prototype.constructor=Rn;function Hm(R){var W=-1,w=R==null?0:R.length;for(this.clear();++W<w;){var k=R[W];this.set(k[0],k[1])}}function Wce(){this.__data__=Ip?Ip(null):{},th