@angular/compiler-cli 15.0.0-next.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 (56) 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-DM4TYSFG.js → chunk-7YHMCUJT.js} +2 -2
  4. package/bundles/{chunk-DM4TYSFG.js.map → chunk-7YHMCUJT.js.map} +0 -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-KUSEWNLW.js → chunk-FHVSPC32.js} +31 -31
  10. package/bundles/{chunk-KUSEWNLW.js.map → chunk-FHVSPC32.js.map} +0 -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-TR3BZDPT.js → chunk-HTGNPCKD.js} +6 -7
  14. package/bundles/chunk-HTGNPCKD.js.map +6 -0
  15. package/bundles/{chunk-MQGVI6KC.js → chunk-I6QQYDN3.js} +71 -71
  16. package/bundles/{chunk-MQGVI6KC.js.map → chunk-I6QQYDN3.js.map} +0 -0
  17. package/bundles/{chunk-4CS5WLPD.js → chunk-NJU6754X.js} +135 -107
  18. package/bundles/chunk-NJU6754X.js.map +6 -0
  19. package/bundles/{chunk-PLV54QMQ.js → chunk-NX4VAKY6.js} +40 -40
  20. package/bundles/{chunk-PLV54QMQ.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-IKKP4LXM.js → chunk-TF2TR2WS.js} +39 -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-MT76GVED.js → chunk-TTNGBVW6.js} +71 -71
  28. package/bundles/{chunk-MT76GVED.js.map → chunk-TTNGBVW6.js.map} +0 -0
  29. package/bundles/{chunk-JN4TT3OU.js → chunk-UZLFREET.js} +7 -7
  30. package/bundles/{chunk-JN4TT3OU.js.map → chunk-UZLFREET.js.map} +0 -0
  31. package/bundles/{chunk-MOE5WKIA.js → chunk-XDX5RDY5.js} +7 -7
  32. package/bundles/{chunk-MOE5WKIA.js.map → chunk-XDX5RDY5.js.map} +0 -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/packages/build_marker.d.ts +1 -1
  48. package/package.json +2 -2
  49. package/src/ngtsc/core/api/src/public_options.d.ts +1 -13
  50. package/src/ngtsc/diagnostics/index.d.ts +1 -1
  51. package/src/ngtsc/diagnostics/src/error.d.ts +1 -0
  52. package/src/ngtsc/typecheck/diagnostics/src/diagnostic.d.ts +4 -0
  53. package/src/transformers/util.d.ts +0 -1
  54. package/bundles/chunk-4CS5WLPD.js.map +0 -6
  55. package/bundles/chunk-IKKP4LXM.js.map +0 -6
  56. package/bundles/chunk-TR3BZDPT.js.map +0 -6
@@ -31,11 +31,11 @@ import {
31
31
  aliasTransformFactory,
32
32
  declarationTransformFactory,
33
33
  ivyTransformFactory
34
- } from "./chunk-MQGVI6KC.js";
34
+ } from "./chunk-I6QQYDN3.js";
35
35
  import {
36
36
  TypeScriptReflectionHost,
37
37
  isNamedClassDeclaration
38
- } from "./chunk-MOE5WKIA.js";
38
+ } from "./chunk-XDX5RDY5.js";
39
39
  import {
40
40
  AbsoluteModuleStrategy,
41
41
  AliasStrategy,
@@ -57,6 +57,7 @@ import {
57
57
  RelativePathStrategy,
58
58
  UnifiedModulesAliasingHost,
59
59
  UnifiedModulesStrategy,
60
+ addDiagnosticChain,
60
61
  assertSuccessfulReferenceEmit,
61
62
  getRootDirs,
62
63
  getSourceFileOrNull,
@@ -66,6 +67,7 @@ import {
66
67
  isNonDeclarationTsPath,
67
68
  isSymbolWithValueDeclaration,
68
69
  makeDiagnostic,
70
+ makeDiagnosticChain,
69
71
  makeRelatedInformation,
70
72
  ngErrorCode,
71
73
  normalizeSeparators,
@@ -74,13 +76,13 @@ import {
74
76
  toUnredirectedSourceFile,
75
77
  translateExpression,
76
78
  translateType
77
- } from "./chunk-IKKP4LXM.js";
79
+ } from "./chunk-TF2TR2WS.js";
78
80
  import {
79
81
  getDecorators,
80
82
  getModifiers,
81
83
  updateImportDeclaration,
82
84
  updateTypeParameterDeclaration
83
- } from "./chunk-DM4TYSFG.js";
85
+ } from "./chunk-7YHMCUJT.js";
84
86
  import {
85
87
  LogicalFileSystem,
86
88
  absoluteFrom,
@@ -91,16 +93,16 @@ import {
91
93
  getSourceFileOrError,
92
94
  join,
93
95
  resolve
94
- } from "./chunk-4NRCP3Y6.js";
96
+ } from "./chunk-TOKOIIBI.js";
95
97
  import {
96
98
  ActivePerfRecorder,
97
99
  DelegatingPerfRecorder,
98
100
  PerfCheckpoint,
99
101
  PerfEvent,
100
102
  PerfPhase
101
- } from "./chunk-RCXOJZDO.js";
103
+ } from "./chunk-2HPI44CB.js";
102
104
 
