@stacksjs/error-handling 0.61.24 → 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 = [],
@@ -685,16 +684,99 @@ var init_utils = __esm(() => {
685
684
  // ../../../../node_modules/consola/dist/chunks/prompt.mjs
686
685
  var exports_prompt = {};
687
686
  __export(exports_prompt, {
688
- prompt: () => {
689
- {
690
- return prompt;
691
- }
692
- }
687
+ prompt: () => prompt
693
688
  });
694
689
  import {stdin, stdout} from "node:process";
695
690
  import f from "node:readline";
696
691
  import {WriteStream} from "node:tty";
697
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
+ }
698
780
  async function prompt(message, opts = {}) {
699
781
  if (!opts.type || opts.type === "text") {
700
782
  return await text({
@@ -808,195 +890,311 @@ class h {
808
890
  }
809
891
  }
810
892
  }
811
-
812
- class sD extends h {
813
- get cursor() {
814
- return this.value ? 0 : 1;
815
- }
816
- get _value() {
817
- return this.cursor === 0;
818
- }
819
- constructor(u) {
820
- super(u, false), this.value = !!u.initialValue, this.on("value", () => {
821
- this.value = this._value;
822
- }), this.on("confirm", (F) => {
823
- this.output.write(src.cursor.move(0, -1)), this.value = F, this.state = "submit", this.close();
824
- }), this.on("cursor", () => {
825
- this.value = !this.value;
826
- });
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);
827
941
  }
828
- }
829
-
830
- class iD extends h {
831
- constructor(u) {
832
- 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) => {
833
- F === "a" && this.toggleAll();
834
- }), this.on("cursor", (F) => {
835
- switch (F) {
836
- case "left":
837
- case "up":
838
- this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
839
- break;
840
- case "down":
841
- case "right":
842
- this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
843
- break;
844
- case "space":
845
- this.toggleValue();
846
- 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;
847
967
  }
848
- });
849
- }
850
- get _value() {
851
- 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;
852
975
  }
853
- toggleAll() {
854
- const u = this.value.length === this.options.length;
855
- 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)));
856
992
  }
857
- toggleValue() {
858
- const u = this.value.includes(this._value);
859
- 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
+ }
860
1009
  }
861
- }
862
-
863
- class ED extends h {
864
- constructor(u) {
865
- 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) => {
866
- switch (F) {
867
- case "left":
868
- case "up":
869
- this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
870
- break;
871
- case "down":
872
- case "right":
873
- this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
874
- 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
+ }
875
1040
  }
876
- this.changeValue();
877
- });
878
- }
879
- get _value() {
880
- return this.options[this.cursor];
881
- }
882
- changeValue() {
883
- this.value = this._value.value;
884
- }
885
- }
886
-
887
- class oD extends h {
888
- constructor(u) {
889
- super(u), this.valueWithCursor = "", this.on("finalize", () => {
890
- this.value || (this.value = u.defaultValue), this.valueWithCursor = this.value;
891
- }), this.on("value", () => {
892
- if (this.cursor >= this.value.length)
893
- this.valueWithCursor = `${this.value}${l.inverse(l.hidden("_"))}`;
894
- else {
895
- const F = this.value.slice(0, this.cursor), e = this.value.slice(this.cursor);
896
- 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
+ }
897
1068
  }
898
- });
899
- }
900
- get cursor() {
901
- return this._cursor;
902
- }
903
- }
904
- 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;
905
- var init_prompt = __esm(() => {
906
- init_consola_36c0034f();
907
- init_utils();
908
- init_core();
909
- init_consola_06ad8a64();
910
- z = function({ onlyFirst: t = false } = {}) {
911
- 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("|");
912
- return new RegExp(u, t ? undefined : "g");
913
- };
914
- $ = function(t) {
915
- if (typeof t != "string")
916
- throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);
917
- return t.replace(z(), "");
918
- };
919
- c = function(t, u = {}) {
920
- if (typeof t != "string" || t.length === 0 || (u = { ambiguousIsNarrow: true, ...u }, t = $(t), t.length === 0))
921
- return 0;
922
- t = t.replace(Y(), " ");
923
- const F = u.ambiguousIsNarrow ? 1 : 2;
924
- let e = 0;
925
- for (const s of t) {
926
- const C = s.codePointAt(0);
927
- if (C <= 31 || C >= 127 && C <= 159 || C >= 768 && C <= 879)
928
- continue;
929
- switch (K.eastAsianWidth(s)) {
930
- case "F":
931
- case "W":
932
- e += 2;
933
- break;
934
- case "A":
935
- e += F;
936
- break;
937
- default:
938
- 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))}`;
939
1083
  }
940
1084
  }
941
- return e;
1085
+ return `${colors.dim(S_RADIO_INACTIVE)} ${colors.dim(label)}`;
942
1086
  };
943
- U = function() {
944
- const t = new Map;
945
- for (const [u, F] of Object.entries(r)) {
946
- for (const [e, s] of Object.entries(F))
947
- r[e] = { open: `\x1B[${s[0]}m`, close: `\x1B[${s[1]}m` }, F[e] = r[e], t.set(s[0], s[1]);
948
- Object.defineProperty(r, u, { value: F, enumerable: false });
949
- }
950
- 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) => {
951
- const F = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));
952
- if (!F)
953
- return [0, 0, 0];
954
- let [e] = F;
955
- e.length === 3 && (e = [...e].map((C) => C + C).join(""));
956
- const s = Number.parseInt(e, 16);
957
- return [s >> 16 & 255, s >> 8 & 255, s & 255];
958
- }, enumerable: false }, hexToAnsi256: { value: (u) => r.rgbToAnsi256(...r.hexToRgb(u)), enumerable: false }, ansi256ToAnsi: { value: (u) => {
959
- if (u < 8)
960
- return 30 + u;
961
- if (u < 16)
962
- return 90 + (u - 8);
963
- let F, e, s;
964
- if (u >= 232)
965
- F = ((u - 232) * 10 + 8) / 255, e = F, s = F;
966
- else {
967
- u -= 16;
968
- const i = u % 36;
969
- 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
+ }
970
1108
  }
971
- const C = Math.max(F, e, s) * 2;
972
- if (C === 0)
973
- return 30;
974
- let D = 30 + (Math.round(s) << 2 | Math.round(e) << 1 | Math.round(F));
975
- return C === 2 && (D += 60), D;
976
- }, 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;
977
- };
978
- P = function(t, u, F) {
979
- return String(t).normalize().replace(/\r\n/g, `
980
- `).split(`
981
- `).map((e) => uD(e, u, F)).join(`
982
- `);
983
- };
984
- FD = function(t, u) {
985
- if (t === u)
986
- return;
987
- const F = t.split(`
988
- `), e = u.split(`
989
- `), s = [];
990
- for (let C = 0;C < Math.max(F.length, e.length); C++)
991
- F[C] !== e[C] && s.push(C);
992
- return s;
993
- };
994
- g = function(t, u) {
995
- 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)}`;
996
1132
  };
997
- 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();
998
1197
  CSI = `${ESC}[`;
999
- beep = "\x07";
1000
1198
  cursor = {
1001
1199
  to(x, y) {
1002
1200
  if (!y)
@@ -1051,49 +1249,10 @@ var init_prompt = __esm(() => {
1051
1249
  picocolors = { exports: {} };
1052
1250
  tty2 = require$$0;
1053
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));
1054
- formatter = (open, close, replace = open) => (input) => {
1055
- let string = "" + input;
1056
- let index = string.indexOf(close, open.length);
1057
- return ~index ? open + replaceClose2(string, close, replace, index) + close : open + string + close;
1058
- };
1059
- replaceClose2 = (string, close, replace, index) => {
1060
- let start = string.substring(0, index) + replace;
1061
- let end = string.substring(index + close.length);
1062
- let nextIndex = end.indexOf(close);
1063
- return ~nextIndex ? start + replaceClose2(end, close, replace, nextIndex) : start + end;
1064
- };
1065
- createColors2 = (enabled = isColorSupported2) => ({
1066
- isColorSupported: enabled,
1067
- reset: enabled ? (s) => `\x1B[0m${s}\x1B[0m` : String,
1068
- bold: enabled ? formatter("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m") : String,
1069
- dim: enabled ? formatter("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m") : String,
1070
- italic: enabled ? formatter("\x1B[3m", "\x1B[23m") : String,
1071
- underline: enabled ? formatter("\x1B[4m", "\x1B[24m") : String,
1072
- inverse: enabled ? formatter("\x1B[7m", "\x1B[27m") : String,
1073
- hidden: enabled ? formatter("\x1B[8m", "\x1B[28m") : String,
1074
- strikethrough: enabled ? formatter("\x1B[9m", "\x1B[29m") : String,
1075
- black: enabled ? formatter("\x1B[30m", "\x1B[39m") : String,
1076
- red: enabled ? formatter("\x1B[31m", "\x1B[39m") : String,
1077
- green: enabled ? formatter("\x1B[32m", "\x1B[39m") : String,
1078
- yellow: enabled ? formatter("\x1B[33m", "\x1B[39m") : String,
1079
- blue: enabled ? formatter("\x1B[34m", "\x1B[39m") : String,
1080
- magenta: enabled ? formatter("\x1B[35m", "\x1B[39m") : String,
1081
- cyan: enabled ? formatter("\x1B[36m", "\x1B[39m") : String,
1082
- white: enabled ? formatter("\x1B[37m", "\x1B[39m") : String,
1083
- gray: enabled ? formatter("\x1B[90m", "\x1B[39m") : String,
1084
- bgBlack: enabled ? formatter("\x1B[40m", "\x1B[49m") : String,
1085
- bgRed: enabled ? formatter("\x1B[41m", "\x1B[49m") : String,
1086
- bgGreen: enabled ? formatter("\x1B[42m", "\x1B[49m") : String,
1087
- bgYellow: enabled ? formatter("\x1B[43m", "\x1B[49m") : String,
1088
- bgBlue: enabled ? formatter("\x1B[44m", "\x1B[49m") : String,
1089
- bgMagenta: enabled ? formatter("\x1B[45m", "\x1B[49m") : String,
1090
- bgCyan: enabled ? formatter("\x1B[46m", "\x1B[49m") : String,
1091
- bgWhite: enabled ? formatter("\x1B[47m", "\x1B[49m") : String
1092
- });
1093
1252
  picocolors.exports = createColors2();
1094
1253
  picocolors.exports.createColors = createColors2;
1095
1254
  picocolorsExports = picocolors.exports;
1096
- l = getDefaultExportFromCjs(picocolorsExports);
1255
+ l = /* @__PURE__ */ getDefaultExportFromCjs(picocolorsExports);
1097
1256
  m = {};
1098
1257
  G = { get exports() {
1099
1258
  return m;
@@ -1131,13 +1290,6 @@ var init_prompt = __esm(() => {
1131
1290
  };
1132
1291
  })(G);
1133
1292
  K = m;
1134
- Y = function() {
1135
- 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;
1136
- };
1137
- v = 10;
1138
- L = (t = 0) => (u) => `\x1B[${u + t}m`;
1139
- M = (t = 0) => (u) => `\x1B[${38 + t};5;${u}m`;
1140
- T = (t = 0) => (u, F, e) => `\x1B[${38 + t};2;${u};${F};${e}m`;
1141
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] } };
1142
1294
  Object.keys(r.modifier);
1143
1295
  Z = Object.keys(r.color);
@@ -1145,482 +1297,255 @@ var init_prompt = __esm(() => {
1145
1297
  [...Z];
1146
1298
  q = U();
1147
1299
  p = new Set(["\x1B", "\x9B"]);
1148
- J = 39;
1149
- b = "\x07";
1150
- W = "[";
1151
- Q = "]";
1152
- I = "m";
1153
1300
  w = `${Q}8;;`;
1154
- N = (t) => `${p.values().next().value}${W}${t}${I}`;
1155
- j = (t) => `${p.values().next().value}${w}${t}${b}`;
1156
- X = (t) => t.split(" ").map((u) => c(u));
1157
- _ = (t, u, F) => {
1158
- const e = [...u];
1159
- let s = false, C = false, D = c($(t[t.length - 1]));
1160
- for (const [i, o] of e.entries()) {
1161
- const E = c(o);
1162
- 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) {
1163
- C ? o === b && (s = false, C = false) : o === I && (s = false);
1164
- continue;
1165
- }
1166
- 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
+ });
1167
1319
  }
1168
- !D && t[t.length - 1].length > 0 && t.length > 1 && (t[t.length - 2] += t.pop());
1169
1320
  };
1170
- DD = (t) => {
1171
- const u = t.split(" ");
1172
- let F = u.length;
1173
- for (;F > 0 && !(c(u[F - 1]) > 0); )
1174
- F--;
1175
- return F === u.length ? t : u.slice(0, F).join(" ") + u.slice(F).join("");
1176
- };
1177
- uD = (t, u, F = {}) => {
1178
- if (F.trim !== false && t.trim() === "")
1179
- return "";
1180
- let e = "", s, C;
1181
- const D = X(t);
1182
- let i = [""];
1183
- for (const [E, a] of t.split(" ").entries()) {
1184
- F.trim !== false && (i[i.length - 1] = i[i.length - 1].trimStart());
1185
- let n = c(i[i.length - 1]);
1186
- 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) {
1187
- const B = u - n, A = 1 + Math.floor((D[E] - B - 1) / u);
1188
- Math.floor((D[E] - 1) / u) < A && i.push(""), _(i, a, u);
1189
- continue;
1190
- }
1191
- if (n + D[E] > u && n > 0 && D[E] > 0) {
1192
- if (F.wordWrap === false && n < u) {
1193
- _(i, a, u);
1194
- 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;
1195
1338
  }
1196
- i.push("");
1197
- }
1198
- if (n + D[E] > u && F.wordWrap === false) {
1199
- _(i, a, u);
1200
- continue;
1201
- }
1202
- i[i.length - 1] += a;
1339
+ });
1203
1340
  }
