@prosopo/client-example-server 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,8 @@
1
1
  var _a;
2
- import util$m from "node:util";
2
+ import util$m, { formatWithOptions } from "node:util";
3
+ import { sep } from "node:path";
4
+ import process$1$1 from "node:process";
5
+ import * as tty from "node:tty";
3
6
  import Stream$6, { Readable as Readable$3 } from "stream";
4
7
  import http$3 from "http";
5
8
  import Url from "url";
@@ -360,7 +363,7 @@ function hexToBigInt$1(value, { isLe = false, isNegative = false } = {}) {
360
363
  return !value || value === "0x" ? BigInt$2(0) : u8aToBigInt$1(hexToU8a$3(value), { isLe, isNegative });
361
364
  }
362
365
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
363
- function getDefaultExportFromCjs(x) {
366
+ function getDefaultExportFromCjs$1(x) {
364
367
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
365
368
  }
366
369
  function getAugmentedNamespace(n) {
@@ -3180,7 +3183,7 @@ var bn = { exports: {} };
3180
3183
  })(module2, commonjsGlobal);
3181
3184
  })(bn);
3182
3185
  var bnExports = bn.exports;
3183
- const BN = /* @__PURE__ */ getDefaultExportFromCjs(bnExports);
3186
+ const BN = /* @__PURE__ */ getDefaultExportFromCjs$1(bnExports);
3184
3187
  function isBn$1(value) {
3185
3188
  return BN.isBN(value);
3186
3189
  }
@@ -4219,9 +4222,9 @@ function parseEnv(type2) {
4219
4222
  }