103
- // 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
104
106
  var DEFAULT_ERROR_CODE = 100;
105
107
  var UNKNOWN_ERROR_CODE = 500;
106
108
  var SOURCE = "angular";
@@ -118,7 +120,7 @@ var EmitFlags;
118
120
  EmitFlags2[EmitFlags2["All"] = 31] = "All";
119
121
  })(EmitFlags || (EmitFlags = {}));
120
122
 
121
- // 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
122
124
  import ts from "typescript";
123
125
  var wrapHostForTest = null;
124
126
  function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, true) }) {
@@ -128,21 +130,21 @@ function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, t
128
130
  return tsHost;
129
131
  }
130
132
 
131
- // 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
132
134
  var OptimizeFor;
133
135
  (function(OptimizeFor2) {
134
136
  OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
135
137
  OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
136
138
  })(OptimizeFor || (OptimizeFor = {}));
137
139
 
138
- // 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
139
141
  var CompletionKind;
140
142
  (function(CompletionKind2) {
141
143
  CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
142
144
  CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
143
145
  })(CompletionKind || (CompletionKind = {}));
144
146
 
145
- // 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
146
148
  var SymbolKind;
147
149
  (function(SymbolKind2) {
148
150
  SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
@@ -158,11 +160,11 @@ var SymbolKind;
158
160
  SymbolKind2[SymbolKind2["Pipe"] = 10] = "Pipe";
159
161
  })(SymbolKind || (SymbolKind = {}));
160
162
 
161
- // 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
162
164
  import { HtmlParser, MessageBundle } from "@angular/compiler";
163
165
  import ts34 from "typescript";
164
166
 
165
- // 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
166
168
  import { Xliff, Xliff2, Xmb } from "@angular/compiler";
167
169
  import * as path from "path";
168
170
  function i18nGetExtension(formatName) {
@@ -213,10 +215,10 @@ function getPathNormalizer(basePath) {
213
215
  };
214
216
  }
215
217
 
216
- // 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
217
219
  import ts2 from "typescript";
218
220
 
