@storm-software/workspace-tools 1.21.7 → 1.21.8

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.
@@ -450,7 +450,7 @@ function __classPrivateFieldIn(state, receiver) {
450
450
  throw new TypeError("Cannot use 'in' operator on non-object");
451
451
  return typeof state === "function" ? receiver === state : state.has(receiver);
452
452
  }
453
- function __addDisposableResource(env, value, async) {
453
+ function __addDisposableResource(env2, value, async) {
454
454
  if (value !== null && value !== void 0) {
455
455
  if (typeof value !== "object" && typeof value !== "function")
456
456
  throw new TypeError("Object expected.");
@@ -467,20 +467,20 @@ function __addDisposableResource(env, value, async) {
467
467
  }
468
468
  if (typeof dispose !== "function")
469
469
  throw new TypeError("Object not disposable.");
470
- env.stack.push({ value, dispose, async });
470
+ env2.stack.push({ value, dispose, async });
471
471
  } else if (async) {
472
- env.stack.push({ async: true });
472
+ env2.stack.push({ async: true });
473
473
  }
474
474
  return value;
475
475
  }
476
- function __disposeResources(env) {
476
+ function __disposeResources(env2) {
477
477
  function fail(e) {
478
- env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
479
- env.hasError = true;
478
+ env2.error = env2.hasError ? new _SuppressedError(e, env2.error, "An error was suppressed during disposal.") : e;
479
+ env2.hasError = true;
480
480
  }
481
481
  function next() {
482
- while (env.stack.length) {
483
- var rec = env.stack.pop();
482
+ while (env2.stack.length) {
483
+ var rec = env2.stack.pop();
484
484
  try {
485
485
  var result = rec.dispose && rec.dispose.call(rec.value);
486
486
  if (rec.async)
@@ -492,8 +492,8 @@ function __disposeResources(env) {
492
492
  fail(e);
493
493
  }
494
494
  }
495
- if (env.hasError)
496
- throw env.error;
495
+ if (env2.hasError)
496
+ throw env2.error;
497
497
  }
498
498
  return next();
499
499
  }
@@ -6892,16 +6892,16 @@ var require_rimraf = __commonJS({
6892
6892
  var require_tmp = __commonJS({
6893
6893
  "node_modules/.pnpm/tmp@0.2.1/node_modules/tmp/lib/tmp.js"(exports, module2) {
6894
6894
  var fs = require("fs");
6895
- var os = require("os");
6895
+ var os2 = require("os");
6896
6896
  var path = require("path");
6897
6897
  var crypto = require("crypto");
6898
- var _c = { fs: fs.constants, os: os.constants };
6898
+ var _c = { fs: fs.constants, os: os2.constants };
6899
6899
  var rimraf = require_rimraf();
6900
6900
  var RANDOM_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
6901
6901
  var TEMPLATE_PATTERN = /XXXXXX/;
6902
6902
  var DEFAULT_TRIES = 3;
6903
6903
  var CREATE_FLAGS = (_c.O_CREAT || _c.fs.O_CREAT) | (_c.O_EXCL || _c.fs.O_EXCL) | (_c.O_RDWR || _c.fs.O_RDWR);
6904
- var IS_WIN32 = os.platform() === "win32";
6904
+ var IS_WIN32 = os2.platform() === "win32";
6905
6905
  var EBADF = _c.EBADF || _c.os.errno.EBADF;
6906
6906
  var ENOENT = _c.ENOENT || _c.os.errno.ENOENT;
6907
6907
  var DIR_MODE = 448;
@@ -7198,7 +7198,7 @@ var require_tmp = __commonJS({
7198
7198
  _gracefulCleanup = true;
7199
7199
  }
7200
7200
  function _getTmpDir(options) {
7201
- return path.resolve(_sanitizeName(options && options.tmpdir || os.tmpdir()));
7201
+ return path.resolve(_sanitizeName(options && options.tmpdir || os2.tmpdir()));
7202
7202
  }
7203
7203
  process.addListener(EXIT, _garbageCollector);
7204
7204
  Object.defineProperty(module2.exports, "tmpdir", {
@@ -11571,7 +11571,7 @@ var require_innerFrom = __commonJS({
11571
11571
  exports.fromIterable = fromIterable;
11572
11572
  function fromAsyncIterable(asyncIterable) {
11573
11573
  return new Observable_1.Observable(function(subscriber) {
11574
- process2(asyncIterable, subscriber).catch(function(err) {
11574
+ process3(asyncIterable, subscriber).catch(function(err) {
11575
11575
  return subscriber.error(err);
11576
11576
  });
11577
11577
  });
@@ -11581,7 +11581,7 @@ var require_innerFrom = __commonJS({
11581
11581
  return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
11582
11582
  }
11583
11583
  exports.fromReadableStreamLike = fromReadableStreamLike;
11584
- function process2(asyncIterable, subscriber) {
11584
+ function process3(asyncIterable, subscriber) {
11585
11585
  var asyncIterable_1, asyncIterable_1_1;
11586
11586
  var e_2, _a;
11587
11587
  return __awaiter2(this, void 0, void 0, function() {
@@ -19407,15 +19407,15 @@ var require_color_convert = __commonJS({
19407
19407
  var require_ansi_styles = __commonJS({
19408
19408
  "node_modules/.pnpm/ansi-styles@4.3.0/node_modules/ansi-styles/index.js"(exports, module2) {
19409
19409
  "use strict";
19410
- var wrapAnsi16 = (fn, offset) => (...args) => {
19410
+ var wrapAnsi162 = (fn, offset) => (...args) => {
19411
19411
  const code = fn(...args);
19412
19412
  return `\x1B[${code + offset}m`;
19413
19413
  };
19414
- var wrapAnsi256 = (fn, offset) => (...args) => {
19414
+ var wrapAnsi2562 = (fn, offset) => (...args) => {
19415
19415
  const code = fn(...args);
19416
19416
  return `\x1B[${38 + offset};5;${code}m`;
19417
19417
  };
19418
- var wrapAnsi16m = (fn, offset) => (...args) => {
19418
+ var wrapAnsi16m2 = (fn, offset) => (...args) => {
19419
19419
  const rgb = fn(...args);
19420
19420
  return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
19421
19421
  };
@@ -19442,20 +19442,20 @@ var require_ansi_styles = __commonJS({
19442
19442
  colorConvert = require_color_convert();
19443
19443
  }
19444
19444
  const offset = isBackground ? 10 : 0;
19445
- const styles = {};
19445
+ const styles3 = {};
19446
19446
  for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
19447
19447
  const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
19448
19448
  if (sourceSpace === targetSpace) {
19449
- styles[name] = wrap(identity, offset);
19449
+ styles3[name] = wrap(identity, offset);
19450
19450
  } else if (typeof suite === "object") {
19451
- styles[name] = wrap(suite[targetSpace], offset);
19451
+ styles3[name] = wrap(suite[targetSpace], offset);
19452
19452
  }
19453
19453
  }
19454
- return styles;
19454
+ return styles3;
19455
19455
  };
19456
- function assembleStyles() {
19456
+ function assembleStyles2() {
19457
19457
  const codes = /* @__PURE__ */ new Map();
19458
- const styles = {
19458
+ const styles3 = {
19459
19459
  modifier: {
19460
19460
  reset: [0, 0],
19461
19461
  // 21 isn't widely supported and 22 does the same thing
@@ -19506,41 +19506,41 @@ var require_ansi_styles = __commonJS({
19506
19506
  bgWhiteBright: [107, 49]
19507
19507
  }
19508
19508
  };
19509
- styles.color.gray = styles.color.blackBright;
19510
- styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
19511
- styles.color.grey = styles.color.blackBright;
19512
- styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
19513
- for (const [groupName, group] of Object.entries(styles)) {
19509
+ styles3.color.gray = styles3.color.blackBright;
19510
+ styles3.bgColor.bgGray = styles3.bgColor.bgBlackBright;
19511
+ styles3.color.grey = styles3.color.blackBright;
19512
+ styles3.bgColor.bgGrey = styles3.bgColor.bgBlackBright;
19513
+ for (const [groupName, group] of Object.entries(styles3)) {
19514
19514
  for (const [styleName, style] of Object.entries(group)) {
19515
- styles[styleName] = {
19515
+ styles3[styleName] = {
19516
19516
  open: `\x1B[${style[0]}m`,
19517
19517
  close: `\x1B[${style[1]}m`
19518
19518
  };
19519
- group[styleName] = styles[styleName];
19519
+ group[styleName] = styles3[styleName];
19520
19520
  codes.set(style[0], style[1]);
19521
19521
  }
19522
- Object.defineProperty(styles, groupName, {
19522
+ Object.defineProperty(styles3, groupName, {
19523
19523
  value: group,
19524
19524
  enumerable: false
19525
19525
  });
19526
19526
  }
19527
- Object.defineProperty(styles, "codes", {
19527
+ Object.defineProperty(styles3, "codes", {
19528
19528
  value: codes,
19529
19529
  enumerable: false
19530
19530
  });
19531
- styles.color.close = "\x1B[39m";
19532
- styles.bgColor.close = "\x1B[49m";
19533
- setLazyProperty(styles.color, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, false));
19534
- setLazyProperty(styles.color, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, false));
19535
- setLazyProperty(styles.color, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, false));
19536
- setLazyProperty(styles.bgColor, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, true));
19537
- setLazyProperty(styles.bgColor, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, true));
19538
- setLazyProperty(styles.bgColor, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, true));
19539
- return styles;
19531
+ styles3.color.close = "\x1B[39m";
19532
+ styles3.bgColor.close = "\x1B[49m";
19533
+ setLazyProperty(styles3.color, "ansi", () => makeDynamicStyles(wrapAnsi162, "ansi16", ansi2ansi, false));
19534
+ setLazyProperty(styles3.color, "ansi256", () => makeDynamicStyles(wrapAnsi2562, "ansi256", ansi2ansi, false));
19535
+ setLazyProperty(styles3.color, "ansi16m", () => makeDynamicStyles(wrapAnsi16m2, "rgb", rgb2rgb, false));
19536
+ setLazyProperty(styles3.bgColor, "ansi", () => makeDynamicStyles(wrapAnsi162, "ansi16", ansi2ansi, true));
19537
+ setLazyProperty(styles3.bgColor, "ansi256", () => makeDynamicStyles(wrapAnsi2562, "ansi256", ansi2ansi, true));
19538
+ setLazyProperty(styles3.bgColor, "ansi16m", () => makeDynamicStyles(wrapAnsi16m2, "rgb", rgb2rgb, true));
19539
+ return styles3;
19540
19540
  }
19541
19541
  Object.defineProperty(module2, "exports", {
19542
19542
  enumerable: true,
19543
- get: assembleStyles
19543
+ get: assembleStyles2
19544
19544
  });
19545
19545
  }
19546
19546
  });
@@ -19562,26 +19562,26 @@ var require_has_flag = __commonJS({
19562
19562
  var require_supports_color = __commonJS({
19563
19563
  "node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports, module2) {
19564
19564
  "use strict";
19565
- var os = require("os");
19566
- var tty = require("tty");
19567
- var hasFlag = require_has_flag();
19568
- var { env } = process;
19565
+ var os2 = require("os");
19566
+ var tty2 = require("tty");
19567
+ var hasFlag2 = require_has_flag();
19568
+ var { env: env2 } = process;
19569
19569
  var forceColor;
19570
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
19570
+ if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
19571
19571
  forceColor = 0;
19572
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
19572
+ } else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
19573
19573
  forceColor = 1;
19574
19574
  }
19575
- if ("FORCE_COLOR" in env) {
19576
- if (env.FORCE_COLOR === "true") {
19575
+ if ("FORCE_COLOR" in env2) {
19576
+ if (env2.FORCE_COLOR === "true") {
19577
19577
  forceColor = 1;
19578
- } else if (env.FORCE_COLOR === "false") {
19578
+ } else if (env2.FORCE_COLOR === "false") {
19579
19579
  forceColor = 0;
19580
19580
  } else {
19581
- forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
19581
+ forceColor = env2.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env2.FORCE_COLOR, 10), 3);
19582
19582
  }
19583
19583
  }
19584
- function translateLevel(level) {
19584
+ function translateLevel2(level) {
19585
19585
  if (level === 0) {
19586
19586
  return false;
19587
19587
  }
@@ -19592,70 +19592,70 @@ var require_supports_color = __commonJS({
19592
19592
  has16m: level >= 3
19593
19593
  };
19594
19594
  }
19595
- function supportsColor(haveStream, streamIsTTY) {
19595
+ function supportsColor2(haveStream, streamIsTTY) {
19596
19596
  if (forceColor === 0) {
19597
19597
  return 0;
19598
19598
  }
19599
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
19599
+ if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
19600
19600
  return 3;
19601
19601
  }
19602
- if (hasFlag("color=256")) {
19602
+ if (hasFlag2("color=256")) {
19603
19603
  return 2;
19604
19604
  }
19605
19605
  if (haveStream && !streamIsTTY && forceColor === void 0) {
19606
19606
  return 0;
19607
19607
  }
19608
19608
  const min = forceColor || 0;
19609
- if (env.TERM === "dumb") {
19609
+ if (env2.TERM === "dumb") {
19610
19610
  return min;
19611
19611
  }
19612
19612
  if (process.platform === "win32") {
19613
- const osRelease = os.release().split(".");
19613
+ const osRelease = os2.release().split(".");
19614
19614
  if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
19615
19615
  return Number(osRelease[2]) >= 14931 ? 3 : 2;
19616
19616
  }
19617
19617
  return 1;
19618
19618
  }
19619
- if ("CI" in env) {
19620
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
19619
+ if ("CI" in env2) {
19620
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
19621
19621
  return 1;
19622
19622
  }
19623
19623
  return min;
19624
19624
  }
19625
- if ("TEAMCITY_VERSION" in env) {
19626
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
19625
+ if ("TEAMCITY_VERSION" in env2) {
19626
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
19627
19627
  }
19628
- if (env.COLORTERM === "truecolor") {
19628
+ if (env2.COLORTERM === "truecolor") {
19629
19629
  return 3;
19630
19630
  }
19631
- if ("TERM_PROGRAM" in env) {
19632
- const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
19633
- switch (env.TERM_PROGRAM) {
19631
+ if ("TERM_PROGRAM" in env2) {
19632
+ const version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
19633
+ switch (env2.TERM_PROGRAM) {
19634
19634
  case "iTerm.app":
19635
19635
  return version >= 3 ? 3 : 2;
19636
19636
  case "Apple_Terminal":
19637
19637
  return 2;
19638
19638
  }
19639
19639
  }
19640
- if (/-256(color)?$/i.test(env.TERM)) {
19640
+ if (/-256(color)?$/i.test(env2.TERM)) {
19641
19641
  return 2;
19642
19642
  }
19643
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
19643
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
19644
19644
  return 1;
19645
19645
  }
19646
- if ("COLORTERM" in env) {
19646
+ if ("COLORTERM" in env2) {
19647
19647
  return 1;
19648
19648
  }
19649
19649
  return min;
19650
19650
  }
19651
19651
  function getSupportLevel(stream) {
19652
- const level = supportsColor(stream, stream && stream.isTTY);
19653
- return translateLevel(level);
19652
+ const level = supportsColor2(stream, stream && stream.isTTY);
19653
+ return translateLevel2(level);
19654
19654
  }
19655
19655
  module2.exports = {
19656
19656
  supportsColor: getSupportLevel,
19657
- stdout: translateLevel(supportsColor(true, tty.isatty(1))),
19658
- stderr: translateLevel(supportsColor(true, tty.isatty(2)))
19657
+ stdout: translateLevel2(supportsColor2(true, tty2.isatty(1))),
19658
+ stderr: translateLevel2(supportsColor2(true, tty2.isatty(2)))
19659
19659
  };
19660
19660
  }
19661
19661
  });
@@ -19664,7 +19664,7 @@ var require_supports_color = __commonJS({
19664
19664
  var require_util = __commonJS({
19665
19665
  "node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/util.js"(exports, module2) {
19666
19666
  "use strict";
19667
- var stringReplaceAll = (string, substring, replacer) => {
19667
+ var stringReplaceAll2 = (string, substring, replacer) => {
19668
19668
  let index = string.indexOf(substring);
19669
19669
  if (index === -1) {
19670
19670
  return string;
@@ -19680,7 +19680,7 @@ var require_util = __commonJS({
19680
19680
  returnValue += string.substr(endIndex);
19681
19681
  return returnValue;
19682
19682
  };
19683
- var stringEncaseCRLFWithFirstIndex = (string, prefix, postfix, index) => {
19683
+ var stringEncaseCRLFWithFirstIndex2 = (string, prefix, postfix, index) => {
19684
19684
  let endIndex = 0;
19685
19685
  let returnValue = "";
19686
19686
  do {
@@ -19693,8 +19693,8 @@ var require_util = __commonJS({
19693
19693
  return returnValue;
19694
19694
  };
19695
19695
  module2.exports = {
19696
- stringReplaceAll,
19697
- stringEncaseCRLFWithFirstIndex
19696
+ stringReplaceAll: stringReplaceAll2,
19697
+ stringEncaseCRLFWithFirstIndex: stringEncaseCRLFWithFirstIndex2
19698
19698
  };
19699
19699
  }
19700
19700
  });
@@ -19761,27 +19761,27 @@ var require_templates = __commonJS({
19761
19761
  }
19762
19762
  return results;
19763
19763
  }
19764
- function buildStyle(chalk, styles) {
19764
+ function buildStyle(chalk2, styles3) {
19765
19765
  const enabled = {};
19766
- for (const layer of styles) {
19766
+ for (const layer of styles3) {
19767
19767
  for (const style of layer.styles) {
19768
19768
  enabled[style[0]] = layer.inverse ? null : style.slice(1);
19769
19769
  }
19770
19770
  }
19771
- let current = chalk;
19772
- for (const [styleName, styles2] of Object.entries(enabled)) {
19773
- if (!Array.isArray(styles2)) {
19771
+ let current = chalk2;
19772
+ for (const [styleName, styles4] of Object.entries(enabled)) {
19773
+ if (!Array.isArray(styles4)) {
19774
19774
  continue;
19775
19775
  }
19776
19776
  if (!(styleName in current)) {
19777
19777
  throw new Error(`Unknown Chalk style: ${styleName}`);
19778
19778
  }
19779
- current = styles2.length > 0 ? current[styleName](...styles2) : current[styleName];
19779
+ current = styles4.length > 0 ? current[styleName](...styles4) : current[styleName];
19780
19780
  }
19781
19781
  return current;
19782
19782
  }
19783
- module2.exports = (chalk, temporary) => {
19784
- const styles = [];
19783
+ module2.exports = (chalk2, temporary) => {
19784
+ const styles3 = [];
19785
19785
  const chunks = [];
19786
19786
  let chunk = [];
19787
19787
  temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
@@ -19790,22 +19790,22 @@ var require_templates = __commonJS({
19790
19790
  } else if (style) {
19791
19791
  const string = chunk.join("");
19792
19792
  chunk = [];
19793
- chunks.push(styles.length === 0 ? string : buildStyle(chalk, styles)(string));
19794
- styles.push({ inverse, styles: parseStyle(style) });
19793
+ chunks.push(styles3.length === 0 ? string : buildStyle(chalk2, styles3)(string));
19794
+ styles3.push({ inverse, styles: parseStyle(style) });
19795
19795
  } else if (close) {
19796
- if (styles.length === 0) {
19796
+ if (styles3.length === 0) {
19797
19797
  throw new Error("Found extraneous } in Chalk template literal");
19798
19798
  }
19799
- chunks.push(buildStyle(chalk, styles)(chunk.join("")));
19799
+ chunks.push(buildStyle(chalk2, styles3)(chunk.join("")));
19800
19800
  chunk = [];
19801
- styles.pop();
19801
+ styles3.pop();
19802
19802
  } else {
19803
19803
  chunk.push(character);
19804
19804
  }
19805
19805
  });
19806
19806
  chunks.push(chunk.join(""));
19807
- if (styles.length > 0) {
19808
- const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? "" : "s"} (\`}\`)`;
19807
+ if (styles3.length > 0) {
19808
+ const errMessage = `Chalk template literal is missing ${styles3.length} closing bracket${styles3.length === 1 ? "" : "s"} (\`}\`)`;
19809
19809
  throw new Error(errMessage);
19810
19810
  }
19811
19811
  return chunks.join("");
@@ -19817,90 +19817,90 @@ var require_templates = __commonJS({
19817
19817
  var require_source = __commonJS({
19818
19818
  "node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/index.js"(exports, module2) {
19819
19819
  "use strict";
19820
- var ansiStyles = require_ansi_styles();
19821
- var { stdout: stdoutColor, stderr: stderrColor } = require_supports_color();
19820
+ var ansiStyles2 = require_ansi_styles();
19821
+ var { stdout: stdoutColor2, stderr: stderrColor2 } = require_supports_color();
19822
19822
  var {
19823
- stringReplaceAll,
19824
- stringEncaseCRLFWithFirstIndex
19823
+ stringReplaceAll: stringReplaceAll2,
19824
+ stringEncaseCRLFWithFirstIndex: stringEncaseCRLFWithFirstIndex2
19825
19825
  } = require_util();
19826
19826
  var { isArray } = Array;
19827
- var levelMapping = [
19827
+ var levelMapping2 = [
19828
19828
  "ansi",
19829
19829
  "ansi",
19830
19830
  "ansi256",
19831
19831
  "ansi16m"
19832
19832
  ];
19833
- var styles = /* @__PURE__ */ Object.create(null);
19834
- var applyOptions = (object, options = {}) => {
19833
+ var styles3 = /* @__PURE__ */ Object.create(null);
19834
+ var applyOptions2 = (object, options = {}) => {
19835
19835
  if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
19836
19836
  throw new Error("The `level` option should be an integer from 0 to 3");
19837
19837
  }
19838
- const colorLevel = stdoutColor ? stdoutColor.level : 0;
19838
+ const colorLevel = stdoutColor2 ? stdoutColor2.level : 0;
19839
19839
  object.level = options.level === void 0 ? colorLevel : options.level;
19840
19840
  };
19841
19841
  var ChalkClass = class {
19842
19842
  constructor(options) {
19843
- return chalkFactory(options);
19843
+ return chalkFactory2(options);
19844
19844
  }
19845
19845
  };
19846
- var chalkFactory = (options) => {
19847
- const chalk2 = {};
19848
- applyOptions(chalk2, options);
19849
- chalk2.template = (...arguments_) => chalkTag(chalk2.template, ...arguments_);
19850
- Object.setPrototypeOf(chalk2, Chalk.prototype);
19851
- Object.setPrototypeOf(chalk2.template, chalk2);
19852
- chalk2.template.constructor = () => {
19846
+ var chalkFactory2 = (options) => {
19847
+ const chalk3 = {};
19848
+ applyOptions2(chalk3, options);
19849
+ chalk3.template = (...arguments_) => chalkTag(chalk3.template, ...arguments_);
19850
+ Object.setPrototypeOf(chalk3, Chalk.prototype);
19851
+ Object.setPrototypeOf(chalk3.template, chalk3);
19852
+ chalk3.template.constructor = () => {
19853
19853
  throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
19854
19854
  };
19855
- chalk2.template.Instance = ChalkClass;
19856
- return chalk2.template;
19855
+ chalk3.template.Instance = ChalkClass;
19856
+ return chalk3.template;
19857
19857
  };
19858
19858
  function Chalk(options) {
19859
- return chalkFactory(options);
19859
+ return chalkFactory2(options);
19860
19860
  }
19861
- for (const [styleName, style] of Object.entries(ansiStyles)) {
19862
- styles[styleName] = {
19861
+ for (const [styleName, style] of Object.entries(ansiStyles2)) {
19862
+ styles3[styleName] = {
19863
19863
  get() {
19864
- const builder = createBuilder(this, createStyler(style.open, style.close, this._styler), this._isEmpty);
19864
+ const builder = createBuilder2(this, createStyler2(style.open, style.close, this._styler), this._isEmpty);
19865
19865
  Object.defineProperty(this, styleName, { value: builder });
19866
19866
  return builder;
19867
19867
  }
19868
19868
  };
19869
19869
  }
19870
- styles.visible = {
19870
+ styles3.visible = {
19871
19871
  get() {
19872
- const builder = createBuilder(this, this._styler, true);
19872
+ const builder = createBuilder2(this, this._styler, true);
19873
19873
  Object.defineProperty(this, "visible", { value: builder });
19874
19874
  return builder;
19875
19875
  }
19876
19876
  };
19877
- var usedModels = ["rgb", "hex", "keyword", "hsl", "hsv", "hwb", "ansi", "ansi256"];
19878
- for (const model of usedModels) {
19879
- styles[model] = {
19877
+ var usedModels2 = ["rgb", "hex", "keyword", "hsl", "hsv", "hwb", "ansi", "ansi256"];
19878
+ for (const model of usedModels2) {
19879
+ styles3[model] = {
19880
19880
  get() {
19881
19881
  const { level } = this;
19882
19882
  return function(...arguments_) {
19883
- const styler = createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_), ansiStyles.color.close, this._styler);
19884
- return createBuilder(this, styler, this._isEmpty);
19883
+ const styler = createStyler2(ansiStyles2.color[levelMapping2[level]][model](...arguments_), ansiStyles2.color.close, this._styler);
19884
+ return createBuilder2(this, styler, this._isEmpty);
19885
19885
  };
19886
19886
  }
19887
19887
  };
19888
19888
  }
19889
- for (const model of usedModels) {
19889
+ for (const model of usedModels2) {
19890
19890
  const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
19891
- styles[bgModel] = {
19891
+ styles3[bgModel] = {
19892
19892
  get() {
19893
19893
  const { level } = this;
19894
19894
  return function(...arguments_) {
19895
- const styler = createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_), ansiStyles.bgColor.close, this._styler);
19896
- return createBuilder(this, styler, this._isEmpty);
19895
+ const styler = createStyler2(ansiStyles2.bgColor[levelMapping2[level]][model](...arguments_), ansiStyles2.bgColor.close, this._styler);
19896
+ return createBuilder2(this, styler, this._isEmpty);
19897
19897
  };
19898
19898
  }
19899
19899
  };
19900
19900
  }
19901
- var proto = Object.defineProperties(() => {
19901
+ var proto2 = Object.defineProperties(() => {
19902
19902
  }, {
19903
- ...styles,
19903
+ ...styles3,
19904
19904
  level: {
19905
19905
  enumerable: true,
19906
19906
  get() {
@@ -19911,7 +19911,7 @@ var require_source = __commonJS({
19911
19911
  }
19912
19912
  }
19913
19913
  });
19914
- var createStyler = (open, close, parent) => {
19914
+ var createStyler2 = (open, close, parent) => {
19915
19915
  let openAll;
19916
19916
  let closeAll;
19917
19917
  if (parent === void 0) {
@@ -19929,20 +19929,20 @@ var require_source = __commonJS({
19929
19929
  parent
19930
19930
  };
19931
19931
  };
19932
- var createBuilder = (self, _styler, _isEmpty) => {
19932
+ var createBuilder2 = (self, _styler, _isEmpty) => {
19933
19933
  const builder = (...arguments_) => {
19934
19934
  if (isArray(arguments_[0]) && isArray(arguments_[0].raw)) {
19935
- return applyStyle(builder, chalkTag(builder, ...arguments_));
19935
+ return applyStyle2(builder, chalkTag(builder, ...arguments_));
19936
19936
  }
19937
- return applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
19937
+ return applyStyle2(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
19938
19938
  };
19939
- Object.setPrototypeOf(builder, proto);
19939
+ Object.setPrototypeOf(builder, proto2);
19940
19940
  builder._generator = self;
19941
19941
  builder._styler = _styler;
19942
19942
  builder._isEmpty = _isEmpty;
19943
19943
  return builder;
19944
19944
  };
19945
- var applyStyle = (self, string) => {
19945
+ var applyStyle2 = (self, string) => {
19946
19946
  if (self.level <= 0 || !string) {
19947
19947
  return self._isEmpty ? "" : string;
19948
19948
  }
@@ -19953,18 +19953,18 @@ var require_source = __commonJS({
19953
19953
  const { openAll, closeAll } = styler;
19954
19954
  if (string.indexOf("\x1B") !== -1) {
19955
19955
  while (styler !== void 0) {
19956
- string = stringReplaceAll(string, styler.close, styler.open);
19956
+ string = stringReplaceAll2(string, styler.close, styler.open);
19957
19957
  styler = styler.parent;
19958
19958
  }
19959
19959
  }
19960
19960
  const lfIndex = string.indexOf("\n");
19961
19961
  if (lfIndex !== -1) {
19962
- string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
19962
+ string = stringEncaseCRLFWithFirstIndex2(string, closeAll, openAll, lfIndex);
19963
19963
  }
19964
19964
  return openAll + string + closeAll;
19965
19965
  };
19966
19966
  var template;
19967
- var chalkTag = (chalk2, ...strings) => {
19967
+ var chalkTag = (chalk3, ...strings) => {
19968
19968
  const [firstString] = strings;
19969
19969
  if (!isArray(firstString) || !isArray(firstString.raw)) {
19970
19970
  return strings.join(" ");
@@ -19980,14 +19980,14 @@ var require_source = __commonJS({
19980
19980
  if (template === void 0) {
19981
19981
  template = require_templates();
19982
19982
  }
19983
- return template(chalk2, parts.join(""));
19983
+ return template(chalk3, parts.join(""));
19984
19984
  };
19985
- Object.defineProperties(Chalk.prototype, styles);
19986
- var chalk = Chalk();
19987
- chalk.supportsColor = stdoutColor;
19988
- chalk.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
19989
- chalk.stderr.supportsColor = stderrColor;
19990
- module2.exports = chalk;
19985
+ Object.defineProperties(Chalk.prototype, styles3);
19986
+ var chalk2 = Chalk();
19987
+ chalk2.supportsColor = stdoutColor2;
19988
+ chalk2.stderr = Chalk({ level: stderrColor2 ? stderrColor2.level : 0 });
19989
+ chalk2.stderr.supportsColor = stderrColor2;
19990
+ module2.exports = chalk2;
19991
19991
  }
19992
19992
  });
19993
19993
 
@@ -20082,20 +20082,20 @@ var require_highlight = __commonJS({
20082
20082
  Object.defineProperty(exports, "__esModule", { value: true });
20083
20083
  exports.highlight = void 0;
20084
20084
  var jsTokens = require_js_tokens();
20085
- var chalk = require_source();
20085
+ var chalk2 = require_source();
20086
20086
  var identifiers_1 = require_identifiers2();
20087
- function getDefs(chalk2) {
20087
+ function getDefs(chalk3) {
20088
20088
  return {
20089
- keyword: chalk2.cyan,
20090
- capitalized: chalk2.yellow,
20091
- jsx_tag: chalk2.yellow,
20092
- punctuator: chalk2.yellow,
20089
+ keyword: chalk3.cyan,
20090
+ capitalized: chalk3.yellow,
20091
+ jsx_tag: chalk3.yellow,
20092
+ punctuator: chalk3.yellow,
20093
20093
  // bracket: intentionally omitted.
20094
- number: chalk2.magenta,
20095
- string: chalk2.green,
20096
- regex: chalk2.magenta,
20097
- comment: chalk2.grey,
20098
- invalid: chalk2.white.bgRed.bold
20094
+ number: chalk3.magenta,
20095
+ string: chalk3.green,
20096
+ regex: chalk3.magenta,
20097
+ comment: chalk3.grey,
20098
+ invalid: chalk3.white.bgRed.bold
20099
20099
  };
20100
20100
  }
20101
20101
  var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
@@ -20135,7 +20135,7 @@ var require_highlight = __commonJS({
20135
20135
  });
20136
20136
  }
20137
20137
  function highlight(code) {
20138
- const defs = getDefs(chalk);
20138
+ const defs = getDefs(chalk2);
20139
20139
  return highlightTokens(defs, code);
20140
20140
  }
20141
20141
  exports.highlight = highlight;
@@ -20248,7 +20248,7 @@ var require_run_type_check = __commonJS({
20248
20248
  "use strict";
20249
20249
  Object.defineProperty(exports, "__esModule", { value: true });
20250
20250
  exports.getFormattedDiagnostic = exports.runTypeCheck = exports.runTypeCheckWatch = void 0;
20251
- var chalk = require_source();
20251
+ var chalk2 = require_source();
20252
20252
  var path = require("path");
20253
20253
  var code_frames_1 = require("nx/src/utils/code-frames");
20254
20254
  var highlight_1 = require_highlight();
@@ -20328,17 +20328,17 @@ var require_run_type_check = __commonJS({
20328
20328
  const category = diagnostic.category;
20329
20329
  switch (category) {
20330
20330
  case ts.DiagnosticCategory.Warning: {
20331
- message += `${chalk.yellow.bold("warning")} ${chalk.gray(`TS${diagnostic.code}`)}: `;
20331
+ message += `${chalk2.yellow.bold("warning")} ${chalk2.gray(`TS${diagnostic.code}`)}: `;
20332
20332
  break;
20333
20333
  }
20334
20334
  case ts.DiagnosticCategory.Error: {
20335
- message += `${chalk.red.bold("error")} ${chalk.gray(`TS${diagnostic.code}`)}: `;
20335
+ message += `${chalk2.red.bold("error")} ${chalk2.gray(`TS${diagnostic.code}`)}: `;
20336
20336
  break;
20337
20337
  }
20338
20338
  case ts.DiagnosticCategory.Suggestion:
20339
20339
  case ts.DiagnosticCategory.Message:
20340
20340
  default: {
20341
- message += `${chalk.cyan.bold(category === 2 ? "suggestion" : "info")}: `;
20341
+ message += `${chalk2.cyan.bold(category === 2 ? "suggestion" : "info")}: `;
20342
20342
  break;
20343
20343
  }
20344
20344
  }
@@ -20348,7 +20348,7 @@ var require_run_type_check = __commonJS({
20348
20348
  const line = pos.line + 1;
20349
20349
  const column = pos.character + 1;
20350
20350
  const fileName = path.relative(workspaceRoot, diagnostic.file.fileName);
20351
- message = `${chalk.underline.blue(`${fileName}:${line}:${column}`)} - ` + message;
20351
+ message = `${chalk2.underline.blue(`${fileName}:${line}:${column}`)} - ` + message;
20352
20352
  const code = diagnostic.file.getFullText(diagnostic.file.getSourceFile());
20353
20353
  message += "\n" + (0, code_frames_1.codeFrameColumns)(code, {
20354
20354
  start: { line, column }
@@ -29956,8 +29956,8 @@ var require_settings4 = __commonJS({
29956
29956
  Object.defineProperty(exports, "__esModule", { value: true });
29957
29957
  exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
29958
29958
  var fs = require("fs");
29959
- var os = require("os");
29960
- var CPU_COUNT = Math.max(os.cpus().length, 1);
29959
+ var os2 = require("os");
29960
+ var CPU_COUNT = Math.max(os2.cpus().length, 1);
29961
29961
  exports.DEFAULT_FILE_SYSTEM_ADAPTER = {
29962
29962
  lstat: fs.lstat,
29963
29963
  lstatSync: fs.lstatSync,
@@ -30708,9 +30708,9 @@ var require_utils8 = __commonJS({
30708
30708
  return target;
30709
30709
  };
30710
30710
  exports.mixinEmitter = (obj, emitter) => {
30711
- let proto = emitter.constructor.prototype;
30712
- for (let key of Object.keys(proto)) {
30713
- let val = proto[key];
30711
+ let proto2 = emitter.constructor.prototype;
30712
+ for (let key of Object.keys(proto2)) {
30713
+ let val = proto2[key];
30714
30714
  if (typeof val === "function") {
30715
30715
  exports.define(obj, key, val.bind(emitter));
30716
30716
  } else {
@@ -31119,13 +31119,13 @@ var require_state = __commonJS({
31119
31119
  this._color = val;
31120
31120
  }
31121
31121
  get color() {
31122
- let styles = this.prompt.styles;
31122
+ let styles3 = this.prompt.styles;
31123
31123
  if (this.cancelled)
31124
- return styles.cancelled;
31124
+ return styles3.cancelled;
31125
31125
  if (this.submitted)
31126
- return styles.submitted;
31127
- let color = this._color || styles[this.status];
31128
- return typeof color === "function" ? color : styles.pending;
31126
+ return styles3.submitted;
31127
+ let color = this._color || styles3[this.status];
31128
+ return typeof color === "function" ? color : styles3.pending;
31129
31129
  }
31130
31130
  set loading(value) {
31131
31131
  this._loading = value;
@@ -31155,7 +31155,7 @@ var require_styles = __commonJS({
31155
31155
  "use strict";
31156
31156
  var utils = require_utils8();
31157
31157
  var colors = require_ansi_colors();
31158
- var styles = {
31158
+ var styles3 = {
31159
31159
  default: colors.noop,
31160
31160
  noop: colors.noop,
31161
31161
  /**
@@ -31249,14 +31249,14 @@ var require_styles = __commonJS({
31249
31249
  return this._highlight || this.inverse;
31250
31250
  }
31251
31251
  };
31252
- styles.merge = (options = {}) => {
31252
+ styles3.merge = (options = {}) => {
31253
31253
  if (options.styles && typeof options.styles.enabled === "boolean") {
31254
31254
  colors.enabled = options.styles.enabled;
31255
31255
  }
31256
31256
  if (options.styles && typeof options.styles.visible === "boolean") {
31257
31257
  colors.visible = options.styles.visible;
31258
31258
  }
31259
- let result = utils.merge({}, styles, options.styles);
31259
+ let result = utils.merge({}, styles3, options.styles);
31260
31260
  delete result.merge;
31261
31261
  for (let key of Object.keys(colors)) {
31262
31262
  if (!result.hasOwnProperty(key)) {
@@ -31270,7 +31270,7 @@ var require_styles = __commonJS({
31270
31270
  }
31271
31271
  return result;
31272
31272
  };
31273
- module2.exports = styles;
31273
+ module2.exports = styles3;
31274
31274
  }
31275
31275
  });
31276
31276
 
@@ -31345,13 +31345,13 @@ var require_symbols2 = __commonJS({
31345
31345
  var require_theme = __commonJS({
31346
31346
  "node_modules/.pnpm/enquirer@2.3.6/node_modules/enquirer/lib/theme.js"(exports, module2) {
31347
31347
  "use strict";
31348
- var styles = require_styles();
31348
+ var styles3 = require_styles();
31349
31349
  var symbols = require_symbols2();
31350
31350
  var utils = require_utils8();
31351
31351
  module2.exports = (prompt) => {
31352
31352
  prompt.options = utils.merge({}, prompt.options.theme, prompt.options);
31353
31353
  prompt.symbols = symbols.merge(prompt.options);
31354
- prompt.styles = styles.merge(prompt.options);
31354
+ prompt.styles = styles3.merge(prompt.options);
31355
31355
  };
31356
31356
  }
31357
31357
  });
@@ -31722,9 +31722,9 @@ var require_prompt = __commonJS({
31722
31722
  return val;
31723
31723
  }
31724
31724
  if (val) {
31725
- let styles = this.styles;
31725
+ let styles3 = this.styles;
31726
31726
  let focused = this.index === i;
31727
- let style = focused ? styles.primary : (val2) => val2;
31727
+ let style = focused ? styles3.primary : (val2) => val2;
31728
31728
  let ele = await this.resolve(val[focused ? "on" : "off"] || val, this.state);
31729
31729
  let styled = !utils.hasColor(ele) ? style(ele) : ele;
31730
31730
  return focused ? styled : " ".repeat(ele.length);
@@ -31736,9 +31736,9 @@ var require_prompt = __commonJS({
31736
31736
  return val;
31737
31737
  }
31738
31738
  if (val) {
31739
- let styles = this.styles;
31739
+ let styles3 = this.styles;
31740
31740
  let enabled = choice.enabled === true;
31741
- let style = enabled ? styles.success : styles.dark;
31741
+ let style = enabled ? styles3.success : styles3.dark;
31742
31742
  let ele = val[enabled ? "on" : "off"] || val;
31743
31743
  return !utils.hasColor(ele) ? style(ele) : ele;
31744
31744
  }
@@ -32916,9 +32916,9 @@ var require_form = __commonJS({
32916
32916
  }
32917
32917
  async renderChoice(choice, i) {
32918
32918
  await this.onChoice(choice, i);
32919
- let { state, styles } = this;
32919
+ let { state, styles: styles3 } = this;
32920
32920
  let { cursor, initial = "", name, hint, input = "" } = choice;
32921
- let { muted, submitted, primary, danger } = styles;
32921
+ let { muted, submitted, primary, danger } = styles3;
32922
32922
  let help = hint;
32923
32923
  let focused = this.index === i;
32924
32924
  let validate = choice.validate || (() => true);
@@ -32933,7 +32933,7 @@ var require_form = __commonJS({
32933
32933
  if (await validate.call(choice, value, this.state) !== true) {
32934
32934
  color = "danger";
32935
32935
  }
32936
- let style = styles[color];
32936
+ let style = styles3[color];
32937
32937
  let indicator = style(await this.indicator(choice, i)) + (choice.pad || "");
32938
32938
  let indent = this.indent(choice);
32939
32939
  let line = () => [indent, indicator, msg + sep, input, help].filter(Boolean).join(" ");
@@ -33065,8 +33065,8 @@ var require_boolean = __commonJS({
33065
33065
  return this.submit();
33066
33066
  }
33067
33067
  format(value) {
33068
- let { styles, state } = this;
33069
- return !state.submitted ? styles.primary(value) : styles.success(value);
33068
+ let { styles: styles3, state } = this;
33069
+ return !state.submitted ? styles3.primary(value) : styles3.success(value);
33070
33070
  }
33071
33071
  cast(input) {
33072
33072
  return this.isTrue(input);
@@ -38844,21 +38844,21 @@ var require_ansi_styles2 = __commonJS({
38844
38844
  "node_modules/.pnpm/ansi-styles@3.2.1/node_modules/ansi-styles/index.js"(exports, module2) {
38845
38845
  "use strict";
38846
38846
  var colorConvert = require_color_convert2();
38847
- var wrapAnsi16 = (fn, offset) => function() {
38847
+ var wrapAnsi162 = (fn, offset) => function() {
38848
38848
  const code = fn.apply(colorConvert, arguments);
38849
38849
  return `\x1B[${code + offset}m`;
38850
38850
  };
38851
- var wrapAnsi256 = (fn, offset) => function() {
38851
+ var wrapAnsi2562 = (fn, offset) => function() {
38852
38852
  const code = fn.apply(colorConvert, arguments);
38853
38853
  return `\x1B[${38 + offset};5;${code}m`;
38854
38854
  };
38855
- var wrapAnsi16m = (fn, offset) => function() {
38855
+ var wrapAnsi16m2 = (fn, offset) => function() {
38856
38856
  const rgb = fn.apply(colorConvert, arguments);
38857
38857
  return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
38858
38858
  };
38859
- function assembleStyles() {
38859
+ function assembleStyles2() {
38860
38860
  const codes = /* @__PURE__ */ new Map();
38861
- const styles = {
38861
+ const styles3 = {
38862
38862
  modifier: {
38863
38863
  reset: [0, 0],
38864
38864
  // 21 isn't widely supported and 22 does the same thing
@@ -38909,48 +38909,48 @@ var require_ansi_styles2 = __commonJS({
38909
38909
  bgWhiteBright: [107, 49]
38910
38910
  }
38911
38911
  };
38912
- styles.color.grey = styles.color.gray;
38913
- for (const groupName of Object.keys(styles)) {
38914
- const group = styles[groupName];
38912
+ styles3.color.grey = styles3.color.gray;
38913
+ for (const groupName of Object.keys(styles3)) {
38914
+ const group = styles3[groupName];
38915
38915
  for (const styleName of Object.keys(group)) {
38916
38916
  const style = group[styleName];
38917
- styles[styleName] = {
38917
+ styles3[styleName] = {
38918
38918
  open: `\x1B[${style[0]}m`,
38919
38919
  close: `\x1B[${style[1]}m`
38920
38920
  };
38921
- group[styleName] = styles[styleName];
38921
+ group[styleName] = styles3[styleName];
38922
38922
  codes.set(style[0], style[1]);
38923
38923
  }
38924
- Object.defineProperty(styles, groupName, {
38924
+ Object.defineProperty(styles3, groupName, {
38925
38925
  value: group,
38926
38926
  enumerable: false
38927
38927
  });
38928
- Object.defineProperty(styles, "codes", {
38928
+ Object.defineProperty(styles3, "codes", {
38929
38929
  value: codes,
38930
38930
  enumerable: false
38931
38931
  });
38932
38932
  }
38933
38933
  const ansi2ansi = (n) => n;
38934
38934
  const rgb2rgb = (r, g, b) => [r, g, b];
38935
- styles.color.close = "\x1B[39m";
38936
- styles.bgColor.close = "\x1B[49m";
38937
- styles.color.ansi = {
38938
- ansi: wrapAnsi16(ansi2ansi, 0)
38935
+ styles3.color.close = "\x1B[39m";
38936
+ styles3.bgColor.close = "\x1B[49m";
38937
+ styles3.color.ansi = {
38938
+ ansi: wrapAnsi162(ansi2ansi, 0)
38939
38939
  };
38940
- styles.color.ansi256 = {
38941
- ansi256: wrapAnsi256(ansi2ansi, 0)
38940
+ styles3.color.ansi256 = {
38941
+ ansi256: wrapAnsi2562(ansi2ansi, 0)
38942
38942
  };
38943
- styles.color.ansi16m = {
38944
- rgb: wrapAnsi16m(rgb2rgb, 0)
38943
+ styles3.color.ansi16m = {
38944
+ rgb: wrapAnsi16m2(rgb2rgb, 0)
38945
38945
  };
38946
- styles.bgColor.ansi = {
38947
- ansi: wrapAnsi16(ansi2ansi, 10)
38946
+ styles3.bgColor.ansi = {
38947
+ ansi: wrapAnsi162(ansi2ansi, 10)
38948
38948
  };
38949
- styles.bgColor.ansi256 = {
38950
- ansi256: wrapAnsi256(ansi2ansi, 10)
38949
+ styles3.bgColor.ansi256 = {
38950
+ ansi256: wrapAnsi2562(ansi2ansi, 10)
38951
38951
  };
38952
- styles.bgColor.ansi16m = {
38953
- rgb: wrapAnsi16m(rgb2rgb, 10)
38952
+ styles3.bgColor.ansi16m = {
38953
+ rgb: wrapAnsi16m2(rgb2rgb, 10)
38954
38954
  };
38955
38955
  for (let key of Object.keys(colorConvert)) {
38956
38956
  if (typeof colorConvert[key] !== "object") {
@@ -38961,23 +38961,23 @@ var require_ansi_styles2 = __commonJS({
38961
38961
  key = "ansi";
38962
38962
  }
38963
38963
  if ("ansi16" in suite) {
38964
- styles.color.ansi[key] = wrapAnsi16(suite.ansi16, 0);
38965
- styles.bgColor.ansi[key] = wrapAnsi16(suite.ansi16, 10);
38964
+ styles3.color.ansi[key] = wrapAnsi162(suite.ansi16, 0);
38965
+ styles3.bgColor.ansi[key] = wrapAnsi162(suite.ansi16, 10);
38966
38966
  }
38967
38967
  if ("ansi256" in suite) {
38968
- styles.color.ansi256[key] = wrapAnsi256(suite.ansi256, 0);
38969
- styles.bgColor.ansi256[key] = wrapAnsi256(suite.ansi256, 10);
38968
+ styles3.color.ansi256[key] = wrapAnsi2562(suite.ansi256, 0);
38969
+ styles3.bgColor.ansi256[key] = wrapAnsi2562(suite.ansi256, 10);
38970
38970
  }
38971
38971
  if ("rgb" in suite) {
38972
- styles.color.ansi16m[key] = wrapAnsi16m(suite.rgb, 0);
38973
- styles.bgColor.ansi16m[key] = wrapAnsi16m(suite.rgb, 10);
38972
+ styles3.color.ansi16m[key] = wrapAnsi16m2(suite.rgb, 0);
38973
+ styles3.bgColor.ansi16m[key] = wrapAnsi16m2(suite.rgb, 10);
38974
38974
  }
38975
38975
  }
38976
- return styles;
38976
+ return styles3;
38977
38977
  }
38978
38978
  Object.defineProperty(module2, "exports", {
38979
38979
  enumerable: true,
38980
- get: assembleStyles
38980
+ get: assembleStyles2
38981
38981
  });
38982
38982
  }
38983
38983
  });
@@ -39000,19 +39000,19 @@ var require_has_flag2 = __commonJS({
39000
39000
  var require_supports_color2 = __commonJS({
39001
39001
  "node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports, module2) {
39002
39002
  "use strict";
39003
- var os = require("os");
39004
- var hasFlag = require_has_flag2();
39005
- var env = process.env;
39003
+ var os2 = require("os");
39004
+ var hasFlag2 = require_has_flag2();
39005
+ var env2 = process.env;
39006
39006
  var forceColor;
39007
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
39007
+ if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false")) {
39008
39008
  forceColor = false;
39009
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
39009
+ } else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
39010
39010
  forceColor = true;
39011
39011
  }
39012
- if ("FORCE_COLOR" in env) {
39013
- forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
39012
+ if ("FORCE_COLOR" in env2) {
39013
+ forceColor = env2.FORCE_COLOR.length === 0 || parseInt(env2.FORCE_COLOR, 10) !== 0;
39014
39014
  }
39015
- function translateLevel(level) {
39015
+ function translateLevel2(level) {
39016
39016
  if (level === 0) {
39017
39017
  return false;
39018
39018
  }
@@ -39023,14 +39023,14 @@ var require_supports_color2 = __commonJS({
39023
39023
  has16m: level >= 3
39024
39024
  };
39025
39025
  }
39026
- function supportsColor(stream) {
39026
+ function supportsColor2(stream) {
39027
39027
  if (forceColor === false) {
39028
39028
  return 0;
39029
39029
  }
39030
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
39030
+ if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
39031
39031
  return 3;
39032
39032
  }
39033
- if (hasFlag("color=256")) {
39033
+ if (hasFlag2("color=256")) {
39034
39034
  return 2;
39035
39035
  }
39036
39036
  if (stream && !stream.isTTY && forceColor !== true) {
@@ -39038,50 +39038,50 @@ var require_supports_color2 = __commonJS({
39038
39038
  }
39039
39039
  const min = forceColor ? 1 : 0;
39040
39040
  if (process.platform === "win32") {
39041
- const osRelease = os.release().split(".");
39041
+ const osRelease = os2.release().split(".");
39042
39042
  if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
39043
39043
  return Number(osRelease[2]) >= 14931 ? 3 : 2;
39044
39044
  }
39045
39045
  return 1;
39046
39046
  }
39047
- if ("CI" in env) {
39048
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
39047
+ if ("CI" in env2) {
39048
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
39049
39049
  return 1;
39050
39050
  }
39051
39051
  return min;
39052
39052
  }
39053
- if ("TEAMCITY_VERSION" in env) {
39054
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
39053
+ if ("TEAMCITY_VERSION" in env2) {
39054
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
39055
39055
  }
39056
- if (env.COLORTERM === "truecolor") {
39056
+ if (env2.COLORTERM === "truecolor") {
39057
39057
  return 3;
39058
39058
  }
39059
- if ("TERM_PROGRAM" in env) {
39060
- const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
39061
- switch (env.TERM_PROGRAM) {
39059
+ if ("TERM_PROGRAM" in env2) {
39060
+ const version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
39061
+ switch (env2.TERM_PROGRAM) {
39062
39062
  case "iTerm.app":
39063
39063
  return version >= 3 ? 3 : 2;
39064
39064
  case "Apple_Terminal":
39065
39065
  return 2;
39066
39066
  }
39067
39067
  }
39068
- if (/-256(color)?$/i.test(env.TERM)) {
39068
+ if (/-256(color)?$/i.test(env2.TERM)) {
39069
39069
  return 2;
39070
39070
  }
39071
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
39071
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
39072
39072
  return 1;
39073
39073
  }
39074
- if ("COLORTERM" in env) {
39074
+ if ("COLORTERM" in env2) {
39075
39075
  return 1;
39076
39076
  }
39077
- if (env.TERM === "dumb") {
39077
+ if (env2.TERM === "dumb") {
39078
39078
  return min;
39079
39079
  }
39080
39080
  return min;
39081
39081
  }
39082
39082
  function getSupportLevel(stream) {
39083
- const level = supportsColor(stream);
39084
- return translateLevel(level);
39083
+ const level = supportsColor2(stream);
39084
+ return translateLevel2(level);
39085
39085
  }
39086
39086
  module2.exports = {
39087
39087
  supportsColor: getSupportLevel,
@@ -39147,14 +39147,14 @@ var require_templates2 = __commonJS({
39147
39147
  }
39148
39148
  return results;
39149
39149
  }
39150
- function buildStyle(chalk, styles) {
39150
+ function buildStyle(chalk2, styles3) {
39151
39151
  const enabled = {};
39152
- for (const layer of styles) {
39152
+ for (const layer of styles3) {
39153
39153
  for (const style of layer.styles) {
39154
39154
  enabled[style[0]] = layer.inverse ? null : style.slice(1);
39155
39155
  }
39156
39156
  }
39157
- let current = chalk;
39157
+ let current = chalk2;
39158
39158
  for (const styleName of Object.keys(enabled)) {
39159
39159
  if (Array.isArray(enabled[styleName])) {
39160
39160
  if (!(styleName in current)) {
@@ -39169,8 +39169,8 @@ var require_templates2 = __commonJS({
39169
39169
  }
39170
39170
  return current;
39171
39171
  }
39172
- module2.exports = (chalk, tmp) => {
39173
- const styles = [];
39172
+ module2.exports = (chalk2, tmp) => {
39173
+ const styles3 = [];
39174
39174
  const chunks = [];
39175
39175
  let chunk = [];
39176
39176
  tmp.replace(TEMPLATE_REGEX, (m, escapeChar, inverse, style, close, chr) => {
@@ -39179,22 +39179,22 @@ var require_templates2 = __commonJS({
39179
39179
  } else if (style) {
39180
39180
  const str = chunk.join("");
39181
39181
  chunk = [];
39182
- chunks.push(styles.length === 0 ? str : buildStyle(chalk, styles)(str));
39183
- styles.push({ inverse, styles: parseStyle(style) });
39182
+ chunks.push(styles3.length === 0 ? str : buildStyle(chalk2, styles3)(str));
39183
+ styles3.push({ inverse, styles: parseStyle(style) });
39184
39184
  } else if (close) {
39185
- if (styles.length === 0) {
39185
+ if (styles3.length === 0) {
39186
39186
  throw new Error("Found extraneous } in Chalk template literal");
39187
39187
  }
39188
- chunks.push(buildStyle(chalk, styles)(chunk.join("")));
39188
+ chunks.push(buildStyle(chalk2, styles3)(chunk.join("")));
39189
39189
  chunk = [];
39190
- styles.pop();
39190
+ styles3.pop();
39191
39191
  } else {
39192
39192
  chunk.push(chr);
39193
39193
  }
39194
39194
  });
39195
39195
  chunks.push(chunk.join(""));
39196
- if (styles.length > 0) {
39197
- const errMsg = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? "" : "s"} (\`}\`)`;
39196
+ if (styles3.length > 0) {
39197
+ const errMsg = `Chalk template literal is missing ${styles3.length} closing bracket${styles3.length === 1 ? "" : "s"} (\`}\`)`;
39198
39198
  throw new Error(errMsg);
39199
39199
  }
39200
39200
  return chunks.join("");
@@ -39207,97 +39207,97 @@ var require_chalk = __commonJS({
39207
39207
  "node_modules/.pnpm/chalk@2.4.2/node_modules/chalk/index.js"(exports, module2) {
39208
39208
  "use strict";
39209
39209
  var escapeStringRegexp = require_escape_string_regexp();
39210
- var ansiStyles = require_ansi_styles2();
39211
- var stdoutColor = require_supports_color2().stdout;
39210
+ var ansiStyles2 = require_ansi_styles2();
39211
+ var stdoutColor2 = require_supports_color2().stdout;
39212
39212
  var template = require_templates2();
39213
39213
  var isSimpleWindowsTerm = process.platform === "win32" && !(process.env.TERM || "").toLowerCase().startsWith("xterm");
39214
- var levelMapping = ["ansi", "ansi", "ansi256", "ansi16m"];
39214
+ var levelMapping2 = ["ansi", "ansi", "ansi256", "ansi16m"];
39215
39215
  var skipModels = /* @__PURE__ */ new Set(["gray"]);
39216
- var styles = /* @__PURE__ */ Object.create(null);
39217
- function applyOptions(obj, options) {
39216
+ var styles3 = /* @__PURE__ */ Object.create(null);
39217
+ function applyOptions2(obj, options) {
39218
39218
  options = options || {};
39219
- const scLevel = stdoutColor ? stdoutColor.level : 0;
39219
+ const scLevel = stdoutColor2 ? stdoutColor2.level : 0;
39220
39220
  obj.level = options.level === void 0 ? scLevel : options.level;
39221
39221
  obj.enabled = "enabled" in options ? options.enabled : obj.level > 0;
39222
39222
  }
39223
39223
  function Chalk(options) {
39224
39224
  if (!this || !(this instanceof Chalk) || this.template) {
39225
- const chalk = {};
39226
- applyOptions(chalk, options);
39227
- chalk.template = function() {
39225
+ const chalk2 = {};
39226
+ applyOptions2(chalk2, options);
39227
+ chalk2.template = function() {
39228
39228
  const args = [].slice.call(arguments);
39229
- return chalkTag.apply(null, [chalk.template].concat(args));
39229
+ return chalkTag.apply(null, [chalk2.template].concat(args));
39230
39230
  };
39231
- Object.setPrototypeOf(chalk, Chalk.prototype);
39232
- Object.setPrototypeOf(chalk.template, chalk);
39233
- chalk.template.constructor = Chalk;
39234
- return chalk.template;
39231
+ Object.setPrototypeOf(chalk2, Chalk.prototype);
39232
+ Object.setPrototypeOf(chalk2.template, chalk2);
39233
+ chalk2.template.constructor = Chalk;
39234
+ return chalk2.template;
39235
39235
  }
39236
- applyOptions(this, options);
39236
+ applyOptions2(this, options);
39237
39237
  }
39238
39238
  if (isSimpleWindowsTerm) {
39239
- ansiStyles.blue.open = "\x1B[94m";
39239
+ ansiStyles2.blue.open = "\x1B[94m";
39240
39240
  }
39241
- for (const key of Object.keys(ansiStyles)) {
39242
- ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), "g");
39243
- styles[key] = {
39241
+ for (const key of Object.keys(ansiStyles2)) {
39242
+ ansiStyles2[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles2[key].close), "g");
39243
+ styles3[key] = {
39244
39244
  get() {
39245
- const codes = ansiStyles[key];
39245
+ const codes = ansiStyles2[key];
39246
39246
  return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, key);
39247
39247
  }
39248
39248
  };
39249
39249
  }
39250
- styles.visible = {
39250
+ styles3.visible = {
39251
39251
  get() {
39252
39252
  return build.call(this, this._styles || [], true, "visible");
39253
39253
  }
39254
39254
  };
39255
- ansiStyles.color.closeRe = new RegExp(escapeStringRegexp(ansiStyles.color.close), "g");
39256
- for (const model of Object.keys(ansiStyles.color.ansi)) {
39255
+ ansiStyles2.color.closeRe = new RegExp(escapeStringRegexp(ansiStyles2.color.close), "g");
39256
+ for (const model of Object.keys(ansiStyles2.color.ansi)) {
39257
39257
  if (skipModels.has(model)) {
39258
39258
  continue;
39259
39259
  }
39260
- styles[model] = {
39260
+ styles3[model] = {
39261
39261
  get() {
39262
39262
  const level = this.level;
39263
39263
  return function() {
39264
- const open = ansiStyles.color[levelMapping[level]][model].apply(null, arguments);
39264
+ const open = ansiStyles2.color[levelMapping2[level]][model].apply(null, arguments);
39265
39265
  const codes = {
39266
39266
  open,
39267
- close: ansiStyles.color.close,
39268
- closeRe: ansiStyles.color.closeRe
39267
+ close: ansiStyles2.color.close,
39268
+ closeRe: ansiStyles2.color.closeRe
39269
39269
  };
39270
39270
  return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model);
39271
39271
  };
39272
39272
  }
39273
39273
  };
39274
39274
  }
39275
- ansiStyles.bgColor.closeRe = new RegExp(escapeStringRegexp(ansiStyles.bgColor.close), "g");
39276
- for (const model of Object.keys(ansiStyles.bgColor.ansi)) {
39275
+ ansiStyles2.bgColor.closeRe = new RegExp(escapeStringRegexp(ansiStyles2.bgColor.close), "g");
39276
+ for (const model of Object.keys(ansiStyles2.bgColor.ansi)) {
39277
39277
  if (skipModels.has(model)) {
39278
39278
  continue;
39279
39279
  }
39280
39280
  const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
39281
- styles[bgModel] = {
39281
+ styles3[bgModel] = {
39282
39282
  get() {
39283
39283
  const level = this.level;
39284
39284
  return function() {
39285
- const open = ansiStyles.bgColor[levelMapping[level]][model].apply(null, arguments);
39285
+ const open = ansiStyles2.bgColor[levelMapping2[level]][model].apply(null, arguments);
39286
39286
  const codes = {
39287
39287
  open,
39288
- close: ansiStyles.bgColor.close,
39289
- closeRe: ansiStyles.bgColor.closeRe
39288
+ close: ansiStyles2.bgColor.close,
39289
+ closeRe: ansiStyles2.bgColor.closeRe
39290
39290
  };
39291
39291
  return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model);
39292
39292
  };
39293
39293
  }
39294
39294
  };
39295
39295
  }
39296
- var proto = Object.defineProperties(() => {
39297
- }, styles);
39296
+ var proto2 = Object.defineProperties(() => {
39297
+ }, styles3);
39298
39298
  function build(_styles, _empty, key) {
39299
39299
  const builder = function() {
39300
- return applyStyle.apply(builder, arguments);
39300
+ return applyStyle2.apply(builder, arguments);
39301
39301
  };
39302
39302
  builder._styles = _styles;
39303
39303
  builder._empty = _empty;
@@ -39321,10 +39321,10 @@ var require_chalk = __commonJS({
39321
39321
  }
39322
39322
  });
39323
39323
  builder.hasGrey = this.hasGrey || key === "gray" || key === "grey";
39324
- builder.__proto__ = proto;
39324
+ builder.__proto__ = proto2;
39325
39325
  return builder;
39326
39326
  }
39327
- function applyStyle() {
39327
+ function applyStyle2() {
39328
39328
  const args = arguments;
39329
39329
  const argsLen = args.length;
39330
39330
  let str = String(arguments[0]);
@@ -39339,18 +39339,18 @@ var require_chalk = __commonJS({
39339
39339
  if (!this.enabled || this.level <= 0 || !str) {
39340
39340
  return this._empty ? "" : str;
39341
39341
  }
39342
- const originalDim = ansiStyles.dim.open;
39342
+ const originalDim = ansiStyles2.dim.open;
39343
39343
  if (isSimpleWindowsTerm && this.hasGrey) {
39344
- ansiStyles.dim.open = "";
39344
+ ansiStyles2.dim.open = "";
39345
39345
  }
39346
39346
  for (const code of this._styles.slice().reverse()) {
39347
39347
  str = code.open + str.replace(code.closeRe, code.open) + code.close;
39348
39348
  str = str.replace(/\r?\n/g, `${code.close}$&${code.open}`);
39349
39349
  }
39350
- ansiStyles.dim.open = originalDim;
39350
+ ansiStyles2.dim.open = originalDim;
39351
39351
  return str;
39352
39352
  }
39353
- function chalkTag(chalk, strings) {
39353
+ function chalkTag(chalk2, strings) {
39354
39354
  if (!Array.isArray(strings)) {
39355
39355
  return [].slice.call(arguments, 1).join(" ");
39356
39356
  }
@@ -39360,11 +39360,11 @@ var require_chalk = __commonJS({
39360
39360
  parts.push(String(args[i - 1]).replace(/[{}\\]/g, "\\$&"));
39361
39361
  parts.push(String(strings.raw[i]));
39362
39362
  }
39363
- return template(chalk, parts.join(""));
39363
+ return template(chalk2, parts.join(""));
39364
39364
  }
39365
- Object.defineProperties(Chalk.prototype, styles);
39365
+ Object.defineProperties(Chalk.prototype, styles3);
39366
39366
  module2.exports = Chalk();
39367
- module2.exports.supportsColor = stdoutColor;
39367
+ module2.exports.supportsColor = stdoutColor2;
39368
39368
  module2.exports.default = module2.exports;
39369
39369
  }
39370
39370
  });
@@ -39420,17 +39420,17 @@ var require_lib3 = __commonJS({
39420
39420
  return newObj;
39421
39421
  }
39422
39422
  var sometimesKeywords = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]);
39423
- function getDefs(chalk) {
39423
+ function getDefs(chalk2) {
39424
39424
  return {
39425
- keyword: chalk.cyan,
39426
- capitalized: chalk.yellow,
39427
- jsxIdentifier: chalk.yellow,
39428
- punctuator: chalk.yellow,
39429
- number: chalk.magenta,
39430
- string: chalk.green,
39431
- regex: chalk.magenta,
39432
- comment: chalk.grey,
39433
- invalid: chalk.white.bgRed.bold
39425
+ keyword: chalk2.cyan,
39426
+ capitalized: chalk2.yellow,
39427
+ jsxIdentifier: chalk2.yellow,
39428
+ punctuator: chalk2.yellow,
39429
+ number: chalk2.magenta,
39430
+ string: chalk2.green,
39431
+ regex: chalk2.magenta,
39432
+ comment: chalk2.grey,
39433
+ invalid: chalk2.white.bgRed.bold
39434
39434
  };
39435
39435
  }
39436
39436
  var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
@@ -39575,11 +39575,11 @@ var require_lib4 = __commonJS({
39575
39575
  return _chalk.default;
39576
39576
  }
39577
39577
  var deprecationWarningShown = false;
39578
- function getDefs(chalk) {
39578
+ function getDefs(chalk2) {
39579
39579
  return {
39580
- gutter: chalk.grey,
39581
- marker: chalk.red.bold,
39582
- message: chalk.red.bold
39580
+ gutter: chalk2.grey,
39581
+ marker: chalk2.red.bold,
39582
+ message: chalk2.red.bold
39583
39583
  };
39584
39584
  }
39585
39585
  var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
@@ -39641,8 +39641,8 @@ var require_lib4 = __commonJS({
39641
39641
  }
39642
39642
  function codeFrameColumns(rawLines, loc, opts = {}) {
39643
39643
  const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
39644
- const chalk = getChalk(opts.forceColor);
39645
- const defs = getDefs(chalk);
39644
+ const chalk2 = getChalk(opts.forceColor);
39645
+ const defs = getDefs(chalk2);
39646
39646
  const maybeHighlight = (chalkFn, string) => {
39647
39647
  return highlighted ? chalkFn(string) : string;
39648
39648
  };
@@ -39681,7 +39681,7 @@ var require_lib4 = __commonJS({
39681
39681
  ${frame}`;
39682
39682
  }
39683
39683
  if (highlighted) {
39684
- return chalk.reset(frame);
39684
+ return chalk2.reset(frame);
39685
39685
  } else {
39686
39686
  return frame;
39687
39687
  }
@@ -42880,10 +42880,10 @@ var require_env_paths = __commonJS({
42880
42880
  "node_modules/.pnpm/env-paths@2.2.1/node_modules/env-paths/index.js"(exports, module2) {
42881
42881
  "use strict";
42882
42882
  var path = require("path");
42883
- var os = require("os");
42884
- var homedir = os.homedir();
42885
- var tmpdir = os.tmpdir();
42886
- var { env } = process;
42883
+ var os2 = require("os");
42884
+ var homedir = os2.homedir();
42885
+ var tmpdir = os2.tmpdir();
42886
+ var { env: env2 } = process;
42887
42887
  var macos = (name) => {
42888
42888
  const library = path.join(homedir, "Library");
42889
42889
  return {
@@ -42895,8 +42895,8 @@ var require_env_paths = __commonJS({
42895
42895
  };
42896
42896
  };
42897
42897
  var windows = (name) => {
42898
- const appData = env.APPDATA || path.join(homedir, "AppData", "Roaming");
42899
- const localAppData = env.LOCALAPPDATA || path.join(homedir, "AppData", "Local");
42898
+ const appData = env2.APPDATA || path.join(homedir, "AppData", "Roaming");
42899
+ const localAppData = env2.LOCALAPPDATA || path.join(homedir, "AppData", "Local");
42900
42900
  return {
42901
42901
  // Data/config/cache/log are invented by me as Windows isn't opinionated about this
42902
42902
  data: path.join(localAppData, name, "Data"),
@@ -42909,11 +42909,11 @@ var require_env_paths = __commonJS({
42909
42909
  var linux = (name) => {
42910
42910
  const username = path.basename(homedir);
42911
42911
  return {
42912
- data: path.join(env.XDG_DATA_HOME || path.join(homedir, ".local", "share"), name),
42913
- config: path.join(env.XDG_CONFIG_HOME || path.join(homedir, ".config"), name),
42914
- cache: path.join(env.XDG_CACHE_HOME || path.join(homedir, ".cache"), name),
42912
+ data: path.join(env2.XDG_DATA_HOME || path.join(homedir, ".local", "share"), name),
42913
+ config: path.join(env2.XDG_CONFIG_HOME || path.join(homedir, ".config"), name),
42914
+ cache: path.join(env2.XDG_CACHE_HOME || path.join(homedir, ".cache"), name),
42915
42915
  // https://wiki.debian.org/XDGBaseDirectorySpecification#state
42916
- log: path.join(env.XDG_STATE_HOME || path.join(homedir, ".local", "state"), name),
42916
+ log: path.join(env2.XDG_STATE_HOME || path.join(homedir, ".local", "state"), name),
42917
42917
  temp: path.join(tmpdir, username, name)
42918
42918
  };
42919
42919
  };
@@ -47631,6 +47631,495 @@ var setConfigEnv = (config) => {
47631
47631
  });
47632
47632
  };
47633
47633
 
47634
+ // node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/vendor/ansi-styles/index.js
47635
+ var ANSI_BACKGROUND_OFFSET = 10;
47636
+ var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
47637
+ var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
47638
+ var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
47639
+ var styles = {
47640
+ modifier: {
47641
+ reset: [0, 0],
47642
+ // 21 isn't widely supported and 22 does the same thing
47643
+ bold: [1, 22],
47644
+ dim: [2, 22],
47645
+ italic: [3, 23],
47646
+ underline: [4, 24],
47647
+ overline: [53, 55],
47648
+ inverse: [7, 27],
47649
+ hidden: [8, 28],
47650
+ strikethrough: [9, 29]
47651
+ },
47652
+ color: {
47653
+ black: [30, 39],
47654
+ red: [31, 39],
47655
+ green: [32, 39],
47656
+ yellow: [33, 39],
47657
+ blue: [34, 39],
47658
+ magenta: [35, 39],
47659
+ cyan: [36, 39],
47660
+ white: [37, 39],
47661
+ // Bright color
47662
+ blackBright: [90, 39],
47663
+ gray: [90, 39],
47664
+ // Alias of `blackBright`
47665
+ grey: [90, 39],
47666
+ // Alias of `blackBright`
47667
+ redBright: [91, 39],
47668
+ greenBright: [92, 39],
47669
+ yellowBright: [93, 39],
47670
+ blueBright: [94, 39],
47671
+ magentaBright: [95, 39],
47672
+ cyanBright: [96, 39],
47673
+ whiteBright: [97, 39]
47674
+ },
47675
+ bgColor: {
47676
+ bgBlack: [40, 49],
47677
+ bgRed: [41, 49],
47678
+ bgGreen: [42, 49],
47679
+ bgYellow: [43, 49],
47680
+ bgBlue: [44, 49],
47681
+ bgMagenta: [45, 49],
47682
+ bgCyan: [46, 49],
47683
+ bgWhite: [47, 49],
47684
+ // Bright color
47685
+ bgBlackBright: [100, 49],
47686
+ bgGray: [100, 49],
47687
+ // Alias of `bgBlackBright`
47688
+ bgGrey: [100, 49],
47689
+ // Alias of `bgBlackBright`
47690
+ bgRedBright: [101, 49],
47691
+ bgGreenBright: [102, 49],
47692
+ bgYellowBright: [103, 49],
47693
+ bgBlueBright: [104, 49],
47694
+ bgMagentaBright: [105, 49],
47695
+ bgCyanBright: [106, 49],
47696
+ bgWhiteBright: [107, 49]
47697
+ }
47698
+ };
47699
+ var modifierNames = Object.keys(styles.modifier);
47700
+ var foregroundColorNames = Object.keys(styles.color);
47701
+ var backgroundColorNames = Object.keys(styles.bgColor);
47702
+ var colorNames = [...foregroundColorNames, ...backgroundColorNames];
47703
+ function assembleStyles() {
47704
+ const codes = /* @__PURE__ */ new Map();
47705
+ for (const [groupName, group] of Object.entries(styles)) {
47706
+ for (const [styleName, style] of Object.entries(group)) {
47707
+ styles[styleName] = {
47708
+ open: `\x1B[${style[0]}m`,
47709
+ close: `\x1B[${style[1]}m`
47710
+ };
47711
+ group[styleName] = styles[styleName];
47712
+ codes.set(style[0], style[1]);
47713
+ }
47714
+ Object.defineProperty(styles, groupName, {
47715
+ value: group,
47716
+ enumerable: false
47717
+ });
47718
+ }
47719
+ Object.defineProperty(styles, "codes", {
47720
+ value: codes,
47721
+ enumerable: false
47722
+ });
47723
+ styles.color.close = "\x1B[39m";
47724
+ styles.bgColor.close = "\x1B[49m";
47725
+ styles.color.ansi = wrapAnsi16();
47726
+ styles.color.ansi256 = wrapAnsi256();
47727
+ styles.color.ansi16m = wrapAnsi16m();
47728
+ styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
47729
+ styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
47730
+ styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
47731
+ Object.defineProperties(styles, {
47732
+ rgbToAnsi256: {
47733
+ value(red, green, blue) {
47734
+ if (red === green && green === blue) {
47735
+ if (red < 8) {
47736
+ return 16;
47737
+ }
47738
+ if (red > 248) {
47739
+ return 231;
47740
+ }
47741
+ return Math.round((red - 8) / 247 * 24) + 232;
47742
+ }
47743
+ return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
47744
+ },
47745
+ enumerable: false
47746
+ },
47747
+ hexToRgb: {
47748
+ value(hex) {
47749
+ const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
47750
+ if (!matches) {
47751
+ return [0, 0, 0];
47752
+ }
47753
+ let [colorString] = matches;
47754
+ if (colorString.length === 3) {
47755
+ colorString = [...colorString].map((character) => character + character).join("");
47756
+ }
47757
+ const integer = Number.parseInt(colorString, 16);
47758
+ return [
47759
+ /* eslint-disable no-bitwise */
47760
+ integer >> 16 & 255,
47761
+ integer >> 8 & 255,
47762
+ integer & 255
47763
+ /* eslint-enable no-bitwise */
47764
+ ];
47765
+ },
47766
+ enumerable: false
47767
+ },
47768
+ hexToAnsi256: {
47769
+ value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
47770
+ enumerable: false
47771
+ },
47772
+ ansi256ToAnsi: {
47773
+ value(code) {
47774
+ if (code < 8) {
47775
+ return 30 + code;
47776
+ }
47777
+ if (code < 16) {
47778
+ return 90 + (code - 8);
47779
+ }
47780
+ let red;
47781
+ let green;
47782
+ let blue;
47783
+ if (code >= 232) {
47784
+ red = ((code - 232) * 10 + 8) / 255;
47785
+ green = red;
47786
+ blue = red;
47787
+ } else {
47788
+ code -= 16;
47789
+ const remainder = code % 36;
47790
+ red = Math.floor(code / 36) / 5;
47791
+ green = Math.floor(remainder / 6) / 5;
47792
+ blue = remainder % 6 / 5;
47793
+ }
47794
+ const value = Math.max(red, green, blue) * 2;
47795
+ if (value === 0) {
47796
+ return 30;
47797
+ }
47798
+ let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
47799
+ if (value === 2) {
47800
+ result += 60;
47801
+ }
47802
+ return result;
47803
+ },
47804
+ enumerable: false
47805
+ },
47806
+ rgbToAnsi: {
47807
+ value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
47808
+ enumerable: false
47809
+ },
47810
+ hexToAnsi: {
47811
+ value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
47812
+ enumerable: false
47813
+ }
47814
+ });
47815
+ return styles;
47816
+ }
47817
+ var ansiStyles = assembleStyles();
47818
+ var ansi_styles_default = ansiStyles;
47819
+
47820
+ // node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/vendor/supports-color/index.js
47821
+ var import_node_process = __toESM(require("node:process"), 1);
47822
+ var import_node_os = __toESM(require("node:os"), 1);
47823
+ var import_node_tty = __toESM(require("node:tty"), 1);
47824
+ function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
47825
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
47826
+ const position = argv.indexOf(prefix + flag);
47827
+ const terminatorPosition = argv.indexOf("--");
47828
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
47829
+ }
47830
+ var { env } = import_node_process.default;
47831
+ var flagForceColor;
47832
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
47833
+ flagForceColor = 0;
47834
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
47835
+ flagForceColor = 1;
47836
+ }
47837
+ function envForceColor() {
47838
+ if ("FORCE_COLOR" in env) {
47839
+ if (env.FORCE_COLOR === "true") {
47840
+ return 1;
47841
+ }
47842
+ if (env.FORCE_COLOR === "false") {
47843
+ return 0;
47844
+ }
47845
+ return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
47846
+ }
47847
+ }
47848
+ function translateLevel(level) {
47849
+ if (level === 0) {
47850
+ return false;
47851
+ }
47852
+ return {
47853
+ level,
47854
+ hasBasic: true,
47855
+ has256: level >= 2,
47856
+ has16m: level >= 3
47857
+ };
47858
+ }
47859
+ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
47860
+ const noFlagForceColor = envForceColor();
47861
+ if (noFlagForceColor !== void 0) {
47862
+ flagForceColor = noFlagForceColor;
47863
+ }
47864
+ const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
47865
+ if (forceColor === 0) {
47866
+ return 0;
47867
+ }
47868
+ if (sniffFlags) {
47869
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
47870
+ return 3;
47871
+ }
47872
+ if (hasFlag("color=256")) {
47873
+ return 2;
47874
+ }
47875
+ }
47876
+ if ("TF_BUILD" in env && "AGENT_NAME" in env) {
47877
+ return 1;
47878
+ }
47879
+ if (haveStream && !streamIsTTY && forceColor === void 0) {
47880
+ return 0;
47881
+ }
47882
+ const min = forceColor || 0;
47883
+ if (env.TERM === "dumb") {
47884
+ return min;
47885
+ }
47886
+ if (import_node_process.default.platform === "win32") {
47887
+ const osRelease = import_node_os.default.release().split(".");
47888
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
47889
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
47890
+ }
47891
+ return 1;
47892
+ }
47893
+ if ("CI" in env) {
47894
+ if ("GITHUB_ACTIONS" in env || "GITEA_ACTIONS" in env) {
47895
+ return 3;
47896
+ }
47897
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
47898
+ return 1;
47899
+ }
47900
+ return min;
47901
+ }
47902
+ if ("TEAMCITY_VERSION" in env) {
47903
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
47904
+ }
47905
+ if (env.COLORTERM === "truecolor") {
47906
+ return 3;
47907
+ }
47908
+ if (env.TERM === "xterm-kitty") {
47909
+ return 3;
47910
+ }
47911
+ if ("TERM_PROGRAM" in env) {
47912
+ const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
47913
+ switch (env.TERM_PROGRAM) {
47914
+ case "iTerm.app": {
47915
+ return version >= 3 ? 3 : 2;
47916
+ }
47917
+ case "Apple_Terminal": {
47918
+ return 2;
47919
+ }
47920
+ }
47921
+ }
47922
+ if (/-256(color)?$/i.test(env.TERM)) {
47923
+ return 2;
47924
+ }
47925
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
47926
+ return 1;
47927
+ }
47928
+ if ("COLORTERM" in env) {
47929
+ return 1;
47930
+ }
47931
+ return min;
47932
+ }
47933
+ function createSupportsColor(stream, options = {}) {
47934
+ const level = _supportsColor(stream, {
47935
+ streamIsTTY: stream && stream.isTTY,
47936
+ ...options
47937
+ });
47938
+ return translateLevel(level);
47939
+ }
47940
+ var supportsColor = {
47941
+ stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
47942
+ stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
47943
+ };
47944
+ var supports_color_default = supportsColor;
47945
+
47946
+ // node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/utilities.js
47947
+ function stringReplaceAll(string, substring, replacer) {
47948
+ let index = string.indexOf(substring);
47949
+ if (index === -1) {
47950
+ return string;
47951
+ }
47952
+ const substringLength = substring.length;
47953
+ let endIndex = 0;
47954
+ let returnValue = "";
47955
+ do {
47956
+ returnValue += string.slice(endIndex, index) + substring + replacer;
47957
+ endIndex = index + substringLength;
47958
+ index = string.indexOf(substring, endIndex);
47959
+ } while (index !== -1);
47960
+ returnValue += string.slice(endIndex);
47961
+ return returnValue;
47962
+ }
47963
+ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
47964
+ let endIndex = 0;
47965
+ let returnValue = "";
47966
+ do {
47967
+ const gotCR = string[index - 1] === "\r";
47968
+ returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
47969
+ endIndex = index + 1;
47970
+ index = string.indexOf("\n", endIndex);
47971
+ } while (index !== -1);
47972
+ returnValue += string.slice(endIndex);
47973
+ return returnValue;
47974
+ }
47975
+
47976
+ // node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/index.js
47977
+ var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
47978
+ var GENERATOR = Symbol("GENERATOR");
47979
+ var STYLER = Symbol("STYLER");
47980
+ var IS_EMPTY = Symbol("IS_EMPTY");
47981
+ var levelMapping = [
47982
+ "ansi",
47983
+ "ansi",
47984
+ "ansi256",
47985
+ "ansi16m"
47986
+ ];
47987
+ var styles2 = /* @__PURE__ */ Object.create(null);
47988
+ var applyOptions = (object, options = {}) => {
47989
+ if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
47990
+ throw new Error("The `level` option should be an integer from 0 to 3");
47991
+ }
47992
+ const colorLevel = stdoutColor ? stdoutColor.level : 0;
47993
+ object.level = options.level === void 0 ? colorLevel : options.level;
47994
+ };
47995
+ var chalkFactory = (options) => {
47996
+ const chalk2 = (...strings) => strings.join(" ");
47997
+ applyOptions(chalk2, options);
47998
+ Object.setPrototypeOf(chalk2, createChalk.prototype);
47999
+ return chalk2;
48000
+ };
48001
+ function createChalk(options) {
48002
+ return chalkFactory(options);
48003
+ }
48004
+ Object.setPrototypeOf(createChalk.prototype, Function.prototype);
48005
+ for (const [styleName, style] of Object.entries(ansi_styles_default)) {
48006
+ styles2[styleName] = {
48007
+ get() {
48008
+ const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
48009
+ Object.defineProperty(this, styleName, { value: builder });
48010
+ return builder;
48011
+ }
48012
+ };
48013
+ }
48014
+ styles2.visible = {
48015
+ get() {
48016
+ const builder = createBuilder(this, this[STYLER], true);
48017
+ Object.defineProperty(this, "visible", { value: builder });
48018
+ return builder;
48019
+ }
48020
+ };
48021
+ var getModelAnsi = (model, level, type, ...arguments_) => {
48022
+ if (model === "rgb") {
48023
+ if (level === "ansi16m") {
48024
+ return ansi_styles_default[type].ansi16m(...arguments_);
48025
+ }
48026
+ if (level === "ansi256") {
48027
+ return ansi_styles_default[type].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_));
48028
+ }
48029
+ return ansi_styles_default[type].ansi(ansi_styles_default.rgbToAnsi(...arguments_));
48030
+ }
48031
+ if (model === "hex") {
48032
+ return getModelAnsi("rgb", level, type, ...ansi_styles_default.hexToRgb(...arguments_));
48033
+ }
48034
+ return ansi_styles_default[type][model](...arguments_);
48035
+ };
48036
+ var usedModels = ["rgb", "hex", "ansi256"];
48037
+ for (const model of usedModels) {
48038
+ styles2[model] = {
48039
+ get() {
48040
+ const { level } = this;
48041
+ return function(...arguments_) {
48042
+ const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]);
48043
+ return createBuilder(this, styler, this[IS_EMPTY]);
48044
+ };
48045
+ }
48046
+ };
48047
+ const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
48048
+ styles2[bgModel] = {
48049
+ get() {
48050
+ const { level } = this;
48051
+ return function(...arguments_) {
48052
+ const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]);
48053
+ return createBuilder(this, styler, this[IS_EMPTY]);
48054
+ };
48055
+ }
48056
+ };
48057
+ }
48058
+ var proto = Object.defineProperties(() => {
48059
+ }, {
48060
+ ...styles2,
48061
+ level: {
48062
+ enumerable: true,
48063
+ get() {
48064
+ return this[GENERATOR].level;
48065
+ },
48066
+ set(level) {
48067
+ this[GENERATOR].level = level;
48068
+ }
48069
+ }
48070
+ });
48071
+ var createStyler = (open, close, parent) => {
48072
+ let openAll;
48073
+ let closeAll;
48074
+ if (parent === void 0) {
48075
+ openAll = open;
48076
+ closeAll = close;
48077
+ } else {
48078
+ openAll = parent.openAll + open;
48079
+ closeAll = close + parent.closeAll;
48080
+ }
48081
+ return {
48082
+ open,
48083
+ close,
48084
+ openAll,
48085
+ closeAll,
48086
+ parent
48087
+ };
48088
+ };
48089
+ var createBuilder = (self, _styler, _isEmpty) => {
48090
+ const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
48091
+ Object.setPrototypeOf(builder, proto);
48092
+ builder[GENERATOR] = self;
48093
+ builder[STYLER] = _styler;
48094
+ builder[IS_EMPTY] = _isEmpty;
48095
+ return builder;
48096
+ };
48097
+ var applyStyle = (self, string) => {
48098
+ if (self.level <= 0 || !string) {
48099
+ return self[IS_EMPTY] ? "" : string;
48100
+ }
48101
+ let styler = self[STYLER];
48102
+ if (styler === void 0) {
48103
+ return string;
48104
+ }
48105
+ const { openAll, closeAll } = styler;
48106
+ if (string.includes("\x1B")) {
48107
+ while (styler !== void 0) {
48108
+ string = stringReplaceAll(string, styler.close, styler.open);
48109
+ styler = styler.parent;
48110
+ }
48111
+ }
48112
+ const lfIndex = string.indexOf("\n");
48113
+ if (lfIndex !== -1) {
48114
+ string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
48115
+ }
48116
+ return openAll + string + closeAll;
48117
+ };
48118
+ Object.defineProperties(createChalk.prototype, styles2);
48119
+ var chalk = createChalk();
48120
+ var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
48121
+ var source_default = chalk;
48122
+
47634
48123
  // packages/workspace-tools/src/utils/get-workspace-root.ts
47635
48124
  var import_find_workspace_root2 = require("nx/src/utils/find-workspace-root.js");
47636
48125
  var getWorkspaceRoot2 = () => {
@@ -47682,7 +48171,9 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
47682
48171
  }) => async (tree, options) => {
47683
48172
  const startTime = Date.now();
47684
48173
  try {
47685
- console.info(`\u26A1 Running the ${name} generator...`);
48174
+ console.info(
48175
+ source_default.bold.hex("#1fb2a6")(`\u26A1 Running the ${name} generator...`)
48176
+ );
47686
48177
  let config;
47687
48178
  if (!generatorOptions.skipReadingConfig) {
47688
48179
  config = getDefaultConfig({
@@ -47691,29 +48182,31 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
47691
48182
  });
47692
48183
  setConfigEnv(config);
47693
48184
  getLogLevel(config.logLevel) >= LogLevel.DEBUG && console.debug(
47694
- `Loaded Storm config into env:
48185
+ source_default.dim(
48186
+ `Loaded Storm config into env:
47695
48187
  ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\n")}`
48188
+ )
47696
48189
  );
47697
48190
  }
47698
48191
  if (generatorOptions?.hooks?.applyDefaultOptions) {
47699
- getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Running the applyDefaultOptions hook...`);
48192
+ getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Running the applyDefaultOptions hook...`));
47700
48193
  options = await Promise.resolve(
47701
48194
  generatorOptions.hooks.applyDefaultOptions(options, config)
47702
48195
  );
47703
- getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Completed the applyDefaultOptions hook...`);
48196
+ getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Completed the applyDefaultOptions hook...`));
47704
48197
  }
47705
- getLogLevel(config.logLevel) >= LogLevel.DEBUG && console.debug("\u2699\uFE0F Generator schema options: \n", options);
48198
+ getLogLevel(config.logLevel) >= LogLevel.DEBUG && console.debug(source_default.dim("\u2699\uFE0F Generator schema options: \n"), options);
47706
48199
  const tokenized = applyWorkspaceTokens(
47707
48200
  options,
47708
48201
  { workspaceRoot: tree.root, config },
47709
48202
  applyWorkspaceGeneratorTokens
47710
48203
  );
47711
48204
  if (generatorOptions?.hooks?.preProcess) {
47712
- getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Running the preProcess hook...`);
48205
+ getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Running the preProcess hook...`));
47713
48206
  await Promise.resolve(
47714
48207
  generatorOptions.hooks.preProcess(options, config)
47715
48208
  );
47716
- getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Completed the preProcess hook...`);
48209
+ getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Completed the preProcess hook...`));
47717
48210
  }
47718
48211
  const result = await Promise.resolve(
47719
48212
  generatorFn(tree, tokenized, config)
@@ -47724,23 +48217,33 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
47724
48217
  });
47725
48218
  }
47726
48219
  if (generatorOptions?.hooks?.postProcess) {
47727
- getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Running the postProcess hook...`);
48220
+ getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Running the postProcess hook...`));
47728
48221
  await Promise.resolve(generatorOptions.hooks.postProcess(config));
47729
- getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(`Completed the postProcess hook...`);
48222
+ getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(source_default.dim(`Completed the postProcess hook...`));
47730
48223
  }
47731
- console.info(`\u{1F389} Successfully completed running the ${name} generator!`);
48224
+ console.info(
48225
+ source_default.bold.hex("#087f5b")(
48226
+ `\u{1F389} Successfully completed running the ${name} generator!`
48227
+ )
48228
+ );
47732
48229
  return {
47733
48230
  success: true
47734
48231
  };
47735
48232
  } catch (error) {
47736
- console.error(`\u274C An error occurred while running the generator`);
47737
- console.error(error);
48233
+ console.error(
48234
+ source_default.bold.hex("#7d1a1a")(
48235
+ `\u274C An error occurred while running the generator`
48236
+ )
48237
+ );
48238
+ console.error(source_default.bold.hex("#7d1a1a")(error));
47738
48239
  return {
47739
48240
  success: false
47740
48241
  };
47741
48242
  } finally {
47742
48243
  console.info(
47743
- `\u23F1\uFE0F The${name ? ` ${name}` : ""} generator took ${Date.now() - startTime}ms to complete`
48244
+ source_default.dim(
48245
+ `\u23F1\uFE0F The${name ? ` ${name}` : ""} generator took ${Date.now() - startTime}ms to complete`
48246
+ )
47744
48247
  );
47745
48248
  }
47746
48249
  };