@voidzero-dev/vite-plus-core 0.1.1 → 0.1.3

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 (90) hide show
  1. package/dist/rolldown/cli.mjs +11 -22
  2. package/dist/rolldown/config.d.mts +1 -2
  3. package/dist/rolldown/config.mjs +10 -11
  4. package/dist/rolldown/experimental-index.d.mts +20 -6
  5. package/dist/rolldown/experimental-index.mjs +24 -22
  6. package/dist/rolldown/filter-index.d.mts +1 -2
  7. package/dist/rolldown/filter-index.mjs +2 -8
  8. package/dist/rolldown/get-log-filter.mjs +1 -2
  9. package/dist/rolldown/index.d.mts +3 -3
  10. package/dist/rolldown/index.mjs +10 -13
  11. package/dist/rolldown/parallel-plugin-worker.mjs +7 -9
  12. package/dist/rolldown/parallel-plugin.d.mts +1 -2
  13. package/dist/rolldown/parallel-plugin.mjs +1 -2
  14. package/dist/rolldown/parse-ast-index.d.mts +1 -1
  15. package/dist/rolldown/parse-ast-index.mjs +4 -6
  16. package/dist/rolldown/plugins-index.d.mts +3 -3
  17. package/dist/rolldown/plugins-index.mjs +4 -6
  18. package/dist/rolldown/shared/{binding-C4ZlFAt6.d.mts → binding-BohGL_65.d.mts} +10 -5
  19. package/dist/rolldown/shared/{binding-Bd04_f8P.mjs → binding-COZdHtee.mjs} +7 -16
  20. package/dist/rolldown/shared/{bindingify-input-options-ffqkmT9z.mjs → bindingify-input-options-DdW_FOGG.mjs} +33 -56
  21. package/dist/rolldown/shared/{constructors-C5a55nbY.mjs → constructors-CQlws1EK.mjs} +2 -4
  22. package/dist/rolldown/shared/{constructors-cPsD1J5w.d.mts → constructors-ColrbLxz.d.mts} +2 -2
  23. package/dist/rolldown/shared/{define-config-DX_4SBzo.d.mts → define-config-BqZZMLjO.d.mts} +66 -30
  24. package/dist/rolldown/shared/{define-config-BMj_QknW.mjs → define-config-DJOr6Iwt.mjs} +1 -2
  25. package/dist/rolldown/shared/{error-BYPsvVEN.mjs → error-FTNambir.mjs} +3 -8
  26. package/dist/rolldown/shared/{load-config-Oj1-3DPg.mjs → load-config-DBRCgd9m.mjs} +2 -4
  27. package/dist/rolldown/shared/{logs-CCc_0vhs.mjs → logs-D80CXhvg.mjs} +5 -8
  28. package/dist/rolldown/shared/{misc-Xty885dB.mjs → misc-DJYbNKZX.mjs} +1 -2
  29. package/dist/rolldown/shared/{normalize-string-or-regex-DoNa0azR.mjs → normalize-string-or-regex-CJTjKt5t.mjs} +3 -6
  30. package/dist/rolldown/shared/{parse-Wj8OTS4w.mjs → parse-q7gzDQmi.mjs} +2 -5
  31. package/dist/rolldown/shared/{prompt-CmNr0AI-.mjs → prompt-DZIXsnf9.mjs} +1 -3
  32. package/dist/rolldown/shared/{rolldown-y9H0nYAD.mjs → rolldown-BJMdRJb1.mjs} +2 -4
  33. package/dist/rolldown/shared/{rolldown-build-DkOWV5Vu.mjs → rolldown-build-DKv2K096.mjs} +424 -473
  34. package/dist/rolldown/shared/{transform-DoG7c5_r.d.mts → transform-BoJxrM-e.d.mts} +1 -1
  35. package/dist/rolldown/shared/{transform-D55YcCvB.mjs → transform-CQppMqL8.mjs} +3 -6
  36. package/dist/rolldown/shared/{watch-Cn-znpX_.mjs → watch-BeMWbIuq.mjs} +71 -77
  37. package/dist/rolldown/utils-index.d.mts +2 -2
  38. package/dist/rolldown/utils-index.mjs +9 -18
  39. package/dist/tsdown/{build-BjQ7Rt90-tMPZTflz.js → build-TmLngPCw-CBoVPzkZ.js} +312 -324
  40. package/dist/tsdown/build-gOkJM1H9-D9ngUBpk.js +5 -0
  41. package/dist/tsdown/{chunk-CdeBBKNj.js → chunk-CSNpwdVU.js} +13 -23
  42. package/dist/tsdown/{debug-BUVkFfEZ-D3UMJnif.js → debug-tOJ_PtrM-C-Do1Twv.js} +4 -6
  43. package/dist/tsdown/{detect-CCATtVj7-DhvBg5EF.js → detect-DK-FDZQ9-CHuRhyUG.js} +2 -4
  44. package/dist/tsdown/{dist-CFTDWtv2.js → dist-Ba2DZx1w.js} +7 -7
  45. package/dist/tsdown/{dist-DNcnO8LL.js → dist-DCol2bGA.js} +503 -568
  46. package/dist/tsdown/{dist-kuoe97DJ.js → dist-_l70jCqI.js} +1 -2
  47. package/dist/tsdown/{filename-CPj0AKvV.js → filename-BDcjeHGl.js} +3 -5
  48. package/dist/tsdown/{index-node-ShM0x2b6-Bt7Chc0I.js → index-node-Djp92Gzb-B-AUHI4t.js} +2 -4
  49. package/dist/tsdown/index-types.d.ts +180 -29
  50. package/dist/tsdown/index.js +7 -9
  51. package/dist/tsdown/{main-B3qcLRNf.js → main-DYgM-9Cb.js} +71 -83
  52. package/dist/tsdown/{node-Ba_UB_xO.js → node-B3Gdtau1.js} +1 -4
  53. package/dist/tsdown/npm_cjs_chunk_chunk.cjs +6 -8
  54. package/dist/tsdown/npm_cjs_chunk_lt.cjs +28 -0
  55. package/dist/tsdown/npm_cjs_chunk_range.cjs +22 -49
  56. package/dist/tsdown/npm_cjs_chunk_semver.cjs +54 -66
  57. package/dist/tsdown/npm_entry_picomatch.cjs +18 -30
  58. package/dist/tsdown/npm_entry_semver_functions_coerce.cjs +3 -7
  59. package/dist/tsdown/npm_entry_semver_functions_lt.cjs +5 -0
  60. package/dist/tsdown/npm_entry_semver_functions_satisfies.cjs +5 -7
  61. package/dist/tsdown/npm_entry_semver_ranges_min-version.cjs +5 -7
  62. package/dist/tsdown/npm_entry_tree-kill.cjs +2 -6
  63. package/dist/tsdown/{resolver-j7HY1N36-DHVsN9q6.js → resolver-CdD-yT15-3eaymYLw.js} +3 -5
  64. package/dist/tsdown/run.js +209 -74
  65. package/dist/tsdown/{tsc-CBjlgM2A.js → tsc-CberiTDq.js} +64 -71
  66. package/dist/tsdown/{tsc-context-D1h5oZB8.js → tsc-context-DiIjfXAG.js} +3 -5
  67. package/dist/vite/client/client.mjs +4 -19
  68. package/dist/vite/client/env.mjs +1 -2
  69. package/dist/vite/node/chunks/build.js +2 -3
  70. package/dist/vite/node/chunks/build2.js +91 -243
  71. package/dist/vite/node/chunks/chunk.js +7 -13
  72. package/dist/vite/node/chunks/config.js +2 -3
  73. package/dist/vite/node/chunks/dist.js +27 -61
  74. package/dist/vite/node/chunks/dist2.js +11 -95
  75. package/dist/vite/node/chunks/lib.js +1 -7
  76. package/dist/vite/node/chunks/logger.js +3 -8
  77. package/dist/vite/node/chunks/node.js +137 -428
  78. package/dist/vite/node/chunks/optimizer.js +2 -3
  79. package/dist/vite/node/chunks/postcss-import.js +1 -13
  80. package/dist/vite/node/chunks/preview.js +2 -3
  81. package/dist/vite/node/chunks/server.js +2 -3
  82. package/dist/vite/node/cli.js +1 -4
  83. package/dist/vite/node/index.d.ts +2 -2
  84. package/dist/vite/node/index.js +1 -2
  85. package/dist/vite/node/internal.js +1 -2
  86. package/dist/vite/node/module-runner.js +44 -3
  87. package/package.json +15 -11
  88. package/dist/rolldown/cli-setup.d.mts +0 -1
  89. package/dist/rolldown/cli-setup.mjs +0 -17
  90. package/dist/tsdown/build-2oRq4mfQ-YC_gzK3u.js +0 -6
@@ -1,7 +1,7 @@
1
- import { n as __exportAll, r as __toESM, t as __commonJSMin } from "./chunk-CdeBBKNj.js";
2
- import { t as createDebug } from "./node-Ba_UB_xO.js";
3
- import { a as RE_JSON, c as RE_TS, d as filename_js_to_dts, f as filename_to_dts, i as RE_JS, l as RE_VUE, m as resolveTemplateFn, n as RE_DTS, o as RE_NODE_MODULES, p as replaceTemplateName, r as RE_DTS_MAP, s as RE_ROLLDOWN_RUNTIME, t as RE_CSS, u as filename_dts_to } from "./filename-CPj0AKvV.js";
4
- import { n as globalContext, r as invalidateContextFile, t as createContext } from "./tsc-context-D1h5oZB8.js";
1
+ import { n as __exportAll, r as __toESM, t as __commonJSMin } from "./chunk-CSNpwdVU.js";
2
+ import { t as createDebug } from "./node-B3Gdtau1.js";
3
+ import { a as RE_JSON, c as RE_TS, d as filename_js_to_dts, f as filename_to_dts, i as RE_JS, l as RE_VUE, m as resolveTemplateFn, n as RE_DTS, o as RE_NODE_MODULES, p as replaceTemplateName, r as RE_DTS_MAP, s as RE_ROLLDOWN_RUNTIME, t as RE_CSS, u as filename_dts_to } from "./filename-BDcjeHGl.js";
4
+ import { n as globalContext, r as invalidateContextFile, t as createContext } from "./tsc-context-DiIjfXAG.js";
5
5
  import module$1, { createRequire } from "node:module";
6
6
  import process$1 from "node:process";
7
7
  import path, { dirname, extname } from "node:path";
@@ -10,8 +10,7 @@ import nativeFs from "fs";
10
10
  import path$1 from "path";
11
11
  import fs from "node:fs";
12
12
  import { ResolverFactory, isolatedDeclarationSync } from "@voidzero-dev/vite-plus-core/rolldown/experimental";
13
- import he from "os";
14
-
13
+ import Be from "os";
15
14
  //#region ../../node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
16
15
  var comma = ",".charCodeAt(0);
17
16
  var semicolon = ";".charCodeAt(0);
@@ -176,7 +175,6 @@ function encode(decoded) {
176
175
  }
177
176
  return writer.flush();
178
177
  }
179
-
180
178
  //#endregion
181
179
  //#region ../../node_modules/.pnpm/@jridgewell+resolve-uri@3.1.2/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs
182
180
  const schemeRegex = /^[\w+.-]+:\/\//;
@@ -341,7 +339,6 @@ function resolve$2(input, base) {
341
339
  default: return url.scheme + "//" + url.user + url.host + url.port + url.path + queryHash;
342
340
  }
343
341
  }
344
-
345
342
  //#endregion
346
343
  //#region ../../node_modules/.pnpm/@jridgewell+trace-mapping@0.3.31/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs
347
344
  function stripFilename(path) {
@@ -432,8 +429,6 @@ function parse$2(map) {
432
429
  }
433
430
  var LINE_GTR_ZERO = "`line` must be greater than 0 (lines start at line 1)";
434
431
  var COL_GTR_EQ_ZERO = "`column` must be greater than or equal to 0 (columns start at column 0)";
435
- var LEAST_UPPER_BOUND = -1;
436
- var GREATEST_LOWER_BOUND = 1;
437
432
  var TraceMap = class {
438
433
  constructor(map, mapUrl) {
439
434
  const isString = typeof map === "string";
@@ -478,7 +473,7 @@ function originalPositionFor(map, needle) {
478
473
  const decoded = decodedMappings(map);
479
474
  if (line >= decoded.length) return OMapping(null, null, null, null);
480
475
  const segments = decoded[line];
481
- const index = traceSegmentInternal(segments, cast$1(map)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND);
476
+ const index = traceSegmentInternal(segments, cast$1(map)._decodedMemo, line, column, bias || 1);
482
477
  if (index === -1) return OMapping(null, null, null, null);
483
478
  const segment = segments[index];
484
479
  if (segment.length === 1) return OMapping(null, null, null, null);
@@ -495,12 +490,11 @@ function OMapping(source, line, column, name) {
495
490
  }
496
491
  function traceSegmentInternal(segments, memo, line, column, bias) {
497
492
  let index = memoizedBinarySearch(segments, column, memo, line);
498
- if (found) index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index);
499
- else if (bias === LEAST_UPPER_BOUND) index++;
493
+ if (found) index = (bias === -1 ? upperBound : lowerBound)(segments, column, index);
494
+ else if (bias === -1) index++;
500
495
  if (index === -1 || index === segments.length) return -1;
501
496
  return index;
502
497
  }
503
-
504
498
  //#endregion
505
499
  //#region ../../node_modules/.pnpm/@jridgewell+gen-mapping@0.3.13/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs
506
500
  var SetArray = class {
@@ -662,9 +656,8 @@ function addMappingInternal(skipable, map, mapping) {
662
656
  assert$2(original);
663
657
  return addSegmentInternal(skipable, map, generated.line - 1, generated.column, source, original.line - 1, original.column, name, content);
664
658
  }
665
-
666
659
  //#endregion
667
- //#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@8.0.0-rc.1/node_modules/@babel/helper-validator-identifier/lib/index.js
660
+ //#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@8.0.0-rc.2/node_modules/@babel/helper-validator-identifier/lib/index.js
668
661
  let nonASCIIidentifierStartChars$1 = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";
669
662
  let nonASCIIidentifierChars$1 = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";
670
663
  const nonASCIIidentifierStart$1 = new RegExp("[" + nonASCIIidentifierStartChars$1 + "]");
@@ -1718,7 +1711,7 @@ const reservedWords$1 = {
1718
1711
  };
1719
1712
  const keywords$2 = new Set(reservedWords$1.keyword);
1720
1713
  const reservedWordsStrictSet$1 = new Set(reservedWords$1.strict);
1721
- const reservedWordsStrictBindSet$1 = new Set(reservedWords$1.strictBind);
1714
+ new Set(reservedWords$1.strictBind);
1722
1715
  function isReservedWord$1(word, inModule) {
1723
1716
  return inModule && word === "await" || word === "enum";
1724
1717
  }
@@ -1728,9 +1721,8 @@ function isStrictReservedWord$1(word, inModule) {
1728
1721
  function isKeyword$1(word) {
1729
1722
  return keywords$2.has(word);
1730
1723
  }
1731
-
1732
1724
  //#endregion
1733
- //#region ../../node_modules/.pnpm/@babel+helper-string-parser@8.0.0-rc.1/node_modules/@babel/helper-string-parser/lib/index.js
1725
+ //#region ../../node_modules/.pnpm/@babel+helper-string-parser@8.0.0-rc.2/node_modules/@babel/helper-string-parser/lib/index.js
1734
1726
  var _isDigit$1 = function isDigit(code) {
1735
1727
  return code >= 48 && code <= 57;
1736
1728
  };
@@ -1949,9 +1941,8 @@ function readCodePoint$1(input, pos, lineStart, curLine, throwOnInvalid, errors)
1949
1941
  pos
1950
1942
  };
1951
1943
  }
1952
-
1953
1944
  //#endregion
1954
- //#region ../../node_modules/.pnpm/@babel+types@8.0.0-rc.1/node_modules/@babel/types/lib/index.js
1945
+ //#region ../../node_modules/.pnpm/@babel+types@8.0.0-rc.2/node_modules/@babel/types/lib/index.js
1955
1946
  var lib_exports = /* @__PURE__ */ __exportAll({
1956
1947
  ACCESSOR_TYPES: () => ACCESSOR_TYPES,
1957
1948
  ALIAS_KEYS: () => ALIAS_KEYS,
@@ -13615,10 +13606,9 @@ const react = {
13615
13606
  isCompatTag,
13616
13607
  buildChildren
13617
13608
  };
13618
-
13619
13609
  //#endregion
13620
- //#region ../../node_modules/.pnpm/jsesc@3.1.0/node_modules/jsesc/jsesc.js
13621
- var require_jsesc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13610
+ //#region ../../node_modules/.pnpm/@babel+generator@8.0.0-rc.2/node_modules/@babel/generator/lib/index.js
13611
+ var import_jsesc = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
13622
13612
  const object = {};
13623
13613
  const hasOwnProperty = object.hasOwnProperty;
13624
13614
  const forOwn = (object, callback) => {
@@ -13818,11 +13808,7 @@ var require_jsesc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13818
13808
  };
13819
13809
  jsesc.version = "3.0.2";
13820
13810
  module.exports = jsesc;
13821
- }));
13822
-
13823
- //#endregion
13824
- //#region ../../node_modules/.pnpm/@babel+generator@8.0.0-rc.1/node_modules/@babel/generator/lib/index.js
13825
- var import_jsesc = /* @__PURE__ */ __toESM(require_jsesc(), 1);
13811
+ })))(), 1);
13826
13812
  var SourceMap = class {
13827
13813
  _map;
13828
13814
  _rawMappings;
@@ -13967,7 +13953,7 @@ var Buffer$1 = class {
13967
13953
  _appendChar(char, repeat, useSourcePos) {
13968
13954
  this._last = char;
13969
13955
  if (char === -1) {
13970
- const indent = repeat > 64 ? this._indentChar.repeat(repeat) : spaceIndents[repeat / 2];
13956
+ const indent = repeat >= 64 ? this._indentChar.repeat(repeat) : spaceIndents[repeat / 2];
13971
13957
  this._str += indent;
13972
13958
  } else this._str += repeat > 1 ? String.fromCharCode(char).repeat(repeat) : String.fromCharCode(char);
13973
13959
  const isSpace = char === 32;
@@ -14414,6 +14400,13 @@ function ConditionalExpression(node) {
14414
14400
  this.space();
14415
14401
  this.print(node.alternate);
14416
14402
  }
14403
+ function _printExpressionArguments(node) {
14404
+ this.tokenChar(40);
14405
+ const oldNoLineTerminatorAfterNode = this.enterDelimited();
14406
+ this.printList(node.arguments, this.shouldPrintTrailingComma(")"), void 0, void 0, void 0, true);
14407
+ this._noLineTerminatorAfterNode = oldNoLineTerminatorAfterNode;
14408
+ this.rightParens(node);
14409
+ }
14417
14410
  function NewExpression(node, parent) {
14418
14411
  this.word("new");
14419
14412
  this.space();
@@ -14421,11 +14414,7 @@ function NewExpression(node, parent) {
14421
14414
  if (this.format.minified && node.arguments.length === 0 && !isCallExpression(parent, { callee: node }) && !isMemberExpression(parent) && !isNewExpression(parent)) return;
14422
14415
  this.print(node.typeArguments);
14423
14416
  if (node.arguments.length === 0 && this.tokenMap && !this.tokenMap.endMatches(node, ")")) return;
14424
- this.tokenChar(40);
14425
- const oldNoLineTerminatorAfterNode = this.enterDelimited();
14426
- this.printList(node.arguments, this.shouldPrintTrailingComma(")"), void 0, void 0, void 0, true);
14427
- this._noLineTerminatorAfterNode = oldNoLineTerminatorAfterNode;
14428
- this.rightParens(node);
14417
+ _printExpressionArguments.call(this, node);
14429
14418
  }
14430
14419
  function SequenceExpression(node) {
14431
14420
  this.printList(node.expressions);
@@ -14465,20 +14454,12 @@ function OptionalCallExpression(node) {
14465
14454
  this.print(node.callee);
14466
14455
  if (node.optional) this.token("?.");
14467
14456
  this.print(node.typeArguments);
14468
- this.tokenChar(40);
14469
- const oldNoLineTerminatorAfterNode = this.enterDelimited();
14470
- this.printList(node.arguments, void 0, void 0, void 0, void 0, true);
14471
- this._noLineTerminatorAfterNode = oldNoLineTerminatorAfterNode;
14472
- this.rightParens(node);
14457
+ _printExpressionArguments.call(this, node);
14473
14458
  }
14474
14459
  function CallExpression(node) {
14475
14460
  this.print(node.callee);
14476
14461
  this.print(node.typeArguments);
14477
- this.tokenChar(40);
14478
- const oldNoLineTerminatorAfterNode = this.enterDelimited();
14479
- this.printList(node.arguments, this.shouldPrintTrailingComma(")"), void 0, void 0, void 0, true);
14480
- this._noLineTerminatorAfterNode = oldNoLineTerminatorAfterNode;
14481
- this.rightParens(node);
14462
+ _printExpressionArguments.call(this, node);
14482
14463
  }
14483
14464
  function Import() {
14484
14465
  this.word("import");
@@ -17830,9 +17811,8 @@ function normalizeOptions(code, opts, ast) {
17830
17811
  function generate(ast, opts = {}, code) {
17831
17812
  return new Printer(normalizeOptions(code, opts, ast), opts.sourceMaps ? new SourceMap(opts, code) : null, ast.tokens, typeof code === "string" ? code : null).generate(ast);
17832
17813
  }
17833
-
17834
17814
  //#endregion
17835
- //#region ../../node_modules/.pnpm/@babel+parser@8.0.0-rc.1/node_modules/@babel/parser/lib/index.js
17815
+ //#region ../../node_modules/.pnpm/@babel+parser@8.0.0-rc.2/node_modules/@babel/parser/lib/index.js
17836
17816
  var Position = class {
17837
17817
  line;
17838
17818
  column;
@@ -18055,7 +18035,6 @@ const UnparenthesizedPipeBodyDescriptions = new Set([
18055
18035
  "YieldExpression"
18056
18036
  ]);
18057
18037
  var PipelineOperatorErrors = {
18058
- PipeBodyIsTighter: "Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",
18059
18038
  PipeTopicRequiresHackPipes: "Topic references are only supported when using the `\"proposal\": \"hack\"` version of the pipeline proposal.",
18060
18039
  PipeTopicUnbound: "Topic reference is unbound; it must be inside a pipe body.",
18061
18040
  PipeTopicUnconfiguredToken: ({ token }) => `Invalid topic token ${token}. In order to use ${token} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${token}" }.`,
@@ -18394,10 +18373,6 @@ var estree = (superClass) => class ESTreeParserMixin extends superClass {
18394
18373
  else node.optional = false;
18395
18374
  return node;
18396
18375
  }
18397
- toReferencedArguments(node) {
18398
- if (node.type === "ImportExpression") return;
18399
- super.toReferencedArguments(node);
18400
- }
18401
18376
  parseExport(unfinished, decorators) {
18402
18377
  const exportStartLoc = this.state.lastTokStartLoc;
18403
18378
  const node = super.parseExport(unfinished, decorators);
@@ -21118,7 +21093,7 @@ var flow = (superClass) => class FlowParserMixin extends superClass {
21118
21093
  }
21119
21094
  parseConditional(expr, startLoc, refExpressionErrors) {
21120
21095
  if (!this.match(13)) return expr;
21121
- if (this.state.maybeInArrowParameters) {
21096
+ if (refExpressionErrors != null) {
21122
21097
  const nextCh = this.lookaheadCharCode();
21123
21098
  if (nextCh === 44 || nextCh === 61 || nextCh === 58 || nextCh === 41) {
21124
21099
  this.setOptionalParametersError(refExpressionErrors);
@@ -21306,12 +21281,10 @@ var flow = (superClass) => class FlowParserMixin extends superClass {
21306
21281
  if (!isLHS && node.type === "AssignmentExpression" && node.left.type === "TypeCastExpression") node.left = this.typeCastToParameter(node.left);
21307
21282
  super.toAssignable(node, isLHS);
21308
21283
  }
21309
- toAssignableList(exprList, trailingCommaLoc, isLHS) {
21310
- for (let i = 0; i < exprList.length; i++) {
21311
- const expr = exprList[i];
21312
- if (expr?.type === "TypeCastExpression") exprList[i] = this.typeCastToParameter(expr);
21313
- }
21314
- super.toAssignableList(exprList, trailingCommaLoc, isLHS);
21284
+ toAssignableListItem(exprList, index, isLHS) {
21285
+ const node = exprList[index];
21286
+ if (node.type === "TypeCastExpression") exprList[index] = this.typeCastToParameter(node);
21287
+ super.toAssignableListItem(exprList, index, isLHS);
21315
21288
  }
21316
21289
  toReferencedList(exprList, isParenthesizedExpr) {
21317
21290
  for (let i = 0; i < exprList.length; i++) {
@@ -21322,7 +21295,7 @@ var flow = (superClass) => class FlowParserMixin extends superClass {
21322
21295
  }
21323
21296
  parseArrayLike(close, refExpressionErrors) {
21324
21297
  const node = super.parseArrayLike(close, refExpressionErrors);
21325
- if (refExpressionErrors != null && !this.state.maybeInArrowParameters) this.toReferencedList(node.elements);
21298
+ if (node.type === "ArrayExpression") this.toReferencedList(node.elements);
21326
21299
  return node;
21327
21300
  }
21328
21301
  isValidLVal(type, disallowCallExpression, isParenthesized, binding) {
@@ -22881,7 +22854,7 @@ var CommentsParser = class extends BaseParser {
22881
22854
  }
22882
22855
  };
22883
22856
  var State = class State {
22884
- flags = 1024;
22857
+ flags = 512;
22885
22858
  get strict() {
22886
22859
  return (this.flags & 1) > 0;
22887
22860
  }
@@ -22905,72 +22878,65 @@ var State = class State {
22905
22878
  potentialArrowAt = -1;
22906
22879
  noArrowAt = [];
22907
22880
  noArrowParamsConversionAt = [];
22908
- get maybeInArrowParameters() {
22881
+ get inType() {
22909
22882
  return (this.flags & 2) > 0;
22910
22883
  }
22911
- set maybeInArrowParameters(v) {
22884
+ set inType(v) {
22912
22885
  if (v) this.flags |= 2;
22913
22886
  else this.flags &= -3;
22914
22887
  }
22915
- get inType() {
22888
+ get noAnonFunctionType() {
22916
22889
  return (this.flags & 4) > 0;
22917
22890
  }
22918
- set inType(v) {
22891
+ set noAnonFunctionType(v) {
22919
22892
  if (v) this.flags |= 4;
22920
22893
  else this.flags &= -5;
22921
22894
  }
22922
- get noAnonFunctionType() {
22895
+ get hasFlowComment() {
22923
22896
  return (this.flags & 8) > 0;
22924
22897
  }
22925
- set noAnonFunctionType(v) {
22898
+ set hasFlowComment(v) {
22926
22899
  if (v) this.flags |= 8;
22927
22900
  else this.flags &= -9;
22928
22901
  }
22929
- get hasFlowComment() {
22902
+ get isAmbientContext() {
22930
22903
  return (this.flags & 16) > 0;
22931
22904
  }
22932
- set hasFlowComment(v) {
22905
+ set isAmbientContext(v) {
22933
22906
  if (v) this.flags |= 16;
22934
22907
  else this.flags &= -17;
22935
22908
  }
22936
- get isAmbientContext() {
22909
+ get inAbstractClass() {
22937
22910
  return (this.flags & 32) > 0;
22938
22911
  }
22939
- set isAmbientContext(v) {
22912
+ set inAbstractClass(v) {
22940
22913
  if (v) this.flags |= 32;
22941
22914
  else this.flags &= -33;
22942
22915
  }
22943
- get inAbstractClass() {
22916
+ get inDisallowConditionalTypesContext() {
22944
22917
  return (this.flags & 64) > 0;
22945
22918
  }
22946
- set inAbstractClass(v) {
22919
+ set inDisallowConditionalTypesContext(v) {
22947
22920
  if (v) this.flags |= 64;
22948
22921
  else this.flags &= -65;
22949
22922
  }
22950
- get inDisallowConditionalTypesContext() {
22951
- return (this.flags & 128) > 0;
22952
- }
22953
- set inDisallowConditionalTypesContext(v) {
22954
- if (v) this.flags |= 128;
22955
- else this.flags &= -129;
22956
- }
22957
22923
  topicContext = {
22958
22924
  maxNumOfResolvableTopics: 0,
22959
22925
  maxTopicIndex: null
22960
22926
  };
22961
22927
  get soloAwait() {
22962
- return (this.flags & 256) > 0;
22928
+ return (this.flags & 128) > 0;
22963
22929
  }
22964
22930
  set soloAwait(v) {
22965
- if (v) this.flags |= 256;
22966
- else this.flags &= -257;
22931
+ if (v) this.flags |= 128;
22932
+ else this.flags &= -129;
22967
22933
  }
22968
22934
  get inFSharpPipelineDirectBody() {
22969
- return (this.flags & 512) > 0;
22935
+ return (this.flags & 256) > 0;
22970
22936
  }
22971
22937
  set inFSharpPipelineDirectBody(v) {
22972
- if (v) this.flags |= 512;
22973
- else this.flags &= -513;
22938
+ if (v) this.flags |= 256;
22939
+ else this.flags &= -257;
22974
22940
  }
22975
22941
  labels = [];
22976
22942
  commentsLen = 0;
@@ -22984,26 +22950,26 @@ var State = class State {
22984
22950
  lastTokStartLoc = null;
22985
22951
  context = [types.brace];
22986
22952
  get canStartJSXElement() {
22987
- return (this.flags & 1024) > 0;
22953
+ return (this.flags & 512) > 0;
22988
22954
  }
22989
22955
  set canStartJSXElement(v) {
22990
- if (v) this.flags |= 1024;
22991
- else this.flags &= -1025;
22956
+ if (v) this.flags |= 512;
22957
+ else this.flags &= -513;
22992
22958
  }
22993
22959
  get containsEsc() {
22994
- return (this.flags & 2048) > 0;
22960
+ return (this.flags & 1024) > 0;
22995
22961
  }
22996
22962
  set containsEsc(v) {
22997
- if (v) this.flags |= 2048;
22998
- else this.flags &= -2049;
22963
+ if (v) this.flags |= 1024;
22964
+ else this.flags &= -1025;
22999
22965
  }
23000
22966
  firstInvalidTemplateEscapePos = null;
23001
22967
  get hasTopLevelAwait() {
23002
- return (this.flags & 4096) > 0;
22968
+ return (this.flags & 2048) > 0;
23003
22969
  }
23004
22970
  set hasTopLevelAwait(v) {
23005
- if (v) this.flags |= 4096;
23006
- else this.flags &= -4097;
22971
+ if (v) this.flags |= 2048;
22972
+ else this.flags &= -2049;
23007
22973
  }
23008
22974
  strictErrors = /* @__PURE__ */ new Map();
23009
22975
  tokensLength = 0;
@@ -24578,10 +24544,6 @@ var LValParser = class extends NodeUtils {
24578
24544
  toReferencedList(exprList, isParenthesizedExpr) {
24579
24545
  return exprList;
24580
24546
  }
24581
- toReferencedListDeep(exprList, isParenthesizedExpr) {
24582
- this.toReferencedList(exprList, isParenthesizedExpr);
24583
- for (const expr of exprList) if (expr?.type === "ArrayExpression") this.toReferencedListDeep(expr.elements);
24584
- }
24585
24547
  parseSpread(refExpressionErrors) {
24586
24548
  const node = this.startNode();
24587
24549
  this.next();
@@ -25974,8 +25936,6 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
25974
25936
  }
25975
25937
  tsTryParseGenericAsyncArrowFunction(startLoc) {
25976
25938
  if (!this.match(43)) return;
25977
- const oldMaybeInArrowParameters = this.state.maybeInArrowParameters;
25978
- this.state.maybeInArrowParameters = true;
25979
25939
  const res = this.tsTryParseAndCatch(() => {
25980
25940
  const node = this.startNodeAt(startLoc);
25981
25941
  node.typeParameters = this.tsParseTypeParameters(this.tsParseConstModifier);
@@ -25984,7 +25944,6 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
25984
25944
  this.expect(15);
25985
25945
  return node;
25986
25946
  });
25987
- this.state.maybeInArrowParameters = oldMaybeInArrowParameters;
25988
25947
  if (!res) return;
25989
25948
  return super.parseArrowExpression(res, null, true);
25990
25949
  }
@@ -26402,7 +26361,7 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
26402
26361
  }
26403
26362
  parseConditional(expr, startLoc, refExpressionErrors) {
26404
26363
  if (!this.match(13)) return expr;
26405
- if (this.state.maybeInArrowParameters) {
26364
+ if (refExpressionErrors != null) {
26406
26365
  const nextCh = this.lookaheadCharCode();
26407
26366
  if (nextCh === 44 || nextCh === 61 || nextCh === 58 || nextCh === 41) {
26408
26367
  this.setOptionalParametersError(refExpressionErrors);
@@ -27600,9 +27559,7 @@ var ExpressionParser = class extends LValParser {
27600
27559
  return this.parseSubscripts(this.finishNode(node, "BindExpression"), startLoc, noCalls);
27601
27560
  }
27602
27561
  parseCoverCallAndAsyncArrowHead(base, startLoc, state, optional) {
27603
- const oldMaybeInArrowParameters = this.state.maybeInArrowParameters;
27604
27562
  let refExpressionErrors = null;
27605
- this.state.maybeInArrowParameters = true;
27606
27563
  this.next();
27607
27564
  const node = this.startNodeAt(startLoc);
27608
27565
  node.callee = base;
@@ -27626,14 +27583,10 @@ var ExpressionParser = class extends LValParser {
27626
27583
  this.checkExpressionErrors(refExpressionErrors, true);
27627
27584
  this.expressionScope.exit();
27628
27585
  }
27629
- this.toReferencedArguments(finishedNode);
27586
+ this.toReferencedList(node.arguments);
27630
27587
  }
27631
- this.state.maybeInArrowParameters = oldMaybeInArrowParameters;
27632
27588
  return finishedNode;
27633
27589
  }
27634
- toReferencedArguments(node, isParenthesizedExpr) {
27635
- this.toReferencedListDeep(node.arguments, isParenthesizedExpr);
27636
- }
27637
27590
  parseTaggedTemplateExpression(base, startLoc, state) {
27638
27591
  const node = this.startNodeAt(startLoc);
27639
27592
  node.tag = base;
@@ -27946,9 +27899,7 @@ var ExpressionParser = class extends LValParser {
27946
27899
  let val;
27947
27900
  this.next();
27948
27901
  this.expressionScope.enter(newArrowHeadScope());
27949
- const oldMaybeInArrowParameters = this.state.maybeInArrowParameters;
27950
27902
  const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody;
27951
- this.state.maybeInArrowParameters = true;
27952
27903
  this.state.inFSharpPipelineDirectBody = false;
27953
27904
  const innerStartLoc = this.state.startLoc;
27954
27905
  const exprList = [];
@@ -27974,7 +27925,6 @@ var ExpressionParser = class extends LValParser {
27974
27925
  }
27975
27926
  const innerEndLoc = this.state.lastTokEndLoc;
27976
27927
  this.expect(7);
27977
- this.state.maybeInArrowParameters = oldMaybeInArrowParameters;
27978
27928
  this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody;
27979
27929
  let arrowNode = this.startNodeAt(startLoc);
27980
27930
  if (canBeArrow && this.shouldParseArrow(exprList) && (arrowNode = this.parseArrow(arrowNode))) {
@@ -27989,7 +27939,7 @@ var ExpressionParser = class extends LValParser {
27989
27939
  if (optionalCommaStartLoc) this.unexpected(optionalCommaStartLoc);
27990
27940
  if (spreadStartLoc) this.unexpected(spreadStartLoc);
27991
27941
  this.checkExpressionErrors(refExpressionErrors, true);
27992
- this.toReferencedListDeep(exprList, true);
27942
+ this.toReferencedList(exprList, true);
27993
27943
  if (exprList.length > 1) {
27994
27944
  val = this.startNodeAt(innerStartLoc);
27995
27945
  val.expressions = exprList;
@@ -28283,16 +28233,10 @@ var ExpressionParser = class extends LValParser {
28283
28233
  if (!this.match(2) && this.prodParam.hasIn) flags |= 8;
28284
28234
  this.prodParam.enter(flags);
28285
28235
  this.initFunction(node, isAsync);
28286
- const oldMaybeInArrowParameters = this.state.maybeInArrowParameters;
28287
- if (params) {
28288
- this.state.maybeInArrowParameters = true;
28289
- this.setArrowFunctionParameters(node, params, trailingCommaLoc);
28290
- }
28291
- this.state.maybeInArrowParameters = false;
28236
+ if (params) this.setArrowFunctionParameters(node, params, trailingCommaLoc);
28292
28237
  this.parseFunctionBody(node, true);
28293
28238
  this.prodParam.exit();
28294
28239
  this.scope.exit();
28295
- this.state.maybeInArrowParameters = oldMaybeInArrowParameters;
28296
28240
  return this.finishNode(node, "ArrowFunctionExpression");
28297
28241
  }
28298
28242
  setArrowFunctionParameters(node, params, trailingCommaLoc) {
@@ -29216,8 +29160,6 @@ var StatementParser = class extends ExpressionParser {
29216
29160
  node.generator = true;
29217
29161
  }
29218
29162
  if (isDeclaration) node.id = this.parseFunctionId(requireId);
29219
- const oldMaybeInArrowParameters = this.state.maybeInArrowParameters;
29220
- this.state.maybeInArrowParameters = false;
29221
29163
  this.scope.enter(514);
29222
29164
  this.prodParam.enter(functionFlags(isAsync, node.generator));
29223
29165
  if (!isDeclaration) node.id = this.parseFunctionId();
@@ -29226,7 +29168,6 @@ var StatementParser = class extends ExpressionParser {
29226
29168
  this.prodParam.exit();
29227
29169
  this.scope.exit();
29228
29170
  if (isDeclaration && !hangingDeclaration) this.registerFunctionStatementId(node);
29229
- this.state.maybeInArrowParameters = oldMaybeInArrowParameters;
29230
29171
  return node;
29231
29172
  }
29232
29173
  parseFunctionId(requireId) {
@@ -29970,7 +29911,7 @@ function generateExportedTokenTypes(internalTokenTypes) {
29970
29911
  for (const typeName of Object.keys(internalTokenTypes)) tokenTypes[typeName] = getExportedToken(internalTokenTypes[typeName]);
29971
29912
  return tokenTypes;
29972
29913
  }
29973
- const tokTypes = generateExportedTokenTypes(tt);
29914
+ generateExportedTokenTypes(tt);
29974
29915
  function getParser(options, input) {
29975
29916
  let cls = Parser;
29976
29917
  const pluginsMap = /* @__PURE__ */ new Map();
@@ -29999,7 +29940,6 @@ function getParserClass(pluginsMap) {
29999
29940
  }
30000
29941
  return cls;
30001
29942
  }
30002
-
30003
29943
  //#endregion
30004
29944
  //#region ../../node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/walker.js
30005
29945
  /**
@@ -30050,7 +29990,6 @@ var WalkerBase = class {
30050
29990
  else delete parent[prop];
30051
29991
  }
30052
29992
  };
30053
-
30054
29993
  //#endregion
30055
29994
  //#region ../../node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/sync.js
30056
29995
  /**
@@ -30166,7 +30105,6 @@ var SyncWalker = class extends WalkerBase {
30166
30105
  function isNode(value) {
30167
30106
  return value !== null && typeof value === "object" && "type" in value && typeof value.type === "string";
30168
30107
  }
30169
-
30170
30108
  //#endregion
30171
30109
  //#region ../../node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/index.js
30172
30110
  /**
@@ -30185,7 +30123,6 @@ function isNode(value) {
30185
30123
  function walk(ast, { enter, leave }) {
30186
30124
  return new SyncWalker(enter, leave).visit(ast, null);
30187
30125
  }
30188
-
30189
30126
  //#endregion
30190
30127
  //#region ../../node_modules/.pnpm/ast-kit@3.0.0-beta.1/node_modules/ast-kit/dist/index.js
30191
30128
  /**
@@ -30358,28 +30295,24 @@ function resolveTemplateLiteral(node) {
30358
30295
  * @param {WalkHandlers<T, void>} hooks - The handlers to be applied during the walk.
30359
30296
  * @returns {T | null} - The modified AST node or null if the node is removed.
30360
30297
  */
30361
- const walkAST = walk;
30362
-
30363
- //#endregion
30364
- //#region ../../node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/dist/index.mjs
30365
- const A = (r) => r !== null && typeof r == "object", a = (r, t) => Object.assign(/* @__PURE__ */ new Error(`[${r}]: ${t}`), { code: r }), _ = "ERR_INVALID_PACKAGE_CONFIG", E = "ERR_INVALID_PACKAGE_TARGET", I$1 = "ERR_PACKAGE_PATH_NOT_EXPORTED", P = "ERR_PACKAGE_IMPORT_NOT_DEFINED", R$1 = /^\d+$/, O = /^(\.{1,2}|node_modules)$/i, w = /\/|\\/;
30298
+ const walkAST = walk, A = (r) => r !== null && typeof r == "object", a = (r, t) => Object.assign(/* @__PURE__ */ new Error(`[${r}]: ${t}`), { code: r }), _ = "ERR_INVALID_PACKAGE_CONFIG", E$1 = "ERR_INVALID_PACKAGE_TARGET", I$1 = "ERR_PACKAGE_PATH_NOT_EXPORTED", R = /^\d+$/, O$1 = /^(\.{1,2}|node_modules)$/i, w = /\/|\\/;
30366
30299
  var h$1 = ((r) => (r.Export = "exports", r.Import = "imports", r))(h$1 || {});
30367
30300
  const f = (r, t, e, o, c) => {
30368
30301
  if (t == null) return [];
30369
30302
  if (typeof t == "string") {
30370
30303
  const [n, ...i] = t.split(w);
30371
- if (n === ".." || i.some((l) => O.test(l))) throw a(E, `Invalid "${r}" target "${t}" defined in the package config`);
30304
+ if (n === ".." || i.some((l) => O$1.test(l))) throw a(E$1, `Invalid "${r}" target "${t}" defined in the package config`);
30372
30305
  return [c ? t.replace(/\*/g, c) : t];
30373
30306
  }
30374
30307
  if (Array.isArray(t)) return t.flatMap((n) => f(r, n, e, o, c));
30375
30308
  if (A(t)) {
30376
30309
  for (const n of Object.keys(t)) {
30377
- if (R$1.test(n)) throw a(_, "Cannot contain numeric property keys");
30310
+ if (R.test(n)) throw a(_, "Cannot contain numeric property keys");
30378
30311
  if (n === "default" || o.includes(n)) return f(r, t[n], e, o, c);
30379
30312
  }
30380
30313
  return [];
30381
30314
  }
30382
- throw a(E, `Invalid "${r}" target "${t}"`);
30315
+ throw a(E$1, `Invalid "${r}" target "${t}"`);
30383
30316
  }, s = "*", m = (r, t) => {
30384
30317
  const e = r.indexOf(s), o = t.indexOf(s);
30385
30318
  return e === o ? t.length > r.length : o > e;
@@ -30405,84 +30338,78 @@ const p = (r) => Object.keys(r).reduce((t, e) => {
30405
30338
  t = t === "" ? "." : `./${t}`, (typeof r == "string" || Array.isArray(r) || A(r) && p(r)) && (r = { ".": r });
30406
30339
  const [o, c] = d(r, t), n = f(h$1.Export, r[o], t, e, c);
30407
30340
  if (n.length === 0) throw a(I$1, t === "." ? "No \"exports\" main defined" : `Package subpath '${t}' is not defined by "exports"`);
30408
- for (const i of n) if (!i.startsWith("./") && !u.test(i)) throw a(E, `Invalid "exports" target "${i}" defined in the package config`);
30409
- return n;
30410
- }, T = (r, t, e) => {
30411
- if (!r) throw new Error("\"imports\" is required");
30412
- const [o, c] = d(r, t), n = f(h$1.Import, r[o], t, e, c);
30413
- if (n.length === 0) throw a(P, `Package import specifier "${t}" is not defined in package`);
30341
+ for (const i of n) if (!i.startsWith("./") && !u.test(i)) throw a(E$1, `Invalid "exports" target "${i}" defined in the package config`);
30414
30342
  return n;
30415
30343
  };
30416
-
30417
30344
  //#endregion
30418
- //#region ../../node_modules/.pnpm/get-tsconfig@4.13.1/node_modules/get-tsconfig/dist/index.mjs
30419
- var je = Object.defineProperty;
30420
- var o = (e, t) => je(e, "name", {
30345
+ //#region ../../node_modules/.pnpm/get-tsconfig@4.13.6/node_modules/get-tsconfig/dist/index.mjs
30346
+ var Le = Object.defineProperty;
30347
+ var i = (e, t) => Le(e, "name", {
30421
30348
  value: t,
30422
30349
  configurable: !0
30423
30350
  });
30424
30351
  function h(e) {
30425
30352
  return e.startsWith("\\\\?\\") ? e : e.replace(/\\/g, "/");
30426
30353
  }
30427
- o(h, "slash");
30428
- const z = o((e) => {
30354
+ i(h, "slash");
30355
+ const Z = i((e) => {
30429
30356
  const t = fs[e];
30430
30357
  return (s, ...n) => {
30431
- const l = `${e}:${n.join(":")}`;
30432
- let i = s == null ? void 0 : s.get(l);
30433
- return i === void 0 && (i = Reflect.apply(t, fs, n), s?.set(l, i)), i;
30358
+ const o = `${e}:${n.join(":")}`;
30359
+ let l = s == null ? void 0 : s.get(o);
30360
+ return l === void 0 && (l = Reflect.apply(t, fs, n), s?.set(o, l)), l;
30434
30361
  };
30435
- }, "cacheFs"), I = z("existsSync"), Be = z("readFileSync"), R = z("statSync"), ie = o((e, t, s) => {
30362
+ }, "cacheFs"), E = Z("existsSync"), $e = Z("readFileSync"), G = Z("statSync"), fe = i((e, t, s) => {
30436
30363
  for (;;) {
30437
30364
  const n = path.posix.join(e, t);
30438
- if (I(s, n)) return n;
30439
- const l = path.dirname(e);
30440
- if (l === e) return;
30441
- e = l;
30365
+ if (E(s, n)) return n;
30366
+ const o = path.dirname(e);
30367
+ if (o === e) return;
30368
+ e = o;
30442
30369
  }
30443
- }, "findUp"), G = /^\.{1,2}(\/.*)?$/, Q = o((e) => {
30370
+ }, "findUp"), q = /^\.{1,2}(\/.*)?$/, K = i((e) => {
30444
30371
  const t = h(e);
30445
- return G.test(t) ? t : `./${t}`;
30372
+ return q.test(t) ? t : `./${t}`;
30446
30373
  }, "normalizeRelativePath");
30447
- function Le(e, t = !1) {
30374
+ function Ue(e, t = !1) {
30448
30375
  const s = e.length;
30449
- let n = 0, l = "", i = 0, r = 16, f = 0, u = 0, g = 0, v = 0, w = 0;
30376
+ let n = 0, o = "", l = 0, u = 16, a = 0, r = 0, g = 0, v = 0, d = 0;
30450
30377
  function _(c, y) {
30451
30378
  let A = 0, b = 0;
30452
30379
  for (; A < c;) {
30453
- let p = e.charCodeAt(n);
30454
- if (p >= 48 && p <= 57) b = b * 16 + p - 48;
30455
- else if (p >= 65 && p <= 70) b = b * 16 + p - 65 + 10;
30456
- else if (p >= 97 && p <= 102) b = b * 16 + p - 97 + 10;
30380
+ let k = e.charCodeAt(n);
30381
+ if (k >= 48 && k <= 57) b = b * 16 + k - 48;
30382
+ else if (k >= 65 && k <= 70) b = b * 16 + k - 65 + 10;
30383
+ else if (k >= 97 && k <= 102) b = b * 16 + k - 97 + 10;
30457
30384
  else break;
30458
30385
  n++, A++;
30459
30386
  }
30460
30387
  return A < c && (b = -1), b;
30461
30388
  }
30462
- o(_, "scanHexDigits");
30463
- function d(c) {
30464
- n = c, l = "", i = 0, r = 16, w = 0;
30389
+ i(_, "scanHexDigits");
30390
+ function p(c) {
30391
+ n = c, o = "", l = 0, u = 16, d = 0;
30465
30392
  }
30466
- o(d, "setPosition");
30467
- function F() {
30393
+ i(p, "setPosition");
30394
+ function D() {
30468
30395
  let c = n;
30469
30396
  if (e.charCodeAt(n) === 48) n++;
30470
- else for (n++; n < e.length && $(e.charCodeAt(n));) n++;
30471
- if (n < e.length && e.charCodeAt(n) === 46) if (n++, n < e.length && $(e.charCodeAt(n))) for (n++; n < e.length && $(e.charCodeAt(n));) n++;
30472
- else return w = 3, e.substring(c, n);
30397
+ else for (n++; n < e.length && N(e.charCodeAt(n));) n++;
30398
+ if (n < e.length && e.charCodeAt(n) === 46) if (n++, n < e.length && N(e.charCodeAt(n))) for (n++; n < e.length && N(e.charCodeAt(n));) n++;
30399
+ else return d = 3, e.substring(c, n);
30473
30400
  let y = n;
30474
- 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 && $(e.charCodeAt(n))) {
30475
- for (n++; n < e.length && $(e.charCodeAt(n));) n++;
30401
+ 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 && N(e.charCodeAt(n))) {
30402
+ for (n++; n < e.length && N(e.charCodeAt(n));) n++;
30476
30403
  y = n;
30477
- } else w = 3;
30404
+ } else d = 3;
30478
30405
  return e.substring(c, y);
30479
30406
  }
30480
- o(F, "scanNumber");
30481
- function E() {
30407
+ i(D, "scanNumber");
30408
+ function L() {
30482
30409
  let c = "", y = n;
30483
30410
  for (;;) {
30484
30411
  if (n >= s) {
30485
- c += e.substring(y, n), w = 2;
30412
+ c += e.substring(y, n), d = 2;
30486
30413
  break;
30487
30414
  }
30488
30415
  const A = e.charCodeAt(n);
@@ -30492,7 +30419,7 @@ function Le(e, t = !1) {
30492
30419
  }
30493
30420
  if (A === 92) {
30494
30421
  if (c += e.substring(y, n), n++, n >= s) {
30495
- w = 2;
30422
+ d = 2;
30496
30423
  break;
30497
30424
  }
30498
30425
  switch (e.charCodeAt(n++)) {
@@ -30522,64 +30449,64 @@ function Le(e, t = !1) {
30522
30449
  c += " ";
30523
30450
  break;
30524
30451
  case 117:
30525
- const p = _(4);
30526
- p >= 0 ? c += String.fromCharCode(p) : w = 4;
30452
+ const k = _(4);
30453
+ k >= 0 ? c += String.fromCharCode(k) : d = 4;
30527
30454
  break;
30528
- default: w = 5;
30455
+ default: d = 5;
30529
30456
  }
30530
30457
  y = n;
30531
30458
  continue;
30532
30459
  }
30533
- if (A >= 0 && A <= 31) if (S(A)) {
30534
- c += e.substring(y, n), w = 2;
30460
+ if (A >= 0 && A <= 31) if (J(A)) {
30461
+ c += e.substring(y, n), d = 2;
30535
30462
  break;
30536
- } else w = 6;
30463
+ } else d = 6;
30537
30464
  n++;
30538
30465
  }
30539
30466
  return c;
30540
30467
  }
30541
- o(E, "scanString");
30468
+ i(L, "scanString");
30542
30469
  function T() {
30543
- if (l = "", w = 0, i = n, u = f, v = g, n >= s) return i = s, r = 17;
30470
+ if (o = "", d = 0, l = n, r = a, v = g, n >= s) return l = s, u = 17;
30544
30471
  let c = e.charCodeAt(n);
30545
- if (H(c)) {
30472
+ if (O(c)) {
30546
30473
  do
30547
- n++, l += String.fromCharCode(c), c = e.charCodeAt(n);
30548
- while (H(c));
30549
- return r = 15;
30474
+ n++, o += String.fromCharCode(c), c = e.charCodeAt(n);
30475
+ while (O(c));
30476
+ return u = 15;
30550
30477
  }
30551
- if (S(c)) return n++, l += String.fromCharCode(c), c === 13 && e.charCodeAt(n) === 10 && (n++, l += `
30552
- `), f++, g = n, r = 14;
30478
+ if (J(c)) return n++, o += String.fromCharCode(c), c === 13 && e.charCodeAt(n) === 10 && (n++, o += `
30479
+ `), a++, g = n, u = 14;
30553
30480
  switch (c) {
30554
- case 123: return n++, r = 1;
30555
- case 125: return n++, r = 2;
30556
- case 91: return n++, r = 3;
30557
- case 93: return n++, r = 4;
30558
- case 58: return n++, r = 6;
30559
- case 44: return n++, r = 5;
30560
- case 34: return n++, l = E(), r = 10;
30481
+ case 123: return n++, u = 1;
30482
+ case 125: return n++, u = 2;
30483
+ case 91: return n++, u = 3;
30484
+ case 93: return n++, u = 4;
30485
+ case 58: return n++, u = 6;
30486
+ case 44: return n++, u = 5;
30487
+ case 34: return n++, o = L(), u = 10;
30561
30488
  case 47:
30562
30489
  const y = n - 1;
30563
30490
  if (e.charCodeAt(n + 1) === 47) {
30564
- for (n += 2; n < s && !S(e.charCodeAt(n));) n++;
30565
- return l = e.substring(y, n), r = 12;
30491
+ for (n += 2; n < s && !J(e.charCodeAt(n));) n++;
30492
+ return o = e.substring(y, n), u = 12;
30566
30493
  }
30567
30494
  if (e.charCodeAt(n + 1) === 42) {
30568
30495
  n += 2;
30569
30496
  const A = s - 1;
30570
30497
  let b = !1;
30571
30498
  for (; n < A;) {
30572
- const p = e.charCodeAt(n);
30573
- if (p === 42 && e.charCodeAt(n + 1) === 47) {
30499
+ const k = e.charCodeAt(n);
30500
+ if (k === 42 && e.charCodeAt(n + 1) === 47) {
30574
30501
  n += 2, b = !0;
30575
30502
  break;
30576
30503
  }
30577
- n++, S(p) && (p === 13 && e.charCodeAt(n) === 10 && n++, f++, g = n);
30504
+ n++, J(k) && (k === 13 && e.charCodeAt(n) === 10 && n++, a++, g = n);
30578
30505
  }
30579
- return b || (n++, w = 1), l = e.substring(y, n), r = 13;
30506
+ return b || (n++, d = 1), o = e.substring(y, n), u = 13;
30580
30507
  }
30581
- return l += String.fromCharCode(c), n++, r = 16;
30582
- case 45: if (l += String.fromCharCode(c), n++, n === s || !$(e.charCodeAt(n))) return r = 16;
30508
+ return o += String.fromCharCode(c), n++, u = 16;
30509
+ case 45: if (o += String.fromCharCode(c), n++, n === s || !N(e.charCodeAt(n))) return u = 16;
30583
30510
  case 48:
30584
30511
  case 49:
30585
30512
  case 50:
@@ -30589,23 +30516,23 @@ function Le(e, t = !1) {
30589
30516
  case 54:
30590
30517
  case 55:
30591
30518
  case 56:
30592
- case 57: return l += F(), r = 11;
30519
+ case 57: return o += D(), u = 11;
30593
30520
  default:
30594
- for (; n < s && j(c);) n++, c = e.charCodeAt(n);
30595
- if (i !== n) {
30596
- switch (l = e.substring(i, n), l) {
30597
- case "true": return r = 8;
30598
- case "false": return r = 9;
30599
- case "null": return r = 7;
30521
+ for (; n < s && F(c);) n++, c = e.charCodeAt(n);
30522
+ if (l !== n) {
30523
+ switch (o = e.substring(l, n), o) {
30524
+ case "true": return u = 8;
30525
+ case "false": return u = 9;
30526
+ case "null": return u = 7;
30600
30527
  }
30601
- return r = 16;
30528
+ return u = 16;
30602
30529
  }
30603
- return l += String.fromCharCode(c), n++, r = 16;
30530
+ return o += String.fromCharCode(c), n++, u = 16;
30604
30531
  }
30605
30532
  }
30606
- o(T, "scanNext");
30607
- function j(c) {
30608
- if (H(c) || S(c)) return !1;
30533
+ i(T, "scanNext");
30534
+ function F(c) {
30535
+ if (O(c) || J(c)) return !1;
30609
30536
  switch (c) {
30610
30537
  case 125:
30611
30538
  case 93:
@@ -30618,179 +30545,179 @@ function Le(e, t = !1) {
30618
30545
  }
30619
30546
  return !0;
30620
30547
  }
30621
- o(j, "isUnknownContentCharacter");
30622
- function B() {
30548
+ i(F, "isUnknownContentCharacter");
30549
+ function x() {
30623
30550
  let c;
30624
30551
  do
30625
30552
  c = T();
30626
30553
  while (c >= 12 && c <= 15);
30627
30554
  return c;
30628
30555
  }
30629
- return o(B, "scanNextNonTrivia"), {
30630
- setPosition: d,
30631
- getPosition: o(() => n, "getPosition"),
30632
- scan: t ? B : T,
30633
- getToken: o(() => r, "getToken"),
30634
- getTokenValue: o(() => l, "getTokenValue"),
30635
- getTokenOffset: o(() => i, "getTokenOffset"),
30636
- getTokenLength: o(() => n - i, "getTokenLength"),
30637
- getTokenStartLine: o(() => u, "getTokenStartLine"),
30638
- getTokenStartCharacter: o(() => i - v, "getTokenStartCharacter"),
30639
- getTokenError: o(() => w, "getTokenError")
30640
- };
30641
- }
30642
- o(Le, "createScanner");
30643
- function H(e) {
30556
+ return i(x, "scanNextNonTrivia"), {
30557
+ setPosition: p,
30558
+ getPosition: i(() => n, "getPosition"),
30559
+ scan: t ? x : T,
30560
+ getToken: i(() => u, "getToken"),
30561
+ getTokenValue: i(() => o, "getTokenValue"),
30562
+ getTokenOffset: i(() => l, "getTokenOffset"),
30563
+ getTokenLength: i(() => n - l, "getTokenLength"),
30564
+ getTokenStartLine: i(() => r, "getTokenStartLine"),
30565
+ getTokenStartCharacter: i(() => l - v, "getTokenStartCharacter"),
30566
+ getTokenError: i(() => d, "getTokenError")
30567
+ };
30568
+ }
30569
+ i(Ue, "createScanner");
30570
+ function O(e) {
30644
30571
  return e === 32 || e === 9;
30645
30572
  }
30646
- o(H, "isWhiteSpace");
30647
- function S(e) {
30573
+ i(O, "isWhiteSpace");
30574
+ function J(e) {
30648
30575
  return e === 10 || e === 13;
30649
30576
  }
30650
- o(S, "isLineBreak");
30651
- function $(e) {
30577
+ i(J, "isLineBreak");
30578
+ function N(e) {
30652
30579
  return e >= 48 && e <= 57;
30653
30580
  }
30654
- o($, "isDigit");
30655
- var oe;
30581
+ i(N, "isDigit");
30582
+ var ae;
30656
30583
  (function(e) {
30657
30584
  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";
30658
- })(oe || (oe = {})), new Array(20).fill(0).map((e, t) => " ".repeat(t));
30659
- const x = 200;
30660
- new Array(x).fill(0).map((e, t) => `
30661
- ` + " ".repeat(t)), new Array(x).fill(0).map((e, t) => "\r" + " ".repeat(t)), new Array(x).fill(0).map((e, t) => `\r
30662
- ` + " ".repeat(t)), new Array(x).fill(0).map((e, t) => `
30663
- ` + " ".repeat(t)), new Array(x).fill(0).map((e, t) => "\r" + " ".repeat(t)), new Array(x).fill(0).map((e, t) => `\r
30585
+ })(ae || (ae = {})), new Array(20).fill(0).map((e, t) => " ".repeat(t));
30586
+ const P = 200;
30587
+ new Array(P).fill(0).map((e, t) => `
30588
+ ` + " ".repeat(t)), new Array(P).fill(0).map((e, t) => "\r" + " ".repeat(t)), new Array(P).fill(0).map((e, t) => `\r
30589
+ ` + " ".repeat(t)), new Array(P).fill(0).map((e, t) => `
30590
+ ` + " ".repeat(t)), new Array(P).fill(0).map((e, t) => "\r" + " ".repeat(t)), new Array(P).fill(0).map((e, t) => `\r
30664
30591
  ` + " ".repeat(t));
30665
- var W;
30592
+ var Q;
30666
30593
  (function(e) {
30667
30594
  e.DEFAULT = { allowTrailingComma: !1 };
30668
- })(W || (W = {}));
30669
- function $e(e, t = [], s = W.DEFAULT) {
30670
- let n = null, l = [];
30671
- const i = [];
30672
- function r(u) {
30673
- Array.isArray(l) ? l.push(u) : n !== null && (l[n] = u);
30674
- }
30675
- return o(r, "onValue"), xe(e, {
30676
- onObjectBegin: o(() => {
30677
- const u = {};
30678
- r(u), i.push(l), l = u, n = null;
30595
+ })(Q || (Q = {}));
30596
+ function Ne(e, t = [], s = Q.DEFAULT) {
30597
+ let n = null, o = [];
30598
+ const l = [];
30599
+ function u(r) {
30600
+ Array.isArray(o) ? o.push(r) : n !== null && (o[n] = r);
30601
+ }
30602
+ return i(u, "onValue"), Pe(e, {
30603
+ onObjectBegin: i(() => {
30604
+ const r = {};
30605
+ u(r), l.push(o), o = r, n = null;
30679
30606
  }, "onObjectBegin"),
30680
- onObjectProperty: o((u) => {
30681
- n = u;
30607
+ onObjectProperty: i((r) => {
30608
+ n = r;
30682
30609
  }, "onObjectProperty"),
30683
- onObjectEnd: o(() => {
30684
- l = i.pop();
30610
+ onObjectEnd: i(() => {
30611
+ o = l.pop();
30685
30612
  }, "onObjectEnd"),
30686
- onArrayBegin: o(() => {
30687
- const u = [];
30688
- r(u), i.push(l), l = u, n = null;
30613
+ onArrayBegin: i(() => {
30614
+ const r = [];
30615
+ u(r), l.push(o), o = r, n = null;
30689
30616
  }, "onArrayBegin"),
30690
- onArrayEnd: o(() => {
30691
- l = i.pop();
30617
+ onArrayEnd: i(() => {
30618
+ o = l.pop();
30692
30619
  }, "onArrayEnd"),
30693
- onLiteralValue: r,
30694
- onError: o((u, g, v) => {
30620
+ onLiteralValue: u,
30621
+ onError: i((r, g, v) => {
30695
30622
  t.push({
30696
- error: u,
30623
+ error: r,
30697
30624
  offset: g,
30698
30625
  length: v
30699
30626
  });
30700
30627
  }, "onError")
30701
- }, s), l[0];
30702
- }
30703
- o($e, "parse$1");
30704
- function xe(e, t, s = W.DEFAULT) {
30705
- const n = Le(e, !1), l = [];
30706
- let i = 0;
30707
- function r(k) {
30708
- return k ? () => i === 0 && k(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter()) : () => !0;
30709
- }
30710
- o(r, "toNoArgVisit");
30711
- function f(k) {
30712
- return k ? (D) => i === 0 && k(D, n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter()) : () => !0;
30713
- }
30714
- o(f, "toOneArgVisit");
30715
- function u(k) {
30716
- return k ? (D) => i === 0 && k(D, n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter(), () => l.slice()) : () => !0;
30717
- }
30718
- o(u, "toOneArgVisitWithPath");
30719
- function g(k) {
30720
- return k ? () => {
30721
- i > 0 ? i++ : k(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter(), () => l.slice()) === !1 && (i = 1);
30628
+ }, s), o[0];
30629
+ }
30630
+ i(Ne, "parse$1");
30631
+ function Pe(e, t, s = Q.DEFAULT) {
30632
+ const n = Ue(e, !1), o = [];
30633
+ let l = 0;
30634
+ function u(w) {
30635
+ return w ? () => l === 0 && w(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter()) : () => !0;
30636
+ }
30637
+ i(u, "toNoArgVisit");
30638
+ function a(w) {
30639
+ return w ? (j) => l === 0 && w(j, n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter()) : () => !0;
30640
+ }
30641
+ i(a, "toOneArgVisit");
30642
+ function r(w) {
30643
+ return w ? (j) => l === 0 && w(j, n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter(), () => o.slice()) : () => !0;
30644
+ }
30645
+ i(r, "toOneArgVisitWithPath");
30646
+ function g(w) {
30647
+ return w ? () => {
30648
+ l > 0 ? l++ : w(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter(), () => o.slice()) === !1 && (l = 1);
30722
30649
  } : () => !0;
30723
30650
  }
30724
- o(g, "toBeginVisit");
30725
- function v(k) {
30726
- return k ? () => {
30727
- i > 0 && i--, i === 0 && k(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter());
30651
+ i(g, "toBeginVisit");
30652
+ function v(w) {
30653
+ return w ? () => {
30654
+ l > 0 && l--, l === 0 && w(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter());
30728
30655
  } : () => !0;
30729
30656
  }
30730
- o(v, "toEndVisit");
30731
- const w = g(t.onObjectBegin), _ = u(t.onObjectProperty), d = v(t.onObjectEnd), F = g(t.onArrayBegin), E = v(t.onArrayEnd), T = u(t.onLiteralValue), j = f(t.onSeparator), B = r(t.onComment), c = f(t.onError), y = s && s.disallowComments, A = s && s.allowTrailingComma;
30657
+ i(v, "toEndVisit");
30658
+ const d = g(t.onObjectBegin), _ = r(t.onObjectProperty), p = v(t.onObjectEnd), D = g(t.onArrayBegin), L = v(t.onArrayEnd), T = r(t.onLiteralValue), F = a(t.onSeparator), x = u(t.onComment), c = a(t.onError), y = s && s.disallowComments, A = s && s.allowTrailingComma;
30732
30659
  function b() {
30733
30660
  for (;;) {
30734
- const k = n.scan();
30661
+ const w = n.scan();
30735
30662
  switch (n.getTokenError()) {
30736
30663
  case 4:
30737
- p(14);
30664
+ k(14);
30738
30665
  break;
30739
30666
  case 5:
30740
- p(15);
30667
+ k(15);
30741
30668
  break;
30742
30669
  case 3:
30743
- p(13);
30670
+ k(13);
30744
30671
  break;
30745
30672
  case 1:
30746
- y || p(11);
30673
+ y || k(11);
30747
30674
  break;
30748
30675
  case 2:
30749
- p(12);
30676
+ k(12);
30750
30677
  break;
30751
30678
  case 6:
30752
- p(16);
30679
+ k(16);
30753
30680
  break;
30754
30681
  }
30755
- switch (k) {
30682
+ switch (w) {
30756
30683
  case 12:
30757
30684
  case 13:
30758
- y ? p(10) : B();
30685
+ y ? k(10) : x();
30759
30686
  break;
30760
30687
  case 16:
30761
- p(1);
30688
+ k(1);
30762
30689
  break;
30763
30690
  case 15:
30764
30691
  case 14: break;
30765
- default: return k;
30692
+ default: return w;
30766
30693
  }
30767
30694
  }
30768
30695
  }
30769
- o(b, "scanNext");
30770
- function p(k, D = [], se = []) {
30771
- if (c(k), D.length + se.length > 0) {
30772
- let P = n.getToken();
30773
- for (; P !== 17;) {
30774
- if (D.indexOf(P) !== -1) {
30696
+ i(b, "scanNext");
30697
+ function k(w, j = [], S = []) {
30698
+ if (c(w), j.length + S.length > 0) {
30699
+ let $ = n.getToken();
30700
+ for (; $ !== 17;) {
30701
+ if (j.indexOf($) !== -1) {
30775
30702
  b();
30776
30703
  break;
30777
- } else if (se.indexOf(P) !== -1) break;
30778
- P = b();
30704
+ } else if (S.indexOf($) !== -1) break;
30705
+ $ = b();
30779
30706
  }
30780
30707
  }
30781
30708
  }
30782
- o(p, "handleError");
30783
- function U(k) {
30784
- const D = n.getTokenValue();
30785
- return k ? T(D) : (_(D), l.push(D)), b(), !0;
30709
+ i(k, "handleError");
30710
+ function R(w) {
30711
+ const j = n.getTokenValue();
30712
+ return w ? T(j) : (_(j), o.push(j)), b(), !0;
30786
30713
  }
30787
- o(U, "parseString");
30788
- function a() {
30714
+ i(R, "parseString");
30715
+ function W() {
30789
30716
  switch (n.getToken()) {
30790
30717
  case 11:
30791
- const k = n.getTokenValue();
30792
- let D = Number(k);
30793
- isNaN(D) && (p(2), D = 0), T(D);
30718
+ const w = n.getTokenValue();
30719
+ let j = Number(w);
30720
+ isNaN(j) && (k(2), j = 0), T(j);
30794
30721
  break;
30795
30722
  case 7:
30796
30723
  T(null);
@@ -30805,220 +30732,220 @@ function xe(e, t, s = W.DEFAULT) {
30805
30732
  }
30806
30733
  return b(), !0;
30807
30734
  }
30808
- o(a, "parseLiteral");
30809
- function N() {
30810
- return n.getToken() !== 10 ? (p(3, [], [2, 5]), !1) : (U(!1), n.getToken() === 6 ? (j(":"), b(), O() || p(4, [], [2, 5])) : p(5, [], [2, 5]), l.pop(), !0);
30735
+ i(W, "parseLiteral");
30736
+ function V() {
30737
+ return n.getToken() !== 10 ? (k(3, [], [2, 5]), !1) : (R(!1), n.getToken() === 6 ? (F(":"), b(), U() || k(4, [], [2, 5])) : k(5, [], [2, 5]), o.pop(), !0);
30811
30738
  }
30812
- o(N, "parseProperty");
30813
- function _e() {
30814
- w(), b();
30815
- let k = !1;
30739
+ i(V, "parseProperty");
30740
+ function M() {
30741
+ d(), b();
30742
+ let w = !1;
30816
30743
  for (; n.getToken() !== 2 && n.getToken() !== 17;) {
30817
30744
  if (n.getToken() === 5) {
30818
- if (k || p(4, [], []), j(","), b(), n.getToken() === 2 && A) break;
30819
- } else k && p(6, [], []);
30820
- N() || p(4, [], [2, 5]), k = !0;
30745
+ if (w || k(4, [], []), F(","), b(), n.getToken() === 2 && A) break;
30746
+ } else w && k(6, [], []);
30747
+ V() || k(4, [], [2, 5]), w = !0;
30821
30748
  }
30822
- return d(), n.getToken() !== 2 ? p(7, [2], []) : b(), !0;
30749
+ return p(), n.getToken() !== 2 ? k(7, [2], []) : b(), !0;
30823
30750
  }
30824
- o(_e, "parseObject");
30825
- function ye() {
30826
- F(), b();
30827
- let k = !0, D = !1;
30751
+ i(M, "parseObject");
30752
+ function z() {
30753
+ D(), b();
30754
+ let w = !0, j = !1;
30828
30755
  for (; n.getToken() !== 4 && n.getToken() !== 17;) {
30829
30756
  if (n.getToken() === 5) {
30830
- if (D || p(4, [], []), j(","), b(), n.getToken() === 4 && A) break;
30831
- } else D && p(6, [], []);
30832
- k ? (l.push(0), k = !1) : l[l.length - 1]++, O() || p(4, [], [4, 5]), D = !0;
30757
+ if (j || k(4, [], []), F(","), b(), n.getToken() === 4 && A) break;
30758
+ } else j && k(6, [], []);
30759
+ w ? (o.push(0), w = !1) : o[o.length - 1]++, U() || k(4, [], [4, 5]), j = !0;
30833
30760
  }
30834
- return E(), k || l.pop(), n.getToken() !== 4 ? p(8, [4], []) : b(), !0;
30761
+ return L(), w || o.pop(), n.getToken() !== 4 ? k(8, [4], []) : b(), !0;
30835
30762
  }
30836
- o(ye, "parseArray");
30837
- function O() {
30763
+ i(z, "parseArray");
30764
+ function U() {
30838
30765
  switch (n.getToken()) {
30839
- case 3: return ye();
30840
- case 1: return _e();
30841
- case 10: return U(!0);
30842
- default: return a();
30766
+ case 3: return z();
30767
+ case 1: return M();
30768
+ case 10: return R(!0);
30769
+ default: return W();
30843
30770
  }
30844
30771
  }
30845
- return o(O, "parseValue"), b(), n.getToken() === 17 ? s.allowEmptyContent ? !0 : (p(4, [], []), !1) : O() ? (n.getToken() !== 17 && p(9, [], []), !0) : (p(4, [], []), !1);
30772
+ return i(U, "parseValue"), b(), n.getToken() === 17 ? s.allowEmptyContent ? !0 : (k(4, [], []), !1) : U() ? (n.getToken() !== 17 && k(9, [], []), !0) : (k(4, [], []), !1);
30846
30773
  }
30847
- o(xe, "visit");
30848
- var re;
30774
+ i(Pe, "visit");
30775
+ var ce;
30849
30776
  (function(e) {
30850
30777
  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";
30851
- })(re || (re = {}));
30852
- var ue;
30778
+ })(ce || (ce = {}));
30779
+ var ge;
30853
30780
  (function(e) {
30854
30781
  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";
30855
- })(ue || (ue = {}));
30856
- const Ue = $e;
30857
- var fe;
30782
+ })(ge || (ge = {}));
30783
+ const Re = Ne;
30784
+ var ke;
30858
30785
  (function(e) {
30859
30786
  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";
30860
- })(fe || (fe = {}));
30861
- const ce = o((e, t) => Ue(Be(t, e, "utf8")), "readJsonc"), X = Symbol("implicitBaseUrl"), L = "${configDir}", Se = o(() => {
30787
+ })(ke || (ke = {}));
30788
+ const me = i((e, t) => Re($e(t, e, "utf8")), "readJsonc"), C = Symbol("implicitBaseUrl"), I = "${configDir}", Se = i(() => {
30862
30789
  const { findPnpApi: e } = module$1;
30863
30790
  return e && e(process.cwd());
30864
- }, "getPnpApi"), Y = o((e, t, s, n) => {
30865
- const l = `resolveFromPackageJsonPath:${e}:${t}:${s}`;
30866
- if (n != null && n.has(l)) return n.get(l);
30867
- const i = ce(e, n);
30868
- if (!i) return;
30869
- let r = t || "tsconfig.json";
30870
- if (!s && i.exports) try {
30871
- const [f] = v(i.exports, t, ["require", "types"]);
30872
- r = f;
30791
+ }, "getPnpApi"), ee = i((e, t, s, n) => {
30792
+ const o = `resolveFromPackageJsonPath:${e}:${t}:${s}`;
30793
+ if (n != null && n.has(o)) return n.get(o);
30794
+ const l = me(e, n);
30795
+ if (!l) return;
30796
+ let u = t || "tsconfig.json";
30797
+ if (!s && l.exports) try {
30798
+ const [a] = v(l.exports, t, ["require", "types"]);
30799
+ u = a;
30873
30800
  } catch {
30874
30801
  return !1;
30875
30802
  }
30876
- else !t && i.tsconfig && (r = i.tsconfig);
30877
- return r = path.join(e, "..", r), n?.set(l, r), r;
30878
- }, "resolveFromPackageJsonPath"), Z = "package.json", q = "tsconfig.json", Ne = o((e, t, s) => {
30803
+ else !t && l.tsconfig && (u = l.tsconfig);
30804
+ return u = path.join(e, "..", u), n?.set(o, u), u;
30805
+ }, "resolveFromPackageJsonPath"), ne = "package.json", te = "tsconfig.json", Je = i((e, t, s) => {
30879
30806
  let n = e;
30880
- if (e === ".." && (n = path.join(n, q)), e[0] === "." && (n = path.resolve(t, n)), path.isAbsolute(n)) {
30881
- if (I(s, n)) {
30882
- if (R(s, n).isFile()) return n;
30807
+ if (e === ".." && (n = path.join(n, te)), e[0] === "." && (n = path.resolve(t, n)), path.isAbsolute(n)) {
30808
+ if (E(s, n)) {
30809
+ if (G(s, n).isFile()) return n;
30883
30810
  } else if (!n.endsWith(".json")) {
30884
- const d = `${n}.json`;
30885
- if (I(s, d)) return d;
30811
+ const p = `${n}.json`;
30812
+ if (E(s, p)) return p;
30886
30813
  }
30887
30814
  return;
30888
30815
  }
30889
- const [l, ...i] = e.split("/"), r = l[0] === "@" ? `${l}/${i.shift()}` : l, f = i.join("/"), u = Se();
30890
- if (u) {
30891
- const { resolveRequest: d } = u;
30816
+ const [o, ...l] = e.split("/"), u = o[0] === "@" ? `${o}/${l.shift()}` : o, a = l.join("/"), r = Se();
30817
+ if (r) {
30818
+ const { resolveRequest: p } = r;
30892
30819
  try {
30893
- if (r === e) {
30894
- const F = d(path.join(r, Z), t);
30895
- if (F) {
30896
- const E = Y(F, f, !1, s);
30897
- if (E && I(s, E)) return E;
30820
+ if (u === e) {
30821
+ const D = p(path.join(u, ne), t);
30822
+ if (D) {
30823
+ const L = ee(D, a, !1, s);
30824
+ if (L && E(s, L)) return L;
30898
30825
  }
30899
30826
  } else {
30900
- let F;
30827
+ let D;
30901
30828
  try {
30902
- F = d(e, t, { extensions: [".json"] });
30829
+ D = p(e, t, { extensions: [".json"] });
30903
30830
  } catch {
30904
- F = d(path.join(e, q), t);
30831
+ D = p(path.join(e, te), t);
30905
30832
  }
30906
- if (F) return F;
30833
+ if (D) return D;
30907
30834
  }
30908
30835
  } catch {}
30909
30836
  }
30910
- const g = ie(path.resolve(t), path.join("node_modules", r), s);
30911
- if (!g || !R(s, g).isDirectory()) return;
30912
- const v = path.join(g, Z);
30913
- if (I(s, v)) {
30914
- const d = Y(v, f, !1, s);
30915
- if (d === !1) return;
30916
- if (d && I(s, d) && R(s, d).isFile()) return d;
30837
+ const g = fe(path.resolve(t), path.join("node_modules", u), s);
30838
+ if (!g || !G(s, g).isDirectory()) return;
30839
+ const v = path.join(g, ne);
30840
+ if (E(s, v)) {
30841
+ const p = ee(v, a, !1, s);
30842
+ if (p === !1) return;
30843
+ if (p && E(s, p) && G(s, p).isFile()) return p;
30917
30844
  }
30918
- const w = path.join(g, f), _ = w.endsWith(".json");
30845
+ const d = path.join(g, a), _ = d.endsWith(".json");
30919
30846
  if (!_) {
30920
- const d = `${w}.json`;
30921
- if (I(s, d)) return d;
30922
- }
30923
- if (I(s, w)) {
30924
- if (R(s, w).isDirectory()) {
30925
- const d = path.join(w, Z);
30926
- if (I(s, d)) {
30927
- const E = Y(d, "", !0, s);
30928
- if (E && I(s, E)) return E;
30847
+ const p = `${d}.json`;
30848
+ if (E(s, p)) return p;
30849
+ }
30850
+ if (E(s, d)) {
30851
+ if (G(s, d).isDirectory()) {
30852
+ const p = path.join(d, ne);
30853
+ if (E(s, p)) {
30854
+ const L = ee(p, "", !0, s);
30855
+ if (L && E(s, L)) return L;
30929
30856
  }
30930
- const F = path.join(w, q);
30931
- if (I(s, F)) return F;
30932
- } else if (_) return w;
30857
+ const D = path.join(d, te);
30858
+ if (E(s, D)) return D;
30859
+ } else if (_) return d;
30933
30860
  }
30934
- }, "resolveExtendsPath"), K = o((e, t) => Q(path.relative(e, t)), "pathRelative"), ae = [
30861
+ }, "resolveExtendsPath"), se = i((e, t) => K(path.relative(e, t)), "pathRelative"), we = [
30935
30862
  "files",
30936
30863
  "include",
30937
30864
  "exclude"
30938
- ], ge = o((e, t, s) => {
30865
+ ], de = i((e, t, s) => {
30939
30866
  const n = path.join(t, s);
30940
30867
  return h(path.relative(e, n)) || "./";
30941
- }, "resolveAndRelativize"), Pe = o((e, t, s) => {
30868
+ }, "resolveAndRelativize"), We = i((e, t, s) => {
30942
30869
  const n = path.relative(e, t);
30943
30870
  if (!n) return s;
30944
30871
  return h(`${n}/${s.startsWith("./") ? s.slice(2) : s}`);
30945
- }, "prefixPattern"), Re = o((e, t, s, n) => {
30946
- const l = Ne(e, t, n);
30947
- if (!l) throw new Error(`File '${e}' not found.`);
30948
- if (s.has(l)) throw new Error(`Circularity detected while resolving configuration: ${l}`);
30949
- s.add(l);
30950
- const i = path.dirname(l), r = pe(l, n, s);
30951
- delete r.references;
30952
- const { compilerOptions: f } = r;
30953
- if (f) {
30954
- const { baseUrl: u } = f;
30955
- u && !u.startsWith(L) && (f.baseUrl = ge(t, i, u));
30956
- const { outDir: g } = f;
30957
- g && !g.startsWith(L) && (f.outDir = ge(t, i, g));
30958
- }
30959
- for (const u of ae) {
30960
- const g = r[u];
30961
- g && (r[u] = g.map((v) => v.startsWith(L) ? v : Pe(t, i, v)));
30962
- }
30963
- return r;
30964
- }, "resolveExtends"), We = ["outDir", "declarationDir"], pe = o((e, t, s = /* @__PURE__ */ new Set()) => {
30872
+ }, "prefixPattern"), Ve = i((e, t, s, n) => {
30873
+ const o = Je(e, t, n);
30874
+ if (!o) throw new Error(`File '${e}' not found.`);
30875
+ if (s.has(o)) throw new Error(`Circularity detected while resolving configuration: ${o}`);
30876
+ s.add(o);
30877
+ const l = path.dirname(o), u = ve(o, n, s);
30878
+ delete u.references;
30879
+ const { compilerOptions: a } = u;
30880
+ if (a) {
30881
+ const { baseUrl: r } = a;
30882
+ r && !r.startsWith(I) && (a.baseUrl = de(t, l, r));
30883
+ const { outDir: g } = a;
30884
+ g && !g.startsWith(I) && (a.outDir = de(t, l, g));
30885
+ }
30886
+ for (const r of we) {
30887
+ const g = u[r];
30888
+ g && (u[r] = g.map((v) => v.startsWith(I) ? v : We(t, l, v)));
30889
+ }
30890
+ return u;
30891
+ }, "resolveExtends"), be = ["outDir", "declarationDir"], ve = i((e, t, s = /* @__PURE__ */ new Set()) => {
30965
30892
  let n;
30966
30893
  try {
30967
- n = ce(e, t) || {};
30894
+ n = me(e, t) || {};
30968
30895
  } catch {
30969
30896
  throw new Error(`Cannot resolve tsconfig at path: ${e}`);
30970
30897
  }
30971
30898
  if (typeof n != "object") throw new SyntaxError(`Failed to parse tsconfig at: ${e}`);
30972
- const l = path.dirname(e);
30899
+ const o = path.dirname(e);
30973
30900
  if (n.compilerOptions) {
30974
- const { compilerOptions: i } = n;
30975
- i.paths && !i.baseUrl && (i[X] = l);
30901
+ const { compilerOptions: l } = n;
30902
+ l.paths && !l.baseUrl && (l[C] = o);
30976
30903
  }
30977
30904
  if (n.extends) {
30978
- const i = Array.isArray(n.extends) ? n.extends : [n.extends];
30905
+ const l = Array.isArray(n.extends) ? n.extends : [n.extends];
30979
30906
  delete n.extends;
30980
- for (const r of i.reverse()) {
30981
- const f = Re(r, l, new Set(s), t), u = {
30982
- ...f,
30907
+ for (const u of l.reverse()) {
30908
+ const a = Ve(u, o, new Set(s), t), r = {
30909
+ ...a,
30983
30910
  ...n,
30984
30911
  compilerOptions: {
30985
- ...f.compilerOptions,
30912
+ ...a.compilerOptions,
30986
30913
  ...n.compilerOptions
30987
30914
  }
30988
30915
  };
30989
- f.watchOptions && (u.watchOptions = {
30990
- ...f.watchOptions,
30916
+ a.watchOptions && (r.watchOptions = {
30917
+ ...a.watchOptions,
30991
30918
  ...n.watchOptions
30992
- }), n = u;
30919
+ }), n = r;
30993
30920
  }
30994
30921
  }
30995
30922
  if (n.compilerOptions) {
30996
- const { compilerOptions: i } = n;
30997
- for (const f of ["baseUrl", "rootDir"]) {
30998
- const u = i[f];
30999
- if (u && !u.startsWith(L)) i[f] = K(l, path.resolve(l, u));
30923
+ const { compilerOptions: l } = n;
30924
+ for (const a of ["baseUrl", "rootDir"]) {
30925
+ const r = l[a];
30926
+ if (r && !r.startsWith(I)) l[a] = se(o, path.resolve(o, r));
31000
30927
  }
31001
- for (const f of We) {
31002
- let u = i[f];
31003
- u && (Array.isArray(n.exclude) || (n.exclude = []), n.exclude.includes(u) || n.exclude.push(u), u.startsWith(L) || (u = Q(u)), i[f] = u);
30928
+ for (const a of be) {
30929
+ let r = l[a];
30930
+ r && (Array.isArray(n.exclude) || (n.exclude = be.map((g) => l[g]).filter(Boolean)), r.startsWith(I) || (r = K(r)), l[a] = r);
31004
30931
  }
31005
30932
  } else n.compilerOptions = {};
31006
- if (n.include ? (n.include = n.include.map(h), n.files && delete n.files) : n.files && (n.files = n.files.map((i) => i.startsWith(L) ? i : Q(i))), n.watchOptions) {
31007
- const { watchOptions: i } = n;
31008
- i.excludeDirectories && (i.excludeDirectories = i.excludeDirectories.map((r) => h(path.resolve(l, r))));
30933
+ if (n.include ? (n.include = n.include.map(h), n.files && delete n.files) : n.files && (n.files = n.files.map((l) => l.startsWith(I) ? l : K(l))), n.watchOptions) {
30934
+ const { watchOptions: l } = n;
30935
+ l.excludeDirectories && (l.excludeDirectories = l.excludeDirectories.map((u) => h(path.resolve(o, u)))), l.excludeFiles && (l.excludeFiles = l.excludeFiles.map((u) => h(path.resolve(o, u)))), l.watchFile && (l.watchFile = l.watchFile.toLowerCase()), l.watchDirectory && (l.watchDirectory = l.watchDirectory.toLowerCase()), l.fallbackPolling && (l.fallbackPolling = l.fallbackPolling.toLowerCase());
31009
30936
  }
31010
30937
  return n;
31011
- }, "_parseTsconfig"), V = o((e, t) => {
31012
- if (e.startsWith(L)) return h(path.join(t, e.slice(12)));
31013
- }, "interpolateConfigDir"), Ve = [
30938
+ }, "_parseTsconfig"), H = i((e, t) => {
30939
+ if (e.startsWith(I)) return h(path.join(t, e.slice(12)));
30940
+ }, "interpolateConfigDir"), Me = [
31014
30941
  "outDir",
31015
30942
  "declarationDir",
31016
30943
  "outFile",
31017
30944
  "rootDir",
31018
30945
  "baseUrl",
31019
30946
  "tsBuildInfoFile"
31020
- ], Me = o((e) => {
31021
- if (e.strict) for (const N of [
30947
+ ], ze = i((e) => {
30948
+ if (e.strict) for (const B of [
31022
30949
  "noImplicitAny",
31023
30950
  "noImplicitThis",
31024
30951
  "strictNullChecks",
@@ -31028,63 +30955,67 @@ const ce = o((e, t) => Ue(Be(t, e, "utf8")), "readJsonc"), X = Symbol("implicitB
31028
30955
  "strictBuiltinIteratorReturn",
31029
30956
  "alwaysStrict",
31030
30957
  "useUnknownInCatchVariables"
31031
- ]) e[N] === void 0 && (e[N] = !0);
31032
- if (e.target) {
31033
- let a = e.target.toLowerCase();
31034
- 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);
30958
+ ]) e[B] === void 0 && (e[B] = !0);
30959
+ if (e.composite && (e.declaration ??= !0, e.incremental ??= !0), e.target) {
30960
+ let f = e.target.toLowerCase();
30961
+ f === "es2015" && (f = "es6"), e.target = f, f === "esnext" && (e.module ??= "es6", e.useDefineForClassFields ??= !0), (f === "es6" || f === "es2016" || f === "es2017" || f === "es2018" || f === "es2019" || f === "es2020" || f === "es2021" || f === "es2022" || f === "es2023" || f === "es2024") && (e.module ??= "es6"), (f === "es2022" || f === "es2023" || f === "es2024") && (e.useDefineForClassFields ??= !0);
31035
30962
  }
31036
30963
  if (e.module) {
31037
- let a = e.module.toLowerCase();
31038
- 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 === "nodenext" || a === "preserve") && (e.esModuleInterop ??= !0, e.allowSyntheticDefaultImports ??= !0), (a === "node16" || a === "nodenext") && (e.moduleDetection ??= "force", e.useDefineForClassFields ??= !0), a === "node16" && (e.target ??= "es2022", e.moduleResolution ??= "node16"), a === "nodenext" && (e.target ??= "esnext", e.moduleResolution ??= "nodenext"), a === "preserve" && (e.moduleResolution ??= "bundler");
30964
+ let f = e.module.toLowerCase();
30965
+ if (f === "es2015" && (f = "es6"), e.module = f, (f === "es6" || f === "es2020" || f === "es2022" || f === "esnext" || f === "none" || f === "system" || f === "umd" || f === "amd") && (e.moduleResolution ??= "classic"), f === "system" && (e.allowSyntheticDefaultImports ??= !0), (f === "node16" || f === "node18" || f === "node20" || f === "nodenext" || f === "preserve") && (e.esModuleInterop ??= !0, e.allowSyntheticDefaultImports ??= !0), (f === "node16" || f === "node18" || f === "node20" || f === "nodenext") && (e.moduleDetection ??= "force"), f === "node16" && (e.target ??= "es2022", e.moduleResolution ??= "node16"), f === "node18" && (e.target ??= "es2022", e.moduleResolution ??= "node16"), f === "node20" && (e.target ??= "es2023", e.moduleResolution ??= "node16", e.resolveJsonModule ??= !0), f === "nodenext" && (e.target ??= "esnext", e.moduleResolution ??= "nodenext", e.resolveJsonModule ??= !0), f === "node16" || f === "node18" || f === "node20" || f === "nodenext") {
30966
+ const B = e.target;
30967
+ (B === "es3" || B === "es2022" || B === "es2023" || B === "es2024" || B === "esnext") && (e.useDefineForClassFields ??= !0);
30968
+ }
30969
+ f === "preserve" && (e.moduleResolution ??= "bundler");
31039
30970
  }
31040
30971
  if (e.moduleResolution) {
31041
- let a = e.moduleResolution.toLowerCase();
31042
- a === "node" && (a = "node10"), e.moduleResolution = a, (a === "node16" || a === "nodenext" || a === "bundler") && (e.resolvePackageJsonExports ??= !0, e.resolvePackageJsonImports ??= !0), a === "bundler" && (e.allowSyntheticDefaultImports ??= !0, e.resolveJsonModule ??= !0);
31043
- }
31044
- e.esModuleInterop && (e.allowSyntheticDefaultImports ??= !0), e.verbatimModuleSyntax && (e.isolatedModules ??= !0, e.preserveConstEnums ??= !0), e.isolatedModules && (e.preserveConstEnums ??= !0), e.rewriteRelativeImportExtensions && (e.allowImportingTsExtensions ??= !0);
31045
- }, "normalizeCompilerOptions"), me = o((e, t = /* @__PURE__ */ new Map()) => {
31046
- const s = path.resolve(e), n = pe(s, t), l = path.dirname(s), { compilerOptions: i } = n;
31047
- if (i) {
31048
- for (const f of Ve) {
31049
- const u = i[f];
31050
- if (u) {
31051
- const g = V(u, l);
31052
- i[f] = g ? K(l, g) : u;
30972
+ let f = e.moduleResolution.toLowerCase();
30973
+ f === "node" && (f = "node10"), e.moduleResolution = f, (f === "node16" || f === "nodenext" || f === "bundler") && (e.resolvePackageJsonExports ??= !0, e.resolvePackageJsonImports ??= !0), f === "bundler" && (e.allowSyntheticDefaultImports ??= !0, e.resolveJsonModule ??= !0);
30974
+ }
30975
+ 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((f) => f.toLowerCase())), e.checkJs && (e.allowJs ??= !0);
30976
+ }, "normalizeCompilerOptions"), pe = i((e, t = /* @__PURE__ */ new Map()) => {
30977
+ const s = path.resolve(e), n = ve(s, t), o = path.dirname(s), { compilerOptions: l } = n;
30978
+ if (l) {
30979
+ for (const a of Me) {
30980
+ const r = l[a];
30981
+ if (r) {
30982
+ const g = H(r, o);
30983
+ l[a] = g ? se(o, g) : r;
31053
30984
  }
31054
30985
  }
31055
- for (const f of ["rootDirs", "typeRoots"]) {
31056
- const u = i[f];
31057
- u && (i[f] = u.map((g) => {
31058
- const v = V(g, l);
31059
- return v ? K(l, v) : g;
30986
+ for (const a of ["rootDirs", "typeRoots"]) {
30987
+ const r = l[a];
30988
+ r && (l[a] = r.map((g) => {
30989
+ const v = H(g, o);
30990
+ return v ? se(o, v) : g;
31060
30991
  }));
31061
30992
  }
31062
- const { paths: r } = i;
31063
- if (r) for (const f of Object.keys(r)) r[f] = r[f].map((u) => {
30993
+ const { paths: u } = l;
30994
+ if (u) for (const a of Object.keys(u)) u[a] = u[a].map((r) => {
31064
30995
  var g;
31065
- return (g = V(u, l)) != null ? g : u;
30996
+ return (g = H(r, o)) != null ? g : r;
31066
30997
  });
31067
- Me(i);
30998
+ ze(l);
31068
30999
  }
31069
- for (const r of ae) {
31070
- const f = n[r];
31071
- f && (n[r] = f.map((u) => {
31000
+ for (const u of we) {
31001
+ const a = n[u];
31002
+ a && (n[u] = a.map((r) => {
31072
31003
  var g;
31073
- return (g = V(u, l)) != null ? g : u;
31004
+ return (g = H(r, o)) != null ? g : r;
31074
31005
  }));
31075
31006
  }
31076
31007
  return n;
31077
- }, "parseTsconfig"), Je = o((e = process.cwd(), t = "tsconfig.json", s = /* @__PURE__ */ new Map()) => {
31078
- const n = ie(h(e), t, s);
31008
+ }, "parseTsconfig"), Ge = i((e = process.cwd(), t = "tsconfig.json", s = /* @__PURE__ */ new Map()) => {
31009
+ const n = fe(h(e), t, s);
31079
31010
  if (!n) return null;
31080
31011
  return {
31081
31012
  path: n,
31082
- config: me(n, s)
31013
+ config: pe(n, s)
31083
31014
  };
31084
- }, "getTsconfig"), Oe = /\*/g, ke = o((e, t) => {
31085
- const s = e.match(Oe);
31015
+ }, "getTsconfig"), Qe = /\*/g, Te = i((e, t) => {
31016
+ const s = e.match(Qe);
31086
31017
  if (s && s.length > 1) throw new Error(t);
31087
- }, "assertStarCount"), ze = o((e) => {
31018
+ }, "assertStarCount"), He = i((e) => {
31088
31019
  if (e.includes("*")) {
31089
31020
  const [t, s] = e.split("*");
31090
31021
  return {
@@ -31093,66 +31024,67 @@ const ce = o((e, t) => Ue(Be(t, e, "utf8")), "readJsonc"), X = Symbol("implicitB
31093
31024
  };
31094
31025
  }
31095
31026
  return e;
31096
- }, "parsePattern"), Ge = o(({ prefix: e, suffix: t }, s) => s.startsWith(e) && s.endsWith(t), "isPatternMatch"), Qe = o((e, t, s) => Object.entries(e).map(([n, l]) => (ke(n, `Pattern '${n}' can have at most one '*' character.`), {
31097
- pattern: ze(n),
31098
- substitutions: l.map((i) => {
31099
- if (ke(i, `Substitution '${i}' in pattern '${n}' can have at most one '*' character.`), !t && !G.test(i)) throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");
31100
- return path.resolve(s, i);
31027
+ }, "parsePattern"), Xe = i(({ prefix: e, suffix: t }, s) => s.startsWith(e) && s.endsWith(t), "isPatternMatch"), Ye = i((e, t, s) => Object.entries(e).map(([n, o]) => (Te(n, `Pattern '${n}' can have at most one '*' character.`), {
31028
+ pattern: He(n),
31029
+ substitutions: o.map((l) => {
31030
+ if (Te(l, `Substitution '${l}' in pattern '${n}' can have at most one '*' character.`), !t && !q.test(l) && !path.isAbsolute(l)) throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");
31031
+ return path.resolve(s, l);
31101
31032
  })
31102
- })), "parsePaths"), He = o((e) => {
31033
+ })), "parsePaths");
31034
+ i((e) => {
31103
31035
  const { compilerOptions: t } = e.config;
31104
31036
  if (!t) return null;
31105
31037
  const { baseUrl: s, paths: n } = t;
31106
31038
  if (!s && !n) return null;
31107
- const l = X in t && t[X], i = path.resolve(path.dirname(e.path), s || l || "."), r = n ? Qe(n, s, i) : [];
31108
- return (f) => {
31109
- if (G.test(f)) return [];
31110
- const u = [];
31111
- for (const _ of r) {
31112
- if (_.pattern === f) return _.substitutions.map(h);
31113
- typeof _.pattern != "string" && u.push(_);
31039
+ const o = C in t && t[C], l = path.resolve(path.dirname(e.path), s || o || "."), u = n ? Ye(n, s, l) : [];
31040
+ return (a) => {
31041
+ if (q.test(a)) return [];
31042
+ const r = [];
31043
+ for (const _ of u) {
31044
+ if (_.pattern === a) return _.substitutions.map(h);
31045
+ typeof _.pattern != "string" && r.push(_);
31114
31046
  }
31115
31047
  let g, v = -1;
31116
- for (const _ of u) Ge(_.pattern, f) && _.pattern.prefix.length > v && (v = _.pattern.prefix.length, g = _);
31117
- if (!g) return s ? [h(path.join(i, f))] : [];
31118
- const w = f.slice(g.pattern.prefix.length, f.length - g.pattern.suffix.length);
31119
- return g.substitutions.map((_) => h(_.replace("*", w)));
31048
+ for (const _ of r) Xe(_.pattern, a) && _.pattern.prefix.length > v && (v = _.pattern.prefix.length, g = _);
31049
+ if (!g) return s ? [h(path.join(l, a))] : [];
31050
+ const d = a.slice(g.pattern.prefix.length, a.length - g.pattern.suffix.length);
31051
+ return g.substitutions.map((_) => h(_.replace("*", d)));
31120
31052
  };
31121
31053
  }, "createPathsMatcher");
31122
- var Xe = Object.defineProperty, M = o((e, t) => Xe(e, "name", {
31054
+ var qe = Object.defineProperty, X = i((e, t) => qe(e, "name", {
31123
31055
  value: t,
31124
31056
  configurable: !0
31125
31057
  }), "s");
31126
- const we = M((e) => {
31058
+ const Ae = X((e) => {
31127
31059
  let t = "";
31128
31060
  for (let s = 0; s < e.length; s += 1) {
31129
- const n = e[s], l = n.toUpperCase();
31130
- t += n === l ? n.toLowerCase() : l;
31061
+ const n = e[s], o = n.toUpperCase();
31062
+ t += n === o ? n.toLowerCase() : o;
31131
31063
  }
31132
31064
  return t;
31133
- }, "invertCase"), C = /* @__PURE__ */ new Map(), be = M((e, t) => {
31065
+ }, "invertCase"), le = /* @__PURE__ */ new Map(), _e = X((e, t) => {
31134
31066
  const s = path$1.join(e, `.is-fs-case-sensitive-test-${process.pid}`);
31135
31067
  try {
31136
- return t.writeFileSync(s, ""), !t.existsSync(we(s));
31068
+ return t.writeFileSync(s, ""), !t.existsSync(Ae(s));
31137
31069
  } finally {
31138
31070
  try {
31139
31071
  t.unlinkSync(s);
31140
31072
  } catch {}
31141
31073
  }
31142
- }, "checkDirectoryCaseWithWrite"), Ye = M((e, t, s) => {
31074
+ }, "checkDirectoryCaseWithWrite"), Ke = X((e, t, s) => {
31143
31075
  try {
31144
- return be(e, s);
31076
+ return _e(e, s);
31145
31077
  } catch (n) {
31146
- if (t === void 0) return be(he.tmpdir(), s);
31078
+ if (t === void 0) return _e(Be.tmpdir(), s);
31147
31079
  throw n;
31148
31080
  }
31149
- }, "checkDirectoryCaseWithFallback"), Ze = M((e, t = nativeFs, s = !0) => {
31081
+ }, "checkDirectoryCaseWithFallback"), Oe = X((e, t = nativeFs, s = !0) => {
31150
31082
  const n = e != null ? e : process.cwd();
31151
- if (s && C.has(n)) return C.get(n);
31152
- let l;
31153
- const i = we(n);
31154
- return i !== n && t.existsSync(n) ? l = !t.existsSync(i) : l = Ye(n, e, t), s && C.set(n, l), l;
31155
- }, "isFsCaseSensitive"), { join: ve } = path.posix, ee = {
31083
+ if (s && le.has(n)) return le.get(n);
31084
+ let o;
31085
+ const l = Ae(n);
31086
+ return l !== n && t.existsSync(n) ? o = !t.existsSync(l) : o = Ke(n, e, t), s && le.set(n, o), o;
31087
+ }, "isFsCaseSensitive"), { join: ye } = path.posix, oe = {
31156
31088
  ts: [
31157
31089
  ".ts",
31158
31090
  ".tsx",
@@ -31160,48 +31092,48 @@ const we = M((e) => {
31160
31092
  ],
31161
31093
  cts: [".cts", ".d.cts"],
31162
31094
  mts: [".mts", ".d.mts"]
31163
- }, qe = o((e) => {
31164
- const t = [...ee.ts], s = [...ee.cts], n = [...ee.mts];
31095
+ }, Ce = i((e) => {
31096
+ const t = [...oe.ts], s = [...oe.cts], n = [...oe.mts];
31165
31097
  return e != null && e.allowJs && (t.push(".js", ".jsx"), s.push(".cjs"), n.push(".mjs")), [
31166
31098
  ...t,
31167
31099
  ...s,
31168
31100
  ...n
31169
31101
  ];
31170
- }, "getSupportedExtensions"), Ke = o((e) => {
31102
+ }, "getSupportedExtensions"), en = i((e) => {
31171
31103
  const t = [];
31172
31104
  if (!e) return t;
31173
31105
  const { outDir: s, declarationDir: n } = e;
31174
31106
  return s && t.push(s), n && t.push(n), t;
31175
- }, "getDefaultExcludeSpec"), de = o((e) => e.replaceAll(/[.*+?^${}()|[\]\\]/g, String.raw`\$&`), "escapeForRegexp"), ne = `(?!(${[
31107
+ }, "getDefaultExcludeSpec"), je = i((e) => e.replaceAll(/[.*+?^${}()|[\]\\]/g, String.raw`\$&`), "escapeForRegexp"), ie = `(?!(${[
31176
31108
  "node_modules",
31177
31109
  "bower_components",
31178
31110
  "jspm_packages"
31179
- ].join("|")})(/|$))`, en = /(?:^|\/)[^.*?]+$/, Te = "**/*", J = "[^/]", te = "[^./]", Ae = process.platform === "win32", nn = o(({ config: e, path: t }, s = Ze()) => {
31111
+ ].join("|")})(/|$))`, tn = /(?:^|\/)[^.*?]+$/, Fe = "**/*", Y = "[^/]", ue = "[^./]", De = process.platform === "win32";
31112
+ i(({ config: e, path: t }, s = Oe()) => {
31180
31113
  if ("extends" in e) throw new Error("tsconfig#extends must be resolved. Use getTsconfig or parseTsconfig to resolve it.");
31181
31114
  if (!path.isAbsolute(t)) throw new Error("The tsconfig path must be absolute");
31182
- Ae && (t = h(t));
31183
- const n = path.dirname(t), { files: l, include: i, exclude: r, compilerOptions: f } = e, u = o((T) => path.isAbsolute(T) ? T : ve(n, T), "resolvePattern"), g = l == null ? void 0 : l.map(u), v = qe(f), w = s ? "" : "i", d = (r || Ke(f)).map((T) => {
31184
- const B = de(u(T)).replaceAll(String.raw`\*\*/`, "(.+/)?").replaceAll(String.raw`\*`, `${J}*`).replaceAll(String.raw`\?`, J);
31185
- return new RegExp(`^${B}($|/)`, w);
31186
- }), F = l || i ? i : [Te], E = F ? F.map((T) => {
31187
- let j = u(T);
31188
- en.test(j) && (j = ve(j, Te));
31189
- const B = de(j).replaceAll(String.raw`/\*\*`, `(/${ne}${te}${J}*)*?`).replaceAll(/(\/)?\\\*/g, (c, y) => {
31190
- const A = `(${te}|(\\.(?!min\\.js$))?)*`;
31191
- return y ? `/${ne}${te}${A}` : A;
31115
+ De && (t = h(t));
31116
+ const n = path.dirname(t), { files: o, include: l, exclude: u, compilerOptions: a } = e, r = i((T) => path.isAbsolute(T) ? T : ye(n, T), "resolvePattern"), g = o == null ? void 0 : o.map(r), v = Ce(a), d = s ? "" : "i", p = (u || en(a)).map((T) => {
31117
+ const x = je(r(T)).replaceAll(String.raw`\*\*/`, "(.+/)?").replaceAll(String.raw`\*`, `${Y}*`).replaceAll(String.raw`\?`, Y);
31118
+ return new RegExp(`^${x}($|/)`, d);
31119
+ }), D = o || l ? l : [Fe], L = D ? D.map((T) => {
31120
+ let F = r(T);
31121
+ tn.test(F) && (F = ye(F, Fe));
31122
+ const x = je(F).replaceAll(String.raw`/\*\*`, `(/${ie}${ue}${Y}*)*?`).replaceAll(/(\/)?\\\*/g, (c, y) => {
31123
+ const A = `(${ue}|(\\.(?!min\\.js$))?)*`;
31124
+ return y ? `/${ie}${ue}${A}` : A;
31192
31125
  }).replaceAll(/(\/)?\\\?/g, (c, y) => {
31193
- const A = J;
31194
- return y ? `/${ne}${A}` : A;
31126
+ const A = Y;
31127
+ return y ? `/${ie}${A}` : A;
31195
31128
  });
31196
- return new RegExp(`^${B}$`, w);
31129
+ return new RegExp(`^${x}$`, d);
31197
31130
  }) : void 0;
31198
31131
  return (T) => {
31199
31132
  if (!path.isAbsolute(T)) throw new Error("filePath must be absolute");
31200
- if (Ae && (T = h(T)), g != null && g.includes(T)) return e;
31201
- if (!(!v.some((j) => T.endsWith(j)) || d.some((j) => j.test(T))) && E && E.some((j) => j.test(T))) return e;
31133
+ if (De && (T = h(T)), g != null && g.includes(T)) return e;
31134
+ if (!(!v.some((F) => T.endsWith(F)) || p.some((F) => F.test(T))) && L && L.some((F) => F.test(T))) return e;
31202
31135
  };
31203
31136
  }, "createFilesMatcher");
31204
-
31205
31137
  //#endregion
31206
31138
  //#region ../../node_modules/.pnpm/dts-resolver@2.1.3_oxc-resolver@11.14.0/node_modules/dts-resolver/dist/index.mjs
31207
31139
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
@@ -31314,9 +31246,8 @@ const ALLOW_EXTENSIONS = new Set([
31314
31246
  function ensureValue(value) {
31315
31247
  return value && ALLOW_EXTENSIONS.has(extname(value)) ? value.replaceAll("\\", "/") : null;
31316
31248
  }
31317
-
31318
31249
  //#endregion
31319
- //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.22.1_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_d2e4a246ecba2d40b4415d1b79df8dc9/node_modules/rolldown-plugin-dts/dist/index.mjs
31250
+ //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.22.4_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_e2c498b62da30912fd0b48bf4746dbba/node_modules/rolldown-plugin-dts/dist/index.mjs
31320
31251
  const { fork, spawn } = globalThis.process.getBuiltinModule("node:child_process");
31321
31252
  const { existsSync: existsSync$1 } = globalThis.process.getBuiltinModule("node:fs");
31322
31253
  const { mkdtemp, readFile, rm } = globalThis.process.getBuiltinModule("node:fs/promises");
@@ -31450,14 +31381,13 @@ function createFakeJsPlugin({ sourcemap, cjsDefault, sideEffects }) {
31450
31381
  const deps = collectDependencies(decl, namespaceStmts, childrenSet, identifierMap);
31451
31382
  const children = Array.from(childrenSet).filter((child) => bindings.every((b) => child !== b));
31452
31383
  if (decl !== stmt) decl.leadingComments = stmt.leadingComments;
31453
- const declarationId = registerDeclaration({
31384
+ const declarationIdNode = numericLiteral(registerDeclaration({
31454
31385
  decl,
31455
31386
  deps,
31456
31387
  bindings,
31457
31388
  params,
31458
31389
  children
31459
- });
31460
- const declarationIdNode = numericLiteral(declarationId);
31390
+ }));
31461
31391
  const depsNode = arrowFunctionExpression(params.map(({ name }) => identifier(name)), arrayExpression(deps));
31462
31392
  const childrenNode = arrayExpression(children.map((node) => ({
31463
31393
  type: "StringLiteral",
@@ -31560,6 +31490,7 @@ function createFakeJsPlugin({ sourcemap, cjsDefault, sideEffects }) {
31560
31490
  start: transformedDep.start,
31561
31491
  end: transformedDep.end
31562
31492
  };
31493
+ else if (isInfer(transformedDep)) transformedDep.name = "__Infer";
31563
31494
  if (originalDep.replace) originalDep.replace(transformedDep);
31564
31495
  else Object.assign(originalDep, transformedDep);
31565
31496
  }
@@ -31694,8 +31625,7 @@ function createFakeJsPlugin({ sourcemap, cjsDefault, sideEffects }) {
31694
31625
  }
31695
31626
  function importNamespace(node, imported, source, namespaceStmts, identifierMap) {
31696
31627
  const sourceText = source.value.replaceAll(/\W/g, "_");
31697
- const localName = isIdentifierName(source.value) ? source.value : `${sourceText}${getIdentifierIndex(identifierMap, sourceText)}`;
31698
- let local = identifier(localName);
31628
+ let local = identifier(isIdentifierName(source.value) ? source.value : `${sourceText}${getIdentifierIndex(identifierMap, sourceText)}`);
31699
31629
  if (namespaceStmts.has(source.value)) local = namespaceStmts.get(source.value).local;
31700
31630
  else namespaceStmts.set(source.value, {
31701
31631
  stmt: importDeclaration([importNamespaceSpecifier(local)], source),
@@ -31761,6 +31691,9 @@ function runtimeBindingArrayExpression(elements) {
31761
31691
  function isThisExpression(node) {
31762
31692
  return isIdentifierOf(node, "this") || node.type === "ThisExpression" || node.type === "MemberExpression" && isThisExpression(node.object);
31763
31693
  }
31694
+ function isInfer(node) {
31695
+ return isIdentifierOf(node, "infer");
31696
+ }
31764
31697
  function TSEntityNameToRuntime(node) {
31765
31698
  if (node.type === "Identifier" || node.type === "ThisExpression") return node;
31766
31699
  const left = TSEntityNameToRuntime(node.left);
@@ -31774,13 +31707,16 @@ function isReferenceId(node) {
31774
31707
  return isTypeOf(node, ["Identifier", "MemberExpression"]);
31775
31708
  }
31776
31709
  function isHelperImport(node) {
31777
- return node.type === "ImportDeclaration" && node.specifiers.length === 1 && node.specifiers.every((spec) => spec.type === "ImportSpecifier" && spec.imported.type === "Identifier" && ["__exportAll", "__reExport"].includes(spec.local.name));
31710
+ return node.type === "ImportDeclaration" && node.specifiers.every((spec) => spec.type === "ImportSpecifier" && spec.imported.type === "Identifier" && ["__exportAll", "__reExport"].includes(spec.local.name));
31778
31711
  }
31779
31712
  /**
31780
31713
  * patch `.d.ts` suffix in import source to `.js`
31781
31714
  */
31782
31715
  function patchImportExport(node, typeOnlyIds, cjsDefault) {
31783
31716
  if (node.type === "ExportNamedDeclaration" && !node.declaration && !node.source && !node.specifiers.length && !node.attributes?.length) return false;
31717
+ if (node.type === "ImportDeclaration" && node.specifiers.length) {
31718
+ for (const specifier of node.specifiers) if (isInfer(specifier.local)) specifier.local.name = "__Infer";
31719
+ }
31784
31720
  if (isTypeOf(node, [
31785
31721
  "ImportDeclaration",
31786
31722
  "ExportAllDeclaration",
@@ -31997,12 +31933,12 @@ function createGeneratePlugin({ tsconfig, tsconfigRaw, build, incremental, cwd,
31997
31933
  if (tsgo) tsgoDist = await runTsgo(rootDir, tsconfig, sourcemap, tsgo.path);
31998
31934
  else if (!oxc) if (parallel) {
31999
31935
  childProcess = fork(new URL(WORKER_URL, import.meta.url), { stdio: "inherit" });
32000
- rpc = (await import("./dist-kuoe97DJ.js")).createBirpc({}, {
31936
+ rpc = (await import("./dist-_l70jCqI.js")).createBirpc({}, {
32001
31937
  post: (data) => childProcess.send(data),
32002
31938
  on: (fn) => childProcess.on("message", fn)
32003
31939
  });
32004
31940
  } else {
32005
- tscModule = await import("./tsc-CBjlgM2A.js");
31941
+ tscModule = await import("./tsc-CberiTDq.js");
32006
31942
  if (newContext) tscContext = createContext();
32007
31943
  }
32008
31944
  if (!Array.isArray(options.input)) for (const [name, id] of Object.entries(options.input)) {
@@ -32213,12 +32149,12 @@ function resolveOptions({ cwd = process$2.cwd(), dtsInput = false, emitDtsOnly =
32213
32149
  else if (typeof tsgo === "object" && tsgo.enabled === false) tsgo = false;
32214
32150
  let resolvedTsconfig;
32215
32151
  if (tsconfig === true || tsconfig == null) {
32216
- const { config, path } = Je(cwd) || {};
32152
+ const { config, path } = Ge(cwd) || {};
32217
32153
  tsconfig = path;
32218
32154
  resolvedTsconfig = config;
32219
32155
  } else if (typeof tsconfig === "string") {
32220
32156
  tsconfig = path$2.resolve(cwd || process$2.cwd(), tsconfig);
32221
- resolvedTsconfig = me(tsconfig);
32157
+ resolvedTsconfig = pe(tsconfig);
32222
32158
  } else tsconfig = void 0;
32223
32159
  compilerOptions = {
32224
32160
  ...resolvedTsconfig?.compilerOptions,
@@ -32332,7 +32268,7 @@ function createDtsResolvePlugin({ cwd, tsconfig, tsconfigRaw, resolver, sideEffe
32332
32268
  async function resolveDtsPath(id, importer, rolldownResolution) {
32333
32269
  let dtsPath;
32334
32270
  if (resolver === "tsc") {
32335
- const { tscResolve } = await import("./resolver-j7HY1N36-DHVsN9q6.js");
32271
+ const { tscResolve } = await import("./resolver-CdD-yT15-3eaymYLw.js");
32336
32272
  dtsPath = tscResolve(id, importer, cwd, tsconfig, tsconfigRaw);
32337
32273
  } else dtsPath = baseDtsResolver(id, importer);
32338
32274
  debug$1("Using %s for dts import: %O -> %O", resolver, id, dtsPath);
@@ -32358,6 +32294,5 @@ function dts(options = {}) {
32358
32294
  plugins.push(createDtsResolvePlugin(resolved), createFakeJsPlugin(resolved));
32359
32295
  return plugins;
32360
32296
  }
32361
-
32362
32297
  //#endregion
32363
- export { dts };
32298
+ export { dts };