1204
- F.trim !== false && (i = i.map((E) => DD(E)));
1205
- const o = [...i.join(`
1206
- `)];
1207
- for (const [E, a] of o.entries()) {
1208
- if (e += a, p.has(a)) {
1209
- const { groups: B } = new RegExp(`(?:\\${W}(?<code>\\d+)m|\\${w}(?<uri>.*)${b})`).exec(o.slice(E).join("")) || { groups: {} };
1210
- if (B.code !== undefined) {
1211
- const A = Number.parseFloat(B.code);
1212
- s = A === J ? undefined : A;
1213
- } else
1214
- B.uri !== undefined && (C = B.uri.length === 0 ? undefined : B.uri);
1215
- }
1216
- const n = q.codes.get(Number(s));
1217
- o[E + 1] === `
1218
- ` ? (C && (e += j("")), s && n && (e += N(n))) : a === `
1219
- ` && (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];
1351
+ }
1352
+ };
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;
1220
1391
  }
1221
- return e;
1222
1392
  };
1223
- R = Symbol("clack:cancel");
1224
- V = new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"]]);
1225
- tD = new Set(["up", "down", "left", "right", "space", "enter"]);
1226
1393
  unicode = isUnicodeSupported();
1227
- s = (c2, fallback) => unicode ? c2 : fallback;
1228
1394
  S_STEP_ACTIVE = s("\u276F", ">");
1229
1395
  S_STEP_CANCEL = s("\u25A0", "x");
1230
1396
  S_STEP_ERROR = s("\u25B2", "x");
1231
1397
  S_STEP_SUBMIT = s("\u2714", "\u221A");
1232
- S_BAR = "";
1233
- S_BAR_END = "";
1234
1398
  S_RADIO_ACTIVE = s("\u25CF", ">");
1235
1399
  S_RADIO_INACTIVE = s("\u25CB", " ");
1236
1400
  S_CHECKBOX_ACTIVE = s("\u25FB", "[\u2022]");
1237
1401
  S_CHECKBOX_SELECTED = s("\u25FC", "[+]");
1238
1402
  S_CHECKBOX_INACTIVE = s("\u25FB", "[ ]");
1239
- symbol = (state) => {
1240
- switch (state) {
1241
- case "initial":
1242
- case "active": {
1243
- return colors.cyan(S_STEP_ACTIVE);
1244
- }
1245
- case "cancel": {
1246
- return colors.red(S_STEP_CANCEL);
1247
- }
1248
- case "error": {
1249
- return colors.yellow(S_STEP_ERROR);
1250
- }
1251
- case "submit": {
1252
- return colors.green(S_STEP_SUBMIT);
1253
- }
1254
- }
1255
- };
1256
- text = (opts) => {
1257
- return new oD({
1258
- validate: opts.validate,
1259
- placeholder: opts.placeholder,
1260
- defaultValue: opts.defaultValue,
1261
- initialValue: opts.initialValue,
1262
- render() {
1263
- const title = `${colors.gray(S_BAR)}
1264
- ${symbol(this.state)} ${opts.message}
1265
- `;
1266
- const placeholder = opts.placeholder ? colors.inverse(opts.placeholder[0]) + colors.dim(opts.placeholder.slice(1)) : colors.inverse(colors.hidden("_"));
1267
- const value = this.value ? this.valueWithCursor : placeholder;
1268
- switch (this.state) {
1269
- case "error": {
1270
- return `${title.trim()}
1271
- ${colors.yellow(S_BAR)} ${value}
1272
- ${colors.yellow(S_BAR_END)} ${colors.yellow(this.error)}
1273
- `;
1274
- }
1275
- case "submit": {
1276
- return `${title}${colors.gray(S_BAR)} ${colors.dim(this.value || opts.placeholder)}`;
1277
- }
1278
- case "cancel": {
1279
- return `${title}${colors.gray(S_BAR)} ${colors.strikethrough(colors.dim(this.value ?? ""))}${this.value?.trim() ? "\n" + colors.gray(S_BAR) : ""}`;
1280
- }
1281
- default: {
1282
- return `${title}${colors.cyan(S_BAR)} ${value}
1283
- ${colors.cyan(S_BAR_END)}
1284
- `;
1285
- }
1286
- }
1287
- }
1288
- }).prompt();
1289
- };
1290
- confirm = (opts) => {
1291
- const active = opts.active ?? "Yes";
1292
- const inactive = opts.inactive ?? "No";
1293
- return new sD({
1294
- active,
1295
- inactive,
1296
- initialValue: opts.initialValue ?? true,
1297
- render() {
1298
- const title = `${colors.gray(S_BAR)}
1299
- ${symbol(this.state)} ${opts.message}
1300
- `;
1301
- const value = this.value ? active : inactive;
1302
- switch (this.state) {
1303
- case "submit": {
1304
- return `${title}${colors.gray(S_BAR)} ${colors.dim(value)}`;
1305
- }
1306
- case "cancel": {
1307
- return `${title}${colors.gray(S_BAR)} ${colors.strikethrough(colors.dim(value))}
1308
- ${colors.gray(S_BAR)}`;
1309
- }
1310
- default: {
1311
- 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}`}
1312
- ${colors.cyan(S_BAR_END)}
1313
- `;
1314
- }
1315
- }
1316
- }
1317
- }).prompt();
1318
- };
1319
- select = (opts) => {
1320
- const opt = (option, state) => {
1321
- const label = option.label ?? String(option.value);
1322
- switch (state) {
1323
- case "active": {
1324
- return `${colors.green(S_RADIO_ACTIVE)} ${label} ${option.hint ? colors.dim(`(${option.hint})`) : ""}`;
1325
- }
1326
- case "selected": {
1327
- return `${colors.dim(label)}`;
1328
- }
1329
- case "cancelled": {
1330
- return `${colors.strikethrough(colors.dim(label))}`;
1331
- }
1332
- }
1333
- return `${colors.dim(S_RADIO_INACTIVE)} ${colors.dim(label)}`;
1334
- };
1335
- return new ED({
1336
- options: opts.options,
1337
- initialValue: opts.initialValue,
1338
- render() {
1339
- const title = `${colors.gray(S_BAR)}
1340
- ${symbol(this.state)} ${opts.message}
1341
- `;
1342
- switch (this.state) {
1343
- case "submit": {
1344
- return `${title}${colors.gray(S_BAR)} ${opt(this.options[this.cursor], "selected")}`;
1345
- }
1346
- case "cancel": {
1347
- return `${title}${colors.gray(S_BAR)} ${opt(this.options[this.cursor], "cancelled")}
1348
- ${colors.gray(S_BAR)}`;
1349
- }
1350
- default: {
1351
- return `${title}${colors.cyan(S_BAR)} ${this.options.map((option, i) => opt(option, i === this.cursor ? "active" : "inactive")).join(`
1352
- ${colors.cyan(S_BAR)} `)}
1353
- ${colors.cyan(S_BAR_END)}
1354
- `;
1355
- }
1356
- }
1357
- }
1358
- }).prompt();
1359
- };
1360
- multiselect = (opts) => {
1361
- const opt = (option, state) => {
1362
- const label = option.label ?? String(option.value);
1363
- switch (state) {
1364
- case "active": {
1365
- return `${colors.cyan(S_CHECKBOX_ACTIVE)} ${label} ${option.hint ? colors.dim(`(${option.hint})`) : ""}`;
1366
- }
1367
- case "selected": {
1368
- return `${colors.green(S_CHECKBOX_SELECTED)} ${colors.dim(label)}`;
1369
- }
1370
- case "cancelled": {
1371
- return `${colors.strikethrough(colors.dim(label))}`;
1372
- }
1373
- case "active-selected": {
1374
- return `${colors.green(S_CHECKBOX_SELECTED)} ${label} ${option.hint ? colors.dim(`(${option.hint})`) : ""}`;
1375
- }
1376
- case "submitted": {
1377
- return `${colors.dim(label)}`;
1378
- }
1379
- }
1380
- return `${colors.dim(S_CHECKBOX_INACTIVE)} ${colors.dim(label)}`;
1381
- };
1382
- return new iD({
1383
- options: opts.options,
1384
- initialValues: opts.initialValues,
1385
- required: opts.required ?? true,
1386
- cursorAt: opts.cursorAt,
1387
- validate(selected) {
1388
- if (this.required && selected.length === 0) {
1389
- return `Please select at least one option.
1390
- ${colors.reset(colors.dim(`Press ${colors.gray(colors.bgWhite(colors.inverse(" space ")))} to select, ${colors.gray(colors.bgWhite(colors.inverse(" enter ")))} to submit`))}`;
1391
- }
1392
- },
1393
- render() {
1394
- const title = `${colors.gray(S_BAR)}
1395
- ${symbol(this.state)} ${opts.message}
1396
- `;
1397
- switch (this.state) {
1398
- case "submit": {
1399
- 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")}`;
1400
- }
1401
- case "cancel": {
1402
- const label = this.options.filter(({ value }) => this.value.includes(value)).map((option) => opt(option, "cancelled")).join(colors.dim(", "));
1403
- return `${title}${colors.gray(S_BAR)} ${label.trim() ? `${label}
1404
- ${colors.gray(S_BAR)}` : ""}`;
1405
- }
1406
- case "error": {
1407
- const footer = this.error.split("\n").map((ln, i) => i === 0 ? `${colors.yellow(S_BAR_END)} ${colors.yellow(ln)}` : ` ${ln}`).join("\n");
1408
- return title + colors.yellow(S_BAR) + " " + this.options.map((option, i) => {
1409
- const selected = this.value.includes(option.value);
1410
- const active = i === this.cursor;
1411
- if (active && selected) {
1412
- return opt(option, "active-selected");
1413
- }
1414
- if (selected) {
1415
- return opt(option, "selected");
1416
- }
1417
- return opt(option, active ? "active" : "inactive");
1418
- }).join(`
1419
- ${colors.yellow(S_BAR)} `) + "\n" + footer + "\n";
1420
- }
1421
- default: {
1422
- return `${title}${colors.cyan(S_BAR)} ${this.options.map((option, i) => {
1423
- const selected = this.value.includes(option.value);
1424
- const active = i === this.cursor;
1425
- if (active && selected) {
1426
- return opt(option, "active-selected");
1427
- }
1428
- if (selected) {
1429
- return opt(option, "selected");
1430
- }
1431
- return opt(option, active ? "active" : "inactive");
1432
- }).join(`
1433
- ${colors.cyan(S_BAR)} `)}
1434
- ${colors.cyan(S_BAR_END)}
1435
- `;
1436
- }
1437
- }
1438
- }
1439
- }).prompt();
1440
- };
1441
1403
  });
