@mahameru/cli 0.0.2 → 0.0.3

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 +657 -260
  2. package/package.json +49 -48
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * ┌────────────────────────────────────────────┐
4
4
  * │ │
5
5
  * │ ▲ MahameruJS - CLI UTILITY │
6
- * │ Version: 0.0.2
6
+ * │ Version: 0.0.3
7
7
  * │ Built: 2026 │
8
8
  * │ │
9
9
  * │ Copyright (c) Bintan <hello@bintvn.co> │
@@ -11,30 +11,31 @@
11
11
  * │ │
12
12
  * └────────────────────────────────────────────┘
13
13
  */
14
- import{parseArgs as e,stripVTControlCharacters as t}from"node:util";import{spawn as r}from"node:child_process"
15
- ;import{join as i}from"node:path";import{existsSync as s}from"node:fs";import{default as n}from"node:process"
16
- ;import{default as o}from"node:os";import{default as a}from"node:tty";import{pathToFileURL as l}from"node:url";var c={
17
- 991(e){
18
- let t=process||{},r=t.argv||[],i=t.env||{},s=!(i.NO_COLOR||r.includes("--no-color"))&&(!!i.FORCE_COLOR||r.includes("--color")||"win32"===t.platform||(t.stdout||{}).isTTY&&"dumb"!==i.TERM||!!i.CI),n=(e,t,r=e)=>i=>{
19
- let s=""+i,n=s.indexOf(t,e.length);return~n?e+o(s,t,r,n)+t:e+s+t},o=(e,t,r,i)=>{let s="",n=0;do{s+=e.substring(n,i)+r,
20
- n=i+t.length,i=e.indexOf(t,n)}while(~i);return s+e.substring(n)},a=(e=s)=>{let t=e?n:()=>String;return{
21
- isColorSupported:e,reset:t("",""),bold:t("","",""),dim:t("","",""),
22
- italic:t("",""),underline:t("",""),inverse:t("",""),hidden:t("",""),
23
- strikethrough:t("",""),black:t("",""),red:t("",""),green:t("",""),
24
- yellow:t("",""),blue:t("",""),magenta:t("",""),cyan:t("",""),
25
- white:t("",""),gray:t("",""),bgBlack:t("",""),bgRed:t("",""),
26
- bgGreen:t("",""),bgYellow:t("",""),bgBlue:t("",""),bgMagenta:t("",""),
27
- bgCyan:t("",""),bgWhite:t("",""),blackBright:t("",""),redBright:t("",""),
28
- greenBright:t("",""),yellowBright:t("",""),blueBright:t("",""),
29
- magentaBright:t("",""),cyanBright:t("",""),whiteBright:t("",""),
30
- bgBlackBright:t("",""),bgRedBright:t("",""),bgGreenBright:t("",""),
31
- bgYellowBright:t("",""),bgBlueBright:t("",""),bgMagentaBright:t("",""),
32
- bgCyanBright:t("",""),bgWhiteBright:t("","")}};e.exports=a(),e.exports.createColors=a}},h={}
33
- ;function u(e){var t=h[e];if(void 0!==t)return t.exports;var r=h[e]={exports:{}};return c[e](r,r.exports,u),r.exports}
34
- u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{
35
- for(var r in t)u.o(t,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},
36
- u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const f={rE:"0.0.2"
37
- },m=(e=0)=>t=>`[${t+e}m`,d=(e=0)=>t=>`[${38+e};5;${t}m`,p=(e=0)=>(t,r,i)=>`[${38+e};2;${t};${r};${i}m`,_={modifier:{
14
+ import{default as t,spawn as e}from"node:child_process";import{default as i,join as r}from"node:path"
15
+ ;import{default as s,existsSync as n}from"node:fs";import{default as o}from"node:process"
16
+ ;import{stripVTControlCharacters as a}from"node:util";import{default as l}from"node:os"
17
+ ;import{default as h}from"node:tty";import{pathToFileURL as u}from"node:url";import{EventEmitter as c}from"node:events"
18
+ ;var p={991(t){
19
+ let e=process||{},i=e.argv||[],r=e.env||{},s=!(r.NO_COLOR||i.includes("--no-color"))&&(!!r.FORCE_COLOR||i.includes("--color")||"win32"===e.platform||(e.stdout||{}).isTTY&&"dumb"!==r.TERM||!!r.CI),n=(t,e,i=t)=>r=>{
20
+ let s=""+r,n=s.indexOf(e,t.length);return~n?t+o(s,e,i,n)+e:t+s+e},o=(t,e,i,r)=>{let s="",n=0;do{s+=t.substring(n,r)+i,
21
+ n=r+e.length,r=t.indexOf(e,n)}while(~r);return s+t.substring(n)},a=(t=s)=>{let e=t?n:()=>String;return{
22
+ isColorSupported:t,reset:e("",""),bold:e("","",""),dim:e("","",""),
23
+ italic:e("",""),underline:e("",""),inverse:e("",""),hidden:e("",""),
24
+ strikethrough:e("",""),black:e("",""),red:e("",""),green:e("",""),
25
+ yellow:e("",""),blue:e("",""),magenta:e("",""),cyan:e("",""),
26
+ white:e("",""),gray:e("",""),bgBlack:e("",""),bgRed:e("",""),
27
+ bgGreen:e("",""),bgYellow:e("",""),bgBlue:e("",""),bgMagenta:e("",""),
28
+ bgCyan:e("",""),bgWhite:e("",""),blackBright:e("",""),redBright:e("",""),
29
+ greenBright:e("",""),yellowBright:e("",""),blueBright:e("",""),
30
+ magentaBright:e("",""),cyanBright:e("",""),whiteBright:e("",""),
31
+ bgBlackBright:e("",""),bgRedBright:e("",""),bgGreenBright:e("",""),
32
+ bgYellowBright:e("",""),bgBlueBright:e("",""),bgMagentaBright:e("",""),
33
+ bgCyanBright:e("",""),bgWhiteBright:e("","")}};t.exports=a(),t.exports.createColors=a}},m={}
34
+ ;function d(t){var e=m[t];if(void 0!==e)return e.exports;var i=m[t]={exports:{}};return p[t](i,i.exports,d),i.exports}
35
+ d.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return d.d(e,{a:e}),e},d.d=(t,e)=>{
36
+ for(var i in e)d.o(e,i)&&!d.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},
37
+ d.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);const f={rE:"0.0.3"
38
+ },g=(t=0)=>e=>`[${e+t}m`,_=(t=0)=>e=>`[${38+t};5;${e}m`,v=(t=0)=>(e,i,r)=>`[${38+t};2;${e};${i};${r}m`,b={modifier:{
38
39
  reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],
39
40
  strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],
40
41
  cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],
@@ -42,240 +43,636 @@ yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39]
42
43
  bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],
43
44
  bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],
44
45
  bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}}
