@angular/compiler-cli 17.0.0-next.0 → 17.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 (46) hide show
  1. package/bundles/{chunk-HJOPJLIM.js → chunk-7PCPPTTO.js} +5 -5
  2. package/bundles/{chunk-WFZNEQRO.js → chunk-ABAFIH3N.js} +93 -93
  3. package/bundles/{chunk-U7JQC45O.js → chunk-BOXNK2F2.js} +119 -86
  4. package/bundles/{chunk-U7JQC45O.js.map → chunk-BOXNK2F2.js.map} +1 -1
  5. package/bundles/{chunk-GYHDNUIK.js → chunk-EKTJ7622.js} +7 -7
  6. package/bundles/{chunk-O44BCL4P.js → chunk-HEDZI6BK.js} +10 -42
  7. package/bundles/chunk-HEDZI6BK.js.map +6 -0
  8. package/bundles/{chunk-UHYH6BYB.js → chunk-JZC4T2RR.js} +1 -1
  9. package/bundles/{chunk-SBDNBITT.js → chunk-LYJKWJUC.js} +3 -3
  10. package/bundles/{chunk-7AJOGEL7.js → chunk-NGWY7NOB.js} +29 -27
  11. package/bundles/{chunk-7AJOGEL7.js.map → chunk-NGWY7NOB.js.map} +1 -1
  12. package/bundles/{chunk-FXPDGYDZ.js → chunk-OYEEKZWP.js} +4 -4
  13. package/bundles/{chunk-EC5K6QPP.js → chunk-PCMLSPQF.js} +8 -8
  14. package/bundles/{chunk-P4NPKMGZ.js → chunk-QJNBIBVG.js} +8 -8
  15. package/bundles/chunk-XI2RTGAL.js +16 -0
  16. package/bundles/{chunk-FRSHP5TN.js → chunk-Y4VOTDJT.js} +31 -31
  17. package/bundles/index.js +14 -14
  18. package/bundles/linker/babel/index.js +14 -14
  19. package/bundles/linker/index.js +6 -6
  20. package/bundles/ngcc/index.js +1 -1
  21. package/bundles/private/bazel.js +2 -2
  22. package/bundles/private/localize.js +4 -4
  23. package/bundles/private/migrations.js +7 -7
  24. package/bundles/private/tooling.js +5 -5
  25. package/bundles/src/bin/ng_xi18n.js +12 -12
  26. package/bundles/src/bin/ngc.js +11 -19
  27. package/bundles/src/bin/ngc.js.map +1 -1
  28. package/bundles_metadata.json +1 -1
  29. package/package.json +3 -3
  30. package/src/main.d.ts +2 -4
  31. package/src/ngtsc/annotations/component/src/resources.d.ts +3 -2
  32. package/src/ngtsc/annotations/directive/src/shared.d.ts +1 -0
  33. package/src/ngtsc/diagnostics/src/error_code.d.ts +11 -1
  34. package/src/ngtsc/logging/src/console_logger.d.ts +3 -3
  35. package/bundles/chunk-O44BCL4P.js.map +0 -6
  36. package/bundles/chunk-SRFZMXHZ.js +0 -35
  37. /package/bundles/{chunk-HJOPJLIM.js.map → chunk-7PCPPTTO.js.map} +0 -0
  38. /package/bundles/{chunk-WFZNEQRO.js.map → chunk-ABAFIH3N.js.map} +0 -0
  39. /package/bundles/{chunk-GYHDNUIK.js.map → chunk-EKTJ7622.js.map} +0 -0
  40. /package/bundles/{chunk-SRFZMXHZ.js.map → chunk-JZC4T2RR.js.map} +0 -0
  41. /package/bundles/{chunk-SBDNBITT.js.map → chunk-LYJKWJUC.js.map} +0 -0
  42. /package/bundles/{chunk-FXPDGYDZ.js.map → chunk-OYEEKZWP.js.map} +0 -0
  43. /package/bundles/{chunk-EC5K6QPP.js.map → chunk-PCMLSPQF.js.map} +0 -0
  44. /package/bundles/{chunk-P4NPKMGZ.js.map → chunk-QJNBIBVG.js.map} +0 -0
  45. /package/bundles/{chunk-UHYH6BYB.js.map → chunk-XI2RTGAL.js.map} +0 -0
  46. /package/bundles/{chunk-FRSHP5TN.js.map → chunk-Y4VOTDJT.js.map} +0 -0
@@ -7,7 +7,7 @@ import {
7
7
  translateExpression,
8
8
  translateStatement,
9
9
  translateType
10
- } from "./chunk-P4NPKMGZ.js";
10
+ } from "./chunk-QJNBIBVG.js";
11
11
  import {
12
12
  ClassMemberKind,
13
13
  ErrorCode,
@@ -30,18 +30,18 @@ import {
30
30
  reflectObjectLiteral,
31
31
  reflectTypeEntityToDeclaration,
32
32
  typeNodeToValueExpr
33
- } from "./chunk-7AJOGEL7.js";
33
+ } from "./chunk-NGWY7NOB.js";
34
34
  import {
35
35
  PerfEvent,
36
36
  PerfPhase
37
- } from "./chunk-HJOPJLIM.js";
37
+ } from "./chunk-7PCPPTTO.js";
38
38
  import {
39
39
  absoluteFrom,
40
40
  absoluteFromSourceFile,
41
41
  relative
42
- } from "./chunk-EC5K6QPP.js";
42
+ } from "./chunk-PCMLSPQF.js";
43
43
 