1442
1404
 
1443
1405
  // ../../../../node_modules/consola/dist/shared/consola.36c0034f.mjs
1444
1406
  import process$1 from "node:process";
1445
-
1446
- class FancyReporter extends BasicReporter {
1447
- formatStack(stack) {
1448
- return "\n" + parseStack(stack).map((line) => " " + line.replace(/^at +/, (m2) => colors.gray(m2)).replace(/\((.+)\)/, (_2, m2) => `(${colors.cyan(m2)})`)).join("\n");
1449
- }
1450
- formatType(logObj, isBadge, opts) {
1451
- const typeColor = TYPE_COLOR_MAP[logObj.type] || LEVEL_COLOR_MAP[logObj.level] || "gray";
1452
- if (isBadge) {
1453
- return getBgColor(typeColor)(colors.black(` ${logObj.type.toUpperCase()} `));
1454
- }
1455
- const _type = typeof TYPE_ICONS[logObj.type] === "string" ? TYPE_ICONS[logObj.type] : logObj.icon || logObj.type;
1456
- return _type ? getColor2(typeColor)(_type) : "";
1457
- }
1458
- formatLogObj(logObj, opts) {
1459
- const [message, ...additional] = this.formatArgs(logObj.args, opts).split("\n");
1460
- if (logObj.type === "box") {
1461
- return box(characterFormat(message + (additional.length > 0 ? "\n" + additional.join("\n") : "")), {
1462
- title: logObj.title ? characterFormat(logObj.title) : undefined,
1463
- style: logObj.style
1464
- });
1465
- }
1466
- const date = this.formatDate(logObj.date, opts);
1467
- const coloredDate = date && colors.gray(date);
1468
- const isBadge = logObj.badge ?? logObj.level < 2;
1469
- const type = this.formatType(logObj, isBadge, opts);
1470
- const tag = logObj.tag ? colors.gray(logObj.tag) : "";
1471
- let line;
1472
- const left = this.filterAndJoin([type, characterFormat(message)]);
1473
- const right = this.filterAndJoin(opts.columns ? [tag, coloredDate] : [tag]);
1474
- const space = (opts.columns || 0) - stringWidth(left) - stringWidth(right) - 2;
1475
- line = space > 0 && (opts.columns || 0) >= 80 ? left + " ".repeat(space) + right : (right ? `${colors.gray(`[${right}]`)} ` : "") + left;
1476
- line += characterFormat(additional.length > 0 ? "\n" + additional.join("\n") : "");
1477
- if (logObj.type === "trace") {
1478
- const _err = new Error("Trace: " + logObj.message);
1479
- line += this.formatStack(_err.stack || "");
1480
- }
1481
- return isBadge ? "\n" + line + "\n" : line;
1482
- }
1483
- }
1484
- 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;
1485
- var init_consola_36c0034f = __esm(() => {
1486
- init_core();
1487
- init_consola_06ad8a64();
1488
- init_utils();
1489
- detectProvider = function(env2) {
1490
- for (const provider of providers) {
1491
- const envName = provider[1] || provider[0];
1492
- if (env2[envName]) {
1493
- return {
1494
- name: provider[0].toLowerCase(),
1495
- ...provider[2]
1496
- };
1497
- }
1498
- }
1499
- 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]) {
1500
1411
  return {
1501
- name: "stackblitz",
1502
- ci: false
1412
+ name: provider[0].toLowerCase(),
1413
+ ...provider[2]
1503
1414
  };
1504
1415
  }
1416
+ }
1417
+ if (env2.SHELL && env2.SHELL === "/bin/jsh") {
1505
1418
  return {
1506
- name: "",
1419
+ name: "stackblitz",
1507
1420
  ci: false
1508
1421
  };
1422
+ }
1423
+ return {
1424
+ name: "",
1425
+ ci: false
1509
1426
  };
1510
- toBoolean = function(val) {
1511
- return val ? val !== "false" : false;
1512
- };
1513
- ansiRegex2 = function({ onlyFirst = false } = {}) {
1514
- const pattern = [
1515
- "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
1516
- "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
1517
- ].join("|");
1518
- return new RegExp(pattern, onlyFirst ? undefined : "g");
1519
- };
1520
- stripAnsi2 = function(string) {
1521
- if (typeof string !== "string") {
1522
- throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
1523
- }
1524
- return string.replace(regex, "");
1525
- };
1526
- getDefaultExportFromCjs = function(x) {
1527
- 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
1528
1455
  };
1529
- stringWidth$1 = function(string, options) {
1530
- if (typeof string !== "string" || string.length === 0) {
1531
- return 0;
1532
- }
1533
- options = {
1534
- ambiguousIsNarrow: true,
1535
- countAnsiEscapeCodes: false,
1536
- ...options
1537
- };
1538
- if (!options.countAnsiEscapeCodes) {
1539
- string = stripAnsi2(string);
1540
- }
1541
- if (string.length === 0) {
1542
- return 0;
1543
- }
1544
- const ambiguousCharacterWidth = options.ambiguousIsNarrow ? 1 : 2;
1545
- let width = 0;
1546
- for (const { segment: character } of new Intl.Segmenter().segment(string)) {
1547
- const codePoint = character.codePointAt(0);
1548
- if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
1549
- continue;
1550
- }
1551
- if (codePoint >= 768 && codePoint <= 879) {
1552
- continue;
1553
- }
1554
- 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": {
1555
1480
  width += 2;
1556
- continue;
1481
+ break;
1557
1482
  }
1558
- const code = eastAsianWidth.eastAsianWidth(character);
1559
- switch (code) {
1560
- case "F":
1561
- case "W": {
1562
- width += 2;
1563
- break;
1564
- }
1565
- case "A": {
1566
- width += ambiguousCharacterWidth;
1567
- break;
1568
- }
1569
- default: {
1570
- width += 1;
1571
- }
1483
+ case "A": {
1484
+ width += ambiguousCharacterWidth;
1485
+ break;
1486
+ }
1487
+ default: {
1488
+ width += 1;
1572
1489
  }
1573
1490
  }
