create-rsbuild 0.6.5 → 0.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -169,135 +169,6 @@ init_esm();
169
169
  import fs from "fs";
170
170
  import path2 from "path";
171
171
 
172
- // ../../node_modules/.pnpm/rslog@1.2.1/node_modules/rslog/dist/index.mjs
173
- init_esm();
174
- import L from "process";
175
- import P from "os";
176
- import _ from "tty";
177
- function c(r2, n = globalThis.Deno ? globalThis.Deno.args : L.argv) {
178
- let i = r2.startsWith("-") ? "" : r2.length === 1 ? "-" : "--", l2 = n.indexOf(i + r2), e2 = n.indexOf("--");
179
- return l2 !== -1 && (e2 === -1 || l2 < e2);
180
- }
181
- var { env: o } = L;
182
- var O;
183
- c("no-color") || c("no-colors") || c("color=false") || c("color=never") ? O = 0 : (c("color") || c("colors") || c("color=true") || c("color=always")) && (O = 1);
184
- function Y() {
185
- if ("FORCE_COLOR" in o)
186
- return o.FORCE_COLOR === "true" ? 1 : o.FORCE_COLOR === "false" ? 0 : o.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(o.FORCE_COLOR, 10), 3);
187
- }
188
- function k(r2) {
189
- return r2 === 0 ? false : { level: r2, hasBasic: true, has256: r2 >= 2, has16m: r2 >= 3 };
190
- }
191
- function V(r2, { streamIsTTY: n, sniffFlags: i = true } = {}) {
192
- let l2 = Y();
193
- l2 !== void 0 && (O = l2);
194
- let e2 = i ? O : l2;
195
- if (e2 === 0)
196
- return 0;
197
- if (i) {
198
- if (c("color=16m") || c("color=full") || c("color=truecolor"))
199
- return 3;
200
- if (c("color=256"))
201
- return 2;
202
- }
203
- if ("TF_BUILD" in o && "AGENT_NAME" in o)
204
- return 1;
205
- if (r2 && !n && e2 === void 0)
206
- return 0;
207
- let t = e2 || 0;
208
- if (o.TERM === "dumb")
209
- return t;
210
- if (L.platform === "win32") {
211
- let s = P.release().split(".");
212
- return Number(s[0]) >= 10 && Number(s[2]) >= 10586 ? Number(s[2]) >= 14931 ? 3 : 2 : 1;
213
- }
214
- if ("CI" in o)
215
- return "GITHUB_ACTIONS" in o || "GITEA_ACTIONS" in o ? 3 : ["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((s) => s in o) || o.CI_NAME === "codeship" ? 1 : t;
216
- if ("TEAMCITY_VERSION" in o)
217
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION) ? 1 : 0;
218
- if (o.COLORTERM === "truecolor" || o.TERM === "xterm-kitty")
219
- return 3;
220
- if ("TERM_PROGRAM" in o) {
221
- let s = Number.parseInt((o.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
222
- switch (o.TERM_PROGRAM) {
223
- case "iTerm.app":
224
- return s >= 3 ? 3 : 2;
225
- case "Apple_Terminal":
226
- return 2;
227
- }
228
- }
229
- return /-256(color)?$/i.test(o.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM) || "COLORTERM" in o ? 1 : t;
230
- }
231
- function I(r2, n = {}) {
232
- let i = V(r2, { streamIsTTY: r2 && r2.isTTY, ...n });
233
- return k(i);
234
- }
235
- var j = { stdout: I({ isTTY: _.isatty(1) }), stderr: I({ isTTY: _.isatty(2) }) };
236
- var T = j;
237
- var b = T.stdout ? T.stdout.level : 0;
238
- var B = /at\s.*:\d+:\d+[\s\)]*$/;
239
- var D = /^\s*at\s.*\(<anonymous>\)$/;
240
- var S = (r2) => B.test(r2) || D.test(r2);
241
- var g = (r2, n, i = r2) => b >= 2 ? (l2) => {
242
- let e2 = "" + l2, t = e2.indexOf(n, r2.length);
243
- return ~t ? r2 + A(e2, n, i, t) + n : r2 + e2 + n;
244
- } : String;
245
- var A = (r2, n, i, l2) => {
246
- let e2 = r2.substring(0, l2) + i, t = r2.substring(l2 + n.length), s = t.indexOf(n);
247
- return ~s ? e2 + A(t, n, i, s) : e2 + t;
248
- };
249
- var x = g("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m");
250
- var N = g("\x1B[31m", "\x1B[39m");
251
- var R = g("\x1B[32m", "\x1B[39m");
252
- var F = g("\x1B[33m", "\x1B[39m");
253
- var $ = g("\x1B[35m", "\x1B[39m");
254
- var d = g("\x1B[36m", "\x1B[39m");
255
- var C = g("\x1B[90m", "\x1B[39m");
256
- var y = [189, 255, 243];
257
- var M = [74, 194, 154];
258
- var G = (r2) => !/[\s\n]/.test(r2);
259
- var w = (r2) => {
260
- if (b < 3)
261
- return b === 2 ? x(d(r2)) : r2;
262
- let n = [...r2], i = n.filter(G).length, l2 = y[0], e2 = y[1], t = y[2], s = (M[0] - l2) / i, p = (M[1] - e2) / i, f2 = (M[2] - t) / i, a3 = "";
263
- for (let u of n)
264
- G(u) && (l2 += s, e2 += p, t += f2), a3 += `\x1B[38;2;${Math.round(l2)};${Math.round(e2)};${Math.round(t)}m${u}\x1B[39m`;
265
- return x(a3);
266
- };
267
- var v = { error: 0, warn: 1, info: 2, log: 3, verbose: 4 };
268
- var E = { error: { label: "error", level: "error", color: N }, warn: { label: "warn", level: "warn", color: F }, info: { label: "info", level: "info", color: d }, start: { label: "start", level: "info", color: d }, ready: { label: "ready", level: "info", color: R }, success: { label: "success", level: "info", color: R }, log: { level: "log" }, debug: { label: "debug", level: "verbose", color: $ } };
269
- var h = (r2 = {}) => {
270
- let n = r2.level || "log", i = (e2, t, ...s) => {
271
- if (v[E[e2].level] > v[n])
272
- return;
273
- if (t == null)
274
- return console.log();
275
- let p = E[e2], f2 = "", a3 = "";
276
- if ("label" in p && (f2 = (p.label || "").padEnd(7), f2 = x(p.color ? p.color(f2) : f2)), t instanceof Error)
277
- if (t.stack) {
278
- let [u, ...m2] = t.stack.split(`
279
- `);
280
- u.startsWith("Error: ") && (u = u.slice(7)), a3 = `${u}
281
- ${C(m2.join(`
282
- `))}`;
283
- } else
284
- a3 = t.message;
285
- else
286
- p.level === "error" && typeof t == "string" ? a3 = t.split(`
287
- `).map((m2) => S(m2) ? C(m2) : m2).join(`
288
- `) : a3 = `${t}`;
289
- console.log(f2.length ? `${f2} ${a3}` : a3, ...s);
290
- }, l2 = { greet: (e2) => i("log", w(e2)) };
291
- return Object.keys(E).forEach((e2) => {
292
- l2[e2] = (...t) => i(e2, ...t);
293
- }), Object.defineProperty(l2, "level", { get: () => n, set(e2) {
294
- n = e2;
295
- } }), l2.override = (e2) => {
296
- Object.assign(l2, e2);
297
- }, l2;
298
- };
299
- var ar = h();
300
-
301
172
  // ../../node_modules/.pnpm/@clack+prompts@0.7.0/node_modules/@clack/prompts/dist/index.mjs
302
173
  init_esm();
303
174
 
@@ -305,23 +176,23 @@ init_esm();
305
176
  init_esm();
306
177
  var import_sisteransi = __toESM(require_src(), 1);
307
178
  var import_picocolors = __toESM(require_picocolors(), 1);
308
- import { stdin as $2, stdout as k2 } from "process";
179
+ import { stdin as $, stdout as k } from "process";
309
180
  import * as f from "readline";
310
- import _2 from "readline";
181
+ import _ from "readline";
311
182
  import { WriteStream as U } from "tty";
312
183
  function q({ onlyFirst: t = false } = {}) {
313
184
  const u = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");
314
185
  return new RegExp(u, t ? void 0 : "g");
315
186
  }
316
- function S2(t) {
187
+ function S(t) {
317
188
  if (typeof t != "string")
318
189
  throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);
319
190
  return t.replace(q(), "");
320
191
  }
321
- function j2(t) {
192
+ function j(t) {
322
193
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
323
194
  }
324
- var M2 = { exports: {} };
195
+ var M = { exports: {} };
325
196
  (function(t) {
326
197
  var u = {};
327
198
  t.exports = u, u.eastAsianWidth = function(e2) {
@@ -351,15 +222,15 @@ var M2 = { exports: {} };
351
222
  }
352
223
  return D2;
353
224
  };
354
- })(M2);
355
- var J = M2.exports;
356
- var Q = j2(J);
225
+ })(M);
226
+ var J = M.exports;
227
+ var Q = j(J);
357
228
  var X = function() {
358
229
  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;
359
230
  };