45
- ;Object.keys(_.modifier),Object.keys(_.color),Object.keys(_.bgColor);const g=function(){const e=new Map
46
- ;for(const[t,r]of Object.entries(_)){for(const[t,i]of Object.entries(r))_[t]={open:`[${i[0]}m`,close:`[${i[1]}m`},
47
- r[t]=_[t],e.set(i[0],i[1]);Object.defineProperty(_,t,{value:r,enumerable:!1})}return Object.defineProperty(_,"codes",{
48
- value:e,enumerable:!1}),_.color.close="",_.bgColor.close="",_.color.ansi=m(),_.color.ansi256=d(),
49
- _.color.ansi16m=p(),_.bgColor.ansi=m(10),_.bgColor.ansi256=d(10),_.bgColor.ansi16m=p(10),Object.defineProperties(_,{
46
+ ;Object.keys(b.modifier),Object.keys(b.color),Object.keys(b.bgColor);const O=function(){const t=new Map
47
+ ;for(const[e,i]of Object.entries(b)){for(const[e,r]of Object.entries(i))b[e]={open:`[${r[0]}m`,close:`[${r[1]}m`},
48
+ i[e]=b[e],t.set(r[0],r[1]);Object.defineProperty(b,e,{value:i,enumerable:!1})}return Object.defineProperty(b,"codes",{
49
+ value:t,enumerable:!1}),b.color.close="",b.bgColor.close="",b.color.ansi=g(),b.color.ansi256=_(),
50
+ b.color.ansi16m=v(),b.bgColor.ansi=g(10),b.bgColor.ansi256=_(10),b.bgColor.ansi16m=v(10),Object.defineProperties(b,{
50
51
  rgbToAnsi256:{
51
- value:(e,t,r)=>e===t&&t===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(r/255*5),
52
- enumerable:!1},hexToRgb:{value(e){const t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[r]=t
53
- ;3===r.length&&(r=[...r].map(e=>e+e).join(""));const i=Number.parseInt(r,16);return[i>>16&255,i>>8&255,255&i]},
54
- enumerable:!1},hexToAnsi256:{value:e=>_.rgbToAnsi256(..._.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){
55
- if(e<8)return 30+e;if(e<16)return e-8+90;let t,r,i;if(e>=232)t=(10*(e-232)+8)/255,r=t,i=t;else{const s=(e-=16)%36
56
- ;t=Math.floor(e/36)/5,r=Math.floor(s/6)/5,i=s%6/5}const s=2*Math.max(t,r,i);if(0===s)return 30
57
- ;let n=30+(Math.round(i)<<2|Math.round(r)<<1|Math.round(t));return 2===s&&(n+=60),n},enumerable:!1},rgbToAnsi:{
58
- value:(e,t,r)=>_.ansi256ToAnsi(_.rgbToAnsi256(e,t,r)),enumerable:!1},hexToAnsi:{
59
- value:e=>_.ansi256ToAnsi(_.hexToAnsi256(e)),enumerable:!1}}),_}(),b=g
60
- ;function v(e,t=(globalThis.Deno?globalThis.Deno.args:n.argv)){
61
- const r=e.startsWith("-")?"":1===e.length?"-":"--",i=t.indexOf(r+e),s=t.indexOf("--");return-1!==i&&(-1===s||i<s)}
62
- const{env:x}=n;let T;function y(e,{streamIsTTY:t,sniffFlags:r=!0}={}){const i=function(){
63
- if("FORCE_COLOR"in x)return"true"===x.FORCE_COLOR?1:"false"===x.FORCE_COLOR?0:0===x.FORCE_COLOR.length?1:Math.min(Number.parseInt(x.FORCE_COLOR,10),3)
64
- }();void 0!==i&&(T=i);const s=r?T:i;if(0===s)return 0;if(r){
65
- if(v("color=16m")||v("color=full")||v("color=truecolor"))return 3;if(v("color=256"))return 2}
66
- if("TF_BUILD"in x&&"AGENT_NAME"in x)return 1;if(e&&!t&&void 0===s)return 0;const a=s||0;if("dumb"===x.TERM)return a
67
- ;if("win32"===n.platform){const e=o.release().split(".")
68
- ;return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}
69
- if("CI"in x)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(e=>e in x)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(e=>e in x)||"codeship"===x.CI_NAME?1:a
70
- ;if("TEAMCITY_VERSION"in x)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(x.TEAMCITY_VERSION)?1:0
71
- ;if("truecolor"===x.COLORTERM)return 3;if("xterm-kitty"===x.TERM)return 3;if("xterm-ghostty"===x.TERM)return 3
72
- ;if("wezterm"===x.TERM)return 3;if("TERM_PROGRAM"in x){
73
- const e=Number.parseInt((x.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(x.TERM_PROGRAM){case"iTerm.app":
74
- return e>=3?3:2;case"Apple_Terminal":return 2}}
75
- return/-256(color)?$/i.test(x.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(x.TERM)||"COLORTERM"in x?1:a
76
- }function w(e,t={}){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(y(e,{
77
- streamIsTTY:e&&e.isTTY,...t}))}
78
- v("no-color")||v("no-colors")||v("color=false")||v("color=never")?T=0:(v("color")||v("colors")||v("color=true")||v("color=always"))&&(T=1)
79
- ;const E={stdout:w({isTTY:a.isatty(1)}),stderr:w({isTTY:a.isatty(2)})};function S(e,t,r){let i=e.indexOf(t)
80
- ;if(-1===i)return e;const s=t.length;let n=0,o="";do{o+=e.slice(n,i)+t+r,n=i+s,i=e.indexOf(t,n)}while(-1!==i)
81
- ;return o+=e.slice(n),o}
82
- const{stdout:O,stderr:R}=E,I=Symbol("GENERATOR"),C=Symbol("STYLER"),P=Symbol("IS_EMPTY"),B=["ansi","ansi","ansi256","ansi16m"],M=Object.create(null)
83
- ;const A=e=>{const t=(...e)=>e.join(" ");return((e,t={})=>{
84
- if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3")
85
- ;const r=O?O.level:0;e.level=void 0===t.level?r:t.level})(t,e),Object.setPrototypeOf(t,j.prototype),t};function j(e){
86
- return A(e)}Object.setPrototypeOf(j.prototype,Function.prototype);for(const[e,t]of Object.entries(b))M[e]={get(){
87
- const r=N(this,W(t.open,t.close,this[C]),this[P]);return Object.defineProperty(this,e,{value:r}),r}};M.visible={get(){
88
- const e=N(this,this[C],!0);return Object.defineProperty(this,"visible",{value:e}),e}}
89
- ;const k=(e,t,r,...i)=>"rgb"===e?"ansi16m"===t?b[r].ansi16m(...i):"ansi256"===t?b[r].ansi256(b.rgbToAnsi256(...i)):b[r].ansi(b.rgbToAnsi(...i)):"hex"===e?k("rgb",t,r,...b.hexToRgb(...i)):b[r][e](...i),L=["rgb","hex","ansi256"]
90
- ;for(const e of L){M[e]={get(){const{level:t}=this;return function(...r){
91
- const i=W(k(e,B[t],"color",...r),b.color.close,this[C]);return N(this,i,this[P])}}}
92
- ;M["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...r){
93
- const i=W(k(e,B[t],"bgColor",...r),b.bgColor.close,this[C]);return N(this,i,this[P])}}}}
94
- const G=Object.defineProperties(()=>{},{...M,level:{enumerable:!0,get(){return this[I].level},set(e){this[I].level=e}}
95
- }),W=(e,t,r)=>{let i,s;return void 0===r?(i=e,s=t):(i=r.openAll+e,s=t+r.closeAll),{open:e,close:t,openAll:i,closeAll:s,
96
- parent:r}},N=(e,t,r)=>{const i=(...e)=>$(i,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(i,G),i[I]=e,
97
- i[C]=t,i[P]=r,i},$=(e,t)=>{if(e.level<=0||!t)return e[P]?"":t;let r=e[C];if(void 0===r)return t
98
- ;const{openAll:i,closeAll:s}=r;if(t.includes(""))for(;void 0!==r;)t=S(t,r.close,r.open),r=r.parent
99
- ;const n=t.indexOf("\n");return-1!==n&&(t=function(e,t,r,i){let s=0,n="";do{const o="\r"===e[i-1]
100
- ;n+=e.slice(s,o?i-1:i)+t+(o?"\r\n":"\n")+r,s=i+1,i=e.indexOf("\n",s)}while(-1!==i);return n+=e.slice(s),n}(t,s,i,n)),
101
- i+t+s};Object.defineProperties(j.prototype,M);const F=j(),Y=(j({level:R?R.level:0}),F),D=(e,t,r,i)=>{
102
- if("length"===r||"prototype"===r)return;if("arguments"===r||"caller"===r)return
103
- ;const s=Object.getOwnPropertyDescriptor(e,r),n=Object.getOwnPropertyDescriptor(t,r)
104
- ;!H(s,n)&&i||Object.defineProperty(e,r,n)},H=function(e,t){
105
- return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)
106
- },U=(e,t)=>`/* Wrapped ${e}*/\n${t}`,V=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),q=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name")
107
- ;function z(e,t,{ignoreNonConfigurable:r=!1}={}){const{name:i}=e;for(const i of Reflect.ownKeys(t))D(e,t,i,r)
108
- ;return((e,t)=>{const r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r)})(e,t),
109
- ((e,t,r)=>{const i=""===r?"":`with ${r.trim()}() `,s=U.bind(null,i,t.toString());Object.defineProperty(s,"name",q)
110
- ;const{writable:n,enumerable:o,configurable:a}=V;Object.defineProperty(e,"toString",{value:s,writable:n,enumerable:o,
111
- configurable:a})})(e,t,i),e}const J=new WeakMap,K=(e,t={})=>{
112
- if("function"!=typeof e)throw new TypeError("Expected a function");let r,i=0
113
- ;const s=e.displayName||e.name||"<anonymous>",n=function(...o){if(J.set(n,++i),1===i)r=e.apply(this,o),
114
- e=void 0;else if(!0===t.throw)throw new Error(`Function \`${s}\` can only be called once`);return r};return z(n,e),
115
- J.set(n,i),n};K.callCount=e=>{
116
- if(!J.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`)
117
- ;return J.get(e)};const Q=K,X=[]
118
- ;X.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&X.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),
119
- "linux"===process.platform&&X.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT")
120
- ;const Z=e=>!!e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on,ee=Symbol.for("signal-exit emitter"),te=globalThis,re=Object.defineProperty.bind(Object)
121
- ;class ie{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){
122
- if(te[ee])return te[ee];re(te,ee,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){
123
- this.listeners[e].push(t)}removeListener(e,t){const r=this.listeners[e],i=r.indexOf(t)
124
- ;-1!==i&&(0===i&&1===r.length?r.length=0:r.splice(i,1))}emit(e,t,r){if(this.emitted[e])return!1;this.emitted[e]=!0
125
- ;let i=!1;for(const s of this.listeners[e])i=!0===s(t,r)||i;return"exit"===e&&(i=this.emit("afterExit",t,r)||i),i}}
126
- class se{}const ne=globalThis.process,{onExit:oe,load:ae,unload:le}=(ce=Z(ne)?new class extends se{
127
- #e="win32"===ne.platform?"SIGINT":"SIGHUP";#t=new ie;#r;#i;#s;#n={};#o=!1;constructor(e){super(),this.#r=e,this.#n={}
128
- ;for(const t of X)this.#n[t]=()=>{const r=this.#r.listeners(t);let{count:i}=this.#t;const s=e
129
- ;if("object"==typeof s.__signal_exit_emitter__&&"number"==typeof s.__signal_exit_emitter__.count&&(i+=s.__signal_exit_emitter__.count),
130
- r.length===i){this.unload();const r=this.#t.emit("exit",null,t),i="SIGHUP"===t?this.#e:t;r||e.kill(e.pid,i)}}
131
- ;this.#s=e.reallyExit,this.#i=e.emit}onExit(e,t){if(!Z(this.#r))return()=>{};!1===this.#o&&this.load()
132
- ;const r=t?.alwaysLast?"afterExit":"exit";return this.#t.on(r,e),()=>{this.#t.removeListener(r,e),
133
- 0===this.#t.listeners.exit.length&&0===this.#t.listeners.afterExit.length&&this.unload()}}load(){if(!this.#o){
134
- this.#o=!0,this.#t.count+=1;for(const e of X)try{const t=this.#n[e];t&&this.#r.on(e,t)}catch(e){}
135
- this.#r.emit=(e,...t)=>this.#a(e,...t),this.#r.reallyExit=e=>this.#l(e)}}unload(){this.#o&&(this.#o=!1,X.forEach(e=>{
136
- const t=this.#n[e];if(!t)throw new Error("Listener not defined for signal: "+e);try{this.#r.removeListener(e,t)
137
- }catch(e){}}),this.#r.emit=this.#i,this.#r.reallyExit=this.#s,this.#t.count-=1)}#l(e){
138
- return Z(this.#r)?(this.#r.exitCode=e||0,this.#t.emit("exit",this.#r.exitCode,null),
139
- this.#s.call(this.#r,this.#r.exitCode)):0}#a(e,...t){const r=this.#i;if("exit"===e&&Z(this.#r)){
140
- "number"==typeof t[0]&&(this.#r.exitCode=t[0]);const i=r.call(this.#r,e,...t)
141
- ;return this.#t.emit("exit",this.#r.exitCode,null),i}return r.call(this.#r,e,...t)}}(ne):new class extends se{onExit(){
142
- return()=>{}}load(){}unload(){}},{onExit:(e,t)=>ce.onExit(e,t),load:()=>ce.load(),unload:()=>ce.unload()});var ce
143
- ;const he=n.stderr.isTTY?n.stderr:n.stdout.isTTY?n.stdout:void 0,ue=he?Q(()=>{oe(()=>{he.write("[?25h")},{alwaysLast:!0
144
- })}):()=>{};let fe=!1;const me={show:(e=n.stderr)=>{e.isTTY&&(fe=!1,e.write("[?25h"))},hide:(e=n.stderr)=>{
145
- e.isTTY&&(ue(),fe=!0,e.write("[?25l"))},toggle:(e,t)=>{void 0!==e&&(fe=e),fe?me.show(t):me.hide(t)}
146
- },de=me,pe=JSON.parse('{"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":["⣼","⣹","⢻","⠿","⡟","⣏","⣧","⣶"]},"dots14":{"interval":80,"frames":["⠉⠉","⠈⠙","⠀⠹","⠀⢸","⠀⣰","⢀⣠","⣀⣀","⣄⡀","⣆⠀","⡇⠀","⠏⠀","⠋⠁"]},"dots8Bit":{"interval":80,"frames":["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},"dotsCircle":{"interval":80,"frames":["⢎ ","⠎⠁","⠊⠑","⠈⠱"," ⡱","⢀⡰","⢄⡠","⢆⡀"]},"sand":{"interval":80,"frames":["⠁","⠂","⠄","⡀","⡈","⡐","⡠","⣀","⣁","⣂","⣄","⣌","⣔","⣤","⣥","⣦","⣮","⣶","⣷","⣿","⡿","⠿","⢟","⠟","⡛","⠛","⠫","⢋","⠋","⠍","⡉","⠉","⠑","⠡","⢁"]},"line":{"interval":130,"frames":["-","\\\\","|","/"]},"line2":{"interval":100,"frames":["⠂","-","–","—","–","-"]},"rollingLine":{"interval":80,"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":[" ██████£££ ","☺██████£££ ","☺██████£££ ","☺▓█████£££ ","☺▓█████£££ ","☺▒█████£££ ","☺▒█████£££ ","☺░█████£££ ","☺░█████£££ ","☺ █████£££ "," ☺█████£££ "," ☺█████£££ "," ☺▓████£££ "," ☺▓████£££ "," ☺▒████£££ "," ☺▒████£££ "," ☺░████£££ "," ☺░████£££ "," ☺ ████£££ "," ☺████£££ "," ☺████£££ "," ☺▓███£££ "," ☺▓███£££ "," ☺▒███£££ "," ☺▒███£££ "," ☺░███£££ "," ☺░███£££ "," ☺ ███£££ "," ☺███£££ "," ☺███£££ "," ☺▓██£££ "," ☺▓██£££ "," ☺▒██£££ "," ☺▒██£££ "," ☺░██£££ "," ☺░██£££ "," ☺ ██£££ "," ☺██£££ "," ☺██£££ "," ☺▓█£££ "," ☺▓█£££ "," ☺▒█£££ "," ☺▒█£££ "," ☺░█£££ "," ☺░█£££ "," ☺ █£££ "," ☺█£££ "," ☺█£££ "," ☺▓£££ "," ☺▓£££ "," ☺▒£££ "," ☺▒£££ "," ☺░£££ "," ☺░£££ "," ☺ £££ "," ☺£££ "," ☺£££ "," ☺▓££ "," ☺▓££ "," ☺▒££ "," ☺▒££ "," ☺░££ "," ☺░££ "," ☺ ££ "," ☺££ "," ☺££ "," ☺▓£ "," ☺▓£ "," ☺▒£ "," ☺▒£ "," ☺░£ "," ☺░£ "," ☺ £ "," ☺£ "," ☺£ "," ☺▓ "," ☺▓ "," ☺▒ "," ☺▒ "," ☺░ "," ☺░ "," ☺ "," ☺ &"," ☺ ☼&"," ☺ ☼ &"," ☺☼ &"," ☺☼ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & ","‼ & "," & "," & "," & ░ "," & ▒ "," & ▓ "," & £ "," & ░£ "," & ▒£ "," & ▓£ "," & ££ "," & ░££ "," & ▒££ ","& ▓££ ","& £££ "," ░£££ "," ▒£££ "," ▓£££ "," █£££ "," ░█£££ "," ▒█£££ "," ▓█£££ "," ██£££ "," ░██£££ "," ▒██£££ "," ▓██£££ "," ███£££ "," ░███£££ "," ▒███£££ "," ▓███£££ "," ████£££ "," ░████£££ "," ▒████£££ "," ▓████£££ "," █████£££ "," ░█████£££ "," ▒█████£££ "," ▓█████£££ "," ██████£££ "," ██████£££ "]},"fish":{"interval":80,"frames":["~~~~~~~~~~~~~~~~~~~~","> ~~~~~~~~~~~~~~~~~~","º> ~~~~~~~~~~~~~~~~~","(º> ~~~~~~~~~~~~~~~~","((º> ~~~~~~~~~~~~~~~","<((º> ~~~~~~~~~~~~~~","><((º> ~~~~~~~~~~~~~"," ><((º> ~~~~~~~~~~~~","~ ><((º> ~~~~~~~~~~~","~~ <>((º> ~~~~~~~~~~","~~~ ><((º> ~~~~~~~~~","~~~~ <>((º> ~~~~~~~~","~~~~~ ><((º> ~~~~~~~","~~~~~~ <>((º> ~~~~~~","~~~~~~~ ><((º> ~~~~~","~~~~~~~~ <>((º> ~~~~","~~~~~~~~~ ><((º> ~~~","~~~~~~~~~~ <>((º> ~~","~~~~~~~~~~~ ><((º> ~","~~~~~~~~~~~~ <>((º> ","~~~~~~~~~~~~~ ><((º>","~~~~~~~~~~~~~~ <>((º","~~~~~~~~~~~~~~~ ><((","~~~~~~~~~~~~~~~~ <>(","~~~~~~~~~~~~~~~~~ ><","~~~~~~~~~~~~~~~~~~ <","~~~~~~~~~~~~~~~~~~~~"]}}')
147
- ;const _e=pe;Object.keys(pe);const ge=a?.WriteStream?.prototype?.hasColors?.()??!1,be=(e,t)=>{if(!ge)return e=>e
148
- ;const r=`[${e}m`,i=`[${t}m`;return e=>{const s=e+"";let n=s.indexOf(i);if(-1===n)return r+s+i;let o=r,a=0
149
- ;const l=(22===t?i:"")+r;for(;-1!==n;)o+=s.slice(a,n)+l,a=n+i.length,n=s.indexOf(i,a);return o+=s.slice(a)+i,o}
150
- },ve=(be(0,0),be(1,22),be(2,22),be(3,23),be(4,24),be(53,55),be(7,27),be(8,28),be(9,29),be(30,39),
151
- be(31,39)),xe=be(32,39),Te=be(33,39),ye=be(34,39);be(35,39),be(36,39),be(37,39),be(90,39),be(40,49),be(41,49),be(42,49),
152
- be(43,49),be(44,49),be(45,49),be(46,49),be(47,49),be(100,49),be(91,39),be(92,39),be(93,39),be(94,39),be(95,39),
153
- be(96,39),be(97,39),be(101,49),be(102,49),be(103,49),be(104,49),be(105,49),be(106,49),be(107,49);function we(){
154
- const{env:e}=n,{TERM:t,TERM_PROGRAM:r}=e
155
- ;return"win32"!==n.platform?"linux"!==t:Boolean(e.WT_SESSION)||Boolean(e.TERMINUS_SUBLIME)||"{cmd::Cmder}"===e.ConEmuTask||"Terminus-Sublime"===r||"vscode"===r||"xterm-256color"===t||"alacritty"===t||"rxvt-unicode"===t||"rxvt-unicode-256color"===t||"JetBrains-JediTerm"===e.TERMINAL_EMULATOR
156
- }const Ee=we(),Se=ye(Ee?"ℹ":"i"),Oe=xe(Ee?"✔":"√"),Re=Te(Ee?"⚠":"‼"),Ie=ve(Ee?"✖":"×")
157
- ;const Ce=function({onlyFirst:e=!1}={}){
158
- return new RegExp("(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]",e?void 0:"g")
52
+ value:(t,e,i)=>t===e&&e===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(e/255*5)+Math.round(i/255*5),
53
+ enumerable:!1},hexToRgb:{value(t){const e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!e)return[0,0,0];let[i]=e
54
+ ;3===i.length&&(i=[...i].map(t=>t+t).join(""));const r=Number.parseInt(i,16);return[r>>16&255,r>>8&255,255&r]},
55
+ enumerable:!1},hexToAnsi256:{value:t=>b.rgbToAnsi256(...b.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){
56
+ if(t<8)return 30+t;if(t<16)return t-8+90;let e,i,r;if(t>=232)e=(10*(t-232)+8)/255,i=e,r=e;else{const s=(t-=16)%36
57
+ ;e=Math.floor(t/36)/5,i=Math.floor(s/6)/5,r=s%6/5}const s=2*Math.max(e,i,r);if(0===s)return 30
58
+ ;let n=30+(Math.round(r)<<2|Math.round(i)<<1|Math.round(e));return 2===s&&(n+=60),n},enumerable:!1},rgbToAnsi:{
59
+ value:(t,e,i)=>b.ansi256ToAnsi(b.rgbToAnsi256(t,e,i)),enumerable:!1},hexToAnsi:{
60
+ value:t=>b.ansi256ToAnsi(b.hexToAnsi256(t)),enumerable:!1}}),b}(),x=O
61
+ ;function y(t,e=(globalThis.Deno?globalThis.Deno.args:o.argv)){
62
+ const i=t.startsWith("-")?"":1===t.length?"-":"--",r=e.indexOf(i+t),s=e.indexOf("--");return-1!==r&&(-1===s||r<s)}
63
+ const{env:C}=o;let w;function T(t,{streamIsTTY:e,sniffFlags:i=!0}={}){const r=function(){
64
+ if("FORCE_COLOR"in C)return"true"===C.FORCE_COLOR?1:"false"===C.FORCE_COLOR?0:0===C.FORCE_COLOR.length?1:Math.min(Number.parseInt(C.FORCE_COLOR,10),3)
65
+ }();void 0!==r&&(w=r);const s=i?w:r;if(0===s)return 0;if(i){
66
+ if(y("color=16m")||y("color=full")||y("color=truecolor"))return 3;if(y("color=256"))return 2}
67
+ if("TF_BUILD"in C&&"AGENT_NAME"in C)return 1;if(t&&!e&&void 0===s)return 0;const n=s||0;if("dumb"===C.TERM)return n
68
+ ;if("win32"===o.platform){const t=l.release().split(".")
69
+ ;return Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}
70
+ if("CI"in C)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(t=>t in C)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(t=>t in C)||"codeship"===C.CI_NAME?1:n
71
+ ;if("TEAMCITY_VERSION"in C)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(C.TEAMCITY_VERSION)?1:0
72
+ ;if("truecolor"===C.COLORTERM)return 3;if("xterm-kitty"===C.TERM)return 3;if("xterm-ghostty"===C.TERM)return 3
73
+ ;if("wezterm"===C.TERM)return 3;if("TERM_PROGRAM"in C){
74
+ const t=Number.parseInt((C.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(C.TERM_PROGRAM){case"iTerm.app":
75
+ return t>=3?3:2;case"Apple_Terminal":return 2}}
76
+ return/-256(color)?$/i.test(C.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(C.TERM)||"COLORTERM"in C?1:n
77
+ }function A(t,e={}){return function(t){return 0!==t&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}(T(t,{
78
+ streamIsTTY:t&&t.isTTY,...e}))}
79
+ y("no-color")||y("no-colors")||y("color=false")||y("color=never")?w=0:(y("color")||y("colors")||y("color=true")||y("color=always"))&&(w=1)
80
+ ;const E={stdout:A({isTTY:h.isatty(1)}),stderr:A({isTTY:h.isatty(2)})};function S(t,e,i){let r=t.indexOf(e)
81
+ ;if(-1===r)return t;const s=e.length;let n=0,o="";do{o+=t.slice(n,r)+e+i,n=r+s,r=t.indexOf(e,n)}while(-1!==r)
82
+ ;return o+=t.slice(n),o}
83
+ const{stdout:$,stderr:k}=E,P=Symbol("GENERATOR"),R=Symbol("STYLER"),H=Symbol("IS_EMPTY"),I=["ansi","ansi","ansi256","ansi16m"],M=Object.create(null)
84
+ ;const V=t=>{const e=(...t)=>t.join(" ");return((t,e={})=>{
85
+ if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3")
86
+ ;const i=$?$.level:0;t.level=void 0===e.level?i:e.level})(e,t),Object.setPrototypeOf(e,G.prototype),e};function G(t){
87
+ return V(t)}Object.setPrototypeOf(G.prototype,Function.prototype);for(const[t,e]of Object.entries(x))M[t]={get(){
88
+ const i=N(this,F(e.open,e.close,this[R]),this[H]);return Object.defineProperty(this,t,{value:i}),i}};M.visible={get(){
89
+ const t=N(this,this[R],!0);return Object.defineProperty(this,"visible",{value:t}),t}}
90
+ ;const j=(t,e,i,...r)=>"rgb"===t?"ansi16m"===e?x[i].ansi16m(...r):"ansi256"===e?x[i].ansi256(x.rgbToAnsi256(...r)):x[i].ansi(x.rgbToAnsi(...r)):"hex"===t?j("rgb",e,i,...x.hexToRgb(...r)):x[i][t](...r),W=["rgb","hex","ansi256"]
91
+ ;for(const t of W){M[t]={get(){const{level:e}=this;return function(...i){
92
+ const r=F(j(t,I[e],"color",...i),x.color.close,this[R]);return N(this,r,this[H])}}}
93
+ ;M["bg"+t[0].toUpperCase()+t.slice(1)]={get(){const{level:e}=this;return function(...i){
94
+ const r=F(j(t,I[e],"bgColor",...i),x.bgColor.close,this[R]);return N(this,r,this[H])}}}}
95
+ const B=Object.defineProperties(()=>{},{...M,level:{enumerable:!0,get(){return this[P].level},set(t){this[P].level=t}}
96
+ }),F=(t,e,i)=>{let r,s;return void 0===i?(r=t,s=e):(r=i.openAll+t,s=e+i.closeAll),{open:t,close:e,openAll:r,closeAll:s,
97
+ parent:i}},N=(t,e,i)=>{const r=(...t)=>L(r,1===t.length?""+t[0]:t.join(" "));return Object.setPrototypeOf(r,B),r[P]=t,
98
+ r[R]=e,r[H]=i,r},L=(t,e)=>{if(t.level<=0||!e)return t[H]?"":e;let i=t[R];if(void 0===i)return e
99
+ ;const{openAll:r,closeAll:s}=i;if(e.includes(""))for(;void 0!==i;)e=S(e,i.close,i.open),i=i.parent
100
+ ;const n=e.indexOf("\n");return-1!==n&&(e=function(t,e,i,r){let s=0,n="";do{const o="\r"===t[r-1]
101
+ ;n+=t.slice(s,o?r-1:r)+e+(o?"\r\n":"\n")+i,s=r+1,r=t.indexOf("\n",s)}while(-1!==r);return n+=t.slice(s),n}(e,s,r,n)),
102
+ r+e+s};Object.defineProperties(G.prototype,M);const D=G(),U=(G({level:k?k.level:0}),D),Y=(t,e,i,r)=>{
103
+ if("length"===i||"prototype"===i)return;if("arguments"===i||"caller"===i)return
104
+ ;const s=Object.getOwnPropertyDescriptor(t,i),n=Object.getOwnPropertyDescriptor(e,i)
105
+ ;!q(s,n)&&r||Object.defineProperty(t,i,n)},q=function(t,e){
106
+ return void 0===t||t.configurable||t.writable===e.writable&&t.enumerable===e.enumerable&&t.configurable===e.configurable&&(t.writable||t.value===e.value)
107
+ },J=(t,e)=>`/* Wrapped ${t}*/\n${e}`,z=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),K=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name")
108
+ ;function Q(t,e,{ignoreNonConfigurable:i=!1}={}){const{name:r}=t;for(const r of Reflect.ownKeys(e))Y(t,e,r,i)
109
+ ;return((t,e)=>{const i=Object.getPrototypeOf(e);i!==Object.getPrototypeOf(t)&&Object.setPrototypeOf(t,i)})(t,e),
110
+ ((t,e,i)=>{const r=""===i?"":`with ${i.trim()}() `,s=J.bind(null,r,e.toString());Object.defineProperty(s,"name",K)
111
+ ;const{writable:n,enumerable:o,configurable:a}=z;Object.defineProperty(t,"toString",{value:s,writable:n,enumerable:o,
112
+ configurable:a})})(t,e,r),t}const X=new WeakMap,Z=(t,e={})=>{
113
+ if("function"!=typeof t)throw new TypeError("Expected a function");let i,r=0
114
+ ;const s=t.displayName||t.name||"<anonymous>",n=function(...o){if(X.set(n,++r),1===r)i=t.apply(this,o),
115
+ t=void 0;else if(!0===e.throw)throw new Error(`Function \`${s}\` can only be called once`);return i};return Q(n,t),
116
+ X.set(n,r),n};Z.callCount=t=>{
117
+ if(!X.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`)
118
+ ;return X.get(t)};const tt=Z,et=[]
119
+ ;et.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&et.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),
120
+ "linux"===process.platform&&et.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT")
121
+ ;const it=t=>!!t&&"object"==typeof t&&"function"==typeof t.removeListener&&"function"==typeof t.emit&&"function"==typeof t.reallyExit&&"function"==typeof t.listeners&&"function"==typeof t.kill&&"number"==typeof t.pid&&"function"==typeof t.on,rt=Symbol.for("signal-exit emitter"),st=globalThis,nt=Object.defineProperty.bind(Object)
122
+ ;class ot{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){
123
+ if(st[rt])return st[rt];nt(st,rt,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(t,e){
124
+ this.listeners[t].push(e)}removeListener(t,e){const i=this.listeners[t],r=i.indexOf(e)
125
+ ;-1!==r&&(0===r&&1===i.length?i.length=0:i.splice(r,1))}emit(t,e,i){if(this.emitted[t])return!1;this.emitted[t]=!0
126
+ ;let r=!1;for(const s of this.listeners[t])r=!0===s(e,i)||r;return"exit"===t&&(r=this.emit("afterExit",e,i)||r),r}}
127
+ class at{}const lt=globalThis.process,{onExit:ht,load:ut,unload:ct}=(pt=it(lt)?new class extends at{
128
+ #t="win32"===lt.platform?"SIGINT":"SIGHUP";#e=new ot;#i;#r;#s;#n={};#o=!1;constructor(t){super(),this.#i=t,this.#n={}
129
+ ;for(const e of et)this.#n[e]=()=>{const i=this.#i.listeners(e);let{count:r}=this.#e;const s=t
130
+ ;if("object"==typeof s.__signal_exit_emitter__&&"number"==typeof s.__signal_exit_emitter__.count&&(r+=s.__signal_exit_emitter__.count),
131
+ i.length===r){this.unload();const i=this.#e.emit("exit",null,e),r="SIGHUP"===e?this.#t:e;i||t.kill(t.pid,r)}}
132
+ ;this.#s=t.reallyExit,this.#r=t.emit}onExit(t,e){if(!it(this.#i))return()=>{};!1===this.#o&&this.load()
133
+ ;const i=e?.alwaysLast?"afterExit":"exit";return this.#e.on(i,t),()=>{this.#e.removeListener(i,t),
134
+ 0===this.#e.listeners.exit.length&&0===this.#e.listeners.afterExit.length&&this.unload()}}load(){if(!this.#o){
135
+ this.#o=!0,this.#e.count+=1;for(const t of et)try{const e=this.#n[t];e&&this.#i.on(t,e)}catch(t){}
136
+ this.#i.emit=(t,...e)=>this.#a(t,...e),this.#i.reallyExit=t=>this.#l(t)}}unload(){this.#o&&(this.#o=!1,et.forEach(t=>{
137
+ const e=this.#n[t];if(!e)throw new Error("Listener not defined for signal: "+t);try{this.#i.removeListener(t,e)
138
+ }catch(t){}}),this.#i.emit=this.#r,this.#i.reallyExit=this.#s,this.#e.count-=1)}#l(t){
139
+ return it(this.#i)?(this.#i.exitCode=t||0,this.#e.emit("exit",this.#i.exitCode,null),
140
+ this.#s.call(this.#i,this.#i.exitCode)):0}#a(t,...e){const i=this.#r;if("exit"===t&&it(this.#i)){
141
+ "number"==typeof e[0]&&(this.#i.exitCode=e[0]);const r=i.call(this.#i,t,...e)
142
+ ;return this.#e.emit("exit",this.#i.exitCode,null),r}return i.call(this.#i,t,...e)}}(lt):new class extends at{onExit(){
143
+ return()=>{}}load(){}unload(){}},{onExit:(t,e)=>pt.onExit(t,e),load:()=>pt.load(),unload:()=>pt.unload()});var pt
144
+ ;const mt=o.stderr.isTTY?o.stderr:o.stdout.isTTY?o.stdout:void 0,dt=mt?tt(()=>{ht(()=>{mt.write("[?25h")},{
145
+ alwaysLast:!0})}):()=>{};let ft=!1;const gt={show:(t=o.stderr)=>{t.isTTY&&(ft=!1,t.write("[?25h"))},
146
+ hide:(t=o.stderr)=>{t.isTTY&&(dt(),ft=!0,t.write("[?25l"))},toggle:(t,e)=>{void 0!==t&&(ft=t),ft?gt.show(e):gt.hide(e)}
147
+ },_t=gt,vt=JSON.parse('{"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":["⣼","⣹","⢻","⠿","⡟","⣏","⣧","⣶"]},"dots14":{"interval":80,"frames":["⠉⠉","⠈⠙","⠀⠹","⠀⢸","⠀⣰","⢀⣠","⣀⣀","⣄⡀","⣆⠀","⡇⠀","⠏⠀","⠋⠁"]},"dots8Bit":{"interval":80,"frames":["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},"dotsCircle":{"interval":80,"frames":["⢎ ","⠎⠁","⠊⠑","⠈⠱"," ⡱","⢀⡰","⢄⡠","⢆⡀"]},"sand":{"interval":80,"frames":["⠁","⠂","⠄","⡀","⡈","⡐","⡠","⣀","⣁","⣂","⣄","⣌","⣔","⣤","⣥","⣦","⣮","⣶","⣷","⣿","⡿","⠿","⢟","⠟","⡛","⠛","⠫","⢋","⠋","⠍","⡉","⠉","⠑","⠡","⢁"]},"line":{"interval":130,"frames":["-","\\\\","|","/"]},"line2":{"interval":100,"frames":["⠂","-","–","—","–","-"]},"rollingLine":{"interval":80,"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":[" ██████£££ ","☺██████£££ ","☺██████£££ ","☺▓█████£££ ","☺▓█████£££ ","☺▒█████£££ ","☺▒█████£££ ","☺░█████£££ ","☺░█████£££ ","☺ █████£££ "," ☺█████£££ "," ☺█████£££ "," ☺▓████£££ "," ☺▓████£££ "," ☺▒████£££ "," ☺▒████£££ "," ☺░████£££ "," ☺░████£££ "," ☺ ████£££ "," ☺████£££ "," ☺████£££ "," ☺▓███£££ "," ☺▓███£££ "," ☺▒███£££ "," ☺▒███£££ "," ☺░███£££ "," ☺░███£££ "," ☺ ███£££ "," ☺███£££ "," ☺███£££ "," ☺▓██£££ "," ☺▓██£££ "," ☺▒██£££ "," ☺▒██£££ "," ☺░██£££ "," ☺░██£££ "," ☺ ██£££ "," ☺██£££ "," ☺██£££ "," ☺▓█£££ "," ☺▓█£££ "," ☺▒█£££ "," ☺▒█£££ "," ☺░█£££ "," ☺░█£££ "," ☺ █£££ "," ☺█£££ "," ☺█£££ "," ☺▓£££ "," ☺▓£££ "," ☺▒£££ "," ☺▒£££ "," ☺░£££ "," ☺░£££ "," ☺ £££ "," ☺£££ "," ☺£££ "," ☺▓££ "," ☺▓££ "," ☺▒££ "," ☺▒££ "," ☺░££ "," ☺░££ "," ☺ ££ "," ☺££ "," ☺££ "," ☺▓£ "," ☺▓£ "," ☺▒£ "," ☺▒£ "," ☺░£ "," ☺░£ "," ☺ £ "," ☺£ "," ☺£ "," ☺▓ "," ☺▓ "," ☺▒ "," ☺▒ "," ☺░ "," ☺░ "," ☺ "," ☺ &"," ☺ ☼&"," ☺ ☼ &"," ☺☼ &"," ☺☼ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & ","‼ & "," & "," & "," & ░ "," & ▒ "," & ▓ "," & £ "," & ░£ "," & ▒£ "," & ▓£ "," & ££ "," & ░££ "," & ▒££ ","& ▓££ ","& £££ "," ░£££ "," ▒£££ "," ▓£££ "," █£££ "," ░█£££ "," ▒█£££ "," ▓█£££ "," ██£££ "," ░██£££ "," ▒██£££ "," ▓██£££ "," ███£££ "," ░███£££ "," ▒███£££ "," ▓███£££ "," ████£££ "," ░████£££ "," ▒████£££ "," ▓████£££ "," █████£££ "," ░█████£££ "," ▒█████£££ "," ▓█████£££ "," ██████£££ "," ██████£££ "]},"fish":{"interval":80,"frames":["~~~~~~~~~~~~~~~~~~~~","> ~~~~~~~~~~~~~~~~~~","º> ~~~~~~~~~~~~~~~~~","(º> ~~~~~~~~~~~~~~~~","((º> ~~~~~~~~~~~~~~~","<((º> ~~~~~~~~~~~~~~","><((º> ~~~~~~~~~~~~~"," ><((º> ~~~~~~~~~~~~","~ ><((º> ~~~~~~~~~~~","~~ <>((º> ~~~~~~~~~~","~~~ ><((º> ~~~~~~~~~","~~~~ <>((º> ~~~~~~~~","~~~~~ ><((º> ~~~~~~~","~~~~~~ <>((º> ~~~~~~","~~~~~~~ ><((º> ~~~~~","~~~~~~~~ <>((º> ~~~~","~~~~~~~~~ ><((º> ~~~","~~~~~~~~~~ <>((º> ~~","~~~~~~~~~~~ ><((º> ~","~~~~~~~~~~~~ <>((º> ","~~~~~~~~~~~~~ ><((º>","~~~~~~~~~~~~~~ <>((º","~~~~~~~~~~~~~~~ ><((","~~~~~~~~~~~~~~~~ <>(","~~~~~~~~~~~~~~~~~ ><","~~~~~~~~~~~~~~~~~~ <","~~~~~~~~~~~~~~~~~~~~"]}}')
148
+ ;const bt=vt;Object.keys(vt);const Ot=h?.WriteStream?.prototype?.hasColors?.()??!1,xt=(t,e)=>{if(!Ot)return t=>t
149
+ ;const i=`[${t}m`,r=`[${e}m`;return t=>{const s=t+"";let n=s.indexOf(r);if(-1===n)return i+s+r;let o=i,a=0
150
+ ;const l=(22===e?r:"")+i;for(;-1!==n;)o+=s.slice(a,n)+l,a=n+r.length,n=s.indexOf(r,a);return o+=s.slice(a)+r,o}
151
+ },yt=(xt(0,0),xt(1,22),xt(2,22),xt(3,23),xt(4,24),xt(53,55),xt(7,27),xt(8,28),xt(9,29),xt(30,39),
152
+ xt(31,39)),Ct=xt(32,39),wt=xt(33,39),Tt=xt(34,39);xt(35,39),xt(36,39),xt(37,39),xt(90,39),xt(40,49),xt(41,49),xt(42,49),
153
+ xt(43,49),xt(44,49),xt(45,49),xt(46,49),xt(47,49),xt(100,49),xt(91,39),xt(92,39),xt(93,39),xt(94,39),xt(95,39),
154
+ xt(96,39),xt(97,39),xt(101,49),xt(102,49),xt(103,49),xt(104,49),xt(105,49),xt(106,49),xt(107,49);function At(){
155
+ const{env:t}=o,{TERM:e,TERM_PROGRAM:i}=t
156
+ ;return"win32"!==o.platform?"linux"!==e:Boolean(t.WT_SESSION)||Boolean(t.TERMINUS_SUBLIME)||"{cmd::Cmder}"===t.ConEmuTask||"Terminus-Sublime"===i||"vscode"===i||"xterm-256color"===e||"alacritty"===e||"rxvt-unicode"===e||"rxvt-unicode-256color"===e||"JetBrains-JediTerm"===t.TERMINAL_EMULATOR
157
+ }const Et=At(),St=Tt(Et?"ℹ":"i"),$t=Ct(Et?"✔":"√"),kt=wt(Et?"⚠":"‼"),Pt=yt(Et?"✖":"×")
158
+ ;const Rt=function({onlyFirst:t=!1}={}){
159
+ return new RegExp("(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]",t?void 0:"g")
159
160
  }()
160
- ;const Pe=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],Be=[12288,12288,65281,65376,65504,65510],Me=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],Ae=(e,t)=>{
161
- let r=0,i=Math.floor(e.length/2)-1;for(;r<=i;){const s=Math.floor((r+i)/2),n=2*s;if(t<e[n])i=s-1;else{
162
- if(!(t>e[n+1]))return!0;r=s+1}}return!1};const[je,ke]=Le(Me);function Le(e){let t=e[0],r=e[1]
163
- ;for(let i=0;i<e.length;i+=2){const s=e[i],n=e[i+1];if(19968>=s&&19968<=n)return[s,n];n-s>r-t&&(t=s,r=n)}return[t,r]}
164
- const Ge=e=>!(e<161||e>1114109)&&Ae(Pe,e),We=e=>!(e<12288||e>65510)&&Ae(Be,e),Ne=e=>e>=je&&e<=ke||!(e<4352||e>262141)&&Ae(Me,e)
165
- ;function $e(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}
166
- function Fe(e,{ambiguousAsWide:t=!1}={}){return $e(e),We(e)||Ne(e)||t&&Ge(e)?2:1}
167
- const Ye=new Intl.Segmenter,De=/^(?:\p{Default_Ignorable_Code_Point}|\p{Control}|\p{Format}|\p{Mark}|\p{Surrogate})+$/v,He=/^[\p{Default_Ignorable_Code_Point}\p{Control}\p{Format}\p{Mark}\p{Surrogate}]+/v,Ue=/^\p{RGI_Emoji}$/v,Ve=/^[\d#*]\u20E3$/,qe=/\p{Extended_Pictographic}/gu
168
- ;function ze(e){if(e.length>50)return!1;if(Ve.test(e))return!0;if(e.includes("‍")){const t=e.match(qe)
169
- ;return null!==t&&t.length>=2}return!1}function Je(e){return e.replace(He,"")}function Ke(e){return De.test(e)}
170
- function Qe(e){return e>=4352&&e<=4447||e>=43360&&e<=43388}function Xe(e){return e>=4448&&e<=4519||e>=55216&&e<=55238}
171
- function Ze(e){return e>=4520&&e<=4607||e>=55243&&e<=55291}function et(e){return Qe(e)||Xe(e)||Ze(e)}function tt(e,t){
172
- const r=[];for(const t of e)De.test(t)||r.push(t.codePointAt(0));if(0===r.length)return;let i=0
173
- ;for(let e=0;e<r.length;e++){const s=r[e];if(!et(s)){if(0===i)return;for(let s=e;s<r.length;s++)i+=Fe(r[s],t);return i}
174
- Qe(s)&&Xe(r[e+1])?(i+=2,e+=Ze(r[e+2])?2:1):i+=Fe(s,t)}return i}function rt(e,t){let r=0,i=!0
175
- ;for(const s of e)i?i=!1:s>="＀"&&s<="￯"&&(r+=Fe(s.codePointAt(0),t));return r}function it(e,t={}){
176
- if("string"!=typeof e||0===e.length)return 0;const{ambiguousIsNarrow:r=!0,countAnsiEscapeCodes:i=!1}=t;let s=e
177
- ;if(i||!s.includes("")&&!s.includes("›")||(s=function(e){
178
- if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``)
179
- ;return e.includes("")||e.includes("›")?e.replace(Ce,""):e}(s)),0===s.length)return 0
180
- ;if(/^[\u0020-\u007E]*$/.test(s))return s.length;let n=0;const o={ambiguousAsWide:!r}
181
- ;for(const{segment:e}of Ye.segment(s)){if(Ke(e))continue;if(Ue.test(e)||ze(e)){n+=2;continue}const t=Je(e),r=tt(t,o)
182
- ;if(void 0!==r){n+=r;continue}n+=Fe(t.codePointAt(0),o),n+=rt(t,o)}return n}const st=new class{#c=0;#h;#u=!1;#f=!1
183
- ;#m=e=>{if(!e?.length)return;3===("string"==typeof e?e.codePointAt(0):e[0])&&n.kill(n.pid,"SIGINT")};start(){this.#c++,
184
- 1===this.#c&&this.#d()}stop(){0!==this.#c&&0===--this.#c&&this.#p()}#d(){const{stdin:e}=n
185
- ;"win32"!==n.platform&&e?.isTTY&&"function"==typeof e.setRawMode?(this.#h=e,this.#u=e.isPaused(),
186
- this.#f=Boolean(e.isRaw),e.setRawMode(!0),e.prependListener("data",this.#m),this.#u&&e.resume()):this.#h=void 0}#p(){
187
- if(!this.#h)return;const e=this.#h;e.off("data",this.#m),e.isTTY&&e.setRawMode?.(this.#f),this.#u&&e.pause(),
188
- this.#h=void 0,this.#u=!1,this.#f=!1}
189
- },nt=Object.freeze(st),ot=new Map,at=new Set(["black","red","green","yellow","blue","magenta","cyan","white","gray"])
190
- ;class lt{#_=0;#g=-1;#b=0;#v;#x;#T;#y;#w=new Map;#E=!1;#S;#O;#R=!1;#I;#C(e){this.#E=!0;try{return e()}finally{this.#E=!1
191
- }}#P(){this.isSpinning&&this.render()}#B(e,t){if(null==e)return"";if("string"==typeof e)return e
192
- ;if(Buffer.isBuffer(e)||ArrayBuffer.isView(e)){const r="string"==typeof t&&t&&"buffer"!==t?t:"utf8"
193
- ;return Buffer.from(e).toString(r)}return String(e)}#M(e){if(!e)return!1;const t=e.at(-1);return"\n"===t||"\r"===t}#A(){
194
- this.#O||(this.#O=setTimeout(()=>{this.#O=void 0,this.isSpinning&&this.#P()},200),
195
- "function"==typeof this.#O?.unref&&this.#O.unref())}#j(){this.#O&&(clearTimeout(this.#O),this.#O=void 0)}#k(e,t,r,i){
196
- return this.#L(r," ")+e+("string"==typeof t?(e?" ":"")+t:"")+this.#G(i," ")}constructor(e){if("string"==typeof e&&(e={
197
- text:e}),this.#v={color:"cyan",stream:n.stderr,discardStdin:!0,hideCursor:!0,...e},this.color=this.#v.color,
198
- this.#T=this.#v.stream,"boolean"!=typeof this.#v.isEnabled&&(this.#v.isEnabled=function({stream:e=process.stdout}={}){
199
- return Boolean(e&&e.isTTY&&"dumb"!==process.env.TERM&&!("CI"in process.env))}({stream:this.#T})),
200
- "boolean"!=typeof this.#v.isSilent&&(this.#v.isSilent=!1),
201
- void 0!==this.#v.interval&&!(Number.isInteger(this.#v.interval)&&this.#v.interval>0))throw new Error("The `interval` option must be a positive integer")
202
- ;const t=this.#v.interval;this.spinner=this.#v.spinner,this.#v.interval=t,this.text=this.#v.text,
203
- this.prefixText=this.#v.prefixText,this.suffixText=this.#v.suffixText,this.indent=this.#v.indent}get indent(){
204
- return this.#v.indent}set indent(e=0){
205
- if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this.#v.indent=e
206
- }get interval(){return this.#v.interval??this.#x.interval??100}get spinner(){return this.#x}set spinner(e){
207
- if(this.#g=-1,this.#v.interval=void 0,"object"==typeof e){
208
- if(!Array.isArray(e.frames)||0===e.frames.length||e.frames.some(e=>"string"!=typeof e))throw new Error("The given spinner must have a non-empty `frames` array of strings")
209
- ;if(void 0!==e.interval&&!(Number.isInteger(e.interval)&&e.interval>0))throw new Error("`spinner.interval` must be a positive integer if provided")
210
- ;this.#x=e}else if(we())if(void 0===e)this.#x=_e.dots;else{
211
- if("default"===e||!_e[e])throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)
212
- ;this.#x=_e[e]}else this.#x=_e.line}get text(){return this.#v.text}set text(e=""){this.#v.text=e}get prefixText(){
213
- return this.#v.prefixText}set prefixText(e=""){this.#v.prefixText=e}get suffixText(){return this.#v.suffixText}
214
- set suffixText(e=""){this.#v.suffixText=e}get isSpinning(){return void 0!==this.#y}#W(e,t,r=!1){
215
- const i="function"==typeof e?e():e;return"string"==typeof i&&""!==i?r?t+i:i+t:""}#L(e=this.#v.prefixText,t=" "){
216
- return this.#W(e,t,!1)}#G(e=this.#v.suffixText,t=" "){return this.#W(e,t,!0)}#N(e,r){let i=0
217
- ;for(const s of t(e).split("\n"))i+=Math.max(1,Math.ceil(it(s)/r));return i}get color(){return this.#I}set color(e){
218
- if(void 0!==e&&!1!==e&&!at.has(e))throw new Error("The `color` option must be a valid color or `false` to disable")
219
- ;this.#I=e}get isEnabled(){return this.#v.isEnabled&&!this.#v.isSilent}set isEnabled(e){
220
- if("boolean"!=typeof e)throw new TypeError("The `isEnabled` option must be a boolean");this.#v.isEnabled=e}
221
- get isSilent(){return this.#v.isSilent}set isSilent(e){
222
- if("boolean"!=typeof e)throw new TypeError("The `isSilent` option must be a boolean");this.#v.isSilent=e}frame(){
223
- const e=Date.now();(-1===this.#g||e-this.#b>=this.interval)&&(this.#g=(this.#g+1)%this.#x.frames.length,this.#b=e)
224
- ;const{frames:t}=this.#x;let r=t[this.#g];this.#I&&(r=Y[this.#I](r))
225
- ;return this.#L(this.#v.prefixText," ")+r+("string"==typeof this.text?" "+this.text:"")+this.#G(this.#v.suffixText," ")}
226
- clear(){return this.isEnabled&&this.#T.isTTY?(this.#C(()=>{this.#T.cursorTo(0)
227
- ;for(let e=0;e<this.#_;e++)e>0&&this.#T.moveCursor(0,-1),this.#T.clearLine(1)
228
- ;this.#v.indent&&this.#T.cursorTo(this.#v.indent)}),this.#_=0,this):this}#$(e){
229
- if(!e||this.#w.has(e)||!e.isTTY||"function"!=typeof e.write)return
230
- ;ot.has(e)&&console.warn("[ora] Multiple concurrent spinners detected. This may cause visual corruption. Use one spinner at a time.")
231
- ;const t=e.write;this.#w.set(e,t),ot.set(e,this),e.write=(r,i,s)=>this.#F(e,t,r,i,s)}#Y(){
232
- if(!this.isEnabled||this.#w.size>0)return;const e=new Set([this.#T,n.stdout,n.stderr]);for(const t of e)this.#$(t)}#D(){
233
- for(const[e,t]of this.#w)e.write=t,ot.get(e)===this&&ot.delete(e);this.#w.clear()}#F(e,t,r,i,s){
234
- if("function"==typeof i&&(s=i,i=void 0),this.#E)return t.call(e,r,i,s);this.clear()
235
- ;const n=this.#B(r,i),o=this.#M(n),a=t.call(e,r,i,s);return o?this.#j():n.length>0&&this.#A(),
236
- this.isSpinning&&!this.#O&&this.render(),a}render(){if(!this.isEnabled||this.#S||this.#O)return this
237
- ;const e=this.#T.isTTY;let t=!1;try{e&&(this.#C(()=>this.#T.write("[?2026h")),t=!0),this.clear();let r=this.frame()
238
- ;const i=this.#T.columns??80,s=this.#N(r,i),n=this.#T.rows;if(n&&n>1&&s>n){const e=r.split("\n"),t=n-1
239
- ;r=[...e.slice(0,t),"... (content truncated to fit terminal)"].join("\n")}
240
- !1===this.#C(()=>this.#T.write(r))&&this.#T.isTTY&&(this.#S=()=>{this.#S=void 0,this.#P()},
241
- this.#T.once("drain",this.#S)),this.#_=this.#N(r,i)}finally{t&&this.#C(()=>this.#T.write("[?2026l"))}return this}
242
- start(e){if(void 0!==e&&(this.text=e),this.isSilent)return this;if(!this.isEnabled){
243
- const e=this.text?"-":"",t=" ".repeat(this.#v.indent)+this.#k(e,this.text,this.#v.prefixText,this.#v.suffixText)
244
- ;return""!==t.trim()&&this.#C(()=>this.#T.write(t+"\n")),this}
245
- return this.isSpinning||(this.#v.hideCursor&&de.hide(this.#T),this.#v.discardStdin&&n.stdin.isTTY&&(nt.start(),
246
- this.#R=!0),this.#Y(),this.render(),this.#y=setInterval(this.render.bind(this),this.interval)),this}stop(){
247
- return clearInterval(this.#y),this.#y=void 0,this.#g=-1,this.#b=0,this.#j(),this.#D(),
248
- this.#S&&(this.#T.removeListener("drain",this.#S),this.#S=void 0),this.isEnabled&&(this.clear(),
249
- this.#v.hideCursor&&de.show(this.#T)),this.#R&&(this.#R=!1,nt.stop()),this}succeed(e){return this.stopAndPersist({
250
- symbol:Oe,text:e})}fail(e){return this.stopAndPersist({symbol:Ie,text:e})}warn(e){return this.stopAndPersist({symbol:Re,
251
- text:e})}info(e){return this.stopAndPersist({symbol:Se,text:e})}stopAndPersist(e={}){if(this.isSilent)return this
252
- ;const t=e.symbol??" ",r=e.text??this.text,i=e.prefixText??this.#v.prefixText,s=e.suffixText??this.#v.suffixText,n=this.#k(t,r,i,s)+"\n"
253
- ;return this.stop(),this.#C(()=>this.#T.write(n)),this}}function ct(e){return new lt(e)}var ht=u(991),ut=u.n(ht)
254
- ;function ft(e,t,i){return new Promise((s,n)=>{const o=r(process.execPath,[e,...t],{stdio:"inherit",cwd:i})
255
- ;o.on("close",e=>s(e??1)),o.on("error",n)})}(async()=>{const{rE:t}=f;console.clear(),
256
- console.log(`${ut().bold(ut().cyan("▲ Mahameru"))} ${ut().dim(`CLI v${t}`)}\n`);const r={port:{type:"string",short:"p"},
257
- host:{type:"string",short:"h"}};try{const{values:t,positionals:n}=e({options:r,allowPositionals:!0
258
- }),o=n[0],a=process.cwd();switch(o){case"dev":{const e="mahameru.config.ts",r=i(a,e)
259
- ;s(r)||(console.error(ut().red(`❌ Error: Config file '${e}' is not found.`)),
260
- console.error(ut().yellow("Please create project by running: npm create mahameru")),process.exit(1))
261
- ;const n=i(a,"node_modules","tsx","dist","cli.mjs")
262
- ;s(n)||(console.error(ut().red("❌ Error: Runner 'tsx' is not installed.")),
263
- console.error(ut().yellow("Please install it by running: npm install -D tsx")),process.exit(1))
264
- ;const o=await import("tsx/esm/api"),c=l(r).href
265
- ;let h=(await o.tsImport(c,"file:///F:/Projects/@mahameru/cli/src/index.ts")).default;h={...h,dev:void 0!==h.dev&&h.dev,
266
- port:void 0!==t.port?parseInt(t.port):void 0!==h.port?h.port:3e3,
267
- host:void 0!==t.host?t.host:void 0!==h.host?h.host:"localhost",trailingSlash:void 0===h.trailingSlash||h.trailingSlash,
268
- allowedOrigins:void 0!==h.allowedOrigins?h.allowedOrigins:[],
269
- disableHttpSignatureResponse:void 0!==h.disableHttpSignatureResponse&&h.disableHttpSignatureResponse}
270
- ;const u=`\n import mahameru from "mahameru";\n\n mahameru(${JSON.stringify(h)}).then(app => \n app.initialize().then(() => {\n console.log("\\x1b[32m Mahameru Server Ready! 🚀\\x1b[0m");\n console.log(" \\x1b[1mMode:\\x1b[22m \\x1b[36m${h.dev?"Development":"Production"}\\x1b[0m");\n console.log(" \\x1b[1mLokal:\\x1b[22m \\x1b[36mhttp://${h.host}:${h.port}\\x1b[0m");\n console.log(" \\x1b[1mHost:\\x1b[22m ${h.host}");\n console.log(" \\x1b[1mPort:\\x1b[22m ${h.port}\\n");\n console.log("\\x1b[90mPress Ctrl+C to stop server\\x1b[0m\\n");\n }).catch(console.error)\n ).catch(console.error)\n `
271
- ;await ft(n,["-e",u],a);break}case"build":{
272
- const e=ct(ut().cyan("Building your project...")).start(),t=i(a,"node_modules","typescript","bin","tsc"),r=i(a,"node_modules","tsc-alias","dist","index.js")
273
- ;s(t)||(e.fail(ut().red("Build failed!")),
274
- console.error(ut().red("\n❌ Error: TypeScript compiler (tsc) is not installed.\n")),process.exit(1));try{
275
- const i=await ft(t,["--project","tsconfig.json"],a);0!==i&&(console.error(ut().red("\n❌ Build failed!\n")),
276
- process.exit(i)),s(r)||(console.error(ut().red("\n❌ tsc-alias not installed.\n")),process.exit(1))
277
- ;const n=await ft(r,["-p","tsconfig.json"],a);0!==n&&(console.error(ut().red("\n❌ tsc-alias failed.\n")),
278
- process.exit(n)),e.succeed(ut().green("Build success."))}catch(t){e.fail(ut().red("Terjadi kesalahan internal.")),
279
- console.error(t),process.exit(1)}break}case"start":console.log(ut().green("Not implemented yet."));break;default:
280
- console.error(ut().red('❌ To get started, run "npm run dev" or "npm start".')),process.exit(1)}}catch(e){
281
- console.error(e),process.exit(1)}})();
161
+ ;const Ht=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],It=[12288,12288,65281,65376,65504,65510],Mt=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],Vt=(t,e)=>{
162
+ let i=0,r=Math.floor(t.length/2)-1;for(;i<=r;){const s=Math.floor((i+r)/2),n=2*s;if(e<t[n])r=s-1;else{
163
+ if(!(e>t[n+1]))return!0;i=s+1}}return!1};const[Gt,jt]=Wt(Mt);function Wt(t){let e=t[0],i=t[1]
164
+ ;for(let r=0;r<t.length;r+=2){const s=t[r],n=t[r+1];if(19968>=s&&19968<=n)return[s,n];n-s>i-e&&(e=s,i=n)}return[e,i]}
165
+ const Bt=t=>!(t<161||t>1114109)&&Vt(Ht,t),Ft=t=>!(t<12288||t>65510)&&Vt(It,t),Nt=t=>t>=Gt&&t<=jt||!(t<4352||t>262141)&&Vt(Mt,t)
166
+ ;function Lt(t){if(!Number.isSafeInteger(t))throw new TypeError(`Expected a code point, got \`${typeof t}\`.`)}
167
+ function Dt(t,{ambiguousAsWide:e=!1}={}){return Lt(t),Ft(t)||Nt(t)||e&&Bt(t)?2:1}
168
+ const Ut=new Intl.Segmenter,Yt=/^(?:\p{Default_Ignorable_Code_Point}|\p{Control}|\p{Format}|\p{Mark}|\p{Surrogate})+$/v,qt=/^[\p{Default_Ignorable_Code_Point}\p{Control}\p{Format}\p{Mark}\p{Surrogate}]+/v,Jt=/^\p{RGI_Emoji}$/v,zt=/^[\d#*]\u20E3$/,Kt=/\p{Extended_Pictographic}/gu
169
+ ;function Qt(t){if(t.length>50)return!1;if(zt.test(t))return!0;if(t.includes("‍")){const e=t.match(Kt)
170
+ ;return null!==e&&e.length>=2}return!1}function Xt(t){return t.replace(qt,"")}function Zt(t){return Yt.test(t)}
171
+ function te(t){return t>=4352&&t<=4447||t>=43360&&t<=43388}function ee(t){return t>=4448&&t<=4519||t>=55216&&t<=55238}
172
+ function ie(t){return t>=4520&&t<=4607||t>=55243&&t<=55291}function re(t){return te(t)||ee(t)||ie(t)}function se(t,e){
173
+ const i=[];for(const e of t)Yt.test(e)||i.push(e.codePointAt(0));if(0===i.length)return;let r=0
174
+ ;for(let t=0;t<i.length;t++){const s=i[t];if(!re(s)){if(0===r)return;for(let s=t;s<i.length;s++)r+=Dt(i[s],e);return r}
175
+ te(s)&&ee(i[t+1])?(r+=2,t+=ie(i[t+2])?2:1):r+=Dt(s,e)}return r}function ne(t,e){let i=0,r=!0
176
+ ;for(const s of t)r?r=!1:s>="＀"&&s<="￯"&&(i+=Dt(s.codePointAt(0),e));return i}function oe(t,e={}){
177
+ if("string"!=typeof t||0===t.length)return 0;const{ambiguousIsNarrow:i=!0,countAnsiEscapeCodes:r=!1}=e;let s=t
178
+ ;if(r||!s.includes("")&&!s.includes("›")||(s=function(t){
179
+ if("string"!=typeof t)throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``)
180
+ ;return t.includes("")||t.includes("›")?t.replace(Rt,""):t}(s)),0===s.length)return 0
181
+ ;if(/^[\u0020-\u007E]*$/.test(s))return s.length;let n=0;const o={ambiguousAsWide:!i}
182
+ ;for(const{segment:t}of Ut.segment(s)){if(Zt(t))continue;if(Jt.test(t)||Qt(t)){n+=2;continue}const e=Xt(t),i=se(e,o)
183
+ ;if(void 0!==i){n+=i;continue}n+=Dt(e.codePointAt(0),o),n+=ne(e,o)}return n}const ae=new class{#h=0;#u;#c=!1;#p=!1
184
+ ;#m=t=>{if(!t?.length)return;3===("string"==typeof t?t.codePointAt(0):t[0])&&o.kill(o.pid,"SIGINT")};start(){this.#h++,
185
+ 1===this.#h&&this.#d()}stop(){0!==this.#h&&0===--this.#h&&this.#f()}#d(){const{stdin:t}=o
186
+ ;"win32"!==o.platform&&t?.isTTY&&"function"==typeof t.setRawMode?(this.#u=t,this.#c=t.isPaused(),
187
+ this.#p=Boolean(t.isRaw),t.setRawMode(!0),t.prependListener("data",this.#m),this.#c&&t.resume()):this.#u=void 0}#f(){
188
+ if(!this.#u)return;const t=this.#u;t.off("data",this.#m),t.isTTY&&t.setRawMode?.(this.#p),this.#c&&t.pause(),
189
+ this.#u=void 0,this.#c=!1,this.#p=!1}
190
+ },le=Object.freeze(ae),he=new Map,ue=new Set(["black","red","green","yellow","blue","magenta","cyan","white","gray"])
191
+ ;class ce{#g=0;#_=-1;#v=0;#b;#O;#x;#y;#C=new Map;#w=!1;#T;#A;#E=!1;#S;#$(t){this.#w=!0;try{return t()}finally{this.#w=!1
192
+ }}#k(){this.isSpinning&&this.render()}#P(t,e){if(null==t)return"";if("string"==typeof t)return t
193
+ ;if(Buffer.isBuffer(t)||ArrayBuffer.isView(t)){const i="string"==typeof e&&e&&"buffer"!==e?e:"utf8"
194
+ ;return Buffer.from(t).toString(i)}return String(t)}#R(t){if(!t)return!1;const e=t.at(-1);return"\n"===e||"\r"===e}#H(){
195
+ this.#A||(this.#A=setTimeout(()=>{this.#A=void 0,this.isSpinning&&this.#k()},200),
196
+ "function"==typeof this.#A?.unref&&this.#A.unref())}#I(){this.#A&&(clearTimeout(this.#A),this.#A=void 0)}#M(t,e,i,r){
197
+ return this.#V(i," ")+t+("string"==typeof e?(t?" ":"")+e:"")+this.#G(r," ")}constructor(t){if("string"==typeof t&&(t={
198
+ text:t}),this.#b={color:"cyan",stream:o.stderr,discardStdin:!0,hideCursor:!0,...t},this.color=this.#b.color,
199
+ this.#x=this.#b.stream,"boolean"!=typeof this.#b.isEnabled&&(this.#b.isEnabled=function({stream:t=process.stdout}={}){
200
+ return Boolean(t&&t.isTTY&&"dumb"!==process.env.TERM&&!("CI"in process.env))}({stream:this.#x})),
201
+ "boolean"!=typeof this.#b.isSilent&&(this.#b.isSilent=!1),
202
+ void 0!==this.#b.interval&&!(Number.isInteger(this.#b.interval)&&this.#b.interval>0))throw new Error("The `interval` option must be a positive integer")
203
+ ;const e=this.#b.interval;this.spinner=this.#b.spinner,this.#b.interval=e,this.text=this.#b.text,
204
+ this.prefixText=this.#b.prefixText,this.suffixText=this.#b.suffixText,this.indent=this.#b.indent}get indent(){
205
+ return this.#b.indent}set indent(t=0){
206
+ if(!(t>=0&&Number.isInteger(t)))throw new Error("The `indent` option must be an integer from 0 and up");this.#b.indent=t
207
+ }get interval(){return this.#b.interval??this.#O.interval??100}get spinner(){return this.#O}set spinner(t){
208
+ if(this.#_=-1,this.#b.interval=void 0,"object"==typeof t){
209
+ if(!Array.isArray(t.frames)||0===t.frames.length||t.frames.some(t=>"string"!=typeof t))throw new Error("The given spinner must have a non-empty `frames` array of strings")
210
+ ;if(void 0!==t.interval&&!(Number.isInteger(t.interval)&&t.interval>0))throw new Error("`spinner.interval` must be a positive integer if provided")
211
+ ;this.#O=t}else if(At())if(void 0===t)this.#O=bt.dots;else{
212
+ if("default"===t||!bt[t])throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)
213
+ ;this.#O=bt[t]}else this.#O=bt.line}get text(){return this.#b.text}set text(t=""){this.#b.text=t}get prefixText(){
214
+ return this.#b.prefixText}set prefixText(t=""){this.#b.prefixText=t}get suffixText(){return this.#b.suffixText}
215
+ set suffixText(t=""){this.#b.suffixText=t}get isSpinning(){return void 0!==this.#y}#j(t,e,i=!1){
216
+ const r="function"==typeof t?t():t;return"string"==typeof r&&""!==r?i?e+r:r+e:""}#V(t=this.#b.prefixText,e=" "){
217
+ return this.#j(t,e,!1)}#G(t=this.#b.suffixText,e=" "){return this.#j(t,e,!0)}#W(t,e){let i=0
218
+ ;for(const r of a(t).split("\n"))i+=Math.max(1,Math.ceil(oe(r)/e));return i}get color(){return this.#S}set color(t){
219
+ if(void 0!==t&&!1!==t&&!ue.has(t))throw new Error("The `color` option must be a valid color or `false` to disable")
220
+ ;this.#S=t}get isEnabled(){return this.#b.isEnabled&&!this.#b.isSilent}set isEnabled(t){
221
+ if("boolean"!=typeof t)throw new TypeError("The `isEnabled` option must be a boolean");this.#b.isEnabled=t}
222
+ get isSilent(){return this.#b.isSilent}set isSilent(t){
223
+ if("boolean"!=typeof t)throw new TypeError("The `isSilent` option must be a boolean");this.#b.isSilent=t}frame(){
224
+ const t=Date.now();(-1===this.#_||t-this.#v>=this.interval)&&(this.#_=(this.#_+1)%this.#O.frames.length,this.#v=t)
225
+ ;const{frames:e}=this.#O;let i=e[this.#_];this.#S&&(i=U[this.#S](i))
226
+ ;return this.#V(this.#b.prefixText," ")+i+("string"==typeof this.text?" "+this.text:"")+this.#G(this.#b.suffixText," ")}
227
+ clear(){return this.isEnabled&&this.#x.isTTY?(this.#$(()=>{this.#x.cursorTo(0)
228
+ ;for(let t=0;t<this.#g;t++)t>0&&this.#x.moveCursor(0,-1),this.#x.clearLine(1)
229
+ ;this.#b.indent&&this.#x.cursorTo(this.#b.indent)}),this.#g=0,this):this}#B(t){
230
+ if(!t||this.#C.has(t)||!t.isTTY||"function"!=typeof t.write)return
231
+ ;he.has(t)&&console.warn("[ora] Multiple concurrent spinners detected. This may cause visual corruption. Use one spinner at a time.")
232
+ ;const e=t.write;this.#C.set(t,e),he.set(t,this),t.write=(i,r,s)=>this.#F(t,e,i,r,s)}#N(){
233
+ if(!this.isEnabled||this.#C.size>0)return;const t=new Set([this.#x,o.stdout,o.stderr]);for(const e of t)this.#B(e)}#L(){
234
+ for(const[t,e]of this.#C)t.write=e,he.get(t)===this&&he.delete(t);this.#C.clear()}#F(t,e,i,r,s){
235
+ if("function"==typeof r&&(s=r,r=void 0),this.#w)return e.call(t,i,r,s);this.clear()
236
+ ;const n=this.#P(i,r),o=this.#R(n),a=e.call(t,i,r,s);return o?this.#I():n.length>0&&this.#H(),
237
+ this.isSpinning&&!this.#A&&this.render(),a}render(){if(!this.isEnabled||this.#T||this.#A)return this
238
+ ;const t=this.#x.isTTY;let e=!1;try{t&&(this.#$(()=>this.#x.write("[?2026h")),e=!0),this.clear();let i=this.frame()
239
+ ;const r=this.#x.columns??80,s=this.#W(i,r),n=this.#x.rows;if(n&&n>1&&s>n){const t=i.split("\n"),e=n-1
240
+ ;i=[...t.slice(0,e),"... (content truncated to fit terminal)"].join("\n")}
241
+ !1===this.#$(()=>this.#x.write(i))&&this.#x.isTTY&&(this.#T=()=>{this.#T=void 0,this.#k()},
242
+ this.#x.once("drain",this.#T)),this.#g=this.#W(i,r)}finally{e&&this.#$(()=>this.#x.write("[?2026l"))}return this}
243
+ start(t){if(void 0!==t&&(this.text=t),this.isSilent)return this;if(!this.isEnabled){
244
+ const t=this.text?"-":"",e=" ".repeat(this.#b.indent)+this.#M(t,this.text,this.#b.prefixText,this.#b.suffixText)
245
+ ;return""!==e.trim()&&this.#$(()=>this.#x.write(e+"\n")),this}
246
+ return this.isSpinning||(this.#b.hideCursor&&_t.hide(this.#x),this.#b.discardStdin&&o.stdin.isTTY&&(le.start(),
247
+ this.#E=!0),this.#N(),this.render(),this.#y=setInterval(this.render.bind(this),this.interval)),this}stop(){
248
+ return clearInterval(this.#y),this.#y=void 0,this.#_=-1,this.#v=0,this.#I(),this.#L(),
249
+ this.#T&&(this.#x.removeListener("drain",this.#T),this.#T=void 0),this.isEnabled&&(this.clear(),
250
+ this.#b.hideCursor&&_t.show(this.#x)),this.#E&&(this.#E=!1,le.stop()),this}succeed(t){return this.stopAndPersist({
251
+ symbol:$t,text:t})}fail(t){return this.stopAndPersist({symbol:Pt,text:t})}warn(t){return this.stopAndPersist({symbol:kt,
252
+ text:t})}info(t){return this.stopAndPersist({symbol:St,text:t})}stopAndPersist(t={}){if(this.isSilent)return this
253
+ ;const e=t.symbol??" ",i=t.text??this.text,r=t.prefixText??this.#b.prefixText,s=t.suffixText??this.#b.suffixText,n=this.#M(e,i,r,s)+"\n"
254
+ ;return this.stop(),this.#$(()=>this.#x.write(n)),this}}function pe(t){return new ce(t)}var me=d(991),de=d.n(me)
255
+ ;class fe extends Error{constructor(t,e,i){super(i),Error.captureStackTrace(this,this.constructor),
256
+ this.name=this.constructor.name,this.code=e,this.exitCode=t,this.nestedError=void 0}}class ge extends fe{constructor(t){
257
+ super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}
258
+ class _e{constructor(t,e){switch(this.description=e||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,
259
+ this.defaultValueDescription=void 0,this.argChoices=void 0,t[0]){case"<":this.required=!0,this._name=t.slice(1,-1);break
260
+ ;case"[":this.required=!1,this._name=t.slice(1,-1);break;default:this.required=!0,this._name=t}
261
+ this._name.endsWith("...")&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}
262
+ _collectValue(t,e){return e!==this.defaultValue&&Array.isArray(e)?(e.push(t),e):[t]}default(t,e){
263
+ return this.defaultValue=t,this.defaultValueDescription=e,this}argParser(t){return this.parseArg=t,this}choices(t){
264
+ return this.argChoices=t.slice(),this.parseArg=(t,e)=>{
265
+ if(!this.argChoices.includes(t))throw new ge(`Allowed choices are ${this.argChoices.join(", ")}.`)
266
+ ;return this.variadic?this._collectValue(t,e):t},this}argRequired(){return this.required=!0,this}argOptional(){
267
+ return this.required=!1,this}}function ve(t){const e=t.name()+(!0===t.variadic?"...":"")
268
+ ;return t.required?"<"+e+">":"["+e+"]"}class be{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,
269
+ this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(t){
270
+ this.helpWidth=this.helpWidth??t.helpWidth??80}visibleCommands(t){
271
+ const e=t.commands.filter(t=>!t._hidden),i=t._getHelpCommand();return i&&!i._hidden&&e.push(i),
272
+ this.sortSubcommands&&e.sort((t,e)=>t.name().localeCompare(e.name())),e}compareOptions(t,e){
273
+ const i=t=>t.short?t.short.replace(/^-/,""):t.long.replace(/^--/,"");return i(t).localeCompare(i(e))}visibleOptions(t){
274
+ const e=t.options.filter(t=>!t.hidden),i=t._getHelpOption();if(i&&!i.hidden){
275
+ const r=i.short&&t._findOption(i.short),s=i.long&&t._findOption(i.long)
276
+ ;r||s?i.long&&!s?e.push(t.createOption(i.long,i.description)):i.short&&!r&&e.push(t.createOption(i.short,i.description)):e.push(i)
277
+ }return this.sortOptions&&e.sort(this.compareOptions),e}visibleGlobalOptions(t){if(!this.showGlobalOptions)return[]
278
+ ;const e=[];for(let i=t.parent;i;i=i.parent){const t=i.options.filter(t=>!t.hidden);e.push(...t)}
279
+ return this.sortOptions&&e.sort(this.compareOptions),e}visibleArguments(t){
280
+ return t._argsDescription&&t.registeredArguments.forEach(e=>{
281
+ e.description=e.description||t._argsDescription[e.name()]||""
282
+ }),t.registeredArguments.find(t=>t.description)?t.registeredArguments:[]}subcommandTerm(t){
283
+ const e=t.registeredArguments.map(t=>ve(t)).join(" ")
284
+ ;return t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(e?" "+e:"")}optionTerm(t){
285
+ return t.flags}argumentTerm(t){return t.name()}longestSubcommandTermLength(t,e){
286
+ return e.visibleCommands(t).reduce((t,i)=>Math.max(t,this.displayWidth(e.styleSubcommandTerm(e.subcommandTerm(i)))),0)}
287
+ longestOptionTermLength(t,e){
288
+ return e.visibleOptions(t).reduce((t,i)=>Math.max(t,this.displayWidth(e.styleOptionTerm(e.optionTerm(i)))),0)}
289
+ longestGlobalOptionTermLength(t,e){
290
+ return e.visibleGlobalOptions(t).reduce((t,i)=>Math.max(t,this.displayWidth(e.styleOptionTerm(e.optionTerm(i)))),0)}
291
+ longestArgumentTermLength(t,e){
292
+ return e.visibleArguments(t).reduce((t,i)=>Math.max(t,this.displayWidth(e.styleArgumentTerm(e.argumentTerm(i)))),0)}
293
+ commandUsage(t){let e=t._name;t._aliases[0]&&(e=e+"|"+t._aliases[0]);let i=""
294
+ ;for(let e=t.parent;e;e=e.parent)i=e.name()+" "+i;return i+e+" "+t.usage()}commandDescription(t){return t.description()}
295
+ subcommandDescription(t){return t.summary()||t.description()}optionDescription(t){const e=[]
296
+ ;if(t.argChoices&&e.push(`choices: ${t.argChoices.map(t=>JSON.stringify(t)).join(", ")}`),void 0!==t.defaultValue){
297
+ (t.required||t.optional||t.isBoolean()&&"boolean"==typeof t.defaultValue)&&e.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`)
298
+ }if(void 0!==t.presetArg&&t.optional&&e.push(`preset: ${JSON.stringify(t.presetArg)}`),
299
+ void 0!==t.envVar&&e.push(`env: ${t.envVar}`),e.length>0){const i=`(${e.join(", ")})`
300
+ ;return t.description?`${t.description} ${i}`:i}return t.description}argumentDescription(t){const e=[]
301
+ ;if(t.argChoices&&e.push(`choices: ${t.argChoices.map(t=>JSON.stringify(t)).join(", ")}`),
302
+ void 0!==t.defaultValue&&e.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),e.length>0){
303
+ const i=`(${e.join(", ")})`;return t.description?`${t.description} ${i}`:i}return t.description}formatItemList(t,e,i){
304
+ return 0===e.length?[]:[i.styleTitle(t),...e,""]}groupItems(t,e,i){const r=new Map;return t.forEach(t=>{const e=i(t)
305
+ ;r.has(e)||r.set(e,[])}),e.forEach(t=>{const e=i(t);r.has(e)||r.set(e,[]),r.get(e).push(t)}),r}formatHelp(t,e){
306
+ const i=e.padWidth(t,e),r=e.helpWidth??80;function s(t,r){return e.formatItem(t,i,r,e)}
307
+ let n=[`${e.styleTitle("Usage:")} ${e.styleUsage(e.commandUsage(t))}`,""];const o=e.commandDescription(t)
308
+ ;o.length>0&&(n=n.concat([e.boxWrap(e.styleCommandDescription(o),r),""]))
309
+ ;const a=e.visibleArguments(t).map(t=>s(e.styleArgumentTerm(e.argumentTerm(t)),e.styleArgumentDescription(e.argumentDescription(t))))
310
+ ;n=n.concat(this.formatItemList("Arguments:",a,e))
311
+ ;if(this.groupItems(t.options,e.visibleOptions(t),t=>t.helpGroupHeading??"Options:").forEach((t,i)=>{
312
+ const r=t.map(t=>s(e.styleOptionTerm(e.optionTerm(t)),e.styleOptionDescription(e.optionDescription(t))))
313
+ ;n=n.concat(this.formatItemList(i,r,e))}),e.showGlobalOptions){
314
+ const i=e.visibleGlobalOptions(t).map(t=>s(e.styleOptionTerm(e.optionTerm(t)),e.styleOptionDescription(e.optionDescription(t))))
315
+ ;n=n.concat(this.formatItemList("Global Options:",i,e))}
316
+ return this.groupItems(t.commands,e.visibleCommands(t),t=>t.helpGroup()||"Commands:").forEach((t,i)=>{
317
+ const r=t.map(t=>s(e.styleSubcommandTerm(e.subcommandTerm(t)),e.styleSubcommandDescription(e.subcommandDescription(t))))
318
+ ;n=n.concat(this.formatItemList(i,r,e))}),n.join("\n")}displayWidth(t){return a(t).length}styleTitle(t){return t}
319
+ styleUsage(t){
320
+ return t.split(" ").map(t=>"[options]"===t?this.styleOptionText(t):"[command]"===t?this.styleSubcommandText(t):"["===t[0]||"<"===t[0]?this.styleArgumentText(t):this.styleCommandText(t)).join(" ")
321
+ }styleCommandDescription(t){return this.styleDescriptionText(t)}styleOptionDescription(t){
322
+ return this.styleDescriptionText(t)}styleSubcommandDescription(t){return this.styleDescriptionText(t)}
323
+ styleArgumentDescription(t){return this.styleDescriptionText(t)}styleDescriptionText(t){return t}styleOptionTerm(t){
324
+ return this.styleOptionText(t)}styleSubcommandTerm(t){
325
+ return t.split(" ").map(t=>"[options]"===t?this.styleOptionText(t):"["===t[0]||"<"===t[0]?this.styleArgumentText(t):this.styleSubcommandText(t)).join(" ")
326
+ }styleArgumentTerm(t){return this.styleArgumentText(t)}styleOptionText(t){return t}styleArgumentText(t){return t}
327
+ styleSubcommandText(t){return t}styleCommandText(t){return t}padWidth(t,e){
328
+ return Math.max(e.longestOptionTermLength(t,e),e.longestGlobalOptionTermLength(t,e),e.longestSubcommandTermLength(t,e),e.longestArgumentTermLength(t,e))
329
+ }preformatted(t){return/\n[^\S\r\n]/.test(t)}formatItem(t,e,i,r){const s=" ".repeat(2);if(!i)return s+t
330
+ ;const n=t.padEnd(e+t.length-r.displayWidth(t)),o=(this.helpWidth??80)-e-2-2;let a
331
+ ;if(o<this.minWidthToWrap||r.preformatted(i))a=i;else{a=r.boxWrap(i,o).replace(/\n/g,"\n"+" ".repeat(e+2))}
332
+ return s+n+" ".repeat(2)+a.replace(/\n/g,`\n${s}`)}boxWrap(t,e){if(e<this.minWidthToWrap)return t
333
+ ;const i=t.split(/\r\n|\n/),r=/[\s]*[^\s]+/g,s=[];return i.forEach(t=>{const i=t.match(r)
334
+ ;if(null===i)return void s.push("");let n=[i.shift()],o=this.displayWidth(n[0]);i.forEach(t=>{
335
+ const i=this.displayWidth(t);if(o+i<=e)return n.push(t),void(o+=i);s.push(n.join(""));const r=t.trimStart();n=[r],
336
+ o=this.displayWidth(r)}),s.push(n.join(""))}),s.join("\n")}}class Oe{constructor(t,e){this.flags=t,
337
+ this.description=e||"",this.required=t.includes("<"),this.optional=t.includes("["),
338
+ this.variadic=/\w\.\.\.[>\]]$/.test(t),this.mandatory=!1;const i=function(t){let e,i
339
+ ;const r=/^-[^-]$/,s=/^--[^-]/,n=t.split(/[ |,]+/).concat("guard");r.test(n[0])&&(e=n.shift())
340
+ ;s.test(n[0])&&(i=n.shift());!e&&r.test(n[0])&&(e=n.shift());!e&&s.test(n[0])&&(e=i,i=n.shift())
341
+ ;if(n[0].startsWith("-")){const e=n[0],i=`option creation failed due to '${e}' in option flags '${t}'`
342
+ ;if(/^-[^-][^-]/.test(e))throw new Error(`${i}\n- a short flag is a single dash and a single character\n - either use a single dash and a single character (for a short flag)\n - or use a double dash for a long option (and can have two, like '--ws, --workspace')`)
343
+ ;if(r.test(e))throw new Error(`${i}\n- too many short flags`)
344
+ ;if(s.test(e))throw new Error(`${i}\n- too many long flags`);throw new Error(`${i}\n- unrecognised flag format`)}
345
+ if(void 0===e&&void 0===i)throw new Error(`option creation failed due to no flags found in '${t}'.`);return{shortFlag:e,
346
+ longFlag:i}}(t)
347
+ ;this.short=i.shortFlag,this.long=i.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),
348
+ this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,
349
+ this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,
350
+ this.helpGroupHeading=void 0}default(t,e){return this.defaultValue=t,this.defaultValueDescription=e,this}preset(t){
351
+ return this.presetArg=t,this}conflicts(t){return this.conflictsWith=this.conflictsWith.concat(t),this}implies(t){let e=t
352
+ ;return"string"==typeof t&&(e={[t]:!0}),this.implied=Object.assign(this.implied||{},e),this}env(t){return this.envVar=t,
353
+ this}argParser(t){return this.parseArg=t,this}makeOptionMandatory(t=!0){return this.mandatory=!!t,this}hideHelp(t=!0){
354
+ return this.hidden=!!t,this}_collectValue(t,e){return e!==this.defaultValue&&Array.isArray(e)?(e.push(t),e):[t]}
355
+ choices(t){return this.argChoices=t.slice(),this.parseArg=(t,e)=>{
356
+ if(!this.argChoices.includes(t))throw new ge(`Allowed choices are ${this.argChoices.join(", ")}.`)
357
+ ;return this.variadic?this._collectValue(t,e):t},this}name(){
358
+ return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){
359
+ return this.negate?ye(this.name().replace(/^no-/,"")):ye(this.name())}helpGroup(t){return this.helpGroupHeading=t,this}
360
+ is(t){return this.short===t||this.long===t}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class xe{
361
+ constructor(t){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,t.forEach(t=>{
362
+ t.negate?this.negativeOptions.set(t.attributeName(),t):this.positiveOptions.set(t.attributeName(),t)}),
363
+ this.negativeOptions.forEach((t,e)=>{this.positiveOptions.has(e)&&this.dualOptions.add(e)})}valueFromOption(t,e){
364
+ const i=e.attributeName();if(!this.dualOptions.has(i))return!0
365
+ ;const r=this.negativeOptions.get(i).presetArg,s=void 0!==r&&r;return e.negate===(s===t)}}function ye(t){
366
+ return t.split("-").reduce((t,e)=>t+e[0].toUpperCase()+e.slice(1))}function Ce(t,e){if(!e||0===e.length)return""
367
+ ;e=Array.from(new Set(e));const i=t.startsWith("--");i&&(t=t.slice(2),e=e.map(t=>t.slice(2)));let r=[],s=3
368
+ ;return e.forEach(e=>{if(e.length<=1)return;const i=function(t,e){
369
+ if(Math.abs(t.length-e.length)>3)return Math.max(t.length,e.length);const i=[];for(let e=0;e<=t.length;e++)i[e]=[e]
370
+ ;for(let t=0;t<=e.length;t++)i[0][t]=t;for(let r=1;r<=e.length;r++)for(let s=1;s<=t.length;s++){let n
371
+ ;n=t[s-1]===e[r-1]?0:1,
372
+ i[s][r]=Math.min(i[s-1][r]+1,i[s][r-1]+1,i[s-1][r-1]+n),s>1&&r>1&&t[s-1]===e[r-2]&&t[s-2]===e[r-1]&&(i[s][r]=Math.min(i[s][r],i[s-2][r-2]+1))
373
+ }return i[t.length][e.length]}(t,e),n=Math.max(t.length,e.length);(n-i)/n>.4&&(i<s?(s=i,r=[e]):i===s&&r.push(e))}),
374
+ r.sort((t,e)=>t.localeCompare(e)),
375
+ i&&(r=r.map(t=>`--${t}`)),r.length>1?`\n(Did you mean one of ${r.join(", ")}?)`:1===r.length?`\n(Did you mean ${r[0]}?)`:""
376
+ }class we extends c{constructor(t){super(),this.commands=[],this.options=[],this.parent=null,
377
+ this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],
378
+ this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,
379
+ this._name=t||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,
380
+ this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,
381
+ this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,
382
+ this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,
383
+ this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,
384
+ this._savedState=null,this._outputConfiguration={writeOut:t=>o.stdout.write(t),writeErr:t=>o.stderr.write(t),
385
+ outputError:(t,e)=>e(t),getOutHelpWidth:()=>o.stdout.isTTY?o.stdout.columns:void 0,
386
+ getErrHelpWidth:()=>o.stderr.isTTY?o.stderr.columns:void 0,
387
+ getOutHasColors:()=>Ae()??(o.stdout.isTTY&&o.stdout.hasColors?.()),
388
+ getErrHasColors:()=>Ae()??(o.stderr.isTTY&&o.stderr.hasColors?.()),stripColor:t=>a(t)},this._hidden=!1,
389
+ this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},
390
+ this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(t){
391
+ return this._outputConfiguration=t._outputConfiguration,this._helpOption=t._helpOption,this._helpCommand=t._helpCommand,
392
+ this._helpConfiguration=t._helpConfiguration,this._exitCallback=t._exitCallback,
393
+ this._storeOptionsAsProperties=t._storeOptionsAsProperties,
394
+ this._combineFlagAndOptionalValue=t._combineFlagAndOptionalValue,this._allowExcessArguments=t._allowExcessArguments,
395
+ this._enablePositionalOptions=t._enablePositionalOptions,this._showHelpAfterError=t._showHelpAfterError,
396
+ this._showSuggestionAfterError=t._showSuggestionAfterError,this}_getCommandAndAncestors(){const t=[]
397
+ ;for(let e=this;e;e=e.parent)t.push(e);return t}command(t,e,i){let r=e,s=i;"object"==typeof r&&null!==r&&(s=r,r=null),
398
+ s=s||{};const[,n,o]=t.match(/([^ ]+) *(.*)/),a=this.createCommand(n);return r&&(a.description(r),
399
+ a._executableHandler=!0),s.isDefault&&(this._defaultCommandName=a._name),a._hidden=!(!s.noHelp&&!s.hidden),
400
+ a._executableFile=s.executableFile||null,o&&a.arguments(o),this._registerCommand(a),a.parent=this,
401
+ a.copyInheritedSettings(this),r?this:a}createCommand(t){return new we(t)}createHelp(){
402
+ return Object.assign(new be,this.configureHelp())}configureHelp(t){
403
+ return void 0===t?this._helpConfiguration:(this._helpConfiguration=t,this)}configureOutput(t){
404
+ return void 0===t?this._outputConfiguration:(this._outputConfiguration={...this._outputConfiguration,...t},this)}
405
+ showHelpAfterError(t=!0){return"string"!=typeof t&&(t=!!t),this._showHelpAfterError=t,this}
406
+ showSuggestionAfterError(t=!0){return this._showSuggestionAfterError=!!t,this}addCommand(t,e){
407
+ if(!t._name)throw new Error("Command passed to .addCommand() must have a name\n- specify the name in Command constructor or using .name()")
408
+ ;return(e=e||{}).isDefault&&(this._defaultCommandName=t._name),(e.noHelp||e.hidden)&&(t._hidden=!0),
409
+ this._registerCommand(t),t.parent=this,t._checkForBrokenPassThrough(),this}createArgument(t,e){return new _e(t,e)}
410
+ argument(t,e,i,r){const s=this.createArgument(t,e);return"function"==typeof i?s.default(r).argParser(i):s.default(i),
411
+ this.addArgument(s),this}arguments(t){return t.trim().split(/ +/).forEach(t=>{this.argument(t)}),this}addArgument(t){
412
+ const e=this.registeredArguments.slice(-1)[0]
413
+ ;if(e?.variadic)throw new Error(`only the last argument can be variadic '${e.name()}'`)
414
+ ;if(t.required&&void 0!==t.defaultValue&&void 0===t.parseArg)throw new Error(`a default value for a required argument is never used: '${t.name()}'`)
415
+ ;return this.registeredArguments.push(t),this}helpCommand(t,e){
416
+ if("boolean"==typeof t)return this._addImplicitHelpCommand=t,
417
+ t&&this._defaultCommandGroup&&this._initCommandGroup(this._getHelpCommand()),this
418
+ ;const i=t??"help [command]",[,r,s]=i.match(/([^ ]+) *(.*)/),n=e??"display help for command",o=this.createCommand(r)
419
+ ;return o.helpOption(!1),s&&o.arguments(s),n&&o.description(n),this._addImplicitHelpCommand=!0,this._helpCommand=o,
420
+ (t||e)&&this._initCommandGroup(o),this}addHelpCommand(t,e){return"object"!=typeof t?(this.helpCommand(t,e),
421
+ this):(this._addImplicitHelpCommand=!0,this._helpCommand=t,this._initCommandGroup(t),this)}_getHelpCommand(){
422
+ return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(void 0===this._helpCommand&&this.helpCommand(void 0,void 0),
423
+ this._helpCommand):null}hook(t,e){const i=["preSubcommand","preAction","postAction"]
424
+ ;if(!i.includes(t))throw new Error(`Unexpected value for event passed to hook : '${t}'.\nExpecting one of '${i.join("', '")}'`)
425
+ ;return this._lifeCycleHooks[t]?this._lifeCycleHooks[t].push(e):this._lifeCycleHooks[t]=[e],this}exitOverride(t){
426
+ return this._exitCallback=t||(t=>{if("commander.executeSubCommandAsync"!==t.code)throw t}),this}_exit(t,e,i){
427
+ this._exitCallback&&this._exitCallback(new fe(t,e,i)),o.exit(t)}action(t){return this._actionHandler=e=>{
428
+ const i=this.registeredArguments.length,r=e.slice(0,i);return this._storeOptionsAsProperties?r[i]=this:r[i]=this.opts(),
429
+ r.push(this),t.apply(this,r)},this}createOption(t,e){return new Oe(t,e)}_callParseArg(t,e,i,r){try{
430
+ return t.parseArg(e,i)}catch(t){if("commander.invalidArgument"===t.code){const e=`${r} ${t.message}`;this.error(e,{
431
+ exitCode:t.exitCode,code:t.code})}throw t}}_registerOption(t){
432
+ const e=t.short&&this._findOption(t.short)||t.long&&this._findOption(t.long);if(e){
433
+ const i=t.long&&this._findOption(t.long)?t.long:t.short
434
+ ;throw new Error(`Cannot add option '${t.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${i}'\n- already used by option '${e.flags}'`)
435
+ }this._initOptionGroup(t),this.options.push(t)}_registerCommand(t){
436
+ const e=t=>[t.name()].concat(t.aliases()),i=e(t).find(t=>this._findCommand(t));if(i){
437
+ const r=e(this._findCommand(i)).join("|"),s=e(t).join("|")
438
+ ;throw new Error(`cannot add command '${s}' as already have command '${r}'`)}this._initCommandGroup(t),
439
+ this.commands.push(t)}addOption(t){this._registerOption(t);const e=t.name(),i=t.attributeName()
440
+ ;void 0!==t.defaultValue&&this.setOptionValueWithSource(i,t.defaultValue,"default");const r=(e,r,s)=>{
441
+ null==e&&void 0!==t.presetArg&&(e=t.presetArg);const n=this.getOptionValue(i)
442
+ ;null!==e&&t.parseArg?e=this._callParseArg(t,e,n,r):null!==e&&t.variadic&&(e=t._collectValue(e,n)),
443
+ null==e&&(e=!t.negate&&(!(!t.isBoolean()&&!t.optional)||"")),this.setOptionValueWithSource(i,e,s)}
444
+ ;return this.on("option:"+e,e=>{const i=`error: option '${t.flags}' argument '${e}' is invalid.`;r(e,i,"cli")}),
445
+ t.envVar&&this.on("optionEnv:"+e,e=>{
446
+ const i=`error: option '${t.flags}' value '${e}' from env '${t.envVar}' is invalid.`;r(e,i,"env")}),this}
447
+ _optionEx(t,e,i,r,s){
448
+ if("object"==typeof e&&e instanceof Oe)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()")
449
+ ;const n=this.createOption(e,i)
450
+ ;if(n.makeOptionMandatory(!!t.mandatory),"function"==typeof r)n.default(s).argParser(r);else if(r instanceof RegExp){
451
+ const t=r;r=(e,i)=>{const r=t.exec(e);return r?r[0]:i},n.default(s).argParser(r)}else n.default(r)
452
+ ;return this.addOption(n)}option(t,e,i,r){return this._optionEx({},t,e,i,r)}requiredOption(t,e,i,r){
453
+ return this._optionEx({mandatory:!0},t,e,i,r)}combineFlagAndOptionalValue(t=!0){
454
+ return this._combineFlagAndOptionalValue=!!t,this}allowUnknownOption(t=!0){return this._allowUnknownOption=!!t,this}
455
+ allowExcessArguments(t=!0){return this._allowExcessArguments=!!t,this}enablePositionalOptions(t=!0){
456
+ return this._enablePositionalOptions=!!t,this}passThroughOptions(t=!0){return this._passThroughOptions=!!t,
457
+ this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){
458
+ if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)
459
+ }storeOptionsAsProperties(t=!0){
460
+ if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options")
461
+ ;if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values")
462
+ ;return this._storeOptionsAsProperties=!!t,this}getOptionValue(t){
463
+ return this._storeOptionsAsProperties?this[t]:this._optionValues[t]}setOptionValue(t,e){
464
+ return this.setOptionValueWithSource(t,e,void 0)}setOptionValueWithSource(t,e,i){
465
+ return this._storeOptionsAsProperties?this[t]=e:this._optionValues[t]=e,this._optionValueSources[t]=i,this}
466
+ getOptionValueSource(t){return this._optionValueSources[t]}getOptionValueSourceWithGlobals(t){let e
467
+ ;return this._getCommandAndAncestors().forEach(i=>{void 0!==i.getOptionValueSource(t)&&(e=i.getOptionValueSource(t))}),e
468
+ }_prepareUserArgs(t,e){
469
+ if(void 0!==t&&!Array.isArray(t))throw new Error("first parameter to parse must be array or undefined");if(e=e||{},
470
+ void 0===t&&void 0===e.from){o.versions?.electron&&(e.from="electron");const t=o.execArgv??[]
471
+ ;(t.includes("-e")||t.includes("--eval")||t.includes("-p")||t.includes("--print"))&&(e.from="eval")}let i
472
+ ;switch(void 0===t&&(t=o.argv),this.rawArgs=t.slice(),e.from){case void 0:case"node":this._scriptPath=t[1],i=t.slice(2)
473
+ ;break;case"electron":o.defaultApp?(this._scriptPath=t[1],i=t.slice(2)):i=t.slice(1);break;case"user":i=t.slice(0);break
474
+ ;case"eval":i=t.slice(1);break;default:throw new Error(`unexpected parse option { from: '${e.from}' }`)}
475
+ return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",i}
476
+ parse(t,e){this._prepareForParse();const i=this._prepareUserArgs(t,e);return this._parseCommand([],i),this}
477
+ async parseAsync(t,e){this._prepareForParse();const i=this._prepareUserArgs(t,e);return await this._parseCommand([],i),
478
+ this}_prepareForParse(){
479
+ null===this._savedState?(this.options.filter(t=>t.negate&&void 0===t.defaultValue&&void 0===this.getOptionValue(t.attributeName())).forEach(t=>{
480
+ const e=t.long.replace(/^--no-/,"--");this._findOption(e)||this.setOptionValueWithSource(t.attributeName(),!0,"default")
481
+ }),this.saveStateBeforeParse()):this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={
482
+ _name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}
483
+ restoreStateBeforeParse(){
484
+ if(this._storeOptionsAsProperties)throw new Error("Can not call parse again when storeOptionsAsProperties is true.\n- either make a new Command for each call to parse, or stop storing options as properties")
485
+ ;this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={
486
+ ...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],
487
+ this.processedArgs=[]}_checkForMissingExecutable(t,e,i){if(s.existsSync(t))return
488
+ ;throw new Error(`'${t}' does not exist\n - if '${i}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead\n - if the default executable name is not suitable, use the executableFile option to supply a custom name or path\n - ${e?`searched for local subcommand relative to directory '${e}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory"}`)
489
+ }_executeSubCommand(e,r){r=r.slice();const n=[".js",".ts",".tsx",".mjs",".cjs"];function a(t,e){const r=i.resolve(t,e)
490
+ ;if(s.existsSync(r))return r;if(n.includes(i.extname(e)))return;const o=n.find(t=>s.existsSync(`${r}${t}`))
491
+ ;return o?`${r}${o}`:void 0}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions()
492
+ ;let l=e._executableFile||`${this._name}-${e._name}`,h=this._executableDir||"";if(this._scriptPath){let t;try{
493
+ t=s.realpathSync(this._scriptPath)}catch{t=this._scriptPath}h=i.resolve(i.dirname(t),h)}if(h){let t=a(h,l)
494
+ ;if(!t&&!e._executableFile&&this._scriptPath){const r=i.basename(this._scriptPath,i.extname(this._scriptPath))
495
+ ;r!==this._name&&(t=a(h,`${r}-${e._name}`))}l=t||l}const u=n.includes(i.extname(l));let c
496
+ ;if("win32"!==o.platform?u?(r.unshift(l),r=Te(o.execArgv).concat(r),c=t.spawn(o.argv[0],r,{stdio:"inherit"
497
+ })):c=t.spawn(l,r,{stdio:"inherit"}):(this._checkForMissingExecutable(l,h,e._name),r.unshift(l),
498
+ r=Te(o.execArgv).concat(r),c=t.spawn(o.execPath,r,{stdio:"inherit"})),!c.killed){
499
+ ["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(t=>{o.on(t,()=>{!1===c.killed&&null===c.exitCode&&c.kill(t)})
500
+ })}const p=this._exitCallback;c.on("close",t=>{
501
+ t=t??1,p?p(new fe(t,"commander.executeSubCommandAsync","(close)")):o.exit(t)}),c.on("error",t=>{
502
+ if("ENOENT"===t.code)this._checkForMissingExecutable(l,h,e._name);else if("EACCES"===t.code)throw new Error(`'${l}' not executable`)
503
+ ;if(p){const e=new fe(1,"commander.executeSubCommandAsync","(error)");e.nestedError=t,p(e)}else o.exit(1)}),
504
+ this.runningCommand=c}_dispatchSubcommand(t,e,i){const r=this._findCommand(t);let s;return r||this.help({error:!0}),
505
+ r._prepareForParse(),s=this._chainOrCallSubCommandHook(s,r,"preSubcommand"),s=this._chainOrCall(s,()=>{
506
+ if(!r._executableHandler)return r._parseCommand(e,i);this._executeSubCommand(r,e.concat(i))}),s}_dispatchHelpCommand(t){
507
+ t||this.help();const e=this._findCommand(t);return e&&!e._executableHandler&&e.help(),
508
+ this._dispatchSubcommand(t,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}
509
+ _checkNumberOfArguments(){this.registeredArguments.forEach((t,e)=>{
510
+ t.required&&null==this.args[e]&&this.missingArgument(t.name())
511
+ }),this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic||this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)
512
+ }_processArguments(){const t=(t,e,i)=>{let r=e;if(null!==e&&t.parseArg){
513
+ const s=`error: command-argument value '${e}' is invalid for argument '${t.name()}'.`;r=this._callParseArg(t,e,i,s)}
514
+ return r};this._checkNumberOfArguments();const e=[];this.registeredArguments.forEach((i,r)=>{let s=i.defaultValue
515
+ ;i.variadic?r<this.args.length?(s=this.args.slice(r),
516
+ i.parseArg&&(s=s.reduce((e,r)=>t(i,r,e),i.defaultValue))):void 0===s&&(s=[]):r<this.args.length&&(s=this.args[r],
517
+ i.parseArg&&(s=t(i,s,i.defaultValue))),e[r]=s}),this.processedArgs=e}_chainOrCall(t,e){
518
+ return t?.then&&"function"==typeof t.then?t.then(()=>e()):e()}_chainOrCallHooks(t,e){let i=t;const r=[]
519
+ ;return this._getCommandAndAncestors().reverse().filter(t=>void 0!==t._lifeCycleHooks[e]).forEach(t=>{
520
+ t._lifeCycleHooks[e].forEach(e=>{r.push({hookedCommand:t,callback:e})})}),"postAction"===e&&r.reverse(),r.forEach(t=>{
521
+ i=this._chainOrCall(i,()=>t.callback(t.hookedCommand,this))}),i}_chainOrCallSubCommandHook(t,e,i){let r=t
522
+ ;return void 0!==this._lifeCycleHooks[i]&&this._lifeCycleHooks[i].forEach(t=>{r=this._chainOrCall(r,()=>t(this,e))}),r}
523
+ _parseCommand(t,e){const i=this.parseOptions(e);if(this._parseOptionsEnv(),this._parseOptionsImplied(),
524
+ t=t.concat(i.operands),
525
+ e=i.unknown,this.args=t.concat(e),t&&this._findCommand(t[0]))return this._dispatchSubcommand(t[0],t.slice(1),e)
526
+ ;if(this._getHelpCommand()&&t[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(t[1])
527
+ ;if(this._defaultCommandName)return this._outputHelpIfRequested(e),
528
+ this._dispatchSubcommand(this._defaultCommandName,t,e)
529
+ ;!this.commands.length||0!==this.args.length||this._actionHandler||this._defaultCommandName||this.help({error:!0}),
530
+ this._outputHelpIfRequested(i.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions()
531
+ ;const r=()=>{i.unknown.length>0&&this.unknownOption(i.unknown[0])},s=`command:${this.name()}`;if(this._actionHandler){
532
+ let i;return r(),this._processArguments(),i=this._chainOrCallHooks(i,"preAction"),
533
+ i=this._chainOrCall(i,()=>this._actionHandler(this.processedArgs)),this.parent&&(i=this._chainOrCall(i,()=>{
534
+ this.parent.emit(s,t,e)})),i=this._chainOrCallHooks(i,"postAction"),i}if(this.parent?.listenerCount(s))r(),
535
+ this._processArguments(),this.parent.emit(s,t,e);else if(t.length){
536
+ if(this._findCommand("*"))return this._dispatchSubcommand("*",t,e)
537
+ ;this.listenerCount("command:*")?this.emit("command:*",t,e):this.commands.length?this.unknownCommand():(r(),
538
+ this._processArguments())}else this.commands.length?(r(),this.help({error:!0})):(r(),this._processArguments())}
539
+ _findCommand(t){if(t)return this.commands.find(e=>e._name===t||e._aliases.includes(t))}_findOption(t){
540
+ return this.options.find(e=>e.is(t))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(t=>{
541
+ t.options.forEach(e=>{e.mandatory&&void 0===t.getOptionValue(e.attributeName())&&t.missingMandatoryOptionValue(e)})})}
542
+ _checkForConflictingLocalOptions(){const t=this.options.filter(t=>{const e=t.attributeName()
543
+ ;return void 0!==this.getOptionValue(e)&&"default"!==this.getOptionValueSource(e)})
544
+ ;t.filter(t=>t.conflictsWith.length>0).forEach(e=>{const i=t.find(t=>e.conflictsWith.includes(t.attributeName()))
545
+ ;i&&this._conflictingOption(e,i)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(t=>{
546
+ t._checkForConflictingLocalOptions()})}parseOptions(t){const e=[],i=[];let r=e;function s(t){
547
+ return t.length>1&&"-"===t[0]}
548
+ const n=t=>!!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(t)&&!this._getCommandAndAncestors().some(t=>t.options.map(t=>t.short).some(t=>/^-\d$/.test(t)))
549
+ ;let o=null,a=null,l=0;for(;l<t.length||a;){const h=a??t[l++];if(a=null,"--"===h){r===i&&r.push(h),r.push(...t.slice(l))
550
+ ;break}if(!o||s(h)&&!n(h)){if(o=null,s(h)){const e=this._findOption(h);if(e){if(e.required){const i=t[l++]
551
+ ;void 0===i&&this.optionMissingArgument(e),this.emit(`option:${e.name()}`,i)}else if(e.optional){let i=null
552
+ ;l<t.length&&(!s(t[l])||n(t[l]))&&(i=t[l++]),this.emit(`option:${e.name()}`,i)}else this.emit(`option:${e.name()}`)
553
+ ;o=e.variadic?e:null;continue}}if(h.length>2&&"-"===h[0]&&"-"!==h[1]){const t=this._findOption(`-${h[1]}`);if(t){
554
+ t.required||t.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${t.name()}`,h.slice(2)):(this.emit(`option:${t.name()}`),
555
+ a=`-${h.slice(2)}`);continue}}if(/^--[^=]+=/.test(h)){const t=h.indexOf("="),e=this._findOption(h.slice(0,t))
556
+ ;if(e&&(e.required||e.optional)){this.emit(`option:${e.name()}`,h.slice(t+1));continue}}
557
+ if(r!==e||!s(h)||0===this.commands.length&&n(h)||(r=i),
558
+ (this._enablePositionalOptions||this._passThroughOptions)&&0===e.length&&0===i.length){if(this._findCommand(h)){
559
+ e.push(h),i.push(...t.slice(l));break}if(this._getHelpCommand()&&h===this._getHelpCommand().name()){
560
+ e.push(h,...t.slice(l));break}if(this._defaultCommandName){i.push(h,...t.slice(l));break}}if(this._passThroughOptions){
561
+ r.push(h,...t.slice(l));break}r.push(h)}else this.emit(`option:${o.name()}`,h)}return{operands:e,unknown:i}}opts(){
562
+ if(this._storeOptionsAsProperties){const t={},e=this.options.length;for(let i=0;i<e;i++){
563
+ const e=this.options[i].attributeName();t[e]=e===this._versionOptionName?this._version:this[e]}return t}
564
+ return this._optionValues}optsWithGlobals(){
565
+ return this._getCommandAndAncestors().reduce((t,e)=>Object.assign(t,e.opts()),{})}error(t,e){
566
+ this._outputConfiguration.outputError(`${t}\n`,this._outputConfiguration.writeErr),
567
+ "string"==typeof this._showHelpAfterError?this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`):this._showHelpAfterError&&(this._outputConfiguration.writeErr("\n"),
568
+ this.outputHelp({error:!0}));const i=e||{},r=i.exitCode||1,s=i.code||"commander.error";this._exit(r,s,t)}
569
+ _parseOptionsEnv(){this.options.forEach(t=>{if(t.envVar&&t.envVar in o.env){const e=t.attributeName()
570
+ ;(void 0===this.getOptionValue(e)||["default","config","env"].includes(this.getOptionValueSource(e)))&&(t.required||t.optional?this.emit(`optionEnv:${t.name()}`,o.env[t.envVar]):this.emit(`optionEnv:${t.name()}`))
571
+ }})}_parseOptionsImplied(){
572
+ const t=new xe(this.options),e=t=>void 0!==this.getOptionValue(t)&&!["default","implied"].includes(this.getOptionValueSource(t))
573
+ ;this.options.filter(i=>void 0!==i.implied&&e(i.attributeName())&&t.valueFromOption(this.getOptionValue(i.attributeName()),i)).forEach(t=>{
574
+ Object.keys(t.implied).filter(t=>!e(t)).forEach(e=>{this.setOptionValueWithSource(e,t.implied[e],"implied")})})}
575
+ missingArgument(t){const e=`error: missing required argument '${t}'`;this.error(e,{code:"commander.missingArgument"})}
576
+ optionMissingArgument(t){const e=`error: option '${t.flags}' argument missing`;this.error(e,{
577
+ code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(t){
578
+ const e=`error: required option '${t.flags}' not specified`;this.error(e,{code:"commander.missingMandatoryOptionValue"})
579
+ }_conflictingOption(t,e){const i=t=>{
580
+ const e=t.attributeName(),i=this.getOptionValue(e),r=this.options.find(t=>t.negate&&e===t.attributeName()),s=this.options.find(t=>!t.negate&&e===t.attributeName())
581
+ ;return r&&(void 0===r.presetArg&&!1===i||void 0!==r.presetArg&&i===r.presetArg)?r:s||t},r=t=>{
582
+ const e=i(t),r=e.attributeName()
583
+ ;return"env"===this.getOptionValueSource(r)?`environment variable '${e.envVar}'`:`option '${e.flags}'`
584
+ },s=`error: ${r(t)} cannot be used with ${r(e)}`;this.error(s,{code:"commander.conflictingOption"})}unknownOption(t){
585
+ if(this._allowUnknownOption)return;let e="";if(t.startsWith("--")&&this._showSuggestionAfterError){let i=[],r=this;do{
586
+ const t=r.createHelp().visibleOptions(r).filter(t=>t.long).map(t=>t.long);i=i.concat(t),r=r.parent
587
+ }while(r&&!r._enablePositionalOptions);e=Ce(t,i)}const i=`error: unknown option '${t}'${e}`;this.error(i,{
588
+ code:"commander.unknownOption"})}_excessArguments(t){if(this._allowExcessArguments)return
589
+ ;const e=this.registeredArguments.length,i=1===e?"":"s",r=t.length,s=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${e} argument${i} but got ${r}: ${t.join(", ")}.`
590
+ ;this.error(s,{code:"commander.excessArguments"})}unknownCommand(){const t=this.args[0];let e=""
591
+ ;if(this._showSuggestionAfterError){const i=[];this.createHelp().visibleCommands(this).forEach(t=>{i.push(t.name()),
592
+ t.alias()&&i.push(t.alias())}),e=Ce(t,i)}const i=`error: unknown command '${t}'${e}`;this.error(i,{
593
+ code:"commander.unknownCommand"})}version(t,e,i){if(void 0===t)return this._version;this._version=t,
594
+ e=e||"-V, --version",i=i||"output the version number";const r=this.createOption(e,i)
595
+ ;return this._versionOptionName=r.attributeName(),this._registerOption(r),this.on("option:"+r.name(),()=>{
596
+ this._outputConfiguration.writeOut(`${t}\n`),this._exit(0,"commander.version",t)}),this}description(t,e){
597
+ return void 0===t&&void 0===e?this._description:(this._description=t,e&&(this._argsDescription=e),this)}summary(t){
598
+ return void 0===t?this._summary:(this._summary=t,this)}alias(t){if(void 0===t)return this._aliases[0];let e=this
599
+ ;if(0!==this.commands.length&&this.commands[this.commands.length-1]._executableHandler&&(e=this.commands[this.commands.length-1]),
600
+ t===e._name)throw new Error("Command alias can't be the same as its name");const i=this.parent?._findCommand(t);if(i){
601
+ const e=[i.name()].concat(i.aliases()).join("|")
602
+ ;throw new Error(`cannot add alias '${t}' to command '${this.name()}' as already have command '${e}'`)}
603
+ return e._aliases.push(t),this}aliases(t){return void 0===t?this._aliases:(t.forEach(t=>this.alias(t)),this)}usage(t){
604
+ if(void 0===t){if(this._usage)return this._usage;const t=this.registeredArguments.map(t=>ve(t))
605
+ ;return[].concat(this.options.length||null!==this._helpOption?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?t:[]).join(" ")
606
+ }return this._usage=t,this}name(t){return void 0===t?this._name:(this._name=t,this)}helpGroup(t){
607
+ return void 0===t?this._helpGroupHeading??"":(this._helpGroupHeading=t,this)}commandsGroup(t){
608
+ return void 0===t?this._defaultCommandGroup??"":(this._defaultCommandGroup=t,this)}optionsGroup(t){
609
+ return void 0===t?this._defaultOptionGroup??"":(this._defaultOptionGroup=t,this)}_initOptionGroup(t){
610
+ this._defaultOptionGroup&&!t.helpGroupHeading&&t.helpGroup(this._defaultOptionGroup)}_initCommandGroup(t){
611
+ this._defaultCommandGroup&&!t.helpGroup()&&t.helpGroup(this._defaultCommandGroup)}nameFromFilename(t){
612
+ return this._name=i.basename(t,i.extname(t)),this}executableDir(t){
613
+ return void 0===t?this._executableDir:(this._executableDir=t,this)}helpInformation(t){
614
+ const e=this.createHelp(),i=this._getOutputContext(t);e.prepareContext({error:i.error,helpWidth:i.helpWidth,
615
+ outputHasColors:i.hasColors});const r=e.formatHelp(this,e);return i.hasColors?r:this._outputConfiguration.stripColor(r)}
616
+ _getOutputContext(t){const e=!!(t=t||{}).error;let i,r,s;e?(i=t=>this._outputConfiguration.writeErr(t),
617
+ r=this._outputConfiguration.getErrHasColors(),
618
+ s=this._outputConfiguration.getErrHelpWidth()):(i=t=>this._outputConfiguration.writeOut(t),
619
+ r=this._outputConfiguration.getOutHasColors(),s=this._outputConfiguration.getOutHelpWidth());return{error:e,
620
+ write:t=>(r||(t=this._outputConfiguration.stripColor(t)),i(t)),hasColors:r,helpWidth:s}}outputHelp(t){let e
621
+ ;"function"==typeof t&&(e=t,t=void 0);const i=this._getOutputContext(t),r={error:i.error,write:i.write,command:this}
622
+ ;this._getCommandAndAncestors().reverse().forEach(t=>t.emit("beforeAllHelp",r)),this.emit("beforeHelp",r)
623
+ ;let s=this.helpInformation({error:i.error})
624
+ ;if(e&&(s=e(s),"string"!=typeof s&&!Buffer.isBuffer(s)))throw new Error("outputHelp callback must return a string or a Buffer")
625
+ ;i.write(s),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",r),
626
+ this._getCommandAndAncestors().forEach(t=>t.emit("afterAllHelp",r))}helpOption(t,e){
627
+ return"boolean"==typeof t?(t?(null===this._helpOption&&(this._helpOption=void 0),
628
+ this._defaultOptionGroup&&this._initOptionGroup(this._getHelpOption())):this._helpOption=null,
629
+ this):(this._helpOption=this.createOption(t??"-h, --help",e??"display help for command"),
630
+ (t||e)&&this._initOptionGroup(this._helpOption),this)}_getHelpOption(){
631
+ return void 0===this._helpOption&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(t){
632
+ return this._helpOption=t,this._initOptionGroup(t),this}help(t){this.outputHelp(t);let e=Number(o.exitCode??0)
633
+ ;0===e&&t&&"function"!=typeof t&&t.error&&(e=1),this._exit(e,"commander.help","(outputHelp)")}addHelpText(t,e){
634
+ const i=["beforeAll","before","after","afterAll"]
635
+ ;if(!i.includes(t))throw new Error(`Unexpected value for position to addHelpText.\nExpecting one of '${i.join("', '")}'`)
636
+ ;const r=`${t}Help`;return this.on(r,t=>{let i;i="function"==typeof e?e({error:t.error,command:t.command}):e,
637
+ i&&t.write(`${i}\n`)}),this}_outputHelpIfRequested(t){const e=this._getHelpOption()
638
+ ;e&&t.find(t=>e.is(t))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}}function Te(t){
639
+ return t.map(t=>{if(!t.startsWith("--inspect"))return t;let e,i,r="127.0.0.1",s="9229"
640
+ ;return null!==(i=t.match(/^(--inspect(-brk)?)$/))?e=i[1]:null!==(i=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))?(e=i[1],
641
+ /^\d+$/.test(i[3])?s=i[3]:r=i[3]):null!==(i=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))&&(e=i[1],r=i[3],
642
+ s=i[4]),e&&"0"!==s?`${e}=${r}:${parseInt(s)+1}`:t})}function Ae(){
643
+ return!o.env.NO_COLOR&&"0"!==o.env.FORCE_COLOR&&"false"!==o.env.FORCE_COLOR&&(!(!o.env.FORCE_COLOR&&void 0===o.env.CLICOLOR_FORCE)||void 0)
644
+ }new we;const Ee=process.cwd();function Se(t){const e=parseInt(t,10);if(isNaN(e))throw new Error("Invalid port.")
645
+ ;return e}function $e(t,i,r){return new Promise((s,n)=>{const o=e(process.execPath,[t,...i],{stdio:"inherit",cwd:r})
646
+ ;o.on("close",t=>s(t??1)),o.on("error",n)})}(async()=>{const t=new we,{rE:e}=f;try{console.clear(),
647
+ t.name("mahameru").description(`${de().bold(de().cyan("▲ Mahameru"))} ${de().dim(`CLI v${e}`)}`).version(e),
648
+ t.command("dev").option("-p, --port <number>","Port to run the server on",Se,3e3).option("-h, --host <string>","Host to run the server on","localhost").action(async t=>{
649
+ console.log(`${de().bold(de().cyan("▲ Mahameru"))} ${de().dim(`CLI v${e}`)}\n`);const i="mahameru.config.ts",s=r(Ee,i)
650
+ ;n(s)||(console.error(de().red(`❌ Error: Config file '${i}' is not found.`)),
651
+ console.error(de().yellow("Please create project by running: npm create mahameru")),process.exit(1))
652
+ ;const o=r(Ee,"node_modules","tsx","dist","cli.mjs")
653
+ ;n(o)||(console.error(de().red("❌ Error: Runner 'tsx' is not installed.")),
654
+ console.error(de().yellow("Please install it by running: npm install -D tsx")),process.exit(1))
655
+ ;const a=r(Ee,"node_modules","tsx","dist","esm","api")
656
+ ;n(a)||(console.error(de().red("❌ Error: Runner 'tsx' API is not installed.")),
657
+ console.error(de().yellow("Please install it by running: npm install -D tsx")),process.exit(1))
658
+ ;const l=await import("tsx/esm/api").catch(()=>{console.error(de().red("❌ Error: Runner 'tsx' api is not installed.")),
659
+ console.error(de().yellow("Please install it by running: npm install -D tsx")),process.exit(1)}),h=u(s).href
660
+ ;let c=(await l.tsImport(h,"file:///F:/Projects/@mahameru/cli/src/index.ts")).default;c={...c,dev:void 0!==c.dev&&c.dev,
661
+ port:void 0!==t.port?t.port:void 0!==c.port?c.port:3e3,host:void 0!==t.host?t.host:void 0!==c.host?c.host:"localhost",
662
+ trailingSlash:void 0===c.trailingSlash||c.trailingSlash,allowedOrigins:void 0!==c.allowedOrigins?c.allowedOrigins:[],
663
+ disableHttpSignatureResponse:void 0!==c.disableHttpSignatureResponse&&c.disableHttpSignatureResponse}
664
+ ;const p=`\n import mahameru from "mahameru";\n\n mahameru(${JSON.stringify(c)}).then(app => \n app.initialize().then(() => {\n console.log("\\x1b[32m Mahameru Server Ready! 🚀\\x1b[0m");\n console.log(" \\x1b[1mMode:\\x1b[22m \\x1b[36m${c.dev?"Development":"Production"}\\x1b[0m");\n console.log(" \\x1b[1mLokal:\\x1b[22m \\x1b[36mhttp://${c.host}:${c.port}\\x1b[0m");\n console.log(" \\x1b[1mHost:\\x1b[22m ${c.host}");\n console.log(" \\x1b[1mPort:\\x1b[22m ${c.port}\\n");\n console.log("\\x1b[90mPress Ctrl+C to stop server\\x1b[0m\\n");\n }).catch(console.error)\n ).catch(console.error)\n `
665
+ ;await $e(o,["-e",p],Ee)}),t.command("build").description("Build Mahameru production application.").action(async()=>{
666
+ console.log(`${de().bold(de().cyan("▲ Mahameru"))} ${de().dim(`CLI v${e}`)}\n`)
667
+ ;const t=pe(de().cyan("Checking environment...")).start()
668
+ ;n(r(Ee,"package.json"))&&n(r(Ee,"node_modules"))||(t.fail(de().red(" Current directory is not a Node.js project.")),
669
+ process.exit(1));const i=r(Ee,"node_modules","typescript","bin","tsc")
670
+ ;n(i)||(t.fail(de().red(" TypeScript compiler (tsc) is not installed in this project.")),process.exit(1))
671
+ ;const s=r(Ee,"node_modules","tsc-alias","dist","index.js");n(s)||(t.fail(de().red(" tsc-alias not installed.")),
672
+ process.exit(1));try{t.text=de().cyan("Starting build...");const e=await $e(i,["--project","tsconfig.json"],Ee)
673
+ ;0!==e&&(t.fail(de().red(" Build failed!")),process.exit(e));const r=await $e(s,["-p","tsconfig.json"],Ee)
674
+ ;0!==r&&(t.fail(de().red(" tsc-alias failed.")),process.exit(r)),t.succeed(de().green("Build success."))}catch(e){
675
+ t.fail(de().red(" Terjadi kesalahan internal.")),console.error(e),process.exit(1)}}),
676
+ t.command("start").description("Start Mahameru production server.").option("-p, --port <number>","Port to run the server on",Se,3e3).option("-h, --host <string>","Host to run the server on","localhost").action(t=>{
677
+ console.log(`${de().bold(de().cyan("▲ Mahameru"))} ${de().dim(`CLI v${e}`)}\n`),
678
+ console.log(de().green("Not implemented yet."))}),t.parse(process.argv)}catch(t){console.error(t),process.exit(1)}})();