typescript 4.7.0-dev.20220506 → 4.7.1-rc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/tsc.js CHANGED
@@ -22,7 +22,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
22
22
  ar[i] = from[i];
23
23
  }
24
24
  }
25
- return to.concat(ar || from);
25
+ return to.concat(ar || Array.prototype.slice.call(from));
26
26
  };
27
27
  var __assign = (this && this.__assign) || function () {
28
28
  __assign = Object.assign || function(t) {
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
69
69
  var ts;
70
70
  (function (ts) {
71
71
  ts.versionMajorMinor = "4.7";
72
- ts.version = ts.versionMajorMinor + ".0-dev.20220506";
72
+ ts.version = "".concat(ts.versionMajorMinor, ".1-rc");
73
73
  var NativeCollections;
74
74
  (function (NativeCollections) {
75
75
  var globals = typeof globalThis !== "undefined" ? globalThis :
@@ -94,7 +94,7 @@ var ts;
94
94
  var constructor = (_a = NativeCollections[nativeFactory]()) !== null && _a !== void 0 ? _a : ts.ShimCollections === null || ts.ShimCollections === void 0 ? void 0 : ts.ShimCollections[shimFactory](ts.getIterator);
95
95
  if (constructor)
96
96
  return constructor;
97
- throw new Error("TypeScript requires an environment that provides a compatible native " + name + " implementation.");
97
+ throw new Error("TypeScript requires an environment that provides a compatible native ".concat(name, " implementation."));
98
98
  }
99
99
  })(ts || (ts = {}));
100
100
  var ts;
@@ -1436,7 +1436,7 @@ var ts;
1436
1436
  function cast(value, test) {
1437
1437
  if (value !== undefined && test(value))
1438
1438
  return value;
1439
- return ts.Debug.fail("Invalid cast. The supplied value " + value + " did not pass the test '" + ts.Debug.getFunctionName(test) + "'.");
1439
+ return ts.Debug.fail("Invalid cast. The supplied value ".concat(value, " did not pass the test '").concat(ts.Debug.getFunctionName(test), "'."));
1440
1440
  }
1441
1441
  ts.cast = cast;
1442
1442
  function noop(_) { }
@@ -1486,7 +1486,7 @@ var ts;
1486
1486
  function memoizeOne(callback) {
1487
1487
  var map = new ts.Map();
1488
1488
  return function (arg) {
1489
- var key = typeof arg + ":" + arg;
1489
+ var key = "".concat(typeof arg, ":").concat(arg);
1490
1490
  var value = map.get(key);
1491
1491
  if (value === undefined && !map.has(key)) {
1492
1492
  value = callback(arg);
@@ -1821,7 +1821,7 @@ var ts;
1821
1821
  ts.createGetCanonicalFileName = createGetCanonicalFileName;
1822
1822
  function patternText(_a) {
1823
1823
  var prefix = _a.prefix, suffix = _a.suffix;
1824
- return prefix + "*" + suffix;
1824
+ return "".concat(prefix, "*").concat(suffix);
1825
1825
  }
1826
1826
  ts.patternText = patternText;
1827
1827
  function matchedText(pattern, candidate) {
@@ -2092,7 +2092,7 @@ var ts;
2092
2092
  }
2093
2093
  function fail(message, stackCrawlMark) {
2094
2094
  debugger;
2095
- var e = new Error(message ? "Debug Failure. " + message : "Debug Failure.");
2095
+ var e = new Error(message ? "Debug Failure. ".concat(message) : "Debug Failure.");
2096
2096
  if (Error.captureStackTrace) {
2097
2097
  Error.captureStackTrace(e, stackCrawlMark || fail);
2098
2098
  }
@@ -2100,12 +2100,12 @@ var ts;
2100
2100
  }
2101
2101
  Debug.fail = fail;
2102
2102
  function failBadSyntaxKind(node, message, stackCrawlMark) {
2103
- return fail((message || "Unexpected node.") + "\r\nNode " + formatSyntaxKind(node.kind) + " was unexpected.", stackCrawlMark || failBadSyntaxKind);
2103
+ return fail("".concat(message || "Unexpected node.", "\r\nNode ").concat(formatSyntaxKind(node.kind), " was unexpected."), stackCrawlMark || failBadSyntaxKind);
2104
2104
  }
2105
2105
  Debug.failBadSyntaxKind = failBadSyntaxKind;
2106
2106
  function assert(expression, message, verboseDebugInfo, stackCrawlMark) {
2107
2107
  if (!expression) {
2108
- message = message ? "False expression: " + message : "False expression.";
2108
+ message = message ? "False expression: ".concat(message) : "False expression.";
2109
2109
  if (verboseDebugInfo) {
2110
2110
  message += "\r\nVerbose Debug Information: " + (typeof verboseDebugInfo === "string" ? verboseDebugInfo : verboseDebugInfo());
2111
2111
  }
@@ -2115,26 +2115,26 @@ var ts;
2115
2115
  Debug.assert = assert;
2116
2116
  function assertEqual(a, b, msg, msg2, stackCrawlMark) {
2117
2117
  if (a !== b) {
2118
- var message = msg ? msg2 ? msg + " " + msg2 : msg : "";
2119
- fail("Expected " + a + " === " + b + ". " + message, stackCrawlMark || assertEqual);
2118
+ var message = msg ? msg2 ? "".concat(msg, " ").concat(msg2) : msg : "";
2119
+ fail("Expected ".concat(a, " === ").concat(b, ". ").concat(message), stackCrawlMark || assertEqual);
2120
2120
  }
2121
2121
  }
2122
2122
  Debug.assertEqual = assertEqual;
2123
2123
  function assertLessThan(a, b, msg, stackCrawlMark) {
2124
2124
  if (a >= b) {
2125
- fail("Expected " + a + " < " + b + ". " + (msg || ""), stackCrawlMark || assertLessThan);
2125
+ fail("Expected ".concat(a, " < ").concat(b, ". ").concat(msg || ""), stackCrawlMark || assertLessThan);
2126
2126
  }
2127
2127
  }
2128
2128
  Debug.assertLessThan = assertLessThan;
2129
2129
  function assertLessThanOrEqual(a, b, stackCrawlMark) {
2130
2130
  if (a > b) {
2131
- fail("Expected " + a + " <= " + b, stackCrawlMark || assertLessThanOrEqual);
2131
+ fail("Expected ".concat(a, " <= ").concat(b), stackCrawlMark || assertLessThanOrEqual);
2132
2132
  }
2133
2133
  }
2134
2134
  Debug.assertLessThanOrEqual = assertLessThanOrEqual;
2135
2135
  function assertGreaterThanOrEqual(a, b, stackCrawlMark) {
2136
2136
  if (a < b) {
2137
- fail("Expected " + a + " >= " + b, stackCrawlMark || assertGreaterThanOrEqual);
2137
+ fail("Expected ".concat(a, " >= ").concat(b), stackCrawlMark || assertGreaterThanOrEqual);
2138
2138
  }
2139
2139
  }
2140
2140
  Debug.assertGreaterThanOrEqual = assertGreaterThanOrEqual;
@@ -2164,42 +2164,42 @@ var ts;
2164
2164
  function assertNever(member, message, stackCrawlMark) {
2165
2165
  if (message === void 0) { message = "Illegal value:"; }
2166
2166
  var detail = typeof member === "object" && ts.hasProperty(member, "kind") && ts.hasProperty(member, "pos") ? "SyntaxKind: " + formatSyntaxKind(member.kind) : JSON.stringify(member);
2167
- return fail(message + " " + detail, stackCrawlMark || assertNever);
2167
+ return fail("".concat(message, " ").concat(detail), stackCrawlMark || assertNever);
2168
2168
  }
2169
2169
  Debug.assertNever = assertNever;
2170
2170
  function assertEachNode(nodes, test, message, stackCrawlMark) {
2171
2171
  if (shouldAssertFunction(1, "assertEachNode")) {
2172
- assert(test === undefined || ts.every(nodes, test), message || "Unexpected node.", function () { return "Node array did not pass test '" + getFunctionName(test) + "'."; }, stackCrawlMark || assertEachNode);
2172
+ assert(test === undefined || ts.every(nodes, test), message || "Unexpected node.", function () { return "Node array did not pass test '".concat(getFunctionName(test), "'."); }, stackCrawlMark || assertEachNode);
2173
2173
  }
2174
2174
  }
2175
2175
  Debug.assertEachNode = assertEachNode;
2176
2176
  function assertNode(node, test, message, stackCrawlMark) {
2177
2177
  if (shouldAssertFunction(1, "assertNode")) {
2178
- assert(node !== undefined && (test === undefined || test(node)), message || "Unexpected node.", function () { return "Node " + formatSyntaxKind(node === null || node === void 0 ? void 0 : node.kind) + " did not pass test '" + getFunctionName(test) + "'."; }, stackCrawlMark || assertNode);
2178
+ assert(node !== undefined && (test === undefined || test(node)), message || "Unexpected node.", function () { return "Node ".concat(formatSyntaxKind(node === null || node === void 0 ? void 0 : node.kind), " did not pass test '").concat(getFunctionName(test), "'."); }, stackCrawlMark || assertNode);
2179
2179
  }
2180
2180
  }
2181
2181
  Debug.assertNode = assertNode;
2182
2182
  function assertNotNode(node, test, message, stackCrawlMark) {
2183
2183
  if (shouldAssertFunction(1, "assertNotNode")) {
2184
- assert(node === undefined || test === undefined || !test(node), message || "Unexpected node.", function () { return "Node " + formatSyntaxKind(node.kind) + " should not have passed test '" + getFunctionName(test) + "'."; }, stackCrawlMark || assertNotNode);
2184
+ assert(node === undefined || test === undefined || !test(node), message || "Unexpected node.", function () { return "Node ".concat(formatSyntaxKind(node.kind), " should not have passed test '").concat(getFunctionName(test), "'."); }, stackCrawlMark || assertNotNode);
2185
2185
  }
2186
2186
  }
2187
2187
  Debug.assertNotNode = assertNotNode;
2188
2188
  function assertOptionalNode(node, test, message, stackCrawlMark) {
2189
2189
  if (shouldAssertFunction(1, "assertOptionalNode")) {
2190
- assert(test === undefined || node === undefined || test(node), message || "Unexpected node.", function () { return "Node " + formatSyntaxKind(node === null || node === void 0 ? void 0 : node.kind) + " did not pass test '" + getFunctionName(test) + "'."; }, stackCrawlMark || assertOptionalNode);
2190
+ assert(test === undefined || node === undefined || test(node), message || "Unexpected node.", function () { return "Node ".concat(formatSyntaxKind(node === null || node === void 0 ? void 0 : node.kind), " did not pass test '").concat(getFunctionName(test), "'."); }, stackCrawlMark || assertOptionalNode);
2191
2191
  }
2192
2192
  }
2193
2193
  Debug.assertOptionalNode = assertOptionalNode;
2194
2194
  function assertOptionalToken(node, kind, message, stackCrawlMark) {
2195
2195
  if (shouldAssertFunction(1, "assertOptionalToken")) {
2196
- assert(kind === undefined || node === undefined || node.kind === kind, message || "Unexpected node.", function () { return "Node " + formatSyntaxKind(node === null || node === void 0 ? void 0 : node.kind) + " was not a '" + formatSyntaxKind(kind) + "' token."; }, stackCrawlMark || assertOptionalToken);
2196
+ assert(kind === undefined || node === undefined || node.kind === kind, message || "Unexpected node.", function () { return "Node ".concat(formatSyntaxKind(node === null || node === void 0 ? void 0 : node.kind), " was not a '").concat(formatSyntaxKind(kind), "' token."); }, stackCrawlMark || assertOptionalToken);
2197
2197
  }
2198
2198
  }
2199
2199
  Debug.assertOptionalToken = assertOptionalToken;
2200
2200
  function assertMissingNode(node, message, stackCrawlMark) {
2201
2201
  if (shouldAssertFunction(1, "assertMissingNode")) {
2202
- assert(node === undefined, message || "Unexpected node.", function () { return "Node " + formatSyntaxKind(node.kind) + " was unexpected'."; }, stackCrawlMark || assertMissingNode);
2202
+ assert(node === undefined, message || "Unexpected node.", function () { return "Node ".concat(formatSyntaxKind(node.kind), " was unexpected'."); }, stackCrawlMark || assertMissingNode);
2203
2203
  }
2204
2204
  }
2205
2205
  Debug.assertMissingNode = assertMissingNode;
@@ -2220,7 +2220,7 @@ var ts;
2220
2220
  }
2221
2221
  Debug.getFunctionName = getFunctionName;
2222
2222
  function formatSymbol(symbol) {
2223
- return "{ name: " + ts.unescapeLeadingUnderscores(symbol.escapedName) + "; flags: " + formatSymbolFlags(symbol.flags) + "; declarations: " + ts.map(symbol.declarations, function (node) { return formatSyntaxKind(node.kind); }) + " }";
2223
+ return "{ name: ".concat(ts.unescapeLeadingUnderscores(symbol.escapedName), "; flags: ").concat(formatSymbolFlags(symbol.flags), "; declarations: ").concat(ts.map(symbol.declarations, function (node) { return formatSyntaxKind(node.kind); }), " }");
2224
2224
  }
2225
2225
  Debug.formatSymbol = formatSymbol;
2226
2226
  function formatEnum(value, enumObject, isFlags) {
@@ -2238,7 +2238,7 @@ var ts;
2238
2238
  break;
2239
2239
  }
2240
2240
  if (enumValue !== 0 && enumValue & value) {
2241
- result = "" + result + (result ? "|" : "") + enumName;
2241
+ result = "".concat(result).concat(result ? "|" : "").concat(enumName);
2242
2242
  remainingFlags &= ~enumValue;
2243
2243
  }
2244
2244
  }
@@ -2347,7 +2347,7 @@ var ts;
2347
2347
  this.flags & 1 ? "FlowUnreachable" :
2348
2348
  "UnknownFlow";
2349
2349
  var remainingFlags = this.flags & ~(2048 - 1);
2350
- return "" + flowHeader + (remainingFlags ? " (" + formatFlowFlags(remainingFlags) + ")" : "");
2350
+ return "".concat(flowHeader).concat(remainingFlags ? " (".concat(formatFlowFlags(remainingFlags), ")") : "");
2351
2351
  }
2352
2352
  },
2353
2353
  __debugFlowFlags: { get: function () { return formatEnum(this.flags, ts.FlowFlags, true); } },
@@ -2377,7 +2377,7 @@ var ts;
2377
2377
  __tsDebuggerDisplay: {
2378
2378
  value: function (defaultValue) {
2379
2379
  defaultValue = String(defaultValue).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/, "]");
2380
- return "NodeArray " + defaultValue;
2380
+ return "NodeArray ".concat(defaultValue);
2381
2381
  }
2382
2382
  }
2383
2383
  });
@@ -2423,7 +2423,7 @@ var ts;
2423
2423
  var symbolHeader = this.flags & 33554432 ? "TransientSymbol" :
2424
2424
  "Symbol";
2425
2425
  var remainingSymbolFlags = this.flags & ~33554432;
2426
- return symbolHeader + " '" + ts.symbolName(this) + "'" + (remainingSymbolFlags ? " (" + formatSymbolFlags(remainingSymbolFlags) + ")" : "");
2426
+ return "".concat(symbolHeader, " '").concat(ts.symbolName(this), "'").concat(remainingSymbolFlags ? " (".concat(formatSymbolFlags(remainingSymbolFlags), ")") : "");
2427
2427
  }
2428
2428
  },
2429
2429
  __debugFlags: { get: function () { return formatSymbolFlags(this.flags); } }
@@ -2432,11 +2432,11 @@ var ts;
2432
2432
  __tsDebuggerDisplay: {
2433
2433
  value: function () {
2434
2434
  var typeHeader = this.flags & 98304 ? "NullableType" :
2435
- this.flags & 384 ? "LiteralType " + JSON.stringify(this.value) :
2436
- this.flags & 2048 ? "LiteralType " + (this.value.negative ? "-" : "") + this.value.base10Value + "n" :
2435
+ this.flags & 384 ? "LiteralType ".concat(JSON.stringify(this.value)) :
2436
+ this.flags & 2048 ? "LiteralType ".concat(this.value.negative ? "-" : "").concat(this.value.base10Value, "n") :
2437
2437
  this.flags & 8192 ? "UniqueESSymbolType" :
2438
2438
  this.flags & 32 ? "EnumType" :
2439
- this.flags & 67359327 ? "IntrinsicType " + this.intrinsicName :
2439
+ this.flags & 67359327 ? "IntrinsicType ".concat(this.intrinsicName) :
2440
2440
  this.flags & 1048576 ? "UnionType" :
2441
2441
  this.flags & 2097152 ? "IntersectionType" :
2442
2442
  this.flags & 4194304 ? "IndexType" :
@@ -2455,7 +2455,7 @@ var ts;
2455
2455
  "ObjectType" :
2456
2456
  "Type";
2457
2457
  var remainingObjectFlags = this.flags & 524288 ? this.objectFlags & ~1343 : 0;
2458
- return "" + typeHeader + (this.symbol ? " '" + ts.symbolName(this.symbol) + "'" : "") + (remainingObjectFlags ? " (" + formatObjectFlags(remainingObjectFlags) + ")" : "");
2458
+ return "".concat(typeHeader).concat(this.symbol ? " '".concat(ts.symbolName(this.symbol), "'") : "").concat(remainingObjectFlags ? " (".concat(formatObjectFlags(remainingObjectFlags), ")") : "");
2459
2459
  }
2460
2460
  },
2461
2461
  __debugFlags: { get: function () { return formatTypeFlags(this.flags); } },
@@ -2489,11 +2489,11 @@ var ts;
2489
2489
  __tsDebuggerDisplay: {
2490
2490
  value: function () {
2491
2491
  var nodeHeader = ts.isGeneratedIdentifier(this) ? "GeneratedIdentifier" :
2492
- ts.isIdentifier(this) ? "Identifier '" + ts.idText(this) + "'" :
2493
- ts.isPrivateIdentifier(this) ? "PrivateIdentifier '" + ts.idText(this) + "'" :
2494
- ts.isStringLiteral(this) ? "StringLiteral " + JSON.stringify(this.text.length < 10 ? this.text : this.text.slice(10) + "...") :
2495
- ts.isNumericLiteral(this) ? "NumericLiteral " + this.text :
2496
- ts.isBigIntLiteral(this) ? "BigIntLiteral " + this.text + "n" :
2492
+ ts.isIdentifier(this) ? "Identifier '".concat(ts.idText(this), "'") :
2493
+ ts.isPrivateIdentifier(this) ? "PrivateIdentifier '".concat(ts.idText(this), "'") :
2494
+ ts.isStringLiteral(this) ? "StringLiteral ".concat(JSON.stringify(this.text.length < 10 ? this.text : this.text.slice(10) + "...")) :
2495
+ ts.isNumericLiteral(this) ? "NumericLiteral ".concat(this.text) :
2496
+ ts.isBigIntLiteral(this) ? "BigIntLiteral ".concat(this.text, "n") :
2497
2497
  ts.isTypeParameterDeclaration(this) ? "TypeParameterDeclaration" :
2498
2498
  ts.isParameter(this) ? "ParameterDeclaration" :
2499
2499
  ts.isConstructorDeclaration(this) ? "ConstructorDeclaration" :
@@ -2525,7 +2525,7 @@ var ts;
2525
2525
  ts.isNamedTupleMember(this) ? "NamedTupleMember" :
2526
2526
  ts.isImportTypeNode(this) ? "ImportTypeNode" :
2527
2527
  formatSyntaxKind(this.kind);
2528
- return "" + nodeHeader + (this.flags ? " (" + formatNodeFlags(this.flags) + ")" : "");
2528
+ return "".concat(nodeHeader).concat(this.flags ? " (".concat(formatNodeFlags(this.flags), ")") : "");
2529
2529
  }
2530
2530
  },
2531
2531
  __debugKind: { get: function () { return formatSyntaxKind(this.kind); } },
