@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
+ ];
374
422
  }
375
- if (model === "hex") return getModelAnsi("rgb", level, type, ...ansiStyles.hexToRgb(...arguments_));
376
- return ansiStyles[type][model](...arguments_);
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
+ ];
432
+ }
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 = [
@@ -4272,1768 +4346,6 @@ function listDeclaredWorkspaces(cwd = process.cwd()) {
4272
4346
  return workspaces.toSorted((a, b) => a.location.localeCompare(b.location));
4273
4347
  }
4274
4348
  //#endregion
4275
- //#region ../../node_modules/.pnpm/resolve-from@4.0.0/node_modules/resolve-from/index.js
4276
- var require_resolve_from = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4277
- const path$3 = __require("path");
4278
- const Module = __require("module");
4279
- const fs$1 = __require("fs");
4280
- const resolveFrom = (fromDir, moduleId, silent) => {
4281
- if (typeof fromDir !== "string") throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDir}\``);
4282
- if (typeof moduleId !== "string") throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof moduleId}\``);
4283
- try {
4284
- fromDir = fs$1.realpathSync(fromDir);
4285
- } catch (err) {
4286
- if (err.code === "ENOENT") fromDir = path$3.resolve(fromDir);
4287
- else if (silent) return null;
4288
- else throw err;
4289
- }
4290
- const fromFile = path$3.join(fromDir, "noop.js");
4291
- const resolveFileName = () => Module._resolveFilename(moduleId, {
4292
- id: fromFile,
4293
- filename: fromFile,
4294
- paths: Module._nodeModulePaths(fromDir)
4295
- });
4296
- if (silent) try {
4297
- return resolveFileName();
4298
- } catch (err) {
4299
- return null;
4300
- }
4301
- return resolveFileName();
4302
- };
4303
- module.exports = (fromDir, moduleId) => resolveFrom(fromDir, moduleId);
4304
- module.exports.silent = (fromDir, moduleId) => resolveFrom(fromDir, moduleId, true);
4305
- }));
4306
- //#endregion
4307
- //#region ../../node_modules/.pnpm/callsites@3.1.0/node_modules/callsites/index.js
4308
- var require_callsites = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4309
- const callsites = () => {
4310
- const _prepareStackTrace = Error.prepareStackTrace;
4311
- Error.prepareStackTrace = (_, stack) => stack;
4312
- const stack = (/* @__PURE__ */ new Error()).stack.slice(1);
4313
- Error.prepareStackTrace = _prepareStackTrace;
4314
- return stack;
4315
- };
4316
- module.exports = callsites;
4317
- module.exports.default = callsites;
4318
- }));
4319
- //#endregion
4320
- //#region ../../node_modules/.pnpm/parent-module@1.0.1/node_modules/parent-module/index.js
4321
- var require_parent_module = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4322
- const callsites = require_callsites();
4323
- module.exports = (filepath) => {
4324
- const stacks = callsites();
4325
- if (!filepath) return stacks[2].getFileName();
4326
- let seenVal = false;
4327
- stacks.shift();
4328
- for (const stack of stacks) {
4329
- const parentFilepath = stack.getFileName();
4330
- if (typeof parentFilepath !== "string") continue;
4331
- if (parentFilepath === filepath) {
4332
- seenVal = true;
4333
- continue;
4334
- }
4335
- if (parentFilepath === "module.js") continue;
4336
- if (seenVal && parentFilepath !== filepath) return parentFilepath;
4337
- }
4338
- };
4339
- }));
4340
- //#endregion
4341
- //#region ../../node_modules/.pnpm/import-fresh@3.3.1/node_modules/import-fresh/index.js
4342
- var require_import_fresh = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4343
- const path$2 = __require("path");
4344
- const resolveFrom = require_resolve_from();
4345
- const parentModule = require_parent_module();
4346
- module.exports = (moduleId) => {
4347
- if (typeof moduleId !== "string") throw new TypeError("Expected a string");
4348
- const parentPath = parentModule(__filename);
4349
- const cwd = parentPath ? path$2.dirname(parentPath) : __dirname;
4350
- const filePath = resolveFrom(cwd, moduleId);
4351
- const oldModule = __require.cache[filePath];
4352
- if (oldModule && oldModule.parent) {
4353
- let i = oldModule.parent.children.length;
4354
- while (i--) if (oldModule.parent.children[i].id === filePath) oldModule.parent.children.splice(i, 1);
4355
- }
4356
- delete __require.cache[filePath];
4357
- const parent = __require.cache[parentPath];
4358
- return parent === void 0 || parent.require === void 0 ? __require(filePath) : parent.require(filePath);
4359
- };
4360
- }));
4361
- //#endregion
4362
- //#region ../../node_modules/.pnpm/is-arrayish@0.2.1/node_modules/is-arrayish/index.js
4363
- var require_is_arrayish = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4364
- module.exports = function isArrayish(obj) {
4365
- if (!obj) return false;
4366
- return obj instanceof Array || Array.isArray(obj) || obj.length >= 0 && obj.splice instanceof Function;
4367
- };
4368
- }));
4369
- //#endregion
4370
- //#region ../../node_modules/.pnpm/error-ex@1.3.4/node_modules/error-ex/index.js
4371
- var require_error_ex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4372
- var util = __require("util");
4373
- var isArrayish = require_is_arrayish();
4374
- var errorEx = function errorEx(name, properties) {
4375
- if (!name || name.constructor !== String) {
4376
- properties = name || {};
4377
- name = Error.name;
4378
- }
4379
- var errorExError = function ErrorEXError(message) {
4380
- if (!this) return new ErrorEXError(message);
4381
- message = message instanceof Error ? message.message : message || this.message;
4382
- Error.call(this, message);
4383
- Error.captureStackTrace(this, errorExError);
4384
- this.name = name;
4385
- Object.defineProperty(this, "message", {
4386
- configurable: true,
4387
- enumerable: false,
4388
- get: function() {
4389
- var newMessage = message.split(/\r?\n/g);
4390
- for (var key in properties) {
4391
- if (!properties.hasOwnProperty(key)) continue;
4392
- var modifier = properties[key];
4393
- if ("message" in modifier) {
4394
- newMessage = modifier.message(this[key], newMessage) || newMessage;
4395
- if (!isArrayish(newMessage)) newMessage = [newMessage];
4396
- }
4397
- }
4398
- return newMessage.join("\n");
4399
- },
4400
- set: function(v) {
4401
- message = v;
4402
- }
4403
- });
4404
- var overwrittenStack = null;
4405
- var stackDescriptor = Object.getOwnPropertyDescriptor(this, "stack");
4406
- var stackGetter = stackDescriptor.get;
4407
- var stackValue = stackDescriptor.value;
4408
- delete stackDescriptor.value;
4409
- delete stackDescriptor.writable;
4410
- stackDescriptor.set = function(newstack) {
4411
- overwrittenStack = newstack;
4412
- };
4413
- stackDescriptor.get = function() {
4414
- var stack = (overwrittenStack || (stackGetter ? stackGetter.call(this) : stackValue)).split(/\r?\n+/g);
4415
- if (!overwrittenStack) stack[0] = this.name + ": " + this.message;
4416
- var lineCount = 1;
4417
- for (var key in properties) {
4418
- if (!properties.hasOwnProperty(key)) continue;
4419
- var modifier = properties[key];
4420
- if ("line" in modifier) {
4421
- var line = modifier.line(this[key]);
4422
- if (line) stack.splice(lineCount++, 0, " " + line);
4423
- }
4424
- if ("stack" in modifier) modifier.stack(this[key], stack);
4425
- }
4426
- return stack.join("\n");
4427
- };
4428
- Object.defineProperty(this, "stack", stackDescriptor);
4429
- };
4430
- if (Object.setPrototypeOf) {
4431
- Object.setPrototypeOf(errorExError.prototype, Error.prototype);
4432
- Object.setPrototypeOf(errorExError, Error);
4433
- } else util.inherits(errorExError, Error);
4434
- return errorExError;
4435
- };
4436
- errorEx.append = function(str, def) {
4437
- return { message: function(v, message) {
4438
- v = v || def;
4439
- if (v) message[0] += " " + str.replace("%s", v.toString());
4440
- return message;
4441
- } };
4442
- };
4443
- errorEx.line = function(str, def) {
4444
- return { line: function(v) {
4445
- v = v || def;
4446
- if (v) return str.replace("%s", v.toString());
4447
- return null;
4448
- } };
4449
- };
4450
- module.exports = errorEx;
4451
- }));
4452
- //#endregion
4453
- //#region ../../node_modules/.pnpm/json-parse-even-better-errors@2.3.1/node_modules/json-parse-even-better-errors/index.js
4454
- var require_json_parse_even_better_errors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4455
- const hexify = (char) => {
4456
- const h = char.charCodeAt(0).toString(16).toUpperCase();
4457
- return "0x" + (h.length % 2 ? "0" : "") + h;
4458
- };
4459
- const parseError = (e, txt, context) => {
4460
- if (!txt) return {
4461
- message: e.message + " while parsing empty string",
4462
- position: 0
4463
- };
4464
- const badToken = e.message.match(/^Unexpected token (.) .*position\s+(\d+)/i);
4465
- const errIdx = badToken ? +badToken[2] : e.message.match(/^Unexpected end of JSON.*/i) ? txt.length - 1 : null;
4466
- const msg = badToken ? e.message.replace(/^Unexpected token ./, `Unexpected token ${JSON.stringify(badToken[1])} (${hexify(badToken[1])})`) : e.message;
4467
- if (errIdx !== null && errIdx !== void 0) {
4468
- const start = errIdx <= context ? 0 : errIdx - context;
4469
- const end = errIdx + context >= txt.length ? txt.length : errIdx + context;
4470
- const slice = (start === 0 ? "" : "...") + txt.slice(start, end) + (end === txt.length ? "" : "...");
4471
- return {
4472
- message: msg + ` while parsing ${txt === slice ? "" : "near "}${JSON.stringify(slice)}`,
4473
- position: errIdx
4474
- };
4475
- } else return {
4476
- message: msg + ` while parsing '${txt.slice(0, context * 2)}'`,
4477
- position: 0
4478
- };
4479
- };
4480
- var JSONParseError = class extends SyntaxError {
4481
- constructor(er, txt, context, caller) {
4482
- context = context || 20;
4483
- const metadata = parseError(er, txt, context);
4484
- super(metadata.message);
4485
- Object.assign(this, metadata);
4486
- this.code = "EJSONPARSE";
4487
- this.systemError = er;
4488
- Error.captureStackTrace(this, caller || this.constructor);
4489
- }
4490
- get name() {
4491
- return this.constructor.name;
4492
- }
4493
- set name(n) {}
4494
- get [Symbol.toStringTag]() {
4495
- return this.constructor.name;
4496
- }
4497
- };
4498
- const kIndent = Symbol.for("indent");
4499
- const kNewline = Symbol.for("newline");
4500
- const formatRE = /^\s*[{\[]((?:\r?\n)+)([\s\t]*)/;
4501
- const emptyRE = /^(?:\{\}|\[\])((?:\r?\n)+)?$/;
4502
- const parseJson = (txt, reviver, context) => {
4503
- const parseText = stripBOM(txt);
4504
- context = context || 20;
4505
- try {
4506
- const [, newline = "\n", indent = " "] = parseText.match(emptyRE) || parseText.match(formatRE) || [
4507
- ,
4508
- "",
4509
- ""
4510
- ];
4511
- const result = JSON.parse(parseText, reviver);
4512
- if (result && typeof result === "object") {
4513
- result[kNewline] = newline;
4514
- result[kIndent] = indent;
4515
- }
4516
- return result;
4517
- } catch (e) {
4518
- if (typeof txt !== "string" && !Buffer.isBuffer(txt)) {
4519
- const isEmptyArray = Array.isArray(txt) && txt.length === 0;
4520
- throw Object.assign(/* @__PURE__ */ new TypeError(`Cannot parse ${isEmptyArray ? "an empty array" : String(txt)}`), {
4521
- code: "EJSONPARSE",
4522
- systemError: e
4523
- });
4524
- }
4525
- throw new JSONParseError(e, parseText, context, parseJson);
4526
- }
4527
- };
4528
- const stripBOM = (txt) => String(txt).replace(/^\uFEFF/, "");
4529
- module.exports = parseJson;
4530
- parseJson.JSONParseError = JSONParseError;
4531
- parseJson.noExceptions = (txt, reviver) => {
4532
- try {
4533
- return JSON.parse(stripBOM(txt), reviver);
4534
- } catch (e) {}
4535
- };
4536
- }));
4537
- //#endregion
4538
- //#region ../../node_modules/.pnpm/lines-and-columns@1.2.4/node_modules/lines-and-columns/build/index.js
4539
- var require_build = /* @__PURE__ */ __commonJSMin(((exports) => {
4540
- exports.__esModule = true;
4541
- exports.LinesAndColumns = void 0;
4542
- var LF = "\n";
4543
- var CR = "\r";
4544
- var LinesAndColumns = function() {
4545
- function LinesAndColumns(string) {
4546
- this.string = string;
4547
- var offsets = [0];
4548
- for (var offset = 0; offset < string.length;) switch (string[offset]) {
4549
- case LF:
4550
- offset += LF.length;
4551
- offsets.push(offset);
4552
- break;
4553
- case CR:
4554
- offset += CR.length;
4555
- if (string[offset] === LF) offset += LF.length;
4556
- offsets.push(offset);
4557
- break;
4558
- default:
4559
- offset++;
4560
- break;
4561
- }
4562
- this.offsets = offsets;
4563
- }
4564
- LinesAndColumns.prototype.locationForIndex = function(index) {
4565
- if (index < 0 || index > this.string.length) return null;
4566
- var line = 0;
4567
- var offsets = this.offsets;
4568
- while (offsets[line + 1] <= index) line++;
4569
- var column = index - offsets[line];
4570
- return {
4571
- line,
4572
- column
4573
- };
4574
- };
4575
- LinesAndColumns.prototype.indexForLocation = function(location) {
4576
- var line = location.line, column = location.column;
4577
- if (line < 0 || line >= this.offsets.length) return null;
4578
- if (column < 0 || column > this.lengthOfLine(line)) return null;
4579
- return this.offsets[line] + column;
4580
- };
4581
- LinesAndColumns.prototype.lengthOfLine = function(line) {
4582
- var offset = this.offsets[line];
4583
- return (line === this.offsets.length - 1 ? this.string.length : this.offsets[line + 1]) - offset;
4584
- };
4585
- return LinesAndColumns;
4586
- }();
4587
- exports.LinesAndColumns = LinesAndColumns;
4588
- exports["default"] = LinesAndColumns;
4589
- }));
4590
- //#endregion
4591
- //#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
4592
- var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4593
- let p = process || {};
4594
- let argv = p.argv || [];
4595
- let env = p.env || {};
4596
- 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);
4597
- let formatter = (open, close, replace = open) => (input) => {
4598
- let string = "" + input, index = string.indexOf(close, open.length);
4599
- return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
4600
- };
4601
- let replaceClose = (string, close, replace, index) => {
4602
- let result = "", cursor = 0;
4603
- do {
4604
- result += string.substring(cursor, index) + replace;
4605
- cursor = index + close.length;
4606
- index = string.indexOf(close, cursor);
4607
- } while (~index);
4608
- return result + string.substring(cursor);
4609
- };
4610
- let createColors = (enabled = isColorSupported) => {
4611
- let f = enabled ? formatter : () => String;
4612
- return {
4613
- isColorSupported: enabled,
4614
- reset: f("\x1B[0m", "\x1B[0m"),
4615
- bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
4616
- dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
4617
- italic: f("\x1B[3m", "\x1B[23m"),
4618
- underline: f("\x1B[4m", "\x1B[24m"),
4619
- inverse: f("\x1B[7m", "\x1B[27m"),
4620
- hidden: f("\x1B[8m", "\x1B[28m"),
4621
- strikethrough: f("\x1B[9m", "\x1B[29m"),
4622
- black: f("\x1B[30m", "\x1B[39m"),
4623
- red: f("\x1B[31m", "\x1B[39m"),
4624
- green: f("\x1B[32m", "\x1B[39m"),
4625
- yellow: f("\x1B[33m", "\x1B[39m"),
4626
- blue: f("\x1B[34m", "\x1B[39m"),
4627
- magenta: f("\x1B[35m", "\x1B[39m"),
4628
- cyan: f("\x1B[36m", "\x1B[39m"),
4629
- white: f("\x1B[37m", "\x1B[39m"),
4630
- gray: f("\x1B[90m", "\x1B[39m"),
4631
- bgBlack: f("\x1B[40m", "\x1B[49m"),
4632
- bgRed: f("\x1B[41m", "\x1B[49m"),
4633
- bgGreen: f("\x1B[42m", "\x1B[49m"),
4634
- bgYellow: f("\x1B[43m", "\x1B[49m"),
4635
- bgBlue: f("\x1B[44m", "\x1B[49m"),
4636
- bgMagenta: f("\x1B[45m", "\x1B[49m"),
4637
- bgCyan: f("\x1B[46m", "\x1B[49m"),
4638
- bgWhite: f("\x1B[47m", "\x1B[49m"),
4639
- blackBright: f("\x1B[90m", "\x1B[39m"),
4640
- redBright: f("\x1B[91m", "\x1B[39m"),
4641
- greenBright: f("\x1B[92m", "\x1B[39m"),
4642
- yellowBright: f("\x1B[93m", "\x1B[39m"),
4643
- blueBright: f("\x1B[94m", "\x1B[39m"),
4644
- magentaBright: f("\x1B[95m", "\x1B[39m"),
4645
- cyanBright: f("\x1B[96m", "\x1B[39m"),
4646
- whiteBright: f("\x1B[97m", "\x1B[39m"),
4647
- bgBlackBright: f("\x1B[100m", "\x1B[49m"),
4648
- bgRedBright: f("\x1B[101m", "\x1B[49m"),
4649
- bgGreenBright: f("\x1B[102m", "\x1B[49m"),
4650
- bgYellowBright: f("\x1B[103m", "\x1B[49m"),
4651
- bgBlueBright: f("\x1B[104m", "\x1B[49m"),
4652
- bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
4653
- bgCyanBright: f("\x1B[106m", "\x1B[49m"),
4654
- bgWhiteBright: f("\x1B[107m", "\x1B[49m")
4655
- };
4656
- };
4657
- module.exports = createColors();
4658
- module.exports.createColors = createColors;
4659
- }));
4660
- //#endregion
4661
- //#region ../../node_modules/.pnpm/js-tokens@4.0.0/node_modules/js-tokens/index.js
4662
- var require_js_tokens = /* @__PURE__ */ __commonJSMin(((exports) => {
4663
- Object.defineProperty(exports, "__esModule", { value: true });
4664
- 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;
4665
- exports.matchToToken = function(match) {
4666
- var token = {
4667
- type: "invalid",
4668
- value: match[0],
4669
- closed: void 0
4670
- };
4671
- if (match[1]) token.type = "string", token.closed = !!(match[3] || match[4]);
4672
- else if (match[5]) token.type = "comment";
4673
- else if (match[6]) token.type = "comment", token.closed = !!match[7];
4674
- else if (match[8]) token.type = "regex";
4675
- else if (match[9]) token.type = "number";
4676
- else if (match[10]) token.type = "name";
4677
- else if (match[11]) token.type = "punctuator";
4678
- else if (match[12]) token.type = "whitespace";
4679
- return token;
4680
- };
4681
- }));
4682
- //#endregion
4683
- //#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/identifier.js
4684
- var require_identifier = /* @__PURE__ */ __commonJSMin(((exports) => {
4685
- Object.defineProperty(exports, "__esModule", { value: true });
4686
- exports.isIdentifierChar = isIdentifierChar;
4687
- exports.isIdentifierName = isIdentifierName;
4688
- exports.isIdentifierStart = isIdentifierStart;
4689
- let nonASCIIidentifierStartChars = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";
4690
- let nonASCIIidentifierChars = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";
4691
- const nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
4692
- const nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
4693
- nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
4694
- const astralIdentifierStartCodes = [
4695
- 0,
4696
- 11,
4697
- 2,
4698
- 25,
4699
- 2,
4700
- 18,
4701
- 2,
4702
- 1,
4703
- 2,
4704
- 14,
4705
- 3,
4706
- 13,
4707
- 35,
4708
- 122,
4709
- 70,
4710
- 52,
4711
- 268,
4712
- 28,
4713
- 4,
4714
- 48,
4715
- 48,
4716
- 31,
4717
- 14,
4718
- 29,
4719
- 6,
4720
- 37,
4721
- 11,
4722
- 29,
4723
- 3,
4724
- 35,
4725
- 5,
4726
- 7,
4727
- 2,
4728
- 4,
4729
- 43,
4730
- 157,
4731
- 19,
4732
- 35,
4733
- 5,
4734
- 35,
4735
- 5,
4736
- 39,
4737
- 9,
4738
- 51,
4739
- 13,
4740
- 10,
4741
- 2,
4742
- 14,
4743
- 2,
4744
- 6,
4745
- 2,
4746
- 1,
4747
- 2,
4748
- 10,
4749
- 2,
4750
- 14,
4751
- 2,
4752
- 6,
4753
- 2,
4754
- 1,
4755
- 4,
4756
- 51,
4757
- 13,
4758
- 310,
4759
- 10,
4760
- 21,
4761
- 11,
4762
- 7,
4763
- 25,
4764
- 5,
4765
- 2,
4766
- 41,
4767
- 2,
4768
- 8,
4769
- 70,
4770
- 5,
4771
- 3,
4772
- 0,
4773
- 2,
4774
- 43,
4775
- 2,
4776
- 1,
4777
- 4,
4778
- 0,
4779
- 3,
4780
- 22,
4781
- 11,
4782
- 22,
4783
- 10,
4784
- 30,
4785
- 66,
4786
- 18,
4787
- 2,
4788
- 1,
4789
- 11,
4790
- 21,
4791
- 11,
4792
- 25,
4793
- 7,
4794
- 25,
4795
- 39,
4796
- 55,
4797
- 7,
4798
- 1,
4799
- 65,
4800
- 0,
4801
- 16,
4802
- 3,
4803
- 2,
4804
- 2,
4805
- 2,
4806
- 28,
4807
- 43,
4808
- 28,
4809
- 4,
4810
- 28,
4811
- 36,
4812
- 7,
4813
- 2,
4814
- 27,
4815
- 28,
4816
- 53,
4817
- 11,
4818
- 21,
4819
- 11,
4820
- 18,
4821
- 14,
4822
- 17,
4823
- 111,
4824
- 72,
4825
- 56,
4826
- 50,
4827
- 14,
4828
- 50,
4829
- 14,
4830
- 35,
4831
- 39,
4832
- 27,
4833
- 10,
4834
- 22,
4835
- 251,
4836
- 41,
4837
- 7,
4838
- 1,
4839
- 17,
4840
- 5,
4841
- 57,
4842
- 28,
4843
- 11,
4844
- 0,
4845
- 9,
4846
- 21,
4847
- 43,
4848
- 17,
4849
- 47,
4850
- 20,
4851
- 28,
4852
- 22,
4853
- 13,
4854
- 52,
4855
- 58,
4856
- 1,
4857
- 3,
4858
- 0,
4859
- 14,
4860
- 44,
4861
- 33,
4862
- 24,
4863
- 27,
4864
- 35,
4865
- 30,
4866
- 0,
4867
- 3,
4868
- 0,
4869
- 9,
4870
- 34,
4871
- 4,
4872
- 0,
4873
- 13,
4874
- 47,
4875
- 15,
4876
- 3,
4877
- 22,
4878
- 0,
4879
- 2,
4880
- 0,
4881
- 36,
4882
- 17,
4883
- 2,
4884
- 24,
4885
- 20,
4886
- 1,
4887
- 64,
4888
- 6,
4889
- 2,
4890
- 0,
4891
- 2,
4892
- 3,
4893
- 2,
4894
- 14,
4895
- 2,
4896
- 9,
4897
- 8,
4898
- 46,
4899
- 39,
4900
- 7,
4901
- 3,
4902
- 1,
4903
- 3,
4904
- 21,
4905
- 2,
4906
- 6,
4907
- 2,
4908
- 1,
4909
- 2,
4910
- 4,
4911
- 4,
4912
- 0,
4913
- 19,
4914
- 0,
4915
- 13,
4916
- 4,
4917
- 31,
4918
- 9,
4919
- 2,
4920
- 0,
4921
- 3,
4922
- 0,
4923
- 2,
4924
- 37,
4925
- 2,
4926
- 0,
4927
- 26,
4928
- 0,
4929
- 2,
4930
- 0,
4931
- 45,
4932
- 52,
4933
- 19,
4934
- 3,
4935
- 21,
4936
- 2,
4937
- 31,
4938
- 47,
4939
- 21,
4940
- 1,
4941
- 2,
4942
- 0,
4943
- 185,
4944
- 46,
4945
- 42,
4946
- 3,
4947
- 37,
4948
- 47,
4949
- 21,
4950
- 0,
4951
- 60,
4952
- 42,
4953
- 14,
4954
- 0,
4955
- 72,
4956
- 26,
4957
- 38,
4958
- 6,
4959
- 186,
4960
- 43,
4961
- 117,
4962
- 63,
4963
- 32,
4964
- 7,
4965
- 3,
4966
- 0,
4967
- 3,
4968
- 7,
4969
- 2,
4970
- 1,
4971
- 2,
4972
- 23,
4973
- 16,
4974
- 0,
4975
- 2,
4976
- 0,
4977
- 95,
4978
- 7,
4979
- 3,
4980
- 38,
4981
- 17,
4982
- 0,
4983
- 2,
4984
- 0,
4985
- 29,
4986
- 0,
4987
- 11,
4988
- 39,
4989
- 8,
4990
- 0,
4991
- 22,
4992
- 0,
4993
- 12,
4994
- 45,
4995
- 20,
4996
- 0,
4997
- 19,
4998
- 72,
4999
- 200,
5000
- 32,
5001
- 32,
5002
- 8,
5003
- 2,
5004
- 36,
5005
- 18,
5006
- 0,
5007
- 50,
5008
- 29,
5009
- 113,
5010
- 6,
5011
- 2,
5012
- 1,
5013
- 2,
5014
- 37,
5015
- 22,
5016
- 0,
5017
- 26,
5018
- 5,
5019
- 2,
5020
- 1,
5021
- 2,
5022
- 31,
5023
- 15,
5024
- 0,
5025
- 24,
5026
- 43,
5027
- 261,
5028
- 18,
5029
- 16,
5030
- 0,
5031
- 2,
5032
- 12,
5033
- 2,
5034
- 33,
5035
- 125,
5036
- 0,
5037
- 80,
5038
- 921,
5039
- 103,
5040
- 110,
5041
- 18,
5042
- 195,
5043
- 2637,
5044
- 96,
5045
- 16,
5046
- 1071,
5047
- 18,
5048
- 5,
5049
- 26,
5050
- 3994,
5051
- 6,
5052
- 582,
5053
- 6842,
5054
- 29,
5055
- 1763,
5056
- 568,
5057
- 8,
5058
- 30,
5059
- 18,
5060
- 78,
5061
- 18,
5062
- 29,
5063
- 19,
5064
- 47,
5065
- 17,
5066
- 3,
5067
- 32,
5068
- 20,
5069
- 6,
5070
- 18,
5071
- 433,
5072
- 44,
5073
- 212,
5074
- 63,
5075
- 33,
5076
- 24,
5077
- 3,
5078
- 24,
5079
- 45,
5080
- 74,
5081
- 6,
5082
- 0,
5083
- 67,
5084
- 12,
5085
- 65,
5086
- 1,
5087
- 2,
5088
- 0,
5089
- 15,
5090
- 4,
5091
- 10,
5092
- 7381,
5093
- 42,
5094
- 31,
5095
- 98,
5096
- 114,
5097
- 8702,
5098
- 3,
5099
- 2,
5100
- 6,
5101
- 2,
5102
- 1,
5103
- 2,
5104
- 290,
5105
- 16,
5106
- 0,
5107
- 30,
5108
- 2,
5109
- 3,
5110
- 0,
5111
- 15,
5112
- 3,
5113
- 9,
5114
- 395,
5115
- 2309,
5116
- 106,
5117
- 6,
5118
- 12,
5119
- 4,
5120
- 8,
5121
- 8,
5122
- 9,
5123
- 5991,
5124
- 84,
5125
- 2,
5126
- 70,
5127
- 2,
5128
- 1,
5129
- 3,
5130
- 0,
5131
- 3,
5132
- 1,
5133
- 3,
5134
- 3,
5135
- 2,
5136
- 11,
5137
- 2,
5138
- 0,
5139
- 2,
5140
- 6,
5141
- 2,
5142
- 64,
5143
- 2,
5144
- 3,
5145
- 3,
5146
- 7,
5147
- 2,
5148
- 6,
5149
- 2,
5150
- 27,
5151
- 2,
5152
- 3,
5153
- 2,
5154
- 4,
5155
- 2,
5156
- 0,
5157
- 4,
5158
- 6,
5159
- 2,
5160
- 339,
5161
- 3,
5162
- 24,
5163
- 2,
5164
- 24,
5165
- 2,
5166
- 30,
5167
- 2,
5168
- 24,
5169
- 2,
5170
- 30,
5171
- 2,
5172
- 24,
5173
- 2,
5174
- 30,
5175
- 2,
5176
- 24,
5177
- 2,
5178
- 30,
5179
- 2,
5180
- 24,
5181
- 2,
5182
- 7,
5183
- 1845,
5184
- 30,
5185
- 7,
5186
- 5,
5187
- 262,
5188
- 61,
5189
- 147,
5190
- 44,
5191
- 11,
5192
- 6,
5193
- 17,
5194
- 0,
5195
- 322,
5196
- 29,
5197
- 19,
5198
- 43,
5199
- 485,
5200
- 27,
5201
- 229,
5202
- 29,
5203
- 3,
5204
- 0,
5205
- 208,
5206
- 30,
5207
- 2,
5208
- 2,
5209
- 2,
5210
- 1,
5211
- 2,
5212
- 6,
5213
- 3,
5214
- 4,
5215
- 10,
5216
- 1,
5217
- 225,
5218
- 6,
5219
- 2,
5220
- 3,
5221
- 2,
5222
- 1,
5223
- 2,
5224
- 14,
5225
- 2,
5226
- 196,
5227
- 60,
5228
- 67,
5229
- 8,
5230
- 0,
5231
- 1205,
5232
- 3,
5233
- 2,
5234
- 26,
5235
- 2,
5236
- 1,
5237
- 2,
5238
- 0,
5239
- 3,
5240
- 0,
5241
- 2,
5242
- 9,
5243
- 2,
5244
- 3,
5245
- 2,
5246
- 0,
5247
- 2,
5248
- 0,
5249
- 7,
5250
- 0,
5251
- 5,
5252
- 0,
5253
- 2,
5254
- 0,
5255
- 2,
5256
- 0,
5257
- 2,
5258
- 2,
5259
- 2,
5260
- 1,
5261
- 2,
5262
- 0,
5263
- 3,
5264
- 0,
5265
- 2,
5266
- 0,
5267
- 2,
5268
- 0,
5269
- 2,
5270
- 0,
5271
- 2,
5272
- 0,
5273
- 2,
5274
- 1,
5275
- 2,
5276
- 0,
5277
- 3,
5278
- 3,
5279
- 2,
5280
- 6,
5281
- 2,
5282
- 3,
5283
- 2,
5284
- 3,
5285
- 2,
5286
- 0,
5287
- 2,
5288
- 9,
5289
- 2,
5290
- 16,
5291
- 6,
5292
- 2,
5293
- 2,
5294
- 4,
5295
- 2,
5296
- 16,
5297
- 4421,
5298
- 42719,
5299
- 33,
5300
- 4381,
5301
- 3,
5302
- 5773,
5303
- 3,
5304
- 7472,
5305
- 16,
5306
- 621,
5307
- 2467,
5308
- 541,
5309
- 1507,
5310
- 4938,
5311
- 6,
5312
- 8489
5313
- ];
5314
- const astralIdentifierCodes = [
5315
- 509,
5316
- 0,
5317
- 227,
5318
- 0,
5319
- 150,
5320
- 4,
5321
- 294,
5322
- 9,
5323
- 1368,
5324
- 2,
5325
- 2,
5326
- 1,
5327
- 6,
5328
- 3,
5329
- 41,
5330
- 2,
5331
- 5,
5332
- 0,
5333
- 166,
5334
- 1,
5335
- 574,
5336
- 3,
5337
- 9,
5338
- 9,
5339
- 7,
5340
- 9,
5341
- 32,
5342
- 4,
5343
- 318,
5344
- 1,
5345
- 78,
5346
- 5,
5347
- 71,
5348
- 10,
5349
- 50,
5350
- 3,
5351
- 123,
5352
- 2,
5353
- 54,
5354
- 14,
5355
- 32,
5356
- 10,
5357
- 3,
5358
- 1,
5359
- 11,
5360
- 3,
5361
- 46,
5362
- 10,
5363
- 8,
5364
- 0,
5365
- 46,
5366
- 9,
5367
- 7,
5368
- 2,
5369
- 37,
5370
- 13,
5371
- 2,
5372
- 9,
5373
- 6,
5374
- 1,
5375
- 45,
5376
- 0,
5377
- 13,
5378
- 2,
5379
- 49,
5380
- 13,
5381
- 9,
5382
- 3,
5383
- 2,
5384
- 11,
5385
- 83,
5386
- 11,
5387
- 7,
5388
- 0,
5389
- 3,
5390
- 0,
5391
- 158,
5392
- 11,
5393
- 6,
5394
- 9,
5395
- 7,
5396
- 3,
5397
- 56,
5398
- 1,
5399
- 2,
5400
- 6,
5401
- 3,
5402
- 1,
5403
- 3,
5404
- 2,
5405
- 10,
5406
- 0,
5407
- 11,
5408
- 1,
5409
- 3,
5410
- 6,
5411
- 4,
5412
- 4,
5413
- 68,
5414
- 8,
5415
- 2,
5416
- 0,
5417
- 3,
5418
- 0,
5419
- 2,
5420
- 3,
5421
- 2,
5422
- 4,
5423
- 2,
5424
- 0,
5425
- 15,
5426
- 1,
5427
- 83,
5428
- 17,
5429
- 10,
5430
- 9,
5431
- 5,
5432
- 0,
5433
- 82,
5434
- 19,
5435
- 13,
5436
- 9,
5437
- 214,
5438
- 6,
5439
- 3,
5440
- 8,
5441
- 28,
5442
- 1,
5443
- 83,
5444
- 16,
5445
- 16,
5446
- 9,
5447
- 82,
5448
- 12,
5449
- 9,
5450
- 9,
5451
- 7,
5452
- 19,
5453
- 58,
5454
- 14,
5455
- 5,
5456
- 9,
5457
- 243,
5458
- 14,
5459
- 166,
5460
- 9,
5461
- 71,
5462
- 5,
5463
- 2,
5464
- 1,
5465
- 3,
5466
- 3,
5467
- 2,
5468
- 0,
5469
- 2,
5470
- 1,
5471
- 13,
5472
- 9,
5473
- 120,
5474
- 6,
5475
- 3,
5476
- 6,
5477
- 4,
5478
- 0,
5479
- 29,
5480
- 9,
5481
- 41,
5482
- 6,
5483
- 2,
5484
- 3,
5485
- 9,
5486
- 0,
5487
- 10,
5488
- 10,
5489
- 47,
5490
- 15,
5491
- 199,
5492
- 7,
5493
- 137,
5494
- 9,
5495
- 54,
5496
- 7,
5497
- 2,
5498
- 7,
5499
- 17,
5500
- 9,
5501
- 57,
5502
- 21,
5503
- 2,
5504
- 13,
5505
- 123,
5506
- 5,
5507
- 4,
5508
- 0,
5509
- 2,
5510
- 1,
5511
- 2,
5512
- 6,
5513
- 2,
5514
- 0,
5515
- 9,
5516
- 9,
5517
- 49,
5518
- 4,
5519
- 2,
5520
- 1,
5521
- 2,
5522
- 4,
5523
- 9,
5524
- 9,
5525
- 55,
5526
- 9,
5527
- 266,
5528
- 3,
5529
- 10,
5530
- 1,
5531
- 2,
5532
- 0,
5533
- 49,
5534
- 6,
5535
- 4,
5536
- 4,
5537
- 14,
5538
- 10,
5539
- 5350,
5540
- 0,
5541
- 7,
5542
- 14,
5543
- 11465,
5544
- 27,
5545
- 2343,
5546
- 9,
5547
- 87,
5548
- 9,
5549
- 39,
5550
- 4,
5551
- 60,
5552
- 6,
5553
- 26,
5554
- 9,
5555
- 535,
5556
- 9,
5557
- 470,
5558
- 0,
5559
- 2,
5560
- 54,
5561
- 8,
5562
- 3,
5563
- 82,
5564
- 0,
5565
- 12,
5566
- 1,
5567
- 19628,
5568
- 1,
5569
- 4178,
5570
- 9,
5571
- 519,
5572
- 45,
5573
- 3,
5574
- 22,
5575
- 543,
5576
- 4,
5577
- 4,
5578
- 5,
5579
- 9,
5580
- 7,
5581
- 3,
5582
- 6,
5583
- 31,
5584
- 3,
5585
- 149,
5586
- 2,
5587
- 1418,
5588
- 49,
5589
- 513,
5590
- 54,
5591
- 5,
5592
- 49,
5593
- 9,
5594
- 0,
5595
- 15,
5596
- 0,
5597
- 23,
5598
- 4,
5599
- 2,
5600
- 14,
5601
- 1361,
5602
- 6,
5603
- 2,
5604
- 16,
5605
- 3,
5606
- 6,
5607
- 2,
5608
- 1,
5609
- 2,
5610
- 4,
5611
- 101,
5612
- 0,
5613
- 161,
5614
- 6,
5615
- 10,
5616
- 9,
5617
- 357,
5618
- 0,
5619
- 62,
5620
- 13,
5621
- 499,
5622
- 13,
5623
- 245,
5624
- 1,
5625
- 2,
5626
- 9,
5627
- 233,
5628
- 0,
5629
- 3,
5630
- 0,
5631
- 8,
5632
- 1,
5633
- 6,
5634
- 0,
5635
- 475,
5636
- 6,
5637
- 110,
5638
- 6,
5639
- 6,
5640
- 9,
5641
- 4759,
5642
- 9,
5643
- 787719,
5644
- 239
5645
- ];
5646
- function isInAstralSet(code, set) {
5647
- let pos = 65536;
5648
- for (let i = 0, length = set.length; i < length; i += 2) {
5649
- pos += set[i];
5650
- if (pos > code) return false;
5651
- pos += set[i + 1];
5652
- if (pos >= code) return true;
5653
- }
5654
- return false;
5655
- }
5656
- function isIdentifierStart(code) {
5657
- if (code < 65) return code === 36;
5658
- if (code <= 90) return true;
5659
- if (code < 97) return code === 95;
5660
- if (code <= 122) return true;
5661
- if (code <= 65535) return code >= 170 && nonASCIIidentifierStart.test(String.fromCharCode(code));
5662
- return isInAstralSet(code, astralIdentifierStartCodes);
5663
- }
5664
- function isIdentifierChar(code) {
5665
- if (code < 48) return code === 36;
5666
- if (code < 58) return true;
5667
- if (code < 65) return false;
5668
- if (code <= 90) return true;
5669
- if (code < 97) return code === 95;
5670
- if (code <= 122) return true;
5671
- if (code <= 65535) return code >= 170 && nonASCIIidentifier.test(String.fromCharCode(code));
5672
- return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes);
5673
- }
5674
- function isIdentifierName(name) {
5675
- let isFirst = true;
5676
- for (let i = 0; i < name.length; i++) {
5677
- let cp = name.charCodeAt(i);
5678
- if ((cp & 64512) === 55296 && i + 1 < name.length) {
5679
- const trail = name.charCodeAt(++i);
5680
- if ((trail & 64512) === 56320) cp = 65536 + ((cp & 1023) << 10) + (trail & 1023);
5681
- }
5682
- if (isFirst) {
5683
- isFirst = false;
5684
- if (!isIdentifierStart(cp)) return false;
5685
- } else if (!isIdentifierChar(cp)) return false;
5686
- }
5687
- return !isFirst;
5688
- }
5689
- }));
5690
- //#endregion
5691
- //#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/keyword.js
5692
- var require_keyword = /* @__PURE__ */ __commonJSMin(((exports) => {
5693
- Object.defineProperty(exports, "__esModule", { value: true });
5694
- exports.isKeyword = isKeyword;
5695
- exports.isReservedWord = isReservedWord;
5696
- exports.isStrictBindOnlyReservedWord = isStrictBindOnlyReservedWord;
5697
- exports.isStrictBindReservedWord = isStrictBindReservedWord;
5698
- exports.isStrictReservedWord = isStrictReservedWord;
5699
- const reservedWords = {
5700
- keyword: [
5701
- "break",
5702
- "case",
5703
- "catch",
5704
- "continue",
5705
- "debugger",
5706
- "default",
5707
- "do",
5708
- "else",
5709
- "finally",
5710
- "for",
5711
- "function",
5712
- "if",
5713
- "return",
5714
- "switch",
5715
- "throw",
5716
- "try",
5717
- "var",
5718
- "const",
5719
- "while",
5720
- "with",
5721
- "new",
5722
- "this",
5723
- "super",
5724
- "class",
5725
- "extends",
5726
- "export",
5727
- "import",
5728
- "null",
5729
- "true",
5730
- "false",
5731
- "in",
5732
- "instanceof",
5733
- "typeof",
5734
- "void",
5735
- "delete"
5736
- ],
5737
- strict: [
5738
- "implements",
5739
- "interface",
5740
- "let",
5741
- "package",
5742
- "private",
5743
- "protected",
5744
- "public",
5745
- "static",
5746
- "yield"
5747
- ],
5748
- strictBind: ["eval", "arguments"]
5749
- };
5750
- const keywords = new Set(reservedWords.keyword);
5751
- const reservedWordsStrictSet = new Set(reservedWords.strict);
5752
- const reservedWordsStrictBindSet = new Set(reservedWords.strictBind);
5753
- function isReservedWord(word, inModule) {
5754
- return inModule && word === "await" || word === "enum";
5755
- }
5756
- function isStrictReservedWord(word, inModule) {
5757
- return isReservedWord(word, inModule) || reservedWordsStrictSet.has(word);
5758
- }
5759
- function isStrictBindOnlyReservedWord(word) {
5760
- return reservedWordsStrictBindSet.has(word);
5761
- }
5762
- function isStrictBindReservedWord(word, inModule) {
5763
- return isStrictReservedWord(word, inModule) || isStrictBindOnlyReservedWord(word);
5764
- }
5765
- function isKeyword(word) {
5766
- return keywords.has(word);
5767
- }
5768
- }));
5769
- //#endregion
5770
- //#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/index.js
5771
- var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
5772
- Object.defineProperty(exports, "__esModule", { value: true });
5773
- Object.defineProperty(exports, "isIdentifierChar", {
5774
- enumerable: true,
5775
- get: function() {
5776
- return _identifier.isIdentifierChar;
5777
- }
5778
- });
5779
- Object.defineProperty(exports, "isIdentifierName", {
5780
- enumerable: true,
5781
- get: function() {
5782
- return _identifier.isIdentifierName;
5783
- }
5784
- });
5785
- Object.defineProperty(exports, "isIdentifierStart", {
5786
- enumerable: true,
5787
- get: function() {
5788
- return _identifier.isIdentifierStart;
5789
- }
5790
- });
5791
- Object.defineProperty(exports, "isKeyword", {
5792
- enumerable: true,
5793
- get: function() {
5794
- return _keyword.isKeyword;
5795
- }
5796
- });
5797
- Object.defineProperty(exports, "isReservedWord", {
5798
- enumerable: true,
5799
- get: function() {
5800
- return _keyword.isReservedWord;
5801
- }
5802
- });
5803
- Object.defineProperty(exports, "isStrictBindOnlyReservedWord", {
5804
- enumerable: true,
5805
- get: function() {
5806
- return _keyword.isStrictBindOnlyReservedWord;
5807
- }
5808
- });
5809
- Object.defineProperty(exports, "isStrictBindReservedWord", {
5810
- enumerable: true,
5811
- get: function() {
5812
- return _keyword.isStrictBindReservedWord;
5813
- }
5814
- });
5815
- Object.defineProperty(exports, "isStrictReservedWord", {
5816
- enumerable: true,
5817
- get: function() {
5818
- return _keyword.isStrictReservedWord;
5819
- }
5820
- });
5821
- var _identifier = require_identifier();
5822
- var _keyword = require_keyword();
5823
- }));
5824
- //#endregion
5825
- //#region ../../node_modules/.pnpm/@babel+code-frame@7.29.7/node_modules/@babel/code-frame/lib/index.js
5826
- var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
5827
- Object.defineProperty(exports, "__esModule", { value: true });
5828
- var picocolors = require_picocolors();
5829
- var jsTokens = require_js_tokens();
5830
- var helperValidatorIdentifier = require_lib$1();
5831
- function isColorSupported() {
5832
- return typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? false : picocolors.isColorSupported;
5833
- }
5834
- const compose = (f, g) => (v) => f(g(v));
5835
- function buildDefs(colors) {
5836
- return {
5837
- keyword: colors.cyan,
5838
- capitalized: colors.yellow,
5839
- jsxIdentifier: colors.yellow,
5840
- punctuator: colors.yellow,
5841
- number: colors.magenta,
5842
- string: colors.green,
5843
- regex: colors.magenta,
5844
- comment: colors.gray,
5845
- invalid: compose(compose(colors.white, colors.bgRed), colors.bold),
5846
- gutter: colors.gray,
5847
- marker: compose(colors.red, colors.bold),
5848
- message: compose(colors.red, colors.bold),
5849
- reset: colors.reset
5850
- };
5851
- }
5852
- const defsOn = buildDefs(picocolors.createColors(true));
5853
- const defsOff = buildDefs(picocolors.createColors(false));
5854
- function getDefs(enabled) {
5855
- return enabled ? defsOn : defsOff;
5856
- }
5857
- const sometimesKeywords = /* @__PURE__ */ new Set([
5858
- "as",
5859
- "async",
5860
- "from",
5861
- "get",
5862
- "of",
5863
- "set"
5864
- ]);
5865
- const NEWLINE$1 = /\r\n|[\n\r\u2028\u2029]/;
5866
- const BRACKET = /^[()[\]{}]$/;
5867
- let tokenize;
5868
- const JSX_TAG = /^[a-z][\w-]*$/i;
5869
- const getTokenType = function(token, offset, text) {
5870
- if (token.type === "name") {
5871
- const tokenValue = token.value;
5872
- if (helperValidatorIdentifier.isKeyword(tokenValue) || helperValidatorIdentifier.isStrictReservedWord(tokenValue, true) || sometimesKeywords.has(tokenValue)) return "keyword";
5873
- if (JSX_TAG.test(tokenValue) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) === "</")) return "jsxIdentifier";
5874
- const firstChar = String.fromCodePoint(tokenValue.codePointAt(0));
5875
- if (firstChar !== firstChar.toLowerCase()) return "capitalized";
5876
- }
5877
- if (token.type === "punctuator" && BRACKET.test(token.value)) return "bracket";
5878
- if (token.type === "invalid" && (token.value === "@" || token.value === "#")) return "punctuator";
5879
- return token.type;
5880
- };
5881
- tokenize = function* (text) {
5882
- let match;
5883
- while (match = jsTokens.default.exec(text)) {
5884
- const token = jsTokens.matchToToken(match);
5885
- yield {
5886
- type: getTokenType(token, match.index, text),
5887
- value: token.value
5888
- };
5889
- }
5890
- };
5891
- function highlight(text) {
5892
- if (text === "") return "";
5893
- const defs = getDefs(true);
5894
- let highlighted = "";
5895
- for (const { type, value } of tokenize(text)) if (type in defs) highlighted += value.split(NEWLINE$1).map((str) => defs[type](str)).join("\n");
5896
- else highlighted += value;
5897
- return highlighted;
5898
- }
5899
- let deprecationWarningShown = false;
5900
- const NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
5901
- function getMarkerLines(loc, source, opts, startLineBaseZero) {
5902
- const startLoc = Object.assign({
5903
- column: 0,
5904
- line: -1
5905
- }, loc.start);
5906
- const endLoc = Object.assign({}, startLoc, loc.end);
5907
- const { linesAbove = 2, linesBelow = 3 } = opts || {};
5908
- const startLine = startLoc.line - startLineBaseZero;
5909
- const startColumn = startLoc.column;
5910
- const endLine = endLoc.line - startLineBaseZero;
5911
- const endColumn = endLoc.column;
5912
- let start = Math.max(startLine - (linesAbove + 1), 0);
5913
- let end = Math.min(source.length, endLine + linesBelow);
5914
- if (startLine === -1) start = 0;
5915
- if (endLine === -1) end = source.length;
5916
- const lineDiff = endLine - startLine;
5917
- const markerLines = {};
5918
- if (lineDiff) for (let i = 0; i <= lineDiff; i++) {
5919
- const lineNumber = i + startLine;
5920
- if (!startColumn) markerLines[lineNumber] = true;
5921
- else if (i === 0) markerLines[lineNumber] = [startColumn, source[lineNumber - 1].length - startColumn + 1];
5922
- else if (i === lineDiff) markerLines[lineNumber] = [0, endColumn];
5923
- else markerLines[lineNumber] = [0, source[lineNumber - i].length];
5924
- }
5925
- else if (startColumn === endColumn) if (startColumn) markerLines[startLine] = [startColumn, 0];
5926
- else markerLines[startLine] = true;
5927
- else markerLines[startLine] = [startColumn, endColumn - startColumn];
5928
- return {
5929
- start,
5930
- end,
5931
- markerLines
5932
- };
5933
- }
5934
- function codeFrameColumns(rawLines, loc, opts = {}) {
5935
- const shouldHighlight = opts.forceColor || isColorSupported() && opts.highlightCode;
5936
- const startLineBaseZero = (opts.startLine || 1) - 1;
5937
- const defs = getDefs(shouldHighlight);
5938
- const { start, end, markerLines } = getMarkerLines(loc, rawLines.split(NEWLINE), opts, startLineBaseZero);
5939
- const hasColumns = loc.start && typeof loc.start.column === "number";
5940
- const numberMaxWidth = String(end + startLineBaseZero).length;
5941
- let frame = (shouldHighlight ? highlight(rawLines) : rawLines).split(NEWLINE, end).slice(start, end).map((line, index) => {
5942
- const number = start + 1 + index;
5943
- const gutter = ` ${` ${number + startLineBaseZero}`.slice(-numberMaxWidth)} |`;
5944
- const hasMarker = markerLines[number];
5945
- const lastMarkerLine = !markerLines[number + 1];
5946
- if (hasMarker) {
5947
- let markerLine = "";
5948
- if (Array.isArray(hasMarker)) {
5949
- const markerSpacing = line.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\t]/g, " ");
5950
- const numberOfMarkers = hasMarker[1] || 1;
5951
- markerLine = [
5952
- "\n ",
5953
- defs.gutter(gutter.replace(/\d/g, " ")),
5954
- " ",
5955
- markerSpacing,
5956
- defs.marker("^").repeat(numberOfMarkers)
5957
- ].join("");
5958
- if (lastMarkerLine && opts.message) markerLine += " " + defs.message(opts.message);
5959
- }
5960
- return [
5961
- defs.marker(">"),
5962
- defs.gutter(gutter),
5963
- line.length > 0 ? ` ${line}` : "",
5964
- markerLine
5965
- ].join("");
5966
- } else return ` ${defs.gutter(gutter)}${line.length > 0 ? ` ${line}` : ""}`;
5967
- }).join("\n");
5968
- if (opts.message && !hasColumns) frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}\n${frame}`;
5969
- if (shouldHighlight) return defs.reset(frame);
5970
- else return frame;
5971
- }
5972
- function index(rawLines, lineNumber, colNumber, opts = {}) {
5973
- if (!deprecationWarningShown) {
5974
- deprecationWarningShown = true;
5975
- const message = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";
5976
- if (process.emitWarning) process.emitWarning(message, "DeprecationWarning");
5977
- else {
5978
- const deprecationError = /* @__PURE__ */ new Error(message);
5979
- deprecationError.name = "DeprecationWarning";
5980
- console.warn(/* @__PURE__ */ new Error(message));
5981
- }
5982
- }
5983
- colNumber = Math.max(colNumber, 0);
5984
- return codeFrameColumns(rawLines, { start: {
5985
- column: colNumber,
5986
- line: lineNumber
5987
- } }, opts);
5988
- }
5989
- exports.codeFrameColumns = codeFrameColumns;
5990
- exports.default = index;
5991
- exports.highlight = highlight;
5992
- }));
5993
- //#endregion
5994
- //#region ../../node_modules/.pnpm/parse-json@5.2.0/node_modules/parse-json/index.js
5995
- var require_parse_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5996
- const errorEx = require_error_ex();
5997
- const fallback = require_json_parse_even_better_errors();
5998
- const { default: LinesAndColumns } = require_build();
5999
- const { codeFrameColumns } = require_lib();
6000
- const JSONError = errorEx("JSONError", {
6001
- fileName: errorEx.append("in %s"),
6002
- codeFrame: errorEx.append("\n\n%s\n")
6003
- });
6004
- const parseJson = (string, reviver, filename) => {
6005
- if (typeof reviver === "string") {
6006
- filename = reviver;
6007
- reviver = null;
6008
- }
6009
- try {
6010
- try {
6011
- return JSON.parse(string, reviver);
6012
- } catch (error) {
6013
- fallback(string, reviver);
6014
- throw error;
6015
- }
6016
- } catch (error) {
6017
- error.message = error.message.replace(/\n/g, "");
6018
- const indexMatch = error.message.match(/in JSON at position (\d+) while parsing/);
6019
- const jsonError = new JSONError(error);
6020
- if (filename) jsonError.fileName = filename;
6021
- if (indexMatch && indexMatch.length > 0) {
6022
- const lines = new LinesAndColumns(string);
6023
- const index = Number(indexMatch[1]);
6024
- const location = lines.locationForIndex(index);
6025
- jsonError.codeFrame = codeFrameColumns(string, { start: {
6026
- line: location.line + 1,
6027
- column: location.column + 1
6028
- } }, { highlightCode: true });
6029
- }
6030
- throw jsonError;
6031
- }
6032
- };
6033
- parseJson.JSONError = JSONError;
6034
- module.exports = parseJson;
6035
- }));
6036
- //#endregion
6037
4349
  //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/common.js
6038
4350
  var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6039
4351
  function isNothing(subject) {
@@ -8381,22 +6693,15 @@ var require_js_yaml = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8381
6693
  module.exports.safeDump = renamed("safeDump", "dump");
8382
6694
  }));
8383
6695
  //#endregion
8384
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/loaders.js
6696
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/loaders.js
8385
6697
  var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
8386
- var __importDefault = exports && exports.__importDefault || function(mod) {
8387
- return mod && mod.__esModule ? mod : { "default": mod };
8388
- };
8389
6698
  Object.defineProperty(exports, "__esModule", { value: true });
8390
- exports.loadTs = exports.loadTsSync = exports.loadYaml = exports.loadJson = exports.loadJs = exports.loadJsSync = void 0;
8391
- const fs_1$2 = __require("fs");
6699
+ exports.loadYaml = exports.loadJson = exports.loadJs = exports.loadJsSync = void 0;
8392
6700
  const promises_1$1 = __require("fs/promises");
8393
- const path_1$3 = __importDefault(__require("path"));
8394
6701
  const url_1 = __require("url");
8395
- const crypto_1 = __require("crypto");
8396
- let importFresh;
8397
6702
  exports.loadJsSync = function loadJsSync(filepath) {
8398
- if (importFresh === void 0) importFresh = require_import_fresh();
8399
- return importFresh(filepath);
6703
+ delete __require.cache[__require.resolve(filepath)];
6704
+ return __require(filepath);
8400
6705
  };
8401
6706
  exports.loadJs = async function loadJs(filepath) {
8402
6707
  try {
@@ -8412,11 +6717,9 @@ var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
8412
6717
  }
8413
6718
  }
8414
6719
  };
8415
- let parseJson;
8416
6720
  exports.loadJson = function loadJson(filepath, content) {
8417
- if (parseJson === void 0) parseJson = require_parse_json();
8418
6721
  try {
8419
- return parseJson(content);
6722
+ return JSON.parse(content);
8420
6723
  } catch (error) {
8421
6724
  error.message = `JSON Error in ${filepath}:\n${error.message}`;
8422
6725
  throw error;
@@ -8432,73 +6735,12 @@ var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
8432
6735
  throw error;
8433
6736
  }
8434
6737
  };
8435
- let typescript;
8436
- exports.loadTsSync = function loadTsSync(filepath, content) {
8437
- /* istanbul ignore next -- @preserve */
8438
- if (typescript === void 0) typescript = __require("typescript");
8439
- const compiledFilepath = `${filepath}.${(0, crypto_1.randomUUID)()}.cjs`;
8440
- try {
8441
- const config = resolveTsConfig(path_1$3.default.dirname(filepath)) ?? {};
8442
- config.compilerOptions = {
8443
- ...config.compilerOptions,
8444
- module: typescript.ModuleKind.NodeNext,
8445
- moduleResolution: typescript.ModuleResolutionKind.NodeNext,
8446
- target: typescript.ScriptTarget.ES2022,
8447
- noEmit: false
8448
- };
8449
- content = typescript.transpileModule(content, config).outputText;
8450
- (0, fs_1$2.writeFileSync)(compiledFilepath, content);
8451
- return (0, exports.loadJsSync)(compiledFilepath, content).default;
8452
- } catch (error) {
8453
- error.message = `TypeScript Error in ${filepath}:\n${error.message}`;
8454
- throw error;
8455
- } finally {
8456
- if ((0, fs_1$2.existsSync)(compiledFilepath)) (0, fs_1$2.rmSync)(compiledFilepath);
8457
- }
8458
- };
8459
- exports.loadTs = async function loadTs(filepath, content) {
8460
- if (typescript === void 0) typescript = (await import("typescript")).default;
8461
- const compiledFilepath = `${filepath}.${(0, crypto_1.randomUUID)()}.mjs`;
8462
- let transpiledContent;
8463
- try {
8464
- try {
8465
- const config = resolveTsConfig(path_1$3.default.dirname(filepath)) ?? {};
8466
- config.compilerOptions = {
8467
- ...config.compilerOptions,
8468
- module: typescript.ModuleKind.ES2022,
8469
- moduleResolution: typescript.ModuleResolutionKind.Bundler,
8470
- target: typescript.ScriptTarget.ES2022,
8471
- noEmit: false
8472
- };
8473
- transpiledContent = typescript.transpileModule(content, config).outputText;
8474
- await (0, promises_1$1.writeFile)(compiledFilepath, transpiledContent);
8475
- } catch (error) {
8476
- error.message = `TypeScript Error in ${filepath}:\n${error.message}`;
8477
- throw error;
8478
- }
8479
- return await (0, exports.loadJs)(compiledFilepath, transpiledContent);
8480
- } finally {
8481
- if ((0, fs_1$2.existsSync)(compiledFilepath)) await (0, promises_1$1.rm)(compiledFilepath);
8482
- }
8483
- };
8484
- function resolveTsConfig(directory) {
8485
- const filePath = typescript.findConfigFile(directory, (fileName) => {
8486
- return typescript.sys.fileExists(fileName);
8487
- });
8488
- if (filePath !== void 0) {
8489
- const { config, error } = typescript.readConfigFile(filePath, (path) => typescript.sys.readFile(path));
8490
- if (error) throw new Error(`Error in ${filePath}: ${error.messageText.toString()}`);
8491
- return config;
8492
- }
8493
- }
8494
6738
  }));
8495
6739
  //#endregion
8496
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/defaults.js
6740
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/defaults.js
8497
6741
  var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
8498
6742
  Object.defineProperty(exports, "__esModule", { value: true });
8499
- exports.defaultLoadersSync = exports.defaultLoaders = exports.metaSearchPlaces = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = void 0;
8500
- exports.getDefaultSearchPlaces = getDefaultSearchPlaces;
8501
- exports.getDefaultSearchPlacesSync = getDefaultSearchPlacesSync;
6743
+ exports.defaultLoadersSync = exports.defaultLoaders = exports.metaSearchPlaces = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = void 0;
8502
6744
  const loaders_1 = require_loaders();
8503
6745
  function getDefaultSearchPlaces(moduleName) {
8504
6746
  return [
@@ -8525,6 +6767,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
8525
6767
  `${moduleName}.config.mjs`
8526
6768
  ];
8527
6769
  }
6770
+ exports.getDefaultSearchPlaces = getDefaultSearchPlaces;
8528
6771
  function getDefaultSearchPlacesSync(moduleName) {
8529
6772
  return [
8530
6773
  "package.json",
@@ -8547,6 +6790,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
8547
6790
  `${moduleName}.config.cjs`
8548
6791
  ];
8549
6792
  }
6793
+ exports.getDefaultSearchPlacesSync = getDefaultSearchPlacesSync;
8550
6794
  exports.globalConfigSearchPlaces = [
8551
6795
  "config",
8552
6796
  "config.json",
@@ -8581,7 +6825,9 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
8581
6825
  ".mjs": loaders_1.loadJs,
8582
6826
  ".cjs": loaders_1.loadJs,
8583
6827
  ".js": loaders_1.loadJs,
8584
- ".ts": loaders_1.loadTs,
6828
+ ".ts": loaders_1.loadJs,
6829
+ ".cts": loaders_1.loadJs,
6830
+ ".mts": loaders_1.loadJs,
8585
6831
  ".json": loaders_1.loadJson,
8586
6832
  ".yaml": loaders_1.loadYaml,
8587
6833
  ".yml": loaders_1.loadYaml,
@@ -8590,7 +6836,8 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
8590
6836
  exports.defaultLoadersSync = Object.freeze({
8591
6837
  ".cjs": loaders_1.loadJsSync,
8592
6838
  ".js": loaders_1.loadJsSync,
8593
- ".ts": loaders_1.loadTsSync,
6839
+ ".cts": loaders_1.loadJsSync,
6840
+ ".ts": loaders_1.loadJsSync,
8594
6841
  ".json": loaders_1.loadJson,
8595
6842
  ".yaml": loaders_1.loadYaml,
8596
6843
  ".yml": loaders_1.loadYaml,
@@ -8648,7 +6895,7 @@ var require_env_paths = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8648
6895
  module.exports.default = envPaths;
8649
6896
  }));
8650
6897
  //#endregion
8651
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/util.js
6898
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/util.js
8652
6899
  var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
8653
6900
  var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
8654
6901
  if (k2 === void 0) k2 = k;
@@ -8672,31 +6919,17 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
8672
6919
  }) : function(o, v) {
8673
6920
  o["default"] = v;
8674
6921
  });
8675
- var __importStar = exports && exports.__importStar || (function() {
8676
- var ownKeys = function(o) {
8677
- ownKeys = Object.getOwnPropertyNames || function(o) {
8678
- var ar = [];
8679
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
8680
- return ar;
8681
- };
8682
- return ownKeys(o);
8683
- };
8684
- return function(mod) {
8685
- if (mod && mod.__esModule) return mod;
8686
- var result = {};
8687
- if (mod != null) {
8688
- for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
8689
- }
8690
- __setModuleDefault(result, mod);
8691
- return result;
8692
- };
8693
- })();
6922
+ var __importStar = exports && exports.__importStar || function(mod) {
6923
+ if (mod && mod.__esModule) return mod;
6924
+ var result = {};
6925
+ if (mod != null) {
6926
+ for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
6927
+ }
6928
+ __setModuleDefault(result, mod);
6929
+ return result;
6930
+ };
8694
6931
  Object.defineProperty(exports, "__esModule", { value: true });
8695
- exports.emplace = emplace;
8696
- exports.getPropertyByPath = getPropertyByPath;
8697
- exports.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
8698
- exports.isDirectory = isDirectory;
8699
- exports.isDirectorySync = isDirectorySync;
6932
+ exports.isDirectorySync = exports.isDirectory = exports.removeUndefinedValuesFromObject = exports.decodeFileContent = exports.getPropertyByPath = exports.emplace = void 0;
8700
6933
  const fs_1$1 = __importStar(__require("fs"));
8701
6934
  /**
8702
6935
  * @internal
@@ -8708,6 +6941,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
8708
6941
  map.set(key, result);
8709
6942
  return result;
8710
6943
  }
6944
+ exports.emplace = emplace;
8711
6945
  /**
8712
6946
  * @internal
8713
6947
  */
@@ -8718,10 +6952,19 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
8718
6952
  return previous[key];
8719
6953
  }, source);
8720
6954
  }
6955
+ exports.getPropertyByPath = getPropertyByPath;
6956
+ /** @internal */
6957
+ function decodeFileContent(buffer) {
6958
+ if (buffer[0] === 255 && buffer[1] === 254) return new TextDecoder("utf-16le").decode(buffer);
6959
+ if (buffer[0] === 254 && buffer[1] === 255) return new TextDecoder("utf-16be").decode(buffer);
6960
+ return buffer.toString("utf-8");
6961
+ }
6962
+ exports.decodeFileContent = decodeFileContent;
8721
6963
  /** @internal */
8722
6964
  function removeUndefinedValuesFromObject(options) {
8723
6965
  return Object.fromEntries(Object.entries(options).filter(([, value]) => value !== void 0));
8724
6966
  }
6967
+ exports.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
8725
6968
  /** @internal */
8726
6969
  /* istanbul ignore next -- @preserve */
8727
6970
  async function isDirectory(path) {
@@ -8732,6 +6975,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
8732
6975
  throw e;
8733
6976
  }
8734
6977
  }
6978
+ exports.isDirectory = isDirectory;
8735
6979
  /** @internal */
8736
6980
  /* istanbul ignore next -- @preserve */
8737
6981
  function isDirectorySync(path) {
@@ -8742,16 +6986,16 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
8742
6986
  throw e;
8743
6987
  }
8744
6988
  }
6989
+ exports.isDirectorySync = isDirectorySync;
8745
6990
  }));
8746
6991
  //#endregion
8747
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/ExplorerBase.js
6992
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/ExplorerBase.js
8748
6993
  var require_ExplorerBase = /* @__PURE__ */ __commonJSMin(((exports) => {
8749
6994
  var __importDefault = exports && exports.__importDefault || function(mod) {
8750
6995
  return mod && mod.__esModule ? mod : { "default": mod };
8751
6996
  };
8752
6997
  Object.defineProperty(exports, "__esModule", { value: true });
8753
- exports.ExplorerBase = void 0;
8754
- exports.getExtensionDescription = getExtensionDescription;
6998
+ exports.getExtensionDescription = exports.ExplorerBase = void 0;
8755
6999
  const env_paths_1 = __importDefault(require_env_paths());
8756
7000
  const os_1 = __importDefault(__require("os"));
8757
7001
  const path_1$2 = __importDefault(__require("path"));
@@ -8863,13 +7107,13 @@ ${[...importStack, fullPath].map((path, i) => `${i + 1}. ${path}`).join("\n")} (
8863
7107
  /* istanbul ignore next -- @preserve */
8864
7108
  return extension ? `extension "${extension}"` : "files without extensions";
8865
7109
  }
7110
+ exports.getExtensionDescription = getExtensionDescription;
8866
7111
  }));
8867
7112
  //#endregion
8868
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/merge.js
7113
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/merge.js
8869
7114
  var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
8870
7115
  Object.defineProperty(exports, "__esModule", { value: true });
8871
- exports.hasOwn = void 0;
8872
- exports.mergeAll = mergeAll;
7116
+ exports.mergeAll = exports.hasOwn = void 0;
8873
7117
  exports.hasOwn = Function.prototype.call.bind(Object.prototype.hasOwnProperty);
8874
7118
  const objToString = Function.prototype.call.bind(Object.prototype.toString);
8875
7119
  function isPlainObject(obj) {
@@ -8901,9 +7145,10 @@ var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
8901
7145
  function mergeAll(objects, options) {
8902
7146
  return objects.reduce((target, source) => merge(target, source, options), {});
8903
7147
  }
7148
+ exports.mergeAll = mergeAll;
8904
7149
  }));
8905
7150
  //#endregion
8906
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/Explorer.js
7151
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/Explorer.js
8907
7152
  var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
8908
7153
  var __importDefault = exports && exports.__importDefault || function(mod) {
8909
7154
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -8962,7 +7207,7 @@ var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
8962
7207
  return await search();
8963
7208
  }
8964
7209
  async #readConfiguration(filepath, importStack = []) {
8965
- const contents = await promises_1.default.readFile(filepath, { encoding: "utf-8" });
7210
+ const contents = (0, util_js_1.decodeFileContent)(await promises_1.default.readFile(filepath));
8966
7211
  return this.toCosmiconfigResult(filepath, await this.#loadConfigFileWithImports(filepath, contents, importStack));
8967
7212
  }
8968
7213
  async #loadConfigFileWithImports(filepath, contents, importStack) {
@@ -9038,7 +7283,7 @@ var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
9038
7283
  exports.Explorer = Explorer;
9039
7284
  }));
9040
7285
  //#endregion
9041
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/ExplorerSync.js
7286
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/ExplorerSync.js
9042
7287
  var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
9043
7288
  var __importDefault = exports && exports.__importDefault || function(mod) {
9044
7289
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -9097,7 +7342,7 @@ var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
9097
7342
  return search();
9098
7343
  }
9099
7344
  #readConfiguration(filepath, importStack = []) {
9100
- const contents = fs_1.default.readFileSync(filepath, "utf8");
7345
+ const contents = (0, util_js_1.decodeFileContent)(fs_1.default.readFileSync(filepath));
9101
7346
  return this.toCosmiconfigResult(filepath, this.#loadConfigFileWithImports(filepath, contents, importStack));
9102
7347
  }
9103
7348
  #loadConfigFileWithImports(filepath, contents, importStack) {
@@ -9190,8 +7435,7 @@ var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
9190
7435
  //#region src/lib/loadConfig.ts
9191
7436
  var import_dist = (/* @__PURE__ */ __commonJSMin(((exports) => {
9192
7437
  Object.defineProperty(exports, "__esModule", { value: true });
9193
- exports.defaultLoadersSync = exports.defaultLoaders = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = void 0;
9194
- exports.cosmiconfig = cosmiconfig;
7438
+ exports.defaultLoadersSync = exports.defaultLoaders = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = exports.cosmiconfigSync = exports.cosmiconfig = void 0;
9195
7439
  const defaults_1 = require_defaults();
9196
7440
  Object.defineProperty(exports, "defaultLoaders", {
9197
7441
  enumerable: true,
@@ -9265,7 +7509,8 @@ var import_dist = (/* @__PURE__ */ __commonJSMin(((exports) => {
9265
7509
  function getResolvedSearchPlaces(moduleName, toolDefinedSearchPlaces, userConfiguredOptions) {
9266
7510
  const userConfiguredSearchPlaces = userConfiguredOptions.searchPlaces?.map((path) => path.replace("{name}", moduleName));
9267
7511
  if (userConfiguredOptions.mergeSearchPlaces) return [...userConfiguredSearchPlaces ?? [], ...toolDefinedSearchPlaces];
9268
- return userConfiguredSearchPlaces ?? toolDefinedSearchPlaces;
7512
+ return userConfiguredSearchPlaces ??
7513
+ /* istanbul ignore next */ toolDefinedSearchPlaces;
9269
7514
  }
9270
7515
  function mergeOptionsBase(moduleName, defaults, options) {
9271
7516
  const userDefinedConfig = getUserDefinedOptionsFromMetaConfig();
@@ -9309,6 +7554,21 @@ var import_dist = (/* @__PURE__ */ __commonJSMin(((exports) => {
9309
7554
  searchStrategy: options.stopDir ? "global" : "none"
9310
7555
  }, options);
9311
7556
  }
7557
+ function mergeOptionsSync(moduleName, options) {
7558
+ validateOptions(options);
7559
+ return mergeOptionsBase(moduleName, {
7560
+ moduleName,
7561
+ searchPlaces: (0, defaults_1.getDefaultSearchPlacesSync)(moduleName),
7562
+ ignoreEmptySearchPlaces: true,
7563
+ cache: true,
7564
+ transform: identity,
7565
+ loaders: defaults_1.defaultLoadersSync,
7566
+ metaConfigFilePath: null,
7567
+ mergeImportArrays: true,
7568
+ mergeSearchPlaces: true,
7569
+ searchStrategy: options.stopDir ? "global" : "none"
7570
+ }, options);
7571
+ }
9312
7572
  function cosmiconfig(moduleName, options = {}) {
9313
7573
  const normalizedOptions = mergeOptions(moduleName, options);
9314
7574
  const explorer = new Explorer_js_1.Explorer(normalizedOptions);
@@ -9320,6 +7580,19 @@ var import_dist = (/* @__PURE__ */ __commonJSMin(((exports) => {
9320
7580
  clearCaches: explorer.clearCaches.bind(explorer)
9321
7581
  };
9322
7582
  }
7583
+ exports.cosmiconfig = cosmiconfig;
7584
+ function cosmiconfigSync(moduleName, options = {}) {
7585
+ const normalizedOptions = mergeOptionsSync(moduleName, options);
7586
+ const explorerSync = new ExplorerSync_js_1.ExplorerSync(normalizedOptions);
7587
+ return {
7588
+ search: explorerSync.search.bind(explorerSync),
7589
+ load: explorerSync.load.bind(explorerSync),
7590
+ clearLoadCache: explorerSync.clearLoadCache.bind(explorerSync),
7591
+ clearSearchCache: explorerSync.clearSearchCache.bind(explorerSync),
7592
+ clearCaches: explorerSync.clearCaches.bind(explorerSync)
7593
+ };
7594
+ }
7595
+ exports.cosmiconfigSync = cosmiconfigSync;
9323
7596
  })))();
9324
7597
  const configState = {
9325
7598
  config: void 0,
@@ -9410,7 +7683,7 @@ const range = (a, b, str) => {
9410
7683
  return result;
9411
7684
  };
9412
7685
  //#endregion
9413
- //#region ../../node_modules/.pnpm/brace-expansion@5.0.7/node_modules/brace-expansion/dist/esm/index.js
7686
+ //#region ../../node_modules/.pnpm/brace-expansion@5.0.9/node_modules/brace-expansion/dist/esm/index.js
9414
7687
  const escSlash = "\0SLASH" + Math.random() + "\0";
9415
7688
  const escOpen = "\0OPEN" + Math.random() + "\0";
9416
7689
  const escClose = "\0CLOSE" + Math.random() + "\0";
@@ -9427,6 +7700,7 @@ const closePattern = /\\}/g;
9427
7700
  const commaPattern = /\\,/g;
9428
7701
  const periodPattern = /\\\./g;
9429
7702
  const EXPANSION_MAX = 1e5;
7703
+ const EXPANSION_MAX_LENGTH = 4e6;
9430
7704
  function numeric(str) {
9431
7705
  return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
9432
7706
  }
@@ -9459,9 +7733,9 @@ function parseCommaParts(str) {
9459
7733
  }
9460
7734
  function expand(str, options = {}) {
9461
7735
  if (!str) return [];
9462
- const { max = EXPANSION_MAX } = options;
7736
+ const { max = EXPANSION_MAX, maxLength = EXPANSION_MAX_LENGTH } = options;
9463
7737
  if (str.slice(0, 2) === "{}") str = "\\{\\}" + str.slice(2);
9464
- return expand_(escapeBraces(str), max, true).map(unescapeBraces);
7738
+ return expand_(escapeBraces(str), max, maxLength, true).map(unescapeBraces);
9465
7739
  }
9466
7740
  function embrace(str) {
9467
7741
  return "{" + str + "}";
@@ -9475,20 +7749,72 @@ function lte(i, y) {
9475
7749
  function gte(i, y) {
9476
7750
  return i >= y;
9477
7751
  }
9478
- function expand_(str, max, isTop) {
9479
- /** @type {string[]} */
9480
- const expansions = [];
7752
+ function combine(acc, pre, values, max, maxLength, dropEmpties) {
7753
+ const out = [];
7754
+ let length = 0;
7755
+ for (let a = 0; a < acc.length; a++) for (let v = 0; v < values.length; v++) {
7756
+ if (out.length >= max) return out;
7757
+ const expansion = acc[a] + pre + values[v];
7758
+ if (dropEmpties && !expansion) continue;
7759
+ if (length + expansion.length > maxLength) return out;
7760
+ out.push(expansion);
7761
+ length += expansion.length;
7762
+ }
7763
+ return out;
7764
+ }
7765
+ function expandSequence(body, isAlphaSequence, max, maxLength) {
7766
+ const n = body.split(/\.\./);
7767
+ const N = [];
7768
+ /* c8 ignore start */
7769
+ if (n[0] === void 0 || n[1] === void 0) return N;
7770
+ /* c8 ignore stop */
7771
+ const x = numeric(n[0]);
7772
+ const y = numeric(n[1]);
7773
+ const width = Math.max(n[0].length, n[1].length);
7774
+ let incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
7775
+ let test = lte;
7776
+ if (y < x) {
7777
+ incr *= -1;
7778
+ test = gte;
7779
+ }
7780
+ const pad = n.some(isPadded);
7781
+ let length = 0;
7782
+ for (let i = x; test(i, y) && N.length < max; i += incr) {
7783
+ let c;
7784
+ if (isAlphaSequence) {
7785
+ c = String.fromCharCode(i);
7786
+ if (c === "\\") c = "";
7787
+ } else {
7788
+ c = String(i);
7789
+ if (pad) {
7790
+ const need = width - c.length;
7791
+ if (need > 0) {
7792
+ const z = new Array(need + 1).join("0");
7793
+ if (i < 0) c = "-" + z + c.slice(1);
7794
+ else c = z + c;
7795
+ }
7796
+ }
7797
+ }
7798
+ if (length + c.length > maxLength) break;
7799
+ N.push(c);
7800
+ length += c.length;
7801
+ }
7802
+ return N;
7803
+ }
7804
+ function expand_(str, max, maxLength, isTop) {
7805
+ let acc = [""];
7806
+ let dropEmpties = false;
7807
+ let firstGroup = true;
9481
7808
  for (;;) {
9482
7809
  const m = balanced("{", "}", str);
9483
- if (!m) return [str];
7810
+ if (!m) return combine(acc, str, [""], max, maxLength, dropEmpties);
9484
7811
  const pre = m.pre;
9485
- if (/\$$/.test(m.pre)) {
9486
- const post = m.post.length ? expand_(m.post, max, false) : [""];
9487
- for (let k = 0; k < post.length && k < max; k++) {
9488
- const expansion = pre + "{" + m.body + "}" + post[k];
9489
- expansions.push(expansion);
9490
- }
9491
- return expansions;
7812
+ if (/\$$/.test(pre)) {
7813
+ acc = combine(acc, pre + "{" + m.body + "}", [""], max, maxLength, dropEmpties && !m.post.length);
7814
+ firstGroup = false;
7815
+ if (!m.post.length) break;
7816
+ str = m.post;
7817
+ continue;
9492
7818
  }
9493
7819
  const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
9494
7820
  const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
@@ -9500,70 +7826,56 @@ function expand_(str, max, isTop) {
9500
7826
  isTop = true;
9501
7827
  continue;
9502
7828
  }
9503
- return [str];
7829
+ return combine(acc, pre + "{" + m.body + "}" + m.post, [""], max, maxLength, dropEmpties);
9504
7830
  }
9505
- const post = m.post.length ? expand_(m.post, max, false) : [""];
9506
- let n;
9507
- if (isSequence) n = m.body.split(/\.\./);
7831
+ if (firstGroup) {
7832
+ dropEmpties = isTop && !isSequence;
7833
+ firstGroup = false;
7834
+ }
7835
+ let values;
7836
+ if (isSequence) values = expandSequence(m.body, isAlphaSequence, max, maxLength);
9508
7837
  else {
9509
- n = parseCommaParts(m.body);
7838
+ let n = parseCommaParts(m.body);
9510
7839
  if (n.length === 1 && n[0] !== void 0) {
9511
- n = expand_(n[0], max, false).map(embrace);
7840
+ n = expand_(n[0], max, maxLength, false).map(embrace);
9512
7841
  /* c8 ignore start */
9513
- if (n.length === 1) return post.map((p) => m.pre + n[0] + p);
9514
- }
9515
- }
9516
- let N;
9517
- if (isSequence && n[0] !== void 0 && n[1] !== void 0) {
9518
- const x = numeric(n[0]);
9519
- const y = numeric(n[1]);
9520
- const width = Math.max(n[0].length, n[1].length);
9521
- let incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
9522
- let test = lte;
9523
- if (y < x) {
9524
- incr *= -1;
9525
- test = gte;
9526
- }
9527
- const pad = n.some(isPadded);
9528
- N = [];
9529
- for (let i = x; test(i, y) && N.length < max; i += incr) {
9530
- let c;
9531
- if (isAlphaSequence) {
9532
- c = String.fromCharCode(i);
9533
- if (c === "\\") c = "";
9534
- } else {
9535
- c = String(i);
9536
- if (pad) {
9537
- const need = width - c.length;
9538
- if (need > 0) {
9539
- const z = new Array(need + 1).join("0");
9540
- if (i < 0) c = "-" + z + c.slice(1);
9541
- else c = z + c;
9542
- }
9543
- }
7842
+ if (n.length === 1) {
7843
+ acc = combine(acc, pre + n[0], [""], max, maxLength, dropEmpties && !m.post.length);
7844
+ if (!m.post.length) break;
7845
+ str = m.post;
7846
+ continue;
7847
+ }
7848
+ }
7849
+ let dropsEmpties = dropEmpties && !m.post.length && !pre;
7850
+ for (let d = 0; dropsEmpties && d < acc.length; d++) if (acc[d]) dropsEmpties = false;
7851
+ values = [];
7852
+ let valuesLength = 0;
7853
+ outer: for (let j = 0; j < n.length; j++) {
7854
+ const expanded = expand_(n[j], max, maxLength, false);
7855
+ for (let k = 0; k < expanded.length; k++) {
7856
+ const v = expanded[k];
7857
+ if (dropsEmpties && !v) continue;
7858
+ if (values.length >= max || valuesLength + v.length > maxLength) break outer;
7859
+ values.push(v);
7860
+ valuesLength += v.length;
9544
7861
  }
9545
- N.push(c);
9546
7862
  }
9547
- } else {
9548
- N = [];
9549
- for (let j = 0; j < n.length; j++) N.push.apply(N, expand_(n[j], max, false));
9550
- }
9551
- for (let j = 0; j < N.length; j++) for (let k = 0; k < post.length && expansions.length < max; k++) {
9552
- const expansion = pre + N[j] + post[k];
9553
- if (!isTop || isSequence || expansion) expansions.push(expansion);
9554
7863
  }
9555
- return expansions;
7864
+ acc = combine(acc, pre, values, max, maxLength, dropEmpties && !m.post.length);
7865
+ if (!m.post.length) break;
7866
+ str = m.post;
9556
7867
  }
7868
+ return acc;
9557
7869
  }
9558
7870
  //#endregion
9559
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/assert-valid-pattern.js
9560
- const MAX_PATTERN_LENGTH = 1024 * 64;
7871
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/assert-valid-pattern.js
7872
+ const MAX_PATTERN_LENGTH = 65536;
9561
7873
  const assertValidPattern = (pattern) => {
9562
7874
  if (typeof pattern !== "string") throw new TypeError("invalid pattern");
9563
7875
  if (pattern.length > MAX_PATTERN_LENGTH) throw new TypeError("pattern is too long");
9564
7876
  };
9565
7877
  //#endregion
9566
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/brace-expressions.js
7878
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/brace-expressions.js
9567
7879
  const posixClasses = {
9568
7880
  "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
9569
7881
  "[:alpha:]": ["\\p{L}\\p{Nl}", true],
@@ -9687,7 +7999,7 @@ const parseClass = (glob, position) => {
9687
7999
  ];
9688
8000
  };
9689
8001
  //#endregion
9690
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/unescape.js
8002
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/unescape.js
9691
8003
  /**
9692
8004
  * Un-escape a string that has been escaped with {@link escape}.
9693
8005
  *
@@ -9712,7 +8024,7 @@ const unescape = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}
9712
8024
  return windowsPathsNoEscape ? s.replace(/\[([^/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\{}])\]/g, "$1$2").replace(/\\([^/{}])/g, "$1");
9713
8025
  };
9714
8026
  //#endregion
9715
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/ast.js
8027
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/ast.js
9716
8028
  var _a;
9717
8029
  const types = /* @__PURE__ */ new Set([
9718
8030
  "!",
@@ -10221,7 +8533,7 @@ var AST = class {
10221
8533
  };
10222
8534
  _a = AST;
10223
8535
  //#endregion
10224
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/escape.js
8536
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/escape.js
10225
8537
  /**
10226
8538
  * Escape all magic characters in a glob pattern.
10227
8539
  *
@@ -10239,7 +8551,7 @@ const escape = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {})
10239
8551
  return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
10240
8552
  };
10241
8553
  //#endregion
10242
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/index.js
8554
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/index.js
10243
8555
  const minimatch = (p, pattern, options = {}) => {
10244
8556
  assertValidPattern(pattern);
10245
8557
  if (!options.nocomment && pattern.charAt(0) === "#") return false;
@@ -10924,9 +9236,7 @@ const buildEntries = (srcDir, entryMode = "single", options, shouldExcludeSpecAn
10924
9236
  case "custom":
10925
9237
  entries = [];
10926
9238
  break;
10927
- default:
10928
- entries = ["index.ts"];
10929
- break;
9239
+ default: entries = ["index.ts"];
10930
9240
  }
10931
9241
  if (typeof options !== "boolean" && Array.isArray(options?.entry)) entries.push(...options.entry);
10932
9242
  if (isVerbose) console.log(`buildEntries [${entryMode}] ${entries.length}`);
@@ -10957,7 +9267,7 @@ const I = "ERR_PACKAGE_PATH_NOT_EXPORTED";
10957
9267
  const R$1 = /^\d+$/;
10958
9268
  const O$1 = /^(\.{1,2}|node_modules)$/i;
10959
9269
  const w = /\/|\\/;
10960
- var h$1 = ((r) => (r.Export = "exports", r.Import = "imports", r))(h$1 || {});
9270
+ var h = ((r) => (r.Export = "exports", r.Import = "imports", r))(h || {});
10961
9271
  const f = (r, t, e, o, c) => {
10962
9272
  if (t == null) return [];
10963
9273
  if (typeof t == "string") {
@@ -11001,23 +9311,23 @@ const u = /^\w+:/;
11001
9311
  const v = (r, t, e) => {
11002
9312
  if (!r) throw new Error("\"exports\" is required");
11003
9313
  t = t === "" ? "." : `./${t}`, (typeof r == "string" || Array.isArray(r) || A(r) && p(r)) && (r = { ".": r });
11004
- const [o, c] = d(r, t), n = f(h$1.Export, r[o], t, e, c);
9314
+ const [o, c] = d(r, t), n = f(h.Export, r[o], t, e, c);
11005
9315
  if (n.length === 0) throw a(I, t === "." ? "No \"exports\" main defined" : `Package subpath '${t}' is not defined by "exports"`);
11006
9316
  for (const i of n) if (!i.startsWith("./") && !u.test(i)) throw a(E$1, `Invalid "exports" target "${i}" defined in the package config`);
11007
9317
  return n;
11008
9318
  };
11009
9319
  //#endregion
11010
- //#region ../../node_modules/.pnpm/get-tsconfig@4.14.0/node_modules/get-tsconfig/dist/index.mjs
9320
+ //#region ../../node_modules/.pnpm/get-tsconfig@4.14.1/node_modules/get-tsconfig/dist/index.mjs
11011
9321
  var xe = Object.defineProperty;
11012
- var r = (e, t) => xe(e, "name", {
9322
+ var i = (e, t) => xe(e, "name", {
11013
9323
  value: t,
11014
9324
  configurable: !0
11015
9325
  });
11016
- function h(e) {
9326
+ function L(e) {
11017
9327
  return e.startsWith("\\\\?\\") ? e : e.replace(/\\/g, "/");
11018
9328
  }
11019
- r(h, "slash");
11020
- const K = r((e) => {
9329
+ i(L, "slash");
9330
+ const Q = i((e) => {
11021
9331
  const t = fs[e];
11022
9332
  return (s, ...n) => {
11023
9333
  const o = `${e}:${n.join(":")}`;
@@ -11025,10 +9335,16 @@ const K = r((e) => {
11025
9335
  return l === void 0 && (l = Reflect.apply(t, fs, n), s?.set(o, l)), l;
11026
9336
  };
11027
9337
  }, "cacheFs");
11028
- const x = K("existsSync");
11029
- const Se = K("readFileSync");
11030
- const Q = K("statSync");
11031
- const O = r((e, t, s) => {
9338
+ const x = Q("existsSync");
9339
+ const Se = Q("readFileSync");
9340
+ const H = Q("statSync");
9341
+ const Ne = Q("realpathSync");
9342
+ const Pe$1 = i((...[e, t]) => {
9343
+ const s = Ne(e, t);
9344
+ if (typeof s != "string") throw new TypeError(`Unexpected resolved path type for ${s} in ${t}`);
9345
+ return s;
9346
+ }, "realpath");
9347
+ const O = i((e, t, s) => {
11032
9348
  for (;;) {
11033
9349
  const n = PATH.posix.join(e, t);
11034
9350
  if (x(s, n)) return n;
@@ -11038,49 +9354,49 @@ const O = r((e, t, s) => {
11038
9354
  }
11039
9355
  }, "findUp");
11040
9356
  const C = /^\.{1,2}(\/.*)?$/;
11041
- const H = r((e) => {
11042
- const t = h(e);
9357
+ const X = i((e) => {
9358
+ const t = L(e);
11043
9359
  return C.test(t) ? t : `./${t}`;
11044
9360
  }, "normalizeRelativePath");
11045
- function Ne(e, t = !1) {
9361
+ function We(e, t = !1) {
11046
9362
  const s = e.length;
11047
- let n = 0, o = "", l = 0, i = 16, f = 0, u = 0, g = 0, w = 0, d = 0;
9363
+ let n = 0, o = "", l = 0, r = 16, f = 0, u = 0, g = 0, d = 0, b = 0;
11048
9364
  function _(c, j) {
11049
- let y = 0, T = 0;
9365
+ let y = 0, A = 0;
11050
9366
  for (; y < c;) {
11051
9367
  let k = e.charCodeAt(n);
11052
- if (k >= 48 && k <= 57) T = T * 16 + k - 48;
11053
- else if (k >= 65 && k <= 70) T = T * 16 + k - 65 + 10;
11054
- else if (k >= 97 && k <= 102) T = T * 16 + k - 97 + 10;
9368
+ if (k >= 48 && k <= 57) A = A * 16 + k - 48;
9369
+ else if (k >= 65 && k <= 70) A = A * 16 + k - 65 + 10;
9370
+ else if (k >= 97 && k <= 102) A = A * 16 + k - 97 + 10;
11055
9371
  else break;
11056
9372
  n++, y++;
11057
9373
  }
11058
- return y < c && (T = -1), T;
9374
+ return y < c && (A = -1), A;
11059
9375
  }
11060
- r(_, "scanHexDigits");
11061
- function v(c) {
11062
- n = c, o = "", l = 0, i = 16, d = 0;
9376
+ i(_, "scanHexDigits");
9377
+ function h(c) {
9378
+ n = c, o = "", l = 0, r = 16, b = 0;
11063
9379
  }
11064
- r(v, "setPosition");
11065
- function p() {
9380
+ i(h, "setPosition");
9381
+ function D() {
11066
9382
  let c = n;
11067
9383
  if (e.charCodeAt(n) === 48) n++;
11068
9384
  else for (n++; n < e.length && R(e.charCodeAt(n));) n++;
11069
9385
  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++;
11070
- else return d = 3, e.substring(c, n);
9386
+ else return b = 3, e.substring(c, n);
11071
9387
  let j = n;
11072
9388
  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))) {
11073
9389
  for (n++; n < e.length && R(e.charCodeAt(n));) n++;
11074
9390
  j = n;
11075
- } else d = 3;
9391
+ } else b = 3;
11076
9392
  return e.substring(c, j);
11077
9393
  }
11078
- r(p, "scanNumber");
11079
- function L() {
9394
+ i(D, "scanNumber");
9395
+ function T() {
11080
9396
  let c = "", j = n;
11081
9397
  for (;;) {
11082
9398
  if (n >= s) {
11083
- c += e.substring(j, n), d = 2;
9399
+ c += e.substring(j, n), b = 2;
11084
9400
  break;
11085
9401
  }
11086
9402
  const y = e.charCodeAt(n);
@@ -11090,7 +9406,7 @@ function Ne(e, t = !1) {
11090
9406
  }
11091
9407
  if (y === 92) {
11092
9408
  if (c += e.substring(j, n), n++, n >= s) {
11093
- d = 2;
9409
+ b = 2;
11094
9410
  break;
11095
9411
  }
11096
9412
  switch (e.charCodeAt(n++)) {
@@ -11121,63 +9437,63 @@ function Ne(e, t = !1) {
11121
9437
  break;
11122
9438
  case 117:
11123
9439
  const k = _(4);
11124
- k >= 0 ? c += String.fromCharCode(k) : d = 4;
9440
+ k >= 0 ? c += String.fromCharCode(k) : b = 4;
11125
9441
  break;
11126
- default: d = 5;
9442
+ default: b = 5;
11127
9443
  }
11128
9444
  j = n;
11129
9445
  continue;
11130
9446
  }
11131
9447
  if (y >= 0 && y <= 31) if (J(y)) {
11132
- c += e.substring(j, n), d = 2;
9448
+ c += e.substring(j, n), b = 2;
11133
9449
  break;
11134
- } else d = 6;
9450
+ } else b = 6;
11135
9451
  n++;
11136
9452
  }
11137
9453
  return c;
11138
9454
  }
11139
- r(L, "scanString");
11140
- function A() {
11141
- if (o = "", d = 0, l = n, u = f, w = g, n >= s) return l = s, i = 17;
9455
+ i(T, "scanString");
9456
+ function w() {
9457
+ if (o = "", b = 0, l = n, u = f, d = g, n >= s) return l = s, r = 17;
11142
9458
  let c = e.charCodeAt(n);
11143
9459
  if (ee(c)) {
11144
9460
  do
11145
9461
  n++, o += String.fromCharCode(c), c = e.charCodeAt(n);
11146
9462
  while (ee(c));
11147
- return i = 15;
9463
+ return r = 15;
11148
9464
  }
11149
9465
  if (J(c)) return n++, o += String.fromCharCode(c), c === 13 && e.charCodeAt(n) === 10 && (n++, o += `
