storybook 10.0.6 → 10.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/_browser-chunks/{chunk-RW5PKMWM.js → chunk-HERDX7MO.js} +2 -2
  2. package/dist/_browser-chunks/{chunk-UTNZYD2N.js → chunk-KHNISLMN.js} +81 -37
  3. package/dist/_browser-chunks/{chunk-B4A3ADP3.js → chunk-U2JWIJRX.js} +1 -1
  4. package/dist/_browser-chunks/{chunk-SYS437NN.js → chunk-VQJJDUCI.js} +1 -1
  5. package/dist/_node-chunks/{builder-manager-5BE3TVEG.js → builder-manager-32BKVJNY.js} +12 -12
  6. package/dist/_node-chunks/camelcase-A6XPJDW2.js +18 -0
  7. package/dist/_node-chunks/{chunk-HDJVTGFA.js → chunk-2JVDNALC.js} +7 -7
  8. package/dist/_node-chunks/{chunk-56RMQVQY.js → chunk-2YHAMJAY.js} +7 -7
  9. package/dist/_node-chunks/{chunk-6AFH6BK3.js → chunk-425EMBPZ.js} +297 -768
  10. package/dist/_node-chunks/{chunk-QQXHPA76.js → chunk-4UOXOBHK.js} +22 -16
  11. package/dist/_node-chunks/{chunk-LG2WHY6N.js → chunk-4WKJYHSS.js} +7 -7
  12. package/dist/_node-chunks/{chunk-JSMQSCY6.js → chunk-5VYG646K.js} +7 -7
  13. package/dist/_node-chunks/chunk-A3KNZ5FW.js +18 -0
  14. package/dist/_node-chunks/{chunk-2HHKCD24.js → chunk-C4ROO6RE.js} +7 -7
  15. package/dist/_node-chunks/{chunk-OUWPG727.js → chunk-CWWI6A7W.js} +8 -8
  16. package/dist/_node-chunks/{chunk-FOQLIZOZ.js → chunk-DPKZQ6YX.js} +7 -7
  17. package/dist/_node-chunks/{chunk-LD6DUTZM.js → chunk-EGWLH7SG.js} +10 -10
  18. package/dist/_node-chunks/{chunk-PVNLHT7L.js → chunk-F6NUZ463.js} +9 -9
  19. package/dist/_node-chunks/{chunk-IH6W7E4F.js → chunk-FYLSDVSH.js} +21 -21
  20. package/dist/_node-chunks/{chunk-XONWFYRB.js → chunk-HUKSE3QZ.js} +7 -7
  21. package/dist/_node-chunks/{chunk-F362GMSK.js → chunk-IR6AN3RK.js} +8 -8
  22. package/dist/_node-chunks/{chunk-MERGUJ3N.js → chunk-J5R55OCP.js} +7 -7
  23. package/dist/_node-chunks/{chunk-YDW7IXUU.js → chunk-JBW3FROT.js} +6 -6
  24. package/dist/_node-chunks/{chunk-SQIPJWM7.js → chunk-JFMDUYER.js} +7 -7
  25. package/dist/_node-chunks/{chunk-2GBN7SJF.js → chunk-JVUHT63V.js} +8 -8
  26. package/dist/_node-chunks/{chunk-QQIWF6OB.js → chunk-K373EZTP.js} +12 -12
  27. package/dist/_node-chunks/{chunk-4FUKV4QU.js → chunk-KVR64UU2.js} +529 -284
  28. package/dist/_node-chunks/chunk-NEOS45YA.js +61 -0
  29. package/dist/_node-chunks/{chunk-DL43IE5O.js → chunk-OVJEF4RI.js} +9 -9
  30. package/dist/_node-chunks/{chunk-HRBEKIHV.js → chunk-PK3UILX6.js} +7 -7
  31. package/dist/_node-chunks/{chunk-LJJZ3BAM.js → chunk-QHYQ5G5G.js} +7 -7
  32. package/dist/_node-chunks/{chunk-BJYCX337.js → chunk-TKXE3RQ5.js} +12 -12
  33. package/dist/_node-chunks/{chunk-KPKM4AEB.js → chunk-UOLIYXDF.js} +7 -7
  34. package/dist/_node-chunks/{chunk-6EXM6B54.js → chunk-V4MKEKP7.js} +7 -7
  35. package/dist/_node-chunks/{chunk-JYHAADG7.js → chunk-V7ZKSK5R.js} +7 -7
  36. package/dist/_node-chunks/{chunk-X6O7XFYS.js → chunk-VTD5TIUC.js} +8 -8
  37. package/dist/_node-chunks/{chunk-NIRITJWP.js → chunk-VWYF3SCI.js} +7 -7
  38. package/dist/_node-chunks/{chunk-QNHU6QSD.js → chunk-YUFML7ZZ.js} +7 -7
  39. package/dist/_node-chunks/{chunk-QKSFE2UN.js → chunk-ZDZQHU26.js} +6 -6
  40. package/dist/_node-chunks/{dist-AONDCLQW.js → dist-SD7YZH5A.js} +9 -9
  41. package/dist/_node-chunks/{globby-NXAV5VNT.js → globby-FODEQLAP.js} +9 -9
  42. package/dist/_node-chunks/{lib-W6JDP72S.js → lib-G6JECM5H.js} +7 -7
  43. package/dist/_node-chunks/{mdx-N42X6CFJ-LMR2UFJM.js → mdx-N42X6CFJ-MK2KTUH7.js} +8 -8
  44. package/dist/_node-chunks/{p-limit-LRYXPTYK.js → p-limit-IJ5D4B4L.js} +10 -7
  45. package/dist/_node-chunks/{plugin-FM35FQEB.js → plugin-NXD266M2.js} +10 -10
  46. package/dist/_node-chunks/{plugin-OJ7NTAAH.js → plugin-SAVMZDUL.js} +10 -10
  47. package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-V7WJU2MN.js → webpack-inject-mocker-runtime-plugin-2PG2OIHX.js} +30 -24
  48. package/dist/_node-chunks/{webpack-mock-plugin-B3R7K7R2.js → webpack-mock-plugin-CQH72GQV.js} +9 -9
  49. package/dist/babel/index.d.ts +671 -335
  50. package/dist/babel/index.js +11 -11
  51. package/dist/bin/core.js +12 -12
  52. package/dist/bin/dispatcher.js +11 -11
  53. package/dist/bin/loader.js +9 -9
  54. package/dist/cli/index.js +77 -82
  55. package/dist/common/index.js +20 -20
  56. package/dist/components/index.js +394 -176
  57. package/dist/core-server/index.js +55 -44
  58. package/dist/core-server/presets/common-manager.js +238 -230
  59. package/dist/core-server/presets/common-override-preset.js +9 -9
  60. package/dist/core-server/presets/common-preset.js +24 -23
  61. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
  62. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
  63. package/dist/csf/index.js +3 -3
  64. package/dist/csf-tools/index.js +9 -9
  65. package/dist/docs-tools/index.js +2 -2
  66. package/dist/manager/globals-runtime.js +4291 -4116
  67. package/dist/manager/runtime.js +1 -1
  68. package/dist/manager-api/index.js +3 -3
  69. package/dist/node-logger/index.js +576 -531
  70. package/dist/preview/runtime.js +953 -891
  71. package/dist/preview-api/index.js +3 -3
  72. package/dist/server-errors.js +10 -10
  73. package/dist/telemetry/index.js +24 -24
  74. package/dist/test/index.js +609 -547
  75. package/dist/theming/index.d.ts +3363 -2597
  76. package/package.json +2 -2
  77. package/dist/_node-chunks/camelcase-AEFVF77F.js +0 -18
  78. package/dist/_node-chunks/chunk-HOUX2ZA6.js +0 -18
  79. package/dist/_node-chunks/chunk-PHNGYIYJ.js +0 -61
@@ -1,43 +1,43 @@
1
- import CJS_COMPAT_NODE_URL_7dkkmtio2yt from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_7dkkmtio2yt from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_7dkkmtio2yt from "node:module";
1
+ import CJS_COMPAT_NODE_URL_39zvq8kkt8 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_39zvq8kkt8 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_39zvq8kkt8 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_7dkkmtio2yt.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_7dkkmtio2yt.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_7dkkmtio2yt.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_39zvq8kkt8.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_39zvq8kkt8.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_39zvq8kkt8.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  require_pretty_hrtime
14
- } from "../_node-chunks/chunk-JYHAADG7.js";
14
+ } from "../_node-chunks/chunk-V7ZKSK5R.js";
15
15
  import {
16
16
  ansi_styles_default,
17
17
  boxen,
18
18
  require_string_width,
19
19
  stripAnsi
20
- } from "../_node-chunks/chunk-X6O7XFYS.js";
21
- import "../_node-chunks/chunk-HDJVTGFA.js";
20
+ } from "../_node-chunks/chunk-VTD5TIUC.js";
21
+ import "../_node-chunks/chunk-2JVDNALC.js";
22
22
  import {
23
23
  execaSync,
24
24
  optionalEnvToBoolean
25
- } from "../_node-chunks/chunk-PVNLHT7L.js";
26
- import "../_node-chunks/chunk-2HHKCD24.js";
25
+ } from "../_node-chunks/chunk-F6NUZ463.js";
26
+ import "../_node-chunks/chunk-C4ROO6RE.js";
27
27
  import {
28
28
  require_prompts,
29
29
  require_src
30
- } from "../_node-chunks/chunk-NIRITJWP.js";
30
+ } from "../_node-chunks/chunk-VWYF3SCI.js";
31
31
  import {
32
32
  require_picocolors
33
- } from "../_node-chunks/chunk-LG2WHY6N.js";
33
+ } from "../_node-chunks/chunk-4WKJYHSS.js";
34
34
  import {
35
35
  __commonJS,
36
36
  __export,
37
37
  __name,
38
38
  __require,
39
39
  __toESM
40
- } from "../_node-chunks/chunk-YDW7IXUU.js";
40
+ } from "../_node-chunks/chunk-JBW3FROT.js";
41
41
 
42
42
  // ../node_modules/are-we-there-yet/lib/tracker-base.js
