@stacksjs/error-handling 0.62.0 → 0.63.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {createRequire} from "node:module";
2
2
  var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
3
  var __getProtoOf = Object.getPrototypeOf;
4
+ var __defProp = Object.defineProperty;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __toESM = (mod, isNodeMode, target) => {
@@ -26,9 +26,72 @@ var __export = (target, all) => {
26
26
  });
27
27
  };
28
28
  var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
29
- var __require = createRequire(import.meta.url);
29
+ var __require = /* @__PURE__ */ createRequire(import.meta.url);
30
30
 
31
31
  // ../../../../node_modules/consola/dist/core.mjs
32
+ function isObject(value) {
33
+ return value !== null && typeof value === "object";
34
+ }
35
+ function _defu(baseObject, defaults, namespace = ".", merger) {
36
+ if (!isObject(defaults)) {
37
+ return _defu(baseObject, {}, namespace, merger);
38
+ }
39
+ const object = Object.assign({}, defaults);
40
+ for (const key in baseObject) {
41
+ if (key === "__proto__" || key === "constructor") {
42
+ continue;
43
+ }
44
+ const value = baseObject[key];
45
+ if (value === null || value === undefined) {
46
+ continue;
47
+ }
48
+ if (merger && merger(object, key, value, namespace)) {
49
+ continue;
50
+ }
51
+ if (Array.isArray(value) && Array.isArray(object[key])) {
52
+ object[key] = [...value, ...object[key]];
53
+ } else if (isObject(value) && isObject(object[key])) {
54
+ object[key] = _defu(value, object[key], (namespace ? `${namespace}.` : "") + key.toString(), merger);
55
+ } else {
56
+ object[key] = value;
57
+ }
58
+ }
59
+ return object;
60
+ }
61
+ function createDefu(merger) {
62
+ return (...arguments_) => arguments_.reduce((p, c) => _defu(p, c, "", merger), {});
63
+ }
64
+ function isPlainObject(obj) {
65
+ return Object.prototype.toString.call(obj) === "[object Object]";
66
+ }
67
+ function isLogObj(arg) {
68
+ if (!isPlainObject(arg)) {
69
+ return false;
70
+ }
71
+ if (!arg.message && !arg.args) {
72
+ return false;
73
+ }
74
+ if (arg.stack) {
75
+ return false;
76
+ }
77
+ return true;
78
+ }
79
+ function _normalizeLogLevel(input, types = {}, defaultLevel = 3) {
80
+ if (input === undefined) {
81
+ return defaultLevel;
82
+ }
83
+ if (typeof input === "number") {
84
+ return input;
85
+ }
86
+ if (types[input] && types[input].level !== undefined) {
87
+ return types[input].level;
88
+ }
89
+ return defaultLevel;
90
+ }
91
+ function createConsola(options = {}) {
92
+ return new Consola(options);
93
+ }
94
+
32
95
  class Consola {
33
96
  constructor(options = {}) {
34
97
  const types = options.types || LogTypes;
@@ -203,7 +266,7 @@ class Consola {
203
266
  return false;
204
267
  }
205
268
  const logObj = {
206
- date: new Date,
269
+ date: /* @__PURE__ */ new Date,
207
270
  args: [],
208
271
  ...defaults,
209
272
  level: _normalizeLogLevel(defaults.level, this.options.types)
@@ -273,70 +336,8 @@ class Consola {
273
336
  }
274
337
  }
275
338
  }
276
- var isObject, _defu, createDefu, isPlainObject, isLogObj, _normalizeLogLevel, createConsola, LogLevels, LogTypes, defu, paused, queue;
339
+ var LogLevels, LogTypes, defu, paused = false, queue;
277
340
  var init_core = __esm(() => {
278
- isObject = function(value) {
279
- return value !== null && typeof value === "object";
280
- };
281
- _defu = function(baseObject, defaults, namespace = ".", merger) {
282
- if (!isObject(defaults)) {
283
- return _defu(baseObject, {}, namespace, merger);
284
- }
285
- const object = Object.assign({}, defaults);
286
- for (const key in baseObject) {
287
- if (key === "__proto__" || key === "constructor") {
288
- continue;
289
- }
290
- const value = baseObject[key];
291
- if (value === null || value === undefined) {
292
- continue;
293
- }
294
- if (merger && merger(object, key, value, namespace)) {
295
- continue;
296
- }
297
- if (Array.isArray(value) && Array.isArray(object[key])) {
298
- object[key] = [...value, ...object[key]];
299
- } else if (isObject(value) && isObject(object[key])) {
300
- object[key] = _defu(value, object[key], (namespace ? `${namespace}.` : "") + key.toString(), merger);
301
- } else {
302
- object[key] = value;
303
- }
304
- }
305
- return object;
306
- };
307
- createDefu = function(merger) {
308
- return (...arguments_) => arguments_.reduce((p, c) => _defu(p, c, "", merger), {});
309
- };
310
- isPlainObject = function(obj) {
311
- return Object.prototype.toString.call(obj) === "[object Object]";
312
- };
313
- isLogObj = function(arg) {
314
- if (!isPlainObject(arg)) {
315
- return false;
316
- }
317
- if (!arg.message && !arg.args) {
318
- return false;
319
- }
320
- if (arg.stack) {
321
- return false;
322
- }
323
- return true;
324
- };
325
- _normalizeLogLevel = function(input, types = {}, defaultLevel = 3) {
326
- if (input === undefined) {
327
- return defaultLevel;
328
- }
329
- if (typeof input === "number") {
330
- return input;
331
- }
332
- if (types[input] && types[input].level !== undefined) {
333
- return types[input].level;
334
- }
335
- return defaultLevel;
336
- };
337
- createConsola = function(options = {}) {
338
- return new Consola(options);
339
- };
340
341
  LogLevels = {
341
342
  silent: Number.NEGATIVE_INFINITY,
342
343
  fatal: 0,
@@ -398,7 +399,6 @@ var init_core = __esm(() => {
398
399
  }
399
400
  };
400
401
  defu = createDefu();
401
- paused = false;
402
402
  queue = [];
403
403
  Consola.prototype.add = Consola.prototype.addReporter;
404
404
  Consola.prototype.remove = Consola.prototype.removeReporter;
@@ -412,6 +412,15 @@ var init_core = __esm(() => {
412
412
  // ../../../../node_modules/consola/dist/shared/consola.06ad8a64.mjs
413
413
  import {formatWithOptions} from "node:util";
414
414
  import {sep} from "node:path";
415
+ function parseStack(stack) {
416
+ const cwd = process.cwd() + sep;
417
+ const lines = stack.split("\n").splice(1).map((l) => l.trim().replace("file://", "").replace(cwd, ""));
418
+ return lines;
419
+ }
420
+ function writeStream(data, stream) {
421
+ const write = stream.__write || stream.write;
422
+ return write.call(stream, data);
423
+ }
415
424
 
416
425
  class BasicReporter {
417
426
  formatStack(stack, opts) {
@@ -455,96 +464,86 @@ class BasicReporter {
455
464
  return writeStream(line + "\n", logObj.level < 2 ? ctx.options.stderr || process.stderr : ctx.options.stdout || process.stdout);
456
465
  }
457
466
  }
458
- var parseStack, writeStream, bracket;
459
- var init_consola_06ad8a64 = __esm(() => {
460
- parseStack = function(stack) {
461
- const cwd = process.cwd() + sep;
462
- const lines = stack.split("\n").splice(1).map((l) => l.trim().replace("file://", "").replace(cwd, ""));
463
- return lines;
464
- };
465
- writeStream = function(data, stream) {
466
- const write = stream.__write || stream.write;
467
- return write.call(stream, data);
468
- };
469
- bracket = (x) => x ? `[${x}]` : "";
470
- });
467
+ var bracket = (x) => x ? `[${x}]` : "";
468
+ var init_consola_06ad8a64 = () => {
469
+ };
471
470
 
472
471
  // ../../../../node_modules/consola/dist/utils.mjs
473
472
  import * as tty from "node:tty";
474
- var replaceClose, clearBleed, filterEmpty, init, createColors, getColor, stripAnsi, box, env, argv, platform, isDisabled, isForced, isWindows, isDumbTerminal, isCompatibleTerminal, isCI, isColorSupported, colorDefs, colors, ansiRegex, boxStylePresets, defaultStyle;
475
- var init_utils = __esm(() => {
476
- replaceClose = function(index, string, close, replace, head = string.slice(0, Math.max(0, index)) + replace, tail = string.slice(Math.max(0, index + close.length)), next = tail.indexOf(close)) {
477
- return head + (next < 0 ? tail : replaceClose(next, tail, close, replace));
478
- };
479
- clearBleed = function(index, string, open, close, replace) {
480
- return index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
481
- };
482
- filterEmpty = function(open, close, replace = open, at = open.length + 1) {
483
- return (string) => string || !(string === "" || string === undefined) ? clearBleed(("" + string).indexOf(close, at), string, open, close, replace) : "";
484
- };
485
- init = function(open, close, replace) {
486
- return filterEmpty(`\x1B[${open}m`, `\x1B[${close}m`, replace);
487
- };
488
- createColors = function(useColor = isColorSupported) {
489
- return useColor ? colorDefs : Object.fromEntries(Object.keys(colorDefs).map((key) => [key, String]));
490
- };
491
- getColor = function(color, fallback = "reset") {
492
- return colors[color] || colors[fallback];
473
+ function replaceClose(index, string, close, replace, head = string.slice(0, Math.max(0, index)) + replace, tail = string.slice(Math.max(0, index + close.length)), next = tail.indexOf(close)) {
474
+ return head + (next < 0 ? tail : replaceClose(next, tail, close, replace));
475
+ }
476
+ function clearBleed(index, string, open, close, replace) {
477
+ return index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
478
+ }
479
+ function filterEmpty(open, close, replace = open, at = open.length + 1) {
480
+ return (string) => string || !(string === "" || string === undefined) ? clearBleed(("" + string).indexOf(close, at), string, open, close, replace) : "";
481
+ }
482
+ function init(open, close, replace) {
483
+ return filterEmpty(`\x1B[${open}m`, `\x1B[${close}m`, replace);
484
+ }
485
+ function createColors(useColor = isColorSupported) {
486
+ return useColor ? colorDefs : Object.fromEntries(Object.keys(colorDefs).map((key) => [key, String]));
487
+ }
488
+ function getColor(color, fallback = "reset") {
489
+ return colors[color] || colors[fallback];
490
+ }
491
+ function stripAnsi(text) {
492
+ return text.replace(new RegExp(ansiRegex, "g"), "");
493
+ }
494
+ function box(text, _opts = {}) {
495
+ const opts = {
496
+ ..._opts,
497
+ style: {
498
+ ...defaultStyle,
499
+ ..._opts.style
500
+ }
493
501
  };
494
- stripAnsi = function(text) {
495
- return text.replace(new RegExp(ansiRegex, "g"), "");
502
+ const textLines = text.split("\n");
503
+ const boxLines = [];
504
+ const _color = getColor(opts.style.borderColor);
505
+ const borderStyle = {
506
+ ...typeof opts.style.borderStyle === "string" ? boxStylePresets[opts.style.borderStyle] || boxStylePresets.solid : opts.style.borderStyle
496
507
  };
497
- box = function(text, _opts = {}) {
498
- const opts = {
499
- ..._opts,
500
- style: {
501
- ...defaultStyle,
502
- ..._opts.style
503
- }
504
- };
505
- const textLines = text.split("\n");
506
- const boxLines = [];
507
- const _color = getColor(opts.style.borderColor);
508
- const borderStyle = {
509
- ...typeof opts.style.borderStyle === "string" ? boxStylePresets[opts.style.borderStyle] || boxStylePresets.solid : opts.style.borderStyle
510
- };
511
- if (_color) {
512
- for (const key in borderStyle) {
513
- borderStyle[key] = _color(borderStyle[key]);
514
- }
508
+ if (_color) {
509
+ for (const key in borderStyle) {
510
+ borderStyle[key] = _color(borderStyle[key]);
515
511
  }
516
- const paddingOffset = opts.style.padding % 2 === 0 ? opts.style.padding : opts.style.padding + 1;
517
- const height = textLines.length + paddingOffset;
518
- const width = Math.max(...textLines.map((line) => line.length)) + paddingOffset;
519
- const widthOffset = width + paddingOffset;
520
- const leftSpace = opts.style.marginLeft > 0 ? " ".repeat(opts.style.marginLeft) : "";
521
- if (opts.style.marginTop > 0) {
522
- boxLines.push("".repeat(opts.style.marginTop));
523
- }
524
- if (opts.title) {
525
- const left = borderStyle.h.repeat(Math.floor((width - stripAnsi(opts.title).length) / 2));
526
- const right = borderStyle.h.repeat(width - stripAnsi(opts.title).length - stripAnsi(left).length + paddingOffset);
527
- boxLines.push(`${leftSpace}${borderStyle.tl}${left}${opts.title}${right}${borderStyle.tr}`);
512
+ }
513
+ const paddingOffset = opts.style.padding % 2 === 0 ? opts.style.padding : opts.style.padding + 1;
514
+ const height = textLines.length + paddingOffset;
515
+ const width = Math.max(...textLines.map((line) => line.length)) + paddingOffset;
516
+ const widthOffset = width + paddingOffset;
517
+ const leftSpace = opts.style.marginLeft > 0 ? " ".repeat(opts.style.marginLeft) : "";
518
+ if (opts.style.marginTop > 0) {
519
+ boxLines.push("".repeat(opts.style.marginTop));
520
+ }
521
+ if (opts.title) {
522
+ const left = borderStyle.h.repeat(Math.floor((width - stripAnsi(opts.title).length) / 2));
523
+ const right = borderStyle.h.repeat(width - stripAnsi(opts.title).length - stripAnsi(left).length + paddingOffset);
524
+ boxLines.push(`${leftSpace}${borderStyle.tl}${left}${opts.title}${right}${borderStyle.tr}`);
525
+ } else {
526
+ boxLines.push(`${leftSpace}${borderStyle.tl}${borderStyle.h.repeat(widthOffset)}${borderStyle.tr}`);
527
+ }
528
+ const valignOffset = opts.style.valign === "center" ? Math.floor((height - textLines.length) / 2) : opts.style.valign === "top" ? height - textLines.length - paddingOffset : height - textLines.length;
529
+ for (let i = 0;i < height; i++) {
530
+ if (i < valignOffset || i >= valignOffset + textLines.length) {
531
+ boxLines.push(`${leftSpace}${borderStyle.v}${" ".repeat(widthOffset)}${borderStyle.v}`);
528
532
  } else {
529
- boxLines.push(`${leftSpace}${borderStyle.tl}${borderStyle.h.repeat(widthOffset)}${borderStyle.tr}`);
530
- }
531
- const valignOffset = opts.style.valign === "center" ? Math.floor((height - textLines.length) / 2) : opts.style.valign === "top" ? height - textLines.length - paddingOffset : height - textLines.length;
532
- for (let i = 0;i < height; i++) {
533
- if (i < valignOffset || i >= valignOffset + textLines.length) {
534
- boxLines.push(`${leftSpace}${borderStyle.v}${" ".repeat(widthOffset)}${borderStyle.v}`);
535
- } else {
536
- const line = textLines[i - valignOffset];
537
- const left = " ".repeat(paddingOffset);
538
- const right = " ".repeat(width - stripAnsi(line).length);
539
- boxLines.push(`${leftSpace}${borderStyle.v}${left}${line}${right}${borderStyle.v}`);
540
- }
541
- }
542
- boxLines.push(`${leftSpace}${borderStyle.bl}${borderStyle.h.repeat(widthOffset)}${borderStyle.br}`);
543
- if (opts.style.marginBottom > 0) {
544
- boxLines.push("".repeat(opts.style.marginBottom));
533
+ const line = textLines[i - valignOffset];
534
+ const left = " ".repeat(paddingOffset);
535
+ const right = " ".repeat(width - stripAnsi(line).length);
536
+ boxLines.push(`${leftSpace}${borderStyle.v}${left}${line}${right}${borderStyle.v}`);
545
537
  }
546
- return boxLines.join("\n");
547
- };
538
+ }
539
+ boxLines.push(`${leftSpace}${borderStyle.bl}${borderStyle.h.repeat(widthOffset)}${borderStyle.br}`);
540
+ if (opts.style.marginBottom > 0) {
541
+ boxLines.push("".repeat(opts.style.marginBottom));
542
+ }
543
+ return boxLines.join("\n");
544
+ }
545
+ var env, argv, platform, isDisabled, isForced, isWindows, isDumbTerminal, isCompatibleTerminal, isCI, isColorSupported, colorDefs, colors, ansiRegex, boxStylePresets, defaultStyle;
546
+ var init_utils = __esm(() => {
548
547
  ({
549
548
  env = {},
550
549
  argv = [],
@@ -691,6 +690,93 @@ import {stdin, stdout} from "node:process";
691
690
  import f from "node:readline";
692
691
  import {WriteStream} from "node:tty";
693
692
  import require$$0 from "tty";
693
+ function z({ onlyFirst: t = false } = {}) {
694
+ const u = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");
695
+ return new RegExp(u, t ? undefined : "g");
696
+ }
697
+ function $(t) {
698
+ if (typeof t != "string")
699
+ throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);
700
+ return t.replace(z(), "");
701
+ }
702
+ function c(t, u = {}) {
703
+ if (typeof t != "string" || t.length === 0 || (u = { ambiguousIsNarrow: true, ...u }, t = $(t), t.length === 0))
704
+ return 0;
705
+ t = t.replace(Y(), " ");
706
+ const F = u.ambiguousIsNarrow ? 1 : 2;
707
+ let e = 0;
708
+ for (const s of t) {
709
+ const C = s.codePointAt(0);
710
+ if (C <= 31 || C >= 127 && C <= 159 || C >= 768 && C <= 879)
711
+ continue;
712
+ switch (K.eastAsianWidth(s)) {
713
+ case "F":
714
+ case "W":
715
+ e += 2;
716
+ break;
717
+ case "A":
718
+ e += F;
719
+ break;
720
+ default:
721
+ e += 1;
722
+ }
723
+ }
724
+ return e;
725
+ }
726
+ function U() {
727
+ const t = new Map;
728
+ for (const [u, F] of Object.entries(r)) {
729
+ for (const [e, s] of Object.entries(F))
730
+ r[e] = { open: `\x1B[${s[0]}m`, close: `\x1B[${s[1]}m` }, F[e] = r[e], t.set(s[0], s[1]);
731
+ Object.defineProperty(r, u, { value: F, enumerable: false });
732
+ }
733
+ return Object.defineProperty(r, "codes", { value: t, enumerable: false }), r.color.close = "\x1B[39m", r.bgColor.close = "\x1B[49m", r.color.ansi = L(), r.color.ansi256 = M(), r.color.ansi16m = T(), r.bgColor.ansi = L(v), r.bgColor.ansi256 = M(v), r.bgColor.ansi16m = T(v), Object.defineProperties(r, { rgbToAnsi256: { value: (u, F, e) => u === F && F === e ? u < 8 ? 16 : u > 248 ? 231 : Math.round((u - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u / 255 * 5) + 6 * Math.round(F / 255 * 5) + Math.round(e / 255 * 5), enumerable: false }, hexToRgb: { value: (u) => {
734
+ const F = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));
735
+ if (!F)
736
+ return [0, 0, 0];
737
+ let [e] = F;
738
+ e.length === 3 && (e = [...e].map((C) => C + C).join(""));
739
+ const s = Number.parseInt(e, 16);
740
+ return [s >> 16 & 255, s >> 8 & 255, s & 255];
741
+ }, enumerable: false }, hexToAnsi256: { value: (u) => r.rgbToAnsi256(...r.hexToRgb(u)), enumerable: false }, ansi256ToAnsi: { value: (u) => {
742
+ if (u < 8)
743
+ return 30 + u;
744
+ if (u < 16)
745
+ return 90 + (u - 8);
746
+ let F, e, s;
747
+ if (u >= 232)
748
+ F = ((u - 232) * 10 + 8) / 255, e = F, s = F;
749
+ else {
750
+ u -= 16;
751
+ const i = u % 36;
752
+ F = Math.floor(u / 36) / 5, e = Math.floor(i / 6) / 5, s = i % 6 / 5;
753
+ }
754
+ const C = Math.max(F, e, s) * 2;
755
+ if (C === 0)
756
+ return 30;
757
+ let D = 30 + (Math.round(s) << 2 | Math.round(e) << 1 | Math.round(F));
758
+ return C === 2 && (D += 60), D;
759
+ }, enumerable: false }, rgbToAnsi: { value: (u, F, e) => r.ansi256ToAnsi(r.rgbToAnsi256(u, F, e)), enumerable: false }, hexToAnsi: { value: (u) => r.ansi256ToAnsi(r.hexToAnsi256(u)), enumerable: false } }), r;
760
+ }
761
+ function P(t, u, F) {
762
+ return String(t).normalize().replace(/\r\n/g, `
763
+ `).split(`
764
+ `).map((e) => uD(e, u, F)).join(`
765
+ `);
766
+ }
767
+ function FD(t, u) {
768
+ if (t === u)
769
+ return;
770
+ const F = t.split(`
771
+ `), e = u.split(`
772
+ `), s = [];
773
+ for (let C = 0;C < Math.max(F.length, e.length); C++)
774
+ F[C] !== e[C] && s.push(C);
775
+ return s;
776
+ }
777
+ function g(t, u) {
778
+ t.isTTY && t.setRawMode(u);
779
+ }
694
780
  async function prompt(message, opts = {}) {
695
781
  if (!opts.type || opts.type === "text") {
696
782
  return await text({
@@ -804,195 +890,311 @@ class h {
804
890
  }
805
891
  }
806
892
  }
807
-
808
- class sD extends h {
809
- get cursor() {
810
- return this.value ? 0 : 1;
811
- }
812
- get _value() {
813
- return this.cursor === 0;
814
- }
815
- constructor(u) {
816
- super(u, false), this.value = !!u.initialValue, this.on("value", () => {
817
- this.value = this._value;
818
- }), this.on("confirm", (F) => {
819
- this.output.write(src.cursor.move(0, -1)), this.value = F, this.state = "submit", this.close();
820
- }), this.on("cursor", () => {
821
- this.value = !this.value;
822
- });
893
+ var ESC = "\x1B", CSI, beep = "\x07", cursor, scroll, erase, src, picocolors, tty2, isColorSupported2, formatter = (open, close, replace = open) => (input) => {
894
+ let string = "" + input;
895
+ let index = string.indexOf(close, open.length);
896
+ return ~index ? open + replaceClose2(string, close, replace, index) + close : open + string + close;
897
+ }, replaceClose2 = (string, close, replace, index) => {
898
+ let start = string.substring(0, index) + replace;
899
+ let end = string.substring(index + close.length);
900
+ let nextIndex = end.indexOf(close);
901
+ return ~nextIndex ? start + replaceClose2(end, close, replace, nextIndex) : start + end;
902
+ }, createColors2 = (enabled = isColorSupported2) => ({
903
+ isColorSupported: enabled,
904
+ reset: enabled ? (s) => `\x1B[0m${s}\x1B[0m` : String,
905
+ bold: enabled ? formatter("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m") : String,
906
+ dim: enabled ? formatter("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m") : String,
907
+ italic: enabled ? formatter("\x1B[3m", "\x1B[23m") : String,
908
+ underline: enabled ? formatter("\x1B[4m", "\x1B[24m") : String,
909
+ inverse: enabled ? formatter("\x1B[7m", "\x1B[27m") : String,
910
+ hidden: enabled ? formatter("\x1B[8m", "\x1B[28m") : String,
911
+ strikethrough: enabled ? formatter("\x1B[9m", "\x1B[29m") : String,
912
+ black: enabled ? formatter("\x1B[30m", "\x1B[39m") : String,
913
+ red: enabled ? formatter("\x1B[31m", "\x1B[39m") : String,
914
+ green: enabled ? formatter("\x1B[32m", "\x1B[39m") : String,
915
+ yellow: enabled ? formatter("\x1B[33m", "\x1B[39m") : String,
916
+ blue: enabled ? formatter("\x1B[34m", "\x1B[39m") : String,
917
+ magenta: enabled ? formatter("\x1B[35m", "\x1B[39m") : String,
918
+ cyan: enabled ? formatter("\x1B[36m", "\x1B[39m") : String,
919
+ white: enabled ? formatter("\x1B[37m", "\x1B[39m") : String,
920
+ gray: enabled ? formatter("\x1B[90m", "\x1B[39m") : String,
921
+ bgBlack: enabled ? formatter("\x1B[40m", "\x1B[49m") : String,
922
+ bgRed: enabled ? formatter("\x1B[41m", "\x1B[49m") : String,
923
+ bgGreen: enabled ? formatter("\x1B[42m", "\x1B[49m") : String,
924
+ bgYellow: enabled ? formatter("\x1B[43m", "\x1B[49m") : String,
925
+ bgBlue: enabled ? formatter("\x1B[44m", "\x1B[49m") : String,
926
+ bgMagenta: enabled ? formatter("\x1B[45m", "\x1B[49m") : String,
927
+ bgCyan: enabled ? formatter("\x1B[46m", "\x1B[49m") : String,
928
+ bgWhite: enabled ? formatter("\x1B[47m", "\x1B[49m") : String
929
+ }), picocolorsExports, l, m, G, K, Y = function() {
930
+ return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
931
+ }, v = 10, L = (t = 0) => (u) => `\x1B[${u + t}m`, M = (t = 0) => (u) => `\x1B[${38 + t};5;${u}m`, T = (t = 0) => (u, F, e) => `\x1B[${38 + t};2;${u};${F};${e}m`, r, Z, H, q, p, J = 39, b = "\x07", W = "[", Q = "]", I = "m", w, N = (t) => `${p.values().next().value}${W}${t}${I}`, j = (t) => `${p.values().next().value}${w}${t}${b}`, X = (t) => t.split(" ").map((u) => c(u)), _ = (t, u, F) => {
932
+ const e = [...u];
933
+ let s = false, C = false, D = c($(t[t.length - 1]));
934
+ for (const [i, o] of e.entries()) {
935
+ const E = c(o);
936
+ if (D + E <= F ? t[t.length - 1] += o : (t.push(o), D = 0), p.has(o) && (s = true, C = e.slice(i + 1).join("").startsWith(w)), s) {
937
+ C ? o === b && (s = false, C = false) : o === I && (s = false);
938
+ continue;
939
+ }
940
+ D += E, D === F && i < e.length - 1 && (t.push(""), D = 0);
823
941
  }
824
- }
825
-
826
- class iD extends h {
827
- constructor(u) {
828
- super(u, false), this.cursor = 0, this.options = u.options, this.value = [...u.initialValues ?? []], this.cursor = Math.max(this.options.findIndex(({ value: F }) => F === u.cursorAt), 0), this.on("key", (F) => {
829
- F === "a" && this.toggleAll();
830
- }), this.on("cursor", (F) => {
831
- switch (F) {
832
- case "left":
833
- case "up":
834
- this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
835
- break;
836
- case "down":
837
- case "right":
838
- this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
839
- break;
840
- case "space":
841
- this.toggleValue();
842
- break;
942
+ !D && t[t.length - 1].length > 0 && t.length > 1 && (t[t.length - 2] += t.pop());
943
+ }, DD = (t) => {
944
+ const u = t.split(" ");
945
+ let F = u.length;
946
+ for (;F > 0 && !(c(u[F - 1]) > 0); )
947
+ F--;
948
+ return F === u.length ? t : u.slice(0, F).join(" ") + u.slice(F).join("");
949
+ }, uD = (t, u, F = {}) => {
950
+ if (F.trim !== false && t.trim() === "")
951
+ return "";
952
+ let e = "", s, C;
953
+ const D = X(t);
954
+ let i = [""];
955
+ for (const [E, a] of t.split(" ").entries()) {
956
+ F.trim !== false && (i[i.length - 1] = i[i.length - 1].trimStart());
957
+ let n = c(i[i.length - 1]);
958
+ if (E !== 0 && (n >= u && (F.wordWrap === false || F.trim === false) && (i.push(""), n = 0), (n > 0 || F.trim === false) && (i[i.length - 1] += " ", n++)), F.hard && D[E] > u) {
959
+ const B = u - n, A = 1 + Math.floor((D[E] - B - 1) / u);
960
+ Math.floor((D[E] - 1) / u) < A && i.push(""), _(i, a, u);
961
+ continue;
962
+ }
963
+ if (n + D[E] > u && n > 0 && D[E] > 0) {
964
+ if (F.wordWrap === false && n < u) {
965
+ _(i, a, u);
966
+ continue;
843
967
  }
844
- });
845
- }
846
- get _value() {
847
- return this.options[this.cursor].value;
968
+ i.push("");
969
+ }
970
+ if (n + D[E] > u && F.wordWrap === false) {
971
+ _(i, a, u);
972
+ continue;
973
+ }
974
+ i[i.length - 1] += a;
848
975
  }
849
- toggleAll() {
850
- const u = this.value.length === this.options.length;
851
- this.value = u ? [] : this.options.map((F) => F.value);
976
+ F.trim !== false && (i = i.map((E) => DD(E)));
977
+ const o = [...i.join(`
978
+ `)];
979
+ for (const [E, a] of o.entries()) {
980
+ if (e += a, p.has(a)) {
981
+ const { groups: B } = new RegExp(`(?:\\${W}(?<code>\\d+)m|\\${w}(?<uri>.*)${b})`).exec(o.slice(E).join("")) || { groups: {} };
982
+ if (B.code !== undefined) {
983
+ const A = Number.parseFloat(B.code);
984
+ s = A === J ? undefined : A;
985
+ } else
986
+ B.uri !== undefined && (C = B.uri.length === 0 ? undefined : B.uri);
987
+ }
988
+ const n = q.codes.get(Number(s));
989
+ o[E + 1] === `
990
+ ` ? (C && (e += j("")), s && n && (e += N(n))) : a === `
991
+ ` && (s && n && (e += N(s)), C && (e += j(C)));
852
992
  }
853
- toggleValue() {
854
- const u = this.value.includes(this._value);
855
- this.value = u ? this.value.filter((F) => F !== this._value) : [...this.value, this._value];
993
+ return e;
994
+ }, R, V, tD, sD, iD, ED, oD, unicode, s = (c2, fallback) => unicode ? c2 : fallback, S_STEP_ACTIVE, S_STEP_CANCEL, S_STEP_ERROR, S_STEP_SUBMIT, S_BAR = "", S_BAR_END = "", S_RADIO_ACTIVE, S_RADIO_INACTIVE, S_CHECKBOX_ACTIVE, S_CHECKBOX_SELECTED, S_CHECKBOX_INACTIVE, symbol = (state) => {
995
+ switch (state) {
996
+ case "initial":
997
+ case "active": {
998
+ return colors.cyan(S_STEP_ACTIVE);
999
+ }
1000
+ case "cancel": {
1001
+ return colors.red(S_STEP_CANCEL);
1002
+ }
1003
+ case "error": {
1004
+ return colors.yellow(S_STEP_ERROR);
1005
+ }
1006
+ case "submit": {
1007
+ return colors.green(S_STEP_SUBMIT);
1008
+ }
856
1009
  }
857
- }
858
-
859
- class ED extends h {
860
- constructor(u) {
861
- super(u, false), this.cursor = 0, this.options = u.options, this.cursor = this.options.findIndex(({ value: F }) => F === u.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (F) => {
862
- switch (F) {
863
- case "left":
864
- case "up":
865
- this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
866
- break;
867
- case "down":
868
- case "right":
869
- this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
870
- break;
1010
+ }, text = (opts) => {
1011
+ return new oD({
1012
+ validate: opts.validate,
1013
+ placeholder: opts.placeholder,
1014
+ defaultValue: opts.defaultValue,
1015
+ initialValue: opts.initialValue,
1016
+ render() {
1017
+ const title = `${colors.gray(S_BAR)}
1018
+ ${symbol(this.state)} ${opts.message}
1019
+ `;
1020
+ const placeholder = opts.placeholder ? colors.inverse(opts.placeholder[0]) + colors.dim(opts.placeholder.slice(1)) : colors.inverse(colors.hidden("_"));
1021
+ const value = this.value ? this.valueWithCursor : placeholder;
1022
+ switch (this.state) {
1023
+ case "error": {
1024
+ return `${title.trim()}
1025
+ ${colors.yellow(S_BAR)} ${value}
1026
+ ${colors.yellow(S_BAR_END)} ${colors.yellow(this.error)}
1027
+ `;
1028
+ }
1029
+ case "submit": {
1030
+ return `${title}${colors.gray(S_BAR)} ${colors.dim(this.value || opts.placeholder)}`;
1031
+ }
1032
+ case "cancel": {
1033
+ return `${title}${colors.gray(S_BAR)} ${colors.strikethrough(colors.dim(this.value ?? ""))}${this.value?.trim() ? "\n" + colors.gray(S_BAR) : ""}`;
1034
+ }
1035
+ default: {
1036
+ return `${title}${colors.cyan(S_BAR)} ${value}
1037
+ ${colors.cyan(S_BAR_END)}
1038
+ `;
1039
+ }
871
1040
  }
872
- this.changeValue();
873
- });
874
- }
875
- get _value() {
876
- return this.options[this.cursor];
877
- }
878
- changeValue() {
879
- this.value = this._value.value;
880
- }
881
- }
882
-
883
- class oD extends h {
884
- constructor(u) {
885
- super(u), this.valueWithCursor = "", this.on("finalize", () => {
886
- this.value || (this.value = u.defaultValue), this.valueWithCursor = this.value;
887
- }), this.on("value", () => {
888
- if (this.cursor >= this.value.length)
889
- this.valueWithCursor = `${this.value}${l.inverse(l.hidden("_"))}`;
890
- else {
891
- const F = this.value.slice(0, this.cursor), e = this.value.slice(this.cursor);
892
- this.valueWithCursor = `${F}${l.inverse(e[0])}${e.slice(1)}`;
1041
+ }
1042
+ }).prompt();
1043
+ }, confirm = (opts) => {
1044
+ const active = opts.active ?? "Yes";
1045
+ const inactive = opts.inactive ?? "No";
1046
+ return new sD({
1047
+ active,
1048
+ inactive,
1049
+ initialValue: opts.initialValue ?? true,
1050
+ render() {
1051
+ const title = `${colors.gray(S_BAR)}
1052
+ ${symbol(this.state)} ${opts.message}
1053
+ `;
1054
+ const value = this.value ? active : inactive;
1055
+ switch (this.state) {
1056
+ case "submit": {
1057
+ return `${title}${colors.gray(S_BAR)} ${colors.dim(value)}`;
1058
+ }
1059
+ case "cancel": {
1060
+ return `${title}${colors.gray(S_BAR)} ${colors.strikethrough(colors.dim(value))}
1061
+ ${colors.gray(S_BAR)}`;
1062
+ }
1063
+ default: {
1064
+ return `${title}${colors.cyan(S_BAR)} ${this.value ? `${colors.green(S_RADIO_ACTIVE)} ${active}` : `${colors.dim(S_RADIO_INACTIVE)} ${colors.dim(active)}`} ${colors.dim("/")} ${this.value ? `${colors.dim(S_RADIO_INACTIVE)} ${colors.dim(inactive)}` : `${colors.green(S_RADIO_ACTIVE)} ${inactive}`}
1065
+ ${colors.cyan(S_BAR_END)}
1066
+ `;
1067
+ }
893
1068
  }
894
- });
895
- }
896
- get cursor() {
897
- return this._cursor;
898
- }
899
- }
900
- var z, $, c, U, P, FD, g, ESC, CSI, beep, cursor, scroll, erase, src, picocolors, tty2, isColorSupported2, formatter, replaceClose2, createColors2, picocolorsExports, l, m, G, K, Y, v, L, M, T, r, Z, H, q, p, J, b, W, Q, I, w, N, j, X, _, DD, uD, R, V, tD, unicode, s, S_STEP_ACTIVE, S_STEP_CANCEL, S_STEP_ERROR, S_STEP_SUBMIT, S_BAR, S_BAR_END, S_RADIO_ACTIVE, S_RADIO_INACTIVE, S_CHECKBOX_ACTIVE, S_CHECKBOX_SELECTED, S_CHECKBOX_INACTIVE, symbol, text, confirm, select, multiselect;
901
- var init_prompt = __esm(() => {
902
- init_consola_36c0034f();
903
- init_utils();
904
- init_core();
905
- init_consola_06ad8a64();
906
- z = function({ onlyFirst: t = false } = {}) {
907
- const u = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");
908
- return new RegExp(u, t ? undefined : "g");
909
- };
910
- $ = function(t) {
911
- if (typeof t != "string")
912
- throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);
913
- return t.replace(z(), "");
914
- };
915
- c = function(t, u = {}) {
916
- if (typeof t != "string" || t.length === 0 || (u = { ambiguousIsNarrow: true, ...u }, t = $(t), t.length === 0))
917
- return 0;
918
- t = t.replace(Y(), " ");
919
- const F = u.ambiguousIsNarrow ? 1 : 2;
920
- let e = 0;
921
- for (const s of t) {
922
- const C = s.codePointAt(0);
923
- if (C <= 31 || C >= 127 && C <= 159 || C >= 768 && C <= 879)
924
- continue;
925
- switch (K.eastAsianWidth(s)) {
926
- case "F":
927
- case "W":
928
- e += 2;
929
- break;
930
- case "A":
931
- e += F;
932
- break;
933
- default:
934
- e += 1;
1069
+ }
1070
+ }).prompt();
1071
+ }, select = (opts) => {
1072
+ const opt = (option, state) => {
1073
+ const label = option.label ?? String(option.value);
1074
+ switch (state) {
1075
+ case "active": {
1076
+ return `${colors.green(S_RADIO_ACTIVE)} ${label} ${option.hint ? colors.dim(`(${option.hint})`) : ""}`;
1077
+ }
1078
+ case "selected": {
1079
+ return `${colors.dim(label)}`;
1080
+ }
1081
+ case "cancelled": {
1082
+ return `${colors.strikethrough(colors.dim(label))}`;
935
1083
  }
936
1084
  }
937
- return e;
1085
+ return `${colors.dim(S_RADIO_INACTIVE)} ${colors.dim(label)}`;
938
1086
  };
939
- U = function() {
940
- const t = new Map;
941
- for (const [u, F] of Object.entries(r)) {
942
- for (const [e, s] of Object.entries(F))
943
- r[e] = { open: `\x1B[${s[0]}m`, close: `\x1B[${s[1]}m` }, F[e] = r[e], t.set(s[0], s[1]);
944
- Object.defineProperty(r, u, { value: F, enumerable: false });
945
- }
946
- return Object.defineProperty(r, "codes", { value: t, enumerable: false }), r.color.close = "\x1B[39m", r.bgColor.close = "\x1B[49m", r.color.ansi = L(), r.color.ansi256 = M(), r.color.ansi16m = T(), r.bgColor.ansi = L(v), r.bgColor.ansi256 = M(v), r.bgColor.ansi16m = T(v), Object.defineProperties(r, { rgbToAnsi256: { value: (u, F, e) => u === F && F === e ? u < 8 ? 16 : u > 248 ? 231 : Math.round((u - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u / 255 * 5) + 6 * Math.round(F / 255 * 5) + Math.round(e / 255 * 5), enumerable: false }, hexToRgb: { value: (u) => {
947
- const F = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));
948
- if (!F)
949
- return [0, 0, 0];
950
- let [e] = F;
951
- e.length === 3 && (e = [...e].map((C) => C + C).join(""));
952
- const s = Number.parseInt(e, 16);
953
- return [s >> 16 & 255, s >> 8 & 255, s & 255];
954
- }, enumerable: false }, hexToAnsi256: { value: (u) => r.rgbToAnsi256(...r.hexToRgb(u)), enumerable: false }, ansi256ToAnsi: { value: (u) => {
955
- if (u < 8)
956
- return 30 + u;
957
- if (u < 16)
958
- return 90 + (u - 8);
959
- let F, e, s;
960
- if (u >= 232)
961
- F = ((u - 232) * 10 + 8) / 255, e = F, s = F;
962
- else {
963
- u -= 16;
964
- const i = u % 36;
965
- F = Math.floor(u / 36) / 5, e = Math.floor(i / 6) / 5, s = i % 6 / 5;
1087
+ return new ED({
1088
+ options: opts.options,
1089
+ initialValue: opts.initialValue,
1090
+ render() {
1091
+ const title = `${colors.gray(S_BAR)}
1092
+ ${symbol(this.state)} ${opts.message}
1093
+ `;
1094
+ switch (this.state) {
1095
+ case "submit": {
1096
+ return `${title}${colors.gray(S_BAR)} ${opt(this.options[this.cursor], "selected")}`;
1097
+ }
1098
+ case "cancel": {
1099
+ return `${title}${colors.gray(S_BAR)} ${opt(this.options[this.cursor], "cancelled")}
1100
+ ${colors.gray(S_BAR)}`;
1101
+ }
1102
+ default: {
1103
+ return `${title}${colors.cyan(S_BAR)} ${this.options.map((option, i) => opt(option, i === this.cursor ? "active" : "inactive")).join(`
1104
+ ${colors.cyan(S_BAR)} `)}
1105
+ ${colors.cyan(S_BAR_END)}
1106
+ `;
1107
+ }
966
1108
  }
967
- const C = Math.max(F, e, s) * 2;
968
- if (C === 0)
969
- return 30;
970
- let D = 30 + (Math.round(s) << 2 | Math.round(e) << 1 | Math.round(F));
971
- return C === 2 && (D += 60), D;
972
- }, enumerable: false }, rgbToAnsi: { value: (u, F, e) => r.ansi256ToAnsi(r.rgbToAnsi256(u, F, e)), enumerable: false }, hexToAnsi: { value: (u) => r.ansi256ToAnsi(r.hexToAnsi256(u)), enumerable: false } }), r;
973
- };
974
- P = function(t, u, F) {
975
- return String(t).normalize().replace(/\r\n/g, `
976
- `).split(`
977
- `).map((e) => uD(e, u, F)).join(`
978
- `);
979
- };
980
- FD = function(t, u) {
981
- if (t === u)
982
- return;
983
- const F = t.split(`
984
- `), e = u.split(`
985
- `), s = [];
986
- for (let C = 0;C < Math.max(F.length, e.length); C++)
987
- F[C] !== e[C] && s.push(C);
988
- return s;
989
- };
990
- g = function(t, u) {
991
- t.isTTY && t.setRawMode(u);
1109
+ }
1110
+ }).prompt();
1111
+ }, multiselect = (opts) => {
1112
+ const opt = (option, state) => {
1113
+ const label = option.label ?? String(option.value);
1114
+ switch (state) {
1115
+ case "active": {
1116
+ return `${colors.cyan(S_CHECKBOX_ACTIVE)} ${label} ${option.hint ? colors.dim(`(${option.hint})`) : ""}`;
1117
+ }
1118
+ case "selected": {
1119
+ return `${colors.green(S_CHECKBOX_SELECTED)} ${colors.dim(label)}`;
1120
+ }
1121
+ case "cancelled": {
1122
+ return `${colors.strikethrough(colors.dim(label))}`;
1123
+ }
1124
+ case "active-selected": {
1125
+ return `${colors.green(S_CHECKBOX_SELECTED)} ${label} ${option.hint ? colors.dim(`(${option.hint})`) : ""}`;
1126
+ }
1127
+ case "submitted": {
1128
+ return `${colors.dim(label)}`;
1129
+ }
1130
+ }
1131
+ return `${colors.dim(S_CHECKBOX_INACTIVE)} ${colors.dim(label)}`;
992
1132
  };
993
- ESC = "\x1B";
1133
+ return new iD({
1134
+ options: opts.options,
1135
+ initialValues: opts.initialValues,
1136
+ required: opts.required ?? true,
1137
+ cursorAt: opts.cursorAt,
1138
+ validate(selected) {
1139
+ if (this.required && selected.length === 0) {
1140
+ return `Please select at least one option.
1141
+ ${colors.reset(colors.dim(`Press ${colors.gray(colors.bgWhite(colors.inverse(" space ")))} to select, ${colors.gray(colors.bgWhite(colors.inverse(" enter ")))} to submit`))}`;
1142
+ }
1143
+ },
1144
+ render() {
1145
+ const title = `${colors.gray(S_BAR)}
1146
+ ${symbol(this.state)} ${opts.message}
1147
+ `;
1148
+ switch (this.state) {
1149
+ case "submit": {
1150
+ return `${title}${colors.gray(S_BAR)} ${this.options.filter(({ value }) => this.value.includes(value)).map((option) => opt(option, "submitted")).join(colors.dim(", ")) || colors.dim("none")}`;
1151
+ }
1152
+ case "cancel": {
1153
+ const label = this.options.filter(({ value }) => this.value.includes(value)).map((option) => opt(option, "cancelled")).join(colors.dim(", "));
1154
+ return `${title}${colors.gray(S_BAR)} ${label.trim() ? `${label}
1155
+ ${colors.gray(S_BAR)}` : ""}`;
1156
+ }
1157
+ case "error": {
1158
+ const footer = this.error.split("\n").map((ln, i) => i === 0 ? `${colors.yellow(S_BAR_END)} ${colors.yellow(ln)}` : ` ${ln}`).join("\n");
1159
+ return title + colors.yellow(S_BAR) + " " + this.options.map((option, i) => {
1160
+ const selected = this.value.includes(option.value);
1161
+ const active = i === this.cursor;
1162
+ if (active && selected) {
1163
+ return opt(option, "active-selected");
1164
+ }
1165
+ if (selected) {
1166
+ return opt(option, "selected");
1167
+ }
1168
+ return opt(option, active ? "active" : "inactive");
1169
+ }).join(`
1170
+ ${colors.yellow(S_BAR)} `) + "\n" + footer + "\n";
1171
+ }
1172
+ default: {
1173
+ return `${title}${colors.cyan(S_BAR)} ${this.options.map((option, i) => {
1174
+ const selected = this.value.includes(option.value);
1175
+ const active = i === this.cursor;
1176
+ if (active && selected) {
1177
+ return opt(option, "active-selected");
1178
+ }
1179
+ if (selected) {
1180
+ return opt(option, "selected");
1181
+ }
1182
+ return opt(option, active ? "active" : "inactive");
1183
+ }).join(`
1184
+ ${colors.cyan(S_BAR)} `)}
1185
+ ${colors.cyan(S_BAR_END)}
1186
+ `;
1187
+ }
1188
+ }
1189
+ }
1190
+ }).prompt();
1191
+ };
1192
+ var init_prompt = __esm(() => {
1193
+ init_consola_36c0034f();
1194
+ init_utils();
1195
+ init_core();
1196
+ init_consola_06ad8a64();
994
1197
  CSI = `${ESC}[`;
995
- beep = "\x07";
996
1198
  cursor = {
997
1199
  to(x, y) {
998
1200
  if (!y)
@@ -1047,49 +1249,10 @@ var init_prompt = __esm(() => {
1047
1249
  picocolors = { exports: {} };
1048
1250
  tty2 = require$$0;
1049
1251
  isColorSupported2 = !(("NO_COLOR" in process.env) || process.argv.includes("--no-color")) && (("FORCE_COLOR" in process.env) || process.argv.includes("--color") || process.platform === "win32" || tty2.isatty(1) && process.env.TERM !== "dumb" || ("CI" in process.env));
1050
- formatter = (open, close, replace = open) => (input) => {
1051
- let string = "" + input;
1052
- let index = string.indexOf(close, open.length);
1053
- return ~index ? open + replaceClose2(string, close, replace, index) + close : open + string + close;
1054
- };
1055
- replaceClose2 = (string, close, replace, index) => {
1056
- let start = string.substring(0, index) + replace;
1057
- let end = string.substring(index + close.length);
1058
- let nextIndex = end.indexOf(close);
1059
- return ~nextIndex ? start + replaceClose2(end, close, replace, nextIndex) : start + end;
1060
- };
1061
- createColors2 = (enabled = isColorSupported2) => ({
1062
- isColorSupported: enabled,
1063
- reset: enabled ? (s) => `\x1B[0m${s}\x1B[0m` : String,
1064
- bold: enabled ? formatter("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m") : String,
1065
- dim: enabled ? formatter("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m") : String,
1066
- italic: enabled ? formatter("\x1B[3m", "\x1B[23m") : String,
1067
- underline: enabled ? formatter("\x1B[4m", "\x1B[24m") : String,
1068
- inverse: enabled ? formatter("\x1B[7m", "\x1B[27m") : String,
1069
- hidden: enabled ? formatter("\x1B[8m", "\x1B[28m") : String,
1070
- strikethrough: enabled ? formatter("\x1B[9m", "\x1B[29m") : String,
1071
- black: enabled ? formatter("\x1B[30m", "\x1B[39m") : String,
1072
- red: enabled ? formatter("\x1B[31m", "\x1B[39m") : String,
1073
- green: enabled ? formatter("\x1B[32m", "\x1B[39m") : String,
1074
- yellow: enabled ? formatter("\x1B[33m", "\x1B[39m") : String,
1075
- blue: enabled ? formatter("\x1B[34m", "\x1B[39m") : String,
1076
- magenta: enabled ? formatter("\x1B[35m", "\x1B[39m") : String,
1077
- cyan: enabled ? formatter("\x1B[36m", "\x1B[39m") : String,
1078
- white: enabled ? formatter("\x1B[37m", "\x1B[39m") : String,
1079
- gray: enabled ? formatter("\x1B[90m", "\x1B[39m") : String,
1080
- bgBlack: enabled ? formatter("\x1B[40m", "\x1B[49m") : String,
1081
- bgRed: enabled ? formatter("\x1B[41m", "\x1B[49m") : String,
1082
- bgGreen: enabled ? formatter("\x1B[42m", "\x1B[49m") : String,
1083
- bgYellow: enabled ? formatter("\x1B[43m", "\x1B[49m") : String,
1084
- bgBlue: enabled ? formatter("\x1B[44m", "\x1B[49m") : String,
1085
- bgMagenta: enabled ? formatter("\x1B[45m", "\x1B[49m") : String,
1086
- bgCyan: enabled ? formatter("\x1B[46m", "\x1B[49m") : String,
1087
- bgWhite: enabled ? formatter("\x1B[47m", "\x1B[49m") : String
1088
- });
1089
1252
  picocolors.exports = createColors2();
1090
1253
  picocolors.exports.createColors = createColors2;
1091
1254
  picocolorsExports = picocolors.exports;
1092
- l = getDefaultExportFromCjs(picocolorsExports);
1255
+ l = /* @__PURE__ */ getDefaultExportFromCjs(picocolorsExports);
1093
1256
  m = {};
1094
1257
  G = { get exports() {
1095
1258
  return m;
@@ -1127,13 +1290,6 @@ var init_prompt = __esm(() => {
1127
1290
  };
1128
1291
  })(G);
1129
1292
  K = m;
1130
- Y = function() {
1131
- return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
1132
- };
1133
- v = 10;
1134
- L = (t = 0) => (u) => `\x1B[${u + t}m`;
1135
- M = (t = 0) => (u) => `\x1B[${38 + t};5;${u}m`;
1136
- T = (t = 0) => (u, F, e) => `\x1B[${38 + t};2;${u};${F};${e}m`;
1137
1293
  r = { modifier: { reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], overline: [53, 55], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29] }, color: { black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], blackBright: [90, 39], gray: [90, 39], grey: [90, 39], redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39] }, bgColor: { bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], bgBlackBright: [100, 49], bgGray: [100, 49], bgGrey: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49] } };
1138
1294
  Object.keys(r.modifier);
1139
1295
  Z = Object.keys(r.color);
@@ -1141,482 +1297,255 @@ var init_prompt = __esm(() => {
1141
1297
  [...Z];
1142
1298
  q = U();
1143
1299
  p = new Set(["\x1B", "\x9B"]);
1144
- J = 39;
1145
- b = "\x07";
1146
- W = "[";
1147
- Q = "]";
1148
- I = "m";
1149
1300
  w = `${Q}8;;`;
1150
- N = (t) => `${p.values().next().value}${W}${t}${I}`;
1151
- j = (t) => `${p.values().next().value}${w}${t}${b}`;
1152
- X = (t) => t.split(" ").map((u) => c(u));
1153
- _ = (t, u, F) => {
1154
- const e = [...u];
1155
- let s = false, C = false, D = c($(t[t.length - 1]));
1156
- for (const [i, o] of e.entries()) {
1157
- const E = c(o);
1158
- if (D + E <= F ? t[t.length - 1] += o : (t.push(o), D = 0), p.has(o) && (s = true, C = e.slice(i + 1).join("").startsWith(w)), s) {
1159
- C ? o === b && (s = false, C = false) : o === I && (s = false);
1160
- continue;
1161
- }
1162
- D += E, D === F && i < e.length - 1 && (t.push(""), D = 0);
1301
+ R = Symbol("clack:cancel");
1302
+ V = new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"]]);
1303
+ tD = new Set(["up", "down", "left", "right", "space", "enter"]);
1304
+ sD = class sD extends h {
1305
+ get cursor() {
1306
+ return this.value ? 0 : 1;
1307
+ }
1308
+ get _value() {
1309
+ return this.cursor === 0;
1310
+ }
1311
+ constructor(u) {
1312
+ super(u, false), this.value = !!u.initialValue, this.on("value", () => {
1313
+ this.value = this._value;
1314
+ }), this.on("confirm", (F) => {
1315
+ this.output.write(src.cursor.move(0, -1)), this.value = F, this.state = "submit", this.close();
1316
+ }), this.on("cursor", () => {
1317
+ this.value = !this.value;
1318
+ });
1163
1319
  }
1164
- !D && t[t.length - 1].length > 0 && t.length > 1 && (t[t.length - 2] += t.pop());
1165
- };
1166
- DD = (t) => {
1167
- const u = t.split(" ");
1168
- let F = u.length;
1169
- for (;F > 0 && !(c(u[F - 1]) > 0); )
1170
- F--;
1171
- return F === u.length ? t : u.slice(0, F).join(" ") + u.slice(F).join("");
1172
1320
  };
1173
- uD = (t, u, F = {}) => {
1174
- if (F.trim !== false && t.trim() === "")
1175
- return "";
1176
- let e = "", s, C;
1177
- const D = X(t);
1178
- let i = [""];
1179
- for (const [E, a] of t.split(" ").entries()) {
1180
- F.trim !== false && (i[i.length - 1] = i[i.length - 1].trimStart());
1181
- let n = c(i[i.length - 1]);
1182
- if (E !== 0 && (n >= u && (F.wordWrap === false || F.trim === false) && (i.push(""), n = 0), (n > 0 || F.trim === false) && (i[i.length - 1] += " ", n++)), F.hard && D[E] > u) {
1183
- const B = u - n, A = 1 + Math.floor((D[E] - B - 1) / u);
1184
- Math.floor((D[E] - 1) / u) < A && i.push(""), _(i, a, u);
1185
- continue;
1186
- }
1187
- if (n + D[E] > u && n > 0 && D[E] > 0) {
1188
- if (F.wordWrap === false && n < u) {
1189
- _(i, a, u);
1190
- continue;
1321
+ iD = class iD extends h {
1322
+ constructor(u) {
1323
+ super(u, false), this.cursor = 0, this.options = u.options, this.value = [...u.initialValues ?? []], this.cursor = Math.max(this.options.findIndex(({ value: F }) => F === u.cursorAt), 0), this.on("key", (F) => {
1324
+ F === "a" && this.toggleAll();
1325
+ }), this.on("cursor", (F) => {
1326
+ switch (F) {
1327
+ case "left":
1328
+ case "up":
1329
+ this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
1330
+ break;
1331
+ case "down":
1332
+ case "right":
1333
+ this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
1334
+ break;
1335
+ case "space":
1336
+ this.toggleValue();
1337
+ break;
1191
1338
  }
1192
- i.push("");
1193
- }
1194
- if (n + D[E] > u && F.wordWrap === false) {
1195
- _(i, a, u);
1196
- continue;
1197
- }
1198
- i[i.length - 1] += a;
1339
+ });
1199
1340
  }
1200
- F.trim !== false && (i = i.map((E) => DD(E)));
1201
- const o = [...i.join(`
1202
- `)];
1203
- for (const [E, a] of o.entries()) {
1204
- if (e += a, p.has(a)) {
1205
- const { groups: B } = new RegExp(`(?:\\${W}(?<code>\\d+)m|\\${w}(?<uri>.*)${b})`).exec(o.slice(E).join("")) || { groups: {} };
1206
- if (B.code !== undefined) {
1207
- const A = Number.parseFloat(B.code);
1208
- s = A === J ? undefined : A;
1209
- } else
1210
- B.uri !== undefined && (C = B.uri.length === 0 ? undefined : B.uri);
1211
- }
1212
- const n = q.codes.get(Number(s));
1213
- o[E + 1] === `
1214
- ` ? (C && (e += j("")), s && n && (e += N(n))) : a === `
1215
- ` && (s && n && (e += N(s)), C && (e += j(C)));
1341
+ get _value() {
1342
+ return this.options[this.cursor].value;
1343
+ }
1344
+ toggleAll() {
1345
+ const u = this.value.length === this.options.length;
1346
+ this.value = u ? [] : this.options.map((F) => F.value);
1347
+ }
1348
+ toggleValue() {
1349
+ const u = this.value.includes(this._value);
1350
+ this.value = u ? this.value.filter((F) => F !== this._value) : [...this.value, this._value];
1216
1351
  }
1217
- return e;
1218
1352
  };
1219
- R = Symbol("clack:cancel");
1220
- V = new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"]]);
1221
- tD = new Set(["up", "down", "left", "right", "space", "enter"]);
1222
- unicode = isUnicodeSupported();
1223
- s = (c2, fallback) => unicode ? c2 : fallback;
1353
+ ED = class ED extends h {
1354
+ constructor(u) {
1355
+ super(u, false), this.cursor = 0, this.options = u.options, this.cursor = this.options.findIndex(({ value: F }) => F === u.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (F) => {
1356
+ switch (F) {
1357
+ case "left":
1358
+ case "up":
1359
+ this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
1360
+ break;
1361
+ case "down":
1362
+ case "right":
1363
+ this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
1364
+ break;
1365
+ }
1366
+ this.changeValue();
1367
+ });
1368
+ }
1369
+ get _value() {
1370
+ return this.options[this.cursor];
1371
+ }
1372
+ changeValue() {
1373
+ this.value = this._value.value;
1374
+ }
1375
+ };
1376
+ oD = class oD extends h {
1377
+ constructor(u) {
1378
+ super(u), this.valueWithCursor = "", this.on("finalize", () => {
1379
+ this.value || (this.value = u.defaultValue), this.valueWithCursor = this.value;
1380
+ }), this.on("value", () => {
1381
+ if (this.cursor >= this.value.length)
1382
+ this.valueWithCursor = `${this.value}${l.inverse(l.hidden("_"))}`;
1383
+ else {
1384
+ const F = this.value.slice(0, this.cursor), e = this.value.slice(this.cursor);
1385
+ this.valueWithCursor = `${F}${l.inverse(e[0])}${e.slice(1)}`;
1386
+ }
1387
+ });
1388
+ }
1389
+ get cursor() {
1390
+ return this._cursor;
1391
+ }
1392
+ };
1393
+ unicode = isUnicodeSupported();
1224
1394
  S_STEP_ACTIVE = s("\u276F", ">");
1225
1395
  S_STEP_CANCEL = s("\u25A0", "x");
1226
1396
  S_STEP_ERROR = s("\u25B2", "x");
1227
1397
  S_STEP_SUBMIT = s("\u2714", "\u221A");
1228
- S_BAR = "";
1229
- S_BAR_END = "";
1230
1398
  S_RADIO_ACTIVE = s("\u25CF", ">");
1231
1399
  S_RADIO_INACTIVE = s("\u25CB", " ");
1232
1400
  S_CHECKBOX_ACTIVE = s("\u25FB", "[\u2022]");
1233
1401
  S_CHECKBOX_SELECTED = s("\u25FC", "[+]");
1234
1402
  S_CHECKBOX_INACTIVE = s("\u25FB", "[ ]");
1235
- symbol = (state) => {
1236
- switch (state) {
1237
- case "initial":
1238
- case "active": {
1239
- return colors.cyan(S_STEP_ACTIVE);
1240
- }
1241
- case "cancel": {
1242
- return colors.red(S_STEP_CANCEL);
1243
- }
1244
- case "error": {
1245
- return colors.yellow(S_STEP_ERROR);
1246
- }
1247
- case "submit": {
1248
- return colors.green(S_STEP_SUBMIT);
1249
- }
1250
- }
1251
- };
1252
- text = (opts) => {
1253
- return new oD({
1254
- validate: opts.validate,
1255
- placeholder: opts.placeholder,
1256
- defaultValue: opts.defaultValue,
1257
- initialValue: opts.initialValue,
1258
- render() {
1259
- const title = `${colors.gray(S_BAR)}
1260
- ${symbol(this.state)} ${opts.message}
1261
- `;
1262
- const placeholder = opts.placeholder ? colors.inverse(opts.placeholder[0]) + colors.dim(opts.placeholder.slice(1)) : colors.inverse(colors.hidden("_"));
1263
- const value = this.value ? this.valueWithCursor : placeholder;
1264
- switch (this.state) {
1265
- case "error": {
1266
- return `${title.trim()}
1267
- ${colors.yellow(S_BAR)} ${value}
1268
- ${colors.yellow(S_BAR_END)} ${colors.yellow(this.error)}
1269
- `;
1270
- }
1271
- case "submit": {
1272
- return `${title}${colors.gray(S_BAR)} ${colors.dim(this.value || opts.placeholder)}`;
1273
- }
1274
- case "cancel": {
1275
- return `${title}${colors.gray(S_BAR)} ${colors.strikethrough(colors.dim(this.value ?? ""))}${this.value?.trim() ? "\n" + colors.gray(S_BAR) : ""}`;
1276
- }
1277
- default: {
1278
- return `${title}${colors.cyan(S_BAR)} ${value}
1279
- ${colors.cyan(S_BAR_END)}
1280
- `;
1281
- }
1282
- }
1283
- }
1284
- }).prompt();
1285
- };
1286
- confirm = (opts) => {
1287
- const active = opts.active ?? "Yes";
1288
- const inactive = opts.inactive ?? "No";
1289
- return new sD({
1290
- active,
1291
- inactive,
1292
- initialValue: opts.initialValue ?? true,
1293
- render() {
1294
- const title = `${colors.gray(S_BAR)}
1295
- ${symbol(this.state)} ${opts.message}
1296
- `;
1297
- const value = this.value ? active : inactive;
1298
- switch (this.state) {
1299
- case "submit": {
1300
- return `${title}${colors.gray(S_BAR)} ${colors.dim(value)}`;
1301
- }
1302
- case "cancel": {
1303
- return `${title}${colors.gray(S_BAR)} ${colors.strikethrough(colors.dim(value))}
1304
- ${colors.gray(S_BAR)}`;
1305
- }
1306
- default: {
1307
- return `${title}${colors.cyan(S_BAR)} ${this.value ? `${colors.green(S_RADIO_ACTIVE)} ${active}` : `${colors.dim(S_RADIO_INACTIVE)} ${colors.dim(active)}`} ${colors.dim("/")} ${this.value ? `${colors.dim(S_RADIO_INACTIVE)} ${colors.dim(inactive)}` : `${colors.green(S_RADIO_ACTIVE)} ${inactive}`}
1308
- ${colors.cyan(S_BAR_END)}
1309
- `;
1310
- }
1311
- }
1312
- }
1313
- }).prompt();
1314
- };
1315
- select = (opts) => {
1316
- const opt = (option, state) => {
1317
- const label = option.label ?? String(option.value);
1318
- switch (state) {
1319
- case "active": {
1320
- return `${colors.green(S_RADIO_ACTIVE)} ${label} ${option.hint ? colors.dim(`(${option.hint})`) : ""}`;
1321
- }
1322
- case "selected": {
1323
- return `${colors.dim(label)}`;
1324
- }
1325
- case "cancelled": {
1326
- return `${colors.strikethrough(colors.dim(label))}`;
1327
- }
1328
- }
1329
- return `${colors.dim(S_RADIO_INACTIVE)} ${colors.dim(label)}`;
1330
- };
1331
- return new ED({
1332
- options: opts.options,
1333
- initialValue: opts.initialValue,
1334
- render() {
1335
- const title = `${colors.gray(S_BAR)}
1336
- ${symbol(this.state)} ${opts.message}
1337
- `;
1338
- switch (this.state) {
1339
- case "submit": {
1340
- return `${title}${colors.gray(S_BAR)} ${opt(this.options[this.cursor], "selected")}`;
1341
- }
1342
- case "cancel": {
1343
- return `${title}${colors.gray(S_BAR)} ${opt(this.options[this.cursor], "cancelled")}
1344
- ${colors.gray(S_BAR)}`;
1345
- }
1346
- default: {
1347
- return `${title}${colors.cyan(S_BAR)} ${this.options.map((option, i) => opt(option, i === this.cursor ? "active" : "inactive")).join(`
1348
- ${colors.cyan(S_BAR)} `)}
1349
- ${colors.cyan(S_BAR_END)}
1350
- `;
1351
- }
1352
- }
1353
- }
1354
- }).prompt();
1355
- };
1356
- multiselect = (opts) => {
1357
- const opt = (option, state) => {
1358
- const label = option.label ?? String(option.value);
1359
- switch (state) {
1360
- case "active": {
1361
- return `${colors.cyan(S_CHECKBOX_ACTIVE)} ${label} ${option.hint ? colors.dim(`(${option.hint})`) : ""}`;
1362
- }
1363
- case "selected": {
1364
- return `${colors.green(S_CHECKBOX_SELECTED)} ${colors.dim(label)}`;
1365
- }
1366
- case "cancelled": {
1367
- return `${colors.strikethrough(colors.dim(label))}`;
1368
- }
1369
- case "active-selected": {
1370
- return `${colors.green(S_CHECKBOX_SELECTED)} ${label} ${option.hint ? colors.dim(`(${option.hint})`) : ""}`;
1371
- }
1372
- case "submitted": {
1373
- return `${colors.dim(label)}`;
1374
- }
1375
- }
1376
- return `${colors.dim(S_CHECKBOX_INACTIVE)} ${colors.dim(label)}`;
1377
- };
1378
- return new iD({
1379
- options: opts.options,
1380
- initialValues: opts.initialValues,
1381
- required: opts.required ?? true,
1382
- cursorAt: opts.cursorAt,
1383
- validate(selected) {
1384
- if (this.required && selected.length === 0) {
1385
- return `Please select at least one option.
1386
- ${colors.reset(colors.dim(`Press ${colors.gray(colors.bgWhite(colors.inverse(" space ")))} to select, ${colors.gray(colors.bgWhite(colors.inverse(" enter ")))} to submit`))}`;
1387
- }
1388
- },
1389
- render() {
1390
- const title = `${colors.gray(S_BAR)}
1391
- ${symbol(this.state)} ${opts.message}
1392
- `;
1393
- switch (this.state) {
1394
- case "submit": {
1395
- return `${title}${colors.gray(S_BAR)} ${this.options.filter(({ value }) => this.value.includes(value)).map((option) => opt(option, "submitted")).join(colors.dim(", ")) || colors.dim("none")}`;
1396
- }
1397
- case "cancel": {
1398
- const label = this.options.filter(({ value }) => this.value.includes(value)).map((option) => opt(option, "cancelled")).join(colors.dim(", "));
1399
- return `${title}${colors.gray(S_BAR)} ${label.trim() ? `${label}
1400
- ${colors.gray(S_BAR)}` : ""}`;
1401
- }
1402
- case "error": {
1403
- const footer = this.error.split("\n").map((ln, i) => i === 0 ? `${colors.yellow(S_BAR_END)} ${colors.yellow(ln)}` : ` ${ln}`).join("\n");
1404
- return title + colors.yellow(S_BAR) + " " + this.options.map((option, i) => {
1405
- const selected = this.value.includes(option.value);
1406
- const active = i === this.cursor;
1407
- if (active && selected) {
1408
- return opt(option, "active-selected");
1409
- }
1410
- if (selected) {
1411
- return opt(option, "selected");
1412
- }
1413
- return opt(option, active ? "active" : "inactive");
1414
- }).join(`
1415
- ${colors.yellow(S_BAR)} `) + "\n" + footer + "\n";
1416
- }
1417
- default: {
1418
- return `${title}${colors.cyan(S_BAR)} ${this.options.map((option, i) => {
1419
- const selected = this.value.includes(option.value);
1420
- const active = i === this.cursor;
1421
- if (active && selected) {
1422
- return opt(option, "active-selected");
1423
- }
1424
- if (selected) {
1425
- return opt(option, "selected");
1426
- }
1427
- return opt(option, active ? "active" : "inactive");
1428
- }).join(`
1429
- ${colors.cyan(S_BAR)} `)}
1430
- ${colors.cyan(S_BAR_END)}
1431
- `;
1432
- }
1433
- }
1434
- }
1435
- }).prompt();
1436
- };
1437
1403
  });
1438
1404
 
1439
1405
  // ../../../../node_modules/consola/dist/shared/consola.36c0034f.mjs
1440
1406
  import process$1 from "node:process";
1441
-
1442
- class FancyReporter extends BasicReporter {
1443
- formatStack(stack) {
1444
- return "\n" + parseStack(stack).map((line) => " " + line.replace(/^at +/, (m2) => colors.gray(m2)).replace(/\((.+)\)/, (_2, m2) => `(${colors.cyan(m2)})`)).join("\n");
1445
- }
1446
- formatType(logObj, isBadge, opts) {
1447
- const typeColor = TYPE_COLOR_MAP[logObj.type] || LEVEL_COLOR_MAP[logObj.level] || "gray";
1448
- if (isBadge) {
1449
- return getBgColor(typeColor)(colors.black(` ${logObj.type.toUpperCase()} `));
1450
- }
1451
- const _type = typeof TYPE_ICONS[logObj.type] === "string" ? TYPE_ICONS[logObj.type] : logObj.icon || logObj.type;
1452
- return _type ? getColor2(typeColor)(_type) : "";
1453
- }
1454
- formatLogObj(logObj, opts) {
1455
- const [message, ...additional] = this.formatArgs(logObj.args, opts).split("\n");
1456
- if (logObj.type === "box") {
1457
- return box(characterFormat(message + (additional.length > 0 ? "\n" + additional.join("\n") : "")), {
1458
- title: logObj.title ? characterFormat(logObj.title) : undefined,
1459
- style: logObj.style
1460
- });
1461
- }
1462
- const date = this.formatDate(logObj.date, opts);
1463
- const coloredDate = date && colors.gray(date);
1464
- const isBadge = logObj.badge ?? logObj.level < 2;
1465
- const type = this.formatType(logObj, isBadge, opts);
1466
- const tag = logObj.tag ? colors.gray(logObj.tag) : "";
1467
- let line;
1468
- const left = this.filterAndJoin([type, characterFormat(message)]);
1469
- const right = this.filterAndJoin(opts.columns ? [tag, coloredDate] : [tag]);
1470
- const space = (opts.columns || 0) - stringWidth(left) - stringWidth(right) - 2;
1471
- line = space > 0 && (opts.columns || 0) >= 80 ? left + " ".repeat(space) + right : (right ? `${colors.gray(`[${right}]`)} ` : "") + left;
1472
- line += characterFormat(additional.length > 0 ? "\n" + additional.join("\n") : "");
1473
- if (logObj.type === "trace") {
1474
- const _err = new Error("Trace: " + logObj.message);
1475
- line += this.formatStack(_err.stack || "");
1476
- }
1477
- return isBadge ? "\n" + line + "\n" : line;
1478
- }
1479
- }
1480
- var detectProvider, toBoolean, ansiRegex2, stripAnsi2, getDefaultExportFromCjs, stringWidth$1, isUnicodeSupported, stringWidth, characterFormat, getColor2, getBgColor, createConsola2, _getDefaultLogLevel, providers, processShim, envShim, providerInfo, nodeENV, isCI2, hasTTY, isDebug, isTest, regex, eastasianwidth, eastasianwidthExports, eastAsianWidth, emojiRegex, TYPE_COLOR_MAP, LEVEL_COLOR_MAP, unicode2, s2, TYPE_ICONS, consola;
1481
- var init_consola_36c0034f = __esm(() => {
1482
- init_core();
1483
- init_consola_06ad8a64();
1484
- init_utils();
1485
- detectProvider = function(env2) {
1486
- for (const provider of providers) {
1487
- const envName = provider[1] || provider[0];
1488
- if (env2[envName]) {
1489
- return {
1490
- name: provider[0].toLowerCase(),
1491
- ...provider[2]
1492
- };
1493
- }
1494
- }
1495
- if (env2.SHELL && env2.SHELL === "/bin/jsh") {
1407
+ function detectProvider(env2) {
1408
+ for (const provider of providers) {
1409
+ const envName = provider[1] || provider[0];
1410
+ if (env2[envName]) {
1496
1411
  return {
1497
- name: "stackblitz",
1498
- ci: false
1412
+ name: provider[0].toLowerCase(),
1413
+ ...provider[2]
1499
1414
  };
1500
1415
  }
1416
+ }
1417
+ if (env2.SHELL && env2.SHELL === "/bin/jsh") {
1501
1418
  return {
1502
- name: "",
1419
+ name: "stackblitz",
1503
1420
  ci: false
1504
1421
  };
1422
+ }
1423
+ return {
1424
+ name: "",
1425
+ ci: false
1505
1426
  };
1506
- toBoolean = function(val) {
1507
- return val ? val !== "false" : false;
1508
- };
1509
- ansiRegex2 = function({ onlyFirst = false } = {}) {
1510
- const pattern = [
1511
- "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
1512
- "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
1513
- ].join("|");
1514
- return new RegExp(pattern, onlyFirst ? undefined : "g");
1515
- };
1516
- stripAnsi2 = function(string) {
1517
- if (typeof string !== "string") {
1518
- throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
1519
- }
1520
- return string.replace(regex, "");
1521
- };
1522
- getDefaultExportFromCjs = function(x) {
1523
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
1427
+ }
1428
+ function toBoolean(val) {
1429
+ return val ? val !== "false" : false;
1430
+ }
1431
+ function ansiRegex2({ onlyFirst = false } = {}) {
1432
+ const pattern = [
1433
+ "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
1434
+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
1435
+ ].join("|");
1436
+ return new RegExp(pattern, onlyFirst ? undefined : "g");
1437
+ }
1438
+ function stripAnsi2(string) {
1439
+ if (typeof string !== "string") {
1440
+ throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
1441
+ }
1442
+ return string.replace(regex, "");
1443
+ }
1444
+ function getDefaultExportFromCjs(x) {
1445
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
1446
+ }
1447
+ function stringWidth$1(string, options) {
1448
+ if (typeof string !== "string" || string.length === 0) {
1449
+ return 0;
1450
+ }
1451
+ options = {
1452
+ ambiguousIsNarrow: true,
1453
+ countAnsiEscapeCodes: false,
1454
+ ...options
1524
1455
  };
1525
- stringWidth$1 = function(string, options) {
1526
- if (typeof string !== "string" || string.length === 0) {
1527
- return 0;
1528
- }
1529
- options = {
1530
- ambiguousIsNarrow: true,
1531
- countAnsiEscapeCodes: false,
1532
- ...options
1533
- };
1534
- if (!options.countAnsiEscapeCodes) {
1535
- string = stripAnsi2(string);
1536
- }
1537
- if (string.length === 0) {
1538
- return 0;
1539
- }
1540
- const ambiguousCharacterWidth = options.ambiguousIsNarrow ? 1 : 2;
1541
- let width = 0;
1542
- for (const { segment: character } of new Intl.Segmenter().segment(string)) {
1543
- const codePoint = character.codePointAt(0);
1544
- if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
1545
- continue;
1546
- }
1547
- if (codePoint >= 768 && codePoint <= 879) {
1548
- continue;
1549
- }
1550
- if (emojiRegex().test(character)) {
1456
+ if (!options.countAnsiEscapeCodes) {
1457
+ string = stripAnsi2(string);
1458
+ }
1459
+ if (string.length === 0) {
1460
+ return 0;
1461
+ }
1462
+ const ambiguousCharacterWidth = options.ambiguousIsNarrow ? 1 : 2;
1463
+ let width = 0;
1464
+ for (const { segment: character } of new Intl.Segmenter().segment(string)) {
1465
+ const codePoint = character.codePointAt(0);
1466
+ if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
1467
+ continue;
1468
+ }
1469
+ if (codePoint >= 768 && codePoint <= 879) {
1470
+ continue;
1471
+ }
1472
+ if (emojiRegex().test(character)) {
1473
+ width += 2;
1474
+ continue;
1475
+ }
1476
+ const code = eastAsianWidth.eastAsianWidth(character);
1477
+ switch (code) {
1478
+ case "F":
1479
+ case "W": {
1551
1480
  width += 2;
1552
- continue;
1481
+ break;
1553
1482
  }
1554
- const code = eastAsianWidth.eastAsianWidth(character);
1555
- switch (code) {
1556
- case "F":
1557
- case "W": {
1558
- width += 2;
1559
- break;
1560
- }
1561
- case "A": {
1562
- width += ambiguousCharacterWidth;
1563
- break;
1564
- }
1565
- default: {
1566
- width += 1;
1567
- }
1483
+ case "A": {
1484
+ width += ambiguousCharacterWidth;
1485
+ break;
1486
+ }
1487
+ default: {
1488
+ width += 1;
1568
1489
  }
1569
1490
  }
1570
- return width;
1571
- };
1572
- isUnicodeSupported = function() {
1573
- if (process$1.platform !== "win32") {
1574
- return process$1.env.TERM !== "linux";
1575
- }
1576
- return Boolean(process$1.env.CI) || Boolean(process$1.env.WT_SESSION) || Boolean(process$1.env.TERMINUS_SUBLIME) || process$1.env.ConEmuTask === "{cmd::Cmder}" || process$1.env.TERM_PROGRAM === "Terminus-Sublime" || process$1.env.TERM_PROGRAM === "vscode" || process$1.env.TERM === "xterm-256color" || process$1.env.TERM === "alacritty" || process$1.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
1577
- };
1578
- stringWidth = function(str) {
1579
- if (!Intl.Segmenter) {
1580
- return stripAnsi(str).length;
1581
- }
1582
- return stringWidth$1(str);
1583
- };
1584
- characterFormat = function(str) {
1585
- return str.replace(/`([^`]+)`/gm, (_2, m2) => colors.cyan(m2)).replace(/\s+_([^_]+)_\s+/gm, (_2, m2) => ` ${colors.underline(m2)} `);
1586
- };
1587
- getColor2 = function(color = "white") {
1588
- return colors[color] || colors.white;
1589
- };
1590
- getBgColor = function(color = "bgWhite") {
1591
- return colors[`bg${color[0].toUpperCase()}${color.slice(1)}`] || colors.bgWhite;
1592
- };
1593
- createConsola2 = function(options = {}) {
1594
- let level = _getDefaultLogLevel();
1595
- if (process.env.CONSOLA_LEVEL) {
1596
- level = Number.parseInt(process.env.CONSOLA_LEVEL) ?? level;
1597
- }
1598
- const consola2 = createConsola({
1599
- level,
1600
- defaults: { level },
1601
- stdout: process.stdout,
1602
- stderr: process.stderr,
1603
- prompt: (...args) => Promise.resolve().then(() => (init_prompt(), exports_prompt)).then((m2) => m2.prompt(...args)),
1604
- reporters: options.reporters || [
1605
- options.fancy ?? !(isCI2 || isTest) ? new FancyReporter : new BasicReporter
1606
- ],
1607
- ...options
1608
- });
1609
- return consola2;
1610
- };
1611
- _getDefaultLogLevel = function() {
1612
- if (isDebug) {
1613
- return LogLevels.debug;
1614
- }
1615
- if (isTest) {
1616
- return LogLevels.warn;
1617
- }
1618
- return LogLevels.info;
1619
- };
1491
+ }
1492
+ return width;
1493
+ }
1494
+ function isUnicodeSupported() {
1495
+ if (process$1.platform !== "win32") {
1496
+ return process$1.env.TERM !== "linux";
1497
+ }
1498
+ return Boolean(process$1.env.CI) || Boolean(process$1.env.WT_SESSION) || Boolean(process$1.env.TERMINUS_SUBLIME) || process$1.env.ConEmuTask === "{cmd::Cmder}" || process$1.env.TERM_PROGRAM === "Terminus-Sublime" || process$1.env.TERM_PROGRAM === "vscode" || process$1.env.TERM === "xterm-256color" || process$1.env.TERM === "alacritty" || process$1.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
1499
+ }
1500
+ function stringWidth(str) {
1501
+ if (!Intl.Segmenter) {
1502
+ return stripAnsi(str).length;
1503
+ }
1504
+ return stringWidth$1(str);
1505
+ }
1506
+ function characterFormat(str) {
1507
+ return str.replace(/`([^`]+)`/gm, (_2, m2) => colors.cyan(m2)).replace(/\s+_([^_]+)_\s+/gm, (_2, m2) => ` ${colors.underline(m2)} `);
1508
+ }
1509
+ function getColor2(color = "white") {
1510
+ return colors[color] || colors.white;
1511
+ }
1512
+ function getBgColor(color = "bgWhite") {
1513
+ return colors[`bg${color[0].toUpperCase()}${color.slice(1)}`] || colors.bgWhite;
1514
+ }
1515
+ function createConsola2(options = {}) {
1516
+ let level = _getDefaultLogLevel();
1517
+ if (process.env.CONSOLA_LEVEL) {
1518
+ level = Number.parseInt(process.env.CONSOLA_LEVEL) ?? level;
1519
+ }
1520
+ const consola2 = createConsola({
1521
+ level,
1522
+ defaults: { level },
1523
+ stdout: process.stdout,
1524
+ stderr: process.stderr,
1525
+ prompt: (...args) => Promise.resolve().then(() => (init_prompt(), exports_prompt)).then((m2) => m2.prompt(...args)),
1526
+ reporters: options.reporters || [
1527
+ options.fancy ?? !(isCI2 || isTest) ? new FancyReporter : new BasicReporter
1528
+ ],
1529
+ ...options
1530
+ });
1531
+ return consola2;
1532
+ }
1533
+ function _getDefaultLogLevel() {
1534
+ if (isDebug) {
1535
+ return LogLevels.debug;
1536
+ }
1537
+ if (isTest) {
1538
+ return LogLevels.warn;
1539
+ }
1540
+ return LogLevels.info;
1541
+ }
1542
+ var providers, processShim, envShim, providerInfo, nodeENV, isCI2, hasTTY, isDebug, isTest, regex, eastasianwidth, eastasianwidthExports, eastAsianWidth, emojiRegex = () => {
1543
+ return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
1544
+ }, TYPE_COLOR_MAP, LEVEL_COLOR_MAP, unicode2, s2 = (c2, fallback) => unicode2 ? c2 : fallback, TYPE_ICONS, FancyReporter, consola;
1545
+ var init_consola_36c0034f = __esm(() => {
1546
+ init_core();
1547
+ init_consola_06ad8a64();
1548
+ init_utils();
1620
1549
  providers = [
1621
1550
  ["APPVEYOR"],
1622
1551
  ["AZURE_PIPELINES", "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],
@@ -1755,10 +1684,7 @@ var init_consola_36c0034f = __esm(() => {
1755
1684
  };
1756
1685
  })(eastasianwidth);
1757
1686
  eastasianwidthExports = eastasianwidth.exports;
1758
- eastAsianWidth = getDefaultExportFromCjs(eastasianwidthExports);
1759
- emojiRegex = () => {
1760
- return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
1761
- };
1687
+ eastAsianWidth = /* @__PURE__ */ getDefaultExportFromCjs(eastasianwidthExports);
1762
1688
  TYPE_COLOR_MAP = {
1763
1689
  info: "cyan",
1764
1690
  fail: "red",
@@ -1771,7 +1697,6 @@ var init_consola_36c0034f = __esm(() => {
1771
1697
  1: "yellow"
1772
1698
  };
1773
1699
  unicode2 = isUnicodeSupported();
1774
- s2 = (c2, fallback) => unicode2 ? c2 : fallback;
1775
1700
  TYPE_ICONS = {
1776
1701
  error: s2("\u2716", "\xD7"),
1777
1702
  fatal: s2("\u2716", "\xD7"),
@@ -1785,6 +1710,44 @@ var init_consola_36c0034f = __esm(() => {
1785
1710
  start: s2("\u25D0", "o"),
1786
1711
  log: ""
1787
1712
  };
1713
+ FancyReporter = class FancyReporter extends BasicReporter {
1714
+ formatStack(stack) {
1715
+ return "\n" + parseStack(stack).map((line) => " " + line.replace(/^at +/, (m2) => colors.gray(m2)).replace(/\((.+)\)/, (_2, m2) => `(${colors.cyan(m2)})`)).join("\n");
1716
+ }
1717
+ formatType(logObj, isBadge, opts) {
1718
+ const typeColor = TYPE_COLOR_MAP[logObj.type] || LEVEL_COLOR_MAP[logObj.level] || "gray";
1719
+ if (isBadge) {
1720
+ return getBgColor(typeColor)(colors.black(` ${logObj.type.toUpperCase()} `));
1721
+ }
1722
+ const _type = typeof TYPE_ICONS[logObj.type] === "string" ? TYPE_ICONS[logObj.type] : logObj.icon || logObj.type;
1723
+ return _type ? getColor2(typeColor)(_type) : "";
1724
+ }
1725
+ formatLogObj(logObj, opts) {
1726
+ const [message, ...additional] = this.formatArgs(logObj.args, opts).split("\n");
1727
+ if (logObj.type === "box") {
1728
+ return box(characterFormat(message + (additional.length > 0 ? "\n" + additional.join("\n") : "")), {
1729
+ title: logObj.title ? characterFormat(logObj.title) : undefined,
1730
+ style: logObj.style
1731
+ });
1732
+ }
1733
+ const date = this.formatDate(logObj.date, opts);
1734
+ const coloredDate = date && colors.gray(date);
1735
+ const isBadge = logObj.badge ?? logObj.level < 2;
1736
+ const type = this.formatType(logObj, isBadge, opts);
1737
+ const tag = logObj.tag ? colors.gray(logObj.tag) : "";
1738
+ let line;
1739
+ const left = this.filterAndJoin([type, characterFormat(message)]);
1740
+ const right = this.filterAndJoin(opts.columns ? [tag, coloredDate] : [tag]);
1741
+ const space = (opts.columns || 0) - stringWidth(left) - stringWidth(right) - 2;
1742
+ line = space > 0 && (opts.columns || 0) >= 80 ? left + " ".repeat(space) + right : (right ? `${colors.gray(`[${right}]`)} ` : "") + left;
1743
+ line += characterFormat(additional.length > 0 ? "\n" + additional.join("\n") : "");
1744
+ if (logObj.type === "trace") {
1745
+ const _err = new Error("Trace: " + logObj.message);
1746
+ line += this.formatStack(_err.stack || "");
1747
+ }
1748
+ return isBadge ? "\n" + line + "\n" : line;
1749
+ }
1750
+ };
1788
1751
  consola = createConsola2();
1789
1752
  });
1790
1753
 
@@ -1842,7 +1805,7 @@ var require_slugify = __commonJS((exports, module) => {
1842
1805
  // ../../../../node_modules/pluralize/pluralize.js
1843
1806
  var require_pluralize = __commonJS((exports, module) => {
1844
1807
  (function(root, pluralize) {
1845
- if (typeof __require === "function" && typeof exports === "object" && typeof module === "object") {
1808
+ if (typeof exports === "object" && typeof module === "object") {
1846
1809
  module.exports = pluralize();
1847
1810
  } else if (typeof define === "function" && define.amd) {
1848
1811
  define(function() {
@@ -2195,7 +2158,7 @@ var require_universalify = __commonJS((exports) => {
2195
2158
 
2196
2159
  // ../../../../node_modules/graceful-fs/polyfills.js
2197
2160
  var require_polyfills = __commonJS((exports, module) => {
2198
- var patch = function(fs) {
2161
+ function patch(fs) {
2199
2162
  if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
2200
2163
  patchLchmod(fs);
2201
2164
  }
@@ -2475,7 +2438,7 @@ var require_polyfills = __commonJS((exports, module) => {
2475
2438
  }
2476
2439
  return false;
2477
2440
  }
2478
- };
2441
+ }
2479
2442
  var constants = __require("constants");
2480
2443
  var origCwd = process.cwd;
2481
2444
  var cwd = null;
@@ -2504,7 +2467,7 @@ var require_polyfills = __commonJS((exports, module) => {
2504
2467
 
2505
2468
  // ../../../../node_modules/graceful-fs/legacy-streams.js
2506
2469
  var require_legacy_streams = __commonJS((exports, module) => {
2507
- var legacy = function(fs) {
2470
+ function legacy(fs) {
2508
2471
  return {
2509
2472
  ReadStream,
2510
2473
  WriteStream: WriteStream2
@@ -2594,14 +2557,14 @@ var require_legacy_streams = __commonJS((exports, module) => {
2594
2557
  this.flush();
2595
2558
  }
2596
2559
  }
2597
- };
2560
+ }
2598
2561
  var Stream = __require("stream").Stream;
2599
2562
  module.exports = legacy;
2600
2563
  });
2601
2564
 
2602
2565
  // ../../../../node_modules/graceful-fs/clone.js
2603
2566
  var require_clone = __commonJS((exports, module) => {
2604
- var clone = function(obj) {
2567
+ function clone(obj) {
2605
2568
  if (obj === null || typeof obj !== "object")
2606
2569
  return obj;
2607
2570
  if (obj instanceof Object)
@@ -2612,7 +2575,7 @@ var require_clone = __commonJS((exports, module) => {
2612
2575
  Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key));
2613
2576
  });
2614
2577
  return copy;
2615
- };
2578
+ }
2616
2579
  module.exports = clone;
2617
2580
  var getPrototypeOf = Object.getPrototypeOf || function(obj) {
2618
2581
  return obj.__proto__;
@@ -2621,16 +2584,16 @@ var require_clone = __commonJS((exports, module) => {
2621
2584
 
2622
2585
  // ../../../../node_modules/graceful-fs/graceful-fs.js
2623
2586
  var require_graceful_fs = __commonJS((exports, module) => {
2624
- var noop = function() {
2625
- };
2626
- var publishQueue = function(context, queue4) {
2587
+ function noop() {
2588
+ }
2589
+ function publishQueue(context, queue4) {
2627
2590
  Object.defineProperty(context, gracefulQueue, {
2628
2591
  get: function() {
2629
2592
  return queue4;
2630
2593
  }
2631
2594
  });
2632
- };
2633
- var patch = function(fs2) {
2595
+ }
2596
+ function patch(fs2) {
2634
2597
  polyfills(fs2);
2635
2598
  fs2.gracefulify = patch;
2636
2599
  fs2.createReadStream = createReadStream;
@@ -2857,13 +2820,13 @@ var require_graceful_fs = __commonJS((exports, module) => {
2857
2820
  }
2858
2821
  }
2859
2822
  return fs2;
2860
- };
2861
- var enqueue = function(elem) {
2823
+ }
2824
+ function enqueue(elem) {
2862
2825
  debug("ENQUEUE", elem[0].name, elem[1]);
2863
2826
  fs[gracefulQueue].push(elem);
2864
2827
  retry();
2865
- };
2866
- var resetQueue = function() {
2828
+ }
2829
+ function resetQueue() {
2867
2830
  var now = Date.now();
2868
2831
  for (var i = 0;i < fs[gracefulQueue].length; ++i) {
2869
2832
  if (fs[gracefulQueue][i].length > 2) {
@@ -2872,8 +2835,8 @@ var require_graceful_fs = __commonJS((exports, module) => {
2872
2835
  }
2873
2836
  }
2874
2837
  retry();
2875
- };
2876
- var retry = function() {
2838
+ }
2839
+ function retry() {
2877
2840
  clearTimeout(retryTimer);
2878
2841
  retryTimer = undefined;
2879
2842
  if (fs[gracefulQueue].length === 0)
@@ -2906,7 +2869,7 @@ var require_graceful_fs = __commonJS((exports, module) => {
2906
2869
  if (retryTimer === undefined) {
2907
2870
  retryTimer = setTimeout(retry, 0);
2908
2871
  }
2909
- };
2872
+ }
2910
2873
  var fs = __require("fs");
2911
2874
  var polyfills = require_polyfills();
2912
2875
  var legacy = require_legacy_streams();
@@ -3144,9 +3107,9 @@ var require_mkdirs = __commonJS((exports, module) => {
3144
3107
 
3145
3108
  // ../../../../node_modules/fs-extra/lib/path-exists/index.js
3146
3109
  var require_path_exists = __commonJS((exports, module) => {
3147
- var pathExists = function(path) {
3110
+ function pathExists(path) {
3148
3111
  return fs.access(path).then(() => true).catch(() => false);
3149
- };
3112
+ }
3150
3113
  var u = require_universalify().fromPromise;
3151
3114
  var fs = require_fs();
3152
3115
  module.exports = {
@@ -3173,11 +3136,11 @@ var require_utimes = __commonJS((exports, module) => {
3173
3136
  throw closeErr;
3174
3137
  }
3175
3138
  }
3176
- var utimesMillisSync = function(path, atime, mtime) {
3139
+ function utimesMillisSync(path, atime, mtime) {
3177
3140
  const fd = fs.openSync(path, "r+");
3178
3141
  fs.futimesSync(fd, atime, mtime);
3179
3142
  return fs.closeSync(fd);
3180
- };
3143
+ }
3181
3144
  var fs = require_fs();
3182
3145
  var u = require_universalify().fromPromise;
3183
3146
  module.exports = {
@@ -3188,7 +3151,7 @@ var require_utimes = __commonJS((exports, module) => {
3188
3151
 
3189
3152
  // ../../../../node_modules/fs-extra/lib/util/stat.js
3190
3153
  var require_stat = __commonJS((exports, module) => {
3191
- var getStats = function(src2, dest, opts) {
3154
+ function getStats(src2, dest, opts) {
3192
3155
  const statFunc = opts.dereference ? (file) => fs.stat(file, { bigint: true }) : (file) => fs.lstat(file, { bigint: true });
3193
3156
  return Promise.all([
3194
3157
  statFunc(src2),
@@ -3198,8 +3161,8 @@ var require_stat = __commonJS((exports, module) => {
3198
3161
  throw err;
3199
3162
  })
3200
3163
  ]).then(([srcStat, destStat]) => ({ srcStat, destStat }));
3201
- };
3202
- var getStatsSync = function(src2, dest, opts) {
3164
+ }
3165
+ function getStatsSync(src2, dest, opts) {
3203
3166
  let destStat;
3204
3167
  const statFunc = opts.dereference ? (file) => fs.statSync(file, { bigint: true }) : (file) => fs.lstatSync(file, { bigint: true });
3205
3168
  const srcStat = statFunc(src2);
@@ -3211,7 +3174,7 @@ var require_stat = __commonJS((exports, module) => {
3211
3174
  throw err;
3212
3175
  }
3213
3176
  return { srcStat, destStat };
3214
- };
3177
+ }
3215
3178
  async function checkPaths(src2, dest, funcName, opts) {
3216
3179
  const { srcStat, destStat } = await getStats(src2, dest, opts);
3217
3180
  if (destStat) {
@@ -3235,7 +3198,7 @@ var require_stat = __commonJS((exports, module) => {
3235
3198
  }
3236
3199
  return { srcStat, destStat };
3237
3200
  }
3238
- var checkPathsSync = function(src2, dest, funcName, opts) {
3201
+ function checkPathsSync(src2, dest, funcName, opts) {
3239
3202
  const { srcStat, destStat } = getStatsSync(src2, dest, opts);
3240
3203
  if (destStat) {
3241
3204
  if (areIdentical(srcStat, destStat)) {
@@ -3257,7 +3220,7 @@ var require_stat = __commonJS((exports, module) => {
3257
3220
  throw new Error(errMsg(src2, dest, funcName));
3258
3221
  }
3259
3222
  return { srcStat, destStat };
3260
- };
3223
+ }
3261
3224
  async function checkParentPaths(src2, srcStat, dest, funcName) {
3262
3225
  const srcParent = path.resolve(path.dirname(src2));
3263
3226
  const destParent = path.resolve(path.dirname(dest));
@@ -3276,7 +3239,7 @@ var require_stat = __commonJS((exports, module) => {
3276
3239
  }
3277
3240
  return checkParentPaths(src2, srcStat, destParent, funcName);
3278
3241
  }
3279
- var checkParentPathsSync = function(src2, srcStat, dest, funcName) {
3242
+ function checkParentPathsSync(src2, srcStat, dest, funcName) {
3280
3243
  const srcParent = path.resolve(path.dirname(src2));
3281
3244
  const destParent = path.resolve(path.dirname(dest));
3282
3245
  if (destParent === srcParent || destParent === path.parse(destParent).root)
@@ -3293,18 +3256,18 @@ var require_stat = __commonJS((exports, module) => {
3293
3256
  throw new Error(errMsg(src2, dest, funcName));
3294
3257
  }
3295
3258
  return checkParentPathsSync(src2, srcStat, destParent, funcName);
3296
- };
3297
- var areIdentical = function(srcStat, destStat) {
3259
+ }
3260
+ function areIdentical(srcStat, destStat) {
3298
3261
  return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
3299
- };
3300
- var isSrcSubdir = function(src2, dest) {
3262
+ }
3263
+ function isSrcSubdir(src2, dest) {
3301
3264
  const srcArr = path.resolve(src2).split(path.sep).filter((i) => i);
3302
3265
  const destArr = path.resolve(dest).split(path.sep).filter((i) => i);
3303
3266
  return srcArr.every((cur, i) => destArr[i] === cur);
3304
- };
3305
- var errMsg = function(src2, dest, funcName) {
3267
+ }
3268
+ function errMsg(src2, dest, funcName) {
3306
3269
  return `Cannot ${funcName} '${src2}' to a subdirectory of itself, '${dest}'.`;
3307
- };
3270
+ }
3308
3271
  var fs = require_fs();
3309
3272
  var path = __require("path");
3310
3273
  var u = require_universalify().fromPromise;
@@ -3383,12 +3346,12 @@ var require_copy = __commonJS((exports, module) => {
3383
3346
  }
3384
3347
  return fs.chmod(dest, srcStat.mode);
3385
3348
  }
3386
- var fileIsNotWritable = function(srcMode) {
3349
+ function fileIsNotWritable(srcMode) {
3387
3350
  return (srcMode & 128) === 0;
3388
- };
3389
- var makeFileWritable = function(dest, srcMode) {
3351
+ }
3352
+ function makeFileWritable(dest, srcMode) {
3390
3353
  return fs.chmod(dest, srcMode | 128);
3391
- };
3354
+ }
3392
3355
  async function onDir(srcStat, destStat, src2, dest, opts) {
3393
3356
  if (!destStat) {
3394
3357
  await fs.mkdir(dest);
@@ -3446,7 +3409,7 @@ var require_copy = __commonJS((exports, module) => {
3446
3409
 
3447
3410
  // ../../../../node_modules/fs-extra/lib/copy/copy-sync.js
3448
3411
  var require_copy_sync = __commonJS((exports, module) => {
3449
- var copySync = function(src2, dest, opts) {
3412
+ function copySync(src2, dest, opts) {
3450
3413
  if (typeof opts === "function") {
3451
3414
  opts = { filter: opts };
3452
3415
  }
@@ -3464,8 +3427,8 @@ var require_copy_sync = __commonJS((exports, module) => {
3464
3427
  if (!fs.existsSync(destParent))
3465
3428
  mkdirsSync(destParent);
3466
3429
  return getStats(destStat, src2, dest, opts);
3467
- };
3468
- var getStats = function(destStat, src2, dest, opts) {
3430
+ }
3431
+ function getStats(destStat, src2, dest, opts) {
3469
3432
  const statSync = opts.dereference ? fs.statSync : fs.lstatSync;
3470
3433
  const srcStat = statSync(src2);
3471
3434
  if (srcStat.isDirectory())
@@ -3479,66 +3442,66 @@ var require_copy_sync = __commonJS((exports, module) => {
3479
3442
  else if (srcStat.isFIFO())
3480
3443
  throw new Error(`Cannot copy a FIFO pipe: ${src2}`);
3481
3444
  throw new Error(`Unknown file: ${src2}`);
3482
- };
3483
- var onFile = function(srcStat, destStat, src2, dest, opts) {
3445
+ }
3446
+ function onFile(srcStat, destStat, src2, dest, opts) {
3484
3447
  if (!destStat)
3485
3448
  return copyFile(srcStat, src2, dest, opts);
3486
3449
  return mayCopyFile(srcStat, src2, dest, opts);
3487
- };
3488
- var mayCopyFile = function(srcStat, src2, dest, opts) {
3450
+ }
3451
+ function mayCopyFile(srcStat, src2, dest, opts) {
3489
3452
  if (opts.overwrite) {
3490
3453
  fs.unlinkSync(dest);
3491
3454
  return copyFile(srcStat, src2, dest, opts);
3492
3455
  } else if (opts.errorOnExist) {
3493
3456
  throw new Error(`'${dest}' already exists`);
3494
3457
  }
3495
- };
3496
- var copyFile = function(srcStat, src2, dest, opts) {
3458
+ }
3459
+ function copyFile(srcStat, src2, dest, opts) {
3497
3460
  fs.copyFileSync(src2, dest);
3498
3461
  if (opts.preserveTimestamps)
3499
3462
  handleTimestamps(srcStat.mode, src2, dest);
3500
3463
  return setDestMode(dest, srcStat.mode);
3501
- };
3502
- var handleTimestamps = function(srcMode, src2, dest) {
3464
+ }
3465
+ function handleTimestamps(srcMode, src2, dest) {
3503
3466
  if (fileIsNotWritable(srcMode))
3504
3467
  makeFileWritable(dest, srcMode);
3505
3468
  return setDestTimestamps(src2, dest);
3506
- };
3507
- var fileIsNotWritable = function(srcMode) {
3469
+ }
3470
+ function fileIsNotWritable(srcMode) {
3508
3471
  return (srcMode & 128) === 0;
3509
- };
3510
- var makeFileWritable = function(dest, srcMode) {
3472
+ }
3473
+ function makeFileWritable(dest, srcMode) {
3511
3474
  return setDestMode(dest, srcMode | 128);
3512
- };
3513
- var setDestMode = function(dest, srcMode) {
3475
+ }
3476
+ function setDestMode(dest, srcMode) {
3514
3477
  return fs.chmodSync(dest, srcMode);
3515
- };
3516
- var setDestTimestamps = function(src2, dest) {
3478
+ }
3479
+ function setDestTimestamps(src2, dest) {
3517
3480
  const updatedSrcStat = fs.statSync(src2);
3518
3481
  return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
3519
- };
3520
- var onDir = function(srcStat, destStat, src2, dest, opts) {
3482
+ }
3483
+ function onDir(srcStat, destStat, src2, dest, opts) {
3521
3484
  if (!destStat)
3522
3485
  return mkDirAndCopy(srcStat.mode, src2, dest, opts);
3523
3486
  return copyDir(src2, dest, opts);
3524
- };
3525
- var mkDirAndCopy = function(srcMode, src2, dest, opts) {
3487
+ }
3488
+ function mkDirAndCopy(srcMode, src2, dest, opts) {
3526
3489
  fs.mkdirSync(dest);
3527
3490
  copyDir(src2, dest, opts);
3528
3491
  return setDestMode(dest, srcMode);
3529
- };
3530
- var copyDir = function(src2, dest, opts) {
3492
+ }
3493
+ function copyDir(src2, dest, opts) {
3531
3494
  fs.readdirSync(src2).forEach((item) => copyDirItem(item, src2, dest, opts));
3532
- };
3533
- var copyDirItem = function(item, src2, dest, opts) {
3495
+ }
3496
+ function copyDirItem(item, src2, dest, opts) {
3534
3497
  const srcItem = path.join(src2, item);
3535
3498
  const destItem = path.join(dest, item);
3536
3499
  if (opts.filter && !opts.filter(srcItem, destItem))
3537
3500
  return;
3538
3501
  const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts);
3539
3502
  return getStats(destStat, srcItem, destItem, opts);
3540
- };
3541
- var onLink = function(destStat, src2, dest, opts) {
3503
+ }
3504
+ function onLink(destStat, src2, dest, opts) {
3542
3505
  let resolvedSrc = fs.readlinkSync(src2);
3543
3506
  if (opts.dereference) {
3544
3507
  resolvedSrc = path.resolve(process.cwd(), resolvedSrc);
@@ -3565,11 +3528,11 @@ var require_copy_sync = __commonJS((exports, module) => {
3565
3528
  }
3566
3529
  return copyLink(resolvedSrc, dest);
3567
3530
  }
3568
- };
3569
- var copyLink = function(resolvedSrc, dest) {
3531
+ }
3532
+ function copyLink(resolvedSrc, dest) {
3570
3533
  fs.unlinkSync(dest);
3571
3534
  return fs.symlinkSync(resolvedSrc, dest);
3572
- };
3535
+ }
3573
3536
  var fs = require_graceful_fs();
3574
3537
  var path = __require("path");
3575
3538
  var mkdirsSync = require_mkdirs().mkdirsSync;
@@ -3589,12 +3552,12 @@ var require_copy2 = __commonJS((exports, module) => {
3589
3552
 
3590
3553
  // ../../../../node_modules/fs-extra/lib/remove/index.js
3591
3554
  var require_remove = __commonJS((exports, module) => {
3592
- var remove = function(path, callback) {
3555
+ function remove(path, callback) {
3593
3556
  fs.rm(path, { recursive: true, force: true }, callback);
3594
- };
3595
- var removeSync = function(path) {
3557
+ }
3558
+ function removeSync(path) {
3596
3559
  fs.rmSync(path, { recursive: true, force: true });
3597
- };
3560
+ }
3598
3561
  var fs = require_graceful_fs();
3599
3562
  var u = require_universalify().fromCallback;
3600
3563
  module.exports = {
@@ -3605,7 +3568,7 @@ var require_remove = __commonJS((exports, module) => {
3605
3568
 
3606
3569
  // ../../../../node_modules/fs-extra/lib/empty/index.js
3607
3570
  var require_empty = __commonJS((exports, module) => {
3608
- var emptyDirSync = function(dir) {
3571
+ function emptyDirSync(dir) {
3609
3572
  let items;
3610
3573
  try {
3611
3574
  items = fs.readdirSync(dir);
@@ -3616,7 +3579,7 @@ var require_empty = __commonJS((exports, module) => {
3616
3579
  item = path.join(dir, item);
3617
3580
  remove.removeSync(item);
3618
3581
  });
3619
- };
3582
+ }
3620
3583
  var u = require_universalify().fromPromise;
3621
3584
  var fs = require_fs();
3622
3585
  var path = __require("path");
@@ -3668,7 +3631,7 @@ var require_file = __commonJS((exports, module) => {
3668
3631
  await fs.readdir(dir);
3669
3632
  }
3670
3633
  }
3671
- var createFileSync = function(file) {
3634
+ function createFileSync(file) {
3672
3635
  let stats;
3673
3636
  try {
3674
3637
  stats = fs.statSync(file);
@@ -3688,7 +3651,7 @@ var require_file = __commonJS((exports, module) => {
3688
3651
  throw err;
3689
3652
  }
3690
3653
  fs.writeFileSync(file, "");
3691
- };
3654
+ }
3692
3655
  var u = require_universalify().fromPromise;
3693
3656
  var path = __require("path");
3694
3657
  var fs = require_fs();
@@ -3723,7 +3686,7 @@ var require_link = __commonJS((exports, module) => {
3723
3686
  }
3724
3687
  await fs.link(srcpath, dstpath);
3725
3688
  }
3726
- var createLinkSync = function(srcpath, dstpath) {
3689
+ function createLinkSync(srcpath, dstpath) {
3727
3690
  let dstStat;
3728
3691
  try {
3729
3692
  dstStat = fs.lstatSync(dstpath);
@@ -3743,7 +3706,7 @@ var require_link = __commonJS((exports, module) => {
3743
3706
  return fs.linkSync(srcpath, dstpath);
3744
3707
  mkdir.mkdirsSync(dir);
3745
3708
  return fs.linkSync(srcpath, dstpath);
3746
- };
3709
+ }
3747
3710
  var u = require_universalify().fromPromise;
3748
3711
  var path = __require("path");
3749
3712
  var fs = require_fs();
@@ -3791,7 +3754,7 @@ var require_symlink_paths = __commonJS((exports, module) => {
3791
3754
  toDst: path.relative(dstdir, srcpath)
3792
3755
  };
3793
3756
  }
3794
- var symlinkPathsSync = function(srcpath, dstpath) {
3757
+ function symlinkPathsSync(srcpath, dstpath) {
3795
3758
  if (path.isAbsolute(srcpath)) {
3796
3759
  const exists2 = fs.existsSync(srcpath);
3797
3760
  if (!exists2)
@@ -3817,7 +3780,7 @@ var require_symlink_paths = __commonJS((exports, module) => {
3817
3780
  toCwd: srcpath,
3818
3781
  toDst: path.relative(dstdir, srcpath)
3819
3782
  };
3820
- };
3783
+ }
3821
3784
  var path = __require("path");
3822
3785
  var fs = require_fs();
3823
3786
  var { pathExists } = require_path_exists();
@@ -3841,7 +3804,7 @@ var require_symlink_type = __commonJS((exports, module) => {
3841
3804
  }
3842
3805
  return stats && stats.isDirectory() ? "dir" : "file";
3843
3806
  }
3844
- var symlinkTypeSync = function(srcpath, type) {
3807
+ function symlinkTypeSync(srcpath, type) {
3845
3808
  if (type)
3846
3809
  return type;
3847
3810
  let stats;
@@ -3851,7 +3814,7 @@ var require_symlink_type = __commonJS((exports, module) => {
3851
3814
  return "file";
3852
3815
  }
3853
3816
  return stats && stats.isDirectory() ? "dir" : "file";
3854
- };
3817
+ }
3855
3818
  var fs = require_fs();
3856
3819
  var u = require_universalify().fromPromise;
3857
3820
  module.exports = {
@@ -3885,7 +3848,7 @@ var require_symlink = __commonJS((exports, module) => {
3885
3848
  }
3886
3849
  return fs.symlink(srcpath, dstpath, toType);
3887
3850
  }
3888
- var createSymlinkSync = function(srcpath, dstpath, type) {
3851
+ function createSymlinkSync(srcpath, dstpath, type) {
3889
3852
  let stats;
3890
3853
  try {
3891
3854
  stats = fs.lstatSync(dstpath);
@@ -3906,7 +3869,7 @@ var require_symlink = __commonJS((exports, module) => {
3906
3869
  return fs.symlinkSync(srcpath, dstpath, type);
3907
3870
  mkdirsSync(dir);
3908
3871
  return fs.symlinkSync(srcpath, dstpath, type);
3909
- };
3872
+ }
3910
3873
  var u = require_universalify().fromPromise;
3911
3874
  var path = __require("path");
3912
3875
  var fs = require_fs();
@@ -3944,16 +3907,16 @@ var require_ensure = __commonJS((exports, module) => {
3944
3907
 
3945
3908
  // ../../../../node_modules/jsonfile/utils.js
3946
3909
  var require_utils2 = __commonJS((exports, module) => {
3947
- var stringify = function(obj, { EOL = "\n", finalEOL = true, replacer = null, spaces } = {}) {
3910
+ function stringify(obj, { EOL = "\n", finalEOL = true, replacer = null, spaces } = {}) {
3948
3911
  const EOF = finalEOL ? EOL : "";
3949
3912
  const str = JSON.stringify(obj, replacer, spaces);
3950
3913
  return str.replace(/\n/g, EOL) + EOF;
3951
- };
3952
- var stripBom = function(content) {
3914
+ }
3915
+ function stripBom(content) {
3953
3916
  if (Buffer.isBuffer(content))
3954
3917
  content = content.toString("utf8");
3955
3918
  return content.replace(/^\uFEFF/, "");
3956
- };
3919
+ }
3957
3920
  module.exports = { stringify, stripBom };
3958
3921
  });
3959
3922
 
@@ -3980,7 +3943,7 @@ var require_jsonfile = __commonJS((exports, module) => {
3980
3943
  }
3981
3944
  return obj;
3982
3945
  }
3983
- var readFileSync = function(file, options = {}) {
3946
+ function readFileSync(file, options = {}) {
3984
3947
  if (typeof options === "string") {
3985
3948
  options = { encoding: options };
3986
3949
  }
@@ -3998,17 +3961,17 @@ var require_jsonfile = __commonJS((exports, module) => {
3998
3961
  return null;
3999
3962
  }
4000
3963
  }
4001
- };
3964
+ }
4002
3965
  async function _writeFile(file, obj, options = {}) {
4003
3966
  const fs = options.fs || _fs;
4004
3967
  const str = stringify(obj, options);
4005
3968
  await universalify.fromCallback(fs.writeFile)(file, str, options);
4006
3969
  }
4007
- var writeFileSync = function(file, obj, options = {}) {
3970
+ function writeFileSync(file, obj, options = {}) {
4008
3971
  const fs = options.fs || _fs;
4009
3972
  const str = stringify(obj, options);
4010
3973
  return fs.writeFileSync(file, str, options);
4011
- };
3974
+ }
4012
3975
  var _fs;
4013
3976
  try {
4014
3977
  _fs = require_graceful_fs();
@@ -4048,13 +4011,13 @@ var require_output_file = __commonJS((exports, module) => {
4048
4011
  }
4049
4012
  return fs.writeFile(file, data, encoding);
4050
4013
  }
4051
- var outputFileSync = function(file, ...args) {
4014
+ function outputFileSync(file, ...args) {
4052
4015
  const dir = path.dirname(file);
4053
4016
  if (!fs.existsSync(dir)) {
4054
4017
  mkdir.mkdirsSync(dir);
4055
4018
  }
4056
4019
  fs.writeFileSync(file, ...args);
4057
- };
4020
+ }
4058
4021
  var u = require_universalify().fromPromise;
4059
4022
  var fs = require_fs();
4060
4023
  var path = __require("path");
@@ -4079,10 +4042,10 @@ var require_output_json = __commonJS((exports, module) => {
4079
4042
 
4080
4043
  // ../../../../node_modules/fs-extra/lib/json/output-json-sync.js
4081
4044
  var require_output_json_sync = __commonJS((exports, module) => {
4082
- var outputJsonSync = function(file, data, options) {
4045
+ function outputJsonSync(file, data, options) {
4083
4046
  const str = stringify(data, options);
4084
4047
  outputFileSync(file, str, options);
4085
- };
4048
+ }
4086
4049
  var { stringify } = require_utils2();
4087
4050
  var { outputFileSync } = require_output_file();
4088
4051
  module.exports = outputJsonSync;
@@ -4154,7 +4117,7 @@ var require_move = __commonJS((exports, module) => {
4154
4117
 
4155
4118
  // ../../../../node_modules/fs-extra/lib/move/move-sync.js
4156
4119
  var require_move_sync = __commonJS((exports, module) => {
4157
- var moveSync = function(src2, dest, opts) {
4120
+ function moveSync(src2, dest, opts) {
4158
4121
  opts = opts || {};
4159
4122
  const overwrite = opts.overwrite || opts.clobber || false;
4160
4123
  const { srcStat, isChangingCase = false } = stat.checkPathsSync(src2, dest, "move", opts);
@@ -4162,13 +4125,13 @@ var require_move_sync = __commonJS((exports, module) => {
4162
4125
  if (!isParentRoot(dest))
4163
4126
  mkdirpSync(path.dirname(dest));
4164
4127
  return doRename(src2, dest, overwrite, isChangingCase);
4165
- };
4166
- var isParentRoot = function(dest) {
4128
+ }
4129
+ function isParentRoot(dest) {
4167
4130
  const parent = path.dirname(dest);
4168
4131
  const parsedPath = path.parse(parent);
4169
4132
  return parsedPath.root === parent;
4170
- };
4171
- var doRename = function(src2, dest, overwrite, isChangingCase) {
4133
+ }
4134
+ function doRename(src2, dest, overwrite, isChangingCase) {
4172
4135
  if (isChangingCase)
4173
4136
  return rename(src2, dest, overwrite);
4174
4137
  if (overwrite) {
@@ -4178,8 +4141,8 @@ var require_move_sync = __commonJS((exports, module) => {
4178
4141
  if (fs.existsSync(dest))
4179
4142
  throw new Error("dest already exists.");
4180
4143
  return rename(src2, dest, overwrite);
4181
- };
4182
- var rename = function(src2, dest, overwrite) {
4144
+ }
4145
+ function rename(src2, dest, overwrite) {
4183
4146
  try {
4184
4147
  fs.renameSync(src2, dest);
4185
4148
  } catch (err) {
@@ -4187,8 +4150,8 @@ var require_move_sync = __commonJS((exports, module) => {
4187
4150
  throw err;
4188
4151
  return moveAcrossDevice(src2, dest, overwrite);
4189
4152
  }
4190
- };
4191
- var moveAcrossDevice = function(src2, dest, overwrite) {
4153
+ }
4154
+ function moveAcrossDevice(src2, dest, overwrite) {
4192
4155
  const opts = {
4193
4156
  overwrite,
4194
4157
  errorOnExist: true,
@@ -4196,7 +4159,7 @@ var require_move_sync = __commonJS((exports, module) => {
4196
4159
  };
4197
4160
  copySync(src2, dest, opts);
4198
4161
  return removeSync(src2);
4199
- };
4162
+ }
4200
4163
  var fs = require_graceful_fs();
4201
4164
  var path = __require("path");
4202
4165
  var copySync = require_copy2().copySync;
@@ -4231,387 +4194,6 @@ var require_lib = __commonJS((exports, module) => {
4231
4194
  };
4232
4195
  });
4233
4196
 
4234
- // ../../../../node_modules/neverthrow/dist/index.cjs.js
4235
- var require_index_cjs = __commonJS((exports) => {
4236
- var __awaiter = function(thisArg, _arguments, P2, generator) {
4237
- function adopt(value) {
4238
- return value instanceof P2 ? value : new P2(function(resolve) {
4239
- resolve(value);
4240
- });
4241
- }
4242
- return new (P2 || (P2 = Promise))(function(resolve, reject) {
4243
- function fulfilled(value) {
4244
- try {
4245
- step(generator.next(value));
4246
- } catch (e) {
4247
- reject(e);
4248
- }
4249
- }
4250
- function rejected(value) {
4251
- try {
4252
- step(generator["throw"](value));
4253
- } catch (e) {
4254
- reject(e);
4255
- }
4256
- }
4257
- function step(result) {
4258
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
4259
- }
4260
- step((generator = generator.apply(thisArg, _arguments || [])).next());
4261
- });
4262
- };
4263
- var __values = function(o) {
4264
- var s3 = typeof Symbol === "function" && Symbol.iterator, m2 = s3 && o[s3], i = 0;
4265
- if (m2)
4266
- return m2.call(o);
4267
- if (o && typeof o.length === "number")
4268
- return {
4269
- next: function() {
4270
- if (o && i >= o.length)
4271
- o = undefined;
4272
- return { value: o && o[i++], done: !o };
4273
- }
4274
- };
4275
- throw new TypeError(s3 ? "Object is not iterable." : "Symbol.iterator is not defined.");
4276
- };
4277
- var __await = function(v2) {
4278
- return this instanceof __await ? (this.v = v2, this) : new __await(v2);
4279
- };
4280
- var __asyncGenerator = function(thisArg, _arguments, generator) {
4281
- if (!Symbol.asyncIterator)
4282
- throw new TypeError("Symbol.asyncIterator is not defined.");
4283
- var g2 = generator.apply(thisArg, _arguments || []), i, q2 = [];
4284
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
4285
- return this;
4286
- }, i;
4287
- function verb(n) {
4288
- if (g2[n])
4289
- i[n] = function(v2) {
4290
- return new Promise(function(a, b2) {
4291
- q2.push([n, v2, a, b2]) > 1 || resume(n, v2);
4292
- });
4293
- };
4294
- }
4295
- function resume(n, v2) {
4296
- try {
4297
- step(g2[n](v2));
4298
- } catch (e) {
4299
- settle(q2[0][3], e);
4300
- }
4301
- }
4302
- function step(r2) {
4303
- r2.value instanceof __await ? Promise.resolve(r2.value.v).then(fulfill, reject) : settle(q2[0][2], r2);
4304
- }
4305
- function fulfill(value) {
4306
- resume("next", value);
4307
- }
4308
- function reject(value) {
4309
- resume("throw", value);
4310
- }
4311
- function settle(f2, v2) {
4312
- if (f2(v2), q2.shift(), q2.length)
4313
- resume(q2[0][0], q2[0][1]);
4314
- }
4315
- };
4316
- var __asyncDelegator = function(o) {
4317
- var i, p2;
4318
- return i = {}, verb("next"), verb("throw", function(e) {
4319
- throw e;
4320
- }), verb("return"), i[Symbol.iterator] = function() {
4321
- return this;
4322
- }, i;
4323
- function verb(n, f2) {
4324
- i[n] = o[n] ? function(v2) {
4325
- return (p2 = !p2) ? { value: __await(o[n](v2)), done: n === "return" } : f2 ? f2(v2) : v2;
4326
- } : f2;
4327
- }
4328
- };
4329
- var __asyncValues = function(o) {
4330
- if (!Symbol.asyncIterator)
4331
- throw new TypeError("Symbol.asyncIterator is not defined.");
4332
- var m2 = o[Symbol.asyncIterator], i;
4333
- return m2 ? m2.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
4334
- return this;
4335
- }, i);
4336
- function verb(n) {
4337
- i[n] = o[n] && function(v2) {
4338
- return new Promise(function(resolve, reject) {
4339
- v2 = o[n](v2), settle(resolve, reject, v2.done, v2.value);
4340
- });
4341
- };
4342
- }
4343
- function settle(resolve, reject, d, v2) {
4344
- Promise.resolve(v2).then(function(v3) {
4345
- resolve({ value: v3, done: d });
4346
- }, reject);
4347
- }
4348
- };
4349
- var safeTry = function(body) {
4350
- const n = body().next();
4351
- if (n instanceof Promise) {
4352
- return n.then((r2) => r2.value);
4353
- }
4354
- return n.value;
4355
- };
4356
- Object.defineProperty(exports, "__esModule", { value: true });
4357
- var defaultErrorConfig = {
4358
- withStackTrace: false
4359
- };
4360
- var createNeverThrowError = (message, result, config = defaultErrorConfig) => {
4361
- const data = result.isOk() ? { type: "Ok", value: result.value } : { type: "Err", value: result.error };
4362
- const maybeStack = config.withStackTrace ? new Error().stack : undefined;
4363
- return {
4364
- data,
4365
- message,
4366
- stack: maybeStack
4367
- };
4368
- };
4369
-
4370
- class ResultAsync {
4371
- constructor(res) {
4372
- this._promise = res;
4373
- }
4374
- static fromSafePromise(promise2) {
4375
- const newPromise = promise2.then((value) => new Ok(value));
4376
- return new ResultAsync(newPromise);
4377
- }
4378
- static fromPromise(promise2, errorFn) {
4379
- const newPromise = promise2.then((value) => new Ok(value)).catch((e) => new Err(errorFn(e)));
4380
- return new ResultAsync(newPromise);
4381
- }
4382
- static fromThrowable(fn, errorFn) {
4383
- return (...args) => {
4384
- return new ResultAsync((() => __awaiter(this, undefined, undefined, function* () {
4385
- try {
4386
- return new Ok(yield fn(...args));
4387
- } catch (error) {
4388
- return new Err(errorFn ? errorFn(error) : error);
4389
- }
4390
- }))());
4391
- };
4392
- }
4393
- static combine(asyncResultList) {
4394
- return combineResultAsyncList(asyncResultList);
4395
- }
4396
- static combineWithAllErrors(asyncResultList) {
4397
- return combineResultAsyncListWithAllErrors(asyncResultList);
4398
- }
4399
- map(f2) {
4400
- return new ResultAsync(this._promise.then((res) => __awaiter(this, undefined, undefined, function* () {
4401
- if (res.isErr()) {
4402
- return new Err(res.error);
4403
- }
4404
- return new Ok(yield f2(res.value));
4405
- })));
4406
- }
4407
- mapErr(f2) {
4408
- return new ResultAsync(this._promise.then((res) => __awaiter(this, undefined, undefined, function* () {
4409
- if (res.isOk()) {
4410
- return new Ok(res.value);
4411
- }
4412
- return new Err(yield f2(res.error));
4413
- })));
4414
- }
4415
- andThen(f2) {
4416
- return new ResultAsync(this._promise.then((res) => {
4417
- if (res.isErr()) {
4418
- return new Err(res.error);
4419
- }
4420
- const newValue = f2(res.value);
4421
- return newValue instanceof ResultAsync ? newValue._promise : newValue;
4422
- }));
4423
- }
4424
- orElse(f2) {
4425
- return new ResultAsync(this._promise.then((res) => __awaiter(this, undefined, undefined, function* () {
4426
- if (res.isErr()) {
4427
- return f2(res.error);
4428
- }
4429
- return new Ok(res.value);
4430
- })));
4431
- }
4432
- match(ok2, _err) {
4433
- return this._promise.then((res) => res.match(ok2, _err));
4434
- }
4435
- unwrapOr(t) {
4436
- return this._promise.then((res) => res.unwrapOr(t));
4437
- }
4438
- safeUnwrap() {
4439
- return __asyncGenerator(this, arguments, function* safeUnwrap_1() {
4440
- return yield __await(yield __await(yield* __asyncDelegator(__asyncValues(yield __await(this._promise.then((res) => res.safeUnwrap()))))));
4441
- });
4442
- }
4443
- then(successCallback, failureCallback) {
4444
- return this._promise.then(successCallback, failureCallback);
4445
- }
4446
- }
4447
- var okAsync = (value) => new ResultAsync(Promise.resolve(new Ok(value)));
4448
- var errAsync = (err2) => new ResultAsync(Promise.resolve(new Err(err2)));
4449
- var fromPromise = ResultAsync.fromPromise;
4450
- var fromSafePromise = ResultAsync.fromSafePromise;
4451
- var fromAsyncThrowable = ResultAsync.fromThrowable;
4452
- var combineResultList = (resultList) => {
4453
- let acc = ok([]);
4454
- for (const result of resultList) {
4455
- if (result.isErr()) {
4456
- acc = err(result.error);
4457
- break;
4458
- } else {
4459
- acc.map((list) => list.push(result.value));
4460
- }
4461
- }
4462
- return acc;
4463
- };
4464
- var combineResultAsyncList = (asyncResultList) => ResultAsync.fromSafePromise(Promise.all(asyncResultList)).andThen(combineResultList);
4465
- var combineResultListWithAllErrors = (resultList) => {
4466
- let acc = ok([]);
4467
- for (const result of resultList) {
4468
- if (result.isErr() && acc.isErr()) {
4469
- acc.error.push(result.error);
4470
- } else if (result.isErr() && acc.isOk()) {
4471
- acc = err([result.error]);
4472
- } else if (result.isOk() && acc.isOk()) {
4473
- acc.value.push(result.value);
4474
- }
4475
- }
4476
- return acc;
4477
- };
4478
- var combineResultAsyncListWithAllErrors = (asyncResultList) => ResultAsync.fromSafePromise(Promise.all(asyncResultList)).andThen(combineResultListWithAllErrors);
4479
- exports.Result = undefined;
4480
- (function(Result) {
4481
- function fromThrowable2(fn, errorFn) {
4482
- return (...args) => {
4483
- try {
4484
- const result = fn(...args);
4485
- return ok(result);
4486
- } catch (e) {
4487
- return err(errorFn ? errorFn(e) : e);
4488
- }
4489
- };
4490
- }
4491
- Result.fromThrowable = fromThrowable2;
4492
- function combine(resultList) {
4493
- return combineResultList(resultList);
4494
- }
4495
- Result.combine = combine;
4496
- function combineWithAllErrors(resultList) {
4497
- return combineResultListWithAllErrors(resultList);
4498
- }
4499
- Result.combineWithAllErrors = combineWithAllErrors;
4500
- })(exports.Result || (exports.Result = {}));
4501
- var ok = (value) => new Ok(value);
4502
- var err = (err2) => new Err(err2);
4503
-
4504
- class Ok {
4505
- constructor(value) {
4506
- this.value = value;
4507
- }
4508
- isOk() {
4509
- return true;
4510
- }
4511
- isErr() {
4512
- return !this.isOk();
4513
- }
4514
- map(f2) {
4515
- return ok(f2(this.value));
4516
- }
4517
- mapErr(_f) {
4518
- return ok(this.value);
4519
- }
4520
- andThen(f2) {
4521
- return f2(this.value);
4522
- }
4523
- orElse(_f) {
4524
- return ok(this.value);
4525
- }
4526
- asyncAndThen(f2) {
4527
- return f2(this.value);
4528
- }
4529
- asyncMap(f2) {
4530
- return ResultAsync.fromSafePromise(f2(this.value));
4531
- }
4532
- unwrapOr(_v) {
4533
- return this.value;
4534
- }
4535
- match(ok2, _err) {
4536
- return ok2(this.value);
4537
- }
4538
- safeUnwrap() {
4539
- const value = this.value;
4540
- return function* () {
4541
- return value;
4542
- }();
4543
- }
4544
- _unsafeUnwrap(_2) {
4545
- return this.value;
4546
- }
4547
- _unsafeUnwrapErr(config) {
4548
- throw createNeverThrowError("Called `_unsafeUnwrapErr` on an Ok", this, config);
4549
- }
4550
- }
4551
-
4552
- class Err {
4553
- constructor(error) {
4554
- this.error = error;
4555
- }
4556
- isOk() {
4557
- return false;
4558
- }
4559
- isErr() {
4560
- return !this.isOk();
4561
- }
4562
- map(_f) {
4563
- return err(this.error);
4564
- }
4565
- mapErr(f2) {
4566
- return err(f2(this.error));
4567
- }
4568
- andThen(_f) {
4569
- return err(this.error);
4570
- }
4571
- orElse(f2) {
4572
- return f2(this.error);
4573
- }
4574
- asyncAndThen(_f) {
4575
- return errAsync(this.error);
4576
- }
4577
- asyncMap(_f) {
4578
- return errAsync(this.error);
4579
- }
4580
- unwrapOr(v2) {
4581
- return v2;
4582
- }
4583
- match(_ok, err2) {
4584
- return err2(this.error);
4585
- }
4586
- safeUnwrap() {
4587
- const error = this.error;
4588
- return function* () {
4589
- yield err(error);
4590
- throw new Error("Do not use this generator out of `safeTry`");
4591
- }();
4592
- }
4593
- _unsafeUnwrap(config) {
4594
- throw createNeverThrowError("Called `_unsafeUnwrap` on an Err", this, config);
4595
- }
4596
- _unsafeUnwrapErr(_2) {
4597
- return this.error;
4598
- }
4599
- }
4600
- var fromThrowable = exports.Result.fromThrowable;
4601
- exports.Err = Err;
4602
- exports.Ok = Ok;
4603
- exports.ResultAsync = ResultAsync;
4604
- exports.err = err;
4605
- exports.errAsync = errAsync;
4606
- exports.fromAsyncThrowable = fromAsyncThrowable;
4607
- exports.fromPromise = fromPromise;
4608
- exports.fromSafePromise = fromSafePromise;
4609
- exports.fromThrowable = fromThrowable;
4610
- exports.ok = ok;
4611
- exports.okAsync = okAsync;
4612
- exports.safeTry = safeTry;
4613
- });
4614
-
4615
4197
  // src/handler.ts
4616
4198
  import * as path from "@stacksjs/path";
4617
4199
  // ../../../../node_modules/consola/dist/index.mjs
@@ -4712,34 +4294,390 @@ class ErrorHandler {
4712
4294
  console.error(err);
4713
4295
  }
4714
4296
  }
4297
+ // ../../../../node_modules/neverthrow/dist/index.cjs.js
4298
+ function __awaiter(thisArg, _arguments, P2, generator) {
4299
+ function adopt(value) {
4300
+ return value instanceof P2 ? value : new P2(function(resolve) {
4301
+ resolve(value);
4302
+ });
4303
+ }
4304
+ return new (P2 || (P2 = Promise))(function(resolve, reject) {
4305
+ function fulfilled(value) {
4306
+ try {
4307
+ step(generator.next(value));
4308
+ } catch (e) {
4309
+ reject(e);
4310
+ }
4311
+ }
4312
+ function rejected(value) {
4313
+ try {
4314
+ step(generator["throw"](value));
4315
+ } catch (e) {
4316
+ reject(e);
4317
+ }
4318
+ }
4319
+ function step(result) {
4320
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
4321
+ }
4322
+ step((generator = generator.apply(thisArg, [])).next());
4323
+ });
4324
+ }
4325
+ function __values(o) {
4326
+ var s3 = typeof Symbol === "function" && Symbol.iterator, m2 = s3 && o[s3], i = 0;
4327
+ if (m2)
4328
+ return m2.call(o);
4329
+ if (o && typeof o.length === "number")
4330
+ return {
4331
+ next: function() {
4332
+ if (o && i >= o.length)
4333
+ o = undefined;
4334
+ return { value: o && o[i++], done: !o };
4335
+ }
4336
+ };
4337
+ throw new TypeError(s3 ? "Object is not iterable." : "Symbol.iterator is not defined.");
4338
+ }
4339
+ function __await(v2) {
4340
+ return this instanceof __await ? (this.v = v2, this) : new __await(v2);
4341
+ }
4342
+ function __asyncGenerator(thisArg, _arguments, generator) {
4343
+ if (!Symbol.asyncIterator)
4344
+ throw new TypeError("Symbol.asyncIterator is not defined.");
4345
+ var g2 = generator.apply(thisArg, _arguments || []), i, q2 = [];
4346
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
4347
+ return this;
4348
+ }, i;
4349
+ function verb(n) {
4350
+ if (g2[n])
4351
+ i[n] = function(v2) {
4352
+ return new Promise(function(a, b2) {
4353
+ q2.push([n, v2, a, b2]) > 1 || resume(n, v2);
4354
+ });
4355
+ };
4356
+ }
4357
+ function resume(n, v2) {
4358
+ try {
4359
+ step(g2[n](v2));
4360
+ } catch (e) {
4361
+ settle(q2[0][3], e);
4362
+ }
4363
+ }
4364
+ function step(r2) {
4365
+ r2.value instanceof __await ? Promise.resolve(r2.value.v).then(fulfill, reject) : settle(q2[0][2], r2);
4366
+ }
4367
+ function fulfill(value) {
4368
+ resume("next", value);
4369
+ }
4370
+ function reject(value) {
4371
+ resume("throw", value);
4372
+ }
4373
+ function settle(f2, v2) {
4374
+ if (f2(v2), q2.shift(), q2.length)
4375
+ resume(q2[0][0], q2[0][1]);
4376
+ }
4377
+ }
4378
+ function __asyncDelegator(o) {
4379
+ var i, p2;
4380
+ return i = {}, verb("next"), verb("throw", function(e) {
4381
+ throw e;
4382
+ }), verb("return"), i[Symbol.iterator] = function() {
4383
+ return this;
4384
+ }, i;
4385
+ function verb(n, f2) {
4386
+ i[n] = o[n] ? function(v2) {
4387
+ return (p2 = !p2) ? { value: __await(o[n](v2)), done: n === "return" } : f2 ? f2(v2) : v2;
4388
+ } : f2;
4389
+ }
4390
+ }
4391
+ function __asyncValues(o) {
4392
+ if (!Symbol.asyncIterator)
4393
+ throw new TypeError("Symbol.asyncIterator is not defined.");
4394
+ var m2 = o[Symbol.asyncIterator], i;
4395
+ return m2 ? m2.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
4396
+ return this;
4397
+ }, i);
4398
+ function verb(n) {
4399
+ i[n] = o[n] && function(v2) {
4400
+ return new Promise(function(resolve, reject) {
4401
+ v2 = o[n](v2), settle(resolve, reject, v2.done, v2.value);
4402
+ });
4403
+ };
4404
+ }
4405
+ function settle(resolve, reject, d, v2) {
4406
+ Promise.resolve(v2).then(function(v3) {
4407
+ resolve({ value: v3, done: d });
4408
+ }, reject);
4409
+ }
4410
+ }
4411
+ var defaultErrorConfig = {
4412
+ withStackTrace: false
4413
+ };
4414
+ var createNeverThrowError = (message, result, config = defaultErrorConfig) => {
4415
+ const data = result.isOk() ? { type: "Ok", value: result.value } : { type: "Err", value: result.error };
4416
+ const maybeStack = config.withStackTrace ? new Error().stack : undefined;
4417
+ return {
4418
+ data,
4419
+ message,
4420
+ stack: maybeStack
4421
+ };
4422
+ };
4715
4423
 
4716
- // src/index.ts
4717
- var import_neverthrow = __toESM(require_index_cjs(), 1);
4718
- var export_okAsync = import_neverthrow.okAsync;
4719
- var export_ok = import_neverthrow.ok;
4720
- var export_fromThrowable = import_neverthrow.fromThrowable;
4721
- var export_fromSafePromise = import_neverthrow.fromSafePromise;
4722
- var export_fromPromise = import_neverthrow.fromPromise;
4723
- var export_errAsync = import_neverthrow.errAsync;
4724
- var export_err = import_neverthrow.err;
4725
- var export_ResultAsync = import_neverthrow.ResultAsync;
4726
- var export_Result = import_neverthrow.Result;
4727
- var export_Ok = import_neverthrow.Ok;
4728
- var export_Err = import_neverthrow.Err;
4424
+ class ResultAsync {
4425
+ constructor(res) {
4426
+ this._promise = res;
4427
+ }
4428
+ static fromSafePromise(promise2) {
4429
+ const newPromise = promise2.then((value) => new Ok(value));
4430
+ return new ResultAsync(newPromise);
4431
+ }
4432
+ static fromPromise(promise2, errorFn) {
4433
+ const newPromise = promise2.then((value) => new Ok(value)).catch((e) => new Err(errorFn(e)));
4434
+ return new ResultAsync(newPromise);
4435
+ }
4436
+ static fromThrowable(fn, errorFn) {
4437
+ return (...args) => {
4438
+ return new ResultAsync((() => __awaiter(this, undefined, undefined, function* () {
4439
+ try {
4440
+ return new Ok(yield fn(...args));
4441
+ } catch (error) {
4442
+ return new Err(errorFn ? errorFn(error) : error);
4443
+ }
4444
+ }))());
4445
+ };
4446
+ }
4447
+ static combine(asyncResultList) {
4448
+ return combineResultAsyncList(asyncResultList);
4449
+ }
4450
+ static combineWithAllErrors(asyncResultList) {
4451
+ return combineResultAsyncListWithAllErrors(asyncResultList);
4452
+ }
4453
+ map(f2) {
4454
+ return new ResultAsync(this._promise.then((res) => __awaiter(this, undefined, undefined, function* () {
4455
+ if (res.isErr()) {
4456
+ return new Err(res.error);
4457
+ }
4458
+ return new Ok(yield f2(res.value));
4459
+ })));
4460
+ }
4461
+ mapErr(f2) {
4462
+ return new ResultAsync(this._promise.then((res) => __awaiter(this, undefined, undefined, function* () {
4463
+ if (res.isOk()) {
4464
+ return new Ok(res.value);
4465
+ }
4466
+ return new Err(yield f2(res.error));
4467
+ })));
4468
+ }
4469
+ andThen(f2) {
4470
+ return new ResultAsync(this._promise.then((res) => {
4471
+ if (res.isErr()) {
4472
+ return new Err(res.error);
4473
+ }
4474
+ const newValue = f2(res.value);
4475
+ return newValue instanceof ResultAsync ? newValue._promise : newValue;
4476
+ }));
4477
+ }
4478
+ orElse(f2) {
4479
+ return new ResultAsync(this._promise.then((res) => __awaiter(this, undefined, undefined, function* () {
4480
+ if (res.isErr()) {
4481
+ return f2(res.error);
4482
+ }
4483
+ return new Ok(res.value);
4484
+ })));
4485
+ }
4486
+ match(ok, _err) {
4487
+ return this._promise.then((res) => res.match(ok, _err));
4488
+ }
4489
+ unwrapOr(t) {
4490
+ return this._promise.then((res) => res.unwrapOr(t));
4491
+ }
4492
+ safeUnwrap() {
4493
+ return __asyncGenerator(this, arguments, function* safeUnwrap_1() {
4494
+ return yield __await(yield __await(yield* __asyncDelegator(__asyncValues(yield __await(this._promise.then((res) => res.safeUnwrap()))))));
4495
+ });
4496
+ }
4497
+ then(successCallback, failureCallback) {
4498
+ return this._promise.then(successCallback, failureCallback);
4499
+ }
4500
+ }
4501
+ var okAsync = (value) => new ResultAsync(Promise.resolve(new Ok(value)));
4502
+ var errAsync = (err) => new ResultAsync(Promise.resolve(new Err(err)));
4503
+ var fromPromise = ResultAsync.fromPromise;
4504
+ var fromSafePromise = ResultAsync.fromSafePromise;
4505
+ var fromAsyncThrowable = ResultAsync.fromThrowable;
4506
+ var combineResultList = (resultList) => {
4507
+ let acc = ok([]);
4508
+ for (const result of resultList) {
4509
+ if (result.isErr()) {
4510
+ acc = err(result.error);
4511
+ break;
4512
+ } else {
4513
+ acc.map((list) => list.push(result.value));
4514
+ }
4515
+ }
4516
+ return acc;
4517
+ };
4518
+ var combineResultAsyncList = (asyncResultList) => ResultAsync.fromSafePromise(Promise.all(asyncResultList)).andThen(combineResultList);
4519
+ var combineResultListWithAllErrors = (resultList) => {
4520
+ let acc = ok([]);
4521
+ for (const result of resultList) {
4522
+ if (result.isErr() && acc.isErr()) {
4523
+ acc.error.push(result.error);
4524
+ } else if (result.isErr() && acc.isOk()) {
4525
+ acc = err([result.error]);
4526
+ } else if (result.isOk() && acc.isOk()) {
4527
+ acc.value.push(result.value);
4528
+ }
4529
+ }
4530
+ return acc;
4531
+ };
4532
+ var combineResultAsyncListWithAllErrors = (asyncResultList) => ResultAsync.fromSafePromise(Promise.all(asyncResultList)).andThen(combineResultListWithAllErrors);
4533
+ var $Result = undefined;
4534
+ (function(Result) {
4535
+ function fromThrowable(fn, errorFn) {
4536
+ return (...args) => {
4537
+ try {
4538
+ const result = fn(...args);
4539
+ return ok(result);
4540
+ } catch (e) {
4541
+ return err(errorFn ? errorFn(e) : e);
4542
+ }
4543
+ };
4544
+ }
4545
+ Result.fromThrowable = fromThrowable;
4546
+ function combine(resultList) {
4547
+ return combineResultList(resultList);
4548
+ }
4549
+ Result.combine = combine;
4550
+ function combineWithAllErrors(resultList) {
4551
+ return combineResultListWithAllErrors(resultList);
4552
+ }
4553
+ Result.combineWithAllErrors = combineWithAllErrors;
4554
+ })($Result || ($Result = {}));
4555
+ var ok = (value) => new Ok(value);
4556
+ var err = (err2) => new Err(err2);
4557
+
4558
+ class Ok {
4559
+ constructor(value) {
4560
+ this.value = value;
4561
+ }
4562
+ isOk() {
4563
+ return true;
4564
+ }
4565
+ isErr() {
4566
+ return !this.isOk();
4567
+ }
4568
+ map(f2) {
4569
+ return ok(f2(this.value));
4570
+ }
4571
+ mapErr(_f) {
4572
+ return ok(this.value);
4573
+ }
4574
+ andThen(f2) {
4575
+ return f2(this.value);
4576
+ }
4577
+ orElse(_f) {
4578
+ return ok(this.value);
4579
+ }
4580
+ asyncAndThen(f2) {
4581
+ return f2(this.value);
4582
+ }
4583
+ asyncMap(f2) {
4584
+ return ResultAsync.fromSafePromise(f2(this.value));
4585
+ }
4586
+ unwrapOr(_v) {
4587
+ return this.value;
4588
+ }
4589
+ match(ok2, _err) {
4590
+ return ok2(this.value);
4591
+ }
4592
+ safeUnwrap() {
4593
+ const value = this.value;
4594
+ return function* () {
4595
+ return value;
4596
+ }();
4597
+ }
4598
+ _unsafeUnwrap(_2) {
4599
+ return this.value;
4600
+ }
4601
+ _unsafeUnwrapErr(config) {
4602
+ throw createNeverThrowError("Called `_unsafeUnwrapErr` on an Ok", this, config);
4603
+ }
4604
+ }
4729
4605
 
4606
+ class Err {
4607
+ constructor(error) {
4608
+ this.error = error;
4609
+ }
4610
+ isOk() {
4611
+ return false;
4612
+ }
4613
+ isErr() {
4614
+ return !this.isOk();
4615
+ }
4616
+ map(_f) {
4617
+ return err(this.error);
4618
+ }
4619
+ mapErr(f2) {
4620
+ return err(f2(this.error));
4621
+ }
4622
+ andThen(_f) {
4623
+ return err(this.error);
4624
+ }
4625
+ orElse(f2) {
4626
+ return f2(this.error);
4627
+ }
4628
+ asyncAndThen(_f) {
4629
+ return errAsync(this.error);
4630
+ }
4631
+ asyncMap(_f) {
4632
+ return errAsync(this.error);
4633
+ }
4634
+ unwrapOr(v2) {
4635
+ return v2;
4636
+ }
4637
+ match(_ok, err2) {
4638
+ return err2(this.error);
4639
+ }
4640
+ safeUnwrap() {
4641
+ const error = this.error;
4642
+ return function* () {
4643
+ yield err(error);
4644
+ throw new Error("Do not use this generator out of `safeTry`");
4645
+ }();
4646
+ }
4647
+ _unsafeUnwrap(config) {
4648
+ throw createNeverThrowError("Called `_unsafeUnwrap` on an Err", this, config);
4649
+ }
4650
+ _unsafeUnwrapErr(_2) {
4651
+ return this.error;
4652
+ }
4653
+ }
4654
+ var fromThrowable = $Result.fromThrowable;
4655
+ var $Err = Err;
4656
+ var $Ok = Ok;
4657
+ var $ResultAsync = ResultAsync;
4658
+ var $err = err;
4659
+ var $errAsync = errAsync;
4660
+ var $fromPromise = fromPromise;
4661
+ var $fromSafePromise = fromSafePromise;
4662
+ var $fromThrowable = fromThrowable;
4663
+ var $ok = ok;
4664
+ var $okAsync = okAsync;
4730
4665
  export {
4731
- export_okAsync as okAsync,
4732
- export_ok as ok,
4666
+ $okAsync as okAsync,
4667
+ $ok as ok,
4733
4668
  handleError,
4734
- export_fromThrowable as fromThrowable,
4735
- export_fromSafePromise as fromSafePromise,
4736
- export_fromPromise as fromPromise,
4737
- export_errAsync as errAsync,
4738
- export_err as err,
4669
+ $fromThrowable as fromThrowable,
4670
+ $fromSafePromise as fromSafePromise,
4671
+ $fromPromise as fromPromise,
4672
+ $errAsync as errAsync,
4673
+ $err as err,
4739
4674
  StacksError,
4740
- export_ResultAsync as ResultAsync,
4741
- export_Result as Result,
4742
- export_Ok as Ok,
4675
+ $ResultAsync as ResultAsync,
4676
+ $Result as Result,
4677
+ $Ok as Ok,
4743
4678
  ErrorHandler,
4744
- export_Err as Err
4679
+ $Err as Err
4745
4680
  };
4681
+
4682
+ //# debugId=D7F00F8B95217C7764756E2164756E21
4683
+ //# sourceMappingURL=index.js.map