@drzl/validation-core 0.0.1

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