44
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
44
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
45
45
  import { ExternalExpr, ParseLocation, ParseSourceFile, ParseSourceSpan, ReadPropExpr, WrappedNodeExpr } from "@angular/compiler";
46
46
  import ts from "typescript";
47
47
  function valueReferenceToExpression(valueRef) {
@@ -283,7 +283,7 @@ function isAbstractClassDeclaration(clazz) {
283
283
  return ts.canHaveModifiers(clazz) && clazz.modifiers !== void 0 ? clazz.modifiers.some((mod) => mod.kind === ts.SyntaxKind.AbstractKeyword) : false;
284
284
  }
285
285
 
286
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
286
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
287
287
  var DynamicValue = class {
288
288
  constructor(node, reason, code) {
289
289
  this.node = node;
@@ -373,10 +373,10 @@ var DynamicValue = class {
373
373
  }
374
374
  };
375
375
 
376
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
376
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
377
377
  import ts2 from "typescript";
378
378
 
379
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
379
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
380
380
  var ResolvedModule = class {
381
381
  constructor(exports, evaluate) {
382
382
  this.exports = exports;
@@ -406,7 +406,7 @@ var EnumValue = class {
406
406
  var KnownFn = class {
407
407
  };
408
408
 
409
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
409
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
410
410
  var ArraySliceBuiltinFn = class extends KnownFn {
411
411
  constructor(lhs) {
412
412
  super();
@@ -458,14 +458,14 @@ var StringConcatBuiltinFn = class extends KnownFn {
458
458
  }
459
459
  };
460
460
 
461
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
461
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
462
462
  var SyntheticValue = class {
463
463
  constructor(value) {
464
464
  this.value = value;
465
465
  }
466
466
  };
467
467
 
468
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
468
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
469
469
  function literalBinaryOp(op) {
470
470
  return { op, literal: true };
471
471
  }
@@ -1046,7 +1046,7 @@ function getOriginalKeywordKind(identifier) {
1046
1046
  return typeof ts2.identifierToKeywordKind === "function" ? ts2.identifierToKeywordKind(identifier) : identifier.originalKeywordKind;
1047
1047
  }
1048
1048
 
1049
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
1049
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
1050
1050
  var PartialEvaluator = class {
1051
1051
  constructor(host, checker, dependencyTracker) {
1052
1052
  this.host = host;
@@ -1066,7 +1066,7 @@ var PartialEvaluator = class {
1066
1066
  }
1067
1067
  };
1068
1068
 
1069
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
1069
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
1070
1070
  import ts3 from "typescript";
1071
1071
  function describeResolvedType(value, maxDepth = 1) {
1072
1072
  var _a, _b;
@@ -1196,11 +1196,11 @@ function getContainerNode(node) {
1196
1196
  return node.getSourceFile();
1197
1197
  }
1198
1198
 
1199
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
1199
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
1200
1200
  import { LiteralExpr, ReadPropExpr as ReadPropExpr2, WrappedNodeExpr as WrappedNodeExpr2 } from "@angular/compiler";
1201
1201
  import ts10 from "typescript";
1202
1202
 
1203
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
1203
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
1204
1204
  var CompilationMode;
1205
1205
  (function(CompilationMode2) {
1206
1206
  CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
@@ -1214,7 +1214,7 @@ var HandlerPrecedence;
1214
1214
  HandlerPrecedence2[HandlerPrecedence2["WEAK"] = 2] = "WEAK";
1215
1215
  })(HandlerPrecedence || (HandlerPrecedence = {}));
1216
1216
 
1217
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
1217
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
1218
1218
  import ts4 from "typescript";
1219
1219
  function aliasTransformFactory(exportStatements) {
1220
1220
  return () => {
@@ -1237,10 +1237,10 @@ function aliasTransformFactory(exportStatements) {
1237
1237
  };
1238
1238
  }
1239
1239
 
1240
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
1240
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
1241
1241
  import ts5 from "typescript";
1242
1242
 
1243
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
1243
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
1244
1244
  var TraitState;
1245
1245
  (function(TraitState2) {
1246
1246
  TraitState2[TraitState2["Pending"] = 0] = "Pending";
@@ -1297,7 +1297,7 @@ var TraitImpl = class {
1297
1297
  }
1298
1298
  };
1299
1299
 
1300
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
1300
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
1301
1301
  var TraitCompiler = class {
1302
1302
  constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
1303
1303
  this.handlers = handlers;
@@ -1745,10 +1745,10 @@ function containsErrors(diagnostics) {
1745
1745
  return diagnostics !== null && diagnostics.some((diag) => diag.category === ts5.DiagnosticCategory.Error);
1746
1746
  }
1747
1747
 
1748
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
1748
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
1749
1749
  import ts7 from "typescript";
1750
1750
 
1751
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
1751
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
1752
1752
  import ts6 from "typescript";
1753
1753
  function addImports(importManager, sf, extraStatements = []) {
1754
1754
  const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
@@ -1784,7 +1784,7 @@ function isImportStatement(stmt) {
1784
1784
  return ts6.isImportDeclaration(stmt) || ts6.isImportEqualsDeclaration(stmt) || ts6.isNamespaceImport(stmt);
1785
1785
  }
1786
1786
 
1787
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
1787
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
1788
1788
  var DtsTransformRegistry = class {
1789
1789
  constructor() {
1790
1790
  this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
@@ -1931,11 +1931,11 @@ function markForEmitAsSingleLine(node) {
1931
1931
  ts7.forEachChild(node, markForEmitAsSingleLine);
1932
1932
  }
1933
1933
 
1934
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
1934
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
1935
1935
  import { ConstantPool } from "@angular/compiler";
1936
1936
  import ts9 from "typescript";
1937
1937
 
1938
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
1938
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
1939
1939
  import ts8 from "typescript";
1940
1940
  function visit(node, visitor, context) {
1941
1941
  return visitor._visit(node, context);
@@ -1996,7 +1996,7 @@ var Visitor = class {
1996
1996
  }
1997
1997
  };
1998
1998
 
1999
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
1999
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
2000
2000
  var NO_DECORATORS = /* @__PURE__ */ new Set();
2001
2001
  var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
2002
2002
  function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
@@ -2220,7 +2220,7 @@ function nodeArrayFromDecoratorsArray(decorators) {
2220
2220
  return array;
2221
2221
  }
2222
2222
 
2223
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
2223
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
2224
2224
  function getConstructorDependencies(clazz, reflector, isCore, compilationMode) {
2225
2225
  const deps = [];
2226
2226
  const errors = [];
@@ -2377,10 +2377,10 @@ function createUnsuitableInjectionTokenError(clazz, error) {
2377
2377
  return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
2378
2378
  }
2379
2379
 
2380
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
2380
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
2381
2381
  import ts13 from "typescript";
2382
2382
 
2383
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
2383
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
2384
2384
  var MetaKind;
2385
2385
  (function(MetaKind2) {
2386
2386
  MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
@@ -2393,10 +2393,10 @@ var MatchSource;
2393
2393
  MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
2394
2394
  })(MatchSource || (MatchSource = {}));
2395
2395
 
2396
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
2396
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
2397
2397
  import ts12 from "typescript";
2398
2398
 
2399
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
2399
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
2400
2400
  var ClassPropertyMapping = class {
2401
2401
  constructor(forwardMap) {
2402
2402
  this.forwardMap = forwardMap;
@@ -2474,7 +2474,7 @@ function reverseMapFromForwardMap(forwardMap) {
2474
2474
  return reverseMap;
2475
2475
  }
2476
2476
 
2477
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
2477
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
2478
2478
  import ts11 from "typescript";
2479
2479
  function extractReferencesFromType(checker, def, bestGuessOwningModule) {
2480
2480
  if (!ts11.isTupleTypeNode(def)) {
@@ -2659,7 +2659,7 @@ function hasInjectableFields(clazz, host) {
2659
2659
  return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
2660
2660
  }
2661
2661
 
2662
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
2662
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
2663
2663
  var DtsMetadataReader = class {
2664
2664
  constructor(checker, reflector) {
2665
2665
  this.checker = checker;
@@ -2834,7 +2834,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
2834
2834
  return result.length > 0 ? result : null;
2835
2835
  }
2836
2836
 
2837
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
2837
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
2838
2838
  function flattenInheritedDirectiveMetadata(reader, dir) {
2839
2839
  const topMeta = reader.getDirectiveMetadata(dir);
2840
2840
  if (topMeta === null) {
@@ -2892,7 +2892,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
2892
2892
  };
2893
2893
  }
2894
2894
 
2895
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
2895
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
2896
2896
  var LocalMetadataRegistry = class {
2897
2897
  constructor() {
2898
2898
  this.directives = /* @__PURE__ */ new Map();
@@ -2949,7 +2949,7 @@ var CompoundMetadataRegistry = class {
2949
2949
  }
2950
2950
  };
2951
2951
 
2952
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
2952
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
2953
2953
  var ResourceRegistry = class {
2954
2954
  constructor() {
2955
2955
  this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
@@ -3014,7 +3014,7 @@ var ResourceRegistry = class {
3014
3014
  }
3015
3015
  };
3016
3016
 
3017
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/providers.mjs
3017
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/providers.mjs
3018
3018
  var ExportedProviderStatusResolver = class {
3019
3019
  constructor(metaReader) {
3020
3020
  this.metaReader = metaReader;
@@ -3058,7 +3058,7 @@ var ExportedProviderStatusResolver = class {
3058
3058
  }
3059
3059
  };
3060
3060
 
3061
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
3061
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
3062
3062
  var EMPTY_ARRAY = [];
3063
3063
  var HostDirectivesResolver = class {
3064
3064
  constructor(metaReader) {
@@ -3120,7 +3120,7 @@ function resolveOutput(bindingName) {
3120
3120
  return bindingName;
3121
3121
  }
3122
3122
 
3123
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
3123
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
3124
3124
  function makeDuplicateDeclarationError(node, data, kind) {
3125
3125
  const context = [];
3126
3126
  for (const decl of data) {
@@ -3316,7 +3316,7 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, kind) {
3316
3316
  return makeDiagnostic(ErrorCode.DIRECTIVE_INHERITS_UNDECORATED_CTOR, node.name, `The ${kind.toLowerCase()} ${node.name.text} inherits its constructor from ${baseClassName}, but the latter does not have an Angular decorator of its own. Dependency injection will not be able to resolve the parameters of ${baseClassName}'s constructor. Either add a @${baseNeedsDecorator} decorator to ${baseClassName}, or add an explicit constructor to ${node.name.text}.`);
3317
3317
  }
3318
3318
 
3319
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
3319
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
3320
3320
  import ts14 from "typescript";
3321
3321
  function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
3322
3322
  let resolved = null;
@@ -3349,7 +3349,7 @@ function resolveLiteral(decorator, literalCache) {
3349
3349
  return meta;
3350
3350
  }
3351
3351
 
3352
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
3352
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
3353
3353
  import { compileDeclareFactoryFunction, compileFactoryFunction } from "@angular/compiler";
3354
3354
  function compileNgFactoryDefField(metadata) {
3355
3355
  const res = compileFactoryFunction(metadata);
@@ -3372,7 +3372,7 @@ function compileDeclareFactory(metadata) {
3372
3372
  };
3373
3373
  }
3374
3374
 
3375
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
3375
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
3376
3376
  var InjectableClassRegistry = class {
3377
3377
  constructor(host, isCore) {
3378
3378
  this.host = host;
@@ -3398,7 +3398,7 @@ var InjectableClassRegistry = class {
3398
3398
  }
3399
3399
  };
3400
3400
 
3401
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
3401
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
3402
3402
  import { FunctionExpr, LiteralArrayExpr, LiteralExpr as LiteralExpr2, literalMap, ReturnStatement, WrappedNodeExpr as WrappedNodeExpr3 } from "@angular/compiler";
3403
3403
  import ts15 from "typescript";
3404
3404
  function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
@@ -3485,13 +3485,13 @@ function removeIdentifierReferences(node, names) {
3485
3485
  return result.transformed[0];
3486
3486
  }
3487
3487
 
3488
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
3488
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
3489
3489
  var NoopReferencesRegistry = class {
3490
3490
  add(source, ...references) {
3491
3491
  }
3492
3492
  };
3493
3493
 
3494
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
3494
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
3495
3495
  import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from "@angular/compiler";
3496
3496
  function extractSchemas(rawExpr, evaluator, context) {
3497
3497
  const schemas = [];
@@ -3521,7 +3521,7 @@ function extractSchemas(rawExpr, evaluator, context) {
3521
3521
  return schemas;
3522
3522
  }
3523
3523
 
3524
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/input_transforms.mjs
3524
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/input_transforms.mjs
3525
3525
  import { outputAst } from "@angular/compiler";
3526
3526
  function compileInputTransformFields(inputs) {
3527
3527
  const extraFields = [];
@@ -3539,11 +3539,11 @@ function compileInputTransformFields(inputs) {
3539
3539
  return extraFields;
3540
3540
  }
3541
3541
 
3542
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
3542
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
3543
3543
  import { compileClassMetadata as compileClassMetadata3, compileComponentClassMetadata, compileComponentFromMetadata, compileDeclareClassMetadata as compileDeclareClassMetadata3, compileDeclareComponentFromMetadata, CssSelector as CssSelector2, DEFAULT_INTERPOLATION_CONFIG as DEFAULT_INTERPOLATION_CONFIG2, DomElementSchemaRegistry, FactoryTarget as FactoryTarget3, makeBindingParser as makeBindingParser2, R3TargetBinder, R3TemplateDependencyKind, SelectorMatcher as SelectorMatcher2, ViewEncapsulation, WrappedNodeExpr as WrappedNodeExpr7 } from "@angular/compiler";
3544
3544
  import ts24 from "typescript";
3545
3545
 
3546
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
3546
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
3547
3547
  import ts16 from "typescript";
3548
3548
  var SemanticSymbol = class {
3549
3549
  constructor(decl) {
@@ -3559,7 +3559,7 @@ function getSymbolIdentifier(decl) {
3559
3559
  return decl.name.text;
3560
3560
  }
3561
3561
 
3562
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
3562
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
3563
3563
  import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
3564
3564
  var OpaqueSymbol = class extends SemanticSymbol {
3565
3565
  isPublicApiAffected() {
@@ -3702,10 +3702,10 @@ function getImportPath(expr) {
3702
3702
  }
3703
3703
  }
3704
3704
 
3705
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
3705
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
3706
3706
  import ts17 from "typescript";
3707
3707
 
3708
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
3708
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
3709
3709
  function isSymbolEqual(a, b) {
3710
3710
  if (a.decl === b.decl) {
3711
3711
  return true;
@@ -3755,7 +3755,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
3755
3755
  return true;
3756
3756
  }
3757
3757
 
3758
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
3758
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
3759
3759
  function extractSemanticTypeParameters(node) {
3760
3760
  if (!ts17.isClassDeclaration(node) || node.typeParameters === void 0) {
3761
3761
  return null;
@@ -3775,14 +3775,14 @@ function isTypeParameterEqual(a, b) {
3775
3775
  return a.hasGenericTypeBound === b.hasGenericTypeBound;
3776
3776
  }
3777
3777
 
3778
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
3778
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
3779
3779
  var ComponentScopeKind;
3780
3780
  (function(ComponentScopeKind2) {
3781
3781
  ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
3782
3782
  ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
3783
3783
  })(ComponentScopeKind || (ComponentScopeKind = {}));
3784
3784
 
3785
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
3785
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
3786
3786
  var CompoundComponentScopeReader = class {
3787
3787
  constructor(readers) {
3788
3788
  this.readers = readers;
@@ -3807,7 +3807,7 @@ var CompoundComponentScopeReader = class {
3807
3807
  }
3808
3808
  };
3809
3809
 
3810
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
3810
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
3811
3811
  var MetadataDtsModuleScopeResolver = class {
3812
3812
  constructor(dtsMetaReader, aliasingHost) {
3813
3813
  this.dtsMetaReader = dtsMetaReader;
@@ -3883,11 +3883,11 @@ var MetadataDtsModuleScopeResolver = class {
3883
3883
  }
3884
3884
  };
3885
3885
 
3886
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
3886
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
3887
3887
  import { ExternalExpr as ExternalExpr3 } from "@angular/compiler";
3888
3888
  import ts18 from "typescript";
3889
3889
 
3890
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
3890
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
3891
3891
  function getDiagnosticNode(ref, rawExpr) {
3892
3892
  return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
3893
3893
  }
@@ -3910,7 +3910,7 @@ function makeUnknownComponentImportDiagnostic(ref, rawExpr) {
3910
3910
  return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, getDiagnosticNode(ref, rawExpr), `Component imports must be standalone components, directives, pipes, or must be NgModules.`);
3911
3911
  }
3912
3912
 
3913
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
3913
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
3914
3914
  var LocalModuleScopeRegistry = class {
3915
3915
  constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
3916
3916
  this.localReader = localReader;
@@ -4249,7 +4249,7 @@ function reexportCollision(module, refA, refB) {
4249
4249
  ]);
4250
4250
  }
4251
4251
 
4252
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
4252
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
4253
4253
  import { CssSelector, SelectorMatcher } from "@angular/compiler";
4254
4254
  import ts19 from "typescript";
4255
4255
  var TypeCheckScopeRegistry = class {
@@ -4318,10 +4318,10 @@ var TypeCheckScopeRegistry = class {
4318
4318
  }
4319
4319
  };
4320
4320
 
4321
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
4321
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
4322
4322
  import { compileClassMetadata, compileDeclareClassMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, FactoryTarget, makeBindingParser, WrappedNodeExpr as WrappedNodeExpr5 } from "@angular/compiler";
4323
4323
 
4324
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
4324
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
4325
4325
  import { createMayBeForwardRefExpression, emitDistinctChangesOnlyDefaultValue, ExternalExpr as ExternalExpr4, getSafePropertyAccessString, parseHostBindings, verifyHostBindings, WrappedNodeExpr as WrappedNodeExpr4 } from "@angular/compiler";
4326
4326
  import ts20 from "typescript";
4327
4327
  var EMPTY_OBJECT = {};
@@ -4597,6 +4597,30 @@ function extractQueriesFromDecorator(queryData, reflector, evaluator, isCore) {
4597
4597
  });
4598
4598
  return { content, view };
4599
4599
  }
4600
+ function parseDirectiveStyles(directive, evaluator, compilationMode) {
4601
+ const expression = directive.get("styles");
4602
+ if (!expression) {
4603
+ return null;
4604
+ }
4605
+ const value = evaluator.evaluate(expression);
4606
+ if (compilationMode === CompilationMode.LOCAL && Array.isArray(value)) {
4607
+ for (const entry of value) {
4608
+ if (entry instanceof DynamicValue && entry.isFromUnknownIdentifier()) {
4609
+ const relatedInformation = traceDynamicValue(expression, entry);
4610
+ const chain = {
4611
+ messageText: `Unknown identifier used as styles string: ${entry.node.getText()} (did you import this string from another file? This is not allowed in local compilation mode. Please either inline it or move it to a separate file and include it using'styleUrls')`,
4612
+ category: ts20.DiagnosticCategory.Error,
4613
+ code: 0
4614
+ };
4615
+ throw new FatalDiagnosticError(ErrorCode.LOCAL_COMPILATION_IMPORTED_STYLES_STRING, expression, chain, relatedInformation);
4616
+ }
4617
+ }
4618
+ }
4619
+ if (!isStringArrayOrDie(value, "styles", expression)) {
4620
+ throw createValueHasWrongTypeError(expression, value, `Failed to resolve @Directive.styles to a string array`);
4621
+ }
4622
+ return value;
4623
+ }
4600
4624
  function parseFieldStringArrayValue(directive, field, evaluator) {
4601
4625
  if (!directive.has(field)) {
4602
4626
  return null;
@@ -4885,7 +4909,7 @@ function toR3InputMetadata(mapping) {
4885
4909
  };
4886
4910
  }
4887
4911
 
4888
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
4912
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
4889
4913
  var DirectiveSymbol = class extends SemanticSymbol {
4890
4914
  constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
4891
4915
  super(decl);
@@ -4965,7 +4989,7 @@ function isBaseClassEqual(current, previous) {
4965
4989
  return isSymbolEqual(current, previous);
4966
4990
  }
4967
4991
 
4968
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
4992
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
4969
4993
  var FIELD_DECORATORS = [
4970
4994
  "Input",
4971
4995
  "Output",
@@ -5137,11 +5161,11 @@ var DirectiveDecoratorHandler = class {
5137
5161
  }
5138
5162
  };
5139
5163
 
5140
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
5164
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
5141
5165
  import { compileClassMetadata as compileClassMetadata2, compileDeclareClassMetadata as compileDeclareClassMetadata2, compileDeclareInjectorFromMetadata, compileDeclareNgModuleFromMetadata, compileInjector, compileNgModule, ExternalExpr as ExternalExpr5, FactoryTarget as FactoryTarget2, FunctionExpr as FunctionExpr2, InvokeFunctionExpr, LiteralArrayExpr as LiteralArrayExpr2, R3Identifiers, R3NgModuleMetadataKind, R3SelectorScopeMode, ReturnStatement as ReturnStatement2, WrappedNodeExpr as WrappedNodeExpr6 } from "@angular/compiler";
5142
5166
  import ts22 from "typescript";
5143
5167
 
5144
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
5168
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
5145
5169
  import ts21 from "typescript";
5146
5170
  function createModuleWithProvidersResolver(reflector, isCore) {
5147
5171
  function _reflectModuleFromTypeParam(type, node) {
@@ -5208,7 +5232,7 @@ function isResolvedModuleWithProviders(sv) {
5208
5232
  return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
5209
5233
  }
5210
5234
 
5211
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
5235
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
5212
5236
  var NgModuleSymbol = class extends SemanticSymbol {
5213
5237
  constructor(decl, hasProviders) {
5214
5238
  super(decl);
@@ -5771,7 +5795,7 @@ function isSyntheticReference(ref) {
5771
5795
  return ref.synthetic;
5772
5796
  }
5773
5797
 
5774
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
5798
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
5775
5799
  function makeCyclicImportInfo(ref, type, cycle) {
5776
5800
  const name = ref.debugName || "(unknown)";
5777
5801
  const path = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
@@ -5794,13 +5818,13 @@ function checkCustomElementSelectorForErrors(selector) {
5794
5818
  return null;
5795
5819
  }
5796
5820
 
5797
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
5821
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
5798
5822
  import { DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, ParseSourceFile as ParseSourceFile2, parseTemplate } from "@angular/compiler";
5799
5823
  import ts23 from "typescript";
5800
5824
  function getTemplateDeclarationNodeForError(declaration) {
5801
5825
  return declaration.isInline ? declaration.expression : declaration.templateUrlExpression;
5802
5826
  }
5803
- function extractTemplate(node, template, evaluator, depTracker, resourceLoader, options) {
5827
+ function extractTemplate(node, template, evaluator, depTracker, resourceLoader, options, compilationMode) {
5804
5828
  if (template.isInline) {
5805
5829
  let sourceStr;
5806
5830
  let sourceParseRange = null;
@@ -5820,6 +5844,15 @@ function extractTemplate(node, template, evaluator, depTracker, resourceLoader,
5820
5844
  sourceMapUrl = template.resolvedTemplateUrl;
5821
5845
  } else {
5822
5846
  const resolvedTemplate = evaluator.evaluate(template.expression);
5847
+ if (compilationMode === CompilationMode.LOCAL && resolvedTemplate instanceof DynamicValue && resolvedTemplate.isFromUnknownIdentifier()) {
5848
+ const relatedInformation = traceDynamicValue(template.expression, resolvedTemplate);
5849
+ const chain = {
5850
+ messageText: `Unknown identifier used as template string: ${template.expression.getText()} (did you import this string from another file? This is not allowed in local compilation mode. Please either inline it or move it to a separate file and include it using 'templateUrl')`,
5851
+ category: ts23.DiagnosticCategory.Error,
5852
+ code: 0
5853
+ };
5854
+ throw new FatalDiagnosticError(ErrorCode.LOCAL_COMPILATION_IMPORTED_TEMPLATE_STRING, template.expression, chain, relatedInformation);
5855
+ }
5823
5856
  if (typeof resolvedTemplate !== "string") {
5824
5857
  throw createValueHasWrongTypeError(template.expression, resolvedTemplate, "template must be a string");
5825
5858
  }
@@ -5948,7 +5981,7 @@ function parseTemplateDeclaration(node, decorator, component, containingFile, ev
5948
5981
  throw new FatalDiagnosticError(ErrorCode.COMPONENT_MISSING_TEMPLATE, decorator.node, "component is missing a template");
5949
5982
  }
5950
5983
  }
5951
- function preloadAndParseTemplate(evaluator, resourceLoader, depTracker, preanalyzeTemplateCache, node, decorator, component, containingFile, defaultPreserveWhitespaces, options) {
5984
+ function preloadAndParseTemplate(evaluator, resourceLoader, depTracker, preanalyzeTemplateCache, node, decorator, component, containingFile, defaultPreserveWhitespaces, options, compilationMode) {
5952
5985
  if (component.has("templateUrl")) {
5953
5986
  const templateUrlExpr = component.get("templateUrl");
5954
5987
  const templateUrl = evaluator.evaluate(templateUrlExpr);
@@ -5961,7 +5994,7 @@ function preloadAndParseTemplate(evaluator, resourceLoader, depTracker, preanaly
5961
5994
  if (templatePromise !== void 0) {
5962
5995
  return templatePromise.then(() => {
5963
5996
  const templateDecl = parseTemplateDeclaration(node, decorator, component, containingFile, evaluator, depTracker, resourceLoader, defaultPreserveWhitespaces);
5964
- const template = extractTemplate(node, templateDecl, evaluator, depTracker, resourceLoader, options);
5997
+ const template = extractTemplate(node, templateDecl, evaluator, depTracker, resourceLoader, options, compilationMode);
5965
5998
  preanalyzeTemplateCache.set(node, template);
5966
5999
  return template;
5967
6000
  });
@@ -5976,7 +6009,7 @@ function preloadAndParseTemplate(evaluator, resourceLoader, depTracker, preanaly
5976
6009
  }
5977
6010
  } else {
5978
6011
  const templateDecl = parseTemplateDeclaration(node, decorator, component, containingFile, evaluator, depTracker, resourceLoader, defaultPreserveWhitespaces);
5979
- const template = extractTemplate(node, templateDecl, evaluator, depTracker, resourceLoader, options);
6012
+ const template = extractTemplate(node, templateDecl, evaluator, depTracker, resourceLoader, options, compilationMode);
5980
6013
  preanalyzeTemplateCache.set(node, template);
5981
6014
  return Promise.resolve(template);
5982
6015
  }
@@ -6109,7 +6142,7 @@ function _extractTemplateStyleUrls(template) {
6109
6142
  return template.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
6110
6143
  }
6111
6144
 
6112
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
6145
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
6113
6146
  var ComponentSymbol = class extends DirectiveSymbol {
6114
6147
  constructor() {
6115
6148
  super(...arguments);
@@ -6144,7 +6177,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
6144
6177
  }
6145
6178
  };
6146
6179
 
6147
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
6180
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
6148
6181
  function collectAnimationNames(value, animationTriggerNames) {
6149
6182
  if (value instanceof Map) {
6150
6183
  const name = value.get("name");
@@ -6220,7 +6253,7 @@ function isLikelyModuleWithProviders(value) {
6220
6253
  return false;
6221
6254
  }
6222
6255
 
6223
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
6256
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
6224
6257
  var EMPTY_ARRAY2 = [];
6225
6258
  var isUsedDirective = (decl) => decl.kind === R3TemplateDependencyKind.Directive;
6226
6259
  var isUsedPipe = (decl) => decl.kind === R3TemplateDependencyKind.Pipe;
@@ -6302,7 +6335,7 @@ var ComponentDecoratorHandler = class {
6302
6335
  return void 0;
6303
6336
  }
6304
6337
  };
6305
- const templateAndTemplateStyleResources = preloadAndParseTemplate(this.evaluator, this.resourceLoader, this.depTracker, this.preanalyzeTemplateCache, node, decorator, component, containingFile, this.defaultPreserveWhitespaces, this.extractTemplateOptions).then((template) => {
6338
+ const templateAndTemplateStyleResources = preloadAndParseTemplate(this.evaluator, this.resourceLoader, this.depTracker, this.preanalyzeTemplateCache, node, decorator, component, containingFile, this.defaultPreserveWhitespaces, this.extractTemplateOptions, this.compilationMode).then((template) => {
6306
6339
  if (template === null) {
6307
6340
  return void 0;
6308
6341
  }
@@ -6311,7 +6344,7 @@ var ComponentDecoratorHandler = class {
6311
6344
  const componentStyleUrls = extractComponentStyleUrls(this.evaluator, component);
6312
6345
  let inlineStyles;
6313
6346
  if (component.has("styles")) {
6314
- const litStyles = parseFieldStringArrayValue(component, "styles", this.evaluator);
6347
+ const litStyles = parseDirectiveStyles(component, this.evaluator, this.compilationMode);
6315
6348
  if (litStyles === null) {
6316
6349
  this.preanalyzeStylesCache.set(node, null);
6317
6350
  } else {
@@ -6419,7 +6452,7 @@ var ComponentDecoratorHandler = class {
6419
6452
  i18nNormalizeLineEndingsInICUs: this.i18nNormalizeLineEndingsInICUs,
6420
6453
  usePoisonedData: this.usePoisonedData,
6421
6454
  enabledBlockTypes: this.enabledBlockTypes
6422
- });
6455
+ }, this.compilationMode);
6423
6456
  }
6424
6457
  const templateResource = template.declaration.isInline ? { path: null, expression: component.get("template") } : {
6425
6458
  path: absoluteFrom(template.declaration.resolvedTemplateUrl),
@@ -6471,7 +6504,7 @@ var ComponentDecoratorHandler = class {
6471
6504
  throw new Error("Inline resource processing requires asynchronous preanalyze.");
6472
6505
  }
6473
6506
  if (component.has("styles")) {
6474
- const litStyles = parseFieldStringArrayValue(component, "styles", this.evaluator);
6507
+ const litStyles = parseDirectiveStyles(component, this.evaluator, this.compilationMode);
6475
6508
  if (litStyles !== null) {
6476
6509
  inlineStyles = [...litStyles];
6477
6510
  styles.push(...litStyles);
@@ -6805,7 +6838,7 @@ var ComponentDecoratorHandler = class {
6805
6838
  const containingFile = node.getSourceFile().fileName;
6806
6839
  const templateDecl = analysis.template.declaration;
6807
6840
  if (!templateDecl.isInline) {
6808
- analysis.template = extractTemplate(node, templateDecl, this.evaluator, this.depTracker, this.resourceLoader, this.extractTemplateOptions);
6841
+ analysis.template = extractTemplate(node, templateDecl, this.evaluator, this.depTracker, this.resourceLoader, this.extractTemplateOptions, this.compilationMode);
6809
6842
  }
6810
6843
  let styles = [];
6811
6844
  if (analysis.styleUrls !== null) {
@@ -6999,7 +7032,7 @@ function validateStandaloneImports(importRefs, importExpr, metaReader, scopeRead
6999
7032
  return diagnostics;
7000
7033
  }
7001
7034
 
7002
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
7035
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
7003
7036
  import { compileClassMetadata as compileClassMetadata4, compileDeclareClassMetadata as compileDeclareClassMetadata4, compileDeclareInjectableFromMetadata, compileInjectable, createMayBeForwardRefExpression as createMayBeForwardRefExpression2, FactoryTarget as FactoryTarget4, LiteralExpr as LiteralExpr3, WrappedNodeExpr as WrappedNodeExpr8 } from "@angular/compiler";
7004
7037
  import ts25 from "typescript";
7005
7038
  var InjectableDecoratorHandler = class {
@@ -7225,7 +7258,7 @@ function getDep(dep, reflector) {
7225
7258
  return meta;
7226
7259
  }
7227
7260
 
7228
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
7261
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
7229
7262
  import { compileClassMetadata as compileClassMetadata5, compileDeclareClassMetadata as compileDeclareClassMetadata5, compileDeclarePipeFromMetadata, compilePipeFromMetadata, FactoryTarget as FactoryTarget5 } from "@angular/compiler";
7230
7263
  import ts26 from "typescript";
7231
7264
  var PipeSymbol = class extends SemanticSymbol {
@@ -7377,14 +7410,14 @@ var PipeDecoratorHandler = class {
7377
7410
  }
7378
7411
  };
7379
7412
 
7380
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
7413
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
7381
7414
  var OptimizeFor;
7382
7415
  (function(OptimizeFor2) {
7383
7416
  OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
7384
7417
  OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
7385
7418
  })(OptimizeFor || (OptimizeFor = {}));
7386
7419
 
7387
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
7420
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
7388
7421
  var PotentialImportKind;
7389
7422
  (function(PotentialImportKind2) {
7390
7423
  PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
@@ -7396,14 +7429,14 @@ var PotentialImportMode;
7396
7429
  PotentialImportMode2[PotentialImportMode2["ForceDirect"] = 1] = "ForceDirect";
7397
7430
  })(PotentialImportMode || (PotentialImportMode = {}));
7398
7431
 
7399
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
7432
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
7400
7433
  var CompletionKind;
7401
7434
  (function(CompletionKind2) {
7402
7435
  CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
7403
7436
  CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
7404
7437
  })(CompletionKind || (CompletionKind = {}));
7405
7438
 
7406
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
7439
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
7407
7440
  var SymbolKind;
7408
7441
  (function(SymbolKind2) {
7409
7442
  SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
@@ -7471,4 +7504,4 @@ export {
7471
7504
  * Use of this source code is governed by an MIT-style license that can be
7472
7505
  * found in the LICENSE file at https://angular.io/license
7473
7506
  */
7474
- //# sourceMappingURL=chunk-U7JQC45O.js.map
7507
+ //# sourceMappingURL=chunk-BOXNK2F2.js.map