typescript 4.5.0-dev.20211101 → 4.5.4

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.5";
72
- ts.version = ts.versionMajorMinor + ".0-dev.20211101";
72
+ ts.version = "4.5.4";
73
73
  var NativeCollections;
74
74
  (function (NativeCollections) {
75
75
  function tryGetNativeMap() {
@@ -88,7 +88,7 @@ var ts;
88
88
  var constructor = (_a = NativeCollections[nativeFactory]()) !== null && _a !== void 0 ? _a : ts.ShimCollections === null || ts.ShimCollections === void 0 ? void 0 : ts.ShimCollections[shimFactory](ts.getIterator);
89
89
  if (constructor)
90
90
  return constructor;
91
- throw new Error("TypeScript requires an environment that provides a compatible native " + name + " implementation.");
91
+ throw new Error("TypeScript requires an environment that provides a compatible native ".concat(name, " implementation."));
92
92
  }
93
93
  })(ts || (ts = {}));
94
94
  var ts;
@@ -1294,7 +1294,7 @@ var ts;
1294
1294
  function cast(value, test) {
1295
1295
  if (value !== undefined && test(value))
1296
1296
  return value;
1297
- return ts.Debug.fail("Invalid cast. The supplied value " + value + " did not pass the test '" + ts.Debug.getFunctionName(test) + "'.");
1297
+ return ts.Debug.fail("Invalid cast. The supplied value ".concat(value, " did not pass the test '").concat(ts.Debug.getFunctionName(test), "'."));
1298
1298
  }
1299
1299
  ts.cast = cast;
1300
1300
  function noop(_) { }
@@ -1344,7 +1344,7 @@ var ts;
1344
1344
  function memoizeOne(callback) {
1345
1345
  var map = new ts.Map();
1346
1346
  return function (arg) {
1347
- var key = typeof arg + ":" + arg;
1347
+ var key = "".concat(typeof arg, ":").concat(arg);
1348
1348
  var value = map.get(key);
1349
1349
  if (value === undefined && !map.has(key)) {
1350
1350
  value = callback(arg);
@@ -1679,7 +1679,7 @@ var ts;
1679
1679
  ts.createGetCanonicalFileName = createGetCanonicalFileName;
1680
1680
  function patternText(_a) {
1681
1681
  var prefix = _a.prefix, suffix = _a.suffix;
1682
- return prefix + "*" + suffix;
1682
+ return "".concat(prefix, "*").concat(suffix);
1683
1683
  }
1684
1684
  ts.patternText = patternText;
1685
1685
  function matchedText(pattern, candidate) {
@@ -1948,7 +1948,7 @@ var ts;
1948
1948
  }
1949
1949
  function fail(message, stackCrawlMark) {
1950
1950
  debugger;
1951
- var e = new Error(message ? "Debug Failure. " + message : "Debug Failure.");
1951
+ var e = new Error(message ? "Debug Failure. ".concat(message) : "Debug Failure.");
1952
1952
  if (Error.captureStackTrace) {
1953
1953
  Error.captureStackTrace(e, stackCrawlMark || fail);
1954
1954
  }
@@ -1956,12 +1956,12 @@ var ts;
1956
1956
  }
1957
1957
  Debug.fail = fail;
1958
1958
  function failBadSyntaxKind(node, message, stackCrawlMark) {
1959
- return fail((message || "Unexpected node.") + "\r\nNode " + formatSyntaxKind(node.kind) + " was unexpected.", stackCrawlMark || failBadSyntaxKind);
1959
+ return fail("".concat(message || "Unexpected node.", "\r\nNode ").concat(formatSyntaxKind(node.kind), " was unexpected."), stackCrawlMark || failBadSyntaxKind);
1960
1960
  }
1961
1961
  Debug.failBadSyntaxKind = failBadSyntaxKind;
1962
1962
  function assert(expression, message, verboseDebugInfo, stackCrawlMark) {
1963
1963
  if (!expression) {
1964
- message = message ? "False expression: " + message : "False expression.";
1964
+ message = message ? "False expression: ".concat(message) : "False expression.";
1965
1965
  if (verboseDebugInfo) {
1966
1966
  message += "\r\nVerbose Debug Information: " + (typeof verboseDebugInfo === "string" ? verboseDebugInfo : verboseDebugInfo());
1967
1967
  }
@@ -1971,26 +1971,26 @@ var ts;
1971
1971
  Debug.assert = assert;
1972
1972
  function assertEqual(a, b, msg, msg2, stackCrawlMark) {
1973
1973
  if (a !== b) {
1974
- var message = msg ? msg2 ? msg + " " + msg2 : msg : "";
1975
- fail("Expected " + a + " === " + b + ". " + message, stackCrawlMark || assertEqual);
1974
+ var message = msg ? msg2 ? "".concat(msg, " ").concat(msg2) : msg : "";
1975
+ fail("Expected ".concat(a, " === ").concat(b, ". ").concat(message), stackCrawlMark || assertEqual);
1976
1976
  }
1977
1977
  }
1978
1978
  Debug.assertEqual = assertEqual;
1979
1979
  function assertLessThan(a, b, msg, stackCrawlMark) {
1980
1980
  if (a >= b) {
1981
- fail("Expected " + a + " < " + b + ". " + (msg || ""), stackCrawlMark || assertLessThan);
1981
+ fail("Expected ".concat(a, " < ").concat(b, ". ").concat(msg || ""), stackCrawlMark || assertLessThan);
1982
1982
  }
1983
1983
  }
1984
1984
  Debug.assertLessThan = assertLessThan;
1985
1985
  function assertLessThanOrEqual(a, b, stackCrawlMark) {
1986
1986
  if (a > b) {
1987
- fail("Expected " + a + " <= " + b, stackCrawlMark || assertLessThanOrEqual);
1987
+ fail("Expected ".concat(a, " <= ").concat(b), stackCrawlMark || assertLessThanOrEqual);
1988
1988
  }
1989
1989
  }
1990
1990
  Debug.assertLessThanOrEqual = assertLessThanOrEqual;
1991
1991
  function assertGreaterThanOrEqual(a, b, stackCrawlMark) {
1992
1992
  if (a < b) {
1993
- fail("Expected " + a + " >= " + b, stackCrawlMark || assertGreaterThanOrEqual);
1993
+ fail("Expected ".concat(a, " >= ").concat(b), stackCrawlMark || assertGreaterThanOrEqual);
1994
1994
  }
1995
1995
  }
1996
1996
  Debug.assertGreaterThanOrEqual = assertGreaterThanOrEqual;
@@ -2022,42 +2022,42 @@ var ts;
2022
2022
  function assertNever(member, message, stackCrawlMark) {
2023
2023
  if (message === void 0) { message = "Illegal value:"; }
2024
2024
  var detail = typeof member === "object" && ts.hasProperty(member, "kind") && ts.hasProperty(member, "pos") && formatSyntaxKind ? "SyntaxKind: " + formatSyntaxKind(member.kind) : JSON.stringify(member);
2025
- return fail(message + " " + detail, stackCrawlMark || assertNever);
2025
+ return fail("".concat(message, " ").concat(detail), stackCrawlMark || assertNever);
2026
2026
  }
2027
2027
  Debug.assertNever = assertNever;
2028
2028
  function assertEachNode(nodes, test, message, stackCrawlMark) {
2029
2029
  if (shouldAssertFunction(1, "assertEachNode")) {
2030
- assert(test === undefined || ts.every(nodes, test), message || "Unexpected node.", function () { return "Node array did not pass test '" + getFunctionName(test) + "'."; }, stackCrawlMark || assertEachNode);
2030
+ assert(test === undefined || ts.every(nodes, test), message || "Unexpected node.", function () { return "Node array did not pass test '".concat(getFunctionName(test), "'."); }, stackCrawlMark || assertEachNode);
2031
2031
  }
2032
2032
  }
2033
2033
  Debug.assertEachNode = assertEachNode;
2034
2034
  function assertNode(node, test, message, stackCrawlMark) {
2035
2035
  if (shouldAssertFunction(1, "assertNode")) {
2036
- 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);
2036
+ 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);
2037
2037
  }
2038
2038
  }
2039
2039
  Debug.assertNode = assertNode;
2040
2040
  function assertNotNode(node, test, message, stackCrawlMark) {
2041
2041
  if (shouldAssertFunction(1, "assertNotNode")) {
2042
- 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);
2042
+ 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);
2043
2043
  }
2044
2044
  }
2045
2045
  Debug.assertNotNode = assertNotNode;
2046
2046
  function assertOptionalNode(node, test, message, stackCrawlMark) {
2047
2047
  if (shouldAssertFunction(1, "assertOptionalNode")) {
2048
- 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);
2048
+ 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);
2049
2049
  }
2050
2050
  }
2051
2051
  Debug.assertOptionalNode = assertOptionalNode;
2052
2052
  function assertOptionalToken(node, kind, message, stackCrawlMark) {
2053
2053
  if (shouldAssertFunction(1, "assertOptionalToken")) {
2054
- 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);
2054
+ 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);
2055
2055
  }
2056
2056
  }
2057
2057
  Debug.assertOptionalToken = assertOptionalToken;
2058
2058
  function assertMissingNode(node, message, stackCrawlMark) {
2059
2059
  if (shouldAssertFunction(1, "assertMissingNode")) {
2060
- assert(node === undefined, message || "Unexpected node.", function () { return "Node " + formatSyntaxKind(node.kind) + " was unexpected'."; }, stackCrawlMark || assertMissingNode);
2060
+ assert(node === undefined, message || "Unexpected node.", function () { return "Node ".concat(formatSyntaxKind(node.kind), " was unexpected'."); }, stackCrawlMark || assertMissingNode);
2061
2061
  }
2062
2062
  }
2063
2063
  Debug.assertMissingNode = assertMissingNode;
@@ -2078,7 +2078,7 @@ var ts;
2078
2078
  }
2079
2079
  Debug.getFunctionName = getFunctionName;
2080
2080
  function formatSymbol(symbol) {
2081
- return "{ name: " + ts.unescapeLeadingUnderscores(symbol.escapedName) + "; flags: " + formatSymbolFlags(symbol.flags) + "; declarations: " + ts.map(symbol.declarations, function (node) { return formatSyntaxKind(node.kind); }) + " }";
2081
+ return "{ name: ".concat(ts.unescapeLeadingUnderscores(symbol.escapedName), "; flags: ").concat(formatSymbolFlags(symbol.flags), "; declarations: ").concat(ts.map(symbol.declarations, function (node) { return formatSyntaxKind(node.kind); }), " }");
2082
2082
  }
2083
2083
  Debug.formatSymbol = formatSymbol;
2084
2084
  function formatEnum(value, enumObject, isFlags) {
@@ -2096,7 +2096,7 @@ var ts;
2096
2096
  break;
2097
2097
  }
2098
2098
  if (enumValue !== 0 && enumValue & value) {
2099
- result = "" + result + (result ? "|" : "") + enumName;
2099
+ result = "".concat(result).concat(result ? "|" : "").concat(enumName);
2100
2100
  remainingFlags &= ~enumValue;
2101
2101
  }
2102
2102
  }
@@ -2205,7 +2205,7 @@ var ts;
2205
2205
  this.flags & 1 ? "FlowUnreachable" :
2206
2206
  "UnknownFlow";
2207
2207
  var remainingFlags = this.flags & ~(2048 - 1);
2208
- return "" + flowHeader + (remainingFlags ? " (" + formatFlowFlags(remainingFlags) + ")" : "");
2208
+ return "".concat(flowHeader).concat(remainingFlags ? " (".concat(formatFlowFlags(remainingFlags), ")") : "");
2209
2209
  }
2210
2210
  },
2211
2211
  __debugFlowFlags: { get: function () { return formatEnum(this.flags, ts.FlowFlags, true); } },
@@ -2235,7 +2235,7 @@ var ts;
2235
2235
  __tsDebuggerDisplay: {
2236
2236
  value: function (defaultValue) {
2237
2237
  defaultValue = String(defaultValue).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/, "]");
2238
- return "NodeArray " + defaultValue;
2238
+ return "NodeArray ".concat(defaultValue);
2239
2239
  }
2240
2240
  }
2241
2241
  });
@@ -2281,7 +2281,7 @@ var ts;
2281
2281
  var symbolHeader = this.flags & 33554432 ? "TransientSymbol" :
2282
2282
  "Symbol";
2283
2283
  var remainingSymbolFlags = this.flags & ~33554432;
2284
- return symbolHeader + " '" + ts.symbolName(this) + "'" + (remainingSymbolFlags ? " (" + formatSymbolFlags(remainingSymbolFlags) + ")" : "");
2284
+ return "".concat(symbolHeader, " '").concat(ts.symbolName(this), "'").concat(remainingSymbolFlags ? " (".concat(formatSymbolFlags(remainingSymbolFlags), ")") : "");
2285
2285
  }
2286
2286
  },
2287
2287
  __debugFlags: { get: function () { return formatSymbolFlags(this.flags); } }
@@ -2290,11 +2290,11 @@ var ts;
2290
2290
  __tsDebuggerDisplay: {
2291
2291
  value: function () {
2292
2292
  var typeHeader = this.flags & 98304 ? "NullableType" :
2293
- this.flags & 384 ? "LiteralType " + JSON.stringify(this.value) :
2294
- this.flags & 2048 ? "LiteralType " + (this.value.negative ? "-" : "") + this.value.base10Value + "n" :
2293
+ this.flags & 384 ? "LiteralType ".concat(JSON.stringify(this.value)) :
2294
+ this.flags & 2048 ? "LiteralType ".concat(this.value.negative ? "-" : "").concat(this.value.base10Value, "n") :
2295
2295
  this.flags & 8192 ? "UniqueESSymbolType" :
2296
2296
  this.flags & 32 ? "EnumType" :
2297
- this.flags & 67359327 ? "IntrinsicType " + this.intrinsicName :
2297
+ this.flags & 67359327 ? "IntrinsicType ".concat(this.intrinsicName) :
2298
2298
  this.flags & 1048576 ? "UnionType" :
2299
2299
  this.flags & 2097152 ? "IntersectionType" :
2300
2300
  this.flags & 4194304 ? "IndexType" :
@@ -2313,7 +2313,7 @@ var ts;
2313
2313
  "ObjectType" :
2314
2314
  "Type";
2315
2315
  var remainingObjectFlags = this.flags & 524288 ? this.objectFlags & ~1343 : 0;
2316
- return "" + typeHeader + (this.symbol ? " '" + ts.symbolName(this.symbol) + "'" : "") + (remainingObjectFlags ? " (" + formatObjectFlags(remainingObjectFlags) + ")" : "");
2316
+ return "".concat(typeHeader).concat(this.symbol ? " '".concat(ts.symbolName(this.symbol), "'") : "").concat(remainingObjectFlags ? " (".concat(formatObjectFlags(remainingObjectFlags), ")") : "");
2317
2317
  }
2318
2318
  },
2319
2319
  __debugFlags: { get: function () { return formatTypeFlags(this.flags); } },
@@ -2347,11 +2347,11 @@ var ts;
2347
2347
  __tsDebuggerDisplay: {
2348
2348
  value: function () {
2349
2349
  var nodeHeader = ts.isGeneratedIdentifier(this) ? "GeneratedIdentifier" :
2350
- ts.isIdentifier(this) ? "Identifier '" + ts.idText(this) + "'" :
2351
- ts.isPrivateIdentifier(this) ? "PrivateIdentifier '" + ts.idText(this) + "'" :
2352
- ts.isStringLiteral(this) ? "StringLiteral " + JSON.stringify(this.text.length < 10 ? this.text : this.text.slice(10) + "...") :
2353
- ts.isNumericLiteral(this) ? "NumericLiteral " + this.text :
2354
- ts.isBigIntLiteral(this) ? "BigIntLiteral " + this.text + "n" :
2350
+ ts.isIdentifier(this) ? "Identifier '".concat(ts.idText(this), "'") :
2351
+ ts.isPrivateIdentifier(this) ? "PrivateIdentifier '".concat(ts.idText(this), "'") :
2352
+ ts.isStringLiteral(this) ? "StringLiteral ".concat(JSON.stringify(this.text.length < 10 ? this.text : this.text.slice(10) + "...")) :
2353
+ ts.isNumericLiteral(this) ? "NumericLiteral ".concat(this.text) :
2354
+ ts.isBigIntLiteral(this) ? "BigIntLiteral ".concat(this.text, "n") :
2355
2355
  ts.isTypeParameterDeclaration(this) ? "TypeParameterDeclaration" :
2356
2356
  ts.isParameter(this) ? "ParameterDeclaration" :
2357
2357
  ts.isConstructorDeclaration(this) ? "ConstructorDeclaration" :
@@ -2383,7 +2383,7 @@ var ts;
2383
2383
  ts.isNamedTupleMember(this) ? "NamedTupleMember" :
2384
2384
  ts.isImportTypeNode(this) ? "ImportTypeNode" :
2385
2385
  formatSyntaxKind(this.kind);
2386
- return "" + nodeHeader + (this.flags ? " (" + formatNodeFlags(this.flags) + ")" : "");
2386
+ return "".concat(nodeHeader).concat(this.flags ? " (".concat(formatNodeFlags(this.flags), ")") : "");
2387
2387
  }
2388
2388
  },
2389
2389
  __debugKind: { get: function () { return formatSyntaxKind(this.kind); } },
@@ -2427,10 +2427,10 @@ var ts;
2427
2427
  Debug.enableDebugInfo = enableDebugInfo;
2428
2428
  function formatDeprecationMessage(name, error, errorAfter, since, message) {
2429
2429
  var deprecationMessage = error ? "DeprecationError: " : "DeprecationWarning: ";
2430
- deprecationMessage += "'" + name + "' ";
2431
- deprecationMessage += since ? "has been deprecated since v" + since : "is deprecated";
2432
- deprecationMessage += error ? " and can no longer be used." : errorAfter ? " and will no longer be usable after v" + errorAfter + "." : ".";
2433
- deprecationMessage += message ? " " + ts.formatStringFromArgs(message, [name], 0) : "";
2430
+ deprecationMessage += "'".concat(name, "' ");
2431
+ deprecationMessage += since ? "has been deprecated since v".concat(since) : "is deprecated";
2432
+ deprecationMessage += error ? " and can no longer be used." : errorAfter ? " and will no longer be usable after v".concat(errorAfter, ".") : ".";
2433
+ deprecationMessage += message ? " ".concat(ts.formatStringFromArgs(message, [name], 0)) : "";
2434
2434
  return deprecationMessage;
2435
2435
  }
2436
2436
  function createErrorDeprecation(name, errorAfter, since, message) {
@@ -2527,11 +2527,11 @@ var ts;
2527
2527
  }
2528
2528
  };
2529
2529
  Version.prototype.toString = function () {
2530
- var result = this.major + "." + this.minor + "." + this.patch;
2530
+ var result = "".concat(this.major, ".").concat(this.minor, ".").concat(this.patch);
2531
2531
  if (ts.some(this.prerelease))
2532
- result += "-" + this.prerelease.join(".");
2532
+ result += "-".concat(this.prerelease.join("."));
2533
2533
  if (ts.some(this.build))
2534
- result += "+" + this.build.join(".");
2534
+ result += "+".concat(this.build.join("."));
2535
2535
  return result;
2536
2536
  };
2537
2537
  Version.zero = new Version(0, 0, 0);
@@ -2753,7 +2753,7 @@ var ts;
2753
2753
  return ts.map(comparators, formatComparator).join(" ");