360
- var DD = j2(X);
361
- function A2(t, u = {}) {
362
- if (typeof t != "string" || t.length === 0 || (u = { ambiguousIsNarrow: true, ...u }, t = S2(t), t.length === 0))
231
+ var DD = j(X);
232
+ function A(t, u = {}) {
233
+ if (typeof t != "string" || t.length === 0 || (u = { ambiguousIsNarrow: true, ...u }, t = S(t), t.length === 0))
363
234
  return 0;
364
235
  t = t.replace(DD(), " ");
365
236
  const F2 = u.ambiguousIsNarrow ? 1 : 2;
@@ -383,8 +254,8 @@ function A2(t, u = {}) {
383
254
  return e2;
384
255
  }
385
256
  var m = 10;
386
- var T2 = (t = 0) => (u) => `\x1B[${u + t}m`;
387
- var P2 = (t = 0) => (u) => `\x1B[${38 + t};5;${u}m`;
257
+ var T = (t = 0) => (u) => `\x1B[${u + t}m`;
258
+ var P = (t = 0) => (u) => `\x1B[${38 + t};5;${u}m`;
388
259
  var W = (t = 0) => (u, F2, e2) => `\x1B[${38 + t};2;${u};${F2};${e2}m`;
389
260
  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] } };
390
261
  Object.keys(r.modifier);
@@ -398,7 +269,7 @@ function tD() {
398
269
  r[e2] = { open: `\x1B[${s[0]}m`, close: `\x1B[${s[1]}m` }, F2[e2] = r[e2], t.set(s[0], s[1]);
399
270
  Object.defineProperty(r, u, { value: F2, enumerable: false });
400
271
  }
