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