@kubb/core 3.6.2 → 3.6.4

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.
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunkSD6UC23P_cjs = require('./chunk-SD6UC23P.cjs');
3
+ var chunkAK6MJOWQ_cjs = require('./chunk-AK6MJOWQ.cjs');
4
4
  require('util');
5
- var p = require('process');
5
+ var g = require('process');
6
6
  var f = require('readline');
7
7
  var tty = require('tty');
8
8
 
9
9
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
10
10
 
11
- var p__default = /*#__PURE__*/_interopDefault(p);
11
+ var g__default = /*#__PURE__*/_interopDefault(g);
12
12
  var f__default = /*#__PURE__*/_interopDefault(f);
13
13
 
14
- // ../../node_modules/.pnpm/consola@3.4.0/node_modules/consola/dist/chunks/prompt.mjs
15
- chunkSD6UC23P_cjs.init_cjs_shims();
14
+ // ../../node_modules/.pnpm/consola@3.4.1/node_modules/consola/dist/chunks/prompt.mjs
15
+ chunkAK6MJOWQ_cjs.init_cjs_shims();
16
16
  function getDefaultExportFromCjs(x2) {
17
17
  return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
18
18
  }
@@ -78,8 +78,8 @@ var hasRequiredPicocolors;
78
78
  function requirePicocolors() {
79
79
  if (hasRequiredPicocolors) return picocolors.exports;
80
80
  hasRequiredPicocolors = 1;
81
- let p2 = process || {}, argv = p2.argv || [], env = p2.env || {};
82
- let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p2.platform === "win32" || (p2.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
81
+ let p = process || {}, argv = p.argv || [], env = p.env || {};
82
+ let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
83
83
  let formatter = (open, close, replace = open) => (input) => {
84
84
  let string = "" + input, index = string.indexOf(close, open.length);
85
85
  return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
@@ -147,18 +147,18 @@ function requirePicocolors() {
147
147
  var picocolorsExports = /* @__PURE__ */ requirePicocolors();
148
148
  var e = /* @__PURE__ */ getDefaultExportFromCjs(picocolorsExports);
149
149
  function J({ onlyFirst: t = false } = {}) {
150
- const F = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
151
- return new RegExp(F, t ? void 0 : "g");
150
+ const F2 = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
151
+ return new RegExp(F2, t ? void 0 : "g");
152
152
  }
153
153
  var Q = J();
154
- function T(t) {
154
+ function T$1(t) {
155
155
  if (typeof t != "string") throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);
156
156
  return t.replace(Q, "");
157
157
  }
158
158
  function O(t) {
159
159
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
160
160
  }
161
- var P = { exports: {} };
161
+ var P$1 = { exports: {} };
162
162
  (function(t) {
163
163
  var u2 = {};
164
164
  t.exports = u2, u2.eastAsianWidth = function(e2) {
@@ -168,33 +168,33 @@ var P = { exports: {} };
168
168
  var s = this.eastAsianWidth(e2);
169
169
  return s == "F" || s == "W" || s == "A" ? 2 : 1;
170
170
  };
171
- function F(e2) {
171
+ function F2(e2) {
172
172
  return e2.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
173
173
  }
174
174
  u2.length = function(e2) {
175
- for (var s = F(e2), i = 0, D = 0; D < s.length; D++) i = i + this.characterLength(s[D]);
175
+ for (var s = F2(e2), i = 0, D = 0; D < s.length; D++) i = i + this.characterLength(s[D]);
176
176
  return i;
177
177
  }, u2.slice = function(e2, s, i) {
178
178
  textLen = u2.length(e2), s = s || 0, i = i || 1, s < 0 && (s = textLen + s), i < 0 && (i = textLen + i);
179
- for (var D = "", C = 0, o = F(e2), E2 = 0; E2 < o.length; E2++) {
180
- var a2 = o[E2], n = u2.length(a2);
181
- if (C >= s - (n == 2 ? 1 : 0)) if (C + n <= i) D += a2;
179
+ for (var D = "", C2 = 0, o2 = F2(e2), E = 0; E < o2.length; E++) {
180
+ var a = o2[E], n = u2.length(a);
181
+ if (C2 >= s - (n == 2 ? 1 : 0)) if (C2 + n <= i) D += a;
182
182
  else break;
183
- C += n;
183
+ C2 += n;
184
184
  }
185
185
  return D;
186
186
  };
187
- })(P);
188
- var X$1 = P.exports;
189
- var DD = O(X$1);
187
+ })(P$1);
188
+ var X = P$1.exports;
189
+ var DD = O(X);
190
190
  var uD = function() {
191
191
  return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
192
192
  };
193
193
  var FD = O(uD);
194
194
  function A$1(t, u2 = {}) {
195
- if (typeof t != "string" || t.length === 0 || (u2 = { ambiguousIsNarrow: true, ...u2 }, t = T(t), t.length === 0)) return 0;
195
+ if (typeof t != "string" || t.length === 0 || (u2 = { ambiguousIsNarrow: true, ...u2 }, t = T$1(t), t.length === 0)) return 0;
196
196
  t = t.replace(FD(), " ");
197
- const F = u2.ambiguousIsNarrow ? 1 : 2;
197
+ const F2 = u2.ambiguousIsNarrow ? 1 : 2;
198
198
  let e2 = 0;
199
199
  for (const s of t) {
200
200
  const i = s.codePointAt(0);
@@ -205,7 +205,7 @@ function A$1(t, u2 = {}) {
205
205
  e2 += 2;
206
206
  break;
207
207
  case "A":
208
- e2 += F;
208
+ e2 += F2;
209
209
  break;
210
210
  default:
211
211
  e2 += 1;
@@ -213,10 +213,10 @@ function A$1(t, u2 = {}) {
213
213
  }
214
214
  return e2;
215
215
  }
216
- var m$1 = 10;
217
- var L = (t = 0) => (u2) => `\x1B[${u2 + t}m`;
216
+ var m = 10;
217
+ var L$1 = (t = 0) => (u2) => `\x1B[${u2 + t}m`;
218
218
  var N = (t = 0) => (u2) => `\x1B[${38 + t};5;${u2}m`;
219
- var I = (t = 0) => (u2, F, e2) => `\x1B[${38 + t};2;${u2};${F};${e2}m`;
219
+ var I = (t = 0) => (u2, F2, e2) => `\x1B[${38 + t};2;${u2};${F2};${e2}m`;
220
220
  var r = { modifier: { reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], overline: [53, 55], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29] }, color: { black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], blackBright: [90, 39], gray: [90, 39], grey: [90, 39], redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39] }, bgColor: { bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], bgBlackBright: [100, 49], bgGray: [100, 49], bgGrey: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49] } };
221
221
  Object.keys(r.modifier);
222
222
  var tD = Object.keys(r.color);
