@angular/core 17.1.0-next.5 → 17.1.0

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 (84) hide show
  1. package/esm2022/primitives/signals/index.mjs +2 -2
  2. package/esm2022/primitives/signals/src/signal.mjs +2 -10
  3. package/esm2022/src/application/application_ref.mjs +21 -5
  4. package/esm2022/src/authoring/input.mjs +12 -5
  5. package/esm2022/src/authoring/input_signal.mjs +28 -1
  6. package/esm2022/src/authoring/input_signal_node.mjs +22 -0
  7. package/esm2022/src/authoring.mjs +1 -4
  8. package/esm2022/src/change_detection/scheduling/zoneless_scheduling_impl.mjs +56 -0
  9. package/esm2022/src/compiler/compiler_facade_interface.mjs +1 -1
  10. package/esm2022/src/core.mjs +2 -2
  11. package/esm2022/src/core_private_export.mjs +2 -1
  12. package/esm2022/src/core_reactivity_export_internal.mjs +2 -2
  13. package/esm2022/src/core_render3_private_export.mjs +2 -2
  14. package/esm2022/src/defer/dom_triggers.mjs +1 -5
  15. package/esm2022/src/defer/interfaces.mjs +3 -2
  16. package/esm2022/src/di/inject_switch.mjs +2 -3
  17. package/esm2022/src/di/r3_injector.mjs +8 -6
  18. package/esm2022/src/errors.mjs +1 -1
  19. package/esm2022/src/hydration/utils.mjs +2 -2
  20. package/esm2022/src/hydration/views.mjs +2 -2
  21. package/esm2022/src/linker/view_container_ref.mjs +2 -2
  22. package/esm2022/src/metadata/directives.mjs +1 -1
  23. package/esm2022/src/render3/after_render_hooks.mjs +15 -33
  24. package/esm2022/src/render3/apply_value_input_field.mjs +16 -0
  25. package/esm2022/src/render3/collect_native_nodes.mjs +2 -3
  26. package/esm2022/src/render3/component_ref.mjs +13 -6
  27. package/esm2022/src/render3/debug/injector_profiler.mjs +1 -1
  28. package/esm2022/src/render3/definition.mjs +27 -68
  29. package/esm2022/src/render3/errors_di.mjs +4 -3
  30. package/esm2022/src/render3/features/host_directives_feature.mjs +2 -3
  31. package/esm2022/src/render3/features/inherit_definition_feature.mjs +31 -9
  32. package/esm2022/src/render3/features/input_transforms_feature.mjs +4 -5
  33. package/esm2022/src/render3/features/ng_onchanges_feature.mjs +4 -3
  34. package/esm2022/src/render3/index.mjs +2 -3
  35. package/esm2022/src/render3/instructions/advance.mjs +2 -2
  36. package/esm2022/src/render3/instructions/all.mjs +3 -2
  37. package/esm2022/src/render3/instructions/change_detection.mjs +1 -6
  38. package/esm2022/src/render3/instructions/listener.mjs +1 -1
  39. package/esm2022/src/render3/instructions/mark_view_dirty.mjs +2 -2
  40. package/esm2022/src/render3/instructions/queries.mjs +98 -0
  41. package/esm2022/src/render3/instructions/shared.mjs +61 -58
  42. package/esm2022/src/render3/instructions/write_to_directive_input.mjs +43 -0
  43. package/esm2022/src/render3/interfaces/container.mjs +1 -6
  44. package/esm2022/src/render3/interfaces/definition.mjs +8 -2
  45. package/esm2022/src/render3/interfaces/node.mjs +1 -1
  46. package/esm2022/src/render3/interfaces/view.mjs +1 -1
  47. package/esm2022/src/render3/jit/environment.mjs +3 -1
  48. package/esm2022/src/render3/node_manipulation.mjs +8 -8
  49. package/esm2022/src/render3/query.mjs +11 -98
  50. package/esm2022/src/render3/reactivity/effect.mjs +22 -42
  51. package/esm2022/src/render3/reactivity/signal.mjs +1 -1
  52. package/esm2022/src/render3/styling/style_binding_list.mjs +4 -4
  53. package/esm2022/src/render3/util/discovery_utils.mjs +37 -5
  54. package/esm2022/src/render3/util/global_utils.mjs +28 -28
  55. package/esm2022/src/render3/util/injector_discovery_utils.mjs +1 -1
  56. package/esm2022/src/render3/util/injector_utils.mjs +6 -5
  57. package/esm2022/src/render3/util/view_traversal_utils.mjs +3 -12
  58. package/esm2022/src/render3/util/view_utils.mjs +19 -15
  59. package/esm2022/src/testability/testability.mjs +3 -15
  60. package/esm2022/src/util/empty.mjs +1 -1
  61. package/esm2022/src/version.mjs +1 -1
  62. package/esm2022/testing/src/component_fixture.mjs +65 -61
  63. package/esm2022/testing/src/logger.mjs +3 -3
  64. package/esm2022/testing/src/test_bed.mjs +7 -6
  65. package/fesm2022/core.mjs +10537 -10438
  66. package/fesm2022/core.mjs.map +1 -1
  67. package/fesm2022/primitives/signals.mjs +2 -10
  68. package/fesm2022/primitives/signals.mjs.map +1 -1
  69. package/fesm2022/rxjs-interop.mjs +1 -1
  70. package/fesm2022/testing.mjs +70 -65
  71. package/fesm2022/testing.mjs.map +1 -1
  72. package/index.d.ts +644 -262
  73. package/package.json +1 -1
  74. package/primitives/signals/index.d.ts +3 -4
  75. package/rxjs-interop/index.d.ts +1 -1
  76. package/schematics/migrations/block-template-entities/bundle.js +320 -281
  77. package/schematics/migrations/block-template-entities/bundle.js.map +4 -4
  78. package/schematics/migrations/compiler-options/bundle.js +13 -13
  79. package/schematics/migrations/transfer-state/bundle.js +13 -13
  80. package/schematics/ng-generate/control-flow-migration/bundle.js +330 -291
  81. package/schematics/ng-generate/control-flow-migration/bundle.js.map +4 -4
  82. package/schematics/ng-generate/standalone-migration/bundle.js +1296 -947
  83. package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
  84. package/testing/index.d.ts +6 -2
@@ -63,7 +63,7 @@ var __async = (__this, __arguments, generator) => {
63
63
  });
64
64
  };
65
65
 
66
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/block-template-entities/index.mjs
66
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/block-template-entities/index.mjs
67
67
  var block_template_entities_exports = {};