2754
2754
  }
2755
2755
  function formatComparator(comparator) {
2756
- return "" + comparator.operator + comparator.operand;
2756
+ return "".concat(comparator.operator).concat(comparator.operand);
2757
2757
  }
2758
2758
  })(ts || (ts = {}));
2759
2759
  var ts;
@@ -2982,7 +2982,7 @@ var ts;
2982
2982
  fs = require("fs");
2983
2983
  }
2984
2984
  catch (e) {
2985
- throw new Error("tracing requires having fs\n(original error: " + (e.message || e) + ")");
2985
+ throw new Error("tracing requires having fs\n(original error: ".concat(e.message || e, ")"));
2986
2986
  }
2987
2987
  }
2988
2988
  mode = tracingMode;
@@ -2993,11 +2993,11 @@ var ts;
2993
2993
  if (!fs.existsSync(traceDir)) {
2994
2994
  fs.mkdirSync(traceDir, { recursive: true });
2995
2995
  }
2996
- var countPart = mode === "build" ? "." + process.pid + "-" + ++traceCount
2997
- : mode === "server" ? "." + process.pid
2996
+ var countPart = mode === "build" ? ".".concat(process.pid, "-").concat(++traceCount)
2997
+ : mode === "server" ? ".".concat(process.pid)
2998
2998
  : "";
2999
- var tracePath = ts.combinePaths(traceDir, "trace" + countPart + ".json");
3000
- var typesPath = ts.combinePaths(traceDir, "types" + countPart + ".json");
2999
+ var tracePath = ts.combinePaths(traceDir, "trace".concat(countPart, ".json"));
3000
+ var typesPath = ts.combinePaths(traceDir, "types".concat(countPart, ".json"));
3001
3001
  legend.push({
3002
3002
  configFilePath: configFilePath,
3003
3003
  tracePath: tracePath,
@@ -3065,7 +3065,7 @@ var ts;
3065
3065
  writeEvent("E", phase, name, args, undefined, endTime);
3066
3066
  }
3067
3067
  else if (sampleInterval - (time % sampleInterval) <= endTime - time) {
3068
- writeEvent("X", phase, name, args, "\"dur\":" + (endTime - time), time);
3068
+ writeEvent("X", phase, name, args, "\"dur\":".concat(endTime - time), time);
3069
3069
  }
3070
3070
  }
3071
3071
  function writeEvent(eventType, phase, name, args, extras, time) {
@@ -3073,11 +3073,11 @@ var ts;
3073
3073
  if (mode === "server" && phase === "checkTypes")
3074
3074
  return;
3075
3075
  ts.performance.mark("beginTracing");
3076
- fs.writeSync(traceFd, ",\n{\"pid\":1,\"tid\":1,\"ph\":\"" + eventType + "\",\"cat\":\"" + phase + "\",\"ts\":" + time + ",\"name\":\"" + name + "\"");
3076
+ fs.writeSync(traceFd, ",\n{\"pid\":1,\"tid\":1,\"ph\":\"".concat(eventType, "\",\"cat\":\"").concat(phase, "\",\"ts\":").concat(time, ",\"name\":\"").concat(name, "\""));
3077
3077
  if (extras)
3078
- fs.writeSync(traceFd, "," + extras);
3078
+ fs.writeSync(traceFd, ",".concat(extras));
3079
3079
  if (args)
3080
- fs.writeSync(traceFd, ",\"args\":" + JSON.stringify(args));
3080
+ fs.writeSync(traceFd, ",\"args\":".concat(JSON.stringify(args)));
3081
3081
  fs.writeSync(traceFd, "}");
3082
3082
  ts.performance.mark("endTracing");
3083
3083
  ts.performance.measure("Tracing", "beginTracing", "endTracing");
@@ -3882,7 +3882,7 @@ var ts;
3882
3882
  pollingChunkSize = getCustomPollingBasedLevels("TSC_WATCH_POLLINGCHUNKSIZE", defaultChunkLevels) || pollingChunkSize;
3883
3883
  ts.unchangedPollThresholds = getCustomPollingBasedLevels("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS", defaultChunkLevels) || ts.unchangedPollThresholds;
3884
3884
  function getLevel(envVar, level) {
3885
- return system.getEnvironmentVariable(envVar + "_" + level.toUpperCase());
3885
+ return system.getEnvironmentVariable("".concat(envVar, "_").concat(level.toUpperCase()));
3886
3886
  }
3887
3887
  function getCustomLevels(baseVariable) {
3888
3888
  var customLevels;
@@ -4302,7 +4302,7 @@ var ts;
4302
4302
  }
4303
4303
  function onTimerToUpdateChildWatches() {
4304
4304
  timerToUpdateChildWatches = undefined;
4305
- ts.sysLog("sysLog:: onTimerToUpdateChildWatches:: " + cacheToUpdateChildWatches.size);
4305
+ ts.sysLog("sysLog:: onTimerToUpdateChildWatches:: ".concat(cacheToUpdateChildWatches.size));
4306
4306
  var start = ts.timestamp();
4307
4307
  var invokeMap = new ts.Map();
4308
4308
  while (!timerToUpdateChildWatches && cacheToUpdateChildWatches.size) {
@@ -4313,7 +4313,7 @@ var ts;
4313
4313
  var hasChanges = updateChildWatches(dirName, dirPath, options);
4314
4314
  invokeCallbacks(dirPath, invokeMap, hasChanges ? undefined : fileNames);
4315
4315
  }
4316
- ts.sysLog("sysLog:: invokingWatchers:: Elapsed:: " + (ts.timestamp() - start) + "ms:: " + cacheToUpdateChildWatches.size);
4316
+ ts.sysLog("sysLog:: invokingWatchers:: Elapsed:: ".concat(ts.timestamp() - start, "ms:: ").concat(cacheToUpdateChildWatches.size));
4317
4317
  callbackCache.forEach(function (callbacks, rootDirName) {
4318
4318
  var existing = invokeMap.get(rootDirName);
4319
4319
  if (existing) {
@@ -4329,7 +4329,7 @@ var ts;
4329
4329
  }
4330
4330
  });
4331
4331
  var elapsed = ts.timestamp() - start;
4332
- ts.sysLog("sysLog:: Elapsed:: " + elapsed + "ms:: onTimerToUpdateChildWatches:: " + cacheToUpdateChildWatches.size + " " + timerToUpdateChildWatches);
4332
+ ts.sysLog("sysLog:: Elapsed:: ".concat(elapsed, "ms:: onTimerToUpdateChildWatches:: ").concat(cacheToUpdateChildWatches.size, " ").concat(timerToUpdateChildWatches));
4333
4333
  }
4334
4334
  function removeChildWatches(parentWatcher) {
4335
4335
  if (!parentWatcher)
@@ -4721,7 +4721,7 @@ var ts;
4721
4721
  var externalFileCounter = 0;
4722
4722
  var remappedPaths = new ts.Map();
4723
4723
  var normalizedDir = ts.normalizeSlashes(__dirname);
4724
- var fileUrlRoot = "file://" + (ts.getRootLength(normalizedDir) === 1 ? "" : "/") + normalizedDir;
4724
+ var fileUrlRoot = "file://".concat(ts.getRootLength(normalizedDir) === 1 ? "" : "/").concat(normalizedDir);
4725
4725
  for (var _i = 0, _a = profile.nodes; _i < _a.length; _i++) {
4726
4726
  var node = _a[_i];
4727
4727
  if (node.callFrame.url) {
@@ -4730,7 +4730,7 @@ var ts;
4730
4730
  node.callFrame.url = ts.getRelativePathToDirectoryOrUrl(fileUrlRoot, url, fileUrlRoot, ts.createGetCanonicalFileName(useCaseSensitiveFileNames), true);
4731
4731
  }
4732
4732
  else if (!nativePattern.test(url)) {
4733
- node.callFrame.url = (remappedPaths.has(url) ? remappedPaths : remappedPaths.set(url, "external" + externalFileCounter + ".js")).get(url);
4733
+ node.callFrame.url = (remappedPaths.has(url) ? remappedPaths : remappedPaths.set(url, "external".concat(externalFileCounter, ".js"))).get(url);
4734
4734
  externalFileCounter++;
4735
4735
  }
4736
4736
  }
@@ -4746,7 +4746,7 @@ var ts;
4746
4746
  if (!err) {
4747
4747
  try {
4748
4748
  if ((_b = statSync(profilePath)) === null || _b === void 0 ? void 0 : _b.isDirectory()) {
4749
- profilePath = _path.join(profilePath, (new Date()).toISOString().replace(/:/g, "-") + "+P" + process.pid + ".cpuprofile");
4749
+ profilePath = _path.join(profilePath, "".concat((new Date()).toISOString().replace(/:/g, "-"), "+P").concat(process.pid, ".cpuprofile"));
4750
4750
  }
4751
4751
  }
4752
4752
  catch (_c) {
@@ -4831,7 +4831,7 @@ var ts;
4831
4831
  }
4832
4832
  };
4833
4833
  function invokeCallbackAndUpdateWatcher(createWatcher) {
4834
- ts.sysLog("sysLog:: " + fileOrDirectory + ":: Changing watcher to " + (createWatcher === watchPresentFileSystemEntry ? "Present" : "Missing") + "FileSystemEntryWatcher");
4834
+ ts.sysLog("sysLog:: ".concat(fileOrDirectory, ":: Changing watcher to ").concat(createWatcher === watchPresentFileSystemEntry ? "Present" : "Missing", "FileSystemEntryWatcher"));
4835
4835
  callback("rename", "");
4836
4836
  if (watcher) {
4837
4837
  watcher.close();
@@ -4848,7 +4848,7 @@ var ts;
4848
4848
  }
4849
4849
  }
4850
4850
  if (hitSystemWatcherLimit) {
4851
- ts.sysLog("sysLog:: " + fileOrDirectory + ":: Defaulting to fsWatchFile");
4851
+ ts.sysLog("sysLog:: ".concat(fileOrDirectory, ":: Defaulting to fsWatchFile"));
4852
4852
  return watchPresentFileSystemEntryWithFsWatchFile();
4853
4853
  }
4854
4854
  try {
@@ -4860,7 +4860,7 @@ var ts;
4860
4860
  }
4861
4861
  catch (e) {
4862
4862
  hitSystemWatcherLimit || (hitSystemWatcherLimit = e.code === "ENOSPC");
4863
- ts.sysLog("sysLog:: " + fileOrDirectory + ":: Changing to fsWatchFile");
4863
+ ts.sysLog("sysLog:: ".concat(fileOrDirectory, ":: Changing to fsWatchFile"));
4864
4864
  return watchPresentFileSystemEntryWithFsWatchFile();
4865
4865
  }
4866
4866
  }
@@ -4976,7 +4976,7 @@ var ts;
4976
4976
  }
4977
4977
  }
4978
4978
  function readDirectory(path, extensions, excludes, includes, depth) {
4979
- return ts.matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, process.cwd(), depth, getAccessibleFileSystemEntries, realpath, directoryExists);
4979
+ return ts.matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, process.cwd(), depth, getAccessibleFileSystemEntries, realpath);
4980
4980
  }
4981
4981
  function fileSystemEntryExists(path, entryKind) {
4982
4982
  var originalStackTraceLimit = Error.stackTraceLimit;
@@ -7066,7 +7066,7 @@ var ts;
7066
7066
  line = line < 0 ? 0 : line >= lineStarts.length ? lineStarts.length - 1 : line;
7067
7067
  }
7068
7068
  else {
7069
- ts.Debug.fail("Bad line number. Line: " + line + ", lineStarts.length: " + lineStarts.length + " , line map is correct? " + (debugText !== undefined ? ts.arraysEqual(lineStarts, computeLineStarts(debugText)) : "unknown"));
7069
+ 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"));
7070
7070
  }
7071
7071
  }
7072
7072
  var res = lineStarts[line] + character;
@@ -9570,7 +9570,7 @@ var ts;
9570
9570
  function getTextOfJSDocComment(comment) {
9571
9571
  return typeof comment === "string" ? comment
9572
9572
  : comment === null || comment === void 0 ? void 0 : comment.map(function (c) {
9573
- return c.kind === 319 ? c.text : "{@link " + (c.name ? ts.entityNameToString(c.name) + " " : "") + c.text + "}";
9573
+ return c.kind === 319 ? c.text : "{@link ".concat(c.name ? ts.entityNameToString(c.name) + " " : "").concat(c.text, "}");
9574
9574
  }).join("");
9575
9575
  }
9576
9576
  ts.getTextOfJSDocComment = getTextOfJSDocComment;
@@ -10670,8 +10670,8 @@ var ts;
10670
10670
  }
10671
10671
  function packageIdToString(_a) {
10672
10672
  var name = _a.name, subModuleName = _a.subModuleName, version = _a.version;
10673
- var fullName = subModuleName ? name + "/" + subModuleName : name;
10674
- return fullName + "@" + version;
10673
+ var fullName = subModuleName ? "".concat(name, "/").concat(subModuleName) : name;
10674
+ return "".concat(fullName, "@").concat(version);
10675
10675
  }
10676
10676
  ts.packageIdToString = packageIdToString;
10677
10677
  function typeDirectiveIsEqualTo(oldResolution, newResolution) {
@@ -10741,7 +10741,7 @@ var ts;
10741
10741
  function nodePosToString(node) {
10742
10742
  var file = getSourceFileOfNode(node);
10743
10743
  var loc = ts.getLineAndCharacterOfPosition(file, node.pos);
10744
- return file.fileName + "(" + (loc.line + 1) + "," + (loc.character + 1) + ")";
10744
+ return "".concat(file.fileName, "(").concat(loc.line + 1, ",").concat(loc.character + 1, ")");
10745
10745
  }
10746
10746
  ts.nodePosToString = nodePosToString;
10747
10747
  function getEndLinePosition(line, sourceFile) {
@@ -10842,7 +10842,7 @@ var ts;
10842
10842
  ts.isPinnedComment = isPinnedComment;
10843
10843
  function createCommentDirectivesMap(sourceFile, commentDirectives) {
10844
10844
  var directivesByLine = new ts.Map(commentDirectives.map(function (commentDirective) { return ([
10845
- "" + ts.getLineAndCharacterOfPosition(sourceFile, commentDirective.range.end).line,
10845
+ "".concat(ts.getLineAndCharacterOfPosition(sourceFile, commentDirective.range.end).line),
10846
10846
  commentDirective,
10847
10847
  ]); }));
10848
10848
  var usedLines = new ts.Map();
@@ -10859,10 +10859,10 @@ var ts;
10859
10859
  });
10860
10860
  }
10861
10861
  function markUsed(line) {
10862
- if (!directivesByLine.has("" + line)) {
10862
+ if (!directivesByLine.has("".concat(line))) {
10863
10863
  return false;
10864
10864
  }
10865
- usedLines.set("" + line, true);
10865
+ usedLines.set("".concat(line), true);
10866
10866
  return true;
10867
10867
  }
10868
10868
  }
@@ -11046,7 +11046,7 @@ var ts;
11046
11046
  }
11047
11047
  return node.text;
11048
11048
  }
11049
- return ts.Debug.fail("Literal kind '" + node.kind + "' not accounted for.");
11049
+ return ts.Debug.fail("Literal kind '".concat(node.kind, "' not accounted for."));
11050
11050
  }
11051
11051
  ts.getLiteralText = getLiteralText;
11052
11052
  function canUseOriginalText(node, flags) {
@@ -13340,11 +13340,11 @@ var ts;
13340
13340
  }
13341
13341
  ts.getEscapedTextOfIdentifierOrLiteral = getEscapedTextOfIdentifierOrLiteral;
13342
13342
  function getPropertyNameForUniqueESSymbol(symbol) {
13343
- return "__@" + ts.getSymbolId(symbol) + "@" + symbol.escapedName;
13343
+ return "__@".concat(ts.getSymbolId(symbol), "@").concat(symbol.escapedName);
13344
13344
  }
13345
13345
  ts.getPropertyNameForUniqueESSymbol = getPropertyNameForUniqueESSymbol;
13346
13346
  function getSymbolNameForPrivateIdentifier(containingClassSymbol, description) {
13347
- return "__#" + ts.getSymbolId(containingClassSymbol) + "@" + description;
13347
+ return "__#".concat(ts.getSymbolId(containingClassSymbol), "@").concat(description);
13348
13348
  }
13349
13349
  ts.getSymbolNameForPrivateIdentifier = getSymbolNameForPrivateIdentifier;
13350
13350
  function isKnownSymbol(symbol) {
@@ -15634,7 +15634,7 @@ var ts;
15634
15634
  }
15635
15635
  ts.getJSXImplicitImportBase = getJSXImplicitImportBase;
15636
15636
  function getJSXRuntimeImport(base, options) {
15637
- return base ? base + "/" + (options.jsx === 5 ? "jsx-dev-runtime" : "jsx-runtime") : undefined;
15637
+ return base ? "".concat(base, "/").concat(options.jsx === 5 ? "jsx-dev-runtime" : "jsx-runtime") : undefined;
15638
15638
  }
15639
15639
  ts.getJSXRuntimeImport = getJSXRuntimeImport;
15640
15640
  function hasZeroOrOneAsteriskCharacter(str) {
@@ -15742,15 +15742,15 @@ var ts;
15742
15742
  }
15743
15743
  var wildcardCharCodes = [42, 63];
15744
15744
  ts.commonPackageFolders = ["node_modules", "bower_components", "jspm_packages"];
15745
- var implicitExcludePathRegexPattern = "(?!(" + ts.commonPackageFolders.join("|") + ")(/|$))";
15745
+ var implicitExcludePathRegexPattern = "(?!(".concat(ts.commonPackageFolders.join("|"), ")(/|$))");
15746
15746
  var filesMatcher = {
15747
15747
  singleAsteriskRegexFragment: "([^./]|(\\.(?!min\\.js$))?)*",
15748
- doubleAsteriskRegexFragment: "(/" + implicitExcludePathRegexPattern + "[^/.][^/]*)*?",
15748
+ doubleAsteriskRegexFragment: "(/".concat(implicitExcludePathRegexPattern, "[^/.][^/]*)*?"),
15749
15749
  replaceWildcardCharacter: function (match) { return replaceWildcardCharacter(match, filesMatcher.singleAsteriskRegexFragment); }
15750
15750
  };
15751
15751
  var directoriesMatcher = {
15752
15752
  singleAsteriskRegexFragment: "[^/]*",
15753
- doubleAsteriskRegexFragment: "(/" + implicitExcludePathRegexPattern + "[^/.][^/]*)*?",
15753
+ doubleAsteriskRegexFragment: "(/".concat(implicitExcludePathRegexPattern, "[^/.][^/]*)*?"),
15754
15754
  replaceWildcardCharacter: function (match) { return replaceWildcardCharacter(match, directoriesMatcher.singleAsteriskRegexFragment); }
15755
15755
  };
15756
15756
  var excludeMatcher = {
@@ -15768,9 +15768,9 @@ var ts;
15768
15768
  if (!patterns || !patterns.length) {
15769
15769
  return undefined;
15770
15770
  }
15771
- var pattern = patterns.map(function (pattern) { return "(" + pattern + ")"; }).join("|");
15771
+ var pattern = patterns.map(function (pattern) { return "(".concat(pattern, ")"); }).join("|");
15772
15772
  var terminator = usage === "exclude" ? "($|/)" : "$";
15773
- return "^(" + pattern + ")" + terminator;
15773
+ return "^(".concat(pattern, ")").concat(terminator);
15774
15774
  }