11150
- `), f++, g = n, i = 14;
9466
+ `), f++, g = n, r = 14;
11151
9467
  switch (c) {
11152
- case 123: return n++, i = 1;
11153
- case 125: return n++, i = 2;
11154
- case 91: return n++, i = 3;
11155
- case 93: return n++, i = 4;
11156
- case 58: return n++, i = 6;
11157
- case 44: return n++, i = 5;
11158
- case 34: return n++, o = L(), i = 10;
9468
+ case 123: return n++, r = 1;
9469
+ case 125: return n++, r = 2;
9470
+ case 91: return n++, r = 3;
9471
+ case 93: return n++, r = 4;
9472
+ case 58: return n++, r = 6;
9473
+ case 44: return n++, r = 5;
9474
+ case 34: return n++, o = T(), r = 10;
11159
9475
  case 47:
11160
9476
  const j = n - 1;
11161
9477
  if (e.charCodeAt(n + 1) === 47) {
11162
9478
  for (n += 2; n < s && !J(e.charCodeAt(n));) n++;
11163
- return o = e.substring(j, n), i = 12;
9479
+ return o = e.substring(j, n), r = 12;
11164
9480
  }
11165
9481
  if (e.charCodeAt(n + 1) === 42) {
11166
9482
  n += 2;
11167
9483
  const y = s - 1;
11168
- let T = !1;
9484
+ let A = !1;
11169
9485
  for (; n < y;) {
11170
9486
  const k = e.charCodeAt(n);
11171
9487
  if (k === 42 && e.charCodeAt(n + 1) === 47) {
11172
- n += 2, T = !0;
9488
+ n += 2, A = !0;
11173
9489
  break;
11174
9490
  }
11175
9491
  n++, J(k) && (k === 13 && e.charCodeAt(n) === 10 && n++, f++, g = n);
11176
9492
  }
11177
- return T || (n++, d = 1), o = e.substring(j, n), i = 13;
9493
+ return A || (n++, b = 1), o = e.substring(j, n), r = 13;
11178
9494
  }
11179
- return o += String.fromCharCode(c), n++, i = 16;
11180
- case 45: if (o += String.fromCharCode(c), n++, n === s || !R(e.charCodeAt(n))) return i = 16;
9495
+ return o += String.fromCharCode(c), n++, r = 16;
9496
+ case 45: if (o += String.fromCharCode(c), n++, n === s || !R(e.charCodeAt(n))) return r = 16;
11181
9497
  case 48:
11182
9498
  case 49:
11183
9499
  case 50:
@@ -11187,22 +9503,22 @@ function Ne(e, t = !1) {
11187
9503
  case 54:
11188
9504
  case 55:
11189
9505
  case 56:
11190
- case 57: return o += p(), i = 11;
9506
+ case 57: return o += D(), r = 11;
11191
9507
  default:
11192
- for (; n < s && D(c);) n++, c = e.charCodeAt(n);
9508
+ for (; n < s && v(c);) n++, c = e.charCodeAt(n);
11193
9509
  if (l !== n) {
11194
9510
  switch (o = e.substring(l, n), o) {
11195
- case "true": return i = 8;
11196
- case "false": return i = 9;
11197
- case "null": return i = 7;
9511
+ case "true": return r = 8;
9512
+ case "false": return r = 9;
9513
+ case "null": return r = 7;
11198
9514
  }
11199
- return i = 16;
9515
+ return r = 16;
11200
9516
  }
11201
- return o += String.fromCharCode(c), n++, i = 16;
9517
+ return o += String.fromCharCode(c), n++, r = 16;
11202
9518
  }
11203
9519
  }
