python2ts 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +22 -92
- package/dist/chunk-VYG6GDWU.js +4482 -0
- package/dist/chunk-VYG6GDWU.js.map +1 -0
- package/dist/cli/index.js +1 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -6
- package/dist/index.js.map +1 -1
- package/package.json +29 -14
- package/dist/acorn-CDFV7HXL.js +0 -3131
- package/dist/acorn-CDFV7HXL.js.map +0 -1
- package/dist/angular-PCJAXZFD.js +0 -3071
- package/dist/angular-PCJAXZFD.js.map +0 -1
- package/dist/babel-O6RKFHDQ.js +0 -7297
- package/dist/babel-O6RKFHDQ.js.map +0 -1
- package/dist/chunk-DTI6R2GT.js +0 -23942
- package/dist/chunk-DTI6R2GT.js.map +0 -1
- package/dist/chunk-PZ5AY32C.js +0 -10
- package/dist/chunk-PZ5AY32C.js.map +0 -1
- package/dist/estree-467CT4RF.js +0 -4613
- package/dist/estree-467CT4RF.js.map +0 -1
- package/dist/flow-FCFYGKSM.js +0 -27547
- package/dist/flow-FCFYGKSM.js.map +0 -1
- package/dist/glimmer-P46N72G3.js +0 -2895
- package/dist/glimmer-P46N72G3.js.map +0 -1
- package/dist/graphql-TFOZJU7B.js +0 -1267
- package/dist/graphql-TFOZJU7B.js.map +0 -1
- package/dist/html-KZKNLN3R.js +0 -2934
- package/dist/html-KZKNLN3R.js.map +0 -1
- package/dist/markdown-BS2B5AKD.js +0 -3554
- package/dist/markdown-BS2B5AKD.js.map +0 -1
- package/dist/meriyah-W6HUPGCY.js +0 -2685
- package/dist/meriyah-W6HUPGCY.js.map +0 -1
- package/dist/postcss-LMJBCD2Q.js +0 -5081
- package/dist/postcss-LMJBCD2Q.js.map +0 -1
- package/dist/typescript-Y5EPKFX5.js +0 -13204
- package/dist/typescript-Y5EPKFX5.js.map +0 -1
- package/dist/yaml-ZNP3H3BX.js +0 -4225
- package/dist/yaml-ZNP3H3BX.js.map +0 -1
package/dist/angular-PCJAXZFD.js
DELETED
|
@@ -1,3071 +0,0 @@
|
|
|
1
|
-
import "./chunk-PZ5AY32C.js";
|
|
2
|
-
|
|
3
|
-
// ../../node_modules/.pnpm/prettier@3.8.0/node_modules/prettier/plugins/angular.mjs
|
|
4
|
-
var Ci = Object.defineProperty;
|
|
5
|
-
var _i = Object.getPrototypeOf;
|
|
6
|
-
var Ti = Reflect.get;
|
|
7
|
-
var an = (t24) => {
|
|
8
|
-
throw TypeError(t24);
|
|
9
|
-
};
|
|
10
|
-
var ln = (t24, e) => {
|
|
11
|
-
for (var n in e) Ci(t24, n, { get: e[n], enumerable: true });
|
|
12
|
-
};
|
|
13
|
-
var nt = (t24, e, n) => e.has(t24) || an("Cannot " + n);
|
|
14
|
-
var U = (t24, e, n) => (nt(t24, e, "read from private field"), n ? n.call(t24) : e.get(t24));
|
|
15
|
-
var ke = (t24, e, n) => e.has(t24) ? an("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t24) : e.set(t24, n);
|
|
16
|
-
var st = (t24, e, n, s) => (nt(t24, e, "write to private field"), s ? s.call(t24, n) : e.set(t24, n), n);
|
|
17
|
-
var v = (t24, e, n) => (nt(t24, e, "access private method"), n);
|
|
18
|
-
var cn = (t24, e, n) => Ti(_i(t24), n, e);
|
|
19
|
-
var Ei = {};
|
|
20
|
-
ln(Ei, { parsers: () => sn });
|
|
21
|
-
var sn = {};
|
|
22
|
-
ln(sn, { __ng_action: () => Fr, __ng_binding: () => Vr, __ng_directive: () => Hr, __ng_interpolation: () => Ur });
|
|
23
|
-
function ki(t24) {
|
|
24
|
-
return typeof t24 == "string" ? (e) => e === t24 : (e) => t24.test(e);
|
|
25
|
-
}
|
|
26
|
-
function pn(t24, e, n) {
|
|
27
|
-
let s = ki(e);
|
|
28
|
-
for (let i = n; i < t24.length; i++) {
|
|
29
|
-
let r = t24[i];
|
|
30
|
-
if (s(r)) return i;
|
|
31
|
-
}
|
|
32
|
-
throw new Error(`Cannot find character ${e} from index ${n} in ${JSON.stringify(t24)}`);
|
|
33
|
-
}
|
|
34
|
-
function hn(t24) {
|
|
35
|
-
return t24.slice(0, 1).toLowerCase() + t24.slice(1);
|
|
36
|
-
}
|
|
37
|
-
function be(t24) {
|
|
38
|
-
let { start: e, end: n } = t24;
|
|
39
|
-
return { start: e, end: n, range: [e, n] };
|
|
40
|
-
}
|
|
41
|
-
function un(t24) {
|
|
42
|
-
return !!t24.extra?.parenthesized;
|
|
43
|
-
}
|
|
44
|
-
function ue(t24) {
|
|
45
|
-
return t24.type === "TSNonNullExpression" && !un(t24) ? ue(t24.expression) : (t24.type === "OptionalCallExpression" || t24.type === "OptionalMemberExpression") && !un(t24);
|
|
46
|
-
}
|
|
47
|
-
var zr = new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`, "g");
|
|
48
|
-
var fn;
|
|
49
|
-
(function(t24) {
|
|
50
|
-
t24[t24.Emulated = 0] = "Emulated", t24[t24.None = 2] = "None", t24[t24.ShadowDom = 3] = "ShadowDom", t24[t24.ExperimentalIsolatedShadowDom = 4] = "ExperimentalIsolatedShadowDom";
|
|
51
|
-
})(fn || (fn = {}));
|
|
52
|
-
var dn;
|
|
53
|
-
(function(t24) {
|
|
54
|
-
t24[t24.OnPush = 0] = "OnPush", t24[t24.Default = 1] = "Default";
|
|
55
|
-
})(dn || (dn = {}));
|
|
56
|
-
var mn;
|
|
57
|
-
(function(t24) {
|
|
58
|
-
t24[t24.None = 0] = "None", t24[t24.SignalBased = 1] = "SignalBased", t24[t24.HasDecoratorInputTransform = 2] = "HasDecoratorInputTransform";
|
|
59
|
-
})(mn || (mn = {}));
|
|
60
|
-
var N;
|
|
61
|
-
(function(t24) {
|
|
62
|
-
t24[t24.NONE = 0] = "NONE", t24[t24.HTML = 1] = "HTML", t24[t24.STYLE = 2] = "STYLE", t24[t24.SCRIPT = 3] = "SCRIPT", t24[t24.URL = 4] = "URL", t24[t24.RESOURCE_URL = 5] = "RESOURCE_URL", t24[t24.ATTRIBUTE_NO_BINDING = 6] = "ATTRIBUTE_NO_BINDING";
|
|
63
|
-
})(N || (N = {}));
|
|
64
|
-
var gn;
|
|
65
|
-
(function(t24) {
|
|
66
|
-
t24[t24.Error = 0] = "Error", t24[t24.Warning = 1] = "Warning", t24[t24.Ignore = 2] = "Ignore";
|
|
67
|
-
})(gn || (gn = {}));
|
|
68
|
-
var vn;
|
|
69
|
-
(function(t24) {
|
|
70
|
-
t24[t24.Directive = 0] = "Directive", t24[t24.Component = 1] = "Component", t24[t24.Injectable = 2] = "Injectable", t24[t24.Pipe = 3] = "Pipe", t24[t24.NgModule = 4] = "NgModule";
|
|
71
|
-
})(vn || (vn = {}));
|
|
72
|
-
var xn;
|
|
73
|
-
(function(t24) {
|
|
74
|
-
t24[t24.Directive = 0] = "Directive", t24[t24.Pipe = 1] = "Pipe", t24[t24.NgModule = 2] = "NgModule";
|
|
75
|
-
})(xn || (xn = {}));
|
|
76
|
-
var wn;
|
|
77
|
-
(function(t24) {
|
|
78
|
-
t24[t24.Emulated = 0] = "Emulated", t24[t24.None = 2] = "None", t24[t24.ShadowDom = 3] = "ShadowDom", t24[t24.ExperimentalIsolatedShadowDom = 4] = "ExperimentalIsolatedShadowDom";
|
|
79
|
-
})(wn || (wn = {}));
|
|
80
|
-
var Sn;
|
|
81
|
-
(function(t24) {
|
|
82
|
-
t24[t24.Little = 0] = "Little", t24[t24.Big = 1] = "Big";
|
|
83
|
-
})(Sn || (Sn = {}));
|
|
84
|
-
var En;
|
|
85
|
-
(function(t24) {
|
|
86
|
-
t24[t24.None = 0] = "None", t24[t24.Const = 1] = "Const";
|
|
87
|
-
})(En || (En = {}));
|
|
88
|
-
var yn;
|
|
89
|
-
(function(t24) {
|
|
90
|
-
t24[t24.Dynamic = 0] = "Dynamic", t24[t24.Bool = 1] = "Bool", t24[t24.String = 2] = "String", t24[t24.Int = 3] = "Int", t24[t24.Number = 4] = "Number", t24[t24.Function = 5] = "Function", t24[t24.Inferred = 6] = "Inferred", t24[t24.None = 7] = "None";
|
|
91
|
-
})(yn || (yn = {}));
|
|
92
|
-
var Cn;
|
|
93
|
-
(function(t24) {
|
|
94
|
-
t24[t24.Minus = 0] = "Minus", t24[t24.Plus = 1] = "Plus";
|
|
95
|
-
})(Cn || (Cn = {}));
|
|
96
|
-
var c;
|
|
97
|
-
(function(t24) {
|
|
98
|
-
t24[t24.Equals = 0] = "Equals", t24[t24.NotEquals = 1] = "NotEquals", t24[t24.Assign = 2] = "Assign", t24[t24.Identical = 3] = "Identical", t24[t24.NotIdentical = 4] = "NotIdentical", t24[t24.Minus = 5] = "Minus", t24[t24.Plus = 6] = "Plus", t24[t24.Divide = 7] = "Divide", t24[t24.Multiply = 8] = "Multiply", t24[t24.Modulo = 9] = "Modulo", t24[t24.And = 10] = "And", t24[t24.Or = 11] = "Or", t24[t24.BitwiseOr = 12] = "BitwiseOr", t24[t24.BitwiseAnd = 13] = "BitwiseAnd", t24[t24.Lower = 14] = "Lower", t24[t24.LowerEquals = 15] = "LowerEquals", t24[t24.Bigger = 16] = "Bigger", t24[t24.BiggerEquals = 17] = "BiggerEquals", t24[t24.NullishCoalesce = 18] = "NullishCoalesce", t24[t24.Exponentiation = 19] = "Exponentiation", t24[t24.In = 20] = "In", t24[t24.AdditionAssignment = 21] = "AdditionAssignment", t24[t24.SubtractionAssignment = 22] = "SubtractionAssignment", t24[t24.MultiplicationAssignment = 23] = "MultiplicationAssignment", t24[t24.DivisionAssignment = 24] = "DivisionAssignment", t24[t24.RemainderAssignment = 25] = "RemainderAssignment", t24[t24.ExponentiationAssignment = 26] = "ExponentiationAssignment", t24[t24.AndAssignment = 27] = "AndAssignment", t24[t24.OrAssignment = 28] = "OrAssignment", t24[t24.NullishCoalesceAssignment = 29] = "NullishCoalesceAssignment";
|
|
99
|
-
})(c || (c = {}));
|
|
100
|
-
function bi(t24, e) {
|
|
101
|
-
return t24 == null || e == null ? t24 == e : t24.isEquivalent(e);
|
|
102
|
-
}
|
|
103
|
-
function Ai(t24, e, n) {
|
|
104
|
-
let s = t24.length;
|
|
105
|
-
if (s !== e.length) return false;
|
|
106
|
-
for (let i = 0; i < s; i++) if (!n(t24[i], e[i])) return false;
|
|
107
|
-
return true;
|
|
108
|
-
}
|
|
109
|
-
function Ge(t24, e) {
|
|
110
|
-
return Ai(t24, e, (n, s) => n.isEquivalent(s));
|
|
111
|
-
}
|
|
112
|
-
var S = class {
|
|
113
|
-
type;
|
|
114
|
-
sourceSpan;
|
|
115
|
-
constructor(e, n) {
|
|
116
|
-
this.type = e || null, this.sourceSpan = n || null;
|
|
117
|
-
}
|
|
118
|
-
prop(e, n) {
|
|
119
|
-
return new ht(this, e, null, n);
|
|
120
|
-
}
|
|
121
|
-
key(e, n, s) {
|
|
122
|
-
return new ft(this, e, n, s);
|
|
123
|
-
}
|
|
124
|
-
callFn(e, n, s) {
|
|
125
|
-
return new at(this, e, null, n, s);
|
|
126
|
-
}
|
|
127
|
-
instantiate(e, n, s) {
|
|
128
|
-
return new lt(this, e, n, s);
|
|
129
|
-
}
|
|
130
|
-
conditional(e, n = null, s) {
|
|
131
|
-
return new pt(this, e, n, null, s);
|
|
132
|
-
}
|
|
133
|
-
equals(e, n) {
|
|
134
|
-
return new x(c.Equals, this, e, null, n);
|
|
135
|
-
}
|
|
136
|
-
notEquals(e, n) {
|
|
137
|
-
return new x(c.NotEquals, this, e, null, n);
|
|
138
|
-
}
|
|
139
|
-
identical(e, n) {
|
|
140
|
-
return new x(c.Identical, this, e, null, n);
|
|
141
|
-
}
|
|
142
|
-
notIdentical(e, n) {
|
|
143
|
-
return new x(c.NotIdentical, this, e, null, n);
|
|
144
|
-
}
|
|
145
|
-
minus(e, n) {
|
|
146
|
-
return new x(c.Minus, this, e, null, n);
|
|
147
|
-
}
|
|
148
|
-
plus(e, n) {
|
|
149
|
-
return new x(c.Plus, this, e, null, n);
|
|
150
|
-
}
|
|
151
|
-
divide(e, n) {
|
|
152
|
-
return new x(c.Divide, this, e, null, n);
|
|
153
|
-
}
|
|
154
|
-
multiply(e, n) {
|
|
155
|
-
return new x(c.Multiply, this, e, null, n);
|
|
156
|
-
}
|
|
157
|
-
modulo(e, n) {
|
|
158
|
-
return new x(c.Modulo, this, e, null, n);
|
|
159
|
-
}
|
|
160
|
-
power(e, n) {
|
|
161
|
-
return new x(c.Exponentiation, this, e, null, n);
|
|
162
|
-
}
|
|
163
|
-
and(e, n) {
|
|
164
|
-
return new x(c.And, this, e, null, n);
|
|
165
|
-
}
|
|
166
|
-
bitwiseOr(e, n) {
|
|
167
|
-
return new x(c.BitwiseOr, this, e, null, n);
|
|
168
|
-
}
|
|
169
|
-
bitwiseAnd(e, n) {
|
|
170
|
-
return new x(c.BitwiseAnd, this, e, null, n);
|
|
171
|
-
}
|
|
172
|
-
or(e, n) {
|
|
173
|
-
return new x(c.Or, this, e, null, n);
|
|
174
|
-
}
|
|
175
|
-
lower(e, n) {
|
|
176
|
-
return new x(c.Lower, this, e, null, n);
|
|
177
|
-
}
|
|
178
|
-
lowerEquals(e, n) {
|
|
179
|
-
return new x(c.LowerEquals, this, e, null, n);
|
|
180
|
-
}
|
|
181
|
-
bigger(e, n) {
|
|
182
|
-
return new x(c.Bigger, this, e, null, n);
|
|
183
|
-
}
|
|
184
|
-
biggerEquals(e, n) {
|
|
185
|
-
return new x(c.BiggerEquals, this, e, null, n);
|
|
186
|
-
}
|
|
187
|
-
isBlank(e) {
|
|
188
|
-
return this.equals(TYPED_NULL_EXPR, e);
|
|
189
|
-
}
|
|
190
|
-
nullishCoalesce(e, n) {
|
|
191
|
-
return new x(c.NullishCoalesce, this, e, null, n);
|
|
192
|
-
}
|
|
193
|
-
toStmt() {
|
|
194
|
-
return new wt(this, null);
|
|
195
|
-
}
|
|
196
|
-
};
|
|
197
|
-
var rt = class t extends S {
|
|
198
|
-
name;
|
|
199
|
-
constructor(e, n, s) {
|
|
200
|
-
super(n, s), this.name = e;
|
|
201
|
-
}
|
|
202
|
-
isEquivalent(e) {
|
|
203
|
-
return e instanceof t && this.name === e.name;
|
|
204
|
-
}
|
|
205
|
-
isConstant() {
|
|
206
|
-
return false;
|
|
207
|
-
}
|
|
208
|
-
visitExpression(e, n) {
|
|
209
|
-
return e.visitReadVarExpr(this, n);
|
|
210
|
-
}
|
|
211
|
-
clone() {
|
|
212
|
-
return new t(this.name, this.type, this.sourceSpan);
|
|
213
|
-
}
|
|
214
|
-
set(e) {
|
|
215
|
-
return new x(c.Assign, this, e, null, this.sourceSpan);
|
|
216
|
-
}
|
|
217
|
-
};
|
|
218
|
-
var ot = class t2 extends S {
|
|
219
|
-
expr;
|
|
220
|
-
constructor(e, n, s) {
|
|
221
|
-
super(n, s), this.expr = e;
|
|
222
|
-
}
|
|
223
|
-
visitExpression(e, n) {
|
|
224
|
-
return e.visitTypeofExpr(this, n);
|
|
225
|
-
}
|
|
226
|
-
isEquivalent(e) {
|
|
227
|
-
return e instanceof t2 && e.expr.isEquivalent(this.expr);
|
|
228
|
-
}
|
|
229
|
-
isConstant() {
|
|
230
|
-
return this.expr.isConstant();
|
|
231
|
-
}
|
|
232
|
-
clone() {
|
|
233
|
-
return new t2(this.expr.clone());
|
|
234
|
-
}
|
|
235
|
-
};
|
|
236
|
-
var at = class t3 extends S {
|
|
237
|
-
fn;
|
|
238
|
-
args;
|
|
239
|
-
pure;
|
|
240
|
-
constructor(e, n, s, i, r = false) {
|
|
241
|
-
super(s, i), this.fn = e, this.args = n, this.pure = r;
|
|
242
|
-
}
|
|
243
|
-
get receiver() {
|
|
244
|
-
return this.fn;
|
|
245
|
-
}
|
|
246
|
-
isEquivalent(e) {
|
|
247
|
-
return e instanceof t3 && this.fn.isEquivalent(e.fn) && Ge(this.args, e.args) && this.pure === e.pure;
|
|
248
|
-
}
|
|
249
|
-
isConstant() {
|
|
250
|
-
return false;
|
|
251
|
-
}
|
|
252
|
-
visitExpression(e, n) {
|
|
253
|
-
return e.visitInvokeFunctionExpr(this, n);
|
|
254
|
-
}
|
|
255
|
-
clone() {
|
|
256
|
-
return new t3(this.fn.clone(), this.args.map((e) => e.clone()), this.type, this.sourceSpan, this.pure);
|
|
257
|
-
}
|
|
258
|
-
};
|
|
259
|
-
var lt = class t4 extends S {
|
|
260
|
-
classExpr;
|
|
261
|
-
args;
|
|
262
|
-
constructor(e, n, s, i) {
|
|
263
|
-
super(s, i), this.classExpr = e, this.args = n;
|
|
264
|
-
}
|
|
265
|
-
isEquivalent(e) {
|
|
266
|
-
return e instanceof t4 && this.classExpr.isEquivalent(e.classExpr) && Ge(this.args, e.args);
|
|
267
|
-
}
|
|
268
|
-
isConstant() {
|
|
269
|
-
return false;
|
|
270
|
-
}
|
|
271
|
-
visitExpression(e, n) {
|
|
272
|
-
return e.visitInstantiateExpr(this, n);
|
|
273
|
-
}
|
|
274
|
-
clone() {
|
|
275
|
-
return new t4(this.classExpr.clone(), this.args.map((e) => e.clone()), this.type, this.sourceSpan);
|
|
276
|
-
}
|
|
277
|
-
};
|
|
278
|
-
var ct = class t5 extends S {
|
|
279
|
-
body;
|
|
280
|
-
flags;
|
|
281
|
-
constructor(e, n, s) {
|
|
282
|
-
super(null, s), this.body = e, this.flags = n;
|
|
283
|
-
}
|
|
284
|
-
isEquivalent(e) {
|
|
285
|
-
return e instanceof t5 && this.body === e.body && this.flags === e.flags;
|
|
286
|
-
}
|
|
287
|
-
isConstant() {
|
|
288
|
-
return true;
|
|
289
|
-
}
|
|
290
|
-
visitExpression(e, n) {
|
|
291
|
-
return e.visitRegularExpressionLiteral(this, n);
|
|
292
|
-
}
|
|
293
|
-
clone() {
|
|
294
|
-
return new t5(this.body, this.flags, this.sourceSpan);
|
|
295
|
-
}
|
|
296
|
-
};
|
|
297
|
-
var Ne = class t6 extends S {
|
|
298
|
-
value;
|
|
299
|
-
constructor(e, n, s) {
|
|
300
|
-
super(n, s), this.value = e;
|
|
301
|
-
}
|
|
302
|
-
isEquivalent(e) {
|
|
303
|
-
return e instanceof t6 && this.value === e.value;
|
|
304
|
-
}
|
|
305
|
-
isConstant() {
|
|
306
|
-
return true;
|
|
307
|
-
}
|
|
308
|
-
visitExpression(e, n) {
|
|
309
|
-
return e.visitLiteralExpr(this, n);
|
|
310
|
-
}
|
|
311
|
-
clone() {
|
|
312
|
-
return new t6(this.value, this.type, this.sourceSpan);
|
|
313
|
-
}
|
|
314
|
-
};
|
|
315
|
-
var ut = class t7 extends S {
|
|
316
|
-
value;
|
|
317
|
-
typeParams;
|
|
318
|
-
constructor(e, n, s = null, i) {
|
|
319
|
-
super(n, i), this.value = e, this.typeParams = s;
|
|
320
|
-
}
|
|
321
|
-
isEquivalent(e) {
|
|
322
|
-
return e instanceof t7 && this.value.name === e.value.name && this.value.moduleName === e.value.moduleName;
|
|
323
|
-
}
|
|
324
|
-
isConstant() {
|
|
325
|
-
return false;
|
|
326
|
-
}
|
|
327
|
-
visitExpression(e, n) {
|
|
328
|
-
return e.visitExternalExpr(this, n);
|
|
329
|
-
}
|
|
330
|
-
clone() {
|
|
331
|
-
return new t7(this.value, this.type, this.typeParams, this.sourceSpan);
|
|
332
|
-
}
|
|
333
|
-
};
|
|
334
|
-
var pt = class t8 extends S {
|
|
335
|
-
condition;
|
|
336
|
-
falseCase;
|
|
337
|
-
trueCase;
|
|
338
|
-
constructor(e, n, s = null, i, r) {
|
|
339
|
-
super(i || n.type, r), this.condition = e, this.falseCase = s, this.trueCase = n;
|
|
340
|
-
}
|
|
341
|
-
isEquivalent(e) {
|
|
342
|
-
return e instanceof t8 && this.condition.isEquivalent(e.condition) && this.trueCase.isEquivalent(e.trueCase) && bi(this.falseCase, e.falseCase);
|
|
343
|
-
}
|
|
344
|
-
isConstant() {
|
|
345
|
-
return false;
|
|
346
|
-
}
|
|
347
|
-
visitExpression(e, n) {
|
|
348
|
-
return e.visitConditionalExpr(this, n);
|
|
349
|
-
}
|
|
350
|
-
clone() {
|
|
351
|
-
return new t8(this.condition.clone(), this.trueCase.clone(), this.falseCase?.clone(), this.type, this.sourceSpan);
|
|
352
|
-
}
|
|
353
|
-
};
|
|
354
|
-
var x = class t9 extends S {
|
|
355
|
-
operator;
|
|
356
|
-
rhs;
|
|
357
|
-
lhs;
|
|
358
|
-
constructor(e, n, s, i, r) {
|
|
359
|
-
super(i || n.type, r), this.operator = e, this.rhs = s, this.lhs = n;
|
|
360
|
-
}
|
|
361
|
-
isEquivalent(e) {
|
|
362
|
-
return e instanceof t9 && this.operator === e.operator && this.lhs.isEquivalent(e.lhs) && this.rhs.isEquivalent(e.rhs);
|
|
363
|
-
}
|
|
364
|
-
isConstant() {
|
|
365
|
-
return false;
|
|
366
|
-
}
|
|
367
|
-
visitExpression(e, n) {
|
|
368
|
-
return e.visitBinaryOperatorExpr(this, n);
|
|
369
|
-
}
|
|
370
|
-
clone() {
|
|
371
|
-
return new t9(this.operator, this.lhs.clone(), this.rhs.clone(), this.type, this.sourceSpan);
|
|
372
|
-
}
|
|
373
|
-
isAssignment() {
|
|
374
|
-
let e = this.operator;
|
|
375
|
-
return e === c.Assign || e === c.AdditionAssignment || e === c.SubtractionAssignment || e === c.MultiplicationAssignment || e === c.DivisionAssignment || e === c.RemainderAssignment || e === c.ExponentiationAssignment || e === c.AndAssignment || e === c.OrAssignment || e === c.NullishCoalesceAssignment;
|
|
376
|
-
}
|
|
377
|
-
};
|
|
378
|
-
var ht = class t10 extends S {
|
|
379
|
-
receiver;
|
|
380
|
-
name;
|
|
381
|
-
constructor(e, n, s, i) {
|
|
382
|
-
super(s, i), this.receiver = e, this.name = n;
|
|
383
|
-
}
|
|
384
|
-
get index() {
|
|
385
|
-
return this.name;
|
|
386
|
-
}
|
|
387
|
-
isEquivalent(e) {
|
|
388
|
-
return e instanceof t10 && this.receiver.isEquivalent(e.receiver) && this.name === e.name;
|
|
389
|
-
}
|
|
390
|
-
isConstant() {
|
|
391
|
-
return false;
|
|
392
|
-
}
|
|
393
|
-
visitExpression(e, n) {
|
|
394
|
-
return e.visitReadPropExpr(this, n);
|
|
395
|
-
}
|
|
396
|
-
set(e) {
|
|
397
|
-
return new x(c.Assign, this.receiver.prop(this.name), e, null, this.sourceSpan);
|
|
398
|
-
}
|
|
399
|
-
clone() {
|
|
400
|
-
return new t10(this.receiver.clone(), this.name, this.type, this.sourceSpan);
|
|
401
|
-
}
|
|
402
|
-
};
|
|
403
|
-
var ft = class t11 extends S {
|
|
404
|
-
receiver;
|
|
405
|
-
index;
|
|
406
|
-
constructor(e, n, s, i) {
|
|
407
|
-
super(s, i), this.receiver = e, this.index = n;
|
|
408
|
-
}
|
|
409
|
-
isEquivalent(e) {
|
|
410
|
-
return e instanceof t11 && this.receiver.isEquivalent(e.receiver) && this.index.isEquivalent(e.index);
|
|
411
|
-
}
|
|
412
|
-
isConstant() {
|
|
413
|
-
return false;
|
|
414
|
-
}
|
|
415
|
-
visitExpression(e, n) {
|
|
416
|
-
return e.visitReadKeyExpr(this, n);
|
|
417
|
-
}
|
|
418
|
-
set(e) {
|
|
419
|
-
return new x(c.Assign, this.receiver.key(this.index), e, null, this.sourceSpan);
|
|
420
|
-
}
|
|
421
|
-
clone() {
|
|
422
|
-
return new t11(this.receiver.clone(), this.index.clone(), this.type, this.sourceSpan);
|
|
423
|
-
}
|
|
424
|
-
};
|
|
425
|
-
var dt = class t12 extends S {
|
|
426
|
-
entries;
|
|
427
|
-
constructor(e, n, s) {
|
|
428
|
-
super(n, s), this.entries = e;
|
|
429
|
-
}
|
|
430
|
-
isConstant() {
|
|
431
|
-
return this.entries.every((e) => e.isConstant());
|
|
432
|
-
}
|
|
433
|
-
isEquivalent(e) {
|
|
434
|
-
return e instanceof t12 && Ge(this.entries, e.entries);
|
|
435
|
-
}
|
|
436
|
-
visitExpression(e, n) {
|
|
437
|
-
return e.visitLiteralArrayExpr(this, n);
|
|
438
|
-
}
|
|
439
|
-
clone() {
|
|
440
|
-
return new t12(this.entries.map((e) => e.clone()), this.type, this.sourceSpan);
|
|
441
|
-
}
|
|
442
|
-
};
|
|
443
|
-
var mt = class t13 {
|
|
444
|
-
expression;
|
|
445
|
-
constructor(e) {
|
|
446
|
-
this.expression = e;
|
|
447
|
-
}
|
|
448
|
-
isEquivalent(e) {
|
|
449
|
-
return e instanceof t13 && this.expression.isEquivalent(e.expression);
|
|
450
|
-
}
|
|
451
|
-
clone() {
|
|
452
|
-
return new t13(this.expression.clone());
|
|
453
|
-
}
|
|
454
|
-
isConstant() {
|
|
455
|
-
return this.expression.isConstant();
|
|
456
|
-
}
|
|
457
|
-
};
|
|
458
|
-
var gt = class t14 extends S {
|
|
459
|
-
entries;
|
|
460
|
-
valueType = null;
|
|
461
|
-
constructor(e, n, s) {
|
|
462
|
-
super(n, s), this.entries = e, n && (this.valueType = n.valueType);
|
|
463
|
-
}
|
|
464
|
-
isEquivalent(e) {
|
|
465
|
-
return e instanceof t14 && Ge(this.entries, e.entries);
|
|
466
|
-
}
|
|
467
|
-
isConstant() {
|
|
468
|
-
return this.entries.every((e) => e.isConstant());
|
|
469
|
-
}
|
|
470
|
-
visitExpression(e, n) {
|
|
471
|
-
return e.visitLiteralMapExpr(this, n);
|
|
472
|
-
}
|
|
473
|
-
clone() {
|
|
474
|
-
let e = this.entries.map((n) => n.clone());
|
|
475
|
-
return new t14(e, this.type, this.sourceSpan);
|
|
476
|
-
}
|
|
477
|
-
};
|
|
478
|
-
var vt = class t15 extends S {
|
|
479
|
-
expression;
|
|
480
|
-
constructor(e, n) {
|
|
481
|
-
super(null, n), this.expression = e;
|
|
482
|
-
}
|
|
483
|
-
isEquivalent(e) {
|
|
484
|
-
return e instanceof t15 && this.expression.isEquivalent(e.expression);
|
|
485
|
-
}
|
|
486
|
-
isConstant() {
|
|
487
|
-
return this.expression.isConstant();
|
|
488
|
-
}
|
|
489
|
-
visitExpression(e, n) {
|
|
490
|
-
return e.visitSpreadElementExpr(this, n);
|
|
491
|
-
}
|
|
492
|
-
clone() {
|
|
493
|
-
return new t15(this.expression.clone(), this.sourceSpan);
|
|
494
|
-
}
|
|
495
|
-
};
|
|
496
|
-
var Pe;
|
|
497
|
-
(function(t24) {
|
|
498
|
-
t24[t24.None = 0] = "None", t24[t24.Final = 1] = "Final", t24[t24.Private = 2] = "Private", t24[t24.Exported = 4] = "Exported", t24[t24.Static = 8] = "Static";
|
|
499
|
-
})(Pe || (Pe = {}));
|
|
500
|
-
var xt = class {
|
|
501
|
-
modifiers;
|
|
502
|
-
sourceSpan;
|
|
503
|
-
leadingComments;
|
|
504
|
-
constructor(e = Pe.None, n = null, s) {
|
|
505
|
-
this.modifiers = e, this.sourceSpan = n, this.leadingComments = s;
|
|
506
|
-
}
|
|
507
|
-
hasModifier(e) {
|
|
508
|
-
return (this.modifiers & e) !== 0;
|
|
509
|
-
}
|
|
510
|
-
addLeadingComment(e) {
|
|
511
|
-
this.leadingComments = this.leadingComments ?? [], this.leadingComments.push(e);
|
|
512
|
-
}
|
|
513
|
-
};
|
|
514
|
-
var wt = class t16 extends xt {
|
|
515
|
-
expr;
|
|
516
|
-
constructor(e, n, s) {
|
|
517
|
-
super(Pe.None, n, s), this.expr = e;
|
|
518
|
-
}
|
|
519
|
-
isEquivalent(e) {
|
|
520
|
-
return e instanceof t16 && this.expr.isEquivalent(e.expr);
|
|
521
|
-
}
|
|
522
|
-
visitStatement(e, n) {
|
|
523
|
-
return e.visitExpressionStmt(this, n);
|
|
524
|
-
}
|
|
525
|
-
};
|
|
526
|
-
var _n = class t17 {
|
|
527
|
-
static INSTANCE = new t17();
|
|
528
|
-
keyOf(e) {
|
|
529
|
-
if (e instanceof Ne && typeof e.value == "string") return `"${e.value}"`;
|
|
530
|
-
if (e instanceof Ne) return String(e.value);
|
|
531
|
-
if (e instanceof ct) return `/${e.body}/${e.flags ?? ""}`;
|
|
532
|
-
if (e instanceof dt) {
|
|
533
|
-
let n = [];
|
|
534
|
-
for (let s of e.entries) n.push(this.keyOf(s));
|
|
535
|
-
return `[${n.join(",")}]`;
|
|
536
|
-
} else if (e instanceof gt) {
|
|
537
|
-
let n = [];
|
|
538
|
-
for (let s of e.entries) if (s instanceof mt) n.push("..." + this.keyOf(s.expression));
|
|
539
|
-
else {
|
|
540
|
-
let i = s.key;
|
|
541
|
-
s.quoted && (i = `"${i}"`), n.push(i + ":" + this.keyOf(s.value));
|
|
542
|
-
}
|
|
543
|
-
return `{${n.join(",")}}`;
|
|
544
|
-
} else {
|
|
545
|
-
if (e instanceof ut) return `import("${e.value.moduleName}", ${e.value.name})`;
|
|
546
|
-
if (e instanceof rt) return `read(${e.name})`;
|
|
547
|
-
if (e instanceof ot) return `typeof(${this.keyOf(e.expr)})`;
|
|
548
|
-
if (e instanceof vt) return `...${this.keyOf(e.expression)}`;
|
|
549
|
-
throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`);
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
};
|
|
553
|
-
var o = "@angular/core";
|
|
554
|
-
var l = class {
|
|
555
|
-
static NEW_METHOD = "factory";
|
|
556
|
-
static TRANSFORM_METHOD = "transform";
|
|
557
|
-
static PATCH_DEPS = "patchedDeps";
|
|
558
|
-
static core = { name: null, moduleName: o };
|
|
559
|
-
static namespaceHTML = { name: "\u0275\u0275namespaceHTML", moduleName: o };
|
|
560
|
-
static namespaceMathML = { name: "\u0275\u0275namespaceMathML", moduleName: o };
|
|
561
|
-
static namespaceSVG = { name: "\u0275\u0275namespaceSVG", moduleName: o };
|
|
562
|
-
static element = { name: "\u0275\u0275element", moduleName: o };
|
|
563
|
-
static elementStart = { name: "\u0275\u0275elementStart", moduleName: o };
|
|
564
|
-
static elementEnd = { name: "\u0275\u0275elementEnd", moduleName: o };
|
|
565
|
-
static domElement = { name: "\u0275\u0275domElement", moduleName: o };
|
|
566
|
-
static domElementStart = { name: "\u0275\u0275domElementStart", moduleName: o };
|
|
567
|
-
static domElementEnd = { name: "\u0275\u0275domElementEnd", moduleName: o };
|
|
568
|
-
static domElementContainer = { name: "\u0275\u0275domElementContainer", moduleName: o };
|
|
569
|
-
static domElementContainerStart = { name: "\u0275\u0275domElementContainerStart", moduleName: o };
|
|
570
|
-
static domElementContainerEnd = { name: "\u0275\u0275domElementContainerEnd", moduleName: o };
|
|
571
|
-
static domTemplate = { name: "\u0275\u0275domTemplate", moduleName: o };
|
|
572
|
-
static domListener = { name: "\u0275\u0275domListener", moduleName: o };
|
|
573
|
-
static advance = { name: "\u0275\u0275advance", moduleName: o };
|
|
574
|
-
static syntheticHostProperty = { name: "\u0275\u0275syntheticHostProperty", moduleName: o };
|
|
575
|
-
static syntheticHostListener = { name: "\u0275\u0275syntheticHostListener", moduleName: o };
|
|
576
|
-
static attribute = { name: "\u0275\u0275attribute", moduleName: o };
|
|
577
|
-
static classProp = { name: "\u0275\u0275classProp", moduleName: o };
|
|
578
|
-
static elementContainerStart = { name: "\u0275\u0275elementContainerStart", moduleName: o };
|
|
579
|
-
static elementContainerEnd = { name: "\u0275\u0275elementContainerEnd", moduleName: o };
|
|
580
|
-
static elementContainer = { name: "\u0275\u0275elementContainer", moduleName: o };
|
|
581
|
-
static styleMap = { name: "\u0275\u0275styleMap", moduleName: o };
|
|
582
|
-
static classMap = { name: "\u0275\u0275classMap", moduleName: o };
|
|
583
|
-
static styleProp = { name: "\u0275\u0275styleProp", moduleName: o };
|
|
584
|
-
static interpolate = { name: "\u0275\u0275interpolate", moduleName: o };
|
|
585
|
-
static interpolate1 = { name: "\u0275\u0275interpolate1", moduleName: o };
|
|
586
|
-
static interpolate2 = { name: "\u0275\u0275interpolate2", moduleName: o };
|
|
587
|
-
static interpolate3 = { name: "\u0275\u0275interpolate3", moduleName: o };
|
|
588
|
-
static interpolate4 = { name: "\u0275\u0275interpolate4", moduleName: o };
|
|
589
|
-
static interpolate5 = { name: "\u0275\u0275interpolate5", moduleName: o };
|
|
590
|
-
static interpolate6 = { name: "\u0275\u0275interpolate6", moduleName: o };
|
|
591
|
-
static interpolate7 = { name: "\u0275\u0275interpolate7", moduleName: o };
|
|
592
|
-
static interpolate8 = { name: "\u0275\u0275interpolate8", moduleName: o };
|
|
593
|
-
static interpolateV = { name: "\u0275\u0275interpolateV", moduleName: o };
|
|
594
|
-
static nextContext = { name: "\u0275\u0275nextContext", moduleName: o };
|
|
595
|
-
static resetView = { name: "\u0275\u0275resetView", moduleName: o };
|
|
596
|
-
static templateCreate = { name: "\u0275\u0275template", moduleName: o };
|
|
597
|
-
static defer = { name: "\u0275\u0275defer", moduleName: o };
|
|
598
|
-
static deferWhen = { name: "\u0275\u0275deferWhen", moduleName: o };
|
|
599
|
-
static deferOnIdle = { name: "\u0275\u0275deferOnIdle", moduleName: o };
|
|
600
|
-
static deferOnImmediate = { name: "\u0275\u0275deferOnImmediate", moduleName: o };
|
|
601
|
-
static deferOnTimer = { name: "\u0275\u0275deferOnTimer", moduleName: o };
|
|
602
|
-
static deferOnHover = { name: "\u0275\u0275deferOnHover", moduleName: o };
|
|
603
|
-
static deferOnInteraction = { name: "\u0275\u0275deferOnInteraction", moduleName: o };
|
|
604
|
-
static deferOnViewport = { name: "\u0275\u0275deferOnViewport", moduleName: o };
|
|
605
|
-
static deferPrefetchWhen = { name: "\u0275\u0275deferPrefetchWhen", moduleName: o };
|
|
606
|
-
static deferPrefetchOnIdle = { name: "\u0275\u0275deferPrefetchOnIdle", moduleName: o };
|
|
607
|
-
static deferPrefetchOnImmediate = { name: "\u0275\u0275deferPrefetchOnImmediate", moduleName: o };
|
|
608
|
-
static deferPrefetchOnTimer = { name: "\u0275\u0275deferPrefetchOnTimer", moduleName: o };
|
|
609
|
-
static deferPrefetchOnHover = { name: "\u0275\u0275deferPrefetchOnHover", moduleName: o };
|
|
610
|
-
static deferPrefetchOnInteraction = { name: "\u0275\u0275deferPrefetchOnInteraction", moduleName: o };
|
|
611
|
-
static deferPrefetchOnViewport = { name: "\u0275\u0275deferPrefetchOnViewport", moduleName: o };
|
|
612
|
-
static deferHydrateWhen = { name: "\u0275\u0275deferHydrateWhen", moduleName: o };
|
|
613
|
-
static deferHydrateNever = { name: "\u0275\u0275deferHydrateNever", moduleName: o };
|
|
614
|
-
static deferHydrateOnIdle = { name: "\u0275\u0275deferHydrateOnIdle", moduleName: o };
|
|
615
|
-
static deferHydrateOnImmediate = { name: "\u0275\u0275deferHydrateOnImmediate", moduleName: o };
|
|
616
|
-
static deferHydrateOnTimer = { name: "\u0275\u0275deferHydrateOnTimer", moduleName: o };
|
|
617
|
-
static deferHydrateOnHover = { name: "\u0275\u0275deferHydrateOnHover", moduleName: o };
|
|
618
|
-
static deferHydrateOnInteraction = { name: "\u0275\u0275deferHydrateOnInteraction", moduleName: o };
|
|
619
|
-
static deferHydrateOnViewport = { name: "\u0275\u0275deferHydrateOnViewport", moduleName: o };
|
|
620
|
-
static deferEnableTimerScheduling = { name: "\u0275\u0275deferEnableTimerScheduling", moduleName: o };
|
|
621
|
-
static conditionalCreate = { name: "\u0275\u0275conditionalCreate", moduleName: o };
|
|
622
|
-
static conditionalBranchCreate = { name: "\u0275\u0275conditionalBranchCreate", moduleName: o };
|
|
623
|
-
static conditional = { name: "\u0275\u0275conditional", moduleName: o };
|
|
624
|
-
static repeater = { name: "\u0275\u0275repeater", moduleName: o };
|
|
625
|
-
static repeaterCreate = { name: "\u0275\u0275repeaterCreate", moduleName: o };
|
|
626
|
-
static repeaterTrackByIndex = { name: "\u0275\u0275repeaterTrackByIndex", moduleName: o };
|
|
627
|
-
static repeaterTrackByIdentity = { name: "\u0275\u0275repeaterTrackByIdentity", moduleName: o };
|
|
628
|
-
static componentInstance = { name: "\u0275\u0275componentInstance", moduleName: o };
|
|
629
|
-
static text = { name: "\u0275\u0275text", moduleName: o };
|
|
630
|
-
static enableBindings = { name: "\u0275\u0275enableBindings", moduleName: o };
|
|
631
|
-
static disableBindings = { name: "\u0275\u0275disableBindings", moduleName: o };
|
|
632
|
-
static getCurrentView = { name: "\u0275\u0275getCurrentView", moduleName: o };
|
|
633
|
-
static textInterpolate = { name: "\u0275\u0275textInterpolate", moduleName: o };
|
|
634
|
-
static textInterpolate1 = { name: "\u0275\u0275textInterpolate1", moduleName: o };
|
|
635
|
-
static textInterpolate2 = { name: "\u0275\u0275textInterpolate2", moduleName: o };
|
|
636
|
-
static textInterpolate3 = { name: "\u0275\u0275textInterpolate3", moduleName: o };
|
|
637
|
-
static textInterpolate4 = { name: "\u0275\u0275textInterpolate4", moduleName: o };
|
|
638
|
-
static textInterpolate5 = { name: "\u0275\u0275textInterpolate5", moduleName: o };
|
|
639
|
-
static textInterpolate6 = { name: "\u0275\u0275textInterpolate6", moduleName: o };
|
|
640
|
-
static textInterpolate7 = { name: "\u0275\u0275textInterpolate7", moduleName: o };
|
|
641
|
-
static textInterpolate8 = { name: "\u0275\u0275textInterpolate8", moduleName: o };
|
|
642
|
-
static textInterpolateV = { name: "\u0275\u0275textInterpolateV", moduleName: o };
|
|
643
|
-
static restoreView = { name: "\u0275\u0275restoreView", moduleName: o };
|
|
644
|
-
static pureFunction0 = { name: "\u0275\u0275pureFunction0", moduleName: o };
|
|
645
|
-
static pureFunction1 = { name: "\u0275\u0275pureFunction1", moduleName: o };
|
|
646
|
-
static pureFunction2 = { name: "\u0275\u0275pureFunction2", moduleName: o };
|
|
647
|
-
static pureFunction3 = { name: "\u0275\u0275pureFunction3", moduleName: o };
|
|
648
|
-
static pureFunction4 = { name: "\u0275\u0275pureFunction4", moduleName: o };
|
|
649
|
-
static pureFunction5 = { name: "\u0275\u0275pureFunction5", moduleName: o };
|
|
650
|
-
static pureFunction6 = { name: "\u0275\u0275pureFunction6", moduleName: o };
|
|
651
|
-
static pureFunction7 = { name: "\u0275\u0275pureFunction7", moduleName: o };
|
|
652
|
-
static pureFunction8 = { name: "\u0275\u0275pureFunction8", moduleName: o };
|
|
653
|
-
static pureFunctionV = { name: "\u0275\u0275pureFunctionV", moduleName: o };
|
|
654
|
-
static pipeBind1 = { name: "\u0275\u0275pipeBind1", moduleName: o };
|
|
655
|
-
static pipeBind2 = { name: "\u0275\u0275pipeBind2", moduleName: o };
|
|
656
|
-
static pipeBind3 = { name: "\u0275\u0275pipeBind3", moduleName: o };
|
|
657
|
-
static pipeBind4 = { name: "\u0275\u0275pipeBind4", moduleName: o };
|
|
658
|
-
static pipeBindV = { name: "\u0275\u0275pipeBindV", moduleName: o };
|
|
659
|
-
static domProperty = { name: "\u0275\u0275domProperty", moduleName: o };
|
|
660
|
-
static ariaProperty = { name: "\u0275\u0275ariaProperty", moduleName: o };
|
|
661
|
-
static property = { name: "\u0275\u0275property", moduleName: o };
|
|
662
|
-
static control = { name: "\u0275\u0275control", moduleName: o };
|
|
663
|
-
static controlCreate = { name: "\u0275\u0275controlCreate", moduleName: o };
|
|
664
|
-
static animationEnterListener = { name: "\u0275\u0275animateEnterListener", moduleName: o };
|
|
665
|
-
static animationLeaveListener = { name: "\u0275\u0275animateLeaveListener", moduleName: o };
|
|
666
|
-
static animationEnter = { name: "\u0275\u0275animateEnter", moduleName: o };
|
|
667
|
-
static animationLeave = { name: "\u0275\u0275animateLeave", moduleName: o };
|
|
668
|
-
static i18n = { name: "\u0275\u0275i18n", moduleName: o };
|
|
669
|
-
static i18nAttributes = { name: "\u0275\u0275i18nAttributes", moduleName: o };
|
|
670
|
-
static i18nExp = { name: "\u0275\u0275i18nExp", moduleName: o };
|
|
671
|
-
static i18nStart = { name: "\u0275\u0275i18nStart", moduleName: o };
|
|
672
|
-
static i18nEnd = { name: "\u0275\u0275i18nEnd", moduleName: o };
|
|
673
|
-
static i18nApply = { name: "\u0275\u0275i18nApply", moduleName: o };
|
|
674
|
-
static i18nPostprocess = { name: "\u0275\u0275i18nPostprocess", moduleName: o };
|
|
675
|
-
static pipe = { name: "\u0275\u0275pipe", moduleName: o };
|
|
676
|
-
static projection = { name: "\u0275\u0275projection", moduleName: o };
|
|
677
|
-
static projectionDef = { name: "\u0275\u0275projectionDef", moduleName: o };
|
|
678
|
-
static reference = { name: "\u0275\u0275reference", moduleName: o };
|
|
679
|
-
static inject = { name: "\u0275\u0275inject", moduleName: o };
|
|
680
|
-
static injectAttribute = { name: "\u0275\u0275injectAttribute", moduleName: o };
|
|
681
|
-
static directiveInject = { name: "\u0275\u0275directiveInject", moduleName: o };
|
|
682
|
-
static invalidFactory = { name: "\u0275\u0275invalidFactory", moduleName: o };
|
|
683
|
-
static invalidFactoryDep = { name: "\u0275\u0275invalidFactoryDep", moduleName: o };
|
|
684
|
-
static templateRefExtractor = { name: "\u0275\u0275templateRefExtractor", moduleName: o };
|
|
685
|
-
static forwardRef = { name: "forwardRef", moduleName: o };
|
|
686
|
-
static resolveForwardRef = { name: "resolveForwardRef", moduleName: o };
|
|
687
|
-
static replaceMetadata = { name: "\u0275\u0275replaceMetadata", moduleName: o };
|
|
688
|
-
static getReplaceMetadataURL = { name: "\u0275\u0275getReplaceMetadataURL", moduleName: o };
|
|
689
|
-
static \u0275\u0275defineInjectable = { name: "\u0275\u0275defineInjectable", moduleName: o };
|
|
690
|
-
static declareInjectable = { name: "\u0275\u0275ngDeclareInjectable", moduleName: o };
|
|
691
|
-
static InjectableDeclaration = { name: "\u0275\u0275InjectableDeclaration", moduleName: o };
|
|
692
|
-
static resolveWindow = { name: "\u0275\u0275resolveWindow", moduleName: o };
|
|
693
|
-
static resolveDocument = { name: "\u0275\u0275resolveDocument", moduleName: o };
|
|
694
|
-
static resolveBody = { name: "\u0275\u0275resolveBody", moduleName: o };
|
|
695
|
-
static getComponentDepsFactory = { name: "\u0275\u0275getComponentDepsFactory", moduleName: o };
|
|
696
|
-
static defineComponent = { name: "\u0275\u0275defineComponent", moduleName: o };
|
|
697
|
-
static declareComponent = { name: "\u0275\u0275ngDeclareComponent", moduleName: o };
|
|
698
|
-
static setComponentScope = { name: "\u0275\u0275setComponentScope", moduleName: o };
|
|
699
|
-
static ChangeDetectionStrategy = { name: "ChangeDetectionStrategy", moduleName: o };
|
|
700
|
-
static ViewEncapsulation = { name: "ViewEncapsulation", moduleName: o };
|
|
701
|
-
static ComponentDeclaration = { name: "\u0275\u0275ComponentDeclaration", moduleName: o };
|
|
702
|
-
static FactoryDeclaration = { name: "\u0275\u0275FactoryDeclaration", moduleName: o };
|
|
703
|
-
static declareFactory = { name: "\u0275\u0275ngDeclareFactory", moduleName: o };
|
|
704
|
-
static FactoryTarget = { name: "\u0275\u0275FactoryTarget", moduleName: o };
|
|
705
|
-
static defineDirective = { name: "\u0275\u0275defineDirective", moduleName: o };
|
|
706
|
-
static declareDirective = { name: "\u0275\u0275ngDeclareDirective", moduleName: o };
|
|
707
|
-
static DirectiveDeclaration = { name: "\u0275\u0275DirectiveDeclaration", moduleName: o };
|
|
708
|
-
static InjectorDef = { name: "\u0275\u0275InjectorDef", moduleName: o };
|
|
709
|
-
static InjectorDeclaration = { name: "\u0275\u0275InjectorDeclaration", moduleName: o };
|
|
710
|
-
static defineInjector = { name: "\u0275\u0275defineInjector", moduleName: o };
|
|
711
|
-
static declareInjector = { name: "\u0275\u0275ngDeclareInjector", moduleName: o };
|
|
712
|
-
static NgModuleDeclaration = { name: "\u0275\u0275NgModuleDeclaration", moduleName: o };
|
|
713
|
-
static ModuleWithProviders = { name: "ModuleWithProviders", moduleName: o };
|
|
714
|
-
static defineNgModule = { name: "\u0275\u0275defineNgModule", moduleName: o };
|
|
715
|
-
static declareNgModule = { name: "\u0275\u0275ngDeclareNgModule", moduleName: o };
|
|
716
|
-
static setNgModuleScope = { name: "\u0275\u0275setNgModuleScope", moduleName: o };
|
|
717
|
-
static registerNgModuleType = { name: "\u0275\u0275registerNgModuleType", moduleName: o };
|
|
718
|
-
static PipeDeclaration = { name: "\u0275\u0275PipeDeclaration", moduleName: o };
|
|
719
|
-
static definePipe = { name: "\u0275\u0275definePipe", moduleName: o };
|
|
720
|
-
static declarePipe = { name: "\u0275\u0275ngDeclarePipe", moduleName: o };
|
|
721
|
-
static declareClassMetadata = { name: "\u0275\u0275ngDeclareClassMetadata", moduleName: o };
|
|
722
|
-
static declareClassMetadataAsync = { name: "\u0275\u0275ngDeclareClassMetadataAsync", moduleName: o };
|
|
723
|
-
static setClassMetadata = { name: "\u0275setClassMetadata", moduleName: o };
|
|
724
|
-
static setClassMetadataAsync = { name: "\u0275setClassMetadataAsync", moduleName: o };
|
|
725
|
-
static setClassDebugInfo = { name: "\u0275setClassDebugInfo", moduleName: o };
|
|
726
|
-
static queryRefresh = { name: "\u0275\u0275queryRefresh", moduleName: o };
|
|
727
|
-
static viewQuery = { name: "\u0275\u0275viewQuery", moduleName: o };
|
|
728
|
-
static loadQuery = { name: "\u0275\u0275loadQuery", moduleName: o };
|
|
729
|
-
static contentQuery = { name: "\u0275\u0275contentQuery", moduleName: o };
|
|
730
|
-
static viewQuerySignal = { name: "\u0275\u0275viewQuerySignal", moduleName: o };
|
|
731
|
-
static contentQuerySignal = { name: "\u0275\u0275contentQuerySignal", moduleName: o };
|
|
732
|
-
static queryAdvance = { name: "\u0275\u0275queryAdvance", moduleName: o };
|
|
733
|
-
static twoWayProperty = { name: "\u0275\u0275twoWayProperty", moduleName: o };
|
|
734
|
-
static twoWayBindingSet = { name: "\u0275\u0275twoWayBindingSet", moduleName: o };
|
|
735
|
-
static twoWayListener = { name: "\u0275\u0275twoWayListener", moduleName: o };
|
|
736
|
-
static declareLet = { name: "\u0275\u0275declareLet", moduleName: o };
|
|
737
|
-
static storeLet = { name: "\u0275\u0275storeLet", moduleName: o };
|
|
738
|
-
static readContextLet = { name: "\u0275\u0275readContextLet", moduleName: o };
|
|
739
|
-
static attachSourceLocations = { name: "\u0275\u0275attachSourceLocations", moduleName: o };
|
|
740
|
-
static NgOnChangesFeature = { name: "\u0275\u0275NgOnChangesFeature", moduleName: o };
|
|
741
|
-
static InheritDefinitionFeature = { name: "\u0275\u0275InheritDefinitionFeature", moduleName: o };
|
|
742
|
-
static ProvidersFeature = { name: "\u0275\u0275ProvidersFeature", moduleName: o };
|
|
743
|
-
static HostDirectivesFeature = { name: "\u0275\u0275HostDirectivesFeature", moduleName: o };
|
|
744
|
-
static ExternalStylesFeature = { name: "\u0275\u0275ExternalStylesFeature", moduleName: o };
|
|
745
|
-
static listener = { name: "\u0275\u0275listener", moduleName: o };
|
|
746
|
-
static getInheritedFactory = { name: "\u0275\u0275getInheritedFactory", moduleName: o };
|
|
747
|
-
static sanitizeHtml = { name: "\u0275\u0275sanitizeHtml", moduleName: o };
|
|
748
|
-
static sanitizeStyle = { name: "\u0275\u0275sanitizeStyle", moduleName: o };
|
|
749
|
-
static validateAttribute = { name: "\u0275\u0275validateAttribute", moduleName: o };
|
|
750
|
-
static sanitizeResourceUrl = { name: "\u0275\u0275sanitizeResourceUrl", moduleName: o };
|
|
751
|
-
static sanitizeScript = { name: "\u0275\u0275sanitizeScript", moduleName: o };
|
|
752
|
-
static sanitizeUrl = { name: "\u0275\u0275sanitizeUrl", moduleName: o };
|
|
753
|
-
static sanitizeUrlOrResourceUrl = { name: "\u0275\u0275sanitizeUrlOrResourceUrl", moduleName: o };
|
|
754
|
-
static trustConstantHtml = { name: "\u0275\u0275trustConstantHtml", moduleName: o };
|
|
755
|
-
static trustConstantResourceUrl = { name: "\u0275\u0275trustConstantResourceUrl", moduleName: o };
|
|
756
|
-
static inputDecorator = { name: "Input", moduleName: o };
|
|
757
|
-
static outputDecorator = { name: "Output", moduleName: o };
|
|
758
|
-
static viewChildDecorator = { name: "ViewChild", moduleName: o };
|
|
759
|
-
static viewChildrenDecorator = { name: "ViewChildren", moduleName: o };
|
|
760
|
-
static contentChildDecorator = { name: "ContentChild", moduleName: o };
|
|
761
|
-
static contentChildrenDecorator = { name: "ContentChildren", moduleName: o };
|
|
762
|
-
static InputSignalBrandWriteType = { name: "\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE", moduleName: o };
|
|
763
|
-
static UnwrapDirectiveSignalInputs = { name: "\u0275UnwrapDirectiveSignalInputs", moduleName: o };
|
|
764
|
-
static unwrapWritableSignal = { name: "\u0275unwrapWritableSignal", moduleName: o };
|
|
765
|
-
static assertType = { name: "\u0275assertType", moduleName: o };
|
|
766
|
-
};
|
|
767
|
-
var St = class {
|
|
768
|
-
full;
|
|
769
|
-
major;
|
|
770
|
-
minor;
|
|
771
|
-
patch;
|
|
772
|
-
constructor(e) {
|
|
773
|
-
this.full = e;
|
|
774
|
-
let n = e.split(".");
|
|
775
|
-
this.major = n[0], this.minor = n[1], this.patch = n.slice(2).join(".");
|
|
776
|
-
}
|
|
777
|
-
};
|
|
778
|
-
var Gr = /* @__PURE__ */ new Map([[c.And, "&&"], [c.Bigger, ">"], [c.BiggerEquals, ">="], [c.BitwiseOr, "|"], [c.BitwiseAnd, "&"], [c.Divide, "/"], [c.Assign, "="], [c.Equals, "=="], [c.Identical, "==="], [c.Lower, "<"], [c.LowerEquals, "<="], [c.Minus, "-"], [c.Modulo, "%"], [c.Exponentiation, "**"], [c.Multiply, "*"], [c.NotEquals, "!="], [c.NotIdentical, "!=="], [c.NullishCoalesce, "??"], [c.Or, "||"], [c.Plus, "+"], [c.In, "in"], [c.AdditionAssignment, "+="], [c.SubtractionAssignment, "-="], [c.MultiplicationAssignment, "*="], [c.DivisionAssignment, "/="], [c.RemainderAssignment, "%="], [c.ExponentiationAssignment, "**="], [c.AndAssignment, "&&="], [c.OrAssignment, "||="], [c.NullishCoalesceAssignment, "??="]]);
|
|
779
|
-
var Tn;
|
|
780
|
-
(function(t24) {
|
|
781
|
-
t24[t24.Class = 0] = "Class", t24[t24.Function = 1] = "Function";
|
|
782
|
-
})(Tn || (Tn = {}));
|
|
783
|
-
var X = class {
|
|
784
|
-
start;
|
|
785
|
-
end;
|
|
786
|
-
constructor(e, n) {
|
|
787
|
-
this.start = e, this.end = n;
|
|
788
|
-
}
|
|
789
|
-
toAbsolute(e) {
|
|
790
|
-
return new $(e + this.start, e + this.end);
|
|
791
|
-
}
|
|
792
|
-
};
|
|
793
|
-
var g = class {
|
|
794
|
-
span;
|
|
795
|
-
sourceSpan;
|
|
796
|
-
constructor(e, n) {
|
|
797
|
-
this.span = e, this.sourceSpan = n;
|
|
798
|
-
}
|
|
799
|
-
toString() {
|
|
800
|
-
return "AST";
|
|
801
|
-
}
|
|
802
|
-
};
|
|
803
|
-
var Se = class extends g {
|
|
804
|
-
nameSpan;
|
|
805
|
-
constructor(e, n, s) {
|
|
806
|
-
super(e, n), this.nameSpan = s;
|
|
807
|
-
}
|
|
808
|
-
};
|
|
809
|
-
var b = class extends g {
|
|
810
|
-
visit(e, n = null) {
|
|
811
|
-
}
|
|
812
|
-
};
|
|
813
|
-
var ne = class extends g {
|
|
814
|
-
visit(e, n = null) {
|
|
815
|
-
return e.visitImplicitReceiver(this, n);
|
|
816
|
-
}
|
|
817
|
-
};
|
|
818
|
-
var Et = class extends g {
|
|
819
|
-
visit(e, n = null) {
|
|
820
|
-
return e.visitThisReceiver?.(this, n);
|
|
821
|
-
}
|
|
822
|
-
};
|
|
823
|
-
var yt = class extends g {
|
|
824
|
-
expressions;
|
|
825
|
-
constructor(e, n, s) {
|
|
826
|
-
super(e, n), this.expressions = s;
|
|
827
|
-
}
|
|
828
|
-
visit(e, n = null) {
|
|
829
|
-
return e.visitChain(this, n);
|
|
830
|
-
}
|
|
831
|
-
};
|
|
832
|
-
var Ct = class extends g {
|
|
833
|
-
condition;
|
|
834
|
-
trueExp;
|
|
835
|
-
falseExp;
|
|
836
|
-
constructor(e, n, s, i, r) {
|
|
837
|
-
super(e, n), this.condition = s, this.trueExp = i, this.falseExp = r;
|
|
838
|
-
}
|
|
839
|
-
visit(e, n = null) {
|
|
840
|
-
return e.visitConditional(this, n);
|
|
841
|
-
}
|
|
842
|
-
};
|
|
843
|
-
var de = class extends Se {
|
|
844
|
-
receiver;
|
|
845
|
-
name;
|
|
846
|
-
constructor(e, n, s, i, r) {
|
|
847
|
-
super(e, n, s), this.receiver = i, this.name = r;
|
|
848
|
-
}
|
|
849
|
-
visit(e, n = null) {
|
|
850
|
-
return e.visitPropertyRead(this, n);
|
|
851
|
-
}
|
|
852
|
-
};
|
|
853
|
-
var _t = class extends Se {
|
|
854
|
-
receiver;
|
|
855
|
-
name;
|
|
856
|
-
constructor(e, n, s, i, r) {
|
|
857
|
-
super(e, n, s), this.receiver = i, this.name = r;
|
|
858
|
-
}
|
|
859
|
-
visit(e, n = null) {
|
|
860
|
-
return e.visitSafePropertyRead(this, n);
|
|
861
|
-
}
|
|
862
|
-
};
|
|
863
|
-
var Le = class extends g {
|
|
864
|
-
receiver;
|
|
865
|
-
key;
|
|
866
|
-
constructor(e, n, s, i) {
|
|
867
|
-
super(e, n), this.receiver = s, this.key = i;
|
|
868
|
-
}
|
|
869
|
-
visit(e, n = null) {
|
|
870
|
-
return e.visitKeyedRead(this, n);
|
|
871
|
-
}
|
|
872
|
-
};
|
|
873
|
-
var Tt = class extends g {
|
|
874
|
-
receiver;
|
|
875
|
-
key;
|
|
876
|
-
constructor(e, n, s, i) {
|
|
877
|
-
super(e, n), this.receiver = s, this.key = i;
|
|
878
|
-
}
|
|
879
|
-
visit(e, n = null) {
|
|
880
|
-
return e.visitSafeKeyedRead(this, n);
|
|
881
|
-
}
|
|
882
|
-
};
|
|
883
|
-
var me;
|
|
884
|
-
(function(t24) {
|
|
885
|
-
t24[t24.ReferencedByName = 0] = "ReferencedByName", t24[t24.ReferencedDirectly = 1] = "ReferencedDirectly";
|
|
886
|
-
})(me || (me = {}));
|
|
887
|
-
var kt = class extends Se {
|
|
888
|
-
exp;
|
|
889
|
-
name;
|
|
890
|
-
args;
|
|
891
|
-
type;
|
|
892
|
-
constructor(e, n, s, i, r, a, u) {
|
|
893
|
-
super(e, n, u), this.exp = s, this.name = i, this.args = r, this.type = a;
|
|
894
|
-
}
|
|
895
|
-
visit(e, n = null) {
|
|
896
|
-
return e.visitPipe(this, n);
|
|
897
|
-
}
|
|
898
|
-
};
|
|
899
|
-
var I = class extends g {
|
|
900
|
-
value;
|
|
901
|
-
constructor(e, n, s) {
|
|
902
|
-
super(e, n), this.value = s;
|
|
903
|
-
}
|
|
904
|
-
visit(e, n = null) {
|
|
905
|
-
return e.visitLiteralPrimitive(this, n);
|
|
906
|
-
}
|
|
907
|
-
};
|
|
908
|
-
var bt = class extends g {
|
|
909
|
-
expressions;
|
|
910
|
-
constructor(e, n, s) {
|
|
911
|
-
super(e, n), this.expressions = s;
|
|
912
|
-
}
|
|
913
|
-
visit(e, n = null) {
|
|
914
|
-
return e.visitLiteralArray(this, n);
|
|
915
|
-
}
|
|
916
|
-
};
|
|
917
|
-
var At = class extends g {
|
|
918
|
-
expression;
|
|
919
|
-
constructor(e, n, s) {
|
|
920
|
-
super(e, n), this.expression = s;
|
|
921
|
-
}
|
|
922
|
-
visit(e, n = null) {
|
|
923
|
-
return e.visitSpreadElement(this, n);
|
|
924
|
-
}
|
|
925
|
-
};
|
|
926
|
-
var It = class extends g {
|
|
927
|
-
keys;
|
|
928
|
-
values;
|
|
929
|
-
constructor(e, n, s, i) {
|
|
930
|
-
super(e, n), this.keys = s, this.values = i;
|
|
931
|
-
}
|
|
932
|
-
visit(e, n = null) {
|
|
933
|
-
return e.visitLiteralMap(this, n);
|
|
934
|
-
}
|
|
935
|
-
};
|
|
936
|
-
var Ii = class extends g {
|
|
937
|
-
strings;
|
|
938
|
-
expressions;
|
|
939
|
-
constructor(e, n, s, i) {
|
|
940
|
-
super(e, n), this.strings = s, this.expressions = i;
|
|
941
|
-
}
|
|
942
|
-
visit(e, n = null) {
|
|
943
|
-
return e.visitInterpolation(this, n);
|
|
944
|
-
}
|
|
945
|
-
};
|
|
946
|
-
var E = class extends g {
|
|
947
|
-
operation;
|
|
948
|
-
left;
|
|
949
|
-
right;
|
|
950
|
-
constructor(e, n, s, i, r) {
|
|
951
|
-
super(e, n), this.operation = s, this.left = i, this.right = r;
|
|
952
|
-
}
|
|
953
|
-
visit(e, n = null) {
|
|
954
|
-
return e.visitBinary(this, n);
|
|
955
|
-
}
|
|
956
|
-
static isAssignmentOperation(e) {
|
|
957
|
-
return e === "=" || e === "+=" || e === "-=" || e === "*=" || e === "/=" || e === "%=" || e === "**=" || e === "&&=" || e === "||=" || e === "??=";
|
|
958
|
-
}
|
|
959
|
-
};
|
|
960
|
-
var ge = class t18 extends E {
|
|
961
|
-
operator;
|
|
962
|
-
expr;
|
|
963
|
-
left = null;
|
|
964
|
-
right = null;
|
|
965
|
-
operation = null;
|
|
966
|
-
static createMinus(e, n, s) {
|
|
967
|
-
return new t18(e, n, "-", s, "-", new I(e, n, 0), s);
|
|
968
|
-
}
|
|
969
|
-
static createPlus(e, n, s) {
|
|
970
|
-
return new t18(e, n, "+", s, "-", s, new I(e, n, 0));
|
|
971
|
-
}
|
|
972
|
-
constructor(e, n, s, i, r, a, u) {
|
|
973
|
-
super(e, n, r, a, u), this.operator = s, this.expr = i;
|
|
974
|
-
}
|
|
975
|
-
visit(e, n = null) {
|
|
976
|
-
return e.visitUnary !== void 0 ? e.visitUnary(this, n) : e.visitBinary(this, n);
|
|
977
|
-
}
|
|
978
|
-
};
|
|
979
|
-
var Me = class extends g {
|
|
980
|
-
expression;
|
|
981
|
-
constructor(e, n, s) {
|
|
982
|
-
super(e, n), this.expression = s;
|
|
983
|
-
}
|
|
984
|
-
visit(e, n = null) {
|
|
985
|
-
return e.visitPrefixNot(this, n);
|
|
986
|
-
}
|
|
987
|
-
};
|
|
988
|
-
var Re = class extends g {
|
|
989
|
-
expression;
|
|
990
|
-
constructor(e, n, s) {
|
|
991
|
-
super(e, n), this.expression = s;
|
|
992
|
-
}
|
|
993
|
-
visit(e, n = null) {
|
|
994
|
-
return e.visitTypeofExpression(this, n);
|
|
995
|
-
}
|
|
996
|
-
};
|
|
997
|
-
var $e = class extends g {
|
|
998
|
-
expression;
|
|
999
|
-
constructor(e, n, s) {
|
|
1000
|
-
super(e, n), this.expression = s;
|
|
1001
|
-
}
|
|
1002
|
-
visit(e, n = null) {
|
|
1003
|
-
return e.visitVoidExpression(this, n);
|
|
1004
|
-
}
|
|
1005
|
-
};
|
|
1006
|
-
var Nt = class extends g {
|
|
1007
|
-
expression;
|
|
1008
|
-
constructor(e, n, s) {
|
|
1009
|
-
super(e, n), this.expression = s;
|
|
1010
|
-
}
|
|
1011
|
-
visit(e, n = null) {
|
|
1012
|
-
return e.visitNonNullAssert(this, n);
|
|
1013
|
-
}
|
|
1014
|
-
};
|
|
1015
|
-
var Pt = class extends g {
|
|
1016
|
-
receiver;
|
|
1017
|
-
args;
|
|
1018
|
-
argumentSpan;
|
|
1019
|
-
constructor(e, n, s, i, r) {
|
|
1020
|
-
super(e, n), this.receiver = s, this.args = i, this.argumentSpan = r;
|
|
1021
|
-
}
|
|
1022
|
-
visit(e, n = null) {
|
|
1023
|
-
return e.visitCall(this, n);
|
|
1024
|
-
}
|
|
1025
|
-
};
|
|
1026
|
-
var Lt = class extends g {
|
|
1027
|
-
receiver;
|
|
1028
|
-
args;
|
|
1029
|
-
argumentSpan;
|
|
1030
|
-
constructor(e, n, s, i, r) {
|
|
1031
|
-
super(e, n), this.receiver = s, this.args = i, this.argumentSpan = r;
|
|
1032
|
-
}
|
|
1033
|
-
visit(e, n = null) {
|
|
1034
|
-
return e.visitSafeCall(this, n);
|
|
1035
|
-
}
|
|
1036
|
-
};
|
|
1037
|
-
var De = class extends g {
|
|
1038
|
-
tag;
|
|
1039
|
-
template;
|
|
1040
|
-
constructor(e, n, s, i) {
|
|
1041
|
-
super(e, n), this.tag = s, this.template = i;
|
|
1042
|
-
}
|
|
1043
|
-
visit(e, n) {
|
|
1044
|
-
return e.visitTaggedTemplateLiteral(this, n);
|
|
1045
|
-
}
|
|
1046
|
-
};
|
|
1047
|
-
var Be = class extends g {
|
|
1048
|
-
elements;
|
|
1049
|
-
expressions;
|
|
1050
|
-
constructor(e, n, s, i) {
|
|
1051
|
-
super(e, n), this.elements = s, this.expressions = i;
|
|
1052
|
-
}
|
|
1053
|
-
visit(e, n) {
|
|
1054
|
-
return e.visitTemplateLiteral(this, n);
|
|
1055
|
-
}
|
|
1056
|
-
};
|
|
1057
|
-
var Oe = class extends g {
|
|
1058
|
-
text;
|
|
1059
|
-
constructor(e, n, s) {
|
|
1060
|
-
super(e, n), this.text = s;
|
|
1061
|
-
}
|
|
1062
|
-
visit(e, n) {
|
|
1063
|
-
return e.visitTemplateLiteralElement(this, n);
|
|
1064
|
-
}
|
|
1065
|
-
};
|
|
1066
|
-
var Ee = class extends g {
|
|
1067
|
-
expression;
|
|
1068
|
-
constructor(e, n, s) {
|
|
1069
|
-
super(e, n), this.expression = s;
|
|
1070
|
-
}
|
|
1071
|
-
visit(e, n) {
|
|
1072
|
-
return e.visitParenthesizedExpression(this, n);
|
|
1073
|
-
}
|
|
1074
|
-
};
|
|
1075
|
-
var Mt = class extends g {
|
|
1076
|
-
body;
|
|
1077
|
-
flags;
|
|
1078
|
-
constructor(e, n, s, i) {
|
|
1079
|
-
super(e, n), this.body = s, this.flags = i;
|
|
1080
|
-
}
|
|
1081
|
-
visit(e, n) {
|
|
1082
|
-
return e.visitRegularExpressionLiteral(this, n);
|
|
1083
|
-
}
|
|
1084
|
-
};
|
|
1085
|
-
var $ = class {
|
|
1086
|
-
start;
|
|
1087
|
-
end;
|
|
1088
|
-
constructor(e, n) {
|
|
1089
|
-
this.start = e, this.end = n;
|
|
1090
|
-
}
|
|
1091
|
-
};
|
|
1092
|
-
var O = class extends g {
|
|
1093
|
-
ast;
|
|
1094
|
-
source;
|
|
1095
|
-
location;
|
|
1096
|
-
errors;
|
|
1097
|
-
constructor(e, n, s, i, r) {
|
|
1098
|
-
super(new X(0, n === null ? 0 : n.length), new $(i, n === null ? i : i + n.length)), this.ast = e, this.source = n, this.location = s, this.errors = r;
|
|
1099
|
-
}
|
|
1100
|
-
visit(e, n = null) {
|
|
1101
|
-
return e.visitASTWithSource ? e.visitASTWithSource(this, n) : this.ast.visit(e, n);
|
|
1102
|
-
}
|
|
1103
|
-
toString() {
|
|
1104
|
-
return `${this.source} in ${this.location}`;
|
|
1105
|
-
}
|
|
1106
|
-
};
|
|
1107
|
-
var se = class {
|
|
1108
|
-
sourceSpan;
|
|
1109
|
-
key;
|
|
1110
|
-
value;
|
|
1111
|
-
constructor(e, n, s) {
|
|
1112
|
-
this.sourceSpan = e, this.key = n, this.value = s;
|
|
1113
|
-
}
|
|
1114
|
-
};
|
|
1115
|
-
var ye = class {
|
|
1116
|
-
sourceSpan;
|
|
1117
|
-
key;
|
|
1118
|
-
value;
|
|
1119
|
-
constructor(e, n, s) {
|
|
1120
|
-
this.sourceSpan = e, this.key = n, this.value = s;
|
|
1121
|
-
}
|
|
1122
|
-
};
|
|
1123
|
-
var Rt = class {
|
|
1124
|
-
visit(e, n) {
|
|
1125
|
-
e.visit(this, n);
|
|
1126
|
-
}
|
|
1127
|
-
visitUnary(e, n) {
|
|
1128
|
-
this.visit(e.expr, n);
|
|
1129
|
-
}
|
|
1130
|
-
visitBinary(e, n) {
|
|
1131
|
-
this.visit(e.left, n), this.visit(e.right, n);
|
|
1132
|
-
}
|
|
1133
|
-
visitChain(e, n) {
|
|
1134
|
-
this.visitAll(e.expressions, n);
|
|
1135
|
-
}
|
|
1136
|
-
visitConditional(e, n) {
|
|
1137
|
-
this.visit(e.condition, n), this.visit(e.trueExp, n), this.visit(e.falseExp, n);
|
|
1138
|
-
}
|
|
1139
|
-
visitPipe(e, n) {
|
|
1140
|
-
this.visit(e.exp, n), this.visitAll(e.args, n);
|
|
1141
|
-
}
|
|
1142
|
-
visitImplicitReceiver(e, n) {
|
|
1143
|
-
}
|
|
1144
|
-
visitThisReceiver(e, n) {
|
|
1145
|
-
}
|
|
1146
|
-
visitInterpolation(e, n) {
|
|
1147
|
-
this.visitAll(e.expressions, n);
|
|
1148
|
-
}
|
|
1149
|
-
visitKeyedRead(e, n) {
|
|
1150
|
-
this.visit(e.receiver, n), this.visit(e.key, n);
|
|
1151
|
-
}
|
|
1152
|
-
visitLiteralArray(e, n) {
|
|
1153
|
-
this.visitAll(e.expressions, n);
|
|
1154
|
-
}
|
|
1155
|
-
visitLiteralMap(e, n) {
|
|
1156
|
-
this.visitAll(e.values, n);
|
|
1157
|
-
}
|
|
1158
|
-
visitLiteralPrimitive(e, n) {
|
|
1159
|
-
}
|
|
1160
|
-
visitPrefixNot(e, n) {
|
|
1161
|
-
this.visit(e.expression, n);
|
|
1162
|
-
}
|
|
1163
|
-
visitTypeofExpression(e, n) {
|
|
1164
|
-
this.visit(e.expression, n);
|
|
1165
|
-
}
|
|
1166
|
-
visitVoidExpression(e, n) {
|
|
1167
|
-
this.visit(e.expression, n);
|
|
1168
|
-
}
|
|
1169
|
-
visitNonNullAssert(e, n) {
|
|
1170
|
-
this.visit(e.expression, n);
|
|
1171
|
-
}
|
|
1172
|
-
visitPropertyRead(e, n) {
|
|
1173
|
-
this.visit(e.receiver, n);
|
|
1174
|
-
}
|
|
1175
|
-
visitSafePropertyRead(e, n) {
|
|
1176
|
-
this.visit(e.receiver, n);
|
|
1177
|
-
}
|
|
1178
|
-
visitSafeKeyedRead(e, n) {
|
|
1179
|
-
this.visit(e.receiver, n), this.visit(e.key, n);
|
|
1180
|
-
}
|
|
1181
|
-
visitCall(e, n) {
|
|
1182
|
-
this.visit(e.receiver, n), this.visitAll(e.args, n);
|
|
1183
|
-
}
|
|
1184
|
-
visitSafeCall(e, n) {
|
|
1185
|
-
this.visit(e.receiver, n), this.visitAll(e.args, n);
|
|
1186
|
-
}
|
|
1187
|
-
visitTemplateLiteral(e, n) {
|
|
1188
|
-
for (let s = 0; s < e.elements.length; s++) {
|
|
1189
|
-
this.visit(e.elements[s], n);
|
|
1190
|
-
let i = s < e.expressions.length ? e.expressions[s] : null;
|
|
1191
|
-
i !== null && this.visit(i, n);
|
|
1192
|
-
}
|
|
1193
|
-
}
|
|
1194
|
-
visitTemplateLiteralElement(e, n) {
|
|
1195
|
-
}
|
|
1196
|
-
visitTaggedTemplateLiteral(e, n) {
|
|
1197
|
-
this.visit(e.tag, n), this.visit(e.template, n);
|
|
1198
|
-
}
|
|
1199
|
-
visitParenthesizedExpression(e, n) {
|
|
1200
|
-
this.visit(e.expression, n);
|
|
1201
|
-
}
|
|
1202
|
-
visitRegularExpressionLiteral(e, n) {
|
|
1203
|
-
}
|
|
1204
|
-
visitSpreadElement(e, n) {
|
|
1205
|
-
this.visit(e.expression, n);
|
|
1206
|
-
}
|
|
1207
|
-
visitAll(e, n) {
|
|
1208
|
-
for (let s of e) this.visit(s, n);
|
|
1209
|
-
}
|
|
1210
|
-
};
|
|
1211
|
-
var kn;
|
|
1212
|
-
(function(t24) {
|
|
1213
|
-
t24[t24.DEFAULT = 0] = "DEFAULT", t24[t24.LITERAL_ATTR = 1] = "LITERAL_ATTR", t24[t24.LEGACY_ANIMATION = 2] = "LEGACY_ANIMATION", t24[t24.TWO_WAY = 3] = "TWO_WAY", t24[t24.ANIMATION = 4] = "ANIMATION";
|
|
1214
|
-
})(kn || (kn = {}));
|
|
1215
|
-
var bn;
|
|
1216
|
-
(function(t24) {
|
|
1217
|
-
t24[t24.Regular = 0] = "Regular", t24[t24.LegacyAnimation = 1] = "LegacyAnimation", t24[t24.TwoWay = 2] = "TwoWay", t24[t24.Animation = 3] = "Animation";
|
|
1218
|
-
})(bn || (bn = {}));
|
|
1219
|
-
var L;
|
|
1220
|
-
(function(t24) {
|
|
1221
|
-
t24[t24.Property = 0] = "Property", t24[t24.Attribute = 1] = "Attribute", t24[t24.Class = 2] = "Class", t24[t24.Style = 3] = "Style", t24[t24.LegacyAnimation = 4] = "LegacyAnimation", t24[t24.TwoWay = 5] = "TwoWay", t24[t24.Animation = 6] = "Animation";
|
|
1222
|
-
})(L || (L = {}));
|
|
1223
|
-
var An;
|
|
1224
|
-
(function(t24) {
|
|
1225
|
-
t24[t24.RAW_TEXT = 0] = "RAW_TEXT", t24[t24.ESCAPABLE_RAW_TEXT = 1] = "ESCAPABLE_RAW_TEXT", t24[t24.PARSABLE_DATA = 2] = "PARSABLE_DATA";
|
|
1226
|
-
})(An || (An = {}));
|
|
1227
|
-
var pe = 0;
|
|
1228
|
-
var os = 9;
|
|
1229
|
-
var Ie = 10;
|
|
1230
|
-
var Ni = 11;
|
|
1231
|
-
var Pi = 12;
|
|
1232
|
-
var Li = 13;
|
|
1233
|
-
var as = 32;
|
|
1234
|
-
var Mi = 33;
|
|
1235
|
-
var ls = 34;
|
|
1236
|
-
var Ri = 35;
|
|
1237
|
-
var Wt = 36;
|
|
1238
|
-
var $i = 37;
|
|
1239
|
-
var In = 38;
|
|
1240
|
-
var cs = 39;
|
|
1241
|
-
var ve = 40;
|
|
1242
|
-
var q = 41;
|
|
1243
|
-
var Nn = 42;
|
|
1244
|
-
var us = 43;
|
|
1245
|
-
var Q = 44;
|
|
1246
|
-
var ps = 45;
|
|
1247
|
-
var H = 46;
|
|
1248
|
-
var Fe = 47;
|
|
1249
|
-
var j = 58;
|
|
1250
|
-
var fe = 59;
|
|
1251
|
-
var Di = 60;
|
|
1252
|
-
var k = 61;
|
|
1253
|
-
var Bi = 62;
|
|
1254
|
-
var Pn = 63;
|
|
1255
|
-
var Oi = 48;
|
|
1256
|
-
var Fi = 57;
|
|
1257
|
-
var qt = 65;
|
|
1258
|
-
var Vi = 69;
|
|
1259
|
-
var jt = 90;
|
|
1260
|
-
var te = 91;
|
|
1261
|
-
var it = 92;
|
|
1262
|
-
var G = 93;
|
|
1263
|
-
var Ui = 94;
|
|
1264
|
-
var Xe = 95;
|
|
1265
|
-
var hs = 97;
|
|
1266
|
-
var Hi = 101;
|
|
1267
|
-
var Wi = 102;
|
|
1268
|
-
var qi = 110;
|
|
1269
|
-
var ji = 114;
|
|
1270
|
-
var zi = 116;
|
|
1271
|
-
var Gi = 117;
|
|
1272
|
-
var Xi = 118;
|
|
1273
|
-
var fs = 122;
|
|
1274
|
-
var Ve = 123;
|
|
1275
|
-
var Ln = 124;
|
|
1276
|
-
var K = 125;
|
|
1277
|
-
var ds = 160;
|
|
1278
|
-
var $t = 96;
|
|
1279
|
-
function Ji(t24) {
|
|
1280
|
-
return t24 >= os && t24 <= as || t24 == ds;
|
|
1281
|
-
}
|
|
1282
|
-
function W(t24) {
|
|
1283
|
-
return Oi <= t24 && t24 <= Fi;
|
|
1284
|
-
}
|
|
1285
|
-
function Dt(t24) {
|
|
1286
|
-
return t24 >= hs && t24 <= fs || t24 >= qt && t24 <= jt;
|
|
1287
|
-
}
|
|
1288
|
-
function Mn(t24) {
|
|
1289
|
-
return t24 === cs || t24 === ls || t24 === $t;
|
|
1290
|
-
}
|
|
1291
|
-
var Ue = class t19 {
|
|
1292
|
-
file;
|
|
1293
|
-
offset;
|
|
1294
|
-
line;
|
|
1295
|
-
col;
|
|
1296
|
-
constructor(e, n, s, i) {
|
|
1297
|
-
this.file = e, this.offset = n, this.line = s, this.col = i;
|
|
1298
|
-
}
|
|
1299
|
-
toString() {
|
|
1300
|
-
return this.offset != null ? `${this.file.url}@${this.line}:${this.col}` : this.file.url;
|
|
1301
|
-
}
|
|
1302
|
-
moveBy(e) {
|
|
1303
|
-
let n = this.file.content, s = n.length, i = this.offset, r = this.line, a = this.col;
|
|
1304
|
-
for (; i > 0 && e < 0; ) if (i--, e++, n.charCodeAt(i) == Ie) {
|
|
1305
|
-
r--;
|
|
1306
|
-
let p = n.substring(0, i - 1).lastIndexOf(String.fromCharCode(Ie));
|
|
1307
|
-
a = p > 0 ? i - p : i;
|
|
1308
|
-
} else a--;
|
|
1309
|
-
for (; i < s && e > 0; ) {
|
|
1310
|
-
let u = n.charCodeAt(i);
|
|
1311
|
-
i++, e--, u == Ie ? (r++, a = 0) : a++;
|
|
1312
|
-
}
|
|
1313
|
-
return new t19(this.file, i, r, a);
|
|
1314
|
-
}
|
|
1315
|
-
getContext(e, n) {
|
|
1316
|
-
let s = this.file.content, i = this.offset;
|
|
1317
|
-
if (i != null) {
|
|
1318
|
-
i > s.length - 1 && (i = s.length - 1);
|
|
1319
|
-
let r = i, a = 0, u = 0;
|
|
1320
|
-
for (; a < e && i > 0 && (i--, a++, !(s[i] == `
|
|
1321
|
-
` && ++u == n)); ) ;
|
|
1322
|
-
for (a = 0, u = 0; a < e && r < s.length - 1 && (r++, a++, !(s[r] == `
|
|
1323
|
-
` && ++u == n)); ) ;
|
|
1324
|
-
return { before: s.substring(i, this.offset), after: s.substring(this.offset, r + 1) };
|
|
1325
|
-
}
|
|
1326
|
-
return null;
|
|
1327
|
-
}
|
|
1328
|
-
};
|
|
1329
|
-
var He = class {
|
|
1330
|
-
content;
|
|
1331
|
-
url;
|
|
1332
|
-
constructor(e, n) {
|
|
1333
|
-
this.content = e, this.url = n;
|
|
1334
|
-
}
|
|
1335
|
-
};
|
|
1336
|
-
var We = class {
|
|
1337
|
-
start;
|
|
1338
|
-
end;
|
|
1339
|
-
fullStart;
|
|
1340
|
-
details;
|
|
1341
|
-
constructor(e, n, s = e, i = null) {
|
|
1342
|
-
this.start = e, this.end = n, this.fullStart = s, this.details = i;
|
|
1343
|
-
}
|
|
1344
|
-
toString() {
|
|
1345
|
-
return this.start.file.content.substring(this.start.offset, this.end.offset);
|
|
1346
|
-
}
|
|
1347
|
-
};
|
|
1348
|
-
var qe;
|
|
1349
|
-
(function(t24) {
|
|
1350
|
-
t24[t24.WARNING = 0] = "WARNING", t24[t24.ERROR = 1] = "ERROR";
|
|
1351
|
-
})(qe || (qe = {}));
|
|
1352
|
-
var Ce = class extends Error {
|
|
1353
|
-
span;
|
|
1354
|
-
msg;
|
|
1355
|
-
level;
|
|
1356
|
-
relatedError;
|
|
1357
|
-
constructor(e, n, s = qe.ERROR, i) {
|
|
1358
|
-
super(n), this.span = e, this.msg = n, this.level = s, this.relatedError = i, Object.setPrototypeOf(this, new.target.prototype);
|
|
1359
|
-
}
|
|
1360
|
-
contextualMessage() {
|
|
1361
|
-
let e = this.span.start.getContext(100, 3);
|
|
1362
|
-
return e ? `${this.msg} ("${e.before}[${qe[this.level]} ->]${e.after}")` : this.msg;
|
|
1363
|
-
}
|
|
1364
|
-
toString() {
|
|
1365
|
-
let e = this.span.details ? `, ${this.span.details}` : "";
|
|
1366
|
-
return `${this.contextualMessage()}: ${this.span.start}${e}`;
|
|
1367
|
-
}
|
|
1368
|
-
};
|
|
1369
|
-
var Rn;
|
|
1370
|
-
(function(t24) {
|
|
1371
|
-
t24[t24.Inline = 0] = "Inline", t24[t24.SideEffect = 1] = "SideEffect", t24[t24.Omit = 2] = "Omit";
|
|
1372
|
-
})(Rn || (Rn = {}));
|
|
1373
|
-
var $n;
|
|
1374
|
-
(function(t24) {
|
|
1375
|
-
t24[t24.Global = 0] = "Global", t24[t24.Local = 1] = "Local";
|
|
1376
|
-
})($n || ($n = {}));
|
|
1377
|
-
var Dn;
|
|
1378
|
-
(function(t24) {
|
|
1379
|
-
t24[t24.Directive = 0] = "Directive", t24[t24.Pipe = 1] = "Pipe", t24[t24.NgModule = 2] = "NgModule";
|
|
1380
|
-
})(Dn || (Dn = {}));
|
|
1381
|
-
var Yi = "(:(where|is)\\()?";
|
|
1382
|
-
var ms = "-shadowcsshost";
|
|
1383
|
-
var Qi = "-shadowcsscontext";
|
|
1384
|
-
var Bt = "[^)(]*";
|
|
1385
|
-
var Ki = `(?:\\(${Bt}\\)|${Bt})+?`;
|
|
1386
|
-
var Zi = `(?:\\(${Ki}\\)|${Bt})+?`;
|
|
1387
|
-
var zt = `(?:\\((${Zi})\\))`;
|
|
1388
|
-
var Yr = new RegExp("(:nth-[-\\w]+)" + zt, "g");
|
|
1389
|
-
var Qr = new RegExp(ms + zt + "?([^,{]*)", "gim");
|
|
1390
|
-
var er = Qi + zt + "?([^{]*)";
|
|
1391
|
-
var Kr = new RegExp(`${Yi}(${er})`, "gim");
|
|
1392
|
-
var tr = ms + "-no-combinator";
|
|
1393
|
-
var Zr = new RegExp(`${tr}(?![^(]*\\))`, "g");
|
|
1394
|
-
var gs = "%COMMENT%";
|
|
1395
|
-
var eo = new RegExp(gs, "g");
|
|
1396
|
-
var to = new RegExp(`(\\s*(?:${gs}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`, "g");
|
|
1397
|
-
var nr = "%COMMA_IN_PLACEHOLDER%";
|
|
1398
|
-
var sr = "%SEMI_IN_PLACEHOLDER%";
|
|
1399
|
-
var ir = "%COLON_IN_PLACEHOLDER%";
|
|
1400
|
-
var no = new RegExp(nr, "g");
|
|
1401
|
-
var so = new RegExp(sr, "g");
|
|
1402
|
-
var io = new RegExp(ir, "g");
|
|
1403
|
-
var f;
|
|
1404
|
-
(function(t24) {
|
|
1405
|
-
t24[t24.ListEnd = 0] = "ListEnd", t24[t24.Statement = 1] = "Statement", t24[t24.Variable = 2] = "Variable", t24[t24.ElementStart = 3] = "ElementStart", t24[t24.Element = 4] = "Element", t24[t24.Template = 5] = "Template", t24[t24.ElementEnd = 6] = "ElementEnd", t24[t24.ContainerStart = 7] = "ContainerStart", t24[t24.Container = 8] = "Container", t24[t24.ContainerEnd = 9] = "ContainerEnd", t24[t24.DisableBindings = 10] = "DisableBindings", t24[t24.ConditionalCreate = 11] = "ConditionalCreate", t24[t24.ConditionalBranchCreate = 12] = "ConditionalBranchCreate", t24[t24.Conditional = 13] = "Conditional", t24[t24.EnableBindings = 14] = "EnableBindings", t24[t24.Text = 15] = "Text", t24[t24.Listener = 16] = "Listener", t24[t24.InterpolateText = 17] = "InterpolateText", t24[t24.Binding = 18] = "Binding", t24[t24.Property = 19] = "Property", t24[t24.StyleProp = 20] = "StyleProp", t24[t24.ClassProp = 21] = "ClassProp", t24[t24.StyleMap = 22] = "StyleMap", t24[t24.ClassMap = 23] = "ClassMap", t24[t24.Advance = 24] = "Advance", t24[t24.Pipe = 25] = "Pipe", t24[t24.Attribute = 26] = "Attribute", t24[t24.ExtractedAttribute = 27] = "ExtractedAttribute", t24[t24.Defer = 28] = "Defer", t24[t24.DeferOn = 29] = "DeferOn", t24[t24.DeferWhen = 30] = "DeferWhen", t24[t24.I18nMessage = 31] = "I18nMessage", t24[t24.DomProperty = 32] = "DomProperty", t24[t24.Namespace = 33] = "Namespace", t24[t24.ProjectionDef = 34] = "ProjectionDef", t24[t24.Projection = 35] = "Projection", t24[t24.RepeaterCreate = 36] = "RepeaterCreate", t24[t24.Repeater = 37] = "Repeater", t24[t24.TwoWayProperty = 38] = "TwoWayProperty", t24[t24.TwoWayListener = 39] = "TwoWayListener", t24[t24.DeclareLet = 40] = "DeclareLet", t24[t24.StoreLet = 41] = "StoreLet", t24[t24.I18nStart = 42] = "I18nStart", t24[t24.I18n = 43] = "I18n", t24[t24.I18nEnd = 44] = "I18nEnd", t24[t24.I18nExpression = 45] = "I18nExpression", t24[t24.I18nApply = 46] = "I18nApply", t24[t24.IcuStart = 47] = "IcuStart", t24[t24.IcuEnd = 48] = "IcuEnd", t24[t24.IcuPlaceholder = 49] = "IcuPlaceholder", t24[t24.I18nContext = 50] = "I18nContext", t24[t24.I18nAttributes = 51] = "I18nAttributes", t24[t24.SourceLocation = 52] = "SourceLocation", t24[t24.Animation = 53] = "Animation", t24[t24.AnimationString = 54] = "AnimationString", t24[t24.AnimationBinding = 55] = "AnimationBinding", t24[t24.AnimationListener = 56] = "AnimationListener", t24[t24.Control = 57] = "Control", t24[t24.ControlCreate = 58] = "ControlCreate";
|
|
1406
|
-
})(f || (f = {}));
|
|
1407
|
-
var ie;
|
|
1408
|
-
(function(t24) {
|
|
1409
|
-
t24[t24.LexicalRead = 0] = "LexicalRead", t24[t24.Context = 1] = "Context", t24[t24.TrackContext = 2] = "TrackContext", t24[t24.ReadVariable = 3] = "ReadVariable", t24[t24.NextContext = 4] = "NextContext", t24[t24.Reference = 5] = "Reference", t24[t24.StoreLet = 6] = "StoreLet", t24[t24.ContextLetReference = 7] = "ContextLetReference", t24[t24.GetCurrentView = 8] = "GetCurrentView", t24[t24.RestoreView = 9] = "RestoreView", t24[t24.ResetView = 10] = "ResetView", t24[t24.PureFunctionExpr = 11] = "PureFunctionExpr", t24[t24.PureFunctionParameterExpr = 12] = "PureFunctionParameterExpr", t24[t24.PipeBinding = 13] = "PipeBinding", t24[t24.PipeBindingVariadic = 14] = "PipeBindingVariadic", t24[t24.SafePropertyRead = 15] = "SafePropertyRead", t24[t24.SafeKeyedRead = 16] = "SafeKeyedRead", t24[t24.SafeInvokeFunction = 17] = "SafeInvokeFunction", t24[t24.SafeTernaryExpr = 18] = "SafeTernaryExpr", t24[t24.EmptyExpr = 19] = "EmptyExpr", t24[t24.AssignTemporaryExpr = 20] = "AssignTemporaryExpr", t24[t24.ReadTemporaryExpr = 21] = "ReadTemporaryExpr", t24[t24.SlotLiteralExpr = 22] = "SlotLiteralExpr", t24[t24.ConditionalCase = 23] = "ConditionalCase", t24[t24.ConstCollected = 24] = "ConstCollected", t24[t24.TwoWayBindingSet = 25] = "TwoWayBindingSet";
|
|
1410
|
-
})(ie || (ie = {}));
|
|
1411
|
-
var Bn;
|
|
1412
|
-
(function(t24) {
|
|
1413
|
-
t24[t24.None = 0] = "None", t24[t24.AlwaysInline = 1] = "AlwaysInline";
|
|
1414
|
-
})(Bn || (Bn = {}));
|
|
1415
|
-
var On;
|
|
1416
|
-
(function(t24) {
|
|
1417
|
-
t24[t24.Context = 0] = "Context", t24[t24.Identifier = 1] = "Identifier", t24[t24.SavedView = 2] = "SavedView", t24[t24.Alias = 3] = "Alias";
|
|
1418
|
-
})(On || (On = {}));
|
|
1419
|
-
var Fn;
|
|
1420
|
-
(function(t24) {
|
|
1421
|
-
t24[t24.Normal = 0] = "Normal", t24[t24.TemplateDefinitionBuilder = 1] = "TemplateDefinitionBuilder";
|
|
1422
|
-
})(Fn || (Fn = {}));
|
|
1423
|
-
var M;
|
|
1424
|
-
(function(t24) {
|
|
1425
|
-
t24[t24.Attribute = 0] = "Attribute", t24[t24.ClassName = 1] = "ClassName", t24[t24.StyleProperty = 2] = "StyleProperty", t24[t24.Property = 3] = "Property", t24[t24.Template = 4] = "Template", t24[t24.I18n = 5] = "I18n", t24[t24.LegacyAnimation = 6] = "LegacyAnimation", t24[t24.TwoWayProperty = 7] = "TwoWayProperty", t24[t24.Animation = 8] = "Animation";
|
|
1426
|
-
})(M || (M = {}));
|
|
1427
|
-
var Vn;
|
|
1428
|
-
(function(t24) {
|
|
1429
|
-
t24[t24.Creation = 0] = "Creation", t24[t24.Postproccessing = 1] = "Postproccessing";
|
|
1430
|
-
})(Vn || (Vn = {}));
|
|
1431
|
-
var Un;
|
|
1432
|
-
(function(t24) {
|
|
1433
|
-
t24[t24.I18nText = 0] = "I18nText", t24[t24.I18nAttribute = 1] = "I18nAttribute";
|
|
1434
|
-
})(Un || (Un = {}));
|
|
1435
|
-
var Hn;
|
|
1436
|
-
(function(t24) {
|
|
1437
|
-
t24[t24.None = 0] = "None", t24[t24.ElementTag = 1] = "ElementTag", t24[t24.TemplateTag = 2] = "TemplateTag", t24[t24.OpenTag = 4] = "OpenTag", t24[t24.CloseTag = 8] = "CloseTag", t24[t24.ExpressionIndex = 16] = "ExpressionIndex";
|
|
1438
|
-
})(Hn || (Hn = {}));
|
|
1439
|
-
var Wn;
|
|
1440
|
-
(function(t24) {
|
|
1441
|
-
t24[t24.HTML = 0] = "HTML", t24[t24.SVG = 1] = "SVG", t24[t24.Math = 2] = "Math";
|
|
1442
|
-
})(Wn || (Wn = {}));
|
|
1443
|
-
var R;
|
|
1444
|
-
(function(t24) {
|
|
1445
|
-
t24[t24.Idle = 0] = "Idle", t24[t24.Immediate = 1] = "Immediate", t24[t24.Timer = 2] = "Timer", t24[t24.Hover = 3] = "Hover", t24[t24.Interaction = 4] = "Interaction", t24[t24.Viewport = 5] = "Viewport", t24[t24.Never = 6] = "Never";
|
|
1446
|
-
})(R || (R = {}));
|
|
1447
|
-
var qn;
|
|
1448
|
-
(function(t24) {
|
|
1449
|
-
t24[t24.RootI18n = 0] = "RootI18n", t24[t24.Icu = 1] = "Icu", t24[t24.Attr = 2] = "Attr";
|
|
1450
|
-
})(qn || (qn = {}));
|
|
1451
|
-
var jn;
|
|
1452
|
-
(function(t24) {
|
|
1453
|
-
t24[t24.NgTemplate = 0] = "NgTemplate", t24[t24.Structural = 1] = "Structural", t24[t24.Block = 2] = "Block";
|
|
1454
|
-
})(jn || (jn = {}));
|
|
1455
|
-
var rr = /* @__PURE__ */ Symbol("ConsumesSlot");
|
|
1456
|
-
var vs = /* @__PURE__ */ Symbol("DependsOnSlotContext");
|
|
1457
|
-
var Te = /* @__PURE__ */ Symbol("ConsumesVars");
|
|
1458
|
-
var Gt = /* @__PURE__ */ Symbol("UsesVarOffset");
|
|
1459
|
-
var ro = { [rr]: true, numSlotsUsed: 1 };
|
|
1460
|
-
var oo = { [vs]: true };
|
|
1461
|
-
var ao = { [Te]: true };
|
|
1462
|
-
var je = class {
|
|
1463
|
-
strings;
|
|
1464
|
-
expressions;
|
|
1465
|
-
i18nPlaceholders;
|
|
1466
|
-
constructor(e, n, s) {
|
|
1467
|
-
if (this.strings = e, this.expressions = n, this.i18nPlaceholders = s, s.length !== 0 && s.length !== n.length) throw new Error(`Expected ${n.length} placeholders to match interpolation expression count, but got ${s.length}`);
|
|
1468
|
-
}
|
|
1469
|
-
};
|
|
1470
|
-
var re = class extends S {
|
|
1471
|
-
constructor(e = null) {
|
|
1472
|
-
super(null, e);
|
|
1473
|
-
}
|
|
1474
|
-
};
|
|
1475
|
-
var zn = class t20 extends re {
|
|
1476
|
-
target;
|
|
1477
|
-
value;
|
|
1478
|
-
sourceSpan;
|
|
1479
|
-
kind = ie.StoreLet;
|
|
1480
|
-
[Te] = true;
|
|
1481
|
-
[vs] = true;
|
|
1482
|
-
constructor(e, n, s) {
|
|
1483
|
-
super(), this.target = e, this.value = n, this.sourceSpan = s;
|
|
1484
|
-
}
|
|
1485
|
-
visitExpression() {
|
|
1486
|
-
}
|
|
1487
|
-
isEquivalent(e) {
|
|
1488
|
-
return e instanceof t20 && e.target === this.target && e.value.isEquivalent(this.value);
|
|
1489
|
-
}
|
|
1490
|
-
isConstant() {
|
|
1491
|
-
return false;
|
|
1492
|
-
}
|
|
1493
|
-
transformInternalExpressions(e, n) {
|
|
1494
|
-
this.value = (this.value, void 0);
|
|
1495
|
-
}
|
|
1496
|
-
clone() {
|
|
1497
|
-
return new t20(this.target, this.value, this.sourceSpan);
|
|
1498
|
-
}
|
|
1499
|
-
};
|
|
1500
|
-
var Gn = class t21 extends re {
|
|
1501
|
-
kind = ie.PureFunctionExpr;
|
|
1502
|
-
[Te] = true;
|
|
1503
|
-
[Gt] = true;
|
|
1504
|
-
varOffset = null;
|
|
1505
|
-
body;
|
|
1506
|
-
args;
|
|
1507
|
-
fn = null;
|
|
1508
|
-
constructor(e, n) {
|
|
1509
|
-
super(), this.body = e, this.args = n;
|
|
1510
|
-
}
|
|
1511
|
-
visitExpression(e, n) {
|
|
1512
|
-
this.body?.visitExpression(e, n);
|
|
1513
|
-
for (let s of this.args) s.visitExpression(e, n);
|
|
1514
|
-
}
|
|
1515
|
-
isEquivalent(e) {
|
|
1516
|
-
return !(e instanceof t21) || e.args.length !== this.args.length ? false : e.body !== null && this.body !== null && e.body.isEquivalent(this.body) && e.args.every((n, s) => n.isEquivalent(this.args[s]));
|
|
1517
|
-
}
|
|
1518
|
-
isConstant() {
|
|
1519
|
-
return false;
|
|
1520
|
-
}
|
|
1521
|
-
transformInternalExpressions(e, n) {
|
|
1522
|
-
this.body !== null ? this.body = (this.body, n | Ot.InChildOperation, void 0) : this.fn !== null && (this.fn = (this.fn, void 0));
|
|
1523
|
-
for (let s = 0; s < this.args.length; s++) this.args[s] = (this.args[s], void 0);
|
|
1524
|
-
}
|
|
1525
|
-
clone() {
|
|
1526
|
-
let e = new t21(this.body?.clone() ?? null, this.args.map((n) => n.clone()));
|
|
1527
|
-
return e.fn = this.fn?.clone() ?? null, e.varOffset = this.varOffset, e;
|
|
1528
|
-
}
|
|
1529
|
-
};
|
|
1530
|
-
var Xn = class t22 extends re {
|
|
1531
|
-
target;
|
|
1532
|
-
targetSlot;
|
|
1533
|
-
name;
|
|
1534
|
-
args;
|
|
1535
|
-
kind = ie.PipeBinding;
|
|
1536
|
-
[Te] = true;
|
|
1537
|
-
[Gt] = true;
|
|
1538
|
-
varOffset = null;
|
|
1539
|
-
constructor(e, n, s, i) {
|
|
1540
|
-
super(), this.target = e, this.targetSlot = n, this.name = s, this.args = i;
|
|
1541
|
-
}
|
|
1542
|
-
visitExpression(e, n) {
|
|
1543
|
-
for (let s of this.args) s.visitExpression(e, n);
|
|
1544
|
-
}
|
|
1545
|
-
isEquivalent() {
|
|
1546
|
-
return false;
|
|
1547
|
-
}
|
|
1548
|
-
isConstant() {
|
|
1549
|
-
return false;
|
|
1550
|
-
}
|
|
1551
|
-
transformInternalExpressions(e, n) {
|
|
1552
|
-
for (let s = 0; s < this.args.length; s++) this.args[s] = (this.args[s], void 0);
|
|
1553
|
-
}
|
|
1554
|
-
clone() {
|
|
1555
|
-
let e = new t22(this.target, this.targetSlot, this.name, this.args.map((n) => n.clone()));
|
|
1556
|
-
return e.varOffset = this.varOffset, e;
|
|
1557
|
-
}
|
|
1558
|
-
};
|
|
1559
|
-
var Jn = class t23 extends re {
|
|
1560
|
-
target;
|
|
1561
|
-
targetSlot;
|
|
1562
|
-
name;
|
|
1563
|
-
args;
|
|
1564
|
-
numArgs;
|
|
1565
|
-
kind = ie.PipeBindingVariadic;
|
|
1566
|
-
[Te] = true;
|
|
1567
|
-
[Gt] = true;
|
|
1568
|
-
varOffset = null;
|
|
1569
|
-
constructor(e, n, s, i, r) {
|
|
1570
|
-
super(), this.target = e, this.targetSlot = n, this.name = s, this.args = i, this.numArgs = r;
|
|
1571
|
-
}
|
|
1572
|
-
visitExpression(e, n) {
|
|
1573
|
-
this.args.visitExpression(e, n);
|
|
1574
|
-
}
|
|
1575
|
-
isEquivalent() {
|
|
1576
|
-
return false;
|
|
1577
|
-
}
|
|
1578
|
-
isConstant() {
|
|
1579
|
-
return false;
|
|
1580
|
-
}
|
|
1581
|
-
transformInternalExpressions(e, n) {
|
|
1582
|
-
this.args = (this.args, void 0);
|
|
1583
|
-
}
|
|
1584
|
-
clone() {
|
|
1585
|
-
let e = new t23(this.target, this.targetSlot, this.name, this.args.clone(), this.numArgs);
|
|
1586
|
-
return e.varOffset = this.varOffset, e;
|
|
1587
|
-
}
|
|
1588
|
-
};
|
|
1589
|
-
var Ot;
|
|
1590
|
-
(function(t24) {
|
|
1591
|
-
t24[t24.None = 0] = "None", t24[t24.InChildOperation = 1] = "InChildOperation";
|
|
1592
|
-
})(Ot || (Ot = {}));
|
|
1593
|
-
var lo = /* @__PURE__ */ new Set([f.Element, f.ElementStart, f.Container, f.ContainerStart, f.Template, f.RepeaterCreate, f.ConditionalCreate, f.ConditionalBranchCreate]);
|
|
1594
|
-
var Yn;
|
|
1595
|
-
(function(t24) {
|
|
1596
|
-
t24[t24.Tmpl = 0] = "Tmpl", t24[t24.Host = 1] = "Host", t24[t24.Both = 2] = "Both";
|
|
1597
|
-
})(Yn || (Yn = {}));
|
|
1598
|
-
var Qn;
|
|
1599
|
-
(function(t24) {
|
|
1600
|
-
t24[t24.Full = 0] = "Full", t24[t24.DomOnly = 1] = "DomOnly";
|
|
1601
|
-
})(Qn || (Qn = {}));
|
|
1602
|
-
var co = /* @__PURE__ */ new Map([[l.ariaProperty, l.ariaProperty], [l.attribute, l.attribute], [l.classProp, l.classProp], [l.element, l.element], [l.elementContainer, l.elementContainer], [l.elementContainerEnd, l.elementContainerEnd], [l.elementContainerStart, l.elementContainerStart], [l.elementEnd, l.elementEnd], [l.elementStart, l.elementStart], [l.domProperty, l.domProperty], [l.i18nExp, l.i18nExp], [l.listener, l.listener], [l.listener, l.listener], [l.property, l.property], [l.styleProp, l.styleProp], [l.syntheticHostListener, l.syntheticHostListener], [l.syntheticHostProperty, l.syntheticHostProperty], [l.templateCreate, l.templateCreate], [l.twoWayProperty, l.twoWayProperty], [l.twoWayListener, l.twoWayListener], [l.declareLet, l.declareLet], [l.conditionalCreate, l.conditionalBranchCreate], [l.conditionalBranchCreate, l.conditionalBranchCreate], [l.domElement, l.domElement], [l.domElementStart, l.domElementStart], [l.domElementEnd, l.domElementEnd], [l.domElementContainer, l.domElementContainer], [l.domElementContainerStart, l.domElementContainerStart], [l.domElementContainerEnd, l.domElementContainerEnd], [l.domListener, l.domListener], [l.domTemplate, l.domTemplate], [l.animationEnter, l.animationEnter], [l.animationLeave, l.animationLeave], [l.animationEnterListener, l.animationEnterListener], [l.animationLeaveListener, l.animationLeaveListener]]);
|
|
1603
|
-
var uo = /* @__PURE__ */ new Map([["&&", c.And], [">", c.Bigger], [">=", c.BiggerEquals], ["|", c.BitwiseOr], ["&", c.BitwiseAnd], ["/", c.Divide], ["=", c.Assign], ["==", c.Equals], ["===", c.Identical], ["<", c.Lower], ["<=", c.LowerEquals], ["-", c.Minus], ["%", c.Modulo], ["**", c.Exponentiation], ["*", c.Multiply], ["!=", c.NotEquals], ["!==", c.NotIdentical], ["??", c.NullishCoalesce], ["||", c.Or], ["+", c.Plus], ["in", c.In], ["+=", c.AdditionAssignment], ["-=", c.SubtractionAssignment], ["*=", c.MultiplicationAssignment], ["/=", c.DivisionAssignment], ["%=", c.RemainderAssignment], ["**=", c.ExponentiationAssignment], ["&&=", c.AndAssignment], ["||=", c.OrAssignment], ["??=", c.NullishCoalesceAssignment]]);
|
|
1604
|
-
var po = Object.freeze([]);
|
|
1605
|
-
var ho = /* @__PURE__ */ new Map([[f.ElementEnd, [f.ElementStart, f.Element]], [f.ContainerEnd, [f.ContainerStart, f.Container]], [f.I18nEnd, [f.I18nStart, f.I18n]]]);
|
|
1606
|
-
var fo = /* @__PURE__ */ new Set([f.Pipe]);
|
|
1607
|
-
var or = {};
|
|
1608
|
-
var ar = "\uE500";
|
|
1609
|
-
or.ngsp = ar;
|
|
1610
|
-
var Kn;
|
|
1611
|
-
(function(t24) {
|
|
1612
|
-
t24.HEX = "hexadecimal", t24.DEC = "decimal";
|
|
1613
|
-
})(Kn || (Kn = {}));
|
|
1614
|
-
var xs = ` \f
|
|
1615
|
-
\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`;
|
|
1616
|
-
var mo = new RegExp(`[^${xs}]`);
|
|
1617
|
-
var go = new RegExp(`[${xs}]{2,}`, "g");
|
|
1618
|
-
var h;
|
|
1619
|
-
(function(t24) {
|
|
1620
|
-
t24[t24.Character = 0] = "Character", t24[t24.Identifier = 1] = "Identifier", t24[t24.PrivateIdentifier = 2] = "PrivateIdentifier", t24[t24.Keyword = 3] = "Keyword", t24[t24.String = 4] = "String", t24[t24.Operator = 5] = "Operator", t24[t24.Number = 6] = "Number", t24[t24.RegExpBody = 7] = "RegExpBody", t24[t24.RegExpFlags = 8] = "RegExpFlags", t24[t24.Error = 9] = "Error";
|
|
1621
|
-
})(h || (h = {}));
|
|
1622
|
-
var F;
|
|
1623
|
-
(function(t24) {
|
|
1624
|
-
t24[t24.Plain = 0] = "Plain", t24[t24.TemplateLiteralPart = 1] = "TemplateLiteralPart", t24[t24.TemplateLiteralEnd = 2] = "TemplateLiteralEnd";
|
|
1625
|
-
})(F || (F = {}));
|
|
1626
|
-
var lr = ["var", "let", "as", "null", "undefined", "true", "false", "if", "else", "this", "typeof", "void", "in"];
|
|
1627
|
-
var _e = class {
|
|
1628
|
-
tokenize(e) {
|
|
1629
|
-
return new Ft(e).scan();
|
|
1630
|
-
}
|
|
1631
|
-
};
|
|
1632
|
-
var A = class {
|
|
1633
|
-
index;
|
|
1634
|
-
end;
|
|
1635
|
-
type;
|
|
1636
|
-
numValue;
|
|
1637
|
-
strValue;
|
|
1638
|
-
constructor(e, n, s, i, r) {
|
|
1639
|
-
this.index = e, this.end = n, this.type = s, this.numValue = i, this.strValue = r;
|
|
1640
|
-
}
|
|
1641
|
-
isCharacter(e) {
|
|
1642
|
-
return this.type === h.Character && this.numValue === e;
|
|
1643
|
-
}
|
|
1644
|
-
isNumber() {
|
|
1645
|
-
return this.type === h.Number;
|
|
1646
|
-
}
|
|
1647
|
-
isString() {
|
|
1648
|
-
return this.type === h.String;
|
|
1649
|
-
}
|
|
1650
|
-
isOperator(e) {
|
|
1651
|
-
return this.type === h.Operator && this.strValue === e;
|
|
1652
|
-
}
|
|
1653
|
-
isIdentifier() {
|
|
1654
|
-
return this.type === h.Identifier;
|
|
1655
|
-
}
|
|
1656
|
-
isPrivateIdentifier() {
|
|
1657
|
-
return this.type === h.PrivateIdentifier;
|
|
1658
|
-
}
|
|
1659
|
-
isKeyword() {
|
|
1660
|
-
return this.type === h.Keyword;
|
|
1661
|
-
}
|
|
1662
|
-
isKeywordLet() {
|
|
1663
|
-
return this.type === h.Keyword && this.strValue === "let";
|
|
1664
|
-
}
|
|
1665
|
-
isKeywordAs() {
|
|
1666
|
-
return this.type === h.Keyword && this.strValue === "as";
|
|
1667
|
-
}
|
|
1668
|
-
isKeywordNull() {
|
|
1669
|
-
return this.type === h.Keyword && this.strValue === "null";
|
|
1670
|
-
}
|
|
1671
|
-
isKeywordUndefined() {
|
|
1672
|
-
return this.type === h.Keyword && this.strValue === "undefined";
|
|
1673
|
-
}
|
|
1674
|
-
isKeywordTrue() {
|
|
1675
|
-
return this.type === h.Keyword && this.strValue === "true";
|
|
1676
|
-
}
|
|
1677
|
-
isKeywordFalse() {
|
|
1678
|
-
return this.type === h.Keyword && this.strValue === "false";
|
|
1679
|
-
}
|
|
1680
|
-
isKeywordThis() {
|
|
1681
|
-
return this.type === h.Keyword && this.strValue === "this";
|
|
1682
|
-
}
|
|
1683
|
-
isKeywordTypeof() {
|
|
1684
|
-
return this.type === h.Keyword && this.strValue === "typeof";
|
|
1685
|
-
}
|
|
1686
|
-
isKeywordVoid() {
|
|
1687
|
-
return this.type === h.Keyword && this.strValue === "void";
|
|
1688
|
-
}
|
|
1689
|
-
isKeywordIn() {
|
|
1690
|
-
return this.type === h.Keyword && this.strValue === "in";
|
|
1691
|
-
}
|
|
1692
|
-
isError() {
|
|
1693
|
-
return this.type === h.Error;
|
|
1694
|
-
}
|
|
1695
|
-
isRegExpBody() {
|
|
1696
|
-
return this.type === h.RegExpBody;
|
|
1697
|
-
}
|
|
1698
|
-
isRegExpFlags() {
|
|
1699
|
-
return this.type === h.RegExpFlags;
|
|
1700
|
-
}
|
|
1701
|
-
toNumber() {
|
|
1702
|
-
return this.type === h.Number ? this.numValue : -1;
|
|
1703
|
-
}
|
|
1704
|
-
isTemplateLiteralPart() {
|
|
1705
|
-
return this.isString() && this.kind === F.TemplateLiteralPart;
|
|
1706
|
-
}
|
|
1707
|
-
isTemplateLiteralEnd() {
|
|
1708
|
-
return this.isString() && this.kind === F.TemplateLiteralEnd;
|
|
1709
|
-
}
|
|
1710
|
-
isTemplateLiteralInterpolationStart() {
|
|
1711
|
-
return this.isOperator("${");
|
|
1712
|
-
}
|
|
1713
|
-
toString() {
|
|
1714
|
-
switch (this.type) {
|
|
1715
|
-
case h.Character:
|
|
1716
|
-
case h.Identifier:
|
|
1717
|
-
case h.Keyword:
|
|
1718
|
-
case h.Operator:
|
|
1719
|
-
case h.PrivateIdentifier:
|
|
1720
|
-
case h.String:
|
|
1721
|
-
case h.Error:
|
|
1722
|
-
case h.RegExpBody:
|
|
1723
|
-
case h.RegExpFlags:
|
|
1724
|
-
return this.strValue;
|
|
1725
|
-
case h.Number:
|
|
1726
|
-
return this.numValue.toString();
|
|
1727
|
-
default:
|
|
1728
|
-
return null;
|
|
1729
|
-
}
|
|
1730
|
-
}
|
|
1731
|
-
};
|
|
1732
|
-
var xe = class extends A {
|
|
1733
|
-
kind;
|
|
1734
|
-
constructor(e, n, s, i) {
|
|
1735
|
-
super(e, n, h.String, 0, s), this.kind = i;
|
|
1736
|
-
}
|
|
1737
|
-
};
|
|
1738
|
-
function he(t24, e, n) {
|
|
1739
|
-
return new A(t24, e, h.Character, n, String.fromCharCode(n));
|
|
1740
|
-
}
|
|
1741
|
-
function cr(t24, e, n) {
|
|
1742
|
-
return new A(t24, e, h.Identifier, 0, n);
|
|
1743
|
-
}
|
|
1744
|
-
function ur(t24, e, n) {
|
|
1745
|
-
return new A(t24, e, h.PrivateIdentifier, 0, n);
|
|
1746
|
-
}
|
|
1747
|
-
function pr(t24, e, n) {
|
|
1748
|
-
return new A(t24, e, h.Keyword, 0, n);
|
|
1749
|
-
}
|
|
1750
|
-
function Y(t24, e, n) {
|
|
1751
|
-
return new A(t24, e, h.Operator, 0, n);
|
|
1752
|
-
}
|
|
1753
|
-
function hr(t24, e, n) {
|
|
1754
|
-
return new A(t24, e, h.Number, n, "");
|
|
1755
|
-
}
|
|
1756
|
-
function fr(t24, e, n) {
|
|
1757
|
-
return new A(t24, e, h.Error, 0, n);
|
|
1758
|
-
}
|
|
1759
|
-
function dr(t24, e, n) {
|
|
1760
|
-
return new A(t24, e, h.RegExpBody, 0, n);
|
|
1761
|
-
}
|
|
1762
|
-
function mr(t24, e, n) {
|
|
1763
|
-
return new A(t24, e, h.RegExpFlags, 0, n);
|
|
1764
|
-
}
|
|
1765
|
-
var Ae = new A(-1, -1, h.Character, 0, "");
|
|
1766
|
-
var Ft = class {
|
|
1767
|
-
input;
|
|
1768
|
-
tokens = [];
|
|
1769
|
-
length;
|
|
1770
|
-
peek = 0;
|
|
1771
|
-
index = -1;
|
|
1772
|
-
braceStack = [];
|
|
1773
|
-
constructor(e) {
|
|
1774
|
-
this.input = e, this.length = e.length, this.advance();
|
|
1775
|
-
}
|
|
1776
|
-
scan() {
|
|
1777
|
-
let e = this.scanToken();
|
|
1778
|
-
for (; e !== null; ) this.tokens.push(e), e = this.scanToken();
|
|
1779
|
-
return this.tokens;
|
|
1780
|
-
}
|
|
1781
|
-
advance() {
|
|
1782
|
-
this.peek = ++this.index >= this.length ? pe : this.input.charCodeAt(this.index);
|
|
1783
|
-
}
|
|
1784
|
-
scanToken() {
|
|
1785
|
-
let e = this.input, n = this.length, s = this.peek, i = this.index;
|
|
1786
|
-
for (; s <= as; ) if (++i >= n) {
|
|
1787
|
-
s = pe;
|
|
1788
|
-
break;
|
|
1789
|
-
} else s = e.charCodeAt(i);
|
|
1790
|
-
if (this.peek = s, this.index = i, i >= n) return null;
|
|
1791
|
-
if (Zn(s)) return this.scanIdentifier();
|
|
1792
|
-
if (W(s)) return this.scanNumber(i);
|
|
1793
|
-
let r = i;
|
|
1794
|
-
switch (s) {
|
|
1795
|
-
case H:
|
|
1796
|
-
return this.advance(), W(this.peek) ? this.scanNumber(r) : this.peek !== H ? he(r, this.index, H) : (this.advance(), this.peek === H ? (this.advance(), Y(r, this.index, "...")) : this.error(`Unexpected character [${String.fromCharCode(s)}]`, 0));
|
|
1797
|
-
case ve:
|
|
1798
|
-
case q:
|
|
1799
|
-
case te:
|
|
1800
|
-
case G:
|
|
1801
|
-
case Q:
|
|
1802
|
-
case j:
|
|
1803
|
-
case fe:
|
|
1804
|
-
return this.scanCharacter(r, s);
|
|
1805
|
-
case Ve:
|
|
1806
|
-
return this.scanOpenBrace(r, s);
|
|
1807
|
-
case K:
|
|
1808
|
-
return this.scanCloseBrace(r, s);
|
|
1809
|
-
case cs:
|
|
1810
|
-
case ls:
|
|
1811
|
-
return this.scanString();
|
|
1812
|
-
case $t:
|
|
1813
|
-
return this.advance(), this.scanTemplateLiteralPart(r);
|
|
1814
|
-
case Ri:
|
|
1815
|
-
return this.scanPrivateIdentifier();
|
|
1816
|
-
case us:
|
|
1817
|
-
return this.scanComplexOperator(r, "+", k, "=");
|
|
1818
|
-
case ps:
|
|
1819
|
-
return this.scanComplexOperator(r, "-", k, "=");
|
|
1820
|
-
case Fe:
|
|
1821
|
-
return this.isStartOfRegex() ? this.scanRegex(i) : this.scanComplexOperator(r, "/", k, "=");
|
|
1822
|
-
case $i:
|
|
1823
|
-
return this.scanComplexOperator(r, "%", k, "=");
|
|
1824
|
-
case Ui:
|
|
1825
|
-
return this.scanOperator(r, "^");
|
|
1826
|
-
case Nn:
|
|
1827
|
-
return this.scanStar(r);
|
|
1828
|
-
case Pn:
|
|
1829
|
-
return this.scanQuestion(r);
|
|
1830
|
-
case Di:
|
|
1831
|
-
case Bi:
|
|
1832
|
-
return this.scanComplexOperator(r, String.fromCharCode(s), k, "=");
|
|
1833
|
-
case Mi:
|
|
1834
|
-
case k:
|
|
1835
|
-
return this.scanComplexOperator(r, String.fromCharCode(s), k, "=", k, "=");
|
|
1836
|
-
case In:
|
|
1837
|
-
return this.scanComplexOperator(r, "&", In, "&", k, "=");
|
|
1838
|
-
case Ln:
|
|
1839
|
-
return this.scanComplexOperator(r, "|", Ln, "|", k, "=");
|
|
1840
|
-
case ds:
|
|
1841
|
-
for (; Ji(this.peek); ) this.advance();
|
|
1842
|
-
return this.scanToken();
|
|
1843
|
-
}
|
|
1844
|
-
return this.advance(), this.error(`Unexpected character [${String.fromCharCode(s)}]`, 0);
|
|
1845
|
-
}
|
|
1846
|
-
scanCharacter(e, n) {
|
|
1847
|
-
return this.advance(), he(e, this.index, n);
|
|
1848
|
-
}
|
|
1849
|
-
scanOperator(e, n) {
|
|
1850
|
-
return this.advance(), Y(e, this.index, n);
|
|
1851
|
-
}
|
|
1852
|
-
scanOpenBrace(e, n) {
|
|
1853
|
-
return this.braceStack.push("expression"), this.advance(), he(e, this.index, n);
|
|
1854
|
-
}
|
|
1855
|
-
scanCloseBrace(e, n) {
|
|
1856
|
-
return this.advance(), this.braceStack.pop() === "interpolation" ? (this.tokens.push(he(e, this.index, K)), this.scanTemplateLiteralPart(this.index)) : he(e, this.index, n);
|
|
1857
|
-
}
|
|
1858
|
-
scanComplexOperator(e, n, s, i, r, a) {
|
|
1859
|
-
this.advance();
|
|
1860
|
-
let u = n;
|
|
1861
|
-
return this.peek == s && (this.advance(), u += i), r != null && this.peek == r && (this.advance(), u += a), Y(e, this.index, u);
|
|
1862
|
-
}
|
|
1863
|
-
scanIdentifier() {
|
|
1864
|
-
let e = this.index;
|
|
1865
|
-
for (this.advance(); es(this.peek); ) this.advance();
|
|
1866
|
-
let n = this.input.substring(e, this.index);
|
|
1867
|
-
return lr.indexOf(n) > -1 ? pr(e, this.index, n) : cr(e, this.index, n);
|
|
1868
|
-
}
|
|
1869
|
-
scanPrivateIdentifier() {
|
|
1870
|
-
let e = this.index;
|
|
1871
|
-
if (this.advance(), !Zn(this.peek)) return this.error("Invalid character [#]", -1);
|
|
1872
|
-
for (; es(this.peek); ) this.advance();
|
|
1873
|
-
let n = this.input.substring(e, this.index);
|
|
1874
|
-
return ur(e, this.index, n);
|
|
1875
|
-
}
|
|
1876
|
-
scanNumber(e) {
|
|
1877
|
-
let n = this.index === e, s = false;
|
|
1878
|
-
for (this.advance(); ; ) {
|
|
1879
|
-
if (!W(this.peek)) if (this.peek === Xe) {
|
|
1880
|
-
if (!W(this.input.charCodeAt(this.index - 1)) || !W(this.input.charCodeAt(this.index + 1))) return this.error("Invalid numeric separator", 0);
|
|
1881
|
-
s = true;
|
|
1882
|
-
} else if (this.peek === H) n = false;
|
|
1883
|
-
else if (gr(this.peek)) {
|
|
1884
|
-
if (this.advance(), vr(this.peek) && this.advance(), !W(this.peek)) return this.error("Invalid exponent", -1);
|
|
1885
|
-
n = false;
|
|
1886
|
-
} else break;
|
|
1887
|
-
this.advance();
|
|
1888
|
-
}
|
|
1889
|
-
let i = this.input.substring(e, this.index);
|
|
1890
|
-
s && (i = i.replace(/_/g, ""));
|
|
1891
|
-
let r = n ? wr(i) : parseFloat(i);
|
|
1892
|
-
return hr(e, this.index, r);
|
|
1893
|
-
}
|
|
1894
|
-
scanString() {
|
|
1895
|
-
let e = this.index, n = this.peek;
|
|
1896
|
-
this.advance();
|
|
1897
|
-
let s = "", i = this.index, r = this.input;
|
|
1898
|
-
for (; this.peek != n; ) if (this.peek == it) {
|
|
1899
|
-
let u = this.scanStringBackslash(s, i);
|
|
1900
|
-
if (typeof u != "string") return u;
|
|
1901
|
-
s = u, i = this.index;
|
|
1902
|
-
} else {
|
|
1903
|
-
if (this.peek == pe) return this.error("Unterminated quote", 0);
|
|
1904
|
-
this.advance();
|
|
1905
|
-
}
|
|
1906
|
-
let a = r.substring(i, this.index);
|
|
1907
|
-
return this.advance(), new xe(e, this.index, s + a, F.Plain);
|
|
1908
|
-
}
|
|
1909
|
-
scanQuestion(e) {
|
|
1910
|
-
this.advance();
|
|
1911
|
-
let n = "?";
|
|
1912
|
-
return this.peek === Pn ? (n += "?", this.advance(), this.peek === k && (n += "=", this.advance())) : this.peek === H && (n += ".", this.advance()), Y(e, this.index, n);
|
|
1913
|
-
}
|
|
1914
|
-
scanTemplateLiteralPart(e) {
|
|
1915
|
-
let n = "", s = this.index;
|
|
1916
|
-
for (; this.peek !== $t; ) if (this.peek === it) {
|
|
1917
|
-
let r = this.scanStringBackslash(n, s);
|
|
1918
|
-
if (typeof r != "string") return r;
|
|
1919
|
-
n = r, s = this.index;
|
|
1920
|
-
} else if (this.peek === Wt) {
|
|
1921
|
-
let r = this.index;
|
|
1922
|
-
if (this.advance(), this.peek === Ve) return this.braceStack.push("interpolation"), this.tokens.push(new xe(e, r, n + this.input.substring(s, r), F.TemplateLiteralPart)), this.advance(), Y(r, this.index, this.input.substring(r, this.index));
|
|
1923
|
-
} else {
|
|
1924
|
-
if (this.peek === pe) return this.error("Unterminated template literal", 0);
|
|
1925
|
-
this.advance();
|
|
1926
|
-
}
|
|
1927
|
-
let i = this.input.substring(s, this.index);
|
|
1928
|
-
return this.advance(), new xe(e, this.index, n + i, F.TemplateLiteralEnd);
|
|
1929
|
-
}
|
|
1930
|
-
error(e, n) {
|
|
1931
|
-
let s = this.index + n;
|
|
1932
|
-
return fr(s, this.index, `Lexer Error: ${e} at column ${s} in expression [${this.input}]`);
|
|
1933
|
-
}
|
|
1934
|
-
scanStringBackslash(e, n) {
|
|
1935
|
-
e += this.input.substring(n, this.index);
|
|
1936
|
-
let s;
|
|
1937
|
-
if (this.advance(), this.peek === Gi) {
|
|
1938
|
-
let i = this.input.substring(this.index + 1, this.index + 5);
|
|
1939
|
-
if (/^[0-9a-f]+$/i.test(i)) s = parseInt(i, 16);
|
|
1940
|
-
else return this.error(`Invalid unicode escape [\\u${i}]`, 0);
|
|
1941
|
-
for (let r = 0; r < 5; r++) this.advance();
|
|
1942
|
-
} else s = xr(this.peek), this.advance();
|
|
1943
|
-
return e += String.fromCharCode(s), e;
|
|
1944
|
-
}
|
|
1945
|
-
scanStar(e) {
|
|
1946
|
-
this.advance();
|
|
1947
|
-
let n = "*";
|
|
1948
|
-
return this.peek === Nn ? (n += "*", this.advance(), this.peek === k && (n += "=", this.advance())) : this.peek === k && (n += "=", this.advance()), Y(e, this.index, n);
|
|
1949
|
-
}
|
|
1950
|
-
isStartOfRegex() {
|
|
1951
|
-
if (this.tokens.length === 0) return true;
|
|
1952
|
-
let e = this.tokens[this.tokens.length - 1];
|
|
1953
|
-
if (e.isOperator("!")) {
|
|
1954
|
-
let n = this.tokens.length > 1 ? this.tokens[this.tokens.length - 2] : null;
|
|
1955
|
-
return n === null || n.type !== h.Identifier && !n.isCharacter(q) && !n.isCharacter(G);
|
|
1956
|
-
}
|
|
1957
|
-
return e.type === h.Operator || e.isCharacter(ve) || e.isCharacter(te) || e.isCharacter(Q) || e.isCharacter(j);
|
|
1958
|
-
}
|
|
1959
|
-
scanRegex(e) {
|
|
1960
|
-
this.advance();
|
|
1961
|
-
let n = this.index, s = false, i = false;
|
|
1962
|
-
for (; ; ) {
|
|
1963
|
-
let p = this.peek;
|
|
1964
|
-
if (p === pe) return this.error("Unterminated regular expression", 0);
|
|
1965
|
-
if (s) s = false;
|
|
1966
|
-
else if (p === it) s = true;
|
|
1967
|
-
else if (p === te) i = true;
|
|
1968
|
-
else if (p === G) i = false;
|
|
1969
|
-
else if (p === Fe && !i) break;
|
|
1970
|
-
this.advance();
|
|
1971
|
-
}
|
|
1972
|
-
let r = this.input.substring(n, this.index);
|
|
1973
|
-
this.advance();
|
|
1974
|
-
let a = dr(e, this.index, r), u = this.scanRegexFlags(this.index);
|
|
1975
|
-
return u !== null ? (this.tokens.push(a), u) : a;
|
|
1976
|
-
}
|
|
1977
|
-
scanRegexFlags(e) {
|
|
1978
|
-
if (!Dt(this.peek)) return null;
|
|
1979
|
-
for (; Dt(this.peek); ) this.advance();
|
|
1980
|
-
return mr(e, this.index, this.input.substring(e, this.index));
|
|
1981
|
-
}
|
|
1982
|
-
};
|
|
1983
|
-
function Zn(t24) {
|
|
1984
|
-
return hs <= t24 && t24 <= fs || qt <= t24 && t24 <= jt || t24 == Xe || t24 == Wt;
|
|
1985
|
-
}
|
|
1986
|
-
function es(t24) {
|
|
1987
|
-
return Dt(t24) || W(t24) || t24 == Xe || t24 == Wt;
|
|
1988
|
-
}
|
|
1989
|
-
function gr(t24) {
|
|
1990
|
-
return t24 == Hi || t24 == Vi;
|
|
1991
|
-
}
|
|
1992
|
-
function vr(t24) {
|
|
1993
|
-
return t24 == ps || t24 == us;
|
|
1994
|
-
}
|
|
1995
|
-
function xr(t24) {
|
|
1996
|
-
switch (t24) {
|
|
1997
|
-
case qi:
|
|
1998
|
-
return Ie;
|
|
1999
|
-
case Wi:
|
|
2000
|
-
return Pi;
|
|
2001
|
-
case ji:
|
|
2002
|
-
return Li;
|
|
2003
|
-
case zi:
|
|
2004
|
-
return os;
|
|
2005
|
-
case Xi:
|
|
2006
|
-
return Ni;
|
|
2007
|
-
default:
|
|
2008
|
-
return t24;
|
|
2009
|
-
}
|
|
2010
|
-
}
|
|
2011
|
-
function wr(t24) {
|
|
2012
|
-
let e = parseInt(t24);
|
|
2013
|
-
if (isNaN(e)) throw new Error("Invalid integer literal when parsing " + t24);
|
|
2014
|
-
return e;
|
|
2015
|
-
}
|
|
2016
|
-
var Vt = class {
|
|
2017
|
-
strings;
|
|
2018
|
-
expressions;
|
|
2019
|
-
offsets;
|
|
2020
|
-
constructor(e, n, s) {
|
|
2021
|
-
this.strings = e, this.expressions = n, this.offsets = s;
|
|
2022
|
-
}
|
|
2023
|
-
};
|
|
2024
|
-
var Ut = class {
|
|
2025
|
-
templateBindings;
|
|
2026
|
-
warnings;
|
|
2027
|
-
errors;
|
|
2028
|
-
constructor(e, n, s) {
|
|
2029
|
-
this.templateBindings = e, this.warnings = n, this.errors = s;
|
|
2030
|
-
}
|
|
2031
|
-
};
|
|
2032
|
-
function B(t24) {
|
|
2033
|
-
return t24.start.toString() || "(unknown)";
|
|
2034
|
-
}
|
|
2035
|
-
var oe = class {
|
|
2036
|
-
_lexer;
|
|
2037
|
-
_supportsDirectPipeReferences;
|
|
2038
|
-
constructor(e, n = false) {
|
|
2039
|
-
this._lexer = e, this._supportsDirectPipeReferences = n;
|
|
2040
|
-
}
|
|
2041
|
-
parseAction(e, n, s) {
|
|
2042
|
-
let i = [];
|
|
2043
|
-
this._checkNoInterpolation(i, e, n);
|
|
2044
|
-
let { stripped: r } = this._stripComments(e), a = this._lexer.tokenize(r), u = new z(e, n, s, a, 1, i, 0, this._supportsDirectPipeReferences).parseChain();
|
|
2045
|
-
return new O(u, e, B(n), s, i);
|
|
2046
|
-
}
|
|
2047
|
-
parseBinding(e, n, s) {
|
|
2048
|
-
let i = [], r = this._parseBindingAst(e, n, s, i);
|
|
2049
|
-
return new O(r, e, B(n), s, i);
|
|
2050
|
-
}
|
|
2051
|
-
checkSimpleExpression(e) {
|
|
2052
|
-
let n = new Ht();
|
|
2053
|
-
return e.visit(n), n.errors;
|
|
2054
|
-
}
|
|
2055
|
-
parseSimpleBinding(e, n, s) {
|
|
2056
|
-
let i = [], r = this._parseBindingAst(e, n, s, i), a = this.checkSimpleExpression(r);
|
|
2057
|
-
return a.length > 0 && i.push(ee(`Host binding expression cannot contain ${a.join(" ")}`, e, "", n)), new O(r, e, B(n), s, i);
|
|
2058
|
-
}
|
|
2059
|
-
_parseBindingAst(e, n, s, i) {
|
|
2060
|
-
this._checkNoInterpolation(i, e, n);
|
|
2061
|
-
let { stripped: r } = this._stripComments(e), a = this._lexer.tokenize(r);
|
|
2062
|
-
return new z(e, n, s, a, 0, i, 0, this._supportsDirectPipeReferences).parseChain();
|
|
2063
|
-
}
|
|
2064
|
-
parseTemplateBindings(e, n, s, i, r) {
|
|
2065
|
-
let a = this._lexer.tokenize(n), u = [];
|
|
2066
|
-
return new z(n, s, r, a, 0, u, 0, this._supportsDirectPipeReferences).parseTemplateBindings({ source: e, span: new $(i, i + e.length) });
|
|
2067
|
-
}
|
|
2068
|
-
parseInterpolation(e, n, s, i) {
|
|
2069
|
-
let r = [], { strings: a, expressions: u, offsets: p } = this.splitInterpolation(e, n, r, i);
|
|
2070
|
-
if (u.length === 0) return null;
|
|
2071
|
-
let d = [];
|
|
2072
|
-
for (let w = 0; w < u.length; ++w) {
|
|
2073
|
-
let D = i?.[w * 2 + 1]?.sourceSpan, _ = u[w].text, { stripped: T, hasComments: y } = this._stripComments(_), V = this._lexer.tokenize(T);
|
|
2074
|
-
if (y && T.trim().length === 0 && V.length === 0) {
|
|
2075
|
-
r.push(ee("Interpolation expression cannot only contain a comment", e, `at column ${u[w].start} in`, n));
|
|
2076
|
-
continue;
|
|
2077
|
-
}
|
|
2078
|
-
let ce = new z(D ? _ : e, D || n, s, V, 0, r, p[w], this._supportsDirectPipeReferences).parseChain();
|
|
2079
|
-
d.push(ce);
|
|
2080
|
-
}
|
|
2081
|
-
return this.createInterpolationAst(a.map((w) => w.text), d, e, B(n), s, r);
|
|
2082
|
-
}
|
|
2083
|
-
parseInterpolationExpression(e, n, s) {
|
|
2084
|
-
let { stripped: i } = this._stripComments(e), r = this._lexer.tokenize(i), a = [], u = new z(e, n, s, r, 0, a, 0, this._supportsDirectPipeReferences).parseChain(), p = ["", ""];
|
|
2085
|
-
return this.createInterpolationAst(p, [u], e, B(n), s, a);
|
|
2086
|
-
}
|
|
2087
|
-
createInterpolationAst(e, n, s, i, r, a) {
|
|
2088
|
-
let u = new X(0, s.length), p = new Ii(u, u.toAbsolute(r), e, n);
|
|
2089
|
-
return new O(p, s, i, r, a);
|
|
2090
|
-
}
|
|
2091
|
-
splitInterpolation(e, n, s, i) {
|
|
2092
|
-
let r = [], a = [], u = [], p = i ? Sr(i) : null, d = 0, w = false, D = false, _ = "{{", T = "}}";
|
|
2093
|
-
for (; d < e.length; ) if (w) {
|
|
2094
|
-
let y = d, V = y + _.length, ce = this._getInterpolationEndIndex(e, T, V);
|
|
2095
|
-
if (ce === -1) {
|
|
2096
|
-
w = false, D = true;
|
|
2097
|
-
break;
|
|
2098
|
-
}
|
|
2099
|
-
let rn = ce + T.length, on = e.substring(V, ce);
|
|
2100
|
-
on.trim().length === 0 && s.push(ee("Blank expressions are not allowed in interpolated strings", e, `at column ${d} in`, n)), a.push({ text: on, start: y, end: rn });
|
|
2101
|
-
let yi = (p?.get(y) ?? y) + _.length;
|
|
2102
|
-
u.push(yi), d = rn, w = false;
|
|
2103
|
-
} else {
|
|
2104
|
-
let y = d;
|
|
2105
|
-
d = e.indexOf(_, d), d === -1 && (d = e.length);
|
|
2106
|
-
let V = e.substring(y, d);
|
|
2107
|
-
r.push({ text: V, start: y, end: d }), w = true;
|
|
2108
|
-
}
|
|
2109
|
-
if (!w) if (D) {
|
|
2110
|
-
let y = r[r.length - 1];
|
|
2111
|
-
y.text += e.substring(d), y.end = e.length;
|
|
2112
|
-
} else r.push({ text: e.substring(d), start: d, end: e.length });
|
|
2113
|
-
return new Vt(r, a, u);
|
|
2114
|
-
}
|
|
2115
|
-
wrapLiteralPrimitive(e, n, s) {
|
|
2116
|
-
let i = new X(0, e == null ? 0 : e.length);
|
|
2117
|
-
return new O(new I(i, i.toAbsolute(s), e), e, typeof n == "string" ? n : B(n), s, []);
|
|
2118
|
-
}
|
|
2119
|
-
_stripComments(e) {
|
|
2120
|
-
let n = this._commentStart(e);
|
|
2121
|
-
return n != null ? { stripped: e.substring(0, n), hasComments: true } : { stripped: e, hasComments: false };
|
|
2122
|
-
}
|
|
2123
|
-
_commentStart(e) {
|
|
2124
|
-
let n = null;
|
|
2125
|
-
for (let s = 0; s < e.length - 1; s++) {
|
|
2126
|
-
let i = e.charCodeAt(s), r = e.charCodeAt(s + 1);
|
|
2127
|
-
if (i === Fe && r == Fe && n == null) return s;
|
|
2128
|
-
n === i ? n = null : n == null && Mn(i) && (n = i);
|
|
2129
|
-
}
|
|
2130
|
-
return null;
|
|
2131
|
-
}
|
|
2132
|
-
_checkNoInterpolation(e, n, s) {
|
|
2133
|
-
let i = -1, r = -1;
|
|
2134
|
-
for (let a of this._forEachUnquotedChar(n, 0)) if (i === -1) n.startsWith("{{") && (i = a);
|
|
2135
|
-
else if (r = this._getInterpolationEndIndex(n, "}}", a), r > -1) break;
|
|
2136
|
-
i > -1 && r > -1 && e.push(ee("Got interpolation ({{}}) where expression was expected", n, `at column ${i} in`, s));
|
|
2137
|
-
}
|
|
2138
|
-
_getInterpolationEndIndex(e, n, s) {
|
|
2139
|
-
for (let i of this._forEachUnquotedChar(e, s)) {
|
|
2140
|
-
if (e.startsWith(n, i)) return i;
|
|
2141
|
-
if (e.startsWith("//", i)) return e.indexOf(n, i);
|
|
2142
|
-
}
|
|
2143
|
-
return -1;
|
|
2144
|
-
}
|
|
2145
|
-
*_forEachUnquotedChar(e, n) {
|
|
2146
|
-
let s = null, i = 0;
|
|
2147
|
-
for (let r = n; r < e.length; r++) {
|
|
2148
|
-
let a = e[r];
|
|
2149
|
-
Mn(e.charCodeAt(r)) && (s === null || s === a) && i % 2 === 0 ? s = s === null ? a : null : s === null && (yield r), i = a === "\\" ? i + 1 : 0;
|
|
2150
|
-
}
|
|
2151
|
-
}
|
|
2152
|
-
};
|
|
2153
|
-
var Z;
|
|
2154
|
-
(function(t24) {
|
|
2155
|
-
t24[t24.None = 0] = "None", t24[t24.Writable = 1] = "Writable";
|
|
2156
|
-
})(Z || (Z = {}));
|
|
2157
|
-
var ts = /* @__PURE__ */ new Set(["d", "g", "i", "m", "s", "u", "v", "y"]);
|
|
2158
|
-
var z = class {
|
|
2159
|
-
input;
|
|
2160
|
-
parseSourceSpan;
|
|
2161
|
-
absoluteOffset;
|
|
2162
|
-
tokens;
|
|
2163
|
-
parseFlags;
|
|
2164
|
-
errors;
|
|
2165
|
-
offset;
|
|
2166
|
-
supportsDirectPipeReferences;
|
|
2167
|
-
rparensExpected = 0;
|
|
2168
|
-
rbracketsExpected = 0;
|
|
2169
|
-
rbracesExpected = 0;
|
|
2170
|
-
context = Z.None;
|
|
2171
|
-
sourceSpanCache = /* @__PURE__ */ new Map();
|
|
2172
|
-
index = 0;
|
|
2173
|
-
constructor(e, n, s, i, r, a, u, p) {
|
|
2174
|
-
this.input = e, this.parseSourceSpan = n, this.absoluteOffset = s, this.tokens = i, this.parseFlags = r, this.errors = a, this.offset = u, this.supportsDirectPipeReferences = p;
|
|
2175
|
-
}
|
|
2176
|
-
peek(e) {
|
|
2177
|
-
let n = this.index + e;
|
|
2178
|
-
return n < this.tokens.length ? this.tokens[n] : Ae;
|
|
2179
|
-
}
|
|
2180
|
-
get next() {
|
|
2181
|
-
return this.peek(0);
|
|
2182
|
-
}
|
|
2183
|
-
get atEOF() {
|
|
2184
|
-
return this.index >= this.tokens.length;
|
|
2185
|
-
}
|
|
2186
|
-
get inputIndex() {
|
|
2187
|
-
return this.atEOF ? this.currentEndIndex : this.next.index + this.offset;
|
|
2188
|
-
}
|
|
2189
|
-
get currentEndIndex() {
|
|
2190
|
-
return this.index > 0 ? this.peek(-1).end + this.offset : this.tokens.length === 0 ? this.input.length + this.offset : this.next.index + this.offset;
|
|
2191
|
-
}
|
|
2192
|
-
get currentAbsoluteOffset() {
|
|
2193
|
-
return this.absoluteOffset + this.inputIndex;
|
|
2194
|
-
}
|
|
2195
|
-
span(e, n) {
|
|
2196
|
-
let s = this.currentEndIndex;
|
|
2197
|
-
if (n !== void 0 && n > this.currentEndIndex && (s = n), e > s) {
|
|
2198
|
-
let i = s;
|
|
2199
|
-
s = e, e = i;
|
|
2200
|
-
}
|
|
2201
|
-
return new X(e, s);
|
|
2202
|
-
}
|
|
2203
|
-
sourceSpan(e, n) {
|
|
2204
|
-
let s = `${e}@${this.inputIndex}:${n}`;
|
|
2205
|
-
return this.sourceSpanCache.has(s) || this.sourceSpanCache.set(s, this.span(e, n).toAbsolute(this.absoluteOffset)), this.sourceSpanCache.get(s);
|
|
2206
|
-
}
|
|
2207
|
-
advance() {
|
|
2208
|
-
this.index++;
|
|
2209
|
-
}
|
|
2210
|
-
withContext(e, n) {
|
|
2211
|
-
this.context |= e;
|
|
2212
|
-
let s = n();
|
|
2213
|
-
return this.context ^= e, s;
|
|
2214
|
-
}
|
|
2215
|
-
consumeOptionalCharacter(e) {
|
|
2216
|
-
return this.next.isCharacter(e) ? (this.advance(), true) : false;
|
|
2217
|
-
}
|
|
2218
|
-
peekKeywordLet() {
|
|
2219
|
-
return this.next.isKeywordLet();
|
|
2220
|
-
}
|
|
2221
|
-
peekKeywordAs() {
|
|
2222
|
-
return this.next.isKeywordAs();
|
|
2223
|
-
}
|
|
2224
|
-
expectCharacter(e) {
|
|
2225
|
-
this.consumeOptionalCharacter(e) || this.error(`Missing expected ${String.fromCharCode(e)}`);
|
|
2226
|
-
}
|
|
2227
|
-
consumeOptionalOperator(e) {
|
|
2228
|
-
return this.next.isOperator(e) ? (this.advance(), true) : false;
|
|
2229
|
-
}
|
|
2230
|
-
isAssignmentOperator(e) {
|
|
2231
|
-
return e.type === h.Operator && E.isAssignmentOperation(e.strValue);
|
|
2232
|
-
}
|
|
2233
|
-
expectOperator(e) {
|
|
2234
|
-
this.consumeOptionalOperator(e) || this.error(`Missing expected operator ${e}`);
|
|
2235
|
-
}
|
|
2236
|
-
prettyPrintToken(e) {
|
|
2237
|
-
return e === Ae ? "end of input" : `token ${e}`;
|
|
2238
|
-
}
|
|
2239
|
-
expectIdentifierOrKeyword() {
|
|
2240
|
-
let e = this.next;
|
|
2241
|
-
return !e.isIdentifier() && !e.isKeyword() ? (e.isPrivateIdentifier() ? this._reportErrorForPrivateIdentifier(e, "expected identifier or keyword") : this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`), null) : (this.advance(), e.toString());
|
|
2242
|
-
}
|
|
2243
|
-
expectIdentifierOrKeywordOrString() {
|
|
2244
|
-
let e = this.next;
|
|
2245
|
-
return !e.isIdentifier() && !e.isKeyword() && !e.isString() ? (e.isPrivateIdentifier() ? this._reportErrorForPrivateIdentifier(e, "expected identifier, keyword or string") : this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`), "") : (this.advance(), e.toString());
|
|
2246
|
-
}
|
|
2247
|
-
parseChain() {
|
|
2248
|
-
let e = [], n = this.inputIndex;
|
|
2249
|
-
for (; this.index < this.tokens.length; ) {
|
|
2250
|
-
let s = this.parsePipe();
|
|
2251
|
-
if (e.push(s), this.consumeOptionalCharacter(fe)) for (this.parseFlags & 1 || this.error("Binding expression cannot contain chained expression"); this.consumeOptionalCharacter(fe); ) ;
|
|
2252
|
-
else if (this.index < this.tokens.length) {
|
|
2253
|
-
let i = this.index;
|
|
2254
|
-
if (this.error(`Unexpected token '${this.next}'`), this.index === i) break;
|
|
2255
|
-
}
|
|
2256
|
-
}
|
|
2257
|
-
if (e.length === 0) {
|
|
2258
|
-
let s = this.offset, i = this.offset + this.input.length;
|
|
2259
|
-
return new b(this.span(s, i), this.sourceSpan(s, i));
|
|
2260
|
-
}
|
|
2261
|
-
return e.length == 1 ? e[0] : new yt(this.span(n), this.sourceSpan(n), e);
|
|
2262
|
-
}
|
|
2263
|
-
parsePipe() {
|
|
2264
|
-
let e = this.inputIndex, n = this.parseExpression();
|
|
2265
|
-
if (this.consumeOptionalOperator("|")) {
|
|
2266
|
-
this.parseFlags & 1 && this.error("Cannot have a pipe in an action expression");
|
|
2267
|
-
do {
|
|
2268
|
-
let s = this.inputIndex, i = this.expectIdentifierOrKeyword(), r, a;
|
|
2269
|
-
i !== null ? r = this.sourceSpan(s) : (i = "", a = this.next.index !== -1 ? this.next.index : this.input.length + this.offset, r = new X(a, a).toAbsolute(this.absoluteOffset));
|
|
2270
|
-
let u = [];
|
|
2271
|
-
for (; this.consumeOptionalCharacter(j); ) u.push(this.parseExpression());
|
|
2272
|
-
let p;
|
|
2273
|
-
if (this.supportsDirectPipeReferences) {
|
|
2274
|
-
let d = i.charCodeAt(0);
|
|
2275
|
-
p = d === Xe || d >= qt && d <= jt ? me.ReferencedDirectly : me.ReferencedByName;
|
|
2276
|
-
} else p = me.ReferencedByName;
|
|
2277
|
-
n = new kt(this.span(e), this.sourceSpan(e, a), n, i, u, p, r);
|
|
2278
|
-
} while (this.consumeOptionalOperator("|"));
|
|
2279
|
-
}
|
|
2280
|
-
return n;
|
|
2281
|
-
}
|
|
2282
|
-
parseExpression() {
|
|
2283
|
-
return this.parseConditional();
|
|
2284
|
-
}
|
|
2285
|
-
parseConditional() {
|
|
2286
|
-
let e = this.inputIndex, n = this.parseLogicalOr();
|
|
2287
|
-
if (this.consumeOptionalOperator("?")) {
|
|
2288
|
-
let s = this.parsePipe(), i;
|
|
2289
|
-
if (this.consumeOptionalCharacter(j)) i = this.parsePipe();
|
|
2290
|
-
else {
|
|
2291
|
-
let r = this.inputIndex, a = this.input.substring(e, r);
|
|
2292
|
-
this.error(`Conditional expression ${a} requires all 3 expressions`), i = new b(this.span(e), this.sourceSpan(e));
|
|
2293
|
-
}
|
|
2294
|
-
return new Ct(this.span(e), this.sourceSpan(e), n, s, i);
|
|
2295
|
-
} else return n;
|
|
2296
|
-
}
|
|
2297
|
-
parseLogicalOr() {
|
|
2298
|
-
let e = this.inputIndex, n = this.parseLogicalAnd();
|
|
2299
|
-
for (; this.consumeOptionalOperator("||"); ) {
|
|
2300
|
-
let s = this.parseLogicalAnd();
|
|
2301
|
-
n = new E(this.span(e), this.sourceSpan(e), "||", n, s);
|
|
2302
|
-
}
|
|
2303
|
-
return n;
|
|
2304
|
-
}
|
|
2305
|
-
parseLogicalAnd() {
|
|
2306
|
-
let e = this.inputIndex, n = this.parseNullishCoalescing();
|
|
2307
|
-
for (; this.consumeOptionalOperator("&&"); ) {
|
|
2308
|
-
let s = this.parseNullishCoalescing();
|
|
2309
|
-
n = new E(this.span(e), this.sourceSpan(e), "&&", n, s);
|
|
2310
|
-
}
|
|
2311
|
-
return n;
|
|
2312
|
-
}
|
|
2313
|
-
parseNullishCoalescing() {
|
|
2314
|
-
let e = this.inputIndex, n = this.parseEquality();
|
|
2315
|
-
for (; this.consumeOptionalOperator("??"); ) {
|
|
2316
|
-
let s = this.parseEquality();
|
|
2317
|
-
n = new E(this.span(e), this.sourceSpan(e), "??", n, s);
|
|
2318
|
-
}
|
|
2319
|
-
return n;
|
|
2320
|
-
}
|
|
2321
|
-
parseEquality() {
|
|
2322
|
-
let e = this.inputIndex, n = this.parseRelational();
|
|
2323
|
-
for (; this.next.type == h.Operator; ) {
|
|
2324
|
-
let s = this.next.strValue;
|
|
2325
|
-
switch (s) {
|
|
2326
|
-
case "==":
|
|
2327
|
-
case "===":
|
|
2328
|
-
case "!=":
|
|
2329
|
-
case "!==":
|
|
2330
|
-
this.advance();
|
|
2331
|
-
let i = this.parseRelational();
|
|
2332
|
-
n = new E(this.span(e), this.sourceSpan(e), s, n, i);
|
|
2333
|
-
continue;
|
|
2334
|
-
}
|
|
2335
|
-
break;
|
|
2336
|
-
}
|
|
2337
|
-
return n;
|
|
2338
|
-
}
|
|
2339
|
-
parseRelational() {
|
|
2340
|
-
let e = this.inputIndex, n = this.parseAdditive();
|
|
2341
|
-
for (; this.next.type == h.Operator || this.next.isKeywordIn; ) {
|
|
2342
|
-
let s = this.next.strValue;
|
|
2343
|
-
switch (s) {
|
|
2344
|
-
case "<":
|
|
2345
|
-
case ">":
|
|
2346
|
-
case "<=":
|
|
2347
|
-
case ">=":
|
|
2348
|
-
case "in":
|
|
2349
|
-
this.advance();
|
|
2350
|
-
let i = this.parseAdditive();
|
|
2351
|
-
n = new E(this.span(e), this.sourceSpan(e), s, n, i);
|
|
2352
|
-
continue;
|
|
2353
|
-
}
|
|
2354
|
-
break;
|
|
2355
|
-
}
|
|
2356
|
-
return n;
|
|
2357
|
-
}
|
|
2358
|
-
parseAdditive() {
|
|
2359
|
-
let e = this.inputIndex, n = this.parseMultiplicative();
|
|
2360
|
-
for (; this.next.type == h.Operator; ) {
|
|
2361
|
-
let s = this.next.strValue;
|
|
2362
|
-
switch (s) {
|
|
2363
|
-
case "+":
|
|
2364
|
-
case "-":
|
|
2365
|
-
this.advance();
|
|
2366
|
-
let i = this.parseMultiplicative();
|
|
2367
|
-
n = new E(this.span(e), this.sourceSpan(e), s, n, i);
|
|
2368
|
-
continue;
|
|
2369
|
-
}
|
|
2370
|
-
break;
|
|
2371
|
-
}
|
|
2372
|
-
return n;
|
|
2373
|
-
}
|
|
2374
|
-
parseMultiplicative() {
|
|
2375
|
-
let e = this.inputIndex, n = this.parseExponentiation();
|
|
2376
|
-
for (; this.next.type == h.Operator; ) {
|
|
2377
|
-
let s = this.next.strValue;
|
|
2378
|
-
switch (s) {
|
|
2379
|
-
case "*":
|
|
2380
|
-
case "%":
|
|
2381
|
-
case "/":
|
|
2382
|
-
this.advance();
|
|
2383
|
-
let i = this.parseExponentiation();
|
|
2384
|
-
n = new E(this.span(e), this.sourceSpan(e), s, n, i);
|
|
2385
|
-
continue;
|
|
2386
|
-
}
|
|
2387
|
-
break;
|
|
2388
|
-
}
|
|
2389
|
-
return n;
|
|
2390
|
-
}
|
|
2391
|
-
parseExponentiation() {
|
|
2392
|
-
let e = this.inputIndex, n = this.parsePrefix();
|
|
2393
|
-
for (; this.next.type == h.Operator && this.next.strValue === "**"; ) {
|
|
2394
|
-
(n instanceof ge || n instanceof Me || n instanceof Re || n instanceof $e) && this.error("Unary operator used immediately before exponentiation expression. Parenthesis must be used to disambiguate operator precedence"), this.advance();
|
|
2395
|
-
let s = this.parseExponentiation();
|
|
2396
|
-
n = new E(this.span(e), this.sourceSpan(e), "**", n, s);
|
|
2397
|
-
}
|
|
2398
|
-
return n;
|
|
2399
|
-
}
|
|
2400
|
-
parsePrefix() {
|
|
2401
|
-
if (this.next.type == h.Operator) {
|
|
2402
|
-
let e = this.inputIndex, n = this.next.strValue, s;
|
|
2403
|
-
switch (n) {
|
|
2404
|
-
case "+":
|
|
2405
|
-
return this.advance(), s = this.parsePrefix(), ge.createPlus(this.span(e), this.sourceSpan(e), s);
|
|
2406
|
-
case "-":
|
|
2407
|
-
return this.advance(), s = this.parsePrefix(), ge.createMinus(this.span(e), this.sourceSpan(e), s);
|
|
2408
|
-
case "!":
|
|
2409
|
-
return this.advance(), s = this.parsePrefix(), new Me(this.span(e), this.sourceSpan(e), s);
|
|
2410
|
-
}
|
|
2411
|
-
} else if (this.next.isKeywordTypeof()) {
|
|
2412
|
-
let e = this.inputIndex;
|
|
2413
|
-
this.advance();
|
|
2414
|
-
let n = this.parsePrefix();
|
|
2415
|
-
return new Re(this.span(e), this.sourceSpan(e), n);
|
|
2416
|
-
} else if (this.next.isKeywordVoid()) {
|
|
2417
|
-
let e = this.inputIndex;
|
|
2418
|
-
this.advance();
|
|
2419
|
-
let n = this.parsePrefix();
|
|
2420
|
-
return new $e(this.span(e), this.sourceSpan(e), n);
|
|
2421
|
-
}
|
|
2422
|
-
return this.parseCallChain();
|
|
2423
|
-
}
|
|
2424
|
-
parseCallChain() {
|
|
2425
|
-
let e = this.inputIndex, n = this.parsePrimary();
|
|
2426
|
-
for (; ; ) if (this.consumeOptionalCharacter(H)) n = this.parseAccessMember(n, e, false);
|
|
2427
|
-
else if (this.consumeOptionalOperator("?.")) this.consumeOptionalCharacter(ve) ? n = this.parseCall(n, e, true) : n = this.consumeOptionalCharacter(te) ? this.parseKeyedReadOrWrite(n, e, true) : this.parseAccessMember(n, e, true);
|
|
2428
|
-
else if (this.consumeOptionalCharacter(te)) n = this.parseKeyedReadOrWrite(n, e, false);
|
|
2429
|
-
else if (this.consumeOptionalCharacter(ve)) n = this.parseCall(n, e, false);
|
|
2430
|
-
else if (this.consumeOptionalOperator("!")) n = new Nt(this.span(e), this.sourceSpan(e), n);
|
|
2431
|
-
else if (this.next.isTemplateLiteralEnd()) n = this.parseNoInterpolationTaggedTemplateLiteral(n, e);
|
|
2432
|
-
else if (this.next.isTemplateLiteralPart()) n = this.parseTaggedTemplateLiteral(n, e);
|
|
2433
|
-
else return n;
|
|
2434
|
-
}
|
|
2435
|
-
parsePrimary() {
|
|
2436
|
-
let e = this.inputIndex;
|
|
2437
|
-
if (this.consumeOptionalCharacter(ve)) {
|
|
2438
|
-
this.rparensExpected++;
|
|
2439
|
-
let n = this.parsePipe();
|
|
2440
|
-
return this.consumeOptionalCharacter(q) || (this.error("Missing closing parentheses"), this.consumeOptionalCharacter(q)), this.rparensExpected--, new Ee(this.span(e), this.sourceSpan(e), n);
|
|
2441
|
-
} else {
|
|
2442
|
-
if (this.next.isKeywordNull()) return this.advance(), new I(this.span(e), this.sourceSpan(e), null);
|
|
2443
|
-
if (this.next.isKeywordUndefined()) return this.advance(), new I(this.span(e), this.sourceSpan(e), void 0);
|
|
2444
|
-
if (this.next.isKeywordTrue()) return this.advance(), new I(this.span(e), this.sourceSpan(e), true);
|
|
2445
|
-
if (this.next.isKeywordFalse()) return this.advance(), new I(this.span(e), this.sourceSpan(e), false);
|
|
2446
|
-
if (this.next.isKeywordIn()) return this.advance(), new I(this.span(e), this.sourceSpan(e), "in");
|
|
2447
|
-
if (this.next.isKeywordThis()) return this.advance(), new Et(this.span(e), this.sourceSpan(e));
|
|
2448
|
-
if (this.consumeOptionalCharacter(te)) return this.parseLiteralArray(e);
|
|
2449
|
-
if (this.next.isCharacter(Ve)) return this.parseLiteralMap();
|
|
2450
|
-
if (this.next.isIdentifier()) return this.parseAccessMember(new ne(this.span(e), this.sourceSpan(e)), e, false);
|
|
2451
|
-
if (this.next.isNumber()) {
|
|
2452
|
-
let n = this.next.toNumber();
|
|
2453
|
-
return this.advance(), new I(this.span(e), this.sourceSpan(e), n);
|
|
2454
|
-
} else {
|
|
2455
|
-
if (this.next.isTemplateLiteralEnd()) return this.parseNoInterpolationTemplateLiteral();
|
|
2456
|
-
if (this.next.isTemplateLiteralPart()) return this.parseTemplateLiteral();
|
|
2457
|
-
if (this.next.isString() && this.next.kind === F.Plain) {
|
|
2458
|
-
let n = this.next.toString();
|
|
2459
|
-
return this.advance(), new I(this.span(e), this.sourceSpan(e), n);
|
|
2460
|
-
} else return this.next.isPrivateIdentifier() ? (this._reportErrorForPrivateIdentifier(this.next, null), new b(this.span(e), this.sourceSpan(e))) : this.next.isRegExpBody() ? this.parseRegularExpressionLiteral() : this.index >= this.tokens.length ? (this.error(`Unexpected end of expression: ${this.input}`), new b(this.span(e), this.sourceSpan(e))) : (this.error(`Unexpected token ${this.next}`), new b(this.span(e), this.sourceSpan(e)));
|
|
2461
|
-
}
|
|
2462
|
-
}
|
|
2463
|
-
}
|
|
2464
|
-
parseLiteralArray(e) {
|
|
2465
|
-
this.rbracketsExpected++;
|
|
2466
|
-
let n = [];
|
|
2467
|
-
do
|
|
2468
|
-
if (this.next.isOperator("...")) n.push(this.parseSpreadElement());
|
|
2469
|
-
else if (!this.next.isCharacter(G)) n.push(this.parsePipe());
|
|
2470
|
-
else break;
|
|
2471
|
-
while (this.consumeOptionalCharacter(Q));
|
|
2472
|
-
return this.rbracketsExpected--, this.expectCharacter(G), new bt(this.span(e), this.sourceSpan(e), n);
|
|
2473
|
-
}
|
|
2474
|
-
parseLiteralMap() {
|
|
2475
|
-
let e = [], n = [], s = this.inputIndex;
|
|
2476
|
-
if (this.expectCharacter(Ve), !this.consumeOptionalCharacter(K)) {
|
|
2477
|
-
this.rbracesExpected++;
|
|
2478
|
-
do {
|
|
2479
|
-
let i = this.inputIndex;
|
|
2480
|
-
if (this.next.isOperator("...")) {
|
|
2481
|
-
this.advance(), e.push({ kind: "spread", span: this.span(i), sourceSpan: this.sourceSpan(i) }), n.push(this.parsePipe());
|
|
2482
|
-
continue;
|
|
2483
|
-
}
|
|
2484
|
-
let r = this.next.isString(), a = this.expectIdentifierOrKeywordOrString(), u = this.span(i), p = this.sourceSpan(i), d = { kind: "property", key: a, quoted: r, span: u, sourceSpan: p };
|
|
2485
|
-
e.push(d), r ? (this.expectCharacter(j), n.push(this.parsePipe())) : this.consumeOptionalCharacter(j) ? n.push(this.parsePipe()) : (d.isShorthandInitialized = true, n.push(new de(u, p, p, new ne(u, p), a)));
|
|
2486
|
-
} while (this.consumeOptionalCharacter(Q) && !this.next.isCharacter(K));
|
|
2487
|
-
this.rbracesExpected--, this.expectCharacter(K);
|
|
2488
|
-
}
|
|
2489
|
-
return new It(this.span(s), this.sourceSpan(s), e, n);
|
|
2490
|
-
}
|
|
2491
|
-
parseAccessMember(e, n, s) {
|
|
2492
|
-
let i = this.inputIndex, r = this.withContext(Z.Writable, () => {
|
|
2493
|
-
let u = this.expectIdentifierOrKeyword() ?? "";
|
|
2494
|
-
return u.length === 0 && this.error("Expected identifier for property access", e.span.end), u;
|
|
2495
|
-
}), a = this.sourceSpan(i);
|
|
2496
|
-
if (s) return this.isAssignmentOperator(this.next) ? (this.advance(), this.error("The '?.' operator cannot be used in the assignment"), new b(this.span(n), this.sourceSpan(n))) : new _t(this.span(n), this.sourceSpan(n), a, e, r);
|
|
2497
|
-
if (this.isAssignmentOperator(this.next)) {
|
|
2498
|
-
let u = this.next.strValue;
|
|
2499
|
-
if (!(this.parseFlags & 1)) return this.advance(), this.error("Bindings cannot contain assignments"), new b(this.span(n), this.sourceSpan(n));
|
|
2500
|
-
let p = new de(this.span(n), this.sourceSpan(n), a, e, r);
|
|
2501
|
-
this.advance();
|
|
2502
|
-
let d = this.parseConditional();
|
|
2503
|
-
return new E(this.span(n), this.sourceSpan(n), u, p, d);
|
|
2504
|
-
} else return new de(this.span(n), this.sourceSpan(n), a, e, r);
|
|
2505
|
-
}
|
|
2506
|
-
parseCall(e, n, s) {
|
|
2507
|
-
let i = this.inputIndex;
|
|
2508
|
-
this.rparensExpected++;
|
|
2509
|
-
let r = this.parseCallArguments(), a = this.span(i, this.inputIndex).toAbsolute(this.absoluteOffset);
|
|
2510
|
-
this.expectCharacter(q), this.rparensExpected--;
|
|
2511
|
-
let u = this.span(n), p = this.sourceSpan(n);
|
|
2512
|
-
return s ? new Lt(u, p, e, r, a) : new Pt(u, p, e, r, a);
|
|
2513
|
-
}
|
|
2514
|
-
parseCallArguments() {
|
|
2515
|
-
if (this.next.isCharacter(q)) return [];
|
|
2516
|
-
let e = [];
|
|
2517
|
-
do
|
|
2518
|
-
e.push(this.next.isOperator("...") ? this.parseSpreadElement() : this.parsePipe());
|
|
2519
|
-
while (this.consumeOptionalCharacter(Q));
|
|
2520
|
-
return e;
|
|
2521
|
-
}
|
|
2522
|
-
parseSpreadElement() {
|
|
2523
|
-
this.next.isOperator("...") || this.error("Spread element must start with '...' operator");
|
|
2524
|
-
let e = this.inputIndex;
|
|
2525
|
-
this.advance();
|
|
2526
|
-
let n = this.parsePipe(), s = this.span(e), i = this.sourceSpan(e);
|
|
2527
|
-
return new At(s, i, n);
|
|
2528
|
-
}
|
|
2529
|
-
expectTemplateBindingKey() {
|
|
2530
|
-
let e = "", n = false, s = this.currentAbsoluteOffset;
|
|
2531
|
-
do
|
|
2532
|
-
e += this.expectIdentifierOrKeywordOrString(), n = this.consumeOptionalOperator("-"), n && (e += "-");
|
|
2533
|
-
while (n);
|
|
2534
|
-
return { source: e, span: new $(s, s + e.length) };
|
|
2535
|
-
}
|
|
2536
|
-
parseTemplateBindings(e) {
|
|
2537
|
-
let n = [];
|
|
2538
|
-
for (n.push(...this.parseDirectiveKeywordBindings(e)); this.index < this.tokens.length; ) {
|
|
2539
|
-
let s = this.parseLetBinding();
|
|
2540
|
-
if (s) n.push(s);
|
|
2541
|
-
else {
|
|
2542
|
-
let i = this.expectTemplateBindingKey(), r = this.parseAsBinding(i);
|
|
2543
|
-
r ? n.push(r) : (i.source = e.source + i.source.charAt(0).toUpperCase() + i.source.substring(1), n.push(...this.parseDirectiveKeywordBindings(i)));
|
|
2544
|
-
}
|
|
2545
|
-
this.consumeStatementTerminator();
|
|
2546
|
-
}
|
|
2547
|
-
return new Ut(n, [], this.errors);
|
|
2548
|
-
}
|
|
2549
|
-
parseKeyedReadOrWrite(e, n, s) {
|
|
2550
|
-
return this.withContext(Z.Writable, () => {
|
|
2551
|
-
this.rbracketsExpected++;
|
|
2552
|
-
let i = this.parsePipe();
|
|
2553
|
-
if (i instanceof b && this.error("Key access cannot be empty"), this.rbracketsExpected--, this.expectCharacter(G), this.isAssignmentOperator(this.next)) {
|
|
2554
|
-
let r = this.next.strValue;
|
|
2555
|
-
if (s) this.advance(), this.error("The '?.' operator cannot be used in the assignment");
|
|
2556
|
-
else {
|
|
2557
|
-
let a = new Le(this.span(n), this.sourceSpan(n), e, i);
|
|
2558
|
-
this.advance();
|
|
2559
|
-
let u = this.parseConditional();
|
|
2560
|
-
return new E(this.span(n), this.sourceSpan(n), r, a, u);
|
|
2561
|
-
}
|
|
2562
|
-
} else return s ? new Tt(this.span(n), this.sourceSpan(n), e, i) : new Le(this.span(n), this.sourceSpan(n), e, i);
|
|
2563
|
-
return new b(this.span(n), this.sourceSpan(n));
|
|
2564
|
-
});
|
|
2565
|
-
}
|
|
2566
|
-
parseDirectiveKeywordBindings(e) {
|
|
2567
|
-
let n = [];
|
|
2568
|
-
this.consumeOptionalCharacter(j);
|
|
2569
|
-
let s = this.getDirectiveBoundTarget(), i = this.currentAbsoluteOffset, r = this.parseAsBinding(e);
|
|
2570
|
-
r || (this.consumeStatementTerminator(), i = this.currentAbsoluteOffset);
|
|
2571
|
-
let a = new $(e.span.start, i);
|
|
2572
|
-
return n.push(new ye(a, e, s)), r && n.push(r), n;
|
|
2573
|
-
}
|
|
2574
|
-
getDirectiveBoundTarget() {
|
|
2575
|
-
if (this.next === Ae || this.peekKeywordAs() || this.peekKeywordLet()) return null;
|
|
2576
|
-
let e = this.parsePipe(), { start: n, end: s } = e.span, i = this.input.substring(n, s);
|
|
2577
|
-
return new O(e, i, B(this.parseSourceSpan), this.absoluteOffset + n, this.errors);
|
|
2578
|
-
}
|
|
2579
|
-
parseAsBinding(e) {
|
|
2580
|
-
if (!this.peekKeywordAs()) return null;
|
|
2581
|
-
this.advance();
|
|
2582
|
-
let n = this.expectTemplateBindingKey();
|
|
2583
|
-
this.consumeStatementTerminator();
|
|
2584
|
-
let s = new $(e.span.start, this.currentAbsoluteOffset);
|
|
2585
|
-
return new se(s, n, e);
|
|
2586
|
-
}
|
|
2587
|
-
parseLetBinding() {
|
|
2588
|
-
if (!this.peekKeywordLet()) return null;
|
|
2589
|
-
let e = this.currentAbsoluteOffset;
|
|
2590
|
-
this.advance();
|
|
2591
|
-
let n = this.expectTemplateBindingKey(), s = null;
|
|
2592
|
-
this.consumeOptionalOperator("=") && (s = this.expectTemplateBindingKey()), this.consumeStatementTerminator();
|
|
2593
|
-
let i = new $(e, this.currentAbsoluteOffset);
|
|
2594
|
-
return new se(i, n, s);
|
|
2595
|
-
}
|
|
2596
|
-
parseNoInterpolationTaggedTemplateLiteral(e, n) {
|
|
2597
|
-
let s = this.parseNoInterpolationTemplateLiteral();
|
|
2598
|
-
return new De(this.span(n), this.sourceSpan(n), e, s);
|
|
2599
|
-
}
|
|
2600
|
-
parseNoInterpolationTemplateLiteral() {
|
|
2601
|
-
let e = this.next.strValue, n = this.inputIndex;
|
|
2602
|
-
this.advance();
|
|
2603
|
-
let s = this.span(n), i = this.sourceSpan(n);
|
|
2604
|
-
return new Be(s, i, [new Oe(s, i, e)], []);
|
|
2605
|
-
}
|
|
2606
|
-
parseTaggedTemplateLiteral(e, n) {
|
|
2607
|
-
let s = this.parseTemplateLiteral();
|
|
2608
|
-
return new De(this.span(n), this.sourceSpan(n), e, s);
|
|
2609
|
-
}
|
|
2610
|
-
parseTemplateLiteral() {
|
|
2611
|
-
let e = [], n = [], s = this.inputIndex;
|
|
2612
|
-
for (; this.next !== Ae; ) {
|
|
2613
|
-
let i = this.next;
|
|
2614
|
-
if (i.isTemplateLiteralPart() || i.isTemplateLiteralEnd()) {
|
|
2615
|
-
let r = this.inputIndex;
|
|
2616
|
-
if (this.advance(), e.push(new Oe(this.span(r), this.sourceSpan(r), i.strValue)), i.isTemplateLiteralEnd()) break;
|
|
2617
|
-
} else if (i.isTemplateLiteralInterpolationStart()) {
|
|
2618
|
-
this.advance(), this.rbracesExpected++;
|
|
2619
|
-
let r = this.parsePipe();
|
|
2620
|
-
r instanceof b ? this.error("Template literal interpolation cannot be empty") : n.push(r), this.rbracesExpected--;
|
|
2621
|
-
} else this.advance();
|
|
2622
|
-
}
|
|
2623
|
-
return new Be(this.span(s), this.sourceSpan(s), e, n);
|
|
2624
|
-
}
|
|
2625
|
-
parseRegularExpressionLiteral() {
|
|
2626
|
-
let e = this.next;
|
|
2627
|
-
if (this.advance(), !e.isRegExpBody()) return new b(this.span(this.inputIndex), this.sourceSpan(this.inputIndex));
|
|
2628
|
-
let n = null;
|
|
2629
|
-
if (this.next.isRegExpFlags()) {
|
|
2630
|
-
n = this.next, this.advance();
|
|
2631
|
-
let r = /* @__PURE__ */ new Set();
|
|
2632
|
-
for (let a = 0; a < n.strValue.length; a++) {
|
|
2633
|
-
let u = n.strValue[a];
|
|
2634
|
-
ts.has(u) ? r.has(u) ? this.error(`Duplicate regular expression flag "${u}"`, n.index + a) : r.add(u) : this.error(`Unsupported regular expression flag "${u}". The supported flags are: ` + Array.from(ts, (p) => `"${p}"`).join(", "), n.index + a);
|
|
2635
|
-
}
|
|
2636
|
-
}
|
|
2637
|
-
let s = e.index, i = n ? n.end : e.end;
|
|
2638
|
-
return new Mt(this.span(s, i), this.sourceSpan(s, i), e.strValue, n ? n.strValue : null);
|
|
2639
|
-
}
|
|
2640
|
-
consumeStatementTerminator() {
|
|
2641
|
-
this.consumeOptionalCharacter(fe) || this.consumeOptionalCharacter(Q);
|
|
2642
|
-
}
|
|
2643
|
-
error(e, n = this.index) {
|
|
2644
|
-
this.errors.push(ee(e, this.input, this.getErrorLocationText(n), this.parseSourceSpan)), this.skip();
|
|
2645
|
-
}
|
|
2646
|
-
getErrorLocationText(e) {
|
|
2647
|
-
return e < this.tokens.length ? `at column ${this.tokens[e].index + 1} in` : "at the end of the expression";
|
|
2648
|
-
}
|
|
2649
|
-
_reportErrorForPrivateIdentifier(e, n) {
|
|
2650
|
-
let s = `Private identifiers are not supported. Unexpected private identifier: ${e}`;
|
|
2651
|
-
n !== null && (s += `, ${n}`), this.error(s);
|
|
2652
|
-
}
|
|
2653
|
-
skip() {
|
|
2654
|
-
let e = this.next;
|
|
2655
|
-
for (; this.index < this.tokens.length && !e.isCharacter(fe) && !e.isOperator("|") && (this.rparensExpected <= 0 || !e.isCharacter(q)) && (this.rbracesExpected <= 0 || !e.isCharacter(K)) && (this.rbracketsExpected <= 0 || !e.isCharacter(G)) && (!(this.context & Z.Writable) || !this.isAssignmentOperator(e)); ) this.next.isError() && this.errors.push(ee(this.next.toString(), this.input, this.getErrorLocationText(this.next.index), this.parseSourceSpan)), this.advance(), e = this.next;
|
|
2656
|
-
}
|
|
2657
|
-
};
|
|
2658
|
-
function ee(t24, e, n, s) {
|
|
2659
|
-
n.length > 0 && (n = ` ${n} `);
|
|
2660
|
-
let i = B(s), r = `Parser Error: ${t24}${n}[${e}] in ${i}`;
|
|
2661
|
-
return new Ce(s, r);
|
|
2662
|
-
}
|
|
2663
|
-
var Ht = class extends Rt {
|
|
2664
|
-
errors = [];
|
|
2665
|
-
visitPipe() {
|
|
2666
|
-
this.errors.push("pipes");
|
|
2667
|
-
}
|
|
2668
|
-
};
|
|
2669
|
-
function Sr(t24) {
|
|
2670
|
-
let e = /* @__PURE__ */ new Map(), n = 0, s = 0, i = 0;
|
|
2671
|
-
for (; i < t24.length; ) {
|
|
2672
|
-
let r = t24[i];
|
|
2673
|
-
if (r.type === 9) {
|
|
2674
|
-
let [a, u] = r.parts;
|
|
2675
|
-
n += u.length, s += a.length;
|
|
2676
|
-
} else {
|
|
2677
|
-
let a = r.parts.reduce((u, p) => u + p.length, 0);
|
|
2678
|
-
s += a, n += a;
|
|
2679
|
-
}
|
|
2680
|
-
e.set(s, n), i++;
|
|
2681
|
-
}
|
|
2682
|
-
return e;
|
|
2683
|
-
}
|
|
2684
|
-
var Er = new Map(Object.entries({ class: "className", for: "htmlFor", formaction: "formAction", innerHtml: "innerHTML", readonly: "readOnly", tabindex: "tabIndex", "aria-activedescendant": "ariaActiveDescendantElement", "aria-atomic": "ariaAtomic", "aria-autocomplete": "ariaAutoComplete", "aria-busy": "ariaBusy", "aria-checked": "ariaChecked", "aria-colcount": "ariaColCount", "aria-colindex": "ariaColIndex", "aria-colindextext": "ariaColIndexText", "aria-colspan": "ariaColSpan", "aria-controls": "ariaControlsElements", "aria-current": "ariaCurrent", "aria-describedby": "ariaDescribedByElements", "aria-description": "ariaDescription", "aria-details": "ariaDetailsElements", "aria-disabled": "ariaDisabled", "aria-errormessage": "ariaErrorMessageElements", "aria-expanded": "ariaExpanded", "aria-flowto": "ariaFlowToElements", "aria-haspopup": "ariaHasPopup", "aria-hidden": "ariaHidden", "aria-invalid": "ariaInvalid", "aria-keyshortcuts": "ariaKeyShortcuts", "aria-label": "ariaLabel", "aria-labelledby": "ariaLabelledByElements", "aria-level": "ariaLevel", "aria-live": "ariaLive", "aria-modal": "ariaModal", "aria-multiline": "ariaMultiLine", "aria-multiselectable": "ariaMultiSelectable", "aria-orientation": "ariaOrientation", "aria-owns": "ariaOwnsElements", "aria-placeholder": "ariaPlaceholder", "aria-posinset": "ariaPosInSet", "aria-pressed": "ariaPressed", "aria-readonly": "ariaReadOnly", "aria-required": "ariaRequired", "aria-roledescription": "ariaRoleDescription", "aria-rowcount": "ariaRowCount", "aria-rowindex": "ariaRowIndex", "aria-rowindextext": "ariaRowIndexText", "aria-rowspan": "ariaRowSpan", "aria-selected": "ariaSelected", "aria-setsize": "ariaSetSize", "aria-sort": "ariaSort", "aria-valuemax": "ariaValueMax", "aria-valuemin": "ariaValueMin", "aria-valuenow": "ariaValueNow", "aria-valuetext": "ariaValueText" }));
|
|
2685
|
-
var vo = Array.from(Er).reduce((t24, [e, n]) => (t24.set(e, n), t24), /* @__PURE__ */ new Map());
|
|
2686
|
-
var xo = new oe(new _e());
|
|
2687
|
-
function P(t24) {
|
|
2688
|
-
return (e) => e.kind === t24;
|
|
2689
|
-
}
|
|
2690
|
-
function we(t24, e) {
|
|
2691
|
-
return (n) => n.kind === t24 && e === n.expression instanceof je;
|
|
2692
|
-
}
|
|
2693
|
-
function yr(t24) {
|
|
2694
|
-
return (t24.kind === f.Property || t24.kind === f.TwoWayProperty) && !(t24.expression instanceof je);
|
|
2695
|
-
}
|
|
2696
|
-
var wo = [{ test: P(f.StyleMap), transform: ze }, { test: P(f.ClassMap), transform: ze }, { test: P(f.StyleProp) }, { test: P(f.ClassProp) }, { test: we(f.Attribute, true) }, { test: we(f.Property, true) }, { test: yr }, { test: we(f.Attribute, false) }, { test: P(f.Control) }];
|
|
2697
|
-
var So = [{ test: we(f.DomProperty, true) }, { test: we(f.DomProperty, false) }, { test: P(f.Attribute) }, { test: P(f.StyleMap), transform: ze }, { test: P(f.ClassMap), transform: ze }, { test: P(f.StyleProp) }, { test: P(f.ClassProp) }];
|
|
2698
|
-
var Eo = /* @__PURE__ */ new Set([f.Listener, f.TwoWayListener, f.AnimationListener, f.StyleMap, f.ClassMap, f.StyleProp, f.ClassProp, f.Property, f.TwoWayProperty, f.DomProperty, f.Attribute, f.Animation, f.Control]);
|
|
2699
|
-
function ze(t24) {
|
|
2700
|
-
return t24.slice(t24.length - 1);
|
|
2701
|
-
}
|
|
2702
|
-
var yo = /* @__PURE__ */ new Map([[R.Idle, { none: l.deferOnIdle, prefetch: l.deferPrefetchOnIdle, hydrate: l.deferHydrateOnIdle }], [R.Immediate, { none: l.deferOnImmediate, prefetch: l.deferPrefetchOnImmediate, hydrate: l.deferHydrateOnImmediate }], [R.Timer, { none: l.deferOnTimer, prefetch: l.deferPrefetchOnTimer, hydrate: l.deferHydrateOnTimer }], [R.Hover, { none: l.deferOnHover, prefetch: l.deferPrefetchOnHover, hydrate: l.deferHydrateOnHover }], [R.Interaction, { none: l.deferOnInteraction, prefetch: l.deferPrefetchOnInteraction, hydrate: l.deferHydrateOnInteraction }], [R.Viewport, { none: l.deferOnViewport, prefetch: l.deferPrefetchOnViewport, hydrate: l.deferHydrateOnViewport }], [R.Never, { none: l.deferHydrateNever, prefetch: l.deferHydrateNever, hydrate: l.deferHydrateNever }]]);
|
|
2703
|
-
var Co = [l.pipeBind1, l.pipeBind2, l.pipeBind3, l.pipeBind4];
|
|
2704
|
-
var _o = { constant: [l.interpolate, l.interpolate1, l.interpolate2, l.interpolate3, l.interpolate4, l.interpolate5, l.interpolate6, l.interpolate7, l.interpolate8], variable: l.interpolateV, mapping: (t24) => {
|
|
2705
|
-
if (t24 % 2 === 0) throw new Error("Expected odd number of arguments");
|
|
2706
|
-
return (t24 - 1) / 2;
|
|
2707
|
-
} };
|
|
2708
|
-
var To = /* @__PURE__ */ new Map([["window", l.resolveWindow], ["document", l.resolveDocument], ["body", l.resolveBody]]);
|
|
2709
|
-
var ko = /* @__PURE__ */ new Map([[N.HTML, l.sanitizeHtml], [N.RESOURCE_URL, l.sanitizeResourceUrl], [N.SCRIPT, l.sanitizeScript], [N.STYLE, l.sanitizeStyle], [N.URL, l.sanitizeUrl], [N.ATTRIBUTE_NO_BINDING, l.validateAttribute]]);
|
|
2710
|
-
var bo = /* @__PURE__ */ new Map([[N.HTML, l.trustConstantHtml], [N.RESOURCE_URL, l.trustConstantResourceUrl]]);
|
|
2711
|
-
var ns;
|
|
2712
|
-
(function(t24) {
|
|
2713
|
-
t24[t24.None = 0] = "None", t24[t24.ViewContextRead = 1] = "ViewContextRead", t24[t24.ViewContextWrite = 2] = "ViewContextWrite", t24[t24.SideEffectful = 4] = "SideEffectful";
|
|
2714
|
-
})(ns || (ns = {}));
|
|
2715
|
-
var Ao = /* @__PURE__ */ new Map([[L.Property, M.Property], [L.TwoWay, M.TwoWayProperty], [L.Attribute, M.Attribute], [L.Class, M.ClassName], [L.Style, M.StyleProperty], [L.LegacyAnimation, M.LegacyAnimation], [L.Animation, M.Animation]]);
|
|
2716
|
-
var ss;
|
|
2717
|
-
(function(t24) {
|
|
2718
|
-
t24[t24.NG_CONTENT = 0] = "NG_CONTENT", t24[t24.STYLE = 1] = "STYLE", t24[t24.STYLESHEET = 2] = "STYLESHEET", t24[t24.SCRIPT = 3] = "SCRIPT", t24[t24.OTHER = 4] = "OTHER";
|
|
2719
|
-
})(ss || (ss = {}));
|
|
2720
|
-
var is;
|
|
2721
|
-
(function(t24) {
|
|
2722
|
-
t24.IDLE = "idle", t24.TIMER = "timer", t24.INTERACTION = "interaction", t24.IMMEDIATE = "immediate", t24.HOVER = "hover", t24.VIEWPORT = "viewport", t24.NEVER = "never";
|
|
2723
|
-
})(is || (is = {}));
|
|
2724
|
-
var ws = "%COMP%";
|
|
2725
|
-
var No = `_nghost-${ws}`;
|
|
2726
|
-
var Po = `_ngcontent-${ws}`;
|
|
2727
|
-
var rs;
|
|
2728
|
-
(function(t24) {
|
|
2729
|
-
t24[t24.Extract = 0] = "Extract", t24[t24.Merge = 1] = "Merge";
|
|
2730
|
-
})(rs || (rs = {}));
|
|
2731
|
-
var Lo = new St("21.1.0");
|
|
2732
|
-
var Cr = "test.html";
|
|
2733
|
-
function Ss(t24) {
|
|
2734
|
-
let e = new He(t24, Cr), n = new Ue(e, 0, 0, 0), s = n.moveBy(t24.length);
|
|
2735
|
-
return { text: t24, file: e, start: n, end: s, sourceSpan: new We(n, s) };
|
|
2736
|
-
}
|
|
2737
|
-
var _r;
|
|
2738
|
-
function Es() {
|
|
2739
|
-
return _r ?? (_r = new oe(new _e()));
|
|
2740
|
-
}
|
|
2741
|
-
var Tr = (t24) => oe.prototype._commentStart(t24);
|
|
2742
|
-
function kr(t24) {
|
|
2743
|
-
let e = Tr(t24);
|
|
2744
|
-
return e === null ? [] : [{ type: "CommentLine", value: t24.slice(e + 2), ...be({ start: e, end: t24.length }) }];
|
|
2745
|
-
}
|
|
2746
|
-
function ys(t24) {
|
|
2747
|
-
let { result: e } = t24;
|
|
2748
|
-
if (e.errors.length !== 0) {
|
|
2749
|
-
let [n] = e.errors;
|
|
2750
|
-
if (!(n instanceof Ce)) throw n;
|
|
2751
|
-
let { message: s } = n;
|
|
2752
|
-
{
|
|
2753
|
-
let a = s.match(/ in .*?@\d+:\d+$/);
|
|
2754
|
-
a && (s = s.slice(0, a.index));
|
|
2755
|
-
}
|
|
2756
|
-
let i = t24.start;
|
|
2757
|
-
{
|
|
2758
|
-
let a = s.match(/at column (?<index>\d+)/);
|
|
2759
|
-
a && (s = s.slice(0, a.index), i = i.moveBy(Number(a.groups.index)));
|
|
2760
|
-
}
|
|
2761
|
-
let r = new SyntaxError(s.trim(), { cause: n });
|
|
2762
|
-
throw Object.assign(r, { location: i, span: n.span }), r.cause ?? (r.cause = n), r;
|
|
2763
|
-
}
|
|
2764
|
-
return t24;
|
|
2765
|
-
}
|
|
2766
|
-
var Je = (t24) => (e) => {
|
|
2767
|
-
let n = Ss(e);
|
|
2768
|
-
return ys({ ...n, result: Es()[t24](e, n.sourceSpan, 0), comments: kr(e) });
|
|
2769
|
-
};
|
|
2770
|
-
var Cs = Je("parseAction");
|
|
2771
|
-
var _s = Je("parseBinding");
|
|
2772
|
-
var Ts = Je("parseSimpleBinding");
|
|
2773
|
-
var ks = Je("parseInterpolationExpression");
|
|
2774
|
-
var bs = (t24) => {
|
|
2775
|
-
let e = Ss(t24);
|
|
2776
|
-
return ys({ ...e, result: Es().parseTemplateBindings("", t24, e.sourceSpan, 0, 0), comments: [] });
|
|
2777
|
-
};
|
|
2778
|
-
var Ye = class {
|
|
2779
|
-
text;
|
|
2780
|
-
constructor(t24) {
|
|
2781
|
-
this.text = t24;
|
|
2782
|
-
}
|
|
2783
|
-
getCharacterIndex(t24, e) {
|
|
2784
|
-
return pn(this.text, t24, e);
|
|
2785
|
-
}
|
|
2786
|
-
transformSpan(t24) {
|
|
2787
|
-
return be(t24);
|
|
2788
|
-
}
|
|
2789
|
-
createNode(t24, e) {
|
|
2790
|
-
let n = t24.start, s = t24.end, i = t24.range;
|
|
2791
|
-
e && (Array.isArray(e) ? ([n, s] = e, i = e) : ({ start: n, end: s } = e.sourceSpan ?? e, i = [n, s]));
|
|
2792
|
-
i ? [n, s] = i : typeof n == "number" && typeof s == "number" && (i = [n, s]);
|
|
2793
|
-
if (!(typeof n == "number" && typeof s == "number" && i)) throw new Error("Missing location information");
|
|
2794
|
-
let r = { ...t24, start: n, end: s, range: i };
|
|
2795
|
-
switch (r.type) {
|
|
2796
|
-
case "NumericLiteral":
|
|
2797
|
-
case "StringLiteral":
|
|
2798
|
-
case "RegExpLiteral": {
|
|
2799
|
-
let a = this.text.slice(n, s), { value: u } = r;
|
|
2800
|
-
r.extra = { ...r.extra, raw: a, rawValue: u };
|
|
2801
|
-
break;
|
|
2802
|
-
}
|
|
2803
|
-
}
|
|
2804
|
-
return r;
|
|
2805
|
-
}
|
|
2806
|
-
};
|
|
2807
|
-
var As = Object.defineProperty;
|
|
2808
|
-
var Is = (t24, e) => {
|
|
2809
|
-
let n = {};
|
|
2810
|
-
for (var s in t24) As(n, s, { get: t24[s], enumerable: true });
|
|
2811
|
-
return e && As(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
2812
|
-
};
|
|
2813
|
-
var Ns = (t24, e) => ({ type: "ArrayExpression", elements: e.transformChildren(t24.expressions) });
|
|
2814
|
-
var Ps = (t24, e) => e.transformChild(t24.ast);
|
|
2815
|
-
var br = (t24) => t24 === "&&" || t24 === "||" || t24 === "??";
|
|
2816
|
-
var Ls = (t24, e) => {
|
|
2817
|
-
let { operation: n } = t24, [s, i] = e.transformChildren([t24.left, t24.right]);
|
|
2818
|
-
return br(n) ? { type: "LogicalExpression", operator: n, left: s, right: i } : E.isAssignmentOperation(n) ? { type: "AssignmentExpression", left: s, right: i, operator: n } : { left: s, right: i, type: "BinaryExpression", operator: n };
|
|
2819
|
-
};
|
|
2820
|
-
var Ar = { optional: false };
|
|
2821
|
-
var Ir = { optional: true };
|
|
2822
|
-
var Ms = ({ optional: t24 }) => (e, n) => {
|
|
2823
|
-
let s = n.transformChildren(e.args), i = n.transformChild(e.receiver);
|
|
2824
|
-
return t24 || ue(i) ? { type: "OptionalCallExpression", callee: i, arguments: s, optional: t24 } : { type: "CallExpression", callee: i, arguments: s };
|
|
2825
|
-
};
|
|
2826
|
-
var Rs = Ms(Ar);
|
|
2827
|
-
var $s = Ms(Ir);
|
|
2828
|
-
var Ds = (t24, e) => ({ type: "NGChainedExpression", expressions: e.transformChildren(t24.expressions) });
|
|
2829
|
-
var Bs = (t24, e) => {
|
|
2830
|
-
let [n, s, i] = e.transformChildren([t24.condition, t24.trueExp, t24.falseExp]);
|
|
2831
|
-
return { type: "ConditionalExpression", test: n, consequent: s, alternate: i };
|
|
2832
|
-
};
|
|
2833
|
-
var Os = (t24, e) => {
|
|
2834
|
-
let { expressions: n } = t24;
|
|
2835
|
-
if (n.length !== 1) throw new Error("Unexpected 'Interpolation'");
|
|
2836
|
-
return e.transformChild(n[0]);
|
|
2837
|
-
};
|
|
2838
|
-
var Fs = (t24) => {
|
|
2839
|
-
let { value: e } = t24;
|
|
2840
|
-
switch (typeof e) {
|
|
2841
|
-
case "boolean":
|
|
2842
|
-
return { type: "BooleanLiteral", value: e };
|
|
2843
|
-
case "number":
|
|
2844
|
-
return { type: "NumericLiteral", value: e };
|
|
2845
|
-
case "object":
|
|
2846
|
-
return { type: "NullLiteral" };
|
|
2847
|
-
case "string":
|
|
2848
|
-
return { type: "StringLiteral", value: e };
|
|
2849
|
-
case "undefined":
|
|
2850
|
-
return { type: "Identifier", name: "undefined" };
|
|
2851
|
-
default:
|
|
2852
|
-
throw new Error(`Unexpected 'LiteralPrimitive' value type ${typeof e}`);
|
|
2853
|
-
}
|
|
2854
|
-
};
|
|
2855
|
-
var Vs = (t24) => ({ type: "RegExpLiteral", pattern: t24.body, flags: t24.flags ?? "" });
|
|
2856
|
-
var Nr = { computed: true, optional: false };
|
|
2857
|
-
var Pr = { computed: true, optional: true };
|
|
2858
|
-
var Lr = { computed: false, optional: false };
|
|
2859
|
-
var Mr = { computed: false, optional: true };
|
|
2860
|
-
var Qe = ({ computed: t24, optional: e }) => (n, s) => {
|
|
2861
|
-
let { receiver: i } = n, r;
|
|
2862
|
-
if (t24) {
|
|
2863
|
-
let { key: u } = n;
|
|
2864
|
-
r = s.transformChild(u);
|
|
2865
|
-
} else {
|
|
2866
|
-
let u = i instanceof ne, { name: p, nameSpan: d } = n;
|
|
2867
|
-
if (r = s.create({ type: "Identifier", name: p }, d, u ? s.ancestors : []), u) return r;
|
|
2868
|
-
}
|
|
2869
|
-
let a = s.transformChild(i);
|
|
2870
|
-
return e || ue(a) ? { type: "OptionalMemberExpression", optional: e, property: r, object: a, computed: t24 } : { type: "MemberExpression", property: r, object: a, computed: t24 };
|
|
2871
|
-
};
|
|
2872
|
-
var Us = Qe(Nr);
|
|
2873
|
-
var Hs = Qe(Pr);
|
|
2874
|
-
var Ws = Qe(Lr);
|
|
2875
|
-
var qs = Qe(Mr);
|
|
2876
|
-
var js = (t24, e) => ({ type: "TSNonNullExpression", expression: e.transformChild(t24.expression) });
|
|
2877
|
-
var zs = (t24, e) => {
|
|
2878
|
-
let { keys: n, values: s } = t24, i = (r, a = t24) => e.create(r, a, [t24, ...e.ancestors]);
|
|
2879
|
-
return { type: "ObjectExpression", properties: n.map((r, a) => {
|
|
2880
|
-
let u = s[a], p = [r.sourceSpan.start, u.sourceSpan.end];
|
|
2881
|
-
if (r.kind === "spread") return i({ type: "SpreadElement", argument: e.transformChild(u) }, p);
|
|
2882
|
-
let d = !!r.isShorthandInitialized;
|
|
2883
|
-
return i({ type: "ObjectProperty", key: i(r.quoted ? { type: "StringLiteral", value: r.key } : { type: "Identifier", name: r.key }, r.sourceSpan), value: e.transformChild(u), shorthand: d, computed: false, method: false }, p);
|
|
2884
|
-
}) };
|
|
2885
|
-
};
|
|
2886
|
-
var Gs = (t24, e) => e.transformChild(t24.expression);
|
|
2887
|
-
var Xs = (t24, e) => ({ type: "NGPipeExpression", left: e.transformChild(t24.exp), right: e.create({ type: "Identifier", name: t24.name }, t24.nameSpan), arguments: e.transformChildren(t24.args) });
|
|
2888
|
-
var Js = (t24, e) => ({ type: "SpreadElement", argument: e.transformChild(t24.expression) });
|
|
2889
|
-
var Ys = (t24, e) => ({ type: "TaggedTemplateExpression", tag: e.transformChild(t24.tag), quasi: e.transformChild(t24.template) });
|
|
2890
|
-
var Qs = (t24, e) => ({ type: "TemplateLiteral", quasis: e.transformChildren(t24.elements), expressions: e.transformChildren(t24.expressions) });
|
|
2891
|
-
var Ks = (t24, e) => {
|
|
2892
|
-
let [n] = e.ancestors, { elements: s } = n, i = s.indexOf(t24), r = i === 0, a = i === s.length - 1, u = t24.sourceSpan.end - (a ? 1 : 0), p = t24.sourceSpan.start + (r ? 1 : 0), d = e.text.slice(p, u);
|
|
2893
|
-
return { type: "TemplateElement", value: { cooked: t24.text, raw: d }, tail: a, range: [p, u] };
|
|
2894
|
-
};
|
|
2895
|
-
var Zs = () => ({ type: "ThisExpression" });
|
|
2896
|
-
var Xt = (t24) => (e, n) => ({ type: "UnaryExpression", prefix: true, operator: t24, argument: n.transformChild(e.expression) });
|
|
2897
|
-
var ei = Xt("!");
|
|
2898
|
-
var ti = Xt("typeof");
|
|
2899
|
-
var ni = Xt("void");
|
|
2900
|
-
var si = (t24, e) => ({ type: "UnaryExpression", prefix: true, argument: e.transformChild(t24.expr), operator: t24.operator });
|
|
2901
|
-
var Rr = (t24) => {
|
|
2902
|
-
throw new Error(`Unexpected node type '${t24.constructor.name}'`);
|
|
2903
|
-
};
|
|
2904
|
-
var ii = Rr;
|
|
2905
|
-
var ri = Is({ visitASTWithSource: () => Ps, visitBinary: () => Ls, visitCall: () => Rs, visitChain: () => Ds, visitConditional: () => Bs, visitImplicitReceiver: () => ii, visitInterpolation: () => Os, visitKeyedRead: () => Us, visitLiteralArray: () => Ns, visitLiteralMap: () => zs, visitLiteralPrimitive: () => Fs, visitNonNullAssert: () => js, visitParenthesizedExpression: () => Gs, visitPipe: () => Xs, visitPrefixNot: () => ei, visitPropertyRead: () => Ws, visitRegularExpressionLiteral: () => Vs, visitSafeCall: () => $s, visitSafeKeyedRead: () => Hs, visitSafePropertyRead: () => qs, visitSpreadElement: () => Js, visitTaggedTemplateLiteral: () => Ys, visitTemplateLiteral: () => Qs, visitTemplateLiteralElement: () => Ks, visitThisReceiver: () => Zs, visitTypeofExpression: () => ti, visitUnary: () => si, visitVoidExpression: () => ni });
|
|
2906
|
-
var oi = ri;
|
|
2907
|
-
var Ke = class Jt extends Ye {
|
|
2908
|
-
node;
|
|
2909
|
-
ancestors;
|
|
2910
|
-
constructor({ node: e, text: n, ancestors: s = [] }) {
|
|
2911
|
-
super(n), this.node = e, this.ancestors = s;
|
|
2912
|
-
}
|
|
2913
|
-
create(e, n, s = this.ancestors) {
|
|
2914
|
-
return s[0] instanceof Ee && (e.extra = { ...e.extra, parenthesized: true }), super.createNode(e, e.range ?? n ?? this.node);
|
|
2915
|
-
}
|
|
2916
|
-
transformChild(e) {
|
|
2917
|
-
return new Jt({ node: e, ancestors: [this.node, ...this.ancestors], text: this.text }).transform();
|
|
2918
|
-
}
|
|
2919
|
-
transformChildren(e) {
|
|
2920
|
-
return e.map((n) => this.transformChild(n));
|
|
2921
|
-
}
|
|
2922
|
-
transform() {
|
|
2923
|
-
let { node: e } = this;
|
|
2924
|
-
if (e instanceof b) return this.create({ type: "NGEmptyExpression" });
|
|
2925
|
-
let n = e.visit(oi, this);
|
|
2926
|
-
return this.create(n, this.node);
|
|
2927
|
-
}
|
|
2928
|
-
static transform(e, n) {
|
|
2929
|
-
return new Jt({ node: e, text: n, ancestors: [] }).transform();
|
|
2930
|
-
}
|
|
2931
|
-
};
|
|
2932
|
-
var ai = class extends Ke {
|
|
2933
|
-
constructor(t24) {
|
|
2934
|
-
super({ node: t24, text: t24.source });
|
|
2935
|
-
}
|
|
2936
|
-
};
|
|
2937
|
-
var li = (t24, e) => Ke.transform(t24, e);
|
|
2938
|
-
var ci = (t24) => new ai(t24).transform();
|
|
2939
|
-
var ui = (t24, e) => (n, s, ...i) => n | 1 && s == null ? void 0 : (e.call(s) ?? s[t24]).apply(s, i);
|
|
2940
|
-
function $r(t24) {
|
|
2941
|
-
return this[t24 < 0 ? this.length + t24 : t24];
|
|
2942
|
-
}
|
|
2943
|
-
var Dr = ui("at", function() {
|
|
2944
|
-
if (Array.isArray(this) || typeof this == "string") return $r;
|
|
2945
|
-
});
|
|
2946
|
-
var pi = Dr;
|
|
2947
|
-
function hi(t24) {
|
|
2948
|
-
return t24 instanceof ye;
|
|
2949
|
-
}
|
|
2950
|
-
function fi(t24) {
|
|
2951
|
-
return t24 instanceof se;
|
|
2952
|
-
}
|
|
2953
|
-
var ae;
|
|
2954
|
-
var J;
|
|
2955
|
-
var m;
|
|
2956
|
-
var di;
|
|
2957
|
-
var C;
|
|
2958
|
-
var Yt;
|
|
2959
|
-
var Qt;
|
|
2960
|
-
var Kt;
|
|
2961
|
-
var mi;
|
|
2962
|
-
var gi;
|
|
2963
|
-
var vi;
|
|
2964
|
-
var xi;
|
|
2965
|
-
var le;
|
|
2966
|
-
var Br = (le = class extends Ye {
|
|
2967
|
-
constructor(n, s) {
|
|
2968
|
-
super(s);
|
|
2969
|
-
ke(this, m);
|
|
2970
|
-
ke(this, ae);
|
|
2971
|
-
ke(this, J);
|
|
2972
|
-
st(this, ae, n), st(this, J, s);
|
|
2973
|
-
for (let i of n) v(this, m, mi).call(this, i);
|
|
2974
|
-
}
|
|
2975
|
-
get expressions() {
|
|
2976
|
-
return v(this, m, vi).call(this);
|
|
2977
|
-
}
|
|
2978
|
-
}, ae = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakSet(), di = function() {
|
|
2979
|
-
return U(this, ae)[0].key;
|
|
2980
|
-
}, C = function(n, s) {
|
|
2981
|
-
return cn(le.prototype, this, "createNode").call(this, n, s);
|
|
2982
|
-
}, Yt = function(n) {
|
|
2983
|
-
return li(n, this.text);
|
|
2984
|
-
}, Qt = function(n) {
|
|
2985
|
-
return hn(n.slice(U(this, m, di).source.length));
|
|
2986
|
-
}, Kt = function(n) {
|
|
2987
|
-
let s = U(this, J);
|
|
2988
|
-
if (s[n.start] !== '"' && s[n.start] !== "'") return;
|
|
2989
|
-
let i = s[n.start], r = false;
|
|
2990
|
-
for (let a = n.start + 1; a < s.length; a++) switch (s[a]) {
|
|
2991
|
-
case i:
|
|
2992
|
-
if (!r) {
|
|
2993
|
-
n.end = a + 1;
|
|
2994
|
-
return;
|
|
2995
|
-
}
|
|
2996
|
-
default:
|
|
2997
|
-
r = false;
|
|
2998
|
-
break;
|
|
2999
|
-
case "\\":
|
|
3000
|
-
r = !r;
|
|
3001
|
-
break;
|
|
3002
|
-
}
|
|
3003
|
-
}, mi = function(n) {
|
|
3004
|
-
v(this, m, Kt).call(this, n.key.span), fi(n) && n.value && v(this, m, Kt).call(this, n.value.span);
|
|
3005
|
-
}, gi = function(n) {
|
|
3006
|
-
if (!n.value || n.value.source) return n.value;
|
|
3007
|
-
let s = this.getCharacterIndex(/\S/, n.sourceSpan.start);
|
|
3008
|
-
return { source: "$implicit", span: { start: s, end: s } };
|
|
3009
|
-
}, vi = function() {
|
|
3010
|
-
let n = U(this, ae), [s] = n, i = U(this, J).slice(s.sourceSpan.start, s.sourceSpan.end).trim().length === 0 ? n.slice(1) : n, r = [], a = null;
|
|
3011
|
-
for (let [u, p] of i.entries()) {
|
|
3012
|
-
if (a && hi(a) && fi(p) && p.value && p.value.source === a.key.source) {
|
|
3013
|
-
let d = v(this, m, C).call(this, { type: "NGMicrosyntaxKey", name: p.key.source }, p.key.span), w = (T, y) => ({ ...T, ...this.transformSpan({ start: T.start, end: y }) }), D = (T) => ({ ...w(T, d.end), alias: d }), _ = r.pop();
|
|
3014
|
-
if (_.type === "NGMicrosyntaxExpression") r.push(D(_));
|
|
3015
|
-
else if (_.type === "NGMicrosyntaxKeyedExpression") {
|
|
3016
|
-
let T = D(_.expression);
|
|
3017
|
-
r.push(w({ ..._, expression: T }, T.end));
|
|
3018
|
-
} else throw new Error(`Unexpected type ${_.type}`);
|
|
3019
|
-
} else r.push(v(this, m, xi).call(this, p, u));
|
|
3020
|
-
a = p;
|
|
3021
|
-
}
|
|
3022
|
-
return v(this, m, C).call(this, { type: "NGMicrosyntax", body: r }, r.length === 0 ? n[0].sourceSpan : { start: r[0].start, end: pi(0, r, -1).end });
|
|
3023
|
-
}, xi = function(n, s) {
|
|
3024
|
-
if (hi(n)) {
|
|
3025
|
-
let { key: i, value: r } = n;
|
|
3026
|
-
return r ? s === 0 ? v(this, m, C).call(this, { type: "NGMicrosyntaxExpression", expression: v(this, m, Yt).call(this, r.ast), alias: null }, r) : v(this, m, C).call(this, { type: "NGMicrosyntaxKeyedExpression", key: v(this, m, C).call(this, { type: "NGMicrosyntaxKey", name: v(this, m, Qt).call(this, i.source) }, i.span), expression: v(this, m, C).call(this, { type: "NGMicrosyntaxExpression", expression: v(this, m, Yt).call(this, r.ast), alias: null }, r) }, [i.span.start, r.sourceSpan.end]) : v(this, m, C).call(this, { type: "NGMicrosyntaxKey", name: v(this, m, Qt).call(this, i.source) }, i.span);
|
|
3027
|
-
} else {
|
|
3028
|
-
let { key: i, sourceSpan: r } = n;
|
|
3029
|
-
if (/^let\s$/.test(U(this, J).slice(r.start, r.start + 4))) {
|
|
3030
|
-
let { value: a } = n;
|
|
3031
|
-
return v(this, m, C).call(this, { type: "NGMicrosyntaxLet", key: v(this, m, C).call(this, { type: "NGMicrosyntaxKey", name: i.source }, i.span), value: a ? v(this, m, C).call(this, { type: "NGMicrosyntaxKey", name: a.source }, a.span) : null }, [r.start, a ? a.span.end : i.span.end]);
|
|
3032
|
-
} else {
|
|
3033
|
-
let a = v(this, m, gi).call(this, n);
|
|
3034
|
-
return v(this, m, C).call(this, { type: "NGMicrosyntaxAs", key: v(this, m, C).call(this, { type: "NGMicrosyntaxKey", name: a.source }, a.span), alias: v(this, m, C).call(this, { type: "NGMicrosyntaxKey", name: i.source }, i.span) }, [a.span.start, i.span.end]);
|
|
3035
|
-
}
|
|
3036
|
-
}
|
|
3037
|
-
}, le);
|
|
3038
|
-
function wi(t24, e) {
|
|
3039
|
-
return new Br(t24, e).expressions;
|
|
3040
|
-
}
|
|
3041
|
-
var Ze = (t24) => (e) => {
|
|
3042
|
-
let { result: n, comments: s } = t24(e);
|
|
3043
|
-
return Object.assign(ci(n), { comments: s });
|
|
3044
|
-
};
|
|
3045
|
-
var et = Ze(Cs);
|
|
3046
|
-
var Zt = Ze(_s);
|
|
3047
|
-
var Or = Ze(Ts);
|
|
3048
|
-
var en = Ze(ks);
|
|
3049
|
-
var tn = (t24) => wi(bs(t24).result.templateBindings, t24);
|
|
3050
|
-
function nn(t24) {
|
|
3051
|
-
let e = t24.range?.[0] ?? t24.start, n = (t24.declaration?.decorators ?? t24.decorators)?.[0];
|
|
3052
|
-
return n ? Math.min(nn(n), e) : e;
|
|
3053
|
-
}
|
|
3054
|
-
function Si(t24) {
|
|
3055
|
-
return t24.range?.[1] ?? t24.end;
|
|
3056
|
-
}
|
|
3057
|
-
function tt(t24) {
|
|
3058
|
-
return { astFormat: "estree", parse(e) {
|
|
3059
|
-
let n = t24(e), { comments: s } = n;
|
|
3060
|
-
return delete n.comments, t24 === et && n.type !== "NGChainedExpression" && (n = { ...n, type: "NGChainedExpression", expressions: [n] }), { type: "NGRoot", node: n, comments: s };
|
|
3061
|
-
}, locStart: nn, locEnd: Si };
|
|
3062
|
-
}
|
|
3063
|
-
var Fr = tt(et);
|
|
3064
|
-
var Vr = tt(Zt);
|
|
3065
|
-
var Ur = tt(en);
|
|
3066
|
-
var Hr = tt(tn);
|
|
3067
|
-
export {
|
|
3068
|
-
Ei as default,
|
|
3069
|
-
sn as parsers
|
|
3070
|
-
};
|
|
3071
|
-
//# sourceMappingURL=angular-PCJAXZFD.js.map
|