15775
15775
  ts.getRegularExpressionForWildcard = getRegularExpressionForWildcard;
15776
15776
  function getRegularExpressionsForWildcards(specs, basePath, usage) {
@@ -15788,7 +15788,7 @@ var ts;
15788
15788
  ts.isImplicitGlob = isImplicitGlob;
15789
15789
  function getPatternFromSpec(spec, basePath, usage) {
15790
15790
  var pattern = spec && getSubPatternFromSpec(spec, basePath, usage, wildcardMatchers[usage]);
15791
- return pattern && "^(" + pattern + ")" + (usage === "exclude" ? "($|/)" : "$");
15791
+ return pattern && "^(".concat(pattern, ")").concat(usage === "exclude" ? "($|/)" : "$");
15792
15792
  }
15793
15793
  ts.getPatternFromSpec = getPatternFromSpec;
15794
15794
  function getSubPatternFromSpec(spec, basePath, usage, _a) {
@@ -15854,11 +15854,11 @@ var ts;
15854
15854
  currentDirectory = ts.normalizePath(currentDirectory);
15855
15855
  var absolutePath = ts.combinePaths(currentDirectory, path);
15856
15856
  return {
15857
- includeFilePatterns: ts.map(getRegularExpressionsForWildcards(includes, absolutePath, "files"), function (pattern) { return "^" + pattern + "$"; }),
15857
+ includeFilePatterns: ts.map(getRegularExpressionsForWildcards(includes, absolutePath, "files"), function (pattern) { return "^".concat(pattern, "$"); }),
15858
15858
  includeFilePattern: getRegularExpressionForWildcard(includes, absolutePath, "files"),
15859
15859
  includeDirectoryPattern: getRegularExpressionForWildcard(includes, absolutePath, "directories"),
15860
15860
  excludePattern: getRegularExpressionForWildcard(excludes, absolutePath, "exclude"),
15861
- basePaths: getBasePaths(absolutePath, includes, useCaseSensitiveFileNames)
15861
+ basePaths: getBasePaths(path, includes, useCaseSensitiveFileNames)
15862
15862
  };
15863
15863
  }
15864
15864
  ts.getFileMatcherPatterns = getFileMatcherPatterns;
@@ -15866,7 +15866,7 @@ var ts;
15866
15866
  return new RegExp(pattern, useCaseSensitiveFileNames ? "" : "i");
15867
15867
  }
15868
15868
  ts.getRegexFromPattern = getRegexFromPattern;
15869
- function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath, directoryExists) {
15869
+ function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath) {
15870
15870
  path = ts.normalizePath(path);
15871
15871
  currentDirectory = ts.normalizePath(currentDirectory);
15872
15872
  var patterns = getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames, currentDirectory);
@@ -15877,20 +15877,18 @@ var ts;
15877
15877
  var visited = new ts.Map();
15878
15878
  var toCanonical = ts.createGetCanonicalFileName(useCaseSensitiveFileNames);
15879
15879
  for (var _i = 0, _a = patterns.basePaths; _i < _a.length; _i++) {
15880
- var absoluteBasePath = _a[_i];
15881
- if (directoryExists(absoluteBasePath)) {
15882
- visitDirectory(absoluteBasePath, depth);
15883
- }
15880
+ var basePath = _a[_i];
15881
+ visitDirectory(basePath, ts.combinePaths(currentDirectory, basePath), depth);
15884
15882
  }
15885
15883
  return ts.flatten(results);
15886
- function visitDirectory(absolutePath, depth) {
15884
+ function visitDirectory(path, absolutePath, depth) {
15887
15885
  var canonicalPath = toCanonical(realpath(absolutePath));
15888
15886
  if (visited.has(canonicalPath))
15889
15887
  return;
15890
15888
  visited.set(canonicalPath, true);
15891
- var _a = getFileSystemEntries(absolutePath), files = _a.files, directories = _a.directories;
15889
+ var _a = getFileSystemEntries(path), files = _a.files, directories = _a.directories;
15892
15890
  var _loop_1 = function (current) {
15893
- var name = ts.combinePaths(absolutePath, current);
15891
+ var name = ts.combinePaths(path, current);
15894
15892
  var absoluteName = ts.combinePaths(absolutePath, current);
15895
15893
  if (extensions && !ts.fileExtensionIsOneOf(name, extensions))
15896
15894
  return "continue";
@@ -15918,27 +15916,28 @@ var ts;
15918
15916
  }
15919
15917
  for (var _c = 0, _d = ts.sort(directories, ts.compareStringsCaseSensitive); _c < _d.length; _c++) {
15920
15918
  var current = _d[_c];
15919
+ var name = ts.combinePaths(path, current);
15921
15920
  var absoluteName = ts.combinePaths(absolutePath, current);
15922
15921
  if ((!includeDirectoryRegex || includeDirectoryRegex.test(absoluteName)) &&
15923
15922
  (!excludeRegex || !excludeRegex.test(absoluteName))) {
15924
- visitDirectory(absoluteName, depth);
15923
+ visitDirectory(name, absoluteName, depth);
15925
15924
  }
15926
15925
  }
15927
15926
  }
15928
15927
  }
15929
15928
  ts.matchFiles = matchFiles;
15930
- function getBasePaths(absoluteTsconfigPath, includes, useCaseSensitiveFileNames) {
15931
- var basePaths = [absoluteTsconfigPath];
15929
+ function getBasePaths(path, includes, useCaseSensitiveFileNames) {
15930
+ var basePaths = [path];
15932
15931
  if (includes) {
15933
15932
  var includeBasePaths = [];
15934
15933
  for (var _i = 0, includes_1 = includes; _i < includes_1.length; _i++) {
15935
15934
  var include = includes_1[_i];
15936
- var absoluteIncludePath = ts.isRootedDiskPath(include) ? include : ts.normalizePath(ts.combinePaths(absoluteTsconfigPath, include));
15937
- includeBasePaths.push(getIncludeBasePath(absoluteIncludePath));
15935
+ var absolute = ts.isRootedDiskPath(include) ? include : ts.normalizePath(ts.combinePaths(path, include));
15936
+ includeBasePaths.push(getIncludeBasePath(absolute));
15938
15937
  }
15939
15938
  includeBasePaths.sort(ts.getStringComparer(!useCaseSensitiveFileNames));
15940
15939
  var _loop_2 = function (includeBasePath) {
15941
- if (ts.every(basePaths, function (basePath) { return !ts.containsPath(basePath, includeBasePath, absoluteTsconfigPath, !useCaseSensitiveFileNames); })) {
15940
+ if (ts.every(basePaths, function (basePath) { return !ts.containsPath(basePath, includeBasePath, path, !useCaseSensitiveFileNames); })) {
15942
15941
  basePaths.push(includeBasePath);
15943
15942
  }
15944
15943
  };
@@ -16100,7 +16099,7 @@ var ts;
16100
16099
  ts.resolutionExtensionIsTSOrJson = resolutionExtensionIsTSOrJson;
16101
16100
  function extensionFromPath(path) {
16102
16101
  var ext = tryGetExtensionFromPath(path);
16103
- return ext !== undefined ? ext : ts.Debug.fail("File " + path + " has unknown extension.");
16102
+ return ext !== undefined ? ext : ts.Debug.fail("File ".concat(path, " has unknown extension."));
16104
16103
  }
16105
16104
  ts.extensionFromPath = extensionFromPath;
16106
16105
  function isAnySupportedFileExtension(path) {
@@ -21110,7 +21109,7 @@ var ts;
21110
21109
  case 326: return "augments";
21111
21110
  case 327: return "implements";
21112
21111
  default:
21113
- return ts.Debug.fail("Unsupported kind: " + ts.Debug.formatSyntaxKind(kind));
21112
+ return ts.Debug.fail("Unsupported kind: ".concat(ts.Debug.formatSyntaxKind(kind)));
21114
21113
  }
21115
21114
  }
21116
21115
  var rawTextScanner;
@@ -21429,7 +21428,7 @@ var ts;
21429
21428
  };
21430
21429
  var definedTextGetter_1 = function (path) {
21431
21430
  var result = textGetter_1(path);
21432
- return result !== undefined ? result : "/* Input file " + path + " was missing */\r\n";
21431
+ return result !== undefined ? result : "/* Input file ".concat(path, " was missing */\r\n");
21433
21432
  };
21434
21433
  var buildInfo_1;
21435
21434
  var getAndCacheBuildInfo_1 = function (getText) {
@@ -25091,7 +25090,7 @@ var ts;
25091
25090
  for (var _i = 0, viableKeywordSuggestions_1 = viableKeywordSuggestions; _i < viableKeywordSuggestions_1.length; _i++) {
25092
25091
  var keyword = viableKeywordSuggestions_1[_i];
25093
25092
  if (expressionText.length > keyword.length + 2 && ts.startsWith(expressionText, keyword)) {
25094
- return keyword + " " + expressionText.slice(keyword.length);
25093
+ return "".concat(keyword, " ").concat(expressionText.slice(keyword.length));
25095
25094
  }
25096
25095
  }
25097
25096
  return undefined;
@@ -30595,7 +30594,7 @@ var ts;
30595
30594
  if (namedArgRegExCache.has(name)) {
30596
30595
  return namedArgRegExCache.get(name);
30597
30596
  }
30598
- var result = new RegExp("(\\s" + name + "\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))", "im");
30597
+ var result = new RegExp("(\\s".concat(name, "\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))"), "im");
30599
30598
  namedArgRegExCache.set(name, result);
30600
30599
  return result;
30601
30600
  }
@@ -31989,8 +31988,8 @@ var ts;
31989
31988
  }
31990
31989
  ts.createCompilerDiagnosticForInvalidCustomType = createCompilerDiagnosticForInvalidCustomType;
31991
31990
  function createDiagnosticForInvalidCustomType(opt, createDiagnostic) {
31992
- var namesOfType = ts.arrayFrom(opt.type.keys()).map(function (key) { return "'" + key + "'"; }).join(", ");
31993
- return createDiagnostic(ts.Diagnostics.Argument_for_0_option_must_be_Colon_1, "--" + opt.name, namesOfType);
31991
+ var namesOfType = ts.arrayFrom(opt.type.keys()).map(function (key) { return "'".concat(key, "'"); }).join(", ");
31992
+ return createDiagnostic(ts.Diagnostics.Argument_for_0_option_must_be_Colon_1, "--".concat(opt.name), namesOfType);
31994
31993
  }
31995
31994
  function parseCustomTypeOption(opt, value, errors) {
31996
31995
  return convertJsonOptionOfCustomType(opt, ts.trimString(value || ""), errors);
@@ -32707,10 +32706,10 @@ var ts;
32707
32706
  var newValue = compilerOptionsMap.get(cmd.name);
32708
32707
  var defaultValue = getDefaultValueForOption(cmd);
32709
32708
  if (newValue !== defaultValue) {
32710
- result.push("" + tab + cmd.name + ": " + newValue);
32709
+ result.push("".concat(tab).concat(cmd.name, ": ").concat(newValue));
32711
32710
  }
32712
32711
  else if (ts.hasProperty(ts.defaultInitCompilerOptions, cmd.name)) {
32713
- result.push("" + tab + cmd.name + ": " + defaultValue);
32712
+ result.push("".concat(tab).concat(cmd.name, ": ").concat(defaultValue));
32714
32713
  }
32715
32714
  });
32716
32715
  return result.join(newLine) + newLine;
@@ -32748,19 +32747,19 @@ var ts;
32748
32747
  if (entries.length !== 0) {
32749
32748
  entries.push({ value: "" });
32750
32749
  }
32751
- entries.push({ value: "/* " + category + " */" });
32750
+ entries.push({ value: "/* ".concat(category, " */") });
32752
32751
  for (var _i = 0, options_1 = options; _i < options_1.length; _i++) {
32753
32752
  var option = options_1[_i];
32754
32753
  var optionName = void 0;
32755
32754
  if (compilerOptionsMap.has(option.name)) {
32756
- optionName = "\"" + option.name + "\": " + JSON.stringify(compilerOptionsMap.get(option.name)) + ((seenKnownKeys += 1) === compilerOptionsMap.size ? "" : ",");
32755
+ optionName = "\"".concat(option.name, "\": ").concat(JSON.stringify(compilerOptionsMap.get(option.name))).concat((seenKnownKeys += 1) === compilerOptionsMap.size ? "" : ",");
32757
32756
  }
32758
32757
  else {
32759
- optionName = "// \"" + option.name + "\": " + JSON.stringify(getDefaultValueForOption(option)) + ",";
32758
+ optionName = "// \"".concat(option.name, "\": ").concat(JSON.stringify(getDefaultValueForOption(option)), ",");
32760
32759
  }
32761
32760
  entries.push({
32762
32761
  value: optionName,
32763
- description: "/* " + (option.description && ts.getLocaleSpecificMessage(option.description) || option.name) + " */"
32762
+ description: "/* ".concat(option.description && ts.getLocaleSpecificMessage(option.description) || option.name, " */")
32764
32763
  });
32765
32764
  marginLength = Math.max(optionName.length, marginLength);
32766
32765
  }
@@ -32768,24 +32767,24 @@ var ts;
32768
32767
  var tab = makePadding(2);
32769
32768
  var result = [];
32770
32769
  result.push("{");
32771
- result.push(tab + "\"compilerOptions\": {");
32772
- result.push("" + tab + tab + "/* " + ts.getLocaleSpecificMessage(ts.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file) + " */");
32770
+ result.push("".concat(tab, "\"compilerOptions\": {"));
32771
+ result.push("".concat(tab).concat(tab, "/* ").concat(ts.getLocaleSpecificMessage(ts.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file), " */"));
32773
32772
  result.push("");
32774
32773
  for (var _a = 0, entries_2 = entries; _a < entries_2.length; _a++) {
32775
32774
  var entry = entries_2[_a];
32776
32775
  var value = entry.value, _b = entry.description, description = _b === void 0 ? "" : _b;
32777
- result.push(value && "" + tab + tab + value + (description && (makePadding(marginLength - value.length + 2) + description)));
32776
+ result.push(value && "".concat(tab).concat(tab).concat(value).concat(description && (makePadding(marginLength - value.length + 2) + description)));
32778
32777
  }
32779
32778
  if (fileNames.length) {
32780
- result.push(tab + "},");
32781
- result.push(tab + "\"files\": [");
32779
+ result.push("".concat(tab, "},"));
32780
+ result.push("".concat(tab, "\"files\": ["));
32782
32781
  for (var i = 0; i < fileNames.length; i++) {
32783
- result.push("" + tab + tab + JSON.stringify(fileNames[i]) + (i === fileNames.length - 1 ? "" : ","));
32782
+ result.push("".concat(tab).concat(tab).concat(JSON.stringify(fileNames[i])).concat(i === fileNames.length - 1 ? "" : ","));
32784
32783
  }
32785
- result.push(tab + "]");
32784
+ result.push("".concat(tab, "]"));
32786
32785
  }
32787
32786
  else {
32788
- result.push(tab + "}");
32787
+ result.push("".concat(tab, "}"));
32789
32788
  }
32790
32789
  result.push("}");
32791
32790
  return result.join(newLine) + newLine;
@@ -33135,7 +33134,7 @@ var ts;
33135
33134
  if (ts.isRootedDiskPath(extendedConfig) || ts.startsWith(extendedConfig, "./") || ts.startsWith(extendedConfig, "../")) {
33136
33135
  var extendedConfigPath = ts.getNormalizedAbsolutePath(extendedConfig, basePath);
33137
33136
  if (!host.fileExists(extendedConfigPath) && !ts.endsWith(extendedConfigPath, ".json")) {
33138
- extendedConfigPath = extendedConfigPath + ".json";
33137
+ extendedConfigPath = "".concat(extendedConfigPath, ".json");
33139
33138
  if (!host.fileExists(extendedConfigPath)) {
33140
33139
  errors.push(createDiagnostic(ts.Diagnostics.File_0_not_found, extendedConfig));
33141
33140
  return undefined;
@@ -33331,7 +33330,7 @@ var ts;
33331
33330
  if (ts.fileExtensionIs(file, ".json")) {
33332
33331
  if (!jsonOnlyIncludeRegexes) {
33333
33332
  var includes = validatedIncludeSpecs.filter(function (s) { return ts.endsWith(s, ".json"); });
33334
- var includeFilePatterns = ts.map(ts.getRegularExpressionsForWildcards(includes, basePath, "files"), function (pattern) { return "^" + pattern + "$"; });
33333
+ var includeFilePatterns = ts.map(ts.getRegularExpressionsForWildcards(includes, basePath, "files"), function (pattern) { return "^".concat(pattern, "$"); });
33335
33334
  jsonOnlyIncludeRegexes = includeFilePatterns ? includeFilePatterns.map(function (pattern) { return ts.getRegexFromPattern(pattern, host.useCaseSensitiveFileNames); }) : ts.emptyArray;
33336
33335
  }
33337
33336
  var includeIndex = ts.findIndex(jsonOnlyIncludeRegexes, function (re) { return re.test(file); });
@@ -33703,7 +33702,7 @@ var ts;
33703
33702
  var bestVersionKey = result.version, bestVersionPaths = result.paths;
33704
33703
  if (typeof bestVersionPaths !== "object") {
33705
33704
  if (state.traceEnabled) {
33706
- trace(state.host, ts.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2, "typesVersions['" + bestVersionKey + "']", "object", typeof bestVersionPaths);
33705
+ trace(state.host, ts.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2, "typesVersions['".concat(bestVersionKey, "']"), "object", typeof bestVersionPaths);
33707
33706
  }
33708
33707
  return;
33709
33708
  }
@@ -33802,7 +33801,10 @@ var ts;
33802
33801
  }
33803
33802
  }
33804
33803
  var failedLookupLocations = [];
33805
- var moduleResolutionState = { compilerOptions: options, host: host, traceEnabled: traceEnabled, failedLookupLocations: failedLookupLocations, packageJsonInfoCache: cache, features: NodeResolutionFeatures.AllFeatures, conditions: ["node", "require", "types"] };
33804
+ var features = ts.getEmitModuleResolutionKind(options) === ts.ModuleResolutionKind.Node12 ? NodeResolutionFeatures.Node12Default :
33805
+ ts.getEmitModuleResolutionKind(options) === ts.ModuleResolutionKind.NodeNext ? NodeResolutionFeatures.NodeNextDefault :
33806
+ NodeResolutionFeatures.None;
33807
+ var moduleResolutionState = { compilerOptions: options, host: host, traceEnabled: traceEnabled, failedLookupLocations: failedLookupLocations, packageJsonInfoCache: cache, features: features, conditions: ["node", "require", "types"] };
33806
33808
  var resolved = primaryLookup();
33807
33809
  var primary = true;
33808
33810
  if (!resolved) {
@@ -34047,7 +34049,7 @@ var ts;
34047
34049
  };
34048
34050
  return cache;
34049
34051
  function getUnderlyingCacheKey(specifier, mode) {
34050
- var result = mode === undefined ? specifier : mode + "|" + specifier;
34052
+ var result = mode === undefined ? specifier : "".concat(mode, "|").concat(specifier);
34051
34053
  memoizedReverseKeys.set(result, [specifier, mode]);
34052
34054
  return result;
34053
34055
  }
@@ -34077,7 +34079,7 @@ var ts;
34077
34079
  }
34078
34080
  function getOrCreateCacheForModuleName(nonRelativeModuleName, mode, redirectedReference) {
34079
34081
  ts.Debug.assert(!ts.isExternalModuleNameRelative(nonRelativeModuleName));
34080
- return getOrCreateCache(moduleNameToDirectoryMap, redirectedReference, mode === undefined ? nonRelativeModuleName : mode + "|" + nonRelativeModuleName, createPerModuleNameCache);
34082
+ return getOrCreateCache(moduleNameToDirectoryMap, redirectedReference, mode === undefined ? nonRelativeModuleName : "".concat(mode, "|").concat(nonRelativeModuleName), createPerModuleNameCache);
34081
34083
  }
34082
34084
  function createPerModuleNameCache() {
34083
34085
  var directoryPathMap = new ts.Map();
@@ -34205,10 +34207,10 @@ var ts;
34205
34207
  result = classicNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference);
34206
34208
  break;
34207
34209
  default:
34208
- return ts.Debug.fail("Unexpected moduleResolution: " + moduleResolution);
34210
+ return ts.Debug.fail("Unexpected moduleResolution: ".concat(moduleResolution));
34209
34211
  }
