@ariestools/toolchain 8.7.25 → 8.7.27

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.
Files changed (55) hide show
  1. package/dist/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts +10 -5
  2. package/dist/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts.map +1 -1
  3. package/dist/actions/deplint/engine.d.ts.map +1 -1
  4. package/dist/actions/deplint/findFiles.d.ts +25 -1
  5. package/dist/actions/deplint/findFiles.d.ts.map +1 -1
  6. package/dist/actions/deplint/getExternalImportsFromFiles.d.ts +8 -3
  7. package/dist/actions/deplint/getExternalImportsFromFiles.d.ts.map +1 -1
  8. package/dist/actions/deplint/isTerminalPackage.d.ts +72 -14
  9. package/dist/actions/deplint/isTerminalPackage.d.ts.map +1 -1
  10. package/dist/actions/deplint/rules.d.ts.map +1 -1
  11. package/dist/actions/deplint/snapshot.d.ts +9 -0
  12. package/dist/actions/deplint/snapshot.d.ts.map +1 -1
  13. package/dist/actions/deplint/types.d.ts +20 -2
  14. package/dist/actions/deplint/types.d.ts.map +1 -1
  15. package/dist/actions/package/compile/XyConfig.d.ts +23 -11
  16. package/dist/actions/package/compile/XyConfig.d.ts.map +1 -1
  17. package/dist/actions/skills/defaults.d.ts +18 -1
  18. package/dist/actions/skills/defaults.d.ts.map +1 -1
  19. package/dist/actions/skills/detectProfile.d.ts +8 -0
  20. package/dist/actions/skills/detectProfile.d.ts.map +1 -1
  21. package/dist/actions/skills/lint.d.ts.map +1 -1
  22. package/dist/actions/skills/skillRules.d.ts +12 -1
  23. package/dist/actions/skills/skillRules.d.ts.map +1 -1
  24. package/dist/bin/package/build.mjs +915 -2503
  25. package/dist/bin/package/build.mjs.map +1 -1
  26. package/dist/bin/package/clean.mjs +368 -2056
  27. package/dist/bin/package/clean.mjs.map +1 -1
  28. package/dist/bin/package/compile.mjs +717 -2401
  29. package/dist/bin/package/compile.mjs.map +1 -1
  30. package/dist/bin/package/copy-assets-cjs.mjs +159 -86
  31. package/dist/bin/package/copy-assets-cjs.mjs.map +1 -1
  32. package/dist/bin/package/copy-assets-esm.mjs +159 -86
  33. package/dist/bin/package/copy-assets-esm.mjs.map +1 -1
  34. package/dist/bin/package/fix.mjs +259 -148
  35. package/dist/bin/package/fix.mjs.map +1 -1
  36. package/dist/bin/package/lint-verbose.mjs +259 -148
  37. package/dist/bin/package/lint-verbose.mjs.map +1 -1
  38. package/dist/bin/package/lint.mjs +259 -148
  39. package/dist/bin/package/lint.mjs.map +1 -1
  40. package/dist/bin/package/publint.mjs +393 -2027
  41. package/dist/bin/package/publint.mjs.map +1 -1
  42. package/dist/bin/package/recompile.mjs +719 -2403
  43. package/dist/bin/package/recompile.mjs.map +1 -1
  44. package/dist/bin/package/relint.mjs +259 -148
  45. package/dist/bin/package/relint.mjs.map +1 -1
  46. package/dist/bin/package/sync-layout.mjs +232 -1961
  47. package/dist/bin/package/sync-layout.mjs.map +1 -1
  48. package/dist/bin/run-or-exec.mjs +157 -84
  49. package/dist/bin/run-or-exec.mjs.map +1 -1
  50. package/dist/bin/skills.mjs +4375 -670
  51. package/dist/bin/skills.mjs.map +1 -1
  52. package/dist/bin/xy.mjs +1205 -2347
  53. package/dist/bin/xy.mjs.map +1 -1
  54. package/dist/xy/common/skills/index.d.ts.map +1 -1
  55. package/package.json +4 -4
@@ -7,15 +7,15 @@ import * as xi from "node:fs";
7
7
  import fs, { existsSync, readFileSync } from "node:fs";
8
8
  import PATH, { posix, win32 } from "node:path";
9
9
  import { fileURLToPath } from "node:url";
10
- import $e, { lstatSync, readdir, readdirSync, readlinkSync, realpathSync } from "fs";
10
+ import Ie, { lstatSync, readdir, readdirSync, readlinkSync, realpathSync } from "fs";
11
11
  import { lstat, readdir as readdir$1, readlink, realpath } from "node:fs/promises";
12
12
  import { EventEmitter } from "node:events";
13
13
  import Pe from "node:stream";
14
14
  import { StringDecoder } from "node:string_decoder";
15
15
  import Re from "path";
16
- import ts, { formatDiagnosticsWithColorAndContext, sys } from "typescript";
17
16
  import Ue from "os";
18
17
  import { TypeScriptLoader } from "cosmiconfig-typescript-loader";
18
+ import ts, { formatDiagnosticsWithColorAndContext, sys } from "typescript";
19
19
  import { build } from "esbuild";
20
20
  //#region \0rolldown/runtime.js
21
21
  var __create = Object.create;
@@ -43,17 +43,47 @@ var __copyProps = (to, from, except, desc) => {
43
43
  }
44
44
  return to;
45
45
  };
46
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
46
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
47
47
  value: mod,
48
48
  enumerable: true
49
49
  }) : target, mod));
50
50
  var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
51
51
  //#endregion
52
- //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js
52
+ //#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/utilities.js
53
+ function stringReplaceAll(string, substring, postfix) {
54
+ let index = string.indexOf(substring);
55
+ if (index === -1) return string;
56
+ const substringLength = substring.length;
57
+ let endIndex = 0;
58
+ let returnValue = "";
59
+ do {
60
+ returnValue += string.slice(endIndex, index) + substring + postfix;
61
+ endIndex = index + substringLength;
62
+ index = string.indexOf(substring, endIndex);
63
+ } while (index !== -1);
64
+ returnValue += string.slice(endIndex);
65
+ return returnValue;
66
+ }
67
+ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
68
+ let endIndex = 0;
69
+ let returnValue = "";
70
+ do {
71
+ const isGotCR = string[index - 1] === "\r";
72
+ returnValue += string.slice(endIndex, isGotCR ? index - 1 : index) + prefix + (isGotCR ? "\r\n" : "\n") + postfix;
73
+ endIndex = index + 1;
74
+ index = string.indexOf("\n", endIndex);
75
+ } while (index !== -1);
76
+ returnValue += string.slice(endIndex);
77
+ return returnValue;
78
+ }
79
+ //#endregion
80
+ //#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/vendor/ansi-styles/index.js
53
81
  const ANSI_BACKGROUND_OFFSET = 10;
