@angular/compiler-cli 14.2.0 → 15.0.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/bundles/{chunk-RCXOJZDO.js → chunk-2HPI44CB.js} +5 -5
  2. package/bundles/{chunk-RCXOJZDO.js.map → chunk-2HPI44CB.js.map} +0 -0
  3. package/bundles/{chunk-CLRZAXXE.js → chunk-7YHMCUJT.js} +10 -3
  4. package/bundles/chunk-7YHMCUJT.js.map +6 -0
  5. package/bundles/{chunk-56O2PTWU.js → chunk-CYVTLM4Z.js} +7 -7
  6. package/bundles/{chunk-56O2PTWU.js.map → chunk-CYVTLM4Z.js.map} +0 -0
  7. package/bundles/{chunk-5FZBUSFV.js → chunk-E7NQQTT7.js} +3 -3
  8. package/bundles/{chunk-5FZBUSFV.js.map → chunk-E7NQQTT7.js.map} +0 -0
  9. package/bundles/{chunk-DEPZI7L5.js → chunk-FHVSPC32.js} +54 -32
  10. package/bundles/chunk-FHVSPC32.js.map +6 -0
  11. package/bundles/{chunk-ICPLY7FO.js → chunk-FM6NPN5V.js} +4 -4
  12. package/bundles/{chunk-ICPLY7FO.js.map → chunk-FM6NPN5V.js.map} +0 -0
  13. package/bundles/{chunk-TTIGAMYZ.js → chunk-HTGNPCKD.js} +6 -7
  14. package/bundles/chunk-HTGNPCKD.js.map +6 -0
  15. package/bundles/{chunk-J6AVV3MN.js → chunk-I6QQYDN3.js} +291 -118
  16. package/bundles/chunk-I6QQYDN3.js.map +6 -0
  17. package/bundles/{chunk-NDIOQ2EH.js → chunk-NJU6754X.js} +165 -114
  18. package/bundles/chunk-NJU6754X.js.map +6 -0
  19. package/bundles/{chunk-DGTSPJIN.js → chunk-NX4VAKY6.js} +40 -40
  20. package/bundles/{chunk-DGTSPJIN.js.map → chunk-NX4VAKY6.js.map} +0 -0
  21. package/bundles/{chunk-HMWNYAAE.js → chunk-R3C7RFJ4.js} +2 -2
  22. package/bundles/{chunk-HMWNYAAE.js.map → chunk-R3C7RFJ4.js.map} +0 -0
  23. package/bundles/{chunk-XR6BVLNN.js → chunk-TF2TR2WS.js} +42 -26
  24. package/bundles/chunk-TF2TR2WS.js.map +6 -0
  25. package/bundles/{chunk-4NRCP3Y6.js → chunk-TOKOIIBI.js} +7 -7
  26. package/bundles/{chunk-4NRCP3Y6.js.map → chunk-TOKOIIBI.js.map} +0 -0
  27. package/bundles/{chunk-I4BG3CAN.js → chunk-TTNGBVW6.js} +76 -74
  28. package/bundles/chunk-TTNGBVW6.js.map +6 -0
  29. package/bundles/{chunk-3GWIAJ6N.js → chunk-UZLFREET.js} +31 -21
  30. package/bundles/chunk-UZLFREET.js.map +6 -0
  31. package/bundles/{chunk-NJ2FQOJT.js → chunk-XDX5RDY5.js} +10 -8
  32. package/bundles/chunk-XDX5RDY5.js.map +6 -0
  33. package/bundles/index.js +13 -13
  34. package/bundles/linker/babel/index.js +13 -13
  35. package/bundles/linker/index.js +5 -5
  36. package/bundles/ngcc/index.js +13 -13
  37. package/bundles/ngcc/main-ngcc.js +14 -14
  38. package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +14 -14
  39. package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js +4 -4
  40. package/bundles/private/bazel.js +1 -1
  41. package/bundles/private/localize.js +3 -3
  42. package/bundles/private/migrations.js +6 -6
  43. package/bundles/private/tooling.js +3 -3
  44. package/bundles/src/bin/ng_xi18n.js +11 -11
  45. package/bundles/src/bin/ngc.js +9 -9
  46. package/bundles_metadata.json +1 -1
  47. package/ngcc/src/analysis/decoration_analyzer.d.ts +2 -1
  48. package/ngcc/src/packages/build_marker.d.ts +1 -1
  49. package/package.json +2 -2
  50. package/src/ngtsc/annotations/common/src/diagnostics.d.ts +2 -1
  51. package/src/ngtsc/annotations/component/src/handler.d.ts +3 -2
  52. package/src/ngtsc/annotations/component/src/metadata.d.ts +5 -1
  53. package/src/ngtsc/annotations/directive/src/handler.d.ts +6 -3
  54. package/src/ngtsc/annotations/directive/src/shared.d.ts +5 -2
  55. package/src/ngtsc/core/api/src/public_options.d.ts +1 -13
  56. package/src/ngtsc/diagnostics/index.d.ts +1 -1
  57. package/src/ngtsc/diagnostics/src/error.d.ts +1 -0
  58. package/src/ngtsc/diagnostics/src/error_code.d.ts +12 -0
  59. package/src/ngtsc/metadata/index.d.ts +1 -0
  60. package/src/ngtsc/metadata/src/api.d.ts +28 -0
  61. package/src/ngtsc/metadata/src/host_directives_resolver.d.ts +28 -0
  62. package/src/ngtsc/metadata/src/util.d.ts +3 -2
  63. package/src/ngtsc/scope/src/typecheck.d.ts +4 -3
  64. package/src/ngtsc/ts_compatibility/src/ts_cross_version_utils.d.ts +36 -2
  65. package/src/ngtsc/typecheck/diagnostics/src/diagnostic.d.ts +4 -0
  66. package/src/ngtsc/typecheck/src/type_check_block.d.ts +1 -1
  67. package/src/transformers/util.d.ts +0 -1
  68. package/bundles/chunk-3GWIAJ6N.js.map +0 -6
  69. package/bundles/chunk-CLRZAXXE.js.map +0 -6
  70. package/bundles/chunk-DEPZI7L5.js.map +0 -6
  71. package/bundles/chunk-I4BG3CAN.js.map +0 -6
  72. package/bundles/chunk-J6AVV3MN.js.map +0 -6
  73. package/bundles/chunk-NDIOQ2EH.js.map +0 -6
  74. package/bundles/chunk-NJ2FQOJT.js.map +0 -6
  75. package/bundles/chunk-TTIGAMYZ.js.map +0 -6
  76. package/bundles/chunk-XR6BVLNN.js.map +0 -6