@@ -2569,10 +2569,10 @@ var ts;
2569
2569
  Debug.enableDebugInfo = enableDebugInfo;
2570
2570
  function formatDeprecationMessage(name, error, errorAfter, since, message) {
2571
2571
  var deprecationMessage = error ? "DeprecationError: " : "DeprecationWarning: ";
2572
- deprecationMessage += "'" + name + "' ";
2573
- deprecationMessage += since ? "has been deprecated since v" + since : "is deprecated";
2574
- deprecationMessage += error ? " and can no longer be used." : errorAfter ? " and will no longer be usable after v" + errorAfter + "." : ".";
2575
- deprecationMessage += message ? " " + ts.formatStringFromArgs(message, [name], 0) : "";
2572
+ deprecationMessage += "'".concat(name, "' ");
2573
+ deprecationMessage += since ? "has been deprecated since v".concat(since) : "is deprecated";
2574
+ deprecationMessage += error ? " and can no longer be used." : errorAfter ? " and will no longer be usable after v".concat(errorAfter, ".") : ".";
2575
+ deprecationMessage += message ? " ".concat(ts.formatStringFromArgs(message, [name], 0)) : "";
2576
2576
  return deprecationMessage;
2577
2577
  }
2578
2578
  function createErrorDeprecation(name, errorAfter, since, message) {
@@ -2669,11 +2669,11 @@ var ts;
2669
2669
  }
2670
2670
  };
2671
2671
  Version.prototype.toString = function () {
2672
- var result = this.major + "." + this.minor + "." + this.patch;
2672
+ var result = "".concat(this.major, ".").concat(this.minor, ".").concat(this.patch);
2673
2673
  if (ts.some(this.prerelease))
2674
- result += "-" + this.prerelease.join(".");
2674
+ result += "-".concat(this.prerelease.join("."));
2675
2675
  if (ts.some(this.build))
2676
- result += "+" + this.build.join(".");
2676
+ result += "+".concat(this.build.join("."));
2677
2677
  return result;
2678
2678
  };
2679
2679
  Version.zero = new Version(0, 0, 0);
@@ -2895,7 +2895,7 @@ var ts;
2895
2895
  return ts.map(comparators, formatComparator).join(" ");
2896
2896
  }
2897
2897
  function formatComparator(comparator) {
2898
- return "" + comparator.operator + comparator.operand;
2898
+ return "".concat(comparator.operator).concat(comparator.operand);
2899
2899
  }
2900
2900
  })(ts || (ts = {}));
2901
2901
  var ts;
@@ -3124,7 +3124,7 @@ var ts;
3124
3124
  fs = require("fs");
3125
3125
  }
3126
3126
  catch (e) {
3127
- throw new Error("tracing requires having fs\n(original error: " + (e.message || e) + ")");
3127
+ throw new Error("tracing requires having fs\n(original error: ".concat(e.message || e, ")"));
3128
3128
  }
3129
3129
  }
3130
3130
  mode = tracingMode;
@@ -3135,11 +3135,11 @@ var ts;
3135
3135
  if (!fs.existsSync(traceDir)) {
3136
3136
  fs.mkdirSync(traceDir, { recursive: true });
3137
3137
  }
3138
- var countPart = mode === "build" ? "." + process.pid + "-" + ++traceCount
3139
- : mode === "server" ? "." + process.pid
3138
+ var countPart = mode === "build" ? ".".concat(process.pid, "-").concat(++traceCount)
3139
+ : mode === "server" ? ".".concat(process.pid)
3140
3140
  : "";
3141
- var tracePath = ts.combinePaths(traceDir, "trace" + countPart + ".json");
3142
- var typesPath = ts.combinePaths(traceDir, "types" + countPart + ".json");
3141
+ var tracePath = ts.combinePaths(traceDir, "trace".concat(countPart, ".json"));
3142
+ var typesPath = ts.combinePaths(traceDir, "types".concat(countPart, ".json"));
3143
3143
  legend.push({
3144
3144
  configFilePath: configFilePath,
3145
3145
  tracePath: tracePath,
@@ -3207,7 +3207,7 @@ var ts;
3207
3207
  writeEvent("E", phase, name, args, undefined, endTime);
3208
3208
  }
3209
3209
  else if (sampleInterval - (time % sampleInterval) <= endTime - time) {
3210
- writeEvent("X", phase, name, args, "\"dur\":" + (endTime - time), time);
3210
+ writeEvent("X", phase, name, args, "\"dur\":".concat(endTime - time), time);
3211
3211
  }
3212
3212
  }
3213
3213
  function writeEvent(eventType, phase, name, args, extras, time) {
@@ -3215,11 +3215,11 @@ var ts;
3215
3215
  if (mode === "server" && phase === "checkTypes")
3216
3216
  return;
3217
3217
  ts.performance.mark("beginTracing");
3218
- fs.writeSync(traceFd, ",\n{\"pid\":1,\"tid\":1,\"ph\":\"" + eventType + "\",\"cat\":\"" + phase + "\",\"ts\":" + time + ",\"name\":\"" + name + "\"");
3218
+ fs.writeSync(traceFd, ",\n{\"pid\":1,\"tid\":1,\"ph\":\"".concat(eventType, "\",\"cat\":\"").concat(phase, "\",\"ts\":").concat(time, ",\"name\":\"").concat(name, "\""));
3219
3219
  if (extras)
3220
- fs.writeSync(traceFd, "," + extras);
3220
+ fs.writeSync(traceFd, ",".concat(extras));
3221
3221
  if (args)
3222
- fs.writeSync(traceFd, ",\"args\":" + JSON.stringify(args));
3222
+ fs.writeSync(traceFd, ",\"args\":".concat(JSON.stringify(args)));
3223
3223
  fs.writeSync(traceFd, "}");
3224
3224
  ts.performance.mark("endTracing");
3225
3225
  ts.performance.measure("Tracing", "beginTracing", "endTracing");
@@ -3546,7 +3546,7 @@ var ts;
3546
3546
  pollingChunkSize = getCustomPollingBasedLevels("TSC_WATCH_POLLINGCHUNKSIZE", defaultChunkLevels) || pollingChunkSize;
3547
3547
  ts.unchangedPollThresholds = getCustomPollingBasedLevels("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS", defaultChunkLevels) || ts.unchangedPollThresholds;
3548
3548
  function getLevel(envVar, level) {
3549
- return system.getEnvironmentVariable(envVar + "_" + level.toUpperCase());
3549
+ return system.getEnvironmentVariable("".concat(envVar, "_").concat(level.toUpperCase()));
3550
3550
  }
3551
3551
  function getCustomLevels(baseVariable) {
3552
3552
  var customLevels;
@@ -3970,7 +3970,7 @@ var ts;
3970
3970
  }
3971
3971
  function onTimerToUpdateChildWatches() {
3972
3972
  timerToUpdateChildWatches = undefined;
3973
- sysLog("sysLog:: onTimerToUpdateChildWatches:: " + cacheToUpdateChildWatches.size);
3973
+ sysLog("sysLog:: onTimerToUpdateChildWatches:: ".concat(cacheToUpdateChildWatches.size));
3974
3974
  var start = ts.timestamp();
3975
3975
  var invokeMap = new ts.Map();
3976
3976
  while (!timerToUpdateChildWatches && cacheToUpdateChildWatches.size) {
@@ -3981,7 +3981,7 @@ var ts;
3981
3981
  var hasChanges = updateChildWatches(dirName, dirPath, options);
3982
3982
  invokeCallbacks(dirPath, invokeMap, hasChanges ? undefined : fileNames);
3983
3983
  }
3984
- sysLog("sysLog:: invokingWatchers:: Elapsed:: " + (ts.timestamp() - start) + "ms:: " + cacheToUpdateChildWatches.size);
3984
+ sysLog("sysLog:: invokingWatchers:: Elapsed:: ".concat(ts.timestamp() - start, "ms:: ").concat(cacheToUpdateChildWatches.size));
3985
3985
  callbackCache.forEach(function (callbacks, rootDirName) {
3986
3986
  var existing = invokeMap.get(rootDirName);
3987
3987
  if (existing) {
@@ -3997,7 +3997,7 @@ var ts;
3997
3997
  }
3998
3998
  });
3999
3999
  var elapsed = ts.timestamp() - start;
4000
- sysLog("sysLog:: Elapsed:: " + elapsed + "ms:: onTimerToUpdateChildWatches:: " + cacheToUpdateChildWatches.size + " " + timerToUpdateChildWatches);
4000
+ sysLog("sysLog:: Elapsed:: ".concat(elapsed, "ms:: onTimerToUpdateChildWatches:: ").concat(cacheToUpdateChildWatches.size, " ").concat(timerToUpdateChildWatches));
4001
4001
  }
4002
4002
  function removeChildWatches(parentWatcher) {
4003
4003
  if (!parentWatcher)
@@ -4389,7 +4389,7 @@ var ts;
4389
4389
  var externalFileCounter = 0;
4390
4390
  var remappedPaths = new ts.Map();
4391
4391
  var normalizedDir = ts.normalizeSlashes(__dirname);
4392
- var fileUrlRoot = "file://" + (ts.getRootLength(normalizedDir) === 1 ? "" : "/") + normalizedDir;
4392
+ var fileUrlRoot = "file://".concat(ts.getRootLength(normalizedDir) === 1 ? "" : "/").concat(normalizedDir);
4393
4393
  for (var _i = 0, _a = profile.nodes; _i < _a.length; _i++) {
4394
4394
  var node = _a[_i];
4395
4395
  if (node.callFrame.url) {
@@ -4398,7 +4398,7 @@ var ts;
4398
4398
  node.callFrame.url = ts.getRelativePathToDirectoryOrUrl(fileUrlRoot, url, fileUrlRoot, ts.createGetCanonicalFileName(useCaseSensitiveFileNames), true);
4399
4399
  }
4400
4400
  else if (!nativePattern.test(url)) {
4401
- node.callFrame.url = (remappedPaths.has(url) ? remappedPaths : remappedPaths.set(url, "external" + externalFileCounter + ".js")).get(url);
4401
+ node.callFrame.url = (remappedPaths.has(url) ? remappedPaths : remappedPaths.set(url, "external".concat(externalFileCounter, ".js"))).get(url);
4402
4402
  externalFileCounter++;
4403
4403
  }
4404
4404
  }
@@ -4414,7 +4414,7 @@ var ts;
4414
4414
  if (!err) {
4415
4415
  try {
4416
4416
  if ((_b = statSync(profilePath)) === null || _b === void 0 ? void 0 : _b.isDirectory()) {
4417
- profilePath = _path.join(profilePath, (new Date()).toISOString().replace(/:/g, "-") + "+P" + process.pid + ".cpuprofile");
4417
+ profilePath = _path.join(profilePath, "".concat((new Date()).toISOString().replace(/:/g, "-"), "+P").concat(process.pid, ".cpuprofile"));
4418
4418
  }
4419
4419
  }
4420
4420
  catch (_c) {
@@ -4499,7 +4499,7 @@ var ts;
4499
4499
  }
4500
4500
  };
4501
4501
  function invokeCallbackAndUpdateWatcher(createWatcher) {
4502
- sysLog("sysLog:: " + fileOrDirectory + ":: Changing watcher to " + (createWatcher === watchPresentFileSystemEntry ? "Present" : "Missing") + "FileSystemEntryWatcher");
4502
+ sysLog("sysLog:: ".concat(fileOrDirectory, ":: Changing watcher to ").concat(createWatcher === watchPresentFileSystemEntry ? "Present" : "Missing", "FileSystemEntryWatcher"));
4503
4503
  callback("rename", "");
4504
4504
  if (watcher) {
4505
4505
  watcher.close();
@@ -4516,7 +4516,7 @@ var ts;
4516
4516
  }
4517
4517
  }
4518
4518
  if (hitSystemWatcherLimit) {
4519
- sysLog("sysLog:: " + fileOrDirectory + ":: Defaulting to fsWatchFile");
4519
+ sysLog("sysLog:: ".concat(fileOrDirectory, ":: Defaulting to fsWatchFile"));
4520
4520
  return watchPresentFileSystemEntryWithFsWatchFile();
4521
4521
  }
4522
4522
  try {
@@ -4528,7 +4528,7 @@ var ts;
4528
4528
  }
4529
4529
  catch (e) {
4530
4530
  hitSystemWatcherLimit || (hitSystemWatcherLimit = e.code === "ENOSPC");
4531
- sysLog("sysLog:: " + fileOrDirectory + ":: Changing to fsWatchFile");
4531
+ sysLog("sysLog:: ".concat(fileOrDirectory, ":: Changing to fsWatchFile"));
4532
4532
  return watchPresentFileSystemEntryWithFsWatchFile();
4533
4533
  }
4534
4534
  }
@@ -6184,6 +6184,7 @@ var ts;
6184
6184
  This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0: diag(4122, ts.DiagnosticCategory.Error, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122", "This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),
6185
6185
  This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1: diag(4123, ts.DiagnosticCategory.Error, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123", "This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),
6186
6186
  Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next: diag(4124, ts.DiagnosticCategory.Error, "Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124", "Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),
6187
+ Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next: diag(4125, ts.DiagnosticCategory.Error, "Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125", "Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),
6187
6188
  The_current_host_does_not_support_the_0_option: diag(5001, ts.DiagnosticCategory.Error, "The_current_host_does_not_support_the_0_option_5001", "The current host does not support the '{0}' option."),
6188
6189
  Cannot_find_the_common_subdirectory_path_for_the_input_files: diag(5009, ts.DiagnosticCategory.Error, "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", "Cannot find the common subdirectory path for the input files."),
6189
6190
  File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5010, ts.DiagnosticCategory.Error, "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010", "File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),
@@ -7238,7 +7239,7 @@ var ts;
7238
7239
  line = line < 0 ? 0 : line >= lineStarts.length ? lineStarts.length - 1 : line;
7239
7240
  }
7240
7241
  else {
7241
- ts.Debug.fail("Bad line number. Line: " + line + ", lineStarts.length: " + lineStarts.length + " , line map is correct? " + (debugText !== undefined ? ts.arraysEqual(lineStarts, computeLineStarts(debugText)) : "unknown"));
7242
+ ts.Debug.fail("Bad line number. Line: ".concat(line, ", lineStarts.length: ").concat(lineStarts.length, " , line map is correct? ").concat(debugText !== undefined ? ts.arraysEqual(lineStarts, computeLineStarts(debugText)) : "unknown"));
7242
7243
  }
7243
7244
  }
7244
7245
  var res = lineStarts[line] + character;
@@ -9753,7 +9754,7 @@ var ts;
9753
9754
  : "linkplain";
9754
9755
  var name = link.name ? ts.entityNameToString(link.name) : "";
9755
9756
  var space = link.name && link.text.startsWith("://") ? "" : " ";
9756
- return "{@" + kind + " " + name + space + link.text + "}";
9757
+ return "{@".concat(kind, " ").concat(name).concat(space).concat(link.text, "}");
9757
9758
  }
9758
9759
  function getEffectiveTypeParameterDeclarations(node) {
9759
9760
  if (ts.isJSDocSignature(node)) {
@@ -10852,11 +10853,11 @@ var ts;
10852
10853
  }
10853
10854
  function packageIdToPackageName(_a) {
10854
10855
  var name = _a.name, subModuleName = _a.subModuleName;
10855
- return subModuleName ? name + "/" + subModuleName : name;
10856
+ return subModuleName ? "".concat(name, "/").concat(subModuleName) : name;
10856
10857
  }
10857
10858
  ts.packageIdToPackageName = packageIdToPackageName;
10858
10859
  function packageIdToString(packageId) {
10859
- return packageIdToPackageName(packageId) + "@" + packageId.version;
10860
+ return "".concat(packageIdToPackageName(packageId), "@").concat(packageId.version);
10860
10861
  }
10861
10862
  ts.packageIdToString = packageIdToString;
10862
10863
  function typeDirectiveIsEqualTo(oldResolution, newResolution) {
@@ -10933,7 +10934,7 @@ var ts;
10933
10934
  function nodePosToString(node) {
10934
10935
  var file = getSourceFileOfNode(node);
10935
10936
  var loc = ts.getLineAndCharacterOfPosition(file, node.pos);
10936
- return file.fileName + "(" + (loc.line + 1) + "," + (loc.character + 1) + ")";
10937
+ return "".concat(file.fileName, "(").concat(loc.line + 1, ",").concat(loc.character + 1, ")");
10937
10938
  }
10938
10939
  ts.nodePosToString = nodePosToString;
10939
10940
  function getEndLinePosition(line, sourceFile) {
@@ -11034,7 +11035,7 @@ var ts;
11034
11035
  ts.isPinnedComment = isPinnedComment;
11035
11036
  function createCommentDirectivesMap(sourceFile, commentDirectives) {
11036
11037
  var directivesByLine = new ts.Map(commentDirectives.map(function (commentDirective) { return ([
11037
- "" + ts.getLineAndCharacterOfPosition(sourceFile, commentDirective.range.end).line,
11038
+ "".concat(ts.getLineAndCharacterOfPosition(sourceFile, commentDirective.range.end).line),
11038
11039
  commentDirective,
11039
11040
  ]); }));
11040
11041
  var usedLines = new ts.Map();
@@ -11051,10 +11052,10 @@ var ts;
11051
11052
  });
11052
11053
  }
11053
11054
  function markUsed(line) {
11054
- if (!directivesByLine.has("" + line)) {
11055
+ if (!directivesByLine.has("".concat(line))) {
11055
11056
  return false;
11056
11057
  }
11057
- usedLines.set("" + line, true);
11058
+ usedLines.set("".concat(line), true);
11058
11059
  return true;
11059
11060
  }
11060
11061
  }
@@ -11253,7 +11254,7 @@ var ts;
11253
11254
  }
11254
11255
  return node.text;
11255
11256
  }
11256
- return ts.Debug.fail("Literal kind '" + node.kind + "' not accounted for.");
11257
+ return ts.Debug.fail("Literal kind '".concat(node.kind, "' not accounted for."));
11257
11258
  }
11258
11259
  ts.getLiteralText = getLiteralText;
11259
11260
  function canUseOriginalText(node, flags) {
@@ -13617,11 +13618,11 @@ var ts;
13617
13618
  }
13618
13619
  ts.getEscapedTextOfIdentifierOrLiteral = getEscapedTextOfIdentifierOrLiteral;
13619
13620
  function getPropertyNameForUniqueESSymbol(symbol) {
13620
- return "__@" + ts.getSymbolId(symbol) + "@" + symbol.escapedName;
13621
+ return "__@".concat(ts.getSymbolId(symbol), "@").concat(symbol.escapedName);
13621
13622
  }
13622
13623
  ts.getPropertyNameForUniqueESSymbol = getPropertyNameForUniqueESSymbol;
13623
13624
  function getSymbolNameForPrivateIdentifier(containingClassSymbol, description) {
13624
- return "__#" + ts.getSymbolId(containingClassSymbol) + "@" + description;
13625
+ return "__#".concat(ts.getSymbolId(containingClassSymbol), "@").concat(description);
13625
13626
  }
13626
13627
  ts.getSymbolNameForPrivateIdentifier = getSymbolNameForPrivateIdentifier;
13627
13628
  function isKnownSymbol(symbol) {
@@ -14052,6 +14053,10 @@ var ts;
14052
14053
  return indentStrings[1].length;
14053
14054
  }
14054
14055
  ts.getIndentSize = getIndentSize;
14056
+ function isNightly() {
14057
+ return ts.stringContains(ts.version, "-dev") || ts.stringContains(ts.version, "-insiders");
14058
+ }
14059
+ ts.isNightly = isNightly;
14055
14060
  function createTextWriter(newLine) {
14056
14061
  var output;
14057
14062
  var indent;
@@ -16004,7 +16009,7 @@ var ts;
16004
16009
  }
16005
16010
  ts.getJSXImplicitImportBase = getJSXImplicitImportBase;
