typescript 5.1.0-dev.20230414 → 5.1.0-dev.20230416

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.
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
54
54
 
55
55
  // src/compiler/corePublic.ts
56
56
  var versionMajorMinor = "5.1";
57
- var version = `${versionMajorMinor}.0-dev.20230414`;
57
+ var version = `${versionMajorMinor}.0-dev.20230416`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
@@ -94,7 +94,7 @@ function every(array, callback) {
94
94
  function find(array, predicate, startIndex) {
95
95
  if (array === void 0)
96
96
  return void 0;
97
- for (let i = startIndex != null ? startIndex : 0; i < array.length; i++) {
97
+ for (let i = startIndex ?? 0; i < array.length; i++) {
98
98
  const value = array[i];
99
99
  if (predicate(value, i)) {
100
100
  return value;
@@ -105,7 +105,7 @@ function find(array, predicate, startIndex) {
105
105
  function findIndex(array, predicate, startIndex) {
106
106
  if (array === void 0)
107
107
  return -1;
108
- for (let i = startIndex != null ? startIndex : 0; i < array.length; i++) {
108
+ for (let i = startIndex ?? 0; i < array.length; i++) {
109
109
  if (predicate(array[i], i)) {
110
110
  return i;
111
111
  }
@@ -1375,8 +1375,8 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`,
1375
1375
  return formatSignatureFlags(this.flags);
1376
1376
  } },
1377
1377
  __debugSignatureToString: { value() {
1378
- var _a2;
1379
- return (_a2 = this.checker) == null ? void 0 : _a2.signatureToString(this);
1378
+ var _a;
1379
+ return (_a = this.checker) == null ? void 0 : _a.signatureToString(this);
1380
1380
  } }
1381
1381
  });
1382
1382
  const nodeConstructors = [
@@ -1446,11 +1446,11 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`,
1446
1446
  Debug2.formatVariance = formatVariance;
1447
1447
  class DebugTypeMapper {
1448
1448
  __debugToString() {
1449
- var _a2;
1449
+ var _a;
1450
1450
  type(this);
1451
1451
  switch (this.kind) {
1452
1452
  case 3 /* Function */:
1453
- return ((_a2 = this.debugInfo) == null ? void 0 : _a2.call(this)) || "(function mapper)";
1453
+ return ((_a = this.debugInfo) == null ? void 0 : _a.call(this)) || "(function mapper)";
1454
1454
  case 0 /* Simple */:
1455
1455
  return `${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;
1456
1456
  case 1 /* Array */:
@@ -2168,7 +2168,7 @@ function tryGetNodePerformanceHooks() {
2168
2168
  PerformanceObserver: PerformanceObserver2
2169
2169
  };
2170
2170
  }
2171
- } catch (e) {
2171
+ } catch {
2172
2172
  }
2173
2173
  }
2174
2174
  }
@@ -2178,9 +2178,8 @@ var timestamp = nativePerformance ? () => nativePerformance.now() : Date.now ? D
2178
2178
 
2179
2179
  // src/compiler/perfLogger.ts
2180
2180
  var etwModule;
2181
- var _a;
2182
2181
  try {
2183
- const etwModulePath = (_a = process.env.TS_ETW_MODULE_PATH) != null ? _a : "./node_modules/@microsoft/typescript-etw";
2182
+ const etwModulePath = process.env.TS_ETW_MODULE_PATH ?? "./node_modules/@microsoft/typescript-etw";
2184
2183
  etwModule = require(etwModulePath);
2185
2184
  } catch (e) {
2186
2185
  etwModule = void 0;
@@ -2195,9 +2194,8 @@ var marks = /* @__PURE__ */ new Map();
2195
2194
  var counts = /* @__PURE__ */ new Map();
2196
2195
  var durations = /* @__PURE__ */ new Map();
2197
2196
  function mark(markName) {
2198
- var _a2;
2199
2197
  if (enabled) {
2200
- const count = (_a2 = counts.get(markName)) != null ? _a2 : 0;
2198
+ const count = counts.get(markName) ?? 0;
2201
2199
  counts.set(markName, count + 1);
2202
2200
  marks.set(markName, timestamp());
2203
2201
  performanceImpl == null ? void 0 : performanceImpl.mark(markName);
@@ -2207,10 +2205,9 @@ function mark(markName) {
2207
2205
  }
2208
2206
  }
2209
2207
  function measure(measureName, startMarkName, endMarkName) {
2210
- var _a2, _b;
2211
2208
  if (enabled) {
2212
- const end = (_a2 = endMarkName !== void 0 ? marks.get(endMarkName) : void 0) != null ? _a2 : timestamp();
2213
- const start = (_b = startMarkName !== void 0 ? marks.get(startMarkName) : void 0) != null ? _b : timeorigin;
2209
+ const end = (endMarkName !== void 0 ? marks.get(endMarkName) : void 0) ?? timestamp();
2210
+ const start = (startMarkName !== void 0 ? marks.get(startMarkName) : void 0) ?? timeorigin;
2214
2211
  const previousDuration = durations.get(measureName) || 0;
2215
2212
  durations.set(measureName, previousDuration + (end - start));
2216
2213
  performanceImpl == null ? void 0 : performanceImpl.measure(measureName, startMarkName, endMarkName);
@@ -2371,7 +2368,7 @@ var tracingEnabled;
2371
2368
  }
2372
2369
  }
2373
2370
  function dumpTypes(types) {
2374
- var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
2371
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
2375
2372
  mark("beginDumpTypes");
2376
2373
  const typesPath = legend[legend.length - 1].typesPath;
2377
2374
  const typesFd = fs2.openSync(typesPath, "w");
@@ -2381,12 +2378,12 @@ var tracingEnabled;
2381
2378
  for (let i = 0; i < numTypes; i++) {
2382
2379
  const type = types[i];
2383
2380
  const objectFlags = type.objectFlags;
2384
- const symbol = (_a2 = type.aliasSymbol) != null ? _a2 : type.symbol;
2381
+ const symbol = type.aliasSymbol ?? type.symbol;
2385
2382
  let display;
2386
2383
  if (objectFlags & 16 /* Anonymous */ | type.flags & 2944 /* Literal */) {
2387
2384
  try {
2388
- display = (_b = type.checker) == null ? void 0 : _b.typeToString(type);
2389
- } catch (e) {
2385
+ display = (_a = type.checker) == null ? void 0 : _a.typeToString(type);
2386
+ } catch {
2390
2387
  display = void 0;
2391
2388
  }
2392
2389
  }
@@ -2394,16 +2391,16 @@ var tracingEnabled;
2394
2391
  if (type.flags & 8388608 /* IndexedAccess */) {
2395
2392
  const indexedAccessType = type;
2396
2393
  indexedAccessProperties = {
2397
- indexedAccessObjectType: (_c = indexedAccessType.objectType) == null ? void 0 : _c.id,
2398
- indexedAccessIndexType: (_d = indexedAccessType.indexType) == null ? void 0 : _d.id
2394
+ indexedAccessObjectType: (_b = indexedAccessType.objectType) == null ? void 0 : _b.id,
2395
+ indexedAccessIndexType: (_c = indexedAccessType.indexType) == null ? void 0 : _c.id
2399
2396
  };
2400
2397
  }
2401
2398
  let referenceProperties = {};
2402
2399
  if (objectFlags & 4 /* Reference */) {
2403
2400
  const referenceType = type;
2404
2401
  referenceProperties = {
2405
- instantiatedType: (_e = referenceType.target) == null ? void 0 : _e.id,
2406
- typeArguments: (_f = referenceType.resolvedTypeArguments) == null ? void 0 : _f.map((t) => t.id),
2402
+ instantiatedType: (_d = referenceType.target) == null ? void 0 : _d.id,
2403
+ typeArguments: (_e = referenceType.resolvedTypeArguments) == null ? void 0 : _e.map((t) => t.id),
2407
2404
  referenceLocation: getLocation(referenceType.node)
2408
2405
  };
2409
2406
  }
@@ -2411,27 +2408,27 @@ var tracingEnabled;
2411
2408
  if (type.flags & 16777216 /* Conditional */) {
2412
2409
  const conditionalType = type;
2413
2410
  conditionalProperties = {
2414
- conditionalCheckType: (_g = conditionalType.checkType) == null ? void 0 : _g.id,
2415
- conditionalExtendsType: (_h = conditionalType.extendsType) == null ? void 0 : _h.id,
2416
- conditionalTrueType: (_j = (_i = conditionalType.resolvedTrueType) == null ? void 0 : _i.id) != null ? _j : -1,
2417
- conditionalFalseType: (_l = (_k = conditionalType.resolvedFalseType) == null ? void 0 : _k.id) != null ? _l : -1
2411
+ conditionalCheckType: (_f = conditionalType.checkType) == null ? void 0 : _f.id,
2412
+ conditionalExtendsType: (_g = conditionalType.extendsType) == null ? void 0 : _g.id,
2413
+ conditionalTrueType: ((_h = conditionalType.resolvedTrueType) == null ? void 0 : _h.id) ?? -1,
2414
+ conditionalFalseType: ((_i = conditionalType.resolvedFalseType) == null ? void 0 : _i.id) ?? -1
2418
2415
  };
2419
2416
  }
2420
2417
  let substitutionProperties = {};
2421
2418
  if (type.flags & 33554432 /* Substitution */) {
2422
2419
  const substitutionType = type;
2423
2420
  substitutionProperties = {
2424
- substitutionBaseType: (_m = substitutionType.baseType) == null ? void 0 : _m.id,
2425
- constraintType: (_n = substitutionType.constraint) == null ? void 0 : _n.id
2421
+ substitutionBaseType: (_j = substitutionType.baseType) == null ? void 0 : _j.id,
2422
+ constraintType: (_k = substitutionType.constraint) == null ? void 0 : _k.id
2426
2423
  };
2427
2424
  }
2428
2425
  let reverseMappedProperties = {};
2429
2426
  if (objectFlags & 1024 /* ReverseMapped */) {
2430
2427
  const reverseMappedType = type;
2431
2428
  reverseMappedProperties = {
2432
- reverseMappedSourceType: (_o = reverseMappedType.source) == null ? void 0 : _o.id,
2433
- reverseMappedMappedType: (_p = reverseMappedType.mappedType) == null ? void 0 : _p.id,
2434
- reverseMappedConstraintType: (_q = reverseMappedType.constraintType) == null ? void 0 : _q.id
2429
+ reverseMappedSourceType: (_l = reverseMappedType.source) == null ? void 0 : _l.id,
2430
+ reverseMappedMappedType: (_m = reverseMappedType.mappedType) == null ? void 0 : _m.id,
2431
+ reverseMappedConstraintType: (_n = reverseMappedType.constraintType) == null ? void 0 : _n.id
2435
2432
  };
2436
2433
  }
2437
2434
  let evolvingArrayProperties = {};
@@ -2439,7 +2436,7 @@ var tracingEnabled;
2439
2436
  const evolvingArrayType = type;
2440
2437
  evolvingArrayProperties = {
2441
2438
  evolvingArrayElementType: evolvingArrayType.elementType.id,
2442
- evolvingArrayFinalType: (_r = evolvingArrayType.finalArrayType) == null ? void 0 : _r.id
2439
+ evolvingArrayFinalType: (_o = evolvingArrayType.finalArrayType) == null ? void 0 : _o.id
2443
2440
  };
2444
2441
  }
2445
2442
  let recursionToken;
@@ -2457,10 +2454,10 @@ var tracingEnabled;
2457
2454
  symbolName: (symbol == null ? void 0 : symbol.escapedName) && unescapeLeadingUnderscores(symbol.escapedName),
2458
2455
  recursionId: recursionToken,
2459
2456
  isTuple: objectFlags & 8 /* Tuple */ ? true : void 0,
2460
- unionTypes: type.flags & 1048576 /* Union */ ? (_s = type.types) == null ? void 0 : _s.map((t) => t.id) : void 0,
2457
+ unionTypes: type.flags & 1048576 /* Union */ ? (_p = type.types) == null ? void 0 : _p.map((t) => t.id) : void 0,
2461
2458
  intersectionTypes: type.flags & 2097152 /* Intersection */ ? type.types.map((t) => t.id) : void 0,
2462
- aliasTypeArguments: (_t = type.aliasTypeArguments) == null ? void 0 : _t.map((t) => t.id),
2463
- keyofType: type.flags & 4194304 /* Index */ ? (_u = type.type) == null ? void 0 : _u.id : void 0,
2459
+ aliasTypeArguments: (_q = type.aliasTypeArguments) == null ? void 0 : _q.map((t) => t.id),
2460
+ keyofType: type.flags & 4194304 /* Index */ ? (_r = type.type) == null ? void 0 : _r.id : void 0,
2464
2461
  ...indexedAccessProperties,
2465
2462
  ...referenceProperties,
2466
2463
  ...conditionalProperties,
@@ -2468,7 +2465,7 @@ var tracingEnabled;
2468
2465
  ...reverseMappedProperties,
2469
2466
  ...evolvingArrayProperties,
2470
2467
  destructuringPattern: getLocation(type.pattern),
2471
- firstDeclaration: getLocation((_v = symbol == null ? void 0 : symbol.declarations) == null ? void 0 : _v[0]),
2468
+ firstDeclaration: getLocation((_s = symbol == null ? void 0 : symbol.declarations) == null ? void 0 : _s[0]),
2472
2469
  flags: Debug.formatTypeFlags(type.flags).split("|"),
2473
2470
  display
2474
2471
  };
@@ -2789,77 +2786,78 @@ var SyntaxKind = /* @__PURE__ */ ((SyntaxKind4) => {
2789
2786
  SyntaxKind4[SyntaxKind4["JsxAttributes"] = 291] = "JsxAttributes";
2790
2787
  SyntaxKind4[SyntaxKind4["JsxSpreadAttribute"] = 292] = "JsxSpreadAttribute";
2791
2788
  SyntaxKind4[SyntaxKind4["JsxExpression"] = 293] = "JsxExpression";
2792
- SyntaxKind4[SyntaxKind4["CaseClause"] = 294] = "CaseClause";
2793
- SyntaxKind4[SyntaxKind4["DefaultClause"] = 295] = "DefaultClause";
2794
- SyntaxKind4[SyntaxKind4["HeritageClause"] = 296] = "HeritageClause";
2795
- SyntaxKind4[SyntaxKind4["CatchClause"] = 297] = "CatchClause";
2796
- SyntaxKind4[SyntaxKind4["AssertClause"] = 298] = "AssertClause";
2797
- SyntaxKind4[SyntaxKind4["AssertEntry"] = 299] = "AssertEntry";
2798
- SyntaxKind4[SyntaxKind4["ImportTypeAssertionContainer"] = 300] = "ImportTypeAssertionContainer";
2799
- SyntaxKind4[SyntaxKind4["PropertyAssignment"] = 301] = "PropertyAssignment";
2800
- SyntaxKind4[SyntaxKind4["ShorthandPropertyAssignment"] = 302] = "ShorthandPropertyAssignment";
2801
- SyntaxKind4[SyntaxKind4["SpreadAssignment"] = 303] = "SpreadAssignment";
2802
- SyntaxKind4[SyntaxKind4["EnumMember"] = 304] = "EnumMember";
2803
- SyntaxKind4[SyntaxKind4["UnparsedPrologue"] = 305] = "UnparsedPrologue";
2804
- SyntaxKind4[SyntaxKind4["UnparsedPrepend"] = 306] = "UnparsedPrepend";
2805
- SyntaxKind4[SyntaxKind4["UnparsedText"] = 307] = "UnparsedText";
2806
- SyntaxKind4[SyntaxKind4["UnparsedInternalText"] = 308] = "UnparsedInternalText";
2807
- SyntaxKind4[SyntaxKind4["UnparsedSyntheticReference"] = 309] = "UnparsedSyntheticReference";
2808
- SyntaxKind4[SyntaxKind4["SourceFile"] = 310] = "SourceFile";
2809
- SyntaxKind4[SyntaxKind4["Bundle"] = 311] = "Bundle";
2810
- SyntaxKind4[SyntaxKind4["UnparsedSource"] = 312] = "UnparsedSource";
2811
- SyntaxKind4[SyntaxKind4["InputFiles"] = 313] = "InputFiles";
2812
- SyntaxKind4[SyntaxKind4["JSDocTypeExpression"] = 314] = "JSDocTypeExpression";
2813
- SyntaxKind4[SyntaxKind4["JSDocNameReference"] = 315] = "JSDocNameReference";
2814
- SyntaxKind4[SyntaxKind4["JSDocMemberName"] = 316] = "JSDocMemberName";
2815
- SyntaxKind4[SyntaxKind4["JSDocAllType"] = 317] = "JSDocAllType";
2816
- SyntaxKind4[SyntaxKind4["JSDocUnknownType"] = 318] = "JSDocUnknownType";
2817
- SyntaxKind4[SyntaxKind4["JSDocNullableType"] = 319] = "JSDocNullableType";
2818
- SyntaxKind4[SyntaxKind4["JSDocNonNullableType"] = 320] = "JSDocNonNullableType";
2819
- SyntaxKind4[SyntaxKind4["JSDocOptionalType"] = 321] = "JSDocOptionalType";
2820
- SyntaxKind4[SyntaxKind4["JSDocFunctionType"] = 322] = "JSDocFunctionType";
2821
- SyntaxKind4[SyntaxKind4["JSDocVariadicType"] = 323] = "JSDocVariadicType";
2822
- SyntaxKind4[SyntaxKind4["JSDocNamepathType"] = 324] = "JSDocNamepathType";
2823
- SyntaxKind4[SyntaxKind4["JSDoc"] = 325] = "JSDoc";
2824
- SyntaxKind4[SyntaxKind4["JSDocComment"] = 325 /* JSDoc */] = "JSDocComment";
2825
- SyntaxKind4[SyntaxKind4["JSDocText"] = 326] = "JSDocText";
2826
- SyntaxKind4[SyntaxKind4["JSDocTypeLiteral"] = 327] = "JSDocTypeLiteral";
2827
- SyntaxKind4[SyntaxKind4["JSDocSignature"] = 328] = "JSDocSignature";
2828
- SyntaxKind4[SyntaxKind4["JSDocLink"] = 329] = "JSDocLink";
2829
- SyntaxKind4[SyntaxKind4["JSDocLinkCode"] = 330] = "JSDocLinkCode";
2830
- SyntaxKind4[SyntaxKind4["JSDocLinkPlain"] = 331] = "JSDocLinkPlain";
2831
- SyntaxKind4[SyntaxKind4["JSDocTag"] = 332] = "JSDocTag";
2832
- SyntaxKind4[SyntaxKind4["JSDocAugmentsTag"] = 333] = "JSDocAugmentsTag";
2833
- SyntaxKind4[SyntaxKind4["JSDocImplementsTag"] = 334] = "JSDocImplementsTag";
2834
- SyntaxKind4[SyntaxKind4["JSDocAuthorTag"] = 335] = "JSDocAuthorTag";
2835
- SyntaxKind4[SyntaxKind4["JSDocDeprecatedTag"] = 336] = "JSDocDeprecatedTag";
2836
- SyntaxKind4[SyntaxKind4["JSDocClassTag"] = 337] = "JSDocClassTag";
2837
- SyntaxKind4[SyntaxKind4["JSDocPublicTag"] = 338] = "JSDocPublicTag";
2838
- SyntaxKind4[SyntaxKind4["JSDocPrivateTag"] = 339] = "JSDocPrivateTag";
2839
- SyntaxKind4[SyntaxKind4["JSDocProtectedTag"] = 340] = "JSDocProtectedTag";
2840
- SyntaxKind4[SyntaxKind4["JSDocReadonlyTag"] = 341] = "JSDocReadonlyTag";
2841
- SyntaxKind4[SyntaxKind4["JSDocOverrideTag"] = 342] = "JSDocOverrideTag";
2842
- SyntaxKind4[SyntaxKind4["JSDocCallbackTag"] = 343] = "JSDocCallbackTag";
2843
- SyntaxKind4[SyntaxKind4["JSDocOverloadTag"] = 344] = "JSDocOverloadTag";
2844
- SyntaxKind4[SyntaxKind4["JSDocEnumTag"] = 345] = "JSDocEnumTag";
2845
- SyntaxKind4[SyntaxKind4["JSDocParameterTag"] = 346] = "JSDocParameterTag";
2846
- SyntaxKind4[SyntaxKind4["JSDocReturnTag"] = 347] = "JSDocReturnTag";
2847
- SyntaxKind4[SyntaxKind4["JSDocThisTag"] = 348] = "JSDocThisTag";
2848
- SyntaxKind4[SyntaxKind4["JSDocTypeTag"] = 349] = "JSDocTypeTag";
2849
- SyntaxKind4[SyntaxKind4["JSDocTemplateTag"] = 350] = "JSDocTemplateTag";
2850
- SyntaxKind4[SyntaxKind4["JSDocTypedefTag"] = 351] = "JSDocTypedefTag";
2851
- SyntaxKind4[SyntaxKind4["JSDocSeeTag"] = 352] = "JSDocSeeTag";
2852
- SyntaxKind4[SyntaxKind4["JSDocPropertyTag"] = 353] = "JSDocPropertyTag";
2853
- SyntaxKind4[SyntaxKind4["JSDocThrowsTag"] = 354] = "JSDocThrowsTag";
2854
- SyntaxKind4[SyntaxKind4["JSDocSatisfiesTag"] = 355] = "JSDocSatisfiesTag";
2855
- SyntaxKind4[SyntaxKind4["SyntaxList"] = 356] = "SyntaxList";
2856
- SyntaxKind4[SyntaxKind4["NotEmittedStatement"] = 357] = "NotEmittedStatement";
2857
- SyntaxKind4[SyntaxKind4["PartiallyEmittedExpression"] = 358] = "PartiallyEmittedExpression";
2858
- SyntaxKind4[SyntaxKind4["CommaListExpression"] = 359] = "CommaListExpression";
2859
- SyntaxKind4[SyntaxKind4["MergeDeclarationMarker"] = 360] = "MergeDeclarationMarker";
2860
- SyntaxKind4[SyntaxKind4["EndOfDeclarationMarker"] = 361] = "EndOfDeclarationMarker";
2861
- SyntaxKind4[SyntaxKind4["SyntheticReferenceExpression"] = 362] = "SyntheticReferenceExpression";
2862
- SyntaxKind4[SyntaxKind4["Count"] = 363] = "Count";
2789
+ SyntaxKind4[SyntaxKind4["JsxNamespacedName"] = 294] = "JsxNamespacedName";
2790
+ SyntaxKind4[SyntaxKind4["CaseClause"] = 295] = "CaseClause";
2791
+ SyntaxKind4[SyntaxKind4["DefaultClause"] = 296] = "DefaultClause";
2792
+ SyntaxKind4[SyntaxKind4["HeritageClause"] = 297] = "HeritageClause";
2793
+ SyntaxKind4[SyntaxKind4["CatchClause"] = 298] = "CatchClause";
2794
+ SyntaxKind4[SyntaxKind4["AssertClause"] = 299] = "AssertClause";
2795
+ SyntaxKind4[SyntaxKind4["AssertEntry"] = 300] = "AssertEntry";
2796
+ SyntaxKind4[SyntaxKind4["ImportTypeAssertionContainer"] = 301] = "ImportTypeAssertionContainer";
2797
+ SyntaxKind4[SyntaxKind4["PropertyAssignment"] = 302] = "PropertyAssignment";
2798
+ SyntaxKind4[SyntaxKind4["ShorthandPropertyAssignment"] = 303] = "ShorthandPropertyAssignment";
2799
+ SyntaxKind4[SyntaxKind4["SpreadAssignment"] = 304] = "SpreadAssignment";
2800
+ SyntaxKind4[SyntaxKind4["EnumMember"] = 305] = "EnumMember";
2801
+ SyntaxKind4[SyntaxKind4["UnparsedPrologue"] = 306] = "UnparsedPrologue";
2802
+ SyntaxKind4[SyntaxKind4["UnparsedPrepend"] = 307] = "UnparsedPrepend";
2803
+ SyntaxKind4[SyntaxKind4["UnparsedText"] = 308] = "UnparsedText";
2804
+ SyntaxKind4[SyntaxKind4["UnparsedInternalText"] = 309] = "UnparsedInternalText";
2805
+ SyntaxKind4[SyntaxKind4["UnparsedSyntheticReference"] = 310] = "UnparsedSyntheticReference";
2806
+ SyntaxKind4[SyntaxKind4["SourceFile"] = 311] = "SourceFile";
2807
+ SyntaxKind4[SyntaxKind4["Bundle"] = 312] = "Bundle";
2808
+ SyntaxKind4[SyntaxKind4["UnparsedSource"] = 313] = "UnparsedSource";
2809
+ SyntaxKind4[SyntaxKind4["InputFiles"] = 314] = "InputFiles";
2810
+ SyntaxKind4[SyntaxKind4["JSDocTypeExpression"] = 315] = "JSDocTypeExpression";
2811
+ SyntaxKind4[SyntaxKind4["JSDocNameReference"] = 316] = "JSDocNameReference";
2812
+ SyntaxKind4[SyntaxKind4["JSDocMemberName"] = 317] = "JSDocMemberName";
2813
+ SyntaxKind4[SyntaxKind4["JSDocAllType"] = 318] = "JSDocAllType";
2814
+ SyntaxKind4[SyntaxKind4["JSDocUnknownType"] = 319] = "JSDocUnknownType";
2815
+ SyntaxKind4[SyntaxKind4["JSDocNullableType"] = 320] = "JSDocNullableType";
2816
+ SyntaxKind4[SyntaxKind4["JSDocNonNullableType"] = 321] = "JSDocNonNullableType";
2817
+ SyntaxKind4[SyntaxKind4["JSDocOptionalType"] = 322] = "JSDocOptionalType";
2818
+ SyntaxKind4[SyntaxKind4["JSDocFunctionType"] = 323] = "JSDocFunctionType";
2819
+ SyntaxKind4[SyntaxKind4["JSDocVariadicType"] = 324] = "JSDocVariadicType";
2820
+ SyntaxKind4[SyntaxKind4["JSDocNamepathType"] = 325] = "JSDocNamepathType";
2821
+ SyntaxKind4[SyntaxKind4["JSDoc"] = 326] = "JSDoc";
2822
+ SyntaxKind4[SyntaxKind4["JSDocComment"] = 326 /* JSDoc */] = "JSDocComment";
2823
+ SyntaxKind4[SyntaxKind4["JSDocText"] = 327] = "JSDocText";
2824
+ SyntaxKind4[SyntaxKind4["JSDocTypeLiteral"] = 328] = "JSDocTypeLiteral";
2825
+ SyntaxKind4[SyntaxKind4["JSDocSignature"] = 329] = "JSDocSignature";
2826
+ SyntaxKind4[SyntaxKind4["JSDocLink"] = 330] = "JSDocLink";
2827
+ SyntaxKind4[SyntaxKind4["JSDocLinkCode"] = 331] = "JSDocLinkCode";
2828
+ SyntaxKind4[SyntaxKind4["JSDocLinkPlain"] = 332] = "JSDocLinkPlain";
2829
+ SyntaxKind4[SyntaxKind4["JSDocTag"] = 333] = "JSDocTag";
2830
+ SyntaxKind4[SyntaxKind4["JSDocAugmentsTag"] = 334] = "JSDocAugmentsTag";
2831
+ SyntaxKind4[SyntaxKind4["JSDocImplementsTag"] = 335] = "JSDocImplementsTag";
2832
+ SyntaxKind4[SyntaxKind4["JSDocAuthorTag"] = 336] = "JSDocAuthorTag";
2833
+ SyntaxKind4[SyntaxKind4["JSDocDeprecatedTag"] = 337] = "JSDocDeprecatedTag";
2834
+ SyntaxKind4[SyntaxKind4["JSDocClassTag"] = 338] = "JSDocClassTag";
2835
+ SyntaxKind4[SyntaxKind4["JSDocPublicTag"] = 339] = "JSDocPublicTag";
2836
+ SyntaxKind4[SyntaxKind4["JSDocPrivateTag"] = 340] = "JSDocPrivateTag";
2837
+ SyntaxKind4[SyntaxKind4["JSDocProtectedTag"] = 341] = "JSDocProtectedTag";
2838
+ SyntaxKind4[SyntaxKind4["JSDocReadonlyTag"] = 342] = "JSDocReadonlyTag";
2839
+ SyntaxKind4[SyntaxKind4["JSDocOverrideTag"] = 343] = "JSDocOverrideTag";
2840
+ SyntaxKind4[SyntaxKind4["JSDocCallbackTag"] = 344] = "JSDocCallbackTag";
2841
+ SyntaxKind4[SyntaxKind4["JSDocOverloadTag"] = 345] = "JSDocOverloadTag";
2842
+ SyntaxKind4[SyntaxKind4["JSDocEnumTag"] = 346] = "JSDocEnumTag";
2843
+ SyntaxKind4[SyntaxKind4["JSDocParameterTag"] = 347] = "JSDocParameterTag";
2844
+ SyntaxKind4[SyntaxKind4["JSDocReturnTag"] = 348] = "JSDocReturnTag";
2845
+ SyntaxKind4[SyntaxKind4["JSDocThisTag"] = 349] = "JSDocThisTag";
2846
+ SyntaxKind4[SyntaxKind4["JSDocTypeTag"] = 350] = "JSDocTypeTag";
2847
+ SyntaxKind4[SyntaxKind4["JSDocTemplateTag"] = 351] = "JSDocTemplateTag";
2848
+ SyntaxKind4[SyntaxKind4["JSDocTypedefTag"] = 352] = "JSDocTypedefTag";
2849
+ SyntaxKind4[SyntaxKind4["JSDocSeeTag"] = 353] = "JSDocSeeTag";
2850
+ SyntaxKind4[SyntaxKind4["JSDocPropertyTag"] = 354] = "JSDocPropertyTag";
2851
+ SyntaxKind4[SyntaxKind4["JSDocThrowsTag"] = 355] = "JSDocThrowsTag";
2852
+ SyntaxKind4[SyntaxKind4["JSDocSatisfiesTag"] = 356] = "JSDocSatisfiesTag";
2853
+ SyntaxKind4[SyntaxKind4["SyntaxList"] = 357] = "SyntaxList";
2854
+ SyntaxKind4[SyntaxKind4["NotEmittedStatement"] = 358] = "NotEmittedStatement";
2855
+ SyntaxKind4[SyntaxKind4["PartiallyEmittedExpression"] = 359] = "PartiallyEmittedExpression";
2856
+ SyntaxKind4[SyntaxKind4["CommaListExpression"] = 360] = "CommaListExpression";
2857
+ SyntaxKind4[SyntaxKind4["MergeDeclarationMarker"] = 361] = "MergeDeclarationMarker";
2858
+ SyntaxKind4[SyntaxKind4["EndOfDeclarationMarker"] = 362] = "EndOfDeclarationMarker";
2859
+ SyntaxKind4[SyntaxKind4["SyntheticReferenceExpression"] = 363] = "SyntheticReferenceExpression";
2860
+ SyntaxKind4[SyntaxKind4["Count"] = 364] = "Count";
2863
2861
  SyntaxKind4[SyntaxKind4["FirstAssignment"] = 64 /* EqualsToken */] = "FirstAssignment";
2864
2862
  SyntaxKind4[SyntaxKind4["LastAssignment"] = 79 /* CaretEqualsToken */] = "LastAssignment";
2865
2863
  SyntaxKind4[SyntaxKind4["FirstCompoundAssignment"] = 65 /* PlusEqualsToken */] = "FirstCompoundAssignment";
@@ -2887,10 +2885,10 @@ var SyntaxKind = /* @__PURE__ */ ((SyntaxKind4) => {
2887
2885
  SyntaxKind4[SyntaxKind4["FirstStatement"] = 242 /* VariableStatement */] = "FirstStatement";
2888
2886
  SyntaxKind4[SyntaxKind4["LastStatement"] = 258 /* DebuggerStatement */] = "LastStatement";
2889
2887
  SyntaxKind4[SyntaxKind4["FirstNode"] = 165 /* QualifiedName */] = "FirstNode";
2890
- SyntaxKind4[SyntaxKind4["FirstJSDocNode"] = 314 /* JSDocTypeExpression */] = "FirstJSDocNode";
2891
- SyntaxKind4[SyntaxKind4["LastJSDocNode"] = 355 /* JSDocSatisfiesTag */] = "LastJSDocNode";
2892
- SyntaxKind4[SyntaxKind4["FirstJSDocTagNode"] = 332 /* JSDocTag */] = "FirstJSDocTagNode";
2893
- SyntaxKind4[SyntaxKind4["LastJSDocTagNode"] = 355 /* JSDocSatisfiesTag */] = "LastJSDocTagNode";
2888
+ SyntaxKind4[SyntaxKind4["FirstJSDocNode"] = 315 /* JSDocTypeExpression */] = "FirstJSDocNode";
2889
+ SyntaxKind4[SyntaxKind4["LastJSDocNode"] = 356 /* JSDocSatisfiesTag */] = "LastJSDocNode";
2890
+ SyntaxKind4[SyntaxKind4["FirstJSDocTagNode"] = 333 /* JSDocTag */] = "FirstJSDocTagNode";
2891
+ SyntaxKind4[SyntaxKind4["LastJSDocTagNode"] = 356 /* JSDocSatisfiesTag */] = "LastJSDocTagNode";
2894
2892
  SyntaxKind4[SyntaxKind4["FirstContextualKeyword"] = 128 /* AbstractKeyword */] = "FirstContextualKeyword";
2895
2893
  SyntaxKind4[SyntaxKind4["LastContextualKeyword"] = 164 /* OfKeyword */] = "LastContextualKeyword";
2896
2894
  return SyntaxKind4;
@@ -3183,6 +3181,7 @@ var SignatureFlags = /* @__PURE__ */ ((SignatureFlags4) => {
3183
3181
  SignatureFlags4[SignatureFlags4["IsInnerCallChain"] = 8] = "IsInnerCallChain";
3184
3182
  SignatureFlags4[SignatureFlags4["IsOuterCallChain"] = 16] = "IsOuterCallChain";
3185
3183
  SignatureFlags4[SignatureFlags4["IsUntypedSignatureInJSFile"] = 32] = "IsUntypedSignatureInJSFile";
3184
+ SignatureFlags4[SignatureFlags4["IsNonInferrable"] = 64] = "IsNonInferrable";
3186
3185
  SignatureFlags4[SignatureFlags4["PropagatingFlags"] = 39] = "PropagatingFlags";
3187
3186
  SignatureFlags4[SignatureFlags4["CallChainFlags"] = 24] = "CallChainFlags";
3188
3187
  return SignatureFlags4;
@@ -3656,8 +3655,8 @@ function createSingleWatcherPerName(cache, useCaseSensitiveFileNames, name, call
3656
3655
  watcher: createWatcher(
3657
3656
  // Cant infer types correctly so lets satisfy checker
3658
3657
  (param1, param2, param3) => {
3659
- var _a2;
3660
- return (_a2 = cache.get(path2)) == null ? void 0 : _a2.callbacks.slice().forEach((cb) => cb(param1, param2, param3));
3658
+ var _a;
3659
+ return (_a = cache.get(path2)) == null ? void 0 : _a.callbacks.slice().forEach((cb) => cb(param1, param2, param3));
3661
3660
  }
3662
3661
  ),
3663
3662
  callbacks: [callback]
@@ -4253,7 +4252,7 @@ var sys = (() => {
4253
4252
  let _crypto;
4254
4253
  try {
4255
4254
  _crypto = require("crypto");
4256
- } catch (e) {
4255
+ } catch {
4257
4256
  _crypto = void 0;
4258
4257
  }
4259
4258
  let activeSession;
@@ -4343,7 +4342,7 @@ var sys = (() => {
4343
4342
  if (stat == null ? void 0 : stat.isFile()) {
4344
4343
  return stat.size;
4345
4344
  }
4346
- } catch (e) {
4345
+ } catch {
4347
4346
  }
4348
4347
  return 0;
4349
4348
  },
@@ -4358,7 +4357,7 @@ var sys = (() => {
4358
4357
  tryEnableSourceMapsForHost() {
4359
4358
  try {
4360
4359
  require("source-map-support").install();
4361
- } catch (e) {
4360
+ } catch {
4362
4361
  }
4363
4362
  },
4364
4363
  setTimeout,
@@ -4367,8 +4366,8 @@ var sys = (() => {
4367
4366
  process.stdout.write("\x1Bc");
4368
4367
  },
4369
4368
  setBlocking: () => {
4370
- var _a2;
4371
- const handle = (_a2 = process.stdout) == null ? void 0 : _a2._handle;
4369
+ var _a;
4370
+ const handle = (_a = process.stdout) == null ? void 0 : _a._handle;
4372
4371
  if (handle && handle.setBlocking) {
4373
4372
  handle.setBlocking(true);
4374
4373
  }
@@ -4439,17 +4438,17 @@ var sys = (() => {
4439
4438
  if (activeSession && activeSession !== "stopping") {
4440
4439
  const s = activeSession;
4441
4440
  activeSession.post("Profiler.stop", (err, { profile }) => {
4442
- var _a2;
4441
+ var _a;
4443
4442
  if (!err) {
4444
4443
  try {
4445
- if ((_a2 = statSync(profilePath)) == null ? void 0 : _a2.isDirectory()) {
4444
+ if ((_a = statSync(profilePath)) == null ? void 0 : _a.isDirectory()) {
4446
4445
  profilePath = _path.join(profilePath, `${(/* @__PURE__ */ new Date()).toISOString().replace(/:/g, "-")}+P${process.pid}.cpuprofile`);
4447
4446
  }
4448
- } catch (e) {
4447
+ } catch {
4449
4448
  }
4450
4449
  try {
4451
4450
  _fs.mkdirSync(_path.dirname(profilePath), { recursive: true });
4452
- } catch (e) {
4451
+ } catch {
4453
4452
  }
4454
4453
  _fs.writeFileSync(profilePath, JSON.stringify(cleanupPaths(profile)));
4455
4454
  }
@@ -4535,15 +4534,15 @@ var sys = (() => {
4535
4534
  return buffer.toString("utf8");
4536
4535
  }
4537
4536
  function readFile(fileName, _encoding) {
4538
- var _a2, _b;
4539
- (_a2 = perfLogger) == null ? void 0 : _a2.logStartReadFile(fileName);
4537
+ var _a, _b;
4538
+ (_a = perfLogger) == null ? void 0 : _a.logStartReadFile(fileName);
4540
4539
  const file = readFileWorker(fileName, _encoding);
4541
4540
  (_b = perfLogger) == null ? void 0 : _b.logStopReadFile();
4542
4541
  return file;
4543
4542
  }
4544
4543
  function writeFile2(fileName, data, writeByteOrderMark) {
4545
- var _a2;
4546
- (_a2 = perfLogger) == null ? void 0 : _a2.logEvent("WriteFile: " + fileName);
4544
+ var _a;
4545
+ (_a = perfLogger) == null ? void 0 : _a.logEvent("WriteFile: " + fileName);
4547
4546
  if (writeByteOrderMark) {
4548
4547
  data = byteOrderMarkIndicator + data;
4549
4548
  }
@@ -4564,8 +4563,8 @@ var sys = (() => {
4564
4563
  }
4565
4564
  }
4566
4565
  function getAccessibleFileSystemEntries(path2) {
4567
- var _a2;
4568
- (_a2 = perfLogger) == null ? void 0 : _a2.logEvent("ReadDir: " + (path2 || "."));
4566
+ var _a;
4567
+ (_a = perfLogger) == null ? void 0 : _a.logEvent("ReadDir: " + (path2 || "."));
4569
4568
  try {
4570
4569
  const entries = _fs.readdirSync(path2 || ".", { withFileTypes: true });
4571
4570
  const files = [];
@@ -4642,16 +4641,16 @@ var sys = (() => {
4642
4641
  function realpath(path2) {
4643
4642
  try {
4644
4643
  return fsRealpath(path2);
4645
- } catch (e) {
4644
+ } catch {
4646
4645
  return path2;
4647
4646
  }
4648
4647
  }
4649
4648
  function getModifiedTime2(path2) {
4650
- var _a2;
4649
+ var _a;
4651
4650
  const originalStackTraceLimit = Error.stackTraceLimit;
4652
4651
  Error.stackTraceLimit = 0;
4653
4652
  try {
4654
- return (_a2 = statSync(path2)) == null ? void 0 : _a2.mtime;
4653
+ return (_a = statSync(path2)) == null ? void 0 : _a.mtime;
4655
4654
  } catch (e) {
4656
4655
  return void 0;
4657
4656
  } finally {
@@ -5827,6 +5826,7 @@ var Diagnostics = {
5827
5826
  Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation: diag(2636, 1 /* Error */, "Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636", "Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),
5828
5827
  Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types: diag(2637, 1 /* Error */, "Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637", "Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),
5829
5828
  Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator: diag(2638, 1 /* Error */, "Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638", "Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),
5829
+ React_components_cannot_include_JSX_namespace_names: diag(2639, 1 /* Error */, "React_components_cannot_include_JSX_namespace_names_2639", "React components cannot include JSX namespace names"),
5830
5830
  Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity: diag(2649, 1 /* Error */, "Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649", "Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),
5831
5831
  A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums: diag(2651, 1 /* Error */, "A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651", "A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),
5832
5832
  Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead: diag(2652, 1 /* Error */, "Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652", "Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),
@@ -7121,7 +7121,8 @@ var Diagnostics = {
7121
7121
  _0_is_possibly_null_or_undefined: diag(18049, 1 /* Error */, "_0_is_possibly_null_or_undefined_18049", "'{0}' is possibly 'null' or 'undefined'."),
7122
7122
  The_value_0_cannot_be_used_here: diag(18050, 1 /* Error */, "The_value_0_cannot_be_used_here_18050", "The value '{0}' cannot be used here."),
7123
7123
  Compiler_option_0_cannot_be_given_an_empty_string: diag(18051, 1 /* Error */, "Compiler_option_0_cannot_be_given_an_empty_string_18051", "Compiler option '{0}' cannot be given an empty string."),
7124
- Non_abstract_class_0_does_not_implement_all_abstract_members_of_1: diag(18052, 1 /* Error */, "Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052", "Non-abstract class '{0}' does not implement all abstract members of '{1}'")
7124
+ Non_abstract_class_0_does_not_implement_all_abstract_members_of_1: diag(18052, 1 /* Error */, "Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052", "Non-abstract class '{0}' does not implement all abstract members of '{1}'"),
7125
+ Its_type_0_is_not_a_valid_JSX_element_type: diag(18053, 1 /* Error */, "Its_type_0_is_not_a_valid_JSX_element_type_18053", "Its type '{0}' is not a valid JSX element type.")
7125
7126
  };
7126
7127
 
7127
7128
  // src/compiler/scanner.ts
@@ -9017,19 +9018,12 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
9017
9018
  }
9018
9019
  function scanJsxIdentifier() {
9019
9020
  if (tokenIsIdentifierOrKeyword(token)) {
9020
- let namespaceSeparator = false;
9021
9021
  while (pos < end) {
9022
9022
  const ch = text.charCodeAt(pos);
9023
9023
  if (ch === 45 /* minus */) {
9024
9024
  tokenValue += "-";
9025
9025
  pos++;
9026
9026
  continue;
9027
- } else if (ch === 58 /* colon */ && !namespaceSeparator) {
9028
- tokenValue += ":";
9029
- pos++;
9030
- namespaceSeparator = true;
9031
- token = 80 /* Identifier */;
9032
- continue;
9033
9027
  }
9034
9028
  const oldPos = pos;
9035
9029
  tokenValue += scanIdentifierParts();
@@ -9037,10 +9031,6 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
9037
9031
  break;
9038
9032
  }
9039
9033
  }
9040
- if (tokenValue.slice(-1) === ":") {
9041
- tokenValue = tokenValue.slice(0, -1);
9042
- pos--;
9043
- }
9044
9034
  return getIdentifierToken();
9045
9035
  }
9046
9036
  return token;
@@ -9418,8 +9408,8 @@ function getNonAssignedNameOfDeclaration(declaration) {
9418
9408
  switch (declaration.kind) {
9419
9409
  case 80 /* Identifier */:
9420
9410
  return declaration;
9421
- case 353 /* JSDocPropertyTag */:
9422
- case 346 /* JSDocParameterTag */: {
9411
+ case 354 /* JSDocPropertyTag */:
9412
+ case 347 /* JSDocParameterTag */: {
9423
9413
  const { name } = declaration;
9424
9414
  if (name.kind === 165 /* QualifiedName */) {
9425
9415
  return name.right;
@@ -9443,9 +9433,9 @@ function getNonAssignedNameOfDeclaration(declaration) {
9443
9433
  return void 0;
9444
9434
  }
9445
9435
  }
9446
- case 351 /* JSDocTypedefTag */:
9436
+ case 352 /* JSDocTypedefTag */:
9447
9437
  return getNameOfJSDocTypedef(declaration);
9448
- case 345 /* JSDocEnumTag */:
9438
+ case 346 /* JSDocEnumTag */:
9449
9439
  return nameForNamelessJSDocTypedef(declaration);
9450
9440
  case 276 /* ExportAssignment */: {
9451
9441
  const { expression } = declaration;
@@ -9588,16 +9578,16 @@ function getJSDocTypeTag(node) {
9588
9578
  return void 0;
9589
9579
  }
9590
9580
  function getJSDocTagsWorker(node, noCache) {
9591
- var _a2, _b;
9581
+ var _a;
9592
9582
  if (!canHaveJSDoc(node))
9593
9583
  return emptyArray;
9594
- let tags = (_a2 = node.jsDoc) == null ? void 0 : _a2.jsDocCache;
9584
+ let tags = (_a = node.jsDoc) == null ? void 0 : _a.jsDocCache;
9595
9585
  if (tags === void 0 || noCache) {
9596
9586
  const comments = getJSDocCommentsAndTags(node, noCache);
9597
9587
  Debug.assert(comments.length < 2 || comments[0] !== comments[1]);
9598
9588
  tags = flatMap(comments, (j) => isJSDoc(j) ? j.tags : j);
9599
9589
  if (!noCache) {
9600
- (_b = node.jsDoc) != null ? _b : node.jsDoc = [];
9590
+ node.jsDoc ?? (node.jsDoc = []);
9601
9591
  node.jsDoc.jsDocCache = tags;
9602
9592
  }
9603
9593
  }
@@ -9654,12 +9644,12 @@ function isAssertionKey(node) {
9654
9644
  return isStringLiteral(node) || isIdentifier(node);
9655
9645
  }
9656
9646
  function isGeneratedIdentifier(node) {
9657
- var _a2;
9658
- return isIdentifier(node) && ((_a2 = node.emitNode) == null ? void 0 : _a2.autoGenerate) !== void 0;
9647
+ var _a;
9648
+ return isIdentifier(node) && ((_a = node.emitNode) == null ? void 0 : _a.autoGenerate) !== void 0;
9659
9649
  }
9660
9650
  function isGeneratedPrivateIdentifier(node) {
9661
- var _a2;
9662
- return isPrivateIdentifier(node) && ((_a2 = node.emitNode) == null ? void 0 : _a2.autoGenerate) !== void 0;
9651
+ var _a;
9652
+ return isPrivateIdentifier(node) && ((_a = node.emitNode) == null ? void 0 : _a.autoGenerate) !== void 0;
9663
9653
  }
9664
9654
  function isPrivateIdentifierClassElementDeclaration(node) {
9665
9655
  return (isPropertyDeclaration(node) || isMethodOrAccessor(node)) && isPrivateIdentifier(node.name);
@@ -9727,11 +9717,11 @@ function isFunctionLikeKind(kind) {
9727
9717
  switch (kind) {
9728
9718
  case 172 /* MethodSignature */:
9729
9719
  case 178 /* CallSignature */:
9730
- case 328 /* JSDocSignature */:
9720
+ case 329 /* JSDocSignature */:
9731
9721
  case 179 /* ConstructSignature */:
9732
9722
  case 180 /* IndexSignature */:
9733
9723
  case 183 /* FunctionType */:
9734
- case 322 /* JSDocFunctionType */:
9724
+ case 323 /* JSDocFunctionType */:
9735
9725
  case 184 /* ConstructorType */:
9736
9726
  return true;
9737
9727
  default:
@@ -9764,7 +9754,7 @@ function isTypeElement(node) {
9764
9754
  }
9765
9755
  function isObjectLiteralElementLike(node) {
9766
9756
  const kind = node.kind;
9767
- return kind === 301 /* PropertyAssignment */ || kind === 302 /* ShorthandPropertyAssignment */ || kind === 303 /* SpreadAssignment */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */;
9757
+ return kind === 302 /* PropertyAssignment */ || kind === 303 /* ShorthandPropertyAssignment */ || kind === 304 /* SpreadAssignment */ || kind === 173 /* MethodDeclaration */ || kind === 176 /* GetAccessor */ || kind === 177 /* SetAccessor */;
9768
9758
  }
9769
9759
  function isTypeNode(node) {
9770
9760
  return isTypeNodeKind(node.kind);
@@ -9817,6 +9807,7 @@ function isLeftHandSideExpressionKind(kind) {
9817
9807
  case 283 /* JsxElement */:
9818
9808
  case 284 /* JsxSelfClosingElement */:
9819
9809
  case 287 /* JsxFragment */:
9810
+ case 294 /* JsxNamespacedName */:
9820
9811
  case 214 /* TaggedTemplateExpression */:
9821
9812
  case 208 /* ArrayLiteralExpression */:
9822
9813
  case 216 /* ParenthesizedExpression */:
@@ -9886,8 +9877,8 @@ function isExpressionKind(kind) {
9886
9877
  case 229 /* SpreadElement */:
9887
9878
  case 233 /* AsExpression */:
9888
9879
  case 231 /* OmittedExpression */:
9889
- case 359 /* CommaListExpression */:
9890
- case 358 /* PartiallyEmittedExpression */:
9880
+ case 360 /* CommaListExpression */:
9881
+ case 359 /* PartiallyEmittedExpression */:
9891
9882
  case 237 /* SatisfiesExpression */:
9892
9883
  return true;
9893
9884
  default:
@@ -9909,17 +9900,17 @@ function isNamedImportBindings(node) {
9909
9900
  return kind === 274 /* NamedImports */ || kind === 273 /* NamespaceImport */;
9910
9901
  }
9911
9902
  function isDeclarationKind(kind) {
9912
- return kind === 218 /* ArrowFunction */ || kind === 207 /* BindingElement */ || kind === 262 /* ClassDeclaration */ || kind === 230 /* ClassExpression */ || kind === 174 /* ClassStaticBlockDeclaration */ || kind === 175 /* Constructor */ || kind === 265 /* EnumDeclaration */ || kind === 304 /* EnumMember */ || kind === 280 /* ExportSpecifier */ || kind === 261 /* FunctionDeclaration */ || kind === 217 /* FunctionExpression */ || kind === 176 /* GetAccessor */ || kind === 272 /* ImportClause */ || kind === 270 /* ImportEqualsDeclaration */ || kind === 275 /* ImportSpecifier */ || kind === 263 /* InterfaceDeclaration */ || kind === 290 /* JsxAttribute */ || kind === 173 /* MethodDeclaration */ || kind === 172 /* MethodSignature */ || kind === 266 /* ModuleDeclaration */ || kind === 269 /* NamespaceExportDeclaration */ || kind === 273 /* NamespaceImport */ || kind === 279 /* NamespaceExport */ || kind === 168 /* Parameter */ || kind === 301 /* PropertyAssignment */ || kind === 171 /* PropertyDeclaration */ || kind === 170 /* PropertySignature */ || kind === 177 /* SetAccessor */ || kind === 302 /* ShorthandPropertyAssignment */ || kind === 264 /* TypeAliasDeclaration */ || kind === 167 /* TypeParameter */ || kind === 259 /* VariableDeclaration */ || kind === 351 /* JSDocTypedefTag */ || kind === 343 /* JSDocCallbackTag */ || kind === 353 /* JSDocPropertyTag */;
9903
+ return kind === 218 /* ArrowFunction */ || kind === 207 /* BindingElement */ || kind === 262 /* ClassDeclaration */ || kind === 230 /* ClassExpression */ || kind === 174 /* ClassStaticBlockDeclaration */ || kind === 175 /* Constructor */ || kind === 265 /* EnumDeclaration */ || kind === 305 /* EnumMember */ || kind === 280 /* ExportSpecifier */ || kind === 261 /* FunctionDeclaration */ || kind === 217 /* FunctionExpression */ || kind === 176 /* GetAccessor */ || kind === 272 /* ImportClause */ || kind === 270 /* ImportEqualsDeclaration */ || kind === 275 /* ImportSpecifier */ || kind === 263 /* InterfaceDeclaration */ || kind === 290 /* JsxAttribute */ || kind === 173 /* MethodDeclaration */ || kind === 172 /* MethodSignature */ || kind === 266 /* ModuleDeclaration */ || kind === 269 /* NamespaceExportDeclaration */ || kind === 273 /* NamespaceImport */ || kind === 279 /* NamespaceExport */ || kind === 168 /* Parameter */ || kind === 302 /* PropertyAssignment */ || kind === 171 /* PropertyDeclaration */ || kind === 170 /* PropertySignature */ || kind === 177 /* SetAccessor */ || kind === 303 /* ShorthandPropertyAssignment */ || kind === 264 /* TypeAliasDeclaration */ || kind === 167 /* TypeParameter */ || kind === 259 /* VariableDeclaration */ || kind === 352 /* JSDocTypedefTag */ || kind === 344 /* JSDocCallbackTag */ || kind === 354 /* JSDocPropertyTag */;
9913
9904
  }
9914
9905
  function isDeclarationStatementKind(kind) {
9915
9906
  return kind === 261 /* FunctionDeclaration */ || kind === 281 /* MissingDeclaration */ || kind === 262 /* ClassDeclaration */ || kind === 263 /* InterfaceDeclaration */ || kind === 264 /* TypeAliasDeclaration */ || kind === 265 /* EnumDeclaration */ || kind === 266 /* ModuleDeclaration */ || kind === 271 /* ImportDeclaration */ || kind === 270 /* ImportEqualsDeclaration */ || kind === 277 /* ExportDeclaration */ || kind === 276 /* ExportAssignment */ || kind === 269 /* NamespaceExportDeclaration */;
9916
9907
  }
9917
9908
  function isStatementKindButNotDeclarationKind(kind) {
9918
- return kind === 251 /* BreakStatement */ || kind === 250 /* ContinueStatement */ || kind === 258 /* DebuggerStatement */ || kind === 245 /* DoStatement */ || kind === 243 /* ExpressionStatement */ || kind === 241 /* EmptyStatement */ || kind === 248 /* ForInStatement */ || kind === 249 /* ForOfStatement */ || kind === 247 /* ForStatement */ || kind === 244 /* IfStatement */ || kind === 255 /* LabeledStatement */ || kind === 252 /* ReturnStatement */ || kind === 254 /* SwitchStatement */ || kind === 256 /* ThrowStatement */ || kind === 257 /* TryStatement */ || kind === 242 /* VariableStatement */ || kind === 246 /* WhileStatement */ || kind === 253 /* WithStatement */ || kind === 357 /* NotEmittedStatement */ || kind === 361 /* EndOfDeclarationMarker */ || kind === 360 /* MergeDeclarationMarker */;
9909
+ return kind === 251 /* BreakStatement */ || kind === 250 /* ContinueStatement */ || kind === 258 /* DebuggerStatement */ || kind === 245 /* DoStatement */ || kind === 243 /* ExpressionStatement */ || kind === 241 /* EmptyStatement */ || kind === 248 /* ForInStatement */ || kind === 249 /* ForOfStatement */ || kind === 247 /* ForStatement */ || kind === 244 /* IfStatement */ || kind === 255 /* LabeledStatement */ || kind === 252 /* ReturnStatement */ || kind === 254 /* SwitchStatement */ || kind === 256 /* ThrowStatement */ || kind === 257 /* TryStatement */ || kind === 242 /* VariableStatement */ || kind === 246 /* WhileStatement */ || kind === 253 /* WithStatement */ || kind === 358 /* NotEmittedStatement */ || kind === 362 /* EndOfDeclarationMarker */ || kind === 361 /* MergeDeclarationMarker */;
9919
9910
  }
9920
9911
  function isDeclaration(node) {
9921
9912
  if (node.kind === 167 /* TypeParameter */) {
9922
- return node.parent && node.parent.kind !== 350 /* JSDocTemplateTag */ || isInJSFile(node);
9913
+ return node.parent && node.parent.kind !== 351 /* JSDocTemplateTag */ || isInJSFile(node);
9923
9914
  }
9924
9915
  return isDeclarationKind(node.kind);
9925
9916
  }
@@ -9931,7 +9922,7 @@ function isBlockStatement(node) {
9931
9922
  if (node.kind !== 240 /* Block */)
9932
9923
  return false;
9933
9924
  if (node.parent !== void 0) {
9934
- if (node.parent.kind === 257 /* TryStatement */ || node.parent.kind === 297 /* CatchClause */) {
9925
+ if (node.parent.kind === 257 /* TryStatement */ || node.parent.kind === 298 /* CatchClause */) {
9935
9926
  return false;
9936
9927
  }
9937
9928
  }
@@ -9947,7 +9938,7 @@ function isModuleReference(node) {
9947
9938
  }
9948
9939
  function isJsxTagNameExpression(node) {
9949
9940
  const kind = node.kind;
9950
- return kind === 110 /* ThisKeyword */ || kind === 80 /* Identifier */ || kind === 210 /* PropertyAccessExpression */;
9941
+ return kind === 110 /* ThisKeyword */ || kind === 80 /* Identifier */ || kind === 210 /* PropertyAccessExpression */ || kind === 294 /* JsxNamespacedName */;
9951
9942
  }
9952
9943
  function isJsxChild(node) {
9953
9944
  const kind = node.kind;
@@ -9963,10 +9954,10 @@ function isStringLiteralOrJsxExpression(node) {
9963
9954
  }
9964
9955
  function isCaseOrDefaultClause(node) {
9965
9956
  const kind = node.kind;
9966
- return kind === 294 /* CaseClause */ || kind === 295 /* DefaultClause */;
9957
+ return kind === 295 /* CaseClause */ || kind === 296 /* DefaultClause */;
9967
9958
  }
9968
9959
  function isJSDocNode(node) {
9969
- return node.kind >= 314 /* FirstJSDocNode */ && node.kind <= 355 /* LastJSDocNode */;
9960
+ return node.kind >= 315 /* FirstJSDocNode */ && node.kind <= 356 /* LastJSDocNode */;
9970
9961
  }
9971
9962
  function hasJSDocNodes(node) {
9972
9963
  if (!canHaveJSDoc(node))
@@ -10044,7 +10035,7 @@ function aggregateChildData(node) {
10044
10035
  }
10045
10036
  }
10046
10037
  function getSourceFileOfNode(node) {
10047
- while (node && node.kind !== 310 /* SourceFile */) {
10038
+ while (node && node.kind !== 311 /* SourceFile */) {
10048
10039
  node = node.parent;
10049
10040
  }
10050
10041
  return node;
@@ -10105,11 +10096,11 @@ function isComputedNonLiteralName(name) {
10105
10096
  return name.kind === 166 /* ComputedPropertyName */ && !isStringOrNumericLiteralLike(name.expression);
10106
10097
  }
10107
10098
  function tryGetTextOfPropertyName(name) {
10108
- var _a2;
10099
+ var _a;
10109
10100
  switch (name.kind) {
10110
10101
  case 80 /* Identifier */:
10111
10102
  case 81 /* PrivateIdentifier */:
10112
- return ((_a2 = name.emitNode) == null ? void 0 : _a2.autoGenerate) ? void 0 : name.escapedText;
10103
+ return ((_a = name.emitNode) == null ? void 0 : _a.autoGenerate) ? void 0 : name.escapedText;
10113
10104
  case 11 /* StringLiteral */:
10114
10105
  case 9 /* NumericLiteral */:
10115
10106
  case 15 /* NoSubstitutionTemplateLiteral */:
@@ -10166,7 +10157,7 @@ function getErrorSpanForArrowFunction(sourceFile, node) {
10166
10157
  function getErrorSpanForNode(sourceFile, node) {
10167
10158
  let errorNode = node;
10168
10159
  switch (node.kind) {
10169
- case 310 /* SourceFile */: {
10160
+ case 311 /* SourceFile */: {
10170
10161
  const pos2 = skipTrivia(
10171
10162
  sourceFile.text,
10172
10163
  0,
@@ -10185,7 +10176,7 @@ function getErrorSpanForNode(sourceFile, node) {
10185
10176
  case 263 /* InterfaceDeclaration */:
10186
10177
  case 266 /* ModuleDeclaration */:
10187
10178
  case 265 /* EnumDeclaration */:
10188
- case 304 /* EnumMember */:
10179
+ case 305 /* EnumMember */:
10189
10180
  case 261 /* FunctionDeclaration */:
10190
10181
  case 217 /* FunctionExpression */:
10191
10182
  case 173 /* MethodDeclaration */:
@@ -10199,8 +10190,8 @@ function getErrorSpanForNode(sourceFile, node) {
10199
10190
  break;
10200
10191
  case 218 /* ArrowFunction */:
10201
10192
  return getErrorSpanForArrowFunction(sourceFile, node);
10202
- case 294 /* CaseClause */:
10203
- case 295 /* DefaultClause */: {
10193
+ case 295 /* CaseClause */:
10194
+ case 296 /* DefaultClause */: {
10204
10195
  const start = skipTrivia(sourceFile.text, node.pos);
10205
10196
  const end = node.statements.length > 0 ? node.statements[0].pos : node.end;
10206
10197
  return createTextSpanFromBounds(start, end);
@@ -10255,12 +10246,12 @@ function isVariableLike(node) {
10255
10246
  if (node) {
10256
10247
  switch (node.kind) {
10257
10248
  case 207 /* BindingElement */:
10258
- case 304 /* EnumMember */:
10249
+ case 305 /* EnumMember */:
10259
10250
  case 168 /* Parameter */:
10260
- case 301 /* PropertyAssignment */:
10251
+ case 302 /* PropertyAssignment */:
10261
10252
  case 171 /* PropertyDeclaration */:
10262
10253
  case 170 /* PropertySignature */:
10263
- case 302 /* ShorthandPropertyAssignment */:
10254
+ case 303 /* ShorthandPropertyAssignment */:
10264
10255
  case 259 /* VariableDeclaration */:
10265
10256
  return true;
10266
10257
  }
@@ -10429,7 +10420,7 @@ function getSingleInitializerOfVariableStatementOrPropertyDeclaration(node) {
10429
10420
  return v && v.initializer;
10430
10421
  case 171 /* PropertyDeclaration */:
10431
10422
  return node.initializer;
10432
- case 301 /* PropertyAssignment */:
10423
+ case 302 /* PropertyAssignment */:
10433
10424
  return node.initializer;
10434
10425
  }
10435
10426
  }
@@ -10446,7 +10437,7 @@ function canHaveJSDoc(node) {
10446
10437
  case 240 /* Block */:
10447
10438
  case 251 /* BreakStatement */:
10448
10439
  case 178 /* CallSignature */:
10449
- case 294 /* CaseClause */:
10440
+ case 295 /* CaseClause */:
10450
10441
  case 262 /* ClassDeclaration */:
10451
10442
  case 230 /* ClassExpression */:
10452
10443
  case 174 /* ClassStaticBlockDeclaration */:
@@ -10460,7 +10451,7 @@ function canHaveJSDoc(node) {
10460
10451
  case 241 /* EmptyStatement */:
10461
10452
  case 1 /* EndOfFileToken */:
10462
10453
  case 265 /* EnumDeclaration */:
10463
- case 304 /* EnumMember */:
10454
+ case 305 /* EnumMember */:
10464
10455
  case 276 /* ExportAssignment */:
10465
10456
  case 277 /* ExportDeclaration */:
10466
10457
  case 280 /* ExportSpecifier */:
@@ -10478,8 +10469,8 @@ function canHaveJSDoc(node) {
10478
10469
  case 270 /* ImportEqualsDeclaration */:
10479
10470
  case 180 /* IndexSignature */:
10480
10471
  case 263 /* InterfaceDeclaration */:
10481
- case 322 /* JSDocFunctionType */:
10482
- case 328 /* JSDocSignature */:
10472
+ case 323 /* JSDocFunctionType */:
10473
+ case 329 /* JSDocSignature */:
10483
10474
  case 255 /* LabeledStatement */:
10484
10475
  case 173 /* MethodDeclaration */:
10485
10476
  case 172 /* MethodSignature */:
@@ -10490,13 +10481,13 @@ function canHaveJSDoc(node) {
10490
10481
  case 168 /* Parameter */:
10491
10482
  case 216 /* ParenthesizedExpression */:
10492
10483
  case 210 /* PropertyAccessExpression */:
10493
- case 301 /* PropertyAssignment */:
10484
+ case 302 /* PropertyAssignment */:
10494
10485
  case 171 /* PropertyDeclaration */:
10495
10486
  case 170 /* PropertySignature */:
10496
10487
  case 252 /* ReturnStatement */:
10497
10488
  case 177 /* SetAccessor */:
10498
- case 302 /* ShorthandPropertyAssignment */:
10499
- case 303 /* SpreadAssignment */:
10489
+ case 303 /* ShorthandPropertyAssignment */:
10490
+ case 304 /* SpreadAssignment */:
10500
10491
  case 254 /* SwitchStatement */:
10501
10492
  case 256 /* ThrowStatement */:
10502
10493
  case 257 /* TryStatement */:
@@ -10545,7 +10536,7 @@ function ownsJSDocTag(hostNode, tag) {
10545
10536
  }
10546
10537
  function getNextJSDocCommentLocation(node) {
10547
10538
  const parent = node.parent;
10548
- if (parent.kind === 301 /* PropertyAssignment */ || parent.kind === 276 /* ExportAssignment */ || parent.kind === 171 /* PropertyDeclaration */ || parent.kind === 243 /* ExpressionStatement */ && node.kind === 210 /* PropertyAccessExpression */ || parent.kind === 252 /* ReturnStatement */ || getNestedModuleDeclaration(parent) || isBinaryExpression(node) && node.operatorToken.kind === 64 /* EqualsToken */) {
10539
+ if (parent.kind === 302 /* PropertyAssignment */ || parent.kind === 276 /* ExportAssignment */ || parent.kind === 171 /* PropertyDeclaration */ || parent.kind === 243 /* ExpressionStatement */ && node.kind === 210 /* PropertyAccessExpression */ || parent.kind === 252 /* ReturnStatement */ || getNestedModuleDeclaration(parent) || isBinaryExpression(node) && node.operatorToken.kind === 64 /* EqualsToken */) {
10549
10540
  return parent;
10550
10541
  } else if (parent.parent && (getSingleVariableOfVariableStatement(parent.parent) === node || isBinaryExpression(parent) && parent.operatorToken.kind === 64 /* EqualsToken */)) {
10551
10542
  return parent.parent;
@@ -10642,7 +10633,7 @@ function getOperator(expression) {
10642
10633
  }
10643
10634
  function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) {
10644
10635
  switch (nodeKind) {
10645
- case 359 /* CommaListExpression */:
10636
+ case 360 /* CommaListExpression */:
10646
10637
  return 0 /* Comma */;
10647
10638
  case 229 /* SpreadElement */:
10648
10639
  return 1 /* Spread */;
@@ -10808,10 +10799,10 @@ function outFile(options) {
10808
10799
  return options.outFile || options.out;
10809
10800
  }
10810
10801
  function getPathsBasePath(options, host) {
10811
- var _a2, _b;
10802
+ var _a;
10812
10803
  if (!options.paths)
10813
10804
  return void 0;
10814
- return (_b = options.baseUrl) != null ? _b : Debug.checkDefined(options.pathsBasePath || ((_a2 = host.getCurrentDirectory) == null ? void 0 : _a2.call(host)), "Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.");
10805
+ return options.baseUrl ?? Debug.checkDefined(options.pathsBasePath || ((_a = host.getCurrentDirectory) == null ? void 0 : _a.call(host)), "Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.");
10815
10806
  }
10816
10807
  function ensureDirectoriesExist(directoryPath, createDirectory, directoryExists) {
10817
10808
  if (directoryPath.length > getRootLength(directoryPath) && !directoryExists(directoryPath)) {
@@ -10823,7 +10814,7 @@ function ensureDirectoriesExist(directoryPath, createDirectory, directoryExists)
10823
10814
  function writeFileEnsuringDirectories(path2, data, writeByteOrderMark, writeFile2, createDirectory, directoryExists) {
10824
10815
  try {
10825
10816
  writeFile2(path2, data, writeByteOrderMark);
10826
- } catch (e) {
10817
+ } catch {
10827
10818
  ensureDirectoriesExist(getDirectoryPath(normalizePath(path2)), createDirectory, directoryExists);
10828
10819
  writeFile2(path2, data, writeByteOrderMark);
10829
10820
  }
@@ -10996,7 +10987,7 @@ function getLastChild(node) {
10996
10987
  return lastChild;
10997
10988
  }
10998
10989
  function isTypeNodeKind(kind) {
10999
- return kind >= 181 /* FirstTypeNode */ && kind <= 204 /* LastTypeNode */ || kind === 133 /* AnyKeyword */ || kind === 159 /* UnknownKeyword */ || kind === 150 /* NumberKeyword */ || kind === 162 /* BigIntKeyword */ || kind === 151 /* ObjectKeyword */ || kind === 136 /* BooleanKeyword */ || kind === 154 /* StringKeyword */ || kind === 155 /* SymbolKeyword */ || kind === 116 /* VoidKeyword */ || kind === 157 /* UndefinedKeyword */ || kind === 146 /* NeverKeyword */ || kind === 141 /* IntrinsicKeyword */ || kind === 232 /* ExpressionWithTypeArguments */ || kind === 317 /* JSDocAllType */ || kind === 318 /* JSDocUnknownType */ || kind === 319 /* JSDocNullableType */ || kind === 320 /* JSDocNonNullableType */ || kind === 321 /* JSDocOptionalType */ || kind === 322 /* JSDocFunctionType */ || kind === 323 /* JSDocVariadicType */;
10990
+ return kind >= 181 /* FirstTypeNode */ && kind <= 204 /* LastTypeNode */ || kind === 133 /* AnyKeyword */ || kind === 159 /* UnknownKeyword */ || kind === 150 /* NumberKeyword */ || kind === 162 /* BigIntKeyword */ || kind === 151 /* ObjectKeyword */ || kind === 136 /* BooleanKeyword */ || kind === 154 /* StringKeyword */ || kind === 155 /* SymbolKeyword */ || kind === 116 /* VoidKeyword */ || kind === 157 /* UndefinedKeyword */ || kind === 146 /* NeverKeyword */ || kind === 141 /* IntrinsicKeyword */ || kind === 232 /* ExpressionWithTypeArguments */ || kind === 318 /* JSDocAllType */ || kind === 319 /* JSDocUnknownType */ || kind === 320 /* JSDocNullableType */ || kind === 321 /* JSDocNonNullableType */ || kind === 322 /* JSDocOptionalType */ || kind === 323 /* JSDocFunctionType */ || kind === 324 /* JSDocVariadicType */;
11000
10991
  }
11001
10992
  function isAccessExpression(node) {
11002
10993
  return node.kind === 210 /* PropertyAccessExpression */ || node.kind === 211 /* ElementAccessExpression */;
@@ -11024,7 +11015,7 @@ function getLeftmostExpression(node, stopAtCallExpressions) {
11024
11015
  case 211 /* ElementAccessExpression */:
11025
11016
  case 210 /* PropertyAccessExpression */:
11026
11017
  case 234 /* NonNullExpression */:
11027
- case 358 /* PartiallyEmittedExpression */:
11018
+ case 359 /* PartiallyEmittedExpression */:
11028
11019
  case 237 /* SatisfiesExpression */:
11029
11020
  node = node.expression;
11030
11021
  continue;
@@ -11221,8 +11212,7 @@ function getLanguageVariant(scriptKind) {
11221
11212
  return scriptKind === 4 /* TSX */ || scriptKind === 2 /* JSX */ || scriptKind === 1 /* JS */ || scriptKind === 6 /* JSON */ ? 1 /* JSX */ : 0 /* Standard */;
11222
11213
  }
11223
11214
  function getEmitScriptTarget(compilerOptions) {
11224
- var _a2;
11225
- return (_a2 = compilerOptions.target) != null ? _a2 : compilerOptions.module === 100 /* Node16 */ && 9 /* ES2022 */ || compilerOptions.module === 199 /* NodeNext */ && 99 /* ESNext */ || 1 /* ES5 */;
11215
+ return compilerOptions.target ?? (compilerOptions.module === 100 /* Node16 */ && 9 /* ES2022 */ || compilerOptions.module === 199 /* NodeNext */ && 99 /* ESNext */ || 1 /* ES5 */);
11226
11216
  }
11227
11217
  function getEmitModuleKind(compilerOptions) {
11228
11218
  return typeof compilerOptions.module === "number" ? compilerOptions.module : getEmitScriptTarget(compilerOptions) >= 2 /* ES2015 */ ? 5 /* ES2015 */ : 1 /* CommonJS */;
@@ -11660,6 +11650,10 @@ function setParentRecursive(rootNode, incremental) {
11660
11650
  return bindParentToChildIgnoringJSDoc(child, parent) || bindJSDoc(child);
11661
11651
  }
11662
11652
  }
11653
+ function isJsxAttributeName(node) {
11654
+ const kind = node.kind;
11655
+ return kind === 80 /* Identifier */ || kind === 294 /* JsxNamespacedName */;
11656
+ }
11663
11657
 
11664
11658
  // src/compiler/factory/baseNodeFactory.ts
11665
11659
  function createBaseNodeFactory() {
@@ -12529,40 +12523,40 @@ function createNodeFactory(flags, baseFactory2) {
12529
12523
  updateExternalModuleReference,
12530
12524
  // lazily load factory members for JSDoc types with similar structure
12531
12525
  get createJSDocAllType() {
12532
- return getJSDocPrimaryTypeCreateFunction(317 /* JSDocAllType */);
12526
+ return getJSDocPrimaryTypeCreateFunction(318 /* JSDocAllType */);
12533
12527
  },
12534
12528
  get createJSDocUnknownType() {
12535
- return getJSDocPrimaryTypeCreateFunction(318 /* JSDocUnknownType */);
12529
+ return getJSDocPrimaryTypeCreateFunction(319 /* JSDocUnknownType */);
12536
12530
  },
12537
12531
  get createJSDocNonNullableType() {
12538
- return getJSDocPrePostfixUnaryTypeCreateFunction(320 /* JSDocNonNullableType */);
12532
+ return getJSDocPrePostfixUnaryTypeCreateFunction(321 /* JSDocNonNullableType */);
12539
12533
  },
12540
12534
  get updateJSDocNonNullableType() {
12541
- return getJSDocPrePostfixUnaryTypeUpdateFunction(320 /* JSDocNonNullableType */);
12535
+ return getJSDocPrePostfixUnaryTypeUpdateFunction(321 /* JSDocNonNullableType */);
12542
12536
  },
12543
12537
  get createJSDocNullableType() {
12544
- return getJSDocPrePostfixUnaryTypeCreateFunction(319 /* JSDocNullableType */);
12538
+ return getJSDocPrePostfixUnaryTypeCreateFunction(320 /* JSDocNullableType */);
12545
12539
  },
12546
12540
  get updateJSDocNullableType() {
12547
- return getJSDocPrePostfixUnaryTypeUpdateFunction(319 /* JSDocNullableType */);
12541
+ return getJSDocPrePostfixUnaryTypeUpdateFunction(320 /* JSDocNullableType */);
12548
12542
  },
12549
12543
  get createJSDocOptionalType() {
12550
- return getJSDocUnaryTypeCreateFunction(321 /* JSDocOptionalType */);
12544
+ return getJSDocUnaryTypeCreateFunction(322 /* JSDocOptionalType */);
12551
12545
  },
12552
12546
  get updateJSDocOptionalType() {
12553
- return getJSDocUnaryTypeUpdateFunction(321 /* JSDocOptionalType */);
12547
+ return getJSDocUnaryTypeUpdateFunction(322 /* JSDocOptionalType */);
12554
12548
  },
12555
12549
  get createJSDocVariadicType() {
12556
- return getJSDocUnaryTypeCreateFunction(323 /* JSDocVariadicType */);
12550
+ return getJSDocUnaryTypeCreateFunction(324 /* JSDocVariadicType */);
12557
12551
  },
12558
12552
  get updateJSDocVariadicType() {
12559
- return getJSDocUnaryTypeUpdateFunction(323 /* JSDocVariadicType */);
12553
+ return getJSDocUnaryTypeUpdateFunction(324 /* JSDocVariadicType */);
12560
12554
  },
12561
12555
  get createJSDocNamepathType() {
12562
- return getJSDocUnaryTypeCreateFunction(324 /* JSDocNamepathType */);
12556
+ return getJSDocUnaryTypeCreateFunction(325 /* JSDocNamepathType */);
12563
12557
  },
12564
12558
  get updateJSDocNamepathType() {
12565
- return getJSDocUnaryTypeUpdateFunction(324 /* JSDocNamepathType */);
12559
+ return getJSDocUnaryTypeUpdateFunction(325 /* JSDocNamepathType */);
12566
12560
  },
12567
12561
  createJSDocFunctionType,
12568
12562
  updateJSDocFunctionType,
@@ -12602,82 +12596,82 @@ function createNodeFactory(flags, baseFactory2) {
12602
12596
  updateJSDocLinkPlain,
12603
12597
  // lazily load factory members for JSDoc tags with similar structure
12604
12598
  get createJSDocTypeTag() {
12605
- return getJSDocTypeLikeTagCreateFunction(349 /* JSDocTypeTag */);
12599
+ return getJSDocTypeLikeTagCreateFunction(350 /* JSDocTypeTag */);
12606
12600
  },
12607
12601
  get updateJSDocTypeTag() {
12608
- return getJSDocTypeLikeTagUpdateFunction(349 /* JSDocTypeTag */);
12602
+ return getJSDocTypeLikeTagUpdateFunction(350 /* JSDocTypeTag */);
12609
12603
  },
12610
12604
  get createJSDocReturnTag() {
12611
- return getJSDocTypeLikeTagCreateFunction(347 /* JSDocReturnTag */);
12605
+ return getJSDocTypeLikeTagCreateFunction(348 /* JSDocReturnTag */);
12612
12606
  },
12613
12607
  get updateJSDocReturnTag() {
12614
- return getJSDocTypeLikeTagUpdateFunction(347 /* JSDocReturnTag */);
12608
+ return getJSDocTypeLikeTagUpdateFunction(348 /* JSDocReturnTag */);
12615
12609
  },
12616
12610
  get createJSDocThisTag() {
12617
- return getJSDocTypeLikeTagCreateFunction(348 /* JSDocThisTag */);
12611
+ return getJSDocTypeLikeTagCreateFunction(349 /* JSDocThisTag */);
12618
12612
  },
12619
12613
  get updateJSDocThisTag() {
12620
- return getJSDocTypeLikeTagUpdateFunction(348 /* JSDocThisTag */);
12614
+ return getJSDocTypeLikeTagUpdateFunction(349 /* JSDocThisTag */);
12621
12615
  },
12622
12616
  get createJSDocAuthorTag() {
12623
- return getJSDocSimpleTagCreateFunction(335 /* JSDocAuthorTag */);
12617
+ return getJSDocSimpleTagCreateFunction(336 /* JSDocAuthorTag */);
12624
12618
  },
12625
12619
  get updateJSDocAuthorTag() {
12626
- return getJSDocSimpleTagUpdateFunction(335 /* JSDocAuthorTag */);
12620
+ return getJSDocSimpleTagUpdateFunction(336 /* JSDocAuthorTag */);
12627
12621
  },
12628
12622
  get createJSDocClassTag() {
12629
- return getJSDocSimpleTagCreateFunction(337 /* JSDocClassTag */);
12623
+ return getJSDocSimpleTagCreateFunction(338 /* JSDocClassTag */);
12630
12624
  },
12631
12625
  get updateJSDocClassTag() {
12632
- return getJSDocSimpleTagUpdateFunction(337 /* JSDocClassTag */);
12626
+ return getJSDocSimpleTagUpdateFunction(338 /* JSDocClassTag */);
12633
12627
  },
12634
12628
  get createJSDocPublicTag() {
12635
- return getJSDocSimpleTagCreateFunction(338 /* JSDocPublicTag */);
12629
+ return getJSDocSimpleTagCreateFunction(339 /* JSDocPublicTag */);
12636
12630
  },
12637
12631
  get updateJSDocPublicTag() {
12638
- return getJSDocSimpleTagUpdateFunction(338 /* JSDocPublicTag */);
12632
+ return getJSDocSimpleTagUpdateFunction(339 /* JSDocPublicTag */);
12639
12633
  },
12640
12634
  get createJSDocPrivateTag() {
12641
- return getJSDocSimpleTagCreateFunction(339 /* JSDocPrivateTag */);
12635
+ return getJSDocSimpleTagCreateFunction(340 /* JSDocPrivateTag */);
12642
12636
  },
12643
12637
  get updateJSDocPrivateTag() {
12644
- return getJSDocSimpleTagUpdateFunction(339 /* JSDocPrivateTag */);
12638
+ return getJSDocSimpleTagUpdateFunction(340 /* JSDocPrivateTag */);
12645
12639
  },
12646
12640
  get createJSDocProtectedTag() {
12647
- return getJSDocSimpleTagCreateFunction(340 /* JSDocProtectedTag */);
12641
+ return getJSDocSimpleTagCreateFunction(341 /* JSDocProtectedTag */);
12648
12642
  },
12649
12643
  get updateJSDocProtectedTag() {
12650
- return getJSDocSimpleTagUpdateFunction(340 /* JSDocProtectedTag */);
12644
+ return getJSDocSimpleTagUpdateFunction(341 /* JSDocProtectedTag */);
12651
12645
  },
12652
12646
  get createJSDocReadonlyTag() {
12653
- return getJSDocSimpleTagCreateFunction(341 /* JSDocReadonlyTag */);
12647
+ return getJSDocSimpleTagCreateFunction(342 /* JSDocReadonlyTag */);
12654
12648
  },
12655
12649
  get updateJSDocReadonlyTag() {
12656
- return getJSDocSimpleTagUpdateFunction(341 /* JSDocReadonlyTag */);
12650
+ return getJSDocSimpleTagUpdateFunction(342 /* JSDocReadonlyTag */);
12657
12651
  },
12658
12652
  get createJSDocOverrideTag() {
12659
- return getJSDocSimpleTagCreateFunction(342 /* JSDocOverrideTag */);
12653
+ return getJSDocSimpleTagCreateFunction(343 /* JSDocOverrideTag */);
12660
12654
  },
12661
12655
  get updateJSDocOverrideTag() {
12662
- return getJSDocSimpleTagUpdateFunction(342 /* JSDocOverrideTag */);
12656
+ return getJSDocSimpleTagUpdateFunction(343 /* JSDocOverrideTag */);
12663
12657
  },
12664
12658
  get createJSDocDeprecatedTag() {
12665
- return getJSDocSimpleTagCreateFunction(336 /* JSDocDeprecatedTag */);
12659
+ return getJSDocSimpleTagCreateFunction(337 /* JSDocDeprecatedTag */);
12666
12660
  },
12667
12661
  get updateJSDocDeprecatedTag() {
12668
- return getJSDocSimpleTagUpdateFunction(336 /* JSDocDeprecatedTag */);
12662
+ return getJSDocSimpleTagUpdateFunction(337 /* JSDocDeprecatedTag */);
12669
12663
  },
12670
12664
  get createJSDocThrowsTag() {
12671
- return getJSDocTypeLikeTagCreateFunction(354 /* JSDocThrowsTag */);
12665
+ return getJSDocTypeLikeTagCreateFunction(355 /* JSDocThrowsTag */);
12672
12666
  },
12673
12667
  get updateJSDocThrowsTag() {
12674
- return getJSDocTypeLikeTagUpdateFunction(354 /* JSDocThrowsTag */);
12668
+ return getJSDocTypeLikeTagUpdateFunction(355 /* JSDocThrowsTag */);
12675
12669
  },
12676
12670
  get createJSDocSatisfiesTag() {
12677
- return getJSDocTypeLikeTagCreateFunction(355 /* JSDocSatisfiesTag */);
12671
+ return getJSDocTypeLikeTagCreateFunction(356 /* JSDocSatisfiesTag */);
12678
12672
  },
12679
12673
  get updateJSDocSatisfiesTag() {
12680
- return getJSDocTypeLikeTagUpdateFunction(355 /* JSDocSatisfiesTag */);
12674
+ return getJSDocTypeLikeTagUpdateFunction(356 /* JSDocSatisfiesTag */);
12681
12675
  },
12682
12676
  createJSDocEnumTag,
12683
12677
  updateJSDocEnumTag,
@@ -12709,6 +12703,8 @@ function createNodeFactory(flags, baseFactory2) {
12709
12703
  updateJsxSpreadAttribute,
12710
12704
  createJsxExpression,
12711
12705
  updateJsxExpression,
12706
+ createJsxNamespacedName,
12707
+ updateJsxNamespacedName,
12712
12708
  createCaseClause,
12713
12709
  updateCaseClause,
12714
12710
  createDefaultClause,
@@ -13120,7 +13116,7 @@ function createNodeFactory(flags, baseFactory2) {
13120
13116
  if (text && !startsWith(text, "#"))
13121
13117
  Debug.fail("First character of private identifier must be #: " + text);
13122
13118
  const autoGenerateFlags = 8 /* ReservedInNestedScopes */ | (text ? 3 /* Unique */ : 1 /* Auto */);
13123
- return createBaseGeneratedPrivateIdentifier(text != null ? text : "", autoGenerateFlags, prefix, suffix);
13119
+ return createBaseGeneratedPrivateIdentifier(text ?? "", autoGenerateFlags, prefix, suffix);
13124
13120
  }
13125
13121
  function getGeneratedPrivateNameForNode(node, prefix, suffix) {
13126
13122
  const text = isMemberName(node) ? formatGeneratedName(
@@ -13280,7 +13276,6 @@ function createNodeFactory(flags, baseFactory2) {
13280
13276
  return node.modifiers !== modifiers || node.name !== name || node.constraint !== constraint || node.default !== defaultType ? update(createTypeParameterDeclaration(modifiers, name, constraint, defaultType), node) : node;
13281
13277
  }
13282
13278
  function createParameterDeclaration(modifiers, dotDotDotToken, name, questionToken, type, initializer) {
13283
- var _a2, _b;
13284
13279
  const node = createBaseDeclaration(168 /* Parameter */);
13285
13280
  node.modifiers = asNodeArray(modifiers);
13286
13281
  node.dotDotDotToken = dotDotDotToken;
@@ -13291,7 +13286,7 @@ function createNodeFactory(flags, baseFactory2) {
13291
13286
  if (isThisIdentifier(node.name)) {
13292
13287
  node.transformFlags = 1 /* ContainsTypeScript */;
13293
13288
  } else {
13294
- node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.dotDotDotToken) | propagateNameFlags(node.name) | propagateChildFlags(node.questionToken) | propagateChildFlags(node.initializer) | (((_a2 = node.questionToken) != null ? _a2 : node.type) ? 1 /* ContainsTypeScript */ : 0 /* None */) | (((_b = node.dotDotDotToken) != null ? _b : node.initializer) ? 1024 /* ContainsES2015 */ : 0 /* None */) | (modifiersToFlags(node.modifiers) & 16476 /* ParameterPropertyModifier */ ? 8192 /* ContainsTypeScriptClassSyntax */ : 0 /* None */);
13289
+ node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.dotDotDotToken) | propagateNameFlags(node.name) | propagateChildFlags(node.questionToken) | propagateChildFlags(node.initializer) | (node.questionToken ?? node.type ? 1 /* ContainsTypeScript */ : 0 /* None */) | (node.dotDotDotToken ?? node.initializer ? 1024 /* ContainsES2015 */ : 0 /* None */) | (modifiersToFlags(node.modifiers) & 16476 /* ParameterPropertyModifier */ ? 8192 /* ContainsTypeScriptClassSyntax */ : 0 /* None */);
13295
13290
  }
13296
13291
  node.jsDoc = void 0;
13297
13292
  return node;
@@ -14142,7 +14137,7 @@ function createNodeFactory(flags, baseFactory2) {
14142
14137
  node.typeParameters = asNodeArray(typeParameters);
14143
14138
  node.parameters = createNodeArray(parameters);
14144
14139
  node.type = type;
14145
- node.equalsGreaterThanToken = equalsGreaterThanToken != null ? equalsGreaterThanToken : createToken(39 /* EqualsGreaterThanToken */);
14140
+ node.equalsGreaterThanToken = equalsGreaterThanToken ?? createToken(39 /* EqualsGreaterThanToken */);
14146
14141
  node.body = parenthesizerRules().parenthesizeConciseBodyOfArrowFunction(body);
14147
14142
  const isAsync = modifiersToFlags(node.modifiers) & 512 /* Async */;
14148
14143
  node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildrenFlags(node.typeParameters) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.type) | propagateChildFlags(node.equalsGreaterThanToken) | propagateChildFlags(node.body) & ~67108864 /* ContainsPossibleTopLevelAwait */ | (node.typeParameters || node.type ? 1 /* ContainsTypeScript */ : 0 /* None */) | (isAsync ? 256 /* ContainsES2017 */ | 16384 /* ContainsLexicalThis */ : 0 /* None */) | 1024 /* ContainsES2015 */;
@@ -14256,9 +14251,9 @@ function createNodeFactory(flags, baseFactory2) {
14256
14251
  function createConditionalExpression(condition, questionToken, whenTrue, colonToken, whenFalse) {
14257
14252
  const node = createBaseNode(226 /* ConditionalExpression */);
14258
14253
  node.condition = parenthesizerRules().parenthesizeConditionOfConditionalExpression(condition);
14259
- node.questionToken = questionToken != null ? questionToken : createToken(58 /* QuestionToken */);
14254
+ node.questionToken = questionToken ?? createToken(58 /* QuestionToken */);
14260
14255
  node.whenTrue = parenthesizerRules().parenthesizeBranchOfConditionalExpression(whenTrue);
14261
- node.colonToken = colonToken != null ? colonToken : createToken(59 /* ColonToken */);
14256
+ node.colonToken = colonToken ?? createToken(59 /* ColonToken */);
14262
14257
  node.whenFalse = parenthesizerRules().parenthesizeBranchOfConditionalExpression(whenFalse);
14263
14258
  node.transformFlags |= propagateChildFlags(node.condition) | propagateChildFlags(node.questionToken) | propagateChildFlags(node.whenTrue) | propagateChildFlags(node.colonToken) | propagateChildFlags(node.whenFalse);
14264
14259
  return node;
@@ -14709,13 +14704,12 @@ function createNodeFactory(flags, baseFactory2) {
14709
14704
  return node;
14710
14705
  }
14711
14706
  function createVariableDeclaration(name, exclamationToken, type, initializer) {
14712
- var _a2;
14713
14707
  const node = createBaseDeclaration(259 /* VariableDeclaration */);
14714
14708
  node.name = asName(name);
14715
14709
  node.exclamationToken = exclamationToken;
14716
14710
  node.type = type;
14717
14711
  node.initializer = asInitializer(initializer);
14718
- node.transformFlags |= propagateNameFlags(node.name) | propagateChildFlags(node.initializer) | (((_a2 = node.exclamationToken) != null ? _a2 : node.type) ? 1 /* ContainsTypeScript */ : 0 /* None */);
14712
+ node.transformFlags |= propagateNameFlags(node.name) | propagateChildFlags(node.initializer) | (node.exclamationToken ?? node.type ? 1 /* ContainsTypeScript */ : 0 /* None */);
14719
14713
  node.jsDoc = void 0;
14720
14714
  return node;
14721
14715
  }
@@ -14939,7 +14933,7 @@ function createNodeFactory(flags, baseFactory2) {
14939
14933
  return node.isTypeOnly !== isTypeOnly || node.name !== name || node.namedBindings !== namedBindings ? update(createImportClause(isTypeOnly, name, namedBindings), node) : node;
14940
14934
  }
14941
14935
  function createAssertClause(elements, multiLine) {
14942
- const node = createBaseNode(298 /* AssertClause */);
14936
+ const node = createBaseNode(299 /* AssertClause */);
14943
14937
  node.elements = createNodeArray(elements);
14944
14938
  node.multiLine = multiLine;
14945
14939
  node.transformFlags |= 4 /* ContainsESNext */;
@@ -14949,7 +14943,7 @@ function createNodeFactory(flags, baseFactory2) {
14949
14943
  return node.elements !== elements || node.multiLine !== multiLine ? update(createAssertClause(elements, multiLine), node) : node;
14950
14944
  }
14951
14945
  function createAssertEntry(name, value) {
14952
- const node = createBaseNode(299 /* AssertEntry */);
14946
+ const node = createBaseNode(300 /* AssertEntry */);
14953
14947
  node.name = name;
14954
14948
  node.value = value;
14955
14949
  node.transformFlags |= 4 /* ContainsESNext */;
@@ -14959,7 +14953,7 @@ function createNodeFactory(flags, baseFactory2) {
14959
14953
  return node.name !== name || node.value !== value ? update(createAssertEntry(name, value), node) : node;
14960
14954
  }
14961
14955
  function createImportTypeAssertionContainer(clause, multiLine) {
14962
- const node = createBaseNode(300 /* ImportTypeAssertionContainer */);
14956
+ const node = createBaseNode(301 /* ImportTypeAssertionContainer */);
14963
14957
  node.assertClause = clause;
14964
14958
  node.multiLine = multiLine;
14965
14959
  return node;
@@ -15111,7 +15105,7 @@ function createNodeFactory(flags, baseFactory2) {
15111
15105
  return node.type !== type ? update(createJSDocUnaryTypeWorker(kind, type), node) : node;
15112
15106
  }
15113
15107
  function createJSDocFunctionType(parameters, type) {
15114
- const node = createBaseDeclaration(322 /* JSDocFunctionType */);
15108
+ const node = createBaseDeclaration(323 /* JSDocFunctionType */);
15115
15109
  node.parameters = asNodeArray(parameters);
15116
15110
  node.type = type;
15117
15111
  node.transformFlags = propagateChildrenFlags(node.parameters) | (node.type ? 1 /* ContainsTypeScript */ : 0 /* None */);
@@ -15125,7 +15119,7 @@ function createNodeFactory(flags, baseFactory2) {
15125
15119
  return node.parameters !== parameters || node.type !== type ? update(createJSDocFunctionType(parameters, type), node) : node;
15126
15120
  }
15127
15121
  function createJSDocTypeLiteral(propertyTags, isArrayType = false) {
15128
- const node = createBaseDeclaration(327 /* JSDocTypeLiteral */);
15122
+ const node = createBaseDeclaration(328 /* JSDocTypeLiteral */);
15129
15123
  node.jsDocPropertyTags = asNodeArray(propertyTags);
15130
15124
  node.isArrayType = isArrayType;
15131
15125
  return node;
@@ -15134,7 +15128,7 @@ function createNodeFactory(flags, baseFactory2) {
15134
15128
  return node.jsDocPropertyTags !== propertyTags || node.isArrayType !== isArrayType ? update(createJSDocTypeLiteral(propertyTags, isArrayType), node) : node;
15135
15129
  }
15136
15130
  function createJSDocTypeExpression(type) {
15137
- const node = createBaseNode(314 /* JSDocTypeExpression */);
15131
+ const node = createBaseNode(315 /* JSDocTypeExpression */);
15138
15132
  node.type = type;
15139
15133
  return node;
15140
15134
  }
@@ -15142,7 +15136,7 @@ function createNodeFactory(flags, baseFactory2) {
15142
15136
  return node.type !== type ? update(createJSDocTypeExpression(type), node) : node;
15143
15137
  }
15144
15138
  function createJSDocSignature(typeParameters, parameters, type) {
15145
- const node = createBaseDeclaration(328 /* JSDocSignature */);
15139
+ const node = createBaseDeclaration(329 /* JSDocSignature */);
15146
15140
  node.typeParameters = asNodeArray(typeParameters);
15147
15141
  node.parameters = createNodeArray(parameters);
15148
15142
  node.type = type;
@@ -15171,7 +15165,7 @@ function createNodeFactory(flags, baseFactory2) {
15171
15165
  return node;
15172
15166
  }
15173
15167
  function createJSDocTemplateTag(tagName, constraint, typeParameters, comment) {
15174
- const node = createBaseJSDocTag(350 /* JSDocTemplateTag */, tagName != null ? tagName : createIdentifier("template"), comment);
15168
+ const node = createBaseJSDocTag(351 /* JSDocTemplateTag */, tagName ?? createIdentifier("template"), comment);
15175
15169
  node.constraint = constraint;
15176
15170
  node.typeParameters = createNodeArray(typeParameters);
15177
15171
  return node;
@@ -15180,7 +15174,7 @@ function createNodeFactory(flags, baseFactory2) {
15180
15174
  return node.tagName !== tagName || node.constraint !== constraint || node.typeParameters !== typeParameters || node.comment !== comment ? update(createJSDocTemplateTag(tagName, constraint, typeParameters, comment), node) : node;
15181
15175
  }
15182
15176
  function createJSDocTypedefTag(tagName, typeExpression, fullName, comment) {
15183
- const node = createBaseJSDocTagDeclaration(351 /* JSDocTypedefTag */, tagName != null ? tagName : createIdentifier("typedef"), comment);
15177
+ const node = createBaseJSDocTagDeclaration(352 /* JSDocTypedefTag */, tagName ?? createIdentifier("typedef"), comment);
15184
15178
  node.typeExpression = typeExpression;
15185
15179
  node.fullName = fullName;
15186
15180
  node.name = getJSDocTypeAliasName(fullName);
@@ -15192,7 +15186,7 @@ function createNodeFactory(flags, baseFactory2) {
15192
15186
  return node.tagName !== tagName || node.typeExpression !== typeExpression || node.fullName !== fullName || node.comment !== comment ? update(createJSDocTypedefTag(tagName, typeExpression, fullName, comment), node) : node;
15193
15187
  }
15194
15188
  function createJSDocParameterTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment) {
15195
- const node = createBaseJSDocTagDeclaration(346 /* JSDocParameterTag */, tagName != null ? tagName : createIdentifier("param"), comment);
15189
+ const node = createBaseJSDocTagDeclaration(347 /* JSDocParameterTag */, tagName ?? createIdentifier("param"), comment);
15196
15190
  node.typeExpression = typeExpression;
15197
15191
  node.name = name;
15198
15192
  node.isNameFirst = !!isNameFirst;
@@ -15203,7 +15197,7 @@ function createNodeFactory(flags, baseFactory2) {
15203
15197
  return node.tagName !== tagName || node.name !== name || node.isBracketed !== isBracketed || node.typeExpression !== typeExpression || node.isNameFirst !== isNameFirst || node.comment !== comment ? update(createJSDocParameterTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment), node) : node;
15204
15198
  }
15205
15199
  function createJSDocPropertyTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment) {
15206
- const node = createBaseJSDocTagDeclaration(353 /* JSDocPropertyTag */, tagName != null ? tagName : createIdentifier("prop"), comment);
15200
+ const node = createBaseJSDocTagDeclaration(354 /* JSDocPropertyTag */, tagName ?? createIdentifier("prop"), comment);
15207
15201
  node.typeExpression = typeExpression;
15208
15202
  node.name = name;
15209
15203
  node.isNameFirst = !!isNameFirst;
@@ -15214,7 +15208,7 @@ function createNodeFactory(flags, baseFactory2) {
15214
15208
  return node.tagName !== tagName || node.name !== name || node.isBracketed !== isBracketed || node.typeExpression !== typeExpression || node.isNameFirst !== isNameFirst || node.comment !== comment ? update(createJSDocPropertyTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment), node) : node;
15215
15209
  }
15216
15210
  function createJSDocCallbackTag(tagName, typeExpression, fullName, comment) {
15217
- const node = createBaseJSDocTagDeclaration(343 /* JSDocCallbackTag */, tagName != null ? tagName : createIdentifier("callback"), comment);
15211
+ const node = createBaseJSDocTagDeclaration(344 /* JSDocCallbackTag */, tagName ?? createIdentifier("callback"), comment);
15218
15212
  node.typeExpression = typeExpression;
15219
15213
  node.fullName = fullName;
15220
15214
  node.name = getJSDocTypeAliasName(fullName);
@@ -15226,7 +15220,7 @@ function createNodeFactory(flags, baseFactory2) {
15226
15220
  return node.tagName !== tagName || node.typeExpression !== typeExpression || node.fullName !== fullName || node.comment !== comment ? update(createJSDocCallbackTag(tagName, typeExpression, fullName, comment), node) : node;
15227
15221
  }
15228
15222
  function createJSDocOverloadTag(tagName, typeExpression, comment) {
15229
- const node = createBaseJSDocTag(344 /* JSDocOverloadTag */, tagName != null ? tagName : createIdentifier("overload"), comment);
15223
+ const node = createBaseJSDocTag(345 /* JSDocOverloadTag */, tagName ?? createIdentifier("overload"), comment);
15230
15224
  node.typeExpression = typeExpression;
15231
15225
  return node;
15232
15226
  }
@@ -15234,7 +15228,7 @@ function createNodeFactory(flags, baseFactory2) {
15234
15228
  return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocOverloadTag(tagName, typeExpression, comment), node) : node;
15235
15229
  }
15236
15230
  function createJSDocAugmentsTag(tagName, className, comment) {
15237
- const node = createBaseJSDocTag(333 /* JSDocAugmentsTag */, tagName != null ? tagName : createIdentifier("augments"), comment);
15231
+ const node = createBaseJSDocTag(334 /* JSDocAugmentsTag */, tagName ?? createIdentifier("augments"), comment);
15238
15232
  node.class = className;
15239
15233
  return node;
15240
15234
  }
@@ -15242,12 +15236,12 @@ function createNodeFactory(flags, baseFactory2) {
15242
15236
  return node.tagName !== tagName || node.class !== className || node.comment !== comment ? update(createJSDocAugmentsTag(tagName, className, comment), node) : node;
15243
15237
  }
15244
15238
  function createJSDocImplementsTag(tagName, className, comment) {
15245
- const node = createBaseJSDocTag(334 /* JSDocImplementsTag */, tagName != null ? tagName : createIdentifier("implements"), comment);
15239
+ const node = createBaseJSDocTag(335 /* JSDocImplementsTag */, tagName ?? createIdentifier("implements"), comment);
15246
15240
  node.class = className;
15247
15241
  return node;
15248
15242
  }
15249
15243
  function createJSDocSeeTag(tagName, name, comment) {
15250
- const node = createBaseJSDocTag(352 /* JSDocSeeTag */, tagName != null ? tagName : createIdentifier("see"), comment);
15244
+ const node = createBaseJSDocTag(353 /* JSDocSeeTag */, tagName ?? createIdentifier("see"), comment);
15251
15245
  node.name = name;
15252
15246
  return node;
15253
15247
  }
@@ -15255,7 +15249,7 @@ function createNodeFactory(flags, baseFactory2) {
15255
15249
  return node.tagName !== tagName || node.name !== name || node.comment !== comment ? update(createJSDocSeeTag(tagName, name, comment), node) : node;
15256
15250
  }
15257
15251
  function createJSDocNameReference(name) {
15258
- const node = createBaseNode(315 /* JSDocNameReference */);
15252
+ const node = createBaseNode(316 /* JSDocNameReference */);
15259
15253
  node.name = name;
15260
15254
  return node;
15261
15255
  }
@@ -15263,7 +15257,7 @@ function createNodeFactory(flags, baseFactory2) {
15263
15257
  return node.name !== name ? update(createJSDocNameReference(name), node) : node;
15264
15258
  }
15265
15259
  function createJSDocMemberName(left, right) {
15266
- const node = createBaseNode(316 /* JSDocMemberName */);
15260
+ const node = createBaseNode(317 /* JSDocMemberName */);
15267
15261
  node.left = left;
15268
15262
  node.right = right;
15269
15263
  node.transformFlags |= propagateChildFlags(node.left) | propagateChildFlags(node.right);
@@ -15273,7 +15267,7 @@ function createNodeFactory(flags, baseFactory2) {
15273
15267
  return node.left !== left || node.right !== right ? update(createJSDocMemberName(left, right), node) : node;
15274
15268
  }
15275
15269
  function createJSDocLink(name, text) {
15276
- const node = createBaseNode(329 /* JSDocLink */);
15270
+ const node = createBaseNode(330 /* JSDocLink */);
15277
15271
  node.name = name;
15278
15272
  node.text = text;
15279
15273
  return node;
@@ -15282,7 +15276,7 @@ function createNodeFactory(flags, baseFactory2) {
15282
15276
  return node.name !== name ? update(createJSDocLink(name, text), node) : node;
15283
15277
  }
15284
15278
  function createJSDocLinkCode(name, text) {
15285
- const node = createBaseNode(330 /* JSDocLinkCode */);
15279
+ const node = createBaseNode(331 /* JSDocLinkCode */);
15286
15280
  node.name = name;
15287
15281
  node.text = text;
15288
15282
  return node;
@@ -15291,7 +15285,7 @@ function createNodeFactory(flags, baseFactory2) {
15291
15285
  return node.name !== name ? update(createJSDocLinkCode(name, text), node) : node;
15292
15286
  }
15293
15287
  function createJSDocLinkPlain(name, text) {
15294
- const node = createBaseNode(331 /* JSDocLinkPlain */);
15288
+ const node = createBaseNode(332 /* JSDocLinkPlain */);
15295
15289
  node.name = name;
15296
15290
  node.text = text;
15297
15291
  return node;
@@ -15303,14 +15297,14 @@ function createNodeFactory(flags, baseFactory2) {
15303
15297
  return node.tagName !== tagName || node.class !== className || node.comment !== comment ? update(createJSDocImplementsTag(tagName, className, comment), node) : node;
15304
15298
  }
15305
15299
  function createJSDocSimpleTagWorker(kind, tagName, comment) {
15306
- const node = createBaseJSDocTag(kind, tagName != null ? tagName : createIdentifier(getDefaultTagNameForKind(kind)), comment);
15300
+ const node = createBaseJSDocTag(kind, tagName ?? createIdentifier(getDefaultTagNameForKind(kind)), comment);
15307
15301
  return node;
15308
15302
  }
15309
15303
  function updateJSDocSimpleTagWorker(kind, node, tagName = getDefaultTagName(node), comment) {
15310
15304
  return node.tagName !== tagName || node.comment !== comment ? update(createJSDocSimpleTagWorker(kind, tagName, comment), node) : node;
15311
15305
  }
15312
15306
  function createJSDocTypeLikeTagWorker(kind, tagName, typeExpression, comment) {
15313
- const node = createBaseJSDocTag(kind, tagName != null ? tagName : createIdentifier(getDefaultTagNameForKind(kind)), comment);
15307
+ const node = createBaseJSDocTag(kind, tagName ?? createIdentifier(getDefaultTagNameForKind(kind)), comment);
15314
15308
  node.typeExpression = typeExpression;
15315
15309
  return node;
15316
15310
  }
@@ -15318,14 +15312,14 @@ function createNodeFactory(flags, baseFactory2) {
15318
15312
  return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocTypeLikeTagWorker(kind, tagName, typeExpression, comment), node) : node;
15319
15313
  }
15320
15314
  function createJSDocUnknownTag(tagName, comment) {
15321
- const node = createBaseJSDocTag(332 /* JSDocTag */, tagName, comment);
15315
+ const node = createBaseJSDocTag(333 /* JSDocTag */, tagName, comment);
15322
15316
  return node;
15323
15317
  }
15324
15318
  function updateJSDocUnknownTag(node, tagName, comment) {
15325
15319
  return node.tagName !== tagName || node.comment !== comment ? update(createJSDocUnknownTag(tagName, comment), node) : node;
15326
15320
  }
15327
15321
  function createJSDocEnumTag(tagName, typeExpression, comment) {
15328
- const node = createBaseJSDocTagDeclaration(345 /* JSDocEnumTag */, tagName != null ? tagName : createIdentifier(getDefaultTagNameForKind(345 /* JSDocEnumTag */)), comment);
15322
+ const node = createBaseJSDocTagDeclaration(346 /* JSDocEnumTag */, tagName ?? createIdentifier(getDefaultTagNameForKind(346 /* JSDocEnumTag */)), comment);
15329
15323
  node.typeExpression = typeExpression;
15330
15324
  node.locals = void 0;
15331
15325
  node.nextContainer = void 0;
@@ -15335,7 +15329,7 @@ function createNodeFactory(flags, baseFactory2) {
15335
15329
  return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocEnumTag(tagName, typeExpression, comment), node) : node;
15336
15330
  }
15337
15331
  function createJSDocText(text) {
15338
- const node = createBaseNode(326 /* JSDocText */);
15332
+ const node = createBaseNode(327 /* JSDocText */);
15339
15333
  node.text = text;
15340
15334
  return node;
15341
15335
  }
@@ -15343,7 +15337,7 @@ function createNodeFactory(flags, baseFactory2) {
15343
15337
  return node.text !== text ? update(createJSDocText(text), node) : node;
15344
15338
  }
15345
15339
  function createJSDocComment(comment, tags) {
15346
- const node = createBaseNode(325 /* JSDoc */);
15340
+ const node = createBaseNode(326 /* JSDoc */);
15347
15341
  node.comment = comment;
15348
15342
  node.tags = asNodeArray(tags);
15349
15343
  return node;
@@ -15468,8 +15462,18 @@ function createNodeFactory(flags, baseFactory2) {
15468
15462
  function updateJsxExpression(node, expression) {
15469
15463
  return node.expression !== expression ? update(createJsxExpression(node.dotDotDotToken, expression), node) : node;
15470
15464
  }
15465
+ function createJsxNamespacedName(namespace, name) {
15466
+ const node = createBaseNode(294 /* JsxNamespacedName */);
15467
+ node.namespace = namespace;
15468
+ node.name = name;
15469
+ node.transformFlags |= propagateChildFlags(node.namespace) | propagateChildFlags(node.name) | 2 /* ContainsJsx */;
15470
+ return node;
15471
+ }
15472
+ function updateJsxNamespacedName(node, namespace, name) {
15473
+ return node.namespace !== namespace || node.name !== name ? update(createJsxNamespacedName(namespace, name), node) : node;
15474
+ }
15471
15475
  function createCaseClause(expression, statements) {
15472
- const node = createBaseNode(294 /* CaseClause */);
15476
+ const node = createBaseNode(295 /* CaseClause */);
15473
15477
  node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression);
15474
15478
  node.statements = createNodeArray(statements);
15475
15479
  node.transformFlags |= propagateChildFlags(node.expression) | propagateChildrenFlags(node.statements);
@@ -15480,7 +15484,7 @@ function createNodeFactory(flags, baseFactory2) {
15480
15484
  return node.expression !== expression || node.statements !== statements ? update(createCaseClause(expression, statements), node) : node;
15481
15485
  }
15482
15486
  function createDefaultClause(statements) {
15483
- const node = createBaseNode(295 /* DefaultClause */);
15487
+ const node = createBaseNode(296 /* DefaultClause */);
15484
15488
  node.statements = createNodeArray(statements);
15485
15489
  node.transformFlags = propagateChildrenFlags(node.statements);
15486
15490
  return node;
@@ -15489,7 +15493,7 @@ function createNodeFactory(flags, baseFactory2) {
15489
15493
  return node.statements !== statements ? update(createDefaultClause(statements), node) : node;
15490
15494
  }
15491
15495
  function createHeritageClause(token, types) {
15492
- const node = createBaseNode(296 /* HeritageClause */);
15496
+ const node = createBaseNode(297 /* HeritageClause */);
15493
15497
  node.token = token;
15494
15498
  node.types = createNodeArray(types);
15495
15499
  node.transformFlags |= propagateChildrenFlags(node.types);
@@ -15509,7 +15513,7 @@ function createNodeFactory(flags, baseFactory2) {
15509
15513
  return node.types !== types ? update(createHeritageClause(node.token, types), node) : node;
15510
15514
  }
15511
15515
  function createCatchClause(variableDeclaration, block) {
15512
- const node = createBaseNode(297 /* CatchClause */);
15516
+ const node = createBaseNode(298 /* CatchClause */);
15513
15517
  node.variableDeclaration = asVariableDeclaration(variableDeclaration);
15514
15518
  node.block = block;
15515
15519
  node.transformFlags |= propagateChildFlags(node.variableDeclaration) | propagateChildFlags(node.block) | (!variableDeclaration ? 64 /* ContainsES2019 */ : 0 /* None */);
@@ -15521,7 +15525,7 @@ function createNodeFactory(flags, baseFactory2) {
15521
15525
  return node.variableDeclaration !== variableDeclaration || node.block !== block ? update(createCatchClause(variableDeclaration, block), node) : node;
15522
15526
  }
15523
15527
  function createPropertyAssignment(name, initializer) {
15524
- const node = createBaseDeclaration(301 /* PropertyAssignment */);
15528
+ const node = createBaseDeclaration(302 /* PropertyAssignment */);
15525
15529
  node.name = asName(name);
15526
15530
  node.initializer = parenthesizerRules().parenthesizeExpressionForDisallowedComma(initializer);
15527
15531
  node.transformFlags |= propagateNameFlags(node.name) | propagateChildFlags(node.initializer);
@@ -15543,7 +15547,7 @@ function createNodeFactory(flags, baseFactory2) {
15543
15547
  return update(updated, original);
15544
15548
  }
15545
15549
  function createShorthandPropertyAssignment(name, objectAssignmentInitializer) {
15546
- const node = createBaseDeclaration(302 /* ShorthandPropertyAssignment */);
15550
+ const node = createBaseDeclaration(303 /* ShorthandPropertyAssignment */);
15547
15551
  node.name = asName(name);
15548
15552
  node.objectAssignmentInitializer = objectAssignmentInitializer && parenthesizerRules().parenthesizeExpressionForDisallowedComma(objectAssignmentInitializer);
15549
15553
  node.transformFlags |= propagateIdentifierNameFlags(node.name) | propagateChildFlags(node.objectAssignmentInitializer) | 1024 /* ContainsES2015 */;
@@ -15567,7 +15571,7 @@ function createNodeFactory(flags, baseFactory2) {
15567
15571
  return update(updated, original);
15568
15572
  }
15569
15573
  function createSpreadAssignment(expression) {
15570
- const node = createBaseDeclaration(303 /* SpreadAssignment */);
15574
+ const node = createBaseDeclaration(304 /* SpreadAssignment */);
15571
15575
  node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression);
15572
15576
  node.transformFlags |= propagateChildFlags(node.expression) | 128 /* ContainsES2018 */ | 65536 /* ContainsObjectRestOrSpread */;
15573
15577
  node.jsDoc = void 0;
@@ -15577,7 +15581,7 @@ function createNodeFactory(flags, baseFactory2) {
15577
15581
  return node.expression !== expression ? update(createSpreadAssignment(expression), node) : node;
15578
15582
  }
15579
15583
  function createEnumMember(name, initializer) {
15580
- const node = createBaseDeclaration(304 /* EnumMember */);
15584
+ const node = createBaseDeclaration(305 /* EnumMember */);
15581
15585
  node.name = asName(name);
15582
15586
  node.initializer = initializer && parenthesizerRules().parenthesizeExpressionForDisallowedComma(initializer);
15583
15587
  node.transformFlags |= propagateChildFlags(node.name) | propagateChildFlags(node.initializer) | 1 /* ContainsTypeScript */;
@@ -15588,7 +15592,7 @@ function createNodeFactory(flags, baseFactory2) {
15588
15592
  return node.name !== name || node.initializer !== initializer ? update(createEnumMember(name, initializer), node) : node;
15589
15593
  }
15590
15594
  function createSourceFile2(statements, endOfFileToken, flags2) {
15591
- const node = baseFactory2.createBaseSourceFileNode(310 /* SourceFile */);
15595
+ const node = baseFactory2.createBaseSourceFileNode(311 /* SourceFile */);
15592
15596
  node.statements = createNodeArray(statements);
15593
15597
  node.endOfFileToken = endOfFileToken;
15594
15598
  node.flags |= flags2;
@@ -15669,7 +15673,7 @@ function createNodeFactory(flags, baseFactory2) {
15669
15673
  return node;
15670
15674
  }
15671
15675
  function cloneSourceFileWorker(source) {
15672
- const node = baseFactory2.createBaseSourceFileNode(310 /* SourceFile */);
15676
+ const node = baseFactory2.createBaseSourceFileNode(311 /* SourceFile */);
15673
15677
  node.flags |= source.flags & ~8 /* Synthesized */;
15674
15678
  for (const p in source) {
15675
15679
  if (hasProperty(node, p) || !hasProperty(source, p)) {
@@ -15703,7 +15707,7 @@ function createNodeFactory(flags, baseFactory2) {
15703
15707
  return node.statements !== statements || node.isDeclarationFile !== isDeclarationFile || node.referencedFiles !== referencedFiles || node.typeReferenceDirectives !== typeReferenceDirectives || node.hasNoDefaultLib !== hasNoDefaultLib || node.libReferenceDirectives !== libReferenceDirectives ? update(cloneSourceFileWithChanges(node, statements, isDeclarationFile, referencedFiles, typeReferenceDirectives, hasNoDefaultLib, libReferenceDirectives), node) : node;
15704
15708
  }
15705
15709
  function createBundle(sourceFiles, prepends = emptyArray) {
15706
- const node = createBaseNode(311 /* Bundle */);
15710
+ const node = createBaseNode(312 /* Bundle */);
15707
15711
  node.prepends = prepends;
15708
15712
  node.sourceFiles = sourceFiles;
15709
15713
  node.syntheticFileReferences = void 0;
@@ -15716,7 +15720,7 @@ function createNodeFactory(flags, baseFactory2) {
15716
15720
  return node.sourceFiles !== sourceFiles || node.prepends !== prepends ? update(createBundle(sourceFiles, prepends), node) : node;
15717
15721
  }
15718
15722
  function createUnparsedSource(prologues, syntheticReferences, texts) {
15719
- const node = createBaseNode(312 /* UnparsedSource */);
15723
+ const node = createBaseNode(313 /* UnparsedSource */);
15720
15724
  node.prologues = prologues;
15721
15725
  node.syntheticReferences = syntheticReferences;
15722
15726
  node.texts = texts;
@@ -15733,24 +15737,24 @@ function createNodeFactory(flags, baseFactory2) {
15733
15737
  return node;
15734
15738
  }
15735
15739
  function createUnparsedPrologue(data) {
15736
- return createBaseUnparsedNode(305 /* UnparsedPrologue */, data);
15740
+ return createBaseUnparsedNode(306 /* UnparsedPrologue */, data);
15737
15741
  }
15738
15742
  function createUnparsedPrepend(data, texts) {
15739
- const node = createBaseUnparsedNode(306 /* UnparsedPrepend */, data);
15743
+ const node = createBaseUnparsedNode(307 /* UnparsedPrepend */, data);
15740
15744
  node.texts = texts;
15741
15745
  return node;
15742
15746
  }
15743
15747
  function createUnparsedTextLike(data, internal) {
15744
- return createBaseUnparsedNode(internal ? 308 /* UnparsedInternalText */ : 307 /* UnparsedText */, data);
15748
+ return createBaseUnparsedNode(internal ? 309 /* UnparsedInternalText */ : 308 /* UnparsedText */, data);
15745
15749
  }
15746
15750
  function createUnparsedSyntheticReference(section) {
15747
- const node = createBaseNode(309 /* UnparsedSyntheticReference */);
15751
+ const node = createBaseNode(310 /* UnparsedSyntheticReference */);
15748
15752
  node.data = section.data;
15749
15753
  node.section = section;
15750
15754
  return node;
15751
15755
  }
15752
15756
  function createInputFiles() {
15753
- const node = createBaseNode(313 /* InputFiles */);
15757
+ const node = createBaseNode(314 /* InputFiles */);
15754
15758
  node.javascriptText = "";
15755
15759
  node.declarationText = "";
15756
15760
  return node;
@@ -15763,18 +15767,18 @@ function createNodeFactory(flags, baseFactory2) {
15763
15767
  return node;
15764
15768
  }
15765
15769
  function createSyntaxList(children) {
15766
- const node = createBaseNode(356 /* SyntaxList */);
15770
+ const node = createBaseNode(357 /* SyntaxList */);
15767
15771
  node._children = children;
15768
15772
  return node;
15769
15773
  }
15770
15774
  function createNotEmittedStatement(original) {
15771
- const node = createBaseNode(357 /* NotEmittedStatement */);
15775
+ const node = createBaseNode(358 /* NotEmittedStatement */);
15772
15776
  node.original = original;
15773
15777
  setTextRange(node, original);
15774
15778
  return node;
15775
15779
  }
15776
15780
  function createPartiallyEmittedExpression(expression, original) {
15777
- const node = createBaseNode(358 /* PartiallyEmittedExpression */);
15781
+ const node = createBaseNode(359 /* PartiallyEmittedExpression */);
15778
15782
  node.expression = expression;
15779
15783
  node.original = original;
15780
15784
  node.transformFlags |= propagateChildFlags(node.expression) | 1 /* ContainsTypeScript */;
@@ -15796,7 +15800,7 @@ function createNodeFactory(flags, baseFactory2) {
15796
15800
  return node;
15797
15801
  }
15798
15802
  function createCommaListExpression(elements) {
15799
- const node = createBaseNode(359 /* CommaListExpression */);
15803
+ const node = createBaseNode(360 /* CommaListExpression */);
15800
15804
  node.elements = createNodeArray(sameFlatMap(elements, flattenCommaElements));
15801
15805
  node.transformFlags |= propagateChildrenFlags(node.elements);
15802
15806
  return node;
@@ -15805,19 +15809,19 @@ function createNodeFactory(flags, baseFactory2) {
15805
15809
  return node.elements !== elements ? update(createCommaListExpression(elements), node) : node;
15806
15810
  }
15807
15811
  function createEndOfDeclarationMarker(original) {
15808
- const node = createBaseNode(361 /* EndOfDeclarationMarker */);
15812
+ const node = createBaseNode(362 /* EndOfDeclarationMarker */);
15809
15813
  node.emitNode = {};
15810
15814
  node.original = original;
15811
15815
  return node;
15812
15816
  }
15813
15817
  function createMergeDeclarationMarker(original) {
15814
- const node = createBaseNode(360 /* MergeDeclarationMarker */);
15818
+ const node = createBaseNode(361 /* MergeDeclarationMarker */);
15815
15819
  node.emitNode = {};
15816
15820
  node.original = original;
15817
15821
  return node;
15818
15822
  }
15819
15823
  function createSyntheticReferenceExpression(expression, thisArg) {
15820
- const node = createBaseNode(362 /* SyntheticReferenceExpression */);
15824
+ const node = createBaseNode(363 /* SyntheticReferenceExpression */);
15821
15825
  node.expression = expression;
15822
15826
  node.thisArg = thisArg;
15823
15827
  node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.thisArg);
@@ -16060,7 +16064,7 @@ function createNodeFactory(flags, baseFactory2) {
16060
16064
  return updateSatisfiesExpression(outerExpression, expression, outerExpression.type);
16061
16065
  case 234 /* NonNullExpression */:
16062
16066
  return updateNonNullExpression(outerExpression, expression);
16063
- case 358 /* PartiallyEmittedExpression */:
16067
+ case 359 /* PartiallyEmittedExpression */:
16064
16068
  return updatePartiallyEmittedExpression(outerExpression, expression);
16065
16069
  }
16066
16070
  }
@@ -16361,14 +16365,13 @@ function createNodeFactory(flags, baseFactory2) {
16361
16365
  return statements;
16362
16366
  }
16363
16367
  function updateModifiers(node, modifiers) {
16364
- var _a2;
16365
16368
  let modifierArray;
16366
16369
  if (typeof modifiers === "number") {
16367
16370
  modifierArray = createModifiersFromModifierFlags(modifiers);
16368
16371
  } else {
16369
16372
  modifierArray = modifiers;
16370
16373
  }
16371
- return isTypeParameterDeclaration(node) ? updateTypeParameterDeclaration(node, modifierArray, node.name, node.constraint, node.default) : isParameter(node) ? updateParameterDeclaration(node, modifierArray, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer) : isConstructorTypeNode(node) ? updateConstructorTypeNode1(node, modifierArray, node.typeParameters, node.parameters, node.type) : isPropertySignature(node) ? updatePropertySignature(node, modifierArray, node.name, node.questionToken, node.type) : isPropertyDeclaration(node) ? updatePropertyDeclaration(node, modifierArray, node.name, (_a2 = node.questionToken) != null ? _a2 : node.exclamationToken, node.type, node.initializer) : isMethodSignature(node) ? updateMethodSignature(node, modifierArray, node.name, node.questionToken, node.typeParameters, node.parameters, node.type) : isMethodDeclaration(node) ? updateMethodDeclaration(node, modifierArray, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body) : isConstructorDeclaration(node) ? updateConstructorDeclaration(node, modifierArray, node.parameters, node.body) : isGetAccessorDeclaration(node) ? updateGetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.type, node.body) : isSetAccessorDeclaration(node) ? updateSetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.body) : isIndexSignatureDeclaration(node) ? updateIndexSignature(node, modifierArray, node.parameters, node.type) : isFunctionExpression(node) ? updateFunctionExpression(node, modifierArray, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) : isArrowFunction(node) ? updateArrowFunction(node, modifierArray, node.typeParameters, node.parameters, node.type, node.equalsGreaterThanToken, node.body) : isClassExpression(node) ? updateClassExpression(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isVariableStatement(node) ? updateVariableStatement(node, modifierArray, node.declarationList) : isFunctionDeclaration(node) ? updateFunctionDeclaration(node, modifierArray, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) : isClassDeclaration(node) ? updateClassDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isInterfaceDeclaration(node) ? updateInterfaceDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isTypeAliasDeclaration(node) ? updateTypeAliasDeclaration(node, modifierArray, node.name, node.typeParameters, node.type) : isEnumDeclaration(node) ? updateEnumDeclaration(node, modifierArray, node.name, node.members) : isModuleDeclaration(node) ? updateModuleDeclaration(node, modifierArray, node.name, node.body) : isImportEqualsDeclaration(node) ? updateImportEqualsDeclaration(node, modifierArray, node.isTypeOnly, node.name, node.moduleReference) : isImportDeclaration(node) ? updateImportDeclaration(node, modifierArray, node.importClause, node.moduleSpecifier, node.assertClause) : isExportAssignment(node) ? updateExportAssignment(node, modifierArray, node.expression) : isExportDeclaration(node) ? updateExportDeclaration(node, modifierArray, node.isTypeOnly, node.exportClause, node.moduleSpecifier, node.assertClause) : Debug.assertNever(node);
16374
+ return isTypeParameterDeclaration(node) ? updateTypeParameterDeclaration(node, modifierArray, node.name, node.constraint, node.default) : isParameter(node) ? updateParameterDeclaration(node, modifierArray, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer) : isConstructorTypeNode(node) ? updateConstructorTypeNode1(node, modifierArray, node.typeParameters, node.parameters, node.type) : isPropertySignature(node) ? updatePropertySignature(node, modifierArray, node.name, node.questionToken, node.type) : isPropertyDeclaration(node) ? updatePropertyDeclaration(node, modifierArray, node.name, node.questionToken ?? node.exclamationToken, node.type, node.initializer) : isMethodSignature(node) ? updateMethodSignature(node, modifierArray, node.name, node.questionToken, node.typeParameters, node.parameters, node.type) : isMethodDeclaration(node) ? updateMethodDeclaration(node, modifierArray, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body) : isConstructorDeclaration(node) ? updateConstructorDeclaration(node, modifierArray, node.parameters, node.body) : isGetAccessorDeclaration(node) ? updateGetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.type, node.body) : isSetAccessorDeclaration(node) ? updateSetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.body) : isIndexSignatureDeclaration(node) ? updateIndexSignature(node, modifierArray, node.parameters, node.type) : isFunctionExpression(node) ? updateFunctionExpression(node, modifierArray, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) : isArrowFunction(node) ? updateArrowFunction(node, modifierArray, node.typeParameters, node.parameters, node.type, node.equalsGreaterThanToken, node.body) : isClassExpression(node) ? updateClassExpression(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isVariableStatement(node) ? updateVariableStatement(node, modifierArray, node.declarationList) : isFunctionDeclaration(node) ? updateFunctionDeclaration(node, modifierArray, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) : isClassDeclaration(node) ? updateClassDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isInterfaceDeclaration(node) ? updateInterfaceDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isTypeAliasDeclaration(node) ? updateTypeAliasDeclaration(node, modifierArray, node.name, node.typeParameters, node.type) : isEnumDeclaration(node) ? updateEnumDeclaration(node, modifierArray, node.name, node.members) : isModuleDeclaration(node) ? updateModuleDeclaration(node, modifierArray, node.name, node.body) : isImportEqualsDeclaration(node) ? updateImportEqualsDeclaration(node, modifierArray, node.isTypeOnly, node.name, node.moduleReference) : isImportDeclaration(node) ? updateImportDeclaration(node, modifierArray, node.importClause, node.moduleSpecifier, node.assertClause) : isExportAssignment(node) ? updateExportAssignment(node, modifierArray, node.expression) : isExportDeclaration(node) ? updateExportDeclaration(node, modifierArray, node.isTypeOnly, node.exportClause, node.moduleSpecifier, node.assertClause) : Debug.assertNever(node);
16372
16375
  }
16373
16376
  function asNodeArray(array) {
16374
16377
  return array ? createNodeArray(array) : void 0;
@@ -16418,43 +16421,43 @@ function updateWithOriginal(updated, original) {
16418
16421
  }
16419
16422
  function getDefaultTagNameForKind(kind) {
16420
16423
  switch (kind) {
16421
- case 349 /* JSDocTypeTag */:
16424
+ case 350 /* JSDocTypeTag */:
16422
16425
  return "type";
16423
- case 347 /* JSDocReturnTag */:
16426
+ case 348 /* JSDocReturnTag */:
16424
16427
  return "returns";
16425
- case 348 /* JSDocThisTag */:
16428
+ case 349 /* JSDocThisTag */:
16426
16429
  return "this";
16427
- case 345 /* JSDocEnumTag */:
16430
+ case 346 /* JSDocEnumTag */:
16428
16431
  return "enum";
16429
- case 335 /* JSDocAuthorTag */:
16432
+ case 336 /* JSDocAuthorTag */:
16430
16433
  return "author";
16431
- case 337 /* JSDocClassTag */:
16434
+ case 338 /* JSDocClassTag */:
16432
16435
  return "class";
16433
- case 338 /* JSDocPublicTag */:
16436
+ case 339 /* JSDocPublicTag */:
16434
16437
  return "public";
16435
- case 339 /* JSDocPrivateTag */:
16438
+ case 340 /* JSDocPrivateTag */:
16436
16439
  return "private";
16437
- case 340 /* JSDocProtectedTag */:
16440
+ case 341 /* JSDocProtectedTag */:
16438
16441
  return "protected";
16439
- case 341 /* JSDocReadonlyTag */:
16442
+ case 342 /* JSDocReadonlyTag */:
16440
16443
  return "readonly";
16441
- case 342 /* JSDocOverrideTag */:
16444
+ case 343 /* JSDocOverrideTag */:
16442
16445
  return "override";
16443
- case 350 /* JSDocTemplateTag */:
16446
+ case 351 /* JSDocTemplateTag */:
16444
16447
  return "template";
16445
- case 351 /* JSDocTypedefTag */:
16448
+ case 352 /* JSDocTypedefTag */:
16446
16449
  return "typedef";
16447
- case 346 /* JSDocParameterTag */:
16450
+ case 347 /* JSDocParameterTag */:
16448
16451
  return "param";
16449
- case 353 /* JSDocPropertyTag */:
16452
+ case 354 /* JSDocPropertyTag */:
16450
16453
  return "prop";
16451
- case 343 /* JSDocCallbackTag */:
16454
+ case 344 /* JSDocCallbackTag */:
16452
16455
  return "callback";
16453
- case 344 /* JSDocOverloadTag */:
16456
+ case 345 /* JSDocOverloadTag */:
16454
16457
  return "overload";
16455
- case 333 /* JSDocAugmentsTag */:
16458
+ case 334 /* JSDocAugmentsTag */:
16456
16459
  return "augments";
16457
- case 334 /* JSDocImplementsTag */:
16460
+ case 335 /* JSDocImplementsTag */:
16458
16461
  return "implements";
16459
16462
  default:
16460
16463
  return Debug.fail(`Unsupported kind: ${Debug.formatSyntaxKind(kind)}`);
@@ -16588,7 +16591,7 @@ function getTransformFlagsSubtreeExclusions(kind) {
16588
16591
  return -2 /* TypeExcludes */;
16589
16592
  case 209 /* ObjectLiteralExpression */:
16590
16593
  return -2147278848 /* ObjectLiteralExcludes */;
16591
- case 297 /* CatchClause */:
16594
+ case 298 /* CatchClause */:
16592
16595
  return -2147418112 /* CatchClauseExcludes */;
16593
16596
  case 205 /* ObjectBindingPattern */:
16594
16597
  case 206 /* ArrayBindingPattern */:
@@ -16596,7 +16599,7 @@ function getTransformFlagsSubtreeExclusions(kind) {
16596
16599
  case 215 /* TypeAssertionExpression */:
16597
16600
  case 237 /* SatisfiesExpression */:
16598
16601
  case 233 /* AsExpression */:
16599
- case 358 /* PartiallyEmittedExpression */:
16602
+ case 359 /* PartiallyEmittedExpression */:
16600
16603
  case 216 /* ParenthesizedExpression */:
16601
16604
  case 108 /* SuperKeyword */:
16602
16605
  return -2147483648 /* OuterExpressionExcludes */;
@@ -16683,13 +16686,12 @@ function mergeTokenSourceMapRanges(sourceRanges, destRanges) {
16683
16686
 
16684
16687
  // src/compiler/factory/emitNode.ts
16685
16688
  function getOrCreateEmitNode(node) {
16686
- var _a2;
16687
16689
  if (!node.emitNode) {
16688
16690
  if (isParseTreeNode(node)) {
16689
- if (node.kind === 310 /* SourceFile */) {
16691
+ if (node.kind === 311 /* SourceFile */) {
16690
16692
  return node.emitNode = { annotatedNodes: [node] };
16691
16693
  }
16692
- const sourceFile = (_a2 = getSourceFileOfNode(getParseTreeNode(getSourceFileOfNode(node)))) != null ? _a2 : Debug.fail("Could not determine parsed source file.");
16694
+ const sourceFile = getSourceFileOfNode(getParseTreeNode(getSourceFileOfNode(node))) ?? Debug.fail("Could not determine parsed source file.");
16693
16695
  getOrCreateEmitNode(sourceFile).annotatedNodes.push(node);
16694
16696
  }
16695
16697
  node.emitNode = {};
@@ -16703,36 +16705,36 @@ function setEmitFlags(node, emitFlags) {
16703
16705
  return node;
16704
16706
  }
16705
16707
  function getSourceMapRange(node) {
16706
- var _a2, _b;
16707
- return (_b = (_a2 = node.emitNode) == null ? void 0 : _a2.sourceMapRange) != null ? _b : node;
16708
+ var _a;
16709
+ return ((_a = node.emitNode) == null ? void 0 : _a.sourceMapRange) ?? node;
16708
16710
  }
16709
16711
  function getStartsOnNewLine(node) {
16710
- var _a2;
16711
- return (_a2 = node.emitNode) == null ? void 0 : _a2.startsOnNewLine;
16712
+ var _a;
16713
+ return (_a = node.emitNode) == null ? void 0 : _a.startsOnNewLine;
16712
16714
  }
16713
16715
  function setStartsOnNewLine(node, newLine) {
16714
16716
  getOrCreateEmitNode(node).startsOnNewLine = newLine;
16715
16717
  return node;
16716
16718
  }
16717
16719
  function getCommentRange(node) {
16718
- var _a2, _b;
16719
- return (_b = (_a2 = node.emitNode) == null ? void 0 : _a2.commentRange) != null ? _b : node;
16720
+ var _a;
16721
+ return ((_a = node.emitNode) == null ? void 0 : _a.commentRange) ?? node;
16720
16722
  }
16721
16723
  function getSyntheticLeadingComments(node) {
16722
- var _a2;
16723
- return (_a2 = node.emitNode) == null ? void 0 : _a2.leadingComments;
16724
+ var _a;
16725
+ return (_a = node.emitNode) == null ? void 0 : _a.leadingComments;
16724
16726
  }
16725
16727
  function getSyntheticTrailingComments(node) {
16726
- var _a2;
16727
- return (_a2 = node.emitNode) == null ? void 0 : _a2.trailingComments;
16728
+ var _a;
16729
+ return (_a = node.emitNode) == null ? void 0 : _a.trailingComments;
16728
16730
  }
16729
16731
  function setIdentifierTypeArguments(node, typeArguments) {
16730
16732
  getOrCreateEmitNode(node).identifierTypeArguments = typeArguments;
16731
16733
  return node;
16732
16734
  }
16733
16735
  function getIdentifierTypeArguments(node) {
16734
- var _a2;
16735
- return (_a2 = node.emitNode) == null ? void 0 : _a2.identifierTypeArguments;
16736
+ var _a;
16737
+ return (_a = node.emitNode) == null ? void 0 : _a.identifierTypeArguments;
16736
16738
  }
16737
16739
  function setIdentifierAutoGenerate(node, autoGenerate) {
16738
16740
  getOrCreateEmitNode(node).autoGenerate = autoGenerate;
@@ -17018,7 +17020,7 @@ function isMetaProperty(node) {
17018
17020
  return node.kind === 235 /* MetaProperty */;
17019
17021
  }
17020
17022
  function isCommaListExpression(node) {
17021
- return node.kind === 359 /* CommaListExpression */;
17023
+ return node.kind === 360 /* CommaListExpression */;
17022
17024
  }
17023
17025
  function isTemplateSpan(node) {
17024
17026
  return node.kind === 238 /* TemplateSpan */;
@@ -17072,13 +17074,13 @@ function isImportClause(node) {
17072
17074
  return node.kind === 272 /* ImportClause */;
17073
17075
  }
17074
17076
  function isImportTypeAssertionContainer(node) {
17075
- return node.kind === 300 /* ImportTypeAssertionContainer */;
17077
+ return node.kind === 301 /* ImportTypeAssertionContainer */;
17076
17078
  }
17077
17079
  function isAssertClause(node) {
17078
- return node.kind === 298 /* AssertClause */;
17080
+ return node.kind === 299 /* AssertClause */;
17079
17081
  }
17080
17082
  function isAssertEntry(node) {
17081
- return node.kind === 299 /* AssertEntry */;
17083
+ return node.kind === 300 /* AssertEntry */;
17082
17084
  }
17083
17085
  function isImportSpecifier(node) {
17084
17086
  return node.kind === 275 /* ImportSpecifier */;
@@ -17093,7 +17095,7 @@ function isExportSpecifier(node) {
17093
17095
  return node.kind === 280 /* ExportSpecifier */;
17094
17096
  }
17095
17097
  function isNotEmittedStatement(node) {
17096
- return node.kind === 357 /* NotEmittedStatement */;
17098
+ return node.kind === 358 /* NotEmittedStatement */;
17097
17099
  }
17098
17100
  function isExternalModuleReference(node) {
17099
17101
  return node.kind === 282 /* ExternalModuleReference */;
@@ -17114,67 +17116,67 @@ function isJsxAttributes(node) {
17114
17116
  return node.kind === 291 /* JsxAttributes */;
17115
17117
  }
17116
17118
  function isDefaultClause(node) {
17117
- return node.kind === 295 /* DefaultClause */;
17119
+ return node.kind === 296 /* DefaultClause */;
17118
17120
  }
17119
17121
  function isHeritageClause(node) {
17120
- return node.kind === 296 /* HeritageClause */;
17122
+ return node.kind === 297 /* HeritageClause */;
17121
17123
  }
17122
17124
  function isCatchClause(node) {
17123
- return node.kind === 297 /* CatchClause */;
17125
+ return node.kind === 298 /* CatchClause */;
17124
17126
  }
17125
17127
  function isPropertyAssignment(node) {
17126
- return node.kind === 301 /* PropertyAssignment */;
17128
+ return node.kind === 302 /* PropertyAssignment */;
17127
17129
  }
17128
17130
  function isEnumMember(node) {
17129
- return node.kind === 304 /* EnumMember */;
17131
+ return node.kind === 305 /* EnumMember */;
17130
17132
  }
17131
17133
  function isSourceFile(node) {
17132
- return node.kind === 310 /* SourceFile */;
17134
+ return node.kind === 311 /* SourceFile */;
17133
17135
  }
17134
17136
  function isJSDocTypeExpression(node) {
17135
- return node.kind === 314 /* JSDocTypeExpression */;
17137
+ return node.kind === 315 /* JSDocTypeExpression */;
17136
17138
  }
17137
17139
  function isJSDocNullableType(node) {
17138
- return node.kind === 319 /* JSDocNullableType */;
17140
+ return node.kind === 320 /* JSDocNullableType */;
17139
17141
  }
17140
17142
  function isJSDocFunctionType(node) {
17141
- return node.kind === 322 /* JSDocFunctionType */;
17143
+ return node.kind === 323 /* JSDocFunctionType */;
17142
17144
  }
17143
17145
  function isJSDoc(node) {
17144
- return node.kind === 325 /* JSDoc */;
17146
+ return node.kind === 326 /* JSDoc */;
17145
17147
  }
17146
17148
  function isJSDocPublicTag(node) {
17147
- return node.kind === 338 /* JSDocPublicTag */;
17149
+ return node.kind === 339 /* JSDocPublicTag */;
17148
17150
  }
17149
17151
  function isJSDocPrivateTag(node) {
17150
- return node.kind === 339 /* JSDocPrivateTag */;
17152
+ return node.kind === 340 /* JSDocPrivateTag */;
17151
17153
  }
17152
17154
  function isJSDocProtectedTag(node) {
17153
- return node.kind === 340 /* JSDocProtectedTag */;
17155
+ return node.kind === 341 /* JSDocProtectedTag */;
17154
17156
  }
17155
17157
  function isJSDocReadonlyTag(node) {
17156
- return node.kind === 341 /* JSDocReadonlyTag */;
17158
+ return node.kind === 342 /* JSDocReadonlyTag */;
17157
17159
  }
17158
17160
  function isJSDocOverrideTag(node) {
17159
- return node.kind === 342 /* JSDocOverrideTag */;
17161
+ return node.kind === 343 /* JSDocOverrideTag */;
17160
17162
  }
17161
17163
  function isJSDocDeprecatedTag(node) {
17162
- return node.kind === 336 /* JSDocDeprecatedTag */;
17164
+ return node.kind === 337 /* JSDocDeprecatedTag */;
17163
17165
  }
17164
17166
  function isJSDocParameterTag(node) {
17165
- return node.kind === 346 /* JSDocParameterTag */;
17167
+ return node.kind === 347 /* JSDocParameterTag */;
17166
17168
  }
17167
17169
  function isJSDocReturnTag(node) {
17168
- return node.kind === 347 /* JSDocReturnTag */;
17170
+ return node.kind === 348 /* JSDocReturnTag */;
17169
17171
  }
17170
17172
  function isJSDocTypeTag(node) {
17171
- return node.kind === 349 /* JSDocTypeTag */;
17173
+ return node.kind === 350 /* JSDocTypeTag */;
17172
17174
  }
17173
17175
  function isJSDocTemplateTag(node) {
17174
- return node.kind === 350 /* JSDocTemplateTag */;
17176
+ return node.kind === 351 /* JSDocTemplateTag */;
17175
17177
  }
17176
17178
  function isJSDocSatisfiesTag(node) {
17177
- return node.kind === 355 /* JSDocSatisfiesTag */;
17179
+ return node.kind === 356 /* JSDocSatisfiesTag */;
17178
17180
  }
17179
17181
 
17180
17182
  // src/compiler/factory/utilities.ts
@@ -17219,7 +17221,7 @@ function isOuterExpression(node, kinds = 15 /* All */) {
17219
17221
  return (kinds & 2 /* TypeAssertions */) !== 0;
17220
17222
  case 234 /* NonNullExpression */:
17221
17223
  return (kinds & 4 /* NonNullAssertions */) !== 0;
17222
- case 358 /* PartiallyEmittedExpression */:
17224
+ case 359 /* PartiallyEmittedExpression */:
17223
17225
  return (kinds & 8 /* PartiallyEmittedExpressions */) !== 0;
17224
17226
  }
17225
17227
  return false;
@@ -17243,11 +17245,11 @@ function getTargetOfBindingOrAssignmentElement(bindingElement) {
17243
17245
  }
17244
17246
  if (isObjectLiteralElementLike(bindingElement)) {
17245
17247
  switch (bindingElement.kind) {
17246
- case 301 /* PropertyAssignment */:
17248
+ case 302 /* PropertyAssignment */:
17247
17249
  return getTargetOfBindingOrAssignmentElement(bindingElement.initializer);
17248
- case 302 /* ShorthandPropertyAssignment */:
17250
+ case 303 /* ShorthandPropertyAssignment */:
17249
17251
  return bindingElement.name;
17250
- case 303 /* SpreadAssignment */:
17252
+ case 304 /* SpreadAssignment */:
17251
17253
  return getTargetOfBindingOrAssignmentElement(bindingElement.expression);
17252
17254
  }
17253
17255
  return void 0;
@@ -17564,10 +17566,10 @@ var forEachChildTable = {
17564
17566
  [167 /* TypeParameter */]: function forEachChildInTypeParameter(node, cbNode, cbNodes) {
17565
17567
  return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.constraint) || visitNode2(cbNode, node.default) || visitNode2(cbNode, node.expression);
17566
17568
  },
17567
- [302 /* ShorthandPropertyAssignment */]: function forEachChildInShorthandPropertyAssignment(node, cbNode, cbNodes) {
17569
+ [303 /* ShorthandPropertyAssignment */]: function forEachChildInShorthandPropertyAssignment(node, cbNode, cbNodes) {
17568
17570
  return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.equalsToken) || visitNode2(cbNode, node.objectAssignmentInitializer);
17569
17571
  },
17570
- [303 /* SpreadAssignment */]: function forEachChildInSpreadAssignment(node, cbNode, _cbNodes) {
17572
+ [304 /* SpreadAssignment */]: function forEachChildInSpreadAssignment(node, cbNode, _cbNodes) {
17571
17573
  return visitNode2(cbNode, node.expression);
17572
17574
  },
17573
17575
  [168 /* Parameter */]: function forEachChildInParameter(node, cbNode, cbNodes) {
@@ -17579,7 +17581,7 @@ var forEachChildTable = {
17579
17581
  [170 /* PropertySignature */]: function forEachChildInPropertySignature(node, cbNode, cbNodes) {
17580
17582
  return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer);
17581
17583
  },
17582
- [301 /* PropertyAssignment */]: function forEachChildInPropertyAssignment(node, cbNode, cbNodes) {
17584
+ [302 /* PropertyAssignment */]: function forEachChildInPropertyAssignment(node, cbNode, cbNodes) {
17583
17585
  return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.initializer);
17584
17586
  },
17585
17587
  [259 /* VariableDeclaration */]: function forEachChildInVariableDeclaration(node, cbNode, _cbNodes) {
@@ -17655,7 +17657,7 @@ var forEachChildTable = {
17655
17657
  [204 /* ImportType */]: function forEachChildInImportType(node, cbNode, cbNodes) {
17656
17658
  return visitNode2(cbNode, node.argument) || visitNode2(cbNode, node.assertions) || visitNode2(cbNode, node.qualifier) || visitNodes(cbNode, cbNodes, node.typeArguments);
17657
17659
  },
17658
- [300 /* ImportTypeAssertionContainer */]: function forEachChildInImportTypeAssertionContainer(node, cbNode, _cbNodes) {
17660
+ [301 /* ImportTypeAssertionContainer */]: function forEachChildInImportTypeAssertionContainer(node, cbNode, _cbNodes) {
17659
17661
  return visitNode2(cbNode, node.assertClause);
17660
17662
  },
17661
17663
  [195 /* ParenthesizedType */]: forEachChildInParenthesizedTypeOrTypeOperator,
@@ -17741,7 +17743,7 @@ var forEachChildTable = {
17741
17743
  },
17742
17744
  [240 /* Block */]: forEachChildInBlock,
17743
17745
  [267 /* ModuleBlock */]: forEachChildInBlock,
17744
- [310 /* SourceFile */]: function forEachChildInSourceFile(node, cbNode, cbNodes) {
17746
+ [311 /* SourceFile */]: function forEachChildInSourceFile(node, cbNode, cbNodes) {
17745
17747
  return visitNodes(cbNode, cbNodes, node.statements) || visitNode2(cbNode, node.endOfFileToken);
17746
17748
  },
17747
17749
  [242 /* VariableStatement */]: function forEachChildInVariableStatement(node, cbNode, cbNodes) {
@@ -17785,10 +17787,10 @@ var forEachChildTable = {
17785
17787
  [268 /* CaseBlock */]: function forEachChildInCaseBlock(node, cbNode, cbNodes) {
17786
17788
  return visitNodes(cbNode, cbNodes, node.clauses);
17787
17789
  },
17788
- [294 /* CaseClause */]: function forEachChildInCaseClause(node, cbNode, cbNodes) {
17790
+ [295 /* CaseClause */]: function forEachChildInCaseClause(node, cbNode, cbNodes) {
17789
17791
  return visitNode2(cbNode, node.expression) || visitNodes(cbNode, cbNodes, node.statements);
17790
17792
  },
17791
- [295 /* DefaultClause */]: function forEachChildInDefaultClause(node, cbNode, cbNodes) {
17793
+ [296 /* DefaultClause */]: function forEachChildInDefaultClause(node, cbNode, cbNodes) {
17792
17794
  return visitNodes(cbNode, cbNodes, node.statements);
17793
17795
  },
17794
17796
  [255 /* LabeledStatement */]: function forEachChildInLabeledStatement(node, cbNode, _cbNodes) {
@@ -17800,7 +17802,7 @@ var forEachChildTable = {
17800
17802
  [257 /* TryStatement */]: function forEachChildInTryStatement(node, cbNode, _cbNodes) {
17801
17803
  return visitNode2(cbNode, node.tryBlock) || visitNode2(cbNode, node.catchClause) || visitNode2(cbNode, node.finallyBlock);
17802
17804
  },
17803
- [297 /* CatchClause */]: function forEachChildInCatchClause(node, cbNode, _cbNodes) {
17805
+ [298 /* CatchClause */]: function forEachChildInCatchClause(node, cbNode, _cbNodes) {
17804
17806
  return visitNode2(cbNode, node.variableDeclaration) || visitNode2(cbNode, node.block);
17805
17807
  },
17806
17808
  [169 /* Decorator */]: function forEachChildInDecorator(node, cbNode, _cbNodes) {
@@ -17817,7 +17819,7 @@ var forEachChildTable = {
17817
17819
  [265 /* EnumDeclaration */]: function forEachChildInEnumDeclaration(node, cbNode, cbNodes) {
17818
17820
  return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.members);
17819
17821
  },
17820
- [304 /* EnumMember */]: function forEachChildInEnumMember(node, cbNode, _cbNodes) {
17822
+ [305 /* EnumMember */]: function forEachChildInEnumMember(node, cbNode, _cbNodes) {
17821
17823
  return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.initializer);
17822
17824
  },
17823
17825
  [266 /* ModuleDeclaration */]: function forEachChildInModuleDeclaration(node, cbNode, cbNodes) {
@@ -17832,10 +17834,10 @@ var forEachChildTable = {
17832
17834
  [272 /* ImportClause */]: function forEachChildInImportClause(node, cbNode, _cbNodes) {
17833
17835
  return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.namedBindings);
17834
17836
  },
17835
- [298 /* AssertClause */]: function forEachChildInAssertClause(node, cbNode, cbNodes) {
17837
+ [299 /* AssertClause */]: function forEachChildInAssertClause(node, cbNode, cbNodes) {
17836
17838
  return visitNodes(cbNode, cbNodes, node.elements);
17837
17839
  },
17838
- [299 /* AssertEntry */]: function forEachChildInAssertEntry(node, cbNode, _cbNodes) {
17840
+ [300 /* AssertEntry */]: function forEachChildInAssertEntry(node, cbNode, _cbNodes) {
17839
17841
  return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.value);
17840
17842
  },
17841
17843
  [269 /* NamespaceExportDeclaration */]: function forEachChildInNamespaceExportDeclaration(node, cbNode, cbNodes) {
@@ -17872,7 +17874,7 @@ var forEachChildTable = {
17872
17874
  [166 /* ComputedPropertyName */]: function forEachChildInComputedPropertyName(node, cbNode, _cbNodes) {
17873
17875
  return visitNode2(cbNode, node.expression);
17874
17876
  },
17875
- [296 /* HeritageClause */]: function forEachChildInHeritageClause(node, cbNode, cbNodes) {
17877
+ [297 /* HeritageClause */]: function forEachChildInHeritageClause(node, cbNode, cbNodes) {
17876
17878
  return visitNodes(cbNode, cbNodes, node.types);
17877
17879
  },
17878
17880
  [232 /* ExpressionWithTypeArguments */]: function forEachChildInExpressionWithTypeArguments(node, cbNode, cbNodes) {
@@ -17884,7 +17886,7 @@ var forEachChildTable = {
17884
17886
  [281 /* MissingDeclaration */]: function forEachChildInMissingDeclaration(node, cbNode, cbNodes) {
17885
17887
  return visitNodes(cbNode, cbNodes, node.modifiers);
17886
17888
  },
17887
- [359 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) {
17889
+ [360 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) {
17888
17890
  return visitNodes(cbNode, cbNodes, node.elements);
17889
17891
  },
17890
17892
  [283 /* JsxElement */]: function forEachChildInJsxElement(node, cbNode, cbNodes) {
@@ -17910,73 +17912,76 @@ var forEachChildTable = {
17910
17912
  [286 /* JsxClosingElement */]: function forEachChildInJsxClosingElement(node, cbNode, _cbNodes) {
17911
17913
  return visitNode2(cbNode, node.tagName);
17912
17914
  },
17915
+ [294 /* JsxNamespacedName */]: function forEachChildInJsxNamespacedName(node, cbNode, _cbNodes) {
17916
+ return visitNode2(cbNode, node.namespace) || visitNode2(cbNode, node.name);
17917
+ },
17913
17918
  [189 /* OptionalType */]: forEachChildInOptionalRestOrJSDocParameterModifier,
17914
17919
  [190 /* RestType */]: forEachChildInOptionalRestOrJSDocParameterModifier,
17915
- [314 /* JSDocTypeExpression */]: forEachChildInOptionalRestOrJSDocParameterModifier,
17916
- [320 /* JSDocNonNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier,
17917
- [319 /* JSDocNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier,
17918
- [321 /* JSDocOptionalType */]: forEachChildInOptionalRestOrJSDocParameterModifier,
17919
- [323 /* JSDocVariadicType */]: forEachChildInOptionalRestOrJSDocParameterModifier,
17920
- [322 /* JSDocFunctionType */]: function forEachChildInJSDocFunctionType(node, cbNode, cbNodes) {
17920
+ [315 /* JSDocTypeExpression */]: forEachChildInOptionalRestOrJSDocParameterModifier,
17921
+ [321 /* JSDocNonNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier,
17922
+ [320 /* JSDocNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier,
17923
+ [322 /* JSDocOptionalType */]: forEachChildInOptionalRestOrJSDocParameterModifier,
17924
+ [324 /* JSDocVariadicType */]: forEachChildInOptionalRestOrJSDocParameterModifier,
17925
+ [323 /* JSDocFunctionType */]: function forEachChildInJSDocFunctionType(node, cbNode, cbNodes) {
17921
17926
  return visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type);
17922
17927
  },
17923
- [325 /* JSDoc */]: function forEachChildInJSDoc(node, cbNode, cbNodes) {
17928
+ [326 /* JSDoc */]: function forEachChildInJSDoc(node, cbNode, cbNodes) {
17924
17929
  return (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)) || visitNodes(cbNode, cbNodes, node.tags);
17925
17930
  },
17926
- [352 /* JSDocSeeTag */]: function forEachChildInJSDocSeeTag(node, cbNode, cbNodes) {
17931
+ [353 /* JSDocSeeTag */]: function forEachChildInJSDocSeeTag(node, cbNode, cbNodes) {
17927
17932
  return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.name) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));
17928
17933
  },
17929
- [315 /* JSDocNameReference */]: function forEachChildInJSDocNameReference(node, cbNode, _cbNodes) {
17934
+ [316 /* JSDocNameReference */]: function forEachChildInJSDocNameReference(node, cbNode, _cbNodes) {
17930
17935
  return visitNode2(cbNode, node.name);
17931
17936
  },
17932
- [316 /* JSDocMemberName */]: function forEachChildInJSDocMemberName(node, cbNode, _cbNodes) {
17937
+ [317 /* JSDocMemberName */]: function forEachChildInJSDocMemberName(node, cbNode, _cbNodes) {
17933
17938
  return visitNode2(cbNode, node.left) || visitNode2(cbNode, node.right);
17934
17939
  },
17935
- [346 /* JSDocParameterTag */]: forEachChildInJSDocParameterOrPropertyTag,
17936
- [353 /* JSDocPropertyTag */]: forEachChildInJSDocParameterOrPropertyTag,
17937
- [335 /* JSDocAuthorTag */]: function forEachChildInJSDocAuthorTag(node, cbNode, cbNodes) {
17940
+ [347 /* JSDocParameterTag */]: forEachChildInJSDocParameterOrPropertyTag,
17941
+ [354 /* JSDocPropertyTag */]: forEachChildInJSDocParameterOrPropertyTag,
17942
+ [336 /* JSDocAuthorTag */]: function forEachChildInJSDocAuthorTag(node, cbNode, cbNodes) {
17938
17943
  return visitNode2(cbNode, node.tagName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));
17939
17944
  },
17940
- [334 /* JSDocImplementsTag */]: function forEachChildInJSDocImplementsTag(node, cbNode, cbNodes) {
17945
+ [335 /* JSDocImplementsTag */]: function forEachChildInJSDocImplementsTag(node, cbNode, cbNodes) {
17941
17946
  return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.class) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));
17942
17947
  },
17943
- [333 /* JSDocAugmentsTag */]: function forEachChildInJSDocAugmentsTag(node, cbNode, cbNodes) {
17948
+ [334 /* JSDocAugmentsTag */]: function forEachChildInJSDocAugmentsTag(node, cbNode, cbNodes) {
17944
17949
  return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.class) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));
17945
17950
  },
17946
- [350 /* JSDocTemplateTag */]: function forEachChildInJSDocTemplateTag(node, cbNode, cbNodes) {
17951
+ [351 /* JSDocTemplateTag */]: function forEachChildInJSDocTemplateTag(node, cbNode, cbNodes) {
17947
17952
  return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.constraint) || visitNodes(cbNode, cbNodes, node.typeParameters) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));
17948
17953
  },
17949
- [351 /* JSDocTypedefTag */]: function forEachChildInJSDocTypedefTag(node, cbNode, cbNodes) {
17950
- return visitNode2(cbNode, node.tagName) || (node.typeExpression && node.typeExpression.kind === 314 /* JSDocTypeExpression */ ? visitNode2(cbNode, node.typeExpression) || visitNode2(cbNode, node.fullName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)) : visitNode2(cbNode, node.fullName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)));
17954
+ [352 /* JSDocTypedefTag */]: function forEachChildInJSDocTypedefTag(node, cbNode, cbNodes) {
17955
+ return visitNode2(cbNode, node.tagName) || (node.typeExpression && node.typeExpression.kind === 315 /* JSDocTypeExpression */ ? visitNode2(cbNode, node.typeExpression) || visitNode2(cbNode, node.fullName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)) : visitNode2(cbNode, node.fullName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)));
17951
17956
  },
17952
- [343 /* JSDocCallbackTag */]: function forEachChildInJSDocCallbackTag(node, cbNode, cbNodes) {
17957
+ [344 /* JSDocCallbackTag */]: function forEachChildInJSDocCallbackTag(node, cbNode, cbNodes) {
17953
17958
  return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.fullName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));
17954
17959
  },
17955
- [347 /* JSDocReturnTag */]: forEachChildInJSDocTypeLikeTag,
17956
- [349 /* JSDocTypeTag */]: forEachChildInJSDocTypeLikeTag,
17957
- [348 /* JSDocThisTag */]: forEachChildInJSDocTypeLikeTag,
17958
- [345 /* JSDocEnumTag */]: forEachChildInJSDocTypeLikeTag,
17959
- [355 /* JSDocSatisfiesTag */]: forEachChildInJSDocTypeLikeTag,
17960
- [354 /* JSDocThrowsTag */]: forEachChildInJSDocTypeLikeTag,
17961
- [344 /* JSDocOverloadTag */]: forEachChildInJSDocTypeLikeTag,
17962
- [328 /* JSDocSignature */]: function forEachChildInJSDocSignature(node, cbNode, _cbNodes) {
17960
+ [348 /* JSDocReturnTag */]: forEachChildInJSDocTypeLikeTag,
17961
+ [350 /* JSDocTypeTag */]: forEachChildInJSDocTypeLikeTag,
17962
+ [349 /* JSDocThisTag */]: forEachChildInJSDocTypeLikeTag,
17963
+ [346 /* JSDocEnumTag */]: forEachChildInJSDocTypeLikeTag,
17964
+ [356 /* JSDocSatisfiesTag */]: forEachChildInJSDocTypeLikeTag,
17965
+ [355 /* JSDocThrowsTag */]: forEachChildInJSDocTypeLikeTag,
17966
+ [345 /* JSDocOverloadTag */]: forEachChildInJSDocTypeLikeTag,
17967
+ [329 /* JSDocSignature */]: function forEachChildInJSDocSignature(node, cbNode, _cbNodes) {
17963
17968
  return forEach(node.typeParameters, cbNode) || forEach(node.parameters, cbNode) || visitNode2(cbNode, node.type);
17964
17969
  },
17965
- [329 /* JSDocLink */]: forEachChildInJSDocLinkCodeOrPlain,
17966
- [330 /* JSDocLinkCode */]: forEachChildInJSDocLinkCodeOrPlain,
17967
- [331 /* JSDocLinkPlain */]: forEachChildInJSDocLinkCodeOrPlain,
17968
- [327 /* JSDocTypeLiteral */]: function forEachChildInJSDocTypeLiteral(node, cbNode, _cbNodes) {
17970
+ [330 /* JSDocLink */]: forEachChildInJSDocLinkCodeOrPlain,
17971
+ [331 /* JSDocLinkCode */]: forEachChildInJSDocLinkCodeOrPlain,
17972
+ [332 /* JSDocLinkPlain */]: forEachChildInJSDocLinkCodeOrPlain,
17973
+ [328 /* JSDocTypeLiteral */]: function forEachChildInJSDocTypeLiteral(node, cbNode, _cbNodes) {
17969
17974
  return forEach(node.jsDocPropertyTags, cbNode);
17970
17975
  },
17971
- [332 /* JSDocTag */]: forEachChildInJSDocTag,
17972
- [337 /* JSDocClassTag */]: forEachChildInJSDocTag,
17973
- [338 /* JSDocPublicTag */]: forEachChildInJSDocTag,
17974
- [339 /* JSDocPrivateTag */]: forEachChildInJSDocTag,
17975
- [340 /* JSDocProtectedTag */]: forEachChildInJSDocTag,
17976
- [341 /* JSDocReadonlyTag */]: forEachChildInJSDocTag,
17977
- [336 /* JSDocDeprecatedTag */]: forEachChildInJSDocTag,
17978
- [342 /* JSDocOverrideTag */]: forEachChildInJSDocTag,
17979
- [358 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression
17976
+ [333 /* JSDocTag */]: forEachChildInJSDocTag,
17977
+ [338 /* JSDocClassTag */]: forEachChildInJSDocTag,
17978
+ [339 /* JSDocPublicTag */]: forEachChildInJSDocTag,
17979
+ [340 /* JSDocPrivateTag */]: forEachChildInJSDocTag,
17980
+ [341 /* JSDocProtectedTag */]: forEachChildInJSDocTag,
17981
+ [342 /* JSDocReadonlyTag */]: forEachChildInJSDocTag,
17982
+ [337 /* JSDocDeprecatedTag */]: forEachChildInJSDocTag,
17983
+ [343 /* JSDocOverrideTag */]: forEachChildInJSDocTag,
17984
+ [359 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression
17980
17985
  };
17981
17986
  function forEachChildInCallOrConstructSignature(node, cbNode, cbNodes) {
17982
17987
  return visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type);
@@ -18194,13 +18199,13 @@ var Parser;
18194
18199
  var topLevel = true;
18195
18200
  var parseErrorBeforeNextFinishedNode = false;
18196
18201
  function parseSourceFile(fileName2, sourceText2, languageVersion2, syntaxCursor2, setParentNodes = false, scriptKind2, setExternalModuleIndicatorOverride) {
18197
- var _a2;
18202
+ var _a;
18198
18203
  scriptKind2 = ensureScriptKind(fileName2, scriptKind2);
18199
18204
  if (scriptKind2 === 6 /* JSON */) {
18200
18205
  const result2 = parseJsonText2(fileName2, sourceText2, languageVersion2, syntaxCursor2, setParentNodes);
18201
18206
  convertToJson(
18202
18207
  result2,
18203
- (_a2 = result2.statements[0]) == null ? void 0 : _a2.expression,
18208
+ (_a = result2.statements[0]) == null ? void 0 : _a.expression,
18204
18209
  result2.parseDiagnostics,
18205
18210
  /*returnValue*/
18206
18211
  false,
@@ -18765,7 +18770,6 @@ var Parser;
18765
18770
  }
18766
18771
  const viableKeywordSuggestions = Object.keys(textToKeywordObj).filter((keyword) => keyword.length > 2);
18767
18772
  function parseErrorForMissingSemicolonAfter(node) {
18768
- var _a2;
18769
18773
  if (isTaggedTemplateExpression(node)) {
18770
18774
  parseErrorAt(skipTrivia(sourceText, node.template.pos), node.template.end, Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings);
18771
18775
  return;
@@ -18798,7 +18802,7 @@ var Parser;
18798
18802
  parseErrorForInvalidName(Diagnostics.Type_alias_name_cannot_be_0, Diagnostics.Type_alias_must_be_given_a_name, 64 /* EqualsToken */);
18799
18803
  return;
18800
18804
  }
18801
- const suggestion = (_a2 = getSpellingSuggestion(expressionText, viableKeywordSuggestions, (n) => n)) != null ? _a2 : getSpaceSuggestion(expressionText);
18805
+ const suggestion = getSpellingSuggestion(expressionText, viableKeywordSuggestions, (n) => n) ?? getSpaceSuggestion(expressionText);
18802
18806
  if (suggestion) {
18803
18807
  parseErrorAt(pos, node.end, Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0, suggestion);
18804
18808
  return;
@@ -18948,11 +18952,11 @@ var Parser;
18948
18952
  }
18949
18953
  function createNodeArray(elements, pos, end, hasTrailingComma) {
18950
18954
  const array = factoryCreateNodeArray(elements, hasTrailingComma);
18951
- setTextRangePosEnd(array, pos, end != null ? end : scanner.getTokenFullStart());
18955
+ setTextRangePosEnd(array, pos, end ?? scanner.getTokenFullStart());
18952
18956
  return array;
18953
18957
  }
18954
18958
  function finishNode(node, pos, end) {
18955
- setTextRangePosEnd(node, pos, end != null ? end : scanner.getTokenFullStart());
18959
+ setTextRangePosEnd(node, pos, end ?? scanner.getTokenFullStart());
18956
18960
  if (contextFlags) {
18957
18961
  node.flags |= contextFlags;
18958
18962
  }
@@ -19346,11 +19350,11 @@ var Parser;
19346
19350
  return parseElement();
19347
19351
  }
19348
19352
  function currentNode(parsingContext2, pos) {
19349
- var _a2;
19353
+ var _a;
19350
19354
  if (!syntaxCursor || !isReusableParsingContext(parsingContext2) || parseErrorBeforeNextFinishedNode) {
19351
19355
  return void 0;
19352
19356
  }
19353
- const node = syntaxCursor.currentNode(pos != null ? pos : scanner.getTokenFullStart());
19357
+ const node = syntaxCursor.currentNode(pos ?? scanner.getTokenFullStart());
19354
19358
  if (nodeIsMissing(node) || node.intersectsChange || containsParseError(node)) {
19355
19359
  return void 0;
19356
19360
  }
@@ -19361,7 +19365,7 @@ var Parser;
19361
19365
  if (!canReuseNode(node, parsingContext2)) {
19362
19366
  return void 0;
19363
19367
  }
19364
- if (canHaveJSDoc(node) && ((_a2 = node.jsDoc) == null ? void 0 : _a2.jsDocCache)) {
19368
+ if (canHaveJSDoc(node) && ((_a = node.jsDoc) == null ? void 0 : _a.jsDocCache)) {
19365
19369
  node.jsDoc.jsDocCache = void 0;
19366
19370
  }
19367
19371
  return node;
@@ -19430,8 +19434,8 @@ var Parser;
19430
19434
  function isReusableSwitchClause(node) {
19431
19435
  if (node) {
19432
19436
  switch (node.kind) {
19433
- case 294 /* CaseClause */:
19434
- case 295 /* DefaultClause */:
19437
+ case 295 /* CaseClause */:
19438
+ case 296 /* DefaultClause */:
19435
19439
  return true;
19436
19440
  }
19437
19441
  }
@@ -19475,7 +19479,7 @@ var Parser;
19475
19479
  return false;
19476
19480
  }
19477
19481
  function isReusableEnumMember(node) {
19478
- return node.kind === 304 /* EnumMember */;
19482
+ return node.kind === 305 /* EnumMember */;
19479
19483
  }
19480
19484
  function isReusableTypeMember(node) {
19481
19485
  if (node) {
@@ -21614,8 +21618,7 @@ var Parser;
21614
21618
  }
21615
21619
  function parseJsxElementName() {
21616
21620
  const pos = getNodePos();
21617
- scanJsxIdentifier();
21618
- let expression = token() === 110 /* ThisKeyword */ ? parseTokenNode() : parseIdentifierName();
21621
+ let expression = parseJsxTagName();
21619
21622
  while (parseOptional(25 /* DotToken */)) {
21620
21623
  expression = finishNode(factoryCreatePropertyAccessExpression(expression, parseRightSideOfDot(
21621
21624
  /*allowIdentifierNames*/
@@ -21626,6 +21629,17 @@ var Parser;
21626
21629
  }
21627
21630
  return expression;
21628
21631
  }
21632
+ function parseJsxTagName() {
21633
+ const pos = getNodePos();
21634
+ scanJsxIdentifier();
21635
+ const isThis = token() === 110 /* ThisKeyword */;
21636
+ const tagName = parseIdentifierName();
21637
+ if (parseOptional(59 /* ColonToken */)) {
21638
+ scanJsxIdentifier();
21639
+ return finishNode(factory2.createJsxNamespacedName(tagName, parseIdentifierName()), pos);
21640
+ }
21641
+ return isThis ? finishNode(factory2.createToken(110 /* ThisKeyword */), pos) : tagName;
21642
+ }
21629
21643
  function parseJsxExpression(inExpressionContext) {
21630
21644
  const pos = getNodePos();
21631
21645
  if (!parseExpected(19 /* OpenBraceToken */)) {
@@ -21656,9 +21670,8 @@ var Parser;
21656
21670
  if (token() === 19 /* OpenBraceToken */) {
21657
21671
  return parseJsxSpreadAttribute();
21658
21672
  }
21659
- scanJsxIdentifier();
21660
21673
  const pos = getNodePos();
21661
- return finishNode(factory2.createJsxAttribute(parseIdentifierName(), parseJsxAttributeValue()), pos);
21674
+ return finishNode(factory2.createJsxAttribute(parseJsxAttributeName(), parseJsxAttributeValue()), pos);
21662
21675
  }
21663
21676
  function parseJsxAttributeValue() {
21664
21677
  if (token() === 64 /* EqualsToken */) {
@@ -21681,6 +21694,16 @@ var Parser;
21681
21694
  }
21682
21695
  return void 0;
21683
21696
  }
21697
+ function parseJsxAttributeName() {
21698
+ const pos = getNodePos();
21699
+ scanJsxIdentifier();
21700
+ const attrName = parseIdentifierName();
21701
+ if (parseOptional(59 /* ColonToken */)) {
21702
+ scanJsxIdentifier();
21703
+ return finishNode(factory2.createJsxNamespacedName(attrName, parseIdentifierName()), pos);
21704
+ }
21705
+ return attrName;
21706
+ }
21684
21707
  function parseJsxSpreadAttribute() {
21685
21708
  const pos = getNodePos();
21686
21709
  parseExpected(19 /* OpenBraceToken */);
@@ -23882,7 +23905,7 @@ var Parser;
23882
23905
  if (!linkEnd) {
23883
23906
  removeLeadingNewlines(comments);
23884
23907
  }
23885
- parts.push(finishNode(factory2.createJSDocText(comments.join("")), linkEnd != null ? linkEnd : start, commentEnd));
23908
+ parts.push(finishNode(factory2.createJSDocText(comments.join("")), linkEnd ?? start, commentEnd));
23886
23909
  parts.push(link);
23887
23910
  comments = [];
23888
23911
  linkEnd = scanner.getTokenEnd();
@@ -23904,7 +23927,7 @@ var Parser;
23904
23927
  }
23905
23928
  const trimmedComments = trimStringEnd(comments.join(""));
23906
23929
  if (parts.length && trimmedComments.length) {
23907
- parts.push(finishNode(factory2.createJSDocText(trimmedComments), linkEnd != null ? linkEnd : start, commentsPos));
23930
+ parts.push(finishNode(factory2.createJSDocText(trimmedComments), linkEnd ?? start, commentsPos));
23908
23931
  }
23909
23932
  if (parts.length && tags)
23910
23933
  Debug.assertIsDefined(commentsPos, "having parsed tags implies that the end of the comment span should be set");
@@ -24116,7 +24139,7 @@ var Parser;
24116
24139
  const linkStart = scanner.getTokenEnd() - 1;
24117
24140
  const link = parseJSDocLink(linkStart);
24118
24141
  if (link) {
24119
- parts2.push(finishNode(factory2.createJSDocText(comments2.join("")), linkEnd2 != null ? linkEnd2 : commentsPos2, commentEnd));
24142
+ parts2.push(finishNode(factory2.createJSDocText(comments2.join("")), linkEnd2 ?? commentsPos2, commentEnd));
24120
24143
  parts2.push(link);
24121
24144
  comments2 = [];
24122
24145
  linkEnd2 = scanner.getTokenEnd();
@@ -24161,7 +24184,7 @@ var Parser;
24161
24184
  const trimmedComments = trimStringEnd(comments2.join(""));
24162
24185
  if (parts2.length) {
24163
24186
  if (trimmedComments.length) {
24164
- parts2.push(finishNode(factory2.createJSDocText(trimmedComments), linkEnd2 != null ? linkEnd2 : commentsPos2));
24187
+ parts2.push(finishNode(factory2.createJSDocText(trimmedComments), linkEnd2 ?? commentsPos2));
24165
24188
  }
24166
24189
  return createNodeArray(parts2, commentsPos2, scanner.getTokenEnd());
24167
24190
  } else if (trimmedComments.length) {
@@ -24278,7 +24301,7 @@ var Parser;
24278
24301
  let child;
24279
24302
  let children;
24280
24303
  while (child = tryParse(() => parseChildParameterOrPropertyTag(target, indent2, name))) {
24281
- if (child.kind === 346 /* JSDocParameterTag */ || child.kind === 353 /* JSDocPropertyTag */) {
24304
+ if (child.kind === 347 /* JSDocParameterTag */ || child.kind === 354 /* JSDocPropertyTag */) {
24282
24305
  children = append(children, child);
24283
24306
  }
24284
24307
  }
@@ -24404,7 +24427,6 @@ var Parser;
24404
24427
  return finishNode(factory2.createJSDocEnumTag(tagName, typeExpression, parseTrailingTagComments(start2, getNodePos(), margin, indentText)), start2);
24405
24428
  }
24406
24429
  function parseTypedefTag(start2, tagName, indent2, indentText) {
24407
- var _a2;
24408
24430
  let typeExpression = tryParseTypeExpression();
24409
24431
  skipWhitespaceOrAsterisk();
24410
24432
  const fullName = parseJSDocTypeNameWithNamespace();
@@ -24418,7 +24440,7 @@ var Parser;
24418
24440
  let hasChildren = false;
24419
24441
  while (child = tryParse(() => parseChildPropertyTag(indent2))) {
24420
24442
  hasChildren = true;
24421
- if (child.kind === 349 /* JSDocTypeTag */) {
24443
+ if (child.kind === 350 /* JSDocTypeTag */) {
24422
24444
  if (childTypeTag) {
24423
24445
  const lastError = parseErrorAtCurrentToken(Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);
24424
24446
  if (lastError) {
@@ -24439,7 +24461,7 @@ var Parser;
24439
24461
  end2 = typeExpression.end;
24440
24462
  }
24441
24463
  }
24442
- end2 = end2 || comment !== void 0 ? getNodePos() : ((_a2 = fullName != null ? fullName : typeExpression) != null ? _a2 : tagName).end;
24464
+ end2 = end2 || comment !== void 0 ? getNodePos() : (fullName ?? typeExpression ?? tagName).end;
24443
24465
  if (!comment) {
24444
24466
  comment = parseTrailingTagComments(start2, end2, indent2, indentText);
24445
24467
  }
@@ -24485,7 +24507,7 @@ var Parser;
24485
24507
  const returnTag = tryParse(() => {
24486
24508
  if (parseOptionalJsdoc(60 /* AtToken */)) {
24487
24509
  const tag = parseTag(indent2);
24488
- if (tag && tag.kind === 347 /* JSDocReturnTag */) {
24510
+ if (tag && tag.kind === 348 /* JSDocReturnTag */) {
24489
24511
  return tag;
24490
24512
  }
24491
24513
  }
@@ -24540,7 +24562,7 @@ var Parser;
24540
24562
  case 60 /* AtToken */:
24541
24563
  if (canParseTag) {
24542
24564
  const child = tryParseChildTag(target, indent2);
24543
- if (child && (child.kind === 346 /* JSDocParameterTag */ || child.kind === 353 /* JSDocPropertyTag */) && target !== 4 /* CallbackParameter */ && name && (isIdentifier(child.name) || !escapedTextsEqual(name, child.name.left))) {
24565
+ if (child && (child.kind === 347 /* JSDocParameterTag */ || child.kind === 354 /* JSDocPropertyTag */) && target !== 4 /* CallbackParameter */ && name && (isIdentifier(child.name) || !escapedTextsEqual(name, child.name.left))) {
24544
24566
  return false;
24545
24567
  }
24546
24568
  return child;
@@ -25263,6 +25285,9 @@ function tagNamesAreEquivalent(lhs, rhs) {
25263
25285
  if (lhs.kind === 110 /* ThisKeyword */) {
25264
25286
  return true;
25265
25287
  }
25288
+ if (lhs.kind === 294 /* JsxNamespacedName */) {
25289
+ return lhs.namespace.escapedText === rhs.namespace.escapedText && lhs.name.escapedText === rhs.name.escapedText;
25290
+ }
25266
25291
  return lhs.name.escapedText === rhs.name.escapedText && tagNamesAreEquivalent(lhs.expression, rhs.expression);
25267
25292
  }
25268
25293
 
@@ -26853,8 +26878,8 @@ var typeAcquisitionDeclaration = {
26853
26878
  extraKeyDiagnostics: typeAcquisitionDidYouMeanDiagnostics
26854
26879
  };
26855
26880
  function convertConfigFileToObject(sourceFile, errors, jsonConversionNotifier) {
26856
- var _a2;
26857
- const rootExpression = (_a2 = sourceFile.statements[0]) == null ? void 0 : _a2.expression;
26881
+ var _a;
26882
+ const rootExpression = (_a = sourceFile.statements[0]) == null ? void 0 : _a.expression;
26858
26883
  if (rootExpression && rootExpression.kind !== 209 /* ObjectLiteralExpression */) {
26859
26884
  errors.push(createDiagnosticForNodeInSourceFile(
26860
26885
  sourceFile,
@@ -26892,10 +26917,10 @@ function convertToJson(sourceFile, rootExpression, errors, returnValue, jsonConv
26892
26917
  }
26893
26918
  return convertPropertyValueToJson(rootExpression, jsonConversionNotifier == null ? void 0 : jsonConversionNotifier.rootOptions);
26894
26919
  function convertObjectLiteralExpressionToJson(node, objectOption) {
26895
- var _a2;
26920
+ var _a;
26896
26921
  const result = returnValue ? {} : void 0;
26897
26922
  for (const element of node.properties) {
26898
- if (element.kind !== 301 /* PropertyAssignment */) {
26923
+ if (element.kind !== 302 /* PropertyAssignment */) {
26899
26924
  errors.push(createDiagnosticForNodeInSourceFile(sourceFile, element, Diagnostics.Property_assignment_expected));
26900
26925
  continue;
26901
26926
  }
@@ -26907,7 +26932,7 @@ function convertToJson(sourceFile, rootExpression, errors, returnValue, jsonConv
26907
26932
  }
26908
26933
  const textOfKey = isComputedNonLiteralName(element.name) ? void 0 : getTextOfPropertyName(element.name);
26909
26934
  const keyText = textOfKey && unescapeLeadingUnderscores(textOfKey);
26910
- const option = keyText ? (_a2 = objectOption == null ? void 0 : objectOption.elementOptions) == null ? void 0 : _a2.get(keyText) : void 0;
26935
+ const option = keyText ? (_a = objectOption == null ? void 0 : objectOption.elementOptions) == null ? void 0 : _a.get(keyText) : void 0;
26911
26936
  const value = convertPropertyValueToJson(element.initializer, option);
26912
26937
  if (typeof keyText !== "undefined") {
26913
26938
  if (returnValue) {
@@ -27246,7 +27271,7 @@ function getConditions(options, esmMode) {
27246
27271
  return concatenate(conditions, options.customConditions);
27247
27272
  }
27248
27273
  function resolveModuleName(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode) {
27249
- var _a2, _b, _c;
27274
+ var _a, _b, _c;
27250
27275
  const traceEnabled = isTraceEnabled(compilerOptions, host);
27251
27276
  if (redirectedReference) {
27252
27277
  compilerOptions = redirectedReference.commandLine.options;
@@ -27288,7 +27313,7 @@ function resolveModuleName(moduleName, containingFile, compilerOptions, host, ca
27288
27313
  trace(host, Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0, ModuleResolutionKind[moduleResolution]);
27289
27314
  }
27290
27315
  }
27291
- (_a2 = perfLogger) == null ? void 0 : _a2.logStartResolveModule(moduleName);
27316
+ (_a = perfLogger) == null ? void 0 : _a.logStartResolveModule(moduleName);
27292
27317
  switch (moduleResolution) {
27293
27318
  case 3 /* Node16 */:
27294
27319
  result = node16ModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode);
@@ -27340,7 +27365,7 @@ function tryLoadModuleUsingOptionalResolutionSettings(extensions, moduleName, co
27340
27365
  }
27341
27366
  }
27342
27367
  function tryLoadModuleUsingPathsIfEligible(extensions, moduleName, loader, state) {
27343
- var _a2;
27368
+ var _a;
27344
27369
  const { baseUrl, paths, configFile } = state.compilerOptions;
27345
27370
  if (paths && !pathIsRelative(moduleName)) {
27346
27371
  if (state.traceEnabled) {
@@ -27350,7 +27375,7 @@ function tryLoadModuleUsingPathsIfEligible(extensions, moduleName, loader, state
27350
27375
  trace(state.host, Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0, moduleName);
27351
27376
  }
27352
27377
  const baseDirectory = getPathsBasePath(state.compilerOptions, state.host);
27353
- const pathPatterns = (configFile == null ? void 0 : configFile.configFileSpecs) ? (_a2 = configFile.configFileSpecs).pathPatterns || (_a2.pathPatterns = tryParsePatterns(paths)) : void 0;
27378
+ const pathPatterns = (configFile == null ? void 0 : configFile.configFileSpecs) ? (_a = configFile.configFileSpecs).pathPatterns || (_a.pathPatterns = tryParsePatterns(paths)) : void 0;
27354
27379
  return tryLoadModuleUsingPaths(
27355
27380
  extensions,
27356
27381
  moduleName,
@@ -27537,7 +27562,7 @@ function nodeModuleNameResolver(moduleName, containingFile, compilerOptions, hos
27537
27562
  return nodeModuleNameResolverWorker(0 /* None */, moduleName, getDirectoryPath(containingFile), compilerOptions, host, cache, extensions, !!isConfigLookup, redirectedReference);
27538
27563
  }
27539
27564
  function nodeModuleNameResolverWorker(features, moduleName, containingDirectory, compilerOptions, host, cache, extensions, isConfigLookup, redirectedReference) {
27540
- var _a2, _b, _c, _d;
27565
+ var _a, _b, _c, _d;
27541
27566
  const traceEnabled = isTraceEnabled(compilerOptions, host);
27542
27567
  const failedLookupLocations = [];
27543
27568
  const affectingLocations = [];
@@ -27569,7 +27594,7 @@ function nodeModuleNameResolverWorker(features, moduleName, containingDirectory,
27569
27594
  result = tryResolve(extensions, state);
27570
27595
  }
27571
27596
  let legacyResult;
27572
- if (((_a2 = result == null ? void 0 : result.value) == null ? void 0 : _a2.isExternalLibraryImport) && !isConfigLookup && extensions & (1 /* TypeScript */ | 4 /* Declaration */) && features & 8 /* Exports */ && !isExternalModuleNameRelative(moduleName) && !extensionIsOk(1 /* TypeScript */ | 4 /* Declaration */, result.value.resolved.extension) && conditions.indexOf("import") > -1) {
27597
+ if (((_a = result == null ? void 0 : result.value) == null ? void 0 : _a.isExternalLibraryImport) && !isConfigLookup && extensions & (1 /* TypeScript */ | 4 /* Declaration */) && features & 8 /* Exports */ && !isExternalModuleNameRelative(moduleName) && !extensionIsOk(1 /* TypeScript */ | 4 /* Declaration */, result.value.resolved.extension) && conditions.indexOf("import") > -1) {
27573
27598
  traceIfEnabled(state, Diagnostics.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);
27574
27599
  const diagnosticState = {
27575
27600
  ...state,
@@ -27621,7 +27646,7 @@ function nodeModuleNameResolverWorker(features, moduleName, containingDirectory,
27621
27646
  resolved2 = loadModuleFromNearestNodeModulesDirectory(extensions2, moduleName, containingDirectory, state2, cache, redirectedReference);
27622
27647
  }
27623
27648
  if (extensions2 & 4 /* Declaration */) {
27624
- resolved2 != null ? resolved2 : resolved2 = resolveFromTypeRoot(moduleName, state2);
27649
+ resolved2 ?? (resolved2 = resolveFromTypeRoot(moduleName, state2));
27625
27650
  }
27626
27651
  return resolved2 && { value: resolved2.value && { resolved: resolved2.value, isExternalLibraryImport: true } };
27627
27652
  } else {
@@ -27794,16 +27819,16 @@ function tryAddingExtensions(candidate, extensions, originalExtension, onlyRecor
27794
27819
  }
27795
27820
  }
27796
27821
  function tryFile(fileName, onlyRecordFailures, state) {
27797
- var _a2, _b;
27798
- if (!((_a2 = state.compilerOptions.moduleSuffixes) == null ? void 0 : _a2.length)) {
27822
+ var _a;
27823
+ if (!((_a = state.compilerOptions.moduleSuffixes) == null ? void 0 : _a.length)) {
27799
27824
  return tryFileLookup(fileName, onlyRecordFailures, state);
27800
27825
  }
27801
- const ext = (_b = tryGetExtensionFromPath2(fileName)) != null ? _b : "";
27826
+ const ext = tryGetExtensionFromPath2(fileName) ?? "";
27802
27827
  const fileNameNoExtension = ext ? removeExtension(fileName, ext) : fileName;
27803
27828
  return forEach(state.compilerOptions.moduleSuffixes, (suffix) => tryFileLookup(fileNameNoExtension + suffix + ext, onlyRecordFailures, state));
27804
27829
  }
27805
27830
  function tryFileLookup(fileName, onlyRecordFailures, state) {
27806
- var _a2;
27831
+ var _a;
27807
27832
  if (!onlyRecordFailures) {
27808
27833
  if (state.host.fileExists(fileName)) {
27809
27834
  if (state.traceEnabled) {
@@ -27816,7 +27841,7 @@ function tryFileLookup(fileName, onlyRecordFailures, state) {
27816
27841
  }
27817
27842
  }
27818
27843
  }
27819
- (_a2 = state.failedLookupLocations) == null ? void 0 : _a2.push(fileName);
27844
+ (_a = state.failedLookupLocations) == null ? void 0 : _a.push(fileName);
27820
27845
  return void 0;
27821
27846
  }
27822
27847
  function loadNodeModuleFromDirectory(extensions, candidate, onlyRecordFailures, state, considerPackageJson = true) {
@@ -27849,11 +27874,11 @@ function getVersionPathsOfPackageJsonInfo(packageJsonInfo, state) {
27849
27874
  return packageJsonInfo.contents.versionPaths || void 0;
27850
27875
  }
27851
27876
  function getPackageJsonInfo(packageDirectory, onlyRecordFailures, state) {
27852
- var _a2, _b, _c, _d, _e, _f, _g, _h;
27877
+ var _a, _b, _c, _d, _e, _f, _g, _h;
27853
27878
  const { host, traceEnabled } = state;
27854
27879
  const packageJsonPath = combinePaths(packageDirectory, "package.json");
27855
27880
  if (onlyRecordFailures) {
27856
- (_a2 = state.failedLookupLocations) == null ? void 0 : _a2.push(packageJsonPath);
27881
+ (_a = state.failedLookupLocations) == null ? void 0 : _a.push(packageJsonPath);
27857
27882
  return void 0;
27858
27883
  }
27859
27884
  const existing = (_b = state.packageJsonInfoCache) == null ? void 0 : _b.getPackageJsonInfo(packageJsonPath);
@@ -27983,8 +28008,8 @@ function noKeyStartsWithDot(obj) {
27983
28008
  return !some(getOwnKeys(obj), (k) => startsWith(k, "."));
27984
28009
  }
27985
28010
  function loadModuleFromSelfNameReference(extensions, moduleName, directory, state, cache, redirectedReference) {
27986
- var _a2, _b;
27987
- const directoryPath = getNormalizedAbsolutePath(combinePaths(directory, "dummy"), (_b = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a2));
28011
+ var _a, _b;
28012
+ const directoryPath = getNormalizedAbsolutePath(combinePaths(directory, "dummy"), (_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a));
27988
28013
  const scope = getPackageScopeForPath(directoryPath, state);
27989
28014
  if (!scope || !scope.contents.packageJsonContent.exports) {
27990
28015
  return void 0;
@@ -28067,7 +28092,7 @@ function loadModuleFromExports(scope, extensions, subpath, state, cache, redirec
28067
28092
  );
28068
28093
  }
28069
28094
  function loadModuleFromImports(extensions, moduleName, directory, state, cache, redirectedReference) {
28070
- var _a2, _b;
28095
+ var _a, _b;
28071
28096
  if (moduleName === "#" || startsWith(moduleName, "#/")) {
28072
28097
  if (state.traceEnabled) {
28073
28098
  trace(state.host, Diagnostics.Invalid_import_specifier_0_has_no_possible_resolutions, moduleName);
@@ -28077,7 +28102,7 @@ function loadModuleFromImports(extensions, moduleName, directory, state, cache,
28077
28102
  void 0
28078
28103
  );
28079
28104
  }
28080
- const directoryPath = getNormalizedAbsolutePath(combinePaths(directory, "dummy"), (_b = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a2));
28105
+ const directoryPath = getNormalizedAbsolutePath(combinePaths(directory, "dummy"), (_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a));
28081
28106
  const scope = getPackageScopeForPath(directoryPath, state);
28082
28107
  if (!scope) {
28083
28108
  if (state.traceEnabled) {
@@ -28338,10 +28363,10 @@ function getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirec
28338
28363
  void 0
28339
28364
  );
28340
28365
  function toAbsolutePath(path2) {
28341
- var _a2, _b;
28366
+ var _a, _b;
28342
28367
  if (path2 === void 0)
28343
28368
  return path2;
28344
- return getNormalizedAbsolutePath(path2, (_b = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a2));
28369
+ return getNormalizedAbsolutePath(path2, (_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a));
28345
28370
  }
28346
28371
  function combineDirectoryPath(root, dir) {
28347
28372
  return ensureTrailingDirectorySeparator(combinePaths(root, dir));
@@ -28350,12 +28375,12 @@ function getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirec
28350
28375
  return !state.host.useCaseSensitiveFileNames ? true : typeof state.host.useCaseSensitiveFileNames === "boolean" ? state.host.useCaseSensitiveFileNames : state.host.useCaseSensitiveFileNames();
28351
28376
  }
28352
28377
  function tryLoadInputFileForPath(finalPath, entry, packagePath, isImports2) {
28353
- var _a2, _b, _c, _d;
28378
+ var _a, _b, _c, _d;
28354
28379
  if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && finalPath.indexOf("/node_modules/") === -1 && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames()) : true)) {
28355
28380
  const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames });
28356
28381
  const commonSourceDirGuesses = [];
28357
28382
  if (state.compilerOptions.rootDir || state.compilerOptions.composite && state.compilerOptions.configFilePath) {
28358
- const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [], ((_b = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a2)) || "", getCanonicalFileName));
28383
+ const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [], ((_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)) || "", getCanonicalFileName));
28359
28384
  commonSourceDirGuesses.push(commonDir);
28360
28385
  } else if (state.requestContainingDirectory) {
28361
28386
  const requestingFile = toAbsolutePath(combinePaths(state.requestContainingDirectory, "index.ts"));
@@ -28410,8 +28435,8 @@ function getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirec
28410
28435
  }
28411
28436
  return void 0;
28412
28437
  function getOutputDirectoriesForBaseDirectory(commonSourceDirGuess) {
28413
- var _a3, _b2;
28414
- const currentDir = state.compilerOptions.configFile ? ((_b2 = (_a3 = state.host).getCurrentDirectory) == null ? void 0 : _b2.call(_a3)) || "" : commonSourceDirGuess;
28438
+ var _a2, _b2;
28439
+ const currentDir = state.compilerOptions.configFile ? ((_b2 = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b2.call(_a2)) || "" : commonSourceDirGuess;
28415
28440
  const candidateDirectories = [];
28416
28441
  if (state.compilerOptions.declarationDir) {
28417
28442
  candidateDirectories.push(toAbsolutePath(combineDirectoryPath(currentDir, state.compilerOptions.declarationDir)));
@@ -28509,13 +28534,13 @@ function loadModuleFromImmediateNodeModulesDirectory(extensions, moduleName, dir
28509
28534
  }
28510
28535
  }
28511
28536
  function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesDirectory, nodeModulesDirectoryExists, state, cache, redirectedReference) {
28512
- var _a2, _b, _c;
28537
+ var _a, _b;
28513
28538
  const candidate = normalizePath(combinePaths(nodeModulesDirectory, moduleName));
28514
28539
  const { packageName, rest } = parsePackageName(moduleName);
28515
28540
  const packageDirectory = combinePaths(nodeModulesDirectory, packageName);
28516
28541
  let rootPackageInfo;
28517
28542
  let packageInfo = getPackageJsonInfo(candidate, !nodeModulesDirectoryExists, state);
28518
- if (rest !== "" && packageInfo && (!(state.features & 8 /* Exports */) || !hasProperty((_b = (_a2 = rootPackageInfo = getPackageJsonInfo(packageDirectory, !nodeModulesDirectoryExists, state)) == null ? void 0 : _a2.contents.packageJsonContent) != null ? _b : emptyArray, "exports"))) {
28543
+ if (rest !== "" && packageInfo && (!(state.features & 8 /* Exports */) || !hasProperty(((_a = rootPackageInfo = getPackageJsonInfo(packageDirectory, !nodeModulesDirectoryExists, state)) == null ? void 0 : _a.contents.packageJsonContent) ?? emptyArray, "exports"))) {
28519
28544
  const fromFile = loadModuleFromFile(extensions, candidate, !nodeModulesDirectoryExists, state);
28520
28545
  if (fromFile) {
28521
28546
  return noPackageId(fromFile);
@@ -28545,10 +28570,10 @@ function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, node
28545
28570
  return withPackageId(packageInfo, pathAndExtension);
28546
28571
  };
28547
28572
  if (rest !== "") {
28548
- packageInfo = rootPackageInfo != null ? rootPackageInfo : getPackageJsonInfo(packageDirectory, !nodeModulesDirectoryExists, state);
28573
+ packageInfo = rootPackageInfo ?? getPackageJsonInfo(packageDirectory, !nodeModulesDirectoryExists, state);
28549
28574
  }
28550
28575
  if (packageInfo && packageInfo.contents.packageJsonContent.exports && state.features & 8 /* Exports */) {
28551
- return (_c = loadModuleFromExports(packageInfo, extensions, combinePaths(".", rest), state, cache, redirectedReference)) == null ? void 0 : _c.value;
28576
+ return (_b = loadModuleFromExports(packageInfo, extensions, combinePaths(".", rest), state, cache, redirectedReference)) == null ? void 0 : _b.value;
28552
28577
  }
28553
28578
  const versionPaths = rest !== "" && packageInfo ? getVersionPathsOfPackageJsonInfo(packageInfo, state) : void 0;
28554
28579
  if (versionPaths) {
@@ -28698,7 +28723,7 @@ function classicNameResolver(moduleName, containingFile, compilerOptions, host,
28698
28723
  if (extensions & (1 /* TypeScript */ | 4 /* Declaration */)) {
28699
28724
  let resolved3 = loadModuleFromNearestNodeModulesDirectoryTypesScope(moduleName, containingDirectory, state);
28700
28725
  if (extensions & 4 /* Declaration */)
28701
- resolved3 != null ? resolved3 : resolved3 = resolveFromTypeRoot(moduleName, state);
28726
+ resolved3 ?? (resolved3 = resolveFromTypeRoot(moduleName, state));
28702
28727
  return resolved3;
28703
28728
  }
28704
28729
  } else {
@@ -28887,6 +28912,7 @@ var JsxNames;
28887
28912
  JsxNames2.ElementAttributesPropertyNameContainer = "ElementAttributesProperty";
28888
28913
  JsxNames2.ElementChildrenAttributeNameContainer = "ElementChildrenAttribute";
28889
28914
  JsxNames2.Element = "Element";
28915
+ JsxNames2.ElementType = "ElementType";
28890
28916
  JsxNames2.IntrinsicAttributes = "IntrinsicAttributes";
28891
28917
  JsxNames2.IntrinsicClassAttributes = "IntrinsicClassAttributes";
28892
28918
  JsxNames2.LibraryManagedAttributes = "LibraryManagedAttributes";
@@ -29169,13 +29195,12 @@ var visitEachChildTable = {
29169
29195
  );
29170
29196
  },
29171
29197
  [171 /* PropertyDeclaration */]: function visitEachChildOfPropertyDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) {
29172
- var _a2, _b;
29173
29198
  return context.factory.updatePropertyDeclaration(
29174
29199
  node,
29175
29200
  nodesVisitor(node.modifiers, visitor, isModifierLike),
29176
29201
  Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)),
29177
29202
  // QuestionToken and ExclamationToken are mutually exclusive in PropertyDeclaration
29178
- tokenVisitor ? nodeVisitor((_a2 = node.questionToken) != null ? _a2 : node.exclamationToken, tokenVisitor, isQuestionOrExclamationToken) : (_b = node.questionToken) != null ? _b : node.exclamationToken,
29203
+ tokenVisitor ? nodeVisitor(node.questionToken ?? node.exclamationToken, tokenVisitor, isQuestionOrExclamationToken) : node.questionToken ?? node.exclamationToken,
29179
29204
  nodeVisitor(node.type, visitor, isTypeNode),
29180
29205
  nodeVisitor(node.initializer, visitor, isExpression)
29181
29206
  );
@@ -29370,7 +29395,7 @@ var visitEachChildTable = {
29370
29395
  node.isTypeOf
29371
29396
  );
29372
29397
  },
29373
- [300 /* ImportTypeAssertionContainer */]: function visitEachChildOfImportTypeAssertionContainer(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
29398
+ [301 /* ImportTypeAssertionContainer */]: function visitEachChildOfImportTypeAssertionContainer(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
29374
29399
  return context.factory.updateImportTypeAssertionContainer(
29375
29400
  node,
29376
29401
  Debug.checkDefined(nodeVisitor(node.assertClause, visitor, isAssertClause)),
@@ -29918,14 +29943,14 @@ var visitEachChildTable = {
29918
29943
  nodeVisitor(node.assertClause, visitor, isAssertClause)
29919
29944
  );
29920
29945
  },
29921
- [298 /* AssertClause */]: function visitEachChildOfAssertClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
29946
+ [299 /* AssertClause */]: function visitEachChildOfAssertClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
29922
29947
  return context.factory.updateAssertClause(
29923
29948
  node,
29924
29949
  nodesVisitor(node.elements, visitor, isAssertEntry),
29925
29950
  node.multiLine
29926
29951
  );
29927
29952
  },
29928
- [299 /* AssertEntry */]: function visitEachChildOfAssertEntry(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
29953
+ [300 /* AssertEntry */]: function visitEachChildOfAssertEntry(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
29929
29954
  return context.factory.updateAssertEntry(
29930
29955
  node,
29931
29956
  Debug.checkDefined(nodeVisitor(node.name, visitor, isAssertionKey)),
@@ -30035,6 +30060,13 @@ var visitEachChildTable = {
30035
30060
  Debug.checkDefined(nodeVisitor(node.tagName, visitor, isJsxTagNameExpression))
30036
30061
  );
30037
30062
  },
30063
+ [294 /* JsxNamespacedName */]: function forEachChildInJsxNamespacedName2(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
30064
+ return context.factory.updateJsxNamespacedName(
30065
+ node,
30066
+ Debug.checkDefined(nodeVisitor(node.namespace, visitor, isIdentifier)),
30067
+ Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier))
30068
+ );
30069
+ },
30038
30070
  [287 /* JsxFragment */]: function visitEachChildOfJsxFragment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
30039
30071
  return context.factory.updateJsxFragment(
30040
30072
  node,
@@ -30046,7 +30078,7 @@ var visitEachChildTable = {
30046
30078
  [290 /* JsxAttribute */]: function visitEachChildOfJsxAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
30047
30079
  return context.factory.updateJsxAttribute(
30048
30080
  node,
30049
- Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)),
30081
+ Debug.checkDefined(nodeVisitor(node.name, visitor, isJsxAttributeName)),
30050
30082
  nodeVisitor(node.initializer, visitor, isStringLiteralOrJsxExpression)
30051
30083
  );
30052
30084
  },
@@ -30069,26 +30101,26 @@ var visitEachChildTable = {
30069
30101
  );
30070
30102
  },
30071
30103
  // Clauses
30072
- [294 /* CaseClause */]: function visitEachChildOfCaseClause(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
30104
+ [295 /* CaseClause */]: function visitEachChildOfCaseClause(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) {
30073
30105
  return context.factory.updateCaseClause(
30074
30106
  node,
30075
30107
  Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)),
30076
30108
  nodesVisitor(node.statements, visitor, isStatement)
30077
30109
  );
30078
30110
  },
30079
- [295 /* DefaultClause */]: function visitEachChildOfDefaultClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
30111
+ [296 /* DefaultClause */]: function visitEachChildOfDefaultClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
30080
30112
  return context.factory.updateDefaultClause(
30081
30113
  node,
30082
30114
  nodesVisitor(node.statements, visitor, isStatement)
30083
30115
  );
30084
30116
  },
30085
- [296 /* HeritageClause */]: function visitEachChildOfHeritageClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
30117
+ [297 /* HeritageClause */]: function visitEachChildOfHeritageClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
30086
30118
  return context.factory.updateHeritageClause(
30087
30119
  node,
30088
30120
  nodesVisitor(node.types, visitor, isExpressionWithTypeArguments)
30089
30121
  );
30090
30122
  },
30091
- [297 /* CatchClause */]: function visitEachChildOfCatchClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
30123
+ [298 /* CatchClause */]: function visitEachChildOfCatchClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
30092
30124
  return context.factory.updateCatchClause(
30093
30125
  node,
30094
30126
  nodeVisitor(node.variableDeclaration, visitor, isVariableDeclaration),
@@ -30096,28 +30128,28 @@ var visitEachChildTable = {
30096
30128
  );
30097
30129
  },
30098
30130
  // Property assignments
30099
- [301 /* PropertyAssignment */]: function visitEachChildOfPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
30131
+ [302 /* PropertyAssignment */]: function visitEachChildOfPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
30100
30132
  return context.factory.updatePropertyAssignment(
30101
30133
  node,
30102
30134
  Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)),
30103
30135
  Debug.checkDefined(nodeVisitor(node.initializer, visitor, isExpression))
30104
30136
  );
30105
30137
  },
30106
- [302 /* ShorthandPropertyAssignment */]: function visitEachChildOfShorthandPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
30138
+ [303 /* ShorthandPropertyAssignment */]: function visitEachChildOfShorthandPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
30107
30139
  return context.factory.updateShorthandPropertyAssignment(
30108
30140
  node,
30109
30141
  Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)),
30110
30142
  nodeVisitor(node.objectAssignmentInitializer, visitor, isExpression)
30111
30143
  );
30112
30144
  },
30113
- [303 /* SpreadAssignment */]: function visitEachChildOfSpreadAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
30145
+ [304 /* SpreadAssignment */]: function visitEachChildOfSpreadAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
30114
30146
  return context.factory.updateSpreadAssignment(
30115
30147
  node,
30116
30148
  Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression))
30117
30149
  );
30118
30150
  },
30119
30151
  // Enum
30120
- [304 /* EnumMember */]: function visitEachChildOfEnumMember(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
30152
+ [305 /* EnumMember */]: function visitEachChildOfEnumMember(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
30121
30153
  return context.factory.updateEnumMember(
30122
30154
  node,
30123
30155
  Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)),
@@ -30125,20 +30157,20 @@ var visitEachChildTable = {
30125
30157
  );
30126
30158
  },
30127
30159
  // Top-level nodes
30128
- [310 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) {
30160
+ [311 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) {
30129
30161
  return context.factory.updateSourceFile(
30130
30162
  node,
30131
30163
  visitLexicalEnvironment(node.statements, visitor, context)
30132
30164
  );
30133
30165
  },
30134
30166
  // Transformation nodes
30135
- [358 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
30167
+ [359 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
30136
30168
  return context.factory.updatePartiallyEmittedExpression(
30137
30169
  node,
30138
30170
  Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression))
30139
30171
  );
30140
30172
  },
30141
- [359 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
30173
+ [360 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
30142
30174
  return context.factory.updateCommaListExpression(
30143
30175
  node,
30144
30176
  nodesVisitor(node.elements, visitor, isExpression)
@@ -30459,8 +30491,8 @@ function getWatchFactory(host, watchLogLevel, log2, getDetailWatchInfo2) {
30459
30491
  };
30460
30492
  function createExcludeHandlingAddWatch(key) {
30461
30493
  return (file, cb, flags, options, detailInfo1, detailInfo2) => {
30462
- var _a2;
30463
- return !matchesExclude(file, key === "watchFile" ? options == null ? void 0 : options.excludeFiles : options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames(), ((_a2 = host.getCurrentDirectory) == null ? void 0 : _a2.call(host)) || "") ? factory2[key].call(
30494
+ var _a;
30495
+ return !matchesExclude(file, key === "watchFile" ? options == null ? void 0 : options.excludeFiles : options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames(), ((_a = host.getCurrentDirectory) == null ? void 0 : _a.call(host)) || "") ? factory2[key].call(
30464
30496
  /*thisArgs*/
30465
30497
  void 0,
30466
30498
  file,
@@ -30739,8 +30771,8 @@ var BuilderState;
30739
30771
  }
30740
30772
  function getReferencedFilesFromImportedModuleSymbol(symbol) {
30741
30773
  return mapDefined(symbol.declarations, (declaration) => {
30742
- var _a2;
30743
- return (_a2 = getSourceFileOfNode(declaration)) == null ? void 0 : _a2.resolvedPath;
30774
+ var _a;
30775
+ return (_a = getSourceFileOfNode(declaration)) == null ? void 0 : _a.resolvedPath;
30744
30776
  });
30745
30777
  }
30746
30778
  function getReferencedFilesFromImportLiteral(checker, importName) {
@@ -30813,7 +30845,7 @@ var BuilderState;
30813
30845
  }
30814
30846
  BuilderState2.canReuseOldState = canReuseOldState;
30815
30847
  function create(newProgram, oldState, disableUseFileVersionAsSignature) {
30816
- var _a2, _b, _c;
30848
+ var _a, _b, _c;
30817
30849
  const fileInfos = /* @__PURE__ */ new Map();
30818
30850
  const options = newProgram.getCompilerOptions();
30819
30851
  const isOutFile = outFile(options);
@@ -30823,7 +30855,7 @@ var BuilderState;
30823
30855
  newProgram.getTypeChecker();
30824
30856
  for (const sourceFile of newProgram.getSourceFiles()) {
30825
30857
  const version2 = Debug.checkDefined(sourceFile.version, "Program intended to be used with Builder should have source files with versions set");
30826
- const oldUncommittedSignature = useOldState ? (_a2 = oldState.oldSignatures) == null ? void 0 : _a2.get(sourceFile.resolvedPath) : void 0;
30858
+ const oldUncommittedSignature = useOldState ? (_a = oldState.oldSignatures) == null ? void 0 : _a.get(sourceFile.resolvedPath) : void 0;
30827
30859
  const signature = oldUncommittedSignature === void 0 ? useOldState ? (_b = oldState.fileInfos.get(sourceFile.resolvedPath)) == null ? void 0 : _b.signature : void 0 : oldUncommittedSignature || void 0;
30828
30860
  if (referencedMap) {
30829
30861
  const newReferences = getReferencedFiles(newProgram, sourceFile, newProgram.getCanonicalFileName);
@@ -30860,7 +30892,7 @@ var BuilderState;
30860
30892
  }
30861
30893
  BuilderState2.releaseCache = releaseCache;
30862
30894
  function getFilesAffectedBy(state, programOfThisState, path2, cancellationToken, host) {
30863
- var _a2, _b;
30895
+ var _a, _b;
30864
30896
  const result = getFilesAffectedByWithOldState(
30865
30897
  state,
30866
30898
  programOfThisState,
@@ -30868,7 +30900,7 @@ var BuilderState;
30868
30900
  cancellationToken,
30869
30901
  host
30870
30902
  );
30871
- (_a2 = state.oldSignatures) == null ? void 0 : _a2.clear();
30903
+ (_a = state.oldSignatures) == null ? void 0 : _a.clear();
30872
30904
  (_b = state.oldExportedModulesMap) == null ? void 0 : _b.clear();
30873
30905
  return result;
30874
30906
  }
@@ -30913,8 +30945,8 @@ var BuilderState;
30913
30945
  }
30914
30946
  BuilderState2.computeDtsSignature = computeDtsSignature;
30915
30947
  function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, host, useFileVersionAsSignature = state.useFileVersionAsSignature) {
30916
- var _a2;
30917
- if ((_a2 = state.hasCalledUpdateShapeSignature) == null ? void 0 : _a2.has(sourceFile.resolvedPath))
30948
+ var _a;
30949
+ if ((_a = state.hasCalledUpdateShapeSignature) == null ? void 0 : _a.has(sourceFile.resolvedPath))
30918
30950
  return false;
30919
30951
  const info = state.fileInfos.get(sourceFile.resolvedPath);
30920
30952
  const prevSignature = info.signature;
@@ -30961,7 +30993,7 @@ var BuilderState;
30961
30993
  let exportedModules;
30962
30994
  exportedModulesFromDeclarationEmit == null ? void 0 : exportedModulesFromDeclarationEmit.forEach(
30963
30995
  (symbol) => getReferencedFilesFromImportedModuleSymbol(symbol).forEach(
30964
- (path2) => (exportedModules != null ? exportedModules : exportedModules = /* @__PURE__ */ new Set()).add(path2)
30996
+ (path2) => (exportedModules ?? (exportedModules = /* @__PURE__ */ new Set())).add(path2)
30965
30997
  )
30966
30998
  );
30967
30999
  return exportedModules;
@@ -30990,8 +31022,8 @@ var BuilderState;
30990
31022
  }
30991
31023
  }
30992
31024
  return arrayFrom(mapDefinedIterator(seenMap.keys(), (path2) => {
30993
- var _a2, _b;
30994
- return (_b = (_a2 = programOfThisState.getSourceFileByPath(path2)) == null ? void 0 : _a2.fileName) != null ? _b : path2;
31025
+ var _a;
31026
+ return ((_a = programOfThisState.getSourceFileByPath(path2)) == null ? void 0 : _a.fileName) ?? path2;
30995
31027
  }));
30996
31028
  }
30997
31029
  BuilderState2.getAllDependencies = getAllDependencies;
@@ -31079,15 +31111,15 @@ function getTextHandlingSourceMapForSignature(text, data) {
31079
31111
  return (data == null ? void 0 : data.sourceMapUrlPos) !== void 0 ? text.substring(0, data.sourceMapUrlPos) : text;
31080
31112
  }
31081
31113
  function computeSignatureWithDiagnostics(program, sourceFile, text, host, data) {
31082
- var _a2, _b;
31114
+ var _a;
31083
31115
  text = getTextHandlingSourceMapForSignature(text, data);
31084
31116
  let sourceFileDirectory;
31085
- if ((_a2 = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a2.length) {
31117
+ if ((_a = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a.length) {
31086
31118
  text += data.diagnostics.map(
31087
31119
  (diagnostic) => `${locationInfo(diagnostic)}${DiagnosticCategory[diagnostic.category]}${diagnostic.code}: ${flattenDiagnosticMessageText2(diagnostic.messageText)}`
31088
31120
  ).join("\n");
31089
31121
  }
31090
- return ((_b = host.createHash) != null ? _b : generateDjb2Hash)(text);
31122
+ return (host.createHash ?? generateDjb2Hash)(text);
31091
31123
  function flattenDiagnosticMessageText2(diagnostic) {
31092
31124
  return isString(diagnostic) ? diagnostic : diagnostic === void 0 ? "" : !diagnostic.next ? diagnostic.messageText : diagnostic.messageText + diagnostic.next.map(flattenDiagnosticMessageText2).join("\n");
31093
31125
  }
@@ -31198,9 +31230,9 @@ function loadSafeList(host, safeListPath) {
31198
31230
  return new Map(Object.entries(result.config));
31199
31231
  }
31200
31232
  function loadTypesMap(host, typesMapPath) {
31201
- var _a2;
31233
+ var _a;
31202
31234
  const result = readConfigFile(typesMapPath, (path2) => host.readFile(path2));
31203
- if ((_a2 = result.config) == null ? void 0 : _a2.simpleMap) {
31235
+ if ((_a = result.config) == null ? void 0 : _a.simpleMap) {
31204
31236
  return new Map(Object.entries(result.config.simpleMap));
31205
31237
  }
31206
31238
  return void 0;
@@ -32091,7 +32123,7 @@ process.on("disconnect", () => {
32091
32123
  });
32092
32124
  var installer;
32093
32125
  process.on("message", (req) => {
32094
- installer != null ? installer : installer = new NodeTypingsInstaller(
32126
+ installer ?? (installer = new NodeTypingsInstaller(
32095
32127
  globalTypingsCacheLocation,
32096
32128
  typingSafeListLocation,
32097
32129
  typesMapLocation,
@@ -32100,7 +32132,7 @@ process.on("message", (req) => {
32100
32132
  /*throttleLimit*/
32101
32133
  5,
32102
32134
  log
32103
- );
32135
+ ));
32104
32136
  installer.handleRequest(req);
32105
32137
  });
32106
32138
  function indent(newline, str) {