@shopify/create-app 4.1.0 → 4.3.0

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