@typescript-deploys/pr-build 5.0.0-pr-51157-8 → 5.0.0-pr-51474-2

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.
package/lib/tsc.js CHANGED
@@ -23,36 +23,11 @@ var __export = (target, all) => {
23
23
 
24
24
  // src/compiler/corePublic.ts
25
25
  var versionMajorMinor = "5.0";
26
- var version = `${versionMajorMinor}.0-insiders.20221108`;
27
- var NativeCollections;
28
- ((NativeCollections2) => {
29
- const globals = typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : void 0;
30
- function tryGetNativeMap() {
31
- const gMap = globals == null ? void 0 : globals.Map;
32
- const constructor = typeof gMap !== "undefined" && "entries" in gMap.prototype && new gMap([[0, 0]]).size === 1 ? gMap : void 0;
33
- if (!constructor) {
34
- throw new Error("No compatible Map implementation found.");
35
- }
36
- return constructor;
37
- }
38
- NativeCollections2.tryGetNativeMap = tryGetNativeMap;
39
- function tryGetNativeSet() {
40
- const gSet = globals == null ? void 0 : globals.Set;
41
- const constructor = typeof gSet !== "undefined" && "entries" in gSet.prototype && new gSet([0]).size === 1 ? gSet : void 0;
42
- if (!constructor) {
43
- throw new Error("No compatible Set implementation found.");
44
- }
45
- return constructor;
46
- }
47
- NativeCollections2.tryGetNativeSet = tryGetNativeSet;
48
- })(NativeCollections || (NativeCollections = {}));
49
- var Map = NativeCollections.tryGetNativeMap();
50
- var Set = NativeCollections.tryGetNativeSet();
26
+ var version = `${versionMajorMinor}.0-insiders.20221110`;
51
27
 
52
28
  // src/compiler/core.ts
53
29
  var emptyArray = [];
54
- var emptyMap = new Map();
55
- var emptySet = new Set();
30
+ var emptyMap = /* @__PURE__ */ new Map();
56
31
  function length(array) {
57
32
  return array ? array.length : 0;
58
33
  }
@@ -797,7 +772,7 @@ function equalOwnProperties(left, right, equalityComparer = equateValues) {
797
772
  return true;
798
773
  }
799
774
  function arrayToMap(array, makeKey, makeValue = identity) {
800
- const result = new Map();
775
+ const result = /* @__PURE__ */ new Map();
801
776
  for (const value of array) {
802
777
  const key = makeKey(value);
803
778
  if (key !== void 0)
@@ -849,7 +824,7 @@ function maybeBind(obj, fn) {
849
824
  return fn ? fn.bind(obj) : void 0;
850
825
  }
851
826
  function createMultiMap() {
852
- const map2 = new Map();
827
+ const map2 = /* @__PURE__ */ new Map();
853
828
  map2.add = multiMapAdd;
854
829
  map2.remove = multiMapRemove;
855
830
  return map2;
@@ -964,7 +939,7 @@ function memoize(callback) {
964
939
  };
965
940
  }
966
941
  function memoizeOne(callback) {
967
- const map2 = new Map();
942
+ const map2 = /* @__PURE__ */ new Map();
968
943
  return (arg) => {
969
944
  const key = `${typeof arg}:${arg}`;
970
945
  let value = map2.get(key);
@@ -1584,7 +1559,7 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`,
1584
1559
  return value.toString();
1585
1560
  }
1586
1561
  Debug2.formatEnum = formatEnum;
1587
- const enumMemberCache = new Map();
1562
+ const enumMemberCache = /* @__PURE__ */ new Map();
1588
1563
  function getEnumMembers(enumObject) {
1589
1564
  const existing = enumMemberCache.get(enumObject);
1590
1565
  if (existing) {
@@ -1990,7 +1965,7 @@ m2: ${this.mapper2.__debugToString().split("\n").join("\n ")}`;
1990
1965
  const links = /* @__PURE__ */ Object.create(null);
1991
1966
  const nodes = [];
1992
1967
  const edges = [];
1993
- const root = buildGraphNode(flowNode, new Set());
1968
+ const root = buildGraphNode(flowNode, /* @__PURE__ */ new Set());
1994
1969
  for (const node of nodes) {
1995
1970
  node.text = renderFlowNode(node.flowNode, node.circular);
1996
1971
  computeLevel(node);
@@ -2733,9 +2708,9 @@ function createTimer(measureName, startMarkName, endMarkName) {
2733
2708
  var nullTimer = { enter: noop, exit: noop };
2734
2709
  var enabled = false;
2735
2710
  var timeorigin = timestamp();
2736
- var marks = new Map();
2737
- var counts = new Map();
2738
- var durations = new Map();
2711
+ var marks = /* @__PURE__ */ new Map();
2712
+ var counts = /* @__PURE__ */ new Map();
2713
+ var durations = /* @__PURE__ */ new Map();
2739
2714
  function mark(markName) {
2740
2715
  var _a2;
2741
2716
  if (enabled) {
@@ -2961,7 +2936,7 @@ var tracingEnabled;
2961
2936
  mark("beginDumpTypes");
2962
2937
  const typesPath = legend[legend.length - 1].typesPath;
2963
2938
  const typesFd = fs.openSync(typesPath, "w");
2964
- const recursionIdentityMap = new Map();
2939
+ const recursionIdentityMap = /* @__PURE__ */ new Map();
2965
2940
  fs.writeSync(typesFd, "[");
2966
2941
  const numTypes = types.length;
2967
2942
  for (let i = 0; i < numTypes; i++) {
@@ -4186,7 +4161,7 @@ function createDynamicPriorityPollingWatchFile(host) {
4186
4161
  }
4187
4162
  function createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames) {
4188
4163
  const fileWatcherCallbacks = createMultiMap();
4189
- const dirWatchers = new Map();
4164
+ const dirWatchers = /* @__PURE__ */ new Map();
4190
4165
  const toCanonicalName = createGetCanonicalFileName(useCaseSensitiveFileNames);
4191
4166
  return nonPollingWatchFile;
4192
4167
  function nonPollingWatchFile(fileName, callback, _pollingInterval, fallbackOptions) {
@@ -4320,9 +4295,9 @@ function createDirectoryWatcherSupportingRecursive({
4320
4295
  setTimeout: setTimeout2,
4321
4296
  clearTimeout: clearTimeout2
4322
4297
  }) {
4323
- const cache = new Map();
4298
+ const cache = /* @__PURE__ */ new Map();
4324
4299
  const callbackCache = createMultiMap();
4325
- const cacheToUpdateChildWatches = new Map();
4300
+ const cacheToUpdateChildWatches = /* @__PURE__ */ new Map();
4326
4301
  let timerToUpdateChildWatches;
4327
4302
  const filePathComparer = getStringComparer(!useCaseSensitiveFileNames);
4328
4303
  const toCanonicalFilePath = createGetCanonicalFileName(useCaseSensitiveFileNames);
@@ -4424,7 +4399,7 @@ function createDirectoryWatcherSupportingRecursive({
4424
4399
  timerToUpdateChildWatches = void 0;
4425
4400
  sysLog(`sysLog:: onTimerToUpdateChildWatches:: ${cacheToUpdateChildWatches.size}`);
4426
4401
  const start = timestamp();
4427
- const invokeMap = new Map();
4402
+ const invokeMap = /* @__PURE__ */ new Map();
4428
4403
  while (!timerToUpdateChildWatches && cacheToUpdateChildWatches.size) {
4429
4404
  const result = cacheToUpdateChildWatches.entries().next();
4430
4405
  Debug.assert(!result.done);
@@ -4545,9 +4520,9 @@ function createSystemWatchFunctions({
4545
4520
  inodeWatching,
4546
4521
  sysLog: sysLog2
4547
4522
  }) {
4548
- const pollingWatches = new Map();
4549
- const fsWatches = new Map();
4550
- const fsWatchesRecursive = new Map();
4523
+ const pollingWatches = /* @__PURE__ */ new Map();
4524
+ const fsWatches = /* @__PURE__ */ new Map();
4525
+ const fsWatchesRecursive = /* @__PURE__ */ new Map();
4551
4526
  let dynamicPollingWatchFile;
4552
4527
  let fixedChunkSizePollingWatchFile;
4553
4528
  let nonPollingWatchFile;
@@ -5001,7 +4976,7 @@ var sys = (() => {
5001
4976
  }
5002
4977
  function cleanupPaths(profile) {
5003
4978
  let externalFileCounter = 0;
5004
- const remappedPaths = new Map();
4979
+ const remappedPaths = /* @__PURE__ */ new Map();
5005
4980
  const normalizedDir = normalizeSlashes(_path.dirname(executingFilePath));
5006
4981
  const fileUrlRoot = `file://${getRootLength(normalizedDir) === 1 ? "" : "/"}${normalizedDir}`;
5007
4982
  for (const node of profile.nodes) {
@@ -10678,7 +10653,7 @@ function getDeclarationsOfKind(symbol, kind) {
10678
10653
  return filter(symbol.declarations || emptyArray, (d) => d.kind === kind);
10679
10654
  }
10680
10655
  function createSymbolTable(symbols) {
10681
- const result = new Map();
10656
+ const result = /* @__PURE__ */ new Map();
10682
10657
  if (symbols) {
10683
10658
  for (const symbol of symbols) {
10684
10659
  result.set(symbol.escapedName, symbol);
@@ -10946,7 +10921,7 @@ function createCommentDirectivesMap(sourceFile, commentDirectives) {
10946
10921
  commentDirective
10947
10922
  ])
10948
10923
  );
10949
- const usedLines = new Map();
10924
+ const usedLines = /* @__PURE__ */ new Map();
10950
10925
  return { getUnusedExpectations, markUsed };
10951
10926
  function getUnusedExpectations() {
10952
10927
  return arrayFrom(directivesByLine.entries()).filter(([line, directive]) => directive.type === 0 /* ExpectError */ && !usedLines.get(line)).map(([_, directive]) => directive);
@@ -13171,7 +13146,7 @@ function getSemanticJsxChildren(children) {
13171
13146
  function createDiagnosticCollection() {
13172
13147
  let nonFileDiagnostics = [];
13173
13148
  const filesWithDiagnostics = [];
13174
- const fileDiagnostics = new Map();
13149
+ const fileDiagnostics = /* @__PURE__ */ new Map();
13175
13150
  let hasReadNonFileDiagnostics = false;
13176
13151
  return {
13177
13152
  add,
@@ -14887,7 +14862,7 @@ function createSymlinkCache(cwd, getCanonicalFileName) {
14887
14862
  getSymlinkedFiles: () => symlinkedFiles,
14888
14863
  getSymlinkedDirectories: () => symlinkedDirectories,
14889
14864
  getSymlinkedDirectoriesByRealpath: () => symlinkedDirectoriesByRealpath,
14890
- setSymlinkedFile: (path, real) => (symlinkedFiles || (symlinkedFiles = new Map())).set(path, real),
14865
+ setSymlinkedFile: (path, real) => (symlinkedFiles || (symlinkedFiles = /* @__PURE__ */ new Map())).set(path, real),
14891
14866
  setSymlinkedDirectory: (symlink, real) => {
14892
14867
  let symlinkPath = toPath(symlink, cwd, getCanonicalFileName);
14893
14868
  if (!containsIgnoredPath(symlinkPath)) {
@@ -14895,7 +14870,7 @@ function createSymlinkCache(cwd, getCanonicalFileName) {
14895
14870
  if (real !== false && !(symlinkedDirectories == null ? void 0 : symlinkedDirectories.has(symlinkPath))) {
14896
14871
  (symlinkedDirectoriesByRealpath || (symlinkedDirectoriesByRealpath = createMultiMap())).add(ensureTrailingDirectorySeparator(real.realPath), symlink);
14897
14872
  }
14898
- (symlinkedDirectories || (symlinkedDirectories = new Map())).set(symlinkPath, real);
14873
+ (symlinkedDirectories || (symlinkedDirectories = /* @__PURE__ */ new Map())).set(symlinkPath, real);
14899
14874
  }
14900
14875
  },
14901
14876
  setSymlinksFromResolutions(files, typeReferenceDirectives) {
@@ -15059,7 +15034,7 @@ function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNa
15059
15034
  const includeDirectoryRegex = patterns.includeDirectoryPattern && getRegexFromPattern(patterns.includeDirectoryPattern, useCaseSensitiveFileNames);
15060
15035
  const excludeRegex = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, useCaseSensitiveFileNames);
15061
15036
  const results = includeFileRegexes ? includeFileRegexes.map(() => []) : [[]];
15062
- const visited = new Map();
15037
+ const visited = /* @__PURE__ */ new Map();
15063
15038
  const toCanonical = createGetCanonicalFileName(useCaseSensitiveFileNames);
15064
15039
  for (const basePath of patterns.basePaths) {
15065
15040
  visitDirectory(basePath, combinePaths(currentDirectory, basePath), depth);
@@ -15769,7 +15744,7 @@ function createParenthesizerRules(factory2) {
15769
15744
  parenthesizeLeadingTypeArgument
15770
15745
  };
15771
15746
  function getParenthesizeLeftSideOfBinaryForOperator(operatorKind) {
15772
- binaryLeftOperandParenthesizerCache || (binaryLeftOperandParenthesizerCache = new Map());
15747
+ binaryLeftOperandParenthesizerCache || (binaryLeftOperandParenthesizerCache = /* @__PURE__ */ new Map());
15773
15748
  let parenthesizerRule = binaryLeftOperandParenthesizerCache.get(operatorKind);
15774
15749
  if (!parenthesizerRule) {
15775
15750
  parenthesizerRule = (node) => parenthesizeLeftSideOfBinary(operatorKind, node);
@@ -15778,7 +15753,7 @@ function createParenthesizerRules(factory2) {
15778
15753
  return parenthesizerRule;
15779
15754
  }
15780
15755
  function getParenthesizeRightSideOfBinaryForOperator(operatorKind) {
15781
- binaryRightOperandParenthesizerCache || (binaryRightOperandParenthesizerCache = new Map());
15756
+ binaryRightOperandParenthesizerCache || (binaryRightOperandParenthesizerCache = /* @__PURE__ */ new Map());
15782
15757
  let parenthesizerRule = binaryRightOperandParenthesizerCache.get(operatorKind);
15783
15758
  if (!parenthesizerRule) {
15784
15759
  parenthesizerRule = (node) => parenthesizeRightSideOfBinary(operatorKind, void 0, node);
@@ -20062,7 +20037,7 @@ function createNodeFactory(flags, baseFactory2) {
20062
20037
  if (leftStandardPrologueEnd === 0) {
20063
20038
  left.splice(0, 0, ...declarations.slice(0, rightStandardPrologueEnd));
20064
20039
  } else {
20065
- const leftPrologues = new Map();
20040
+ const leftPrologues = /* @__PURE__ */ new Map();
20066
20041
  for (let i = 0; i < leftStandardPrologueEnd; i++) {
20067
20042
  const leftPrologue = statements[i];
20068
20043
  leftPrologues.set(leftPrologue.expression.text, true);
@@ -20467,7 +20442,7 @@ function createInputFilesWithFilePaths(readFileText, javascriptPath, javascriptM
20467
20442
  node.declarationPath = declarationPath;
20468
20443
  node.declarationMapPath = declarationMapPath;
20469
20444
  node.buildInfoPath = buildInfoPath;
20470
- const cache = new Map();
20445
+ const cache = /* @__PURE__ */ new Map();
20471
20446
  const textGetter = (path) => {
20472
20447
  if (path === void 0)
20473
20448
  return void 0;
@@ -23661,8 +23636,8 @@ var Parser;
23661
23636
  languageVariant = getLanguageVariant(_scriptKind);
23662
23637
  parseDiagnostics = [];
23663
23638
  parsingContext = 0;
23664
- identifiers = new Map();
23665
- privateIdentifiers = new Map();
23639
+ identifiers = /* @__PURE__ */ new Map();
23640
+ privateIdentifiers = /* @__PURE__ */ new Map();
23666
23641
  identifierCount = 0;
23667
23642
  nodeCount = 0;
23668
23643
  sourceFlags = 0;
@@ -26147,7 +26122,7 @@ var Parser;
26147
26122
  }
26148
26123
  const result = parseParenthesizedArrowFunctionExpression(false, allowReturnTypeInArrowFunction);
26149
26124
  if (!result) {
26150
- (notParenthesizedArrow || (notParenthesizedArrow = new Set())).add(tokenPos);
26125
+ (notParenthesizedArrow || (notParenthesizedArrow = /* @__PURE__ */ new Set())).add(tokenPos);
26151
26126
  }
26152
26127
  return result;
26153
26128
  }
@@ -29605,7 +29580,7 @@ function processCommentPragmas(context, sourceText) {
29605
29580
  const comment = sourceText.substring(range.pos, range.end);
29606
29581
  extractPragmas(pragmas, range, comment);
29607
29582
  }
29608
- context.pragmas = new Map();
29583
+ context.pragmas = /* @__PURE__ */ new Map();
29609
29584
  for (const pragma of pragmas) {
29610
29585
  if (context.pragmas.has(pragma.name)) {
29611
29586
  const currentValue = context.pragmas.get(pragma.name);
@@ -29692,7 +29667,7 @@ function processPragmasIntoFields(context, reportDiagnostic) {
29692
29667
  }
29693
29668
  });
29694
29669
  }
29695
- var namedArgRegExCache = new Map();
29670
+ var namedArgRegExCache = /* @__PURE__ */ new Map();
29696
29671
  function getNamedArgRegEx(name) {
29697
29672
  if (namedArgRegExCache.has(name)) {
29698
29673
  return namedArgRegExCache.get(name);
@@ -31155,8 +31130,8 @@ var typeAcquisitionDeclarations = [
31155
31130
  }
31156
31131
  ];
31157
31132
  function createOptionNameMap(optionDeclarations2) {
31158
- const optionsNameMap = new Map();
31159
- const shortOptionNames = new Map();
31133
+ const optionsNameMap = /* @__PURE__ */ new Map();
31134
+ const shortOptionNames = /* @__PURE__ */ new Map();
31160
31135
  forEach(optionDeclarations2, (option) => {
31161
31136
  optionsNameMap.set(option.name.toLowerCase(), option);
31162
31137
  if (option.shortName) {
@@ -31874,7 +31849,7 @@ function serializeWatchOptions(options) {
31874
31849
  return serializeOptionBaseObject(options, getWatchOptionsNameMap());
31875
31850
  }
31876
31851
  function serializeOptionBaseObject(options, { optionsNameMap }, pathOptions) {
31877
- const result = new Map();
31852
+ const result = /* @__PURE__ */ new Map();
31878
31853
  const getCanonicalFileName = pathOptions && createGetCanonicalFileName(pathOptions.useCaseSensitiveFileNames);
31879
31854
  for (const name in options) {
31880
31855
  if (hasProperty(options, name)) {
@@ -31942,7 +31917,7 @@ function generateTSConfig(options, fileNames, newLine) {
31942
31917
  return !isCommandLineOnly && category !== void 0 && (!categoriesToSkip.includes(category) || compilerOptionsMap.has(name));
31943
31918
  }
31944
31919
  function writeConfigurations() {
31945
- const categorizedOptions = new Map();
31920
+ const categorizedOptions = /* @__PURE__ */ new Map();
31946
31921
  categorizedOptions.set(Diagnostics.Projects, []);
31947
31922
  categorizedOptions.set(Diagnostics.Language_and_Environment, []);
31948
31923
  categorizedOptions.set(Diagnostics.Modules, []);
@@ -32504,9 +32479,9 @@ var wildcardDirectoryPattern = /^[^*?]*(?=\/[^/]*[*?])/;
32504
32479
  function getFileNamesFromConfigSpecs(configFileSpecs, basePath, options, host, extraFileExtensions = emptyArray) {
32505
32480
  basePath = normalizePath(basePath);
32506
32481
  const keyMapper = createGetCanonicalFileName(host.useCaseSensitiveFileNames);
32507
- const literalFileMap = new Map();
32508
- const wildcardFileMap = new Map();
32509
- const wildCardJsonFileMap = new Map();
32482
+ const literalFileMap = /* @__PURE__ */ new Map();
32483
+ const wildcardFileMap = /* @__PURE__ */ new Map();
32484
+ const wildCardJsonFileMap = /* @__PURE__ */ new Map();
32510
32485
  const { validatedFilesSpec, validatedIncludeSpecs, validatedExcludeSpecs } = configFileSpecs;
32511
32486
  const supportedExtensions = getSupportedExtensions(options, extraFileExtensions);
32512
32487
  const supportedExtensionsWithJsonIfResolveJsonModule = getSupportedExtensionsWithJsonIfResolveJsonModule(options, supportedExtensions);
@@ -33075,8 +33050,8 @@ function getAutomaticTypeDirectiveNames(options, host) {
33075
33050
  return result;
33076
33051
  }
33077
33052
  function createCacheWithRedirects(options) {
33078
- let ownMap = new Map();
33079
- const redirectsMap = new Map();
33053
+ let ownMap = /* @__PURE__ */ new Map();
33054
+ const redirectsMap = /* @__PURE__ */ new Map();
33080
33055
  return {
33081
33056
  getOwnMap,
33082
33057
  redirectsMap,
@@ -33101,7 +33076,7 @@ function createCacheWithRedirects(options) {
33101
33076
  const path = redirectedReference.sourceFile.path;
33102
33077
  let redirects = redirectsMap.get(path);
33103
33078
  if (!redirects) {
33104
- redirects = !options || optionsHaveModuleResolutionChanges(options, redirectedReference.commandLine.options) ? new Map() : ownMap;
33079
+ redirects = !options || optionsHaveModuleResolutionChanges(options, redirectedReference.commandLine.options) ? /* @__PURE__ */ new Map() : ownMap;
33105
33080
  redirectsMap.set(path, redirects);
33106
33081
  }
33107
33082
  return redirects;
@@ -33118,7 +33093,7 @@ function createPackageJsonInfoCache(currentDirectory, getCanonicalFileName) {
33118
33093
  return cache == null ? void 0 : cache.get(toPath(packageJsonPath, currentDirectory, getCanonicalFileName));
33119
33094
  }
33120
33095
  function setPackageJsonInfo(packageJsonPath, info) {
33121
- (cache || (cache = new Map())).set(toPath(packageJsonPath, currentDirectory, getCanonicalFileName), info);
33096
+ (cache || (cache = /* @__PURE__ */ new Map())).set(toPath(packageJsonPath, currentDirectory, getCanonicalFileName), info);
33122
33097
  }
33123
33098
  function clear2() {
33124
33099
  cache = void 0;
@@ -33179,8 +33154,8 @@ function createPerDirectoryResolutionCache(currentDirectory, getCanonicalFileNam
33179
33154
  }
33180
33155
  }
33181
33156
  function createModeAwareCache() {
33182
- const underlying = new Map();
33183
- const memoizedReverseKeys = new Map();
33157
+ const underlying = /* @__PURE__ */ new Map();
33158
+ const memoizedReverseKeys = /* @__PURE__ */ new Map();
33184
33159
  const cache = {
33185
33160
  get(specifier, mode) {
33186
33161
  return underlying.get(getUnderlyingCacheKey(specifier, mode));
@@ -33257,7 +33232,7 @@ function createModuleResolutionCache(currentDirectory, getCanonicalFileName, opt
33257
33232
  return getOrCreateCache(moduleNameToDirectoryMap, redirectedReference, mode === void 0 ? nonRelativeModuleName : `${mode}|${nonRelativeModuleName}`, createPerModuleNameCache);
33258
33233
  }
33259
33234
  function createPerModuleNameCache() {
33260
- const directoryPathMap = new Map();
33235
+ const directoryPathMap = /* @__PURE__ */ new Map();
33261
33236
  return { get, set };
33262
33237
  function get(directory) {
33263
33238
  return directoryPathMap.get(toPath(directory, currentDirectory, getCanonicalFileName));
@@ -34596,7 +34571,7 @@ function getModuleInstanceState(node, visited) {
34596
34571
  }
34597
34572
  return node.body ? getModuleInstanceStateCached(node.body, visited) : 1 /* Instantiated */;
34598
34573
  }
34599
- function getModuleInstanceStateCached(node, visited = new Map()) {
34574
+ function getModuleInstanceStateCached(node, visited = /* @__PURE__ */ new Map()) {
34600
34575
  const nodeId = getNodeId(node);
34601
34576
  if (visited.has(nodeId)) {
34602
34577
  return visited.get(nodeId) || 0 /* NonInstantiated */;
@@ -34748,7 +34723,7 @@ function createBinder() {
34748
34723
  options = opts;
34749
34724
  languageVersion = getEmitScriptTarget(options);
34750
34725
  inStrictMode = bindInStrictMode(file, opts);
34751
- classifiableNames = new Set();
34726
+ classifiableNames = /* @__PURE__ */ new Set();
34752
34727
  symbolCount = 0;
34753
34728
  Symbol12 = objectAllocator.getSymbolConstructor();
34754
34729
  Debug.attachFlowNodeDebugInfo(unreachableFlow);
@@ -36874,7 +36849,7 @@ function createBinder() {
36874
36849
  }
36875
36850
  function addLateBoundAssignmentDeclarationToSymbol(node, symbol) {
36876
36851
  if (symbol) {
36877
- (symbol.assignmentDeclarationMembers || (symbol.assignmentDeclarationMembers = new Map())).set(getNodeId(node), node);
36852
+ (symbol.assignmentDeclarationMembers || (symbol.assignmentDeclarationMembers = /* @__PURE__ */ new Map())).set(getNodeId(node), node);
36878
36853
  }
36879
36854
  }
36880
36855
  function bindSpecialPropertyDeclaration(node) {
@@ -37660,7 +37635,7 @@ function getAllModulePaths(importingFilePath, importedFileName, host, preference
37660
37635
  }
37661
37636
  function getAllModulePathsWorker(importingFileName, importedFileName, host) {
37662
37637
  const getCanonicalFileName = hostGetCanonicalFileName(host);
37663
- const allFileNames = new Map();
37638
+ const allFileNames = /* @__PURE__ */ new Map();
37664
37639
  let importedFileFromNodeModules = false;
37665
37640
  forEachFileNameOfModule(
37666
37641
  importingFileName,
@@ -38179,7 +38154,7 @@ function isInstantiatedModule(node, preserveConstEnums) {
38179
38154
  }
38180
38155
  function createTypeChecker(host) {
38181
38156
  const getPackagesMap = memoize(() => {
38182
- const map2 = new Map();
38157
+ const map2 = /* @__PURE__ */ new Map();
38183
38158
  host.getSourceFiles().forEach((sf) => {
38184
38159
  if (!sf.resolvedModules)
38185
38160
  return;
@@ -38592,26 +38567,26 @@ function createTypeChecker(host) {
38592
38567
  apparentArgumentCount = void 0;
38593
38568
  return res;
38594
38569
  }
38595
- const tupleTypes = new Map();
38596
- const unionTypes = new Map();
38597
- const intersectionTypes = new Map();
38598
- const stringLiteralTypes = new Map();
38599
- const numberLiteralTypes = new Map();
38600
- const bigIntLiteralTypes = new Map();
38601
- const enumLiteralTypes = new Map();
38602
- const indexedAccessTypes = new Map();
38603
- const templateLiteralTypes = new Map();
38604
- const stringMappingTypes = new Map();
38605
- const substitutionTypes = new Map();
38606
- const subtypeReductionCache = new Map();
38607
- const cachedTypes = new Map();
38570
+ const tupleTypes = /* @__PURE__ */ new Map();
38571
+ const unionTypes = /* @__PURE__ */ new Map();
38572
+ const intersectionTypes = /* @__PURE__ */ new Map();
38573
+ const stringLiteralTypes = /* @__PURE__ */ new Map();
38574
+ const numberLiteralTypes = /* @__PURE__ */ new Map();
38575
+ const bigIntLiteralTypes = /* @__PURE__ */ new Map();
38576
+ const enumLiteralTypes = /* @__PURE__ */ new Map();
38577
+ const indexedAccessTypes = /* @__PURE__ */ new Map();
38578
+ const templateLiteralTypes = /* @__PURE__ */ new Map();
38579
+ const stringMappingTypes = /* @__PURE__ */ new Map();
38580
+ const substitutionTypes = /* @__PURE__ */ new Map();
38581
+ const subtypeReductionCache = /* @__PURE__ */ new Map();
38582
+ const cachedTypes = /* @__PURE__ */ new Map();
38608
38583
  const evolvingArrayTypes = [];
38609
- const undefinedProperties = new Map();
38610
- const markerTypes = new Set();
38584
+ const undefinedProperties = /* @__PURE__ */ new Map();
38585
+ const markerTypes = /* @__PURE__ */ new Set();
38611
38586
  const unknownSymbol = createSymbol(4 /* Property */, "unknown");
38612
38587
  const resolvingSymbol = createSymbol(0, "__resolving__" /* Resolving */);
38613
- const unresolvedSymbols = new Map();
38614
- const errorTypes = new Map();
38588
+ const unresolvedSymbols = /* @__PURE__ */ new Map();
38589
+ const errorTypes = /* @__PURE__ */ new Map();
38615
38590
  const anyType = createIntrinsicType(1 /* Any */, "any");
38616
38591
  const autoType = createIntrinsicType(1 /* Any */, "any", 262144 /* NonInferrableType */);
38617
38592
  const wildcardType = createIntrinsicType(1 /* Any */, "any");
@@ -38682,7 +38657,7 @@ function createTypeChecker(host) {
38682
38657
  const unknownEmptyObjectType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);
38683
38658
  const unknownUnionType = strictNullChecks ? getUnionType([undefinedType, nullType, unknownEmptyObjectType]) : unknownType;
38684
38659
  const emptyGenericType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);
38685
- emptyGenericType.instantiations = new Map();
38660
+ emptyGenericType.instantiations = /* @__PURE__ */ new Map();
38686
38661
  const anyFunctionType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);
38687
38662
  anyFunctionType.objectFlags |= 262144 /* NonInferrableType */;
38688
38663
  const noConstraintType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);
@@ -38701,7 +38676,7 @@ function createTypeChecker(host) {
38701
38676
  const resolvingSignature = createSignature(void 0, void 0, void 0, emptyArray, anyType, void 0, 0, 0 /* None */);
38702
38677
  const silentNeverSignature = createSignature(void 0, void 0, void 0, emptyArray, silentNeverType, void 0, 0, 0 /* None */);
38703
38678
  const enumNumberIndexInfo = createIndexInfo(numberType, stringType, true);
38704
- const iterationTypesCache = new Map();
38679
+ const iterationTypesCache = /* @__PURE__ */ new Map();
38705
38680
  const noIterationTypes = {
38706
38681
  get yieldType() {
38707
38682
  return Debug.fail("Not supported");
@@ -38743,7 +38718,7 @@ function createTypeChecker(host) {
38743
38718
  mustHaveAValueDiagnostic: Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property
38744
38719
  };
38745
38720
  let amalgamatedDuplicates;
38746
- const reverseMappedCache = new Map();
38721
+ const reverseMappedCache = /* @__PURE__ */ new Map();
38747
38722
  let inInferTypeForHomomorphicMappedType = false;
38748
38723
  let ambientModulesCache;
38749
38724
  let patternAmbientModules;
@@ -38791,7 +38766,7 @@ function createTypeChecker(host) {
38791
38766
  let deferredGlobalBigIntType;
38792
38767
  let deferredGlobalNaNSymbol;
38793
38768
  let deferredGlobalRecordSymbol;
38794
- const allPotentiallyUnusedIdentifiers = new Map();
38769
+ const allPotentiallyUnusedIdentifiers = /* @__PURE__ */ new Map();
38795
38770
  let flowLoopStart = 0;
38796
38771
  let flowLoopCount = 0;
38797
38772
  let sharedFlowCount = 0;
@@ -38830,12 +38805,12 @@ function createTypeChecker(host) {
38830
38805
  const typeofType = createTypeofType();
38831
38806
  let _jsxNamespace;
38832
38807
  let _jsxFactoryEntity;
38833
- const subtypeRelation = new Map();
38834
- const strictSubtypeRelation = new Map();
38835
- const assignableRelation = new Map();
38836
- const comparableRelation = new Map();
38837
- const identityRelation = new Map();
38838
- const enumRelation = new Map();
38808
+ const subtypeRelation = /* @__PURE__ */ new Map();
38809
+ const strictSubtypeRelation = /* @__PURE__ */ new Map();
38810
+ const assignableRelation = /* @__PURE__ */ new Map();
38811
+ const comparableRelation = /* @__PURE__ */ new Map();
38812
+ const identityRelation = /* @__PURE__ */ new Map();
38813
+ const enumRelation = /* @__PURE__ */ new Map();
38839
38814
  const builtinGlobals = createSymbolTable();
38840
38815
  builtinGlobals.set(undefinedSymbol.escapedName, undefinedSymbol);
38841
38816
  const suggestedExtensions = [
@@ -39116,7 +39091,7 @@ function createTypeChecker(host) {
39116
39091
  if (sourceSymbolFile && targetSymbolFile && amalgamatedDuplicates && !isEitherEnum && sourceSymbolFile !== targetSymbolFile) {
39117
39092
  const firstFile = comparePaths(sourceSymbolFile.path, targetSymbolFile.path) === -1 /* LessThan */ ? sourceSymbolFile : targetSymbolFile;
39118
39093
  const secondFile = firstFile === sourceSymbolFile ? targetSymbolFile : sourceSymbolFile;
39119
- const filesDuplicates = getOrUpdate(amalgamatedDuplicates, `${firstFile.path}|${secondFile.path}`, () => ({ firstFile, secondFile, conflictingSymbols: new Map() }));
39094
+ const filesDuplicates = getOrUpdate(amalgamatedDuplicates, `${firstFile.path}|${secondFile.path}`, () => ({ firstFile, secondFile, conflictingSymbols: /* @__PURE__ */ new Map() }));
39120
39095
  const conflictingSymbolInfo = getOrUpdate(filesDuplicates.conflictingSymbols, symbolName2, () => ({ isBlockScoped: isEitherBlockScoped, firstFileLocations: [], secondFileLocations: [] }));
39121
39096
  if (!isSourcePlainJs)
39122
39097
  addDuplicateLocations(conflictingSymbolInfo.firstFileLocations, source);
@@ -39194,7 +39169,7 @@ function createTypeChecker(host) {
39194
39169
  if (some(patternAmbientModules, (module2) => mainModule === module2.symbol)) {
39195
39170
  const merged = mergeSymbol(moduleAugmentation.symbol, mainModule, true);
39196
39171
  if (!patternAmbientModuleAugmentations) {
39197
- patternAmbientModuleAugmentations = new Map();
39172
+ patternAmbientModuleAugmentations = /* @__PURE__ */ new Map();
39198
39173
  }
39199
39174
  patternAmbientModuleAugmentations.set(moduleName.text, merged);
39200
39175
  } else {
@@ -40513,7 +40488,7 @@ function createTypeChecker(host) {
40513
40488
  if (seenSymbols) {
40514
40489
  seenSymbols.add(target);
40515
40490
  } else {
40516
- seenSymbols = new Set([symbol, target]);
40491
+ seenSymbols = /* @__PURE__ */ new Set([symbol, target]);
40517
40492
  }
40518
40493
  }
40519
40494
  flags |= target.flags;
@@ -41119,7 +41094,7 @@ function createTypeChecker(host) {
41119
41094
  const exportStars = symbol.exports.get("__export" /* ExportStar */);
41120
41095
  if (exportStars) {
41121
41096
  const nestedSymbols = createSymbolTable();
41122
- const lookupTable = new Map();
41097
+ const lookupTable = /* @__PURE__ */ new Map();
41123
41098
  if (exportStars.declarations) {
41124
41099
  for (const node of exportStars.declarations) {
41125
41100
  const resolvedModule = resolveExternalModuleName(node, node.moduleSpecifier);
@@ -41181,7 +41156,7 @@ function createTypeChecker(host) {
41181
41156
  results = append(results, resolvedModule);
41182
41157
  }
41183
41158
  if (length(results)) {
41184
- (links.extendedContainersByFile || (links.extendedContainersByFile = new Map())).set(id, results);
41159
+ (links.extendedContainersByFile || (links.extendedContainersByFile = /* @__PURE__ */ new Map())).set(id, results);
41185
41160
  return results;
41186
41161
  }
41187
41162
  }
@@ -41433,12 +41408,12 @@ function createTypeChecker(host) {
41433
41408
  function getQualifiedLeftMeaning(rightMeaning) {
41434
41409
  return rightMeaning === 111551 /* Value */ ? 111551 /* Value */ : 1920 /* Namespace */;
41435
41410
  }
41436
- function getAccessibleSymbolChain(symbol, enclosingDeclaration, meaning, useOnlyExternalAliasing, visitedSymbolTablesMap = new Map()) {
41411
+ function getAccessibleSymbolChain(symbol, enclosingDeclaration, meaning, useOnlyExternalAliasing, visitedSymbolTablesMap = /* @__PURE__ */ new Map()) {
41437
41412
  if (!(symbol && !isPropertyOrMethodDeclarationSymbol(symbol))) {
41438
41413
  return void 0;
41439
41414
  }
41440
41415
  const links = getSymbolLinks(symbol);
41441
- const cache = links.accessibleChainCache || (links.accessibleChainCache = new Map());
41416
+ const cache = links.accessibleChainCache || (links.accessibleChainCache = /* @__PURE__ */ new Map());
41442
41417
  const firstRelevantLocation = forEachSymbolTableInScope(enclosingDeclaration, (_, __, ___, node) => node);
41443
41418
  const key = `${useOnlyExternalAliasing ? 0 : 1}|${firstRelevantLocation && getNodeId(firstRelevantLocation)}|${meaning}`;
41444
41419
  if (cache.has(key)) {
@@ -41808,22 +41783,25 @@ function createTypeChecker(host) {
41808
41783
  const context = {
41809
41784
  enclosingDeclaration,
41810
41785
  flags: flags || 0 /* None */,
41811
- tracker: tracker && tracker.trackSymbol ? tracker : { trackSymbol: () => false, moduleResolverHost: flags & 134217728 /* DoNotIncludeSymbolChain */ ? {
41812
- getCommonSourceDirectory: !!host.getCommonSourceDirectory ? () => host.getCommonSourceDirectory() : () => "",
41813
- getCurrentDirectory: () => host.getCurrentDirectory(),
41814
- getSymlinkCache: maybeBind(host, host.getSymlinkCache),
41815
- getPackageJsonInfoCache: () => {
41816
- var _a3;
41817
- return (_a3 = host.getPackageJsonInfoCache) == null ? void 0 : _a3.call(host);
41818
- },
41819
- useCaseSensitiveFileNames: maybeBind(host, host.useCaseSensitiveFileNames),
41820
- redirectTargetsMap: host.redirectTargetsMap,
41821
- getProjectReferenceRedirect: (fileName) => host.getProjectReferenceRedirect(fileName),
41822
- isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName),
41823
- fileExists: (fileName) => host.fileExists(fileName),
41824
- getFileIncludeReasons: () => host.getFileIncludeReasons(),
41825
- readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0
41826
- } : void 0 },
41786
+ tracker: tracker && tracker.trackSymbol ? tracker : {
41787
+ trackSymbol: () => false,
41788
+ moduleResolverHost: flags & 134217728 /* DoNotIncludeSymbolChain */ ? {
41789
+ getCommonSourceDirectory: !!host.getCommonSourceDirectory ? () => host.getCommonSourceDirectory() : () => "",
41790
+ getCurrentDirectory: () => host.getCurrentDirectory(),
41791
+ getSymlinkCache: maybeBind(host, host.getSymlinkCache),
41792
+ getPackageJsonInfoCache: () => {
41793
+ var _a3;
41794
+ return (_a3 = host.getPackageJsonInfoCache) == null ? void 0 : _a3.call(host);
41795
+ },
41796
+ useCaseSensitiveFileNames: maybeBind(host, host.useCaseSensitiveFileNames),
41797
+ redirectTargetsMap: host.redirectTargetsMap,
41798
+ getProjectReferenceRedirect: (fileName) => host.getProjectReferenceRedirect(fileName),
41799
+ isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName),
41800
+ fileExists: (fileName) => host.fileExists(fileName),
41801
+ getFileIncludeReasons: () => host.getFileIncludeReasons(),
41802
+ readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0
41803
+ } : void 0
41804
+ },
41827
41805
  encounteredError: false,
41828
41806
  reportedDiagnostic: false,
41829
41807
  visitedTypes: void 0,
@@ -42235,15 +42213,15 @@ function createTypeChecker(host) {
42235
42213
  const isConstructorObject = getObjectFlags(type2) & 16 /* Anonymous */ && type2.symbol && type2.symbol.flags & 32 /* Class */;
42236
42214
  const id = getObjectFlags(type2) & 4 /* Reference */ && type2.node ? "N" + getNodeId(type2.node) : type2.flags & 16777216 /* Conditional */ ? "N" + getNodeId(type2.root.node) : type2.symbol ? (isConstructorObject ? "+" : "") + getSymbolId(type2.symbol) : void 0;
42237
42215
  if (!context.visitedTypes) {
42238
- context.visitedTypes = new Set();
42216
+ context.visitedTypes = /* @__PURE__ */ new Set();
42239
42217
  }
42240
42218
  if (id && !context.symbolDepth) {
42241
- context.symbolDepth = new Map();
42219
+ context.symbolDepth = /* @__PURE__ */ new Map();
42242
42220
  }
42243
42221
  const links = context.enclosingDeclaration && getNodeLinks(context.enclosingDeclaration);
42244
42222
  const key = `${getTypeId(type2)}|${context.flags}`;
42245
42223
  if (links) {
42246
- links.serializedTypes || (links.serializedTypes = new Map());
42224
+ links.serializedTypes || (links.serializedTypes = /* @__PURE__ */ new Map());
42247
42225
  }
42248
42226
  const cachedResult = (_a2 = links == null ? void 0 : links.serializedTypes) == null ? void 0 : _a2.get(key);
42249
42227
  if (cachedResult) {
@@ -42886,7 +42864,7 @@ function createTypeChecker(host) {
42886
42864
  if ((_a2 = context.typeParameterSymbolList) == null ? void 0 : _a2.has(symbolId)) {
42887
42865
  return void 0;
42888
42866
  }
42889
- (context.typeParameterSymbolList || (context.typeParameterSymbolList = new Set())).add(symbolId);
42867
+ (context.typeParameterSymbolList || (context.typeParameterSymbolList = /* @__PURE__ */ new Set())).add(symbolId);
42890
42868
  let typeParameterNodes;
42891
42869
  if (context.flags & 512 /* WriteTypeParametersInQualifiedName */ && index < chain.length - 1) {
42892
42870
  const parentSymbol = symbol;
@@ -42960,7 +42938,7 @@ function createTypeChecker(host) {
42960
42938
  },
42961
42939
  { overrideImportMode }
42962
42940
  ));
42963
- (_a2 = links.specifierCache) != null ? _a2 : links.specifierCache = new Map();
42941
+ (_a2 = links.specifierCache) != null ? _a2 : links.specifierCache = /* @__PURE__ */ new Map();
42964
42942
  links.specifierCache.set(cacheKey, specifier);
42965
42943
  }
42966
42944
  return specifier;
@@ -43136,9 +43114,9 @@ function createTypeChecker(host) {
43136
43114
  if (text !== rawtext) {
43137
43115
  result = factory.createIdentifier(text, result.typeArguments);
43138
43116
  }
43139
- (context.typeParameterNamesByTextNextNameCount || (context.typeParameterNamesByTextNextNameCount = new Map())).set(rawtext, i);
43140
- (context.typeParameterNames || (context.typeParameterNames = new Map())).set(getTypeId(type), result);
43141
- (context.typeParameterNamesByText || (context.typeParameterNamesByText = new Set())).add(rawtext);
43117
+ (context.typeParameterNamesByTextNextNameCount || (context.typeParameterNamesByTextNextNameCount = /* @__PURE__ */ new Map())).set(rawtext, i);
43118
+ (context.typeParameterNames || (context.typeParameterNames = /* @__PURE__ */ new Map())).set(getTypeId(type), result);
43119
+ (context.typeParameterNamesByText || (context.typeParameterNamesByText = /* @__PURE__ */ new Set())).add(rawtext);
43142
43120
  }
43143
43121
  return result;
43144
43122
  }
@@ -43488,13 +43466,13 @@ function createTypeChecker(host) {
43488
43466
  const serializePropertySymbolForInterfaceWorker = makeSerializePropertySymbol((mods, name, question, type) => factory.createPropertySignature(mods, name, question, type), 170 /* MethodSignature */, false);
43489
43467
  const enclosingDeclaration = context.enclosingDeclaration;
43490
43468
  let results = [];
43491
- const visitedSymbols = new Set();
43469
+ const visitedSymbols = /* @__PURE__ */ new Set();
43492
43470
  const deferredPrivatesStack = [];
43493
43471
  const oldcontext = context;
43494
43472
  context = {
43495
43473
  ...oldcontext,
43496
43474
  usedSymbolNames: new Set(oldcontext.usedSymbolNames),
43497
- remappedSymbolNames: new Map(),
43475
+ remappedSymbolNames: /* @__PURE__ */ new Map(),
43498
43476
  tracker: {
43499
43477
  ...oldcontext.tracker,
43500
43478
  trackSymbol: (sym, decl, meaning) => {
@@ -43655,7 +43633,7 @@ function createTypeChecker(host) {
43655
43633
  }
43656
43634
  function visitSymbolTable(symbolTable2, suppressNewPrivateContext, propertyAsAlias) {
43657
43635
  if (!suppressNewPrivateContext) {
43658
- deferredPrivatesStack.push(new Map());
43636
+ deferredPrivatesStack.push(/* @__PURE__ */ new Map());
43659
43637
  }
43660
43638
  symbolTable2.forEach((symbol) => {
43661
43639
  serializeSymbol(symbol, false, !!propertyAsAlias);
@@ -44760,7 +44738,7 @@ function createTypeChecker(host) {
44760
44738
  let result;
44761
44739
  let visited;
44762
44740
  if (exportSymbol) {
44763
- visited = new Set();
44741
+ visited = /* @__PURE__ */ new Set();
44764
44742
  visited.add(getSymbolId(exportSymbol));
44765
44743
  buildVisibleNodeList(exportSymbol.declarations);
44766
44744
  }
@@ -46245,7 +46223,7 @@ function createTypeChecker(host) {
46245
46223
  type.typeParameters = concatenate(outerTypeParameters, localTypeParameters);
46246
46224
  type.outerTypeParameters = outerTypeParameters;
46247
46225
  type.localTypeParameters = localTypeParameters;
46248
- type.instantiations = new Map();
46226
+ type.instantiations = /* @__PURE__ */ new Map();
46249
46227
  type.instantiations.set(getTypeListId(type.typeParameters), type);
46250
46228
  type.target = type;
46251
46229
  type.resolvedTypeArguments = type.typeParameters;
@@ -46270,7 +46248,7 @@ function createTypeChecker(host) {
46270
46248
  const typeParameters = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol);
46271
46249
  if (typeParameters) {
46272
46250
  links.typeParameters = typeParameters;
46273
- links.instantiations = new Map();
46251
+ links.instantiations = /* @__PURE__ */ new Map();
46274
46252
  links.instantiations.set(getTypeListId(typeParameters), type);
46275
46253
  }
46276
46254
  } else {
@@ -47038,7 +47016,7 @@ function createTypeChecker(host) {
47038
47016
  if (symbol.exports) {
47039
47017
  members = getExportsOfSymbol(symbol);
47040
47018
  if (symbol === globalThisSymbol) {
47041
- const varsOnly = new Map();
47019
+ const varsOnly = /* @__PURE__ */ new Map();
47042
47020
  members.forEach((p) => {
47043
47021
  var _a2;
47044
47022
  if (!(p.flags & 418 /* BlockScoped */) && !(p.flags & 512 /* ValueModule */ && ((_a2 = p.declarations) == null ? void 0 : _a2.length) && every(p.declarations, isAmbientModule))) {
@@ -47135,7 +47113,7 @@ function createTypeChecker(host) {
47135
47113
  return type;
47136
47114
  }
47137
47115
  if (type.flags & 1048576 /* Union */) {
47138
- return mapType(type, getLowerBoundOfKeyType);
47116
+ return mapType(type, getLowerBoundOfKeyType, true);
47139
47117
  }
47140
47118
  if (type.flags & 2097152 /* Intersection */) {
47141
47119
  const types = type.types;
@@ -47682,7 +47660,7 @@ function createTypeChecker(host) {
47682
47660
  mergedInstantiations = !!singleProp.parent && !!length(getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(singleProp.parent));
47683
47661
  } else {
47684
47662
  if (!propSet) {
47685
- propSet = new Map();
47663
+ propSet = /* @__PURE__ */ new Map();
47686
47664
  propSet.set(getSymbolId(singleProp), singleProp);
47687
47665
  }
47688
47666
  const id = getSymbolId(prop);
@@ -48337,7 +48315,7 @@ function createTypeChecker(host) {
48337
48315
  return instantiatedSignature;
48338
48316
  }
48339
48317
  function getSignatureInstantiationWithoutFillingInTypeArguments(signature, typeArguments) {
48340
- const instantiations = signature.instantiations || (signature.instantiations = new Map());
48318
+ const instantiations = signature.instantiations || (signature.instantiations = /* @__PURE__ */ new Map());
48341
48319
  const id = getTypeListId(typeArguments);
48342
48320
  let instantiation = instantiations.get(id);
48343
48321
  if (!instantiation) {
@@ -49234,7 +49212,7 @@ function createTypeChecker(host) {
49234
49212
  type.typeParameters = typeParameters;
49235
49213
  type.outerTypeParameters = void 0;
49236
49214
  type.localTypeParameters = typeParameters;
49237
- type.instantiations = new Map();
49215
+ type.instantiations = /* @__PURE__ */ new Map();
49238
49216
  type.instantiations.set(getTypeListId(type.typeParameters), type);
49239
49217
  type.target = type;
49240
49218
  type.resolvedTypeArguments = type.typeParameters;
@@ -49747,7 +49725,7 @@ function createTypeChecker(host) {
49747
49725
  return result;
49748
49726
  }
49749
49727
  function getIntersectionType(types, aliasSymbol, aliasTypeArguments, noSupertypeReduction) {
49750
- const typeMembershipMap = new Map();
49728
+ const typeMembershipMap = /* @__PURE__ */ new Map();
49751
49729
  const includes = addTypesToIntersection(typeMembershipMap, 0, types);
49752
49730
  const typeSet = arrayFrom(typeMembershipMap.values());
49753
49731
  if (includes & 131072 /* Never */) {
@@ -50674,7 +50652,7 @@ function createTypeChecker(host) {
50674
50652
  };
50675
50653
  links.resolvedType = getConditionalType(root, void 0);
50676
50654
  if (outerTypeParameters) {
50677
- root.instantiations = new Map();
50655
+ root.instantiations = /* @__PURE__ */ new Map();
50678
50656
  root.instantiations.set(getTypeListId(outerTypeParameters), links.resolvedType);
50679
50657
  }
50680
50658
  }
@@ -50865,7 +50843,7 @@ function createTypeChecker(host) {
50865
50843
  return getIntersectionType([left, right]);
50866
50844
  }
50867
50845
  const members = createSymbolTable();
50868
- const skippedPrivateMembers = new Set();
50846
+ const skippedPrivateMembers = /* @__PURE__ */ new Set();
50869
50847
  const indexInfos = left === emptyObjectType ? getIndexInfosOfType(right) : getUnionIndexInfos([left, right]);
50870
50848
  for (const rightProp of getPropertiesOfType(right)) {
50871
50849
  if (getDeclarationModifierFlagsFromSymbol(rightProp) & (8 /* Private */ | 16 /* Protected */)) {
@@ -51312,7 +51290,7 @@ function createTypeChecker(host) {
51312
51290
  const newAliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(type.aliasTypeArguments, mapper);
51313
51291
  const id = getTypeListId(typeArguments) + getAliasId(newAliasSymbol, newAliasTypeArguments);
51314
51292
  if (!target.instantiations) {
51315
- target.instantiations = new Map();
51293
+ target.instantiations = /* @__PURE__ */ new Map();
51316
51294
  target.instantiations.set(getTypeListId(typeParameters) + getAliasId(target.aliasSymbol, target.aliasTypeArguments), target);
51317
51295
  }
51318
51296
  let result = target.instantiations.get(id);
@@ -53555,7 +53533,7 @@ function createTypeChecker(host) {
53555
53533
  }
53556
53534
  }
53557
53535
  const sourceDiscriminantTypes = new Array(sourcePropertiesFiltered.length);
53558
- const excludedProperties = new Set();
53536
+ const excludedProperties = /* @__PURE__ */ new Set();
53559
53537
  for (let i = 0; i < sourcePropertiesFiltered.length; i++) {
53560
53538
  const sourceProperty = sourcePropertiesFiltered[i];
53561
53539
  const sourcePropertyType = getNonMissingTypeOfSymbol(sourceProperty);
@@ -54790,7 +54768,7 @@ function createTypeChecker(host) {
54790
54768
  }
54791
54769
  function getPropertiesOfContext(context) {
54792
54770
  if (!context.resolvedProperties) {
54793
- const names = new Map();
54771
+ const names = /* @__PURE__ */ new Map();
54794
54772
  for (const t of getSiblingsOfContext(context)) {
54795
54773
  if (isObjectLiteralType(t) && !(getObjectFlags(t) & 2097152 /* ContainsSpread */)) {
54796
54774
  for (const prop of getPropertiesOfType(t)) {
@@ -55525,7 +55503,7 @@ function createTypeChecker(host) {
55525
55503
  inferencePriority = Math.min(inferencePriority, status);
55526
55504
  return;
55527
55505
  }
55528
- (visited || (visited = new Map())).set(key, -1 /* Circularity */);
55506
+ (visited || (visited = /* @__PURE__ */ new Map())).set(key, -1 /* Circularity */);
55529
55507
  const saveInferencePriority = inferencePriority;
55530
55508
  inferencePriority = 2048 /* MaxValue */;
55531
55509
  const saveExpandingFlags = expandingFlags;
@@ -55746,7 +55724,6 @@ function createTypeChecker(host) {
55746
55724
  }
55747
55725
  }
55748
55726
  function inferFromObjectTypes(source, target) {
55749
- var _a2, _b;
55750
55727
  if (getObjectFlags(source) & 4 /* Reference */ && getObjectFlags(target) & 4 /* Reference */ && (source.target === target.target || isArrayType(source) && isArrayType(target))) {
55751
55728
  inferFromTypeArguments(getTypeArguments(source), getTypeArguments(target), getVariances(source.target));
55752
55729
  return;
@@ -55793,35 +55770,11 @@ function createTypeChecker(host) {
55793
55770
  }
55794
55771
  } else {
55795
55772
  const middleLength = targetArity - startLength - endLength;
55796
- if (middleLength === 2) {
55797
- if (elementFlags[startLength] & elementFlags[startLength + 1] & 8 /* Variadic */ && isTupleType(source)) {
55798
- const targetInfo = getInferenceInfoForType(elementTypes[startLength]);
55799
- if (targetInfo && targetInfo.impliedArity !== void 0) {
55800
- inferFromTypes(sliceTupleType(source, startLength, endLength + sourceArity - targetInfo.impliedArity), elementTypes[startLength]);
55801
- inferFromTypes(sliceTupleType(source, startLength + targetInfo.impliedArity, endLength), elementTypes[startLength + 1]);
55802
- }
55803
- } else if (elementFlags[startLength] & 8 /* Variadic */ && elementFlags[startLength + 1] & 4 /* Rest */) {
55804
- const param = (_a2 = getInferenceInfoForType(elementTypes[startLength])) == null ? void 0 : _a2.typeParameter;
55805
- const constraint = param && getBaseConstraintOfType(param);
55806
- if (constraint && isTupleType(constraint) && !constraint.target.hasRestElement) {
55807
- const impliedArity = constraint.target.fixedLength;
55808
- inferFromTypes(sliceTupleType(source, startLength, sourceArity - (startLength + impliedArity)), elementTypes[startLength]);
55809
- }
55810
- } else if (elementFlags[startLength] & 4 /* Rest */ && elementFlags[startLength + 1] & 8 /* Variadic */ && isTupleType(source)) {
55811
- const param = (_b = getInferenceInfoForType(elementTypes[startLength + 1])) == null ? void 0 : _b.typeParameter;
55812
- const constraint = param && getBaseConstraintOfType(param);
55813
- if (constraint && isTupleType(constraint) && !constraint.target.hasRestElement) {
55814
- const impliedArity = constraint.target.fixedLength;
55815
- const endIndex = sourceArity - getEndElementCount(target.target, 3 /* Fixed */);
55816
- const startIndex = endIndex - impliedArity;
55817
- const trailingSlice = createTupleType(
55818
- getTypeArguments(source).slice(startIndex, endIndex),
55819
- source.target.elementFlags.slice(startIndex, endIndex),
55820
- false,
55821
- source.target.labeledElementDeclarations && source.target.labeledElementDeclarations.slice(startIndex, endIndex)
55822
- );
55823
- inferFromTypes(trailingSlice, elementTypes[startLength + 1]);
55824
- }
55773
+ if (middleLength === 2 && elementFlags[startLength] & elementFlags[startLength + 1] & 8 /* Variadic */ && isTupleType(source)) {
55774
+ const targetInfo = getInferenceInfoForType(elementTypes[startLength]);
55775
+ if (targetInfo && targetInfo.impliedArity !== void 0) {
55776
+ inferFromTypes(sliceTupleType(source, startLength, endLength + sourceArity - targetInfo.impliedArity), elementTypes[startLength]);
55777
+ inferFromTypes(sliceTupleType(source, startLength + targetInfo.impliedArity, endLength), elementTypes[startLength + 1]);
55825
55778
  }
55826
55779
  } else if (middleLength === 1 && elementFlags[startLength] & 8 /* Variadic */) {
55827
55780
  const endsInOptional = target.target.elementFlags[targetArity - 1] & 2 /* Optional */;
@@ -56215,7 +56168,7 @@ function createTypeChecker(host) {
56215
56168
  return result;
56216
56169
  }
56217
56170
  function mapTypesByKeyProperty(types, name) {
56218
- const map2 = new Map();
56171
+ const map2 = /* @__PURE__ */ new Map();
56219
56172
  let count = 0;
56220
56173
  for (const type of types) {
56221
56174
  if (type.flags & (524288 /* Object */ | 2097152 /* Intersection */ | 58982400 /* InstantiableNonPrimitive */)) {
@@ -57219,7 +57172,7 @@ function createTypeChecker(host) {
57219
57172
  }
57220
57173
  function getTypeAtFlowLoopLabel(flow) {
57221
57174
  const id = getFlowNodeId(flow);
57222
- const cache = flowLoopCaches[id] || (flowLoopCaches[id] = new Map());
57175
+ const cache = flowLoopCaches[id] || (flowLoopCaches[id] = /* @__PURE__ */ new Map());
57223
57176
  const key2 = getOrSetCacheKey();
57224
57177
  if (!key2) {
57225
57178
  return declaredType;
@@ -62357,7 +62310,7 @@ function createTypeChecker(host) {
62357
62310
  if ((_b = source.members) == null ? void 0 : _b.size) {
62358
62311
  mergeSymbolTable(inferred.members, source.members);
62359
62312
  }
62360
- (links.inferredClassSymbol || (links.inferredClassSymbol = new Map())).set(getSymbolId(inferred), inferred);
62313
+ (links.inferredClassSymbol || (links.inferredClassSymbol = /* @__PURE__ */ new Map())).set(getSymbolId(inferred), inferred);
62361
62314
  return inferred;
62362
62315
  }
62363
62316
  return links.inferredClassSymbol.get(getSymbolId(target));
@@ -65212,9 +65165,9 @@ function createTypeChecker(host) {
65212
65165
  }
65213
65166
  }
65214
65167
  function checkClassForDuplicateDeclarations(node) {
65215
- const instanceNames = new Map();
65216
- const staticNames = new Map();
65217
- const privateIdentifiers = new Map();
65168
+ const instanceNames = /* @__PURE__ */ new Map();
65169
+ const staticNames = /* @__PURE__ */ new Map();
65170
+ const privateIdentifiers = /* @__PURE__ */ new Map();
65218
65171
  for (const member of node.members) {
65219
65172
  if (member.kind === 173 /* Constructor */) {
65220
65173
  for (const param of member.parameters) {
@@ -65294,7 +65247,7 @@ function createTypeChecker(host) {
65294
65247
  }
65295
65248
  }
65296
65249
  function checkObjectTypeForDuplicateDeclarations(node) {
65297
- const names = new Map();
65250
+ const names = /* @__PURE__ */ new Map();
65298
65251
  for (const member of node.members) {
65299
65252
  if (member.kind === 168 /* PropertySignature */) {
65300
65253
  let memberName;
@@ -65328,7 +65281,7 @@ function createTypeChecker(host) {
65328
65281
  }
65329
65282
  const indexSymbol = getIndexSymbol(getSymbolOfNode(node));
65330
65283
  if (indexSymbol == null ? void 0 : indexSymbol.declarations) {
65331
- const indexSignatureMap = new Map();
65284
+ const indexSignatureMap = /* @__PURE__ */ new Map();
65332
65285
  for (const declaration of indexSymbol.declarations) {
65333
65286
  if (declaration.parameters.length === 1 && declaration.parameters[0].type) {
65334
65287
  forEachType(getTypeFromTypeNode(declaration.parameters[0].type), (type) => {
@@ -66712,7 +66665,7 @@ function createTypeChecker(host) {
66712
66665
  if (!declarations || last(declarations) !== node)
66713
66666
  return;
66714
66667
  const typeParameters = getEffectiveTypeParameterDeclarations(node);
66715
- const seenParentsWithEveryUnused = new Set();
66668
+ const seenParentsWithEveryUnused = /* @__PURE__ */ new Set();
66716
66669
  for (const typeParameter of typeParameters) {
66717
66670
  if (!isTypeParameterUnused(typeParameter))
66718
66671
  continue;
@@ -66757,9 +66710,9 @@ function createTypeChecker(host) {
66757
66710
  return isAmbientModule(declaration) || (isVariableDeclaration(declaration) && isForInOrOfStatement(declaration.parent.parent) || isImportedDeclaration(declaration)) && isIdentifierThatStartsWithUnderscore(declaration.name);
66758
66711
  }
66759
66712
  function checkUnusedLocalsAndParameters(nodeWithLocals, addDiagnostic) {
66760
- const unusedImports = new Map();
66761
- const unusedDestructures = new Map();
66762
- const unusedVariables = new Map();
66713
+ const unusedImports = /* @__PURE__ */ new Map();
66714
+ const unusedDestructures = /* @__PURE__ */ new Map();
66715
+ const unusedVariables = /* @__PURE__ */ new Map();
66763
66716
  nodeWithLocals.locals.forEach((local) => {
66764
66717
  if (local.flags & 262144 /* TypeParameter */ ? !(local.flags & 3 /* Variable */ && !(local.isReferenced & 3 /* Variable */)) : local.isReferenced || local.exportSymbol) {
66765
66718
  return;
@@ -68212,8 +68165,8 @@ function createTypeChecker(host) {
68212
68165
  if (!length(jsdocParameters))
68213
68166
  return;
68214
68167
  const isJs = isInJSFile(node);
68215
- const parameters = new Set();
68216
- const excludedParameters = new Set();
68168
+ const parameters = /* @__PURE__ */ new Set();
68169
+ const excludedParameters = /* @__PURE__ */ new Set();
68217
68170
  forEach(node.parameters, ({ name }, index) => {
68218
68171
  if (isIdentifier(name)) {
68219
68172
  parameters.add(name.escapedText);
@@ -68749,7 +68702,7 @@ function createTypeChecker(host) {
68749
68702
  if (!length(baseTypes)) {
68750
68703
  return properties;
68751
68704
  }
68752
- const seen = new Map();
68705
+ const seen = /* @__PURE__ */ new Map();
68753
68706
  forEach(properties, (p) => {
68754
68707
  seen.set(p.escapedName, p);
68755
68708
  });
@@ -68769,7 +68722,7 @@ function createTypeChecker(host) {
68769
68722
  if (baseTypes.length < 2) {
68770
68723
  return true;
68771
68724
  }
68772
- const seen = new Map();
68725
+ const seen = /* @__PURE__ */ new Map();
68773
68726
  forEach(resolveDeclaredMembers(type).declaredProperties, (p) => {
68774
68727
  seen.set(p.escapedName, { prop: p, containingType: type });
68775
68728
  });
@@ -69976,7 +69929,7 @@ function createTypeChecker(host) {
69976
69929
  const enclosingFile = getSourceFileOfNode(node);
69977
69930
  const links = getNodeLinks(enclosingFile);
69978
69931
  if (!(links.flags & 1 /* TypeChecked */)) {
69979
- links.deferredNodes || (links.deferredNodes = new Set());
69932
+ links.deferredNodes || (links.deferredNodes = /* @__PURE__ */ new Set());
69980
69933
  links.deferredNodes.add(node);
69981
69934
  }
69982
69935
  }
@@ -70410,7 +70363,7 @@ function createTypeChecker(host) {
70410
70363
  const declarationList = mapDefined(infos, (i) => i.declaration);
70411
70364
  const nodeListId = map(declarationList, getNodeId).join(",");
70412
70365
  if (!symbolLinks2.filteredIndexSymbolCache) {
70413
- symbolLinks2.filteredIndexSymbolCache = new Map();
70366
+ symbolLinks2.filteredIndexSymbolCache = /* @__PURE__ */ new Map();
70414
70367
  }
70415
70368
  if (symbolLinks2.filteredIndexSymbolCache.has(nodeListId)) {
70416
70369
  links.resolvedSymbol = symbolLinks2.filteredIndexSymbolCache.get(nodeListId);
@@ -71143,7 +71096,7 @@ function createTypeChecker(host) {
71143
71096
  const resolvedTypeReferenceDirectives = host.getResolvedTypeReferenceDirectives();
71144
71097
  let fileToDirective;
71145
71098
  if (resolvedTypeReferenceDirectives) {
71146
- fileToDirective = new Map();
71099
+ fileToDirective = /* @__PURE__ */ new Map();
71147
71100
  resolvedTypeReferenceDirectives.forEach((resolvedDirective, key, mode) => {
71148
71101
  if (!resolvedDirective || !resolvedDirective.resolvedFileName) {
71149
71102
  return;
@@ -71352,7 +71305,7 @@ function createTypeChecker(host) {
71352
71305
  for (const file of host.getSourceFiles()) {
71353
71306
  bindSourceFile(file, compilerOptions);
71354
71307
  }
71355
- amalgamatedDuplicates = new Map();
71308
+ amalgamatedDuplicates = /* @__PURE__ */ new Map();
71356
71309
  let augmentations;
71357
71310
  for (const file of host.getSourceFiles()) {
71358
71311
  if (file.redirectInfo) {
@@ -72116,7 +72069,7 @@ function createTypeChecker(host) {
72116
72069
  return !!exclamationToken && grammarErrorOnNode(exclamationToken, message);
72117
72070
  }
72118
72071
  function checkGrammarObjectLiteralExpression(node, inDestructuring) {
72119
- const seen = new Map();
72072
+ const seen = /* @__PURE__ */ new Map();
72120
72073
  for (const prop of node.properties) {
72121
72074
  if (prop.kind === 301 /* SpreadAssignment */) {
72122
72075
  if (inDestructuring) {
@@ -72200,7 +72153,7 @@ function createTypeChecker(host) {
72200
72153
  function checkGrammarJsxElement(node) {
72201
72154
  checkGrammarJsxName(node.tagName);
72202
72155
  checkGrammarTypeArguments(node, node.typeArguments);
72203
- const seen = new Map();
72156
+ const seen = /* @__PURE__ */ new Map();
72204
72157
  for (const attr of node.attributes.properties) {
72205
72158
  if (attr.kind === 290 /* JsxSpreadAttribute */) {
72206
72159
  continue;
@@ -74267,7 +74220,7 @@ function createSourceMapGenerator(host, file, sourceRoot, sourcesDirectoryPath,
74267
74220
  const { enter, exit } = generatorOptions.extendedDiagnostics ? createTimer("Source Map", "beforeSourcemap", "afterSourcemap") : nullTimer;
74268
74221
  const rawSources = [];
74269
74222
  const sources = [];
74270
- const sourceToSourceIndexMap = new Map();
74223
+ const sourceToSourceIndexMap = /* @__PURE__ */ new Map();
74271
74224
  let sourcesContent;
74272
74225
  const names = [];
74273
74226
  let nameToNameIndexMap;
@@ -74333,7 +74286,7 @@ function createSourceMapGenerator(host, file, sourceRoot, sourcesDirectoryPath,
74333
74286
  function addName(name) {
74334
74287
  enter();
74335
74288
  if (!nameToNameIndexMap)
74336
- nameToNameIndexMap = new Map();
74289
+ nameToNameIndexMap = /* @__PURE__ */ new Map();
74337
74290
  let nameIndex = nameToNameIndexMap.get(name);
74338
74291
  if (nameIndex === void 0) {
74339
74292
  nameIndex = names.length;
@@ -74710,7 +74663,7 @@ function collectExternalModuleInfo(context, sourceFile, resolver, compilerOption
74710
74663
  const externalImports = [];
74711
74664
  const exportSpecifiers = createMultiMap();
74712
74665
  const exportedBindings = [];
74713
- const uniqueExports = new Map();
74666
+ const uniqueExports = /* @__PURE__ */ new Map();
74714
74667
  let exportedNames;
74715
74668
  let hasExportDefault = false;
74716
74669
  let exportEquals;
@@ -76467,7 +76420,7 @@ function transformTypeScript(context) {
76467
76420
  }
76468
76421
  function recordEmittedDeclarationInScope(node) {
76469
76422
  if (!currentScopeFirstDeclarationsOfName) {
76470
- currentScopeFirstDeclarationsOfName = new Map();
76423
+ currentScopeFirstDeclarationsOfName = /* @__PURE__ */ new Map();
76471
76424
  }
76472
76425
  const name = declaredNameInScope(node);
76473
76426
  if (!currentScopeFirstDeclarationsOfName.has(name)) {
@@ -76952,7 +76905,7 @@ function transformClassFields(context) {
76952
76905
  let pendingExpressions;
76953
76906
  let pendingStatements;
76954
76907
  const classLexicalEnvironmentStack = [];
76955
- const classLexicalEnvironmentMap = new Map();
76908
+ const classLexicalEnvironmentMap = /* @__PURE__ */ new Map();
76956
76909
  let currentClassLexicalEnvironment;
76957
76910
  let currentClassContainer;
76958
76911
  let currentComputedPropertyNameClassLexicalEnvironment;
@@ -78668,10 +78621,10 @@ function getPrivateIdentifier(privateEnv, name) {
78668
78621
  function setPrivateIdentifier(privateEnv, name, info) {
78669
78622
  var _a2, _b;
78670
78623
  if (isGeneratedPrivateIdentifier(name)) {
78671
- (_a2 = privateEnv.generatedIdentifiers) != null ? _a2 : privateEnv.generatedIdentifiers = new Map();
78624
+ (_a2 = privateEnv.generatedIdentifiers) != null ? _a2 : privateEnv.generatedIdentifiers = /* @__PURE__ */ new Map();
78672
78625
  privateEnv.generatedIdentifiers.set(getNodeForGeneratedName(name), info);
78673
78626
  } else {
78674
- (_b = privateEnv.identifiers) != null ? _b : privateEnv.identifiers = new Map();
78627
+ (_b = privateEnv.identifiers) != null ? _b : privateEnv.identifiers = /* @__PURE__ */ new Map();
78675
78628
  privateEnv.identifiers.set(name.escapedText, info);
78676
78629
  }
78677
78630
  }
@@ -79514,7 +79467,7 @@ function transformES2017(context) {
79514
79467
  return visitor(node);
79515
79468
  }
79516
79469
  function visitCatchClauseInAsyncBody(node) {
79517
- const catchClauseNames = new Set();
79470
+ const catchClauseNames = /* @__PURE__ */ new Set();
79518
79471
  recordDeclarationName(node.variableDeclaration, catchClauseNames);
79519
79472
  let catchClauseUnshadowedNames;
79520
79473
  catchClauseNames.forEach((_, escapedName) => {
@@ -79724,7 +79677,7 @@ function transformES2017(context) {
79724
79677
  Debug.assertIsDefined(node.body);
79725
79678
  const savedCapturedSuperProperties = capturedSuperProperties;
79726
79679
  const savedHasSuperElementAccess = hasSuperElementAccess;
79727
- capturedSuperProperties = new Set();
79680
+ capturedSuperProperties = /* @__PURE__ */ new Set();
79728
79681
  hasSuperElementAccess = false;
79729
79682
  let updated = visitFunctionBody(node.body, visitor, context);
79730
79683
  const originalMethod = getOriginalNode(node, isFunctionLikeDeclaration);
@@ -79758,14 +79711,14 @@ function transformES2017(context) {
79758
79711
  const isArrowFunction2 = node.kind === 216 /* ArrowFunction */;
79759
79712
  const hasLexicalArguments = (resolver.getNodeCheckFlags(node) & 8192 /* CaptureArguments */) !== 0;
79760
79713
  const savedEnclosingFunctionParameterNames = enclosingFunctionParameterNames;
79761
- enclosingFunctionParameterNames = new Set();
79714
+ enclosingFunctionParameterNames = /* @__PURE__ */ new Set();
79762
79715
  for (const parameter of node.parameters) {
79763
79716
  recordDeclarationName(parameter, enclosingFunctionParameterNames);
79764
79717
  }
79765
79718
  const savedCapturedSuperProperties = capturedSuperProperties;
79766
79719
  const savedHasSuperElementAccess = hasSuperElementAccess;
79767
79720
  if (!isArrowFunction2) {
79768
- capturedSuperProperties = new Set();
79721
+ capturedSuperProperties = /* @__PURE__ */ new Set();
79769
79722
  hasSuperElementAccess = false;
79770
79723
  }
79771
79724
  let result;
@@ -80741,7 +80694,7 @@ function transformES2018(context) {
80741
80694
  if (parameters) {
80742
80695
  parameters.add(parameter);
80743
80696
  } else if (parameter.transformFlags & 65536 /* ContainsObjectRestOrSpread */) {
80744
- parameters = new Set();
80697
+ parameters = /* @__PURE__ */ new Set();
80745
80698
  }
80746
80699
  }
80747
80700
  return parameters;
@@ -80877,7 +80830,7 @@ function transformES2018(context) {
80877
80830
  appendObjectRestAssignmentsIfNeeded(statements, node);
80878
80831
  const savedCapturedSuperProperties = capturedSuperProperties;
80879
80832
  const savedHasSuperElementAccess = hasSuperElementAccess;
80880
- capturedSuperProperties = new Set();
80833
+ capturedSuperProperties = /* @__PURE__ */ new Set();
80881
80834
  hasSuperElementAccess = false;
80882
80835
  const returnStatement = factory2.createReturnStatement(
80883
80836
  emitHelpers().createAsyncGeneratorHelper(
@@ -81479,11 +81432,11 @@ function transformJsx(context) {
81479
81432
  return existing.name;
81480
81433
  }
81481
81434
  if (!currentFileState.utilizedImplicitRuntimeImports) {
81482
- currentFileState.utilizedImplicitRuntimeImports = new Map();
81435
+ currentFileState.utilizedImplicitRuntimeImports = /* @__PURE__ */ new Map();
81483
81436
  }
81484
81437
  let specifierSourceImports = currentFileState.utilizedImplicitRuntimeImports.get(importSource);
81485
81438
  if (!specifierSourceImports) {
81486
- specifierSourceImports = new Map();
81439
+ specifierSourceImports = /* @__PURE__ */ new Map();
81487
81440
  currentFileState.utilizedImplicitRuntimeImports.set(importSource, specifierSourceImports);
81488
81441
  }
81489
81442
  const generatedName = factory2.createUniqueName(`_${name}`, 16 /* Optimistic */ | 32 /* FileLevel */ | 64 /* AllowNameSubstitution */);
@@ -83493,7 +83446,7 @@ function transformES2015(context) {
83493
83446
  }
83494
83447
  function visitLabeledStatement(node) {
83495
83448
  if (convertedLoopState && !convertedLoopState.labels) {
83496
- convertedLoopState.labels = new Map();
83449
+ convertedLoopState.labels = /* @__PURE__ */ new Map();
83497
83450
  }
83498
83451
  const statement = unwrapInnermostStatementOfLabel(node, convertedLoopState && recordLabel);
83499
83452
  return isIterationStatement(statement, false) ? visitIterationStatement(statement, node) : factory2.restoreEnclosingLabel(visitNode(statement, visitor, isStatement, factory2.liftToBlock), node, convertedLoopState && resetLabel);
@@ -84252,12 +84205,12 @@ function transformES2015(context) {
84252
84205
  function setLabeledJump(state, isBreak, labelText, labelMarker) {
84253
84206
  if (isBreak) {
84254
84207
  if (!state.labeledNonLocalBreaks) {
84255
- state.labeledNonLocalBreaks = new Map();
84208
+ state.labeledNonLocalBreaks = /* @__PURE__ */ new Map();
84256
84209
  }
84257
84210
  state.labeledNonLocalBreaks.set(labelText, labelMarker);
84258
84211
  } else {
84259
84212
  if (!state.labeledNonLocalContinues) {
84260
- state.labeledNonLocalContinues = new Map();
84213
+ state.labeledNonLocalContinues = /* @__PURE__ */ new Map();
84261
84214
  }
84262
84215
  state.labeledNonLocalContinues.set(labelText, labelMarker);
84263
84216
  }
@@ -86106,7 +86059,7 @@ function transformGenerators(context) {
86106
86059
  const text = idText(variable.name);
86107
86060
  name = declareLocal(text);
86108
86061
  if (!renamedCatchVariables) {
86109
- renamedCatchVariables = new Map();
86062
+ renamedCatchVariables = /* @__PURE__ */ new Map();
86110
86063
  renamedCatchVariableDeclarations = [];
86111
86064
  context.enableSubstitution(79 /* Identifier */);
86112
86065
  }
@@ -88268,7 +88221,7 @@ function transformSystemModule(context) {
88268
88221
  return updated;
88269
88222
  }
88270
88223
  function collectDependencyGroups(externalImports) {
88271
- const groupIndices = new Map();
88224
+ const groupIndices = /* @__PURE__ */ new Map();
88272
88225
  const dependencyGroups = [];
88273
88226
  for (const externalImport of externalImports) {
88274
88227
  const externalModuleName = getExternalModuleNameLiteral(factory2, externalImport, currentSourceFile, host, resolver, compilerOptions);
@@ -89518,7 +89471,7 @@ function transformECMAScriptModule(context) {
89518
89471
  function onEmitNode(hint, node, emitCallback) {
89519
89472
  if (isSourceFile(node)) {
89520
89473
  if ((isExternalModule(node) || compilerOptions.isolatedModules) && compilerOptions.importHelpers) {
89521
- helperNameSubstitutions = new Map();
89474
+ helperNameSubstitutions = /* @__PURE__ */ new Map();
89522
89475
  }
89523
89476
  previousOnEmitNode(hint, node, emitCallback);
89524
89477
  helperNameSubstitutions = void 0;
@@ -89938,7 +89891,7 @@ function transformDeclarations(context) {
89938
89891
  if (!typeReferenceDirectives) {
89939
89892
  return;
89940
89893
  }
89941
- necessaryTypeReferences = necessaryTypeReferences || new Set();
89894
+ necessaryTypeReferences = necessaryTypeReferences || /* @__PURE__ */ new Set();
89942
89895
  for (const ref of typeReferenceDirectives) {
89943
89896
  necessaryTypeReferences.add(ref);
89944
89897
  }
@@ -90091,8 +90044,8 @@ function transformDeclarations(context) {
90091
90044
  }
90092
90045
  if (node.kind === 309 /* Bundle */) {
90093
90046
  isBundledEmit = true;
90094
- refs = new Map();
90095
- libs2 = new Map();
90047
+ refs = /* @__PURE__ */ new Map();
90048
+ libs2 = /* @__PURE__ */ new Map();
90096
90049
  let hasNoDefaultLib = false;
90097
90050
  const bundle = factory2.createBundle(map(
90098
90051
  node.sourceFiles,
@@ -90104,7 +90057,7 @@ function transformDeclarations(context) {
90104
90057
  enclosingDeclaration = sourceFile;
90105
90058
  lateMarkedStatements = void 0;
90106
90059
  suppressNewDiagnosticContexts = false;
90107
- lateStatementReplacementMap = new Map();
90060
+ lateStatementReplacementMap = /* @__PURE__ */ new Map();
90108
90061
  getSymbolAccessibilityDiagnostic = throwDiagnostic;
90109
90062
  needsScopeFixMarker = false;
90110
90063
  resultHasScopeMarker = false;
@@ -90155,10 +90108,10 @@ function transformDeclarations(context) {
90155
90108
  resultHasExternalModuleIndicator = false;
90156
90109
  suppressNewDiagnosticContexts = false;
90157
90110
  lateMarkedStatements = void 0;
90158
- lateStatementReplacementMap = new Map();
90111
+ lateStatementReplacementMap = /* @__PURE__ */ new Map();
90159
90112
  necessaryTypeReferences = void 0;
90160
- refs = collectReferences(currentSourceFile, new Map());
90161
- libs2 = collectLibs(currentSourceFile, new Map());
90113
+ refs = collectReferences(currentSourceFile, /* @__PURE__ */ new Map());
90114
+ libs2 = collectLibs(currentSourceFile, /* @__PURE__ */ new Map());
90162
90115
  const references = [];
90163
90116
  const outputFilePath = getDirectoryPath(normalizeSlashes(getOutputPathsFor(node, host, true).declarationFilePath));
90164
90117
  const referenceVisitor = mapReferencesIntoArray(references, outputFilePath);
@@ -92497,7 +92450,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
92497
92450
  const extendedDiagnostics = !!printerOptions.extendedDiagnostics;
92498
92451
  const newLine = getNewLineCharacter(printerOptions);
92499
92452
  const moduleKind = getEmitModuleKind(printerOptions);
92500
- const bundledHelpers = new Map();
92453
+ const bundledHelpers = /* @__PURE__ */ new Map();
92501
92454
  let currentSourceFile;
92502
92455
  let nodeIdToGeneratedName;
92503
92456
  let autoGeneratedIdToGeneratedName;
@@ -92751,9 +92704,9 @@ function createPrinter(printerOptions = {}, handlers = {}) {
92751
92704
  function reset() {
92752
92705
  nodeIdToGeneratedName = [];
92753
92706
  autoGeneratedIdToGeneratedName = [];
92754
- generatedNames = new Set();
92707
+ generatedNames = /* @__PURE__ */ new Set();
92755
92708
  formattedNameTempFlagsStack = [];
92756
- formattedNameTempFlags = new Map();
92709
+ formattedNameTempFlags = /* @__PURE__ */ new Map();
92757
92710
  privateNameTempFlagsStack = [];
92758
92711
  privateNameTempFlags = TempFlags.Auto;
92759
92712
  tempFlagsStack = [];
@@ -93305,7 +93258,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
93305
93258
  if (moduleKind === 0 /* None */ || printerOptions.noEmitHelpers) {
93306
93259
  return void 0;
93307
93260
  }
93308
- const bundledHelpers2 = new Map();
93261
+ const bundledHelpers2 = /* @__PURE__ */ new Map();
93309
93262
  for (const sourceFile of bundle.sourceFiles) {
93310
93263
  const shouldSkip = getExternalHelpersModuleName(sourceFile) !== void 0;
93311
93264
  const helpers = getSortedEmitHelpers(sourceFile);
@@ -95155,7 +95108,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
95155
95108
  if (isSourceFile(sourceFileOrBundle)) {
95156
95109
  emitPrologueDirectives(sourceFileOrBundle.statements, sourceFileOrBundle);
95157
95110
  } else {
95158
- const seenPrologueDirectives = new Set();
95111
+ const seenPrologueDirectives = /* @__PURE__ */ new Set();
95159
95112
  for (const prepend of sourceFileOrBundle.prepends) {
95160
95113
  emitUnparsedPrologues(prepend.prologues, seenPrologueDirectives);
95161
95114
  }
@@ -95166,7 +95119,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
95166
95119
  }
95167
95120
  }
95168
95121
  function getPrologueDirectivesFromBundledSourceFiles(bundle) {
95169
- const seenPrologueDirectives = new Set();
95122
+ const seenPrologueDirectives = /* @__PURE__ */ new Set();
95170
95123
  let prologues;
95171
95124
  for (let index = 0; index < bundle.sourceFiles.length; index++) {
95172
95125
  const sourceFile = bundle.sourceFiles[index];
@@ -95826,7 +95779,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
95826
95779
  }
95827
95780
  function reserveNameInNestedScopes(name) {
95828
95781
  if (!reservedNames || reservedNames === lastOrUndefined(reservedNamesStack)) {
95829
- reservedNames = new Set();
95782
+ reservedNames = /* @__PURE__ */ new Set();
95830
95783
  }
95831
95784
  reservedNames.add(name);
95832
95785
  }
@@ -95988,7 +95941,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
95988
95941
  privateNameTempFlags = flags;
95989
95942
  break;
95990
95943
  default:
95991
- formattedNameTempFlags != null ? formattedNameTempFlags : formattedNameTempFlags = new Map();
95944
+ formattedNameTempFlags != null ? formattedNameTempFlags : formattedNameTempFlags = /* @__PURE__ */ new Map();
95992
95945
  formattedNameTempFlags.set(formattedNameKey, flags);
95993
95946
  break;
95994
95947
  }
@@ -96591,7 +96544,7 @@ function createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensi
96591
96544
  if (!host.getDirectories || !host.readDirectory) {
96592
96545
  return void 0;
96593
96546
  }
96594
- const cachedReadDirectoryResult = new Map();
96547
+ const cachedReadDirectoryResult = /* @__PURE__ */ new Map();
96595
96548
  const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames);
96596
96549
  return {
96597
96550
  useCaseSensitiveFileNames,
@@ -96799,7 +96752,7 @@ function updateSharedExtendedConfigFileWatcher(projectPath, options, extendedCon
96799
96752
  existing.projects.add(projectPath);
96800
96753
  } else {
96801
96754
  extendedConfigFilesMap.set(extendedConfigFilePath, {
96802
- projects: new Set([projectPath]),
96755
+ projects: /* @__PURE__ */ new Set([projectPath]),
96803
96756
  watcher: createExtendedConfigFileWatch(extendedConfigFileName, extendedConfigFilePath),
96804
96757
  close: () => {
96805
96758
  const existing2 = extendedConfigFilesMap.get(extendedConfigFilePath);
@@ -97095,7 +97048,7 @@ function createWriteFileMeasuringIO(actualWriteFile, createDirectory, directoryE
97095
97048
  };
97096
97049
  }
97097
97050
  function createCompilerHostWorker(options, setParentNodes, system = sys) {
97098
- const existingDirectories = new Map();
97051
+ const existingDirectories = /* @__PURE__ */ new Map();
97099
97052
  const getCanonicalFileName = createGetCanonicalFileName(system.useCaseSensitiveFileNames);
97100
97053
  function directoryExists(directoryPath) {
97101
97054
  if (existingDirectories.has(directoryPath)) {
@@ -97144,10 +97097,10 @@ function changeCompilerHostLikeToUseCache(host, toPath3, getSourceFile) {
97144
97097
  const originalDirectoryExists = host.directoryExists;
97145
97098
  const originalCreateDirectory = host.createDirectory;
97146
97099
  const originalWriteFile = host.writeFile;
97147
- const readFileCache = new Map();
97148
- const fileExistsCache = new Map();
97149
- const directoryExistsCache = new Map();
97150
- const sourceFileCache = new Map();
97100
+ const readFileCache = /* @__PURE__ */ new Map();
97101
+ const fileExistsCache = /* @__PURE__ */ new Map();
97102
+ const directoryExistsCache = /* @__PURE__ */ new Map();
97103
+ const sourceFileCache = /* @__PURE__ */ new Map();
97151
97104
  const readFileWithCache = (fileName) => {
97152
97105
  const key = toPath3(fileName);
97153
97106
  const value = readFileCache.get(key);
@@ -97179,7 +97132,7 @@ function changeCompilerHostLikeToUseCache(host, toPath3, getSourceFile) {
97179
97132
  return value;
97180
97133
  const sourceFile = getSourceFile(fileName, languageVersionOrOptions, onError, shouldCreateNewSourceFile);
97181
97134
  if (sourceFile && (isDeclarationFileName(fileName) || fileExtensionIs(fileName, ".json" /* Json */))) {
97182
- sourceFileCache.set(impliedNodeFormat, (forImpliedNodeFormat || new Map()).set(key, sourceFile));
97135
+ sourceFileCache.set(impliedNodeFormat, (forImpliedNodeFormat || /* @__PURE__ */ new Map()).set(key, sourceFile));
97183
97136
  }
97184
97137
  return sourceFile;
97185
97138
  } : void 0;
@@ -97377,7 +97330,7 @@ function loadWithTypeDirectiveCache(names, containingFile, redirectedReference,
97377
97330
  return [];
97378
97331
  }
97379
97332
  const resolutions = [];
97380
- const cache = new Map();
97333
+ const cache = /* @__PURE__ */ new Map();
97381
97334
  for (const name of names) {
97382
97335
  let result;
97383
97336
  const mode = getModeForFileReference(name, containingFileMode);
@@ -97462,7 +97415,7 @@ function loadWithModeAwareCache(names, containingFile, containingFileName, redir
97462
97415
  return [];
97463
97416
  }
97464
97417
  const resolutions = [];
97465
- const cache = new Map();
97418
+ const cache = /* @__PURE__ */ new Map();
97466
97419
  let i = 0;
97467
97420
  for (const entry of resolutionInfo ? resolutionInfo.names : names) {
97468
97421
  let result;
@@ -97498,7 +97451,7 @@ function forEachProjectReference(projectReferences, resolvedProjectReferences, c
97498
97451
  const result = cbResolvedRef(resolvedRef, parent, index);
97499
97452
  if (result || !resolvedRef)
97500
97453
  return result;
97501
- (seenResolvedRefs || (seenResolvedRefs = new Set())).add(resolvedRef.sourceFile.path);
97454
+ (seenResolvedRefs || (seenResolvedRefs = /* @__PURE__ */ new Set())).add(resolvedRef.sourceFile.path);
97502
97455
  return worker(resolvedRef.commandLine.projectReferences, resolvedRef.references, resolvedRef);
97503
97456
  });
97504
97457
  }
@@ -97618,7 +97571,7 @@ function getImpliedNodeFormatForFileWorker(fileName, packageJsonInfoCache, host,
97618
97571
  return { impliedNodeFormat, packageJsonLocations, packageJsonScope };
97619
97572
  }
97620
97573
  }
97621
- var plainJSErrors = new Set([
97574
+ var plainJSErrors = /* @__PURE__ */ new Set([
97622
97575
  Diagnostics.Cannot_redeclare_block_scoped_variable_0.code,
97623
97576
  Diagnostics.A_module_cannot_have_multiple_default_exports.code,
97624
97577
  Diagnostics.Another_export_default_is_here.code,
@@ -97737,7 +97690,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
97737
97690
  let commonSourceDirectory;
97738
97691
  let typeChecker;
97739
97692
  let classifiableNames;
97740
- const ambientModuleNameToUnmodifiedFileName = new Map();
97693
+ const ambientModuleNameToUnmodifiedFileName = /* @__PURE__ */ new Map();
97741
97694
  let fileReasons = createMultiMap();
97742
97695
  const cachedBindAndCheckDiagnosticsForFile = {};
97743
97696
  const cachedDeclarationDiagnosticsForFile = {};
@@ -97745,8 +97698,8 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
97745
97698
  let fileProcessingDiagnostics;
97746
97699
  const maxNodeModuleJsDepth = typeof options.maxNodeModuleJsDepth === "number" ? options.maxNodeModuleJsDepth : 0;
97747
97700
  let currentNodeModulesDepth = 0;
97748
- const modulesWithElidedImports = new Map();
97749
- const sourceFilesFoundSearchingNodeModules = new Map();
97701
+ const modulesWithElidedImports = /* @__PURE__ */ new Map();
97702
+ const sourceFilesFoundSearchingNodeModules = /* @__PURE__ */ new Map();
97750
97703
  (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.Program, "createProgram", { configFilePath: options.configFilePath, rootDir: options.rootDir }, true);
97751
97704
  mark("beforeProgram");
97752
97705
  const host = createProgramOptions.host || createCompilerHost(options);
@@ -97758,7 +97711,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
97758
97711
  const currentDirectory = host.getCurrentDirectory();
97759
97712
  const supportedExtensions = getSupportedExtensions(options);
97760
97713
  const supportedExtensionsWithJsonIfResolveJsonModule = getSupportedExtensionsWithJsonIfResolveJsonModule(options, supportedExtensions);
97761
- const hasEmitBlockingDiagnostics = new Map();
97714
+ const hasEmitBlockingDiagnostics = /* @__PURE__ */ new Map();
97762
97715
  let _compilerOptionsObjectLiteralSyntax;
97763
97716
  let moduleResolutionCache;
97764
97717
  let typeReferenceDirectiveResolutionCache;
@@ -97806,13 +97759,13 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
97806
97759
  ).resolvedTypeReferenceDirective;
97807
97760
  actualResolveTypeReferenceDirectiveNamesWorker = (typeReferenceDirectiveNames, containingFile, redirectedReference, containingFileMode) => loadWithTypeDirectiveCache(Debug.checkEachDefined(typeReferenceDirectiveNames), containingFile, redirectedReference, containingFileMode, loader);
97808
97761
  }
97809
- const packageIdToSourceFile = new Map();
97810
- let sourceFileToPackageName = new Map();
97762
+ const packageIdToSourceFile = /* @__PURE__ */ new Map();
97763
+ let sourceFileToPackageName = /* @__PURE__ */ new Map();
97811
97764
  let redirectTargetsMap = createMultiMap();
97812
97765
  let usesUriStyleNodeCoreModules = false;
97813
- const filesByName = new Map();
97766
+ const filesByName = /* @__PURE__ */ new Map();
97814
97767
  let missingFilePaths;
97815
- const filesByNameIgnoreCase = host.useCaseSensitiveFileNames() ? new Map() : void 0;
97768
+ const filesByNameIgnoreCase = host.useCaseSensitiveFileNames() ? /* @__PURE__ */ new Map() : void 0;
97816
97769
  let resolvedProjectReferences;
97817
97770
  let projectReferenceRedirects;
97818
97771
  let mapFromFileToProjectReferenceRedirects;
@@ -98121,7 +98074,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
98121
98074
  var _a3;
98122
98075
  if (!classifiableNames) {
98123
98076
  getTypeChecker();
98124
- classifiableNames = new Set();
98077
+ classifiableNames = /* @__PURE__ */ new Set();
98125
98078
  for (const sourceFile of files) {
98126
98079
  (_a3 = sourceFile.classifiableNames) == null ? void 0 : _a3.forEach((value) => classifiableNames.add(value));
98127
98080
  }
@@ -98330,7 +98283,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
98330
98283
  SeenPackageName2[SeenPackageName2["Exists"] = 0] = "Exists";
98331
98284
  SeenPackageName2[SeenPackageName2["Modified"] = 1] = "Modified";
98332
98285
  })(SeenPackageName || (SeenPackageName = {}));
98333
- const seenPackageNames = new Map();
98286
+ const seenPackageNames = /* @__PURE__ */ new Map();
98334
98287
  for (const oldSourceFile of oldSourceFiles) {
98335
98288
  const sourceFileOptions = getCreateSourceFileOptions(oldSourceFile.fileName, moduleResolutionCache, host, options);
98336
98289
  let newSourceFile = host.getSourceFileByPath ? host.getSourceFileByPath(oldSourceFile.fileName, oldSourceFile.resolvedPath, sourceFileOptions, void 0, shouldCreateNewSourceFile || sourceFileOptions.impliedNodeFormat !== oldSourceFile.impliedNodeFormat) : host.getSourceFile(oldSourceFile.fileName, sourceFileOptions, void 0, shouldCreateNewSourceFile || sourceFileOptions.impliedNodeFormat !== oldSourceFile.impliedNodeFormat);
@@ -98933,7 +98886,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
98933
98886
  }
98934
98887
  const result = getDiagnostics(sourceFile, cancellationToken);
98935
98888
  if (sourceFile) {
98936
- (cache.perFile || (cache.perFile = new Map())).set(sourceFile.path, result);
98889
+ (cache.perFile || (cache.perFile = /* @__PURE__ */ new Map())).set(sourceFile.path, result);
98937
98890
  } else {
98938
98891
  cache.allDiagnostics = result;
98939
98892
  }
@@ -99341,7 +99294,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
99341
99294
  }
99342
99295
  function getResolvedProjectReferenceToRedirect(fileName) {
99343
99296
  if (mapFromFileToProjectReferenceRedirects === void 0) {
99344
- mapFromFileToProjectReferenceRedirects = new Map();
99297
+ mapFromFileToProjectReferenceRedirects = /* @__PURE__ */ new Map();
99345
99298
  forEachResolvedProjectReference2((referencedProject) => {
99346
99299
  if (toPath3(options.configFilePath) !== referencedProject.sourceFile.path) {
99347
99300
  referencedProject.commandLine.fileNames.forEach((f) => mapFromFileToProjectReferenceRedirects.set(toPath3(f), referencedProject.sourceFile.path));
@@ -99358,7 +99311,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
99358
99311
  if (!isDeclarationFileName(path))
99359
99312
  return void 0;
99360
99313
  if (mapFromToProjectReferenceRedirectSource === void 0) {
99361
- mapFromToProjectReferenceRedirectSource = new Map();
99314
+ mapFromToProjectReferenceRedirectSource = /* @__PURE__ */ new Map();
99362
99315
  forEachResolvedProjectReference2((resolvedRef) => {
99363
99316
  const out = outFile(resolvedRef.commandLine.options);
99364
99317
  if (out) {
@@ -99559,7 +99512,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
99559
99512
  }
99560
99513
  function parseProjectReferenceConfigFile(ref) {
99561
99514
  if (!projectReferenceRedirects) {
99562
- projectReferenceRedirects = new Map();
99515
+ projectReferenceRedirects = /* @__PURE__ */ new Map();
99563
99516
  }
99564
99517
  const refPath = resolveProjectReferencePath(ref);
99565
99518
  const sourceFilePath = toPath3(refPath);
@@ -99817,7 +99770,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
99817
99770
  }
99818
99771
  if (!options.noEmit && !options.suppressOutputPathCheck) {
99819
99772
  const emitHost = getEmitHost();
99820
- const emitFilesSeen = new Set();
99773
+ const emitFilesSeen = /* @__PURE__ */ new Set();
99821
99774
  forEachEmittedFile(emitHost, (emitFileNames) => {
99822
99775
  if (!options.emitDeclarationOnly) {
99823
99776
  verifyEmitFilePath(emitFileNames.jsFilePath, emitFilesSeen);
@@ -100173,7 +100126,7 @@ function updateHostForUseSourceOfProjectReferenceRedirect(host) {
100173
100126
  if (!host.getResolvedProjectReferences())
100174
100127
  return false;
100175
100128
  if (!setOfDeclarationDirectories) {
100176
- setOfDeclarationDirectories = new Set();
100129
+ setOfDeclarationDirectories = /* @__PURE__ */ new Set();
100177
100130
  host.forEachResolvedProjectReference((ref) => {
100178
100131
  const out = outFile(ref.commandLine.options);
100179
100132
  if (out) {
@@ -100404,7 +100357,7 @@ var BuilderState;
100404
100357
  getValues: (k) => forward.get(k),
100405
100358
  keys: () => forward.keys(),
100406
100359
  deleteKey: (k) => {
100407
- (deleted || (deleted = new Set())).add(k);
100360
+ (deleted || (deleted = /* @__PURE__ */ new Set())).add(k);
100408
100361
  const set = forward.get(k);
100409
100362
  if (!set) {
100410
100363
  return false;
@@ -100432,13 +100385,13 @@ var BuilderState;
100432
100385
  };
100433
100386
  return map2;
100434
100387
  }
100435
- return create2(new Map(), new Map(), void 0);
100388
+ return create2(/* @__PURE__ */ new Map(), /* @__PURE__ */ new Map(), void 0);
100436
100389
  }
100437
100390
  BuilderState2.createManyToManyPathMap = createManyToManyPathMap;
100438
100391
  function addToMultimap(map2, k, v) {
100439
100392
  let set = map2.get(k);
100440
100393
  if (!set) {
100441
- set = new Set();
100394
+ set = /* @__PURE__ */ new Set();
100442
100395
  map2.set(k, set);
100443
100396
  }
100444
100397
  set.add(v);
@@ -100521,7 +100474,7 @@ var BuilderState;
100521
100474
  }
100522
100475
  }
100523
100476
  function addReferencedFile(referencedPath) {
100524
- (referencedFiles || (referencedFiles = new Set())).add(referencedPath);
100477
+ (referencedFiles || (referencedFiles = /* @__PURE__ */ new Set())).add(referencedPath);
100525
100478
  }
100526
100479
  }
100527
100480
  function canReuseOldState(newReferencedMap, oldState) {
@@ -100530,7 +100483,7 @@ var BuilderState;
100530
100483
  BuilderState2.canReuseOldState = canReuseOldState;
100531
100484
  function create(newProgram, getCanonicalFileName, oldState, disableUseFileVersionAsSignature) {
100532
100485
  var _a2, _b, _c;
100533
- const fileInfos = new Map();
100486
+ const fileInfos = /* @__PURE__ */ new Map();
100534
100487
  const options = newProgram.getCompilerOptions();
100535
100488
  const isOutFile = outFile(options);
100536
100489
  const referencedMap = options.module !== 0 /* None */ && !isOutFile ? createManyToManyPathMap() : void 0;
@@ -100602,7 +100555,7 @@ var BuilderState;
100602
100555
  BuilderState2.getFilesAffectedByWithOldState = getFilesAffectedByWithOldState;
100603
100556
  function updateSignatureOfFile(state, signature, path) {
100604
100557
  state.fileInfos.get(path).signature = signature;
100605
- (state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = new Set())).add(path);
100558
+ (state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(path);
100606
100559
  }
100607
100560
  BuilderState2.updateSignatureOfFile = updateSignatureOfFile;
100608
100561
  function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, computeHash, getCanonicalFileName, useFileVersionAsSignature = state.useFileVersionAsSignature) {
@@ -100637,7 +100590,7 @@ var BuilderState;
100637
100590
  if (latestSignature === void 0) {
100638
100591
  latestSignature = sourceFile.version;
100639
100592
  if (state.exportedModulesMap && latestSignature !== prevSignature) {
100640
- (state.oldExportedModulesMap || (state.oldExportedModulesMap = new Map())).set(sourceFile.resolvedPath, state.exportedModulesMap.getValues(sourceFile.resolvedPath) || false);
100593
+ (state.oldExportedModulesMap || (state.oldExportedModulesMap = /* @__PURE__ */ new Map())).set(sourceFile.resolvedPath, state.exportedModulesMap.getValues(sourceFile.resolvedPath) || false);
100641
100594
  const references = state.referencedMap ? state.referencedMap.getValues(sourceFile.resolvedPath) : void 0;
100642
100595
  if (references) {
100643
100596
  state.exportedModulesMap.set(sourceFile.resolvedPath, references);
@@ -100646,8 +100599,8 @@ var BuilderState;
100646
100599
  }
100647
100600
  }
100648
100601
  }
100649
- (state.oldSignatures || (state.oldSignatures = new Map())).set(sourceFile.resolvedPath, prevSignature || false);
100650
- (state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = new Set())).add(sourceFile.resolvedPath);
100602
+ (state.oldSignatures || (state.oldSignatures = /* @__PURE__ */ new Map())).set(sourceFile.resolvedPath, prevSignature || false);
100603
+ (state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(sourceFile.resolvedPath);
100651
100604
  info.signature = latestSignature;
100652
100605
  return latestSignature !== prevSignature;
100653
100606
  }
@@ -100655,7 +100608,7 @@ var BuilderState;
100655
100608
  function updateExportedModules(state, sourceFile, exportedModulesFromDeclarationEmit) {
100656
100609
  if (!state.exportedModulesMap)
100657
100610
  return;
100658
- (state.oldExportedModulesMap || (state.oldExportedModulesMap = new Map())).set(sourceFile.resolvedPath, state.exportedModulesMap.getValues(sourceFile.resolvedPath) || false);
100611
+ (state.oldExportedModulesMap || (state.oldExportedModulesMap = /* @__PURE__ */ new Map())).set(sourceFile.resolvedPath, state.exportedModulesMap.getValues(sourceFile.resolvedPath) || false);
100659
100612
  if (!exportedModulesFromDeclarationEmit) {
100660
100613
  state.exportedModulesMap.deleteKey(sourceFile.resolvedPath);
100661
100614
  return;
@@ -100670,7 +100623,7 @@ var BuilderState;
100670
100623
  function addExportedModule(exportedModulePaths) {
100671
100624
  if (exportedModulePaths == null ? void 0 : exportedModulePaths.length) {
100672
100625
  if (!exportedModules) {
100673
- exportedModules = new Set();
100626
+ exportedModules = /* @__PURE__ */ new Set();
100674
100627
  }
100675
100628
  exportedModulePaths.forEach((path) => exportedModules.add(path));
100676
100629
  }
@@ -100685,7 +100638,7 @@ var BuilderState;
100685
100638
  if (!state.referencedMap || isFileAffectingGlobalScope(sourceFile)) {
100686
100639
  return getAllFileNames(state, programOfThisState);
100687
100640
  }
100688
- const seenMap = new Set();
100641
+ const seenMap = /* @__PURE__ */ new Set();
100689
100642
  const queue = [sourceFile.resolvedPath];
100690
100643
  while (queue.length) {
100691
100644
  const path = queue.pop();
@@ -100768,7 +100721,7 @@ var BuilderState;
100768
100721
  if (compilerOptions && (compilerOptions.isolatedModules || outFile(compilerOptions))) {
100769
100722
  return [sourceFileWithUpdatedShape];
100770
100723
  }
100771
- const seenFileNamesMap = new Map();
100724
+ const seenFileNamesMap = /* @__PURE__ */ new Map();
100772
100725
  seenFileNamesMap.set(sourceFileWithUpdatedShape.resolvedPath, sourceFileWithUpdatedShape);
100773
100726
  const queue = getReferencedByPaths(state, sourceFileWithUpdatedShape.resolvedPath);
100774
100727
  while (queue.length > 0) {
@@ -100826,11 +100779,11 @@ function createBuilderProgramState(newProgram, getCanonicalFileName, oldState, d
100826
100779
  state.compilerOptions = compilerOptions;
100827
100780
  const outFilePath = outFile(compilerOptions);
100828
100781
  if (!outFilePath) {
100829
- state.semanticDiagnosticsPerFile = new Map();
100782
+ state.semanticDiagnosticsPerFile = /* @__PURE__ */ new Map();
100830
100783
  } else if (compilerOptions.composite && (oldState == null ? void 0 : oldState.outSignature) && outFilePath === outFile(oldState == null ? void 0 : oldState.compilerOptions)) {
100831
100784
  state.outSignature = oldState.outSignature && getEmitSignatureFromOldSignature(compilerOptions, oldState.compilerOptions, oldState.outSignature);
100832
100785
  }
100833
- state.changedFilesSet = new Set();
100786
+ state.changedFilesSet = /* @__PURE__ */ new Set();
100834
100787
  state.latestChangedDtsFile = compilerOptions.composite ? oldState == null ? void 0 : oldState.latestChangedDtsFile : void 0;
100835
100788
  const useOldState = BuilderState.canReuseOldState(state.referencedMap, oldState);
100836
100789
  const oldCompilerOptions = useOldState ? oldState.compilerOptions : void 0;
@@ -100840,7 +100793,7 @@ function createBuilderProgramState(newProgram, getCanonicalFileName, oldState, d
100840
100793
  (_a2 = oldState.changedFilesSet) == null ? void 0 : _a2.forEach((value) => state.changedFilesSet.add(value));
100841
100794
  if (!outFilePath && ((_b = oldState.affectedFilesPendingEmit) == null ? void 0 : _b.size)) {
100842
100795
  state.affectedFilesPendingEmit = new Map(oldState.affectedFilesPendingEmit);
100843
- state.seenAffectedFiles = new Set();
100796
+ state.seenAffectedFiles = /* @__PURE__ */ new Set();
100844
100797
  }
100845
100798
  state.programEmitPending = oldState.programEmitPending;
100846
100799
  } else {
@@ -100866,7 +100819,7 @@ function createBuilderProgramState(newProgram, getCanonicalFileName, oldState, d
100866
100819
  if (diagnostics) {
100867
100820
  state.semanticDiagnosticsPerFile.set(sourceFilePath, oldState.hasReusableDiagnostic ? convertToDiagnostics(diagnostics, newProgram, getCanonicalFileName) : diagnostics);
100868
100821
  if (!state.semanticDiagnosticsFromOldState) {
100869
- state.semanticDiagnosticsFromOldState = new Set();
100822
+ state.semanticDiagnosticsFromOldState = /* @__PURE__ */ new Set();
100870
100823
  }
100871
100824
  state.semanticDiagnosticsFromOldState.add(sourceFilePath);
100872
100825
  }
@@ -100874,11 +100827,18 @@ function createBuilderProgramState(newProgram, getCanonicalFileName, oldState, d
100874
100827
  if (canCopyEmitSignatures) {
100875
100828
  const oldEmitSignature = oldState.emitSignatures.get(sourceFilePath);
100876
100829
  if (oldEmitSignature) {
100877
- ((_a3 = state.emitSignatures) != null ? _a3 : state.emitSignatures = new Map()).set(sourceFilePath, getEmitSignatureFromOldSignature(compilerOptions, oldState.compilerOptions, oldEmitSignature));
100830
+ ((_a3 = state.emitSignatures) != null ? _a3 : state.emitSignatures = /* @__PURE__ */ new Map()).set(sourceFilePath, getEmitSignatureFromOldSignature(compilerOptions, oldState.compilerOptions, oldEmitSignature));
100878
100831
  }
100879
100832
  }
100880
100833
  });
100881
- if (useOldState && forEachEntry(oldState.fileInfos, (info, sourceFilePath) => (outFilePath || info.affectsGlobalScope) && !state.fileInfos.has(sourceFilePath))) {
100834
+ if (useOldState && forEachEntry(oldState.fileInfos, (info, sourceFilePath) => {
100835
+ if (state.fileInfos.has(sourceFilePath))
100836
+ return false;
100837
+ if (outFilePath || info.affectsGlobalScope)
100838
+ return true;
100839
+ state.buildInfoEmitPending = true;
100840
+ return false;
100841
+ })) {
100882
100842
  BuilderState.getAllFilesExcludingDefaultLibraryFile(state, newProgram, void 0).forEach((file) => addFileToChangeSet(state, file.resolvedPath));
100883
100843
  } else if (oldCompilerOptions) {
100884
100844
  const pendingEmitKind = compilerOptionsAffectEmit(compilerOptions, oldCompilerOptions) ? getBuilderFileEmit(compilerOptions) : getPendingEmitKind(compilerOptions, oldCompilerOptions);
@@ -100894,7 +100854,7 @@ function createBuilderProgramState(newProgram, getCanonicalFileName, oldState, d
100894
100854
  }
100895
100855
  });
100896
100856
  Debug.assert(!state.seenAffectedFiles || !state.seenAffectedFiles.size);
100897
- state.seenAffectedFiles = state.seenAffectedFiles || new Set();
100857
+ state.seenAffectedFiles = state.seenAffectedFiles || /* @__PURE__ */ new Set();
100898
100858
  state.buildInfoEmitPending = true;
100899
100859
  } else {
100900
100860
  state.programEmitPending = state.programEmitPending ? state.programEmitPending | pendingEmitKind : pendingEmitKind;
@@ -101025,7 +100985,7 @@ function getNextAffectedFile(state, cancellationToken, computeHash, getCanonical
101025
100985
  state.currentChangedFilePath = nextKey.value;
101026
100986
  state.affectedFilesIndex = 0;
101027
100987
  if (!state.seenAffectedFiles)
101028
- state.seenAffectedFiles = new Set();
100988
+ state.seenAffectedFiles = /* @__PURE__ */ new Set();
101029
100989
  }
101030
100990
  }
101031
100991
  function clearAffectedFilesPendingEmit(state, emitOnlyDtsFiles) {
@@ -101153,7 +101113,7 @@ function handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile
101153
101113
  if (!isChangedSignature(state, affectedFile.resolvedPath))
101154
101114
  return;
101155
101115
  if (state.compilerOptions.isolatedModules) {
101156
- const seenFileNamesMap = new Map();
101116
+ const seenFileNamesMap = /* @__PURE__ */ new Map();
101157
101117
  seenFileNamesMap.set(affectedFile.resolvedPath, true);
101158
101118
  const queue = BuilderState.getReferencedByPaths(state, affectedFile.resolvedPath);
101159
101119
  while (queue.length > 0) {
@@ -101170,7 +101130,7 @@ function handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile
101170
101130
  }
101171
101131
  }
101172
101132
  }
101173
- const seenFileAndExportsOfFile = new Set();
101133
+ const seenFileAndExportsOfFile = /* @__PURE__ */ new Set();
101174
101134
  (_a2 = state.exportedModulesMap.getKeys(affectedFile.resolvedPath)) == null ? void 0 : _a2.forEach((exportedFromPath) => {
101175
101135
  if (handleDtsMayChangeOfGlobalScope(state, exportedFromPath, cancellationToken, computeHash, getCanonicalFileName, host))
101176
101136
  return true;
@@ -101248,7 +101208,7 @@ function getBuildInfo2(state, getCanonicalFileName, bundle) {
101248
101208
  const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(state.compilerOptions), currentDirectory));
101249
101209
  const latestChangedDtsFile = state.latestChangedDtsFile ? relativeToBuildInfoEnsuringAbsolutePath(state.latestChangedDtsFile) : void 0;
101250
101210
  const fileNames = [];
101251
- const fileNameToFileId = new Map();
101211
+ const fileNameToFileId = /* @__PURE__ */ new Map();
101252
101212
  if (outFile(state.compilerOptions)) {
101253
101213
  const fileInfos2 = arrayFrom(state.fileInfos.entries(), ([key, value]) => {
101254
101214
  toFileId(key);
@@ -101325,7 +101285,7 @@ function getBuildInfo2(state, getCanonicalFileName, bundle) {
101325
101285
  let affectedFilesPendingEmit;
101326
101286
  if ((_c = state.affectedFilesPendingEmit) == null ? void 0 : _c.size) {
101327
101287
  const fullEmitForOptions = getBuilderFileEmit(state.compilerOptions);
101328
- const seenFiles = new Set();
101288
+ const seenFiles = /* @__PURE__ */ new Set();
101329
101289
  for (const path of arrayFrom(state.affectedFilesPendingEmit.keys()).sort(compareStringsCaseSensitive)) {
101330
101290
  if (tryAddToSet(seenFiles, path)) {
101331
101291
  const file = state.program.getSourceFileByPath(path);
@@ -101378,7 +101338,7 @@ function getBuildInfo2(state, getCanonicalFileName, bundle) {
101378
101338
  let fileIdListId = fileNamesToFileIdListId == null ? void 0 : fileNamesToFileIdListId.get(key);
101379
101339
  if (fileIdListId === void 0) {
101380
101340
  (fileIdsList || (fileIdsList = [])).push(fileIds);
101381
- (fileNamesToFileIdListId || (fileNamesToFileIdListId = new Map())).set(key, fileIdListId = fileIdsList.length);
101341
+ (fileNamesToFileIdListId || (fileNamesToFileIdListId = /* @__PURE__ */ new Map())).set(key, fileIdListId = fileIdsList.length);
101382
101342
  }
101383
101343
  return fileIdListId;
101384
101344
  }
@@ -101579,11 +101539,11 @@ function createBuilderProgram(kind, { newProgram, host, oldProgram, configFilePa
101579
101539
  state.affectedFilesIndex++;
101580
101540
  state.buildInfoEmitPending = true;
101581
101541
  const existing = ((_a2 = state.seenEmittedFiles) == null ? void 0 : _a2.get(affectedSourceFile.resolvedPath)) || 0 /* None */;
101582
- ((_b = state.seenEmittedFiles) != null ? _b : state.seenEmittedFiles = new Map()).set(affectedSourceFile.resolvedPath, emitKind | existing);
101542
+ ((_b = state.seenEmittedFiles) != null ? _b : state.seenEmittedFiles = /* @__PURE__ */ new Map()).set(affectedSourceFile.resolvedPath, emitKind | existing);
101583
101543
  const existingPending = ((_c = state.affectedFilesPendingEmit) == null ? void 0 : _c.get(affectedSourceFile.resolvedPath)) || programEmitKind;
101584
101544
  const pendingKind = getPendingEmitKind(existingPending, emitKind | existing);
101585
101545
  if (pendingKind)
101586
- ((_d = state.affectedFilesPendingEmit) != null ? _d : state.affectedFilesPendingEmit = new Map()).set(affectedSourceFile.resolvedPath, pendingKind);
101546
+ ((_d = state.affectedFilesPendingEmit) != null ? _d : state.affectedFilesPendingEmit = /* @__PURE__ */ new Map()).set(affectedSourceFile.resolvedPath, pendingKind);
101587
101547
  else
101588
101548
  (_e = state.affectedFilesPendingEmit) == null ? void 0 : _e.delete(affectedSourceFile.resolvedPath);
101589
101549
  } else {
@@ -101615,13 +101575,13 @@ function createBuilderProgram(kind, { newProgram, host, oldProgram, configFilePa
101615
101575
  emitSignature = signature;
101616
101576
  if (signature !== file.version) {
101617
101577
  if (host.storeFilesChangingSignatureDuringEmit)
101618
- ((_b = state.filesChangingSignature) != null ? _b : state.filesChangingSignature = new Set()).add(file.resolvedPath);
101578
+ ((_b = state.filesChangingSignature) != null ? _b : state.filesChangingSignature = /* @__PURE__ */ new Set()).add(file.resolvedPath);
101619
101579
  if (state.exportedModulesMap)
101620
101580
  BuilderState.updateExportedModules(state, file, file.exportedModulesFromDeclarationEmit);
101621
101581
  if (state.affectedFiles) {
101622
101582
  const existing = (_c = state.oldSignatures) == null ? void 0 : _c.get(file.resolvedPath);
101623
101583
  if (existing === void 0)
101624
- ((_d = state.oldSignatures) != null ? _d : state.oldSignatures = new Map()).set(file.resolvedPath, info.signature || false);
101584
+ ((_d = state.oldSignatures) != null ? _d : state.oldSignatures = /* @__PURE__ */ new Map()).set(file.resolvedPath, info.signature || false);
101625
101585
  info.signature = signature;
101626
101586
  } else {
101627
101587
  info.signature = signature;
@@ -101635,7 +101595,7 @@ function createBuilderProgram(kind, { newProgram, host, oldProgram, configFilePa
101635
101595
  emitSignature = handleNewSignature((_f = state.emitSignatures) == null ? void 0 : _f.get(filePath), emitSignature);
101636
101596
  if (!emitSignature)
101637
101597
  return;
101638
- ((_g = state.emitSignatures) != null ? _g : state.emitSignatures = new Map()).set(filePath, emitSignature);
101598
+ ((_g = state.emitSignatures) != null ? _g : state.emitSignatures = /* @__PURE__ */ new Map()).set(filePath, emitSignature);
101639
101599
  }
101640
101600
  } else if (state.compilerOptions.composite) {
101641
101601
  const newSignature = handleNewSignature(state.outSignature, void 0);
@@ -101752,7 +101712,7 @@ function createBuilderProgram(kind, { newProgram, host, oldProgram, configFilePa
101752
101712
  function addToAffectedFilesPendingEmit(state, affectedFilePendingEmit, kind) {
101753
101713
  var _a2, _b;
101754
101714
  const existingKind = ((_a2 = state.affectedFilesPendingEmit) == null ? void 0 : _a2.get(affectedFilePendingEmit)) || 0 /* None */;
101755
- ((_b = state.affectedFilesPendingEmit) != null ? _b : state.affectedFilesPendingEmit = new Map()).set(affectedFilePendingEmit, existingKind | kind);
101715
+ ((_b = state.affectedFilesPendingEmit) != null ? _b : state.affectedFilesPendingEmit = /* @__PURE__ */ new Map()).set(affectedFilePendingEmit, existingKind | kind);
101756
101716
  }
101757
101717
  function toBuilderStateFileInfoForMultiEmit(fileInfo) {
101758
101718
  return isString(fileInfo) ? { version: fileInfo, signature: fileInfo, affectsGlobalScope: void 0, impliedFormat: void 0 } : isString(fileInfo.signature) ? fileInfo : { version: fileInfo.version, signature: fileInfo.signature === false ? void 0 : fileInfo.version, affectsGlobalScope: fileInfo.affectsGlobalScope, impliedFormat: fileInfo.impliedFormat };
@@ -101773,7 +101733,7 @@ function createBuilderProgramUsingProgramBuildInfo(buildInfo, buildInfoPath, hos
101773
101733
  let filePathsSetList;
101774
101734
  const latestChangedDtsFile = program.latestChangedDtsFile ? toAbsolutePath(program.latestChangedDtsFile) : void 0;
101775
101735
  if (isProgramBundleEmitBuildInfo(program)) {
101776
- const fileInfos = new Map();
101736
+ const fileInfos = /* @__PURE__ */ new Map();
101777
101737
  program.fileInfos.forEach((fileInfo, index) => {
101778
101738
  const path = toFilePath(index + 1);
101779
101739
  fileInfos.set(path, isString(fileInfo) ? { version: fileInfo, signature: void 0, affectsGlobalScope: void 0, impliedFormat: void 0 } : fileInfo);
@@ -101788,8 +101748,8 @@ function createBuilderProgramUsingProgramBuildInfo(buildInfo, buildInfoPath, hos
101788
101748
  };
101789
101749
  } else {
101790
101750
  filePathsSetList = (_b = program.fileIdsList) == null ? void 0 : _b.map((fileIds) => new Set(fileIds.map(toFilePath)));
101791
- const fileInfos = new Map();
101792
- const emitSignatures = ((_c = program.options) == null ? void 0 : _c.composite) && !outFile(program.options) ? new Map() : void 0;
101751
+ const fileInfos = /* @__PURE__ */ new Map();
101752
+ const emitSignatures = ((_c = program.options) == null ? void 0 : _c.composite) && !outFile(program.options) ? /* @__PURE__ */ new Map() : void 0;
101793
101753
  program.fileInfos.forEach((fileInfo, index) => {
101794
101754
  const path = toFilePath(index + 1);
101795
101755
  const stateFileInfo = toBuilderStateFileInfoForMultiEmit(fileInfo);
@@ -101873,7 +101833,7 @@ function createBuilderProgramUsingProgramBuildInfo(buildInfo, buildInfoPath, hos
101873
101833
  function getBuildInfoFileVersionMap(program, buildInfoPath, host) {
101874
101834
  const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory()));
101875
101835
  const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames());
101876
- const fileInfos = new Map();
101836
+ const fileInfos = /* @__PURE__ */ new Map();
101877
101837
  program.fileInfos.forEach((fileInfo, index) => {
101878
101838
  const path = toPath(program.fileNames[index], buildInfoDirectory, getCanonicalFileName);
101879
101839
  const version2 = isString(fileInfo) ? fileInfo : fileInfo.version;
@@ -101958,7 +101918,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
101958
101918
  const resolutionsWithFailedLookups = [];
101959
101919
  const resolutionsWithOnlyAffectingLocations = [];
101960
101920
  const resolvedFileToResolution = createMultiMap();
101961
- const impliedFormatPackageJsons = new Map();
101921
+ const impliedFormatPackageJsons = /* @__PURE__ */ new Map();
101962
101922
  let hasChangedAutomaticTypeDirectiveNames = false;
101963
101923
  let affectingPathChecksForFile;
101964
101924
  let affectingPathChecks;
@@ -101967,7 +101927,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
101967
101927
  let isInDirectoryChecks;
101968
101928
  const getCurrentDirectory = memoize(() => resolutionHost.getCurrentDirectory());
101969
101929
  const cachedDirectoryStructureHost = resolutionHost.getCachedDirectoryStructureHost();
101970
- const resolvedModuleNames = new Map();
101930
+ const resolvedModuleNames = /* @__PURE__ */ new Map();
101971
101931
  const perDirectoryResolvedModuleNames = createCacheWithRedirects();
101972
101932
  const nonRelativeModuleNameCache = createCacheWithRedirects();
101973
101933
  const moduleResolutionCache = createModuleResolutionCache(
@@ -101977,7 +101937,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
101977
101937
  perDirectoryResolvedModuleNames,
101978
101938
  nonRelativeModuleNameCache
101979
101939
  );
101980
- const resolvedTypeReferenceDirectives = new Map();
101940
+ const resolvedTypeReferenceDirectives = /* @__PURE__ */ new Map();
101981
101941
  const perDirectoryResolvedTypeReferenceDirectives = createCacheWithRedirects();
101982
101942
  const typeReferenceDirectiveResolutionCache = createTypeReferenceDirectiveResolutionCache(
101983
101943
  getCurrentDirectory(),
@@ -101987,13 +101947,13 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
101987
101947
  perDirectoryResolvedTypeReferenceDirectives
101988
101948
  );
101989
101949
  const failedLookupDefaultExtensions = [".ts" /* Ts */, ".tsx" /* Tsx */, ".js" /* Js */, ".jsx" /* Jsx */, ".json" /* Json */];
101990
- const customFailedLookupPaths = new Map();
101991
- const directoryWatchesOfFailedLookups = new Map();
101992
- const fileWatchesOfAffectingLocations = new Map();
101950
+ const customFailedLookupPaths = /* @__PURE__ */ new Map();
101951
+ const directoryWatchesOfFailedLookups = /* @__PURE__ */ new Map();
101952
+ const fileWatchesOfAffectingLocations = /* @__PURE__ */ new Map();
101993
101953
  const rootDir = rootDirForResolution && removeTrailingDirectorySeparator(getNormalizedAbsolutePath(rootDirForResolution, getCurrentDirectory()));
101994
101954
  const rootPath = rootDir && resolutionHost.toPath(rootDir);
101995
101955
  const rootSplitLength = rootPath !== void 0 ? rootPath.split(directorySeparator).length : 0;
101996
- const typeRootsWatches = new Map();
101956
+ const typeRootsWatches = /* @__PURE__ */ new Map();
101997
101957
  return {
101998
101958
  getModuleResolutionCache: () => moduleResolutionCache,
101999
101959
  startRecordingFilesWithChangedResolutions,
@@ -102446,16 +102406,16 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
102446
102406
  }
102447
102407
  }
102448
102408
  }
102449
- const paths = new Set();
102409
+ const paths = /* @__PURE__ */ new Set();
102450
102410
  paths.add(locationToWatch);
102451
102411
  let actualWatcher = canWatchDirectoryOrFile(resolutionHost.toPath(locationToWatch)) ? resolutionHost.watchAffectingFileLocation(locationToWatch, (fileName, eventKind) => {
102452
102412
  cachedDirectoryStructureHost == null ? void 0 : cachedDirectoryStructureHost.addOrDeleteFile(fileName, resolutionHost.toPath(locationToWatch), eventKind);
102453
102413
  const packageJsonMap = moduleResolutionCache.getPackageJsonInfoCache().getInternalMap();
102454
102414
  paths.forEach((path) => {
102455
102415
  if (watcher.resolutions)
102456
- (affectingPathChecks != null ? affectingPathChecks : affectingPathChecks = new Set()).add(path);
102416
+ (affectingPathChecks != null ? affectingPathChecks : affectingPathChecks = /* @__PURE__ */ new Set()).add(path);
102457
102417
  if (watcher.files)
102458
- (affectingPathChecksForFile != null ? affectingPathChecksForFile : affectingPathChecksForFile = new Set()).add(path);
102418
+ (affectingPathChecksForFile != null ? affectingPathChecksForFile : affectingPathChecksForFile = /* @__PURE__ */ new Set()).add(path);
102459
102419
  packageJsonMap == null ? void 0 : packageJsonMap.delete(resolutionHost.toPath(path));
102460
102420
  });
102461
102421
  resolutionHost.scheduleInvalidateResolutionsOfFailedLookupLocations();
@@ -102583,7 +102543,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
102583
102543
  continue;
102584
102544
  resolution.isInvalidated = invalidated = true;
102585
102545
  for (const containingFilePath of Debug.checkDefined(resolution.files)) {
102586
- (filesWithInvalidatedResolutions != null ? filesWithInvalidatedResolutions : filesWithInvalidatedResolutions = new Set()).add(containingFilePath);
102546
+ (filesWithInvalidatedResolutions != null ? filesWithInvalidatedResolutions : filesWithInvalidatedResolutions = /* @__PURE__ */ new Set()).add(containingFilePath);
102587
102547
  hasChangedAutomaticTypeDirectiveNames = hasChangedAutomaticTypeDirectiveNames || endsWith(containingFilePath, inferredTypesContainingFile);
102588
102548
  }
102589
102549
  }
@@ -102602,7 +102562,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
102602
102562
  }
102603
102563
  function scheduleInvalidateResolutionOfFailedLookupLocation(fileOrDirectoryPath, isCreatingWatchedDirectory) {
102604
102564
  if (isCreatingWatchedDirectory) {
102605
- (isInDirectoryChecks || (isInDirectoryChecks = new Set())).add(fileOrDirectoryPath);
102565
+ (isInDirectoryChecks || (isInDirectoryChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath);
102606
102566
  } else {
102607
102567
  const updatedPath = removeIgnoredPath(fileOrDirectoryPath);
102608
102568
  if (!updatedPath)
@@ -102613,8 +102573,8 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
102613
102573
  }
102614
102574
  const dirOfFileOrDirectory = getDirectoryPath(fileOrDirectoryPath);
102615
102575
  if (isNodeModulesAtTypesDirectory(fileOrDirectoryPath) || isNodeModulesDirectory(fileOrDirectoryPath) || isNodeModulesAtTypesDirectory(dirOfFileOrDirectory) || isNodeModulesDirectory(dirOfFileOrDirectory)) {
102616
- (failedLookupChecks || (failedLookupChecks = new Set())).add(fileOrDirectoryPath);
102617
- (startsWithPathChecks || (startsWithPathChecks = new Set())).add(fileOrDirectoryPath);
102576
+ (failedLookupChecks || (failedLookupChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath);
102577
+ (startsWithPathChecks || (startsWithPathChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath);
102618
102578
  } else {
102619
102579
  if (!isPathWithDefaultFailedLookupExtension(fileOrDirectoryPath) && !customFailedLookupPaths.has(fileOrDirectoryPath)) {
102620
102580
  return false;
@@ -102622,10 +102582,10 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
102622
102582
  if (isEmittedFileOfProgram(resolutionHost.getCurrentProgram(), fileOrDirectoryPath)) {
102623
102583
  return false;
102624
102584
  }
102625
- (failedLookupChecks || (failedLookupChecks = new Set())).add(fileOrDirectoryPath);
102585
+ (failedLookupChecks || (failedLookupChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath);
102626
102586
  const packagePath = parseNodeModuleFromPath(fileOrDirectoryPath);
102627
102587
  if (packagePath)
102628
- (startsWithPathChecks || (startsWithPathChecks = new Set())).add(packagePath);
102588
+ (startsWithPathChecks || (startsWithPathChecks = /* @__PURE__ */ new Set())).add(packagePath);
102629
102589
  }
102630
102590
  }
102631
102591
  resolutionHost.scheduleInvalidateResolutionsOfFailedLookupLocations();
@@ -102636,7 +102596,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
102636
102596
  if (affectingPathChecksForFile) {
102637
102597
  (_a2 = resolutionHost.getCurrentProgram()) == null ? void 0 : _a2.getSourceFiles().forEach((f) => {
102638
102598
  if (some(f.packageJsonLocations, (location) => affectingPathChecksForFile.has(location))) {
102639
- (filesWithInvalidatedResolutions != null ? filesWithInvalidatedResolutions : filesWithInvalidatedResolutions = new Set()).add(f.path);
102599
+ (filesWithInvalidatedResolutions != null ? filesWithInvalidatedResolutions : filesWithInvalidatedResolutions = /* @__PURE__ */ new Set()).add(f.path);
102640
102600
  invalidated = true;
102641
102601
  }
102642
102602
  });
@@ -102826,7 +102786,7 @@ function getErrorSummaryText(errorCount, filesInError, newLine, host) {
102826
102786
  if (errorCount === 0)
102827
102787
  return "";
102828
102788
  const nonNilFiles = filesInError.filter((fileInError) => fileInError !== void 0);
102829
- const distinctFileNamesWithLines = nonNilFiles.map((fileInError) => `${fileInError.fileName}:${fileInError.line}`).filter((value, index, self2) => self2.indexOf(value) === index);
102789
+ const distinctFileNamesWithLines = nonNilFiles.map((fileInError) => `${fileInError.fileName}:${fileInError.line}`).filter((value, index, self) => self.indexOf(value) === index);
102830
102790
  const firstFileReference = nonNilFiles[0] && prettyPathForFileError(nonNilFiles[0], host.getCurrentDirectory());
102831
102791
  const d = errorCount === 1 ? createCompilerDiagnostic(
102832
102792
  filesInError[0] !== void 0 ? Diagnostics.Found_1_error_in_1 : Diagnostics.Found_1_error,
@@ -102841,7 +102801,7 @@ function getErrorSummaryText(errorCount, filesInError, newLine, host) {
102841
102801
  return `${newLine}${flattenDiagnosticMessageText(d.messageText, newLine)}${newLine}${newLine}${suffix}`;
102842
102802
  }
102843
102803
  function createTabularErrorsDisplay(filesInError, host) {
102844
- const distinctFiles = filesInError.filter((value, index, self2) => index === self2.findIndex((file) => (file == null ? void 0 : file.fileName) === (value == null ? void 0 : value.fileName)));
102804
+ const distinctFiles = filesInError.filter((value, index, self) => index === self.findIndex((file) => (file == null ? void 0 : file.fileName) === (value == null ? void 0 : value.fileName)));
102845
102805
  if (distinctFiles.length === 0)
102846
102806
  return "";
102847
102807
  const numberLength = (num) => Math.log(num) * Math.LOG10E + 1;
@@ -103372,7 +103332,7 @@ function createWatchProgram(host) {
103372
103332
  let sharedExtendedConfigFileWatchers;
103373
103333
  let extendedConfigCache = host.extendedConfigCache;
103374
103334
  let reportFileChangeDetectedOnCreateProgram = false;
103375
- const sourceFilesCache = new Map();
103335
+ const sourceFilesCache = /* @__PURE__ */ new Map();
103376
103336
  let missingFilePathsRequestedForRelease;
103377
103337
  let hasChangedCompilerOptions = false;
103378
103338
  const useCaseSensitiveFileNames = host.useCaseSensitiveFileNames();
@@ -103547,7 +103507,7 @@ function createWatchProgram(host) {
103547
103507
  const oldProgram = getCurrentProgram();
103548
103508
  builderProgram = createProgram2(rootFileNames, compilerOptions, compilerHost, builderProgram, configFileParsingDiagnostics, projectReferences);
103549
103509
  resolutionCache.finishCachingPerDirectoryResolution(builderProgram.getProgram(), oldProgram);
103550
- updateMissingFilePathsWatch(builderProgram.getProgram(), missingFilesMap || (missingFilesMap = new Map()), watchMissingFilePath);
103510
+ updateMissingFilePathsWatch(builderProgram.getProgram(), missingFilesMap || (missingFilesMap = /* @__PURE__ */ new Map()), watchMissingFilePath);
103551
103511
  if (needsUpdateInTypeRootWatch) {
103552
103512
  resolutionCache.updateTypeRootsWatch();
103553
103513
  }
@@ -103739,7 +103699,7 @@ function createWatchProgram(host) {
103739
103699
  configFileName,
103740
103700
  optionsToExtendForConfigFile,
103741
103701
  parseConfigFileHost,
103742
- extendedConfigCache || (extendedConfigCache = new Map()),
103702
+ extendedConfigCache || (extendedConfigCache = /* @__PURE__ */ new Map()),
103743
103703
  watchOptionsToExtend,
103744
103704
  extraFileExtensions
103745
103705
  ));
@@ -103779,7 +103739,7 @@ function createWatchProgram(host) {
103779
103739
  config.parsedCommandLine = parsedCommandLine;
103780
103740
  config.reloadLevel = void 0;
103781
103741
  } else {
103782
- (parsedConfigs || (parsedConfigs = new Map())).set(configPath, config = { parsedCommandLine });
103742
+ (parsedConfigs || (parsedConfigs = /* @__PURE__ */ new Map())).set(configPath, config = { parsedCommandLine });
103783
103743
  }
103784
103744
  watchReferencedProject(configFileName2, configPath, config);
103785
103745
  return parsedCommandLine;
@@ -103791,7 +103751,7 @@ function createWatchProgram(host) {
103791
103751
  configFileName2,
103792
103752
  void 0,
103793
103753
  parseConfigFileHost,
103794
- extendedConfigCache || (extendedConfigCache = new Map()),
103754
+ extendedConfigCache || (extendedConfigCache = /* @__PURE__ */ new Map()),
103795
103755
  watchOptionsToExtend
103796
103756
  );
103797
103757
  parseConfigFileHost.onUnRecoverableConfigFileDiagnostic = onUnRecoverableConfigFileDiagnostic;
@@ -103840,7 +103800,7 @@ function createWatchProgram(host) {
103840
103800
  function watchConfigFileWildCardDirectories() {
103841
103801
  if (wildcardDirectories) {
103842
103802
  updateWatchingWildcardDirectories(
103843
- watchedWildcardDirectories || (watchedWildcardDirectories = new Map()),
103803
+ watchedWildcardDirectories || (watchedWildcardDirectories = /* @__PURE__ */ new Map()),
103844
103804
  new Map(getEntries(wildcardDirectories)),
103845
103805
  watchWildcardDirectory
103846
103806
  );
@@ -103886,7 +103846,7 @@ function createWatchProgram(host) {
103886
103846
  updateSharedExtendedConfigFileWatcher(
103887
103847
  forProjectPath,
103888
103848
  options,
103889
- sharedExtendedConfigFileWatchers || (sharedExtendedConfigFileWatchers = new Map()),
103849
+ sharedExtendedConfigFileWatchers || (sharedExtendedConfigFileWatchers = /* @__PURE__ */ new Map()),
103890
103850
  (extendedConfigFileName, extendedConfigFilePath) => watchFile2(
103891
103851
  extendedConfigFileName,
103892
103852
  (_fileName, eventKind) => {
@@ -103934,7 +103894,7 @@ function createWatchProgram(host) {
103934
103894
  ));
103935
103895
  if ((_b = commandLine.parsedCommandLine) == null ? void 0 : _b.wildcardDirectories) {
103936
103896
  updateWatchingWildcardDirectories(
103937
- commandLine.watchedDirectories || (commandLine.watchedDirectories = new Map()),
103897
+ commandLine.watchedDirectories || (commandLine.watchedDirectories = /* @__PURE__ */ new Map()),
103938
103898
  new Map(getEntries((_c = commandLine.parsedCommandLine) == null ? void 0 : _c.wildcardDirectories)),
103939
103899
  (directory, flags) => {
103940
103900
  var _a3;
@@ -104007,7 +103967,7 @@ function getOrCreateValueFromConfigFileMap(configFileMap, resolved, createT) {
104007
103967
  return existingValue || newValue;
104008
103968
  }
104009
103969
  function getOrCreateValueMapFromConfigFileMap(configFileMap, resolved) {
104010
- return getOrCreateValueFromConfigFileMap(configFileMap, resolved, () => new Map());
103970
+ return getOrCreateValueFromConfigFileMap(configFileMap, resolved, () => /* @__PURE__ */ new Map());
104011
103971
  }
104012
103972
  function getCurrentTime(host) {
104013
103973
  return host.now ? host.now() : new Date();
@@ -104096,16 +104056,16 @@ function createSolutionBuilderState(watch, hostOrHostWithWatch, rootNames, optio
104096
104056
  baseCompilerOptions,
104097
104057
  rootNames,
104098
104058
  baseWatchOptions,
104099
- resolvedConfigFilePaths: new Map(),
104100
- configFileCache: new Map(),
104101
- projectStatus: new Map(),
104102
- extendedConfigCache: new Map(),
104103
- buildInfoCache: new Map(),
104104
- outputTimeStamps: new Map(),
104105
- builderPrograms: new Map(),
104106
- diagnostics: new Map(),
104107
- projectPendingBuild: new Map(),
104108
- projectErrorsReported: new Map(),
104059
+ resolvedConfigFilePaths: /* @__PURE__ */ new Map(),
104060
+ configFileCache: /* @__PURE__ */ new Map(),
104061
+ projectStatus: /* @__PURE__ */ new Map(),
104062
+ extendedConfigCache: /* @__PURE__ */ new Map(),
104063
+ buildInfoCache: /* @__PURE__ */ new Map(),
104064
+ outputTimeStamps: /* @__PURE__ */ new Map(),
104065
+ builderPrograms: /* @__PURE__ */ new Map(),
104066
+ diagnostics: /* @__PURE__ */ new Map(),
104067
+ projectPendingBuild: /* @__PURE__ */ new Map(),
104068
+ projectErrorsReported: /* @__PURE__ */ new Map(),
104109
104069
  compilerHost,
104110
104070
  moduleResolutionCache,
104111
104071
  typeReferenceDirectiveResolutionCache,
@@ -104117,13 +104077,13 @@ function createSolutionBuilderState(watch, hostOrHostWithWatch, rootNames, optio
104117
104077
  needsSummary: true,
104118
104078
  watchAllProjectsPending: watch,
104119
104079
  watch,
104120
- allWatchedWildcardDirectories: new Map(),
104121
- allWatchedInputFiles: new Map(),
104122
- allWatchedConfigFiles: new Map(),
104123
- allWatchedExtendedConfigFiles: new Map(),
104124
- allWatchedPackageJsonFiles: new Map(),
104125
- filesWatched: new Map(),
104126
- lastCachedPackageJsonLookups: new Map(),
104080
+ allWatchedWildcardDirectories: /* @__PURE__ */ new Map(),
104081
+ allWatchedInputFiles: /* @__PURE__ */ new Map(),
104082
+ allWatchedConfigFiles: /* @__PURE__ */ new Map(),
104083
+ allWatchedExtendedConfigFiles: /* @__PURE__ */ new Map(),
104084
+ allWatchedPackageJsonFiles: /* @__PURE__ */ new Map(),
104085
+ filesWatched: /* @__PURE__ */ new Map(),
104086
+ lastCachedPackageJsonLookups: /* @__PURE__ */ new Map(),
104127
104087
  timerToBuildInvalidatedProject: void 0,
104128
104088
  reportFileChangeDetected: false,
104129
104089
  watchFile: watchFile2,
@@ -104179,8 +104139,8 @@ function resolveProjectName(state, name) {
104179
104139
  return resolveConfigFileProjectName(resolvePath(state.currentDirectory, name));
104180
104140
  }
104181
104141
  function createBuildOrder(state, roots) {
104182
- const temporaryMarks = new Map();
104183
- const permanentMarks = new Map();
104142
+ const temporaryMarks = /* @__PURE__ */ new Map();
104143
+ const permanentMarks = /* @__PURE__ */ new Map();
104184
104144
  const circularityReportStack = [];
104185
104145
  let buildOrder;
104186
104146
  let circularDiagnostics;
@@ -104593,7 +104553,7 @@ function createBuildOrUpdateInvalidedProject(kind, state, project, projectPath,
104593
104553
  const { host, compilerHost } = state;
104594
104554
  const resultFlags = ((_c = program.hasChangedEmitSignature) == null ? void 0 : _c.call(program)) ? 0 /* None */ : 2 /* DeclarationOutputUnchanged */;
104595
104555
  const emitterDiagnostics = createDiagnosticCollection();
104596
- const emittedOutputs = new Map();
104556
+ const emittedOutputs = /* @__PURE__ */ new Map();
104597
104557
  const options = program.getCompilerOptions();
104598
104558
  const isIncremental = isIncrementalCompilation(options);
104599
104559
  let outputTimeStampMap;
@@ -104708,7 +104668,7 @@ function createBuildOrUpdateInvalidedProject(kind, state, project, projectPath,
104708
104668
  }
104709
104669
  Debug.assert(!!outputFiles.length);
104710
104670
  const emitterDiagnostics = createDiagnosticCollection();
104711
- const emittedOutputs = new Map();
104671
+ const emittedOutputs = /* @__PURE__ */ new Map();
104712
104672
  let resultFlags = 2 /* DeclarationOutputUnchanged */;
104713
104673
  const existingBuildInfo = state.buildInfoCache.get(projectPath).buildInfo || void 0;
104714
104674
  outputFiles.forEach(({ name, text, writeByteOrderMark, data }) => {
@@ -104980,7 +104940,7 @@ function getOutputTimeStampMap(state, resolvedConfigFilePath) {
104980
104940
  return void 0;
104981
104941
  let result = state.outputTimeStamps.get(resolvedConfigFilePath);
104982
104942
  if (!result)
104983
- state.outputTimeStamps.set(resolvedConfigFilePath, result = new Map());
104943
+ state.outputTimeStamps.set(resolvedConfigFilePath, result = /* @__PURE__ */ new Map());
104984
104944
  return result;
104985
104945
  }
104986
104946
  function setBuildInfo(state, buildInfo, resolvedConfigPath, options, resultFlags) {
@@ -105278,7 +105238,7 @@ function updateOutputTimestampsWorker(state, proj, projectPath, verboseMessage,
105278
105238
  const { host } = state;
105279
105239
  const outputs = getAllProjectOutputs(proj, !host.useCaseSensitiveFileNames());
105280
105240
  const outputTimeStampMap = getOutputTimeStampMap(state, projectPath);
105281
- const modifiedOutputs = outputTimeStampMap ? new Set() : void 0;
105241
+ const modifiedOutputs = outputTimeStampMap ? /* @__PURE__ */ new Set() : void 0;
105282
105242
  if (!skipOutputs || outputs.length !== skipOutputs.size) {
105283
105243
  let reportVerbose = !!state.options.verbose;
105284
105244
  for (const file of outputs) {
@@ -105867,7 +105827,7 @@ function countLines(program) {
105867
105827
  return counts2;
105868
105828
  }
105869
105829
  function getCountsMap() {
105870
- const counts2 = new Map();
105830
+ const counts2 = /* @__PURE__ */ new Map();
105871
105831
  counts2.set("Library", 0);
105872
105832
  counts2.set("Definitions", 0);
105873
105833
  counts2.set("TypeScript", 0);
@@ -106114,7 +106074,7 @@ function generateSectionOptionsOutput(sys2, sectionName, options, subCategory, b
106114
106074
  }
106115
106075
  return res;
106116
106076
  }
106117
- const categoryMap = new Map();
106077
+ const categoryMap = /* @__PURE__ */ new Map();
106118
106078
  for (const option of options) {
106119
106079
  if (!option.category) {
106120
106080
  continue;
@@ -106272,7 +106232,7 @@ function executeCommandLineWorker(sys2, cb, commandLine) {
106272
106232
  (fileName) => getNormalizedAbsolutePath(fileName, currentDirectory)
106273
106233
  );
106274
106234
  if (configFileName) {
106275
- const extendedConfigCache = new Map();
106235
+ const extendedConfigCache = /* @__PURE__ */ new Map();
106276
106236
  const configParseResult = parseConfigFileWithSystem(configFileName, commandLineOptions, extendedConfigCache, commandLine.watchOptions, sys2, reportDiagnostic);
106277
106237
  if (commandLineOptions.showConfig) {
106278
106238
  if (configParseResult.errors.length !== 0) {
@@ -106603,7 +106563,7 @@ function createSolutionPerfomrance() {
106603
106563
  else
106604
106564
  existing.value += s.value;
106605
106565
  } else {
106606
- (statistics != null ? statistics : statistics = new Map()).set(s.name, s);
106566
+ (statistics != null ? statistics : statistics = /* @__PURE__ */ new Map()).set(s.name, s);
106607
106567
  }
106608
106568
  }
106609
106569
  function forEachAggreateStatistics(cb) {