11204
- r(A, "scanNext");
11205
- function D(c) {
9520
+ i(w, "scanNext");
9521
+ function v(c) {
11206
9522
  if (ee(c) || J(c)) return !1;
11207
9523
  switch (c) {
11208
9524
  case 125:
@@ -11216,40 +9532,40 @@ function Ne(e, t = !1) {
11216
9532
  }
11217
9533
  return !0;
11218
9534
  }
11219
- r(D, "isUnknownContentCharacter");
9535
+ i(v, "isUnknownContentCharacter");
11220
9536
  function B() {
11221
9537
  let c;
11222
9538
  do
11223
- c = A();
9539
+ c = w();
11224
9540
  while (c >= 12 && c <= 15);
11225
9541
  return c;
11226
9542
  }
11227
- return r(B, "scanNextNonTrivia"), {
11228
- setPosition: v,
11229
- getPosition: r(() => n, "getPosition"),
11230
- scan: t ? B : A,
11231
- getToken: r(() => i, "getToken"),
11232
- getTokenValue: r(() => o, "getTokenValue"),
11233
- getTokenOffset: r(() => l, "getTokenOffset"),
11234
- getTokenLength: r(() => n - l, "getTokenLength"),
11235
- getTokenStartLine: r(() => u, "getTokenStartLine"),
11236
- getTokenStartCharacter: r(() => l - w, "getTokenStartCharacter"),
11237
- getTokenError: r(() => d, "getTokenError")
9543
+ return i(B, "scanNextNonTrivia"), {
9544
+ setPosition: h,
9545
+ getPosition: i(() => n, "getPosition"),
9546
+ scan: t ? B : w,
9547
+ getToken: i(() => r, "getToken"),
9548
+ getTokenValue: i(() => o, "getTokenValue"),
9549
+ getTokenOffset: i(() => l, "getTokenOffset"),
9550
+ getTokenLength: i(() => n - l, "getTokenLength"),
9551
+ getTokenStartLine: i(() => u, "getTokenStartLine"),
9552
+ getTokenStartCharacter: i(() => l - d, "getTokenStartCharacter"),
9553
+ getTokenError: i(() => b, "getTokenError")
11238
9554
  };
11239
9555
  }
11240
- r(Ne, "createScanner");
9556
+ i(We, "createScanner");
11241
9557
  function ee(e) {
11242
9558
  return e === 32 || e === 9;
11243
9559
  }
11244
- r(ee, "isWhiteSpace");
9560
+ i(ee, "isWhiteSpace");
11245
9561
  function J(e) {
11246
9562
  return e === 10 || e === 13;
11247
9563
  }
11248
- r(J, "isLineBreak");
9564
+ i(J, "isLineBreak");
11249
9565
  function R(e) {
11250
9566
  return e >= 48 && e <= 57;
11251
9567
  }
11252
- r(R, "isDigit");
9568
+ i(R, "isDigit");
11253
9569
  var ge;
11254
9570
  (function(e) {
11255
9571
  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";
@@ -11260,76 +9576,76 @@ new Array(S).fill(0).map((e, t) => `
11260
9576
  ` + " ".repeat(t)), new Array(S).fill(0).map((e, t) => `
11261
9577
  ` + " ".repeat(t)), new Array(S).fill(0).map((e, t) => "\r" + " ".repeat(t)), new Array(S).fill(0).map((e, t) => `\r
11262
9578
  ` + " ".repeat(t));
11263
- var X;
9579
+ var Y;
11264
9580
  (function(e) {
11265
9581
  e.DEFAULT = { allowTrailingComma: !1 };
11266
- })(X || (X = {}));
11267
- function Pe$1(e, t = [], s = X.DEFAULT) {
9582
+ })(Y || (Y = {}));
9583
+ function Je(e, t = [], s = Y.DEFAULT) {
11268
9584
  let n = null, o = [];
11269
9585
  const l = [];
11270
- function i(u) {
9586
+ function r(u) {
11271
9587
  Array.isArray(o) ? o.push(u) : n !== null && (o[n] = u);
11272
9588
  }
11273
- return r(i, "onValue"), We(e, {
11274
- onObjectBegin: r(() => {
9589
+ return i(r, "onValue"), Me(e, {
9590
+ onObjectBegin: i(() => {
11275
9591
  const u = {};
11276
- i(u), l.push(o), o = u, n = null;
9592
+ r(u), l.push(o), o = u, n = null;
11277
9593
  }, "onObjectBegin"),
11278
- onObjectProperty: r((u) => {
9594
+ onObjectProperty: i((u) => {
11279
9595
  n = u;
11280
9596
  }, "onObjectProperty"),
11281
- onObjectEnd: r(() => {
9597
+ onObjectEnd: i(() => {
11282
9598
  o = l.pop();
11283
9599
  }, "onObjectEnd"),
11284
- onArrayBegin: r(() => {
9600
+ onArrayBegin: i(() => {
11285
9601
  const u = [];
11286
- i(u), l.push(o), o = u, n = null;
9602
+ r(u), l.push(o), o = u, n = null;
11287
9603
  }, "onArrayBegin"),
11288
- onArrayEnd: r(() => {
9604
+ onArrayEnd: i(() => {
11289
9605
  o = l.pop();
11290
9606
  }, "onArrayEnd"),
11291
- onLiteralValue: i,
11292
- onError: r((u, g, w) => {
9607
+ onLiteralValue: r,
9608
+ onError: i((u, g, d) => {
11293
9609
  t.push({
11294
9610
  error: u,
11295
9611
  offset: g,
11296
- length: w
9612
+ length: d
11297
9613
  });
11298
9614
  }, "onError")
11299
9615
  }, s), o[0];
11300
9616
  }
11301
- r(Pe$1, "parse$1");
11302
- function We(e, t, s = X.DEFAULT) {
11303
- const n = Ne(e, !1), o = [];
9617
+ i(Je, "parse$1");
9618
+ function Me(e, t, s = Y.DEFAULT) {
9619
+ const n = We(e, !1), o = [];
11304
9620
  let l = 0;
11305
- function i(b) {
11306
- return b ? () => l === 0 && b(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter()) : () => !0;
9621
+ function r(p) {
9622
+ return p ? () => l === 0 && p(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter()) : () => !0;
11307
9623
  }
11308
- r(i, "toNoArgVisit");
11309
- function f(b) {
11310
- return b ? (F) => l === 0 && b(F, n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter()) : () => !0;
9624
+ i(r, "toNoArgVisit");
9625
+ function f(p) {
9626
+ return p ? (F) => l === 0 && p(F, n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter()) : () => !0;
11311
9627
  }
11312
- r(f, "toOneArgVisit");
11313
- function u(b) {
11314
- return b ? (F) => l === 0 && b(F, n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter(), () => o.slice()) : () => !0;
9628
+ i(f, "toOneArgVisit");
9629
+ function u(p) {
9630
+ return p ? (F) => l === 0 && p(F, n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter(), () => o.slice()) : () => !0;
11315
9631
  }
11316
- r(u, "toOneArgVisitWithPath");
11317
- function g(b) {
11318
- return b ? () => {
11319
- l > 0 ? l++ : b(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter(), () => o.slice()) === !1 && (l = 1);
9632
+ i(u, "toOneArgVisitWithPath");
9633
+ function g(p) {
9634
+ return p ? () => {
9635
+ l > 0 ? l++ : p(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter(), () => o.slice()) === !1 && (l = 1);
11320
9636
  } : () => !0;
11321
9637
  }
11322
- r(g, "toBeginVisit");
11323
- function w(b) {
11324
- return b ? () => {
11325
- l > 0 && l--, l === 0 && b(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter());
9638
+ i(g, "toBeginVisit");
9639
+ function d(p) {
9640
+ return p ? () => {
9641
+ l > 0 && l--, l === 0 && p(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter());
11326
9642
  } : () => !0;
11327
9643
  }
11328
- r(w, "toEndVisit");
11329
- 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;
11330
- function T() {
9644
+ i(d, "toEndVisit");
9645
+ 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;
9646
+ function A() {
11331
9647
  for (;;) {
11332
- const b = n.scan();
9648
+ const p = n.scan();
11333
9649
  switch (n.getTokenError()) {
11334
9650
  case 4:
11335
9651
  k(14);
@@ -11346,11 +9662,9 @@ function We(e, t, s = X.DEFAULT) {
11346
9662
  case 2:
11347
9663
  k(12);
11348
9664
  break;
11349
- case 6:
11350
- k(16);
11351
- break;
9665
+ case 6: k(16);
11352
9666
  }
11353
- switch (b) {
9667
+ switch (p) {
11354
9668
  case 12:
11355
9669
  case 13:
11356
9670
  j ? k(10) : B();
@@ -11360,78 +9674,78 @@ function We(e, t, s = X.DEFAULT) {
11360
9674
  break;
11361
9675
  case 15:
11362
9676
  case 14: break;
11363
- default: return b;
9677
+ default: return p;
11364
9678
  }
11365
9679
  }
11366
9680
  }
11367
- r(T, "scanNext");
11368
- function k(b, F = [], W = []) {
11369
- if (c(b), F.length + W.length > 0) {
11370
- let $ = n.getToken();
11371
- for (; $ !== 17;) {
11372
- if (F.indexOf($) !== -1) {
11373
- T();
9681
+ i(A, "scanNext");
9682
+ function k(p, F = [], W = []) {
9683
+ if (c(p), F.length + W.length > 0) {
9684
+ let I = n.getToken();
9685
+ for (; I !== 17;) {
9686
+ if (F.indexOf(I) !== -1) {
9687
+ A();
11374
9688
  break;
11375
- } else if (W.indexOf($) !== -1) break;
11376
- $ = T();
9689
+ } else if (W.indexOf(I) !== -1) break;
9690
+ I = A();
11377
9691
  }
11378
9692
  }
11379
9693
  }
11380
- r(k, "handleError");
11381
- function P(b) {
9694
+ i(k, "handleError");
9695
+ function P(p) {
11382
9696
  const F = n.getTokenValue();
11383
- return b ? A(F) : (_(F), o.push(F)), T(), !0;
9697
+ return p ? w(F) : (_(F), o.push(F)), A(), !0;
11384
9698
  }
11385
- r(P, "parseString");
9699
+ i(P, "parseString");
11386
9700
  function M() {
11387
9701
  switch (n.getToken()) {
11388
9702
  case 11:
11389
- const b = n.getTokenValue();
11390
- let F = Number(b);
11391
- isNaN(F) && (k(2), F = 0), A(F);
9703
+ const p = n.getTokenValue();
9704
+ let F = Number(p);
9705
+ isNaN(F) && (k(2), F = 0), w(F);
11392
9706
  break;
11393
9707
  case 7:
11394
- A(null);
9708
+ w(null);
11395
9709
  break;
11396
9710
  case 8:
11397
- A(!0);
9711
+ w(!0);
11398
9712
  break;
11399
9713
  case 9:
11400
- A(!1);
9714
+ w(!1);
11401
9715
  break;
11402
9716
  default: return !1;
11403
9717
  }
11404
- return T(), !0;
9718
+ return A(), !0;
11405
9719
  }
11406
- r(M, "parseLiteral");
9720
+ i(M, "parseLiteral");
11407
9721
  function V() {
11408
- 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);
9722
+ 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);
11409
9723
  }
11410
- r(V, "parseProperty");
9724
+ i(V, "parseProperty");
11411
9725
  function z() {
11412
- d(), T();
11413
- let b = !1;
9726
+ b(), A();
9727
+ let p = !1;
11414
9728
  for (; n.getToken() !== 2 && n.getToken() !== 17;) {
11415
9729
  if (n.getToken() === 5) {
11416
- if (b || k(4, [], []), D(","), T(), n.getToken() === 2 && y) break;
11417
- } else b && k(6, [], []);
11418
- V() || k(4, [], [2, 5]), b = !0;
9730
+ if (p || k(4, [], []), v(","), A(), n.getToken() === 2 && y) break;
9731
+ } else p && k(6, [], []);
9732
+ V() || k(4, [], [2, 5]), p = !0;
11419
9733
  }
11420
- return v(), n.getToken() !== 2 ? k(7, [2], []) : T(), !0;
9734
+ return h(), n.getToken() !== 2 ? k(7, [2], []) : A(), !0;
11421
9735
  }
11422
- r(z, "parseObject");
9736
+ i(z, "parseObject");
11423
9737
  function G() {
11424
- p(), T();
11425
- let b = !0, F = !1;
9738
+ D(), A();
9739
+ let p = !0, F = !1;
11426
9740
  for (; n.getToken() !== 4 && n.getToken() !== 17;) {
11427
9741
  if (n.getToken() === 5) {
11428
- if (F || k(4, [], []), D(","), T(), n.getToken() === 4 && y) break;
9742
+ if (F || k(4, [], []), v(","), A(), n.getToken() === 4 && y) break;
11429
9743
  } else F && k(6, [], []);
11430
- b ? (o.push(0), b = !1) : o[o.length - 1]++, U() || k(4, [], [4, 5]), F = !0;
9744
+ p ? (o.push(0), p = !1) : o[o.length - 1]++, U() || k(4, [], [4, 5]), F = !0;
11431
9745
  }
11432
- return L(), b || o.pop(), n.getToken() !== 4 ? k(8, [4], []) : T(), !0;
9746
+ return T(), p || o.pop(), n.getToken() !== 4 ? k(8, [4], []) : A(), !0;
11433
9747
  }
11434
- r(G, "parseArray");
9748
+ i(G, "parseArray");
11435
9749
  function U() {
11436
9750
  switch (n.getToken()) {
11437
9751
  case 3: return G();
@@ -11440,9 +9754,9 @@ function We(e, t, s = X.DEFAULT) {
11440
9754
  default: return M();
11441
9755
  }
11442
9756
  }
11443
- return r(U, "parseValue"), T(), n.getToken() === 17 ? s.allowEmptyContent ? !0 : (k(4, [], []), !1) : U() ? (n.getToken() !== 17 && k(9, [], []), !0) : (k(4, [], []), !1);
9757
+ return i(U, "parseValue"), A(), n.getToken() === 17 ? s.allowEmptyContent ? !0 : (k(4, [], []), !1) : U() ? (n.getToken() !== 17 && k(9, [], []), !0) : (k(4, [], []), !1);
11444
9758
  }
11445
- r(We, "visit");
9759
+ i(Me, "visit");
11446
9760
  var ke;
11447
9761
  (function(e) {
11448
9762
  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";
@@ -11451,140 +9765,141 @@ var me;
11451
9765
  (function(e) {
11452
9766
  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";
11453
9767
  })(me || (me = {}));
11454
- const Je = Pe$1;
11455
- var de;
9768
+ const Ve = Je;
9769
+ var we;
11456
9770
  (function(e) {
11457
9771
  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";
11458
- })(de || (de = {}));
11459
- const we = r((e, t) => Je(Se(t, e, "utf8")), "readJsonc");
9772
+ })(we || (we = {}));
9773
+ const de = i((e, t) => Ve(Se(t, e, "utf8")), "readJsonc");
11460
9774
  const ne = Symbol("implicitBaseUrl");
11461
9775
  const E = "${configDir}";
11462
- const Me = r(() => {
9776
+ const ze = i(() => {
11463
9777
  const { findPnpApi: e } = Be;
11464
9778
  return e && e(process.cwd());
11465
9779
  }, "getPnpApi");
11466
- const te = r((e, t, s, n) => {
9780
+ const te = i((e, t, s, n) => {
11467
9781
  const o = `resolveFromPackageJsonPath:${e}:${t}:${s}`;
11468
9782
  if (n != null && n.has(o)) return n.get(o);
11469
- const l = we(e, n);
9783
+ const l = de(e, n);
11470
9784
  if (!l) return;
11471
- let i = t || "tsconfig.json";
9785
+ let r = t || "tsconfig.json";
11472
9786
  if (!s && l.exports) try {
11473
9787
  const [f] = v(l.exports, t, ["require", "types"]);
11474
- i = f;
9788
+ r = f;
11475
9789
  } catch {
11476
9790
  return !1;
11477
9791
  }
11478
- else !t && l.tsconfig && (i = l.tsconfig);
11479
- return i = PATH.join(e, "..", i), n?.set(o, i), i;
9792
+ else !t && l.tsconfig && (r = l.tsconfig);
9793
+ return r = PATH.join(e, "..", r), n?.set(o, r), r;
11480
9794
  }, "resolveFromPackageJsonPath");
11481
9795
  const se = "package.json";
11482
9796
  const le = "tsconfig.json";
11483
- const Ve = r((e, t, s) => {
11484
- let n = e;
11485
- if (e === ".." && (n = PATH.join(n, le)), e[0] === "." && (n = PATH.resolve(t, n)), PATH.isAbsolute(n)) {
11486
- if (x(s, n)) {
11487
- if (Q(s, n).isFile()) return n;
11488
- } else if (!n.endsWith(".json")) {
11489
- const v = `${n}.json`;
11490
- if (x(s, v)) return v;
9797
+ const Ge = i((e, t, s) => {
9798
+ var n;
9799
+ let o = e;
9800
+ if (e === ".." && (o = PATH.join(o, le)), e[0] === "." && (o = PATH.resolve(t, o)), PATH.isAbsolute(o)) {
9801
+ if (x(s, o)) {
9802
+ if (H(s, o).isFile()) return o;
9803
+ } else if (!o.endsWith(".json")) {
9804
+ const T = `${o}.json`;
9805
+ if (x(s, T)) return T;
11491
9806
  }
11492
9807
  return;
11493
9808
  }
11494
- const [o, ...l] = e.split("/"), i = o[0] === "@" ? `${o}/${l.shift()}` : o, f = l.join("/"), u = Me();
11495
- if (u) {
11496
- const { resolveRequest: v } = u;
9809
+ const [l, ...r] = e.split("/"), f = l[0] === "@" ? `${l}/${r.shift()}` : l, u = r.join("/"), g = ze();
9810
+ if (g) {
9811
+ const { resolveRequest: T } = g;
11497
9812
  try {
11498
- if (i === e) {
11499
- const p = v(PATH.join(i, se), t);
11500
- if (p) {
11501
- const L = te(p, f, !1, s);
11502
- if (L && x(s, L)) return L;
9813
+ if (f === e) {
9814
+ const w = T(PATH.join(f, se), t);
9815
+ if (w) {
9816
+ const v = te(w, u, !1, s);
9817
+ if (v && x(s, v)) return v;
11503
9818
  }
11504
9819
  } else {
11505
- let p;
9820
+ let w;
11506
9821
  try {
11507
- p = v(e, t, { extensions: [".json"] });
9822
+ w = T(e, t, { extensions: [".json"] });
11508
9823
  } catch {
11509
- p = v(PATH.join(e, le), t);
9824
+ w = T(PATH.join(e, le), t);
11510
9825
  }
11511
- if (p) return p;
9826
+ if (w) return w;
11512
9827
  }
11513
9828
  } catch {}
11514
9829
  }
11515
- const g = O(PATH.resolve(t), PATH.join("node_modules", i), s);
11516
- if (!g || !Q(s, g).isDirectory()) return;
11517
- const w = PATH.join(g, se);
11518
- if (x(s, w)) {
11519
- const v = te(w, f, !1, s);
11520
- if (v === !1) return;
11521
- if (v && x(s, v) && Q(s, v).isFile()) return v;
11522
- }
11523
- const d = PATH.join(g, f), _ = d.endsWith(".json");
11524
- if (!_) {
11525
- const v = `${d}.json`;
11526
- if (x(s, v)) return v;
11527
- }
11528
- if (x(s, d)) {
11529
- if (Q(s, d).isDirectory()) {
11530
- const v = PATH.join(d, se);
11531
- if (x(s, v)) {
11532
- const L = te(v, "", !0, s);
11533
- if (L && x(s, L)) return L;
11534
- }
11535
- const p = PATH.join(d, le);
11536
- if (x(s, p)) return p;
11537
- } else if (_) return d;
9830
+ const d = O(PATH.resolve(t), PATH.join("node_modules", f), s);
9831
+ if (!d || !((n = H(s, d)) != null && n.isDirectory())) return;
9832
+ const b = Pe$1(s, d), _ = PATH.join(b, se);
9833
+ if (x(s, _)) {
9834
+ const T = te(_, u, !1, s);
9835
+ if (T === !1) return;
9836
+ if (T && x(s, T) && H(s, T).isFile()) return T;
9837
+ }
9838
+ const h = PATH.join(b, u), D = h.endsWith(".json");
9839
+ if (!D) {
9840
+ const T = `${h}.json`;
9841
+ if (x(s, T)) return T;
9842
+ }
9843
+ if (x(s, h)) {
9844
+ if (H(s, h).isDirectory()) {
9845
+ const T = PATH.join(h, se);
9846
+ if (x(s, T)) {
9847
+ const v = te(T, "", !0, s);
9848
+ if (v && x(s, v)) return v;
9849
+ }
9850
+ const w = PATH.join(h, le);
9851
+ if (x(s, w)) return w;
9852
+ } else if (D) return h;
11538
9853
  }
11539
9854
  }, "resolveExtendsPath");
11540
- const oe = r((e, t) => H(PATH.relative(e, t)), "pathRelative");
11541
- const be = [
9855
+ const oe = i((e, t) => X(PATH.relative(e, t)), "pathRelative");
9856
+ const pe = [
11542
9857
  "files",
11543
9858
  "include",
11544
9859
  "exclude"
11545
9860
  ];
11546
- const N = r((e, t, s) => {
9861
+ const N = i((e, t, s) => {
11547
9862
  const n = PATH.join(t, s);
11548
- return h(PATH.relative(e, n)) || "./";
9863
+ return L(PATH.relative(e, n)) || "./";
11549
9864
  }, "resolveAndRelativize");
11550
- const ze = r((e, t, s) => {
9865
+ const Qe = i((e, t, s) => {
11551
9866
  const n = PATH.relative(e, t);
11552
9867
  if (!n) return s;
11553
- return h(`${n}/${s.startsWith("./") ? s.slice(2) : s}`);
9868
+ return L(`${n}/${s.startsWith("./") ? s.slice(2) : s}`);
11554
9869
  }, "prefixPattern");
11555
- const Ge = r((e, t, s, n) => {
11556
- const o = Ve(e, t, n);
9870
+ const He = i((e, t, s, n) => {
9871
+ const o = Ge(e, t, n);
11557
9872
  if (!o) throw new Error(`File '${e}' not found.`);
11558
9873
  if (s.has(o)) throw new Error(`Circularity detected while resolving configuration: ${o}`);
11559
9874
  s.add(o);
11560
- const l = PATH.dirname(o), i = pe(o, n, s);
11561
- delete i.references;
11562
- const { compilerOptions: f } = i;
9875
+ const l = PATH.dirname(o), r = ve(o, n, s);
9876
+ delete r.references;
9877
+ const { compilerOptions: f } = r;
11563
9878
  if (f) {
11564
9879
  const { baseUrl: u } = f;
11565
9880
  u && !u.startsWith(E) && (f.baseUrl = N(t, l, u));
11566
9881
  const { outDir: g } = f;
11567
9882
  g && !g.startsWith(E) && (f.outDir = N(t, l, g));
11568
- const { declarationDir: w } = f;
11569
- w && !w.startsWith(E) && (f.declarationDir = N(t, l, w));
11570
- const { rootDir: d } = f;
11571
- d && !d.startsWith(E) && (f.rootDir = N(t, l, d));
9883
+ const { declarationDir: d } = f;
9884
+ d && !d.startsWith(E) && (f.declarationDir = N(t, l, d));
9885
+ const { rootDir: b } = f;
9886
+ b && !b.startsWith(E) && (f.rootDir = N(t, l, b));
11572
9887
  const { rootDirs: _ } = f;
11573
- _ && (f.rootDirs = _.map((p) => p.startsWith(E) ? p : N(t, l, p)));
11574
- const { typeRoots: v } = f;
11575
- v && (f.typeRoots = v.map((p) => p.startsWith(E) ? p : N(t, l, p)));
9888
+ _ && (f.rootDirs = _.map((D) => D.startsWith(E) ? D : N(t, l, D)));
9889
+ const { typeRoots: h } = f;
9890
+ h && (f.typeRoots = h.map((D) => D.startsWith(E) ? D : N(t, l, D)));
11576
9891
  }
11577
- for (const u of be) {
11578
- const g = i[u];
11579
- g && (i[u] = g.map((w) => w.startsWith(E) ? w : ze(t, l, w)));
9892
+ for (const u of pe) {
9893
+ const g = r[u];
9894
+ g && (r[u] = g.map((d) => d.startsWith(E) ? d : Qe(t, l, d)));
11580
9895
  }
11581
- return i;
9896
+ return r;
11582
9897
  }, "resolveExtends");
11583
- const ve = ["outDir", "declarationDir"];
11584
- const pe = r((e, t, s = /* @__PURE__ */ new Set()) => {
9898
+ const be = ["outDir", "declarationDir"];
9899
+ const ve = i((e, t, s = /* @__PURE__ */ new Set()) => {
11585
9900
  let n;
11586
9901
  try {
11587
- n = we(e, t) || {};
9902
+ n = de(e, t) || {};
11588
9903
  } catch {
11589
9904
  throw new Error(`Cannot resolve tsconfig at path: ${e}`);
11590
9905
  }
@@ -11597,8 +9912,8 @@ const pe = r((e, t, s = /* @__PURE__ */ new Set()) => {
11597
9912
  if (n.extends) {
11598
9913
  const l = Array.isArray(n.extends) ? n.extends : [n.extends];
11599
9914
  delete n.extends;
11600
- for (const i of l.reverse()) {
11601
- const f = Ge(i, o, new Set(s), t), u = {
9915
+ for (const r of l.reverse()) {
9916
+ const f = He(r, o, new Set(s), t), u = {
11602
9917
  ...f,
11603
9918
  ...n,
11604
9919
  compilerOptions: {
@@ -11621,21 +9936,21 @@ const pe = r((e, t, s = /* @__PURE__ */ new Set()) => {
11621
9936
  l[f] = oe(o, g);
11622
9937
  }
11623
9938
  }
11624
- for (const f of ve) {
9939
+ for (const f of be) {
11625
9940
  let u = l[f];
11626
- u && (Array.isArray(n.exclude) || (n.exclude = ve.map((g) => l[g]).filter(Boolean)), u.startsWith(E) || (u = H(u)), l[f] = u);
9941
+ u && (Array.isArray(n.exclude) || (n.exclude = be.map((g) => l[g]).filter(Boolean)), u.startsWith(E) || (u = X(u)), l[f] = u);
11627
9942
  }
11628
9943
  } else n.compilerOptions = {};
11629
- 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) {
9944
+ 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) {
11630
9945
  const { watchOptions: l } = n;
11631
- 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());
9946
+ 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());
11632
9947
  }
11633
9948
  return n;
11634
9949
  }, "_parseTsconfig");
11635
- const Y = r((e, t) => {
11636
- if (e.startsWith(E)) return h(PATH.join(t, e.slice(12)));
9950
+ const Z = i((e, t) => {
9951
+ if (e.startsWith(E)) return L(PATH.join(t, e.slice(12)));
11637
9952
  }, "interpolateConfigDir");
11638
- const Qe = [
9953
+ const Xe = [
11639
9954
  "outDir",
11640
9955
  "declarationDir",
11641
9956
  "outFile",
@@ -11643,8 +9958,8 @@ const Qe = [
11643
9958
  "baseUrl",
11644
9959
  "tsBuildInfoFile"
11645
9960
  ];
11646
- const He = r((e) => {
11647
- if (e.strict) for (const I of [
9961
+ const Ye = i((e) => {
9962
+ if (e.strict) for (const $ of [
11648
9963
  "noImplicitAny",
11649
9964
  "noImplicitThis",
11650
9965
  "strictNullChecks",
@@ -11654,7 +9969,7 @@ const He = r((e) => {
11654
9969
  "strictBuiltinIteratorReturn",
11655
9970
  "alwaysStrict",
11656
9971
  "useUnknownInCatchVariables"
11657
- ]) e[I] === void 0 && (e[I] = !0);
9972
+ ]) e[$] === void 0 && (e[$] = !0);
11658
9973
  if (e.composite && (e.declaration ??= !0, e.incremental ??= !0), e.target) {
11659
9974
  let a = e.target.toLowerCase();
11660
9975
  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);
@@ -11662,8 +9977,8 @@ const He = r((e) => {
11662
9977
  if (e.module) {
11663
9978
  let a = e.module.toLowerCase();
11664
9979
  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") {
11665
- const I = e.target;
11666
- (I === "es3" || I === "es2022" || I === "es2023" || I === "es2024" || I === "esnext") && (e.useDefineForClassFields ??= !0);
9980
+ const $ = e.target;
9981
+ ($ === "es3" || $ === "es2022" || $ === "es2023" || $ === "es2024" || $ === "esnext") && (e.useDefineForClassFields ??= !0);
11667
9982
  }
11668
9983
  a === "preserve" && (e.moduleResolution ??= "bundler");
11669
9984
  }
@@ -11673,52 +9988,52 @@ const He = r((e) => {
11673
9988
  }
11674
9989
  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);
11675
9990
  }, "normalizeCompilerOptions");
11676
- const ie = r((e, t = /* @__PURE__ */ new Map()) => {
11677
- const s = PATH.resolve(e), n = pe(s, t), o = PATH.dirname(s), { compilerOptions: l } = n;
9991
+ const ie = i((e, t = /* @__PURE__ */ new Map()) => {
9992
+ const s = PATH.resolve(e), n = ve(s, t), o = PATH.dirname(s), { compilerOptions: l } = n;
11678
9993
  if (l) {
11679
- for (const f of Qe) {
9994
+ for (const f of Xe) {
11680
9995
  const u = l[f];
11681
9996
  if (u) {
11682
- const g = Y(u, o);
9997
+ const g = Z(u, o);
11683
9998
  l[f] = g ? oe(o, g) : u;
11684
9999
  }
11685
10000
  }
11686
10001
  for (const f of ["rootDirs", "typeRoots"]) {
11687
10002
  const u = l[f];
11688
10003
  u && (l[f] = u.map((g) => {
11689
- const w = Y(g, o);
11690
- return w ? oe(o, w) : H(g);
10004
+ const d = Z(g, o);
10005
+ return d ? oe(o, d) : X(g);
11691
10006
  }));
11692
10007
  }
11693
- const { paths: i } = l;
11694
- if (i) for (const f of Object.keys(i)) i[f] = i[f].map((u) => {
10008
+ const { paths: r } = l;
10009
+ if (r) for (const f of Object.keys(r)) r[f] = r[f].map((u) => {
11695
10010
  var g;
11696
- return (g = Y(u, o)) != null ? g : u;
10011
+ return (g = Z(u, o)) != null ? g : u;
11697
10012
  });
11698
- He(l);
10013
+ Ye(l);
11699
10014
  }
11700
- for (const i of be) {
11701
- const f = n[i];
11702
- f && (n[i] = f.map((u) => {
10015
+ for (const r of pe) {
10016
+ const f = n[r];
10017
+ f && (n[r] = f.map((u) => {
11703
10018
  var g;
11704
- return (g = Y(u, o)) != null ? g : u;
10019
+ return (g = Z(u, o)) != null ? g : u;
11705
10020
  }));
11706
10021
  }
11707
10022
  return n;
11708
10023
  }, "parseTsconfig");
11709
- var Xe = Object.defineProperty;
11710
- var Z = r((e, t) => Xe(e, "name", {
10024
+ var Ze = Object.defineProperty;
10025
+ var q = i((e, t) => Ze(e, "name", {
11711
10026
  value: t,
11712
10027
  configurable: !0
11713
10028
  }), "s");
11714
- const Te = Z((e) => {
10029
+ const Te = q((e) => {
11715
10030
  let t = "";
11716
10031
  for (let s = 0; s < e.length; s += 1) {
11717
10032
  const n = e[s], o = n.toUpperCase();
11718
10033
  t += n === o ? n.toLowerCase() : o;
11719
10034
  }
11720
10035
  return t;
11721
- }, "invertCase"), re = /* @__PURE__ */ new Map(), Ae = Z((e, t) => {
10036
+ }, "invertCase"), re = /* @__PURE__ */ new Map(), Ae = q((e, t) => {
11722
10037
  const s = Re.join(e, `.is-fs-case-sensitive-test-${process.pid}`);
11723
10038
  try {
11724
10039
  return t.writeFileSync(s, ""), !t.existsSync(Te(s));
@@ -11727,19 +10042,19 @@ const Te = Z((e) => {
11727
10042
  t.unlinkSync(s);
11728
10043
  } catch {}
11729
10044
  }
11730
- }, "checkDirectoryCaseWithWrite"), Ye = Z((e, t, s) => {
10045
+ }, "checkDirectoryCaseWithWrite"), qe = q((e, t, s) => {
11731
10046
  try {
11732
10047
  return Ae(e, s);
11733
10048
  } catch (n) {
11734
10049
  if (t === void 0) return Ae(Ue.tmpdir(), s);
11735
10050
  throw n;
11736
10051
  }
11737
- }, "checkDirectoryCaseWithFallback"), Ze = Z((e, t = $e, s = !0) => {
10052
+ }, "checkDirectoryCaseWithFallback"), Ke = q((e, t = Ie, s = !0) => {
11738
10053
  const n = e != null ? e : process.cwd();
11739
10054
  if (s && re.has(n)) return re.get(n);
11740
10055
  let o;
11741
10056
  const l = Te(n);
11742
- return l !== n && t.existsSync(n) ? o = !t.existsSync(l) : o = Ye(n, e, t), s && re.set(n, o), o;
10057
+ return l !== n && t.existsSync(n) ? o = !t.existsSync(l) : o = qe(n, e, t), s && re.set(n, o), o;
11743
10058
  }, "isFsCaseSensitive"), { join: _e } = PATH.posix, ue = {
11744
10059
  ts: [
11745
10060
  ".ts",
@@ -11748,79 +10063,79 @@ const Te = Z((e) => {
11748
10063
  ],
11749
10064
  cts: [".cts", ".d.cts"],
11750
10065
  mts: [".mts", ".d.mts"]
11751
- }, qe = r((e) => {
10066
+ }, Oe = i((e) => {
11752
10067
  const t = [...ue.ts], s = [...ue.cts], n = [...ue.mts];
11753
10068
  return e != null && e.allowJs && (t.push(".js", ".jsx"), s.push(".cjs"), n.push(".mjs")), [
11754
10069
  ...t,
11755
10070
  ...s,
11756
10071
  ...n
11757
10072
  ];
11758
- }, "getSupportedExtensions"), Ke = r((e) => {
10073
+ }, "getSupportedExtensions"), Ce = i((e) => {
11759
10074
  const t = [];
11760
10075
  if (!e) return t;
11761
10076
  const { outDir: s, declarationDir: n } = e;
11762
10077
  return s && t.push(s), n && t.push(n), t;
11763
- }, "getDefaultExcludeSpec"), ye = r((e) => e.replaceAll(/[.*+?^${}()|[\]\\]/g, String.raw`\$&`), "escapeForRegexp"), fe = `(?!(${[
10078
+ }, "getDefaultExcludeSpec"), ye = i((e) => e.replaceAll(/[.*+?^${}()|[\]\\]/g, String.raw`\$&`), "escapeForRegexp"), fe = `(?!(${[
11764
10079
  "node_modules",
11765
10080
  "bower_components",
11766
10081
  "jspm_packages"
11767
- ].join("|")})(/|$))`, Ce = /(?:^|\/)[^.*?]+$/, je = "**/*", q = "[^/]", ae = "[^./]", Fe = process.platform === "win32", De = r(({ config: e, path: t }, s = Ze()) => {
10082
+ ].join("|")})(/|$))`, nn = /(?:^|\/)[^.*?]+$/, je = "**/*", K = "[^/]", ae = "[^./]", Fe = process.platform === "win32", De = i(({ config: e, path: t }, s = Ke()) => {
11768
10083
  if ("extends" in e) throw new Error("tsconfig#extends must be resolved. Use getTsconfig or parseTsconfig to resolve it.");
11769
10084
  if (!PATH.isAbsolute(t)) throw new Error("The tsconfig path must be absolute");
11770
- Fe && (t = h(t));
11771
- 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) => {
11772
- const D = u(A), B = ye(D).replaceAll(String.raw`\*\*/`, "(.+/)?").replaceAll(String.raw`\*`, `${q}*`).replaceAll(String.raw`\?`, q);
11773
- return new RegExp(`^${B}($|/)`, d);
11774
- }), p = o || l ? l : [je], L = p ? p.map((A) => {
11775
- let D = u(A);
11776
- Ce.test(D) && (D = _e(D, je));
11777
- const B = ye(D).replaceAll(String.raw`/\*\*`, `(/${fe}${ae}${q}*)*?`).replaceAll(/(\/)?\\\*/g, (c, j) => {
10085
+ Fe && (t = L(t));
10086
+ 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) => {
10087
+ const v = u(w), B = ye(v).replaceAll(String.raw`\*\*/`, "(.+/)?").replaceAll(String.raw`\*`, `${K}*`).replaceAll(String.raw`\?`, K);
10088
+ return new RegExp(`^${B}($|/)`, b);
10089
+ }), D = o || l ? l : [je], T = D ? D.map((w) => {
10090
+ let v = u(w);
10091
+ nn.test(v) && (v = _e(v, je));
10092
+ const B = ye(v).replaceAll(String.raw`/\*\*`, `(/${fe}${ae}${K}*)*?`).replaceAll(/(\/)?\\\*/g, (c, j) => {
11778
10093
  const y = `(${ae}|(\\.(?!min\\.js$))?)*`;
11779
10094
  return j ? `/${fe}${ae}${y}` : y;
11780
10095
  }).replaceAll(/(\/)?\\\?/g, (c, j) => {
11781
- const y = q;
10096
+ const y = K;
11782
10097
  return j ? `/${fe}${y}` : y;
11783
10098
  });
11784
- return new RegExp(`^${B}$`, d);
10099
+ return new RegExp(`^${B}$`, b);
11785
10100
  }) : void 0;
11786
- return (A) => {
11787
- if (!PATH.isAbsolute(A)) throw new Error("filePath must be absolute");
11788
- if (Fe && (A = h(A)), g != null && g.includes(A)) return e;
11789
- if (!(!w.some((D) => A.endsWith(D)) || v.some((D) => D.test(A))) && L && L.some((D) => D.test(A))) return e;
10101
+ return (w) => {
10102
+ if (!PATH.isAbsolute(w)) throw new Error("filePath must be absolute");
10103
+ if (Fe && (w = L(w)), g != null && g.includes(w)) return e;
10104
+ if (!(!d.some((v) => w.endsWith(v)) || h.some((v) => v.test(w))) && T && T.some((v) => v.test(w))) return e;
11790
10105
  };
11791
- }, "createFilesMatcher"), Le = r((e, t, s) => {
10106
+ }, "createFilesMatcher"), he = i((e, t, s) => {
11792
10107
  const n = PATH.resolve(e);
11793
- let o = h(e);
10108
+ let o = L(e);
11794
10109
  for (;;) {
11795
10110
  const l = O(o, t, s);
11796
10111
  if (!l) return;
11797
- const i = PATH.resolve(l), f = ie(i, s), u = {
11798
- path: h(i),
10112
+ const r = PATH.resolve(l), f = ie(r, s), u = {
10113
+ path: L(r),
11799
10114
  config: f
11800
10115
  };
11801
10116
  if (De(u)(n)) return u;
11802
- const w = PATH.dirname(l), d = PATH.dirname(w);
11803
- if (d === w) return;
11804
- o = d;
10117
+ const d = PATH.dirname(l), b = PATH.dirname(d);
10118
+ if (b === d) return;
10119
+ o = b;
11805
10120
  }
11806
- }, "findConfigApplicable"), he = r((e = process.cwd(), t = "tsconfig.json", s = /* @__PURE__ */ new Map(), n = !1) => {
10121
+ }, "findConfigApplicable"), Le = i((e = process.cwd(), t = "tsconfig.json", s = /* @__PURE__ */ new Map(), n = !1) => {
11807
10122
  var o;
11808
- return n ? (o = Le(e, t, s)) == null ? void 0 : o.path : O(h(e), t, s);
11809
- }, "findTsconfig"), en = r((e = process.cwd(), t = "tsconfig.json", s = /* @__PURE__ */ new Map(), n = !1) => {
10123
+ return n ? (o = he(e, t, s)) == null ? void 0 : o.path : O(L(e), t, s);
10124
+ }, "findTsconfig"), tn = i((e = process.cwd(), t = "tsconfig.json", s = /* @__PURE__ */ new Map(), n = !1) => {
11810
10125
  var o;
11811
10126
  if (!n) {
11812
- const l = he(e, t, s);
10127
+ const l = Le(e, t, s);
11813
10128
  if (!l) return null;
11814
10129
  return {
11815
10130
  path: l,
11816
10131
  config: ie(l, s)
11817
10132
  };
11818
10133
  }
11819
- return (o = Le(e, t, s)) != null ? o : null;
11820
- }, "getTsconfig"), nn = /\*/g, Ee = r((e, t) => {
11821
- const s = e.match(nn);
10134
+ return (o = he(e, t, s)) != null ? o : null;
10135
+ }, "getTsconfig"), sn = /\*/g, Ee = i((e, t) => {
10136
+ const s = e.match(sn);
11822
10137
  if (s && s.length > 1) throw new Error(t);
11823
- }, "assertStarCount"), tn = r((e) => {
10138
+ }, "assertStarCount"), ln = i((e) => {
11824
10139
  if (e.includes("*")) {
11825
10140
  const [t, s] = e.split("*");
11826
10141
  return {
@@ -11829,31 +10144,31 @@ const Te = Z((e) => {
11829
10144
  };
11830
10145
  }
11831
10146
  return e;
11832
- }, "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.`), {
11833
- pattern: tn(n),
10147
+ }, "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.`), {
10148
+ pattern: ln(n),
11834
10149
  substitutions: o.map((l) => {
11835
10150
  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 './'?");
11836
10151
  return PATH.resolve(s, l);
11837
10152
  })
11838
10153
  })), "parsePaths");
11839
- r((e) => {
10154
+ i((e) => {
11840
10155
  const { compilerOptions: t } = e.config;
11841
10156
  if (!t) return null;
11842
10157
  const { baseUrl: s, paths: n } = t;
11843
10158
  if (!s && !n) return null;
11844
- const o = ne in t && t[ne], l = PATH.resolve(PATH.dirname(e.path), s || o || "."), i = n ? ln(n, s, l) : [];
10159
+ const o = ne in t && t[ne], l = PATH.resolve(PATH.dirname(e.path), s || o || "."), r = n ? rn(n, s, l) : [];
11845
10160
  return (f) => {
11846
10161
  if (C.test(f)) return [];
11847
10162
  const u = [];
11848
- for (const _ of i) {
11849
- if (_.pattern === f) return _.substitutions.map(h);
10163
+ for (const _ of r) {
10164
+ if (_.pattern === f) return _.substitutions.map(L);
11850
10165
  typeof _.pattern != "string" && u.push(_);
11851
10166
  }
11852
- let g, w = -1;
11853
- for (const _ of u) sn(_.pattern, f) && _.pattern.prefix.length > w && (w = _.pattern.prefix.length, g = _);
11854
- if (!g) return s ? [h(PATH.join(l, f))] : [];
11855
- const d = f.slice(g.pattern.prefix.length, f.length - g.pattern.suffix.length);
11856
- return g.substitutions.map((_) => h(_.replace("*", d)));
10167
+ let g, d = -1;
10168
+ for (const _ of u) on(_.pattern, f) && _.pattern.prefix.length > d && (d = _.pattern.prefix.length, g = _);
10169
+ if (!g) return s ? [L(PATH.join(l, f))] : [];
10170
+ const b = f.slice(g.pattern.prefix.length, f.length - g.pattern.suffix.length);
10171
+ return g.substitutions.map((_) => L(_.replace("*", b)));
11857
10172
  };
11858
10173
  }, "createPathsMatcher");
11859
10174
  //#endregion
@@ -11865,7 +10180,7 @@ const readRootTsconfigModule = (pkg) => {
11865
10180
  return typeof module === "string" ? module : void 0;
11866
10181
  };
11867
10182
  const readResolvedTsconfigTypes = (pkg) => {
11868
- const compilerOptions = en(PATH.resolve(pkg), "tsconfig.json")?.config?.compilerOptions;
10183
+ const compilerOptions = tn(PATH.resolve(pkg), "tsconfig.json")?.config?.compilerOptions;
11869
10184
  if (!compilerOptions || !("types" in compilerOptions)) return;
11870
10185
  const { types } = compilerOptions;
11871
10186
  if (!Array.isArray(types)) return;
@@ -12407,9 +10722,10 @@ function createDeclarationEmitter(isVerbose = false) {
12407
10722
  let promise = declarationPromises.get(key);
12408
10723
  if (!promise) {
12409
10724
  promise = (async () => {
10725
+ const dtsConfig = writeTypescriptConfig(cwd(), platform, srcDir, true, outDir);
12410
10726
  return {
12411
10727
  outDir,
12412
- result: runTsc(writeTypescriptConfig(cwd(), platform, srcDir, true, outDir), isVerbose)
10728
+ result: runTsc(dtsConfig, isVerbose)
12413
10729
  };
12414
10730
  })();
12415
10731
  declarationPromises.set(key, promise);