@angular/core 17.1.0-next.1 → 17.1.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/src/application_init.mjs +2 -2
- package/esm2022/src/render3/features/host_directives_feature.mjs +20 -13
- package/esm2022/src/render3/instructions/change_detection.mjs +3 -4
- package/esm2022/src/render3/util/view_utils.mjs +11 -12
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/esm2022/testing/src/test_bed.mjs +3 -3
- package/esm2022/testing/src/test_bed_compiler.mjs +19 -10
- package/fesm2022/core.mjs +32 -27
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +21 -12
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +3 -3
- package/package.json +1 -1
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/block-template-entities/bundle.js +360 -353
- package/schematics/migrations/block-template-entities/bundle.js.map +4 -4
- package/schematics/migrations/compiler-options/bundle.js +13 -13
- package/schematics/migrations/transfer-state/bundle.js +13 -13
- package/schematics/ng-generate/control-flow-migration/bundle.js +563 -433
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +4 -4
- package/schematics/ng-generate/standalone-migration/bundle.js +735 -628
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +1 -1
|
@@ -63,7 +63,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
63
63
|
});
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
-
// bazel-out/
|
|
66
|
+
// bazel-out/darwin_arm64-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/
|
|
75
|
+
// bazel-out/darwin_arm64-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/
|
|
155
|
+
// bazel-out/darwin_arm64-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/
|
|
159
|
+
// bazel-out/darwin_arm64-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/
|
|
176
|
+
// bazel-out/darwin_arm64-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/
|
|
209
|
+
// bazel-out/darwin_arm64-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/
|
|
517
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/core.mjs
|
|
518
518
|
var ViewEncapsulation;
|
|
519
519
|
(function(ViewEncapsulation2) {
|
|
520
520
|
ViewEncapsulation2[ViewEncapsulation2["Emulated"] = 0] = "Emulated";
|
|
@@ -576,7 +576,7 @@ function parseSelectorToR3Selector(selector) {
|
|
|
576
576
|
return selector ? CssSelector.parse(selector).map(parserSelectorToR3Selector) : [];
|
|
577
577
|
}
|
|
578
578
|
|
|
579
|
-
// bazel-out/
|
|
579
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/digest.mjs
|
|
580
580
|
var textEncoder;
|
|
581
581
|
function computeDigest(message) {
|
|
582
582
|
return sha1(serializeNodes(message.nodes).join("") + `[${message.meaning}]`);
|
|
@@ -816,7 +816,7 @@ function wordAt(bytes, index, endian) {
|
|
|
816
816
|
return word;
|
|
817
817
|
}
|
|
818
818
|
|
|
819
|
-
// bazel-out/
|
|
819
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/output_ast.mjs
|
|
820
820
|
var TypeModifier;
|
|
821
821
|
(function(TypeModifier2) {
|
|
822
822
|
TypeModifier2[TypeModifier2["None"] = 0] = "None";
|
|
@@ -1771,7 +1771,7 @@ function serializeTags(tags) {
|
|
|
1771
1771
|
return out;
|
|
1772
1772
|
}
|
|
1773
1773
|
|
|
1774
|
-
// bazel-out/
|
|
1774
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/constant_pool.mjs
|
|
1775
1775
|
var CONSTANT_PREFIX = "_c";
|
|
1776
1776
|
var UNKNOWN_VALUE_KEY = variable("<unknown>");
|
|
1777
1777
|
var KEY_CONTEXT = {};
|
|
@@ -1954,7 +1954,7 @@ function isLongStringLiteral(expr) {
|
|
|
1954
1954
|
return expr instanceof LiteralExpr && typeof expr.value === "string" && expr.value.length >= POOL_INCLUSION_LENGTH_THRESHOLD_FOR_STRINGS;
|
|
1955
1955
|
}
|
|
1956
1956
|
|
|
1957
|
-
// bazel-out/
|
|
1957
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_identifiers.mjs
|
|
1958
1958
|
var CORE = "@angular/core";
|
|
1959
1959
|
var _Identifiers = class {
|
|
1960
1960
|
};
|
|
@@ -2587,7 +2587,7 @@ var Identifiers = _Identifiers;
|
|
|
2587
2587
|
_Identifiers.validateIframeAttribute = { name: "\u0275\u0275validateIframeAttribute", moduleName: CORE };
|
|
2588
2588
|
})();
|
|
2589
2589
|
|
|
2590
|
-
// bazel-out/
|
|
2590
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/util.mjs
|
|
2591
2591
|
var DASH_CASE_REGEXP = /-+([a-z0-9])/g;
|
|
2592
2592
|
function dashCaseToCamelCase(input) {
|
|
2593
2593
|
return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
|
|
@@ -2675,7 +2675,7 @@ function partitionArray(arr, conditionFn) {
|
|
|
2675
2675
|
return [truthy, falsy];
|
|
2676
2676
|
}
|
|
2677
2677
|
|
|
2678
|
-
// bazel-out/
|
|
2678
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/source_map.mjs
|
|
2679
2679
|
var VERSION = 3;
|
|
2680
2680
|
var JS_B64_PREFIX = "# sourceMappingURL=data:application/json;base64,";
|
|
2681
2681
|
var SourceMapGenerator = class {
|
|
@@ -2804,7 +2804,7 @@ function toBase64Digit(value) {
|
|
|
2804
2804
|
return B64_DIGITS[value];
|
|
2805
2805
|
}
|
|
2806
2806
|
|
|
2807
|
-
// bazel-out/
|
|
2807
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/abstract_emitter.mjs
|
|
2808
2808
|
var _SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\|\n|\r|\$/g;
|
|
2809
2809
|
var _LEGAL_IDENTIFIER_RE = /^[$A-Z_][0-9A-Z_$]*$/i;
|
|
2810
2810
|
var _INDENT_WITH = " ";
|
|
@@ -3289,7 +3289,7 @@ function _createIndent(count) {
|
|
|
3289
3289
|
return res;
|
|
3290
3290
|
}
|
|
3291
3291
|
|
|
3292
|
-
// bazel-out/
|
|
3292
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/util.mjs
|
|
3293
3293
|
function typeWithParameters(type, numParams) {
|
|
3294
3294
|
if (numParams === 0) {
|
|
3295
3295
|
return expressionType(type);
|
|
@@ -3354,7 +3354,7 @@ function generateForwardRef(expr) {
|
|
|
3354
3354
|
return importExpr(Identifiers.forwardRef).callFn([arrowFn([], expr)]);
|
|
3355
3355
|
}
|
|
3356
3356
|
|
|
3357
|
-
// bazel-out/
|
|
3357
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_factory.mjs
|
|
3358
3358
|
var R3FactoryDelegateType;
|
|
3359
3359
|
(function(R3FactoryDelegateType2) {
|
|
3360
3360
|
R3FactoryDelegateType2[R3FactoryDelegateType2["Class"] = 0] = "Class";
|
|
@@ -3499,7 +3499,40 @@ function getInjectFn(target) {
|
|
|
3499
3499
|
}
|
|
3500
3500
|
}
|
|
3501
3501
|
|
|
3502
|
-
// bazel-out/
|
|
3502
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/tags.mjs
|
|
3503
|
+
var TagContentType;
|
|
3504
|
+
(function(TagContentType2) {
|
|
3505
|
+
TagContentType2[TagContentType2["RAW_TEXT"] = 0] = "RAW_TEXT";
|
|
3506
|
+
TagContentType2[TagContentType2["ESCAPABLE_RAW_TEXT"] = 1] = "ESCAPABLE_RAW_TEXT";
|
|
3507
|
+
TagContentType2[TagContentType2["PARSABLE_DATA"] = 2] = "PARSABLE_DATA";
|
|
3508
|
+
})(TagContentType || (TagContentType = {}));
|
|
3509
|
+
function splitNsName(elementName) {
|
|
3510
|
+
if (elementName[0] != ":") {
|
|
3511
|
+
return [null, elementName];
|
|
3512
|
+
}
|
|
3513
|
+
const colonIndex = elementName.indexOf(":", 1);
|
|
3514
|
+
if (colonIndex === -1) {
|
|
3515
|
+
throw new Error(`Unsupported format "${elementName}" expecting ":namespace:name"`);
|
|
3516
|
+
}
|
|
3517
|
+
return [elementName.slice(1, colonIndex), elementName.slice(colonIndex + 1)];
|
|
3518
|
+
}
|
|
3519
|
+
function isNgContainer(tagName) {
|
|
3520
|
+
return splitNsName(tagName)[1] === "ng-container";
|
|
3521
|
+
}
|
|
3522
|
+
function isNgContent(tagName) {
|
|
3523
|
+
return splitNsName(tagName)[1] === "ng-content";
|
|
3524
|
+
}
|
|
3525
|
+
function isNgTemplate(tagName) {
|
|
3526
|
+
return splitNsName(tagName)[1] === "ng-template";
|
|
3527
|
+
}
|
|
3528
|
+
function getNsPrefix(fullName) {
|
|
3529
|
+
return fullName === null ? null : splitNsName(fullName)[0];
|
|
3530
|
+
}
|
|
3531
|
+
function mergeNsAndName(prefix, localName) {
|
|
3532
|
+
return prefix ? `:${prefix}:${localName}` : localName;
|
|
3533
|
+
}
|
|
3534
|
+
|
|
3535
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_ast.mjs
|
|
3503
3536
|
var Comment = class {
|
|
3504
3537
|
constructor(value, sourceSpan) {
|
|
3505
3538
|
this.value = value;
|
|
@@ -3880,7 +3913,7 @@ function visitAll(visitor, nodes) {
|
|
|
3880
3913
|
return result;
|
|
3881
3914
|
}
|
|
3882
3915
|
|
|
3883
|
-
// bazel-out/
|
|
3916
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/i18n_ast.mjs
|
|
3884
3917
|
var Message = class {
|
|
3885
3918
|
constructor(nodes, placeholders, placeholderToMessage, meaning, description, customId) {
|
|
3886
3919
|
this.nodes = nodes;
|
|
@@ -4040,7 +4073,7 @@ var LocalizeMessageStringVisitor = class {
|
|
|
4040
4073
|
}
|
|
4041
4074
|
};
|
|
4042
4075
|
|
|
4043
|
-
// bazel-out/
|
|
4076
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/xml_helper.mjs
|
|
4044
4077
|
var _Visitor = class {
|
|
4045
4078
|
visitTag(tag) {
|
|
4046
4079
|
const strAttrs = this._serializeAttributes(tag.attrs);
|
|
@@ -4068,12 +4101,12 @@ ${doctype.dtd}
|
|
|
4068
4101
|
};
|
|
4069
4102
|
var _visitor = new _Visitor();
|
|
4070
4103
|
|
|
4071
|
-
// bazel-out/
|
|
4104
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/xmb.mjs
|
|
4072
4105
|
function toPublicName(internalName) {
|
|
4073
4106
|
return internalName.toUpperCase().replace(/[^A-Z0-9_]/g, "_");
|
|
4074
4107
|
}
|
|
4075
4108
|
|
|
4076
|
-
// bazel-out/
|
|
4109
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/util.mjs
|
|
4077
4110
|
var CLOSURE_TRANSLATION_VAR_PREFIX = "MSG_";
|
|
4078
4111
|
var TRANSLATION_VAR_PREFIX = "i18n_";
|
|
4079
4112
|
var I18N_ATTR = "i18n";
|
|
@@ -4175,7 +4208,7 @@ function declareI18nVariable(variable2) {
|
|
|
4175
4208
|
return new DeclareVarStmt(variable2.name, void 0, INFERRED_TYPE, void 0, variable2.sourceSpan);
|
|
4176
4209
|
}
|
|
4177
4210
|
|
|
4178
|
-
// bazel-out/
|
|
4211
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/util.mjs
|
|
4179
4212
|
var UNSAFE_OBJECT_KEY_NAME_REGEXP = /[-.]/;
|
|
4180
4213
|
var TEMPORARY_NAME = "_t";
|
|
4181
4214
|
var CONTEXT_NAME = "ctx";
|
|
@@ -4342,6 +4375,23 @@ var DefinitionMap = class {
|
|
|
4342
4375
|
return literalMap(this.values);
|
|
4343
4376
|
}
|
|
4344
4377
|
};
|
|
4378
|
+
function createCssSelectorFromNode(node) {
|
|
4379
|
+
const elementName = node instanceof Element ? node.name : "ng-template";
|
|
4380
|
+
const attributes = getAttrsForDirectiveMatching(node);
|
|
4381
|
+
const cssSelector = new CssSelector();
|
|
4382
|
+
const elementNameNoNs = splitNsName(elementName)[1];
|
|
4383
|
+
cssSelector.setElement(elementNameNoNs);
|
|
4384
|
+
Object.getOwnPropertyNames(attributes).forEach((name) => {
|
|
4385
|
+
const nameNoNs = splitNsName(name)[1];
|
|
4386
|
+
const value = attributes[name];
|
|
4387
|
+
cssSelector.addAttribute(nameNoNs, value);
|
|
4388
|
+
if (name.toLowerCase() === "class") {
|
|
4389
|
+
const classes = value.trim().split(/\s+/);
|
|
4390
|
+
classes.forEach((className) => cssSelector.addClassName(className));
|
|
4391
|
+
}
|
|
4392
|
+
});
|
|
4393
|
+
return cssSelector;
|
|
4394
|
+
}
|
|
4345
4395
|
function getAttrsForDirectiveMatching(elOrTpl) {
|
|
4346
4396
|
const attributesMap = {};
|
|
4347
4397
|
if (elOrTpl instanceof Template && elOrTpl.tagName !== "ng-template") {
|
|
@@ -4398,7 +4448,7 @@ function getInstructionStatements(instructions) {
|
|
|
4398
4448
|
return statements;
|
|
4399
4449
|
}
|
|
4400
4450
|
|
|
4401
|
-
// bazel-out/
|
|
4451
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/injectable_compiler_2.mjs
|
|
4402
4452
|
function compileInjectable(meta, resolveForwardRefs) {
|
|
4403
4453
|
let result = null;
|
|
4404
4454
|
const factoryMeta = {
|
|
@@ -4483,7 +4533,7 @@ function createFactoryFunction(type) {
|
|
|
4483
4533
|
return arrowFn([new FnParam("t", DYNAMIC_TYPE)], type.prop("\u0275fac").callFn([variable("t")]));
|
|
4484
4534
|
}
|
|
4485
4535
|
|
|
4486
|
-
// bazel-out/
|
|
4536
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/assertions.mjs
|
|
4487
4537
|
var UNUSABLE_INTERPOLATION_REGEXPS = [
|
|
4488
4538
|
/^\s*$/,
|
|
4489
4539
|
/[<>]/,
|
|
@@ -4505,7 +4555,7 @@ function assertInterpolationSymbols(identifier, value) {
|
|
|
4505
4555
|
}
|
|
4506
4556
|
}
|
|
4507
4557
|
|
|
4508
|
-
// bazel-out/
|
|
4558
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/defaults.mjs
|
|
4509
4559
|
var InterpolationConfig = class {
|
|
4510
4560
|
static fromArray(markers) {
|
|
4511
4561
|
if (!markers) {
|
|
@@ -4522,7 +4572,7 @@ var InterpolationConfig = class {
|
|
|
4522
4572
|
var DEFAULT_INTERPOLATION_CONFIG = new InterpolationConfig("{{", "}}");
|
|
4523
4573
|
var DEFAULT_CONTAINER_BLOCKS = /* @__PURE__ */ new Set(["switch"]);
|
|
4524
4574
|
|
|
4525
|
-
// bazel-out/
|
|
4575
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/chars.mjs
|
|
4526
4576
|
var $EOF = 0;
|
|
4527
4577
|
var $BSPACE = 8;
|
|
4528
4578
|
var $TAB = 9;
|
|
@@ -4604,7 +4654,7 @@ function isQuote(code) {
|
|
|
4604
4654
|
return code === $SQ || code === $DQ || code === $BT;
|
|
4605
4655
|
}
|
|
4606
4656
|
|
|
4607
|
-
// bazel-out/
|
|
4657
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/parse_util.mjs
|
|
4608
4658
|
var ParseLocation = class {
|
|
4609
4659
|
constructor(file, offset, line, col) {
|
|
4610
4660
|
this.file = file;
|
|
@@ -4751,7 +4801,7 @@ function sanitizeIdentifier(name) {
|
|
|
4751
4801
|
return name.replace(/\W/g, "_");
|
|
4752
4802
|
}
|
|
4753
4803
|
|
|
4754
|
-
// bazel-out/
|
|
4804
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/abstract_js_emitter.mjs
|
|
4755
4805
|
var makeTemplateObjectPolyfill = '(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})';
|
|
4756
4806
|
var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
4757
4807
|
constructor() {
|
|
@@ -4844,7 +4894,7 @@ var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
|
4844
4894
|
}
|
|
4845
4895
|
};
|
|
4846
4896
|
|
|
4847
|
-
// bazel-out/
|
|
4897
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/output_jit_trusted_types.mjs
|
|
4848
4898
|
var policy;
|
|
4849
4899
|
function getPolicy() {
|
|
4850
4900
|
if (policy === void 0) {
|
|
@@ -4882,7 +4932,7 @@ function newTrustedFunctionForJIT(...args) {
|
|
|
4882
4932
|
return fn2.bind(_global);
|
|
4883
4933
|
}
|
|
4884
4934
|
|
|
4885
|
-
// bazel-out/
|
|
4935
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/output_jit.mjs
|
|
4886
4936
|
var JitEvaluator = class {
|
|
4887
4937
|
evaluateStatements(sourceUrl, statements, refResolver, createSourceMaps) {
|
|
4888
4938
|
const converter = new JitEmitterVisitor(refResolver);
|
|
@@ -4973,7 +5023,7 @@ function isUseStrictStatement(statement) {
|
|
|
4973
5023
|
return statement.isEquivalent(literal("use strict").toStmt());
|
|
4974
5024
|
}
|
|
4975
5025
|
|
|
4976
|
-
// bazel-out/
|
|
5026
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_injector_compiler.mjs
|
|
4977
5027
|
function compileInjector(meta) {
|
|
4978
5028
|
const definitionMap = new DefinitionMap();
|
|
4979
5029
|
if (meta.providers !== null) {
|
|
@@ -4990,7 +5040,7 @@ function createInjectorType(meta) {
|
|
|
4990
5040
|
return new ExpressionType(importExpr(Identifiers.InjectorDeclaration, [new ExpressionType(meta.type.type)]));
|
|
4991
5041
|
}
|
|
4992
5042
|
|
|
4993
|
-
// bazel-out/
|
|
5043
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_jit.mjs
|
|
4994
5044
|
var R3JitReflector = class {
|
|
4995
5045
|
constructor(context) {
|
|
4996
5046
|
this.context = context;
|
|
@@ -5006,7 +5056,7 @@ var R3JitReflector = class {
|
|
|
5006
5056
|
}
|
|
5007
5057
|
};
|
|
5008
5058
|
|
|
5009
|
-
// bazel-out/
|
|
5059
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_module_compiler.mjs
|
|
5010
5060
|
var R3SelectorScopeMode;
|
|
5011
5061
|
(function(R3SelectorScopeMode2) {
|
|
5012
5062
|
R3SelectorScopeMode2[R3SelectorScopeMode2["Inline"] = 0] = "Inline";
|
|
@@ -5147,7 +5197,7 @@ function tupleOfTypes(types) {
|
|
|
5147
5197
|
return types.length > 0 ? expressionType(literalArr(typeofTypes)) : NONE_TYPE;
|
|
5148
5198
|
}
|
|
5149
5199
|
|
|
5150
|
-
// bazel-out/
|
|
5200
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_pipe_compiler.mjs
|
|
5151
5201
|
function compilePipeFromMetadata(metadata) {
|
|
5152
5202
|
const definitionMapValues = [];
|
|
5153
5203
|
definitionMapValues.push({ key: "name", value: literal(metadata.pipeName), quoted: false });
|
|
@@ -5168,7 +5218,7 @@ function createPipeType(metadata) {
|
|
|
5168
5218
|
]));
|
|
5169
5219
|
}
|
|
5170
5220
|
|
|
5171
|
-
// bazel-out/
|
|
5221
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/api.mjs
|
|
5172
5222
|
var R3TemplateDependencyKind;
|
|
5173
5223
|
(function(R3TemplateDependencyKind2) {
|
|
5174
5224
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["Directive"] = 0] = "Directive";
|
|
@@ -5176,7 +5226,7 @@ var R3TemplateDependencyKind;
|
|
|
5176
5226
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["NgModule"] = 2] = "NgModule";
|
|
5177
5227
|
})(R3TemplateDependencyKind || (R3TemplateDependencyKind = {}));
|
|
5178
5228
|
|
|
5179
|
-
// bazel-out/
|
|
5229
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/expression_parser/ast.mjs
|
|
5180
5230
|
var ParserError = class {
|
|
5181
5231
|
constructor(message, input, errLocation, ctxLocation) {
|
|
5182
5232
|
this.input = input;
|
|
@@ -5842,7 +5892,7 @@ var BoundElementProperty = class {
|
|
|
5842
5892
|
}
|
|
5843
5893
|
};
|
|
5844
5894
|
|
|
5845
|
-
// bazel-out/
|
|
5895
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/compiler_util/expression_converter.mjs
|
|
5846
5896
|
var _EventHandlerVars = class {
|
|
5847
5897
|
};
|
|
5848
5898
|
var EventHandlerVars = _EventHandlerVars;
|
|
@@ -6483,7 +6533,7 @@ var BuiltinFunctionCall = class extends Call {
|
|
|
6483
6533
|
}
|
|
6484
6534
|
};
|
|
6485
6535
|
|
|
6486
|
-
// bazel-out/
|
|
6536
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/dom_security_schema.mjs
|
|
6487
6537
|
var _SECURITY_SCHEMA;
|
|
6488
6538
|
function SECURITY_SCHEMA() {
|
|
6489
6539
|
if (!_SECURITY_SCHEMA) {
|
|
@@ -6541,7 +6591,7 @@ function isIframeSecuritySensitiveAttr(attrName) {
|
|
|
6541
6591
|
return IFRAME_SECURITY_SENSITIVE_ATTRS.has(attrName.toLowerCase());
|
|
6542
6592
|
}
|
|
6543
6593
|
|
|
6544
|
-
// bazel-out/
|
|
6594
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/shadow_css.mjs
|
|
6545
6595
|
var animationKeywords = /* @__PURE__ */ new Set([
|
|
6546
6596
|
"inherit",
|
|
6547
6597
|
"initial",
|
|
@@ -7012,7 +7062,7 @@ function repeatGroups(groups, multiples) {
|
|
|
7012
7062
|
}
|
|
7013
7063
|
}
|
|
7014
7064
|
|
|
7015
|
-
// bazel-out/
|
|
7065
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/enums.mjs
|
|
7016
7066
|
var OpKind;
|
|
7017
7067
|
(function(OpKind2) {
|
|
7018
7068
|
OpKind2[OpKind2["ListEnd"] = 0] = "ListEnd";
|
|
@@ -7166,8 +7216,13 @@ var DerivedRepeaterVarIdentity;
|
|
|
7166
7216
|
DerivedRepeaterVarIdentity2[DerivedRepeaterVarIdentity2["Even"] = 2] = "Even";
|
|
7167
7217
|
DerivedRepeaterVarIdentity2[DerivedRepeaterVarIdentity2["Odd"] = 3] = "Odd";
|
|
7168
7218
|
})(DerivedRepeaterVarIdentity || (DerivedRepeaterVarIdentity = {}));
|
|
7219
|
+
var I18nContextKind;
|
|
7220
|
+
(function(I18nContextKind2) {
|
|
7221
|
+
I18nContextKind2[I18nContextKind2["RootI18n"] = 0] = "RootI18n";
|
|
7222
|
+
I18nContextKind2[I18nContextKind2["Icu"] = 1] = "Icu";
|
|
7223
|
+
})(I18nContextKind || (I18nContextKind = {}));
|
|
7169
7224
|
|
|
7170
|
-
// bazel-out/
|
|
7225
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/traits.mjs
|
|
7171
7226
|
var ConsumesSlot = Symbol("ConsumesSlot");
|
|
7172
7227
|
var DependsOnSlotContext = Symbol("DependsOnSlotContext");
|
|
7173
7228
|
var ConsumesVarsTrait = Symbol("ConsumesVars");
|
|
@@ -7199,7 +7254,7 @@ function hasUsesVarOffsetTrait(expr) {
|
|
|
7199
7254
|
return expr[UsesVarOffset] === true;
|
|
7200
7255
|
}
|
|
7201
7256
|
|
|
7202
|
-
// bazel-out/
|
|
7257
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/shared.mjs
|
|
7203
7258
|
function createStatementOp(statement) {
|
|
7204
7259
|
return __spreadValues({
|
|
7205
7260
|
kind: OpKind.Statement,
|
|
@@ -7221,7 +7276,7 @@ var NEW_OP = {
|
|
|
7221
7276
|
next: null
|
|
7222
7277
|
};
|
|
7223
7278
|
|
|
7224
|
-
// bazel-out/
|
|
7279
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/update.mjs
|
|
7225
7280
|
function createInterpolateTextOp(xref, interpolation, i18nPlaceholders, sourceSpan) {
|
|
7226
7281
|
return __spreadValues(__spreadValues(__spreadValues({
|
|
7227
7282
|
kind: OpKind.InterpolateText,
|
|
@@ -7370,7 +7425,7 @@ function createI18nApplyOp(target, handle, sourceSpan) {
|
|
|
7370
7425
|
}, NEW_OP);
|
|
7371
7426
|
}
|
|
7372
7427
|
|
|
7373
|
-
// bazel-out/
|
|
7428
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/expression.mjs
|
|
7374
7429
|
var _a;
|
|
7375
7430
|
var _b;
|
|
7376
7431
|
var _c;
|
|
@@ -8221,7 +8276,7 @@ function isStringLiteral(expr) {
|
|
|
8221
8276
|
return expr instanceof LiteralExpr && typeof expr.value === "string";
|
|
8222
8277
|
}
|
|
8223
8278
|
|
|
8224
|
-
// bazel-out/
|
|
8279
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/operations.mjs
|
|
8225
8280
|
var _OpList = class {
|
|
8226
8281
|
constructor() {
|
|
8227
8282
|
this.debugListId = _OpList.nextListId++;
|
|
@@ -8412,14 +8467,14 @@ var OpList = _OpList;
|
|
|
8412
8467
|
_OpList.nextListId = 0;
|
|
8413
8468
|
})();
|
|
8414
8469
|
|
|
8415
|
-
// bazel-out/
|
|
8470
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/handle.mjs
|
|
8416
8471
|
var SlotHandle = class {
|
|
8417
8472
|
constructor() {
|
|
8418
8473
|
this.slot = null;
|
|
8419
8474
|
}
|
|
8420
8475
|
};
|
|
8421
8476
|
|
|
8422
|
-
// bazel-out/
|
|
8477
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/create.mjs
|
|
8423
8478
|
var elementContainerOpKinds = /* @__PURE__ */ new Set([
|
|
8424
8479
|
OpKind.Element,
|
|
8425
8480
|
OpKind.ElementStart,
|
|
@@ -8651,9 +8706,10 @@ function createIcuEndOp(xref) {
|
|
|
8651
8706
|
xref
|
|
8652
8707
|
}, NEW_OP);
|
|
8653
8708
|
}
|
|
8654
|
-
function createI18nContextOp(xref, i18nBlock, message, sourceSpan) {
|
|
8709
|
+
function createI18nContextOp(contextKind, xref, i18nBlock, message, sourceSpan) {
|
|
8655
8710
|
return __spreadValues({
|
|
8656
8711
|
kind: OpKind.I18nContext,
|
|
8712
|
+
contextKind,
|
|
8657
8713
|
xref,
|
|
8658
8714
|
i18nBlock,
|
|
8659
8715
|
message,
|
|
@@ -8663,7 +8719,7 @@ function createI18nContextOp(xref, i18nBlock, message, sourceSpan) {
|
|
|
8663
8719
|
}, NEW_OP);
|
|
8664
8720
|
}
|
|
8665
8721
|
|
|
8666
|
-
// bazel-out/
|
|
8722
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/host.mjs
|
|
8667
8723
|
function createHostPropertyOp(name, expression, isAnimationTrigger, sourceSpan) {
|
|
8668
8724
|
return __spreadValues(__spreadValues({
|
|
8669
8725
|
kind: OpKind.HostProperty,
|
|
@@ -8674,10 +8730,10 @@ function createHostPropertyOp(name, expression, isAnimationTrigger, sourceSpan)
|
|
|
8674
8730
|
}, TRAIT_CONSUMES_VARS), NEW_OP);
|
|
8675
8731
|
}
|
|
8676
8732
|
|
|
8677
|
-
// bazel-out/
|
|
8733
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/variable.mjs
|
|
8678
8734
|
var CTX_REF = "CTX_REF_MARKER";
|
|
8679
8735
|
|
|
8680
|
-
// bazel-out/
|
|
8736
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/compilation.mjs
|
|
8681
8737
|
var CompilationJobKind;
|
|
8682
8738
|
(function(CompilationJobKind2) {
|
|
8683
8739
|
CompilationJobKind2[CompilationJobKind2["Tmpl"] = 0] = "Tmpl";
|
|
@@ -8784,7 +8840,7 @@ var HostBindingCompilationUnit = class extends CompilationUnit {
|
|
|
8784
8840
|
}
|
|
8785
8841
|
};
|
|
8786
8842
|
|
|
8787
|
-
// bazel-out/
|
|
8843
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/any_cast.mjs
|
|
8788
8844
|
function deleteAnyCasts(job) {
|
|
8789
8845
|
for (const unit of job.units) {
|
|
8790
8846
|
for (const op of unit.ops()) {
|
|
@@ -8802,7 +8858,7 @@ function removeAnys(e) {
|
|
|
8802
8858
|
return e;
|
|
8803
8859
|
}
|
|
8804
8860
|
|
|
8805
|
-
// bazel-out/
|
|
8861
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/apply_i18n_expressions.mjs
|
|
8806
8862
|
function applyI18nExpressions(job) {
|
|
8807
8863
|
const i18nContexts = /* @__PURE__ */ new Map();
|
|
8808
8864
|
for (const unit of job.units) {
|
|
@@ -8833,10 +8889,9 @@ function needsApplication(i18nContexts, op) {
|
|
|
8833
8889
|
return false;
|
|
8834
8890
|
}
|
|
8835
8891
|
|
|
8836
|
-
// bazel-out/
|
|
8892
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/assign_i18n_slot_dependencies.mjs
|
|
8837
8893
|
function assignI18nSlotDependencies(job) {
|
|
8838
8894
|
const i18nLastSlotConsumers = /* @__PURE__ */ new Map();
|
|
8839
|
-
const i18nContexts = /* @__PURE__ */ new Map();
|
|
8840
8895
|
let lastSlotConsumer = null;
|
|
8841
8896
|
let currentI18nOp = null;
|
|
8842
8897
|
for (const unit of job.units) {
|
|
@@ -8852,21 +8907,17 @@ function assignI18nSlotDependencies(job) {
|
|
|
8852
8907
|
i18nLastSlotConsumers.set(currentI18nOp.xref, lastSlotConsumer);
|
|
8853
8908
|
currentI18nOp = null;
|
|
8854
8909
|
break;
|
|
8855
|
-
case OpKind.I18nContext:
|
|
8856
|
-
i18nContexts.set(op.xref, op);
|
|
8857
|
-
break;
|
|
8858
8910
|
}
|
|
8859
8911
|
}
|
|
8860
8912
|
for (const op of unit.update) {
|
|
8861
8913
|
if (op.kind === OpKind.I18nExpression) {
|
|
8862
|
-
|
|
8863
|
-
op.target = i18nLastSlotConsumers.get(i18nContext.i18nBlock);
|
|
8914
|
+
op.target = i18nLastSlotConsumers.get(op.target);
|
|
8864
8915
|
}
|
|
8865
8916
|
}
|
|
8866
8917
|
}
|
|
8867
8918
|
}
|
|
8868
8919
|
|
|
8869
|
-
// bazel-out/
|
|
8920
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/util/elements.mjs
|
|
8870
8921
|
function createOpXrefMap(unit) {
|
|
8871
8922
|
const map = /* @__PURE__ */ new Map();
|
|
8872
8923
|
for (const op of unit.create) {
|
|
@@ -8878,7 +8929,7 @@ function createOpXrefMap(unit) {
|
|
|
8878
8929
|
return map;
|
|
8879
8930
|
}
|
|
8880
8931
|
|
|
8881
|
-
// bazel-out/
|
|
8932
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/attribute_extraction.mjs
|
|
8882
8933
|
function extractAttributes(job) {
|
|
8883
8934
|
for (const unit of job.units) {
|
|
8884
8935
|
const elements = createOpXrefMap(unit);
|
|
@@ -8945,7 +8996,7 @@ function extractAttributeOp(unit, op, elements) {
|
|
|
8945
8996
|
}
|
|
8946
8997
|
}
|
|
8947
8998
|
|
|
8948
|
-
// bazel-out/
|
|
8999
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/binding_specialization.mjs
|
|
8949
9000
|
function lookupElement2(elements, xref) {
|
|
8950
9001
|
const el = elements.get(xref);
|
|
8951
9002
|
if (el === void 0) {
|
|
@@ -8995,7 +9046,7 @@ function specializeBindings(job) {
|
|
|
8995
9046
|
}
|
|
8996
9047
|
}
|
|
8997
9048
|
|
|
8998
|
-
// bazel-out/
|
|
9049
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/chaining.mjs
|
|
8999
9050
|
var CHAINABLE = /* @__PURE__ */ new Set([
|
|
9000
9051
|
Identifiers.attribute,
|
|
9001
9052
|
Identifiers.classProp,
|
|
@@ -9061,7 +9112,7 @@ function chainOperationsInList(opList) {
|
|
|
9061
9112
|
}
|
|
9062
9113
|
}
|
|
9063
9114
|
|
|
9064
|
-
// bazel-out/
|
|
9115
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/collapse_singleton_interpolations.mjs
|
|
9065
9116
|
function collapseSingletonInterpolations(job) {
|
|
9066
9117
|
for (const unit of job.units) {
|
|
9067
9118
|
for (const op of unit.update) {
|
|
@@ -9073,7 +9124,7 @@ function collapseSingletonInterpolations(job) {
|
|
|
9073
9124
|
}
|
|
9074
9125
|
}
|
|
9075
9126
|
|
|
9076
|
-
// bazel-out/
|
|
9127
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/conditionals.mjs
|
|
9077
9128
|
function generateConditionalExpressions(job) {
|
|
9078
9129
|
for (const unit of job.units) {
|
|
9079
9130
|
for (const op of unit.ops()) {
|
|
@@ -9110,40 +9161,7 @@ function generateConditionalExpressions(job) {
|
|
|
9110
9161
|
}
|
|
9111
9162
|
}
|
|
9112
9163
|
|
|
9113
|
-
// bazel-out/
|
|
9114
|
-
var TagContentType;
|
|
9115
|
-
(function(TagContentType2) {
|
|
9116
|
-
TagContentType2[TagContentType2["RAW_TEXT"] = 0] = "RAW_TEXT";
|
|
9117
|
-
TagContentType2[TagContentType2["ESCAPABLE_RAW_TEXT"] = 1] = "ESCAPABLE_RAW_TEXT";
|
|
9118
|
-
TagContentType2[TagContentType2["PARSABLE_DATA"] = 2] = "PARSABLE_DATA";
|
|
9119
|
-
})(TagContentType || (TagContentType = {}));
|
|
9120
|
-
function splitNsName(elementName) {
|
|
9121
|
-
if (elementName[0] != ":") {
|
|
9122
|
-
return [null, elementName];
|
|
9123
|
-
}
|
|
9124
|
-
const colonIndex = elementName.indexOf(":", 1);
|
|
9125
|
-
if (colonIndex === -1) {
|
|
9126
|
-
throw new Error(`Unsupported format "${elementName}" expecting ":namespace:name"`);
|
|
9127
|
-
}
|
|
9128
|
-
return [elementName.slice(1, colonIndex), elementName.slice(colonIndex + 1)];
|
|
9129
|
-
}
|
|
9130
|
-
function isNgContainer(tagName) {
|
|
9131
|
-
return splitNsName(tagName)[1] === "ng-container";
|
|
9132
|
-
}
|
|
9133
|
-
function isNgContent(tagName) {
|
|
9134
|
-
return splitNsName(tagName)[1] === "ng-content";
|
|
9135
|
-
}
|
|
9136
|
-
function isNgTemplate(tagName) {
|
|
9137
|
-
return splitNsName(tagName)[1] === "ng-template";
|
|
9138
|
-
}
|
|
9139
|
-
function getNsPrefix(fullName) {
|
|
9140
|
-
return fullName === null ? null : splitNsName(fullName)[0];
|
|
9141
|
-
}
|
|
9142
|
-
function mergeNsAndName(prefix, localName) {
|
|
9143
|
-
return prefix ? `:${prefix}:${localName}` : localName;
|
|
9144
|
-
}
|
|
9145
|
-
|
|
9146
|
-
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/conversion.mjs
|
|
9164
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/conversion.mjs
|
|
9147
9165
|
var BINARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
9148
9166
|
["&&", BinaryOperator.And],
|
|
9149
9167
|
[">", BinaryOperator.Bigger],
|
|
@@ -9193,7 +9211,7 @@ function literalOrArrayLiteral(value) {
|
|
|
9193
9211
|
return literal(value);
|
|
9194
9212
|
}
|
|
9195
9213
|
|
|
9196
|
-
// bazel-out/
|
|
9214
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/const_collection.mjs
|
|
9197
9215
|
function collectElementConsts(job) {
|
|
9198
9216
|
const allElementAttributes = /* @__PURE__ */ new Map();
|
|
9199
9217
|
for (const unit of job.units) {
|
|
@@ -9327,7 +9345,7 @@ function serializeAttributes({ attributes, bindings, classes, i18n: i18n2, proje
|
|
|
9327
9345
|
return literalArr(attrArray);
|
|
9328
9346
|
}
|
|
9329
9347
|
|
|
9330
|
-
// bazel-out/
|
|
9348
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_defer_deps_fns.mjs
|
|
9331
9349
|
function createDeferDepsFns(job) {
|
|
9332
9350
|
for (const unit of job.units) {
|
|
9333
9351
|
for (const op of unit.create) {
|
|
@@ -9355,18 +9373,22 @@ function createDeferDepsFns(job) {
|
|
|
9355
9373
|
}
|
|
9356
9374
|
}
|
|
9357
9375
|
|
|
9358
|
-
// bazel-out/
|
|
9376
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_i18n_contexts.mjs
|
|
9359
9377
|
function createI18nContexts(job) {
|
|
9378
|
+
const rootContexts = /* @__PURE__ */ new Map();
|
|
9360
9379
|
let currentI18nOp = null;
|
|
9361
9380
|
let xref;
|
|
9362
9381
|
for (const unit of job.units) {
|
|
9363
9382
|
for (const op of unit.create) {
|
|
9364
9383
|
switch (op.kind) {
|
|
9365
9384
|
case OpKind.I18nStart:
|
|
9366
|
-
xref = job.allocateXrefId();
|
|
9367
|
-
unit.create.push(createI18nContextOp(xref, op.xref, op.message, null));
|
|
9368
|
-
op.context = xref;
|
|
9369
9385
|
currentI18nOp = op;
|
|
9386
|
+
if (op.xref === op.root) {
|
|
9387
|
+
xref = job.allocateXrefId();
|
|
9388
|
+
unit.create.push(createI18nContextOp(I18nContextKind.RootI18n, xref, op.xref, op.message, null));
|
|
9389
|
+
op.context = xref;
|
|
9390
|
+
rootContexts.set(op.xref, xref);
|
|
9391
|
+
}
|
|
9370
9392
|
break;
|
|
9371
9393
|
case OpKind.I18nEnd:
|
|
9372
9394
|
currentI18nOp = null;
|
|
@@ -9377,7 +9399,7 @@ function createI18nContexts(job) {
|
|
|
9377
9399
|
}
|
|
9378
9400
|
if (op.message.id !== currentI18nOp.message.id) {
|
|
9379
9401
|
xref = job.allocateXrefId();
|
|
9380
|
-
unit.create.push(createI18nContextOp(xref, currentI18nOp.xref, op.message, null));
|
|
9402
|
+
unit.create.push(createI18nContextOp(I18nContextKind.Icu, xref, currentI18nOp.xref, op.message, null));
|
|
9381
9403
|
op.context = xref;
|
|
9382
9404
|
} else {
|
|
9383
9405
|
op.context = currentI18nOp.context;
|
|
@@ -9386,9 +9408,16 @@ function createI18nContexts(job) {
|
|
|
9386
9408
|
}
|
|
9387
9409
|
}
|
|
9388
9410
|
}
|
|
9411
|
+
for (const unit of job.units) {
|
|
9412
|
+
for (const op of unit.create) {
|
|
9413
|
+
if (op.kind === OpKind.I18nStart && op.xref !== op.root) {
|
|
9414
|
+
op.context = rootContexts.get(op.root);
|
|
9415
|
+
}
|
|
9416
|
+
}
|
|
9417
|
+
}
|
|
9389
9418
|
}
|
|
9390
9419
|
|
|
9391
|
-
// bazel-out/
|
|
9420
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_configs.mjs
|
|
9392
9421
|
function configureDeferInstructions(job) {
|
|
9393
9422
|
for (const unit of job.units) {
|
|
9394
9423
|
for (const op of unit.create) {
|
|
@@ -9405,7 +9434,7 @@ function configureDeferInstructions(job) {
|
|
|
9405
9434
|
}
|
|
9406
9435
|
}
|
|
9407
9436
|
|
|
9408
|
-
// bazel-out/
|
|
9437
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_resolve_targets.mjs
|
|
9409
9438
|
function resolveDeferTargetNames(job) {
|
|
9410
9439
|
const scopes = /* @__PURE__ */ new Map();
|
|
9411
9440
|
function getScopeForView2(view) {
|
|
@@ -9499,7 +9528,7 @@ var Scope = class {
|
|
|
9499
9528
|
}
|
|
9500
9529
|
};
|
|
9501
9530
|
|
|
9502
|
-
// bazel-out/
|
|
9531
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/empty_elements.mjs
|
|
9503
9532
|
var REPLACEMENTS = /* @__PURE__ */ new Map([
|
|
9504
9533
|
[OpKind.ElementEnd, [OpKind.ElementStart, OpKind.Element]],
|
|
9505
9534
|
[OpKind.ContainerEnd, [OpKind.ContainerStart, OpKind.Container]],
|
|
@@ -9526,7 +9555,7 @@ function collapseEmptyInstructions(job) {
|
|
|
9526
9555
|
}
|
|
9527
9556
|
}
|
|
9528
9557
|
|
|
9529
|
-
// bazel-out/
|
|
9558
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/expand_safe_reads.mjs
|
|
9530
9559
|
function expandSafeReads(job) {
|
|
9531
9560
|
for (const unit of job.units) {
|
|
9532
9561
|
for (const op of unit.ops()) {
|
|
@@ -9662,7 +9691,7 @@ function ternaryTransform(e) {
|
|
|
9662
9691
|
return new ConditionalExpr(new BinaryOperatorExpr(BinaryOperator.Equals, e.guard, NULL_EXPR), NULL_EXPR, e.expr);
|
|
9663
9692
|
}
|
|
9664
9693
|
|
|
9665
|
-
// bazel-out/
|
|
9694
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/extract_i18n_messages.mjs
|
|
9666
9695
|
var ESCAPE = "\uFFFD";
|
|
9667
9696
|
var ELEMENT_MARKER = "#";
|
|
9668
9697
|
var TEMPLATE_MARKER = "*";
|
|
@@ -9673,7 +9702,7 @@ var LIST_END_MARKER = "]";
|
|
|
9673
9702
|
var LIST_DELIMITER = "|";
|
|
9674
9703
|
function extractI18nMessages(job) {
|
|
9675
9704
|
const i18nContexts = /* @__PURE__ */ new Map();
|
|
9676
|
-
const
|
|
9705
|
+
const i18nBlocks = /* @__PURE__ */ new Map();
|
|
9677
9706
|
for (const unit of job.units) {
|
|
9678
9707
|
for (const op of unit.create) {
|
|
9679
9708
|
switch (op.kind) {
|
|
@@ -9681,7 +9710,7 @@ function extractI18nMessages(job) {
|
|
|
9681
9710
|
i18nContexts.set(op.xref, op);
|
|
9682
9711
|
break;
|
|
9683
9712
|
case OpKind.I18nStart:
|
|
9684
|
-
|
|
9713
|
+
i18nBlocks.set(op.xref, op);
|
|
9685
9714
|
break;
|
|
9686
9715
|
}
|
|
9687
9716
|
}
|
|
@@ -9706,11 +9735,12 @@ function extractI18nMessages(job) {
|
|
|
9706
9735
|
if (!op.context) {
|
|
9707
9736
|
throw Error("ICU op should have its context set.");
|
|
9708
9737
|
}
|
|
9709
|
-
|
|
9710
|
-
|
|
9738
|
+
const i18nContext = i18nContexts.get(op.context);
|
|
9739
|
+
if (i18nContext.contextKind === I18nContextKind.Icu) {
|
|
9711
9740
|
const subMessage = createI18nMessage(job, i18nContext, op.messagePlaceholder);
|
|
9712
9741
|
unit.create.push(subMessage);
|
|
9713
|
-
const
|
|
9742
|
+
const rootI18nId = i18nBlocks.get(i18nContext.i18nBlock).root;
|
|
9743
|
+
const parentMessage = i18nBlockMessages.get(rootI18nId);
|
|
9714
9744
|
parentMessage == null ? void 0 : parentMessage.subMessages.push(subMessage.xref);
|
|
9715
9745
|
}
|
|
9716
9746
|
OpList.remove(op);
|
|
@@ -9723,30 +9753,67 @@ function extractI18nMessages(job) {
|
|
|
9723
9753
|
}
|
|
9724
9754
|
}
|
|
9725
9755
|
function createI18nMessage(job, context, messagePlaceholder) {
|
|
9726
|
-
let needsPostprocessing = context.
|
|
9727
|
-
|
|
9728
|
-
|
|
9729
|
-
|
|
9730
|
-
}
|
|
9731
|
-
}
|
|
9732
|
-
return createI18nMessageOp(job.allocateXrefId(), context.i18nBlock, context.message, messagePlaceholder != null ? messagePlaceholder : null, formatParams(context.params), formatParams(context.postprocessingParams), needsPostprocessing);
|
|
9756
|
+
let [formattedParams, needsPostprocessing] = formatParams(context.params);
|
|
9757
|
+
const [formattedPostprocessingParams] = formatParams(context.postprocessingParams);
|
|
9758
|
+
needsPostprocessing || (needsPostprocessing = formattedPostprocessingParams.size > 0);
|
|
9759
|
+
return createI18nMessageOp(job.allocateXrefId(), context.i18nBlock, context.message, messagePlaceholder != null ? messagePlaceholder : null, formattedParams, formattedPostprocessingParams, needsPostprocessing);
|
|
9733
9760
|
}
|
|
9734
9761
|
function formatParams(params) {
|
|
9735
|
-
const
|
|
9762
|
+
const formattedParams = /* @__PURE__ */ new Map();
|
|
9763
|
+
let needsPostprocessing = false;
|
|
9736
9764
|
for (const [placeholder, placeholderValues] of params) {
|
|
9737
|
-
const serializedValues = formatParamValues(placeholderValues);
|
|
9765
|
+
const [serializedValues, paramNeedsPostprocessing] = formatParamValues(placeholderValues);
|
|
9766
|
+
needsPostprocessing || (needsPostprocessing = paramNeedsPostprocessing);
|
|
9738
9767
|
if (serializedValues !== null) {
|
|
9739
|
-
|
|
9768
|
+
formattedParams.set(placeholder, literal(serializedValues));
|
|
9740
9769
|
}
|
|
9741
9770
|
}
|
|
9742
|
-
return
|
|
9771
|
+
return [formattedParams, needsPostprocessing];
|
|
9743
9772
|
}
|
|
9744
9773
|
function formatParamValues(values) {
|
|
9745
9774
|
if (values.length === 0) {
|
|
9746
|
-
return null;
|
|
9775
|
+
return [null, false];
|
|
9747
9776
|
}
|
|
9777
|
+
collapseElementTemplatePairs(values);
|
|
9748
9778
|
const serializedValues = values.map((value) => formatValue(value));
|
|
9749
|
-
return serializedValues.length === 1 ? serializedValues[0] : `${LIST_START_MARKER}${serializedValues.join(LIST_DELIMITER)}${LIST_END_MARKER}
|
|
9779
|
+
return serializedValues.length === 1 ? [serializedValues[0], false] : [`${LIST_START_MARKER}${serializedValues.join(LIST_DELIMITER)}${LIST_END_MARKER}`, true];
|
|
9780
|
+
}
|
|
9781
|
+
function collapseElementTemplatePairs(values) {
|
|
9782
|
+
var _a2;
|
|
9783
|
+
const valueIndiciesBySubTemplateIndex = /* @__PURE__ */ new Map();
|
|
9784
|
+
for (let i = 0; i < values.length; i++) {
|
|
9785
|
+
const value = values[i];
|
|
9786
|
+
if (value.subTemplateIndex !== null && value.flags & (I18nParamValueFlags.ElementTag | I18nParamValueFlags.TemplateTag)) {
|
|
9787
|
+
const valueIndicies = (_a2 = valueIndiciesBySubTemplateIndex.get(value.subTemplateIndex)) != null ? _a2 : [];
|
|
9788
|
+
valueIndicies.push(i);
|
|
9789
|
+
valueIndiciesBySubTemplateIndex.set(value.subTemplateIndex, valueIndicies);
|
|
9790
|
+
}
|
|
9791
|
+
}
|
|
9792
|
+
for (const [subTemplateIndex, valueIndicies] of valueIndiciesBySubTemplateIndex) {
|
|
9793
|
+
if (valueIndicies.length > 1) {
|
|
9794
|
+
const elementIndex = valueIndicies.find((index) => values[index].flags & I18nParamValueFlags.ElementTag);
|
|
9795
|
+
const templateIndex = valueIndicies.find((index) => values[index].flags & I18nParamValueFlags.TemplateTag);
|
|
9796
|
+
if (elementIndex !== void 0 && templateIndex !== void 0) {
|
|
9797
|
+
const elementValue = values[elementIndex];
|
|
9798
|
+
const templateValue = values[templateIndex];
|
|
9799
|
+
let compundValue;
|
|
9800
|
+
if (elementValue.flags & I18nParamValueFlags.OpenTag && elementValue.flags & I18nParamValueFlags.CloseTag) {
|
|
9801
|
+
compundValue = `${formatValue(templateValue)}${formatValue(elementValue)}${formatValue(templateValue)}`;
|
|
9802
|
+
} else if (elementValue.flags & I18nParamValueFlags.OpenTag) {
|
|
9803
|
+
compundValue = `${formatValue(templateValue)}${formatValue(elementValue)}`;
|
|
9804
|
+
} else {
|
|
9805
|
+
compundValue = `${formatValue(elementValue)}${formatValue(templateValue)}`;
|
|
9806
|
+
}
|
|
9807
|
+
values.splice(elementIndex, 1, { value: compundValue, subTemplateIndex, flags: I18nParamValueFlags.None });
|
|
9808
|
+
values.splice(templateIndex, 1, null);
|
|
9809
|
+
}
|
|
9810
|
+
}
|
|
9811
|
+
}
|
|
9812
|
+
for (let i = values.length - 1; i >= 0; i--) {
|
|
9813
|
+
if (values[i] === null) {
|
|
9814
|
+
values.splice(i, 1);
|
|
9815
|
+
}
|
|
9816
|
+
}
|
|
9750
9817
|
}
|
|
9751
9818
|
function formatValue(value) {
|
|
9752
9819
|
if (value.flags === I18nParamValueFlags.None) {
|
|
@@ -9769,7 +9836,7 @@ function formatValue(value) {
|
|
|
9769
9836
|
return `${ESCAPE}${closeMarker}${tagMarker}${value.value}${context}${ESCAPE}`;
|
|
9770
9837
|
}
|
|
9771
9838
|
|
|
9772
|
-
// bazel-out/
|
|
9839
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_advance.mjs
|
|
9773
9840
|
function generateAdvance(job) {
|
|
9774
9841
|
for (const unit of job.units) {
|
|
9775
9842
|
const slotMap = /* @__PURE__ */ new Map();
|
|
@@ -9801,7 +9868,7 @@ function generateAdvance(job) {
|
|
|
9801
9868
|
}
|
|
9802
9869
|
}
|
|
9803
9870
|
|
|
9804
|
-
// bazel-out/
|
|
9871
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_projection_def.mjs
|
|
9805
9872
|
function generateProjectionDefs(job) {
|
|
9806
9873
|
const share = job.compatibility === CompatibilityMode.TemplateDefinitionBuilder;
|
|
9807
9874
|
const selectors = [];
|
|
@@ -9825,7 +9892,7 @@ function generateProjectionDefs(job) {
|
|
|
9825
9892
|
}
|
|
9826
9893
|
}
|
|
9827
9894
|
|
|
9828
|
-
// bazel-out/
|
|
9895
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_variables.mjs
|
|
9829
9896
|
function generateVariables(job) {
|
|
9830
9897
|
recursivelyProcessView(job.root, null);
|
|
9831
9898
|
}
|
|
@@ -9913,7 +9980,7 @@ function generateVariablesInScopeForView(view, scope) {
|
|
|
9913
9980
|
return newOps;
|
|
9914
9981
|
}
|
|
9915
9982
|
|
|
9916
|
-
// bazel-out/
|
|
9983
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/has_const_expression_collection.mjs
|
|
9917
9984
|
function collectConstExpressions(job) {
|
|
9918
9985
|
for (const unit of job.units) {
|
|
9919
9986
|
for (const op of unit.ops()) {
|
|
@@ -9927,7 +9994,7 @@ function collectConstExpressions(job) {
|
|
|
9927
9994
|
}
|
|
9928
9995
|
}
|
|
9929
9996
|
|
|
9930
|
-
// bazel-out/
|
|
9997
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/host_style_property_parsing.mjs
|
|
9931
9998
|
var STYLE_DOT = "style.";
|
|
9932
9999
|
var CLASS_DOT = "class.";
|
|
9933
10000
|
var STYLE_BANG = "style!";
|
|
@@ -9985,7 +10052,7 @@ function parseProperty(name) {
|
|
|
9985
10052
|
return { property: property2, suffix };
|
|
9986
10053
|
}
|
|
9987
10054
|
|
|
9988
|
-
// bazel-out/
|
|
10055
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/map_util.mjs
|
|
9989
10056
|
function mapLiteral(obj, quoted = false) {
|
|
9990
10057
|
return literalMap(Object.keys(obj).map((key) => ({
|
|
9991
10058
|
key,
|
|
@@ -9994,7 +10061,7 @@ function mapLiteral(obj, quoted = false) {
|
|
|
9994
10061
|
})));
|
|
9995
10062
|
}
|
|
9996
10063
|
|
|
9997
|
-
// bazel-out/
|
|
10064
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/icu_serializer.mjs
|
|
9998
10065
|
var IcuSerializerVisitor = class {
|
|
9999
10066
|
visitText(text2) {
|
|
10000
10067
|
return text2.value;
|
|
@@ -10028,7 +10095,7 @@ function serializeIcuNode(icu) {
|
|
|
10028
10095
|
return icu.visit(serializer);
|
|
10029
10096
|
}
|
|
10030
10097
|
|
|
10031
|
-
// bazel-out/
|
|
10098
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/expression_parser/lexer.mjs
|
|
10032
10099
|
var TokenType;
|
|
10033
10100
|
(function(TokenType2) {
|
|
10034
10101
|
TokenType2[TokenType2["Character"] = 0] = "Character";
|
|
@@ -10389,7 +10456,7 @@ function parseIntAutoRadix(text2) {
|
|
|
10389
10456
|
return result;
|
|
10390
10457
|
}
|
|
10391
10458
|
|
|
10392
|
-
// bazel-out/
|
|
10459
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/expression_parser/parser.mjs
|
|
10393
10460
|
var SplitInterpolation = class {
|
|
10394
10461
|
constructor(strings, expressions, offsets) {
|
|
10395
10462
|
this.strings = strings;
|
|
@@ -11283,7 +11350,7 @@ function getIndexMapForOriginalTemplate(interpolatedTokens) {
|
|
|
11283
11350
|
return offsetMap;
|
|
11284
11351
|
}
|
|
11285
11352
|
|
|
11286
|
-
// bazel-out/
|
|
11353
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/ast.mjs
|
|
11287
11354
|
var NodeWithI18n = class {
|
|
11288
11355
|
constructor(sourceSpan, i18n2) {
|
|
11289
11356
|
this.sourceSpan = sourceSpan;
|
|
@@ -11435,11 +11502,11 @@ var RecursiveVisitor = class {
|
|
|
11435
11502
|
}
|
|
11436
11503
|
};
|
|
11437
11504
|
|
|
11438
|
-
// bazel-out/
|
|
11505
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/element_schema_registry.mjs
|
|
11439
11506
|
var ElementSchemaRegistry = class {
|
|
11440
11507
|
};
|
|
11441
11508
|
|
|
11442
|
-
// bazel-out/
|
|
11509
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/dom_element_schema_registry.mjs
|
|
11443
11510
|
var BOOLEAN = "boolean";
|
|
11444
11511
|
var NUMBER = "number";
|
|
11445
11512
|
var STRING = "string";
|
|
@@ -11792,7 +11859,7 @@ function _isPixelDimensionStyle(prop) {
|
|
|
11792
11859
|
}
|
|
11793
11860
|
}
|
|
11794
11861
|
|
|
11795
|
-
// bazel-out/
|
|
11862
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/html_tags.mjs
|
|
11796
11863
|
var HtmlTagDefinition = class {
|
|
11797
11864
|
constructor({ closedByChildren, implicitNamespacePrefix, contentType = TagContentType.PARSABLE_DATA, closedByParent = false, isVoid = false, ignoreFirstLf = false, preventNamespaceInheritance = false, canSelfClose = false } = {}) {
|
|
11798
11865
|
this.closedByChildren = {};
|
|
@@ -11910,7 +11977,7 @@ function getHtmlTagDefinition(tagName) {
|
|
|
11910
11977
|
return (_b2 = (_a2 = TAG_DEFINITIONS[tagName]) != null ? _a2 : TAG_DEFINITIONS[tagName.toLowerCase()]) != null ? _b2 : DEFAULT_TAG_DEFINITION;
|
|
11911
11978
|
}
|
|
11912
11979
|
|
|
11913
|
-
// bazel-out/
|
|
11980
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/placeholder.mjs
|
|
11914
11981
|
var TAG_TO_PLACEHOLDER_NAMES = {
|
|
11915
11982
|
"A": "LINK",
|
|
11916
11983
|
"B": "BOLD_TEXT",
|
|
@@ -12032,7 +12099,7 @@ var PlaceholderRegistry = class {
|
|
|
12032
12099
|
}
|
|
12033
12100
|
};
|
|
12034
12101
|
|
|
12035
|
-
// bazel-out/
|
|
12102
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/i18n_parser.mjs
|
|
12036
12103
|
var _expParser = new Parser(new Lexer());
|
|
12037
12104
|
function createI18nMessageFactory(interpolationConfig, containerBlocks) {
|
|
12038
12105
|
const visitor = new _I18nVisitor(_expParser, interpolationConfig, containerBlocks);
|
|
@@ -12211,14 +12278,14 @@ function extractPlaceholderName(input) {
|
|
|
12211
12278
|
return input.split(_CUSTOM_PH_EXP)[2];
|
|
12212
12279
|
}
|
|
12213
12280
|
|
|
12214
|
-
// bazel-out/
|
|
12281
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/parse_util.mjs
|
|
12215
12282
|
var I18nError = class extends ParseError {
|
|
12216
12283
|
constructor(span, msg) {
|
|
12217
12284
|
super(span, msg);
|
|
12218
12285
|
}
|
|
12219
12286
|
};
|
|
12220
12287
|
|
|
12221
|
-
// bazel-out/
|
|
12288
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/entities.mjs
|
|
12222
12289
|
var NAMED_ENTITIES = {
|
|
12223
12290
|
"AElig": "\xC6",
|
|
12224
12291
|
"AMP": "&",
|
|
@@ -14349,7 +14416,7 @@ var NAMED_ENTITIES = {
|
|
|
14349
14416
|
var NGSP_UNICODE = "\uE500";
|
|
14350
14417
|
NAMED_ENTITIES["ngsp"] = NGSP_UNICODE;
|
|
14351
14418
|
|
|
14352
|
-
// bazel-out/
|
|
14419
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/lexer.mjs
|
|
14353
14420
|
var TokenError = class extends ParseError {
|
|
14354
14421
|
constructor(errorMsg, tokenType, span) {
|
|
14355
14422
|
super(span, errorMsg);
|
|
@@ -15270,7 +15337,7 @@ var CursorError = class {
|
|
|
15270
15337
|
}
|
|
15271
15338
|
};
|
|
15272
15339
|
|
|
15273
|
-
// bazel-out/
|
|
15340
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/parser.mjs
|
|
15274
15341
|
var TreeError = class extends ParseError {
|
|
15275
15342
|
static create(elementName, span, msg) {
|
|
15276
15343
|
return new TreeError(elementName, span, msg);
|
|
@@ -15654,7 +15721,7 @@ function decodeEntity(match, entity) {
|
|
|
15654
15721
|
return match;
|
|
15655
15722
|
}
|
|
15656
15723
|
|
|
15657
|
-
// bazel-out/
|
|
15724
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/trusted_types_sinks.mjs
|
|
15658
15725
|
var TRUSTED_TYPES_SINKS = /* @__PURE__ */ new Set([
|
|
15659
15726
|
"iframe|srcdoc",
|
|
15660
15727
|
"*|innerhtml",
|
|
@@ -15669,7 +15736,7 @@ function isTrustedTypesSink(tagName, propName) {
|
|
|
15669
15736
|
return TRUSTED_TYPES_SINKS.has(tagName + "|" + propName) || TRUSTED_TYPES_SINKS.has("*|" + propName);
|
|
15670
15737
|
}
|
|
15671
15738
|
|
|
15672
|
-
// bazel-out/
|
|
15739
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/meta.mjs
|
|
15673
15740
|
var setI18nRefs = (htmlNode, i18nNode) => {
|
|
15674
15741
|
if (htmlNode instanceof NodeWithI18n) {
|
|
15675
15742
|
if (i18nNode instanceof IcuPlaceholder && htmlNode.i18n instanceof Message) {
|
|
@@ -15826,7 +15893,7 @@ function i18nMetaToJSDoc(meta) {
|
|
|
15826
15893
|
return jsDocComment(tags);
|
|
15827
15894
|
}
|
|
15828
15895
|
|
|
15829
|
-
// bazel-out/
|
|
15896
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/get_msg_utils.mjs
|
|
15830
15897
|
var GOOG_GET_MSG = "goog.getMsg";
|
|
15831
15898
|
function createGoogleGetMsgStatements(variable2, message, closureVar, placeholderValues) {
|
|
15832
15899
|
const messageString = serializeI18nMessageForGetMsg(message);
|
|
@@ -15877,7 +15944,7 @@ function serializeI18nMessageForGetMsg(message) {
|
|
|
15877
15944
|
return message.nodes.map((node) => node.visit(serializerVisitor2, null)).join("");
|
|
15878
15945
|
}
|
|
15879
15946
|
|
|
15880
|
-
// bazel-out/
|
|
15947
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/localize_utils.mjs
|
|
15881
15948
|
function createLocalizeStatements(variable2, message, params) {
|
|
15882
15949
|
const { messageParts, placeHolders } = serializeI18nMessageForLocalize(message);
|
|
15883
15950
|
const sourceSpan = getSourceSpan(message);
|
|
@@ -15966,7 +16033,7 @@ function createEmptyMessagePart(location) {
|
|
|
15966
16033
|
return new LiteralPiece("", new ParseSourceSpan(location, location));
|
|
15967
16034
|
}
|
|
15968
16035
|
|
|
15969
|
-
// bazel-out/
|
|
16036
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_const_collection.mjs
|
|
15970
16037
|
var NG_I18N_CLOSURE_MODE = "ngI18nClosureMode";
|
|
15971
16038
|
var TRANSLATION_VAR_PREFIX2 = "i18n_";
|
|
15972
16039
|
function collectI18nConsts(job) {
|
|
@@ -16061,7 +16128,7 @@ function assertAllParamsResolved(op) {
|
|
|
16061
16128
|
}
|
|
16062
16129
|
}
|
|
16063
16130
|
|
|
16064
|
-
// bazel-out/
|
|
16131
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_text_extraction.mjs
|
|
16065
16132
|
function extractI18nText(job) {
|
|
16066
16133
|
var _a2;
|
|
16067
16134
|
for (const unit of job.units) {
|
|
@@ -16120,7 +16187,7 @@ function extractI18nText(job) {
|
|
|
16120
16187
|
}
|
|
16121
16188
|
}
|
|
16122
16189
|
|
|
16123
|
-
// bazel-out/
|
|
16190
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/local_refs.mjs
|
|
16124
16191
|
function liftLocalRefs(job) {
|
|
16125
16192
|
for (const unit of job.units) {
|
|
16126
16193
|
for (const op of unit.create) {
|
|
@@ -16150,48 +16217,7 @@ function serializeLocalRefs(refs) {
|
|
|
16150
16217
|
return literalArr(constRefs);
|
|
16151
16218
|
}
|
|
16152
16219
|
|
|
16153
|
-
// bazel-out/
|
|
16154
|
-
function mergeI18nContexts(job) {
|
|
16155
|
-
const i18nOps = /* @__PURE__ */ new Map();
|
|
16156
|
-
const i18nContexts = /* @__PURE__ */ new Map();
|
|
16157
|
-
for (const unit of job.units) {
|
|
16158
|
-
for (const op of unit.create) {
|
|
16159
|
-
switch (op.kind) {
|
|
16160
|
-
case OpKind.I18nStart:
|
|
16161
|
-
if (!op.context) {
|
|
16162
|
-
throw Error("I18n op should have its context set.");
|
|
16163
|
-
}
|
|
16164
|
-
i18nOps.set(op.xref, op);
|
|
16165
|
-
break;
|
|
16166
|
-
case OpKind.I18nContext:
|
|
16167
|
-
i18nContexts.set(op.xref, op);
|
|
16168
|
-
break;
|
|
16169
|
-
}
|
|
16170
|
-
}
|
|
16171
|
-
}
|
|
16172
|
-
for (const childI18nOp of i18nOps.values()) {
|
|
16173
|
-
if (childI18nOp.xref !== childI18nOp.root) {
|
|
16174
|
-
const childContext = i18nContexts.get(childI18nOp.context);
|
|
16175
|
-
const rootI18nOp = i18nOps.get(childI18nOp.root);
|
|
16176
|
-
const rootContext = i18nContexts.get(rootI18nOp.context);
|
|
16177
|
-
mergeParams(rootContext.params, childContext.params);
|
|
16178
|
-
mergeParams(rootContext.postprocessingParams, childContext.postprocessingParams);
|
|
16179
|
-
}
|
|
16180
|
-
}
|
|
16181
|
-
}
|
|
16182
|
-
function mergeParams(to, from) {
|
|
16183
|
-
for (const [placeholder, fromValues] of from) {
|
|
16184
|
-
const toValues = to.get(placeholder) || [];
|
|
16185
|
-
const flags = fromValues[0].flags;
|
|
16186
|
-
if (flags & I18nParamValueFlags.CloseTag && !(flags & I18nParamValueFlags.OpenTag)) {
|
|
16187
|
-
to.set(placeholder, [...fromValues, ...toValues]);
|
|
16188
|
-
} else {
|
|
16189
|
-
to.set(placeholder, [...toValues, ...fromValues]);
|
|
16190
|
-
}
|
|
16191
|
-
}
|
|
16192
|
-
}
|
|
16193
|
-
|
|
16194
|
-
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/namespace.mjs
|
|
16220
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/namespace.mjs
|
|
16195
16221
|
function emitNamespaceChanges(job) {
|
|
16196
16222
|
for (const unit of job.units) {
|
|
16197
16223
|
let activeNamespace = Namespace.HTML;
|
|
@@ -16207,7 +16233,7 @@ function emitNamespaceChanges(job) {
|
|
|
16207
16233
|
}
|
|
16208
16234
|
}
|
|
16209
16235
|
|
|
16210
|
-
// bazel-out/
|
|
16236
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/style_parser.mjs
|
|
16211
16237
|
function parse(value) {
|
|
16212
16238
|
const styles = [];
|
|
16213
16239
|
let i = 0;
|
|
@@ -16268,7 +16294,7 @@ function hyphenate2(value) {
|
|
|
16268
16294
|
}).toLowerCase();
|
|
16269
16295
|
}
|
|
16270
16296
|
|
|
16271
|
-
// bazel-out/
|
|
16297
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/naming.mjs
|
|
16272
16298
|
function nameFunctionsAndVariables(job) {
|
|
16273
16299
|
addNamesToView(job.root, job.componentName, { index: 0 }, job.compatibility === CompatibilityMode.TemplateDefinitionBuilder);
|
|
16274
16300
|
}
|
|
@@ -16383,7 +16409,7 @@ function stripImportant(name) {
|
|
|
16383
16409
|
return name;
|
|
16384
16410
|
}
|
|
16385
16411
|
|
|
16386
|
-
// bazel-out/
|
|
16412
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/next_context_merging.mjs
|
|
16387
16413
|
function mergeNextContextExpressions(job) {
|
|
16388
16414
|
for (const unit of job.units) {
|
|
16389
16415
|
for (const op of unit.create) {
|
|
@@ -16429,7 +16455,7 @@ function mergeNextContextsInOps(ops) {
|
|
|
16429
16455
|
}
|
|
16430
16456
|
}
|
|
16431
16457
|
|
|
16432
|
-
// bazel-out/
|
|
16458
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ng_container.mjs
|
|
16433
16459
|
var CONTAINER_TAG = "ng-container";
|
|
16434
16460
|
function generateNgContainerOps(job) {
|
|
16435
16461
|
for (const unit of job.units) {
|
|
@@ -16446,7 +16472,7 @@ function generateNgContainerOps(job) {
|
|
|
16446
16472
|
}
|
|
16447
16473
|
}
|
|
16448
16474
|
|
|
16449
|
-
// bazel-out/
|
|
16475
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nonbindable.mjs
|
|
16450
16476
|
function lookupElement3(elements, xref) {
|
|
16451
16477
|
const el = elements.get(xref);
|
|
16452
16478
|
if (el === void 0) {
|
|
@@ -16476,7 +16502,7 @@ function disableBindings(job) {
|
|
|
16476
16502
|
}
|
|
16477
16503
|
}
|
|
16478
16504
|
|
|
16479
|
-
// bazel-out/
|
|
16505
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nullish_coalescing.mjs
|
|
16480
16506
|
function generateNullishCoalesceExpressions(job) {
|
|
16481
16507
|
for (const unit of job.units) {
|
|
16482
16508
|
for (const op of unit.ops()) {
|
|
@@ -16492,7 +16518,7 @@ function generateNullishCoalesceExpressions(job) {
|
|
|
16492
16518
|
}
|
|
16493
16519
|
}
|
|
16494
16520
|
|
|
16495
|
-
// bazel-out/
|
|
16521
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ordering.mjs
|
|
16496
16522
|
function kindTest(kind) {
|
|
16497
16523
|
return (op) => op.kind === kind;
|
|
16498
16524
|
}
|
|
@@ -16566,7 +16592,7 @@ function keepLast(ops) {
|
|
|
16566
16592
|
return ops.slice(ops.length - 1);
|
|
16567
16593
|
}
|
|
16568
16594
|
|
|
16569
|
-
// bazel-out/
|
|
16595
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/parse_extracted_styles.mjs
|
|
16570
16596
|
function parseExtractedStyles(job) {
|
|
16571
16597
|
for (const unit of job.units) {
|
|
16572
16598
|
for (const op of unit.create) {
|
|
@@ -16589,7 +16615,7 @@ function parseExtractedStyles(job) {
|
|
|
16589
16615
|
}
|
|
16590
16616
|
}
|
|
16591
16617
|
|
|
16592
|
-
// bazel-out/
|
|
16618
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/phase_remove_content_selectors.mjs
|
|
16593
16619
|
function removeContentSelectors(job) {
|
|
16594
16620
|
for (const unit of job.units) {
|
|
16595
16621
|
const elements = createOpXrefMap(unit);
|
|
@@ -16613,7 +16639,7 @@ function lookupInXrefMap(map, xref) {
|
|
|
16613
16639
|
return el;
|
|
16614
16640
|
}
|
|
16615
16641
|
|
|
16616
|
-
// bazel-out/
|
|
16642
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_creation.mjs
|
|
16617
16643
|
function createPipes(job) {
|
|
16618
16644
|
for (const unit of job.units) {
|
|
16619
16645
|
processPipeBindingsInView(unit);
|
|
@@ -16661,7 +16687,7 @@ function addPipeToCreationBlock(unit, afterTargetXref, binding) {
|
|
|
16661
16687
|
throw new Error(`AssertionError: unable to find insertion point for pipe ${binding.name}`);
|
|
16662
16688
|
}
|
|
16663
16689
|
|
|
16664
|
-
// bazel-out/
|
|
16690
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_variadic.mjs
|
|
16665
16691
|
function createVariadicPipes(job) {
|
|
16666
16692
|
for (const unit of job.units) {
|
|
16667
16693
|
for (const op of unit.update) {
|
|
@@ -16678,7 +16704,7 @@ function createVariadicPipes(job) {
|
|
|
16678
16704
|
}
|
|
16679
16705
|
}
|
|
16680
16706
|
|
|
16681
|
-
// bazel-out/
|
|
16707
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/propagate_i18n_blocks.mjs
|
|
16682
16708
|
function propagateI18nBlocks(job) {
|
|
16683
16709
|
propagateI18nBlocksToTemplates(job.root, 0);
|
|
16684
16710
|
}
|
|
@@ -16702,9 +16728,10 @@ function propagateI18nBlocksToTemplates(unit, subTemplateIndex) {
|
|
|
16702
16728
|
subTemplateIndex++;
|
|
16703
16729
|
wrapTemplateWithI18n(templateView, i18nBlock);
|
|
16704
16730
|
}
|
|
16705
|
-
propagateI18nBlocksToTemplates(templateView, subTemplateIndex);
|
|
16731
|
+
subTemplateIndex = propagateI18nBlocksToTemplates(templateView, subTemplateIndex);
|
|
16706
16732
|
}
|
|
16707
16733
|
}
|
|
16734
|
+
return subTemplateIndex;
|
|
16708
16735
|
}
|
|
16709
16736
|
function wrapTemplateWithI18n(unit, parentI18n) {
|
|
16710
16737
|
var _a2;
|
|
@@ -16715,7 +16742,7 @@ function wrapTemplateWithI18n(unit, parentI18n) {
|
|
|
16715
16742
|
}
|
|
16716
16743
|
}
|
|
16717
16744
|
|
|
16718
|
-
// bazel-out/
|
|
16745
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_function_extraction.mjs
|
|
16719
16746
|
function extractPureFunctions(job) {
|
|
16720
16747
|
for (const view of job.units) {
|
|
16721
16748
|
for (const op of view.ops()) {
|
|
@@ -16757,7 +16784,7 @@ var PureFunctionConstant = class extends GenericKeyFn {
|
|
|
16757
16784
|
}
|
|
16758
16785
|
};
|
|
16759
16786
|
|
|
16760
|
-
// bazel-out/
|
|
16787
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_literal_structures.mjs
|
|
16761
16788
|
function generatePureLiteralStructures(job) {
|
|
16762
16789
|
for (const unit of job.units) {
|
|
16763
16790
|
for (const op of unit.update) {
|
|
@@ -16804,7 +16831,7 @@ function transformLiteralMap(expr) {
|
|
|
16804
16831
|
return new PureFunctionExpr(literalMap(derivedEntries), nonConstantArgs);
|
|
16805
16832
|
}
|
|
16806
16833
|
|
|
16807
|
-
// bazel-out/
|
|
16834
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/instruction.mjs
|
|
16808
16835
|
function element(slot, tag, constIndex, localRefIndex, sourceSpan) {
|
|
16809
16836
|
return elementOrContainerBase(Identifiers.element, slot, tag, constIndex, localRefIndex, sourceSpan);
|
|
16810
16837
|
}
|
|
@@ -17315,7 +17342,7 @@ function callVariadicInstruction(config, baseArgs, interpolationArgs, extraArgs,
|
|
|
17315
17342
|
return createStatementOp(callVariadicInstructionExpr(config, baseArgs, interpolationArgs, extraArgs, sourceSpan).toStmt());
|
|
17316
17343
|
}
|
|
17317
17344
|
|
|
17318
|
-
// bazel-out/
|
|
17345
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/reify.mjs
|
|
17319
17346
|
var sanitizerIdentifierMap = /* @__PURE__ */ new Map([
|
|
17320
17347
|
[SanitizerFn.Html, Identifiers.sanitizeHtml],
|
|
17321
17348
|
[SanitizerFn.IframeAttribute, Identifiers.validateIframeAttribute],
|
|
@@ -17644,7 +17671,7 @@ function reifyListenerHandler(unit, name, handlerOps, consumesDollarEvent) {
|
|
|
17644
17671
|
return fn(params, handlerStmts, void 0, void 0, name);
|
|
17645
17672
|
}
|
|
17646
17673
|
|
|
17647
|
-
// bazel-out/
|
|
17674
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_empty_bindings.mjs
|
|
17648
17675
|
function removeEmptyBindings(job) {
|
|
17649
17676
|
for (const unit of job.units) {
|
|
17650
17677
|
for (const op of unit.update) {
|
|
@@ -17665,7 +17692,7 @@ function removeEmptyBindings(job) {
|
|
|
17665
17692
|
}
|
|
17666
17693
|
}
|
|
17667
17694
|
|
|
17668
|
-
// bazel-out/
|
|
17695
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_i18n_contexts.mjs
|
|
17669
17696
|
function removeI18nContexts(job) {
|
|
17670
17697
|
for (const unit of job.units) {
|
|
17671
17698
|
for (const op of unit.create) {
|
|
@@ -17681,7 +17708,7 @@ function removeI18nContexts(job) {
|
|
|
17681
17708
|
}
|
|
17682
17709
|
}
|
|
17683
17710
|
|
|
17684
|
-
// bazel-out/
|
|
17711
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/repeater_derived_vars.mjs
|
|
17685
17712
|
function generateRepeaterDerivedVars(job) {
|
|
17686
17713
|
const repeaters = /* @__PURE__ */ new Map();
|
|
17687
17714
|
for (const unit of job.units) {
|
|
@@ -17713,7 +17740,7 @@ function generateRepeaterDerivedVars(job) {
|
|
|
17713
17740
|
}
|
|
17714
17741
|
}
|
|
17715
17742
|
|
|
17716
|
-
// bazel-out/
|
|
17743
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_contexts.mjs
|
|
17717
17744
|
function resolveContexts(job) {
|
|
17718
17745
|
for (const unit of job.units) {
|
|
17719
17746
|
processLexicalScope(unit, unit.create);
|
|
@@ -17754,7 +17781,7 @@ function processLexicalScope(view, ops) {
|
|
|
17754
17781
|
}
|
|
17755
17782
|
}
|
|
17756
17783
|
|
|
17757
|
-
// bazel-out/
|
|
17784
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_dollar_event.mjs
|
|
17758
17785
|
function resolveDollarEvent(job) {
|
|
17759
17786
|
for (const unit of job.units) {
|
|
17760
17787
|
transformDollarEvent(unit, unit.create);
|
|
@@ -17775,7 +17802,7 @@ function transformDollarEvent(unit, ops) {
|
|
|
17775
17802
|
}
|
|
17776
17803
|
}
|
|
17777
17804
|
|
|
17778
|
-
// bazel-out/
|
|
17805
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_element_placeholders.mjs
|
|
17779
17806
|
function resolveI18nElementPlaceholders(job) {
|
|
17780
17807
|
const i18nContexts = /* @__PURE__ */ new Map();
|
|
17781
17808
|
const elements = /* @__PURE__ */ new Map();
|
|
@@ -17791,55 +17818,67 @@ function resolveI18nElementPlaceholders(job) {
|
|
|
17791
17818
|
}
|
|
17792
17819
|
}
|
|
17793
17820
|
}
|
|
17794
|
-
|
|
17795
|
-
|
|
17796
|
-
|
|
17797
|
-
|
|
17798
|
-
|
|
17799
|
-
|
|
17800
|
-
|
|
17821
|
+
resolvePlaceholdersForView(job, job.root, i18nContexts, elements);
|
|
17822
|
+
}
|
|
17823
|
+
function resolvePlaceholdersForView(job, unit, i18nContexts, elements) {
|
|
17824
|
+
let currentOps = null;
|
|
17825
|
+
for (const op of unit.create) {
|
|
17826
|
+
switch (op.kind) {
|
|
17827
|
+
case OpKind.I18nStart:
|
|
17828
|
+
if (!op.context) {
|
|
17829
|
+
throw Error("Could not find i18n context for i18n op");
|
|
17830
|
+
}
|
|
17831
|
+
currentOps = { i18nBlock: op, i18nContext: i18nContexts.get(op.context) };
|
|
17832
|
+
break;
|
|
17833
|
+
case OpKind.I18nEnd:
|
|
17834
|
+
currentOps = null;
|
|
17835
|
+
break;
|
|
17836
|
+
case OpKind.ElementStart:
|
|
17837
|
+
if (op.i18nPlaceholder !== void 0) {
|
|
17838
|
+
if (currentOps === null) {
|
|
17839
|
+
throw Error("i18n tag placeholder should only occur inside an i18n block");
|
|
17801
17840
|
}
|
|
17802
|
-
|
|
17803
|
-
|
|
17804
|
-
|
|
17805
|
-
|
|
17806
|
-
break;
|
|
17807
|
-
case OpKind.ElementStart:
|
|
17808
|
-
if (op.i18nPlaceholder !== void 0) {
|
|
17809
|
-
if (currentOps === null) {
|
|
17810
|
-
throw Error("i18n tag placeholder should only occur inside an i18n block");
|
|
17811
|
-
}
|
|
17812
|
-
const { startName, closeName } = op.i18nPlaceholder;
|
|
17813
|
-
let flags = I18nParamValueFlags.ElementTag | I18nParamValueFlags.OpenTag;
|
|
17814
|
-
if (closeName === "") {
|
|
17815
|
-
flags |= I18nParamValueFlags.CloseTag;
|
|
17816
|
-
}
|
|
17817
|
-
addParam(currentOps.i18nContext.params, startName, op.handle.slot, currentOps.i18nBlock.subTemplateIndex, flags);
|
|
17841
|
+
const { startName, closeName } = op.i18nPlaceholder;
|
|
17842
|
+
let flags = I18nParamValueFlags.ElementTag | I18nParamValueFlags.OpenTag;
|
|
17843
|
+
if (closeName === "") {
|
|
17844
|
+
flags |= I18nParamValueFlags.CloseTag;
|
|
17818
17845
|
}
|
|
17819
|
-
|
|
17820
|
-
|
|
17821
|
-
|
|
17822
|
-
|
|
17823
|
-
|
|
17824
|
-
|
|
17825
|
-
|
|
17826
|
-
|
|
17827
|
-
if (closeName !== "") {
|
|
17828
|
-
addParam(currentOps.i18nContext.params, closeName, startOp.handle.slot, currentOps.i18nBlock.subTemplateIndex, I18nParamValueFlags.ElementTag | I18nParamValueFlags.CloseTag);
|
|
17829
|
-
}
|
|
17846
|
+
addParam(currentOps.i18nContext.params, startName, op.handle.slot, currentOps.i18nBlock.subTemplateIndex, flags);
|
|
17847
|
+
}
|
|
17848
|
+
break;
|
|
17849
|
+
case OpKind.ElementEnd:
|
|
17850
|
+
const startOp = elements.get(op.xref);
|
|
17851
|
+
if (startOp && startOp.i18nPlaceholder !== void 0) {
|
|
17852
|
+
if (currentOps === null) {
|
|
17853
|
+
throw Error("i18n tag placeholder should only occur inside an i18n block");
|
|
17830
17854
|
}
|
|
17831
|
-
|
|
17832
|
-
|
|
17833
|
-
|
|
17834
|
-
if (currentOps === null) {
|
|
17835
|
-
throw Error("i18n tag placeholder should only occur inside an i18n block");
|
|
17836
|
-
}
|
|
17837
|
-
const subTemplateIndex = getSubTemplateIndexForTemplateTag(job, currentOps.i18nBlock, op);
|
|
17838
|
-
addParam(currentOps.i18nContext.params, op.i18nPlaceholder.startName, op.handle.slot, subTemplateIndex, I18nParamValueFlags.TemplateTag);
|
|
17839
|
-
addParam(currentOps.i18nContext.params, op.i18nPlaceholder.closeName, op.handle.slot, subTemplateIndex, I18nParamValueFlags.TemplateTag | I18nParamValueFlags.CloseTag);
|
|
17855
|
+
const { closeName } = startOp.i18nPlaceholder;
|
|
17856
|
+
if (closeName !== "") {
|
|
17857
|
+
addParam(currentOps.i18nContext.params, closeName, startOp.handle.slot, currentOps.i18nBlock.subTemplateIndex, I18nParamValueFlags.ElementTag | I18nParamValueFlags.CloseTag);
|
|
17840
17858
|
}
|
|
17841
|
-
|
|
17842
|
-
|
|
17859
|
+
}
|
|
17860
|
+
break;
|
|
17861
|
+
case OpKind.Template:
|
|
17862
|
+
if (op.i18nPlaceholder !== void 0) {
|
|
17863
|
+
if (currentOps === null) {
|
|
17864
|
+
throw Error("i18n tag placeholder should only occur inside an i18n block");
|
|
17865
|
+
}
|
|
17866
|
+
let startFlags = I18nParamValueFlags.TemplateTag | I18nParamValueFlags.OpenTag;
|
|
17867
|
+
const subTemplateIndex = getSubTemplateIndexForTemplateTag(job, currentOps.i18nBlock, op);
|
|
17868
|
+
const { startName, closeName } = op.i18nPlaceholder;
|
|
17869
|
+
const isSelfClosing = closeName === "";
|
|
17870
|
+
if (isSelfClosing) {
|
|
17871
|
+
startFlags |= I18nParamValueFlags.CloseTag;
|
|
17872
|
+
}
|
|
17873
|
+
addParam(currentOps.i18nContext.params, startName, op.handle.slot, subTemplateIndex, startFlags);
|
|
17874
|
+
resolvePlaceholdersForView(job, job.views.get(op.xref), i18nContexts, elements);
|
|
17875
|
+
if (!isSelfClosing) {
|
|
17876
|
+
addParam(currentOps.i18nContext.params, closeName, op.handle.slot, subTemplateIndex, I18nParamValueFlags.TemplateTag | I18nParamValueFlags.CloseTag);
|
|
17877
|
+
}
|
|
17878
|
+
} else {
|
|
17879
|
+
resolvePlaceholdersForView(job, job.views.get(op.xref), i18nContexts, elements);
|
|
17880
|
+
}
|
|
17881
|
+
break;
|
|
17843
17882
|
}
|
|
17844
17883
|
}
|
|
17845
17884
|
}
|
|
@@ -17858,7 +17897,7 @@ function addParam(params, placeholder, value, subTemplateIndex, flags) {
|
|
|
17858
17897
|
params.set(placeholder, values);
|
|
17859
17898
|
}
|
|
17860
17899
|
|
|
17861
|
-
// bazel-out/
|
|
17900
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_expression_placeholders.mjs
|
|
17862
17901
|
function resolveI18nExpressionPlaceholders(job) {
|
|
17863
17902
|
const subTemplateIndicies = /* @__PURE__ */ new Map();
|
|
17864
17903
|
const i18nContexts = /* @__PURE__ */ new Map();
|
|
@@ -17879,8 +17918,8 @@ function resolveI18nExpressionPlaceholders(job) {
|
|
|
17879
17918
|
for (const op of unit.update) {
|
|
17880
17919
|
if (op.kind === OpKind.I18nExpression) {
|
|
17881
17920
|
const i18nContext = i18nContexts.get(op.context);
|
|
17882
|
-
const index = expressionIndices.get(
|
|
17883
|
-
const subTemplateIndex = subTemplateIndicies.get(
|
|
17921
|
+
const index = expressionIndices.get(op.target) || 0;
|
|
17922
|
+
const subTemplateIndex = subTemplateIndicies.get(op.target);
|
|
17884
17923
|
const params = op.resolutionTime === I18nParamResolutionTime.Creation ? i18nContext.params : i18nContext.postprocessingParams;
|
|
17885
17924
|
const values = params.get(op.i18nPlaceholder) || [];
|
|
17886
17925
|
values.push({
|
|
@@ -17889,36 +17928,20 @@ function resolveI18nExpressionPlaceholders(job) {
|
|
|
17889
17928
|
flags: I18nParamValueFlags.ExpressionIndex
|
|
17890
17929
|
});
|
|
17891
17930
|
params.set(op.i18nPlaceholder, values);
|
|
17892
|
-
expressionIndices.set(
|
|
17931
|
+
expressionIndices.set(op.target, index + 1);
|
|
17893
17932
|
}
|
|
17894
17933
|
}
|
|
17895
17934
|
}
|
|
17896
17935
|
}
|
|
17897
17936
|
|
|
17898
|
-
// bazel-out/
|
|
17937
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_icu_placeholders.mjs
|
|
17899
17938
|
function resolveI18nIcuPlaceholders(job) {
|
|
17900
|
-
const contextOps = /* @__PURE__ */ new Map();
|
|
17901
17939
|
for (const unit of job.units) {
|
|
17902
17940
|
for (const op of unit.create) {
|
|
17903
|
-
|
|
17904
|
-
|
|
17905
|
-
|
|
17906
|
-
|
|
17907
|
-
}
|
|
17908
|
-
}
|
|
17909
|
-
}
|
|
17910
|
-
for (const unit of job.units) {
|
|
17911
|
-
for (const op of unit.create) {
|
|
17912
|
-
switch (op.kind) {
|
|
17913
|
-
case OpKind.IcuStart:
|
|
17914
|
-
if (op.context === null) {
|
|
17915
|
-
throw Error("Icu should have its i18n context set.");
|
|
17916
|
-
}
|
|
17917
|
-
const i18nContext = contextOps.get(op.context);
|
|
17918
|
-
for (const node of op.message.nodes) {
|
|
17919
|
-
node.visit(new ResolveIcuPlaceholdersVisitor(i18nContext.postprocessingParams));
|
|
17920
|
-
}
|
|
17921
|
-
break;
|
|
17941
|
+
if (op.kind === OpKind.I18nContext && op.contextKind === I18nContextKind.Icu) {
|
|
17942
|
+
for (const node of op.message.nodes) {
|
|
17943
|
+
node.visit(new ResolveIcuPlaceholdersVisitor(op.postprocessingParams));
|
|
17944
|
+
}
|
|
17922
17945
|
}
|
|
17923
17946
|
}
|
|
17924
17947
|
}
|
|
@@ -17955,7 +17978,7 @@ var ResolveIcuPlaceholdersVisitor = class extends RecurseVisitor {
|
|
|
17955
17978
|
}
|
|
17956
17979
|
};
|
|
17957
17980
|
|
|
17958
|
-
// bazel-out/
|
|
17981
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_names.mjs
|
|
17959
17982
|
function resolveNames(job) {
|
|
17960
17983
|
for (const unit of job.units) {
|
|
17961
17984
|
processLexicalScope2(unit, unit.create, null);
|
|
@@ -18019,7 +18042,7 @@ function processLexicalScope2(unit, ops, savedView) {
|
|
|
18019
18042
|
}
|
|
18020
18043
|
}
|
|
18021
18044
|
|
|
18022
|
-
// bazel-out/
|
|
18045
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_sanitizers.mjs
|
|
18023
18046
|
var sanitizers = /* @__PURE__ */ new Map([
|
|
18024
18047
|
[SecurityContext.HTML, SanitizerFn.Html],
|
|
18025
18048
|
[SecurityContext.SCRIPT, SanitizerFn.Script],
|
|
@@ -18056,7 +18079,7 @@ function isIframeElement(op) {
|
|
|
18056
18079
|
return op.kind === OpKind.ElementStart && ((_a2 = op.tag) == null ? void 0 : _a2.toLowerCase()) === "iframe";
|
|
18057
18080
|
}
|
|
18058
18081
|
|
|
18059
|
-
// bazel-out/
|
|
18082
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/save_restore_view.mjs
|
|
18060
18083
|
function saveAndRestoreView(job) {
|
|
18061
18084
|
for (const unit of job.units) {
|
|
18062
18085
|
unit.create.prepend([
|
|
@@ -18101,7 +18124,7 @@ function addSaveRestoreViewOperationToListener(unit, op) {
|
|
|
18101
18124
|
}
|
|
18102
18125
|
}
|
|
18103
18126
|
|
|
18104
|
-
// bazel-out/
|
|
18127
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/slot_allocation.mjs
|
|
18105
18128
|
function allocateSlots(job) {
|
|
18106
18129
|
const slotMap = /* @__PURE__ */ new Map();
|
|
18107
18130
|
for (const unit of job.units) {
|
|
@@ -18126,7 +18149,7 @@ function allocateSlots(job) {
|
|
|
18126
18149
|
}
|
|
18127
18150
|
}
|
|
18128
18151
|
|
|
18129
|
-
// bazel-out/
|
|
18152
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/style_binding_specialization.mjs
|
|
18130
18153
|
function specializeStyleBindings(job) {
|
|
18131
18154
|
for (const unit of job.units) {
|
|
18132
18155
|
for (const op of unit.update) {
|
|
@@ -18156,7 +18179,7 @@ function specializeStyleBindings(job) {
|
|
|
18156
18179
|
}
|
|
18157
18180
|
}
|
|
18158
18181
|
|
|
18159
|
-
// bazel-out/
|
|
18182
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/temporary_variables.mjs
|
|
18160
18183
|
function generateTemporaryVariables(job) {
|
|
18161
18184
|
for (const unit of job.units) {
|
|
18162
18185
|
unit.create.prepend(generateTemporaries(unit.create));
|
|
@@ -18214,7 +18237,7 @@ function assignName(names, expr) {
|
|
|
18214
18237
|
expr.name = name;
|
|
18215
18238
|
}
|
|
18216
18239
|
|
|
18217
|
-
// bazel-out/
|
|
18240
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_generation.mjs
|
|
18218
18241
|
function generateTrackFns(job) {
|
|
18219
18242
|
for (const unit of job.units) {
|
|
18220
18243
|
for (const op of unit.create) {
|
|
@@ -18244,7 +18267,7 @@ function generateTrackFns(job) {
|
|
|
18244
18267
|
}
|
|
18245
18268
|
}
|
|
18246
18269
|
|
|
18247
|
-
// bazel-out/
|
|
18270
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_optimization.mjs
|
|
18248
18271
|
function optimizeTrackFns(job) {
|
|
18249
18272
|
for (const unit of job.units) {
|
|
18250
18273
|
for (const op of unit.create) {
|
|
@@ -18291,7 +18314,7 @@ function isTrackByFunctionCall(rootView, expr) {
|
|
|
18291
18314
|
return true;
|
|
18292
18315
|
}
|
|
18293
18316
|
|
|
18294
|
-
// bazel-out/
|
|
18317
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_variables.mjs
|
|
18295
18318
|
function generateTrackVariables(job) {
|
|
18296
18319
|
for (const unit of job.units) {
|
|
18297
18320
|
for (const op of unit.create) {
|
|
@@ -18312,7 +18335,7 @@ function generateTrackVariables(job) {
|
|
|
18312
18335
|
}
|
|
18313
18336
|
}
|
|
18314
18337
|
|
|
18315
|
-
// bazel-out/
|
|
18338
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/var_counting.mjs
|
|
18316
18339
|
function countVariables(job) {
|
|
18317
18340
|
for (const unit of job.units) {
|
|
18318
18341
|
let varCount = 0;
|
|
@@ -18417,7 +18440,7 @@ function isSingletonInterpolation(expr) {
|
|
|
18417
18440
|
return true;
|
|
18418
18441
|
}
|
|
18419
18442
|
|
|
18420
|
-
// bazel-out/
|
|
18443
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/variable_optimization.mjs
|
|
18421
18444
|
function optimizeVariables(job) {
|
|
18422
18445
|
for (const unit of job.units) {
|
|
18423
18446
|
inlineAlwaysInlineVariables(unit.create);
|
|
@@ -18667,7 +18690,7 @@ function allowConservativeInlining(decl, target) {
|
|
|
18667
18690
|
}
|
|
18668
18691
|
}
|
|
18669
18692
|
|
|
18670
|
-
// bazel-out/
|
|
18693
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/wrap_icus.mjs
|
|
18671
18694
|
function wrapI18nIcus(job) {
|
|
18672
18695
|
for (const unit of job.units) {
|
|
18673
18696
|
let currentI18nOp = null;
|
|
@@ -18697,7 +18720,7 @@ function wrapI18nIcus(job) {
|
|
|
18697
18720
|
}
|
|
18698
18721
|
}
|
|
18699
18722
|
|
|
18700
|
-
// bazel-out/
|
|
18723
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/emit.mjs
|
|
18701
18724
|
var phases = [
|
|
18702
18725
|
{ kind: CompilationJobKind.Tmpl, fn: removeContentSelectors },
|
|
18703
18726
|
{ kind: CompilationJobKind.Host, fn: parseHostStyleProperties },
|
|
@@ -18740,7 +18763,6 @@ var phases = [
|
|
|
18740
18763
|
{ kind: CompilationJobKind.Tmpl, fn: resolveI18nElementPlaceholders },
|
|
18741
18764
|
{ kind: CompilationJobKind.Tmpl, fn: resolveI18nExpressionPlaceholders },
|
|
18742
18765
|
{ kind: CompilationJobKind.Tmpl, fn: resolveI18nIcuPlaceholders },
|
|
18743
|
-
{ kind: CompilationJobKind.Tmpl, fn: mergeI18nContexts },
|
|
18744
18766
|
{ kind: CompilationJobKind.Tmpl, fn: extractI18nMessages },
|
|
18745
18767
|
{ kind: CompilationJobKind.Tmpl, fn: generateTrackFns },
|
|
18746
18768
|
{ kind: CompilationJobKind.Tmpl, fn: collectI18nConsts },
|
|
@@ -18862,7 +18884,7 @@ function emitHostBindingFunction(job) {
|
|
|
18862
18884
|
);
|
|
18863
18885
|
}
|
|
18864
18886
|
|
|
18865
|
-
// bazel-out/
|
|
18887
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/ingest.mjs
|
|
18866
18888
|
var compatibilityMode = CompatibilityMode.TemplateDefinitionBuilder;
|
|
18867
18889
|
function ingestComponent(componentName, template2, constantPool, relativeContextFilePath, i18nUseExternalIds, deferBlocksMeta) {
|
|
18868
18890
|
const job = new ComponentCompilationJob(componentName, constantPool, compatibilityMode, relativeContextFilePath, i18nUseExternalIds, deferBlocksMeta);
|
|
@@ -19443,10 +19465,10 @@ function ingestControlFlowInsertionPoint(unit, xref, node) {
|
|
|
19443
19465
|
return null;
|
|
19444
19466
|
}
|
|
19445
19467
|
|
|
19446
|
-
// bazel-out/
|
|
19468
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/switch/index.mjs
|
|
19447
19469
|
var USE_TEMPLATE_PIPELINE = false;
|
|
19448
19470
|
|
|
19449
|
-
// bazel-out/
|
|
19471
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/styling_builder.mjs
|
|
19450
19472
|
var IMPORTANT_FLAG = "!important";
|
|
19451
19473
|
var MIN_STYLING_BINDING_SLOTS_REQUIRED = 2;
|
|
19452
19474
|
var StylingBuilder = class {
|
|
@@ -19779,7 +19801,7 @@ function isEmptyExpression(ast) {
|
|
|
19779
19801
|
return ast instanceof EmptyExpr;
|
|
19780
19802
|
}
|
|
19781
19803
|
|
|
19782
|
-
// bazel-out/
|
|
19804
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
|
|
19783
19805
|
var HtmlParser = class extends Parser2 {
|
|
19784
19806
|
constructor() {
|
|
19785
19807
|
super(getHtmlTagDefinition);
|
|
@@ -19789,7 +19811,7 @@ var HtmlParser = class extends Parser2 {
|
|
|
19789
19811
|
}
|
|
19790
19812
|
};
|
|
19791
19813
|
|
|
19792
|
-
// bazel-out/
|
|
19814
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
|
|
19793
19815
|
var PRESERVE_WS_ATTR_NAME = "ngPreserveWhitespaces";
|
|
19794
19816
|
var SKIP_WS_TRIM_TAGS = /* @__PURE__ */ new Set(["pre", "template", "textarea", "script", "style"]);
|
|
19795
19817
|
var WS_CHARS = " \f\n\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
|
|
@@ -19855,7 +19877,7 @@ function visitAllWithSiblings(visitor, nodes) {
|
|
|
19855
19877
|
return result;
|
|
19856
19878
|
}
|
|
19857
19879
|
|
|
19858
|
-
// bazel-out/
|
|
19880
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
|
|
19859
19881
|
var PROPERTY_PARTS_SEPARATOR = ".";
|
|
19860
19882
|
var ATTRIBUTE_PREFIX = "attr";
|
|
19861
19883
|
var CLASS_PREFIX = "class";
|
|
@@ -20175,7 +20197,7 @@ function moveParseSourceSpan(sourceSpan, absoluteSpan) {
|
|
|
20175
20197
|
return new ParseSourceSpan(sourceSpan.start.moveBy(startDiff), sourceSpan.end.moveBy(endDiff), sourceSpan.fullStart.moveBy(startDiff), sourceSpan.details);
|
|
20176
20198
|
}
|
|
20177
20199
|
|
|
20178
|
-
// bazel-out/
|
|
20200
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/style_url_resolver.mjs
|
|
20179
20201
|
function isStyleUrlResolvable(url) {
|
|
20180
20202
|
if (url == null || url.length === 0 || url[0] == "/")
|
|
20181
20203
|
return false;
|
|
@@ -20184,7 +20206,7 @@ function isStyleUrlResolvable(url) {
|
|
|
20184
20206
|
}
|
|
20185
20207
|
var URL_WITH_SCHEMA_REGEXP = /^([^:/?#]+):/;
|
|
20186
20208
|
|
|
20187
|
-
// bazel-out/
|
|
20209
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template_parser/template_preparser.mjs
|
|
20188
20210
|
var NG_CONTENT_SELECT_ATTR = "select";
|
|
20189
20211
|
var LINK_ELEMENT = "link";
|
|
20190
20212
|
var LINK_STYLE_REL_ATTR = "rel";
|
|
@@ -20254,7 +20276,7 @@ function normalizeNgContentSelect(selectAttr) {
|
|
|
20254
20276
|
return selectAttr;
|
|
20255
20277
|
}
|
|
20256
20278
|
|
|
20257
|
-
// bazel-out/
|
|
20279
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_control_flow.mjs
|
|
20258
20280
|
var FOR_LOOP_EXPRESSION_PATTERN = /^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/;
|
|
20259
20281
|
var FOR_LOOP_TRACK_PATTERN = /^track\s+([\S\s]*)/;
|
|
20260
20282
|
var CONDITIONAL_ALIAS_PATTERN = /^as\s+(.*)/;
|
|
@@ -20545,7 +20567,7 @@ function stripOptionalParentheses(param, errors) {
|
|
|
20545
20567
|
return expression.slice(start, end);
|
|
20546
20568
|
}
|
|
20547
20569
|
|
|
20548
|
-
// bazel-out/
|
|
20570
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_deferred_triggers.mjs
|
|
20549
20571
|
var TIME_PATTERN = /^\d+\.?\d*(ms|s)?$/;
|
|
20550
20572
|
var SEPARATOR_PATTERN = /^\s$/;
|
|
20551
20573
|
var COMMA_DELIMITED_SYNTAX = /* @__PURE__ */ new Map([
|
|
@@ -20809,7 +20831,7 @@ function parseDeferredTime(value) {
|
|
|
20809
20831
|
return parseFloat(time) * (units === "s" ? 1e3 : 1);
|
|
20810
20832
|
}
|
|
20811
20833
|
|
|
20812
|
-
// bazel-out/
|
|
20834
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_deferred_blocks.mjs
|
|
20813
20835
|
var PREFETCH_WHEN_PATTERN = /^prefetch\s+when\s/;
|
|
20814
20836
|
var PREFETCH_ON_PATTERN = /^prefetch\s+on\s/;
|
|
20815
20837
|
var MINIMUM_PARAMETER_PATTERN = /^minimum\s/;
|
|
@@ -20944,7 +20966,7 @@ function parsePrimaryTriggers(params, bindingParser, errors, placeholder) {
|
|
|
20944
20966
|
return { triggers, prefetchTriggers };
|
|
20945
20967
|
}
|
|
20946
20968
|
|
|
20947
|
-
// bazel-out/
|
|
20969
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_template_transform.mjs
|
|
20948
20970
|
var BIND_NAME_REGEXP = /^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/;
|
|
20949
20971
|
var KW_BIND_IDX = 1;
|
|
20950
20972
|
var KW_LET_IDX = 2;
|
|
@@ -21375,7 +21397,7 @@ function textContents(node) {
|
|
|
21375
21397
|
}
|
|
21376
21398
|
}
|
|
21377
21399
|
|
|
21378
|
-
// bazel-out/
|
|
21400
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/context.mjs
|
|
21379
21401
|
var TagType;
|
|
21380
21402
|
(function(TagType2) {
|
|
21381
21403
|
TagType2[TagType2["ELEMENT"] = 0] = "ELEMENT";
|
|
@@ -21520,7 +21542,7 @@ function serializePlaceholderValue(value) {
|
|
|
21520
21542
|
}
|
|
21521
21543
|
}
|
|
21522
21544
|
|
|
21523
|
-
// bazel-out/
|
|
21545
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/template.mjs
|
|
21524
21546
|
var NG_CONTENT_SELECT_ATTR2 = "select";
|
|
21525
21547
|
var NG_PROJECT_AS_ATTR_NAME = "ngProjectAs";
|
|
21526
21548
|
var EVENT_BINDING_SCOPE_GLOBALS = /* @__PURE__ */ new Set(["$event"]);
|
|
@@ -22980,21 +23002,6 @@ var TrackByBindingScope = class extends BindingScope {
|
|
|
22980
23002
|
return this.componentAccessCount;
|
|
22981
23003
|
}
|
|
22982
23004
|
};
|
|
22983
|
-
function createCssSelector(elementName, attributes) {
|
|
22984
|
-
const cssSelector = new CssSelector();
|
|
22985
|
-
const elementNameNoNs = splitNsName(elementName)[1];
|
|
22986
|
-
cssSelector.setElement(elementNameNoNs);
|
|
22987
|
-
Object.getOwnPropertyNames(attributes).forEach((name) => {
|
|
22988
|
-
const nameNoNs = splitNsName(name)[1];
|
|
22989
|
-
const value = attributes[name];
|
|
22990
|
-
cssSelector.addAttribute(nameNoNs, value);
|
|
22991
|
-
if (name.toLowerCase() === "class") {
|
|
22992
|
-
const classes = value.trim().split(/\s+/);
|
|
22993
|
-
classes.forEach((className) => cssSelector.addClassName(className));
|
|
22994
|
-
}
|
|
22995
|
-
});
|
|
22996
|
-
return cssSelector;
|
|
22997
|
-
}
|
|
22998
23005
|
function getNgProjectAsLiteral(attribute2) {
|
|
22999
23006
|
const parsedR3Selector = parseSelectorToR3Selector(attribute2.value)[0];
|
|
23000
23007
|
return [literal(5), asLiteral(parsedR3Selector)];
|
|
@@ -23212,7 +23219,7 @@ function createClosureModeGuard2() {
|
|
|
23212
23219
|
return typeofExpr(variable(NG_I18N_CLOSURE_MODE2)).notIdentical(literal("undefined", STRING_TYPE)).and(variable(NG_I18N_CLOSURE_MODE2));
|
|
23213
23220
|
}
|
|
23214
23221
|
|
|
23215
|
-
// bazel-out/
|
|
23222
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/compiler.mjs
|
|
23216
23223
|
var ATTR_REGEX = /attr\.([^\]]+)/;
|
|
23217
23224
|
var COMPONENT_VARIABLE = "%COMP%";
|
|
23218
23225
|
var HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
|
|
@@ -23263,6 +23270,9 @@ function addFeatures(definitionMap, meta) {
|
|
|
23263
23270
|
break;
|
|
23264
23271
|
}
|
|
23265
23272
|
}
|
|
23273
|
+
if ((_a2 = meta.hostDirectives) == null ? void 0 : _a2.length) {
|
|
23274
|
+
features.push(importExpr(Identifiers.HostDirectivesFeature).callFn([createHostDirectivesFeatureArg(meta.hostDirectives)]));
|
|
23275
|
+
}
|
|
23266
23276
|
if (meta.usesInheritance) {
|
|
23267
23277
|
features.push(importExpr(Identifiers.InheritDefinitionFeature));
|
|
23268
23278
|
}
|
|
@@ -23275,9 +23285,6 @@ function addFeatures(definitionMap, meta) {
|
|
|
23275
23285
|
if (meta.hasOwnProperty("template") && meta.isStandalone) {
|
|
23276
23286
|
features.push(importExpr(Identifiers.StandaloneFeature));
|
|
23277
23287
|
}
|
|
23278
|
-
if ((_a2 = meta.hostDirectives) == null ? void 0 : _a2.length) {
|
|
23279
|
-
features.push(importExpr(Identifiers.HostDirectivesFeature).callFn([createHostDirectivesFeatureArg(meta.hostDirectives)]));
|
|
23280
|
-
}
|
|
23281
23288
|
if (features.length) {
|
|
23282
23289
|
definitionMap.set("features", literalArr(features));
|
|
23283
23290
|
}
|
|
@@ -23814,7 +23821,7 @@ function createHostDirectivesMappingArray(mapping) {
|
|
|
23814
23821
|
return elements.length > 0 ? literalArr(elements) : null;
|
|
23815
23822
|
}
|
|
23816
23823
|
|
|
23817
|
-
// bazel-out/
|
|
23824
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/t2_binder.mjs
|
|
23818
23825
|
var R3TargetBinder = class {
|
|
23819
23826
|
constructor(directiveMatcher) {
|
|
23820
23827
|
this.directiveMatcher = directiveMatcher;
|
|
@@ -23982,13 +23989,13 @@ var DirectiveBinder = class {
|
|
|
23982
23989
|
template2.forEach((node) => node.visit(this));
|
|
23983
23990
|
}
|
|
23984
23991
|
visitElement(element2) {
|
|
23985
|
-
this.visitElementOrTemplate(element2
|
|
23992
|
+
this.visitElementOrTemplate(element2);
|
|
23986
23993
|
}
|
|
23987
23994
|
visitTemplate(template2) {
|
|
23988
|
-
this.visitElementOrTemplate(
|
|
23995
|
+
this.visitElementOrTemplate(template2);
|
|
23989
23996
|
}
|
|
23990
|
-
visitElementOrTemplate(
|
|
23991
|
-
const cssSelector =
|
|
23997
|
+
visitElementOrTemplate(node) {
|
|
23998
|
+
const cssSelector = createCssSelectorFromNode(node);
|
|
23992
23999
|
const directives = [];
|
|
23993
24000
|
this.matcher.match(cssSelector, (_selector, results) => directives.push(...results));
|
|
23994
24001
|
if (directives.length > 0) {
|
|
@@ -24419,11 +24426,11 @@ function extractScopedNodeEntities(rootScope) {
|
|
|
24419
24426
|
return templateEntities;
|
|
24420
24427
|
}
|
|
24421
24428
|
|
|
24422
|
-
// bazel-out/
|
|
24429
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/resource_loader.mjs
|
|
24423
24430
|
var ResourceLoader = class {
|
|
24424
24431
|
};
|
|
24425
24432
|
|
|
24426
|
-
// bazel-out/
|
|
24433
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
|
|
24427
24434
|
var CompilerFacadeImpl = class {
|
|
24428
24435
|
constructor(jitEvaluator = new JitEvaluator()) {
|
|
24429
24436
|
this.jitEvaluator = jitEvaluator;
|
|
@@ -24975,17 +24982,17 @@ function publishFacade(global) {
|
|
|
24975
24982
|
ng.\u0275compilerFacade = new CompilerFacadeImpl();
|
|
24976
24983
|
}
|
|
24977
24984
|
|
|
24978
|
-
// bazel-out/
|
|
24979
|
-
var VERSION2 = new Version("17.1.0-next.
|
|
24985
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
|
|
24986
|
+
var VERSION2 = new Version("17.1.0-next.2");
|
|
24980
24987
|
|
|
24981
|
-
// bazel-out/
|
|
24988
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
24982
24989
|
var _VisitorMode;
|
|
24983
24990
|
(function(_VisitorMode2) {
|
|
24984
24991
|
_VisitorMode2[_VisitorMode2["Extract"] = 0] = "Extract";
|
|
24985
24992
|
_VisitorMode2[_VisitorMode2["Merge"] = 1] = "Merge";
|
|
24986
24993
|
})(_VisitorMode || (_VisitorMode = {}));
|
|
24987
24994
|
|
|
24988
|
-
// bazel-out/
|
|
24995
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/xml_tags.mjs
|
|
24989
24996
|
var XmlTagDefinition = class {
|
|
24990
24997
|
constructor() {
|
|
24991
24998
|
this.closedByParent = false;
|
|
@@ -25007,7 +25014,7 @@ var XmlTagDefinition = class {
|
|
|
25007
25014
|
};
|
|
25008
25015
|
var _TAG_DEFINITION = new XmlTagDefinition();
|
|
25009
25016
|
|
|
25010
|
-
// bazel-out/
|
|
25017
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/api.mjs
|
|
25011
25018
|
var FactoryTarget2;
|
|
25012
25019
|
(function(FactoryTarget3) {
|
|
25013
25020
|
FactoryTarget3[FactoryTarget3["Directive"] = 0] = "Directive";
|
|
@@ -25017,10 +25024,10 @@ var FactoryTarget2;
|
|
|
25017
25024
|
FactoryTarget3[FactoryTarget3["NgModule"] = 4] = "NgModule";
|
|
25018
25025
|
})(FactoryTarget2 || (FactoryTarget2 = {}));
|
|
25019
25026
|
|
|
25020
|
-
// bazel-out/
|
|
25027
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/compiler.mjs
|
|
25021
25028
|
publishFacade(_global);
|
|
25022
25029
|
|
|
25023
|
-
// bazel-out/
|
|
25030
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/block-template-entities/util.mjs
|
|
25024
25031
|
var import_path2 = require("path");
|
|
25025
25032
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
25026
25033
|
var REPLACEMENTS2 = {
|
|
@@ -25128,7 +25135,7 @@ function forEachClass(sourceFile, callback) {
|
|
|
25128
25135
|
});
|
|
25129
25136
|
}
|
|
25130
25137
|
|
|
25131
|
-
// bazel-out/
|
|
25138
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/block-template-entities/index.mjs
|
|
25132
25139
|
function block_template_entities_default() {
|
|
25133
25140
|
return (tree) => __async(this, null, function* () {
|
|
25134
25141
|
const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);
|