34210
34212
  if (result && result.resolvedModule)
34211
- ts.perfLogger.logInfoEvent("Module \"" + moduleName + "\" resolved to \"" + result.resolvedModule.resolvedFileName + "\"");
34213
+ ts.perfLogger.logInfoEvent("Module \"".concat(moduleName, "\" resolved to \"").concat(result.resolvedModule.resolvedFileName, "\""));
34212
34214
  ts.perfLogger.logStopResolveModule((result && result.resolvedModule) ? "" + result.resolvedModule.resolvedFileName : "null");
34213
34215
  if (perFolderCache) {
34214
34216
  perFolderCache.set(moduleName, resolutionMode, result);
@@ -34338,7 +34340,7 @@ var ts;
34338
34340
  function resolveJSModule(moduleName, initialDir, host) {
34339
34341
  var _a = tryResolveJSModuleWorker(moduleName, initialDir, host), resolvedModule = _a.resolvedModule, failedLookupLocations = _a.failedLookupLocations;
34340
34342
  if (!resolvedModule) {
34341
- throw new Error("Could not resolve JS module '" + moduleName + "' starting at '" + initialDir + "'. Looked in: " + failedLookupLocations.join(", "));
34343
+ throw new Error("Could not resolve JS module '".concat(moduleName, "' starting at '").concat(initialDir, "'. Looked in: ").concat(failedLookupLocations.join(", ")));
34342
34344
  }
34343
34345
  return resolvedModule.resolvedFileName;
34344
34346
  }
@@ -34355,13 +34357,15 @@ var ts;
34355
34357
  NodeResolutionFeatures[NodeResolutionFeatures["Exports"] = 8] = "Exports";
34356
34358
  NodeResolutionFeatures[NodeResolutionFeatures["ExportsPatternTrailers"] = 16] = "ExportsPatternTrailers";
34357
34359
  NodeResolutionFeatures[NodeResolutionFeatures["AllFeatures"] = 30] = "AllFeatures";
34360
+ NodeResolutionFeatures[NodeResolutionFeatures["Node12Default"] = 14] = "Node12Default";
34361
+ NodeResolutionFeatures[NodeResolutionFeatures["NodeNextDefault"] = 30] = "NodeNextDefault";
34358
34362
  NodeResolutionFeatures[NodeResolutionFeatures["EsmMode"] = 32] = "EsmMode";
34359
34363
  })(NodeResolutionFeatures || (NodeResolutionFeatures = {}));
34360
34364
  function node12ModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode) {
34361
- return nodeNextModuleNameResolverWorker(NodeResolutionFeatures.Imports | NodeResolutionFeatures.SelfName | NodeResolutionFeatures.Exports, moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode);
34365
+ return nodeNextModuleNameResolverWorker(NodeResolutionFeatures.Node12Default, moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode);
34362
34366
  }
34363
34367
  function nodeNextModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode) {
34364
- return nodeNextModuleNameResolverWorker(NodeResolutionFeatures.AllFeatures, moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode);
34368
+ return nodeNextModuleNameResolverWorker(NodeResolutionFeatures.NodeNextDefault, moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode);
34365
34369
  }
34366
34370
  function nodeNextModuleNameResolverWorker(features, moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode) {
34367
34371
  var containingDirectory = ts.getDirectoryPath(containingFile);
@@ -34439,7 +34443,7 @@ var ts;
34439
34443
  if (traceEnabled) {
34440
34444
  trace(host, ts.Diagnostics.Resolving_real_path_for_0_result_1, path, real);
34441
34445
  }
34442
- ts.Debug.assert(host.fileExists(real), path + " linked to nonexistent file " + real);
34446
+ ts.Debug.assert(host.fileExists(real), "".concat(path, " linked to nonexistent file ").concat(real));
34443
34447
  return real;
34444
34448
  }
34445
34449
  function nodeLoadModuleByRelativeName(extensions, candidate, onlyRecordFailures, state, considerPackageJson) {
@@ -34786,7 +34790,7 @@ var ts;
34786
34790
  return undefined;
34787
34791
  }
34788
34792
  var trailingParts = parts.slice(nameParts.length);
34789
- return loadModuleFromExports(scope, extensions, !ts.length(trailingParts) ? "." : "." + ts.directorySeparator + trailingParts.join(ts.directorySeparator), state, cache, redirectedReference);
34793
+ return loadModuleFromExports(scope, extensions, !ts.length(trailingParts) ? "." : ".".concat(ts.directorySeparator).concat(trailingParts.join(ts.directorySeparator)), state, cache, redirectedReference);
34790
34794
  }