@@ -13,6 +13,7 @@ import {
13
13
  DirectiveDecoratorHandler,
14
14
  DtsMetadataReader,
15
15
  DtsTransformRegistry,
16
+ HostDirectivesResolver,
16
17
  InjectableClassRegistry,
17
18
  InjectableDecoratorHandler,
18
19
  LocalMetadataRegistry,
@@ -30,11 +31,11 @@ import {
30
31
  aliasTransformFactory,
31
32
  declarationTransformFactory,
32
33
  ivyTransformFactory
33
- } from "./chunk-J6AVV3MN.js";
34
+ } from "./chunk-I6QQYDN3.js";
34
35
  import {
35
36
  TypeScriptReflectionHost,
36
37
  isNamedClassDeclaration
37
- } from "./chunk-NJ2FQOJT.js";
38
+ } from "./chunk-XDX5RDY5.js";
38
39
  import {
39
40
  AbsoluteModuleStrategy,
40
41
  AliasStrategy,
@@ -56,6 +57,7 @@ import {
56
57
  RelativePathStrategy,
57
58
  UnifiedModulesAliasingHost,
58
59
  UnifiedModulesStrategy,
60
+ addDiagnosticChain,
59
61
  assertSuccessfulReferenceEmit,
60
62
  getRootDirs,
61
63
  getSourceFileOrNull,
@@ -65,6 +67,7 @@ import {
65
67
  isNonDeclarationTsPath,
66
68
  isSymbolWithValueDeclaration,
67
69
  makeDiagnostic,
70
+ makeDiagnosticChain,
68
71
  makeRelatedInformation,
69
72
  ngErrorCode,
70
73
  normalizeSeparators,
@@ -73,13 +76,13 @@ import {
73
76
  toUnredirectedSourceFile,
74
77
  translateExpression,
75
78
  translateType
76
- } from "./chunk-XR6BVLNN.js";
79
+ } from "./chunk-TF2TR2WS.js";
77
80
  import {
78
81
  getDecorators,
79
82
  getModifiers,
80
83
  updateImportDeclaration,
81
84
  updateTypeParameterDeclaration
82
- } from "./chunk-CLRZAXXE.js";
85
+ } from "./chunk-7YHMCUJT.js";
83
86
  import {
84
87
  LogicalFileSystem,
85
88
  absoluteFrom,
@@ -90,16 +93,16 @@ import {
90
93
  getSourceFileOrError,
91
94
  join,
92
95
  resolve
93
- } from "./chunk-4NRCP3Y6.js";
96
+ } from "./chunk-TOKOIIBI.js";
94
97
  import {
95
98
  ActivePerfRecorder,
96
99
  DelegatingPerfRecorder,
97
100
  PerfCheckpoint,
98
101
  PerfEvent,
99
102
  PerfPhase
100
- } from "./chunk-RCXOJZDO.js";
103
+ } from "./chunk-2HPI44CB.js";
101
104
 
102
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
105
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
103
106
  var DEFAULT_ERROR_CODE = 100;
104
107
  var UNKNOWN_ERROR_CODE = 500;
105
108
  var SOURCE = "angular";
@@ -117,7 +120,7 @@ var EmitFlags;
117
120
  EmitFlags2[EmitFlags2["All"] = 31] = "All";
118
121
  })(EmitFlags || (EmitFlags = {}));
119
122
 
120
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
123
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
121
124
  import ts from "typescript";
122
125
  var wrapHostForTest = null;
123
126
  function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, true) }) {
@@ -127,21 +130,21 @@ function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, t
127
130
  return tsHost;
128
131
  }
129
132
 
130
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
133
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
131
134
  var OptimizeFor;
132
135
  (function(OptimizeFor2) {
133
136
  OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
134
137
  OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
135
138
  })(OptimizeFor || (OptimizeFor = {}));
136
139
 
137
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
140
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
138
141
  var CompletionKind;
139
142
  (function(CompletionKind2) {
140
143
  CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
141
144
  CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
142
145
  })(CompletionKind || (CompletionKind = {}));
143
146
 
144
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
147
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
145
148
  var SymbolKind;
146
149
  (function(SymbolKind2) {
147
150
  SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
@@ -157,11 +160,11 @@ var SymbolKind;
157
160
  SymbolKind2[SymbolKind2["Pipe"] = 10] = "Pipe";
158
161
  })(SymbolKind || (SymbolKind = {}));
159
162
 
160
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
163
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
161
164
  import { HtmlParser, MessageBundle } from "@angular/compiler";
162
165
  import ts34 from "typescript";
163
166
 
164
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
167
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
165
168
  import { Xliff, Xliff2, Xmb } from "@angular/compiler";
166
169
  import * as path from "path";
167
170
  function i18nGetExtension(formatName) {
@@ -212,10 +215,10 @@ function getPathNormalizer(basePath) {
212
215
  };
213
216
  }
214
217
 
215
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
218
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
216
219
  import ts2 from "typescript";
217
220
 