1574
- return width;
1575
- };
1576
- isUnicodeSupported = function() {
1577
- if (process$1.platform !== "win32") {
1578
- return process$1.env.TERM !== "linux";
1579
- }
1580
- 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";
1581
- };
1582
- stringWidth = function(str) {
1583
- if (!Intl.Segmenter) {
1584
- return stripAnsi(str).length;
1585
- }
1586
- return stringWidth$1(str);
1587
- };
1588
- characterFormat = function(str) {
1589
- return str.replace(/`([^`]+)`/gm, (_2, m2) => colors.cyan(m2)).replace(/\s+_([^_]+)_\s+/gm, (_2, m2) => ` ${colors.underline(m2)} `);
1590
- };
1591
- getColor2 = function(color = "white") {
1592
- return colors[color] || colors.white;
1593
- };
1594
- getBgColor = function(color = "bgWhite") {
1595
- return colors[`bg${color[0].toUpperCase()}${color.slice(1)}`] || colors.bgWhite;
1596
- };
1597
- createConsola2 = function(options = {}) {
1598
- let level = _getDefaultLogLevel();
1599
- if (process.env.CONSOLA_LEVEL) {
1600
- level = Number.parseInt(process.env.CONSOLA_LEVEL) ?? level;
1601
- }
1602
- const consola2 = createConsola({
1603
- level,
1604
- defaults: { level },
1605
- stdout: process.stdout,
1606
- stderr: process.stderr,
1607
- prompt: (...args) => Promise.resolve().then(() => (init_prompt(), exports_prompt)).then((m2) => m2.prompt(...args)),
1608
- reporters: options.reporters || [
1609
- options.fancy ?? !(isCI2 || isTest) ? new FancyReporter : new BasicReporter
1610
- ],
1611
- ...options
1612
- });
1613
- return consola2;
1614
- };
1615
- _getDefaultLogLevel = function() {
1616
- if (isDebug) {
1617
- return LogLevels.debug;
1618
- }
1619
- if (isTest) {
1620
- return LogLevels.warn;
1621
- }
1622
- return LogLevels.info;
1623
- };
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();
1624
1549
  providers = [
1625
1550
  ["APPVEYOR"],
1626
1551
  ["AZURE_PIPELINES", "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],
@@ -1759,10 +1684,7 @@ var init_consola_36c0034f = __esm(() => {
1759
1684
  };
1760
1685
  })(eastasianwidth);
1761
1686
  eastasianwidthExports = eastasianwidth.exports;
1762
- eastAsianWidth = getDefaultExportFromCjs(eastasianwidthExports);
1763
- emojiRegex = () => {
1764
- 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;
1765
- };
1687
+ eastAsianWidth = /* @__PURE__ */ getDefaultExportFromCjs(eastasianwidthExports);
1766
1688
  TYPE_COLOR_MAP = {
1767
1689
  info: "cyan",
1768
1690
  fail: "red",
@@ -1775,7 +1697,6 @@ var init_consola_36c0034f = __esm(() => {
1775
1697
  1: "yellow"
1776
1698
  };
1777
1699
  unicode2 = isUnicodeSupported();
1778
- s2 = (c2, fallback) => unicode2 ? c2 : fallback;
1779
1700
  TYPE_ICONS = {
1780
1701
  error: s2("\u2716", "\xD7"),
1781
1702
  fatal: s2("\u2716", "\xD7"),
@@ -1789,6 +1710,44 @@ var init_consola_36c0034f = __esm(() => {
1789
1710
  start: s2("\u25D0", "o"),
1790
1711
  log: ""
1791
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
+ };
1792
1751
  consola = createConsola2();
1793
1752
  });
1794
1753
 
@@ -1846,7 +1805,7 @@ var require_slugify = __commonJS((exports, module) => {
1846
1805
  // ../../../../node_modules/pluralize/pluralize.js
1847
1806
  var require_pluralize = __commonJS((exports, module) => {
1848
1807
  (function(root, pluralize) {
1849
- if (typeof __require === "function" && typeof exports === "object" && typeof module === "object") {
1808
+ if (typeof exports === "object" && typeof module === "object") {
1850
1809
  module.exports = pluralize();
1851
1810
  } else if (typeof define === "function" && define.amd) {
1852
1811
  define(function() {
@@ -2199,7 +2158,7 @@ var require_universalify = __commonJS((exports) => {
2199
2158
 
2200
2159
  // ../../../../node_modules/graceful-fs/polyfills.js
2201
2160
  var require_polyfills = __commonJS((exports, module) => {
2202
- var patch = function(fs) {
2161
+ function patch(fs) {
2203
2162
  if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
2204
2163
  patchLchmod(fs);
2205
2164
  }
@@ -2479,7 +2438,7 @@ var require_polyfills = __commonJS((exports, module) => {
2479
2438
  }
2480
2439
  return false;
2481
2440
  }
2482
- };
2441
+ }
2483
2442
  var constants = __require("constants");
2484
2443
  var origCwd = process.cwd;
2485
2444
  var cwd = null;
@@ -2508,7 +2467,7 @@ var require_polyfills = __commonJS((exports, module) => {
2508
2467
 
2509
2468
  // ../../../../node_modules/graceful-fs/legacy-streams.js
2510
2469
  var require_legacy_streams = __commonJS((exports, module) => {
2511
- var legacy = function(fs) {
2470
+ function legacy(fs) {
2512
2471
  return {
2513
2472
  ReadStream,
2514
2473
  WriteStream: WriteStream2
@@ -2598,14 +2557,14 @@ var require_legacy_streams = __commonJS((exports, module) => {
2598
2557
  this.flush();
2599
2558
  }
2600
2559
  }
2601
- };
2560
+ }
2602
2561
  var Stream = __require("stream").Stream;
2603
2562
  module.exports = legacy;
2604
2563
  });
2605
2564
 
2606
2565
  // ../../../../node_modules/graceful-fs/clone.js
2607
2566
  var require_clone = __commonJS((exports, module) => {
2608
- var clone = function(obj) {
2567
+ function clone(obj) {
2609
2568
  if (obj === null || typeof obj !== "object")
2610
2569
  return obj;
2611
2570
  if (obj instanceof Object)
@@ -2616,7 +2575,7 @@ var require_clone = __commonJS((exports, module) => {
2616
2575
  Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key));
2617
2576
  });
2618
2577
  return copy;
2619
- };
2578
+ }
2620
2579
  module.exports = clone;
2621
2580
  var getPrototypeOf = Object.getPrototypeOf || function(obj) {
2622
2581
  return obj.__proto__;
@@ -2625,16 +2584,16 @@ var require_clone = __commonJS((exports, module) => {
2625
2584
 
2626
2585
  // ../../../../node_modules/graceful-fs/graceful-fs.js
2627
2586
  var require_graceful_fs = __commonJS((exports, module) => {
2628
- var noop = function() {
2629
- };
2630
- var publishQueue = function(context, queue4) {
2587
+ function noop() {
2588
+ }
2589
+ function publishQueue(context, queue4) {
2631
2590
  Object.defineProperty(context, gracefulQueue, {
2632
2591
  get: function() {
2633
2592
  return queue4;
2634
2593
  }
2635
2594
  });
2636
- };
2637
- var patch = function(fs2) {
2595
+ }
2596
+ function patch(fs2) {
2638
2597
  polyfills(fs2);
2639
2598
  fs2.gracefulify = patch;
2640
2599
  fs2.createReadStream = createReadStream;
@@ -2861,13 +2820,13 @@ var require_graceful_fs = __commonJS((exports, module) => {
2861
2820
  }
2862
2821
  }
2863
2822
  return fs2;
2864
- };
2865
- var enqueue = function(elem) {
2823
+ }
2824
+ function enqueue(elem) {
2866
2825
  debug("ENQUEUE", elem[0].name, elem[1]);
2867
2826
  fs[gracefulQueue].push(elem);
2868
2827
  retry();
2869
- };
2870
- var resetQueue = function() {
2828
+ }
2829
+ function resetQueue() {
2871
2830
  var now = Date.now();
2872
2831
  for (var i = 0;i < fs[gracefulQueue].length; ++i) {
2873
2832
  if (fs[gracefulQueue][i].length > 2) {
@@ -2876,8 +2835,8 @@ var require_graceful_fs = __commonJS((exports, module) => {
2876
2835
  }
2877
2836
  }
2878
2837
  retry();
2879
- };
2880
- var retry = function() {
2838
+ }
2839
+ function retry() {
2881
2840
  clearTimeout(retryTimer);
2882
2841
  retryTimer = undefined;
2883
2842
  if (fs[gracefulQueue].length === 0)
@@ -2910,7 +2869,7 @@ var require_graceful_fs = __commonJS((exports, module) => {
2910
2869
  if (retryTimer === undefined) {
2911
2870
  retryTimer = setTimeout(retry, 0);
2912
2871
  }
2913
- };
2872
+ }
2914
2873
  var fs = __require("fs");
2915
2874
  var polyfills = require_polyfills();
2916
2875
  var legacy = require_legacy_streams();
@@ -3148,9 +3107,9 @@ var require_mkdirs = __commonJS((exports, module) => {
3148
3107
 
3149
3108
  // ../../../../node_modules/fs-extra/lib/path-exists/index.js
3150
3109
  var require_path_exists = __commonJS((exports, module) => {
3151
- var pathExists = function(path) {
3110
+ function pathExists(path) {
3152
3111
  return fs.access(path).then(() => true).catch(() => false);
3153
- };
3112
+ }
3154
3113
  var u = require_universalify().fromPromise;
3155
3114
  var fs = require_fs();
3156
3115
  module.exports = {
@@ -3177,11 +3136,11 @@ var require_utimes = __commonJS((exports, module) => {
3177
3136
  throw closeErr;
3178
3137
  }
3179
3138
  }
3180
- var utimesMillisSync = function(path, atime, mtime) {
3139
+ function utimesMillisSync(path, atime, mtime) {
3181
3140
  const fd = fs.openSync(path, "r+");
3182
3141
  fs.futimesSync(fd, atime, mtime);
3183
3142
  return fs.closeSync(fd);
3184
- };
3143
+ }
3185
3144
  var fs = require_fs();
3186
3145
  var u = require_universalify().fromPromise;
3187
3146
  module.exports = {
@@ -3192,7 +3151,7 @@ var require_utimes = __commonJS((exports, module) => {
3192
3151
 
3193
3152
  // ../../../../node_modules/fs-extra/lib/util/stat.js
3194
3153
  var require_stat = __commonJS((exports, module) => {
3195
- var getStats = function(src2, dest, opts) {
3154
+ function getStats(src2, dest, opts) {
3196
3155
  const statFunc = opts.dereference ? (file) => fs.stat(file, { bigint: true }) : (file) => fs.lstat(file, { bigint: true });
3197
3156
  return Promise.all([
3198
3157
  statFunc(src2),
@@ -3202,8 +3161,8 @@ var require_stat = __commonJS((exports, module) => {
3202
3161
  throw err;
3203
3162
  })
3204
3163
  ]).then(([srcStat, destStat]) => ({ srcStat, destStat }));
3205
- };
3206
- var getStatsSync = function(src2, dest, opts) {
3164
+ }
3165
+ function getStatsSync(src2, dest, opts) {
3207
3166
  let destStat;
3208
3167
  const statFunc = opts.dereference ? (file) => fs.statSync(file, { bigint: true }) : (file) => fs.lstatSync(file, { bigint: true });
3209
3168
  const srcStat = statFunc(src2);
@@ -3215,7 +3174,7 @@ var require_stat = __commonJS((exports, module) => {
3215
3174
  throw err;
3216
3175
  }
3217
3176
  return { srcStat, destStat };
3218
- };
3177
+ }
3219
3178
  async function checkPaths(src2, dest, funcName, opts) {
3220
3179
  const { srcStat, destStat } = await getStats(src2, dest, opts);
3221
3180
  if (destStat) {
@@ -3239,7 +3198,7 @@ var require_stat = __commonJS((exports, module) => {
3239
3198
  }
3240
3199
  return { srcStat, destStat };
3241
3200
  }
3242
- var checkPathsSync = function(src2, dest, funcName, opts) {
3201
+ function checkPathsSync(src2, dest, funcName, opts) {
3243
3202
  const { srcStat, destStat } = getStatsSync(src2, dest, opts);
3244
3203
  if (destStat) {
3245
3204
  if (areIdentical(srcStat, destStat)) {
@@ -3261,7 +3220,7 @@ var require_stat = __commonJS((exports, module) => {
3261
3220
  throw new Error(errMsg(src2, dest, funcName));
3262
3221
  }
3263
3222
  return { srcStat, destStat };
3264
- };
3223
+ }
3265
3224
  async function checkParentPaths(src2, srcStat, dest, funcName) {
3266
3225
  const srcParent = path.resolve(path.dirname(src2));
3267
3226
  const destParent = path.resolve(path.dirname(dest));
@@ -3280,7 +3239,7 @@ var require_stat = __commonJS((exports, module) => {
3280
3239
  }
3281
3240
  return checkParentPaths(src2, srcStat, destParent, funcName);
3282
3241
  }
3283
- var checkParentPathsSync = function(src2, srcStat, dest, funcName) {
3242
+ function checkParentPathsSync(src2, srcStat, dest, funcName) {
3284
3243
  const srcParent = path.resolve(path.dirname(src2));
3285
3244
  const destParent = path.resolve(path.dirname(dest));
3286
3245
  if (destParent === srcParent || destParent === path.parse(destParent).root)
@@ -3297,18 +3256,18 @@ var require_stat = __commonJS((exports, module) => {
3297
3256
  throw new Error(errMsg(src2, dest, funcName));
3298
3257
  }
3299
3258
  return checkParentPathsSync(src2, srcStat, destParent, funcName);
3300
- };
3301
- var areIdentical = function(srcStat, destStat) {
3259
+ }
3260
+ function areIdentical(srcStat, destStat) {
3302
3261
  return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
3303
- };
3304
- var isSrcSubdir = function(src2, dest) {
3262
+ }
3263
+ function isSrcSubdir(src2, dest) {
3305
3264
  const srcArr = path.resolve(src2).split(path.sep).filter((i) => i);
3306
3265
  const destArr = path.resolve(dest).split(path.sep).filter((i) => i);
3307
3266
  return srcArr.every((cur, i) => destArr[i] === cur);
3308
- };
3309
- var errMsg = function(src2, dest, funcName) {
3267
+ }
3268
+ function errMsg(src2, dest, funcName) {
3310
3269
  return `Cannot ${funcName} '${src2}' to a subdirectory of itself, '${dest}'.`;
3311
- };
3270
+ }
3312
3271
  var fs = require_fs();
3313
3272
  var path = __require("path");
3314
3273
  var u = require_universalify().fromPromise;
@@ -3331,7 +3290,7 @@ var require_copy = __commonJS((exports, module) => {
3331
3290
  opts.clobber = "clobber" in opts ? !!opts.clobber : true;
3332
3291
  opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber;
3333
3292
  if (opts.preserveTimestamps && process.arch === "ia32") {
3334
- process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269", "Warning", "fs-extra-WARN0001");
3293
+ process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n" + "\tsee https://github.com/jprichardson/node-fs-extra/issues/269", "Warning", "fs-extra-WARN0001");
3335
3294
  }
3336
3295
  const { srcStat, destStat } = await stat.checkPaths(src2, dest, "copy", opts);
3337
3296
  await stat.checkParentPaths(src2, srcStat, dest, "copy");
@@ -3387,12 +3346,12 @@ var require_copy = __commonJS((exports, module) => {
3387
3346
  }
3388
3347
  return fs.chmod(dest, srcStat.mode);
3389
3348
  }
3390
- var fileIsNotWritable = function(srcMode) {
3349
+ function fileIsNotWritable(srcMode) {
3391
3350
  return (srcMode & 128) === 0;
3392
- };
3393
- var makeFileWritable = function(dest, srcMode) {
3351
+ }
3352
+ function makeFileWritable(dest, srcMode) {
3394
3353
  return fs.chmod(dest, srcMode | 128);
3395
- };
3354
+ }
3396
3355
  async function onDir(srcStat, destStat, src2, dest, opts) {
3397
3356
  if (!destStat) {
3398
3357
  await fs.mkdir(dest);
@@ -3450,7 +3409,7 @@ var require_copy = __commonJS((exports, module) => {
3450
3409
 
3451
3410
  // ../../../../node_modules/fs-extra/lib/copy/copy-sync.js
3452
3411
  var require_copy_sync = __commonJS((exports, module) => {
3453
- var copySync = function(src2, dest, opts) {
3412
+ function copySync(src2, dest, opts) {
3454
3413
  if (typeof opts === "function") {
3455
3414
  opts = { filter: opts };
3456
3415
  }
@@ -3458,7 +3417,7 @@ var require_copy_sync = __commonJS((exports, module) => {
3458
3417
  opts.clobber = "clobber" in opts ? !!opts.clobber : true;
3459
3418
  opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber;
3460
3419
  if (opts.preserveTimestamps && process.arch === "ia32") {
3461
- process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269", "Warning", "fs-extra-WARN0002");
3420
+ process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n" + "\tsee https://github.com/jprichardson/node-fs-extra/issues/269", "Warning", "fs-extra-WARN0002");
3462
3421
  }
3463
3422
  const { srcStat, destStat } = stat.checkPathsSync(src2, dest, "copy", opts);
3464
3423
  stat.checkParentPathsSync(src2, srcStat, dest, "copy");
@@ -3468,8 +3427,8 @@ var require_copy_sync = __commonJS((exports, module) => {
3468
3427
  if (!fs.existsSync(destParent))
3469
3428
  mkdirsSync(destParent);
3470
3429
  return getStats(destStat, src2, dest, opts);
3471
- };
3472
- var getStats = function(destStat, src2, dest, opts) {
3430
+ }
3431
+ function getStats(destStat, src2, dest, opts) {
3473
3432
  const statSync = opts.dereference ? fs.statSync : fs.lstatSync;
3474
3433
  const srcStat = statSync(src2);
3475
3434
  if (srcStat.isDirectory())
@@ -3483,66 +3442,66 @@ var require_copy_sync = __commonJS((exports, module) => {
3483
3442
  else if (srcStat.isFIFO())
3484
3443
  throw new Error(`Cannot copy a FIFO pipe: ${src2}`);
3485
3444
  throw new Error(`Unknown file: ${src2}`);
3486
- };
3487
- var onFile = function(srcStat, destStat, src2, dest, opts) {
3445
+ }
3446
+ function onFile(srcStat, destStat, src2, dest, opts) {
3488
3447
  if (!destStat)
3489
3448
  return copyFile(srcStat, src2, dest, opts);
3490
3449
  return mayCopyFile(srcStat, src2, dest, opts);
3491
- };
3492
- var mayCopyFile = function(srcStat, src2, dest, opts) {
3450
+ }
3451
+ function mayCopyFile(srcStat, src2, dest, opts) {
3493
3452
  if (opts.overwrite) {
3494
3453
  fs.unlinkSync(dest);
3495
3454
  return copyFile(srcStat, src2, dest, opts);
3496
3455
  } else if (opts.errorOnExist) {
3497
3456
  throw new Error(`'${dest}' already exists`);
3498
3457
  }
3499
- };
3500
- var copyFile = function(srcStat, src2, dest, opts) {
3458
+ }
3459
+ function copyFile(srcStat, src2, dest, opts) {
3501
3460
  fs.copyFileSync(src2, dest);
3502
3461
  if (opts.preserveTimestamps)
3503
3462
  handleTimestamps(srcStat.mode, src2, dest);
3504
3463
  return setDestMode(dest, srcStat.mode);
3505
- };
3506
- var handleTimestamps = function(srcMode, src2, dest) {
3464
+ }
3465
+ function handleTimestamps(srcMode, src2, dest) {
3507
3466
  if (fileIsNotWritable(srcMode))
3508
3467
  makeFileWritable(dest, srcMode);
3509
3468
  return setDestTimestamps(src2, dest);
3510
- };
3511
- var fileIsNotWritable = function(srcMode) {
3469
+ }
3470
+ function fileIsNotWritable(srcMode) {
3512
3471
  return (srcMode & 128) === 0;
3513
- };
3514
- var makeFileWritable = function(dest, srcMode) {
3472
+ }
3473
+ function makeFileWritable(dest, srcMode) {
3515
3474
  return setDestMode(dest, srcMode | 128);
3516
- };
3517
- var setDestMode = function(dest, srcMode) {
3475
+ }
3476
+ function setDestMode(dest, srcMode) {
3518
3477
  return fs.chmodSync(dest, srcMode);
3519
- };
3520
- var setDestTimestamps = function(src2, dest) {
3478
+ }
3479
+ function setDestTimestamps(src2, dest) {
3521
3480
  const updatedSrcStat = fs.statSync(src2);
3522
3481
  return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
3523
- };
3524
- var onDir = function(srcStat, destStat, src2, dest, opts) {
3482
+ }
3483
+ function onDir(srcStat, destStat, src2, dest, opts) {
3525
3484
  if (!destStat)
3526
3485
  return mkDirAndCopy(srcStat.mode, src2, dest, opts);
3527
3486
  return copyDir(src2, dest, opts);
3528
- };
3529
- var mkDirAndCopy = function(srcMode, src2, dest, opts) {
3487
+ }
3488
+ function mkDirAndCopy(srcMode, src2, dest, opts) {
3530
3489
  fs.mkdirSync(dest);
3531
3490
  copyDir(src2, dest, opts);
3532
3491
  return setDestMode(dest, srcMode);
3533
- };
3534
- var copyDir = function(src2, dest, opts) {
3492
+ }
3493
+ function copyDir(src2, dest, opts) {
3535
3494
  fs.readdirSync(src2).forEach((item) => copyDirItem(item, src2, dest, opts));
3536
- };
3537
- var copyDirItem = function(item, src2, dest, opts) {
3495
+ }
3496
+ function copyDirItem(item, src2, dest, opts) {
3538
3497
  const srcItem = path.join(src2, item);
3539
3498
  const destItem = path.join(dest, item);
3540
3499
  if (opts.filter && !opts.filter(srcItem, destItem))
3541
3500
  return;
3542
3501
  const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts);
3543
3502
  return getStats(destStat, srcItem, destItem, opts);
3544
- };
3545
- var onLink = function(destStat, src2, dest, opts) {
3503
+ }
3504
+ function onLink(destStat, src2, dest, opts) {
3546
3505
  let resolvedSrc = fs.readlinkSync(src2);
3547
3506
  if (opts.dereference) {
3548
3507
  resolvedSrc = path.resolve(process.cwd(), resolvedSrc);
@@ -3569,11 +3528,11 @@ var require_copy_sync = __commonJS((exports, module) => {
3569
3528
  }
3570
3529
  return copyLink(resolvedSrc, dest);
3571
3530
  }
3572
- };
3573
- var copyLink = function(resolvedSrc, dest) {
3531
+ }
3532
+ function copyLink(resolvedSrc, dest) {
3574
3533
  fs.unlinkSync(dest);
3575
3534
  return fs.symlinkSync(resolvedSrc, dest);
3576
- };
3535
+ }
3577
3536
  var fs = require_graceful_fs();
3578
3537
  var path = __require("path");
3579
3538
  var mkdirsSync = require_mkdirs().mkdirsSync;
@@ -3593,12 +3552,12 @@ var require_copy2 = __commonJS((exports, module) => {
3593
3552
 
3594
3553
  // ../../../../node_modules/fs-extra/lib/remove/index.js
3595
3554
  var require_remove = __commonJS((exports, module) => {
3596
- var remove = function(path, callback) {
3555
+ function remove(path, callback) {
3597
3556
  fs.rm(path, { recursive: true, force: true }, callback);
3598
- };
3599
- var removeSync = function(path) {
3557
+ }
3558
+ function removeSync(path) {
3600
3559
  fs.rmSync(path, { recursive: true, force: true });
3601
- };
3560
+ }
3602
3561
  var fs = require_graceful_fs();
3603
3562
  var u = require_universalify().fromCallback;
3604
3563
  module.exports = {
@@ -3609,7 +3568,7 @@ var require_remove = __commonJS((exports, module) => {
3609
3568
 
3610
3569
  // ../../../../node_modules/fs-extra/lib/empty/index.js
3611
3570
  var require_empty = __commonJS((exports, module) => {
3612
- var emptyDirSync = function(dir) {
3571
+ function emptyDirSync(dir) {
3613
3572
  let items;
3614
3573
  try {
3615
3574
  items = fs.readdirSync(dir);
@@ -3620,7 +3579,7 @@ var require_empty = __commonJS((exports, module) => {
3620
3579
  item = path.join(dir, item);
3621
3580
  remove.removeSync(item);
3622
3581
  });
3623
- };
3582
+ }
3624
3583
  var u = require_universalify().fromPromise;
3625
3584
  var fs = require_fs();
3626
3585
  var path = __require("path");
@@ -3672,7 +3631,7 @@ var require_file = __commonJS((exports, module) => {
3672
3631
  await fs.readdir(dir);
3673
3632
  }
3674
3633
  }
3675
- var createFileSync = function(file) {
3634
+ function createFileSync(file) {
3676
3635
  let stats;
3677
3636
  try {
3678
3637
  stats = fs.statSync(file);
@@ -3692,7 +3651,7 @@ var require_file = __commonJS((exports, module) => {
3692
3651
  throw err;
3693
3652
  }
3694
3653
  fs.writeFileSync(file, "");
3695
- };
3654
+ }
3696
3655
  var u = require_universalify().fromPromise;
3697
3656
  var path = __require("path");
3698
3657
  var fs = require_fs();
@@ -3727,7 +3686,7 @@ var require_link = __commonJS((exports, module) => {
3727
3686
  }
3728
3687
  await fs.link(srcpath, dstpath);
3729
3688
  }
3730
- var createLinkSync = function(srcpath, dstpath) {
3689
+ function createLinkSync(srcpath, dstpath) {
3731
3690
  let dstStat;
3732
3691
  try {
3733
3692
  dstStat = fs.lstatSync(dstpath);
@@ -3747,7 +3706,7 @@ var require_link = __commonJS((exports, module) => {
3747
3706
  return fs.linkSync(srcpath, dstpath);
3748
3707
  mkdir.mkdirsSync(dir);
3749
3708
  return fs.linkSync(srcpath, dstpath);
3750
- };
3709
+ }
3751
3710
  var u = require_universalify().fromPromise;
3752
3711
  var path = __require("path");
3753
3712
  var fs = require_fs();
@@ -3795,7 +3754,7 @@ var require_symlink_paths = __commonJS((exports, module) => {
3795
3754
  toDst: path.relative(dstdir, srcpath)
3796
3755
  };
3797
3756
  }
3798
- var symlinkPathsSync = function(srcpath, dstpath) {
3757
+ function symlinkPathsSync(srcpath, dstpath) {
3799
3758
  if (path.isAbsolute(srcpath)) {
3800
3759
  const exists2 = fs.existsSync(srcpath);
3801
3760
  if (!exists2)
@@ -3821,7 +3780,7 @@ var require_symlink_paths = __commonJS((exports, module) => {
3821
3780
  toCwd: srcpath,
3822
3781
  toDst: path.relative(dstdir, srcpath)
3823
3782
  };
3824
- };
3783
+ }
3825
3784
  var path = __require("path");
3826
3785
  var fs = require_fs();
3827
3786
  var { pathExists } = require_path_exists();
@@ -3845,7 +3804,7 @@ var require_symlink_type = __commonJS((exports, module) => {
3845
3804
  }
3846
3805
  return stats && stats.isDirectory() ? "dir" : "file";
3847
3806
  }
3848
- var symlinkTypeSync = function(srcpath, type) {
3807
+ function symlinkTypeSync(srcpath, type) {
3849
3808
  if (type)
3850
3809
  return type;
3851
3810
  let stats;
@@ -3855,7 +3814,7 @@ var require_symlink_type = __commonJS((exports, module) => {
3855
3814
  return "file";
3856
3815
  }
3857
3816
  return stats && stats.isDirectory() ? "dir" : "file";
3858
- };
3817
+ }
3859
3818
  var fs = require_fs();
3860
3819
  var u = require_universalify().fromPromise;
3861
3820
  module.exports = {
@@ -3889,7 +3848,7 @@ var require_symlink = __commonJS((exports, module) => {
3889
3848
  }
3890
3849
  return fs.symlink(srcpath, dstpath, toType);
3891
3850
  }
3892
- var createSymlinkSync = function(srcpath, dstpath, type) {
3851
+ function createSymlinkSync(srcpath, dstpath, type) {
3893
3852
  let stats;
3894
3853
  try {
3895
3854
  stats = fs.lstatSync(dstpath);
@@ -3910,7 +3869,7 @@ var require_symlink = __commonJS((exports, module) => {
3910
3869
  return fs.symlinkSync(srcpath, dstpath, type);
3911
3870
  mkdirsSync(dir);
3912
3871
  return fs.symlinkSync(srcpath, dstpath, type);
3913
- };
3872
+ }
3914
3873
  var u = require_universalify().fromPromise;
3915
3874
  var path = __require("path");
3916
3875
  var fs = require_fs();
@@ -3948,16 +3907,16 @@ var require_ensure = __commonJS((exports, module) => {
3948
3907
 
3949
3908
  // ../../../../node_modules/jsonfile/utils.js
3950
3909
  var require_utils2 = __commonJS((exports, module) => {
3951
- var stringify = function(obj, { EOL = "\n", finalEOL = true, replacer = null, spaces } = {}) {
3910
+ function stringify(obj, { EOL = "\n", finalEOL = true, replacer = null, spaces } = {}) {
3952
3911
  const EOF = finalEOL ? EOL : "";
3953
3912
  const str = JSON.stringify(obj, replacer, spaces);
3954
3913
  return str.replace(/\n/g, EOL) + EOF;
3955
- };
3956
- var stripBom = function(content) {
3914
+ }
3915
+ function stripBom(content) {
3957
3916
  if (Buffer.isBuffer(content))
3958
3917
  content = content.toString("utf8");
3959
3918
  return content.replace(/^\uFEFF/, "");
3960
- };
3919
+ }
3961
3920
  module.exports = { stringify, stripBom };
3962
3921
  });
3963
3922
 
@@ -3984,7 +3943,7 @@ var require_jsonfile = __commonJS((exports, module) => {
3984
3943
  }
3985
3944
  return obj;
3986
3945
  }
3987
- var readFileSync = function(file, options = {}) {
3946
+ function readFileSync(file, options = {}) {
3988
3947
  if (typeof options === "string") {
3989
3948
  options = { encoding: options };
3990
3949
  }
@@ -4002,17 +3961,17 @@ var require_jsonfile = __commonJS((exports, module) => {
4002
3961
  return null;
4003
3962
  }
4004
3963
  }
4005
- };
3964
+ }
4006
3965
  async function _writeFile(file, obj, options = {}) {
4007
3966
  const fs = options.fs || _fs;
4008
3967
  const str = stringify(obj, options);
4009
3968
  await universalify.fromCallback(fs.writeFile)(file, str, options);
4010
3969
  }
4011
- var writeFileSync = function(file, obj, options = {}) {
3970
+ function writeFileSync(file, obj, options = {}) {
4012
3971
  const fs = options.fs || _fs;
4013
3972
  const str = stringify(obj, options);
4014
3973
  return fs.writeFileSync(file, str, options);
4015
- };
3974
+ }
4016
3975
  var _fs;
4017
3976
  try {
4018
3977
  _fs = require_graceful_fs();
@@ -4052,13 +4011,13 @@ var require_output_file = __commonJS((exports, module) => {
4052
4011
  }
4053
4012
  return fs.writeFile(file, data, encoding);
4054
4013
  }
4055
- var outputFileSync = function(file, ...args) {
4014
+ function outputFileSync(file, ...args) {
4056
4015
  const dir = path.dirname(file);
4057
4016
  if (!fs.existsSync(dir)) {
4058
4017
  mkdir.mkdirsSync(dir);
4059
4018
  }
4060
4019
  fs.writeFileSync(file, ...args);
4061
- };
4020
+ }
4062
4021
  var u = require_universalify().fromPromise;
4063
4022
  var fs = require_fs();
4064
4023
  var path = __require("path");
@@ -4083,10 +4042,10 @@ var require_output_json = __commonJS((exports, module) => {
4083
4042
 
4084
4043
  // ../../../../node_modules/fs-extra/lib/json/output-json-sync.js
4085
4044
  var require_output_json_sync = __commonJS((exports, module) => {
4086
- var outputJsonSync = function(file, data, options) {
4045
+ function outputJsonSync(file, data, options) {
4087
4046
  const str = stringify(data, options);
4088
4047
  outputFileSync(file, str, options);
4089
- };
4048
+ }
4090
4049
  var { stringify } = require_utils2();
4091
4050
  var { outputFileSync } = require_output_file();
4092
4051
  module.exports = outputJsonSync;
@@ -4158,7 +4117,7 @@ var require_move = __commonJS((exports, module) => {
4158
4117
 
4159
4118
  // ../../../../node_modules/fs-extra/lib/move/move-sync.js
4160
4119
  var require_move_sync = __commonJS((exports, module) => {
4161
- var moveSync = function(src2, dest, opts) {
4120
+ function moveSync(src2, dest, opts) {
4162
4121
  opts = opts || {};
4163
4122
  const overwrite = opts.overwrite || opts.clobber || false;
4164
4123
  const { srcStat, isChangingCase = false } = stat.checkPathsSync(src2, dest, "move", opts);
@@ -4166,13 +4125,13 @@ var require_move_sync = __commonJS((exports, module) => {
4166
4125
  if (!isParentRoot(dest))
4167
4126
  mkdirpSync(path.dirname(dest));
4168
4127
  return doRename(src2, dest, overwrite, isChangingCase);
4169
- };
4170
- var isParentRoot = function(dest) {
4128
+ }
4129
+ function isParentRoot(dest) {
4171
4130
  const parent = path.dirname(dest);
4172
4131
  const parsedPath = path.parse(parent);
4173
4132
  return parsedPath.root === parent;
4174
- };
4175
- var doRename = function(src2, dest, overwrite, isChangingCase) {
4133
+ }
4134
+ function doRename(src2, dest, overwrite, isChangingCase) {
4176
4135
  if (isChangingCase)
4177
4136
  return rename(src2, dest, overwrite);
4178
4137
  if (overwrite) {
@@ -4182,8 +4141,8 @@ var require_move_sync = __commonJS((exports, module) => {
4182
4141
  if (fs.existsSync(dest))
4183
4142
  throw new Error("dest already exists.");
4184
4143
  return rename(src2, dest, overwrite);
4185
- };
4186
- var rename = function(src2, dest, overwrite) {
4144
+ }
4145
+ function rename(src2, dest, overwrite) {
4187
4146
  try {
4188
4147
  fs.renameSync(src2, dest);
4189
4148
  } catch (err) {
@@ -4191,8 +4150,8 @@ var require_move_sync = __commonJS((exports, module) => {
4191
4150
  throw err;
4192
4151
  return moveAcrossDevice(src2, dest, overwrite);
4193
4152
  }
4194
- };
4195
- var moveAcrossDevice = function(src2, dest, overwrite) {
4153
+ }
4154
+ function moveAcrossDevice(src2, dest, overwrite) {
4196
4155
  const opts = {
4197
4156
  overwrite,
4198
4157
  errorOnExist: true,
@@ -4200,7 +4159,7 @@ var require_move_sync = __commonJS((exports, module) => {
4200
4159
  };
4201
4160
  copySync(src2, dest, opts);
4202
4161
  return removeSync(src2);
4203
- };
4162
+ }
4204
4163
  var fs = require_graceful_fs();
4205
4164
  var path = __require("path");
4206
4165
  var copySync = require_copy2().copySync;
@@ -4235,427 +4194,8 @@ var require_lib = __commonJS((exports, module) => {
4235
4194
  };
4236
4195
  });
4237
4196
 
4238
- // ../../../../node_modules/neverthrow/dist/index.cjs.js
4239
- var require_index_cjs = __commonJS((exports) => {
4240
- var __awaiter = function(thisArg, _arguments, P2, generator) {
4241
- function adopt(value) {
4242
- return value instanceof P2 ? value : new P2(function(resolve) {
4243
- resolve(value);
4244
- });
4245
- }
4246
- return new (P2 || (P2 = Promise))(function(resolve, reject) {
4247
- function fulfilled(value) {
4248
- try {
4249
- step(generator.next(value));
4250
- } catch (e) {
4251
- reject(e);
4252
- }
4253
- }
4254
- function rejected(value) {
4255
- try {
4256
- step(generator["throw"](value));
4257
- } catch (e) {
4258
- reject(e);
4259
- }
4260
- }
4261
- function step(result) {
4262
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
4263
- }
4264
- step((generator = generator.apply(thisArg, _arguments || [])).next());
4265
- });
4266
- };
4267
- var __values = function(o) {
4268
- var s3 = typeof Symbol === "function" && Symbol.iterator, m2 = s3 && o[s3], i = 0;
4269
- if (m2)
4270
- return m2.call(o);
4271
- if (o && typeof o.length === "number")
4272
- return {
4273
- next: function() {
4274
- if (o && i >= o.length)
4275
- o = undefined;
4276
- return { value: o && o[i++], done: !o };
4277
- }
4278
- };
4279
- throw new TypeError(s3 ? "Object is not iterable." : "Symbol.iterator is not defined.");
4280
- };
4281
- var __await = function(v2) {
4282
- return this instanceof __await ? (this.v = v2, this) : new __await(v2);
4283
- };
4284
- var __asyncGenerator = function(thisArg, _arguments, generator) {
4285
- if (!Symbol.asyncIterator)
4286
- throw new TypeError("Symbol.asyncIterator is not defined.");
4287
- var g2 = generator.apply(thisArg, _arguments || []), i, q2 = [];
4288
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
4289
- return this;
4290
- }, i;
4291
- function verb(n) {
4292
- if (g2[n])
4293
- i[n] = function(v2) {
4294
- return new Promise(function(a, b2) {
4295
- q2.push([n, v2, a, b2]) > 1 || resume(n, v2);
4296
- });
4297
- };
4298
- }
4299
- function resume(n, v2) {
4300
- try {
4301
- step(g2[n](v2));
4302
- } catch (e) {
4303
- settle(q2[0][3], e);
4304
- }
4305
- }
4306
- function step(r2) {
4307
- r2.value instanceof __await ? Promise.resolve(r2.value.v).then(fulfill, reject) : settle(q2[0][2], r2);
4308
- }
4309
- function fulfill(value) {
4310
- resume("next", value);
4311
- }
4312
- function reject(value) {
4313
- resume("throw", value);
4314
- }
4315
- function settle(f2, v2) {
4316
- if (f2(v2), q2.shift(), q2.length)
4317
- resume(q2[0][0], q2[0][1]);
4318
- }
4319
- };
4320
- var __asyncDelegator = function(o) {
4321
- var i, p2;
4322
- return i = {}, verb("next"), verb("throw", function(e) {
4323
- throw e;
4324
- }), verb("return"), i[Symbol.iterator] = function() {
4325
- return this;
4326
- }, i;
4327
- function verb(n, f2) {
4328
- i[n] = o[n] ? function(v2) {
4329
- return (p2 = !p2) ? { value: __await(o[n](v2)), done: n === "return" } : f2 ? f2(v2) : v2;
4330
- } : f2;
4331
- }
4332
- };
4333
- var __asyncValues = function(o) {
4334
- if (!Symbol.asyncIterator)
4335
- throw new TypeError("Symbol.asyncIterator is not defined.");
4336
- var m2 = o[Symbol.asyncIterator], i;
4337
- 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() {
4338
- return this;
4339
- }, i);
4340
- function verb(n) {
4341
- i[n] = o[n] && function(v2) {
4342
- return new Promise(function(resolve, reject) {
4343
- v2 = o[n](v2), settle(resolve, reject, v2.done, v2.value);
4344
- });
4345
- };
4346
- }
4347
- function settle(resolve, reject, d, v2) {
4348
- Promise.resolve(v2).then(function(v3) {
4349
- resolve({ value: v3, done: d });
4350
- }, reject);
4351
- }
4352
- };
4353
- var safeTry = function(body) {
4354
- const n = body().next();
4355
- if (n instanceof Promise) {
4356
- return n.then((r2) => r2.value);
4357
- }
4358
- return n.value;
4359
- };
4360
- Object.defineProperty(exports, "__esModule", { value: true });
4361
- var defaultErrorConfig = {
4362
- withStackTrace: false
4363
- };
4364
- var createNeverThrowError = (message, result, config = defaultErrorConfig) => {
4365
- const data = result.isOk() ? { type: "Ok", value: result.value } : { type: "Err", value: result.error };
4366
- const maybeStack = config.withStackTrace ? new Error().stack : undefined;
4367
- return {
4368
- data,
4369
- message,
4370
- stack: maybeStack
4371
- };
4372
- };
4373
-
4374
- class ResultAsync {
4375
- constructor(res) {
4376
- this._promise = res;
4377
- }
4378
- static fromSafePromise(promise2) {
4379
- const newPromise = promise2.then((value) => new Ok(value));
4380
- return new ResultAsync(newPromise);
4381
- }
4382
- static fromPromise(promise2, errorFn) {
4383
- const newPromise = promise2.then((value) => new Ok(value)).catch((e) => new Err(errorFn(e)));
4384
- return new ResultAsync(newPromise);
4385
- }
4386
- static fromThrowable(fn, errorFn) {
4387
- return (...args) => {
4388
- return new ResultAsync((() => __awaiter(this, undefined, undefined, function* () {
4389
- try {
4390
- return new Ok(yield fn(...args));
4391
- } catch (error) {
4392
- return new Err(errorFn ? errorFn(error) : error);
4393
- }
4394
- }))());
4395
- };
4396
- }
4397
- static combine(asyncResultList) {
4398
- return combineResultAsyncList(asyncResultList);
4399
- }
4400
- static combineWithAllErrors(asyncResultList) {
4401
- return combineResultAsyncListWithAllErrors(asyncResultList);
4402
- }
4403
- map(f2) {
4404
- return new ResultAsync(this._promise.then((res) => __awaiter(this, undefined, undefined, function* () {
4405
- if (res.isErr()) {
4406
- return new Err(res.error);
4407
- }
4408
- return new Ok(yield f2(res.value));
4409
- })));
4410
- }
4411
- mapErr(f2) {
4412
- return new ResultAsync(this._promise.then((res) => __awaiter(this, undefined, undefined, function* () {
4413
- if (res.isOk()) {
4414
- return new Ok(res.value);
4415
- }
4416
- return new Err(yield f2(res.error));
4417
- })));
4418
- }
4419
- andThen(f2) {
4420
- return new ResultAsync(this._promise.then((res) => {
4421
- if (res.isErr()) {
4422
- return new Err(res.error);
4423
- }
4424
- const newValue = f2(res.value);
4425
- return newValue instanceof ResultAsync ? newValue._promise : newValue;
4426
- }));
4427
- }
4428
- orElse(f2) {
4429
- return new ResultAsync(this._promise.then((res) => __awaiter(this, undefined, undefined, function* () {
4430
- if (res.isErr()) {
4431
- return f2(res.error);
4432
- }
4433
- return new Ok(res.value);
4434
- })));
4435
- }
4436
- match(ok2, _err) {
4437
- return this._promise.then((res) => res.match(ok2, _err));
4438
- }
4439
- unwrapOr(t) {
4440
- return this._promise.then((res) => res.unwrapOr(t));
4441
- }
4442
- safeUnwrap() {
4443
- return __asyncGenerator(this, arguments, function* safeUnwrap_1() {
4444
- return yield __await(yield __await(yield* __asyncDelegator(__asyncValues(yield __await(this._promise.then((res) => res.safeUnwrap()))))));
4445
- });
4446
- }
4447
- then(successCallback, failureCallback) {
4448
- return this._promise.then(successCallback, failureCallback);
4449
- }
4450
- }
4451
- var okAsync = (value) => new ResultAsync(Promise.resolve(new Ok(value)));
4452
- var errAsync = (err2) => new ResultAsync(Promise.resolve(new Err(err2)));
4453
- var fromPromise = ResultAsync.fromPromise;
4454
- var fromSafePromise = ResultAsync.fromSafePromise;
4455
- var fromAsyncThrowable = ResultAsync.fromThrowable;
4456
- var combineResultList = (resultList) => {
4457
- let acc = ok([]);
4458
- for (const result of resultList) {
4459
- if (result.isErr()) {
4460
- acc = err(result.error);
4461
- break;
4462
- } else {
4463
- acc.map((list) => list.push(result.value));
4464
- }
4465
- }
4466
- return acc;
4467
- };
4468
- var combineResultAsyncList = (asyncResultList) => ResultAsync.fromSafePromise(Promise.all(asyncResultList)).andThen(combineResultList);
4469
- var combineResultListWithAllErrors = (resultList) => {
4470
- let acc = ok([]);
4471
- for (const result of resultList) {
4472
- if (result.isErr() && acc.isErr()) {
4473
- acc.error.push(result.error);
4474
- } else if (result.isErr() && acc.isOk()) {
4475
- acc = err([result.error]);
4476
- } else if (result.isOk() && acc.isOk()) {
4477
- acc.value.push(result.value);
4478
- }
4479
- }
4480
- return acc;
4481
- };
4482
- var combineResultAsyncListWithAllErrors = (asyncResultList) => ResultAsync.fromSafePromise(Promise.all(asyncResultList)).andThen(combineResultListWithAllErrors);
4483
- exports.Result = undefined;
4484
- (function(Result) {
4485
- function fromThrowable2(fn, errorFn) {
4486
- return (...args) => {
4487
- try {
4488
- const result = fn(...args);
4489
- return ok(result);
4490
- } catch (e) {
4491
- return err(errorFn ? errorFn(e) : e);
4492
- }
4493
- };
4494
- }
4495
- Result.fromThrowable = fromThrowable2;
4496
- function combine(resultList) {
4497
- return combineResultList(resultList);
4498
- }
4499
- Result.combine = combine;
4500
- function combineWithAllErrors(resultList) {
4501
- return combineResultListWithAllErrors(resultList);
4502
- }
4503
- Result.combineWithAllErrors = combineWithAllErrors;
4504
- })(exports.Result || (exports.Result = {}));
4505
- var ok = (value) => new Ok(value);
4506
- var err = (err2) => new Err(err2);
4507
-
4508
- class Ok {
4509
- constructor(value) {
4510
- this.value = value;
4511
- }
4512
- isOk() {
4513
- return true;
4514
- }
4515
- isErr() {
4516
- return !this.isOk();
4517
- }
4518
- map(f2) {
4519
- return ok(f2(this.value));
4520
- }
4521
- mapErr(_f) {
4522
- return ok(this.value);
4523
- }
4524
- andThen(f2) {
4525
- return f2(this.value);
4526
- }
4527
- orElse(_f) {
4528
- return ok(this.value);
4529
- }
4530
- asyncAndThen(f2) {
4531
- return f2(this.value);
4532
- }
4533
- asyncMap(f2) {
4534
- return ResultAsync.fromSafePromise(f2(this.value));
4535
- }
4536
- unwrapOr(_v) {
4537
- return this.value;
4538
- }
4539
- match(ok2, _err) {
4540
- return ok2(this.value);
4541
- }
4542
- safeUnwrap() {
4543
- const value = this.value;
4544
- return function* () {
4545
- return value;
4546
- }();
4547
- }
4548
- _unsafeUnwrap(_2) {
4549
- return this.value;
4550
- }
4551
- _unsafeUnwrapErr(config) {
4552
- throw createNeverThrowError("Called `_unsafeUnwrapErr` on an Ok", this, config);
4553
- }
4554
- }
4555
-
4556
- class Err {
4557
- constructor(error) {
4558
- this.error = error;
4559
- }
4560
- isOk() {
4561
- return false;
4562
- }
4563
- isErr() {
4564
- return !this.isOk();
4565
- }
4566
- map(_f) {
4567
- return err(this.error);
4568
- }
4569
- mapErr(f2) {
4570
- return err(f2(this.error));
4571
- }
4572
- andThen(_f) {
4573
- return err(this.error);
4574
- }
4575
- orElse(f2) {
4576
- return f2(this.error);
4577
- }
4578
- asyncAndThen(_f) {
4579
- return errAsync(this.error);
4580
- }
4581
- asyncMap(_f) {
4582
- return errAsync(this.error);
4583
- }
4584
- unwrapOr(v2) {
4585
- return v2;
4586
- }
4587
- match(_ok, err2) {
4588
- return err2(this.error);
4589
- }
4590
- safeUnwrap() {
4591
- const error = this.error;
4592
- return function* () {
4593
- yield err(error);
4594
- throw new Error("Do not use this generator out of `safeTry`");
4595
- }();
4596
- }
4597
- _unsafeUnwrap(config) {
4598
- throw createNeverThrowError("Called `_unsafeUnwrap` on an Err", this, config);
4599
- }
4600
- _unsafeUnwrapErr(_2) {
4601
- return this.error;
4602
- }
4603
- }
4604
- var fromThrowable = exports.Result.fromThrowable;
4605
- exports.Err = Err;
4606
- exports.Ok = Ok;
4607
- exports.ResultAsync = ResultAsync;
4608
- exports.err = err;
4609
- exports.errAsync = errAsync;
4610
- exports.fromAsyncThrowable = fromAsyncThrowable;
4611
- exports.fromPromise = fromPromise;
4612
- exports.fromSafePromise = fromSafePromise;
4613
- exports.fromThrowable = fromThrowable;
4614
- exports.ok = ok;
4615
- exports.okAsync = okAsync;
4616
- exports.safeTry = safeTry;
4617
- });
4618
-
4619
4197
  // src/handler.ts
4620
4198
  import * as path from "@stacksjs/path";
4621
- // ../types/src/cron-jobs.ts
4622
- var Every;
4623
- (function(Every2) {
4624
- Every2["Minute"] = "* * * * *";
4625
- Every2["TwoMinutes"] = "*/2 * * * *";
4626
- Every2["FiveMinutes"] = "*/5 * * * *";
4627
- Every2["TenMinutes"] = "*/10 * * * *";
4628
- Every2["FifteenMinutes"] = "*/15 * * * *";
4629
- Every2["ThirtyMinutes"] = "*/30 * * * *";
4630
- Every2["Hour"] = "0 * * * *";
4631
- Every2["HalfHour"] = "0,30 * * * *";
4632
- Every2["Day"] = "0 0 * * *";
4633
- Every2["Week"] = "0 0 * * 0";
4634
- Every2["Weekday"] = "0 0 * * 1-5";
4635
- Every2["Weekend"] = "0 0 * * 0,6";
4636
- Every2["Month"] = "0 0 1 * *";
4637
- Every2["Year"] = "0 0 1 1 *";
4638
- })(Every || (Every = {}));
4639
- // ../types/src/docs.ts
4640
- var SocialLinkIcon;
4641
- (function(SocialLinkIcon2) {
4642
- SocialLinkIcon2["Discord"] = "discord";
4643
- SocialLinkIcon2["Facebook"] = "facebook";
4644
- SocialLinkIcon2["GitHub"] = "github";
4645
- SocialLinkIcon2["Instagram"] = "instagram";
4646
- SocialLinkIcon2["LinkedIn"] = "linkedin";
4647
- SocialLinkIcon2["Mastodon"] = "mastodon";
4648
- SocialLinkIcon2["Slack"] = "slack";
4649
- SocialLinkIcon2["Twitter"] = "twitter";
4650
- SocialLinkIcon2["YouTube"] = "youtube";
4651
- })(SocialLinkIcon || (SocialLinkIcon = {}));
4652
- // ../types/src/exit-code.ts
4653
- var ExitCode;
4654
- (function(ExitCode2) {
4655
- ExitCode2[ExitCode2["Success"] = 0] = "Success";
4656
- ExitCode2[ExitCode2["FatalError"] = 1] = "FatalError";
4657
- ExitCode2[ExitCode2["InvalidArgument"] = 9] = "InvalidArgument";
4658
- })(ExitCode || (ExitCode = {}));
4659
4199
  // ../../../../node_modules/consola/dist/index.mjs
4660
4200
  init_consola_36c0034f();
4661
4201
  init_core();
@@ -4750,38 +4290,394 @@ class ErrorHandler {
4750
4290
  static writeErrorToConsole(err) {
4751
4291
  if (err === "Failed to execute command: bunx biome check --fix" || err === "Failed to execute command: bun --bun storage/framework/core/actions/src/lint/fix.ts")
4752
4292
  console.error(err);
4753
- process.exit(ExitCode.FatalError);
4293
+ process.exit(1 /* FatalError */);
4754
4294
  console.error(err);
4755
4295
  }
4756
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
+ };
4423
+
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);
4757
4557
 
4758
- // src/index.ts
4759
- var import_neverthrow = __toESM(require_index_cjs(), 1);
4760
- var export_okAsync = import_neverthrow.okAsync;
4761
- var export_ok = import_neverthrow.ok;
4762
- var export_fromThrowable = import_neverthrow.fromThrowable;
4763
- var export_fromSafePromise = import_neverthrow.fromSafePromise;
4764
- var export_fromPromise = import_neverthrow.fromPromise;
4765
- var export_errAsync = import_neverthrow.errAsync;
4766
- var export_err = import_neverthrow.err;
4767
- var export_ResultAsync = import_neverthrow.ResultAsync;
4768
- var export_Result = import_neverthrow.Result;
4769
- var export_Ok = import_neverthrow.Ok;
4770
- var export_Err = import_neverthrow.Err;
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
+ }
4771
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;
4772
4665
  export {
4773
- export_okAsync as okAsync,
4774
- export_ok as ok,
4666
+ $okAsync as okAsync,
4667
+ $ok as ok,
4775
4668
  handleError,
4776
- export_fromThrowable as fromThrowable,
4777
- export_fromSafePromise as fromSafePromise,
4778
- export_fromPromise as fromPromise,
4779
- export_errAsync as errAsync,
4780
- export_err as err,
4669
+ $fromThrowable as fromThrowable,
4670
+ $fromSafePromise as fromSafePromise,
4671
+ $fromPromise as fromPromise,
4672
+ $errAsync as errAsync,
4673
+ $err as err,
4781
4674
  StacksError,
4782
- export_ResultAsync as ResultAsync,
4783
- export_Result as Result,
4784
- export_Ok as Ok,
4675
+ $ResultAsync as ResultAsync,
4676
+ $Result as Result,
4677
+ $Ok as Ok,
4785
4678
  ErrorHandler,
4786
- export_Err as Err
4679
+ $Err as Err
4787
4680
  };
4681
+
4682
+ //# debugId=D7F00F8B95217C7764756E2164756E21
4683
+ //# sourceMappingURL=index.js.map