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