16006
16011
  function getJSXRuntimeImport(base, options) {
16007
- return base ? base + "/" + (options.jsx === 5 ? "jsx-dev-runtime" : "jsx-runtime") : undefined;
16012
+ return base ? "".concat(base, "/").concat(options.jsx === 5 ? "jsx-dev-runtime" : "jsx-runtime") : undefined;
16008
16013
  }
16009
16014
  ts.getJSXRuntimeImport = getJSXRuntimeImport;
16010
16015
  function hasZeroOrOneAsteriskCharacter(str) {
@@ -16102,15 +16107,15 @@ var ts;
16102
16107
  }
16103
16108
  var wildcardCharCodes = [42, 63];
16104
16109
  ts.commonPackageFolders = ["node_modules", "bower_components", "jspm_packages"];
16105
- var implicitExcludePathRegexPattern = "(?!(" + ts.commonPackageFolders.join("|") + ")(/|$))";
16110
+ var implicitExcludePathRegexPattern = "(?!(".concat(ts.commonPackageFolders.join("|"), ")(/|$))");
16106
16111
  var filesMatcher = {
16107
16112
  singleAsteriskRegexFragment: "([^./]|(\\.(?!min\\.js$))?)*",
16108
- doubleAsteriskRegexFragment: "(/" + implicitExcludePathRegexPattern + "[^/.][^/]*)*?",
16113
+ doubleAsteriskRegexFragment: "(/".concat(implicitExcludePathRegexPattern, "[^/.][^/]*)*?"),
16109
16114
  replaceWildcardCharacter: function (match) { return replaceWildcardCharacter(match, filesMatcher.singleAsteriskRegexFragment); }
16110
16115
  };
16111
16116
  var directoriesMatcher = {
16112
16117
  singleAsteriskRegexFragment: "[^/]*",
16113
- doubleAsteriskRegexFragment: "(/" + implicitExcludePathRegexPattern + "[^/.][^/]*)*?",
16118
+ doubleAsteriskRegexFragment: "(/".concat(implicitExcludePathRegexPattern, "[^/.][^/]*)*?"),
16114
16119
  replaceWildcardCharacter: function (match) { return replaceWildcardCharacter(match, directoriesMatcher.singleAsteriskRegexFragment); }
16115
16120
  };
16116
16121
  var excludeMatcher = {
@@ -16128,9 +16133,9 @@ var ts;
16128
16133
  if (!patterns || !patterns.length) {
16129
16134
  return undefined;
16130
16135
  }
16131
- var pattern = patterns.map(function (pattern) { return "(" + pattern + ")"; }).join("|");
16136
+ var pattern = patterns.map(function (pattern) { return "(".concat(pattern, ")"); }).join("|");
16132
16137
  var terminator = usage === "exclude" ? "($|/)" : "$";
16133
- return "^(" + pattern + ")" + terminator;
16138
+ return "^(".concat(pattern, ")").concat(terminator);
16134
16139
  }
16135
16140
  ts.getRegularExpressionForWildcard = getRegularExpressionForWildcard;
16136
16141
  function getRegularExpressionsForWildcards(specs, basePath, usage) {
@@ -16148,7 +16153,7 @@ var ts;
16148
16153
  ts.isImplicitGlob = isImplicitGlob;
16149
16154
  function getPatternFromSpec(spec, basePath, usage) {
16150
16155
  var pattern = spec && getSubPatternFromSpec(spec, basePath, usage, wildcardMatchers[usage]);
16151
- return pattern && "^(" + pattern + ")" + (usage === "exclude" ? "($|/)" : "$");
16156
+ return pattern && "^(".concat(pattern, ")").concat(usage === "exclude" ? "($|/)" : "$");
16152
16157
  }
16153
16158
  ts.getPatternFromSpec = getPatternFromSpec;
16154
16159
  function getSubPatternFromSpec(spec, basePath, usage, _a) {
@@ -16214,7 +16219,7 @@ var ts;
16214
16219
  currentDirectory = ts.normalizePath(currentDirectory);
16215
16220
  var absolutePath = ts.combinePaths(currentDirectory, path);
16216
16221
  return {
16217
- includeFilePatterns: ts.map(getRegularExpressionsForWildcards(includes, absolutePath, "files"), function (pattern) { return "^" + pattern + "$"; }),
16222
+ includeFilePatterns: ts.map(getRegularExpressionsForWildcards(includes, absolutePath, "files"), function (pattern) { return "^".concat(pattern, "$"); }),
16218
16223
  includeFilePattern: getRegularExpressionForWildcard(includes, absolutePath, "files"),
16219
16224
  includeDirectoryPattern: getRegularExpressionForWildcard(includes, absolutePath, "directories"),
16220
16225
  excludePattern: getRegularExpressionForWildcard(excludes, absolutePath, "exclude"),
@@ -16460,7 +16465,7 @@ var ts;
16460
16465
  ts.resolutionExtensionIsTSOrJson = resolutionExtensionIsTSOrJson;
16461
16466
  function extensionFromPath(path) {
16462
16467
  var ext = tryGetExtensionFromPath(path);
16463
- return ext !== undefined ? ext : ts.Debug.fail("File " + path + " has unknown extension.");
16468
+ return ext !== undefined ? ext : ts.Debug.fail("File ".concat(path, " has unknown extension."));
16464
16469
  }
16465
16470
  ts.extensionFromPath = extensionFromPath;
16466
16471
  function isAnySupportedFileExtension(path) {
@@ -21699,7 +21704,7 @@ var ts;
21699
21704
  case 328: return "augments";
21700
21705
  case 329: return "implements";
21701
21706
  default:
21702
- return ts.Debug.fail("Unsupported kind: " + ts.Debug.formatSyntaxKind(kind));
21707
+ return ts.Debug.fail("Unsupported kind: ".concat(ts.Debug.formatSyntaxKind(kind)));
21703
21708
  }
21704
21709
  }
21705
21710
  var rawTextScanner;
@@ -22026,7 +22031,7 @@ var ts;
22026
22031
  };
22027
22032
  var definedTextGetter_1 = function (path) {
22028
22033
  var result = textGetter_1(path);
22029
- return result !== undefined ? result : "/* Input file " + path + " was missing */\r\n";
22034
+ return result !== undefined ? result : "/* Input file ".concat(path, " was missing */\r\n");
22030
22035
  };
22031
22036
  var buildInfo_1;
22032
22037
  var getAndCacheBuildInfo_1 = function (getText) {
@@ -25755,7 +25760,7 @@ var ts;
25755
25760
  for (var _i = 0, viableKeywordSuggestions_1 = viableKeywordSuggestions; _i < viableKeywordSuggestions_1.length; _i++) {
25756
25761
  var keyword = viableKeywordSuggestions_1[_i];
25757
25762
  if (expressionText.length > keyword.length + 2 && ts.startsWith(expressionText, keyword)) {
25758
- return keyword + " " + expressionText.slice(keyword.length);
25763
+ return "".concat(keyword, " ").concat(expressionText.slice(keyword.length));
25759
25764
  }
25760
25765
  }
25761
25766
  return undefined;
@@ -26464,6 +26469,7 @@ var ts;
26464
26469
  var startPos = scanner.getStartPos();
26465
26470
  var result = parseListElement(kind, parseElement);
26466
26471
  if (!result) {
26472
+ parsingContext = saveParsingContext;
26467
26473
  return undefined;
26468
26474
  }
26469
26475
  list.push(result);
@@ -27689,6 +27695,9 @@ var ts;
27689
27695
  return 1;
27690
27696
  }
27691
27697
  if (ts.isModifierKind(second) && second !== 131 && lookAhead(nextTokenIsIdentifier)) {
27698
+ if (lookAhead(function () { return nextToken() === 127; })) {
27699
+ return 0;
27700
+ }
27692
27701
  return 1;
27693
27702
  }
27694
27703
  if (!isIdentifier() && second !== 108) {
@@ -31293,7 +31302,7 @@ var ts;
31293
31302
  if (namedArgRegExCache.has(name)) {
31294
31303
  return namedArgRegExCache.get(name);
31295
31304
  }
31296
- var result = new RegExp("(\\s" + name + "\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))", "im");
31305
+ var result = new RegExp("(\\s".concat(name, "\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))"), "im");
31297
31306
  namedArgRegExCache.set(name, result);
31298
31307
  return result;
31299
31308
  }
@@ -32731,8 +32740,8 @@ var ts;
32731
32740
  }
32732
32741
  ts.createCompilerDiagnosticForInvalidCustomType = createCompilerDiagnosticForInvalidCustomType;
32733
32742
  function createDiagnosticForInvalidCustomType(opt, createDiagnostic) {
32734
- var namesOfType = ts.arrayFrom(opt.type.keys()).map(function (key) { return "'" + key + "'"; }).join(", ");
32735
- return createDiagnostic(ts.Diagnostics.Argument_for_0_option_must_be_Colon_1, "--" + opt.name, namesOfType);
32743
+ var namesOfType = ts.arrayFrom(opt.type.keys()).map(function (key) { return "'".concat(key, "'"); }).join(", ");
32744
+ return createDiagnostic(ts.Diagnostics.Argument_for_0_option_must_be_Colon_1, "--".concat(opt.name), namesOfType);
32736
32745
  }
32737
32746
  function parseCustomTypeOption(opt, value, errors) {
32738
32747
  return convertJsonOptionOfCustomType(opt, ts.trimString(value || ""), errors);
@@ -33449,10 +33458,10 @@ var ts;
33449
33458
  var newValue = compilerOptionsMap.get(cmd.name);
33450
33459
  var defaultValue = getDefaultValueForOption(cmd);
33451
33460
  if (newValue !== defaultValue) {
33452
- result.push("" + tab + cmd.name + ": " + newValue);
33461
+ result.push("".concat(tab).concat(cmd.name, ": ").concat(newValue));
33453
33462
  }
33454
33463
  else if (ts.hasProperty(ts.defaultInitCompilerOptions, cmd.name)) {
33455
- result.push("" + tab + cmd.name + ": " + defaultValue);
33464
+ result.push("".concat(tab).concat(cmd.name, ": ").concat(defaultValue));
33456
33465
  }
33457
33466
  });
33458
33467
  return result.join(newLine) + newLine;
@@ -33490,19 +33499,19 @@ var ts;
33490
33499
  if (entries.length !== 0) {
33491
33500
  entries.push({ value: "" });
33492
33501
  }
33493
- entries.push({ value: "/* " + category + " */" });
33502
+ entries.push({ value: "/* ".concat(category, " */") });
33494
33503
  for (var _i = 0, options_1 = options; _i < options_1.length; _i++) {
33495
33504
  var option = options_1[_i];
33496
33505
  var optionName = void 0;
33497
33506
  if (compilerOptionsMap.has(option.name)) {
33498
- optionName = "\"" + option.name + "\": " + JSON.stringify(compilerOptionsMap.get(option.name)) + ((seenKnownKeys += 1) === compilerOptionsMap.size ? "" : ",");
33507
+ optionName = "\"".concat(option.name, "\": ").concat(JSON.stringify(compilerOptionsMap.get(option.name))).concat((seenKnownKeys += 1) === compilerOptionsMap.size ? "" : ",");
33499
33508
  }
33500
33509
  else {
33501
- optionName = "// \"" + option.name + "\": " + JSON.stringify(getDefaultValueForOption(option)) + ",";
33510
+ optionName = "// \"".concat(option.name, "\": ").concat(JSON.stringify(getDefaultValueForOption(option)), ",");
33502
33511
  }
33503
33512
  entries.push({
33504
33513
  value: optionName,
33505
- description: "/* " + (option.description && ts.getLocaleSpecificMessage(option.description) || option.name) + " */"
33514
+ description: "/* ".concat(option.description && ts.getLocaleSpecificMessage(option.description) || option.name, " */")
33506
33515
  });
33507
33516
  marginLength = Math.max(optionName.length, marginLength);
33508
33517
  }
@@ -33510,24 +33519,24 @@ var ts;
33510
33519
  var tab = makePadding(2);
33511
33520
  var result = [];
33512
33521
  result.push("{");
33513
- result.push(tab + "\"compilerOptions\": {");
33514
- result.push("" + tab + tab + "/* " + ts.getLocaleSpecificMessage(ts.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file) + " */");
33522
+ result.push("".concat(tab, "\"compilerOptions\": {"));
33523
+ result.push("".concat(tab).concat(tab, "/* ").concat(ts.getLocaleSpecificMessage(ts.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file), " */"));
33515
33524
  result.push("");
33516
33525
  for (var _a = 0, entries_2 = entries; _a < entries_2.length; _a++) {
33517
33526
  var entry = entries_2[_a];
33518
33527
  var value = entry.value, _b = entry.description, description = _b === void 0 ? "" : _b;
33519
- result.push(value && "" + tab + tab + value + (description && (makePadding(marginLength - value.length + 2) + description)));
33528
+ result.push(value && "".concat(tab).concat(tab).concat(value).concat(description && (makePadding(marginLength - value.length + 2) + description)));
33520
33529
  }
33521
33530
  if (fileNames.length) {
33522
- result.push(tab + "},");
33523
- result.push(tab + "\"files\": [");
33531
+ result.push("".concat(tab, "},"));
33532
+ result.push("".concat(tab, "\"files\": ["));
33524
33533
  for (var i = 0; i < fileNames.length; i++) {
33525
- result.push("" + tab + tab + JSON.stringify(fileNames[i]) + (i === fileNames.length - 1 ? "" : ","));
33534
+ result.push("".concat(tab).concat(tab).concat(JSON.stringify(fileNames[i])).concat(i === fileNames.length - 1 ? "" : ","));
33526
33535
  }
33527
- result.push(tab + "]");
33536
+ result.push("".concat(tab, "]"));
33528
33537
  }
33529
33538
  else {
33530
- result.push(tab + "}");
33539
+ result.push("".concat(tab, "}"));
33531
33540
  }
33532
33541
  result.push("}");
33533
33542
  return result.join(newLine) + newLine;
@@ -33880,7 +33889,7 @@ var ts;
33880
33889
  if (ts.isRootedDiskPath(extendedConfig) || ts.startsWith(extendedConfig, "./") || ts.startsWith(extendedConfig, "../")) {
33881
33890
  var extendedConfigPath = ts.getNormalizedAbsolutePath(extendedConfig, basePath);
33882
33891
  if (!host.fileExists(extendedConfigPath) && !ts.endsWith(extendedConfigPath, ".json")) {
33883
- extendedConfigPath = extendedConfigPath + ".json";
33892
+ extendedConfigPath = "".concat(extendedConfigPath, ".json");
33884
33893
  if (!host.fileExists(extendedConfigPath)) {
33885
33894
  errors.push(createDiagnostic(ts.Diagnostics.File_0_not_found, extendedConfig));
33886
33895
  return undefined;
@@ -34076,7 +34085,7 @@ var ts;
34076
34085
  if (ts.fileExtensionIs(file, ".json")) {
34077
34086
  if (!jsonOnlyIncludeRegexes) {
34078
34087
  var includes = validatedIncludeSpecs.filter(function (s) { return ts.endsWith(s, ".json"); });
34079
- var includeFilePatterns = ts.map(ts.getRegularExpressionsForWildcards(includes, basePath, "files"), function (pattern) { return "^" + pattern + "$"; });
34088
+ var includeFilePatterns = ts.map(ts.getRegularExpressionsForWildcards(includes, basePath, "files"), function (pattern) { return "^".concat(pattern, "$"); });
34080
34089
  jsonOnlyIncludeRegexes = includeFilePatterns ? includeFilePatterns.map(function (pattern) { return ts.getRegexFromPattern(pattern, host.useCaseSensitiveFileNames); }) : ts.emptyArray;
34081
34090
  }
34082
34091
  var includeIndex = ts.findIndex(jsonOnlyIncludeRegexes, function (re) { return re.test(file); });
@@ -34304,7 +34313,7 @@ var ts;
34304
34313
  return true;
34305
34314
  case "string":
34306
34315
  var defaultValue = option.defaultValueDescription;
34307
- return option.isFilePath ? "./" + (defaultValue && typeof defaultValue === "string" ? defaultValue : "") : "";
34316
+ return option.isFilePath ? "./".concat(defaultValue && typeof defaultValue === "string" ? defaultValue : "") : "";
34308
34317
  case "list":
34309
34318
  return [];
34310
34319
  case "object":
@@ -34451,7 +34460,7 @@ var ts;
34451
34460
  var bestVersionKey = result.version, bestVersionPaths = result.paths;
34452
34461
  if (typeof bestVersionPaths !== "object") {
34453
34462
  if (state.traceEnabled) {
34454
- trace(state.host, ts.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2, "typesVersions['" + bestVersionKey + "']", "object", typeof bestVersionPaths);
34463
+ trace(state.host, ts.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2, "typesVersions['".concat(bestVersionKey, "']"), "object", typeof bestVersionPaths);
34455
34464
  }
34456
34465
  return;
34457
34466
  }
@@ -34838,7 +34847,7 @@ var ts;
34838
34847
  };
34839
34848
  return cache;
34840
34849
  function getUnderlyingCacheKey(specifier, mode) {
34841
- var result = mode === undefined ? specifier : mode + "|" + specifier;
34850
+ var result = mode === undefined ? specifier : "".concat(mode, "|").concat(specifier);
34842
34851
  memoizedReverseKeys.set(result, [specifier, mode]);
34843
34852
  return result;
34844
34853
  }
@@ -34871,7 +34880,7 @@ var ts;
34871
34880
  }
34872
34881
  function getOrCreateCacheForModuleName(nonRelativeModuleName, mode, redirectedReference) {
34873
34882
  ts.Debug.assert(!ts.isExternalModuleNameRelative(nonRelativeModuleName));
34874
- return getOrCreateCache(moduleNameToDirectoryMap, redirectedReference, mode === undefined ? nonRelativeModuleName : mode + "|" + nonRelativeModuleName, createPerModuleNameCache);
34883
+ return getOrCreateCache(moduleNameToDirectoryMap, redirectedReference, mode === undefined ? nonRelativeModuleName : "".concat(mode, "|").concat(nonRelativeModuleName), createPerModuleNameCache);
34875
34884
  }
34876
34885
  function createPerModuleNameCache() {
34877
34886
  var directoryPathMap = new ts.Map();
@@ -34999,10 +35008,10 @@ var ts;
34999
35008
  result = classicNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference);
35000
35009
  break;
35001
35010
  default:
35002
- return ts.Debug.fail("Unexpected moduleResolution: " + moduleResolution);
35011
+ return ts.Debug.fail("Unexpected moduleResolution: ".concat(moduleResolution));
35003
35012
  }
35004
35013
  if (result && result.resolvedModule)
35005
- ts.perfLogger.logInfoEvent("Module \"" + moduleName + "\" resolved to \"" + result.resolvedModule.resolvedFileName + "\"");
35014
+ ts.perfLogger.logInfoEvent("Module \"".concat(moduleName, "\" resolved to \"").concat(result.resolvedModule.resolvedFileName, "\""));
35006
35015
  ts.perfLogger.logStopResolveModule((result && result.resolvedModule) ? "" + result.resolvedModule.resolvedFileName : "null");
35007
35016
  if (perFolderCache) {
35008
35017
  perFolderCache.set(moduleName, resolutionMode, result);
@@ -35132,7 +35141,7 @@ var ts;
35132
35141
  function resolveJSModule(moduleName, initialDir, host) {
35133
35142
  var _a = tryResolveJSModuleWorker(moduleName, initialDir, host), resolvedModule = _a.resolvedModule, failedLookupLocations = _a.failedLookupLocations;
35134
35143
  if (!resolvedModule) {
35135
- throw new Error("Could not resolve JS module '" + moduleName + "' starting at '" + initialDir + "'. Looked in: " + failedLookupLocations.join(", "));
35144
+ throw new Error("Could not resolve JS module '".concat(moduleName, "' starting at '").concat(initialDir, "'. Looked in: ").concat(failedLookupLocations.join(", ")));
35136
35145
  }
35137
35146
  return resolvedModule.resolvedFileName;
35138
35147
  }
@@ -35259,7 +35268,7 @@ var ts;
35259
35268
  if (traceEnabled) {
35260
35269
  trace(host, ts.Diagnostics.Resolving_real_path_for_0_result_1, path, real);
35261
35270
  }
35262
- ts.Debug.assert(host.fileExists(real), path + " linked to nonexistent file " + real);
35271
+ ts.Debug.assert(host.fileExists(real), "".concat(path, " linked to nonexistent file ").concat(real));
35263
35272
  return real;
35264
35273
  }
35265
35274
  function nodeLoadModuleByRelativeName(extensions, candidate, onlyRecordFailures, state, considerPackageJson) {
@@ -35718,7 +35727,7 @@ var ts;
35718
35727
  return undefined;
35719
35728
  }
35720
35729
  var trailingParts = parts.slice(nameParts.length);
35721
- return loadModuleFromExports(scope, extensions, !ts.length(trailingParts) ? "." : "." + ts.directorySeparator + trailingParts.join(ts.directorySeparator), state, cache, redirectedReference);
35730
+ return loadModuleFromExports(scope, extensions, !ts.length(trailingParts) ? "." : ".".concat(ts.directorySeparator).concat(trailingParts.join(ts.directorySeparator)), state, cache, redirectedReference);
35722
35731
  }