219
- // 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
220
222
  function toNumbers(value) {
221
223
  const suffixIndex = value.lastIndexOf("-");
222
224
  return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
@@ -251,7 +253,7 @@ function compareVersions(v1, v2) {
251
253
  return compareNumbers(toNumbers(v1), toNumbers(v2));
252
254
  }
253
255
 
254
- // 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
255
257
  var MIN_TS_VERSION = "4.6.2";
256
258
  var MAX_TS_VERSION = "4.9.0";
257
259
  var tsVersion = ts2.version;
@@ -264,10 +266,10 @@ function verifySupportedTypeScriptVersion() {
264
266
  checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
265
267
  }
266
268
 
267
- // 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
268
270
  import ts32 from "typescript";
269
271
 
270
- // 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
271
273
  var CycleAnalyzer = class {
272
274
  constructor(importGraph) {
273
275
  this.importGraph = importGraph;
@@ -338,7 +340,7 @@ var Cycle = class {
338
340
  }
339
341
  };
340
342
 
341
- // 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
342
344
  import ts3 from "typescript";
343
345
  var ImportGraph = class {
344
346
  constructor(checker, perf) {
@@ -430,7 +432,7 @@ var Found = class {
430
432
  }
431
433
  };
432
434
 
433
- // 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
434
436
  import ts4 from "typescript";
435
437
  var FlatIndexGenerator = class {
436
438
  constructor(entryPoint, relativeFlatIndexPath, moduleName) {
@@ -455,7 +457,7 @@ export * from '${relativeEntryPoint}';
455
457
  }
456
458
  };
457
459
 
458
- // 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
459
461
  function findFlatIndexEntryPoint(rootFiles) {
460
462
  const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
461
463
  let resolvedEntryPoint = null;
@@ -471,7 +473,7 @@ function findFlatIndexEntryPoint(rootFiles) {
471
473
  return resolvedEntryPoint;
472
474
  }
473
475
 
474
- // 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
475
477
  import ts5 from "typescript";
476
478
  function checkForPrivateExports(entryPoint, checker, refGraph) {
477
479
  const diagnostics = [];
@@ -551,7 +553,7 @@ function getDescriptorOfDeclaration(decl) {
551
553
  }
552
554
  }
553
555
 
554
- // 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
555
557
  var ReferenceGraph = class {
556
558
  constructor() {
557
559
  this.references = /* @__PURE__ */ new Map();
@@ -605,7 +607,7 @@ var ReferenceGraph = class {
605
607
  }
606
608
  };
607
609
 
608
- // 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
609
611
  var NgOriginalFile = Symbol("NgOriginalFile");
610
612
  var UpdateMode;
611
613
  (function(UpdateMode2) {
@@ -613,13 +615,13 @@ var UpdateMode;
613
615
  UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
614
616
  })(UpdateMode || (UpdateMode = {}));
615
617
 
616
- // 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
617
619
  import ts9 from "typescript";
618
620
 
619
- // 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
620
622
  import ts6 from "typescript";
621
623
 
622
- // 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
623
625
  var NgExtension = Symbol("NgExtension");
624
626
  function isExtended(sf) {
625
627
  return sf[NgExtension] !== void 0;
@@ -679,7 +681,7 @@ function retagTsFile(sf) {
679
681
  }
680
682
  }
681
683
 
682
- // 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
683
685
  var TS_EXTENSIONS = /\.tsx?$/i;
684
686
  function makeShimFileName(fileName, suffix) {
685
687
  return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
@@ -694,7 +696,7 @@ function generatedModuleName(originalModuleName, originalFileName, genSuffix) {
694
696
  return moduleName;
695
697
  }
696
698
 
697
- // 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
698
700
  var ShimAdapter = class {
699
701
  constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
700
702
  this.delegate = delegate;
@@ -791,7 +793,7 @@ var ShimAdapter = class {
791
793
  }
792
794
  };
793
795
 
794
- // 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
795
797
  import ts7 from "typescript";
796
798
  var TS_DTS_SUFFIX = /(\.d)?\.ts$/;
797
799
  var STRIP_NG_FACTORY = /(.*)NgFactory$/;
@@ -939,7 +941,7 @@ function updateInitializers(stmt, update) {
939
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)))));
940
942
  }
941
943
 
942
- // 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
943
945
  var ShimReferenceTagger = class {
944
946
  constructor(shimExtensions) {
945
947
  this.tagged = /* @__PURE__ */ new Set();
@@ -973,7 +975,7 @@ var ShimReferenceTagger = class {
973
975
  }
974
976
  };
975
977
 
976
- // 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
977
979
  import ts8 from "typescript";
978
980
  var SummaryGenerator = class {
979
981
  constructor() {
@@ -1014,7 +1016,7 @@ function isExported2(decl) {
1014
1016
  return modifiers !== void 0 && modifiers.some((mod) => mod.kind == ts8.SyntaxKind.ExportKeyword) || false;
1015
1017
  }
1016
1018
 
1017
- // 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
1018
1020
  var DelegatingCompilerHost = class {
1019
1021
  constructor(delegate) {
1020
1022
  this.delegate = delegate;
@@ -1124,7 +1126,7 @@ var TsCreateProgramDriver = class {
1124
1126
  }
1125
1127
  };
1126
1128
 
1127
- // 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
1128
1130
  var FileDependencyGraph = class {
1129
1131
  constructor() {
1130
1132
  this.nodes = /* @__PURE__ */ new Map();
@@ -1191,7 +1193,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
1191
1193
  return false;
1192
1194
  }
1193
1195
 
1194
- // 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
1195
1197
  var IncrementalStateKind;
1196
1198
  (function(IncrementalStateKind2) {
1197
1199
  IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
@@ -1199,7 +1201,7 @@ var IncrementalStateKind;
1199
1201
  IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
1200
1202
  })(IncrementalStateKind || (IncrementalStateKind = {}));
1201
1203
 
1202
- // 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
1203
1205
  var PhaseKind;
1204
1206
  (function(PhaseKind2) {
1205
1207
  PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
@@ -1400,7 +1402,7 @@ function toOriginalSourceFile(sf) {
1400
1402
  }
1401
1403
  }
1402
1404
 
1403
- // 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
1404
1406
  var TrackedIncrementalBuildStrategy = class {
1405
1407
  constructor() {
1406
1408
  this.state = null;
@@ -1436,7 +1438,7 @@ var PatchedProgramIncrementalBuildStrategy = class {
1436
1438
  };
1437
1439
  var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
1438
1440
 
1439
- // 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
1440
1442
  var IdentifierKind;
1441
1443
  (function(IdentifierKind2) {
1442
1444
  IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
@@ -1454,7 +1456,7 @@ var AbsoluteSourceSpan = class {
1454
1456
  }
1455
1457
  };
1456
1458
 
1457
- // 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
1458
1460
  var IndexingContext = class {
1459
1461
  constructor() {
1460
1462
  this.components = /* @__PURE__ */ new Set();
@@ -1464,10 +1466,10 @@ var IndexingContext = class {
1464
1466
  }
1465
1467
  };
1466
1468
 
1467
- // 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
1468
1470
  import { ParseSourceFile } from "@angular/compiler";
1469
1471
 
1470
- // 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
1471
1473
  import { ASTWithSource, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate } from "@angular/compiler";
1472
1474
  var ExpressionVisitor = class extends RecursiveAstVisitor {
1473
1475
  constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
@@ -1704,7 +1706,7 @@ function getTemplateIdentifiers(boundTemplate) {
1704
1706
  return { identifiers: visitor.identifiers, errors: visitor.errors };
1705
1707
  }
1706
1708
 
1707
- // 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
1708
1710
  function generateAnalysis(context) {
1709
1711
  const analysis = /* @__PURE__ */ new Map();
1710
1712
  context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
@@ -1740,7 +1742,7 @@ function generateAnalysis(context) {
1740
1742
  return analysis;
1741
1743
  }
1742
1744
 
1743
- // 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
1744
1746
  import ts10 from "typescript";
1745
1747
  var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
1746
1748
  var RESOURCE_MARKER = ".$ngresource$";
@@ -1886,7 +1888,7 @@ function createLookupResolutionHost(adapter) {
1886
1888
  };
1887
1889
  }
1888
1890
 
1889
- // 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
1890
1892
  var StandaloneComponentScopeReader = class {
1891
1893
  constructor(metaReader, localModuleReader, dtsModuleReader) {
1892
1894
  this.metaReader = metaReader;
@@ -1964,12 +1966,13 @@ var StandaloneComponentScopeReader = class {
1964
1966
  }
1965
1967
  };
1966
1968
 
1967
- // 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
1968
1970
  import { CssSelector, DomElementSchemaRegistry as DomElementSchemaRegistry2 } from "@angular/compiler";
1969
1971
 
1970
- // 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
1971
1973
  import ts11 from "typescript";
1972
1974
  function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
1975
+ var _a;
1973
1976
  if (mapping.type === "direct") {
1974
1977
  let relatedInformation = void 0;
1975
1978
  if (relatedMessages !== void 0) {
@@ -2001,7 +2004,6 @@ function makeTemplateDiagnostic(templateId, mapping, span, category, code, messa
2001
2004
  const componentSf = mapping.componentClass.getSourceFile();
2002
2005
  const componentName = mapping.componentClass.name.text;
2003
2006
  const fileName = mapping.type === "indirect" ? `${componentSf.fileName} (${componentName} template)` : mapping.templateUrl;
2004
- const sf = ts11.createSourceFile(fileName, mapping.template, ts11.ScriptTarget.Latest, false, ts11.ScriptKind.JSX);
2005
2007
  let relatedInformation = [];
2006
2008
  if (relatedMessages !== void 0) {
2007
2009
  for (const relatedMessage of relatedMessages) {
@@ -2015,6 +2017,26 @@ function makeTemplateDiagnostic(templateId, mapping, span, category, code, messa
2015
2017
  });
2016
2018
  }
2017
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
+ }
2018
2040
  relatedInformation.push({
2019
2041
  category: ts11.DiagnosticCategory.Message,
2020
2042
  code: 0,
@@ -2039,8 +2061,15 @@ function makeTemplateDiagnostic(templateId, mapping, span, category, code, messa
2039
2061
  throw new Error(`Unexpected source mapping type: ${mapping.type}`);
2040
2062
  }
2041
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
+ }
2042
2071
 
2043
- // 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
2044
2073
  var TEMPLATE_ID = Symbol("ngTemplateId");
2045
2074
  var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
2046
2075
  function getTemplateId(clazz) {
@@ -2057,11 +2086,11 @@ function allocateTemplateId(sf) {
2057
2086
  return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
2058
2087
  }
2059
2088
 
2060
- // 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
2061
2090
  import { EmptyExpr, ImplicitReceiver as ImplicitReceiver2, PropertyRead as PropertyRead2, PropertyWrite as PropertyWrite2, SafePropertyRead, TmplAstReference as TmplAstReference2, TmplAstTextAttribute } from "@angular/compiler";
2062
2091
  import ts13 from "typescript";
2063
2092
 
2064
- // 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
2065
2094
  import { AbsoluteSourceSpan as AbsoluteSourceSpan2 } from "@angular/compiler";
2066
2095
  import ts12 from "typescript";
2067
2096
  var parseSpanComment = /^(\d+),(\d+)$/;
@@ -2181,7 +2210,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
2181
2210
  }) || false;
2182
2211
  }
2183
2212
 
2184
- // 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
2185
2214
  var CompletionEngine = class {
2186
2215
  constructor(tcb, data, tcbPath, tcbIsShim) {
2187
2216
  this.tcb = tcb;
@@ -2338,10 +2367,10 @@ var CompletionEngine = class {
2338
2367
  }
2339
2368
  };
2340
2369
 
2341
- // 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
2342
2371
  import ts27 from "typescript";
2343
2372
 
2344
- // 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
2345
2374
  import { DomElementSchemaRegistry } from "@angular/compiler";
2346
2375
  import ts14 from "typescript";
2347
2376
  var REGISTRY = new DomElementSchemaRegistry();
@@ -2394,11 +2423,11 @@ var RegistryDomSchemaChecker = class {
2394
2423
  }
2395
2424
  };
2396
2425
 
2397
- // 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
2398
2427
  import { ExpressionType, ExternalExpr, TypeModifier } from "@angular/compiler";
2399
2428
  import ts20 from "typescript";
2400
2429
 
2401
- // 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
2402
2431
  import ts15 from "typescript";
2403
2432
  var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
2404
2433
  ts15.SyntaxKind.ParenthesizedExpression,
@@ -2445,16 +2474,16 @@ function isAccessExpression(node) {
2445
2474
  return ts15.isPropertyAccessExpression(node) || ts15.isElementAccessExpression(node);
2446
2475
  }
2447
2476
 
2448
- // 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
2449
2478
  import ts19 from "typescript";
2450
2479
 
2451
- // 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
2452
2481
  import ts18 from "typescript";
2453
2482
 
2454
- // 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
2455
2484
  import ts17 from "typescript";
2456
2485
 
2457
- // 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
2458
2487
  import ts16 from "typescript";
2459
2488
  var INELIGIBLE = {};
2460
2489
  function canEmitType(type, canEmit) {
@@ -2529,7 +2558,7 @@ var TypeEmitter = class {
2529
2558
  }
2530
2559
  };
2531
2560
 
2532
- // 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
2533
2562
  var TypeParameterEmitter = class {
2534
2563
  constructor(typeParameters, reflector) {
2535
2564
  this.typeParameters = typeParameters;
@@ -2606,7 +2635,7 @@ var TypeParameterEmitter = class {
2606
2635
  }
2607
2636
  };
2608
2637
 
2609
- // 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
2610
2639
  var TcbInliningRequirement;
2611
2640
  (function(TcbInliningRequirement2) {
2612
2641
  TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
@@ -2686,7 +2715,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
2686
2715
  return emitter.canEmit((ref) => env.canReferenceType(ref));
2687
2716
  }
2688
2717
 
2689
- // 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
2690
2719
  function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
2691
2720
  const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
2692
2721
  const rawType = ts19.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
@@ -2757,7 +2786,7 @@ function typeParametersWithDefaultTypes(params) {
2757
2786
  });
2758
2787
  }
2759
2788
 
2760
- // 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
2761
2790
  var Environment = class {
2762
2791
  constructor(config, importManager, refEmitter, reflector, contextFile) {
2763
2792
  this.config = config;
@@ -2849,7 +2878,7 @@ var Environment = class {
2849
2878
  }
2850
2879
  };
2851
2880
 
2852
- // 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
2853
2882
  import { TmplAstElement as TmplAstElement2 } from "@angular/compiler";
2854
2883
  import ts21 from "typescript";
2855
2884
  var OutOfBandDiagnosticRecorderImpl = class {
@@ -2982,7 +3011,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
2982
3011
  };
2983
3012
  }
2984
3013
 
2985
- // 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
2986
3015
  import ts22 from "typescript";
2987
3016
  var TypeCheckShimGenerator = class {
2988
3017
  constructor() {
@@ -3000,11 +3029,11 @@ var TypeCheckShimGenerator = class {
3000
3029
  }
3001
3030
  };
3002
3031
 
3003
- // 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
3004
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";
3005
3034
  import ts25 from "typescript";
3006
3035
 
3007
- // 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
3008
3037
  import { AbsoluteSourceSpan as AbsoluteSourceSpan3 } from "@angular/compiler";
3009
3038
  import ts23 from "typescript";
3010
3039
  function wrapForDiagnostics(expr) {
@@ -3050,7 +3079,7 @@ function translateDiagnostic(diagnostic, resolver) {
3050
3079
  return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
3051
3080
  }
3052
3081
 
3053
- // 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
3054
3083
  import { ASTWithSource as ASTWithSource2, Call, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead3, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
3055
3084
  import ts24 from "typescript";
3056
3085
  var NULL_AS_ANY = ts24.factory.createAsExpression(ts24.factory.createNull(), ts24.factory.createKeywordTypeNode(ts24.SyntaxKind.AnyKeyword));
@@ -3380,7 +3409,7 @@ var VeSafeLhsInferenceBugDetector = class {
3380
3409
  };
3381
3410
  VeSafeLhsInferenceBugDetector.SINGLETON = new VeSafeLhsInferenceBugDetector();
3382
3411
 
3383
- // 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
3384
3413
  import { ImplicitReceiver as ImplicitReceiver3, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstVariable } from "@angular/compiler";
3385
3414
  var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
3386
3415
  constructor(templateId, boundTarget, oob) {
@@ -3404,7 +3433,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
3404
3433
  }
3405
3434
  };
3406
3435
 
3407
- // 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
3408
3437
  var TcbGenericContextBehavior;
3409
3438
  (function(TcbGenericContextBehavior2) {
3410
3439
  TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
@@ -3823,6 +3852,7 @@ var TcbDomSchemaCheckerOp = class extends TcbOp {
3823
3852
  return false;
3824
3853
  }
3825
3854
  execute() {
3855
+ var _a;
3826
3856
  if (this.checkElement) {
3827
3857
  this.tcb.domSchemaChecker.checkElement(this.tcb.id, this.element, this.tcb.schemas, this.tcb.hostIsStandalone);
3828
3858
  }
@@ -3832,7 +3862,7 @@ var TcbDomSchemaCheckerOp = class extends TcbOp {
3832
3862
  }
3833
3863
  if (binding.type === 0) {
3834
3864
  if (binding.name !== "style" && binding.name !== "class") {
3835
- const propertyName = ATTR_TO_PROP[binding.name] || binding.name;
3865
+ const propertyName = (_a = ATTR_TO_PROP.get(binding.name)) != null ? _a : binding.name;
3836
3866
  this.tcb.domSchemaChecker.checkProperty(this.tcb.id, this.element, propertyName, binding.sourceSpan, this.tcb.schemas, this.tcb.hostIsStandalone);
3837
3867
  }
3838
3868
  }
@@ -3840,14 +3870,14 @@ var TcbDomSchemaCheckerOp = class extends TcbOp {
3840
3870
  return null;
3841
3871
  }
3842
3872
  };
3843
- var ATTR_TO_PROP = {
3873
+ var ATTR_TO_PROP = new Map(Object.entries({
3844
3874
  "class": "className",
3845
3875
  "for": "htmlFor",
3846
3876
  "formaction": "formAction",
3847
3877
  "innerHtml": "innerHTML",
3848
3878
  "readonly": "readOnly",
3849
3879
  "tabindex": "tabIndex"
3850
- };
3880
+ }));
3851
3881
  var TcbUnclaimedInputsOp = class extends TcbOp {
3852
3882
  constructor(tcb, scope, element, claimedInputs) {
3853
3883
  super();
@@ -3860,6 +3890,7 @@ var TcbUnclaimedInputsOp = class extends TcbOp {
3860
3890
  return false;
3861
3891
  }
3862
3892
  execute() {
3893
+ var _a;
3863
3894
  let elId = null;
3864
3895
  for (const binding of this.element.inputs) {
3865
3896
  if (binding.type === 0 && this.claimedInputs.has(binding.name)) {
@@ -3871,7 +3902,7 @@ var TcbUnclaimedInputsOp = class extends TcbOp {
3871
3902
  if (elId === null) {
3872
3903
  elId = this.scope.resolve(this.element);
3873
3904
  }
3874
- const propertyName = ATTR_TO_PROP[binding.name] || binding.name;
3905
+ const propertyName = (_a = ATTR_TO_PROP.get(binding.name)) != null ? _a : binding.name;
3875
3906
  const prop = ts25.factory.createElementAccessExpression(elId, ts25.factory.createStringLiteral(propertyName));
3876
3907
  const stmt = ts25.factory.createBinaryExpression(prop, ts25.SyntaxKind.EqualsToken, wrapForDiagnostics(expr));
3877
3908
  addParseSpanInfo(stmt, binding.sourceSpan);
@@ -4463,7 +4494,7 @@ var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
4463
4494
  }
4464
4495
  };
4465
4496
 
4466
- // 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
4467
4498
  import ts26 from "typescript";
4468
4499
  var TypeCheckFile = class extends Environment {
4469
4500
  constructor(fileName, config, refEmitter, reflector, compilerHost) {
@@ -4499,7 +4530,7 @@ var TypeCheckFile = class extends Environment {
4499
4530
  }
4500
4531
  };
4501
4532
 
4502
- // 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
4503
4534
  var InliningMode;
4504
4535
  (function(InliningMode2) {
4505
4536
  InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
@@ -4737,10 +4768,10 @@ function splitStringAtPoints(str, points) {
4737
4768
  return splits;
4738
4769
  }
4739
4770
 
4740
- // 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
4741
4772
  import { ParseLocation, ParseSourceSpan } from "@angular/compiler";
4742
4773
 
4743
- // 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
4744
4775
  var LF_CHAR = 10;
4745
4776
  var CR_CHAR = 13;
4746
4777
  var LINE_SEP_CHAR = 8232;
@@ -4781,7 +4812,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
4781
4812
  return low - 1;
4782
4813
  }
4783
4814
 
4784
- // 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
4785
4816
  var TemplateSource = class {
4786
4817
  constructor(mapping, file) {
4787
4818
  this.mapping = mapping;
@@ -4832,7 +4863,7 @@ var TemplateSourceManager = class {
4832
4863
  }
4833
4864
  };
4834
4865
 
4835
- // 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
4836
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";
4837
4868
  import ts28 from "typescript";
4838
4869
  var SymbolBuilder = class {
@@ -5277,7 +5308,7 @@ function sourceSpanEqual(a, b) {
5277
5308
  return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
5278
5309
  }
5279
5310
 
5280
- // 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
5281
5312
  var REGISTRY2 = new DomElementSchemaRegistry2();
5282
5313
  var TemplateTypeCheckerImpl = class {
5283
5314
  constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, componentScopeReader, typeCheckScopeRegistry, perf) {
@@ -5849,10 +5880,10 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
5849
5880
  }
5850
5881
  };
5851
5882
 
5852
- // 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
5853
5884
  import { TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
5854
5885
 
5855
- // 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
5856
5887
  import { ASTWithSource as ASTWithSource4, RecursiveAstVisitor as RecursiveAstVisitor3 } from "@angular/compiler";
5857
5888
  var TemplateCheckWithVisitor = class {
5858
5889
  run(ctx, component, template) {
@@ -5929,7 +5960,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor3 {
5929
5960
  }
5930
5961
  };
5931
5962
 
5932
- // 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
5933
5964
  var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
5934
5965
  constructor() {
5935
5966
  super(...arguments);
@@ -5954,7 +5985,7 @@ var factory = {
5954
5985
  create: () => new InvalidBananaInBoxCheck()
5955
5986
  };
5956
5987
 
5957
- // 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
5958
5989
  import { TmplAstTemplate as TmplAstTemplate4 } from "@angular/compiler";
5959
5990
  var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
5960
5991
  ["ngIf", "NgIf"],
@@ -5999,7 +6030,7 @@ var factory2 = {
5999
6030
  }
6000
6031
  };
6001
6032
 
6002
- // 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
6003
6034
  import { TmplAstTemplate as TmplAstTemplate5 } from "@angular/compiler";
6004
6035
  var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
6005
6036
  constructor() {
@@ -6032,7 +6063,7 @@ var factory3 = {
6032
6063
  create: () => new MissingNgForOfLetCheck()
6033
6064
  };
6034
6065
 
6035
- // 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
6036
6067
  import { Binary } from "@angular/compiler";
6037
6068
  import ts29 from "typescript";
6038
6069
  var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
@@ -6077,7 +6108,7 @@ var factory4 = {
6077
6108
  }
6078
6109
  };
6079
6110
 
6080
- // 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
6081
6112
  import { SafeCall as SafeCall2, SafeKeyedRead as SafeKeyedRead2, SafePropertyRead as SafePropertyRead5 } from "@angular/compiler";
6082
6113
  import ts30 from "typescript";
6083
6114
  var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
@@ -6123,7 +6154,7 @@ var factory5 = {
6123
6154
  }
6124
6155
  };
6125
6156
 
6126
- // 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
6127
6158
  import { TmplAstBoundAttribute as TmplAstBoundAttribute3 } from "@angular/compiler";
6128
6159
  var STYLE_SUFFIXES = ["px", "%", "em"];
6129
6160
  var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
@@ -6147,7 +6178,7 @@ var factory6 = {
6147
6178
  create: () => new SuffixNotSupportedCheck()
6148
6179
  };
6149
6180
 
6150
- // 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
6151
6182
  import { TmplAstTextAttribute as TmplAstTextAttribute4 } from "@angular/compiler";
6152
6183
  var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
6153
6184
  constructor() {
@@ -6186,10 +6217,10 @@ var factory7 = {
6186
6217
  create: () => new TextAttributeNotBindingSpec()
6187
6218
  };
6188
6219
 
6189
- // 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
6190
6221
  import ts31 from "typescript";
6191
6222
 
6192
- // 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
6193
6224
  var DiagnosticCategoryLabel;
6194
6225
  (function(DiagnosticCategoryLabel2) {
6195
6226
  DiagnosticCategoryLabel2["Warning"] = "warning";
@@ -6197,7 +6228,7 @@ var DiagnosticCategoryLabel;
6197
6228
  DiagnosticCategoryLabel2["Suppress"] = "suppress";
6198
6229
  })(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
6199
6230
 
6200
- // 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
6201
6232
  var ExtendedTemplateCheckerImpl = class {
6202
6233
  constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
6203
6234
  var _a, _b, _c, _d, _e;
@@ -6250,7 +6281,7 @@ function assertNever(value) {
6250
6281
  ${value}`);
6251
6282
  }
6252
6283
 
6253
- // 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
6254
6285
  var ALL_DIAGNOSTIC_FACTORIES = [
6255
6286
  factory,
6256
6287
  factory4,
@@ -6261,7 +6292,7 @@ var ALL_DIAGNOSTIC_FACTORIES = [
6261
6292
  factory6
6262
6293
  ];
6263
6294
 
6264
- // 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
6265
6296
  var CompilationTicketKind;
6266
6297
  (function(CompilationTicketKind2) {
6267
6298
  CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
@@ -6962,7 +6993,7 @@ function versionMapFromProgram(program, driver) {
6962
6993
  return versions;
6963
6994
  }
6964
6995
 
6965
- // 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
6966
6997
  import ts33 from "typescript";
6967
6998
  var DelegatingCompilerHost2 = class {
6968
6999
  constructor(delegate) {
@@ -7106,7 +7137,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
7106
7137
  }
7107
7138
  };
7108
7139
 
7109
- // 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
7110
7141
  var NgtscProgram = class {
7111
7142
  constructor(rootNames, options, delegateHost, oldProgram) {
7112
7143
  this.options = options;
@@ -7315,17 +7346,16 @@ function mergeEmitResults(emitResults) {
7315
7346
  return { diagnostics, emitSkipped, emittedFiles };
7316
7347
  }
7317
7348
 
7318
- // 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
7319
7350
  function createProgram({ rootNames, options, host, oldProgram }) {
7320
7351
  return new NgtscProgram(rootNames, options, host, oldProgram);
7321
7352
  }
7322
7353
 
7323
- // 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
7324
7355
  import ts36 from "typescript";
7325
7356
 
7326
- // 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
7327
7358
  import ts35 from "typescript";
7328
- var GENERATED_FILES = /(.*?)\.(ngfactory|shim\.ngstyle|ngstyle|ngsummary)\.(js|d\.ts|ts)$/;
7329
7359
  function createMessageDiagnostic(messageText) {
7330
7360
  return {
7331
7361
  file: void 0,
@@ -7338,7 +7368,7 @@ function createMessageDiagnostic(messageText) {
7338
7368
  };
7339
7369
  }
7340
7370
 
7341
- // 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
7342
7372
  var defaultFormatHost = {
7343
7373
  getCurrentDirectory: () => ts36.sys.getCurrentDirectory(),
7344
7374
  getCanonicalFileName: (fileName) => fileName,
@@ -7360,7 +7390,7 @@ function calcProjectFileAndBasePath(project, host = getFileSystem()) {
7360
7390
  return { projectFile, basePath };
7361
7391
  }
7362
7392
  function readConfiguration(project, existingOptions, host = getFileSystem()) {
7363
- var _a, _b;
7393
+ var _a;
7364
7394
  try {
7365
7395
  const fs = getFileSystem();
7366
7396
  const readConfigFile = (configFile) => ts36.readConfigFile(configFile, (file) => host.readFile(host.resolve(file)));
@@ -7398,7 +7428,6 @@ function readConfiguration(project, existingOptions, host = getFileSystem()) {
7398
7428
  };
7399
7429
  const parseConfigHost = createParseConfigHost(host, fs);
7400
7430
  const { options, errors, fileNames: rootNames, projectReferences } = ts36.parseJsonConfigFileContent(config, parseConfigHost, basePath, existingCompilerOptions, configFileName);
7401
- options.enableIvy = !!((_a = options.enableIvy) != null ? _a : true);
7402
7431
  let emitFlags = EmitFlags.Default;
7403
7432
  if (!(options.skipMetadataEmit || options.flatModuleOutFile)) {
7404
7433
  emitFlags |= EmitFlags.Metadata;
@@ -7410,7 +7439,7 @@ function readConfiguration(project, existingOptions, host = getFileSystem()) {
7410
7439
  } catch (e) {
7411
7440
  const errors = [{
7412
7441
  category: ts36.DiagnosticCategory.Error,
7413
- messageText: (_b = e.stack) != null ? _b : e.message,
7442
+ messageText: (_a = e.stack) != null ? _a : e.message,
7414
7443
  file: void 0,
7415
7444
  start: void 0,
7416
7445
  length: void 0,
@@ -7536,7 +7565,6 @@ export {
7536
7565
  NgCompilerHost,
7537
7566
  NgtscProgram,
7538
7567
  createProgram,
7539
- GENERATED_FILES,
7540
7568
  createMessageDiagnostic,
7541
7569
  formatDiagnostics,
7542
7570
  calcProjectFileAndBasePath,
@@ -7553,4 +7581,4 @@ export {
7553
7581
  * found in the LICENSE file at https://angular.io/license
7554
7582
  */
7555
7583
  // Closure Compiler ignores @suppress and similar if the comment contains @license.
7556
- //# sourceMappingURL=chunk-4CS5WLPD.js.map
7584
+ //# sourceMappingURL=chunk-NJU6754X.js.map