@plures/praxis 1.2.12 → 1.2.41

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 (85) hide show
  1. package/README.md +63 -0
  2. package/dist/browser/{chunk-VOMLVI6V.js → chunk-BBP2F7TT.js} +70 -1
  3. package/dist/browser/{chunk-K377RW4V.js → chunk-FCEH7WMH.js} +1 -1
  4. package/dist/browser/{engine-YJZV4SLD.js → engine-65QDGCAN.js} +1 -1
  5. package/dist/browser/index.d.ts +104 -2
  6. package/dist/browser/index.js +181 -5
  7. package/dist/browser/integrations/svelte.d.ts +2 -2
  8. package/dist/browser/integrations/svelte.js +2 -2
  9. package/dist/browser/{reactive-engine.svelte-9aS0kTa8.d.ts → reactive-engine.svelte-Cqd8Mod2.d.ts} +56 -1
  10. package/dist/node/{chunk-PRPQO6R5.js → chunk-32YFEEML.js} +1 -1
  11. package/dist/node/{chunk-VOMLVI6V.js → chunk-BBP2F7TT.js} +70 -1
  12. package/dist/node/{chunk-5RH7UAQC.js → chunk-PTH6MD6P.js} +1 -0
  13. package/dist/node/cli/index.cjs +1553 -839
  14. package/dist/node/cli/index.js +39 -2
  15. package/dist/node/cloud/index.d.cts +1 -1
  16. package/dist/node/cloud/index.d.ts +1 -1
  17. package/dist/node/components/index.d.cts +2 -2
  18. package/dist/node/components/index.d.ts +2 -2
  19. package/dist/node/conversations-KQBXTP3N.js +596 -0
  20. package/dist/node/{engine-2DQBKBJC.js → engine-7CXQV6RC.js} +1 -1
  21. package/dist/node/index.cjs +408 -3
  22. package/dist/node/index.d.cts +308 -7
  23. package/dist/node/index.d.ts +308 -7
  24. package/dist/node/index.js +336 -6
  25. package/dist/node/integrations/svelte.cjs +70 -1
  26. package/dist/node/integrations/svelte.d.cts +3 -3
  27. package/dist/node/integrations/svelte.d.ts +3 -3
  28. package/dist/node/integrations/svelte.js +2 -2
  29. package/dist/node/{protocol-Qek7ebBl.d.ts → protocol-BocKczNv.d.cts} +1 -1
  30. package/dist/node/{protocol-Qek7ebBl.d.cts → protocol-BocKczNv.d.ts} +1 -1
  31. package/dist/node/{reactive-engine.svelte-CRNqHlbv.d.ts → reactive-engine.svelte-CGe8SpVE.d.cts} +57 -2
  32. package/dist/node/{reactive-engine.svelte-BFIZfawz.d.cts → reactive-engine.svelte-D-xTDxT5.d.ts} +57 -2
  33. package/dist/node/{terminal-adapter-B-UK_Vdz.d.ts → terminal-adapter-CvIvgTo4.d.ts} +1 -1
  34. package/dist/node/{terminal-adapter-BQSIF5bf.d.cts → terminal-adapter-Db-snPJ3.d.cts} +1 -1
  35. package/dist/node/{validate-CNHUULQE.js → validate-EN3M4FUR.js} +1 -1
  36. package/dist/node/{verify-KLJRXVJS.js → verify-7VZRP2WS.js} +2 -2
  37. package/docs/BOT_UPDATE_POLICY.md +125 -0
  38. package/docs/DOGFOODING_CHECKLIST.md +254 -0
  39. package/docs/DOGFOODING_INDEX.md +169 -0
  40. package/docs/DOGFOODING_QUICK_START.md +140 -0
  41. package/docs/KNO_ENG_EXTRACTION_PLAN.md +577 -0
  42. package/docs/PLURES_TOOLS_INVENTORY.md +170 -0
  43. package/docs/README.md +12 -0
  44. package/docs/TESTING_BOT_WORKFLOWS.md +154 -0
  45. package/docs/conversations/INTEGRATION_POINTS.md +719 -0
  46. package/docs/conversations/README.md +168 -0
  47. package/docs/core/extending-praxis-core.md +604 -0
  48. package/docs/core/praxis-core-api.md +385 -0
  49. package/docs/decision-ledger/contract-index.json +2 -2
  50. package/docs/decision-ledger/decisions/2026-02-01-monorepo-organization.md +130 -0
  51. package/docs/examples/DOGFOODING_WORKFLOW_EXAMPLE.md +295 -0
  52. package/docs/examples/README.md +41 -0
  53. package/docs/workflows/pr-overlap-guard.md +50 -0
  54. package/package.json +7 -2
  55. package/src/__tests__/chronicle.test.ts +512 -0
  56. package/src/__tests__/conversations.test.ts +312 -0
  57. package/src/__tests__/edge-cases.test.ts +1 -1
  58. package/src/__tests__/engine-dx.test.ts +355 -0
  59. package/src/cli/commands/conversations.ts +252 -0
  60. package/src/cli/index.ts +73 -0
  61. package/src/conversations/README.md +230 -0
  62. package/src/conversations/candidate.schema.json +123 -0
  63. package/src/conversations/candidates.ts +114 -0
  64. package/src/conversations/capture.ts +56 -0
  65. package/src/conversations/classify.ts +110 -0
  66. package/src/conversations/conversation.schema.json +106 -0
  67. package/src/conversations/emitters/fs.ts +65 -0
  68. package/src/conversations/emitters/github.ts +115 -0
  69. package/src/conversations/gate.ts +102 -0
  70. package/src/conversations/index.ts +28 -0
  71. package/src/conversations/normalize.ts +51 -0
  72. package/src/conversations/redact.ts +57 -0
  73. package/src/conversations/types.ts +96 -0
  74. package/src/core/chronicle/chronicle.ts +227 -0
  75. package/src/core/chronicle/context.ts +80 -0
  76. package/src/core/chronicle/index.ts +53 -0
  77. package/src/core/chronicle/mcp.ts +135 -0
  78. package/src/core/chronicle/types.ts +61 -0
  79. package/src/core/engine.ts +99 -1
  80. package/src/core/pluresdb/index.ts +22 -0
  81. package/src/core/pluresdb/store.ts +162 -5
  82. package/src/core/rules.ts +12 -0
  83. package/src/dsl/index.ts +6 -0
  84. package/src/index.ts +18 -0
  85. package/src/integrations/pluresdb.ts +22 -0
@@ -3517,9 +3517,9 @@ var init_cloud = __esm({
3517
3517
  }
3518
3518
  });
3519
3519
 