34791
34795
  function loadModuleFromExports(scope, extensions, subpath, state, cache, redirectedReference) {
34792
34796
  if (!scope.packageJsonContent.exports) {
@@ -35098,7 +35102,7 @@ var ts;
35098
35102
  return mangled;
35099
35103
  }
35100
35104
  function getTypesPackageName(packageName) {
35101
- return "@types/" + mangleScopedPackageName(packageName);
35105
+ return "@types/".concat(mangleScopedPackageName(packageName));
35102
35106
  }
35103
35107
  ts.getTypesPackageName = getTypesPackageName;
35104
35108
  function mangleScopedPackageName(packageName) {
@@ -35424,7 +35428,7 @@ var ts;
35424
35428
  if (name) {
35425
35429
  if (ts.isAmbientModule(node)) {
35426
35430
  var moduleName = ts.getTextOfIdentifierOrLiteral(name);
35427
- return (ts.isGlobalScopeAugmentation(node) ? "__global" : "\"" + moduleName + "\"");
35431
+ return (ts.isGlobalScopeAugmentation(node) ? "__global" : "\"".concat(moduleName, "\""));
35428
35432
  }
35429
35433
  if (name.kind === 161) {
35430
35434
  var nameExpression = name.expression;
@@ -35473,7 +35477,7 @@ var ts;
35473
35477
  case 315:
35474
35478
  return (ts.isJSDocConstructSignature(node) ? "__new" : "__call");
35475
35479
  case 163:
35476
- ts.Debug.assert(node.parent.kind === 315, "Impossible parameter parent kind", function () { return "parent is: " + (ts.SyntaxKind ? ts.SyntaxKind[node.parent.kind] : node.parent.kind) + ", expected JSDocFunctionType"; });
35480
+ ts.Debug.assert(node.parent.kind === 315, "Impossible parameter parent kind", function () { return "parent is: ".concat(ts.SyntaxKind ? ts.SyntaxKind[node.parent.kind] : node.parent.kind, ", expected JSDocFunctionType"); });
35477
35481
  var functionType = node.parent;
35478
35482
  var index = functionType.parameters.indexOf(node);
35479
35483
  return "arg" + index;
@@ -35539,7 +35543,7 @@ var ts;
35539
35543
  }
35540
35544
  var relatedInformation_1 = [];
35541
35545
  if (ts.isTypeAliasDeclaration(node) && ts.nodeIsMissing(node.type) && ts.hasSyntacticModifier(node, 1) && symbol.flags & (2097152 | 788968 | 1920)) {
35542
- relatedInformation_1.push(createDiagnosticForNode(node, ts.Diagnostics.Did_you_mean_0, "export type { " + ts.unescapeLeadingUnderscores(node.name.escapedText) + " }"));
35546
+ relatedInformation_1.push(createDiagnosticForNode(node, ts.Diagnostics.Did_you_mean_0, "export type { ".concat(ts.unescapeLeadingUnderscores(node.name.escapedText), " }")));
35543
35547
  }
35544
35548
  var declarationName_1 = ts.getNameOfDeclaration(node) || node;
35545
35549
  ts.forEach(symbol.declarations, function (declaration, index) {
@@ -37358,7 +37362,7 @@ var ts;
37358
37362
  }
37359
37363
  }
37360
37364
  function bindSourceFileAsExternalModule() {
37361
- bindAnonymousDeclaration(file, 512, "\"" + ts.removeFileExtension(file.fileName) + "\"");
37365
+ bindAnonymousDeclaration(file, 512, "\"".concat(ts.removeFileExtension(file.fileName), "\""));
37362
37366
  }
37363
37367
  function bindExportAssignment(node) {
37364
37368
  if (!container.symbol || !container.symbol.exports) {
@@ -39072,7 +39076,7 @@ var ts;
39072
39076
  if (sourceSymbolFile && targetSymbolFile && amalgamatedDuplicates && !isEitherEnum && sourceSymbolFile !== targetSymbolFile) {
39073
39077
  var firstFile_1 = ts.comparePaths(sourceSymbolFile.path, targetSymbolFile.path) === -1 ? sourceSymbolFile : targetSymbolFile;
39074
39078
  var secondFile_1 = firstFile_1 === sourceSymbolFile ? targetSymbolFile : sourceSymbolFile;
39075
- var filesDuplicates = ts.getOrUpdate(amalgamatedDuplicates, firstFile_1.path + "|" + secondFile_1.path, function () {
39079
+ var filesDuplicates = ts.getOrUpdate(amalgamatedDuplicates, "".concat(firstFile_1.path, "|").concat(secondFile_1.path), function () {
39076
39080
  return ({ firstFile: firstFile_1, secondFile: secondFile_1, conflictingSymbols: new ts.Map() });
39077
39081
  });
39078
39082
  var conflictingSymbolInfo = ts.getOrUpdate(filesDuplicates.conflictingSymbols, symbolName_1, function () {
@@ -39438,11 +39442,12 @@ var ts;
39438
39442
  }
39439
39443
  }
39440
39444
  }
39441
- function resolveName(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals) {
39445
+ function resolveName(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, getSpellingSuggstions) {
39442
39446
  if (excludeGlobals === void 0) { excludeGlobals = false; }
39443
- return resolveNameHelper(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, getSymbol);
39447
+ if (getSpellingSuggstions === void 0) { getSpellingSuggstions = true; }
39448
+ return resolveNameHelper(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, getSpellingSuggstions, getSymbol);
39444
39449
  }
39445
- function resolveNameHelper(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, lookup) {
39450
+ function resolveNameHelper(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, getSpellingSuggestions, lookup) {
39446
39451
  var _a, _b, _c;
39447
39452
  var originalLocation = location;
39448
39453
  var result;
@@ -39677,7 +39682,7 @@ var ts;
39677
39682
  }
39678
39683
  }
39679
39684
  if (!result) {
39680
- if (nameNotFoundMessage) {
39685
+ if (nameNotFoundMessage && produceDiagnostics) {
39681
39686
  if (!errorLocation ||
39682
39687
  !checkAndReportErrorForMissingPrefix(errorLocation, name, nameArg) &&
39683
39688
  !checkAndReportErrorForExtendingInterface(errorLocation) &&
@@ -39687,7 +39692,7 @@ var ts;
39687
39692
  !checkAndReportErrorForUsingNamespaceModuleAsValue(errorLocation, name, meaning) &&
39688
39693
  !checkAndReportErrorForUsingValueAsType(errorLocation, name, meaning)) {
39689
39694
  var suggestion = void 0;
39690
- if (suggestionCount < maximumSuggestionCount) {
39695
+ if (getSpellingSuggestions && suggestionCount < maximumSuggestionCount) {
39691
39696
  suggestion = getSuggestedSymbolForNonexistentSymbol(originalLocation, name, meaning);
39692
39697
  var isGlobalScopeAugmentationDeclaration = (suggestion === null || suggestion === void 0 ? void 0 : suggestion.valueDeclaration) && ts.isAmbientModule(suggestion.valueDeclaration) && ts.isGlobalScopeAugmentation(suggestion.valueDeclaration);
39693
39698
  if (isGlobalScopeAugmentationDeclaration) {
@@ -39722,7 +39727,7 @@ var ts;
39722
39727
  }
39723
39728
  return undefined;
39724
39729
  }
39725
- if (nameNotFoundMessage) {
39730
+ if (nameNotFoundMessage && produceDiagnostics) {
39726
39731
  if (propertyWithInvalidInitializer && !(ts.getEmitScriptTarget(compilerOptions) === 99 && useDefineForClassFields)) {
39727
39732
  var propertyName = propertyWithInvalidInitializer.name;
39728
39733
  error(errorLocation, ts.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor, ts.declarationNameToString(propertyName), diagnosticName(nameArg));
@@ -41345,7 +41350,7 @@ var ts;
41345
41350
  var links = getSymbolLinks(symbol);
41346
41351
  var cache = (links.accessibleChainCache || (links.accessibleChainCache = new ts.Map()));
41347
41352
  var firstRelevantLocation = forEachSymbolTableInScope(enclosingDeclaration, function (_, __, ___, node) { return node; });
41348
- var key = (useOnlyExternalAliasing ? 0 : 1) + "|" + (firstRelevantLocation && getNodeId(firstRelevantLocation)) + "|" + meaning;
41353
+ var key = "".concat(useOnlyExternalAliasing ? 0 : 1, "|").concat(firstRelevantLocation && getNodeId(firstRelevantLocation), "|").concat(meaning);
41349
41354
  if (cache.has(key)) {
41350
41355
  return cache.get(key);
41351
41356
  }
@@ -42112,7 +42117,7 @@ var ts;
42112
42117
  context.symbolDepth = new ts.Map();
42113
42118
  }
42114
42119
  var links = context.enclosingDeclaration && getNodeLinks(context.enclosingDeclaration);
42115
- var key = getTypeId(type) + "|" + context.flags;
42120
+ var key = "".concat(getTypeId(type), "|").concat(context.flags);
42116
42121
  if (links) {
42117
42122
  links.serializedTypes || (links.serializedTypes = new ts.Map());
42118
42123
  }
@@ -42367,7 +42372,7 @@ var ts;
42367
42372
  }
42368
42373
  }
42369
42374
  if (checkTruncationLength(context) && (i + 2 < properties.length - 1)) {
42370
- typeElements.push(ts.factory.createPropertySignature(undefined, "... " + (properties.length - i) + " more ...", undefined, undefined));
42375
+ typeElements.push(ts.factory.createPropertySignature(undefined, "... ".concat(properties.length - i, " more ..."), undefined, undefined));
42371
42376
  addPropertyToElementList(properties[properties.length - 1], context, typeElements);
42372
42377
  break;
42373
42378
  }
@@ -42475,7 +42480,7 @@ var ts;
42475
42480
  else if (types.length > 2) {
42476
42481
  return [
42477
42482
  typeToTypeNodeHelper(types[0], context),
42478
- ts.factory.createTypeReferenceNode("... " + (types.length - 2) + " more ...", undefined),
42483
+ ts.factory.createTypeReferenceNode("... ".concat(types.length - 2, " more ..."), undefined),
42479
42484
  typeToTypeNodeHelper(types[types.length - 1], context)
42480
42485
  ];
42481
42486
  }
@@ -42488,7 +42493,7 @@ var ts;
42488
42493
  var type = types_2[_i];
42489
42494
  i++;
42490
42495
  if (checkTruncationLength(context) && (i + 2 < types.length - 1)) {
42491
- result_5.push(ts.factory.createTypeReferenceNode("... " + (types.length - i) + " more ...", undefined));
42496
+ result_5.push(ts.factory.createTypeReferenceNode("... ".concat(types.length - i, " more ..."), undefined));
42492
42497
  var typeNode_1 = typeToTypeNodeHelper(types[types.length - 1], context);
42493
42498
  if (typeNode_1) {
42494
42499
  result_5.push(typeNode_1);
@@ -42953,7 +42958,7 @@ var ts;
42953
42958
  var text = rawtext;
42954
42959
  while (((_b = context.typeParameterNamesByText) === null || _b === void 0 ? void 0 : _b.has(text)) || typeParameterShadowsNameInScope(text, context, type)) {
42955
42960
  i++;
42956
- text = rawtext + "_" + i;
42961
+ text = "".concat(rawtext, "_").concat(i);
42957
42962
  }
42958
42963
  if (text !== rawtext) {
42959
42964
  result = ts.factory.createIdentifier(text, result.typeArguments);
@@ -43241,7 +43246,7 @@ var ts;
43241
43246
  function getNameForJSDocFunctionParameter(p, index) {
43242
43247
  return p.name && ts.isIdentifier(p.name) && p.name.escapedText === "this" ? "this"
43243
43248
  : getEffectiveDotDotDotForParameter(p) ? "args"
43244
- : "arg" + index;
43249
+ : "arg".concat(index);
43245
43250
  }
43246
43251
  function rewriteModuleSpecifier(parent, lit) {
43247
43252
  if (bundled) {
@@ -44050,7 +44055,7 @@ var ts;
44050
44055
  }
44051
44056
  return results_1;
44052
44057
  }
44053
- return ts.Debug.fail("Unhandled class member kind! " + (p.__debugFlags || p.flags));
44058
+ return ts.Debug.fail("Unhandled class member kind! ".concat(p.__debugFlags || p.flags));
44054
44059
  };
44055
44060
  }
44056
44061
  function serializePropertySymbolForInterface(p, baseType) {
@@ -44120,7 +44125,7 @@ var ts;
44120
44125
  if (ref) {
44121
44126
  return ref;
44122
44127
  }
44123
- var tempName = getUnusedName(rootName + "_base");
44128
+ var tempName = getUnusedName("".concat(rootName, "_base"));
44124
44129
  var statement = ts.factory.createVariableStatement(undefined, ts.factory.createVariableDeclarationList([
44125
44130
  ts.factory.createVariableDeclaration(tempName, undefined, typeToTypeNodeHelper(staticType, context))
44126
44131
  ], 2));
@@ -44165,7 +44170,7 @@ var ts;
44165
44170
  var original = input;
44166
44171
  while ((_a = context.usedSymbolNames) === null || _a === void 0 ? void 0 : _a.has(input)) {
44167
44172
  i++;
44168
- input = original + "_" + i;
44173
+ input = "".concat(original, "_").concat(i);
44169
44174
  }
44170
44175
  (_b = context.usedSymbolNames) === null || _b === void 0 ? void 0 : _b.add(input);
44171
44176
  if (id) {
@@ -44271,15 +44276,15 @@ var ts;
44271
44276
  if (nameType.flags & 384) {
44272
44277
  var name = "" + nameType.value;
44273
44278
  if (!ts.isIdentifierText(name, ts.getEmitScriptTarget(compilerOptions)) && !isNumericLiteralName(name)) {
44274
- return "\"" + ts.escapeString(name, 34) + "\"";
44279
+ return "\"".concat(ts.escapeString(name, 34), "\"");
44275
44280
  }
44276
44281
  if (isNumericLiteralName(name) && ts.startsWith(name, "-")) {
44277
- return "[" + name + "]";
44282
+ return "[".concat(name, "]");
44278
44283
  }
44279
44284
  return name;
44280
44285
  }
44281
44286
  if (nameType.flags & 8192) {
44282
- return "[" + getNameOfSymbolAsWritten(nameType.symbol, context) + "]";
44287
+ return "[".concat(getNameOfSymbolAsWritten(nameType.symbol, context), "]");
44283
44288
  }
44284
44289
  }
44285
44290
  }
@@ -46678,7 +46683,7 @@ var ts;
46678
46683
  !leftName ? rightName :
46679
46684
  !rightName ? leftName :
46680
46685
  undefined;
46681
- var paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || "arg" + i);
46686
+ var paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || "arg".concat(i));
46682
46687
  paramSymbol.type = isRestParam ? createArrayType(unionParamType) : unionParamType;
46683
46688
  params[i] = paramSymbol;
46684
46689
  }
@@ -48363,7 +48368,7 @@ var ts;
48363
48368
  return result;
48364
48369
  }
48365
48370
  function getAliasId(aliasSymbol, aliasTypeArguments) {
48366
- return aliasSymbol ? "@" + getSymbolId(aliasSymbol) + (aliasTypeArguments ? ":" + getTypeListId(aliasTypeArguments) : "") : "";
48371
+ return aliasSymbol ? "@".concat(getSymbolId(aliasSymbol)) + (aliasTypeArguments ? ":".concat(getTypeListId(aliasTypeArguments)) : "") : "";
48367
48372
  }
48368
48373
  function getPropagatingFlagsOfTypes(types, excludeKinds) {
48369
48374
  var result = 0;
@@ -48526,7 +48531,7 @@ var ts;
48526
48531
  return undefined;
48527
48532
  }
48528
48533
  function getSymbolPath(symbol) {
48529
- return symbol.parent ? getSymbolPath(symbol.parent) + "." + symbol.escapedName : symbol.escapedName;
48534
+ return symbol.parent ? "".concat(getSymbolPath(symbol.parent), ".").concat(symbol.escapedName) : symbol.escapedName;
48530
48535
  }
48531
48536
  function getUnresolvedSymbolForEntityName(name) {
48532
48537
  var identifier = name.kind === 160 ? name.right :
@@ -48537,7 +48542,7 @@ var ts;
48537
48542
  var parentSymbol = name.kind === 160 ? getUnresolvedSymbolForEntityName(name.left) :
48538
48543
  name.kind === 205 ? getUnresolvedSymbolForEntityName(name.expression) :
48539
48544
  undefined;
48540
- var path = parentSymbol ? getSymbolPath(parentSymbol) + "." + text : text;
48545
+ var path = parentSymbol ? "".concat(getSymbolPath(parentSymbol), ".").concat(text) : text;
48541
48546
  var result = unresolvedSymbols.get(path);
48542
48547
  if (!result) {
48543
48548
  unresolvedSymbols.set(path, result = createSymbol(524288, text, 1048576));
@@ -48603,7 +48608,7 @@ var ts;
48603
48608
  if (substitute.flags & 3 || substitute === baseType) {
48604
48609
  return baseType;
48605
48610
  }
48606
- var id = getTypeId(baseType) + ">" + getTypeId(substitute);
48611
+ var id = "".concat(getTypeId(baseType), ">").concat(getTypeId(substitute));
48607
48612
  var cached = substitutionTypes.get(id);
48608
48613
  if (cached) {
48609
48614
  return cached;
@@ -48790,7 +48795,7 @@ var ts;
48790
48795
  return symbol;
48791
48796
  }
48792
48797
  function getGlobalSymbol(name, meaning, diagnostic) {
48793
- return resolveName(undefined, name, meaning, diagnostic, name, false);
48798
+ return resolveName(undefined, name, meaning, diagnostic, name, false, false, false);
48794
48799
  }
48795
48800
  function getGlobalType(name, arity, reportErrors) {
48796
48801
  var symbol = getGlobalTypeSymbol(name, reportErrors);
@@ -49208,6 +49213,8 @@ var ts;
49208
49213
  }
49209
49214
  if (!(flags & 131072)) {
49210
49215
  includes |= flags & 205258751;
49216
+ if (flags & 465829888)
49217
+ includes |= 33554432;
49211
49218
  if (type === wildcardType)
49212
49219
  includes |= 8388608;
49213
49220
  if (!strictNullChecks && flags & 98304) {
@@ -49400,7 +49407,7 @@ var ts;
49400
49407
  origin = createOriginUnionOrIntersectionType(1048576, reducedTypes);
49401
49408
  }
49402
49409
  }
49403
- var objectFlags = (includes & 468598819 ? 0 : 65536) |
49410
+ var objectFlags = (includes & 36323363 ? 0 : 65536) |
49404
49411
  (includes & 2097152 ? 33554432 : 0);
49405
49412
  return getUnionTypeFromSortedList(typeSet, objectFlags, aliasSymbol, aliasTypeArguments, origin);
49406
49413
  }
@@ -49445,9 +49452,9 @@ var ts;
49445
49452
  return types[0];
49446
49453
  }
49447
49454
  var typeKey = !origin ? getTypeListId(types) :
49448
- origin.flags & 1048576 ? "|" + getTypeListId(origin.types) :
49449
- origin.flags & 2097152 ? "&" + getTypeListId(origin.types) :
49450
- "#" + origin.type.id + "|" + getTypeListId(types);
49455
+ origin.flags & 1048576 ? "|".concat(getTypeListId(origin.types)) :
49456
+ origin.flags & 2097152 ? "&".concat(getTypeListId(origin.types)) :
49457
+ "#".concat(origin.type.id, "|").concat(getTypeListId(types));
49451
49458
  var id = typeKey + getAliasId(aliasSymbol, aliasTypeArguments);
49452
49459
  var type = unionTypes.get(id);
49453
49460
  if (!type) {
@@ -49897,7 +49904,7 @@ var ts;
49897
49904
  if (ts.every(newTexts, function (t) { return t === ""; }) && ts.every(newTypes, function (t) { return !!(t.flags & 4); })) {
49898
49905
  return stringType;
49899
49906
  }
49900
- var id = getTypeListId(newTypes) + "|" + ts.map(newTexts, function (t) { return t.length; }).join(",") + "|" + newTexts.join("");
49907
+ var id = "".concat(getTypeListId(newTypes), "|").concat(ts.map(newTexts, function (t) { return t.length; }).join(","), "|").concat(newTexts.join(""));
49901
49908
  var type = templateLiteralTypes.get(id);
49902
49909
  if (!type) {
49903
49910
  templateLiteralTypes.set(id, type = createTemplateLiteralType(newTexts, newTypes));
@@ -49957,7 +49964,7 @@ var ts;
49957
49964
  return str;
49958
49965
  }
49959
49966
  function getStringMappingTypeForGenericType(symbol, type) {
49960
- var id = getSymbolId(symbol) + "," + getTypeId(type);
49967
+ var id = "".concat(getSymbolId(symbol), ",").concat(getTypeId(type));
49961
49968
  var result = stringMappingTypes.get(id);
49962
49969
  if (!result) {
49963
49970
  stringMappingTypes.set(id, result = createStringMappingType(symbol, type));
@@ -50868,7 +50875,7 @@ var ts;
50868
50875
  function createUniqueESSymbolType(symbol) {
50869
50876
  var type = createType(8192);
50870
50877
  type.symbol = symbol;
50871
- type.escapedName = "__@" + type.symbol.escapedName + "@" + getSymbolId(type.symbol);
50878
+ type.escapedName = "__@".concat(type.symbol.escapedName, "@").concat(getSymbolId(type.symbol));
50872
50879
  return type;
50873
50880
  }
50874
50881
  function getESSymbolLikeTypeForNode(node) {
@@ -52260,7 +52267,7 @@ var ts;
52260
52267
  return true;
52261
52268
  }
52262
52269
  if (source.flags & 524288 && target.flags & 524288) {
52263
- var related = relation.get(getRelationKey(source, target, 0, relation));
52270
+ var related = relation.get(getRelationKey(source, target, 0, relation, false));
52264
52271
  if (related !== undefined) {
52265
52272
  return !!(related & 1);
52266
52273
  }
@@ -52389,20 +52396,20 @@ var ts;
52389
52396
  switch (msg.code) {
52390
52397
  case ts.Diagnostics.Types_of_property_0_are_incompatible.code: {
52391
52398
  if (path.indexOf("new ") === 0) {
52392
- path = "(" + path + ")";
52399
+ path = "(".concat(path, ")");
52393
52400
  }
52394
52401
  var str = "" + args[0];
52395
52402
  if (path.length === 0) {
52396
- path = "" + str;
52403
+ path = "".concat(str);
52397
52404
  }
52398
52405
  else if (ts.isIdentifierText(str, ts.getEmitScriptTarget(compilerOptions))) {
52399
- path = path + "." + str;
52406
+ path = "".concat(path, ".").concat(str);
52400
52407
  }
52401
52408
  else if (str[0] === "[" && str[str.length - 1] === "]") {
52402
- path = "" + path + str;
52409
+ path = "".concat(path).concat(str);
52403
52410
  }
52404
52411
  else {
52405
- path = path + "[" + str + "]";
52412
+ path = "".concat(path, "[").concat(str, "]");
52406
52413
  }
52407
52414
  break;
52408
52415
  }
@@ -52429,7 +52436,7 @@ var ts;
52429
52436
  msg.code === ts.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code)
52430
52437
  ? ""
52431
52438
  : "...";
52432
- path = "" + prefix + path + "(" + params + ")";
52439
+ path = "".concat(prefix).concat(path, "(").concat(params, ")");
52433
52440
  }
52434
52441
  break;
52435
52442
  }
@@ -52442,7 +52449,7 @@ var ts;
52442
52449
  break;
52443
52450
  }
52444
52451
  default:
52445
- return ts.Debug.fail("Unhandled Diagnostic: " + msg.code);
52452
+ return ts.Debug.fail("Unhandled Diagnostic: ".concat(msg.code));
52446
52453
  }
52447
52454
  }
52448
52455
  if (path) {
@@ -52974,7 +52981,8 @@ var ts;
52974
52981
  if (overflow) {
52975
52982
  return 0;
52976
52983
  }
52977
- var id = getRelationKey(source, target, intersectionState | (inPropertyCheck ? 16 : 0), relation);
52984
+ var keyIntersectionState = intersectionState | (inPropertyCheck ? 16 : 0);
52985
+ var id = getRelationKey(source, target, keyIntersectionState, relation, false);
52978
52986
  var entry = relation.get(id);
52979
52987
  if (entry !== undefined) {
52980
52988
  if (reportErrors && entry & 2 && !(entry & 4)) {
@@ -52998,12 +53006,9 @@ var ts;
52998
53006
  targetStack = [];
52999
53007
  }
53000
53008
  else {
53001
- var broadestEquivalentId = id.split(",").map(function (i) { return i.replace(/-\d+/g, function (_match, offset) {
53002
- var index = ts.length(id.slice(0, offset).match(/[-=]/g) || undefined);
53003
- return "=" + index;
53004
- }); }).join(",");
53009
+ var broadestEquivalentId = id.startsWith("*") ? getRelationKey(source, target, keyIntersectionState, relation, true) : undefined;
53005
53010
  for (var i = 0; i < maybeCount; i++) {
53006
- if (id === maybeKeys[i] || broadestEquivalentId === maybeKeys[i]) {
53011
+ if (id === maybeKeys[i] || broadestEquivalentId && broadestEquivalentId === maybeKeys[i]) {
53007
53012
  return 3;
53008
53013
  }
53009
53014
  }
@@ -53245,7 +53250,7 @@ var ts;
53245
53250
  originalErrorInfo = undefined;
53246
53251
  }
53247
53252
  }
53248
- else if (isGenericMappedType(target)) {
53253
+ else if (isGenericMappedType(target) && relation !== identityRelation) {
53249
53254
  var keysRemapped = !!target.declaration.nameType;
53250
53255
  var templateType = getTemplateTypeFromMappedType(target);
53251
53256
  var modifiers = getMappedTypeModifiers(target);
@@ -54277,40 +54282,48 @@ var ts;
54277
54282
  function isTypeReferenceWithGenericArguments(type) {
54278
54283
  return isNonDeferredTypeReference(type) && ts.some(getTypeArguments(type), function (t) { return !!(t.flags & 262144) || isTypeReferenceWithGenericArguments(t); });
54279
54284
  }
54280
- function getTypeReferenceId(type, typeParameters, depth) {
54281
- if (depth === void 0) { depth = 0; }
54282
- var result = "" + type.target.id;
54283
- for (var _i = 0, _a = getTypeArguments(type); _i < _a.length; _i++) {
54284
- var t = _a[_i];
54285
- if (isUnconstrainedTypeParameter(t)) {
54286
- var index = typeParameters.indexOf(t);
54287
- if (index < 0) {
54288
- index = typeParameters.length;
54289
- typeParameters.push(t);
54285
+ function getGenericTypeReferenceRelationKey(source, target, postFix, ignoreConstraints) {
54286
+ var typeParameters = [];
54287
+ var constraintMarker = "";
54288
+ var sourceId = getTypeReferenceId(source, 0);
54289
+ var targetId = getTypeReferenceId(target, 0);
54290
+ return "".concat(constraintMarker).concat(sourceId, ",").concat(targetId).concat(postFix);
54291
+ function getTypeReferenceId(type, depth) {
54292
+ if (depth === void 0) { depth = 0; }
54293
+ var result = "" + type.target.id;
54294
+ for (var _i = 0, _a = getTypeArguments(type); _i < _a.length; _i++) {
54295
+ var t = _a[_i];
54296
+ if (t.flags & 262144) {
54297
+ if (ignoreConstraints || isUnconstrainedTypeParameter(t)) {
54298
+ var index = typeParameters.indexOf(t);
54299
+ if (index < 0) {
54300
+ index = typeParameters.length;
54301
+ typeParameters.push(t);
54302
+ }
54303
+ result += "=" + index;
54304
+ continue;
54305
+ }
54306
+ constraintMarker = "*";
54307
+ }
54308
+ else if (depth < 4 && isTypeReferenceWithGenericArguments(t)) {
54309
+ result += "<" + getTypeReferenceId(t, depth + 1) + ">";
54310
+ continue;
54290
54311
  }
54291
- result += "=" + index;
54292
- }
54293
- else if (depth < 4 && isTypeReferenceWithGenericArguments(t)) {
54294
- result += "<" + getTypeReferenceId(t, typeParameters, depth + 1) + ">";
54295
- }
54296
- else {
54297
54312
  result += "-" + t.id;
54298
54313
  }
54314
+ return result;
54299
54315
  }
54300
- return result;
54301
54316
  }
54302
- function getRelationKey(source, target, intersectionState, relation) {
54317
+ function getRelationKey(source, target, intersectionState, relation, ignoreConstraints) {
54303
54318
  if (relation === identityRelation && source.id > target.id) {
54304
54319
  var temp = source;
54305
54320
  source = target;
54306
54321
  target = temp;
54307
54322
  }
54308
54323
  var postFix = intersectionState ? ":" + intersectionState : "";
54309
- if (isTypeReferenceWithGenericArguments(source) && isTypeReferenceWithGenericArguments(target)) {
54310
- var typeParameters = [];
54311
- return getTypeReferenceId(source, typeParameters) + "," + getTypeReferenceId(target, typeParameters) + postFix;
54312
- }
54313
- return source.id + "," + target.id + postFix;
54324
+ return isTypeReferenceWithGenericArguments(source) && isTypeReferenceWithGenericArguments(target) ?
54325
+ getGenericTypeReferenceRelationKey(source, target, postFix, ignoreConstraints) :
54326
+ "".concat(source.id, ",").concat(target.id).concat(postFix);
54314
54327
  }
54315
54328
  function forEachProperty(prop, callback) {
54316
54329
  if (ts.getCheckFlags(prop) & 6) {
@@ -54349,16 +54362,21 @@ var ts;
54349
54362
  !hasBaseType(checkClass, getDeclaringClass(p)) : false; }) ? undefined : checkClass;
54350
54363
  }
54351
54364
  function isDeeplyNestedType(type, stack, depth, maxDepth) {
54352
- if (maxDepth === void 0) { maxDepth = 5; }
54365
+ if (maxDepth === void 0) { maxDepth = 3; }
54353
54366
  if (depth >= maxDepth) {
54354
54367
  var identity_1 = getRecursionIdentity(type);
54355
54368
  var count = 0;
54369
+ var lastTypeId = 0;
54356
54370
  for (var i = 0; i < depth; i++) {
54357
- if (getRecursionIdentity(stack[i]) === identity_1) {
54358
- count++;
54359
- if (count >= maxDepth) {
54360
- return true;
54371
+ var t = stack[i];
54372
+ if (getRecursionIdentity(t) === identity_1) {
54373
+ if (t.id >= lastTypeId) {
54374
+ count++;
54375
+ if (count >= maxDepth) {
54376
+ return true;
54377
+ }
54361
54378
  }
54379
+ lastTypeId = t.id;
54362
54380
  }
54363
54381
  }
54364
54382
  }
@@ -54998,7 +55016,8 @@ var ts;
54998
55016
  (resolveName(param, param.name.escapedText, 788968, undefined, param.name.escapedText, true) ||
54999
55017
  param.name.originalKeywordKind && ts.isTypeNodeKind(param.name.originalKeywordKind))) {
55000
55018
  var newName = "arg" + param.parent.parameters.indexOf(param);
55001
- errorOrSuggestion(noImplicitAny, declaration, ts.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1, newName, ts.declarationNameToString(param.name));
55019
+ var typeName = ts.declarationNameToString(param.name) + (param.dotDotDotToken ? "[]" : "");
55020
+ errorOrSuggestion(noImplicitAny, declaration, ts.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1, newName, typeName);
55002
55021
  return;
55003
55022
  }
55004
55023
  diagnostic = declaration.dotDotDotToken ?
@@ -56120,10 +56139,10 @@ var ts;
56120
56139
  case 79:
56121
56140
  if (!ts.isThisInTypeQuery(node)) {
56122
56141
  var symbol = getResolvedSymbol(node);
56123
- return symbol !== unknownSymbol ? (flowContainer ? getNodeId(flowContainer) : "-1") + "|" + getTypeId(declaredType) + "|" + getTypeId(initialType) + "|" + getSymbolId(symbol) : undefined;
56142
+ return symbol !== unknownSymbol ? "".concat(flowContainer ? getNodeId(flowContainer) : "-1", "|").concat(getTypeId(declaredType), "|").concat(getTypeId(initialType), "|").concat(getSymbolId(symbol)) : undefined;
56124
56143
  }
56125
56144
  case 108:
56126
- return "0|" + (flowContainer ? getNodeId(flowContainer) : "-1") + "|" + getTypeId(declaredType) + "|" + getTypeId(initialType);
56145
+ return "0|".concat(flowContainer ? getNodeId(flowContainer) : "-1", "|").concat(getTypeId(declaredType), "|").concat(getTypeId(initialType));
56127
56146
  case 229:
56128
56147
  case 211:
56129
56148
  return getFlowCacheKey(node.expression, declaredType, initialType, flowContainer);
@@ -59364,7 +59383,7 @@ var ts;
59364
59383
  !leftName ? rightName :
59365
59384
  !rightName ? leftName :
59366
59385
  undefined;
59367
- var paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || "arg" + i);
59386
+ var paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || "arg".concat(i));
59368
59387
  paramSymbol.type = isRestParam ? createArrayType(unionParamType) : unionParamType;
59369
59388
  params[i] = paramSymbol;
59370
59389
  }
@@ -60882,7 +60901,7 @@ var ts;
60882
60901
  }
60883
60902
  function getSuggestedSymbolForNonexistentSymbol(location, outerName, meaning) {
60884
60903
  ts.Debug.assert(outerName !== undefined, "outername should always be defined");
60885
- var result = resolveNameHelper(location, outerName, meaning, undefined, outerName, false, false, function (symbols, name, meaning) {
60904
+ var result = resolveNameHelper(location, outerName, meaning, undefined, outerName, false, false, true, function (symbols, name, meaning) {
60886
60905
  ts.Debug.assertEqual(outerName, name, "name should equal outerName");
60887
60906
  var symbol = getSymbol(symbols, name, meaning);
60888
60907
  if (symbol)
@@ -65693,6 +65712,8 @@ var ts;
65693
65712
  if (!typeReferenceNode)
65694
65713
  return undefined;
65695
65714
  var typeParameters = getTypeParametersForTypeReference(typeReferenceNode);
65715
+ if (!typeParameters)
65716
+ return undefined;
65696
65717
  var constraint = getConstraintOfTypeParameter(typeParameters[typeReferenceNode.typeArguments.indexOf(node)]);
65697
65718
  return constraint && instantiateType(constraint, createTypeMapper(typeParameters, getEffectiveTypeArguments(typeReferenceNode, typeParameters)));
65698
65719
  }
@@ -67805,7 +67826,7 @@ var ts;
67805
67826
  function getPropertyNameForKnownSymbolName(symbolName) {
67806
67827
  var ctorType = getGlobalESSymbolConstructorSymbol(false);
67807
67828
  var uniqueType = ctorType && getTypeOfPropertyOfType(getTypeOfSymbol(ctorType), ts.escapeLeadingUnderscores(symbolName));
67808
- return uniqueType && isTypeUsableAsPropertyName(uniqueType) ? getPropertyNameFromType(uniqueType) : "__@" + symbolName;
67829
+ return uniqueType && isTypeUsableAsPropertyName(uniqueType) ? getPropertyNameFromType(uniqueType) : "__@".concat(symbolName);
67809
67830
  }
67810
67831
  function getIterationTypesOfIterableSlow(type, resolver, errorNode) {
67811
67832
  var _a;
@@ -74053,7 +74074,7 @@ var ts;
74053
74074
  value >= 52 && value < 62 ? 48 + value - 52 :
74054
74075
  value === 62 ? 43 :
74055
74076
  value === 63 ? 47 :
74056
- ts.Debug.fail(value + ": not a base64 value");
74077
+ ts.Debug.fail("".concat(value, ": not a base64 value"));
74057
74078
  }
74058
74079
  function base64FormatDecode(ch) {
74059
74080
  return ch >= 65 && ch <= 90 ? ch - 65 :
@@ -74126,7 +74147,7 @@ var ts;
74126
74147
  var mappings = ts.arrayFrom(decoder, processMapping);
74127
74148
  if (decoder.error !== undefined) {
74128
74149
  if (host.log) {
74129
- host.log("Encountered error while decoding sourcemap: " + decoder.error);
74150
+ host.log("Encountered error while decoding sourcemap: ".concat(decoder.error));
74130
74151
  }
74131
74152
  decodedMappings = ts.emptyArray;
74132
74153
  }
@@ -76561,7 +76582,7 @@ var ts;
76561
76582
  var propertyName = ts.isPropertyAccessExpression(originalNode)
76562
76583
  ? ts.declarationNameToString(originalNode.name)
76563
76584
  : ts.getTextOfNode(originalNode.argumentExpression);
76564
- ts.addSyntheticTrailingComment(substitute, 3, " " + propertyName + " ");
76585
+ ts.addSyntheticTrailingComment(substitute, 3, " ".concat(propertyName, " "));
76565
76586
  }
76566
76587
  return substitute;
76567
76588
  }
@@ -77745,8 +77766,8 @@ var ts;
77745
77766
  }
77746
77767
  function createHoistedVariableForClass(name, node) {
77747
77768
  var className = getPrivateIdentifierEnvironment().className;
77748
- var prefix = className ? "_" + className : "";
77749
- var identifier = factory.createUniqueName(prefix + "_" + name, 16);
77769
+ var prefix = className ? "_".concat(className) : "";
77770
+ var identifier = factory.createUniqueName("".concat(prefix, "_").concat(name), 16);
77750
77771
  if (resolver.getNodeCheckFlags(node) & 524288) {
77751
77772
  addBlockScopedVariable(identifier);
77752
77773
  }
@@ -79315,7 +79336,7 @@ var ts;
79315
79336
  specifierSourceImports = ts.createMap();
79316
79337
  currentFileState.utilizedImplicitRuntimeImports.set(importSource, specifierSourceImports);
79317
79338
  }
79318
- var generatedName = factory.createUniqueName("_" + name, 16 | 32 | 64);
79339
+ var generatedName = factory.createUniqueName("_".concat(name), 16 | 32 | 64);
79319
79340
  var specifier = factory.createImportSpecifier(false, factory.createIdentifier(name), generatedName);
79320
79341
  generatedName.generatedImportReference = specifier;
79321
79342
  specifierSourceImports.set(name, specifier);
@@ -80250,11 +80271,11 @@ var ts;
80250
80271
  }
80251
80272
  else {
80252
80273
  if (node.kind === 245) {
80253
- labelMarker = "break-" + label.escapedText;
80274
+ labelMarker = "break-".concat(label.escapedText);
80254
80275
  setLabeledJump(convertedLoopState, true, ts.idText(label), labelMarker);
80255
80276
  }
80256
80277
  else {
80257
- labelMarker = "continue-" + label.escapedText;
80278
+ labelMarker = "continue-".concat(label.escapedText);
80258
80279
  setLabeledJump(convertedLoopState, false, ts.idText(label), labelMarker);
80259
80280
  }
80260
80281
  }
@@ -85874,7 +85895,7 @@ var ts;
85874
85895
  return getTypeAliasDeclarationVisibilityError;
85875
85896
  }
85876
85897
  else {
85877
- return ts.Debug.assertNever(node, "Attempted to set a declaration diagnostic context for unhandled node kind: " + ts.SyntaxKind[node.kind]);
85898
+ return ts.Debug.assertNever(node, "Attempted to set a declaration diagnostic context for unhandled node kind: ".concat(ts.SyntaxKind[node.kind]));
85878
85899
  }
85879
85900
  function getVariableDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult) {
85880
85901
  if (node.kind === 253 || node.kind === 202) {
@@ -86071,7 +86092,7 @@ var ts;
86071
86092
  ts.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2 :
86072
86093
  ts.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;
86073
86094
  default:
86074
- return ts.Debug.fail("Unknown parent for parameter: " + ts.SyntaxKind[node.parent.kind]);
86095
+ return ts.Debug.fail("Unknown parent for parameter: ".concat(ts.SyntaxKind[node.parent.kind]));
86075
86096
  }
86076
86097
  }
86077
86098
  function getTypeParameterConstraintVisibilityError() {
@@ -86758,7 +86779,7 @@ var ts;
86758
86779
  while (ts.length(lateMarkedStatements)) {
86759
86780
  var i = lateMarkedStatements.shift();
86760
86781
  if (!ts.isLateVisibilityPaintedStatement(i)) {
86761
- 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));
86782
+ 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));
86762
86783
  }
86763
86784
  var priorNeedsDeclare = needsDeclare;
86764
86785
  needsDeclare = i.parent && ts.isSourceFile(i.parent) && !(ts.isExternalModule(i.parent) && isBundledEmit);
@@ -86923,7 +86944,7 @@ var ts;
86923
86944
  return cleanup(input);
86924
86945
  return cleanup(factory.updateImportTypeNode(input, factory.updateLiteralTypeNode(input.argument, rewriteModuleSpecifier(input, input.argument.literal)), input.qualifier, ts.visitNodes(input.typeArguments, visitDeclarationSubtree, ts.isTypeNode), input.isTypeOf));
86925
86946
  }
86926
- default: ts.Debug.assertNever(input, "Attempted to process unhandled node kind: " + ts.SyntaxKind[input.kind]);
86947
+ default: ts.Debug.assertNever(input, "Attempted to process unhandled node kind: ".concat(ts.SyntaxKind[input.kind]));
86927
86948
  }
86928
86949
  }
86929
86950
  if (ts.isTupleTypeNode(input) && (ts.getLineAndCharacterOfPosition(currentSourceFile, input.pos).line === ts.getLineAndCharacterOfPosition(currentSourceFile, input.end).line)) {
@@ -87167,7 +87188,7 @@ var ts;
87167
87188
  var extendsClause_1 = ts.getEffectiveBaseTypeNode(input);
87168
87189
  if (extendsClause_1 && !ts.isEntityNameExpression(extendsClause_1.expression) && extendsClause_1.expression.kind !== 104) {
87169
87190
  var oldId = input.name ? ts.unescapeLeadingUnderscores(input.name.escapedText) : "default";
87170
- var newId_1 = factory.createUniqueName(oldId + "_base", 16);
87191
+ var newId_1 = factory.createUniqueName("".concat(oldId, "_base"), 16);
87171
87192
  getSymbolAccessibilityDiagnostic = function () { return ({
87172
87193
  diagnosticMessage: ts.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,
87173
87194
  errorNode: extendsClause_1,
@@ -87204,7 +87225,7 @@ var ts;
87204
87225
  }))));
87205
87226
  }
87206
87227
  }
87207
- return ts.Debug.assertNever(input, "Unhandled top-level node in declaration emit: " + ts.SyntaxKind[input.kind]);
87228
+ return ts.Debug.assertNever(input, "Unhandled top-level node in declaration emit: ".concat(ts.SyntaxKind[input.kind]));
87208
87229
  function cleanup(node) {
87209
87230
  if (isEnclosingDeclaration(input)) {
87210
87231
  enclosingDeclaration = previousEnclosingDeclaration;
@@ -87973,13 +87994,13 @@ var ts;
87973
87994
  if (ts.fileExtensionIs(inputFileName, ".json"))
87974
87995
  return;
87975
87996
  if (js && configFile.options.sourceMap) {
87976
- addOutput(js + ".map");
87997
+ addOutput("".concat(js, ".map"));
87977
87998
  }
87978
87999
  if (ts.getEmitDeclarations(configFile.options)) {
87979
88000
  var dts = getOutputDeclarationFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory);
87980
88001
  addOutput(dts);
87981
88002
  if (configFile.options.declarationMap) {
87982
- addOutput(dts + ".map");
88003
+ addOutput("".concat(dts, ".map"));
87983
88004
  }
87984
88005
  }
87985
88006
  }
@@ -88039,7 +88060,7 @@ var ts;
88039
88060
  function getFirstProjectOutput(configFile, ignoreCase) {
88040
88061
  if (ts.outFile(configFile.options)) {
88041
88062
  var jsFilePath = getOutputPathsForBundle(configFile.options, false).jsFilePath;
88042
- return ts.Debug.checkDefined(jsFilePath, "project " + configFile.options.configFilePath + " expected to have at least one output");
88063
+ return ts.Debug.checkDefined(jsFilePath, "project ".concat(configFile.options.configFilePath, " expected to have at least one output"));
88043
88064
  }
88044
88065
  var getCommonSourceDirectory = ts.memoize(function () { return getCommonSourceDirectoryOfConfig(configFile, ignoreCase); });
88045
88066
  for (var _a = 0, _b = configFile.fileNames; _a < _b.length; _a++) {
@@ -88058,7 +88079,7 @@ var ts;
88058
88079
  var buildInfoPath = getTsBuildInfoEmitOutputFilePath(configFile.options);
88059
88080
  if (buildInfoPath)
88060
88081
  return buildInfoPath;
88061
- return ts.Debug.fail("project " + configFile.options.configFilePath + " expected to have at least one output");
88082
+ return ts.Debug.fail("project ".concat(configFile.options.configFilePath, " expected to have at least one output"));
88062
88083
  }
88063
88084
  ts.getFirstProjectOutput = getFirstProjectOutput;
88064
88085
  function emitFiles(resolver, host, targetSourceFile, _a, emitOnlyDtsFiles, onlyBuildInfo, forceDtsEmit) {
@@ -88268,7 +88289,7 @@ var ts;
88268
88289
  if (sourceMappingURL) {
88269
88290
  if (!writer.isAtStartOfLine())
88270
88291
  writer.rawWrite(newLine);
88271
- writer.writeComment("//# " + "sourceMappingURL" + "=" + sourceMappingURL);
88292
+ writer.writeComment("//# ".concat("sourceMappingURL", "=").concat(sourceMappingURL));
88272
88293
  }
88273
88294
  if (sourceMapFilePath) {
88274
88295
  var sourceMap = sourceMapGenerator.toString();
@@ -88308,7 +88329,7 @@ var ts;
88308
88329
  if (mapOptions.inlineSourceMap) {
88309
88330
  var sourceMapText = sourceMapGenerator.toString();
88310
88331
  var base64SourceMapText = ts.base64encode(ts.sys, sourceMapText);
88311
- return "data:application/json;base64," + base64SourceMapText;
88332
+ return "data:application/json;base64,".concat(base64SourceMapText);
88312
88333
  }
88313
88334
  var sourceMapFile = ts.getBaseFileName(ts.normalizeSlashes(ts.Debug.checkDefined(sourceMapFilePath)));
88314
88335
  if (mapOptions.mapRoot) {
@@ -88472,7 +88493,7 @@ var ts;
88472
88493
  return;
88473
88494
  break;
88474
88495
  default:
88475
- ts.Debug.fail("Unexpected path: " + name);
88496
+ ts.Debug.fail("Unexpected path: ".concat(name));
88476
88497
  }
88477
88498
  outputFiles.push({ name: name, text: text, writeByteOrderMark: writeByteOrderMark });
88478
88499
  },
@@ -89280,7 +89301,7 @@ var ts;
89280
89301
  return writeTokenNode(node, writeKeyword);
89281
89302
  if (ts.isTokenKind(node.kind))
89282
89303
  return writeTokenNode(node, writePunctuation);
89283
- ts.Debug.fail("Unhandled SyntaxKind: " + ts.Debug.formatSyntaxKind(node.kind) + ".");
89304
+ ts.Debug.fail("Unhandled SyntaxKind: ".concat(ts.Debug.formatSyntaxKind(node.kind), "."));
89284
89305
  }
89285
89306
  function emitMappedTypeParameter(node) {
89286
89307
  emit(node.name);
@@ -89420,12 +89441,12 @@ var ts;
89420
89441
  }
89421
89442
  }
89422
89443
  function emitPlaceholder(hint, node, snippet) {
89423
- nonEscapingWrite("${" + snippet.order + ":");
89444
+ nonEscapingWrite("${".concat(snippet.order, ":"));
89424
89445
  pipelineEmitWithHintWorker(hint, node, false);
89425
89446
  nonEscapingWrite("}");
89426
89447
  }
89427
89448
  function emitTabStop(snippet) {
89428
- nonEscapingWrite("$" + snippet.order);
89449
+ nonEscapingWrite("$".concat(snippet.order));
89429
89450
  }
89430
89451
  function emitIdentifier(node) {
89431
89452
  var writeText = node.symbol ? writeSymbol : write;
@@ -91053,17 +91074,17 @@ var ts;
91053
91074
  writeLine();
91054
91075
  }
91055
91076
  if (currentSourceFile && currentSourceFile.moduleName) {
91056
- writeComment("/// <amd-module name=\"" + currentSourceFile.moduleName + "\" />");
91077
+ writeComment("/// <amd-module name=\"".concat(currentSourceFile.moduleName, "\" />"));
91057
91078
  writeLine();
91058
91079
  }
91059
91080
  if (currentSourceFile && currentSourceFile.amdDependencies) {
91060
91081
  for (var _a = 0, _b = currentSourceFile.amdDependencies; _a < _b.length; _a++) {
91061
91082
  var dep = _b[_a];
91062
91083
  if (dep.name) {
91063
- writeComment("/// <amd-dependency name=\"" + dep.name + "\" path=\"" + dep.path + "\" />");
91084
+ writeComment("/// <amd-dependency name=\"".concat(dep.name, "\" path=\"").concat(dep.path, "\" />"));
91064
91085
  }
91065
91086
  else {
91066
- writeComment("/// <amd-dependency path=\"" + dep.path + "\" />");
91087
+ writeComment("/// <amd-dependency path=\"".concat(dep.path, "\" />"));
91067
91088
  }
91068
91089
  writeLine();
91069
91090
  }
@@ -91071,7 +91092,7 @@ var ts;
91071
91092
  for (var _c = 0, files_2 = files; _c < files_2.length; _c++) {
91072
91093
  var directive = files_2[_c];
91073
91094
  var pos = writer.getTextPos();
91074
- writeComment("/// <reference path=\"" + directive.fileName + "\" />");
91095
+ writeComment("/// <reference path=\"".concat(directive.fileName, "\" />"));
91075
91096
  if (bundleFileInfo)
91076
91097
  bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: "reference", data: directive.fileName });
91077
91098
  writeLine();
@@ -91079,7 +91100,7 @@ var ts;
91079
91100
  for (var _d = 0, types_24 = types; _d < types_24.length; _d++) {
91080
91101
  var directive = types_24[_d];
91081
91102
  var pos = writer.getTextPos();
91082
- writeComment("/// <reference types=\"" + directive.fileName + "\" />");
91103
+ writeComment("/// <reference types=\"".concat(directive.fileName, "\" />"));
91083
91104
  if (bundleFileInfo)
91084
91105
  bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: "type", data: directive.fileName });
91085
91106
  writeLine();
@@ -91087,7 +91108,7 @@ var ts;
91087
91108
  for (var _e = 0, libs_1 = libs; _e < libs_1.length; _e++) {
91088
91109
  var directive = libs_1[_e];
91089
91110
  var pos = writer.getTextPos();
91090
- writeComment("/// <reference lib=\"" + directive.fileName + "\" />");
91111
+ writeComment("/// <reference lib=\"".concat(directive.fileName, "\" />"));
91091
91112
  if (bundleFileInfo)
91092
91113
  bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: "lib", data: directive.fileName });
91093
91114
  writeLine();
@@ -91781,9 +91802,9 @@ var ts;
91781
91802
  var textSourceNode = node.textSourceNode;
91782
91803
  if (ts.isIdentifier(textSourceNode) || ts.isNumericLiteral(textSourceNode)) {
91783
91804
  var text = ts.isNumericLiteral(textSourceNode) ? textSourceNode.text : getTextOfNode(textSourceNode);
91784
- return jsxAttributeEscape ? "\"" + ts.escapeJsxAttributeString(text) + "\"" :
91785
- neverAsciiEscape || (ts.getEmitFlags(node) & 16777216) ? "\"" + ts.escapeString(text) + "\"" :
91786
- "\"" + ts.escapeNonAsciiString(text) + "\"";
91805
+ return jsxAttributeEscape ? "\"".concat(ts.escapeJsxAttributeString(text), "\"") :
91806
+ neverAsciiEscape || (ts.getEmitFlags(node) & 16777216) ? "\"".concat(ts.escapeString(text), "\"") :
91807
+ "\"".concat(ts.escapeNonAsciiString(text), "\"");
91787
91808
  }
91788
91809
  else {
91789
91810
  return getLiteralTextOfNode(textSourceNode, neverAsciiEscape, jsxAttributeEscape);
@@ -92182,8 +92203,8 @@ var ts;
92182
92203
  }
92183
92204
  function formatSynthesizedComment(comment) {
92184
92205
  return comment.kind === 3
92185
- ? "/*" + comment.text + "*/"
92186
- : "//" + comment.text;
92206
+ ? "/*".concat(comment.text, "*/")
92207
+ : "//".concat(comment.text);
92187
92208
  }
92188
92209
  function emitBodyWithDetachedComments(node, detachedRange, emitCallback) {
92189
92210
  enterComment();
@@ -92628,7 +92649,7 @@ var ts;
92628
92649
  var rootResult = tryReadDirectory(rootDir, rootDirPath);
92629
92650
  var rootSymLinkResult;
92630
92651
  if (rootResult !== undefined) {
92631
- return ts.matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath, directoryExists);
92652
+ return ts.matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath);
92632
92653
  }
92633
92654
  return host.readDirectory(rootDir, extensions, excludes, includes, depth);
92634
92655
  function getFileSystemEntries(dir) {
@@ -92797,18 +92818,18 @@ var ts;
92797
92818
  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;
92798
92819
  var newPath = ts.removeIgnoredPath(fileOrDirectoryPath);
92799
92820
  if (!newPath) {
92800
- writeLog("Project: " + configFileName + " Detected ignored path: " + fileOrDirectory);
92821
+ writeLog("Project: ".concat(configFileName, " Detected ignored path: ").concat(fileOrDirectory));
92801
92822
  return true;
92802
92823
  }
92803
92824
  fileOrDirectoryPath = newPath;
92804
92825
  if (fileOrDirectoryPath === watchedDirPath)
92805
92826
  return false;
92806
92827
  if (ts.hasExtension(fileOrDirectoryPath) && !ts.isSupportedSourceFileName(fileOrDirectory, options, extraFileExtensions)) {
92807
- writeLog("Project: " + configFileName + " Detected file add/remove of non supported extension: " + fileOrDirectory);
92828
+ writeLog("Project: ".concat(configFileName, " Detected file add/remove of non supported extension: ").concat(fileOrDirectory));
92808
92829
  return true;
92809
92830
  }
92810
92831
  if (ts.isExcludedFile(fileOrDirectory, options.configFile.configFileSpecs, ts.getNormalizedAbsolutePath(ts.getDirectoryPath(configFileName), currentDirectory), useCaseSensitiveFileNames, currentDirectory)) {
92811
- writeLog("Project: " + configFileName + " Detected excluded file: " + fileOrDirectory);
92832
+ writeLog("Project: ".concat(configFileName, " Detected excluded file: ").concat(fileOrDirectory));
92812
92833
  return true;
92813
92834
  }
92814
92835
  if (!program)
@@ -92827,7 +92848,7 @@ var ts;
92827
92848
  var builderProgram = !realProgram && !ts.isArray(program) ? program : undefined;
92828
92849
  if (hasSourceFile((filePathWithoutExtension + ".ts")) ||
92829
92850
  hasSourceFile((filePathWithoutExtension + ".tsx"))) {
92830
- writeLog("Project: " + configFileName + " Detected output file: " + fileOrDirectory);
92851
+ writeLog("Project: ".concat(configFileName, " Detected output file: ").concat(fileOrDirectory));
92831
92852
  return true;
92832
92853
  }
92833
92854
  return false;
@@ -92895,36 +92916,36 @@ var ts;
92895
92916
  host.useCaseSensitiveFileNames();
92896
92917
  }
92897
92918
  function createExcludeWatcherWithLogging(file, flags, options, detailInfo1, detailInfo2) {
92898
- log("ExcludeWatcher:: Added:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
92919
+ log("ExcludeWatcher:: Added:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)));
92899
92920
  return {
92900
- close: function () { return log("ExcludeWatcher:: Close:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)); }
92921
+ close: function () { return log("ExcludeWatcher:: Close:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo))); }
92901
92922
  };
92902
92923
  }
92903
92924
  function createFileWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) {
92904
- log("FileWatcher:: Added:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
92925
+ log("FileWatcher:: Added:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)));
92905
92926
  var watcher = triggerInvokingFactory.watchFile(file, cb, flags, options, detailInfo1, detailInfo2);
92906
92927
  return {
92907
92928
  close: function () {
92908
- log("FileWatcher:: Close:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
92929
+ log("FileWatcher:: Close:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)));
92909
92930
  watcher.close();
92910
92931
  }
92911
92932
  };
92912
92933
  }
92913
92934
  function createDirectoryWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) {
92914
- var watchInfo = "DirectoryWatcher:: Added:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo);
92935
+ var watchInfo = "DirectoryWatcher:: Added:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
92915
92936
  log(watchInfo);
92916
92937
  var start = ts.timestamp();
92917
92938
  var watcher = triggerInvokingFactory.watchDirectory(file, cb, flags, options, detailInfo1, detailInfo2);
92918
92939
  var elapsed = ts.timestamp() - start;
92919
- log("Elapsed:: " + elapsed + "ms " + watchInfo);
92940
+ log("Elapsed:: ".concat(elapsed, "ms ").concat(watchInfo));
92920
92941
  return {
92921
92942
  close: function () {
92922
- var watchInfo = "DirectoryWatcher:: Close:: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo);
92943
+ var watchInfo = "DirectoryWatcher:: Close:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
92923
92944
  log(watchInfo);
92924
92945
  var start = ts.timestamp();
92925
92946
  watcher.close();
92926
92947
  var elapsed = ts.timestamp() - start;
92927
- log("Elapsed:: " + elapsed + "ms " + watchInfo);
92948
+ log("Elapsed:: ".concat(elapsed, "ms ").concat(watchInfo));
92928
92949
  }
92929
92950
  };
92930
92951
  }
@@ -92934,16 +92955,16 @@ var ts;
92934
92955
  for (var _i = 0; _i < arguments.length; _i++) {
92935
92956
  args[_i] = arguments[_i];
92936
92957
  }
92937
- var triggerredInfo = (key === "watchFile" ? "FileWatcher" : "DirectoryWatcher") + ":: Triggered with " + args[0] + " " + (args[1] !== undefined ? args[1] : "") + ":: " + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo);
92958
+ 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));
92938
92959
  log(triggerredInfo);
92939
92960
  var start = ts.timestamp();
92940
92961
  cb.call.apply(cb, __spreadArray([undefined], args, false));
92941
92962
  var elapsed = ts.timestamp() - start;
92942
- log("Elapsed:: " + elapsed + "ms " + triggerredInfo);
92963
+ log("Elapsed:: ".concat(elapsed, "ms ").concat(triggerredInfo));
92943
92964
  }, flags, options, detailInfo1, detailInfo2); };
92944
92965
  }
92945
92966
  function getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo) {
92946
- return "WatchInfo: " + file + " " + flags + " " + JSON.stringify(options) + " " + (getDetailWatchInfo ? getDetailWatchInfo(detailInfo1, detailInfo2) : detailInfo2 === undefined ? detailInfo1 : detailInfo1 + " " + detailInfo2);
92967
+ return "WatchInfo: ".concat(file, " ").concat(flags, " ").concat(JSON.stringify(options), " ").concat(getDetailWatchInfo ? getDetailWatchInfo(detailInfo1, detailInfo2) : detailInfo2 === undefined ? detailInfo1 : "".concat(detailInfo1, " ").concat(detailInfo2));
92947
92968
  }
92948
92969
  }
92949
92970
  ts.getWatchFactory = getWatchFactory;
@@ -93233,12 +93254,12 @@ var ts;
93233
93254
  }
93234
93255
  ts.formatDiagnostics = formatDiagnostics;
93235
93256
  function formatDiagnostic(diagnostic, host) {
93236
- var errorMessage = ts.diagnosticCategoryName(diagnostic) + " TS" + diagnostic.code + ": " + flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine()) + host.getNewLine();
93257
+ var errorMessage = "".concat(ts.diagnosticCategoryName(diagnostic), " TS").concat(diagnostic.code, ": ").concat(flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine())).concat(host.getNewLine());
93237
93258
  if (diagnostic.file) {
93238
93259
  var _a = ts.getLineAndCharacterOfPosition(diagnostic.file, diagnostic.start), line = _a.line, character = _a.character;
93239
93260
  var fileName = diagnostic.file.fileName;
93240
93261
  var relativeFileName = ts.convertToRelativePath(fileName, host.getCurrentDirectory(), function (fileName) { return host.getCanonicalFileName(fileName); });
93241
- return relativeFileName + "(" + (line + 1) + "," + (character + 1) + "): " + errorMessage;
93262
+ return "".concat(relativeFileName, "(").concat(line + 1, ",").concat(character + 1, "): ") + errorMessage;
93242
93263
  }
93243
93264
  return errorMessage;
93244
93265
  }