43
43
  var require_tracker_base = __commonJS({
@@ -290,8 +290,8 @@ var require_console_control_strings = __commonJS({
290
290
  exports.eraseLine = /* @__PURE__ */ __name(function eraseLine() {
291
291
  return prefix + "K";
292
292
  }, "eraseLine");
293
- exports.goto = function(x, y2) {
294
- return prefix + y2 + ";" + x + "H";
293
+ exports.goto = function(x2, y2) {
294
+ return prefix + y2 + ";" + x2 + "H";
295
295
  };
296
296
  exports.gotoSOL = function() {
297
297
  return "\r";
@@ -439,14 +439,14 @@ var require_aproba = __commonJS({
439
439
  __name(isArguments, "isArguments");
440
440
  var types = {
441
441
  "*": { label: "any", check: /* @__PURE__ */ __name(() => true, "check") },
442
- A: { label: "array", check: /* @__PURE__ */ __name((_2) => Array.isArray(_2) || isArguments(_2), "check") },
443
- S: { label: "string", check: /* @__PURE__ */ __name((_2) => typeof _2 === "string", "check") },
444
- N: { label: "number", check: /* @__PURE__ */ __name((_2) => typeof _2 === "number", "check") },
445
- F: { label: "function", check: /* @__PURE__ */ __name((_2) => typeof _2 === "function", "check") },
446
- O: { label: "object", check: /* @__PURE__ */ __name((_2) => typeof _2 === "object" && _2 != null && !types.A.check(_2) && !types.E.check(_2), "check") },
447
- B: { label: "boolean", check: /* @__PURE__ */ __name((_2) => typeof _2 === "boolean", "check") },
448
- E: { label: "error", check: /* @__PURE__ */ __name((_2) => _2 instanceof Error, "check") },
449
- Z: { label: "null", check: /* @__PURE__ */ __name((_2) => _2 == null, "check") }
442
+ A: { label: "array", check: /* @__PURE__ */ __name((_) => Array.isArray(_) || isArguments(_), "check") },
443
+ S: { label: "string", check: /* @__PURE__ */ __name((_) => typeof _ === "string", "check") },
444
+ N: { label: "number", check: /* @__PURE__ */ __name((_) => typeof _ === "number", "check") },
445
+ F: { label: "function", check: /* @__PURE__ */ __name((_) => typeof _ === "function", "check") },
446
+ O: { label: "object", check: /* @__PURE__ */ __name((_) => typeof _ === "object" && _ != null && !types.A.check(_) && !types.E.check(_), "check") },
447
+ B: { label: "boolean", check: /* @__PURE__ */ __name((_) => typeof _ === "boolean", "check") },
448
+ E: { label: "error", check: /* @__PURE__ */ __name((_) => _ instanceof Error, "check") },
449
+ Z: { label: "null", check: /* @__PURE__ */ __name((_) => _ == null, "check") }
450
450
  };
451
451
  function addSchema(schema, arity) {
452
452
  const group = arity[schema.length] = arity[schema.length] || [];
@@ -485,7 +485,7 @@ var require_aproba = __commonJS({
485
485
  return typeCheck(args[ii]);
486
486
  });
487
487
  if (!newMatching.length) {
488
- const labels = matching.map((_2) => types[_2[ii]].label).filter((_2) => _2 != null);
488
+ const labels = matching.map((_) => types[_[ii]].label).filter((_) => _ != null);
489
489
  throw invalidType(ii, labels, args[ii]);
490
490
  }
491
491
  matching = newMatching;
@@ -1298,7 +1298,7 @@ var require_cjs = __commonJS({
1298
1298
  const fn = this.#sigListeners[sig];
1299
1299
  if (fn)
1300
1300
  this.#process.on(sig, fn);
1301
- } catch (_2) {
1301
+ } catch (_) {
1302
1302
  }
1303
1303
  }
1304
1304
  this.#process.emit = (ev, ...a) => {
@@ -1320,7 +1320,7 @@ var require_cjs = __commonJS({
1320
1320
  }
1321
1321
  try {
1322
1322
  this.#process.removeListener(sig, listener);
1323
- } catch (_2) {
1323
+ } catch (_) {
1324
1324
  }
1325
1325
  });
1326
1326
  this.#process.emit = this.#originalProcessEmit;
@@ -2016,8 +2016,8 @@ var require_log = __commonJS({
2016
2016
  if (P2[0] === "_") {
2017
2017
  return;
2018
2018
  }
2019
- if (trackerConstructors.filter(function(C2) {
2020
- return C2 === P2;
2019
+ if (trackerConstructors.filter(function(C) {
2020
+ return C === P2;
2021
2021
  }).length) {
2022
2022
  return;
2023
2023
  }
@@ -2033,18 +2033,18 @@ var require_log = __commonJS({
2033
2033
  };
2034
2034
  });
2035
2035
  if (tracker instanceof Progress.TrackerGroup) {
2036
- trackerConstructors.forEach(function(C2) {
2037
- var func = tracker[C2];
2038
- tracker[C2] = function() {
2036
+ trackerConstructors.forEach(function(C) {
2037
+ var func = tracker[C];
2038
+ tracker[C] = function() {
2039
2039
  return mixinLog(func.apply(tracker, arguments));
2040
2040
  };
2041
2041
  });
2042
2042
  }
2043
2043
  return tracker;
2044
2044
  }, "mixinLog");
2045
- trackerConstructors.forEach(function(C2) {
2046
- log2[C2] = function() {
2047
- return mixinLog(this.tracker[C2].apply(this.tracker, arguments));
2045
+ trackerConstructors.forEach(function(C) {
2046
+ log2[C] = function() {
2047
+ return mixinLog(this.tracker[C].apply(this.tracker, arguments));
2048
2048
  };
2049
2049
  });
2050
2050
  log2.clearProgress = function(cb) {
@@ -2269,13 +2269,13 @@ var require_eastasianwidth = __commonJS({
2269
2269
  module.exports = eaw;
2270
2270
  }
2271
2271
  eaw.eastAsianWidth = function(character) {
2272
- var x = character.charCodeAt(0);
2272
+ var x2 = character.charCodeAt(0);
2273
2273
  var y2 = character.length == 2 ? character.charCodeAt(1) : 0;
2274
- var codePoint = x;
2275
- if (55296 <= x && x <= 56319 && (56320 <= y2 && y2 <= 57343)) {
2276
- x &= 1023;
2274
+ var codePoint = x2;
2275
+ if (55296 <= x2 && x2 <= 56319 && (56320 <= y2 && y2 <= 57343)) {
2276
+ x2 &= 1023;
2277
2277
  y2 &= 1023;
2278
- codePoint = x << 10 | y2;
2278
+ codePoint = x2 << 10 | y2;
2279
2279
  codePoint += 65536;
2280
2280
  }
2281
2281
  if (12288 == codePoint || 65281 <= codePoint && codePoint <= 65376 || 65504 <= codePoint && codePoint <= 65510) {
@@ -2381,93 +2381,93 @@ __export(logger_exports, {
2381
2381
  // ../node_modules/@clack/core/dist/index.mjs
2382
2382
  var import_picocolors = __toESM(require_picocolors(), 1);
2383
2383
  var import_sisteransi = __toESM(require_src(), 1);
2384
- import { stdout as H, stdin as z } from "node:process";
2385
- import * as V from "node:readline";
2386
- import rt from "node:readline";
2387
- import { ReadStream as Y, WriteStream as nt } from "node:tty";
2384
+ import { stdout as z, stdin as Y } from "node:process";
2385
+ import * as k from "node:readline";
2386
+ import nt from "node:readline";
2387
+ import { ReadStream as q } from "node:tty";
2388
2388
  var ut = /* @__PURE__ */ __name((t2) => t2 === 161 || t2 === 164 || t2 === 167 || t2 === 168 || t2 === 170 || t2 === 173 || t2 === 174 || t2 >= 176 && t2 <= 180 || t2 >= 182 && t2 <= 186 || t2 >= 188 && t2 <= 191 || t2 === 198 || t2 === 208 || t2 === 215 || t2 === 216 || t2 >= 222 && t2 <= 225 || t2 === 230 || t2 >= 232 && t2 <= 234 || t2 === 236 || t2 === 237 || t2 === 240 || t2 === 242 || t2 === 243 || t2 >= 247 && t2 <= 250 || t2 === 252 || t2 === 254 || t2 === 257 || t2 === 273 || t2 === 275 || t2 === 283 || t2 === 294 || t2 === 295 || t2 === 299 || t2 >= 305 && t2 <= 307 || t2 === 312 || t2 >= 319 && t2 <= 322 || t2 === 324 || t2 >= 328 && t2 <= 331 || t2 === 333 || t2 === 338 || t2 === 339 || t2 === 358 || t2 === 359 || t2 === 363 || t2 === 462 || t2 === 464 || t2 === 466 || t2 === 468 || t2 === 470 || t2 === 472 || t2 === 474 || t2 === 476 || t2 === 593 || t2 === 609 || t2 === 708 || t2 === 711 || t2 >= 713 && t2 <= 715 || t2 === 717 || t2 === 720 || t2 >= 728 && t2 <= 731 || t2 === 733 || t2 === 735 || t2 >= 768 && t2 <= 879 || t2 >= 913 && t2 <= 929 || t2 >= 931 && t2 <= 937 || t2 >= 945 && t2 <= 961 || t2 >= 963 && t2 <= 969 || t2 === 1025 || t2 >= 1040 && t2 <= 1103 || t2 === 1105 || t2 === 8208 || t2 >= 8211 && t2 <= 8214 || t2 === 8216 || t2 === 8217 || t2 === 8220 || t2 === 8221 || t2 >= 8224 && t2 <= 8226 || t2 >= 8228 && t2 <= 8231 || t2 === 8240 || t2 === 8242 || t2 === 8243 || t2 === 8245 || t2 === 8251 || t2 === 8254 || t2 === 8308 || t2 === 8319 || t2 >= 8321 && t2 <= 8324 || t2 === 8364 || t2 === 8451 || t2 === 8453 || t2 === 8457 || t2 === 8467 || t2 === 8470 || t2 === 8481 || t2 === 8482 || t2 === 8486 || t2 === 8491 || t2 === 8531 || t2 === 8532 || t2 >= 8539 && t2 <= 8542 || t2 >= 8544 && t2 <= 8555 || t2 >= 8560 && t2 <= 8569 || t2 === 8585 || t2 >= 8592 && t2 <= 8601 || t2 === 8632 || t2 === 8633 || t2 === 8658 || t2 === 8660 || t2 === 8679 || t2 === 8704 || t2 === 8706 || t2 === 8707 || t2 === 8711 || t2 === 8712 || t2 === 8715 || t2 === 8719 || t2 === 8721 || t2 === 8725 || t2 === 8730 || t2 >= 8733 && t2 <= 8736 || t2 === 8739 || t2 === 8741 || t2 >= 8743 && t2 <= 8748 || t2 === 8750 || t2 >= 8756 && t2 <= 8759 || t2 === 8764 || t2 === 8765 || t2 === 8776 || t2 === 8780 || t2 === 8786 || t2 === 8800 || t2 === 8801 || t2 >= 8804 && t2 <= 8807 || t2 === 8810 || t2 === 8811 || t2 === 8814 || t2 === 8815 || t2 === 8834 || t2 === 8835 || t2 === 8838 || t2 === 8839 || t2 === 8853 || t2 === 8857 || t2 === 8869 || t2 === 8895 || t2 === 8978 || t2 >= 9312 && t2 <= 9449 || t2 >= 9451 && t2 <= 9547 || t2 >= 9552 && t2 <= 9587 || t2 >= 9600 && t2 <= 9615 || t2 >= 9618 && t2 <= 9621 || t2 === 9632 || t2 === 9633 || t2 >= 9635 && t2 <= 9641 || t2 === 9650 || t2 === 9651 || t2 === 9654 || t2 === 9655 || t2 === 9660 || t2 === 9661 || t2 === 9664 || t2 === 9665 || t2 >= 9670 && t2 <= 9672 || t2 === 9675 || t2 >= 9678 && t2 <= 9681 || t2 >= 9698 && t2 <= 9701 || t2 === 9711 || t2 === 9733 || t2 === 9734 || t2 === 9737 || t2 === 9742 || t2 === 9743 || t2 === 9756 || t2 === 9758 || t2 === 9792 || t2 === 9794 || t2 === 9824 || t2 === 9825 || t2 >= 9827 && t2 <= 9829 || t2 >= 9831 && t2 <= 9834 || t2 === 9836 || t2 === 9837 || t2 === 9839 || t2 === 9886 || t2 === 9887 || t2 === 9919 || t2 >= 9926 && t2 <= 9933 || t2 >= 9935 && t2 <= 9939 || t2 >= 9941 && t2 <= 9953 || t2 === 9955 || t2 === 9960 || t2 === 9961 || t2 >= 9963 && t2 <= 9969 || t2 === 9972 || t2 >= 9974 && t2 <= 9977 || t2 === 9979 || t2 === 9980 || t2 === 9982 || t2 === 9983 || t2 === 10045 || t2 >= 10102 && t2 <= 10111 || t2 >= 11094 && t2 <= 11097 || t2 >= 12872 && t2 <= 12879 || t2 >= 57344 && t2 <= 63743 || t2 >= 65024 && t2 <= 65039 || t2 === 65533 || t2 >= 127232 && t2 <= 127242 || t2 >= 127248 && t2 <= 127277 || t2 >= 127280 && t2 <= 127337 || t2 >= 127344 && t2 <= 127373 || t2 === 127375 || t2 === 127376 || t2 >= 127387 && t2 <= 127404 || t2 >= 917760 && t2 <= 917999 || t2 >= 983040 && t2 <= 1048573 || t2 >= 1048576 && t2 <= 1114109, "ut");
2389
2389
  var ot = /* @__PURE__ */ __name((t2) => t2 === 12288 || t2 >= 65281 && t2 <= 65376 || t2 >= 65504 && t2 <= 65510, "ot");
2390
2390
  var at = /* @__PURE__ */ __name((t2) => t2 >= 4352 && t2 <= 4447 || t2 === 8986 || t2 === 8987 || t2 === 9001 || t2 === 9002 || t2 >= 9193 && t2 <= 9196 || t2 === 9200 || t2 === 9203 || t2 === 9725 || t2 === 9726 || t2 === 9748 || t2 === 9749 || t2 >= 9800 && t2 <= 9811 || t2 === 9855 || t2 === 9875 || t2 === 9889 || t2 === 9898 || t2 === 9899 || t2 === 9917 || t2 === 9918 || t2 === 9924 || t2 === 9925 || t2 === 9934 || t2 === 9940 || t2 === 9962 || t2 === 9970 || t2 === 9971 || t2 === 9973 || t2 === 9978 || t2 === 9981 || t2 === 9989 || t2 === 9994 || t2 === 9995 || t2 === 10024 || t2 === 10060 || t2 === 10062 || t2 >= 10067 && t2 <= 10069 || t2 === 10071 || t2 >= 10133 && t2 <= 10135 || t2 === 10160 || t2 === 10175 || t2 === 11035 || t2 === 11036 || t2 === 11088 || t2 === 11093 || t2 >= 11904 && t2 <= 11929 || t2 >= 11931 && t2 <= 12019 || t2 >= 12032 && t2 <= 12245 || t2 >= 12272 && t2 <= 12287 || t2 >= 12289 && t2 <= 12350 || t2 >= 12353 && t2 <= 12438 || t2 >= 12441 && t2 <= 12543 || t2 >= 12549 && t2 <= 12591 || t2 >= 12593 && t2 <= 12686 || t2 >= 12688 && t2 <= 12771 || t2 >= 12783 && t2 <= 12830 || t2 >= 12832 && t2 <= 12871 || t2 >= 12880 && t2 <= 19903 || t2 >= 19968 && t2 <= 42124 || t2 >= 42128 && t2 <= 42182 || t2 >= 43360 && t2 <= 43388 || t2 >= 44032 && t2 <= 55203 || t2 >= 63744 && t2 <= 64255 || t2 >= 65040 && t2 <= 65049 || t2 >= 65072 && t2 <= 65106 || t2 >= 65108 && t2 <= 65126 || t2 >= 65128 && t2 <= 65131 || t2 >= 94176 && t2 <= 94180 || t2 === 94192 || t2 === 94193 || t2 >= 94208 && t2 <= 100343 || t2 >= 100352 && t2 <= 101589 || t2 >= 101632 && t2 <= 101640 || t2 >= 110576 && t2 <= 110579 || t2 >= 110581 && t2 <= 110587 || t2 === 110589 || t2 === 110590 || t2 >= 110592 && t2 <= 110882 || t2 === 110898 || t2 >= 110928 && t2 <= 110930 || t2 === 110933 || t2 >= 110948 && t2 <= 110951 || t2 >= 110960 && t2 <= 111355 || t2 === 126980 || t2 === 127183 || t2 === 127374 || t2 >= 127377 && t2 <= 127386 || t2 >= 127488 && t2 <= 127490 || t2 >= 127504 && t2 <= 127547 || t2 >= 127552 && t2 <= 127560 || t2 === 127568 || t2 === 127569 || t2 >= 127584 && t2 <= 127589 || t2 >= 127744 && t2 <= 127776 || t2 >= 127789 && t2 <= 127797 || t2 >= 127799 && t2 <= 127868 || t2 >= 127870 && t2 <= 127891 || t2 >= 127904 && t2 <= 127946 || t2 >= 127951 && t2 <= 127955 || t2 >= 127968 && t2 <= 127984 || t2 === 127988 || t2 >= 127992 && t2 <= 128062 || t2 === 128064 || t2 >= 128066 && t2 <= 128252 || t2 >= 128255 && t2 <= 128317 || t2 >= 128331 && t2 <= 128334 || t2 >= 128336 && t2 <= 128359 || t2 === 128378 || t2 === 128405 || t2 === 128406 || t2 === 128420 || t2 >= 128507 && t2 <= 128591 || t2 >= 128640 && t2 <= 128709 || t2 === 128716 || t2 >= 128720 && t2 <= 128722 || t2 >= 128725 && t2 <= 128727 || t2 >= 128732 && t2 <= 128735 || t2 === 128747 || t2 === 128748 || t2 >= 128756 && t2 <= 128764 || t2 >= 128992 && t2 <= 129003 || t2 === 129008 || t2 >= 129292 && t2 <= 129338 || t2 >= 129340 && t2 <= 129349 || t2 >= 129351 && t2 <= 129535 || t2 >= 129648 && t2 <= 129660 || t2 >= 129664 && t2 <= 129672 || t2 >= 129680 && t2 <= 129725 || t2 >= 129727 && t2 <= 129733 || t2 >= 129742 && t2 <= 129755 || t2 >= 129760 && t2 <= 129768 || t2 >= 129776 && t2 <= 129784 || t2 >= 131072 && t2 <= 196605 || t2 >= 196608 && t2 <= 262141, "at");
2391
- var R = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y;
2392
- var k = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y;
2393
- var y = /\t{1,1000}/y;
2394
- var N = /[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/yu;
2395
- var M = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y;
2391
+ var N = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y;
2392
+ var y = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y;
2393
+ var M = /\t{1,1000}/y;
2394
+ var O = /[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/yu;
2395
+ var L = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y;
2396
2396
  var lt = /\p{M}+/gu;
2397
2397
  var ht = { limit: 1 / 0, ellipsis: "" };
2398
- var q = /* @__PURE__ */ __name((t2, s = {}, e = {}) => {
2399
- const i = s.limit ?? 1 / 0, r = s.ellipsis ?? "", n = s?.ellipsisWidth ?? (r ? q(r, ht, e).width : 0), F = e.ansiWidth ?? 0, l = e.controlWidth ?? 0, a = e.tabWidth ?? 8, v = e.ambiguousWidth ?? 1, g = e.emojiWidth ?? 2, m = e.fullWidthWidth ?? 2, A = e.regularWidth ?? 1, S = e.wideWidth ?? 2;
2400
- let o = 0, u2 = 0, p = t2.length, E = 0, f = false, d = p, _2 = Math.max(0, i - n), b2 = 0, x = 0, h = 0, c = 0;
2398
+ var J = /* @__PURE__ */ __name((t2, s = {}, e = {}) => {
2399
+ const i = s.limit ?? 1 / 0, r = s.ellipsis ?? "", n = s?.ellipsisWidth ?? (r ? J(r, ht, e).width : 0), F = e.ansiWidth ?? 0, l = e.controlWidth ?? 0, a = e.tabWidth ?? 8, v = e.ambiguousWidth ?? 1, g = e.emojiWidth ?? 2, m = e.fullWidthWidth ?? 2, A = e.regularWidth ?? 1, V = e.wideWidth ?? 2;
2400
+ let o = 0, u = 0, p = t2.length, E = 0, f = false, d2 = p, _ = Math.max(0, i - n), C = 0, x2 = 0, h = 0, c = 0;
2401
2401
  t: for (; ; ) {
2402
- if (x > b2 || u2 >= p && u2 > o) {
2403
- const it = t2.slice(b2, x) || t2.slice(o, u2);
2402
+ if (x2 > C || u >= p && u > o) {
2403
+ const rt = t2.slice(C, x2) || t2.slice(o, u);
2404
2404
  E = 0;
2405
- for (const K of it.replaceAll(lt, "")) {
2406
- const T2 = K.codePointAt(0) || 0;
2407
- if (ot(T2) ? c = m : at(T2) ? c = S : v !== A && ut(T2) ? c = v : c = A, h + c > _2 && (d = Math.min(d, Math.max(b2, o) + E)), h + c > i) {
2405
+ for (const H2 of rt.replaceAll(lt, "")) {
2406
+ const R2 = H2.codePointAt(0) || 0;
2407
+ if (ot(R2) ? c = m : at(R2) ? c = V : v !== A && ut(R2) ? c = v : c = A, h + c > _ && (d2 = Math.min(d2, Math.max(C, o) + E)), h + c > i) {
2408
2408
  f = true;
2409
2409
  break t;
2410
2410
  }
2411
- E += K.length, h += c;
2411
+ E += H2.length, h += c;
2412
2412
  }
2413
- b2 = x = 0;
2413
+ C = x2 = 0;
2414
2414
  }
2415
- if (u2 >= p) break;
2416
- if (M.lastIndex = u2, M.test(t2)) {
2417
- if (E = M.lastIndex - u2, c = E * A, h + c > _2 && (d = Math.min(d, u2 + Math.floor((_2 - h) / A))), h + c > i) {
2415
+ if (u >= p) break;
2416
+ if (L.lastIndex = u, L.test(t2)) {
2417
+ if (E = L.lastIndex - u, c = E * A, h + c > _ && (d2 = Math.min(d2, u + Math.floor((_ - h) / A))), h + c > i) {
2418
2418
  f = true;
2419
2419
  break;
2420
2420
  }
2421
- h += c, b2 = o, x = u2, u2 = o = M.lastIndex;
2421
+ h += c, C = o, x2 = u, u = o = L.lastIndex;
2422
2422
  continue;
2423
2423
  }
2424
- if (R.lastIndex = u2, R.test(t2)) {
2425
- if (h + F > _2 && (d = Math.min(d, u2)), h + F > i) {
2424
+ if (N.lastIndex = u, N.test(t2)) {
2425
+ if (h + F > _ && (d2 = Math.min(d2, u)), h + F > i) {
2426
2426
  f = true;
2427
2427
  break;
2428
2428
  }
2429
- h += F, b2 = o, x = u2, u2 = o = R.lastIndex;
2429
+ h += F, C = o, x2 = u, u = o = N.lastIndex;
2430
2430
  continue;
2431
2431
  }
2432
- if (k.lastIndex = u2, k.test(t2)) {
2433
- if (E = k.lastIndex - u2, c = E * l, h + c > _2 && (d = Math.min(d, u2 + Math.floor((_2 - h) / l))), h + c > i) {
2432
+ if (y.lastIndex = u, y.test(t2)) {
2433
+ if (E = y.lastIndex - u, c = E * l, h + c > _ && (d2 = Math.min(d2, u + Math.floor((_ - h) / l))), h + c > i) {
2434
2434
  f = true;
2435
2435
  break;
2436
2436
  }
2437
- h += c, b2 = o, x = u2, u2 = o = k.lastIndex;
2437
+ h += c, C = o, x2 = u, u = o = y.lastIndex;
2438
2438
  continue;
2439
2439
  }
2440
- if (y.lastIndex = u2, y.test(t2)) {
2441
- if (E = y.lastIndex - u2, c = E * a, h + c > _2 && (d = Math.min(d, u2 + Math.floor((_2 - h) / a))), h + c > i) {
2440
+ if (M.lastIndex = u, M.test(t2)) {
2441
+ if (E = M.lastIndex - u, c = E * a, h + c > _ && (d2 = Math.min(d2, u + Math.floor((_ - h) / a))), h + c > i) {
2442
2442
  f = true;
2443
2443
  break;
2444
2444
  }
2445
- h += c, b2 = o, x = u2, u2 = o = y.lastIndex;
2445
+ h += c, C = o, x2 = u, u = o = M.lastIndex;
2446
2446
  continue;
2447
2447
  }
2448
- if (N.lastIndex = u2, N.test(t2)) {
2449
- if (h + g > _2 && (d = Math.min(d, u2)), h + g > i) {
2448
+ if (O.lastIndex = u, O.test(t2)) {
2449
+ if (h + g > _ && (d2 = Math.min(d2, u)), h + g > i) {
2450
2450
  f = true;
2451
2451
  break;
2452
2452
  }
2453
- h += g, b2 = o, x = u2, u2 = o = N.lastIndex;
2453
+ h += g, C = o, x2 = u, u = o = O.lastIndex;
2454
2454
  continue;
2455
2455
  }
2456
- u2 += 1;
2456
+ u += 1;
2457
2457
  }
2458
- return { width: f ? _2 : h, index: f ? d : p, truncated: f, ellipsed: f && i >= n };
2459
- }, "q");
2458
+ return { width: f ? _ : h, index: f ? d2 : p, truncated: f, ellipsed: f && i >= n };
2459
+ }, "J");
2460
2460
  var ct = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 };
2461
- var w = /* @__PURE__ */ __name((t2, s = {}) => q(t2, ct, s).width, "w");
2462
- var L = "\x1B";
2463
- var J = "\x9B";
2461
+ var S = /* @__PURE__ */ __name((t2, s = {}) => J(t2, ct, s).width, "S");
2462
+ var W = "\x1B";
2463
+ var X = "\x9B";
2464
2464
  var Ft = 39;
2465
2465
  var P = "\x07";
2466
- var X = "[";
2466
+ var Z = "[";
2467
2467
  var pt = "]";
2468
- var Z = "m";
2469
- var O = `${pt}8;;`;
2470
- var Q = new RegExp(`(?:\\${X}(?<code>\\d+)m|\\${O}(?<uri>.*)${P})`, "y");
2468
+ var Q = "m";
2469
+ var j = `${pt}8;;`;
2470
+ var tt = new RegExp(`(?:\\${Z}(?<code>\\d+)m|\\${j}(?<uri>.*)${P})`, "y");
2471
2471
  var ft = /* @__PURE__ */ __name((t2) => {
2472
2472
  if (t2 >= 30 && t2 <= 37 || t2 >= 90 && t2 <= 97) return 39;
2473
2473
  if (t2 >= 40 && t2 <= 47 || t2 >= 100 && t2 <= 107) return 49;
@@ -2479,22 +2479,22 @@ var ft = /* @__PURE__ */ __name((t2) => {
2479
2479
  if (t2 === 9) return 29;
2480
2480
  if (t2 === 0) return 0;
2481
2481
  }, "ft");
2482
- var tt = /* @__PURE__ */ __name((t2) => `${L}${X}${t2}${Z}`, "tt");
2483
- var st = /* @__PURE__ */ __name((t2) => `${L}${O}${t2}${P}`, "st");
2484
- var dt = /* @__PURE__ */ __name((t2) => t2.map((s) => w(s)), "dt");
2485
- var j = /* @__PURE__ */ __name((t2, s, e) => {
2482
+ var st = /* @__PURE__ */ __name((t2) => `${W}${Z}${t2}${Q}`, "st");
2483
+ var et = /* @__PURE__ */ __name((t2) => `${W}${j}${t2}${P}`, "et");
2484
+ var dt = /* @__PURE__ */ __name((t2) => t2.map((s) => S(s)), "dt");
2485
+ var U = /* @__PURE__ */ __name((t2, s, e) => {
2486
2486
  const i = s[Symbol.iterator]();
2487
- let r = false, n = false, F = t2.at(-1), l = F === void 0 ? 0 : w(F), a = i.next(), v = i.next(), g = 0;
2487
+ let r = false, n = false, F = t2.at(-1), l = F === void 0 ? 0 : S(F), a = i.next(), v = i.next(), g = 0;
2488
2488
  for (; !a.done; ) {
2489
- const m = a.value, A = w(m);
2490
- l + A <= e ? t2[t2.length - 1] += m : (t2.push(m), l = 0), (m === L || m === J) && (r = true, n = s.startsWith(O, g + 1)), r ? n ? m === P && (r = false, n = false) : m === Z && (r = false) : (l += A, l === e && !v.done && (t2.push(""), l = 0)), a = v, v = i.next(), g += m.length;
2489
+ const m = a.value, A = S(m);
2490
+ l + A <= e ? t2[t2.length - 1] += m : (t2.push(m), l = 0), (m === W || m === X) && (r = true, n = s.startsWith(j, g + 1)), r ? n ? m === P && (r = false, n = false) : m === Q && (r = false) : (l += A, l === e && !v.done && (t2.push(""), l = 0)), a = v, v = i.next(), g += m.length;
2491
2491
  }
2492
2492
  F = t2.at(-1), !l && F !== void 0 && F.length > 0 && t2.length > 1 && (t2[t2.length - 2] += t2.pop());
2493
- }, "j");
2493
+ }, "U");
2494
2494
  var mt = /* @__PURE__ */ __name((t2) => {
2495
2495
  const s = t2.split(" ");
2496
2496
  let e = s.length;
2497
- for (; e > 0 && !(w(s[e - 1]) > 0); ) e--;
2497
+ for (; e > 0 && !(S(s[e - 1]) > 0); ) e--;
2498
2498
  return e === s.length ? t2 : s.slice(0, e).join(" ") + s.slice(e).join("");
2499
2499
  }, "mt");
2500
2500
  var gt = /* @__PURE__ */ __name((t2, s, e = {}) => {
@@ -2502,64 +2502,64 @@ var gt = /* @__PURE__ */ __name((t2, s, e = {}) => {
2502
2502
  let i = "", r, n;
2503
2503
  const F = t2.split(" "), l = dt(F);
2504
2504
  let a = [""];
2505
- for (const [o, u2] of F.entries()) {
2505
+ for (const [o, u] of F.entries()) {
2506
2506
  e.trim !== false && (a[a.length - 1] = (a.at(-1) ?? "").trimStart());
2507
- let p = w(a.at(-1) ?? "");
2507
+ let p = S(a.at(-1) ?? "");
2508
2508
  if (o !== 0 && (p >= s && (e.wordWrap === false || e.trim === false) && (a.push(""), p = 0), (p > 0 || e.trim === false) && (a[a.length - 1] += " ", p++)), e.hard && l[o] > s) {
2509
2509
  const E = s - p, f = 1 + Math.floor((l[o] - E - 1) / s);
2510
- Math.floor((l[o] - 1) / s) < f && a.push(""), j(a, u2, s);
2510
+ Math.floor((l[o] - 1) / s) < f && a.push(""), U(a, u, s);
2511
2511
  continue;
2512
2512
  }
2513
2513
  if (p + l[o] > s && p > 0 && l[o] > 0) {
2514
2514
  if (e.wordWrap === false && p < s) {
2515
- j(a, u2, s);
2515
+ U(a, u, s);
2516
2516
  continue;
2517
2517
  }
2518
2518
  a.push("");
2519
2519
  }
2520
2520
  if (p + l[o] > s && e.wordWrap === false) {
2521
- j(a, u2, s);
2521
+ U(a, u, s);
2522
2522
  continue;
2523
2523
  }
2524
- a[a.length - 1] += u2;
2524
+ a[a.length - 1] += u;
2525
2525
  }
2526
2526
  e.trim !== false && (a = a.map((o) => mt(o)));
2527
2527
  const v = a.join(`
2528
2528
  `), g = v[Symbol.iterator]();
2529
- let m = g.next(), A = g.next(), S = 0;
2529
+ let m = g.next(), A = g.next(), V = 0;
2530
2530
  for (; !m.done; ) {
2531
- const o = m.value, u2 = A.value;
2532
- if (i += o, o === L || o === J) {
2533
- Q.lastIndex = S + 1;
2534
- const f = Q.exec(v)?.groups;
2531
+ const o = m.value, u = A.value;
2532
+ if (i += o, o === W || o === X) {
2533
+ tt.lastIndex = V + 1;
2534
+ const f = tt.exec(v)?.groups;
2535
2535
  if (f?.code !== void 0) {
2536
- const d = Number.parseFloat(f.code);
2537
- r = d === Ft ? void 0 : d;
2536
+ const d2 = Number.parseFloat(f.code);
2537
+ r = d2 === Ft ? void 0 : d2;
2538
2538
  } else f?.uri !== void 0 && (n = f.uri.length === 0 ? void 0 : f.uri);
2539
2539
  }
2540
2540
  const p = r ? ft(r) : void 0;
2541
- u2 === `
2542
- ` ? (n && (i += st("")), r && p && (i += tt(p))) : o === `
2543
- ` && (r && p && (i += tt(r)), n && (i += st(n))), S += o.length, m = A, A = g.next();
2541
+ u === `
2542
+ ` ? (n && (i += et("")), r && p && (i += st(p))) : o === `
2543
+ ` && (r && p && (i += st(r)), n && (i += et(n))), V += o.length, m = A, A = g.next();
2544
2544
  }
2545
2545
  return i;
2546
2546
  }, "gt");
2547
- function et(t2, s, e) {
2547
+ function it(t2, s, e) {
2548
2548
  return String(t2).normalize().replaceAll(`\r
2549
2549
  `, `
2550
2550
  `).split(`
2551
2551
  `).map((i) => gt(i, s, e)).join(`
2552
2552
  `);
2553
2553
  }
2554
- __name(et, "et");
2554
+ __name(it, "it");
2555
2555
  var Et = ["up", "down", "left", "right", "space", "enter", "cancel"];
2556
- var C = { actions: new Set(Et), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]), messages: { cancel: "Canceled", error: "Something went wrong" } };
2557
- function U(t2, s) {
2558
- if (typeof t2 == "string") return C.aliases.get(t2) === s;
2559
- for (const e of t2) if (e !== void 0 && U(e, s)) return true;
2556
+ var b = { actions: new Set(Et), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]), messages: { cancel: "Canceled", error: "Something went wrong" } };
2557
+ function G(t2, s) {
2558
+ if (typeof t2 == "string") return b.aliases.get(t2) === s;
2559
+ for (const e of t2) if (e !== void 0 && G(e, s)) return true;
2560
2560
  return false;
2561
2561
  }
2562
- __name(U, "U");
2562
+ __name(G, "G");
2563
2563
  function At(t2, s) {
2564
2564
  if (t2 === s) return;
2565
2565
  const e = t2.split(`
@@ -2570,39 +2570,40 @@ function At(t2, s) {
2570
2570
  }
2571
2571
  __name(At, "At");
2572
2572
  var It = globalThis.process.platform.startsWith("win");
2573
- var G = Symbol("clack:cancel");
2573
+ var K = Symbol("clack:cancel");
2574
2574
  function _t(t2) {
2575
- return t2 === G;
2575
+ return t2 === K;
2576
2576
  }
2577
2577
  __name(_t, "_t");
2578
- function W(t2, s) {
2578
+ function T(t2, s) {
2579
2579
  const e = t2;
2580
2580
  e.isTTY && e.setRawMode(s);
2581
2581
  }
2582
- __name(W, "W");
2583
- function Ct({ input: t2 = z, output: s = H, overwrite: e = true, hideCursor: i = true } = {}) {
2584
- const r = V.createInterface({ input: t2, output: s, prompt: "", tabSize: 1 });
2585
- V.emitKeypressEvents(t2, r), t2 instanceof Y && t2.isTTY && t2.setRawMode(true);
2582
+ __name(T, "T");
2583
+ function bt({ input: t2 = Y, output: s = z, overwrite: e = true, hideCursor: i = true } = {}) {
2584
+ const r = k.createInterface({ input: t2, output: s, prompt: "", tabSize: 1 });
2585
+ k.emitKeypressEvents(t2, r), t2 instanceof q && t2.isTTY && t2.setRawMode(true);
2586
2586
  const n = /* @__PURE__ */ __name((F, { name: l, sequence: a }) => {
2587
2587
  const v = String(F);
2588
- if (U([v, l, a], "cancel")) {
2588
+ if (G([v, l, a], "cancel")) {
2589
2589
  i && s.write(import_sisteransi.cursor.show), process.exit(0);
2590
2590
  return;
2591
2591
  }
2592
2592
  if (!e) return;
2593
2593
  const g = l === "return" ? 0 : -1, m = l === "return" ? -1 : 0;
2594
- V.moveCursor(s, g, m, () => {
2595
- V.clearLine(s, 1, () => {
2594
+ k.moveCursor(s, g, m, () => {
2595
+ k.clearLine(s, 1, () => {
2596
2596
  t2.once("keypress", n);
2597
2597
  });
2598
2598
  });
2599
2599
  }, "n");
2600
2600
  return i && s.write(import_sisteransi.cursor.hide), t2.once("keypress", n), () => {
2601
- t2.off("keypress", n), i && s.write(import_sisteransi.cursor.show), t2 instanceof Y && t2.isTTY && !It && t2.setRawMode(false), r.terminal = false, r.close();
2601
+ t2.off("keypress", n), i && s.write(import_sisteransi.cursor.show), t2 instanceof q && t2.isTTY && !It && t2.setRawMode(false), r.terminal = false, r.close();
2602
2602
  };
2603
2603
  }
2604
- __name(Ct, "Ct");
2605
- var bt = /* @__PURE__ */ __name((t2) => t2 instanceof nt && t2.columns ? t2.columns : 80, "bt");
2604
+ __name(bt, "bt");
2605
+ var Ct = /* @__PURE__ */ __name((t2) => "columns" in t2 && typeof t2.columns == "number" ? t2.columns : 80, "Ct");
2606
+ var Bt = /* @__PURE__ */ __name((t2) => "rows" in t2 && typeof t2.rows == "number" ? t2.rows : 20, "Bt");
2606
2607
  var B = class {
2607
2608
  static {
2608
2609
  __name(this, "B");
@@ -2622,7 +2623,7 @@ var B = class {
2622
2623
  value;
2623
2624
  userInput = "";
2624
2625
  constructor(s, e = true) {
2625
- const { input: i = z, output: r = H, render: n, signal: F, ...l } = s;
2626
+ const { input: i = Y, output: r = z, render: n, signal: F, ...l } = s;
2626
2627
  this.opts = l, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = n.bind(this), this._track = e, this._abortSignal = F, this.input = i, this.output = r;
2627
2628
  }
2628
2629
  unsubscribe() {
@@ -2646,15 +2647,15 @@ var B = class {
2646
2647
  prompt() {
2647
2648
  return new Promise((s) => {
2648
2649
  if (this._abortSignal) {
2649
- if (this._abortSignal.aborted) return this.state = "cancel", this.close(), s(G);
2650
+ if (this._abortSignal.aborted) return this.state = "cancel", this.close(), s(K);
2650
2651
  this._abortSignal.addEventListener("abort", () => {
2651
2652
  this.state = "cancel", this.close();
2652
2653
  }, { once: true });
2653
2654
  }
2654
- this.rl = rt.createInterface({ input: this.input, tabSize: 2, prompt: "", escapeCodeTimeout: 50, terminal: true }), this.rl.prompt(), this.opts.initialUserInput !== void 0 && this._setUserInput(this.opts.initialUserInput, true), this.input.on("keypress", this.onKeypress), W(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
2655
- this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), W(this.input, false), s(this.value);
2655
+ this.rl = nt.createInterface({ input: this.input, tabSize: 2, prompt: "", escapeCodeTimeout: 50, terminal: true }), this.rl.prompt(), this.opts.initialUserInput !== void 0 && this._setUserInput(this.opts.initialUserInput, true), this.input.on("keypress", this.onKeypress), T(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
2656
+ this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), T(this.input, false), s(this.value);
2656
2657
  }), this.once("cancel", () => {
2657
- this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), W(this.input, false), s(G);
2658
+ this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), T(this.input, false), s(K);
2658
2659
  });
2659
2660
  });
2660
2661
  }
@@ -2671,26 +2672,26 @@ var B = class {
2671
2672
  this.rl?.write(null, { ctrl: true, name: "u" }), this._setUserInput("");
2672
2673
  }
2673
2674
  onKeypress(s, e) {
2674
- if (this._track && e.name !== "return" && (e.name && this._isActionKey(s, e) && this.rl?.write(null, { ctrl: true, name: "h" }), this._cursor = this.rl?.cursor ?? 0, this._setUserInput(this.rl?.line)), this.state === "error" && (this.state = "active"), e?.name && (!this._track && C.aliases.has(e.name) && this.emit("cursor", C.aliases.get(e.name)), C.actions.has(e.name) && this.emit("cursor", e.name)), s && (s.toLowerCase() === "y" || s.toLowerCase() === "n") && this.emit("confirm", s.toLowerCase() === "y"), this.emit("key", s?.toLowerCase(), e), e?.name === "return") {
2675
+ if (this._track && e.name !== "return" && (e.name && this._isActionKey(s, e) && this.rl?.write(null, { ctrl: true, name: "h" }), this._cursor = this.rl?.cursor ?? 0, this._setUserInput(this.rl?.line)), this.state === "error" && (this.state = "active"), e?.name && (!this._track && b.aliases.has(e.name) && this.emit("cursor", b.aliases.get(e.name)), b.actions.has(e.name) && this.emit("cursor", e.name)), s && (s.toLowerCase() === "y" || s.toLowerCase() === "n") && this.emit("confirm", s.toLowerCase() === "y"), this.emit("key", s?.toLowerCase(), e), e?.name === "return") {
2675
2676
  if (this.opts.validate) {
2676
2677
  const i = this.opts.validate(this.value);
2677
2678
  i && (this.error = i instanceof Error ? i.message : i, this.state = "error", this.rl?.write(this.userInput));
2678
2679
  }
2679
2680
  this.state !== "error" && (this.state = "submit");
2680
2681
  }
2681
- U([s, e?.name, e?.sequence], "cancel") && (this.state = "cancel"), (this.state === "submit" || this.state === "cancel") && this.emit("finalize"), this.render(), (this.state === "submit" || this.state === "cancel") && this.close();
2682
+ G([s, e?.name, e?.sequence], "cancel") && (this.state = "cancel"), (this.state === "submit" || this.state === "cancel") && this.emit("finalize"), this.render(), (this.state === "submit" || this.state === "cancel") && this.close();
2682
2683
  }
2683
2684
  close() {
2684
2685
  this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
2685
- `), W(this.input, false), this.rl?.close(), this.rl = void 0, this.emit(`${this.state}`, this.value), this.unsubscribe();
2686
+ `), T(this.input, false), this.rl?.close(), this.rl = void 0, this.emit(`${this.state}`, this.value), this.unsubscribe();
2686
2687
  }
2687
2688
  restoreCursor() {
2688
- const s = et(this._prevFrame, process.stdout.columns, { hard: true, trim: false }).split(`
2689
+ const s = it(this._prevFrame, process.stdout.columns, { hard: true, trim: false }).split(`
2689
2690
  `).length - 1;
2690
2691
  this.output.write(import_sisteransi.cursor.move(-999, s * -1));
2691
2692
  }
2692
2693
  render() {
2693
- const s = et(this._render(this) ?? "", process.stdout.columns, { hard: true, trim: false });
2694
+ const s = it(this._render(this) ?? "", process.stdout.columns, { hard: true, trim: false });
2694
2695
  if (s !== this._prevFrame) {
2695
2696
  if (this.state === "initial") this.output.write(import_sisteransi.cursor.hide);
2696
2697
  else {
@@ -2718,9 +2719,9 @@ var B = class {
2718
2719
  }
2719
2720
  }
2720
2721
  };
2721
- var St = class extends B {
2722
+ var Vt = class extends B {
2722
2723
  static {
2723
- __name(this, "St");
2724
+ __name(this, "Vt");
2724
2725
  }
2725
2726
  get cursor() {
2726
2727
  return this.value ? 0 : 1;
@@ -2738,22 +2739,32 @@ var St = class extends B {
2738
2739
  });
2739
2740
  }
2740
2741
  };
2741
- var kt = class extends B {
2742
+ function w(t2, s, e) {
2743
+ const i = t2 + s, r = Math.max(e.length - 1, 0), n = i < 0 ? r : i > r ? 0 : i;
2744
+ return e[n].disabled ? w(n, s < 0 ? -1 : 1, e) : n;
2745
+ }
2746
+ __name(w, "w");
2747
+ var yt = class extends B {
2742
2748
  static {
2743
- __name(this, "kt");
2749
+ __name(this, "yt");
2744
2750
  }
2745
2751
  options;
2746
2752
  cursor = 0;
2747
2753
  get _value() {
2748
2754
  return this.options[this.cursor].value;
2749
2755
  }
2756
+ get _enabledOptions() {
2757
+ return this.options.filter((s) => s.disabled !== true);
2758
+ }
2750
2759
  toggleAll() {
2751
- const s = this.value !== void 0 && this.value.length === this.options.length;
2752
- this.value = s ? [] : this.options.map((e) => e.value);
2760
+ const s = this._enabledOptions, e = this.value !== void 0 && this.value.length === s.length;
2761
+ this.value = e ? [] : s.map((i) => i.value);
2753
2762
  }
2754
2763
  toggleInvert() {
2755
- const s = this.options.filter((e) => !this.value.includes(e.value));
2756
- this.value = s.map((e) => e.value);
2764
+ const s = this.value;
2765
+ if (!s) return;
2766
+ const e = this._enabledOptions.filter((i) => !s.includes(i.value));
2767
+ this.value = e.map((i) => i.value);
2757
2768
  }
2758
2769
  toggleValue() {
2759
2770
  this.value === void 0 && (this.value = []);
@@ -2761,17 +2772,19 @@ var kt = class extends B {
2761
2772
  this.value = s ? this.value.filter((e) => e !== this._value) : [...this.value, this._value];
2762
2773
  }
2763
2774
  constructor(s) {
2764
- super(s, false), this.options = s.options, this.value = [...s.initialValues ?? []], this.cursor = Math.max(this.options.findIndex(({ value: e }) => e === s.cursorAt), 0), this.on("key", (e) => {
2765
- e === "a" && this.toggleAll(), e === "i" && this.toggleInvert();
2766
- }), this.on("cursor", (e) => {
2767
- switch (e) {
2775
+ super(s, false), this.options = s.options, this.value = [...s.initialValues ?? []];
2776
+ const e = Math.max(this.options.findIndex(({ value: i }) => i === s.cursorAt), 0);
2777
+ this.cursor = this.options[e].disabled ? w(e, 1, this.options) : e, this.on("key", (i) => {
2778
+ i === "a" && this.toggleAll(), i === "i" && this.toggleInvert();
2779
+ }), this.on("cursor", (i) => {
2780
+ switch (i) {
2768
2781
  case "left":
2769
2782
  case "up":
2770
- this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
2783
+ this.cursor = w(this.cursor, -1, this.options);
2771
2784
  break;
2772
2785
  case "down":
2773
2786
  case "right":
2774
- this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
2787
+ this.cursor = w(this.cursor, 1, this.options);
2775
2788
  break;
2776
2789
  case "space":
2777
2790
  this.toggleValue();
@@ -2780,9 +2793,9 @@ var kt = class extends B {
2780
2793
  });
2781
2794
  }
2782
2795
  };
2783
- var Mt = class extends B {
2796
+ var Lt = class extends B {
2784
2797
  static {
2785
- __name(this, "Mt");
2798
+ __name(this, "Lt");
2786
2799
  }
2787
2800
  options;
2788
2801
  cursor = 0;
@@ -2793,24 +2806,26 @@ var Mt = class extends B {
2793
2806
  this.value = this._selectedValue.value;
2794
2807
  }
2795
2808
  constructor(s) {
2796
- super(s, false), this.options = s.options, this.cursor = this.options.findIndex(({ value: e }) => e === s.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (e) => {
2797
- switch (e) {
2809
+ super(s, false), this.options = s.options;
2810
+ const e = this.options.findIndex(({ value: r }) => r === s.initialValue), i = e === -1 ? 0 : e;
2811
+ this.cursor = this.options[i].disabled ? w(i, 1, this.options) : i, this.changeValue(), this.on("cursor", (r) => {
2812
+ switch (r) {
2798
2813
  case "left":
2799
2814
  case "up":
2800
- this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
2815
+ this.cursor = w(this.cursor, -1, this.options);
2801
2816
  break;
2802
2817
  case "down":
2803
2818
  case "right":
2804
- this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
2819
+ this.cursor = w(this.cursor, 1, this.options);
2805
2820
  break;
2806
2821
  }
2807
2822
  this.changeValue();
2808
2823
  });
2809
2824
  }
2810
2825
  };
2811
- var Wt = class extends B {
2826
+ var Tt = class extends B {
2812
2827
  static {
2813
- __name(this, "Wt");
2828
+ __name(this, "Tt");
2814
2829
  }
2815
2830
  get userInputWithCursor() {
2816
2831
  if (this.state === "submit") return this.userInput;
@@ -2833,149 +2848,138 @@ var Wt = class extends B {
2833
2848
 
2834
2849
  // ../node_modules/@clack/prompts/dist/index.mjs
2835
2850
  var import_picocolors2 = __toESM(require_picocolors(), 1);
2836
- import T from "node:process";
2837
- import { WriteStream as rt2 } from "node:tty";
2851
+ import N2 from "node:process";
2838
2852
  var import_sisteransi2 = __toESM(require_src(), 1);
2839
- function ot2() {
2840
- return T.platform !== "win32" ? T.env.TERM !== "linux" : !!T.env.CI || !!T.env.WT_SESSION || !!T.env.TERMINUS_SUBLIME || T.env.ConEmuTask === "{cmd::Cmder}" || T.env.TERM_PROGRAM === "Terminus-Sublime" || T.env.TERM_PROGRAM === "vscode" || T.env.TERM === "xterm-256color" || T.env.TERM === "alacritty" || T.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
2853
+ function ut2() {
2854
+ return N2.platform !== "win32" ? N2.env.TERM !== "linux" : !!N2.env.CI || !!N2.env.WT_SESSION || !!N2.env.TERMINUS_SUBLIME || N2.env.ConEmuTask === "{cmd::Cmder}" || N2.env.TERM_PROGRAM === "Terminus-Sublime" || N2.env.TERM_PROGRAM === "vscode" || N2.env.TERM === "xterm-256color" || N2.env.TERM === "alacritty" || N2.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
2841
2855
  }
2842
- __name(ot2, "ot");
2843
- var q2 = ot2();
2844
- var se = /* @__PURE__ */ __name(() => process.env.CI === "true", "se");
2845
- var Se = /* @__PURE__ */ __name((e) => e.isTTY === true, "Se");
2846
- var I2 = /* @__PURE__ */ __name((e, r) => q2 ? e : r, "I");
2847
- var we = I2("\u25C6", "*");
2848
- var re = I2("\u25A0", "x");
2849
- var ie = I2("\u25B2", "x");
2850
- var L2 = I2("\u25C7", "o");
2851
- var ne = I2("\u250C", "T");
2852
- var u = I2("\u2502", "|");
2853
- var _ = I2("\u2514", "\u2014");
2854
- var Be = I2("\u2510", "T");
2856
+ __name(ut2, "ut");
2857
+ var z2 = ut2();
2858
+ var ne = /* @__PURE__ */ __name(() => process.env.CI === "true", "ne");
2859
+ var Be = /* @__PURE__ */ __name((e) => e.isTTY === true, "Be");
2860
+ var I2 = /* @__PURE__ */ __name((e, i) => z2 ? e : i, "I");
2861
+ var be = I2("\u25C6", "*");
2862
+ var ae = I2("\u25A0", "x");
2863
+ var oe = I2("\u25B2", "x");
2864
+ var W2 = I2("\u25C7", "o");
2865
+ var le = I2("\u250C", "T");
2866
+ var d = I2("\u2502", "|");
2867
+ var x = I2("\u2514", "\u2014");
2868
+ var xe = I2("\u2510", "T");
2855
2869
  var _e = I2("\u2518", "\u2014");
2856
- var G2 = I2("\u25CF", ">");
2857
- var H2 = I2("\u25CB", " ");
2858
- var J2 = I2("\u25FB", "[\u2022]");
2859
- var W2 = I2("\u25FC", "[+]");
2870
+ var J2 = I2("\u25CF", ">");
2871
+ var H = I2("\u25CB", " ");
2872
+ var Z2 = I2("\u25FB", "[\u2022]");
2873
+ var j2 = I2("\u25FC", "[+]");
2860
2874
  var X2 = I2("\u25FB", "[ ]");
2861
- var xe = I2("\u25AA", "\u2022");
2862
- var Y2 = I2("\u2500", "-");
2863
- var ae = I2("\u256E", "+");
2864
- var be = I2("\u251C", "+");
2865
- var oe = I2("\u256F", "+");
2866
- var De = I2("\u2570", "+");
2867
- var Te = I2("\u256D", "+");
2868
- var le = I2("\u25CF", "\u2022");
2869
- var ue = I2("\u25C6", "*");
2870
- var ce = I2("\u25B2", "!");
2871
- var $e = I2("\u25A0", "x");
2872
- var M2 = /* @__PURE__ */ __name((e) => {
2875
+ var De = I2("\u25AA", "\u2022");
2876
+ var Q2 = I2("\u2500", "-");
2877
+ var ue = I2("\u256E", "+");
2878
+ var Te = I2("\u251C", "+");
2879
+ var ce = I2("\u256F", "+");
2880
+ var Me = I2("\u2570", "+");
2881
+ var Re = I2("\u256D", "+");
2882
+ var de = I2("\u25CF", "\u2022");
2883
+ var $e = I2("\u25C6", "*");
2884
+ var he = I2("\u25B2", "!");
2885
+ var me = I2("\u25A0", "x");
2886
+ var L2 = /* @__PURE__ */ __name((e) => {
2873
2887
  switch (e) {
2874
2888
  case "initial":
2875
2889
  case "active":
2876
- return import_picocolors2.default.cyan(we);
2890
+ return import_picocolors2.default.cyan(be);
2877
2891
  case "cancel":
2878
- return import_picocolors2.default.red(re);
2892
+ return import_picocolors2.default.red(ae);
2879
2893
  case "error":
2880
- return import_picocolors2.default.yellow(ie);
2894
+ return import_picocolors2.default.yellow(oe);
2881
2895
  case "submit":
2882
- return import_picocolors2.default.green(L2);
2883
- }
2884
- }, "M");
2885
- var k2 = /* @__PURE__ */ __name((e) => {
2886
- const { cursor: r, options: s, style: i } = e, n = e.output ?? process.stdout, o = n instanceof rt2 && n.rows !== void 0 ? n.rows : 10, c = import_picocolors2.default.dim("..."), l = e.maxItems ?? Number.POSITIVE_INFINITY, a = Math.max(o - 4, 0), h = Math.min(a, Math.max(l, 5));
2887
- let g = 0;
2888
- r >= g + h - 3 ? g = Math.max(Math.min(r - h + 3, s.length - h), 0) : r < g + 2 && (g = Math.max(r - 2, 0));
2889
- const F = h < s.length && g > 0, y2 = h < s.length && g + h < s.length;
2890
- return s.slice(g, g + h).map((m, p, $2) => {
2891
- const d = p === 0 && F, f = p === $2.length - 1 && y2;
2892
- return d || f ? c : i(m, p + g === r);
2893
- });
2894
- }, "k");
2896
+ return import_picocolors2.default.green(W2);
2897
+ }
2898
+ }, "L");
2895
2899
  var ct2 = /* @__PURE__ */ __name((e) => e === 161 || e === 164 || e === 167 || e === 168 || e === 170 || e === 173 || e === 174 || e >= 176 && e <= 180 || e >= 182 && e <= 186 || e >= 188 && e <= 191 || e === 198 || e === 208 || e === 215 || e === 216 || e >= 222 && e <= 225 || e === 230 || e >= 232 && e <= 234 || e === 236 || e === 237 || e === 240 || e === 242 || e === 243 || e >= 247 && e <= 250 || e === 252 || e === 254 || e === 257 || e === 273 || e === 275 || e === 283 || e === 294 || e === 295 || e === 299 || e >= 305 && e <= 307 || e === 312 || e >= 319 && e <= 322 || e === 324 || e >= 328 && e <= 331 || e === 333 || e === 338 || e === 339 || e === 358 || e === 359 || e === 363 || e === 462 || e === 464 || e === 466 || e === 468 || e === 470 || e === 472 || e === 474 || e === 476 || e === 593 || e === 609 || e === 708 || e === 711 || e >= 713 && e <= 715 || e === 717 || e === 720 || e >= 728 && e <= 731 || e === 733 || e === 735 || e >= 768 && e <= 879 || e >= 913 && e <= 929 || e >= 931 && e <= 937 || e >= 945 && e <= 961 || e >= 963 && e <= 969 || e === 1025 || e >= 1040 && e <= 1103 || e === 1105 || e === 8208 || e >= 8211 && e <= 8214 || e === 8216 || e === 8217 || e === 8220 || e === 8221 || e >= 8224 && e <= 8226 || e >= 8228 && e <= 8231 || e === 8240 || e === 8242 || e === 8243 || e === 8245 || e === 8251 || e === 8254 || e === 8308 || e === 8319 || e >= 8321 && e <= 8324 || e === 8364 || e === 8451 || e === 8453 || e === 8457 || e === 8467 || e === 8470 || e === 8481 || e === 8482 || e === 8486 || e === 8491 || e === 8531 || e === 8532 || e >= 8539 && e <= 8542 || e >= 8544 && e <= 8555 || e >= 8560 && e <= 8569 || e === 8585 || e >= 8592 && e <= 8601 || e === 8632 || e === 8633 || e === 8658 || e === 8660 || e === 8679 || e === 8704 || e === 8706 || e === 8707 || e === 8711 || e === 8712 || e === 8715 || e === 8719 || e === 8721 || e === 8725 || e === 8730 || e >= 8733 && e <= 8736 || e === 8739 || e === 8741 || e >= 8743 && e <= 8748 || e === 8750 || e >= 8756 && e <= 8759 || e === 8764 || e === 8765 || e === 8776 || e === 8780 || e === 8786 || e === 8800 || e === 8801 || e >= 8804 && e <= 8807 || e === 8810 || e === 8811 || e === 8814 || e === 8815 || e === 8834 || e === 8835 || e === 8838 || e === 8839 || e === 8853 || e === 8857 || e === 8869 || e === 8895 || e === 8978 || e >= 9312 && e <= 9449 || e >= 9451 && e <= 9547 || e >= 9552 && e <= 9587 || e >= 9600 && e <= 9615 || e >= 9618 && e <= 9621 || e === 9632 || e === 9633 || e >= 9635 && e <= 9641 || e === 9650 || e === 9651 || e === 9654 || e === 9655 || e === 9660 || e === 9661 || e === 9664 || e === 9665 || e >= 9670 && e <= 9672 || e === 9675 || e >= 9678 && e <= 9681 || e >= 9698 && e <= 9701 || e === 9711 || e === 9733 || e === 9734 || e === 9737 || e === 9742 || e === 9743 || e === 9756 || e === 9758 || e === 9792 || e === 9794 || e === 9824 || e === 9825 || e >= 9827 && e <= 9829 || e >= 9831 && e <= 9834 || e === 9836 || e === 9837 || e === 9839 || e === 9886 || e === 9887 || e === 9919 || e >= 9926 && e <= 9933 || e >= 9935 && e <= 9939 || e >= 9941 && e <= 9953 || e === 9955 || e === 9960 || e === 9961 || e >= 9963 && e <= 9969 || e === 9972 || e >= 9974 && e <= 9977 || e === 9979 || e === 9980 || e === 9982 || e === 9983 || e === 10045 || e >= 10102 && e <= 10111 || e >= 11094 && e <= 11097 || e >= 12872 && e <= 12879 || e >= 57344 && e <= 63743 || e >= 65024 && e <= 65039 || e === 65533 || e >= 127232 && e <= 127242 || e >= 127248 && e <= 127277 || e >= 127280 && e <= 127337 || e >= 127344 && e <= 127373 || e === 127375 || e === 127376 || e >= 127387 && e <= 127404 || e >= 917760 && e <= 917999 || e >= 983040 && e <= 1048573 || e >= 1048576 && e <= 1114109, "ct");
2896
- var $t = /* @__PURE__ */ __name((e) => e === 12288 || e >= 65281 && e <= 65376 || e >= 65504 && e <= 65510, "$t");
2897
- var dt2 = /* @__PURE__ */ __name((e) => e >= 4352 && e <= 4447 || e === 8986 || e === 8987 || e === 9001 || e === 9002 || e >= 9193 && e <= 9196 || e === 9200 || e === 9203 || e === 9725 || e === 9726 || e === 9748 || e === 9749 || e >= 9800 && e <= 9811 || e === 9855 || e === 9875 || e === 9889 || e === 9898 || e === 9899 || e === 9917 || e === 9918 || e === 9924 || e === 9925 || e === 9934 || e === 9940 || e === 9962 || e === 9970 || e === 9971 || e === 9973 || e === 9978 || e === 9981 || e === 9989 || e === 9994 || e === 9995 || e === 10024 || e === 10060 || e === 10062 || e >= 10067 && e <= 10069 || e === 10071 || e >= 10133 && e <= 10135 || e === 10160 || e === 10175 || e === 11035 || e === 11036 || e === 11088 || e === 11093 || e >= 11904 && e <= 11929 || e >= 11931 && e <= 12019 || e >= 12032 && e <= 12245 || e >= 12272 && e <= 12287 || e >= 12289 && e <= 12350 || e >= 12353 && e <= 12438 || e >= 12441 && e <= 12543 || e >= 12549 && e <= 12591 || e >= 12593 && e <= 12686 || e >= 12688 && e <= 12771 || e >= 12783 && e <= 12830 || e >= 12832 && e <= 12871 || e >= 12880 && e <= 19903 || e >= 19968 && e <= 42124 || e >= 42128 && e <= 42182 || e >= 43360 && e <= 43388 || e >= 44032 && e <= 55203 || e >= 63744 && e <= 64255 || e >= 65040 && e <= 65049 || e >= 65072 && e <= 65106 || e >= 65108 && e <= 65126 || e >= 65128 && e <= 65131 || e >= 94176 && e <= 94180 || e === 94192 || e === 94193 || e >= 94208 && e <= 100343 || e >= 100352 && e <= 101589 || e >= 101632 && e <= 101640 || e >= 110576 && e <= 110579 || e >= 110581 && e <= 110587 || e === 110589 || e === 110590 || e >= 110592 && e <= 110882 || e === 110898 || e >= 110928 && e <= 110930 || e === 110933 || e >= 110948 && e <= 110951 || e >= 110960 && e <= 111355 || e === 126980 || e === 127183 || e === 127374 || e >= 127377 && e <= 127386 || e >= 127488 && e <= 127490 || e >= 127504 && e <= 127547 || e >= 127552 && e <= 127560 || e === 127568 || e === 127569 || e >= 127584 && e <= 127589 || e >= 127744 && e <= 127776 || e >= 127789 && e <= 127797 || e >= 127799 && e <= 127868 || e >= 127870 && e <= 127891 || e >= 127904 && e <= 127946 || e >= 127951 && e <= 127955 || e >= 127968 && e <= 127984 || e === 127988 || e >= 127992 && e <= 128062 || e === 128064 || e >= 128066 && e <= 128252 || e >= 128255 && e <= 128317 || e >= 128331 && e <= 128334 || e >= 128336 && e <= 128359 || e === 128378 || e === 128405 || e === 128406 || e === 128420 || e >= 128507 && e <= 128591 || e >= 128640 && e <= 128709 || e === 128716 || e >= 128720 && e <= 128722 || e >= 128725 && e <= 128727 || e >= 128732 && e <= 128735 || e === 128747 || e === 128748 || e >= 128756 && e <= 128764 || e >= 128992 && e <= 129003 || e === 129008 || e >= 129292 && e <= 129338 || e >= 129340 && e <= 129349 || e >= 129351 && e <= 129535 || e >= 129648 && e <= 129660 || e >= 129664 && e <= 129672 || e >= 129680 && e <= 129725 || e >= 129727 && e <= 129733 || e >= 129742 && e <= 129755 || e >= 129760 && e <= 129768 || e >= 129776 && e <= 129784 || e >= 131072 && e <= 196605 || e >= 196608 && e <= 262141, "dt");
2898
- var de = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y;
2899
- var z2 = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y;
2900
- var Z2 = /\t{1,1000}/y;
2901
- var he = /[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/yu;
2902
- var Q2 = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y;
2900
+ var dt2 = /* @__PURE__ */ __name((e) => e === 12288 || e >= 65281 && e <= 65376 || e >= 65504 && e <= 65510, "dt");
2901
+ var $t = /* @__PURE__ */ __name((e) => e >= 4352 && e <= 4447 || e === 8986 || e === 8987 || e === 9001 || e === 9002 || e >= 9193 && e <= 9196 || e === 9200 || e === 9203 || e === 9725 || e === 9726 || e === 9748 || e === 9749 || e >= 9800 && e <= 9811 || e === 9855 || e === 9875 || e === 9889 || e === 9898 || e === 9899 || e === 9917 || e === 9918 || e === 9924 || e === 9925 || e === 9934 || e === 9940 || e === 9962 || e === 9970 || e === 9971 || e === 9973 || e === 9978 || e === 9981 || e === 9989 || e === 9994 || e === 9995 || e === 10024 || e === 10060 || e === 10062 || e >= 10067 && e <= 10069 || e === 10071 || e >= 10133 && e <= 10135 || e === 10160 || e === 10175 || e === 11035 || e === 11036 || e === 11088 || e === 11093 || e >= 11904 && e <= 11929 || e >= 11931 && e <= 12019 || e >= 12032 && e <= 12245 || e >= 12272 && e <= 12287 || e >= 12289 && e <= 12350 || e >= 12353 && e <= 12438 || e >= 12441 && e <= 12543 || e >= 12549 && e <= 12591 || e >= 12593 && e <= 12686 || e >= 12688 && e <= 12771 || e >= 12783 && e <= 12830 || e >= 12832 && e <= 12871 || e >= 12880 && e <= 19903 || e >= 19968 && e <= 42124 || e >= 42128 && e <= 42182 || e >= 43360 && e <= 43388 || e >= 44032 && e <= 55203 || e >= 63744 && e <= 64255 || e >= 65040 && e <= 65049 || e >= 65072 && e <= 65106 || e >= 65108 && e <= 65126 || e >= 65128 && e <= 65131 || e >= 94176 && e <= 94180 || e === 94192 || e === 94193 || e >= 94208 && e <= 100343 || e >= 100352 && e <= 101589 || e >= 101632 && e <= 101640 || e >= 110576 && e <= 110579 || e >= 110581 && e <= 110587 || e === 110589 || e === 110590 || e >= 110592 && e <= 110882 || e === 110898 || e >= 110928 && e <= 110930 || e === 110933 || e >= 110948 && e <= 110951 || e >= 110960 && e <= 111355 || e === 126980 || e === 127183 || e === 127374 || e >= 127377 && e <= 127386 || e >= 127488 && e <= 127490 || e >= 127504 && e <= 127547 || e >= 127552 && e <= 127560 || e === 127568 || e === 127569 || e >= 127584 && e <= 127589 || e >= 127744 && e <= 127776 || e >= 127789 && e <= 127797 || e >= 127799 && e <= 127868 || e >= 127870 && e <= 127891 || e >= 127904 && e <= 127946 || e >= 127951 && e <= 127955 || e >= 127968 && e <= 127984 || e === 127988 || e >= 127992 && e <= 128062 || e === 128064 || e >= 128066 && e <= 128252 || e >= 128255 && e <= 128317 || e >= 128331 && e <= 128334 || e >= 128336 && e <= 128359 || e === 128378 || e === 128405 || e === 128406 || e === 128420 || e >= 128507 && e <= 128591 || e >= 128640 && e <= 128709 || e === 128716 || e >= 128720 && e <= 128722 || e >= 128725 && e <= 128727 || e >= 128732 && e <= 128735 || e === 128747 || e === 128748 || e >= 128756 && e <= 128764 || e >= 128992 && e <= 129003 || e === 129008 || e >= 129292 && e <= 129338 || e >= 129340 && e <= 129349 || e >= 129351 && e <= 129535 || e >= 129648 && e <= 129660 || e >= 129664 && e <= 129672 || e >= 129680 && e <= 129725 || e >= 129727 && e <= 129733 || e >= 129742 && e <= 129755 || e >= 129760 && e <= 129768 || e >= 129776 && e <= 129784 || e >= 131072 && e <= 196605 || e >= 196608 && e <= 262141, "$t");
2902
+ var pe = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y;
2903
+ var ee = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y;
2904
+ var te = /\t{1,1000}/y;
2905
+ var ge = /[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/yu;
2906
+ var se = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y;
2903
2907
  var ht2 = /\p{M}+/gu;
2904
2908
  var mt2 = { limit: 1 / 0, ellipsis: "" };
2905
- var Ne = /* @__PURE__ */ __name((e, r = {}, s = {}) => {
2906
- const i = r.limit ?? 1 / 0, n = r.ellipsis ?? "", o = r?.ellipsisWidth ?? (n ? Ne(n, mt2, s).width : 0), c = s.ansiWidth ?? 0, l = s.controlWidth ?? 0, a = s.tabWidth ?? 8, h = s.ambiguousWidth ?? 1, g = s.emojiWidth ?? 2, F = s.fullWidthWidth ?? 2, y2 = s.regularWidth ?? 1, m = s.wideWidth ?? 2;
2907
- let p = 0, $2 = 0, d = e.length, f = 0, E = false, v = d, w2 = Math.max(0, i - o), B2 = 0, x = 0, A = 0, C2 = 0;
2909
+ var Oe = /* @__PURE__ */ __name((e, i = {}, s = {}) => {
2910
+ const r = i.limit ?? 1 / 0, n = i.ellipsis ?? "", o = i?.ellipsisWidth ?? (n ? Oe(n, mt2, s).width : 0), l = s.ansiWidth ?? 0, u = s.controlWidth ?? 0, a = s.tabWidth ?? 8, h = s.ambiguousWidth ?? 1, y2 = s.emojiWidth ?? 2, E = s.fullWidthWidth ?? 2, f = s.regularWidth ?? 1, F = s.wideWidth ?? 2;
2911
+ let c = 0, m = 0, $2 = e.length, p = 0, g = false, v = $2, S2 = Math.max(0, r - o), w2 = 0, b2 = 0, A = 0, C = 0;
2908
2912
  e: for (; ; ) {
2909
- if (x > B2 || $2 >= d && $2 > p) {
2910
- const O2 = e.slice(B2, x) || e.slice(p, $2);
2911
- f = 0;
2912
- for (const N2 of O2.replaceAll(ht2, "")) {
2913
- const S = N2.codePointAt(0) || 0;
2914
- if ($t(S) ? C2 = F : dt2(S) ? C2 = m : h !== y2 && ct2(S) ? C2 = h : C2 = y2, A + C2 > w2 && (v = Math.min(v, Math.max(B2, p) + f)), A + C2 > i) {
2915
- E = true;
2913
+ if (b2 > w2 || m >= $2 && m > c) {
2914
+ const _ = e.slice(w2, b2) || e.slice(c, m);
2915
+ p = 0;
2916
+ for (const D2 of _.replaceAll(ht2, "")) {
2917
+ const T2 = D2.codePointAt(0) || 0;
2918
+ if (dt2(T2) ? C = E : $t(T2) ? C = F : h !== f && ct2(T2) ? C = h : C = f, A + C > S2 && (v = Math.min(v, Math.max(w2, c) + p)), A + C > r) {
2919
+ g = true;
2916
2920
  break e;
2917
2921
  }
2918
- f += N2.length, A += C2;
2922
+ p += D2.length, A += C;
2919
2923
  }
2920
- B2 = x = 0;
2924
+ w2 = b2 = 0;
2921
2925
  }
2922
- if ($2 >= d) break;
2923
- if (Q2.lastIndex = $2, Q2.test(e)) {
2924
- if (f = Q2.lastIndex - $2, C2 = f * y2, A + C2 > w2 && (v = Math.min(v, $2 + Math.floor((w2 - A) / y2))), A + C2 > i) {
2925
- E = true;
2926
+ if (m >= $2) break;
2927
+ if (se.lastIndex = m, se.test(e)) {
2928
+ if (p = se.lastIndex - m, C = p * f, A + C > S2 && (v = Math.min(v, m + Math.floor((S2 - A) / f))), A + C > r) {
2929
+ g = true;
2926
2930
  break;
2927
2931
  }
2928
- A += C2, B2 = p, x = $2, $2 = p = Q2.lastIndex;
2932
+ A += C, w2 = c, b2 = m, m = c = se.lastIndex;
2929
2933
  continue;
2930
2934
  }
2931
- if (de.lastIndex = $2, de.test(e)) {
2932
- if (A + c > w2 && (v = Math.min(v, $2)), A + c > i) {
2933
- E = true;
2935
+ if (pe.lastIndex = m, pe.test(e)) {
2936
+ if (A + l > S2 && (v = Math.min(v, m)), A + l > r) {
2937
+ g = true;
2934
2938
  break;
2935
2939
  }
2936
- A += c, B2 = p, x = $2, $2 = p = de.lastIndex;
2940
+ A += l, w2 = c, b2 = m, m = c = pe.lastIndex;
2937
2941
  continue;
2938
2942
  }
2939
- if (z2.lastIndex = $2, z2.test(e)) {
2940
- if (f = z2.lastIndex - $2, C2 = f * l, A + C2 > w2 && (v = Math.min(v, $2 + Math.floor((w2 - A) / l))), A + C2 > i) {
2941
- E = true;
2943
+ if (ee.lastIndex = m, ee.test(e)) {
2944
+ if (p = ee.lastIndex - m, C = p * u, A + C > S2 && (v = Math.min(v, m + Math.floor((S2 - A) / u))), A + C > r) {
2945
+ g = true;
2942
2946
  break;
2943
2947
  }
2944
- A += C2, B2 = p, x = $2, $2 = p = z2.lastIndex;
2948
+ A += C, w2 = c, b2 = m, m = c = ee.lastIndex;
2945
2949
  continue;
2946
2950
  }
2947
- if (Z2.lastIndex = $2, Z2.test(e)) {
2948
- if (f = Z2.lastIndex - $2, C2 = f * a, A + C2 > w2 && (v = Math.min(v, $2 + Math.floor((w2 - A) / a))), A + C2 > i) {
2949
- E = true;
2951
+ if (te.lastIndex = m, te.test(e)) {
2952
+ if (p = te.lastIndex - m, C = p * a, A + C > S2 && (v = Math.min(v, m + Math.floor((S2 - A) / a))), A + C > r) {
2953
+ g = true;
2950
2954
  break;
2951
2955
  }
2952
- A += C2, B2 = p, x = $2, $2 = p = Z2.lastIndex;
2956
+ A += C, w2 = c, b2 = m, m = c = te.lastIndex;
2953
2957
  continue;
2954
2958
  }
2955
- if (he.lastIndex = $2, he.test(e)) {
2956
- if (A + g > w2 && (v = Math.min(v, $2)), A + g > i) {
2957
- E = true;
2959
+ if (ge.lastIndex = m, ge.test(e)) {
2960
+ if (A + y2 > S2 && (v = Math.min(v, m)), A + y2 > r) {
2961
+ g = true;
2958
2962
  break;
2959
2963
  }
2960
- A += g, B2 = p, x = $2, $2 = p = he.lastIndex;
2964
+ A += y2, w2 = c, b2 = m, m = c = ge.lastIndex;
2961
2965
  continue;
2962
2966
  }
2963
- $2 += 1;
2967
+ m += 1;
2964
2968
  }
2965
- return { width: E ? w2 : A, index: E ? v : d, truncated: E, ellipsed: E && i >= o };
2966
- }, "Ne");
2969
+ return { width: g ? S2 : A, index: g ? v : $2, truncated: g, ellipsed: g && r >= o };
2970
+ }, "Oe");
2967
2971
  var pt2 = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 };
2968
- var U2 = /* @__PURE__ */ __name((e, r = {}) => Ne(e, pt2, r).width, "U");
2969
- var ee = "\x1B";
2970
- var Le = "\x9B";
2972
+ var M2 = /* @__PURE__ */ __name((e, i = {}) => Oe(e, pt2, i).width, "M");
2973
+ var re = "\x1B";
2974
+ var Ne = "\x9B";
2971
2975
  var gt2 = 39;
2972
- var me = "\x07";
2973
- var We = "[";
2974
- var Ft2 = "]";
2975
- var Pe = "m";
2976
- var pe = `${Ft2}8;;`;
2977
- var je = new RegExp(`(?:\\${We}(?<code>\\d+)m|\\${pe}(?<uri>.*)${me})`, "y");
2978
- var ft2 = /* @__PURE__ */ __name((e) => {
2976
+ var fe = "\x07";
2977
+ var Pe = "[";
2978
+ var ft2 = "]";
2979
+ var Le = "m";
2980
+ var Fe = `${ft2}8;;`;
2981
+ var We = new RegExp(`(?:\\${Pe}(?<code>\\d+)m|\\${Fe}(?<uri>.*)${fe})`, "y");
2982
+ var Ft2 = /* @__PURE__ */ __name((e) => {
2979
2983
  if (e >= 30 && e <= 37 || e >= 90 && e <= 97) return 39;
2980
2984
  if (e >= 40 && e <= 47 || e >= 100 && e <= 107) return 49;
2981
2985
  if (e === 1 || e === 2) return 22;
@@ -2985,364 +2989,405 @@ var ft2 = /* @__PURE__ */ __name((e) => {
2985
2989
  if (e === 8) return 28;
2986
2990
  if (e === 9) return 29;
2987
2991
  if (e === 0) return 0;
2988
- }, "ft");
2989
- var Ve = /* @__PURE__ */ __name((e) => `${ee}${We}${e}${Pe}`, "Ve");
2990
- var ke = /* @__PURE__ */ __name((e) => `${ee}${pe}${e}${me}`, "ke");
2991
- var yt2 = /* @__PURE__ */ __name((e) => e.map((r) => U2(r)), "yt");
2992
- var ge = /* @__PURE__ */ __name((e, r, s) => {
2993
- const i = r[Symbol.iterator]();
2994
- let n = false, o = false, c = e.at(-1), l = c === void 0 ? 0 : U2(c), a = i.next(), h = i.next(), g = 0;
2992
+ }, "Ft");
2993
+ var je = /* @__PURE__ */ __name((e) => `${re}${Pe}${e}${Le}`, "je");
2994
+ var Ve = /* @__PURE__ */ __name((e) => `${re}${Fe}${e}${fe}`, "Ve");
2995
+ var yt2 = /* @__PURE__ */ __name((e) => e.map((i) => M2(i)), "yt");
2996
+ var ye = /* @__PURE__ */ __name((e, i, s) => {
2997
+ const r = i[Symbol.iterator]();
2998
+ let n = false, o = false, l = e.at(-1), u = l === void 0 ? 0 : M2(l), a = r.next(), h = r.next(), y2 = 0;
2995
2999
  for (; !a.done; ) {
2996
- const F = a.value, y2 = U2(F);
2997
- l + y2 <= s ? e[e.length - 1] += F : (e.push(F), l = 0), (F === ee || F === Le) && (n = true, o = r.startsWith(pe, g + 1)), n ? o ? F === me && (n = false, o = false) : F === Pe && (n = false) : (l += y2, l === s && !h.done && (e.push(""), l = 0)), a = h, h = i.next(), g += F.length;
3000
+ const E = a.value, f = M2(E);
3001
+ u + f <= s ? e[e.length - 1] += E : (e.push(E), u = 0), (E === re || E === Ne) && (n = true, o = i.startsWith(Fe, y2 + 1)), n ? o ? E === fe && (n = false, o = false) : E === Le && (n = false) : (u += f, u === s && !h.done && (e.push(""), u = 0)), a = h, h = r.next(), y2 += E.length;
2998
3002
  }
2999
- c = e.at(-1), !l && c !== void 0 && c.length > 0 && e.length > 1 && (e[e.length - 2] += e.pop());
3000
- }, "ge");
3003
+ l = e.at(-1), !u && l !== void 0 && l.length > 0 && e.length > 1 && (e[e.length - 2] += e.pop());
3004
+ }, "ye");
3001
3005
  var Et2 = /* @__PURE__ */ __name((e) => {
3002
- const r = e.split(" ");
3003
- let s = r.length;
3004
- for (; s > 0 && !(U2(r[s - 1]) > 0); ) s--;
3005
- return s === r.length ? e : r.slice(0, s).join(" ") + r.slice(s).join("");
3006
+ const i = e.split(" ");
3007
+ let s = i.length;
3008
+ for (; s > 0 && !(M2(i[s - 1]) > 0); ) s--;
3009
+ return s === i.length ? e : i.slice(0, s).join(" ") + i.slice(s).join("");
3006
3010
  }, "Et");
3007
- var vt2 = /* @__PURE__ */ __name((e, r, s = {}) => {
3011
+ var vt2 = /* @__PURE__ */ __name((e, i, s = {}) => {
3008
3012
  if (s.trim !== false && e.trim() === "") return "";
3009
- let i = "", n, o;
3010
- const c = e.split(" "), l = yt2(c);
3013
+ let r = "", n, o;
3014
+ const l = e.split(" "), u = yt2(l);
3011
3015
  let a = [""];
3012
- for (const [p, $2] of c.entries()) {
3016
+ for (const [c, m] of l.entries()) {
3013
3017
  s.trim !== false && (a[a.length - 1] = (a.at(-1) ?? "").trimStart());
3014
- let d = U2(a.at(-1) ?? "");
3015
- if (p !== 0 && (d >= r && (s.wordWrap === false || s.trim === false) && (a.push(""), d = 0), (d > 0 || s.trim === false) && (a[a.length - 1] += " ", d++)), s.hard && l[p] > r) {
3016
- const f = r - d, E = 1 + Math.floor((l[p] - f - 1) / r);
3017
- Math.floor((l[p] - 1) / r) < E && a.push(""), ge(a, $2, r);
3018
+ let $2 = M2(a.at(-1) ?? "");
3019
+ if (c !== 0 && ($2 >= i && (s.wordWrap === false || s.trim === false) && (a.push(""), $2 = 0), ($2 > 0 || s.trim === false) && (a[a.length - 1] += " ", $2++)), s.hard && u[c] > i) {
3020
+ const p = i - $2, g = 1 + Math.floor((u[c] - p - 1) / i);
3021
+ Math.floor((u[c] - 1) / i) < g && a.push(""), ye(a, m, i);
3018
3022
  continue;
3019
3023
  }
3020
- if (d + l[p] > r && d > 0 && l[p] > 0) {
3021
- if (s.wordWrap === false && d < r) {
3022
- ge(a, $2, r);
3024
+ if ($2 + u[c] > i && $2 > 0 && u[c] > 0) {
3025
+ if (s.wordWrap === false && $2 < i) {
3026
+ ye(a, m, i);
3023
3027
  continue;
3024
3028
  }
3025
3029
  a.push("");
3026
3030
  }
3027
- if (d + l[p] > r && s.wordWrap === false) {
3028
- ge(a, $2, r);
3031
+ if ($2 + u[c] > i && s.wordWrap === false) {
3032
+ ye(a, m, i);
3029
3033
  continue;
3030
3034
  }
3031
- a[a.length - 1] += $2;
3035
+ a[a.length - 1] += m;
3032
3036
  }
3033
- s.trim !== false && (a = a.map((p) => Et2(p)));
3037
+ s.trim !== false && (a = a.map((c) => Et2(c)));
3034
3038
  const h = a.join(`
3035
- `), g = h[Symbol.iterator]();
3036
- let F = g.next(), y2 = g.next(), m = 0;
3037
- for (; !F.done; ) {
3038
- const p = F.value, $2 = y2.value;
3039
- if (i += p, p === ee || p === Le) {
3040
- je.lastIndex = m + 1;
3041
- const E = je.exec(h)?.groups;
3042
- if (E?.code !== void 0) {
3043
- const v = Number.parseFloat(E.code);
3039
+ `), y2 = h[Symbol.iterator]();
3040
+ let E = y2.next(), f = y2.next(), F = 0;
3041
+ for (; !E.done; ) {
3042
+ const c = E.value, m = f.value;
3043
+ if (r += c, c === re || c === Ne) {
3044
+ We.lastIndex = F + 1;
3045
+ const g = We.exec(h)?.groups;
3046
+ if (g?.code !== void 0) {
3047
+ const v = Number.parseFloat(g.code);
3044
3048
  n = v === gt2 ? void 0 : v;
3045
- } else E?.uri !== void 0 && (o = E.uri.length === 0 ? void 0 : E.uri);
3049
+ } else g?.uri !== void 0 && (o = g.uri.length === 0 ? void 0 : g.uri);
3046
3050
  }
3047
- const d = n ? ft2(n) : void 0;
3048
- $2 === `
3049
- ` ? (o && (i += ke("")), n && d && (i += Ve(d))) : p === `
3050
- ` && (n && d && (i += Ve(n)), o && (i += ke(o))), m += p.length, F = y2, y2 = g.next();
3051
+ const $2 = n ? Ft2(n) : void 0;
3052
+ m === `
3053
+ ` ? (o && (r += Ve("")), n && $2 && (r += je($2))) : c === `
3054
+ ` && (n && $2 && (r += je(n)), o && (r += Ve(o))), F += c.length, E = f, f = y2.next();
3051
3055
  }
3052
- return i;
3056
+ return r;
3053
3057
  }, "vt");
3054
- function Fe(e, r, s) {
3058
+ function U2(e, i, s) {
3055
3059
  return String(e).normalize().replaceAll(`\r
3056
3060
  `, `
3057
3061
  `).split(`
3058
- `).map((i) => vt2(i, r, s)).join(`
3062
+ `).map((r) => vt2(r, i, s)).join(`
3059
3063
  `);
3060
3064
  }
3061
- __name(Fe, "Fe");
3062
- var wt2 = /* @__PURE__ */ __name((e) => {
3063
- const r = e.active ?? "Yes", s = e.inactive ?? "No";
3064
- return new St({ active: r, inactive: s, signal: e.signal, input: e.input, output: e.output, initialValue: e.initialValue ?? true, render() {
3065
- const i = `${import_picocolors2.default.gray(u)}
3066
- ${M2(this.state)} ${e.message}
3067
- `, n = this.value ? r : s;
3065
+ __name(U2, "U");
3066
+ var At2 = /* @__PURE__ */ __name((e, i, s, r, n) => {
3067
+ let o = i, l = 0;
3068
+ for (let u = s; u < r; u++) {
3069
+ const a = e[u];
3070
+ if (o = o - a.length, l++, o <= n) break;
3071
+ }
3072
+ return { lineCount: o, removals: l };
3073
+ }, "At");
3074
+ var K2 = /* @__PURE__ */ __name((e) => {
3075
+ const { cursor: i, options: s, style: r } = e, n = e.output ?? process.stdout, o = Ct(n), l = e.columnPadding ?? 0, u = e.rowPadding ?? 4, a = o - l, h = Bt(n), y2 = import_picocolors2.default.dim("..."), E = e.maxItems ?? Number.POSITIVE_INFINITY, f = Math.max(h - u, 0), F = Math.max(Math.min(E, f), 5);
3076
+ let c = 0;
3077
+ i >= F - 3 && (c = Math.max(Math.min(i - F + 3, s.length - F), 0));
3078
+ let m = F < s.length && c > 0, $2 = F < s.length && c + F < s.length;
3079
+ const p = Math.min(c + F, s.length), g = [];
3080
+ let v = 0;
3081
+ m && v++, $2 && v++;
3082
+ const S2 = c + (m ? 1 : 0), w2 = p - ($2 ? 1 : 0);
3083
+ for (let A = S2; A < w2; A++) {
3084
+ const C = U2(r(s[A], A === i), a, { hard: true, trim: false }).split(`
3085
+ `);
3086
+ g.push(C), v += C.length;
3087
+ }
3088
+ if (v > f) {
3089
+ let A = 0, C = 0, _ = v;
3090
+ const D2 = i - S2, T2 = /* @__PURE__ */ __name((k2, B2) => At2(g, _, k2, B2, f), "T");
3091
+ m ? ({ lineCount: _, removals: A } = T2(0, D2), _ > f && ({ lineCount: _, removals: C } = T2(D2 + 1, g.length))) : ({ lineCount: _, removals: C } = T2(D2 + 1, g.length), _ > f && ({ lineCount: _, removals: A } = T2(0, D2))), A > 0 && (m = true, g.splice(0, A)), C > 0 && ($2 = true, g.splice(g.length - C, C));
3092
+ }
3093
+ const b2 = [];
3094
+ m && b2.push(y2);
3095
+ for (const A of g) for (const C of A) b2.push(C);
3096
+ return $2 && b2.push(y2), b2;
3097
+ }, "K");
3098
+ var xt = /* @__PURE__ */ __name((e) => {
3099
+ const i = e.active ?? "Yes", s = e.inactive ?? "No";
3100
+ return new Vt({ active: i, inactive: s, signal: e.signal, input: e.input, output: e.output, initialValue: e.initialValue ?? true, render() {
3101
+ const r = `${import_picocolors2.default.gray(d)}
3102
+ ${L2(this.state)} ${e.message}
3103
+ `, n = this.value ? i : s;
3068
3104
  switch (this.state) {
3069
3105
  case "submit":
3070
- return `${i}${import_picocolors2.default.gray(u)} ${import_picocolors2.default.dim(n)}`;
3106
+ return `${r}${import_picocolors2.default.gray(d)} ${import_picocolors2.default.dim(n)}`;
3071
3107
  case "cancel":
3072
- return `${i}${import_picocolors2.default.gray(u)} ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(n))}
3073
- ${import_picocolors2.default.gray(u)}`;
3108
+ return `${r}${import_picocolors2.default.gray(d)} ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(n))}
3109
+ ${import_picocolors2.default.gray(d)}`;
3074
3110
  default:
3075
- return `${i}${import_picocolors2.default.cyan(u)} ${this.value ? `${import_picocolors2.default.green(G2)} ${r}` : `${import_picocolors2.default.dim(H2)} ${import_picocolors2.default.dim(r)}`} ${import_picocolors2.default.dim("/")} ${this.value ? `${import_picocolors2.default.dim(H2)} ${import_picocolors2.default.dim(s)}` : `${import_picocolors2.default.green(G2)} ${s}`}
3076
- ${import_picocolors2.default.cyan(_)}
3111
+ return `${r}${import_picocolors2.default.cyan(d)} ${this.value ? `${import_picocolors2.default.green(J2)} ${i}` : `${import_picocolors2.default.dim(H)} ${import_picocolors2.default.dim(i)}`} ${import_picocolors2.default.dim("/")} ${this.value ? `${import_picocolors2.default.dim(H)} ${import_picocolors2.default.dim(s)}` : `${import_picocolors2.default.green(J2)} ${s}`}
3112
+ ${import_picocolors2.default.cyan(x)}
3077
3113
  `;
3078
3114
  }
3079
3115
  } }).prompt();
3080
- }, "wt");
3081
- var b = { message: /* @__PURE__ */ __name((e = [], { symbol: r = import_picocolors2.default.gray(u), secondarySymbol: s = import_picocolors2.default.gray(u), output: i = process.stdout, spacing: n = 1 } = {}) => {
3116
+ }, "xt");
3117
+ var R = { message: /* @__PURE__ */ __name((e = [], { symbol: i = import_picocolors2.default.gray(d), secondarySymbol: s = import_picocolors2.default.gray(d), output: r = process.stdout, spacing: n = 1 } = {}) => {
3082
3118
  const o = [];
3083
- for (let l = 0; l < n; l++) o.push(`${s}`);
3084
- const c = Array.isArray(e) ? e : e.split(`
3119
+ for (let u = 0; u < n; u++) o.push(`${s}`);
3120
+ const l = Array.isArray(e) ? e : e.split(`
3085
3121
  `);
3086
- if (c.length > 0) {
3087
- const [l, ...a] = c;
3088
- l.length > 0 ? o.push(`${r} ${l}`) : o.push(r);
3122
+ if (l.length > 0) {
3123
+ const [u, ...a] = l;
3124
+ u.length > 0 ? o.push(`${i} ${u}`) : o.push(i);
3089
3125
  for (const h of a) h.length > 0 ? o.push(`${s} ${h}`) : o.push(s);
3090
3126
  }
3091
- i.write(`${o.join(`
3127
+ r.write(`${o.join(`
3092
3128
  `)}
3093
3129
  `);
3094
- }, "message"), info: /* @__PURE__ */ __name((e, r) => {
3095
- b.message(e, { ...r, symbol: import_picocolors2.default.blue(le) });
3096
- }, "info"), success: /* @__PURE__ */ __name((e, r) => {
3097
- b.message(e, { ...r, symbol: import_picocolors2.default.green(ue) });
3098
- }, "success"), step: /* @__PURE__ */ __name((e, r) => {
3099
- b.message(e, { ...r, symbol: import_picocolors2.default.green(L2) });
3100
- }, "step"), warn: /* @__PURE__ */ __name((e, r) => {
3101
- b.message(e, { ...r, symbol: import_picocolors2.default.yellow(ce) });
3102
- }, "warn"), warning: /* @__PURE__ */ __name((e, r) => {
3103
- b.warn(e, r);
3104
- }, "warning"), error: /* @__PURE__ */ __name((e, r) => {
3105
- b.message(e, { ...r, symbol: import_picocolors2.default.red($e) });
3130
+ }, "message"), info: /* @__PURE__ */ __name((e, i) => {
3131
+ R.message(e, { ...i, symbol: import_picocolors2.default.blue(de) });
3132
+ }, "info"), success: /* @__PURE__ */ __name((e, i) => {
3133
+ R.message(e, { ...i, symbol: import_picocolors2.default.green($e) });
3134
+ }, "success"), step: /* @__PURE__ */ __name((e, i) => {
3135
+ R.message(e, { ...i, symbol: import_picocolors2.default.green(W2) });
3136
+ }, "step"), warn: /* @__PURE__ */ __name((e, i) => {
3137
+ R.message(e, { ...i, symbol: import_picocolors2.default.yellow(he) });
3138
+ }, "warn"), warning: /* @__PURE__ */ __name((e, i) => {
3139
+ R.warn(e, i);
3140
+ }, "warning"), error: /* @__PURE__ */ __name((e, i) => {
3141
+ R.message(e, { ...i, symbol: import_picocolors2.default.red(me) });
3106
3142
  }, "error") };
3107
- var xt = /* @__PURE__ */ __name((e = "", r) => {
3108
- (r?.output ?? process.stdout).write(`${import_picocolors2.default.gray(_)} ${import_picocolors2.default.red(e)}
3143
+ var Tt2 = /* @__PURE__ */ __name((e = "", i) => {
3144
+ (i?.output ?? process.stdout).write(`${import_picocolors2.default.gray(x)} ${import_picocolors2.default.red(e)}
3109
3145
 
3110
3146
  `);
3111
- }, "xt");
3112
- var bt2 = /* @__PURE__ */ __name((e = "", r) => {
3113
- (r?.output ?? process.stdout).write(`${import_picocolors2.default.gray(ne)} ${e}
3147
+ }, "Tt");
3148
+ var Mt2 = /* @__PURE__ */ __name((e = "", i) => {
3149
+ (i?.output ?? process.stdout).write(`${import_picocolors2.default.gray(le)} ${e}
3114
3150
  `);
3115
- }, "bt");
3116
- var Dt = /* @__PURE__ */ __name((e = "", r) => {
3117
- (r?.output ?? process.stdout).write(`${import_picocolors2.default.gray(u)}
3118
- ${import_picocolors2.default.gray(_)} ${e}
3151
+ }, "Mt");
3152
+ var Rt = /* @__PURE__ */ __name((e = "", i) => {
3153
+ (i?.output ?? process.stdout).write(`${import_picocolors2.default.gray(d)}
3154
+ ${import_picocolors2.default.gray(x)} ${e}
3119
3155
 
3120
3156
  `);
3121
- }, "Dt");
3122
- var Tt = /* @__PURE__ */ __name((e) => {
3123
- const r = /* @__PURE__ */ __name((i, n) => {
3124
- const o = i.label ?? String(i.value);
3125
- return n === "active" ? `${import_picocolors2.default.cyan(J2)} ${o}${i.hint ? ` ${import_picocolors2.default.dim(`(${i.hint})`)}` : ""}` : n === "selected" ? `${import_picocolors2.default.green(W2)} ${import_picocolors2.default.dim(o)}${i.hint ? ` ${import_picocolors2.default.dim(`(${i.hint})`)}` : ""}` : n === "cancelled" ? `${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(o))}` : n === "active-selected" ? `${import_picocolors2.default.green(W2)} ${o}${i.hint ? ` ${import_picocolors2.default.dim(`(${i.hint})`)}` : ""}` : n === "submitted" ? `${import_picocolors2.default.dim(o)}` : `${import_picocolors2.default.dim(X2)} ${import_picocolors2.default.dim(o)}`;
3126
- }, "r"), s = e.required ?? true;
3127
- return new kt({ options: e.options, signal: e.signal, input: e.input, output: e.output, initialValues: e.initialValues, required: s, cursorAt: e.cursorAt, validate(i) {
3128
- if (s && (i === void 0 || i.length === 0)) return `Please select at least one option.
3157
+ }, "Rt");
3158
+ var Ot = /* @__PURE__ */ __name((e) => {
3159
+ const i = /* @__PURE__ */ __name((r, n) => {
3160
+ const o = r.label ?? String(r.value);
3161
+ return n === "disabled" ? `${import_picocolors2.default.gray(X2)} ${import_picocolors2.default.gray(o)}${r.hint ? ` ${import_picocolors2.default.dim(`(${r.hint ?? "disabled"})`)}` : ""}` : n === "active" ? `${import_picocolors2.default.cyan(Z2)} ${o}${r.hint ? ` ${import_picocolors2.default.dim(`(${r.hint})`)}` : ""}` : n === "selected" ? `${import_picocolors2.default.green(j2)} ${import_picocolors2.default.dim(o)}${r.hint ? ` ${import_picocolors2.default.dim(`(${r.hint})`)}` : ""}` : n === "cancelled" ? `${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(o))}` : n === "active-selected" ? `${import_picocolors2.default.green(j2)} ${o}${r.hint ? ` ${import_picocolors2.default.dim(`(${r.hint})`)}` : ""}` : n === "submitted" ? `${import_picocolors2.default.dim(o)}` : `${import_picocolors2.default.dim(X2)} ${import_picocolors2.default.dim(o)}`;
3162
+ }, "i"), s = e.required ?? true;
3163
+ return new yt({ options: e.options, signal: e.signal, input: e.input, output: e.output, initialValues: e.initialValues, required: s, cursorAt: e.cursorAt, validate(r) {
3164
+ if (s && (r === void 0 || r.length === 0)) return `Please select at least one option.
3129
3165
  ${import_picocolors2.default.reset(import_picocolors2.default.dim(`Press ${import_picocolors2.default.gray(import_picocolors2.default.bgWhite(import_picocolors2.default.inverse(" space ")))} to select, ${import_picocolors2.default.gray(import_picocolors2.default.bgWhite(import_picocolors2.default.inverse(" enter ")))} to submit`))}`;
3130
3166
  }, render() {
3131
- const i = `${import_picocolors2.default.gray(u)}
3132
- ${M2(this.state)} ${e.message}
3133
- `, n = this.value ?? [], o = /* @__PURE__ */ __name((c, l) => {
3134
- const a = n.includes(c.value);
3135
- return l && a ? r(c, "active-selected") : a ? r(c, "selected") : r(c, l ? "active" : "inactive");
3167
+ const r = `${import_picocolors2.default.gray(d)}
3168
+ ${L2(this.state)} ${e.message}
3169
+ `, n = this.value ?? [], o = /* @__PURE__ */ __name((l, u) => {
3170
+ if (l.disabled) return i(l, "disabled");
3171
+ const a = n.includes(l.value);
3172
+ return u && a ? i(l, "active-selected") : a ? i(l, "selected") : i(l, u ? "active" : "inactive");
3136
3173
  }, "o");
3137
3174
  switch (this.state) {
3138
3175
  case "submit":
3139
- return `${i}${import_picocolors2.default.gray(u)} ${this.options.filter(({ value: c }) => n.includes(c)).map((c) => r(c, "submitted")).join(import_picocolors2.default.dim(", ")) || import_picocolors2.default.dim("none")}`;
3176
+ return `${r}${import_picocolors2.default.gray(d)} ${this.options.filter(({ value: l }) => n.includes(l)).map((l) => i(l, "submitted")).join(import_picocolors2.default.dim(", ")) || import_picocolors2.default.dim("none")}`;
3140
3177
  case "cancel": {
3141
- const c = this.options.filter(({ value: l }) => n.includes(l)).map((l) => r(l, "cancelled")).join(import_picocolors2.default.dim(", "));
3142
- return `${i}${import_picocolors2.default.gray(u)}${c.trim() ? ` ${c}
3143
- ${import_picocolors2.default.gray(u)}` : ""}`;
3178
+ const l = this.options.filter(({ value: u }) => n.includes(u)).map((u) => i(u, "cancelled")).join(import_picocolors2.default.dim(", "));
3179
+ return `${r}${import_picocolors2.default.gray(d)}${l.trim() ? ` ${l}
3180
+ ${import_picocolors2.default.gray(d)}` : ""}`;
3144
3181
  }
3145
3182
  case "error": {
3146
- const c = this.error.split(`
3147
- `).map((l, a) => a === 0 ? `${import_picocolors2.default.yellow(_)} ${import_picocolors2.default.yellow(l)}` : ` ${l}`).join(`
3183
+ const l = `${import_picocolors2.default.yellow(d)} `, u = this.error.split(`
3184
+ `).map((a, h) => h === 0 ? `${import_picocolors2.default.yellow(x)} ${import_picocolors2.default.yellow(a)}` : ` ${a}`).join(`
3148
3185
  `);
3149
- return `${i + import_picocolors2.default.yellow(u)} ${k2({ output: e.output, options: this.options, cursor: this.cursor, maxItems: e.maxItems, style: o }).join(`
3150
- ${import_picocolors2.default.yellow(u)} `)}
3151
- ${c}
3186
+ return `${r}${l}${K2({ output: e.output, options: this.options, cursor: this.cursor, maxItems: e.maxItems, columnPadding: l.length, style: o }).join(`
3187
+ ${l}`)}
3188
+ ${u}
3152
3189
  `;
3153
3190
  }
3154
- default:
3155
- return `${i}${import_picocolors2.default.cyan(u)} ${k2({ output: e.output, options: this.options, cursor: this.cursor, maxItems: e.maxItems, style: o }).join(`
3156
- ${import_picocolors2.default.cyan(u)} `)}
3157
- ${import_picocolors2.default.cyan(_)}
3191
+ default: {
3192
+ const l = `${import_picocolors2.default.cyan(d)} `;
3193
+ return `${r}${l}${K2({ output: e.output, options: this.options, cursor: this.cursor, maxItems: e.maxItems, columnPadding: l.length, style: o }).join(`
3194
+ ${l}`)}
3195
+ ${import_picocolors2.default.cyan(x)}
3158
3196
  `;
3197
+ }
3159
3198
  }
3160
3199
  } }).prompt();
3161
- }, "Tt");
3162
- var fe = /* @__PURE__ */ __name(({ indicator: e = "dots", onCancel: r, output: s = process.stdout, cancelMessage: i, errorMessage: n, frames: o = q2 ? ["\u25D2", "\u25D0", "\u25D3", "\u25D1"] : ["\u2022", "o", "O", "0"], delay: c = q2 ? 80 : 120, signal: l } = {}) => {
3163
- const a = se();
3164
- let h, g, F = false, y2 = false, m = "", p, $2 = performance.now();
3165
- const d = bt(s), f = /* @__PURE__ */ __name((S) => {
3166
- const D2 = S > 1 ? n ?? C.messages.error : i ?? C.messages.cancel;
3167
- y2 = S === 1, F && (N2(D2, S), y2 && typeof r == "function" && r());
3168
- }, "f"), E = /* @__PURE__ */ __name(() => f(2), "E"), v = /* @__PURE__ */ __name(() => f(1), "v"), w2 = /* @__PURE__ */ __name(() => {
3169
- process.on("uncaughtExceptionMonitor", E), process.on("unhandledRejection", E), process.on("SIGINT", v), process.on("SIGTERM", v), process.on("exit", f), l && l.addEventListener("abort", v);
3170
- }, "w"), B2 = /* @__PURE__ */ __name(() => {
3171
- process.removeListener("uncaughtExceptionMonitor", E), process.removeListener("unhandledRejection", E), process.removeListener("SIGINT", v), process.removeListener("SIGTERM", v), process.removeListener("exit", f), l && l.removeEventListener("abort", v);
3172
- }, "B"), x = /* @__PURE__ */ __name(() => {
3173
- if (p === void 0) return;
3174
- a && s.write(`
3200
+ }, "Ot");
3201
+ var Vt2 = import_picocolors2.default.magenta;
3202
+ var Ee = /* @__PURE__ */ __name(({ indicator: e = "dots", onCancel: i, output: s = process.stdout, cancelMessage: r, errorMessage: n, frames: o = z2 ? ["\u25D2", "\u25D0", "\u25D3", "\u25D1"] : ["\u2022", "o", "O", "0"], delay: l = z2 ? 80 : 120, signal: u, ...a } = {}) => {
3203
+ const h = ne();
3204
+ let y2, E, f = false, F = false, c = "", m, $2 = performance.now();
3205
+ const p = Ct(s), g = a?.styleFrame ?? Vt2, v = /* @__PURE__ */ __name((B2) => {
3206
+ const O2 = B2 > 1 ? n ?? b.messages.error : r ?? b.messages.cancel;
3207
+ F = B2 === 1, f && (k2(O2, B2), F && typeof i == "function" && i());
3208
+ }, "v"), S2 = /* @__PURE__ */ __name(() => v(2), "S"), w2 = /* @__PURE__ */ __name(() => v(1), "w"), b2 = /* @__PURE__ */ __name(() => {
3209
+ process.on("uncaughtExceptionMonitor", S2), process.on("unhandledRejection", S2), process.on("SIGINT", w2), process.on("SIGTERM", w2), process.on("exit", v), u && u.addEventListener("abort", w2);
3210
+ }, "b"), A = /* @__PURE__ */ __name(() => {
3211
+ process.removeListener("uncaughtExceptionMonitor", S2), process.removeListener("unhandledRejection", S2), process.removeListener("SIGINT", w2), process.removeListener("SIGTERM", w2), process.removeListener("exit", v), u && u.removeEventListener("abort", w2);
3212
+ }, "A"), C = /* @__PURE__ */ __name(() => {
3213
+ if (m === void 0) return;
3214
+ h && s.write(`
3175
3215
  `);
3176
- const S = Fe(p, d, { hard: true, trim: false }).split(`
3216
+ const B2 = U2(m, p, { hard: true, trim: false }).split(`
3177
3217
  `);
3178
- S.length > 1 && s.write(import_sisteransi2.cursor.up(S.length - 1)), s.write(import_sisteransi2.cursor.to(0)), s.write(import_sisteransi2.erase.down());
3179
- }, "x"), A = /* @__PURE__ */ __name((S) => S.replace(/\.+$/, ""), "A"), C2 = /* @__PURE__ */ __name((S) => {
3180
- const D2 = (performance.now() - S) / 1e3, R2 = Math.floor(D2 / 60), j2 = Math.floor(D2 % 60);
3181
- return R2 > 0 ? `[${R2}m ${j2}s]` : `[${j2}s]`;
3182
- }, "C"), O2 = /* @__PURE__ */ __name((S = "") => {
3183
- F = true, h = Ct({ output: s }), m = A(S), $2 = performance.now(), s.write(`${import_picocolors2.default.gray(u)}
3218
+ B2.length > 1 && s.write(import_sisteransi2.cursor.up(B2.length - 1)), s.write(import_sisteransi2.cursor.to(0)), s.write(import_sisteransi2.erase.down());
3219
+ }, "C"), _ = /* @__PURE__ */ __name((B2) => B2.replace(/\.+$/, ""), "_"), D2 = /* @__PURE__ */ __name((B2) => {
3220
+ const O2 = (performance.now() - B2) / 1e3, P2 = Math.floor(O2 / 60), G2 = Math.floor(O2 % 60);
3221
+ return P2 > 0 ? `[${P2}m ${G2}s]` : `[${G2}s]`;
3222
+ }, "D"), T2 = /* @__PURE__ */ __name((B2 = "") => {
3223
+ f = true, y2 = bt({ output: s }), c = _(B2), $2 = performance.now(), s.write(`${import_picocolors2.default.gray(d)}
3184
3224
  `);
3185
- let D2 = 0, R2 = 0;
3186
- w2(), g = setInterval(() => {
3187
- if (a && m === p) return;
3188
- x(), p = m;
3189
- const j2 = import_picocolors2.default.magenta(o[D2]);
3190
- let K;
3191
- if (a) K = `${j2} ${m}...`;
3192
- else if (e === "timer") K = `${j2} ${m} ${C2($2)}`;
3225
+ let O2 = 0, P2 = 0;
3226
+ b2(), E = setInterval(() => {
3227
+ if (h && c === m) return;
3228
+ C(), m = c;
3229
+ const G2 = g(o[O2]);
3230
+ let Y2;
3231
+ if (h) Y2 = `${G2} ${c}...`;
3232
+ else if (e === "timer") Y2 = `${G2} ${c} ${D2($2)}`;
3193
3233
  else {
3194
- const qe = ".".repeat(Math.floor(R2)).slice(0, 3);
3195
- K = `${j2} ${m}${qe}`;
3196
- }
3197
- const Ke = Fe(K, d, { hard: true, trim: false });
3198
- s.write(Ke), D2 = D2 + 1 < o.length ? D2 + 1 : 0, R2 = R2 < 4 ? R2 + 0.125 : 0;
3199
- }, c);
3200
- }, "O"), N2 = /* @__PURE__ */ __name((S = "", D2 = 0) => {
3201
- F = false, clearInterval(g), x();
3202
- const R2 = D2 === 0 ? import_picocolors2.default.green(L2) : D2 === 1 ? import_picocolors2.default.red(re) : import_picocolors2.default.red(ie);
3203
- m = S ?? m, e === "timer" ? s.write(`${R2} ${m} ${C2($2)}
3204
- `) : s.write(`${R2} ${m}
3205
- `), B2(), h();
3206
- }, "N");
3207
- return { start: O2, stop: N2, message: /* @__PURE__ */ __name((S = "") => {
3208
- m = A(S ?? m);
3234
+ const Xe = ".".repeat(Math.floor(P2)).slice(0, 3);
3235
+ Y2 = `${G2} ${c}${Xe}`;
3236
+ }
3237
+ const Je = U2(Y2, p, { hard: true, trim: false });
3238
+ s.write(Je), O2 = O2 + 1 < o.length ? O2 + 1 : 0, P2 = P2 < 4 ? P2 + 0.125 : 0;
3239
+ }, l);
3240
+ }, "T"), k2 = /* @__PURE__ */ __name((B2 = "", O2 = 0) => {
3241
+ if (!f) return;
3242
+ f = false, clearInterval(E), C();
3243
+ const P2 = O2 === 0 ? import_picocolors2.default.green(W2) : O2 === 1 ? import_picocolors2.default.red(ae) : import_picocolors2.default.red(oe);
3244
+ c = B2 ?? c, e === "timer" ? s.write(`${P2} ${c} ${D2($2)}
3245
+ `) : s.write(`${P2} ${c}
3246
+ `), A(), y2();
3247
+ }, "k");
3248
+ return { start: T2, stop: k2, message: /* @__PURE__ */ __name((B2 = "") => {
3249
+ c = _(B2 ?? c);
3209
3250
  }, "message"), get isCancelled() {
3210
- return y2;
3251
+ return F;
3211
3252
  } };
3212
- }, "fe");
3213
- var He = { light: I2("\u2500", "-"), heavy: I2("\u2501", "="), block: I2("\u2588", "#") };
3214
- var Wt2 = /* @__PURE__ */ __name((e) => {
3215
- const r = /* @__PURE__ */ __name((s, i) => {
3253
+ }, "Ee");
3254
+ var Ke = { light: I2("\u2500", "-"), heavy: I2("\u2501", "="), block: I2("\u2588", "#") };
3255
+ var Gt = /* @__PURE__ */ __name((e) => {
3256
+ const i = /* @__PURE__ */ __name((s, r) => {
3216
3257
  const n = s.label ?? String(s.value);
3217
- switch (i) {
3258
+ switch (r) {
3259
+ case "disabled":
3260
+ return `${import_picocolors2.default.gray(H)} ${import_picocolors2.default.gray(n)}${s.hint ? ` ${import_picocolors2.default.dim(`(${s.hint ?? "disabled"})`)}` : ""}`;
3218
3261
  case "selected":
3219
3262
  return `${import_picocolors2.default.dim(n)}`;
3220
3263
  case "active":
3221
- return `${import_picocolors2.default.green(G2)} ${n}${s.hint ? ` ${import_picocolors2.default.dim(`(${s.hint})`)}` : ""}`;
3264
+ return `${import_picocolors2.default.green(J2)} ${n}${s.hint ? ` ${import_picocolors2.default.dim(`(${s.hint})`)}` : ""}`;
3222
3265
  case "cancelled":
3223
3266
  return `${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(n))}`;
3224
3267
  default:
3225
- return `${import_picocolors2.default.dim(H2)} ${import_picocolors2.default.dim(n)}`;
3268
+ return `${import_picocolors2.default.dim(H)} ${import_picocolors2.default.dim(n)}`;
3226
3269
  }
3227
- }, "r");
3228
- return new Mt({ options: e.options, signal: e.signal, input: e.input, output: e.output, initialValue: e.initialValue, render() {
3229
- const s = `${import_picocolors2.default.gray(u)}
3230
- ${M2(this.state)} ${e.message}
3270
+ }, "i");
3271
+ return new Lt({ options: e.options, signal: e.signal, input: e.input, output: e.output, initialValue: e.initialValue, render() {
3272
+ const s = `${import_picocolors2.default.gray(d)}
3273
+ ${L2(this.state)} ${e.message}
3231
3274
  `;
3232
3275
  switch (this.state) {
3233
3276
  case "submit":
3234
- return `${s}${import_picocolors2.default.gray(u)} ${r(this.options[this.cursor], "selected")}`;
3277
+ return `${s}${import_picocolors2.default.gray(d)} ${i(this.options[this.cursor], "selected")}`;
3235
3278
  case "cancel":
3236
- return `${s}${import_picocolors2.default.gray(u)} ${r(this.options[this.cursor], "cancelled")}
3237
- ${import_picocolors2.default.gray(u)}`;
3238
- default:
3239
- return `${s}${import_picocolors2.default.cyan(u)} ${k2({ output: e.output, cursor: this.cursor, options: this.options, maxItems: e.maxItems, style: /* @__PURE__ */ __name((i, n) => r(i, n ? "active" : "inactive"), "style") }).join(`
3240
- ${import_picocolors2.default.cyan(u)} `)}
3241
- ${import_picocolors2.default.cyan(_)}
3279
+ return `${s}${import_picocolors2.default.gray(d)} ${i(this.options[this.cursor], "cancelled")}
3280
+ ${import_picocolors2.default.gray(d)}`;
3281
+ default: {
3282
+ const r = `${import_picocolors2.default.cyan(d)} `;
3283
+ return `${s}${r}${K2({ output: e.output, cursor: this.cursor, options: this.options, maxItems: e.maxItems, columnPadding: r.length, style: /* @__PURE__ */ __name((n, o) => i(n, n.disabled ? "disabled" : o ? "active" : "inactive"), "style") }).join(`
3284
+ ${r}`)}
3285
+ ${import_picocolors2.default.cyan(x)}
3242
3286
  `;
3287
+ }
3243
3288
  }
3244
3289
  } }).prompt();
3245
- }, "Wt");
3246
- var Ue = `${import_picocolors2.default.gray(u)} `;
3247
- var Vt2 = /* @__PURE__ */ __name((e) => {
3248
- const r = e.output ?? process.stdout, s = bt(r), i = import_picocolors2.default.gray(u), n = e.spacing ?? 1, o = 3, c = e.retainLog === true, l = !se() && Se(r);
3249
- r.write(`${i}
3250
- `), r.write(`${import_picocolors2.default.green(L2)} ${e.title}
3290
+ }, "Gt");
3291
+ var qe = `${import_picocolors2.default.gray(d)} `;
3292
+ var Kt = /* @__PURE__ */ __name((e) => {
3293
+ const i = e.output ?? process.stdout, s = Ct(i), r = import_picocolors2.default.gray(d), n = e.spacing ?? 1, o = 3, l = e.retainLog === true, u = !ne() && Be(i);
3294
+ i.write(`${r}
3295
+ `), i.write(`${import_picocolors2.default.green(W2)} ${e.title}
3251
3296
  `);
3252
- for (let d = 0; d < n; d++) r.write(`${i}
3297
+ for (let $2 = 0; $2 < n; $2++) i.write(`${r}
3253
3298
  `);
3254
3299
  const a = [{ value: "", full: "" }];
3255
3300
  let h = false;
3256
- const g = /* @__PURE__ */ __name((d) => {
3301
+ const y2 = /* @__PURE__ */ __name(($2) => {
3257
3302
  if (a.length === 0) return;
3258
- let f = 0;
3259
- d && (f += n + 2);
3260
- for (const E of a) {
3261
- const { value: v, result: w2 } = E;
3262
- let B2 = w2?.message ?? v;
3263
- if (B2.length === 0) continue;
3264
- w2 === void 0 && E.header !== void 0 && E.header !== "" && (B2 += `
3265
- ${E.header}`);
3266
- const x = B2.split(`
3267
- `).reduce((A, C2) => C2 === "" ? A + 1 : A + Math.ceil((C2.length + o) / s), 0);
3268
- f += x;
3303
+ let p = 0;
3304
+ $2 && (p += n + 2);
3305
+ for (const g of a) {
3306
+ const { value: v, result: S2 } = g;
3307
+ let w2 = S2?.message ?? v;
3308
+ if (w2.length === 0) continue;
3309
+ S2 === void 0 && g.header !== void 0 && g.header !== "" && (w2 += `
3310
+ ${g.header}`);
3311
+ const b2 = w2.split(`
3312
+ `).reduce((A, C) => C === "" ? A + 1 : A + Math.ceil((C.length + o) / s), 0);
3313
+ p += b2;
3269
3314
  }
3270
- f > 0 && (f += 1, r.write(import_sisteransi2.erase.lines(f)));
3271
- }, "g"), F = /* @__PURE__ */ __name((d, f, E) => {
3272
- const v = E ? `${d.full}
3273
- ${d.value}` : d.value;
3274
- d.header !== void 0 && d.header !== "" && b.message(d.header.split(`
3275
- `).map(import_picocolors2.default.bold), { output: r, secondarySymbol: i, symbol: i, spacing: 0 }), b.message(v.split(`
3276
- `).map(import_picocolors2.default.dim), { output: r, secondarySymbol: i, symbol: i, spacing: f ?? n });
3277
- }, "F"), y2 = /* @__PURE__ */ __name(() => {
3278
- for (const d of a) {
3279
- const { header: f, value: E, full: v } = d;
3280
- (f === void 0 || f.length === 0) && E.length === 0 || F(d, void 0, c === true && v.length > 0);
3315
+ p > 0 && (p += 1, i.write(import_sisteransi2.erase.lines(p)));
3316
+ }, "y"), E = /* @__PURE__ */ __name(($2, p, g) => {
3317
+ const v = g ? `${$2.full}
3318
+ ${$2.value}` : $2.value;
3319
+ $2.header !== void 0 && $2.header !== "" && R.message($2.header.split(`
3320
+ `).map(import_picocolors2.default.bold), { output: i, secondarySymbol: r, symbol: r, spacing: 0 }), R.message(v.split(`
3321
+ `).map(import_picocolors2.default.dim), { output: i, secondarySymbol: r, symbol: r, spacing: p ?? n });
3322
+ }, "E"), f = /* @__PURE__ */ __name(() => {
3323
+ for (const $2 of a) {
3324
+ const { header: p, value: g, full: v } = $2;
3325
+ (p === void 0 || p.length === 0) && g.length === 0 || E($2, void 0, l === true && v.length > 0);
3281
3326
  }
3282
- }, "y"), m = /* @__PURE__ */ __name((d, f, E) => {
3283
- if (g(false), (E?.raw !== true || !h) && d.value !== "" && (d.value += `
3284
- `), d.value += f, h = E?.raw === true, e.limit !== void 0) {
3285
- const v = d.value.split(`
3286
- `), w2 = v.length - e.limit;
3287
- if (w2 > 0) {
3288
- const B2 = v.splice(0, w2);
3289
- c && (d.full += (d.full === "" ? "" : `
3290
- `) + B2.join(`
3327
+ }, "f"), F = /* @__PURE__ */ __name(($2, p, g) => {
3328
+ if (y2(false), (g?.raw !== true || !h) && $2.value !== "" && ($2.value += `
3329
+ `), $2.value += p, h = g?.raw === true, e.limit !== void 0) {
3330
+ const v = $2.value.split(`
3331
+ `), S2 = v.length - e.limit;
3332
+ if (S2 > 0) {
3333
+ const w2 = v.splice(0, S2);
3334
+ l && ($2.full += ($2.full === "" ? "" : `
3335
+ `) + w2.join(`
3291
3336
  `));
3292
3337
  }
3293
- d.value = v.join(`
3338
+ $2.value = v.join(`
3294
3339
  `);
3295
3340
  }
3296
- l && p();
3297
- }, "m"), p = /* @__PURE__ */ __name(() => {
3298
- for (const d of a) d.result ? d.result.status === "error" ? b.error(d.result.message, { output: r, secondarySymbol: i, spacing: 0 }) : b.success(d.result.message, { output: r, secondarySymbol: i, spacing: 0 }) : d.value !== "" && F(d, 0);
3299
- }, "p"), $2 = /* @__PURE__ */ __name((d, f) => {
3300
- g(false), d.result = f, l && p();
3301
- }, "$");
3302
- return { message(d, f) {
3303
- m(a[0], d, f);
3304
- }, group(d) {
3305
- const f = { header: d, value: "", full: "" };
3306
- return a.push(f), { message(E, v) {
3307
- m(f, E, v);
3308
- }, error(E) {
3309
- $2(f, { status: "error", message: E });
3310
- }, success(E) {
3311
- $2(f, { status: "success", message: E });
3341
+ u && c();
3342
+ }, "F"), c = /* @__PURE__ */ __name(() => {
3343
+ for (const $2 of a) $2.result ? $2.result.status === "error" ? R.error($2.result.message, { output: i, secondarySymbol: r, spacing: 0 }) : R.success($2.result.message, { output: i, secondarySymbol: r, spacing: 0 }) : $2.value !== "" && E($2, 0);
3344
+ }, "c"), m = /* @__PURE__ */ __name(($2, p) => {
3345
+ y2(false), $2.result = p, u && c();
3346
+ }, "m");
3347
+ return { message($2, p) {
3348
+ F(a[0], $2, p);
3349
+ }, group($2) {
3350
+ const p = { header: $2, value: "", full: "" };
3351
+ return a.push(p), { message(g, v) {
3352
+ F(p, g, v);
3353
+ }, error(g) {
3354
+ m(p, { status: "error", message: g });
3355
+ }, success(g) {
3356
+ m(p, { status: "success", message: g });
3312
3357
  } };
3313
- }, error(d, f) {
3314
- g(true), b.error(d, { output: r, secondarySymbol: i, spacing: 1 }), f?.showLog !== false && y2(), a.splice(1, a.length - 1), a[0].value = "", a[0].full = "";
3315
- }, success(d, f) {
3316
- g(true), b.success(d, { output: r, secondarySymbol: i, spacing: 1 }), f?.showLog === true && y2(), a.splice(1, a.length - 1), a[0].value = "", a[0].full = "";
3358
+ }, error($2, p) {
3359
+ y2(true), R.error($2, { output: i, secondarySymbol: r, spacing: 1 }), p?.showLog !== false && f(), a.splice(1, a.length - 1), a[0].value = "", a[0].full = "";
3360
+ }, success($2, p) {
3361
+ y2(true), R.success($2, { output: i, secondarySymbol: r, spacing: 1 }), p?.showLog === true && f(), a.splice(1, a.length - 1), a[0].value = "", a[0].full = "";
3317
3362
  } };
3318
- }, "Vt");
3319
- var kt2 = /* @__PURE__ */ __name((e) => new Wt({ validate: e.validate, placeholder: e.placeholder, defaultValue: e.defaultValue, initialValue: e.initialValue, output: e.output, signal: e.signal, input: e.input, render() {
3320
- const r = `${import_picocolors2.default.gray(u)}
3321
- ${M2(this.state)} ${e.message}
3322
- `, s = e.placeholder ? import_picocolors2.default.inverse(e.placeholder[0]) + import_picocolors2.default.dim(e.placeholder.slice(1)) : import_picocolors2.default.inverse(import_picocolors2.default.hidden("_")), i = this.userInput ? this.userInputWithCursor : s, n = this.value ?? "";
3363
+ }, "Kt");
3364
+ var qt = /* @__PURE__ */ __name((e) => new Tt({ validate: e.validate, placeholder: e.placeholder, defaultValue: e.defaultValue, initialValue: e.initialValue, output: e.output, signal: e.signal, input: e.input, render() {
3365
+ const i = `${import_picocolors2.default.gray(d)}
3366
+ ${L2(this.state)} ${e.message}
3367
+ `, s = e.placeholder ? import_picocolors2.default.inverse(e.placeholder[0]) + import_picocolors2.default.dim(e.placeholder.slice(1)) : import_picocolors2.default.inverse(import_picocolors2.default.hidden("_")), r = this.userInput ? this.userInputWithCursor : s, n = this.value ?? "";
3323
3368
  switch (this.state) {
3324
3369
  case "error": {
3325
3370
  const o = this.error ? ` ${import_picocolors2.default.yellow(this.error)}` : "";
3326
- return `${r.trim()}
3327
- ${import_picocolors2.default.yellow(u)} ${i}
3328
- ${import_picocolors2.default.yellow(_)}${o}
3371
+ return `${i.trim()}
3372
+ ${import_picocolors2.default.yellow(d)} ${r}
3373
+ ${import_picocolors2.default.yellow(x)}${o}
3329
3374
  `;
3330
3375
  }
3331
3376
  case "submit": {
3332
3377
  const o = n ? ` ${import_picocolors2.default.dim(n)}` : "";
3333
- return `${r}${import_picocolors2.default.gray(u)}${o}`;
3378
+ return `${i}${import_picocolors2.default.gray(d)}${o}`;
3334
3379
  }
3335
3380
  case "cancel": {
3336
3381
  const o = n ? ` ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(n))}` : "";
3337
- return `${r}${import_picocolors2.default.gray(u)}${o}${n.trim() ? `
3338
- ${import_picocolors2.default.gray(u)}` : ""}`;
3382
+ return `${i}${import_picocolors2.default.gray(d)}${o}${n.trim() ? `
3383
+ ${import_picocolors2.default.gray(d)}` : ""}`;
3339
3384
  }
3340
3385
  default:
3341
- return `${r}${import_picocolors2.default.cyan(u)} ${i}
3342
- ${import_picocolors2.default.cyan(_)}
3386
+ return `${i}${import_picocolors2.default.cyan(d)} ${r}
3387
+ ${import_picocolors2.default.cyan(x)}
3343
3388
  `;
3344
3389
  }
3345
- } }).prompt(), "kt");
3390
+ } }).prompt(), "qt");
3346
3391
 
3347
3392
  // src/node-logger/prompts/prompt-config.ts
3348
3393
  var prompt_config_exports = {};
@@ -3463,31 +3508,31 @@ var ClackPromptProvider = class extends PromptProvider {
3463
3508
  if (promptOptions?.onCancel) {
3464
3509
  promptOptions.onCancel();
3465
3510
  } else {
3466
- xt("Operation canceled.");
3511
+ Tt2("Operation canceled.");
3467
3512
  process.exit(0);
3468
3513
  }
3469
3514
  }
3470
3515
  }
3471
3516
  async text(options, promptOptions) {
3472
- const result = await kt2(options);
3517
+ const result = await qt(options);
3473
3518
  this.handleCancel(result, promptOptions);
3474
3519
  logTracker.addLog("prompt", options.message, { choice: result });
3475
3520
  return result.toString();
3476
3521
  }
3477
3522
  async confirm(options, promptOptions) {
3478
- const result = await wt2(options);
3523
+ const result = await xt(options);
3479
3524
  this.handleCancel(result, promptOptions);
3480
3525
  logTracker.addLog("prompt", options.message, { choice: result });
3481
3526
  return Boolean(result);
3482
3527
  }
3483
3528
  async select(options, promptOptions) {
3484
- const result = await Wt2(options);
3529
+ const result = await Gt(options);
3485
3530
  this.handleCancel(result, promptOptions);
3486
3531
  logTracker.addLog("prompt", options.message, { choice: result });
3487
3532
  return result;
3488
3533
  }
3489
3534
  async multiselect(options, promptOptions) {
3490
- const result = await Tt({
3535
+ const result = await Ot({
3491
3536
  ...options,
3492
3537
  required: options.required
3493
3538
  });
@@ -3496,7 +3541,7 @@ var ClackPromptProvider = class extends PromptProvider {
3496
3541
  return result;
3497
3542
  }
3498
3543
  spinner(options) {
3499
- const task = fe();
3544
+ const task = Ee();
3500
3545
  const spinnerId = `${options.id}-spinner`;
3501
3546
  return {
3502
3547
  start: /* @__PURE__ */ __name((message) => {
@@ -3514,7 +3559,7 @@ var ClackPromptProvider = class extends PromptProvider {
3514
3559
  };
3515
3560
  }
3516
3561
  taskLog(options) {
3517
- const task = Vt2(options);
3562
+ const task = Kt(options);
3518
3563
  const taskId = `${options.id}-task`;
3519
3564
  logTracker.addLog("info", `${taskId}-start: ${options.title}`);
3520
3565
  currentTaskLog = task;
@@ -4079,7 +4124,7 @@ function wrapTextForClackHint(text2, width, label) {
4079
4124
  if (finalLines.length <= 1) {
4080
4125
  return finalLines[0] || "";
4081
4126
  }
4082
- const indentation2 = (0, import_picocolors3.reset)((0, import_picocolors3.cyan)(u)) + " ".repeat(indentSpaces);
4127
+ const indentation2 = (0, import_picocolors3.reset)((0, import_picocolors3.cyan)(d)) + " ".repeat(indentSpaces);
4083
4128
  return finalLines.map((line, index) => {
4084
4129
  if (index === 0) {
4085
4130
  return line;
@@ -4090,7 +4135,7 @@ function wrapTextForClackHint(text2, width, label) {
4090
4135
  if (lines.length <= 1) {
4091
4136
  return initialWrap;
4092
4137
  }
4093
- const indentation = (0, import_picocolors3.reset)((0, import_picocolors3.cyan)(u)) + " ".repeat(indentSpaces);
4138
+ const indentation = (0, import_picocolors3.reset)((0, import_picocolors3.cyan)(d)) + " ".repeat(indentSpaces);
4094
4139
  return lines.map((line, index) => {
4095
4140
  if (index === 0) {
4096
4141
  return line;
@@ -4121,13 +4166,13 @@ var createLogFunction = /* @__PURE__ */ __name((clackFn, consoleFn) => () => isC
4121
4166
  }
4122
4167
  } : consoleFn, "createLogFunction");
4123
4168
  var LOG_FUNCTIONS = {
4124
- log: createLogFunction(b.message, console.log),
4125
- info: createLogFunction(b.info, console.log),
4126
- warn: createLogFunction(b.warn, console.warn),
4127
- error: createLogFunction(b.error, console.error),
4128
- intro: createLogFunction(bt2, console.log),
4129
- outro: createLogFunction(Dt, console.log),
4130
- step: createLogFunction(b.step, console.log)
4169
+ log: createLogFunction(R.message, console.log),
4170
+ info: createLogFunction(R.info, console.log),
4171
+ warn: createLogFunction(R.warn, console.warn),
4172
+ error: createLogFunction(R.error, console.error),
4173
+ intro: createLogFunction(Mt2, console.log),
4174
+ outro: createLogFunction(Rt, console.log),
4175
+ step: createLogFunction(R.step, console.log)
4131
4176
  };
4132
4177
  var LOG_LEVELS = {
4133
4178
  trace: 1,