68
68
  __export(block_template_entities_exports, {
69
69
  default: () => block_template_entities_default
@@ -72,7 +72,7 @@ module.exports = __toCommonJS(block_template_entities_exports);
72
72
  var import_schematics = require("@angular-devkit/schematics");
73
73
  var import_path3 = require("path");
74
74
 
75
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
75
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
76
76
  var import_core = require("@angular-devkit/core");
77
77
  function getProjectTsConfigPaths(tree) {
78
78
  return __async(this, null, function* () {
@@ -152,11 +152,11 @@ function getWorkspace(tree) {
152
152
  });
153
153
  }
154
154
 
155
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
155
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
156
156
  var import_path = require("path");
157
157
  var import_typescript2 = __toESM(require("typescript"), 1);
158
158
 
159
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
159
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
160
160
  var path = __toESM(require("path"), 1);
161
161
  var import_typescript = __toESM(require("typescript"), 1);
162
162
  function parseTsconfigFile(tsconfigPath, basePath) {
@@ -173,7 +173,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
173
173
  return import_typescript.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
174
174
  }
175
175
 
176
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
176
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
177
177
  function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
178
178
  const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
179
179
  return import_typescript2.default.createProgram(rootNames, options, host);
@@ -206,7 +206,7 @@ function canMigrateFile(basePath, sourceFile, program) {
206
206
  return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
207
207
  }
208
208
 
209
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/selector.mjs
209
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/selector.mjs
210
210
  var _SELECTOR_REGEXP = new RegExp(
211
211
  `(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,
212
212
  "g"
@@ -514,7 +514,7 @@ var SelectorContext = class {
514
514
  }
515
515
  };
516
516
 
517
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/core.mjs
517
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/core.mjs
518
518
  var ViewEncapsulation;
519
519
  (function(ViewEncapsulation2) {
520
520
  ViewEncapsulation2[ViewEncapsulation2["Emulated"] = 0] = "Emulated";
@@ -526,6 +526,12 @@ var ChangeDetectionStrategy;
526
526
  ChangeDetectionStrategy2[ChangeDetectionStrategy2["OnPush"] = 0] = "OnPush";
527
527
  ChangeDetectionStrategy2[ChangeDetectionStrategy2["Default"] = 1] = "Default";
528
528
  })(ChangeDetectionStrategy || (ChangeDetectionStrategy = {}));
529
+ var InputFlags;
530
+ (function(InputFlags2) {
531
+ InputFlags2[InputFlags2["None"] = 0] = "None";
532
+ InputFlags2[InputFlags2["SignalBased"] = 1] = "SignalBased";
533
+ InputFlags2[InputFlags2["HasDecoratorInputTransform"] = 2] = "HasDecoratorInputTransform";
534
+ })(InputFlags || (InputFlags = {}));
529
535
  var CUSTOM_ELEMENTS_SCHEMA = {
530
536
  name: "custom-elements"
531
537
  };
@@ -576,7 +582,7 @@ function parseSelectorToR3Selector(selector) {
576
582
  return selector ? CssSelector.parse(selector).map(parserSelectorToR3Selector) : [];
577
583
  }
578
584
 
579
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/digest.mjs
585
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/digest.mjs
580
586
  var textEncoder;
581
587
  function computeDigest(message) {
582
588
  return sha1(serializeNodes(message.nodes).join("") + `[${message.meaning}]`);
@@ -816,7 +822,7 @@ function wordAt(bytes, index, endian) {
816
822
  return word;
817
823
  }
818
824
 
819
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/output_ast.mjs
825
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/output_ast.mjs
820
826
  var TypeModifier;
821
827
  (function(TypeModifier2) {
822
828
  TypeModifier2[TypeModifier2["None"] = 0] = "None";
@@ -886,12 +892,13 @@ var BinaryOperator;
886
892
  BinaryOperator2[BinaryOperator2["Modulo"] = 8] = "Modulo";
887
893
  BinaryOperator2[BinaryOperator2["And"] = 9] = "And";
888
894
  BinaryOperator2[BinaryOperator2["Or"] = 10] = "Or";
889
- BinaryOperator2[BinaryOperator2["BitwiseAnd"] = 11] = "BitwiseAnd";
890
- BinaryOperator2[BinaryOperator2["Lower"] = 12] = "Lower";
891
- BinaryOperator2[BinaryOperator2["LowerEquals"] = 13] = "LowerEquals";
892
- BinaryOperator2[BinaryOperator2["Bigger"] = 14] = "Bigger";
893
- BinaryOperator2[BinaryOperator2["BiggerEquals"] = 15] = "BiggerEquals";
894
- BinaryOperator2[BinaryOperator2["NullishCoalesce"] = 16] = "NullishCoalesce";
895
+ BinaryOperator2[BinaryOperator2["BitwiseOr"] = 11] = "BitwiseOr";
896
+ BinaryOperator2[BinaryOperator2["BitwiseAnd"] = 12] = "BitwiseAnd";
897
+ BinaryOperator2[BinaryOperator2["Lower"] = 13] = "Lower";
898
+ BinaryOperator2[BinaryOperator2["LowerEquals"] = 14] = "LowerEquals";
899
+ BinaryOperator2[BinaryOperator2["Bigger"] = 15] = "Bigger";
900
+ BinaryOperator2[BinaryOperator2["BiggerEquals"] = 16] = "BiggerEquals";
901
+ BinaryOperator2[BinaryOperator2["NullishCoalesce"] = 17] = "NullishCoalesce";
895
902
  })(BinaryOperator || (BinaryOperator = {}));
896
903
  function nullSafeIsEquivalent(base, other) {
897
904
  if (base == null || other == null) {
@@ -964,6 +971,9 @@ var Expression = class {
964
971
  and(rhs, sourceSpan) {
965
972
  return new BinaryOperatorExpr(BinaryOperator.And, this, rhs, null, sourceSpan);
966
973
  }
974
+ bitwiseOr(rhs, sourceSpan, parens = true) {
975
+ return new BinaryOperatorExpr(BinaryOperator.BitwiseOr, this, rhs, null, sourceSpan, parens);
976
+ }
967
977
  bitwiseAnd(rhs, sourceSpan, parens = true) {
968
978
  return new BinaryOperatorExpr(BinaryOperator.BitwiseAnd, this, rhs, null, sourceSpan, parens);
969
979
  }
@@ -1771,7 +1781,7 @@ function serializeTags(tags) {
1771
1781
  return out;
1772
1782
  }
1773
1783
 
1774
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/constant_pool.mjs
1784
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/constant_pool.mjs
1775
1785
  var CONSTANT_PREFIX = "_c";
1776
1786
  var UNKNOWN_VALUE_KEY = variable("<unknown>");
1777
1787
  var KEY_CONTEXT = {};
@@ -1954,7 +1964,7 @@ function isLongStringLiteral(expr) {
1954
1964
  return expr instanceof LiteralExpr && typeof expr.value === "string" && expr.value.length >= POOL_INCLUSION_LENGTH_THRESHOLD_FOR_STRINGS;
1955
1965
  }
1956
1966
 
1957
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_identifiers.mjs
1967
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_identifiers.mjs
1958
1968
  var CORE = "@angular/core";
1959
1969
  var _Identifiers = class {
1960
1970
  };
@@ -2559,6 +2569,12 @@ var Identifiers = _Identifiers;
2559
2569
  moduleName: CORE
2560
2570
  };
2561
2571
  })();
2572
+ (() => {
2573
+ _Identifiers.InputFlags = {
2574
+ name: "\u0275\u0275InputFlags",
2575
+ moduleName: CORE
2576
+ };
2577
+ })();
2562
2578
  (() => {
2563
2579
  _Identifiers.sanitizeHtml = { name: "\u0275\u0275sanitizeHtml", moduleName: CORE };
2564
2580
  })();
@@ -2593,7 +2609,7 @@ var Identifiers = _Identifiers;
2593
2609
  _Identifiers.UnwrapDirectiveSignalInputs = { name: "\u0275UnwrapDirectiveSignalInputs", moduleName: CORE };
2594
2610
  })();
2595
2611
 
2596
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/util.mjs
2612
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/util.mjs
2597
2613
  var DASH_CASE_REGEXP = /-+([a-z0-9])/g;
2598
2614
  function dashCaseToCamelCase(input) {
2599
2615
  return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
@@ -2681,7 +2697,7 @@ function partitionArray(arr, conditionFn) {
2681
2697
  return [truthy, falsy];
2682
2698
  }
2683
2699
 
2684
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/source_map.mjs
2700
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/source_map.mjs
2685
2701
  var VERSION = 3;
2686
2702
  var JS_B64_PREFIX = "# sourceMappingURL=data:application/json;base64,";
2687
2703
  var SourceMapGenerator = class {
@@ -2810,7 +2826,7 @@ function toBase64Digit(value) {
2810
2826
  return B64_DIGITS[value];
2811
2827
  }
2812
2828
 
2813
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/abstract_emitter.mjs
2829
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/abstract_emitter.mjs
2814
2830
  var _SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\|\n|\r|\$/g;
2815
2831
  var _LEGAL_IDENTIFIER_RE = /^[$A-Z_][0-9A-Z_$]*$/i;
2816
2832
  var _INDENT_WITH = " ";
@@ -3158,6 +3174,9 @@ var AbstractEmitterVisitor = class {
3158
3174
  case BinaryOperator.And:
3159
3175
  opStr = "&&";
3160
3176
  break;
3177
+ case BinaryOperator.BitwiseOr:
3178
+ opStr = "|";
3179
+ break;
3161
3180
  case BinaryOperator.BitwiseAnd:
3162
3181
  opStr = "&";
3163
3182
  break;
@@ -3295,7 +3314,7 @@ function _createIndent(count) {
3295
3314
  return res;
3296
3315
  }
3297
3316
 
3298
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/util.mjs
3317
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/util.mjs
3299
3318
  function typeWithParameters(type, numParams) {
3300
3319
  if (numParams === 0) {
3301
3320
  return expressionType(type);
@@ -3360,7 +3379,7 @@ function generateForwardRef(expr) {
3360
3379
  return importExpr(Identifiers.forwardRef).callFn([arrowFn([], expr)]);
3361
3380
  }
3362
3381
 
3363
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_factory.mjs
3382
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_factory.mjs
3364
3383
  var R3FactoryDelegateType;
3365
3384
  (function(R3FactoryDelegateType2) {
3366
3385
  R3FactoryDelegateType2[R3FactoryDelegateType2["Class"] = 0] = "Class";
@@ -3505,7 +3524,7 @@ function getInjectFn(target) {
3505
3524
  }
3506
3525
  }
3507
3526
 
3508
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/tags.mjs
3527
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/tags.mjs
3509
3528
  var TagContentType;
3510
3529
  (function(TagContentType2) {
3511
3530
  TagContentType2[TagContentType2["RAW_TEXT"] = 0] = "RAW_TEXT";
@@ -3542,7 +3561,7 @@ function mergeNsAndName(prefix, localName) {
3542
3561
  return prefix ? `:${prefix}:${localName}` : localName;
3543
3562
  }
3544
3563
 
3545
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_ast.mjs
3564
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_ast.mjs
3546
3565
  var Comment = class {
3547
3566
  constructor(value, sourceSpan) {
3548
3567
  this.value = value;
@@ -3923,7 +3942,7 @@ function visitAll(visitor, nodes) {
3923
3942
  return result;
3924
3943
  }
3925
3944
 
3926
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/i18n_ast.mjs
3945
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/i18n_ast.mjs
3927
3946
  var Message = class {
3928
3947
  constructor(nodes, placeholders, placeholderToMessage, meaning, description, customId) {
3929
3948
  this.nodes = nodes;
@@ -4061,7 +4080,7 @@ var LocalizeMessageStringVisitor = class {
4061
4080
  }
4062
4081
  };
4063
4082
 
4064
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/xml_helper.mjs
4083
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/xml_helper.mjs
4065
4084
  var _Visitor = class {
4066
4085
  visitTag(tag) {
4067
4086
  const strAttrs = this._serializeAttributes(tag.attrs);
@@ -4089,12 +4108,12 @@ ${doctype.dtd}
4089
4108
  };
4090
4109
  var _visitor = new _Visitor();
4091
4110
 
4092
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/xmb.mjs
4111
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/xmb.mjs
4093
4112
  function toPublicName(internalName) {
4094
4113
  return internalName.toUpperCase().replace(/[^A-Z0-9_]/g, "_");
4095
4114
  }
4096
4115
 
4097
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/util.mjs
4116
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/util.mjs
4098
4117
  var CLOSURE_TRANSLATION_VAR_PREFIX = "MSG_";
4099
4118
  var TRANSLATION_VAR_PREFIX = "i18n_";
4100
4119
  var I18N_ATTR = "i18n";
@@ -4196,7 +4215,7 @@ function declareI18nVariable(variable2) {
4196
4215
  return new DeclareVarStmt(variable2.name, void 0, INFERRED_TYPE, void 0, variable2.sourceSpan);
4197
4216
  }
4198
4217
 
4199
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/util.mjs
4218
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/util.mjs
4200
4219
  var UNSAFE_OBJECT_KEY_NAME_REGEXP = /[-.]/;
4201
4220
  var TEMPORARY_NAME = "_t";
4202
4221
  var CONTEXT_NAME = "ctx";
@@ -4284,7 +4303,7 @@ function asLiteral(value) {
4284
4303
  }
4285
4304
  return literal(value, INFERRED_TYPE);
4286
4305
  }
4287
- function conditionallyCreateDirectiveBindingLiteral(map, keepDeclared) {
4306
+ function conditionallyCreateDirectiveBindingLiteral(map, forInputs) {
4288
4307
  const keys = Object.getOwnPropertyNames(map);
4289
4308
  if (keys.length === 0) {
4290
4309
  return null;
@@ -4304,12 +4323,25 @@ function conditionallyCreateDirectiveBindingLiteral(map, keepDeclared) {
4304
4323
  minifiedName = key;
4305
4324
  declaredName = value.classPropertyName;
4306
4325
  publicName = value.bindingPropertyName;
4307
- if (keepDeclared && (publicName !== declaredName || value.transformFunction != null)) {
4308
- const expressionKeys = [asLiteral(publicName), asLiteral(declaredName)];
4309
- if (value.transformFunction != null) {
4310
- expressionKeys.push(value.transformFunction);
4326
+ const differentDeclaringName = publicName !== declaredName;
4327
+ const hasDecoratorInputTransform = value.transformFunction !== null;
4328
+ let flags = null;
4329
+ if (value.isSignal) {
4330
+ flags = bitwiseOrInputFlagsExpr(InputFlags.SignalBased, flags);
4331
+ }
4332
+ if (hasDecoratorInputTransform) {
4333
+ flags = bitwiseOrInputFlagsExpr(InputFlags.HasDecoratorInputTransform, flags);
4334
+ }
4335
+ if (forInputs && (differentDeclaringName || hasDecoratorInputTransform || flags !== null)) {
4336
+ const flagsExpr = flags != null ? flags : importExpr(Identifiers.InputFlags).prop(InputFlags[InputFlags.None]);
4337
+ const result = [flagsExpr, asLiteral(publicName)];
4338
+ if (differentDeclaringName || hasDecoratorInputTransform) {
4339
+ result.push(asLiteral(declaredName));
4340
+ if (hasDecoratorInputTransform) {
4341
+ result.push(value.transformFunction);
4342
+ }
4311
4343
  }
4312
- expressionValue = literalArr(expressionKeys);
4344
+ expressionValue = literalArr(result);
4313
4345
  } else {
4314
4346
  expressionValue = asLiteral(publicName);
4315
4347
  }
@@ -4321,6 +4353,15 @@ function conditionallyCreateDirectiveBindingLiteral(map, keepDeclared) {
4321
4353
  };
4322
4354
  }));
4323
4355
  }
4356
+ function getInputFlagExpr(flag) {
4357
+ return importExpr(Identifiers.InputFlags).prop(InputFlags[flag]);
4358
+ }
4359
+ function bitwiseOrInputFlagsExpr(flag, expr) {
4360
+ if (expr === null) {
4361
+ return getInputFlagExpr(flag);
4362
+ }
4363
+ return getInputFlagExpr(flag).bitwiseOr(expr);
4364
+ }
4324
4365
  function trimTrailingNulls(parameters) {
4325
4366
  while (isNull(parameters[parameters.length - 1])) {
4326
4367
  parameters.pop();
@@ -4436,7 +4477,7 @@ function getInstructionStatements(instructions) {
4436
4477
  return statements;
4437
4478
  }
4438
4479
 
4439
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/injectable_compiler_2.mjs
4480
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/injectable_compiler_2.mjs
4440
4481
  function compileInjectable(meta, resolveForwardRefs) {
4441
4482
  let result = null;
4442
4483
  const factoryMeta = {
@@ -4521,7 +4562,7 @@ function createFactoryFunction(type) {
4521
4562
  return arrowFn([new FnParam("t", DYNAMIC_TYPE)], type.prop("\u0275fac").callFn([variable("t")]));
4522
4563
  }
4523
4564
 
4524
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/assertions.mjs
4565
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/assertions.mjs
4525
4566
  var UNUSABLE_INTERPOLATION_REGEXPS = [
4526
4567
  /^\s*$/,
4527
4568
  /[<>]/,
@@ -4543,7 +4584,7 @@ function assertInterpolationSymbols(identifier, value) {
4543
4584
  }
4544
4585
  }
4545
4586
 
4546
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/defaults.mjs
4587
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/defaults.mjs
4547
4588
  var InterpolationConfig = class {
4548
4589
  static fromArray(markers) {
4549
4590
  if (!markers) {
@@ -4560,7 +4601,7 @@ var InterpolationConfig = class {
4560
4601
  var DEFAULT_INTERPOLATION_CONFIG = new InterpolationConfig("{{", "}}");
4561
4602
  var DEFAULT_CONTAINER_BLOCKS = /* @__PURE__ */ new Set(["switch"]);
4562
4603
 
4563
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/chars.mjs
4604
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/chars.mjs
4564
4605
  var $EOF = 0;
4565
4606
  var $BSPACE = 8;
4566
4607
  var $TAB = 9;
@@ -4642,7 +4683,7 @@ function isQuote(code) {
4642
4683
  return code === $SQ || code === $DQ || code === $BT;
4643
4684
  }
4644
4685
 
4645
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/parse_util.mjs
4686
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/parse_util.mjs
4646
4687
  var ParseLocation = class {
4647
4688
  constructor(file, offset, line, col) {
4648
4689
  this.file = file;
@@ -4789,7 +4830,7 @@ function sanitizeIdentifier(name) {
4789
4830
  return name.replace(/\W/g, "_");
4790
4831
  }
4791
4832
 
4792
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/abstract_js_emitter.mjs
4833
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/abstract_js_emitter.mjs
4793
4834
  var makeTemplateObjectPolyfill = '(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})';
4794
4835
  var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
4795
4836
  constructor() {
@@ -4882,7 +4923,7 @@ var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
4882
4923
  }
4883
4924
  };
4884
4925
 
4885
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/output_jit_trusted_types.mjs
4926
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/output_jit_trusted_types.mjs
4886
4927
  var policy;
4887
4928
  function getPolicy() {
4888
4929
  if (policy === void 0) {
@@ -4920,7 +4961,7 @@ function newTrustedFunctionForJIT(...args) {
4920
4961
  return fn2.bind(_global);
4921
4962
  }
4922
4963
 
4923
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/output_jit.mjs
4964
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/output_jit.mjs
4924
4965
  var JitEvaluator = class {
4925
4966
  evaluateStatements(sourceUrl, statements, refResolver, createSourceMaps) {
4926
4967
  const converter = new JitEmitterVisitor(refResolver);
@@ -5011,7 +5052,7 @@ function isUseStrictStatement(statement) {
5011
5052
  return statement.isEquivalent(literal("use strict").toStmt());
5012
5053
  }
5013
5054
 
5014
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_injector_compiler.mjs
5055
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_injector_compiler.mjs
5015
5056
  function compileInjector(meta) {
5016
5057
  const definitionMap = new DefinitionMap();
5017
5058
  if (meta.providers !== null) {
@@ -5028,7 +5069,7 @@ function createInjectorType(meta) {
5028
5069
  return new ExpressionType(importExpr(Identifiers.InjectorDeclaration, [new ExpressionType(meta.type.type)]));
5029
5070
  }
5030
5071
 
5031
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_jit.mjs
5072
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_jit.mjs
5032
5073
  var R3JitReflector = class {
5033
5074
  constructor(context) {
5034
5075
  this.context = context;
@@ -5044,7 +5085,7 @@ var R3JitReflector = class {
5044
5085
  }
5045
5086
  };
5046
5087
 
5047
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_module_compiler.mjs
5088
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_module_compiler.mjs
5048
5089
  var R3SelectorScopeMode;
5049
5090
  (function(R3SelectorScopeMode2) {
5050
5091
  R3SelectorScopeMode2[R3SelectorScopeMode2["Inline"] = 0] = "Inline";
@@ -5185,7 +5226,7 @@ function tupleOfTypes(types) {
5185
5226
  return types.length > 0 ? expressionType(literalArr(typeofTypes)) : NONE_TYPE;
5186
5227
  }
5187
5228
 
5188
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_pipe_compiler.mjs
5229
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_pipe_compiler.mjs
5189
5230
  function compilePipeFromMetadata(metadata) {
5190
5231
  const definitionMapValues = [];
5191
5232
  definitionMapValues.push({ key: "name", value: literal(metadata.pipeName), quoted: false });
@@ -5206,7 +5247,7 @@ function createPipeType(metadata) {
5206
5247
  ]));
5207
5248
  }
5208
5249
 
5209
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/api.mjs
5250
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/api.mjs
5210
5251
  var R3TemplateDependencyKind;
5211
5252
  (function(R3TemplateDependencyKind2) {
5212
5253
  R3TemplateDependencyKind2[R3TemplateDependencyKind2["Directive"] = 0] = "Directive";
@@ -5214,7 +5255,7 @@ var R3TemplateDependencyKind;
5214
5255
  R3TemplateDependencyKind2[R3TemplateDependencyKind2["NgModule"] = 2] = "NgModule";
5215
5256
  })(R3TemplateDependencyKind || (R3TemplateDependencyKind = {}));
5216
5257
 
5217
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/expression_parser/ast.mjs
5258
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/expression_parser/ast.mjs
5218
5259
  var ParserError = class {
5219
5260
  constructor(message, input, errLocation, ctxLocation) {
5220
5261
  this.input = input;
@@ -5880,7 +5921,7 @@ var BoundElementProperty = class {
5880
5921
  }
5881
5922
  };
5882
5923
 
5883
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/compiler_util/expression_converter.mjs
5924
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/compiler_util/expression_converter.mjs
5884
5925
  var _EventHandlerVars = class {
5885
5926
  };
5886
5927
  var EventHandlerVars = _EventHandlerVars;
@@ -6521,7 +6562,7 @@ var BuiltinFunctionCall = class extends Call {
6521
6562
  }
6522
6563
  };
6523
6564
 
6524
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/dom_security_schema.mjs
6565
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/schema/dom_security_schema.mjs
6525
6566
  var _SECURITY_SCHEMA;
6526
6567
  function SECURITY_SCHEMA() {
6527
6568
  if (!_SECURITY_SCHEMA) {
@@ -6579,7 +6620,7 @@ function isIframeSecuritySensitiveAttr(attrName) {
6579
6620
  return IFRAME_SECURITY_SENSITIVE_ATTRS.has(attrName.toLowerCase());
6580
6621
  }
6581
6622
 
6582
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/shadow_css.mjs
6623
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/shadow_css.mjs
6583
6624
  var animationKeywords = /* @__PURE__ */ new Set([
6584
6625
  "inherit",
6585
6626
  "initial",
@@ -7050,7 +7091,7 @@ function repeatGroups(groups, multiples) {
7050
7091
  }
7051
7092
  }
7052
7093
 
7053
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/enums.mjs
7094
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/enums.mjs
7054
7095
  var OpKind;
7055
7096
  (function(OpKind2) {
7056
7097
  OpKind2[OpKind2["ListEnd"] = 0] = "ListEnd";
@@ -7196,13 +7237,6 @@ var DeferTriggerKind;
7196
7237
  DeferTriggerKind2[DeferTriggerKind2["Interaction"] = 4] = "Interaction";
7197
7238
  DeferTriggerKind2[DeferTriggerKind2["Viewport"] = 5] = "Viewport";
7198
7239
  })(DeferTriggerKind || (DeferTriggerKind = {}));
7199
- var DerivedRepeaterVarIdentity;
7200
- (function(DerivedRepeaterVarIdentity2) {
7201
- DerivedRepeaterVarIdentity2[DerivedRepeaterVarIdentity2["First"] = 0] = "First";
7202
- DerivedRepeaterVarIdentity2[DerivedRepeaterVarIdentity2["Last"] = 1] = "Last";
7203
- DerivedRepeaterVarIdentity2[DerivedRepeaterVarIdentity2["Even"] = 2] = "Even";
7204
- DerivedRepeaterVarIdentity2[DerivedRepeaterVarIdentity2["Odd"] = 3] = "Odd";
7205
- })(DerivedRepeaterVarIdentity || (DerivedRepeaterVarIdentity = {}));
7206
7240
  var I18nContextKind;
7207
7241
  (function(I18nContextKind2) {
7208
7242
  I18nContextKind2[I18nContextKind2["RootI18n"] = 0] = "RootI18n";
@@ -7216,7 +7250,7 @@ var TemplateKind;
7216
7250
  TemplateKind2[TemplateKind2["Block"] = 2] = "Block";
7217
7251
  })(TemplateKind || (TemplateKind = {}));
7218
7252
 
7219
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/traits.mjs
7253
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/traits.mjs
7220
7254
  var ConsumesSlot = Symbol("ConsumesSlot");
7221
7255
  var DependsOnSlotContext = Symbol("DependsOnSlotContext");
7222
7256
  var ConsumesVarsTrait = Symbol("ConsumesVars");
@@ -7248,7 +7282,7 @@ function hasUsesVarOffsetTrait(expr) {
7248
7282
  return expr[UsesVarOffset] === true;
7249
7283
  }
7250
7284
 
7251
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/shared.mjs
7285
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/shared.mjs
7252
7286
  function createStatementOp(statement) {
7253
7287
  return __spreadValues({
7254
7288
  kind: OpKind.Statement,
@@ -7270,7 +7304,7 @@ var NEW_OP = {
7270
7304
  next: null
7271
7305
  };
7272
7306
 
7273
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/update.mjs
7307
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/update.mjs
7274
7308
  function createInterpolateTextOp(xref, interpolation, sourceSpan) {
7275
7309
  return __spreadValues(__spreadValues(__spreadValues({
7276
7310
  kind: OpKind.InterpolateText,
@@ -7357,10 +7391,11 @@ function createClassMapOp(xref, expression, sourceSpan) {
7357
7391
  sourceSpan
7358
7392
  }, TRAIT_DEPENDS_ON_SLOT_CONTEXT), TRAIT_CONSUMES_VARS), NEW_OP);
7359
7393
  }
7360
- function createAttributeOp(target, name, expression, securityContext, isTextAttribute, isStructuralTemplateAttribute, templateKind, i18nMessage, sourceSpan) {
7394
+ function createAttributeOp(target, namespace, name, expression, securityContext, isTextAttribute, isStructuralTemplateAttribute, templateKind, i18nMessage, sourceSpan) {
7361
7395
  return __spreadValues(__spreadValues(__spreadValues({
7362
7396
  kind: OpKind.Attribute,
7363
7397
  target,
7398
+ namespace,
7364
7399
  name,
7365
7400
  expression,
7366
7401
  securityContext,
@@ -7435,7 +7470,7 @@ function createI18nApplyOp(owner, handle, sourceSpan) {
7435
7470
  }, NEW_OP);
7436
7471
  }
7437
7472
 
7438
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/expression.mjs
7473
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/expression.mjs
7439
7474
  var _a;
7440
7475
  var _b;
7441
7476
  var _c;
@@ -8015,27 +8050,6 @@ var ConditionalCaseExpr = class extends ExpressionBase {
8015
8050
  }
8016
8051
  }
8017
8052
  };
8018
- var DerivedRepeaterVarExpr = class extends ExpressionBase {
8019
- constructor(xref, identity) {
8020
- super();
8021
- this.xref = xref;
8022
- this.identity = identity;
8023
- this.kind = ExpressionKind.DerivedRepeaterVar;
8024
- }
8025
- transformInternalExpressions(transform2, flags) {
8026
- }
8027
- visitExpression(visitor, context) {
8028
- }
8029
- isEquivalent(e) {
8030
- return e instanceof DerivedRepeaterVarExpr && e.identity === this.identity && e.xref === this.xref;
8031
- }
8032
- isConstant() {
8033
- return false;
8034
- }
8035
- clone() {
8036
- return new DerivedRepeaterVarExpr(this.xref, this.identity);
8037
- }
8038
- };
8039
8053
  var ConstCollectedExpr = class extends ExpressionBase {
8040
8054
  constructor(expr) {
8041
8055
  super();
@@ -8288,7 +8302,7 @@ function isStringLiteral(expr) {
8288
8302
  return expr instanceof LiteralExpr && typeof expr.value === "string";
8289
8303
  }
8290
8304
 
8291
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/operations.mjs
8305
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/operations.mjs
8292
8306
  var _OpList = class {
8293
8307
  constructor() {
8294
8308
  this.debugListId = _OpList.nextListId++;
@@ -8479,14 +8493,14 @@ var OpList = _OpList;
8479
8493
  _OpList.nextListId = 0;
8480
8494
  })();
8481
8495
 
8482
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/handle.mjs
8496
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/handle.mjs
8483
8497
  var SlotHandle = class {
8484
8498
  constructor() {
8485
8499
  this.slot = null;
8486
8500
  }
8487
8501
  };
8488
8502
 
8489
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/create.mjs
8503
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/create.mjs
8490
8504
  var elementContainerOpKinds = /* @__PURE__ */ new Set([
8491
8505
  OpKind.Element,
8492
8506
  OpKind.ElementStart,
@@ -8641,11 +8655,12 @@ function createProjectionOp(xref, selector, i18nPlaceholder, sourceSpan) {
8641
8655
  sourceSpan
8642
8656
  }, NEW_OP), TRAIT_CONSUMES_SLOT);
8643
8657
  }
8644
- function createExtractedAttributeOp(target, bindingKind, name, expression, i18nContext, i18nMessage, securityContext) {
8658
+ function createExtractedAttributeOp(target, bindingKind, namespace, name, expression, i18nContext, i18nMessage, securityContext) {
8645
8659
  return __spreadValues({
8646
8660
  kind: OpKind.ExtractedAttribute,
8647
8661
  target,
8648
8662
  bindingKind,
8663
+ namespace,
8649
8664
  name,
8650
8665
  expression,
8651
8666
  i18nContext,
@@ -8772,7 +8787,7 @@ function createI18nAttributesOp(xref, handle, target) {
8772
8787
  }, NEW_OP), TRAIT_CONSUMES_SLOT);
8773
8788
  }
8774
8789
 
8775
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/host.mjs
8790
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/host.mjs
8776
8791
  function createHostPropertyOp(name, expression, isAnimationTrigger, i18nContext, securityContext, sourceSpan) {
8777
8792
  return __spreadValues(__spreadValues({
8778
8793
  kind: OpKind.HostProperty,
@@ -8786,10 +8801,10 @@ function createHostPropertyOp(name, expression, isAnimationTrigger, i18nContext,
8786
8801
  }, TRAIT_CONSUMES_VARS), NEW_OP);
8787
8802
  }
8788
8803
 
8789
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/variable.mjs
8804
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/variable.mjs
8790
8805
  var CTX_REF = "CTX_REF_MARKER";
8791
8806
 
8792
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/compilation.mjs
8807
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/compilation.mjs
8793
8808
  var CompilationJobKind;
8794
8809
  (function(CompilationJobKind2) {
8795
8810
  CompilationJobKind2[CompilationJobKind2["Tmpl"] = 0] = "Tmpl";
@@ -8896,7 +8911,7 @@ var HostBindingCompilationUnit = class extends CompilationUnit {
8896
8911
  }
8897
8912
  };
8898
8913
 
8899
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/any_cast.mjs
8914
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/any_cast.mjs
8900
8915
  function deleteAnyCasts(job) {
8901
8916
  for (const unit of job.units) {
8902
8917
  for (const op of unit.ops()) {
@@ -8914,7 +8929,7 @@ function removeAnys(e) {
8914
8929
  return e;
8915
8930
  }
8916
8931
 
8917
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/apply_i18n_expressions.mjs
8932
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/apply_i18n_expressions.mjs
8918
8933
  function applyI18nExpressions(job) {
8919
8934
  const i18nContexts = /* @__PURE__ */ new Map();
8920
8935
  for (const unit of job.units) {
@@ -8957,7 +8972,7 @@ function needsApplication(i18nContexts, op) {
8957
8972
  return false;
8958
8973
  }
8959
8974
 
8960
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/assign_i18n_slot_dependencies.mjs
8975
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/assign_i18n_slot_dependencies.mjs
8961
8976
  function assignI18nSlotDependencies(job) {
8962
8977
  for (const unit of job.units) {
8963
8978
  let updateOp = unit.update.head;
@@ -9002,7 +9017,7 @@ function assignI18nSlotDependencies(job) {
9002
9017
  }
9003
9018
  }
9004
9019
 
9005
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/util/elements.mjs
9020
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/util/elements.mjs
9006
9021
  function createOpXrefMap(unit) {
9007
9022
  const map = /* @__PURE__ */ new Map();
9008
9023
  for (const op of unit.create) {
@@ -9017,7 +9032,7 @@ function createOpXrefMap(unit) {
9017
9032
  return map;
9018
9033
  }
9019
9034
 
9020
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/attribute_extraction.mjs
9035
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/attribute_extraction.mjs
9021
9036
  function extractAttributes(job) {
9022
9037
  for (const unit of job.units) {
9023
9038
  const elements = createOpXrefMap(unit);
@@ -9040,6 +9055,7 @@ function extractAttributes(job) {
9040
9055
  createExtractedAttributeOp(
9041
9056
  op.target,
9042
9057
  bindingKind,
9058
+ null,
9043
9059
  op.name,
9044
9060
  null,
9045
9061
  null,
@@ -9056,6 +9072,7 @@ function extractAttributes(job) {
9056
9072
  OpList.insertBefore(createExtractedAttributeOp(
9057
9073
  op.target,
9058
9074
  BindingKind.Property,
9075
+ null,
9059
9076
  op.name,
9060
9077
  null,
9061
9078
  null,
@@ -9069,6 +9086,7 @@ function extractAttributes(job) {
9069
9086
  const extractedAttributeOp = createExtractedAttributeOp(
9070
9087
  op.target,
9071
9088
  BindingKind.Property,
9089
+ null,
9072
9090
  op.name,
9073
9091
  null,
9074
9092
  null,
@@ -9105,7 +9123,7 @@ function extractAttributeOp(unit, op, elements) {
9105
9123
  extractable && (extractable = op.isTextAttribute);
9106
9124
  }
9107
9125
  if (extractable) {
9108
- const extractedAttributeOp = createExtractedAttributeOp(op.target, op.isStructuralTemplateAttribute ? BindingKind.Template : BindingKind.Attribute, op.name, op.expression, op.i18nContext, op.i18nMessage, op.securityContext);
9126
+ const extractedAttributeOp = createExtractedAttributeOp(op.target, op.isStructuralTemplateAttribute ? BindingKind.Template : BindingKind.Attribute, op.namespace, op.name, op.expression, op.i18nContext, op.i18nMessage, op.securityContext);
9109
9127
  if (unit.job.kind === CompilationJobKind.Host) {
9110
9128
  unit.create.push(extractedAttributeOp);
9111
9129
  } else {
@@ -9116,7 +9134,7 @@ function extractAttributeOp(unit, op, elements) {
9116
9134
  }
9117
9135
  }
9118
9136
 
9119
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/binding_specialization.mjs
9137
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/binding_specialization.mjs
9120
9138
  function lookupElement2(elements, xref) {
9121
9139
  const el = elements.get(xref);
9122
9140
  if (el === void 0) {
@@ -9146,7 +9164,8 @@ function specializeBindings(job) {
9146
9164
  const target = lookupElement2(elements, op.target);
9147
9165
  target.nonBindable = true;
9148
9166
  } else {
9149
- OpList.replace(op, createAttributeOp(op.target, op.name, op.expression, op.securityContext, op.isTextAttribute, op.isStructuralTemplateAttribute, op.templateKind, op.i18nMessage, op.sourceSpan));
9167
+ const [namespace, name] = splitNsName(op.name);
9168
+ OpList.replace(op, createAttributeOp(op.target, namespace, name, op.expression, op.securityContext, op.isTextAttribute, op.isStructuralTemplateAttribute, op.templateKind, op.i18nMessage, op.sourceSpan));
9150
9169
  }
9151
9170
  break;
9152
9171
  case BindingKind.Property:
@@ -9166,7 +9185,7 @@ function specializeBindings(job) {
9166
9185
  }
9167
9186
  }
9168
9187
 
9169
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/chaining.mjs
9188
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/chaining.mjs
9170
9189
  var CHAINABLE = /* @__PURE__ */ new Set([
9171
9190
  Identifiers.attribute,
9172
9191
  Identifiers.classProp,
@@ -9232,7 +9251,7 @@ function chainOperationsInList(opList) {
9232
9251
  }
9233
9252
  }
9234
9253
 
9235
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/collapse_singleton_interpolations.mjs
9254
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/collapse_singleton_interpolations.mjs
9236
9255
  function collapseSingletonInterpolations(job) {
9237
9256
  for (const unit of job.units) {
9238
9257
  for (const op of unit.update) {
@@ -9244,7 +9263,7 @@ function collapseSingletonInterpolations(job) {
9244
9263
  }
9245
9264
  }
9246
9265
 
9247
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/conditionals.mjs
9266
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/conditionals.mjs
9248
9267
  function generateConditionalExpressions(job) {
9249
9268
  for (const unit of job.units) {
9250
9269
  for (const op of unit.ops()) {
@@ -9281,11 +9300,12 @@ function generateConditionalExpressions(job) {
9281
9300
  }
9282
9301
  }
9283
9302
 
9284
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/conversion.mjs
9303
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/conversion.mjs
9285
9304
  var BINARY_OPERATORS = /* @__PURE__ */ new Map([
9286
9305
  ["&&", BinaryOperator.And],
9287
9306
  [">", BinaryOperator.Bigger],
9288
9307
  [">=", BinaryOperator.BiggerEquals],
9308
+ ["|", BinaryOperator.BitwiseOr],
9289
9309
  ["&", BinaryOperator.BitwiseAnd],
9290
9310
  ["/", BinaryOperator.Divide],
9291
9311
  ["==", BinaryOperator.Equals],
@@ -9331,7 +9351,7 @@ function literalOrArrayLiteral(value) {
9331
9351
  return literal(value);
9332
9352
  }
9333
9353
 
9334
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/const_collection.mjs
9354
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/const_collection.mjs
9335
9355
  function collectElementConsts(job) {
9336
9356
  const allElementAttributes = /* @__PURE__ */ new Map();
9337
9357
  for (const unit of job.units) {
@@ -9339,7 +9359,7 @@ function collectElementConsts(job) {
9339
9359
  if (op.kind === OpKind.ExtractedAttribute) {
9340
9360
  const attributes = allElementAttributes.get(op.target) || new ElementAttributes(job.compatibility);
9341
9361
  allElementAttributes.set(op.target, attributes);
9342
- attributes.add(op.bindingKind, op.name, op.expression, op.trustedValueFn);
9362
+ attributes.add(op.bindingKind, op.name, op.expression, op.namespace, op.trustedValueFn);
9343
9363
  OpList.remove(op);
9344
9364
  }
9345
9365
  }
@@ -9427,7 +9447,7 @@ var ElementAttributes = class {
9427
9447
  nameToValue.add(name);
9428
9448
  return false;
9429
9449
  }
9430
- add(kind, name, value, trustedValueFn) {
9450
+ add(kind, name, value, namespace, trustedValueFn) {
9431
9451
  var _a2;
9432
9452
  const allowDuplicates = this.compatibility === CompatibilityMode.TemplateDefinitionBuilder && (kind === BindingKind.Attribute || kind === BindingKind.ClassName || kind === BindingKind.StyleProperty);
9433
9453
  if (!allowDuplicates && this.isKnown(kind, name, value)) {
@@ -9440,7 +9460,7 @@ var ElementAttributes = class {
9440
9460
  this.projectAs = value.value.toString();
9441
9461
  }
9442
9462
  const array = this.arrayFor(kind);
9443
- array.push(...getAttributeNameLiterals(name));
9463
+ array.push(...getAttributeNameLiterals(namespace, name));
9444
9464
  if (kind === BindingKind.Attribute || kind === BindingKind.StyleProperty) {
9445
9465
  if (value === null) {
9446
9466
  throw Error("Attribute, i18n attribute, & style element attributes must have a value");
@@ -9462,15 +9482,10 @@ var ElementAttributes = class {
9462
9482
  return this.byKind.get(kind);
9463
9483
  }
9464
9484
  };
9465
- function getAttributeNameLiterals(name) {
9466
- const [attributeNamespace, attributeName] = splitNsName(name, false);
9467
- const nameLiteral = literal(attributeName);
9468
- if (attributeNamespace) {
9469
- return [
9470
- literal(0),
9471
- literal(attributeNamespace),
9472
- nameLiteral
9473
- ];
9485
+ function getAttributeNameLiterals(namespace, name) {
9486
+ const nameLiteral = literal(name);
9487
+ if (namespace) {
9488
+ return [literal(0), literal(namespace), nameLiteral];
9474
9489
  }
9475
9490
  return [nameLiteral];
9476
9491
  }
@@ -9498,7 +9513,7 @@ function serializeAttributes({ attributes, bindings, classes, i18n: i18n2, proje
9498
9513
  return literalArr(attrArray);
9499
9514
  }
9500
9515
 
9501
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/convert_i18n_bindings.mjs
9516
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/convert_i18n_bindings.mjs
9502
9517
  function convertI18nBindings(job) {
9503
9518
  const i18nAttributesByElem = /* @__PURE__ */ new Map();
9504
9519
  for (const unit of job.units) {
@@ -9539,7 +9554,7 @@ function convertI18nBindings(job) {
9539
9554
  }
9540
9555
  }
9541
9556
 
9542
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_defer_deps_fns.mjs
9557
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_defer_deps_fns.mjs
9543
9558
  function createDeferDepsFns(job) {
9544
9559
  for (const unit of job.units) {
9545
9560
  for (const op of unit.create) {
@@ -9571,7 +9586,7 @@ function createDeferDepsFns(job) {
9571
9586
  }
9572
9587
  }
9573
9588
 
9574
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_i18n_contexts.mjs
9589
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_i18n_contexts.mjs
9575
9590
  function createI18nContexts(job) {
9576
9591
  const attrContextByMessage = /* @__PURE__ */ new Map();
9577
9592
  for (const unit of job.units) {
@@ -9649,7 +9664,7 @@ function createI18nContexts(job) {
9649
9664
  }
9650
9665
  }
9651
9666
 
9652
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/deduplicate_text_bindings.mjs
9667
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/deduplicate_text_bindings.mjs
9653
9668
  function deduplicateTextBindings(job) {
9654
9669
  const seen = /* @__PURE__ */ new Map();
9655
9670
  for (const unit of job.units) {
@@ -9671,7 +9686,7 @@ function deduplicateTextBindings(job) {
9671
9686
  }
9672
9687
  }
9673
9688
 
9674
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_configs.mjs
9689
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_configs.mjs
9675
9690
  function configureDeferInstructions(job) {
9676
9691
  for (const unit of job.units) {
9677
9692
  for (const op of unit.create) {
@@ -9688,7 +9703,7 @@ function configureDeferInstructions(job) {
9688
9703
  }
9689
9704
  }
9690
9705
 
9691
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_resolve_targets.mjs
9706
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_resolve_targets.mjs
9692
9707
  function resolveDeferTargetNames(job) {
9693
9708
  const scopes = /* @__PURE__ */ new Map();
9694
9709
  function getScopeForView2(view) {
@@ -9782,7 +9797,7 @@ var Scope = class {
9782
9797
  }
9783
9798
  };
9784
9799
 
9785
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/empty_elements.mjs
9800
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/empty_elements.mjs
9786
9801
  var REPLACEMENTS = /* @__PURE__ */ new Map([
9787
9802
  [OpKind.ElementEnd, [OpKind.ElementStart, OpKind.Element]],
9788
9803
  [OpKind.ContainerEnd, [OpKind.ContainerStart, OpKind.Container]],
@@ -9809,7 +9824,7 @@ function collapseEmptyInstructions(job) {
9809
9824
  }
9810
9825
  }
9811
9826
 
9812
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/expand_safe_reads.mjs
9827
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/expand_safe_reads.mjs
9813
9828
  function expandSafeReads(job) {
9814
9829
  for (const unit of job.units) {
9815
9830
  for (const op of unit.ops()) {
@@ -9945,7 +9960,7 @@ function ternaryTransform(e) {
9945
9960
  return new ConditionalExpr(new BinaryOperatorExpr(BinaryOperator.Equals, e.guard, NULL_EXPR), NULL_EXPR, e.expr);
9946
9961
  }
9947
9962
 
9948
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/extract_i18n_messages.mjs
9963
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/extract_i18n_messages.mjs
9949
9964
  var ESCAPE = "\uFFFD";
9950
9965
  var ELEMENT_MARKER = "#";
9951
9966
  var TEMPLATE_MARKER = "*";
@@ -10081,7 +10096,7 @@ function formatValue(value) {
10081
10096
  return `${ESCAPE}${closeMarker}${tagMarker}${value.value}${context}${ESCAPE}`;
10082
10097
  }
10083
10098
 
10084
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_advance.mjs
10099
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_advance.mjs
10085
10100
  function generateAdvance(job) {
10086
10101
  for (const unit of job.units) {
10087
10102
  const slotMap = /* @__PURE__ */ new Map();
@@ -10113,7 +10128,7 @@ function generateAdvance(job) {
10113
10128
  }
10114
10129
  }
10115
10130
 
10116
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_projection_def.mjs
10131
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_projection_def.mjs
10117
10132
  function generateProjectionDefs(job) {
10118
10133
  const share = job.compatibility === CompatibilityMode.TemplateDefinitionBuilder;
10119
10134
  const selectors = [];
@@ -10137,7 +10152,7 @@ function generateProjectionDefs(job) {
10137
10152
  }
10138
10153
  }
10139
10154
 
10140
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_variables.mjs
10155
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_variables.mjs
10141
10156
  function generateVariables(job) {
10142
10157
  recursivelyProcessView(job.root, null);
10143
10158
  }
@@ -10230,7 +10245,7 @@ function generateVariablesInScopeForView(view, scope) {
10230
10245
  return newOps;
10231
10246
  }
10232
10247
 
10233
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/has_const_expression_collection.mjs
10248
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/has_const_expression_collection.mjs
10234
10249
  function collectConstExpressions(job) {
10235
10250
  for (const unit of job.units) {
10236
10251
  for (const op of unit.ops()) {
@@ -10244,7 +10259,7 @@ function collectConstExpressions(job) {
10244
10259
  }
10245
10260
  }
10246
10261
 
10247
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/host_style_property_parsing.mjs
10262
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/host_style_property_parsing.mjs
10248
10263
  var STYLE_DOT = "style.";
10249
10264
  var CLASS_DOT = "class.";
10250
10265
  var STYLE_BANG = "style!";
@@ -10261,7 +10276,7 @@ function parseHostStyleProperties(job) {
10261
10276
  if (op.name.startsWith(STYLE_DOT)) {
10262
10277
  op.bindingKind = BindingKind.StyleProperty;
10263
10278
  op.name = op.name.substring(STYLE_DOT.length);
10264
- if (isCssCustomProperty(op.name)) {
10279
+ if (!isCssCustomProperty(op.name)) {
10265
10280
  op.name = hyphenate(op.name);
10266
10281
  }
10267
10282
  const { property: property2, suffix } = parseProperty(op.name);
@@ -10302,7 +10317,7 @@ function parseProperty(name) {
10302
10317
  return { property: property2, suffix };
10303
10318
  }
10304
10319
 
10305
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/map_util.mjs
10320
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/map_util.mjs
10306
10321
  function mapLiteral(obj, quoted = false) {
10307
10322
  return literalMap(Object.keys(obj).map((key) => ({
10308
10323
  key,
@@ -10311,7 +10326,7 @@ function mapLiteral(obj, quoted = false) {
10311
10326
  })));
10312
10327
  }
10313
10328
 
10314
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/icu_serializer.mjs
10329
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/icu_serializer.mjs
10315
10330
  var IcuSerializerVisitor = class {
10316
10331
  visitText(text2) {
10317
10332
  return text2.value;
@@ -10345,7 +10360,7 @@ function serializeIcuNode(icu) {
10345
10360
  return icu.visit(serializer);
10346
10361
  }
10347
10362
 
10348
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/expression_parser/lexer.mjs
10363
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/expression_parser/lexer.mjs
10349
10364
  var TokenType;
10350
10365
  (function(TokenType2) {
10351
10366
  TokenType2[TokenType2["Character"] = 0] = "Character";
@@ -10706,7 +10721,7 @@ function parseIntAutoRadix(text2) {
10706
10721
  return result;
10707
10722
  }
10708
10723
 
10709
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/expression_parser/parser.mjs
10724
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/expression_parser/parser.mjs
10710
10725
  var SplitInterpolation = class {
10711
10726
  constructor(strings, expressions, offsets) {
10712
10727
  this.strings = strings;
@@ -11600,7 +11615,7 @@ function getIndexMapForOriginalTemplate(interpolatedTokens) {
11600
11615
  return offsetMap;
11601
11616
  }
11602
11617
 
11603
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/ast.mjs
11618
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/ast.mjs
11604
11619
  var NodeWithI18n = class {
11605
11620
  constructor(sourceSpan, i18n2) {
11606
11621
  this.sourceSpan = sourceSpan;
@@ -11752,11 +11767,11 @@ var RecursiveVisitor = class {
11752
11767
  }
11753
11768
  };
11754
11769
 
11755
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/element_schema_registry.mjs
11770
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/schema/element_schema_registry.mjs
11756
11771
  var ElementSchemaRegistry = class {
11757
11772
  };
11758
11773
 
11759
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/dom_element_schema_registry.mjs
11774
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/schema/dom_element_schema_registry.mjs
11760
11775
  var BOOLEAN = "boolean";
11761
11776
  var NUMBER = "number";
11762
11777
  var STRING = "string";
@@ -12109,7 +12124,7 @@ function _isPixelDimensionStyle(prop) {
12109
12124
  }
12110
12125
  }
12111
12126
 
12112
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/html_tags.mjs
12127
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/html_tags.mjs
12113
12128
  var HtmlTagDefinition = class {
12114
12129
  constructor({ closedByChildren, implicitNamespacePrefix, contentType = TagContentType.PARSABLE_DATA, closedByParent = false, isVoid = false, ignoreFirstLf = false, preventNamespaceInheritance = false, canSelfClose = false } = {}) {
12115
12130
  this.closedByChildren = {};
@@ -12227,7 +12242,7 @@ function getHtmlTagDefinition(tagName) {
12227
12242
  return (_b2 = (_a2 = TAG_DEFINITIONS[tagName]) != null ? _a2 : TAG_DEFINITIONS[tagName.toLowerCase()]) != null ? _b2 : DEFAULT_TAG_DEFINITION;
12228
12243
  }
12229
12244
 
12230
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/placeholder.mjs
12245
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/placeholder.mjs
12231
12246
  var TAG_TO_PLACEHOLDER_NAMES = {
12232
12247
  "A": "LINK",
12233
12248
  "B": "BOLD_TEXT",
@@ -12349,7 +12364,7 @@ var PlaceholderRegistry = class {
12349
12364
  }
12350
12365
  };
12351
12366
 
12352
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/i18n_parser.mjs
12367
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/i18n_parser.mjs
12353
12368
  var _expParser = new Parser(new Lexer());
12354
12369
  function createI18nMessageFactory(interpolationConfig, containerBlocks) {
12355
12370
  const visitor = new _I18nVisitor(_expParser, interpolationConfig, containerBlocks);
@@ -12528,14 +12543,14 @@ function extractPlaceholderName(input) {
12528
12543
  return input.split(_CUSTOM_PH_EXP)[2];
12529
12544
  }
12530
12545
 
12531
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/parse_util.mjs
12546
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/parse_util.mjs
12532
12547
  var I18nError = class extends ParseError {
12533
12548
  constructor(span, msg) {
12534
12549
  super(span, msg);
12535
12550
  }
12536
12551
  };
12537
12552
 
12538
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/entities.mjs
12553
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/entities.mjs
12539
12554
  var NAMED_ENTITIES = {
12540
12555
  "AElig": "\xC6",
12541
12556
  "AMP": "&",
@@ -14666,7 +14681,7 @@ var NAMED_ENTITIES = {
14666
14681
  var NGSP_UNICODE = "\uE500";
14667
14682
  NAMED_ENTITIES["ngsp"] = NGSP_UNICODE;
14668
14683
 
14669
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/lexer.mjs
14684
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/lexer.mjs
14670
14685
  var TokenError = class extends ParseError {
14671
14686
  constructor(errorMsg, tokenType, span) {
14672
14687
  super(span, errorMsg);
@@ -15587,7 +15602,7 @@ var CursorError = class {
15587
15602
  }
15588
15603
  };
15589
15604
 
15590
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/parser.mjs
15605
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/parser.mjs
15591
15606
  var TreeError = class extends ParseError {
15592
15607
  static create(elementName, span, msg) {
15593
15608
  return new TreeError(elementName, span, msg);
@@ -15971,7 +15986,7 @@ function decodeEntity(match, entity) {
15971
15986
  return match;
15972
15987
  }
15973
15988
 
15974
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/trusted_types_sinks.mjs
15989
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/schema/trusted_types_sinks.mjs
15975
15990
  var TRUSTED_TYPES_SINKS = /* @__PURE__ */ new Set([
15976
15991
  "iframe|srcdoc",
15977
15992
  "*|innerhtml",
@@ -15986,7 +16001,7 @@ function isTrustedTypesSink(tagName, propName) {
15986
16001
  return TRUSTED_TYPES_SINKS.has(tagName + "|" + propName) || TRUSTED_TYPES_SINKS.has("*|" + propName);
15987
16002
  }
15988
16003
 
15989
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/meta.mjs
16004
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/meta.mjs
15990
16005
  var setI18nRefs = (htmlNode, i18nNode) => {
15991
16006
  if (htmlNode instanceof NodeWithI18n) {
15992
16007
  if (i18nNode instanceof IcuPlaceholder && htmlNode.i18n instanceof Message) {
@@ -16143,7 +16158,7 @@ function i18nMetaToJSDoc(meta) {
16143
16158
  return jsDocComment(tags);
16144
16159
  }
16145
16160
 
16146
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/get_msg_utils.mjs
16161
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/get_msg_utils.mjs
16147
16162
  var GOOG_GET_MSG = "goog.getMsg";
16148
16163
  function createGoogleGetMsgStatements(variable2, message, closureVar, placeholderValues) {
16149
16164
  const messageString = serializeI18nMessageForGetMsg(message);
@@ -16194,7 +16209,7 @@ function serializeI18nMessageForGetMsg(message) {
16194
16209
  return message.nodes.map((node) => node.visit(serializerVisitor2, null)).join("");
16195
16210
  }
16196
16211
 
16197
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/localize_utils.mjs
16212
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/localize_utils.mjs
16198
16213
  function createLocalizeStatements(variable2, message, params) {
16199
16214
  const { messageParts, placeHolders } = serializeI18nMessageForLocalize(message);
16200
16215
  const sourceSpan = getSourceSpan(message);
@@ -16283,7 +16298,7 @@ function createEmptyMessagePart(location) {
16283
16298
  return new LiteralPiece("", new ParseSourceSpan(location, location));
16284
16299
  }
16285
16300
 
16286
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_const_collection.mjs
16301
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_const_collection.mjs
16287
16302
  var NG_I18N_CLOSURE_MODE = "ngI18nClosureMode";
16288
16303
  var TRANSLATION_VAR_PREFIX2 = "i18n_";
16289
16304
  var I18N_ICU_MAPPING_PREFIX2 = "I18N_EXP_";
@@ -16444,7 +16459,7 @@ function i18nGenerateClosureVar(pool, messageId, fileBasedI18nSuffix, useExterna
16444
16459
  return variable(name);
16445
16460
  }
16446
16461
 
16447
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_text_extraction.mjs
16462
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_text_extraction.mjs
16448
16463
  function convertI18nText(job) {
16449
16464
  var _a2, _b2, _c2;
16450
16465
  for (const unit of job.units) {
@@ -16514,7 +16529,7 @@ function convertI18nText(job) {
16514
16529
  }
16515
16530
  }
16516
16531
 
16517
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/local_refs.mjs
16532
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/local_refs.mjs
16518
16533
  function liftLocalRefs(job) {
16519
16534
  for (const unit of job.units) {
16520
16535
  for (const op of unit.create) {
@@ -16544,7 +16559,7 @@ function serializeLocalRefs(refs) {
16544
16559
  return literalArr(constRefs);
16545
16560
  }
16546
16561
 
16547
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/namespace.mjs
16562
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/namespace.mjs
16548
16563
  function emitNamespaceChanges(job) {
16549
16564
  for (const unit of job.units) {
16550
16565
  let activeNamespace = Namespace.HTML;
@@ -16560,7 +16575,7 @@ function emitNamespaceChanges(job) {
16560
16575
  }
16561
16576
  }
16562
16577
 
16563
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/style_parser.mjs
16578
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/style_parser.mjs
16564
16579
  function parse(value) {
16565
16580
  const styles = [];
16566
16581
  let i = 0;
@@ -16621,7 +16636,7 @@ function hyphenate2(value) {
16621
16636
  }).toLowerCase();
16622
16637
  }
16623
16638
 
16624
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/naming.mjs
16639
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/naming.mjs
16625
16640
  function nameFunctionsAndVariables(job) {
16626
16641
  addNamesToView(job.root, job.componentName, { index: 0 }, job.compatibility === CompatibilityMode.TemplateDefinitionBuilder);
16627
16642
  }
@@ -16741,7 +16756,7 @@ function stripImportant(name) {
16741
16756
  return name;
16742
16757
  }
16743
16758
 
16744
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/next_context_merging.mjs
16759
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/next_context_merging.mjs
16745
16760
  function mergeNextContextExpressions(job) {
16746
16761
  for (const unit of job.units) {
16747
16762
  for (const op of unit.create) {
@@ -16787,7 +16802,7 @@ function mergeNextContextsInOps(ops) {
16787
16802
  }
16788
16803
  }
16789
16804
 
16790
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ng_container.mjs
16805
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ng_container.mjs
16791
16806
  var CONTAINER_TAG = "ng-container";
16792
16807
  function generateNgContainerOps(job) {
16793
16808
  for (const unit of job.units) {
@@ -16804,7 +16819,7 @@ function generateNgContainerOps(job) {
16804
16819
  }
16805
16820
  }
16806
16821
 
16807
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nonbindable.mjs
16822
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nonbindable.mjs
16808
16823
  function lookupElement3(elements, xref) {
16809
16824
  const el = elements.get(xref);
16810
16825
  if (el === void 0) {
@@ -16834,7 +16849,7 @@ function disableBindings(job) {
16834
16849
  }
16835
16850
  }
16836
16851
 
16837
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nullish_coalescing.mjs
16852
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nullish_coalescing.mjs
16838
16853
  function generateNullishCoalesceExpressions(job) {
16839
16854
  for (const unit of job.units) {
16840
16855
  for (const op of unit.ops()) {
@@ -16850,7 +16865,7 @@ function generateNullishCoalesceExpressions(job) {
16850
16865
  }
16851
16866
  }
16852
16867
 
16853
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ordering.mjs
16868
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ordering.mjs
16854
16869
  function kindTest(kind) {
16855
16870
  return (op) => op.kind === kind;
16856
16871
  }
@@ -16932,7 +16947,7 @@ function keepLast(ops) {
16932
16947
  return ops.slice(ops.length - 1);
16933
16948
  }
16934
16949
 
16935
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/parse_extracted_styles.mjs
16950
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/parse_extracted_styles.mjs
16936
16951
  function parseExtractedStyles(job) {
16937
16952
  const elements = /* @__PURE__ */ new Map();
16938
16953
  for (const unit of job.units) {
@@ -16952,13 +16967,13 @@ function parseExtractedStyles(job) {
16952
16967
  if (op.name === "style") {
16953
16968
  const parsedStyles = parse(op.expression.value);
16954
16969
  for (let i = 0; i < parsedStyles.length - 1; i += 2) {
16955
- OpList.insertBefore(createExtractedAttributeOp(op.target, BindingKind.StyleProperty, parsedStyles[i], literal(parsedStyles[i + 1]), null, null, SecurityContext.STYLE), op);
16970
+ OpList.insertBefore(createExtractedAttributeOp(op.target, BindingKind.StyleProperty, null, parsedStyles[i], literal(parsedStyles[i + 1]), null, null, SecurityContext.STYLE), op);
16956
16971
  }
16957
16972
  OpList.remove(op);
16958
16973
  } else if (op.name === "class") {
16959
16974
  const parsedClasses = op.expression.value.trim().split(/\s+/g);
16960
16975
  for (const parsedClass of parsedClasses) {
16961
- OpList.insertBefore(createExtractedAttributeOp(op.target, BindingKind.ClassName, parsedClass, null, null, null, SecurityContext.NONE), op);
16976
+ OpList.insertBefore(createExtractedAttributeOp(op.target, BindingKind.ClassName, null, parsedClass, null, null, null, SecurityContext.NONE), op);
16962
16977
  }
16963
16978
  OpList.remove(op);
16964
16979
  }
@@ -16967,7 +16982,7 @@ function parseExtractedStyles(job) {
16967
16982
  }
16968
16983
  }
16969
16984
 
16970
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/phase_remove_content_selectors.mjs
16985
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/phase_remove_content_selectors.mjs
16971
16986
  function removeContentSelectors(job) {
16972
16987
  for (const unit of job.units) {
16973
16988
  const elements = createOpXrefMap(unit);
@@ -16994,7 +17009,7 @@ function lookupInXrefMap(map, xref) {
16994
17009
  return el;
16995
17010
  }
16996
17011
 
16997
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_creation.mjs
17012
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_creation.mjs
16998
17013
  function createPipes(job) {
16999
17014
  for (const unit of job.units) {
17000
17015
  processPipeBindingsInView(unit);
@@ -17042,7 +17057,7 @@ function addPipeToCreationBlock(unit, afterTargetXref, binding) {
17042
17057
  throw new Error(`AssertionError: unable to find insertion point for pipe ${binding.name}`);
17043
17058
  }
17044
17059
 
17045
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_variadic.mjs
17060
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_variadic.mjs
17046
17061
  function createVariadicPipes(job) {
17047
17062
  for (const unit of job.units) {
17048
17063
  for (const op of unit.update) {
@@ -17059,7 +17074,7 @@ function createVariadicPipes(job) {
17059
17074
  }
17060
17075
  }
17061
17076
 
17062
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/propagate_i18n_blocks.mjs
17077
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/propagate_i18n_blocks.mjs
17063
17078
  function propagateI18nBlocks(job) {
17064
17079
  propagateI18nBlocksToTemplates(job.root, 0);
17065
17080
  }
@@ -17113,7 +17128,7 @@ function wrapTemplateWithI18n(unit, parentI18n) {
17113
17128
  }
17114
17129
  }
17115
17130
 
17116
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_function_extraction.mjs
17131
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_function_extraction.mjs
17117
17132
  function extractPureFunctions(job) {
17118
17133
  for (const view of job.units) {
17119
17134
  for (const op of view.ops()) {
@@ -17155,7 +17170,7 @@ var PureFunctionConstant = class extends GenericKeyFn {
17155
17170
  }
17156
17171
  };
17157
17172
 
17158
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_literal_structures.mjs
17173
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_literal_structures.mjs
17159
17174
  function generatePureLiteralStructures(job) {
17160
17175
  for (const unit of job.units) {
17161
17176
  for (const op of unit.update) {
@@ -17202,7 +17217,7 @@ function transformLiteralMap(expr) {
17202
17217
  return new PureFunctionExpr(literalMap(derivedEntries), nonConstantArgs);
17203
17218
  }
17204
17219
 
17205
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/instruction.mjs
17220
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/instruction.mjs
17206
17221
  function element(slot, tag, constIndex, localRefIndex, sourceSpan) {
17207
17222
  return elementOrContainerBase(Identifiers.element, slot, tag, constIndex, localRefIndex, sourceSpan);
17208
17223
  }
@@ -17284,9 +17299,7 @@ function namespaceMath() {
17284
17299
  return call(Identifiers.namespaceMathML, [], null);
17285
17300
  }
17286
17301
  function advance(delta, sourceSpan) {
17287
- return call(Identifiers.advance, [
17288
- literal(delta)
17289
- ], sourceSpan);
17302
+ return call(Identifiers.advance, delta > 1 ? [literal(delta)] : [], sourceSpan);
17290
17303
  }
17291
17304
  function reference(slot) {
17292
17305
  return importExpr(Identifiers.reference).callFn([
@@ -17430,10 +17443,13 @@ function property(name, expression, sanitizer, sourceSpan) {
17430
17443
  }
17431
17444
  return call(Identifiers.property, args, sourceSpan);
17432
17445
  }
17433
- function attribute(name, expression, sanitizer) {
17446
+ function attribute(name, expression, sanitizer, namespace) {
17434
17447
  const args = [literal(name), expression];
17435
- if (sanitizer !== null) {
17436
- args.push(sanitizer);
17448
+ if (sanitizer !== null || namespace !== null) {
17449
+ args.push(sanitizer != null ? sanitizer : literal(null));
17450
+ }
17451
+ if (namespace !== null) {
17452
+ args.push(literal(namespace));
17437
17453
  }
17438
17454
  return call(Identifiers.attribute, args, null);
17439
17455
  }
@@ -17723,7 +17739,7 @@ function callVariadicInstruction(config, baseArgs, interpolationArgs, extraArgs,
17723
17739
  return createStatementOp(callVariadicInstructionExpr(config, baseArgs, interpolationArgs, extraArgs, sourceSpan).toStmt());
17724
17740
  }
17725
17741
 
17726
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/reify.mjs
17742
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/reify.mjs
17727
17743
  var GLOBAL_TARGET_RESOLVERS = /* @__PURE__ */ new Map([
17728
17744
  ["window", Identifiers.resolveWindow],
17729
17745
  ["document", Identifiers.resolveDocument],
@@ -17946,7 +17962,7 @@ function reifyUpdateOperations(_unit, ops) {
17946
17962
  if (op.expression instanceof Interpolation2) {
17947
17963
  OpList.replace(op, attributeInterpolate(op.name, op.expression.strings, op.expression.expressions, op.sanitizer, op.sourceSpan));
17948
17964
  } else {
17949
- OpList.replace(op, attribute(op.name, op.expression, op.sanitizer));
17965
+ OpList.replace(op, attribute(op.name, op.expression, op.sanitizer, op.namespace));
17950
17966
  }
17951
17967
  break;
17952
17968
  case OpKind.HostProperty:
@@ -18056,7 +18072,7 @@ function reifyListenerHandler(unit, name, handlerOps, consumesDollarEvent) {
18056
18072
  return fn(params, handlerStmts, void 0, void 0, name);
18057
18073
  }
18058
18074
 
18059
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_empty_bindings.mjs
18075
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_empty_bindings.mjs
18060
18076
  function removeEmptyBindings(job) {
18061
18077
  for (const unit of job.units) {
18062
18078
  for (const op of unit.update) {
@@ -18077,7 +18093,7 @@ function removeEmptyBindings(job) {
18077
18093
  }
18078
18094
  }
18079
18095
 
18080
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_i18n_contexts.mjs
18096
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_i18n_contexts.mjs
18081
18097
  function removeI18nContexts(job) {
18082
18098
  for (const unit of job.units) {
18083
18099
  for (const op of unit.create) {
@@ -18093,7 +18109,7 @@ function removeI18nContexts(job) {
18093
18109
  }
18094
18110
  }
18095
18111
 
18096
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_unused_i18n_attrs.mjs
18112
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_unused_i18n_attrs.mjs
18097
18113
  function removeUnusedI18nAttributesOps(job) {
18098
18114
  for (const unit of job.units) {
18099
18115
  const ownersWithI18nExpressions = /* @__PURE__ */ new Set();
@@ -18115,39 +18131,7 @@ function removeUnusedI18nAttributesOps(job) {
18115
18131
  }
18116
18132
  }
18117
18133
 
18118
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/repeater_derived_vars.mjs
18119
- function generateRepeaterDerivedVars(job) {
18120
- const repeaters = /* @__PURE__ */ new Map();
18121
- for (const unit of job.units) {
18122
- for (const op of unit.ops()) {
18123
- if (op.kind === OpKind.RepeaterCreate) {
18124
- repeaters.set(op.xref, op);
18125
- }
18126
- }
18127
- }
18128
- for (const unit of job.units) {
18129
- for (const op of unit.ops()) {
18130
- transformExpressionsInOp(op, (expr) => {
18131
- if (!(expr instanceof DerivedRepeaterVarExpr)) {
18132
- return expr;
18133
- }
18134
- const repeaterOp = repeaters.get(expr.xref);
18135
- switch (expr.identity) {
18136
- case DerivedRepeaterVarIdentity.First:
18137
- return new BinaryOperatorExpr(BinaryOperator.Identical, new LexicalReadExpr(repeaterOp.varNames.$index), literal(0));
18138
- case DerivedRepeaterVarIdentity.Last:
18139
- return new BinaryOperatorExpr(BinaryOperator.Identical, new LexicalReadExpr(repeaterOp.varNames.$index), new BinaryOperatorExpr(BinaryOperator.Minus, new LexicalReadExpr(repeaterOp.varNames.$count), literal(1)));
18140
- case DerivedRepeaterVarIdentity.Even:
18141
- return new BinaryOperatorExpr(BinaryOperator.Identical, new BinaryOperatorExpr(BinaryOperator.Modulo, new LexicalReadExpr(repeaterOp.varNames.$index), literal(2)), literal(0));
18142
- case DerivedRepeaterVarIdentity.Odd:
18143
- return new BinaryOperatorExpr(BinaryOperator.NotIdentical, new BinaryOperatorExpr(BinaryOperator.Modulo, new LexicalReadExpr(repeaterOp.varNames.$index), literal(2)), literal(0));
18144
- }
18145
- }, VisitorContextFlag.None);
18146
- }
18147
- }
18148
- }
18149
-
18150
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_contexts.mjs
18134
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_contexts.mjs
18151
18135
  function resolveContexts(job) {
18152
18136
  for (const unit of job.units) {
18153
18137
  processLexicalScope(unit, unit.create);
@@ -18188,7 +18172,7 @@ function processLexicalScope(view, ops) {
18188
18172
  }
18189
18173
  }
18190
18174
 
18191
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_dollar_event.mjs
18175
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_dollar_event.mjs
18192
18176
  function resolveDollarEvent(job) {
18193
18177
  for (const unit of job.units) {
18194
18178
  transformDollarEvent(unit, unit.create);
@@ -18209,7 +18193,7 @@ function transformDollarEvent(unit, ops) {
18209
18193
  }
18210
18194
  }
18211
18195
 
18212
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_element_placeholders.mjs
18196
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_element_placeholders.mjs
18213
18197
  function resolveI18nElementPlaceholders(job) {
18214
18198
  const i18nContexts = /* @__PURE__ */ new Map();
18215
18199
  const elements = /* @__PURE__ */ new Map();
@@ -18388,7 +18372,7 @@ function addParam(params, placeholder, value, subTemplateIndex, flags) {
18388
18372
  params.set(placeholder, values);
18389
18373
  }
18390
18374
 
18391
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_expression_placeholders.mjs
18375
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_expression_placeholders.mjs
18392
18376
  function resolveI18nExpressionPlaceholders(job) {
18393
18377
  var _a2;
18394
18378
  const subTemplateIndicies = /* @__PURE__ */ new Map();
@@ -18441,7 +18425,7 @@ function updatePlaceholder(op, value, i18nContexts, icuPlaceholders) {
18441
18425
  }
18442
18426
  }
18443
18427
 
18444
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_names.mjs
18428
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_names.mjs
18445
18429
  function resolveNames(job) {
18446
18430
  for (const unit of job.units) {
18447
18431
  processLexicalScope2(unit, unit.create, null);
@@ -18505,7 +18489,7 @@ function processLexicalScope2(unit, ops, savedView) {
18505
18489
  }
18506
18490
  }
18507
18491
 
18508
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_sanitizers.mjs
18492
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_sanitizers.mjs
18509
18493
  var sanitizerFns = /* @__PURE__ */ new Map([
18510
18494
  [SecurityContext.HTML, Identifiers.sanitizeHtml],
18511
18495
  [SecurityContext.RESOURCE_URL, Identifiers.sanitizeResourceUrl],
@@ -18575,7 +18559,7 @@ function getOnlySecurityContext(securityContext) {
18575
18559
  return securityContext;
18576
18560
  }
18577
18561
 
18578
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/save_restore_view.mjs
18562
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/save_restore_view.mjs
18579
18563
  function saveAndRestoreView(job) {
18580
18564
  for (const unit of job.units) {
18581
18565
  unit.create.prepend([
@@ -18620,7 +18604,7 @@ function addSaveRestoreViewOperationToListener(unit, op) {
18620
18604
  }
18621
18605
  }
18622
18606
 
18623
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/slot_allocation.mjs
18607
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/slot_allocation.mjs
18624
18608
  function allocateSlots(job) {
18625
18609
  const slotMap = /* @__PURE__ */ new Map();
18626
18610
  for (const unit of job.units) {
@@ -18645,7 +18629,7 @@ function allocateSlots(job) {
18645
18629
  }
18646
18630
  }
18647
18631
 
18648
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/style_binding_specialization.mjs
18632
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/style_binding_specialization.mjs
18649
18633
  function specializeStyleBindings(job) {
18650
18634
  for (const unit of job.units) {
18651
18635
  for (const op of unit.update) {
@@ -18675,7 +18659,7 @@ function specializeStyleBindings(job) {
18675
18659
  }
18676
18660
  }
18677
18661
 
18678
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/temporary_variables.mjs
18662
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/temporary_variables.mjs
18679
18663
  function generateTemporaryVariables(job) {
18680
18664
  for (const unit of job.units) {
18681
18665
  unit.create.prepend(generateTemporaries(unit.create));
@@ -18733,7 +18717,7 @@ function assignName(names, expr) {
18733
18717
  expr.name = name;
18734
18718
  }
18735
18719
 
18736
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_generation.mjs
18720
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_generation.mjs
18737
18721
  function generateTrackFns(job) {
18738
18722
  for (const unit of job.units) {
18739
18723
  for (const op of unit.create) {
@@ -18766,7 +18750,7 @@ function generateTrackFns(job) {
18766
18750
  }
18767
18751
  }
18768
18752
 
18769
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_optimization.mjs
18753
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_optimization.mjs
18770
18754
  function optimizeTrackFns(job) {
18771
18755
  for (const unit of job.units) {
18772
18756
  for (const op of unit.create) {
@@ -18813,7 +18797,7 @@ function isTrackByFunctionCall(rootView, expr) {
18813
18797
  return true;
18814
18798
  }
18815
18799
 
18816
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_variables.mjs
18800
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_variables.mjs
18817
18801
  function generateTrackVariables(job) {
18818
18802
  for (const unit of job.units) {
18819
18803
  for (const op of unit.create) {
@@ -18834,7 +18818,7 @@ function generateTrackVariables(job) {
18834
18818
  }
18835
18819
  }
18836
18820
 
18837
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/var_counting.mjs
18821
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/var_counting.mjs
18838
18822
  function countVariables(job) {
18839
18823
  for (const unit of job.units) {
18840
18824
  let varCount = 0;
@@ -18942,7 +18926,7 @@ function isSingletonInterpolation(expr) {
18942
18926
  return true;
18943
18927
  }
18944
18928
 
18945
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/variable_optimization.mjs
18929
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/variable_optimization.mjs
18946
18930
  function optimizeVariables(job) {
18947
18931
  for (const unit of job.units) {
18948
18932
  inlineAlwaysInlineVariables(unit.create);
@@ -19192,7 +19176,7 @@ function allowConservativeInlining(decl, target) {
19192
19176
  }
19193
19177
  }
19194
19178
 
19195
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/wrap_icus.mjs
19179
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/wrap_icus.mjs
19196
19180
  function wrapI18nIcus(job) {
19197
19181
  for (const unit of job.units) {
19198
19182
  let currentI18nOp = null;
@@ -19222,7 +19206,7 @@ function wrapI18nIcus(job) {
19222
19206
  }
19223
19207
  }
19224
19208
 
19225
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/emit.mjs
19209
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/emit.mjs
19226
19210
  var phases = [
19227
19211
  { kind: CompilationJobKind.Tmpl, fn: removeContentSelectors },
19228
19212
  { kind: CompilationJobKind.Host, fn: parseHostStyleProperties },
@@ -19253,7 +19237,6 @@ var phases = [
19253
19237
  { kind: CompilationJobKind.Tmpl, fn: saveAndRestoreView },
19254
19238
  { kind: CompilationJobKind.Both, fn: deleteAnyCasts },
19255
19239
  { kind: CompilationJobKind.Both, fn: resolveDollarEvent },
19256
- { kind: CompilationJobKind.Tmpl, fn: generateRepeaterDerivedVars },
19257
19240
  { kind: CompilationJobKind.Tmpl, fn: generateTrackVariables },
19258
19241
  { kind: CompilationJobKind.Both, fn: resolveNames },
19259
19242
  { kind: CompilationJobKind.Tmpl, fn: resolveDeferTargetNames },
@@ -19388,7 +19371,7 @@ function emitHostBindingFunction(job) {
19388
19371
  );
19389
19372
  }
19390
19373
 
19391
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/ingest.mjs
19374
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/ingest.mjs
19392
19375
  var compatibilityMode = CompatibilityMode.TemplateDefinitionBuilder;
19393
19376
  var domSchema = new DomElementSchemaRegistry();
19394
19377
  var NG_TEMPLATE_TAG_NAME = "ng-template";
@@ -19604,6 +19587,9 @@ function ingestIfBlock(unit, ifBlock) {
19604
19587
  }
19605
19588
  function ingestSwitchBlock(unit, switchBlock) {
19606
19589
  var _a2;
19590
+ if (switchBlock.cases.length === 0) {
19591
+ return;
19592
+ }
19607
19593
  let firstXref = null;
19608
19594
  let firstSlotHandle = null;
19609
19595
  let conditions = [];
@@ -19748,21 +19734,37 @@ function ingestIcu(unit, icu) {
19748
19734
  function ingestForBlock(unit, forBlock) {
19749
19735
  var _a2, _b2, _c2;
19750
19736
  const repeaterView = unit.job.allocateView(unit.xref);
19751
- const createRepeaterAlias = (ident, repeaterVar) => {
19752
- repeaterView.aliases.add({
19753
- kind: SemanticVariableKind.Alias,
19754
- name: null,
19755
- identifier: ident,
19756
- expression: new DerivedRepeaterVarExpr(repeaterView.xref, repeaterVar)
19757
- });
19758
- };
19759
19737
  repeaterView.contextVariables.set(forBlock.item.name, forBlock.item.value);
19760
19738
  repeaterView.contextVariables.set(forBlock.contextVariables.$index.name, forBlock.contextVariables.$index.value);
19761
19739
  repeaterView.contextVariables.set(forBlock.contextVariables.$count.name, forBlock.contextVariables.$count.value);
19762
- createRepeaterAlias(forBlock.contextVariables.$first.name, DerivedRepeaterVarIdentity.First);
19763
- createRepeaterAlias(forBlock.contextVariables.$last.name, DerivedRepeaterVarIdentity.Last);
19764
- createRepeaterAlias(forBlock.contextVariables.$even.name, DerivedRepeaterVarIdentity.Even);
19765
- createRepeaterAlias(forBlock.contextVariables.$odd.name, DerivedRepeaterVarIdentity.Odd);
19740
+ const indexName = `\u0275${forBlock.contextVariables.$index.name}_${repeaterView.xref}`;
19741
+ const countName = `\u0275${forBlock.contextVariables.$count.name}_${repeaterView.xref}`;
19742
+ repeaterView.contextVariables.set(indexName, forBlock.contextVariables.$index.value);
19743
+ repeaterView.contextVariables.set(countName, forBlock.contextVariables.$count.value);
19744
+ repeaterView.aliases.add({
19745
+ kind: SemanticVariableKind.Alias,
19746
+ name: null,
19747
+ identifier: forBlock.contextVariables.$first.name,
19748
+ expression: new LexicalReadExpr(indexName).identical(literal(0))
19749
+ });
19750
+ repeaterView.aliases.add({
19751
+ kind: SemanticVariableKind.Alias,
19752
+ name: null,
19753
+ identifier: forBlock.contextVariables.$last.name,
19754
+ expression: new LexicalReadExpr(indexName).identical(new LexicalReadExpr(countName).minus(literal(1)))
19755
+ });
19756
+ repeaterView.aliases.add({
19757
+ kind: SemanticVariableKind.Alias,
19758
+ name: null,
19759
+ identifier: forBlock.contextVariables.$even.name,
19760
+ expression: new LexicalReadExpr(indexName).modulo(literal(2)).identical(literal(0))
19761
+ });
19762
+ repeaterView.aliases.add({
19763
+ kind: SemanticVariableKind.Alias,
19764
+ name: null,
19765
+ identifier: forBlock.contextVariables.$odd.name,
19766
+ expression: new LexicalReadExpr(indexName).modulo(literal(2)).notIdentical(literal(0))
19767
+ });
19766
19768
  const sourceSpan = convertSourceSpan(forBlock.trackBy.span, forBlock.sourceSpan);
19767
19769
  const track = convertAst(forBlock.trackBy, unit.job, sourceSpan);
19768
19770
  ingestNodes(repeaterView, forBlock.children);
@@ -19964,7 +19966,7 @@ function ingestTemplateBindings(unit, op, template2, templateKind) {
19964
19966
  }
19965
19967
  if (templateKind === TemplateKind.Structural && output.type !== 1) {
19966
19968
  const securityContext = domSchema.securityContext(NG_TEMPLATE_TAG_NAME, output.name, false);
19967
- unit.create.push(createExtractedAttributeOp(op.xref, BindingKind.Property, output.name, null, null, null, securityContext));
19969
+ unit.create.push(createExtractedAttributeOp(op.xref, BindingKind.Property, null, output.name, null, null, null, securityContext));
19968
19970
  }
19969
19971
  }
19970
19972
  if (bindings.some((b) => b == null ? void 0 : b.i18nMessage) !== null) {
@@ -19975,7 +19977,7 @@ function createTemplateBinding(view, xref, type, name, value, unit, securityCont
19975
19977
  const isTextBinding = typeof value === "string";
19976
19978
  if (templateKind === TemplateKind.Structural) {
19977
19979
  if (!isStructuralTemplateAttribute && (type === 0 || type === 2 || type === 3)) {
19978
- return createExtractedAttributeOp(xref, BindingKind.Property, name, null, null, i18nMessage, securityContext);
19980
+ return createExtractedAttributeOp(xref, BindingKind.Property, null, name, null, null, i18nMessage, securityContext);
19979
19981
  }
19980
19982
  if (!isTextBinding && (type === 1 || type === 4)) {
19981
19983
  return null;
@@ -20052,10 +20054,10 @@ function ingestControlFlowInsertionPoint(unit, xref, node) {
20052
20054
  return null;
20053
20055
  }
20054
20056
 
20055
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/switch/index.mjs
20057
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/switch/index.mjs
20056
20058
  var USE_TEMPLATE_PIPELINE = false;
20057
20059
 
20058
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/styling_builder.mjs
20060
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/styling_builder.mjs
20059
20061
  var IMPORTANT_FLAG = "!important";
20060
20062
  var MIN_STYLING_BINDING_SLOTS_REQUIRED = 2;
20061
20063
  var StylingBuilder = class {
@@ -20388,7 +20390,7 @@ function isEmptyExpression(ast) {
20388
20390
  return ast instanceof EmptyExpr;
20389
20391
  }
20390
20392
 
20391
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
20393
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
20392
20394
  var HtmlParser = class extends Parser2 {
20393
20395
  constructor() {
20394
20396
  super(getHtmlTagDefinition);
@@ -20398,7 +20400,7 @@ var HtmlParser = class extends Parser2 {
20398
20400
  }
20399
20401
  };
20400
20402
 
20401
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
20403
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
20402
20404
  var PRESERVE_WS_ATTR_NAME = "ngPreserveWhitespaces";
20403
20405
  var SKIP_WS_TRIM_TAGS = /* @__PURE__ */ new Set(["pre", "template", "textarea", "script", "style"]);
20404
20406
  var WS_CHARS = " \f\n\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
@@ -20464,7 +20466,7 @@ function visitAllWithSiblings(visitor, nodes) {
20464
20466
  return result;
20465
20467
  }
20466
20468
 
20467
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
20469
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
20468
20470
  var PROPERTY_PARTS_SEPARATOR = ".";
20469
20471
  var ATTRIBUTE_PREFIX = "attr";
20470
20472
  var CLASS_PREFIX = "class";
@@ -20784,7 +20786,7 @@ function moveParseSourceSpan(sourceSpan, absoluteSpan) {
20784
20786
  return new ParseSourceSpan(sourceSpan.start.moveBy(startDiff), sourceSpan.end.moveBy(endDiff), sourceSpan.fullStart.moveBy(startDiff), sourceSpan.details);
20785
20787
  }
20786
20788
 
20787
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/style_url_resolver.mjs
20789
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/style_url_resolver.mjs
20788
20790
  function isStyleUrlResolvable(url) {
20789
20791
  if (url == null || url.length === 0 || url[0] == "/")
20790
20792
  return false;
@@ -20793,7 +20795,7 @@ function isStyleUrlResolvable(url) {
20793
20795
  }
20794
20796
  var URL_WITH_SCHEMA_REGEXP = /^([^:/?#]+):/;
20795
20797
 
20796
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template_parser/template_preparser.mjs
20798
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template_parser/template_preparser.mjs
20797
20799
  var NG_CONTENT_SELECT_ATTR = "select";
20798
20800
  var LINK_ELEMENT = "link";
20799
20801
  var LINK_STYLE_REL_ATTR = "rel";
@@ -20863,7 +20865,7 @@ function normalizeNgContentSelect(selectAttr) {
20863
20865
  return selectAttr;
20864
20866
  }
20865
20867
 
20866
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_control_flow.mjs
20868
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_control_flow.mjs
20867
20869
  var FOR_LOOP_EXPRESSION_PATTERN = /^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/;
20868
20870
  var FOR_LOOP_TRACK_PATTERN = /^track\s+([\S\s]*)/;
20869
20871
  var CONDITIONAL_ALIAS_PATTERN = /^as\s+(.*)/;
@@ -21154,7 +21156,7 @@ function stripOptionalParentheses(param, errors) {
21154
21156
  return expression.slice(start, end);
21155
21157
  }
21156
21158
 
21157
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_deferred_triggers.mjs
21159
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_deferred_triggers.mjs
21158
21160
  var TIME_PATTERN = /^\d+\.?\d*(ms|s)?$/;
21159
21161
  var SEPARATOR_PATTERN = /^\s$/;
21160
21162
  var COMMA_DELIMITED_SYNTAX = /* @__PURE__ */ new Map([
@@ -21418,7 +21420,7 @@ function parseDeferredTime(value) {
21418
21420
  return parseFloat(time) * (units === "s" ? 1e3 : 1);
21419
21421
  }
21420
21422
 
21421
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_deferred_blocks.mjs
21423
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_deferred_blocks.mjs
21422
21424
  var PREFETCH_WHEN_PATTERN = /^prefetch\s+when\s/;
21423
21425
  var PREFETCH_ON_PATTERN = /^prefetch\s+on\s/;
21424
21426
  var MINIMUM_PARAMETER_PATTERN = /^minimum\s/;
@@ -21553,7 +21555,7 @@ function parsePrimaryTriggers(params, bindingParser, errors, placeholder) {
21553
21555
  return { triggers, prefetchTriggers };
21554
21556
  }
21555
21557
 
21556
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_template_transform.mjs
21558
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_template_transform.mjs
21557
21559
  var BIND_NAME_REGEXP = /^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/;
21558
21560
  var KW_BIND_IDX = 1;
21559
21561
  var KW_LET_IDX = 2;
@@ -21984,7 +21986,7 @@ function textContents(node) {
21984
21986
  }
21985
21987
  }
21986
21988
 
21987
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/context.mjs
21989
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/context.mjs
21988
21990
  var TagType;
21989
21991
  (function(TagType2) {
21990
21992
  TagType2[TagType2["ELEMENT"] = 0] = "ELEMENT";
@@ -22129,7 +22131,7 @@ function serializePlaceholderValue(value) {
22129
22131
  }
22130
22132
  }
22131
22133
 
22132
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/template.mjs
22134
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/template.mjs
22133
22135
  var NG_CONTENT_SELECT_ATTR2 = "select";
22134
22136
  var NG_PROJECT_AS_ATTR_NAME = "ngProjectAs";
22135
22137
  var EVENT_BINDING_SCOPE_GLOBALS = /* @__PURE__ */ new Set(["$event"]);
@@ -22203,7 +22205,7 @@ var TemplateData = class {
22203
22205
  }
22204
22206
  };
22205
22207
  var TemplateDefinitionBuilder = class {
22206
- constructor(constantPool, parentBindingScope, level = 0, contextName, i18nContext, templateIndex, templateName, _namespace, relativeContextFilePath, i18nUseExternalIds, deferBlocks, elementLocations, _constants = createComponentDefConsts()) {
22208
+ constructor(constantPool, parentBindingScope, level = 0, contextName, i18nContext, templateIndex, templateName, _namespace, relativeContextFilePath, i18nUseExternalIds, deferBlocks, elementLocations, allDeferrableDepsFn, _constants = createComponentDefConsts()) {
22207
22209
  this.constantPool = constantPool;
22208
22210
  this.level = level;
22209
22211
  this.contextName = contextName;
@@ -22214,6 +22216,7 @@ var TemplateDefinitionBuilder = class {
22214
22216
  this.i18nUseExternalIds = i18nUseExternalIds;
22215
22217
  this.deferBlocks = deferBlocks;
22216
22218
  this.elementLocations = elementLocations;
22219
+ this.allDeferrableDepsFn = allDeferrableDepsFn;
22217
22220
  this._constants = _constants;
22218
22221
  this._dataIndex = 0;
22219
22222
  this._bindingContext = 0;
@@ -22689,7 +22692,7 @@ var TemplateDefinitionBuilder = class {
22689
22692
  }
22690
22693
  const contextName = `${this.contextName}${contextNameSuffix}_${index}`;
22691
22694
  const name = `${contextName}_Template`;
22692
- const visitor = new TemplateDefinitionBuilder(this.constantPool, this._bindingScope, this.level + 1, contextName, this.i18n, index, name, this._namespace, this.fileBasedI18nSuffix, this.i18nUseExternalIds, this.deferBlocks, this.elementLocations, this._constants);
22695
+ const visitor = new TemplateDefinitionBuilder(this.constantPool, this._bindingScope, this.level + 1, contextName, this.i18n, index, name, this._namespace, this.fileBasedI18nSuffix, this.i18nUseExternalIds, this.deferBlocks, this.elementLocations, this.allDeferrableDepsFn, this._constants);
22693
22696
  this._nestedTemplateFns.push(() => {
22694
22697
  const templateFunctionExpr = visitor.buildTemplateFunction(children, variables, this._ngContentReservedSlots.length + this._ngContentSelectorsOffset, i18nMeta, variableAliases);
22695
22698
  this.constantPool.statements.push(templateFunctionExpr.toDeclStmt(name));
@@ -22834,6 +22837,9 @@ var TemplateDefinitionBuilder = class {
22834
22837
  this.updateInstructionWithAdvance(containerIndex, block.branches[0].sourceSpan, Identifiers.conditional, paramsCallback);
22835
22838
  }
22836
22839
  visitSwitchBlock(block) {
22840
+ if (block.cases.length === 0) {
22841
+ return;
22842
+ }
22837
22843
  const caseData = block.cases.map((currentCase) => {
22838
22844
  const index = this.createEmbeddedTemplateFn(null, currentCase.children, "_Case", currentCase.sourceSpan, void 0, void 0, void 0, currentCase.i18n);
22839
22845
  const expression = currentCase.expression === null ? null : currentCase.expression.visit(this._valueConverter);
@@ -22858,6 +22864,7 @@ var TemplateDefinitionBuilder = class {
22858
22864
  });
22859
22865
  }
22860
22866
  visitDeferredBlock(deferred) {
22867
+ var _a2;
22861
22868
  const { loading, placeholder, error: error2, triggers, prefetchTriggers } = deferred;
22862
22869
  const metadata = this.deferBlocks.get(deferred);
22863
22870
  if (!metadata) {
@@ -22874,7 +22881,7 @@ var TemplateDefinitionBuilder = class {
22874
22881
  this.creationInstruction(deferred.sourceSpan, Identifiers.defer, trimTrailingNulls([
22875
22882
  literal(deferredIndex),
22876
22883
  literal(primaryTemplateIndex),
22877
- this.createDeferredDepsFunction(depsFnName, metadata),
22884
+ (_a2 = this.allDeferrableDepsFn) != null ? _a2 : this.createDeferredDepsFunction(depsFnName, metadata),
22878
22885
  literal(loadingIndex),
22879
22886
  literal(placeholderIndex),
22880
22887
  literal(errorIndex),
@@ -23161,7 +23168,7 @@ var TemplateDefinitionBuilder = class {
23161
23168
  if (delta < 1) {
23162
23169
  throw new Error("advance instruction can only go forwards");
23163
23170
  }
23164
- this.instructionFn(this._updateCodeFns, span, Identifiers.advance, [literal(delta)]);
23171
+ this.instructionFn(this._updateCodeFns, span, Identifiers.advance, delta > 1 ? [literal(delta)] : []);
23165
23172
  this._currentIndex = nodeIndex;
23166
23173
  }
23167
23174
  }
@@ -23811,7 +23818,7 @@ function createClosureModeGuard2() {
23811
23818
  return typeofExpr(variable(NG_I18N_CLOSURE_MODE2)).notIdentical(literal("undefined", STRING_TYPE)).and(variable(NG_I18N_CLOSURE_MODE2));
23812
23819
  }
23813
23820
 
23814
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/compiler.mjs
23821
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/compiler.mjs
23815
23822
  var ATTR_REGEX = /attr\.([^\]]+)/;
23816
23823
  var COMPONENT_VARIABLE = "%COMP%";
23817
23824
  var HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
@@ -23888,6 +23895,17 @@ function compileDirectiveFromMetadata(meta, constantPool, bindingParser) {
23888
23895
  const type = createDirectiveType(meta);
23889
23896
  return { expression, type, statements: [] };
23890
23897
  }
23898
+ function createDeferredDepsFunction(constantPool, name, deps) {
23899
+ const dependencyExp = [];
23900
+ for (const [symbolName, importPath] of deps) {
23901
+ const innerFn = arrowFn([new FnParam("m", DYNAMIC_TYPE)], variable("m").prop(symbolName));
23902
+ const importExpr2 = new DynamicImportExpr(importPath).prop("then").callFn([innerFn]);
23903
+ dependencyExp.push(importExpr2);
23904
+ }
23905
+ const depsFnExpr = arrowFn([], literalArr(dependencyExp));
23906
+ constantPool.statements.push(depsFnExpr.toDeclStmt(name, StmtModifier.Final));
23907
+ return variable(name);
23908
+ }
23891
23909
  function compileComponentFromMetadata(meta, constantPool, bindingParser) {
23892
23910
  const definitionMap = baseDirectiveFields(meta, constantPool, bindingParser);
23893
23911
  addFeatures(definitionMap, meta);
@@ -23905,8 +23923,13 @@ function compileComponentFromMetadata(meta, constantPool, bindingParser) {
23905
23923
  const templateTypeName = meta.name;
23906
23924
  const templateName = templateTypeName ? `${templateTypeName}_Template` : null;
23907
23925
  if (!USE_TEMPLATE_PIPELINE) {
23926
+ let allDeferrableDepsFn = null;
23927
+ if (meta.deferBlocks.size > 0 && meta.deferrableTypes.size > 0 && meta.deferBlockDepsEmitMode === 1) {
23928
+ const fnName = `${templateTypeName}_DeferFn`;
23929
+ allDeferrableDepsFn = createDeferredDepsFunction(constantPool, fnName, meta.deferrableTypes);
23930
+ }
23908
23931
  const template2 = meta.template;
23909
- const templateBuilder = new TemplateDefinitionBuilder(constantPool, BindingScope.createRootScope(), 0, templateTypeName, null, null, templateName, Identifiers.namespaceHTML, meta.relativeContextFilePath, meta.i18nUseExternalIds, meta.deferBlocks, /* @__PURE__ */ new Map());
23932
+ const templateBuilder = new TemplateDefinitionBuilder(constantPool, BindingScope.createRootScope(), 0, templateTypeName, null, null, templateName, Identifiers.namespaceHTML, meta.relativeContextFilePath, meta.i18nUseExternalIds, meta.deferBlocks, /* @__PURE__ */ new Map(), allDeferrableDepsFn);
23910
23933
  const templateFunctionExpression = templateBuilder.buildTemplateFunction(template2.nodes, []);
23911
23934
  const ngContentSelectors = templateBuilder.getNgContentSelectors();
23912
23935
  if (ngContentSelectors) {
@@ -24426,7 +24449,7 @@ function createHostDirectivesMappingArray(mapping) {
24426
24449
  return elements.length > 0 ? literalArr(elements) : null;
24427
24450
  }
24428
24451
 
24429
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/t2_binder.mjs
24452
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/t2_binder.mjs
24430
24453
  var R3TargetBinder = class {
24431
24454
  constructor(directiveMatcher) {
24432
24455
  this.directiveMatcher = directiveMatcher;
@@ -24439,7 +24462,7 @@ var R3TargetBinder = class {
24439
24462
  const scopedNodeEntities = extractScopedNodeEntities(scope);
24440
24463
  const { directives, eagerDirectives, bindings, references } = DirectiveBinder.apply(target.template, this.directiveMatcher);
24441
24464
  const { expressions, symbols, nestingLevel, usedPipes, eagerPipes, deferBlocks } = TemplateBinder.applyWithScope(target.template, scope);
24442
- return new R3BoundTarget(target, directives, eagerDirectives, bindings, references, expressions, symbols, nestingLevel, scopedNodeEntities, usedPipes, eagerPipes, deferBlocks);
24465
+ return new R3BoundTarget(target, directives, eagerDirectives, bindings, references, expressions, symbols, nestingLevel, scopedNodeEntities, usedPipes, eagerPipes, deferBlocks, scope);
24443
24466
  }
24444
24467
  };
24445
24468
  var Scope2 = class {
@@ -24447,6 +24470,7 @@ var Scope2 = class {
24447
24470
  this.parentScope = parentScope;
24448
24471
  this.rootNode = rootNode;
24449
24472
  this.namedEntities = /* @__PURE__ */ new Map();
24473
+ this.elementsInScope = /* @__PURE__ */ new Set();
24450
24474
  this.childScopes = /* @__PURE__ */ new Map();
24451
24475
  this.isDeferred = parentScope !== null && parentScope.isDeferred ? true : rootNode instanceof DeferredBlock;
24452
24476
  }
@@ -24480,6 +24504,7 @@ var Scope2 = class {
24480
24504
  visitElement(element2) {
24481
24505
  element2.references.forEach((node) => this.visitReference(node));
24482
24506
  element2.children.forEach((node) => node.visit(this));
24507
+ this.elementsInScope.add(element2);
24483
24508
  }
24484
24509
  visitTemplate(template2) {
24485
24510
  template2.references.forEach((node) => this.visitReference(node));
@@ -24889,7 +24914,7 @@ var TemplateBinder = class extends RecursiveAstVisitor {
24889
24914
  }
24890
24915
  };
24891
24916
  var R3BoundTarget = class {
24892
- constructor(target, directives, eagerDirectives, bindings, references, exprTargets, symbols, nestingLevel, scopedNodeEntities, usedPipes, eagerPipes, deferredBlocks) {
24917
+ constructor(target, directives, eagerDirectives, bindings, references, exprTargets, symbols, nestingLevel, scopedNodeEntities, usedPipes, eagerPipes, deferredBlocks, rootScope) {
24893
24918
  this.target = target;
24894
24919
  this.directives = directives;
24895
24920
  this.eagerDirectives = eagerDirectives;
@@ -24902,6 +24927,7 @@ var R3BoundTarget = class {
24902
24927
  this.usedPipes = usedPipes;
24903
24928
  this.eagerPipes = eagerPipes;
24904
24929
  this.deferredBlocks = deferredBlocks;
24930
+ this.rootScope = rootScope;
24905
24931
  }
24906
24932
  getEntitiesInScope(node) {
24907
24933
  var _a2;
@@ -24981,6 +25007,15 @@ var R3BoundTarget = class {
24981
25007
  }
24982
25008
  return null;
24983
25009
  }
25010
+ isDeferred(element2) {
25011
+ for (const deferBlock of this.deferredBlocks) {
25012
+ const scope = this.rootScope.childScopes.get(deferBlock);
25013
+ if (scope && scope.elementsInScope.has(element2)) {
25014
+ return true;
25015
+ }
25016
+ }
25017
+ return false;
25018
+ }
24984
25019
  findEntityInScope(rootNode, name) {
24985
25020
  const entities = this.getEntitiesInScope(rootNode);
24986
25021
  for (const entitity of entities) {
@@ -25031,11 +25066,11 @@ function extractScopedNodeEntities(rootScope) {
25031
25066
  return templateEntities;
25032
25067
  }
25033
25068
 
25034
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/resource_loader.mjs
25069
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/resource_loader.mjs
25035
25070
  var ResourceLoader = class {
25036
25071
  };
25037
25072
 
25038
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
25073
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
25039
25074
  var CompilerFacadeImpl = class {
25040
25075
  constructor(jitEvaluator = new JitEvaluator()) {
25041
25076
  this.jitEvaluator = jitEvaluator;
@@ -25158,7 +25193,9 @@ var CompilerFacadeImpl = class {
25158
25193
  declarations: facade.declarations.map(convertDeclarationFacadeToMetadata),
25159
25194
  declarationListEmitMode: 0,
25160
25195
  deferBlocks,
25196
+ deferrableTypes: /* @__PURE__ */ new Map(),
25161
25197
  deferrableDeclToImportDecl: /* @__PURE__ */ new Map(),
25198
+ deferBlockDepsEmitMode: 0,
25162
25199
  styles: [...facade.styles, ...template2.styles],
25163
25200
  encapsulation: facade.encapsulation,
25164
25201
  interpolation,
@@ -25251,7 +25288,7 @@ function convertDirectiveFacadeToMetadata(facade) {
25251
25288
  bindingPropertyName: ann.alias || field,
25252
25289
  classPropertyName: field,
25253
25290
  required: ann.required || false,
25254
- isSignal: false,
25291
+ isSignal: !!ann.isSignal,
25255
25292
  transformFunction: ann.transform != null ? new WrappedNodeExpr(ann.transform) : null
25256
25293
  };
25257
25294
  } else if (isOutput(ann)) {
@@ -25365,7 +25402,9 @@ function convertDeclareComponentFacadeToMetadata(decl, typeSourceSpan, sourceMap
25365
25402
  viewProviders: decl.viewProviders !== void 0 ? new WrappedNodeExpr(decl.viewProviders) : null,
25366
25403
  animations: decl.animations !== void 0 ? new WrappedNodeExpr(decl.animations) : null,
25367
25404
  deferBlocks,
25405
+ deferrableTypes: /* @__PURE__ */ new Map(),
25368
25406
  deferrableDeclToImportDecl: /* @__PURE__ */ new Map(),
25407
+ deferBlockDepsEmitMode: 0,
25369
25408
  changeDetection: (_c2 = decl.changeDetection) != null ? _c2 : ChangeDetectionStrategy.Default,
25370
25409
  encapsulation: (_d2 = decl.encapsulation) != null ? _d2 : ViewEncapsulation.Emulated,
25371
25410
  interpolation,
@@ -25604,17 +25643,17 @@ function publishFacade(global) {
25604
25643
  ng.\u0275compilerFacade = new CompilerFacadeImpl();
25605
25644
  }
25606
25645
 
25607
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
25608
- var VERSION2 = new Version("17.1.0-next.5");
25646
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/version.mjs
25647
+ var VERSION2 = new Version("17.1.0");
25609
25648
 
25610
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
25649
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
25611
25650
  var _VisitorMode;
25612
25651
  (function(_VisitorMode2) {
25613
25652
  _VisitorMode2[_VisitorMode2["Extract"] = 0] = "Extract";
25614
25653
  _VisitorMode2[_VisitorMode2["Merge"] = 1] = "Merge";
25615
25654
  })(_VisitorMode || (_VisitorMode = {}));
25616
25655
 
25617
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/xml_tags.mjs
25656
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/xml_tags.mjs
25618
25657
  var XmlTagDefinition = class {
25619
25658
  constructor() {
25620
25659
  this.closedByParent = false;
@@ -25636,7 +25675,7 @@ var XmlTagDefinition = class {
25636
25675
  };
25637
25676
  var _TAG_DEFINITION = new XmlTagDefinition();
25638
25677
 
25639
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/api.mjs
25678
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/api.mjs
25640
25679
  var FactoryTarget2;
25641
25680
  (function(FactoryTarget3) {
25642
25681
  FactoryTarget3[FactoryTarget3["Directive"] = 0] = "Directive";
@@ -25646,10 +25685,10 @@ var FactoryTarget2;
25646
25685
  FactoryTarget3[FactoryTarget3["NgModule"] = 4] = "NgModule";
25647
25686
  })(FactoryTarget2 || (FactoryTarget2 = {}));
25648
25687
 
25649
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/compiler.mjs
25688
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/compiler.mjs
25650
25689
  publishFacade(_global);
25651
25690
 
25652
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/block-template-entities/util.mjs
25691
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/block-template-entities/util.mjs
25653
25692
  var import_path2 = require("path");
25654
25693
  var import_typescript3 = __toESM(require("typescript"), 1);
25655
25694
  var REPLACEMENTS2 = {
@@ -25757,7 +25796,7 @@ function forEachClass(sourceFile, callback) {
25757
25796
  });
25758
25797
  }
25759
25798
 
25760
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/block-template-entities/index.mjs
25799
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/block-template-entities/index.mjs
25761
25800
  function block_template_entities_default() {
25762
25801
  return (tree) => __async(this, null, function* () {
25763
25802
  const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);