4220
4223
  function logger(origin) {
4221
4224
  const type2 = `${origin.toUpperCase()}:`.padStart(16);
4222
- const [isDebug, maxSize] = parseEnv(origin.toLowerCase());
4225
+ const [isDebug2, maxSize] = parseEnv(origin.toLowerCase());
4223
4226
  return {
4224
- debug: isDebug ? (...values2) => apply("debug", type2, values2, maxSize) : noop$6,
4227
+ debug: isDebug2 ? (...values2) => apply("debug", type2, values2, maxSize) : noop$6,
4225
4228
  error: (...values2) => apply("error", type2, values2),
4226
4229
  log: (...values2) => apply("log", type2, values2),
4227
4230
  noop: noop$6,
@@ -13297,13 +13300,13 @@ function naclSecretbox(msg, nonce, key) {
13297
13300
  crypto_secretbox(c, m2, m2.length, nonce, key);
13298
13301
  return c.subarray(crypto_secretbox_BOXZEROBYTES);
13299
13302
  }
13300
- function naclSecretboxOpen(box, nonce, key) {
13301
- checkArrayTypes(box, nonce, key);
13303
+ function naclSecretboxOpen(box2, nonce, key) {
13304
+ checkArrayTypes(box2, nonce, key);
13302
13305
  checkLengths(key, nonce);
13303
- const c = new Uint8Array(crypto_secretbox_BOXZEROBYTES + box.length);
13306
+ const c = new Uint8Array(crypto_secretbox_BOXZEROBYTES + box2.length);
13304
13307
  const m2 = new Uint8Array(c.length);
13305
- for (let i = 0; i < box.length; i++)
13306
- c[i + crypto_secretbox_BOXZEROBYTES] = box[i];
13308
+ for (let i = 0; i < box2.length; i++)
13309
+ c[i + crypto_secretbox_BOXZEROBYTES] = box2[i];
13307
13310
  if (c.length < 32)
13308
13311
  return null;
13309
13312
  if (crypto_secretbox_open(m2, c, c.length, nonce, key) !== 0)
@@ -13632,7 +13635,7 @@ function fromU8a(u8a2, p, count2) {
13632
13635
  }
13633
13636
  return result;
13634
13637
  }
13635
- function init(seed, input) {
13638
+ function init$1(seed, input) {
13636
13639
  const state2 = {
13637
13640
  seed,
13638
13641
  u8a: new Uint8Array(32),
@@ -13669,7 +13672,7 @@ function init(seed, input) {
13669
13672
  return state2;
13670
13673
  }
13671
13674
  function xxhash64(input, initSeed) {
13672
- const { seed, u8a: u8a2, u8asize, v1: v16, v2: v22, v3, v4: v42 } = init(BigInt$1(initSeed), input);
13675
+ const { seed, u8a: u8a2, u8asize, v1: v16, v2: v22, v3, v4: v42 } = init$1(BigInt$1(initSeed), input);
13673
13676
  let p = 0;
13674
13677
  let h64 = U64 & BigInt$1(input.length) + (input.length >= 32 ? ((((rotl(v16, _1n$8) + rotl(v22, _7n) + rotl(v3, _12n) + rotl(v42, _18n) ^ P64_1 * rotl(v16 * P64_2, _31n)) * P64_1 + P64_4 ^ P64_1 * rotl(v22 * P64_2, _31n)) * P64_1 + P64_4 ^ P64_1 * rotl(v3 * P64_2, _31n)) * P64_1 + P64_4 ^ P64_1 * rotl(v42 * P64_2, _31n)) * P64_1 + P64_4 : seed + P64_5);
13675
13678
  while (p <= u8asize - 8) {
@@ -14465,7 +14468,7 @@ var eventemitter3 = { exports: {} };
14465
14468
  }
14466
14469
  })(eventemitter3);
14467
14470
  var eventemitter3Exports = eventemitter3.exports;
14468
- const EventEmitter$5 = /* @__PURE__ */ getDefaultExportFromCjs(eventemitter3Exports);
14471
+ const EventEmitter$5 = /* @__PURE__ */ getDefaultExportFromCjs$1(eventemitter3Exports);
14469
14472
  var constants$5 = {
14470
14473
  BINARY_TYPES: ["nodebuffer", "arraybuffer", "fragments"],
14471
14474
  EMPTY_BUFFER: Buffer.alloc(0),
@@ -17338,7 +17341,7 @@ function socketOnError() {
17338
17341
  this.destroy();
17339
17342
  }
17340
17343
  }
17341
- const WebSocket$2 = /* @__PURE__ */ getDefaultExportFromCjs(websocket);
17344
+ const WebSocket$2 = /* @__PURE__ */ getDefaultExportFromCjs$1(websocket);
17342
17345
  function evaluateThis(fn) {
17343
17346
  return fn("return this");
17344
17347
  }
@@ -32508,7 +32511,7 @@ function findClosing(value, start) {
32508
32511
  throw new Error(`Unable to find closing matching <> on '${value}' (start ${start})`);
32509
32512
  }
32510
32513
  function alias(src2, dest, withChecks = true) {
32511
- const from2 = new RegExp(`(^${src2}|${BOX_PRECEDING.map((box) => `\\${box}${src2}`).join("|")})`, "g");
32514
+ const from2 = new RegExp(`(^${src2}|${BOX_PRECEDING.map((box2) => `\\${box2}${src2}`).join("|")})`, "g");
32512
32515
  const to = (src3) => {
32513
32516
  from2.lastIndex = 0;
32514
32517
  return withChecks && BOX_PRECEDING.includes(src3[0]) ? `${src3[0]}${dest}` : dest;
@@ -32587,12 +32590,12 @@ function removeGenerics() {
32587
32590
  return (value) => {
32588
32591
  for (let i = 0, count2 = value.length; i < count2; i++) {
32589
32592
  if (value[i] === "<") {
32590
- const box = ALLOWED_BOXES.find((box2) => {
32591
- const start = i - box2.length;
32592
- return start >= 0 && value.substring(start, i) === box2 && // make sure it is stand-alone, i.e. don't catch ElectionResult<...> as Result<...>
32593
+ const box2 = ALLOWED_BOXES.find((box3) => {
32594
+ const start = i - box3.length;
32595
+ return start >= 0 && value.substring(start, i) === box3 && // make sure it is stand-alone, i.e. don't catch ElectionResult<...> as Result<...>
32593
32596
  (start === 0 || BOX_PRECEDING.includes(value[start - 1]));
32594
32597
  });
32595
- if (!box) {
32598
+ if (!box2) {
32596
32599
  const end2 = findClosing(value, i + 1);
32597
32600
  value = `${value.substring(0, i)}${value.substring(end2 + 1)}`;
32598
32601
  }
@@ -61204,7 +61207,7 @@ var toPropertyKeyExports = toPropertyKey.exports;
61204
61207
  module2.exports = _defineProperty2, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
61205
61208
  })(defineProperty);
61206
61209
  var definePropertyExports = defineProperty.exports;
61207
- const _defineProperty$2 = /* @__PURE__ */ getDefaultExportFromCjs(definePropertyExports);
61210
+ const _defineProperty$2 = /* @__PURE__ */ getDefaultExportFromCjs$1(definePropertyExports);
61208
61211
  var react = { exports: {} };
61209
61212
  var react_production_min = {};
61210
61213
  /**
@@ -63392,7 +63395,7 @@ var classCallCheck = { exports: {} };
63392
63395
  module2.exports = _classCallCheck2, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
63393
63396
  })(classCallCheck);
63394
63397
  var classCallCheckExports = classCallCheck.exports;
63395
- const _classCallCheck$2 = /* @__PURE__ */ getDefaultExportFromCjs(classCallCheckExports);
63398
+ const _classCallCheck$2 = /* @__PURE__ */ getDefaultExportFromCjs$1(classCallCheckExports);
63396
63399
  var createClass = { exports: {} };
63397
63400
  (function(module2) {
63398
63401
  var toPropertyKey2 = toPropertyKeyExports;
@@ -63419,7 +63422,7 @@ var createClass = { exports: {} };
63419
63422
  module2.exports = _createClass2, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
63420
63423
  })(createClass);
63421
63424
  var createClassExports = createClass.exports;
63422
- const _createClass$2 = /* @__PURE__ */ getDefaultExportFromCjs(createClassExports);
63425
+ const _createClass$2 = /* @__PURE__ */ getDefaultExportFromCjs$1(createClassExports);
63423
63426
  var matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
63424
63427
  var htmlEntities = {
63425
63428
  "&amp;": "&",
@@ -63518,7 +63521,7 @@ function setDefaults() {
63518
63521
  })();
63519
63522
  var initReactI18next = {
63520
63523
  type: "3rdParty",
63521
- init: function init2(instance2) {
63524
+ init: function init(instance2) {
63522
63525
  setDefaults(instance2.options.react);
63523
63526
  }
63524
63527
  };
@@ -141324,8 +141327,8 @@ tr46$1.PROCESSING_OPTIONS = PROCESSING_OPTIONS;
141324
141327
  if (input === "") {
141325
141328
  return 0;
141326
141329
  }
141327
- const regex = R === 10 ? /[^0-9]/ : R === 16 ? /[^0-9A-Fa-f]/ : /[^0-7]/;
141328
- if (regex.test(input)) {
141330
+ const regex2 = R === 10 ? /[^0-9]/ : R === 16 ? /[^0-9A-Fa-f]/ : /[^0-7]/;
141331
+ if (regex2.test(input)) {
141329
141332
  return failure;
141330
141333
  }
141331
141334
  return parseInt(input, R);
@@ -143823,7 +143826,7 @@ function requireNodePonyfill() {
143823
143826
  }
143824
143827
  })(getFetch$1, getFetch$1.exports);
143825
143828
  var getFetchExports = getFetch$1.exports;
143826
- const getFetch = /* @__PURE__ */ getDefaultExportFromCjs(getFetchExports);
143829
+ const getFetch = /* @__PURE__ */ getDefaultExportFromCjs$1(getFetchExports);
143827
143830
  const fetchNode = /* @__PURE__ */ _mergeNamespaces({
143828
143831
  __proto__: null,
143829
143832
  default: getFetch
@@ -146347,10 +146350,10 @@ var Interpolator = function() {
146347
146350
  clonedOptions.applyPostProcessor = false;
146348
146351
  delete clonedOptions.defaultValue;
146349
146352
  function handleHasOptions(key, inheritedOptions) {
146350
- var sep = this.nestingOptionsSeparator;
146351
- if (key.indexOf(sep) < 0)
146353
+ var sep2 = this.nestingOptionsSeparator;
146354
+ if (key.indexOf(sep2) < 0)
146352
146355
  return key;
146353
- var c = key.split(new RegExp("".concat(sep, "[ ]*{")));
146356
+ var c = key.split(new RegExp("".concat(sep2, "[ ]*{")));
146354
146357
  var optionsString = "{".concat(c[1]);
146355
146358
  key = c[0];
146356
146359
  optionsString = this.interpolate(optionsString, clonedOptions);
@@ -146365,7 +146368,7 @@ var Interpolator = function() {
146365
146368
  clonedOptions = _objectSpread$3(_objectSpread$3({}, inheritedOptions), clonedOptions);
146366
146369
  } catch (e) {
146367
146370
  this.logger.warn("failed parsing options string in nesting for key ".concat(key), e);
146368
- return "".concat(key).concat(sep).concat(optionsString);
146371
+ return "".concat(key).concat(sep2).concat(optionsString);
146369
146372
  }
146370
146373
  delete clonedOptions.defaultValue;
146371
146374
  return key;
@@ -148141,71 +148144,640 @@ Consola.prototype.resume = Consola.prototype.resumeLogs;
148141
148144
  function createConsola$1(options2 = {}) {
148142
148145
  return new Consola(options2);
148143
148146
  }
148144
- class BrowserReporter {
148145
- constructor(options2) {
148146
- this.options = { ...options2 };
148147
- this.defaultColor = "#7f8c8d";
148148
- this.levelColorMap = {
148149
- 0: "#c0392b",
148150
- // Red
148151
- 1: "#f39c12",
148152
- // Yellow
148153
- 3: "#00BCD4"
148154
- // Cyan
148155
- };
148156
- this.typeColorMap = {
148157
- success: "#2ecc71"
148158
- // Green
148159
- };
148147
+ function parseStack(stack) {
148148
+ const cwd = process.cwd() + sep;
148149
+ const lines = stack.split("\n").splice(1).map((l2) => l2.trim().replace("file://", "").replace(cwd, ""));
148150
+ return lines;
148151
+ }
148152
+ function writeStream(data, stream2) {
148153
+ const write2 = stream2.__write || stream2.write;
148154
+ return write2.call(stream2, data);
148155
+ }
148156
+ const bracket = (x) => x ? `[${x}]` : "";
148157
+ class BasicReporter {
148158
+ formatStack(stack, opts2) {
148159
+ return " " + parseStack(stack).join("\n ");
148160
+ }
148161
+ formatArgs(args2, opts2) {
148162
+ const _args = args2.map((arg) => {
148163
+ if (arg && typeof arg.stack === "string") {
148164
+ return arg.message + "\n" + this.formatStack(arg.stack, opts2);
148165
+ }
148166
+ return arg;
148167
+ });
148168
+ return formatWithOptions(opts2, ..._args);
148169
+ }
148170
+ formatDate(date2, opts2) {
148171
+ return opts2.date ? date2.toLocaleTimeString() : "";
148172
+ }
148173
+ filterAndJoin(arr2) {
148174
+ return arr2.filter(Boolean).join(" ");
148175
+ }
148176
+ formatLogObj(logObj, opts2) {
148177
+ const message = this.formatArgs(logObj.args, opts2);
148178
+ if (logObj.type === "box") {
148179
+ return "\n" + [
148180
+ bracket(logObj.tag),
148181
+ logObj.title && logObj.title,
148182
+ ...message.split("\n")
148183
+ ].filter(Boolean).map((l2) => " > " + l2).join("\n") + "\n";
148184
+ }
148185
+ return this.filterAndJoin([
148186
+ bracket(logObj.type),
148187
+ bracket(logObj.tag),
148188
+ message
148189
+ ]);
148160
148190
  }
148161
- _getLogFn(level) {
148162
- if (level < 1) {
148163
- return console.__error || console.error;
148164
- }
148165
- if (level === 1) {
148166
- return console.__warn || console.warn;
148167
- }
148168
- return console.__log || console.log;
148169
- }
148170
- log(logObj) {
148171
- const consoleLogFn = this._getLogFn(logObj.level);
148172
- const type2 = logObj.type === "log" ? "" : logObj.type;
148173
- const tag = logObj.tag || "";
148174
- const color = this.typeColorMap[logObj.type] || this.levelColorMap[logObj.level] || this.defaultColor;
148175
- const style = `
148176
- background: ${color};
148177
- border-radius: 0.5em;
148178
- color: white;
148179
- font-weight: bold;
148180
- padding: 2px 0.5em;
148181
- `;
148182
- const badge = `%c${[tag, type2].filter(Boolean).join(":")}`;
148183
- if (typeof logObj.args[0] === "string") {
148184
- consoleLogFn(
148185
- `${badge}%c ${logObj.args[0]}`,
148186
- style,
148187
- // Empty string as style resets to default console style
148188
- "",
148189
- ...logObj.args.slice(1)
148191
+ log(logObj, ctx) {
148192
+ const line = this.formatLogObj(logObj, {
148193
+ columns: ctx.options.stdout.columns || 0,
148194
+ ...ctx.options.formatOptions
148195
+ });
148196
+ return writeStream(
148197
+ line + "\n",
148198
+ logObj.level < 2 ? ctx.options.stderr || process.stderr : ctx.options.stdout || process.stdout
148199
+ );
148200
+ }
148201
+ }
148202
+ const {
148203
+ env: env$1 = {},
148204
+ argv = [],
148205
+ platform: platform$1 = ""
148206
+ } = typeof process === "undefined" ? {} : process;
148207
+ const isDisabled = "NO_COLOR" in env$1 || argv.includes("--no-color");
148208
+ const isForced = "FORCE_COLOR" in env$1 || argv.includes("--color");
148209
+ const isWindows = platform$1 === "win32";
148210
+ const isDumbTerminal = env$1.TERM === "dumb";
148211
+ const isCompatibleTerminal = tty && tty.isatty && tty.isatty(1) && env$1.TERM && !isDumbTerminal;
148212
+ const isCI$1 = "CI" in env$1 && ("GITHUB_ACTIONS" in env$1 || "GITLAB_CI" in env$1 || "CIRCLECI" in env$1);
148213
+ const isColorSupported = !isDisabled && (isForced || isWindows && !isDumbTerminal || isCompatibleTerminal || isCI$1);
148214
+ function replaceClose(index, string2, close4, replace, head = string2.slice(0, Math.max(0, index)) + replace, tail = string2.slice(Math.max(0, index + close4.length)), next3 = tail.indexOf(close4)) {
148215
+ return head + (next3 < 0 ? tail : replaceClose(next3, tail, close4, replace));
148216
+ }
148217
+ function clearBleed(index, string2, open, close4, replace) {
148218
+ return index < 0 ? open + string2 + close4 : open + replaceClose(index, string2, close4, replace) + close4;
148219
+ }
148220
+ function filterEmpty(open, close4, replace = open, at2 = open.length + 1) {
148221
+ return (string2) => string2 || !(string2 === "" || string2 === void 0) ? clearBleed(
148222
+ ("" + string2).indexOf(close4, at2),
148223
+ string2,
148224
+ open,
148225
+ close4,
148226
+ replace
148227
+ ) : "";
148228
+ }
148229
+ function init2(open, close4, replace) {
148230
+ return filterEmpty(`\x1B[${open}m`, `\x1B[${close4}m`, replace);
148231
+ }
148232
+ const colorDefs = {
148233
+ reset: init2(0, 0),
148234
+ bold: init2(1, 22, "\x1B[22m\x1B[1m"),
148235
+ dim: init2(2, 22, "\x1B[22m\x1B[2m"),
148236
+ italic: init2(3, 23),
148237
+ underline: init2(4, 24),
148238
+ inverse: init2(7, 27),
148239
+ hidden: init2(8, 28),
148240
+ strikethrough: init2(9, 29),
148241
+ black: init2(30, 39),
148242
+ red: init2(31, 39),
148243
+ green: init2(32, 39),
148244
+ yellow: init2(33, 39),
148245
+ blue: init2(34, 39),
148246
+ magenta: init2(35, 39),
148247
+ cyan: init2(36, 39),
148248
+ white: init2(37, 39),
148249
+ gray: init2(90, 39),
148250
+ bgBlack: init2(40, 49),
148251
+ bgRed: init2(41, 49),
148252
+ bgGreen: init2(42, 49),
148253
+ bgYellow: init2(43, 49),
148254
+ bgBlue: init2(44, 49),
148255
+ bgMagenta: init2(45, 49),
148256
+ bgCyan: init2(46, 49),
148257
+ bgWhite: init2(47, 49),
148258
+ blackBright: init2(90, 39),
148259
+ redBright: init2(91, 39),
148260
+ greenBright: init2(92, 39),
148261
+ yellowBright: init2(93, 39),
148262
+ blueBright: init2(94, 39),
148263
+ magentaBright: init2(95, 39),
148264
+ cyanBright: init2(96, 39),
148265
+ whiteBright: init2(97, 39),
148266
+ bgBlackBright: init2(100, 49),
148267
+ bgRedBright: init2(101, 49),
148268
+ bgGreenBright: init2(102, 49),
148269
+ bgYellowBright: init2(103, 49),
148270
+ bgBlueBright: init2(104, 49),
148271
+ bgMagentaBright: init2(105, 49),
148272
+ bgCyanBright: init2(106, 49),
148273
+ bgWhiteBright: init2(107, 49)
148274
+ };
148275
+ function createColors(useColor = isColorSupported) {
148276
+ return useColor ? colorDefs : Object.fromEntries(Object.keys(colorDefs).map((key) => [key, String]));
148277
+ }
148278
+ const colors = createColors();
148279
+ function getColor$1(color, fallback = "reset") {
148280
+ return colors[color] || colors[fallback];
148281
+ }
148282
+ const ansiRegex$1 = [
148283
+ "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
148284
+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"
148285
+ ].join("|");
148286
+ function stripAnsi$1(text2) {
148287
+ return text2.replace(new RegExp(ansiRegex$1, "g"), "");
148288
+ }
148289
+ const boxStylePresets = {
148290
+ solid: {
148291
+ tl: "┌",
148292
+ tr: "┐",
148293
+ bl: "└",
148294
+ br: "┘",
148295
+ h: "─",
148296
+ v: "│"
148297
+ },
148298
+ double: {
148299
+ tl: "╔",
148300
+ tr: "╗",
148301
+ bl: "╚",
148302
+ br: "╝",
148303
+ h: "═",
148304
+ v: "║"
148305
+ },
148306
+ doubleSingle: {
148307
+ tl: "╓",
148308
+ tr: "╖",
148309
+ bl: "╙",
148310
+ br: "╜",
148311
+ h: "─",
148312
+ v: "║"
148313
+ },
148314
+ doubleSingleRounded: {
148315
+ tl: "╭",
148316
+ tr: "╮",
148317
+ bl: "╰",
148318
+ br: "╯",
148319
+ h: "─",
148320
+ v: "║"
148321
+ },
148322
+ singleThick: {
148323
+ tl: "┏",
148324
+ tr: "┓",
148325
+ bl: "┗",
148326
+ br: "┛",
148327
+ h: "━",
148328
+ v: "┃"
148329
+ },
148330
+ singleDouble: {
148331
+ tl: "╒",
148332
+ tr: "╕",
148333
+ bl: "╘",
148334
+ br: "╛",
148335
+ h: "═",
148336
+ v: "│"
148337
+ },
148338
+ singleDoubleRounded: {
148339
+ tl: "╭",
148340
+ tr: "╮",
148341
+ bl: "╰",
148342
+ br: "╯",
148343
+ h: "═",
148344
+ v: "│"
148345
+ },
148346
+ rounded: {
148347
+ tl: "╭",
148348
+ tr: "╮",
148349
+ bl: "╰",
148350
+ br: "╯",
148351
+ h: "─",
148352
+ v: "│"
148353
+ }
148354
+ };
148355
+ const defaultStyle = {
148356
+ borderColor: "white",
148357
+ borderStyle: "rounded",
148358
+ valign: "center",
148359
+ padding: 2,
148360
+ marginLeft: 1,
148361
+ marginTop: 1,
148362
+ marginBottom: 1
148363
+ };
148364
+ function box(text2, _opts = {}) {
148365
+ const opts2 = {
148366
+ ..._opts,
148367
+ style: {
148368
+ ...defaultStyle,
148369
+ ..._opts.style
148370
+ }
148371
+ };
148372
+ const textLines = text2.split("\n");
148373
+ const boxLines = [];
148374
+ const _color = getColor$1(opts2.style.borderColor);
148375
+ const borderStyle = {
148376
+ ...typeof opts2.style.borderStyle === "string" ? boxStylePresets[opts2.style.borderStyle] || boxStylePresets.solid : opts2.style.borderStyle
148377
+ };
148378
+ if (_color) {
148379
+ for (const key in borderStyle) {
148380
+ borderStyle[key] = _color(
148381
+ borderStyle[key]
148190
148382
  );
148383
+ }
148384
+ }
148385
+ const paddingOffset = opts2.style.padding % 2 === 0 ? opts2.style.padding : opts2.style.padding + 1;
148386
+ const height = textLines.length + paddingOffset;
148387
+ const width = Math.max(...textLines.map((line) => line.length)) + paddingOffset;
148388
+ const widthOffset = width + paddingOffset;
148389
+ const leftSpace = opts2.style.marginLeft > 0 ? " ".repeat(opts2.style.marginLeft) : "";
148390
+ if (opts2.style.marginTop > 0) {
148391
+ boxLines.push("".repeat(opts2.style.marginTop));
148392
+ }
148393
+ if (opts2.title) {
148394
+ const left = borderStyle.h.repeat(
148395
+ Math.floor((width - stripAnsi$1(opts2.title).length) / 2)
148396
+ );
148397
+ const right = borderStyle.h.repeat(
148398
+ width - stripAnsi$1(opts2.title).length - stripAnsi$1(left).length + paddingOffset
148399
+ );
148400
+ boxLines.push(
148401
+ `${leftSpace}${borderStyle.tl}${left}${opts2.title}${right}${borderStyle.tr}`
148402
+ );
148403
+ } else {
148404
+ boxLines.push(
148405
+ `${leftSpace}${borderStyle.tl}${borderStyle.h.repeat(widthOffset)}${borderStyle.tr}`
148406
+ );
148407
+ }
148408
+ const valignOffset = opts2.style.valign === "center" ? Math.floor((height - textLines.length) / 2) : opts2.style.valign === "top" ? height - textLines.length - paddingOffset : height - textLines.length;
148409
+ for (let i = 0; i < height; i++) {
148410
+ if (i < valignOffset || i >= valignOffset + textLines.length) {
148411
+ boxLines.push(
148412
+ `${leftSpace}${borderStyle.v}${" ".repeat(widthOffset)}${borderStyle.v}`
148413
+ );
148414
+ } else {
148415
+ const line = textLines[i - valignOffset];
148416
+ const left = " ".repeat(paddingOffset);
148417
+ const right = " ".repeat(width - stripAnsi$1(line).length);
148418
+ boxLines.push(
148419
+ `${leftSpace}${borderStyle.v}${left}${line}${right}${borderStyle.v}`
148420
+ );
148421
+ }
148422
+ }
148423
+ boxLines.push(
148424
+ `${leftSpace}${borderStyle.bl}${borderStyle.h.repeat(widthOffset)}${borderStyle.br}`
148425
+ );
148426
+ if (opts2.style.marginBottom > 0) {
148427
+ boxLines.push("".repeat(opts2.style.marginBottom));
148428
+ }
148429
+ return boxLines.join("\n");
148430
+ }
148431
+ const providers$1 = [
148432
+ ["APPVEYOR"],
148433
+ ["AZURE_PIPELINES", "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],
148434
+ ["AZURE_STATIC", "INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],
148435
+ ["APPCIRCLE", "AC_APPCIRCLE"],
148436
+ ["BAMBOO", "bamboo_planKey"],
148437
+ ["BITBUCKET", "BITBUCKET_COMMIT"],
148438
+ ["BITRISE", "BITRISE_IO"],
148439
+ ["BUDDY", "BUDDY_WORKSPACE_ID"],
148440
+ ["BUILDKITE"],
148441
+ ["CIRCLE", "CIRCLECI"],
148442
+ ["CIRRUS", "CIRRUS_CI"],
148443
+ ["CLOUDFLARE_PAGES", "CF_PAGES", { ci: true }],
148444
+ ["CODEBUILD", "CODEBUILD_BUILD_ARN"],
148445
+ ["CODEFRESH", "CF_BUILD_ID"],
148446
+ ["DRONE"],
148447
+ ["DRONE", "DRONE_BUILD_EVENT"],
148448
+ ["DSARI"],
148449
+ ["GITHUB_ACTIONS"],
148450
+ ["GITLAB", "GITLAB_CI"],
148451
+ ["GITLAB", "CI_MERGE_REQUEST_ID"],
148452
+ ["GOCD", "GO_PIPELINE_LABEL"],
148453
+ ["LAYERCI"],
148454
+ ["HUDSON", "HUDSON_URL"],
148455
+ ["JENKINS", "JENKINS_URL"],
148456
+ ["MAGNUM"],
148457
+ ["NETLIFY"],
148458
+ ["NETLIFY", "NETLIFY_LOCAL", { ci: false }],
148459
+ ["NEVERCODE"],
148460
+ ["RENDER"],
148461
+ ["SAIL", "SAILCI"],
148462
+ ["SEMAPHORE"],
148463
+ ["SCREWDRIVER"],
148464
+ ["SHIPPABLE"],
148465
+ ["SOLANO", "TDDIUM"],
148466
+ ["STRIDER"],
148467
+ ["TEAMCITY", "TEAMCITY_VERSION"],
148468
+ ["TRAVIS"],
148469
+ ["VERCEL", "NOW_BUILDER"],
148470
+ ["APPCENTER", "APPCENTER_BUILD_ID"],
148471
+ ["CODESANDBOX", "CODESANDBOX_SSE", { ci: false }],
148472
+ ["STACKBLITZ"],
148473
+ ["STORMKIT"],
148474
+ ["CLEAVR"]
148475
+ ];
148476
+ function detectProvider(env2) {
148477
+ for (const provider of providers$1) {
148478
+ const envName = provider[1] || provider[0];
148479
+ if (env2[envName]) {
148480
+ return {
148481
+ name: provider[0].toLowerCase(),
148482
+ ...provider[2]
148483
+ };
148484
+ }
148485
+ }
148486
+ if (env2.SHELL && env2.SHELL === "/bin/jsh") {
148487
+ return {
148488
+ name: "stackblitz",
148489
+ ci: false
148490
+ };
148491
+ }
148492
+ return {
148493
+ name: "",
148494
+ ci: false
148495
+ };
148496
+ }
148497
+ const processShim = typeof process !== "undefined" ? process : {};
148498
+ const envShim = processShim.env || {};
148499
+ const providerInfo = detectProvider(envShim);
148500
+ const nodeENV = typeof process !== "undefined" && process.env && process.env.NODE_ENV || "";
148501
+ const isCI = toBoolean(envShim.CI) || providerInfo.ci !== false;
148502
+ const isDebug = toBoolean(envShim.DEBUG);
148503
+ const isTest = nodeENV === "test" || toBoolean(envShim.TEST);
148504
+ function toBoolean(val) {
148505
+ return val ? val !== "false" : false;
148506
+ }
148507
+ function ansiRegex({ onlyFirst = false } = {}) {
148508
+ const pattern = [
148509
+ "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
148510
+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
148511
+ ].join("|");
148512
+ return new RegExp(pattern, onlyFirst ? void 0 : "g");
148513
+ }
148514
+ const regex = ansiRegex();
148515
+ function stripAnsi(string2) {
148516
+ if (typeof string2 !== "string") {
148517
+ throw new TypeError(`Expected a \`string\`, got \`${typeof string2}\``);
148518
+ }
148519
+ return string2.replace(regex, "");
148520
+ }
148521
+ function getDefaultExportFromCjs(x) {
148522
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
148523
+ }
148524
+ var eastasianwidth = { exports: {} };
148525
+ (function(module2) {
148526
+ var eaw = {};
148527
+ {
148528
+ module2.exports = eaw;
148529
+ }
148530
+ eaw.eastAsianWidth = function(character) {
148531
+ var x = character.charCodeAt(0);
148532
+ var y2 = character.length == 2 ? character.charCodeAt(1) : 0;
148533
+ var codePoint = x;
148534
+ if (55296 <= x && x <= 56319 && (56320 <= y2 && y2 <= 57343)) {
148535
+ x &= 1023;
148536
+ y2 &= 1023;
148537
+ codePoint = x << 10 | y2;
148538
+ codePoint += 65536;
148539
+ }
148540
+ if (12288 == codePoint || 65281 <= codePoint && codePoint <= 65376 || 65504 <= codePoint && codePoint <= 65510) {
148541
+ return "F";
148542
+ }
148543
+ if (8361 == codePoint || 65377 <= codePoint && codePoint <= 65470 || 65474 <= codePoint && codePoint <= 65479 || 65482 <= codePoint && codePoint <= 65487 || 65490 <= codePoint && codePoint <= 65495 || 65498 <= codePoint && codePoint <= 65500 || 65512 <= codePoint && codePoint <= 65518) {
148544
+ return "H";
148545
+ }
148546
+ if (4352 <= codePoint && codePoint <= 4447 || 4515 <= codePoint && codePoint <= 4519 || 4602 <= codePoint && codePoint <= 4607 || 9001 <= codePoint && codePoint <= 9002 || 11904 <= codePoint && codePoint <= 11929 || 11931 <= codePoint && codePoint <= 12019 || 12032 <= codePoint && codePoint <= 12245 || 12272 <= codePoint && codePoint <= 12283 || 12289 <= codePoint && codePoint <= 12350 || 12353 <= codePoint && codePoint <= 12438 || 12441 <= codePoint && codePoint <= 12543 || 12549 <= codePoint && codePoint <= 12589 || 12593 <= codePoint && codePoint <= 12686 || 12688 <= codePoint && codePoint <= 12730 || 12736 <= codePoint && codePoint <= 12771 || 12784 <= codePoint && codePoint <= 12830 || 12832 <= codePoint && codePoint <= 12871 || 12880 <= codePoint && codePoint <= 13054 || 13056 <= codePoint && codePoint <= 19903 || 19968 <= codePoint && codePoint <= 42124 || 42128 <= codePoint && codePoint <= 42182 || 43360 <= codePoint && codePoint <= 43388 || 44032 <= codePoint && codePoint <= 55203 || 55216 <= codePoint && codePoint <= 55238 || 55243 <= codePoint && codePoint <= 55291 || 63744 <= codePoint && codePoint <= 64255 || 65040 <= codePoint && codePoint <= 65049 || 65072 <= codePoint && codePoint <= 65106 || 65108 <= codePoint && codePoint <= 65126 || 65128 <= codePoint && codePoint <= 65131 || 110592 <= codePoint && codePoint <= 110593 || 127488 <= codePoint && codePoint <= 127490 || 127504 <= codePoint && codePoint <= 127546 || 127552 <= codePoint && codePoint <= 127560 || 127568 <= codePoint && codePoint <= 127569 || 131072 <= codePoint && codePoint <= 194367 || 177984 <= codePoint && codePoint <= 196605 || 196608 <= codePoint && codePoint <= 262141) {
148547
+ return "W";
148548
+ }
148549
+ if (32 <= codePoint && codePoint <= 126 || 162 <= codePoint && codePoint <= 163 || 165 <= codePoint && codePoint <= 166 || 172 == codePoint || 175 == codePoint || 10214 <= codePoint && codePoint <= 10221 || 10629 <= codePoint && codePoint <= 10630) {
148550
+ return "Na";
148551
+ }
148552
+ if (161 == codePoint || 164 == codePoint || 167 <= codePoint && codePoint <= 168 || 170 == codePoint || 173 <= codePoint && codePoint <= 174 || 176 <= codePoint && codePoint <= 180 || 182 <= codePoint && codePoint <= 186 || 188 <= codePoint && codePoint <= 191 || 198 == codePoint || 208 == codePoint || 215 <= codePoint && codePoint <= 216 || 222 <= codePoint && codePoint <= 225 || 230 == codePoint || 232 <= codePoint && codePoint <= 234 || 236 <= codePoint && codePoint <= 237 || 240 == codePoint || 242 <= codePoint && codePoint <= 243 || 247 <= codePoint && codePoint <= 250 || 252 == codePoint || 254 == codePoint || 257 == codePoint || 273 == codePoint || 275 == codePoint || 283 == codePoint || 294 <= codePoint && codePoint <= 295 || 299 == codePoint || 305 <= codePoint && codePoint <= 307 || 312 == codePoint || 319 <= codePoint && codePoint <= 322 || 324 == codePoint || 328 <= codePoint && codePoint <= 331 || 333 == codePoint || 338 <= codePoint && codePoint <= 339 || 358 <= codePoint && codePoint <= 359 || 363 == codePoint || 462 == codePoint || 464 == codePoint || 466 == codePoint || 468 == codePoint || 470 == codePoint || 472 == codePoint || 474 == codePoint || 476 == codePoint || 593 == codePoint || 609 == codePoint || 708 == codePoint || 711 == codePoint || 713 <= codePoint && codePoint <= 715 || 717 == codePoint || 720 == codePoint || 728 <= codePoint && codePoint <= 731 || 733 == codePoint || 735 == codePoint || 768 <= codePoint && codePoint <= 879 || 913 <= codePoint && codePoint <= 929 || 931 <= codePoint && codePoint <= 937 || 945 <= codePoint && codePoint <= 961 || 963 <= codePoint && codePoint <= 969 || 1025 == codePoint || 1040 <= codePoint && codePoint <= 1103 || 1105 == codePoint || 8208 == codePoint || 8211 <= codePoint && codePoint <= 8214 || 8216 <= codePoint && codePoint <= 8217 || 8220 <= codePoint && codePoint <= 8221 || 8224 <= codePoint && codePoint <= 8226 || 8228 <= codePoint && codePoint <= 8231 || 8240 == codePoint || 8242 <= codePoint && codePoint <= 8243 || 8245 == codePoint || 8251 == codePoint || 8254 == codePoint || 8308 == codePoint || 8319 == codePoint || 8321 <= codePoint && codePoint <= 8324 || 8364 == codePoint || 8451 == codePoint || 8453 == codePoint || 8457 == codePoint || 8467 == codePoint || 8470 == codePoint || 8481 <= codePoint && codePoint <= 8482 || 8486 == codePoint || 8491 == codePoint || 8531 <= codePoint && codePoint <= 8532 || 8539 <= codePoint && codePoint <= 8542 || 8544 <= codePoint && codePoint <= 8555 || 8560 <= codePoint && codePoint <= 8569 || 8585 == codePoint || 8592 <= codePoint && codePoint <= 8601 || 8632 <= codePoint && codePoint <= 8633 || 8658 == codePoint || 8660 == codePoint || 8679 == codePoint || 8704 == codePoint || 8706 <= codePoint && codePoint <= 8707 || 8711 <= codePoint && codePoint <= 8712 || 8715 == codePoint || 8719 == codePoint || 8721 == codePoint || 8725 == codePoint || 8730 == codePoint || 8733 <= codePoint && codePoint <= 8736 || 8739 == codePoint || 8741 == codePoint || 8743 <= codePoint && codePoint <= 8748 || 8750 == codePoint || 8756 <= codePoint && codePoint <= 8759 || 8764 <= codePoint && codePoint <= 8765 || 8776 == codePoint || 8780 == codePoint || 8786 == codePoint || 8800 <= codePoint && codePoint <= 8801 || 8804 <= codePoint && codePoint <= 8807 || 8810 <= codePoint && codePoint <= 8811 || 8814 <= codePoint && codePoint <= 8815 || 8834 <= codePoint && codePoint <= 8835 || 8838 <= codePoint && codePoint <= 8839 || 8853 == codePoint || 8857 == codePoint || 8869 == codePoint || 8895 == codePoint || 8978 == codePoint || 9312 <= codePoint && codePoint <= 9449 || 9451 <= codePoint && codePoint <= 9547 || 9552 <= codePoint && codePoint <= 9587 || 9600 <= codePoint && codePoint <= 9615 || 9618 <= codePoint && codePoint <= 9621 || 9632 <= codePoint && codePoint <= 9633 || 9635 <= codePoint && codePoint <= 9641 || 9650 <= codePoint && codePoint <= 9651 || 9654 <= codePoint && codePoint <= 9655 || 9660 <= codePoint && codePoint <= 9661 || 9664 <= codePoint && codePoint <= 9665 || 9670 <= codePoint && codePoint <= 9672 || 9675 == codePoint || 9678 <= codePoint && codePoint <= 9681 || 9698 <= codePoint && codePoint <= 9701 || 9711 == codePoint || 9733 <= codePoint && codePoint <= 9734 || 9737 == codePoint || 9742 <= codePoint && codePoint <= 9743 || 9748 <= codePoint && codePoint <= 9749 || 9756 == codePoint || 9758 == codePoint || 9792 == codePoint || 9794 == codePoint || 9824 <= codePoint && codePoint <= 9825 || 9827 <= codePoint && codePoint <= 9829 || 9831 <= codePoint && codePoint <= 9834 || 9836 <= codePoint && codePoint <= 9837 || 9839 == codePoint || 9886 <= codePoint && codePoint <= 9887 || 9918 <= codePoint && codePoint <= 9919 || 9924 <= codePoint && codePoint <= 9933 || 9935 <= codePoint && codePoint <= 9953 || 9955 == codePoint || 9960 <= codePoint && codePoint <= 9983 || 10045 == codePoint || 10071 == codePoint || 10102 <= codePoint && codePoint <= 10111 || 11093 <= codePoint && codePoint <= 11097 || 12872 <= codePoint && codePoint <= 12879 || 57344 <= codePoint && codePoint <= 63743 || 65024 <= codePoint && codePoint <= 65039 || 65533 == codePoint || 127232 <= codePoint && codePoint <= 127242 || 127248 <= codePoint && codePoint <= 127277 || 127280 <= codePoint && codePoint <= 127337 || 127344 <= codePoint && codePoint <= 127386 || 917760 <= codePoint && codePoint <= 917999 || 983040 <= codePoint && codePoint <= 1048573 || 1048576 <= codePoint && codePoint <= 1114109) {
148553
+ return "A";
148554
+ }
148555
+ return "N";
148556
+ };
148557
+ eaw.characterLength = function(character) {
148558
+ var code = this.eastAsianWidth(character);
148559
+ if (code == "F" || code == "W" || code == "A") {
148560
+ return 2;
148191
148561
  } else {
148192
- consoleLogFn(badge, style, ...logObj.args);
148562
+ return 1;
148563
+ }
148564
+ };
148565
+ function stringToArray(string2) {
148566
+ return string2.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
148567
+ }
148568
+ eaw.length = function(string2) {
148569
+ var characters = stringToArray(string2);
148570
+ var len = 0;
148571
+ for (var i = 0; i < characters.length; i++) {
148572
+ len = len + this.characterLength(characters[i]);
148573
+ }
148574
+ return len;
148575
+ };
148576
+ eaw.slice = function(text2, start, end2) {
148577
+ textLen = eaw.length(text2);
148578
+ start = start ? start : 0;
148579
+ end2 = end2 ? end2 : 1;
148580
+ if (start < 0) {
148581
+ start = textLen + start;
148582
+ }
148583
+ if (end2 < 0) {
148584
+ end2 = textLen + end2;
148585
+ }
148586
+ var result = "";
148587
+ var eawLen = 0;
148588
+ var chars2 = stringToArray(text2);
148589
+ for (var i = 0; i < chars2.length; i++) {
148590
+ var char = chars2[i];
148591
+ var charLen = eaw.length(char);
148592
+ if (eawLen >= start - (charLen == 2 ? 1 : 0)) {
148593
+ if (eawLen + charLen <= end2) {
148594
+ result += char;
148595
+ } else {
148596
+ break;
148597
+ }
148598
+ }
148599
+ eawLen += charLen;
148193
148600
  }
148601
+ return result;
148602
+ };
148603
+ })(eastasianwidth);
148604
+ var eastasianwidthExports = eastasianwidth.exports;
148605
+ const eastAsianWidth = /* @__PURE__ */ getDefaultExportFromCjs(eastasianwidthExports);
148606
+ const emojiRegex$1 = () => {
148607
+ return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\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]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
148608
+ };
148609
+ function stringWidth$1(string2, options2) {
148610
+ if (typeof string2 !== "string" || string2.length === 0) {
148611
+ return 0;
148612
+ }
148613
+ options2 = {
148614
+ ambiguousIsNarrow: true,
148615
+ countAnsiEscapeCodes: false,
148616
+ ...options2
148617
+ };
148618
+ if (!options2.countAnsiEscapeCodes) {
148619
+ string2 = stripAnsi(string2);
148620
+ }
148621
+ if (string2.length === 0) {
148622
+ return 0;
148194
148623
  }
148624
+ const ambiguousCharacterWidth = options2.ambiguousIsNarrow ? 1 : 2;
148625
+ let width = 0;
148626
+ for (const { segment: character } of new Intl.Segmenter().segment(string2)) {
148627
+ const codePoint = character.codePointAt(0);
148628
+ if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
148629
+ continue;
148630
+ }
148631
+ if (codePoint >= 768 && codePoint <= 879) {
148632
+ continue;
148633
+ }
148634
+ if (emojiRegex$1().test(character)) {
148635
+ width += 2;
148636
+ continue;
148637
+ }
148638
+ const code = eastAsianWidth.eastAsianWidth(character);
148639
+ switch (code) {
148640
+ case "F":
148641
+ case "W": {
148642
+ width += 2;
148643
+ break;
148644
+ }
148645
+ case "A": {
148646
+ width += ambiguousCharacterWidth;
148647
+ break;
148648
+ }
148649
+ default: {
148650
+ width += 1;
148651
+ }
148652
+ }
148653
+ }
148654
+ return width;
148655
+ }
148656
+ function isUnicodeSupported() {
148657
+ if (process$1$1.platform !== "win32") {
148658
+ return process$1$1.env.TERM !== "linux";
148659
+ }
148660
+ return Boolean(process$1$1.env.CI) || Boolean(process$1$1.env.WT_SESSION) || Boolean(process$1$1.env.TERMINUS_SUBLIME) || process$1$1.env.ConEmuTask === "{cmd::Cmder}" || process$1$1.env.TERM_PROGRAM === "Terminus-Sublime" || process$1$1.env.TERM_PROGRAM === "vscode" || process$1$1.env.TERM === "xterm-256color" || process$1$1.env.TERM === "alacritty" || process$1$1.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
148661
+ }
148662
+ const TYPE_COLOR_MAP = {
148663
+ info: "cyan",
148664
+ fail: "red",
148665
+ success: "green",
148666
+ ready: "green",
148667
+ start: "magenta"
148668
+ };
148669
+ const LEVEL_COLOR_MAP = {
148670
+ 0: "red",
148671
+ 1: "yellow"
148672
+ };
148673
+ const unicode = isUnicodeSupported();
148674
+ const s$2 = (c, fallback) => unicode ? c : fallback;
148675
+ const TYPE_ICONS = {
148676
+ error: s$2("✖", "×"),
148677
+ fatal: s$2("✖", "×"),
148678
+ ready: s$2("✔", "√"),
148679
+ warn: s$2("⚠", "‼"),
148680
+ info: s$2("ℹ", "i"),
148681
+ success: s$2("✔", "√"),
148682
+ debug: s$2("⚙", "D"),
148683
+ trace: s$2("→", "→"),
148684
+ fail: s$2("✖", "×"),
148685
+ start: s$2("◐", "o"),
148686
+ log: ""
148687
+ };
148688
+ function stringWidth(str) {
148689
+ if (!Intl.Segmenter) {
148690
+ return stripAnsi$1(str).length;
148691
+ }
148692
+ return stringWidth$1(str);
148693
+ }
148694
+ class FancyReporter extends BasicReporter {
148695
+ formatStack(stack) {
148696
+ return "\n" + parseStack(stack).map(
148697
+ (line) => " " + line.replace(/^at +/, (m2) => colors.gray(m2)).replace(/\((.+)\)/, (_23, m2) => `(${colors.cyan(m2)})`)
148698
+ ).join("\n");
148699
+ }
148700
+ formatType(logObj, isBadge, opts2) {
148701
+ const typeColor = TYPE_COLOR_MAP[logObj.type] || LEVEL_COLOR_MAP[logObj.level] || "gray";
148702
+ if (isBadge) {
148703
+ return getBgColor(typeColor)(
148704
+ colors.black(` ${logObj.type.toUpperCase()} `)
148705
+ );
148706
+ }
148707
+ const _type = typeof TYPE_ICONS[logObj.type] === "string" ? TYPE_ICONS[logObj.type] : logObj.icon || logObj.type;
148708
+ return _type ? getColor(typeColor)(_type) : "";
148709
+ }
148710
+ formatLogObj(logObj, opts2) {
148711
+ const [message, ...additional] = this.formatArgs(logObj.args, opts2).split(
148712
+ "\n"
148713
+ );
148714
+ if (logObj.type === "box") {
148715
+ return box(
148716
+ characterFormat(
148717
+ message + (additional.length > 0 ? "\n" + additional.join("\n") : "")
148718
+ ),
148719
+ {
148720
+ title: logObj.title ? characterFormat(logObj.title) : void 0,
148721
+ style: logObj.style
148722
+ }
148723
+ );
148724
+ }
148725
+ const date2 = this.formatDate(logObj.date, opts2);
148726
+ const coloredDate = date2 && colors.gray(date2);
148727
+ const isBadge = logObj.badge ?? logObj.level < 2;
148728
+ const type2 = this.formatType(logObj, isBadge, opts2);
148729
+ const tag = logObj.tag ? colors.gray(logObj.tag) : "";
148730
+ let line;
148731
+ const left = this.filterAndJoin([type2, characterFormat(message)]);
148732
+ const right = this.filterAndJoin(opts2.columns ? [tag, coloredDate] : [tag]);
148733
+ const space = (opts2.columns || 0) - stringWidth(left) - stringWidth(right) - 2;
148734
+ line = space > 0 && (opts2.columns || 0) >= 80 ? left + " ".repeat(space) + right : (right ? `${colors.gray(`[${right}]`)} ` : "") + left;
148735
+ line += characterFormat(
148736
+ additional.length > 0 ? "\n" + additional.join("\n") : ""
148737
+ );
148738
+ if (logObj.type === "trace") {
148739
+ const _err = new Error("Trace: " + logObj.message);
148740
+ line += this.formatStack(_err.stack || "");
148741
+ }
148742
+ return isBadge ? "\n" + line + "\n" : line;
148743
+ }
148744
+ }
148745
+ function characterFormat(str) {
148746
+ return str.replace(/`([^`]+)`/gm, (_23, m2) => colors.cyan(m2)).replace(/\s+_([^_]+)_\s+/gm, (_23, m2) => ` ${colors.underline(m2)} `);
148747
+ }
148748
+ function getColor(color = "white") {
148749
+ return colors[color] || colors.white;
148750
+ }
148751
+ function getBgColor(color = "bgWhite") {
148752
+ return colors[`bg${color[0].toUpperCase()}${color.slice(1)}`] || colors.bgWhite;
148195
148753
  }
148196
148754
  function createConsola(options2 = {}) {
148755
+ let level = _getDefaultLogLevel();
148756
+ if (process.env.CONSOLA_LEVEL) {
148757
+ level = Number.parseInt(process.env.CONSOLA_LEVEL) ?? level;
148758
+ }
148197
148759
  const consola2 = createConsola$1({
148198
- reporters: options2.reporters || [new BrowserReporter({})],
148199
- prompt(message, options22 = {}) {
148200
- if (options22.type === "confirm") {
148201
- return Promise.resolve(confirm(message));
148202
- }
148203
- return Promise.resolve(prompt(message));
148204
- },
148760
+ level,
148761
+ defaults: { level },
148762
+ stdout: process.stdout,
148763
+ stderr: process.stderr,
148764
+ prompt: (...args2) => import("./prompt-95b89aca.js").then((m2) => m2.prompt(...args2)),
148765
+ reporters: options2.reporters || [
148766
+ options2.fancy ?? !(isCI || isTest) ? new FancyReporter() : new BasicReporter()
148767
+ ],
148205
148768
  ...options2
148206
148769
  });
148207
148770
  return consola2;
148208
148771
  }
148772
+ function _getDefaultLogLevel() {
148773
+ if (isDebug) {
148774
+ return LogLevels.debug;
148775
+ }
148776
+ if (isTest) {
148777
+ return LogLevels.warn;
148778
+ }
148779
+ return LogLevels.info;
148780
+ }
148209
148781
  createConsola();
148210
148782
  var util$k;
148211
148783
  (function(util2) {
@@ -148994,7 +149566,7 @@ function isValidIP(ip2, version2) {
148994
149566
  class ZodString extends ZodType {
148995
149567
  constructor() {
148996
149568
  super(...arguments);
148997
- this._regex = (regex, validation2, message) => this.refinement((data) => regex.test(data), {
149569
+ this._regex = (regex2, validation2, message) => this.refinement((data) => regex2.test(data), {
148998
149570
  validation: validation2,
148999
149571
  code: ZodIssueCode.invalid_string,
149000
149572
  ...errorUtil.errToObj(message)
@@ -149207,8 +149779,8 @@ class ZodString extends ZodType {
149207
149779
  status.dirty();
149208
149780
  }
149209
149781
  } else if (check.kind === "datetime") {
149210
- const regex = datetimeRegex(check);
149211
- if (!regex.test(input.data)) {
149782
+ const regex2 = datetimeRegex(check);
149783
+ if (!regex2.test(input.data)) {
149212
149784
  ctx = this._getOrReturnCtx(input, ctx);
149213
149785
  addIssueToContext(ctx, {
149214
149786
  code: ZodIssueCode.invalid_string,
@@ -149280,10 +149852,10 @@ class ZodString extends ZodType {
149280
149852
  ...errorUtil.errToObj(options2 === null || options2 === void 0 ? void 0 : options2.message)
149281
149853
  });
149282
149854
  }
149283
- regex(regex, message) {
149855
+ regex(regex2, message) {
149284
149856
  return this._addCheck({
149285
149857
  kind: "regex",
149286
- regex,
149858
+ regex: regex2,
149287
149859
  ...errorUtil.errToObj(message)
149288
149860
  });
149289
149861
  }
@@ -177063,7 +177635,7 @@ FormData$1.prototype._error = function(err) {
177063
177635
  FormData$1.prototype.toString = function() {
177064
177636
  return "[object FormData]";
177065
177637
  };
177066
- const FormData$2 = /* @__PURE__ */ getDefaultExportFromCjs(form_data);
177638
+ const FormData$2 = /* @__PURE__ */ getDefaultExportFromCjs$1(form_data);
177067
177639
  function isVisitable(thing) {
177068
177640
  return utils$i.isPlainObject(thing) || utils$i.isArray(thing);
177069
177641
  }
@@ -178300,11 +178872,11 @@ function requireHasFlag() {
178300
178872
  if (hasRequiredHasFlag)
178301
178873
  return hasFlag;
178302
178874
  hasRequiredHasFlag = 1;
178303
- hasFlag = (flag, argv) => {
178304
- argv = argv || process.argv;
178875
+ hasFlag = (flag, argv2) => {
178876
+ argv2 = argv2 || process.argv;
178305
178877
  const prefix2 = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
178306
- const pos = argv.indexOf(prefix2 + flag);
178307
- const terminatorPos = argv.indexOf("--");
178878
+ const pos = argv2.indexOf(prefix2 + flag);
178879
+ const terminatorPos = argv2.indexOf("--");
178308
178880
  return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
178309
178881
  };
178310
178882
  return hasFlag;
@@ -178411,7 +178983,7 @@ function requireNode$1() {
178411
178983
  return node$1.exports;
178412
178984
  hasRequiredNode$1 = 1;
178413
178985
  (function(module2, exports2) {
178414
- const tty = require$$0$9;
178986
+ const tty2 = require$$0$9;
178415
178987
  const util2 = require$$1$2;
178416
178988
  exports2.init = init3;
178417
178989
  exports2.log = log2;
@@ -178529,7 +179101,7 @@ function requireNode$1() {
178529
179101
  return obj;
178530
179102
  }, {});
178531
179103
  function useColors() {
178532
- return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty.isatty(process.stderr.fd);
179104
+ return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
178533
179105
  }
178534
179106
  function formatArgs(args2) {
178535
179107
  const { namespace: name2, useColors: useColors2 } = this;
@@ -179009,10 +179581,10 @@ function urlToOptions(urlObject) {
179009
179581
  }
179010
179582
  return options2;
179011
179583
  }
179012
- function removeMatchingHeaders(regex, headers) {
179584
+ function removeMatchingHeaders(regex2, headers) {
179013
179585
  var lastValue;
179014
179586
  for (var header in headers) {
179015
- if (regex.test(header)) {
179587
+ if (regex2.test(header)) {
179016
179588
  lastValue = headers[header];
179017
179589
  delete headers[header];
179018
179590
  }
@@ -179055,7 +179627,7 @@ function isBuffer(value) {
179055
179627
  followRedirects$1.exports = wrap({ http, https });
179056
179628
  followRedirects$1.exports.wrap = wrap;
179057
179629
  var followRedirectsExports = followRedirects$1.exports;
179058
- const followRedirects = /* @__PURE__ */ getDefaultExportFromCjs(followRedirectsExports);
179630
+ const followRedirects = /* @__PURE__ */ getDefaultExportFromCjs$1(followRedirectsExports);
179059
179631
  const VERSION = "1.5.0";
179060
179632
  function parseProtocol(url2) {
179061
179633
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
@@ -243892,14 +244464,14 @@ function requireUrlStateMachine() {
243892
244464
  if (input === "") {
243893
244465
  return 0;
243894
244466
  }
243895
- let regex = /[^0-7]/u;
244467
+ let regex2 = /[^0-7]/u;
243896
244468
  if (R === 10) {
243897
- regex = /[^0-9]/u;
244469
+ regex2 = /[^0-9]/u;
243898
244470
  }
243899
244471
  if (R === 16) {
243900
- regex = /[^0-9A-Fa-f]/u;
244472
+ regex2 = /[^0-9A-Fa-f]/u;
243901
244473
  }
243902
- if (regex.test(input)) {
244474
+ if (regex2.test(input)) {
243903
244475
  return failure;
243904
244476
  }
243905
244477
  return parseInt(input, R);
@@ -249581,11 +250153,11 @@ function requireIp() {
249581
250153
  } else if (sections.length < 8) {
249582
250154
  for (i = 0; i < sections.length && sections[i] !== ""; i++)
249583
250155
  ;
249584
- const argv = [i, 1];
250156
+ const argv2 = [i, 1];
249585
250157
  for (i = 9 - sections.length; i > 0; i--) {
249586
- argv.push("0");
250158
+ argv2.push("0");
249587
250159
  }
249588
- sections.splice(...argv);
250160
+ sections.splice(...argv2);
249589
250161
  }
249590
250162
  result = buff || Buffer2.alloc(offset + 16);
249591
250163
  for (i = 0; i < sections.length; i++) {
@@ -276775,19 +277347,19 @@ function requireCollection() {
276775
277347
  throw new TypeError("Invalid argument");
276776
277348
  };
276777
277349
  Query2.prototype.box = function() {
276778
- let path2, box;
277350
+ let path2, box2;
276779
277351
  if (3 === arguments.length) {
276780
277352
  path2 = arguments[0];
276781
- box = [arguments[1], arguments[2]];
277353
+ box2 = [arguments[1], arguments[2]];
276782
277354
  } else if (2 === arguments.length) {
276783
277355
  this._ensurePath("box");
276784
277356
  path2 = this._path;
276785
- box = [arguments[0], arguments[1]];
277357
+ box2 = [arguments[0], arguments[1]];
276786
277358
  } else {
276787
277359
  throw new TypeError("Invalid argument");
276788
277360
  }
276789
277361
  const conds = this._conditions[path2] || (this._conditions[path2] = {});
276790
- conds[this._geoComparison || $withinCmd] = { $box: box };
277362
+ conds[this._geoComparison || $withinCmd] = { $box: box2 };
276791
277363
  return this;
276792
277364
  };
276793
277365
  Query2.prototype.polygon = function() {
@@ -286692,7 +287264,7 @@ mongoose$2.exports.trusted = mongoose.trusted;
286692
287264
  mongoose$2.exports.skipMiddlewareFunction = mongoose.skipMiddlewareFunction;
286693
287265
  mongoose$2.exports.overwriteMiddlewareResult = mongoose.overwriteMiddlewareResult;
286694
287266
  var mongooseExports = mongoose$2.exports;
286695
- const mongoose$1 = /* @__PURE__ */ getDefaultExportFromCjs(mongooseExports);
287267
+ const mongoose$1 = /* @__PURE__ */ getDefaultExportFromCjs$1(mongooseExports);
286696
287268
  var logSettings = {};
286697
287269
  var loglevel = { exports: {} };
286698
287270
  (function(module2) {
@@ -287425,7 +287997,7 @@ var varyExports = vary$1.exports;
287425
287997
  lib.exports = middlewareWrapper;
287426
287998
  })();
287427
287999
  var libExports = lib.exports;
287428
- const cors = /* @__PURE__ */ getDefaultExportFromCjs(libExports);
288000
+ const cors = /* @__PURE__ */ getDefaultExportFromCjs$1(libExports);
287429
288001
  var main$2 = { exports: {} };
287430
288002
  const name = "dotenv";
287431
288003
  const version$1 = "16.3.1";
@@ -287724,7 +288296,7 @@ main$2.exports.parse = DotenvModule.parse;
287724
288296
  main$2.exports.populate = DotenvModule.populate;
287725
288297
  main$2.exports = DotenvModule;
287726
288298
  var mainExports = main$2.exports;
287727
- const dotenv = /* @__PURE__ */ getDefaultExportFromCjs(mainExports);
288299
+ const dotenv = /* @__PURE__ */ getDefaultExportFromCjs$1(mainExports);
287728
288300
  async function memoryServerSetup() {
287729
288301
  const mongod = MongoMemoryServer.create();
287730
288302
  const memoryServer = await mongod;
@@ -292161,7 +292733,7 @@ var jsonwebtoken = {
292161
292733
  NotBeforeError: NotBeforeError_1,
292162
292734
  TokenExpiredError: TokenExpiredError_1
292163
292735
  };
292164
- const jwt = /* @__PURE__ */ getDefaultExportFromCjs(jsonwebtoken);
292736
+ const jwt = /* @__PURE__ */ getDefaultExportFromCjs$1(jsonwebtoken);
292165
292737
  const SubscribeBodySpec = ProcaptchaResponse.merge(
292166
292738
  z.object({
292167
292739
  email: z.string().email(),
@@ -292306,6 +292878,9 @@ main().then(() => {
292306
292878
  process.exit();
292307
292879
  });
292308
292880
  export {
292881
+ colors as c,
292882
+ getDefaultExportFromCjs as g,
292309
292883
  getEnvFile,
292884
+ isUnicodeSupported as i,
292310
292885
  loadEnv
292311
292886
  };