35723
35732
  function loadModuleFromExports(scope, extensions, subpath, state, cache, redirectedReference) {
35724
35733
  if (!scope.packageJsonContent.exports) {
@@ -36126,7 +36135,7 @@ var ts;
36126
36135
  return mangled;
36127
36136
  }
36128
36137
  function getTypesPackageName(packageName) {
36129
- return "@types/" + mangleScopedPackageName(packageName);
36138
+ return "@types/".concat(mangleScopedPackageName(packageName));
36130
36139
  }
36131
36140
  ts.getTypesPackageName = getTypesPackageName;
36132
36141
  function mangleScopedPackageName(packageName) {
@@ -36454,7 +36463,7 @@ var ts;
36454
36463
  if (name) {
36455
36464
  if (ts.isAmbientModule(node)) {
36456
36465
  var moduleName = ts.getTextOfIdentifierOrLiteral(name);
36457
- return (ts.isGlobalScopeAugmentation(node) ? "__global" : "\"" + moduleName + "\"");
36466
+ return (ts.isGlobalScopeAugmentation(node) ? "__global" : "\"".concat(moduleName, "\""));
36458
36467
  }
36459
36468
  if (name.kind === 162) {
36460
36469
  var nameExpression = name.expression;
@@ -36503,7 +36512,7 @@ var ts;
36503
36512
  case 317:
36504
36513
  return (ts.isJSDocConstructSignature(node) ? "__new" : "__call");
36505
36514
  case 164:
36506
- ts.Debug.assert(node.parent.kind === 317, "Impossible parameter parent kind", function () { return "parent is: " + (ts.SyntaxKind ? ts.SyntaxKind[node.parent.kind] : node.parent.kind) + ", expected JSDocFunctionType"; });
36515
+ ts.Debug.assert(node.parent.kind === 317, "Impossible parameter parent kind", function () { return "parent is: ".concat(ts.SyntaxKind ? ts.SyntaxKind[node.parent.kind] : node.parent.kind, ", expected JSDocFunctionType"); });
36507
36516
  var functionType = node.parent;
36508
36517
  var index = functionType.parameters.indexOf(node);
36509
36518
  return "arg" + index;
@@ -36569,7 +36578,7 @@ var ts;
36569
36578
  }
36570
36579
  var relatedInformation_1 = [];
36571
36580
  if (ts.isTypeAliasDeclaration(node) && ts.nodeIsMissing(node.type) && ts.hasSyntacticModifier(node, 1) && symbol.flags & (2097152 | 788968 | 1920)) {
36572
- relatedInformation_1.push(createDiagnosticForNode(node, ts.Diagnostics.Did_you_mean_0, "export type { " + ts.unescapeLeadingUnderscores(node.name.escapedText) + " }"));
36581
+ relatedInformation_1.push(createDiagnosticForNode(node, ts.Diagnostics.Did_you_mean_0, "export type { ".concat(ts.unescapeLeadingUnderscores(node.name.escapedText), " }")));
36573
36582
  }
36574
36583
  var declarationName_1 = ts.getNameOfDeclaration(node) || node;
36575
36584
  ts.forEach(symbol.declarations, function (declaration, index) {
@@ -38393,7 +38402,7 @@ var ts;
38393
38402
  }
38394
38403
  }
38395
38404
  function bindSourceFileAsExternalModule() {
38396
- bindAnonymousDeclaration(file, 512, "\"" + ts.removeFileExtension(file.fileName) + "\"");
38405
+ bindAnonymousDeclaration(file, 512, "\"".concat(ts.removeFileExtension(file.fileName), "\""));
38397
38406
  }
38398
38407
  function bindExportAssignment(node) {
38399
38408
  if (!container.symbol || !container.symbol.exports) {
@@ -40132,7 +40141,7 @@ var ts;
40132
40141
  if (sourceSymbolFile && targetSymbolFile && amalgamatedDuplicates && !isEitherEnum && sourceSymbolFile !== targetSymbolFile) {
40133
40142
  var firstFile_1 = ts.comparePaths(sourceSymbolFile.path, targetSymbolFile.path) === -1 ? sourceSymbolFile : targetSymbolFile;
40134
40143
  var secondFile_1 = firstFile_1 === sourceSymbolFile ? targetSymbolFile : sourceSymbolFile;
40135
- var filesDuplicates = ts.getOrUpdate(amalgamatedDuplicates, firstFile_1.path + "|" + secondFile_1.path, function () {
40144
+ var filesDuplicates = ts.getOrUpdate(amalgamatedDuplicates, "".concat(firstFile_1.path, "|").concat(secondFile_1.path), function () {
40136
40145
  return ({ firstFile: firstFile_1, secondFile: secondFile_1, conflictingSymbols: new ts.Map() });
40137
40146
  });
40138
40147
  var conflictingSymbolInfo = ts.getOrUpdate(filesDuplicates.conflictingSymbols, symbolName_1, function () {
@@ -42434,7 +42443,7 @@ var ts;
42434
42443
  var links = getSymbolLinks(symbol);
42435
42444
  var cache = (links.accessibleChainCache || (links.accessibleChainCache = new ts.Map()));
42436
42445
  var firstRelevantLocation = forEachSymbolTableInScope(enclosingDeclaration, function (_, __, ___, node) { return node; });
42437
- var key = (useOnlyExternalAliasing ? 0 : 1) + "|" + (firstRelevantLocation && getNodeId(firstRelevantLocation)) + "|" + meaning;
42446
+ var key = "".concat(useOnlyExternalAliasing ? 0 : 1, "|").concat(firstRelevantLocation && getNodeId(firstRelevantLocation), "|").concat(meaning);
42438
42447
  if (cache.has(key)) {
42439
42448
  return cache.get(key);
42440
42449
  }
@@ -43238,7 +43247,7 @@ var ts;
43238
43247
  context.symbolDepth = new ts.Map();
43239
43248
  }
43240
43249
  var links = context.enclosingDeclaration && getNodeLinks(context.enclosingDeclaration);
43241
- var key = getTypeId(type) + "|" + context.flags;
43250
+ var key = "".concat(getTypeId(type), "|").concat(context.flags);
43242
43251
  if (links) {
43243
43252
  links.serializedTypes || (links.serializedTypes = new ts.Map());
43244
43253
  }
@@ -43499,7 +43508,7 @@ var ts;
43499
43508
  }
43500
43509
  }
43501
43510
  if (checkTruncationLength(context) && (i + 2 < properties.length - 1)) {
43502
- typeElements.push(ts.factory.createPropertySignature(undefined, "... " + (properties.length - i) + " more ...", undefined, undefined));
43511
+ typeElements.push(ts.factory.createPropertySignature(undefined, "... ".concat(properties.length - i, " more ..."), undefined, undefined));
43503
43512
  addPropertyToElementList(properties[properties.length - 1], context, typeElements);
43504
43513
  break;
43505
43514
  }
@@ -43607,7 +43616,7 @@ var ts;
43607
43616
  else if (types.length > 2) {
43608
43617
  return [
43609
43618
  typeToTypeNodeHelper(types[0], context),
43610
- ts.factory.createTypeReferenceNode("... " + (types.length - 2) + " more ...", undefined),
43619
+ ts.factory.createTypeReferenceNode("... ".concat(types.length - 2, " more ..."), undefined),
43611
43620
  typeToTypeNodeHelper(types[types.length - 1], context)
43612
43621
  ];
43613
43622
  }
@@ -43620,7 +43629,7 @@ var ts;
43620
43629
  var type = types_2[_i];
43621
43630
  i++;
43622
43631
  if (checkTruncationLength(context) && (i + 2 < types.length - 1)) {
43623
- result_5.push(ts.factory.createTypeReferenceNode("... " + (types.length - i) + " more ...", undefined));
43632
+ result_5.push(ts.factory.createTypeReferenceNode("... ".concat(types.length - i, " more ..."), undefined));
43624
43633
  var typeNode_1 = typeToTypeNodeHelper(types[types.length - 1], context);
43625
43634
  if (typeNode_1) {
43626
43635
  result_5.push(typeNode_1);
@@ -43977,7 +43986,7 @@ var ts;
43977
43986
  }
43978
43987
  return specifier;
43979
43988
  function getSpecifierCacheKey(path, mode) {
43980
- return mode === undefined ? path : mode + "|" + path;
43989
+ return mode === undefined ? path : "".concat(mode, "|").concat(path);
43981
43990
  }
43982
43991
  }
43983
43992
  function symbolToEntityNameNode(symbol) {
@@ -44141,7 +44150,7 @@ var ts;
44141
44150
  var text = rawtext;
44142
44151
  while (((_b = context.typeParameterNamesByText) === null || _b === void 0 ? void 0 : _b.has(text)) || typeParameterShadowsNameInScope(text, context, type)) {
44143
44152
  i++;
44144
- text = rawtext + "_" + i;
44153
+ text = "".concat(rawtext, "_").concat(i);
44145
44154
  }
44146
44155
  if (text !== rawtext) {
44147
44156
  result = ts.factory.createIdentifier(text, result.typeArguments);
@@ -44433,7 +44442,7 @@ var ts;
44433
44442
  function getNameForJSDocFunctionParameter(p, index) {
44434
44443
  return p.name && ts.isIdentifier(p.name) && p.name.escapedText === "this" ? "this"
44435
44444
  : getEffectiveDotDotDotForParameter(p) ? "args"
44436
- : "arg" + index;
44445
+ : "arg".concat(index);
44437
44446
  }
44438
44447
  function rewriteModuleSpecifier(parent, lit) {
44439
44448
  if (bundled) {
@@ -45246,7 +45255,7 @@ var ts;
45246
45255
  }
45247
45256
  return results_1;
45248
45257
  }
45249
- return ts.Debug.fail("Unhandled class member kind! " + (p.__debugFlags || p.flags));
45258
+ return ts.Debug.fail("Unhandled class member kind! ".concat(p.__debugFlags || p.flags));
45250
45259
  };
45251
45260
  }
45252
45261
  function serializePropertySymbolForInterface(p, baseType) {
@@ -45316,7 +45325,7 @@ var ts;
45316
45325
  if (ref) {
45317
45326
  return ref;
45318
45327
  }
45319
- var tempName = getUnusedName(rootName + "_base");
45328
+ var tempName = getUnusedName("".concat(rootName, "_base"));
45320
45329
  var statement = ts.factory.createVariableStatement(undefined, ts.factory.createVariableDeclarationList([
45321
45330
  ts.factory.createVariableDeclaration(tempName, undefined, typeToTypeNodeHelper(staticType, context))
45322
45331
  ], 2));
@@ -45361,7 +45370,7 @@ var ts;
45361
45370
  var original = input;
45362
45371
  while ((_a = context.usedSymbolNames) === null || _a === void 0 ? void 0 : _a.has(input)) {
45363
45372
  i++;
45364
- input = original + "_" + i;
45373
+ input = "".concat(original, "_").concat(i);
45365
45374
  }
45366
45375
  (_b = context.usedSymbolNames) === null || _b === void 0 ? void 0 : _b.add(input);
45367
45376
  if (id) {
@@ -45467,15 +45476,15 @@ var ts;
45467
45476
  if (nameType.flags & 384) {
45468
45477
  var name = "" + nameType.value;
45469
45478
  if (!ts.isIdentifierText(name, ts.getEmitScriptTarget(compilerOptions)) && !ts.isNumericLiteralName(name)) {
45470
- return "\"" + ts.escapeString(name, 34) + "\"";
45479
+ return "\"".concat(ts.escapeString(name, 34), "\"");
45471
45480
  }
45472
45481
  if (ts.isNumericLiteralName(name) && ts.startsWith(name, "-")) {
45473
- return "[" + name + "]";
45482
+ return "[".concat(name, "]");
45474
45483
  }
45475
45484
  return name;
45476
45485
  }
45477
45486
  if (nameType.flags & 8192) {
45478
- return "[" + getNameOfSymbolAsWritten(nameType.symbol, context) + "]";
45487
+ return "[".concat(getNameOfSymbolAsWritten(nameType.symbol, context), "]");
45479
45488
  }
45480
45489
  }
45481
45490
  }
@@ -47892,7 +47901,7 @@ var ts;
47892
47901
  !leftName ? rightName :
47893
47902
  !rightName ? leftName :
47894
47903
  undefined;
47895
- var paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || "arg" + i);
47904
+ var paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || "arg".concat(i));
47896
47905
  paramSymbol.type = isRestParam ? createArrayType(unionParamType) : unionParamType;
47897
47906
  params[i] = paramSymbol;
47898
47907
  }
@@ -49618,7 +49627,7 @@ var ts;
49618
49627
  return result;
49619
49628
  }
49620
49629
  function getAliasId(aliasSymbol, aliasTypeArguments) {
49621
- return aliasSymbol ? "@" + getSymbolId(aliasSymbol) + (aliasTypeArguments ? ":" + getTypeListId(aliasTypeArguments) : "") : "";
49630
+ return aliasSymbol ? "@".concat(getSymbolId(aliasSymbol)) + (aliasTypeArguments ? ":".concat(getTypeListId(aliasTypeArguments)) : "") : "";
49622
49631
  }
49623
49632
  function getPropagatingFlagsOfTypes(types, excludeKinds) {
49624
49633
  var result = 0;
@@ -49781,7 +49790,7 @@ var ts;
49781
49790
  return undefined;
49782
49791
  }
49783
49792
  function getSymbolPath(symbol) {
49784
- return symbol.parent ? getSymbolPath(symbol.parent) + "." + symbol.escapedName : symbol.escapedName;
49793
+ return symbol.parent ? "".concat(getSymbolPath(symbol.parent), ".").concat(symbol.escapedName) : symbol.escapedName;
49785
49794
  }
49786
49795
  function getUnresolvedSymbolForEntityName(name) {
49787
49796
  var identifier = name.kind === 161 ? name.right :
@@ -49792,7 +49801,7 @@ var ts;
49792
49801
  var parentSymbol = name.kind === 161 ? getUnresolvedSymbolForEntityName(name.left) :
49793
49802
  name.kind === 206 ? getUnresolvedSymbolForEntityName(name.expression) :
49794
49803
  undefined;
49795
- var path = parentSymbol ? getSymbolPath(parentSymbol) + "." + text : text;
49804
+ var path = parentSymbol ? "".concat(getSymbolPath(parentSymbol), ".").concat(text) : text;
49796
49805
  var result = unresolvedSymbols.get(path);
49797
49806
  if (!result) {
49798
49807
  unresolvedSymbols.set(path, result = createSymbol(524288, text, 1048576));
@@ -49858,7 +49867,7 @@ var ts;
49858
49867
  if (substitute.flags & 3 || substitute === baseType) {
49859
49868
  return baseType;
49860
49869
  }
49861
- var id = getTypeId(baseType) + ">" + getTypeId(substitute);
49870
+ var id = "".concat(getTypeId(baseType), ">").concat(getTypeId(substitute));
49862
49871
  var cached = substitutionTypes.get(id);
49863
49872
  if (cached) {
49864
49873
  return cached;
@@ -50717,9 +50726,9 @@ var ts;
50717
50726
  return types[0];
50718
50727
  }
50719
50728
  var typeKey = !origin ? getTypeListId(types) :
50720
- origin.flags & 1048576 ? "|" + getTypeListId(origin.types) :
50721
- origin.flags & 2097152 ? "&" + getTypeListId(origin.types) :
50722
- "#" + origin.type.id + "|" + getTypeListId(types);
50729
+ origin.flags & 1048576 ? "|".concat(getTypeListId(origin.types)) :
50730
+ origin.flags & 2097152 ? "&".concat(getTypeListId(origin.types)) :
50731
+ "#".concat(origin.type.id, "|").concat(getTypeListId(types));
50723
50732
  var id = typeKey + getAliasId(aliasSymbol, aliasTypeArguments);
50724
50733
  var type = unionTypes.get(id);
50725
50734
  if (!type) {
@@ -51177,7 +51186,7 @@ var ts;
51177
51186
  if (ts.every(newTexts, function (t) { return t === ""; }) && ts.every(newTypes, function (t) { return !!(t.flags & 4); })) {
51178
51187
  return stringType;
51179
51188
  }
51180
- var id = getTypeListId(newTypes) + "|" + ts.map(newTexts, function (t) { return t.length; }).join(",") + "|" + newTexts.join("");
51189
+ var id = "".concat(getTypeListId(newTypes), "|").concat(ts.map(newTexts, function (t) { return t.length; }).join(","), "|").concat(newTexts.join(""));
51181
51190
  var type = templateLiteralTypes.get(id);
51182
51191
  if (!type) {
51183
51192
  templateLiteralTypes.set(id, type = createTemplateLiteralType(newTexts, newTypes));
@@ -51248,7 +51257,7 @@ var ts;
51248
51257
  return str;
51249
51258
  }
51250
51259
  function getStringMappingTypeForGenericType(symbol, type) {
51251
- var id = getSymbolId(symbol) + "," + getTypeId(type);
51260
+ var id = "".concat(getSymbolId(symbol), ",").concat(getTypeId(type));
51252
51261
  var result = stringMappingTypes.get(id);
51253
51262
  if (!result) {
51254
51263
  stringMappingTypes.set(id, result = createStringMappingType(symbol, type));
@@ -52186,7 +52195,7 @@ var ts;
52186
52195
  function createUniqueESSymbolType(symbol) {
52187
52196
  var type = createType(8192);
52188
52197
  type.symbol = symbol;
52189
- type.escapedName = "__@" + type.symbol.escapedName + "@" + getSymbolId(type.symbol);
52198
+ type.escapedName = "__@".concat(type.symbol.escapedName, "@").concat(getSymbolId(type.symbol));
52190
52199
  return type;
52191
52200
  }
52192
52201
  function getESSymbolLikeTypeForNode(node) {
@@ -53715,20 +53724,20 @@ var ts;
53715
53724
  switch (msg.code) {
53716
53725
  case ts.Diagnostics.Types_of_property_0_are_incompatible.code: {
53717
53726
  if (path.indexOf("new ") === 0) {
53718
- path = "(" + path + ")";
53727
+ path = "(".concat(path, ")");
53719
53728
  }
53720
53729
  var str = "" + args[0];
53721
53730
  if (path.length === 0) {
53722
- path = "" + str;
53731
+ path = "".concat(str);
53723
53732
  }
53724
53733
  else if (ts.isIdentifierText(str, ts.getEmitScriptTarget(compilerOptions))) {
53725
- path = path + "." + str;
53734
+ path = "".concat(path, ".").concat(str);
53726
53735
  }
53727
53736
  else if (str[0] === "[" && str[str.length - 1] === "]") {
53728
- path = "" + path + str;
53737
+ path = "".concat(path).concat(str);
53729
53738
  }
53730
53739
  else {
53731
- path = path + "[" + str + "]";
53740
+ path = "".concat(path, "[").concat(str, "]");
53732
53741
  }
53733
53742
  break;
53734
53743
  }
@@ -53755,7 +53764,7 @@ var ts;
53755
53764
  msg.code === ts.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code)
53756
53765
  ? ""
53757
53766
  : "...";
53758
- path = "" + prefix + path + "(" + params + ")";
53767
+ path = "".concat(prefix).concat(path, "(").concat(params, ")");
53759
53768
  }
53760
53769
  break;
53761
53770
  }
@@ -53768,7 +53777,7 @@ var ts;
53768
53777
  break;
53769
53778
  }
53770
53779
  default:
53771
- return ts.Debug.fail("Unhandled Diagnostic: " + msg.code);
53780
+ return ts.Debug.fail("Unhandled Diagnostic: ".concat(msg.code));
53772
53781
  }
53773
53782
  }
53774
53783
  if (path) {
@@ -55661,7 +55670,7 @@ var ts;
55661
55670
  var constraintMarker = "";
55662
55671
  var sourceId = getTypeReferenceId(source, 0);
55663
55672
  var targetId = getTypeReferenceId(target, 0);
55664
- return "" + constraintMarker + sourceId + "," + targetId + postFix;
55673
+ return "".concat(constraintMarker).concat(sourceId, ",").concat(targetId).concat(postFix);
55665
55674
  function getTypeReferenceId(type, depth) {
55666
55675
  if (depth === void 0) { depth = 0; }
55667
55676
  var result = "" + type.target.id;
@@ -55697,7 +55706,7 @@ var ts;
55697
55706
  var postFix = intersectionState ? ":" + intersectionState : "";
55698
55707
  return isTypeReferenceWithGenericArguments(source) && isTypeReferenceWithGenericArguments(target) ?
55699
55708
  getGenericTypeReferenceRelationKey(source, target, postFix, ignoreConstraints) :
55700
- source.id + "," + target.id + postFix;
55709
+ "".concat(source.id, ",").concat(target.id).concat(postFix);
55701
55710
  }
55702
55711
  function forEachProperty(prop, callback) {
55703
55712
  if (ts.getCheckFlags(prop) & 6) {
@@ -57544,10 +57553,10 @@ var ts;
57544
57553
  case 79:
57545
57554
  if (!ts.isThisInTypeQuery(node)) {
57546
57555
  var symbol = getResolvedSymbol(node);
57547
- return symbol !== unknownSymbol ? (flowContainer ? getNodeId(flowContainer) : "-1") + "|" + getTypeId(declaredType) + "|" + getTypeId(initialType) + "|" + getSymbolId(symbol) : undefined;
57556
+ return symbol !== unknownSymbol ? "".concat(flowContainer ? getNodeId(flowContainer) : "-1", "|").concat(getTypeId(declaredType), "|").concat(getTypeId(initialType), "|").concat(getSymbolId(symbol)) : undefined;
57548
57557
  }
57549
57558
  case 108:
57550
- return "0|" + (flowContainer ? getNodeId(flowContainer) : "-1") + "|" + getTypeId(declaredType) + "|" + getTypeId(initialType);
57559
+ return "0|".concat(flowContainer ? getNodeId(flowContainer) : "-1", "|").concat(getTypeId(declaredType), "|").concat(getTypeId(initialType));
57551
57560
  case 230:
57552
57561
  case 212:
57553
57562
  return getFlowCacheKey(node.expression, declaredType, initialType, flowContainer);
@@ -60908,7 +60917,7 @@ var ts;
60908
60917
  !leftName ? rightName :
60909
60918
  !rightName ? leftName :
60910
60919
  undefined;
60911
- var paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || "arg" + i);
60920
+ var paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || "arg".concat(i));
60912
60921
  paramSymbol.type = isRestParam ? createArrayType(unionParamType) : unionParamType;
60913
60922
  params[i] = paramSymbol;
60914
60923
  }
@@ -69558,7 +69567,7 @@ var ts;
69558
69567
  function getPropertyNameForKnownSymbolName(symbolName) {
69559
69568
  var ctorType = getGlobalESSymbolConstructorSymbol(false);
69560
69569
  var uniqueType = ctorType && getTypeOfPropertyOfType(getTypeOfSymbol(ctorType), ts.escapeLeadingUnderscores(symbolName));
69561
- return uniqueType && isTypeUsableAsPropertyName(uniqueType) ? getPropertyNameFromType(uniqueType) : "__@" + symbolName;
69570
+ return uniqueType && isTypeUsableAsPropertyName(uniqueType) ? getPropertyNameFromType(uniqueType) : "__@".concat(symbolName);
69562
69571
  }
69563
69572
  function getIterationTypesOfIterableSlow(type, resolver, errorNode) {
69564
69573
  var _a;
@@ -71207,6 +71216,9 @@ var ts;
71207
71216
  var validForTypeAssertions = ts.isExclusivelyTypeOnlyImportOrExport(declaration);
71208
71217
  var override = ts.getResolutionModeOverrideForClause(declaration.assertClause, validForTypeAssertions ? grammarErrorOnNode : undefined);
71209
71218
  if (validForTypeAssertions && override) {
71219
+ if (!ts.isNightly()) {
71220
+ grammarErrorOnNode(declaration.assertClause, ts.Diagnostics.Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next);
71221
+ }
71210
71222
  if (ts.getEmitModuleResolutionKind(compilerOptions) !== ts.ModuleResolutionKind.Node16 && ts.getEmitModuleResolutionKind(compilerOptions) !== ts.ModuleResolutionKind.NodeNext) {
71211
71223
  return grammarErrorOnNode(declaration.assertClause, ts.Diagnostics.Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext);
71212
71224
  }
@@ -75961,7 +75973,7 @@ var ts;
75961
75973
  value >= 52 && value < 62 ? 48 + value - 52 :
75962
75974
  value === 62 ? 43 :
75963
75975
  value === 63 ? 47 :
75964
- ts.Debug.fail(value + ": not a base64 value");
75976
+ ts.Debug.fail("".concat(value, ": not a base64 value"));
75965
75977
  }
75966
75978
  function base64FormatDecode(ch) {
75967
75979
  return ch >= 65 && ch <= 90 ? ch - 65 :
@@ -76034,7 +76046,7 @@ var ts;
76034
76046
  var mappings = ts.arrayFrom(decoder, processMapping);
76035
76047
  if (decoder.error !== undefined) {
76036
76048
  if (host.log) {
76037
- host.log("Encountered error while decoding sourcemap: " + decoder.error);
76049
+ host.log("Encountered error while decoding sourcemap: ".concat(decoder.error));
76038
76050
  }
76039
76051
  decodedMappings = ts.emptyArray;
76040
76052
  }
@@ -78483,7 +78495,7 @@ var ts;
78483
78495
  var substitute = typeof constantValue === "string" ? factory.createStringLiteral(constantValue) : factory.createNumericLiteral(constantValue);
78484
78496
  if (!compilerOptions.removeComments) {
78485
78497
  var originalNode = ts.getOriginalNode(node, ts.isAccessExpression);
78486
- ts.addSyntheticTrailingComment(substitute, 3, " " + safeMultiLineComment(ts.getTextOfNode(originalNode)) + " ");
78498
+ ts.addSyntheticTrailingComment(substitute, 3, " ".concat(safeMultiLineComment(ts.getTextOfNode(originalNode)), " "));
78487
78499
  }
78488
78500
  return substitute;
78489
78501
  }
@@ -79734,8 +79746,8 @@ var ts;
79734
79746
  }
79735
79747
  function createHoistedVariableForClass(name, node) {
79736
79748
  var className = getPrivateIdentifierEnvironment().className;
79737
- var prefix = className ? "_" + className : "";
79738
- var identifier = factory.createUniqueName(prefix + "_" + name, 16);
79749
+ var prefix = className ? "_".concat(className) : "";
79750
+ var identifier = factory.createUniqueName("".concat(prefix, "_").concat(name), 16);
79739
79751
  if (resolver.getNodeCheckFlags(node) & 524288) {
79740
79752
  addBlockScopedVariable(identifier);
79741
79753
  }
@@ -81393,7 +81405,7 @@ var ts;
81393
81405
  specifierSourceImports = new ts.Map();
81394
81406
  currentFileState.utilizedImplicitRuntimeImports.set(importSource, specifierSourceImports);
81395
81407
  }
81396
- var generatedName = factory.createUniqueName("_" + name, 16 | 32 | 64);
81408
+ var generatedName = factory.createUniqueName("_".concat(name), 16 | 32 | 64);
81397
81409
  var specifier = factory.createImportSpecifier(false, factory.createIdentifier(name), generatedName);
81398
81410
  generatedName.generatedImportReference = specifier;
81399
81411
  specifierSourceImports.set(name, specifier);
@@ -82334,11 +82346,11 @@ var ts;
82334
82346
  }
82335
82347
  else {
82336
82348
  if (node.kind === 246) {
82337
- labelMarker = "break-" + label.escapedText;
82349
+ labelMarker = "break-".concat(label.escapedText);
82338
82350
  setLabeledJump(convertedLoopState, true, ts.idText(label), labelMarker);
82339
82351
  }
82340
82352
  else {
82341
- labelMarker = "continue-" + label.escapedText;
82353
+ labelMarker = "continue-".concat(label.escapedText);
82342
82354
  setLabeledJump(convertedLoopState, false, ts.idText(label), labelMarker);
82343
82355
  }
82344
82356
  }
@@ -87993,7 +88005,7 @@ var ts;
87993
88005
  return getTypeAliasDeclarationVisibilityError;
87994
88006
  }
87995
88007
  else {
87996
- return ts.Debug.assertNever(node, "Attempted to set a declaration diagnostic context for unhandled node kind: " + ts.SyntaxKind[node.kind]);
88008
+ return ts.Debug.assertNever(node, "Attempted to set a declaration diagnostic context for unhandled node kind: ".concat(ts.SyntaxKind[node.kind]));
87997
88009
  }
87998
88010
  function getVariableDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult) {
87999
88011
  if (node.kind === 254 || node.kind === 203) {
@@ -88190,7 +88202,7 @@ var ts;
88190
88202
  ts.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2 :
88191
88203
  ts.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;
88192
88204
  default:
88193
- return ts.Debug.fail("Unknown parent for parameter: " + ts.SyntaxKind[node.parent.kind]);
88205
+ return ts.Debug.fail("Unknown parent for parameter: ".concat(ts.SyntaxKind[node.parent.kind]));
88194
88206
  }
88195
88207
  }
88196
88208
  function getTypeParameterConstraintVisibilityError() {
@@ -88856,29 +88868,39 @@ var ts;
88856
88868
  }
88857
88869
  function transformImportDeclaration(decl) {
88858
88870
  if (!decl.importClause) {
88859
- return factory.updateImportDeclaration(decl, undefined, decl.modifiers, decl.importClause, rewriteModuleSpecifier(decl, decl.moduleSpecifier), ts.getResolutionModeOverrideForClause(decl.assertClause) ? decl.assertClause : undefined);
88871
+ return factory.updateImportDeclaration(decl, undefined, decl.modifiers, decl.importClause, rewriteModuleSpecifier(decl, decl.moduleSpecifier), getResolutionModeOverrideForClauseInNightly(decl.assertClause));
88860
88872
  }
88861
88873
  var visibleDefaultBinding = decl.importClause && decl.importClause.name && resolver.isDeclarationVisible(decl.importClause) ? decl.importClause.name : undefined;
88862
88874
  if (!decl.importClause.namedBindings) {
88863
- return visibleDefaultBinding && factory.updateImportDeclaration(decl, undefined, decl.modifiers, factory.updateImportClause(decl.importClause, decl.importClause.isTypeOnly, visibleDefaultBinding, undefined), rewriteModuleSpecifier(decl, decl.moduleSpecifier), ts.getResolutionModeOverrideForClause(decl.assertClause) ? decl.assertClause : undefined);
88875
+ return visibleDefaultBinding && factory.updateImportDeclaration(decl, undefined, decl.modifiers, factory.updateImportClause(decl.importClause, decl.importClause.isTypeOnly, visibleDefaultBinding, undefined), rewriteModuleSpecifier(decl, decl.moduleSpecifier), getResolutionModeOverrideForClauseInNightly(decl.assertClause));
88864
88876
  }
88865
88877
  if (decl.importClause.namedBindings.kind === 268) {
88866
88878
  var namedBindings = resolver.isDeclarationVisible(decl.importClause.namedBindings) ? decl.importClause.namedBindings : undefined;
88867
- return visibleDefaultBinding || namedBindings ? factory.updateImportDeclaration(decl, undefined, decl.modifiers, factory.updateImportClause(decl.importClause, decl.importClause.isTypeOnly, visibleDefaultBinding, namedBindings), rewriteModuleSpecifier(decl, decl.moduleSpecifier), ts.getResolutionModeOverrideForClause(decl.assertClause) ? decl.assertClause : undefined) : undefined;
88879
+ return visibleDefaultBinding || namedBindings ? factory.updateImportDeclaration(decl, undefined, decl.modifiers, factory.updateImportClause(decl.importClause, decl.importClause.isTypeOnly, visibleDefaultBinding, namedBindings), rewriteModuleSpecifier(decl, decl.moduleSpecifier), getResolutionModeOverrideForClauseInNightly(decl.assertClause)) : undefined;
88868
88880
  }
88869
88881
  var bindingList = ts.mapDefined(decl.importClause.namedBindings.elements, function (b) { return resolver.isDeclarationVisible(b) ? b : undefined; });
88870
88882
  if ((bindingList && bindingList.length) || visibleDefaultBinding) {
88871
- return factory.updateImportDeclaration(decl, undefined, decl.modifiers, factory.updateImportClause(decl.importClause, decl.importClause.isTypeOnly, visibleDefaultBinding, bindingList && bindingList.length ? factory.updateNamedImports(decl.importClause.namedBindings, bindingList) : undefined), rewriteModuleSpecifier(decl, decl.moduleSpecifier), ts.getResolutionModeOverrideForClause(decl.assertClause) ? decl.assertClause : undefined);
88883
+ return factory.updateImportDeclaration(decl, undefined, decl.modifiers, factory.updateImportClause(decl.importClause, decl.importClause.isTypeOnly, visibleDefaultBinding, bindingList && bindingList.length ? factory.updateNamedImports(decl.importClause.namedBindings, bindingList) : undefined), rewriteModuleSpecifier(decl, decl.moduleSpecifier), getResolutionModeOverrideForClauseInNightly(decl.assertClause));
88872
88884
  }
88873
88885
  if (resolver.isImportRequiredByAugmentation(decl)) {
88874
- return factory.updateImportDeclaration(decl, undefined, decl.modifiers, undefined, rewriteModuleSpecifier(decl, decl.moduleSpecifier), ts.getResolutionModeOverrideForClause(decl.assertClause) ? decl.assertClause : undefined);
88886
+ return factory.updateImportDeclaration(decl, undefined, decl.modifiers, undefined, rewriteModuleSpecifier(decl, decl.moduleSpecifier), getResolutionModeOverrideForClauseInNightly(decl.assertClause));
88875
88887
  }
88876
88888
  }
88889
+ function getResolutionModeOverrideForClauseInNightly(assertClause) {
88890
+ var mode = ts.getResolutionModeOverrideForClause(assertClause);
88891
+ if (mode !== undefined) {
88892
+ if (!ts.isNightly()) {
88893
+ context.addDiagnostic(ts.createDiagnosticForNode(assertClause, ts.Diagnostics.Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next));
88894
+ }
88895
+ return assertClause;
88896
+ }
88897
+ return undefined;
88898
+ }
88877
88899
  function transformAndReplaceLatePaintedStatements(statements) {
88878
88900
  while (ts.length(lateMarkedStatements)) {
88879
88901
  var i = lateMarkedStatements.shift();
88880
88902
  if (!ts.isLateVisibilityPaintedStatement(i)) {
88881
- return ts.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: " + (ts.SyntaxKind ? ts.SyntaxKind[i.kind] : i.kind));
88903
+ return ts.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: ".concat(ts.SyntaxKind ? ts.SyntaxKind[i.kind] : i.kind));
88882
88904
  }
88883
88905
  var priorNeedsDeclare = needsDeclare;
88884
88906
  needsDeclare = i.parent && ts.isSourceFile(i.parent) && !(ts.isExternalModule(i.parent) && isBundledEmit);
@@ -89043,7 +89065,7 @@ var ts;
89043
89065
  return cleanup(input);
89044
89066
  return cleanup(factory.updateImportTypeNode(input, factory.updateLiteralTypeNode(input.argument, rewriteModuleSpecifier(input, input.argument.literal)), input.assertions, input.qualifier, ts.visitNodes(input.typeArguments, visitDeclarationSubtree, ts.isTypeNode), input.isTypeOf));
89045
89067
  }
89046
- default: ts.Debug.assertNever(input, "Attempted to process unhandled node kind: " + ts.SyntaxKind[input.kind]);
89068
+ default: ts.Debug.assertNever(input, "Attempted to process unhandled node kind: ".concat(ts.SyntaxKind[input.kind]));
89047
89069
  }
89048
89070
  }
