@exem-ui/cli 0.1.0-next.20260227045820

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js ADDED
@@ -0,0 +1,1094 @@
1
+ #!/usr/bin/env node
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __commonJS = (cb, mod) => function __require() {
9
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+
28
+ // ../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
29
+ var require_src = __commonJS({
30
+ "../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js"(exports, module) {
31
+ "use strict";
32
+ var ESC = "\x1B";
33
+ var CSI = `${ESC}[`;
34
+ var beep = "\x07";
35
+ var cursor = {
36
+ to(x2, y3) {
37
+ if (!y3) return `${CSI}${x2 + 1}G`;
38
+ return `${CSI}${y3 + 1};${x2 + 1}H`;
39
+ },
40
+ move(x2, y3) {
41
+ let ret = "";
42
+ if (x2 < 0) ret += `${CSI}${-x2}D`;
43
+ else if (x2 > 0) ret += `${CSI}${x2}C`;
44
+ if (y3 < 0) ret += `${CSI}${-y3}A`;
45
+ else if (y3 > 0) ret += `${CSI}${y3}B`;
46
+ return ret;
47
+ },
48
+ up: (count = 1) => `${CSI}${count}A`,
49
+ down: (count = 1) => `${CSI}${count}B`,
50
+ forward: (count = 1) => `${CSI}${count}C`,
51
+ backward: (count = 1) => `${CSI}${count}D`,
52
+ nextLine: (count = 1) => `${CSI}E`.repeat(count),
53
+ prevLine: (count = 1) => `${CSI}F`.repeat(count),
54
+ left: `${CSI}G`,
55
+ hide: `${CSI}?25l`,
56
+ show: `${CSI}?25h`,
57
+ save: `${ESC}7`,
58
+ restore: `${ESC}8`
59
+ };
60
+ var scroll = {
61
+ up: (count = 1) => `${CSI}S`.repeat(count),
62
+ down: (count = 1) => `${CSI}T`.repeat(count)
63
+ };
64
+ var erase = {
65
+ screen: `${CSI}2J`,
66
+ up: (count = 1) => `${CSI}1J`.repeat(count),
67
+ down: (count = 1) => `${CSI}J`.repeat(count),
68
+ line: `${CSI}2K`,
69
+ lineEnd: `${CSI}K`,
70
+ lineStart: `${CSI}1K`,
71
+ lines(count) {
72
+ let clear = "";
73
+ for (let i = 0; i < count; i++)
74
+ clear += this.line + (i < count - 1 ? cursor.up() : "");
75
+ if (count)
76
+ clear += cursor.left;
77
+ return clear;
78
+ }
79
+ };
80
+ module.exports = { cursor, scroll, erase, beep };
81
+ }
82
+ });
83
+
84
+ // ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
85
+ var require_picocolors = __commonJS({
86
+ "../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js"(exports, module) {
87
+ "use strict";
88
+ var p2 = process || {};
89
+ var argv = p2.argv || [];
90
+ var env = p2.env || {};
91
+ var isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p2.platform === "win32" || (p2.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
92
+ var formatter = (open, close, replace = open) => (input) => {
93
+ let string = "" + input, index = string.indexOf(close, open.length);
94
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
95
+ };
96
+ var replaceClose = (string, close, replace, index) => {
97
+ let result = "", cursor = 0;
98
+ do {
99
+ result += string.substring(cursor, index) + replace;
100
+ cursor = index + close.length;
101
+ index = string.indexOf(close, cursor);
102
+ } while (~index);
103
+ return result + string.substring(cursor);
104
+ };
105
+ var createColors = (enabled = isColorSupported) => {
106
+ let f2 = enabled ? formatter : () => String;
107
+ return {
108
+ isColorSupported: enabled,
109
+ reset: f2("\x1B[0m", "\x1B[0m"),
110
+ bold: f2("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
111
+ dim: f2("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
112
+ italic: f2("\x1B[3m", "\x1B[23m"),
113
+ underline: f2("\x1B[4m", "\x1B[24m"),
114
+ inverse: f2("\x1B[7m", "\x1B[27m"),
115
+ hidden: f2("\x1B[8m", "\x1B[28m"),
116
+ strikethrough: f2("\x1B[9m", "\x1B[29m"),
117
+ black: f2("\x1B[30m", "\x1B[39m"),
118
+ red: f2("\x1B[31m", "\x1B[39m"),
119
+ green: f2("\x1B[32m", "\x1B[39m"),
120
+ yellow: f2("\x1B[33m", "\x1B[39m"),
121
+ blue: f2("\x1B[34m", "\x1B[39m"),
122
+ magenta: f2("\x1B[35m", "\x1B[39m"),
123
+ cyan: f2("\x1B[36m", "\x1B[39m"),
124
+ white: f2("\x1B[37m", "\x1B[39m"),
125
+ gray: f2("\x1B[90m", "\x1B[39m"),
126
+ bgBlack: f2("\x1B[40m", "\x1B[49m"),
127
+ bgRed: f2("\x1B[41m", "\x1B[49m"),
128
+ bgGreen: f2("\x1B[42m", "\x1B[49m"),
129
+ bgYellow: f2("\x1B[43m", "\x1B[49m"),
130
+ bgBlue: f2("\x1B[44m", "\x1B[49m"),
131
+ bgMagenta: f2("\x1B[45m", "\x1B[49m"),
132
+ bgCyan: f2("\x1B[46m", "\x1B[49m"),
133
+ bgWhite: f2("\x1B[47m", "\x1B[49m"),
134
+ blackBright: f2("\x1B[90m", "\x1B[39m"),
135
+ redBright: f2("\x1B[91m", "\x1B[39m"),
136
+ greenBright: f2("\x1B[92m", "\x1B[39m"),
137
+ yellowBright: f2("\x1B[93m", "\x1B[39m"),
138
+ blueBright: f2("\x1B[94m", "\x1B[39m"),
139
+ magentaBright: f2("\x1B[95m", "\x1B[39m"),
140
+ cyanBright: f2("\x1B[96m", "\x1B[39m"),
141
+ whiteBright: f2("\x1B[97m", "\x1B[39m"),
142
+ bgBlackBright: f2("\x1B[100m", "\x1B[49m"),
143
+ bgRedBright: f2("\x1B[101m", "\x1B[49m"),
144
+ bgGreenBright: f2("\x1B[102m", "\x1B[49m"),
145
+ bgYellowBright: f2("\x1B[103m", "\x1B[49m"),
146
+ bgBlueBright: f2("\x1B[104m", "\x1B[49m"),
147
+ bgMagentaBright: f2("\x1B[105m", "\x1B[49m"),
148
+ bgCyanBright: f2("\x1B[106m", "\x1B[49m"),
149
+ bgWhiteBright: f2("\x1B[107m", "\x1B[49m")
150
+ };
151
+ };
152
+ module.exports = createColors();
153
+ module.exports.createColors = createColors;
154
+ }
155
+ });
156
+
157
+ // src/commands/init.ts
158
+ import { execSync } from "child_process";
159
+
160
+ // ../../node_modules/.pnpm/@clack+prompts@0.9.1/node_modules/@clack/prompts/dist/index.mjs
161
+ import { stripVTControlCharacters as T2 } from "util";
162
+
163
+ // ../../node_modules/.pnpm/@clack+core@0.4.1/node_modules/@clack/core/dist/index.mjs
164
+ var import_sisteransi = __toESM(require_src(), 1);
165
+ import { stdin as $, stdout as j } from "process";
166
+ import * as f from "readline";
167
+ import M from "readline";
168
+ import { WriteStream as U } from "tty";
169
+ function J({ onlyFirst: t = false } = {}) {
170
+ const F = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
171
+ return new RegExp(F, t ? void 0 : "g");
172
+ }
173
+ var Q = J();
174
+ function T(t) {
175
+ if (typeof t != "string") throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);
176
+ return t.replace(Q, "");
177
+ }
178
+ function O(t) {
179
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
180
+ }
181
+ var P = { exports: {} };
182
+ (function(t) {
183
+ var u2 = {};
184
+ t.exports = u2, u2.eastAsianWidth = function(e2) {
185
+ var s = e2.charCodeAt(0), i = e2.length == 2 ? e2.charCodeAt(1) : 0, D = s;
186
+ return 55296 <= s && s <= 56319 && 56320 <= i && i <= 57343 && (s &= 1023, i &= 1023, D = s << 10 | i, D += 65536), D == 12288 || 65281 <= D && D <= 65376 || 65504 <= D && D <= 65510 ? "F" : D == 8361 || 65377 <= D && D <= 65470 || 65474 <= D && D <= 65479 || 65482 <= D && D <= 65487 || 65490 <= D && D <= 65495 || 65498 <= D && D <= 65500 || 65512 <= D && D <= 65518 ? "H" : 4352 <= D && D <= 4447 || 4515 <= D && D <= 4519 || 4602 <= D && D <= 4607 || 9001 <= D && D <= 9002 || 11904 <= D && D <= 11929 || 11931 <= D && D <= 12019 || 12032 <= D && D <= 12245 || 12272 <= D && D <= 12283 || 12289 <= D && D <= 12350 || 12353 <= D && D <= 12438 || 12441 <= D && D <= 12543 || 12549 <= D && D <= 12589 || 12593 <= D && D <= 12686 || 12688 <= D && D <= 12730 || 12736 <= D && D <= 12771 || 12784 <= D && D <= 12830 || 12832 <= D && D <= 12871 || 12880 <= D && D <= 13054 || 13056 <= D && D <= 19903 || 19968 <= D && D <= 42124 || 42128 <= D && D <= 42182 || 43360 <= D && D <= 43388 || 44032 <= D && D <= 55203 || 55216 <= D && D <= 55238 || 55243 <= D && D <= 55291 || 63744 <= D && D <= 64255 || 65040 <= D && D <= 65049 || 65072 <= D && D <= 65106 || 65108 <= D && D <= 65126 || 65128 <= D && D <= 65131 || 110592 <= D && D <= 110593 || 127488 <= D && D <= 127490 || 127504 <= D && D <= 127546 || 127552 <= D && D <= 127560 || 127568 <= D && D <= 127569 || 131072 <= D && D <= 194367 || 177984 <= D && D <= 196605 || 196608 <= D && D <= 262141 ? "W" : 32 <= D && D <= 126 || 162 <= D && D <= 163 || 165 <= D && D <= 166 || D == 172 || D == 175 || 10214 <= D && D <= 10221 || 10629 <= D && D <= 10630 ? "Na" : D == 161 || D == 164 || 167 <= D && D <= 168 || D == 170 || 173 <= D && D <= 174 || 176 <= D && D <= 180 || 182 <= D && D <= 186 || 188 <= D && D <= 191 || D == 198 || D == 208 || 215 <= D && D <= 216 || 222 <= D && D <= 225 || D == 230 || 232 <= D && D <= 234 || 236 <= D && D <= 237 || D == 240 || 242 <= D && D <= 243 || 247 <= D && D <= 250 || D == 252 || D == 254 || D == 257 || D == 273 || D == 275 || D == 283 || 294 <= D && D <= 295 || D == 299 || 305 <= D && D <= 307 || D == 312 || 319 <= D && D <= 322 || D == 324 || 328 <= D && D <= 331 || D == 333 || 338 <= D && D <= 339 || 358 <= D && D <= 359 || D == 363 || D == 462 || D == 464 || D == 466 || D == 468 || D == 470 || D == 472 || D == 474 || D == 476 || D == 593 || D == 609 || D == 708 || D == 711 || 713 <= D && D <= 715 || D == 717 || D == 720 || 728 <= D && D <= 731 || D == 733 || D == 735 || 768 <= D && D <= 879 || 913 <= D && D <= 929 || 931 <= D && D <= 937 || 945 <= D && D <= 961 || 963 <= D && D <= 969 || D == 1025 || 1040 <= D && D <= 1103 || D == 1105 || D == 8208 || 8211 <= D && D <= 8214 || 8216 <= D && D <= 8217 || 8220 <= D && D <= 8221 || 8224 <= D && D <= 8226 || 8228 <= D && D <= 8231 || D == 8240 || 8242 <= D && D <= 8243 || D == 8245 || D == 8251 || D == 8254 || D == 8308 || D == 8319 || 8321 <= D && D <= 8324 || D == 8364 || D == 8451 || D == 8453 || D == 8457 || D == 8467 || D == 8470 || 8481 <= D && D <= 8482 || D == 8486 || D == 8491 || 8531 <= D && D <= 8532 || 8539 <= D && D <= 8542 || 8544 <= D && D <= 8555 || 8560 <= D && D <= 8569 || D == 8585 || 8592 <= D && D <= 8601 || 8632 <= D && D <= 8633 || D == 8658 || D == 8660 || D == 8679 || D == 8704 || 8706 <= D && D <= 8707 || 8711 <= D && D <= 8712 || D == 8715 || D == 8719 || D == 8721 || D == 8725 || D == 8730 || 8733 <= D && D <= 8736 || D == 8739 || D == 8741 || 8743 <= D && D <= 8748 || D == 8750 || 8756 <= D && D <= 8759 || 8764 <= D && D <= 8765 || D == 8776 || D == 8780 || D == 8786 || 8800 <= D && D <= 8801 || 8804 <= D && D <= 8807 || 8810 <= D && D <= 8811 || 8814 <= D && D <= 8815 || 8834 <= D && D <= 8835 || 8838 <= D && D <= 8839 || D == 8853 || D == 8857 || D == 8869 || D == 8895 || D == 8978 || 9312 <= D && D <= 9449 || 9451 <= D && D <= 9547 || 9552 <= D && D <= 9587 || 9600 <= D && D <= 9615 || 9618 <= D && D <= 9621 || 9632 <= D && D <= 9633 || 9635 <= D && D <= 9641 || 9650 <= D && D <= 9651 || 9654 <= D && D <= 9655 || 9660 <= D && D <= 9661 || 9664 <= D && D <= 9665 || 9670 <= D && D <= 9672 || D == 9675 || 9678 <= D && D <= 9681 || 9698 <= D && D <= 9701 || D == 9711 || 9733 <= D && D <= 9734 || D == 9737 || 9742 <= D && D <= 9743 || 9748 <= D && D <= 9749 || D == 9756 || D == 9758 || D == 9792 || D == 9794 || 9824 <= D && D <= 9825 || 9827 <= D && D <= 9829 || 9831 <= D && D <= 9834 || 9836 <= D && D <= 9837 || D == 9839 || 9886 <= D && D <= 9887 || 9918 <= D && D <= 9919 || 9924 <= D && D <= 9933 || 9935 <= D && D <= 9953 || D == 9955 || 9960 <= D && D <= 9983 || D == 10045 || D == 10071 || 10102 <= D && D <= 10111 || 11093 <= D && D <= 11097 || 12872 <= D && D <= 12879 || 57344 <= D && D <= 63743 || 65024 <= D && D <= 65039 || D == 65533 || 127232 <= D && D <= 127242 || 127248 <= D && D <= 127277 || 127280 <= D && D <= 127337 || 127344 <= D && D <= 127386 || 917760 <= D && D <= 917999 || 983040 <= D && D <= 1048573 || 1048576 <= D && D <= 1114109 ? "A" : "N";
187
+ }, u2.characterLength = function(e2) {
188
+ var s = this.eastAsianWidth(e2);
189
+ return s == "F" || s == "W" || s == "A" ? 2 : 1;
190
+ };
191
+ function F(e2) {
192
+ return e2.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
193
+ }
194
+ u2.length = function(e2) {
195
+ for (var s = F(e2), i = 0, D = 0; D < s.length; D++) i = i + this.characterLength(s[D]);
196
+ return i;
197
+ }, u2.slice = function(e2, s, i) {
198
+ textLen = u2.length(e2), s = s || 0, i = i || 1, s < 0 && (s = textLen + s), i < 0 && (i = textLen + i);
199
+ for (var D = "", C = 0, o = F(e2), E2 = 0; E2 < o.length; E2++) {
200
+ var a2 = o[E2], n = u2.length(a2);
201
+ if (C >= s - (n == 2 ? 1 : 0)) if (C + n <= i) D += a2;
202
+ else break;
203
+ C += n;
204
+ }
205
+ return D;
206
+ };
207
+ })(P);
208
+ var X = P.exports;
209
+ var DD = O(X);
210
+ var uD = function() {
211
+ return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
212
+ };
213
+ var FD = O(uD);
214
+ function A(t, u2 = {}) {
215
+ if (typeof t != "string" || t.length === 0 || (u2 = { ambiguousIsNarrow: true, ...u2 }, t = T(t), t.length === 0)) return 0;
216
+ t = t.replace(FD(), " ");
217
+ const F = u2.ambiguousIsNarrow ? 1 : 2;
218
+ let e2 = 0;
219
+ for (const s of t) {
220
+ const i = s.codePointAt(0);
221
+ if (i <= 31 || i >= 127 && i <= 159 || i >= 768 && i <= 879) continue;
222
+ switch (DD.eastAsianWidth(s)) {
223
+ case "F":
224
+ case "W":
225
+ e2 += 2;
226
+ break;
227
+ case "A":
228
+ e2 += F;
229
+ break;
230
+ default:
231
+ e2 += 1;
232
+ }
233
+ }
234
+ return e2;
235
+ }
236
+ var m = 10;
237
+ var L = (t = 0) => (u2) => `\x1B[${u2 + t}m`;
238
+ var N = (t = 0) => (u2) => `\x1B[${38 + t};5;${u2}m`;
239
+ var I = (t = 0) => (u2, F, e2) => `\x1B[${38 + t};2;${u2};${F};${e2}m`;
240
+ var r = { modifier: { reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], overline: [53, 55], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29] }, color: { black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], blackBright: [90, 39], gray: [90, 39], grey: [90, 39], redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39] }, bgColor: { bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], bgBlackBright: [100, 49], bgGray: [100, 49], bgGrey: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49] } };
241
+ Object.keys(r.modifier);
242
+ var tD = Object.keys(r.color);
243
+ var eD = Object.keys(r.bgColor);
244
+ [...tD, ...eD];
245
+ function sD() {
246
+ const t = /* @__PURE__ */ new Map();
247
+ for (const [u2, F] of Object.entries(r)) {
248
+ for (const [e2, s] of Object.entries(F)) r[e2] = { open: `\x1B[${s[0]}m`, close: `\x1B[${s[1]}m` }, F[e2] = r[e2], t.set(s[0], s[1]);
249
+ Object.defineProperty(r, u2, { value: F, enumerable: false });
250
+ }
251
+ return Object.defineProperty(r, "codes", { value: t, enumerable: false }), r.color.close = "\x1B[39m", r.bgColor.close = "\x1B[49m", r.color.ansi = L(), r.color.ansi256 = N(), r.color.ansi16m = I(), r.bgColor.ansi = L(m), r.bgColor.ansi256 = N(m), r.bgColor.ansi16m = I(m), Object.defineProperties(r, { rgbToAnsi256: { value: (u2, F, e2) => u2 === F && F === e2 ? u2 < 8 ? 16 : u2 > 248 ? 231 : Math.round((u2 - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u2 / 255 * 5) + 6 * Math.round(F / 255 * 5) + Math.round(e2 / 255 * 5), enumerable: false }, hexToRgb: { value: (u2) => {
252
+ const F = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u2.toString(16));
253
+ if (!F) return [0, 0, 0];
254
+ let [e2] = F;
255
+ e2.length === 3 && (e2 = [...e2].map((i) => i + i).join(""));
256
+ const s = Number.parseInt(e2, 16);
257
+ return [s >> 16 & 255, s >> 8 & 255, s & 255];
258
+ }, enumerable: false }, hexToAnsi256: { value: (u2) => r.rgbToAnsi256(...r.hexToRgb(u2)), enumerable: false }, ansi256ToAnsi: { value: (u2) => {
259
+ if (u2 < 8) return 30 + u2;
260
+ if (u2 < 16) return 90 + (u2 - 8);
261
+ let F, e2, s;
262
+ if (u2 >= 232) F = ((u2 - 232) * 10 + 8) / 255, e2 = F, s = F;
263
+ else {
264
+ u2 -= 16;
265
+ const C = u2 % 36;
266
+ F = Math.floor(u2 / 36) / 5, e2 = Math.floor(C / 6) / 5, s = C % 6 / 5;
267
+ }
268
+ const i = Math.max(F, e2, s) * 2;
269
+ if (i === 0) return 30;
270
+ let D = 30 + (Math.round(s) << 2 | Math.round(e2) << 1 | Math.round(F));
271
+ return i === 2 && (D += 60), D;
272
+ }, enumerable: false }, rgbToAnsi: { value: (u2, F, e2) => r.ansi256ToAnsi(r.rgbToAnsi256(u2, F, e2)), enumerable: false }, hexToAnsi: { value: (u2) => r.ansi256ToAnsi(r.hexToAnsi256(u2)), enumerable: false } }), r;
273
+ }
274
+ var iD = sD();
275
+ var v = /* @__PURE__ */ new Set(["\x1B", "\x9B"]);
276
+ var CD = 39;
277
+ var w = "\x07";
278
+ var W = "[";
279
+ var rD = "]";
280
+ var R = "m";
281
+ var y = `${rD}8;;`;
282
+ var V = (t) => `${v.values().next().value}${W}${t}${R}`;
283
+ var z = (t) => `${v.values().next().value}${y}${t}${w}`;
284
+ var ED = (t) => t.split(" ").map((u2) => A(u2));
285
+ var _ = (t, u2, F) => {
286
+ const e2 = [...u2];
287
+ let s = false, i = false, D = A(T(t[t.length - 1]));
288
+ for (const [C, o] of e2.entries()) {
289
+ const E2 = A(o);
290
+ if (D + E2 <= F ? t[t.length - 1] += o : (t.push(o), D = 0), v.has(o) && (s = true, i = e2.slice(C + 1).join("").startsWith(y)), s) {
291
+ i ? o === w && (s = false, i = false) : o === R && (s = false);
292
+ continue;
293
+ }
294
+ D += E2, D === F && C < e2.length - 1 && (t.push(""), D = 0);
295
+ }
296
+ !D && t[t.length - 1].length > 0 && t.length > 1 && (t[t.length - 2] += t.pop());
297
+ };
298
+ var nD = (t) => {
299
+ const u2 = t.split(" ");
300
+ let F = u2.length;
301
+ for (; F > 0 && !(A(u2[F - 1]) > 0); ) F--;
302
+ return F === u2.length ? t : u2.slice(0, F).join(" ") + u2.slice(F).join("");
303
+ };
304
+ var oD = (t, u2, F = {}) => {
305
+ if (F.trim !== false && t.trim() === "") return "";
306
+ let e2 = "", s, i;
307
+ const D = ED(t);
308
+ let C = [""];
309
+ for (const [E2, a2] of t.split(" ").entries()) {
310
+ F.trim !== false && (C[C.length - 1] = C[C.length - 1].trimStart());
311
+ let n = A(C[C.length - 1]);
312
+ if (E2 !== 0 && (n >= u2 && (F.wordWrap === false || F.trim === false) && (C.push(""), n = 0), (n > 0 || F.trim === false) && (C[C.length - 1] += " ", n++)), F.hard && D[E2] > u2) {
313
+ const B2 = u2 - n, p2 = 1 + Math.floor((D[E2] - B2 - 1) / u2);
314
+ Math.floor((D[E2] - 1) / u2) < p2 && C.push(""), _(C, a2, u2);
315
+ continue;
316
+ }
317
+ if (n + D[E2] > u2 && n > 0 && D[E2] > 0) {
318
+ if (F.wordWrap === false && n < u2) {
319
+ _(C, a2, u2);
320
+ continue;
321
+ }
322
+ C.push("");
323
+ }
324
+ if (n + D[E2] > u2 && F.wordWrap === false) {
325
+ _(C, a2, u2);
326
+ continue;
327
+ }
328
+ C[C.length - 1] += a2;
329
+ }
330
+ F.trim !== false && (C = C.map((E2) => nD(E2)));
331
+ const o = [...C.join(`
332
+ `)];
333
+ for (const [E2, a2] of o.entries()) {
334
+ if (e2 += a2, v.has(a2)) {
335
+ const { groups: B2 } = new RegExp(`(?:\\${W}(?<code>\\d+)m|\\${y}(?<uri>.*)${w})`).exec(o.slice(E2).join("")) || { groups: {} };
336
+ if (B2.code !== void 0) {
337
+ const p2 = Number.parseFloat(B2.code);
338
+ s = p2 === CD ? void 0 : p2;
339
+ } else B2.uri !== void 0 && (i = B2.uri.length === 0 ? void 0 : B2.uri);
340
+ }
341
+ const n = iD.codes.get(Number(s));
342
+ o[E2 + 1] === `
343
+ ` ? (i && (e2 += z("")), s && n && (e2 += V(n))) : a2 === `
344
+ ` && (s && n && (e2 += V(s)), i && (e2 += z(i)));
345
+ }
346
+ return e2;
347
+ };
348
+ function G(t, u2, F) {
349
+ return String(t).normalize().replace(/\r\n/g, `
350
+ `).split(`
351
+ `).map((e2) => oD(e2, u2, F)).join(`
352
+ `);
353
+ }
354
+ var aD = ["up", "down", "left", "right", "space", "enter", "cancel"];
355
+ var c = { actions: new Set(aD), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]) };
356
+ function k(t, u2) {
357
+ if (typeof t == "string") return c.aliases.get(t) === u2;
358
+ for (const F of t) if (F !== void 0 && k(F, u2)) return true;
359
+ return false;
360
+ }
361
+ function lD(t, u2) {
362
+ if (t === u2) return;
363
+ const F = t.split(`
364
+ `), e2 = u2.split(`
365
+ `), s = [];
366
+ for (let i = 0; i < Math.max(F.length, e2.length); i++) F[i] !== e2[i] && s.push(i);
367
+ return s;
368
+ }
369
+ var xD = globalThis.process.platform.startsWith("win");
370
+ var S = Symbol("clack:cancel");
371
+ function BD(t) {
372
+ return t === S;
373
+ }
374
+ function d(t, u2) {
375
+ const F = t;
376
+ F.isTTY && F.setRawMode(u2);
377
+ }
378
+ function cD({ input: t = $, output: u2 = j, overwrite: F = true, hideCursor: e2 = true } = {}) {
379
+ const s = f.createInterface({ input: t, output: u2, prompt: "", tabSize: 1 });
380
+ f.emitKeypressEvents(t, s), t.isTTY && t.setRawMode(true);
381
+ const i = (D, { name: C, sequence: o }) => {
382
+ const E2 = String(D);
383
+ if (k([E2, C, o], "cancel")) {
384
+ e2 && u2.write(import_sisteransi.cursor.show), process.exit(0);
385
+ return;
386
+ }
387
+ if (!F) return;
388
+ const a2 = C === "return" ? 0 : -1, n = C === "return" ? -1 : 0;
389
+ f.moveCursor(u2, a2, n, () => {
390
+ f.clearLine(u2, 1, () => {
391
+ t.once("keypress", i);
392
+ });
393
+ });
394
+ };
395
+ return e2 && u2.write(import_sisteransi.cursor.hide), t.once("keypress", i), () => {
396
+ t.off("keypress", i), e2 && u2.write(import_sisteransi.cursor.show), t.isTTY && !xD && t.setRawMode(false), s.terminal = false, s.close();
397
+ };
398
+ }
399
+ var AD = Object.defineProperty;
400
+ var pD = (t, u2, F) => u2 in t ? AD(t, u2, { enumerable: true, configurable: true, writable: true, value: F }) : t[u2] = F;
401
+ var h = (t, u2, F) => (pD(t, typeof u2 != "symbol" ? u2 + "" : u2, F), F);
402
+ var x = class {
403
+ constructor(u2, F = true) {
404
+ h(this, "input"), h(this, "output"), h(this, "_abortSignal"), h(this, "rl"), h(this, "opts"), h(this, "_render"), h(this, "_track", false), h(this, "_prevFrame", ""), h(this, "_subscribers", /* @__PURE__ */ new Map()), h(this, "_cursor", 0), h(this, "state", "initial"), h(this, "error", ""), h(this, "value");
405
+ const { input: e2 = $, output: s = j, render: i, signal: D, ...C } = u2;
406
+ this.opts = C, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = i.bind(this), this._track = F, this._abortSignal = D, this.input = e2, this.output = s;
407
+ }
408
+ unsubscribe() {
409
+ this._subscribers.clear();
410
+ }
411
+ setSubscriber(u2, F) {
412
+ const e2 = this._subscribers.get(u2) ?? [];
413
+ e2.push(F), this._subscribers.set(u2, e2);
414
+ }
415
+ on(u2, F) {
416
+ this.setSubscriber(u2, { cb: F });
417
+ }
418
+ once(u2, F) {
419
+ this.setSubscriber(u2, { cb: F, once: true });
420
+ }
421
+ emit(u2, ...F) {
422
+ const e2 = this._subscribers.get(u2) ?? [], s = [];
423
+ for (const i of e2) i.cb(...F), i.once && s.push(() => e2.splice(e2.indexOf(i), 1));
424
+ for (const i of s) i();
425
+ }
426
+ prompt() {
427
+ return new Promise((u2, F) => {
428
+ if (this._abortSignal) {
429
+ if (this._abortSignal.aborted) return this.state = "cancel", this.close(), u2(S);
430
+ this._abortSignal.addEventListener("abort", () => {
431
+ this.state = "cancel", this.close();
432
+ }, { once: true });
433
+ }
434
+ const e2 = new U(0);
435
+ e2._write = (s, i, D) => {
436
+ this._track && (this.value = this.rl?.line.replace(/\t/g, ""), this._cursor = this.rl?.cursor ?? 0, this.emit("value", this.value)), D();
437
+ }, this.input.pipe(e2), this.rl = M.createInterface({ input: this.input, output: e2, tabSize: 2, prompt: "", escapeCodeTimeout: 50 }), M.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== void 0 && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), d(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
438
+ this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), d(this.input, false), u2(this.value);
439
+ }), this.once("cancel", () => {
440
+ this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), d(this.input, false), u2(S);
441
+ });
442
+ });
443
+ }
444
+ onKeypress(u2, F) {
445
+ if (this.state === "error" && (this.state = "active"), F?.name && (!this._track && c.aliases.has(F.name) && this.emit("cursor", c.aliases.get(F.name)), c.actions.has(F.name) && this.emit("cursor", F.name)), u2 && (u2.toLowerCase() === "y" || u2.toLowerCase() === "n") && this.emit("confirm", u2.toLowerCase() === "y"), u2 === " " && this.opts.placeholder && (this.value || (this.rl?.write(this.opts.placeholder), this.emit("value", this.opts.placeholder))), u2 && this.emit("key", u2.toLowerCase()), F?.name === "return") {
446
+ if (this.opts.validate) {
447
+ const e2 = this.opts.validate(this.value);
448
+ e2 && (this.error = e2 instanceof Error ? e2.message : e2, this.state = "error", this.rl?.write(this.value));
449
+ }
450
+ this.state !== "error" && (this.state = "submit");
451
+ }
452
+ k([u2, F?.name, F?.sequence], "cancel") && (this.state = "cancel"), (this.state === "submit" || this.state === "cancel") && this.emit("finalize"), this.render(), (this.state === "submit" || this.state === "cancel") && this.close();
453
+ }
454
+ close() {
455
+ this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
456
+ `), d(this.input, false), this.rl?.close(), this.rl = void 0, this.emit(`${this.state}`, this.value), this.unsubscribe();
457
+ }
458
+ restoreCursor() {
459
+ const u2 = G(this._prevFrame, process.stdout.columns, { hard: true }).split(`
460
+ `).length - 1;
461
+ this.output.write(import_sisteransi.cursor.move(-999, u2 * -1));
462
+ }
463
+ render() {
464
+ const u2 = G(this._render(this) ?? "", process.stdout.columns, { hard: true });
465
+ if (u2 !== this._prevFrame) {
466
+ if (this.state === "initial") this.output.write(import_sisteransi.cursor.hide);
467
+ else {
468
+ const F = lD(this._prevFrame, u2);
469
+ if (this.restoreCursor(), F && F?.length === 1) {
470
+ const e2 = F[0];
471
+ this.output.write(import_sisteransi.cursor.move(0, e2)), this.output.write(import_sisteransi.erase.lines(1));
472
+ const s = u2.split(`
473
+ `);
474
+ this.output.write(s[e2]), this._prevFrame = u2, this.output.write(import_sisteransi.cursor.move(0, s.length - e2 - 1));
475
+ return;
476
+ }
477
+ if (F && F?.length > 1) {
478
+ const e2 = F[0];
479
+ this.output.write(import_sisteransi.cursor.move(0, e2)), this.output.write(import_sisteransi.erase.down());
480
+ const s = u2.split(`
481
+ `).slice(e2);
482
+ this.output.write(s.join(`
483
+ `)), this._prevFrame = u2;
484
+ return;
485
+ }
486
+ this.output.write(import_sisteransi.erase.down());
487
+ }
488
+ this.output.write(u2), this.state === "initial" && (this.state = "active"), this._prevFrame = u2;
489
+ }
490
+ }
491
+ };
492
+ var fD = class extends x {
493
+ get cursor() {
494
+ return this.value ? 0 : 1;
495
+ }
496
+ get _value() {
497
+ return this.cursor === 0;
498
+ }
499
+ constructor(u2) {
500
+ super(u2, false), this.value = !!u2.initialValue, this.on("value", () => {
501
+ this.value = this._value;
502
+ }), this.on("confirm", (F) => {
503
+ this.output.write(import_sisteransi.cursor.move(0, -1)), this.value = F, this.state = "submit", this.close();
504
+ }), this.on("cursor", () => {
505
+ this.value = !this.value;
506
+ });
507
+ }
508
+ };
509
+ var bD = Object.defineProperty;
510
+ var mD = (t, u2, F) => u2 in t ? bD(t, u2, { enumerable: true, configurable: true, writable: true, value: F }) : t[u2] = F;
511
+ var Y = (t, u2, F) => (mD(t, typeof u2 != "symbol" ? u2 + "" : u2, F), F);
512
+ var wD = class extends x {
513
+ constructor(u2) {
514
+ super(u2, false), Y(this, "options"), Y(this, "cursor", 0), this.options = u2.options, this.value = [...u2.initialValues ?? []], this.cursor = Math.max(this.options.findIndex(({ value: F }) => F === u2.cursorAt), 0), this.on("key", (F) => {
515
+ F === "a" && this.toggleAll();
516
+ }), this.on("cursor", (F) => {
517
+ switch (F) {
518
+ case "left":
519
+ case "up":
520
+ this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
521
+ break;
522
+ case "down":
523
+ case "right":
524
+ this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
525
+ break;
526
+ case "space":
527
+ this.toggleValue();
528
+ break;
529
+ }
530
+ });
531
+ }
532
+ get _value() {
533
+ return this.options[this.cursor].value;
534
+ }
535
+ toggleAll() {
536
+ const u2 = this.value.length === this.options.length;
537
+ this.value = u2 ? [] : this.options.map((F) => F.value);
538
+ }
539
+ toggleValue() {
540
+ const u2 = this.value.includes(this._value);
541
+ this.value = u2 ? this.value.filter((F) => F !== this._value) : [...this.value, this._value];
542
+ }
543
+ };
544
+ var SD = Object.defineProperty;
545
+ var $D = (t, u2, F) => u2 in t ? SD(t, u2, { enumerable: true, configurable: true, writable: true, value: F }) : t[u2] = F;
546
+ var q = (t, u2, F) => ($D(t, typeof u2 != "symbol" ? u2 + "" : u2, F), F);
547
+ var jD = class extends x {
548
+ constructor(u2) {
549
+ super(u2, false), q(this, "options"), q(this, "cursor", 0), this.options = u2.options, this.cursor = this.options.findIndex(({ value: F }) => F === u2.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (F) => {
550
+ switch (F) {
551
+ case "left":
552
+ case "up":
553
+ this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
554
+ break;
555
+ case "down":
556
+ case "right":
557
+ this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
558
+ break;
559
+ }
560
+ this.changeValue();
561
+ });
562
+ }
563
+ get _value() {
564
+ return this.options[this.cursor];
565
+ }
566
+ changeValue() {
567
+ this.value = this._value.value;
568
+ }
569
+ };
570
+
571
+ // ../../node_modules/.pnpm/@clack+prompts@0.9.1/node_modules/@clack/prompts/dist/index.mjs
572
+ var import_picocolors = __toESM(require_picocolors(), 1);
573
+ var import_sisteransi2 = __toESM(require_src(), 1);
574
+ import p from "process";
575
+ function X2() {
576
+ return p.platform !== "win32" ? p.env.TERM !== "linux" : !!p.env.CI || !!p.env.WT_SESSION || !!p.env.TERMINUS_SUBLIME || p.env.ConEmuTask === "{cmd::Cmder}" || p.env.TERM_PROGRAM === "Terminus-Sublime" || p.env.TERM_PROGRAM === "vscode" || p.env.TERM === "xterm-256color" || p.env.TERM === "alacritty" || p.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
577
+ }
578
+ var E = X2();
579
+ var u = (s, n) => E ? s : n;
580
+ var ee = u("\u25C6", "*");
581
+ var A2 = u("\u25A0", "x");
582
+ var B = u("\u25B2", "x");
583
+ var S2 = u("\u25C7", "o");
584
+ var te = u("\u250C", "T");
585
+ var a = u("\u2502", "|");
586
+ var m2 = u("\u2514", "\u2014");
587
+ var j2 = u("\u25CF", ">");
588
+ var R2 = u("\u25CB", " ");
589
+ var V2 = u("\u25FB", "[\u2022]");
590
+ var M2 = u("\u25FC", "[+]");
591
+ var G2 = u("\u25FB", "[ ]");
592
+ var se = u("\u25AA", "\u2022");
593
+ var N2 = u("\u2500", "-");
594
+ var re = u("\u256E", "+");
595
+ var ie = u("\u251C", "+");
596
+ var ne = u("\u256F", "+");
597
+ var ae = u("\u25CF", "\u2022");
598
+ var oe = u("\u25C6", "*");
599
+ var ce = u("\u25B2", "!");
600
+ var le = u("\u25A0", "x");
601
+ var y2 = (s) => {
602
+ switch (s) {
603
+ case "initial":
604
+ case "active":
605
+ return import_picocolors.default.cyan(ee);
606
+ case "cancel":
607
+ return import_picocolors.default.red(A2);
608
+ case "error":
609
+ return import_picocolors.default.yellow(B);
610
+ case "submit":
611
+ return import_picocolors.default.green(S2);
612
+ }
613
+ };
614
+ var k2 = (s) => {
615
+ const { cursor: n, options: t, style: i } = s, r2 = s.maxItems ?? Number.POSITIVE_INFINITY, c2 = Math.max(process.stdout.rows - 4, 0), o = Math.min(c2, Math.max(r2, 5));
616
+ let l2 = 0;
617
+ n >= l2 + o - 3 ? l2 = Math.max(Math.min(n - o + 3, t.length - o), 0) : n < l2 + 2 && (l2 = Math.max(n - 2, 0));
618
+ const $2 = o < t.length && l2 > 0, d2 = o < t.length && l2 + o < t.length;
619
+ return t.slice(l2, l2 + o).map((w2, b2, C) => {
620
+ const I2 = b2 === 0 && $2, x2 = b2 === C.length - 1 && d2;
621
+ return I2 || x2 ? import_picocolors.default.dim("...") : i(w2, b2 + l2 === n);
622
+ });
623
+ };
624
+ var me = (s) => {
625
+ const n = s.active ?? "Yes", t = s.inactive ?? "No";
626
+ return new fD({ active: n, inactive: t, initialValue: s.initialValue ?? true, render() {
627
+ const i = `${import_picocolors.default.gray(a)}
628
+ ${y2(this.state)} ${s.message}
629
+ `, r2 = this.value ? n : t;
630
+ switch (this.state) {
631
+ case "submit":
632
+ return `${i}${import_picocolors.default.gray(a)} ${import_picocolors.default.dim(r2)}`;
633
+ case "cancel":
634
+ return `${i}${import_picocolors.default.gray(a)} ${import_picocolors.default.strikethrough(import_picocolors.default.dim(r2))}
635
+ ${import_picocolors.default.gray(a)}`;
636
+ default:
637
+ return `${i}${import_picocolors.default.cyan(a)} ${this.value ? `${import_picocolors.default.green(j2)} ${n}` : `${import_picocolors.default.dim(R2)} ${import_picocolors.default.dim(n)}`} ${import_picocolors.default.dim("/")} ${this.value ? `${import_picocolors.default.dim(R2)} ${import_picocolors.default.dim(t)}` : `${import_picocolors.default.green(j2)} ${t}`}
638
+ ${import_picocolors.default.cyan(m2)}
639
+ `;
640
+ }
641
+ } }).prompt();
642
+ };
643
+ var de = (s) => {
644
+ const n = (t, i) => {
645
+ const r2 = t.label ?? String(t.value);
646
+ switch (i) {
647
+ case "selected":
648
+ return `${import_picocolors.default.dim(r2)}`;
649
+ case "active":
650
+ return `${import_picocolors.default.green(j2)} ${r2} ${t.hint ? import_picocolors.default.dim(`(${t.hint})`) : ""}`;
651
+ case "cancelled":
652
+ return `${import_picocolors.default.strikethrough(import_picocolors.default.dim(r2))}`;
653
+ default:
654
+ return `${import_picocolors.default.dim(R2)} ${import_picocolors.default.dim(r2)}`;
655
+ }
656
+ };
657
+ return new jD({ options: s.options, initialValue: s.initialValue, render() {
658
+ const t = `${import_picocolors.default.gray(a)}
659
+ ${y2(this.state)} ${s.message}
660
+ `;
661
+ switch (this.state) {
662
+ case "submit":
663
+ return `${t}${import_picocolors.default.gray(a)} ${n(this.options[this.cursor], "selected")}`;
664
+ case "cancel":
665
+ return `${t}${import_picocolors.default.gray(a)} ${n(this.options[this.cursor], "cancelled")}
666
+ ${import_picocolors.default.gray(a)}`;
667
+ default:
668
+ return `${t}${import_picocolors.default.cyan(a)} ${k2({ cursor: this.cursor, options: this.options, maxItems: s.maxItems, style: (i, r2) => n(i, r2 ? "active" : "inactive") }).join(`
669
+ ${import_picocolors.default.cyan(a)} `)}
670
+ ${import_picocolors.default.cyan(m2)}
671
+ `;
672
+ }
673
+ } }).prompt();
674
+ };
675
+ var pe = (s) => {
676
+ const n = (t, i) => {
677
+ const r2 = t.label ?? String(t.value);
678
+ return i === "active" ? `${import_picocolors.default.cyan(V2)} ${r2} ${t.hint ? import_picocolors.default.dim(`(${t.hint})`) : ""}` : i === "selected" ? `${import_picocolors.default.green(M2)} ${import_picocolors.default.dim(r2)}` : i === "cancelled" ? `${import_picocolors.default.strikethrough(import_picocolors.default.dim(r2))}` : i === "active-selected" ? `${import_picocolors.default.green(M2)} ${r2} ${t.hint ? import_picocolors.default.dim(`(${t.hint})`) : ""}` : i === "submitted" ? `${import_picocolors.default.dim(r2)}` : `${import_picocolors.default.dim(G2)} ${import_picocolors.default.dim(r2)}`;
679
+ };
680
+ return new wD({ options: s.options, initialValues: s.initialValues, required: s.required ?? true, cursorAt: s.cursorAt, validate(t) {
681
+ if (this.required && t.length === 0) return `Please select at least one option.
682
+ ${import_picocolors.default.reset(import_picocolors.default.dim(`Press ${import_picocolors.default.gray(import_picocolors.default.bgWhite(import_picocolors.default.inverse(" space ")))} to select, ${import_picocolors.default.gray(import_picocolors.default.bgWhite(import_picocolors.default.inverse(" enter ")))} to submit`))}`;
683
+ }, render() {
684
+ const t = `${import_picocolors.default.gray(a)}
685
+ ${y2(this.state)} ${s.message}
686
+ `, i = (r2, c2) => {
687
+ const o = this.value.includes(r2.value);
688
+ return c2 && o ? n(r2, "active-selected") : o ? n(r2, "selected") : n(r2, c2 ? "active" : "inactive");
689
+ };
690
+ switch (this.state) {
691
+ case "submit":
692
+ return `${t}${import_picocolors.default.gray(a)} ${this.options.filter(({ value: r2 }) => this.value.includes(r2)).map((r2) => n(r2, "submitted")).join(import_picocolors.default.dim(", ")) || import_picocolors.default.dim("none")}`;
693
+ case "cancel": {
694
+ const r2 = this.options.filter(({ value: c2 }) => this.value.includes(c2)).map((c2) => n(c2, "cancelled")).join(import_picocolors.default.dim(", "));
695
+ return `${t}${import_picocolors.default.gray(a)} ${r2.trim() ? `${r2}
696
+ ${import_picocolors.default.gray(a)}` : ""}`;
697
+ }
698
+ case "error": {
699
+ const r2 = this.error.split(`
700
+ `).map((c2, o) => o === 0 ? `${import_picocolors.default.yellow(m2)} ${import_picocolors.default.yellow(c2)}` : ` ${c2}`).join(`
701
+ `);
702
+ return `${t + import_picocolors.default.yellow(a)} ${k2({ options: this.options, cursor: this.cursor, maxItems: s.maxItems, style: i }).join(`
703
+ ${import_picocolors.default.yellow(a)} `)}
704
+ ${r2}
705
+ `;
706
+ }
707
+ default:
708
+ return `${t}${import_picocolors.default.cyan(a)} ${k2({ options: this.options, cursor: this.cursor, maxItems: s.maxItems, style: i }).join(`
709
+ ${import_picocolors.default.cyan(a)} `)}
710
+ ${import_picocolors.default.cyan(m2)}
711
+ `;
712
+ }
713
+ } }).prompt();
714
+ };
715
+ var ve = (s = "") => {
716
+ process.stdout.write(`${import_picocolors.default.gray(m2)} ${import_picocolors.default.red(s)}
717
+
718
+ `);
719
+ };
720
+ var we = (s = "") => {
721
+ process.stdout.write(`${import_picocolors.default.gray(te)} ${s}
722
+ `);
723
+ };
724
+ var fe = (s = "") => {
725
+ process.stdout.write(`${import_picocolors.default.gray(a)}
726
+ ${import_picocolors.default.gray(m2)} ${s}
727
+
728
+ `);
729
+ };
730
+ var v2 = { message: (s = "", { symbol: n = import_picocolors.default.gray(a) } = {}) => {
731
+ const t = [`${import_picocolors.default.gray(a)}`];
732
+ if (s) {
733
+ const [i, ...r2] = s.split(`
734
+ `);
735
+ t.push(`${n} ${i}`, ...r2.map((c2) => `${import_picocolors.default.gray(a)} ${c2}`));
736
+ }
737
+ process.stdout.write(`${t.join(`
738
+ `)}
739
+ `);
740
+ }, info: (s) => {
741
+ v2.message(s, { symbol: import_picocolors.default.blue(ae) });
742
+ }, success: (s) => {
743
+ v2.message(s, { symbol: import_picocolors.default.green(oe) });
744
+ }, step: (s) => {
745
+ v2.message(s, { symbol: import_picocolors.default.green(S2) });
746
+ }, warn: (s) => {
747
+ v2.message(s, { symbol: import_picocolors.default.yellow(ce) });
748
+ }, warning: (s) => {
749
+ v2.warn(s);
750
+ }, error: (s) => {
751
+ v2.message(s, { symbol: import_picocolors.default.red(le) });
752
+ } };
753
+ var L2 = () => {
754
+ const s = E ? ["\u25D2", "\u25D0", "\u25D3", "\u25D1"] : ["\u2022", "o", "O", "0"], n = E ? 80 : 120, t = process.env.CI === "true";
755
+ let i, r2, c2 = false, o = "", l2;
756
+ const $2 = (h2) => {
757
+ const g = h2 > 1 ? "Something went wrong" : "Canceled";
758
+ c2 && P2(g, h2);
759
+ }, d2 = () => $2(2), w2 = () => $2(1), b2 = () => {
760
+ process.on("uncaughtExceptionMonitor", d2), process.on("unhandledRejection", d2), process.on("SIGINT", w2), process.on("SIGTERM", w2), process.on("exit", $2);
761
+ }, C = () => {
762
+ process.removeListener("uncaughtExceptionMonitor", d2), process.removeListener("unhandledRejection", d2), process.removeListener("SIGINT", w2), process.removeListener("SIGTERM", w2), process.removeListener("exit", $2);
763
+ }, I2 = () => {
764
+ if (l2 === void 0) return;
765
+ t && process.stdout.write(`
766
+ `);
767
+ const h2 = l2.split(`
768
+ `);
769
+ process.stdout.write(import_sisteransi2.cursor.move(-999, h2.length - 1)), process.stdout.write(import_sisteransi2.erase.down(h2.length));
770
+ }, x2 = (h2) => h2.replace(/\.+$/, ""), O2 = (h2 = "") => {
771
+ c2 = true, i = cD(), o = x2(h2), process.stdout.write(`${import_picocolors.default.gray(a)}
772
+ `);
773
+ let g = 0, f2 = 0;
774
+ b2(), r2 = setInterval(() => {
775
+ if (t && o === l2) return;
776
+ I2(), l2 = o;
777
+ const W2 = import_picocolors.default.magenta(s[g]), _2 = t ? "..." : ".".repeat(Math.floor(f2)).slice(0, 3);
778
+ process.stdout.write(`${W2} ${o}${_2}`), g = g + 1 < s.length ? g + 1 : 0, f2 = f2 < s.length ? f2 + 0.125 : 0;
779
+ }, n);
780
+ }, P2 = (h2 = "", g = 0) => {
781
+ c2 = false, clearInterval(r2), I2();
782
+ const f2 = g === 0 ? import_picocolors.default.green(S2) : g === 1 ? import_picocolors.default.red(A2) : import_picocolors.default.red(B);
783
+ o = x2(h2 ?? o), process.stdout.write(`${f2} ${o}
784
+ `), C(), i();
785
+ };
786
+ return { start: O2, stop: P2, message: (h2 = "") => {
787
+ o = x2(h2 ?? o);
788
+ } };
789
+ };
790
+
791
+ // src/commands/init.ts
792
+ var import_picocolors2 = __toESM(require_picocolors(), 1);
793
+
794
+ // src/templates/tailwind-v3.ts
795
+ var TAILWIND_V3_CONFIG = `import type { Config } from 'tailwindcss';
796
+ import { exemPreset } from '@exem-ui/tailwindcss3/preset';
797
+
798
+ const config: Config = {
799
+ presets: [exemPreset],
800
+ content: [
801
+ './src/**/*.{js,ts,jsx,tsx}',
802
+ './node_modules/@exem-ui/react/dist/**/*.{js,mjs}',
803
+ ],
804
+ };
805
+
806
+ export default config;
807
+ `;
808
+ var TAILWIND_V3_MANUAL_MSG = `
809
+ Add the EXEM UI preset to your existing tailwind.config.ts:
810
+
811
+ import { exemPreset } from '@exem-ui/tailwindcss3/preset';
812
+
813
+ export default {
814
+ presets: [exemPreset],
815
+ content: [
816
+ // ... your existing content paths
817
+ './node_modules/@exem-ui/react/dist/**/*.{js,mjs}',
818
+ ],
819
+ };
820
+ `;
821
+
822
+ // src/templates/tailwind-v4.ts
823
+ var TAILWIND_V4_IMPORT = `@import '@exem-ui/tailwindcss4';
824
+ `;
825
+ var TAILWIND_V4_MANUAL_MSG = `
826
+ Add the following import to the top of your main CSS file:
827
+
828
+ @import '@exem-ui/tailwindcss4';
829
+ `;
830
+
831
+ // src/utils/detect-pm.ts
832
+ import { existsSync } from "fs";
833
+ import { resolve } from "path";
834
+ var LOCKFILE_MAP = {
835
+ "pnpm-lock.yaml": "pnpm",
836
+ "yarn.lock": "yarn",
837
+ "package-lock.json": "npm",
838
+ "bun.lockb": "bun",
839
+ "bun.lock": "bun"
840
+ };
841
+ function detectPackageManager(cwd = process.cwd()) {
842
+ for (const [lockfile, pm] of Object.entries(LOCKFILE_MAP)) {
843
+ if (existsSync(resolve(cwd, lockfile))) {
844
+ return pm;
845
+ }
846
+ }
847
+ const userAgent = process.env.npm_config_user_agent ?? "";
848
+ if (userAgent.startsWith("pnpm")) {
849
+ return "pnpm";
850
+ }
851
+ if (userAgent.startsWith("yarn")) {
852
+ return "yarn";
853
+ }
854
+ if (userAgent.startsWith("bun")) {
855
+ return "bun";
856
+ }
857
+ return "npm";
858
+ }
859
+ function getInstallCommand(pm, packages) {
860
+ const pkgs = packages.join(" ");
861
+ switch (pm) {
862
+ case "pnpm":
863
+ return `pnpm add ${pkgs}`;
864
+ case "yarn":
865
+ return `yarn add ${pkgs}`;
866
+ case "bun":
867
+ return `bun add ${pkgs}`;
868
+ case "npm":
869
+ return `npm install ${pkgs}`;
870
+ }
871
+ }
872
+
873
+ // src/utils/file-ops.ts
874
+ import { existsSync as existsSync2, readFileSync, writeFileSync } from "fs";
875
+ import { resolve as resolve2 } from "path";
876
+ function readJson(filePath) {
877
+ try {
878
+ const content = readFileSync(filePath, "utf-8");
879
+ return JSON.parse(content);
880
+ } catch {
881
+ return null;
882
+ }
883
+ }
884
+ function writeJson(filePath, data) {
885
+ writeFileSync(filePath, `${JSON.stringify(data, null, 2)}
886
+ `);
887
+ }
888
+ function fileExists(filePath) {
889
+ return existsSync2(filePath);
890
+ }
891
+ function readFile(filePath) {
892
+ try {
893
+ return readFileSync(filePath, "utf-8");
894
+ } catch {
895
+ return null;
896
+ }
897
+ }
898
+ function writeFile(filePath, content) {
899
+ writeFileSync(filePath, content);
900
+ }
901
+ function resolveFromCwd(...segments) {
902
+ return resolve2(process.cwd(), ...segments);
903
+ }
904
+
905
+ // src/utils/packages.ts
906
+ var PACKAGES = [
907
+ {
908
+ name: "@exem-ui/core",
909
+ description: "CSS variables, design tokens, utilities, types",
910
+ required: true
911
+ },
912
+ {
913
+ name: "@exem-ui/react",
914
+ description: "React UI components (20+)"
915
+ },
916
+ {
917
+ name: "@exem-ui/tailwindcss3",
918
+ description: "Tailwind CSS v3 plugin"
919
+ },
920
+ {
921
+ name: "@exem-ui/tailwindcss4",
922
+ description: "Tailwind CSS v4 theme"
923
+ }
924
+ ];
925
+
926
+ // src/commands/init.ts
927
+ async function init() {
928
+ we(import_picocolors2.default.bgCyan(import_picocolors2.default.black(" EXEM UI Setup ")));
929
+ const detectedPm = detectPackageManager();
930
+ const pm = await de({
931
+ message: "Which package manager do you use?",
932
+ options: [
933
+ { value: detectedPm, label: `${detectedPm} (detected)` },
934
+ ...["pnpm", "npm", "yarn", "bun"].filter((v3) => v3 !== detectedPm).map((v3) => ({ value: v3, label: v3 }))
935
+ ]
936
+ });
937
+ if (BD(pm)) {
938
+ ve("Setup cancelled.");
939
+ process.exit(0);
940
+ }
941
+ const selectedPackages = await pe({
942
+ message: "Which packages do you want to install?",
943
+ options: PACKAGES.map((pkg) => ({
944
+ value: pkg.name,
945
+ label: pkg.name,
946
+ hint: pkg.description
947
+ })),
948
+ initialValues: PACKAGES.filter((pkg) => pkg.required).map((pkg) => pkg.name),
949
+ required: true
950
+ });
951
+ if (BD(selectedPackages)) {
952
+ ve("Setup cancelled.");
953
+ process.exit(0);
954
+ }
955
+ if (!selectedPackages.includes("@exem-ui/core")) {
956
+ selectedPackages.unshift("@exem-ui/core");
957
+ v2.info(`${import_picocolors2.default.cyan("@exem-ui/core")} is required and has been added.`);
958
+ }
959
+ const tailwind = await de({
960
+ message: "Which Tailwind CSS version are you using?",
961
+ options: [
962
+ { value: "v4", label: "Tailwind CSS v4", hint: "CSS-first configuration" },
963
+ { value: "v3", label: "Tailwind CSS v3", hint: "Plugin-based configuration" },
964
+ { value: "none", label: "Not using Tailwind CSS" }
965
+ ]
966
+ });
967
+ if (BD(tailwind)) {
968
+ ve("Setup cancelled.");
969
+ process.exit(0);
970
+ }
971
+ if (tailwind === "v3" && !selectedPackages.includes("@exem-ui/tailwindcss3")) {
972
+ selectedPackages.push("@exem-ui/tailwindcss3");
973
+ }
974
+ if (tailwind === "v4" && !selectedPackages.includes("@exem-ui/tailwindcss4")) {
975
+ selectedPackages.push("@exem-ui/tailwindcss4");
976
+ }
977
+ const channel = await de({
978
+ message: "Which release channel?",
979
+ options: [
980
+ { value: "latest", label: "Stable (latest)", hint: "Recommended" },
981
+ { value: "next", label: "Experimental (next)", hint: "Pre-release versions" }
982
+ ]
983
+ });
984
+ if (BD(channel)) {
985
+ ve("Setup cancelled.");
986
+ process.exit(0);
987
+ }
988
+ const options = {
989
+ packageManager: pm,
990
+ packages: selectedPackages,
991
+ tailwind,
992
+ channel
993
+ };
994
+ const versionSuffix = channel === "next" ? "@next" : "";
995
+ const packagesToInstall = options.packages.map((pkg) => `${pkg}${versionSuffix}`);
996
+ const installCmd = getInstallCommand(options.packageManager, packagesToInstall);
997
+ const s = L2();
998
+ s.start("Installing packages...");
999
+ try {
1000
+ execSync(installCmd, { stdio: "pipe", cwd: process.cwd() });
1001
+ s.stop("Packages installed.");
1002
+ } catch {
1003
+ s.stop("Installation failed.");
1004
+ v2.error(`Failed to run: ${import_picocolors2.default.dim(installCmd)}`);
1005
+ v2.error("Please install the packages manually.");
1006
+ process.exit(1);
1007
+ }
1008
+ const configPath = resolveFromCwd("exem-ui.config.json");
1009
+ writeJson(configPath, {
1010
+ packages: options.packages,
1011
+ tailwind: options.tailwind,
1012
+ channel: options.channel
1013
+ });
1014
+ v2.success(`Created ${import_picocolors2.default.cyan("exem-ui.config.json")}`);
1015
+ if (options.tailwind === "v3") {
1016
+ configureTailwindV3();
1017
+ } else if (options.tailwind === "v4") {
1018
+ configureTailwindV4();
1019
+ }
1020
+ const addScript = await me({
1021
+ message: "Add an update:exem-ui script to package.json?",
1022
+ initialValue: true
1023
+ });
1024
+ if (!BD(addScript) && addScript) {
1025
+ addUpdateScript(options);
1026
+ }
1027
+ fe(import_picocolors2.default.green("EXEM UI setup complete!"));
1028
+ }
1029
+ function configureTailwindV3() {
1030
+ const configPath = resolveFromCwd("tailwind.config.ts");
1031
+ if (!fileExists(configPath)) {
1032
+ writeFile(configPath, TAILWIND_V3_CONFIG);
1033
+ v2.success(`Created ${import_picocolors2.default.cyan("tailwind.config.ts")} with EXEM UI preset.`);
1034
+ } else {
1035
+ v2.warning(`${import_picocolors2.default.cyan("tailwind.config.ts")} already exists.`);
1036
+ v2.message(TAILWIND_V3_MANUAL_MSG);
1037
+ }
1038
+ }
1039
+ function configureTailwindV4() {
1040
+ const cssFiles = ["src/index.css", "src/app.css", "src/global.css", "app/globals.css"];
1041
+ let targetCss = null;
1042
+ for (const file of cssFiles) {
1043
+ const resolved = resolveFromCwd(file);
1044
+ if (fileExists(resolved)) {
1045
+ targetCss = resolved;
1046
+ break;
1047
+ }
1048
+ }
1049
+ if (targetCss) {
1050
+ const content = readFile(targetCss);
1051
+ if (content?.includes("@exem-ui/tailwindcss4")) {
1052
+ v2.info("EXEM UI Tailwind v4 import already present. Skipping.");
1053
+ return;
1054
+ }
1055
+ writeFile(targetCss, TAILWIND_V4_IMPORT + (content ?? ""));
1056
+ v2.success(`Added EXEM UI import to ${import_picocolors2.default.cyan(targetCss)}.`);
1057
+ } else {
1058
+ v2.warning("Could not find a CSS entry file.");
1059
+ v2.message(TAILWIND_V4_MANUAL_MSG);
1060
+ }
1061
+ }
1062
+ function addUpdateScript(options) {
1063
+ const pkgPath = resolveFromCwd("package.json");
1064
+ const pkg = readJson(pkgPath);
1065
+ if (!pkg) {
1066
+ return;
1067
+ }
1068
+ const versionSuffix = options.channel === "next" ? "@next" : "@latest";
1069
+ const pkgs = options.packages.map((p2) => `${p2}${versionSuffix}`).join(" ");
1070
+ const cmd = getInstallCommand(options.packageManager, [pkgs]);
1071
+ const scripts = pkg.scripts ?? {};
1072
+ scripts["update:exem-ui"] = cmd;
1073
+ pkg.scripts = scripts;
1074
+ writeJson(pkgPath, pkg);
1075
+ v2.success(`Added ${import_picocolors2.default.cyan("update:exem-ui")} script to package.json.`);
1076
+ }
1077
+
1078
+ // src/index.ts
1079
+ var args = process.argv.slice(2);
1080
+ var command = args[0];
1081
+ async function main() {
1082
+ if (!command || command === "init") {
1083
+ await init();
1084
+ } else {
1085
+ process.stderr.write(`Unknown command: ${command}
1086
+ `);
1087
+ process.stderr.write("Usage: npx @exem-ui/cli init\n");
1088
+ process.exit(1);
1089
+ }
1090
+ }
1091
+ main().catch(() => {
1092
+ process.exit(1);
1093
+ });
1094
+ //# sourceMappingURL=index.js.map