@@ -224,165 +224,165 @@ var eD = Object.keys(r.bgColor);
224
224
  [...tD, ...eD];
225
225
  function sD() {
226
226
  const t = /* @__PURE__ */ new Map();
227
- for (const [u2, F] of Object.entries(r)) {
228
- for (const [e2, s] of Object.entries(F)) r[e2] = { open: `\x1B[${s[0]}m`, close: `\x1B[${s[1]}m` }, F[e2] = r[e2], t.set(s[0], s[1]);
229
- Object.defineProperty(r, u2, { value: F, enumerable: false });
230
- }
231
- return Object.defineProperty(r, "codes", { value: t, enumerable: false }), r.color.close = "\x1B[39m", r.bgColor.close = "\x1B[49m", r.color.ansi = L(), r.color.ansi256 = N(), r.color.ansi16m = I(), r.bgColor.ansi = L(m$1), r.bgColor.ansi256 = N(m$1), r.bgColor.ansi16m = I(m$1), Object.defineProperties(r, { rgbToAnsi256: { value: (u2, F, e2) => u2 === F && F === e2 ? u2 < 8 ? 16 : u2 > 248 ? 231 : Math.round((u2 - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u2 / 255 * 5) + 6 * Math.round(F / 255 * 5) + Math.round(e2 / 255 * 5), enumerable: false }, hexToRgb: { value: (u2) => {
232
- const F = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u2.toString(16));
233
- if (!F) return [0, 0, 0];
234
- let [e2] = F;
227
+ for (const [u2, F2] of Object.entries(r)) {
228
+ for (const [e2, s] of Object.entries(F2)) r[e2] = { open: `\x1B[${s[0]}m`, close: `\x1B[${s[1]}m` }, F2[e2] = r[e2], t.set(s[0], s[1]);
229
+ Object.defineProperty(r, u2, { value: F2, enumerable: false });
230
+ }
231
+ return Object.defineProperty(r, "codes", { value: t, enumerable: false }), r.color.close = "\x1B[39m", r.bgColor.close = "\x1B[49m", r.color.ansi = L$1(), r.color.ansi256 = N(), r.color.ansi16m = I(), r.bgColor.ansi = L$1(m), r.bgColor.ansi256 = N(m), r.bgColor.ansi16m = I(m), Object.defineProperties(r, { rgbToAnsi256: { value: (u2, F2, e2) => u2 === F2 && F2 === e2 ? u2 < 8 ? 16 : u2 > 248 ? 231 : Math.round((u2 - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u2 / 255 * 5) + 6 * Math.round(F2 / 255 * 5) + Math.round(e2 / 255 * 5), enumerable: false }, hexToRgb: { value: (u2) => {
232
+ const F2 = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u2.toString(16));
233
+ if (!F2) return [0, 0, 0];
234
+ let [e2] = F2;
235
235
  e2.length === 3 && (e2 = [...e2].map((i) => i + i).join(""));
236
236
  const s = Number.parseInt(e2, 16);
237
237
  return [s >> 16 & 255, s >> 8 & 255, s & 255];
238
238
  }, enumerable: false }, hexToAnsi256: { value: (u2) => r.rgbToAnsi256(...r.hexToRgb(u2)), enumerable: false }, ansi256ToAnsi: { value: (u2) => {
239
239
  if (u2 < 8) return 30 + u2;
240
240
  if (u2 < 16) return 90 + (u2 - 8);
241
- let F, e2, s;
242
- if (u2 >= 232) F = ((u2 - 232) * 10 + 8) / 255, e2 = F, s = F;
241
+ let F2, e2, s;
242
+ if (u2 >= 232) F2 = ((u2 - 232) * 10 + 8) / 255, e2 = F2, s = F2;
243
243
  else {
244
244
  u2 -= 16;
245
- const C = u2 % 36;
246
- F = Math.floor(u2 / 36) / 5, e2 = Math.floor(C / 6) / 5, s = C % 6 / 5;
245
+ const C2 = u2 % 36;
246
+ F2 = Math.floor(u2 / 36) / 5, e2 = Math.floor(C2 / 6) / 5, s = C2 % 6 / 5;
247
247
  }
248
- const i = Math.max(F, e2, s) * 2;
248
+ const i = Math.max(F2, e2, s) * 2;
249
249
  if (i === 0) return 30;
250
- let D = 30 + (Math.round(s) << 2 | Math.round(e2) << 1 | Math.round(F));
250
+ let D = 30 + (Math.round(s) << 2 | Math.round(e2) << 1 | Math.round(F2));
251
251
  return i === 2 && (D += 60), D;
252
- }, enumerable: false }, rgbToAnsi: { value: (u2, F, e2) => r.ansi256ToAnsi(r.rgbToAnsi256(u2, F, e2)), enumerable: false }, hexToAnsi: { value: (u2) => r.ansi256ToAnsi(r.hexToAnsi256(u2)), enumerable: false } }), r;
252
+ }, enumerable: false }, rgbToAnsi: { value: (u2, F2, e2) => r.ansi256ToAnsi(r.rgbToAnsi256(u2, F2, e2)), enumerable: false }, hexToAnsi: { value: (u2) => r.ansi256ToAnsi(r.hexToAnsi256(u2)), enumerable: false } }), r;
253
253
  }
254
254
  var iD = sD();
255
255
  var v = /* @__PURE__ */ new Set(["\x1B", "\x9B"]);
256
256
  var CD = 39;
257
- var w = "\x07";
258
- var W = "[";
257
+ var w$1 = "\x07";
258
+ var W$1 = "[";
259
259
  var rD = "]";
260
- var R$1 = "m";
261
- var y$1 = `${rD}8;;`;
262
- var V$1 = (t) => `${v.values().next().value}${W}${t}${R$1}`;
263
- var z = (t) => `${v.values().next().value}${y$1}${t}${w}`;
260
+ var R = "m";
261
+ var y = `${rD}8;;`;
262
+ var V$1 = (t) => `${v.values().next().value}${W$1}${t}${R}`;
263
+ var z = (t) => `${v.values().next().value}${y}${t}${w$1}`;
264
264
  var ED = (t) => t.split(" ").map((u2) => A$1(u2));