89049
89071
  if (ts.isTupleTypeNode(input) && (ts.getLineAndCharacterOfPosition(currentSourceFile, input.pos).line === ts.getLineAndCharacterOfPosition(currentSourceFile, input.end).line)) {
@@ -89293,7 +89315,7 @@ var ts;
89293
89315
  var extendsClause_1 = ts.getEffectiveBaseTypeNode(input);
89294
89316
  if (extendsClause_1 && !ts.isEntityNameExpression(extendsClause_1.expression) && extendsClause_1.expression.kind !== 104) {
89295
89317
  var oldId = input.name ? ts.unescapeLeadingUnderscores(input.name.escapedText) : "default";
89296
- var newId_1 = factory.createUniqueName(oldId + "_base", 16);
89318
+ var newId_1 = factory.createUniqueName("".concat(oldId, "_base"), 16);
89297
89319
  getSymbolAccessibilityDiagnostic = function () { return ({
89298
89320
  diagnosticMessage: ts.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,
89299
89321
  errorNode: extendsClause_1,
@@ -89330,7 +89352,7 @@ var ts;
89330
89352
  }))));
89331
89353
  }
89332
89354
  }
89333
- return ts.Debug.assertNever(input, "Unhandled top-level node in declaration emit: " + ts.SyntaxKind[input.kind]);
89355
+ return ts.Debug.assertNever(input, "Unhandled top-level node in declaration emit: ".concat(ts.SyntaxKind[input.kind]));
89334
89356
  function cleanup(node) {
89335
89357
  if (isEnclosingDeclaration(input)) {
89336
89358
  enclosingDeclaration = previousEnclosingDeclaration;
@@ -90099,13 +90121,13 @@ var ts;
90099
90121
  if (ts.fileExtensionIs(inputFileName, ".json"))
90100
90122
  return;
90101
90123
  if (js && configFile.options.sourceMap) {
90102
- addOutput(js + ".map");
90124
+ addOutput("".concat(js, ".map"));
90103
90125
  }
90104
90126
  if (ts.getEmitDeclarations(configFile.options)) {
90105
90127
  var dts = getOutputDeclarationFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory);
90106
90128
  addOutput(dts);
90107
90129
  if (configFile.options.declarationMap) {
90108
- addOutput(dts + ".map");
90130
+ addOutput("".concat(dts, ".map"));
90109
90131
  }
90110
90132
  }
90111
90133
  }