401
- return Object.defineProperty(r, "codes", { value: t, enumerable: false }), r.color.close = "\x1B[39m", r.bgColor.close = "\x1B[49m", r.color.ansi = T2(), r.color.ansi256 = P2(), r.color.ansi16m = W(), r.bgColor.ansi = T2(m), r.bgColor.ansi256 = P2(m), r.bgColor.ansi16m = W(m), Object.defineProperties(r, { rgbToAnsi256: { value: (u, F2, e2) => u === F2 && F2 === e2 ? u < 8 ? 16 : u > 248 ? 231 : Math.round((u - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u / 255 * 5) + 6 * Math.round(F2 / 255 * 5) + Math.round(e2 / 255 * 5), enumerable: false }, hexToRgb: { value: (u) => {
272
+ return Object.defineProperty(r, "codes", { value: t, enumerable: false }), r.color.close = "\x1B[39m", r.bgColor.close = "\x1B[49m", r.color.ansi = T(), r.color.ansi256 = P(), r.color.ansi16m = W(), r.bgColor.ansi = T(m), r.bgColor.ansi256 = P(m), r.bgColor.ansi16m = W(m), Object.defineProperties(r, { rgbToAnsi256: { value: (u, F2, e2) => u === F2 && F2 === e2 ? u < 8 ? 16 : u > 248 ? 231 : Math.round((u - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u / 255 * 5) + 6 * Math.round(F2 / 255 * 5) + Math.round(e2 / 255 * 5), enumerable: false }, hexToRgb: { value: (u) => {
402
273
  const F2 = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));
403
274
  if (!F2)
404
275
  return [0, 0, 0];
@@ -427,23 +298,23 @@ function tD() {
427
298
  }, enumerable: false }, rgbToAnsi: { value: (u, F2, e2) => r.ansi256ToAnsi(r.rgbToAnsi256(u, F2, e2)), enumerable: false }, hexToAnsi: { value: (u) => r.ansi256ToAnsi(r.hexToAnsi256(u)), enumerable: false } }), r;
428
299
  }
429
300
  var eD = tD();
430
- var g2 = /* @__PURE__ */ new Set(["\x1B", "›"]);
301
+ var g = /* @__PURE__ */ new Set(["\x1B", "›"]);
431
302
  var sD = 39;
432
- var b2 = "\x07";
433
- var O2 = "[";
303
+ var b = "\x07";
304
+ var O = "[";
434
305
  var CD = "]";
435
- var I2 = "m";
436
- var w2 = `${CD}8;;`;
437
- var N2 = (t) => `${g2.values().next().value}${O2}${t}${I2}`;
438
- var L2 = (t) => `${g2.values().next().value}${w2}${t}${b2}`;
439
- var iD = (t) => t.split(" ").map((u) => A2(u));
440
- var y2 = (t, u, F2) => {
306
+ var I = "m";
307
+ var w = `${CD}8;;`;
308
+ var N = (t) => `${g.values().next().value}${O}${t}${I}`;
309
+ var L = (t) => `${g.values().next().value}${w}${t}${b}`;
310
+ var iD = (t) => t.split(" ").map((u) => A(u));
311
+ var y = (t, u, F2) => {
441
312
  const e2 = [...u];
442
- let s = false, C3 = false, D2 = A2(S2(t[t.length - 1]));
313
+ let s = false, C3 = false, D2 = A(S(t[t.length - 1]));
443
314
  for (const [i, n] of e2.entries()) {
444
- const E3 = A2(n);
445
- if (D2 + E3 <= F2 ? t[t.length - 1] += n : (t.push(n), D2 = 0), g2.has(n) && (s = true, C3 = e2.slice(i + 1).join("").startsWith(w2)), s) {
446
- C3 ? n === b2 && (s = false, C3 = false) : n === I2 && (s = false);
315
+ const E3 = A(n);
316
+ if (D2 + E3 <= F2 ? t[t.length - 1] += n : (t.push(n), D2 = 0), g.has(n) && (s = true, C3 = e2.slice(i + 1).join("").startsWith(w)), s) {
317
+ C3 ? n === b && (s = false, C3 = false) : n === I && (s = false);
447
318
  continue;
448
319
  }
449
320
  D2 += E3, D2 === F2 && i < e2.length - 1 && (t.push(""), D2 = 0);
@@ -453,7 +324,7 @@ var y2 = (t, u, F2) => {
453
324
  var rD = (t) => {
454
325
  const u = t.split(" ");
455
326
  let F2 = u.length;
456
- for (; F2 > 0 && !(A2(u[F2 - 1]) > 0); )
327
+ for (; F2 > 0 && !(A(u[F2 - 1]) > 0); )
457
328
  F2--;
458
329
  return F2 === u.length ? t : u.slice(0, F2).join(" ") + u.slice(F2).join("");
459
330
  };
@@ -465,21 +336,21 @@ var ED = (t, u, F2 = {}) => {
465
336
  let i = [""];
466
337
  for (const [E3, h3] of t.split(" ").entries()) {
467
338
  F2.trim !== false && (i[i.length - 1] = i[i.length - 1].trimStart());
468
- let o3 = A2(i[i.length - 1]);
339
+ let o3 = A(i[i.length - 1]);
469
340
  if (E3 !== 0 && (o3 >= u && (F2.wordWrap === false || F2.trim === false) && (i.push(""), o3 = 0), (o3 > 0 || F2.trim === false) && (i[i.length - 1] += " ", o3++)), F2.hard && D2[E3] > u) {
470
341
  const B3 = u - o3, p = 1 + Math.floor((D2[E3] - B3 - 1) / u);
471
- Math.floor((D2[E3] - 1) / u) < p && i.push(""), y2(i, h3, u);
342
+ Math.floor((D2[E3] - 1) / u) < p && i.push(""), y(i, h3, u);
472
343
  continue;
473
344
  }
474
345
  if (o3 + D2[E3] > u && o3 > 0 && D2[E3] > 0) {
475
346
  if (F2.wordWrap === false && o3 < u) {
476
- y2(i, h3, u);
347
+ y(i, h3, u);
477
348
  continue;
478
349
  }
479
350
  i.push("");
480
351
  }
481
352
  if (o3 + D2[E3] > u && F2.wordWrap === false) {
482
- y2(i, h3, u);
353
+ y(i, h3, u);
483
354
  continue;
484
355
  }
485
356
  i[i.length - 1] += h3;
@@ -488,8 +359,8 @@ var ED = (t, u, F2 = {}) => {
488
359
  const n = [...i.join(`
489
360
  `)];
490
361
  for (const [E3, h3] of n.entries()) {
491
- if (e2 += h3, g2.has(h3)) {
492
- const { groups: B3 } = new RegExp(`(?:\\${O2}(?<code>\\d+)m|\\${w2}(?<uri>.*)${b2})`).exec(n.slice(E3).join("")) || { groups: {} };
362
+ if (e2 += h3, g.has(h3)) {
363
+ const { groups: B3 } = new RegExp(`(?:\\${O}(?<code>\\d+)m|\\${w}(?<uri>.*)${b})`).exec(n.slice(E3).join("")) || { groups: {} };
493
364
  if (B3.code !== void 0) {
494
365
  const p = Number.parseFloat(B3.code);
495
366
  s = p === sD ? void 0 : p;
@@ -498,12 +369,12 @@ var ED = (t, u, F2 = {}) => {
498
369
  }
499
370
  const o3 = eD.codes.get(Number(s));
500
371
  n[E3 + 1] === `
501
- ` ? (C3 && (e2 += L2("")), s && o3 && (e2 += N2(o3))) : h3 === `
502
- ` && (s && o3 && (e2 += N2(s)), C3 && (e2 += L2(C3)));
372
+ ` ? (C3 && (e2 += L("")), s && o3 && (e2 += N(o3))) : h3 === `
373
+ ` && (s && o3 && (e2 += N(s)), C3 && (e2 += L(C3)));
503
374
  }
504
375
  return e2;
505
376
  };
506
- function R2(t, u, F2) {
377
+ function R(t, u, F2) {
507
378
  return String(t).normalize().replace(/\r\n/g, `
508
379
  `).split(`
509
380
  `).map((e2) => ED(e2, u, F2)).join(`
@@ -522,28 +393,28 @@ function aD(t, u) {
522
393
  F2[C3] !== e2[C3] && s.push(C3);
523
394
  return s;
524
395
  }
525
- var V2 = Symbol("clack:cancel");
396
+ var V = Symbol("clack:cancel");
526
397
  function hD(t) {
527
- return t === V2;
398
+ return t === V;
528
399
  }
529
- function v2(t, u) {
400
+ function v(t, u) {
530
401
  t.isTTY && t.setRawMode(u);
531
402
  }
532
403
  var z = /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"]]);
533
404
  var lD = /* @__PURE__ */ new Set(["up", "down", "left", "right", "space", "enter"]);
534
- var x2 = class {
535
- constructor({ render: u, input: F2 = $2, output: e2 = k2, ...s }, C3 = true) {
405
+ var x = class {
406
+ constructor({ render: u, input: F2 = $, output: e2 = k, ...s }, C3 = true) {
536
407
  a(this, "input"), a(this, "output"), a(this, "rl"), a(this, "opts"), a(this, "_track", false), a(this, "_render"), a(this, "_cursor", 0), a(this, "state", "initial"), a(this, "value"), a(this, "error", ""), a(this, "subscribers", /* @__PURE__ */ new Map()), a(this, "_prevFrame", ""), this.opts = s, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = u.bind(this), this._track = C3, this.input = F2, this.output = e2;
537
408
  }
538
409
  prompt() {
539
410
  const u = new U(0);
540
411
  return u._write = (F2, e2, s) => {
541
412
  this._track && (this.value = this.rl.line.replace(/\t/g, ""), this._cursor = this.rl.cursor, this.emit("value", this.value)), s();
542
- }, this.input.pipe(u), this.rl = _2.createInterface({ input: this.input, output: u, tabSize: 2, prompt: "", escapeCodeTimeout: 50 }), _2.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), v2(this.input, true), this.output.on("resize", this.render), this.render(), new Promise((F2, e2) => {
413
+ }, this.input.pipe(u), this.rl = _.createInterface({ input: this.input, output: u, tabSize: 2, prompt: "", escapeCodeTimeout: 50 }), _.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), v(this.input, true), this.output.on("resize", this.render), this.render(), new Promise((F2, e2) => {
543
414
  this.once("submit", () => {
544
- this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), v2(this.input, false), F2(this.value);
415
+ this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), v(this.input, false), F2(this.value);
545
416
  }), this.once("cancel", () => {
546
- this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), v2(this.input, false), F2(V2);
417
+ this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), v(this.input, false), F2(V);
547
418
  });
548
419
  });
549
420
  }
@@ -577,15 +448,15 @@ var x2 = class {
577
448
  }
578
449
  close() {
579
450
  this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
580
- `), v2(this.input, false), this.rl.close(), this.emit(`${this.state}`, this.value), this.unsubscribe();
451
+ `), v(this.input, false), this.rl.close(), this.emit(`${this.state}`, this.value), this.unsubscribe();
581
452
  }
582
453
  restoreCursor() {
583
- const u = R2(this._prevFrame, process.stdout.columns, { hard: true }).split(`
454
+ const u = R(this._prevFrame, process.stdout.columns, { hard: true }).split(`
584
455
  `).length - 1;
585
456
  this.output.write(import_sisteransi.cursor.move(-999, u * -1));
586
457
  }
587
458
  render() {
588
- const u = R2(this._render(this) ?? "", process.stdout.columns, { hard: true });
459
+ const u = R(this._render(this) ?? "", process.stdout.columns, { hard: true });
589
460
  if (u !== this._prevFrame) {
590
461
  if (this.state === "initial")
591
462
  this.output.write(import_sisteransi.cursor.hide);
@@ -616,7 +487,7 @@ var x2 = class {
616
487
  var bD = Object.defineProperty;
617
488
  var wD = (t, u, F2) => u in t ? bD(t, u, { enumerable: true, configurable: true, writable: true, value: F2 }) : t[u] = F2;
618
489
  var Z = (t, u, F2) => (wD(t, typeof u != "symbol" ? u + "" : u, F2), F2);
619
- var yD = class extends x2 {
490
+ var yD = class extends x {
620
491
  constructor(u) {
621
492
  super(u, false), Z(this, "options"), Z(this, "cursor", 0), this.options = u.options, this.cursor = this.options.findIndex(({ value: F2 }) => F2 === u.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (F2) => {
622
493
  switch (F2) {
@@ -642,7 +513,7 @@ var yD = class extends x2 {
642
513
  var SD = Object.defineProperty;
643
514
  var jD = (t, u, F2) => u in t ? SD(t, u, { enumerable: true, configurable: true, writable: true, value: F2 }) : t[u] = F2;
644
515
  var MD = (t, u, F2) => (jD(t, typeof u != "symbol" ? u + "" : u, F2), F2);
645
- var TD = class extends x2 {
516
+ var TD = class extends x {
646
517
  constructor(u) {
647
518
  super(u), MD(this, "valueWithCursor", ""), this.on("finalize", () => {
648
519
  this.value || (this.value = u.defaultValue), this.valueWithCursor = this.value;
@@ -664,55 +535,55 @@ var PD = globalThis.process.platform.startsWith("win");
664
535
  // ../../node_modules/.pnpm/@clack+prompts@0.7.0/node_modules/@clack/prompts/dist/index.mjs
665
536
  var import_picocolors2 = __toESM(require_picocolors(), 1);
666
537
  var import_sisteransi2 = __toESM(require_src(), 1);
667
- import h2 from "process";
538
+ import h from "process";
668
539
  function q2() {
669
- return h2.platform !== "win32" ? h2.env.TERM !== "linux" : Boolean(h2.env.CI) || Boolean(h2.env.WT_SESSION) || Boolean(h2.env.TERMINUS_SUBLIME) || h2.env.ConEmuTask === "{cmd::Cmder}" || h2.env.TERM_PROGRAM === "Terminus-Sublime" || h2.env.TERM_PROGRAM === "vscode" || h2.env.TERM === "xterm-256color" || h2.env.TERM === "alacritty" || h2.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
540
+ return h.platform !== "win32" ? h.env.TERM !== "linux" : Boolean(h.env.CI) || Boolean(h.env.WT_SESSION) || Boolean(h.env.TERMINUS_SUBLIME) || h.env.ConEmuTask === "{cmd::Cmder}" || h.env.TERM_PROGRAM === "Terminus-Sublime" || h.env.TERM_PROGRAM === "vscode" || h.env.TERM === "xterm-256color" || h.env.TERM === "alacritty" || h.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
670
541
  }
671
- var _3 = q2();
672
- var o2 = (r2, n) => _3 ? r2 : n;
673
- var H = o2("◆", "*");
674
- var I3 = o2("■", "x");
675
- var x3 = o2("▲", "x");
676
- var S3 = o2("◇", "o");
677
- var K = o2("┌", "T");
678
- var a2 = o2("│", "|");
679
- var d3 = o2("└", "—");
680
- var b3 = o2("●", ">");
681
- var E2 = o2("○", " ");
682
- var C2 = o2("◻", "[•]");
683
- var w3 = o2("◼", "[+]");
684
- var M3 = o2("◻", "[ ]");
685
- var U2 = o2("▪", "•");
686
- var B2 = o2("─", "-");
687
- var Z2 = o2("╮", "+");
688
- var z2 = o2("├", "+");
689
- var X2 = o2("╯", "+");
690
- var J2 = o2("●", "•");
691
- var Y2 = o2("◆", "*");
692
- var Q2 = o2("▲", "!");
693
- var ee = o2("■", "x");
694
- var y3 = (r2) => {
542
+ var _2 = q2();
543
+ var o = (r2, n) => _2 ? r2 : n;
544
+ var H = o("◆", "*");
545
+ var I2 = o("■", "x");
546
+ var x2 = o("▲", "x");
547
+ var S2 = o("◇", "o");
548
+ var K = o("┌", "T");
549
+ var a2 = o("│", "|");
550
+ var d2 = o("└", "—");
551
+ var b2 = o("●", ">");
552
+ var E = o("○", " ");
553
+ var C = o("◻", "[•]");
554
+ var w2 = o("◼", "[+]");
555
+ var M2 = o("◻", "[ ]");
556
+ var U2 = o("▪", "•");
557
+ var B = o("─", "-");
558
+ var Z2 = o("╮", "+");
559
+ var z2 = o("├", "+");
560
+ var X2 = o("╯", "+");
561
+ var J2 = o("●", "•");
562
+ var Y = o("◆", "*");
563
+ var Q2 = o("▲", "!");
564
+ var ee = o("■", "x");
565
+ var y2 = (r2) => {
695
566
  switch (r2) {
696
567
  case "initial":
697
568
  case "active":
698
569
  return import_picocolors2.default.cyan(H);
699
570
  case "cancel":
700
- return import_picocolors2.default.red(I3);
571
+ return import_picocolors2.default.red(I2);
701
572
  case "error":
702
- return import_picocolors2.default.yellow(x3);
573
+ return import_picocolors2.default.yellow(x2);
703
574
  case "submit":
704
- return import_picocolors2.default.green(S3);
575
+ return import_picocolors2.default.green(S2);
705
576
  }
706
577
  };
707
578
  var te = (r2) => new TD({ validate: r2.validate, placeholder: r2.placeholder, defaultValue: r2.defaultValue, initialValue: r2.initialValue, render() {
708
579
  const n = `${import_picocolors2.default.gray(a2)}
709
- ${y3(this.state)} ${r2.message}
580
+ ${y2(this.state)} ${r2.message}
710
581
  `, i = r2.placeholder ? import_picocolors2.default.inverse(r2.placeholder[0]) + import_picocolors2.default.dim(r2.placeholder.slice(1)) : import_picocolors2.default.inverse(import_picocolors2.default.hidden("_")), t = this.value ? this.valueWithCursor : i;
711
582
  switch (this.state) {
712
583
  case "error":
713
584
  return `${n.trim()}
714
585
  ${import_picocolors2.default.yellow(a2)} ${t}
715
- ${import_picocolors2.default.yellow(d3)} ${import_picocolors2.default.yellow(this.error)}
586
+ ${import_picocolors2.default.yellow(d2)} ${import_picocolors2.default.yellow(this.error)}
716
587
  `;
717
588
  case "submit":
718
589
  return `${n}${import_picocolors2.default.gray(a2)} ${import_picocolors2.default.dim(this.value || r2.placeholder)}`;
@@ -721,19 +592,19 @@ ${import_picocolors2.default.yellow(d3)} ${import_picocolors2.default.yellow(th
721
592
  ` + import_picocolors2.default.gray(a2) : ""}`;
722
593
  default:
723
594
  return `${n}${import_picocolors2.default.cyan(a2)} ${t}
724
- ${import_picocolors2.default.cyan(d3)}
595
+ ${import_picocolors2.default.cyan(d2)}
725
596
  `;
726
597
  }
727
598
  } }).prompt();
728
599
  var ie = (r2) => {
729
600
  const n = (t, s) => {
730
601
  const c3 = t.label ?? String(t.value);
731
- return s === "active" ? `${import_picocolors2.default.green(b3)} ${c3} ${t.hint ? import_picocolors2.default.dim(`(${t.hint})`) : ""}` : s === "selected" ? `${import_picocolors2.default.dim(c3)}` : s === "cancelled" ? `${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(c3))}` : `${import_picocolors2.default.dim(E2)} ${import_picocolors2.default.dim(c3)}`;
602
+ return s === "active" ? `${import_picocolors2.default.green(b2)} ${c3} ${t.hint ? import_picocolors2.default.dim(`(${t.hint})`) : ""}` : s === "selected" ? `${import_picocolors2.default.dim(c3)}` : s === "cancelled" ? `${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(c3))}` : `${import_picocolors2.default.dim(E)} ${import_picocolors2.default.dim(c3)}`;
732
603
  };
733
604
  let i = 0;
734
605
  return new yD({ options: r2.options, initialValue: r2.initialValue, render() {
735
606
  const t = `${import_picocolors2.default.gray(a2)}
736
- ${y3(this.state)} ${r2.message}
607
+ ${y2(this.state)} ${r2.message}
737
608
  `;
738
609
  switch (this.state) {
739
610
  case "submit":
@@ -747,33 +618,33 @@ ${import_picocolors2.default.gray(a2)}`;
747
618
  const c3 = s < this.options.length && i > 0, l2 = s < this.options.length && i + s < this.options.length;
748
619
  return `${t}${import_picocolors2.default.cyan(a2)} ${this.options.slice(i, i + s).map((u, m2, $3) => m2 === 0 && c3 ? import_picocolors2.default.dim("...") : m2 === $3.length - 1 && l2 ? import_picocolors2.default.dim("...") : n(u, m2 + i === this.cursor ? "active" : "inactive")).join(`
749
620
  ${import_picocolors2.default.cyan(a2)} `)}
750
- ${import_picocolors2.default.cyan(d3)}
621
+ ${import_picocolors2.default.cyan(d2)}
751
622
  `;
752
623
  }
753
624
  }
754
625
  } }).prompt();
755
626
  };
756
- var R3 = (r2) => r2.replace(me(), "");
627
+ var R2 = (r2) => r2.replace(me(), "");
757
628
  var le = (r2 = "", n = "") => {
758
629
  const i = `
759
630
  ${r2}
760
631
  `.split(`
761
- `), t = R3(n).length, s = Math.max(i.reduce((l2, u) => (u = R3(u), u.length > l2 ? u.length : l2), 0), t) + 2, c3 = i.map((l2) => `${import_picocolors2.default.gray(a2)} ${import_picocolors2.default.dim(l2)}${" ".repeat(s - R3(l2).length)}${import_picocolors2.default.gray(a2)}`).join(`
632
+ `), t = R2(n).length, s = Math.max(i.reduce((l2, u) => (u = R2(u), u.length > l2 ? u.length : l2), 0), t) + 2, c3 = i.map((l2) => `${import_picocolors2.default.gray(a2)} ${import_picocolors2.default.dim(l2)}${" ".repeat(s - R2(l2).length)}${import_picocolors2.default.gray(a2)}`).join(`
762
633
  `);
763
634
  process.stdout.write(`${import_picocolors2.default.gray(a2)}
764
- ${import_picocolors2.default.green(S3)} ${import_picocolors2.default.reset(n)} ${import_picocolors2.default.gray(B2.repeat(Math.max(s - t - 1, 1)) + Z2)}
635
+ ${import_picocolors2.default.green(S2)} ${import_picocolors2.default.reset(n)} ${import_picocolors2.default.gray(B.repeat(Math.max(s - t - 1, 1)) + Z2)}
765
636
  ${c3}
766
- ${import_picocolors2.default.gray(z2 + B2.repeat(s + 2) + X2)}
637
+ ${import_picocolors2.default.gray(z2 + B.repeat(s + 2) + X2)}
767
638
  `);
768
639
  };
769
640
  var ue = (r2 = "") => {
770
- process.stdout.write(`${import_picocolors2.default.gray(d3)} ${import_picocolors2.default.red(r2)}
641
+ process.stdout.write(`${import_picocolors2.default.gray(d2)} ${import_picocolors2.default.red(r2)}
771
642
 
772
643
  `);
773
644
  };
774
645
  var $e = (r2 = "") => {
775
646
  process.stdout.write(`${import_picocolors2.default.gray(a2)}
776
- ${import_picocolors2.default.gray(d3)} ${r2}
647
+ ${import_picocolors2.default.gray(d2)} ${r2}
777
648
 
778
649
  `);
779
650
  };
@@ -782,6 +653,135 @@ function me() {
782
653
  return new RegExp(r2, "g");
783
654
  }
784
655
 
656
+ // ../../node_modules/.pnpm/rslog@1.2.1/node_modules/rslog/dist/index.mjs
657
+ init_esm();
658
+ import L2 from "process";
659
+ import P2 from "os";
660
+ import _3 from "tty";
661
+ function c2(r2, n = globalThis.Deno ? globalThis.Deno.args : L2.argv) {
662
+ let i = r2.startsWith("-") ? "" : r2.length === 1 ? "-" : "--", l2 = n.indexOf(i + r2), e2 = n.indexOf("--");
663
+ return l2 !== -1 && (e2 === -1 || l2 < e2);
664
+ }
665
+ var { env: o2 } = L2;
666
+ var O2;
667
+ c2("no-color") || c2("no-colors") || c2("color=false") || c2("color=never") ? O2 = 0 : (c2("color") || c2("colors") || c2("color=true") || c2("color=always")) && (O2 = 1);
668
+ function Y2() {
669
+ if ("FORCE_COLOR" in o2)
670
+ return o2.FORCE_COLOR === "true" ? 1 : o2.FORCE_COLOR === "false" ? 0 : o2.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(o2.FORCE_COLOR, 10), 3);
671
+ }
672
+ function k2(r2) {
673
+ return r2 === 0 ? false : { level: r2, hasBasic: true, has256: r2 >= 2, has16m: r2 >= 3 };
674
+ }
675
+ function V2(r2, { streamIsTTY: n, sniffFlags: i = true } = {}) {
676
+ let l2 = Y2();
677
+ l2 !== void 0 && (O2 = l2);
678
+ let e2 = i ? O2 : l2;
679
+ if (e2 === 0)
680
+ return 0;
681
+ if (i) {
682
+ if (c2("color=16m") || c2("color=full") || c2("color=truecolor"))
683
+ return 3;
684
+ if (c2("color=256"))
685
+ return 2;
686
+ }
687
+ if ("TF_BUILD" in o2 && "AGENT_NAME" in o2)
688
+ return 1;
689
+ if (r2 && !n && e2 === void 0)
690
+ return 0;
691
+ let t = e2 || 0;
692
+ if (o2.TERM === "dumb")
693
+ return t;
694
+ if (L2.platform === "win32") {
695
+ let s = P2.release().split(".");
696
+ return Number(s[0]) >= 10 && Number(s[2]) >= 10586 ? Number(s[2]) >= 14931 ? 3 : 2 : 1;
697
+ }
698
+ if ("CI" in o2)
699
+ return "GITHUB_ACTIONS" in o2 || "GITEA_ACTIONS" in o2 ? 3 : ["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((s) => s in o2) || o2.CI_NAME === "codeship" ? 1 : t;
700
+ if ("TEAMCITY_VERSION" in o2)
701
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o2.TEAMCITY_VERSION) ? 1 : 0;
702
+ if (o2.COLORTERM === "truecolor" || o2.TERM === "xterm-kitty")
703
+ return 3;
704
+ if ("TERM_PROGRAM" in o2) {
705
+ let s = Number.parseInt((o2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
706
+ switch (o2.TERM_PROGRAM) {
707
+ case "iTerm.app":
708
+ return s >= 3 ? 3 : 2;
709
+ case "Apple_Terminal":
710
+ return 2;
711
+ }
712
+ }
713
+ return /-256(color)?$/i.test(o2.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o2.TERM) || "COLORTERM" in o2 ? 1 : t;
714
+ }
715
+ function I3(r2, n = {}) {
716
+ let i = V2(r2, { streamIsTTY: r2 && r2.isTTY, ...n });
717
+ return k2(i);
718
+ }
719
+ var j2 = { stdout: I3({ isTTY: _3.isatty(1) }), stderr: I3({ isTTY: _3.isatty(2) }) };
720
+ var T3 = j2;
721
+ var b3 = T3.stdout ? T3.stdout.level : 0;
722
+ var B2 = /at\s.*:\d+:\d+[\s\)]*$/;
723
+ var D = /^\s*at\s.*\(<anonymous>\)$/;
724
+ var S3 = (r2) => B2.test(r2) || D.test(r2);
725
+ var g2 = (r2, n, i = r2) => b3 >= 2 ? (l2) => {
726
+ let e2 = "" + l2, t = e2.indexOf(n, r2.length);
727
+ return ~t ? r2 + A3(e2, n, i, t) + n : r2 + e2 + n;
728
+ } : String;
729
+ var A3 = (r2, n, i, l2) => {
730
+ let e2 = r2.substring(0, l2) + i, t = r2.substring(l2 + n.length), s = t.indexOf(n);
731
+ return ~s ? e2 + A3(t, n, i, s) : e2 + t;
732
+ };
733
+ var x3 = g2("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m");
734
+ var N2 = g2("\x1B[31m", "\x1B[39m");
735
+ var R3 = g2("\x1B[32m", "\x1B[39m");
736
+ var F = g2("\x1B[33m", "\x1B[39m");
737
+ var $2 = g2("\x1B[35m", "\x1B[39m");
738
+ var d3 = g2("\x1B[36m", "\x1B[39m");
739
+ var C2 = g2("\x1B[90m", "\x1B[39m");
740
+ var y3 = [189, 255, 243];
741
+ var M3 = [74, 194, 154];
742
+ var G = (r2) => !/[\s\n]/.test(r2);
743
+ var w3 = (r2) => {
744
+ if (b3 < 3)
745
+ return b3 === 2 ? x3(d3(r2)) : r2;
746
+ let n = [...r2], i = n.filter(G).length, l2 = y3[0], e2 = y3[1], t = y3[2], s = (M3[0] - l2) / i, p = (M3[1] - e2) / i, f2 = (M3[2] - t) / i, a3 = "";
747
+ for (let u of n)
748
+ G(u) && (l2 += s, e2 += p, t += f2), a3 += `\x1B[38;2;${Math.round(l2)};${Math.round(e2)};${Math.round(t)}m${u}\x1B[39m`;
749
+ return x3(a3);
750
+ };
751
+ var v2 = { error: 0, warn: 1, info: 2, log: 3, verbose: 4 };
752
+ var E2 = { error: { label: "error", level: "error", color: N2 }, warn: { label: "warn", level: "warn", color: F }, info: { label: "info", level: "info", color: d3 }, start: { label: "start", level: "info", color: d3 }, ready: { label: "ready", level: "info", color: R3 }, success: { label: "success", level: "info", color: R3 }, log: { level: "log" }, debug: { label: "debug", level: "verbose", color: $2 } };
753
+ var h2 = (r2 = {}) => {
754
+ let n = r2.level || "log", i = (e2, t, ...s) => {
755
+ if (v2[E2[e2].level] > v2[n])
756
+ return;
757
+ if (t == null)
758
+ return console.log();
759
+ let p = E2[e2], f2 = "", a3 = "";
760
+ if ("label" in p && (f2 = (p.label || "").padEnd(7), f2 = x3(p.color ? p.color(f2) : f2)), t instanceof Error)
761
+ if (t.stack) {
762
+ let [u, ...m2] = t.stack.split(`
763
+ `);
764
+ u.startsWith("Error: ") && (u = u.slice(7)), a3 = `${u}
765
+ ${C2(m2.join(`
766
+ `))}`;
767
+ } else
768
+ a3 = t.message;
769
+ else
770
+ p.level === "error" && typeof t == "string" ? a3 = t.split(`
771
+ `).map((m2) => S3(m2) ? C2(m2) : m2).join(`
772
+ `) : a3 = `${t}`;
773
+ console.log(f2.length ? `${f2} ${a3}` : a3, ...s);
774
+ }, l2 = { greet: (e2) => i("log", w3(e2)) };
775
+ return Object.keys(E2).forEach((e2) => {
776
+ l2[e2] = (...t) => i(e2, ...t);
777
+ }), Object.defineProperty(l2, "level", { get: () => n, set(e2) {
778
+ n = e2;
779
+ } }), l2.override = (e2) => {
780
+ Object.assign(l2, e2);
781
+ }, l2;
782
+ };
783
+ var ar = h2();
784
+
785
785
  // src/index.ts
786
786
  function checkCancel(value) {
787
787
  if (hD(value)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rsbuild",
3
- "version": "0.6.5",
3
+ "version": "0.6.6",
4
4
  "description": "Create a new Rsbuild project",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "repository": {
@@ -30,7 +30,7 @@
30
30
  ],
31
31
  "devDependencies": {
32
32
  "@clack/prompts": "^0.7.0",
33
- "@types/node": "16.x",
33
+ "@types/node": "18.x",
34
34
  "rslog": "^1.2.1",
35
35
  "typescript": "^5.4.2"
36
36
  },
@@ -1,5 +1,5 @@
1
- import './index.css';
2
1
  import App from './App.svelte';
2
+ import './index.css';
3
3
 
4
4
  const app = new App({
5
5
  target: document.body,
@@ -1,5 +1,5 @@
1
- import './index.css';
2
1
  import App from './App.svelte';
2
+ import './index.css';
3
3
 
4
4
  const app = new App({
5
5
  target: document.body,
@@ -1,6 +1,6 @@
1
- import './index.css';
2
1
  import Vue from 'vue';
3
2
  import App from './App.vue';
3
+ import './index.css';
4
4
 
5
5
  new Vue({
6
6
  el: '#root',
@@ -1,6 +1,6 @@
1
- import './index.css';
2
1
  import Vue from 'vue';
3
2
  import App from './App.vue';
3
+ import './index.css';
4
4
 
5
5
  new Vue({
6
6
  el: '#root',
@@ -1,5 +1,5 @@
1
- import './index.css';
2
1
  import { createApp } from 'vue';
3
2
  import App from './App.vue';
3
+ import './index.css';
4
4
 
5
5
  createApp(App).mount('#root');
@@ -1,5 +1,5 @@
1
- import './index.css';
2
1
  import { createApp } from 'vue';
3
2
  import App from './App.vue';
3
+ import './index.css';
4
4
 
5
5
  createApp(App).mount('#root');