@@ -93316,9 +93337,9 @@ var ts;
93316
93337
  var output = "";
93317
93338
  output += color(relativeFileName, ForegroundColorEscapeSequences.Cyan);
93318
93339
  output += ":";
93319
- output += color("" + (firstLine + 1), ForegroundColorEscapeSequences.Yellow);
93340
+ output += color("".concat(firstLine + 1), ForegroundColorEscapeSequences.Yellow);
93320
93341
  output += ":";
93321
- output += color("" + (firstLineChar + 1), ForegroundColorEscapeSequences.Yellow);
93342
+ output += color("".concat(firstLineChar + 1), ForegroundColorEscapeSequences.Yellow);
93322
93343
  return output;
93323
93344
  }
93324
93345
  ts.formatLocation = formatLocation;
@@ -93332,7 +93353,7 @@ var ts;
93332
93353
  output += " - ";
93333
93354
  }
93334
93355
  output += formatColorAndReset(ts.diagnosticCategoryName(diagnostic), getCategoryFormat(diagnostic.category));
93335
- output += formatColorAndReset(" TS" + diagnostic.code + ": ", ForegroundColorEscapeSequences.Grey);
93356
+ output += formatColorAndReset(" TS".concat(diagnostic.code, ": "), ForegroundColorEscapeSequences.Grey);
93336
93357
  output += flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine());