@@ -90165,7 +90187,7 @@ var ts;
90165
90187
  function getFirstProjectOutput(configFile, ignoreCase) {
90166
90188
  if (ts.outFile(configFile.options)) {
90167
90189
  var jsFilePath = getOutputPathsForBundle(configFile.options, false).jsFilePath;
90168
- return ts.Debug.checkDefined(jsFilePath, "project " + configFile.options.configFilePath + " expected to have at least one output");
90190
+ return ts.Debug.checkDefined(jsFilePath, "project ".concat(configFile.options.configFilePath, " expected to have at least one output"));
90169
90191
  }
90170
90192
  var getCommonSourceDirectory = ts.memoize(function () { return getCommonSourceDirectoryOfConfig(configFile, ignoreCase); });
90171
90193
  for (var _a = 0, _b = configFile.fileNames; _a < _b.length; _a++) {
@@ -90184,7 +90206,7 @@ var ts;
90184
90206
  var buildInfoPath = getTsBuildInfoEmitOutputFilePath(configFile.options);
90185
90207
  if (buildInfoPath)
90186
90208
  return buildInfoPath;
90187
- return ts.Debug.fail("project " + configFile.options.configFilePath + " expected to have at least one output");
90209
+ return ts.Debug.fail("project ".concat(configFile.options.configFilePath, " expected to have at least one output"));
90188
90210
  }
90189
90211
  ts.getFirstProjectOutput = getFirstProjectOutput;
90190
90212
  function emitFiles(resolver, host, targetSourceFile, _a, emitOnlyDtsFiles, onlyBuildInfo, forceDtsEmit) {
@@ -90396,7 +90418,7 @@ var ts;
90396
90418
  if (!writer.isAtStartOfLine())
90397
90419
  writer.rawWrite(newLine);
90398
90420
  sourceMapUrlPos = writer.getTextPos();
90399
- writer.writeComment("//# " + "sourceMappingURL" + "=" + sourceMappingURL);
90421
+ writer.writeComment("//# ".concat("sourceMappingURL", "=").concat(sourceMappingURL));
90400
90422
  }
90401
90423
  if (sourceMapFilePath) {
90402
90424
  var sourceMap = sourceMapGenerator.toString();
@@ -90436,7 +90458,7 @@ var ts;
90436
90458
  if (mapOptions.inlineSourceMap) {
90437
90459
  var sourceMapText = sourceMapGenerator.toString();
90438
90460
  var base64SourceMapText = ts.base64encode(ts.sys, sourceMapText);
90439
- return "data:application/json;base64," + base64SourceMapText;
90461
+ return "data:application/json;base64,".concat(base64SourceMapText);
90440
90462
  }
90441
90463
  var sourceMapFile = ts.getBaseFileName(ts.normalizeSlashes(ts.Debug.checkDefined(sourceMapFilePath)));
90442
90464
  if (mapOptions.mapRoot) {
@@ -90600,7 +90622,7 @@ var ts;
90600
90622
  return;
90601
90623
  break;
90602
90624
  default:
90603
- ts.Debug.fail("Unexpected path: " + name);
90625
+ ts.Debug.fail("Unexpected path: ".concat(name));
90604
90626
  }
90605
90627
  outputFiles.push({ name: name, text: text, writeByteOrderMark: writeByteOrderMark });
90606
90628
  },
@@ -91413,7 +91435,7 @@ var ts;
91413
91435
  return writeTokenNode(node, writeKeyword);
91414
91436
  if (ts.isTokenKind(node.kind))
91415
91437
  return writeTokenNode(node, writePunctuation);
91416
- ts.Debug.fail("Unhandled SyntaxKind: " + ts.Debug.formatSyntaxKind(node.kind) + ".");
91438
+ ts.Debug.fail("Unhandled SyntaxKind: ".concat(ts.Debug.formatSyntaxKind(node.kind), "."));
91417
91439
  }
91418
91440
  function emitMappedTypeParameter(node) {
91419
91441
  emit(node.name);
@@ -91553,14 +91575,14 @@ var ts;
91553
91575
  }
91554
91576
  }
91555
91577
  function emitPlaceholder(hint, node, snippet) {
91556
- nonEscapingWrite("${" + snippet.order + ":");
91578
+ nonEscapingWrite("${".concat(snippet.order, ":"));
91557
91579
  pipelineEmitWithHintWorker(hint, node, false);
91558
91580
  nonEscapingWrite("}");
91559
91581
  }
91560
91582
  function emitTabStop(hint, node, snippet) {
91561
- ts.Debug.assert(node.kind === 236, "A tab stop cannot be attached to a node of kind " + ts.Debug.formatSyntaxKind(node.kind) + ".");
91583
+ ts.Debug.assert(node.kind === 236, "A tab stop cannot be attached to a node of kind ".concat(ts.Debug.formatSyntaxKind(node.kind), "."));
91562
91584
  ts.Debug.assert(hint !== 5, "A tab stop cannot be attached to an embedded statement.");
91563
- nonEscapingWrite("$" + snippet.order);
91585
+ nonEscapingWrite("$".concat(snippet.order));
91564
91586
  }
91565
91587
  function emitIdentifier(node) {
91566
91588
  var writeText = node.symbol ? writeSymbol : write;
@@ -93237,17 +93259,17 @@ var ts;
93237
93259
  writeLine();
93238
93260
  }
93239
93261
  if (currentSourceFile && currentSourceFile.moduleName) {
93240
- writeComment("/// <amd-module name=\"" + currentSourceFile.moduleName + "\" />");
93262
+ writeComment("/// <amd-module name=\"".concat(currentSourceFile.moduleName, "\" />"));
93241
93263
  writeLine();
93242
93264
  }
93243
93265
  if (currentSourceFile && currentSourceFile.amdDependencies) {
93244
93266
  for (var _a = 0, _b = currentSourceFile.amdDependencies; _a < _b.length; _a++) {
93245
93267
  var dep = _b[_a];
93246
93268
  if (dep.name) {
93247
- writeComment("/// <amd-dependency name=\"" + dep.name + "\" path=\"" + dep.path + "\" />");
93269
+ writeComment("/// <amd-dependency name=\"".concat(dep.name, "\" path=\"").concat(dep.path, "\" />"));
93248
93270
  }
93249
93271
  else {
93250
- writeComment("/// <amd-dependency path=\"" + dep.path + "\" />");
93272
+ writeComment("/// <amd-dependency path=\"".concat(dep.path, "\" />"));
93251
93273
  }
93252
93274
  writeLine();
93253
93275
  }
@@ -93255,7 +93277,7 @@ var ts;
93255
93277
  for (var _c = 0, files_2 = files; _c < files_2.length; _c++) {
93256
93278
  var directive = files_2[_c];
93257
93279
  var pos = writer.getTextPos();
93258
- writeComment("/// <reference path=\"" + directive.fileName + "\" />");
93280
+ writeComment("/// <reference path=\"".concat(directive.fileName, "\" />"));
93259
93281
  if (bundleFileInfo)
93260
93282
  bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: "reference", data: directive.fileName });
93261
93283
  writeLine();
@@ -93264,9 +93286,9 @@ var ts;
93264
93286
  var directive = types_24[_d];
93265
93287
  var pos = writer.getTextPos();
93266
93288
  var resolutionMode = directive.resolutionMode && directive.resolutionMode !== (currentSourceFile === null || currentSourceFile === void 0 ? void 0 : currentSourceFile.impliedNodeFormat)
93267
- ? "resolution-mode=\"" + (directive.resolutionMode === ts.ModuleKind.ESNext ? "import" : "require") + "\""
93289
+ ? "resolution-mode=\"".concat(directive.resolutionMode === ts.ModuleKind.ESNext ? "import" : "require", "\"")
93268
93290
  : "";
93269
- writeComment("/// <reference types=\"" + directive.fileName + "\" " + resolutionMode + "/>");
93291
+ writeComment("/// <reference types=\"".concat(directive.fileName, "\" ").concat(resolutionMode, "/>"));
93270
93292
  if (bundleFileInfo)
93271
93293
  bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: !directive.resolutionMode ? "type" : directive.resolutionMode === ts.ModuleKind.ESNext ? "type-import" : "type-require", data: directive.fileName });
93272
93294
  writeLine();
@@ -93274,7 +93296,7 @@ var ts;
93274
93296
  for (var _e = 0, libs_1 = libs; _e < libs_1.length; _e++) {
93275
93297
  var directive = libs_1[_e];
93276
93298
  var pos = writer.getTextPos();
93277
- writeComment("/// <reference lib=\"" + directive.fileName + "\" />");
93299
+ writeComment("/// <reference lib=\"".concat(directive.fileName, "\" />"));
93278
93300
  if (bundleFileInfo)
93279
93301
  bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: "lib", data: directive.fileName });
93280
93302
  writeLine();
@@ -93976,9 +93998,9 @@ var ts;
93976
93998
  var textSourceNode = node.textSourceNode;
93977
93999
  if (ts.isIdentifier(textSourceNode) || ts.isNumericLiteral(textSourceNode)) {
93978
94000
  var text = ts.isNumericLiteral(textSourceNode) ? textSourceNode.text : getTextOfNode(textSourceNode);
93979
- return jsxAttributeEscape ? "\"" + ts.escapeJsxAttributeString(text) + "\"" :
93980
- neverAsciiEscape || (ts.getEmitFlags(node) & 16777216) ? "\"" + ts.escapeString(text) + "\"" :
93981
- "\"" + ts.escapeNonAsciiString(text) + "\"";
94001
+ return jsxAttributeEscape ? "\"".concat(ts.escapeJsxAttributeString(text), "\"") :
94002
+ neverAsciiEscape || (ts.getEmitFlags(node) & 16777216) ? "\"".concat(ts.escapeString(text), "\"") :
94003
+ "\"".concat(ts.escapeNonAsciiString(text), "\"");
93982
94004
  }
93983
94005
  else {
93984
94006
  return getLiteralTextOfNode(textSourceNode, neverAsciiEscape, jsxAttributeEscape);
@@ -94381,8 +94403,8 @@ var ts;
94381
94403
  }
94382
94404
  function formatSynthesizedComment(comment) {
94383
94405
  return comment.kind === 3
94384
- ? "/*" + comment.text + "*/"
94385
- : "//" + comment.text;
94406
+ ? "/*".concat(comment.text, "*/")
94407
+ : "//".concat(comment.text);
94386
94408
  }
94387
94409
  function emitBodyWithDetachedComments(node, detachedRange, emitCallback) {
94388
94410
  enterComment();
@@ -95016,18 +95038,18 @@ var ts;
95016
95038
  var watchedDirPath = _a.watchedDirPath, fileOrDirectory = _a.fileOrDirectory, fileOrDirectoryPath = _a.fileOrDirectoryPath, configFileName = _a.configFileName, options = _a.options, program = _a.program, extraFileExtensions = _a.extraFileExtensions, currentDirectory = _a.currentDirectory, useCaseSensitiveFileNames = _a.useCaseSensitiveFileNames, writeLog = _a.writeLog, toPath = _a.toPath;
95017
95039
  var newPath = ts.removeIgnoredPath(fileOrDirectoryPath);
95018
95040
  if (!newPath) {
95019
- writeLog("Project: " + configFileName + " Detected ignored path: " + fileOrDirectory);
95041
+ writeLog("Project: ".concat(configFileName, " Detected ignored path: ").concat(fileOrDirectory));
95020
95042
  return true;
95021
95043
  }
95022
95044
  fileOrDirectoryPath = newPath;
95023
95045
  if (fileOrDirectoryPath === watchedDirPath)
95024
95046
  return false;
95025
95047
  if (ts.hasExtension(fileOrDirectoryPath) && !ts.isSupportedSourceFileName(fileOrDirectory, options, extraFileExtensions)) {
95026
- writeLog("Project: " + configFileName + " Detected file add/remove of non supported extension: " + fileOrDirectory);
95048
+ writeLog("Project: ".concat(configFileName, " Detected file add/remove of non supported extension: ").concat(fileOrDirectory));
95027
95049
  return true;
95028
95050
  }
95029
95051
  if (ts.isExcludedFile(fileOrDirectory, options.configFile.configFileSpecs, ts.getNormalizedAbsolutePath(ts.getDirectoryPath(configFileName), currentDirectory), useCaseSensitiveFileNames, currentDirectory)) {
95030
- writeLog("Project: " + configFileName + " Detected excluded file: " + fileOrDirectory);
95052
+ writeLog("Project: ".concat(configFileName, " Detected excluded file: ").concat(fileOrDirectory));
95031
95053
  return true;
95032
95054
  }
95033
95055
  if (!program)
@@ -95046,7 +95068,7 @@ var ts;
95046
95068
  var builderProgram = !realProgram && !ts.isArray(program) ? program : undefined;
95047
95069
  if (hasSourceFile((filePathWithoutExtension + ".ts")) ||
95048
95070
  hasSourceFile((filePathWithoutExtension + ".tsx"))) {
95049
- writeLog("Project: " + configFileName + " Detected output file: " + fileOrDirectory);
95071
+ writeLog("Project: ".concat(configFileName, " Detected output file: ").concat(fileOrDirectory));
95050
95072
  return true;
95051
95073
  }
95052
95074
  return false;
@@ -95114,36 +95136,36 @@ var ts;
95114
95136
  host.useCaseSensitiveFileNames();
95115
95137
  }
95116
95138
  function createExcludeWatcherWithLogging(file, flags, options, detailInfo1, detailInfo2) {
95117
- log("ExcludeWatcher:: Added:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
95139
+ log("ExcludeWatcher:: Added:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)));
95118
95140
  return {
95119
- close: function () { return log("ExcludeWatcher:: Close:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)); }
95141
+ close: function () { return log("ExcludeWatcher:: Close:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo))); }
95120
95142
  };
95121
95143
  }
95122
95144
  function createFileWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) {
95123
- log("FileWatcher:: Added:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
95145
+ log("FileWatcher:: Added:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)));
95124
95146
  var watcher = triggerInvokingFactory.watchFile(file, cb, flags, options, detailInfo1, detailInfo2);
95125
95147
  return {
95126
95148
  close: function () {
95127
- log("FileWatcher:: Close:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
95149
+ log("FileWatcher:: Close:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)));
95128
95150
  watcher.close();
95129
95151
  }
95130
95152
  };
95131
95153
  }
95132
95154
  function createDirectoryWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) {
95133
- var watchInfo = "DirectoryWatcher:: Added:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo);
95155
+ var watchInfo = "DirectoryWatcher:: Added:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
95134
95156
  log(watchInfo);
95135
95157
  var start = ts.timestamp();
95136
95158
  var watcher = triggerInvokingFactory.watchDirectory(file, cb, flags, options, detailInfo1, detailInfo2);
95137
95159
  var elapsed = ts.timestamp() - start;
95138
- log("Elapsed:: " + elapsed + "ms " + watchInfo);
95160
+ log("Elapsed:: ".concat(elapsed, "ms ").concat(watchInfo));
95139
95161
  return {
95140
95162
  close: function () {
95141
- var watchInfo = "DirectoryWatcher:: Close:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo);
95163
+ var watchInfo = "DirectoryWatcher:: Close:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
95142
95164
  log(watchInfo);
95143
95165
  var start = ts.timestamp();
95144
95166
  watcher.close();
95145
95167
  var elapsed = ts.timestamp() - start;
95146
- log("Elapsed:: " + elapsed + "ms " + watchInfo);
95168
+ log("Elapsed:: ".concat(elapsed, "ms ").concat(watchInfo));
95147
95169
  }
95148
95170
  };
95149
95171
  }
@@ -95153,16 +95175,16 @@ var ts;
95153
95175
  for (var _i = 0; _i < arguments.length; _i++) {
95154
95176
  args[_i] = arguments[_i];
95155
95177
  }
95156
- var triggerredInfo = (key === "watchFile" ? "FileWatcher" : "DirectoryWatcher") + ":: Triggered with " + args[0] + " " + (args[1] !== undefined ? args[1] : "") + ":: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo);
95178
+ var triggerredInfo = "".concat(key === "watchFile" ? "FileWatcher" : "DirectoryWatcher", ":: Triggered with ").concat(args[0], " ").concat(args[1] !== undefined ? args[1] : "", ":: ").concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
95157
95179
  log(triggerredInfo);
95158
95180
  var start = ts.timestamp();
95159
95181
  cb.call.apply(cb, __spreadArray([undefined], args, false));
95160
95182
  var elapsed = ts.timestamp() - start;
95161
- log("Elapsed:: " + elapsed + "ms " + triggerredInfo);
95183
+ log("Elapsed:: ".concat(elapsed, "ms ").concat(triggerredInfo));
95162
95184
  }, flags, options, detailInfo1, detailInfo2); };
95163
95185
  }
95164
95186
  function getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo) {
95165
- return "WatchInfo: " + file + " " + flags + " " + JSON.stringify(options) + " " + (getDetailWatchInfo ? getDetailWatchInfo(detailInfo1, detailInfo2) : detailInfo2 === undefined ? detailInfo1 : detailInfo1 + " " + detailInfo2);
95187
+ return "WatchInfo: ".concat(file, " ").concat(flags, " ").concat(JSON.stringify(options), " ").concat(getDetailWatchInfo ? getDetailWatchInfo(detailInfo1, detailInfo2) : detailInfo2 === undefined ? detailInfo1 : "".concat(detailInfo1, " ").concat(detailInfo2));
95166
95188
  }
95167
95189
  }
95168
95190
  ts.getWatchFactory = getWatchFactory;
@@ -95456,12 +95478,12 @@ var ts;
95456
95478
  }
95457
95479
  ts.formatDiagnostics = formatDiagnostics;
95458
95480
  function formatDiagnostic(diagnostic, host) {
95459
- var errorMessage = ts.diagnosticCategoryName(diagnostic) + " TS" + diagnostic.code + ": " + flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine()) + host.getNewLine();
95481
+ var errorMessage = "".concat(ts.diagnosticCategoryName(diagnostic), " TS").concat(diagnostic.code, ": ").concat(flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine())).concat(host.getNewLine());
95460
95482
  if (diagnostic.file) {
95461
95483
  var _a = ts.getLineAndCharacterOfPosition(diagnostic.file, diagnostic.start), line = _a.line, character = _a.character;
95462
95484
  var fileName = diagnostic.file.fileName;
95463
95485
  var relativeFileName = ts.convertToRelativePath(fileName, host.getCurrentDirectory(), function (fileName) { return host.getCanonicalFileName(fileName); });
95464
- return relativeFileName + "(" + (line + 1) + "," + (character + 1) + "): " + errorMessage;
95486
+ return "".concat(relativeFileName, "(").concat(line + 1, ",").concat(character + 1, "): ") + errorMessage;
95465
95487
  }
95466
95488
  return errorMessage;
95467
95489
  }
@@ -95539,9 +95561,9 @@ var ts;
95539
95561
  var output = "";
95540
95562
  output += color(relativeFileName, ForegroundColorEscapeSequences.Cyan);
95541
95563
  output += ":";
95542
- output += color("" + (firstLine + 1), ForegroundColorEscapeSequences.Yellow);
95564
+ output += color("".concat(firstLine + 1), ForegroundColorEscapeSequences.Yellow);
95543
95565
  output += ":";
95544
- output += color("" + (firstLineChar + 1), ForegroundColorEscapeSequences.Yellow);
95566
+ output += color("".concat(firstLineChar + 1), ForegroundColorEscapeSequences.Yellow);
95545
95567
  return output;
95546
95568
  }
95547
95569
  ts.formatLocation = formatLocation;
@@ -95555,7 +95577,7 @@ var ts;
95555
95577
  output += " - ";
95556
95578
  }
95557
95579
  output += formatColorAndReset(ts.diagnosticCategoryName(diagnostic), getCategoryFormat(diagnostic.category));
95558
- output += formatColorAndReset(" TS" + diagnostic.code + ": ", ForegroundColorEscapeSequences.Grey);
95580
+ output += formatColorAndReset(" TS".concat(diagnostic.code, ": "), ForegroundColorEscapeSequences.Grey);
95559
95581
  output += flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine());
95560
95582
  if (diagnostic.file) {
95561
95583
  output += host.getNewLine();
@@ -95616,7 +95638,7 @@ var ts;
95616
95638
  var result = void 0;
95617
95639
  var mode = getModeForFileReference(name, containingFileMode);
95618
95640
  var strName = ts.isString(name) ? name : name.fileName.toLowerCase();
95619
- var cacheKey = mode !== undefined ? mode + "|" + strName : strName;
95641
+ var cacheKey = mode !== undefined ? "".concat(mode, "|").concat(strName) : strName;
95620
95642
  if (cache.has(cacheKey)) {
95621
95643
  result = cache.get(cacheKey);
95622
95644
  }
@@ -95711,7 +95733,7 @@ var ts;
95711
95733
  var result = void 0;
95712
95734
  var mode = getModeForResolutionAtIndex(containingFile, i);
95713
95735
  i++;
95714
- var cacheKey = mode !== undefined ? mode + "|" + name : name;
95736
+ var cacheKey = mode !== undefined ? "".concat(mode, "|").concat(name) : name;
95715
95737
  if (cache.has(cacheKey)) {
95716
95738
  result = cache.get(cacheKey);
95717
95739
  }
@@ -97627,7 +97649,7 @@ var ts;
97627
97649
  path += (i === 2 ? "/" : "-") + components[i];
97628
97650
  i++;
97629
97651
  }