218
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
221
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
219
222
  function toNumbers(value) {
220
223
  const suffixIndex = value.lastIndexOf("-");
221
224
  return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
@@ -250,7 +253,7 @@ function compareVersions(v1, v2) {
250
253
  return compareNumbers(toNumbers(v1), toNumbers(v2));
251
254
  }
252
255
 
253
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
256
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
254
257
  var MIN_TS_VERSION = "4.6.2";
255
258
  var MAX_TS_VERSION = "4.9.0";
256
259
  var tsVersion = ts2.version;
@@ -263,10 +266,10 @@ function verifySupportedTypeScriptVersion() {
263
266
  checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
264
267
  }
265
268
 
266
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
269
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
267
270
  import ts32 from "typescript";
268
271
 
269
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
272
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
270
273
  var CycleAnalyzer = class {
271
274
  constructor(importGraph) {
272
275
  this.importGraph = importGraph;
@@ -337,7 +340,7 @@ var Cycle = class {
337
340
  }
338
341
  };
339
342
 
340
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
343
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
341
344
  import ts3 from "typescript";
342
345
  var ImportGraph = class {
343
346
  constructor(checker, perf) {
@@ -429,7 +432,7 @@ var Found = class {
429
432
  }
430
433
  };
431
434
 
432
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
435
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
433
436
  import ts4 from "typescript";
434
437
  var FlatIndexGenerator = class {
435
438
  constructor(entryPoint, relativeFlatIndexPath, moduleName) {
@@ -454,7 +457,7 @@ export * from '${relativeEntryPoint}';
454
457
  }
455
458
  };
456
459
 
457
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
460
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
458
461
  function findFlatIndexEntryPoint(rootFiles) {
459
462
  const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
460
463
  let resolvedEntryPoint = null;
@@ -470,7 +473,7 @@ function findFlatIndexEntryPoint(rootFiles) {
470
473
  return resolvedEntryPoint;
471
474
  }
472
475
 
473
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
476
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
474
477
  import ts5 from "typescript";
475
478
  function checkForPrivateExports(entryPoint, checker, refGraph) {
476
479
  const diagnostics = [];
@@ -550,7 +553,7 @@ function getDescriptorOfDeclaration(decl) {
550
553
  }
551
554
  }
552
555
 
553
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
556
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
554
557
  var ReferenceGraph = class {
555
558
  constructor() {
556
559
  this.references = /* @__PURE__ */ new Map();
@@ -604,7 +607,7 @@ var ReferenceGraph = class {
604
607
  }
605
608
  };
606
609
 
607
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
610
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
608
611
  var NgOriginalFile = Symbol("NgOriginalFile");
609
612
  var UpdateMode;
610
613
  (function(UpdateMode2) {
@@ -612,13 +615,13 @@ var UpdateMode;
612
615
  UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
613
616
  })(UpdateMode || (UpdateMode = {}));
614
617
 
615
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
618
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
616
619
  import ts9 from "typescript";
617
620
 
618
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
621
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
619
622
  import ts6 from "typescript";
620
623
 
621
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
624
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
622
625
  var NgExtension = Symbol("NgExtension");
623
626
  function isExtended(sf) {
624
627
  return sf[NgExtension] !== void 0;
@@ -678,7 +681,7 @@ function retagTsFile(sf) {
678
681
  }
679
682
  }
680
683
 
681
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
684
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
682
685
  var TS_EXTENSIONS = /\.tsx?$/i;
683
686
  function makeShimFileName(fileName, suffix) {
684
687
  return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
@@ -693,7 +696,7 @@ function generatedModuleName(originalModuleName, originalFileName, genSuffix) {
693
696
  return moduleName;
694
697
  }
695
698
 
696
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
699
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
697
700
  var ShimAdapter = class {
698
701
  constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
699
702
  this.delegate = delegate;
@@ -790,7 +793,7 @@ var ShimAdapter = class {
790
793
  }
791
794
  };
792
795
 
793
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/factory_generator.mjs
796
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/factory_generator.mjs
794
797
  import ts7 from "typescript";
795
798
  var TS_DTS_SUFFIX = /(\.d)?\.ts$/;
796
799
  var STRIP_NG_FACTORY = /(.*)NgFactory$/;
@@ -938,7 +941,7 @@ function updateInitializers(stmt, update) {
938
941
  return ts7.factory.updateVariableStatement(stmt, getModifiers(stmt), ts7.factory.updateVariableDeclarationList(stmt.declarationList, stmt.declarationList.declarations.map((decl) => ts7.factory.updateVariableDeclaration(decl, decl.name, decl.exclamationToken, decl.type, update(decl.initializer)))));
939
942
  }
940
943
 
941
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
944
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
942
945
  var ShimReferenceTagger = class {
943
946
  constructor(shimExtensions) {
944
947
  this.tagged = /* @__PURE__ */ new Set();
@@ -972,7 +975,7 @@ var ShimReferenceTagger = class {
972
975
  }
973
976
  };
974
977
 
975
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/summary_generator.mjs
978
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/summary_generator.mjs
976
979
  import ts8 from "typescript";
977
980
  var SummaryGenerator = class {
978
981
  constructor() {
@@ -1013,7 +1016,7 @@ function isExported2(decl) {
1013
1016
  return modifiers !== void 0 && modifiers.some((mod) => mod.kind == ts8.SyntaxKind.ExportKeyword) || false;
1014
1017
  }
1015
1018
 
1016
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
1019
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
1017
1020
  var DelegatingCompilerHost = class {
1018
1021
  constructor(delegate) {
1019
1022
  this.delegate = delegate;
@@ -1123,7 +1126,7 @@ var TsCreateProgramDriver = class {
1123
1126
  }
1124
1127
  };
1125
1128
 
1126
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
1129
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
1127
1130
  var FileDependencyGraph = class {
1128
1131
  constructor() {
1129
1132
  this.nodes = /* @__PURE__ */ new Map();
@@ -1190,7 +1193,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
1190
1193
  return false;
1191
1194
  }
1192
1195
 
1193
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
1196
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
1194
1197
  var IncrementalStateKind;
1195
1198
  (function(IncrementalStateKind2) {
1196
1199
  IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
@@ -1198,7 +1201,7 @@ var IncrementalStateKind;
1198
1201
  IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
1199
1202
  })(IncrementalStateKind || (IncrementalStateKind = {}));
1200
1203
 
1201
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
1204
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
1202
1205
  var PhaseKind;
1203
1206
  (function(PhaseKind2) {
1204
1207
  PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
@@ -1399,7 +1402,7 @@ function toOriginalSourceFile(sf) {
1399
1402
  }
1400
1403
  }
1401
1404
 
1402
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
1405
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
1403
1406
  var TrackedIncrementalBuildStrategy = class {
1404
1407
  constructor() {
1405
1408
  this.state = null;
@@ -1435,7 +1438,7 @@ var PatchedProgramIncrementalBuildStrategy = class {
1435
1438
  };
1436
1439
  var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
1437
1440
 
1438
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
1441
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
1439
1442
  var IdentifierKind;
1440
1443
  (function(IdentifierKind2) {
1441
1444
  IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
@@ -1453,7 +1456,7 @@ var AbsoluteSourceSpan = class {
1453
1456
  }
1454
1457
  };
1455
1458
 
1456
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
1459
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
1457
1460
  var IndexingContext = class {
1458
1461
  constructor() {
1459
1462
  this.components = /* @__PURE__ */ new Set();
@@ -1463,10 +1466,10 @@ var IndexingContext = class {
1463
1466
  }
1464
1467
  };
1465
1468
 
1466
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
1469
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
1467
1470
  import { ParseSourceFile } from "@angular/compiler";
1468
1471
 
1469
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
1472
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
1470
1473
  import { ASTWithSource, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate } from "@angular/compiler";
1471
1474
  var ExpressionVisitor = class extends RecursiveAstVisitor {
1472
1475
  constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
@@ -1703,7 +1706,7 @@ function getTemplateIdentifiers(boundTemplate) {
1703
1706
  return { identifiers: visitor.identifiers, errors: visitor.errors };
1704
1707
  }
1705
1708
 
1706
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
1709
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
1707
1710
  function generateAnalysis(context) {
1708
1711
  const analysis = /* @__PURE__ */ new Map();
1709
1712
  context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
@@ -1739,7 +1742,7 @@ function generateAnalysis(context) {
1739
1742
  return analysis;
1740
1743
  }
1741
1744
 
1742
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
1745
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
1743
1746
  import ts10 from "typescript";
1744
1747
  var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
1745
1748
  var RESOURCE_MARKER = ".$ngresource$";
@@ -1885,7 +1888,7 @@ function createLookupResolutionHost(adapter) {
1885
1888
  };
1886
1889
  }
1887
1890
 
1888
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
1891
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
1889
1892
  var StandaloneComponentScopeReader = class {
1890
1893
  constructor(metaReader, localModuleReader, dtsModuleReader) {
1891
1894
  this.metaReader = metaReader;
@@ -1963,12 +1966,13 @@ var StandaloneComponentScopeReader = class {
1963
1966
  }
1964
1967
  };
1965
1968
 
1966
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
1969
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
1967
1970
  import { CssSelector, DomElementSchemaRegistry as DomElementSchemaRegistry2 } from "@angular/compiler";
1968
1971
 
1969
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
1972
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
1970
1973
  import ts11 from "typescript";
1971
1974
  function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
1975
+ var _a;
1972
1976
  if (mapping.type === "direct") {
1973
1977
  let relatedInformation = void 0;
1974
1978
  if (relatedMessages !== void 0) {
@@ -2000,7 +2004,6 @@ function makeTemplateDiagnostic(templateId, mapping, span, category, code, messa
2000
2004
  const componentSf = mapping.componentClass.getSourceFile();
2001
2005
  const componentName = mapping.componentClass.name.text;
2002
2006
  const fileName = mapping.type === "indirect" ? `${componentSf.fileName} (${componentName} template)` : mapping.templateUrl;
2003
- const sf = ts11.createSourceFile(fileName, mapping.template, ts11.ScriptTarget.Latest, false, ts11.ScriptKind.JSX);
2004
2007
  let relatedInformation = [];
2005
2008
  if (relatedMessages !== void 0) {
2006
2009
  for (const relatedMessage of relatedMessages) {
@@ -2014,6 +2017,26 @@ function makeTemplateDiagnostic(templateId, mapping, span, category, code, messa
2014
2017
  });
2015
2018
  }
2016
2019
  }
2020
+ let sf;
2021
+ try {
2022
+ sf = parseTemplateAsSourceFile(fileName, mapping.template);
2023
+ } catch (e) {
2024
+ const failureChain = makeDiagnosticChain(`Failed to report an error in '${fileName}' at ${span.start.line + 1}:${span.start.col + 1}`, [
2025
+ makeDiagnosticChain((_a = e == null ? void 0 : e.stack) != null ? _a : `${e}`)
2026
+ ]);
2027
+ return {
2028
+ source: "ngtsc",
2029
+ category,
2030
+ code,
2031
+ messageText: addDiagnosticChain(messageText, [failureChain]),
2032
+ file: componentSf,
2033
+ componentFile: componentSf,
2034
+ templateId,
2035
+ start: mapping.node.getStart(),
2036
+ length: mapping.node.getEnd() - mapping.node.getStart(),
2037
+ relatedInformation
2038
+ };
2039
+ }
2017
2040
  relatedInformation.push({
2018
2041
  category: ts11.DiagnosticCategory.Message,
2019
2042
  code: 0,
@@ -2038,8 +2061,15 @@ function makeTemplateDiagnostic(templateId, mapping, span, category, code, messa
2038
2061
  throw new Error(`Unexpected source mapping type: ${mapping.type}`);
2039
2062
  }
2040
2063
  }
2064
+ var parseTemplateAsSourceFileForTest = null;
2065
+ function parseTemplateAsSourceFile(fileName, template) {
2066
+ if (parseTemplateAsSourceFileForTest !== null) {
2067
+ return parseTemplateAsSourceFileForTest(fileName, template);
2068
+ }
2069
+ return ts11.createSourceFile(fileName, template, ts11.ScriptTarget.Latest, false, ts11.ScriptKind.JSX);
2070
+ }
2041
2071
 
2042
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
2072
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
2043
2073
  var TEMPLATE_ID = Symbol("ngTemplateId");
2044
2074
  var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
2045
2075
  function getTemplateId(clazz) {
@@ -2056,11 +2086,11 @@ function allocateTemplateId(sf) {
2056
2086
  return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
2057
2087
  }
2058
2088
 
2059
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
2089
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
2060
2090
  import { EmptyExpr, ImplicitReceiver as ImplicitReceiver2, PropertyRead as PropertyRead2, PropertyWrite as PropertyWrite2, SafePropertyRead, TmplAstReference as TmplAstReference2, TmplAstTextAttribute } from "@angular/compiler";
2061
2091
  import ts13 from "typescript";
2062
2092
 
2063
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
2093
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
2064
2094
  import { AbsoluteSourceSpan as AbsoluteSourceSpan2 } from "@angular/compiler";
2065
2095
  import ts12 from "typescript";
2066
2096
  var parseSpanComment = /^(\d+),(\d+)$/;
@@ -2180,7 +2210,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
2180
2210
  }) || false;
2181
2211
  }
2182
2212
 
2183
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
2213
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
2184
2214
  var CompletionEngine = class {
2185
2215
  constructor(tcb, data, tcbPath, tcbIsShim) {
2186
2216
  this.tcb = tcb;
@@ -2337,10 +2367,10 @@ var CompletionEngine = class {
2337
2367
  }
2338
2368
  };
2339
2369
 
2340
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
2370
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
2341
2371
  import ts27 from "typescript";
2342
2372
 
2343
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
2373
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
2344
2374
  import { DomElementSchemaRegistry } from "@angular/compiler";
2345
2375
  import ts14 from "typescript";
2346
2376
  var REGISTRY = new DomElementSchemaRegistry();
@@ -2393,11 +2423,11 @@ var RegistryDomSchemaChecker = class {
2393
2423
  }
2394
2424
  };
2395
2425
 
2396
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
2426
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
2397
2427
  import { ExpressionType, ExternalExpr, TypeModifier } from "@angular/compiler";
2398
2428
  import ts20 from "typescript";
2399
2429
 
2400
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
2430
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
2401
2431
  import ts15 from "typescript";
2402
2432
  var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
2403
2433
  ts15.SyntaxKind.ParenthesizedExpression,
@@ -2444,16 +2474,16 @@ function isAccessExpression(node) {
2444
2474
  return ts15.isPropertyAccessExpression(node) || ts15.isElementAccessExpression(node);
2445
2475
  }
2446
2476
 
2447
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
2477
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
2448
2478
  import ts19 from "typescript";
2449
2479
 
2450
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
2480
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
2451
2481
  import ts18 from "typescript";
2452
2482
 
2453
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
2483
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
2454
2484
  import ts17 from "typescript";
2455
2485
 
2456
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
2486
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
2457
2487
  import ts16 from "typescript";
2458
2488
  var INELIGIBLE = {};
2459
2489
  function canEmitType(type, canEmit) {
@@ -2491,7 +2521,20 @@ var TypeEmitter = class {
2491
2521
  if (ts16.isTypeReferenceNode(node)) {
2492
2522
  return this.emitTypeReference(node);
2493
2523
  } else if (ts16.isLiteralExpression(node)) {
2494
- const clone = ts16.getMutableClone(node);
2524
+ let clone;
2525
+ if (ts16.isStringLiteral(node)) {
2526
+ clone = ts16.factory.createStringLiteral(node.text);
2527
+ } else if (ts16.isNumericLiteral(node)) {
2528
+ clone = ts16.factory.createNumericLiteral(node.text);
2529
+ } else if (ts16.isBigIntLiteral(node)) {
2530
+ clone = ts16.factory.createBigIntLiteral(node.text);
2531
+ } else if (ts16.isNoSubstitutionTemplateLiteral(node)) {
2532
+ clone = ts16.factory.createNoSubstitutionTemplateLiteral(node.text, node.rawText);
2533
+ } else if (ts16.isRegularExpressionLiteral(node)) {
2534
+ clone = ts16.factory.createRegularExpressionLiteral(node.text);
2535
+ } else {
2536
+ throw new Error(`Unsupported literal kind ${ts16.SyntaxKind[node.kind]}`);
2537
+ }
2495
2538
  ts16.setTextRange(clone, { pos: -1, end: -1 });
2496
2539
  return clone;
2497
2540
  } else {
@@ -2515,7 +2558,7 @@ var TypeEmitter = class {
2515
2558
  }
2516
2559
  };
2517
2560
 
2518
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
2561
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
2519
2562
  var TypeParameterEmitter = class {
2520
2563
  constructor(typeParameters, reflector) {
2521
2564
  this.typeParameters = typeParameters;
@@ -2592,7 +2635,7 @@ var TypeParameterEmitter = class {
2592
2635
  }
2593
2636
  };
2594
2637
 
2595
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
2638
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
2596
2639
  var TcbInliningRequirement;
2597
2640
  (function(TcbInliningRequirement2) {
2598
2641
  TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
@@ -2672,7 +2715,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
2672
2715
  return emitter.canEmit((ref) => env.canReferenceType(ref));
2673
2716
  }
2674
2717
 
2675
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
2718
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
2676
2719
  function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
2677
2720
  const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
2678
2721
  const rawType = ts19.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
@@ -2743,7 +2786,7 @@ function typeParametersWithDefaultTypes(params) {
2743
2786
  });
2744
2787
  }
2745
2788
 
2746
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
2789
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
2747
2790
  var Environment = class {
2748
2791
  constructor(config, importManager, refEmitter, reflector, contextFile) {
2749
2792
  this.config = config;
@@ -2835,7 +2878,7 @@ var Environment = class {
2835
2878
  }
2836
2879
  };
2837
2880
 
2838
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
2881
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
2839
2882
  import { TmplAstElement as TmplAstElement2 } from "@angular/compiler";
2840
2883
  import ts21 from "typescript";
2841
2884
  var OutOfBandDiagnosticRecorderImpl = class {
@@ -2968,7 +3011,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
2968
3011
  };
2969
3012
  }
2970
3013
 
2971
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
3014
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
2972
3015
  import ts22 from "typescript";
2973
3016
  var TypeCheckShimGenerator = class {
2974
3017
  constructor() {
@@ -2986,11 +3029,11 @@ var TypeCheckShimGenerator = class {
2986
3029
  }
2987
3030
  };
2988
3031
 
2989
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
3032
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
2990
3033
  import { BindingPipe, Call as Call2, DYNAMIC_TYPE, ImplicitReceiver as ImplicitReceiver4, PropertyRead as PropertyRead4, PropertyWrite as PropertyWrite3, SafeCall, SafePropertyRead as SafePropertyRead3, ThisReceiver, TmplAstBoundAttribute, TmplAstBoundText, TmplAstElement as TmplAstElement3, TmplAstIcu, TmplAstReference as TmplAstReference3, TmplAstTemplate as TmplAstTemplate2, TmplAstTextAttribute as TmplAstTextAttribute2, TmplAstVariable as TmplAstVariable2 } from "@angular/compiler";
2991
3034
  import ts25 from "typescript";
2992
3035
 
2993
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
3036
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
2994
3037
  import { AbsoluteSourceSpan as AbsoluteSourceSpan3 } from "@angular/compiler";
2995
3038
  import ts23 from "typescript";
2996
3039
  function wrapForDiagnostics(expr) {
@@ -3036,7 +3079,7 @@ function translateDiagnostic(diagnostic, resolver) {
3036
3079
  return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
3037
3080
  }
3038
3081
 
3039
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
3082
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
3040
3083
  import { ASTWithSource as ASTWithSource2, Call, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead3, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
3041
3084
  import ts24 from "typescript";
3042
3085
  var NULL_AS_ANY = ts24.factory.createAsExpression(ts24.factory.createNull(), ts24.factory.createKeywordTypeNode(ts24.SyntaxKind.AnyKeyword));
@@ -3366,7 +3409,7 @@ var VeSafeLhsInferenceBugDetector = class {
3366
3409
  };
3367
3410
  VeSafeLhsInferenceBugDetector.SINGLETON = new VeSafeLhsInferenceBugDetector();
3368
3411
 
3369
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
3412
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
3370
3413
  import { ImplicitReceiver as ImplicitReceiver3, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstVariable } from "@angular/compiler";
3371
3414
  var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
3372
3415
  constructor(templateId, boundTarget, oob) {
@@ -3390,7 +3433,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
3390
3433
  }
3391
3434
  };
3392
3435
 
3393
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
3436
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
3394
3437
  var TcbGenericContextBehavior;
3395
3438
  (function(TcbGenericContextBehavior2) {
3396
3439
  TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
@@ -3809,6 +3852,7 @@ var TcbDomSchemaCheckerOp = class extends TcbOp {
3809
3852
  return false;
3810
3853
  }
3811
3854
  execute() {
3855
+ var _a;
3812
3856
  if (this.checkElement) {
3813
3857
  this.tcb.domSchemaChecker.checkElement(this.tcb.id, this.element, this.tcb.schemas, this.tcb.hostIsStandalone);
3814
3858
  }
@@ -3818,7 +3862,7 @@ var TcbDomSchemaCheckerOp = class extends TcbOp {
3818
3862
  }
3819
3863
  if (binding.type === 0) {
3820
3864
  if (binding.name !== "style" && binding.name !== "class") {
3821
- const propertyName = ATTR_TO_PROP[binding.name] || binding.name;
3865
+ const propertyName = (_a = ATTR_TO_PROP.get(binding.name)) != null ? _a : binding.name;
3822
3866
  this.tcb.domSchemaChecker.checkProperty(this.tcb.id, this.element, propertyName, binding.sourceSpan, this.tcb.schemas, this.tcb.hostIsStandalone);
3823
3867
  }
3824
3868
  }
@@ -3826,14 +3870,14 @@ var TcbDomSchemaCheckerOp = class extends TcbOp {
3826
3870
  return null;
3827
3871
  }
3828
3872
  };
3829
- var ATTR_TO_PROP = {
3873
+ var ATTR_TO_PROP = new Map(Object.entries({
3830
3874
  "class": "className",
3831
3875
  "for": "htmlFor",
3832
3876
  "formaction": "formAction",
3833
3877
  "innerHtml": "innerHTML",
3834
3878
  "readonly": "readOnly",
3835
3879
  "tabindex": "tabIndex"
3836
- };
3880
+ }));
3837
3881
  var TcbUnclaimedInputsOp = class extends TcbOp {
3838
3882
  constructor(tcb, scope, element, claimedInputs) {
3839
3883
  super();
@@ -3846,6 +3890,7 @@ var TcbUnclaimedInputsOp = class extends TcbOp {
3846
3890
  return false;
3847
3891
  }
3848
3892
  execute() {
3893
+ var _a;
3849
3894
  let elId = null;
3850
3895
  for (const binding of this.element.inputs) {
3851
3896
  if (binding.type === 0 && this.claimedInputs.has(binding.name)) {
@@ -3857,7 +3902,7 @@ var TcbUnclaimedInputsOp = class extends TcbOp {
3857
3902
  if (elId === null) {
3858
3903
  elId = this.scope.resolve(this.element);
3859
3904
  }
3860
- const propertyName = ATTR_TO_PROP[binding.name] || binding.name;
3905
+ const propertyName = (_a = ATTR_TO_PROP.get(binding.name)) != null ? _a : binding.name;
3861
3906
  const prop = ts25.factory.createElementAccessExpression(elId, ts25.factory.createStringLiteral(propertyName));
3862
3907
  const stmt = ts25.factory.createBinaryExpression(prop, ts25.SyntaxKind.EqualsToken, wrapForDiagnostics(expr));
3863
3908
  addParseSpanInfo(stmt, binding.sourceSpan);
@@ -4043,9 +4088,17 @@ var Scope = class {
4043
4088
  resolve(node, directive) {
4044
4089
  const res = this.resolveLocal(node, directive);
4045
4090
  if (res !== null) {
4046
- const clone = ts25.getMutableClone(res);
4047
- ts25.setSyntheticTrailingComments(clone, []);
4048
- return clone;
4091
+ let clone;
4092
+ if (ts25.isIdentifier(res)) {
4093
+ clone = ts25.factory.createIdentifier(res.text);
4094
+ } else if (ts25.isNonNullExpression(res)) {
4095
+ clone = ts25.factory.createNonNullExpression(res.expression);
4096
+ } else {
4097
+ throw new Error(`Could not resolve ${node} to an Identifier or a NonNullExpression`);
4098
+ }
4099
+ ts25.setOriginalNode(clone, res);
4100
+ clone.parent = clone.parent;
4101
+ return ts25.setSyntheticTrailingComments(clone, []);
4049
4102
  } else if (this.parent !== null) {
4050
4103
  return this.parent.resolve(node, directive);
4051
4104
  } else {
@@ -4441,7 +4494,7 @@ var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
4441
4494
  }
4442
4495
  };
4443
4496
 
4444
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
4497
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
4445
4498
  import ts26 from "typescript";
4446
4499
  var TypeCheckFile = class extends Environment {
4447
4500
  constructor(fileName, config, refEmitter, reflector, compilerHost) {
@@ -4477,7 +4530,7 @@ var TypeCheckFile = class extends Environment {
4477
4530
  }
4478
4531
  };
4479
4532
 
4480
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
4533
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
4481
4534
  var InliningMode;
4482
4535
  (function(InliningMode2) {
4483
4536
  InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
@@ -4715,10 +4768,10 @@ function splitStringAtPoints(str, points) {
4715
4768
  return splits;
4716
4769
  }
4717
4770
 
4718
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
4771
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
4719
4772
  import { ParseLocation, ParseSourceSpan } from "@angular/compiler";
4720
4773
 
4721
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
4774
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
4722
4775
  var LF_CHAR = 10;
4723
4776
  var CR_CHAR = 13;
4724
4777
  var LINE_SEP_CHAR = 8232;
@@ -4759,7 +4812,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
4759
4812
  return low - 1;
4760
4813
  }
4761
4814
 
4762
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
4815
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
4763
4816
  var TemplateSource = class {
4764
4817
  constructor(mapping, file) {
4765
4818
  this.mapping = mapping;
@@ -4810,7 +4863,7 @@ var TemplateSourceManager = class {
4810
4863
  }
4811
4864
  };
4812
4865
 
4813
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
4866
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
4814
4867
  import { AST, ASTWithSource as ASTWithSource3, BindingPipe as BindingPipe2, PropertyRead as PropertyRead5, PropertyWrite as PropertyWrite4, SafePropertyRead as SafePropertyRead4, TmplAstBoundAttribute as TmplAstBoundAttribute2, TmplAstBoundEvent, TmplAstElement as TmplAstElement4, TmplAstReference as TmplAstReference4, TmplAstTemplate as TmplAstTemplate3, TmplAstTextAttribute as TmplAstTextAttribute3, TmplAstVariable as TmplAstVariable3 } from "@angular/compiler";
4815
4868
  import ts28 from "typescript";
4816
4869
  var SymbolBuilder = class {
@@ -5255,7 +5308,7 @@ function sourceSpanEqual(a, b) {
5255
5308
  return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
5256
5309
  }
5257
5310
 
5258
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
5311
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
5259
5312
  var REGISTRY2 = new DomElementSchemaRegistry2();
5260
5313
  var TemplateTypeCheckerImpl = class {
5261
5314
  constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, componentScopeReader, typeCheckScopeRegistry, perf) {
@@ -5827,10 +5880,10 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
5827
5880
  }
5828
5881
  };
5829
5882
 
5830
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
5883
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
5831
5884
  import { TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
5832
5885
 
5833
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
5886
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
5834
5887
  import { ASTWithSource as ASTWithSource4, RecursiveAstVisitor as RecursiveAstVisitor3 } from "@angular/compiler";
5835
5888
  var TemplateCheckWithVisitor = class {
5836
5889
  run(ctx, component, template) {
@@ -5907,7 +5960,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor3 {
5907
5960
  }
5908
5961
  };
5909
5962
 
5910
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
5963
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
5911
5964
  var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
5912
5965
  constructor() {
5913
5966
  super(...arguments);
@@ -5932,7 +5985,7 @@ var factory = {
5932
5985
  create: () => new InvalidBananaInBoxCheck()
5933
5986
  };
5934
5987
 
5935
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
5988
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
5936
5989
  import { TmplAstTemplate as TmplAstTemplate4 } from "@angular/compiler";
5937
5990
  var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
5938
5991
  ["ngIf", "NgIf"],
@@ -5977,7 +6030,7 @@ var factory2 = {
5977
6030
  }
5978
6031
  };
5979
6032
 
5980
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
6033
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
5981
6034
  import { TmplAstTemplate as TmplAstTemplate5 } from "@angular/compiler";
5982
6035
  var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
5983
6036
  constructor() {
@@ -6010,7 +6063,7 @@ var factory3 = {
6010
6063
  create: () => new MissingNgForOfLetCheck()
6011
6064
  };
6012
6065
 
6013
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
6066
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
6014
6067
  import { Binary } from "@angular/compiler";
6015
6068
  import ts29 from "typescript";
6016
6069
  var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
@@ -6055,7 +6108,7 @@ var factory4 = {
6055
6108
  }
6056
6109
  };
6057
6110
 
6058
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
6111
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
6059
6112
  import { SafeCall as SafeCall2, SafeKeyedRead as SafeKeyedRead2, SafePropertyRead as SafePropertyRead5 } from "@angular/compiler";
6060
6113
  import ts30 from "typescript";
6061
6114
  var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
@@ -6101,7 +6154,7 @@ var factory5 = {
6101
6154
  }
6102
6155
  };
6103
6156
 
6104
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
6157
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
6105
6158
  import { TmplAstBoundAttribute as TmplAstBoundAttribute3 } from "@angular/compiler";
6106
6159
  var STYLE_SUFFIXES = ["px", "%", "em"];
6107
6160
  var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
@@ -6125,7 +6178,7 @@ var factory6 = {
6125
6178
  create: () => new SuffixNotSupportedCheck()
6126
6179
  };
6127
6180
 
6128
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
6181
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
6129
6182
  import { TmplAstTextAttribute as TmplAstTextAttribute4 } from "@angular/compiler";
6130
6183
  var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
6131
6184
  constructor() {
@@ -6164,10 +6217,10 @@ var factory7 = {
6164
6217
  create: () => new TextAttributeNotBindingSpec()
6165
6218
  };
6166
6219
 
6167
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
6220
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
6168
6221
  import ts31 from "typescript";
6169
6222
 
6170
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
6223
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
6171
6224
  var DiagnosticCategoryLabel;
6172
6225
  (function(DiagnosticCategoryLabel2) {
6173
6226
  DiagnosticCategoryLabel2["Warning"] = "warning";
@@ -6175,7 +6228,7 @@ var DiagnosticCategoryLabel;
6175
6228
  DiagnosticCategoryLabel2["Suppress"] = "suppress";
6176
6229
  })(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
6177
6230
 
6178
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
6231
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
6179
6232
  var ExtendedTemplateCheckerImpl = class {
6180
6233
  constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
6181
6234
  var _a, _b, _c, _d, _e;
@@ -6228,7 +6281,7 @@ function assertNever(value) {
6228
6281
  ${value}`);
6229
6282
  }
6230
6283
 
6231
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
6284
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
6232
6285
  var ALL_DIAGNOSTIC_FACTORIES = [
6233
6286
  factory,
6234
6287
  factory4,
@@ -6239,7 +6292,7 @@ var ALL_DIAGNOSTIC_FACTORIES = [
6239
6292
  factory6
6240
6293
  ];
6241
6294
 
6242
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
6295
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
6243
6296
  var CompilationTicketKind;
6244
6297
  (function(CompilationTicketKind2) {
6245
6298
  CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
@@ -6733,7 +6786,8 @@ var NgCompiler = class {
6733
6786
  const semanticDepGraphUpdater = this.incrementalCompilation.semanticDepGraphUpdater;
6734
6787
  const metaRegistry = new CompoundMetadataRegistry([localMetaRegistry, ngModuleScopeRegistry]);
6735
6788
  const injectableRegistry = new InjectableClassRegistry(reflector);
6736
- const typeCheckScopeRegistry = new TypeCheckScopeRegistry(scopeReader, metaReader);
6789
+ const hostDirectivesResolver = new HostDirectivesResolver(metaReader);
6790
+ const typeCheckScopeRegistry = new TypeCheckScopeRegistry(scopeReader, metaReader, hostDirectivesResolver);
6737
6791
  let referencesRegistry;
6738
6792
  let exportReferenceGraph = null;
6739
6793
  if (this.entryPoint !== null) {
@@ -6748,8 +6802,8 @@ var NgCompiler = class {
6748
6802
  const compilationMode = this.options.compilationMode === "partial" && !isCore ? CompilationMode.PARTIAL : CompilationMode.FULL;
6749
6803
  const cycleHandlingStrategy = compilationMode === CompilationMode.FULL ? 0 : 1;
6750
6804
  const handlers = [
6751
- new ComponentDecoratorHandler(reflector, evaluator, metaRegistry, metaReader, scopeReader, depScopeReader, ngModuleScopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, this.resourceManager, this.adapter.rootDirs, this.options.preserveWhitespaces || false, this.options.i18nUseExternalIds !== false, this.options.enableI18nLegacyMessageIdFormat !== false, this.usePoisonedData, this.options.i18nNormalizeLineEndingsInICUs === true, this.moduleResolver, this.cycleAnalyzer, cycleHandlingStrategy, refEmitter, this.incrementalCompilation.depGraph, injectableRegistry, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder),
6752
- new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, isCore, semanticDepGraphUpdater, this.closureCompilerEnabled, false, this.delegatingPerfRecorder),
6805
+ new ComponentDecoratorHandler(reflector, evaluator, metaRegistry, metaReader, scopeReader, depScopeReader, ngModuleScopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, this.resourceManager, this.adapter.rootDirs, this.options.preserveWhitespaces || false, this.options.i18nUseExternalIds !== false, this.options.enableI18nLegacyMessageIdFormat !== false, this.usePoisonedData, this.options.i18nNormalizeLineEndingsInICUs === true, this.moduleResolver, this.cycleAnalyzer, cycleHandlingStrategy, refEmitter, this.incrementalCompilation.depGraph, injectableRegistry, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, hostDirectivesResolver),
6806
+ new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, refEmitter, isCore, semanticDepGraphUpdater, this.closureCompilerEnabled, false, this.delegatingPerfRecorder),
6753
6807
  new PipeDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder),
6754
6808
  new InjectableDecoratorHandler(reflector, isCore, this.options.strictInjectionParameters || false, injectableRegistry, this.delegatingPerfRecorder),
6755
6809
  new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, ngModuleScopeRegistry, referencesRegistry, isCore, refEmitter, this.adapter.factoryTracker, this.closureCompilerEnabled, (_a = this.options.onlyPublishPublicTypingsForNgModules) != null ? _a : false, injectableRegistry, this.delegatingPerfRecorder)
@@ -6939,7 +6993,7 @@ function versionMapFromProgram(program, driver) {
6939
6993
  return versions;
6940
6994
  }
6941
6995
 
6942
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
6996
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
6943
6997
  import ts33 from "typescript";
6944
6998
  var DelegatingCompilerHost2 = class {
6945
6999
  constructor(delegate) {
@@ -7083,7 +7137,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
7083
7137
  }
7084
7138
  };
7085
7139
 
7086
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
7140
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
7087
7141
  var NgtscProgram = class {
7088
7142
  constructor(rootNames, options, delegateHost, oldProgram) {
7089
7143
  this.options = options;
@@ -7292,17 +7346,16 @@ function mergeEmitResults(emitResults) {
7292
7346
  return { diagnostics, emitSkipped, emittedFiles };
7293
7347
  }
7294
7348
 
7295
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
7349
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
7296
7350
  function createProgram({ rootNames, options, host, oldProgram }) {
7297
7351
  return new NgtscProgram(rootNames, options, host, oldProgram);
7298
7352
  }
7299
7353
 
7300
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
7354
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
7301
7355
  import ts36 from "typescript";
7302
7356
 
7303
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
7357
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
7304
7358
  import ts35 from "typescript";
7305
- var GENERATED_FILES = /(.*?)\.(ngfactory|shim\.ngstyle|ngstyle|ngsummary)\.(js|d\.ts|ts)$/;
7306
7359
  function createMessageDiagnostic(messageText) {
7307
7360
  return {
7308
7361
  file: void 0,
@@ -7315,7 +7368,7 @@ function createMessageDiagnostic(messageText) {
7315
7368
  };
7316
7369
  }
7317
7370
 
7318
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
7371
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
7319
7372
  var defaultFormatHost = {
7320
7373
  getCurrentDirectory: () => ts36.sys.getCurrentDirectory(),
7321
7374
  getCanonicalFileName: (fileName) => fileName,
@@ -7337,7 +7390,7 @@ function calcProjectFileAndBasePath(project, host = getFileSystem()) {
7337
7390
  return { projectFile, basePath };
7338
7391
  }
7339
7392
  function readConfiguration(project, existingOptions, host = getFileSystem()) {
7340
- var _a, _b;
7393
+ var _a;
7341
7394
  try {
7342
7395
  const fs = getFileSystem();
7343
7396
  const readConfigFile = (configFile) => ts36.readConfigFile(configFile, (file) => host.readFile(host.resolve(file)));
@@ -7375,7 +7428,6 @@ function readConfiguration(project, existingOptions, host = getFileSystem()) {
7375
7428
  };
7376
7429
  const parseConfigHost = createParseConfigHost(host, fs);
7377
7430
  const { options, errors, fileNames: rootNames, projectReferences } = ts36.parseJsonConfigFileContent(config, parseConfigHost, basePath, existingCompilerOptions, configFileName);
7378
- options.enableIvy = !!((_a = options.enableIvy) != null ? _a : true);
7379
7431
  let emitFlags = EmitFlags.Default;
7380
7432
  if (!(options.skipMetadataEmit || options.flatModuleOutFile)) {
7381
7433
  emitFlags |= EmitFlags.Metadata;
@@ -7387,7 +7439,7 @@ function readConfiguration(project, existingOptions, host = getFileSystem()) {
7387
7439
  } catch (e) {
7388
7440
  const errors = [{
7389
7441
  category: ts36.DiagnosticCategory.Error,
7390
- messageText: (_b = e.stack) != null ? _b : e.message,
7442
+ messageText: (_a = e.stack) != null ? _a : e.message,
7391
7443
  file: void 0,
7392
7444
  start: void 0,
7393
7445
  length: void 0,
@@ -7513,7 +7565,6 @@ export {
7513
7565
  NgCompilerHost,
7514
7566
  NgtscProgram,
7515
7567
  createProgram,
7516
- GENERATED_FILES,
7517
7568
  createMessageDiagnostic,
7518
7569
  formatDiagnostics,
7519
7570
  calcProjectFileAndBasePath,
@@ -7530,4 +7581,4 @@ export {
7530
7581
  * found in the LICENSE file at https://angular.io/license
7531
7582
  */
7532
7583
  // Closure Compiler ignores @suppress and similar if the comment contains @license.
7533
- //# sourceMappingURL=chunk-NDIOQ2EH.js.map
7584
+ //# sourceMappingURL=chunk-NJU6754X.js.map