54
- const wrapAnsi16 = (offset = 0) => (code) => `\u001B[${code + offset}m`;
55
- const wrapAnsi256 = (offset = 0) => (code) => `\u001B[${38 + offset};5;${code}m`;
56
- const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u001B[${38 + offset};2;${red};${green};${blue}m`;
82
+ const ANSI_UNDERLINE_OFFSET = 20;
83
+ const wrapAnsi16 = (offset = 0) => (code) => `\u{1B}[${code + offset}m`;
84
+ const wrapAnsi256 = (offset = 0) => (code) => `\u{1B}[${38 + offset};5;${code}m`;
85
+ const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u{1B}[${38 + offset};2;${red};${green};${blue}m`;
86
+ const wrapUnderlineAnsi = (code) => `\u{1B}[58;5;${code < 90 ? code - 30 : code - 90 + 8}m`;
57
87
  const styles$1 = {
58
88
  modifier: {
59
89
  reset: [0, 0],
@@ -61,6 +91,10 @@ const styles$1 = {
61
91
  dim: [2, 22],
62
92
  italic: [3, 23],
63
93
  underline: [4, 24],
94
+ underlineDouble: ["4:2", 24],
95
+ underlineCurly: ["4:3", 24],
96
+ underlineDotted: ["4:4", 24],
97
+ underlineDashed: ["4:5", 24],
64
98
  overline: [53, 55],
65
99
  inverse: [7, 27],
66
100
  hidden: [8, 28],
@@ -105,22 +139,43 @@ const styles$1 = {
105
139
  bgMagentaBright: [105, 49],
106
140
  bgCyanBright: [106, 49],
107
141
  bgWhiteBright: [107, 49]
142
+ },
143
+ underlineColor: {
144
+ underlineBlack: ["58;5;0", 59],
145
+ underlineRed: ["58;5;1", 59],
146
+ underlineGreen: ["58;5;2", 59],
147
+ underlineYellow: ["58;5;3", 59],
148
+ underlineBlue: ["58;5;4", 59],
149
+ underlineMagenta: ["58;5;5", 59],
150
+ underlineCyan: ["58;5;6", 59],
151
+ underlineWhite: ["58;5;7", 59],
152
+ underlineBlackBright: ["58;5;8", 59],
153
+ underlineGray: ["58;5;8", 59],
154
+ underlineGrey: ["58;5;8", 59],
155
+ underlineRedBright: ["58;5;9", 59],
156
+ underlineGreenBright: ["58;5;10", 59],
157
+ underlineYellowBright: ["58;5;11", 59],
158
+ underlineBlueBright: ["58;5;12", 59],
159
+ underlineMagentaBright: ["58;5;13", 59],
160
+ underlineCyanBright: ["58;5;14", 59],
161
+ underlineWhiteBright: ["58;5;15", 59]
108
162
  }
109
163
  };
110
164
  Object.keys(styles$1.modifier);
111
165
  const foregroundColorNames = Object.keys(styles$1.color);
112
166
  const backgroundColorNames = Object.keys(styles$1.bgColor);
167
+ Object.keys(styles$1.underlineColor);
113
168
  [...foregroundColorNames, ...backgroundColorNames];
114
169
  function assembleStyles() {
115
170
  const codes = /* @__PURE__ */ new Map();
116
171
  for (const [groupName, group] of Object.entries(styles$1)) {
117
172
  for (const [styleName, style] of Object.entries(group)) {
118
173
  styles$1[styleName] = {
119
- open: `\u001B[${style[0]}m`,
120
- close: `\u001B[${style[1]}m`
174
+ open: `\u{1B}[${style[0]}m`,
175
+ close: `\u{1B}[${style[1]}m`
121
176
  };
122
177
  group[styleName] = styles$1[styleName];
123
- codes.set(style[0], style[1]);
178
+ codes.set(Number.parseInt(style[0], 10), style[1]);
124
179
  }
125
180
  Object.defineProperty(styles$1, groupName, {
126
181
  value: group,
@@ -133,12 +188,16 @@ function assembleStyles() {
133
188
  });
134
189
  styles$1.color.close = "\x1B[39m";
135
190
  styles$1.bgColor.close = "\x1B[49m";
191
+ styles$1.underlineColor.close = "\x1B[59m";
136
192
  styles$1.color.ansi = wrapAnsi16();
137
193
  styles$1.color.ansi256 = wrapAnsi256();
138
194
  styles$1.color.ansi16m = wrapAnsi16m();
139
195
  styles$1.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
140
196
  styles$1.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
141
197
  styles$1.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
198
+ styles$1.underlineColor.ansi = wrapUnderlineAnsi;
199
+ styles$1.underlineColor.ansi256 = wrapAnsi256(ANSI_UNDERLINE_OFFSET);
200
+ styles$1.underlineColor.ansi16m = wrapAnsi16m(ANSI_UNDERLINE_OFFSET);
142
201
  Object.defineProperties(styles$1, {
143
202
  rgbToAnsi256: {
144
203
  value(red, green, blue) {
@@ -153,7 +212,7 @@ function assembleStyles() {
153
212
  },
154
213
  hexToRgb: {
155
214
  value(hex) {
156
- const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
215
+ const matches = /[\da-f]{6}|[\da-f]{3}/i.exec(hex.toString(16));
157
216
  if (!matches) return [
158
217
  0,
159
218
  0,
@@ -213,7 +272,7 @@ function assembleStyles() {
213
272
  }
214
273
  const ansiStyles = assembleStyles();
215
274
  //#endregion
216
- //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.js
275
+ //#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/vendor/supports-color/index.js
217
276
  function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process$1.argv) {
218
277
  const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
219
278
  const position = argv.indexOf(prefix + flag);
@@ -224,12 +283,15 @@ const { env } = process$1;
224
283
  let flagForceColor;
225
284
  if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
226
285
  else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
286
+ function hasNumericForceColor() {
287
+ return /^\d+$/.test(env.FORCE_COLOR);
288
+ }
227
289
  function envForceColor() {
228
- if ("FORCE_COLOR" in env) {
229
- if (env.FORCE_COLOR === "true") return 1;
230
- if (env.FORCE_COLOR === "false") return 0;
231
- return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
232
- }
290
+ if (!("FORCE_COLOR" in env)) return;
291
+ if (env.FORCE_COLOR === "false") return 0;
292
+ if (env.FORCE_COLOR === "true" || env.FORCE_COLOR.length === 0) return 1;
293
+ if (!hasNumericForceColor()) return;
294
+ return Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
233
295
  }
234
296
  function translateLevel(level) {
235
297
  if (level === 0) return false;
@@ -249,6 +311,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
249
311
  if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
250
312
  if (hasFlag("color=256")) return 2;
251
313
  }
314
+ if (forceColor !== void 0 && hasNumericForceColor()) return forceColor;
252
315
  if ("TF_BUILD" in env && "AGENT_NAME" in env) return 1;
253
316
  if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
254
317
  const min = forceColor || 0;
@@ -273,19 +336,19 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
273
336
  ].some((sign) => sign in env) || env.CI_NAME === "codeship") return 1;
274
337
  return min;
275
338
  }
276
- if ("TEAMCITY_VERSION" in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
339
+ if ("TEAMCITY_VERSION" in env) return /^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
277
340
  if (env.COLORTERM === "truecolor") return 3;
278
341
  if (env.TERM === "xterm-kitty") return 3;
279
342
  if (env.TERM === "xterm-ghostty") return 3;
280
343
  if (env.TERM === "wezterm") return 3;
281
344
  if ("TERM_PROGRAM" in env) {
282
- const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
345
+ const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".", 1)[0], 10);
283
346
  switch (env.TERM_PROGRAM) {
284
347
  case "iTerm.app": return version >= 3 ? 3 : 2;
285
348
  case "Apple_Terminal": return 2;
286
349
  }
287
350
  }
288
- if (/-256(color)?$/i.test(env.TERM)) return 2;
351
+ if (/-256(?:color)?$/i.test(env.TERM)) return 2;
289
352
  if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
290
353
  if ("COLORTERM" in env) return 1;
291
354
  return min;
@@ -296,55 +359,34 @@ function createSupportsColor(stream, options = {}) {
296
359
  ...options
297
360
  }));
298
361
  }
299
- const supportsColor = {
362
+ //#endregion
363
+ //#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/index.js
364
+ const { stdout: stdoutColor, stderr: stderrColor } = {
300
365
  stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
301
366
  stderr: createSupportsColor({ isTTY: tty.isatty(2) })
302
367
  };
303
- //#endregion
304
- //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js
305
- function stringReplaceAll(string, substring, replacer) {
306
- let index = string.indexOf(substring);
307
- if (index === -1) return string;
308
- const substringLength = substring.length;
309
- let endIndex = 0;
310
- let returnValue = "";
311
- do {
312
- returnValue += string.slice(endIndex, index) + substring + replacer;
313
- endIndex = index + substringLength;
314
- index = string.indexOf(substring, endIndex);
315
- } while (index !== -1);
316
- returnValue += string.slice(endIndex);
317
- return returnValue;
318
- }
319
- function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
320
- let endIndex = 0;
321
- let returnValue = "";
322
- do {
323
- const gotCR = string[index - 1] === "\r";
324
- returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
325
- endIndex = index + 1;
326
- index = string.indexOf("\n", endIndex);
327
- } while (index !== -1);
328
- returnValue += string.slice(endIndex);
329
- return returnValue;
330
- }
331
- //#endregion
332
- //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js
333
- const { stdout: stdoutColor, stderr: stderrColor } = supportsColor;
334
368
  const GENERATOR = Symbol("GENERATOR");
335
369
  const STYLER = Symbol("STYLER");
336
370
  const IS_EMPTY = Symbol("IS_EMPTY");
337
- const levelMapping = [
338
- "ansi",
339
- "ansi",
340
- "ansi256",
341
- "ansi16m"
342
- ];
371
+ const LEVEL = Symbol("LEVEL");
343
372
  const styles = Object.create(null);
373
+ const assertValidLevel = (level) => {
374
+ if (!Number.isSafeInteger(level) || level < 0 || level > 3) throw new Error("The `level` should be an integer from 0 to 3");
375
+ };
376
+ const levelDescriptor = {
377
+ enumerable: true,
378
+ get() {
379
+ return this[LEVEL];
380
+ },
381
+ set(level) {
382
+ assertValidLevel(level);
383
+ this[LEVEL] = level;
384
+ }
385
+ };
344
386
  const applyOptions = (object, options = {}) => {
345
- if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) throw new Error("The `level` option should be an integer from 0 to 3");
387
+ if (options.level !== void 0) assertValidLevel(options.level);
346
388
  const colorLevel = stdoutColor ? stdoutColor.level : 0;
347
- object.level = options.level === void 0 ? colorLevel : options.level;
389
+ object[LEVEL] = options.level === void 0 ? colorLevel : options.level;
348
390
  };
349
391
  const chalkFactory = (options) => {
350
392
  const chalk = (...strings) => strings.join(" ");
@@ -366,35 +408,58 @@ styles.visible = { get() {
366
408
  Object.defineProperty(this, "visible", { value: builder });
367
409
  return builder;
368
410
  } };
369
- const getModelAnsi = (model, level, type, ...arguments_) => {
411
+ const createModelConverters = (model, type) => {
412
+ const style = ansiStyles[type];
370
413
  if (model === "rgb") {
371
- if (level === "ansi16m") return ansiStyles[type].ansi16m(...arguments_);
372
- if (level === "ansi256") return ansiStyles[type].ansi256(ansiStyles.rgbToAnsi256(...arguments_));
373
- return ansiStyles[type].ansi(ansiStyles.rgbToAnsi(...arguments_));
414
+ const ansi = (red, green, blue) => style.ansi(ansiStyles.rgbToAnsi(red, green, blue));
415
+ const ansi256 = (red, green, blue) => style.ansi256(ansiStyles.rgbToAnsi256(red, green, blue));
416
+ return [
417
+ ansi,
418
+ ansi,
419
+ ansi256,
420
+ style.ansi16m
421
+ ];
422
+ }
423
+ if (model === "hex") {
424
+ const ansi = (hex) => style.ansi(ansiStyles.hexToAnsi(hex));
425
+ const ansi256 = (hex) => style.ansi256(ansiStyles.hexToAnsi256(hex));
426
+ return [
427
+ ansi,
428
+ ansi,
429
+ ansi256,
430
+ (hex) => style.ansi16m(...ansiStyles.hexToRgb(hex))
431
+ ];
374
432
  }
375
- if (model === "hex") return getModelAnsi("rgb", level, type, ...ansiStyles.hexToRgb(...arguments_));
376
- return ansiStyles[type][model](...arguments_);
433
+ const ansi = (code) => style.ansi(ansiStyles.ansi256ToAnsi(code));
434
+ return [
435
+ ansi,
436
+ ansi,
437
+ style.ansi256,
438
+ style.ansi256
439
+ ];
377
440
  };
378
441
  for (const model of [
379
442
  "rgb",
380
443
  "hex",
381
444
  "ansi256"
382
445
  ]) {
383
- styles[model] = { get() {
384
- const { level } = this;
385
- return function(...arguments_) {
386
- const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansiStyles.color.close, this[STYLER]);
387
- return createBuilder(this, styler, this[IS_EMPTY]);
388
- };
389
- } };
390
- const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
391
- styles[bgModel] = { get() {
392
- const { level } = this;
393
- return function(...arguments_) {
394
- const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansiStyles.bgColor.close, this[STYLER]);
395
- return createBuilder(this, styler, this[IS_EMPTY]);
396
- };
397
- } };
446
+ const capitalizedModel = model[0].toUpperCase() + model.slice(1);
447
+ for (const [styleName, type] of [
448
+ [model, "color"],
449
+ ["bg" + capitalizedModel, "bgColor"],
450
+ ["underline" + capitalizedModel, "underlineColor"]
451
+ ]) {
452
+ const { close } = ansiStyles[type];
453
+ const converters = createModelConverters(model, type);
454
+ styles[styleName] = { get() {
455
+ const styleFunction = function(first, second, third) {
456
+ const open = converters[this.level](first, second, third);
457
+ return createBuilder(this, createStyler(open, close, this[STYLER]), this[IS_EMPTY]);
458
+ };
459
+ Object.defineProperty(this, styleName, { value: styleFunction });
460
+ return styleFunction;
461
+ } };
462
+ }
398
463
  }
399
464
  const proto = Object.defineProperties(() => {}, {
400
465
  ...styles,
@@ -427,15 +492,19 @@ const createStyler = (open, close, parent) => {
427
492
  };
428
493
  };
429
494
  const createBuilder = (self, _styler, _isEmpty) => {
430
- const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
495
+ const builder = (...arguments_) => {
496
+ if (arguments_.length === 1) return applyStyle(builder, "" + arguments_[0]);
497
+ if (arguments_.length === 2) return applyStyle(builder, arguments_[0] + " " + arguments_[1]);
498
+ return applyStyle(builder, arguments_.join(" "));
499
+ };
431
500
  Object.setPrototypeOf(builder, proto);
432
- builder[GENERATOR] = self;
501
+ builder[GENERATOR] = self[GENERATOR] ?? self;
433
502
  builder[STYLER] = _styler;
434
503
  builder[IS_EMPTY] = _isEmpty;
435
504
  return builder;
436
505
  };
437
506
  const applyStyle = (self, string) => {
438
- if (self.level <= 0 || !string) return self[IS_EMPTY] ? "" : string;
507
+ if (self[GENERATOR][LEVEL] <= 0 || !string) return self[IS_EMPTY] ? "" : string;
439
508
  let styler = self[STYLER];
440
509
  if (styler === void 0) return string;
441
510
  const { openAll, closeAll } = styler;
@@ -447,7 +516,10 @@ const applyStyle = (self, string) => {
447
516
  if (lfIndex !== -1) string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
448
517
  return openAll + string + closeAll;
449
518
  };
450
- Object.defineProperties(createChalk.prototype, styles);
519
+ Object.defineProperties(createChalk.prototype, {
520
+ ...styles,
521
+ level: levelDescriptor
522
+ });
451
523
  const chalk = createChalk();
452
524
  createChalk({ level: stderrColor ? stderrColor.level : 0 });
453
525
  //#endregion
@@ -456,7 +528,7 @@ function Ht(n) {
456
528
  return isNaN(n) ? n.charCodeAt(0) : parseInt(n, 10);
457
529
  }
458
530
  function ps(n) {
459
- return n.replace(as, fe$1).replace(ls, ue$1).replace(cs, qt).replace(fs$5, de$1).replace(us, pe$1);
531
+ return n.replace(as, fe$1).replace(ls, ue$1).replace(cs, qt).replace(fs$4, de$1).replace(us, pe$1);
460
532
  }
461
533
  function ms(n) {
462
534
  return n.replace(is, "\\").replace(rs, "{").replace(ns, "}").replace(os$2, ",").replace(hs, ".");
@@ -548,7 +620,7 @@ function Ut(n, t = {}) {
548
620
  function es(n, t = {}) {
549
621
  return new I$1(n, t).iterate();
550
622
  }
551
- var Gt, ce, ss, fe$1, ue$1, qt, de$1, pe$1, is, rs, ns, os$2, hs, as, ls, cs, fs$5, us, ds, at, Ss, lt, Es, we$1, ye$1, W, xs, be$1, vs, Ct, Cs, Ts, As, ks, Kt, Se$1, Ee$1, Q$1, tt, O$2, Rs, Os, Fs, Ds, Ms, Ns, _s, Ls, Ws, Ps, js, Is, zs, Bs, Us, $s, Gs, Hs, Ce$1, Te$1, Ae$1, xe$1, A$1, Vs, Ys, Xs, Js, N$1, Zs, ke$1, Qs, ti, ve$1, ei, D, si, Oe, Vt, Fe$1, At, Re$1, ii, q$1, De$1, Tt, ri, ft, Ne$1, oi, hi, ai, G, H$1, K$1, kt, ut, Rt, _e$1, Ot, Le$1, P, et, v$1, dt, st, C$1, F, T, Yt, Ft, k, x$1, Xt, Jt, We$1, Zt, B, Qt, Dt, pt, Y$1, M, mt, li, ci, fi, ui, Mt, te$1, di, pi, V, wt, Ue$1, $e$1, Ri, Oi, L, Ge$1, He$1, U, qe$1, Ke$1, X$1, Ve$1, _$1, gt, se$1, je$1, yt, j, Nt, Lt, Ie, Fi, ie$1, ze$1, bt, Be$1, _t, Wt, ne$1, Ye$1, R$2, Pt, jt, It, it, rt, St, Xe$1, Di, Mi, Ni, nt, _i, ot, oe$1, he$1, ae$1, Et, Li, zt, xt, vt, Pi, I$1, le$1, ji, Ii, zi, Bi, Ui, Ze$1;
623
+ var Gt, ce, ss, fe$1, ue$1, qt, de$1, pe$1, is, rs, ns, os$2, hs, as, ls, cs, fs$4, us, ds, at, Ss, lt, Es, we$1, ye$1, W, xs, be$1, vs, Ct, Cs, Ts, As, ks, Kt, Se$1, Ee$1, Q$1, tt, O$2, Rs, Os, Fs, Ds, Ms, Ns, _s, Ls, Ws, Ps, js, Is, zs, Bs, Us, $s, Gs, Hs, Ce$1, Te$1, Ae$1, xe$1, A$1, Vs, Ys, Xs, Js, N$1, Zs, ke$1, Qs, ti, ve$1, ei, D, si, Oe$1, Vt, Fe$1, At, Re$1, ii, q$1, De$1, Tt, ri, ft, Ne$1, oi, hi, ai, G, H$1, K$1, kt, ut, Rt, _e$1, Ot, Le$1, P, et, v$1, dt, st, C$1, F, T, Yt, Ft, k, x$1, Xt, Jt, We$1, Zt, B, Qt, Dt, pt, Y$1, M, mt, li, ci, fi, ui, Mt, te$1, di, pi, V, vi, wt, Ue$1, $e, Ri, Oi, L$1, Ge$1, He$1, U, qe$1, Ke$1, X$1, Ve$1, _$1, gt, se$1, je$1, yt, j, Nt, Lt, Ie$1, Fi, ie$1, ze$1, bt, Be$1, _t, Wt, ne$1, Ye$1, R$2, Pt, jt, It, it, rt, St, Xe$1, Di, Mi, Ni, nt, _i, ot, oe$1, he$1, ae$1, Et, Li, zt, xt, vt, Pi, I$1, le$1, ji, Ii, zi, Bi, Ui, Ze$1;
552
624
  var init_index_min = __esmMin((() => {
553
625
  Gt = (n, t, e) => {
554
626
  let s = n instanceof RegExp ? ce(n, e) : n, i = t instanceof RegExp ? ce(t, e) : t, r = s !== null && i != null && ss(s, i, e);
@@ -593,7 +665,7 @@ var init_index_min = __esmMin((() => {
593
665
  as = /\\\\/g;
594
666
  ls = /\\{/g;
595
667
  cs = /\\}/g;
596
- fs$5 = /\\,/g;
668
+ fs$4 = /\\,/g;
597
669
  us = /\\./g;
598
670
  ds = 1e5;
599
671
  at = (n) => {
@@ -1333,7 +1405,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
1333
1405
  O$2.escape = tt;
1334
1406
  O$2.unescape = W;
1335
1407
  si = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date;
1336
- Oe = /* @__PURE__ */ new Set();
1408
+ Oe$1 = /* @__PURE__ */ new Set();
1337
1409
  Vt = typeof process == "object" && process ? process : {};
1338
1410
  Fe$1 = (n, t, e, s) => {
1339
1411
  typeof Vt.emitWarning == "function" ? Vt.emitWarning(n, t, e, s) : console.error(`[${e}] ${t}: ${n}`);
@@ -1366,7 +1438,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
1366
1438
  n && (n = !1, Fe$1("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", t));
1367
1439
  };
1368
1440
  }
1369
- ii = (n) => !Oe.has(n);
1441
+ ii = (n) => !Oe$1.has(n);
1370
1442
  q$1 = (n) => n && n === Math.floor(n) && n > 0 && isFinite(n);
1371
1443
  De$1 = (n) => q$1(n) ? n <= Math.pow(2, 8) ? Uint8Array : n <= Math.pow(2, 16) ? Uint16Array : n <= Math.pow(2, 32) ? Uint32Array : n <= Number.MAX_SAFE_INTEGER ? Tt : null : null;
1372
1444
  Tt = class extends Array {
@@ -1519,7 +1591,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
1519
1591
  if (this.#t === 0 && this.ttl === 0 && this.#s === 0) throw new TypeError("At least one of max, maxSize, or ttl is required");
1520
1592
  if (!this.ttlAutopurge && !this.#t && !this.#s) {
1521
1593
  let $t = "LRU_CACHE_UNBOUNDED";
1522
- ii($t) && (Oe.add($t), Fe$1("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", $t, Me));
1594
+ ii($t) && (Oe$1.add($t), Fe$1("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", $t, Me));
1523
1595
  }
1524
1596
  }
1525
1597
  getRemainingTTL(t) {
@@ -2303,12 +2375,13 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2303
2375
  return oi;
2304
2376
  }
2305
2377
  };
2378
+ vi = realpathSync.native;
2306
2379
  wt = {
2307
2380
  lstatSync,
2308
2381
  readdir,
2309
2382
  readdirSync,
2310
2383
  readlinkSync,
2311
- realpathSync: realpathSync.native,
2384
+ realpathSync: vi,
2312
2385
  promises: {
2313
2386
  lstat,
2314
2387
  readdir: readdir$1,
@@ -2324,10 +2397,10 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2324
2397
  ...n.promises || {}
2325
2398
  }
2326
2399
  };
2327
- $e$1 = /^\\\\\?\\([a-z]:)\\?$/i;
2328
- Ri = (n) => n.replace(/\//g, "\\").replace($e$1, "$1\\");
2400
+ $e = /^\\\\\?\\([a-z]:)\\?$/i;
2401
+ Ri = (n) => n.replace(/\//g, "\\").replace($e, "$1\\");
2329
2402
  Oi = /[\\\/]/;
2330
- L = 0;
2403
+ L$1 = 0;
2331
2404
  Ge$1 = 1;
2332
2405
  He$1 = 2;
2333
2406
  U = 4;
@@ -2343,9 +2416,9 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2343
2416
  j = 128;
2344
2417
  Nt = 256;
2345
2418
  Lt = 512;
2346
- Ie = yt | j | Lt;
2419
+ Ie$1 = yt | j | Lt;
2347
2420
  Fi = 1023;
2348
- ie$1 = (n) => n.isFile() ? Ke$1 : n.isDirectory() ? U : n.isSymbolicLink() ? X$1 : n.isCharacterDevice() ? He$1 : n.isBlockDevice() ? qe$1 : n.isSocket() ? Ve$1 : n.isFIFO() ? Ge$1 : L;
2421
+ ie$1 = (n) => n.isFile() ? Ke$1 : n.isDirectory() ? U : n.isSymbolicLink() ? X$1 : n.isCharacterDevice() ? He$1 : n.isBlockDevice() ? qe$1 : n.isSocket() ? Ve$1 : n.isFIFO() ? Ge$1 : L$1;
2349
2422
  ze$1 = new ft({ max: 2 ** 12 });
2350
2423
  bt = (n) => {
2351
2424
  let t = ze$1.get(n);
@@ -2366,7 +2439,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2366
2439
  }
2367
2440
  };
2368
2441
  ne$1 = class extends ft {
2369
- constructor(t = 16 * 1024) {
2442
+ constructor(t = 16384) {
2370
2443
  super({
2371
2444
  maxSize: t,
2372
2445
  sizeCalculation: (e) => e.length + 1
@@ -2470,7 +2543,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2470
2543
  get path() {
2471
2544
  return this.parentPath;
2472
2545
  }
2473
- constructor(t, e = L, s, i, r, o, h) {
2546
+ constructor(t, e = L$1, s, i, r, o, h) {
2474
2547
  this.name = t, this.#C = r ? _t(t) : bt(t), this.#e = e & Fi, this.nocase = r, this.roots = i, this.root = s || this, this.#_ = o, this.#g = h.fullpath, this.#x = h.relative, this.#A = h.relativePosix, this.parent = h.parent, this.parent ? this.#t = this.parent.#t : this.#t = Ue$1(h.fs);
2475
2548
  }
2476
2549
  depth() {
@@ -2500,7 +2573,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2500
2573
  if (t === "..") return this.parent || this;
2501
2574
  let s = this.children(), i = this.nocase ? _t(t) : bt(t);
2502
2575
  for (let a of s) if (a.#C === i) return a;
2503
- let r = this.parent ? this.sep : "", o = this.#g ? this.#g + r + t : void 0, h = this.newChild(t, L, {
2576
+ let r = this.parent ? this.sep : "", o = this.#g ? this.#g + r + t : void 0, h = this.newChild(t, L$1, {
2504
2577
  ...e,
2505
2578
  parent: this,
2506
2579
  fullpath: o
@@ -2542,7 +2615,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2542
2615
  return this.#y = s;
2543
2616
  }
2544
2617
  isUnknown() {
2545
- return (this.#e & _$1) === L;
2618
+ return (this.#e & _$1) === L$1;
2546
2619
  }
2547
2620
  isType(t) {
2548
2621
  return this[`is${t}`]();
@@ -2588,7 +2661,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2588
2661
  if (this.#M) return !0;
2589
2662
  if (!this.parent) return !1;
2590
2663
  let t = this.#e & _$1;
2591
- return !(t !== L && t !== X$1 || this.#e & Nt || this.#e & j);
2664
+ return !(t !== L$1 && t !== X$1 || this.#e & Nt || this.#e & j);
2592
2665
  }
2593
2666
  calledReaddir() {
2594
2667
  return !!(this.#e & se$1);
@@ -2659,7 +2732,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2659
2732
  }
2660
2733
  #B(t, e) {
2661
2734
  let s = ie$1(t), i = this.newChild(t.name, s, { parent: this }), r = i.#e & _$1;
2662
- return r !== U && r !== X$1 && r !== L && (i.#e |= yt), e.unshift(i), e.provisional++, i;
2735
+ return r !== U && r !== X$1 && r !== L$1 && (i.#e |= yt), e.unshift(i), e.provisional++, i;
2663
2736
  }
2664
2737
  #U(t, e) {
2665
2738
  for (let s = e.provisional; s < e.length; s++) {
@@ -2689,7 +2762,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2689
2762
  let { atime: e, atimeMs: s, birthtime: i, birthtimeMs: r, blksize: o, blocks: h, ctime: a, ctimeMs: l, dev: u, gid: c, ino: d, mode: f, mtime: m, mtimeMs: p, nlink: w, rdev: g, size: S, uid: E } = t;
2690
2763
  this.#b = e, this.#a = s, this.#m = i, this.#E = r, this.#c = o, this.#f = h, this.#R = a, this.#d = l, this.#s = u, this.#S = c, this.#h = d, this.#n = f, this.#p = m, this.#i = p, this.#r = w, this.#w = g, this.#u = S, this.#o = E;
2691
2764
  let y = ie$1(t);
2692
- this.#e = this.#e & gt | y | je$1, y !== L && y !== U && y !== X$1 && (this.#e |= yt);
2765
+ this.#e = this.#e & gt | y | je$1, y !== L$1 && y !== U && y !== X$1 && (this.#e |= yt);
2693
2766
  }
2694
2767
  #W = [];
2695
2768
  #O = !1;
@@ -2755,12 +2828,12 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2755
2828
  return t.slice(0, t.provisional);
2756
2829
  }
2757
2830
  canReaddir() {
2758
- if (this.#e & Ie) return !1;
2831
+ if (this.#e & Ie$1) return !1;
2759
2832
  let t = _$1 & this.#e;
2760
- return t === L || t === U || t === X$1;
2833
+ return t === L$1 || t === U || t === X$1;
2761
2834
  }
2762
2835
  shouldWalk(t, e) {
2763
- return (this.#e & U) === U && !(this.#e & Ie) && !t.has(this) && (!e || e(this));
2836
+ return (this.#e & U) === U && !(this.#e & Ie$1) && !t.has(this) && (!e || e(this));
2764
2837
  }
2765
2838
  async realpath() {
2766
2839
  if (this.#k) return this.#k;
@@ -2791,10 +2864,10 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2791
2864
  Pt = class n extends R$2 {
2792
2865
  sep = "\\";
2793
2866
  splitSep = Oi;
2794
- constructor(t, e = L, s, i, r, o, h) {
2867
+ constructor(t, e = L$1, s, i, r, o, h) {
2795
2868
  super(t, e, s, i, r, o, h);
2796
2869
  }
2797
- newChild(t, e = L, s = {}) {
2870
+ newChild(t, e = L$1, s = {}) {
2798
2871
  return new n(t, e, this.root, this.roots, this.nocase, this.childrenCache(), s);
2799
2872
  }
2800
2873
  getRootString(t) {
@@ -2806,13 +2879,13 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2806
2879
  return this.roots[t] = new it(t, this).root;
2807
2880
  }
2808
2881
  sameRoot(t, e = this.root.name) {
2809
- return t = t.toUpperCase().replace(/\//g, "\\").replace($e$1, "$1\\"), t === e;
2882
+ return t = t.toUpperCase().replace(/\//g, "\\").replace($e, "$1\\"), t === e;
2810
2883
  }
2811
2884
  };
2812
2885
  jt = class n extends R$2 {
2813
2886
  splitSep = "/";
2814
2887
  sep = "/";
2815
- constructor(t, e = L, s, i, r, o, h) {
2888
+ constructor(t, e = L$1, s, i, r, o, h) {
2816
2889
  super(t, e, s, i, r, o, h);
2817
2890
  }
2818
2891
  getRootString(t) {
@@ -2821,7 +2894,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2821
2894
  getRoot(t) {
2822
2895
  return this.root;
2823
2896
  }
2824
- newChild(t, e = L, s = {}) {
2897
+ newChild(t, e = L$1, s = {}) {
2825
2898
  return new n(t, e, this.root, this.roots, this.nocase, this.childrenCache(), s);
2826
2899
  }
2827
2900
  };
@@ -2835,7 +2908,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2835
2908
  #n;
2836
2909
  nocase;
2837
2910
  #r;
2838
- constructor(t = process.cwd(), e, s, { nocase: i, childrenCacheSize: r = 16 * 1024, fs: o = wt } = {}) {
2911
+ constructor(t = process.cwd(), e, s, { nocase: i, childrenCacheSize: r = 16384, fs: o = wt } = {}) {
2839
2912
  this.#r = Ue$1(o), (t instanceof URL || t.startsWith("file://")) && (t = fileURLToPath(t));
2840
2913
  let h = e.resolve(t);
2841
2914
  this.roots = Object.create(null), this.rootPath = this.parseRootPath(h), this.#t = new Wt(), this.#s = new Wt(), this.#n = new ne$1(r);
@@ -3746,7 +3819,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
3746
3819
  var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3747
3820
  module.exports = isexe;
3748
3821
  isexe.sync = sync;
3749
- var fs$4 = __require("fs");
3822
+ var fs$3 = __require("fs");
3750
3823
  function checkPathExt(path, options) {
3751
3824
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
3752
3825
  if (!pathext) return true;
@@ -3763,12 +3836,12 @@ var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3763
3836
  return checkPathExt(path, options);
3764
3837
  }
3765
3838
  function isexe(path, options, cb) {
3766
- fs$4.stat(path, function(er, stat) {
3839
+ fs$3.stat(path, function(er, stat) {
3767
3840
  cb(er, er ? false : checkStat(stat, path, options));
3768
3841
  });
3769
3842
  }
3770
3843
  function sync(path, options) {
3771
- return checkStat(fs$4.statSync(path), path, options);
3844
+ return checkStat(fs$3.statSync(path), path, options);
3772
3845
  }
3773
3846
  }));
3774
3847
  //#endregion
@@ -3776,14 +3849,14 @@ var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3776
3849
  var require_mode = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3777
3850
  module.exports = isexe;
3778
3851
  isexe.sync = sync;
3779
- var fs$3 = __require("fs");
3852
+ var fs$2 = __require("fs");
3780
3853
  function isexe(path, options, cb) {
3781
- fs$3.stat(path, function(er, stat) {
3854
+ fs$2.stat(path, function(er, stat) {
3782
3855
  cb(er, er ? false : checkStat(stat, options));
3783
3856
  });
3784
3857
  }
3785
3858
  function sync(path, options) {
3786
- return checkStat(fs$3.statSync(path), options);
3859
+ return checkStat(fs$2.statSync(path), options);
3787
3860
  }
3788
3861
  function checkStat(stat, options) {
3789
3862
  return stat.isFile() && checkMode(stat, options);
@@ -3847,13 +3920,14 @@ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3847
3920
  //#region ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
3848
3921
  var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3849
3922
  const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
3850
- const path$6 = __require("path");
3923
+ const path$4 = __require("path");
3851
3924
  const COLON = isWindows ? ";" : ":";
3852
3925
  const isexe = require_isexe();
3853
3926
  const getNotFoundError = (cmd) => Object.assign(/* @__PURE__ */ new Error(`not found: ${cmd}`), { code: "ENOENT" });
3854
3927
  const getPathInfo = (cmd, opt) => {
3855
3928
  const colon = opt.colon || COLON;
3856
- const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [...isWindows ? [process.cwd()] : [], ...(opt.path || process.env.PATH || "").split(colon)];
3929
+ const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [...isWindows ? [process.cwd()] : [], ...(opt.path || process.env.PATH ||
3930
+ /* istanbul ignore next: very unusual */ "").split(colon)];
3857
3931
  const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
3858
3932
  const pathExt = isWindows ? pathExtExe.split(colon) : [""];
3859
3933
  if (isWindows) {
@@ -3877,7 +3951,7 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3877
3951
  if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
3878
3952
  const ppRaw = pathEnv[i];
3879
3953
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
3880
- const pCmd = path$6.join(pathPart, cmd);
3954
+ const pCmd = path$4.join(pathPart, cmd);
3881
3955
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
3882
3956
  resolve(subStep(p, i, 0));
3883
3957
  });
@@ -3899,7 +3973,7 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3899
3973
  for (let i = 0; i < pathEnv.length; i++) {
3900
3974
  const ppRaw = pathEnv[i];
3901
3975
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
3902
- const pCmd = path$6.join(pathPart, cmd);
3976
+ const pCmd = path$4.join(pathPart, cmd);
3903
3977
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
3904
3978
  for (let j = 0; j < pathExt.length; j++) {
3905
3979
  const cur = p + pathExt[j];
@@ -3930,7 +4004,7 @@ var require_path_key = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3930
4004
  //#endregion
3931
4005
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
3932
4006
  var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3933
- const path$5 = __require("path");
4007
+ const path$3 = __require("path");
3934
4008
  const which = require_which();
3935
4009
  const getPathKey = require_path_key();
3936
4010
  function resolveCommandAttempt(parsed, withoutPathExt) {
@@ -3945,12 +4019,12 @@ var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) =>
3945
4019
  try {
3946
4020
  resolved = which.sync(parsed.command, {
3947
4021
  path: env[getPathKey({ env })],
3948
- pathExt: withoutPathExt ? path$5.delimiter : void 0
4022
+ pathExt: withoutPathExt ? path$3.delimiter : void 0
3949
4023
  });
3950
4024
  } catch (e) {} finally {
3951
4025
  if (shouldSwitchCwd) process.chdir(cwd);
3952
4026
  }
3953
- if (resolved) resolved = path$5.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
4027
+ if (resolved) resolved = path$3.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
3954
4028
  return resolved;
3955
4029
  }
3956
4030
  function resolveCommand(parsed) {
@@ -3999,16 +4073,16 @@ var require_shebang_command = /* @__PURE__ */ __commonJSMin(((exports, module) =
3999
4073
  //#endregion
4000
4074
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
4001
4075
  var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4002
- const fs$2 = __require("fs");
4076
+ const fs$1 = __require("fs");
4003
4077
  const shebangCommand = require_shebang_command();
4004
4078
  function readShebang(command) {
4005
4079
  const size = 150;
4006
4080
  const buffer = Buffer.alloc(size);
4007
4081
  let fd;
4008
4082
  try {
4009
- fd = fs$2.openSync(command, "r");
4010
- fs$2.readSync(fd, buffer, 0, size, 0);
4011
- fs$2.closeSync(fd);
4083
+ fd = fs$1.openSync(command, "r");
4084
+ fs$1.readSync(fd, buffer, 0, size, 0);
4085
+ fs$1.closeSync(fd);
4012
4086
  } catch (e) {}
4013
4087
  return shebangCommand(buffer.toString());
4014
4088
  }
@@ -4017,7 +4091,7 @@ var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4017
4091
  //#endregion
4018
4092
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
4019
4093
  var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4020
- const path$4 = __require("path");
4094
+ const path$2 = __require("path");
4021
4095
  const resolveCommand = require_resolveCommand();
4022
4096
  const escape = require_escape();
4023
4097
  const readShebang = require_readShebang();
@@ -4040,7 +4114,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4040
4114
  const needsShell = !isExecutableRegExp.test(commandFile);
4041
4115
  if (parsed.options.forceShell || needsShell) {
4042
4116
  const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
4043
- parsed.command = path$4.normalize(parsed.command);
4117
+ parsed.command = path$2.normalize(parsed.command);
4044
4118
  parsed.command = escape.command(parsed.command);
4045
4119
  parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
4046
4120
  parsed.args = [
@@ -4287,1768 +4361,6 @@ function INIT_CWD() {
4287
4361
  return process.env.INIT_CWD ?? process.cwd();
4288
4362
  }
4289
4363
  //#endregion
4290
- //#region ../../node_modules/.pnpm/resolve-from@4.0.0/node_modules/resolve-from/index.js
4291
- var require_resolve_from = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4292
- const path$3 = __require("path");
4293
- const Module = __require("module");
4294
- const fs$1 = __require("fs");
4295
- const resolveFrom = (fromDir, moduleId, silent) => {
4296
- if (typeof fromDir !== "string") throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDir}\``);
4297
- if (typeof moduleId !== "string") throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof moduleId}\``);
4298
- try {
4299
- fromDir = fs$1.realpathSync(fromDir);
4300
- } catch (err) {
4301
- if (err.code === "ENOENT") fromDir = path$3.resolve(fromDir);
4302
- else if (silent) return null;
4303
- else throw err;
4304
- }
4305
- const fromFile = path$3.join(fromDir, "noop.js");
4306
- const resolveFileName = () => Module._resolveFilename(moduleId, {
4307
- id: fromFile,
4308
- filename: fromFile,
4309
- paths: Module._nodeModulePaths(fromDir)
4310
- });
4311
- if (silent) try {
4312
- return resolveFileName();
4313
- } catch (err) {
4314
- return null;
4315
- }
4316
- return resolveFileName();
4317
- };
4318
- module.exports = (fromDir, moduleId) => resolveFrom(fromDir, moduleId);
4319
- module.exports.silent = (fromDir, moduleId) => resolveFrom(fromDir, moduleId, true);
4320
- }));
4321
- //#endregion
4322
- //#region ../../node_modules/.pnpm/callsites@3.1.0/node_modules/callsites/index.js
4323
- var require_callsites = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4324
- const callsites = () => {
4325
- const _prepareStackTrace = Error.prepareStackTrace;
4326
- Error.prepareStackTrace = (_, stack) => stack;
4327
- const stack = (/* @__PURE__ */ new Error()).stack.slice(1);
4328
- Error.prepareStackTrace = _prepareStackTrace;
4329
- return stack;
4330
- };
4331
- module.exports = callsites;
4332
- module.exports.default = callsites;
4333
- }));
4334
- //#endregion
4335
- //#region ../../node_modules/.pnpm/parent-module@1.0.1/node_modules/parent-module/index.js
4336
- var require_parent_module = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4337
- const callsites = require_callsites();
4338
- module.exports = (filepath) => {
4339
- const stacks = callsites();
4340
- if (!filepath) return stacks[2].getFileName();
4341
- let seenVal = false;
4342
- stacks.shift();
4343
- for (const stack of stacks) {
4344
- const parentFilepath = stack.getFileName();
4345
- if (typeof parentFilepath !== "string") continue;
4346
- if (parentFilepath === filepath) {
4347
- seenVal = true;
4348
- continue;
4349
- }
4350
- if (parentFilepath === "module.js") continue;
4351
- if (seenVal && parentFilepath !== filepath) return parentFilepath;
4352
- }
4353
- };
4354
- }));
4355
- //#endregion
4356
- //#region ../../node_modules/.pnpm/import-fresh@3.3.1/node_modules/import-fresh/index.js
4357
- var require_import_fresh = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4358
- const path$2 = __require("path");
4359
- const resolveFrom = require_resolve_from();
4360
- const parentModule = require_parent_module();
4361
- module.exports = (moduleId) => {
4362
- if (typeof moduleId !== "string") throw new TypeError("Expected a string");
4363
- const parentPath = parentModule(__filename);
4364
- const cwd = parentPath ? path$2.dirname(parentPath) : __dirname;
4365
- const filePath = resolveFrom(cwd, moduleId);
4366
- const oldModule = __require.cache[filePath];
4367
- if (oldModule && oldModule.parent) {
4368
- let i = oldModule.parent.children.length;
4369
- while (i--) if (oldModule.parent.children[i].id === filePath) oldModule.parent.children.splice(i, 1);
4370
- }
4371
- delete __require.cache[filePath];
4372
- const parent = __require.cache[parentPath];
4373
- return parent === void 0 || parent.require === void 0 ? __require(filePath) : parent.require(filePath);
4374
- };
4375
- }));
4376
- //#endregion
4377
- //#region ../../node_modules/.pnpm/is-arrayish@0.2.1/node_modules/is-arrayish/index.js
4378
- var require_is_arrayish = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4379
- module.exports = function isArrayish(obj) {
4380
- if (!obj) return false;
4381
- return obj instanceof Array || Array.isArray(obj) || obj.length >= 0 && obj.splice instanceof Function;
4382
- };
4383
- }));
4384
- //#endregion
4385
- //#region ../../node_modules/.pnpm/error-ex@1.3.4/node_modules/error-ex/index.js
4386
- var require_error_ex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4387
- var util = __require("util");
4388
- var isArrayish = require_is_arrayish();
4389
- var errorEx = function errorEx(name, properties) {
4390
- if (!name || name.constructor !== String) {
4391
- properties = name || {};
4392
- name = Error.name;
4393
- }
4394
- var errorExError = function ErrorEXError(message) {
4395
- if (!this) return new ErrorEXError(message);
4396
- message = message instanceof Error ? message.message : message || this.message;
4397
- Error.call(this, message);
4398
- Error.captureStackTrace(this, errorExError);
4399
- this.name = name;
4400
- Object.defineProperty(this, "message", {
4401
- configurable: true,
4402
- enumerable: false,
4403
- get: function() {
4404
- var newMessage = message.split(/\r?\n/g);
4405
- for (var key in properties) {
4406
- if (!properties.hasOwnProperty(key)) continue;
4407
- var modifier = properties[key];
4408
- if ("message" in modifier) {
4409
- newMessage = modifier.message(this[key], newMessage) || newMessage;
4410
- if (!isArrayish(newMessage)) newMessage = [newMessage];
4411
- }
4412
- }
4413
- return newMessage.join("\n");
4414
- },
4415
- set: function(v) {
4416
- message = v;
4417
- }
4418
- });
4419
- var overwrittenStack = null;
4420
- var stackDescriptor = Object.getOwnPropertyDescriptor(this, "stack");
4421
- var stackGetter = stackDescriptor.get;
4422
- var stackValue = stackDescriptor.value;
4423
- delete stackDescriptor.value;
4424
- delete stackDescriptor.writable;
4425
- stackDescriptor.set = function(newstack) {
4426
- overwrittenStack = newstack;
4427
- };
4428
- stackDescriptor.get = function() {
4429
- var stack = (overwrittenStack || (stackGetter ? stackGetter.call(this) : stackValue)).split(/\r?\n+/g);
4430
- if (!overwrittenStack) stack[0] = this.name + ": " + this.message;
4431
- var lineCount = 1;
4432
- for (var key in properties) {
4433
- if (!properties.hasOwnProperty(key)) continue;
4434
- var modifier = properties[key];
4435
- if ("line" in modifier) {
4436
- var line = modifier.line(this[key]);
4437
- if (line) stack.splice(lineCount++, 0, " " + line);
4438
- }
4439
- if ("stack" in modifier) modifier.stack(this[key], stack);
4440
- }
4441
- return stack.join("\n");
4442
- };
4443
- Object.defineProperty(this, "stack", stackDescriptor);
4444
- };
4445
- if (Object.setPrototypeOf) {
4446
- Object.setPrototypeOf(errorExError.prototype, Error.prototype);
4447
- Object.setPrototypeOf(errorExError, Error);
4448
- } else util.inherits(errorExError, Error);
4449
- return errorExError;
4450
- };
4451
- errorEx.append = function(str, def) {
4452
- return { message: function(v, message) {
4453
- v = v || def;
4454
- if (v) message[0] += " " + str.replace("%s", v.toString());
4455
- return message;
4456
- } };
4457
- };
4458
- errorEx.line = function(str, def) {
4459
- return { line: function(v) {
4460
- v = v || def;
4461
- if (v) return str.replace("%s", v.toString());
4462
- return null;
4463
- } };
4464
- };
4465
- module.exports = errorEx;
4466
- }));
4467
- //#endregion
4468
- //#region ../../node_modules/.pnpm/json-parse-even-better-errors@2.3.1/node_modules/json-parse-even-better-errors/index.js
4469
- var require_json_parse_even_better_errors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4470
- const hexify = (char) => {
4471
- const h = char.charCodeAt(0).toString(16).toUpperCase();
4472
- return "0x" + (h.length % 2 ? "0" : "") + h;
4473
- };
4474
- const parseError = (e, txt, context) => {
4475
- if (!txt) return {
4476
- message: e.message + " while parsing empty string",
4477
- position: 0
4478
- };
4479
- const badToken = e.message.match(/^Unexpected token (.) .*position\s+(\d+)/i);
4480
- const errIdx = badToken ? +badToken[2] : e.message.match(/^Unexpected end of JSON.*/i) ? txt.length - 1 : null;
4481
- const msg = badToken ? e.message.replace(/^Unexpected token ./, `Unexpected token ${JSON.stringify(badToken[1])} (${hexify(badToken[1])})`) : e.message;
4482
- if (errIdx !== null && errIdx !== void 0) {
4483
- const start = errIdx <= context ? 0 : errIdx - context;
4484
- const end = errIdx + context >= txt.length ? txt.length : errIdx + context;
4485
- const slice = (start === 0 ? "" : "...") + txt.slice(start, end) + (end === txt.length ? "" : "...");
4486
- return {
4487
- message: msg + ` while parsing ${txt === slice ? "" : "near "}${JSON.stringify(slice)}`,
4488
- position: errIdx
4489
- };
4490
- } else return {
4491
- message: msg + ` while parsing '${txt.slice(0, context * 2)}'`,
4492
- position: 0
4493
- };
4494
- };
4495
- var JSONParseError = class extends SyntaxError {
4496
- constructor(er, txt, context, caller) {
4497
- context = context || 20;
4498
- const metadata = parseError(er, txt, context);
4499
- super(metadata.message);
4500
- Object.assign(this, metadata);
4501
- this.code = "EJSONPARSE";
4502
- this.systemError = er;
4503
- Error.captureStackTrace(this, caller || this.constructor);
4504
- }
4505
- get name() {
4506
- return this.constructor.name;
4507
- }
4508
- set name(n) {}
4509
- get [Symbol.toStringTag]() {
4510
- return this.constructor.name;
4511
- }
4512
- };
4513
- const kIndent = Symbol.for("indent");
4514
- const kNewline = Symbol.for("newline");
4515
- const formatRE = /^\s*[{\[]((?:\r?\n)+)([\s\t]*)/;
4516
- const emptyRE = /^(?:\{\}|\[\])((?:\r?\n)+)?$/;
4517
- const parseJson = (txt, reviver, context) => {
4518
- const parseText = stripBOM(txt);
4519
- context = context || 20;
4520
- try {
4521
- const [, newline = "\n", indent = " "] = parseText.match(emptyRE) || parseText.match(formatRE) || [
4522
- ,
4523
- "",
4524
- ""
4525
- ];
4526
- const result = JSON.parse(parseText, reviver);
4527
- if (result && typeof result === "object") {
4528
- result[kNewline] = newline;
4529
- result[kIndent] = indent;
4530
- }
4531
- return result;
4532
- } catch (e) {
4533
- if (typeof txt !== "string" && !Buffer.isBuffer(txt)) {
4534
- const isEmptyArray = Array.isArray(txt) && txt.length === 0;
4535
- throw Object.assign(/* @__PURE__ */ new TypeError(`Cannot parse ${isEmptyArray ? "an empty array" : String(txt)}`), {
4536
- code: "EJSONPARSE",
4537
- systemError: e
4538
- });
4539
- }
4540
- throw new JSONParseError(e, parseText, context, parseJson);
4541
- }
4542
- };
4543
- const stripBOM = (txt) => String(txt).replace(/^\uFEFF/, "");
4544
- module.exports = parseJson;
4545
- parseJson.JSONParseError = JSONParseError;
4546
- parseJson.noExceptions = (txt, reviver) => {
4547
- try {
4548
- return JSON.parse(stripBOM(txt), reviver);
4549
- } catch (e) {}
4550
- };
4551
- }));
4552
- //#endregion
4553
- //#region ../../node_modules/.pnpm/lines-and-columns@1.2.4/node_modules/lines-and-columns/build/index.js
4554
- var require_build = /* @__PURE__ */ __commonJSMin(((exports) => {
4555
- exports.__esModule = true;
4556
- exports.LinesAndColumns = void 0;
4557
- var LF = "\n";
4558
- var CR = "\r";
4559
- var LinesAndColumns = function() {
4560
- function LinesAndColumns(string) {
4561
- this.string = string;
4562
- var offsets = [0];
4563
- for (var offset = 0; offset < string.length;) switch (string[offset]) {
4564
- case LF:
4565
- offset += LF.length;
4566
- offsets.push(offset);
4567
- break;
4568
- case CR:
4569
- offset += CR.length;
4570
- if (string[offset] === LF) offset += LF.length;
4571
- offsets.push(offset);
4572
- break;
4573
- default:
4574
- offset++;
4575
- break;
4576
- }
4577
- this.offsets = offsets;
4578
- }
4579
- LinesAndColumns.prototype.locationForIndex = function(index) {
4580
- if (index < 0 || index > this.string.length) return null;
4581
- var line = 0;
4582
- var offsets = this.offsets;
4583
- while (offsets[line + 1] <= index) line++;
4584
- var column = index - offsets[line];
4585
- return {
4586
- line,
4587
- column
4588
- };
4589
- };
4590
- LinesAndColumns.prototype.indexForLocation = function(location) {
4591
- var line = location.line, column = location.column;
4592
- if (line < 0 || line >= this.offsets.length) return null;
4593
- if (column < 0 || column > this.lengthOfLine(line)) return null;
4594
- return this.offsets[line] + column;
4595
- };
4596
- LinesAndColumns.prototype.lengthOfLine = function(line) {
4597
- var offset = this.offsets[line];
4598
- return (line === this.offsets.length - 1 ? this.string.length : this.offsets[line + 1]) - offset;
4599
- };
4600
- return LinesAndColumns;
4601
- }();
4602
- exports.LinesAndColumns = LinesAndColumns;
4603
- exports["default"] = LinesAndColumns;
4604
- }));
4605
- //#endregion
4606
- //#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
4607
- var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4608
- let p = process || {};
4609
- let argv = p.argv || [];
4610
- let env = p.env || {};
4611
- let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
4612
- let formatter = (open, close, replace = open) => (input) => {
4613
- let string = "" + input, index = string.indexOf(close, open.length);
4614
- return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
4615
- };
4616
- let replaceClose = (string, close, replace, index) => {
4617
- let result = "", cursor = 0;
4618
- do {
4619
- result += string.substring(cursor, index) + replace;
4620
- cursor = index + close.length;
4621
- index = string.indexOf(close, cursor);
4622
- } while (~index);
4623
- return result + string.substring(cursor);
4624
- };
4625
- let createColors = (enabled = isColorSupported) => {
4626
- let f = enabled ? formatter : () => String;
4627
- return {
4628
- isColorSupported: enabled,
4629
- reset: f("\x1B[0m", "\x1B[0m"),
4630
- bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
4631
- dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
4632
- italic: f("\x1B[3m", "\x1B[23m"),
4633
- underline: f("\x1B[4m", "\x1B[24m"),
4634
- inverse: f("\x1B[7m", "\x1B[27m"),
4635
- hidden: f("\x1B[8m", "\x1B[28m"),
4636
- strikethrough: f("\x1B[9m", "\x1B[29m"),
4637
- black: f("\x1B[30m", "\x1B[39m"),
4638
- red: f("\x1B[31m", "\x1B[39m"),
4639
- green: f("\x1B[32m", "\x1B[39m"),
4640
- yellow: f("\x1B[33m", "\x1B[39m"),
4641
- blue: f("\x1B[34m", "\x1B[39m"),
4642
- magenta: f("\x1B[35m", "\x1B[39m"),
4643
- cyan: f("\x1B[36m", "\x1B[39m"),
4644
- white: f("\x1B[37m", "\x1B[39m"),
4645
- gray: f("\x1B[90m", "\x1B[39m"),
4646
- bgBlack: f("\x1B[40m", "\x1B[49m"),
4647
- bgRed: f("\x1B[41m", "\x1B[49m"),
4648
- bgGreen: f("\x1B[42m", "\x1B[49m"),
4649
- bgYellow: f("\x1B[43m", "\x1B[49m"),
4650
- bgBlue: f("\x1B[44m", "\x1B[49m"),
4651
- bgMagenta: f("\x1B[45m", "\x1B[49m"),
4652
- bgCyan: f("\x1B[46m", "\x1B[49m"),
4653
- bgWhite: f("\x1B[47m", "\x1B[49m"),
4654
- blackBright: f("\x1B[90m", "\x1B[39m"),
4655
- redBright: f("\x1B[91m", "\x1B[39m"),
4656
- greenBright: f("\x1B[92m", "\x1B[39m"),
4657
- yellowBright: f("\x1B[93m", "\x1B[39m"),
4658
- blueBright: f("\x1B[94m", "\x1B[39m"),
4659
- magentaBright: f("\x1B[95m", "\x1B[39m"),
4660
- cyanBright: f("\x1B[96m", "\x1B[39m"),
4661
- whiteBright: f("\x1B[97m", "\x1B[39m"),
4662
- bgBlackBright: f("\x1B[100m", "\x1B[49m"),
4663
- bgRedBright: f("\x1B[101m", "\x1B[49m"),
4664
- bgGreenBright: f("\x1B[102m", "\x1B[49m"),
4665
- bgYellowBright: f("\x1B[103m", "\x1B[49m"),
4666
- bgBlueBright: f("\x1B[104m", "\x1B[49m"),
4667
- bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
4668
- bgCyanBright: f("\x1B[106m", "\x1B[49m"),
4669
- bgWhiteBright: f("\x1B[107m", "\x1B[49m")
4670
- };
4671
- };
4672
- module.exports = createColors();
4673
- module.exports.createColors = createColors;
4674
- }));
4675
- //#endregion
4676
- //#region ../../node_modules/.pnpm/js-tokens@4.0.0/node_modules/js-tokens/index.js
4677
- var require_js_tokens = /* @__PURE__ */ __commonJSMin(((exports) => {
4678
- Object.defineProperty(exports, "__esModule", { value: true });
4679
- exports.default = /((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;
4680
- exports.matchToToken = function(match) {
4681
- var token = {
4682
- type: "invalid",
4683
- value: match[0],
4684
- closed: void 0
4685
- };
4686
- if (match[1]) token.type = "string", token.closed = !!(match[3] || match[4]);
4687
- else if (match[5]) token.type = "comment";
4688
- else if (match[6]) token.type = "comment", token.closed = !!match[7];
4689
- else if (match[8]) token.type = "regex";
4690
- else if (match[9]) token.type = "number";
4691
- else if (match[10]) token.type = "name";
4692
- else if (match[11]) token.type = "punctuator";
4693
- else if (match[12]) token.type = "whitespace";
4694
- return token;
4695
- };
4696
- }));
4697
- //#endregion
4698
- //#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/identifier.js
4699
- var require_identifier = /* @__PURE__ */ __commonJSMin(((exports) => {
4700
- Object.defineProperty(exports, "__esModule", { value: true });
4701
- exports.isIdentifierChar = isIdentifierChar;
4702
- exports.isIdentifierName = isIdentifierName;
4703
- exports.isIdentifierStart = isIdentifierStart;
4704
- let nonASCIIidentifierStartChars = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";
4705
- let nonASCIIidentifierChars = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";
4706
- const nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
4707
- const nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
4708
- nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
4709
- const astralIdentifierStartCodes = [
4710
- 0,
4711
- 11,
4712
- 2,
4713
- 25,
4714
- 2,
4715
- 18,
4716
- 2,
4717
- 1,
4718
- 2,
4719
- 14,
4720
- 3,
4721
- 13,
4722
- 35,
4723
- 122,
4724
- 70,
4725
- 52,
4726
- 268,
4727
- 28,
4728
- 4,
4729
- 48,
4730
- 48,
4731
- 31,
4732
- 14,
4733
- 29,
4734
- 6,
4735
- 37,
4736
- 11,
4737
- 29,
4738
- 3,
4739
- 35,
4740
- 5,
4741
- 7,
4742
- 2,
4743
- 4,
4744
- 43,
4745
- 157,
4746
- 19,
4747
- 35,
4748
- 5,
4749
- 35,
4750
- 5,
4751
- 39,
4752
- 9,
4753
- 51,
4754
- 13,
4755
- 10,
4756
- 2,
4757
- 14,
4758
- 2,
4759
- 6,
4760
- 2,
4761
- 1,
4762
- 2,
4763
- 10,
4764
- 2,
4765
- 14,
4766
- 2,
4767
- 6,
4768
- 2,
4769
- 1,
4770
- 4,
4771
- 51,
4772
- 13,
4773
- 310,
4774
- 10,
4775
- 21,
4776
- 11,
4777
- 7,
4778
- 25,
4779
- 5,
4780
- 2,
4781
- 41,
4782
- 2,
4783
- 8,
4784
- 70,
4785
- 5,
4786
- 3,
4787
- 0,
4788
- 2,
4789
- 43,
4790
- 2,
4791
- 1,
4792
- 4,
4793
- 0,
4794
- 3,
4795
- 22,
4796
- 11,
4797
- 22,
4798
- 10,
4799
- 30,
4800
- 66,
4801
- 18,
4802
- 2,
4803
- 1,
4804
- 11,
4805
- 21,
4806
- 11,
4807
- 25,
4808
- 7,
4809
- 25,
4810
- 39,
4811
- 55,
4812
- 7,
4813
- 1,
4814
- 65,
4815
- 0,
4816
- 16,
4817
- 3,
4818
- 2,
4819
- 2,
4820
- 2,
4821
- 28,
4822
- 43,
4823
- 28,
4824
- 4,
4825
- 28,
4826
- 36,
4827
- 7,
4828
- 2,
4829
- 27,
4830
- 28,
4831
- 53,
4832
- 11,
4833
- 21,
4834
- 11,
4835
- 18,
4836
- 14,
4837
- 17,
4838
- 111,
4839
- 72,
4840
- 56,
4841
- 50,
4842
- 14,
4843
- 50,
4844
- 14,
4845
- 35,
4846
- 39,
4847
- 27,
4848
- 10,
4849
- 22,
4850
- 251,
4851
- 41,
4852
- 7,
4853
- 1,
4854
- 17,
4855
- 5,
4856
- 57,
4857
- 28,
4858
- 11,
4859
- 0,
4860
- 9,
4861
- 21,
4862
- 43,
4863
- 17,
4864
- 47,
4865
- 20,
4866
- 28,
4867
- 22,
4868
- 13,
4869
- 52,
4870
- 58,
4871
- 1,
4872
- 3,
4873
- 0,
4874
- 14,
4875
- 44,
4876
- 33,
4877
- 24,
4878
- 27,
4879
- 35,
4880
- 30,
4881
- 0,
4882
- 3,
4883
- 0,
4884
- 9,
4885
- 34,
4886
- 4,
4887
- 0,
4888
- 13,
4889
- 47,
4890
- 15,
4891
- 3,
4892
- 22,
4893
- 0,
4894
- 2,
4895
- 0,
4896
- 36,
4897
- 17,
4898
- 2,
4899
- 24,
4900
- 20,
4901
- 1,
4902
- 64,
4903
- 6,
4904
- 2,
4905
- 0,
4906
- 2,
4907
- 3,
4908
- 2,
4909
- 14,
4910
- 2,
4911
- 9,
4912
- 8,
4913
- 46,
4914
- 39,
4915
- 7,
4916
- 3,
4917
- 1,
4918
- 3,
4919
- 21,
4920
- 2,
4921
- 6,
4922
- 2,
4923
- 1,
4924
- 2,
4925
- 4,
4926
- 4,
4927
- 0,
4928
- 19,
4929
- 0,
4930
- 13,
4931
- 4,
4932
- 31,
4933
- 9,
4934
- 2,
4935
- 0,
4936
- 3,
4937
- 0,
4938
- 2,
4939
- 37,
4940
- 2,
4941
- 0,
4942
- 26,
4943
- 0,
4944
- 2,
4945
- 0,
4946
- 45,
4947
- 52,
4948
- 19,
4949
- 3,
4950
- 21,
4951
- 2,
4952
- 31,
4953
- 47,
4954
- 21,
4955
- 1,
4956
- 2,
4957
- 0,
4958
- 185,
4959
- 46,
4960
- 42,
4961
- 3,
4962
- 37,
4963
- 47,
4964
- 21,
4965
- 0,
4966
- 60,
4967
- 42,
4968
- 14,
4969
- 0,
4970
- 72,
4971
- 26,
4972
- 38,
4973
- 6,
4974
- 186,
4975
- 43,
4976
- 117,
4977
- 63,
4978
- 32,
4979
- 7,
4980
- 3,
4981
- 0,
4982
- 3,
4983
- 7,
4984
- 2,
4985
- 1,
4986
- 2,
4987
- 23,
4988
- 16,
4989
- 0,
4990
- 2,
4991
- 0,
4992
- 95,
4993
- 7,
4994
- 3,
4995
- 38,
4996
- 17,
4997
- 0,
4998
- 2,
4999
- 0,
5000
- 29,
5001
- 0,
5002
- 11,
5003
- 39,
5004
- 8,
5005
- 0,
5006
- 22,
5007
- 0,
5008
- 12,
5009
- 45,
5010
- 20,
5011
- 0,
5012
- 19,
5013
- 72,
5014
- 200,
5015
- 32,
5016
- 32,
5017
- 8,
5018
- 2,
5019
- 36,
5020
- 18,
5021
- 0,
5022
- 50,
5023
- 29,
5024
- 113,
5025
- 6,
5026
- 2,
5027
- 1,
5028
- 2,
5029
- 37,
5030
- 22,
5031
- 0,
5032
- 26,
5033
- 5,
5034
- 2,
5035
- 1,
5036
- 2,
5037
- 31,
5038
- 15,
5039
- 0,
5040
- 24,
5041
- 43,
5042
- 261,
5043
- 18,
5044
- 16,
5045
- 0,
5046
- 2,
5047
- 12,
5048
- 2,
5049
- 33,
5050
- 125,
5051
- 0,
5052
- 80,
5053
- 921,
5054
- 103,
5055
- 110,
5056
- 18,
5057
- 195,
5058
- 2637,
5059
- 96,
5060
- 16,
5061
- 1071,
5062
- 18,
5063
- 5,
5064
- 26,
5065
- 3994,
5066
- 6,
5067
- 582,
5068
- 6842,
5069
- 29,
5070
- 1763,
5071
- 568,
5072
- 8,
5073
- 30,
5074
- 18,
5075
- 78,
5076
- 18,
5077
- 29,
5078
- 19,
5079
- 47,
5080
- 17,
5081
- 3,
5082
- 32,
5083
- 20,
5084
- 6,
5085
- 18,
5086
- 433,
5087
- 44,
5088
- 212,
5089
- 63,
5090
- 33,
5091
- 24,
5092
- 3,
5093
- 24,
5094
- 45,
5095
- 74,
5096
- 6,
5097
- 0,
5098
- 67,
5099
- 12,
5100
- 65,
5101
- 1,
5102
- 2,
5103
- 0,
5104
- 15,
5105
- 4,
5106
- 10,
5107
- 7381,
5108
- 42,
5109
- 31,
5110
- 98,
5111
- 114,
5112
- 8702,
5113
- 3,
5114
- 2,
5115
- 6,
5116
- 2,
5117
- 1,
5118
- 2,
5119
- 290,
5120
- 16,
5121
- 0,
5122
- 30,
5123
- 2,
5124
- 3,
5125
- 0,
5126
- 15,
5127
- 3,
5128
- 9,
5129
- 395,
5130
- 2309,
5131
- 106,
5132
- 6,
5133
- 12,
5134
- 4,
5135
- 8,
5136
- 8,
5137
- 9,
5138
- 5991,
5139
- 84,
5140
- 2,
5141
- 70,
5142
- 2,
5143
- 1,
5144
- 3,
5145
- 0,
5146
- 3,
5147
- 1,
5148
- 3,
5149
- 3,
5150
- 2,
5151
- 11,
5152
- 2,
5153
- 0,
5154
- 2,
5155
- 6,
5156
- 2,
5157
- 64,
5158
- 2,
5159
- 3,
5160
- 3,
5161
- 7,
5162
- 2,
5163
- 6,
5164
- 2,
5165
- 27,
5166
- 2,
5167
- 3,
5168
- 2,
5169
- 4,
5170
- 2,
5171
- 0,
5172
- 4,
5173
- 6,
5174
- 2,
5175
- 339,
5176
- 3,
5177
- 24,
5178
- 2,
5179
- 24,
5180
- 2,
5181
- 30,
5182
- 2,
5183
- 24,
5184
- 2,
5185
- 30,
5186
- 2,
5187
- 24,
5188
- 2,
5189
- 30,
5190
- 2,
5191
- 24,
5192
- 2,
5193
- 30,
5194
- 2,
5195
- 24,
5196
- 2,
5197
- 7,
5198
- 1845,
5199
- 30,
5200
- 7,
5201
- 5,
5202
- 262,
5203
- 61,
5204
- 147,
5205
- 44,
5206
- 11,
5207
- 6,
5208
- 17,
5209
- 0,
5210
- 322,
5211
- 29,
5212
- 19,
5213
- 43,
5214
- 485,
5215
- 27,
5216
- 229,
5217
- 29,
5218
- 3,
5219
- 0,
5220
- 208,
5221
- 30,
5222
- 2,
5223
- 2,
5224
- 2,
5225
- 1,
5226
- 2,
5227
- 6,
5228
- 3,
5229
- 4,
5230
- 10,
5231
- 1,
5232
- 225,
5233
- 6,
5234
- 2,
5235
- 3,
5236
- 2,
5237
- 1,
5238
- 2,
5239
- 14,
5240
- 2,
5241
- 196,
5242
- 60,
5243
- 67,
5244
- 8,
5245
- 0,
5246
- 1205,
5247
- 3,
5248
- 2,
5249
- 26,
5250
- 2,
5251
- 1,
5252
- 2,
5253
- 0,
5254
- 3,
5255
- 0,
5256
- 2,
5257
- 9,
5258
- 2,
5259
- 3,
5260
- 2,
5261
- 0,
5262
- 2,
5263
- 0,
5264
- 7,
5265
- 0,
5266
- 5,
5267
- 0,
5268
- 2,
5269
- 0,
5270
- 2,
5271
- 0,
5272
- 2,
5273
- 2,
5274
- 2,
5275
- 1,
5276
- 2,
5277
- 0,
5278
- 3,
5279
- 0,
5280
- 2,
5281
- 0,
5282
- 2,
5283
- 0,
5284
- 2,
5285
- 0,
5286
- 2,
5287
- 0,
5288
- 2,
5289
- 1,
5290
- 2,
5291
- 0,
5292
- 3,
5293
- 3,
5294
- 2,
5295
- 6,
5296
- 2,
5297
- 3,
5298
- 2,
5299
- 3,
5300
- 2,
5301
- 0,
5302
- 2,
5303
- 9,
5304
- 2,
5305
- 16,
5306
- 6,
5307
- 2,
5308
- 2,
5309
- 4,
5310
- 2,
5311
- 16,
5312
- 4421,
5313
- 42719,
5314
- 33,
5315
- 4381,
5316
- 3,
5317
- 5773,
5318
- 3,
5319
- 7472,
5320
- 16,
5321
- 621,
5322
- 2467,
5323
- 541,
5324
- 1507,
5325
- 4938,
5326
- 6,
5327
- 8489
5328
- ];
5329
- const astralIdentifierCodes = [
5330
- 509,
5331
- 0,
5332
- 227,
5333
- 0,
5334
- 150,
5335
- 4,
5336
- 294,
5337
- 9,
5338
- 1368,
5339
- 2,
5340
- 2,
5341
- 1,
5342
- 6,
5343
- 3,
5344
- 41,
5345
- 2,
5346
- 5,
5347
- 0,
5348
- 166,
5349
- 1,
5350
- 574,
5351
- 3,
5352
- 9,
5353
- 9,
5354
- 7,
5355
- 9,
5356
- 32,
5357
- 4,
5358
- 318,
5359
- 1,
5360
- 78,
5361
- 5,
5362
- 71,
5363
- 10,
5364
- 50,
5365
- 3,
5366
- 123,
5367
- 2,
5368
- 54,
5369
- 14,
5370
- 32,
5371
- 10,
5372
- 3,
5373
- 1,
5374
- 11,
5375
- 3,
5376
- 46,
5377
- 10,
5378
- 8,
5379
- 0,
5380
- 46,
5381
- 9,
5382
- 7,
5383
- 2,
5384
- 37,
5385
- 13,
5386
- 2,
5387
- 9,
5388
- 6,
5389
- 1,
5390
- 45,
5391
- 0,
5392
- 13,
5393
- 2,
5394
- 49,
5395
- 13,
5396
- 9,
5397
- 3,
5398
- 2,
5399
- 11,
5400
- 83,
5401
- 11,
5402
- 7,
5403
- 0,
5404
- 3,
5405
- 0,
5406
- 158,
5407
- 11,
5408
- 6,
5409
- 9,
5410
- 7,
5411
- 3,
5412
- 56,
5413
- 1,
5414
- 2,
5415
- 6,
5416
- 3,
5417
- 1,
5418
- 3,
5419
- 2,
5420
- 10,
5421
- 0,
5422
- 11,
5423
- 1,
5424
- 3,
5425
- 6,
5426
- 4,
5427
- 4,
5428
- 68,
5429
- 8,
5430
- 2,
5431
- 0,
5432
- 3,
5433
- 0,
5434
- 2,
5435
- 3,
5436
- 2,
5437
- 4,
5438
- 2,
5439
- 0,
5440
- 15,
5441
- 1,
5442
- 83,
5443
- 17,
5444
- 10,
5445
- 9,
5446
- 5,
5447
- 0,
5448
- 82,
5449
- 19,
5450
- 13,
5451
- 9,
5452
- 214,
5453
- 6,
5454
- 3,
5455
- 8,
5456
- 28,
5457
- 1,
5458
- 83,
5459
- 16,
5460
- 16,
5461
- 9,
5462
- 82,
5463
- 12,
5464
- 9,
5465
- 9,
5466
- 7,
5467
- 19,
5468
- 58,
5469
- 14,
5470
- 5,
5471
- 9,
5472
- 243,
5473
- 14,
5474
- 166,
5475
- 9,
5476
- 71,
5477
- 5,
5478
- 2,
5479
- 1,
5480
- 3,
5481
- 3,
5482
- 2,
5483
- 0,
5484
- 2,
5485
- 1,
5486
- 13,
5487
- 9,
5488
- 120,
5489
- 6,
5490
- 3,
5491
- 6,
5492
- 4,
5493
- 0,
5494
- 29,
5495
- 9,
5496
- 41,
5497
- 6,
5498
- 2,
5499
- 3,
5500
- 9,
5501
- 0,
5502
- 10,
5503
- 10,
5504
- 47,
5505
- 15,
5506
- 199,
5507
- 7,
5508
- 137,
5509
- 9,
5510
- 54,
5511
- 7,
5512
- 2,
5513
- 7,
5514
- 17,
5515
- 9,
5516
- 57,
5517
- 21,
5518
- 2,
5519
- 13,
5520
- 123,
5521
- 5,
5522
- 4,
5523
- 0,
5524
- 2,
5525
- 1,
5526
- 2,
5527
- 6,
5528
- 2,
5529
- 0,
5530
- 9,
5531
- 9,
5532
- 49,
5533
- 4,
5534
- 2,
5535
- 1,
5536
- 2,
5537
- 4,
5538
- 9,
5539
- 9,
5540
- 55,
5541
- 9,
5542
- 266,
5543
- 3,
5544
- 10,
5545
- 1,
5546
- 2,
5547
- 0,
5548
- 49,
5549
- 6,
5550
- 4,
5551
- 4,
5552
- 14,
5553
- 10,
5554
- 5350,
5555
- 0,
5556
- 7,
5557
- 14,
5558
- 11465,
5559
- 27,
5560
- 2343,
5561
- 9,
5562
- 87,
5563
- 9,
5564
- 39,
5565
- 4,
5566
- 60,
5567
- 6,
5568
- 26,
5569
- 9,
5570
- 535,
5571
- 9,
5572
- 470,
5573
- 0,
5574
- 2,
5575
- 54,
5576
- 8,
5577
- 3,
5578
- 82,
5579
- 0,
5580
- 12,
5581
- 1,
5582
- 19628,
5583
- 1,
5584
- 4178,
5585
- 9,
5586
- 519,
5587
- 45,
5588
- 3,
5589
- 22,
5590
- 543,
5591
- 4,
5592
- 4,
5593
- 5,
5594
- 9,
5595
- 7,
5596
- 3,
5597
- 6,
5598
- 31,
5599
- 3,
5600
- 149,
5601
- 2,
5602
- 1418,
5603
- 49,
5604
- 513,
5605
- 54,
5606
- 5,
5607
- 49,
5608
- 9,
5609
- 0,
5610
- 15,
5611
- 0,
5612
- 23,
5613
- 4,
5614
- 2,
5615
- 14,
5616
- 1361,
5617
- 6,
5618
- 2,
5619
- 16,
5620
- 3,
5621
- 6,
5622
- 2,
5623
- 1,
5624
- 2,
5625
- 4,
5626
- 101,
5627
- 0,
5628
- 161,
5629
- 6,
5630
- 10,
5631
- 9,
5632
- 357,
5633
- 0,
5634
- 62,
5635
- 13,
5636
- 499,
5637
- 13,
5638
- 245,
5639
- 1,
5640
- 2,
5641
- 9,
5642
- 233,
5643
- 0,
5644
- 3,
5645
- 0,
5646
- 8,
5647
- 1,
5648
- 6,
5649
- 0,
5650
- 475,
5651
- 6,
5652
- 110,
5653
- 6,
5654
- 6,
5655
- 9,
5656
- 4759,
5657
- 9,
5658
- 787719,
5659
- 239
5660
- ];
5661
- function isInAstralSet(code, set) {
5662
- let pos = 65536;
5663
- for (let i = 0, length = set.length; i < length; i += 2) {
5664
- pos += set[i];
5665
- if (pos > code) return false;
5666
- pos += set[i + 1];
5667
- if (pos >= code) return true;
5668
- }
5669
- return false;
5670
- }
5671
- function isIdentifierStart(code) {
5672
- if (code < 65) return code === 36;
5673
- if (code <= 90) return true;
5674
- if (code < 97) return code === 95;
5675
- if (code <= 122) return true;
5676
- if (code <= 65535) return code >= 170 && nonASCIIidentifierStart.test(String.fromCharCode(code));
5677
- return isInAstralSet(code, astralIdentifierStartCodes);
5678
- }
5679
- function isIdentifierChar(code) {
5680
- if (code < 48) return code === 36;
5681
- if (code < 58) return true;
5682
- if (code < 65) return false;
5683
- if (code <= 90) return true;
5684
- if (code < 97) return code === 95;
5685
- if (code <= 122) return true;
5686
- if (code <= 65535) return code >= 170 && nonASCIIidentifier.test(String.fromCharCode(code));
5687
- return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes);
5688
- }
5689
- function isIdentifierName(name) {
5690
- let isFirst = true;
5691
- for (let i = 0; i < name.length; i++) {
5692
- let cp = name.charCodeAt(i);
5693
- if ((cp & 64512) === 55296 && i + 1 < name.length) {
5694
- const trail = name.charCodeAt(++i);
5695
- if ((trail & 64512) === 56320) cp = 65536 + ((cp & 1023) << 10) + (trail & 1023);
5696
- }
5697
- if (isFirst) {
5698
- isFirst = false;
5699
- if (!isIdentifierStart(cp)) return false;
5700
- } else if (!isIdentifierChar(cp)) return false;
5701
- }
5702
- return !isFirst;
5703
- }
5704
- }));
5705
- //#endregion
5706
- //#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/keyword.js
5707
- var require_keyword = /* @__PURE__ */ __commonJSMin(((exports) => {
5708
- Object.defineProperty(exports, "__esModule", { value: true });
5709
- exports.isKeyword = isKeyword;
5710
- exports.isReservedWord = isReservedWord;
5711
- exports.isStrictBindOnlyReservedWord = isStrictBindOnlyReservedWord;
5712
- exports.isStrictBindReservedWord = isStrictBindReservedWord;
5713
- exports.isStrictReservedWord = isStrictReservedWord;
5714
- const reservedWords = {
5715
- keyword: [
5716
- "break",
5717
- "case",
5718
- "catch",
5719
- "continue",
5720
- "debugger",
5721
- "default",
5722
- "do",
5723
- "else",
5724
- "finally",
5725
- "for",
5726
- "function",
5727
- "if",
5728
- "return",
5729
- "switch",
5730
- "throw",
5731
- "try",
5732
- "var",
5733
- "const",
5734
- "while",
5735
- "with",
5736
- "new",
5737
- "this",
5738
- "super",
5739
- "class",
5740
- "extends",
5741
- "export",
5742
- "import",
5743
- "null",
5744
- "true",
5745
- "false",
5746
- "in",
5747
- "instanceof",
5748
- "typeof",
5749
- "void",
5750
- "delete"
5751
- ],
5752
- strict: [
5753
- "implements",
5754
- "interface",
5755
- "let",
5756
- "package",
5757
- "private",
5758
- "protected",
5759
- "public",
5760
- "static",
5761
- "yield"
5762
- ],
5763
- strictBind: ["eval", "arguments"]
5764
- };
5765
- const keywords = new Set(reservedWords.keyword);
5766
- const reservedWordsStrictSet = new Set(reservedWords.strict);
5767
- const reservedWordsStrictBindSet = new Set(reservedWords.strictBind);
5768
- function isReservedWord(word, inModule) {
5769
- return inModule && word === "await" || word === "enum";
5770
- }
5771
- function isStrictReservedWord(word, inModule) {
5772
- return isReservedWord(word, inModule) || reservedWordsStrictSet.has(word);
5773
- }
5774
- function isStrictBindOnlyReservedWord(word) {
5775
- return reservedWordsStrictBindSet.has(word);
5776
- }
5777
- function isStrictBindReservedWord(word, inModule) {
5778
- return isStrictReservedWord(word, inModule) || isStrictBindOnlyReservedWord(word);
5779
- }
5780
- function isKeyword(word) {
5781
- return keywords.has(word);
5782
- }
5783
- }));
5784
- //#endregion
5785
- //#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/index.js
5786
- var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
5787
- Object.defineProperty(exports, "__esModule", { value: true });
5788
- Object.defineProperty(exports, "isIdentifierChar", {
5789
- enumerable: true,
5790
- get: function() {
5791
- return _identifier.isIdentifierChar;
5792
- }
5793
- });
5794
- Object.defineProperty(exports, "isIdentifierName", {
5795
- enumerable: true,
5796
- get: function() {
5797
- return _identifier.isIdentifierName;
5798
- }
5799
- });
5800
- Object.defineProperty(exports, "isIdentifierStart", {
5801
- enumerable: true,
5802
- get: function() {
5803
- return _identifier.isIdentifierStart;
5804
- }
5805
- });
5806
- Object.defineProperty(exports, "isKeyword", {
5807
- enumerable: true,
5808
- get: function() {
5809
- return _keyword.isKeyword;
5810
- }
5811
- });
5812
- Object.defineProperty(exports, "isReservedWord", {
5813
- enumerable: true,
5814
- get: function() {
5815
- return _keyword.isReservedWord;
5816
- }
5817
- });
5818
- Object.defineProperty(exports, "isStrictBindOnlyReservedWord", {
5819
- enumerable: true,
5820
- get: function() {
5821
- return _keyword.isStrictBindOnlyReservedWord;
5822
- }
5823
- });
5824
- Object.defineProperty(exports, "isStrictBindReservedWord", {
5825
- enumerable: true,
5826
- get: function() {
5827
- return _keyword.isStrictBindReservedWord;
5828
- }
5829
- });
5830
- Object.defineProperty(exports, "isStrictReservedWord", {
5831
- enumerable: true,
5832
- get: function() {
5833
- return _keyword.isStrictReservedWord;
5834
- }
5835
- });
5836
- var _identifier = require_identifier();
5837
- var _keyword = require_keyword();
5838
- }));
5839
- //#endregion
5840
- //#region ../../node_modules/.pnpm/@babel+code-frame@7.29.7/node_modules/@babel/code-frame/lib/index.js
5841
- var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
5842
- Object.defineProperty(exports, "__esModule", { value: true });
5843
- var picocolors = require_picocolors();
5844
- var jsTokens = require_js_tokens();
5845
- var helperValidatorIdentifier = require_lib$1();
5846
- function isColorSupported() {
5847
- return typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? false : picocolors.isColorSupported;
5848
- }
5849
- const compose = (f, g) => (v) => f(g(v));
5850
- function buildDefs(colors) {
5851
- return {
5852
- keyword: colors.cyan,
5853
- capitalized: colors.yellow,
5854
- jsxIdentifier: colors.yellow,
5855
- punctuator: colors.yellow,
5856
- number: colors.magenta,
5857
- string: colors.green,
5858
- regex: colors.magenta,
5859
- comment: colors.gray,
5860
- invalid: compose(compose(colors.white, colors.bgRed), colors.bold),
5861
- gutter: colors.gray,
5862
- marker: compose(colors.red, colors.bold),
5863
- message: compose(colors.red, colors.bold),
5864
- reset: colors.reset
5865
- };
5866
- }
5867
- const defsOn = buildDefs(picocolors.createColors(true));
5868
- const defsOff = buildDefs(picocolors.createColors(false));
5869
- function getDefs(enabled) {
5870
- return enabled ? defsOn : defsOff;
5871
- }
5872
- const sometimesKeywords = /* @__PURE__ */ new Set([
5873
- "as",
5874
- "async",
5875
- "from",
5876
- "get",
5877
- "of",
5878
- "set"
5879
- ]);
5880
- const NEWLINE$1 = /\r\n|[\n\r\u2028\u2029]/;
5881
- const BRACKET = /^[()[\]{}]$/;
5882
- let tokenize;
5883
- const JSX_TAG = /^[a-z][\w-]*$/i;
5884
- const getTokenType = function(token, offset, text) {
5885
- if (token.type === "name") {
5886
- const tokenValue = token.value;
5887
- if (helperValidatorIdentifier.isKeyword(tokenValue) || helperValidatorIdentifier.isStrictReservedWord(tokenValue, true) || sometimesKeywords.has(tokenValue)) return "keyword";
5888
- if (JSX_TAG.test(tokenValue) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) === "</")) return "jsxIdentifier";
5889
- const firstChar = String.fromCodePoint(tokenValue.codePointAt(0));
5890
- if (firstChar !== firstChar.toLowerCase()) return "capitalized";
5891
- }
5892
- if (token.type === "punctuator" && BRACKET.test(token.value)) return "bracket";
5893
- if (token.type === "invalid" && (token.value === "@" || token.value === "#")) return "punctuator";
5894
- return token.type;
5895
- };
5896
- tokenize = function* (text) {
5897
- let match;
5898
- while (match = jsTokens.default.exec(text)) {
5899
- const token = jsTokens.matchToToken(match);
5900
- yield {
5901
- type: getTokenType(token, match.index, text),
5902
- value: token.value
5903
- };
5904
- }
5905
- };
5906
- function highlight(text) {
5907
- if (text === "") return "";
5908
- const defs = getDefs(true);
5909
- let highlighted = "";
5910
- for (const { type, value } of tokenize(text)) if (type in defs) highlighted += value.split(NEWLINE$1).map((str) => defs[type](str)).join("\n");
5911
- else highlighted += value;
5912
- return highlighted;
5913
- }
5914
- let deprecationWarningShown = false;
5915
- const NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
5916
- function getMarkerLines(loc, source, opts, startLineBaseZero) {
5917
- const startLoc = Object.assign({
5918
- column: 0,
5919
- line: -1
5920
- }, loc.start);
5921
- const endLoc = Object.assign({}, startLoc, loc.end);
5922
- const { linesAbove = 2, linesBelow = 3 } = opts || {};
5923
- const startLine = startLoc.line - startLineBaseZero;
5924
- const startColumn = startLoc.column;
5925
- const endLine = endLoc.line - startLineBaseZero;
5926
- const endColumn = endLoc.column;
5927
- let start = Math.max(startLine - (linesAbove + 1), 0);
5928
- let end = Math.min(source.length, endLine + linesBelow);
5929
- if (startLine === -1) start = 0;
5930
- if (endLine === -1) end = source.length;
5931
- const lineDiff = endLine - startLine;
5932
- const markerLines = {};
5933
- if (lineDiff) for (let i = 0; i <= lineDiff; i++) {
5934
- const lineNumber = i + startLine;
5935
- if (!startColumn) markerLines[lineNumber] = true;
5936
- else if (i === 0) markerLines[lineNumber] = [startColumn, source[lineNumber - 1].length - startColumn + 1];
5937
- else if (i === lineDiff) markerLines[lineNumber] = [0, endColumn];
5938
- else markerLines[lineNumber] = [0, source[lineNumber - i].length];
5939
- }
5940
- else if (startColumn === endColumn) if (startColumn) markerLines[startLine] = [startColumn, 0];
5941
- else markerLines[startLine] = true;
5942
- else markerLines[startLine] = [startColumn, endColumn - startColumn];
5943
- return {
5944
- start,
5945
- end,
5946
- markerLines
5947
- };
5948
- }
5949
- function codeFrameColumns(rawLines, loc, opts = {}) {
5950
- const shouldHighlight = opts.forceColor || isColorSupported() && opts.highlightCode;
5951
- const startLineBaseZero = (opts.startLine || 1) - 1;
5952
- const defs = getDefs(shouldHighlight);
5953
- const { start, end, markerLines } = getMarkerLines(loc, rawLines.split(NEWLINE), opts, startLineBaseZero);
5954
- const hasColumns = loc.start && typeof loc.start.column === "number";
5955
- const numberMaxWidth = String(end + startLineBaseZero).length;
5956
- let frame = (shouldHighlight ? highlight(rawLines) : rawLines).split(NEWLINE, end).slice(start, end).map((line, index) => {
5957
- const number = start + 1 + index;
5958
- const gutter = ` ${` ${number + startLineBaseZero}`.slice(-numberMaxWidth)} |`;
5959
- const hasMarker = markerLines[number];
5960
- const lastMarkerLine = !markerLines[number + 1];
5961
- if (hasMarker) {
5962
- let markerLine = "";
5963
- if (Array.isArray(hasMarker)) {
5964
- const markerSpacing = line.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\t]/g, " ");
5965
- const numberOfMarkers = hasMarker[1] || 1;
5966
- markerLine = [
5967
- "\n ",
5968
- defs.gutter(gutter.replace(/\d/g, " ")),
5969
- " ",
5970
- markerSpacing,
5971
- defs.marker("^").repeat(numberOfMarkers)
5972
- ].join("");
5973
- if (lastMarkerLine && opts.message) markerLine += " " + defs.message(opts.message);
5974
- }
5975
- return [
5976
- defs.marker(">"),
5977
- defs.gutter(gutter),
5978
- line.length > 0 ? ` ${line}` : "",
5979
- markerLine
5980
- ].join("");
5981
- } else return ` ${defs.gutter(gutter)}${line.length > 0 ? ` ${line}` : ""}`;
5982
- }).join("\n");
5983
- if (opts.message && !hasColumns) frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}\n${frame}`;
5984
- if (shouldHighlight) return defs.reset(frame);
5985
- else return frame;
5986
- }
5987
- function index(rawLines, lineNumber, colNumber, opts = {}) {
5988
- if (!deprecationWarningShown) {
5989
- deprecationWarningShown = true;
5990
- const message = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";
5991
- if (process.emitWarning) process.emitWarning(message, "DeprecationWarning");
5992
- else {
5993
- const deprecationError = /* @__PURE__ */ new Error(message);
5994
- deprecationError.name = "DeprecationWarning";
5995
- console.warn(/* @__PURE__ */ new Error(message));
5996
- }
5997
- }
5998
- colNumber = Math.max(colNumber, 0);
5999
- return codeFrameColumns(rawLines, { start: {
6000
- column: colNumber,
6001
- line: lineNumber
6002
- } }, opts);
6003
- }
6004
- exports.codeFrameColumns = codeFrameColumns;
6005
- exports.default = index;
6006
- exports.highlight = highlight;
6007
- }));
6008
- //#endregion
6009
- //#region ../../node_modules/.pnpm/parse-json@5.2.0/node_modules/parse-json/index.js
6010
- var require_parse_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6011
- const errorEx = require_error_ex();
6012
- const fallback = require_json_parse_even_better_errors();
6013
- const { default: LinesAndColumns } = require_build();
6014
- const { codeFrameColumns } = require_lib();
6015
- const JSONError = errorEx("JSONError", {
6016
- fileName: errorEx.append("in %s"),
6017
- codeFrame: errorEx.append("\n\n%s\n")
6018
- });
6019
- const parseJson = (string, reviver, filename) => {
6020
- if (typeof reviver === "string") {
6021
- filename = reviver;
6022
- reviver = null;
6023
- }
6024
- try {
6025
- try {
6026
- return JSON.parse(string, reviver);
6027
- } catch (error) {
6028
- fallback(string, reviver);
6029
- throw error;
6030
- }
6031
- } catch (error) {
6032
- error.message = error.message.replace(/\n/g, "");
6033
- const indexMatch = error.message.match(/in JSON at position (\d+) while parsing/);
6034
- const jsonError = new JSONError(error);
6035
- if (filename) jsonError.fileName = filename;
6036
- if (indexMatch && indexMatch.length > 0) {
6037
- const lines = new LinesAndColumns(string);
6038
- const index = Number(indexMatch[1]);
6039
- const location = lines.locationForIndex(index);
6040
- jsonError.codeFrame = codeFrameColumns(string, { start: {
6041
- line: location.line + 1,
6042
- column: location.column + 1
6043
- } }, { highlightCode: true });
6044
- }
6045
- throw jsonError;
6046
- }
6047
- };
6048
- parseJson.JSONError = JSONError;
6049
- module.exports = parseJson;
6050
- }));
6051
- //#endregion
6052
4364
  //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/common.js
6053
4365
  var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6054
4366
  function isNothing(subject) {
@@ -8396,22 +6708,15 @@ var require_js_yaml = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8396
6708
  module.exports.safeDump = renamed("safeDump", "dump");
8397
6709
  }));
8398
6710
  //#endregion
8399
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/loaders.js
6711
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/loaders.js
8400
6712
  var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
8401
- var __importDefault = exports && exports.__importDefault || function(mod) {
8402
- return mod && mod.__esModule ? mod : { "default": mod };
8403
- };
8404
6713
  Object.defineProperty(exports, "__esModule", { value: true });
8405
- exports.loadTs = exports.loadTsSync = exports.loadYaml = exports.loadJson = exports.loadJs = exports.loadJsSync = void 0;
8406
- const fs_1$2 = __require("fs");
6714
+ exports.loadYaml = exports.loadJson = exports.loadJs = exports.loadJsSync = void 0;
8407
6715
  const promises_1$1 = __require("fs/promises");
8408
- const path_1$3 = __importDefault(__require("path"));
8409
6716
  const url_1 = __require("url");
8410
- const crypto_1 = __require("crypto");
8411
- let importFresh;
8412
6717
  exports.loadJsSync = function loadJsSync(filepath) {
8413
- if (importFresh === void 0) importFresh = require_import_fresh();
8414
- return importFresh(filepath);
6718
+ delete __require.cache[__require.resolve(filepath)];
6719
+ return __require(filepath);
8415
6720
  };
8416
6721
  exports.loadJs = async function loadJs(filepath) {
8417
6722
  try {
@@ -8427,11 +6732,9 @@ var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
8427
6732
  }
8428
6733
  }
8429
6734
  };
8430
- let parseJson;
8431
6735
  exports.loadJson = function loadJson(filepath, content) {
8432
- if (parseJson === void 0) parseJson = require_parse_json();
8433
6736
  try {
8434
- return parseJson(content);
6737
+ return JSON.parse(content);
8435
6738
  } catch (error) {
8436
6739
  error.message = `JSON Error in ${filepath}:\n${error.message}`;
8437
6740
  throw error;
@@ -8447,73 +6750,12 @@ var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
8447
6750
  throw error;
8448
6751
  }
8449
6752
  };
8450
- let typescript;
8451
- exports.loadTsSync = function loadTsSync(filepath, content) {
8452
- /* istanbul ignore next -- @preserve */
8453
- if (typescript === void 0) typescript = __require("typescript");
8454
- const compiledFilepath = `${filepath}.${(0, crypto_1.randomUUID)()}.cjs`;
8455
- try {
8456
- const config = resolveTsConfig(path_1$3.default.dirname(filepath)) ?? {};
8457
- config.compilerOptions = {
8458
- ...config.compilerOptions,
8459
- module: typescript.ModuleKind.NodeNext,
8460
- moduleResolution: typescript.ModuleResolutionKind.NodeNext,
8461
- target: typescript.ScriptTarget.ES2022,
8462
- noEmit: false
8463
- };
8464
- content = typescript.transpileModule(content, config).outputText;
8465
- (0, fs_1$2.writeFileSync)(compiledFilepath, content);
8466
- return (0, exports.loadJsSync)(compiledFilepath, content).default;
8467
- } catch (error) {
8468
- error.message = `TypeScript Error in ${filepath}:\n${error.message}`;
8469
- throw error;
8470
- } finally {
8471
- if ((0, fs_1$2.existsSync)(compiledFilepath)) (0, fs_1$2.rmSync)(compiledFilepath);
8472
- }
8473
- };
8474
- exports.loadTs = async function loadTs(filepath, content) {
8475
- if (typescript === void 0) typescript = (await import("typescript")).default;
8476
- const compiledFilepath = `${filepath}.${(0, crypto_1.randomUUID)()}.mjs`;
8477
- let transpiledContent;
8478
- try {
8479
- try {
8480
- const config = resolveTsConfig(path_1$3.default.dirname(filepath)) ?? {};
8481
- config.compilerOptions = {
8482
- ...config.compilerOptions,
8483
- module: typescript.ModuleKind.ES2022,
8484
- moduleResolution: typescript.ModuleResolutionKind.Bundler,
8485
- target: typescript.ScriptTarget.ES2022,
8486
- noEmit: false
8487
- };
8488
- transpiledContent = typescript.transpileModule(content, config).outputText;
8489
- await (0, promises_1$1.writeFile)(compiledFilepath, transpiledContent);
8490
- } catch (error) {
8491
- error.message = `TypeScript Error in ${filepath}:\n${error.message}`;
8492
- throw error;
8493
- }
8494
- return await (0, exports.loadJs)(compiledFilepath, transpiledContent);
8495
- } finally {
8496
- if ((0, fs_1$2.existsSync)(compiledFilepath)) await (0, promises_1$1.rm)(compiledFilepath);
8497
- }
8498
- };
8499
- function resolveTsConfig(directory) {
8500
- const filePath = typescript.findConfigFile(directory, (fileName) => {
8501
- return typescript.sys.fileExists(fileName);
8502
- });
8503
- if (filePath !== void 0) {
8504
- const { config, error } = typescript.readConfigFile(filePath, (path) => typescript.sys.readFile(path));
8505
- if (error) throw new Error(`Error in ${filePath}: ${error.messageText.toString()}`);
8506
- return config;
8507
- }
8508
- }
8509
6753
  }));
8510
6754
  //#endregion
8511
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/defaults.js
6755
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/defaults.js
8512
6756
  var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
8513
6757
  Object.defineProperty(exports, "__esModule", { value: true });
8514
- exports.defaultLoadersSync = exports.defaultLoaders = exports.metaSearchPlaces = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = void 0;
8515
- exports.getDefaultSearchPlaces = getDefaultSearchPlaces;
8516
- exports.getDefaultSearchPlacesSync = getDefaultSearchPlacesSync;
6758
+ exports.defaultLoadersSync = exports.defaultLoaders = exports.metaSearchPlaces = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = void 0;
8517
6759
  const loaders_1 = require_loaders();
8518
6760
  function getDefaultSearchPlaces(moduleName) {
8519
6761
  return [
@@ -8540,6 +6782,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
8540
6782
  `${moduleName}.config.mjs`
8541
6783
  ];
8542
6784
  }
6785
+ exports.getDefaultSearchPlaces = getDefaultSearchPlaces;
8543
6786
  function getDefaultSearchPlacesSync(moduleName) {
8544
6787
  return [
8545
6788
  "package.json",
@@ -8562,6 +6805,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
8562
6805
  `${moduleName}.config.cjs`
8563
6806
  ];
8564
6807
  }
6808
+ exports.getDefaultSearchPlacesSync = getDefaultSearchPlacesSync;
8565
6809
  exports.globalConfigSearchPlaces = [
8566
6810
  "config",
8567
6811
  "config.json",
@@ -8596,7 +6840,9 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
8596
6840
  ".mjs": loaders_1.loadJs,
8597
6841
  ".cjs": loaders_1.loadJs,
8598
6842
  ".js": loaders_1.loadJs,
8599
- ".ts": loaders_1.loadTs,
6843
+ ".ts": loaders_1.loadJs,
6844
+ ".cts": loaders_1.loadJs,
6845
+ ".mts": loaders_1.loadJs,
8600
6846
  ".json": loaders_1.loadJson,
8601
6847
  ".yaml": loaders_1.loadYaml,
8602
6848
  ".yml": loaders_1.loadYaml,
@@ -8605,7 +6851,8 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
8605
6851
  exports.defaultLoadersSync = Object.freeze({
8606
6852
  ".cjs": loaders_1.loadJsSync,
8607
6853
  ".js": loaders_1.loadJsSync,
8608
- ".ts": loaders_1.loadTsSync,
6854
+ ".cts": loaders_1.loadJsSync,
6855
+ ".ts": loaders_1.loadJsSync,
8609
6856
  ".json": loaders_1.loadJson,
8610
6857
  ".yaml": loaders_1.loadYaml,
8611
6858
  ".yml": loaders_1.loadYaml,
@@ -8663,7 +6910,7 @@ var require_env_paths = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8663
6910
  module.exports.default = envPaths;
8664
6911
  }));
8665
6912
  //#endregion
8666
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/util.js
6913
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/util.js
8667
6914
  var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
8668
6915
  var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
8669
6916
  if (k2 === void 0) k2 = k;
@@ -8687,31 +6934,17 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
8687
6934
  }) : function(o, v) {
8688
6935
  o["default"] = v;
8689
6936
  });
8690
- var __importStar = exports && exports.__importStar || (function() {
8691
- var ownKeys = function(o) {
8692
- ownKeys = Object.getOwnPropertyNames || function(o) {
8693
- var ar = [];
8694
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
8695
- return ar;
8696
- };
8697
- return ownKeys(o);
8698
- };
8699
- return function(mod) {
8700
- if (mod && mod.__esModule) return mod;
8701
- var result = {};
8702
- if (mod != null) {
8703
- for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
8704
- }
8705
- __setModuleDefault(result, mod);
8706
- return result;
8707
- };
8708
- })();
6937
+ var __importStar = exports && exports.__importStar || function(mod) {
6938
+ if (mod && mod.__esModule) return mod;
6939
+ var result = {};
6940
+ if (mod != null) {
6941
+ for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
6942
+ }
6943
+ __setModuleDefault(result, mod);
6944
+ return result;
6945
+ };
8709
6946
  Object.defineProperty(exports, "__esModule", { value: true });
8710
- exports.emplace = emplace;
8711
- exports.getPropertyByPath = getPropertyByPath;
8712
- exports.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
8713
- exports.isDirectory = isDirectory;
8714
- exports.isDirectorySync = isDirectorySync;
6947
+ exports.isDirectorySync = exports.isDirectory = exports.removeUndefinedValuesFromObject = exports.decodeFileContent = exports.getPropertyByPath = exports.emplace = void 0;
8715
6948
  const fs_1$1 = __importStar(__require("fs"));
8716
6949
  /**
8717
6950
  * @internal
@@ -8723,6 +6956,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
8723
6956
  map.set(key, result);
8724
6957
  return result;
8725
6958
  }
6959
+ exports.emplace = emplace;
8726
6960
  /**
8727
6961
  * @internal
8728
6962
  */
@@ -8733,10 +6967,19 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
8733
6967
  return previous[key];
8734
6968
  }, source);
8735
6969
  }
6970
+ exports.getPropertyByPath = getPropertyByPath;
6971
+ /** @internal */
6972
+ function decodeFileContent(buffer) {
6973
+ if (buffer[0] === 255 && buffer[1] === 254) return new TextDecoder("utf-16le").decode(buffer);
6974
+ if (buffer[0] === 254 && buffer[1] === 255) return new TextDecoder("utf-16be").decode(buffer);
6975
+ return buffer.toString("utf-8");
6976
+ }
6977
+ exports.decodeFileContent = decodeFileContent;
8736
6978
  /** @internal */
8737
6979
  function removeUndefinedValuesFromObject(options) {
8738
6980
  return Object.fromEntries(Object.entries(options).filter(([, value]) => value !== void 0));
8739
6981
  }
6982
+ exports.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
8740
6983
  /** @internal */
8741
6984
  /* istanbul ignore next -- @preserve */
8742
6985
  async function isDirectory(path) {
@@ -8747,6 +6990,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
8747
6990
  throw e;
8748
6991
  }
8749
6992
  }
6993
+ exports.isDirectory = isDirectory;
8750
6994
  /** @internal */
8751
6995
  /* istanbul ignore next -- @preserve */
8752
6996
  function isDirectorySync(path) {
@@ -8757,16 +7001,16 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
8757
7001
  throw e;
8758
7002
  }
8759
7003
  }
7004
+ exports.isDirectorySync = isDirectorySync;
8760
7005
  }));
8761
7006
  //#endregion
8762
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/ExplorerBase.js
7007
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/ExplorerBase.js
8763
7008
  var require_ExplorerBase = /* @__PURE__ */ __commonJSMin(((exports) => {
8764
7009
  var __importDefault = exports && exports.__importDefault || function(mod) {
8765
7010
  return mod && mod.__esModule ? mod : { "default": mod };
8766
7011
  };
8767
7012
  Object.defineProperty(exports, "__esModule", { value: true });
8768
- exports.ExplorerBase = void 0;
8769
- exports.getExtensionDescription = getExtensionDescription;
7013
+ exports.getExtensionDescription = exports.ExplorerBase = void 0;
8770
7014
  const env_paths_1 = __importDefault(require_env_paths());
8771
7015
  const os_1 = __importDefault(__require("os"));
8772
7016
  const path_1$2 = __importDefault(__require("path"));
@@ -8878,13 +7122,13 @@ ${[...importStack, fullPath].map((path, i) => `${i + 1}. ${path}`).join("\n")} (
8878
7122
  /* istanbul ignore next -- @preserve */
8879
7123
  return extension ? `extension "${extension}"` : "files without extensions";
8880
7124
  }
7125
+ exports.getExtensionDescription = getExtensionDescription;
8881
7126
  }));
8882
7127
  //#endregion
8883
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/merge.js
7128
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/merge.js
8884
7129
  var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
8885
7130
  Object.defineProperty(exports, "__esModule", { value: true });
8886
- exports.hasOwn = void 0;
8887
- exports.mergeAll = mergeAll;
7131
+ exports.mergeAll = exports.hasOwn = void 0;
8888
7132
  exports.hasOwn = Function.prototype.call.bind(Object.prototype.hasOwnProperty);
8889
7133
  const objToString = Function.prototype.call.bind(Object.prototype.toString);
8890
7134
  function isPlainObject(obj) {
@@ -8916,9 +7160,10 @@ var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
8916
7160
  function mergeAll(objects, options) {
8917
7161
  return objects.reduce((target, source) => merge(target, source, options), {});
8918
7162
  }
7163
+ exports.mergeAll = mergeAll;
8919
7164
  }));
8920
7165
  //#endregion
8921
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/Explorer.js
7166
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/Explorer.js
8922
7167
  var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
8923
7168
  var __importDefault = exports && exports.__importDefault || function(mod) {
8924
7169
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -8977,7 +7222,7 @@ var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
8977
7222
  return await search();
8978
7223
  }
8979
7224
  async #readConfiguration(filepath, importStack = []) {
8980
- const contents = await promises_1.default.readFile(filepath, { encoding: "utf-8" });
7225
+ const contents = (0, util_js_1.decodeFileContent)(await promises_1.default.readFile(filepath));
8981
7226
  return this.toCosmiconfigResult(filepath, await this.#loadConfigFileWithImports(filepath, contents, importStack));
8982
7227
  }
8983
7228
  async #loadConfigFileWithImports(filepath, contents, importStack) {
@@ -9053,7 +7298,7 @@ var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
9053
7298
  exports.Explorer = Explorer;
9054
7299
  }));
9055
7300
  //#endregion
9056
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/ExplorerSync.js
7301
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/ExplorerSync.js
9057
7302
  var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
9058
7303
  var __importDefault = exports && exports.__importDefault || function(mod) {
9059
7304
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -9112,7 +7357,7 @@ var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
9112
7357
  return search();
9113
7358
  }
9114
7359
  #readConfiguration(filepath, importStack = []) {
9115
- const contents = fs_1.default.readFileSync(filepath, "utf8");
7360
+ const contents = (0, util_js_1.decodeFileContent)(fs_1.default.readFileSync(filepath));
9116
7361
  return this.toCosmiconfigResult(filepath, this.#loadConfigFileWithImports(filepath, contents, importStack));
9117
7362
  }
9118
7363
  #loadConfigFileWithImports(filepath, contents, importStack) {
@@ -9202,11 +7447,10 @@ var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
9202
7447
  exports.ExplorerSync = ExplorerSync;
9203
7448
  }));
9204
7449
  //#endregion
9205
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/index.js
7450
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/index.js
9206
7451
  var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
9207
7452
  Object.defineProperty(exports, "__esModule", { value: true });
9208
- exports.defaultLoadersSync = exports.defaultLoaders = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = void 0;
9209
- exports.cosmiconfig = cosmiconfig;
7453
+ exports.defaultLoadersSync = exports.defaultLoaders = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = exports.cosmiconfigSync = exports.cosmiconfig = void 0;
9210
7454
  const defaults_1 = require_defaults();
9211
7455
  Object.defineProperty(exports, "defaultLoaders", {
9212
7456
  enumerable: true,
@@ -9280,7 +7524,8 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
9280
7524
  function getResolvedSearchPlaces(moduleName, toolDefinedSearchPlaces, userConfiguredOptions) {
9281
7525
  const userConfiguredSearchPlaces = userConfiguredOptions.searchPlaces?.map((path) => path.replace("{name}", moduleName));
9282
7526
  if (userConfiguredOptions.mergeSearchPlaces) return [...userConfiguredSearchPlaces ?? [], ...toolDefinedSearchPlaces];
9283
- return userConfiguredSearchPlaces ?? toolDefinedSearchPlaces;
7527
+ return userConfiguredSearchPlaces ??
7528
+ /* istanbul ignore next */ toolDefinedSearchPlaces;
9284
7529
  }
9285
7530
  function mergeOptionsBase(moduleName, defaults, options) {
9286
7531
  const userDefinedConfig = getUserDefinedOptionsFromMetaConfig();
@@ -9324,6 +7569,21 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
9324
7569
  searchStrategy: options.stopDir ? "global" : "none"
9325
7570
  }, options);
9326
7571
  }
7572
+ function mergeOptionsSync(moduleName, options) {
7573
+ validateOptions(options);
7574
+ return mergeOptionsBase(moduleName, {
7575
+ moduleName,
7576
+ searchPlaces: (0, defaults_1.getDefaultSearchPlacesSync)(moduleName),
7577
+ ignoreEmptySearchPlaces: true,
7578
+ cache: true,
7579
+ transform: identity,
7580
+ loaders: defaults_1.defaultLoadersSync,
7581
+ metaConfigFilePath: null,
7582
+ mergeImportArrays: true,
7583
+ mergeSearchPlaces: true,
7584
+ searchStrategy: options.stopDir ? "global" : "none"
7585
+ }, options);
7586
+ }
9327
7587
  function cosmiconfig(moduleName, options = {}) {
9328
7588
  const normalizedOptions = mergeOptions(moduleName, options);
9329
7589
  const explorer = new Explorer_js_1.Explorer(normalizedOptions);
@@ -9335,6 +7595,19 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
9335
7595
  clearCaches: explorer.clearCaches.bind(explorer)
9336
7596
  };
9337
7597
  }
7598
+ exports.cosmiconfig = cosmiconfig;
7599
+ function cosmiconfigSync(moduleName, options = {}) {
7600
+ const normalizedOptions = mergeOptionsSync(moduleName, options);
7601
+ const explorerSync = new ExplorerSync_js_1.ExplorerSync(normalizedOptions);
7602
+ return {
7603
+ search: explorerSync.search.bind(explorerSync),
7604
+ load: explorerSync.load.bind(explorerSync),
7605
+ clearLoadCache: explorerSync.clearLoadCache.bind(explorerSync),
7606
+ clearSearchCache: explorerSync.clearSearchCache.bind(explorerSync),
7607
+ clearCaches: explorerSync.clearCaches.bind(explorerSync)
7608
+ };
7609
+ }
7610
+ exports.cosmiconfigSync = cosmiconfigSync;
9338
7611
  }));
9339
7612
  //#endregion
9340
7613
  //#region src/lib/ruleCommandRegistry.ts
@@ -9642,7 +7915,7 @@ const range = (a, b, str) => {
9642
7915
  return result;
9643
7916
  };
9644
7917
  //#endregion
9645
- //#region ../../node_modules/.pnpm/brace-expansion@5.0.7/node_modules/brace-expansion/dist/esm/index.js
7918
+ //#region ../../node_modules/.pnpm/brace-expansion@5.0.9/node_modules/brace-expansion/dist/esm/index.js
9646
7919
  const escSlash = "\0SLASH" + Math.random() + "\0";
9647
7920
  const escOpen = "\0OPEN" + Math.random() + "\0";
9648
7921
  const escClose = "\0CLOSE" + Math.random() + "\0";
@@ -9659,6 +7932,7 @@ const closePattern = /\\}/g;
9659
7932
  const commaPattern = /\\,/g;
9660
7933
  const periodPattern = /\\\./g;
9661
7934
  const EXPANSION_MAX = 1e5;
7935
+ const EXPANSION_MAX_LENGTH = 4e6;
9662
7936
  function numeric(str) {
9663
7937
  return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
9664
7938
  }
@@ -9691,9 +7965,9 @@ function parseCommaParts(str) {
9691
7965
  }
9692
7966
  function expand(str, options = {}) {
9693
7967
  if (!str) return [];
9694
- const { max = EXPANSION_MAX } = options;
7968
+ const { max = EXPANSION_MAX, maxLength = EXPANSION_MAX_LENGTH } = options;
9695
7969
  if (str.slice(0, 2) === "{}") str = "\\{\\}" + str.slice(2);
9696
- return expand_(escapeBraces(str), max, true).map(unescapeBraces);
7970
+ return expand_(escapeBraces(str), max, maxLength, true).map(unescapeBraces);
9697
7971
  }
9698
7972
  function embrace(str) {
9699
7973
  return "{" + str + "}";
@@ -9707,20 +7981,72 @@ function lte(i, y) {
9707
7981
  function gte(i, y) {
9708
7982
  return i >= y;
9709
7983
  }
9710
- function expand_(str, max, isTop) {
9711
- /** @type {string[]} */
9712
- const expansions = [];
7984
+ function combine(acc, pre, values, max, maxLength, dropEmpties) {
7985
+ const out = [];
7986
+ let length = 0;
7987
+ for (let a = 0; a < acc.length; a++) for (let v = 0; v < values.length; v++) {
7988
+ if (out.length >= max) return out;
7989
+ const expansion = acc[a] + pre + values[v];
7990
+ if (dropEmpties && !expansion) continue;
7991
+ if (length + expansion.length > maxLength) return out;
7992
+ out.push(expansion);
7993
+ length += expansion.length;
7994
+ }
7995
+ return out;
7996
+ }
7997
+ function expandSequence(body, isAlphaSequence, max, maxLength) {
7998
+ const n = body.split(/\.\./);
7999
+ const N = [];
8000
+ /* c8 ignore start */
8001
+ if (n[0] === void 0 || n[1] === void 0) return N;
8002
+ /* c8 ignore stop */
8003
+ const x = numeric(n[0]);
8004
+ const y = numeric(n[1]);
8005
+ const width = Math.max(n[0].length, n[1].length);
8006
+ let incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
8007
+ let test = lte;
8008
+ if (y < x) {
8009
+ incr *= -1;
8010
+ test = gte;
8011
+ }
8012
+ const pad = n.some(isPadded);
8013
+ let length = 0;
8014
+ for (let i = x; test(i, y) && N.length < max; i += incr) {
8015
+ let c;
8016
+ if (isAlphaSequence) {
8017
+ c = String.fromCharCode(i);
8018
+ if (c === "\\") c = "";
8019
+ } else {
8020
+ c = String(i);
8021
+ if (pad) {
8022
+ const need = width - c.length;
8023
+ if (need > 0) {
8024
+ const z = new Array(need + 1).join("0");
8025
+ if (i < 0) c = "-" + z + c.slice(1);
8026
+ else c = z + c;
8027
+ }
8028
+ }
8029
+ }
8030
+ if (length + c.length > maxLength) break;
8031
+ N.push(c);
8032
+ length += c.length;
8033
+ }
8034
+ return N;
8035
+ }
8036
+ function expand_(str, max, maxLength, isTop) {
8037
+ let acc = [""];
8038
+ let dropEmpties = false;
8039
+ let firstGroup = true;
9713
8040
  for (;;) {
9714
8041
  const m = balanced("{", "}", str);
9715
- if (!m) return [str];
8042
+ if (!m) return combine(acc, str, [""], max, maxLength, dropEmpties);
9716
8043
  const pre = m.pre;
9717
- if (/\$$/.test(m.pre)) {
9718
- const post = m.post.length ? expand_(m.post, max, false) : [""];
9719
- for (let k = 0; k < post.length && k < max; k++) {
9720
- const expansion = pre + "{" + m.body + "}" + post[k];
9721
- expansions.push(expansion);
9722
- }
9723
- return expansions;
8044
+ if (/\$$/.test(pre)) {
8045
+ acc = combine(acc, pre + "{" + m.body + "}", [""], max, maxLength, dropEmpties && !m.post.length);
8046
+ firstGroup = false;
8047
+ if (!m.post.length) break;
8048
+ str = m.post;
8049
+ continue;
9724
8050
  }
9725
8051
  const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
9726
8052
  const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
@@ -9732,70 +8058,56 @@ function expand_(str, max, isTop) {
9732
8058
  isTop = true;
9733
8059
  continue;
9734
8060
  }
9735
- return [str];
8061
+ return combine(acc, pre + "{" + m.body + "}" + m.post, [""], max, maxLength, dropEmpties);
9736
8062
  }
9737
- const post = m.post.length ? expand_(m.post, max, false) : [""];
9738
- let n;
9739
- if (isSequence) n = m.body.split(/\.\./);
8063
+ if (firstGroup) {
8064
+ dropEmpties = isTop && !isSequence;
8065
+ firstGroup = false;
8066
+ }
8067
+ let values;
8068
+ if (isSequence) values = expandSequence(m.body, isAlphaSequence, max, maxLength);
9740
8069
  else {
9741
- n = parseCommaParts(m.body);
8070
+ let n = parseCommaParts(m.body);
9742
8071
  if (n.length === 1 && n[0] !== void 0) {
9743
- n = expand_(n[0], max, false).map(embrace);
8072
+ n = expand_(n[0], max, maxLength, false).map(embrace);
9744
8073
  /* c8 ignore start */
9745
- if (n.length === 1) return post.map((p) => m.pre + n[0] + p);
9746
- }
9747
- }
9748
- let N;
9749
- if (isSequence && n[0] !== void 0 && n[1] !== void 0) {
9750
- const x = numeric(n[0]);
9751
- const y = numeric(n[1]);
9752
- const width = Math.max(n[0].length, n[1].length);
9753
- let incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
9754
- let test = lte;
9755
- if (y < x) {
9756
- incr *= -1;
9757
- test = gte;
9758
- }
9759
- const pad = n.some(isPadded);
9760
- N = [];
9761
- for (let i = x; test(i, y) && N.length < max; i += incr) {
9762
- let c;
9763
- if (isAlphaSequence) {
9764
- c = String.fromCharCode(i);
9765
- if (c === "\\") c = "";
9766
- } else {
9767
- c = String(i);
9768
- if (pad) {
9769
- const need = width - c.length;
9770
- if (need > 0) {
9771
- const z = new Array(need + 1).join("0");
9772
- if (i < 0) c = "-" + z + c.slice(1);
9773
- else c = z + c;
9774
- }
9775
- }
8074
+ if (n.length === 1) {
8075
+ acc = combine(acc, pre + n[0], [""], max, maxLength, dropEmpties && !m.post.length);
8076
+ if (!m.post.length) break;
8077
+ str = m.post;
8078
+ continue;
8079
+ }
8080
+ }
8081
+ let dropsEmpties = dropEmpties && !m.post.length && !pre;
8082
+ for (let d = 0; dropsEmpties && d < acc.length; d++) if (acc[d]) dropsEmpties = false;
8083
+ values = [];
8084
+ let valuesLength = 0;
8085
+ outer: for (let j = 0; j < n.length; j++) {
8086
+ const expanded = expand_(n[j], max, maxLength, false);
8087
+ for (let k = 0; k < expanded.length; k++) {
8088
+ const v = expanded[k];
8089
+ if (dropsEmpties && !v) continue;
8090
+ if (values.length >= max || valuesLength + v.length > maxLength) break outer;
8091
+ values.push(v);
8092
+ valuesLength += v.length;
9776
8093
  }
9777
- N.push(c);
9778
8094
  }
9779
- } else {
9780
- N = [];
9781
- for (let j = 0; j < n.length; j++) N.push.apply(N, expand_(n[j], max, false));
9782
- }
9783
- for (let j = 0; j < N.length; j++) for (let k = 0; k < post.length && expansions.length < max; k++) {
9784
- const expansion = pre + N[j] + post[k];
9785
- if (!isTop || isSequence || expansion) expansions.push(expansion);
9786
8095
  }
9787
- return expansions;
8096
+ acc = combine(acc, pre, values, max, maxLength, dropEmpties && !m.post.length);
8097
+ if (!m.post.length) break;
8098
+ str = m.post;
9788
8099
  }
8100
+ return acc;
9789
8101
  }
9790
8102
  //#endregion
9791
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/assert-valid-pattern.js
9792
- const MAX_PATTERN_LENGTH = 1024 * 64;
8103
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/assert-valid-pattern.js
8104
+ const MAX_PATTERN_LENGTH = 65536;
9793
8105
  const assertValidPattern = (pattern) => {
9794
8106
  if (typeof pattern !== "string") throw new TypeError("invalid pattern");
9795
8107
  if (pattern.length > MAX_PATTERN_LENGTH) throw new TypeError("pattern is too long");
9796
8108
  };
9797
8109
  //#endregion
9798
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/brace-expressions.js
8110
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/brace-expressions.js
9799
8111
  const posixClasses = {
9800
8112
  "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
9801
8113
  "[:alpha:]": ["\\p{L}\\p{Nl}", true],
@@ -9919,7 +8231,7 @@ const parseClass = (glob, position) => {
9919
8231
  ];
9920
8232
  };
9921
8233
  //#endregion
9922
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/unescape.js
8234
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/unescape.js
9923
8235
  /**
9924
8236
  * Un-escape a string that has been escaped with {@link escape}.
9925
8237
  *
@@ -9944,7 +8256,7 @@ const unescape = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}
9944
8256
  return windowsPathsNoEscape ? s.replace(/\[([^/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\{}])\]/g, "$1$2").replace(/\\([^/{}])/g, "$1");
9945
8257
  };
9946
8258
  //#endregion
9947
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/ast.js
8259
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/ast.js
9948
8260
  var _a;
9949
8261
  const types = /* @__PURE__ */ new Set([
9950
8262
  "!",
@@ -10453,7 +8765,7 @@ var AST = class {
10453
8765
  };
10454
8766
  _a = AST;
10455
8767
  //#endregion
10456
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/escape.js
8768
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/escape.js
10457
8769
  /**
10458
8770
  * Escape all magic characters in a glob pattern.
10459
8771
  *
@@ -10471,7 +8783,7 @@ const escape = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {})
10471
8783
  return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
10472
8784
  };
10473
8785
  //#endregion
10474
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/index.js
8786
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/index.js
10475
8787
  const minimatch = (p, pattern, options = {}) => {
10476
8788
  assertValidPattern(pattern);
10477
8789
  if (!options.nocomment && pattern.charAt(0) === "#") return false;
@@ -11163,7 +9475,7 @@ function runGit(rootDir, args) {
11163
9475
  ...args
11164
9476
  ], {
11165
9477
  encoding: "utf8",
11166
- maxBuffer: 32 * 1024 * 1024
9478
+ maxBuffer: 33554432
11167
9479
  });
11168
9480
  return {
11169
9481
  status: result.status,
@@ -11605,9 +9917,7 @@ const buildEntries = (srcDir, entryMode = "single", options, shouldExcludeSpecAn
11605
9917
  case "custom":
11606
9918
  entries = [];
11607
9919
  break;
11608
- default:
11609
- entries = ["index.ts"];
11610
- break;
9920
+ default: entries = ["index.ts"];
11611
9921
  }
11612
9922
  if (typeof options !== "boolean" && Array.isArray(options?.entry)) entries.push(...options.entry);
11613
9923
  if (isVerbose) console.log(`buildEntries [${entryMode}] ${entries.length}`);
@@ -11638,7 +9948,7 @@ const I = "ERR_PACKAGE_PATH_NOT_EXPORTED";
11638
9948
  const R$1 = /^\d+$/;
11639
9949
  const O$1 = /^(\.{1,2}|node_modules)$/i;
11640
9950
  const w = /\/|\\/;
11641
- var h$1 = ((r) => (r.Export = "exports", r.Import = "imports", r))(h$1 || {});
9951
+ var h = ((r) => (r.Export = "exports", r.Import = "imports", r))(h || {});
11642
9952
  const f = (r, t, e, o, c) => {
11643
9953
  if (t == null) return [];
11644
9954
  if (typeof t == "string") {
@@ -11682,23 +9992,23 @@ const u = /^\w+:/;
11682
9992
  const v = (r, t, e) => {
11683
9993
  if (!r) throw new Error("\"exports\" is required");
11684
9994
  t = t === "" ? "." : `./${t}`, (typeof r == "string" || Array.isArray(r) || A(r) && p(r)) && (r = { ".": r });
11685
- const [o, c] = d(r, t), n = f(h$1.Export, r[o], t, e, c);
9995
+ const [o, c] = d(r, t), n = f(h.Export, r[o], t, e, c);
11686
9996
  if (n.length === 0) throw a(I, t === "." ? "No \"exports\" main defined" : `Package subpath '${t}' is not defined by "exports"`);
11687
9997
  for (const i of n) if (!i.startsWith("./") && !u.test(i)) throw a(E$1, `Invalid "exports" target "${i}" defined in the package config`);
11688
9998
  return n;
11689
9999
  };
11690
10000
  //#endregion
11691
- //#region ../../node_modules/.pnpm/get-tsconfig@4.14.0/node_modules/get-tsconfig/dist/index.mjs
10001
+ //#region ../../node_modules/.pnpm/get-tsconfig@4.14.1/node_modules/get-tsconfig/dist/index.mjs
11692
10002
  var xe = Object.defineProperty;
11693
- var r = (e, t) => xe(e, "name", {
10003
+ var i = (e, t) => xe(e, "name", {
11694
10004
  value: t,
11695
10005
  configurable: !0
11696
10006
  });
11697
- function h(e) {
10007
+ function L(e) {
11698
10008
  return e.startsWith("\\\\?\\") ? e : e.replace(/\\/g, "/");
11699
10009
  }
11700
- r(h, "slash");
11701
- const K = r((e) => {
10010
+ i(L, "slash");
10011
+ const Q = i((e) => {
11702
10012
  const t = fs[e];
11703
10013
  return (s, ...n) => {
11704
10014
  const o = `${e}:${n.join(":")}`;
@@ -11706,10 +10016,16 @@ const K = r((e) => {
11706
10016
  return l === void 0 && (l = Reflect.apply(t, fs, n), s?.set(o, l)), l;
11707
10017
  };
11708
10018
  }, "cacheFs");
11709
- const x = K("existsSync");
11710
- const Se = K("readFileSync");
11711
- const Q = K("statSync");
11712
- const O = r((e, t, s) => {
10019
+ const x = Q("existsSync");
10020
+ const Se = Q("readFileSync");
10021
+ const H = Q("statSync");
10022
+ const Ne = Q("realpathSync");
10023
+ const Pe$1 = i((...[e, t]) => {
10024
+ const s = Ne(e, t);
10025
+ if (typeof s != "string") throw new TypeError(`Unexpected resolved path type for ${s} in ${t}`);
10026
+ return s;
10027
+ }, "realpath");
10028
+ const O = i((e, t, s) => {
11713
10029
  for (;;) {
11714
10030
  const n = PATH.posix.join(e, t);
11715
10031
  if (x(s, n)) return n;
@@ -11719,49 +10035,49 @@ const O = r((e, t, s) => {
11719
10035
  }
11720
10036
  }, "findUp");
11721
10037
  const C = /^\.{1,2}(\/.*)?$/;
11722
- const H = r((e) => {
11723
- const t = h(e);
10038
+ const X = i((e) => {
10039
+ const t = L(e);
11724
10040
  return C.test(t) ? t : `./${t}`;
11725
10041
  }, "normalizeRelativePath");
11726
- function Ne(e, t = !1) {
10042
+ function We(e, t = !1) {
11727
10043
  const s = e.length;
11728
- let n = 0, o = "", l = 0, i = 16, f = 0, u = 0, g = 0, w = 0, d = 0;
10044
+ let n = 0, o = "", l = 0, r = 16, f = 0, u = 0, g = 0, d = 0, b = 0;
11729
10045
  function _(c, j) {
11730
- let y = 0, T = 0;
10046
+ let y = 0, A = 0;
11731
10047
  for (; y < c;) {
11732
10048
  let k = e.charCodeAt(n);
11733
- if (k >= 48 && k <= 57) T = T * 16 + k - 48;
11734
- else if (k >= 65 && k <= 70) T = T * 16 + k - 65 + 10;
11735
- else if (k >= 97 && k <= 102) T = T * 16 + k - 97 + 10;
10049
+ if (k >= 48 && k <= 57) A = A * 16 + k - 48;
10050
+ else if (k >= 65 && k <= 70) A = A * 16 + k - 65 + 10;
10051
+ else if (k >= 97 && k <= 102) A = A * 16 + k - 97 + 10;
11736
10052
  else break;
11737
10053
  n++, y++;
11738
10054
  }
11739
- return y < c && (T = -1), T;
10055
+ return y < c && (A = -1), A;
11740
10056
  }
11741
- r(_, "scanHexDigits");
11742
- function v(c) {
11743
- n = c, o = "", l = 0, i = 16, d = 0;
10057
+ i(_, "scanHexDigits");
10058
+ function h(c) {
10059
+ n = c, o = "", l = 0, r = 16, b = 0;
11744
10060
  }
11745
- r(v, "setPosition");
11746
- function p() {
10061
+ i(h, "setPosition");
10062
+ function D() {
11747
10063
  let c = n;
11748
10064
  if (e.charCodeAt(n) === 48) n++;
11749
10065
  else for (n++; n < e.length && R(e.charCodeAt(n));) n++;
11750
10066
  if (n < e.length && e.charCodeAt(n) === 46) if (n++, n < e.length && R(e.charCodeAt(n))) for (n++; n < e.length && R(e.charCodeAt(n));) n++;
11751
- else return d = 3, e.substring(c, n);
10067
+ else return b = 3, e.substring(c, n);
11752
10068
  let j = n;
11753
10069
  if (n < e.length && (e.charCodeAt(n) === 69 || e.charCodeAt(n) === 101)) if (n++, (n < e.length && e.charCodeAt(n) === 43 || e.charCodeAt(n) === 45) && n++, n < e.length && R(e.charCodeAt(n))) {
11754
10070
  for (n++; n < e.length && R(e.charCodeAt(n));) n++;
11755
10071
  j = n;
11756
- } else d = 3;
10072
+ } else b = 3;
11757
10073
  return e.substring(c, j);
11758
10074
  }
11759
- r(p, "scanNumber");
11760
- function L() {
10075
+ i(D, "scanNumber");
10076
+ function T() {
11761
10077
  let c = "", j = n;
11762
10078
  for (;;) {
11763
10079
  if (n >= s) {
11764
- c += e.substring(j, n), d = 2;
10080
+ c += e.substring(j, n), b = 2;
11765
10081
  break;
11766
10082
  }
11767
10083
  const y = e.charCodeAt(n);
@@ -11771,7 +10087,7 @@ function Ne(e, t = !1) {
11771
10087
  }
11772
10088
  if (y === 92) {
11773
10089
  if (c += e.substring(j, n), n++, n >= s) {
11774
- d = 2;
10090
+ b = 2;
11775
10091
  break;
11776
10092
  }
11777
10093
  switch (e.charCodeAt(n++)) {
@@ -11802,63 +10118,63 @@ function Ne(e, t = !1) {
11802
10118
  break;
11803
10119
  case 117:
11804
10120
  const k = _(4);
11805
- k >= 0 ? c += String.fromCharCode(k) : d = 4;
10121
+ k >= 0 ? c += String.fromCharCode(k) : b = 4;
11806
10122
  break;
11807
- default: d = 5;
10123
+ default: b = 5;
11808
10124
  }
11809
10125
  j = n;
11810
10126
  continue;
11811
10127
  }
11812
10128
  if (y >= 0 && y <= 31) if (J(y)) {
11813
- c += e.substring(j, n), d = 2;
10129
+ c += e.substring(j, n), b = 2;
11814
10130
  break;
11815
- } else d = 6;
10131
+ } else b = 6;
11816
10132
  n++;
11817
10133
  }
11818
10134
  return c;
11819
10135
  }
11820
- r(L, "scanString");
11821
- function A() {
11822
- if (o = "", d = 0, l = n, u = f, w = g, n >= s) return l = s, i = 17;
10136
+ i(T, "scanString");
10137
+ function w() {
10138
+ if (o = "", b = 0, l = n, u = f, d = g, n >= s) return l = s, r = 17;
11823
10139
  let c = e.charCodeAt(n);
11824
10140
  if (ee(c)) {
11825
10141
  do
11826
10142
  n++, o += String.fromCharCode(c), c = e.charCodeAt(n);
11827
10143
  while (ee(c));
11828
- return i = 15;
10144
+ return r = 15;
11829
10145
  }
11830
10146
  if (J(c)) return n++, o += String.fromCharCode(c), c === 13 && e.charCodeAt(n) === 10 && (n++, o += `
11831
- `), f++, g = n, i = 14;
10147
+ `), f++, g = n, r = 14;
11832
10148
  switch (c) {
11833
- case 123: return n++, i = 1;
11834
- case 125: return n++, i = 2;
11835
- case 91: return n++, i = 3;
11836
- case 93: return n++, i = 4;
11837
- case 58: return n++, i = 6;
11838
- case 44: return n++, i = 5;
11839
- case 34: return n++, o = L(), i = 10;
10149
+ case 123: return n++, r = 1;
10150
+ case 125: return n++, r = 2;
10151
+ case 91: return n++, r = 3;
10152
+ case 93: return n++, r = 4;
10153
+ case 58: return n++, r = 6;
10154
+ case 44: return n++, r = 5;
10155
+ case 34: return n++, o = T(), r = 10;
11840
10156
  case 47:
11841
10157
  const j = n - 1;
11842
10158
  if (e.charCodeAt(n + 1) === 47) {
11843
10159
  for (n += 2; n < s && !J(e.charCodeAt(n));) n++;
11844
- return o = e.substring(j, n), i = 12;
10160
+ return o = e.substring(j, n), r = 12;
11845
10161
  }
11846
10162
  if (e.charCodeAt(n + 1) === 42) {
11847
10163
  n += 2;
11848
10164
  const y = s - 1;
11849
- let T = !1;
10165
+ let A = !1;
11850
10166
  for (; n < y;) {
11851
10167
  const k = e.charCodeAt(n);
11852
10168
  if (k === 42 && e.charCodeAt(n + 1) === 47) {
11853
- n += 2, T = !0;
10169
+ n += 2, A = !0;
11854
10170
  break;
11855
10171
  }
11856
10172
  n++, J(k) && (k === 13 && e.charCodeAt(n) === 10 && n++, f++, g = n);
11857
10173
  }
11858
- return T || (n++, d = 1), o = e.substring(j, n), i = 13;
10174
+ return A || (n++, b = 1), o = e.substring(j, n), r = 13;
11859
10175
  }
11860
- return o += String.fromCharCode(c), n++, i = 16;
11861
- case 45: if (o += String.fromCharCode(c), n++, n === s || !R(e.charCodeAt(n))) return i = 16;
10176
+ return o += String.fromCharCode(c), n++, r = 16;
10177
+ case 45: if (o += String.fromCharCode(c), n++, n === s || !R(e.charCodeAt(n))) return r = 16;
11862
10178
  case 48:
11863
10179
  case 49:
11864
10180
  case 50:
@@ -11868,22 +10184,22 @@ function Ne(e, t = !1) {
11868
10184
  case 54:
11869
10185
  case 55:
11870
10186
  case 56:
11871
- case 57: return o += p(), i = 11;
10187
+ case 57: return o += D(), r = 11;
11872
10188
  default:
11873
- for (; n < s && D(c);) n++, c = e.charCodeAt(n);
10189
+ for (; n < s && v(c);) n++, c = e.charCodeAt(n);
11874
10190
  if (l !== n) {
11875
10191
  switch (o = e.substring(l, n), o) {
11876
- case "true": return i = 8;
11877
- case "false": return i = 9;
11878
- case "null": return i = 7;
10192
+ case "true": return r = 8;
10193
+ case "false": return r = 9;
10194
+ case "null": return r = 7;
11879
10195
  }
11880
- return i = 16;
10196
+ return r = 16;
11881
10197
  }
11882
- return o += String.fromCharCode(c), n++, i = 16;
10198
+ return o += String.fromCharCode(c), n++, r = 16;
11883
10199
  }
11884
10200
  }
11885
- r(A, "scanNext");
11886
- function D(c) {
10201
+ i(w, "scanNext");
10202
+ function v(c) {
11887
10203
  if (ee(c) || J(c)) return !1;
11888
10204
  switch (c) {
11889
10205
  case 125:
@@ -11897,40 +10213,40 @@ function Ne(e, t = !1) {
11897
10213
  }
11898
10214
  return !0;
11899
10215
  }
11900
- r(D, "isUnknownContentCharacter");
10216
+ i(v, "isUnknownContentCharacter");
11901
10217
  function B() {
11902
10218
  let c;
11903
10219
  do
11904
- c = A();
10220
+ c = w();
11905
10221
  while (c >= 12 && c <= 15);
11906
10222
  return c;
11907
10223
  }
11908
- return r(B, "scanNextNonTrivia"), {
11909
- setPosition: v,
11910
- getPosition: r(() => n, "getPosition"),
11911
- scan: t ? B : A,
11912
- getToken: r(() => i, "getToken"),
11913
- getTokenValue: r(() => o, "getTokenValue"),
11914
- getTokenOffset: r(() => l, "getTokenOffset"),
11915
- getTokenLength: r(() => n - l, "getTokenLength"),
11916
- getTokenStartLine: r(() => u, "getTokenStartLine"),
11917
- getTokenStartCharacter: r(() => l - w, "getTokenStartCharacter"),
11918
- getTokenError: r(() => d, "getTokenError")
10224
+ return i(B, "scanNextNonTrivia"), {
10225
+ setPosition: h,
10226
+ getPosition: i(() => n, "getPosition"),
10227
+ scan: t ? B : w,
10228
+ getToken: i(() => r, "getToken"),
10229
+ getTokenValue: i(() => o, "getTokenValue"),
10230
+ getTokenOffset: i(() => l, "getTokenOffset"),
10231
+ getTokenLength: i(() => n - l, "getTokenLength"),
10232
+ getTokenStartLine: i(() => u, "getTokenStartLine"),
10233
+ getTokenStartCharacter: i(() => l - d, "getTokenStartCharacter"),
10234
+ getTokenError: i(() => b, "getTokenError")
11919
10235
  };
11920
10236
  }
11921
- r(Ne, "createScanner");
10237
+ i(We, "createScanner");
11922
10238
  function ee(e) {
11923
10239
  return e === 32 || e === 9;
11924
10240
  }
11925
- r(ee, "isWhiteSpace");
10241
+ i(ee, "isWhiteSpace");
11926
10242
  function J(e) {
11927
10243
  return e === 10 || e === 13;
11928
10244
  }
11929
- r(J, "isLineBreak");
10245
+ i(J, "isLineBreak");
11930
10246
  function R(e) {
11931
10247
  return e >= 48 && e <= 57;
11932
10248
  }
11933
- r(R, "isDigit");
10249
+ i(R, "isDigit");
11934
10250
  var ge;
11935
10251
  (function(e) {
11936
10252
  e[e.lineFeed = 10] = "lineFeed", e[e.carriageReturn = 13] = "carriageReturn", e[e.space = 32] = "space", e[e._0 = 48] = "_0", e[e._1 = 49] = "_1", e[e._2 = 50] = "_2", e[e._3 = 51] = "_3", e[e._4 = 52] = "_4", e[e._5 = 53] = "_5", e[e._6 = 54] = "_6", e[e._7 = 55] = "_7", e[e._8 = 56] = "_8", e[e._9 = 57] = "_9", e[e.a = 97] = "a", e[e.b = 98] = "b", e[e.c = 99] = "c", e[e.d = 100] = "d", e[e.e = 101] = "e", e[e.f = 102] = "f", e[e.g = 103] = "g", e[e.h = 104] = "h", e[e.i = 105] = "i", e[e.j = 106] = "j", e[e.k = 107] = "k", e[e.l = 108] = "l", e[e.m = 109] = "m", e[e.n = 110] = "n", e[e.o = 111] = "o", e[e.p = 112] = "p", e[e.q = 113] = "q", e[e.r = 114] = "r", e[e.s = 115] = "s", e[e.t = 116] = "t", e[e.u = 117] = "u", e[e.v = 118] = "v", e[e.w = 119] = "w", e[e.x = 120] = "x", e[e.y = 121] = "y", e[e.z = 122] = "z", e[e.A = 65] = "A", e[e.B = 66] = "B", e[e.C = 67] = "C", e[e.D = 68] = "D", e[e.E = 69] = "E", e[e.F = 70] = "F", e[e.G = 71] = "G", e[e.H = 72] = "H", e[e.I = 73] = "I", e[e.J = 74] = "J", e[e.K = 75] = "K", e[e.L = 76] = "L", e[e.M = 77] = "M", e[e.N = 78] = "N", e[e.O = 79] = "O", e[e.P = 80] = "P", e[e.Q = 81] = "Q", e[e.R = 82] = "R", e[e.S = 83] = "S", e[e.T = 84] = "T", e[e.U = 85] = "U", e[e.V = 86] = "V", e[e.W = 87] = "W", e[e.X = 88] = "X", e[e.Y = 89] = "Y", e[e.Z = 90] = "Z", e[e.asterisk = 42] = "asterisk", e[e.backslash = 92] = "backslash", e[e.closeBrace = 125] = "closeBrace", e[e.closeBracket = 93] = "closeBracket", e[e.colon = 58] = "colon", e[e.comma = 44] = "comma", e[e.dot = 46] = "dot", e[e.doubleQuote = 34] = "doubleQuote", e[e.minus = 45] = "minus", e[e.openBrace = 123] = "openBrace", e[e.openBracket = 91] = "openBracket", e[e.plus = 43] = "plus", e[e.slash = 47] = "slash", e[e.formFeed = 12] = "formFeed", e[e.tab = 9] = "tab";
@@ -11941,76 +10257,76 @@ new Array(S).fill(0).map((e, t) => `
11941
10257
  ` + " ".repeat(t)), new Array(S).fill(0).map((e, t) => `
11942
10258
  ` + " ".repeat(t)), new Array(S).fill(0).map((e, t) => "\r" + " ".repeat(t)), new Array(S).fill(0).map((e, t) => `\r
11943
10259
  ` + " ".repeat(t));
11944
- var X;
10260
+ var Y;
11945
10261
  (function(e) {
11946
10262
  e.DEFAULT = { allowTrailingComma: !1 };
11947
- })(X || (X = {}));
11948
- function Pe$1(e, t = [], s = X.DEFAULT) {
10263
+ })(Y || (Y = {}));
10264
+ function Je(e, t = [], s = Y.DEFAULT) {
11949
10265
  let n = null, o = [];
11950
10266
  const l = [];
11951
- function i(u) {
10267
+ function r(u) {
11952
10268
  Array.isArray(o) ? o.push(u) : n !== null && (o[n] = u);
11953
10269
  }
11954
- return r(i, "onValue"), We(e, {
11955
- onObjectBegin: r(() => {
10270
+ return i(r, "onValue"), Me(e, {
10271
+ onObjectBegin: i(() => {
11956
10272
  const u = {};
11957
- i(u), l.push(o), o = u, n = null;
10273
+ r(u), l.push(o), o = u, n = null;
11958
10274
  }, "onObjectBegin"),
11959
- onObjectProperty: r((u) => {
10275
+ onObjectProperty: i((u) => {
11960
10276
  n = u;
11961
10277
  }, "onObjectProperty"),
11962
- onObjectEnd: r(() => {
10278
+ onObjectEnd: i(() => {
11963
10279
  o = l.pop();
11964
10280
  }, "onObjectEnd"),
11965
- onArrayBegin: r(() => {
10281
+ onArrayBegin: i(() => {
11966
10282
  const u = [];
11967
- i(u), l.push(o), o = u, n = null;
10283
+ r(u), l.push(o), o = u, n = null;
11968
10284
  }, "onArrayBegin"),
11969
- onArrayEnd: r(() => {
10285
+ onArrayEnd: i(() => {
11970
10286
  o = l.pop();
11971
10287
  }, "onArrayEnd"),
11972
- onLiteralValue: i,
11973
- onError: r((u, g, w) => {
10288
+ onLiteralValue: r,
10289
+ onError: i((u, g, d) => {
11974
10290
  t.push({
11975
10291
  error: u,
11976
10292
  offset: g,
11977
- length: w
10293
+ length: d
11978
10294
  });
11979
10295
  }, "onError")
11980
10296
  }, s), o[0];
11981
10297
  }
11982
- r(Pe$1, "parse$1");
11983
- function We(e, t, s = X.DEFAULT) {
11984
- const n = Ne(e, !1), o = [];
10298
+ i(Je, "parse$1");
10299
+ function Me(e, t, s = Y.DEFAULT) {
10300
+ const n = We(e, !1), o = [];
11985
10301
  let l = 0;
11986
- function i(b) {
11987
- return b ? () => l === 0 && b(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter()) : () => !0;
10302
+ function r(p) {
10303
+ return p ? () => l === 0 && p(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter()) : () => !0;
11988
10304
  }
11989
- r(i, "toNoArgVisit");
11990
- function f(b) {
11991
- return b ? (F) => l === 0 && b(F, n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter()) : () => !0;
10305
+ i(r, "toNoArgVisit");
10306
+ function f(p) {
10307
+ return p ? (F) => l === 0 && p(F, n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter()) : () => !0;
11992
10308
  }
11993
- r(f, "toOneArgVisit");
11994
- function u(b) {
11995
- return b ? (F) => l === 0 && b(F, n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter(), () => o.slice()) : () => !0;
10309
+ i(f, "toOneArgVisit");
10310
+ function u(p) {
10311
+ return p ? (F) => l === 0 && p(F, n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter(), () => o.slice()) : () => !0;
11996
10312
  }
11997
- r(u, "toOneArgVisitWithPath");
11998
- function g(b) {
11999
- return b ? () => {
12000
- l > 0 ? l++ : b(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter(), () => o.slice()) === !1 && (l = 1);
10313
+ i(u, "toOneArgVisitWithPath");
10314
+ function g(p) {
10315
+ return p ? () => {
10316
+ l > 0 ? l++ : p(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter(), () => o.slice()) === !1 && (l = 1);
12001
10317
  } : () => !0;
12002
10318
  }
12003
- r(g, "toBeginVisit");
12004
- function w(b) {
12005
- return b ? () => {
12006
- l > 0 && l--, l === 0 && b(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter());
10319
+ i(g, "toBeginVisit");
10320
+ function d(p) {
10321
+ return p ? () => {
10322
+ l > 0 && l--, l === 0 && p(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter());
12007
10323
  } : () => !0;
12008
10324
  }
12009
- r(w, "toEndVisit");
12010
- const d = g(t.onObjectBegin), _ = u(t.onObjectProperty), v = w(t.onObjectEnd), p = g(t.onArrayBegin), L = w(t.onArrayEnd), A = u(t.onLiteralValue), D = f(t.onSeparator), B = i(t.onComment), c = f(t.onError), j = s && s.disallowComments, y = s && s.allowTrailingComma;
12011
- function T() {
10325
+ i(d, "toEndVisit");
10326
+ const b = g(t.onObjectBegin), _ = u(t.onObjectProperty), h = d(t.onObjectEnd), D = g(t.onArrayBegin), T = d(t.onArrayEnd), w = u(t.onLiteralValue), v = f(t.onSeparator), B = r(t.onComment), c = f(t.onError), j = s && s.disallowComments, y = s && s.allowTrailingComma;
10327
+ function A() {
12012
10328
  for (;;) {
12013
- const b = n.scan();
10329
+ const p = n.scan();
12014
10330
  switch (n.getTokenError()) {
12015
10331
  case 4:
12016
10332
  k(14);
@@ -12027,11 +10343,9 @@ function We(e, t, s = X.DEFAULT) {
12027
10343
  case 2:
12028
10344
  k(12);
12029
10345
  break;
12030
- case 6:
12031
- k(16);
12032
- break;
10346
+ case 6: k(16);
12033
10347
  }
12034
- switch (b) {
10348
+ switch (p) {
12035
10349
  case 12:
12036
10350
  case 13:
12037
10351
  j ? k(10) : B();
@@ -12041,78 +10355,78 @@ function We(e, t, s = X.DEFAULT) {
12041
10355
  break;
12042
10356
  case 15:
12043
10357
  case 14: break;
12044
- default: return b;
10358
+ default: return p;
12045
10359
  }
12046
10360
  }
12047
10361
  }
12048
- r(T, "scanNext");
12049
- function k(b, F = [], W = []) {
12050
- if (c(b), F.length + W.length > 0) {
12051
- let $ = n.getToken();
12052
- for (; $ !== 17;) {
12053
- if (F.indexOf($) !== -1) {
12054
- T();
10362
+ i(A, "scanNext");
10363
+ function k(p, F = [], W = []) {
10364
+ if (c(p), F.length + W.length > 0) {
10365
+ let I = n.getToken();
10366
+ for (; I !== 17;) {
10367
+ if (F.indexOf(I) !== -1) {
10368
+ A();
12055
10369
  break;
12056
- } else if (W.indexOf($) !== -1) break;
12057
- $ = T();
10370
+ } else if (W.indexOf(I) !== -1) break;
10371
+ I = A();
12058
10372
  }
12059
10373
  }
12060
10374
  }
12061
- r(k, "handleError");
12062
- function P(b) {
10375
+ i(k, "handleError");
10376
+ function P(p) {
12063
10377
  const F = n.getTokenValue();
12064
- return b ? A(F) : (_(F), o.push(F)), T(), !0;
10378
+ return p ? w(F) : (_(F), o.push(F)), A(), !0;
12065
10379
  }
12066
- r(P, "parseString");
10380
+ i(P, "parseString");
12067
10381
  function M() {
12068
10382
  switch (n.getToken()) {
12069
10383
  case 11:
12070
- const b = n.getTokenValue();
12071
- let F = Number(b);
12072
- isNaN(F) && (k(2), F = 0), A(F);
10384
+ const p = n.getTokenValue();
10385
+ let F = Number(p);
10386
+ isNaN(F) && (k(2), F = 0), w(F);
12073
10387
  break;
12074
10388
  case 7:
12075
- A(null);
10389
+ w(null);
12076
10390
  break;
12077
10391
  case 8:
12078
- A(!0);
10392
+ w(!0);
12079
10393
  break;
12080
10394
  case 9:
12081
- A(!1);
10395
+ w(!1);
12082
10396
  break;
12083
10397
  default: return !1;
12084
10398
  }
12085
- return T(), !0;
10399
+ return A(), !0;
12086
10400
  }
12087
- r(M, "parseLiteral");
10401
+ i(M, "parseLiteral");
12088
10402
  function V() {
12089
- return n.getToken() !== 10 ? (k(3, [], [2, 5]), !1) : (P(!1), n.getToken() === 6 ? (D(":"), T(), U() || k(4, [], [2, 5])) : k(5, [], [2, 5]), o.pop(), !0);
10403
+ return n.getToken() !== 10 ? (k(3, [], [2, 5]), !1) : (P(!1), n.getToken() === 6 ? (v(":"), A(), U() || k(4, [], [2, 5])) : k(5, [], [2, 5]), o.pop(), !0);
12090
10404
  }
12091
- r(V, "parseProperty");
10405
+ i(V, "parseProperty");
12092
10406
  function z() {
12093
- d(), T();
12094
- let b = !1;
10407
+ b(), A();
10408
+ let p = !1;
12095
10409
  for (; n.getToken() !== 2 && n.getToken() !== 17;) {
12096
10410
  if (n.getToken() === 5) {
12097
- if (b || k(4, [], []), D(","), T(), n.getToken() === 2 && y) break;
12098
- } else b && k(6, [], []);
12099
- V() || k(4, [], [2, 5]), b = !0;
10411
+ if (p || k(4, [], []), v(","), A(), n.getToken() === 2 && y) break;
10412
+ } else p && k(6, [], []);
10413
+ V() || k(4, [], [2, 5]), p = !0;
12100
10414
  }
12101
- return v(), n.getToken() !== 2 ? k(7, [2], []) : T(), !0;
10415
+ return h(), n.getToken() !== 2 ? k(7, [2], []) : A(), !0;
12102
10416
  }
12103
- r(z, "parseObject");
10417
+ i(z, "parseObject");
12104
10418
  function G() {
12105
- p(), T();
12106
- let b = !0, F = !1;
10419
+ D(), A();
10420
+ let p = !0, F = !1;
12107
10421
  for (; n.getToken() !== 4 && n.getToken() !== 17;) {
12108
10422
  if (n.getToken() === 5) {
12109
- if (F || k(4, [], []), D(","), T(), n.getToken() === 4 && y) break;
10423
+ if (F || k(4, [], []), v(","), A(), n.getToken() === 4 && y) break;
12110
10424
  } else F && k(6, [], []);
12111
- b ? (o.push(0), b = !1) : o[o.length - 1]++, U() || k(4, [], [4, 5]), F = !0;
10425
+ p ? (o.push(0), p = !1) : o[o.length - 1]++, U() || k(4, [], [4, 5]), F = !0;
12112
10426
  }
12113
- return L(), b || o.pop(), n.getToken() !== 4 ? k(8, [4], []) : T(), !0;
10427
+ return T(), p || o.pop(), n.getToken() !== 4 ? k(8, [4], []) : A(), !0;
12114
10428
  }
12115
- r(G, "parseArray");
10429
+ i(G, "parseArray");
12116
10430
  function U() {
12117
10431
  switch (n.getToken()) {
12118
10432
  case 3: return G();
@@ -12121,9 +10435,9 @@ function We(e, t, s = X.DEFAULT) {
12121
10435
  default: return M();
12122
10436
  }
12123
10437
  }
12124
- return r(U, "parseValue"), T(), n.getToken() === 17 ? s.allowEmptyContent ? !0 : (k(4, [], []), !1) : U() ? (n.getToken() !== 17 && k(9, [], []), !0) : (k(4, [], []), !1);
10438
+ return i(U, "parseValue"), A(), n.getToken() === 17 ? s.allowEmptyContent ? !0 : (k(4, [], []), !1) : U() ? (n.getToken() !== 17 && k(9, [], []), !0) : (k(4, [], []), !1);
12125
10439
  }
12126
- r(We, "visit");
10440
+ i(Me, "visit");
12127
10441
  var ke;
12128
10442
  (function(e) {
12129
10443
  e[e.None = 0] = "None", e[e.UnexpectedEndOfComment = 1] = "UnexpectedEndOfComment", e[e.UnexpectedEndOfString = 2] = "UnexpectedEndOfString", e[e.UnexpectedEndOfNumber = 3] = "UnexpectedEndOfNumber", e[e.InvalidUnicode = 4] = "InvalidUnicode", e[e.InvalidEscapeCharacter = 5] = "InvalidEscapeCharacter", e[e.InvalidCharacter = 6] = "InvalidCharacter";
@@ -12132,140 +10446,141 @@ var me;
12132
10446
  (function(e) {
12133
10447
  e[e.OpenBraceToken = 1] = "OpenBraceToken", e[e.CloseBraceToken = 2] = "CloseBraceToken", e[e.OpenBracketToken = 3] = "OpenBracketToken", e[e.CloseBracketToken = 4] = "CloseBracketToken", e[e.CommaToken = 5] = "CommaToken", e[e.ColonToken = 6] = "ColonToken", e[e.NullKeyword = 7] = "NullKeyword", e[e.TrueKeyword = 8] = "TrueKeyword", e[e.FalseKeyword = 9] = "FalseKeyword", e[e.StringLiteral = 10] = "StringLiteral", e[e.NumericLiteral = 11] = "NumericLiteral", e[e.LineCommentTrivia = 12] = "LineCommentTrivia", e[e.BlockCommentTrivia = 13] = "BlockCommentTrivia", e[e.LineBreakTrivia = 14] = "LineBreakTrivia", e[e.Trivia = 15] = "Trivia", e[e.Unknown = 16] = "Unknown", e[e.EOF = 17] = "EOF";
12134
10448
  })(me || (me = {}));
12135
- const Je = Pe$1;
12136
- var de;
10449
+ const Ve = Je;
10450
+ var we;
12137
10451
  (function(e) {
12138
10452
  e[e.InvalidSymbol = 1] = "InvalidSymbol", e[e.InvalidNumberFormat = 2] = "InvalidNumberFormat", e[e.PropertyNameExpected = 3] = "PropertyNameExpected", e[e.ValueExpected = 4] = "ValueExpected", e[e.ColonExpected = 5] = "ColonExpected", e[e.CommaExpected = 6] = "CommaExpected", e[e.CloseBraceExpected = 7] = "CloseBraceExpected", e[e.CloseBracketExpected = 8] = "CloseBracketExpected", e[e.EndOfFileExpected = 9] = "EndOfFileExpected", e[e.InvalidCommentToken = 10] = "InvalidCommentToken", e[e.UnexpectedEndOfComment = 11] = "UnexpectedEndOfComment", e[e.UnexpectedEndOfString = 12] = "UnexpectedEndOfString", e[e.UnexpectedEndOfNumber = 13] = "UnexpectedEndOfNumber", e[e.InvalidUnicode = 14] = "InvalidUnicode", e[e.InvalidEscapeCharacter = 15] = "InvalidEscapeCharacter", e[e.InvalidCharacter = 16] = "InvalidCharacter";
12139
- })(de || (de = {}));
12140
- const we = r((e, t) => Je(Se(t, e, "utf8")), "readJsonc");
10453
+ })(we || (we = {}));
10454
+ const de = i((e, t) => Ve(Se(t, e, "utf8")), "readJsonc");
12141
10455
  const ne = Symbol("implicitBaseUrl");
12142
10456
  const E = "${configDir}";
12143
- const Me = r(() => {
10457
+ const ze = i(() => {
12144
10458
  const { findPnpApi: e } = Be;
12145
10459
  return e && e(process.cwd());
12146
10460
  }, "getPnpApi");
12147
- const te = r((e, t, s, n) => {
10461
+ const te = i((e, t, s, n) => {
12148
10462
  const o = `resolveFromPackageJsonPath:${e}:${t}:${s}`;
12149
10463
  if (n != null && n.has(o)) return n.get(o);
12150
- const l = we(e, n);
10464
+ const l = de(e, n);
12151
10465
  if (!l) return;
12152
- let i = t || "tsconfig.json";
10466
+ let r = t || "tsconfig.json";
12153
10467
  if (!s && l.exports) try {
12154
10468
  const [f] = v(l.exports, t, ["require", "types"]);
12155
- i = f;
10469
+ r = f;
12156
10470
  } catch {
12157
10471
  return !1;
12158
10472
  }
12159
- else !t && l.tsconfig && (i = l.tsconfig);
12160
- return i = PATH.join(e, "..", i), n?.set(o, i), i;
10473
+ else !t && l.tsconfig && (r = l.tsconfig);
10474
+ return r = PATH.join(e, "..", r), n?.set(o, r), r;
12161
10475
  }, "resolveFromPackageJsonPath");
12162
10476
  const se = "package.json";
12163
10477
  const le = "tsconfig.json";
12164
- const Ve = r((e, t, s) => {
12165
- let n = e;
12166
- if (e === ".." && (n = PATH.join(n, le)), e[0] === "." && (n = PATH.resolve(t, n)), PATH.isAbsolute(n)) {
12167
- if (x(s, n)) {
12168
- if (Q(s, n).isFile()) return n;
12169
- } else if (!n.endsWith(".json")) {
12170
- const v = `${n}.json`;
12171
- if (x(s, v)) return v;
10478
+ const Ge = i((e, t, s) => {
10479
+ var n;
10480
+ let o = e;
10481
+ if (e === ".." && (o = PATH.join(o, le)), e[0] === "." && (o = PATH.resolve(t, o)), PATH.isAbsolute(o)) {
10482
+ if (x(s, o)) {
10483
+ if (H(s, o).isFile()) return o;
10484
+ } else if (!o.endsWith(".json")) {
10485
+ const T = `${o}.json`;
10486
+ if (x(s, T)) return T;
12172
10487
  }
12173
10488
  return;
12174
10489
  }
12175
- const [o, ...l] = e.split("/"), i = o[0] === "@" ? `${o}/${l.shift()}` : o, f = l.join("/"), u = Me();
12176
- if (u) {
12177
- const { resolveRequest: v } = u;
10490
+ const [l, ...r] = e.split("/"), f = l[0] === "@" ? `${l}/${r.shift()}` : l, u = r.join("/"), g = ze();
10491
+ if (g) {
10492
+ const { resolveRequest: T } = g;
12178
10493
  try {
12179
- if (i === e) {
12180
- const p = v(PATH.join(i, se), t);
12181
- if (p) {
12182
- const L = te(p, f, !1, s);
12183
- if (L && x(s, L)) return L;
10494
+ if (f === e) {
10495
+ const w = T(PATH.join(f, se), t);
10496
+ if (w) {
10497
+ const v = te(w, u, !1, s);
10498
+ if (v && x(s, v)) return v;
12184
10499
  }
12185
10500
  } else {
12186
- let p;
10501
+ let w;
12187
10502
  try {
12188
- p = v(e, t, { extensions: [".json"] });
10503
+ w = T(e, t, { extensions: [".json"] });
12189
10504
  } catch {
12190
- p = v(PATH.join(e, le), t);
10505
+ w = T(PATH.join(e, le), t);
12191
10506
  }
12192
- if (p) return p;
10507
+ if (w) return w;
12193
10508
  }
12194
10509
  } catch {}
12195
10510
  }
12196
- const g = O(PATH.resolve(t), PATH.join("node_modules", i), s);
12197
- if (!g || !Q(s, g).isDirectory()) return;
12198
- const w = PATH.join(g, se);
12199
- if (x(s, w)) {
12200
- const v = te(w, f, !1, s);
12201
- if (v === !1) return;
12202
- if (v && x(s, v) && Q(s, v).isFile()) return v;
12203
- }
12204
- const d = PATH.join(g, f), _ = d.endsWith(".json");
12205
- if (!_) {
12206
- const v = `${d}.json`;
12207
- if (x(s, v)) return v;
12208
- }
12209
- if (x(s, d)) {
12210
- if (Q(s, d).isDirectory()) {
12211
- const v = PATH.join(d, se);
12212
- if (x(s, v)) {
12213
- const L = te(v, "", !0, s);
12214
- if (L && x(s, L)) return L;
12215
- }
12216
- const p = PATH.join(d, le);
12217
- if (x(s, p)) return p;
12218
- } else if (_) return d;
10511
+ const d = O(PATH.resolve(t), PATH.join("node_modules", f), s);
10512
+ if (!d || !((n = H(s, d)) != null && n.isDirectory())) return;
10513
+ const b = Pe$1(s, d), _ = PATH.join(b, se);
10514
+ if (x(s, _)) {
10515
+ const T = te(_, u, !1, s);
10516
+ if (T === !1) return;
10517
+ if (T && x(s, T) && H(s, T).isFile()) return T;
10518
+ }
10519
+ const h = PATH.join(b, u), D = h.endsWith(".json");
10520
+ if (!D) {
10521
+ const T = `${h}.json`;
10522
+ if (x(s, T)) return T;
10523
+ }
10524
+ if (x(s, h)) {
10525
+ if (H(s, h).isDirectory()) {
10526
+ const T = PATH.join(h, se);
10527
+ if (x(s, T)) {
10528
+ const v = te(T, "", !0, s);
10529
+ if (v && x(s, v)) return v;
10530
+ }
10531
+ const w = PATH.join(h, le);
10532
+ if (x(s, w)) return w;
10533
+ } else if (D) return h;
12219
10534
  }
12220
10535
  }, "resolveExtendsPath");
12221
- const oe = r((e, t) => H(PATH.relative(e, t)), "pathRelative");
12222
- const be = [
10536
+ const oe = i((e, t) => X(PATH.relative(e, t)), "pathRelative");
10537
+ const pe = [
12223
10538
  "files",
12224
10539
  "include",
12225
10540
  "exclude"
12226
10541
  ];
12227
- const N = r((e, t, s) => {
10542
+ const N = i((e, t, s) => {
12228
10543
  const n = PATH.join(t, s);
12229
- return h(PATH.relative(e, n)) || "./";
10544
+ return L(PATH.relative(e, n)) || "./";
12230
10545
  }, "resolveAndRelativize");
12231
- const ze = r((e, t, s) => {
10546
+ const Qe = i((e, t, s) => {
12232
10547
  const n = PATH.relative(e, t);
12233
10548
  if (!n) return s;
12234
- return h(`${n}/${s.startsWith("./") ? s.slice(2) : s}`);
10549
+ return L(`${n}/${s.startsWith("./") ? s.slice(2) : s}`);
12235
10550
  }, "prefixPattern");
12236
- const Ge = r((e, t, s, n) => {
12237
- const o = Ve(e, t, n);
10551
+ const He = i((e, t, s, n) => {
10552
+ const o = Ge(e, t, n);
12238
10553
  if (!o) throw new Error(`File '${e}' not found.`);
12239
10554
  if (s.has(o)) throw new Error(`Circularity detected while resolving configuration: ${o}`);
12240
10555
  s.add(o);
12241
- const l = PATH.dirname(o), i = pe(o, n, s);
12242
- delete i.references;
12243
- const { compilerOptions: f } = i;
10556
+ const l = PATH.dirname(o), r = ve(o, n, s);
10557
+ delete r.references;
10558
+ const { compilerOptions: f } = r;
12244
10559
  if (f) {
12245
10560
  const { baseUrl: u } = f;
12246
10561
  u && !u.startsWith(E) && (f.baseUrl = N(t, l, u));
12247
10562
  const { outDir: g } = f;
12248
10563
  g && !g.startsWith(E) && (f.outDir = N(t, l, g));
12249
- const { declarationDir: w } = f;
12250
- w && !w.startsWith(E) && (f.declarationDir = N(t, l, w));
12251
- const { rootDir: d } = f;
12252
- d && !d.startsWith(E) && (f.rootDir = N(t, l, d));
10564
+ const { declarationDir: d } = f;
10565
+ d && !d.startsWith(E) && (f.declarationDir = N(t, l, d));
10566
+ const { rootDir: b } = f;
10567
+ b && !b.startsWith(E) && (f.rootDir = N(t, l, b));
12253
10568
  const { rootDirs: _ } = f;
12254
- _ && (f.rootDirs = _.map((p) => p.startsWith(E) ? p : N(t, l, p)));
12255
- const { typeRoots: v } = f;
12256
- v && (f.typeRoots = v.map((p) => p.startsWith(E) ? p : N(t, l, p)));
10569
+ _ && (f.rootDirs = _.map((D) => D.startsWith(E) ? D : N(t, l, D)));
10570
+ const { typeRoots: h } = f;
10571
+ h && (f.typeRoots = h.map((D) => D.startsWith(E) ? D : N(t, l, D)));
12257
10572
  }
12258
- for (const u of be) {
12259
- const g = i[u];
12260
- g && (i[u] = g.map((w) => w.startsWith(E) ? w : ze(t, l, w)));
10573
+ for (const u of pe) {
10574
+ const g = r[u];
10575
+ g && (r[u] = g.map((d) => d.startsWith(E) ? d : Qe(t, l, d)));
12261
10576
  }
12262
- return i;
10577
+ return r;
12263
10578
  }, "resolveExtends");
12264
- const ve = ["outDir", "declarationDir"];
12265
- const pe = r((e, t, s = /* @__PURE__ */ new Set()) => {
10579
+ const be = ["outDir", "declarationDir"];
10580
+ const ve = i((e, t, s = /* @__PURE__ */ new Set()) => {
12266
10581
  let n;
12267
10582
  try {
12268
- n = we(e, t) || {};
10583
+ n = de(e, t) || {};
12269
10584
  } catch {
12270
10585
  throw new Error(`Cannot resolve tsconfig at path: ${e}`);
12271
10586
  }
@@ -12278,8 +10593,8 @@ const pe = r((e, t, s = /* @__PURE__ */ new Set()) => {
12278
10593
  if (n.extends) {
12279
10594
  const l = Array.isArray(n.extends) ? n.extends : [n.extends];
12280
10595
  delete n.extends;
12281
- for (const i of l.reverse()) {
12282
- const f = Ge(i, o, new Set(s), t), u = {
10596
+ for (const r of l.reverse()) {
10597
+ const f = He(r, o, new Set(s), t), u = {
12283
10598
  ...f,
12284
10599
  ...n,
12285
10600
  compilerOptions: {
@@ -12302,21 +10617,21 @@ const pe = r((e, t, s = /* @__PURE__ */ new Set()) => {
12302
10617
  l[f] = oe(o, g);
12303
10618
  }
12304
10619
  }
12305
- for (const f of ve) {
10620
+ for (const f of be) {
12306
10621
  let u = l[f];
12307
- u && (Array.isArray(n.exclude) || (n.exclude = ve.map((g) => l[g]).filter(Boolean)), u.startsWith(E) || (u = H(u)), l[f] = u);
10622
+ u && (Array.isArray(n.exclude) || (n.exclude = be.map((g) => l[g]).filter(Boolean)), u.startsWith(E) || (u = X(u)), l[f] = u);
12308
10623
  }
12309
10624
  } else n.compilerOptions = {};
12310
- if (n.include && (n.include = n.include.map(h)), n.files && (n.files = n.files.map((l) => l.startsWith(E) ? l : H(l))), n.watchOptions) {
10625
+ if (n.include && (n.include = n.include.map(L)), n.files && (n.files = n.files.map((l) => l.startsWith(E) ? l : X(l))), n.watchOptions) {
12311
10626
  const { watchOptions: l } = n;
12312
- l.excludeDirectories && (l.excludeDirectories = l.excludeDirectories.map((i) => h(PATH.resolve(o, i)))), l.excludeFiles && (l.excludeFiles = l.excludeFiles.map((i) => h(PATH.resolve(o, i)))), l.watchFile && (l.watchFile = l.watchFile.toLowerCase()), l.watchDirectory && (l.watchDirectory = l.watchDirectory.toLowerCase()), l.fallbackPolling && (l.fallbackPolling = l.fallbackPolling.toLowerCase());
10627
+ l.excludeDirectories && (l.excludeDirectories = l.excludeDirectories.map((r) => L(PATH.resolve(o, r)))), l.excludeFiles && (l.excludeFiles = l.excludeFiles.map((r) => L(PATH.resolve(o, r)))), l.watchFile && (l.watchFile = l.watchFile.toLowerCase()), l.watchDirectory && (l.watchDirectory = l.watchDirectory.toLowerCase()), l.fallbackPolling && (l.fallbackPolling = l.fallbackPolling.toLowerCase());
12313
10628
  }
12314
10629
  return n;
12315
10630
  }, "_parseTsconfig");
12316
- const Y = r((e, t) => {
12317
- if (e.startsWith(E)) return h(PATH.join(t, e.slice(12)));
10631
+ const Z = i((e, t) => {
10632
+ if (e.startsWith(E)) return L(PATH.join(t, e.slice(12)));
12318
10633
  }, "interpolateConfigDir");
12319
- const Qe = [
10634
+ const Xe = [
12320
10635
  "outDir",
12321
10636
  "declarationDir",
12322
10637
  "outFile",
@@ -12324,8 +10639,8 @@ const Qe = [
12324
10639
  "baseUrl",
12325
10640
  "tsBuildInfoFile"
12326
10641
  ];
12327
- const He = r((e) => {
12328
- if (e.strict) for (const I of [
10642
+ const Ye = i((e) => {
10643
+ if (e.strict) for (const $ of [
12329
10644
  "noImplicitAny",
12330
10645
  "noImplicitThis",
12331
10646
  "strictNullChecks",
@@ -12335,7 +10650,7 @@ const He = r((e) => {
12335
10650
  "strictBuiltinIteratorReturn",
12336
10651
  "alwaysStrict",
12337
10652
  "useUnknownInCatchVariables"
12338
- ]) e[I] === void 0 && (e[I] = !0);
10653
+ ]) e[$] === void 0 && (e[$] = !0);
12339
10654
  if (e.composite && (e.declaration ??= !0, e.incremental ??= !0), e.target) {
12340
10655
  let a = e.target.toLowerCase();
12341
10656
  a === "es2015" && (a = "es6"), e.target = a, a === "esnext" && (e.module ??= "es6", e.useDefineForClassFields ??= !0), (a === "es6" || a === "es2016" || a === "es2017" || a === "es2018" || a === "es2019" || a === "es2020" || a === "es2021" || a === "es2022" || a === "es2023" || a === "es2024") && (e.module ??= "es6"), (a === "es2022" || a === "es2023" || a === "es2024") && (e.useDefineForClassFields ??= !0);
@@ -12343,8 +10658,8 @@ const He = r((e) => {
12343
10658
  if (e.module) {
12344
10659
  let a = e.module.toLowerCase();
12345
10660
  if (a === "es2015" && (a = "es6"), e.module = a, (a === "es6" || a === "es2020" || a === "es2022" || a === "esnext" || a === "none" || a === "system" || a === "umd" || a === "amd") && (e.moduleResolution ??= "classic"), a === "system" && (e.allowSyntheticDefaultImports ??= !0), (a === "node16" || a === "node18" || a === "node20" || a === "nodenext" || a === "preserve") && (e.esModuleInterop ??= !0, e.allowSyntheticDefaultImports ??= !0), (a === "node16" || a === "node18" || a === "node20" || a === "nodenext") && (e.moduleDetection ??= "force"), a === "node16" && (e.target ??= "es2022", e.moduleResolution ??= "node16"), a === "node18" && (e.target ??= "es2022", e.moduleResolution ??= "node16"), a === "node20" && (e.target ??= "es2023", e.moduleResolution ??= "node16", e.resolveJsonModule ??= !0), a === "nodenext" && (e.target ??= "esnext", e.moduleResolution ??= "nodenext", e.resolveJsonModule ??= !0), a === "node16" || a === "node18" || a === "node20" || a === "nodenext") {
12346
- const I = e.target;
12347
- (I === "es3" || I === "es2022" || I === "es2023" || I === "es2024" || I === "esnext") && (e.useDefineForClassFields ??= !0);
10661
+ const $ = e.target;
10662
+ ($ === "es3" || $ === "es2022" || $ === "es2023" || $ === "es2024" || $ === "esnext") && (e.useDefineForClassFields ??= !0);
12348
10663
  }
12349
10664
  a === "preserve" && (e.moduleResolution ??= "bundler");
12350
10665
  }
@@ -12354,52 +10669,52 @@ const He = r((e) => {
12354
10669
  }
12355
10670
  e.jsx && (e.jsx = e.jsx.toLowerCase()), e.moduleDetection && (e.moduleDetection = e.moduleDetection.toLowerCase()), e.importsNotUsedAsValues && (e.importsNotUsedAsValues = e.importsNotUsedAsValues.toLowerCase()), e.newLine && (e.newLine = e.newLine.toLowerCase()), e.esModuleInterop && (e.allowSyntheticDefaultImports ??= !0), e.verbatimModuleSyntax && (e.isolatedModules ??= !0, e.preserveConstEnums ??= !0), e.isolatedModules && (e.preserveConstEnums ??= !0), e.rewriteRelativeImportExtensions && (e.allowImportingTsExtensions ??= !0), e.lib && (e.lib = e.lib.map((a) => a.toLowerCase())), e.checkJs && (e.allowJs ??= !0);
12356
10671
  }, "normalizeCompilerOptions");
12357
- const ie = r((e, t = /* @__PURE__ */ new Map()) => {
12358
- const s = PATH.resolve(e), n = pe(s, t), o = PATH.dirname(s), { compilerOptions: l } = n;
10672
+ const ie = i((e, t = /* @__PURE__ */ new Map()) => {
10673
+ const s = PATH.resolve(e), n = ve(s, t), o = PATH.dirname(s), { compilerOptions: l } = n;
12359
10674
  if (l) {
12360
- for (const f of Qe) {
10675
+ for (const f of Xe) {
12361
10676
  const u = l[f];
12362
10677
  if (u) {
12363
- const g = Y(u, o);
10678
+ const g = Z(u, o);
12364
10679
  l[f] = g ? oe(o, g) : u;
12365
10680
  }
12366
10681
  }
12367
10682
  for (const f of ["rootDirs", "typeRoots"]) {
12368
10683
  const u = l[f];
12369
10684
  u && (l[f] = u.map((g) => {
12370
- const w = Y(g, o);
12371
- return w ? oe(o, w) : H(g);
10685
+ const d = Z(g, o);
10686
+ return d ? oe(o, d) : X(g);
12372
10687
  }));
12373
10688
  }
12374
- const { paths: i } = l;
12375
- if (i) for (const f of Object.keys(i)) i[f] = i[f].map((u) => {
10689
+ const { paths: r } = l;
10690
+ if (r) for (const f of Object.keys(r)) r[f] = r[f].map((u) => {
12376
10691
  var g;
12377
- return (g = Y(u, o)) != null ? g : u;
10692
+ return (g = Z(u, o)) != null ? g : u;
12378
10693
  });
12379
- He(l);
10694
+ Ye(l);
12380
10695
  }
12381
- for (const i of be) {
12382
- const f = n[i];
12383
- f && (n[i] = f.map((u) => {
10696
+ for (const r of pe) {
10697
+ const f = n[r];
10698
+ f && (n[r] = f.map((u) => {
12384
10699
  var g;
12385
- return (g = Y(u, o)) != null ? g : u;
10700
+ return (g = Z(u, o)) != null ? g : u;
12386
10701
  }));
12387
10702
  }
12388
10703
  return n;
12389
10704
  }, "parseTsconfig");
12390
- var Xe = Object.defineProperty;
12391
- var Z = r((e, t) => Xe(e, "name", {
10705
+ var Ze = Object.defineProperty;
10706
+ var q = i((e, t) => Ze(e, "name", {
12392
10707
  value: t,
12393
10708
  configurable: !0
12394
10709
  }), "s");
12395
- const Te = Z((e) => {
10710
+ const Te = q((e) => {
12396
10711
  let t = "";
12397
10712
  for (let s = 0; s < e.length; s += 1) {
12398
10713
  const n = e[s], o = n.toUpperCase();
12399
10714
  t += n === o ? n.toLowerCase() : o;
12400
10715
  }
12401
10716
  return t;
12402
- }, "invertCase"), re = /* @__PURE__ */ new Map(), Ae = Z((e, t) => {
10717
+ }, "invertCase"), re = /* @__PURE__ */ new Map(), Ae = q((e, t) => {
12403
10718
  const s = Re.join(e, `.is-fs-case-sensitive-test-${process.pid}`);
12404
10719
  try {
12405
10720
  return t.writeFileSync(s, ""), !t.existsSync(Te(s));
@@ -12408,19 +10723,19 @@ const Te = Z((e) => {
12408
10723
  t.unlinkSync(s);
12409
10724
  } catch {}
12410
10725
  }
12411
- }, "checkDirectoryCaseWithWrite"), Ye = Z((e, t, s) => {
10726
+ }, "checkDirectoryCaseWithWrite"), qe = q((e, t, s) => {
12412
10727
  try {
12413
10728
  return Ae(e, s);
12414
10729
  } catch (n) {
12415
10730
  if (t === void 0) return Ae(Ue.tmpdir(), s);
12416
10731
  throw n;
12417
10732
  }
12418
- }, "checkDirectoryCaseWithFallback"), Ze = Z((e, t = $e, s = !0) => {
10733
+ }, "checkDirectoryCaseWithFallback"), Ke = q((e, t = Ie, s = !0) => {
12419
10734
  const n = e != null ? e : process.cwd();
12420
10735
  if (s && re.has(n)) return re.get(n);
12421
10736
  let o;
12422
10737
  const l = Te(n);
12423
- return l !== n && t.existsSync(n) ? o = !t.existsSync(l) : o = Ye(n, e, t), s && re.set(n, o), o;
10738
+ return l !== n && t.existsSync(n) ? o = !t.existsSync(l) : o = qe(n, e, t), s && re.set(n, o), o;
12424
10739
  }, "isFsCaseSensitive"), { join: _e } = PATH.posix, ue = {
12425
10740
  ts: [
12426
10741
  ".ts",
@@ -12429,79 +10744,79 @@ const Te = Z((e) => {
12429
10744
  ],
12430
10745
  cts: [".cts", ".d.cts"],
12431
10746
  mts: [".mts", ".d.mts"]
12432
- }, qe = r((e) => {
10747
+ }, Oe = i((e) => {
12433
10748
  const t = [...ue.ts], s = [...ue.cts], n = [...ue.mts];
12434
10749
  return e != null && e.allowJs && (t.push(".js", ".jsx"), s.push(".cjs"), n.push(".mjs")), [
12435
10750
  ...t,
12436
10751
  ...s,
12437
10752
  ...n
12438
10753
  ];
12439
- }, "getSupportedExtensions"), Ke = r((e) => {
10754
+ }, "getSupportedExtensions"), Ce = i((e) => {
12440
10755
  const t = [];
12441
10756
  if (!e) return t;
12442
10757
  const { outDir: s, declarationDir: n } = e;
12443
10758
  return s && t.push(s), n && t.push(n), t;
12444
- }, "getDefaultExcludeSpec"), ye = r((e) => e.replaceAll(/[.*+?^${}()|[\]\\]/g, String.raw`\$&`), "escapeForRegexp"), fe = `(?!(${[
10759
+ }, "getDefaultExcludeSpec"), ye = i((e) => e.replaceAll(/[.*+?^${}()|[\]\\]/g, String.raw`\$&`), "escapeForRegexp"), fe = `(?!(${[
12445
10760
  "node_modules",
12446
10761
  "bower_components",
12447
10762
  "jspm_packages"
12448
- ].join("|")})(/|$))`, Ce = /(?:^|\/)[^.*?]+$/, je = "**/*", q = "[^/]", ae = "[^./]", Fe = process.platform === "win32", De = r(({ config: e, path: t }, s = Ze()) => {
10763
+ ].join("|")})(/|$))`, nn = /(?:^|\/)[^.*?]+$/, je = "**/*", K = "[^/]", ae = "[^./]", Fe = process.platform === "win32", De = i(({ config: e, path: t }, s = Ke()) => {
12449
10764
  if ("extends" in e) throw new Error("tsconfig#extends must be resolved. Use getTsconfig or parseTsconfig to resolve it.");
12450
10765
  if (!PATH.isAbsolute(t)) throw new Error("The tsconfig path must be absolute");
12451
- Fe && (t = h(t));
12452
- const n = PATH.dirname(t), { files: o, include: l, exclude: i, compilerOptions: f } = e, u = r((A) => PATH.isAbsolute(A) ? A : _e(n, A), "resolvePattern"), g = o == null ? void 0 : o.map(u), w = qe(f), d = s ? "" : "i", v = (i || Ke(f)).map((A) => {
12453
- const D = u(A), B = ye(D).replaceAll(String.raw`\*\*/`, "(.+/)?").replaceAll(String.raw`\*`, `${q}*`).replaceAll(String.raw`\?`, q);
12454
- return new RegExp(`^${B}($|/)`, d);
12455
- }), p = o || l ? l : [je], L = p ? p.map((A) => {
12456
- let D = u(A);
12457
- Ce.test(D) && (D = _e(D, je));
12458
- const B = ye(D).replaceAll(String.raw`/\*\*`, `(/${fe}${ae}${q}*)*?`).replaceAll(/(\/)?\\\*/g, (c, j) => {
10766
+ Fe && (t = L(t));
10767
+ const n = PATH.dirname(t), { files: o, include: l, exclude: r, compilerOptions: f } = e, u = i((w) => PATH.isAbsolute(w) ? w : _e(n, w), "resolvePattern"), g = o == null ? void 0 : o.map(u), d = Oe(f), b = s ? "" : "i", h = (r || Ce(f)).map((w) => {
10768
+ const v = u(w), B = ye(v).replaceAll(String.raw`\*\*/`, "(.+/)?").replaceAll(String.raw`\*`, `${K}*`).replaceAll(String.raw`\?`, K);
10769
+ return new RegExp(`^${B}($|/)`, b);
10770
+ }), D = o || l ? l : [je], T = D ? D.map((w) => {
10771
+ let v = u(w);
10772
+ nn.test(v) && (v = _e(v, je));
10773
+ const B = ye(v).replaceAll(String.raw`/\*\*`, `(/${fe}${ae}${K}*)*?`).replaceAll(/(\/)?\\\*/g, (c, j) => {
12459
10774
  const y = `(${ae}|(\\.(?!min\\.js$))?)*`;
12460
10775
  return j ? `/${fe}${ae}${y}` : y;
12461
10776
  }).replaceAll(/(\/)?\\\?/g, (c, j) => {
12462
- const y = q;
10777
+ const y = K;
12463
10778
  return j ? `/${fe}${y}` : y;
12464
10779
  });
12465
- return new RegExp(`^${B}$`, d);
10780
+ return new RegExp(`^${B}$`, b);
12466
10781
  }) : void 0;
12467
- return (A) => {
12468
- if (!PATH.isAbsolute(A)) throw new Error("filePath must be absolute");
12469
- if (Fe && (A = h(A)), g != null && g.includes(A)) return e;
12470
- if (!(!w.some((D) => A.endsWith(D)) || v.some((D) => D.test(A))) && L && L.some((D) => D.test(A))) return e;
10782
+ return (w) => {
10783
+ if (!PATH.isAbsolute(w)) throw new Error("filePath must be absolute");
10784
+ if (Fe && (w = L(w)), g != null && g.includes(w)) return e;
10785
+ if (!(!d.some((v) => w.endsWith(v)) || h.some((v) => v.test(w))) && T && T.some((v) => v.test(w))) return e;
12471
10786
  };
12472
- }, "createFilesMatcher"), Le = r((e, t, s) => {
10787
+ }, "createFilesMatcher"), he = i((e, t, s) => {
12473
10788
  const n = PATH.resolve(e);
12474
- let o = h(e);
10789
+ let o = L(e);
12475
10790
  for (;;) {
12476
10791
  const l = O(o, t, s);
12477
10792
  if (!l) return;
12478
- const i = PATH.resolve(l), f = ie(i, s), u = {
12479
- path: h(i),
10793
+ const r = PATH.resolve(l), f = ie(r, s), u = {
10794
+ path: L(r),
12480
10795
  config: f
12481
10796
  };
12482
10797
  if (De(u)(n)) return u;
12483
- const w = PATH.dirname(l), d = PATH.dirname(w);
12484
- if (d === w) return;
12485
- o = d;
10798
+ const d = PATH.dirname(l), b = PATH.dirname(d);
10799
+ if (b === d) return;
10800
+ o = b;
12486
10801
  }
12487
- }, "findConfigApplicable"), he = r((e = process.cwd(), t = "tsconfig.json", s = /* @__PURE__ */ new Map(), n = !1) => {
10802
+ }, "findConfigApplicable"), Le = i((e = process.cwd(), t = "tsconfig.json", s = /* @__PURE__ */ new Map(), n = !1) => {
12488
10803
  var o;
12489
- return n ? (o = Le(e, t, s)) == null ? void 0 : o.path : O(h(e), t, s);
12490
- }, "findTsconfig"), en = r((e = process.cwd(), t = "tsconfig.json", s = /* @__PURE__ */ new Map(), n = !1) => {
10804
+ return n ? (o = he(e, t, s)) == null ? void 0 : o.path : O(L(e), t, s);
10805
+ }, "findTsconfig"), tn = i((e = process.cwd(), t = "tsconfig.json", s = /* @__PURE__ */ new Map(), n = !1) => {
12491
10806
  var o;
12492
10807
  if (!n) {
12493
- const l = he(e, t, s);
10808
+ const l = Le(e, t, s);
12494
10809
  if (!l) return null;
12495
10810
  return {
12496
10811
  path: l,
12497
10812
  config: ie(l, s)
12498
10813
  };
12499
10814
  }
12500
- return (o = Le(e, t, s)) != null ? o : null;
12501
- }, "getTsconfig"), nn = /\*/g, Ee = r((e, t) => {
12502
- const s = e.match(nn);
10815
+ return (o = he(e, t, s)) != null ? o : null;
10816
+ }, "getTsconfig"), sn = /\*/g, Ee = i((e, t) => {
10817
+ const s = e.match(sn);
12503
10818
  if (s && s.length > 1) throw new Error(t);
12504
- }, "assertStarCount"), tn = r((e) => {
10819
+ }, "assertStarCount"), ln = i((e) => {
12505
10820
  if (e.includes("*")) {
12506
10821
  const [t, s] = e.split("*");
12507
10822
  return {
@@ -12510,31 +10825,31 @@ const Te = Z((e) => {
12510
10825
  };
12511
10826
  }
12512
10827
  return e;
12513
- }, "parsePattern"), sn = r(({ prefix: e, suffix: t }, s) => s.startsWith(e) && s.endsWith(t), "isPatternMatch"), ln = r((e, t, s) => Object.entries(e).map(([n, o]) => (Ee(n, `Pattern '${n}' can have at most one '*' character.`), {
12514
- pattern: tn(n),
10828
+ }, "parsePattern"), on = i(({ prefix: e, suffix: t }, s) => s.startsWith(e) && s.endsWith(t), "isPatternMatch"), rn = i((e, t, s) => Object.entries(e).map(([n, o]) => (Ee(n, `Pattern '${n}' can have at most one '*' character.`), {
10829
+ pattern: ln(n),
12515
10830
  substitutions: o.map((l) => {
12516
10831
  if (Ee(l, `Substitution '${l}' in pattern '${n}' can have at most one '*' character.`), !t && !C.test(l) && !PATH.isAbsolute(l)) throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");
12517
10832
  return PATH.resolve(s, l);
12518
10833
  })
12519
10834
  })), "parsePaths");
12520
- r((e) => {
10835
+ i((e) => {
12521
10836
  const { compilerOptions: t } = e.config;
12522
10837
  if (!t) return null;
12523
10838
  const { baseUrl: s, paths: n } = t;
12524
10839
  if (!s && !n) return null;
12525
- const o = ne in t && t[ne], l = PATH.resolve(PATH.dirname(e.path), s || o || "."), i = n ? ln(n, s, l) : [];
10840
+ const o = ne in t && t[ne], l = PATH.resolve(PATH.dirname(e.path), s || o || "."), r = n ? rn(n, s, l) : [];
12526
10841
  return (f) => {
12527
10842
  if (C.test(f)) return [];
12528
10843
  const u = [];
12529
- for (const _ of i) {
12530
- if (_.pattern === f) return _.substitutions.map(h);
10844
+ for (const _ of r) {
10845
+ if (_.pattern === f) return _.substitutions.map(L);
12531
10846
  typeof _.pattern != "string" && u.push(_);
12532
10847
  }
12533
- let g, w = -1;
12534
- for (const _ of u) sn(_.pattern, f) && _.pattern.prefix.length > w && (w = _.pattern.prefix.length, g = _);
12535
- if (!g) return s ? [h(PATH.join(l, f))] : [];
12536
- const d = f.slice(g.pattern.prefix.length, f.length - g.pattern.suffix.length);
12537
- return g.substitutions.map((_) => h(_.replace("*", d)));
10848
+ let g, d = -1;
10849
+ for (const _ of u) on(_.pattern, f) && _.pattern.prefix.length > d && (d = _.pattern.prefix.length, g = _);
10850
+ if (!g) return s ? [L(PATH.join(l, f))] : [];
10851
+ const b = f.slice(g.pattern.prefix.length, f.length - g.pattern.suffix.length);
10852
+ return g.substitutions.map((_) => L(_.replace("*", b)));
12538
10853
  };
12539
10854
  }, "createPathsMatcher");
12540
10855
  //#endregion
@@ -12546,7 +10861,7 @@ const readRootTsconfigModule = (pkg) => {
12546
10861
  return typeof module === "string" ? module : void 0;
12547
10862
  };
12548
10863
  const readResolvedTsconfigTypes = (pkg) => {
12549
- const compilerOptions = en(PATH.resolve(pkg), "tsconfig.json")?.config?.compilerOptions;
10864
+ const compilerOptions = tn(PATH.resolve(pkg), "tsconfig.json")?.config?.compilerOptions;
12550
10865
  if (!compilerOptions || !("types" in compilerOptions)) return;
12551
10866
  const { types } = compilerOptions;
12552
10867
  if (!Array.isArray(types)) return;
@@ -13088,9 +11403,10 @@ function createDeclarationEmitter(isVerbose = false) {
13088
11403
  let promise = declarationPromises.get(key);
13089
11404
  if (!promise) {
13090
11405
  promise = (async () => {
11406
+ const dtsConfig = writeTypescriptConfig(cwd(), platform, srcDir, true, outDir);
13091
11407
  return {
13092
11408
  outDir,
13093
- result: runTsc(writeTypescriptConfig(cwd(), platform, srcDir, true, outDir), isVerbose)
11409
+ result: runTsc(dtsConfig, isVerbose)
13094
11410
  };
13095
11411
  })();
13096
11412
  declarationPromises.set(key, promise);