97630
- var resolveFrom = ts.combinePaths(currentDirectory, "__lib_node_modules_lookup_" + libFileName + "__.ts");
97652
+ var resolveFrom = ts.combinePaths(currentDirectory, "__lib_node_modules_lookup_".concat(libFileName, "__.ts"));
97631
97653
  var localOverrideModuleResult = ts.resolveModuleName("@typescript/lib-" + path, resolveFrom, { moduleResolution: ts.ModuleResolutionKind.NodeJs }, host, moduleResolutionCache);
97632
97654
  if (localOverrideModuleResult === null || localOverrideModuleResult === void 0 ? void 0 : localOverrideModuleResult.resolvedModule) {
97633
97655
  return localOverrideModuleResult.resolvedModule.resolvedFileName;
@@ -98381,10 +98403,10 @@ var ts;
98381
98403
  }
98382
98404
  function directoryExistsIfProjectReferenceDeclDir(dir) {
98383
98405
  var dirPath = host.toPath(dir);
98384
- var dirPathWithTrailingDirectorySeparator = "" + dirPath + ts.directorySeparator;
98406
+ var dirPathWithTrailingDirectorySeparator = "".concat(dirPath).concat(ts.directorySeparator);
98385
98407
  return ts.forEachKey(setOfDeclarationDirectories, function (declDirPath) { return dirPath === declDirPath ||
98386
98408
  ts.startsWith(declDirPath, dirPathWithTrailingDirectorySeparator) ||
98387
- ts.startsWith(dirPath, declDirPath + "/"); });
98409
+ ts.startsWith(dirPath, "".concat(declDirPath, "/")); });
98388
98410
  }
98389
98411
  function handleDirectoryCouldBeSymlink(directory) {
98390
98412
  var _a;
@@ -98432,7 +98454,7 @@ var ts;
98432
98454
  var result = fileOrDirectoryExistsUsingSource(fileOrDirectoryPath.replace(directoryPath, symlinkedDirectory.realPath));
98433
98455
  if (isFile && result) {
98434
98456
  var absolutePath = ts.getNormalizedAbsolutePath(fileOrDirectory, host.compilerHost.getCurrentDirectory());
98435
- symlinkCache.setSymlinkedFile(fileOrDirectoryPath, "" + symlinkedDirectory.real + absolutePath.replace(new RegExp(directoryPath, "i"), ""));
98457
+ symlinkCache.setSymlinkedFile(fileOrDirectoryPath, "".concat(symlinkedDirectory.real).concat(absolutePath.replace(new RegExp(directoryPath, "i"), "")));
98436
98458
  }
98437
98459
  return result;
98438
98460
  }) || false;
@@ -98810,7 +98832,7 @@ var ts;
98810
98832
  var emitOutput_1 = getFileEmitOutput(programOfThisState, sourceFile, true, cancellationToken, undefined, true);
98811
98833
  var firstDts_1 = ts.firstOrUndefined(emitOutput_1.outputFiles);
98812
98834
  if (firstDts_1) {
98813
- ts.Debug.assert(ts.isDeclarationFileName(firstDts_1.name), "File extension for signature expected to be dts", function () { return "Found: " + ts.getAnyExtensionFromPath(firstDts_1.name) + " for " + firstDts_1.name + ":: All output files: " + JSON.stringify(emitOutput_1.outputFiles.map(function (f) { return f.name; })); });
98835
+ ts.Debug.assert(ts.isDeclarationFileName(firstDts_1.name), "File extension for signature expected to be dts", function () { return "Found: ".concat(ts.getAnyExtensionFromPath(firstDts_1.name), " for ").concat(firstDts_1.name, ":: All output files: ").concat(JSON.stringify(emitOutput_1.outputFiles.map(function (f) { return f.name; }))); });
98814
98836
  latestSignature = (computeHash || ts.generateDjb2Hash)(firstDts_1.text);
98815
98837
  if (exportedModulesMapCache && latestSignature !== prevSignature) {
98816
98838
  updateExportedModules(sourceFile, emitOutput_1.exportedModulesFromDeclarationEmit, exportedModulesMapCache);
@@ -99202,7 +99224,7 @@ var ts;
99202
99224
  ts.BuilderState.updateShapeSignature(state, ts.Debug.checkDefined(state.program), affectedFile, ts.Debug.checkDefined(state.currentAffectedFilesSignatures), cancellationToken, computeHash, state.currentAffectedFilesExportedModulesMap);
99203
99225
  return;
99204
99226
  }
99205
- ts.Debug.assert(state.hasCalledUpdateShapeSignature.has(affectedFile.resolvedPath) || ((_a = state.currentAffectedFilesSignatures) === null || _a === void 0 ? void 0 : _a.has(affectedFile.resolvedPath)), "Signature not updated for affected file: " + affectedFile.fileName);
99227
+ ts.Debug.assert(state.hasCalledUpdateShapeSignature.has(affectedFile.resolvedPath) || ((_a = state.currentAffectedFilesSignatures) === null || _a === void 0 ? void 0 : _a.has(affectedFile.resolvedPath)), "Signature not updated for affected file: ".concat(affectedFile.fileName));
99206
99228
  if (state.compilerOptions.assumeChangesOnlyAffectDirectDependencies)
99207
99229
  return;
99208
99230
  handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile, cancellationToken, computeHash, host);
@@ -100220,7 +100242,7 @@ var ts;
100220
100242
  failedLookupLocation = ts.isRootedDiskPath(failedLookupLocation) ? ts.normalizePath(failedLookupLocation) : ts.getNormalizedAbsolutePath(failedLookupLocation, getCurrentDirectory());
100221
100243
  var failedLookupPathSplit = failedLookupLocationPath.split(ts.directorySeparator);
100222
100244
  var failedLookupSplit = failedLookupLocation.split(ts.directorySeparator);
100223
- ts.Debug.assert(failedLookupSplit.length === failedLookupPathSplit.length, "FailedLookup: " + failedLookupLocation + " failedLookupLocationPath: " + failedLookupLocationPath);
100245
+ ts.Debug.assert(failedLookupSplit.length === failedLookupPathSplit.length, "FailedLookup: ".concat(failedLookupLocation, " failedLookupLocationPath: ").concat(failedLookupLocationPath));
100224
100246
  if (failedLookupPathSplit.length > rootSplitLength + 1) {
100225
100247
  return {
100226
100248
  dir: failedLookupSplit.slice(0, rootSplitLength + 1).join(ts.directorySeparator),
@@ -100612,14 +100634,14 @@ var ts;
100612
100634
  if (options === void 0) { options = {}; }
100613
100635
  var info = getInfo(importingSourceFile.path, host);
100614
100636
  var modulePaths = getAllModulePaths(importingSourceFile.path, nodeModulesFileName, host, preferences, options);
100615
- return ts.firstDefined(modulePaths, function (modulePath) { return tryGetModuleNameAsNodeModule(modulePath, info, importingSourceFile, host, compilerOptions, true, options.overrideImportMode); });
100637
+ return ts.firstDefined(modulePaths, function (modulePath) { return tryGetModuleNameAsNodeModule(modulePath, info, importingSourceFile, host, compilerOptions, preferences, true, options.overrideImportMode); });
100616
100638
  }
100617
100639
  moduleSpecifiers_1.getNodeModulesPackageName = getNodeModulesPackageName;
100618
100640
  function getModuleSpecifierWorker(compilerOptions, importingSourceFile, importingSourceFileName, toFileName, host, preferences, userPreferences, options) {
100619
100641
  if (options === void 0) { options = {}; }
100620
100642
  var info = getInfo(importingSourceFileName, host);
100621
100643
  var modulePaths = getAllModulePaths(importingSourceFileName, toFileName, host, userPreferences, options);
100622
- return ts.firstDefined(modulePaths, function (modulePath) { return tryGetModuleNameAsNodeModule(modulePath, info, importingSourceFile, host, compilerOptions, undefined, options.overrideImportMode); }) ||
100644
+ return ts.firstDefined(modulePaths, function (modulePath) { return tryGetModuleNameAsNodeModule(modulePath, info, importingSourceFile, host, compilerOptions, userPreferences, undefined, options.overrideImportMode); }) ||
100623
100645
  getLocalModuleSpecifier(toFileName, info, compilerOptions, host, preferences);
100624
100646
  }
100625
100647
  function tryGetModuleSpecifiersFromCache(moduleSymbol, importingSourceFile, host, userPreferences, options) {
@@ -100685,7 +100707,7 @@ var ts;
100685
100707
  var relativeSpecifiers;
100686
100708
  for (var _i = 0, modulePaths_1 = modulePaths; _i < modulePaths_1.length; _i++) {
100687
100709
  var modulePath = modulePaths_1[_i];
100688
- var specifier = tryGetModuleNameAsNodeModule(modulePath, info, importingSourceFile, host, compilerOptions, undefined, options.overrideImportMode);
100710
+ var specifier = tryGetModuleNameAsNodeModule(modulePath, info, importingSourceFile, host, compilerOptions, userPreferences, undefined, options.overrideImportMode);
100689
100711
  nodeModulesSpecifiers = ts.append(nodeModulesSpecifiers, specifier);
100690
100712
  if (specifier && modulePath.isRedirect) {
100691
100713
  return nodeModulesSpecifiers;
@@ -101016,7 +101038,7 @@ var ts;
101016
101038
  ? removeExtensionAndIndexPostFix(relativePath, ending, compilerOptions)
101017
101039
  : ts.removeFileExtension(relativePath);
101018
101040
  }
101019
- function tryGetModuleNameAsNodeModule(_a, _b, importingSourceFile, host, options, packageNameOnly, overrideMode) {
101041
+ function tryGetModuleNameAsNodeModule(_a, _b, importingSourceFile, host, options, userPreferences, packageNameOnly, overrideMode) {
101020
101042
  var path = _a.path, isRedirect = _a.isRedirect;
101021
101043
  var getCanonicalFileName = _b.getCanonicalFileName, sourceDirectory = _b.sourceDirectory;
101022
101044
  if (!host.fileExists || !host.readFile) {
@@ -101029,8 +101051,9 @@ var ts;
101029
101051
  var moduleSpecifier = path;
101030
101052
  var isPackageRootPath = false;
101031
101053
  if (!packageNameOnly) {
101054
+ var preferences = getPreferences(host, userPreferences, options, importingSourceFile);
101032
101055
  var packageRootIndex = parts.packageRootIndex;
101033
- var moduleFileNameForExtensionless = void 0;
101056
+ var moduleFileName = void 0;
101034
101057
  while (true) {
101035
101058
  var _c = tryDirectoryWithPackageJson(packageRootIndex), moduleFileToTry = _c.moduleFileToTry, packageRootPath = _c.packageRootPath, blockedByExports = _c.blockedByExports, verbatimFromExports = _c.verbatimFromExports;
101036
101059
  if (ts.getEmitModuleResolutionKind(options) !== ts.ModuleResolutionKind.Classic) {
@@ -101046,11 +101069,11 @@ var ts;
101046
101069
  isPackageRootPath = true;
101047
101070
  break;
101048
101071
  }
101049
- if (!moduleFileNameForExtensionless)
101050
- moduleFileNameForExtensionless = moduleFileToTry;
101072
+ if (!moduleFileName)
101073
+ moduleFileName = moduleFileToTry;
101051
101074
  packageRootIndex = path.indexOf(ts.directorySeparator, packageRootIndex + 1);
101052
101075
  if (packageRootIndex === -1) {
101053
- moduleSpecifier = getExtensionlessFileName(moduleFileNameForExtensionless);
101076
+ moduleSpecifier = removeExtensionAndIndexPostFix(moduleFileName, preferences.ending, options, host);
101054
101077
  break;
101055
101078
  }
101056
101079
  }
@@ -101099,7 +101122,7 @@ var ts;
101099
101122
  moduleFileToTry = ts.combinePaths(packageRootPath, fromPaths);
101100
101123
  }
101101
101124
  }
101102
- var mainFileRelative = packageJsonContent.typings || packageJsonContent.types || packageJsonContent.main;
101125
+ var mainFileRelative = packageJsonContent.typings || packageJsonContent.types || packageJsonContent.main || "index.js";
101103
101126
  if (ts.isString(mainFileRelative)) {
101104
101127
  var mainExportFile = ts.toPath(mainFileRelative, packageRootPath, getCanonicalFileName);
101105
101128
  if (ts.removeFileExtension(mainExportFile) === ts.removeFileExtension(getCanonicalFileName(moduleFileToTry))) {
@@ -101107,14 +101130,13 @@ var ts;
101107
101130
  }
101108
101131
  }
101109
101132
  }
101110
- return { moduleFileToTry: moduleFileToTry };
101111
- }
101112
- function getExtensionlessFileName(path) {
101113
- var fullModulePathWithoutExtension = ts.removeFileExtension(path);
101114
- if (getCanonicalFileName(fullModulePathWithoutExtension.substring(parts.fileNameIndex)) === "/index" && !tryGetAnyFileFromPath(host, fullModulePathWithoutExtension.substring(0, parts.fileNameIndex))) {
101115
- return fullModulePathWithoutExtension.substring(0, parts.fileNameIndex);
101133
+ else {
101134
+ var fileName = getCanonicalFileName(moduleFileToTry.substring(parts.packageRootIndex + 1));
101135
+ if (fileName === "index.d.ts" || fileName === "index.js" || fileName === "index.ts" || fileName === "index.tsx") {
101136
+ return { moduleFileToTry: moduleFileToTry, packageRootPath: packageRootPath };
101137
+ }
101116
101138
  }
101117
- return fullModulePathWithoutExtension;
101139
+ return { moduleFileToTry: moduleFileToTry };
101118
101140
  }
101119
101141
  }
101120
101142
  function tryGetAnyFileFromPath(host, path) {
@@ -101135,15 +101157,21 @@ var ts;
101135
101157
  return relativePath !== undefined && isPathRelativeToParent(relativePath) ? undefined : relativePath;
101136
101158
  });
101137
101159
  }
101138
- function removeExtensionAndIndexPostFix(fileName, ending, options) {
101160
+ function removeExtensionAndIndexPostFix(fileName, ending, options, host) {
101139
101161
  if (ts.fileExtensionIsOneOf(fileName, [".json", ".mjs", ".cjs"]))
101140
101162
  return fileName;
101141
101163
  var noExtension = ts.removeFileExtension(fileName);
101164
+ if (fileName === noExtension)
101165
+ return fileName;
101142
101166
  if (ts.fileExtensionIsOneOf(fileName, [".d.mts", ".mts", ".d.cts", ".cts"]))
101143
101167
  return noExtension + getJSExtensionForFile(fileName, options);
101144
101168
  switch (ending) {
101145
101169
  case 0:
101146
- return ts.removeSuffix(noExtension, "/index");
101170
+ var withoutIndex = ts.removeSuffix(noExtension, "/index");
101171
+ if (host && withoutIndex !== noExtension && tryGetAnyFileFromPath(host, withoutIndex)) {
101172
+ return noExtension;
101173
+ }
101174
+ return withoutIndex;
101147
101175
  case 1:
101148
101176
  return noExtension;
101149
101177
  case 2:
@@ -101154,7 +101182,7 @@ var ts;
101154
101182
  }
101155
101183
  function getJSExtensionForFile(fileName, options) {
101156
101184
  var _a;
101157
- return (_a = tryGetJSExtensionForFile(fileName, options)) !== null && _a !== void 0 ? _a : ts.Debug.fail("Extension " + ts.extensionFromPath(fileName) + " is unsupported:: FileName:: " + fileName);
101185
+ return (_a = tryGetJSExtensionForFile(fileName, options)) !== null && _a !== void 0 ? _a : ts.Debug.fail("Extension ".concat(ts.extensionFromPath(fileName), " is unsupported:: FileName:: ").concat(fileName));
101158
101186
  }
101159
101187
  function tryGetJSExtensionForFile(fileName, options) {
101160
101188
  var ext = ts.tryGetExtensionFromPath(fileName);
@@ -101244,8 +101272,8 @@ var ts;
101244
101272
  return pretty ?
101245
101273
  function (diagnostic, newLine, options) {
101246
101274
  clearScreenIfNotWatchingForFileChanges(system, diagnostic, options);
101247
- var output = "[" + ts.formatColorAndReset(getLocaleTimeString(system), ts.ForegroundColorEscapeSequences.Grey) + "] ";
101248
- output += "" + ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine) + (newLine + newLine);
101275
+ var output = "[".concat(ts.formatColorAndReset(getLocaleTimeString(system), ts.ForegroundColorEscapeSequences.Grey), "] ");
101276
+ output += "".concat(ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)).concat(newLine + newLine);
101249
101277
  system.write(output);
101250
101278
  } :
101251
101279
  function (diagnostic, newLine, options) {
@@ -101253,8 +101281,8 @@ var ts;
101253
101281
  if (!clearScreenIfNotWatchingForFileChanges(system, diagnostic, options)) {
101254
101282
  output += newLine;
101255
101283
  }
101256
- output += getLocaleTimeString(system) + " - ";
101257
- output += "" + ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine) + getPlainDiagnosticFollowingNewLines(diagnostic, newLine);
101284
+ output += "".concat(getLocaleTimeString(system), " - ");
101285
+ output += "".concat(ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)).concat(getPlainDiagnosticFollowingNewLines(diagnostic, newLine));
101258
101286
  system.write(output);
101259
101287
  };
101260
101288
  }
@@ -101276,7 +101304,7 @@ var ts;
101276
101304
  .map(function (errorDiagnostic) {
101277
101305
  if (errorDiagnostic.file === undefined)
101278
101306
  return;
101279
- return "" + errorDiagnostic.file.fileName;
101307
+ return "".concat(errorDiagnostic.file.fileName);
101280
101308
  });
101281
101309
  return filesInError.map(function (fileName) {
101282
101310
  var diagnosticForFileName = ts.find(diagnostics, function (diagnostic) {
@@ -101309,7 +101337,7 @@ var ts;
101309
101337
  if (errorCount === 0)
101310
101338
  return "";
101311
101339
  var nonNilFiles = filesInError.filter(function (fileInError) { return fileInError !== undefined; });
101312
- var distinctFileNamesWithLines = nonNilFiles.map(function (fileInError) { return fileInError.fileName + ":" + fileInError.line; })
101340
+ var distinctFileNamesWithLines = nonNilFiles.map(function (fileInError) { return "".concat(fileInError.fileName, ":").concat(fileInError.line); })
101313
101341
  .filter(function (value, index, self) { return self.indexOf(value) === index; });
101314
101342
  var firstFileReference = nonNilFiles[0] && prettyPathForFileError(nonNilFiles[0], host.getCurrentDirectory());
101315
101343
  var d = errorCount === 1 ?
@@ -101322,7 +101350,7 @@ var ts;
101322
101350
  ts.Diagnostics.Found_0_errors_in_the_same_file_starting_at_Colon_1 :
101323
101351
  ts.Diagnostics.Found_0_errors_in_1_files, errorCount, distinctFileNamesWithLines.length === 1 ? firstFileReference : distinctFileNamesWithLines.length);
101324
101352
  var suffix = distinctFileNamesWithLines.length > 1 ? createTabularErrorsDisplay(nonNilFiles, host) : "";
101325
- return "" + newLine + ts.flattenDiagnosticMessageText(d.messageText, newLine) + newLine + newLine + suffix;
101353
+ return "".concat(newLine).concat(ts.flattenDiagnosticMessageText(d.messageText, newLine)).concat(newLine).concat(newLine).concat(suffix);
101326
101354
  }
101327
101355
  ts.getErrorSummaryText = getErrorSummaryText;
101328
101356
  function createTabularErrorsDisplay(filesInError, host) {
@@ -101345,7 +101373,7 @@ var ts;
101345
101373
  " ".repeat(leftPaddingGoal - errorCountDigitsLength)
101346
101374
  : "";
101347
101375
  var fileRef = prettyPathForFileError(file, host.getCurrentDirectory());
101348
- tabularData += "" + leftPadding + errorCount + " " + fileRef + "\n";
101376
+ tabularData += "".concat(leftPadding).concat(errorCount, " ").concat(fileRef, "\n");
101349
101377
  });
101350
101378
  return tabularData;
101351
101379
  }