265
- var _ = (t, u2, F) => {
265
+ var _ = (t, u2, F2) => {
266
266
  const e2 = [...u2];
267
- let s = false, i = false, D = A$1(T(t[t.length - 1]));
268
- for (const [C, o] of e2.entries()) {
269
- const E2 = A$1(o);
270
- if (D + E2 <= F ? t[t.length - 1] += o : (t.push(o), D = 0), v.has(o) && (s = true, i = e2.slice(C + 1).join("").startsWith(y$1)), s) {
271
- i ? o === w && (s = false, i = false) : o === R$1 && (s = false);
267
+ let s = false, i = false, D = A$1(T$1(t[t.length - 1]));
268
+ for (const [C2, o2] of e2.entries()) {
269
+ const E = A$1(o2);
270
+ if (D + E <= F2 ? t[t.length - 1] += o2 : (t.push(o2), D = 0), v.has(o2) && (s = true, i = e2.slice(C2 + 1).join("").startsWith(y)), s) {
271
+ i ? o2 === w$1 && (s = false, i = false) : o2 === R && (s = false);
272
272
  continue;
273
273
  }
274
- D += E2, D === F && C < e2.length - 1 && (t.push(""), D = 0);
274
+ D += E, D === F2 && C2 < e2.length - 1 && (t.push(""), D = 0);
275
275
  }
276
276
  !D && t[t.length - 1].length > 0 && t.length > 1 && (t[t.length - 2] += t.pop());
277
277
  };
278
278
  var nD = (t) => {
279
279
  const u2 = t.split(" ");
280
- let F = u2.length;
281
- for (; F > 0 && !(A$1(u2[F - 1]) > 0); ) F--;
282
- return F === u2.length ? t : u2.slice(0, F).join(" ") + u2.slice(F).join("");
280
+ let F2 = u2.length;
281
+ for (; F2 > 0 && !(A$1(u2[F2 - 1]) > 0); ) F2--;
282
+ return F2 === u2.length ? t : u2.slice(0, F2).join(" ") + u2.slice(F2).join("");
283
283
  };
284
- var oD = (t, u2, F = {}) => {
285
- if (F.trim !== false && t.trim() === "") return "";
284
+ var oD = (t, u2, F2 = {}) => {
285
+ if (F2.trim !== false && t.trim() === "") return "";
286
286
  let e2 = "", s, i;
287
287
  const D = ED(t);
288
- let C = [""];
289
- for (const [E2, a2] of t.split(" ").entries()) {
290
- F.trim !== false && (C[C.length - 1] = C[C.length - 1].trimStart());
291
- let n = A$1(C[C.length - 1]);
292
- if (E2 !== 0 && (n >= u2 && (F.wordWrap === false || F.trim === false) && (C.push(""), n = 0), (n > 0 || F.trim === false) && (C[C.length - 1] += " ", n++)), F.hard && D[E2] > u2) {
293
- const B2 = u2 - n, p2 = 1 + Math.floor((D[E2] - B2 - 1) / u2);
294
- Math.floor((D[E2] - 1) / u2) < p2 && C.push(""), _(C, a2, u2);
288
+ let C2 = [""];
289
+ for (const [E, a] of t.split(" ").entries()) {
290
+ F2.trim !== false && (C2[C2.length - 1] = C2[C2.length - 1].trimStart());
291
+ let n = A$1(C2[C2.length - 1]);
292
+ if (E !== 0 && (n >= u2 && (F2.wordWrap === false || F2.trim === false) && (C2.push(""), n = 0), (n > 0 || F2.trim === false) && (C2[C2.length - 1] += " ", n++)), F2.hard && D[E] > u2) {
293
+ const B2 = u2 - n, p = 1 + Math.floor((D[E] - B2 - 1) / u2);
294
+ Math.floor((D[E] - 1) / u2) < p && C2.push(""), _(C2, a, u2);
295
295
  continue;
296
296
  }
297
- if (n + D[E2] > u2 && n > 0 && D[E2] > 0) {
298
- if (F.wordWrap === false && n < u2) {
299
- _(C, a2, u2);
297
+ if (n + D[E] > u2 && n > 0 && D[E] > 0) {
298
+ if (F2.wordWrap === false && n < u2) {
299
+ _(C2, a, u2);
300
300
  continue;
301
301
  }
302
- C.push("");
302
+ C2.push("");
303
303
  }
304
- if (n + D[E2] > u2 && F.wordWrap === false) {
305
- _(C, a2, u2);
304
+ if (n + D[E] > u2 && F2.wordWrap === false) {
305
+ _(C2, a, u2);
306
306
  continue;
307
307
  }
308
- C[C.length - 1] += a2;
308
+ C2[C2.length - 1] += a;
309
309
  }
310
- F.trim !== false && (C = C.map((E2) => nD(E2)));
311
- const o = [...C.join(`
310
+ F2.trim !== false && (C2 = C2.map((E) => nD(E)));
311
+ const o2 = [...C2.join(`
312
312
  `)];
313
- for (const [E2, a2] of o.entries()) {
314
- if (e2 += a2, v.has(a2)) {
315
- const { groups: B2 } = new RegExp(`(?:\\${W}(?<code>\\d+)m|\\${y$1}(?<uri>.*)${w})`).exec(o.slice(E2).join("")) || { groups: {} };
313
+ for (const [E, a] of o2.entries()) {
314
+ if (e2 += a, v.has(a)) {
315
+ const { groups: B2 } = new RegExp(`(?:\\${W$1}(?<code>\\d+)m|\\${y}(?<uri>.*)${w$1})`).exec(o2.slice(E).join("")) || { groups: {} };
316
316
  if (B2.code !== void 0) {
317
- const p2 = Number.parseFloat(B2.code);
318
- s = p2 === CD ? void 0 : p2;
317
+ const p = Number.parseFloat(B2.code);
318
+ s = p === CD ? void 0 : p;
319
319
  } else B2.uri !== void 0 && (i = B2.uri.length === 0 ? void 0 : B2.uri);
320
320
  }
321
321
  const n = iD.codes.get(Number(s));
322
- o[E2 + 1] === `
323
- ` ? (i && (e2 += z("")), s && n && (e2 += V$1(n))) : a2 === `
322
+ o2[E + 1] === `
323
+ ` ? (i && (e2 += z("")), s && n && (e2 += V$1(n))) : a === `
324
324
  ` && (s && n && (e2 += V$1(s)), i && (e2 += z(i)));
325
325
  }
326
326
  return e2;
327
327
  };
328
- function G$1(t, u2, F) {
328
+ function G(t, u2, F2) {
329
329
  return String(t).normalize().replace(/\r\n/g, `
330
330
  `).split(`
331
- `).map((e2) => oD(e2, u2, F)).join(`
331
+ `).map((e2) => oD(e2, u2, F2)).join(`
332
332
  `);
333
333
  }
334
334
  var aD = ["up", "down", "left", "right", "space", "enter", "cancel"];
335
335
  var c = { actions: new Set(aD), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]) };
336
336
  function k$1(t, u2) {
337
337
  if (typeof t == "string") return c.aliases.get(t) === u2;
338
- for (const F of t) if (F !== void 0 && k$1(F, u2)) return true;
338
+ for (const F2 of t) if (F2 !== void 0 && k$1(F2, u2)) return true;
339
339
  return false;
340
340
  }
341
341
  function lD(t, u2) {
342
342
  if (t === u2) return;
343
- const F = t.split(`
343
+ const F2 = t.split(`
344
344
  `), e2 = u2.split(`
345
345
  `), s = [];
346
- for (let i = 0; i < Math.max(F.length, e2.length); i++) F[i] !== e2[i] && s.push(i);
346
+ for (let i = 0; i < Math.max(F2.length, e2.length); i++) F2[i] !== e2[i] && s.push(i);
347
347
  return s;
348
348
  }
349
349
  globalThis.process.platform.startsWith("win");
350
- var S$1 = Symbol("clack:cancel");
351
- function d(t, u2) {
352
- const F = t;
353
- F.isTTY && F.setRawMode(u2);
350
+ var S = Symbol("clack:cancel");
351
+ function d$1(t, u2) {
352
+ const F2 = t;
353
+ F2.isTTY && F2.setRawMode(u2);
354
354
  }
355
355
  var AD = Object.defineProperty;
356
- var pD = (t, u2, F) => u2 in t ? AD(t, u2, { enumerable: true, configurable: true, writable: true, value: F }) : t[u2] = F;
357
- var h = (t, u2, F) => (pD(t, typeof u2 != "symbol" ? u2 + "" : u2, F), F);
356
+ var pD = (t, u2, F2) => u2 in t ? AD(t, u2, { enumerable: true, configurable: true, writable: true, value: F2 }) : t[u2] = F2;
357
+ var h = (t, u2, F2) => (pD(t, typeof u2 != "symbol" ? u2 + "" : u2, F2), F2);
358
358
  var x = class {
359
- constructor(u2, F = true) {
359
+ constructor(u2, F2 = true) {
360
360
  h(this, "input"), h(this, "output"), h(this, "_abortSignal"), h(this, "rl"), h(this, "opts"), h(this, "_render"), h(this, "_track", false), h(this, "_prevFrame", ""), h(this, "_subscribers", /* @__PURE__ */ new Map()), h(this, "_cursor", 0), h(this, "state", "initial"), h(this, "error", ""), h(this, "value");
361
- const { input: e2 = p.stdin, output: s = p.stdout, render: i, signal: D, ...C } = u2;
362
- this.opts = C, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = i.bind(this), this._track = F, this._abortSignal = D, this.input = e2, this.output = s;
361
+ const { input: e2 = g.stdin, output: s = g.stdout, render: i, signal: D, ...C2 } = u2;
362
+ this.opts = C2, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = i.bind(this), this._track = F2, this._abortSignal = D, this.input = e2, this.output = s;
363
363
  }
364
364
  unsubscribe() {
365
365
  this._subscribers.clear();
366
366
  }
367
- setSubscriber(u2, F) {
367
+ setSubscriber(u2, F2) {
368
368
  const e2 = this._subscribers.get(u2) ?? [];
369
- e2.push(F), this._subscribers.set(u2, e2);
369
+ e2.push(F2), this._subscribers.set(u2, e2);
370
370
  }
371
- on(u2, F) {
372
- this.setSubscriber(u2, { cb: F });
371
+ on(u2, F2) {
372
+ this.setSubscriber(u2, { cb: F2 });
373
373
  }
374
- once(u2, F) {
375
- this.setSubscriber(u2, { cb: F, once: true });
374
+ once(u2, F2) {
375
+ this.setSubscriber(u2, { cb: F2, once: true });
376
376
  }
377
- emit(u2, ...F) {
377
+ emit(u2, ...F2) {
378
378
  const e2 = this._subscribers.get(u2) ?? [], s = [];
379
- for (const i of e2) i.cb(...F), i.once && s.push(() => e2.splice(e2.indexOf(i), 1));
379
+ for (const i of e2) i.cb(...F2), i.once && s.push(() => e2.splice(e2.indexOf(i), 1));
380
380
  for (const i of s) i();
381
381
  }
382
382
  prompt() {
383
- return new Promise((u2, F) => {
383
+ return new Promise((u2, F2) => {
384
384
  if (this._abortSignal) {
385
- if (this._abortSignal.aborted) return this.state = "cancel", this.close(), u2(S$1);
385
+ if (this._abortSignal.aborted) return this.state = "cancel", this.close(), u2(S);
386
386
  this._abortSignal.addEventListener("abort", () => {
387
387
  this.state = "cancel", this.close();
388
388
  }, { once: true });
@@ -390,48 +390,48 @@ var x = class {
390
390
  const e2 = new tty.WriteStream(0);
391
391
  e2._write = (s, i, D) => {
392
392
  this._track && (this.value = this.rl?.line.replace(/\t/g, ""), this._cursor = this.rl?.cursor ?? 0, this.emit("value", this.value)), D();
393
- }, this.input.pipe(e2), this.rl = f__default.default.createInterface({ input: this.input, output: e2, tabSize: 2, prompt: "", escapeCodeTimeout: 50 }), f__default.default.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== void 0 && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), d(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
394
- this.output.write(srcExports.cursor.show), this.output.off("resize", this.render), d(this.input, false), u2(this.value);
393
+ }, this.input.pipe(e2), this.rl = f__default.default.createInterface({ input: this.input, output: e2, tabSize: 2, prompt: "", escapeCodeTimeout: 50 }), f__default.default.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== void 0 && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), d$1(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
394
+ this.output.write(srcExports.cursor.show), this.output.off("resize", this.render), d$1(this.input, false), u2(this.value);
395
395
  }), this.once("cancel", () => {
396
- this.output.write(srcExports.cursor.show), this.output.off("resize", this.render), d(this.input, false), u2(S$1);
396
+ this.output.write(srcExports.cursor.show), this.output.off("resize", this.render), d$1(this.input, false), u2(S);
397
397
  });
398
398
  });
399
399
  }
400
- onKeypress(u2, F) {
401
- if (this.state === "error" && (this.state = "active"), F?.name && (!this._track && c.aliases.has(F.name) && this.emit("cursor", c.aliases.get(F.name)), c.actions.has(F.name) && this.emit("cursor", F.name)), u2 && (u2.toLowerCase() === "y" || u2.toLowerCase() === "n") && this.emit("confirm", u2.toLowerCase() === "y"), u2 === " " && this.opts.placeholder && (this.value || (this.rl?.write(this.opts.placeholder), this.emit("value", this.opts.placeholder))), u2 && this.emit("key", u2.toLowerCase()), F?.name === "return") {
400
+ onKeypress(u2, F2) {
401
+ if (this.state === "error" && (this.state = "active"), F2?.name && (!this._track && c.aliases.has(F2.name) && this.emit("cursor", c.aliases.get(F2.name)), c.actions.has(F2.name) && this.emit("cursor", F2.name)), u2 && (u2.toLowerCase() === "y" || u2.toLowerCase() === "n") && this.emit("confirm", u2.toLowerCase() === "y"), u2 === " " && this.opts.placeholder && (this.value || (this.rl?.write(this.opts.placeholder), this.emit("value", this.opts.placeholder))), u2 && this.emit("key", u2.toLowerCase()), F2?.name === "return") {
402
402
  if (this.opts.validate) {
403
403
  const e2 = this.opts.validate(this.value);
404
404
  e2 && (this.error = e2 instanceof Error ? e2.message : e2, this.state = "error", this.rl?.write(this.value));
405
405
  }
406
406
  this.state !== "error" && (this.state = "submit");
407
407
  }
408
- k$1([u2, F?.name, F?.sequence], "cancel") && (this.state = "cancel"), (this.state === "submit" || this.state === "cancel") && this.emit("finalize"), this.render(), (this.state === "submit" || this.state === "cancel") && this.close();
408
+ k$1([u2, F2?.name, F2?.sequence], "cancel") && (this.state = "cancel"), (this.state === "submit" || this.state === "cancel") && this.emit("finalize"), this.render(), (this.state === "submit" || this.state === "cancel") && this.close();
409
409
  }
410
410
  close() {
411
411
  this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
412
- `), d(this.input, false), this.rl?.close(), this.rl = void 0, this.emit(`${this.state}`, this.value), this.unsubscribe();
412
+ `), d$1(this.input, false), this.rl?.close(), this.rl = void 0, this.emit(`${this.state}`, this.value), this.unsubscribe();
413
413
  }
414
414
  restoreCursor() {
415
- const u2 = G$1(this._prevFrame, process.stdout.columns, { hard: true }).split(`
415
+ const u2 = G(this._prevFrame, process.stdout.columns, { hard: true }).split(`
416
416
  `).length - 1;
417
417
  this.output.write(srcExports.cursor.move(-999, u2 * -1));
418
418
  }
419
419
  render() {
420
- const u2 = G$1(this._render(this) ?? "", process.stdout.columns, { hard: true });
420
+ const u2 = G(this._render(this) ?? "", process.stdout.columns, { hard: true });
421
421
  if (u2 !== this._prevFrame) {
422
422
  if (this.state === "initial") this.output.write(srcExports.cursor.hide);
423
423
  else {
424
- const F = lD(this._prevFrame, u2);
425
- if (this.restoreCursor(), F && F?.length === 1) {
426
- const e2 = F[0];
424
+ const F2 = lD(this._prevFrame, u2);
425
+ if (this.restoreCursor(), F2 && F2?.length === 1) {
426
+ const e2 = F2[0];
427
427
  this.output.write(srcExports.cursor.move(0, e2)), this.output.write(srcExports.erase.lines(1));
428
428
  const s = u2.split(`
429
429
  `);
430
430
  this.output.write(s[e2]), this._prevFrame = u2, this.output.write(srcExports.cursor.move(0, s.length - e2 - 1));
431
431
  return;
432
432
  }
433
- if (F && F?.length > 1) {
434
- const e2 = F[0];
433
+ if (F2 && F2?.length > 1) {
434
+ const e2 = F2[0];
435
435
  this.output.write(srcExports.cursor.move(0, e2)), this.output.write(srcExports.erase.down());
436
436
  const s = u2.split(`
437
437
  `).slice(e2);
@@ -455,22 +455,22 @@ var fD = class extends x {
455
455
  constructor(u2) {
456
456
  super(u2, false), this.value = !!u2.initialValue, this.on("value", () => {
457
457
  this.value = this._value;
458
- }), this.on("confirm", (F) => {
459
- this.output.write(srcExports.cursor.move(0, -1)), this.value = F, this.state = "submit", this.close();
458
+ }), this.on("confirm", (F2) => {
459
+ this.output.write(srcExports.cursor.move(0, -1)), this.value = F2, this.state = "submit", this.close();
460
460
  }), this.on("cursor", () => {
461
461
  this.value = !this.value;
462
462
  });
463
463
  }
464
464
  };
465
465
  var bD = Object.defineProperty;
466
- var mD = (t, u2, F) => u2 in t ? bD(t, u2, { enumerable: true, configurable: true, writable: true, value: F }) : t[u2] = F;
467
- var Y = (t, u2, F) => (mD(t, typeof u2 != "symbol" ? u2 + "" : u2, F), F);
466
+ var mD = (t, u2, F2) => u2 in t ? bD(t, u2, { enumerable: true, configurable: true, writable: true, value: F2 }) : t[u2] = F2;
467
+ var Y = (t, u2, F2) => (mD(t, typeof u2 != "symbol" ? u2 + "" : u2, F2), F2);
468
468
  var wD = class extends x {
469
469
  constructor(u2) {
470
- super(u2, false), Y(this, "options"), Y(this, "cursor", 0), this.options = u2.options, this.value = [...u2.initialValues ?? []], this.cursor = Math.max(this.options.findIndex(({ value: F }) => F === u2.cursorAt), 0), this.on("key", (F) => {
471
- F === "a" && this.toggleAll();
472
- }), this.on("cursor", (F) => {
473
- switch (F) {
470
+ super(u2, false), Y(this, "options"), Y(this, "cursor", 0), this.options = u2.options, this.value = [...u2.initialValues ?? []], this.cursor = Math.max(this.options.findIndex(({ value: F2 }) => F2 === u2.cursorAt), 0), this.on("key", (F2) => {
471
+ F2 === "a" && this.toggleAll();
472
+ }), this.on("cursor", (F2) => {
473
+ switch (F2) {
474
474
  case "left":
475
475
  case "up":
476
476
  this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
@@ -490,20 +490,20 @@ var wD = class extends x {
490
490
  }
491
491
  toggleAll() {
492
492
  const u2 = this.value.length === this.options.length;
493
- this.value = u2 ? [] : this.options.map((F) => F.value);
493
+ this.value = u2 ? [] : this.options.map((F2) => F2.value);
494
494
  }
495
495
  toggleValue() {
496
496
  const u2 = this.value.includes(this._value);
497
- this.value = u2 ? this.value.filter((F) => F !== this._value) : [...this.value, this._value];
497
+ this.value = u2 ? this.value.filter((F2) => F2 !== this._value) : [...this.value, this._value];
498
498
  }
499
499
  };
500
500
  var SD = Object.defineProperty;
501
- var $D = (t, u2, F) => u2 in t ? SD(t, u2, { enumerable: true, configurable: true, writable: true, value: F }) : t[u2] = F;
502
- var q = (t, u2, F) => ($D(t, typeof u2 != "symbol" ? u2 + "" : u2, F), F);
501
+ var $D = (t, u2, F2) => u2 in t ? SD(t, u2, { enumerable: true, configurable: true, writable: true, value: F2 }) : t[u2] = F2;
502
+ var q = (t, u2, F2) => ($D(t, typeof u2 != "symbol" ? u2 + "" : u2, F2), F2);
503
503
  var jD = class extends x {
504
504
  constructor(u2) {
505
- super(u2, false), q(this, "options"), q(this, "cursor", 0), this.options = u2.options, this.cursor = this.options.findIndex(({ value: F }) => F === u2.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (F) => {
506
- switch (F) {
505
+ super(u2, false), q(this, "options"), q(this, "cursor", 0), this.options = u2.options, this.cursor = this.options.findIndex(({ value: F2 }) => F2 === u2.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (F2) => {
506
+ switch (F2) {
507
507
  case "left":
508
508
  case "up":
509
509
  this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
@@ -527,8 +527,8 @@ var PD = class extends x {
527
527
  get valueWithCursor() {
528
528
  if (this.state === "submit") return this.value;
529
529
  if (this.cursor >= this.value.length) return `${this.value}\u2588`;
530
- const u2 = this.value.slice(0, this.cursor), [F, ...e$1] = this.value.slice(this.cursor);
531
- return `${u2}${e.inverse(F)}${e$1.join("")}`;
530
+ const u2 = this.value.slice(0, this.cursor), [F2, ...e$1] = this.value.slice(this.cursor);
531
+ return `${u2}${e.inverse(F2)}${e$1.join("")}`;
532
532
  }
533
533
  get cursor() {
534
534
  return this._cursor;
@@ -539,157 +539,158 @@ var PD = class extends x {
539
539
  });
540
540
  }
541
541
  };
542
- function X() {
543
- return p__default.default.platform !== "win32" ? p__default.default.env.TERM !== "linux" : !!p__default.default.env.CI || !!p__default.default.env.WT_SESSION || !!p__default.default.env.TERMINUS_SUBLIME || p__default.default.env.ConEmuTask === "{cmd::Cmder}" || p__default.default.env.TERM_PROGRAM === "Terminus-Sublime" || p__default.default.env.TERM_PROGRAM === "vscode" || p__default.default.env.TERM === "xterm-256color" || p__default.default.env.TERM === "alacritty" || p__default.default.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
542
+ function ce() {
543
+ return g__default.default.platform !== "win32" ? g__default.default.env.TERM !== "linux" : !!g__default.default.env.CI || !!g__default.default.env.WT_SESSION || !!g__default.default.env.TERMINUS_SUBLIME || g__default.default.env.ConEmuTask === "{cmd::Cmder}" || g__default.default.env.TERM_PROGRAM === "Terminus-Sublime" || g__default.default.env.TERM_PROGRAM === "vscode" || g__default.default.env.TERM === "xterm-256color" || g__default.default.env.TERM === "alacritty" || g__default.default.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
544
544
  }
545
- var E = X();
546
- var u = (s, n) => E ? s : n;
547
- var ee = u("\u276F", ">");
548
- var A = u("\u25A0", "x");
549
- var B = u("\u25B2", "x");
550
- var S = u("\u2714", "\u221A");
551
- var a = u("");
552
- var m = u("");
553
- var j = u("\u25CF", ">");
554
- var R = u("\u25CB", " ");
555
- var V = u("\u25FB", "[\u2022]");
556
- var M = u("\u25FC", "[+]");
557
- var G = u("\u25FB", "[ ]");
558
- var y = (s) => {
559
- switch (s) {
545
+ var V = ce();
546
+ var u = (t, n) => V ? t : n;
547
+ var le = u("\u276F", ">");
548
+ var L = u("\u25A0", "x");
549
+ var W = u("\u25B2", "x");
550
+ var C = u("\u2714", "\u221A");
551
+ var o = u("");
552
+ var d = u("");
553
+ var k = u("\u25CF", ">");
554
+ var P = u("\u25CB", " ");
555
+ var A = u("\u25FB", "[\u2022]");
556
+ var T = u("\u25FC", "[+]");
557
+ var F = u("\u25FB", "[ ]");
558
+ var w = (t) => {
559
+ switch (t) {
560
560
  case "initial":
561
561
  case "active":
562
- return e.cyan(ee);
562
+ return e.cyan(le);
563
563
  case "cancel":
564
- return e.red(A);
564
+ return e.red(L);
565
565
  case "error":
566
- return e.yellow(B);
566
+ return e.yellow(W);
567
567
  case "submit":
568
- return e.green(S);
568
+ return e.green(C);
569
569
  }
570
570
  };
571
- var k = (s) => {
572
- const { cursor: n, options: t, style: i } = s, r2 = s.maxItems ?? Number.POSITIVE_INFINITY, c2 = Math.max(process.stdout.rows - 4, 0), o = Math.min(c2, Math.max(r2, 5));
571
+ var B = (t) => {
572
+ const { cursor: n, options: s, style: r2 } = t, i = t.maxItems ?? Number.POSITIVE_INFINITY, a = Math.max(process.stdout.rows - 4, 0), c2 = Math.min(a, Math.max(i, 5));
573
573
  let l = 0;
574
- n >= l + o - 3 ? l = Math.max(Math.min(n - o + 3, t.length - o), 0) : n < l + 2 && (l = Math.max(n - 2, 0));
575
- const $ = o < t.length && l > 0, d2 = o < t.length && l + o < t.length;
576
- return t.slice(l, l + o).map((w2, b, C) => {
577
- const I2 = b === 0 && $, x2 = b === C.length - 1 && d2;
578
- return I2 || x2 ? e.dim("...") : i(w2, b + l === n);
574
+ n >= l + c2 - 3 ? l = Math.max(Math.min(n - c2 + 3, s.length - c2), 0) : n < l + 2 && (l = Math.max(n - 2, 0));
575
+ const $ = c2 < s.length && l > 0, p = c2 < s.length && l + c2 < s.length;
576
+ return s.slice(l, l + c2).map((M, v2, x2) => {
577
+ const j = v2 === 0 && $, E = v2 === x2.length - 1 && p;
578
+ return j || E ? e.dim("...") : r2(M, v2 + l === n);
579
579
  });
580
580
  };
581
- var ue = (s) => new PD({ validate: s.validate, placeholder: s.placeholder, defaultValue: s.defaultValue, initialValue: s.initialValue, render() {
582
- const n = `${e.gray(a)}
583
- ${y(this.state)} ${s.message}
584
- `, t = s.placeholder ? e.inverse(s.placeholder[0]) + e.dim(s.placeholder.slice(1)) : e.inverse(e.hidden("_")), i = this.value ? this.valueWithCursor : t;
581
+ var he = (t) => new PD({ validate: t.validate, placeholder: t.placeholder, defaultValue: t.defaultValue, initialValue: t.initialValue, render() {
582
+ const n = `${e.gray(o)}
583
+ ${w(this.state)} ${t.message}
584
+ `, s = t.placeholder ? e.inverse(t.placeholder[0]) + e.dim(t.placeholder.slice(1)) : e.inverse(e.hidden("_")), r2 = this.value ? this.valueWithCursor : s;
585
585
  switch (this.state) {
586
586
  case "error":
587
587
  return `${n.trim()}
588
- ${e.yellow(a)} ${i}
589
- ${e.yellow(m)} ${e.yellow(this.error)}
588
+ ${e.yellow(o)} ${r2}
589
+ ${e.yellow(d)} ${e.yellow(this.error)}
590
590
  `;
591
591
  case "submit":
592
- return `${n}${e.gray(a)} ${e.dim(this.value || s.placeholder)}`;
592
+ return `${n}${e.gray(o)} ${e.dim(this.value || t.placeholder)}`;
593
593
  case "cancel":
594
- return `${n}${e.gray(a)} ${e.strikethrough(e.dim(this.value ?? ""))}${this.value?.trim() ? `
595
- ${e.gray(a)}` : ""}`;
594
+ return `${n}${e.gray(o)} ${e.strikethrough(e.dim(this.value ?? ""))}${this.value?.trim() ? `
595
+ ${e.gray(o)}` : ""}`;
596
596
  default:
597
- return `${n}${e.cyan(a)} ${i}
598
- ${e.cyan(m)}
597
+ return `${n}${e.cyan(o)} ${r2}
598
+ ${e.cyan(d)}
599
599
  `;
600
600
  }
601
601
  } }).prompt();
602
- var me = (s) => {
603
- const n = s.active ?? "Yes", t = s.inactive ?? "No";
604
- return new fD({ active: n, inactive: t, initialValue: s.initialValue ?? true, render() {
605
- const i = `${e.gray(a)}
606
- ${y(this.state)} ${s.message}
607
- `, r2 = this.value ? n : t;
602
+ var ye = (t) => {
603
+ const n = t.active ?? "Yes", s = t.inactive ?? "No";
604
+ return new fD({ active: n, inactive: s, initialValue: t.initialValue ?? true, render() {
605
+ const r2 = `${e.gray(o)}
606
+ ${w(this.state)} ${t.message}
607
+ `, i = this.value ? n : s;
608
608
  switch (this.state) {
609
609
  case "submit":
610
- return `${i}${e.gray(a)} ${e.dim(r2)}`;
610
+ return `${r2}${e.gray(o)} ${e.dim(i)}`;
611
611
  case "cancel":
612
- return `${i}${e.gray(a)} ${e.strikethrough(e.dim(r2))}
613
- ${e.gray(a)}`;
612
+ return `${r2}${e.gray(o)} ${e.strikethrough(e.dim(i))}
613
+ ${e.gray(o)}`;
614
614
  default:
615
- return `${i}${e.cyan(a)} ${this.value ? `${e.green(j)} ${n}` : `${e.dim(R)} ${e.dim(n)}`} ${e.dim("/")} ${this.value ? `${e.dim(R)} ${e.dim(t)}` : `${e.green(j)} ${t}`}
616
- ${e.cyan(m)}
615
+ return `${r2}${e.cyan(o)} ${this.value ? `${e.green(k)} ${n}` : `${e.dim(P)} ${e.dim(n)}`} ${e.dim("/")} ${this.value ? `${e.dim(P)} ${e.dim(s)}` : `${e.green(k)} ${s}`}
616
+ ${e.cyan(d)}
617
617
  `;
618
618
  }
619
619
  } }).prompt();
620
620
  };
621
- var de = (s) => {
622
- const n = (t, i) => {
623
- const r2 = t.label ?? String(t.value);
624
- switch (i) {
621
+ var ve = (t) => {
622
+ const n = (s, r2) => {
623
+ const i = s.label ?? String(s.value);
624
+ switch (r2) {
625
625
  case "selected":
626
- return `${e.dim(r2)}`;
626
+ return `${e.dim(i)}`;
627
627
  case "active":
628
- return `${e.green(j)} ${r2} ${t.hint ? e.dim(`(${t.hint})`) : ""}`;
628
+ return `${e.green(k)} ${i} ${s.hint ? e.dim(`(${s.hint})`) : ""}`;
629
629
  case "cancelled":
630
- return `${e.strikethrough(e.dim(r2))}`;
630
+ return `${e.strikethrough(e.dim(i))}`;
631
631
  default:
632
- return `${e.dim(R)} ${e.dim(r2)}`;
632
+ return `${e.dim(P)} ${e.dim(i)}`;
633
633
  }
634
634
  };
635
- return new jD({ options: s.options, initialValue: s.initialValue, render() {
636
- const t = `${e.gray(a)}
637
- ${y(this.state)} ${s.message}
635
+ return new jD({ options: t.options, initialValue: t.initialValue, render() {
636
+ const s = `${e.gray(o)}
637
+ ${w(this.state)} ${t.message}
638
638
  `;
639
639
  switch (this.state) {
640
640
  case "submit":
641
- return `${t}${e.gray(a)} ${n(this.options[this.cursor], "selected")}`;
641
+ return `${s}${e.gray(o)} ${n(this.options[this.cursor], "selected")}`;
642
642
  case "cancel":
643
- return `${t}${e.gray(a)} ${n(this.options[this.cursor], "cancelled")}
644
- ${e.gray(a)}`;
643
+ return `${s}${e.gray(o)} ${n(this.options[this.cursor], "cancelled")}
644
+ ${e.gray(o)}`;
645
645
  default:
646
- return `${t}${e.cyan(a)} ${k({ cursor: this.cursor, options: this.options, maxItems: s.maxItems, style: (i, r2) => n(i, r2 ? "active" : "inactive") }).join(`
647
- ${e.cyan(a)} `)}
648
- ${e.cyan(m)}
646
+ return `${s}${e.cyan(o)} ${B({ cursor: this.cursor, options: this.options, maxItems: t.maxItems, style: (r2, i) => n(r2, i ? "active" : "inactive") }).join(`
647
+ ${e.cyan(o)} `)}
648
+ ${e.cyan(d)}
649
649
  `;
650
650
  }
651
651
  } }).prompt();
652
652
  };
653
- var pe = (s) => {
654
- const n = (t, i) => {
655
- const r2 = t.label ?? String(t.value);
656
- return i === "active" ? `${e.cyan(V)} ${r2} ${t.hint ? e.dim(`(${t.hint})`) : ""}` : i === "selected" ? `${e.green(M)} ${e.dim(r2)}` : i === "cancelled" ? `${e.strikethrough(e.dim(r2))}` : i === "active-selected" ? `${e.green(M)} ${r2} ${t.hint ? e.dim(`(${t.hint})`) : ""}` : i === "submitted" ? `${e.dim(r2)}` : `${e.dim(G)} ${e.dim(r2)}`;
653
+ var fe = (t) => {
654
+ const n = (s, r2) => {
655
+ const i = s.label ?? String(s.value);
656
+ return r2 === "active" ? `${e.cyan(A)} ${i} ${s.hint ? e.dim(`(${s.hint})`) : ""}` : r2 === "selected" ? `${e.green(T)} ${e.dim(i)}` : r2 === "cancelled" ? `${e.strikethrough(e.dim(i))}` : r2 === "active-selected" ? `${e.green(T)} ${i} ${s.hint ? e.dim(`(${s.hint})`) : ""}` : r2 === "submitted" ? `${e.dim(i)}` : `${e.dim(F)} ${e.dim(i)}`;
657
657
  };
658
- return new wD({ options: s.options, initialValues: s.initialValues, required: s.required ?? true, cursorAt: s.cursorAt, validate(t) {
659
- if (this.required && t.length === 0) return `Please select at least one option.
658
+ return new wD({ options: t.options, initialValues: t.initialValues, required: t.required ?? true, cursorAt: t.cursorAt, validate(s) {
659
+ if (this.required && s.length === 0) return `Please select at least one option.
660
660
  ${e.reset(e.dim(`Press ${e.gray(e.bgWhite(e.inverse(" space ")))} to select, ${e.gray(e.bgWhite(e.inverse(" enter ")))} to submit`))}`;
661
661
  }, render() {
662
- const t = `${e.gray(a)}
663
- ${y(this.state)} ${s.message}
664
- `, i = (r2, c2) => {
665
- const o = this.value.includes(r2.value);
666
- return c2 && o ? n(r2, "active-selected") : o ? n(r2, "selected") : n(r2, c2 ? "active" : "inactive");
662
+ const s = `${e.gray(o)}
663
+ ${w(this.state)} ${t.message}
664
+ `, r2 = (i, a) => {
665
+ const c2 = this.value.includes(i.value);
666
+ return a && c2 ? n(i, "active-selected") : c2 ? n(i, "selected") : n(i, a ? "active" : "inactive");
667
667
  };
668
668
  switch (this.state) {
669
669
  case "submit":
670
- return `${t}${e.gray(a)} ${this.options.filter(({ value: r2 }) => this.value.includes(r2)).map((r2) => n(r2, "submitted")).join(e.dim(", ")) || e.dim("none")}`;
670
+ return `${s}${e.gray(o)} ${this.options.filter(({ value: i }) => this.value.includes(i)).map((i) => n(i, "submitted")).join(e.dim(", ")) || e.dim("none")}`;
671
671
  case "cancel": {
672
- const r2 = this.options.filter(({ value: c2 }) => this.value.includes(c2)).map((c2) => n(c2, "cancelled")).join(e.dim(", "));
673
- return `${t}${e.gray(a)} ${r2.trim() ? `${r2}
674
- ${e.gray(a)}` : ""}`;
672
+ const i = this.options.filter(({ value: a }) => this.value.includes(a)).map((a) => n(a, "cancelled")).join(e.dim(", "));
673
+ return `${s}${e.gray(o)} ${i.trim() ? `${i}
674
+ ${e.gray(o)}` : ""}`;
675
675
  }
676
676
  case "error": {
677
- const r2 = this.error.split(`
678
- `).map((c2, o) => o === 0 ? `${e.yellow(m)} ${e.yellow(c2)}` : ` ${c2}`).join(`
677
+ const i = this.error.split(`
678
+ `).map((a, c2) => c2 === 0 ? `${e.yellow(d)} ${e.yellow(a)}` : ` ${a}`).join(`
679
679
  `);
680
- return `${t + e.yellow(a)} ${k({ options: this.options, cursor: this.cursor, maxItems: s.maxItems, style: i }).join(`
681
- ${e.yellow(a)} `)}
682
- ${r2}
680
+ return `${s + e.yellow(o)} ${B({ options: this.options, cursor: this.cursor, maxItems: t.maxItems, style: r2 }).join(`
681
+ ${e.yellow(o)} `)}
682
+ ${i}
683
683
  `;
684
684
  }
685
685
  default:
686
- return `${t}${e.cyan(a)} ${k({ options: this.options, cursor: this.cursor, maxItems: s.maxItems, style: i }).join(`
687
- ${e.cyan(a)} `)}
688
- ${e.cyan(m)}
686
+ return `${s}${e.cyan(o)} ${B({ options: this.options, cursor: this.cursor, maxItems: t.maxItems, style: r2 }).join(`
687
+ ${e.cyan(o)} `)}
688
+ ${e.cyan(d)}
689
689
  `;
690
690
  }
691
691
  } }).prompt();
692
692
  };
693
+ `${e.gray(o)} `;
693
694
  var kCancel = Symbol.for("cancel");
694
695
  async function prompt(message, opts = {}) {
695
696
  const handleCancel = (value) => {
@@ -721,7 +722,7 @@ async function prompt(message, opts = {}) {
721
722
  }
722
723
  };
723
724
  if (!opts.type || opts.type === "text") {
724
- return await ue({
725
+ return await he({
725
726
  message,
726
727
  defaultValue: opts.default,
727
728
  placeholder: opts.placeholder,
@@ -729,25 +730,25 @@ async function prompt(message, opts = {}) {
729
730
  }).then(handleCancel);
730
731
  }
731
732
  if (opts.type === "confirm") {
732
- return await me({
733
+ return await ye({
733
734
  message,
734
735
  initialValue: opts.initial
735
736
  }).then(handleCancel);
736
737
  }
737
738
  if (opts.type === "select") {
738
- return await de({
739
+ return await ve({
739
740
  message,
740
741
  options: opts.options.map(
741
- (o) => typeof o === "string" ? { value: o, label: o } : o
742
+ (o2) => typeof o2 === "string" ? { value: o2, label: o2 } : o2
742
743
  ),
743
744
  initialValue: opts.initial
744
745
  }).then(handleCancel);
745
746
  }
746
747
  if (opts.type === "multiselect") {
747
- return await pe({
748
+ return await fe({
748
749
  message,
749
750
  options: opts.options.map(
750
- (o) => typeof o === "string" ? { value: o, label: o } : o
751
+ (o2) => typeof o2 === "string" ? { value: o2, label: o2 } : o2
751
752
  ),
752
753
  required: opts.required,
753
754
  initialValues: opts.initial
@@ -758,5 +759,5 @@ async function prompt(message, opts = {}) {
758
759
 
759
760
  exports.kCancel = kCancel;
760
761
  exports.prompt = prompt;
761
- //# sourceMappingURL=prompt-NUMBDLXI.cjs.map
762
- //# sourceMappingURL=prompt-NUMBDLXI.cjs.map
762
+ //# sourceMappingURL=prompt-75POW2E5.cjs.map
763
+ //# sourceMappingURL=prompt-75POW2E5.cjs.map