3520
- // node_modules/typescript/lib/typescript.js
3520
+ // node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js
3521
3521
  var require_typescript = __commonJS({
3522
- "node_modules/typescript/lib/typescript.js"(exports2, module2) {
3522
+ "node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js"(exports2, module2) {
3523
3523
  "use strict";
3524
3524
  var ts2 = {};
3525
3525
  ((module3) => {
@@ -7174,10 +7174,10 @@ var require_typescript = __commonJS({
7174
7174
  function and(f, g) {
7175
7175
  return (arg) => f(arg) && g(arg);
7176
7176
  }
7177
- function or(...fs12) {
7177
+ function or(...fs14) {
7178
7178
  return (...args) => {
7179
7179
  let lastResult;
7180
- for (const f of fs12) {
7180
+ for (const f of fs14) {
7181
7181
  lastResult = f(...args);
7182
7182
  if (lastResult) {
7183
7183
  return lastResult;
@@ -8752,7 +8752,7 @@ ${lanes.join("\n")}
8752
8752
  var tracing;
8753
8753
  var tracingEnabled;
8754
8754
  ((tracingEnabled2) => {
8755
- let fs12;
8755
+ let fs14;
8756
8756
  let traceCount = 0;
8757
8757
  let traceFd = 0;
8758
8758
  let mode;
@@ -8761,9 +8761,9 @@ ${lanes.join("\n")}
8761
8761
  const legend = [];
8762
8762
  function startTracing2(tracingMode, traceDir, configFilePath) {
8763
8763
  Debug.assert(!tracing, "Tracing already started");
8764
- if (fs12 === void 0) {
8764
+ if (fs14 === void 0) {
8765
8765
  try {
8766
- fs12 = require("fs");
8766
+ fs14 = require("fs");
8767
8767
  } catch (e) {
8768
8768
  throw new Error(`tracing requires having fs
8769
8769
  (original error: ${e.message || e})`);
@@ -8774,8 +8774,8 @@ ${lanes.join("\n")}
8774
8774
  if (legendPath === void 0) {
8775
8775
  legendPath = combinePaths(traceDir, "legend.json");
8776
8776
  }
8777
- if (!fs12.existsSync(traceDir)) {
8778
- fs12.mkdirSync(traceDir, { recursive: true });
8777
+ if (!fs14.existsSync(traceDir)) {
8778
+ fs14.mkdirSync(traceDir, { recursive: true });
8779
8779
  }
8780
8780
  const countPart = mode === "build" ? `.${process.pid}-${++traceCount}` : mode === "server" ? `.${process.pid}` : ``;
8781
8781
  const tracePath = combinePaths(traceDir, `trace${countPart}.json`);
@@ -8785,10 +8785,10 @@ ${lanes.join("\n")}
8785
8785
  tracePath,
8786
8786
  typesPath
8787
8787
  });
8788
- traceFd = fs12.openSync(tracePath, "w");
8788
+ traceFd = fs14.openSync(tracePath, "w");
8789
8789
  tracing = tracingEnabled2;
8790
8790
  const meta = { cat: "__metadata", ph: "M", ts: 1e3 * timestamp(), pid: 1, tid: 1 };
8791
- fs12.writeSync(
8791
+ fs14.writeSync(
8792
8792
  traceFd,
8793
8793
  "[\n" + [{ name: "process_name", args: { name: "tsc" }, ...meta }, { name: "thread_name", args: { name: "Main" }, ...meta }, { name: "TracingStartedInBrowser", ...meta, cat: "disabled-by-default-devtools.timeline" }].map((v) => JSON.stringify(v)).join(",\n")
8794
8794
  );
@@ -8797,10 +8797,10 @@ ${lanes.join("\n")}
8797
8797
  function stopTracing() {
8798
8798
  Debug.assert(tracing, "Tracing is not in progress");
8799
8799
  Debug.assert(!!typeCatalog.length === (mode !== "server"));
8800
- fs12.writeSync(traceFd, `
8800
+ fs14.writeSync(traceFd, `
8801
8801
  ]
8802
8802
  `);
8803
- fs12.closeSync(traceFd);
8803
+ fs14.closeSync(traceFd);
8804
8804
  tracing = void 0;
8805
8805
  if (typeCatalog.length) {
8806
8806
  dumpTypes(typeCatalog);
@@ -8872,11 +8872,11 @@ ${lanes.join("\n")}
8872
8872
  function writeEvent(eventType, phase, name, args, extras, time = 1e3 * timestamp()) {
8873
8873
  if (mode === "server" && phase === "checkTypes") return;
8874
8874
  mark("beginTracing");
8875
- fs12.writeSync(traceFd, `,
8875
+ fs14.writeSync(traceFd, `,
8876
8876
  {"pid":1,"tid":1,"ph":"${eventType}","cat":"${phase}","ts":${time},"name":"${name}"`);
8877
- if (extras) fs12.writeSync(traceFd, `,${extras}`);
8878
- if (args) fs12.writeSync(traceFd, `,"args":${JSON.stringify(args)}`);
8879
- fs12.writeSync(traceFd, `}`);
8877
+ if (extras) fs14.writeSync(traceFd, `,${extras}`);
8878
+ if (args) fs14.writeSync(traceFd, `,"args":${JSON.stringify(args)}`);
8879
+ fs14.writeSync(traceFd, `}`);
8880
8880
  mark("endTracing");
8881
8881
  measure("Tracing", "beginTracing", "endTracing");
8882
8882
  }
@@ -8898,9 +8898,9 @@ ${lanes.join("\n")}
8898
8898
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
8899
8899
  mark("beginDumpTypes");
8900
8900
  const typesPath = legend[legend.length - 1].typesPath;
8901
- const typesFd = fs12.openSync(typesPath, "w");
8901
+ const typesFd = fs14.openSync(typesPath, "w");
8902
8902
  const recursionIdentityMap = /* @__PURE__ */ new Map();
8903
- fs12.writeSync(typesFd, "[");
8903
+ fs14.writeSync(typesFd, "[");
8904
8904
  const numTypes = types.length;
8905
8905
  for (let i = 0; i < numTypes; i++) {
8906
8906
  const type = types[i];
@@ -8996,13 +8996,13 @@ ${lanes.join("\n")}
8996
8996
  flags: Debug.formatTypeFlags(type.flags).split("|"),
8997
8997
  display
8998
8998
  };
8999
- fs12.writeSync(typesFd, JSON.stringify(descriptor));
8999
+ fs14.writeSync(typesFd, JSON.stringify(descriptor));
9000
9000
  if (i < numTypes - 1) {
9001
- fs12.writeSync(typesFd, ",\n");
9001
+ fs14.writeSync(typesFd, ",\n");
9002
9002
  }
9003
9003
  }
9004
- fs12.writeSync(typesFd, "]\n");
9005
- fs12.closeSync(typesFd);
9004
+ fs14.writeSync(typesFd, "]\n");
9005
+ fs14.closeSync(typesFd);
9006
9006
  mark("endDumpTypes");
9007
9007
  measure("Dump types", "beginDumpTypes", "endDumpTypes");
9008
9008
  }
@@ -9010,7 +9010,7 @@ ${lanes.join("\n")}
9010
9010
  if (!legendPath) {
9011
9011
  return;
9012
9012
  }
9013
- fs12.writeFileSync(legendPath, JSON.stringify(legend));
9013
+ fs14.writeFileSync(legendPath, JSON.stringify(legend));
9014
9014
  }
9015
9015
  tracingEnabled2.dumpLegend = dumpLegend;
9016
9016
  })(tracingEnabled || (tracingEnabled = {}));
@@ -11392,17 +11392,17 @@ ${lanes.join("\n")}
11392
11392
  }
11393
11393
  function createSingleWatcherPerName(cache, useCaseSensitiveFileNames2, name, callback, createWatcher) {
11394
11394
  const toCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2);
11395
- const path10 = toCanonicalFileName(name);
11396
- const existing = cache.get(path10);
11395
+ const path11 = toCanonicalFileName(name);
11396
+ const existing = cache.get(path11);
11397
11397
  if (existing) {
11398
11398
  existing.callbacks.push(callback);
11399
11399
  } else {
11400
- cache.set(path10, {
11400
+ cache.set(path11, {
11401
11401
  watcher: createWatcher(
11402
11402
  // Cant infer types correctly so lets satisfy checker
11403
11403
  (param1, param2, param3) => {
11404
11404
  var _a;
11405
- return (_a = cache.get(path10)) == null ? void 0 : _a.callbacks.slice().forEach((cb) => cb(param1, param2, param3));
11405
+ return (_a = cache.get(path11)) == null ? void 0 : _a.callbacks.slice().forEach((cb) => cb(param1, param2, param3));
11406
11406
  }
11407
11407
  ),
11408
11408
  callbacks: [callback]
@@ -11410,10 +11410,10 @@ ${lanes.join("\n")}
11410
11410
  }
11411
11411
  return {
11412
11412
  close: () => {
11413
- const watcher = cache.get(path10);
11413
+ const watcher = cache.get(path11);
11414
11414
  if (!watcher) return;
11415
11415
  if (!orderedRemoveItem(watcher.callbacks, callback) || watcher.callbacks.length) return;
11416
- cache.delete(path10);
11416
+ cache.delete(path11);
11417
11417
  closeFileWatcherOf(watcher);
11418
11418
  }
11419
11419
  };
@@ -11665,13 +11665,13 @@ ${lanes.join("\n")}
11665
11665
  (newChildWatches || (newChildWatches = [])).push(childWatcher);
11666
11666
  }
11667
11667
  }
11668
- function isIgnoredPath(path10, options) {
11669
- return some(ignoredPaths, (searchPath) => isInPath(path10, searchPath)) || isIgnoredByWatchOptions(path10, options, useCaseSensitiveFileNames2, getCurrentDirectory);
11668
+ function isIgnoredPath(path11, options) {
11669
+ return some(ignoredPaths, (searchPath) => isInPath(path11, searchPath)) || isIgnoredByWatchOptions(path11, options, useCaseSensitiveFileNames2, getCurrentDirectory);
11670
11670
  }
11671
- function isInPath(path10, searchPath) {
11672
- if (path10.includes(searchPath)) return true;
11671
+ function isInPath(path11, searchPath) {
11672
+ if (path11.includes(searchPath)) return true;
11673
11673
  if (useCaseSensitiveFileNames2) return false;
11674
- return toCanonicalFilePath(path10).includes(searchPath);
11674
+ return toCanonicalFilePath(path11).includes(searchPath);
11675
11675
  }
11676
11676
  }
11677
11677
  var FileSystemEntryKind = /* @__PURE__ */ ((FileSystemEntryKind2) => {
@@ -12049,8 +12049,8 @@ ${lanes.join("\n")}
12049
12049
  }
12050
12050
  function patchWriteFileEnsuringDirectory(sys2) {
12051
12051
  const originalWriteFile = sys2.writeFile;
12052
- sys2.writeFile = (path10, data, writeBom) => writeFileEnsuringDirectories(
12053
- path10,
12052
+ sys2.writeFile = (path11, data, writeBom) => writeFileEnsuringDirectories(
12053
+ path11,
12054
12054
  data,
12055
12055
  !!writeBom,
12056
12056
  (path22, data2, writeByteOrderMark) => originalWriteFile.call(sys2, path22, data2, writeByteOrderMark),
@@ -12094,7 +12094,7 @@ ${lanes.join("\n")}
12094
12094
  // Node 4.0 `fs.watch` function supports the "recursive" option on both OSX and Windows
12095
12095
  // (ref: https://github.com/nodejs/node/pull/2649 and https://github.com/Microsoft/TypeScript/issues/4643)
12096
12096
  fsSupportsRecursiveFsWatch,
12097
- getAccessibleSortedChildDirectories: (path10) => getAccessibleFileSystemEntries(path10).directories,
12097
+ getAccessibleSortedChildDirectories: (path11) => getAccessibleFileSystemEntries(path11).directories,
12098
12098
  realpath,
12099
12099
  tscWatchFile: process.env.TSC_WATCHFILE,
12100
12100
  useNonPollingWatchers: !!process.env.TSC_NONPOLLING_WATCHER,
@@ -12121,7 +12121,7 @@ ${lanes.join("\n")}
12121
12121
  watchFile: watchFile2,
12122
12122
  watchDirectory,
12123
12123
  preferNonRecursiveWatch: !fsSupportsRecursiveFsWatch,
12124
- resolvePath: (path10) => _path.resolve(path10),
12124
+ resolvePath: (path11) => _path.resolve(path11),
12125
12125
  fileExists,
12126
12126
  directoryExists,
12127
12127
  getAccessibleFileSystemEntries,
@@ -12156,8 +12156,8 @@ ${lanes.join("\n")}
12156
12156
  }
12157
12157
  return process.memoryUsage().heapUsed;
12158
12158
  },
12159
- getFileSize(path10) {
12160
- const stat = statSync2(path10);
12159
+ getFileSize(path11) {
12160
+ const stat = statSync2(path11);
12161
12161
  if (stat == null ? void 0 : stat.isFile()) {
12162
12162
  return stat.size;
12163
12163
  }
@@ -12201,14 +12201,14 @@ ${lanes.join("\n")}
12201
12201
  }
12202
12202
  };
12203
12203
  return nodeSystem;
12204
- function statSync2(path10) {
12204
+ function statSync2(path11) {
12205
12205
  try {
12206
- return _fs.statSync(path10, statSyncOptions);
12206
+ return _fs.statSync(path11, statSyncOptions);
12207
12207
  } catch {
12208
12208
  return void 0;
12209
12209
  }
12210
12210
  }
12211
- function enableCPUProfiler(path10, cb) {
12211
+ function enableCPUProfiler(path11, cb) {
12212
12212
  if (activeSession) {
12213
12213
  cb();
12214
12214
  return false;
@@ -12223,7 +12223,7 @@ ${lanes.join("\n")}
12223
12223
  session.post("Profiler.enable", () => {
12224
12224
  session.post("Profiler.start", () => {
12225
12225
  activeSession = session;
12226
- profilePath = path10;
12226
+ profilePath = path11;
12227
12227
  cb();
12228
12228
  });
12229
12229
  });
@@ -12367,9 +12367,9 @@ ${lanes.join("\n")}
12367
12367
  }
12368
12368
  }
12369
12369
  }
12370
- function getAccessibleFileSystemEntries(path10) {
12370
+ function getAccessibleFileSystemEntries(path11) {
12371
12371
  try {
12372
- const entries = _fs.readdirSync(path10 || ".", { withFileTypes: true });
12372
+ const entries = _fs.readdirSync(path11 || ".", { withFileTypes: true });
12373
12373
  const files = [];
12374
12374
  const directories = [];
12375
12375
  for (const dirent of entries) {
@@ -12379,7 +12379,7 @@ ${lanes.join("\n")}
12379
12379
  }
12380
12380
  let stat;
12381
12381
  if (typeof dirent === "string" || dirent.isSymbolicLink()) {
12382
- const name = combinePaths(path10, entry);
12382
+ const name = combinePaths(path11, entry);
12383
12383
  stat = statSync2(name);
12384
12384
  if (!stat) {
12385
12385
  continue;
@@ -12400,11 +12400,11 @@ ${lanes.join("\n")}
12400
12400
  return emptyFileSystemEntries;
12401
12401
  }
12402
12402
  }
12403
- function readDirectory(path10, extensions, excludes, includes, depth) {
12404
- return matchFiles(path10, extensions, excludes, includes, useCaseSensitiveFileNames2, process.cwd(), depth, getAccessibleFileSystemEntries, realpath);
12403
+ function readDirectory(path11, extensions, excludes, includes, depth) {
12404
+ return matchFiles(path11, extensions, excludes, includes, useCaseSensitiveFileNames2, process.cwd(), depth, getAccessibleFileSystemEntries, realpath);
12405
12405
  }
12406
- function fileSystemEntryExists(path10, entryKind) {
12407
- const stat = statSync2(path10);
12406
+ function fileSystemEntryExists(path11, entryKind) {
12407
+ const stat = statSync2(path11);
12408
12408
  if (!stat) {
12409
12409
  return false;
12410
12410
  }
@@ -12417,47 +12417,47 @@ ${lanes.join("\n")}
12417
12417
  return false;
12418
12418
  }
12419
12419
  }
12420
- function fileExists(path10) {
12420
+ function fileExists(path11) {
12421
12421
  return fileSystemEntryExists(
12422
- path10,
12422
+ path11,
12423
12423
  0
12424
12424
  /* File */
12425
12425
  );
12426
12426
  }
12427
- function directoryExists(path10) {
12427
+ function directoryExists(path11) {
12428
12428
  return fileSystemEntryExists(
12429
- path10,
12429
+ path11,
12430
12430
  1
12431
12431
  /* Directory */
12432
12432
  );
12433
12433
  }
12434
- function getDirectories(path10) {
12435
- return getAccessibleFileSystemEntries(path10).directories.slice();
12434
+ function getDirectories(path11) {
12435
+ return getAccessibleFileSystemEntries(path11).directories.slice();
12436
12436
  }
12437
- function fsRealPathHandlingLongPath(path10) {
12438
- return path10.length < 260 ? _fs.realpathSync.native(path10) : _fs.realpathSync(path10);
12437
+ function fsRealPathHandlingLongPath(path11) {
12438
+ return path11.length < 260 ? _fs.realpathSync.native(path11) : _fs.realpathSync(path11);
12439
12439
  }
12440
- function realpath(path10) {
12440
+ function realpath(path11) {
12441
12441
  try {
12442
- return fsRealpath(path10);
12442
+ return fsRealpath(path11);
12443
12443
  } catch {
12444
- return path10;
12444
+ return path11;
12445
12445
  }
12446
12446
  }
12447
- function getModifiedTime3(path10) {
12447
+ function getModifiedTime3(path11) {
12448
12448
  var _a;
12449
- return (_a = statSync2(path10)) == null ? void 0 : _a.mtime;
12449
+ return (_a = statSync2(path11)) == null ? void 0 : _a.mtime;
12450
12450
  }
12451
- function setModifiedTime(path10, time) {
12451
+ function setModifiedTime(path11, time) {
12452
12452
  try {
12453
- _fs.utimesSync(path10, time, time);
12453
+ _fs.utimesSync(path11, time, time);
12454
12454
  } catch {
12455
12455
  return;
12456
12456
  }
12457
12457
  }
12458
- function deleteFile(path10) {
12458
+ function deleteFile(path11) {
12459
12459
  try {
12460
- return _fs.unlinkSync(path10);
12460
+ return _fs.unlinkSync(path11);
12461
12461
  } catch {
12462
12462
  return;
12463
12463
  }
@@ -12497,41 +12497,41 @@ ${lanes.join("\n")}
12497
12497
  function isAnyDirectorySeparator(charCode) {
12498
12498
  return charCode === 47 || charCode === 92;
12499
12499
  }
12500
- function isUrl(path10) {
12501
- return getEncodedRootLength(path10) < 0;
12500
+ function isUrl(path11) {
12501
+ return getEncodedRootLength(path11) < 0;
12502
12502
  }
12503
- function isRootedDiskPath(path10) {
12504
- return getEncodedRootLength(path10) > 0;
12503
+ function isRootedDiskPath(path11) {
12504
+ return getEncodedRootLength(path11) > 0;
12505
12505
  }
12506
- function isDiskPathRoot(path10) {
12507
- const rootLength = getEncodedRootLength(path10);
12508
- return rootLength > 0 && rootLength === path10.length;
12506
+ function isDiskPathRoot(path11) {
12507
+ const rootLength = getEncodedRootLength(path11);
12508
+ return rootLength > 0 && rootLength === path11.length;
12509
12509
  }
12510
- function pathIsAbsolute(path10) {
12511
- return getEncodedRootLength(path10) !== 0;
12510
+ function pathIsAbsolute(path11) {
12511
+ return getEncodedRootLength(path11) !== 0;
12512
12512
  }
12513
- function pathIsRelative(path10) {
12514
- return /^\.\.?(?:$|[\\/])/.test(path10);
12513
+ function pathIsRelative(path11) {
12514
+ return /^\.\.?(?:$|[\\/])/.test(path11);
12515
12515
  }
12516
- function pathIsBareSpecifier(path10) {
12517
- return !pathIsAbsolute(path10) && !pathIsRelative(path10);
12516
+ function pathIsBareSpecifier(path11) {
12517
+ return !pathIsAbsolute(path11) && !pathIsRelative(path11);
12518
12518
  }
12519
12519
  function hasExtension(fileName) {
12520
12520
  return getBaseFileName(fileName).includes(".");
12521
12521
  }
12522
- function fileExtensionIs(path10, extension) {
12523
- return path10.length > extension.length && endsWith(path10, extension);
12522
+ function fileExtensionIs(path11, extension) {
12523
+ return path11.length > extension.length && endsWith(path11, extension);
12524
12524
  }
12525
- function fileExtensionIsOneOf(path10, extensions) {
12525
+ function fileExtensionIsOneOf(path11, extensions) {
12526
12526
  for (const extension of extensions) {
12527
- if (fileExtensionIs(path10, extension)) {
12527
+ if (fileExtensionIs(path11, extension)) {
12528
12528
  return true;
12529
12529
  }
12530
12530
  }
12531
12531
  return false;
12532
12532
  }
12533
- function hasTrailingDirectorySeparator(path10) {
12534
- return path10.length > 0 && isAnyDirectorySeparator(path10.charCodeAt(path10.length - 1));
12533
+ function hasTrailingDirectorySeparator(path11) {
12534
+ return path11.length > 0 && isAnyDirectorySeparator(path11.charCodeAt(path11.length - 1));
12535
12535
  }
12536
12536
  function isVolumeCharacter(charCode) {
12537
12537
  return charCode >= 97 && charCode <= 122 || charCode >= 65 && charCode <= 90;
@@ -12545,111 +12545,111 @@ ${lanes.join("\n")}
12545
12545
  }
12546
12546
  return -1;
12547
12547
  }
12548
- function getEncodedRootLength(path10) {
12549
- if (!path10) return 0;
12550
- const ch0 = path10.charCodeAt(0);
12548
+ function getEncodedRootLength(path11) {
12549
+ if (!path11) return 0;
12550
+ const ch0 = path11.charCodeAt(0);
12551
12551
  if (ch0 === 47 || ch0 === 92) {
12552
- if (path10.charCodeAt(1) !== ch0) return 1;
12553
- const p1 = path10.indexOf(ch0 === 47 ? directorySeparator : altDirectorySeparator, 2);
12554
- if (p1 < 0) return path10.length;
12552
+ if (path11.charCodeAt(1) !== ch0) return 1;
12553
+ const p1 = path11.indexOf(ch0 === 47 ? directorySeparator : altDirectorySeparator, 2);
12554
+ if (p1 < 0) return path11.length;
12555
12555
  return p1 + 1;
12556
12556
  }
12557
- if (isVolumeCharacter(ch0) && path10.charCodeAt(1) === 58) {
12558
- const ch2 = path10.charCodeAt(2);
12557
+ if (isVolumeCharacter(ch0) && path11.charCodeAt(1) === 58) {
12558
+ const ch2 = path11.charCodeAt(2);
12559
12559
  if (ch2 === 47 || ch2 === 92) return 3;
12560
- if (path10.length === 2) return 2;
12560
+ if (path11.length === 2) return 2;
12561
12561
  }
12562
- const schemeEnd = path10.indexOf(urlSchemeSeparator);
12562
+ const schemeEnd = path11.indexOf(urlSchemeSeparator);
12563
12563
  if (schemeEnd !== -1) {
12564
12564
  const authorityStart = schemeEnd + urlSchemeSeparator.length;
12565
- const authorityEnd = path10.indexOf(directorySeparator, authorityStart);
12565
+ const authorityEnd = path11.indexOf(directorySeparator, authorityStart);
12566
12566
  if (authorityEnd !== -1) {
12567
- const scheme = path10.slice(0, schemeEnd);
12568
- const authority = path10.slice(authorityStart, authorityEnd);
12569
- if (scheme === "file" && (authority === "" || authority === "localhost") && isVolumeCharacter(path10.charCodeAt(authorityEnd + 1))) {
12570
- const volumeSeparatorEnd = getFileUrlVolumeSeparatorEnd(path10, authorityEnd + 2);
12567
+ const scheme = path11.slice(0, schemeEnd);
12568
+ const authority = path11.slice(authorityStart, authorityEnd);
12569
+ if (scheme === "file" && (authority === "" || authority === "localhost") && isVolumeCharacter(path11.charCodeAt(authorityEnd + 1))) {
12570
+ const volumeSeparatorEnd = getFileUrlVolumeSeparatorEnd(path11, authorityEnd + 2);
12571
12571
  if (volumeSeparatorEnd !== -1) {
12572
- if (path10.charCodeAt(volumeSeparatorEnd) === 47) {
12572
+ if (path11.charCodeAt(volumeSeparatorEnd) === 47) {
12573
12573
  return ~(volumeSeparatorEnd + 1);
12574
12574
  }
12575
- if (volumeSeparatorEnd === path10.length) {
12575
+ if (volumeSeparatorEnd === path11.length) {
12576
12576
  return ~volumeSeparatorEnd;
12577
12577
  }
12578
12578
  }
12579
12579
  }
12580
12580
  return ~(authorityEnd + 1);
12581
12581
  }
12582
- return ~path10.length;
12582
+ return ~path11.length;
12583
12583
  }
12584
12584
  return 0;
12585
12585
  }
12586
- function getRootLength(path10) {
12587
- const rootLength = getEncodedRootLength(path10);
12586
+ function getRootLength(path11) {
12587
+ const rootLength = getEncodedRootLength(path11);
12588
12588
  return rootLength < 0 ? ~rootLength : rootLength;
12589
12589
  }
12590
- function getDirectoryPath(path10) {
12591
- path10 = normalizeSlashes(path10);
12592
- const rootLength = getRootLength(path10);
12593
- if (rootLength === path10.length) return path10;
12594
- path10 = removeTrailingDirectorySeparator(path10);
12595
- return path10.slice(0, Math.max(rootLength, path10.lastIndexOf(directorySeparator)));
12596
- }
12597
- function getBaseFileName(path10, extensions, ignoreCase) {
12598
- path10 = normalizeSlashes(path10);
12599
- const rootLength = getRootLength(path10);
12600
- if (rootLength === path10.length) return "";
12601
- path10 = removeTrailingDirectorySeparator(path10);
12602
- const name = path10.slice(Math.max(getRootLength(path10), path10.lastIndexOf(directorySeparator) + 1));
12590
+ function getDirectoryPath(path11) {
12591
+ path11 = normalizeSlashes(path11);
12592
+ const rootLength = getRootLength(path11);
12593
+ if (rootLength === path11.length) return path11;
12594
+ path11 = removeTrailingDirectorySeparator(path11);
12595
+ return path11.slice(0, Math.max(rootLength, path11.lastIndexOf(directorySeparator)));
12596
+ }
12597
+ function getBaseFileName(path11, extensions, ignoreCase) {
12598
+ path11 = normalizeSlashes(path11);
12599
+ const rootLength = getRootLength(path11);
12600
+ if (rootLength === path11.length) return "";
12601
+ path11 = removeTrailingDirectorySeparator(path11);
12602
+ const name = path11.slice(Math.max(getRootLength(path11), path11.lastIndexOf(directorySeparator) + 1));
12603
12603
  const extension = extensions !== void 0 && ignoreCase !== void 0 ? getAnyExtensionFromPath(name, extensions, ignoreCase) : void 0;
12604
12604
  return extension ? name.slice(0, name.length - extension.length) : name;
12605
12605
  }
12606
- function tryGetExtensionFromPath(path10, extension, stringEqualityComparer) {
12606
+ function tryGetExtensionFromPath(path11, extension, stringEqualityComparer) {
12607
12607
  if (!startsWith(extension, ".")) extension = "." + extension;
12608
- if (path10.length >= extension.length && path10.charCodeAt(path10.length - extension.length) === 46) {
12609
- const pathExtension = path10.slice(path10.length - extension.length);
12608
+ if (path11.length >= extension.length && path11.charCodeAt(path11.length - extension.length) === 46) {
12609
+ const pathExtension = path11.slice(path11.length - extension.length);
12610
12610
  if (stringEqualityComparer(pathExtension, extension)) {
12611
12611
  return pathExtension;
12612
12612
  }
12613
12613
  }
12614
12614
  }
12615
- function getAnyExtensionFromPathWorker(path10, extensions, stringEqualityComparer) {
12615
+ function getAnyExtensionFromPathWorker(path11, extensions, stringEqualityComparer) {
12616
12616
  if (typeof extensions === "string") {
12617
- return tryGetExtensionFromPath(path10, extensions, stringEqualityComparer) || "";
12617
+ return tryGetExtensionFromPath(path11, extensions, stringEqualityComparer) || "";
12618
12618
  }
12619
12619
  for (const extension of extensions) {
12620
- const result = tryGetExtensionFromPath(path10, extension, stringEqualityComparer);
12620
+ const result = tryGetExtensionFromPath(path11, extension, stringEqualityComparer);
12621
12621
  if (result) return result;
12622
12622
  }
12623
12623
  return "";
12624
12624
  }
12625
- function getAnyExtensionFromPath(path10, extensions, ignoreCase) {
12625
+ function getAnyExtensionFromPath(path11, extensions, ignoreCase) {
12626
12626
  if (extensions) {
12627
- return getAnyExtensionFromPathWorker(removeTrailingDirectorySeparator(path10), extensions, ignoreCase ? equateStringsCaseInsensitive : equateStringsCaseSensitive);
12627
+ return getAnyExtensionFromPathWorker(removeTrailingDirectorySeparator(path11), extensions, ignoreCase ? equateStringsCaseInsensitive : equateStringsCaseSensitive);
12628
12628
  }
12629
- const baseFileName = getBaseFileName(path10);
12629
+ const baseFileName = getBaseFileName(path11);
12630
12630
  const extensionIndex = baseFileName.lastIndexOf(".");
12631
12631
  if (extensionIndex >= 0) {
12632
12632
  return baseFileName.substring(extensionIndex);
12633
12633
  }
12634
12634
  return "";
12635
12635
  }
12636
- function pathComponents(path10, rootLength) {
12637
- const root = path10.substring(0, rootLength);
12638
- const rest = path10.substring(rootLength).split(directorySeparator);
12636
+ function pathComponents(path11, rootLength) {
12637
+ const root = path11.substring(0, rootLength);
12638
+ const rest = path11.substring(rootLength).split(directorySeparator);
12639
12639
  if (rest.length && !lastOrUndefined(rest)) rest.pop();
12640
12640
  return [root, ...rest];
12641
12641
  }
12642
- function getPathComponents(path10, currentDirectory = "") {
12643
- path10 = combinePaths(currentDirectory, path10);
12644
- return pathComponents(path10, getRootLength(path10));
12642
+ function getPathComponents(path11, currentDirectory = "") {
12643
+ path11 = combinePaths(currentDirectory, path11);
12644
+ return pathComponents(path11, getRootLength(path11));
12645
12645
  }
12646
12646
  function getPathFromPathComponents(pathComponents2, length2) {
12647
12647
  if (pathComponents2.length === 0) return "";
12648
12648
  const root = pathComponents2[0] && ensureTrailingDirectorySeparator(pathComponents2[0]);
12649
12649
  return root + pathComponents2.slice(1, length2).join(directorySeparator);
12650
12650
  }
12651
- function normalizeSlashes(path10) {
12652
- return path10.includes("\\") ? path10.replace(backslashRegExp, directorySeparator) : path10;
12651
+ function normalizeSlashes(path11) {
12652
+ return path11.includes("\\") ? path11.replace(backslashRegExp, directorySeparator) : path11;
12653
12653
  }
12654
12654
  function reducePathComponents(components) {
12655
12655
  if (!some(components)) return [];
@@ -12670,39 +12670,39 @@ ${lanes.join("\n")}
12670
12670
  }
12671
12671
  return reduced;
12672
12672
  }
12673
- function combinePaths(path10, ...paths) {
12674
- if (path10) path10 = normalizeSlashes(path10);
12673
+ function combinePaths(path11, ...paths) {
12674
+ if (path11) path11 = normalizeSlashes(path11);
12675
12675
  for (let relativePath of paths) {
12676
12676
  if (!relativePath) continue;
12677
12677
  relativePath = normalizeSlashes(relativePath);
12678
- if (!path10 || getRootLength(relativePath) !== 0) {
12679
- path10 = relativePath;
12678
+ if (!path11 || getRootLength(relativePath) !== 0) {
12679
+ path11 = relativePath;
12680
12680
  } else {
12681
- path10 = ensureTrailingDirectorySeparator(path10) + relativePath;
12681
+ path11 = ensureTrailingDirectorySeparator(path11) + relativePath;
12682
12682
  }
12683
12683
  }
12684
- return path10;
12684
+ return path11;
12685
12685
  }
12686
- function resolvePath(path10, ...paths) {
12687
- return normalizePath(some(paths) ? combinePaths(path10, ...paths) : normalizeSlashes(path10));
12686
+ function resolvePath(path11, ...paths) {
12687
+ return normalizePath(some(paths) ? combinePaths(path11, ...paths) : normalizeSlashes(path11));
12688
12688
  }
12689
- function getNormalizedPathComponents(path10, currentDirectory) {
12690
- return reducePathComponents(getPathComponents(path10, currentDirectory));
12689
+ function getNormalizedPathComponents(path11, currentDirectory) {
12690
+ return reducePathComponents(getPathComponents(path11, currentDirectory));
12691
12691
  }
12692
- function getNormalizedAbsolutePath(path10, currentDirectory) {
12693
- let rootLength = getRootLength(path10);
12692
+ function getNormalizedAbsolutePath(path11, currentDirectory) {
12693
+ let rootLength = getRootLength(path11);
12694
12694
  if (rootLength === 0 && currentDirectory) {
12695
- path10 = combinePaths(currentDirectory, path10);
12696
- rootLength = getRootLength(path10);
12695
+ path11 = combinePaths(currentDirectory, path11);
12696
+ rootLength = getRootLength(path11);
12697
12697
  } else {
12698
- path10 = normalizeSlashes(path10);
12698
+ path11 = normalizeSlashes(path11);
12699
12699
  }
12700
- const simpleNormalized = simpleNormalizePath(path10);
12700
+ const simpleNormalized = simpleNormalizePath(path11);
12701
12701
  if (simpleNormalized !== void 0) {
12702
12702
  return simpleNormalized.length > rootLength ? removeTrailingDirectorySeparator(simpleNormalized) : simpleNormalized;
12703
12703
  }
12704
- const length2 = path10.length;
12705
- const root = path10.substring(0, rootLength);
12704
+ const length2 = path11.length;
12705
+ const root = path11.substring(0, rootLength);
12706
12706
  let normalized;
12707
12707
  let index = rootLength;
12708
12708
  let segmentStart = index;
@@ -12710,23 +12710,23 @@ ${lanes.join("\n")}
12710
12710
  let seenNonDotDotSegment = rootLength !== 0;
12711
12711
  while (index < length2) {
12712
12712
  segmentStart = index;
12713
- let ch = path10.charCodeAt(index);
12713
+ let ch = path11.charCodeAt(index);
12714
12714
  while (ch === 47 && index + 1 < length2) {
12715
12715
  index++;
12716
- ch = path10.charCodeAt(index);
12716
+ ch = path11.charCodeAt(index);
12717
12717
  }
12718
12718
  if (index > segmentStart) {
12719
- normalized ?? (normalized = path10.substring(0, segmentStart - 1));
12719
+ normalized ?? (normalized = path11.substring(0, segmentStart - 1));
12720
12720
  segmentStart = index;
12721
12721
  }
12722
- let segmentEnd = path10.indexOf(directorySeparator, index + 1);
12722
+ let segmentEnd = path11.indexOf(directorySeparator, index + 1);
12723
12723
  if (segmentEnd === -1) {
12724
12724
  segmentEnd = length2;
12725
12725
  }
12726
12726
  const segmentLength = segmentEnd - segmentStart;
12727
- if (segmentLength === 1 && path10.charCodeAt(index) === 46) {
12728
- normalized ?? (normalized = path10.substring(0, normalizedUpTo));
12729
- } else if (segmentLength === 2 && path10.charCodeAt(index) === 46 && path10.charCodeAt(index + 1) === 46) {
12727
+ if (segmentLength === 1 && path11.charCodeAt(index) === 46) {
12728
+ normalized ?? (normalized = path11.substring(0, normalizedUpTo));
12729
+ } else if (segmentLength === 2 && path11.charCodeAt(index) === 46 && path11.charCodeAt(index + 1) === 46) {
12730
12730
  if (!seenNonDotDotSegment) {
12731
12731
  if (normalized !== void 0) {
12732
12732
  normalized += normalized.length === rootLength ? ".." : "/..";
@@ -12735,9 +12735,9 @@ ${lanes.join("\n")}
12735
12735
  }
12736
12736
  } else if (normalized === void 0) {
12737
12737
  if (normalizedUpTo - 2 >= 0) {
12738
- normalized = path10.substring(0, Math.max(rootLength, path10.lastIndexOf(directorySeparator, normalizedUpTo - 2)));
12738
+ normalized = path11.substring(0, Math.max(rootLength, path11.lastIndexOf(directorySeparator, normalizedUpTo - 2)));
12739
12739
  } else {
12740
- normalized = path10.substring(0, normalizedUpTo);
12740
+ normalized = path11.substring(0, normalizedUpTo);
12741
12741
  }
12742
12742
  } else {
12743
12743
  const lastSlash = normalized.lastIndexOf(directorySeparator);
@@ -12755,36 +12755,36 @@ ${lanes.join("\n")}
12755
12755
  normalized += directorySeparator;
12756
12756
  }
12757
12757
  seenNonDotDotSegment = true;
12758
- normalized += path10.substring(segmentStart, segmentEnd);
12758
+ normalized += path11.substring(segmentStart, segmentEnd);
12759
12759
  } else {
12760
12760
  seenNonDotDotSegment = true;
12761
12761
  normalizedUpTo = segmentEnd;
12762
12762
  }
12763
12763
  index = segmentEnd + 1;
12764
12764
  }
12765
- return normalized ?? (length2 > rootLength ? removeTrailingDirectorySeparator(path10) : path10);
12765
+ return normalized ?? (length2 > rootLength ? removeTrailingDirectorySeparator(path11) : path11);
12766
12766
  }
12767
- function normalizePath(path10) {
12768
- path10 = normalizeSlashes(path10);
12769
- let normalized = simpleNormalizePath(path10);
12767
+ function normalizePath(path11) {
12768
+ path11 = normalizeSlashes(path11);
12769
+ let normalized = simpleNormalizePath(path11);
12770
12770
  if (normalized !== void 0) {
12771
12771
  return normalized;
12772
12772
  }
12773
- normalized = getNormalizedAbsolutePath(path10, "");
12774
- return normalized && hasTrailingDirectorySeparator(path10) ? ensureTrailingDirectorySeparator(normalized) : normalized;
12773
+ normalized = getNormalizedAbsolutePath(path11, "");
12774
+ return normalized && hasTrailingDirectorySeparator(path11) ? ensureTrailingDirectorySeparator(normalized) : normalized;
12775
12775
  }
12776
- function simpleNormalizePath(path10) {
12777
- if (!relativePathSegmentRegExp.test(path10)) {
12778
- return path10;
12776
+ function simpleNormalizePath(path11) {
12777
+ if (!relativePathSegmentRegExp.test(path11)) {
12778
+ return path11;
12779
12779
  }
12780
- let simplified = path10.replace(/\/\.\//g, "/");
12780
+ let simplified = path11.replace(/\/\.\//g, "/");
12781
12781
  if (simplified.startsWith("./")) {
12782
12782
  simplified = simplified.slice(2);
12783
12783
  }
12784
- if (simplified !== path10) {
12785
- path10 = simplified;
12786
- if (!relativePathSegmentRegExp.test(path10)) {
12787
- return path10;
12784
+ if (simplified !== path11) {
12785
+ path11 = simplified;
12786
+ if (!relativePathSegmentRegExp.test(path11)) {
12787
+ return path11;
12788
12788
  }
12789
12789
  }
12790
12790
  return void 0;
@@ -12800,31 +12800,31 @@ ${lanes.join("\n")}
12800
12800
  const nonCanonicalizedPath = isRootedDiskPath(fileName) ? normalizePath(fileName) : getNormalizedAbsolutePath(fileName, basePath);
12801
12801
  return getCanonicalFileName(nonCanonicalizedPath);
12802
12802
  }
12803
- function removeTrailingDirectorySeparator(path10) {
12804
- if (hasTrailingDirectorySeparator(path10)) {
12805
- return path10.substr(0, path10.length - 1);
12803
+ function removeTrailingDirectorySeparator(path11) {
12804
+ if (hasTrailingDirectorySeparator(path11)) {
12805
+ return path11.substr(0, path11.length - 1);
12806
12806
  }
12807
- return path10;
12807
+ return path11;
12808
12808
  }
12809
- function ensureTrailingDirectorySeparator(path10) {
12810
- if (!hasTrailingDirectorySeparator(path10)) {
12811
- return path10 + directorySeparator;
12809
+ function ensureTrailingDirectorySeparator(path11) {
12810
+ if (!hasTrailingDirectorySeparator(path11)) {
12811
+ return path11 + directorySeparator;
12812
12812
  }
12813
- return path10;
12813
+ return path11;
12814
12814
  }
12815
- function ensurePathIsNonModuleName(path10) {
12816
- return !pathIsAbsolute(path10) && !pathIsRelative(path10) ? "./" + path10 : path10;
12815
+ function ensurePathIsNonModuleName(path11) {
12816
+ return !pathIsAbsolute(path11) && !pathIsRelative(path11) ? "./" + path11 : path11;
12817
12817
  }
12818
- function changeAnyExtension(path10, ext, extensions, ignoreCase) {
12819
- const pathext = extensions !== void 0 && ignoreCase !== void 0 ? getAnyExtensionFromPath(path10, extensions, ignoreCase) : getAnyExtensionFromPath(path10);
12820
- return pathext ? path10.slice(0, path10.length - pathext.length) + (startsWith(ext, ".") ? ext : "." + ext) : path10;
12818
+ function changeAnyExtension(path11, ext, extensions, ignoreCase) {
12819
+ const pathext = extensions !== void 0 && ignoreCase !== void 0 ? getAnyExtensionFromPath(path11, extensions, ignoreCase) : getAnyExtensionFromPath(path11);
12820
+ return pathext ? path11.slice(0, path11.length - pathext.length) + (startsWith(ext, ".") ? ext : "." + ext) : path11;
12821
12821
  }
12822
- function changeFullExtension(path10, newExtension) {
12823
- const declarationExtension = getDeclarationFileExtension(path10);
12822
+ function changeFullExtension(path11, newExtension) {
12823
+ const declarationExtension = getDeclarationFileExtension(path11);
12824
12824
  if (declarationExtension) {
12825
- return path10.slice(0, path10.length - declarationExtension.length) + (startsWith(newExtension, ".") ? newExtension : "." + newExtension);
12825
+ return path11.slice(0, path11.length - declarationExtension.length) + (startsWith(newExtension, ".") ? newExtension : "." + newExtension);
12826
12826
  }
12827
- return changeAnyExtension(path10, newExtension);
12827
+ return changeAnyExtension(path11, newExtension);
12828
12828
  }
12829
12829
  var relativePathSegmentRegExp = /\/\/|(?:^|\/)\.\.?(?:$|\/)/;
12830
12830
  function comparePathsWorker(a, b, componentComparer) {
@@ -24277,8 +24277,8 @@ ${lanes.join("\n")}
24277
24277
  function getResolvedExternalModuleName(host, file, referenceFile) {
24278
24278
  return file.moduleName || getExternalModuleNameFromPath(host, file.fileName, referenceFile && referenceFile.fileName);
24279
24279
  }
24280
- function getCanonicalAbsolutePath(host, path10) {
24281
- return host.getCanonicalFileName(getNormalizedAbsolutePath(path10, host.getCurrentDirectory()));
24280
+ function getCanonicalAbsolutePath(host, path11) {
24281
+ return host.getCanonicalFileName(getNormalizedAbsolutePath(path11, host.getCurrentDirectory()));
24282
24282
  }
24283
24283
  function getExternalModuleNameFromDeclaration(host, resolver, declaration) {
24284
24284
  const file = resolver.getExternalModuleFileFromDeclaration(declaration);
@@ -24321,20 +24321,20 @@ ${lanes.join("\n")}
24321
24321
  }
24322
24322
  function getDeclarationEmitOutputFilePathWorker(fileName, options, host) {
24323
24323
  const outputDir = options.declarationDir || options.outDir;
24324
- const path10 = outputDir ? getSourceFilePathInNewDirWorker(fileName, outputDir, host.getCurrentDirectory(), host.getCommonSourceDirectory(), (f) => host.getCanonicalFileName(f)) : fileName;
24325
- const declarationExtension = getDeclarationEmitExtensionForPath(path10);
24326
- return removeFileExtension(path10) + declarationExtension;
24324
+ const path11 = outputDir ? getSourceFilePathInNewDirWorker(fileName, outputDir, host.getCurrentDirectory(), host.getCommonSourceDirectory(), (f) => host.getCanonicalFileName(f)) : fileName;
24325
+ const declarationExtension = getDeclarationEmitExtensionForPath(path11);
24326
+ return removeFileExtension(path11) + declarationExtension;
24327
24327
  }
24328
- function getDeclarationEmitExtensionForPath(path10) {
24329
- return fileExtensionIsOneOf(path10, [
24328
+ function getDeclarationEmitExtensionForPath(path11) {
24329
+ return fileExtensionIsOneOf(path11, [
24330
24330
  ".mjs",
24331
24331
  ".mts"
24332
24332
  /* Mts */
24333
- ]) ? ".d.mts" : fileExtensionIsOneOf(path10, [
24333
+ ]) ? ".d.mts" : fileExtensionIsOneOf(path11, [
24334
24334
  ".cjs",
24335
24335
  ".cts"
24336
24336
  /* Cts */
24337
- ]) ? ".d.cts" : fileExtensionIsOneOf(path10, [
24337
+ ]) ? ".d.cts" : fileExtensionIsOneOf(path11, [
24338
24338
  ".json"
24339
24339
  /* Json */
24340
24340
  ]) ? `.d.json.ts` : (
@@ -24342,8 +24342,8 @@ ${lanes.join("\n")}
24342
24342
  ".d.ts"
24343
24343
  );
24344
24344
  }
24345
- function getPossibleOriginalInputExtensionForExtension(path10) {
24346
- return fileExtensionIsOneOf(path10, [
24345
+ function getPossibleOriginalInputExtensionForExtension(path11) {
24346
+ return fileExtensionIsOneOf(path11, [
24347
24347
  ".d.mts",
24348
24348
  ".mjs",
24349
24349
  ".mts"
@@ -24352,7 +24352,7 @@ ${lanes.join("\n")}
24352
24352
  ".mts",
24353
24353
  ".mjs"
24354
24354
  /* Mjs */
24355
- ] : fileExtensionIsOneOf(path10, [
24355
+ ] : fileExtensionIsOneOf(path11, [
24356
24356
  ".d.cts",
24357
24357
  ".cjs",
24358
24358
  ".cts"
@@ -24361,7 +24361,7 @@ ${lanes.join("\n")}
24361
24361
  ".cts",
24362
24362
  ".cjs"
24363
24363
  /* Cjs */
24364
- ] : fileExtensionIsOneOf(path10, [`.d.json.ts`]) ? [
24364
+ ] : fileExtensionIsOneOf(path11, [`.d.json.ts`]) ? [
24365
24365
  ".json"
24366
24366
  /* Json */
24367
24367
  ] : [
@@ -24446,12 +24446,12 @@ ${lanes.join("\n")}
24446
24446
  createDirectory(directoryPath);
24447
24447
  }
24448
24448
  }
24449
- function writeFileEnsuringDirectories(path10, data, writeByteOrderMark, writeFile22, createDirectory, directoryExists) {
24449
+ function writeFileEnsuringDirectories(path11, data, writeByteOrderMark, writeFile22, createDirectory, directoryExists) {
24450
24450
  try {
24451
- writeFile22(path10, data, writeByteOrderMark);
24451
+ writeFile22(path11, data, writeByteOrderMark);
24452
24452
  } catch {
24453
- ensureDirectoriesExist(getDirectoryPath(normalizePath(path10)), createDirectory, directoryExists);
24454
- writeFile22(path10, data, writeByteOrderMark);
24453
+ ensureDirectoriesExist(getDirectoryPath(normalizePath(path11)), createDirectory, directoryExists);
24454
+ writeFile22(path11, data, writeByteOrderMark);
24455
24455
  }
24456
24456
  }
24457
24457
  function getLineOfLocalPosition(sourceFile, pos) {
@@ -25151,20 +25151,20 @@ ${lanes.join("\n")}
25151
25151
  }
25152
25152
  return getStringFromExpandedCharCodes(expandedCharCodes);
25153
25153
  }
25154
- function readJsonOrUndefined(path10, hostOrText) {
25155
- const jsonText = isString(hostOrText) ? hostOrText : hostOrText.readFile(path10);
25154
+ function readJsonOrUndefined(path11, hostOrText) {
25155
+ const jsonText = isString(hostOrText) ? hostOrText : hostOrText.readFile(path11);
25156
25156
  if (!jsonText) return void 0;
25157
25157
  let result = tryParseJson(jsonText);
25158
25158
  if (result === void 0) {
25159
- const looseResult = parseConfigFileTextToJson(path10, jsonText);
25159
+ const looseResult = parseConfigFileTextToJson(path11, jsonText);
25160
25160
  if (!looseResult.error) {
25161
25161
  result = looseResult.config;
25162
25162
  }
25163
25163
  }
25164
25164
  return result;
25165
25165
  }
25166
- function readJson2(path10, host) {
25167
- return readJsonOrUndefined(path10, host) || {};
25166
+ function readJson2(path11, host) {
25167
+ return readJsonOrUndefined(path11, host) || {};
25168
25168
  }
25169
25169
  function tryParseJson(text) {
25170
25170
  try {
@@ -26314,7 +26314,7 @@ ${lanes.join("\n")}
26314
26314
  getSymlinkedFiles: () => symlinkedFiles,
26315
26315
  getSymlinkedDirectories: () => symlinkedDirectories,
26316
26316
  getSymlinkedDirectoriesByRealpath: () => symlinkedDirectoriesByRealpath,
26317
- setSymlinkedFile: (path10, real) => (symlinkedFiles || (symlinkedFiles = /* @__PURE__ */ new Map())).set(path10, real),
26317
+ setSymlinkedFile: (path11, real) => (symlinkedFiles || (symlinkedFiles = /* @__PURE__ */ new Map())).set(path11, real),
26318
26318
  setSymlinkedDirectory: (symlink, real) => {
26319
26319
  let symlinkPath = toPath(symlink, cwd, getCanonicalFileName);
26320
26320
  if (!containsIgnoredPath(symlinkPath)) {
@@ -26374,8 +26374,8 @@ ${lanes.join("\n")}
26374
26374
  function stripLeadingDirectorySeparator(s) {
26375
26375
  return isAnyDirectorySeparator(s.charCodeAt(0)) ? s.slice(1) : void 0;
26376
26376
  }
26377
- function tryRemoveDirectoryPrefix(path10, dirPath, getCanonicalFileName) {
26378
- const withoutPrefix = tryRemovePrefix(path10, dirPath, getCanonicalFileName);
26377
+ function tryRemoveDirectoryPrefix(path11, dirPath, getCanonicalFileName) {
26378
+ const withoutPrefix = tryRemovePrefix(path11, dirPath, getCanonicalFileName);
26379
26379
  return withoutPrefix === void 0 ? void 0 : stripLeadingDirectorySeparator(withoutPrefix);
26380
26380
  }
26381
26381
  var reservedCharacterPattern = /[^\w\s/]/g;
@@ -26501,25 +26501,25 @@ ${lanes.join("\n")}
26501
26501
  function replaceWildcardCharacter(match, singleAsteriskRegexFragment) {
26502
26502
  return match === "*" ? singleAsteriskRegexFragment : match === "?" ? "[^/]" : "\\" + match;
26503
26503
  }
26504
- function getFileMatcherPatterns(path10, excludes, includes, useCaseSensitiveFileNames2, currentDirectory) {
26505
- path10 = normalizePath(path10);
26504
+ function getFileMatcherPatterns(path11, excludes, includes, useCaseSensitiveFileNames2, currentDirectory) {
26505
+ path11 = normalizePath(path11);
26506
26506
  currentDirectory = normalizePath(currentDirectory);
26507
- const absolutePath = combinePaths(currentDirectory, path10);
26507
+ const absolutePath = combinePaths(currentDirectory, path11);
26508
26508
  return {
26509
26509
  includeFilePatterns: map(getRegularExpressionsForWildcards(includes, absolutePath, "files"), (pattern) => `^${pattern}$`),
26510
26510
  includeFilePattern: getRegularExpressionForWildcard(includes, absolutePath, "files"),
26511
26511
  includeDirectoryPattern: getRegularExpressionForWildcard(includes, absolutePath, "directories"),
26512
26512
  excludePattern: getRegularExpressionForWildcard(excludes, absolutePath, "exclude"),
26513
- basePaths: getBasePaths(path10, includes, useCaseSensitiveFileNames2)
26513
+ basePaths: getBasePaths(path11, includes, useCaseSensitiveFileNames2)
26514
26514
  };
26515
26515
  }
26516
26516
  function getRegexFromPattern(pattern, useCaseSensitiveFileNames2) {
26517
26517
  return new RegExp(pattern, useCaseSensitiveFileNames2 ? "" : "i");
26518
26518
  }
26519
- function matchFiles(path10, extensions, excludes, includes, useCaseSensitiveFileNames2, currentDirectory, depth, getFileSystemEntries, realpath) {
26520
- path10 = normalizePath(path10);
26519
+ function matchFiles(path11, extensions, excludes, includes, useCaseSensitiveFileNames2, currentDirectory, depth, getFileSystemEntries, realpath) {
26520
+ path11 = normalizePath(path11);
26521
26521
  currentDirectory = normalizePath(currentDirectory);
26522
- const patterns = getFileMatcherPatterns(path10, excludes, includes, useCaseSensitiveFileNames2, currentDirectory);
26522
+ const patterns = getFileMatcherPatterns(path11, excludes, includes, useCaseSensitiveFileNames2, currentDirectory);
26523
26523
  const includeFileRegexes = patterns.includeFilePatterns && patterns.includeFilePatterns.map((pattern) => getRegexFromPattern(pattern, useCaseSensitiveFileNames2));
26524
26524
  const includeDirectoryRegex = patterns.includeDirectoryPattern && getRegexFromPattern(patterns.includeDirectoryPattern, useCaseSensitiveFileNames2);
26525
26525
  const excludeRegex = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, useCaseSensitiveFileNames2);
@@ -26564,17 +26564,17 @@ ${lanes.join("\n")}
26564
26564
  }
26565
26565
  }
26566
26566
  }
26567
- function getBasePaths(path10, includes, useCaseSensitiveFileNames2) {
26568
- const basePaths = [path10];
26567
+ function getBasePaths(path11, includes, useCaseSensitiveFileNames2) {
26568
+ const basePaths = [path11];
26569
26569
  if (includes) {
26570
26570
  const includeBasePaths = [];
26571
26571
  for (const include of includes) {
26572
- const absolute = isRootedDiskPath(include) ? include : normalizePath(combinePaths(path10, include));
26572
+ const absolute = isRootedDiskPath(include) ? include : normalizePath(combinePaths(path11, include));
26573
26573
  includeBasePaths.push(getIncludeBasePath(absolute));
26574
26574
  }
26575
26575
  includeBasePaths.sort(getStringComparer(!useCaseSensitiveFileNames2));
26576
26576
  for (const includeBasePath of includeBasePaths) {
26577
- if (every(basePaths, (basePath) => !containsPath(basePath, includeBasePath, path10, !useCaseSensitiveFileNames2))) {
26577
+ if (every(basePaths, (basePath) => !containsPath(basePath, includeBasePath, path11, !useCaseSensitiveFileNames2))) {
26578
26578
  basePaths.push(includeBasePath);
26579
26579
  }
26580
26580
  }
@@ -26838,24 +26838,24 @@ ${lanes.join("\n")}
26838
26838
  ".json"
26839
26839
  /* Json */
26840
26840
  ];
26841
- function removeFileExtension(path10) {
26841
+ function removeFileExtension(path11) {
26842
26842
  for (const ext of extensionsToRemove) {
26843
- const extensionless = tryRemoveExtension(path10, ext);
26843
+ const extensionless = tryRemoveExtension(path11, ext);
26844
26844
  if (extensionless !== void 0) {
26845
26845
  return extensionless;
26846
26846
  }
26847
26847
  }
26848
- return path10;
26848
+ return path11;
26849
26849
  }
26850
- function tryRemoveExtension(path10, extension) {
26851
- return fileExtensionIs(path10, extension) ? removeExtension(path10, extension) : void 0;
26850
+ function tryRemoveExtension(path11, extension) {
26851
+ return fileExtensionIs(path11, extension) ? removeExtension(path11, extension) : void 0;
26852
26852
  }
26853
- function removeExtension(path10, extension) {
26854
- return path10.substring(0, path10.length - extension.length);
26853
+ function removeExtension(path11, extension) {
26854
+ return path11.substring(0, path11.length - extension.length);
26855
26855
  }
26856
- function changeExtension(path10, newExtension) {
26856
+ function changeExtension(path11, newExtension) {
26857
26857
  return changeAnyExtension(
26858
- path10,
26858
+ path11,
26859
26859
  newExtension,
26860
26860
  extensionsToRemove,
26861
26861
  /*ignoreCase*/
@@ -26881,8 +26881,8 @@ ${lanes.join("\n")}
26881
26881
  let matchableStringSet;
26882
26882
  let patterns;
26883
26883
  const pathList = getOwnKeys(paths);
26884
- for (const path10 of pathList) {
26885
- const patternOrStr = tryParsePattern(path10);
26884
+ for (const path11 of pathList) {
26885
+ const patternOrStr = tryParsePattern(path11);
26886
26886
  if (patternOrStr === void 0) {
26887
26887
  continue;
26888
26888
  } else if (typeof patternOrStr === "string") {
@@ -26909,15 +26909,15 @@ ${lanes.join("\n")}
26909
26909
  function resolutionExtensionIsTSOrJson(ext) {
26910
26910
  return extensionIsTS(ext) || ext === ".json";
26911
26911
  }
26912
- function extensionFromPath(path10) {
26913
- const ext = tryGetExtensionFromPath2(path10);
26914
- return ext !== void 0 ? ext : Debug.fail(`File ${path10} has unknown extension.`);
26912
+ function extensionFromPath(path11) {
26913
+ const ext = tryGetExtensionFromPath2(path11);
26914
+ return ext !== void 0 ? ext : Debug.fail(`File ${path11} has unknown extension.`);
26915
26915
  }
26916
- function isAnySupportedFileExtension(path10) {
26917
- return tryGetExtensionFromPath2(path10) !== void 0;
26916
+ function isAnySupportedFileExtension(path11) {
26917
+ return tryGetExtensionFromPath2(path11) !== void 0;
26918
26918
  }
26919
- function tryGetExtensionFromPath2(path10) {
26920
- return find(extensionsToRemove, (e) => fileExtensionIs(path10, e));
26919
+ function tryGetExtensionFromPath2(path11) {
26920
+ return find(extensionsToRemove, (e) => fileExtensionIs(path11, e));
26921
26921
  }
26922
26922
  function isCheckJsEnabledForFile(sourceFile, compilerOptions) {
26923
26923
  return sourceFile.checkJsDirective ? sourceFile.checkJsDirective.enabled : compilerOptions.checkJs;
@@ -27226,8 +27226,8 @@ ${lanes.join("\n")}
27226
27226
  return false;
27227
27227
  }
27228
27228
  }
27229
- function containsIgnoredPath(path10) {
27230
- return some(ignoredPaths, (p) => path10.includes(p));
27229
+ function containsIgnoredPath(path11) {
27230
+ return some(ignoredPaths, (p) => path11.includes(p));
27231
27231
  }
27232
27232
  function getContainingNodeArray(node) {
27233
27233
  if (!node.parent) return void 0;
@@ -47035,7 +47035,7 @@ ${lanes.join("\n")}
47035
47035
  const typeReferenceDirectives = context.typeReferenceDirectives;
47036
47036
  const libReferenceDirectives = context.libReferenceDirectives;
47037
47037
  forEach(toArray(entryOrList), (arg) => {
47038
- const { types, lib, path: path10, ["resolution-mode"]: res, preserve: _preserve } = arg.arguments;
47038
+ const { types, lib, path: path11, ["resolution-mode"]: res, preserve: _preserve } = arg.arguments;
47039
47039
  const preserve = _preserve === "true" ? true : void 0;
47040
47040
  if (arg.arguments["no-default-lib"] === "true") {
47041
47041
  context.hasNoDefaultLib = true;
@@ -47044,8 +47044,8 @@ ${lanes.join("\n")}
47044
47044
  typeReferenceDirectives.push({ pos: types.pos, end: types.end, fileName: types.value, ...parsed ? { resolutionMode: parsed } : {}, ...preserve ? { preserve } : {} });
47045
47045
  } else if (lib) {
47046
47046
  libReferenceDirectives.push({ pos: lib.pos, end: lib.end, fileName: lib.value, ...preserve ? { preserve } : {} });
47047
- } else if (path10) {
47048
- referencedFiles.push({ pos: path10.pos, end: path10.end, fileName: path10.value, ...preserve ? { preserve } : {} });
47047
+ } else if (path11) {
47048
+ referencedFiles.push({ pos: path11.pos, end: path11.end, fileName: path11.value, ...preserve ? { preserve } : {} });
47049
47049
  } else {
47050
47050
  reportDiagnostic(arg.range.pos, arg.range.end - arg.range.pos, Diagnostics.Invalid_reference_directive_syntax);
47051
47051
  }
@@ -49474,9 +49474,9 @@ ${lanes.join("\n")}
49474
49474
  if (specs[0] === defaultIncludeSpec) return void 0;
49475
49475
  return specs;
49476
49476
  }
49477
- function matchesSpecs(path10, includeSpecs, excludeSpecs, host) {
49477
+ function matchesSpecs(path11, includeSpecs, excludeSpecs, host) {
49478
49478
  if (!includeSpecs) return returnTrue;
49479
- const patterns = getFileMatcherPatterns(path10, excludeSpecs, includeSpecs, host.useCaseSensitiveFileNames, host.getCurrentDirectory());
49479
+ const patterns = getFileMatcherPatterns(path11, excludeSpecs, includeSpecs, host.useCaseSensitiveFileNames, host.getCurrentDirectory());
49480
49480
  const excludeRe = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, host.useCaseSensitiveFileNames);
49481
49481
  const includeRe = patterns.includeFilePattern && getRegexFromPattern(patterns.includeFilePattern, host.useCaseSensitiveFileNames);
49482
49482
  if (includeRe) {
@@ -50121,9 +50121,9 @@ ${lanes.join("\n")}
50121
50121
  const setPropertyInResultIfNotUndefined = (propertyName) => {
50122
50122
  if (ownConfig.raw[propertyName]) return;
50123
50123
  if (extendsRaw[propertyName]) {
50124
- result[propertyName] = map(extendsRaw[propertyName], (path10) => startsWithConfigDirTemplate(path10) || isRootedDiskPath(path10) ? path10 : combinePaths(
50124
+ result[propertyName] = map(extendsRaw[propertyName], (path11) => startsWithConfigDirTemplate(path11) || isRootedDiskPath(path11) ? path11 : combinePaths(
50125
50125
  relativeDifference || (relativeDifference = convertToRelativePath(getDirectoryPath(extendedConfigPath), basePath, createGetCanonicalFileName(host.useCaseSensitiveFileNames))),
50126
- path10
50126
+ path11
50127
50127
  ));
50128
50128
  }
50129
50129
  };
@@ -50277,11 +50277,11 @@ ${lanes.join("\n")}
50277
50277
  return void 0;
50278
50278
  }
50279
50279
  function getExtendedConfig(sourceFile, extendedConfigPath, host, resolutionStack, errors, extendedConfigCache, result) {
50280
- const path10 = host.useCaseSensitiveFileNames ? extendedConfigPath : toFileNameLowerCase(extendedConfigPath);
50280
+ const path11 = host.useCaseSensitiveFileNames ? extendedConfigPath : toFileNameLowerCase(extendedConfigPath);
50281
50281
  let value;
50282
50282
  let extendedResult;
50283
50283
  let extendedConfig;
50284
- if (extendedConfigCache && (value = extendedConfigCache.get(path10))) {
50284
+ if (extendedConfigCache && (value = extendedConfigCache.get(path11))) {
50285
50285
  ({ extendedResult, extendedConfig } = value);
50286
50286
  } else {
50287
50287
  extendedResult = readJsonConfigFile(extendedConfigPath, (path22) => host.readFile(path22));
@@ -50299,7 +50299,7 @@ ${lanes.join("\n")}
50299
50299
  );
50300
50300
  }
50301
50301
  if (extendedConfigCache) {
50302
- extendedConfigCache.set(path10, { extendedResult, extendedConfig });
50302
+ extendedConfigCache.set(path11, { extendedResult, extendedConfig });
50303
50303
  }
50304
50304
  }
50305
50305
  if (sourceFile) {
@@ -50567,24 +50567,24 @@ ${lanes.join("\n")}
50567
50567
  }
50568
50568
  const match = getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames2);
50569
50569
  if (match) {
50570
- const { key, path: path10, flags } = match;
50570
+ const { key, path: path11, flags } = match;
50571
50571
  const existingPath = wildCardKeyToPath.get(key);
50572
50572
  const existingFlags = existingPath !== void 0 ? wildcardDirectories[existingPath] : void 0;
50573
50573
  if (existingFlags === void 0 || existingFlags < flags) {
50574
- wildcardDirectories[existingPath !== void 0 ? existingPath : path10] = flags;
50575
- if (existingPath === void 0) wildCardKeyToPath.set(key, path10);
50574
+ wildcardDirectories[existingPath !== void 0 ? existingPath : path11] = flags;
50575
+ if (existingPath === void 0) wildCardKeyToPath.set(key, path11);
50576
50576
  if (flags === 1) {
50577
50577
  recursiveKeys.push(key);
50578
50578
  }
50579
50579
  }
50580
50580
  }
50581
50581
  }
50582
- for (const path10 in wildcardDirectories) {
50583
- if (hasProperty(wildcardDirectories, path10)) {
50582
+ for (const path11 in wildcardDirectories) {
50583
+ if (hasProperty(wildcardDirectories, path11)) {
50584
50584
  for (const recursiveKey of recursiveKeys) {
50585
- const key = toCanonicalKey(path10, useCaseSensitiveFileNames2);
50585
+ const key = toCanonicalKey(path11, useCaseSensitiveFileNames2);
50586
50586
  if (key !== recursiveKey && containsPath(recursiveKey, key, basePath, !useCaseSensitiveFileNames2)) {
50587
- delete wildcardDirectories[path10];
50587
+ delete wildcardDirectories[path11];
50588
50588
  }
50589
50589
  }
50590
50590
  }
@@ -50592,8 +50592,8 @@ ${lanes.join("\n")}
50592
50592
  }
50593
50593
  return wildcardDirectories;
50594
50594
  }
50595
- function toCanonicalKey(path10, useCaseSensitiveFileNames2) {
50596
- return useCaseSensitiveFileNames2 ? path10 : toFileNameLowerCase(path10);
50595
+ function toCanonicalKey(path11, useCaseSensitiveFileNames2) {
50596
+ return useCaseSensitiveFileNames2 ? path11 : toFileNameLowerCase(path11);
50597
50597
  }
50598
50598
  function getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames2) {
50599
50599
  const match = wildcardDirectoryPattern.exec(spec);
@@ -50609,10 +50609,10 @@ ${lanes.join("\n")}
50609
50609
  };
50610
50610
  }
50611
50611
  if (isImplicitGlob(spec.substring(spec.lastIndexOf(directorySeparator) + 1))) {
50612
- const path10 = removeTrailingDirectorySeparator(spec);
50612
+ const path11 = removeTrailingDirectorySeparator(spec);
50613
50613
  return {
50614
- key: toCanonicalKey(path10, useCaseSensitiveFileNames2),
50615
- path: path10,
50614
+ key: toCanonicalKey(path11, useCaseSensitiveFileNames2),
50615
+ path: path11,
50616
50616
  flags: 1
50617
50617
  /* Recursive */
50618
50618
  };
@@ -50851,11 +50851,11 @@ ${lanes.join("\n")}
50851
50851
  }
50852
50852
  return;
50853
50853
  }
50854
- const path10 = normalizePath(combinePaths(baseDirectory, fileName));
50854
+ const path11 = normalizePath(combinePaths(baseDirectory, fileName));
50855
50855
  if (state.traceEnabled) {
50856
- trace(state.host, Diagnostics.package_json_has_0_field_1_that_references_2, fieldName, fileName, path10);
50856
+ trace(state.host, Diagnostics.package_json_has_0_field_1_that_references_2, fieldName, fileName, path11);
50857
50857
  }
50858
- return path10;
50858
+ return path11;
50859
50859
  }
50860
50860
  function readPackageJsonTypesFields(jsonContent, baseDirectory, state) {
50861
50861
  return readPackageJsonPathField(jsonContent, "typings", baseDirectory, state) || readPackageJsonPathField(jsonContent, "types", baseDirectory, state);
@@ -51369,13 +51369,13 @@ ${lanes.join("\n")}
51369
51369
  directoryToModuleNameMap.update(options2);
51370
51370
  }
51371
51371
  function getOrCreateCacheForDirectory(directoryName, redirectedReference) {
51372
- const path10 = toPath(directoryName, currentDirectory, getCanonicalFileName);
51373
- return getOrCreateCache(directoryToModuleNameMap, redirectedReference, path10, () => createModeAwareCache());
51372
+ const path11 = toPath(directoryName, currentDirectory, getCanonicalFileName);
51373
+ return getOrCreateCache(directoryToModuleNameMap, redirectedReference, path11, () => createModeAwareCache());
51374
51374
  }
51375
51375
  function getFromDirectoryCache(name, mode, directoryName, redirectedReference) {
51376
51376
  var _a, _b;
51377
- const path10 = toPath(directoryName, currentDirectory, getCanonicalFileName);
51378
- return (_b = (_a = directoryToModuleNameMap.getMapOfCacheRedirects(redirectedReference)) == null ? void 0 : _a.get(path10)) == null ? void 0 : _b.get(name, mode);
51377
+ const path11 = toPath(directoryName, currentDirectory, getCanonicalFileName);
51378
+ return (_b = (_a = directoryToModuleNameMap.getMapOfCacheRedirects(redirectedReference)) == null ? void 0 : _a.get(path11)) == null ? void 0 : _b.get(name, mode);
51379
51379
  }
51380
51380
  }
51381
51381
  function createModeAwareCacheKey(specifier, mode) {
@@ -51452,14 +51452,14 @@ ${lanes.join("\n")}
51452
51452
  return directoryPathMap.get(toPath(directory, currentDirectory, getCanonicalFileName));
51453
51453
  }
51454
51454
  function set(directory, result) {
51455
- const path10 = toPath(directory, currentDirectory, getCanonicalFileName);
51456
- if (directoryPathMap.has(path10)) {
51455
+ const path11 = toPath(directory, currentDirectory, getCanonicalFileName);
51456
+ if (directoryPathMap.has(path11)) {
51457
51457
  return;
51458
51458
  }
51459
- directoryPathMap.set(path10, result);
51459
+ directoryPathMap.set(path11, result);
51460
51460
  const resolvedFileName = getResolvedFileName(result);
51461
- const commonPrefix = resolvedFileName && getCommonPrefix(path10, resolvedFileName);
51462
- let current = path10;
51461
+ const commonPrefix = resolvedFileName && getCommonPrefix(path11, resolvedFileName);
51462
+ let current = path11;
51463
51463
  while (current !== commonPrefix) {
51464
51464
  const parent2 = getDirectoryPath(current);
51465
51465
  if (parent2 === current || directoryPathMap.has(parent2)) {
@@ -52023,16 +52023,16 @@ ${lanes.join("\n")}
52023
52023
  const combined = combinePaths(containingDirectory, moduleName);
52024
52024
  const parts = getPathComponents(combined);
52025
52025
  const lastPart = lastOrUndefined(parts);
52026
- const path10 = lastPart === "." || lastPart === ".." ? ensureTrailingDirectorySeparator(normalizePath(combined)) : normalizePath(combined);
52027
- return { path: path10, parts };
52026
+ const path11 = lastPart === "." || lastPart === ".." ? ensureTrailingDirectorySeparator(normalizePath(combined)) : normalizePath(combined);
52027
+ return { path: path11, parts };
52028
52028
  }
52029
- function realPath(path10, host, traceEnabled) {
52029
+ function realPath(path11, host, traceEnabled) {
52030
52030
  if (!host.realpath) {
52031
- return path10;
52031
+ return path11;
52032
52032
  }
52033
- const real = normalizePath(host.realpath(path10));
52033
+ const real = normalizePath(host.realpath(path11));
52034
52034
  if (traceEnabled) {
52035
- trace(host, Diagnostics.Resolving_real_path_for_0_result_1, path10, real);
52035
+ trace(host, Diagnostics.Resolving_real_path_for_0_result_1, path11, real);
52036
52036
  }
52037
52037
  return real;
52038
52038
  }
@@ -52077,25 +52077,25 @@ ${lanes.join("\n")}
52077
52077
  return void 0;
52078
52078
  }
52079
52079
  var nodeModulesPathPart = "/node_modules/";
52080
- function pathContainsNodeModules(path10) {
52081
- return path10.includes(nodeModulesPathPart);
52080
+ function pathContainsNodeModules(path11) {
52081
+ return path11.includes(nodeModulesPathPart);
52082
52082
  }
52083
52083
  function parseNodeModuleFromPath(resolved, isFolder) {
52084
- const path10 = normalizePath(resolved);
52085
- const idx = path10.lastIndexOf(nodeModulesPathPart);
52084
+ const path11 = normalizePath(resolved);
52085
+ const idx = path11.lastIndexOf(nodeModulesPathPart);
52086
52086
  if (idx === -1) {
52087
52087
  return void 0;
52088
52088
  }
52089
52089
  const indexAfterNodeModules = idx + nodeModulesPathPart.length;
52090
- let indexAfterPackageName = moveToNextDirectorySeparatorIfAvailable(path10, indexAfterNodeModules, isFolder);
52091
- if (path10.charCodeAt(indexAfterNodeModules) === 64) {
52092
- indexAfterPackageName = moveToNextDirectorySeparatorIfAvailable(path10, indexAfterPackageName, isFolder);
52090
+ let indexAfterPackageName = moveToNextDirectorySeparatorIfAvailable(path11, indexAfterNodeModules, isFolder);
52091
+ if (path11.charCodeAt(indexAfterNodeModules) === 64) {
52092
+ indexAfterPackageName = moveToNextDirectorySeparatorIfAvailable(path11, indexAfterPackageName, isFolder);
52093
52093
  }
52094
- return path10.slice(0, indexAfterPackageName);
52094
+ return path11.slice(0, indexAfterPackageName);
52095
52095
  }
52096
- function moveToNextDirectorySeparatorIfAvailable(path10, prevSeparatorIndex, isFolder) {
52097
- const nextSeparatorIndex = path10.indexOf(directorySeparator, prevSeparatorIndex + 1);
52098
- return nextSeparatorIndex === -1 ? isFolder ? path10.length : prevSeparatorIndex : nextSeparatorIndex;
52096
+ function moveToNextDirectorySeparatorIfAvailable(path11, prevSeparatorIndex, isFolder) {
52097
+ const nextSeparatorIndex = path11.indexOf(directorySeparator, prevSeparatorIndex + 1);
52098
+ return nextSeparatorIndex === -1 ? isFolder ? path11.length : prevSeparatorIndex : nextSeparatorIndex;
52099
52099
  }
52100
52100
  function loadModuleFromFileNoPackageId(extensions, candidate, onlyRecordFailures, state) {
52101
52101
  return noPackageId(loadModuleFromFile(extensions, candidate, onlyRecordFailures, state));
@@ -52237,8 +52237,8 @@ ${lanes.join("\n")}
52237
52237
  return extensions & 4 && !isDeclarationFileName(candidate + originalExtension) && tryExtension(`.d${originalExtension}.ts`) || void 0;
52238
52238
  }
52239
52239
  function tryExtension(ext, resolvedUsingTsExtension) {
52240
- const path10 = tryFile(candidate + ext, onlyRecordFailures, state);
52241
- return path10 === void 0 ? void 0 : { path: path10, ext, resolvedUsingTsExtension: !state.candidateIsFromPackageJsonField && resolvedUsingTsExtension };
52240
+ const path11 = tryFile(candidate + ext, onlyRecordFailures, state);
52241
+ return path11 === void 0 ? void 0 : { path: path11, ext, resolvedUsingTsExtension: !state.candidateIsFromPackageJsonField && resolvedUsingTsExtension };
52242
52242
  }
52243
52243
  }
52244
52244
  function tryFile(fileName, onlyRecordFailures, state) {
@@ -52934,10 +52934,10 @@ ${lanes.join("\n")}
52934
52934
  /*value*/
52935
52935
  void 0
52936
52936
  );
52937
- function toAbsolutePath(path10) {
52937
+ function toAbsolutePath(path11) {
52938
52938
  var _a2, _b2;
52939
- if (path10 === void 0) return path10;
52940
- return getNormalizedAbsolutePath(path10, (_b2 = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b2.call(_a2));
52939
+ if (path11 === void 0) return path11;
52940
+ return getNormalizedAbsolutePath(path11, (_b2 = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b2.call(_a2));
52941
52941
  }
52942
52942
  function combineDirectoryPath(root, dir) {
52943
52943
  return ensureTrailingDirectorySeparator(combinePaths(root, dir));
@@ -53188,10 +53188,10 @@ ${lanes.join("\n")}
53188
53188
  trace(state.host, Diagnostics.Module_name_0_matched_pattern_1, moduleName, matchedPatternText);
53189
53189
  }
53190
53190
  const resolved = forEach(paths[matchedPatternText], (subst) => {
53191
- const path10 = matchedStar ? replaceFirstStar(subst, matchedStar) : subst;
53192
- const candidate = normalizePath(combinePaths(baseDirectory, path10));
53191
+ const path11 = matchedStar ? replaceFirstStar(subst, matchedStar) : subst;
53192
+ const candidate = normalizePath(combinePaths(baseDirectory, path11));
53193
53193
  if (state.traceEnabled) {
53194
- trace(state.host, Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1, subst, path10);
53194
+ trace(state.host, Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1, subst, path11);
53195
53195
  }
53196
53196
  const extension = tryGetExtensionFromPath2(subst);
53197
53197
  if (extension !== void 0) {
@@ -57344,10 +57344,10 @@ ${lanes.join("\n")}
57344
57344
  if (a === void 0 || b === void 0) return false;
57345
57345
  return comparePaths(a, b, ignoreCase) === 0;
57346
57346
  }
57347
- function countPathComponents(path10) {
57347
+ function countPathComponents(path11) {
57348
57348
  let count = 0;
57349
- for (let i = startsWith(path10, "./") ? 2 : 0; i < path10.length; i++) {
57350
- if (path10.charCodeAt(i) === 47) count++;
57349
+ for (let i = startsWith(path11, "./") ? 2 : 0; i < path11.length; i++) {
57350
+ if (path11.charCodeAt(i) === 47) count++;
57351
57351
  }
57352
57352
  return count;
57353
57353
  }
@@ -57464,9 +57464,9 @@ ${lanes.join("\n")}
57464
57464
  host,
57465
57465
  /*preferSymlinks*/
57466
57466
  true,
57467
- (path10, isRedirect) => {
57468
- const isInNodeModules = pathContainsNodeModules(path10);
57469
- allFileNames.set(path10, { path: info.getCanonicalFileName(path10), isRedirect, isInNodeModules });
57467
+ (path11, isRedirect) => {
57468
+ const isInNodeModules = pathContainsNodeModules(path11);
57469
+ allFileNames.set(path11, { path: info.getCanonicalFileName(path11), isRedirect, isInNodeModules });
57470
57470
  importedFileFromNodeModules = importedFileFromNodeModules || isInNodeModules;
57471
57471
  }
57472
57472
  );
@@ -57474,8 +57474,8 @@ ${lanes.join("\n")}
57474
57474
  for (let directory = info.canonicalSourceDirectory; allFileNames.size !== 0; ) {
57475
57475
  const directoryStart = ensureTrailingDirectorySeparator(directory);
57476
57476
  let pathsInDirectory;
57477
- allFileNames.forEach(({ path: path10, isRedirect, isInNodeModules }, fileName) => {
57478
- if (startsWith(path10, directoryStart)) {
57477
+ allFileNames.forEach(({ path: path11, isRedirect, isInNodeModules }, fileName) => {
57478
+ if (startsWith(path11, directoryStart)) {
57479
57479
  (pathsInDirectory || (pathsInDirectory = [])).push({ path: fileName, isRedirect, isInNodeModules });
57480
57480
  allFileNames.delete(fileName);
57481
57481
  }
@@ -57778,17 +57778,17 @@ ${lanes.join("\n")}
57778
57778
  }
57779
57779
  return processEnding(shortest, allowedEndings, compilerOptions);
57780
57780
  }
57781
- function tryGetModuleNameAsNodeModule({ path: path10, isRedirect }, { getCanonicalFileName, canonicalSourceDirectory }, importingSourceFile, host, options, userPreferences, packageNameOnly, overrideMode) {
57781
+ function tryGetModuleNameAsNodeModule({ path: path11, isRedirect }, { getCanonicalFileName, canonicalSourceDirectory }, importingSourceFile, host, options, userPreferences, packageNameOnly, overrideMode) {
57782
57782
  if (!host.fileExists || !host.readFile) {
57783
57783
  return void 0;
57784
57784
  }
57785
- const parts = getNodeModulePathParts(path10);
57785
+ const parts = getNodeModulePathParts(path11);
57786
57786
  if (!parts) {
57787
57787
  return void 0;
57788
57788
  }
57789
57789
  const preferences = getModuleSpecifierPreferences(userPreferences, host, options, importingSourceFile);
57790
57790
  const allowedEndings = preferences.getAllowedEndingsInPreferredOrder();
57791
- let moduleSpecifier = path10;
57791
+ let moduleSpecifier = path11;
57792
57792
  let isPackageRootPath = false;
57793
57793
  if (!packageNameOnly) {
57794
57794
  let packageRootIndex = parts.packageRootIndex;
@@ -57809,7 +57809,7 @@ ${lanes.join("\n")}
57809
57809
  break;
57810
57810
  }
57811
57811
  if (!moduleFileName) moduleFileName = moduleFileToTry;
57812
- packageRootIndex = path10.indexOf(directorySeparator, packageRootIndex + 1);
57812
+ packageRootIndex = path11.indexOf(directorySeparator, packageRootIndex + 1);
57813
57813
  if (packageRootIndex === -1) {
57814
57814
  moduleSpecifier = processEnding(moduleFileName, allowedEndings, options, host);
57815
57815
  break;
@@ -57829,9 +57829,9 @@ ${lanes.join("\n")}
57829
57829
  return getEmitModuleResolutionKind(options) === 1 && packageName === nodeModulesDirectoryName ? void 0 : packageName;
57830
57830
  function tryDirectoryWithPackageJson(packageRootIndex) {
57831
57831
  var _a, _b;
57832
- const packageRootPath = path10.substring(0, packageRootIndex);
57832
+ const packageRootPath = path11.substring(0, packageRootIndex);
57833
57833
  const packageJsonPath = combinePaths(packageRootPath, "package.json");
57834
- let moduleFileToTry = path10;
57834
+ let moduleFileToTry = path11;
57835
57835
  let maybeBlockedByTypesVersions = false;
57836
57836
  const cachedPackageJson = (_b = (_a = host.getPackageJsonInfoCache) == null ? void 0 : _a.call(host)) == null ? void 0 : _b.getPackageJsonInfo(packageJsonPath);
57837
57837
  if (isPackageJsonInfo(cachedPackageJson) || cachedPackageJson === void 0 && host.fileExists(packageJsonPath)) {
@@ -57844,7 +57844,7 @@ ${lanes.join("\n")}
57844
57844
  const fromExports = (packageJsonContent == null ? void 0 : packageJsonContent.exports) ? tryGetModuleNameFromExports(
57845
57845
  options,
57846
57846
  host,
57847
- path10,
57847
+ path11,
57848
57848
  packageRootPath,
57849
57849
  packageName2,
57850
57850
  packageJsonContent.exports,
@@ -57854,12 +57854,12 @@ ${lanes.join("\n")}
57854
57854
  return { ...fromExports, verbatimFromExports: true };
57855
57855
  }
57856
57856
  if (packageJsonContent == null ? void 0 : packageJsonContent.exports) {
57857
- return { moduleFileToTry: path10, blockedByExports: true };
57857
+ return { moduleFileToTry: path11, blockedByExports: true };
57858
57858
  }
57859
57859
  }
57860
57860
  const versionPaths = (packageJsonContent == null ? void 0 : packageJsonContent.typesVersions) ? getPackageJsonTypesVersionsPaths(packageJsonContent.typesVersions) : void 0;
57861
57861
  if (versionPaths) {
57862
- const subModuleName = path10.slice(packageRootPath.length + 1);
57862
+ const subModuleName = path11.slice(packageRootPath.length + 1);
57863
57863
  const fromPaths = tryGetModuleNameFromPaths(
57864
57864
  subModuleName,
57865
57865
  versionPaths.paths,
@@ -57894,7 +57894,7 @@ ${lanes.join("\n")}
57894
57894
  return { moduleFileToTry };
57895
57895
  }
57896
57896
  }
57897
- function tryGetAnyFileFromPath(host, path10) {
57897
+ function tryGetAnyFileFromPath(host, path11) {
57898
57898
  if (!host.fileExists) return;
57899
57899
  const extensions = flatten(getSupportedExtensions({ allowJs: true }, [{ extension: "node", isMixedContent: false }, {
57900
57900
  extension: "json",
@@ -57903,15 +57903,15 @@ ${lanes.join("\n")}
57903
57903
  /* JSON */
57904
57904
  }]));
57905
57905
  for (const e of extensions) {
57906
- const fullPath = path10 + e;
57906
+ const fullPath = path11 + e;
57907
57907
  if (host.fileExists(fullPath)) {
57908
57908
  return fullPath;
57909
57909
  }
57910
57910
  }
57911
57911
  }
57912
- function getPathsRelativeToRootDirs(path10, rootDirs, getCanonicalFileName) {
57912
+ function getPathsRelativeToRootDirs(path11, rootDirs, getCanonicalFileName) {
57913
57913
  return mapDefined(rootDirs, (rootDir) => {
57914
- const relativePath = getRelativePathIfInSameVolume(path10, rootDir, getCanonicalFileName);
57914
+ const relativePath = getRelativePathIfInSameVolume(path11, rootDir, getCanonicalFileName);
57915
57915
  return relativePath !== void 0 && isPathRelativeToParent(relativePath) ? void 0 : relativePath;
57916
57916
  });
57917
57917
  }
@@ -58028,10 +58028,10 @@ ${lanes.join("\n")}
58028
58028
  return void 0;
58029
58029
  }
58030
58030
  }
58031
- function getRelativePathIfInSameVolume(path10, directoryPath, getCanonicalFileName) {
58031
+ function getRelativePathIfInSameVolume(path11, directoryPath, getCanonicalFileName) {
58032
58032
  const relativePath = getRelativePathToDirectoryOrUrl(
58033
58033
  directoryPath,
58034
- path10,
58034
+ path11,
58035
58035
  directoryPath,
58036
58036
  getCanonicalFileName,
58037
58037
  /*isAbsolutePathAnUrl*/
@@ -58039,8 +58039,8 @@ ${lanes.join("\n")}
58039
58039
  );
58040
58040
  return isRootedDiskPath(relativePath) ? void 0 : relativePath;
58041
58041
  }
58042
- function isPathRelativeToParent(path10) {
58043
- return startsWith(path10, "..");
58042
+ function isPathRelativeToParent(path11) {
58043
+ return startsWith(path11, "..");
58044
58044
  }
58045
58045
  function getDefaultResolutionModeForFile(file, host, compilerOptions) {
58046
58046
  return isFullSourceFile(file) ? host.getDefaultResolutionModeForFile(file) : getDefaultResolutionModeForFileWorker(file, compilerOptions);
@@ -73089,10 +73089,10 @@ ${lanes.join("\n")}
73089
73089
  const text = identifier.escapedText;
73090
73090
  if (text) {
73091
73091
  const parentSymbol = name.kind === 167 ? getUnresolvedSymbolForEntityName(name.left) : name.kind === 212 ? getUnresolvedSymbolForEntityName(name.expression) : void 0;
73092
- const path10 = parentSymbol ? `${getSymbolPath(parentSymbol)}.${text}` : text;
73093
- let result = unresolvedSymbols.get(path10);
73092
+ const path11 = parentSymbol ? `${getSymbolPath(parentSymbol)}.${text}` : text;
73093
+ let result = unresolvedSymbols.get(path11);
73094
73094
  if (!result) {
73095
- unresolvedSymbols.set(path10, result = createSymbol(
73095
+ unresolvedSymbols.set(path11, result = createSymbol(
73096
73096
  524288,
73097
73097
  text,
73098
73098
  1048576
@@ -77893,24 +77893,24 @@ ${lanes.join("\n")}
77893
77893
  }
77894
77894
  return;
77895
77895
  }
77896
- let path10 = "";
77896
+ let path11 = "";
77897
77897
  const secondaryRootErrors = [];
77898
77898
  while (stack.length) {
77899
77899
  const [msg, ...args] = stack.pop();
77900
77900
  switch (msg.code) {
77901
77901
  case Diagnostics.Types_of_property_0_are_incompatible.code: {
77902
- if (path10.indexOf("new ") === 0) {
77903
- path10 = `(${path10})`;
77902
+ if (path11.indexOf("new ") === 0) {
77903
+ path11 = `(${path11})`;
77904
77904
  }
77905
77905
  const str = "" + args[0];
77906
- if (path10.length === 0) {
77907
- path10 = `${str}`;
77906
+ if (path11.length === 0) {
77907
+ path11 = `${str}`;
77908
77908
  } else if (isIdentifierText(str, getEmitScriptTarget(compilerOptions))) {
77909
- path10 = `${path10}.${str}`;
77909
+ path11 = `${path11}.${str}`;
77910
77910
  } else if (str[0] === "[" && str[str.length - 1] === "]") {
77911
- path10 = `${path10}${str}`;
77911
+ path11 = `${path11}${str}`;
77912
77912
  } else {
77913
- path10 = `${path10}[${str}]`;
77913
+ path11 = `${path11}[${str}]`;
77914
77914
  }
77915
77915
  break;
77916
77916
  }
@@ -77918,7 +77918,7 @@ ${lanes.join("\n")}
77918
77918
  case Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code:
77919
77919
  case Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:
77920
77920
  case Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code: {
77921
- if (path10.length === 0) {
77921
+ if (path11.length === 0) {
77922
77922
  let mappedMsg = msg;
77923
77923
  if (msg.code === Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code) {
77924
77924
  mappedMsg = Diagnostics.Call_signature_return_types_0_and_1_are_incompatible;
@@ -77929,7 +77929,7 @@ ${lanes.join("\n")}
77929
77929
  } else {
77930
77930
  const prefix = msg.code === Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code || msg.code === Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code ? "new " : "";
77931
77931
  const params = msg.code === Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code || msg.code === Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code ? "" : "...";
77932
- path10 = `${prefix}${path10}(${params})`;
77932
+ path11 = `${prefix}${path11}(${params})`;
77933
77933
  }
77934
77934
  break;
77935
77935
  }
@@ -77945,10 +77945,10 @@ ${lanes.join("\n")}
77945
77945
  return Debug.fail(`Unhandled Diagnostic: ${msg.code}`);
77946
77946
  }
77947
77947
  }
77948
- if (path10) {
77948
+ if (path11) {
77949
77949
  reportError(
77950
- path10[path10.length - 1] === ")" ? Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types : Diagnostics.The_types_of_0_are_incompatible_between_these_types,
77951
- path10
77950
+ path11[path11.length - 1] === ")" ? Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types : Diagnostics.The_types_of_0_are_incompatible_between_these_types,
77951
+ path11
77952
77952
  );
77953
77953
  } else {
77954
77954
  secondaryRootErrors.shift();
@@ -133016,9 +133016,9 @@ ${lanes.join("\n")}
133016
133016
  function createAddOutput() {
133017
133017
  let outputs;
133018
133018
  return { addOutput, getOutputs };
133019
- function addOutput(path10) {
133020
- if (path10) {
133021
- (outputs || (outputs = [])).push(path10);
133019
+ function addOutput(path11) {
133020
+ if (path11) {
133021
+ (outputs || (outputs = [])).push(path11);
133022
133022
  }
133023
133023
  }
133024
133024
  function getOutputs() {
@@ -138244,7 +138244,7 @@ ${lanes.join("\n")}
138244
138244
  return {
138245
138245
  useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
138246
138246
  fileExists,
138247
- readFile: (path10, encoding) => host.readFile(path10, encoding),
138247
+ readFile: (path11, encoding) => host.readFile(path11, encoding),
138248
138248
  directoryExists: host.directoryExists && directoryExists,
138249
138249
  getDirectories,
138250
138250
  readDirectory,
@@ -138261,8 +138261,8 @@ ${lanes.join("\n")}
138261
138261
  function getCachedFileSystemEntries(rootDirPath) {
138262
138262
  return cachedReadDirectoryResult.get(ensureTrailingDirectorySeparator(rootDirPath));
138263
138263
  }
138264
- function getCachedFileSystemEntriesForBaseDir(path10) {
138265
- const entries = getCachedFileSystemEntries(getDirectoryPath(path10));
138264
+ function getCachedFileSystemEntriesForBaseDir(path11) {
138265
+ const entries = getCachedFileSystemEntries(getDirectoryPath(path11));
138266
138266
  if (!entries) {
138267
138267
  return entries;
138268
138268
  }
@@ -138317,8 +138317,8 @@ ${lanes.join("\n")}
138317
138317
  return index >= 0;
138318
138318
  }
138319
138319
  function writeFile22(fileName, data, writeByteOrderMark) {
138320
- const path10 = toPath3(fileName);
138321
- const result = getCachedFileSystemEntriesForBaseDir(path10);
138320
+ const path11 = toPath3(fileName);
138321
+ const result = getCachedFileSystemEntriesForBaseDir(path11);
138322
138322
  if (result) {
138323
138323
  updateFilesOfFileSystemEntry(
138324
138324
  result,
@@ -138330,17 +138330,17 @@ ${lanes.join("\n")}
138330
138330
  return host.writeFile(fileName, data, writeByteOrderMark);
138331
138331
  }
138332
138332
  function fileExists(fileName) {
138333
- const path10 = toPath3(fileName);
138334
- const result = getCachedFileSystemEntriesForBaseDir(path10);
138333
+ const path11 = toPath3(fileName);
138334
+ const result = getCachedFileSystemEntriesForBaseDir(path11);
138335
138335
  return result && hasEntry(result.sortedAndCanonicalizedFiles, getCanonicalFileName(getBaseNameOfFileName(fileName))) || host.fileExists(fileName);
138336
138336
  }
138337
138337
  function directoryExists(dirPath) {
138338
- const path10 = toPath3(dirPath);
138339
- return cachedReadDirectoryResult.has(ensureTrailingDirectorySeparator(path10)) || host.directoryExists(dirPath);
138338
+ const path11 = toPath3(dirPath);
138339
+ return cachedReadDirectoryResult.has(ensureTrailingDirectorySeparator(path11)) || host.directoryExists(dirPath);
138340
138340
  }
138341
138341
  function createDirectory(dirPath) {
138342
- const path10 = toPath3(dirPath);
138343
- const result = getCachedFileSystemEntriesForBaseDir(path10);
138342
+ const path11 = toPath3(dirPath);
138343
+ const result = getCachedFileSystemEntriesForBaseDir(path11);
138344
138344
  if (result) {
138345
138345
  const baseName = getBaseNameOfFileName(dirPath);
138346
138346
  const canonicalizedBaseName = getCanonicalFileName(baseName);
@@ -138368,15 +138368,15 @@ ${lanes.join("\n")}
138368
138368
  }
138369
138369
  return host.readDirectory(rootDir, extensions, excludes, includes, depth);
138370
138370
  function getFileSystemEntries(dir) {
138371
- const path10 = toPath3(dir);
138372
- if (path10 === rootDirPath) {
138373
- return rootResult || getFileSystemEntriesFromHost(dir, path10);
138371
+ const path11 = toPath3(dir);
138372
+ if (path11 === rootDirPath) {
138373
+ return rootResult || getFileSystemEntriesFromHost(dir, path11);
138374
138374
  }
138375
- const result = tryReadDirectory2(dir, path10);
138376
- return result !== void 0 ? result || getFileSystemEntriesFromHost(dir, path10) : emptyFileSystemEntries;
138375
+ const result = tryReadDirectory2(dir, path11);
138376
+ return result !== void 0 ? result || getFileSystemEntriesFromHost(dir, path11) : emptyFileSystemEntries;
138377
138377
  }
138378
- function getFileSystemEntriesFromHost(dir, path10) {
138379
- if (rootSymLinkResult && path10 === rootDirPath) return rootSymLinkResult;
138378
+ function getFileSystemEntriesFromHost(dir, path11) {
138379
+ if (rootSymLinkResult && path11 === rootDirPath) return rootSymLinkResult;
138380
138380
  const result = {
138381
138381
  files: map(host.readDirectory(
138382
138382
  dir,
@@ -138389,7 +138389,7 @@ ${lanes.join("\n")}
138389
138389
  ), getBaseNameOfFileName) || emptyArray,
138390
138390
  directories: host.getDirectories(dir) || emptyArray
138391
138391
  };
138392
- if (path10 === rootDirPath) rootSymLinkResult = result;
138392
+ if (path11 === rootDirPath) rootSymLinkResult = result;
138393
138393
  return result;
138394
138394
  }
138395
138395
  }
@@ -138848,15 +138848,15 @@ ${lanes.join("\n")}
138848
138848
  return getDirectoryPath(normalizePath(system.getExecutingFilePath()));
138849
138849
  }
138850
138850
  const newLine = getNewLineCharacter(options);
138851
- const realpath = system.realpath && ((path10) => system.realpath(path10));
138851
+ const realpath = system.realpath && ((path11) => system.realpath(path11));
138852
138852
  const compilerHost = {
138853
138853
  getSourceFile: createGetSourceFile((fileName) => compilerHost.readFile(fileName), setParentNodes),
138854
138854
  getDefaultLibLocation,
138855
138855
  getDefaultLibFileName: (options2) => combinePaths(getDefaultLibLocation(), getDefaultLibFileName(options2)),
138856
138856
  writeFile: createWriteFileMeasuringIO(
138857
- (path10, data, writeByteOrderMark) => system.writeFile(path10, data, writeByteOrderMark),
138858
- (path10) => (compilerHost.createDirectory || system.createDirectory)(path10),
138859
- (path10) => directoryExists(path10)
138857
+ (path11, data, writeByteOrderMark) => system.writeFile(path11, data, writeByteOrderMark),
138858
+ (path11) => (compilerHost.createDirectory || system.createDirectory)(path11),
138859
+ (path11) => directoryExists(path11)
138860
138860
  ),
138861
138861
  getCurrentDirectory: memoize(() => system.getCurrentDirectory()),
138862
138862
  useCaseSensitiveFileNames: () => system.useCaseSensitiveFileNames,
@@ -138867,9 +138867,9 @@ ${lanes.join("\n")}
138867
138867
  trace: (s) => system.write(s + newLine),
138868
138868
  directoryExists: (directoryName) => system.directoryExists(directoryName),
138869
138869
  getEnvironmentVariable: (name) => system.getEnvironmentVariable ? system.getEnvironmentVariable(name) : "",
138870
- getDirectories: (path10) => system.getDirectories(path10),
138870
+ getDirectories: (path11) => system.getDirectories(path11),
138871
138871
  realpath,
138872
- readDirectory: (path10, extensions, include, exclude, depth) => system.readDirectory(path10, extensions, include, exclude, depth),
138872
+ readDirectory: (path11, extensions, include, exclude, depth) => system.readDirectory(path11, extensions, include, exclude, depth),
138873
138873
  createDirectory: (d) => system.createDirectory(d),
138874
138874
  createHash: maybeBind(system, system.createHash)
138875
138875
  };
@@ -139308,13 +139308,13 @@ ${lanes.join("\n")}
139308
139308
  }
139309
139309
  function getLibraryNameFromLibFileName(libFileName) {
139310
139310
  const components = libFileName.split(".");
139311
- let path10 = components[1];
139311
+ let path11 = components[1];
139312
139312
  let i = 2;
139313
139313
  while (components[i] && components[i] !== "d") {
139314
- path10 += (i === 2 ? "/" : "-") + components[i];
139314
+ path11 += (i === 2 ? "/" : "-") + components[i];
139315
139315
  i++;
139316
139316
  }
139317
- return "@typescript/lib-" + path10;
139317
+ return "@typescript/lib-" + path11;
139318
139318
  }
139319
139319
  function isReferencedFile(reason) {
139320
139320
  switch (reason == null ? void 0 : reason.kind) {
@@ -140390,18 +140390,18 @@ ${lanes.join("\n")}
140390
140390
  filesByName.set(newSourceFile.path, newSourceFile);
140391
140391
  }
140392
140392
  const oldFilesByNameMap = oldProgram.getFilesByNameMap();
140393
- oldFilesByNameMap.forEach((oldFile, path10) => {
140393
+ oldFilesByNameMap.forEach((oldFile, path11) => {
140394
140394
  if (!oldFile) {
140395
- filesByName.set(path10, oldFile);
140395
+ filesByName.set(path11, oldFile);
140396
140396
  return;
140397
140397
  }
140398
- if (oldFile.path === path10) {
140398
+ if (oldFile.path === path11) {
140399
140399
  if (oldProgram.isSourceFileFromExternalLibrary(oldFile)) {
140400
140400
  sourceFilesFoundSearchingNodeModules.set(oldFile.path, true);
140401
140401
  }
140402
140402
  return;
140403
140403
  }
140404
- filesByName.set(path10, filesByName.get(oldFile.path));
140404
+ filesByName.set(path11, filesByName.get(oldFile.path));
140405
140405
  });
140406
140406
  const isConfigIdentical = oldOptions.configFile && oldOptions.configFile === options.configFile || !oldOptions.configFile && !options.configFile && !optionsHaveChanges(oldOptions, options, optionDeclarations);
140407
140407
  programDiagnostics.reuseStateFromOldProgram(oldProgram.getProgramDiagnosticsContainer(), isConfigIdentical);
@@ -140439,9 +140439,9 @@ ${lanes.join("\n")}
140439
140439
  getModeForResolutionAtIndex: getModeForResolutionAtIndex2,
140440
140440
  readFile: (f) => host.readFile(f),
140441
140441
  fileExists: (f) => {
140442
- const path10 = toPath3(f);
140443
- if (getSourceFileByPath(path10)) return true;
140444
- if (missingFileNames.has(path10)) return false;
140442
+ const path11 = toPath3(f);
140443
+ if (getSourceFileByPath(path11)) return true;
140444
+ if (missingFileNames.has(path11)) return false;
140445
140445
  return host.fileExists(f);
140446
140446
  },
140447
140447
  realpath: maybeBind(host, host.realpath),
@@ -140581,8 +140581,8 @@ ${lanes.join("\n")}
140581
140581
  function getSourceFile(fileName) {
140582
140582
  return getSourceFileByPath(toPath3(fileName));
140583
140583
  }
140584
- function getSourceFileByPath(path10) {
140585
- return filesByName.get(path10) || void 0;
140584
+ function getSourceFileByPath(path11) {
140585
+ return filesByName.get(path11) || void 0;
140586
140586
  }
140587
140587
  function getDiagnosticsHelper(sourceFile, getDiagnostics2, cancellationToken) {
140588
140588
  if (sourceFile) {
@@ -141225,16 +141225,16 @@ ${lanes.join("\n")}
141225
141225
  addFilePreprocessingFileExplainingDiagnostic(existingFile, reason, Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing, [fileName, existingFile.fileName]);
141226
141226
  }
141227
141227
  }
141228
- function createRedirectedSourceFile(redirectTarget, unredirected, fileName, path10, resolvedPath, originalFileName, sourceFileOptions) {
141228
+ function createRedirectedSourceFile(redirectTarget, unredirected, fileName, path11, resolvedPath, originalFileName, sourceFileOptions) {
141229
141229
  var _a2;
141230
141230
  const redirect = parseNodeFactory.createRedirectedSourceFile({ redirectTarget, unredirected });
141231
141231
  redirect.fileName = fileName;
141232
- redirect.path = path10;
141232
+ redirect.path = path11;
141233
141233
  redirect.resolvedPath = resolvedPath;
141234
141234
  redirect.originalFileName = originalFileName;
141235
141235
  redirect.packageJsonLocations = ((_a2 = sourceFileOptions.packageJsonLocations) == null ? void 0 : _a2.length) ? sourceFileOptions.packageJsonLocations : void 0;
141236
141236
  redirect.packageJsonScope = sourceFileOptions.packageJsonScope;
141237
- sourceFilesFoundSearchingNodeModules.set(path10, currentNodeModulesDepth > 0);
141237
+ sourceFilesFoundSearchingNodeModules.set(path11, currentNodeModulesDepth > 0);
141238
141238
  return redirect;
141239
141239
  }
141240
141240
  function findSourceFile(fileName, isDefaultLib, ignoreNoDefaultLib, reason, packageId) {
@@ -141256,18 +141256,18 @@ ${lanes.join("\n")}
141256
141256
  }
141257
141257
  function findSourceFileWorker(fileName, isDefaultLib, ignoreNoDefaultLib, reason, packageId) {
141258
141258
  var _a2, _b2;
141259
- const path10 = toPath3(fileName);
141259
+ const path11 = toPath3(fileName);
141260
141260
  if (useSourceOfProjectReferenceRedirect) {
141261
- let source = getRedirectFromOutput(path10);
141261
+ let source = getRedirectFromOutput(path11);
141262
141262
  if (!source && host.realpath && options.preserveSymlinks && isDeclarationFileName(fileName) && fileName.includes(nodeModulesPathPart)) {
141263
141263
  const realPath2 = toPath3(host.realpath(fileName));
141264
- if (realPath2 !== path10) source = getRedirectFromOutput(realPath2);
141264
+ if (realPath2 !== path11) source = getRedirectFromOutput(realPath2);
141265
141265
  }
141266
141266
  if (source == null ? void 0 : source.source) {
141267
141267
  const file2 = findSourceFile(source.source, isDefaultLib, ignoreNoDefaultLib, reason, packageId);
141268
141268
  if (file2) addFileToFilesByName(
141269
141269
  file2,
141270
- path10,
141270
+ path11,
141271
141271
  fileName,
141272
141272
  /*redirectedPath*/
141273
141273
  void 0
@@ -141276,8 +141276,8 @@ ${lanes.join("\n")}
141276
141276
  }
141277
141277
  }
141278
141278
  const originalFileName = fileName;
141279
- if (filesByName.has(path10)) {
141280
- const file2 = filesByName.get(path10);
141279
+ if (filesByName.has(path11)) {
141280
+ const file2 = filesByName.get(path11);
141281
141281
  const addedReason = addFileIncludeReason(
141282
141282
  file2 || void 0,
141283
141283
  reason,
@@ -141343,28 +141343,28 @@ ${lanes.join("\n")}
141343
141343
  const packageIdKey = packageIdToString(packageId);
141344
141344
  const fileFromPackageId = packageIdToSourceFile.get(packageIdKey);
141345
141345
  if (fileFromPackageId) {
141346
- const dupFile = createRedirectedSourceFile(fileFromPackageId, file, fileName, path10, toPath3(fileName), originalFileName, sourceFileOptions);
141346
+ const dupFile = createRedirectedSourceFile(fileFromPackageId, file, fileName, path11, toPath3(fileName), originalFileName, sourceFileOptions);
141347
141347
  redirectTargetsMap.add(fileFromPackageId.path, fileName);
141348
- addFileToFilesByName(dupFile, path10, fileName, redirectedPath);
141348
+ addFileToFilesByName(dupFile, path11, fileName, redirectedPath);
141349
141349
  addFileIncludeReason(
141350
141350
  dupFile,
141351
141351
  reason,
141352
141352
  /*checkExisting*/
141353
141353
  false
141354
141354
  );
141355
- sourceFileToPackageName.set(path10, packageIdToPackageName(packageId));
141355
+ sourceFileToPackageName.set(path11, packageIdToPackageName(packageId));
141356
141356
  processingOtherFiles.push(dupFile);
141357
141357
  return dupFile;
141358
141358
  } else if (file) {
141359
141359
  packageIdToSourceFile.set(packageIdKey, file);
141360
- sourceFileToPackageName.set(path10, packageIdToPackageName(packageId));
141360
+ sourceFileToPackageName.set(path11, packageIdToPackageName(packageId));
141361
141361
  }
141362
141362
  }
141363
- addFileToFilesByName(file, path10, fileName, redirectedPath);
141363
+ addFileToFilesByName(file, path11, fileName, redirectedPath);
141364
141364
  if (file) {
141365
- sourceFilesFoundSearchingNodeModules.set(path10, currentNodeModulesDepth > 0);
141365
+ sourceFilesFoundSearchingNodeModules.set(path11, currentNodeModulesDepth > 0);
141366
141366
  file.fileName = fileName;
141367
- file.path = path10;
141367
+ file.path = path11;
141368
141368
  file.resolvedPath = toPath3(fileName);
141369
141369
  file.originalFileName = originalFileName;
141370
141370
  file.packageJsonLocations = ((_b2 = sourceFileOptions.packageJsonLocations) == null ? void 0 : _b2.length) ? sourceFileOptions.packageJsonLocations : void 0;
@@ -141376,7 +141376,7 @@ ${lanes.join("\n")}
141376
141376
  false
141377
141377
  );
141378
141378
  if (host.useCaseSensitiveFileNames()) {
141379
- const pathLowerCase = toFileNameLowerCase(path10);
141379
+ const pathLowerCase = toFileNameLowerCase(path11);
141380
141380
  const existingFile = filesByNameIgnoreCase.get(pathLowerCase);
141381
141381
  if (existingFile) {
141382
141382
  reportFileNamesDifferOnlyInCasingError(fileName, existingFile, reason);
@@ -141409,18 +141409,18 @@ ${lanes.join("\n")}
141409
141409
  }
141410
141410
  return false;
141411
141411
  }
141412
- function addFileToFilesByName(file, path10, fileName, redirectedPath) {
141412
+ function addFileToFilesByName(file, path11, fileName, redirectedPath) {
141413
141413
  if (redirectedPath) {
141414
141414
  updateFilesByNameMap(fileName, redirectedPath, file);
141415
- updateFilesByNameMap(fileName, path10, file || false);
141415
+ updateFilesByNameMap(fileName, path11, file || false);
141416
141416
  } else {
141417
- updateFilesByNameMap(fileName, path10, file);
141417
+ updateFilesByNameMap(fileName, path11, file);
141418
141418
  }
141419
141419
  }
141420
- function updateFilesByNameMap(fileName, path10, file) {
141421
- filesByName.set(path10, file);
141422
- if (file !== void 0) missingFileNames.delete(path10);
141423
- else missingFileNames.set(path10, fileName);
141420
+ function updateFilesByNameMap(fileName, path11, file) {
141421
+ filesByName.set(path11, file);
141422
+ if (file !== void 0) missingFileNames.delete(path11);
141423
+ else missingFileNames.set(path11, fileName);
141424
141424
  }
141425
141425
  function getRedirectFromSourceFile(fileName) {
141426
141426
  return mapSourceFileToResolvedRef == null ? void 0 : mapSourceFileToResolvedRef.get(toPath3(fileName));
@@ -141428,8 +141428,8 @@ ${lanes.join("\n")}
141428
141428
  function forEachResolvedProjectReference2(cb) {
141429
141429
  return forEachResolvedProjectReference(resolvedProjectReferences, cb);
141430
141430
  }
141431
- function getRedirectFromOutput(path10) {
141432
- return mapOutputFileToResolvedRef == null ? void 0 : mapOutputFileToResolvedRef.get(path10);
141431
+ function getRedirectFromOutput(path11) {
141432
+ return mapOutputFileToResolvedRef == null ? void 0 : mapOutputFileToResolvedRef.get(path11);
141433
141433
  }
141434
141434
  function isSourceOfProjectReferenceRedirect(fileName) {
141435
141435
  return useSourceOfProjectReferenceRedirect && !!getRedirectFromSourceFile(fileName);
@@ -141728,7 +141728,7 @@ ${lanes.join("\n")}
141728
141728
  }
141729
141729
  const getCommonSourceDirectory3 = memoize(() => getCommonSourceDirectoryOfConfig(resolvedRef.commandLine, !host.useCaseSensitiveFileNames()));
141730
141730
  commandLine.fileNames.forEach((fileName) => {
141731
- const path10 = toPath3(fileName);
141731
+ const path11 = toPath3(fileName);
141732
141732
  let outputDts;
141733
141733
  if (!isDeclarationFileName(fileName) && !fileExtensionIs(
141734
141734
  fileName,
@@ -141742,7 +141742,7 @@ ${lanes.join("\n")}
141742
141742
  outputDts = outDts;
141743
141743
  }
141744
141744
  }
141745
- mapSourceFileToResolvedRef.set(path10, { resolvedRef, outputDts });
141745
+ mapSourceFileToResolvedRef.set(path11, { resolvedRef, outputDts });
141746
141746
  });
141747
141747
  }
141748
141748
  if (commandLine.projectReferences) {
@@ -142430,9 +142430,9 @@ ${lanes.join("\n")}
142430
142430
  host.compilerHost.fileExists = fileExists;
142431
142431
  let directoryExists;
142432
142432
  if (originalDirectoryExists) {
142433
- directoryExists = host.compilerHost.directoryExists = (path10) => {
142434
- if (originalDirectoryExists.call(host.compilerHost, path10)) {
142435
- handleDirectoryCouldBeSymlink(path10);
142433
+ directoryExists = host.compilerHost.directoryExists = (path11) => {
142434
+ if (originalDirectoryExists.call(host.compilerHost, path11)) {
142435
+ handleDirectoryCouldBeSymlink(path11);
142436
142436
  return true;
142437
142437
  }
142438
142438
  if (!host.getResolvedProjectReferences()) return false;
@@ -142451,14 +142451,14 @@ ${lanes.join("\n")}
142451
142451
  });
142452
142452
  }
142453
142453
  return fileOrDirectoryExistsUsingSource(
142454
- path10,
142454
+ path11,
142455
142455
  /*isFile*/
142456
142456
  false
142457
142457
  );
142458
142458
  };
142459
142459
  }
142460
142460
  if (originalGetDirectories) {
142461
- host.compilerHost.getDirectories = (path10) => !host.getResolvedProjectReferences() || originalDirectoryExists && originalDirectoryExists.call(host.compilerHost, path10) ? originalGetDirectories.call(host.compilerHost, path10) : [];
142461
+ host.compilerHost.getDirectories = (path11) => !host.getResolvedProjectReferences() || originalDirectoryExists && originalDirectoryExists.call(host.compilerHost, path11) ? originalGetDirectories.call(host.compilerHost, path11) : [];
142462
142462
  }
142463
142463
  if (originalRealpath) {
142464
142464
  host.compilerHost.realpath = (s) => {
@@ -143125,12 +143125,12 @@ ${lanes.join("\n")}
143125
143125
  state.allFileNames = void 0;
143126
143126
  }
143127
143127
  BuilderState2.releaseCache = releaseCache2;
143128
- function getFilesAffectedBy(state, programOfThisState, path10, cancellationToken, host) {
143128
+ function getFilesAffectedBy(state, programOfThisState, path11, cancellationToken, host) {
143129
143129
  var _a;
143130
143130
  const result = getFilesAffectedByWithOldState(
143131
143131
  state,
143132
143132
  programOfThisState,
143133
- path10,
143133
+ path11,
143134
143134
  cancellationToken,
143135
143135
  host
143136
143136
  );
@@ -143138,8 +143138,8 @@ ${lanes.join("\n")}
143138
143138
  return result;
143139
143139
  }
143140
143140
  BuilderState2.getFilesAffectedBy = getFilesAffectedBy;
143141
- function getFilesAffectedByWithOldState(state, programOfThisState, path10, cancellationToken, host) {
143142
- const sourceFile = programOfThisState.getSourceFileByPath(path10);
143141
+ function getFilesAffectedByWithOldState(state, programOfThisState, path11, cancellationToken, host) {
143142
+ const sourceFile = programOfThisState.getSourceFileByPath(path11);
143143
143143
  if (!sourceFile) {
143144
143144
  return emptyArray;
143145
143145
  }
@@ -143149,9 +143149,9 @@ ${lanes.join("\n")}
143149
143149
  return (state.referencedMap ? getFilesAffectedByUpdatedShapeWhenModuleEmit : getFilesAffectedByUpdatedShapeWhenNonModuleEmit)(state, programOfThisState, sourceFile, cancellationToken, host);
143150
143150
  }
143151
143151
  BuilderState2.getFilesAffectedByWithOldState = getFilesAffectedByWithOldState;
143152
- function updateSignatureOfFile(state, signature, path10) {
143153
- state.fileInfos.get(path10).signature = signature;
143154
- (state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(path10);
143152
+ function updateSignatureOfFile(state, signature, path11) {
143153
+ state.fileInfos.get(path11).signature = signature;
143154
+ (state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(path11);
143155
143155
  }
143156
143156
  BuilderState2.updateSignatureOfFile = updateSignatureOfFile;
143157
143157
  function computeDtsSignature(programOfThisState, sourceFile, cancellationToken, host, onNewSignature) {
@@ -143220,10 +143220,10 @@ ${lanes.join("\n")}
143220
143220
  const seenMap = /* @__PURE__ */ new Set();
143221
143221
  const queue = [sourceFile.resolvedPath];
143222
143222
  while (queue.length) {
143223
- const path10 = queue.pop();
143224
- if (!seenMap.has(path10)) {
143225
- seenMap.add(path10);
143226
- const references = state.referencedMap.getValues(path10);
143223
+ const path11 = queue.pop();
143224
+ if (!seenMap.has(path11)) {
143225
+ seenMap.add(path11);
143226
+ const references = state.referencedMap.getValues(path11);
143227
143227
  if (references) {
143228
143228
  for (const key of references.keys()) {
143229
143229
  queue.push(key);
@@ -143231,9 +143231,9 @@ ${lanes.join("\n")}
143231
143231
  }
143232
143232
  }
143233
143233
  }
143234
- return arrayFrom(mapDefinedIterator(seenMap.keys(), (path10) => {
143234
+ return arrayFrom(mapDefinedIterator(seenMap.keys(), (path11) => {
143235
143235
  var _a;
143236
- return ((_a = programOfThisState.getSourceFileByPath(path10)) == null ? void 0 : _a.fileName) ?? path10;
143236
+ return ((_a = programOfThisState.getSourceFileByPath(path11)) == null ? void 0 : _a.fileName) ?? path11;
143237
143237
  }));
143238
143238
  }
143239
143239
  BuilderState2.getAllDependencies = getAllDependencies;
@@ -143412,7 +143412,7 @@ ${lanes.join("\n")}
143412
143412
  oldInfo.version !== info.version || // Implied formats dont match
143413
143413
  oldInfo.impliedFormat !== info.impliedFormat || // Referenced files changed
143414
143414
  !hasSameKeys(newReferences = referencedMap && referencedMap.getValues(sourceFilePath), oldReferencedMap && oldReferencedMap.getValues(sourceFilePath)) || // Referenced file was deleted in the new program
143415
- newReferences && forEachKey(newReferences, (path10) => !state.fileInfos.has(path10) && oldState.fileInfos.has(path10))) {
143415
+ newReferences && forEachKey(newReferences, (path11) => !state.fileInfos.has(path11) && oldState.fileInfos.has(path11))) {
143416
143416
  addFileToChangeSet(sourceFilePath);
143417
143417
  } else {
143418
143418
  const sourceFile = newProgram.getSourceFileByPath(sourceFilePath);
@@ -143478,8 +143478,8 @@ ${lanes.join("\n")}
143478
143478
  }
143479
143479
  if (useOldState && state.semanticDiagnosticsPerFile.size !== state.fileInfos.size && oldState.checkPending !== state.checkPending) state.buildInfoEmitPending = true;
143480
143480
  return state;
143481
- function addFileToChangeSet(path10) {
143482
- state.changedFilesSet.add(path10);
143481
+ function addFileToChangeSet(path11) {
143482
+ state.changedFilesSet.add(path11);
143483
143483
  if (outFilePath) {
143484
143484
  canCopySemanticDiagnostics = false;
143485
143485
  canCopyEmitDiagnostics = false;
@@ -143543,9 +143543,9 @@ ${lanes.join("\n")}
143543
143543
  result.relatedInformation = relatedInformation ? relatedInformation.length ? relatedInformation.map((r) => convertToDiagnosticRelatedInformation(r, diagnosticFilePath, newProgram, toPathInBuildInfoDirectory)) : [] : void 0;
143544
143544
  return result;
143545
143545
  });
143546
- function toPathInBuildInfoDirectory(path10) {
143546
+ function toPathInBuildInfoDirectory(path11) {
143547
143547
  buildInfoDirectory ?? (buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(newProgram.getCompilerOptions()), newProgram.getCurrentDirectory())));
143548
- return toPath(path10, buildInfoDirectory, newProgram.getCanonicalFileName);
143548
+ return toPath(path11, buildInfoDirectory, newProgram.getCanonicalFileName);
143549
143549
  }
143550
143550
  }
143551
143551
  function convertToDiagnosticRelatedInformation(diagnostic, diagnosticFilePath, newProgram, toPath3) {
@@ -143620,10 +143620,10 @@ ${lanes.join("\n")}
143620
143620
  state.affectedFilesPendingEmit = void 0;
143621
143621
  state.programEmitPending = void 0;
143622
143622
  }
143623
- (_b = state.affectedFilesPendingEmit) == null ? void 0 : _b.forEach((emitKind, path10) => {
143623
+ (_b = state.affectedFilesPendingEmit) == null ? void 0 : _b.forEach((emitKind, path11) => {
143624
143624
  const pending = !isForDtsErrors ? emitKind & 7 : emitKind & (7 | 48);
143625
- if (!pending) state.affectedFilesPendingEmit.delete(path10);
143626
- else state.affectedFilesPendingEmit.set(path10, pending);
143625
+ if (!pending) state.affectedFilesPendingEmit.delete(path11);
143626
+ else state.affectedFilesPendingEmit.set(path11, pending);
143627
143627
  });
143628
143628
  if (state.programEmitPending) {
143629
143629
  const pending = !isForDtsErrors ? state.programEmitPending & 7 : state.programEmitPending & (7 | 48);
@@ -143643,11 +143643,11 @@ ${lanes.join("\n")}
143643
143643
  function getNextAffectedFilePendingEmit(state, emitOnlyDtsFiles, isForDtsErrors) {
143644
143644
  var _a;
143645
143645
  if (!((_a = state.affectedFilesPendingEmit) == null ? void 0 : _a.size)) return void 0;
143646
- return forEachEntry(state.affectedFilesPendingEmit, (emitKind, path10) => {
143646
+ return forEachEntry(state.affectedFilesPendingEmit, (emitKind, path11) => {
143647
143647
  var _a2;
143648
- const affectedFile = state.program.getSourceFileByPath(path10);
143648
+ const affectedFile = state.program.getSourceFileByPath(path11);
143649
143649
  if (!affectedFile || !sourceFileMayBeEmitted(affectedFile, state.program)) {
143650
- state.affectedFilesPendingEmit.delete(path10);
143650
+ state.affectedFilesPendingEmit.delete(path11);
143651
143651
  return void 0;
143652
143652
  }
143653
143653
  const seenKind = (_a2 = state.seenEmittedFiles) == null ? void 0 : _a2.get(affectedFile.resolvedPath);
@@ -143663,11 +143663,11 @@ ${lanes.join("\n")}
143663
143663
  function getNextPendingEmitDiagnosticsFile(state, isForDtsErrors) {
143664
143664
  var _a;
143665
143665
  if (!((_a = state.emitDiagnosticsPerFile) == null ? void 0 : _a.size)) return void 0;
143666
- return forEachEntry(state.emitDiagnosticsPerFile, (diagnostics, path10) => {
143666
+ return forEachEntry(state.emitDiagnosticsPerFile, (diagnostics, path11) => {
143667
143667
  var _a2;
143668
- const affectedFile = state.program.getSourceFileByPath(path10);
143668
+ const affectedFile = state.program.getSourceFileByPath(path11);
143669
143669
  if (!affectedFile || !sourceFileMayBeEmitted(affectedFile, state.program)) {
143670
- state.emitDiagnosticsPerFile.delete(path10);
143670
+ state.emitDiagnosticsPerFile.delete(path11);
143671
143671
  return void 0;
143672
143672
  }
143673
143673
  const seenKind = ((_a2 = state.seenEmittedFiles) == null ? void 0 : _a2.get(affectedFile.resolvedPath)) || 0;
@@ -143702,10 +143702,10 @@ ${lanes.join("\n")}
143702
143702
  host
143703
143703
  );
143704
143704
  }
143705
- function handleDtsMayChangeOf(state, path10, invalidateJsFiles, cancellationToken, host) {
143706
- removeSemanticDiagnosticsOf(state, path10);
143707
- if (!state.changedFilesSet.has(path10)) {
143708
- const sourceFile = state.program.getSourceFileByPath(path10);
143705
+ function handleDtsMayChangeOf(state, path11, invalidateJsFiles, cancellationToken, host) {
143706
+ removeSemanticDiagnosticsOf(state, path11);
143707
+ if (!state.changedFilesSet.has(path11)) {
143708
+ const sourceFile = state.program.getSourceFileByPath(path11);
143709
143709
  if (sourceFile) {
143710
143710
  BuilderState.updateShapeSignature(
143711
143711
  state,
@@ -143719,13 +143719,13 @@ ${lanes.join("\n")}
143719
143719
  if (invalidateJsFiles) {
143720
143720
  addToAffectedFilesPendingEmit(
143721
143721
  state,
143722
- path10,
143722
+ path11,
143723
143723
  getBuilderFileEmit(state.compilerOptions)
143724
143724
  );
143725
143725
  } else if (getEmitDeclarations(state.compilerOptions)) {
143726
143726
  addToAffectedFilesPendingEmit(
143727
143727
  state,
143728
- path10,
143728
+ path11,
143729
143729
  state.compilerOptions.declarationMap ? 56 : 24
143730
143730
  /* Dts */
143731
143731
  );
@@ -143733,17 +143733,17 @@ ${lanes.join("\n")}
143733
143733
  }
143734
143734
  }
143735
143735
  }
143736
- function removeSemanticDiagnosticsOf(state, path10) {
143736
+ function removeSemanticDiagnosticsOf(state, path11) {
143737
143737
  if (!state.semanticDiagnosticsFromOldState) {
143738
143738
  return true;
143739
143739
  }
143740
- state.semanticDiagnosticsFromOldState.delete(path10);
143741
- state.semanticDiagnosticsPerFile.delete(path10);
143740
+ state.semanticDiagnosticsFromOldState.delete(path11);
143741
+ state.semanticDiagnosticsPerFile.delete(path11);
143742
143742
  return !state.semanticDiagnosticsFromOldState.size;
143743
143743
  }
143744
- function isChangedSignature(state, path10) {
143745
- const oldSignature = Debug.checkDefined(state.oldSignatures).get(path10) || void 0;
143746
- const newSignature = Debug.checkDefined(state.fileInfos.get(path10)).signature;
143744
+ function isChangedSignature(state, path11) {
143745
+ const oldSignature = Debug.checkDefined(state.oldSignatures).get(path11) || void 0;
143746
+ const newSignature = Debug.checkDefined(state.fileInfos.get(path11)).signature;
143747
143747
  return newSignature !== oldSignature;
143748
143748
  }
143749
143749
  function handleDtsMayChangeOfGlobalScope(state, filePath, invalidateJsFiles, cancellationToken, host) {
@@ -143850,13 +143850,13 @@ ${lanes.join("\n")}
143850
143850
  }
143851
143851
  function getBinderAndCheckerDiagnosticsOfFile(state, sourceFile, cancellationToken, semanticDiagnosticsPerFile) {
143852
143852
  semanticDiagnosticsPerFile ?? (semanticDiagnosticsPerFile = state.semanticDiagnosticsPerFile);
143853
- const path10 = sourceFile.resolvedPath;
143854
- const cachedDiagnostics = semanticDiagnosticsPerFile.get(path10);
143853
+ const path11 = sourceFile.resolvedPath;
143854
+ const cachedDiagnostics = semanticDiagnosticsPerFile.get(path11);
143855
143855
  if (cachedDiagnostics) {
143856
143856
  return filterSemanticDiagnostics(cachedDiagnostics, state.compilerOptions);
143857
143857
  }
143858
143858
  const diagnostics = state.program.getBindAndCheckDiagnostics(sourceFile, cancellationToken);
143859
- semanticDiagnosticsPerFile.set(path10, diagnostics);
143859
+ semanticDiagnosticsPerFile.set(path11, diagnostics);
143860
143860
  state.buildInfoEmitPending = true;
143861
143861
  return filterSemanticDiagnostics(diagnostics, state.compilerOptions);
143862
143862
  }
@@ -144004,11 +144004,11 @@ ${lanes.join("\n")}
144004
144004
  if ((_b = state.affectedFilesPendingEmit) == null ? void 0 : _b.size) {
144005
144005
  const fullEmitForOptions = getBuilderFileEmit(state.compilerOptions);
144006
144006
  const seenFiles = /* @__PURE__ */ new Set();
144007
- for (const path10 of arrayFrom(state.affectedFilesPendingEmit.keys()).sort(compareStringsCaseSensitive)) {
144008
- if (tryAddToSet(seenFiles, path10)) {
144009
- const file = state.program.getSourceFileByPath(path10);
144007
+ for (const path11 of arrayFrom(state.affectedFilesPendingEmit.keys()).sort(compareStringsCaseSensitive)) {
144008
+ if (tryAddToSet(seenFiles, path11)) {
144009
+ const file = state.program.getSourceFileByPath(path11);
144010
144010
  if (!file || !sourceFileMayBeEmitted(file, state.program)) continue;
144011
- const fileId = toFileId(path10), pendingEmit = state.affectedFilesPendingEmit.get(path10);
144011
+ const fileId = toFileId(path11), pendingEmit = state.affectedFilesPendingEmit.get(path11);
144012
144012
  affectedFilesPendingEmit = append(
144013
144013
  affectedFilesPendingEmit,
144014
144014
  pendingEmit === fullEmitForOptions ? fileId : (
@@ -144042,17 +144042,17 @@ ${lanes.join("\n")}
144042
144042
  version
144043
144043
  };
144044
144044
  return buildInfo;
144045
- function relativeToBuildInfoEnsuringAbsolutePath(path10) {
144046
- return relativeToBuildInfo(getNormalizedAbsolutePath(path10, currentDirectory));
144045
+ function relativeToBuildInfoEnsuringAbsolutePath(path11) {
144046
+ return relativeToBuildInfo(getNormalizedAbsolutePath(path11, currentDirectory));
144047
144047
  }
144048
- function relativeToBuildInfo(path10) {
144049
- return ensurePathIsNonModuleName(getRelativePathFromDirectory(buildInfoDirectory, path10, state.program.getCanonicalFileName));
144048
+ function relativeToBuildInfo(path11) {
144049
+ return ensurePathIsNonModuleName(getRelativePathFromDirectory(buildInfoDirectory, path11, state.program.getCanonicalFileName));
144050
144050
  }
144051
- function toFileId(path10) {
144052
- let fileId = fileNameToFileId.get(path10);
144051
+ function toFileId(path11) {
144052
+ let fileId = fileNameToFileId.get(path11);
144053
144053
  if (fileId === void 0) {
144054
- fileNames.push(relativeToBuildInfo(path10));
144055
- fileNameToFileId.set(path10, fileId = fileNames.length);
144054
+ fileNames.push(relativeToBuildInfo(path11));
144055
+ fileNameToFileId.set(path11, fileId = fileNames.length);
144056
144056
  }
144057
144057
  return fileId;
144058
144058
  }
@@ -144066,8 +144066,8 @@ ${lanes.join("\n")}
144066
144066
  }
144067
144067
  return fileIdListId;
144068
144068
  }
144069
- function tryAddRoot(path10, fileId) {
144070
- const file = state.program.getSourceFile(path10);
144069
+ function tryAddRoot(path11, fileId) {
144070
+ const file = state.program.getSourceFile(path11);
144071
144071
  if (!state.program.getFileIncludeReasons().get(file.path).some(
144072
144072
  (r) => r.kind === 0
144073
144073
  /* RootFile */
@@ -144084,10 +144084,10 @@ ${lanes.join("\n")}
144084
144084
  }
144085
144085
  function toResolvedRoot() {
144086
144086
  let result;
144087
- rootFileNames.forEach((path10) => {
144088
- const file = state.program.getSourceFileByPath(path10);
144089
- if (file && path10 !== file.resolvedPath) {
144090
- result = append(result, [toFileId(file.resolvedPath), toFileId(path10)]);
144087
+ rootFileNames.forEach((path11) => {
144088
+ const file = state.program.getSourceFileByPath(path11);
144089
+ if (file && path11 !== file.resolvedPath) {
144090
+ result = append(result, [toFileId(file.resolvedPath), toFileId(path11)]);
144091
144091
  }
144092
144092
  });
144093
144093
  return result;
@@ -144195,8 +144195,8 @@ ${lanes.join("\n")}
144195
144195
  function toChangeFileSet() {
144196
144196
  let changeFileSet;
144197
144197
  if (state.changedFilesSet.size) {
144198
- for (const path10 of arrayFrom(state.changedFilesSet.keys()).sort(compareStringsCaseSensitive)) {
144199
- changeFileSet = append(changeFileSet, toFileId(path10));
144198
+ for (const path11 of arrayFrom(state.changedFilesSet.keys()).sort(compareStringsCaseSensitive)) {
144199
+ changeFileSet = append(changeFileSet, toFileId(path11));
144200
144200
  }
144201
144201
  }
144202
144202
  return changeFileSet;
@@ -144695,8 +144695,8 @@ ${lanes.join("\n")}
144695
144695
  const changedFilesSet = new Set(map(buildInfo.changeFileSet, toFilePath));
144696
144696
  if (isIncrementalBundleEmitBuildInfo(buildInfo)) {
144697
144697
  buildInfo.fileInfos.forEach((fileInfo, index) => {
144698
- const path10 = toFilePath(index + 1);
144699
- fileInfos.set(path10, isString(fileInfo) ? { version: fileInfo, signature: void 0, affectsGlobalScope: void 0, impliedFormat: void 0 } : fileInfo);
144698
+ const path11 = toFilePath(index + 1);
144699
+ fileInfos.set(path11, isString(fileInfo) ? { version: fileInfo, signature: void 0, affectsGlobalScope: void 0, impliedFormat: void 0 } : fileInfo);
144700
144700
  });
144701
144701
  state = {
144702
144702
  fileInfos,
@@ -144715,10 +144715,10 @@ ${lanes.join("\n")}
144715
144715
  filePathsSetList = (_b = buildInfo.fileIdsList) == null ? void 0 : _b.map((fileIds) => new Set(fileIds.map(toFilePath)));
144716
144716
  const emitSignatures = ((_c = buildInfo.options) == null ? void 0 : _c.composite) && !buildInfo.options.outFile ? /* @__PURE__ */ new Map() : void 0;
144717
144717
  buildInfo.fileInfos.forEach((fileInfo, index) => {
144718
- const path10 = toFilePath(index + 1);
144718
+ const path11 = toFilePath(index + 1);
144719
144719
  const stateFileInfo = toBuilderStateFileInfoForMultiEmit(fileInfo);
144720
- fileInfos.set(path10, stateFileInfo);
144721
- if (emitSignatures && stateFileInfo.signature) emitSignatures.set(path10, stateFileInfo.signature);
144720
+ fileInfos.set(path11, stateFileInfo);
144721
+ if (emitSignatures && stateFileInfo.signature) emitSignatures.set(path11, stateFileInfo.signature);
144722
144722
  });
144723
144723
  (_d = buildInfo.emitSignatures) == null ? void 0 : _d.forEach((value) => {
144724
144724
  if (isNumber(value)) emitSignatures.delete(toFilePath(value));
@@ -144772,11 +144772,11 @@ ${lanes.join("\n")}
144772
144772
  close: noop,
144773
144773
  hasChangedEmitSignature: returnFalse
144774
144774
  };
144775
- function toPathInBuildInfoDirectory(path10) {
144776
- return toPath(path10, buildInfoDirectory, getCanonicalFileName);
144775
+ function toPathInBuildInfoDirectory(path11) {
144776
+ return toPath(path11, buildInfoDirectory, getCanonicalFileName);
144777
144777
  }
144778
- function toAbsolutePath(path10) {
144779
- return getNormalizedAbsolutePath(path10, buildInfoDirectory);
144778
+ function toAbsolutePath(path11) {
144779
+ return getNormalizedAbsolutePath(path11, buildInfoDirectory);
144780
144780
  }
144781
144781
  function toFilePath(fileId) {
144782
144782
  return filePaths[fileId - 1];
@@ -144815,30 +144815,30 @@ ${lanes.join("\n")}
144815
144815
  const roots = /* @__PURE__ */ new Map();
144816
144816
  const resolvedRoots = new Map(program2.resolvedRoot);
144817
144817
  program2.fileInfos.forEach((fileInfo, index) => {
144818
- const path10 = toPath(program2.fileNames[index], buildInfoDirectory, getCanonicalFileName);
144818
+ const path11 = toPath(program2.fileNames[index], buildInfoDirectory, getCanonicalFileName);
144819
144819
  const version2 = isString(fileInfo) ? fileInfo : fileInfo.version;
144820
- fileInfos.set(path10, version2);
144820
+ fileInfos.set(path11, version2);
144821
144821
  if (rootIndex < program2.root.length) {
144822
144822
  const current = program2.root[rootIndex];
144823
144823
  const fileId = index + 1;
144824
144824
  if (isArray(current)) {
144825
144825
  if (current[0] <= fileId && fileId <= current[1]) {
144826
- addRoot(fileId, path10);
144826
+ addRoot(fileId, path11);
144827
144827
  if (current[1] === fileId) rootIndex++;
144828
144828
  }
144829
144829
  } else if (current === fileId) {
144830
- addRoot(fileId, path10);
144830
+ addRoot(fileId, path11);
144831
144831
  rootIndex++;
144832
144832
  }
144833
144833
  }
144834
144834
  });
144835
144835
  return { fileInfos, roots };
144836
- function addRoot(fileId, path10) {
144836
+ function addRoot(fileId, path11) {
144837
144837
  const root = resolvedRoots.get(fileId);
144838
144838
  if (root) {
144839
- roots.set(toPath(program2.fileNames[root - 1], buildInfoDirectory, getCanonicalFileName), path10);
144839
+ roots.set(toPath(program2.fileNames[root - 1], buildInfoDirectory, getCanonicalFileName), path11);
144840
144840
  } else {
144841
- roots.set(path10, void 0);
144841
+ roots.set(path11, void 0);
144842
144842
  }
144843
144843
  }
144844
144844
  }
@@ -144913,11 +144913,11 @@ ${lanes.join("\n")}
144913
144913
  newConfigFileParsingDiagnostics
144914
144914
  );
144915
144915
  }
144916
- function removeIgnoredPath(path10) {
144917
- if (endsWith(path10, "/node_modules/.staging")) {
144918
- return removeSuffix(path10, "/.staging");
144916
+ function removeIgnoredPath(path11) {
144917
+ if (endsWith(path11, "/node_modules/.staging")) {
144918
+ return removeSuffix(path11, "/.staging");
144919
144919
  }
144920
- return some(ignoredPaths, (searchPath) => path10.includes(searchPath)) ? void 0 : path10;
144920
+ return some(ignoredPaths, (searchPath) => path11.includes(searchPath)) ? void 0 : path11;
144921
144921
  }
144922
144922
  function perceivedOsRootLengthForWatching(pathComponents2, length2) {
144923
144923
  if (length2 <= 1) return 1;
@@ -144943,8 +144943,8 @@ ${lanes.join("\n")}
144943
144943
  const perceivedOsRootLength = perceivedOsRootLengthForWatching(pathComponents2, length2);
144944
144944
  return length2 > perceivedOsRootLength + 1;
144945
144945
  }
144946
- function canWatchDirectoryOrFilePath(path10) {
144947
- return canWatchDirectoryOrFile(getPathComponents(path10));
144946
+ function canWatchDirectoryOrFilePath(path11) {
144947
+ return canWatchDirectoryOrFile(getPathComponents(path11));
144948
144948
  }
144949
144949
  function canWatchAtTypes(atTypes) {
144950
144950
  return canWatchAffectedPackageJsonOrNodeModulesOfAtTypes(getDirectoryPath(atTypes));
@@ -145238,11 +145238,11 @@ ${lanes.join("\n")}
145238
145238
  filesWithChangedSetOfUnresolvedImports = void 0;
145239
145239
  return collected;
145240
145240
  }
145241
- function isFileWithInvalidatedNonRelativeUnresolvedImports(path10) {
145241
+ function isFileWithInvalidatedNonRelativeUnresolvedImports(path11) {
145242
145242
  if (!filesWithInvalidatedNonRelativeUnresolvedImports) {
145243
145243
  return false;
145244
145244
  }
145245
- const value = filesWithInvalidatedNonRelativeUnresolvedImports.get(path10);
145245
+ const value = filesWithInvalidatedNonRelativeUnresolvedImports.get(path11);
145246
145246
  return !!value && !!value.length;
145247
145247
  }
145248
145248
  function createHasInvalidatedResolutions(customHasInvalidatedResolutions, customHasInvalidatedLibResolutions) {
@@ -145250,7 +145250,7 @@ ${lanes.join("\n")}
145250
145250
  const collected = filesWithInvalidatedResolutions;
145251
145251
  filesWithInvalidatedResolutions = void 0;
145252
145252
  return {
145253
- hasInvalidatedResolutions: (path10) => customHasInvalidatedResolutions(path10) || allModuleAndTypeResolutionsAreInvalidated || !!(collected == null ? void 0 : collected.has(path10)) || isFileWithInvalidatedNonRelativeUnresolvedImports(path10),
145253
+ hasInvalidatedResolutions: (path11) => customHasInvalidatedResolutions(path11) || allModuleAndTypeResolutionsAreInvalidated || !!(collected == null ? void 0 : collected.has(path11)) || isFileWithInvalidatedNonRelativeUnresolvedImports(path11),
145254
145254
  hasInvalidatedLibResolutions: (libFileName) => {
145255
145255
  var _a;
145256
145256
  return customHasInvalidatedLibResolutions(libFileName) || !!((_a = resolvedLibraries == null ? void 0 : resolvedLibraries.get(libFileName)) == null ? void 0 : _a.isInvalidated);
@@ -145306,11 +145306,11 @@ ${lanes.join("\n")}
145306
145306
  if (expected) impliedFormatPackageJsons.set(newFile.resolvedPath, newFile.packageJsonLocations);
145307
145307
  else impliedFormatPackageJsons.delete(newFile.resolvedPath);
145308
145308
  });
145309
- impliedFormatPackageJsons.forEach((existing, path10) => {
145310
- const newFile = newProgram == null ? void 0 : newProgram.getSourceFileByPath(path10);
145311
- if (!newFile || newFile.resolvedPath !== path10) {
145309
+ impliedFormatPackageJsons.forEach((existing, path11) => {
145310
+ const newFile = newProgram == null ? void 0 : newProgram.getSourceFileByPath(path11);
145311
+ if (!newFile || newFile.resolvedPath !== path11) {
145312
145312
  existing.forEach((location) => fileWatchesOfAffectingLocations.get(location).files--);
145313
- impliedFormatPackageJsons.delete(path10);
145313
+ impliedFormatPackageJsons.delete(path11);
145314
145314
  }
145315
145315
  });
145316
145316
  }
@@ -145329,16 +145329,16 @@ ${lanes.join("\n")}
145329
145329
  packageDirWatchers.delete(packageDirPath);
145330
145330
  }
145331
145331
  }
145332
- function closeDirectoryWatchesOfFailedLookup(watcher, path10) {
145332
+ function closeDirectoryWatchesOfFailedLookup(watcher, path11) {
145333
145333
  if (watcher.refCount === 0) {
145334
- directoryWatchesOfFailedLookups.delete(path10);
145334
+ directoryWatchesOfFailedLookups.delete(path11);
145335
145335
  watcher.watcher.close();
145336
145336
  }
145337
145337
  }
145338
- function closeFileWatcherOfAffectingLocation(watcher, path10) {
145338
+ function closeFileWatcherOfAffectingLocation(watcher, path11) {
145339
145339
  var _a;
145340
145340
  if (watcher.files === 0 && watcher.resolutions === 0 && !((_a = watcher.symlinks) == null ? void 0 : _a.size)) {
145341
- fileWatchesOfAffectingLocations.delete(path10);
145341
+ fileWatchesOfAffectingLocations.delete(path11);
145342
145342
  watcher.watcher.close();
145343
145343
  }
145344
145344
  }
@@ -145357,10 +145357,10 @@ ${lanes.join("\n")}
145357
145357
  logChanges
145358
145358
  }) {
145359
145359
  var _a;
145360
- const path10 = resolutionHost.toPath(containingFile);
145361
- const resolutionsInFile = perFileCache.get(path10) || perFileCache.set(path10, createModeAwareCache()).get(path10);
145360
+ const path11 = resolutionHost.toPath(containingFile);
145361
+ const resolutionsInFile = perFileCache.get(path11) || perFileCache.set(path11, createModeAwareCache()).get(path11);
145362
145362
  const resolvedModules = [];
145363
- const hasInvalidatedNonRelativeUnresolvedImport = logChanges && isFileWithInvalidatedNonRelativeUnresolvedImports(path10);
145363
+ const hasInvalidatedNonRelativeUnresolvedImport = logChanges && isFileWithInvalidatedNonRelativeUnresolvedImports(path11);
145364
145364
  const program2 = resolutionHost.getCurrentProgram();
145365
145365
  const oldRedirect = program2 && ((_a = program2.getRedirectFromSourceFile(containingFile)) == null ? void 0 : _a.resolvedRef);
145366
145366
  const unmatchedRedirects = oldRedirect ? !redirectedReference || redirectedReference.sourceFile.path !== oldRedirect.sourceFile.path : !!redirectedReference;
@@ -145378,13 +145378,13 @@ ${lanes.join("\n")}
145378
145378
  }
145379
145379
  resolutionsInFile.set(name, mode, resolution);
145380
145380
  if (resolution !== existingResolution) {
145381
- watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, path10, getResolutionWithResolvedFileName, deferWatchingNonRelativeResolution);
145381
+ watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, path11, getResolutionWithResolvedFileName, deferWatchingNonRelativeResolution);
145382
145382
  if (existingResolution) {
145383
- stopWatchFailedLookupLocationOfResolution(existingResolution, path10, getResolutionWithResolvedFileName);
145383
+ stopWatchFailedLookupLocationOfResolution(existingResolution, path11, getResolutionWithResolvedFileName);
145384
145384
  }
145385
145385
  }
145386
145386
  if (logChanges && filesWithChangedSetOfUnresolvedImports && !resolutionIsEqualTo(existingResolution, resolution)) {
145387
- filesWithChangedSetOfUnresolvedImports.push(path10);
145387
+ filesWithChangedSetOfUnresolvedImports.push(path11);
145388
145388
  logChanges = false;
145389
145389
  }
145390
145390
  } else {
@@ -145415,7 +145415,7 @@ ${lanes.join("\n")}
145415
145415
  if (resolutionsInFile.size() !== seenNamesInFile.size()) {
145416
145416
  resolutionsInFile.forEach((resolution, name, mode) => {
145417
145417
  if (!seenNamesInFile.has(name, mode)) {
145418
- stopWatchFailedLookupLocationOfResolution(resolution, path10, getResolutionWithResolvedFileName);
145418
+ stopWatchFailedLookupLocationOfResolution(resolution, path11, getResolutionWithResolvedFileName);
145419
145419
  resolutionsInFile.delete(name, mode);
145420
145420
  }
145421
145421
  });
@@ -145489,18 +145489,18 @@ ${lanes.join("\n")}
145489
145489
  if (!resolution || resolution.isInvalidated) {
145490
145490
  const existingResolution = resolution;
145491
145491
  resolution = resolveLibrary(libraryName, resolveFrom, options, host, libraryResolutionCache);
145492
- const path10 = resolutionHost.toPath(resolveFrom);
145492
+ const path11 = resolutionHost.toPath(resolveFrom);
145493
145493
  watchFailedLookupLocationsOfExternalModuleResolutions(
145494
145494
  libraryName,
145495
145495
  resolution,
145496
- path10,
145496
+ path11,
145497
145497
  getResolvedModuleFromResolution,
145498
145498
  /*deferWatchingNonRelativeResolution*/
145499
145499
  false
145500
145500
  );
145501
145501
  resolvedLibraries.set(libFileName, resolution);
145502
145502
  if (existingResolution) {
145503
- stopWatchFailedLookupLocationOfResolution(existingResolution, path10, getResolvedModuleFromResolution);
145503
+ stopWatchFailedLookupLocationOfResolution(existingResolution, path11, getResolvedModuleFromResolution);
145504
145504
  }
145505
145505
  } else {
145506
145506
  if (isTraceEnabled(options, host)) {
@@ -145519,8 +145519,8 @@ ${lanes.join("\n")}
145519
145519
  }
145520
145520
  function resolveSingleModuleNameWithoutWatching(moduleName, containingFile) {
145521
145521
  var _a, _b;
145522
- const path10 = resolutionHost.toPath(containingFile);
145523
- const resolutionsInFile = resolvedModuleNames.get(path10);
145522
+ const path11 = resolutionHost.toPath(containingFile);
145523
+ const resolutionsInFile = resolvedModuleNames.get(path11);
145524
145524
  const resolution = resolutionsInFile == null ? void 0 : resolutionsInFile.get(
145525
145525
  moduleName,
145526
145526
  /*mode*/
@@ -145677,13 +145677,13 @@ ${lanes.join("\n")}
145677
145677
  (symlinkWatcher.symlinks ?? (symlinkWatcher.symlinks = /* @__PURE__ */ new Set())).add(affectingLocation);
145678
145678
  }
145679
145679
  }
145680
- function invalidateAffectingFileWatcher(path10, packageJsonMap) {
145680
+ function invalidateAffectingFileWatcher(path11, packageJsonMap) {
145681
145681
  var _a;
145682
- const watcher = fileWatchesOfAffectingLocations.get(path10);
145683
- if (watcher == null ? void 0 : watcher.resolutions) (affectingPathChecks ?? (affectingPathChecks = /* @__PURE__ */ new Set())).add(path10);
145684
- if (watcher == null ? void 0 : watcher.files) (affectingPathChecksForFile ?? (affectingPathChecksForFile = /* @__PURE__ */ new Set())).add(path10);
145682
+ const watcher = fileWatchesOfAffectingLocations.get(path11);
145683
+ if (watcher == null ? void 0 : watcher.resolutions) (affectingPathChecks ?? (affectingPathChecks = /* @__PURE__ */ new Set())).add(path11);
145684
+ if (watcher == null ? void 0 : watcher.files) (affectingPathChecksForFile ?? (affectingPathChecksForFile = /* @__PURE__ */ new Set())).add(path11);
145685
145685
  (_a = watcher == null ? void 0 : watcher.symlinks) == null ? void 0 : _a.forEach((path22) => invalidateAffectingFileWatcher(path22, packageJsonMap));
145686
- packageJsonMap == null ? void 0 : packageJsonMap.delete(resolutionHost.toPath(path10));
145686
+ packageJsonMap == null ? void 0 : packageJsonMap.delete(resolutionHost.toPath(path11));
145687
145687
  }
145688
145688
  function watchFailedLookupLocationOfNonRelativeModuleResolutions() {
145689
145689
  nonRelativeExternalModuleResolutions.forEach(watchFailedLookupLocationOfResolution);
@@ -145922,7 +145922,7 @@ ${lanes.join("\n")}
145922
145922
  function invalidatePackageJsonMap() {
145923
145923
  const packageJsonMap = moduleResolutionCache.getPackageJsonInfoCache().getInternalMap();
145924
145924
  if (packageJsonMap && (failedLookupChecks || startsWithPathChecks || isInDirectoryChecks)) {
145925
- packageJsonMap.forEach((_value, path10) => isInvalidatedFailedLookup(path10) ? packageJsonMap.delete(path10) : void 0);
145925
+ packageJsonMap.forEach((_value, path11) => isInvalidatedFailedLookup(path11) ? packageJsonMap.delete(path11) : void 0);
145926
145926
  }
145927
145927
  }
145928
145928
  function invalidateResolutionsOfFailedLookupLocations() {
@@ -146540,9 +146540,9 @@ ${lanes.join("\n")}
146540
146540
  getDefaultLibLocation: maybeBind(host, host.getDefaultLibLocation),
146541
146541
  getDefaultLibFileName: (options) => host.getDefaultLibFileName(options),
146542
146542
  writeFile: createWriteFileMeasuringIO(
146543
- (path10, data, writeByteOrderMark) => host.writeFile(path10, data, writeByteOrderMark),
146544
- (path10) => host.createDirectory(path10),
146545
- (path10) => host.directoryExists(path10)
146543
+ (path11, data, writeByteOrderMark) => host.writeFile(path11, data, writeByteOrderMark),
146544
+ (path11) => host.createDirectory(path11),
146545
+ (path11) => host.directoryExists(path11)
146546
146546
  ),
146547
146547
  getCurrentDirectory: memoize(() => host.getCurrentDirectory()),
146548
146548
  useCaseSensitiveFileNames: () => useCaseSensitiveFileNames2,
@@ -146613,16 +146613,16 @@ ${lanes.join("\n")}
146613
146613
  getCurrentDirectory: memoize(() => system.getCurrentDirectory()),
146614
146614
  getDefaultLibLocation,
146615
146615
  getDefaultLibFileName: (options) => combinePaths(getDefaultLibLocation(), getDefaultLibFileName(options)),
146616
- fileExists: (path10) => system.fileExists(path10),
146617
- readFile: (path10, encoding) => system.readFile(path10, encoding),
146618
- directoryExists: (path10) => system.directoryExists(path10),
146619
- getDirectories: (path10) => system.getDirectories(path10),
146620
- readDirectory: (path10, extensions, exclude, include, depth) => system.readDirectory(path10, extensions, exclude, include, depth),
146616
+ fileExists: (path11) => system.fileExists(path11),
146617
+ readFile: (path11, encoding) => system.readFile(path11, encoding),
146618
+ directoryExists: (path11) => system.directoryExists(path11),
146619
+ getDirectories: (path11) => system.getDirectories(path11),
146620
+ readDirectory: (path11, extensions, exclude, include, depth) => system.readDirectory(path11, extensions, exclude, include, depth),
146621
146621
  realpath: maybeBind(system, system.realpath),
146622
146622
  getEnvironmentVariable: maybeBind(system, system.getEnvironmentVariable),
146623
146623
  trace: (s) => system.write(s + system.newLine),
146624
- createDirectory: (path10) => system.createDirectory(path10),
146625
- writeFile: (path10, data, writeByteOrderMark) => system.writeFile(path10, data, writeByteOrderMark),
146624
+ createDirectory: (path11) => system.createDirectory(path11),
146625
+ writeFile: (path11, data, writeByteOrderMark) => system.writeFile(path11, data, writeByteOrderMark),
146626
146626
  createHash: maybeBind(system, system.createHash),
146627
146627
  createProgram: createProgram2 || createEmitAndSemanticDiagnosticsBuilderProgram,
146628
146628
  storeSignatureInfo: system.storeSignatureInfo,
@@ -146935,7 +146935,7 @@ ${lanes.join("\n")}
146935
146935
  originalWriteFile,
146936
146936
  readFileWithCache
146937
146937
  } = changeCompilerHostLikeToUseCache(compilerHost, toPath3);
146938
- if (isProgramUptoDate(getCurrentProgram(), rootFileNames, compilerOptions, (path10) => getSourceVersion(path10, readFileWithCache), (fileName) => compilerHost.fileExists(fileName), hasInvalidatedResolutions, hasInvalidatedLibResolutions, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) {
146938
+ if (isProgramUptoDate(getCurrentProgram(), rootFileNames, compilerOptions, (path11) => getSourceVersion(path11, readFileWithCache), (fileName) => compilerHost.fileExists(fileName), hasInvalidatedResolutions, hasInvalidatedLibResolutions, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) {
146939
146939
  if (hasChangedConfigFileParsingErrors) {
146940
146940
  if (reportFileChangeDetectedOnCreateProgram) {
146941
146941
  reportWatchDiagnostic(Diagnostics.File_change_detected_Starting_incremental_compilation);
@@ -147029,14 +147029,14 @@ ${lanes.join("\n")}
147029
147029
  return typeof hostSourceFile.version === "boolean";
147030
147030
  }
147031
147031
  function fileExists(fileName) {
147032
- const path10 = toPath3(fileName);
147033
- if (isFileMissingOnHost(sourceFilesCache.get(path10))) {
147032
+ const path11 = toPath3(fileName);
147033
+ if (isFileMissingOnHost(sourceFilesCache.get(path11))) {
147034
147034
  return false;
147035
147035
  }
147036
147036
  return directoryStructureHost.fileExists(fileName);
147037
147037
  }
147038
- function getVersionedSourceFileByPath(fileName, path10, languageVersionOrOptions, onError, shouldCreateNewSourceFile) {
147039
- const hostSourceFile = sourceFilesCache.get(path10);
147038
+ function getVersionedSourceFileByPath(fileName, path11, languageVersionOrOptions, onError, shouldCreateNewSourceFile) {
147039
+ const hostSourceFile = sourceFilesCache.get(path11);
147040
147040
  if (isFileMissingOnHost(hostSourceFile)) {
147041
147041
  return void 0;
147042
147042
  }
@@ -147048,41 +147048,41 @@ ${lanes.join("\n")}
147048
147048
  hostSourceFile.sourceFile = sourceFile;
147049
147049
  hostSourceFile.version = sourceFile.version;
147050
147050
  if (!hostSourceFile.fileWatcher) {
147051
- hostSourceFile.fileWatcher = watchFilePath(path10, fileName, onSourceFileChange, 250, watchOptions, WatchType.SourceFile);
147051
+ hostSourceFile.fileWatcher = watchFilePath(path11, fileName, onSourceFileChange, 250, watchOptions, WatchType.SourceFile);
147052
147052
  }
147053
147053
  } else {
147054
147054
  if (hostSourceFile.fileWatcher) {
147055
147055
  hostSourceFile.fileWatcher.close();
147056
147056
  }
147057
- sourceFilesCache.set(path10, false);
147057
+ sourceFilesCache.set(path11, false);
147058
147058
  }
147059
147059
  } else {
147060
147060
  if (sourceFile) {
147061
- const fileWatcher = watchFilePath(path10, fileName, onSourceFileChange, 250, watchOptions, WatchType.SourceFile);
147062
- sourceFilesCache.set(path10, { sourceFile, version: sourceFile.version, fileWatcher });
147061
+ const fileWatcher = watchFilePath(path11, fileName, onSourceFileChange, 250, watchOptions, WatchType.SourceFile);
147062
+ sourceFilesCache.set(path11, { sourceFile, version: sourceFile.version, fileWatcher });
147063
147063
  } else {
147064
- sourceFilesCache.set(path10, false);
147064
+ sourceFilesCache.set(path11, false);
147065
147065
  }
147066
147066
  }
147067
147067
  return sourceFile;
147068
147068
  }
147069
147069
  return hostSourceFile.sourceFile;
147070
147070
  }
147071
- function nextSourceFileVersion(path10) {
147072
- const hostSourceFile = sourceFilesCache.get(path10);
147071
+ function nextSourceFileVersion(path11) {
147072
+ const hostSourceFile = sourceFilesCache.get(path11);
147073
147073
  if (hostSourceFile !== void 0) {
147074
147074
  if (isFileMissingOnHost(hostSourceFile)) {
147075
- sourceFilesCache.set(path10, { version: false });
147075
+ sourceFilesCache.set(path11, { version: false });
147076
147076
  } else {
147077
147077
  hostSourceFile.version = false;
147078
147078
  }
147079
147079
  }
147080
147080
  }
147081
- function getSourceVersion(path10, readFileWithCache) {
147082
- const hostSourceFile = sourceFilesCache.get(path10);
147081
+ function getSourceVersion(path11, readFileWithCache) {
147082
+ const hostSourceFile = sourceFilesCache.get(path11);
147083
147083
  if (!hostSourceFile) return void 0;
147084
147084
  if (hostSourceFile.version) return hostSourceFile.version;
147085
- const text = readFileWithCache(path10);
147085
+ const text = readFileWithCache(path11);
147086
147086
  return text !== void 0 ? getSourceFileVersionAsHashFromText(compilerHost, text) : void 0;
147087
147087
  }
147088
147088
  function onReleaseOldSourceFile(oldSourceFile, _oldOptions, hasSourceFileByPath) {
@@ -147261,28 +147261,28 @@ ${lanes.join("\n")}
147261
147261
  }
147262
147262
  function onReleaseParsedCommandLine(fileName) {
147263
147263
  var _a;
147264
- const path10 = toPath3(fileName);
147265
- const config = parsedConfigs == null ? void 0 : parsedConfigs.get(path10);
147264
+ const path11 = toPath3(fileName);
147265
+ const config = parsedConfigs == null ? void 0 : parsedConfigs.get(path11);
147266
147266
  if (!config) return;
147267
- parsedConfigs.delete(path10);
147267
+ parsedConfigs.delete(path11);
147268
147268
  if (config.watchedDirectories) clearMap(config.watchedDirectories, closeFileWatcherOf);
147269
147269
  (_a = config.watcher) == null ? void 0 : _a.close();
147270
- clearSharedExtendedConfigFileWatcher(path10, sharedExtendedConfigFileWatchers);
147270
+ clearSharedExtendedConfigFileWatcher(path11, sharedExtendedConfigFileWatchers);
147271
147271
  }
147272
- function watchFilePath(path10, file, callback, pollingInterval, options, watchType) {
147273
- return watchFile2(file, (fileName, eventKind) => callback(fileName, eventKind, path10), pollingInterval, options, watchType);
147272
+ function watchFilePath(path11, file, callback, pollingInterval, options, watchType) {
147273
+ return watchFile2(file, (fileName, eventKind) => callback(fileName, eventKind, path11), pollingInterval, options, watchType);
147274
147274
  }
147275
- function onSourceFileChange(fileName, eventKind, path10) {
147276
- updateCachedSystemWithFile(fileName, path10, eventKind);
147277
- if (eventKind === 2 && sourceFilesCache.has(path10)) {
147278
- resolutionCache.invalidateResolutionOfFile(path10);
147275
+ function onSourceFileChange(fileName, eventKind, path11) {
147276
+ updateCachedSystemWithFile(fileName, path11, eventKind);
147277
+ if (eventKind === 2 && sourceFilesCache.has(path11)) {
147278
+ resolutionCache.invalidateResolutionOfFile(path11);
147279
147279
  }
147280
- nextSourceFileVersion(path10);
147280
+ nextSourceFileVersion(path11);
147281
147281
  scheduleProgramUpdate();
147282
147282
  }
147283
- function updateCachedSystemWithFile(fileName, path10, eventKind) {
147283
+ function updateCachedSystemWithFile(fileName, path11, eventKind) {
147284
147284
  if (cachedDirectoryStructureHost) {
147285
- cachedDirectoryStructureHost.addOrDeleteFile(fileName, path10, eventKind);
147285
+ cachedDirectoryStructureHost.addOrDeleteFile(fileName, path11, eventKind);
147286
147286
  }
147287
147287
  }
147288
147288
  function watchMissingFilePath(missingFilePath, missingFileName) {
@@ -147503,9 +147503,9 @@ ${lanes.join("\n")}
147503
147503
  }
147504
147504
  function createSolutionBuilderHostBase(system, createProgram2, reportDiagnostic, reportSolutionBuilderStatus) {
147505
147505
  const host = createProgramHost(system, createProgram2);
147506
- host.getModifiedTime = system.getModifiedTime ? (path10) => system.getModifiedTime(path10) : returnUndefined;
147507
- host.setModifiedTime = system.setModifiedTime ? (path10, date) => system.setModifiedTime(path10, date) : noop;
147508
- host.deleteFile = system.deleteFile ? (path10) => system.deleteFile(path10) : noop;
147506
+ host.getModifiedTime = system.getModifiedTime ? (path11) => system.getModifiedTime(path11) : returnUndefined;
147507
+ host.setModifiedTime = system.setModifiedTime ? (path11, date) => system.setModifiedTime(path11, date) : noop;
147508
+ host.deleteFile = system.deleteFile ? (path11) => system.deleteFile(path11) : noop;
147509
147509
  host.reportDiagnostic = reportDiagnostic || createDiagnosticReporter(system);
147510
147510
  host.reportSolutionBuilderStatus = reportSolutionBuilderStatus || createBuilderStatusReporter(system);
147511
147511
  host.now = maybeBind(system, system.now);
@@ -147676,8 +147676,8 @@ ${lanes.join("\n")}
147676
147676
  }
147677
147677
  function toResolvedConfigFilePath(state, fileName) {
147678
147678
  const { resolvedConfigFilePaths } = state;
147679
- const path10 = resolvedConfigFilePaths.get(fileName);
147680
- if (path10 !== void 0) return path10;
147679
+ const path11 = resolvedConfigFilePaths.get(fileName);
147680
+ if (path11 !== void 0) return path11;
147681
147681
  const resolvedPath = toPath2(state, fileName);
147682
147682
  resolvedConfigFilePaths.set(fileName, resolvedPath);
147683
147683
  return resolvedPath;
@@ -148065,7 +148065,7 @@ ${lanes.join("\n")}
148065
148065
  void 0,
148066
148066
  (name, text, writeByteOrderMark, onError, sourceFiles, data) => {
148067
148067
  var _a2;
148068
- const path10 = toPath2(state, name);
148068
+ const path11 = toPath2(state, name);
148069
148069
  emittedOutputs.set(toPath2(state, name), name);
148070
148070
  if (data == null ? void 0 : data.buildInfo) {
148071
148071
  now || (now = getCurrentTime(state.host));
@@ -148095,7 +148095,7 @@ ${lanes.join("\n")}
148095
148095
  );
148096
148096
  if (data == null ? void 0 : data.differsOnlyInMap) state.host.setModifiedTime(name, modifiedTime);
148097
148097
  else if (!isIncremental && state.watch) {
148098
- (outputTimeStampMap || (outputTimeStampMap = getOutputTimeStampMap(state, projectPath))).set(path10, now || (now = getCurrentTime(state.host)));
148098
+ (outputTimeStampMap || (outputTimeStampMap = getOutputTimeStampMap(state, projectPath))).set(path11, now || (now = getCurrentTime(state.host)));
148099
148099
  }
148100
148100
  },
148101
148101
  cancellationToken,
@@ -148279,8 +148279,8 @@ ${lanes.join("\n")}
148279
148279
  return !!value.watcher;
148280
148280
  }
148281
148281
  function getModifiedTime2(state, fileName) {
148282
- const path10 = toPath2(state, fileName);
148283
- const existing = state.filesWatched.get(path10);
148282
+ const path11 = toPath2(state, fileName);
148283
+ const existing = state.filesWatched.get(path11);
148284
148284
  if (state.watch && !!existing) {
148285
148285
  if (!isFileWatcherWithModifiedTime(existing)) return existing;
148286
148286
  if (existing.modifiedTime) return existing.modifiedTime;
@@ -148288,20 +148288,20 @@ ${lanes.join("\n")}
148288
148288
  const result = getModifiedTime(state.host, fileName);
148289
148289
  if (state.watch) {
148290
148290
  if (existing) existing.modifiedTime = result;
148291
- else state.filesWatched.set(path10, result);
148291
+ else state.filesWatched.set(path11, result);
148292
148292
  }
148293
148293
  return result;
148294
148294
  }
148295
148295
  function watchFile(state, file, callback, pollingInterval, options, watchType, project) {
148296
- const path10 = toPath2(state, file);
148297
- const existing = state.filesWatched.get(path10);
148296
+ const path11 = toPath2(state, file);
148297
+ const existing = state.filesWatched.get(path11);
148298
148298
  if (existing && isFileWatcherWithModifiedTime(existing)) {
148299
148299
  existing.callbacks.push(callback);
148300
148300
  } else {
148301
148301
  const watcher = state.watchFile(
148302
148302
  file,
148303
148303
  (fileName, eventKind, modifiedTime) => {
148304
- const existing2 = Debug.checkDefined(state.filesWatched.get(path10));
148304
+ const existing2 = Debug.checkDefined(state.filesWatched.get(path11));
148305
148305
  Debug.assert(isFileWatcherWithModifiedTime(existing2));
148306
148306
  existing2.modifiedTime = modifiedTime;
148307
148307
  existing2.callbacks.forEach((cb) => cb(fileName, eventKind, modifiedTime));
@@ -148311,14 +148311,14 @@ ${lanes.join("\n")}
148311
148311
  watchType,
148312
148312
  project
148313
148313
  );
148314
- state.filesWatched.set(path10, { callbacks: [callback], watcher, modifiedTime: existing });
148314
+ state.filesWatched.set(path11, { callbacks: [callback], watcher, modifiedTime: existing });
148315
148315
  }
148316
148316
  return {
148317
148317
  close: () => {
148318
- const existing2 = Debug.checkDefined(state.filesWatched.get(path10));
148318
+ const existing2 = Debug.checkDefined(state.filesWatched.get(path11));
148319
148319
  Debug.assert(isFileWatcherWithModifiedTime(existing2));
148320
148320
  if (existing2.callbacks.length === 1) {
148321
- state.filesWatched.delete(path10);
148321
+ state.filesWatched.delete(path11);
148322
148322
  closeFileWatcherOf(existing2);
148323
148323
  } else {
148324
148324
  unorderedRemoveItem(existing2.callbacks, callback);
@@ -148333,19 +148333,19 @@ ${lanes.join("\n")}
148333
148333
  return result;
148334
148334
  }
148335
148335
  function getBuildInfoCacheEntry(state, buildInfoPath, resolvedConfigPath) {
148336
- const path10 = toPath2(state, buildInfoPath);
148336
+ const path11 = toPath2(state, buildInfoPath);
148337
148337
  const existing = state.buildInfoCache.get(resolvedConfigPath);
148338
- return (existing == null ? void 0 : existing.path) === path10 ? existing : void 0;
148338
+ return (existing == null ? void 0 : existing.path) === path11 ? existing : void 0;
148339
148339
  }
148340
148340
  function getBuildInfo3(state, buildInfoPath, resolvedConfigPath, modifiedTime) {
148341
- const path10 = toPath2(state, buildInfoPath);
148341
+ const path11 = toPath2(state, buildInfoPath);
148342
148342
  const existing = state.buildInfoCache.get(resolvedConfigPath);
148343
- if (existing !== void 0 && existing.path === path10) {
148343
+ if (existing !== void 0 && existing.path === path11) {
148344
148344
  return existing.buildInfo || void 0;
148345
148345
  }
148346
148346
  const value = state.readFileWithCache(buildInfoPath);
148347
148347
  const buildInfo = value ? getBuildInfo(buildInfoPath, value) : void 0;
148348
- state.buildInfoCache.set(resolvedConfigPath, { path: path10, buildInfo: buildInfo || false, modifiedTime: modifiedTime || missingFileModifiedTime });
148348
+ state.buildInfoCache.set(resolvedConfigPath, { path: path11, buildInfo: buildInfo || false, modifiedTime: modifiedTime || missingFileModifiedTime });
148349
148349
  return buildInfo;
148350
148350
  }
148351
148351
  function checkConfigFileUpToDateStatus(state, configFile, oldestOutputFileTime, oldestOutputFileName) {
@@ -148526,11 +148526,11 @@ ${lanes.join("\n")}
148526
148526
  const outputTimeStampMap = getOutputTimeStampMap(state, resolvedPath);
148527
148527
  for (const output of outputs) {
148528
148528
  if (output === buildInfoPath) continue;
148529
- const path10 = toPath2(state, output);
148530
- let outputTime = outputTimeStampMap == null ? void 0 : outputTimeStampMap.get(path10);
148529
+ const path11 = toPath2(state, output);
148530
+ let outputTime = outputTimeStampMap == null ? void 0 : outputTimeStampMap.get(path11);
148531
148531
  if (!outputTime) {
148532
148532
  outputTime = getModifiedTime(state.host, output);
148533
- outputTimeStampMap == null ? void 0 : outputTimeStampMap.set(path10, outputTime);
148533
+ outputTimeStampMap == null ? void 0 : outputTimeStampMap.set(path11, outputTime);
148534
148534
  }
148535
148535
  if (outputTime === missingFileModifiedTime) {
148536
148536
  return {
@@ -148584,7 +148584,7 @@ ${lanes.join("\n")}
148584
148584
  const packageJsonLookups = state.lastCachedPackageJsonLookups.get(resolvedPath);
148585
148585
  const dependentPackageFileStatus = packageJsonLookups && forEachKey(
148586
148586
  packageJsonLookups,
148587
- (path10) => checkConfigFileUpToDateStatus(state, path10, oldestOutputFileTime, oldestOutputFileName)
148587
+ (path11) => checkConfigFileUpToDateStatus(state, path11, oldestOutputFileTime, oldestOutputFileName)
148588
148588
  );
148589
148589
  if (dependentPackageFileStatus) return dependentPackageFileStatus;
148590
148590
  return {
@@ -148634,8 +148634,8 @@ ${lanes.join("\n")}
148634
148634
  if (!skipOutputs || outputs.length !== skipOutputs.size) {
148635
148635
  let reportVerbose = !!state.options.verbose;
148636
148636
  for (const file of outputs) {
148637
- const path10 = toPath2(state, file);
148638
- if (skipOutputs == null ? void 0 : skipOutputs.has(path10)) continue;
148637
+ const path11 = toPath2(state, file);
148638
+ if (skipOutputs == null ? void 0 : skipOutputs.has(path11)) continue;
148639
148639
  if (reportVerbose) {
148640
148640
  reportVerbose = false;
148641
148641
  reportStatus(state, verboseMessage, proj.options.configFilePath);
@@ -148643,8 +148643,8 @@ ${lanes.join("\n")}
148643
148643
  host.setModifiedTime(file, now || (now = getCurrentTime(state.host)));
148644
148644
  if (file === buildInfoPath) getBuildInfoCacheEntry(state, buildInfoPath, projectPath).modifiedTime = now;
148645
148645
  else if (outputTimeStampMap) {
148646
- outputTimeStampMap.set(path10, now);
148647
- modifiedOutputs.add(path10);
148646
+ outputTimeStampMap.set(path11, now);
148647
+ modifiedOutputs.add(path11);
148648
148648
  }
148649
148649
  }
148650
148650
  }
@@ -149072,8 +149072,8 @@ ${lanes.join("\n")}
149072
149072
  close: () => stopWatching(state)
149073
149073
  };
149074
149074
  }
149075
- function relName(state, path10) {
149076
- return convertToRelativePath(path10, state.compilerHost.getCurrentDirectory(), state.compilerHost.getCanonicalFileName);
149075
+ function relName(state, path11) {
149076
+ return convertToRelativePath(path11, state.compilerHost.getCurrentDirectory(), state.compilerHost.getCanonicalFileName);
149077
149077
  }
149078
149078
  function reportStatus(state, message, ...args) {
149079
149079
  state.host.reportSolutionBuilderStatus(createCompilerDiagnostic(message, ...args));
@@ -149292,13 +149292,13 @@ ${lanes.join("\n")}
149292
149292
  } else if (file.isDeclarationFile) {
149293
149293
  return "Definitions";
149294
149294
  }
149295
- const path10 = file.path;
149296
- if (fileExtensionIsOneOf(path10, supportedTSExtensionsFlat)) {
149295
+ const path11 = file.path;
149296
+ if (fileExtensionIsOneOf(path11, supportedTSExtensionsFlat)) {
149297
149297
  return "TypeScript";
149298
- } else if (fileExtensionIsOneOf(path10, supportedJSExtensionsFlat)) {
149298
+ } else if (fileExtensionIsOneOf(path11, supportedJSExtensionsFlat)) {
149299
149299
  return "JavaScript";
149300
149300
  } else if (fileExtensionIs(
149301
- path10,
149301
+ path11,
149302
149302
  ".json"
149303
149303
  /* Json */
149304
149304
  )) {
@@ -149910,7 +149910,7 @@ ${lanes.join("\n")}
149910
149910
  );
149911
149911
  }
149912
149912
  }
149913
- const commandLine = parseCommandLine(commandLineArgs, (path10) => system.readFile(path10));
149913
+ const commandLine = parseCommandLine(commandLineArgs, (path11) => system.readFile(path11));
149914
149914
  if (commandLine.options.generateCpuProfile && system.enableCPUProfiler) {
149915
149915
  system.enableCPUProfiler(commandLine.options.generateCpuProfile, () => executeCommandLineWorker(
149916
149916
  system,
@@ -151786,12 +151786,12 @@ ${lanes.join("\n")}
151786
151786
  return nodeCoreModules.has(moduleName) ? "node" : moduleName;
151787
151787
  }
151788
151788
  function loadSafeList(host, safeListPath) {
151789
- const result = readConfigFile(safeListPath, (path10) => host.readFile(path10));
151789
+ const result = readConfigFile(safeListPath, (path11) => host.readFile(path11));
151790
151790
  return new Map(Object.entries(result.config));
151791
151791
  }
151792
151792
  function loadTypesMap(host, typesMapPath) {
151793
151793
  var _a;
151794
- const result = readConfigFile(typesMapPath, (path10) => host.readFile(path10));
151794
+ const result = readConfigFile(typesMapPath, (path11) => host.readFile(path11));
151795
151795
  if ((_a = result.config) == null ? void 0 : _a.simpleMap) {
151796
151796
  return new Map(Object.entries(result.config.simpleMap));
151797
151797
  }
@@ -151803,9 +151803,9 @@ ${lanes.join("\n")}
151803
151803
  }
151804
151804
  const inferredTypings = /* @__PURE__ */ new Map();
151805
151805
  fileNames = mapDefined(fileNames, (fileName) => {
151806
- const path10 = normalizePath(fileName);
151807
- if (hasJSFileExtension(path10)) {
151808
- return path10;
151806
+ const path11 = normalizePath(fileName);
151807
+ if (hasJSFileExtension(path11)) {
151808
+ return path11;
151809
151809
  }
151810
151810
  });
151811
151811
  const filesToWatch = [];
@@ -151867,7 +151867,7 @@ ${lanes.join("\n")}
151867
151867
  let manifestTypingNames;
151868
151868
  if (host.fileExists(manifestPath)) {
151869
151869
  filesToWatch2.push(manifestPath);
151870
- manifest = readConfigFile(manifestPath, (path10) => host.readFile(path10)).config;
151870
+ manifest = readConfigFile(manifestPath, (path11) => host.readFile(path11)).config;
151871
151871
  manifestTypingNames = flatMap([manifest.dependencies, manifest.devDependencies, manifest.optionalDependencies, manifest.peerDependencies], getOwnKeys);
151872
151872
  addInferredTypings(manifestTypingNames, `Typing names in '${manifestPath}' dependencies`);
151873
151873
  }
@@ -151901,7 +151901,7 @@ ${lanes.join("\n")}
151901
151901
  if (log) log(`Searching for typing names in ${packagesFolderPath}; all files: ${JSON.stringify(dependencyManifestNames)}`);
151902
151902
  for (const manifestPath2 of dependencyManifestNames) {
151903
151903
  const normalizedFileName = normalizePath(manifestPath2);
151904
- const result2 = readConfigFile(normalizedFileName, (path10) => host.readFile(path10));
151904
+ const result2 = readConfigFile(normalizedFileName, (path11) => host.readFile(path11));
151905
151905
  const manifest2 = result2.config;
151906
151906
  if (!manifest2.name) {
151907
151907
  continue;
@@ -154681,14 +154681,14 @@ ${lanes.join("\n")}
154681
154681
  function tryGetDirectories(host, directoryName) {
154682
154682
  return tryIOAndConsumeErrors(host, host.getDirectories, directoryName) || [];
154683
154683
  }
154684
- function tryReadDirectory(host, path10, extensions, exclude, include) {
154685
- return tryIOAndConsumeErrors(host, host.readDirectory, path10, extensions, exclude, include) || emptyArray;
154684
+ function tryReadDirectory(host, path11, extensions, exclude, include) {
154685
+ return tryIOAndConsumeErrors(host, host.readDirectory, path11, extensions, exclude, include) || emptyArray;
154686
154686
  }
154687
- function tryFileExists(host, path10) {
154688
- return tryIOAndConsumeErrors(host, host.fileExists, path10);
154687
+ function tryFileExists(host, path11) {
154688
+ return tryIOAndConsumeErrors(host, host.fileExists, path11);
154689
154689
  }
154690
- function tryDirectoryExists(host, path10) {
154691
- return tryAndIgnoreErrors(() => directoryProbablyExists(path10, host)) || false;
154690
+ function tryDirectoryExists(host, path11) {
154691
+ return tryAndIgnoreErrors(() => directoryProbablyExists(path11, host)) || false;
154692
154692
  }
154693
154693
  function tryAndIgnoreErrors(cb) {
154694
154694
  try {
@@ -155530,13 +155530,13 @@ ${lanes.join("\n")}
155530
155530
  function getIsExcluded(excludePatterns, host) {
155531
155531
  var _a;
155532
155532
  const realpathsWithSymlinks = (_a = host.getSymlinkCache) == null ? void 0 : _a.call(host).getSymlinkedDirectoriesByRealpath();
155533
- return ({ fileName, path: path10 }) => {
155533
+ return ({ fileName, path: path11 }) => {
155534
155534
  if (excludePatterns.some((p) => p.test(fileName))) return true;
155535
155535
  if ((realpathsWithSymlinks == null ? void 0 : realpathsWithSymlinks.size) && pathContainsNodeModules(fileName)) {
155536
155536
  let dir = getDirectoryPath(fileName);
155537
155537
  return forEachAncestorDirectoryStoppingAtGlobalCache(
155538
155538
  host,
155539
- getDirectoryPath(path10),
155539
+ getDirectoryPath(path11),
155540
155540
  (dirPath) => {
155541
155541
  const symlinks = realpathsWithSymlinks.get(ensureTrailingDirectorySeparator(dirPath));
155542
155542
  if (symlinks) {
@@ -157192,14 +157192,14 @@ ${lanes.join("\n")}
157192
157192
  return settingsOrHost;
157193
157193
  }
157194
157194
  function acquireDocument(fileName, compilationSettings, scriptSnapshot, version2, scriptKind, languageVersionOrOptions) {
157195
- const path10 = toPath(fileName, currentDirectory, getCanonicalFileName);
157195
+ const path11 = toPath(fileName, currentDirectory, getCanonicalFileName);
157196
157196
  const key = getKeyForCompilationSettings(getCompilationSettings(compilationSettings));
157197
- return acquireDocumentWithKey(fileName, path10, compilationSettings, key, scriptSnapshot, version2, scriptKind, languageVersionOrOptions);
157197
+ return acquireDocumentWithKey(fileName, path11, compilationSettings, key, scriptSnapshot, version2, scriptKind, languageVersionOrOptions);
157198
157198
  }
157199
- function acquireDocumentWithKey(fileName, path10, compilationSettings, key, scriptSnapshot, version2, scriptKind, languageVersionOrOptions) {
157199
+ function acquireDocumentWithKey(fileName, path11, compilationSettings, key, scriptSnapshot, version2, scriptKind, languageVersionOrOptions) {
157200
157200
  return acquireOrUpdateDocument(
157201
157201
  fileName,
157202
- path10,
157202
+ path11,
157203
157203
  compilationSettings,
157204
157204
  key,
157205
157205
  scriptSnapshot,
@@ -157211,14 +157211,14 @@ ${lanes.join("\n")}
157211
157211
  );
157212
157212
  }
157213
157213
  function updateDocument(fileName, compilationSettings, scriptSnapshot, version2, scriptKind, languageVersionOrOptions) {
157214
- const path10 = toPath(fileName, currentDirectory, getCanonicalFileName);
157214
+ const path11 = toPath(fileName, currentDirectory, getCanonicalFileName);
157215
157215
  const key = getKeyForCompilationSettings(getCompilationSettings(compilationSettings));
157216
- return updateDocumentWithKey(fileName, path10, compilationSettings, key, scriptSnapshot, version2, scriptKind, languageVersionOrOptions);
157216
+ return updateDocumentWithKey(fileName, path11, compilationSettings, key, scriptSnapshot, version2, scriptKind, languageVersionOrOptions);
157217
157217
  }
157218
- function updateDocumentWithKey(fileName, path10, compilationSettings, key, scriptSnapshot, version2, scriptKind, languageVersionOrOptions) {
157218
+ function updateDocumentWithKey(fileName, path11, compilationSettings, key, scriptSnapshot, version2, scriptKind, languageVersionOrOptions) {
157219
157219
  return acquireOrUpdateDocument(
157220
157220
  fileName,
157221
- path10,
157221
+ path11,
157222
157222
  getCompilationSettings(compilationSettings),
157223
157223
  key,
157224
157224
  scriptSnapshot,
@@ -157234,7 +157234,7 @@ ${lanes.join("\n")}
157234
157234
  Debug.assert(scriptKind === void 0 || !entry || entry.sourceFile.scriptKind === scriptKind, `Script kind should match provided ScriptKind:${scriptKind} and sourceFile.scriptKind: ${entry == null ? void 0 : entry.sourceFile.scriptKind}, !entry: ${!entry}`);
157235
157235
  return entry;
157236
157236
  }
157237
- function acquireOrUpdateDocument(fileName, path10, compilationSettingsOrHost, key, scriptSnapshot, version2, acquiring, scriptKind, languageVersionOrOptions) {
157237
+ function acquireOrUpdateDocument(fileName, path11, compilationSettingsOrHost, key, scriptSnapshot, version2, acquiring, scriptKind, languageVersionOrOptions) {
157238
157238
  var _a, _b, _c, _d;
157239
157239
  scriptKind = ensureScriptKind(fileName, scriptKind);
157240
157240
  const compilationSettings = getCompilationSettings(compilationSettingsOrHost);
@@ -157242,7 +157242,7 @@ ${lanes.join("\n")}
157242
157242
  const scriptTarget = scriptKind === 6 ? 100 : getEmitScriptTarget(compilationSettings);
157243
157243
  const sourceFileOptions = typeof languageVersionOrOptions === "object" ? languageVersionOrOptions : {
157244
157244
  languageVersion: scriptTarget,
157245
- impliedNodeFormat: host && getImpliedNodeFormatForFile(path10, (_d = (_c = (_b = (_a = host.getCompilerHost) == null ? void 0 : _a.call(host)) == null ? void 0 : _b.getModuleResolutionCache) == null ? void 0 : _c.call(_b)) == null ? void 0 : _d.getPackageJsonInfoCache(), host, compilationSettings),
157245
+ impliedNodeFormat: host && getImpliedNodeFormatForFile(path11, (_d = (_c = (_b = (_a = host.getCompilerHost) == null ? void 0 : _a.call(host)) == null ? void 0 : _b.getModuleResolutionCache) == null ? void 0 : _c.call(_b)) == null ? void 0 : _d.getPackageJsonInfoCache(), host, compilationSettings),
157246
157246
  setExternalModuleIndicator: getSetExternalModuleIndicator(compilationSettings),
157247
157247
  jsDocParsingMode
157248
157248
  };
@@ -157255,15 +157255,15 @@ ${lanes.join("\n")}
157255
157255
  if (buckets.size > oldBucketCount) {
157256
157256
  tracing.instant(tracing.Phase.Session, "createdDocumentRegistryBucket", { configFilePath: compilationSettings.configFilePath, key: keyWithMode });
157257
157257
  }
157258
- const otherBucketKey = !isDeclarationFileName(path10) && forEachEntry(buckets, (bucket2, bucketKey) => bucketKey !== keyWithMode && bucket2.has(path10) && bucketKey);
157258
+ const otherBucketKey = !isDeclarationFileName(path11) && forEachEntry(buckets, (bucket2, bucketKey) => bucketKey !== keyWithMode && bucket2.has(path11) && bucketKey);
157259
157259
  if (otherBucketKey) {
157260
- tracing.instant(tracing.Phase.Session, "documentRegistryBucketOverlap", { path: path10, key1: otherBucketKey, key2: keyWithMode });
157260
+ tracing.instant(tracing.Phase.Session, "documentRegistryBucketOverlap", { path: path11, key1: otherBucketKey, key2: keyWithMode });
157261
157261
  }
157262
157262
  }
157263
- const bucketEntry = bucket.get(path10);
157263
+ const bucketEntry = bucket.get(path11);
157264
157264
  let entry = bucketEntry && getDocumentRegistryEntry(bucketEntry, scriptKind);
157265
157265
  if (!entry && externalCache) {
157266
- const sourceFile = externalCache.getDocument(keyWithMode, path10);
157266
+ const sourceFile = externalCache.getDocument(keyWithMode, path11);
157267
157267
  if (sourceFile && sourceFile.scriptKind === scriptKind && sourceFile.text === getSnapshotText(scriptSnapshot)) {
157268
157268
  Debug.assert(acquiring);
157269
157269
  entry = {
@@ -157284,7 +157284,7 @@ ${lanes.join("\n")}
157284
157284
  scriptKind
157285
157285
  );
157286
157286
  if (externalCache) {
157287
- externalCache.setDocument(keyWithMode, path10, sourceFile);
157287
+ externalCache.setDocument(keyWithMode, path11, sourceFile);
157288
157288
  }
157289
157289
  entry = {
157290
157290
  sourceFile,
@@ -157295,7 +157295,7 @@ ${lanes.join("\n")}
157295
157295
  if (entry.sourceFile.version !== version2) {
157296
157296
  entry.sourceFile = updateLanguageServiceSourceFile(entry.sourceFile, scriptSnapshot, version2, scriptSnapshot.getChangeRange(entry.sourceFile.scriptSnapshot));
157297
157297
  if (externalCache) {
157298
- externalCache.setDocument(keyWithMode, path10, entry.sourceFile);
157298
+ externalCache.setDocument(keyWithMode, path11, entry.sourceFile);
157299
157299
  }
157300
157300
  }
157301
157301
  if (acquiring) {
@@ -157306,35 +157306,35 @@ ${lanes.join("\n")}
157306
157306
  return entry.sourceFile;
157307
157307
  function setBucketEntry() {
157308
157308
  if (!bucketEntry) {
157309
- bucket.set(path10, entry);
157309
+ bucket.set(path11, entry);
157310
157310
  } else if (isDocumentRegistryEntry(bucketEntry)) {
157311
157311
  const scriptKindMap = /* @__PURE__ */ new Map();
157312
157312
  scriptKindMap.set(bucketEntry.sourceFile.scriptKind, bucketEntry);
157313
157313
  scriptKindMap.set(scriptKind, entry);
157314
- bucket.set(path10, scriptKindMap);
157314
+ bucket.set(path11, scriptKindMap);
157315
157315
  } else {
157316
157316
  bucketEntry.set(scriptKind, entry);
157317
157317
  }
157318
157318
  }
157319
157319
  }
157320
157320
  function releaseDocument(fileName, compilationSettings, scriptKind, impliedNodeFormat) {
157321
- const path10 = toPath(fileName, currentDirectory, getCanonicalFileName);
157321
+ const path11 = toPath(fileName, currentDirectory, getCanonicalFileName);
157322
157322
  const key = getKeyForCompilationSettings(compilationSettings);
157323
- return releaseDocumentWithKey(path10, key, scriptKind, impliedNodeFormat);
157323
+ return releaseDocumentWithKey(path11, key, scriptKind, impliedNodeFormat);
157324
157324
  }
157325
- function releaseDocumentWithKey(path10, key, scriptKind, impliedNodeFormat) {
157325
+ function releaseDocumentWithKey(path11, key, scriptKind, impliedNodeFormat) {
157326
157326
  const bucket = Debug.checkDefined(buckets.get(getDocumentRegistryBucketKeyWithMode(key, impliedNodeFormat)));
157327
- const bucketEntry = bucket.get(path10);
157327
+ const bucketEntry = bucket.get(path11);
157328
157328
  const entry = getDocumentRegistryEntry(bucketEntry, scriptKind);
157329
157329
  entry.languageServiceRefCount--;
157330
157330
  Debug.assert(entry.languageServiceRefCount >= 0);
157331
157331
  if (entry.languageServiceRefCount === 0) {
157332
157332
  if (isDocumentRegistryEntry(bucketEntry)) {
157333
- bucket.delete(path10);
157333
+ bucket.delete(path11);
157334
157334
  } else {
157335
157335
  bucketEntry.delete(scriptKind);
157336
157336
  if (bucketEntry.size === 1) {
157337
- bucket.set(path10, firstDefinedIterator(bucketEntry.values(), identity));
157337
+ bucket.set(path11, firstDefinedIterator(bucketEntry.values(), identity));
157338
157338
  }
157339
157339
  }
157340
157340
  }
@@ -157370,10 +157370,10 @@ ${lanes.join("\n")}
157370
157370
  }
157371
157371
  function getPathUpdater(oldFileOrDirPath, newFileOrDirPath, getCanonicalFileName, sourceMapper) {
157372
157372
  const canonicalOldPath = getCanonicalFileName(oldFileOrDirPath);
157373
- return (path10) => {
157374
- const originalPath = sourceMapper && sourceMapper.tryGetSourcePosition({ fileName: path10, pos: 0 });
157375
- const updatedPath = getUpdatedPath(originalPath ? originalPath.fileName : path10);
157376
- return originalPath ? updatedPath === void 0 ? void 0 : makeCorrespondingRelativeChange(originalPath.fileName, updatedPath, path10, getCanonicalFileName) : updatedPath;
157373
+ return (path11) => {
157374
+ const originalPath = sourceMapper && sourceMapper.tryGetSourcePosition({ fileName: path11, pos: 0 });
157375
+ const updatedPath = getUpdatedPath(originalPath ? originalPath.fileName : path11);
157376
+ return originalPath ? updatedPath === void 0 ? void 0 : makeCorrespondingRelativeChange(originalPath.fileName, updatedPath, path11, getCanonicalFileName) : updatedPath;
157377
157377
  };
157378
157378
  function getUpdatedPath(pathToUpdate) {
157379
157379
  if (getCanonicalFileName(pathToUpdate) === canonicalOldPath) return newFileOrDirPath;
@@ -157449,10 +157449,10 @@ ${lanes.join("\n")}
157449
157449
  }
157450
157450
  return false;
157451
157451
  }
157452
- function relativePath(path10) {
157452
+ function relativePath(path11) {
157453
157453
  return getRelativePathFromDirectory(
157454
157454
  configDir,
157455
- path10,
157455
+ path11,
157456
157456
  /*ignoreCase*/
157457
157457
  !useCaseSensitiveFileNames2
157458
157458
  );
@@ -158260,8 +158260,8 @@ ${lanes.join("\n")}
158260
158260
  return toPath(fileName, currentDirectory, getCanonicalFileName);
158261
158261
  }
158262
158262
  function getDocumentPositionMapper2(generatedFileName, sourceFileName) {
158263
- const path10 = toPath3(generatedFileName);
158264
- const value = documentPositionMappers.get(path10);
158263
+ const path11 = toPath3(generatedFileName);
158264
+ const value = documentPositionMappers.get(path11);
158265
158265
  if (value) return value;
158266
158266
  let mapper;
158267
158267
  if (host.getDocumentPositionMapper) {
@@ -158275,7 +158275,7 @@ ${lanes.join("\n")}
158275
158275
  (f) => !host.fileExists || host.fileExists(f) ? host.readFile(f) : void 0
158276
158276
  );
158277
158277
  }
158278
- documentPositionMappers.set(path10, mapper || identitySourceMapConsumer);
158278
+ documentPositionMappers.set(path11, mapper || identitySourceMapConsumer);
158279
158279
  return mapper || identitySourceMapConsumer;
158280
158280
  }
158281
158281
  function tryGetSourcePosition(info) {
@@ -158303,21 +158303,21 @@ ${lanes.join("\n")}
158303
158303
  function getSourceFile(fileName) {
158304
158304
  const program2 = host.getProgram();
158305
158305
  if (!program2) return void 0;
158306
- const path10 = toPath3(fileName);
158307
- const file = program2.getSourceFileByPath(path10);
158308
- return file && file.resolvedPath === path10 ? file : void 0;
158306
+ const path11 = toPath3(fileName);
158307
+ const file = program2.getSourceFileByPath(path11);
158308
+ return file && file.resolvedPath === path11 ? file : void 0;
158309
158309
  }
158310
158310
  function getOrCreateSourceFileLike(fileName) {
158311
- const path10 = toPath3(fileName);
158312
- const fileFromCache = sourceFileLike.get(path10);
158311
+ const path11 = toPath3(fileName);
158312
+ const fileFromCache = sourceFileLike.get(path11);
158313
158313
  if (fileFromCache !== void 0) return fileFromCache ? fileFromCache : void 0;
158314
158314
  if (!host.readFile || host.fileExists && !host.fileExists(fileName)) {
158315
- sourceFileLike.set(path10, false);
158315
+ sourceFileLike.set(path11, false);
158316
158316
  return void 0;
158317
158317
  }
158318
158318
  const text = host.readFile(fileName);
158319
158319
  const file = text ? createSourceFileLike(text) : false;
158320
- sourceFileLike.set(path10, file);
158320
+ sourceFileLike.set(path11, file);
158321
158321
  return file ? file : void 0;
158322
158322
  }
158323
158323
  function getSourceFileLike(fileName) {
@@ -166403,12 +166403,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
166403
166403
  directoryExists: (directoryName) => {
166404
166404
  return directoryProbablyExists(directoryName, host);
166405
166405
  },
166406
- getDirectories: (path10) => {
166407
- return host.getDirectories ? host.getDirectories(path10) : [];
166406
+ getDirectories: (path11) => {
166407
+ return host.getDirectories ? host.getDirectories(path11) : [];
166408
166408
  },
166409
- readDirectory: (path10, extensions, exclude, include, depth) => {
166409
+ readDirectory: (path11, extensions, exclude, include, depth) => {
166410
166410
  Debug.checkDefined(host.readDirectory, "'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'");
166411
- return host.readDirectory(path10, extensions, exclude, include, depth);
166411
+ return host.readDirectory(path11, extensions, exclude, include, depth);
166412
166412
  },
166413
166413
  onReleaseOldSourceFile,
166414
166414
  onReleaseParsedCommandLine,
@@ -166471,11 +166471,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
166471
166471
  program2.getTypeChecker();
166472
166472
  return;
166473
166473
  function getParsedCommandLine(fileName) {
166474
- const path10 = toPath(fileName, currentDirectory, getCanonicalFileName);
166475
- const existing = parsedCommandLines == null ? void 0 : parsedCommandLines.get(path10);
166474
+ const path11 = toPath(fileName, currentDirectory, getCanonicalFileName);
166475
+ const existing = parsedCommandLines == null ? void 0 : parsedCommandLines.get(path11);
166476
166476
  if (existing !== void 0) return existing || void 0;
166477
166477
  const result = host.getParsedCommandLine ? host.getParsedCommandLine(fileName) : getParsedCommandLineOfConfigFileUsingSourceFile(fileName);
166478
- (parsedCommandLines || (parsedCommandLines = /* @__PURE__ */ new Map())).set(path10, result || false);
166478
+ (parsedCommandLines || (parsedCommandLines = /* @__PURE__ */ new Map())).set(path11, result || false);
166479
166479
  return result;
166480
166480
  }
166481
166481
  function getParsedCommandLineOfConfigFileUsingSourceFile(configFileName) {
@@ -166517,7 +166517,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
166517
166517
  function getOrCreateSourceFile(fileName, languageVersionOrOptions, onError, shouldCreateNewSourceFile) {
166518
166518
  return getOrCreateSourceFileByPath(fileName, toPath(fileName, currentDirectory, getCanonicalFileName), languageVersionOrOptions, onError, shouldCreateNewSourceFile);
166519
166519
  }
166520
- function getOrCreateSourceFileByPath(fileName, path10, languageVersionOrOptions, _onError, shouldCreateNewSourceFile) {
166520
+ function getOrCreateSourceFileByPath(fileName, path11, languageVersionOrOptions, _onError, shouldCreateNewSourceFile) {
166521
166521
  Debug.assert(compilerHost, "getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");
166522
166522
  const scriptSnapshot = host.getScriptSnapshot(fileName);
166523
166523
  if (!scriptSnapshot) {
@@ -166526,17 +166526,17 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
166526
166526
  const scriptKind = getScriptKind(fileName, host);
166527
166527
  const scriptVersion = host.getScriptVersion(fileName);
166528
166528
  if (!shouldCreateNewSourceFile) {
166529
- const oldSourceFile = program2 && program2.getSourceFileByPath(path10);
166529
+ const oldSourceFile = program2 && program2.getSourceFileByPath(path11);
166530
166530
  if (oldSourceFile) {
166531
166531
  if (scriptKind === oldSourceFile.scriptKind || releasedScriptKinds.has(oldSourceFile.resolvedPath)) {
166532
- return documentRegistry.updateDocumentWithKey(fileName, path10, host, documentRegistryBucketKey, scriptSnapshot, scriptVersion, scriptKind, languageVersionOrOptions);
166532
+ return documentRegistry.updateDocumentWithKey(fileName, path11, host, documentRegistryBucketKey, scriptSnapshot, scriptVersion, scriptKind, languageVersionOrOptions);
166533
166533
  } else {
166534
166534
  documentRegistry.releaseDocumentWithKey(oldSourceFile.resolvedPath, documentRegistry.getKeyForCompilationSettings(program2.getCompilerOptions()), oldSourceFile.scriptKind, oldSourceFile.impliedNodeFormat);
166535
166535
  releasedScriptKinds.add(oldSourceFile.resolvedPath);
166536
166536
  }
166537
166537
  }
166538
166538
  }
166539
- return documentRegistry.acquireDocumentWithKey(fileName, path10, host, documentRegistryBucketKey, scriptSnapshot, scriptVersion, scriptKind, languageVersionOrOptions);
166539
+ return documentRegistry.acquireDocumentWithKey(fileName, path11, host, documentRegistryBucketKey, scriptSnapshot, scriptVersion, scriptKind, languageVersionOrOptions);
166540
166540
  }
166541
166541
  }
166542
166542
  function getProgram() {
@@ -167142,7 +167142,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
167142
167142
  return isArray(action) ? Promise.all(action.map((a) => applySingleCodeActionCommand(a))) : applySingleCodeActionCommand(action);
167143
167143
  }
167144
167144
  function applySingleCodeActionCommand(action) {
167145
- const getPath = (path10) => toPath(path10, currentDirectory, getCanonicalFileName);
167145
+ const getPath = (path11) => toPath(path11, currentDirectory, getCanonicalFileName);
167146
167146
  Debug.assertEqual(action.type, "install package");
167147
167147
  return host.installPackage ? host.installPackage({ fileName: getPath(action.file), packageName: action.packageName }) : Promise.reject("Host does not implement `installPackage`");
167148
167148
  }
@@ -167486,8 +167486,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
167486
167486
  function isLetterOrDigit(char) {
167487
167487
  return char >= 97 && char <= 122 || char >= 65 && char <= 90 || char >= 48 && char <= 57;
167488
167488
  }
167489
- function isNodeModulesFile(path10) {
167490
- return path10.includes("/node_modules/");
167489
+ function isNodeModulesFile(path11) {
167490
+ return path11.includes("/node_modules/");
167491
167491
  }
167492
167492
  }
167493
167493
  function getRenameInfo2(fileName, position, preferences) {
@@ -181121,11 +181121,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
181121
181121
  }
181122
181122
  });
181123
181123
  }
181124
- function generateJSDocParamTagsForDestructuring(path10, pattern, initializer, dotDotDotToken, isJs, isSnippet, checker, options, preferences) {
181124
+ function generateJSDocParamTagsForDestructuring(path11, pattern, initializer, dotDotDotToken, isJs, isSnippet, checker, options, preferences) {
181125
181125
  if (!isJs) {
181126
181126
  return [
181127
181127
  getJSDocParamAnnotation(
181128
- path10,
181128
+ path11,
181129
181129
  initializer,
181130
181130
  dotDotDotToken,
181131
181131
  isJs,
@@ -181139,7 +181139,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
181139
181139
  )
181140
181140
  ];
181141
181141
  }
181142
- return patternWorker(path10, pattern, initializer, dotDotDotToken, { tabstop: 1 });
181142
+ return patternWorker(path11, pattern, initializer, dotDotDotToken, { tabstop: 1 });
181143
181143
  function patternWorker(path22, pattern2, initializer2, dotDotDotToken2, counter) {
181144
181144
  if (isObjectBindingPattern(pattern2) && !dotDotDotToken2) {
181145
181145
  const oldTabstop = counter.tabstop;
@@ -185762,21 +185762,21 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
185762
185762
  function getFragmentDirectory(fragment) {
185763
185763
  return containsSlash(fragment) ? hasTrailingDirectorySeparator(fragment) ? fragment : getDirectoryPath(fragment) : void 0;
185764
185764
  }
185765
- function getCompletionsForPathMapping(path10, patterns, fragment, packageDirectory, extensionOptions, isExports, isImports, program2, host, moduleSpecifierResolutionHost) {
185766
- const parsedPath = tryParsePattern(path10);
185765
+ function getCompletionsForPathMapping(path11, patterns, fragment, packageDirectory, extensionOptions, isExports, isImports, program2, host, moduleSpecifierResolutionHost) {
185766
+ const parsedPath = tryParsePattern(path11);
185767
185767
  if (!parsedPath) {
185768
185768
  return emptyArray;
185769
185769
  }
185770
185770
  if (typeof parsedPath === "string") {
185771
185771
  return justPathMappingName(
185772
- path10,
185772
+ path11,
185773
185773
  "script"
185774
185774
  /* scriptElement */
185775
185775
  );
185776
185776
  }
185777
185777
  const remainingFragment = tryRemovePrefix(fragment, parsedPath.prefix);
185778
185778
  if (remainingFragment === void 0) {
185779
- const starIsFullPathComponent = endsWith(path10, "/*");
185779
+ const starIsFullPathComponent = endsWith(path11, "/*");
185780
185780
  return starIsFullPathComponent ? justPathMappingName(
185781
185781
  parsedPath.prefix,
185782
185782
  "directory"
@@ -185862,9 +185862,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
185862
185862
  function getDirectoryMatches(directoryName) {
185863
185863
  return mapDefined(tryGetDirectories(host, directoryName), (dir) => dir === "node_modules" ? void 0 : directoryResult(dir));
185864
185864
  }
185865
- function trimPrefixAndSuffix(path10, prefix) {
185865
+ function trimPrefixAndSuffix(path11, prefix) {
185866
185866
  return firstDefined(matchingSuffixes, (suffix) => {
185867
- const inner = withoutStartAndEnd(normalizePath(path10), prefix, suffix);
185867
+ const inner = withoutStartAndEnd(normalizePath(path11), prefix, suffix);
185868
185868
  return inner === void 0 ? void 0 : removeLeadingDirectorySeparator(inner);
185869
185869
  });
185870
185870
  }
@@ -185872,8 +185872,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
185872
185872
  function withoutStartAndEnd(s, start, end) {
185873
185873
  return startsWith(s, start) && endsWith(s, end) ? s.slice(start.length, s.length - end.length) : void 0;
185874
185874
  }
185875
- function removeLeadingDirectorySeparator(path10) {
185876
- return path10[0] === directorySeparator ? path10.slice(1) : path10;
185875
+ function removeLeadingDirectorySeparator(path11) {
185876
+ return path11[0] === directorySeparator ? path11.slice(1) : path11;
185877
185877
  }
185878
185878
  function getAmbientModuleCompletions(fragment, fragmentDirectory, checker) {
185879
185879
  const ambientModules = checker.getAmbientModules().map((sym) => stripQuotes(sym.name));
@@ -185988,10 +185988,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
185988
185988
  /* ESNext */
185989
185989
  ) ? void 0 : createTextSpan(textStart + offset, length2);
185990
185990
  }
185991
- function isPathRelativeToScript(path10) {
185992
- if (path10 && path10.length >= 2 && path10.charCodeAt(0) === 46) {
185993
- const slashIndex = path10.length >= 3 && path10.charCodeAt(1) === 46 ? 2 : 1;
185994
- const slashCharCode = path10.charCodeAt(slashIndex);
185991
+ function isPathRelativeToScript(path11) {
185992
+ if (path11 && path11.length >= 2 && path11.charCodeAt(0) === 46) {
185993
+ const slashIndex = path11.length >= 3 && path11.charCodeAt(1) === 46 ? 2 : 1;
185994
+ const slashCharCode = path11.charCodeAt(slashIndex);
185995
185995
  return slashCharCode === 47 || slashCharCode === 92;
185996
185996
  }
185997
185997
  return false;
@@ -201962,17 +201962,17 @@ ${options.prefix}` : "\n" : options.prefix
201962
201962
  function createNormalizedPathMap() {
201963
201963
  const map2 = /* @__PURE__ */ new Map();
201964
201964
  return {
201965
- get(path10) {
201966
- return map2.get(path10);
201965
+ get(path11) {
201966
+ return map2.get(path11);
201967
201967
  },
201968
- set(path10, value) {
201969
- map2.set(path10, value);
201968
+ set(path11, value) {
201969
+ map2.set(path11, value);
201970
201970
  },
201971
- contains(path10) {
201972
- return map2.has(path10);
201971
+ contains(path11) {
201972
+ return map2.has(path11);
201973
201973
  },
201974
- remove(path10) {
201975
- map2.delete(path10);
201974
+ remove(path11) {
201975
+ map2.delete(path11);
201976
201976
  }
201977
201977
  };
201978
201978
  }
@@ -202485,12 +202485,12 @@ ${options.prefix}` : "\n" : options.prefix
202485
202485
  return fileName[0] === "^" || (fileName.includes("walkThroughSnippet:/") || fileName.includes("untitled:/")) && getBaseFileName(fileName)[0] === "^" || fileName.includes(":^") && !fileName.includes(directorySeparator);
202486
202486
  }
202487
202487
  var ScriptInfo = class {
202488
- constructor(host, fileName, scriptKind, hasMixedContent, path10, initialVersion) {
202488
+ constructor(host, fileName, scriptKind, hasMixedContent, path11, initialVersion) {
202489
202489
  this.host = host;
202490
202490
  this.fileName = fileName;
202491
202491
  this.scriptKind = scriptKind;
202492
202492
  this.hasMixedContent = hasMixedContent;
202493
- this.path = path10;
202493
+ this.path = path11;
202494
202494
  this.containingProjects = [];
202495
202495
  this.isDynamic = isDynamicFileName(fileName);
202496
202496
  this.textStorage = new TextStorage(host, this, initialVersion);
@@ -203125,8 +203125,8 @@ ${options.prefix}` : "\n" : options.prefix
203125
203125
  useCaseSensitiveFileNames() {
203126
203126
  return this.projectService.host.useCaseSensitiveFileNames;
203127
203127
  }
203128
- readDirectory(path10, extensions, exclude, include, depth) {
203129
- return this.directoryStructureHost.readDirectory(path10, extensions, exclude, include, depth);
203128
+ readDirectory(path11, extensions, exclude, include, depth) {
203129
+ return this.directoryStructureHost.readDirectory(path11, extensions, exclude, include, depth);
203130
203130
  }
203131
203131
  readFile(fileName) {
203132
203132
  return this.projectService.host.readFile(fileName);
@@ -203135,8 +203135,8 @@ ${options.prefix}` : "\n" : options.prefix
203135
203135
  return this.projectService.host.writeFile(fileName, content);
203136
203136
  }
203137
203137
  fileExists(file) {
203138
- const path10 = this.toPath(file);
203139
- return !!this.projectService.getScriptInfoForPath(path10) || !this.isWatchedMissingFile(path10) && this.directoryStructureHost.fileExists(file);
203138
+ const path11 = this.toPath(file);
203139
+ return !!this.projectService.getScriptInfoForPath(path11) || !this.isWatchedMissingFile(path11) && this.directoryStructureHost.fileExists(file);
203140
203140
  }
203141
203141
  /** @internal */
203142
203142
  resolveModuleNameLiterals(moduleLiterals, containingFile, redirectedReference, options, containingSourceFile, reusedNames) {
@@ -203161,11 +203161,11 @@ ${options.prefix}` : "\n" : options.prefix
203161
203161
  resolveLibrary(libraryName, resolveFrom, options, libFileName) {
203162
203162
  return this.resolutionCache.resolveLibrary(libraryName, resolveFrom, options, libFileName);
203163
203163
  }
203164
- directoryExists(path10) {
203165
- return this.directoryStructureHost.directoryExists(path10);
203164
+ directoryExists(path11) {
203165
+ return this.directoryStructureHost.directoryExists(path11);
203166
203166
  }
203167
- getDirectories(path10) {
203168
- return this.directoryStructureHost.getDirectories(path10);
203167
+ getDirectories(path11) {
203168
+ return this.directoryStructureHost.getDirectories(path11);
203169
203169
  }
203170
203170
  /** @internal */
203171
203171
  getCachedDirectoryStructureHost() {
@@ -203428,16 +203428,16 @@ ${options.prefix}` : "\n" : options.prefix
203428
203428
  }
203429
203429
  }));
203430
203430
  }
203431
- getSourceFile(path10) {
203431
+ getSourceFile(path11) {
203432
203432
  if (!this.program) {
203433
203433
  return void 0;
203434
203434
  }
203435
- return this.program.getSourceFileByPath(path10);
203435
+ return this.program.getSourceFileByPath(path11);
203436
203436
  }
203437
203437
  /** @internal */
203438
- getSourceFileOrConfigFile(path10) {
203438
+ getSourceFileOrConfigFile(path11) {
203439
203439
  const options = this.program.getCompilerOptions();
203440
- return path10 === options.configFilePath ? options.configFile : this.getSourceFile(path10);
203440
+ return path11 === options.configFilePath ? options.configFile : this.getSourceFile(path11);
203441
203441
  }
203442
203442
  close() {
203443
203443
  var _a;
@@ -203614,8 +203614,8 @@ ${options.prefix}` : "\n" : options.prefix
203614
203614
  }
203615
203615
  // add a root file that doesnt exist on host
203616
203616
  addMissingFileRoot(fileName) {
203617
- const path10 = this.projectService.toPath(fileName);
203618
- this.rootFilesMap.set(path10, { fileName });
203617
+ const path11 = this.projectService.toPath(fileName);
203618
+ this.rootFilesMap.set(path11, { fileName });
203619
203619
  this.markAsDirty();
203620
203620
  }
203621
203621
  removeFile(info, fileExists, detachFromProject) {
@@ -203781,22 +203781,22 @@ ${options.prefix}` : "\n" : options.prefix
203781
203781
  const toRemove = new Map(this.typingWatchers);
203782
203782
  if (!this.typingWatchers) this.typingWatchers = /* @__PURE__ */ new Map();
203783
203783
  this.typingWatchers.isInvoked = false;
203784
- const createProjectWatcher = (path10, typingsWatcherType) => {
203785
- const canonicalPath = this.toPath(path10);
203784
+ const createProjectWatcher = (path11, typingsWatcherType) => {
203785
+ const canonicalPath = this.toPath(path11);
203786
203786
  toRemove.delete(canonicalPath);
203787
203787
  if (!this.typingWatchers.has(canonicalPath)) {
203788
203788
  const watchType = typingsWatcherType === "FileWatcher" ? WatchType.TypingInstallerLocationFile : WatchType.TypingInstallerLocationDirectory;
203789
203789
  this.typingWatchers.set(
203790
203790
  canonicalPath,
203791
203791
  canWatchDirectoryOrFilePath(canonicalPath) ? typingsWatcherType === "FileWatcher" ? this.projectService.watchFactory.watchFile(
203792
- path10,
203792
+ path11,
203793
203793
  () => !this.typingWatchers.isInvoked ? this.onTypingInstallerWatchInvoke() : this.writeLog(`TypingWatchers already invoked`),
203794
203794
  2e3,
203795
203795
  this.projectService.getWatchOptions(this),
203796
203796
  watchType,
203797
203797
  this
203798
203798
  ) : this.projectService.watchFactory.watchDirectory(
203799
- path10,
203799
+ path11,
203800
203800
  (f) => {
203801
203801
  if (this.typingWatchers.isInvoked) return this.writeLog(`TypingWatchers already invoked`);
203802
203802
  if (!fileExtensionIs(
@@ -203811,7 +203811,7 @@ ${options.prefix}` : "\n" : options.prefix
203811
203811
  this.projectService.getWatchOptions(this),
203812
203812
  watchType,
203813
203813
  this
203814
- ) : (this.writeLog(`Skipping watcher creation at ${path10}:: ${getDetailWatchInfo(watchType, this)}`), noopFileWatcher)
203814
+ ) : (this.writeLog(`Skipping watcher creation at ${path11}:: ${getDetailWatchInfo(watchType, this)}`), noopFileWatcher)
203815
203815
  );
203816
203816
  }
203817
203817
  };
@@ -203856,9 +203856,9 @@ ${options.prefix}` : "\n" : options.prefix
203856
203856
  /* DirectoryWatcher */
203857
203857
  );
203858
203858
  }
203859
- toRemove.forEach((watch, path10) => {
203859
+ toRemove.forEach((watch, path11) => {
203860
203860
  watch.close();
203861
- this.typingWatchers.delete(path10);
203861
+ this.typingWatchers.delete(path11);
203862
203862
  });
203863
203863
  }
203864
203864
  /** @internal */
@@ -203892,9 +203892,9 @@ ${options.prefix}` : "\n" : options.prefix
203892
203892
  let hasNewProgram = false;
203893
203893
  if (this.program && (!oldProgram || this.program !== oldProgram && this.program.structureIsReused !== 2)) {
203894
203894
  hasNewProgram = true;
203895
- this.rootFilesMap.forEach((value, path10) => {
203895
+ this.rootFilesMap.forEach((value, path11) => {
203896
203896
  var _a2;
203897
- const file = this.program.getSourceFileByPath(path10);
203897
+ const file = this.program.getSourceFileByPath(path11);
203898
203898
  const info = value.info;
203899
203899
  if (!file || ((_a2 = value.info) == null ? void 0 : _a2.path) === file.resolvedPath) return;
203900
203900
  value.info = this.projectService.getScriptInfo(file.fileName);
@@ -204050,8 +204050,8 @@ ${options.prefix}` : "\n" : options.prefix
204050
204050
  );
204051
204051
  return fileWatcher;
204052
204052
  }
204053
- isWatchedMissingFile(path10) {
204054
- return !!this.missingFilesMap && this.missingFilesMap.has(path10);
204053
+ isWatchedMissingFile(path11) {
204054
+ return !!this.missingFilesMap && this.missingFilesMap.has(path11);
204055
204055
  }
204056
204056
  /** @internal */
204057
204057
  addGeneratedFileWatch(generatedFile, sourceFile) {
@@ -204060,17 +204060,17 @@ ${options.prefix}` : "\n" : options.prefix
204060
204060
  this.generatedFilesMap = this.createGeneratedFileWatcher(generatedFile);
204061
204061
  }
204062
204062
  } else {
204063
- const path10 = this.toPath(sourceFile);
204063
+ const path11 = this.toPath(sourceFile);
204064
204064
  if (this.generatedFilesMap) {
204065
204065
  if (isGeneratedFileWatcher(this.generatedFilesMap)) {
204066
204066
  Debug.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);
204067
204067
  return;
204068
204068
  }
204069
- if (this.generatedFilesMap.has(path10)) return;
204069
+ if (this.generatedFilesMap.has(path11)) return;
204070
204070
  } else {
204071
204071
  this.generatedFilesMap = /* @__PURE__ */ new Map();
204072
204072
  }
204073
- this.generatedFilesMap.set(path10, this.createGeneratedFileWatcher(generatedFile));
204073
+ this.generatedFilesMap.set(path11, this.createGeneratedFileWatcher(generatedFile));
204074
204074
  }
204075
204075
  }
204076
204076
  createGeneratedFileWatcher(generatedFile) {
@@ -204470,7 +204470,7 @@ ${options.prefix}` : "\n" : options.prefix
204470
204470
  isDefaultProjectForOpenFiles() {
204471
204471
  return !!forEachEntry(
204472
204472
  this.projectService.openFiles,
204473
- (_projectRootPath, path10) => this.projectService.tryGetDefaultProjectForFile(this.projectService.getScriptInfoForPath(path10)) === this
204473
+ (_projectRootPath, path11) => this.projectService.tryGetDefaultProjectForFile(this.projectService.getScriptInfoForPath(path11)) === this
204474
204474
  );
204475
204475
  }
204476
204476
  /** @internal */
@@ -205644,33 +205644,33 @@ ${options.prefix}` : "\n" : options.prefix
205644
205644
  getCurrentDirectory: () => service.host.getCurrentDirectory(),
205645
205645
  useCaseSensitiveFileNames: service.host.useCaseSensitiveFileNames
205646
205646
  };
205647
- function watchFile2(path10, callback) {
205647
+ function watchFile2(path11, callback) {
205648
205648
  return getOrCreateFileWatcher(
205649
205649
  watchedFiles,
205650
- path10,
205650
+ path11,
205651
205651
  callback,
205652
- (id) => ({ eventName: CreateFileWatcherEvent, data: { id, path: path10 } })
205652
+ (id) => ({ eventName: CreateFileWatcherEvent, data: { id, path: path11 } })
205653
205653
  );
205654
205654
  }
205655
- function watchDirectory(path10, callback, recursive) {
205655
+ function watchDirectory(path11, callback, recursive) {
205656
205656
  return getOrCreateFileWatcher(
205657
205657
  recursive ? watchedDirectoriesRecursive : watchedDirectories,
205658
- path10,
205658
+ path11,
205659
205659
  callback,
205660
205660
  (id) => ({
205661
205661
  eventName: CreateDirectoryWatcherEvent,
205662
205662
  data: {
205663
205663
  id,
205664
- path: path10,
205664
+ path: path11,
205665
205665
  recursive: !!recursive,
205666
205666
  // Special case node_modules as we watch it for changes to closed script infos as well
205667
- ignoreUpdate: !path10.endsWith("/node_modules") ? true : void 0
205667
+ ignoreUpdate: !path11.endsWith("/node_modules") ? true : void 0
205668
205668
  }
205669
205669
  })
205670
205670
  );
205671
205671
  }
205672
- function getOrCreateFileWatcher({ pathToId, idToCallbacks }, path10, callback, event) {
205673
- const key = service.toPath(path10);
205672
+ function getOrCreateFileWatcher({ pathToId, idToCallbacks }, path11, callback, event) {
205673
+ const key = service.toPath(path11);
205674
205674
  let id = pathToId.get(key);
205675
205675
  if (!id) pathToId.set(key, id = ids++);
205676
205676
  let callbacks = idToCallbacks.get(id);
@@ -205839,13 +205839,13 @@ ${options.prefix}` : "\n" : options.prefix
205839
205839
  return getNormalizedAbsolutePath(fileName, this.host.getCurrentDirectory());
205840
205840
  }
205841
205841
  /** @internal */
205842
- setDocument(key, path10, sourceFile) {
205843
- const info = Debug.checkDefined(this.getScriptInfoForPath(path10));
205842
+ setDocument(key, path11, sourceFile) {
205843
+ const info = Debug.checkDefined(this.getScriptInfoForPath(path11));
205844
205844
  info.cacheSourceFile = { key, sourceFile };
205845
205845
  }
205846
205846
  /** @internal */
205847
- getDocument(key, path10) {
205848
- const info = this.getScriptInfoForPath(path10);
205847
+ getDocument(key, path11) {
205848
+ const info = this.getScriptInfoForPath(path11);
205849
205849
  return info && info.cacheSourceFile && info.cacheSourceFile.key === key ? info.cacheSourceFile.sourceFile : void 0;
205850
205850
  }
205851
205851
  /** @internal */
@@ -205967,7 +205967,7 @@ ${options.prefix}` : "\n" : options.prefix
205967
205967
  const event = {
205968
205968
  eventName: ProjectsUpdatedInBackgroundEvent,
205969
205969
  data: {
205970
- openFiles: arrayFrom(this.openFiles.keys(), (path10) => this.getScriptInfoForPath(path10).fileName)
205970
+ openFiles: arrayFrom(this.openFiles.keys(), (path11) => this.getScriptInfoForPath(path11).fileName)
205971
205971
  }
205972
205972
  };
205973
205973
  this.eventHandler(event);
@@ -206189,11 +206189,11 @@ ${options.prefix}` : "\n" : options.prefix
206189
206189
  }
206190
206190
  delayUpdateSourceInfoProjects(sourceInfos) {
206191
206191
  if (sourceInfos) {
206192
- sourceInfos.forEach((_value, path10) => this.delayUpdateProjectsOfScriptInfoPath(path10));
206192
+ sourceInfos.forEach((_value, path11) => this.delayUpdateProjectsOfScriptInfoPath(path11));
206193
206193
  }
206194
206194
  }
206195
- delayUpdateProjectsOfScriptInfoPath(path10) {
206196
- const info = this.getScriptInfoForPath(path10);
206195
+ delayUpdateProjectsOfScriptInfoPath(path11) {
206196
+ const info = this.getScriptInfoForPath(path11);
206197
206197
  if (info) {
206198
206198
  this.delayUpdateProjectGraphs(
206199
206199
  info.containingProjects,
@@ -206287,8 +206287,8 @@ ${options.prefix}` : "\n" : options.prefix
206287
206287
  const project = this.getConfiguredProjectByCanonicalConfigFilePath(projectCanonicalPath);
206288
206288
  if (!project) return;
206289
206289
  if (configuredProjectForConfig !== project && this.getHostPreferences().includeCompletionsForModuleExports) {
206290
- const path10 = this.toPath(configFileName);
206291
- if (find((_a = project.getCurrentProgram()) == null ? void 0 : _a.getResolvedProjectReferences(), (ref) => (ref == null ? void 0 : ref.sourceFile.path) === path10)) {
206290
+ const path11 = this.toPath(configFileName);
206291
+ if (find((_a = project.getCurrentProgram()) == null ? void 0 : _a.getResolvedProjectReferences(), (ref) => (ref == null ? void 0 : ref.sourceFile.path) === path11)) {
206292
206292
  project.markAutoImportProviderAsDirty();
206293
206293
  }
206294
206294
  }
@@ -206343,10 +206343,10 @@ ${options.prefix}` : "\n" : options.prefix
206343
206343
  });
206344
206344
  return;
206345
206345
  }
206346
- const path10 = this.toPath(canonicalConfigFilePath);
206347
- project.resolutionCache.removeResolutionsFromProjectReferenceRedirects(path10);
206346
+ const path11 = this.toPath(canonicalConfigFilePath);
206347
+ project.resolutionCache.removeResolutionsFromProjectReferenceRedirects(path11);
206348
206348
  this.delayUpdateProjectGraph(project);
206349
- if (this.getHostPreferences().includeCompletionsForModuleExports && find((_c = project.getCurrentProgram()) == null ? void 0 : _c.getResolvedProjectReferences(), (ref) => (ref == null ? void 0 : ref.sourceFile.path) === path10)) {
206349
+ if (this.getHostPreferences().includeCompletionsForModuleExports && find((_c = project.getCurrentProgram()) == null ? void 0 : _c.getResolvedProjectReferences(), (ref) => (ref == null ? void 0 : ref.sourceFile.path) === path11)) {
206350
206350
  project.markAutoImportProviderAsDirty();
206351
206351
  }
206352
206352
  }
@@ -206371,20 +206371,20 @@ ${options.prefix}` : "\n" : options.prefix
206371
206371
  canonicalConfigFilePath,
206372
206372
  "Change in config file detected"
206373
206373
  );
206374
- this.openFiles.forEach((_projectRootPath, path10) => {
206374
+ this.openFiles.forEach((_projectRootPath, path11) => {
206375
206375
  var _a, _b;
206376
- const configFileForOpenFile = this.configFileForOpenFiles.get(path10);
206377
- if (!((_a = configFileExistenceInfo.openFilesImpactedByConfigFile) == null ? void 0 : _a.has(path10))) return;
206378
- this.configFileForOpenFiles.delete(path10);
206379
- const info = this.getScriptInfoForPath(path10);
206376
+ const configFileForOpenFile = this.configFileForOpenFiles.get(path11);
206377
+ if (!((_a = configFileExistenceInfo.openFilesImpactedByConfigFile) == null ? void 0 : _a.has(path11))) return;
206378
+ this.configFileForOpenFiles.delete(path11);
206379
+ const info = this.getScriptInfoForPath(path11);
206380
206380
  const newConfigFileNameForInfo = this.getConfigFileNameForFile(
206381
206381
  info,
206382
206382
  /*findFromCacheOnly*/
206383
206383
  false
206384
206384
  );
206385
206385
  if (!newConfigFileNameForInfo) return;
206386
- if (!((_b = this.pendingOpenFileProjectUpdates) == null ? void 0 : _b.has(path10))) {
206387
- (this.pendingOpenFileProjectUpdates ?? (this.pendingOpenFileProjectUpdates = /* @__PURE__ */ new Map())).set(path10, configFileForOpenFile);
206386
+ if (!((_b = this.pendingOpenFileProjectUpdates) == null ? void 0 : _b.has(path11))) {
206387
+ (this.pendingOpenFileProjectUpdates ?? (this.pendingOpenFileProjectUpdates = /* @__PURE__ */ new Map())).set(path11, configFileForOpenFile);
206388
206388
  }
206389
206389
  });
206390
206390
  this.delayEnsureProjectForOpenFiles();
@@ -206479,8 +206479,8 @@ ${options.prefix}` : "\n" : options.prefix
206479
206479
  return project;
206480
206480
  }
206481
206481
  assignOrphanScriptInfosToInferredProject() {
206482
- this.openFiles.forEach((projectRootPath, path10) => {
206483
- const info = this.getScriptInfoForPath(path10);
206482
+ this.openFiles.forEach((projectRootPath, path11) => {
206483
+ const info = this.getScriptInfoForPath(path11);
206484
206484
  if (info.isOrphan()) {
206485
206485
  this.assignOrphanScriptInfoToInferredProject(info, projectRootPath);
206486
206486
  }
@@ -206792,8 +206792,8 @@ ${options.prefix}` : "\n" : options.prefix
206792
206792
  this.configuredProjects.forEach(printProjectWithoutFileNames);
206793
206793
  this.inferredProjects.forEach(printProjectWithoutFileNames);
206794
206794
  this.logger.info("Open files: ");
206795
- this.openFiles.forEach((projectRootPath, path10) => {
206796
- const info = this.getScriptInfoForPath(path10);
206795
+ this.openFiles.forEach((projectRootPath, path11) => {
206796
+ const info = this.getScriptInfoForPath(path11);
206797
206797
  this.logger.info(` FileName: ${info.fileName} ProjectRootPath: ${projectRootPath}`);
206798
206798
  this.logger.info(` Projects: ${info.containingProjects.map((p) => p.getProjectName())}`);
206799
206799
  });
@@ -207119,12 +207119,12 @@ ${options.prefix}` : "\n" : options.prefix
207119
207119
  const newRootFile = propertyReader.getFileName(f);
207120
207120
  const fileName = toNormalizedPath(newRootFile);
207121
207121
  const isDynamic = isDynamicFileName(fileName);
207122
- let path10;
207122
+ let path11;
207123
207123
  if (!isDynamic && !project.fileExists(newRootFile)) {
207124
- path10 = normalizedPathToPath(fileName, this.currentDirectory, this.toCanonicalFileName);
207125
- const existingValue = projectRootFilesMap.get(path10);
207124
+ path11 = normalizedPathToPath(fileName, this.currentDirectory, this.toCanonicalFileName);
207125
+ const existingValue = projectRootFilesMap.get(path11);
207126
207126
  if (existingValue) {
207127
- if (((_a = existingValue.info) == null ? void 0 : _a.path) === path10) {
207127
+ if (((_a = existingValue.info) == null ? void 0 : _a.path) === path11) {
207128
207128
  project.removeFile(
207129
207129
  existingValue.info,
207130
207130
  /*fileExists*/
@@ -207136,7 +207136,7 @@ ${options.prefix}` : "\n" : options.prefix
207136
207136
  }
207137
207137
  existingValue.fileName = fileName;
207138
207138
  } else {
207139
- projectRootFilesMap.set(path10, { fileName });
207139
+ projectRootFilesMap.set(path11, { fileName });
207140
207140
  }
207141
207141
  } else {
207142
207142
  const scriptKind = propertyReader.getScriptKind(f, this.hostConfiguration.extraFileExtensions);
@@ -207150,8 +207150,8 @@ ${options.prefix}` : "\n" : options.prefix
207150
207150
  /*deferredDeleteOk*/
207151
207151
  false
207152
207152
  ));
207153
- path10 = scriptInfo.path;
207154
- const existingValue = projectRootFilesMap.get(path10);
207153
+ path11 = scriptInfo.path;
207154
+ const existingValue = projectRootFilesMap.get(path11);
207155
207155
  if (!existingValue || existingValue.info !== scriptInfo) {
207156
207156
  project.addRoot(scriptInfo, fileName);
207157
207157
  if (scriptInfo.isScriptOpen()) {
@@ -207161,11 +207161,11 @@ ${options.prefix}` : "\n" : options.prefix
207161
207161
  existingValue.fileName = fileName;
207162
207162
  }
207163
207163
  }
207164
- newRootScriptInfoMap.set(path10, true);
207164
+ newRootScriptInfoMap.set(path11, true);
207165
207165
  }
207166
207166
  if (projectRootFilesMap.size > newRootScriptInfoMap.size) {
207167
- projectRootFilesMap.forEach((value, path10) => {
207168
- if (!newRootScriptInfoMap.has(path10)) {
207167
+ projectRootFilesMap.forEach((value, path11) => {
207168
+ if (!newRootScriptInfoMap.has(path11)) {
207169
207169
  if (value.info) {
207170
207170
  project.removeFile(
207171
207171
  value.info,
@@ -207174,7 +207174,7 @@ ${options.prefix}` : "\n" : options.prefix
207174
207174
  true
207175
207175
  );
207176
207176
  } else {
207177
- projectRootFilesMap.delete(path10);
207177
+ projectRootFilesMap.delete(path11);
207178
207178
  }
207179
207179
  }
207180
207180
  });
@@ -207411,8 +207411,8 @@ ${options.prefix}` : "\n" : options.prefix
207411
207411
  }
207412
207412
  /** @internal */
207413
207413
  getScriptInfoOrConfig(uncheckedFileName) {
207414
- const path10 = toNormalizedPath(uncheckedFileName);
207415
- const info = this.getScriptInfoForNormalizedPath(path10);
207414
+ const path11 = toNormalizedPath(uncheckedFileName);
207415
+ const info = this.getScriptInfoForNormalizedPath(path11);
207416
207416
  if (info) return info;
207417
207417
  const configProject = this.configuredProjects.get(this.toPath(uncheckedFileName));
207418
207418
  return configProject && configProject.getCompilerOptions().configFile;
@@ -207424,7 +207424,7 @@ ${options.prefix}` : "\n" : options.prefix
207424
207424
  this.filenameToScriptInfo.entries(),
207425
207425
  (entry) => entry[1].deferredDelete ? void 0 : entry
207426
207426
  ),
207427
- ([path10, scriptInfo]) => ({ path: path10, fileName: scriptInfo.fileName })
207427
+ ([path11, scriptInfo]) => ({ path: path11, fileName: scriptInfo.fileName })
207428
207428
  );
207429
207429
  this.logger.msg(
207430
207430
  `Could not find file ${JSON.stringify(fileName)}.
@@ -207456,7 +207456,7 @@ All files are: ${JSON.stringify(names)}`,
207456
207456
  if (!projects) {
207457
207457
  projects = createMultiMap();
207458
207458
  projects.add(toAddInfo.path, project);
207459
- } else if (!forEachEntry(projects, (projs, path10) => path10 === toAddInfo.path ? false : contains(projs, project))) {
207459
+ } else if (!forEachEntry(projects, (projs, path11) => path11 === toAddInfo.path ? false : contains(projs, project))) {
207460
207460
  projects.add(toAddInfo.path, project);
207461
207461
  }
207462
207462
  }
@@ -207618,8 +207618,8 @@ All files are: ${JSON.stringify(names)}`,
207618
207618
  }
207619
207619
  getOrCreateScriptInfoWorker(fileName, currentDirectory, openedByClient, fileContent, scriptKind, hasMixedContent, hostToQueryFileExistsOn, deferredDeleteOk) {
207620
207620
  Debug.assert(fileContent === void 0 || openedByClient, "ScriptInfo needs to be opened by client to be able to set its user defined content");
207621
- const path10 = normalizedPathToPath(fileName, currentDirectory, this.toCanonicalFileName);
207622
- let info = this.filenameToScriptInfo.get(path10);
207621
+ const path11 = normalizedPathToPath(fileName, currentDirectory, this.toCanonicalFileName);
207622
+ let info = this.filenameToScriptInfo.get(path11);
207623
207623
  if (!info) {
207624
207624
  const isDynamic = isDynamicFileName(fileName);
207625
207625
  Debug.assert(isRootedDiskPath(fileName) || isDynamic || openedByClient, "", () => `${JSON.stringify({ fileName, currentDirectory, hostCurrentDirectory: this.currentDirectory, openKeys: arrayFrom(this.openFilesWithNonRootedDiskPath.keys()) })}
@@ -207631,7 +207631,7 @@ Dynamic files must always be opened with service's current directory or service
207631
207631
  if (!openedByClient && !isDynamic && !(hostToQueryFileExistsOn || this.host).fileExists(fileName)) {
207632
207632
  return;
207633
207633
  }
207634
- info = new ScriptInfo(this.host, fileName, scriptKind, hasMixedContent, path10, this.filenameToScriptInfoVersion.get(path10));
207634
+ info = new ScriptInfo(this.host, fileName, scriptKind, hasMixedContent, path11, this.filenameToScriptInfoVersion.get(path11));
207635
207635
  this.filenameToScriptInfo.set(info.path, info);
207636
207636
  this.filenameToScriptInfoVersion.delete(info.path);
207637
207637
  if (!openedByClient) {
@@ -207778,9 +207778,9 @@ Dynamic files must always be opened with service's current directory or service
207778
207778
  getSourceFileLike(fileName, projectNameOrProject, declarationInfo) {
207779
207779
  const project = projectNameOrProject.projectName ? projectNameOrProject : this.findProject(projectNameOrProject);
207780
207780
  if (project) {
207781
- const path10 = project.toPath(fileName);
207782
- const sourceFile = project.getSourceFile(path10);
207783
- if (sourceFile && sourceFile.resolvedPath === path10) return sourceFile;
207781
+ const path11 = project.toPath(fileName);
207782
+ const sourceFile = project.getSourceFile(path11);
207783
+ if (sourceFile && sourceFile.resolvedPath === path11) return sourceFile;
207784
207784
  }
207785
207785
  const info = this.getOrCreateScriptInfoNotOpenedByClient(
207786
207786
  fileName,
@@ -207946,8 +207946,8 @@ Dynamic files must always be opened with service's current directory or service
207946
207946
  }
207947
207947
  });
207948
207948
  });
207949
- this.openFiles.forEach((_projectRootPath, path10) => {
207950
- const info = this.getScriptInfoForPath(path10);
207949
+ this.openFiles.forEach((_projectRootPath, path11) => {
207950
+ const info = this.getScriptInfoForPath(path11);
207951
207951
  if (find(info.containingProjects, isExternalProject)) return;
207952
207952
  this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(
207953
207953
  info,
@@ -208000,14 +208000,14 @@ Dynamic files must always be opened with service's current directory or service
208000
208000
  const pendingOpenFileProjectUpdates = this.pendingOpenFileProjectUpdates;
208001
208001
  this.pendingOpenFileProjectUpdates = void 0;
208002
208002
  pendingOpenFileProjectUpdates == null ? void 0 : pendingOpenFileProjectUpdates.forEach(
208003
- (_config, path10) => this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(
208004
- this.getScriptInfoForPath(path10),
208003
+ (_config, path11) => this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(
208004
+ this.getScriptInfoForPath(path11),
208005
208005
  5
208006
208006
  /* Create */
208007
208007
  )
208008
208008
  );
208009
- this.openFiles.forEach((projectRootPath, path10) => {
208010
- const info = this.getScriptInfoForPath(path10);
208009
+ this.openFiles.forEach((projectRootPath, path11) => {
208010
+ const info = this.getScriptInfoForPath(path11);
208011
208011
  if (info.isOrphan()) {
208012
208012
  this.assignOrphanScriptInfoToInferredProject(info, projectRootPath);
208013
208013
  } else {
@@ -208518,9 +208518,9 @@ Dynamic files must always be opened with service's current directory or service
208518
208518
  }
208519
208519
  });
208520
208520
  if (!toRemoveConfiguredProjects.size) return toRemoveConfiguredProjects;
208521
- forEachEntry(this.openFiles, (_projectRootPath, path10) => {
208522
- if (openFilesWithRetainedConfiguredProject == null ? void 0 : openFilesWithRetainedConfiguredProject.has(path10)) return;
208523
- const info = this.getScriptInfoForPath(path10);
208521
+ forEachEntry(this.openFiles, (_projectRootPath, path11) => {
208522
+ if (openFilesWithRetainedConfiguredProject == null ? void 0 : openFilesWithRetainedConfiguredProject.has(path11)) return;
208523
+ const info = this.getScriptInfoForPath(path11);
208524
208524
  if (find(info.containingProjects, isExternalProject)) return;
208525
208525
  const result = this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(
208526
208526
  info,
@@ -208569,8 +208569,8 @@ Dynamic files must always be opened with service's current directory or service
208569
208569
  sourceInfos = info.sourceMapFilePath.sourceInfos;
208570
208570
  }
208571
208571
  if (!sourceInfos) return;
208572
- if (!forEachKey(sourceInfos, (path10) => {
208573
- const info2 = this.getScriptInfoForPath(path10);
208572
+ if (!forEachKey(sourceInfos, (path11) => {
208573
+ const info2 = this.getScriptInfoForPath(path11);
208574
208574
  return !!info2 && (info2.isScriptOpen() || !info2.isOrphan());
208575
208575
  })) {
208576
208576
  return;
@@ -208594,7 +208594,7 @@ Dynamic files must always be opened with service's current directory or service
208594
208594
  sourceInfos = info.sourceMapFilePath.sourceInfos;
208595
208595
  }
208596
208596
  if (sourceInfos) {
208597
- sourceInfos.forEach((_value, path10) => toRemoveScriptInfos.delete(path10));
208597
+ sourceInfos.forEach((_value, path11) => toRemoveScriptInfos.delete(path11));
208598
208598
  }
208599
208599
  }
208600
208600
  });
@@ -209077,9 +209077,9 @@ Dynamic files must always be opened with service's current directory or service
209077
209077
  }
209078
209078
  );
209079
209079
  }
209080
- watchPackageJsonFile(file, path10, project) {
209080
+ watchPackageJsonFile(file, path11, project) {
209081
209081
  Debug.assert(project !== void 0);
209082
- let result = (this.packageJsonFilesMap ?? (this.packageJsonFilesMap = /* @__PURE__ */ new Map())).get(path10);
209082
+ let result = (this.packageJsonFilesMap ?? (this.packageJsonFilesMap = /* @__PURE__ */ new Map())).get(path11);
209083
209083
  if (!result) {
209084
209084
  let watcher = this.watchFactory.watchFile(
209085
209085
  file,
@@ -209087,11 +209087,11 @@ Dynamic files must always be opened with service's current directory or service
209087
209087
  switch (eventKind) {
209088
209088
  case 0:
209089
209089
  case 1:
209090
- this.packageJsonCache.addOrUpdate(fileName, path10);
209090
+ this.packageJsonCache.addOrUpdate(fileName, path11);
209091
209091
  this.onPackageJsonChange(result);
209092
209092
  break;
209093
209093
  case 2:
209094
- this.packageJsonCache.delete(path10);
209094
+ this.packageJsonCache.delete(path11);
209095
209095
  this.onPackageJsonChange(result);
209096
209096
  result.projects.clear();
209097
209097
  result.close();
@@ -209108,11 +209108,11 @@ Dynamic files must always be opened with service's current directory or service
209108
209108
  if (result.projects.size || !watcher) return;
209109
209109
  watcher.close();
209110
209110
  watcher = void 0;
209111
- (_a = this.packageJsonFilesMap) == null ? void 0 : _a.delete(path10);
209112
- this.packageJsonCache.invalidate(path10);
209111
+ (_a = this.packageJsonFilesMap) == null ? void 0 : _a.delete(path11);
209112
+ this.packageJsonCache.invalidate(path11);
209113
209113
  }
209114
209114
  };
209115
- this.packageJsonFilesMap.set(path10, result);
209115
+ this.packageJsonFilesMap.set(path11, result);
209116
209116
  }
209117
209117
  result.projects.add(project);
209118
209118
  (project.packageJsonWatches ?? (project.packageJsonWatches = /* @__PURE__ */ new Set())).add(result);
@@ -209302,14 +209302,14 @@ Dynamic files must always be opened with service's current directory or service
209302
209302
  );
209303
209303
  }
209304
209304
  };
209305
- function addOrUpdate(fileName, path10) {
209305
+ function addOrUpdate(fileName, path11) {
209306
209306
  const packageJsonInfo = Debug.checkDefined(createPackageJsonInfo(fileName, host.host));
209307
- packageJsons.set(path10, packageJsonInfo);
209308
- directoriesWithoutPackageJson.delete(getDirectoryPath(path10));
209307
+ packageJsons.set(path11, packageJsonInfo);
209308
+ directoriesWithoutPackageJson.delete(getDirectoryPath(path11));
209309
209309
  }
209310
- function invalidate(path10) {
209311
- packageJsons.delete(path10);
209312
- directoriesWithoutPackageJson.delete(getDirectoryPath(path10));
209310
+ function invalidate(path11) {
209311
+ packageJsons.delete(path11);
209312
+ directoriesWithoutPackageJson.delete(getDirectoryPath(path11));
209313
209313
  }
209314
209314
  function directoryHasPackageJson(directory) {
209315
209315
  return packageJsons.has(combinePaths(directory, "package.json")) ? -1 : directoriesWithoutPackageJson.has(directory) ? 0 : 3;
@@ -209506,8 +209506,8 @@ ${json}${newLine}`;
209506
209506
  function combineProjectOutput(defaultValue, getValue, projects, action) {
209507
209507
  const outputs = flatMapToMutable(isArray(projects) ? projects : projects.projects, (project) => action(project, defaultValue));
209508
209508
  if (!isArray(projects) && projects.symLinkedProjects) {
209509
- projects.symLinkedProjects.forEach((projects2, path10) => {
209510
- const value = getValue(path10);
209509
+ projects.symLinkedProjects.forEach((projects2, path11) => {
209510
+ const value = getValue(path11);
209511
209511
  outputs.push(...flatMap(projects2, (project) => action(project, value)));
209512
209512
  });
209513
209513
  }
@@ -209653,9 +209653,9 @@ ${json}${newLine}`;
209653
209653
  });
209654
209654
  return results.filter((o) => o.references.length !== 0);
209655
209655
  }
209656
- function forEachProjectInProjects(projects, path10, cb) {
209656
+ function forEachProjectInProjects(projects, path11, cb) {
209657
209657
  for (const project of isArray(projects) ? projects : projects.projects) {
209658
- cb(project, path10);
209658
+ cb(project, path11);
209659
209659
  }
209660
209660
  if (!isArray(projects) && projects.symLinkedProjects) {
209661
209661
  projects.symLinkedProjects.forEach((symlinkedProjects, symlinkedPath) => {
@@ -209669,8 +209669,8 @@ ${json}${newLine}`;
209669
209669
  const resultsMap = /* @__PURE__ */ new Map();
209670
209670
  const queue = createQueue();
209671
209671
  queue.enqueue({ project: defaultProject, location: initialLocation });
209672
- forEachProjectInProjects(projects, initialLocation.fileName, (project, path10) => {
209673
- const location = { fileName: path10, pos: initialLocation.pos };
209672
+ forEachProjectInProjects(projects, initialLocation.fileName, (project, path11) => {
209673
+ const location = { fileName: path11, pos: initialLocation.pos };
209674
209674
  queue.enqueue({ project, location });
209675
209675
  });
209676
209676
  const projectService = defaultProject.projectService;
@@ -211512,8 +211512,8 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
211512
211512
  nodeModulesPathParts.packageRootIndex
211513
211513
  );
211514
211514
  const packageName = getPackageNameFromTypesPackageName(unmangleScopedPackageName(packageNamePathPart));
211515
- const path10 = project.toPath(fileName);
211516
- if (entrypoints && some(entrypoints, (e) => project.toPath(e) === path10)) {
211515
+ const path11 = project.toPath(fileName);
211516
+ if (entrypoints && some(entrypoints, (e) => project.toPath(e) === path11)) {
211517
211517
  return (_b = auxiliaryProject.resolutionCache.resolveSingleModuleNameWithoutWatching(packageName, resolveFromFile).resolvedModule) == null ? void 0 : _b.resolvedFileName;
211518
211518
  } else {
211519
211519
  const pathToFileInPackage = fileName.substring(nodeModulesPathParts.packageRootIndex + 1);
@@ -212293,7 +212293,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
212293
212293
  }
212294
212294
  return combineProjectOutput(
212295
212295
  info,
212296
- (path10) => this.projectService.getScriptInfoForPath(path10),
212296
+ (path11) => this.projectService.getScriptInfoForPath(path11),
212297
212297
  projects,
212298
212298
  (project, info2) => {
212299
212299
  if (!project.compileOnSaveEnabled || !project.languageServiceEnabled || project.isOrphan()) {
@@ -212320,7 +212320,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
212320
212320
  return args.richResponse ? { emitSkipped: true, diagnostics: [] } : false;
212321
212321
  }
212322
212322
  const scriptInfo = project.getScriptInfo(file);
212323
- const { emitSkipped, diagnostics } = project.emitFile(scriptInfo, (path10, data, writeByteOrderMark) => this.host.writeFile(path10, data, writeByteOrderMark));
212323
+ const { emitSkipped, diagnostics } = project.emitFile(scriptInfo, (path11, data, writeByteOrderMark) => this.host.writeFile(path11, data, writeByteOrderMark));
212324
212324
  return args.richResponse ? {
212325
212325
  emitSkipped,
212326
212326
  diagnostics: args.includeLinePosition ? this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(diagnostics) : diagnostics.map((d) => formatDiagnosticToProtocol(
@@ -215502,8 +215502,8 @@ async function generateWithHeuristics(descriptor, options) {
215502
215502
  };
215503
215503
  }
215504
215504
  async function extractExamplesFromTests(testFile, _ruleId) {
215505
- const fs12 = await import("fs/promises");
215506
- const content = await fs12.readFile(testFile, "utf-8");
215505
+ const fs14 = await import("fs/promises");
215506
+ const content = await fs14.readFile(testFile, "utf-8");
215507
215507
  const examples = [];
215508
215508
  const testPattern = /(?:it|test)\s*\(\s*(?:'((?:\\'|[^'])*)'|"((?:\\"|[^"])*)"|`((?:\\`|[^`])*?)`)/g;
215509
215509
  let match;
@@ -215701,14 +215701,14 @@ async function writeLedgerSnapshots(registry, options) {
215701
215701
  }
215702
215702
  }
215703
215703
  async function hasArtifactFile(type, ruleId) {
215704
- const fs12 = await import("fs/promises");
215705
- const path10 = await import("path");
215704
+ const fs14 = await import("fs/promises");
215705
+ const path11 = await import("path");
215706
215706
  const candidateDirs = type === "tests" ? ["src/__tests__", "tests", "test"] : ["spec", "specs"];
215707
215707
  const sanitized = ruleId.replace(/[^a-zA-Z0-9_-]/g, "_");
215708
215708
  for (const dir of candidateDirs) {
215709
- const fullDir = path10.resolve(process.cwd(), dir);
215709
+ const fullDir = path11.resolve(process.cwd(), dir);
215710
215710
  try {
215711
- const entries = await fs12.readdir(fullDir);
215711
+ const entries = await fs14.readdir(fullDir);
215712
215712
  if (entries.some((file) => file.includes(sanitized))) {
215713
215713
  return true;
215714
215714
  }
@@ -215732,8 +215732,8 @@ function gapsToEvents(_gaps) {
215732
215732
  }
215733
215733
  async function emitGapArtifacts(payload) {
215734
215734
  if (payload.gapOutput) {
215735
- const fs12 = await import("fs/promises");
215736
- await fs12.writeFile(payload.gapOutput, JSON.stringify(payload, null, 2));
215735
+ const fs14 = await import("fs/promises");
215736
+ await fs14.writeFile(payload.gapOutput, JSON.stringify(payload, null, 2));
215737
215737
  } else {
215738
215738
  console.log(JSON.stringify(payload, null, 2));
215739
215739
  }
@@ -215914,14 +215914,14 @@ async function reverseCommand(options) {
215914
215914
  }
215915
215915
  }
215916
215916
  async function writeContractToFile(contract, outputDir, format) {
215917
- const fs12 = await import("fs/promises");
215918
- const path10 = await import("path");
215917
+ const fs14 = await import("fs/promises");
215918
+ const path11 = await import("path");
215919
215919
  const crypto2 = await import("crypto");
215920
- await fs12.mkdir(outputDir, { recursive: true });
215920
+ await fs14.mkdir(outputDir, { recursive: true });
215921
215921
  const hash = crypto2.createHash("md5").update(contract.ruleId).digest("hex").slice(0, 6);
215922
215922
  const sanitized = contract.ruleId.replace(/[^a-zA-Z0-9_-]/g, "-");
215923
215923
  const fileName = `${sanitized}-${hash}.${format === "yaml" ? "yaml" : "json"}`;
215924
- const filePath = path10.join(outputDir, fileName);
215924
+ const filePath = path11.join(outputDir, fileName);
215925
215925
  let content;
215926
215926
  if (format === "yaml") {
215927
215927
  const yaml = await import("js-yaml");
@@ -215929,7 +215929,7 @@ async function writeContractToFile(contract, outputDir, format) {
215929
215929
  } else {
215930
215930
  content = JSON.stringify(contract, null, 2);
215931
215931
  }
215932
- await fs12.writeFile(filePath, content);
215932
+ await fs14.writeFile(filePath, content);
215933
215933
  }
215934
215934
  var init_reverse = __esm({
215935
215935
  "src/cli/commands/reverse.ts"() {
@@ -215941,6 +215941,683 @@ var init_reverse = __esm({
215941
215941
  }
215942
215942
  });
215943
215943
 
215944
+ // src/conversations/types.ts
215945
+ var init_types3 = __esm({
215946
+ "src/conversations/types.ts"() {
215947
+ "use strict";
215948
+ }
215949
+ });
215950
+
215951
+ // src/conversations/capture.ts
215952
+ function captureConversation(input) {
215953
+ const now = (/* @__PURE__ */ new Date()).toISOString();
215954
+ return {
215955
+ id: (0, import_node_crypto2.randomUUID)(),
215956
+ timestamp: now,
215957
+ turns: input.turns.map((turn) => ({
215958
+ role: turn.role,
215959
+ content: turn.content,
215960
+ timestamp: turn.timestamp || now,
215961
+ metadata: {}
215962
+ })),
215963
+ metadata: {
215964
+ source: input.metadata?.source || "unknown",
215965
+ userId: input.metadata?.userId,
215966
+ sessionId: input.metadata?.sessionId,
215967
+ tags: input.metadata?.tags || []
215968
+ },
215969
+ redacted: false,
215970
+ normalized: false,
215971
+ classified: false
215972
+ };
215973
+ }
215974
+ function loadConversation(json) {
215975
+ const data = JSON.parse(json);
215976
+ if (!data.id || !data.timestamp || !data.turns || !data.metadata) {
215977
+ throw new Error("Invalid conversation JSON: missing required fields");
215978
+ }
215979
+ return data;
215980
+ }
215981
+ var import_node_crypto2;
215982
+ var init_capture = __esm({
215983
+ "src/conversations/capture.ts"() {
215984
+ "use strict";
215985
+ import_node_crypto2 = require("crypto");
215986
+ }
215987
+ });
215988
+
215989
+ // src/conversations/redact.ts
215990
+ function redactText(text) {
215991
+ let redacted = text;
215992
+ for (const { pattern, replacement } of PII_PATTERNS) {
215993
+ redacted = redacted.replace(pattern, replacement);
215994
+ }
215995
+ return redacted;
215996
+ }
215997
+ function redactConversation(conversation) {
215998
+ return {
215999
+ ...conversation,
216000
+ turns: conversation.turns.map((turn) => ({
216001
+ ...turn,
216002
+ content: redactText(turn.content)
216003
+ })),
216004
+ metadata: {
216005
+ ...conversation.metadata,
216006
+ // Redact userId if it looks like an email
216007
+ userId: conversation.metadata.userId ? redactText(conversation.metadata.userId) : void 0
216008
+ },
216009
+ redacted: true
216010
+ };
216011
+ }
216012
+ var PII_PATTERNS;
216013
+ var init_redact = __esm({
216014
+ "src/conversations/redact.ts"() {
216015
+ "use strict";
216016
+ PII_PATTERNS = [
216017
+ // Email addresses
216018
+ { pattern: /\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g, replacement: "[EMAIL_REDACTED]" },
216019
+ // Phone numbers (simple patterns)
216020
+ { pattern: /\b\d{3}[-.]?\d{3}[-.]?\d{4}\b/g, replacement: "[PHONE_REDACTED]" },
216021
+ // Credit card numbers (basic pattern - intentionally broad for safety)
216022
+ { pattern: /\b\d{4}[\s-]?\d{4}[\s-]?\d{4}[\s-]?\d{4}\b/g, replacement: "[CARD_REDACTED]" },
216023
+ // SSN pattern
216024
+ { pattern: /\b\d{3}-\d{2}-\d{4}\b/g, replacement: "[SSN_REDACTED]" },
216025
+ // IP addresses (basic pattern - may match invalid IPs like 999.999.999.999)
216026
+ { pattern: /\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b/g, replacement: "[IP_REDACTED]" }
216027
+ ];
216028
+ }
216029
+ });
216030
+
216031
+ // src/conversations/normalize.ts
216032
+ function normalizeWhitespace(text) {
216033
+ return text.replace(/\r\n/g, "\n").replace(/\t/g, " ").replace(/\n{3,}/g, "\n\n").trim();
216034
+ }
216035
+ function normalizeCodeBlocks(text) {
216036
+ return text.replace(/```(\w+)?\n/g, (_match, lang) => {
216037
+ return lang ? `\`\`\`${lang.toLowerCase()}
216038
+ ` : "```\n";
216039
+ });
216040
+ }
216041
+ function normalizeTurn(content) {
216042
+ let normalized = content;
216043
+ normalized = normalizeWhitespace(normalized);
216044
+ normalized = normalizeCodeBlocks(normalized);
216045
+ return normalized;
216046
+ }
216047
+ function normalizeConversation(conversation) {
216048
+ return {
216049
+ ...conversation,
216050
+ turns: conversation.turns.map((turn) => ({
216051
+ ...turn,
216052
+ content: normalizeTurn(turn.content)
216053
+ })),
216054
+ normalized: true
216055
+ };
216056
+ }
216057
+ var init_normalize = __esm({
216058
+ "src/conversations/normalize.ts"() {
216059
+ "use strict";
216060
+ }
216061
+ });
216062
+
216063
+ // src/conversations/classify.ts
216064
+ function extractKeywords(text) {
216065
+ return text.toLowerCase().split(/\s+/).map((word) => word.replace(/[^\w]/g, "")).filter((word) => word.length > 2);
216066
+ }
216067
+ function calculateScores(conversation) {
216068
+ const scores = {};
216069
+ const allContent = conversation.turns.map((t) => t.content).join(" ");
216070
+ const keywords = extractKeywords(allContent);
216071
+ const keywordSet = new Set(keywords);
216072
+ for (const rule of CLASSIFICATION_RULES) {
216073
+ let matchCount = 0;
216074
+ for (const keyword of rule.keywords) {
216075
+ if (keywordSet.has(keyword.toLowerCase())) {
216076
+ matchCount++;
216077
+ }
216078
+ }
216079
+ if (matchCount > 0) {
216080
+ scores[rule.category] = matchCount / rule.keywords.length * rule.weight;
216081
+ }
216082
+ }
216083
+ return scores;
216084
+ }
216085
+ function classifyConversation(conversation) {
216086
+ const scores = calculateScores(conversation);
216087
+ let bestCategory = "unknown";
216088
+ let bestScore = 0;
216089
+ for (const [category, score] of Object.entries(scores)) {
216090
+ if (score > bestScore) {
216091
+ bestScore = score;
216092
+ bestCategory = category;
216093
+ }
216094
+ }
216095
+ const classification = {
216096
+ category: bestCategory,
216097
+ confidence: Math.min(bestScore, 1),
216098
+ tags: Object.entries(scores).filter(([_, score]) => score > 0.3).map(([category]) => category)
216099
+ };
216100
+ return {
216101
+ ...conversation,
216102
+ classification,
216103
+ classified: true
216104
+ };
216105
+ }
216106
+ var CLASSIFICATION_RULES;
216107
+ var init_classify = __esm({
216108
+ "src/conversations/classify.ts"() {
216109
+ "use strict";
216110
+ CLASSIFICATION_RULES = [
216111
+ {
216112
+ category: "bug-report",
216113
+ keywords: ["bug", "error", "crash", "broken", "issue", "problem", "fail", "exception"],
216114
+ weight: 1
216115
+ },
216116
+ {
216117
+ category: "feature-request",
216118
+ keywords: ["feature", "enhancement", "add", "support", "implement", "would like", "could you"],
216119
+ weight: 1
216120
+ },
216121
+ {
216122
+ category: "question",
216123
+ keywords: ["how", "what", "why", "when", "where", "?", "help", "question"],
216124
+ weight: 0.8
216125
+ },
216126
+ {
216127
+ category: "documentation",
216128
+ keywords: ["docs", "documentation", "readme", "guide", "tutorial", "example"],
216129
+ weight: 0.9
216130
+ },
216131
+ {
216132
+ category: "performance",
216133
+ keywords: ["slow", "performance", "optimize", "speed", "memory", "cpu"],
216134
+ weight: 1
216135
+ }
216136
+ ];
216137
+ }
216138
+ });
216139
+
216140
+ // src/conversations/candidates.ts
216141
+ function generateCandidate(conversation) {
216142
+ if (!conversation.classified || !conversation.classification) {
216143
+ throw new Error("Conversation must be classified before generating candidates");
216144
+ }
216145
+ const { classification } = conversation;
216146
+ let type = "documentation";
216147
+ if (classification.category === "bug-report") {
216148
+ type = "github-issue";
216149
+ } else if (classification.category === "feature-request") {
216150
+ type = "github-issue";
216151
+ } else if (classification.category === "documentation") {
216152
+ type = "documentation";
216153
+ }
216154
+ const firstUserTurn = conversation.turns.find((t) => t.role === "user");
216155
+ if (!firstUserTurn) {
216156
+ return null;
216157
+ }
216158
+ const title = generateTitle(firstUserTurn.content, classification.category);
216159
+ const body = generateBody(conversation);
216160
+ let priority = "medium";
216161
+ if (classification.category === "bug-report" && (classification.confidence ?? 0) > 0.7) {
216162
+ priority = "high";
216163
+ }
216164
+ const labels = [...new Set([classification.category, ...classification.tags || []].filter((label) => label !== void 0))];
216165
+ return {
216166
+ id: (0, import_node_crypto3.randomUUID)(),
216167
+ conversationId: conversation.id,
216168
+ type,
216169
+ title,
216170
+ body,
216171
+ metadata: {
216172
+ priority,
216173
+ labels,
216174
+ source: {
216175
+ conversationId: conversation.id,
216176
+ timestamp: conversation.timestamp
216177
+ }
216178
+ },
216179
+ emitted: false
216180
+ };
216181
+ }
216182
+ function generateTitle(content, category) {
216183
+ const firstLine = content.split("\n")[0].trim();
216184
+ const firstSentence = firstLine.split(/[.!?]/)[0].trim();
216185
+ let title = firstSentence.substring(0, 80);
216186
+ if (firstSentence.length > 80) {
216187
+ title += "...";
216188
+ }
216189
+ if (category && category !== "unknown") {
216190
+ const prefix = category.split("-").map((w) => w[0].toUpperCase() + w.slice(1)).join(" ");
216191
+ title = `[${prefix}] ${title}`;
216192
+ }
216193
+ return title;
216194
+ }
216195
+ function generateBody(conversation) {
216196
+ const parts = [];
216197
+ parts.push("## Conversation Summary\n");
216198
+ for (const turn of conversation.turns) {
216199
+ const roleName = turn.role.charAt(0).toUpperCase() + turn.role.slice(1);
216200
+ parts.push(`**${roleName}:**
216201
+ ${turn.content}
216202
+ `);
216203
+ }
216204
+ if (conversation.classification) {
216205
+ parts.push(`
216206
+ ## Classification
216207
+ `);
216208
+ parts.push(`- Category: ${conversation.classification.category}`);
216209
+ parts.push(`- Confidence: ${(conversation.classification.confidence || 0).toFixed(2)}`);
216210
+ if (conversation.classification.tags && conversation.classification.tags.length > 0) {
216211
+ parts.push(`- Tags: ${conversation.classification.tags.join(", ")}`);
216212
+ }
216213
+ }
216214
+ parts.push(`
216215
+ ---
216216
+ *Generated from conversation ${conversation.id}*`);
216217
+ return parts.join("\n");
216218
+ }
216219
+ var import_node_crypto3;
216220
+ var init_candidates = __esm({
216221
+ "src/conversations/candidates.ts"() {
216222
+ "use strict";
216223
+ import_node_crypto3 = require("crypto");
216224
+ }
216225
+ });
216226
+
216227
+ // src/conversations/gate.ts
216228
+ function gateMinimumLength(candidate) {
216229
+ const minLength = 50;
216230
+ const passed = candidate.body.length >= minLength;
216231
+ return {
216232
+ name: "minimum-length",
216233
+ passed,
216234
+ message: passed ? "Content meets minimum length requirement" : `Content too short (${candidate.body.length} < ${minLength} chars)`
216235
+ };
216236
+ }
216237
+ function gateValidTitle(candidate) {
216238
+ const passed = candidate.title.length > 10 && candidate.title.length < 200;
216239
+ return {
216240
+ name: "valid-title",
216241
+ passed,
216242
+ message: passed ? "Title is valid" : "Title length must be between 10 and 200 characters"
216243
+ };
216244
+ }
216245
+ function gateNotDuplicate(_candidate) {
216246
+ return {
216247
+ name: "not-duplicate",
216248
+ passed: true,
216249
+ message: "Duplicate check passed (stub)"
216250
+ };
216251
+ }
216252
+ function gateHasMetadata(candidate) {
216253
+ const hasLabels = !!(candidate.metadata.labels && candidate.metadata.labels.length > 0);
216254
+ const hasPriority = !!candidate.metadata.priority;
216255
+ const passed = hasLabels && hasPriority;
216256
+ return {
216257
+ name: "has-metadata",
216258
+ passed,
216259
+ message: passed ? "Candidate has required metadata" : "Missing labels or priority in metadata"
216260
+ };
216261
+ }
216262
+ function applyGates(candidate) {
216263
+ const gates = [
216264
+ gateMinimumLength(candidate),
216265
+ gateValidTitle(candidate),
216266
+ gateNotDuplicate(candidate),
216267
+ gateHasMetadata(candidate)
216268
+ ];
216269
+ const allPassed = gates.every((g) => g.passed);
216270
+ const failedGates = gates.filter((g) => !g.passed);
216271
+ const gateStatus = {
216272
+ passed: allPassed,
216273
+ reason: allPassed ? "All gates passed" : `Failed gates: ${failedGates.map((g) => g.name).join(", ")}`,
216274
+ gates
216275
+ };
216276
+ return {
216277
+ ...candidate,
216278
+ gateStatus
216279
+ };
216280
+ }
216281
+ function candidatePassed(candidate) {
216282
+ return candidate.gateStatus?.passed || false;
216283
+ }
216284
+ var init_gate = __esm({
216285
+ "src/conversations/gate.ts"() {
216286
+ "use strict";
216287
+ }
216288
+ });
216289
+
216290
+ // src/conversations/emitters/fs.ts
216291
+ async function emitToFS(candidate, options) {
216292
+ const { outputDir, dryRun = false } = options;
216293
+ if (dryRun) {
216294
+ console.log(`[DRY RUN] Would emit candidate ${candidate.id} to ${outputDir}`);
216295
+ return {
216296
+ ...candidate,
216297
+ emitted: true,
216298
+ emissionResult: {
216299
+ success: true,
216300
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
216301
+ externalId: `fs://${outputDir}/${candidate.id}.json`
216302
+ }
216303
+ };
216304
+ }
216305
+ try {
216306
+ await import_node_fs3.promises.mkdir(outputDir, { recursive: true });
216307
+ const filename = `${candidate.id}.json`;
216308
+ const filepath = import_node_path3.default.join(outputDir, filename);
216309
+ await import_node_fs3.promises.writeFile(filepath, JSON.stringify(candidate, null, 2), "utf-8");
216310
+ const result = {
216311
+ success: true,
216312
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
216313
+ externalId: `fs://${filepath}`
216314
+ };
216315
+ return {
216316
+ ...candidate,
216317
+ emitted: true,
216318
+ emissionResult: result
216319
+ };
216320
+ } catch (error) {
216321
+ const result = {
216322
+ success: false,
216323
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
216324
+ error: error instanceof Error ? error.message : "Unknown error"
216325
+ };
216326
+ return {
216327
+ ...candidate,
216328
+ emitted: false,
216329
+ emissionResult: result
216330
+ };
216331
+ }
216332
+ }
216333
+ var import_node_fs3, import_node_path3;
216334
+ var init_fs = __esm({
216335
+ "src/conversations/emitters/fs.ts"() {
216336
+ "use strict";
216337
+ import_node_fs3 = require("fs");
216338
+ import_node_path3 = __toESM(require("path"), 1);
216339
+ }
216340
+ });
216341
+
216342
+ // src/conversations/emitters/github.ts
216343
+ async function emitToGitHub(candidate, options) {
216344
+ const { owner, repo, token, dryRun = false, commitIntent = false } = options;
216345
+ if (!commitIntent) {
216346
+ const result = {
216347
+ success: false,
216348
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
216349
+ error: "GATE FAILURE: commit_intent must be explicitly set to true for GitHub emission"
216350
+ };
216351
+ console.error(`[GATE BLOCKED] ${result.error}`);
216352
+ return {
216353
+ ...candidate,
216354
+ emitted: false,
216355
+ emissionResult: result
216356
+ };
216357
+ }
216358
+ if (dryRun) {
216359
+ console.log(`[DRY RUN] Would create GitHub issue in ${owner}/${repo}`);
216360
+ console.log(`Title: ${candidate.title}`);
216361
+ console.log(`Labels: ${candidate.metadata.labels?.join(", ") || "none"}`);
216362
+ return {
216363
+ ...candidate,
216364
+ emitted: true,
216365
+ emissionResult: {
216366
+ success: true,
216367
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
216368
+ externalId: `github://${owner}/${repo}/issues/DRY_RUN`
216369
+ }
216370
+ };
216371
+ }
216372
+ try {
216373
+ if (!owner || !repo) {
216374
+ throw new Error("GitHub owner and repo are required");
216375
+ }
216376
+ if (!token) {
216377
+ throw new Error("GitHub token is required for emission");
216378
+ }
216379
+ const issueData = {
216380
+ title: candidate.title,
216381
+ body: candidate.body,
216382
+ labels: candidate.metadata.labels || [],
216383
+ assignees: candidate.metadata.assignees || []
216384
+ };
216385
+ const response = await fetch(`https://api.github.com/repos/${owner}/${repo}/issues`, {
216386
+ method: "POST",
216387
+ headers: {
216388
+ "Authorization": `token ${token}`,
216389
+ "Accept": "application/vnd.github.v3+json",
216390
+ "Content-Type": "application/json"
216391
+ },
216392
+ body: JSON.stringify(issueData)
216393
+ });
216394
+ if (!response.ok) {
216395
+ const errorData = await response.json();
216396
+ throw new Error(`GitHub API error: ${errorData.message || response.statusText}`);
216397
+ }
216398
+ const issue = await response.json();
216399
+ const result = {
216400
+ success: true,
216401
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
216402
+ externalId: `github://${owner}/${repo}/issues/${issue.number}`
216403
+ };
216404
+ console.log(`\u2713 Created GitHub issue #${issue.number}: ${issue.html_url}`);
216405
+ return {
216406
+ ...candidate,
216407
+ emitted: true,
216408
+ emissionResult: result
216409
+ };
216410
+ } catch (error) {
216411
+ const result = {
216412
+ success: false,
216413
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
216414
+ error: error instanceof Error ? error.message : "Unknown error"
216415
+ };
216416
+ console.error(`\u2717 Failed to create GitHub issue: ${result.error}`);
216417
+ return {
216418
+ ...candidate,
216419
+ emitted: false,
216420
+ emissionResult: result
216421
+ };
216422
+ }
216423
+ }
216424
+ var init_github = __esm({
216425
+ "src/conversations/emitters/github.ts"() {
216426
+ "use strict";
216427
+ }
216428
+ });
216429
+
216430
+ // src/conversations/index.ts
216431
+ var init_conversations = __esm({
216432
+ "src/conversations/index.ts"() {
216433
+ "use strict";
216434
+ init_types3();
216435
+ init_capture();
216436
+ init_redact();
216437
+ init_normalize();
216438
+ init_classify();
216439
+ init_candidates();
216440
+ init_gate();
216441
+ init_fs();
216442
+ init_github();
216443
+ init_capture();
216444
+ init_redact();
216445
+ init_normalize();
216446
+ init_classify();
216447
+ init_candidates();
216448
+ init_gate();
216449
+ init_fs();
216450
+ init_github();
216451
+ }
216452
+ });
216453
+
216454
+ // src/cli/commands/conversations.ts
216455
+ var conversations_exports = {};
216456
+ __export(conversations_exports, {
216457
+ captureCommand: () => captureCommand,
216458
+ classifyCommand: () => classifyCommand,
216459
+ emitCommand: () => emitCommand,
216460
+ pushCommand: () => pushCommand
216461
+ });
216462
+ async function captureCommand(options) {
216463
+ console.log("\u{1F4DD} Capturing conversation...");
216464
+ let conversation;
216465
+ if (options.input) {
216466
+ const content = await import_node_fs4.promises.readFile(options.input, "utf-8");
216467
+ conversation = loadConversation(content);
216468
+ console.log(`\u2713 Loaded conversation from ${options.input}`);
216469
+ } else {
216470
+ conversation = captureConversation({
216471
+ turns: [
216472
+ { role: "user", content: "Hello, I have a question about the feature" },
216473
+ { role: "assistant", content: "Sure, I'd be happy to help!" }
216474
+ ],
216475
+ metadata: {
216476
+ source: "cli"
216477
+ }
216478
+ });
216479
+ console.log("\u2713 Created sample conversation");
216480
+ }
216481
+ if (options.output) {
216482
+ await import_node_fs4.promises.writeFile(
216483
+ options.output,
216484
+ JSON.stringify(conversation, null, 2),
216485
+ "utf-8"
216486
+ );
216487
+ console.log(`\u2713 Saved to ${options.output}`);
216488
+ } else {
216489
+ console.log(JSON.stringify(conversation, null, 2));
216490
+ }
216491
+ }
216492
+ async function pushCommand(options) {
216493
+ console.log("\u{1F504} Processing conversation through pipeline...");
216494
+ const content = await import_node_fs4.promises.readFile(options.input, "utf-8");
216495
+ let conversation = loadConversation(content);
216496
+ console.log(`\u2713 Loaded conversation ${conversation.id}`);
216497
+ if (!options.skipRedaction) {
216498
+ conversation = redactConversation(conversation);
216499
+ console.log("\u2713 Redacted PII");
216500
+ }
216501
+ if (!options.skipNormalization) {
216502
+ conversation = normalizeConversation(conversation);
216503
+ console.log("\u2713 Normalized content");
216504
+ }
216505
+ if (options.output) {
216506
+ await import_node_fs4.promises.writeFile(
216507
+ options.output,
216508
+ JSON.stringify(conversation, null, 2),
216509
+ "utf-8"
216510
+ );
216511
+ console.log(`\u2713 Saved to ${options.output}`);
216512
+ } else {
216513
+ console.log(JSON.stringify(conversation, null, 2));
216514
+ }
216515
+ }
216516
+ async function classifyCommand(options) {
216517
+ console.log("\u{1F3F7}\uFE0F Classifying conversation...");
216518
+ const content = await import_node_fs4.promises.readFile(options.input, "utf-8");
216519
+ let conversation = loadConversation(content);
216520
+ console.log(`\u2713 Loaded conversation ${conversation.id}`);
216521
+ if (!conversation.redacted) {
216522
+ conversation = redactConversation(conversation);
216523
+ console.log("\u2713 Applied redaction");
216524
+ }
216525
+ if (!conversation.normalized) {
216526
+ conversation = normalizeConversation(conversation);
216527
+ console.log("\u2713 Applied normalization");
216528
+ }
216529
+ conversation = classifyConversation(conversation);
216530
+ console.log(`\u2713 Classified as: ${conversation.classification?.category} (confidence: ${conversation.classification?.confidence?.toFixed(2)})`);
216531
+ const candidate = generateCandidate(conversation);
216532
+ if (!candidate) {
216533
+ console.error("\u2717 Failed to generate candidate");
216534
+ process.exit(1);
216535
+ }
216536
+ console.log(`\u2713 Generated candidate: ${candidate.title}`);
216537
+ const gatedCandidate = applyGates(candidate);
216538
+ console.log(`
216539
+ \u{1F4CB} Gate Results:`);
216540
+ for (const gate of gatedCandidate.gateStatus?.gates || []) {
216541
+ const icon = gate.passed ? "\u2713" : "\u2717";
216542
+ console.log(` ${icon} ${gate.name}: ${gate.message}`);
216543
+ }
216544
+ const passed = candidatePassed(gatedCandidate);
216545
+ console.log(`
216546
+ ${passed ? "\u2713 All gates passed" : "\u2717 Some gates failed"}`);
216547
+ if (options.output) {
216548
+ await import_node_fs4.promises.writeFile(
216549
+ options.output,
216550
+ JSON.stringify(gatedCandidate, null, 2),
216551
+ "utf-8"
216552
+ );
216553
+ console.log(`\u2713 Saved candidate to ${options.output}`);
216554
+ } else {
216555
+ console.log("\n" + JSON.stringify(gatedCandidate, null, 2));
216556
+ }
216557
+ }
216558
+ async function emitCommand(options) {
216559
+ console.log("\u{1F4E4} Emitting candidate...");
216560
+ const content = await import_node_fs4.promises.readFile(options.input, "utf-8");
216561
+ const candidate = JSON.parse(content);
216562
+ console.log(`\u2713 Loaded candidate ${candidate.id}`);
216563
+ if (!candidatePassed(candidate)) {
216564
+ console.error("\u2717 Candidate did not pass gates, refusing to emit");
216565
+ console.error(` Reason: ${candidate.gateStatus?.reason}`);
216566
+ process.exit(1);
216567
+ }
216568
+ let result;
216569
+ if (options.emitter === "fs") {
216570
+ const outputDir = options.outputDir || "./output/candidates";
216571
+ result = await emitToFS(candidate, {
216572
+ outputDir,
216573
+ dryRun: options.dryRun
216574
+ });
216575
+ if (result.emissionResult?.success) {
216576
+ console.log(`\u2713 Emitted to filesystem: ${result.emissionResult.externalId}`);
216577
+ } else {
216578
+ console.error(`\u2717 Emission failed: ${result.emissionResult?.error}`);
216579
+ process.exit(1);
216580
+ }
216581
+ } else if (options.emitter === "github") {
216582
+ if (!options.owner || !options.repo) {
216583
+ console.error("\u2717 GitHub emitter requires --owner and --repo");
216584
+ process.exit(1);
216585
+ }
216586
+ if (!options.commitIntent) {
216587
+ console.error("");
216588
+ console.error("\u26D4 GATE BLOCKED: commit_intent=false");
216589
+ console.error("");
216590
+ console.error("The GitHub emitter is HARD GATED by the --commit-intent flag.");
216591
+ console.error("This prevents accidental issue creation.");
216592
+ console.error("");
216593
+ console.error("To emit to GitHub, add: --commit-intent");
216594
+ console.error("");
216595
+ process.exit(1);
216596
+ }
216597
+ result = await emitToGitHub(candidate, {
216598
+ owner: options.owner,
216599
+ repo: options.repo,
216600
+ token: options.token,
216601
+ dryRun: options.dryRun,
216602
+ commitIntent: options.commitIntent
216603
+ });
216604
+ if (result.emissionResult?.success) {
216605
+ console.log(`\u2713 Emitted to GitHub: ${result.emissionResult.externalId}`);
216606
+ } else {
216607
+ console.error(`\u2717 Emission failed: ${result.emissionResult?.error}`);
216608
+ process.exit(1);
216609
+ }
216610
+ }
216611
+ }
216612
+ var import_node_fs4;
216613
+ var init_conversations2 = __esm({
216614
+ "src/cli/commands/conversations.ts"() {
216615
+ "use strict";
216616
+ import_node_fs4 = require("fs");
216617
+ init_conversations();
216618
+ }
216619
+ });
216620
+
215944
216621
  // src/cli/index.ts
215945
216622
  var import_commander = require("commander");
215946
216623
 
@@ -217160,6 +217837,43 @@ program.command("reverse").description("Reverse engineer contracts from existing
217160
217837
  process.exit(1);
217161
217838
  }
217162
217839
  });
217840
+ var conversationsCmd = program.command("conversations").description("Conversation ingestion subsystem (capture -> redact -> normalize -> classify -> emit)");
217841
+ conversationsCmd.command("capture").description("Capture a conversation from input").option("-i, --input <file>", "Input conversation file").option("-o, --output <file>", "Output file for captured conversation").action(async (options) => {
217842
+ try {
217843
+ const { captureCommand: captureCommand2 } = await Promise.resolve().then(() => (init_conversations2(), conversations_exports));
217844
+ await captureCommand2(options);
217845
+ } catch (error) {
217846
+ console.error("Error capturing conversation:", error);
217847
+ process.exit(1);
217848
+ }
217849
+ });
217850
+ conversationsCmd.command("push").description("Process conversation through pipeline (redact -> normalize)").requiredOption("-i, --input <file>", "Input conversation file").option("-o, --output <file>", "Output file for processed conversation").option("--skip-redaction", "Skip PII redaction", false).option("--skip-normalization", "Skip normalization", false).action(async (options) => {
217851
+ try {
217852
+ const { pushCommand: pushCommand2 } = await Promise.resolve().then(() => (init_conversations2(), conversations_exports));
217853
+ await pushCommand2(options);
217854
+ } catch (error) {
217855
+ console.error("Error processing conversation:", error);
217856
+ process.exit(1);
217857
+ }
217858
+ });
217859
+ conversationsCmd.command("classify").description("Classify conversation and generate candidate").requiredOption("-i, --input <file>", "Input conversation file").option("-o, --output <file>", "Output file for candidate").action(async (options) => {
217860
+ try {
217861
+ const { classifyCommand: classifyCommand2 } = await Promise.resolve().then(() => (init_conversations2(), conversations_exports));
217862
+ await classifyCommand2(options);
217863
+ } catch (error) {
217864
+ console.error("Error classifying conversation:", error);
217865
+ process.exit(1);
217866
+ }
217867
+ });
217868
+ conversationsCmd.command("emit").description("Emit candidate to destination (fs or github)").requiredOption("-i, --input <file>", "Input candidate file").requiredOption("-e, --emitter <type>", "Emitter type (fs, github)").option("--output-dir <dir>", "Output directory (for fs emitter)", "./output/candidates").option("--owner <owner>", "GitHub repository owner (for github emitter)").option("--repo <repo>", "GitHub repository name (for github emitter)").option("--token <token>", "GitHub token (for github emitter)").option("--dry-run", "Dry run mode (no actual emission)", false).option("--commit-intent", "REQUIRED: Explicit commit intent for GitHub emission", false).action(async (options) => {
217869
+ try {
217870
+ const { emitCommand: emitCommand2 } = await Promise.resolve().then(() => (init_conversations2(), conversations_exports));
217871
+ await emitCommand2(options);
217872
+ } catch (error) {
217873
+ console.error("Error emitting candidate:", error);
217874
+ process.exit(1);
217875
+ }
217876
+ });
217163
217877
  program.parse();
217164
217878
  /*! Bundled license information:
217165
217879