create-rstack 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3,6 +3,7 @@ import __rslib_shim_module__ from 'module';
3
3
  import * as __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__ from "node:fs";
4
4
  import * as __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__ from "node:path";
5
5
  import * as __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__ from "node:url";
6
+ import * as __WEBPACK_EXTERNAL_MODULE_node_util_1b29d436__ from "node:util";
6
7
  import * as __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__ from "node:process";
7
8
  import * as __WEBPACK_EXTERNAL_MODULE_node_readline_91c31510__ from "node:readline";
8
9
  import * as __WEBPACK_EXTERNAL_MODULE_node_tty_c64aab7e__ from "node:tty";
@@ -183,7 +184,7 @@ var __webpack_modules__ = {
183
184
  });
184
185
  }
185
186
  Object.keys(flags.bools).forEach(function(key) {
186
- setArg(key, void 0 !== defaults[key] && defaults[key]);
187
+ setArg(key, void 0 === defaults[key] ? false : defaults[key]);
187
188
  });
188
189
  var notFlags = [];
189
190
  if (-1 !== args.indexOf('--')) {
@@ -206,11 +207,11 @@ var __webpack_modules__ = {
206
207
  } else if (/^--.+/.test(arg)) {
207
208
  key = arg.match(/^--(.+)/)[1];
208
209
  next = args[i + 1];
209
- if (void 0 === next || /^(-|--)[^-]/.test(next) || flags.bools[key] || flags.allBools || aliases[key] && aliasIsBoolean(key)) {
210
+ if (void 0 === next || /^(-|--)[^-]/.test(next) || flags.bools[key] || flags.allBools || (aliases[key] ? aliasIsBoolean(key) : false)) {
210
211
  if (/^(true|false)$/.test(next)) {
211
212
  setArg(key, 'true' === next, arg);
212
213
  i += 1;
213
- } else setArg(key, !flags.strings[key] || '', arg);
214
+ } else setArg(key, flags.strings[key] ? '' : true, arg);
214
215
  } else {
215
216
  setArg(key, next, arg);
216
217
  i += 1;
@@ -239,15 +240,15 @@ var __webpack_modules__ = {
239
240
  broken = true;
240
241
  break;
241
242
  }
242
- setArg(letters[j], !flags.strings[letters[j]] || '', arg);
243
+ setArg(letters[j], flags.strings[letters[j]] ? '' : true, arg);
243
244
  }
244
245
  key = arg.slice(-1)[0];
245
246
  if (!broken && '-' !== key) {
246
- if (!args[i + 1] || /^(-|--)[^-]/.test(args[i + 1]) || flags.bools[key] || aliases[key] && aliasIsBoolean(key)) {
247
+ if (!args[i + 1] || /^(-|--)[^-]/.test(args[i + 1]) || flags.bools[key] || (aliases[key] ? aliasIsBoolean(key) : false)) {
247
248
  if (args[i + 1] && /^(true|false)$/.test(args[i + 1])) {
248
249
  setArg(key, 'true' === args[i + 1], arg);
249
250
  i += 1;
250
- } else setArg(key, !flags.strings[key] || '', arg);
251
+ } else setArg(key, flags.strings[key] ? '' : true, arg);
251
252
  } else {
252
253
  setArg(key, args[i + 1], arg);
253
254
  i += 1;
@@ -435,80 +436,81 @@ function __webpack_require__(moduleId) {
435
436
  })();
436
437
  var src = __webpack_require__("./node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js");
437
438
  var picocolors = __webpack_require__("./node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
438
- function dist_q({ onlyFirst: e = !1 } = {}) {
439
+ var picocolors_default = /*#__PURE__*/ __webpack_require__.n(picocolors);
440
+ function J({ onlyFirst: t = !1 } = {}) {
439
441
  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=><~]))";
440
- return new RegExp(F, e ? void 0 : "g");
442
+ return new RegExp(F, t ? void 0 : "g");
441
443
  }
442
- const dist_J = dist_q();
443
- function dist_S(e) {
444
- if ("string" != typeof e) throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);
445
- return e.replace(dist_J, "");
444
+ const Q = J();
445
+ function T(t) {
446
+ if ("string" != typeof t) throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);
447
+ return t.replace(Q, "");
446
448
  }
447
- function T(e) {
448
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
449
+ function dist_O(t) {
450
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
449
451
  }
450
- var j = {
452
+ var P = {
451
453
  exports: {}
452
454
  };
453
- (function(e) {
455
+ (function(t) {
454
456
  var u = {};
455
- e.exports = u, u.eastAsianWidth = function(t) {
456
- var s = t.charCodeAt(0), C = 2 == t.length ? t.charCodeAt(1) : 0, D = s;
457
- return 55296 <= s && s <= 56319 && 56320 <= C && C <= 57343 && (s &= 1023, C &= 1023, D = s << 10 | C, D += 65536), 12288 == D || 65281 <= D && D <= 65376 || 65504 <= D && D <= 65510 ? "F" : 8361 == D || 65377 <= D && D <= 65470 || 65474 <= D && D <= 65479 || 65482 <= D && D <= 65487 || 65490 <= D && D <= 65495 || 65498 <= D && D <= 65500 || 65512 <= D && D <= 65518 ? "H" : 4352 <= D && D <= 4447 || 4515 <= D && D <= 4519 || 4602 <= D && D <= 4607 || 9001 <= D && D <= 9002 || 11904 <= D && D <= 11929 || 11931 <= D && D <= 12019 || 12032 <= D && D <= 12245 || 12272 <= D && D <= 12283 || 12289 <= D && D <= 12350 || 12353 <= D && D <= 12438 || 12441 <= D && D <= 12543 || 12549 <= D && D <= 12589 || 12593 <= D && D <= 12686 || 12688 <= D && D <= 12730 || 12736 <= D && D <= 12771 || 12784 <= D && D <= 12830 || 12832 <= D && D <= 12871 || 12880 <= D && D <= 13054 || 13056 <= D && D <= 19903 || 19968 <= D && D <= 42124 || 42128 <= D && D <= 42182 || 43360 <= D && D <= 43388 || 44032 <= D && D <= 55203 || 55216 <= D && D <= 55238 || 55243 <= D && D <= 55291 || 63744 <= D && D <= 64255 || 65040 <= D && D <= 65049 || 65072 <= D && D <= 65106 || 65108 <= D && D <= 65126 || 65128 <= D && D <= 65131 || 110592 <= D && D <= 110593 || 127488 <= D && D <= 127490 || 127504 <= D && D <= 127546 || 127552 <= D && D <= 127560 || 127568 <= D && D <= 127569 || 131072 <= D && D <= 194367 || 177984 <= D && D <= 196605 || 196608 <= D && D <= 262141 ? "W" : 32 <= D && D <= 126 || 162 <= D && D <= 163 || 165 <= D && D <= 166 || 172 == D || 175 == D || 10214 <= D && D <= 10221 || 10629 <= D && D <= 10630 ? "Na" : 161 == D || 164 == D || 167 <= D && D <= 168 || 170 == D || 173 <= D && D <= 174 || 176 <= D && D <= 180 || 182 <= D && D <= 186 || 188 <= D && D <= 191 || 198 == D || 208 == D || 215 <= D && D <= 216 || 222 <= D && D <= 225 || 230 == D || 232 <= D && D <= 234 || 236 <= D && D <= 237 || 240 == D || 242 <= D && D <= 243 || 247 <= D && D <= 250 || 252 == D || 254 == D || 257 == D || 273 == D || 275 == D || 283 == D || 294 <= D && D <= 295 || 299 == D || 305 <= D && D <= 307 || 312 == D || 319 <= D && D <= 322 || 324 == D || 328 <= D && D <= 331 || 333 == D || 338 <= D && D <= 339 || 358 <= D && D <= 359 || 363 == D || 462 == D || 464 == D || 466 == D || 468 == D || 470 == D || 472 == D || 474 == D || 476 == D || 593 == D || 609 == D || 708 == D || 711 == D || 713 <= D && D <= 715 || 717 == D || 720 == D || 728 <= D && D <= 731 || 733 == D || 735 == D || 768 <= D && D <= 879 || 913 <= D && D <= 929 || 931 <= D && D <= 937 || 945 <= D && D <= 961 || 963 <= D && D <= 969 || 1025 == D || 1040 <= D && D <= 1103 || 1105 == D || 8208 == D || 8211 <= D && D <= 8214 || 8216 <= D && D <= 8217 || 8220 <= D && D <= 8221 || 8224 <= D && D <= 8226 || 8228 <= D && D <= 8231 || 8240 == D || 8242 <= D && D <= 8243 || 8245 == D || 8251 == D || 8254 == D || 8308 == D || 8319 == D || 8321 <= D && D <= 8324 || 8364 == D || 8451 == D || 8453 == D || 8457 == D || 8467 == D || 8470 == D || 8481 <= D && D <= 8482 || 8486 == D || 8491 == D || 8531 <= D && D <= 8532 || 8539 <= D && D <= 8542 || 8544 <= D && D <= 8555 || 8560 <= D && D <= 8569 || 8585 == D || 8592 <= D && D <= 8601 || 8632 <= D && D <= 8633 || 8658 == D || 8660 == D || 8679 == D || 8704 == D || 8706 <= D && D <= 8707 || 8711 <= D && D <= 8712 || 8715 == D || 8719 == D || 8721 == D || 8725 == D || 8730 == D || 8733 <= D && D <= 8736 || 8739 == D || 8741 == D || 8743 <= D && D <= 8748 || 8750 == D || 8756 <= D && D <= 8759 || 8764 <= D && D <= 8765 || 8776 == D || 8780 == D || 8786 == D || 8800 <= D && D <= 8801 || 8804 <= D && D <= 8807 || 8810 <= D && D <= 8811 || 8814 <= D && D <= 8815 || 8834 <= D && D <= 8835 || 8838 <= D && D <= 8839 || 8853 == D || 8857 == D || 8869 == D || 8895 == D || 8978 == D || 9312 <= D && D <= 9449 || 9451 <= D && D <= 9547 || 9552 <= D && D <= 9587 || 9600 <= D && D <= 9615 || 9618 <= D && D <= 9621 || 9632 <= D && D <= 9633 || 9635 <= D && D <= 9641 || 9650 <= D && D <= 9651 || 9654 <= D && D <= 9655 || 9660 <= D && D <= 9661 || 9664 <= D && D <= 9665 || 9670 <= D && D <= 9672 || 9675 == D || 9678 <= D && D <= 9681 || 9698 <= D && D <= 9701 || 9711 == D || 9733 <= D && D <= 9734 || 9737 == D || 9742 <= D && D <= 9743 || 9748 <= D && D <= 9749 || 9756 == D || 9758 == D || 9792 == D || 9794 == D || 9824 <= D && D <= 9825 || 9827 <= D && D <= 9829 || 9831 <= D && D <= 9834 || 9836 <= D && D <= 9837 || 9839 == D || 9886 <= D && D <= 9887 || 9918 <= D && D <= 9919 || 9924 <= D && D <= 9933 || 9935 <= D && D <= 9953 || 9955 == D || 9960 <= D && D <= 9983 || 10045 == D || 10071 == D || 10102 <= D && D <= 10111 || 11093 <= D && D <= 11097 || 12872 <= D && D <= 12879 || 57344 <= D && D <= 63743 || 65024 <= D && D <= 65039 || 65533 == D || 127232 <= D && D <= 127242 || 127248 <= D && D <= 127277 || 127280 <= D && D <= 127337 || 127344 <= D && D <= 127386 || 917760 <= D && D <= 917999 || 983040 <= D && D <= 1048573 || 1048576 <= D && D <= 1114109 ? "A" : "N";
458
- }, u.characterLength = function(t) {
459
- var s = this.eastAsianWidth(t);
457
+ t.exports = u, u.eastAsianWidth = function(e) {
458
+ var s = e.charCodeAt(0), i = 2 == e.length ? e.charCodeAt(1) : 0, D = s;
459
+ return 55296 <= s && s <= 56319 && 56320 <= i && i <= 57343 && (s &= 1023, i &= 1023, D = s << 10 | i, D += 65536), 12288 == D || 65281 <= D && D <= 65376 || 65504 <= D && D <= 65510 ? "F" : 8361 == D || 65377 <= D && D <= 65470 || 65474 <= D && D <= 65479 || 65482 <= D && D <= 65487 || 65490 <= D && D <= 65495 || 65498 <= D && D <= 65500 || 65512 <= D && D <= 65518 ? "H" : 4352 <= D && D <= 4447 || 4515 <= D && D <= 4519 || 4602 <= D && D <= 4607 || 9001 <= D && D <= 9002 || 11904 <= D && D <= 11929 || 11931 <= D && D <= 12019 || 12032 <= D && D <= 12245 || 12272 <= D && D <= 12283 || 12289 <= D && D <= 12350 || 12353 <= D && D <= 12438 || 12441 <= D && D <= 12543 || 12549 <= D && D <= 12589 || 12593 <= D && D <= 12686 || 12688 <= D && D <= 12730 || 12736 <= D && D <= 12771 || 12784 <= D && D <= 12830 || 12832 <= D && D <= 12871 || 12880 <= D && D <= 13054 || 13056 <= D && D <= 19903 || 19968 <= D && D <= 42124 || 42128 <= D && D <= 42182 || 43360 <= D && D <= 43388 || 44032 <= D && D <= 55203 || 55216 <= D && D <= 55238 || 55243 <= D && D <= 55291 || 63744 <= D && D <= 64255 || 65040 <= D && D <= 65049 || 65072 <= D && D <= 65106 || 65108 <= D && D <= 65126 || 65128 <= D && D <= 65131 || 110592 <= D && D <= 110593 || 127488 <= D && D <= 127490 || 127504 <= D && D <= 127546 || 127552 <= D && D <= 127560 || 127568 <= D && D <= 127569 || 131072 <= D && D <= 194367 || 177984 <= D && D <= 196605 || 196608 <= D && D <= 262141 ? "W" : 32 <= D && D <= 126 || 162 <= D && D <= 163 || 165 <= D && D <= 166 || 172 == D || 175 == D || 10214 <= D && D <= 10221 || 10629 <= D && D <= 10630 ? "Na" : 161 == D || 164 == D || 167 <= D && D <= 168 || 170 == D || 173 <= D && D <= 174 || 176 <= D && D <= 180 || 182 <= D && D <= 186 || 188 <= D && D <= 191 || 198 == D || 208 == D || 215 <= D && D <= 216 || 222 <= D && D <= 225 || 230 == D || 232 <= D && D <= 234 || 236 <= D && D <= 237 || 240 == D || 242 <= D && D <= 243 || 247 <= D && D <= 250 || 252 == D || 254 == D || 257 == D || 273 == D || 275 == D || 283 == D || 294 <= D && D <= 295 || 299 == D || 305 <= D && D <= 307 || 312 == D || 319 <= D && D <= 322 || 324 == D || 328 <= D && D <= 331 || 333 == D || 338 <= D && D <= 339 || 358 <= D && D <= 359 || 363 == D || 462 == D || 464 == D || 466 == D || 468 == D || 470 == D || 472 == D || 474 == D || 476 == D || 593 == D || 609 == D || 708 == D || 711 == D || 713 <= D && D <= 715 || 717 == D || 720 == D || 728 <= D && D <= 731 || 733 == D || 735 == D || 768 <= D && D <= 879 || 913 <= D && D <= 929 || 931 <= D && D <= 937 || 945 <= D && D <= 961 || 963 <= D && D <= 969 || 1025 == D || 1040 <= D && D <= 1103 || 1105 == D || 8208 == D || 8211 <= D && D <= 8214 || 8216 <= D && D <= 8217 || 8220 <= D && D <= 8221 || 8224 <= D && D <= 8226 || 8228 <= D && D <= 8231 || 8240 == D || 8242 <= D && D <= 8243 || 8245 == D || 8251 == D || 8254 == D || 8308 == D || 8319 == D || 8321 <= D && D <= 8324 || 8364 == D || 8451 == D || 8453 == D || 8457 == D || 8467 == D || 8470 == D || 8481 <= D && D <= 8482 || 8486 == D || 8491 == D || 8531 <= D && D <= 8532 || 8539 <= D && D <= 8542 || 8544 <= D && D <= 8555 || 8560 <= D && D <= 8569 || 8585 == D || 8592 <= D && D <= 8601 || 8632 <= D && D <= 8633 || 8658 == D || 8660 == D || 8679 == D || 8704 == D || 8706 <= D && D <= 8707 || 8711 <= D && D <= 8712 || 8715 == D || 8719 == D || 8721 == D || 8725 == D || 8730 == D || 8733 <= D && D <= 8736 || 8739 == D || 8741 == D || 8743 <= D && D <= 8748 || 8750 == D || 8756 <= D && D <= 8759 || 8764 <= D && D <= 8765 || 8776 == D || 8780 == D || 8786 == D || 8800 <= D && D <= 8801 || 8804 <= D && D <= 8807 || 8810 <= D && D <= 8811 || 8814 <= D && D <= 8815 || 8834 <= D && D <= 8835 || 8838 <= D && D <= 8839 || 8853 == D || 8857 == D || 8869 == D || 8895 == D || 8978 == D || 9312 <= D && D <= 9449 || 9451 <= D && D <= 9547 || 9552 <= D && D <= 9587 || 9600 <= D && D <= 9615 || 9618 <= D && D <= 9621 || 9632 <= D && D <= 9633 || 9635 <= D && D <= 9641 || 9650 <= D && D <= 9651 || 9654 <= D && D <= 9655 || 9660 <= D && D <= 9661 || 9664 <= D && D <= 9665 || 9670 <= D && D <= 9672 || 9675 == D || 9678 <= D && D <= 9681 || 9698 <= D && D <= 9701 || 9711 == D || 9733 <= D && D <= 9734 || 9737 == D || 9742 <= D && D <= 9743 || 9748 <= D && D <= 9749 || 9756 == D || 9758 == D || 9792 == D || 9794 == D || 9824 <= D && D <= 9825 || 9827 <= D && D <= 9829 || 9831 <= D && D <= 9834 || 9836 <= D && D <= 9837 || 9839 == D || 9886 <= D && D <= 9887 || 9918 <= D && D <= 9919 || 9924 <= D && D <= 9933 || 9935 <= D && D <= 9953 || 9955 == D || 9960 <= D && D <= 9983 || 10045 == D || 10071 == D || 10102 <= D && D <= 10111 || 11093 <= D && D <= 11097 || 12872 <= D && D <= 12879 || 57344 <= D && D <= 63743 || 65024 <= D && D <= 65039 || 65533 == D || 127232 <= D && D <= 127242 || 127248 <= D && D <= 127277 || 127280 <= D && D <= 127337 || 127344 <= D && D <= 127386 || 917760 <= D && D <= 917999 || 983040 <= D && D <= 1048573 || 1048576 <= D && D <= 1114109 ? "A" : "N";
460
+ }, u.characterLength = function(e) {
461
+ var s = this.eastAsianWidth(e);
460
462
  return "F" == s || "W" == s || "A" == s ? 2 : 1;
461
463
  };
462
- function F(t) {
463
- return t.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
464
+ function F(e) {
465
+ return e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
464
466
  }
465
- u.length = function(t) {
466
- for(var s = F(t), C = 0, D = 0; D < s.length; D++)C += this.characterLength(s[D]);
467
- return C;
468
- }, u.slice = function(t, s, C) {
469
- textLen = u.length(t), s = s || 0, C = C || 1, s < 0 && (s = textLen + s), C < 0 && (C = textLen + C);
470
- for(var D = "", i = 0, n = F(t), E = 0; E < n.length; E++){
471
- var h = n[E], o = u.length(h);
472
- if (i >= s - (2 == o ? 1 : 0)) {
473
- if (i + o <= C) D += h;
467
+ u.length = function(e) {
468
+ for(var s = F(e), i = 0, D = 0; D < s.length; D++)i += this.characterLength(s[D]);
469
+ return i;
470
+ }, u.slice = function(e, s, i) {
471
+ textLen = u.length(e), s = s || 0, i = i || 1, s < 0 && (s = textLen + s), i < 0 && (i = textLen + i);
472
+ for(var D = "", C = 0, o = F(e), E = 0; E < o.length; E++){
473
+ var a = o[E], n = u.length(a);
474
+ if (C >= s - (2 == n ? 1 : 0)) {
475
+ if (C + n <= i) D += a;
474
476
  else break;
475
477
  }
476
- i += o;
478
+ C += n;
477
479
  }
478
480
  return D;
479
481
  };
480
- })(j);
481
- var Q = j.exports;
482
- const X = T(Q);
483
- var DD = function() {
482
+ })(P);
483
+ var dist_X = P.exports;
484
+ const DD = dist_O(dist_X);
485
+ var uD = function() {
484
486
  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;
485
487
  };
486
- const uD = T(DD);
487
- function dist_A(e, u = {}) {
488
- if ("string" != typeof e || 0 === e.length || (u = {
488
+ const FD = dist_O(uD);
489
+ function A(t, u = {}) {
490
+ if ("string" != typeof t || 0 === t.length || (u = {
489
491
  ambiguousIsNarrow: !0,
490
492
  ...u
491
- }, e = dist_S(e), 0 === e.length)) return 0;
492
- e = e.replace(uD(), " ");
493
+ }, t = T(t), 0 === t.length)) return 0;
494
+ t = t.replace(FD(), " ");
493
495
  const F = u.ambiguousIsNarrow ? 1 : 2;
494
- let t = 0;
495
- for (const s of e){
496
- const C = s.codePointAt(0);
497
- if (!(C <= 31) && (!(C >= 127) || !(C <= 159)) && (!(C >= 768) || !(C <= 879))) switch(X.eastAsianWidth(s)){
496
+ let e = 0;
497
+ for (const s of t){
498
+ const i = s.codePointAt(0);
499
+ if (!(i <= 31) && (!(i >= 127) || !(i <= 159)) && (!(i >= 768) || !(i <= 879))) switch(DD.eastAsianWidth(s)){
498
500
  case "F":
499
501
  case "W":
500
- t += 2;
502
+ e += 2;
501
503
  break;
502
504
  case "A":
503
- t += F;
505
+ e += F;
504
506
  break;
505
507
  default:
506
- t += 1;
508
+ e += 1;
507
509
  }
508
510
  }
509
- return t;
511
+ return e;
510
512
  }
511
- const dist_d = 10, M = (e = 0)=>(u)=>`\x1B[${u + e}m`, P = (e = 0)=>(u)=>`\x1B[${38 + e};5;${u}m`, W = (e = 0)=>(u, F, t)=>`\x1B[${38 + e};2;${u};${F};${t}m`, dist_r = {
513
+ const dist_m = 10, L = (t = 0)=>(u)=>`\x1B[${u + t}m`, dist_N = (t = 0)=>(u)=>`\x1B[${38 + t};5;${u}m`, dist_I = (t = 0)=>(u, F, e)=>`\x1B[${38 + t};2;${u};${F};${e}m`, dist_r = {
512
514
  modifier: {
513
515
  reset: [
514
516
  0,
@@ -697,29 +699,29 @@ const dist_d = 10, M = (e = 0)=>(u)=>`\x1B[${u + e}m`, P = (e = 0)=>(u)=>`\x1B[$
697
699
  }
698
700
  };
699
701
  Object.keys(dist_r.modifier);
700
- const FD = Object.keys(dist_r.color), eD = Object.keys(dist_r.bgColor);
702
+ const tD = Object.keys(dist_r.color), eD = Object.keys(dist_r.bgColor);
701
703
  [
702
- ...FD,
704
+ ...tD,
703
705
  ...eD
704
706
  ];
705
- function tD() {
706
- const e = new Map;
707
+ function sD() {
708
+ const t = new Map;
707
709
  for (const [u, F] of Object.entries(dist_r)){
708
- for (const [t, s] of Object.entries(F))dist_r[t] = {
710
+ for (const [e, s] of Object.entries(F))dist_r[e] = {
709
711
  open: `\x1B[${s[0]}m`,
710
712
  close: `\x1B[${s[1]}m`
711
- }, F[t] = dist_r[t], e.set(s[0], s[1]);
713
+ }, F[e] = dist_r[e], t.set(s[0], s[1]);
712
714
  Object.defineProperty(dist_r, u, {
713
715
  value: F,
714
716
  enumerable: !1
715
717
  });
716
718
  }
717
719
  return Object.defineProperty(dist_r, "codes", {
718
- value: e,
720
+ value: t,
719
721
  enumerable: !1
720
- }), dist_r.color.close = "\x1B[39m", dist_r.bgColor.close = "\x1B[49m", dist_r.color.ansi = M(), dist_r.color.ansi256 = P(), dist_r.color.ansi16m = W(), dist_r.bgColor.ansi = M(dist_d), dist_r.bgColor.ansi256 = P(dist_d), dist_r.bgColor.ansi16m = W(dist_d), Object.defineProperties(dist_r, {
722
+ }), dist_r.color.close = "\x1B[39m", dist_r.bgColor.close = "\x1B[49m", dist_r.color.ansi = L(), dist_r.color.ansi256 = dist_N(), dist_r.color.ansi16m = dist_I(), dist_r.bgColor.ansi = L(dist_m), dist_r.bgColor.ansi256 = dist_N(dist_m), dist_r.bgColor.ansi16m = dist_I(dist_m), Object.defineProperties(dist_r, {
721
723
  rgbToAnsi256: {
722
- value: (u, F, t)=>u === F && F === t ? u < 8 ? 16 : u > 248 ? 231 : Math.round((u - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u / 255 * 5) + 6 * Math.round(F / 255 * 5) + Math.round(t / 255 * 5),
724
+ value: (u, F, e)=>u === F && F === e ? u < 8 ? 16 : u > 248 ? 231 : Math.round((u - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u / 255 * 5) + 6 * Math.round(F / 255 * 5) + Math.round(e / 255 * 5),
723
725
  enumerable: !1
724
726
  },
725
727
  hexToRgb: {
@@ -730,11 +732,11 @@ function tD() {
730
732
  0,
731
733
  0
732
734
  ];
733
- let [t] = F;
734
- 3 === t.length && (t = [
735
- ...t
736
- ].map((C)=>C + C).join(""));
737
- const s = Number.parseInt(t, 16);
735
+ let [e] = F;
736
+ 3 === e.length && (e = [
737
+ ...e
738
+ ].map((i)=>i + i).join(""));
739
+ const s = Number.parseInt(e, 16);
738
740
  return [
739
741
  s >> 16 & 255,
740
742
  s >> 8 & 255,
@@ -751,22 +753,22 @@ function tD() {
751
753
  value: (u)=>{
752
754
  if (u < 8) return 30 + u;
753
755
  if (u < 16) return 90 + (u - 8);
754
- let F, t, s;
755
- if (u >= 232) F = ((u - 232) * 10 + 8) / 255, t = F, s = F;
756
+ let F, e, s;
757
+ if (u >= 232) F = ((u - 232) * 10 + 8) / 255, e = F, s = F;
756
758
  else {
757
759
  u -= 16;
758
- const i = u % 36;
759
- F = Math.floor(u / 36) / 5, t = Math.floor(i / 6) / 5, s = i % 6 / 5;
760
+ const C = u % 36;
761
+ F = Math.floor(u / 36) / 5, e = Math.floor(C / 6) / 5, s = C % 6 / 5;
760
762
  }
761
- const C = 2 * Math.max(F, t, s);
762
- if (0 === C) return 30;
763
- let D = 30 + (Math.round(s) << 2 | Math.round(t) << 1 | Math.round(F));
764
- return 2 === C && (D += 60), D;
763
+ const i = 2 * Math.max(F, e, s);
764
+ if (0 === i) return 30;
765
+ let D = 30 + (Math.round(s) << 2 | Math.round(e) << 1 | Math.round(F));
766
+ return 2 === i && (D += 60), D;
765
767
  },
766
768
  enumerable: !1
767
769
  },
768
770
  rgbToAnsi: {
769
- value: (u, F, t)=>dist_r.ansi256ToAnsi(dist_r.rgbToAnsi256(u, F, t)),
771
+ value: (u, F, e)=>dist_r.ansi256ToAnsi(dist_r.rgbToAnsi256(u, F, e)),
770
772
  enumerable: !1
771
773
  },
772
774
  hexToAnsi: {
@@ -775,215 +777,250 @@ function tD() {
775
777
  }
776
778
  }), dist_r;
777
779
  }
778
- const sD = tD(), dist_g = new Set([
780
+ const iD = sD(), dist_v = new Set([
779
781
  "\x1B",
780
782
  "\x9B"
781
- ]), CD = 39, dist_b = "\x07", dist_O = "[", iD = "]", I = "m", dist_w = `${iD}8;;`, N = (e)=>`${dist_g.values().next().value}${dist_O}${e}${I}`, dist_L = (e)=>`${dist_g.values().next().value}${dist_w}${e}${dist_b}`, rD = (e)=>e.split(" ").map((u)=>dist_A(u)), y = (e, u, F)=>{
782
- const t = [
783
+ ]), CD = 39, w = "\x07", W = "[", rD = "]", dist_R = "m", dist_y = `${rD}8;;`, V = (t)=>`${dist_v.values().next().value}${W}${t}${dist_R}`, dist_z = (t)=>`${dist_v.values().next().value}${dist_y}${t}${w}`, ED = (t)=>t.split(" ").map((u)=>A(u)), _ = (t, u, F)=>{
784
+ const e = [
783
785
  ...u
784
786
  ];
785
- let s = !1, C = !1, D = dist_A(dist_S(e[e.length - 1]));
786
- for (const [i, n] of t.entries()){
787
- const E = dist_A(n);
788
- if (D + E <= F ? e[e.length - 1] += n : (e.push(n), D = 0), dist_g.has(n) && (s = !0, C = t.slice(i + 1).join("").startsWith(dist_w)), s) {
789
- C ? n === dist_b && (s = !1, C = !1) : n === I && (s = !1);
787
+ let s = !1, i = !1, D = A(T(t[t.length - 1]));
788
+ for (const [C, o] of e.entries()){
789
+ const E = A(o);
790
+ if (D + E <= F ? t[t.length - 1] += o : (t.push(o), D = 0), dist_v.has(o) && (s = !0, i = e.slice(C + 1).join("").startsWith(dist_y)), s) {
791
+ i ? o === w && (s = !1, i = !1) : o === dist_R && (s = !1);
790
792
  continue;
791
793
  }
792
- D += E, D === F && i < t.length - 1 && (e.push(""), D = 0);
794
+ D += E, D === F && C < e.length - 1 && (t.push(""), D = 0);
793
795
  }
794
- !D && e[e.length - 1].length > 0 && e.length > 1 && (e[e.length - 2] += e.pop());
795
- }, ED = (e)=>{
796
- const u = e.split(" ");
796
+ !D && t[t.length - 1].length > 0 && t.length > 1 && (t[t.length - 2] += t.pop());
797
+ }, nD = (t)=>{
798
+ const u = t.split(" ");
797
799
  let F = u.length;
798
- for(; F > 0 && !(dist_A(u[F - 1]) > 0);)F--;
799
- return F === u.length ? e : u.slice(0, F).join(" ") + u.slice(F).join("");
800
- }, oD = (e, u, F = {})=>{
801
- if (!1 !== F.trim && "" === e.trim()) return "";
802
- let t = "", s, C;
803
- const D = rD(e);
804
- let i = [
800
+ for(; F > 0 && !(A(u[F - 1]) > 0);)F--;
801
+ return F === u.length ? t : u.slice(0, F).join(" ") + u.slice(F).join("");
802
+ }, oD = (t, u, F = {})=>{
803
+ if (!1 !== F.trim && "" === t.trim()) return "";
804
+ let e = "", s, i;
805
+ const D = ED(t);
806
+ let C = [
805
807
  ""
806
808
  ];
807
- for (const [E, h] of e.split(" ").entries()){
808
- !1 !== F.trim && (i[i.length - 1] = i[i.length - 1].trimStart());
809
- let o = dist_A(i[i.length - 1]);
810
- if (0 !== E && (o >= u && (!1 === F.wordWrap || !1 === F.trim) && (i.push(""), o = 0), (o > 0 || !1 === F.trim) && (i[i.length - 1] += " ", o++)), F.hard && D[E] > u) {
811
- const B = u - o, p = 1 + Math.floor((D[E] - B - 1) / u);
812
- Math.floor((D[E] - 1) / u) < p && i.push(""), y(i, h, u);
809
+ for (const [E, a] of t.split(" ").entries()){
810
+ !1 !== F.trim && (C[C.length - 1] = C[C.length - 1].trimStart());
811
+ let n = A(C[C.length - 1]);
812
+ if (0 !== E && (n >= u && (!1 === F.wordWrap || !1 === F.trim) && (C.push(""), n = 0), (n > 0 || !1 === F.trim) && (C[C.length - 1] += " ", n++)), F.hard && D[E] > u) {
813
+ const B = u - n, p = 1 + Math.floor((D[E] - B - 1) / u);
814
+ Math.floor((D[E] - 1) / u) < p && C.push(""), _(C, a, u);
813
815
  continue;
814
816
  }
815
- if (o + D[E] > u && o > 0 && D[E] > 0) {
816
- if (!1 === F.wordWrap && o < u) {
817
- y(i, h, u);
817
+ if (n + D[E] > u && n > 0 && D[E] > 0) {
818
+ if (!1 === F.wordWrap && n < u) {
819
+ _(C, a, u);
818
820
  continue;
819
821
  }
820
- i.push("");
822
+ C.push("");
821
823
  }
822
- if (o + D[E] > u && !1 === F.wordWrap) {
823
- y(i, h, u);
824
+ if (n + D[E] > u && !1 === F.wordWrap) {
825
+ _(C, a, u);
824
826
  continue;
825
827
  }
826
- i[i.length - 1] += h;
828
+ C[C.length - 1] += a;
827
829
  }
828
- !1 !== F.trim && (i = i.map((E)=>ED(E)));
829
- const n = [
830
- ...i.join(`
830
+ !1 !== F.trim && (C = C.map((E)=>nD(E)));
831
+ const o = [
832
+ ...C.join(`
831
833
  `)
832
834
  ];
833
- for (const [E, h] of n.entries()){
834
- if (t += h, dist_g.has(h)) {
835
- const { groups: B } = new RegExp(`(?:\\${dist_O}(?<code>\\d+)m|\\${dist_w}(?<uri>.*)${dist_b})`).exec(n.slice(E).join("")) || {
835
+ for (const [E, a] of o.entries()){
836
+ if (e += a, dist_v.has(a)) {
837
+ const { groups: B } = new RegExp(`(?:\\${W}(?<code>\\d+)m|\\${dist_y}(?<uri>.*)${w})`).exec(o.slice(E).join("")) || {
836
838
  groups: {}
837
839
  };
838
840
  if (void 0 !== B.code) {
839
841
  const p = Number.parseFloat(B.code);
840
842
  s = p === CD ? void 0 : p;
841
- } else void 0 !== B.uri && (C = 0 === B.uri.length ? void 0 : B.uri);
843
+ } else void 0 !== B.uri && (i = 0 === B.uri.length ? void 0 : B.uri);
842
844
  }
843
- const o = sD.codes.get(Number(s));
844
- n[E + 1] === `
845
- ` ? (C && (t += dist_L("")), s && o && (t += N(o))) : h === `
846
- ` && (s && o && (t += N(s)), C && (t += dist_L(C)));
845
+ const n = iD.codes.get(Number(s));
846
+ o[E + 1] === `
847
+ ` ? (i && (e += dist_z("")), s && n && (e += V(n))) : a === `
848
+ ` && (s && n && (e += V(s)), i && (e += dist_z(i)));
847
849
  }
848
- return t;
850
+ return e;
849
851
  };
850
- function R(e, u, F) {
851
- return String(e).normalize().replace(/\r\n/g, `
852
+ function dist_G(t, u, F) {
853
+ return String(t).normalize().replace(/\r\n/g, `
852
854
  `).split(`
853
- `).map((t)=>oD(t, u, F)).join(`
855
+ `).map((e)=>oD(e, u, F)).join(`
854
856
  `);
855
857
  }
856
- var nD = Object.defineProperty, aD = (e, u, F)=>u in e ? nD(e, u, {
857
- enumerable: !0,
858
- configurable: !0,
859
- writable: !0,
860
- value: F
861
- }) : e[u] = F, a = (e, u, F)=>(aD(e, "symbol" != typeof u ? u + "" : u, F), F);
862
- function hD(e, u) {
863
- if (e === u) return;
864
- const F = e.split(`
865
- `), t = u.split(`
866
- `), s = [];
867
- for(let C = 0; C < Math.max(F.length, t.length); C++)F[C] !== t[C] && s.push(C);
868
- return s;
869
- }
870
- const V = Symbol("clack:cancel");
871
- function lD(e) {
872
- return e === V;
873
- }
874
- function v(e, u) {
875
- e.isTTY && e.setRawMode(u);
876
- }
877
- const dist_z = new Map([
878
- [
879
- "k",
880
- "up"
881
- ],
882
- [
883
- "j",
884
- "down"
885
- ],
886
- [
887
- "h",
888
- "left"
889
- ],
890
- [
891
- "l",
892
- "right"
893
- ]
894
- ]), xD = new Set([
858
+ const aD = [
895
859
  "up",
896
860
  "down",
897
861
  "left",
898
862
  "right",
899
863
  "space",
900
- "enter"
901
- ]);
864
+ "enter",
865
+ "cancel"
866
+ ], dist_c = {
867
+ actions: new Set(aD),
868
+ aliases: new Map([
869
+ [
870
+ "k",
871
+ "up"
872
+ ],
873
+ [
874
+ "j",
875
+ "down"
876
+ ],
877
+ [
878
+ "h",
879
+ "left"
880
+ ],
881
+ [
882
+ "l",
883
+ "right"
884
+ ],
885
+ [
886
+ "",
887
+ "cancel"
888
+ ],
889
+ [
890
+ "escape",
891
+ "cancel"
892
+ ]
893
+ ])
894
+ };
895
+ function k(t, u) {
896
+ if ("string" == typeof t) return dist_c.aliases.get(t) === u;
897
+ for (const F of t)if (void 0 !== F && k(F, u)) return !0;
898
+ return !1;
899
+ }
900
+ function lD(t, u) {
901
+ if (t === u) return;
902
+ const F = t.split(`
903
+ `), e = u.split(`
904
+ `), s = [];
905
+ for(let i = 0; i < Math.max(F.length, e.length); i++)F[i] !== e[i] && s.push(i);
906
+ return s;
907
+ }
908
+ globalThis.process.platform.startsWith("win");
909
+ const dist_S = Symbol("clack:cancel");
910
+ function BD(t) {
911
+ return t === dist_S;
912
+ }
913
+ function d(t, u) {
914
+ const F = t;
915
+ F.isTTY && F.setRawMode(u);
916
+ }
917
+ var AD = Object.defineProperty, pD = (t, u, F)=>u in t ? AD(t, u, {
918
+ enumerable: !0,
919
+ configurable: !0,
920
+ writable: !0,
921
+ value: F
922
+ }) : t[u] = F, dist_h = (t, u, F)=>(pD(t, "symbol" != typeof u ? u + "" : u, F), F);
902
923
  class dist_x {
903
- constructor({ render: u, input: F = __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__.stdin, output: t = __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__.stdout, ...s }, C = !0){
904
- a(this, "input"), a(this, "output"), a(this, "rl"), a(this, "opts"), a(this, "_track", !1), a(this, "_render"), a(this, "_cursor", 0), a(this, "state", "initial"), a(this, "value"), a(this, "error", ""), a(this, "subscribers", new Map), a(this, "_prevFrame", ""), this.opts = s, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = u.bind(this), this._track = C, this.input = F, this.output = t;
924
+ constructor(u, F = !0){
925
+ dist_h(this, "input"), dist_h(this, "output"), dist_h(this, "_abortSignal"), dist_h(this, "rl"), dist_h(this, "opts"), dist_h(this, "_render"), dist_h(this, "_track", !1), dist_h(this, "_prevFrame", ""), dist_h(this, "_subscribers", new Map), dist_h(this, "_cursor", 0), dist_h(this, "state", "initial"), dist_h(this, "error", ""), dist_h(this, "value");
926
+ const { input: e = __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__.stdin, output: s = __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__.stdout, render: i, signal: D, ...C } = u;
927
+ 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 = e, this.output = s;
905
928
  }
906
- prompt() {
907
- const u = new __WEBPACK_EXTERNAL_MODULE_node_tty_c64aab7e__.WriteStream(0);
908
- return u._write = (F, t, s)=>{
909
- this._track && (this.value = this.rl.line.replace(/\t/g, ""), this._cursor = this.rl.cursor, this.emit("value", this.value)), s();
910
- }, this.input.pipe(u), this.rl = __WEBPACK_EXTERNAL_MODULE_node_readline_91c31510__["default"].createInterface({
911
- input: this.input,
912
- output: u,
913
- tabSize: 2,
914
- prompt: "",
915
- escapeCodeTimeout: 50
916
- }), __WEBPACK_EXTERNAL_MODULE_node_readline_91c31510__["default"].emitKeypressEvents(this.input, this.rl), this.rl.prompt(), void 0 !== this.opts.initialValue && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), v(this.input, !0), this.output.on("resize", this.render), this.render(), new Promise((F, t)=>{
917
- this.once("submit", ()=>{
918
- this.output.write(src.cursor.show), this.output.off("resize", this.render), v(this.input, !1), F(this.value);
919
- }), this.once("cancel", ()=>{
920
- this.output.write(src.cursor.show), this.output.off("resize", this.render), v(this.input, !1), F(V);
921
- });
922
- });
929
+ unsubscribe() {
930
+ this._subscribers.clear();
931
+ }
932
+ setSubscriber(u, F) {
933
+ const e = this._subscribers.get(u) ?? [];
934
+ e.push(F), this._subscribers.set(u, e);
923
935
  }
924
936
  on(u, F) {
925
- const t = this.subscribers.get(u) ?? [];
926
- t.push({
937
+ this.setSubscriber(u, {
927
938
  cb: F
928
- }), this.subscribers.set(u, t);
939
+ });
929
940
  }
930
941
  once(u, F) {
931
- const t = this.subscribers.get(u) ?? [];
932
- t.push({
942
+ this.setSubscriber(u, {
933
943
  cb: F,
934
944
  once: !0
935
- }), this.subscribers.set(u, t);
945
+ });
936
946
  }
937
947
  emit(u, ...F) {
938
- const t = this.subscribers.get(u) ?? [], s = [];
939
- for (const C of t)C.cb(...F), C.once && s.push(()=>t.splice(t.indexOf(C), 1));
940
- for (const C of s)C();
948
+ const e = this._subscribers.get(u) ?? [], s = [];
949
+ for (const i of e)i.cb(...F), i.once && s.push(()=>e.splice(e.indexOf(i), 1));
950
+ for (const i of s)i();
941
951
  }
942
- unsubscribe() {
943
- this.subscribers.clear();
952
+ prompt() {
953
+ return new Promise((u, F)=>{
954
+ if (this._abortSignal) {
955
+ if (this._abortSignal.aborted) return this.state = "cancel", this.close(), u(dist_S);
956
+ this._abortSignal.addEventListener("abort", ()=>{
957
+ this.state = "cancel", this.close();
958
+ }, {
959
+ once: !0
960
+ });
961
+ }
962
+ const e = new __WEBPACK_EXTERNAL_MODULE_node_tty_c64aab7e__.WriteStream(0);
963
+ e._write = (s, i, D)=>{
964
+ this._track && (this.value = this.rl?.line.replace(/\t/g, ""), this._cursor = this.rl?.cursor ?? 0, this.emit("value", this.value)), D();
965
+ }, this.input.pipe(e), this.rl = __WEBPACK_EXTERNAL_MODULE_node_readline_91c31510__["default"].createInterface({
966
+ input: this.input,
967
+ output: e,
968
+ tabSize: 2,
969
+ prompt: "",
970
+ escapeCodeTimeout: 50
971
+ }), __WEBPACK_EXTERNAL_MODULE_node_readline_91c31510__["default"].emitKeypressEvents(this.input, this.rl), this.rl.prompt(), void 0 !== this.opts.initialValue && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), d(this.input, !0), this.output.on("resize", this.render), this.render(), this.once("submit", ()=>{
972
+ this.output.write(src.cursor.show), this.output.off("resize", this.render), d(this.input, !1), u(this.value);
973
+ }), this.once("cancel", ()=>{
974
+ this.output.write(src.cursor.show), this.output.off("resize", this.render), d(this.input, !1), u(dist_S);
975
+ });
976
+ });
944
977
  }
945
978
  onKeypress(u, F) {
946
- if ("error" === this.state && (this.state = "active"), F?.name && !this._track && dist_z.has(F.name) && this.emit("cursor", dist_z.get(F.name)), F?.name && xD.has(F.name) && this.emit("cursor", F.name), u && ("y" === u.toLowerCase() || "n" === u.toLowerCase()) && this.emit("confirm", "y" === u.toLowerCase()), " " === u && this.opts.placeholder && (this.value || (this.rl.write(this.opts.placeholder), this.emit("value", this.opts.placeholder))), u && this.emit("key", u.toLowerCase()), F?.name === "return") {
979
+ if ("error" === this.state && (this.state = "active"), F?.name && (!this._track && dist_c.aliases.has(F.name) && this.emit("cursor", dist_c.aliases.get(F.name)), dist_c.actions.has(F.name) && this.emit("cursor", F.name)), u && ("y" === u.toLowerCase() || "n" === u.toLowerCase()) && this.emit("confirm", "y" === u.toLowerCase()), " " === u && this.opts.placeholder && (this.value || (this.rl?.write(this.opts.placeholder), this.emit("value", this.opts.placeholder))), u && this.emit("key", u.toLowerCase()), F?.name === "return") {
947
980
  if (this.opts.validate) {
948
- const t = this.opts.validate(this.value);
949
- t && (this.error = t, this.state = "error", this.rl.write(this.value));
981
+ const e = this.opts.validate(this.value);
982
+ e && (this.error = e instanceof Error ? e.message : e, this.state = "error", this.rl?.write(this.value));
950
983
  }
951
984
  "error" !== this.state && (this.state = "submit");
952
985
  }
953
- "" === u && (this.state = "cancel"), ("submit" === this.state || "cancel" === this.state) && this.emit("finalize"), this.render(), ("submit" === this.state || "cancel" === this.state) && this.close();
986
+ k([
987
+ u,
988
+ F?.name,
989
+ F?.sequence
990
+ ], "cancel") && (this.state = "cancel"), ("submit" === this.state || "cancel" === this.state) && this.emit("finalize"), this.render(), ("submit" === this.state || "cancel" === this.state) && this.close();
954
991
  }
955
992
  close() {
956
993
  this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
957
- `), v(this.input, !1), this.rl.close(), this.emit(`${this.state}`, this.value), this.unsubscribe();
994
+ `), d(this.input, !1), this.rl?.close(), this.rl = void 0, this.emit(`${this.state}`, this.value), this.unsubscribe();
958
995
  }
959
996
  restoreCursor() {
960
- const u = R(this._prevFrame, process.stdout.columns, {
997
+ const u = dist_G(this._prevFrame, process.stdout.columns, {
961
998
  hard: !0
962
999
  }).split(`
963
1000
  `).length - 1;
964
1001
  this.output.write(src.cursor.move(-999, -1 * u));
965
1002
  }
966
1003
  render() {
967
- const u = R(this._render(this) ?? "", process.stdout.columns, {
1004
+ const u = dist_G(this._render(this) ?? "", process.stdout.columns, {
968
1005
  hard: !0
969
1006
  });
970
1007
  if (u !== this._prevFrame) {
971
1008
  if ("initial" === this.state) this.output.write(src.cursor.hide);
972
1009
  else {
973
- const F = hD(this._prevFrame, u);
1010
+ const F = lD(this._prevFrame, u);
974
1011
  if (this.restoreCursor(), F && F?.length === 1) {
975
- const t = F[0];
976
- this.output.write(src.cursor.move(0, t)), this.output.write(src.erase.lines(1));
1012
+ const e = F[0];
1013
+ this.output.write(src.cursor.move(0, e)), this.output.write(src.erase.lines(1));
977
1014
  const s = u.split(`
978
1015
  `);
979
- this.output.write(s[t]), this._prevFrame = u, this.output.write(src.cursor.move(0, s.length - t - 1));
1016
+ this.output.write(s[e]), this._prevFrame = u, this.output.write(src.cursor.move(0, s.length - e - 1));
980
1017
  return;
981
1018
  }
982
1019
  if (F && F?.length > 1) {
983
- const t = F[0];
984
- this.output.write(src.cursor.move(0, t)), this.output.write(src.erase.down());
1020
+ const e = F[0];
1021
+ this.output.write(src.cursor.move(0, e)), this.output.write(src.erase.down());
985
1022
  const s = u.split(`
986
- `).slice(t);
1023
+ `).slice(e);
987
1024
  this.output.write(s.join(`
988
1025
  `)), this._prevFrame = u;
989
1026
  return;
@@ -994,15 +1031,15 @@ class dist_x {
994
1031
  }
995
1032
  }
996
1033
  }
997
- var fD = Object.defineProperty, gD = (e, u, F)=>u in e ? fD(e, u, {
1034
+ var bD = Object.defineProperty, mD = (t, u, F)=>u in t ? bD(t, u, {
998
1035
  enumerable: !0,
999
1036
  configurable: !0,
1000
1037
  writable: !0,
1001
1038
  value: F
1002
- }) : e[u] = F, K = (e, u, F)=>(gD(e, "symbol" != typeof u ? u + "" : u, F), F);
1003
- let vD = class extends dist_x {
1039
+ }) : t[u] = F, Y = (t, u, F)=>(mD(t, "symbol" != typeof u ? u + "" : u, F), F);
1040
+ let wD = class extends dist_x {
1004
1041
  constructor(u){
1005
- super(u, !1), K(this, "options"), K(this, "cursor", 0), this.options = u.options, this.value = [
1042
+ super(u, !1), Y(this, "options"), Y(this, "cursor", 0), this.options = u.options, this.value = [
1006
1043
  ...u.initialValues ?? []
1007
1044
  ], this.cursor = Math.max(this.options.findIndex(({ value: F })=>F === u.cursorAt), 0), this.on("key", (F)=>{
1008
1045
  "a" === F && this.toggleAll();
@@ -1037,15 +1074,15 @@ let vD = class extends dist_x {
1037
1074
  ];
1038
1075
  }
1039
1076
  };
1040
- var wD = Object.defineProperty, yD = (e, u, F)=>u in e ? wD(e, u, {
1077
+ var SD = Object.defineProperty, $D = (t, u, F)=>u in t ? SD(t, u, {
1041
1078
  enumerable: !0,
1042
1079
  configurable: !0,
1043
1080
  writable: !0,
1044
1081
  value: F
1045
- }) : e[u] = F, dist_Z = (e, u, F)=>(yD(e, "symbol" != typeof u ? u + "" : u, F), F);
1046
- let $D = class extends dist_x {
1082
+ }) : t[u] = F, q = (t, u, F)=>($D(t, "symbol" != typeof u ? u + "" : u, F), F);
1083
+ class jD extends dist_x {
1047
1084
  constructor(u){
1048
- super(u, !1), dist_Z(this, "options"), dist_Z(this, "cursor", 0), this.options = u.options, this.cursor = this.options.findIndex(({ value: F })=>F === u.initialValue), -1 === this.cursor && (this.cursor = 0), this.changeValue(), this.on("cursor", (F)=>{
1085
+ super(u, !1), q(this, "options"), q(this, "cursor", 0), this.options = u.options, this.cursor = this.options.findIndex(({ value: F })=>F === u.initialValue), -1 === this.cursor && (this.cursor = 0), this.changeValue(), this.on("cursor", (F)=>{
1049
1086
  switch(F){
1050
1087
  case "left":
1051
1088
  case "up":
@@ -1065,204 +1102,196 @@ let $D = class extends dist_x {
1065
1102
  changeValue() {
1066
1103
  this.value = this._value.value;
1067
1104
  }
1068
- };
1069
- var TD = Object.defineProperty, jD = (e, u, F)=>u in e ? TD(e, u, {
1070
- enumerable: !0,
1071
- configurable: !0,
1072
- writable: !0,
1073
- value: F
1074
- }) : e[u] = F, MD = (e, u, F)=>(jD(e, "symbol" != typeof u ? u + "" : u, F), F);
1105
+ }
1075
1106
  class PD extends dist_x {
1076
- constructor(u){
1077
- super(u), MD(this, "valueWithCursor", ""), this.on("finalize", ()=>{
1078
- this.value || (this.value = u.defaultValue), this.valueWithCursor = this.value;
1079
- }), this.on("value", ()=>{
1080
- if (this.cursor >= this.value.length) this.valueWithCursor = `${this.value}${picocolors.inverse(picocolors.hidden("_"))}`;
1081
- else {
1082
- const F = this.value.slice(0, this.cursor), t = this.value.slice(this.cursor);
1083
- this.valueWithCursor = `${F}${picocolors.inverse(t[0])}${t.slice(1)}`;
1084
- }
1085
- });
1107
+ get valueWithCursor() {
1108
+ if ("submit" === this.state) return this.value;
1109
+ if (this.cursor >= this.value.length) return `${this.value}\u2588`;
1110
+ const u = this.value.slice(0, this.cursor), [F, ...e] = this.value.slice(this.cursor);
1111
+ return `${u}${picocolors.inverse(F)}${e.join("")}`;
1086
1112
  }
1087
1113
  get cursor() {
1088
1114
  return this._cursor;
1089
1115
  }
1116
+ constructor(u){
1117
+ super(u), this.on("finalize", ()=>{
1118
+ this.value || (this.value = u.defaultValue);
1119
+ });
1120
+ }
1090
1121
  }
1091
- globalThis.process.platform.startsWith("win");
1092
- function dist_K() {
1122
+ function ce() {
1093
1123
  return "win32" !== __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__["default"].platform ? "linux" !== __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__["default"].env.TERM : !!__WEBPACK_EXTERNAL_MODULE_node_process_786449bf__["default"].env.CI || !!__WEBPACK_EXTERNAL_MODULE_node_process_786449bf__["default"].env.WT_SESSION || !!__WEBPACK_EXTERNAL_MODULE_node_process_786449bf__["default"].env.TERMINUS_SUBLIME || "{cmd::Cmder}" === __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__["default"].env.ConEmuTask || "Terminus-Sublime" === __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__["default"].env.TERM_PROGRAM || "vscode" === __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__["default"].env.TERM_PROGRAM || "xterm-256color" === __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__["default"].env.TERM || "alacritty" === __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__["default"].env.TERM || "JetBrains-JediTerm" === __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__["default"].env.TERMINAL_EMULATOR;
1094
1124
  }
1095
- const dist_C = dist_K(), dist_u = (s, n)=>dist_C ? s : n, dist_Y = dist_u("\u25C6", "*"), dist_P = dist_u("\u25A0", "x"), dist_V = dist_u("\u25B2", "x"), dist_M = dist_u("\u25C7", "o"), dist_a = (dist_u("\u250C", "T"), dist_u("\u2502", "|")), dist_$ = dist_u("\u2514", "\u2014"), dist_I = dist_u("\u25CF", ">"), dist_T = dist_u("\u25CB", " "), dist_j = dist_u("\u25FB", "[\u2022]"), prompts_dist_b = dist_u("\u25FC", "[+]"), dist_B = dist_u("\u25FB", "[ ]"), dist_G = (dist_u("\u25AA", "\u2022"), dist_u("\u2500", "-")), dist_H = dist_u("\u256E", "+"), ee = dist_u("\u251C", "+"), te = dist_u("\u256F", "+"), dist_y = (dist_u("\u25CF", "\u2022"), dist_u("\u25C6", "*"), dist_u("\u25B2", "!"), dist_u("\u25A0", "x"), (s)=>{
1096
- switch(s){
1125
+ const dist_V = ce(), dist_u = (t, n)=>dist_V ? t : n, le = dist_u("\u25C6", "*"), dist_L = dist_u("\u25A0", "x"), dist_W = dist_u("\u25B2", "x"), dist_C = dist_u("\u25C7", "o"), dist_o = (dist_u("\u250C", "T"), dist_u("\u2502", "|")), dist_d = dist_u("\u2514", "\u2014"), dist_k = dist_u("\u25CF", ">"), dist_P = dist_u("\u25CB", " "), dist_A = dist_u("\u25FB", "[\u2022]"), dist_T = dist_u("\u25FC", "[+]"), dist_F = dist_u("\u25FB", "[ ]"), dist_ = (dist_u("\u25AA", "\u2022"), dist_u("\u2500", "-")), me = dist_u("\u256E", "+"), de = dist_u("\u251C", "+"), pe = dist_u("\u256F", "+"), dist_w = (dist_u("\u25CF", "\u2022"), dist_u("\u25C6", "*"), dist_u("\u25B2", "!"), dist_u("\u25A0", "x"), (t)=>{
1126
+ switch(t){
1097
1127
  case "initial":
1098
1128
  case "active":
1099
- return picocolors.cyan(dist_Y);
1129
+ return picocolors.cyan(le);
1100
1130
  case "cancel":
1101
- return picocolors.red(dist_P);
1131
+ return picocolors.red(dist_L);
1102
1132
  case "error":
1103
- return picocolors.yellow(dist_V);
1133
+ return picocolors.yellow(dist_W);
1104
1134
  case "submit":
1105
- return picocolors.green(dist_M);
1135
+ return picocolors.green(dist_C);
1106
1136
  }
1107
- }), dist_E = (s)=>{
1108
- const { cursor: n, options: t, style: i } = s, r = s.maxItems ?? 1 / 0, o = Math.max(process.stdout.rows - 4, 0), c = Math.min(o, Math.max(r, 5));
1137
+ }), dist_B = (t)=>{
1138
+ const { cursor: n, options: s, style: r } = t, i = t.maxItems ?? Number.POSITIVE_INFINITY, a = Math.max(process.stdout.rows - 4, 0), c = Math.min(a, Math.max(i, 5));
1109
1139
  let l = 0;
1110
- n >= l + c - 3 ? l = Math.max(Math.min(n - c + 3, t.length - c), 0) : n < l + 2 && (l = Math.max(n - 2, 0));
1111
- const d = c < t.length && l > 0, p = c < t.length && l + c < t.length;
1112
- return t.slice(l, l + c).map((S, f, x)=>{
1113
- const g = 0 === f && d, m = f === x.length - 1 && p;
1114
- return g || m ? picocolors.dim("...") : i(S, f + l === n);
1140
+ n >= l + c - 3 ? l = Math.max(Math.min(n - c + 3, s.length - c), 0) : n < l + 2 && (l = Math.max(n - 2, 0));
1141
+ const $ = c < s.length && l > 0, p = c < s.length && l + c < s.length;
1142
+ return s.slice(l, l + c).map((M, v, x)=>{
1143
+ const j = 0 === v && $, E = v === x.length - 1 && p;
1144
+ return j || E ? picocolors.dim("...") : r(M, v + l === n);
1115
1145
  });
1116
- }, ae = (s)=>new PD({
1117
- validate: s.validate,
1118
- placeholder: s.placeholder,
1119
- defaultValue: s.defaultValue,
1120
- initialValue: s.initialValue,
1146
+ }, he = (t)=>new PD({
1147
+ validate: t.validate,
1148
+ placeholder: t.placeholder,
1149
+ defaultValue: t.defaultValue,
1150
+ initialValue: t.initialValue,
1121
1151
  render () {
1122
- const n = `${picocolors.gray(dist_a)}
1123
- ${dist_y(this.state)} ${s.message}
1124
- `, t = s.placeholder ? picocolors.inverse(s.placeholder[0]) + picocolors.dim(s.placeholder.slice(1)) : picocolors.inverse(picocolors.hidden("_")), i = this.value ? this.valueWithCursor : t;
1152
+ const n = `${picocolors.gray(dist_o)}
1153
+ ${dist_w(this.state)} ${t.message}
1154
+ `, s = t.placeholder ? picocolors.inverse(t.placeholder[0]) + picocolors.dim(t.placeholder.slice(1)) : picocolors.inverse(picocolors.hidden("_")), r = this.value ? this.valueWithCursor : s;
1125
1155
  switch(this.state){
1126
1156
  case "error":
1127
1157
  return `${n.trim()}
1128
- ${picocolors.yellow(dist_a)} ${i}
1129
- ${picocolors.yellow(dist_$)} ${picocolors.yellow(this.error)}
1158
+ ${picocolors.yellow(dist_o)} ${r}
1159
+ ${picocolors.yellow(dist_d)} ${picocolors.yellow(this.error)}
1130
1160
  `;
1131
1161
  case "submit":
1132
- return `${n}${picocolors.gray(dist_a)} ${picocolors.dim(this.value || s.placeholder)}`;
1162
+ return `${n}${picocolors.gray(dist_o)} ${picocolors.dim(this.value || t.placeholder)}`;
1133
1163
  case "cancel":
1134
- return `${n}${picocolors.gray(dist_a)} ${picocolors.strikethrough(picocolors.dim(this.value ?? ""))}${this.value?.trim() ? `
1135
- ` + picocolors.gray(dist_a) : ""}`;
1164
+ return `${n}${picocolors.gray(dist_o)} ${picocolors.strikethrough(picocolors.dim(this.value ?? ""))}${this.value?.trim() ? `
1165
+ ${picocolors.gray(dist_o)}` : ""}`;
1136
1166
  default:
1137
- return `${n}${picocolors.cyan(dist_a)} ${i}
1138
- ${picocolors.cyan(dist_$)}
1167
+ return `${n}${picocolors.cyan(dist_o)} ${r}
1168
+ ${picocolors.cyan(dist_d)}
1139
1169
  `;
1140
1170
  }
1141
1171
  }
1142
- }).prompt(), le = (s)=>{
1143
- const n = (t, i)=>{
1144
- const r = t.label ?? String(t.value);
1145
- switch(i){
1172
+ }).prompt(), ve = (t)=>{
1173
+ const n = (s, r)=>{
1174
+ const i = s.label ?? String(s.value);
1175
+ switch(r){
1146
1176
  case "selected":
1147
- return `${picocolors.dim(r)}`;
1177
+ return `${picocolors.dim(i)}`;
1148
1178
  case "active":
1149
- return `${picocolors.green(dist_I)} ${r} ${t.hint ? picocolors.dim(`(${t.hint})`) : ""}`;
1179
+ return `${picocolors.green(dist_k)} ${i} ${s.hint ? picocolors.dim(`(${s.hint})`) : ""}`;
1150
1180
  case "cancelled":
1151
- return `${picocolors.strikethrough(picocolors.dim(r))}`;
1181
+ return `${picocolors.strikethrough(picocolors.dim(i))}`;
1152
1182
  default:
1153
- return `${picocolors.dim(dist_T)} ${picocolors.dim(r)}`;
1183
+ return `${picocolors.dim(dist_P)} ${picocolors.dim(i)}`;
1154
1184
  }
1155
1185
  };
1156
- return new $D({
1157
- options: s.options,
1158
- initialValue: s.initialValue,
1186
+ return new jD({
1187
+ options: t.options,
1188
+ initialValue: t.initialValue,
1159
1189
  render () {
1160
- const t = `${picocolors.gray(dist_a)}
1161
- ${dist_y(this.state)} ${s.message}
1190
+ const s = `${picocolors.gray(dist_o)}
1191
+ ${dist_w(this.state)} ${t.message}
1162
1192
  `;
1163
1193
  switch(this.state){
1164
1194
  case "submit":
1165
- return `${t}${picocolors.gray(dist_a)} ${n(this.options[this.cursor], "selected")}`;
1195
+ return `${s}${picocolors.gray(dist_o)} ${n(this.options[this.cursor], "selected")}`;
1166
1196
  case "cancel":
1167
- return `${t}${picocolors.gray(dist_a)} ${n(this.options[this.cursor], "cancelled")}
1168
- ${picocolors.gray(dist_a)}`;
1197
+ return `${s}${picocolors.gray(dist_o)} ${n(this.options[this.cursor], "cancelled")}
1198
+ ${picocolors.gray(dist_o)}`;
1169
1199
  default:
1170
- return `${t}${picocolors.cyan(dist_a)} ${dist_E({
1200
+ return `${s}${picocolors.cyan(dist_o)} ${dist_B({
1171
1201
  cursor: this.cursor,
1172
1202
  options: this.options,
1173
- maxItems: s.maxItems,
1174
- style: (i, r)=>n(i, r ? "active" : "inactive")
1203
+ maxItems: t.maxItems,
1204
+ style: (r, i)=>n(r, i ? "active" : "inactive")
1175
1205
  }).join(`
1176
- ${picocolors.cyan(dist_a)} `)}
1177
- ${picocolors.cyan(dist_$)}
1206
+ ${picocolors.cyan(dist_o)} `)}
1207
+ ${picocolors.cyan(dist_d)}
1178
1208
  `;
1179
1209
  }
1180
1210
  }
1181
1211
  }).prompt();
1182
- }, $e = (s)=>{
1183
- const n = (t, i)=>{
1184
- const r = t.label ?? String(t.value);
1185
- return "active" === i ? `${picocolors.cyan(dist_j)} ${r} ${t.hint ? picocolors.dim(`(${t.hint})`) : ""}` : "selected" === i ? `${picocolors.green(prompts_dist_b)} ${picocolors.dim(r)}` : "cancelled" === i ? `${picocolors.strikethrough(picocolors.dim(r))}` : "active-selected" === i ? `${picocolors.green(prompts_dist_b)} ${r} ${t.hint ? picocolors.dim(`(${t.hint})`) : ""}` : "submitted" === i ? `${picocolors.dim(r)}` : `${picocolors.dim(dist_B)} ${picocolors.dim(r)}`;
1212
+ }, fe = (t)=>{
1213
+ const n = (s, r)=>{
1214
+ const i = s.label ?? String(s.value);
1215
+ return "active" === r ? `${picocolors.cyan(dist_A)} ${i} ${s.hint ? picocolors.dim(`(${s.hint})`) : ""}` : "selected" === r ? `${picocolors.green(dist_T)} ${picocolors.dim(i)}` : "cancelled" === r ? `${picocolors.strikethrough(picocolors.dim(i))}` : "active-selected" === r ? `${picocolors.green(dist_T)} ${i} ${s.hint ? picocolors.dim(`(${s.hint})`) : ""}` : "submitted" === r ? `${picocolors.dim(i)}` : `${picocolors.dim(dist_F)} ${picocolors.dim(i)}`;
1186
1216
  };
1187
- return new vD({
1188
- options: s.options,
1189
- initialValues: s.initialValues,
1190
- required: s.required ?? !0,
1191
- cursorAt: s.cursorAt,
1192
- validate (t) {
1193
- if (this.required && 0 === t.length) return `Please select at least one option.
1217
+ return new wD({
1218
+ options: t.options,
1219
+ initialValues: t.initialValues,
1220
+ required: t.required ?? !0,
1221
+ cursorAt: t.cursorAt,
1222
+ validate (s) {
1223
+ if (this.required && 0 === s.length) return `Please select at least one option.
1194
1224
  ${picocolors.reset(picocolors.dim(`Press ${picocolors.gray(picocolors.bgWhite(picocolors.inverse(" space ")))} to select, ${picocolors.gray(picocolors.bgWhite(picocolors.inverse(" enter ")))} to submit`))}`;
1195
1225
  },
1196
1226
  render () {
1197
- let t = `${picocolors.gray(dist_a)}
1198
- ${dist_y(this.state)} ${s.message}
1199
- `;
1200
- const i = (r, o)=>{
1201
- const c = this.value.includes(r.value);
1202
- return o && c ? n(r, "active-selected") : c ? n(r, "selected") : n(r, o ? "active" : "inactive");
1227
+ const s = `${picocolors.gray(dist_o)}
1228
+ ${dist_w(this.state)} ${t.message}
1229
+ `, r = (i, a)=>{
1230
+ const c = this.value.includes(i.value);
1231
+ return a && c ? n(i, "active-selected") : c ? n(i, "selected") : n(i, a ? "active" : "inactive");
1203
1232
  };
1204
1233
  switch(this.state){
1205
1234
  case "submit":
1206
- return `${t}${picocolors.gray(dist_a)} ${this.options.filter(({ value: r })=>this.value.includes(r)).map((r)=>n(r, "submitted")).join(picocolors.dim(", ")) || picocolors.dim("none")}`;
1235
+ return `${s}${picocolors.gray(dist_o)} ${this.options.filter(({ value: i })=>this.value.includes(i)).map((i)=>n(i, "submitted")).join(picocolors.dim(", ")) || picocolors.dim("none")}`;
1207
1236
  case "cancel":
1208
1237
  {
1209
- const r = this.options.filter(({ value: o })=>this.value.includes(o)).map((o)=>n(o, "cancelled")).join(picocolors.dim(", "));
1210
- return `${t}${picocolors.gray(dist_a)} ${r.trim() ? `${r}
1211
- ${picocolors.gray(dist_a)}` : ""}`;
1238
+ const i = this.options.filter(({ value: a })=>this.value.includes(a)).map((a)=>n(a, "cancelled")).join(picocolors.dim(", "));
1239
+ return `${s}${picocolors.gray(dist_o)} ${i.trim() ? `${i}
1240
+ ${picocolors.gray(dist_o)}` : ""}`;
1212
1241
  }
1213
1242
  case "error":
1214
1243
  {
1215
- const r = this.error.split(`
1216
- `).map((o, c)=>0 === c ? `${picocolors.yellow(dist_$)} ${picocolors.yellow(o)}` : ` ${o}`).join(`
1244
+ const i = this.error.split(`
1245
+ `).map((a, c)=>0 === c ? `${picocolors.yellow(dist_d)} ${picocolors.yellow(a)}` : ` ${a}`).join(`
1217
1246
  `);
1218
- return t + picocolors.yellow(dist_a) + " " + dist_E({
1247
+ return `${s + picocolors.yellow(dist_o)} ${dist_B({
1219
1248
  options: this.options,
1220
1249
  cursor: this.cursor,
1221
- maxItems: s.maxItems,
1222
- style: i
1250
+ maxItems: t.maxItems,
1251
+ style: r
1223
1252
  }).join(`
1224
- ${picocolors.yellow(dist_a)} `) + `
1225
- ` + r + `
1253
+ ${picocolors.yellow(dist_o)} `)}
1254
+ ${i}
1226
1255
  `;
1227
1256
  }
1228
1257
  default:
1229
- return `${t}${picocolors.cyan(dist_a)} ${dist_E({
1258
+ return `${s}${picocolors.cyan(dist_o)} ${dist_B({
1230
1259
  options: this.options,
1231
1260
  cursor: this.cursor,
1232
- maxItems: s.maxItems,
1233
- style: i
1261
+ maxItems: t.maxItems,
1262
+ style: r
1234
1263
  }).join(`
1235
- ${picocolors.cyan(dist_a)} `)}
1236
- ${picocolors.cyan(dist_$)}
1264
+ ${picocolors.cyan(dist_o)} `)}
1265
+ ${picocolors.cyan(dist_d)}
1237
1266
  `;
1238
1267
  }
1239
1268
  }
1240
1269
  }).prompt();
1241
- }, dist_R = (s)=>s.replace(ye(), ""), me = (s = "", n = "")=>{
1242
- const t = `
1243
- ${s}
1270
+ }, Me = (t = "", n = "")=>{
1271
+ const s = `
1272
+ ${t}
1244
1273
  `.split(`
1245
- `), i = dist_R(n).length, r = Math.max(t.reduce((c, l)=>(l = dist_R(l), l.length > c ? l.length : c), 0), i) + 2, o = t.map((c)=>`${picocolors.gray(dist_a)} ${picocolors.dim(c)}${" ".repeat(r - dist_R(c).length)}${picocolors.gray(dist_a)}`).join(`
1274
+ `), r = (0, __WEBPACK_EXTERNAL_MODULE_node_util_1b29d436__.stripVTControlCharacters)(n).length, i = Math.max(s.reduce((c, l)=>{
1275
+ const $ = (0, __WEBPACK_EXTERNAL_MODULE_node_util_1b29d436__.stripVTControlCharacters)(l);
1276
+ return $.length > c ? $.length : c;
1277
+ }, 0), r) + 2, a = s.map((c)=>`${picocolors.gray(dist_o)} ${picocolors.dim(c)}${" ".repeat(i - (0, __WEBPACK_EXTERNAL_MODULE_node_util_1b29d436__.stripVTControlCharacters)(c).length)}${picocolors.gray(dist_o)}`).join(`
1246
1278
  `);
1247
- process.stdout.write(`${picocolors.gray(dist_a)}
1248
- ${picocolors.green(dist_M)} ${picocolors.reset(n)} ${picocolors.gray(dist_G.repeat(Math.max(r - i - 1, 1)) + dist_H)}
1249
- ${o}
1250
- ${picocolors.gray(ee + dist_G.repeat(r + 2) + te)}
1279
+ process.stdout.write(`${picocolors.gray(dist_o)}
1280
+ ${picocolors.green(dist_C)} ${picocolors.reset(n)} ${picocolors.gray(dist_.repeat(Math.max(i - r - 1, 1)) + me)}
1281
+ ${a}
1282
+ ${picocolors.gray(de + dist_.repeat(i + 2) + pe)}
1251
1283
  `);
1252
- }, he = (s = "")=>{
1253
- process.stdout.write(`${picocolors.gray(dist_$)} ${picocolors.red(s)}
1284
+ }, xe = (t = "")=>{
1285
+ process.stdout.write(`${picocolors.gray(dist_d)} ${picocolors.red(t)}
1254
1286
 
1255
1287
  `);
1256
- }, ge = (s = "")=>{
1257
- process.stdout.write(`${picocolors.gray(dist_a)}
1258
- ${picocolors.gray(dist_$)} ${s}
1288
+ }, Se = (t = "")=>{
1289
+ process.stdout.write(`${picocolors.gray(dist_o)}
1290
+ ${picocolors.gray(dist_d)} ${t}
1259
1291
 
1260
1292
  `);
1261
1293
  };
1262
- function ye() {
1263
- const s = "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))";
1264
- return new RegExp(s, "g");
1265
- }
1294
+ picocolors.gray(dist_o);
1266
1295
  var cjs = __webpack_require__("./node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js");
1267
1296
  var cjs_default = /*#__PURE__*/ __webpack_require__.n(cjs);
1268
1297
  var minimist = __webpack_require__("./node_modules/.pnpm/minimist@1.2.8/node_modules/minimist/index.js");
@@ -1505,11 +1534,11 @@ var logger = createLogger();
1505
1534
  const src_filename = (0, __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__.fileURLToPath)(import.meta.url);
1506
1535
  const src_dirname = (0, __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.dirname)(src_filename);
1507
1536
  function cancelAndExit() {
1508
- he('Operation cancelled.');
1537
+ xe('Operation cancelled.');
1509
1538
  process.exit(0);
1510
1539
  }
1511
1540
  function checkCancel(value) {
1512
- if (lD(value)) cancelAndExit();
1541
+ if (BD(value)) cancelAndExit();
1513
1542
  return value;
1514
1543
  }
1515
1544
  function formatProjectName(input) {
@@ -1554,7 +1583,7 @@ async function getTools({ tools, dir, template }) {
1554
1583
  tools
1555
1584
  ];
1556
1585
  if (dir && template) return [];
1557
- return checkCancel(await $e({
1586
+ return checkCancel(await fe({
1558
1587
  message: 'Select additional tools (Use <space> to select, <enter> to continue)',
1559
1588
  options: [
1560
1589
  {
@@ -1595,7 +1624,7 @@ async function create({ name, root, templates, skipFiles, getTemplateName, mapES
1595
1624
  const pkgManager = pkgInfo ? pkgInfo.name : 'npm';
1596
1625
  const packageJsonPath = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].join(root, 'package.json');
1597
1626
  if (!version) version = JSON.parse(await __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__["default"].promises.readFile(packageJsonPath, 'utf-8')).version;
1598
- const projectName = argv.dir ?? checkCancel(await ae({
1627
+ const projectName = argv.dir ?? checkCancel(await he({
1599
1628
  message: 'Project name or path',
1600
1629
  placeholder: `${name}-project`,
1601
1630
  defaultValue: `${name}-project`,
@@ -1606,7 +1635,7 @@ async function create({ name, root, templates, skipFiles, getTemplateName, mapES
1606
1635
  const { targetDir, packageName } = formatProjectName(projectName);
1607
1636
  const distFolder = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].isAbsolute(targetDir) ? targetDir : __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].join(cwd, targetDir);
1608
1637
  if (!argv.override && __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__["default"].existsSync(distFolder) && !isEmptyDir(distFolder)) {
1609
- const option = checkCancel(await le({
1638
+ const option = checkCancel(await ve({
1610
1639
  message: `"${targetDir}" is not empty, please choose:`,
1611
1640
  options: [
1612
1641
  {
@@ -1662,12 +1691,13 @@ async function create({ name, root, templates, skipFiles, getTemplateName, mapES
1662
1691
  });
1663
1692
  }
1664
1693
  const nextSteps = [
1665
- `cd ${targetDir}`,
1666
- `${pkgManager} install`,
1667
- `${pkgManager} run dev`
1694
+ `1. ${picocolors_default().cyan(`cd ${targetDir}`)}`,
1695
+ `2. ${picocolors_default().cyan('git init')} ${picocolors_default().dim('(optional)')}`,
1696
+ `3. ${picocolors_default().cyan(`${pkgManager} install`)}`,
1697
+ `4. ${picocolors_default().cyan(`${pkgManager} run dev`)}`
1668
1698
  ];
1669
- me(nextSteps.join('\n'), 'Next steps');
1670
- ge('Done.');
1699
+ Me(nextSteps.map((step)=>picocolors_default().reset(step)).join('\n'), 'Next steps');
1700
+ Se('All set, happy coding!');
1671
1701
  }
1672
1702
  function sortObjectKeys(obj) {
1673
1703
  const sortedKeys = Object.keys(obj).sort();
@@ -1742,4 +1772,4 @@ const updatePackageJson = (pkgJsonPath, version, name)=>{
1742
1772
  if (name && '.' !== name) pkg.name = name;
1743
1773
  __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__["default"].writeFileSync(pkgJsonPath, `${JSON.stringify(pkg, null, 2)}\n`);
1744
1774
  };
1745
- export { checkCancel, copyFolder, create, mergePackageJson, $e as multiselect, le as select, ae as text };
1775
+ export { checkCancel, copyFolder, create, mergePackageJson, fe as multiselect, ve as select, he as text };