93337
93358
  if (diagnostic.file) {
93338
93359
  output += host.getNewLine();
@@ -93432,7 +93453,7 @@ var ts;
93432
93453
  var result = void 0;
93433
93454
  var mode = getModeForResolutionAtIndex(containingFile, i);
93434
93455
  i++;
93435
- var cacheKey = mode !== undefined ? mode + "|" + name : name;
93456
+ var cacheKey = mode !== undefined ? "".concat(mode, "|").concat(name) : name;
93436
93457
  if (cache.has(cacheKey)) {
93437
93458
  result = cache.get(cacheKey);
93438
93459
  }
@@ -95205,7 +95226,7 @@ var ts;
95205
95226
  path += (i === 2 ? "/" : "-") + components[i];
95206
95227
  i++;
95207
95228
  }
95208
- var resolveFrom = ts.combinePaths(currentDirectory, "__lib_node_modules_lookup_" + libFileName + "__.ts");
95229
+ var resolveFrom = ts.combinePaths(currentDirectory, "__lib_node_modules_lookup_".concat(libFileName, "__.ts"));
95209
95230
  var localOverrideModuleResult = ts.resolveModuleName("@typescript/lib-" + path, resolveFrom, { moduleResolution: ts.ModuleResolutionKind.NodeJs }, host, moduleResolutionCache);
95210
95231
  if (localOverrideModuleResult === null || localOverrideModuleResult === void 0 ? void 0 : localOverrideModuleResult.resolvedModule) {
95211
95232
  return localOverrideModuleResult.resolvedModule.resolvedFileName;
@@ -95974,10 +95995,10 @@ var ts;
95974
95995
  }
95975
95996
  function directoryExistsIfProjectReferenceDeclDir(dir) {
95976
95997
  var dirPath = host.toPath(dir);
95977
- var dirPathWithTrailingDirectorySeparator = "" + dirPath + ts.directorySeparator;
95998
+ var dirPathWithTrailingDirectorySeparator = "".concat(dirPath).concat(ts.directorySeparator);
95978
95999
  return ts.forEachKey(setOfDeclarationDirectories, function (declDirPath) { return dirPath === declDirPath ||
95979
96000
  ts.startsWith(declDirPath, dirPathWithTrailingDirectorySeparator) ||
95980
- ts.startsWith(dirPath, declDirPath + "/"); });
96001
+ ts.startsWith(dirPath, "".concat(declDirPath, "/")); });
95981
96002
  }
95982
96003
  function handleDirectoryCouldBeSymlink(directory) {
95983
96004
  var _a;
@@ -96025,7 +96046,7 @@ var ts;
96025
96046
  var result = fileOrDirectoryExistsUsingSource(fileOrDirectoryPath.replace(directoryPath, symlinkedDirectory.realPath));
96026
96047
  if (isFile && result) {
96027
96048
  var absolutePath = ts.getNormalizedAbsolutePath(fileOrDirectory, host.compilerHost.getCurrentDirectory());
96028
- symlinkCache.setSymlinkedFile(fileOrDirectoryPath, "" + symlinkedDirectory.real + absolutePath.replace(new RegExp(directoryPath, "i"), ""));
96049
+ symlinkCache.setSymlinkedFile(fileOrDirectoryPath, "".concat(symlinkedDirectory.real).concat(absolutePath.replace(new RegExp(directoryPath, "i"), "")));
96029
96050
  }
96030
96051
  return result;
96031
96052
  }) || false;
@@ -96409,7 +96430,7 @@ var ts;
96409
96430
  var emitOutput_1 = getFileEmitOutput(programOfThisState, sourceFile, true, cancellationToken, undefined, true);
96410
96431
  var firstDts_1 = ts.firstOrUndefined(emitOutput_1.outputFiles);
96411
96432
  if (firstDts_1) {
96412
- ts.Debug.assert(ts.fileExtensionIsOneOf(firstDts_1.name, [".d.ts", ".d.mts", ".d.cts"]), "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; })); });
96433
+ ts.Debug.assert(ts.fileExtensionIsOneOf(firstDts_1.name, [".d.ts", ".d.mts", ".d.cts"]), "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; }))); });
96413
96434
  latestSignature = (computeHash || ts.generateDjb2Hash)(firstDts_1.text);
96414
96435
  if (exportedModulesMapCache && latestSignature !== prevSignature) {
96415
96436
  updateExportedModules(sourceFile, emitOutput_1.exportedModulesFromDeclarationEmit, exportedModulesMapCache);
@@ -96805,7 +96826,7 @@ var ts;
96805
96826
  return;
96806
96827
  }
96807
96828
  else {
96808
- 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);
96829
+ 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));
96809
96830
  }
96810
96831
  if (!state.compilerOptions.assumeChangesOnlyAffectDirectDependencies) {
96811
96832
  forEachReferencingModulesOfExportOfAffectedFile(state, affectedFile, function (state, path) { return handleDtsMayChangeOf(state, path, cancellationToken, computeHash); });
@@ -97777,7 +97798,7 @@ var ts;
97777
97798
  failedLookupLocation = ts.isRootedDiskPath(failedLookupLocation) ? ts.normalizePath(failedLookupLocation) : ts.getNormalizedAbsolutePath(failedLookupLocation, getCurrentDirectory());
97778
97799
  var failedLookupPathSplit = failedLookupLocationPath.split(ts.directorySeparator);
97779
97800
  var failedLookupSplit = failedLookupLocation.split(ts.directorySeparator);
97780
- ts.Debug.assert(failedLookupSplit.length === failedLookupPathSplit.length, "FailedLookup: " + failedLookupLocation + " failedLookupLocationPath: " + failedLookupLocationPath);
97801
+ ts.Debug.assert(failedLookupSplit.length === failedLookupPathSplit.length, "FailedLookup: ".concat(failedLookupLocation, " failedLookupLocationPath: ").concat(failedLookupLocationPath));
97781
97802
  if (failedLookupPathSplit.length > rootSplitLength + 1) {
97782
97803
  return {
97783
97804
  dir: failedLookupSplit.slice(0, rootSplitLength + 1).join(ts.directorySeparator),
@@ -98616,13 +98637,15 @@ var ts;
98616
98637
  var moduleFileToTry = path;
98617
98638
  if (host.fileExists(packageJsonPath)) {
98618
98639
  var packageJsonContent = JSON.parse(host.readFile(packageJsonPath));
98619
- var fromExports = packageJsonContent.exports && typeof packageJsonContent.name === "string" ? tryGetModuleNameFromExports(options, path, packageRootPath, packageJsonContent.name, packageJsonContent.exports, ["node", "types"]) : undefined;
98620
- if (fromExports) {
98621
- var withJsExtension = !ts.hasTSFileExtension(fromExports.moduleFileToTry) ? fromExports : { moduleFileToTry: ts.removeFileExtension(fromExports.moduleFileToTry) + tryGetJSExtensionForFile(fromExports.moduleFileToTry, options) };
98622
- return __assign(__assign({}, withJsExtension), { verbatimFromExports: true });
98623
- }
98624
- if (packageJsonContent.exports) {
98625
- return { moduleFileToTry: path, blockedByExports: true };
98640
+ if (ts.getEmitModuleResolutionKind(options) === ts.ModuleResolutionKind.Node12 || ts.getEmitModuleResolutionKind(options) === ts.ModuleResolutionKind.NodeNext) {
98641
+ var fromExports = packageJsonContent.exports && typeof packageJsonContent.name === "string" ? tryGetModuleNameFromExports(options, path, packageRootPath, packageJsonContent.name, packageJsonContent.exports, ["node", "types"]) : undefined;
98642
+ if (fromExports) {
98643
+ var withJsExtension = !ts.hasTSFileExtension(fromExports.moduleFileToTry) ? fromExports : { moduleFileToTry: ts.removeFileExtension(fromExports.moduleFileToTry) + tryGetJSExtensionForFile(fromExports.moduleFileToTry, options) };
98644
+ return __assign(__assign({}, withJsExtension), { verbatimFromExports: true });
98645
+ }
98646
+ if (packageJsonContent.exports) {
98647
+ return { moduleFileToTry: path, blockedByExports: true };
98648
+ }
98626
98649
  }
98627
98650
  var versionPaths = packageJsonContent.typesVersions
98628
98651
  ? ts.getPackageJsonTypesVersionsPaths(packageJsonContent.typesVersions)
@@ -98731,7 +98754,7 @@ var ts;
98731
98754
  }
98732
98755
  function getJSExtensionForFile(fileName, options) {
98733
98756
  var _a;
98734
- return (_a = tryGetJSExtensionForFile(fileName, options)) !== null && _a !== void 0 ? _a : ts.Debug.fail("Extension " + ts.extensionFromPath(fileName) + " is unsupported:: FileName:: " + fileName);
98757
+ return (_a = tryGetJSExtensionForFile(fileName, options)) !== null && _a !== void 0 ? _a : ts.Debug.fail("Extension ".concat(ts.extensionFromPath(fileName), " is unsupported:: FileName:: ").concat(fileName));
98735
98758
  }
98736
98759
  function tryGetJSExtensionForFile(fileName, options) {
98737
98760
  var ext = ts.tryGetExtensionFromPath(fileName);
@@ -98821,8 +98844,8 @@ var ts;
98821
98844
  return pretty ?
98822
98845
  function (diagnostic, newLine, options) {
98823
98846
  clearScreenIfNotWatchingForFileChanges(system, diagnostic, options);
98824
- var output = "[" + ts.formatColorAndReset(getLocaleTimeString(system), ts.ForegroundColorEscapeSequences.Grey) + "] ";
98825
- output += "" + ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine) + (newLine + newLine);
98847
+ var output = "[".concat(ts.formatColorAndReset(getLocaleTimeString(system), ts.ForegroundColorEscapeSequences.Grey), "] ");
98848
+ output += "".concat(ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)).concat(newLine + newLine);
98826
98849
  system.write(output);
98827
98850
  } :
98828
98851
  function (diagnostic, newLine, options) {
@@ -98830,8 +98853,8 @@ var ts;
98830
98853
  if (!clearScreenIfNotWatchingForFileChanges(system, diagnostic, options)) {
98831
98854
  output += newLine;
98832
98855
  }
98833
- output += getLocaleTimeString(system) + " - ";
98834
- output += "" + ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine) + getPlainDiagnosticFollowingNewLines(diagnostic, newLine);
98856
+ output += "".concat(getLocaleTimeString(system), " - ");
98857
+ output += "".concat(ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)).concat(getPlainDiagnosticFollowingNewLines(diagnostic, newLine));
98835
98858
  system.write(output);
98836
98859
  };
98837
98860
  }
