@rexeus/typeweaver 0.0.3 → 0.1.0

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