@@ -101372,9 +101400,9 @@ var ts;
101372
101400
  var relativeFileName = function (fileName) { return ts.convertToRelativePath(fileName, program.getCurrentDirectory(), getCanonicalFileName); };
101373
101401
  for (var _i = 0, _c = program.getSourceFiles(); _i < _c.length; _i++) {
101374
101402
  var file = _c[_i];
101375
- write("" + toFileName(file, relativeFileName));
101376
- (_a = reasons.get(file.path)) === null || _a === void 0 ? void 0 : _a.forEach(function (reason) { return write(" " + fileIncludeReasonToDiagnostics(program, reason, relativeFileName).messageText); });
101377
- (_b = explainIfFileIsRedirect(file, relativeFileName)) === null || _b === void 0 ? void 0 : _b.forEach(function (d) { return write(" " + d.messageText); });
101403
+ write("".concat(toFileName(file, relativeFileName)));
101404
+ (_a = reasons.get(file.path)) === null || _a === void 0 ? void 0 : _a.forEach(function (reason) { return write(" ".concat(fileIncludeReasonToDiagnostics(program, reason, relativeFileName).messageText)); });
101405
+ (_b = explainIfFileIsRedirect(file, relativeFileName)) === null || _b === void 0 ? void 0 : _b.forEach(function (d) { return write(" ".concat(d.messageText)); });
101378
101406
  }
101379
101407
  }
101380
101408
  ts.explainFiles = explainFiles;
@@ -101412,7 +101440,7 @@ var ts;
101412
101440
  if (isJsonFile && !ts.endsWith(includeSpec, ".json"))
101413
101441
  return false;
101414
101442
  var pattern = ts.getPatternFromSpec(includeSpec, basePath, "files");
101415
- return !!pattern && ts.getRegexFromPattern("(" + pattern + ")$", useCaseSensitiveFileNames).test(fileName);
101443
+ return !!pattern && ts.getRegexFromPattern("(".concat(pattern, ")$"), useCaseSensitiveFileNames).test(fileName);
101416
101444
  });
101417
101445
  }
101418
101446
  ts.getMatchedIncludeSpec = getMatchedIncludeSpec;
@@ -101421,7 +101449,7 @@ var ts;
101421
101449
  var options = program.getCompilerOptions();
101422
101450
  if (ts.isReferencedFile(reason)) {
101423
101451
  var referenceLocation = ts.getReferencedFileLocation(function (path) { return program.getSourceFileByPath(path); }, reason);
101424
- var referenceText = ts.isReferenceFileLocation(referenceLocation) ? referenceLocation.file.text.substring(referenceLocation.pos, referenceLocation.end) : "\"" + referenceLocation.text + "\"";
101452
+ var referenceText = ts.isReferenceFileLocation(referenceLocation) ? referenceLocation.file.text.substring(referenceLocation.pos, referenceLocation.end) : "\"".concat(referenceLocation.text, "\"");
101425
101453
  var message = void 0;
101426
101454
  ts.Debug.assert(ts.isReferenceFileLocation(referenceLocation) || reason.kind === ts.FileIncludeKind.Import, "Only synthetic references are imports");
101427
101455
  switch (reason.kind) {
@@ -101532,7 +101560,7 @@ var ts;
101532
101560
  var currentDir_1 = program.getCurrentDirectory();
101533
101561
  ts.forEach(emittedFiles, function (file) {
101534
101562
  var filepath = ts.getNormalizedAbsolutePath(file, currentDir_1);
101535
- write("TSFILE: " + filepath);
101563
+ write("TSFILE: ".concat(filepath));
101536
101564
  });
101537
101565
  listFiles(program, write);
101538
101566
  }
@@ -101842,7 +101870,7 @@ var ts;
101842
101870
  }
101843
101871
  var _b = ts.createWatchFactory(host, compilerOptions), watchFile = _b.watchFile, watchDirectory = _b.watchDirectory, writeLog = _b.writeLog;
101844
101872
  var getCanonicalFileName = ts.createGetCanonicalFileName(useCaseSensitiveFileNames);
101845
- writeLog("Current directory: " + currentDirectory + " CaseSensitiveFileNames: " + useCaseSensitiveFileNames);
101873
+ writeLog("Current directory: ".concat(currentDirectory, " CaseSensitiveFileNames: ").concat(useCaseSensitiveFileNames));
101846
101874
  var configFileWatcher;
101847
101875
  if (configFileName) {
101848
101876
  configFileWatcher = watchFile(configFileName, scheduleProgramReload, ts.PollingInterval.High, watchOptions, ts.WatchType.ConfigFile);
@@ -101989,10 +102017,10 @@ var ts;
101989
102017
  }
101990
102018
  function createNewProgram(hasInvalidatedResolution) {
101991
102019
  writeLog("CreatingProgramWith::");
101992
- writeLog(" roots: " + JSON.stringify(rootFileNames));
101993
- writeLog(" options: " + JSON.stringify(compilerOptions));
102020
+ writeLog(" roots: ".concat(JSON.stringify(rootFileNames)));
102021
+ writeLog(" options: ".concat(JSON.stringify(compilerOptions)));
101994
102022
  if (projectReferences)
101995
- writeLog(" projectReferences: " + JSON.stringify(projectReferences));
102023
+ writeLog(" projectReferences: ".concat(JSON.stringify(projectReferences)));
101996
102024
  var needsUpdateInTypeRootWatch = hasChangedCompilerOptions || !getCurrentProgram();
101997
102025
  hasChangedCompilerOptions = false;
101998
102026
  hasChangedConfigFileParsingErrors = false;
@@ -102134,7 +102162,7 @@ var ts;
102134
102162
  return resolutionCache.invalidateResolutionsOfFailedLookupLocations();
102135
102163
  }
102136
102164
  var pending = clearInvalidateResolutionsOfFailedLookupLocations();
102137
- writeLog("Scheduling invalidateFailedLookup" + (pending ? ", Cancelled earlier one" : ""));
102165
+ writeLog("Scheduling invalidateFailedLookup".concat(pending ? ", Cancelled earlier one" : ""));
102138
102166
  timerToInvalidateFailedLookupResolutions = host.setTimeout(invalidateResolutionsOfFailedLookup, 250);
102139
102167
  }
102140
102168
  function invalidateResolutionsOfFailedLookup() {
@@ -102190,7 +102218,7 @@ var ts;
102190
102218
  synchronizeProgram();
102191
102219
  }
102192
102220
  function reloadConfigFile() {
102193
- writeLog("Reloading config file: " + configFileName);
102221
+ writeLog("Reloading config file: ".concat(configFileName));
102194
102222
  reloadLevel = ts.ConfigFileProgramReloadLevel.None;
102195
102223
  if (cachedDirectoryStructureHost) {
102196
102224
  cachedDirectoryStructureHost.clearCache();
@@ -102228,7 +102256,7 @@ var ts;
102228
102256
  return config.parsedCommandLine;
102229
102257
  }
102230
102258
  }
102231
- writeLog("Loading config file: " + configFileName);
102259
+ writeLog("Loading config file: ".concat(configFileName));
102232
102260
  var parsedCommandLine = host.getParsedCommandLine ?
102233
102261
  host.getParsedCommandLine(configFileName) :
102234
102262
  getParsedCommandLineFromConfigFileHost(configFileName);
@@ -102478,8 +102506,8 @@ var ts;
102478
102506
  ts.getBuildOrderFromAnyBuildOrder = getBuildOrderFromAnyBuildOrder;
102479
102507
  function createBuilderStatusReporter(system, pretty) {
102480
102508
  return function (diagnostic) {
102481
- var output = pretty ? "[" + ts.formatColorAndReset(ts.getLocaleTimeString(system), ts.ForegroundColorEscapeSequences.Grey) + "] " : ts.getLocaleTimeString(system) + " - ";
102482
- output += "" + ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine) + (system.newLine + system.newLine);
102509
+ var output = pretty ? "[".concat(ts.formatColorAndReset(ts.getLocaleTimeString(system), ts.ForegroundColorEscapeSequences.Grey), "] ") : "".concat(ts.getLocaleTimeString(system), " - ");
102510
+ output += "".concat(ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)).concat(system.newLine + system.newLine);
102483
102511
  system.write(output);
102484
102512
  };
102485
102513
  }
@@ -103222,7 +103250,7 @@ var ts;
103222
103250
  function listEmittedFile(_a, proj, file) {
103223
103251
  var write = _a.write;
103224
103252
  if (write && proj.options.listEmittedFiles) {
103225
- write("TSFILE: " + file);
103253
+ write("TSFILE: ".concat(file));
103226
103254
  }
103227
103255
  }
103228
103256
  function getOldProgram(_a, proj, parsed) {
@@ -103251,7 +103279,7 @@ var ts;
103251
103279
  function buildErrors(state, resolvedPath, program, config, diagnostics, buildResult, errorType) {
103252
103280
  var canEmitBuildInfo = !(buildResult & BuildResultFlags.SyntaxErrors) && program && !ts.outFile(program.getCompilerOptions());
103253
103281
  reportAndStoreErrors(state, resolvedPath, diagnostics);
103254
- state.projectStatus.set(resolvedPath, { type: ts.UpToDateStatusType.Unbuildable, reason: errorType + " errors" });
103282
+ state.projectStatus.set(resolvedPath, { type: ts.UpToDateStatusType.Unbuildable, reason: "".concat(errorType, " errors") });
103255
103283
  if (canEmitBuildInfo)
103256
103284
  return { buildResult: buildResult, step: BuildStep.EmitBuildInfo };
103257
103285
  afterProgramDone(state, program, config);
@@ -103277,7 +103305,7 @@ var ts;
103277
103305
  if (!host.fileExists(inputFile)) {
103278
103306
  return {
103279
103307
  type: ts.UpToDateStatusType.Unbuildable,
103280
- reason: inputFile + " does not exist"
103308
+ reason: "".concat(inputFile, " does not exist")
103281
103309
  };
103282
103310
  }
103283
103311
  if (!force) {
@@ -103602,7 +103630,7 @@ var ts;
103602
103630
  }
103603
103631
  }
103604
103632
  if (filesToDelete) {
103605
- reportStatus(state, ts.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0, filesToDelete.map(function (f) { return "\r\n * " + f; }).join(""));
103633
+ reportStatus(state, ts.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0, filesToDelete.map(function (f) { return "\r\n * ".concat(f); }).join(""));
103606
103634
  }
103607
103635
  return ts.ExitStatus.Success;
103608
103636
  }
@@ -103952,7 +103980,7 @@ var ts;
103952
103980
  };
103953
103981
  }
103954
103982
  function bold(str) {
103955
- return "\u001B[1m" + str + "\u001B[22m";
103983
+ return "\u001B[1m".concat(str, "\u001B[22m");
103956
103984
  }
103957
103985
  var isWindows = sys.getEnvironmentVariable("OS") && ts.stringContains(sys.getEnvironmentVariable("OS").toLowerCase(), "windows");
103958
103986
  var isWindowsTerminal = sys.getEnvironmentVariable("WT_SESSION");
@@ -103961,19 +103989,19 @@ var ts;
103961
103989
  if (isWindows && !isWindowsTerminal && !isVSCode) {
103962
103990
  return brightWhite(str);
103963
103991
  }
103964
- return "\u001B[94m" + str + "\u001B[39m";
103992
+ return "\u001B[94m".concat(str, "\u001B[39m");
103965
103993
  }
103966
103994
  var supportsRicherColors = sys.getEnvironmentVariable("COLORTERM") === "truecolor" || sys.getEnvironmentVariable("TERM") === "xterm-256color";
103967
103995
  function blueBackground(str) {
103968
103996
  if (supportsRicherColors) {
103969
- return "\u001B[48;5;68m" + str + "\u001B[39;49m";
103997
+ return "\u001B[48;5;68m".concat(str, "\u001B[39;49m");
103970
103998
  }
103971
103999
  else {
103972
- return "\u001B[44m" + str + "\u001B[39;49m";
104000
+ return "\u001B[44m".concat(str, "\u001B[39;49m");
103973
104001
  }
103974
104002
  }
103975
104003
  function brightWhite(str) {
103976
- return "\u001B[97m" + str + "\u001B[39m";
104004
+ return "\u001B[97m".concat(str, "\u001B[39m");
103977
104005
  }
103978
104006
  return {
103979
104007
  bold: bold,
@@ -103983,7 +104011,7 @@ var ts;
103983
104011
  };
103984
104012
  }
103985
104013
  function getDisplayNameTextOfOption(option) {
103986
- return "--" + option.name + (option.shortName ? ", -" + option.shortName : "");
104014
+ return "--".concat(option.name).concat(option.shortName ? ", -".concat(option.shortName) : "");
103987
104015
  }
103988
104016
  function generateOptionOutput(sys, option, rightAlignOfLeft, leftAlignOfRight) {
103989
104017
  var _a, _b;
@@ -104020,13 +104048,13 @@ var ts;
104020
104048
  text.push(sys.newLine);
104021
104049
  if (showAdditionalInfoOutput(valueCandidates, option)) {
104022
104050
  if (valueCandidates) {
104023
- text.push(valueCandidates.valueType + " " + valueCandidates.possibleValues);
104051
+ text.push("".concat(valueCandidates.valueType, " ").concat(valueCandidates.possibleValues));
104024
104052
  }
104025
104053
  if (defaultValueDescription) {
104026
104054
  if (valueCandidates)
104027
104055
  text.push(sys.newLine);
104028
104056
  var diagType = ts.getDiagnosticText(ts.Diagnostics.default_Colon);
104029
- text.push(diagType + " " + defaultValueDescription);
104057
+ text.push("".concat(diagType, " ").concat(defaultValueDescription));
104030
104058
  }
104031
104059
  text.push(sys.newLine);
104032
104060
  }
@@ -104075,7 +104103,7 @@ var ts;
104075
104103
  }
104076
104104
  var curRight = remainRight.substr(0, rightCharacterNumber);
104077
104105
  remainRight = remainRight.slice(rightCharacterNumber);
104078
- res.push("" + curLeft + curRight);
104106
+ res.push("".concat(curLeft).concat(curRight));
104079
104107
  isFirstLine = false;
104080
104108
  }
104081
104109
  return res;
@@ -104176,7 +104204,7 @@ var ts;
104176
104204
  categoryMap.set(curCategory, optionsOfCurCategory);
104177
104205
  }
104178
104206
  categoryMap.forEach(function (value, key) {
104179
- res.push("### " + key + sys.newLine + sys.newLine);
104207
+ res.push("### ".concat(key).concat(sys.newLine).concat(sys.newLine));
104180
104208
  res = __spreadArray(__spreadArray([], res, true), generateGroupOptionOutput(sys, value), true);
104181
104209
  });
104182
104210
  if (afterOptionsDescription) {
@@ -104186,7 +104214,7 @@ var ts;
104186
104214
  }
104187
104215
  function printEasyHelp(sys, simpleOptions) {
104188
104216
  var colors = createColors(sys);
104189
- var output = __spreadArray([], getHeader(sys, ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler) + " - " + ts.getDiagnosticText(ts.Diagnostics.Version_0, ts.version)), true);
104217
+ var output = __spreadArray([], getHeader(sys, "".concat(ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler), " - ").concat(ts.getDiagnosticText(ts.Diagnostics.Version_0, ts.version))), true);
104190
104218
  output.push(colors.bold(ts.getDiagnosticText(ts.Diagnostics.COMMON_COMMANDS)) + sys.newLine + sys.newLine);
104191
104219
  example("tsc", ts.Diagnostics.Compiles_the_current_project_tsconfig_json_in_the_working_directory);
104192
104220
  example("tsc app.ts util.ts", ts.Diagnostics.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options);
@@ -104212,7 +104240,7 @@ var ts;
104212
104240
  }
104213
104241
  }
104214
104242
  function printAllHelp(sys, compilerOptions, buildOptions, watchOptions) {
104215
- var output = __spreadArray([], getHeader(sys, ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler) + " - " + ts.getDiagnosticText(ts.Diagnostics.Version_0, ts.version)), true);
104243
+ var output = __spreadArray([], getHeader(sys, "".concat(ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler), " - ").concat(ts.getDiagnosticText(ts.Diagnostics.Version_0, ts.version))), true);
104216
104244
  output = __spreadArray(__spreadArray([], output, true), generateSectionOptionsOutput(sys, ts.getDiagnosticText(ts.Diagnostics.ALL_COMPILER_OPTIONS), compilerOptions, true, undefined, ts.formatMessage(undefined, ts.Diagnostics.You_can_learn_about_all_of_the_compiler_options_at_0, "https://aka.ms/tsc")), true);
104217
104245
  output = __spreadArray(__spreadArray([], output, true), generateSectionOptionsOutput(sys, ts.getDiagnosticText(ts.Diagnostics.WATCH_OPTIONS), watchOptions, false, ts.getDiagnosticText(ts.Diagnostics.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon)), true);
104218
104246
  output = __spreadArray(__spreadArray([], output, true), generateSectionOptionsOutput(sys, ts.getDiagnosticText(ts.Diagnostics.BUILD_OPTIONS), buildOptions, false, ts.formatMessage(undefined, ts.Diagnostics.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0, "https://aka.ms/tsc-composite-builds")), true);
@@ -104222,7 +104250,7 @@ var ts;
104222
104250
  }
104223
104251
  }
104224
104252
  function printBuildHelp(sys, buildOptions) {
104225
- var output = __spreadArray([], getHeader(sys, ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler) + " - " + ts.getDiagnosticText(ts.Diagnostics.Version_0, ts.version)), true);
104253
+ var output = __spreadArray([], getHeader(sys, "".concat(ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler), " - ").concat(ts.getDiagnosticText(ts.Diagnostics.Version_0, ts.version))), true);
104226
104254
  output = __spreadArray(__spreadArray([], output, true), generateSectionOptionsOutput(sys, ts.getDiagnosticText(ts.Diagnostics.BUILD_OPTIONS), buildOptions, false, ts.formatMessage(undefined, ts.Diagnostics.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0, "https://aka.ms/tsc-composite-builds")), true);
104227
104255
  for (var _i = 0, output_3 = output; _i < output_3.length; _i++) {
104228
104256
  var line = output_3[_i];
@@ -104603,7 +104631,7 @@ var ts;
104603
104631
  reportCountStatistic("Subtype cache size", caches.subtype);
104604
104632
  reportCountStatistic("Strict subtype cache size", caches.strictSubtype);
104605
104633
  if (isPerformanceEnabled) {
104606
- ts.performance.forEachMeasure(function (name, duration) { return reportTimeStatistic(name + " time", duration); });
104634
+ ts.performance.forEachMeasure(function (name, duration) { return reportTimeStatistic("".concat(name, " time"), duration); });
104607
104635
  }
104608
104636
  }
104609
104637
  else if (isPerformanceEnabled) {
@@ -104674,7 +104702,7 @@ var ts;
104674
104702
  // This file actually uses arguments passed on commandline and executes it
104675
104703
  ts.Debug.loggingHost = {
104676
104704
  log: function (_level, s) {
104677
- ts.sys.write("" + (s || "") + ts.sys.newLine);
104705
+ ts.sys.write("".concat(s || "").concat(ts.sys.newLine));
104678
104706
  }
104679
104707
  };
104680
104708
  if (ts.Debug.isDebugging) {