@@ -98858,7 +98881,7 @@ var ts;
98858
98881
  if (errorCount === 0)
98859
98882
  return "";
98860
98883
  var d = ts.createCompilerDiagnostic(errorCount === 1 ? ts.Diagnostics.Found_1_error : ts.Diagnostics.Found_0_errors, errorCount);
98861
- return "" + newLine + ts.flattenDiagnosticMessageText(d.messageText, newLine) + newLine + newLine;
98884
+ return "".concat(newLine).concat(ts.flattenDiagnosticMessageText(d.messageText, newLine)).concat(newLine).concat(newLine);
98862
98885
  }
98863
98886
  ts.getErrorSummaryText = getErrorSummaryText;
98864
98887
  function isBuilderProgram(program) {
@@ -98884,9 +98907,9 @@ var ts;
98884
98907
  var relativeFileName = function (fileName) { return ts.convertToRelativePath(fileName, program.getCurrentDirectory(), getCanonicalFileName); };
98885
98908
  for (var _i = 0, _c = program.getSourceFiles(); _i < _c.length; _i++) {
98886
98909
  var file = _c[_i];
98887
- write("" + toFileName(file, relativeFileName));
98888
- (_a = reasons.get(file.path)) === null || _a === void 0 ? void 0 : _a.forEach(function (reason) { return write(" " + fileIncludeReasonToDiagnostics(program, reason, relativeFileName).messageText); });
98889
- (_b = explainIfFileIsRedirect(file, relativeFileName)) === null || _b === void 0 ? void 0 : _b.forEach(function (d) { return write(" " + d.messageText); });
98910
+ write("".concat(toFileName(file, relativeFileName)));
98911
+ (_a = reasons.get(file.path)) === null || _a === void 0 ? void 0 : _a.forEach(function (reason) { return write(" ".concat(fileIncludeReasonToDiagnostics(program, reason, relativeFileName).messageText)); });
98912
+ (_b = explainIfFileIsRedirect(file, relativeFileName)) === null || _b === void 0 ? void 0 : _b.forEach(function (d) { return write(" ".concat(d.messageText)); });
98890
98913
  }
98891
98914
  }
98892
98915
  ts.explainFiles = explainFiles;
@@ -98924,7 +98947,7 @@ var ts;
98924
98947
  if (isJsonFile && !ts.endsWith(includeSpec, ".json"))
98925
98948
  return false;
98926
98949
  var pattern = ts.getPatternFromSpec(includeSpec, basePath, "files");
98927
- return !!pattern && ts.getRegexFromPattern("(" + pattern + ")$", useCaseSensitiveFileNames).test(fileName);
98950
+ return !!pattern && ts.getRegexFromPattern("(".concat(pattern, ")$"), useCaseSensitiveFileNames).test(fileName);
98928
98951
  });
98929
98952
  }
98930
98953
  ts.getMatchedIncludeSpec = getMatchedIncludeSpec;
@@ -98933,7 +98956,7 @@ var ts;
98933
98956
  var options = program.getCompilerOptions();
98934
98957
  if (ts.isReferencedFile(reason)) {
98935
98958
  var referenceLocation = ts.getReferencedFileLocation(function (path) { return program.getSourceFileByPath(path); }, reason);
98936
- var referenceText = ts.isReferenceFileLocation(referenceLocation) ? referenceLocation.file.text.substring(referenceLocation.pos, referenceLocation.end) : "\"" + referenceLocation.text + "\"";
98959
+ var referenceText = ts.isReferenceFileLocation(referenceLocation) ? referenceLocation.file.text.substring(referenceLocation.pos, referenceLocation.end) : "\"".concat(referenceLocation.text, "\"");
98937
98960
  var message = void 0;
98938
98961
  ts.Debug.assert(ts.isReferenceFileLocation(referenceLocation) || reason.kind === ts.FileIncludeKind.Import, "Only synthetic references are imports");
98939
98962
  switch (reason.kind) {
@@ -99044,7 +99067,7 @@ var ts;
99044
99067
  var currentDir_1 = program.getCurrentDirectory();
99045
99068
  ts.forEach(emittedFiles, function (file) {
99046
99069
  var filepath = ts.getNormalizedAbsolutePath(file, currentDir_1);
99047
- write("TSFILE: " + filepath);
99070
+ write("TSFILE: ".concat(filepath));
99048
99071
  });
99049
99072
  listFiles(program, write);
99050
99073
  }
@@ -99350,7 +99373,7 @@ var ts;
99350
99373
  }
99351
99374
  var _b = ts.createWatchFactory(host, compilerOptions), watchFile = _b.watchFile, watchDirectory = _b.watchDirectory, writeLog = _b.writeLog;
99352
99375
  var getCanonicalFileName = ts.createGetCanonicalFileName(useCaseSensitiveFileNames);
99353
- writeLog("Current directory: " + currentDirectory + " CaseSensitiveFileNames: " + useCaseSensitiveFileNames);
99376
+ writeLog("Current directory: ".concat(currentDirectory, " CaseSensitiveFileNames: ").concat(useCaseSensitiveFileNames));
99354
99377
  var configFileWatcher;
99355
99378
  if (configFileName) {
99356
99379
  configFileWatcher = watchFile(configFileName, scheduleProgramReload, ts.PollingInterval.High, watchOptions, ts.WatchType.ConfigFile);
@@ -99490,10 +99513,10 @@ var ts;
99490
99513
  }
99491
99514
  function createNewProgram(hasInvalidatedResolution) {
99492
99515
  writeLog("CreatingProgramWith::");
99493
- writeLog(" roots: " + JSON.stringify(rootFileNames));
99494
- writeLog(" options: " + JSON.stringify(compilerOptions));
99516
+ writeLog(" roots: ".concat(JSON.stringify(rootFileNames)));
99517
+ writeLog(" options: ".concat(JSON.stringify(compilerOptions)));
99495
99518
  if (projectReferences)
99496
- writeLog(" projectReferences: " + JSON.stringify(projectReferences));
99519
+ writeLog(" projectReferences: ".concat(JSON.stringify(projectReferences)));
99497
99520
  var needsUpdateInTypeRootWatch = hasChangedCompilerOptions || !getCurrentProgram();
99498
99521
  hasChangedCompilerOptions = false;
99499
99522
  hasChangedConfigFileParsingErrors = false;
@@ -99635,7 +99658,7 @@ var ts;
99635
99658
  return resolutionCache.invalidateResolutionsOfFailedLookupLocations();
99636
99659
  }
99637
99660
  var pending = clearInvalidateResolutionsOfFailedLookupLocations();
99638
- writeLog("Scheduling invalidateFailedLookup" + (pending ? ", Cancelled earlier one" : ""));
99661
+ writeLog("Scheduling invalidateFailedLookup".concat(pending ? ", Cancelled earlier one" : ""));
99639
99662
  timerToInvalidateFailedLookupResolutions = host.setTimeout(invalidateResolutionsOfFailedLookup, 250);
99640
99663
  }
99641
99664
  function invalidateResolutionsOfFailedLookup() {
@@ -99691,7 +99714,7 @@ var ts;
99691
99714
  synchronizeProgram();
99692
99715
  }
99693
99716
  function reloadConfigFile() {
99694
- writeLog("Reloading config file: " + configFileName);
99717
+ writeLog("Reloading config file: ".concat(configFileName));
99695
99718
  reloadLevel = ts.ConfigFileProgramReloadLevel.None;
99696
99719
  if (cachedDirectoryStructureHost) {
99697
99720
  cachedDirectoryStructureHost.clearCache();
@@ -99729,7 +99752,7 @@ var ts;
99729
99752
  return config.parsedCommandLine;
99730
99753
  }
99731
99754
  }
99732
- writeLog("Loading config file: " + configFileName);
99755
+ writeLog("Loading config file: ".concat(configFileName));
99733
99756
  var parsedCommandLine = host.getParsedCommandLine ?
99734
99757
  host.getParsedCommandLine(configFileName) :
99735
99758
  getParsedCommandLineFromConfigFileHost(configFileName);
@@ -99982,8 +100005,8 @@ var ts;
99982
100005
  ts.getBuildOrderFromAnyBuildOrder = getBuildOrderFromAnyBuildOrder;
99983
100006
  function createBuilderStatusReporter(system, pretty) {
99984
100007
  return function (diagnostic) {
99985
- var output = pretty ? "[" + ts.formatColorAndReset(ts.getLocaleTimeString(system), ts.ForegroundColorEscapeSequences.Grey) + "] " : ts.getLocaleTimeString(system) + " - ";
99986
- output += "" + ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine) + (system.newLine + system.newLine);
100008
+ var output = pretty ? "[".concat(ts.formatColorAndReset(ts.getLocaleTimeString(system), ts.ForegroundColorEscapeSequences.Grey), "] ") : "".concat(ts.getLocaleTimeString(system), " - ");
100009
+ output += "".concat(ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)).concat(system.newLine + system.newLine);
99987
100010
  system.write(output);
99988
100011
  };
99989
100012
  }
@@ -100726,7 +100749,7 @@ var ts;
100726
100749
  function listEmittedFile(_a, proj, file) {
100727
100750
  var write = _a.write;
100728
100751
  if (write && proj.options.listEmittedFiles) {
100729
- write("TSFILE: " + file);
100752
+ write("TSFILE: ".concat(file));
100730
100753
  }
100731
100754
  }
100732
100755
  function getOldProgram(_a, proj, parsed) {
@@ -100755,7 +100778,7 @@ var ts;
100755
100778
  function buildErrors(state, resolvedPath, program, config, diagnostics, buildResult, errorType) {
100756
100779
  var canEmitBuildInfo = !(buildResult & BuildResultFlags.SyntaxErrors) && program && !ts.outFile(program.getCompilerOptions());
100757
100780
  reportAndStoreErrors(state, resolvedPath, diagnostics);
100758
- state.projectStatus.set(resolvedPath, { type: ts.UpToDateStatusType.Unbuildable, reason: errorType + " errors" });
100781
+ state.projectStatus.set(resolvedPath, { type: ts.UpToDateStatusType.Unbuildable, reason: "".concat(errorType, " errors") });
100759
100782
  if (canEmitBuildInfo)
100760
100783
  return { buildResult: buildResult, step: BuildStep.EmitBuildInfo };
100761
100784
  afterProgramDone(state, program, config);
@@ -100781,7 +100804,7 @@ var ts;
100781
100804
  if (!host.fileExists(inputFile)) {
100782
100805
  return {
100783
100806
  type: ts.UpToDateStatusType.Unbuildable,
100784
- reason: inputFile + " does not exist"
100807
+ reason: "".concat(inputFile, " does not exist")
100785
100808
  };
100786
100809
  }
100787
100810
  if (!force) {
@@ -101106,7 +101129,7 @@ var ts;
101106
101129
  }
101107
101130
  }
101108
101131
  if (filesToDelete) {
101109
- reportStatus(state, ts.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0, filesToDelete.map(function (f) { return "\r\n * " + f; }).join(""));
101132
+ 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(""));
101110
101133
  }
101111
101134
  return ts.ExitStatus.Success;
101112
101135
  }
@@ -101451,7 +101474,7 @@ var ts;
101451
101474
  };
101452
101475
  }
101453
101476
  function bold(str) {
101454
- return "\u001B[1m" + str + "\u001B[22m";
101477
+ return "\u001B[1m".concat(str, "\u001B[22m");
101455
101478
  }
101456
101479
  var isWindows = sys.getEnvironmentVariable("OS") && ts.stringContains(sys.getEnvironmentVariable("OS").toLowerCase(), "windows");
101457
101480
  var isWindowsTerminal = sys.getEnvironmentVariable("WT_SESSION");
@@ -101460,19 +101483,19 @@ var ts;
101460
101483
  if (isWindows && !isWindowsTerminal && !isVSCode) {
101461
101484
  return brightWhite(str);
101462
101485
  }
101463
- return "\u001B[94m" + str + "\u001B[39m";
101486
+ return "\u001B[94m".concat(str, "\u001B[39m");
101464
101487
  }
101465
101488
  var supportsRicherColors = sys.getEnvironmentVariable("COLORTERM") === "truecolor" || sys.getEnvironmentVariable("TERM") === "xterm-256color";
101466
101489
  function blueBackground(str) {
101467
101490
  if (supportsRicherColors) {
101468
- return "\u001B[48;5;68m" + str + "\u001B[39;49m";
101491
+ return "\u001B[48;5;68m".concat(str, "\u001B[39;49m");
101469
101492
  }
101470
101493
  else {
101471
- return "\u001B[44m" + str + "\u001B[39;49m";
101494
+ return "\u001B[44m".concat(str, "\u001B[39;49m");
101472
101495
  }
101473
101496
  }
101474
101497
  function brightWhite(str) {
101475
- return "\u001B[97m" + str + "\u001B[39m";
101498
+ return "\u001B[97m".concat(str, "\u001B[39m");
101476
101499
  }
101477
101500
  return {
101478
101501
  bold: bold,
@@ -101482,7 +101505,7 @@ var ts;
101482
101505
  };
101483
101506
  }
101484
101507
  function getDisplayNameTextOfOption(option) {
101485
- return "--" + option.name + (option.shortName ? ", -" + option.shortName : "");
101508
+ return "--".concat(option.name).concat(option.shortName ? ", -".concat(option.shortName) : "");
101486
101509
  }
101487
101510
  function generateOptionOutput(sys, option, rightAlignOfLeft, leftAlignOfRight) {
101488
101511
  var _a, _b;
@@ -101517,13 +101540,13 @@ var ts;
101517
101540
  text.push(sys.newLine);
101518
101541
  if (showAdditionalInfoOutput(valueCandidates, option)) {
101519
101542
  if (valueCandidates) {
101520
- text.push(valueCandidates.valueType + " " + valueCandidates.possibleValues);
101543
+ text.push("".concat(valueCandidates.valueType, " ").concat(valueCandidates.possibleValues));
101521
101544
  }
101522
101545
  if (defaultValueDescription) {
101523
101546
  if (valueCandidates)
101524
101547
  text.push(sys.newLine);
101525
101548
  var diagType = ts.getDiagnosticText(ts.Diagnostics.default_Colon);
101526
- text.push(diagType + " " + defaultValueDescription);
101549
+ text.push("".concat(diagType, " ").concat(defaultValueDescription));
101527
101550
  }
101528
101551
  text.push(sys.newLine);
101529
101552
  }
@@ -101558,7 +101581,7 @@ var ts;
101558
101581
  }
101559
101582
  var curRight = remainRight.substr(0, rightCharacterNumber);
101560
101583
  remainRight = remainRight.slice(rightCharacterNumber);
101561
- res.push("" + curLeft + curRight);
101584
+ res.push("".concat(curLeft).concat(curRight));
101562
101585
  isFirstLine = false;
101563
101586
  }
101564
101587
  return res;
@@ -101651,7 +101674,7 @@ var ts;
101651
101674
  categoryMap.set(curCategory, optionsOfCurCategory);
101652
101675
  }
101653
101676
  categoryMap.forEach(function (value, key) {
101654
- res.push("### " + key + sys.newLine + sys.newLine);
101677
+ res.push("### ".concat(key).concat(sys.newLine).concat(sys.newLine));
101655
101678
  res = __spreadArray(__spreadArray([], res, true), generateGroupOptionOutput(sys, value), true);
101656
101679
  });
101657
101680
  if (afterOptionsDescription) {
@@ -101661,7 +101684,7 @@ var ts;
101661
101684
  }
101662
101685
  function printEasyHelp(sys, simpleOptions) {
101663
101686
  var colors = createColors(sys);
101664
- var output = __spreadArray([], getHeader(sys, ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler) + " - " + ts.getDiagnosticText(ts.Diagnostics.Version_0, ts.version)), true);
101687
+ 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);
101665
101688
  output.push(colors.bold(ts.getDiagnosticText(ts.Diagnostics.COMMON_COMMANDS)) + sys.newLine + sys.newLine);
101666
101689
  example("tsc", ts.Diagnostics.Compiles_the_current_project_tsconfig_json_in_the_working_directory);
101667
101690
  example("tsc app.ts util.ts", ts.Diagnostics.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options);
@@ -101687,7 +101710,7 @@ var ts;
101687
101710
  }
101688
101711
  }
101689
101712
  function printAllHelp(sys, compilerOptions, buildOptions, watchOptions) {
101690
- var output = __spreadArray([], getHeader(sys, ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler) + " - " + ts.getDiagnosticText(ts.Diagnostics.Version_0, ts.version)), true);
101713
+ 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);
101691
101714
  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/tsconfig-reference")), true);
101692
101715
  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);
101693
101716
  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);
@@ -101697,7 +101720,7 @@ var ts;
101697
101720
  }
101698
101721
  }
101699
101722
  function printBuildHelp(sys, buildOptions) {
101700
- var output = __spreadArray([], getHeader(sys, ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler) + " - " + ts.getDiagnosticText(ts.Diagnostics.Version_0, ts.version)), true);
101723
+ 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);
101701
101724
  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);
101702
101725
  for (var _i = 0, output_3 = output; _i < output_3.length; _i++) {
101703
101726
  var line = output_3[_i];
@@ -102078,7 +102101,7 @@ var ts;
102078
102101
  reportCountStatistic("Subtype cache size", caches.subtype);
102079
102102
  reportCountStatistic("Strict subtype cache size", caches.strictSubtype);
102080
102103
  if (isPerformanceEnabled) {
102081
- ts.performance.forEachMeasure(function (name, duration) { return reportTimeStatistic(name + " time", duration); });
102104
+ ts.performance.forEachMeasure(function (name, duration) { return reportTimeStatistic("".concat(name, " time"), duration); });
102082
102105
  }
102083
102106
  }
102084
102107
  else if (isPerformanceEnabled) {
@@ -102149,7 +102172,7 @@ var ts;
102149
102172
  // This file actually uses arguments passed on commandline and executes it
102150
102173
  ts.Debug.loggingHost = {
102151
102174
  log: function (_level, s) {
102152
- ts.sys.write("" + (s || "") + ts.sys.newLine);
102175
+ ts.sys.write("".concat(s || "").concat(ts.sys.newLine));
102153
102176
  }
102154
102177
  };
102155
102178
  if (ts.Debug.isDebugging) {