dwkim 0.0.21 → 0.1.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.mjs CHANGED
@@ -1,18 +1,1729 @@
1
- #!/usr/bin/env node
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __esm = (fn, res) => function __init() {
8
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
9
+ };
10
+ var __commonJS = (cb, mod) => function __require() {
11
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from))
16
+ if (!__hasOwnProp.call(to, key) && key !== except)
17
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
+ }
19
+ return to;
20
+ };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
2
29
 
3
- // src/index.ts
4
- function multiply(a, b) {
5
- return a * b;
30
+ // node_modules/.pnpm/ansi-regex@6.1.0/node_modules/ansi-regex/index.js
31
+ function ansiRegex({ onlyFirst = false } = {}) {
32
+ const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
33
+ const pattern = [
34
+ `[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`,
35
+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"
36
+ ].join("|");
37
+ return new RegExp(pattern, onlyFirst ? void 0 : "g");
6
38
  }
7
- function identitiy(arg) {
8
- return arg;
39
+ var init_ansi_regex = __esm({
40
+ "node_modules/.pnpm/ansi-regex@6.1.0/node_modules/ansi-regex/index.js"() {
41
+ "use strict";
42
+ }
43
+ });
44
+
45
+ // node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js
46
+ function stripAnsi(string) {
47
+ if (typeof string !== "string") {
48
+ throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
49
+ }
50
+ return string.replace(regex, "");
9
51
  }
10
- function main() {
11
- console.log("multiply 1 2", multiply(1, 2));
12
- console.log("identitiy 1", identitiy("1"));
52
+ var regex;
53
+ var init_strip_ansi = __esm({
54
+ "node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js"() {
55
+ "use strict";
56
+ init_ansi_regex();
57
+ regex = ansiRegex();
58
+ }
59
+ });
60
+
61
+ // node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/lookup.js
62
+ function isAmbiguous(x) {
63
+ return x === 161 || x === 164 || x === 167 || x === 168 || x === 170 || x === 173 || x === 174 || x >= 176 && x <= 180 || x >= 182 && x <= 186 || x >= 188 && x <= 191 || x === 198 || x === 208 || x === 215 || x === 216 || x >= 222 && x <= 225 || x === 230 || x >= 232 && x <= 234 || x === 236 || x === 237 || x === 240 || x === 242 || x === 243 || x >= 247 && x <= 250 || x === 252 || x === 254 || x === 257 || x === 273 || x === 275 || x === 283 || x === 294 || x === 295 || x === 299 || x >= 305 && x <= 307 || x === 312 || x >= 319 && x <= 322 || x === 324 || x >= 328 && x <= 331 || x === 333 || x === 338 || x === 339 || x === 358 || x === 359 || x === 363 || x === 462 || x === 464 || x === 466 || x === 468 || x === 470 || x === 472 || x === 474 || x === 476 || x === 593 || x === 609 || x === 708 || x === 711 || x >= 713 && x <= 715 || x === 717 || x === 720 || x >= 728 && x <= 731 || x === 733 || x === 735 || x >= 768 && x <= 879 || x >= 913 && x <= 929 || x >= 931 && x <= 937 || x >= 945 && x <= 961 || x >= 963 && x <= 969 || x === 1025 || x >= 1040 && x <= 1103 || x === 1105 || x === 8208 || x >= 8211 && x <= 8214 || x === 8216 || x === 8217 || x === 8220 || x === 8221 || x >= 8224 && x <= 8226 || x >= 8228 && x <= 8231 || x === 8240 || x === 8242 || x === 8243 || x === 8245 || x === 8251 || x === 8254 || x === 8308 || x === 8319 || x >= 8321 && x <= 8324 || x === 8364 || x === 8451 || x === 8453 || x === 8457 || x === 8467 || x === 8470 || x === 8481 || x === 8482 || x === 8486 || x === 8491 || x === 8531 || x === 8532 || x >= 8539 && x <= 8542 || x >= 8544 && x <= 8555 || x >= 8560 && x <= 8569 || x === 8585 || x >= 8592 && x <= 8601 || x === 8632 || x === 8633 || x === 8658 || x === 8660 || x === 8679 || x === 8704 || x === 8706 || x === 8707 || x === 8711 || x === 8712 || x === 8715 || x === 8719 || x === 8721 || x === 8725 || x === 8730 || x >= 8733 && x <= 8736 || x === 8739 || x === 8741 || x >= 8743 && x <= 8748 || x === 8750 || x >= 8756 && x <= 8759 || x === 8764 || x === 8765 || x === 8776 || x === 8780 || x === 8786 || x === 8800 || x === 8801 || x >= 8804 && x <= 8807 || x === 8810 || x === 8811 || x === 8814 || x === 8815 || x === 8834 || x === 8835 || x === 8838 || x === 8839 || x === 8853 || x === 8857 || x === 8869 || x === 8895 || x === 8978 || x >= 9312 && x <= 9449 || x >= 9451 && x <= 9547 || x >= 9552 && x <= 9587 || x >= 9600 && x <= 9615 || x >= 9618 && x <= 9621 || x === 9632 || x === 9633 || x >= 9635 && x <= 9641 || x === 9650 || x === 9651 || x === 9654 || x === 9655 || x === 9660 || x === 9661 || x === 9664 || x === 9665 || x >= 9670 && x <= 9672 || x === 9675 || x >= 9678 && x <= 9681 || x >= 9698 && x <= 9701 || x === 9711 || x === 9733 || x === 9734 || x === 9737 || x === 9742 || x === 9743 || x === 9756 || x === 9758 || x === 9792 || x === 9794 || x === 9824 || x === 9825 || x >= 9827 && x <= 9829 || x >= 9831 && x <= 9834 || x === 9836 || x === 9837 || x === 9839 || x === 9886 || x === 9887 || x === 9919 || x >= 9926 && x <= 9933 || x >= 9935 && x <= 9939 || x >= 9941 && x <= 9953 || x === 9955 || x === 9960 || x === 9961 || x >= 9963 && x <= 9969 || x === 9972 || x >= 9974 && x <= 9977 || x === 9979 || x === 9980 || x === 9982 || x === 9983 || x === 10045 || x >= 10102 && x <= 10111 || x >= 11094 && x <= 11097 || x >= 12872 && x <= 12879 || x >= 57344 && x <= 63743 || x >= 65024 && x <= 65039 || x === 65533 || x >= 127232 && x <= 127242 || x >= 127248 && x <= 127277 || x >= 127280 && x <= 127337 || x >= 127344 && x <= 127373 || x === 127375 || x === 127376 || x >= 127387 && x <= 127404 || x >= 917760 && x <= 917999 || x >= 983040 && x <= 1048573 || x >= 1048576 && x <= 1114109;
13
64
  }
14
- main();
15
- export {
16
- identitiy,
17
- multiply
18
- };
65
+ function isFullWidth(x) {
66
+ return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
67
+ }
68
+ function isWide(x) {
69
+ return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9776 && x <= 9783 || x >= 9800 && x <= 9811 || x === 9855 || x >= 9866 && x <= 9871 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12773 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x === 94192 || x === 94193 || x >= 94208 && x <= 100343 || x >= 100352 && x <= 101589 || x >= 101631 && x <= 101640 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x >= 119552 && x <= 119638 || x >= 119648 && x <= 119670 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128727 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129673 || x >= 129679 && x <= 129734 || x >= 129742 && x <= 129756 || x >= 129759 && x <= 129769 || x >= 129776 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141;
70
+ }
71
+ var init_lookup = __esm({
72
+ "node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/lookup.js"() {
73
+ "use strict";
74
+ }
75
+ });
76
+
77
+ // node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/index.js
78
+ function validate(codePoint) {
79
+ if (!Number.isSafeInteger(codePoint)) {
80
+ throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
81
+ }
82
+ }
83
+ function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
84
+ validate(codePoint);
85
+ if (isFullWidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) {
86
+ return 2;
87
+ }
88
+ return 1;
89
+ }
90
+ var init_get_east_asian_width = __esm({
91
+ "node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/index.js"() {
92
+ "use strict";
93
+ init_lookup();
94
+ }
95
+ });
96
+
97
+ // node_modules/.pnpm/emoji-regex@10.4.0/node_modules/emoji-regex/index.mjs
98
+ var emoji_regex_default;
99
+ var init_emoji_regex = __esm({
100
+ "node_modules/.pnpm/emoji-regex@10.4.0/node_modules/emoji-regex/index.mjs"() {
101
+ "use strict";
102
+ emoji_regex_default = () => {
103
+ return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
104
+ };
105
+ }
106
+ });
107
+
108
+ // node_modules/.pnpm/string-width@7.2.0/node_modules/string-width/index.js
109
+ function stringWidth(string, options = {}) {
110
+ if (typeof string !== "string" || string.length === 0) {
111
+ return 0;
112
+ }
113
+ const {
114
+ ambiguousIsNarrow = true,
115
+ countAnsiEscapeCodes = false
116
+ } = options;
117
+ if (!countAnsiEscapeCodes) {
118
+ string = stripAnsi(string);
119
+ }
120
+ if (string.length === 0) {
121
+ return 0;
122
+ }
123
+ let width = 0;
124
+ const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
125
+ for (const { segment: character } of segmenter.segment(string)) {
126
+ const codePoint = character.codePointAt(0);
127
+ if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
128
+ continue;
129
+ }
130
+ if (codePoint >= 8203 && codePoint <= 8207 || codePoint === 65279) {
131
+ continue;
132
+ }
133
+ if (codePoint >= 768 && codePoint <= 879 || codePoint >= 6832 && codePoint <= 6911 || codePoint >= 7616 && codePoint <= 7679 || codePoint >= 8400 && codePoint <= 8447 || codePoint >= 65056 && codePoint <= 65071) {
134
+ continue;
135
+ }
136
+ if (codePoint >= 55296 && codePoint <= 57343) {
137
+ continue;
138
+ }
139
+ if (codePoint >= 65024 && codePoint <= 65039) {
140
+ continue;
141
+ }
142
+ if (defaultIgnorableCodePointRegex.test(character)) {
143
+ continue;
144
+ }
145
+ if (emoji_regex_default().test(character)) {
146
+ width += 2;
147
+ continue;
148
+ }
149
+ width += eastAsianWidth(codePoint, eastAsianWidthOptions);
150
+ }
151
+ return width;
152
+ }
153
+ var segmenter, defaultIgnorableCodePointRegex;
154
+ var init_string_width = __esm({
155
+ "node_modules/.pnpm/string-width@7.2.0/node_modules/string-width/index.js"() {
156
+ "use strict";
157
+ init_strip_ansi();
158
+ init_get_east_asian_width();
159
+ init_emoji_regex();
160
+ segmenter = new Intl.Segmenter();
161
+ defaultIgnorableCodePointRegex = /^\p{Default_Ignorable_Code_Point}$/u;
162
+ }
163
+ });
164
+
165
+ // node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/vendor/ansi-styles/index.js
166
+ function assembleStyles() {
167
+ const codes = /* @__PURE__ */ new Map();
168
+ for (const [groupName, group] of Object.entries(styles)) {
169
+ for (const [styleName, style] of Object.entries(group)) {
170
+ styles[styleName] = {
171
+ open: `\x1B[${style[0]}m`,
172
+ close: `\x1B[${style[1]}m`
173
+ };
174
+ group[styleName] = styles[styleName];
175
+ codes.set(style[0], style[1]);
176
+ }
177
+ Object.defineProperty(styles, groupName, {
178
+ value: group,
179
+ enumerable: false
180
+ });
181
+ }
182
+ Object.defineProperty(styles, "codes", {
183
+ value: codes,
184
+ enumerable: false
185
+ });
186
+ styles.color.close = "\x1B[39m";
187
+ styles.bgColor.close = "\x1B[49m";
188
+ styles.color.ansi = wrapAnsi16();
189
+ styles.color.ansi256 = wrapAnsi256();
190
+ styles.color.ansi16m = wrapAnsi16m();
191
+ styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
192
+ styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
193
+ styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
194
+ Object.defineProperties(styles, {
195
+ rgbToAnsi256: {
196
+ value(red, green, blue) {
197
+ if (red === green && green === blue) {
198
+ if (red < 8) {
199
+ return 16;
200
+ }
201
+ if (red > 248) {
202
+ return 231;
203
+ }
204
+ return Math.round((red - 8) / 247 * 24) + 232;
205
+ }
206
+ return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
207
+ },
208
+ enumerable: false
209
+ },
210
+ hexToRgb: {
211
+ value(hex) {
212
+ const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
213
+ if (!matches) {
214
+ return [0, 0, 0];
215
+ }
216
+ let [colorString] = matches;
217
+ if (colorString.length === 3) {
218
+ colorString = [...colorString].map((character) => character + character).join("");
219
+ }
220
+ const integer = Number.parseInt(colorString, 16);
221
+ return [
222
+ /* eslint-disable no-bitwise */
223
+ integer >> 16 & 255,
224
+ integer >> 8 & 255,
225
+ integer & 255
226
+ /* eslint-enable no-bitwise */
227
+ ];
228
+ },
229
+ enumerable: false
230
+ },
231
+ hexToAnsi256: {
232
+ value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
233
+ enumerable: false
234
+ },
235
+ ansi256ToAnsi: {
236
+ value(code) {
237
+ if (code < 8) {
238
+ return 30 + code;
239
+ }
240
+ if (code < 16) {
241
+ return 90 + (code - 8);
242
+ }
243
+ let red;
244
+ let green;
245
+ let blue;
246
+ if (code >= 232) {
247
+ red = ((code - 232) * 10 + 8) / 255;
248
+ green = red;
249
+ blue = red;
250
+ } else {
251
+ code -= 16;
252
+ const remainder = code % 36;
253
+ red = Math.floor(code / 36) / 5;
254
+ green = Math.floor(remainder / 6) / 5;
255
+ blue = remainder % 6 / 5;
256
+ }
257
+ const value = Math.max(red, green, blue) * 2;
258
+ if (value === 0) {
259
+ return 30;
260
+ }
261
+ let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
262
+ if (value === 2) {
263
+ result += 60;
264
+ }
265
+ return result;
266
+ },
267
+ enumerable: false
268
+ },
269
+ rgbToAnsi: {
270
+ value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
271
+ enumerable: false
272
+ },
273
+ hexToAnsi: {
274
+ value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
275
+ enumerable: false
276
+ }
277
+ });
278
+ return styles;
279
+ }
280
+ var ANSI_BACKGROUND_OFFSET, wrapAnsi16, wrapAnsi256, wrapAnsi16m, styles, modifierNames, foregroundColorNames, backgroundColorNames, colorNames, ansiStyles, ansi_styles_default;
281
+ var init_ansi_styles = __esm({
282
+ "node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/vendor/ansi-styles/index.js"() {
283
+ "use strict";
284
+ ANSI_BACKGROUND_OFFSET = 10;
285
+ wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
286
+ wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
287
+ wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
288
+ styles = {
289
+ modifier: {
290
+ reset: [0, 0],
291
+ // 21 isn't widely supported and 22 does the same thing
292
+ bold: [1, 22],
293
+ dim: [2, 22],
294
+ italic: [3, 23],
295
+ underline: [4, 24],
296
+ overline: [53, 55],
297
+ inverse: [7, 27],
298
+ hidden: [8, 28],
299
+ strikethrough: [9, 29]
300
+ },
301
+ color: {
302
+ black: [30, 39],
303
+ red: [31, 39],
304
+ green: [32, 39],
305
+ yellow: [33, 39],
306
+ blue: [34, 39],
307
+ magenta: [35, 39],
308
+ cyan: [36, 39],
309
+ white: [37, 39],
310
+ // Bright color
311
+ blackBright: [90, 39],
312
+ gray: [90, 39],
313
+ // Alias of `blackBright`
314
+ grey: [90, 39],
315
+ // Alias of `blackBright`
316
+ redBright: [91, 39],
317
+ greenBright: [92, 39],
318
+ yellowBright: [93, 39],
319
+ blueBright: [94, 39],
320
+ magentaBright: [95, 39],
321
+ cyanBright: [96, 39],
322
+ whiteBright: [97, 39]
323
+ },
324
+ bgColor: {
325
+ bgBlack: [40, 49],
326
+ bgRed: [41, 49],
327
+ bgGreen: [42, 49],
328
+ bgYellow: [43, 49],
329
+ bgBlue: [44, 49],
330
+ bgMagenta: [45, 49],
331
+ bgCyan: [46, 49],
332
+ bgWhite: [47, 49],
333
+ // Bright color
334
+ bgBlackBright: [100, 49],
335
+ bgGray: [100, 49],
336
+ // Alias of `bgBlackBright`
337
+ bgGrey: [100, 49],
338
+ // Alias of `bgBlackBright`
339
+ bgRedBright: [101, 49],
340
+ bgGreenBright: [102, 49],
341
+ bgYellowBright: [103, 49],
342
+ bgBlueBright: [104, 49],
343
+ bgMagentaBright: [105, 49],
344
+ bgCyanBright: [106, 49],
345
+ bgWhiteBright: [107, 49]
346
+ }
347
+ };
348
+ modifierNames = Object.keys(styles.modifier);
349
+ foregroundColorNames = Object.keys(styles.color);
350
+ backgroundColorNames = Object.keys(styles.bgColor);
351
+ colorNames = [...foregroundColorNames, ...backgroundColorNames];
352
+ ansiStyles = assembleStyles();
353
+ ansi_styles_default = ansiStyles;
354
+ }
355
+ });
356
+
357
+ // node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/vendor/supports-color/index.js
358
+ import process from "process";
359
+ import os from "os";
360
+ import tty from "tty";
361
+ function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process.argv) {
362
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
363
+ const position = argv.indexOf(prefix + flag);
364
+ const terminatorPosition = argv.indexOf("--");
365
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
366
+ }
367
+ function envForceColor() {
368
+ if ("FORCE_COLOR" in env) {
369
+ if (env.FORCE_COLOR === "true") {
370
+ return 1;
371
+ }
372
+ if (env.FORCE_COLOR === "false") {
373
+ return 0;
374
+ }
375
+ return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
376
+ }
377
+ }
378
+ function translateLevel(level) {
379
+ if (level === 0) {
380
+ return false;
381
+ }
382
+ return {
383
+ level,
384
+ hasBasic: true,
385
+ has256: level >= 2,
386
+ has16m: level >= 3
387
+ };
388
+ }
389
+ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
390
+ const noFlagForceColor = envForceColor();
391
+ if (noFlagForceColor !== void 0) {
392
+ flagForceColor = noFlagForceColor;
393
+ }
394
+ const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
395
+ if (forceColor === 0) {
396
+ return 0;
397
+ }
398
+ if (sniffFlags) {
399
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
400
+ return 3;
401
+ }
402
+ if (hasFlag("color=256")) {
403
+ return 2;
404
+ }
405
+ }
406
+ if ("TF_BUILD" in env && "AGENT_NAME" in env) {
407
+ return 1;
408
+ }
409
+ if (haveStream && !streamIsTTY && forceColor === void 0) {
410
+ return 0;
411
+ }
412
+ const min = forceColor || 0;
413
+ if (env.TERM === "dumb") {
414
+ return min;
415
+ }
416
+ if (process.platform === "win32") {
417
+ const osRelease = os.release().split(".");
418
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
419
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
420
+ }
421
+ return 1;
422
+ }
423
+ if ("CI" in env) {
424
+ if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env)) {
425
+ return 3;
426
+ }
427
+ if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
428
+ return 1;
429
+ }
430
+ return min;
431
+ }
432
+ if ("TEAMCITY_VERSION" in env) {
433
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
434
+ }
435
+ if (env.COLORTERM === "truecolor") {
436
+ return 3;
437
+ }
438
+ if (env.TERM === "xterm-kitty") {
439
+ return 3;
440
+ }
441
+ if ("TERM_PROGRAM" in env) {
442
+ const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
443
+ switch (env.TERM_PROGRAM) {
444
+ case "iTerm.app": {
445
+ return version >= 3 ? 3 : 2;
446
+ }
447
+ case "Apple_Terminal": {
448
+ return 2;
449
+ }
450
+ }
451
+ }
452
+ if (/-256(color)?$/i.test(env.TERM)) {
453
+ return 2;
454
+ }
455
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
456
+ return 1;
457
+ }
458
+ if ("COLORTERM" in env) {
459
+ return 1;
460
+ }
461
+ return min;
462
+ }
463
+ function createSupportsColor(stream, options = {}) {
464
+ const level = _supportsColor(stream, {
465
+ streamIsTTY: stream && stream.isTTY,
466
+ ...options
467
+ });
468
+ return translateLevel(level);
469
+ }
470
+ var env, flagForceColor, supportsColor, supports_color_default;
471
+ var init_supports_color = __esm({
472
+ "node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/vendor/supports-color/index.js"() {
473
+ "use strict";
474
+ ({ env } = process);
475
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
476
+ flagForceColor = 0;
477
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
478
+ flagForceColor = 1;
479
+ }
480
+ supportsColor = {
481
+ stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
482
+ stderr: createSupportsColor({ isTTY: tty.isatty(2) })
483
+ };
484
+ supports_color_default = supportsColor;
485
+ }
486
+ });
487
+
488
+ // node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/utilities.js
489
+ function stringReplaceAll(string, substring, replacer) {
490
+ let index = string.indexOf(substring);
491
+ if (index === -1) {
492
+ return string;
493
+ }
494
+ const substringLength = substring.length;
495
+ let endIndex = 0;
496
+ let returnValue = "";
497
+ do {
498
+ returnValue += string.slice(endIndex, index) + substring + replacer;
499
+ endIndex = index + substringLength;
500
+ index = string.indexOf(substring, endIndex);
501
+ } while (index !== -1);
502
+ returnValue += string.slice(endIndex);
503
+ return returnValue;
504
+ }
505
+ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
506
+ let endIndex = 0;
507
+ let returnValue = "";
508
+ do {
509
+ const gotCR = string[index - 1] === "\r";
510
+ returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
511
+ endIndex = index + 1;
512
+ index = string.indexOf("\n", endIndex);
513
+ } while (index !== -1);
514
+ returnValue += string.slice(endIndex);
515
+ return returnValue;
516
+ }
517
+ var init_utilities = __esm({
518
+ "node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/utilities.js"() {
519
+ "use strict";
520
+ }
521
+ });
522
+
523
+ // node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/index.js
524
+ function createChalk(options) {
525
+ return chalkFactory(options);
526
+ }
527
+ var stdoutColor, stderrColor, GENERATOR, STYLER, IS_EMPTY, levelMapping, styles2, applyOptions, chalkFactory, getModelAnsi, usedModels, proto, createStyler, createBuilder, applyStyle, chalk, chalkStderr, source_default;
528
+ var init_source = __esm({
529
+ "node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/index.js"() {
530
+ "use strict";
531
+ init_ansi_styles();
532
+ init_supports_color();
533
+ init_utilities();
534
+ ({ stdout: stdoutColor, stderr: stderrColor } = supports_color_default);
535
+ GENERATOR = Symbol("GENERATOR");
536
+ STYLER = Symbol("STYLER");
537
+ IS_EMPTY = Symbol("IS_EMPTY");
538
+ levelMapping = [
539
+ "ansi",
540
+ "ansi",
541
+ "ansi256",
542
+ "ansi16m"
543
+ ];
544
+ styles2 = /* @__PURE__ */ Object.create(null);
545
+ applyOptions = (object, options = {}) => {
546
+ if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
547
+ throw new Error("The `level` option should be an integer from 0 to 3");
548
+ }
549
+ const colorLevel = stdoutColor ? stdoutColor.level : 0;
550
+ object.level = options.level === void 0 ? colorLevel : options.level;
551
+ };
552
+ chalkFactory = (options) => {
553
+ const chalk2 = (...strings) => strings.join(" ");
554
+ applyOptions(chalk2, options);
555
+ Object.setPrototypeOf(chalk2, createChalk.prototype);
556
+ return chalk2;
557
+ };
558
+ Object.setPrototypeOf(createChalk.prototype, Function.prototype);
559
+ for (const [styleName, style] of Object.entries(ansi_styles_default)) {
560
+ styles2[styleName] = {
561
+ get() {
562
+ const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
563
+ Object.defineProperty(this, styleName, { value: builder });
564
+ return builder;
565
+ }
566
+ };
567
+ }
568
+ styles2.visible = {
569
+ get() {
570
+ const builder = createBuilder(this, this[STYLER], true);
571
+ Object.defineProperty(this, "visible", { value: builder });
572
+ return builder;
573
+ }
574
+ };
575
+ getModelAnsi = (model, level, type, ...arguments_) => {
576
+ if (model === "rgb") {
577
+ if (level === "ansi16m") {
578
+ return ansi_styles_default[type].ansi16m(...arguments_);
579
+ }
580
+ if (level === "ansi256") {
581
+ return ansi_styles_default[type].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_));
582
+ }
583
+ return ansi_styles_default[type].ansi(ansi_styles_default.rgbToAnsi(...arguments_));
584
+ }
585
+ if (model === "hex") {
586
+ return getModelAnsi("rgb", level, type, ...ansi_styles_default.hexToRgb(...arguments_));
587
+ }
588
+ return ansi_styles_default[type][model](...arguments_);
589
+ };
590
+ usedModels = ["rgb", "hex", "ansi256"];
591
+ for (const model of usedModels) {
592
+ styles2[model] = {
593
+ get() {
594
+ const { level } = this;
595
+ return function(...arguments_) {
596
+ const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]);
597
+ return createBuilder(this, styler, this[IS_EMPTY]);
598
+ };
599
+ }
600
+ };
601
+ const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
602
+ styles2[bgModel] = {
603
+ get() {
604
+ const { level } = this;
605
+ return function(...arguments_) {
606
+ const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]);
607
+ return createBuilder(this, styler, this[IS_EMPTY]);
608
+ };
609
+ }
610
+ };
611
+ }
612
+ proto = Object.defineProperties(() => {
613
+ }, {
614
+ ...styles2,
615
+ level: {
616
+ enumerable: true,
617
+ get() {
618
+ return this[GENERATOR].level;
619
+ },
620
+ set(level) {
621
+ this[GENERATOR].level = level;
622
+ }
623
+ }
624
+ });
625
+ createStyler = (open, close, parent) => {
626
+ let openAll;
627
+ let closeAll;
628
+ if (parent === void 0) {
629
+ openAll = open;
630
+ closeAll = close;
631
+ } else {
632
+ openAll = parent.openAll + open;
633
+ closeAll = close + parent.closeAll;
634
+ }
635
+ return {
636
+ open,
637
+ close,
638
+ openAll,
639
+ closeAll,
640
+ parent
641
+ };
642
+ };
643
+ createBuilder = (self, _styler, _isEmpty) => {
644
+ const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
645
+ Object.setPrototypeOf(builder, proto);
646
+ builder[GENERATOR] = self;
647
+ builder[STYLER] = _styler;
648
+ builder[IS_EMPTY] = _isEmpty;
649
+ return builder;
650
+ };
651
+ applyStyle = (self, string) => {
652
+ if (self.level <= 0 || !string) {
653
+ return self[IS_EMPTY] ? "" : string;
654
+ }
655
+ let styler = self[STYLER];
656
+ if (styler === void 0) {
657
+ return string;
658
+ }
659
+ const { openAll, closeAll } = styler;
660
+ if (string.includes("\x1B")) {
661
+ while (styler !== void 0) {
662
+ string = stringReplaceAll(string, styler.close, styler.open);
663
+ styler = styler.parent;
664
+ }
665
+ }
666
+ const lfIndex = string.indexOf("\n");
667
+ if (lfIndex !== -1) {
668
+ string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
669
+ }
670
+ return openAll + string + closeAll;
671
+ };
672
+ Object.defineProperties(createChalk.prototype, styles2);
673
+ chalk = createChalk();
674
+ chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
675
+ source_default = chalk;
676
+ }
677
+ });
678
+
679
+ // node_modules/.pnpm/widest-line@5.0.0/node_modules/widest-line/index.js
680
+ function widestLine(string) {
681
+ let lineWidth = 0;
682
+ for (const line of string.split("\n")) {
683
+ lineWidth = Math.max(lineWidth, stringWidth(line));
684
+ }
685
+ return lineWidth;
686
+ }
687
+ var init_widest_line = __esm({
688
+ "node_modules/.pnpm/widest-line@5.0.0/node_modules/widest-line/index.js"() {
689
+ "use strict";
690
+ init_string_width();
691
+ }
692
+ });
693
+
694
+ // node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/boxes.json
695
+ var require_boxes = __commonJS({
696
+ "node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/boxes.json"(exports, module) {
697
+ module.exports = {
698
+ single: {
699
+ topLeft: "\u250C",
700
+ top: "\u2500",
701
+ topRight: "\u2510",
702
+ right: "\u2502",
703
+ bottomRight: "\u2518",
704
+ bottom: "\u2500",
705
+ bottomLeft: "\u2514",
706
+ left: "\u2502"
707
+ },
708
+ double: {
709
+ topLeft: "\u2554",
710
+ top: "\u2550",
711
+ topRight: "\u2557",
712
+ right: "\u2551",
713
+ bottomRight: "\u255D",
714
+ bottom: "\u2550",
715
+ bottomLeft: "\u255A",
716
+ left: "\u2551"
717
+ },
718
+ round: {
719
+ topLeft: "\u256D",
720
+ top: "\u2500",
721
+ topRight: "\u256E",
722
+ right: "\u2502",
723
+ bottomRight: "\u256F",
724
+ bottom: "\u2500",
725
+ bottomLeft: "\u2570",
726
+ left: "\u2502"
727
+ },
728
+ bold: {
729
+ topLeft: "\u250F",
730
+ top: "\u2501",
731
+ topRight: "\u2513",
732
+ right: "\u2503",
733
+ bottomRight: "\u251B",
734
+ bottom: "\u2501",
735
+ bottomLeft: "\u2517",
736
+ left: "\u2503"
737
+ },
738
+ singleDouble: {
739
+ topLeft: "\u2553",
740
+ top: "\u2500",
741
+ topRight: "\u2556",
742
+ right: "\u2551",
743
+ bottomRight: "\u255C",
744
+ bottom: "\u2500",
745
+ bottomLeft: "\u2559",
746
+ left: "\u2551"
747
+ },
748
+ doubleSingle: {
749
+ topLeft: "\u2552",
750
+ top: "\u2550",
751
+ topRight: "\u2555",
752
+ right: "\u2502",
753
+ bottomRight: "\u255B",
754
+ bottom: "\u2550",
755
+ bottomLeft: "\u2558",
756
+ left: "\u2502"
757
+ },
758
+ classic: {
759
+ topLeft: "+",
760
+ top: "-",
761
+ topRight: "+",
762
+ right: "|",
763
+ bottomRight: "+",
764
+ bottom: "-",
765
+ bottomLeft: "+",
766
+ left: "|"
767
+ },
768
+ arrow: {
769
+ topLeft: "\u2198",
770
+ top: "\u2193",
771
+ topRight: "\u2199",
772
+ right: "\u2190",
773
+ bottomRight: "\u2196",
774
+ bottom: "\u2191",
775
+ bottomLeft: "\u2197",
776
+ left: "\u2192"
777
+ }
778
+ };
779
+ }
780
+ });
781
+
782
+ // node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/index.js
783
+ var require_cli_boxes = __commonJS({
784
+ "node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/index.js"(exports, module) {
785
+ "use strict";
786
+ var cliBoxes2 = require_boxes();
787
+ module.exports = cliBoxes2;
788
+ module.exports.default = cliBoxes2;
789
+ }
790
+ });
791
+
792
+ // node_modules/.pnpm/camelcase@8.0.0/node_modules/camelcase/index.js
793
+ function camelCase(input, options) {
794
+ if (!(typeof input === "string" || Array.isArray(input))) {
795
+ throw new TypeError("Expected the input to be `string | string[]`");
796
+ }
797
+ options = {
798
+ pascalCase: false,
799
+ preserveConsecutiveUppercase: false,
800
+ ...options
801
+ };
802
+ if (Array.isArray(input)) {
803
+ input = input.map((x) => x.trim()).filter((x) => x.length).join("-");
804
+ } else {
805
+ input = input.trim();
806
+ }
807
+ if (input.length === 0) {
808
+ return "";
809
+ }
810
+ const toLowerCase = options.locale === false ? (string) => string.toLowerCase() : (string) => string.toLocaleLowerCase(options.locale);
811
+ const toUpperCase = options.locale === false ? (string) => string.toUpperCase() : (string) => string.toLocaleUpperCase(options.locale);
812
+ if (input.length === 1) {
813
+ if (SEPARATORS.test(input)) {
814
+ return "";
815
+ }
816
+ return options.pascalCase ? toUpperCase(input) : toLowerCase(input);
817
+ }
818
+ const hasUpperCase = input !== toLowerCase(input);
819
+ if (hasUpperCase) {
820
+ input = preserveCamelCase(input, toLowerCase, toUpperCase, options.preserveConsecutiveUppercase);
821
+ }
822
+ input = input.replace(LEADING_SEPARATORS, "");
823
+ input = options.preserveConsecutiveUppercase ? preserveConsecutiveUppercase(input, toLowerCase) : toLowerCase(input);
824
+ if (options.pascalCase) {
825
+ input = toUpperCase(input.charAt(0)) + input.slice(1);
826
+ }
827
+ return postProcess(input, toUpperCase);
828
+ }
829
+ var UPPERCASE, LOWERCASE, LEADING_CAPITAL, IDENTIFIER, SEPARATORS, LEADING_SEPARATORS, SEPARATORS_AND_IDENTIFIER, NUMBERS_AND_IDENTIFIER, preserveCamelCase, preserveConsecutiveUppercase, postProcess;
830
+ var init_camelcase = __esm({
831
+ "node_modules/.pnpm/camelcase@8.0.0/node_modules/camelcase/index.js"() {
832
+ "use strict";
833
+ UPPERCASE = /[\p{Lu}]/u;
834
+ LOWERCASE = /[\p{Ll}]/u;
835
+ LEADING_CAPITAL = /^[\p{Lu}](?![\p{Lu}])/gu;
836
+ IDENTIFIER = /([\p{Alpha}\p{N}_]|$)/u;
837
+ SEPARATORS = /[_.\- ]+/;
838
+ LEADING_SEPARATORS = new RegExp("^" + SEPARATORS.source);
839
+ SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, "gu");
840
+ NUMBERS_AND_IDENTIFIER = new RegExp("\\d+" + IDENTIFIER.source, "gu");
841
+ preserveCamelCase = (string, toLowerCase, toUpperCase, preserveConsecutiveUppercase2) => {
842
+ let isLastCharLower = false;
843
+ let isLastCharUpper = false;
844
+ let isLastLastCharUpper = false;
845
+ let isLastLastCharPreserved = false;
846
+ for (let index = 0; index < string.length; index++) {
847
+ const character = string[index];
848
+ isLastLastCharPreserved = index > 2 ? string[index - 3] === "-" : true;
849
+ if (isLastCharLower && UPPERCASE.test(character)) {
850
+ string = string.slice(0, index) + "-" + string.slice(index);
851
+ isLastCharLower = false;
852
+ isLastLastCharUpper = isLastCharUpper;
853
+ isLastCharUpper = true;
854
+ index++;
855
+ } else if (isLastCharUpper && isLastLastCharUpper && LOWERCASE.test(character) && (!isLastLastCharPreserved || preserveConsecutiveUppercase2)) {
856
+ string = string.slice(0, index - 1) + "-" + string.slice(index - 1);
857
+ isLastLastCharUpper = isLastCharUpper;
858
+ isLastCharUpper = false;
859
+ isLastCharLower = true;
860
+ } else {
861
+ isLastCharLower = toLowerCase(character) === character && toUpperCase(character) !== character;
862
+ isLastLastCharUpper = isLastCharUpper;
863
+ isLastCharUpper = toUpperCase(character) === character && toLowerCase(character) !== character;
864
+ }
865
+ }
866
+ return string;
867
+ };
868
+ preserveConsecutiveUppercase = (input, toLowerCase) => {
869
+ LEADING_CAPITAL.lastIndex = 0;
870
+ return input.replaceAll(LEADING_CAPITAL, (match) => toLowerCase(match));
871
+ };
872
+ postProcess = (input, toUpperCase) => {
873
+ SEPARATORS_AND_IDENTIFIER.lastIndex = 0;
874
+ NUMBERS_AND_IDENTIFIER.lastIndex = 0;
875
+ return input.replaceAll(NUMBERS_AND_IDENTIFIER, (match, pattern, offset) => ["_", "-"].includes(input.charAt(offset + match.length)) ? match : toUpperCase(match)).replaceAll(SEPARATORS_AND_IDENTIFIER, (_, identifier) => toUpperCase(identifier));
876
+ };
877
+ }
878
+ });
879
+
880
+ // node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js
881
+ var require_ansi_regex = __commonJS({
882
+ "node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js"(exports, module) {
883
+ "use strict";
884
+ module.exports = ({ onlyFirst = false } = {}) => {
885
+ const pattern = [
886
+ "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
887
+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
888
+ ].join("|");
889
+ return new RegExp(pattern, onlyFirst ? void 0 : "g");
890
+ };
891
+ }
892
+ });
893
+
894
+ // node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js
895
+ var require_strip_ansi = __commonJS({
896
+ "node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports, module) {
897
+ "use strict";
898
+ var ansiRegex2 = require_ansi_regex();
899
+ module.exports = (string) => typeof string === "string" ? string.replace(ansiRegex2(), "") : string;
900
+ }
901
+ });
902
+
903
+ // node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js
904
+ var require_is_fullwidth_code_point = __commonJS({
905
+ "node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js"(exports, module) {
906
+ "use strict";
907
+ var isFullwidthCodePoint = (codePoint) => {
908
+ if (Number.isNaN(codePoint)) {
909
+ return false;
910
+ }
911
+ if (codePoint >= 4352 && (codePoint <= 4447 || // Hangul Jamo
912
+ codePoint === 9001 || // LEFT-POINTING ANGLE BRACKET
913
+ codePoint === 9002 || // RIGHT-POINTING ANGLE BRACKET
914
+ // CJK Radicals Supplement .. Enclosed CJK Letters and Months
915
+ 11904 <= codePoint && codePoint <= 12871 && codePoint !== 12351 || // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
916
+ 12880 <= codePoint && codePoint <= 19903 || // CJK Unified Ideographs .. Yi Radicals
917
+ 19968 <= codePoint && codePoint <= 42182 || // Hangul Jamo Extended-A
918
+ 43360 <= codePoint && codePoint <= 43388 || // Hangul Syllables
919
+ 44032 <= codePoint && codePoint <= 55203 || // CJK Compatibility Ideographs
920
+ 63744 <= codePoint && codePoint <= 64255 || // Vertical Forms
921
+ 65040 <= codePoint && codePoint <= 65049 || // CJK Compatibility Forms .. Small Form Variants
922
+ 65072 <= codePoint && codePoint <= 65131 || // Halfwidth and Fullwidth Forms
923
+ 65281 <= codePoint && codePoint <= 65376 || 65504 <= codePoint && codePoint <= 65510 || // Kana Supplement
924
+ 110592 <= codePoint && codePoint <= 110593 || // Enclosed Ideographic Supplement
925
+ 127488 <= codePoint && codePoint <= 127569 || // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
926
+ 131072 <= codePoint && codePoint <= 262141)) {
927
+ return true;
928
+ }
929
+ return false;
930
+ };
931
+ module.exports = isFullwidthCodePoint;
932
+ module.exports.default = isFullwidthCodePoint;
933
+ }
934
+ });
935
+
936
+ // node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js
937
+ var require_emoji_regex = __commonJS({
938
+ "node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js"(exports, module) {
939
+ "use strict";
940
+ module.exports = function() {
941
+ return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\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\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])|\uD83C[\uDF3E\uDF73\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])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\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])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\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\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\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\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\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\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*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\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\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\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[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
942
+ };
943
+ }
944
+ });
945
+
946
+ // node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js
947
+ var require_string_width = __commonJS({
948
+ "node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js"(exports, module) {
949
+ "use strict";
950
+ var stripAnsi2 = require_strip_ansi();
951
+ var isFullwidthCodePoint = require_is_fullwidth_code_point();
952
+ var emojiRegex = require_emoji_regex();
953
+ var stringWidth2 = (string) => {
954
+ if (typeof string !== "string" || string.length === 0) {
955
+ return 0;
956
+ }
957
+ string = stripAnsi2(string);
958
+ if (string.length === 0) {
959
+ return 0;
960
+ }
961
+ string = string.replace(emojiRegex(), " ");
962
+ let width = 0;
963
+ for (let i = 0; i < string.length; i++) {
964
+ const code = string.codePointAt(i);
965
+ if (code <= 31 || code >= 127 && code <= 159) {
966
+ continue;
967
+ }
968
+ if (code >= 768 && code <= 879) {
969
+ continue;
970
+ }
971
+ if (code > 65535) {
972
+ i++;
973
+ }
974
+ width += isFullwidthCodePoint(code) ? 2 : 1;
975
+ }
976
+ return width;
977
+ };
978
+ module.exports = stringWidth2;
979
+ module.exports.default = stringWidth2;
980
+ }
981
+ });
982
+
983
+ // node_modules/.pnpm/ansi-align@3.0.1/node_modules/ansi-align/index.js
984
+ var require_ansi_align = __commonJS({
985
+ "node_modules/.pnpm/ansi-align@3.0.1/node_modules/ansi-align/index.js"(exports, module) {
986
+ "use strict";
987
+ var stringWidth2 = require_string_width();
988
+ function ansiAlign2(text, opts) {
989
+ if (!text) return text;
990
+ opts = opts || {};
991
+ const align = opts.align || "center";
992
+ if (align === "left") return text;
993
+ const split = opts.split || "\n";
994
+ const pad = opts.pad || " ";
995
+ const widthDiffFn = align !== "right" ? halfDiff : fullDiff;
996
+ let returnString = false;
997
+ if (!Array.isArray(text)) {
998
+ returnString = true;
999
+ text = String(text).split(split);
1000
+ }
1001
+ let width;
1002
+ let maxWidth = 0;
1003
+ text = text.map(function(str) {
1004
+ str = String(str);
1005
+ width = stringWidth2(str);
1006
+ maxWidth = Math.max(width, maxWidth);
1007
+ return {
1008
+ str,
1009
+ width
1010
+ };
1011
+ }).map(function(obj) {
1012
+ return new Array(widthDiffFn(maxWidth, obj.width) + 1).join(pad) + obj.str;
1013
+ });
1014
+ return returnString ? text.join(split) : text;
1015
+ }
1016
+ ansiAlign2.left = function left(text) {
1017
+ return ansiAlign2(text, { align: "left" });
1018
+ };
1019
+ ansiAlign2.center = function center(text) {
1020
+ return ansiAlign2(text, { align: "center" });
1021
+ };
1022
+ ansiAlign2.right = function right(text) {
1023
+ return ansiAlign2(text, { align: "right" });
1024
+ };
1025
+ module.exports = ansiAlign2;
1026
+ function halfDiff(maxWidth, curWidth) {
1027
+ return Math.floor((maxWidth - curWidth) / 2);
1028
+ }
1029
+ function fullDiff(maxWidth, curWidth) {
1030
+ return maxWidth - curWidth;
1031
+ }
1032
+ }
1033
+ });
1034
+
1035
+ // node_modules/.pnpm/ansi-styles@6.2.1/node_modules/ansi-styles/index.js
1036
+ function assembleStyles2() {
1037
+ const codes = /* @__PURE__ */ new Map();
1038
+ for (const [groupName, group] of Object.entries(styles3)) {
1039
+ for (const [styleName, style] of Object.entries(group)) {
1040
+ styles3[styleName] = {
1041
+ open: `\x1B[${style[0]}m`,
1042
+ close: `\x1B[${style[1]}m`
1043
+ };
1044
+ group[styleName] = styles3[styleName];
1045
+ codes.set(style[0], style[1]);
1046
+ }
1047
+ Object.defineProperty(styles3, groupName, {
1048
+ value: group,
1049
+ enumerable: false
1050
+ });
1051
+ }
1052
+ Object.defineProperty(styles3, "codes", {
1053
+ value: codes,
1054
+ enumerable: false
1055
+ });
1056
+ styles3.color.close = "\x1B[39m";
1057
+ styles3.bgColor.close = "\x1B[49m";
1058
+ styles3.color.ansi = wrapAnsi162();
1059
+ styles3.color.ansi256 = wrapAnsi2562();
1060
+ styles3.color.ansi16m = wrapAnsi16m2();
1061
+ styles3.bgColor.ansi = wrapAnsi162(ANSI_BACKGROUND_OFFSET2);
1062
+ styles3.bgColor.ansi256 = wrapAnsi2562(ANSI_BACKGROUND_OFFSET2);
1063
+ styles3.bgColor.ansi16m = wrapAnsi16m2(ANSI_BACKGROUND_OFFSET2);
1064
+ Object.defineProperties(styles3, {
1065
+ rgbToAnsi256: {
1066
+ value: (red, green, blue) => {
1067
+ if (red === green && green === blue) {
1068
+ if (red < 8) {
1069
+ return 16;
1070
+ }
1071
+ if (red > 248) {
1072
+ return 231;
1073
+ }
1074
+ return Math.round((red - 8) / 247 * 24) + 232;
1075
+ }
1076
+ return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
1077
+ },
1078
+ enumerable: false
1079
+ },
1080
+ hexToRgb: {
1081
+ value: (hex) => {
1082
+ const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
1083
+ if (!matches) {
1084
+ return [0, 0, 0];
1085
+ }
1086
+ let [colorString] = matches;
1087
+ if (colorString.length === 3) {
1088
+ colorString = [...colorString].map((character) => character + character).join("");
1089
+ }
1090
+ const integer = Number.parseInt(colorString, 16);
1091
+ return [
1092
+ /* eslint-disable no-bitwise */
1093
+ integer >> 16 & 255,
1094
+ integer >> 8 & 255,
1095
+ integer & 255
1096
+ /* eslint-enable no-bitwise */
1097
+ ];
1098
+ },
1099
+ enumerable: false
1100
+ },
1101
+ hexToAnsi256: {
1102
+ value: (hex) => styles3.rgbToAnsi256(...styles3.hexToRgb(hex)),
1103
+ enumerable: false
1104
+ },
1105
+ ansi256ToAnsi: {
1106
+ value: (code) => {
1107
+ if (code < 8) {
1108
+ return 30 + code;
1109
+ }
1110
+ if (code < 16) {
1111
+ return 90 + (code - 8);
1112
+ }
1113
+ let red;
1114
+ let green;
1115
+ let blue;
1116
+ if (code >= 232) {
1117
+ red = ((code - 232) * 10 + 8) / 255;
1118
+ green = red;
1119
+ blue = red;
1120
+ } else {
1121
+ code -= 16;
1122
+ const remainder = code % 36;
1123
+ red = Math.floor(code / 36) / 5;
1124
+ green = Math.floor(remainder / 6) / 5;
1125
+ blue = remainder % 6 / 5;
1126
+ }
1127
+ const value = Math.max(red, green, blue) * 2;
1128
+ if (value === 0) {
1129
+ return 30;
1130
+ }
1131
+ let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
1132
+ if (value === 2) {
1133
+ result += 60;
1134
+ }
1135
+ return result;
1136
+ },
1137
+ enumerable: false
1138
+ },
1139
+ rgbToAnsi: {
1140
+ value: (red, green, blue) => styles3.ansi256ToAnsi(styles3.rgbToAnsi256(red, green, blue)),
1141
+ enumerable: false
1142
+ },
1143
+ hexToAnsi: {
1144
+ value: (hex) => styles3.ansi256ToAnsi(styles3.hexToAnsi256(hex)),
1145
+ enumerable: false
1146
+ }
1147
+ });
1148
+ return styles3;
1149
+ }
1150
+ var ANSI_BACKGROUND_OFFSET2, wrapAnsi162, wrapAnsi2562, wrapAnsi16m2, styles3, modifierNames2, foregroundColorNames2, backgroundColorNames2, colorNames2, ansiStyles2, ansi_styles_default2;
1151
+ var init_ansi_styles2 = __esm({
1152
+ "node_modules/.pnpm/ansi-styles@6.2.1/node_modules/ansi-styles/index.js"() {
1153
+ "use strict";
1154
+ ANSI_BACKGROUND_OFFSET2 = 10;
1155
+ wrapAnsi162 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
1156
+ wrapAnsi2562 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
1157
+ wrapAnsi16m2 = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
1158
+ styles3 = {
1159
+ modifier: {
1160
+ reset: [0, 0],
1161
+ // 21 isn't widely supported and 22 does the same thing
1162
+ bold: [1, 22],
1163
+ dim: [2, 22],
1164
+ italic: [3, 23],
1165
+ underline: [4, 24],
1166
+ overline: [53, 55],
1167
+ inverse: [7, 27],
1168
+ hidden: [8, 28],
1169
+ strikethrough: [9, 29]
1170
+ },
1171
+ color: {
1172
+ black: [30, 39],
1173
+ red: [31, 39],
1174
+ green: [32, 39],
1175
+ yellow: [33, 39],
1176
+ blue: [34, 39],
1177
+ magenta: [35, 39],
1178
+ cyan: [36, 39],
1179
+ white: [37, 39],
1180
+ // Bright color
1181
+ blackBright: [90, 39],
1182
+ gray: [90, 39],
1183
+ // Alias of `blackBright`
1184
+ grey: [90, 39],
1185
+ // Alias of `blackBright`
1186
+ redBright: [91, 39],
1187
+ greenBright: [92, 39],
1188
+ yellowBright: [93, 39],
1189
+ blueBright: [94, 39],
1190
+ magentaBright: [95, 39],
1191
+ cyanBright: [96, 39],
1192
+ whiteBright: [97, 39]
1193
+ },
1194
+ bgColor: {
1195
+ bgBlack: [40, 49],
1196
+ bgRed: [41, 49],
1197
+ bgGreen: [42, 49],
1198
+ bgYellow: [43, 49],
1199
+ bgBlue: [44, 49],
1200
+ bgMagenta: [45, 49],
1201
+ bgCyan: [46, 49],
1202
+ bgWhite: [47, 49],
1203
+ // Bright color
1204
+ bgBlackBright: [100, 49],
1205
+ bgGray: [100, 49],
1206
+ // Alias of `bgBlackBright`
1207
+ bgGrey: [100, 49],
1208
+ // Alias of `bgBlackBright`
1209
+ bgRedBright: [101, 49],
1210
+ bgGreenBright: [102, 49],
1211
+ bgYellowBright: [103, 49],
1212
+ bgBlueBright: [104, 49],
1213
+ bgMagentaBright: [105, 49],
1214
+ bgCyanBright: [106, 49],
1215
+ bgWhiteBright: [107, 49]
1216
+ }
1217
+ };
1218
+ modifierNames2 = Object.keys(styles3.modifier);
1219
+ foregroundColorNames2 = Object.keys(styles3.color);
1220
+ backgroundColorNames2 = Object.keys(styles3.bgColor);
1221
+ colorNames2 = [...foregroundColorNames2, ...backgroundColorNames2];
1222
+ ansiStyles2 = assembleStyles2();
1223
+ ansi_styles_default2 = ansiStyles2;
1224
+ }
1225
+ });
1226
+
1227
+ // node_modules/.pnpm/wrap-ansi@9.0.0/node_modules/wrap-ansi/index.js
1228
+ function wrapAnsi(string, columns, options) {
1229
+ return String(string).normalize().replaceAll("\r\n", "\n").split("\n").map((line) => exec(line, columns, options)).join("\n");
1230
+ }
1231
+ var ESCAPES, END_CODE, ANSI_ESCAPE_BELL, ANSI_CSI, ANSI_OSC, ANSI_SGR_TERMINATOR, ANSI_ESCAPE_LINK, wrapAnsiCode, wrapAnsiHyperlink, wordLengths, wrapWord, stringVisibleTrimSpacesRight, exec;
1232
+ var init_wrap_ansi = __esm({
1233
+ "node_modules/.pnpm/wrap-ansi@9.0.0/node_modules/wrap-ansi/index.js"() {
1234
+ "use strict";
1235
+ init_string_width();
1236
+ init_strip_ansi();
1237
+ init_ansi_styles2();
1238
+ ESCAPES = /* @__PURE__ */ new Set([
1239
+ "\x1B",
1240
+ "\x9B"
1241
+ ]);
1242
+ END_CODE = 39;
1243
+ ANSI_ESCAPE_BELL = "\x07";
1244
+ ANSI_CSI = "[";
1245
+ ANSI_OSC = "]";
1246
+ ANSI_SGR_TERMINATOR = "m";
1247
+ ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
1248
+ wrapAnsiCode = (code) => `${ESCAPES.values().next().value}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`;
1249
+ wrapAnsiHyperlink = (url) => `${ESCAPES.values().next().value}${ANSI_ESCAPE_LINK}${url}${ANSI_ESCAPE_BELL}`;
1250
+ wordLengths = (string) => string.split(" ").map((character) => stringWidth(character));
1251
+ wrapWord = (rows, word, columns) => {
1252
+ const characters = [...word];
1253
+ let isInsideEscape = false;
1254
+ let isInsideLinkEscape = false;
1255
+ let visible = stringWidth(stripAnsi(rows.at(-1)));
1256
+ for (const [index, character] of characters.entries()) {
1257
+ const characterLength = stringWidth(character);
1258
+ if (visible + characterLength <= columns) {
1259
+ rows[rows.length - 1] += character;
1260
+ } else {
1261
+ rows.push(character);
1262
+ visible = 0;
1263
+ }
1264
+ if (ESCAPES.has(character)) {
1265
+ isInsideEscape = true;
1266
+ const ansiEscapeLinkCandidate = characters.slice(index + 1, index + 1 + ANSI_ESCAPE_LINK.length).join("");
1267
+ isInsideLinkEscape = ansiEscapeLinkCandidate === ANSI_ESCAPE_LINK;
1268
+ }
1269
+ if (isInsideEscape) {
1270
+ if (isInsideLinkEscape) {
1271
+ if (character === ANSI_ESCAPE_BELL) {
1272
+ isInsideEscape = false;
1273
+ isInsideLinkEscape = false;
1274
+ }
1275
+ } else if (character === ANSI_SGR_TERMINATOR) {
1276
+ isInsideEscape = false;
1277
+ }
1278
+ continue;
1279
+ }
1280
+ visible += characterLength;
1281
+ if (visible === columns && index < characters.length - 1) {
1282
+ rows.push("");
1283
+ visible = 0;
1284
+ }
1285
+ }
1286
+ if (!visible && rows.at(-1).length > 0 && rows.length > 1) {
1287
+ rows[rows.length - 2] += rows.pop();
1288
+ }
1289
+ };
1290
+ stringVisibleTrimSpacesRight = (string) => {
1291
+ const words = string.split(" ");
1292
+ let last = words.length;
1293
+ while (last > 0) {
1294
+ if (stringWidth(words[last - 1]) > 0) {
1295
+ break;
1296
+ }
1297
+ last--;
1298
+ }
1299
+ if (last === words.length) {
1300
+ return string;
1301
+ }
1302
+ return words.slice(0, last).join(" ") + words.slice(last).join("");
1303
+ };
1304
+ exec = (string, columns, options = {}) => {
1305
+ if (options.trim !== false && string.trim() === "") {
1306
+ return "";
1307
+ }
1308
+ let returnValue = "";
1309
+ let escapeCode;
1310
+ let escapeUrl;
1311
+ const lengths = wordLengths(string);
1312
+ let rows = [""];
1313
+ for (const [index, word] of string.split(" ").entries()) {
1314
+ if (options.trim !== false) {
1315
+ rows[rows.length - 1] = rows.at(-1).trimStart();
1316
+ }
1317
+ let rowLength = stringWidth(rows.at(-1));
1318
+ if (index !== 0) {
1319
+ if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
1320
+ rows.push("");
1321
+ rowLength = 0;
1322
+ }
1323
+ if (rowLength > 0 || options.trim === false) {
1324
+ rows[rows.length - 1] += " ";
1325
+ rowLength++;
1326
+ }
1327
+ }
1328
+ if (options.hard && lengths[index] > columns) {
1329
+ const remainingColumns = columns - rowLength;
1330
+ const breaksStartingThisLine = 1 + Math.floor((lengths[index] - remainingColumns - 1) / columns);
1331
+ const breaksStartingNextLine = Math.floor((lengths[index] - 1) / columns);
1332
+ if (breaksStartingNextLine < breaksStartingThisLine) {
1333
+ rows.push("");
1334
+ }
1335
+ wrapWord(rows, word, columns);
1336
+ continue;
1337
+ }
1338
+ if (rowLength + lengths[index] > columns && rowLength > 0 && lengths[index] > 0) {
1339
+ if (options.wordWrap === false && rowLength < columns) {
1340
+ wrapWord(rows, word, columns);
1341
+ continue;
1342
+ }
1343
+ rows.push("");
1344
+ }
1345
+ if (rowLength + lengths[index] > columns && options.wordWrap === false) {
1346
+ wrapWord(rows, word, columns);
1347
+ continue;
1348
+ }
1349
+ rows[rows.length - 1] += word;
1350
+ }
1351
+ if (options.trim !== false) {
1352
+ rows = rows.map((row) => stringVisibleTrimSpacesRight(row));
1353
+ }
1354
+ const preString = rows.join("\n");
1355
+ const pre = [...preString];
1356
+ let preStringIndex = 0;
1357
+ for (const [index, character] of pre.entries()) {
1358
+ returnValue += character;
1359
+ if (ESCAPES.has(character)) {
1360
+ const { groups } = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`).exec(preString.slice(preStringIndex)) || { groups: {} };
1361
+ if (groups.code !== void 0) {
1362
+ const code2 = Number.parseFloat(groups.code);
1363
+ escapeCode = code2 === END_CODE ? void 0 : code2;
1364
+ } else if (groups.uri !== void 0) {
1365
+ escapeUrl = groups.uri.length === 0 ? void 0 : groups.uri;
1366
+ }
1367
+ }
1368
+ const code = ansi_styles_default2.codes.get(Number(escapeCode));
1369
+ if (pre[index + 1] === "\n") {
1370
+ if (escapeUrl) {
1371
+ returnValue += wrapAnsiHyperlink("");
1372
+ }
1373
+ if (escapeCode && code) {
1374
+ returnValue += wrapAnsiCode(code);
1375
+ }
1376
+ } else if (character === "\n") {
1377
+ if (escapeCode && code) {
1378
+ returnValue += wrapAnsiCode(escapeCode);
1379
+ }
1380
+ if (escapeUrl) {
1381
+ returnValue += wrapAnsiHyperlink(escapeUrl);
1382
+ }
1383
+ }
1384
+ preStringIndex += character.length;
1385
+ }
1386
+ return returnValue;
1387
+ };
1388
+ }
1389
+ });
1390
+
1391
+ // node_modules/.pnpm/boxen@8.0.1/node_modules/boxen/index.js
1392
+ import process2 from "process";
1393
+ function boxen(text, options) {
1394
+ options = {
1395
+ padding: 0,
1396
+ borderStyle: "single",
1397
+ dimBorder: false,
1398
+ textAlignment: "left",
1399
+ float: "left",
1400
+ titleAlignment: "left",
1401
+ ...options
1402
+ };
1403
+ if (options.align) {
1404
+ options.textAlignment = options.align;
1405
+ }
1406
+ if (options.borderColor && !isColorValid(options.borderColor)) {
1407
+ throw new Error(`${options.borderColor} is not a valid borderColor`);
1408
+ }
1409
+ if (options.backgroundColor && !isColorValid(options.backgroundColor)) {
1410
+ throw new Error(`${options.backgroundColor} is not a valid backgroundColor`);
1411
+ }
1412
+ options.padding = getObject(options.padding);
1413
+ options.margin = getObject(options.margin);
1414
+ options = determineDimensions(text, options);
1415
+ text = makeContentText(text, options);
1416
+ return boxContent(text, options.width, options);
1417
+ }
1418
+ var import_cli_boxes, import_ansi_align, import_cli_boxes2, NEWLINE, PAD, NONE, terminalColumns, getObject, getBorderWidth, getBorderChars, makeTitle, makeContentText, boxContent, sanitizeOptions, formatTitle, determineDimensions, isHex, isColorValid, getColorFunction, getBGColorFunction;
1419
+ var init_boxen = __esm({
1420
+ "node_modules/.pnpm/boxen@8.0.1/node_modules/boxen/index.js"() {
1421
+ "use strict";
1422
+ init_string_width();
1423
+ init_source();
1424
+ init_widest_line();
1425
+ import_cli_boxes = __toESM(require_cli_boxes(), 1);
1426
+ init_camelcase();
1427
+ import_ansi_align = __toESM(require_ansi_align(), 1);
1428
+ init_wrap_ansi();
1429
+ import_cli_boxes2 = __toESM(require_cli_boxes(), 1);
1430
+ NEWLINE = "\n";
1431
+ PAD = " ";
1432
+ NONE = "none";
1433
+ terminalColumns = () => {
1434
+ const { env: env2, stdout, stderr } = process2;
1435
+ if (stdout?.columns) {
1436
+ return stdout.columns;
1437
+ }
1438
+ if (stderr?.columns) {
1439
+ return stderr.columns;
1440
+ }
1441
+ if (env2.COLUMNS) {
1442
+ return Number.parseInt(env2.COLUMNS, 10);
1443
+ }
1444
+ return 80;
1445
+ };
1446
+ getObject = (detail) => typeof detail === "number" ? {
1447
+ top: detail,
1448
+ right: detail * 3,
1449
+ bottom: detail,
1450
+ left: detail * 3
1451
+ } : {
1452
+ top: 0,
1453
+ right: 0,
1454
+ bottom: 0,
1455
+ left: 0,
1456
+ ...detail
1457
+ };
1458
+ getBorderWidth = (borderStyle) => borderStyle === NONE ? 0 : 2;
1459
+ getBorderChars = (borderStyle) => {
1460
+ const sides = [
1461
+ "topLeft",
1462
+ "topRight",
1463
+ "bottomRight",
1464
+ "bottomLeft",
1465
+ "left",
1466
+ "right",
1467
+ "top",
1468
+ "bottom"
1469
+ ];
1470
+ let characters;
1471
+ if (borderStyle === NONE) {
1472
+ borderStyle = {};
1473
+ for (const side of sides) {
1474
+ borderStyle[side] = "";
1475
+ }
1476
+ }
1477
+ if (typeof borderStyle === "string") {
1478
+ characters = import_cli_boxes.default[borderStyle];
1479
+ if (!characters) {
1480
+ throw new TypeError(`Invalid border style: ${borderStyle}`);
1481
+ }
1482
+ } else {
1483
+ if (typeof borderStyle?.vertical === "string") {
1484
+ borderStyle.left = borderStyle.vertical;
1485
+ borderStyle.right = borderStyle.vertical;
1486
+ }
1487
+ if (typeof borderStyle?.horizontal === "string") {
1488
+ borderStyle.top = borderStyle.horizontal;
1489
+ borderStyle.bottom = borderStyle.horizontal;
1490
+ }
1491
+ for (const side of sides) {
1492
+ if (borderStyle[side] === null || typeof borderStyle[side] !== "string") {
1493
+ throw new TypeError(`Invalid border style: ${side}`);
1494
+ }
1495
+ }
1496
+ characters = borderStyle;
1497
+ }
1498
+ return characters;
1499
+ };
1500
+ makeTitle = (text, horizontal, alignment) => {
1501
+ let title = "";
1502
+ const textWidth = stringWidth(text);
1503
+ switch (alignment) {
1504
+ case "left": {
1505
+ title = text + horizontal.slice(textWidth);
1506
+ break;
1507
+ }
1508
+ case "right": {
1509
+ title = horizontal.slice(textWidth) + text;
1510
+ break;
1511
+ }
1512
+ default: {
1513
+ horizontal = horizontal.slice(textWidth);
1514
+ if (horizontal.length % 2 === 1) {
1515
+ horizontal = horizontal.slice(Math.floor(horizontal.length / 2));
1516
+ title = horizontal.slice(1) + text + horizontal;
1517
+ } else {
1518
+ horizontal = horizontal.slice(horizontal.length / 2);
1519
+ title = horizontal + text + horizontal;
1520
+ }
1521
+ break;
1522
+ }
1523
+ }
1524
+ return title;
1525
+ };
1526
+ makeContentText = (text, { padding, width, textAlignment, height }) => {
1527
+ text = (0, import_ansi_align.default)(text, { align: textAlignment });
1528
+ let lines = text.split(NEWLINE);
1529
+ const textWidth = widestLine(text);
1530
+ const max = width - padding.left - padding.right;
1531
+ if (textWidth > max) {
1532
+ const newLines = [];
1533
+ for (const line of lines) {
1534
+ const createdLines = wrapAnsi(line, max, { hard: true });
1535
+ const alignedLines = (0, import_ansi_align.default)(createdLines, { align: textAlignment });
1536
+ const alignedLinesArray = alignedLines.split("\n");
1537
+ const longestLength = Math.max(...alignedLinesArray.map((s) => stringWidth(s)));
1538
+ for (const alignedLine of alignedLinesArray) {
1539
+ let paddedLine;
1540
+ switch (textAlignment) {
1541
+ case "center": {
1542
+ paddedLine = PAD.repeat((max - longestLength) / 2) + alignedLine;
1543
+ break;
1544
+ }
1545
+ case "right": {
1546
+ paddedLine = PAD.repeat(max - longestLength) + alignedLine;
1547
+ break;
1548
+ }
1549
+ default: {
1550
+ paddedLine = alignedLine;
1551
+ break;
1552
+ }
1553
+ }
1554
+ newLines.push(paddedLine);
1555
+ }
1556
+ }
1557
+ lines = newLines;
1558
+ }
1559
+ if (textAlignment === "center" && textWidth < max) {
1560
+ lines = lines.map((line) => PAD.repeat((max - textWidth) / 2) + line);
1561
+ } else if (textAlignment === "right" && textWidth < max) {
1562
+ lines = lines.map((line) => PAD.repeat(max - textWidth) + line);
1563
+ }
1564
+ const paddingLeft = PAD.repeat(padding.left);
1565
+ const paddingRight = PAD.repeat(padding.right);
1566
+ lines = lines.map((line) => {
1567
+ const newLine = paddingLeft + line + paddingRight;
1568
+ return newLine + PAD.repeat(width - stringWidth(newLine));
1569
+ });
1570
+ if (padding.top > 0) {
1571
+ lines = [...Array.from({ length: padding.top }).fill(PAD.repeat(width)), ...lines];
1572
+ }
1573
+ if (padding.bottom > 0) {
1574
+ lines = [...lines, ...Array.from({ length: padding.bottom }).fill(PAD.repeat(width))];
1575
+ }
1576
+ if (height && lines.length > height) {
1577
+ lines = lines.slice(0, height);
1578
+ } else if (height && lines.length < height) {
1579
+ lines = [...lines, ...Array.from({ length: height - lines.length }).fill(PAD.repeat(width))];
1580
+ }
1581
+ return lines.join(NEWLINE);
1582
+ };
1583
+ boxContent = (content, contentWidth, options) => {
1584
+ const colorizeBorder = (border) => {
1585
+ const newBorder = options.borderColor ? getColorFunction(options.borderColor)(border) : border;
1586
+ return options.dimBorder ? source_default.dim(newBorder) : newBorder;
1587
+ };
1588
+ const colorizeContent = (content2) => options.backgroundColor ? getBGColorFunction(options.backgroundColor)(content2) : content2;
1589
+ const chars = getBorderChars(options.borderStyle);
1590
+ const columns = terminalColumns();
1591
+ let marginLeft = PAD.repeat(options.margin.left);
1592
+ if (options.float === "center") {
1593
+ const marginWidth = Math.max((columns - contentWidth - getBorderWidth(options.borderStyle)) / 2, 0);
1594
+ marginLeft = PAD.repeat(marginWidth);
1595
+ } else if (options.float === "right") {
1596
+ const marginWidth = Math.max(columns - contentWidth - options.margin.right - getBorderWidth(options.borderStyle), 0);
1597
+ marginLeft = PAD.repeat(marginWidth);
1598
+ }
1599
+ let result = "";
1600
+ if (options.margin.top) {
1601
+ result += NEWLINE.repeat(options.margin.top);
1602
+ }
1603
+ if (options.borderStyle !== NONE || options.title) {
1604
+ result += colorizeBorder(marginLeft + chars.topLeft + (options.title ? makeTitle(options.title, chars.top.repeat(contentWidth), options.titleAlignment) : chars.top.repeat(contentWidth)) + chars.topRight) + NEWLINE;
1605
+ }
1606
+ const lines = content.split(NEWLINE);
1607
+ result += lines.map((line) => marginLeft + colorizeBorder(chars.left) + colorizeContent(line) + colorizeBorder(chars.right)).join(NEWLINE);
1608
+ if (options.borderStyle !== NONE) {
1609
+ result += NEWLINE + colorizeBorder(marginLeft + chars.bottomLeft + chars.bottom.repeat(contentWidth) + chars.bottomRight);
1610
+ }
1611
+ if (options.margin.bottom) {
1612
+ result += NEWLINE.repeat(options.margin.bottom);
1613
+ }
1614
+ return result;
1615
+ };
1616
+ sanitizeOptions = (options) => {
1617
+ if (options.fullscreen && process2?.stdout) {
1618
+ let newDimensions = [process2.stdout.columns, process2.stdout.rows];
1619
+ if (typeof options.fullscreen === "function") {
1620
+ newDimensions = options.fullscreen(...newDimensions);
1621
+ }
1622
+ options.width ||= newDimensions[0];
1623
+ options.height ||= newDimensions[1];
1624
+ }
1625
+ options.width &&= Math.max(1, options.width - getBorderWidth(options.borderStyle));
1626
+ options.height &&= Math.max(1, options.height - getBorderWidth(options.borderStyle));
1627
+ return options;
1628
+ };
1629
+ formatTitle = (title, borderStyle) => borderStyle === NONE ? title : ` ${title} `;
1630
+ determineDimensions = (text, options) => {
1631
+ options = sanitizeOptions(options);
1632
+ const widthOverride = options.width !== void 0;
1633
+ const columns = terminalColumns();
1634
+ const borderWidth = getBorderWidth(options.borderStyle);
1635
+ const maxWidth = columns - options.margin.left - options.margin.right - borderWidth;
1636
+ const widest = widestLine(wrapAnsi(text, columns - borderWidth, { hard: true, trim: false })) + options.padding.left + options.padding.right;
1637
+ if (options.title && widthOverride) {
1638
+ options.title = options.title.slice(0, Math.max(0, options.width - 2));
1639
+ options.title &&= formatTitle(options.title, options.borderStyle);
1640
+ } else if (options.title) {
1641
+ options.title = options.title.slice(0, Math.max(0, maxWidth - 2));
1642
+ if (options.title) {
1643
+ options.title = formatTitle(options.title, options.borderStyle);
1644
+ if (stringWidth(options.title) > widest) {
1645
+ options.width = stringWidth(options.title);
1646
+ }
1647
+ }
1648
+ }
1649
+ options.width ||= widest;
1650
+ if (!widthOverride) {
1651
+ if (options.margin.left && options.margin.right && options.width > maxWidth) {
1652
+ const spaceForMargins = columns - options.width - borderWidth;
1653
+ const multiplier = spaceForMargins / (options.margin.left + options.margin.right);
1654
+ options.margin.left = Math.max(0, Math.floor(options.margin.left * multiplier));
1655
+ options.margin.right = Math.max(0, Math.floor(options.margin.right * multiplier));
1656
+ }
1657
+ options.width = Math.min(options.width, columns - borderWidth - options.margin.left - options.margin.right);
1658
+ }
1659
+ if (options.width - (options.padding.left + options.padding.right) <= 0) {
1660
+ options.padding.left = 0;
1661
+ options.padding.right = 0;
1662
+ }
1663
+ if (options.height && options.height - (options.padding.top + options.padding.bottom) <= 0) {
1664
+ options.padding.top = 0;
1665
+ options.padding.bottom = 0;
1666
+ }
1667
+ return options;
1668
+ };
1669
+ isHex = (color) => color.match(/^#(?:[0-f]{3}){1,2}$/i);
1670
+ isColorValid = (color) => typeof color === "string" && (source_default[color] ?? isHex(color));
1671
+ getColorFunction = (color) => isHex(color) ? source_default.hex(color) : source_default[color];
1672
+ getBGColorFunction = (color) => isHex(color) ? source_default.bgHex(color) : source_default[camelCase(["bg", color])];
1673
+ }
1674
+ });
1675
+
1676
+ // src/printBio.ts
1677
+ function printBio(profile) {
1678
+ const boxenOptions = {
1679
+ padding: 1,
1680
+ margin: 0,
1681
+ borderStyle: "round",
1682
+ borderColor: "green"
1683
+ };
1684
+ const cardContent = [
1685
+ `${source_default.white.bold(profile.name)} ${source_default.gray(profile.title)}`,
1686
+ source_default.white(profile.bio),
1687
+ "",
1688
+ `${source_default.gray.greenBright("Email")} ${profile.email}`,
1689
+ `${source_default.gray.greenBright("GitHub")} ${profile.github}`,
1690
+ `${source_default.gray.greenBright("Website")} ${profile.website}`,
1691
+ "",
1692
+ source_default.white(profile.quote)
1693
+ ].join("\n");
1694
+ console.log(boxen(cardContent, boxenOptions));
1695
+ }
1696
+ var init_printBio = __esm({
1697
+ "src/printBio.ts"() {
1698
+ "use strict";
1699
+ init_boxen();
1700
+ init_source();
1701
+ }
1702
+ });
1703
+
1704
+ // src/profile.json
1705
+ var profile_default;
1706
+ var init_profile = __esm({
1707
+ "src/profile.json"() {
1708
+ profile_default = {
1709
+ id: "1",
1710
+ name: "\uAE40\uB3D9\uC6B1",
1711
+ email: "dannyworks102@gmail.com",
1712
+ title: "Frontend Engineer, BHSN.ai",
1713
+ github: "https://github.com/domuk-k",
1714
+ website: "https://domuk-k.vercel.app",
1715
+ bio: "Marathon Runner \u{1F3C3}, Opensource committer \u{1F4BB}, casual Yogi \u{1F9D8}",
1716
+ quote: "Customer Centric, Focus on what you can control"
1717
+ };
1718
+ }
1719
+ });
1720
+
1721
+ // src/index.ts
1722
+ var require_index = __commonJS({
1723
+ "src/index.ts"() {
1724
+ init_printBio();
1725
+ init_profile();
1726
+ printBio(profile_default);
1727
+ }
1728
+ });
1729
+ export default require_index();