xevol 0.3.1 → 0.5.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 (2) hide show
  1. package/dist/index.js +54 -52
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,88 +1,90 @@
1
1
  #!/usr/bin/env node
2
- import{createRequire as U2}from"node:module";var Y2=Object.create;var{getPrototypeOf:z2,defineProperty:ku,getOwnPropertyNames:K2}=Object;var M2=Object.prototype.hasOwnProperty;var qD=(D,u,F)=>{F=D!=null?Y2(z2(D)):{};let E=u||!D||!D.__esModule?ku(F,"default",{value:D,enumerable:!0}):F;for(let C of K2(D))if(!M2.call(E,C))ku(E,C,{get:()=>D[C],enumerable:!0});return E};var j=(D,u)=>()=>(u||D((u={exports:{}}).exports,u),u.exports);var FD=U2(import.meta.url);var zD=j((R2)=>{class dD extends Error{constructor(D,u,F){super(F);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=u,this.exitCode=D,this.nestedError=void 0}}class xu extends dD{constructor(D){super(1,"commander.invalidArgument",D);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}R2.CommanderError=dD;R2.InvalidArgumentError=xu});var TD=j((T2)=>{var{InvalidArgumentError:j2}=zD();class hu{constructor(D,u){switch(this.description=u||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,D[0]){case"<":this.required=!0,this._name=D.slice(1,-1);break;case"[":this.required=!1,this._name=D.slice(1,-1);break;default:this.required=!0,this._name=D;break}if(this._name.length>3&&this._name.slice(-3)==="...")this.variadic=!0,this._name=this._name.slice(0,-3)}name(){return this._name}_concatValue(D,u){if(u===this.defaultValue||!Array.isArray(u))return[D];return u.concat(D)}default(D,u){return this.defaultValue=D,this.defaultValueDescription=u,this}argParser(D){return this.parseArg=D,this}choices(D){return this.argChoices=D.slice(),this.parseArg=(u,F)=>{if(!this.argChoices.includes(u))throw new j2(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._concatValue(u,F);return u},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}}function W2(D){let u=D.name()+(D.variadic===!0?"...":"");return D.required?"<"+u+">":"["+u+"]"}T2.Argument=hu;T2.humanReadableArgName=W2});var pD=j((O2)=>{var{humanReadableArgName:P2}=TD();class gu{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(D){this.helpWidth=this.helpWidth??D.helpWidth??80}visibleCommands(D){let u=D.commands.filter((E)=>!E._hidden),F=D._getHelpCommand();if(F&&!F._hidden)u.push(F);if(this.sortSubcommands)u.sort((E,C)=>{return E.name().localeCompare(C.name())});return u}compareOptions(D,u){let F=(E)=>{return E.short?E.short.replace(/^-/,""):E.long.replace(/^--/,"")};return F(D).localeCompare(F(u))}visibleOptions(D){let u=D.options.filter((E)=>!E.hidden),F=D._getHelpOption();if(F&&!F.hidden){let E=F.short&&D._findOption(F.short),C=F.long&&D._findOption(F.long);if(!E&&!C)u.push(F);else if(F.long&&!C)u.push(D.createOption(F.long,F.description));else if(F.short&&!E)u.push(D.createOption(F.short,F.description))}if(this.sortOptions)u.sort(this.compareOptions);return u}visibleGlobalOptions(D){if(!this.showGlobalOptions)return[];let u=[];for(let F=D.parent;F;F=F.parent){let E=F.options.filter((C)=>!C.hidden);u.push(...E)}if(this.sortOptions)u.sort(this.compareOptions);return u}visibleArguments(D){if(D._argsDescription)D.registeredArguments.forEach((u)=>{u.description=u.description||D._argsDescription[u.name()]||""});if(D.registeredArguments.find((u)=>u.description))return D.registeredArguments;return[]}subcommandTerm(D){let u=D.registeredArguments.map((F)=>P2(F)).join(" ");return D._name+(D._aliases[0]?"|"+D._aliases[0]:"")+(D.options.length?" [options]":"")+(u?" "+u:"")}optionTerm(D){return D.flags}argumentTerm(D){return D.name()}longestSubcommandTermLength(D,u){return u.visibleCommands(D).reduce((F,E)=>{return Math.max(F,this.displayWidth(u.styleSubcommandTerm(u.subcommandTerm(E))))},0)}longestOptionTermLength(D,u){return u.visibleOptions(D).reduce((F,E)=>{return Math.max(F,this.displayWidth(u.styleOptionTerm(u.optionTerm(E))))},0)}longestGlobalOptionTermLength(D,u){return u.visibleGlobalOptions(D).reduce((F,E)=>{return Math.max(F,this.displayWidth(u.styleOptionTerm(u.optionTerm(E))))},0)}longestArgumentTermLength(D,u){return u.visibleArguments(D).reduce((F,E)=>{return Math.max(F,this.displayWidth(u.styleArgumentTerm(u.argumentTerm(E))))},0)}commandUsage(D){let u=D._name;if(D._aliases[0])u=u+"|"+D._aliases[0];let F="";for(let E=D.parent;E;E=E.parent)F=E.name()+" "+F;return F+u+" "+D.usage()}commandDescription(D){return D.description()}subcommandDescription(D){return D.summary()||D.description()}optionDescription(D){let u=[];if(D.argChoices)u.push(`choices: ${D.argChoices.map((F)=>JSON.stringify(F)).join(", ")}`);if(D.defaultValue!==void 0){if(D.required||D.optional||D.isBoolean()&&typeof D.defaultValue==="boolean")u.push(`default: ${D.defaultValueDescription||JSON.stringify(D.defaultValue)}`)}if(D.presetArg!==void 0&&D.optional)u.push(`preset: ${JSON.stringify(D.presetArg)}`);if(D.envVar!==void 0)u.push(`env: ${D.envVar}`);if(u.length>0)return`${D.description} (${u.join(", ")})`;return D.description}argumentDescription(D){let u=[];if(D.argChoices)u.push(`choices: ${D.argChoices.map((F)=>JSON.stringify(F)).join(", ")}`);if(D.defaultValue!==void 0)u.push(`default: ${D.defaultValueDescription||JSON.stringify(D.defaultValue)}`);if(u.length>0){let F=`(${u.join(", ")})`;if(D.description)return`${D.description} ${F}`;return F}return D.description}formatHelp(D,u){let F=u.padWidth(D,u),E=u.helpWidth??80;function C(Z,H){return u.formatItem(Z,F,H,u)}let B=[`${u.styleTitle("Usage:")} ${u.styleUsage(u.commandUsage(D))}`,""],_=u.commandDescription(D);if(_.length>0)B=B.concat([u.boxWrap(u.styleCommandDescription(_),E),""]);let A=u.visibleArguments(D).map((Z)=>{return C(u.styleArgumentTerm(u.argumentTerm(Z)),u.styleArgumentDescription(u.argumentDescription(Z)))});if(A.length>0)B=B.concat([u.styleTitle("Arguments:"),...A,""]);let q=u.visibleOptions(D).map((Z)=>{return C(u.styleOptionTerm(u.optionTerm(Z)),u.styleOptionDescription(u.optionDescription(Z)))});if(q.length>0)B=B.concat([u.styleTitle("Options:"),...q,""]);if(u.showGlobalOptions){let Z=u.visibleGlobalOptions(D).map((H)=>{return C(u.styleOptionTerm(u.optionTerm(H)),u.styleOptionDescription(u.optionDescription(H)))});if(Z.length>0)B=B.concat([u.styleTitle("Global Options:"),...Z,""])}let $=u.visibleCommands(D).map((Z)=>{return C(u.styleSubcommandTerm(u.subcommandTerm(Z)),u.styleSubcommandDescription(u.subcommandDescription(Z)))});if($.length>0)B=B.concat([u.styleTitle("Commands:"),...$,""]);return B.join(`
3
- `)}displayWidth(D){return mu(D).length}styleTitle(D){return D}styleUsage(D){return D.split(" ").map((u)=>{if(u==="[options]")return this.styleOptionText(u);if(u==="[command]")return this.styleSubcommandText(u);if(u[0]==="["||u[0]==="<")return this.styleArgumentText(u);return this.styleCommandText(u)}).join(" ")}styleCommandDescription(D){return this.styleDescriptionText(D)}styleOptionDescription(D){return this.styleDescriptionText(D)}styleSubcommandDescription(D){return this.styleDescriptionText(D)}styleArgumentDescription(D){return this.styleDescriptionText(D)}styleDescriptionText(D){return D}styleOptionTerm(D){return this.styleOptionText(D)}styleSubcommandTerm(D){return D.split(" ").map((u)=>{if(u==="[options]")return this.styleOptionText(u);if(u[0]==="["||u[0]==="<")return this.styleArgumentText(u);return this.styleSubcommandText(u)}).join(" ")}styleArgumentTerm(D){return this.styleArgumentText(D)}styleOptionText(D){return D}styleArgumentText(D){return D}styleSubcommandText(D){return D}styleCommandText(D){return D}padWidth(D,u){return Math.max(u.longestOptionTermLength(D,u),u.longestGlobalOptionTermLength(D,u),u.longestSubcommandTermLength(D,u),u.longestArgumentTermLength(D,u))}preformatted(D){return/\n[^\S\r\n]/.test(D)}formatItem(D,u,F,E){let B=" ".repeat(2);if(!F)return B+D;let _=D.padEnd(u+D.length-E.displayWidth(D)),A=2,$=(this.helpWidth??80)-u-A-2,Z;if($<this.minWidthToWrap||E.preformatted(F))Z=F;else Z=E.boxWrap(F,$).replace(/\n/g,`
4
- `+" ".repeat(u+A));return B+_+" ".repeat(A)+Z.replace(/\n/g,`
5
- ${B}`)}boxWrap(D,u){if(u<this.minWidthToWrap)return D;let F=D.split(/\r\n|\n/),E=/[\s]*[^\s]+/g,C=[];return F.forEach((B)=>{let _=B.match(E);if(_===null){C.push("");return}let A=[_.shift()],q=this.displayWidth(A[0]);_.forEach(($)=>{let Z=this.displayWidth($);if(q+Z<=u){A.push($),q+=Z;return}C.push(A.join(""));let H=$.trimStart();A=[H],q=this.displayWidth(H)}),C.push(A.join(""))}),C.join(`
6
- `)}}function mu(D){let u=/\x1b\[\d*(;\d*)*m/g;return D.replace(u,"")}O2.Help=gu;O2.stripColor=mu});var lD=j((y2)=>{var{InvalidArgumentError:b2}=zD();class du{constructor(D,u){this.flags=D,this.description=u||"",this.required=D.includes("<"),this.optional=D.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(D),this.mandatory=!1;let F=f2(D);if(this.short=F.shortFlag,this.long=F.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(D,u){return this.defaultValue=D,this.defaultValueDescription=u,this}preset(D){return this.presetArg=D,this}conflicts(D){return this.conflictsWith=this.conflictsWith.concat(D),this}implies(D){let u=D;if(typeof D==="string")u={[D]:!0};return this.implied=Object.assign(this.implied||{},u),this}env(D){return this.envVar=D,this}argParser(D){return this.parseArg=D,this}makeOptionMandatory(D=!0){return this.mandatory=!!D,this}hideHelp(D=!0){return this.hidden=!!D,this}_concatValue(D,u){if(u===this.defaultValue||!Array.isArray(u))return[D];return u.concat(D)}choices(D){return this.argChoices=D.slice(),this.parseArg=(u,F)=>{if(!this.argChoices.includes(u))throw new b2(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._concatValue(u,F);return u},this}name(){if(this.long)return this.long.replace(/^--/,"");return this.short.replace(/^-/,"")}attributeName(){if(this.negate)return cu(this.name().replace(/^no-/,""));return cu(this.name())}is(D){return this.short===D||this.long===D}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class pu{constructor(D){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,D.forEach((u)=>{if(u.negate)this.negativeOptions.set(u.attributeName(),u);else this.positiveOptions.set(u.attributeName(),u)}),this.negativeOptions.forEach((u,F)=>{if(this.positiveOptions.has(F))this.dualOptions.add(F)})}valueFromOption(D,u){let F=u.attributeName();if(!this.dualOptions.has(F))return!0;let E=this.negativeOptions.get(F).presetArg,C=E!==void 0?E:!1;return u.negate===(C===D)}}function cu(D){return D.split("-").reduce((u,F)=>{return u+F[0].toUpperCase()+F.slice(1)})}function f2(D){let u,F,E=/^-[^-]$/,C=/^--[^-]/,B=D.split(/[ |,]+/).concat("guard");if(E.test(B[0]))u=B.shift();if(C.test(B[0]))F=B.shift();if(!u&&E.test(B[0]))u=B.shift();if(!u&&C.test(B[0]))u=F,F=B.shift();if(B[0].startsWith("-")){let _=B[0],A=`option creation failed due to '${_}' in option flags '${D}'`;if(/^-[^-][^-]/.test(_))throw Error(`${A}
2
+ import{createRequire as w2}from"node:module";var W2=Object.create;var{getPrototypeOf:T2,defineProperty:mu,getOwnPropertyNames:L2}=Object;var I2=Object.prototype.hasOwnProperty;var ZD=(D,u,F)=>{F=D!=null?W2(T2(D)):{};let E=u||!D||!D.__esModule?mu(F,"default",{value:D,enumerable:!0}):F;for(let C of L2(D))if(!I2.call(E,C))mu(E,C,{get:()=>D[C],enumerable:!0});return E};var W=(D,u)=>()=>(u||D((u={exports:{}}).exports,u),u.exports);var ED=w2(import.meta.url);var KD=W((O2)=>{class nD extends Error{constructor(D,u,F){super(F);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=u,this.exitCode=D,this.nestedError=void 0}}class cu extends nD{constructor(D){super(1,"commander.invalidArgument",D);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}O2.CommanderError=nD;O2.InvalidArgumentError=cu});var wD=W((y2)=>{var{InvalidArgumentError:f2}=KD();class du{constructor(D,u){switch(this.description=u||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,D[0]){case"<":this.required=!0,this._name=D.slice(1,-1);break;case"[":this.required=!1,this._name=D.slice(1,-1);break;default:this.required=!0,this._name=D;break}if(this._name.length>3&&this._name.slice(-3)==="...")this.variadic=!0,this._name=this._name.slice(0,-3)}name(){return this._name}_concatValue(D,u){if(u===this.defaultValue||!Array.isArray(u))return[D];return u.concat(D)}default(D,u){return this.defaultValue=D,this.defaultValueDescription=u,this}argParser(D){return this.parseArg=D,this}choices(D){return this.argChoices=D.slice(),this.parseArg=(u,F)=>{if(!this.argChoices.includes(u))throw new f2(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._concatValue(u,F);return u},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}}function b2(D){let u=D.name()+(D.variadic===!0?"...":"");return D.required?"<"+u+">":"["+u+"]"}y2.Argument=du;y2.humanReadableArgName=b2});var iD=W((h2)=>{var{humanReadableArgName:x2}=wD();class pu{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(D){this.helpWidth=this.helpWidth??D.helpWidth??80}visibleCommands(D){let u=D.commands.filter((E)=>!E._hidden),F=D._getHelpCommand();if(F&&!F._hidden)u.push(F);if(this.sortSubcommands)u.sort((E,C)=>{return E.name().localeCompare(C.name())});return u}compareOptions(D,u){let F=(E)=>{return E.short?E.short.replace(/^-/,""):E.long.replace(/^--/,"")};return F(D).localeCompare(F(u))}visibleOptions(D){let u=D.options.filter((E)=>!E.hidden),F=D._getHelpOption();if(F&&!F.hidden){let E=F.short&&D._findOption(F.short),C=F.long&&D._findOption(F.long);if(!E&&!C)u.push(F);else if(F.long&&!C)u.push(D.createOption(F.long,F.description));else if(F.short&&!E)u.push(D.createOption(F.short,F.description))}if(this.sortOptions)u.sort(this.compareOptions);return u}visibleGlobalOptions(D){if(!this.showGlobalOptions)return[];let u=[];for(let F=D.parent;F;F=F.parent){let E=F.options.filter((C)=>!C.hidden);u.push(...E)}if(this.sortOptions)u.sort(this.compareOptions);return u}visibleArguments(D){if(D._argsDescription)D.registeredArguments.forEach((u)=>{u.description=u.description||D._argsDescription[u.name()]||""});if(D.registeredArguments.find((u)=>u.description))return D.registeredArguments;return[]}subcommandTerm(D){let u=D.registeredArguments.map((F)=>x2(F)).join(" ");return D._name+(D._aliases[0]?"|"+D._aliases[0]:"")+(D.options.length?" [options]":"")+(u?" "+u:"")}optionTerm(D){return D.flags}argumentTerm(D){return D.name()}longestSubcommandTermLength(D,u){return u.visibleCommands(D).reduce((F,E)=>{return Math.max(F,this.displayWidth(u.styleSubcommandTerm(u.subcommandTerm(E))))},0)}longestOptionTermLength(D,u){return u.visibleOptions(D).reduce((F,E)=>{return Math.max(F,this.displayWidth(u.styleOptionTerm(u.optionTerm(E))))},0)}longestGlobalOptionTermLength(D,u){return u.visibleGlobalOptions(D).reduce((F,E)=>{return Math.max(F,this.displayWidth(u.styleOptionTerm(u.optionTerm(E))))},0)}longestArgumentTermLength(D,u){return u.visibleArguments(D).reduce((F,E)=>{return Math.max(F,this.displayWidth(u.styleArgumentTerm(u.argumentTerm(E))))},0)}commandUsage(D){let u=D._name;if(D._aliases[0])u=u+"|"+D._aliases[0];let F="";for(let E=D.parent;E;E=E.parent)F=E.name()+" "+F;return F+u+" "+D.usage()}commandDescription(D){return D.description()}subcommandDescription(D){return D.summary()||D.description()}optionDescription(D){let u=[];if(D.argChoices)u.push(`choices: ${D.argChoices.map((F)=>JSON.stringify(F)).join(", ")}`);if(D.defaultValue!==void 0){if(D.required||D.optional||D.isBoolean()&&typeof D.defaultValue==="boolean")u.push(`default: ${D.defaultValueDescription||JSON.stringify(D.defaultValue)}`)}if(D.presetArg!==void 0&&D.optional)u.push(`preset: ${JSON.stringify(D.presetArg)}`);if(D.envVar!==void 0)u.push(`env: ${D.envVar}`);if(u.length>0)return`${D.description} (${u.join(", ")})`;return D.description}argumentDescription(D){let u=[];if(D.argChoices)u.push(`choices: ${D.argChoices.map((F)=>JSON.stringify(F)).join(", ")}`);if(D.defaultValue!==void 0)u.push(`default: ${D.defaultValueDescription||JSON.stringify(D.defaultValue)}`);if(u.length>0){let F=`(${u.join(", ")})`;if(D.description)return`${D.description} ${F}`;return F}return D.description}formatHelp(D,u){let F=u.padWidth(D,u),E=u.helpWidth??80;function C(X,J){return u.formatItem(X,F,J,u)}let B=[`${u.styleTitle("Usage:")} ${u.styleUsage(u.commandUsage(D))}`,""],_=u.commandDescription(D);if(_.length>0)B=B.concat([u.boxWrap(u.styleCommandDescription(_),E),""]);let A=u.visibleArguments(D).map((X)=>{return C(u.styleArgumentTerm(u.argumentTerm(X)),u.styleArgumentDescription(u.argumentDescription(X)))});if(A.length>0)B=B.concat([u.styleTitle("Arguments:"),...A,""]);let Z=u.visibleOptions(D).map((X)=>{return C(u.styleOptionTerm(u.optionTerm(X)),u.styleOptionDescription(u.optionDescription(X)))});if(Z.length>0)B=B.concat([u.styleTitle("Options:"),...Z,""]);if(u.showGlobalOptions){let X=u.visibleGlobalOptions(D).map((J)=>{return C(u.styleOptionTerm(u.optionTerm(J)),u.styleOptionDescription(u.optionDescription(J)))});if(X.length>0)B=B.concat([u.styleTitle("Global Options:"),...X,""])}let $=u.visibleCommands(D).map((X)=>{return C(u.styleSubcommandTerm(u.subcommandTerm(X)),u.styleSubcommandDescription(u.subcommandDescription(X)))});if($.length>0)B=B.concat([u.styleTitle("Commands:"),...$,""]);return B.join(`
3
+ `)}displayWidth(D){return ru(D).length}styleTitle(D){return D}styleUsage(D){return D.split(" ").map((u)=>{if(u==="[options]")return this.styleOptionText(u);if(u==="[command]")return this.styleSubcommandText(u);if(u[0]==="["||u[0]==="<")return this.styleArgumentText(u);return this.styleCommandText(u)}).join(" ")}styleCommandDescription(D){return this.styleDescriptionText(D)}styleOptionDescription(D){return this.styleDescriptionText(D)}styleSubcommandDescription(D){return this.styleDescriptionText(D)}styleArgumentDescription(D){return this.styleDescriptionText(D)}styleDescriptionText(D){return D}styleOptionTerm(D){return this.styleOptionText(D)}styleSubcommandTerm(D){return D.split(" ").map((u)=>{if(u==="[options]")return this.styleOptionText(u);if(u[0]==="["||u[0]==="<")return this.styleArgumentText(u);return this.styleSubcommandText(u)}).join(" ")}styleArgumentTerm(D){return this.styleArgumentText(D)}styleOptionText(D){return D}styleArgumentText(D){return D}styleSubcommandText(D){return D}styleCommandText(D){return D}padWidth(D,u){return Math.max(u.longestOptionTermLength(D,u),u.longestGlobalOptionTermLength(D,u),u.longestSubcommandTermLength(D,u),u.longestArgumentTermLength(D,u))}preformatted(D){return/\n[^\S\r\n]/.test(D)}formatItem(D,u,F,E){let B=" ".repeat(2);if(!F)return B+D;let _=D.padEnd(u+D.length-E.displayWidth(D)),A=2,$=(this.helpWidth??80)-u-A-2,X;if($<this.minWidthToWrap||E.preformatted(F))X=F;else X=E.boxWrap(F,$).replace(/\n/g,`
4
+ `+" ".repeat(u+A));return B+_+" ".repeat(A)+X.replace(/\n/g,`
5
+ ${B}`)}boxWrap(D,u){if(u<this.minWidthToWrap)return D;let F=D.split(/\r\n|\n/),E=/[\s]*[^\s]+/g,C=[];return F.forEach((B)=>{let _=B.match(E);if(_===null){C.push("");return}let A=[_.shift()],Z=this.displayWidth(A[0]);_.forEach(($)=>{let X=this.displayWidth($);if(Z+X<=u){A.push($),Z+=X;return}C.push(A.join(""));let J=$.trimStart();A=[J],Z=this.displayWidth(J)}),C.push(A.join(""))}),C.join(`
6
+ `)}}function ru(D){let u=/\x1b\[\d*(;\d*)*m/g;return D.replace(u,"")}h2.Help=pu;h2.stripColor=ru});var aD=W((p2)=>{var{InvalidArgumentError:c2}=KD();class nu{constructor(D,u){this.flags=D,this.description=u||"",this.required=D.includes("<"),this.optional=D.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(D),this.mandatory=!1;let F=d2(D);if(this.short=F.shortFlag,this.long=F.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(D,u){return this.defaultValue=D,this.defaultValueDescription=u,this}preset(D){return this.presetArg=D,this}conflicts(D){return this.conflictsWith=this.conflictsWith.concat(D),this}implies(D){let u=D;if(typeof D==="string")u={[D]:!0};return this.implied=Object.assign(this.implied||{},u),this}env(D){return this.envVar=D,this}argParser(D){return this.parseArg=D,this}makeOptionMandatory(D=!0){return this.mandatory=!!D,this}hideHelp(D=!0){return this.hidden=!!D,this}_concatValue(D,u){if(u===this.defaultValue||!Array.isArray(u))return[D];return u.concat(D)}choices(D){return this.argChoices=D.slice(),this.parseArg=(u,F)=>{if(!this.argChoices.includes(u))throw new c2(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._concatValue(u,F);return u},this}name(){if(this.long)return this.long.replace(/^--/,"");return this.short.replace(/^-/,"")}attributeName(){if(this.negate)return lu(this.name().replace(/^no-/,""));return lu(this.name())}is(D){return this.short===D||this.long===D}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class iu{constructor(D){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,D.forEach((u)=>{if(u.negate)this.negativeOptions.set(u.attributeName(),u);else this.positiveOptions.set(u.attributeName(),u)}),this.negativeOptions.forEach((u,F)=>{if(this.positiveOptions.has(F))this.dualOptions.add(F)})}valueFromOption(D,u){let F=u.attributeName();if(!this.dualOptions.has(F))return!0;let E=this.negativeOptions.get(F).presetArg,C=E!==void 0?E:!1;return u.negate===(C===D)}}function lu(D){return D.split("-").reduce((u,F)=>{return u+F[0].toUpperCase()+F.slice(1)})}function d2(D){let u,F,E=/^-[^-]$/,C=/^--[^-]/,B=D.split(/[ |,]+/).concat("guard");if(E.test(B[0]))u=B.shift();if(C.test(B[0]))F=B.shift();if(!u&&E.test(B[0]))u=B.shift();if(!u&&C.test(B[0]))u=F,F=B.shift();if(B[0].startsWith("-")){let _=B[0],A=`option creation failed due to '${_}' in option flags '${D}'`;if(/^-[^-][^-]/.test(_))throw Error(`${A}
7
7
  - a short flag is a single dash and a single character
8
8
  - either use a single dash and a single character (for a short flag)
9
9
  - or use a double dash for a long option (and can have two, like '--ws, --workspace')`);if(E.test(_))throw Error(`${A}
10
10
  - too many short flags`);if(C.test(_))throw Error(`${A}
11
11
  - too many long flags`);throw Error(`${A}
12
- - unrecognised flag format`)}if(u===void 0&&F===void 0)throw Error(`option creation failed due to no flags found in '${D}'.`);return{shortFlag:u,longFlag:F}}y2.Option=du;y2.DualOptions=pu});var lu=j((g2)=>{function x2(D,u){if(Math.abs(D.length-u.length)>3)return Math.max(D.length,u.length);let F=[];for(let E=0;E<=D.length;E++)F[E]=[E];for(let E=0;E<=u.length;E++)F[0][E]=E;for(let E=1;E<=u.length;E++)for(let C=1;C<=D.length;C++){let B=1;if(D[C-1]===u[E-1])B=0;else B=1;if(F[C][E]=Math.min(F[C-1][E]+1,F[C][E-1]+1,F[C-1][E-1]+B),C>1&&E>1&&D[C-1]===u[E-2]&&D[C-2]===u[E-1])F[C][E]=Math.min(F[C][E],F[C-2][E-2]+1)}return F[D.length][u.length]}function h2(D,u){if(!u||u.length===0)return"";u=Array.from(new Set(u));let F=D.startsWith("--");if(F)D=D.slice(2),u=u.map((_)=>_.slice(2));let E=[],C=3,B=0.4;if(u.forEach((_)=>{if(_.length<=1)return;let A=x2(D,_),q=Math.max(D.length,_.length);if((q-A)/q>B){if(A<C)C=A,E=[_];else if(A===C)E.push(_)}}),E.sort((_,A)=>_.localeCompare(A)),F)E=E.map((_)=>`--${_}`);if(E.length>1)return`
12
+ - unrecognised flag format`)}if(u===void 0&&F===void 0)throw Error(`option creation failed due to no flags found in '${D}'.`);return{shortFlag:u,longFlag:F}}p2.Option=nu;p2.DualOptions=iu});var au=W((a2)=>{function n2(D,u){if(Math.abs(D.length-u.length)>3)return Math.max(D.length,u.length);let F=[];for(let E=0;E<=D.length;E++)F[E]=[E];for(let E=0;E<=u.length;E++)F[0][E]=E;for(let E=1;E<=u.length;E++)for(let C=1;C<=D.length;C++){let B=1;if(D[C-1]===u[E-1])B=0;else B=1;if(F[C][E]=Math.min(F[C-1][E]+1,F[C][E-1]+1,F[C-1][E-1]+B),C>1&&E>1&&D[C-1]===u[E-2]&&D[C-2]===u[E-1])F[C][E]=Math.min(F[C][E],F[C-2][E-2]+1)}return F[D.length][u.length]}function i2(D,u){if(!u||u.length===0)return"";u=Array.from(new Set(u));let F=D.startsWith("--");if(F)D=D.slice(2),u=u.map((_)=>_.slice(2));let E=[],C=3,B=0.4;if(u.forEach((_)=>{if(_.length<=1)return;let A=n2(D,_),Z=Math.max(D.length,_.length);if((Z-A)/Z>B){if(A<C)C=A,E=[_];else if(A===C)E.push(_)}}),E.sort((_,A)=>_.localeCompare(A)),F)E=E.map((_)=>`--${_}`);if(E.length>1)return`
13
13
  (Did you mean one of ${E.join(", ")}?)`;if(E.length===1)return`
14
- (Did you mean ${E[0]}?)`;return""}g2.suggestSimilar=h2});var nu=j((a2)=>{var c2=FD("node:events").EventEmitter,rD=FD("node:child_process"),DD=FD("node:path"),LD=FD("node:fs"),W=FD("node:process"),{Argument:d2,humanReadableArgName:p2}=TD(),{CommanderError:iD}=zD(),{Help:l2,stripColor:r2}=pD(),{Option:ru,DualOptions:i2}=lD(),{suggestSimilar:iu}=lu();class nD extends c2{constructor(D){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=D||"",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:(u)=>W.stdout.write(u),writeErr:(u)=>W.stderr.write(u),outputError:(u,F)=>F(u),getOutHelpWidth:()=>W.stdout.isTTY?W.stdout.columns:void 0,getErrHelpWidth:()=>W.stderr.isTTY?W.stderr.columns:void 0,getOutHasColors:()=>aD()??(W.stdout.isTTY&&W.stdout.hasColors?.()),getErrHasColors:()=>aD()??(W.stderr.isTTY&&W.stderr.hasColors?.()),stripColor:(u)=>r2(u)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={}}copyInheritedSettings(D){return this._outputConfiguration=D._outputConfiguration,this._helpOption=D._helpOption,this._helpCommand=D._helpCommand,this._helpConfiguration=D._helpConfiguration,this._exitCallback=D._exitCallback,this._storeOptionsAsProperties=D._storeOptionsAsProperties,this._combineFlagAndOptionalValue=D._combineFlagAndOptionalValue,this._allowExcessArguments=D._allowExcessArguments,this._enablePositionalOptions=D._enablePositionalOptions,this._showHelpAfterError=D._showHelpAfterError,this._showSuggestionAfterError=D._showSuggestionAfterError,this}_getCommandAndAncestors(){let D=[];for(let u=this;u;u=u.parent)D.push(u);return D}command(D,u,F){let E=u,C=F;if(typeof E==="object"&&E!==null)C=E,E=null;C=C||{};let[,B,_]=D.match(/([^ ]+) *(.*)/),A=this.createCommand(B);if(E)A.description(E),A._executableHandler=!0;if(C.isDefault)this._defaultCommandName=A._name;if(A._hidden=!!(C.noHelp||C.hidden),A._executableFile=C.executableFile||null,_)A.arguments(_);if(this._registerCommand(A),A.parent=this,A.copyInheritedSettings(this),E)return this;return A}createCommand(D){return new nD(D)}createHelp(){return Object.assign(new l2,this.configureHelp())}configureHelp(D){if(D===void 0)return this._helpConfiguration;return this._helpConfiguration=D,this}configureOutput(D){if(D===void 0)return this._outputConfiguration;return Object.assign(this._outputConfiguration,D),this}showHelpAfterError(D=!0){if(typeof D!=="string")D=!!D;return this._showHelpAfterError=D,this}showSuggestionAfterError(D=!0){return this._showSuggestionAfterError=!!D,this}addCommand(D,u){if(!D._name)throw Error(`Command passed to .addCommand() must have a name
15
- - specify the name in Command constructor or using .name()`);if(u=u||{},u.isDefault)this._defaultCommandName=D._name;if(u.noHelp||u.hidden)D._hidden=!0;return this._registerCommand(D),D.parent=this,D._checkForBrokenPassThrough(),this}createArgument(D,u){return new d2(D,u)}argument(D,u,F,E){let C=this.createArgument(D,u);if(typeof F==="function")C.default(E).argParser(F);else C.default(F);return this.addArgument(C),this}arguments(D){return D.trim().split(/ +/).forEach((u)=>{this.argument(u)}),this}addArgument(D){let u=this.registeredArguments.slice(-1)[0];if(u&&u.variadic)throw Error(`only the last argument can be variadic '${u.name()}'`);if(D.required&&D.defaultValue!==void 0&&D.parseArg===void 0)throw Error(`a default value for a required argument is never used: '${D.name()}'`);return this.registeredArguments.push(D),this}helpCommand(D,u){if(typeof D==="boolean")return this._addImplicitHelpCommand=D,this;D=D??"help [command]";let[,F,E]=D.match(/([^ ]+) *(.*)/),C=u??"display help for command",B=this.createCommand(F);if(B.helpOption(!1),E)B.arguments(E);if(C)B.description(C);return this._addImplicitHelpCommand=!0,this._helpCommand=B,this}addHelpCommand(D,u){if(typeof D!=="object")return this.helpCommand(D,u),this;return this._addImplicitHelpCommand=!0,this._helpCommand=D,this}_getHelpCommand(){if(this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))){if(this._helpCommand===void 0)this.helpCommand(void 0,void 0);return this._helpCommand}return null}hook(D,u){let F=["preSubcommand","preAction","postAction"];if(!F.includes(D))throw Error(`Unexpected value for event passed to hook : '${D}'.
16
- Expecting one of '${F.join("', '")}'`);if(this._lifeCycleHooks[D])this._lifeCycleHooks[D].push(u);else this._lifeCycleHooks[D]=[u];return this}exitOverride(D){if(D)this._exitCallback=D;else this._exitCallback=(u)=>{if(u.code!=="commander.executeSubCommandAsync")throw u};return this}_exit(D,u,F){if(this._exitCallback)this._exitCallback(new iD(D,u,F));W.exit(D)}action(D){let u=(F)=>{let E=this.registeredArguments.length,C=F.slice(0,E);if(this._storeOptionsAsProperties)C[E]=this;else C[E]=this.opts();return C.push(this),D.apply(this,C)};return this._actionHandler=u,this}createOption(D,u){return new ru(D,u)}_callParseArg(D,u,F,E){try{return D.parseArg(u,F)}catch(C){if(C.code==="commander.invalidArgument"){let B=`${E} ${C.message}`;this.error(B,{exitCode:C.exitCode,code:C.code})}throw C}}_registerOption(D){let u=D.short&&this._findOption(D.short)||D.long&&this._findOption(D.long);if(u){let F=D.long&&this._findOption(D.long)?D.long:D.short;throw Error(`Cannot add option '${D.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${F}'
17
- - already used by option '${u.flags}'`)}this.options.push(D)}_registerCommand(D){let u=(E)=>{return[E.name()].concat(E.aliases())},F=u(D).find((E)=>this._findCommand(E));if(F){let E=u(this._findCommand(F)).join("|"),C=u(D).join("|");throw Error(`cannot add command '${C}' as already have command '${E}'`)}this.commands.push(D)}addOption(D){this._registerOption(D);let u=D.name(),F=D.attributeName();if(D.negate){let C=D.long.replace(/^--no-/,"--");if(!this._findOption(C))this.setOptionValueWithSource(F,D.defaultValue===void 0?!0:D.defaultValue,"default")}else if(D.defaultValue!==void 0)this.setOptionValueWithSource(F,D.defaultValue,"default");let E=(C,B,_)=>{if(C==null&&D.presetArg!==void 0)C=D.presetArg;let A=this.getOptionValue(F);if(C!==null&&D.parseArg)C=this._callParseArg(D,C,A,B);else if(C!==null&&D.variadic)C=D._concatValue(C,A);if(C==null)if(D.negate)C=!1;else if(D.isBoolean()||D.optional)C=!0;else C="";this.setOptionValueWithSource(F,C,_)};if(this.on("option:"+u,(C)=>{let B=`error: option '${D.flags}' argument '${C}' is invalid.`;E(C,B,"cli")}),D.envVar)this.on("optionEnv:"+u,(C)=>{let B=`error: option '${D.flags}' value '${C}' from env '${D.envVar}' is invalid.`;E(C,B,"env")});return this}_optionEx(D,u,F,E,C){if(typeof u==="object"&&u instanceof ru)throw Error("To add an Option object use addOption() instead of option() or requiredOption()");let B=this.createOption(u,F);if(B.makeOptionMandatory(!!D.mandatory),typeof E==="function")B.default(C).argParser(E);else if(E instanceof RegExp){let _=E;E=(A,q)=>{let $=_.exec(A);return $?$[0]:q},B.default(C).argParser(E)}else B.default(E);return this.addOption(B)}option(D,u,F,E){return this._optionEx({},D,u,F,E)}requiredOption(D,u,F,E){return this._optionEx({mandatory:!0},D,u,F,E)}combineFlagAndOptionalValue(D=!0){return this._combineFlagAndOptionalValue=!!D,this}allowUnknownOption(D=!0){return this._allowUnknownOption=!!D,this}allowExcessArguments(D=!0){return this._allowExcessArguments=!!D,this}enablePositionalOptions(D=!0){return this._enablePositionalOptions=!!D,this}passThroughOptions(D=!0){return this._passThroughOptions=!!D,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(D=!0){if(this.options.length)throw Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!D,this}getOptionValue(D){if(this._storeOptionsAsProperties)return this[D];return this._optionValues[D]}setOptionValue(D,u){return this.setOptionValueWithSource(D,u,void 0)}setOptionValueWithSource(D,u,F){if(this._storeOptionsAsProperties)this[D]=u;else this._optionValues[D]=u;return this._optionValueSources[D]=F,this}getOptionValueSource(D){return this._optionValueSources[D]}getOptionValueSourceWithGlobals(D){let u;return this._getCommandAndAncestors().forEach((F)=>{if(F.getOptionValueSource(D)!==void 0)u=F.getOptionValueSource(D)}),u}_prepareUserArgs(D,u){if(D!==void 0&&!Array.isArray(D))throw Error("first parameter to parse must be array or undefined");if(u=u||{},D===void 0&&u.from===void 0){if(W.versions?.electron)u.from="electron";let E=W.execArgv??[];if(E.includes("-e")||E.includes("--eval")||E.includes("-p")||E.includes("--print"))u.from="eval"}if(D===void 0)D=W.argv;this.rawArgs=D.slice();let F;switch(u.from){case void 0:case"node":this._scriptPath=D[1],F=D.slice(2);break;case"electron":if(W.defaultApp)this._scriptPath=D[1],F=D.slice(2);else F=D.slice(1);break;case"user":F=D.slice(0);break;case"eval":F=D.slice(1);break;default:throw Error(`unexpected parse option { from: '${u.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);return this._name=this._name||"program",F}parse(D,u){this._prepareForParse();let F=this._prepareUserArgs(D,u);return this._parseCommand([],F),this}async parseAsync(D,u){this._prepareForParse();let F=this._prepareUserArgs(D,u);return await this._parseCommand([],F),this}_prepareForParse(){if(this._savedState===null)this.saveStateBeforeParse();else this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw Error(`Can not call parse again when storeOptionsAsProperties is true.
18
- - 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(D,u,F){if(LD.existsSync(D))return;let E=u?`searched for local subcommand relative to directory '${u}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",C=`'${D}' does not exist
14
+ (Did you mean ${E[0]}?)`;return""}a2.suggestSimilar=i2});var eu=W((E3)=>{var o2=ED("node:events").EventEmitter,sD=ED("node:child_process"),uD=ED("node:path"),OD=ED("node:fs"),T=ED("node:process"),{Argument:t2,humanReadableArgName:e2}=wD(),{CommanderError:oD}=KD(),{Help:D3,stripColor:u3}=iD(),{Option:su,DualOptions:F3}=aD(),{suggestSimilar:ou}=au();class eD extends o2{constructor(D){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=D||"",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:(u)=>T.stdout.write(u),writeErr:(u)=>T.stderr.write(u),outputError:(u,F)=>F(u),getOutHelpWidth:()=>T.stdout.isTTY?T.stdout.columns:void 0,getErrHelpWidth:()=>T.stderr.isTTY?T.stderr.columns:void 0,getOutHasColors:()=>tD()??(T.stdout.isTTY&&T.stdout.hasColors?.()),getErrHasColors:()=>tD()??(T.stderr.isTTY&&T.stderr.hasColors?.()),stripColor:(u)=>u3(u)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={}}copyInheritedSettings(D){return this._outputConfiguration=D._outputConfiguration,this._helpOption=D._helpOption,this._helpCommand=D._helpCommand,this._helpConfiguration=D._helpConfiguration,this._exitCallback=D._exitCallback,this._storeOptionsAsProperties=D._storeOptionsAsProperties,this._combineFlagAndOptionalValue=D._combineFlagAndOptionalValue,this._allowExcessArguments=D._allowExcessArguments,this._enablePositionalOptions=D._enablePositionalOptions,this._showHelpAfterError=D._showHelpAfterError,this._showSuggestionAfterError=D._showSuggestionAfterError,this}_getCommandAndAncestors(){let D=[];for(let u=this;u;u=u.parent)D.push(u);return D}command(D,u,F){let E=u,C=F;if(typeof E==="object"&&E!==null)C=E,E=null;C=C||{};let[,B,_]=D.match(/([^ ]+) *(.*)/),A=this.createCommand(B);if(E)A.description(E),A._executableHandler=!0;if(C.isDefault)this._defaultCommandName=A._name;if(A._hidden=!!(C.noHelp||C.hidden),A._executableFile=C.executableFile||null,_)A.arguments(_);if(this._registerCommand(A),A.parent=this,A.copyInheritedSettings(this),E)return this;return A}createCommand(D){return new eD(D)}createHelp(){return Object.assign(new D3,this.configureHelp())}configureHelp(D){if(D===void 0)return this._helpConfiguration;return this._helpConfiguration=D,this}configureOutput(D){if(D===void 0)return this._outputConfiguration;return Object.assign(this._outputConfiguration,D),this}showHelpAfterError(D=!0){if(typeof D!=="string")D=!!D;return this._showHelpAfterError=D,this}showSuggestionAfterError(D=!0){return this._showSuggestionAfterError=!!D,this}addCommand(D,u){if(!D._name)throw Error(`Command passed to .addCommand() must have a name
15
+ - specify the name in Command constructor or using .name()`);if(u=u||{},u.isDefault)this._defaultCommandName=D._name;if(u.noHelp||u.hidden)D._hidden=!0;return this._registerCommand(D),D.parent=this,D._checkForBrokenPassThrough(),this}createArgument(D,u){return new t2(D,u)}argument(D,u,F,E){let C=this.createArgument(D,u);if(typeof F==="function")C.default(E).argParser(F);else C.default(F);return this.addArgument(C),this}arguments(D){return D.trim().split(/ +/).forEach((u)=>{this.argument(u)}),this}addArgument(D){let u=this.registeredArguments.slice(-1)[0];if(u&&u.variadic)throw Error(`only the last argument can be variadic '${u.name()}'`);if(D.required&&D.defaultValue!==void 0&&D.parseArg===void 0)throw Error(`a default value for a required argument is never used: '${D.name()}'`);return this.registeredArguments.push(D),this}helpCommand(D,u){if(typeof D==="boolean")return this._addImplicitHelpCommand=D,this;D=D??"help [command]";let[,F,E]=D.match(/([^ ]+) *(.*)/),C=u??"display help for command",B=this.createCommand(F);if(B.helpOption(!1),E)B.arguments(E);if(C)B.description(C);return this._addImplicitHelpCommand=!0,this._helpCommand=B,this}addHelpCommand(D,u){if(typeof D!=="object")return this.helpCommand(D,u),this;return this._addImplicitHelpCommand=!0,this._helpCommand=D,this}_getHelpCommand(){if(this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))){if(this._helpCommand===void 0)this.helpCommand(void 0,void 0);return this._helpCommand}return null}hook(D,u){let F=["preSubcommand","preAction","postAction"];if(!F.includes(D))throw Error(`Unexpected value for event passed to hook : '${D}'.
16
+ Expecting one of '${F.join("', '")}'`);if(this._lifeCycleHooks[D])this._lifeCycleHooks[D].push(u);else this._lifeCycleHooks[D]=[u];return this}exitOverride(D){if(D)this._exitCallback=D;else this._exitCallback=(u)=>{if(u.code!=="commander.executeSubCommandAsync")throw u};return this}_exit(D,u,F){if(this._exitCallback)this._exitCallback(new oD(D,u,F));T.exit(D)}action(D){let u=(F)=>{let E=this.registeredArguments.length,C=F.slice(0,E);if(this._storeOptionsAsProperties)C[E]=this;else C[E]=this.opts();return C.push(this),D.apply(this,C)};return this._actionHandler=u,this}createOption(D,u){return new su(D,u)}_callParseArg(D,u,F,E){try{return D.parseArg(u,F)}catch(C){if(C.code==="commander.invalidArgument"){let B=`${E} ${C.message}`;this.error(B,{exitCode:C.exitCode,code:C.code})}throw C}}_registerOption(D){let u=D.short&&this._findOption(D.short)||D.long&&this._findOption(D.long);if(u){let F=D.long&&this._findOption(D.long)?D.long:D.short;throw Error(`Cannot add option '${D.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${F}'
17
+ - already used by option '${u.flags}'`)}this.options.push(D)}_registerCommand(D){let u=(E)=>{return[E.name()].concat(E.aliases())},F=u(D).find((E)=>this._findCommand(E));if(F){let E=u(this._findCommand(F)).join("|"),C=u(D).join("|");throw Error(`cannot add command '${C}' as already have command '${E}'`)}this.commands.push(D)}addOption(D){this._registerOption(D);let u=D.name(),F=D.attributeName();if(D.negate){let C=D.long.replace(/^--no-/,"--");if(!this._findOption(C))this.setOptionValueWithSource(F,D.defaultValue===void 0?!0:D.defaultValue,"default")}else if(D.defaultValue!==void 0)this.setOptionValueWithSource(F,D.defaultValue,"default");let E=(C,B,_)=>{if(C==null&&D.presetArg!==void 0)C=D.presetArg;let A=this.getOptionValue(F);if(C!==null&&D.parseArg)C=this._callParseArg(D,C,A,B);else if(C!==null&&D.variadic)C=D._concatValue(C,A);if(C==null)if(D.negate)C=!1;else if(D.isBoolean()||D.optional)C=!0;else C="";this.setOptionValueWithSource(F,C,_)};if(this.on("option:"+u,(C)=>{let B=`error: option '${D.flags}' argument '${C}' is invalid.`;E(C,B,"cli")}),D.envVar)this.on("optionEnv:"+u,(C)=>{let B=`error: option '${D.flags}' value '${C}' from env '${D.envVar}' is invalid.`;E(C,B,"env")});return this}_optionEx(D,u,F,E,C){if(typeof u==="object"&&u instanceof su)throw Error("To add an Option object use addOption() instead of option() or requiredOption()");let B=this.createOption(u,F);if(B.makeOptionMandatory(!!D.mandatory),typeof E==="function")B.default(C).argParser(E);else if(E instanceof RegExp){let _=E;E=(A,Z)=>{let $=_.exec(A);return $?$[0]:Z},B.default(C).argParser(E)}else B.default(E);return this.addOption(B)}option(D,u,F,E){return this._optionEx({},D,u,F,E)}requiredOption(D,u,F,E){return this._optionEx({mandatory:!0},D,u,F,E)}combineFlagAndOptionalValue(D=!0){return this._combineFlagAndOptionalValue=!!D,this}allowUnknownOption(D=!0){return this._allowUnknownOption=!!D,this}allowExcessArguments(D=!0){return this._allowExcessArguments=!!D,this}enablePositionalOptions(D=!0){return this._enablePositionalOptions=!!D,this}passThroughOptions(D=!0){return this._passThroughOptions=!!D,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(D=!0){if(this.options.length)throw Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!D,this}getOptionValue(D){if(this._storeOptionsAsProperties)return this[D];return this._optionValues[D]}setOptionValue(D,u){return this.setOptionValueWithSource(D,u,void 0)}setOptionValueWithSource(D,u,F){if(this._storeOptionsAsProperties)this[D]=u;else this._optionValues[D]=u;return this._optionValueSources[D]=F,this}getOptionValueSource(D){return this._optionValueSources[D]}getOptionValueSourceWithGlobals(D){let u;return this._getCommandAndAncestors().forEach((F)=>{if(F.getOptionValueSource(D)!==void 0)u=F.getOptionValueSource(D)}),u}_prepareUserArgs(D,u){if(D!==void 0&&!Array.isArray(D))throw Error("first parameter to parse must be array or undefined");if(u=u||{},D===void 0&&u.from===void 0){if(T.versions?.electron)u.from="electron";let E=T.execArgv??[];if(E.includes("-e")||E.includes("--eval")||E.includes("-p")||E.includes("--print"))u.from="eval"}if(D===void 0)D=T.argv;this.rawArgs=D.slice();let F;switch(u.from){case void 0:case"node":this._scriptPath=D[1],F=D.slice(2);break;case"electron":if(T.defaultApp)this._scriptPath=D[1],F=D.slice(2);else F=D.slice(1);break;case"user":F=D.slice(0);break;case"eval":F=D.slice(1);break;default:throw Error(`unexpected parse option { from: '${u.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);return this._name=this._name||"program",F}parse(D,u){this._prepareForParse();let F=this._prepareUserArgs(D,u);return this._parseCommand([],F),this}async parseAsync(D,u){this._prepareForParse();let F=this._prepareUserArgs(D,u);return await this._parseCommand([],F),this}_prepareForParse(){if(this._savedState===null)this.saveStateBeforeParse();else this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw Error(`Can not call parse again when storeOptionsAsProperties is true.
18
+ - 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(D,u,F){if(OD.existsSync(D))return;let E=u?`searched for local subcommand relative to directory '${u}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",C=`'${D}' does not exist
19
19
  - if '${F}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
20
20
  - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
21
- - ${E}`;throw Error(C)}_executeSubCommand(D,u){u=u.slice();let F=!1,E=[".js",".ts",".tsx",".mjs",".cjs"];function C($,Z){let H=DD.resolve($,Z);if(LD.existsSync(H))return H;if(E.includes(DD.extname(Z)))return;let X=E.find((G)=>LD.existsSync(`${H}${G}`));if(X)return`${H}${X}`;return}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let B=D._executableFile||`${this._name}-${D._name}`,_=this._executableDir||"";if(this._scriptPath){let $;try{$=LD.realpathSync(this._scriptPath)}catch{$=this._scriptPath}_=DD.resolve(DD.dirname($),_)}if(_){let $=C(_,B);if(!$&&!D._executableFile&&this._scriptPath){let Z=DD.basename(this._scriptPath,DD.extname(this._scriptPath));if(Z!==this._name)$=C(_,`${Z}-${D._name}`)}B=$||B}F=E.includes(DD.extname(B));let A;if(W.platform!=="win32")if(F)u.unshift(B),u=au(W.execArgv).concat(u),A=rD.spawn(W.argv[0],u,{stdio:"inherit"});else A=rD.spawn(B,u,{stdio:"inherit"});else this._checkForMissingExecutable(B,_,D._name),u.unshift(B),u=au(W.execArgv).concat(u),A=rD.spawn(W.execPath,u,{stdio:"inherit"});if(!A.killed)["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach((Z)=>{W.on(Z,()=>{if(A.killed===!1&&A.exitCode===null)A.kill(Z)})});let q=this._exitCallback;A.on("close",($)=>{if($=$??1,!q)W.exit($);else q(new iD($,"commander.executeSubCommandAsync","(close)"))}),A.on("error",($)=>{if($.code==="ENOENT")this._checkForMissingExecutable(B,_,D._name);else if($.code==="EACCES")throw Error(`'${B}' not executable`);if(!q)W.exit(1);else{let Z=new iD(1,"commander.executeSubCommandAsync","(error)");Z.nestedError=$,q(Z)}}),this.runningCommand=A}_dispatchSubcommand(D,u,F){let E=this._findCommand(D);if(!E)this.help({error:!0});E._prepareForParse();let C;return C=this._chainOrCallSubCommandHook(C,E,"preSubcommand"),C=this._chainOrCall(C,()=>{if(E._executableHandler)this._executeSubCommand(E,u.concat(F));else return E._parseCommand(u,F)}),C}_dispatchHelpCommand(D){if(!D)this.help();let u=this._findCommand(D);if(u&&!u._executableHandler)u.help();return this._dispatchSubcommand(D,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){if(this.registeredArguments.forEach((D,u)=>{if(D.required&&this.args[u]==null)this.missingArgument(D.name())}),this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)return;if(this.args.length>this.registeredArguments.length)this._excessArguments(this.args)}_processArguments(){let D=(F,E,C)=>{let B=E;if(E!==null&&F.parseArg){let _=`error: command-argument value '${E}' is invalid for argument '${F.name()}'.`;B=this._callParseArg(F,E,C,_)}return B};this._checkNumberOfArguments();let u=[];this.registeredArguments.forEach((F,E)=>{let C=F.defaultValue;if(F.variadic){if(E<this.args.length){if(C=this.args.slice(E),F.parseArg)C=C.reduce((B,_)=>{return D(F,_,B)},F.defaultValue)}else if(C===void 0)C=[]}else if(E<this.args.length){if(C=this.args[E],F.parseArg)C=D(F,C,F.defaultValue)}u[E]=C}),this.processedArgs=u}_chainOrCall(D,u){if(D&&D.then&&typeof D.then==="function")return D.then(()=>u());return u()}_chainOrCallHooks(D,u){let F=D,E=[];if(this._getCommandAndAncestors().reverse().filter((C)=>C._lifeCycleHooks[u]!==void 0).forEach((C)=>{C._lifeCycleHooks[u].forEach((B)=>{E.push({hookedCommand:C,callback:B})})}),u==="postAction")E.reverse();return E.forEach((C)=>{F=this._chainOrCall(F,()=>{return C.callback(C.hookedCommand,this)})}),F}_chainOrCallSubCommandHook(D,u,F){let E=D;if(this._lifeCycleHooks[F]!==void 0)this._lifeCycleHooks[F].forEach((C)=>{E=this._chainOrCall(E,()=>{return C(this,u)})});return E}_parseCommand(D,u){let F=this.parseOptions(u);if(this._parseOptionsEnv(),this._parseOptionsImplied(),D=D.concat(F.operands),u=F.unknown,this.args=D.concat(u),D&&this._findCommand(D[0]))return this._dispatchSubcommand(D[0],D.slice(1),u);if(this._getHelpCommand()&&D[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(D[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(u),this._dispatchSubcommand(this._defaultCommandName,D,u);if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName)this.help({error:!0});this._outputHelpIfRequested(F.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let E=()=>{if(F.unknown.length>0)this.unknownOption(F.unknown[0])},C=`command:${this.name()}`;if(this._actionHandler){E(),this._processArguments();let B;if(B=this._chainOrCallHooks(B,"preAction"),B=this._chainOrCall(B,()=>this._actionHandler(this.processedArgs)),this.parent)B=this._chainOrCall(B,()=>{this.parent.emit(C,D,u)});return B=this._chainOrCallHooks(B,"postAction"),B}if(this.parent&&this.parent.listenerCount(C))E(),this._processArguments(),this.parent.emit(C,D,u);else if(D.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",D,u);if(this.listenerCount("command:*"))this.emit("command:*",D,u);else if(this.commands.length)this.unknownCommand();else E(),this._processArguments()}else if(this.commands.length)E(),this.help({error:!0});else E(),this._processArguments()}_findCommand(D){if(!D)return;return this.commands.find((u)=>u._name===D||u._aliases.includes(D))}_findOption(D){return this.options.find((u)=>u.is(D))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((D)=>{D.options.forEach((u)=>{if(u.mandatory&&D.getOptionValue(u.attributeName())===void 0)D.missingMandatoryOptionValue(u)})})}_checkForConflictingLocalOptions(){let D=this.options.filter((F)=>{let E=F.attributeName();if(this.getOptionValue(E)===void 0)return!1;return this.getOptionValueSource(E)!=="default"});D.filter((F)=>F.conflictsWith.length>0).forEach((F)=>{let E=D.find((C)=>F.conflictsWith.includes(C.attributeName()));if(E)this._conflictingOption(F,E)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((D)=>{D._checkForConflictingLocalOptions()})}parseOptions(D){let u=[],F=[],E=u,C=D.slice();function B(A){return A.length>1&&A[0]==="-"}let _=null;while(C.length){let A=C.shift();if(A==="--"){if(E===F)E.push(A);E.push(...C);break}if(_&&!B(A)){this.emit(`option:${_.name()}`,A);continue}if(_=null,B(A)){let q=this._findOption(A);if(q){if(q.required){let $=C.shift();if($===void 0)this.optionMissingArgument(q);this.emit(`option:${q.name()}`,$)}else if(q.optional){let $=null;if(C.length>0&&!B(C[0]))$=C.shift();this.emit(`option:${q.name()}`,$)}else this.emit(`option:${q.name()}`);_=q.variadic?q:null;continue}}if(A.length>2&&A[0]==="-"&&A[1]!=="-"){let q=this._findOption(`-${A[1]}`);if(q){if(q.required||q.optional&&this._combineFlagAndOptionalValue)this.emit(`option:${q.name()}`,A.slice(2));else this.emit(`option:${q.name()}`),C.unshift(`-${A.slice(2)}`);continue}}if(/^--[^=]+=/.test(A)){let q=A.indexOf("="),$=this._findOption(A.slice(0,q));if($&&($.required||$.optional)){this.emit(`option:${$.name()}`,A.slice(q+1));continue}}if(B(A))E=F;if((this._enablePositionalOptions||this._passThroughOptions)&&u.length===0&&F.length===0){if(this._findCommand(A)){if(u.push(A),C.length>0)F.push(...C);break}else if(this._getHelpCommand()&&A===this._getHelpCommand().name()){if(u.push(A),C.length>0)u.push(...C);break}else if(this._defaultCommandName){if(F.push(A),C.length>0)F.push(...C);break}}if(this._passThroughOptions){if(E.push(A),C.length>0)E.push(...C);break}E.push(A)}return{operands:u,unknown:F}}opts(){if(this._storeOptionsAsProperties){let D={},u=this.options.length;for(let F=0;F<u;F++){let E=this.options[F].attributeName();D[E]=E===this._versionOptionName?this._version:this[E]}return D}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((D,u)=>Object.assign(D,u.opts()),{})}error(D,u){if(this._outputConfiguration.outputError(`${D}
21
+ - ${E}`;throw Error(C)}_executeSubCommand(D,u){u=u.slice();let F=!1,E=[".js",".ts",".tsx",".mjs",".cjs"];function C($,X){let J=uD.resolve($,X);if(OD.existsSync(J))return J;if(E.includes(uD.extname(X)))return;let Q=E.find((G)=>OD.existsSync(`${J}${G}`));if(Q)return`${J}${Q}`;return}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let B=D._executableFile||`${this._name}-${D._name}`,_=this._executableDir||"";if(this._scriptPath){let $;try{$=OD.realpathSync(this._scriptPath)}catch{$=this._scriptPath}_=uD.resolve(uD.dirname($),_)}if(_){let $=C(_,B);if(!$&&!D._executableFile&&this._scriptPath){let X=uD.basename(this._scriptPath,uD.extname(this._scriptPath));if(X!==this._name)$=C(_,`${X}-${D._name}`)}B=$||B}F=E.includes(uD.extname(B));let A;if(T.platform!=="win32")if(F)u.unshift(B),u=tu(T.execArgv).concat(u),A=sD.spawn(T.argv[0],u,{stdio:"inherit"});else A=sD.spawn(B,u,{stdio:"inherit"});else this._checkForMissingExecutable(B,_,D._name),u.unshift(B),u=tu(T.execArgv).concat(u),A=sD.spawn(T.execPath,u,{stdio:"inherit"});if(!A.killed)["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach((X)=>{T.on(X,()=>{if(A.killed===!1&&A.exitCode===null)A.kill(X)})});let Z=this._exitCallback;A.on("close",($)=>{if($=$??1,!Z)T.exit($);else Z(new oD($,"commander.executeSubCommandAsync","(close)"))}),A.on("error",($)=>{if($.code==="ENOENT")this._checkForMissingExecutable(B,_,D._name);else if($.code==="EACCES")throw Error(`'${B}' not executable`);if(!Z)T.exit(1);else{let X=new oD(1,"commander.executeSubCommandAsync","(error)");X.nestedError=$,Z(X)}}),this.runningCommand=A}_dispatchSubcommand(D,u,F){let E=this._findCommand(D);if(!E)this.help({error:!0});E._prepareForParse();let C;return C=this._chainOrCallSubCommandHook(C,E,"preSubcommand"),C=this._chainOrCall(C,()=>{if(E._executableHandler)this._executeSubCommand(E,u.concat(F));else return E._parseCommand(u,F)}),C}_dispatchHelpCommand(D){if(!D)this.help();let u=this._findCommand(D);if(u&&!u._executableHandler)u.help();return this._dispatchSubcommand(D,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){if(this.registeredArguments.forEach((D,u)=>{if(D.required&&this.args[u]==null)this.missingArgument(D.name())}),this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)return;if(this.args.length>this.registeredArguments.length)this._excessArguments(this.args)}_processArguments(){let D=(F,E,C)=>{let B=E;if(E!==null&&F.parseArg){let _=`error: command-argument value '${E}' is invalid for argument '${F.name()}'.`;B=this._callParseArg(F,E,C,_)}return B};this._checkNumberOfArguments();let u=[];this.registeredArguments.forEach((F,E)=>{let C=F.defaultValue;if(F.variadic){if(E<this.args.length){if(C=this.args.slice(E),F.parseArg)C=C.reduce((B,_)=>{return D(F,_,B)},F.defaultValue)}else if(C===void 0)C=[]}else if(E<this.args.length){if(C=this.args[E],F.parseArg)C=D(F,C,F.defaultValue)}u[E]=C}),this.processedArgs=u}_chainOrCall(D,u){if(D&&D.then&&typeof D.then==="function")return D.then(()=>u());return u()}_chainOrCallHooks(D,u){let F=D,E=[];if(this._getCommandAndAncestors().reverse().filter((C)=>C._lifeCycleHooks[u]!==void 0).forEach((C)=>{C._lifeCycleHooks[u].forEach((B)=>{E.push({hookedCommand:C,callback:B})})}),u==="postAction")E.reverse();return E.forEach((C)=>{F=this._chainOrCall(F,()=>{return C.callback(C.hookedCommand,this)})}),F}_chainOrCallSubCommandHook(D,u,F){let E=D;if(this._lifeCycleHooks[F]!==void 0)this._lifeCycleHooks[F].forEach((C)=>{E=this._chainOrCall(E,()=>{return C(this,u)})});return E}_parseCommand(D,u){let F=this.parseOptions(u);if(this._parseOptionsEnv(),this._parseOptionsImplied(),D=D.concat(F.operands),u=F.unknown,this.args=D.concat(u),D&&this._findCommand(D[0]))return this._dispatchSubcommand(D[0],D.slice(1),u);if(this._getHelpCommand()&&D[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(D[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(u),this._dispatchSubcommand(this._defaultCommandName,D,u);if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName)this.help({error:!0});this._outputHelpIfRequested(F.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let E=()=>{if(F.unknown.length>0)this.unknownOption(F.unknown[0])},C=`command:${this.name()}`;if(this._actionHandler){E(),this._processArguments();let B;if(B=this._chainOrCallHooks(B,"preAction"),B=this._chainOrCall(B,()=>this._actionHandler(this.processedArgs)),this.parent)B=this._chainOrCall(B,()=>{this.parent.emit(C,D,u)});return B=this._chainOrCallHooks(B,"postAction"),B}if(this.parent&&this.parent.listenerCount(C))E(),this._processArguments(),this.parent.emit(C,D,u);else if(D.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",D,u);if(this.listenerCount("command:*"))this.emit("command:*",D,u);else if(this.commands.length)this.unknownCommand();else E(),this._processArguments()}else if(this.commands.length)E(),this.help({error:!0});else E(),this._processArguments()}_findCommand(D){if(!D)return;return this.commands.find((u)=>u._name===D||u._aliases.includes(D))}_findOption(D){return this.options.find((u)=>u.is(D))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((D)=>{D.options.forEach((u)=>{if(u.mandatory&&D.getOptionValue(u.attributeName())===void 0)D.missingMandatoryOptionValue(u)})})}_checkForConflictingLocalOptions(){let D=this.options.filter((F)=>{let E=F.attributeName();if(this.getOptionValue(E)===void 0)return!1;return this.getOptionValueSource(E)!=="default"});D.filter((F)=>F.conflictsWith.length>0).forEach((F)=>{let E=D.find((C)=>F.conflictsWith.includes(C.attributeName()));if(E)this._conflictingOption(F,E)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((D)=>{D._checkForConflictingLocalOptions()})}parseOptions(D){let u=[],F=[],E=u,C=D.slice();function B(A){return A.length>1&&A[0]==="-"}let _=null;while(C.length){let A=C.shift();if(A==="--"){if(E===F)E.push(A);E.push(...C);break}if(_&&!B(A)){this.emit(`option:${_.name()}`,A);continue}if(_=null,B(A)){let Z=this._findOption(A);if(Z){if(Z.required){let $=C.shift();if($===void 0)this.optionMissingArgument(Z);this.emit(`option:${Z.name()}`,$)}else if(Z.optional){let $=null;if(C.length>0&&!B(C[0]))$=C.shift();this.emit(`option:${Z.name()}`,$)}else this.emit(`option:${Z.name()}`);_=Z.variadic?Z:null;continue}}if(A.length>2&&A[0]==="-"&&A[1]!=="-"){let Z=this._findOption(`-${A[1]}`);if(Z){if(Z.required||Z.optional&&this._combineFlagAndOptionalValue)this.emit(`option:${Z.name()}`,A.slice(2));else this.emit(`option:${Z.name()}`),C.unshift(`-${A.slice(2)}`);continue}}if(/^--[^=]+=/.test(A)){let Z=A.indexOf("="),$=this._findOption(A.slice(0,Z));if($&&($.required||$.optional)){this.emit(`option:${$.name()}`,A.slice(Z+1));continue}}if(B(A))E=F;if((this._enablePositionalOptions||this._passThroughOptions)&&u.length===0&&F.length===0){if(this._findCommand(A)){if(u.push(A),C.length>0)F.push(...C);break}else if(this._getHelpCommand()&&A===this._getHelpCommand().name()){if(u.push(A),C.length>0)u.push(...C);break}else if(this._defaultCommandName){if(F.push(A),C.length>0)F.push(...C);break}}if(this._passThroughOptions){if(E.push(A),C.length>0)E.push(...C);break}E.push(A)}return{operands:u,unknown:F}}opts(){if(this._storeOptionsAsProperties){let D={},u=this.options.length;for(let F=0;F<u;F++){let E=this.options[F].attributeName();D[E]=E===this._versionOptionName?this._version:this[E]}return D}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((D,u)=>Object.assign(D,u.opts()),{})}error(D,u){if(this._outputConfiguration.outputError(`${D}
22
22
  `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError==="string")this._outputConfiguration.writeErr(`${this._showHelpAfterError}
23
23
  `);else if(this._showHelpAfterError)this._outputConfiguration.writeErr(`
24
- `),this.outputHelp({error:!0});let F=u||{},E=F.exitCode||1,C=F.code||"commander.error";this._exit(E,C,D)}_parseOptionsEnv(){this.options.forEach((D)=>{if(D.envVar&&D.envVar in W.env){let u=D.attributeName();if(this.getOptionValue(u)===void 0||["default","config","env"].includes(this.getOptionValueSource(u)))if(D.required||D.optional)this.emit(`optionEnv:${D.name()}`,W.env[D.envVar]);else this.emit(`optionEnv:${D.name()}`)}})}_parseOptionsImplied(){let D=new i2(this.options),u=(F)=>{return this.getOptionValue(F)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(F))};this.options.filter((F)=>F.implied!==void 0&&u(F.attributeName())&&D.valueFromOption(this.getOptionValue(F.attributeName()),F)).forEach((F)=>{Object.keys(F.implied).filter((E)=>!u(E)).forEach((E)=>{this.setOptionValueWithSource(E,F.implied[E],"implied")})})}missingArgument(D){let u=`error: missing required argument '${D}'`;this.error(u,{code:"commander.missingArgument"})}optionMissingArgument(D){let u=`error: option '${D.flags}' argument missing`;this.error(u,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(D){let u=`error: required option '${D.flags}' not specified`;this.error(u,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(D,u){let F=(B)=>{let _=B.attributeName(),A=this.getOptionValue(_),q=this.options.find((Z)=>Z.negate&&_===Z.attributeName()),$=this.options.find((Z)=>!Z.negate&&_===Z.attributeName());if(q&&(q.presetArg===void 0&&A===!1||q.presetArg!==void 0&&A===q.presetArg))return q;return $||B},E=(B)=>{let _=F(B),A=_.attributeName();if(this.getOptionValueSource(A)==="env")return`environment variable '${_.envVar}'`;return`option '${_.flags}'`},C=`error: ${E(D)} cannot be used with ${E(u)}`;this.error(C,{code:"commander.conflictingOption"})}unknownOption(D){if(this._allowUnknownOption)return;let u="";if(D.startsWith("--")&&this._showSuggestionAfterError){let E=[],C=this;do{let B=C.createHelp().visibleOptions(C).filter((_)=>_.long).map((_)=>_.long);E=E.concat(B),C=C.parent}while(C&&!C._enablePositionalOptions);u=iu(D,E)}let F=`error: unknown option '${D}'${u}`;this.error(F,{code:"commander.unknownOption"})}_excessArguments(D){if(this._allowExcessArguments)return;let u=this.registeredArguments.length,F=u===1?"":"s",C=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${u} argument${F} but got ${D.length}.`;this.error(C,{code:"commander.excessArguments"})}unknownCommand(){let D=this.args[0],u="";if(this._showSuggestionAfterError){let E=[];this.createHelp().visibleCommands(this).forEach((C)=>{if(E.push(C.name()),C.alias())E.push(C.alias())}),u=iu(D,E)}let F=`error: unknown command '${D}'${u}`;this.error(F,{code:"commander.unknownCommand"})}version(D,u,F){if(D===void 0)return this._version;this._version=D,u=u||"-V, --version",F=F||"output the version number";let E=this.createOption(u,F);return this._versionOptionName=E.attributeName(),this._registerOption(E),this.on("option:"+E.name(),()=>{this._outputConfiguration.writeOut(`${D}
25
- `),this._exit(0,"commander.version",D)}),this}description(D,u){if(D===void 0&&u===void 0)return this._description;if(this._description=D,u)this._argsDescription=u;return this}summary(D){if(D===void 0)return this._summary;return this._summary=D,this}alias(D){if(D===void 0)return this._aliases[0];let u=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler)u=this.commands[this.commands.length-1];if(D===u._name)throw Error("Command alias can't be the same as its name");let F=this.parent?._findCommand(D);if(F){let E=[F.name()].concat(F.aliases()).join("|");throw Error(`cannot add alias '${D}' to command '${this.name()}' as already have command '${E}'`)}return u._aliases.push(D),this}aliases(D){if(D===void 0)return this._aliases;return D.forEach((u)=>this.alias(u)),this}usage(D){if(D===void 0){if(this._usage)return this._usage;let u=this.registeredArguments.map((F)=>{return p2(F)});return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?u:[]).join(" ")}return this._usage=D,this}name(D){if(D===void 0)return this._name;return this._name=D,this}nameFromFilename(D){return this._name=DD.basename(D,DD.extname(D)),this}executableDir(D){if(D===void 0)return this._executableDir;return this._executableDir=D,this}helpInformation(D){let u=this.createHelp(),F=this._getOutputContext(D);u.prepareContext({error:F.error,helpWidth:F.helpWidth,outputHasColors:F.hasColors});let E=u.formatHelp(this,u);if(F.hasColors)return E;return this._outputConfiguration.stripColor(E)}_getOutputContext(D){D=D||{};let u=!!D.error,F,E,C;if(u)F=(_)=>this._outputConfiguration.writeErr(_),E=this._outputConfiguration.getErrHasColors(),C=this._outputConfiguration.getErrHelpWidth();else F=(_)=>this._outputConfiguration.writeOut(_),E=this._outputConfiguration.getOutHasColors(),C=this._outputConfiguration.getOutHelpWidth();return{error:u,write:(_)=>{if(!E)_=this._outputConfiguration.stripColor(_);return F(_)},hasColors:E,helpWidth:C}}outputHelp(D){let u;if(typeof D==="function")u=D,D=void 0;let F=this._getOutputContext(D),E={error:F.error,write:F.write,command:this};this._getCommandAndAncestors().reverse().forEach((B)=>B.emit("beforeAllHelp",E)),this.emit("beforeHelp",E);let C=this.helpInformation({error:F.error});if(u){if(C=u(C),typeof C!=="string"&&!Buffer.isBuffer(C))throw Error("outputHelp callback must return a string or a Buffer")}if(F.write(C),this._getHelpOption()?.long)this.emit(this._getHelpOption().long);this.emit("afterHelp",E),this._getCommandAndAncestors().forEach((B)=>B.emit("afterAllHelp",E))}helpOption(D,u){if(typeof D==="boolean"){if(D)this._helpOption=this._helpOption??void 0;else this._helpOption=null;return this}return D=D??"-h, --help",u=u??"display help for command",this._helpOption=this.createOption(D,u),this}_getHelpOption(){if(this._helpOption===void 0)this.helpOption(void 0,void 0);return this._helpOption}addHelpOption(D){return this._helpOption=D,this}help(D){this.outputHelp(D);let u=Number(W.exitCode??0);if(u===0&&D&&typeof D!=="function"&&D.error)u=1;this._exit(u,"commander.help","(outputHelp)")}addHelpText(D,u){let F=["beforeAll","before","after","afterAll"];if(!F.includes(D))throw Error(`Unexpected value for position to addHelpText.
24
+ `),this.outputHelp({error:!0});let F=u||{},E=F.exitCode||1,C=F.code||"commander.error";this._exit(E,C,D)}_parseOptionsEnv(){this.options.forEach((D)=>{if(D.envVar&&D.envVar in T.env){let u=D.attributeName();if(this.getOptionValue(u)===void 0||["default","config","env"].includes(this.getOptionValueSource(u)))if(D.required||D.optional)this.emit(`optionEnv:${D.name()}`,T.env[D.envVar]);else this.emit(`optionEnv:${D.name()}`)}})}_parseOptionsImplied(){let D=new F3(this.options),u=(F)=>{return this.getOptionValue(F)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(F))};this.options.filter((F)=>F.implied!==void 0&&u(F.attributeName())&&D.valueFromOption(this.getOptionValue(F.attributeName()),F)).forEach((F)=>{Object.keys(F.implied).filter((E)=>!u(E)).forEach((E)=>{this.setOptionValueWithSource(E,F.implied[E],"implied")})})}missingArgument(D){let u=`error: missing required argument '${D}'`;this.error(u,{code:"commander.missingArgument"})}optionMissingArgument(D){let u=`error: option '${D.flags}' argument missing`;this.error(u,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(D){let u=`error: required option '${D.flags}' not specified`;this.error(u,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(D,u){let F=(B)=>{let _=B.attributeName(),A=this.getOptionValue(_),Z=this.options.find((X)=>X.negate&&_===X.attributeName()),$=this.options.find((X)=>!X.negate&&_===X.attributeName());if(Z&&(Z.presetArg===void 0&&A===!1||Z.presetArg!==void 0&&A===Z.presetArg))return Z;return $||B},E=(B)=>{let _=F(B),A=_.attributeName();if(this.getOptionValueSource(A)==="env")return`environment variable '${_.envVar}'`;return`option '${_.flags}'`},C=`error: ${E(D)} cannot be used with ${E(u)}`;this.error(C,{code:"commander.conflictingOption"})}unknownOption(D){if(this._allowUnknownOption)return;let u="";if(D.startsWith("--")&&this._showSuggestionAfterError){let E=[],C=this;do{let B=C.createHelp().visibleOptions(C).filter((_)=>_.long).map((_)=>_.long);E=E.concat(B),C=C.parent}while(C&&!C._enablePositionalOptions);u=ou(D,E)}let F=`error: unknown option '${D}'${u}`;this.error(F,{code:"commander.unknownOption"})}_excessArguments(D){if(this._allowExcessArguments)return;let u=this.registeredArguments.length,F=u===1?"":"s",C=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${u} argument${F} but got ${D.length}.`;this.error(C,{code:"commander.excessArguments"})}unknownCommand(){let D=this.args[0],u="";if(this._showSuggestionAfterError){let E=[];this.createHelp().visibleCommands(this).forEach((C)=>{if(E.push(C.name()),C.alias())E.push(C.alias())}),u=ou(D,E)}let F=`error: unknown command '${D}'${u}`;this.error(F,{code:"commander.unknownCommand"})}version(D,u,F){if(D===void 0)return this._version;this._version=D,u=u||"-V, --version",F=F||"output the version number";let E=this.createOption(u,F);return this._versionOptionName=E.attributeName(),this._registerOption(E),this.on("option:"+E.name(),()=>{this._outputConfiguration.writeOut(`${D}
25
+ `),this._exit(0,"commander.version",D)}),this}description(D,u){if(D===void 0&&u===void 0)return this._description;if(this._description=D,u)this._argsDescription=u;return this}summary(D){if(D===void 0)return this._summary;return this._summary=D,this}alias(D){if(D===void 0)return this._aliases[0];let u=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler)u=this.commands[this.commands.length-1];if(D===u._name)throw Error("Command alias can't be the same as its name");let F=this.parent?._findCommand(D);if(F){let E=[F.name()].concat(F.aliases()).join("|");throw Error(`cannot add alias '${D}' to command '${this.name()}' as already have command '${E}'`)}return u._aliases.push(D),this}aliases(D){if(D===void 0)return this._aliases;return D.forEach((u)=>this.alias(u)),this}usage(D){if(D===void 0){if(this._usage)return this._usage;let u=this.registeredArguments.map((F)=>{return e2(F)});return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?u:[]).join(" ")}return this._usage=D,this}name(D){if(D===void 0)return this._name;return this._name=D,this}nameFromFilename(D){return this._name=uD.basename(D,uD.extname(D)),this}executableDir(D){if(D===void 0)return this._executableDir;return this._executableDir=D,this}helpInformation(D){let u=this.createHelp(),F=this._getOutputContext(D);u.prepareContext({error:F.error,helpWidth:F.helpWidth,outputHasColors:F.hasColors});let E=u.formatHelp(this,u);if(F.hasColors)return E;return this._outputConfiguration.stripColor(E)}_getOutputContext(D){D=D||{};let u=!!D.error,F,E,C;if(u)F=(_)=>this._outputConfiguration.writeErr(_),E=this._outputConfiguration.getErrHasColors(),C=this._outputConfiguration.getErrHelpWidth();else F=(_)=>this._outputConfiguration.writeOut(_),E=this._outputConfiguration.getOutHasColors(),C=this._outputConfiguration.getOutHelpWidth();return{error:u,write:(_)=>{if(!E)_=this._outputConfiguration.stripColor(_);return F(_)},hasColors:E,helpWidth:C}}outputHelp(D){let u;if(typeof D==="function")u=D,D=void 0;let F=this._getOutputContext(D),E={error:F.error,write:F.write,command:this};this._getCommandAndAncestors().reverse().forEach((B)=>B.emit("beforeAllHelp",E)),this.emit("beforeHelp",E);let C=this.helpInformation({error:F.error});if(u){if(C=u(C),typeof C!=="string"&&!Buffer.isBuffer(C))throw Error("outputHelp callback must return a string or a Buffer")}if(F.write(C),this._getHelpOption()?.long)this.emit(this._getHelpOption().long);this.emit("afterHelp",E),this._getCommandAndAncestors().forEach((B)=>B.emit("afterAllHelp",E))}helpOption(D,u){if(typeof D==="boolean"){if(D)this._helpOption=this._helpOption??void 0;else this._helpOption=null;return this}return D=D??"-h, --help",u=u??"display help for command",this._helpOption=this.createOption(D,u),this}_getHelpOption(){if(this._helpOption===void 0)this.helpOption(void 0,void 0);return this._helpOption}addHelpOption(D){return this._helpOption=D,this}help(D){this.outputHelp(D);let u=Number(T.exitCode??0);if(u===0&&D&&typeof D!=="function"&&D.error)u=1;this._exit(u,"commander.help","(outputHelp)")}addHelpText(D,u){let F=["beforeAll","before","after","afterAll"];if(!F.includes(D))throw Error(`Unexpected value for position to addHelpText.
26
26
  Expecting one of '${F.join("', '")}'`);let E=`${D}Help`;return this.on(E,(C)=>{let B;if(typeof u==="function")B=u({error:C.error,command:C.command});else B=u;if(B)C.write(`${B}
27
- `)}),this}_outputHelpIfRequested(D){let u=this._getHelpOption();if(u&&D.find((E)=>u.is(E)))this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)")}}function au(D){return D.map((u)=>{if(!u.startsWith("--inspect"))return u;let F,E="127.0.0.1",C="9229",B;if((B=u.match(/^(--inspect(-brk)?)$/))!==null)F=B[1];else if((B=u.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if(F=B[1],/^\d+$/.test(B[3]))C=B[3];else E=B[3];else if((B=u.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)F=B[1],E=B[3],C=B[4];if(F&&C!=="0")return`${F}=${E}:${parseInt(C)+1}`;return u})}function aD(){if(W.env.NO_COLOR||W.env.FORCE_COLOR==="0"||W.env.FORCE_COLOR==="false")return!1;if(W.env.FORCE_COLOR||W.env.CLICOLOR_FORCE!==void 0)return!0;return}a2.Command=nD;a2.useColor=aD});var eu=j((e2)=>{var{Argument:su}=TD(),{Command:sD}=nu(),{CommanderError:o2,InvalidArgumentError:ou}=zD(),{Help:t2}=pD(),{Option:tu}=lD();e2.program=new sD;e2.createCommand=(D)=>new sD(D);e2.createOption=(D,u)=>new tu(D,u);e2.createArgument=(D,u)=>new su(D,u);e2.Command=sD;e2.Option=tu;e2.Argument=su;e2.Help=t2;e2.CommanderError=o2;e2.InvalidArgumentError=ou;e2.InvalidOptionArgumentError=ou});var wD=j((pE,K0)=>{var Eu=[],z0=0,g=(D,u)=>{if(z0>=u)Eu.push(D)};g.WARN=1;g.INFO=2;g.DEBUG=3;g.reset=()=>{Eu=[]};g.setDebugLevel=(D)=>{z0=D};g.warn=(D)=>g(D,g.WARN);g.info=(D)=>g(D,g.INFO);g.debug=(D)=>g(D,g.DEBUG);g.debugMessages=()=>Eu;K0.exports=g});var U0=j((lE,M0)=>{M0.exports=({onlyFirst:D=!1}={})=>{let u=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(u,D?void 0:"g")}});var V0=j((rE,R0)=>{var b3=U0();R0.exports=(D)=>typeof D==="string"?D.replace(b3(),""):D});var j0=j((iE,Cu)=>{var N0=(D)=>{if(Number.isNaN(D))return!1;if(D>=4352&&(D<=4447||D===9001||D===9002||11904<=D&&D<=12871&&D!==12351||12880<=D&&D<=19903||19968<=D&&D<=42182||43360<=D&&D<=43388||44032<=D&&D<=55203||63744<=D&&D<=64255||65040<=D&&D<=65049||65072<=D&&D<=65131||65281<=D&&D<=65376||65504<=D&&D<=65510||110592<=D&&D<=110593||127488<=D&&D<=127569||131072<=D&&D<=262141))return!0;return!1};Cu.exports=N0;Cu.exports.default=N0});var T0=j((aE,W0)=>{W0.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var I0=j((nE,Bu)=>{var f3=V0(),y3=j0(),v3=T0(),L0=(D)=>{if(typeof D!=="string"||D.length===0)return 0;if(D=f3(D),D.length===0)return 0;D=D.replace(v3()," ");let u=0;for(let F=0;F<D.length;F++){let E=D.codePointAt(F);if(E<=31||E>=127&&E<=159)continue;if(E>=768&&E<=879)continue;if(E>65535)F++;u+=y3(E)?2:1}return u};Bu.exports=L0;Bu.exports.default=L0});var _u=j((sE,S0)=>{var P0=I0();function SD(D){return D?/\u001b\[((?:\d*;){0,5}\d*)m/g:/\u001b\[(?:\d*;){0,5}\d*m/g}function o(D){let u=SD();return(""+D).replace(u,"").split(`
28
- `).reduce(function(C,B){return P0(B)>C?P0(B):C},0)}function UD(D,u){return Array(u+1).join(D)}function k3(D,u,F,E){let C=o(D);if(u+1>=C){let B=u-C;switch(E){case"right":{D=UD(F,B)+D;break}case"center":{let _=Math.ceil(B/2),A=B-_;D=UD(F,A)+D+UD(F,_);break}default:{D=D+UD(F,B);break}}}return D}var XD={};function RD(D,u,F){u="\x1B["+u+"m",F="\x1B["+F+"m",XD[u]={set:D,to:!0},XD[F]={set:D,to:!1},XD[D]={on:u,off:F}}RD("bold",1,22);RD("italics",3,23);RD("underline",4,24);RD("inverse",7,27);RD("strikethrough",9,29);function O0(D,u){let F=u[1]?parseInt(u[1].split(";")[0]):0;if(F>=30&&F<=39||F>=90&&F<=97){D.lastForegroundAdded=u[0];return}if(F>=40&&F<=49||F>=100&&F<=107){D.lastBackgroundAdded=u[0];return}if(F===0){for(let C in D)if(Object.prototype.hasOwnProperty.call(D,C))delete D[C];return}let E=XD[u[0]];if(E)D[E.set]=E.to}function x3(D){let u=SD(!0),F=u.exec(D),E={};while(F!==null)O0(E,F),F=u.exec(D);return E}function w0(D,u){let{lastBackgroundAdded:F,lastForegroundAdded:E}=D;if(delete D.lastBackgroundAdded,delete D.lastForegroundAdded,Object.keys(D).forEach(function(C){if(D[C])u+=XD[C].off}),F&&F!="\x1B[49m")u+="\x1B[49m";if(E&&E!="\x1B[39m")u+="\x1B[39m";return u}function h3(D,u){let{lastBackgroundAdded:F,lastForegroundAdded:E}=D;if(delete D.lastBackgroundAdded,delete D.lastForegroundAdded,Object.keys(D).forEach(function(C){if(D[C])u=XD[C].on+u}),F&&F!="\x1B[49m")u=F+u;if(E&&E!="\x1B[39m")u=E+u;return u}function g3(D,u){if(D.length===o(D))return D.substr(0,u);while(o(D)>u)D=D.slice(0,-1);return D}function m3(D,u){let F=SD(!0),E=D.split(SD()),C=0,B=0,_="",A,q={};while(B<u){A=F.exec(D);let $=E[C];if(C++,B+o($)>u)$=g3($,u-B);if(_+=$,B+=o($),B<u){if(!A)break;_+=A[0],O0(q,A)}}return w0(q,_)}function c3(D,u,F){if(F=F||"…",o(D)<=u)return D;u-=o(F);let C=m3(D,u);C+=F;let B="\x1B]8;;\x07";if(D.includes(B)&&!C.includes(B))C+=B;return C}function d3(){return{chars:{top:"─","top-mid":"┬","top-left":"┌","top-right":"┐",bottom:"─","bottom-mid":"┴","bottom-left":"└","bottom-right":"┘",left:"│","left-mid":"├",mid:"─","mid-mid":"┼",right:"│","right-mid":"┤",middle:"│"},truncate:"…",colWidths:[],rowHeights:[],colAligns:[],rowAligns:[],style:{"padding-left":1,"padding-right":1,head:["red"],border:["grey"],compact:!1},head:[]}}function p3(D,u){D=D||{},u=u||d3();let F=Object.assign({},u,D);return F.chars=Object.assign({},u.chars,D.chars),F.style=Object.assign({},u.style,D.style),F}function l3(D,u){let F=[],E=u.split(/(\s+)/g),C=[],B=0,_;for(let A=0;A<E.length;A+=2){let q=E[A],$=B+o(q);if(B>0&&_)$+=_.length;if($>D){if(B!==0)F.push(C.join(""));C=[q],B=o(q)}else C.push(_||"",q),B=$;_=E[A+1]}if(B)F.push(C.join(""));return F}function r3(D,u){let F=[],E="";function C(_,A){if(E.length&&A)E+=A;E+=_;while(E.length>D)F.push(E.slice(0,D)),E=E.slice(D)}let B=u.split(/(\s+)/g);for(let _=0;_<B.length;_+=2)C(B[_],_&&B[_-1]);if(E.length)F.push(E);return F}function i3(D,u,F=!0){let E=[];u=u.split(`
29
- `);let C=F?l3:r3;for(let B=0;B<u.length;B++)E.push.apply(E,C(D,u[B]));return E}function a3(D){let u={},F=[];for(let E=0;E<D.length;E++){let C=h3(u,D[E]);u=x3(C);let B=Object.assign({},u);F.push(w0(B,C))}return F}function n3(D,u){return["\x1B]","8",";",";",D||u,"\x07",u,"\x1B]","8",";",";","\x07"].join("")}S0.exports={strlen:o,repeat:UD,pad:k3,truncate:c3,mergeOptions:p3,wordWrap:i3,colorizeLines:a3,hyperlink:n3}});var v0=j((oE,y0)=>{var f0={};y0.exports=f0;var b0={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(b0).forEach(function(D){var u=b0[D],F=f0[D]=[];F.open="\x1B["+u[0]+"m",F.close="\x1B["+u[1]+"m"})});var x0=j((tE,k0)=>{k0.exports=function(D,u){u=u||process.argv;var F=u.indexOf("--"),E=/^-{1,2}/.test(D)?"":"--",C=u.indexOf(E+D);return C!==-1&&(F===-1?!0:C<F)}});var g0=j((eE,h0)=>{var s3=FD("os"),n=x0(),m=process.env,QD=void 0;if(n("no-color")||n("no-colors")||n("color=false"))QD=!1;else if(n("color")||n("colors")||n("color=true")||n("color=always"))QD=!0;if("FORCE_COLOR"in m)QD=m.FORCE_COLOR.length===0||parseInt(m.FORCE_COLOR,10)!==0;function o3(D){if(D===0)return!1;return{level:D,hasBasic:!0,has256:D>=2,has16m:D>=3}}function t3(D){if(QD===!1)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(D&&!D.isTTY&&QD!==!0)return 0;var u=QD?1:0;if(process.platform==="win32"){var F=s3.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(F[0])>=10&&Number(F[2])>=10586)return Number(F[2])>=14931?3:2;return 1}if("CI"in m){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(C){return C in m})||m.CI_NAME==="codeship")return 1;return u}if("TEAMCITY_VERSION"in m)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(m.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in m){var E=parseInt((m.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(m.TERM_PROGRAM){case"iTerm.app":return E>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(m.TERM))return 2;if(/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(m.TERM))return 1;if("COLORTERM"in m)return 1;if(m.TERM==="dumb")return u;return u}function Au(D){var u=t3(D);return o3(u)}h0.exports={supportsColor:Au,stdout:Au(process.stdout),stderr:Au(process.stderr)}});var c0=j((D6,m0)=>{m0.exports=function(u,F){var E="";u=u||"Run the trap, drop the bass",u=u.split("");var C={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","۝","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return u.forEach(function(B){B=B.toLowerCase();var _=C[B]||[" "],A=Math.floor(Math.random()*_.length);if(typeof C[B]<"u")E+=C[B][A];else E+=B}),E}});var p0=j((u6,d0)=>{d0.exports=function(u,F){u=u||" he is here ";var E={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},C=[].concat(E.up,E.down,E.mid);function B(q){var $=Math.floor(Math.random()*q);return $}function _(q){var $=!1;return C.filter(function(Z){$=Z===q}),$}function A(q,$){var Z="",H,X;$=$||{},$.up=typeof $.up<"u"?$.up:!0,$.mid=typeof $.mid<"u"?$.mid:!0,$.down=typeof $.down<"u"?$.down:!0,$.size=typeof $.size<"u"?$.size:"maxi",q=q.split("");for(X in q){if(_(X))continue;switch(Z=Z+q[X],H={up:0,down:0,mid:0},$.size){case"mini":H.up=B(8),H.mid=B(2),H.down=B(8);break;case"maxi":H.up=B(16)+3,H.mid=B(4)+1,H.down=B(64)+3;break;default:H.up=B(8)+1,H.mid=B(6)/2,H.down=B(8)+1;break}var G=["up","mid","down"];for(var J in G){var Y=G[J];for(var z=0;z<=H[Y];z++)if($[Y])Z=Z+E[Y][B(E[Y].length)]}}return Z}return A(u,F)}});var r0=j((F6,l0)=>{l0.exports=function(D){return function(u,F,E){if(u===" ")return u;switch(F%3){case 0:return D.red(u);case 1:return D.white(u);case 2:return D.blue(u)}}}});var a0=j((E6,i0)=>{i0.exports=function(D){return function(u,F,E){return F%2===0?u:D.inverse(u)}}});var s0=j((C6,n0)=>{n0.exports=function(D){var u=["red","yellow","green","blue","magenta"];return function(F,E,C){if(F===" ")return F;else return D[u[E++%u.length]](F)}}});var t0=j((B6,o0)=>{o0.exports=function(D){var u=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(F,E,C){return F===" "?F:D[u[Math.round(Math.random()*(u.length-2))]](F)}}});var EF=j((A6,FF)=>{var N={};FF.exports=N;N.themes={};var e3=FD("util"),BD=N.styles=v0(),e0=Object.defineProperties,D8=new RegExp(/[\r\n]+/g);N.supportsColor=g0().supportsColor;if(typeof N.enabled>"u")N.enabled=N.supportsColor()!==!1;N.enable=function(){N.enabled=!0};N.disable=function(){N.enabled=!1};N.stripColors=N.strip=function(D){return(""+D).replace(/\x1B\[\d+m/g,"")};var _6=N.stylize=function(u,F){if(!N.enabled)return u+"";var E=BD[F];if(!E&&F in N)return N[F](u);return E.open+u+E.close},u8=/[|\\{}()[\]^$+*?.]/g,F8=function(D){if(typeof D!=="string")throw TypeError("Expected a string");return D.replace(u8,"\\$&")};function DF(D){var u=function F(){return C8.apply(F,arguments)};return u._styles=D,u.__proto__=E8,u}var uF=function(){var D={};return BD.grey=BD.gray,Object.keys(BD).forEach(function(u){BD[u].closeRe=new RegExp(F8(BD[u].close),"g"),D[u]={get:function(){return DF(this._styles.concat(u))}}}),D}(),E8=e0(function(){},uF);function C8(){var D=Array.prototype.slice.call(arguments),u=D.map(function(_){if(_!=null&&_.constructor===String)return _;else return e3.inspect(_)}).join(" ");if(!N.enabled||!u)return u;var F=u.indexOf(`
30
- `)!=-1,E=this._styles,C=E.length;while(C--){var B=BD[E[C]];if(u=B.open+u.replace(B.closeRe,B.open)+B.close,F)u=u.replace(D8,function(_){return B.close+_+B.open})}return u}N.setTheme=function(D){if(typeof D==="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var u in D)(function(F){N[F]=function(E){if(typeof D[F]==="object"){var C=E;for(var B in D[F])C=N[D[F][B]](C);return C}return N[D[F]](E)}})(u)};function B8(){var D={};return Object.keys(uF).forEach(function(u){D[u]={get:function(){return DF([u])}}}),D}var _8=function(u,F){var E=F.split("");return E=E.map(u),E.join("")};N.trap=c0();N.zalgo=p0();N.maps={};N.maps.america=r0()(N);N.maps.zebra=a0()(N);N.maps.rainbow=s0()(N);N.maps.random=t0()(N);for($u in N.maps)(function(D){N[D]=function(u){return _8(N.maps[D],u)}})($u);var $u;e0(N,B8())});var BF=j(($6,CF)=>{var A8=EF();CF.exports=A8});var qF=j((q6,yD)=>{var{info:$8,debug:$F}=wD(),p=_u();class VD{constructor(D){this.setOptions(D),this.x=null,this.y=null}setOptions(D){if(["boolean","number","bigint","string"].indexOf(typeof D)!==-1)D={content:""+D};D=D||{},this.options=D;let u=D.content;if(["boolean","number","bigint","string"].indexOf(typeof u)!==-1)this.content=String(u);else if(!u)this.content=this.options.href||"";else throw Error("Content needs to be a primitive, got: "+typeof u);if(this.colSpan=D.colSpan||1,this.rowSpan=D.rowSpan||1,this.options.href)Object.defineProperty(this,"href",{get(){return this.options.href}})}mergeTableOptions(D,u){this.cells=u;let F=this.options.chars||{},E=D.chars,C=this.chars={};Z8.forEach(function(A){qu(F,E,A,C)}),this.truncate=this.options.truncate||D.truncate;let B=this.options.style=this.options.style||{},_=D.style;qu(B,_,"padding-left",this),qu(B,_,"padding-right",this),this.head=B.head||_.head,this.border=B.border||_.border,this.fixedWidth=D.colWidths[this.x],this.lines=this.computeLines(D),this.desiredWidth=p.strlen(this.content)+this.paddingLeft+this.paddingRight,this.desiredHeight=this.lines.length}computeLines(D){let u=D.wordWrap||D.textWrap,{wordWrap:F=u}=this.options;if(this.fixedWidth&&F){if(this.fixedWidth-=this.paddingLeft+this.paddingRight,this.colSpan){let B=1;while(B<this.colSpan)this.fixedWidth+=D.colWidths[this.x+B],B++}let{wrapOnWordBoundary:E=!0}=D,{wrapOnWordBoundary:C=E}=this.options;return this.wrapLines(p.wordWrap(this.fixedWidth,this.content,C))}return this.wrapLines(this.content.split(`
31
- `))}wrapLines(D){let u=p.colorizeLines(D);if(this.href)return u.map((F)=>p.hyperlink(this.href,F));return u}init(D){let u=this.x,F=this.y;this.widths=D.colWidths.slice(u,u+this.colSpan),this.heights=D.rowHeights.slice(F,F+this.rowSpan),this.width=this.widths.reduce(AF,-1),this.height=this.heights.reduce(AF,-1),this.hAlign=this.options.hAlign||D.colAligns[u],this.vAlign=this.options.vAlign||D.rowAligns[F],this.drawRight=u+this.colSpan==D.colWidths.length}draw(D,u){if(D=="top")return this.drawTop(this.drawRight);if(D=="bottom")return this.drawBottom(this.drawRight);let F=p.truncate(this.content,10,this.truncate);if(!D)$8(`${this.y}-${this.x}: ${this.rowSpan-D}x${this.colSpan} Cell ${F}`);let E=Math.max(this.height-this.lines.length,0),C;switch(this.vAlign){case"center":C=Math.ceil(E/2);break;case"bottom":C=E;break;default:C=0}if(D<C||D>=C+this.lines.length)return this.drawEmpty(this.drawRight,u);let B=this.lines.length>this.height&&D+1>=this.height;return this.drawLine(D-C,this.drawRight,B,u)}drawTop(D){let u=[];if(this.cells)this.widths.forEach(function(F,E){u.push(this._topLeftChar(E)),u.push(p.repeat(this.chars[this.y==0?"top":"mid"],F))},this);else u.push(this._topLeftChar(0)),u.push(p.repeat(this.chars[this.y==0?"top":"mid"],this.width));if(D)u.push(this.chars[this.y==0?"topRight":"rightMid"]);return this.wrapWithStyleColors("border",u.join(""))}_topLeftChar(D){let u=this.x+D,F;if(this.y==0)F=u==0?"topLeft":D==0?"topMid":"top";else if(u==0)F="leftMid";else if(F=D==0?"midMid":"bottomMid",this.cells){if(this.cells[this.y-1][u]instanceof VD.ColSpanCell)F=D==0?"topMid":"mid";if(D==0){let C=1;while(this.cells[this.y][u-C]instanceof VD.ColSpanCell)C++;if(this.cells[this.y][u-C]instanceof VD.RowSpanCell)F="leftMid"}}return this.chars[F]}wrapWithStyleColors(D,u){if(this[D]&&this[D].length)try{let F=BF();for(let E=this[D].length-1;E>=0;E--)F=F[this[D][E]];return F(u)}catch(F){return u}else return u}drawLine(D,u,F,E){let C=this.chars[this.x==0?"left":"middle"];if(this.x&&E&&this.cells){let H=this.cells[this.y+E][this.x-1];while(H instanceof bD)H=this.cells[H.y][H.x-1];if(!(H instanceof fD))C=this.chars.rightMid}let B=p.repeat(" ",this.paddingLeft),_=u?this.chars.right:"",A=p.repeat(" ",this.paddingRight),q=this.lines[D],$=this.width-(this.paddingLeft+this.paddingRight);if(F)q+=this.truncate||"…";let Z=p.truncate(q,$,this.truncate);return Z=p.pad(Z,$," ",this.hAlign),Z=B+Z+A,this.stylizeLine(C,Z,_)}stylizeLine(D,u,F){if(D=this.wrapWithStyleColors("border",D),F=this.wrapWithStyleColors("border",F),this.y===0)u=this.wrapWithStyleColors("head",u);return D+u+F}drawBottom(D){let u=this.chars[this.x==0?"bottomLeft":"bottomMid"],F=p.repeat(this.chars.bottom,this.width),E=D?this.chars.bottomRight:"";return this.wrapWithStyleColors("border",u+F+E)}drawEmpty(D,u){let F=this.chars[this.x==0?"left":"middle"];if(this.x&&u&&this.cells){let B=this.cells[this.y+u][this.x-1];while(B instanceof bD)B=this.cells[B.y][B.x-1];if(!(B instanceof fD))F=this.chars.rightMid}let E=D?this.chars.right:"",C=p.repeat(" ",this.width);return this.stylizeLine(F,C,E)}}class bD{constructor(){}draw(D){if(typeof D==="number")$F(`${this.y}-${this.x}: 1x1 ColSpanCell`);return""}init(){}mergeTableOptions(){}}class fD{constructor(D){this.originalCell=D}init(D){let u=this.y,F=this.originalCell.y;this.cellOffset=u-F,this.offset=q8(D.rowHeights,F,this.cellOffset)}draw(D){if(D=="top")return this.originalCell.draw(this.offset,this.cellOffset);if(D=="bottom")return this.originalCell.draw("bottom");return $F(`${this.y}-${this.x}: 1x${this.colSpan} RowSpanCell for ${this.originalCell.content}`),this.originalCell.draw(this.offset+1+D)}mergeTableOptions(){}}function _F(...D){return D.filter((u)=>u!==void 0&&u!==null).shift()}function qu(D,u,F,E){let C=F.split("-");if(C.length>1)C[1]=C[1].charAt(0).toUpperCase()+C[1].substr(1),C=C.join(""),E[C]=_F(D[C],D[F],u[C],u[F]);else E[F]=_F(D[F],u[F])}function q8(D,u,F){let E=D[u];for(let C=1;C<F;C++)E+=1+D[u+C];return E}function AF(D,u){return D+u+1}var Z8=["top","top-mid","top-left","top-right","bottom","bottom-mid","bottom-left","bottom-right","left","left-mid","mid","mid-mid","right","right-mid","middle"];yD.exports=VD;yD.exports.ColSpanCell=bD;yD.exports.RowSpanCell=fD});var XF=j((Z6,GF)=>{var{warn:G8,debug:X8}=wD(),Zu=qF(),{ColSpanCell:Q8,RowSpanCell:H8}=Zu;(function(){function D(G,J){if(G[J]>0)return D(G,J+1);return J}function u(G){let J={};G.forEach(function(Y,z){let M=0;Y.forEach(function(K){K.y=z,K.x=z?D(J,M):M;let U=K.rowSpan||1,R=K.colSpan||1;if(U>1)for(let V=0;V<R;V++)J[K.x+V]=U;M=K.x+R}),Object.keys(J).forEach((K)=>{if(J[K]--,J[K]<1)delete J[K]})})}function F(G){let J=0;return G.forEach(function(Y){Y.forEach(function(z){J=Math.max(J,z.x+(z.colSpan||1))})}),J}function E(G){return G.length}function C(G,J){let Y=G.y,z=G.y-1+(G.rowSpan||1),M=J.y,K=J.y-1+(J.rowSpan||1),U=!(Y>K||M>z),R=G.x,V=G.x-1+(G.colSpan||1),x=J.x,O=J.x-1+(J.colSpan||1),v=!(R>O||x>V);return U&&v}function B(G,J,Y){let z=Math.min(G.length-1,Y),M={x:J,y:Y};for(let K=0;K<=z;K++){let U=G[K];for(let R=0;R<U.length;R++)if(C(M,U[R]))return!0}return!1}function _(G,J,Y,z){for(let M=Y;M<z;M++)if(B(G,M,J))return!1;return!0}function A(G){G.forEach(function(J,Y){J.forEach(function(z){for(let M=1;M<z.rowSpan;M++){let K=new H8(z);K.x=z.x,K.y=z.y+M,K.colSpan=z.colSpan,$(K,G[Y+M])}})})}function q(G){for(let J=G.length-1;J>=0;J--){let Y=G[J];for(let z=0;z<Y.length;z++){let M=Y[z];for(let K=1;K<M.colSpan;K++){let U=new Q8;U.x=M.x+K,U.y=M.y,Y.splice(z+1,0,U)}}}}function $(G,J){let Y=0;while(Y<J.length&&J[Y].x<G.x)Y++;J.splice(Y,0,G)}function Z(G){let J=E(G),Y=F(G);X8(`Max rows: ${J}; Max cols: ${Y}`);for(let z=0;z<J;z++)for(let M=0;M<Y;M++)if(!B(G,M,z)){let K={x:M,y:z,colSpan:1,rowSpan:1};M++;while(M<Y&&!B(G,M,z))K.colSpan++,M++;let U=z+1;while(U<J&&_(G,U,K.x,K.x+K.colSpan))K.rowSpan++,U++;let R=new Zu(K);R.x=K.x,R.y=K.y,G8(`Missing cell at ${R.y}-${R.x}.`),$(R,G[z])}}function H(G){return G.map(function(J){if(!Array.isArray(J)){let Y=Object.keys(J)[0];if(J=J[Y],Array.isArray(J))J=J.slice(),J.unshift(Y);else J=[Y,J]}return J.map(function(Y){return new Zu(Y)})})}function X(G){let J=H(G);return u(J),Z(J),A(J),q(J),J}GF.exports={makeTableLayout:X,layoutTable:u,addRowSpanCells:A,maxWidth:F,fillInTable:Z,computeWidths:ZF("colSpan","desiredWidth","x",1),computeHeights:ZF("rowSpan","desiredHeight","y",1)}})();function ZF(D,u,F,E){return function(C,B){let _=[],A=[],q={};B.forEach(function($){$.forEach(function(Z){if((Z[D]||1)>1)A.push(Z);else _[Z[F]]=Math.max(_[Z[F]]||0,Z[u]||0,E)})}),C.forEach(function($,Z){if(typeof $==="number")_[Z]=$});for(let $=A.length-1;$>=0;$--){let Z=A[$],H=Z[D],X=Z[F],G=_[X],J=typeof C[X]==="number"?0:1;if(typeof G==="number"){for(let Y=1;Y<H;Y++)if(G+=1+_[X+Y],typeof C[X+Y]!=="number")J++}else if(G=u==="desiredWidth"?Z.desiredWidth-1:1,!q[X]||q[X]<G)q[X]=G;if(Z[u]>G){let Y=0;while(J>0&&Z[u]>G){if(typeof C[X+Y]!=="number"){let z=Math.round((Z[u]-G)/J);G+=z,_[X+Y]+=z,J--}Y++}}}Object.assign(C,_,q);for(let $=0;$<C.length;$++)C[$]=Math.max(E,C[$]||0)}}});var HF=j((G6,QF)=>{var uD=wD(),J8=_u(),Gu=XF();class Qu extends Array{constructor(D){super();let u=J8.mergeOptions(D);if(Object.defineProperty(this,"options",{value:u,enumerable:u.debug}),u.debug){switch(typeof u.debug){case"boolean":uD.setDebugLevel(uD.WARN);break;case"number":uD.setDebugLevel(u.debug);break;case"string":uD.setDebugLevel(parseInt(u.debug,10));break;default:uD.setDebugLevel(uD.WARN),uD.warn(`Debug option is expected to be boolean, number, or string. Received a ${typeof u.debug}`)}Object.defineProperty(this,"messages",{get(){return uD.debugMessages()}})}}toString(){let D=this,u=this.options.head&&this.options.head.length;if(u){if(D=[this.options.head],this.length)D.push.apply(D,this)}else this.options.style.head=[];let F=Gu.makeTableLayout(D);F.forEach(function(C){C.forEach(function(B){B.mergeTableOptions(this.options,F)},this)},this),Gu.computeWidths(this.options.colWidths,F),Gu.computeHeights(this.options.rowHeights,F),F.forEach(function(C){C.forEach(function(B){B.init(this.options)},this)},this);let E=[];for(let C=0;C<F.length;C++){let B=F[C],_=this.options.rowHeights[C];if(C===0||!this.options.style.compact||C==1&&u)Xu(B,"top",E);for(let A=0;A<_;A++)Xu(B,A,E);if(C+1==F.length)Xu(B,"bottom",E)}return E.join(`
27
+ `)}),this}_outputHelpIfRequested(D){let u=this._getHelpOption();if(u&&D.find((E)=>u.is(E)))this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)")}}function tu(D){return D.map((u)=>{if(!u.startsWith("--inspect"))return u;let F,E="127.0.0.1",C="9229",B;if((B=u.match(/^(--inspect(-brk)?)$/))!==null)F=B[1];else if((B=u.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if(F=B[1],/^\d+$/.test(B[3]))C=B[3];else E=B[3];else if((B=u.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)F=B[1],E=B[3],C=B[4];if(F&&C!=="0")return`${F}=${E}:${parseInt(C)+1}`;return u})}function tD(){if(T.env.NO_COLOR||T.env.FORCE_COLOR==="0"||T.env.FORCE_COLOR==="false")return!1;if(T.env.FORCE_COLOR||T.env.CLICOLOR_FORCE!==void 0)return!0;return}E3.Command=eD;E3.useColor=tD});var E0=W(($3)=>{var{Argument:D0}=wD(),{Command:Du}=eu(),{CommanderError:_3,InvalidArgumentError:u0}=KD(),{Help:A3}=iD(),{Option:F0}=aD();$3.program=new Du;$3.createCommand=(D)=>new Du(D);$3.createOption=(D,u)=>new F0(D,u);$3.createArgument=(D,u)=>new D0(D,u);$3.Command=Du;$3.Option=F0;$3.Argument=D0;$3.Help=A3;$3.CommanderError=_3;$3.InvalidArgumentError=u0;$3.InvalidOptionArgumentError=u0});var bD=W(($6,V0)=>{var _u=[],U0=0,d=(D,u)=>{if(U0>=u)_u.push(D)};d.WARN=1;d.INFO=2;d.DEBUG=3;d.reset=()=>{_u=[]};d.setDebugLevel=(D)=>{U0=D};d.warn=(D)=>d(D,d.WARN);d.info=(D)=>d(D,d.INFO);d.debug=(D)=>d(D,d.DEBUG);d.debugMessages=()=>_u;V0.exports=d});var j0=W((X6,N0)=>{N0.exports=({onlyFirst:D=!1}={})=>{let u=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(u,D?void 0:"g")}});var T0=W((Z6,W0)=>{var c3=j0();W0.exports=(D)=>typeof D==="string"?D.replace(c3(),""):D});var I0=W((q6,Au)=>{var L0=(D)=>{if(Number.isNaN(D))return!1;if(D>=4352&&(D<=4447||D===9001||D===9002||11904<=D&&D<=12871&&D!==12351||12880<=D&&D<=19903||19968<=D&&D<=42182||43360<=D&&D<=43388||44032<=D&&D<=55203||63744<=D&&D<=64255||65040<=D&&D<=65049||65072<=D&&D<=65131||65281<=D&&D<=65376||65504<=D&&D<=65510||110592<=D&&D<=110593||127488<=D&&D<=127569||131072<=D&&D<=262141))return!0;return!1};Au.exports=L0;Au.exports.default=L0});var O0=W((G6,w0)=>{w0.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var S0=W((Q6,$u)=>{var d3=T0(),p3=I0(),r3=O0(),P0=(D)=>{if(typeof D!=="string"||D.length===0)return 0;if(D=d3(D),D.length===0)return 0;D=D.replace(r3()," ");let u=0;for(let F=0;F<D.length;F++){let E=D.codePointAt(F);if(E<=31||E>=127&&E<=159)continue;if(E>=768&&E<=879)continue;if(E>65535)F++;u+=p3(E)?2:1}return u};$u.exports=P0;$u.exports.default=P0});var Xu=W((J6,v0)=>{var f0=S0();function yD(D){return D?/\u001b\[((?:\d*;){0,5}\d*)m/g:/\u001b\[(?:\d*;){0,5}\d*m/g}function t(D){let u=yD();return(""+D).replace(u,"").split(`
28
+ `).reduce(function(C,B){return f0(B)>C?f0(B):C},0)}function VD(D,u){return Array(u+1).join(D)}function l3(D,u,F,E){let C=t(D);if(u+1>=C){let B=u-C;switch(E){case"right":{D=VD(F,B)+D;break}case"center":{let _=Math.ceil(B/2),A=B-_;D=VD(F,A)+D+VD(F,_);break}default:{D=D+VD(F,B);break}}}return D}var QD={};function ND(D,u,F){u="\x1B["+u+"m",F="\x1B["+F+"m",QD[u]={set:D,to:!0},QD[F]={set:D,to:!1},QD[D]={on:u,off:F}}ND("bold",1,22);ND("italics",3,23);ND("underline",4,24);ND("inverse",7,27);ND("strikethrough",9,29);function b0(D,u){let F=u[1]?parseInt(u[1].split(";")[0]):0;if(F>=30&&F<=39||F>=90&&F<=97){D.lastForegroundAdded=u[0];return}if(F>=40&&F<=49||F>=100&&F<=107){D.lastBackgroundAdded=u[0];return}if(F===0){for(let C in D)if(Object.prototype.hasOwnProperty.call(D,C))delete D[C];return}let E=QD[u[0]];if(E)D[E.set]=E.to}function n3(D){let u=yD(!0),F=u.exec(D),E={};while(F!==null)b0(E,F),F=u.exec(D);return E}function y0(D,u){let{lastBackgroundAdded:F,lastForegroundAdded:E}=D;if(delete D.lastBackgroundAdded,delete D.lastForegroundAdded,Object.keys(D).forEach(function(C){if(D[C])u+=QD[C].off}),F&&F!="\x1B[49m")u+="\x1B[49m";if(E&&E!="\x1B[39m")u+="\x1B[39m";return u}function i3(D,u){let{lastBackgroundAdded:F,lastForegroundAdded:E}=D;if(delete D.lastBackgroundAdded,delete D.lastForegroundAdded,Object.keys(D).forEach(function(C){if(D[C])u=QD[C].on+u}),F&&F!="\x1B[49m")u=F+u;if(E&&E!="\x1B[39m")u=E+u;return u}function a3(D,u){if(D.length===t(D))return D.substr(0,u);while(t(D)>u)D=D.slice(0,-1);return D}function s3(D,u){let F=yD(!0),E=D.split(yD()),C=0,B=0,_="",A,Z={};while(B<u){A=F.exec(D);let $=E[C];if(C++,B+t($)>u)$=a3($,u-B);if(_+=$,B+=t($),B<u){if(!A)break;_+=A[0],b0(Z,A)}}return y0(Z,_)}function o3(D,u,F){if(F=F||"…",t(D)<=u)return D;u-=t(F);let C=s3(D,u);C+=F;let B="\x1B]8;;\x07";if(D.includes(B)&&!C.includes(B))C+=B;return C}function t3(){return{chars:{top:"─","top-mid":"┬","top-left":"┌","top-right":"┐",bottom:"─","bottom-mid":"┴","bottom-left":"└","bottom-right":"┘",left:"│","left-mid":"├",mid:"─","mid-mid":"┼",right:"│","right-mid":"┤",middle:"│"},truncate:"…",colWidths:[],rowHeights:[],colAligns:[],rowAligns:[],style:{"padding-left":1,"padding-right":1,head:["red"],border:["grey"],compact:!1},head:[]}}function e3(D,u){D=D||{},u=u||t3();let F=Object.assign({},u,D);return F.chars=Object.assign({},u.chars,D.chars),F.style=Object.assign({},u.style,D.style),F}function D8(D,u){let F=[],E=u.split(/(\s+)/g),C=[],B=0,_;for(let A=0;A<E.length;A+=2){let Z=E[A],$=B+t(Z);if(B>0&&_)$+=_.length;if($>D){if(B!==0)F.push(C.join(""));C=[Z],B=t(Z)}else C.push(_||"",Z),B=$;_=E[A+1]}if(B)F.push(C.join(""));return F}function u8(D,u){let F=[],E="";function C(_,A){if(E.length&&A)E+=A;E+=_;while(E.length>D)F.push(E.slice(0,D)),E=E.slice(D)}let B=u.split(/(\s+)/g);for(let _=0;_<B.length;_+=2)C(B[_],_&&B[_-1]);if(E.length)F.push(E);return F}function F8(D,u,F=!0){let E=[];u=u.split(`
29
+ `);let C=F?D8:u8;for(let B=0;B<u.length;B++)E.push.apply(E,C(D,u[B]));return E}function E8(D){let u={},F=[];for(let E=0;E<D.length;E++){let C=i3(u,D[E]);u=n3(C);let B=Object.assign({},u);F.push(y0(B,C))}return F}function C8(D,u){return["\x1B]","8",";",";",D||u,"\x07",u,"\x1B]","8",";",";","\x07"].join("")}v0.exports={strlen:t,repeat:VD,pad:l3,truncate:o3,mergeOptions:e3,wordWrap:F8,colorizeLines:E8,hyperlink:C8}});var g0=W((H6,h0)=>{var x0={};h0.exports=x0;var k0={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(k0).forEach(function(D){var u=k0[D],F=x0[D]=[];F.open="\x1B["+u[0]+"m",F.close="\x1B["+u[1]+"m"})});var c0=W((z6,m0)=>{m0.exports=function(D,u){u=u||process.argv;var F=u.indexOf("--"),E=/^-{1,2}/.test(D)?"":"--",C=u.indexOf(E+D);return C!==-1&&(F===-1?!0:C<F)}});var p0=W((Y6,d0)=>{var B8=ED("os"),s=c0(),p=process.env,JD=void 0;if(s("no-color")||s("no-colors")||s("color=false"))JD=!1;else if(s("color")||s("colors")||s("color=true")||s("color=always"))JD=!0;if("FORCE_COLOR"in p)JD=p.FORCE_COLOR.length===0||parseInt(p.FORCE_COLOR,10)!==0;function _8(D){if(D===0)return!1;return{level:D,hasBasic:!0,has256:D>=2,has16m:D>=3}}function A8(D){if(JD===!1)return 0;if(s("color=16m")||s("color=full")||s("color=truecolor"))return 3;if(s("color=256"))return 2;if(D&&!D.isTTY&&JD!==!0)return 0;var u=JD?1:0;if(process.platform==="win32"){var F=B8.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(F[0])>=10&&Number(F[2])>=10586)return Number(F[2])>=14931?3:2;return 1}if("CI"in p){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(C){return C in p})||p.CI_NAME==="codeship")return 1;return u}if("TEAMCITY_VERSION"in p)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(p.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in p){var E=parseInt((p.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(p.TERM_PROGRAM){case"iTerm.app":return E>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(p.TERM))return 2;if(/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(p.TERM))return 1;if("COLORTERM"in p)return 1;if(p.TERM==="dumb")return u;return u}function Zu(D){var u=A8(D);return _8(u)}d0.exports={supportsColor:Zu,stdout:Zu(process.stdout),stderr:Zu(process.stderr)}});var l0=W((K6,r0)=>{r0.exports=function(u,F){var E="";u=u||"Run the trap, drop the bass",u=u.split("");var C={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","۝","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return u.forEach(function(B){B=B.toLowerCase();var _=C[B]||[" "],A=Math.floor(Math.random()*_.length);if(typeof C[B]<"u")E+=C[B][A];else E+=B}),E}});var i0=W((M6,n0)=>{n0.exports=function(u,F){u=u||" he is here ";var E={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},C=[].concat(E.up,E.down,E.mid);function B(Z){var $=Math.floor(Math.random()*Z);return $}function _(Z){var $=!1;return C.filter(function(X){$=X===Z}),$}function A(Z,$){var X="",J,Q;$=$||{},$.up=typeof $.up<"u"?$.up:!0,$.mid=typeof $.mid<"u"?$.mid:!0,$.down=typeof $.down<"u"?$.down:!0,$.size=typeof $.size<"u"?$.size:"maxi",Z=Z.split("");for(Q in Z){if(_(Q))continue;switch(X=X+Z[Q],J={up:0,down:0,mid:0},$.size){case"mini":J.up=B(8),J.mid=B(2),J.down=B(8);break;case"maxi":J.up=B(16)+3,J.mid=B(4)+1,J.down=B(64)+3;break;default:J.up=B(8)+1,J.mid=B(6)/2,J.down=B(8)+1;break}var G=["up","mid","down"];for(var H in G){var z=G[H];for(var Y=0;Y<=J[z];Y++)if($[z])X=X+E[z][B(E[z].length)]}}return X}return A(u,F)}});var s0=W((R6,a0)=>{a0.exports=function(D){return function(u,F,E){if(u===" ")return u;switch(F%3){case 0:return D.red(u);case 1:return D.white(u);case 2:return D.blue(u)}}}});var t0=W((U6,o0)=>{o0.exports=function(D){return function(u,F,E){return F%2===0?u:D.inverse(u)}}});var DF=W((V6,e0)=>{e0.exports=function(D){var u=["red","yellow","green","blue","magenta"];return function(F,E,C){if(F===" ")return F;else return D[u[E++%u.length]](F)}}});var FF=W((N6,uF)=>{uF.exports=function(D){var u=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(F,E,C){return F===" "?F:D[u[Math.round(Math.random()*(u.length-2))]](F)}}});var AF=W((W6,_F)=>{var N={};_F.exports=N;N.themes={};var $8=ED("util"),_D=N.styles=g0(),EF=Object.defineProperties,X8=new RegExp(/[\r\n]+/g);N.supportsColor=p0().supportsColor;if(typeof N.enabled>"u")N.enabled=N.supportsColor()!==!1;N.enable=function(){N.enabled=!0};N.disable=function(){N.enabled=!1};N.stripColors=N.strip=function(D){return(""+D).replace(/\x1B\[\d+m/g,"")};var j6=N.stylize=function(u,F){if(!N.enabled)return u+"";var E=_D[F];if(!E&&F in N)return N[F](u);return E.open+u+E.close},Z8=/[|\\{}()[\]^$+*?.]/g,q8=function(D){if(typeof D!=="string")throw TypeError("Expected a string");return D.replace(Z8,"\\$&")};function CF(D){var u=function F(){return Q8.apply(F,arguments)};return u._styles=D,u.__proto__=G8,u}var BF=function(){var D={};return _D.grey=_D.gray,Object.keys(_D).forEach(function(u){_D[u].closeRe=new RegExp(q8(_D[u].close),"g"),D[u]={get:function(){return CF(this._styles.concat(u))}}}),D}(),G8=EF(function(){},BF);function Q8(){var D=Array.prototype.slice.call(arguments),u=D.map(function(_){if(_!=null&&_.constructor===String)return _;else return $8.inspect(_)}).join(" ");if(!N.enabled||!u)return u;var F=u.indexOf(`
30
+ `)!=-1,E=this._styles,C=E.length;while(C--){var B=_D[E[C]];if(u=B.open+u.replace(B.closeRe,B.open)+B.close,F)u=u.replace(X8,function(_){return B.close+_+B.open})}return u}N.setTheme=function(D){if(typeof D==="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var u in D)(function(F){N[F]=function(E){if(typeof D[F]==="object"){var C=E;for(var B in D[F])C=N[D[F][B]](C);return C}return N[D[F]](E)}})(u)};function J8(){var D={};return Object.keys(BF).forEach(function(u){D[u]={get:function(){return CF([u])}}}),D}var H8=function(u,F){var E=F.split("");return E=E.map(u),E.join("")};N.trap=l0();N.zalgo=i0();N.maps={};N.maps.america=s0()(N);N.maps.zebra=t0()(N);N.maps.rainbow=DF()(N);N.maps.random=FF()(N);for(qu in N.maps)(function(D){N[D]=function(u){return H8(N.maps[D],u)}})(qu);var qu;EF(N,J8())});var XF=W((T6,$F)=>{var z8=AF();$F.exports=z8});var QF=W((L6,xD)=>{var{info:Y8,debug:GF}=bD(),r=Xu();class jD{constructor(D){this.setOptions(D),this.x=null,this.y=null}setOptions(D){if(["boolean","number","bigint","string"].indexOf(typeof D)!==-1)D={content:""+D};D=D||{},this.options=D;let u=D.content;if(["boolean","number","bigint","string"].indexOf(typeof u)!==-1)this.content=String(u);else if(!u)this.content=this.options.href||"";else throw Error("Content needs to be a primitive, got: "+typeof u);if(this.colSpan=D.colSpan||1,this.rowSpan=D.rowSpan||1,this.options.href)Object.defineProperty(this,"href",{get(){return this.options.href}})}mergeTableOptions(D,u){this.cells=u;let F=this.options.chars||{},E=D.chars,C=this.chars={};M8.forEach(function(A){Gu(F,E,A,C)}),this.truncate=this.options.truncate||D.truncate;let B=this.options.style=this.options.style||{},_=D.style;Gu(B,_,"padding-left",this),Gu(B,_,"padding-right",this),this.head=B.head||_.head,this.border=B.border||_.border,this.fixedWidth=D.colWidths[this.x],this.lines=this.computeLines(D),this.desiredWidth=r.strlen(this.content)+this.paddingLeft+this.paddingRight,this.desiredHeight=this.lines.length}computeLines(D){let u=D.wordWrap||D.textWrap,{wordWrap:F=u}=this.options;if(this.fixedWidth&&F){if(this.fixedWidth-=this.paddingLeft+this.paddingRight,this.colSpan){let B=1;while(B<this.colSpan)this.fixedWidth+=D.colWidths[this.x+B],B++}let{wrapOnWordBoundary:E=!0}=D,{wrapOnWordBoundary:C=E}=this.options;return this.wrapLines(r.wordWrap(this.fixedWidth,this.content,C))}return this.wrapLines(this.content.split(`
31
+ `))}wrapLines(D){let u=r.colorizeLines(D);if(this.href)return u.map((F)=>r.hyperlink(this.href,F));return u}init(D){let u=this.x,F=this.y;this.widths=D.colWidths.slice(u,u+this.colSpan),this.heights=D.rowHeights.slice(F,F+this.rowSpan),this.width=this.widths.reduce(qF,-1),this.height=this.heights.reduce(qF,-1),this.hAlign=this.options.hAlign||D.colAligns[u],this.vAlign=this.options.vAlign||D.rowAligns[F],this.drawRight=u+this.colSpan==D.colWidths.length}draw(D,u){if(D=="top")return this.drawTop(this.drawRight);if(D=="bottom")return this.drawBottom(this.drawRight);let F=r.truncate(this.content,10,this.truncate);if(!D)Y8(`${this.y}-${this.x}: ${this.rowSpan-D}x${this.colSpan} Cell ${F}`);let E=Math.max(this.height-this.lines.length,0),C;switch(this.vAlign){case"center":C=Math.ceil(E/2);break;case"bottom":C=E;break;default:C=0}if(D<C||D>=C+this.lines.length)return this.drawEmpty(this.drawRight,u);let B=this.lines.length>this.height&&D+1>=this.height;return this.drawLine(D-C,this.drawRight,B,u)}drawTop(D){let u=[];if(this.cells)this.widths.forEach(function(F,E){u.push(this._topLeftChar(E)),u.push(r.repeat(this.chars[this.y==0?"top":"mid"],F))},this);else u.push(this._topLeftChar(0)),u.push(r.repeat(this.chars[this.y==0?"top":"mid"],this.width));if(D)u.push(this.chars[this.y==0?"topRight":"rightMid"]);return this.wrapWithStyleColors("border",u.join(""))}_topLeftChar(D){let u=this.x+D,F;if(this.y==0)F=u==0?"topLeft":D==0?"topMid":"top";else if(u==0)F="leftMid";else if(F=D==0?"midMid":"bottomMid",this.cells){if(this.cells[this.y-1][u]instanceof jD.ColSpanCell)F=D==0?"topMid":"mid";if(D==0){let C=1;while(this.cells[this.y][u-C]instanceof jD.ColSpanCell)C++;if(this.cells[this.y][u-C]instanceof jD.RowSpanCell)F="leftMid"}}return this.chars[F]}wrapWithStyleColors(D,u){if(this[D]&&this[D].length)try{let F=XF();for(let E=this[D].length-1;E>=0;E--)F=F[this[D][E]];return F(u)}catch(F){return u}else return u}drawLine(D,u,F,E){let C=this.chars[this.x==0?"left":"middle"];if(this.x&&E&&this.cells){let J=this.cells[this.y+E][this.x-1];while(J instanceof vD)J=this.cells[J.y][J.x-1];if(!(J instanceof kD))C=this.chars.rightMid}let B=r.repeat(" ",this.paddingLeft),_=u?this.chars.right:"",A=r.repeat(" ",this.paddingRight),Z=this.lines[D],$=this.width-(this.paddingLeft+this.paddingRight);if(F)Z+=this.truncate||"…";let X=r.truncate(Z,$,this.truncate);return X=r.pad(X,$," ",this.hAlign),X=B+X+A,this.stylizeLine(C,X,_)}stylizeLine(D,u,F){if(D=this.wrapWithStyleColors("border",D),F=this.wrapWithStyleColors("border",F),this.y===0)u=this.wrapWithStyleColors("head",u);return D+u+F}drawBottom(D){let u=this.chars[this.x==0?"bottomLeft":"bottomMid"],F=r.repeat(this.chars.bottom,this.width),E=D?this.chars.bottomRight:"";return this.wrapWithStyleColors("border",u+F+E)}drawEmpty(D,u){let F=this.chars[this.x==0?"left":"middle"];if(this.x&&u&&this.cells){let B=this.cells[this.y+u][this.x-1];while(B instanceof vD)B=this.cells[B.y][B.x-1];if(!(B instanceof kD))F=this.chars.rightMid}let E=D?this.chars.right:"",C=r.repeat(" ",this.width);return this.stylizeLine(F,C,E)}}class vD{constructor(){}draw(D){if(typeof D==="number")GF(`${this.y}-${this.x}: 1x1 ColSpanCell`);return""}init(){}mergeTableOptions(){}}class kD{constructor(D){this.originalCell=D}init(D){let u=this.y,F=this.originalCell.y;this.cellOffset=u-F,this.offset=K8(D.rowHeights,F,this.cellOffset)}draw(D){if(D=="top")return this.originalCell.draw(this.offset,this.cellOffset);if(D=="bottom")return this.originalCell.draw("bottom");return GF(`${this.y}-${this.x}: 1x${this.colSpan} RowSpanCell for ${this.originalCell.content}`),this.originalCell.draw(this.offset+1+D)}mergeTableOptions(){}}function ZF(...D){return D.filter((u)=>u!==void 0&&u!==null).shift()}function Gu(D,u,F,E){let C=F.split("-");if(C.length>1)C[1]=C[1].charAt(0).toUpperCase()+C[1].substr(1),C=C.join(""),E[C]=ZF(D[C],D[F],u[C],u[F]);else E[F]=ZF(D[F],u[F])}function K8(D,u,F){let E=D[u];for(let C=1;C<F;C++)E+=1+D[u+C];return E}function qF(D,u){return D+u+1}var M8=["top","top-mid","top-left","top-right","bottom","bottom-mid","bottom-left","bottom-right","left","left-mid","mid","mid-mid","right","right-mid","middle"];xD.exports=jD;xD.exports.ColSpanCell=vD;xD.exports.RowSpanCell=kD});var zF=W((I6,HF)=>{var{warn:R8,debug:U8}=bD(),Qu=QF(),{ColSpanCell:V8,RowSpanCell:N8}=Qu;(function(){function D(G,H){if(G[H]>0)return D(G,H+1);return H}function u(G){let H={};G.forEach(function(z,Y){let M=0;z.forEach(function(R){R.y=Y,R.x=Y?D(H,M):M;let K=R.rowSpan||1,U=R.colSpan||1;if(K>1)for(let V=0;V<U;V++)H[R.x+V]=K;M=R.x+U}),Object.keys(H).forEach((R)=>{if(H[R]--,H[R]<1)delete H[R]})})}function F(G){let H=0;return G.forEach(function(z){z.forEach(function(Y){H=Math.max(H,Y.x+(Y.colSpan||1))})}),H}function E(G){return G.length}function C(G,H){let z=G.y,Y=G.y-1+(G.rowSpan||1),M=H.y,R=H.y-1+(H.rowSpan||1),K=!(z>R||M>Y),U=G.x,V=G.x-1+(G.colSpan||1),m=H.x,f=H.x-1+(H.colSpan||1),k=!(U>f||m>V);return K&&k}function B(G,H,z){let Y=Math.min(G.length-1,z),M={x:H,y:z};for(let R=0;R<=Y;R++){let K=G[R];for(let U=0;U<K.length;U++)if(C(M,K[U]))return!0}return!1}function _(G,H,z,Y){for(let M=z;M<Y;M++)if(B(G,M,H))return!1;return!0}function A(G){G.forEach(function(H,z){H.forEach(function(Y){for(let M=1;M<Y.rowSpan;M++){let R=new N8(Y);R.x=Y.x,R.y=Y.y+M,R.colSpan=Y.colSpan,$(R,G[z+M])}})})}function Z(G){for(let H=G.length-1;H>=0;H--){let z=G[H];for(let Y=0;Y<z.length;Y++){let M=z[Y];for(let R=1;R<M.colSpan;R++){let K=new V8;K.x=M.x+R,K.y=M.y,z.splice(Y+1,0,K)}}}}function $(G,H){let z=0;while(z<H.length&&H[z].x<G.x)z++;H.splice(z,0,G)}function X(G){let H=E(G),z=F(G);U8(`Max rows: ${H}; Max cols: ${z}`);for(let Y=0;Y<H;Y++)for(let M=0;M<z;M++)if(!B(G,M,Y)){let R={x:M,y:Y,colSpan:1,rowSpan:1};M++;while(M<z&&!B(G,M,Y))R.colSpan++,M++;let K=Y+1;while(K<H&&_(G,K,R.x,R.x+R.colSpan))R.rowSpan++,K++;let U=new Qu(R);U.x=R.x,U.y=R.y,R8(`Missing cell at ${U.y}-${U.x}.`),$(U,G[Y])}}function J(G){return G.map(function(H){if(!Array.isArray(H)){let z=Object.keys(H)[0];if(H=H[z],Array.isArray(H))H=H.slice(),H.unshift(z);else H=[z,H]}return H.map(function(z){return new Qu(z)})})}function Q(G){let H=J(G);return u(H),X(H),A(H),Z(H),H}HF.exports={makeTableLayout:Q,layoutTable:u,addRowSpanCells:A,maxWidth:F,fillInTable:X,computeWidths:JF("colSpan","desiredWidth","x",1),computeHeights:JF("rowSpan","desiredHeight","y",1)}})();function JF(D,u,F,E){return function(C,B){let _=[],A=[],Z={};B.forEach(function($){$.forEach(function(X){if((X[D]||1)>1)A.push(X);else _[X[F]]=Math.max(_[X[F]]||0,X[u]||0,E)})}),C.forEach(function($,X){if(typeof $==="number")_[X]=$});for(let $=A.length-1;$>=0;$--){let X=A[$],J=X[D],Q=X[F],G=_[Q],H=typeof C[Q]==="number"?0:1;if(typeof G==="number"){for(let z=1;z<J;z++)if(G+=1+_[Q+z],typeof C[Q+z]!=="number")H++}else if(G=u==="desiredWidth"?X.desiredWidth-1:1,!Z[Q]||Z[Q]<G)Z[Q]=G;if(X[u]>G){let z=0;while(H>0&&X[u]>G){if(typeof C[Q+z]!=="number"){let Y=Math.round((X[u]-G)/H);G+=Y,_[Q+z]+=Y,H--}z++}}}Object.assign(C,_,Z);for(let $=0;$<C.length;$++)C[$]=Math.max(E,C[$]||0)}}});var KF=W((w6,YF)=>{var FD=bD(),j8=Xu(),Ju=zF();class zu extends Array{constructor(D){super();let u=j8.mergeOptions(D);if(Object.defineProperty(this,"options",{value:u,enumerable:u.debug}),u.debug){switch(typeof u.debug){case"boolean":FD.setDebugLevel(FD.WARN);break;case"number":FD.setDebugLevel(u.debug);break;case"string":FD.setDebugLevel(parseInt(u.debug,10));break;default:FD.setDebugLevel(FD.WARN),FD.warn(`Debug option is expected to be boolean, number, or string. Received a ${typeof u.debug}`)}Object.defineProperty(this,"messages",{get(){return FD.debugMessages()}})}}toString(){let D=this,u=this.options.head&&this.options.head.length;if(u){if(D=[this.options.head],this.length)D.push.apply(D,this)}else this.options.style.head=[];let F=Ju.makeTableLayout(D);F.forEach(function(C){C.forEach(function(B){B.mergeTableOptions(this.options,F)},this)},this),Ju.computeWidths(this.options.colWidths,F),Ju.computeHeights(this.options.rowHeights,F),F.forEach(function(C){C.forEach(function(B){B.init(this.options)},this)},this);let E=[];for(let C=0;C<F.length;C++){let B=F[C],_=this.options.rowHeights[C];if(C===0||!this.options.style.compact||C==1&&u)Hu(B,"top",E);for(let A=0;A<_;A++)Hu(B,A,E);if(C+1==F.length)Hu(B,"bottom",E)}return E.join(`
32
32
  `)}get width(){return this.toString().split(`
33
- `)[0].length}}Qu.reset=()=>uD.reset();function Xu(D,u,F){let E=[];D.forEach(function(B){E.push(B.draw(u))});let C=E.join("");if(C.length)F.push(C)}QF.exports=Qu});var jF=j((L6,T8)=>{T8.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:[" ██████£££ ","☺██████£££ ","☺██████£££ ","☺▓█████£££ ","☺▓█████£££ ","☺▒█████£££ ","☺▒█████£££ ","☺░█████£££ ","☺░█████£££ ","☺ █████£££ "," ☺█████£££ "," ☺█████£££ "," ☺▓████£££ "," ☺▓████£££ "," ☺▒████£££ "," ☺▒████£££ "," ☺░████£££ "," ☺░████£££ "," ☺ ████£££ "," ☺████£££ "," ☺████£££ "," ☺▓███£££ "," ☺▓███£££ "," ☺▒███£££ "," ☺▒███£££ "," ☺░███£££ "," ☺░███£££ "," ☺ ███£££ "," ☺███£££ "," ☺███£££ "," ☺▓██£££ "," ☺▓██£££ "," ☺▒██£££ "," ☺▒██£££ "," ☺░██£££ "," ☺░██£££ "," ☺ ██£££ "," ☺██£££ "," ☺██£££ "," ☺▓█£££ "," ☺▓█£££ "," ☺▒█£££ "," ☺▒█£££ "," ☺░█£££ "," ☺░█£££ "," ☺ █£££ "," ☺█£££ "," ☺█£££ "," ☺▓£££ "," ☺▓£££ "," ☺▒£££ "," ☺▒£££ "," ☺░£££ "," ☺░£££ "," ☺ £££ "," ☺£££ "," ☺£££ "," ☺▓££ "," ☺▓££ "," ☺▒££ "," ☺▒££ "," ☺░££ "," ☺░££ "," ☺ ££ "," ☺££ "," ☺££ "," ☺▓£ "," ☺▓£ "," ☺▒£ "," ☺▒£ "," ☺░£ "," ☺░£ "," ☺ £ "," ☺£ "," ☺£ "," ☺▓ "," ☺▓ "," ☺▒ "," ☺▒ "," ☺░ "," ☺░ "," ☺ "," ☺ &"," ☺ ☼&"," ☺ ☼ &"," ☺☼ &"," ☺☼ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & ","‼ & "," & "," & "," & ░ "," & ▒ "," & ▓ "," & £ "," & ░£ "," & ▒£ "," & ▓£ "," & ££ "," & ░££ "," & ▒££ ","& ▓££ ","& £££ "," ░£££ "," ▒£££ "," ▓£££ "," █£££ "," ░█£££ "," ▒█£££ "," ▓█£££ "," ██£££ "," ░██£££ "," ▒██£££ "," ▓██£££ "," ███£££ "," ░███£££ "," ▒███£££ "," ▓███£££ "," ████£££ "," ░████£££ "," ▒████£££ "," ▓████£££ "," █████£££ "," ░█████£££ "," ▒█████£££ "," ▓█████£££ "," ██████£££ "," ██████£££ "]}}});var Uu=j((I6,TF)=>{var gD=Object.assign({},jF()),WF=Object.keys(gD);Object.defineProperty(gD,"random",{get(){let D=Math.floor(Math.random()*WF.length),u=WF[D];return gD[u]}});TF.exports=gD});var SF=j((m6,wF)=>{wF.exports=()=>{return/[#*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-\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-\uDED8\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\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\uDD3C-\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-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\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\uDE70]|\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\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}});var D0=qD(eu(),1),{program:JE,createCommand:YE,createArgument:zE,createOption:KE,CommanderError:ME,InvalidArgumentError:UE,InvalidOptionArgumentError:RE,Command:u0,Argument:VE,Option:F0,Help:NE}=D0.default;var E0=(D=0)=>(u)=>`\x1B[${u+D}m`,C0=(D=0)=>(u)=>`\x1B[${38+D};5;${u}m`,B0=(D=0)=>(u,F,E)=>`\x1B[${38+D};2;${u};${F};${E}m`,w={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]}},WE=Object.keys(w.modifier),G3=Object.keys(w.color),X3=Object.keys(w.bgColor),TE=[...G3,...X3];function Q3(){let D=new Map;for(let[u,F]of Object.entries(w)){for(let[E,C]of Object.entries(F))w[E]={open:`\x1B[${C[0]}m`,close:`\x1B[${C[1]}m`},F[E]=w[E],D.set(C[0],C[1]);Object.defineProperty(w,u,{value:F,enumerable:!1})}return Object.defineProperty(w,"codes",{value:D,enumerable:!1}),w.color.close="\x1B[39m",w.bgColor.close="\x1B[49m",w.color.ansi=E0(),w.color.ansi256=C0(),w.color.ansi16m=B0(),w.bgColor.ansi=E0(10),w.bgColor.ansi256=C0(10),w.bgColor.ansi16m=B0(10),Object.defineProperties(w,{rgbToAnsi256:{value(u,F,E){if(u===F&&F===E){if(u<8)return 16;if(u>248)return 231;return Math.round((u-8)/247*24)+232}return 16+36*Math.round(u/255*5)+6*Math.round(F/255*5)+Math.round(E/255*5)},enumerable:!1},hexToRgb:{value(u){let F=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!F)return[0,0,0];let[E]=F;if(E.length===3)E=[...E].map((B)=>B+B).join("");let C=Number.parseInt(E,16);return[C>>16&255,C>>8&255,C&255]},enumerable:!1},hexToAnsi256:{value:(u)=>w.rgbToAnsi256(...w.hexToRgb(u)),enumerable:!1},ansi256ToAnsi:{value(u){if(u<8)return 30+u;if(u<16)return 90+(u-8);let F,E,C;if(u>=232)F=((u-232)*10+8)/255,E=F,C=F;else{u-=16;let A=u%36;F=Math.floor(u/36)/5,E=Math.floor(A/6)/5,C=A%6/5}let B=Math.max(F,E,C)*2;if(B===0)return 30;let _=30+(Math.round(C)<<2|Math.round(E)<<1|Math.round(F));if(B===2)_+=60;return _},enumerable:!1},rgbToAnsi:{value:(u,F,E)=>w.ansi256ToAnsi(w.rgbToAnsi256(u,F,E)),enumerable:!1},hexToAnsi:{value:(u)=>w.ansi256ToAnsi(w.hexToAnsi256(u)),enumerable:!1}}),w}var H3=Q3(),a=H3;import oD from"node:process";import J3 from"node:os";import _0 from"node:tty";function r(D,u=globalThis.Deno?globalThis.Deno.args:oD.argv){let F=D.startsWith("-")?"":D.length===1?"-":"--",E=u.indexOf(F+D),C=u.indexOf("--");return E!==-1&&(C===-1||E<C)}var{env:S}=oD,ID;if(r("no-color")||r("no-colors")||r("color=false")||r("color=never"))ID=0;else if(r("color")||r("colors")||r("color=true")||r("color=always"))ID=1;function Y3(){if("FORCE_COLOR"in S){if(S.FORCE_COLOR==="true")return 1;if(S.FORCE_COLOR==="false")return 0;return S.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(S.FORCE_COLOR,10),3)}}function z3(D){if(D===0)return!1;return{level:D,hasBasic:!0,has256:D>=2,has16m:D>=3}}function K3(D,{streamIsTTY:u,sniffFlags:F=!0}={}){let E=Y3();if(E!==void 0)ID=E;let C=F?ID:E;if(C===0)return 0;if(F){if(r("color=16m")||r("color=full")||r("color=truecolor"))return 3;if(r("color=256"))return 2}if("TF_BUILD"in S&&"AGENT_NAME"in S)return 1;if(D&&!u&&C===void 0)return 0;let B=C||0;if(S.TERM==="dumb")return B;if(oD.platform==="win32"){let _=J3.release().split(".");if(Number(_[0])>=10&&Number(_[2])>=10586)return Number(_[2])>=14931?3:2;return 1}if("CI"in S){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((_)=>(_ in S)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((_)=>(_ in S))||S.CI_NAME==="codeship")return 1;return B}if("TEAMCITY_VERSION"in S)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(S.TEAMCITY_VERSION)?1:0;if(S.COLORTERM==="truecolor")return 3;if(S.TERM==="xterm-kitty")return 3;if(S.TERM==="xterm-ghostty")return 3;if(S.TERM==="wezterm")return 3;if("TERM_PROGRAM"in S){let _=Number.parseInt((S.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(S.TERM_PROGRAM){case"iTerm.app":return _>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(S.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(S.TERM))return 1;if("COLORTERM"in S)return 1;return B}function A0(D,u={}){let F=K3(D,{streamIsTTY:D&&D.isTTY,...u});return z3(F)}var M3={stdout:A0({isTTY:_0.isatty(1)}),stderr:A0({isTTY:_0.isatty(2)})},$0=M3;function q0(D,u,F){let E=D.indexOf(u);if(E===-1)return D;let C=u.length,B=0,_="";do _+=D.slice(B,E)+u+F,B=E+C,E=D.indexOf(u,B);while(E!==-1);return _+=D.slice(B),_}function Z0(D,u,F,E){let C=0,B="";do{let _=D[E-1]==="\r";B+=D.slice(C,_?E-1:E)+u+(_?`\r
33
+ `)[0].length}}zu.reset=()=>FD.reset();function Hu(D,u,F){let E=[];D.forEach(function(B){E.push(B.draw(u))});let C=E.join("");if(C.length)F.push(C)}YF.exports=zu});var IF=W((r6,y8)=>{y8.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:[" ██████£££ ","☺██████£££ ","☺██████£££ ","☺▓█████£££ ","☺▓█████£££ ","☺▒█████£££ ","☺▒█████£££ ","☺░█████£££ ","☺░█████£££ ","☺ █████£££ "," ☺█████£££ "," ☺█████£££ "," ☺▓████£££ "," ☺▓████£££ "," ☺▒████£££ "," ☺▒████£££ "," ☺░████£££ "," ☺░████£££ "," ☺ ████£££ "," ☺████£££ "," ☺████£££ "," ☺▓███£££ "," ☺▓███£££ "," ☺▒███£££ "," ☺▒███£££ "," ☺░███£££ "," ☺░███£££ "," ☺ ███£££ "," ☺███£££ "," ☺███£££ "," ☺▓██£££ "," ☺▓██£££ "," ☺▒██£££ "," ☺▒██£££ "," ☺░██£££ "," ☺░██£££ "," ☺ ██£££ "," ☺██£££ "," ☺██£££ "," ☺▓█£££ "," ☺▓█£££ "," ☺▒█£££ "," ☺▒█£££ "," ☺░█£££ "," ☺░█£££ "," ☺ █£££ "," ☺█£££ "," ☺█£££ "," ☺▓£££ "," ☺▓£££ "," ☺▒£££ "," ☺▒£££ "," ☺░£££ "," ☺░£££ "," ☺ £££ "," ☺£££ "," ☺£££ "," ☺▓££ "," ☺▓££ "," ☺▒££ "," ☺▒££ "," ☺░££ "," ☺░££ "," ☺ ££ "," ☺££ "," ☺££ "," ☺▓£ "," ☺▓£ "," ☺▒£ "," ☺▒£ "," ☺░£ "," ☺░£ "," ☺ £ "," ☺£ "," ☺£ "," ☺▓ "," ☺▓ "," ☺▒ "," ☺▒ "," ☺░ "," ☺░ "," ☺ "," ☺ &"," ☺ ☼&"," ☺ ☼ &"," ☺☼ &"," ☺☼ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & ","‼ & "," & "," & "," & ░ "," & ▒ "," & ▓ "," & £ "," & ░£ "," & ▒£ "," & ▓£ "," & ££ "," & ░££ "," & ▒££ ","& ▓££ ","& £££ "," ░£££ "," ▒£££ "," ▓£££ "," █£££ "," ░█£££ "," ▒█£££ "," ▓█£££ "," ██£££ "," ░██£££ "," ▒██£££ "," ▓██£££ "," ███£££ "," ░███£££ "," ▒███£££ "," ▓███£££ "," ████£££ "," ░████£££ "," ▒████£££ "," ▓████£££ "," █████£££ "," ░█████£££ "," ▒█████£££ "," ▓█████£££ "," ██████£££ "," ██████£££ "]}}});var Nu=W((l6,OF)=>{var dD=Object.assign({},IF()),wF=Object.keys(dD);Object.defineProperty(dD,"random",{get(){let D=Math.floor(Math.random()*wF.length),u=wF[D];return dD[u]}});OF.exports=dD});var vF=W((BC,yF)=>{yF.exports=()=>{return/[#*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-\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-\uDED8\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\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\uDD3C-\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-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\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\uDE70]|\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\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}});var C0=ZD(E0(),1),{program:fE,createCommand:bE,createArgument:yE,createOption:vE,CommanderError:kE,InvalidArgumentError:xE,InvalidOptionArgumentError:hE,Command:B0,Argument:gE,Option:_0,Help:mE}=C0.default;var A0=(D=0)=>(u)=>`\x1B[${u+D}m`,$0=(D=0)=>(u)=>`\x1B[${38+D};5;${u}m`,X0=(D=0)=>(u,F,E)=>`\x1B[${38+D};2;${u};${F};${E}m`,b={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]}},dE=Object.keys(b.modifier),R3=Object.keys(b.color),U3=Object.keys(b.bgColor),pE=[...R3,...U3];function V3(){let D=new Map;for(let[u,F]of Object.entries(b)){for(let[E,C]of Object.entries(F))b[E]={open:`\x1B[${C[0]}m`,close:`\x1B[${C[1]}m`},F[E]=b[E],D.set(C[0],C[1]);Object.defineProperty(b,u,{value:F,enumerable:!1})}return Object.defineProperty(b,"codes",{value:D,enumerable:!1}),b.color.close="\x1B[39m",b.bgColor.close="\x1B[49m",b.color.ansi=A0(),b.color.ansi256=$0(),b.color.ansi16m=X0(),b.bgColor.ansi=A0(10),b.bgColor.ansi256=$0(10),b.bgColor.ansi16m=X0(10),Object.defineProperties(b,{rgbToAnsi256:{value(u,F,E){if(u===F&&F===E){if(u<8)return 16;if(u>248)return 231;return Math.round((u-8)/247*24)+232}return 16+36*Math.round(u/255*5)+6*Math.round(F/255*5)+Math.round(E/255*5)},enumerable:!1},hexToRgb:{value(u){let F=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!F)return[0,0,0];let[E]=F;if(E.length===3)E=[...E].map((B)=>B+B).join("");let C=Number.parseInt(E,16);return[C>>16&255,C>>8&255,C&255]},enumerable:!1},hexToAnsi256:{value:(u)=>b.rgbToAnsi256(...b.hexToRgb(u)),enumerable:!1},ansi256ToAnsi:{value(u){if(u<8)return 30+u;if(u<16)return 90+(u-8);let F,E,C;if(u>=232)F=((u-232)*10+8)/255,E=F,C=F;else{u-=16;let A=u%36;F=Math.floor(u/36)/5,E=Math.floor(A/6)/5,C=A%6/5}let B=Math.max(F,E,C)*2;if(B===0)return 30;let _=30+(Math.round(C)<<2|Math.round(E)<<1|Math.round(F));if(B===2)_+=60;return _},enumerable:!1},rgbToAnsi:{value:(u,F,E)=>b.ansi256ToAnsi(b.rgbToAnsi256(u,F,E)),enumerable:!1},hexToAnsi:{value:(u)=>b.ansi256ToAnsi(b.hexToAnsi256(u)),enumerable:!1}}),b}var N3=V3(),a=N3;import uu from"node:process";import j3 from"node:os";import Z0 from"node:tty";function n(D,u=globalThis.Deno?globalThis.Deno.args:uu.argv){let F=D.startsWith("-")?"":D.length===1?"-":"--",E=u.indexOf(F+D),C=u.indexOf("--");return E!==-1&&(C===-1||E<C)}var{env:y}=uu,PD;if(n("no-color")||n("no-colors")||n("color=false")||n("color=never"))PD=0;else if(n("color")||n("colors")||n("color=true")||n("color=always"))PD=1;function W3(){if("FORCE_COLOR"in y){if(y.FORCE_COLOR==="true")return 1;if(y.FORCE_COLOR==="false")return 0;return y.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(y.FORCE_COLOR,10),3)}}function T3(D){if(D===0)return!1;return{level:D,hasBasic:!0,has256:D>=2,has16m:D>=3}}function L3(D,{streamIsTTY:u,sniffFlags:F=!0}={}){let E=W3();if(E!==void 0)PD=E;let C=F?PD:E;if(C===0)return 0;if(F){if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2}if("TF_BUILD"in y&&"AGENT_NAME"in y)return 1;if(D&&!u&&C===void 0)return 0;let B=C||0;if(y.TERM==="dumb")return B;if(uu.platform==="win32"){let _=j3.release().split(".");if(Number(_[0])>=10&&Number(_[2])>=10586)return Number(_[2])>=14931?3:2;return 1}if("CI"in y){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((_)=>(_ in y)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((_)=>(_ in y))||y.CI_NAME==="codeship")return 1;return B}if("TEAMCITY_VERSION"in y)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(y.TEAMCITY_VERSION)?1:0;if(y.COLORTERM==="truecolor")return 3;if(y.TERM==="xterm-kitty")return 3;if(y.TERM==="xterm-ghostty")return 3;if(y.TERM==="wezterm")return 3;if("TERM_PROGRAM"in y){let _=Number.parseInt((y.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(y.TERM_PROGRAM){case"iTerm.app":return _>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(y.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(y.TERM))return 1;if("COLORTERM"in y)return 1;return B}function q0(D,u={}){let F=L3(D,{streamIsTTY:D&&D.isTTY,...u});return T3(F)}var I3={stdout:q0({isTTY:Z0.isatty(1)}),stderr:q0({isTTY:Z0.isatty(2)})},G0=I3;function Q0(D,u,F){let E=D.indexOf(u);if(E===-1)return D;let C=u.length,B=0,_="";do _+=D.slice(B,E)+u+F,B=E+C,E=D.indexOf(u,B);while(E!==-1);return _+=D.slice(B),_}function J0(D,u,F,E){let C=0,B="";do{let _=D[E-1]==="\r";B+=D.slice(C,_?E-1:E)+u+(_?`\r
34
34
  `:`
35
35
  `)+F,C=E+1,E=D.indexOf(`
36
- `,C)}while(E!==-1);return B+=D.slice(C),B}var{stdout:G0,stderr:X0}=$0,tD=Symbol("GENERATOR"),ZD=Symbol("STYLER"),KD=Symbol("IS_EMPTY"),Q0=["ansi","ansi","ansi256","ansi16m"],GD=Object.create(null),U3=(D,u={})=>{if(u.level&&!(Number.isInteger(u.level)&&u.level>=0&&u.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let F=G0?G0.level:0;D.level=u.level===void 0?F:u.level};var R3=(D)=>{let u=(...F)=>F.join(" ");return U3(u,D),Object.setPrototypeOf(u,MD.prototype),u};function MD(D){return R3(D)}Object.setPrototypeOf(MD.prototype,Function.prototype);for(let[D,u]of Object.entries(a))GD[D]={get(){let F=PD(this,Du(u.open,u.close,this[ZD]),this[KD]);return Object.defineProperty(this,D,{value:F}),F}};GD.visible={get(){let D=PD(this,this[ZD],!0);return Object.defineProperty(this,"visible",{value:D}),D}};var eD=(D,u,F,...E)=>{if(D==="rgb"){if(u==="ansi16m")return a[F].ansi16m(...E);if(u==="ansi256")return a[F].ansi256(a.rgbToAnsi256(...E));return a[F].ansi(a.rgbToAnsi(...E))}if(D==="hex")return eD("rgb",u,F,...a.hexToRgb(...E));return a[F][D](...E)},V3=["rgb","hex","ansi256"];for(let D of V3){GD[D]={get(){let{level:F}=this;return function(...E){let C=Du(eD(D,Q0[F],"color",...E),a.color.close,this[ZD]);return PD(this,C,this[KD])}}};let u="bg"+D[0].toUpperCase()+D.slice(1);GD[u]={get(){let{level:F}=this;return function(...E){let C=Du(eD(D,Q0[F],"bgColor",...E),a.bgColor.close,this[ZD]);return PD(this,C,this[KD])}}}}var N3=Object.defineProperties(()=>{},{...GD,level:{enumerable:!0,get(){return this[tD].level},set(D){this[tD].level=D}}}),Du=(D,u,F)=>{let E,C;if(F===void 0)E=D,C=u;else E=F.openAll+D,C=u+F.closeAll;return{open:D,close:u,openAll:E,closeAll:C,parent:F}},PD=(D,u,F)=>{let E=(...C)=>j3(E,C.length===1?""+C[0]:C.join(" "));return Object.setPrototypeOf(E,N3),E[tD]=D,E[ZD]=u,E[KD]=F,E},j3=(D,u)=>{if(D.level<=0||!u)return D[KD]?"":u;let F=D[ZD];if(F===void 0)return u;let{openAll:E,closeAll:C}=F;if(u.includes("\x1B"))while(F!==void 0)u=q0(u,F.close,F.open),F=F.parent;let B=u.indexOf(`
37
- `);if(B!==-1)u=Z0(u,C,E,B);return E+u+C};Object.defineProperties(MD.prototype,GD);var W3=MD(),vE=MD({level:X0?X0.level:0});var Q=W3;import{createRequire as uE}from"module";import{promises as OD}from"fs";import T3 from"os";import H0 from"path";var L3="https://api.xevol.com",J0=H0.join(T3.homedir(),".xevol"),uu=H0.join(J0,"config.json");async function I3(){await OD.mkdir(J0,{recursive:!0})}async function L(){try{let D=await OD.readFile(uu,"utf8");return JSON.parse(D)}catch(D){if(D.code==="ENOENT")return null;if(D instanceof SyntaxError)return console.error("Warning: config.json is corrupt. Run `xevol login` to fix it."),null;throw D}}async function P3(D){await I3();let u=JSON.stringify(D,null,2)+`
38
- `;await OD.writeFile(uu,u,{encoding:"utf8",mode:384})}async function Fu(D){let F={...await L()??{},...D};return await P3(F),F}async function Y0(){try{await OD.unlink(uu)}catch(D){if(D.code!=="ENOENT")throw D}}function b(D){return process.env.XEVOL_API_URL??D?.apiUrl??L3}function f(D,u){let F=u??process.env.XEVOL_TOKEN??D?.token;if(F&&!u&&!process.env.XEVOL_TOKEN&&D?.expiresAt){let E=new Date(D.expiresAt).getTime();if(Number.isFinite(E)&&Date.now()>=E)return{token:void 0,expired:!0}}return{token:F,expired:!1}}function y(D,u){if(D.token)return D.token;return(typeof u.optsWithGlobals==="function"?u.optsWithGlobals():u.parent?.opts()??{}).token}function O3(D,u,F){let E=F??b(),C=new URL(D,E);if(u)for(let[B,_]of Object.entries(u)){if(_===void 0||_===null)continue;C.searchParams.set(B,String(_))}return C}function w3(D,u){let F=u?.trim();if(!F)return D;let E=new Headers(D);return E.set("Authorization",`Bearer ${F}`),E}async function S3(D){let u=D.headers.get("content-type")??"";try{if(u.includes("application/json")){let F=await D.json();return F.message??F.error??JSON.stringify(F)}return await D.text()}catch{return null}}async function I(D,{method:u,query:F,body:E,headers:C,token:B,apiUrl:_}={}){let A=O3(D,F,_),q=w3(C??{},B);if(E!==void 0&&!(E instanceof FormData))q.set("Content-Type","application/json");let $;try{$=await fetch(A,{method:u??(E===void 0?"GET":"POST"),headers:q,body:E===void 0?void 0:E instanceof FormData?E:JSON.stringify(E),signal:AbortSignal.timeout(30000)})}catch(H){if(H.name==="TimeoutError")throw Error(`Request timed out after 30s. Is the API at ${A.origin} reachable?`);throw Error(`Network error: could not reach ${A.origin}. Check your connection or API status.`)}if(!$.ok){let H=await S3($),X=H?`API ${$.status}: ${H}`:`API ${$.status} ${$.statusText}`;throw Error(X)}if(($.headers.get("content-type")??"").includes("application/json"))return await $.json();return await $.text()}var xF=qD(HF(),1);import mD from"node:process";import NF from"node:process";import xD from"node:process";var Y8=(D,u,F,E)=>{if(F==="length"||F==="prototype")return;if(F==="arguments"||F==="caller")return;let C=Object.getOwnPropertyDescriptor(D,F),B=Object.getOwnPropertyDescriptor(u,F);if(!z8(C,B)&&E)return;Object.defineProperty(D,F,B)},z8=function(D,u){return D===void 0||D.configurable||D.writable===u.writable&&D.enumerable===u.enumerable&&D.configurable===u.configurable&&(D.writable||D.value===u.value)},K8=(D,u)=>{let F=Object.getPrototypeOf(u);if(F===Object.getPrototypeOf(D))return;Object.setPrototypeOf(D,F)},M8=(D,u)=>`/* Wrapped ${D}*/
39
- ${u}`,U8=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),R8=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),V8=(D,u,F)=>{let E=F===""?"":`with ${F.trim()}() `,C=M8.bind(null,E,u.toString());Object.defineProperty(C,"name",R8);let{writable:B,enumerable:_,configurable:A}=U8;Object.defineProperty(D,"toString",{value:C,writable:B,enumerable:_,configurable:A})};function Hu(D,u,{ignoreNonConfigurable:F=!1}={}){let{name:E}=D;for(let C of Reflect.ownKeys(u))Y8(D,u,C,F);return K8(D,u),V8(D,u,E),D}var vD=new WeakMap,JF=(D,u={})=>{if(typeof D!=="function")throw TypeError("Expected a function");let F,E=0,C=D.displayName||D.name||"<anonymous>",B=function(..._){if(vD.set(B,++E),E===1)F=D.apply(this,_),D=void 0;else if(u.throw===!0)throw Error(`Function \`${C}\` can only be called once`);return F};return Hu(B,D),vD.set(B,E),B};JF.callCount=(D)=>{if(!vD.has(D))throw Error(`The given function \`${D.name}\` is not wrapped by the \`onetime\` package`);return vD.get(D)};var YF=JF;var _D=[];_D.push("SIGHUP","SIGINT","SIGTERM");if(process.platform!=="win32")_D.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");if(process.platform==="linux")_D.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var kD=(D)=>!!D&&typeof D==="object"&&typeof D.removeListener==="function"&&typeof D.emit==="function"&&typeof D.reallyExit==="function"&&typeof D.listeners==="function"&&typeof D.kill==="function"&&typeof D.pid==="number"&&typeof D.on==="function",Ju=Symbol.for("signal-exit emitter"),Yu=globalThis,N8=Object.defineProperty.bind(Object);class zF{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(Yu[Ju])return Yu[Ju];N8(Yu,Ju,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(D,u){this.listeners[D].push(u)}removeListener(D,u){let F=this.listeners[D],E=F.indexOf(u);if(E===-1)return;if(E===0&&F.length===1)F.length=0;else F.splice(E,1)}emit(D,u,F){if(this.emitted[D])return!1;this.emitted[D]=!0;let E=!1;for(let C of this.listeners[D])E=C(u,F)===!0||E;if(D==="exit")E=this.emit("afterExit",u,F)||E;return E}}class Ku{}var j8=(D)=>{return{onExit(u,F){return D.onExit(u,F)},load(){return D.load()},unload(){return D.unload()}}};class KF extends Ku{onExit(){return()=>{}}load(){}unload(){}}class MF extends Ku{#_=zu.platform==="win32"?"SIGINT":"SIGHUP";#F=new zF;#D;#C;#X;#u={};#B=!1;constructor(D){super();this.#D=D,this.#u={};for(let u of _D)this.#u[u]=()=>{let F=this.#D.listeners(u),{count:E}=this.#F,C=D;if(typeof C.__signal_exit_emitter__==="object"&&typeof C.__signal_exit_emitter__.count==="number")E+=C.__signal_exit_emitter__.count;if(F.length===E){this.unload();let B=this.#F.emit("exit",null,u),_=u==="SIGHUP"?this.#_:u;if(!B)D.kill(D.pid,_)}};this.#X=D.reallyExit,this.#C=D.emit}onExit(D,u){if(!kD(this.#D))return()=>{};if(this.#B===!1)this.load();let F=u?.alwaysLast?"afterExit":"exit";return this.#F.on(F,D),()=>{if(this.#F.removeListener(F,D),this.#F.listeners.exit.length===0&&this.#F.listeners.afterExit.length===0)this.unload()}}load(){if(this.#B)return;this.#B=!0,this.#F.count+=1;for(let D of _D)try{let u=this.#u[D];if(u)this.#D.on(D,u)}catch(u){}this.#D.emit=(D,...u)=>{return this.#Q(D,...u)},this.#D.reallyExit=(D)=>{return this.#E(D)}}unload(){if(!this.#B)return;this.#B=!1,_D.forEach((D)=>{let u=this.#u[D];if(!u)throw Error("Listener not defined for signal: "+D);try{this.#D.removeListener(D,u)}catch(F){}}),this.#D.emit=this.#C,this.#D.reallyExit=this.#X,this.#F.count-=1}#E(D){if(!kD(this.#D))return 0;return this.#D.exitCode=D||0,this.#F.emit("exit",this.#D.exitCode,null),this.#X.call(this.#D,this.#D.exitCode)}#Q(D,...u){let F=this.#C;if(D==="exit"&&kD(this.#D)){if(typeof u[0]==="number")this.#D.exitCode=u[0];let E=F.call(this.#D,D,...u);return this.#F.emit("exit",this.#D.exitCode,null),E}else return F.call(this.#D,D,...u)}}var zu=globalThis.process,{onExit:UF,load:z6,unload:K6}=j8(kD(zu)?new MF(zu):new KF);var RF=xD.stderr.isTTY?xD.stderr:xD.stdout.isTTY?xD.stdout:void 0,W8=RF?YF(()=>{UF(()=>{RF.write("\x1B[?25h")},{alwaysLast:!0})}):()=>{},VF=W8;var hD=!1,HD={};HD.show=(D=NF.stderr)=>{if(!D.isTTY)return;hD=!1,D.write("\x1B[?25h")};HD.hide=(D=NF.stderr)=>{if(!D.isTTY)return;VF(),hD=!0,D.write("\x1B[?25l")};HD.toggle=(D,u)=>{if(D!==void 0)hD=D;if(hD)HD.show(u);else HD.hide(u)};var Mu=HD;var WD=qD(Uu(),1);import s from"node:process";function Ru(){if(s.platform!=="win32")return s.env.TERM!=="linux";return Boolean(s.env.CI)||Boolean(s.env.WT_SESSION)||Boolean(s.env.TERMINUS_SUBLIME)||s.env.ConEmuTask==="{cmd::Cmder}"||s.env.TERM_PROGRAM==="Terminus-Sublime"||s.env.TERM_PROGRAM==="vscode"||s.env.TERM==="xterm-256color"||s.env.TERM==="alacritty"||s.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var L8={info:Q.blue("ℹ"),success:Q.green("✔"),warning:Q.yellow("⚠"),error:Q.red("✖")},I8={info:Q.blue("i"),success:Q.green("√"),warning:Q.yellow("‼"),error:Q.red("×")},P8=Ru()?L8:I8,ND=P8;function Vu({onlyFirst:D=!1}={}){return new RegExp("(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]",D?void 0:"g")}var O8=Vu();function jD(D){if(typeof D!=="string")throw TypeError(`Expected a \`string\`, got \`${typeof D}\``);return D.replace(O8,"")}function LF(D){return D===161||D===164||D===167||D===168||D===170||D===173||D===174||D>=176&&D<=180||D>=182&&D<=186||D>=188&&D<=191||D===198||D===208||D===215||D===216||D>=222&&D<=225||D===230||D>=232&&D<=234||D===236||D===237||D===240||D===242||D===243||D>=247&&D<=250||D===252||D===254||D===257||D===273||D===275||D===283||D===294||D===295||D===299||D>=305&&D<=307||D===312||D>=319&&D<=322||D===324||D>=328&&D<=331||D===333||D===338||D===339||D===358||D===359||D===363||D===462||D===464||D===466||D===468||D===470||D===472||D===474||D===476||D===593||D===609||D===708||D===711||D>=713&&D<=715||D===717||D===720||D>=728&&D<=731||D===733||D===735||D>=768&&D<=879||D>=913&&D<=929||D>=931&&D<=937||D>=945&&D<=961||D>=963&&D<=969||D===1025||D>=1040&&D<=1103||D===1105||D===8208||D>=8211&&D<=8214||D===8216||D===8217||D===8220||D===8221||D>=8224&&D<=8226||D>=8228&&D<=8231||D===8240||D===8242||D===8243||D===8245||D===8251||D===8254||D===8308||D===8319||D>=8321&&D<=8324||D===8364||D===8451||D===8453||D===8457||D===8467||D===8470||D===8481||D===8482||D===8486||D===8491||D===8531||D===8532||D>=8539&&D<=8542||D>=8544&&D<=8555||D>=8560&&D<=8569||D===8585||D>=8592&&D<=8601||D===8632||D===8633||D===8658||D===8660||D===8679||D===8704||D===8706||D===8707||D===8711||D===8712||D===8715||D===8719||D===8721||D===8725||D===8730||D>=8733&&D<=8736||D===8739||D===8741||D>=8743&&D<=8748||D===8750||D>=8756&&D<=8759||D===8764||D===8765||D===8776||D===8780||D===8786||D===8800||D===8801||D>=8804&&D<=8807||D===8810||D===8811||D===8814||D===8815||D===8834||D===8835||D===8838||D===8839||D===8853||D===8857||D===8869||D===8895||D===8978||D>=9312&&D<=9449||D>=9451&&D<=9547||D>=9552&&D<=9587||D>=9600&&D<=9615||D>=9618&&D<=9621||D===9632||D===9633||D>=9635&&D<=9641||D===9650||D===9651||D===9654||D===9655||D===9660||D===9661||D===9664||D===9665||D>=9670&&D<=9672||D===9675||D>=9678&&D<=9681||D>=9698&&D<=9701||D===9711||D===9733||D===9734||D===9737||D===9742||D===9743||D===9756||D===9758||D===9792||D===9794||D===9824||D===9825||D>=9827&&D<=9829||D>=9831&&D<=9834||D===9836||D===9837||D===9839||D===9886||D===9887||D===9919||D>=9926&&D<=9933||D>=9935&&D<=9939||D>=9941&&D<=9953||D===9955||D===9960||D===9961||D>=9963&&D<=9969||D===9972||D>=9974&&D<=9977||D===9979||D===9980||D===9982||D===9983||D===10045||D>=10102&&D<=10111||D>=11094&&D<=11097||D>=12872&&D<=12879||D>=57344&&D<=63743||D>=65024&&D<=65039||D===65533||D>=127232&&D<=127242||D>=127248&&D<=127277||D>=127280&&D<=127337||D>=127344&&D<=127373||D===127375||D===127376||D>=127387&&D<=127404||D>=917760&&D<=917999||D>=983040&&D<=1048573||D>=1048576&&D<=1114109}function IF(D){return D===12288||D>=65281&&D<=65376||D>=65504&&D<=65510}function PF(D){return D>=4352&&D<=4447||D===8986||D===8987||D===9001||D===9002||D>=9193&&D<=9196||D===9200||D===9203||D===9725||D===9726||D===9748||D===9749||D>=9776&&D<=9783||D>=9800&&D<=9811||D===9855||D>=9866&&D<=9871||D===9875||D===9889||D===9898||D===9899||D===9917||D===9918||D===9924||D===9925||D===9934||D===9940||D===9962||D===9970||D===9971||D===9973||D===9978||D===9981||D===9989||D===9994||D===9995||D===10024||D===10060||D===10062||D>=10067&&D<=10069||D===10071||D>=10133&&D<=10135||D===10160||D===10175||D===11035||D===11036||D===11088||D===11093||D>=11904&&D<=11929||D>=11931&&D<=12019||D>=12032&&D<=12245||D>=12272&&D<=12287||D>=12289&&D<=12350||D>=12353&&D<=12438||D>=12441&&D<=12543||D>=12549&&D<=12591||D>=12593&&D<=12686||D>=12688&&D<=12773||D>=12783&&D<=12830||D>=12832&&D<=12871||D>=12880&&D<=42124||D>=42128&&D<=42182||D>=43360&&D<=43388||D>=44032&&D<=55203||D>=63744&&D<=64255||D>=65040&&D<=65049||D>=65072&&D<=65106||D>=65108&&D<=65126||D>=65128&&D<=65131||D>=94176&&D<=94180||D>=94192&&D<=94198||D>=94208&&D<=101589||D>=101631&&D<=101662||D>=101760&&D<=101874||D>=110576&&D<=110579||D>=110581&&D<=110587||D===110589||D===110590||D>=110592&&D<=110882||D===110898||D>=110928&&D<=110930||D===110933||D>=110948&&D<=110951||D>=110960&&D<=111355||D>=119552&&D<=119638||D>=119648&&D<=119670||D===126980||D===127183||D===127374||D>=127377&&D<=127386||D>=127488&&D<=127490||D>=127504&&D<=127547||D>=127552&&D<=127560||D===127568||D===127569||D>=127584&&D<=127589||D>=127744&&D<=127776||D>=127789&&D<=127797||D>=127799&&D<=127868||D>=127870&&D<=127891||D>=127904&&D<=127946||D>=127951&&D<=127955||D>=127968&&D<=127984||D===127988||D>=127992&&D<=128062||D===128064||D>=128066&&D<=128252||D>=128255&&D<=128317||D>=128331&&D<=128334||D>=128336&&D<=128359||D===128378||D===128405||D===128406||D===128420||D>=128507&&D<=128591||D>=128640&&D<=128709||D===128716||D>=128720&&D<=128722||D>=128725&&D<=128728||D>=128732&&D<=128735||D===128747||D===128748||D>=128756&&D<=128764||D>=128992&&D<=129003||D===129008||D>=129292&&D<=129338||D>=129340&&D<=129349||D>=129351&&D<=129535||D>=129648&&D<=129660||D>=129664&&D<=129674||D>=129678&&D<=129734||D===129736||D>=129741&&D<=129756||D>=129759&&D<=129770||D>=129775&&D<=129784||D>=131072&&D<=196605||D>=196608&&D<=262141}function w8(D){if(!Number.isSafeInteger(D))throw TypeError(`Expected a code point, got \`${typeof D}\`.`)}function OF(D,{ambiguousAsWide:u=!1}={}){if(w8(D),IF(D)||PF(D)||u&&LF(D))return 2;return 1}var bF=qD(SF(),1),S8=new Intl.Segmenter,b8=/^\p{Default_Ignorable_Code_Point}$/u;function Nu(D,u={}){if(typeof D!=="string"||D.length===0)return 0;let{ambiguousIsNarrow:F=!0,countAnsiEscapeCodes:E=!1}=u;if(!E)D=jD(D);if(D.length===0)return 0;let C=0,B={ambiguousAsWide:!F};for(let{segment:_}of S8.segment(D)){let A=_.codePointAt(0);if(A<=31||A>=127&&A<=159)continue;if(A>=8203&&A<=8207||A===65279)continue;if(A>=768&&A<=879||A>=6832&&A<=6911||A>=7616&&A<=7679||A>=8400&&A<=8447||A>=65056&&A<=65071)continue;if(A>=55296&&A<=57343)continue;if(A>=65024&&A<=65039)continue;if(b8.test(_))continue;if(bF.default().test(_)){C+=2;continue}C+=OF(A,B)}return C}function ju({stream:D=process.stdout}={}){return Boolean(D&&D.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}import fF from"node:process";function Wu(){let{env:D}=fF,{TERM:u,TERM_PROGRAM:F}=D;if(fF.platform!=="win32")return u!=="linux";return Boolean(D.WT_SESSION)||Boolean(D.TERMINUS_SUBLIME)||D.ConEmuTask==="{cmd::Cmder}"||F==="Terminus-Sublime"||F==="vscode"||u==="xterm-256color"||u==="alacritty"||u==="rxvt-unicode"||u==="rxvt-unicode-256color"||D.TERMINAL_EMULATOR==="JetBrains-JediTerm"}import t from"node:process";var f8=3;class yF{#_=0;start(){if(this.#_++,this.#_===1)this.#F()}stop(){if(this.#_<=0)throw Error("`stop` called more times than `start`");if(this.#_--,this.#_===0)this.#D()}#F(){if(t.platform==="win32"||!t.stdin.isTTY)return;t.stdin.setRawMode(!0),t.stdin.on("data",this.#C),t.stdin.resume()}#D(){if(!t.stdin.isTTY)return;t.stdin.off("data",this.#C),t.stdin.pause(),t.stdin.setRawMode(!1)}#C(D){if(D[0]===f8)t.emit("SIGINT")}}var y8=new yF,Tu=y8;var v8=qD(Uu(),1);class vF{#_=0;#F=!1;#D=0;#C=-1;#X=0;#u;#B;#E;#Q;#J;#q;#Z;#G;#Y;#A;#$;color;constructor(D){if(typeof D==="string")D={text:D};if(this.#u={color:"cyan",stream:mD.stderr,discardStdin:!0,hideCursor:!0,...D},this.color=this.#u.color,this.spinner=this.#u.spinner,this.#J=this.#u.interval,this.#E=this.#u.stream,this.#q=typeof this.#u.isEnabled==="boolean"?this.#u.isEnabled:ju({stream:this.#E}),this.#Z=typeof this.#u.isSilent==="boolean"?this.#u.isSilent:!1,this.text=this.#u.text,this.prefixText=this.#u.prefixText,this.suffixText=this.#u.suffixText,this.indent=this.#u.indent,mD.env.NODE_ENV==="test")this._stream=this.#E,this._isEnabled=this.#q,Object.defineProperty(this,"_linesToClear",{get(){return this.#_},set(u){this.#_=u}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#C}}),Object.defineProperty(this,"_lineCount",{get(){return this.#D}})}get indent(){return this.#G}set indent(D=0){if(!(D>=0&&Number.isInteger(D)))throw Error("The `indent` option must be an integer from 0 and up");this.#G=D,this.#H()}get interval(){return this.#J??this.#B.interval??100}get spinner(){return this.#B}set spinner(D){if(this.#C=-1,this.#J=void 0,typeof D==="object"){if(D.frames===void 0)throw Error("The given spinner must have a `frames` property");this.#B=D}else if(!Wu())this.#B=WD.default.line;else if(D===void 0)this.#B=WD.default.dots;else if(D!=="default"&&WD.default[D])this.#B=WD.default[D];else throw Error(`There is no built-in spinner named '${D}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return this.#Y}set text(D=""){this.#Y=D,this.#H()}get prefixText(){return this.#A}set prefixText(D=""){this.#A=D,this.#H()}get suffixText(){return this.#$}set suffixText(D=""){this.#$=D,this.#H()}get isSpinning(){return this.#Q!==void 0}#z(D=this.#A,u=" "){if(typeof D==="string"&&D!=="")return D+u;if(typeof D==="function")return D()+u;return""}#K(D=this.#$,u=" "){if(typeof D==="string"&&D!=="")return u+D;if(typeof D==="function")return u+D();return""}#H(){let D=this.#E.columns??80,u=this.#z(this.#A,"-"),F=this.#K(this.#$,"-"),E=" ".repeat(this.#G)+u+"--"+this.#Y+"--"+F;this.#D=0;for(let C of jD(E).split(`
40
- `))this.#D+=Math.max(1,Math.ceil(Nu(C,{countAnsiEscapeCodes:!0})/D))}get isEnabled(){return this.#q&&!this.#Z}set isEnabled(D){if(typeof D!=="boolean")throw TypeError("The `isEnabled` option must be a boolean");this.#q=D}get isSilent(){return this.#Z}set isSilent(D){if(typeof D!=="boolean")throw TypeError("The `isSilent` option must be a boolean");this.#Z=D}frame(){let D=Date.now();if(this.#C===-1||D-this.#X>=this.interval)this.#C=++this.#C%this.#B.frames.length,this.#X=D;let{frames:u}=this.#B,F=u[this.#C];if(this.color)F=Q[this.color](F);let E=typeof this.#A==="string"&&this.#A!==""?this.#A+" ":"",C=typeof this.text==="string"?" "+this.text:"",B=typeof this.#$==="string"&&this.#$!==""?" "+this.#$:"";return E+F+C+B}clear(){if(!this.#q||!this.#E.isTTY)return this;this.#E.cursorTo(0);for(let D=0;D<this.#_;D++){if(D>0)this.#E.moveCursor(0,-1);this.#E.clearLine(1)}if(this.#G||this.lastIndent!==this.#G)this.#E.cursorTo(this.#G);return this.lastIndent=this.#G,this.#_=0,this}render(){if(this.#Z)return this;return this.clear(),this.#E.write(this.frame()),this.#_=this.#D,this}start(D){if(D)this.text=D;if(this.#Z)return this;if(!this.#q){if(this.text)this.#E.write(`- ${this.text}
41
- `);return this}if(this.isSpinning)return this;if(this.#u.hideCursor)Mu.hide(this.#E);if(this.#u.discardStdin&&mD.stdin.isTTY)this.#F=!0,Tu.start();return this.render(),this.#Q=setInterval(this.render.bind(this),this.interval),this}stop(){if(!this.#q)return this;if(clearInterval(this.#Q),this.#Q=void 0,this.#C=0,this.clear(),this.#u.hideCursor)Mu.show(this.#E);if(this.#u.discardStdin&&mD.stdin.isTTY&&this.#F)Tu.stop(),this.#F=!1;return this}succeed(D){return this.stopAndPersist({symbol:ND.success,text:D})}fail(D){return this.stopAndPersist({symbol:ND.error,text:D})}warn(D){return this.stopAndPersist({symbol:ND.warning,text:D})}info(D){return this.stopAndPersist({symbol:ND.info,text:D})}stopAndPersist(D={}){if(this.#Z)return this;let u=D.prefixText??this.#A,F=this.#z(u," "),E=D.symbol??" ",C=D.text??this.text,_=typeof C==="string"?(E?" ":"")+C:"",A=D.suffixText??this.#$,q=this.#K(A," "),$=F+E+_+q+`
42
- `;return this.stop(),this.#E.write($),this}}function Lu(D){return new vF(D)}function P(D){console.log(JSON.stringify(D,null,2))}function JD(D){if(D===null||D===void 0||D==="")return"—";if(typeof D==="string")return D;if(!Number.isFinite(D))return"—";let u=Math.max(0,Math.floor(D)),F=Math.floor(u/3600),E=Math.floor(u%3600/60),C=u%60,B=F>0?String(E).padStart(2,"0"):String(E),_=String(C).padStart(2,"0");return F>0?`${F}:${B}:${_}`:`${B}:${_}`}function hF(D){if(D===null||D===void 0||D==="")return"—";if(typeof D==="string"){let _=D.replace(/^00:/,"");return _=_.replace(/^0(\d)/,"$1"),_}if(!Number.isFinite(D))return"—";let u=Math.max(0,Math.floor(D)),F=Math.floor(u/3600),E=Math.floor(u%3600/60),C=u%60,B=String(C).padStart(2,"0");if(F>0)return`${F}:${String(E).padStart(2,"0")}:${B}`;return`${E}:${B}`}function kF(D){return D.replace(/\x1B\[[0-9;]*[a-zA-Z]/g,"")}function gF(D,u){let F=process.stdout.columns||80,E=[],C=String(u.startIndex+D.length).length,B=2,_=2;for(let A=0;A<D.length;A++){let q=D[A],$=String(u.startIndex+A).padStart(C," "),Z=" ".repeat(2),H=" ".repeat(2+C+2),X=q.created,G=X.length,J=F-2-C-2-2-G,Y=q.title;if(Y.length>J)Y=Y.slice(0,Math.max(0,J-1))+"…";let z=Y.length<J?Y+" ".repeat(J-Y.length):Y,M=`${Z}${Q.dim($)} ${Q.bold.white(z)} ${Q.dim(X)}`,K=[];if(q.channel&&q.channel!=="—")K.push(q.channel);if(q.duration&&q.duration!=="—")K.push(q.duration);let U=q.status.toLowerCase();if(U&&U!=="complete"&&U!=="completed")if(U.includes("pending")||U.includes("processing"))K.push(Q.yellow(q.status));else if(U.includes("error")||U.includes("failed"))K.push(Q.red(q.status));else K.push(q.status);let R=Q.dim(K.filter(Boolean).join(" · ")),V=Q.dim(q.id),x=kF(R).length,O=kF(V).length,v=H.length,T=Math.max(1,F-v-x-O),k=`${H}${R}${" ".repeat(T)}${V}`;if(E.push(M),E.push(k),A<D.length-1)E.push("")}return E.join(`
43
- `)}function mF(D,u){let F=new xF.default({head:D,style:{head:["cyan"],border:["gray"]},wordWrap:!0});for(let E of u)F.push(E);return F.toString()}function YD(D){let F=Math.min(D??process.stdout.columns??40,100),E=Math.max(20,F);return"─".repeat(E)}function d(D){return Lu({text:D,spinner:"dots"}).start()}function h(D,u){for(let F of u){let E=D[F];if(typeof E==="string"&&E.length>0)return E}return}function e(D,u){for(let F of u){let E=D[F];if(typeof E==="string"&&E.length>0)return E;if(typeof E==="number")return String(E)}return"—"}function i(D,u){let F=D[u];if(typeof F==="string")return F;let E=D.user?.[u];if(typeof E==="string")return E;let C=D.session?.[u];if(typeof C==="string")return C;return}function Iu(D,u){let F=D[u];if(typeof F==="number"&&Number.isFinite(F))return F;if(typeof F==="string"){let E=Number(F);if(Number.isFinite(E))return E}return}function cF(D){return h(D,["id","transcriptionId"])??D.transcription?.id?.toString()??D.data?.id?.toString()}function cD(D){return h(D,["status","state"])}import{promises as Pu}from"fs";import k8 from"os";import dF from"path";var pF=dF.join(k8.homedir(),".xevol","jobs");async function x8(){await Pu.mkdir(pF,{recursive:!0})}function lF(D){return dF.join(pF,`${D}.json`)}async function l(D){await x8(),D.updatedAt=new Date().toISOString();let u=JSON.stringify(D,null,2)+`
44
- `;await Pu.writeFile(lF(D.transcriptionId),u,{encoding:"utf8",mode:384})}async function rF(D){try{let u=await Pu.readFile(lF(D),"utf8");return JSON.parse(u)}catch(u){if(u.code==="ENOENT")return null;throw u}}async function*iF(D,u){let F=new URL(D,u.apiUrl),E={Accept:"text/event-stream",Authorization:`Bearer ${u.token.trim()}`};if(u.lastEventId)E["Last-Event-ID"]=u.lastEventId;let C=await fetch(F,{method:"GET",headers:E,signal:u.signal});if(!C.ok){let X=await C.text().catch(()=>"");throw Error(`SSE ${C.status}: ${X||C.statusText}`)}if((C.headers.get("content-type")??"").includes("application/json")){yield{event:"complete",data:await C.text()};return}if(!C.body)throw Error("SSE: no response body (streaming not supported)");let _=C.body.getReader(),A=new TextDecoder,q="",$,Z,H=[];try{while(!0){let{done:X,value:G}=await _.read();if(X){if(H.length>0)yield{id:$,event:Z,data:H.join(`
45
- `)};break}q+=A.decode(G,{stream:!0});let J=q.split(`
46
- `);q=J.pop()??"";for(let Y of J){if(Y===""){if(H.length>0)yield{id:$,event:Z,data:H.join(`
47
- `)};$=void 0,Z=void 0,H=[];continue}if(Y.startsWith(":"))continue;let z=Y.indexOf(":"),M,K;if(z===-1)M=Y,K="";else if(M=Y.slice(0,z),K=Y.slice(z+1),K.startsWith(" "))K=K.slice(1);switch(M){case"id":$=K;break;case"event":Z=K;break;case"data":H.push(K);break}}}}finally{_.releaseLock()}}var aF=30000;async function ED(D,u,F,E={}){if(E.header)console.log(Q.bold.cyan(`
48
- ─── ${E.header} ───`));let C=E.lastEventId,B="",_=new AbortController,A=setTimeout(()=>_.abort(),aF),q=()=>{clearTimeout(A),A=setTimeout(()=>_.abort(),aF)},$=iF(`/spikes/stream/${D}`,{token:u,apiUrl:F,lastEventId:E.lastEventId,signal:_.signal});try{for await(let Z of $){if(q(),Z.id)C=Z.id;if(E.json){P(Z);continue}if(Z.event==="complete"){try{let H=JSON.parse(Z.data),X=H.data??H.content??H.markdown??"";B+=X,process.stdout.write(X)}catch{B+=Z.data,process.stdout.write(Z.data)}continue}if(Z.event==="chunk"||Z.event==="delta"||!Z.event){try{let H=JSON.parse(Z.data),X=H.text??H.content??H.chunk??H.delta??Z.data;B+=X,process.stdout.write(X)}catch{B+=Z.data,process.stdout.write(Z.data)}continue}if(Z.event==="done"||Z.event==="end"){if(Z.data&&Z.data!=="[DONE]")try{let H=JSON.parse(Z.data),X=H.content??H.text;if(X&&!B)B=X,process.stdout.write(X)}catch{}continue}if(Z.event==="error"){console.error(Q.red(`
49
- Stream error: ${Z.data}`));continue}}if(B&&!B.endsWith(`
36
+ `,C)}while(E!==-1);return B+=D.slice(C),B}var{stdout:H0,stderr:z0}=G0,Fu=Symbol("GENERATOR"),qD=Symbol("STYLER"),MD=Symbol("IS_EMPTY"),Y0=["ansi","ansi","ansi256","ansi16m"],GD=Object.create(null),w3=(D,u={})=>{if(u.level&&!(Number.isInteger(u.level)&&u.level>=0&&u.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let F=H0?H0.level:0;D.level=u.level===void 0?F:u.level};var O3=(D)=>{let u=(...F)=>F.join(" ");return w3(u,D),Object.setPrototypeOf(u,RD.prototype),u};function RD(D){return O3(D)}Object.setPrototypeOf(RD.prototype,Function.prototype);for(let[D,u]of Object.entries(a))GD[D]={get(){let F=SD(this,Cu(u.open,u.close,this[qD]),this[MD]);return Object.defineProperty(this,D,{value:F}),F}};GD.visible={get(){let D=SD(this,this[qD],!0);return Object.defineProperty(this,"visible",{value:D}),D}};var Eu=(D,u,F,...E)=>{if(D==="rgb"){if(u==="ansi16m")return a[F].ansi16m(...E);if(u==="ansi256")return a[F].ansi256(a.rgbToAnsi256(...E));return a[F].ansi(a.rgbToAnsi(...E))}if(D==="hex")return Eu("rgb",u,F,...a.hexToRgb(...E));return a[F][D](...E)},P3=["rgb","hex","ansi256"];for(let D of P3){GD[D]={get(){let{level:F}=this;return function(...E){let C=Cu(Eu(D,Y0[F],"color",...E),a.color.close,this[qD]);return SD(this,C,this[MD])}}};let u="bg"+D[0].toUpperCase()+D.slice(1);GD[u]={get(){let{level:F}=this;return function(...E){let C=Cu(Eu(D,Y0[F],"bgColor",...E),a.bgColor.close,this[qD]);return SD(this,C,this[MD])}}}}var S3=Object.defineProperties(()=>{},{...GD,level:{enumerable:!0,get(){return this[Fu].level},set(D){this[Fu].level=D}}}),Cu=(D,u,F)=>{let E,C;if(F===void 0)E=D,C=u;else E=F.openAll+D,C=u+F.closeAll;return{open:D,close:u,openAll:E,closeAll:C,parent:F}},SD=(D,u,F)=>{let E=(...C)=>f3(E,C.length===1?""+C[0]:C.join(" "));return Object.setPrototypeOf(E,S3),E[Fu]=D,E[qD]=u,E[MD]=F,E},f3=(D,u)=>{if(D.level<=0||!u)return D[MD]?"":u;let F=D[qD];if(F===void 0)return u;let{openAll:E,closeAll:C}=F;if(u.includes("\x1B"))while(F!==void 0)u=Q0(u,F.close,F.open),F=F.parent;let B=u.indexOf(`
37
+ `);if(B!==-1)u=J0(u,C,E,B);return E+u+C};Object.defineProperties(RD.prototype,GD);var b3=RD(),D6=RD({level:z0?z0.level:0});var q=b3;import{createRequire as ME}from"module";import{readFile as i8}from"node:fs/promises";import{promises as fD}from"fs";import y3 from"os";import K0 from"path";var v3="https://api.xevol.com",M0=K0.join(y3.homedir(),".xevol"),Bu=K0.join(M0,"config.json");async function k3(){await fD.mkdir(M0,{recursive:!0})}async function j(){try{let D=await fD.readFile(Bu,"utf8");return JSON.parse(D)}catch(D){if(D.code==="ENOENT")return null;if(D instanceof SyntaxError)return console.error("Warning: config.json is corrupt. Run `xevol login` to fix it."),null;throw D}}async function x3(D){await k3();let u=JSON.stringify(D,null,2)+`
38
+ `;await fD.writeFile(Bu,u,{encoding:"utf8",mode:384})}async function UD(D){let F={...await j()??{},...D};return await x3(F),F}async function R0(){try{await fD.unlink(Bu)}catch(D){if(D.code!=="ENOENT")throw D}}function I(D){return process.env.XEVOL_API_URL??D?.apiUrl??v3}function O(D,u){let F=u??process.env.XEVOL_TOKEN??D?.token;if(F&&!u&&!process.env.XEVOL_TOKEN&&D?.expiresAt){let E=new Date(D.expiresAt).getTime();if(Number.isFinite(E)&&Date.now()>=E)return{token:void 0,expired:!0}}return{token:F,expired:!1}}function P(D,u){if(D.token)return D.token;return(typeof u.optsWithGlobals==="function"?u.optsWithGlobals():u.parent?.opts()??{}).token}function h3(D,u,F){let E=F??I(),C=new URL(D,E);if(u)for(let[B,_]of Object.entries(u)){if(_===void 0||_===null)continue;C.searchParams.set(B,String(_))}return C}function g3(D,u){let F=u?.trim();if(!F)return D;let E=new Headers(D);return E.set("Authorization",`Bearer ${F}`),E}async function m3(D){let u=D.headers.get("content-type")??"";try{if(u.includes("application/json")){let F=await D.json();return F.message??F.error??JSON.stringify(F)}return await D.text()}catch{return null}}async function L(D,{method:u,query:F,body:E,headers:C,token:B,apiUrl:_}={}){let A=await j(),Z=h3(D,F,_),$=new Headers(g3(C??{},B));if(A?.workspaceId&&!$.has("X-Workspace-Id"))$.set("X-Workspace-Id",A.workspaceId);if(E!==void 0&&!(E instanceof FormData))$.set("Content-Type","application/json");let X;try{X=await fetch(Z,{method:u??(E===void 0?"GET":"POST"),headers:$,body:E===void 0?void 0:E instanceof FormData?E:JSON.stringify(E),signal:AbortSignal.timeout(30000)})}catch(Q){if(Q.name==="TimeoutError")throw Error(`Request timed out after 30s. Is the API at ${Z.origin} reachable?`);throw Error(`Network error: could not reach ${Z.origin}. Check your connection or API status.`)}if(!X.ok){let Q=await m3(X),G=Q?`API ${X.status}: ${Q}`:`API ${X.status} ${X.statusText}`;throw Error(G)}if((X.headers.get("content-type")??"").includes("application/json"))return await X.json();return await X.text()}var cF=ZD(KF(),1);import pD from"node:process";import LF from"node:process";import mD from"node:process";var W8=(D,u,F,E)=>{if(F==="length"||F==="prototype")return;if(F==="arguments"||F==="caller")return;let C=Object.getOwnPropertyDescriptor(D,F),B=Object.getOwnPropertyDescriptor(u,F);if(!T8(C,B)&&E)return;Object.defineProperty(D,F,B)},T8=function(D,u){return D===void 0||D.configurable||D.writable===u.writable&&D.enumerable===u.enumerable&&D.configurable===u.configurable&&(D.writable||D.value===u.value)},L8=(D,u)=>{let F=Object.getPrototypeOf(u);if(F===Object.getPrototypeOf(D))return;Object.setPrototypeOf(D,F)},I8=(D,u)=>`/* Wrapped ${D}*/
39
+ ${u}`,w8=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),O8=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),P8=(D,u,F)=>{let E=F===""?"":`with ${F.trim()}() `,C=I8.bind(null,E,u.toString());Object.defineProperty(C,"name",O8);let{writable:B,enumerable:_,configurable:A}=w8;Object.defineProperty(D,"toString",{value:C,writable:B,enumerable:_,configurable:A})};function Yu(D,u,{ignoreNonConfigurable:F=!1}={}){let{name:E}=D;for(let C of Reflect.ownKeys(u))W8(D,u,C,F);return L8(D,u),P8(D,u,E),D}var hD=new WeakMap,MF=(D,u={})=>{if(typeof D!=="function")throw TypeError("Expected a function");let F,E=0,C=D.displayName||D.name||"<anonymous>",B=function(..._){if(hD.set(B,++E),E===1)F=D.apply(this,_),D=void 0;else if(u.throw===!0)throw Error(`Function \`${C}\` can only be called once`);return F};return Yu(B,D),hD.set(B,E),B};MF.callCount=(D)=>{if(!hD.has(D))throw Error(`The given function \`${D.name}\` is not wrapped by the \`onetime\` package`);return hD.get(D)};var RF=MF;var AD=[];AD.push("SIGHUP","SIGINT","SIGTERM");if(process.platform!=="win32")AD.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");if(process.platform==="linux")AD.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var gD=(D)=>!!D&&typeof D==="object"&&typeof D.removeListener==="function"&&typeof D.emit==="function"&&typeof D.reallyExit==="function"&&typeof D.listeners==="function"&&typeof D.kill==="function"&&typeof D.pid==="number"&&typeof D.on==="function",Ku=Symbol.for("signal-exit emitter"),Mu=globalThis,S8=Object.defineProperty.bind(Object);class UF{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(Mu[Ku])return Mu[Ku];S8(Mu,Ku,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(D,u){this.listeners[D].push(u)}removeListener(D,u){let F=this.listeners[D],E=F.indexOf(u);if(E===-1)return;if(E===0&&F.length===1)F.length=0;else F.splice(E,1)}emit(D,u,F){if(this.emitted[D])return!1;this.emitted[D]=!0;let E=!1;for(let C of this.listeners[D])E=C(u,F)===!0||E;if(D==="exit")E=this.emit("afterExit",u,F)||E;return E}}class Uu{}var f8=(D)=>{return{onExit(u,F){return D.onExit(u,F)},load(){return D.load()},unload(){return D.unload()}}};class VF extends Uu{onExit(){return()=>{}}load(){}unload(){}}class NF extends Uu{#_=Ru.platform==="win32"?"SIGINT":"SIGHUP";#F=new UF;#D;#C;#G;#u={};#B=!1;constructor(D){super();this.#D=D,this.#u={};for(let u of AD)this.#u[u]=()=>{let F=this.#D.listeners(u),{count:E}=this.#F,C=D;if(typeof C.__signal_exit_emitter__==="object"&&typeof C.__signal_exit_emitter__.count==="number")E+=C.__signal_exit_emitter__.count;if(F.length===E){this.unload();let B=this.#F.emit("exit",null,u),_=u==="SIGHUP"?this.#_:u;if(!B)D.kill(D.pid,_)}};this.#G=D.reallyExit,this.#C=D.emit}onExit(D,u){if(!gD(this.#D))return()=>{};if(this.#B===!1)this.load();let F=u?.alwaysLast?"afterExit":"exit";return this.#F.on(F,D),()=>{if(this.#F.removeListener(F,D),this.#F.listeners.exit.length===0&&this.#F.listeners.afterExit.length===0)this.unload()}}load(){if(this.#B)return;this.#B=!0,this.#F.count+=1;for(let D of AD)try{let u=this.#u[D];if(u)this.#D.on(D,u)}catch(u){}this.#D.emit=(D,...u)=>{return this.#Q(D,...u)},this.#D.reallyExit=(D)=>{return this.#E(D)}}unload(){if(!this.#B)return;this.#B=!1,AD.forEach((D)=>{let u=this.#u[D];if(!u)throw Error("Listener not defined for signal: "+D);try{this.#D.removeListener(D,u)}catch(F){}}),this.#D.emit=this.#C,this.#D.reallyExit=this.#G,this.#F.count-=1}#E(D){if(!gD(this.#D))return 0;return this.#D.exitCode=D||0,this.#F.emit("exit",this.#D.exitCode,null),this.#G.call(this.#D,this.#D.exitCode)}#Q(D,...u){let F=this.#C;if(D==="exit"&&gD(this.#D)){if(typeof u[0]==="number")this.#D.exitCode=u[0];let E=F.call(this.#D,D,...u);return this.#F.emit("exit",this.#D.exitCode,null),E}else return F.call(this.#D,D,...u)}}var Ru=globalThis.process,{onExit:jF,load:y6,unload:v6}=f8(gD(Ru)?new NF(Ru):new VF);var WF=mD.stderr.isTTY?mD.stderr:mD.stdout.isTTY?mD.stdout:void 0,b8=WF?RF(()=>{jF(()=>{WF.write("\x1B[?25h")},{alwaysLast:!0})}):()=>{},TF=b8;var cD=!1,HD={};HD.show=(D=LF.stderr)=>{if(!D.isTTY)return;cD=!1,D.write("\x1B[?25h")};HD.hide=(D=LF.stderr)=>{if(!D.isTTY)return;TF(),cD=!0,D.write("\x1B[?25l")};HD.toggle=(D,u)=>{if(D!==void 0)cD=D;if(cD)HD.show(u);else HD.hide(u)};var Vu=HD;var LD=ZD(Nu(),1);import o from"node:process";function ju(){if(o.platform!=="win32")return o.env.TERM!=="linux";return Boolean(o.env.CI)||Boolean(o.env.WT_SESSION)||Boolean(o.env.TERMINUS_SUBLIME)||o.env.ConEmuTask==="{cmd::Cmder}"||o.env.TERM_PROGRAM==="Terminus-Sublime"||o.env.TERM_PROGRAM==="vscode"||o.env.TERM==="xterm-256color"||o.env.TERM==="alacritty"||o.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var v8={info:q.blue("ℹ"),success:q.green("✔"),warning:q.yellow("⚠"),error:q.red("✖")},k8={info:q.blue("i"),success:q.green("√"),warning:q.yellow("‼"),error:q.red("×")},x8=ju()?v8:k8,WD=x8;function Wu({onlyFirst:D=!1}={}){return new RegExp("(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]",D?void 0:"g")}var h8=Wu();function TD(D){if(typeof D!=="string")throw TypeError(`Expected a \`string\`, got \`${typeof D}\``);return D.replace(h8,"")}function PF(D){return D===161||D===164||D===167||D===168||D===170||D===173||D===174||D>=176&&D<=180||D>=182&&D<=186||D>=188&&D<=191||D===198||D===208||D===215||D===216||D>=222&&D<=225||D===230||D>=232&&D<=234||D===236||D===237||D===240||D===242||D===243||D>=247&&D<=250||D===252||D===254||D===257||D===273||D===275||D===283||D===294||D===295||D===299||D>=305&&D<=307||D===312||D>=319&&D<=322||D===324||D>=328&&D<=331||D===333||D===338||D===339||D===358||D===359||D===363||D===462||D===464||D===466||D===468||D===470||D===472||D===474||D===476||D===593||D===609||D===708||D===711||D>=713&&D<=715||D===717||D===720||D>=728&&D<=731||D===733||D===735||D>=768&&D<=879||D>=913&&D<=929||D>=931&&D<=937||D>=945&&D<=961||D>=963&&D<=969||D===1025||D>=1040&&D<=1103||D===1105||D===8208||D>=8211&&D<=8214||D===8216||D===8217||D===8220||D===8221||D>=8224&&D<=8226||D>=8228&&D<=8231||D===8240||D===8242||D===8243||D===8245||D===8251||D===8254||D===8308||D===8319||D>=8321&&D<=8324||D===8364||D===8451||D===8453||D===8457||D===8467||D===8470||D===8481||D===8482||D===8486||D===8491||D===8531||D===8532||D>=8539&&D<=8542||D>=8544&&D<=8555||D>=8560&&D<=8569||D===8585||D>=8592&&D<=8601||D===8632||D===8633||D===8658||D===8660||D===8679||D===8704||D===8706||D===8707||D===8711||D===8712||D===8715||D===8719||D===8721||D===8725||D===8730||D>=8733&&D<=8736||D===8739||D===8741||D>=8743&&D<=8748||D===8750||D>=8756&&D<=8759||D===8764||D===8765||D===8776||D===8780||D===8786||D===8800||D===8801||D>=8804&&D<=8807||D===8810||D===8811||D===8814||D===8815||D===8834||D===8835||D===8838||D===8839||D===8853||D===8857||D===8869||D===8895||D===8978||D>=9312&&D<=9449||D>=9451&&D<=9547||D>=9552&&D<=9587||D>=9600&&D<=9615||D>=9618&&D<=9621||D===9632||D===9633||D>=9635&&D<=9641||D===9650||D===9651||D===9654||D===9655||D===9660||D===9661||D===9664||D===9665||D>=9670&&D<=9672||D===9675||D>=9678&&D<=9681||D>=9698&&D<=9701||D===9711||D===9733||D===9734||D===9737||D===9742||D===9743||D===9756||D===9758||D===9792||D===9794||D===9824||D===9825||D>=9827&&D<=9829||D>=9831&&D<=9834||D===9836||D===9837||D===9839||D===9886||D===9887||D===9919||D>=9926&&D<=9933||D>=9935&&D<=9939||D>=9941&&D<=9953||D===9955||D===9960||D===9961||D>=9963&&D<=9969||D===9972||D>=9974&&D<=9977||D===9979||D===9980||D===9982||D===9983||D===10045||D>=10102&&D<=10111||D>=11094&&D<=11097||D>=12872&&D<=12879||D>=57344&&D<=63743||D>=65024&&D<=65039||D===65533||D>=127232&&D<=127242||D>=127248&&D<=127277||D>=127280&&D<=127337||D>=127344&&D<=127373||D===127375||D===127376||D>=127387&&D<=127404||D>=917760&&D<=917999||D>=983040&&D<=1048573||D>=1048576&&D<=1114109}function SF(D){return D===12288||D>=65281&&D<=65376||D>=65504&&D<=65510}function fF(D){return D>=4352&&D<=4447||D===8986||D===8987||D===9001||D===9002||D>=9193&&D<=9196||D===9200||D===9203||D===9725||D===9726||D===9748||D===9749||D>=9776&&D<=9783||D>=9800&&D<=9811||D===9855||D>=9866&&D<=9871||D===9875||D===9889||D===9898||D===9899||D===9917||D===9918||D===9924||D===9925||D===9934||D===9940||D===9962||D===9970||D===9971||D===9973||D===9978||D===9981||D===9989||D===9994||D===9995||D===10024||D===10060||D===10062||D>=10067&&D<=10069||D===10071||D>=10133&&D<=10135||D===10160||D===10175||D===11035||D===11036||D===11088||D===11093||D>=11904&&D<=11929||D>=11931&&D<=12019||D>=12032&&D<=12245||D>=12272&&D<=12287||D>=12289&&D<=12350||D>=12353&&D<=12438||D>=12441&&D<=12543||D>=12549&&D<=12591||D>=12593&&D<=12686||D>=12688&&D<=12773||D>=12783&&D<=12830||D>=12832&&D<=12871||D>=12880&&D<=42124||D>=42128&&D<=42182||D>=43360&&D<=43388||D>=44032&&D<=55203||D>=63744&&D<=64255||D>=65040&&D<=65049||D>=65072&&D<=65106||D>=65108&&D<=65126||D>=65128&&D<=65131||D>=94176&&D<=94180||D>=94192&&D<=94198||D>=94208&&D<=101589||D>=101631&&D<=101662||D>=101760&&D<=101874||D>=110576&&D<=110579||D>=110581&&D<=110587||D===110589||D===110590||D>=110592&&D<=110882||D===110898||D>=110928&&D<=110930||D===110933||D>=110948&&D<=110951||D>=110960&&D<=111355||D>=119552&&D<=119638||D>=119648&&D<=119670||D===126980||D===127183||D===127374||D>=127377&&D<=127386||D>=127488&&D<=127490||D>=127504&&D<=127547||D>=127552&&D<=127560||D===127568||D===127569||D>=127584&&D<=127589||D>=127744&&D<=127776||D>=127789&&D<=127797||D>=127799&&D<=127868||D>=127870&&D<=127891||D>=127904&&D<=127946||D>=127951&&D<=127955||D>=127968&&D<=127984||D===127988||D>=127992&&D<=128062||D===128064||D>=128066&&D<=128252||D>=128255&&D<=128317||D>=128331&&D<=128334||D>=128336&&D<=128359||D===128378||D===128405||D===128406||D===128420||D>=128507&&D<=128591||D>=128640&&D<=128709||D===128716||D>=128720&&D<=128722||D>=128725&&D<=128728||D>=128732&&D<=128735||D===128747||D===128748||D>=128756&&D<=128764||D>=128992&&D<=129003||D===129008||D>=129292&&D<=129338||D>=129340&&D<=129349||D>=129351&&D<=129535||D>=129648&&D<=129660||D>=129664&&D<=129674||D>=129678&&D<=129734||D===129736||D>=129741&&D<=129756||D>=129759&&D<=129770||D>=129775&&D<=129784||D>=131072&&D<=196605||D>=196608&&D<=262141}function g8(D){if(!Number.isSafeInteger(D))throw TypeError(`Expected a code point, got \`${typeof D}\`.`)}function bF(D,{ambiguousAsWide:u=!1}={}){if(g8(D),SF(D)||fF(D)||u&&PF(D))return 2;return 1}var kF=ZD(vF(),1),m8=new Intl.Segmenter,c8=/^\p{Default_Ignorable_Code_Point}$/u;function Tu(D,u={}){if(typeof D!=="string"||D.length===0)return 0;let{ambiguousIsNarrow:F=!0,countAnsiEscapeCodes:E=!1}=u;if(!E)D=TD(D);if(D.length===0)return 0;let C=0,B={ambiguousAsWide:!F};for(let{segment:_}of m8.segment(D)){let A=_.codePointAt(0);if(A<=31||A>=127&&A<=159)continue;if(A>=8203&&A<=8207||A===65279)continue;if(A>=768&&A<=879||A>=6832&&A<=6911||A>=7616&&A<=7679||A>=8400&&A<=8447||A>=65056&&A<=65071)continue;if(A>=55296&&A<=57343)continue;if(A>=65024&&A<=65039)continue;if(c8.test(_))continue;if(kF.default().test(_)){C+=2;continue}C+=bF(A,B)}return C}function Lu({stream:D=process.stdout}={}){return Boolean(D&&D.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}import xF from"node:process";function Iu(){let{env:D}=xF,{TERM:u,TERM_PROGRAM:F}=D;if(xF.platform!=="win32")return u!=="linux";return Boolean(D.WT_SESSION)||Boolean(D.TERMINUS_SUBLIME)||D.ConEmuTask==="{cmd::Cmder}"||F==="Terminus-Sublime"||F==="vscode"||u==="xterm-256color"||u==="alacritty"||u==="rxvt-unicode"||u==="rxvt-unicode-256color"||D.TERMINAL_EMULATOR==="JetBrains-JediTerm"}import e from"node:process";var d8=3;class hF{#_=0;start(){if(this.#_++,this.#_===1)this.#F()}stop(){if(this.#_<=0)throw Error("`stop` called more times than `start`");if(this.#_--,this.#_===0)this.#D()}#F(){if(e.platform==="win32"||!e.stdin.isTTY)return;e.stdin.setRawMode(!0),e.stdin.on("data",this.#C),e.stdin.resume()}#D(){if(!e.stdin.isTTY)return;e.stdin.off("data",this.#C),e.stdin.pause(),e.stdin.setRawMode(!1)}#C(D){if(D[0]===d8)e.emit("SIGINT")}}var p8=new hF,wu=p8;var r8=ZD(Nu(),1);class gF{#_=0;#F=!1;#D=0;#C=-1;#G=0;#u;#B;#E;#Q;#H;#X;#Z;#q;#z;#A;#$;color;constructor(D){if(typeof D==="string")D={text:D};if(this.#u={color:"cyan",stream:pD.stderr,discardStdin:!0,hideCursor:!0,...D},this.color=this.#u.color,this.spinner=this.#u.spinner,this.#H=this.#u.interval,this.#E=this.#u.stream,this.#X=typeof this.#u.isEnabled==="boolean"?this.#u.isEnabled:Lu({stream:this.#E}),this.#Z=typeof this.#u.isSilent==="boolean"?this.#u.isSilent:!1,this.text=this.#u.text,this.prefixText=this.#u.prefixText,this.suffixText=this.#u.suffixText,this.indent=this.#u.indent,pD.env.NODE_ENV==="test")this._stream=this.#E,this._isEnabled=this.#X,Object.defineProperty(this,"_linesToClear",{get(){return this.#_},set(u){this.#_=u}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#C}}),Object.defineProperty(this,"_lineCount",{get(){return this.#D}})}get indent(){return this.#q}set indent(D=0){if(!(D>=0&&Number.isInteger(D)))throw Error("The `indent` option must be an integer from 0 and up");this.#q=D,this.#J()}get interval(){return this.#H??this.#B.interval??100}get spinner(){return this.#B}set spinner(D){if(this.#C=-1,this.#H=void 0,typeof D==="object"){if(D.frames===void 0)throw Error("The given spinner must have a `frames` property");this.#B=D}else if(!Iu())this.#B=LD.default.line;else if(D===void 0)this.#B=LD.default.dots;else if(D!=="default"&&LD.default[D])this.#B=LD.default[D];else throw Error(`There is no built-in spinner named '${D}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return this.#z}set text(D=""){this.#z=D,this.#J()}get prefixText(){return this.#A}set prefixText(D=""){this.#A=D,this.#J()}get suffixText(){return this.#$}set suffixText(D=""){this.#$=D,this.#J()}get isSpinning(){return this.#Q!==void 0}#Y(D=this.#A,u=" "){if(typeof D==="string"&&D!=="")return D+u;if(typeof D==="function")return D()+u;return""}#K(D=this.#$,u=" "){if(typeof D==="string"&&D!=="")return u+D;if(typeof D==="function")return u+D();return""}#J(){let D=this.#E.columns??80,u=this.#Y(this.#A,"-"),F=this.#K(this.#$,"-"),E=" ".repeat(this.#q)+u+"--"+this.#z+"--"+F;this.#D=0;for(let C of TD(E).split(`
40
+ `))this.#D+=Math.max(1,Math.ceil(Tu(C,{countAnsiEscapeCodes:!0})/D))}get isEnabled(){return this.#X&&!this.#Z}set isEnabled(D){if(typeof D!=="boolean")throw TypeError("The `isEnabled` option must be a boolean");this.#X=D}get isSilent(){return this.#Z}set isSilent(D){if(typeof D!=="boolean")throw TypeError("The `isSilent` option must be a boolean");this.#Z=D}frame(){let D=Date.now();if(this.#C===-1||D-this.#G>=this.interval)this.#C=++this.#C%this.#B.frames.length,this.#G=D;let{frames:u}=this.#B,F=u[this.#C];if(this.color)F=q[this.color](F);let E=typeof this.#A==="string"&&this.#A!==""?this.#A+" ":"",C=typeof this.text==="string"?" "+this.text:"",B=typeof this.#$==="string"&&this.#$!==""?" "+this.#$:"";return E+F+C+B}clear(){if(!this.#X||!this.#E.isTTY)return this;this.#E.cursorTo(0);for(let D=0;D<this.#_;D++){if(D>0)this.#E.moveCursor(0,-1);this.#E.clearLine(1)}if(this.#q||this.lastIndent!==this.#q)this.#E.cursorTo(this.#q);return this.lastIndent=this.#q,this.#_=0,this}render(){if(this.#Z)return this;return this.clear(),this.#E.write(this.frame()),this.#_=this.#D,this}start(D){if(D)this.text=D;if(this.#Z)return this;if(!this.#X){if(this.text)this.#E.write(`- ${this.text}
41
+ `);return this}if(this.isSpinning)return this;if(this.#u.hideCursor)Vu.hide(this.#E);if(this.#u.discardStdin&&pD.stdin.isTTY)this.#F=!0,wu.start();return this.render(),this.#Q=setInterval(this.render.bind(this),this.interval),this}stop(){if(!this.#X)return this;if(clearInterval(this.#Q),this.#Q=void 0,this.#C=0,this.clear(),this.#u.hideCursor)Vu.show(this.#E);if(this.#u.discardStdin&&pD.stdin.isTTY&&this.#F)wu.stop(),this.#F=!1;return this}succeed(D){return this.stopAndPersist({symbol:WD.success,text:D})}fail(D){return this.stopAndPersist({symbol:WD.error,text:D})}warn(D){return this.stopAndPersist({symbol:WD.warning,text:D})}info(D){return this.stopAndPersist({symbol:WD.info,text:D})}stopAndPersist(D={}){if(this.#Z)return this;let u=D.prefixText??this.#A,F=this.#Y(u," "),E=D.symbol??" ",C=D.text??this.text,_=typeof C==="string"?(E?" ":"")+C:"",A=D.suffixText??this.#$,Z=this.#K(A," "),$=F+E+_+Z+`
42
+ `;return this.stop(),this.#E.write($),this}}function Ou(D){return new gF(D)}function w(D){console.log(JSON.stringify(D,null,2))}function zD(D){if(D===null||D===void 0||D==="")return"—";if(typeof D==="string")return D;if(!Number.isFinite(D))return"—";let u=Math.max(0,Math.floor(D)),F=Math.floor(u/3600),E=Math.floor(u%3600/60),C=u%60,B=F>0?String(E).padStart(2,"0"):String(E),_=String(C).padStart(2,"0");return F>0?`${F}:${B}:${_}`:`${B}:${_}`}function dF(D){if(D===null||D===void 0||D==="")return"—";if(typeof D==="string"){let _=D.replace(/^00:/,"");return _=_.replace(/^0(\d)/,"$1"),_}if(!Number.isFinite(D))return"—";let u=Math.max(0,Math.floor(D)),F=Math.floor(u/3600),E=Math.floor(u%3600/60),C=u%60,B=String(C).padStart(2,"0");if(F>0)return`${F}:${String(E).padStart(2,"0")}:${B}`;return`${E}:${B}`}function mF(D){return D.replace(/\x1B\[[0-9;]*[a-zA-Z]/g,"")}function pF(D,u){let F=process.stdout.columns||80,E=[],C=String(u.startIndex+D.length).length,B=2,_=2;for(let A=0;A<D.length;A++){let Z=D[A],$=String(u.startIndex+A).padStart(C," "),X=" ".repeat(2),J=" ".repeat(2+C+2),Q=Z.created,G=Q.length,H=F-2-C-2-2-G,z=Z.title;if(z.length>H)z=z.slice(0,Math.max(0,H-1))+"…";let Y=z.length<H?z+" ".repeat(H-z.length):z,M=`${X}${q.dim($)} ${q.bold.white(Y)} ${q.dim(Q)}`,R=[];if(Z.channel&&Z.channel!=="—")R.push(Z.channel);if(Z.duration&&Z.duration!=="—")R.push(Z.duration);let K=Z.status.toLowerCase();if(K&&K!=="complete"&&K!=="completed")if(K.includes("pending")||K.includes("processing"))R.push(q.yellow(Z.status));else if(K.includes("error")||K.includes("failed"))R.push(q.red(Z.status));else R.push(Z.status);let U=q.dim(R.filter(Boolean).join(" · ")),V=q.dim(Z.id),m=mF(U).length,f=mF(V).length,k=J.length,S=Math.max(1,F-k-m-f),h=`${J}${U}${" ".repeat(S)}${V}`;if(E.push(M),E.push(h),A<D.length-1)E.push("")}return E.join(`
43
+ `)}function rD(D,u){let F=new cF.default({head:D,style:{head:["cyan"],border:["gray"]},wordWrap:!0});for(let E of u)F.push(E);return F.toString()}function YD(D){let F=Math.min(D??process.stdout.columns??40,100),E=Math.max(20,F);return"─".repeat(E)}function x(D){return Ou({text:D,spinner:"dots"}).start()}function c(D,u){for(let F of u){let E=D[F];if(typeof E==="string"&&E.length>0)return E}return}function DD(D,u){for(let F of u){let E=D[F];if(typeof E==="string"&&E.length>0)return E;if(typeof E==="number")return String(E)}return"—"}function i(D,u){let F=D[u];if(typeof F==="string")return F;let E=D.user?.[u];if(typeof E==="string")return E;let C=D.session?.[u];if(typeof C==="string")return C;return}function Pu(D,u){let F=D[u];if(typeof F==="number"&&Number.isFinite(F))return F;if(typeof F==="string"){let E=Number(F);if(Number.isFinite(E))return E}return}function Su(D){return c(D,["id","transcriptionId"])??D.transcription?.id?.toString()??D.data?.id?.toString()}function ID(D){return c(D,["status","state"])}import{promises as fu}from"fs";import l8 from"os";import rF from"path";var lF=rF.join(l8.homedir(),".xevol","jobs");async function n8(){await fu.mkdir(lF,{recursive:!0})}function nF(D){return rF.join(lF,`${D}.json`)}async function l(D){await n8(),D.updatedAt=new Date().toISOString();let u=JSON.stringify(D,null,2)+`
44
+ `;await fu.writeFile(nF(D.transcriptionId),u,{encoding:"utf8",mode:384})}async function iF(D){try{let u=await fu.readFile(nF(D),"utf8");return JSON.parse(u)}catch(u){if(u.code==="ENOENT")return null;throw u}}async function*aF(D,u){let F=new URL(D,u.apiUrl),E={Accept:"text/event-stream",Authorization:`Bearer ${u.token.trim()}`};if(u.lastEventId)E["Last-Event-ID"]=u.lastEventId;let C=await fetch(F,{method:"GET",headers:E,signal:u.signal});if(!C.ok){let Q=await C.text().catch(()=>"");throw Error(`SSE ${C.status}: ${Q||C.statusText}`)}if((C.headers.get("content-type")??"").includes("application/json")){yield{event:"complete",data:await C.text()};return}if(!C.body)throw Error("SSE: no response body (streaming not supported)");let _=C.body.getReader(),A=new TextDecoder,Z="",$,X,J=[];try{while(!0){let{done:Q,value:G}=await _.read();if(Q){if(J.length>0)yield{id:$,event:X,data:J.join(`
45
+ `)};break}Z+=A.decode(G,{stream:!0});let H=Z.split(`
46
+ `);Z=H.pop()??"";for(let z of H){if(z===""){if(J.length>0)yield{id:$,event:X,data:J.join(`
47
+ `)};$=void 0,X=void 0,J=[];continue}if(z.startsWith(":"))continue;let Y=z.indexOf(":"),M,R;if(Y===-1)M=z,R="";else if(M=z.slice(0,Y),R=z.slice(Y+1),R.startsWith(" "))R=R.slice(1);switch(M){case"id":$=R;break;case"event":X=R;break;case"data":J.push(R);break}}}}finally{_.releaseLock()}}var sF=30000;async function CD(D,u,F,E={}){if(E.header)console.log(q.bold.cyan(`
48
+ ─── ${E.header} ───`));let C=E.lastEventId,B="",_=new AbortController,A=setTimeout(()=>_.abort(),sF),Z=()=>{clearTimeout(A),A=setTimeout(()=>_.abort(),sF)},$=aF(`/spikes/stream/${D}`,{token:u,apiUrl:F,lastEventId:E.lastEventId,signal:_.signal});try{for await(let X of $){if(Z(),X.id)C=X.id;if(E.json){w(X);continue}if(X.event==="complete"){try{let J=JSON.parse(X.data),Q=J.data??J.content??J.markdown??"";B+=Q,process.stdout.write(Q)}catch{B+=X.data,process.stdout.write(X.data)}continue}if(X.event==="chunk"||X.event==="delta"||!X.event){try{let J=JSON.parse(X.data),Q=J.text??J.content??J.chunk??J.delta??X.data;B+=Q,process.stdout.write(Q)}catch{B+=X.data,process.stdout.write(X.data)}continue}if(X.event==="done"||X.event==="end"){if(X.data&&X.data!=="[DONE]")try{let J=JSON.parse(X.data),Q=J.content??J.text;if(Q&&!B)B=Q,process.stdout.write(Q)}catch{}continue}if(X.event==="error"){console.error(q.red(`
49
+ Stream error: ${X.data}`));continue}}if(B&&!B.endsWith(`
50
50
  `))process.stdout.write(`
51
- `)}finally{clearTimeout(A)}return{lastEventId:C,content:B}}function nF(D){D.command("stream").description("Stream analysis content in real-time via SSE").argument("<spikeId>","Analysis ID to stream").option("--json","Output raw SSE events as JSON").option("--last-event-id <id>","Resume from a specific event ID").addHelpText("after",`
51
+ `)}finally{clearTimeout(A)}return{lastEventId:C,content:B}}function oF(D){D.command("stream").description("Stream analysis content in real-time via SSE").argument("<spikeId>","Analysis ID to stream").option("--json","Output raw SSE events as JSON").option("--last-event-id <id>","Resume from a specific event ID").addHelpText("after",`
52
52
  Examples:
53
53
  $ xevol stream abc123
54
54
  $ xevol stream abc123 --json
55
- $ xevol stream abc123 --last-event-id 42`).action(async(u,F,E)=>{try{let C=await L()??{},B=y(F,E),{token:_,expired:A}=f(C,B);if(!_){console.error(A?"Token expired. Run `xevol login` to re-authenticate.":"Not logged in. Use xevol login --token <token> or set XEVOL_TOKEN."),process.exitCode=1;return}let q=b(C),$=await ED(u,_,q,{json:F.json,lastEventId:F.lastEventId});if(!F.json&&$.content)console.log(Q.green(`
56
- ✔ Stream complete`))}catch(C){console.error(Q.red(C.message)),process.exitCode=1}})}var h8=/^https?:\/\/(?:www\.|m\.|music\.)?(?:youtube\.com\/(?:watch|shorts|live|embed)|youtu\.be\/)/i;async function g8(D,u,F){let E=d("Processing..."),C=Date.now(),B=120;try{for(let _=0;_<120;_+=1){let A=await I(`/v1/status/${D}`,{token:u,apiUrl:F}),q=cD(A)?.toLowerCase()??"pending",$=Math.floor((Date.now()-C)/1000);if(E.text=`Processing... (${$}s)`,q.includes("complete")){let Z=h(A,["title","videoTitle","name"]),H=JD(A.duration??A.durationSec??A.durationSeconds);return E.succeed(`Completed: ${Z?`"${Z}"`:D} (${H})`),A}if(q.includes("error")||q.includes("failed"))return E.fail(`Failed: ${D}`),A;await new Promise((Z)=>setTimeout(Z,5000))}return E.fail("Timed out waiting for transcription to complete."),null}catch(_){return E.fail(_.message),null}}function sF(D){D.command("add").description("Submit a YouTube URL for transcription").argument("<youtubeUrl>","YouTube URL").option("--lang <code>","Output language","en").option("--no-wait","Don't wait for completion (fire-and-forget)").option("--analyze <prompts>","Comma-separated prompt IDs to generate analysis after transcription").addOption(new F0("--spikes <prompts>").hideHelp()).option("--stream","Stream analysis content in real-time via SSE (use with --analyze)").option("--json","Raw JSON output").addHelpText("after",`
55
+ $ xevol stream abc123 --last-event-id 42`).action(async(u,F,E)=>{try{let C=await j()??{},B=P(F,E),{token:_,expired:A}=O(C,B);if(!_){console.error(A?"Token expired. Run `xevol login` to re-authenticate.":"Not logged in. Use xevol login --token <token> or set XEVOL_TOKEN."),process.exitCode=1;return}let Z=I(C),$=await CD(u,_,Z,{json:F.json,lastEventId:F.lastEventId});if(!F.json&&$.content)console.log(q.green(`
56
+ ✔ Stream complete`))}catch(C){console.error(q.red(C.message)),process.exitCode=1}})}var tF=/^https?:\/\/(?:www\.|m\.|music\.)?(?:youtube\.com\/(?:watch|shorts|live|embed)|youtu\.be\/)/i;async function a8(D,u,F){let E=x("Processing..."),C=Date.now(),B=120;try{for(let _=0;_<120;_+=1){let A=await L(`/v1/status/${D}`,{token:u,apiUrl:F}),Z=ID(A)?.toLowerCase()??"pending",$=Math.floor((Date.now()-C)/1000);if(E.text=`Processing... (${$}s)`,Z.includes("complete")){let X=c(A,["title","videoTitle","name"]),J=zD(A.duration??A.durationSec??A.durationSeconds);return E.succeed(`Completed: ${X?`"${X}"`:D} (${J})`),A}if(Z.includes("error")||Z.includes("failed"))return E.fail(`Failed: ${D}`),A;await new Promise((X)=>setTimeout(X,5000))}return E.fail("Timed out waiting for transcription to complete."),null}catch(_){return E.fail(_.message),null}}async function s8(D,u,F,E){if(!tF.test(D))return{url:D,ok:!1,error:"Not a valid YouTube URL."};try{let C=await L("/v1/add",{query:{url:D,outputLang:E},token:u,apiUrl:F}),B=Su(C),_=ID(C)??"pending";if(!B)return{url:D,ok:!1,error:"No ID returned.",response:C};return{url:D,ok:!0,id:B,status:_,response:C}}catch(C){return{url:D,ok:!1,error:C.message}}}async function o8(D,u,F){let E=await j()??{},C=P(u,F),{token:B,expired:_}=O(E,C);if(!B){console.error(_?"Token expired. Run `xevol login` to re-authenticate.":"Not logged in. Use xevol login --token <token> or set XEVOL_TOKEN."),process.exitCode=1;return}let A=u.concurrency??3;if(!Number.isFinite(A)||A<1){console.error(q.red("Error:")+" Concurrency must be a positive number."),process.exitCode=1;return}let Z="";try{Z=await i8(D,"utf8")}catch(K){console.error(q.red("Error:")+` Unable to read batch file: ${D}`),console.error(K.message),process.exitCode=1;return}let $=Z.split(/\r?\n/).map((K)=>K.trim()).filter((K)=>K.length>0&&!K.startsWith("#"));if($.length===0){console.error(q.red("Error:")+" No URLs found in batch file."),process.exitCode=1;return}let X=I(E),J=u.lang??"en",Q=Array($.length),G=u.json?(K)=>console.error(K):console.log,H=Math.min(A,$.length),z=0,Y=Array.from({length:H},async()=>{while(!0){let K=z;if(z+=1,K>=$.length)break;let U=$[K],V=await s8(U,B,X,J);if(Q[K]=V,V.ok)G(`${q.green("✓")} ${U} → ${V.id}`);else G(`${q.red("✗")} ${U} → ${V.error??"Unknown error"}`)}});await Promise.all(Y);let M=Q.filter((K)=>K.ok).length,R=Q.length-M;if(u.json){w(Q),console.error(`Summary: ${M} succeeded, ${R} failed`);return}console.log(`Summary: ${M} succeeded, ${R} failed`)}function eF(D){D.command("add").description("Submit a YouTube URL for transcription").argument("<youtubeUrl>","YouTube URL").option("--lang <code>","Output language","en").option("--batch <file>","Read URLs from a file (one per line)").option("--concurrency <n>","Max parallel requests",(u)=>Number.parseInt(u,10),3).option("--no-wait","Don't wait for completion (fire-and-forget)").option("--analyze <prompts>","Comma-separated prompt IDs to generate analysis after transcription").addOption(new _0("--spikes <prompts>").hideHelp()).option("--stream","Stream analysis content in real-time via SSE (use with --analyze)").option("--json","Raw JSON output").addHelpText("after",`
57
57
  Examples:
58
58
  $ xevol add "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
59
59
  $ xevol add "https://youtu.be/dQw4w9WgXcQ" --lang kk
60
60
  $ xevol add "https://www.youtube.com/watch?v=..." --analyze review,summary --stream
61
- $ xevol add "https://www.youtube.com/watch?v=..." --no-wait`).action(async(u,F,E)=>{try{if(!h8.test(u)){console.error(Q.red("Error:")+" Not a valid YouTube URL. Expected youtube.com/watch?v=... or youtu.be/..."),process.exitCode=1;return}let C=await L()??{},B=y(F,E),{token:_,expired:A}=f(C,B);if(!_){console.error(A?"Token expired. Run `xevol login` to re-authenticate.":"Not logged in. Use xevol login --token <token> or set XEVOL_TOKEN."),process.exitCode=1;return}let q=b(C),$=await I("/v1/add",{query:{url:u,outputLang:F.lang},token:_,apiUrl:q}),Z=cF($),H=cD($)??"pending";if(!Z){if(F.json)P($);else console.error("Transcription created, but the response did not include an ID.");process.exitCode=1;return}if(!F.json)console.log(`${Q.green("✔")} Transcription created: ${Z}`),console.log(`Status: ${H}`);let X=F.analyze??F.spikes;if(F.wait!==!1){let G=X?X.split(",").map((z)=>z.trim()).filter(Boolean):[],J=1+G.length;if(!F.json)console.log(Q.dim(`[1/${J}] Transcribing...`));let Y=await g8(Z,_,q);if(F.json&&!X)P(Y??$);if(X&&Y)if(!(cD(Y)?.toLowerCase()??"").includes("complete"))console.error(Q.red("Error:")+" Transcription did not complete — skipping analysis generation.");else if(F.stream){let M=F.lang??"en",K=[],U={transcriptionId:Z,url:u,lang:M,outputLang:M,spikes:[],createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};for(let R=0;R<G.length;R++){let V=G[R],x=R+2;if(!F.json)console.log(Q.dim(`[${x}/${J}] Generating analysis: ${V}...`));let O=d(`Creating analysis: ${V}...`);try{let v=await I(`/spikes/${Z}`,{method:"POST",body:{promptId:V,outputLang:M},token:_,apiUrl:q}),T=v.spikeId,k={spikeId:T??V,promptId:V,status:"pending"};U.spikes.push(k);let CD=v.content??v.markdown;if(CD){if(O.succeed(`Analysis ready: ${V} (cached)`),!F.json)console.log(Q.bold.cyan(`
62
- ─── ${V} ───`)),console.log(CD);k.status="complete",await l(U),K.push(v);continue}if(!T){O.fail(`No analysis ID returned for ${V}`),k.status="error",await l(U);continue}O.succeed(`Analysis created: ${V}`),k.status="streaming",await l(U);let $D=await ED(T,_,q,{json:F.json,header:V});if(k.status="complete",k.lastEventId=$D.lastEventId,await l(U),!F.json)console.log(Q.green(`✔ Analysis complete: ${V}`));K.push({spikeId:T,promptId:V,content:$D.content})}catch(v){O.fail(`Analysis failed: ${V} — ${v.message}`);let T=U.spikes.find((k)=>k.promptId===V);if(T)T.status="error",await l(U)}}if(!F.json)console.log(Q.green(`
63
- All done. Resume anytime: xevol resume ${Z}`));else P({transcription:Y,spikes:K})}else{let M=F.lang??"en",K=[];for(let U=0;U<G.length;U++){let R=G[U],V=U+2;if(!F.json)console.log(Q.dim(`[${V}/${J}] Generating analysis: ${R}...`));let x=d(`Generating analysis: ${R}...`),O=Date.now(),v=120;try{let T=await I(`/spikes/${Z}`,{method:"POST",body:{promptId:R,outputLang:M},token:_,apiUrl:q}),k=T.spikes??T.data??T.items;if((!k||Array.isArray(k)&&k.length===0)&&T.spikeId)for(let CD=0;CD<v;CD+=1){await new Promise((J2)=>setTimeout(J2,5000));let $D=Math.floor((Date.now()-O)/1000);x.text=`Generating analysis: ${R}... (${$D}s)`,T=await I(`/spikes/${Z}`,{method:"POST",body:{promptId:R,outputLang:M},token:_,apiUrl:q});let H2=T.content??T.markdown??T.text,vu=T.spikes??T.data;if(H2||Array.isArray(vu)&&vu.length>0)break}x.succeed(`Analysis ready: ${R}`),K.push(T)}catch(T){x.fail(`Analysis failed: ${R} — ${T.message}`)}}if(F.json)P({transcription:Y,spikes:K})}return}if(F.json)P($)}catch(C){console.error(C.message),process.exitCode=1}})}function m8(D){let u=i(D,"email")??"Unknown",F=D.plan?.name??D.subscription?.plan??D.plan,E=D.usage?.transcriptionsThisMonth??D.monthly?.transcriptions??D.transcriptionsThisMonth,C=[];if(C.push(`${Q.dim("Email:")} ${Q.bold(u)}`),F)C.push(`${Q.dim("Plan:")} ${F}`);if(E!==void 0)C.push(`${Q.dim("Usage:")} ${E} transcriptions this month`);return C.join(`
64
- `)}function c8(D){if(!Number.isFinite(D)||D<=0)return"soon";if(D<90)return`${Math.ceil(D)} sec`;return`${Math.ceil(D/60)} min`}async function d8(D){try{let{execFile:u}=await import("child_process"),F=process.platform==="darwin"?"open":"xdg-open";u(F,[D],(E)=>{})}catch{}}async function Ou(D){let u=D.headers.get("content-type")??"";try{if(u.includes("application/json")){let E=await D.json();return E.message??E.error??JSON.stringify(E)}let F=await D.text();return F.trim()?F:null}catch{return null}}async function p8(D){await new Promise((u)=>setTimeout(u,D))}function oF(D){D.command("login").description("Authenticate with the browser-based device flow").option("--token <token>","CLI token (overrides XEVOL_TOKEN)").option("--json","Raw JSON output").action(async(u,F)=>{try{let E=await L()??{},C=y(u,F),B=b(E);if(C){let{token:U,expired:R}=f(E,C);if(!U){console.error(R?"Token expired. Run `xevol login` to re-authenticate.":"Token required. Use --token <token> or set XEVOL_TOKEN."),process.exitCode=1;return}let V=await I("/auth/session",{token:U,apiUrl:B}),x=i(V,"accountId"),O=i(V,"email"),v=i(V,"expiresAt");if(await Fu({apiUrl:B,token:U,accountId:x??E.accountId,email:O??E.email,expiresAt:v??E.expiresAt}),u.json){P(V);return}let T=O?`Logged in as ${Q.bold(O)}`:"Logged in";console.log(`${Q.green("✓")} ${T}`);return}let _=new URL("/auth/cli/device-code",B),A=await fetch(_,{method:"POST"});if(!A.ok){let U=await Ou(A),R=U?`API ${A.status}: ${U}`:`API ${A.status} ${A.statusText}`;throw Error(R)}let q=await A.json(),$=i(q,"deviceCode"),Z=i(q,"userCode"),H=i(q,"verificationUrl"),X=Iu(q,"expiresIn"),G=Iu(q,"interval");if(!$||!Z||!H||!X||!G)throw Error("Invalid device authorization response.");let J=new URL(H);J.searchParams.set("code",Z),await d8(J.toString()),console.log("Open this URL to authenticate:"),console.log(` ${J.toString()}`),console.log(""),console.log(`Waiting for approval... (expires in ${c8(X)})`);let Y=d("Waiting for approval..."),z=Date.now()+X*1000,M=Math.max(1,G)*1000,K=new URL("/auth/cli/device-token",B);try{while(Date.now()<z){let R=await fetch(K,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({deviceCode:$})});if(R.status===202){await p8(M);continue}if(R.status===400){let O=await Ou(R);Y.fail("Device authorization expired."),console.error(O??"Device authorization expired. Run xevol login again."),process.exitCode=1;return}if(R.ok){let O=await R.json(),v=i(O,"token"),T=i(O,"accountId"),k=i(O,"email"),CD=i(O,"expiresAt");if(!v)throw Y.fail("Authentication failed."),Error("No token received from device authorization.");if(await Fu({apiUrl:B,token:v,accountId:T??E.accountId,email:k??E.email,expiresAt:CD??E.expiresAt}),Y.succeed("Approved"),u.json){P(O);return}let $D=k?`Logged in as ${Q.bold(k)}`:"Logged in";console.log(`${Q.green("✓")} ${$D}`);return}let V=await Ou(R);Y.fail("Authentication failed.");let x=V?`API ${R.status}: ${V}`:`API ${R.status} ${R.statusText}`;throw Error(x)}let U="Device authorization timed out. Run xevol login again.";Y.fail("Timed out."),console.error(U),process.exitCode=1}catch(U){if(Y.isSpinning)Y.fail("Authentication failed.");throw U}}catch(E){console.error(E.message),process.exitCode=1}}),D.command("logout").description("Revoke CLI token and clear local config").option("--json","Raw JSON output").action(async(u,F)=>{try{let E=await L()??{},C=y(u,F),B=E.token,{token:_,expired:A}=f(E,C),q=B??_;if(!q){console.log(A?"Token expired. Run `xevol login` to re-authenticate.":"You are not logged in.");return}let $=b(E),Z={ok:!0};try{Z=await I("/auth/cli/revoke",{method:"POST",token:q,apiUrl:$})}catch(H){Z={error:H.message}}if(await Y0(),u.json){P(Z);return}console.log(`${Q.green("✓")} Logged out`)}catch(E){console.error(E.message),process.exitCode=1}}),D.command("whoami").description("Show the current authenticated account").option("--json","Raw JSON output").action(async(u,F)=>{try{let E=await L()??{},C=y(u,F),{token:B,expired:_}=f(E,C);if(!B){console.error(_?"Token expired. Run `xevol login` to re-authenticate.":"Not logged in. Use xevol login to authenticate."),process.exitCode=1;return}let A=b(E),q=await I("/auth/session",{token:B,apiUrl:A});if(u.json){P(q);return}console.log(m8(q))}catch(E){console.error(E.message),process.exitCode=1}})}function tF(D){if(!D)return"—";try{let u=new Date(D);if(Number.isNaN(u.getTime()))return"—";let F=new Date,E=F.getTime()-u.getTime(),C=Math.floor(E/60000),B=Math.floor(E/3600000),_=Math.floor(E/86400000);if(C<1)return"just now";if(C<60)return`${C}m ago`;if(B<24)return`${B}h ago`;if(_<7)return`${_}d ago`;let A=String(u.getMonth()+1).padStart(2,"0"),q=String(u.getDate()).padStart(2,"0");if(u.getFullYear()===F.getFullYear())return`${A}-${q}`;return`${u.getFullYear()}-${A}-${q}`}catch{return"—"}}function l8(D){let u=D.list??D.data??D.transcriptions??D.items??D.results??[],F=D.pagination??D.meta??{},E=D.page??F.page??1,C=D.limit??F.limit??u.length,B=D.total??F.total??u.length,_=D.totalPages??F.totalPages??(C?Math.ceil(B/C):1);return{items:u,page:E,limit:C,total:B,totalPages:_}}function eF(D){D.command("list").description("List transcriptions").option("--page <number>","Page number",(u)=>Number.parseInt(u,10),1).option("--limit <number>","Items per page",(u)=>Number.parseInt(u,10),20).option("--json","Raw JSON output").option("--csv","CSV output").option("--status <status>","Filter by status (complete, pending, error)").option("--sort <field>","Sort field (e.g. createdAt:desc, title:asc)").addHelpText("after",`
61
+ $ xevol add "https://www.youtube.com/watch?v=..." --no-wait
62
+ $ xevol add --batch urls.txt --concurrency 5`).action(async(u,F,E)=>{try{if(F.batch){await o8(F.batch,F,E);return}if(!tF.test(u)){console.error(q.red("Error:")+" Not a valid YouTube URL. Expected youtube.com/watch?v=... or youtu.be/..."),process.exitCode=1;return}let C=await j()??{},B=P(F,E),{token:_,expired:A}=O(C,B);if(!_){console.error(A?"Token expired. Run `xevol login` to re-authenticate.":"Not logged in. Use xevol login --token <token> or set XEVOL_TOKEN."),process.exitCode=1;return}let Z=I(C),$=await L("/v1/add",{query:{url:u,outputLang:F.lang},token:_,apiUrl:Z}),X=Su($),J=ID($)??"pending";if(!X){if(F.json)w($);else console.error("Transcription created, but the response did not include an ID.");process.exitCode=1;return}if(!F.json)console.log(`${q.green("✔")} Transcription created: ${X}`),console.log(`Status: ${J}`);let Q=F.analyze??F.spikes;if(F.wait!==!1){let G=Q?Q.split(",").map((Y)=>Y.trim()).filter(Boolean):[],H=1+G.length;if(!F.json)console.log(q.dim(`[1/${H}] Transcribing...`));let z=await a8(X,_,Z);if(F.json&&!Q)w(z??$);if(Q&&z)if(!(ID(z)?.toLowerCase()??"").includes("complete"))console.error(q.red("Error:")+" Transcription did not complete — skipping analysis generation.");else if(F.stream){let M=F.lang??"en",R=[],K={transcriptionId:X,url:u,lang:M,outputLang:M,spikes:[],createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};for(let U=0;U<G.length;U++){let V=G[U],m=U+2;if(!F.json)console.log(q.dim(`[${m}/${H}] Generating analysis: ${V}...`));let f=x(`Creating analysis: ${V}...`);try{let k=await L(`/spikes/${X}`,{method:"POST",body:{promptId:V,outputLang:M},token:_,apiUrl:Z}),S=k.spikeId,h={spikeId:S??V,promptId:V,status:"pending"};K.spikes.push(h);let BD=k.content??k.markdown;if(BD){if(f.succeed(`Analysis ready: ${V} (cached)`),!F.json)console.log(q.bold.cyan(`
63
+ ─── ${V} ───`)),console.log(BD);h.status="complete",await l(K),R.push(k);continue}if(!S){f.fail(`No analysis ID returned for ${V}`),h.status="error",await l(K);continue}f.succeed(`Analysis created: ${V}`),h.status="streaming",await l(K);let XD=await CD(S,_,Z,{json:F.json,header:V});if(h.status="complete",h.lastEventId=XD.lastEventId,await l(K),!F.json)console.log(q.green(`✔ Analysis complete: ${V}`));R.push({spikeId:S,promptId:V,content:XD.content})}catch(k){f.fail(`Analysis failed: ${V} — ${k.message}`);let S=K.spikes.find((h)=>h.promptId===V);if(S)S.status="error",await l(K)}}if(!F.json)console.log(q.green(`
64
+ All done. Resume anytime: xevol resume ${X}`));else w({transcription:z,spikes:R})}else{let M=F.lang??"en",R=[];for(let K=0;K<G.length;K++){let U=G[K],V=K+2;if(!F.json)console.log(q.dim(`[${V}/${H}] Generating analysis: ${U}...`));let m=x(`Generating analysis: ${U}...`),f=Date.now(),k=120;try{let S=await L(`/spikes/${X}`,{method:"POST",body:{promptId:U,outputLang:M},token:_,apiUrl:Z}),h=S.spikes??S.data??S.items;if((!h||Array.isArray(h)&&h.length===0)&&S.spikeId)for(let BD=0;BD<k;BD+=1){await new Promise((j2)=>setTimeout(j2,5000));let XD=Math.floor((Date.now()-f)/1000);m.text=`Generating analysis: ${U}... (${XD}s)`,S=await L(`/spikes/${X}`,{method:"POST",body:{promptId:U,outputLang:M},token:_,apiUrl:Z});let N2=S.content??S.markdown??S.text,gu=S.spikes??S.data;if(N2||Array.isArray(gu)&&gu.length>0)break}m.succeed(`Analysis ready: ${U}`),R.push(S)}catch(S){m.fail(`Analysis failed: ${U} ${S.message}`)}}if(F.json)w({transcription:z,spikes:R})}return}if(F.json)w($)}catch(C){console.error(C.message),process.exitCode=1}})}function t8(D){let u=i(D,"email")??"Unknown",F=D.plan?.name??D.subscription?.plan??D.plan,E=D.usage?.transcriptionsThisMonth??D.monthly?.transcriptions??D.transcriptionsThisMonth,C=[];if(C.push(`${q.dim("Email:")} ${q.bold(u)}`),F)C.push(`${q.dim("Plan:")} ${F}`);if(E!==void 0)C.push(`${q.dim("Usage:")} ${E} transcriptions this month`);return C.join(`
65
+ `)}function e8(D){if(!Number.isFinite(D)||D<=0)return"soon";if(D<90)return`${Math.ceil(D)} sec`;return`${Math.ceil(D/60)} min`}async function DE(D){try{let{execFile:u}=await import("child_process"),F=process.platform==="darwin"?"open":"xdg-open";u(F,[D],(E)=>{})}catch{}}async function bu(D){let u=D.headers.get("content-type")??"";try{if(u.includes("application/json")){let E=await D.json();return E.message??E.error??JSON.stringify(E)}let F=await D.text();return F.trim()?F:null}catch{return null}}async function uE(D){await new Promise((u)=>setTimeout(u,D))}function D2(D){D.command("login").description("Authenticate with the browser-based device flow").option("--token <token>","CLI token (overrides XEVOL_TOKEN)").option("--json","Raw JSON output").action(async(u,F)=>{try{let E=await j()??{},C=P(u,F),B=I(E);if(C){let{token:K,expired:U}=O(E,C);if(!K){console.error(U?"Token expired. Run `xevol login` to re-authenticate.":"Token required. Use --token <token> or set XEVOL_TOKEN."),process.exitCode=1;return}let V=await L("/auth/session",{token:K,apiUrl:B}),m=i(V,"accountId"),f=i(V,"email"),k=i(V,"expiresAt");if(await UD({apiUrl:B,token:K,accountId:m??E.accountId,email:f??E.email,expiresAt:k??E.expiresAt}),u.json){w(V);return}let S=f?`Logged in as ${q.bold(f)}`:"Logged in";console.log(`${q.green("✓")} ${S}`);return}let _=new URL("/auth/cli/device-code",B),A=await fetch(_,{method:"POST"});if(!A.ok){let K=await bu(A),U=K?`API ${A.status}: ${K}`:`API ${A.status} ${A.statusText}`;throw Error(U)}let Z=await A.json(),$=i(Z,"deviceCode"),X=i(Z,"userCode"),J=i(Z,"verificationUrl"),Q=Pu(Z,"expiresIn"),G=Pu(Z,"interval");if(!$||!X||!J||!Q||!G)throw Error("Invalid device authorization response.");let H=new URL(J);H.searchParams.set("code",X),await DE(H.toString()),console.log("Open this URL to authenticate:"),console.log(` ${H.toString()}`),console.log(""),console.log(`Waiting for approval... (expires in ${e8(Q)})`);let z=x("Waiting for approval..."),Y=Date.now()+Q*1000,M=Math.max(1,G)*1000,R=new URL("/auth/cli/device-token",B);try{while(Date.now()<Y){let U=await fetch(R,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({deviceCode:$})});if(U.status===202){await uE(M);continue}if(U.status===400){let f=await bu(U);z.fail("Device authorization expired."),console.error(f??"Device authorization expired. Run xevol login again."),process.exitCode=1;return}if(U.ok){let f=await U.json(),k=i(f,"token"),S=i(f,"accountId"),h=i(f,"email"),BD=i(f,"expiresAt");if(!k)throw z.fail("Authentication failed."),Error("No token received from device authorization.");if(await UD({apiUrl:B,token:k,accountId:S??E.accountId,email:h??E.email,expiresAt:BD??E.expiresAt}),z.succeed("Approved"),u.json){w(f);return}let XD=h?`Logged in as ${q.bold(h)}`:"Logged in";console.log(`${q.green("✓")} ${XD}`);return}let V=await bu(U);z.fail("Authentication failed.");let m=V?`API ${U.status}: ${V}`:`API ${U.status} ${U.statusText}`;throw Error(m)}let K="Device authorization timed out. Run xevol login again.";z.fail("Timed out."),console.error(K),process.exitCode=1}catch(K){if(z.isSpinning)z.fail("Authentication failed.");throw K}}catch(E){console.error(E.message),process.exitCode=1}}),D.command("logout").description("Revoke CLI token and clear local config").option("--json","Raw JSON output").action(async(u,F)=>{try{let E=await j()??{},C=P(u,F),B=E.token,{token:_,expired:A}=O(E,C),Z=B??_;if(!Z){console.log(A?"Token expired. Run `xevol login` to re-authenticate.":"You are not logged in.");return}let $=I(E),X={ok:!0};try{X=await L("/auth/cli/revoke",{method:"POST",token:Z,apiUrl:$})}catch(J){X={error:J.message}}if(await R0(),u.json){w(X);return}console.log(`${q.green("✓")} Logged out`)}catch(E){console.error(E.message),process.exitCode=1}}),D.command("whoami").description("Show the current authenticated account").option("--json","Raw JSON output").action(async(u,F)=>{try{let E=await j()??{},C=P(u,F),{token:B,expired:_}=O(E,C);if(!B){console.error(_?"Token expired. Run `xevol login` to re-authenticate.":"Not logged in. Use xevol login to authenticate."),process.exitCode=1;return}let A=I(E),Z=await L("/auth/session",{token:B,apiUrl:A});if(u.json){w(Z);return}console.log(t8(Z))}catch(E){console.error(E.message),process.exitCode=1}})}function u2(D){if(!D)return"—";try{let u=new Date(D);if(Number.isNaN(u.getTime()))return"—";let F=new Date,E=F.getTime()-u.getTime(),C=Math.floor(E/60000),B=Math.floor(E/3600000),_=Math.floor(E/86400000);if(C<1)return"just now";if(C<60)return`${C}m ago`;if(B<24)return`${B}h ago`;if(_<7)return`${_}d ago`;let A=String(u.getMonth()+1).padStart(2,"0"),Z=String(u.getDate()).padStart(2,"0");if(u.getFullYear()===F.getFullYear())return`${A}-${Z}`;return`${u.getFullYear()}-${A}-${Z}`}catch{return"—"}}function FE(D){let u=D.list??D.data??D.transcriptions??D.items??D.results??[],F=D.pagination??D.meta??{},E=D.page??F.page??1,C=D.limit??F.limit??u.length,B=D.total??F.total??u.length,_=D.totalPages??F.totalPages??(C?Math.ceil(B/C):1);return{items:u,page:E,limit:C,total:B,totalPages:_}}function F2(D){D.command("list").description("List transcriptions").option("--page <number>","Page number",(u)=>Number.parseInt(u,10),1).option("--limit <number>","Items per page",(u)=>Number.parseInt(u,10),20).option("--json","Raw JSON output").option("--csv","CSV output").option("--status <status>","Filter by status (complete, pending, error)").option("--sort <field>","Sort field (e.g. createdAt:desc, title:asc)").option("--search <query>","Search by title").addHelpText("after",`
65
66
  Examples:
66
67
  $ xevol list
67
68
  $ xevol list --limit 5 --page 2
68
69
  $ xevol list --status complete --csv
69
- $ xevol list --json`).action(async(u,F)=>{try{let E=await L()??{},C=y(u,F),{token:B,expired:_}=f(E,C);if(!B){console.error(_?"Token expired. Run `xevol login` to re-authenticate.":"Not logged in. Use xevol login --token <token> or set XEVOL_TOKEN."),process.exitCode=1;return}let A=b(E),q=await I("/v1/transcriptions",{query:{page:u.page,limit:u.limit,status:u.status,sort:u.sort},token:B,apiUrl:A});if(u.json){P(q);return}let{items:$,page:Z,total:H,totalPages:X}=l8(q);if(u.csv){let Y=(z)=>{let M=z.replace(/\n/g," ");return M.includes(",")||M.includes('"')?`"${M.replace(/"/g,'""')}"`:M};console.log("ID,Status,Lang,Duration,Channel,Title,Created");for(let z of $){let M=e(z,["id","transcriptionId","_id"]),K=e(z,["status","state"]),U=e(z,["lang","outputLang","language"]),R=z.duration??z.durationSec??z.durationSeconds??z.lengthSec,V=JD(R??"—"),x=e(z,["channel","channelTitle","author","uploader"]),O=e(z,["title","videoTitle","name"]),v=tF(z.createdAt);console.log([M,K,U,V,x,O,v].map(Y).join(","))}return}console.log(""),console.log(` ${Q.bold("Transcriptions")} ${Q.dim(`${H} total · page ${Z}/${X}`)}`),console.log("");let G=$.map((Y)=>{let z=e(Y,["id","transcriptionId","_id"]),M=e(Y,["status","state"]),K=Y.duration??Y.durationSec??Y.durationSeconds??Y.lengthSec,U=hF(K??"—"),R=e(Y,["channel","channelTitle","author","uploader"]),V=e(Y,["title","videoTitle","name"]),x=tF(Y.createdAt);return{title:V,channel:R,duration:U,status:M,id:z,created:x}});if(G.length===0){console.log(" No transcriptions found.");return}let J=(Z-1)*(u.limit??20)+1;if(console.log(gF(G,{startIndex:J})),X>1&&Z<X)console.log(""),console.log(Q.dim(` Page ${Z} of ${X} — use --page ${Z+1} for next`));console.log("")}catch(E){console.error(Q.red("Error:")+" "+E.message),process.exitCode=1}})}function wu(D){let u=D.spikes??D.data??D.items;if(Array.isArray(u))return u;if(D.content||D.markdown||D.text)return[D];return[]}function r8(D){return D.markdown??D.content??D.text??D.body}async function D2(D,u,F,E="review",C="en"){return await I(`/spikes/${D}`,{method:"POST",body:{promptId:E,outputLang:C},token:u,apiUrl:F})}async function i8(D,u,F,E="review",C="en"){let B=d("Generating analysis..."),_=Date.now(),A=120;try{for(let q=0;q<120;q+=1){let $=await D2(D,u,F,E,C),Z=wu($),H=Math.floor((Date.now()-_)/1000);if(B.text=`Generating analysis... (${H}s)`,Z.length>0)return B.succeed("Analysis ready"),$;await new Promise((X)=>setTimeout(X,5000))}return B.fail("Timed out waiting for analysis to generate."),null}catch(q){return B.fail(q.message),null}}function u2(D){D.command("analyze").alias("spikes").description("View or generate analysis for a transcription").argument("<id>","Transcription ID").option("--generate","Generate analysis if missing").option("--prompt <id>","Prompt ID for generation").option("--lang <code>","Output language","en").option("--json","Raw JSON output").option("--no-stream","Disable live streaming (use polling instead)").addHelpText("after",`
70
+ $ xevol list --search "react tutorial"
71
+ $ xevol list --json`).action(async(u,F)=>{try{let E=await j()??{},C=P(u,F),{token:B,expired:_}=O(E,C);if(!B){console.error(_?"Token expired. Run `xevol login` to re-authenticate.":"Not logged in. Use xevol login --token <token> or set XEVOL_TOKEN."),process.exitCode=1;return}let A=I(E),Z=await L("/v1/transcriptions",{query:{page:u.page,limit:u.limit,status:u.status,sort:u.sort,q:u.search},token:B,apiUrl:A});if(u.json){w(Z);return}let{items:$,page:X,total:J,totalPages:Q}=FE(Z);if(u.csv){let z=(Y)=>{let M=Y.replace(/\n/g," ");return M.includes(",")||M.includes('"')?`"${M.replace(/"/g,'""')}"`:M};console.log("ID,Status,Lang,Duration,Channel,Title,Created");for(let Y of $){let M=DD(Y,["id","transcriptionId","_id"]),R=DD(Y,["status","state"]),K=DD(Y,["lang","outputLang","language"]),U=Y.duration??Y.durationSec??Y.durationSeconds??Y.lengthSec,V=zD(U??"—"),m=DD(Y,["channel","channelTitle","author","uploader"]),f=DD(Y,["title","videoTitle","name"]),k=u2(Y.createdAt);console.log([M,R,K,V,m,f,k].map(z).join(","))}return}console.log(""),console.log(` ${q.bold("Transcriptions")} ${q.dim(`${J} total · page ${X}/${Q}`)}`),console.log("");let G=$.map((z)=>{let Y=DD(z,["id","transcriptionId","_id"]),M=DD(z,["status","state"]),R=z.duration??z.durationSec??z.durationSeconds??z.lengthSec,K=dF(R??"—"),U=DD(z,["channel","channelTitle","author","uploader"]),V=DD(z,["title","videoTitle","name"]),m=u2(z.createdAt);return{title:V,channel:U,duration:K,status:M,id:Y,created:m}});if(G.length===0){console.log(" No transcriptions found.");return}let H=(X-1)*(u.limit??20)+1;if(console.log(pF(G,{startIndex:H})),Q>1&&X<Q)console.log(""),console.log(q.dim(` Page ${X} of ${Q} — use --page ${X+1} for next`));console.log("")}catch(E){console.error(q.red("Error:")+" "+E.message),process.exitCode=1}})}function yu(D){let u=D.spikes??D.data??D.items;if(Array.isArray(u))return u;if(D.content||D.markdown||D.text)return[D];return[]}function EE(D){return D.markdown??D.content??D.text??D.body}async function E2(D,u,F,E="review",C="en"){return await L(`/spikes/${D}`,{method:"POST",body:{promptId:E,outputLang:C},token:u,apiUrl:F})}async function CE(D,u,F,E="review",C="en"){let B=x("Generating analysis..."),_=Date.now(),A=120;try{for(let Z=0;Z<120;Z+=1){let $=await E2(D,u,F,E,C),X=yu($),J=Math.floor((Date.now()-_)/1000);if(B.text=`Generating analysis... (${J}s)`,X.length>0)return B.succeed("Analysis ready"),$;await new Promise((Q)=>setTimeout(Q,5000))}return B.fail("Timed out waiting for analysis to generate."),null}catch(Z){return B.fail(Z.message),null}}function C2(D){D.command("analyze").alias("spikes").description("View or generate analysis for a transcription").argument("<id>","Transcription ID").option("--generate","Generate analysis if missing").option("--prompt <id>","Prompt ID for generation").option("--lang <code>","Output language","en").option("--json","Raw JSON output").option("--no-stream","Disable live streaming (use polling instead)").addHelpText("after",`
70
72
  Examples:
71
73
  $ xevol analyze abc123
72
74
  $ xevol analyze abc123 --prompt facts --lang kk
73
- $ xevol analyze abc123 --generate --prompt review --json`).action(async(u,F,E)=>{try{let C=await L()??{},B=y(F,E),{token:_,expired:A}=f(C,B);if(!_){console.error(A?"Token expired. Run `xevol login` to re-authenticate.":"Not logged in. Use xevol login --token <token> or set XEVOL_TOKEN."),process.exitCode=1;return}let q=b(C),$=F.prompt??"review",Z=F.lang??"en",H=await D2(u,_,q,$,Z),X=wu(H),G=H.spikeId,J=F.stream!==!1&&!F.json;if(X.length===0&&G){if(J){let K=H.title??H.transcriptionTitle??u;if(console.log(Q.bold(`Analysis for "${K}"`)),console.log(YD()),!(await ED(G,_,q)).content)console.log("No analysis content available.");return}let M=await i8(u,_,q,$,Z);if(!M){process.exitCode=1;return}H=M,X=wu(H)}if(F.json){P(H);return}let Y=H.title??H.transcriptionTitle??X[0]?.title??u;console.log(Q.bold(`Analysis for "${Y}"`)),console.log(YD());let z=X.map((M)=>r8(M)).filter((M)=>Boolean(M)).join(`
75
+ $ xevol analyze abc123 --generate --prompt review --json`).action(async(u,F,E)=>{try{let C=await j()??{},B=P(F,E),{token:_,expired:A}=O(C,B);if(!_){console.error(A?"Token expired. Run `xevol login` to re-authenticate.":"Not logged in. Use xevol login --token <token> or set XEVOL_TOKEN."),process.exitCode=1;return}let Z=I(C),$=F.prompt??"review",X=F.lang??"en",J=await E2(u,_,Z,$,X),Q=yu(J),G=J.spikeId,H=F.stream!==!1&&!F.json;if(Q.length===0&&G){if(H){let R=J.title??J.transcriptionTitle??u;if(console.log(q.bold(`Analysis for "${R}"`)),console.log(YD()),!(await CD(G,_,Z)).content)console.log("No analysis content available.");return}let M=await CE(u,_,Z,$,X);if(!M){process.exitCode=1;return}J=M,Q=yu(J)}if(F.json){w(J);return}let z=J.title??J.transcriptionTitle??Q[0]?.title??u;console.log(q.bold(`Analysis for "${z}"`)),console.log(YD());let Y=Q.map((M)=>EE(M)).filter((M)=>Boolean(M)).join(`
74
76
 
75
- `);if(z)console.log(z);else console.log("No analysis content available.")}catch(C){console.error(Q.red("Error:")+" "+C.message),process.exitCode=1}})}function a8(D){if(D.analysis&&typeof D.analysis==="object")return D.analysis;if(D.data&&typeof D.data==="object")return D.data;return D}function F2(D){D.command("view").description("View a transcription").argument("<id>","Transcription ID").option("--raw","Print the full transcript").option("--clean","Use cleanContent instead of content").option("--json","Raw JSON output").action(async(u,F,E)=>{try{let C=await L()??{},B=y(F,E),{token:_,expired:A}=f(C,B);if(!_){console.error(A?"Token expired. Run `xevol login` to re-authenticate.":"Not logged in. Use xevol login --token <token> or set XEVOL_TOKEN."),process.exitCode=1;return}if(F.clean&&!F.raw){console.error("--clean can only be used with --raw."),process.exitCode=1;return}let q=b(C),$=await I(`/v1/analysis/${u}`,{token:_,apiUrl:q});if(F.json){P($);return}let Z=a8($),H=h(Z,["title","videoTitle","name"])??"Untitled",X=h(Z,["channel","channelTitle","author"])??"Unknown",G=h(Z,["channelHandle","handle","channelTag"]),J=JD(Z.duration??Z.durationSec??Z.durationSeconds),Y=h(Z,["lang","outputLang","language"])??"—",z=h(Z,["status","state"])??"—",M=h(Z,["url","youtubeUrl","videoUrl"]);if(F.raw){let R=F.clean?"cleanContent":"content",V=Z[R];if(!V){console.error("No transcript content available."),process.exitCode=1;return}console.log(V);return}let K=G?`${X} (${G.startsWith("@")?G:`@${G}`})`:X;if(console.log(Q.bold(H)),console.log(`Channel: ${K}`),console.log(`Duration: ${J} | Lang: ${Y} | Status: ${z}`),M)console.log(`URL: ${M}`);console.log(YD());let U=Z.summary??Z.overview??Z.analysis?.summary?.toString();if(U)console.log(U);else console.log("No summary available.");console.log(YD()),console.log("Full transcript: use --raw")}catch(C){console.error(Q.red("Error:")+" "+C.message),process.exitCode=1}})}function E2(D){D.command("prompts").description("List available prompts").option("--json","Raw JSON output").option("--csv","CSV output").action(async(u,F)=>{try{let E=await L()??{},C=y(u,F),{token:B}=f(E,C),_=b(E),A=await I("/v1/prompts",{token:B??void 0,apiUrl:_}),q=A.prompts??[];if(u.json){P(A);return}if(u.csv){let H=(X)=>{let G=X.replace(/\n/g," ");return G.includes(",")||G.includes('"')?`"${G.replace(/"/g,'""')}"`:G};console.log("ID,Description");for(let X of q)console.log([X.id,X.description??"—"].map(H).join(","));return}if(console.log(Q.bold(`Available Prompts (${q.length} total)`)),console.log(""),q.length===0){console.log("No prompts found.");return}let $=(H,X)=>{let G=H.replace(/[\r\n]+/g," ").replace(/\s+/g," ").trim();return G.length>X?G.slice(0,X-1)+"…":G},Z=q.map((H)=>[H.id,H.description?$(H.description,60):"—"]);console.log(mF(["ID","Description"],Z))}catch(E){console.error(Q.red("Error:")+" "+E.message),process.exitCode=1}})}function C2(D){D.command("resume").description("Resume a previous streaming session").argument("<id>","Transcription ID").option("--json","Raw JSON output").action(async(u,F,E)=>{try{let C=await L()??{},B=y(F,E),{token:_,expired:A}=f(C,B);if(!_){console.error(A?"Token expired. Run `xevol login` to re-authenticate.":"Not logged in. Use xevol login --token <token> or set XEVOL_TOKEN."),process.exitCode=1;return}let q=b(C),$=await rF(u);if(!$){console.error(Q.red(`No job state found for ${u}.`),"\nMake sure you previously ran `xevol add --stream --analyze` for this transcription."),process.exitCode=1;return}let Z=$.lang??$.outputLang??"en";if(!F.json)console.log(Q.bold(`Resuming job for transcription: ${u}`)),console.log(Q.dim(`URL: ${$.url}`)),console.log(Q.dim(`Analyses: ${$.spikes.length}`)),console.log();let H=[];for(let X of $.spikes){if(X.status==="complete"){if(!F.json)console.log(Q.bold.cyan(`
76
- ─── ${X.promptId} ───`)),console.log(Q.dim("(cached)"));try{let G=await I(`/spikes/${u}`,{method:"POST",body:{promptId:X.promptId,outputLang:Z},token:_,apiUrl:q});if(F.json)H.push(G);else{let J=G.content??G.markdown??G.text??"";if(J)console.log(J);console.log(Q.green("✔ Analysis complete: "+X.promptId))}}catch(G){console.error(Q.red(`Failed to fetch ${X.promptId}: ${G.message}`))}continue}if(X.status==="streaming"){if(!F.json)console.log(Q.dim(`
77
- Reconnecting to ${X.promptId}...`));try{let G=await ED(X.spikeId,_,q,{json:F.json,lastEventId:X.lastEventId,header:X.promptId});if(X.status="complete",X.lastEventId=G.lastEventId,await l($),!F.json)console.log(Q.green("✔ Analysis complete: "+X.promptId));else H.push({spikeId:X.spikeId,promptId:X.promptId,content:G.content})}catch(G){console.error(Q.red(`Analysis stream failed for ${X.promptId}: ${G.message}`)),X.status="error",await l($)}continue}if(X.status==="pending"||X.status==="error"){let G=d(`Starting analysis: ${X.promptId}...`);try{let J=await I(`/spikes/${u}`,{method:"POST",body:{promptId:X.promptId,outputLang:Z},token:_,apiUrl:q}),Y=J.spikeId??X.spikeId;X.spikeId=Y;let z=J.content??J.markdown;if(z){if(G.succeed(`Analysis ready: ${X.promptId}`),!F.json)console.log(Q.bold.cyan(`
78
- ─── ${X.promptId} ───`)),console.log(z);if(X.status="complete",await l($),F.json)H.push(J);continue}G.succeed(`Analysis started: ${X.promptId}`),X.status="streaming",await l($);let M=await ED(Y,_,q,{json:F.json,header:X.promptId});if(X.status="complete",X.lastEventId=M.lastEventId,await l($),!F.json)console.log(Q.green("✔ Analysis complete: "+X.promptId));else H.push({spikeId:Y,promptId:X.promptId,content:M.content})}catch(J){G.fail(`Failed: ${X.promptId} — ${J.message}`),X.status="error",await l($)}}}if(F.json)P({transcriptionId:u,spikes:H});else console.log(Q.green(`
79
- ✔ All analyses resumed.`))}catch(C){console.error(Q.red(C.message)),process.exitCode=1}})}import{promises as bu}from"fs";import n8 from"os";import _2 from"path";var A2=_2.join(n8.homedir(),".xevol"),$2=_2.join(A2,"config.json"),AD={apiUrl:"Base API URL","default.lang":"Default output language for transcriptions","default.limit":"Default page size for list command","api.timeout":"API request timeout in milliseconds"};async function Su(){try{let D=await bu.readFile($2,"utf8");return JSON.parse(D)}catch(D){if(D.code==="ENOENT")return{};if(D instanceof SyntaxError)return console.error(Q.yellow("Warning:")+" config.json is corrupt, starting fresh."),{};throw D}}async function s8(D){await bu.mkdir(A2,{recursive:!0});let u=JSON.stringify(D,null,2)+`
80
- `;await bu.writeFile($2,u,{encoding:"utf8",mode:384})}function B2(D,u){let F=u.split("."),E=D;for(let C of F){if(E===null||E===void 0||typeof E!=="object")return;E=E[C]}return E}function o8(D,u,F){let E=u.split("."),C=D;for(let B=0;B<E.length-1;B++){let _=E[B];if(C[_]===void 0||typeof C[_]!=="object")C[_]={};C=C[_]}C[E[E.length-1]]=F}function q2(D){let u=D.command("config",{hidden:!0}).description("Manage local CLI configuration");u.command("get").description("Get a config value").argument("<key>",`Config key (${Object.keys(AD).join(", ")})`).action(async(F)=>{try{if(!(F in AD)){console.error(Q.red("Error:")+` Unknown config key: ${F}`),console.error(`Allowed keys: ${Object.keys(AD).join(", ")}`),process.exitCode=1;return}let E=await Su(),C=B2(E,F);if(C===void 0)console.log(Q.dim("(not set)"));else console.log(String(C))}catch(E){console.error(Q.red("Error:")+" "+E.message),process.exitCode=1}}),u.command("set").description("Set a config value").argument("<key>",`Config key (${Object.keys(AD).join(", ")})`).argument("<value>","Value to set").action(async(F,E)=>{try{if(!(F in AD)){console.error(Q.red("Error:")+` Unknown config key: ${F}`),console.error(`Allowed keys: ${Object.keys(AD).join(", ")}`),process.exitCode=1;return}let C=await Su(),B=E;if(F==="default.limit"||F==="api.timeout"){let _=Number(E);if(!Number.isFinite(_)||_<=0){console.error(Q.red("Error:")+` ${F} must be a positive number`),process.exitCode=1;return}B=_}o8(C,F,B),await s8(C),console.log(`${Q.green("✔")} ${F} = ${E}`)}catch(C){console.error(Q.red("Error:")+" "+C.message),process.exitCode=1}}),u.command("list").description("List all config values").action(async()=>{try{let F=await Su(),E=!1;for(let C of Object.keys(AD)){let B=B2(F,C);if(B!==void 0)console.log(`${Q.dim(C)} = ${B}`),E=!0}if(!E)console.log(Q.dim("No config values set."))}catch(F){console.error(Q.red("Error:")+" "+F.message),process.exitCode=1}})}function Z2(D){D.command("usage").description("Show usage stats and subscription info").option("--json","Raw JSON output").action(async(u,F)=>{try{let E=await L()??{},C=y(u,F),{token:B,expired:_}=f(E,C);if(!B){console.error(_?"Token expired. Run `xevol login` to re-authenticate.":"Not logged in. Use xevol login --token <token> or set XEVOL_TOKEN."),process.exitCode=1;return}let A=b(E),q=d("Fetching usage data…"),$=await I("/auth/cli/status",{token:B,apiUrl:A});if(q.stop(),u.json){P($);return}let Z=$.plan??"free",H=$.status??"active",X=$.period??"month",G=$.email??"",J=$.usage??{},Y=$.limits??{},z=$.current_period_end,M=J.transcriptions??0,K=Y.transcriptions??"∞";if(console.log(""),console.log(` ${Q.bold("Usage & Subscription")}`),console.log(""),G)console.log(` ${Q.dim("Email:")} ${G}`);if(console.log(` ${Q.dim("Plan:")} ${Z}`),console.log(` ${Q.dim("Status:")} ${H}`),console.log(` ${Q.dim("Usage:")} ${M} / ${K} transcriptions (this ${X})`),z){let U=new Date(z);if(!Number.isNaN(U.getTime())){let R=Math.max(0,Math.ceil((U.getTime()-Date.now())/86400000));console.log(` ${Q.dim("Renews:")} ${U.toLocaleDateString()} (${R} days)`)}}console.log("")}catch(E){console.error(Q.red("Error:")+" "+E.message),process.exitCode=1}})}import{promises as t8}from"fs";function e8(D){let u=h(D,["title","videoTitle","name"])??"Untitled",F=h(D,["channel","channelTitle","author"])??"",E=h(D,["url","youtubeUrl","videoUrl"])??"",C=h(D,["lang","outputLang","language"])??"",B=h(D,["status","state"])??"",_=D.cleanContent??D.content??D.transcript??"",A=[];A.push(`# ${u}`),A.push("");let q=[];if(F)q.push(`- **Channel:** ${F}`);if(E)q.push(`- **URL:** ${E}`);if(C)q.push(`- **Language:** ${C}`);if(B)q.push(`- **Status:** ${B}`);if(q.length>0)A.push(...q),A.push(""),A.push("---"),A.push("");if(_)A.push(_);else A.push("*No transcript content available.*");return A.join(`
81
- `)}function DE(D){return D.cleanContent??D.content??D.transcript??""}function G2(D){D.command("export").description("Export a transcription as JSON, markdown, or text").argument("<id>","Transcription ID").option("--format <fmt>","Output format: json, markdown, text","json").option("--output <file>","Write to file instead of stdout").option("--json","Shorthand for --format json").addHelpText("after",`
77
+ `);if(Y)console.log(Y);else console.log("No analysis content available.")}catch(C){console.error(q.red("Error:")+" "+C.message),process.exitCode=1}})}function BE(D){if(D.analysis&&typeof D.analysis==="object")return D.analysis;if(D.data&&typeof D.data==="object")return D.data;return D}function B2(D){D.command("view").description("View a transcription").argument("<id>","Transcription ID").option("--raw","Print the full transcript").option("--clean","Use cleanContent instead of content").option("--json","Raw JSON output").action(async(u,F,E)=>{try{let C=await j()??{},B=P(F,E),{token:_,expired:A}=O(C,B);if(!_){console.error(A?"Token expired. Run `xevol login` to re-authenticate.":"Not logged in. Use xevol login --token <token> or set XEVOL_TOKEN."),process.exitCode=1;return}if(F.clean&&!F.raw){console.error("--clean can only be used with --raw."),process.exitCode=1;return}let Z=I(C),$=await L(`/v1/analysis/${u}`,{token:_,apiUrl:Z});if(F.json){w($);return}let X=BE($),J=c(X,["title","videoTitle","name"])??"Untitled",Q=c(X,["channel","channelTitle","author"])??"Unknown",G=c(X,["channelHandle","handle","channelTag"]),H=zD(X.duration??X.durationSec??X.durationSeconds),z=c(X,["lang","outputLang","language"])??"—",Y=c(X,["status","state"])??"—",M=c(X,["url","youtubeUrl","videoUrl"]);if(F.raw){let U=F.clean?"cleanContent":"content",V=X[U];if(!V){console.error("No transcript content available."),process.exitCode=1;return}console.log(V);return}let R=G?`${Q} (${G.startsWith("@")?G:`@${G}`})`:Q;if(console.log(q.bold(J)),console.log(`Channel: ${R}`),console.log(`Duration: ${H} | Lang: ${z} | Status: ${Y}`),M)console.log(`URL: ${M}`);console.log(YD());let K=X.summary??X.overview??X.analysis?.summary?.toString();if(K)console.log(K);else console.log("No summary available.");console.log(YD()),console.log("Full transcript: use --raw")}catch(C){console.error(q.red("Error:")+" "+C.message),process.exitCode=1}})}function _2(D){D.command("prompts").description("List available prompts").option("--json","Raw JSON output").option("--csv","CSV output").action(async(u,F)=>{try{let E=await j()??{},C=P(u,F),{token:B}=O(E,C),_=I(E),A=await L("/v1/prompts",{token:B??void 0,apiUrl:_}),Z=A.prompts??[];if(u.json){w(A);return}if(u.csv){let J=(Q)=>{let G=Q.replace(/\n/g," ");return G.includes(",")||G.includes('"')?`"${G.replace(/"/g,'""')}"`:G};console.log("ID,Description");for(let Q of Z)console.log([Q.id,Q.description??"—"].map(J).join(","));return}if(console.log(q.bold(`Available Prompts (${Z.length} total)`)),console.log(""),Z.length===0){console.log("No prompts found.");return}let $=(J,Q)=>{let G=J.replace(/[\r\n]+/g," ").replace(/\s+/g," ").trim();return G.length>Q?G.slice(0,Q-1)+"…":G},X=Z.map((J)=>[J.id,J.description?$(J.description,60):"—"]);console.log(rD(["ID","Description"],X))}catch(E){console.error(q.red("Error:")+" "+E.message),process.exitCode=1}})}function A2(D){D.command("resume").description("Resume a previous streaming session").argument("<id>","Transcription ID").option("--json","Raw JSON output").action(async(u,F,E)=>{try{let C=await j()??{},B=P(F,E),{token:_,expired:A}=O(C,B);if(!_){console.error(A?"Token expired. Run `xevol login` to re-authenticate.":"Not logged in. Use xevol login --token <token> or set XEVOL_TOKEN."),process.exitCode=1;return}let Z=I(C),$=await iF(u);if(!$){console.error(q.red(`No job state found for ${u}.`),"\nMake sure you previously ran `xevol add --stream --analyze` for this transcription."),process.exitCode=1;return}let X=$.lang??$.outputLang??"en";if(!F.json)console.log(q.bold(`Resuming job for transcription: ${u}`)),console.log(q.dim(`URL: ${$.url}`)),console.log(q.dim(`Analyses: ${$.spikes.length}`)),console.log();let J=[];for(let Q of $.spikes){if(Q.status==="complete"){if(!F.json)console.log(q.bold.cyan(`
78
+ ─── ${Q.promptId} ───`)),console.log(q.dim("(cached)"));try{let G=await L(`/spikes/${u}`,{method:"POST",body:{promptId:Q.promptId,outputLang:X},token:_,apiUrl:Z});if(F.json)J.push(G);else{let H=G.content??G.markdown??G.text??"";if(H)console.log(H);console.log(q.green("✔ Analysis complete: "+Q.promptId))}}catch(G){console.error(q.red(`Failed to fetch ${Q.promptId}: ${G.message}`))}continue}if(Q.status==="streaming"){if(!F.json)console.log(q.dim(`
79
+ Reconnecting to ${Q.promptId}...`));try{let G=await CD(Q.spikeId,_,Z,{json:F.json,lastEventId:Q.lastEventId,header:Q.promptId});if(Q.status="complete",Q.lastEventId=G.lastEventId,await l($),!F.json)console.log(q.green("✔ Analysis complete: "+Q.promptId));else J.push({spikeId:Q.spikeId,promptId:Q.promptId,content:G.content})}catch(G){console.error(q.red(`Analysis stream failed for ${Q.promptId}: ${G.message}`)),Q.status="error",await l($)}continue}if(Q.status==="pending"||Q.status==="error"){let G=x(`Starting analysis: ${Q.promptId}...`);try{let H=await L(`/spikes/${u}`,{method:"POST",body:{promptId:Q.promptId,outputLang:X},token:_,apiUrl:Z}),z=H.spikeId??Q.spikeId;Q.spikeId=z;let Y=H.content??H.markdown;if(Y){if(G.succeed(`Analysis ready: ${Q.promptId}`),!F.json)console.log(q.bold.cyan(`
80
+ ─── ${Q.promptId} ───`)),console.log(Y);if(Q.status="complete",await l($),F.json)J.push(H);continue}G.succeed(`Analysis started: ${Q.promptId}`),Q.status="streaming",await l($);let M=await CD(z,_,Z,{json:F.json,header:Q.promptId});if(Q.status="complete",Q.lastEventId=M.lastEventId,await l($),!F.json)console.log(q.green("✔ Analysis complete: "+Q.promptId));else J.push({spikeId:z,promptId:Q.promptId,content:M.content})}catch(H){G.fail(`Failed: ${Q.promptId} — ${H.message}`),Q.status="error",await l($)}}}if(F.json)w({transcriptionId:u,spikes:J});else console.log(q.green(`
81
+ ✔ All analyses resumed.`))}catch(C){console.error(q.red(C.message)),process.exitCode=1}})}import{promises as ku}from"fs";import _E from"os";import X2 from"path";var Z2=X2.join(_E.homedir(),".xevol"),q2=X2.join(Z2,"config.json"),$D={apiUrl:"Base API URL","default.lang":"Default output language for transcriptions","default.limit":"Default page size for list command","api.timeout":"API request timeout in milliseconds"};async function vu(){try{let D=await ku.readFile(q2,"utf8");return JSON.parse(D)}catch(D){if(D.code==="ENOENT")return{};if(D instanceof SyntaxError)return console.error(q.yellow("Warning:")+" config.json is corrupt, starting fresh."),{};throw D}}async function AE(D){await ku.mkdir(Z2,{recursive:!0});let u=JSON.stringify(D,null,2)+`
82
+ `;await ku.writeFile(q2,u,{encoding:"utf8",mode:384})}function $2(D,u){let F=u.split("."),E=D;for(let C of F){if(E===null||E===void 0||typeof E!=="object")return;E=E[C]}return E}function $E(D,u,F){let E=u.split("."),C=D;for(let B=0;B<E.length-1;B++){let _=E[B];if(C[_]===void 0||typeof C[_]!=="object")C[_]={};C=C[_]}C[E[E.length-1]]=F}function G2(D){let u=D.command("config",{hidden:!0}).description("Manage local CLI configuration");u.command("get").description("Get a config value").argument("<key>",`Config key (${Object.keys($D).join(", ")})`).action(async(F)=>{try{if(!(F in $D)){console.error(q.red("Error:")+` Unknown config key: ${F}`),console.error(`Allowed keys: ${Object.keys($D).join(", ")}`),process.exitCode=1;return}let E=await vu(),C=$2(E,F);if(C===void 0)console.log(q.dim("(not set)"));else console.log(String(C))}catch(E){console.error(q.red("Error:")+" "+E.message),process.exitCode=1}}),u.command("set").description("Set a config value").argument("<key>",`Config key (${Object.keys($D).join(", ")})`).argument("<value>","Value to set").action(async(F,E)=>{try{if(!(F in $D)){console.error(q.red("Error:")+` Unknown config key: ${F}`),console.error(`Allowed keys: ${Object.keys($D).join(", ")}`),process.exitCode=1;return}let C=await vu(),B=E;if(F==="default.limit"||F==="api.timeout"){let _=Number(E);if(!Number.isFinite(_)||_<=0){console.error(q.red("Error:")+` ${F} must be a positive number`),process.exitCode=1;return}B=_}$E(C,F,B),await AE(C),console.log(`${q.green("✔")} ${F} = ${E}`)}catch(C){console.error(q.red("Error:")+" "+C.message),process.exitCode=1}}),u.command("list").description("List all config values").action(async()=>{try{let F=await vu(),E=!1;for(let C of Object.keys($D)){let B=$2(F,C);if(B!==void 0)console.log(`${q.dim(C)} = ${B}`),E=!0}if(!E)console.log(q.dim("No config values set."))}catch(F){console.error(q.red("Error:")+" "+F.message),process.exitCode=1}})}function Q2(D){D.command("usage").description("Show usage stats and subscription info").option("--json","Raw JSON output").action(async(u,F)=>{try{let E=await j()??{},C=P(u,F),{token:B,expired:_}=O(E,C);if(!B){console.error(_?"Token expired. Run `xevol login` to re-authenticate.":"Not logged in. Use xevol login --token <token> or set XEVOL_TOKEN."),process.exitCode=1;return}let A=I(E),Z=x("Fetching usage data…"),$=await L("/auth/cli/status",{token:B,apiUrl:A});if(Z.stop(),u.json){w($);return}let X=$.plan??"free",J=$.status??"active",Q=$.period??"month",G=$.email??"",H=$.usage??{},z=$.limits??{},Y=$.current_period_end,M=H.transcriptions??0,R=z.transcriptions??"∞";if(console.log(""),console.log(` ${q.bold("Usage & Subscription")}`),console.log(""),G)console.log(` ${q.dim("Email:")} ${G}`);if(console.log(` ${q.dim("Plan:")} ${X}`),console.log(` ${q.dim("Status:")} ${J}`),console.log(` ${q.dim("Usage:")} ${M} / ${R} transcriptions (this ${Q})`),Y){let K=new Date(Y);if(!Number.isNaN(K.getTime())){let U=Math.max(0,Math.ceil((K.getTime()-Date.now())/86400000));console.log(` ${q.dim("Renews:")} ${K.toLocaleDateString()} (${U} days)`)}}console.log("")}catch(E){console.error(q.red("Error:")+" "+E.message),process.exitCode=1}})}import{promises as XE}from"fs";function ZE(D){let u=c(D,["title","videoTitle","name"])??"Untitled",F=c(D,["channel","channelTitle","author"])??"",E=c(D,["url","youtubeUrl","videoUrl"])??"",C=c(D,["lang","outputLang","language"])??"",B=c(D,["status","state"])??"",_=D.cleanContent??D.content??D.transcript??"",A=[];A.push(`# ${u}`),A.push("");let Z=[];if(F)Z.push(`- **Channel:** ${F}`);if(E)Z.push(`- **URL:** ${E}`);if(C)Z.push(`- **Language:** ${C}`);if(B)Z.push(`- **Status:** ${B}`);if(Z.length>0)A.push(...Z),A.push(""),A.push("---"),A.push("");if(_)A.push(_);else A.push("*No transcript content available.*");return A.join(`
83
+ `)}function qE(D){return D.cleanContent??D.content??D.transcript??""}function J2(D){D.command("export").description("Export a transcription as JSON, markdown, or text").argument("<id>","Transcription ID").option("--format <fmt>","Output format: json, markdown, text","json").option("--output <file>","Write to file instead of stdout").option("--json","Shorthand for --format json").addHelpText("after",`
82
84
  Examples:
83
85
  $ xevol export abc123
84
86
  $ xevol export abc123 --format markdown
85
87
  $ xevol export abc123 --format text --output transcript.txt
86
- $ xevol export abc123 --json > data.json`).action(async(u,F,E)=>{try{let C=await L()??{},B=y(F,E),{token:_,expired:A}=f(C,B);if(!_){console.error(A?"Token expired. Run `xevol login` to re-authenticate.":"Not logged in. Use xevol login --token <token> or set XEVOL_TOKEN."),process.exitCode=1;return}let q=F.json?"json":F.format??"json";if(!["json","markdown","text"].includes(q)){console.error(`Invalid format "${q}". Use: json, markdown, text`),process.exitCode=1;return}let $=b(C),Z=F.output?d("Fetching transcription…"):null,H=await I(`/v1/analysis/${u}`,{token:_,apiUrl:$}),X=H.analysis??H.data??H;Z?.stop();let G;if(q==="json")G=JSON.stringify(X,null,2);else if(q==="markdown")G=e8(X);else G=DE(X);if(!G.trim()){console.error(Q.yellow("No content available for this transcription.")),process.exitCode=1;return}if(F.output)await t8.writeFile(F.output,G,"utf-8"),console.error(Q.green("✓")+` Written to ${F.output}`);else if(process.stdout.write(G),!G.endsWith(`
88
+ $ xevol export abc123 --json > data.json`).action(async(u,F,E)=>{try{let C=await j()??{},B=P(F,E),{token:_,expired:A}=O(C,B);if(!_){console.error(A?"Token expired. Run `xevol login` to re-authenticate.":"Not logged in. Use xevol login --token <token> or set XEVOL_TOKEN."),process.exitCode=1;return}let Z=F.json?"json":F.format??"json";if(!["json","markdown","text"].includes(Z)){console.error(`Invalid format "${Z}". Use: json, markdown, text`),process.exitCode=1;return}let $=I(C),X=F.output?x("Fetching transcription…"):null,J=await L(`/v1/analysis/${u}`,{token:_,apiUrl:$}),Q=J.analysis??J.data??J;X?.stop();let G;if(Z==="json")G=JSON.stringify(Q,null,2);else if(Z==="markdown")G=ZE(Q);else G=qE(Q);if(!G.trim()){console.error(q.yellow("No content available for this transcription.")),process.exitCode=1;return}if(F.output)await XE.writeFile(F.output,G,"utf-8"),console.error(q.green("✓")+` Written to ${F.output}`);else if(process.stdout.write(G),!G.endsWith(`
87
89
  `))process.stdout.write(`
88
- `)}catch(C){console.error(Q.red("Error:")+" "+C.message),process.exitCode=1}})}var X2=[" ██ "," ██ ██ ▄█▀█▄ ██ ██ ▄███▄ ██ "," ███ ██▄█▀ ██▄██ ██ ██ ██ "," ██ ██ ▀█▄▄▄ ▀█▀ ▀███▀ ██"],Q2=[Q.cyan,Q.cyan,Q.cyanBright,Q.greenBright,Q.green,Q.green];async function fu(D){let F=(await L())?.email;console.log();for(let C=0;C<X2.length;C++){let B=Q2[C%Q2.length];console.log(B(X2[C]))}let E=[];if(E.push(Q.dim(`v${D}`)),F)E.push(Q.dim(F));else E.push(Q.dim.italic("not logged in"));console.log(` ${E.join(Q.dim(" · "))}`),console.log()}var FE=uE(import.meta.url),{version:yu}=FE("../package.json"),EE=new Set(["login","config","export"]);function CE(){let D=process.argv.slice(2);if(D.some((F)=>F==="--help"||F==="-h"||F==="--version"||F==="-V"||F==="--json"))return!1;let u=D.find((F)=>!F.startsWith("-"));if(u&&EE.has(u))return!1;return!0}var c=new u0;c.name("xevol").description("Xevol is a tool to consume, remix, make, publish, and offer systems, products, and workflows.").version(yu).option("--token <token>","Override auth token").option("--no-color","Disable colored output").hook("preAction",async()=>{if(c.opts().color===!1)Q.level=0;if(CE())await fu(yu)});oF(c);eF(c);sF(c);F2(c);u2(c);E2(c);nF(c);C2(c);q2(c);Z2(c);G2(c);var BE=process.argv.slice(2);if(BE.length===0)await fu(yu),c.help();else await c.parseAsync(process.argv);
90
+ `)}catch(C){console.error(q.red("Error:")+" "+C.message),process.exitCode=1}})}import{createInterface as GE}from"readline";async function QE(){let D=GE({input:process.stdin,output:process.stdout}),u=await new Promise((F)=>{D.question("Are you sure? ",(E)=>F(E))});return D.close(),["y","yes"].includes(u.trim().toLowerCase())}function H2(D){D.command("delete").description("Delete a transcription").argument("<id>","Transcription ID").option("--force","Skip confirmation").option("--json","Raw JSON output").action(async(u,F,E)=>{try{let C=await j()??{},B=P(F,E),{token:_,expired:A}=O(C,B);if(!_){console.error(A?"Token expired. Run `xevol login` to re-authenticate.":"Not logged in. Use xevol login --token <token> or set XEVOL_TOKEN."),process.exitCode=1;return}if(!F.force){if(!await QE()){console.error("Aborted."),process.exitCode=1;return}}let Z=I(C),$=x("Deleting transcription…"),X=await L(`/v1/transcriptions/${u}`,{method:"DELETE",token:_,apiUrl:Z});if($.stop(),F.json){w(X);return}console.log(q.green("✓")+` Deleted ${u}`)}catch(C){console.error(q.red("Error:")+" "+C.message),process.exitCode=1}})}import{exec as JE}from"child_process";function HE(D){if(process.platform==="darwin")return`open "${D}"`;if(process.platform==="win32")return`start "" "${D}"`;return`xdg-open "${D}"`}function z2(D){D.command("open").description("Open a transcription in the browser").argument("<id>","Transcription ID").action((u)=>{let F=`https://xevol.com/t/${u}`;console.error(F);let E=HE(F);JE(E,(C)=>{if(C)console.error(q.red("Error:")+" "+C.message),process.exitCode=1})})}function Y2(D){return D.workspaces??D.data??D.list??D.items??D.results??[]}function v(D){if(typeof D==="string"&&D.trim().length>0)return D;if(typeof D==="number"&&Number.isFinite(D))return String(D);return}function K2(D){return v(D.id)??v(D.workspaceId)??v(D._id)??v(D.slug)}function M2(D){return v(D.name)??v(D.title)??v(D.workspaceName)??"-"}function zE(D){return v(D.role)??v(D.userRole)??v(D.memberRole)??v(D.permission)??"-"}function lD(D){let u=v(D);if(u)return u;if(D&&typeof D==="object"){let F=D,E=v(F.amount)??v(F.balance)??v(F.credits)??v(F.remaining);if(E){let C=v(F.currency);return C?`${E} ${C}`:E}}return}function YE(D){return lD(D.balance)??lD(D.creditBalance)??lD(D.credits)??lD(D.remainingCredits)??"-"}function KE(D){let u=[D.memberCount,D.membersCount,D.members,D.usersCount,D.userCount];for(let F of u){if(Array.isArray(F))return String(F.length);let E=v(F);if(E)return E;if(F&&typeof F==="object"){let C=F,B=v(C.count)??v(C.total)??v(C.members);if(B)return B}}return"-"}function R2(D){let u=D.command("workspace").description("Manage workspaces");u.command("list").description("List available workspaces").option("--json","Raw JSON output").action(async(F,E)=>{try{let C=await j()??{},B=P(F,E),{token:_,expired:A}=O(C,B);if(!_){console.error(A?"Token expired. Run `xevol login` to re-authenticate.":"Not logged in. Use xevol login --token <token> or set XEVOL_TOKEN."),process.exitCode=1;return}let Z=I(C),$=x("Fetching workspaces..."),X=await L("/v1/workspaces",{token:_,apiUrl:Z});if($.stop(),F.json){w(X);return}let J=Y2(X),Q=C.workspaceId;if(console.log(""),console.log(` ${q.bold("Workspaces")} ${q.dim(`${J.length} total`)}`),console.log(""),J.length===0){console.log(" No workspaces found."),console.log("");return}let G=J.map((H)=>{let z=K2(H)??"-",Y=M2(H);if(Q&&z!=="-"&&z===Q)Y=`${Y} (active)`;let M=zE(H),R=YE(H),K=KE(H);return[z,Y,M,R,K]});console.log(rD(["ID","Name","Role","Balance","Members"],G)),console.log("")}catch(C){console.error(q.red("Error:")+" "+C.message),process.exitCode=1}}),u.command("switch").description("Switch active workspace").argument("<id>","Workspace ID").action(async(F,E,C)=>{try{let B=await j()??{},_=P(E,C),{token:A,expired:Z}=O(B,_);if(!A){console.error(Z?"Token expired. Run `xevol login` to re-authenticate.":"Not logged in. Use xevol login --token <token> or set XEVOL_TOKEN."),process.exitCode=1;return}let $=I(B),X=x("Validating workspace..."),J=await L("/v1/workspaces",{token:A,apiUrl:$});X.stop();let G=Y2(J).find((Y)=>K2(Y)===F);if(!G){console.error(q.red("Error:")+` Workspace not found: ${F}`),process.exitCode=1;return}await UD({workspaceId:F});let H=M2(G);console.log(`Switched to workspace ${H==="-"?"Unknown":H} (${F})`)}catch(B){console.error(q.red("Error:")+" "+B.message),process.exitCode=1}})}var U2=[" ██ "," ██ ██ ▄█▀█▄ ██ ██ ▄███▄ ██ "," ███ ██▄█▀ ██▄██ ██ ██ ██ "," ██ ██ ▀█▄▄▄ ▀█▀ ▀███▀ ██"],V2=[q.cyan,q.cyan,q.cyanBright,q.greenBright,q.green,q.green];async function xu(D){let F=(await j())?.email;console.log();for(let C=0;C<U2.length;C++){let B=V2[C%V2.length];console.log(B(U2[C]))}let E=[];if(E.push(q.dim(`v${D}`)),F)E.push(q.dim(F));else E.push(q.dim.italic("not logged in"));console.log(` ${E.join(q.dim(" · "))}`),console.log()}var RE=ME(import.meta.url),{version:hu}=RE("../package.json"),UE=new Set(["login","config","export","delete","open","workspace"]);function VE(){let D=process.argv.slice(2);if(D.some((F)=>F==="--help"||F==="-h"||F==="--version"||F==="-V"||F==="--json"))return!1;let u=D.find((F)=>!F.startsWith("-"));if(u&&UE.has(u))return!1;return!0}var g=new B0;g.name("xevol").description("Xevol is a tool to consume, remix, make, publish, and offer systems, products, and workflows.").version(hu).option("--token <token>","Override auth token").option("--no-color","Disable colored output").hook("preAction",async()=>{if(g.opts().color===!1)q.level=0;if(VE())await xu(hu)});D2(g);F2(g);eF(g);B2(g);C2(g);_2(g);oF(g);A2(g);G2(g);Q2(g);J2(g);H2(g);z2(g);R2(g);var NE=process.argv.slice(2);if(NE.length===0)await xu(hu),g.help();else await g.parseAsync(process.argv);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xevol",
3
- "version": "0.3.1",
3
+ "version": "0.5.0",
4
4
  "description": "Xevol is a tool to consume, remix, make, publish, and offer systems, products, and workflows.",
5
5
  "type": "module",
6
6
  "bin": {