lingo.dev 0.63.1 → 0.70.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/LICENSE.md +201 -0
  2. package/bin/cli.mjs +3 -1
  3. package/build/acorn-7GKKTQAZ.mjs +3047 -0
  4. package/build/acorn-C2XWIPGO.cjs +3047 -0
  5. package/build/angular-5ISIBFBY.mjs +2794 -0
  6. package/build/angular-XQHAJDB2.cjs +2794 -0
  7. package/build/api-7PZYRHW3.mjs +5 -0
  8. package/build/api-C35FHFLD.cjs +7 -0
  9. package/build/babel-DSN33ILH.cjs +6946 -0
  10. package/build/babel-ZNMMF5TX.mjs +6946 -0
  11. package/build/chunk-2AI774XU.cjs +130086 -0
  12. package/build/chunk-DAMIL4EZ.mjs +4533 -0
  13. package/build/chunk-HEBXNMVQ.mjs +48 -0
  14. package/build/chunk-IKCNLHD5.cjs +4533 -0
  15. package/build/chunk-L5BCMCQE.cjs +48 -0
  16. package/build/chunk-MUWDGJF2.mjs +962 -0
  17. package/build/chunk-XFD3AFWA.mjs +130086 -0
  18. package/build/chunk-ZXT7SLL5.cjs +962 -0
  19. package/build/cli.cjs +134752 -0
  20. package/build/cli.d.cts +3 -0
  21. package/build/cli.d.ts +3 -0
  22. package/build/cli.mjs +134745 -0
  23. package/build/estree-2CSK435T.mjs +4374 -0
  24. package/build/estree-N7T576SJ.cjs +4374 -0
  25. package/build/flow-IBTCTNRO.mjs +26897 -0
  26. package/build/flow-Y3OXWML5.cjs +26897 -0
  27. package/build/glimmer-FCD5RY7E.mjs +2847 -0
  28. package/build/glimmer-N5YT5DMK.cjs +2847 -0
  29. package/build/graphql-4DMZI42L.mjs +1247 -0
  30. package/build/graphql-GV4OMB3Z.cjs +1247 -0
  31. package/build/html-RNXFERLB.mjs +2716 -0
  32. package/build/html-XMA5LP2U.cjs +2716 -0
  33. package/build/markdown-6BIFNHAV.mjs +3484 -0
  34. package/build/markdown-LUUZAIEE.cjs +3484 -0
  35. package/build/meriyah-IV6VMAUC.mjs +2474 -0
  36. package/build/meriyah-XSJDPEN3.cjs +2474 -0
  37. package/build/postcss-PDIS5YQZ.cjs +5057 -0
  38. package/build/postcss-SDQEBDMO.mjs +5057 -0
  39. package/build/sdk.cjs +8 -0
  40. package/build/sdk.d.cts +1 -0
  41. package/build/sdk.d.ts +1 -0
  42. package/build/sdk.mjs +8 -0
  43. package/build/spec.cjs +47 -0
  44. package/build/spec.d.cts +1 -0
  45. package/build/spec.d.ts +1 -0
  46. package/build/spec.mjs +47 -0
  47. package/build/typescript-TT5RRHSS.cjs +13104 -0
  48. package/build/typescript-U5HXARXA.mjs +13104 -0
  49. package/build/yaml-6ITWGIVF.cjs +4223 -0
  50. package/build/yaml-DDDZYPIN.mjs +4223 -0
  51. package/package.json +26 -25
  52. package/readme.md +5 -16
  53. package/build/react-next.cjs +0 -2
  54. package/build/react-next.d.cts +0 -1
  55. package/build/react-next.d.ts +0 -1
  56. package/build/react-next.mjs +0 -2
  57. package/build/react.cjs +0 -2
  58. package/build/react.d.cts +0 -2
  59. package/build/react.d.ts +0 -2
  60. package/build/react.mjs +0 -2
  61. package/content/banner.png +0 -0
@@ -0,0 +1,2847 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } var _class; var _class2; var _class3; var _class4; var _class5; var _class6; var _class7; var _class8; var _class9;require('./chunk-L5BCMCQE.cjs');
2
+
3
+ // ../node_modules/.pnpm/prettier@3.4.2/node_modules/prettier/plugins/glimmer.mjs
4
+ var Br = Object.defineProperty;
5
+ var Ir = (e5) => {
6
+ throw TypeError(e5);
7
+ };
8
+ var jn = (e5, t, r) => t in e5 ? Br(e5, t, { enumerable: true, configurable: true, writable: true, value: r }) : e5[t] = r;
9
+ var Ue = (e5, t) => {
10
+ for (var r in t) Br(e5, r, { get: t[r], enumerable: true });
11
+ };
12
+ var Me = (e5, t, r) => jn(e5, typeof t != "symbol" ? t + "" : t, r);
13
+ var Rr = (e5, t, r) => t.has(e5) || Ir("Cannot " + r);
14
+ var I = (e5, t, r) => (Rr(e5, t, "read from private field"), r ? r.call(e5) : t.get(e5));
15
+ var Pt = (e5, t, r) => t.has(e5) ? Ir("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e5) : t.set(e5, r);
16
+ var J = (e5, t, r, n) => (Rr(e5, t, "write to private field"), n ? n.call(e5, r) : t.set(e5, r), r);
17
+ var Pr = {};
18
+ Ue(Pr, { languages: () => mn, parsers: () => Ar, printers: () => vi });
19
+ var Qn = (e5, t, r, n) => {
20
+ if (!(e5 && t == null)) return t.replaceAll ? t.replaceAll(r, n) : r.global ? t.replace(r, n) : t.split(r).join(n);
21
+ };
22
+ var ze = Qn;
23
+ var Mt = "string";
24
+ var zt = "array";
25
+ var Yt = "cursor";
26
+ var Lt = "indent";
27
+ var Dt = "align";
28
+ var Gt = "trim";
29
+ var _t = "group";
30
+ var Ot = "fill";
31
+ var Bt = "if-break";
32
+ var Kt = "indent-if-break";
33
+ var Wt = "line-suffix";
34
+ var jt = "line-suffix-boundary";
35
+ var $ = "line";
36
+ var Qt = "label";
37
+ var It = "break-parent";
38
+ var me = /* @__PURE__ */ new Set([Yt, Lt, Dt, Gt, _t, Ot, Bt, Kt, Wt, jt, $, Qt, It]);
39
+ function Jn(e5) {
40
+ if (typeof e5 == "string") return Mt;
41
+ if (Array.isArray(e5)) return zt;
42
+ if (!e5) return;
43
+ let { type: t } = e5;
44
+ if (me.has(t)) return t;
45
+ }
46
+ var Jt = Jn;
47
+ var $n = (e5) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(e5);
48
+ function Xn(e5) {
49
+ let t = e5 === null ? "null" : typeof e5;
50
+ if (t !== "string" && t !== "object") return `Unexpected doc '${t}',
51
+ Expected it to be 'string' or 'object'.`;
52
+ if (Jt(e5)) throw new Error("doc is valid.");
53
+ let r = Object.prototype.toString.call(e5);
54
+ if (r !== "[object Object]") return `Unexpected doc '${r}'.`;
55
+ let n = $n([...me].map((s) => `'${s}'`));
56
+ return `Unexpected doc.type '${e5.type}'.
57
+ Expected it to be ${n}.`;
58
+ }
59
+ var Ye = (_class = class extends Error {
60
+ __init() {this.name = "InvalidDocError"}
61
+ constructor(t) {
62
+ super(Xn(t));_class.prototype.__init.call(this);, this.doc = t;
63
+ }
64
+ }, _class);
65
+ var Ge = Ye;
66
+ var qr = () => {
67
+ };
68
+ var dt = qr;
69
+ var de = qr;
70
+ function B(e5) {
71
+ return dt(e5), { type: Lt, contents: e5 };
72
+ }
73
+ function Zn(e5, t) {
74
+ return dt(t), { type: Dt, contents: t, n: e5 };
75
+ }
76
+ function R(e5, t = {}) {
77
+ return dt(e5), de(t.expandedStates, true), { type: _t, id: t.id, contents: e5, break: !!t.shouldBreak, expandedStates: t.expandedStates };
78
+ }
79
+ function Ke(e5) {
80
+ return Zn(-1, e5);
81
+ }
82
+ function We(e5) {
83
+ return de(e5), { type: Ot, parts: e5 };
84
+ }
85
+ function je(e5, t = "", r = {}) {
86
+ return dt(e5), t !== "" && dt(t), { type: Bt, breakContents: e5, flatContents: t, groupId: r.groupId };
87
+ }
88
+ var Vr = { type: It };
89
+ var ts = { type: $, hard: true };
90
+ var es = { type: $, hard: true, literal: true };
91
+ var L = { type: $ };
92
+ var M = { type: $, soft: true };
93
+ var gt = [ts, Vr];
94
+ var Hr = [es, Vr];
95
+ function bt(e5, t) {
96
+ dt(e5), de(t);
97
+ let r = [];
98
+ for (let n = 0; n < t.length; n++) n !== 0 && r.push(e5), r.push(t[n]);
99
+ return r;
100
+ }
101
+ var rs = (e5, t, r) => {
102
+ if (!(e5 && t == null)) return Array.isArray(t) || typeof t == "string" ? t[r < 0 ? t.length + r : r] : t.at(r);
103
+ };
104
+ var it = rs;
105
+ function ns(e5, t) {
106
+ if (typeof e5 == "string") return t(e5);
107
+ let r = /* @__PURE__ */ new Map();
108
+ return n(e5);
109
+ function n(i) {
110
+ if (r.has(i)) return r.get(i);
111
+ let a = s(i);
112
+ return r.set(i, a), a;
113
+ }
114
+ function s(i) {
115
+ switch (Jt(i)) {
116
+ case zt:
117
+ return t(i.map(n));
118
+ case Ot:
119
+ return t({ ...i, parts: i.parts.map(n) });
120
+ case Bt:
121
+ return t({ ...i, breakContents: n(i.breakContents), flatContents: n(i.flatContents) });
122
+ case _t: {
123
+ let { expandedStates: a, contents: o } = i;
124
+ return a ? (a = a.map(n), o = a[0]) : o = n(o), t({ ...i, contents: o, expandedStates: a });
125
+ }
126
+ case Dt:
127
+ case Lt:
128
+ case Kt:
129
+ case Qt:
130
+ case Wt:
131
+ return t({ ...i, contents: n(i.contents) });
132
+ case Mt:
133
+ case Yt:
134
+ case Gt:
135
+ case jt:
136
+ case $:
137
+ case It:
138
+ return t(i);
139
+ default:
140
+ throw new Ge(i);
141
+ }
142
+ }
143
+ }
144
+ function Fr(e5, t = Hr) {
145
+ return ns(e5, (r) => typeof r == "string" ? bt(t, r.split(`
146
+ `)) : r);
147
+ }
148
+ var ge = "'";
149
+ var Ur = '"';
150
+ function ss(e5, t) {
151
+ let r = t === true || t === ge ? ge : Ur, n = r === ge ? Ur : ge, s = 0, i = 0;
152
+ for (let a of e5) a === r ? s++ : a === n && i++;
153
+ return s > i ? n : r;
154
+ }
155
+ var be = ss;
156
+ function Qe(e5) {
157
+ if (typeof e5 != "string") throw new TypeError("Expected a string");
158
+ return e5.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
159
+ }
160
+ var U;
161
+ var Je = class {
162
+ constructor(t) {
163
+ Pt(this, U);
164
+ J(this, U, new Set(t));
165
+ }
166
+ getLeadingWhitespaceCount(t) {
167
+ let r = I(this, U), n = 0;
168
+ for (let s = 0; s < t.length && r.has(t.charAt(s)); s++) n++;
169
+ return n;
170
+ }
171
+ getTrailingWhitespaceCount(t) {
172
+ let r = I(this, U), n = 0;
173
+ for (let s = t.length - 1; s >= 0 && r.has(t.charAt(s)); s--) n++;
174
+ return n;
175
+ }
176
+ getLeadingWhitespace(t) {
177
+ let r = this.getLeadingWhitespaceCount(t);
178
+ return t.slice(0, r);
179
+ }
180
+ getTrailingWhitespace(t) {
181
+ let r = this.getTrailingWhitespaceCount(t);
182
+ return t.slice(t.length - r);
183
+ }
184
+ hasLeadingWhitespace(t) {
185
+ return I(this, U).has(t.charAt(0));
186
+ }
187
+ hasTrailingWhitespace(t) {
188
+ return I(this, U).has(it(false, t, -1));
189
+ }
190
+ trimStart(t) {
191
+ let r = this.getLeadingWhitespaceCount(t);
192
+ return t.slice(r);
193
+ }
194
+ trimEnd(t) {
195
+ let r = this.getTrailingWhitespaceCount(t);
196
+ return t.slice(0, t.length - r);
197
+ }
198
+ trim(t) {
199
+ return this.trimEnd(this.trimStart(t));
200
+ }
201
+ split(t, r = false) {
202
+ let n = `[${Qe([...I(this, U)].join(""))}]+`, s = new RegExp(r ? `(${n})` : n, "u");
203
+ return t.split(s);
204
+ }
205
+ hasWhitespaceCharacter(t) {
206
+ let r = I(this, U);
207
+ return Array.prototype.some.call(t, (n) => r.has(n));
208
+ }
209
+ hasNonWhitespaceCharacter(t) {
210
+ let r = I(this, U);
211
+ return Array.prototype.some.call(t, (n) => !r.has(n));
212
+ }
213
+ isWhitespaceOnly(t) {
214
+ let r = I(this, U);
215
+ return Array.prototype.every.call(t, (n) => r.has(n));
216
+ }
217
+ };
218
+ U = /* @__PURE__ */ new WeakMap();
219
+ var Mr = Je;
220
+ var is = [" ", `
221
+ `, "\f", "\r", " "];
222
+ var as = new Mr(is);
223
+ var z = as;
224
+ function os(e5) {
225
+ return Array.isArray(e5) && e5.length > 0;
226
+ }
227
+ var $t = os;
228
+ var $e = (_class2 = class extends Error {
229
+ __init2() {this.name = "UnexpectedNodeError"}
230
+ constructor(t, r, n = "type") {
231
+ super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`);_class2.prototype.__init2.call(this);, this.node = t;
232
+ }
233
+ }, _class2);
234
+ var zr = $e;
235
+ function Yr(e5, t) {
236
+ if (e5.type === "TextNode") {
237
+ let r = e5.chars.trim();
238
+ if (!r) return null;
239
+ t.chars = z.split(r).join(" ");
240
+ }
241
+ e5.type === "ElementNode" && (delete t.startTag, delete t.openTag, delete t.parts, delete t.endTag, delete t.closeTag, delete t.nameNode, delete t.body, delete t.blockParamNodes, delete t.params, delete t.path), e5.type === "Block" && (delete t.blockParamNodes, delete t.params), e5.type === "AttrNode" && e5.name.toLowerCase() === "class" && delete t.value, e5.type === "PathExpression" && (t.head = e5.head.original);
242
+ }
243
+ Yr.ignoredProperties = /* @__PURE__ */ new Set(["loc", "selfClosing"]);
244
+ var Gr = Yr;
245
+ var Xt = null;
246
+ function Zt(e5) {
247
+ if (Xt !== null && typeof Xt.property) {
248
+ let t = Xt;
249
+ return Xt = Zt.prototype = null, t;
250
+ }
251
+ return Xt = Zt.prototype = _nullishCoalesce(e5, () => ( /* @__PURE__ */ Object.create(null))), new Zt();
252
+ }
253
+ var ls = 10;
254
+ for (let e5 = 0; e5 <= ls; e5++) Zt();
255
+ function Xe(e5) {
256
+ return Zt(e5);
257
+ }
258
+ function cs(e5, t = "type") {
259
+ Xe(e5);
260
+ function r(n) {
261
+ let s = n[t], i = e5[s];
262
+ if (!Array.isArray(i)) throw Object.assign(new Error(`Missing visitor keys for '${s}'.`), { node: n });
263
+ return i;
264
+ }
265
+ return r;
266
+ }
267
+ var Kr = cs;
268
+ var Wr = { Template: ["body"], Block: ["body"], MustacheStatement: ["path", "params", "hash"], BlockStatement: ["path", "params", "hash", "program", "inverse"], ElementModifierStatement: ["path", "params", "hash"], CommentStatement: [], MustacheCommentStatement: [], ElementNode: ["attributes", "modifiers", "children", "comments"], AttrNode: ["value"], TextNode: [], ConcatStatement: ["parts"], SubExpression: ["path", "params", "hash"], PathExpression: [], StringLiteral: [], BooleanLiteral: [], NumberLiteral: [], NullLiteral: [], UndefinedLiteral: [], Hash: ["pairs"], HashPair: ["value"] };
269
+ var us = Kr(Wr);
270
+ var jr = us;
271
+ function yt(e5) {
272
+ return e5.loc.start.offset;
273
+ }
274
+ function te(e5) {
275
+ return e5.loc.end.offset;
276
+ }
277
+ var Qr = /* @__PURE__ */ new Set(["area", "base", "br", "col", "command", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]);
278
+ function $r(e5) {
279
+ return e5.toUpperCase() === e5;
280
+ }
281
+ function hs(e5) {
282
+ return e5.type === "ElementNode" && typeof e5.tag == "string" && !e5.tag.startsWith(":") && ($r(e5.tag[0]) || e5.tag.includes("."));
283
+ }
284
+ function ps(e5) {
285
+ return Qr.has(e5.toLowerCase()) && !$r(e5[0]);
286
+ }
287
+ function Ze(e5) {
288
+ return e5.selfClosing === true || ps(e5.tag) || hs(e5) && e5.children.every((t) => ye(t));
289
+ }
290
+ function ye(e5) {
291
+ return e5.type === "TextNode" && !/\S/u.test(e5.chars);
292
+ }
293
+ function Jr(e5) {
294
+ return (e5 == null ? void 0 : e5.type) === "MustacheCommentStatement" && typeof e5.value == "string" && e5.value.trim() === "prettier-ignore";
295
+ }
296
+ function Xr(e5) {
297
+ return Jr(e5.node) || e5.isInArray && (e5.key === "children" || e5.key === "body" || e5.key === "parts") && Jr(e5.siblings[e5.index - 2]);
298
+ }
299
+ var on = 2;
300
+ function fs(e5, t, r) {
301
+ var s, i, a, o, c, h, p, m, v;
302
+ let { node: n } = e5;
303
+ switch (n.type) {
304
+ case "Block":
305
+ case "Program":
306
+ case "Template":
307
+ return R(e5.map(r, "body"));
308
+ case "ElementNode": {
309
+ let g = R(ds(e5, r)), E = t.htmlWhitespaceSensitivity === "ignore" && ((s = e5.next) == null ? void 0 : s.type) === "ElementNode" ? M : "";
310
+ if (Ze(n)) return [g, E];
311
+ let N = ["</", n.tag, ">"];
312
+ return n.children.length === 0 ? [g, B(N), E] : t.htmlWhitespaceSensitivity === "ignore" ? [g, B(Zr(e5, t, r)), gt, B(N), E] : [g, B(R(Zr(e5, t, r))), B(N), E];
313
+ }
314
+ case "BlockStatement":
315
+ return vs(e5) ? [Es(e5, r), rn(e5, r, t), nn(e5, r, t)] : [ks(e5, r), R([rn(e5, r, t), nn(e5, r, t), ws(e5, r, t)])];
316
+ case "ElementModifierStatement":
317
+ return R(["{{", an(e5, r), "}}"]);
318
+ case "MustacheStatement":
319
+ return R([ke(n), an(e5, r), Se(n)]);
320
+ case "SubExpression":
321
+ return R(["(", Ls(e5, r), M, ")"]);
322
+ case "AttrNode": {
323
+ let { name: g, value: E } = n, N = E.type === "TextNode";
324
+ if (N && E.chars === "" && yt(E) === te(E)) return g;
325
+ let w = N ? be(E.chars, t.singleQuote) : E.type === "ConcatStatement" ? be(E.parts.map((q) => q.type === "TextNode" ? q.chars : "").join(""), t.singleQuote) : "", Z = r("value");
326
+ return [g, "=", w, g === "class" && w ? R(B(Z)) : Z, w];
327
+ }
328
+ case "ConcatStatement":
329
+ return e5.map(r, "parts");
330
+ case "Hash":
331
+ return bt(L, e5.map(r, "pairs"));
332
+ case "HashPair":
333
+ return [n.key, "=", r("value")];
334
+ case "TextNode": {
335
+ let g = ze(false, n.chars, "{{", String.raw`\{{`), E = Cs(e5);
336
+ if (E) {
337
+ if (E === "class") {
338
+ let j = g.trim().split(/\s+/u).join(" "), tt = false, V = false;
339
+ return e5.parent.type === "ConcatStatement" && (((i = e5.previous) == null ? void 0 : i.type) === "MustacheStatement" && /^\s/u.test(g) && (tt = true), ((a = e5.next) == null ? void 0 : a.type) === "MustacheStatement" && /\s$/u.test(g) && j !== "" && (V = true)), [tt ? L : "", j, V ? L : ""];
340
+ }
341
+ return Fr(g);
342
+ }
343
+ let N = z.isWhitespaceOnly(g), { isFirst: x, isLast: w } = e5;
344
+ if (t.htmlWhitespaceSensitivity !== "ignore") {
345
+ let j = w && e5.parent.type === "Template", tt = x && e5.parent.type === "Template";
346
+ if (N) {
347
+ if (tt || j) return "";
348
+ let P = [L], rt = Rt(g);
349
+ return rt && (P = ee(rt)), w && (P = P.map((he) => Ke(he))), P;
350
+ }
351
+ let V = z.getLeadingWhitespace(g), Nt = [];
352
+ if (V) {
353
+ Nt = [L];
354
+ let P = Rt(V);
355
+ P && (Nt = ee(P)), g = g.slice(V.length);
356
+ }
357
+ let H = z.getTrailingWhitespace(g), et = [];
358
+ if (H) {
359
+ if (!j) {
360
+ et = [L];
361
+ let P = Rt(H);
362
+ P && (et = ee(P)), w && (et = et.map((rt) => Ke(rt)));
363
+ }
364
+ g = g.slice(0, -H.length);
365
+ }
366
+ return [...Nt, We(sn(g)), ...et];
367
+ }
368
+ let Z = Rt(g), q = Ns(g), W = xs(g);
369
+ if ((x || w) && N && (e5.parent.type === "Block" || e5.parent.type === "ElementNode" || e5.parent.type === "Template")) return "";
370
+ N && Z ? (q = Math.min(Z, on), W = 0) : ((((o = e5.next) == null ? void 0 : o.type) === "BlockStatement" || ((c = e5.next) == null ? void 0 : c.type) === "ElementNode") && (W = Math.max(W, 1)), (((h = e5.previous) == null ? void 0 : h.type) === "BlockStatement" || ((p = e5.previous) == null ? void 0 : p.type) === "ElementNode") && (q = Math.max(q, 1)));
371
+ let Tt = "", Ct = "";
372
+ return W === 0 && ((m = e5.next) == null ? void 0 : m.type) === "MustacheStatement" && (Ct = " "), q === 0 && ((v = e5.previous) == null ? void 0 : v.type) === "MustacheStatement" && (Tt = " "), x && (q = 0, Tt = ""), w && (W = 0, Ct = ""), z.hasLeadingWhitespace(g) && (g = Tt + z.trimStart(g)), z.hasTrailingWhitespace(g) && (g = z.trimEnd(g) + Ct), [...ee(q), We(sn(g)), ...ee(W)];
373
+ }
374
+ case "MustacheCommentStatement": {
375
+ let g = yt(n), E = te(n), N = t.originalText.charAt(g + 2) === "~", x = t.originalText.charAt(E - 3) === "~", w = n.value.includes("}}") ? "--" : "";
376
+ return ["{{", N ? "~" : "", "!", w, n.value, w, x ? "~" : "", "}}"];
377
+ }
378
+ case "PathExpression":
379
+ return Bs(n);
380
+ case "BooleanLiteral":
381
+ return String(n.value);
382
+ case "CommentStatement":
383
+ return ["<!--", n.value, "-->"];
384
+ case "StringLiteral":
385
+ return As(e5, t);
386
+ case "NumberLiteral":
387
+ return String(n.value);
388
+ case "UndefinedLiteral":
389
+ return "undefined";
390
+ case "NullLiteral":
391
+ return "null";
392
+ case "AtHead":
393
+ case "VarHead":
394
+ case "ThisHead":
395
+ default:
396
+ throw new zr(n, "Handlebars");
397
+ }
398
+ }
399
+ function ms(e5, t) {
400
+ return yt(e5) - yt(t);
401
+ }
402
+ function ds(e5, t) {
403
+ let { node: r } = e5, n = ["attributes", "modifiers", "comments"].filter((i) => $t(r[i])), s = n.flatMap((i) => r[i]).sort(ms);
404
+ for (let i of n) e5.each(({ node: a }) => {
405
+ let o = s.indexOf(a);
406
+ s.splice(o, 1, [L, t()]);
407
+ }, i);
408
+ return $t(r.blockParams) && s.push(L, er(r)), ["<", r.tag, B(s), gs(r)];
409
+ }
410
+ function Zr(e5, t, r) {
411
+ let { node: n } = e5, s = n.children.every((i) => ye(i));
412
+ return t.htmlWhitespaceSensitivity === "ignore" && s ? "" : e5.map(({ isFirst: i }) => {
413
+ let a = r();
414
+ return i && t.htmlWhitespaceSensitivity === "ignore" ? [M, a] : a;
415
+ }, "children");
416
+ }
417
+ function gs(e5) {
418
+ return Ze(e5) ? je([M, "/>"], [" />", M]) : je([M, ">"], ">");
419
+ }
420
+ function ke(e5) {
421
+ var n;
422
+ let t = e5.trusting ? "{{{" : "{{", r = (n = e5.strip) != null && n.open ? "~" : "";
423
+ return [t, r];
424
+ }
425
+ function Se(e5) {
426
+ var n;
427
+ let t = e5.trusting ? "}}}" : "}}";
428
+ return [(n = e5.strip) != null && n.close ? "~" : "", t];
429
+ }
430
+ function bs(e5) {
431
+ let t = ke(e5), r = e5.openStrip.open ? "~" : "";
432
+ return [t, r, "#"];
433
+ }
434
+ function ys(e5) {
435
+ let t = Se(e5);
436
+ return [e5.openStrip.close ? "~" : "", t];
437
+ }
438
+ function tn(e5) {
439
+ let t = ke(e5), r = e5.closeStrip.open ? "~" : "";
440
+ return [t, r, "/"];
441
+ }
442
+ function en(e5) {
443
+ let t = Se(e5);
444
+ return [e5.closeStrip.close ? "~" : "", t];
445
+ }
446
+ function ln(e5) {
447
+ let t = ke(e5), r = e5.inverseStrip.open ? "~" : "";
448
+ return [t, r];
449
+ }
450
+ function cn(e5) {
451
+ let t = Se(e5);
452
+ return [e5.inverseStrip.close ? "~" : "", t];
453
+ }
454
+ function ks(e5, t) {
455
+ let { node: r } = e5, n = [], s = ve(e5, t);
456
+ return s && n.push(R(s)), $t(r.program.blockParams) && n.push(er(r.program)), R([bs(r), tr(e5, t), n.length > 0 ? B([L, bt(L, n)]) : "", M, ys(r)]);
457
+ }
458
+ function Ss(e5, t) {
459
+ return [t.htmlWhitespaceSensitivity === "ignore" ? gt : "", ln(e5), "else", cn(e5)];
460
+ }
461
+ var un = (e5, t) => e5.head.type === "VarHead" && t.head.type === "VarHead" && e5.head.name === t.head.name;
462
+ function vs(e5) {
463
+ var n;
464
+ let { grandparent: t, node: r } = e5;
465
+ return ((n = t == null ? void 0 : t.inverse) == null ? void 0 : n.body.length) === 1 && t.inverse.body[0] === r && un(t.inverse.body[0].path, t.path);
466
+ }
467
+ function Es(e5, t) {
468
+ let { node: r, grandparent: n } = e5;
469
+ return R([ln(n), ["else", " ", n.inverse.body[0].path.head.name], B([L, R(ve(e5, t)), ...$t(r.program.blockParams) ? [L, er(r.program)] : []]), M, cn(n)]);
470
+ }
471
+ function ws(e5, t, r) {
472
+ let { node: n } = e5;
473
+ return r.htmlWhitespaceSensitivity === "ignore" ? [hn(n) ? M : gt, tn(n), t("path"), en(n)] : [tn(n), t("path"), en(n)];
474
+ }
475
+ function hn(e5) {
476
+ return e5.type === "BlockStatement" && e5.program.body.every((t) => ye(t));
477
+ }
478
+ function Ts(e5) {
479
+ return pn(e5) && e5.inverse.body.length === 1 && e5.inverse.body[0].type === "BlockStatement" && un(e5.inverse.body[0].path, e5.path);
480
+ }
481
+ function pn(e5) {
482
+ return e5.type === "BlockStatement" && e5.inverse;
483
+ }
484
+ function rn(e5, t, r) {
485
+ let { node: n } = e5;
486
+ if (hn(n)) return "";
487
+ let s = t("program");
488
+ return r.htmlWhitespaceSensitivity === "ignore" ? B([gt, s]) : B(s);
489
+ }
490
+ function nn(e5, t, r) {
491
+ let { node: n } = e5, s = t("inverse"), i = r.htmlWhitespaceSensitivity === "ignore" ? [gt, s] : s;
492
+ return Ts(n) ? i : pn(n) ? [Ss(n, r), B(i)] : "";
493
+ }
494
+ function sn(e5) {
495
+ return bt(L, z.split(e5));
496
+ }
497
+ function Cs(e5) {
498
+ for (let t = 0; t < 2; t++) {
499
+ let r = e5.getParentNode(t);
500
+ if ((r == null ? void 0 : r.type) === "AttrNode") return r.name.toLowerCase();
501
+ }
502
+ }
503
+ function Rt(e5) {
504
+ return e5 = typeof e5 == "string" ? e5 : "", e5.split(`
505
+ `).length - 1;
506
+ }
507
+ function Ns(e5) {
508
+ e5 = typeof e5 == "string" ? e5 : "";
509
+ let t = (e5.match(/^([^\S\n\r]*[\n\r])+/gu) || [])[0] || "";
510
+ return Rt(t);
511
+ }
512
+ function xs(e5) {
513
+ e5 = typeof e5 == "string" ? e5 : "";
514
+ let t = (e5.match(/([\n\r][^\S\n\r]*)+$/gu) || [])[0] || "";
515
+ return Rt(t);
516
+ }
517
+ function ee(e5 = 0) {
518
+ return Array.from({ length: Math.min(e5, on) }).fill(gt);
519
+ }
520
+ function As(e5, t) {
521
+ let { node: { value: r } } = e5, n = be(r, Ps(e5) ? !t.singleQuote : t.singleQuote);
522
+ return [n, ze(false, r, n, `\\${n}`), n];
523
+ }
524
+ function Ps(e5) {
525
+ let { ancestors: t } = e5, r = t.findIndex((n) => n.type !== "SubExpression");
526
+ return r !== -1 && t[r + 1].type === "ConcatStatement" && t[r + 2].type === "AttrNode";
527
+ }
528
+ function Ls(e5, t) {
529
+ let r = tr(e5, t), n = ve(e5, t);
530
+ return n ? B([r, L, R(n)]) : r;
531
+ }
532
+ function an(e5, t) {
533
+ let r = tr(e5, t), n = ve(e5, t);
534
+ return n ? [B([r, L, n]), M] : r;
535
+ }
536
+ function tr(e5, t) {
537
+ return t("path");
538
+ }
539
+ function ve(e5, t) {
540
+ var s;
541
+ let { node: r } = e5, n = [];
542
+ return r.params.length > 0 && n.push(...e5.map(t, "params")), ((s = r.hash) == null ? void 0 : s.pairs.length) > 0 && n.push(t("hash")), n.length === 0 ? "" : bt(L, n);
543
+ }
544
+ function er(e5) {
545
+ return ["as |", e5.blockParams.join(" "), "|"];
546
+ }
547
+ var Ds = new Set("!\"#%&'()*+,./;<=>@[\\]^`{|}~");
548
+ var _s = /* @__PURE__ */ new Set(["true", "false", "null", "undefined"]);
549
+ var Os = (e5, t) => t === 0 && e5.startsWith("@") ? false : t !== 0 && _s.has(e5) || /\s/u.test(e5) || /^\d/u.test(e5) || Array.prototype.some.call(e5, (r) => Ds.has(r));
550
+ function Bs(e5) {
551
+ return e5.tail.length === 0 && e5.original.includes("/") ? e5.original : [e5.head.original, ...e5.tail].map((r, n) => Os(r, n) ? `[${r}]` : r).join(".");
552
+ }
553
+ var Is = { print: fs, massageAstNode: Gr, hasPrettierIgnore: Xr, getVisitorKeys: jr };
554
+ var fn = Is;
555
+ var mn = [{ linguistLanguageId: 155, name: "Handlebars", type: "markup", color: "#f7931e", aliases: ["hbs", "htmlbars"], extensions: [".handlebars", ".hbs"], tmScope: "text.html.handlebars", aceMode: "handlebars", parsers: ["glimmer"], vscodeLanguageIds: ["handlebars"] }];
556
+ var Ar = {};
557
+ Ue(Ar, { glimmer: () => Si });
558
+ var Rs = Object.freeze([]);
559
+ function gn() {
560
+ return Rs;
561
+ }
562
+ var Oa = gn();
563
+ var Ba = gn();
564
+ var rr = Object.assign;
565
+ var dn = console;
566
+ function bn(e5, t = "unexpected unreachable branch") {
567
+ throw dn.log("unreachable", e5), dn.log(`${t} :: ${JSON.stringify(e5)} (${e5})`), new Error("code reached unreachable");
568
+ }
569
+ var qs = function() {
570
+ var e5 = function(nt, d, k, b) {
571
+ for (k = k || {}, b = nt.length; b--; k[nt[b]] = d) ;
572
+ return k;
573
+ }, t = [2, 44], r = [1, 20], n = [5, 14, 15, 19, 29, 34, 39, 44, 47, 48, 52, 56, 60], s = [1, 35], i = [1, 38], a = [1, 30], o = [1, 31], c = [1, 32], h = [1, 33], p = [1, 34], m = [1, 37], v = [14, 15, 19, 29, 34, 39, 44, 47, 48, 52, 56, 60], g = [14, 15, 19, 29, 34, 44, 47, 48, 52, 56, 60], E = [15, 18], N = [14, 15, 19, 29, 34, 47, 48, 52, 56, 60], x = [33, 64, 71, 79, 80, 81, 82, 83, 84], w = [23, 33, 55, 64, 67, 71, 74, 79, 80, 81, 82, 83, 84], Z = [1, 51], q = [23, 33, 55, 64, 67, 71, 74, 79, 80, 81, 82, 83, 84, 86], W = [2, 43], Tt = [55, 64, 71, 79, 80, 81, 82, 83, 84], Ct = [1, 58], j = [1, 59], tt = [1, 66], V = [33, 64, 71, 74, 79, 80, 81, 82, 83, 84], Nt = [23, 64, 71, 79, 80, 81, 82, 83, 84], H = [1, 76], et = [64, 67, 71, 79, 80, 81, 82, 83, 84], P = [33, 74], rt = [23, 33, 55, 67, 71, 74], he = [1, 106], Oe = [1, 118], Lr = [71, 76], Be = { trace: function() {
574
+ }, yy: {}, symbols_: { error: 2, root: 3, program: 4, EOF: 5, program_repetition0: 6, statement: 7, mustache: 8, block: 9, rawBlock: 10, partial: 11, partialBlock: 12, content: 13, COMMENT: 14, CONTENT: 15, openRawBlock: 16, rawBlock_repetition0: 17, END_RAW_BLOCK: 18, OPEN_RAW_BLOCK: 19, helperName: 20, openRawBlock_repetition0: 21, openRawBlock_option0: 22, CLOSE_RAW_BLOCK: 23, openBlock: 24, block_option0: 25, closeBlock: 26, openInverse: 27, block_option1: 28, OPEN_BLOCK: 29, openBlock_repetition0: 30, openBlock_option0: 31, openBlock_option1: 32, CLOSE: 33, OPEN_INVERSE: 34, openInverse_repetition0: 35, openInverse_option0: 36, openInverse_option1: 37, openInverseChain: 38, OPEN_INVERSE_CHAIN: 39, openInverseChain_repetition0: 40, openInverseChain_option0: 41, openInverseChain_option1: 42, inverseAndProgram: 43, INVERSE: 44, inverseChain: 45, inverseChain_option0: 46, OPEN_ENDBLOCK: 47, OPEN: 48, expr: 49, mustache_repetition0: 50, mustache_option0: 51, OPEN_UNESCAPED: 52, mustache_repetition1: 53, mustache_option1: 54, CLOSE_UNESCAPED: 55, OPEN_PARTIAL: 56, partial_repetition0: 57, partial_option0: 58, openPartialBlock: 59, OPEN_PARTIAL_BLOCK: 60, openPartialBlock_repetition0: 61, openPartialBlock_option0: 62, sexpr: 63, OPEN_SEXPR: 64, sexpr_repetition0: 65, sexpr_option0: 66, CLOSE_SEXPR: 67, hash: 68, hash_repetition_plus0: 69, hashSegment: 70, ID: 71, EQUALS: 72, blockParams: 73, OPEN_BLOCK_PARAMS: 74, blockParams_repetition_plus0: 75, CLOSE_BLOCK_PARAMS: 76, path: 77, dataName: 78, STRING: 79, NUMBER: 80, BOOLEAN: 81, UNDEFINED: 82, NULL: 83, DATA: 84, pathSegments: 85, SEP: 86, $accept: 0, $end: 1 }, terminals_: { 2: "error", 5: "EOF", 14: "COMMENT", 15: "CONTENT", 18: "END_RAW_BLOCK", 19: "OPEN_RAW_BLOCK", 23: "CLOSE_RAW_BLOCK", 29: "OPEN_BLOCK", 33: "CLOSE", 34: "OPEN_INVERSE", 39: "OPEN_INVERSE_CHAIN", 44: "INVERSE", 47: "OPEN_ENDBLOCK", 48: "OPEN", 52: "OPEN_UNESCAPED", 55: "CLOSE_UNESCAPED", 56: "OPEN_PARTIAL", 60: "OPEN_PARTIAL_BLOCK", 64: "OPEN_SEXPR", 67: "CLOSE_SEXPR", 71: "ID", 72: "EQUALS", 74: "OPEN_BLOCK_PARAMS", 76: "CLOSE_BLOCK_PARAMS", 79: "STRING", 80: "NUMBER", 81: "BOOLEAN", 82: "UNDEFINED", 83: "NULL", 84: "DATA", 86: "SEP" }, productions_: [0, [3, 2], [4, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [13, 1], [10, 3], [16, 5], [9, 4], [9, 4], [24, 6], [27, 6], [38, 6], [43, 2], [45, 3], [45, 1], [26, 3], [8, 5], [8, 5], [11, 5], [12, 3], [59, 5], [49, 1], [49, 1], [63, 5], [68, 1], [70, 3], [73, 3], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [78, 2], [77, 1], [85, 3], [85, 1], [6, 0], [6, 2], [17, 0], [17, 2], [21, 0], [21, 2], [22, 0], [22, 1], [25, 0], [25, 1], [28, 0], [28, 1], [30, 0], [30, 2], [31, 0], [31, 1], [32, 0], [32, 1], [35, 0], [35, 2], [36, 0], [36, 1], [37, 0], [37, 1], [40, 0], [40, 2], [41, 0], [41, 1], [42, 0], [42, 1], [46, 0], [46, 1], [50, 0], [50, 2], [51, 0], [51, 1], [53, 0], [53, 2], [54, 0], [54, 1], [57, 0], [57, 2], [58, 0], [58, 1], [61, 0], [61, 2], [62, 0], [62, 1], [65, 0], [65, 2], [66, 0], [66, 1], [69, 1], [69, 2], [75, 1], [75, 2]], performAction: function(d, k, b, y, C, l, xt) {
575
+ var u = l.length - 1;
576
+ switch (C) {
577
+ case 1:
578
+ return l[u - 1];
579
+ case 2:
580
+ this.$ = y.prepareProgram(l[u]);
581
+ break;
582
+ case 3:
583
+ case 4:
584
+ case 5:
585
+ case 6:
586
+ case 7:
587
+ case 8:
588
+ case 20:
589
+ case 27:
590
+ case 28:
591
+ case 33:
592
+ case 34:
593
+ this.$ = l[u];
594
+ break;
595
+ case 9:
596
+ this.$ = { type: "CommentStatement", value: y.stripComment(l[u]), strip: y.stripFlags(l[u], l[u]), loc: y.locInfo(this._$) };
597
+ break;
598
+ case 10:
599
+ this.$ = { type: "ContentStatement", original: l[u], value: l[u], loc: y.locInfo(this._$) };
600
+ break;
601
+ case 11:
602
+ this.$ = y.prepareRawBlock(l[u - 2], l[u - 1], l[u], this._$);
603
+ break;
604
+ case 12:
605
+ this.$ = { path: l[u - 3], params: l[u - 2], hash: l[u - 1] };
606
+ break;
607
+ case 13:
608
+ this.$ = y.prepareBlock(l[u - 3], l[u - 2], l[u - 1], l[u], false, this._$);
609
+ break;
610
+ case 14:
611
+ this.$ = y.prepareBlock(l[u - 3], l[u - 2], l[u - 1], l[u], true, this._$);
612
+ break;
613
+ case 15:
614
+ this.$ = { open: l[u - 5], path: l[u - 4], params: l[u - 3], hash: l[u - 2], blockParams: l[u - 1], strip: y.stripFlags(l[u - 5], l[u]) };
615
+ break;
616
+ case 16:
617
+ case 17:
618
+ this.$ = { path: l[u - 4], params: l[u - 3], hash: l[u - 2], blockParams: l[u - 1], strip: y.stripFlags(l[u - 5], l[u]) };
619
+ break;
620
+ case 18:
621
+ this.$ = { strip: y.stripFlags(l[u - 1], l[u - 1]), program: l[u] };
622
+ break;
623
+ case 19:
624
+ var st = y.prepareBlock(l[u - 2], l[u - 1], l[u], l[u], false, this._$), Ut = y.prepareProgram([st], l[u - 1].loc);
625
+ Ut.chained = true, this.$ = { strip: l[u - 2].strip, program: Ut, chain: true };
626
+ break;
627
+ case 21:
628
+ this.$ = { path: l[u - 1], strip: y.stripFlags(l[u - 2], l[u]) };
629
+ break;
630
+ case 22:
631
+ case 23:
632
+ this.$ = y.prepareMustache(l[u - 3], l[u - 2], l[u - 1], l[u - 4], y.stripFlags(l[u - 4], l[u]), this._$);
633
+ break;
634
+ case 24:
635
+ this.$ = { type: "PartialStatement", name: l[u - 3], params: l[u - 2], hash: l[u - 1], indent: "", strip: y.stripFlags(l[u - 4], l[u]), loc: y.locInfo(this._$) };
636
+ break;
637
+ case 25:
638
+ this.$ = y.preparePartialBlock(l[u - 2], l[u - 1], l[u], this._$);
639
+ break;
640
+ case 26:
641
+ this.$ = { path: l[u - 3], params: l[u - 2], hash: l[u - 1], strip: y.stripFlags(l[u - 4], l[u]) };
642
+ break;
643
+ case 29:
644
+ this.$ = { type: "SubExpression", path: l[u - 3], params: l[u - 2], hash: l[u - 1], loc: y.locInfo(this._$) };
645
+ break;
646
+ case 30:
647
+ this.$ = { type: "Hash", pairs: l[u], loc: y.locInfo(this._$) };
648
+ break;
649
+ case 31:
650
+ this.$ = { type: "HashPair", key: y.id(l[u - 2]), value: l[u], loc: y.locInfo(this._$) };
651
+ break;
652
+ case 32:
653
+ this.$ = y.id(l[u - 1]);
654
+ break;
655
+ case 35:
656
+ this.$ = { type: "StringLiteral", value: l[u], original: l[u], loc: y.locInfo(this._$) };
657
+ break;
658
+ case 36:
659
+ this.$ = { type: "NumberLiteral", value: Number(l[u]), original: Number(l[u]), loc: y.locInfo(this._$) };
660
+ break;
661
+ case 37:
662
+ this.$ = { type: "BooleanLiteral", value: l[u] === "true", original: l[u] === "true", loc: y.locInfo(this._$) };
663
+ break;
664
+ case 38:
665
+ this.$ = { type: "UndefinedLiteral", original: void 0, value: void 0, loc: y.locInfo(this._$) };
666
+ break;
667
+ case 39:
668
+ this.$ = { type: "NullLiteral", original: null, value: null, loc: y.locInfo(this._$) };
669
+ break;
670
+ case 40:
671
+ this.$ = y.preparePath(true, l[u], this._$);
672
+ break;
673
+ case 41:
674
+ this.$ = y.preparePath(false, l[u], this._$);
675
+ break;
676
+ case 42:
677
+ l[u - 2].push({ part: y.id(l[u]), original: l[u], separator: l[u - 1] }), this.$ = l[u - 2];
678
+ break;
679
+ case 43:
680
+ this.$ = [{ part: y.id(l[u]), original: l[u] }];
681
+ break;
682
+ case 44:
683
+ case 46:
684
+ case 48:
685
+ case 56:
686
+ case 62:
687
+ case 68:
688
+ case 76:
689
+ case 80:
690
+ case 84:
691
+ case 88:
692
+ case 92:
693
+ this.$ = [];
694
+ break;
695
+ case 45:
696
+ case 47:
697
+ case 49:
698
+ case 57:
699
+ case 63:
700
+ case 69:
701
+ case 77:
702
+ case 81:
703
+ case 85:
704
+ case 89:
705
+ case 93:
706
+ case 97:
707
+ case 99:
708
+ l[u - 1].push(l[u]);
709
+ break;
710
+ case 96:
711
+ case 98:
712
+ this.$ = [l[u]];
713
+ break;
714
+ }
715
+ }, table: [e5([5, 14, 15, 19, 29, 34, 48, 52, 56, 60], t, { 3: 1, 4: 2, 6: 3 }), { 1: [3] }, { 5: [1, 4] }, e5([5, 39, 44, 47], [2, 2], { 7: 5, 8: 6, 9: 7, 10: 8, 11: 9, 12: 10, 13: 11, 24: 15, 27: 16, 16: 17, 59: 19, 14: [1, 12], 15: r, 19: [1, 23], 29: [1, 21], 34: [1, 22], 48: [1, 13], 52: [1, 14], 56: [1, 18], 60: [1, 24] }), { 1: [2, 1] }, e5(n, [2, 45]), e5(n, [2, 3]), e5(n, [2, 4]), e5(n, [2, 5]), e5(n, [2, 6]), e5(n, [2, 7]), e5(n, [2, 8]), e5(n, [2, 9]), { 20: 26, 49: 25, 63: 27, 64: s, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: h, 83: p, 84: m, 85: 36 }, { 20: 26, 49: 39, 63: 27, 64: s, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: h, 83: p, 84: m, 85: 36 }, e5(v, t, { 6: 3, 4: 40 }), e5(g, t, { 6: 3, 4: 41 }), e5(E, [2, 46], { 17: 42 }), { 20: 26, 49: 43, 63: 27, 64: s, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: h, 83: p, 84: m, 85: 36 }, e5(N, t, { 6: 3, 4: 44 }), e5([5, 14, 15, 18, 19, 29, 34, 39, 44, 47, 48, 52, 56, 60], [2, 10]), { 20: 45, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: h, 83: p, 84: m, 85: 36 }, { 20: 46, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: h, 83: p, 84: m, 85: 36 }, { 20: 47, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: h, 83: p, 84: m, 85: 36 }, { 20: 26, 49: 48, 63: 27, 64: s, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: h, 83: p, 84: m, 85: 36 }, e5(x, [2, 76], { 50: 49 }), e5(w, [2, 27]), e5(w, [2, 28]), e5(w, [2, 33]), e5(w, [2, 34]), e5(w, [2, 35]), e5(w, [2, 36]), e5(w, [2, 37]), e5(w, [2, 38]), e5(w, [2, 39]), { 20: 26, 49: 50, 63: 27, 64: s, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: h, 83: p, 84: m, 85: 36 }, e5(w, [2, 41], { 86: Z }), { 71: i, 85: 52 }, e5(q, W), e5(Tt, [2, 80], { 53: 53 }), { 25: 54, 38: 56, 39: Ct, 43: 57, 44: j, 45: 55, 47: [2, 52] }, { 28: 60, 43: 61, 44: j, 47: [2, 54] }, { 13: 63, 15: r, 18: [1, 62] }, e5(x, [2, 84], { 57: 64 }), { 26: 65, 47: tt }, e5(V, [2, 56], { 30: 67 }), e5(V, [2, 62], { 35: 68 }), e5(Nt, [2, 48], { 21: 69 }), e5(x, [2, 88], { 61: 70 }), { 20: 26, 33: [2, 78], 49: 72, 51: 71, 63: 27, 64: s, 68: 73, 69: 74, 70: 75, 71: H, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: h, 83: p, 84: m, 85: 36 }, e5(et, [2, 92], { 65: 77 }), { 71: [1, 78] }, e5(w, [2, 40], { 86: Z }), { 20: 26, 49: 80, 54: 79, 55: [2, 82], 63: 27, 64: s, 68: 81, 69: 74, 70: 75, 71: H, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: h, 83: p, 84: m, 85: 36 }, { 26: 82, 47: tt }, { 47: [2, 53] }, e5(v, t, { 6: 3, 4: 83 }), { 47: [2, 20] }, { 20: 84, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: h, 83: p, 84: m, 85: 36 }, e5(N, t, { 6: 3, 4: 85 }), { 26: 86, 47: tt }, { 47: [2, 55] }, e5(n, [2, 11]), e5(E, [2, 47]), { 20: 26, 33: [2, 86], 49: 88, 58: 87, 63: 27, 64: s, 68: 89, 69: 74, 70: 75, 71: H, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: h, 83: p, 84: m, 85: 36 }, e5(n, [2, 25]), { 20: 90, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: h, 83: p, 84: m, 85: 36 }, e5(P, [2, 58], { 20: 26, 63: 27, 77: 28, 78: 29, 85: 36, 69: 74, 70: 75, 31: 91, 49: 92, 68: 93, 64: s, 71: H, 79: a, 80: o, 81: c, 82: h, 83: p, 84: m }), e5(P, [2, 64], { 20: 26, 63: 27, 77: 28, 78: 29, 85: 36, 69: 74, 70: 75, 36: 94, 49: 95, 68: 96, 64: s, 71: H, 79: a, 80: o, 81: c, 82: h, 83: p, 84: m }), { 20: 26, 22: 97, 23: [2, 50], 49: 98, 63: 27, 64: s, 68: 99, 69: 74, 70: 75, 71: H, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: h, 83: p, 84: m, 85: 36 }, { 20: 26, 33: [2, 90], 49: 101, 62: 100, 63: 27, 64: s, 68: 102, 69: 74, 70: 75, 71: H, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: h, 83: p, 84: m, 85: 36 }, { 33: [1, 103] }, e5(x, [2, 77]), { 33: [2, 79] }, e5([23, 33, 55, 67, 74], [2, 30], { 70: 104, 71: [1, 105] }), e5(rt, [2, 96]), e5(q, W, { 72: he }), { 20: 26, 49: 108, 63: 27, 64: s, 66: 107, 67: [2, 94], 68: 109, 69: 74, 70: 75, 71: H, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: h, 83: p, 84: m, 85: 36 }, e5(q, [2, 42]), { 55: [1, 110] }, e5(Tt, [2, 81]), { 55: [2, 83] }, e5(n, [2, 13]), { 38: 56, 39: Ct, 43: 57, 44: j, 45: 112, 46: 111, 47: [2, 74] }, e5(V, [2, 68], { 40: 113 }), { 47: [2, 18] }, e5(n, [2, 14]), { 33: [1, 114] }, e5(x, [2, 85]), { 33: [2, 87] }, { 33: [1, 115] }, { 32: 116, 33: [2, 60], 73: 117, 74: Oe }, e5(V, [2, 57]), e5(P, [2, 59]), { 33: [2, 66], 37: 119, 73: 120, 74: Oe }, e5(V, [2, 63]), e5(P, [2, 65]), { 23: [1, 121] }, e5(Nt, [2, 49]), { 23: [2, 51] }, { 33: [1, 122] }, e5(x, [2, 89]), { 33: [2, 91] }, e5(n, [2, 22]), e5(rt, [2, 97]), { 72: he }, { 20: 26, 49: 123, 63: 27, 64: s, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: h, 83: p, 84: m, 85: 36 }, { 67: [1, 124] }, e5(et, [2, 93]), { 67: [2, 95] }, e5(n, [2, 23]), { 47: [2, 19] }, { 47: [2, 75] }, e5(P, [2, 70], { 20: 26, 63: 27, 77: 28, 78: 29, 85: 36, 69: 74, 70: 75, 41: 125, 49: 126, 68: 127, 64: s, 71: H, 79: a, 80: o, 81: c, 82: h, 83: p, 84: m }), e5(n, [2, 24]), e5(n, [2, 21]), { 33: [1, 128] }, { 33: [2, 61] }, { 71: [1, 130], 75: 129 }, { 33: [1, 131] }, { 33: [2, 67] }, e5(E, [2, 12]), e5(N, [2, 26]), e5(rt, [2, 31]), e5(w, [2, 29]), { 33: [2, 72], 42: 132, 73: 133, 74: Oe }, e5(V, [2, 69]), e5(P, [2, 71]), e5(v, [2, 15]), { 71: [1, 135], 76: [1, 134] }, e5(Lr, [2, 98]), e5(g, [2, 16]), { 33: [1, 136] }, { 33: [2, 73] }, { 33: [2, 32] }, e5(Lr, [2, 99]), e5(v, [2, 17])], defaultActions: { 4: [2, 1], 55: [2, 53], 57: [2, 20], 61: [2, 55], 73: [2, 79], 81: [2, 83], 85: [2, 18], 89: [2, 87], 99: [2, 51], 102: [2, 91], 109: [2, 95], 111: [2, 19], 112: [2, 75], 117: [2, 61], 120: [2, 67], 133: [2, 73], 134: [2, 32] }, parseError: function(d, k) {
716
+ if (k.recoverable) this.trace(d);
717
+ else {
718
+ var b = new Error(d);
719
+ throw b.hash = k, b;
720
+ }
721
+ }, parse: function(d) {
722
+ var k = this, b = [0], y = [], C = [null], l = [], xt = this.table, u = "", st = 0, Ut = 0, Dr = 0, Yn = 2, _r = 1, Gn = l.slice.call(arguments, 1), A = Object.create(this.lexer), ft = { yy: {} };
723
+ for (var Re in this.yy) Object.prototype.hasOwnProperty.call(this.yy, Re) && (ft.yy[Re] = this.yy[Re]);
724
+ A.setInput(d, ft.yy), ft.yy.lexer = A, ft.yy.parser = this, typeof A.yylloc > "u" && (A.yylloc = {});
725
+ var qe = A.yylloc;
726
+ l.push(qe);
727
+ var Kn = A.options && A.options.ranges;
728
+ typeof ft.yy.parseError == "function" ? this.parseError = ft.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
729
+ function Ei(Y) {
730
+ b.length = b.length - 2 * Y, C.length = C.length - Y, l.length = l.length - Y;
731
+ }
732
+ for (var Wn = function() {
733
+ var Y;
734
+ return Y = A.lex() || _r, typeof Y != "number" && (Y = k.symbols_[Y] || Y), Y;
735
+ }, O, Ve, mt, F, wi, He, At = {}, pe, Q, Or, fe; ; ) {
736
+ if (mt = b[b.length - 1], this.defaultActions[mt] ? F = this.defaultActions[mt] : ((O === null || typeof O > "u") && (O = Wn()), F = xt[mt] && xt[mt][O]), typeof F > "u" || !F.length || !F[0]) {
737
+ var Fe = "";
738
+ fe = [];
739
+ for (pe in xt[mt]) this.terminals_[pe] && pe > Yn && fe.push("'" + this.terminals_[pe] + "'");
740
+ A.showPosition ? Fe = "Parse error on line " + (st + 1) + `:
741
+ ` + A.showPosition() + `
742
+ Expecting ` + fe.join(", ") + ", got '" + (this.terminals_[O] || O) + "'" : Fe = "Parse error on line " + (st + 1) + ": Unexpected " + (O == _r ? "end of input" : "'" + (this.terminals_[O] || O) + "'"), this.parseError(Fe, { text: A.match, token: this.terminals_[O] || O, line: A.yylineno, loc: qe, expected: fe });
743
+ }
744
+ if (F[0] instanceof Array && F.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + mt + ", token: " + O);
745
+ switch (F[0]) {
746
+ case 1:
747
+ b.push(O), C.push(A.yytext), l.push(A.yylloc), b.push(F[1]), O = null, Ve ? (O = Ve, Ve = null) : (Ut = A.yyleng, u = A.yytext, st = A.yylineno, qe = A.yylloc, Dr > 0 && Dr--);
748
+ break;
749
+ case 2:
750
+ if (Q = this.productions_[F[1]][1], At.$ = C[C.length - Q], At._$ = { first_line: l[l.length - (Q || 1)].first_line, last_line: l[l.length - 1].last_line, first_column: l[l.length - (Q || 1)].first_column, last_column: l[l.length - 1].last_column }, Kn && (At._$.range = [l[l.length - (Q || 1)].range[0], l[l.length - 1].range[1]]), He = this.performAction.apply(At, [u, Ut, st, ft.yy, F[1], C, l].concat(Gn)), typeof He < "u") return He;
751
+ Q && (b = b.slice(0, -1 * Q * 2), C = C.slice(0, -1 * Q), l = l.slice(0, -1 * Q)), b.push(this.productions_[F[1]][0]), C.push(At.$), l.push(At._$), Or = xt[b[b.length - 2]][b[b.length - 1]], b.push(Or);
752
+ break;
753
+ case 3:
754
+ return true;
755
+ }
756
+ }
757
+ return true;
758
+ } }, zn = /* @__PURE__ */ function() {
759
+ var nt = { EOF: 1, parseError: function(k, b) {
760
+ if (this.yy.parser) this.yy.parser.parseError(k, b);
761
+ else throw new Error(k);
762
+ }, setInput: function(d, k) {
763
+ return this.yy = k || this.yy || {}, this._input = d, this._more = this._backtrack = this.done = false, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = { first_line: 1, first_column: 0, last_line: 1, last_column: 0 }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
764
+ }, input: function() {
765
+ var d = this._input[0];
766
+ this.yytext += d, this.yyleng++, this.offset++, this.match += d, this.matched += d;
767
+ var k = d.match(/(?:\r\n?|\n).*/g);
768
+ return k ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), d;
769
+ }, unput: function(d) {
770
+ var k = d.length, b = d.split(/(?:\r\n?|\n)/g);
771
+ this._input = d + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - k), this.offset -= k;
772
+ var y = this.match.split(/(?:\r\n?|\n)/g);
773
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), b.length - 1 && (this.yylineno -= b.length - 1);
774
+ var C = this.yylloc.range;
775
+ return this.yylloc = { first_line: this.yylloc.first_line, last_line: this.yylineno + 1, first_column: this.yylloc.first_column, last_column: b ? (b.length === y.length ? this.yylloc.first_column : 0) + y[y.length - b.length].length - b[0].length : this.yylloc.first_column - k }, this.options.ranges && (this.yylloc.range = [C[0], C[0] + this.yyleng - k]), this.yyleng = this.yytext.length, this;
776
+ }, more: function() {
777
+ return this._more = true, this;
778
+ }, reject: function() {
779
+ if (this.options.backtrack_lexer) this._backtrack = true;
780
+ else return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
781
+ ` + this.showPosition(), { text: "", token: null, line: this.yylineno });
782
+ return this;
783
+ }, less: function(d) {
784
+ this.unput(this.match.slice(d));
785
+ }, pastInput: function() {
786
+ var d = this.matched.substr(0, this.matched.length - this.match.length);
787
+ return (d.length > 20 ? "..." : "") + d.substr(-20).replace(/\n/g, "");
788
+ }, upcomingInput: function() {
789
+ var d = this.match;
790
+ return d.length < 20 && (d += this._input.substr(0, 20 - d.length)), (d.substr(0, 20) + (d.length > 20 ? "..." : "")).replace(/\n/g, "");
791
+ }, showPosition: function() {
792
+ var d = this.pastInput(), k = new Array(d.length + 1).join("-");
793
+ return d + this.upcomingInput() + `
794
+ ` + k + "^";
795
+ }, test_match: function(d, k) {
796
+ var b, y, C;
797
+ if (this.options.backtrack_lexer && (C = { yylineno: this.yylineno, yylloc: { first_line: this.yylloc.first_line, last_line: this.last_line, first_column: this.yylloc.first_column, last_column: this.yylloc.last_column }, yytext: this.yytext, match: this.match, matches: this.matches, matched: this.matched, yyleng: this.yyleng, offset: this.offset, _more: this._more, _input: this._input, yy: this.yy, conditionStack: this.conditionStack.slice(0), done: this.done }, this.options.ranges && (C.yylloc.range = this.yylloc.range.slice(0))), y = d[0].match(/(?:\r\n?|\n).*/g), y && (this.yylineno += y.length), this.yylloc = { first_line: this.yylloc.last_line, last_line: this.yylineno + 1, first_column: this.yylloc.last_column, last_column: y ? y[y.length - 1].length - y[y.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + d[0].length }, this.yytext += d[0], this.match += d[0], this.matches = d, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = false, this._backtrack = false, this._input = this._input.slice(d[0].length), this.matched += d[0], b = this.performAction.call(this, this.yy, this, k, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), b) return b;
798
+ if (this._backtrack) {
799
+ for (var l in C) this[l] = C[l];
800
+ return false;
801
+ }
802
+ return false;
803
+ }, next: function() {
804
+ if (this.done) return this.EOF;
805
+ this._input || (this.done = true);
806
+ var d, k, b, y;
807
+ this._more || (this.yytext = "", this.match = "");
808
+ for (var C = this._currentRules(), l = 0; l < C.length; l++) if (b = this._input.match(this.rules[C[l]]), b && (!k || b[0].length > k[0].length)) {
809
+ if (k = b, y = l, this.options.backtrack_lexer) {
810
+ if (d = this.test_match(b, C[l]), d !== false) return d;
811
+ if (this._backtrack) {
812
+ k = false;
813
+ continue;
814
+ } else return false;
815
+ } else if (!this.options.flex) break;
816
+ }
817
+ return k ? (d = this.test_match(k, C[y]), d !== false ? d : false) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
818
+ ` + this.showPosition(), { text: "", token: null, line: this.yylineno });
819
+ }, lex: function() {
820
+ var k = this.next();
821
+ return k || this.lex();
822
+ }, begin: function(k) {
823
+ this.conditionStack.push(k);
824
+ }, popState: function() {
825
+ var k = this.conditionStack.length - 1;
826
+ return k > 0 ? this.conditionStack.pop() : this.conditionStack[0];
827
+ }, _currentRules: function() {
828
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
829
+ }, topState: function(k) {
830
+ return k = this.conditionStack.length - 1 - Math.abs(k || 0), k >= 0 ? this.conditionStack[k] : "INITIAL";
831
+ }, pushState: function(k) {
832
+ this.begin(k);
833
+ }, stateStackSize: function() {
834
+ return this.conditionStack.length;
835
+ }, options: {}, performAction: function(k, b, y, C) {
836
+ function l(u, st) {
837
+ return b.yytext = b.yytext.substring(u, b.yyleng - st + u);
838
+ }
839
+ var xt = C;
840
+ switch (y) {
841
+ case 0:
842
+ if (b.yytext.slice(-2) === "\\\\" ? (l(0, 1), this.begin("mu")) : b.yytext.slice(-1) === "\\" ? (l(0, 1), this.begin("emu")) : this.begin("mu"), b.yytext) return 15;
843
+ break;
844
+ case 1:
845
+ return 15;
846
+ case 2:
847
+ return this.popState(), 15;
848
+ break;
849
+ case 3:
850
+ return this.begin("raw"), 15;
851
+ break;
852
+ case 4:
853
+ return this.popState(), this.conditionStack[this.conditionStack.length - 1] === "raw" ? 15 : (l(5, 9), 18);
854
+ case 5:
855
+ return 15;
856
+ case 6:
857
+ return this.popState(), 14;
858
+ break;
859
+ case 7:
860
+ return 64;
861
+ case 8:
862
+ return 67;
863
+ case 9:
864
+ return 19;
865
+ case 10:
866
+ return this.popState(), this.begin("raw"), 23;
867
+ break;
868
+ case 11:
869
+ return 56;
870
+ case 12:
871
+ return 60;
872
+ case 13:
873
+ return 29;
874
+ case 14:
875
+ return 47;
876
+ case 15:
877
+ return this.popState(), 44;
878
+ break;
879
+ case 16:
880
+ return this.popState(), 44;
881
+ break;
882
+ case 17:
883
+ return 34;
884
+ case 18:
885
+ return 39;
886
+ case 19:
887
+ return 52;
888
+ case 20:
889
+ return 48;
890
+ case 21:
891
+ this.unput(b.yytext), this.popState(), this.begin("com");
892
+ break;
893
+ case 22:
894
+ return this.popState(), 14;
895
+ break;
896
+ case 23:
897
+ return 48;
898
+ case 24:
899
+ return 72;
900
+ case 25:
901
+ return 71;
902
+ case 26:
903
+ return 71;
904
+ case 27:
905
+ return 86;
906
+ case 28:
907
+ break;
908
+ case 29:
909
+ return this.popState(), 55;
910
+ break;
911
+ case 30:
912
+ return this.popState(), 33;
913
+ break;
914
+ case 31:
915
+ return b.yytext = l(1, 2).replace(/\\"/g, '"'), 79;
916
+ break;
917
+ case 32:
918
+ return b.yytext = l(1, 2).replace(/\\'/g, "'"), 79;
919
+ break;
920
+ case 33:
921
+ return 84;
922
+ case 34:
923
+ return 81;
924
+ case 35:
925
+ return 81;
926
+ case 36:
927
+ return 82;
928
+ case 37:
929
+ return 83;
930
+ case 38:
931
+ return 80;
932
+ case 39:
933
+ return 74;
934
+ case 40:
935
+ return 76;
936
+ case 41:
937
+ return 71;
938
+ case 42:
939
+ return b.yytext = b.yytext.replace(/\\([\\\]])/g, "$1"), 71;
940
+ break;
941
+ case 43:
942
+ return "INVALID";
943
+ case 44:
944
+ return 5;
945
+ }
946
+ }, rules: [/^(?:[^\x00]*?(?=(\{\{)))/, /^(?:[^\x00]+)/, /^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/, /^(?:\{\{\{\{(?=[^/]))/, /^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/, /^(?:[^\x00]+?(?=(\{\{\{\{)))/, /^(?:[\s\S]*?--(~)?\}\})/, /^(?:\()/, /^(?:\))/, /^(?:\{\{\{\{)/, /^(?:\}\}\}\})/, /^(?:\{\{(~)?>)/, /^(?:\{\{(~)?#>)/, /^(?:\{\{(~)?#\*?)/, /^(?:\{\{(~)?\/)/, /^(?:\{\{(~)?\^\s*(~)?\}\})/, /^(?:\{\{(~)?\s*else\s*(~)?\}\})/, /^(?:\{\{(~)?\^)/, /^(?:\{\{(~)?\s*else\b)/, /^(?:\{\{(~)?\{)/, /^(?:\{\{(~)?&)/, /^(?:\{\{(~)?!--)/, /^(?:\{\{(~)?![\s\S]*?\}\})/, /^(?:\{\{(~)?\*?)/, /^(?:=)/, /^(?:\.\.)/, /^(?:\.(?=([=~}\s\/.)|])))/, /^(?:[\/.])/, /^(?:\s+)/, /^(?:\}(~)?\}\})/, /^(?:(~)?\}\})/, /^(?:"(\\["]|[^"])*")/, /^(?:'(\\[']|[^'])*')/, /^(?:@)/, /^(?:true(?=([~}\s)])))/, /^(?:false(?=([~}\s)])))/, /^(?:undefined(?=([~}\s)])))/, /^(?:null(?=([~}\s)])))/, /^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/, /^(?:as\s+\|)/, /^(?:\|)/, /^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/, /^(?:\[(\\\]|[^\]])*\])/, /^(?:.)/, /^(?:$)/], conditions: { mu: { rules: [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], inclusive: false }, emu: { rules: [2], inclusive: false }, com: { rules: [6], inclusive: false }, raw: { rules: [3, 4, 5], inclusive: false }, INITIAL: { rules: [0, 1, 44], inclusive: true } } };
947
+ return nt;
948
+ }();
949
+ Be.lexer = zn;
950
+ function Ie() {
951
+ this.yy = {};
952
+ }
953
+ return Ie.prototype = Be, Be.Parser = Ie, new Ie();
954
+ }();
955
+ var Ee = qs;
956
+ var nr = ["description", "fileName", "lineNumber", "endLineNumber", "message", "name", "number", "stack"];
957
+ function sr(e5, t) {
958
+ var r = t && t.loc, n, s, i, a;
959
+ r && (n = r.start.line, s = r.end.line, i = r.start.column, a = r.end.column, e5 += " - " + n + ":" + i);
960
+ for (var o = Error.prototype.constructor.call(this, e5), c = 0; c < nr.length; c++) this[nr[c]] = o[nr[c]];
961
+ Error.captureStackTrace && Error.captureStackTrace(this, sr);
962
+ try {
963
+ r && (this.lineNumber = n, this.endLineNumber = s, Object.defineProperty ? (Object.defineProperty(this, "column", { value: i, enumerable: true }), Object.defineProperty(this, "endColumn", { value: a, enumerable: true })) : (this.column = i, this.endColumn = a));
964
+ } catch (e6) {
965
+ }
966
+ }
967
+ sr.prototype = new Error();
968
+ var at = sr;
969
+ function we() {
970
+ this.parents = [];
971
+ }
972
+ we.prototype = { constructor: we, mutating: false, acceptKey: function(e5, t) {
973
+ var r = this.accept(e5[t]);
974
+ if (this.mutating) {
975
+ if (r && !we.prototype[r.type]) throw new at('Unexpected node type "' + r.type + '" found when accepting ' + t + " on " + e5.type);
976
+ e5[t] = r;
977
+ }
978
+ }, acceptRequired: function(e5, t) {
979
+ if (this.acceptKey(e5, t), !e5[t]) throw new at(e5.type + " requires " + t);
980
+ }, acceptArray: function(e5) {
981
+ for (var t = 0, r = e5.length; t < r; t++) this.acceptKey(e5, t), e5[t] || (e5.splice(t, 1), t--, r--);
982
+ }, accept: function(e5) {
983
+ if (e5) {
984
+ if (!this[e5.type]) throw new at("Unknown type: " + e5.type, e5);
985
+ this.current && this.parents.unshift(this.current), this.current = e5;
986
+ var t = this[e5.type](e5);
987
+ if (this.current = this.parents.shift(), !this.mutating || t) return t;
988
+ if (t !== false) return e5;
989
+ }
990
+ }, Program: function(e5) {
991
+ this.acceptArray(e5.body);
992
+ }, MustacheStatement: Te, Decorator: Te, BlockStatement: yn, DecoratorBlock: yn, PartialStatement: kn, PartialBlockStatement: function(e5) {
993
+ kn.call(this, e5), this.acceptKey(e5, "program");
994
+ }, ContentStatement: function() {
995
+ }, CommentStatement: function() {
996
+ }, SubExpression: Te, PathExpression: function() {
997
+ }, StringLiteral: function() {
998
+ }, NumberLiteral: function() {
999
+ }, BooleanLiteral: function() {
1000
+ }, UndefinedLiteral: function() {
1001
+ }, NullLiteral: function() {
1002
+ }, Hash: function(e5) {
1003
+ this.acceptArray(e5.pairs);
1004
+ }, HashPair: function(e5) {
1005
+ this.acceptRequired(e5, "value");
1006
+ } };
1007
+ function Te(e5) {
1008
+ this.acceptRequired(e5, "path"), this.acceptArray(e5.params), this.acceptKey(e5, "hash");
1009
+ }
1010
+ function yn(e5) {
1011
+ Te.call(this, e5), this.acceptKey(e5, "program"), this.acceptKey(e5, "inverse");
1012
+ }
1013
+ function kn(e5) {
1014
+ this.acceptRequired(e5, "name"), this.acceptArray(e5.params), this.acceptKey(e5, "hash");
1015
+ }
1016
+ var Sn = we;
1017
+ function G(e5) {
1018
+ e5 === void 0 && (e5 = {}), this.options = e5;
1019
+ }
1020
+ G.prototype = new Sn();
1021
+ G.prototype.Program = function(e5) {
1022
+ var t = !this.options.ignoreStandalone, r = !this.isRootSeen;
1023
+ this.isRootSeen = true;
1024
+ for (var n = e5.body, s = 0, i = n.length; s < i; s++) {
1025
+ var a = n[s], o = this.accept(a);
1026
+ if (o) {
1027
+ var c = ir(n, s, r), h = ar(n, s, r), p = o.openStandalone && c, m = o.closeStandalone && h, v = o.inlineStandalone && c && h;
1028
+ o.close && kt(n, s, true), o.open && ot(n, s, true), t && v && (kt(n, s), ot(n, s) && a.type === "PartialStatement" && (a.indent = /([ \t]+$)/.exec(n[s - 1].original)[1])), t && p && (kt((a.program || a.inverse).body), ot(n, s)), t && m && (kt(n, s), ot((a.inverse || a.program).body));
1029
+ }
1030
+ }
1031
+ return e5;
1032
+ };
1033
+ G.prototype.BlockStatement = G.prototype.DecoratorBlock = G.prototype.PartialBlockStatement = function(e5) {
1034
+ this.accept(e5.program), this.accept(e5.inverse);
1035
+ var t = e5.program || e5.inverse, r = e5.program && e5.inverse, n = r, s = r;
1036
+ if (r && r.chained) for (n = r.body[0].program; s.chained; ) s = s.body[s.body.length - 1].program;
1037
+ var i = { open: e5.openStrip.open, close: e5.closeStrip.close, openStandalone: ar(t.body), closeStandalone: ir((n || t).body) };
1038
+ if (e5.openStrip.close && kt(t.body, null, true), r) {
1039
+ var a = e5.inverseStrip;
1040
+ a.open && ot(t.body, null, true), a.close && kt(n.body, null, true), e5.closeStrip.open && ot(s.body, null, true), !this.options.ignoreStandalone && ir(t.body) && ar(n.body) && (ot(t.body), kt(n.body));
1041
+ } else e5.closeStrip.open && ot(t.body, null, true);
1042
+ return i;
1043
+ };
1044
+ G.prototype.Decorator = G.prototype.MustacheStatement = function(e5) {
1045
+ return e5.strip;
1046
+ };
1047
+ G.prototype.PartialStatement = G.prototype.CommentStatement = function(e5) {
1048
+ var t = e5.strip || {};
1049
+ return { inlineStandalone: true, open: t.open, close: t.close };
1050
+ };
1051
+ function ir(e5, t, r) {
1052
+ t === void 0 && (t = e5.length);
1053
+ var n = e5[t - 1], s = e5[t - 2];
1054
+ if (!n) return r;
1055
+ if (n.type === "ContentStatement") return (s || !r ? /\r?\n\s*?$/ : /(^|\r?\n)\s*?$/).test(n.original);
1056
+ }
1057
+ function ar(e5, t, r) {
1058
+ t === void 0 && (t = -1);
1059
+ var n = e5[t + 1], s = e5[t + 2];
1060
+ if (!n) return r;
1061
+ if (n.type === "ContentStatement") return (s || !r ? /^\s*?\r?\n/ : /^\s*?(\r?\n|$)/).test(n.original);
1062
+ }
1063
+ function kt(e5, t, r) {
1064
+ var n = e5[t == null ? 0 : t + 1];
1065
+ if (!(!n || n.type !== "ContentStatement" || !r && n.rightStripped)) {
1066
+ var s = n.value;
1067
+ n.value = n.value.replace(r ? /^\s+/ : /^[ \t]*\r?\n?/, ""), n.rightStripped = n.value !== s;
1068
+ }
1069
+ }
1070
+ function ot(e5, t, r) {
1071
+ var n = e5[t == null ? e5.length - 1 : t - 1];
1072
+ if (!(!n || n.type !== "ContentStatement" || !r && n.leftStripped)) {
1073
+ var s = n.value;
1074
+ return n.value = n.value.replace(r ? /\s+$/ : /[ \t]+$/, ""), n.leftStripped = n.value !== s, n.leftStripped;
1075
+ }
1076
+ }
1077
+ var vn = G;
1078
+ var re = {};
1079
+ Ue(re, { SourceLocation: () => lr, id: () => Vs, prepareBlock: () => Ys, prepareMustache: () => Ms, preparePartialBlock: () => Ks, preparePath: () => Us, prepareProgram: () => Gs, prepareRawBlock: () => zs, stripComment: () => Fs, stripFlags: () => Hs });
1080
+ function or(e5, t) {
1081
+ if (t = t.path ? t.path.original : t, e5.path.original !== t) {
1082
+ var r = { loc: e5.path.loc };
1083
+ throw new at(e5.path.original + " doesn't match " + t, r);
1084
+ }
1085
+ }
1086
+ function lr(e5, t) {
1087
+ this.source = e5, this.start = { line: t.first_line, column: t.first_column }, this.end = { line: t.last_line, column: t.last_column };
1088
+ }
1089
+ function Vs(e5) {
1090
+ return /^\[.*\]$/.test(e5) ? e5.substring(1, e5.length - 1) : e5;
1091
+ }
1092
+ function Hs(e5, t) {
1093
+ return { open: e5.charAt(2) === "~", close: t.charAt(t.length - 3) === "~" };
1094
+ }
1095
+ function Fs(e5) {
1096
+ return e5.replace(/^\{\{~?!-?-?/, "").replace(/-?-?~?\}\}$/, "");
1097
+ }
1098
+ function Us(e5, t, r) {
1099
+ r = this.locInfo(r);
1100
+ for (var n = e5 ? "@" : "", s = [], i = 0, a = 0, o = t.length; a < o; a++) {
1101
+ var c = t[a].part, h = t[a].original !== c;
1102
+ if (n += (t[a].separator || "") + c, !h && (c === ".." || c === "." || c === "this")) {
1103
+ if (s.length > 0) throw new at("Invalid path: " + n, { loc: r });
1104
+ c === ".." && i++;
1105
+ } else s.push(c);
1106
+ }
1107
+ return { type: "PathExpression", data: e5, depth: i, parts: s, original: n, loc: r };
1108
+ }
1109
+ function Ms(e5, t, r, n, s, i) {
1110
+ var a = n.charAt(3) || n.charAt(2), o = a !== "{" && a !== "&", c = /\*/.test(n);
1111
+ return { type: c ? "Decorator" : "MustacheStatement", path: e5, params: t, hash: r, escaped: o, strip: s, loc: this.locInfo(i) };
1112
+ }
1113
+ function zs(e5, t, r, n) {
1114
+ or(e5, r), n = this.locInfo(n);
1115
+ var s = { type: "Program", body: t, strip: {}, loc: n };
1116
+ return { type: "BlockStatement", path: e5.path, params: e5.params, hash: e5.hash, program: s, openStrip: {}, inverseStrip: {}, closeStrip: {}, loc: n };
1117
+ }
1118
+ function Ys(e5, t, r, n, s, i) {
1119
+ n && n.path && or(e5, n);
1120
+ var a = /\*/.test(e5.open);
1121
+ t.blockParams = e5.blockParams;
1122
+ var o, c;
1123
+ if (r) {
1124
+ if (a) throw new at("Unexpected inverse block on decorator", r);
1125
+ r.chain && (r.program.body[0].closeStrip = n.strip), c = r.strip, o = r.program;
1126
+ }
1127
+ return s && (s = o, o = t, t = s), { type: a ? "DecoratorBlock" : "BlockStatement", path: e5.path, params: e5.params, hash: e5.hash, program: t, inverse: o, openStrip: e5.strip, inverseStrip: c, closeStrip: n && n.strip, loc: this.locInfo(i) };
1128
+ }
1129
+ function Gs(e5, t) {
1130
+ if (!t && e5.length) {
1131
+ var r = e5[0].loc, n = e5[e5.length - 1].loc;
1132
+ r && n && (t = { source: r.source, start: { line: r.start.line, column: r.start.column }, end: { line: n.end.line, column: n.end.column } });
1133
+ }
1134
+ return { type: "Program", body: e5, strip: {}, loc: t };
1135
+ }
1136
+ function Ks(e5, t, r, n) {
1137
+ return or(e5, r), { type: "PartialBlockStatement", name: e5.path, params: e5.params, hash: e5.hash, program: t, openStrip: e5.strip, closeStrip: r && r.strip, loc: this.locInfo(n) };
1138
+ }
1139
+ var En = {};
1140
+ for (Ce in re) Object.prototype.hasOwnProperty.call(re, Ce) && (En[Ce] = re[Ce]);
1141
+ var Ce;
1142
+ function Ne(e5, t) {
1143
+ if (e5.type === "Program") return e5;
1144
+ Ee.yy = En, Ee.yy.locInfo = function(n) {
1145
+ return new lr(t && t.srcName, n);
1146
+ };
1147
+ var r = Ee.parse(e5);
1148
+ return r;
1149
+ }
1150
+ function cr(e5, t) {
1151
+ var r = Ne(e5, t), n = new vn(t);
1152
+ return n.accept(r);
1153
+ }
1154
+ var Tn = { Aacute: "\xC1", aacute: "\xE1", Abreve: "\u0102", abreve: "\u0103", ac: "\u223E", acd: "\u223F", acE: "\u223E\u0333", Acirc: "\xC2", acirc: "\xE2", acute: "\xB4", Acy: "\u0410", acy: "\u0430", AElig: "\xC6", aelig: "\xE6", af: "\u2061", Afr: "\u{1D504}", afr: "\u{1D51E}", Agrave: "\xC0", agrave: "\xE0", alefsym: "\u2135", aleph: "\u2135", Alpha: "\u0391", alpha: "\u03B1", Amacr: "\u0100", amacr: "\u0101", amalg: "\u2A3F", amp: "&", AMP: "&", andand: "\u2A55", And: "\u2A53", and: "\u2227", andd: "\u2A5C", andslope: "\u2A58", andv: "\u2A5A", ang: "\u2220", ange: "\u29A4", angle: "\u2220", angmsdaa: "\u29A8", angmsdab: "\u29A9", angmsdac: "\u29AA", angmsdad: "\u29AB", angmsdae: "\u29AC", angmsdaf: "\u29AD", angmsdag: "\u29AE", angmsdah: "\u29AF", angmsd: "\u2221", angrt: "\u221F", angrtvb: "\u22BE", angrtvbd: "\u299D", angsph: "\u2222", angst: "\xC5", angzarr: "\u237C", Aogon: "\u0104", aogon: "\u0105", Aopf: "\u{1D538}", aopf: "\u{1D552}", apacir: "\u2A6F", ap: "\u2248", apE: "\u2A70", ape: "\u224A", apid: "\u224B", apos: "'", ApplyFunction: "\u2061", approx: "\u2248", approxeq: "\u224A", Aring: "\xC5", aring: "\xE5", Ascr: "\u{1D49C}", ascr: "\u{1D4B6}", Assign: "\u2254", ast: "*", asymp: "\u2248", asympeq: "\u224D", Atilde: "\xC3", atilde: "\xE3", Auml: "\xC4", auml: "\xE4", awconint: "\u2233", awint: "\u2A11", backcong: "\u224C", backepsilon: "\u03F6", backprime: "\u2035", backsim: "\u223D", backsimeq: "\u22CD", Backslash: "\u2216", Barv: "\u2AE7", barvee: "\u22BD", barwed: "\u2305", Barwed: "\u2306", barwedge: "\u2305", bbrk: "\u23B5", bbrktbrk: "\u23B6", bcong: "\u224C", Bcy: "\u0411", bcy: "\u0431", bdquo: "\u201E", becaus: "\u2235", because: "\u2235", Because: "\u2235", bemptyv: "\u29B0", bepsi: "\u03F6", bernou: "\u212C", Bernoullis: "\u212C", Beta: "\u0392", beta: "\u03B2", beth: "\u2136", between: "\u226C", Bfr: "\u{1D505}", bfr: "\u{1D51F}", bigcap: "\u22C2", bigcirc: "\u25EF", bigcup: "\u22C3", bigodot: "\u2A00", bigoplus: "\u2A01", bigotimes: "\u2A02", bigsqcup: "\u2A06", bigstar: "\u2605", bigtriangledown: "\u25BD", bigtriangleup: "\u25B3", biguplus: "\u2A04", bigvee: "\u22C1", bigwedge: "\u22C0", bkarow: "\u290D", blacklozenge: "\u29EB", blacksquare: "\u25AA", blacktriangle: "\u25B4", blacktriangledown: "\u25BE", blacktriangleleft: "\u25C2", blacktriangleright: "\u25B8", blank: "\u2423", blk12: "\u2592", blk14: "\u2591", blk34: "\u2593", block: "\u2588", bne: "=\u20E5", bnequiv: "\u2261\u20E5", bNot: "\u2AED", bnot: "\u2310", Bopf: "\u{1D539}", bopf: "\u{1D553}", bot: "\u22A5", bottom: "\u22A5", bowtie: "\u22C8", boxbox: "\u29C9", boxdl: "\u2510", boxdL: "\u2555", boxDl: "\u2556", boxDL: "\u2557", boxdr: "\u250C", boxdR: "\u2552", boxDr: "\u2553", boxDR: "\u2554", boxh: "\u2500", boxH: "\u2550", boxhd: "\u252C", boxHd: "\u2564", boxhD: "\u2565", boxHD: "\u2566", boxhu: "\u2534", boxHu: "\u2567", boxhU: "\u2568", boxHU: "\u2569", boxminus: "\u229F", boxplus: "\u229E", boxtimes: "\u22A0", boxul: "\u2518", boxuL: "\u255B", boxUl: "\u255C", boxUL: "\u255D", boxur: "\u2514", boxuR: "\u2558", boxUr: "\u2559", boxUR: "\u255A", boxv: "\u2502", boxV: "\u2551", boxvh: "\u253C", boxvH: "\u256A", boxVh: "\u256B", boxVH: "\u256C", boxvl: "\u2524", boxvL: "\u2561", boxVl: "\u2562", boxVL: "\u2563", boxvr: "\u251C", boxvR: "\u255E", boxVr: "\u255F", boxVR: "\u2560", bprime: "\u2035", breve: "\u02D8", Breve: "\u02D8", brvbar: "\xA6", bscr: "\u{1D4B7}", Bscr: "\u212C", bsemi: "\u204F", bsim: "\u223D", bsime: "\u22CD", bsolb: "\u29C5", bsol: "\\", bsolhsub: "\u27C8", bull: "\u2022", bullet: "\u2022", bump: "\u224E", bumpE: "\u2AAE", bumpe: "\u224F", Bumpeq: "\u224E", bumpeq: "\u224F", Cacute: "\u0106", cacute: "\u0107", capand: "\u2A44", capbrcup: "\u2A49", capcap: "\u2A4B", cap: "\u2229", Cap: "\u22D2", capcup: "\u2A47", capdot: "\u2A40", CapitalDifferentialD: "\u2145", caps: "\u2229\uFE00", caret: "\u2041", caron: "\u02C7", Cayleys: "\u212D", ccaps: "\u2A4D", Ccaron: "\u010C", ccaron: "\u010D", Ccedil: "\xC7", ccedil: "\xE7", Ccirc: "\u0108", ccirc: "\u0109", Cconint: "\u2230", ccups: "\u2A4C", ccupssm: "\u2A50", Cdot: "\u010A", cdot: "\u010B", cedil: "\xB8", Cedilla: "\xB8", cemptyv: "\u29B2", cent: "\xA2", centerdot: "\xB7", CenterDot: "\xB7", cfr: "\u{1D520}", Cfr: "\u212D", CHcy: "\u0427", chcy: "\u0447", check: "\u2713", checkmark: "\u2713", Chi: "\u03A7", chi: "\u03C7", circ: "\u02C6", circeq: "\u2257", circlearrowleft: "\u21BA", circlearrowright: "\u21BB", circledast: "\u229B", circledcirc: "\u229A", circleddash: "\u229D", CircleDot: "\u2299", circledR: "\xAE", circledS: "\u24C8", CircleMinus: "\u2296", CirclePlus: "\u2295", CircleTimes: "\u2297", cir: "\u25CB", cirE: "\u29C3", cire: "\u2257", cirfnint: "\u2A10", cirmid: "\u2AEF", cirscir: "\u29C2", ClockwiseContourIntegral: "\u2232", CloseCurlyDoubleQuote: "\u201D", CloseCurlyQuote: "\u2019", clubs: "\u2663", clubsuit: "\u2663", colon: ":", Colon: "\u2237", Colone: "\u2A74", colone: "\u2254", coloneq: "\u2254", comma: ",", commat: "@", comp: "\u2201", compfn: "\u2218", complement: "\u2201", complexes: "\u2102", cong: "\u2245", congdot: "\u2A6D", Congruent: "\u2261", conint: "\u222E", Conint: "\u222F", ContourIntegral: "\u222E", copf: "\u{1D554}", Copf: "\u2102", coprod: "\u2210", Coproduct: "\u2210", copy: "\xA9", COPY: "\xA9", copysr: "\u2117", CounterClockwiseContourIntegral: "\u2233", crarr: "\u21B5", cross: "\u2717", Cross: "\u2A2F", Cscr: "\u{1D49E}", cscr: "\u{1D4B8}", csub: "\u2ACF", csube: "\u2AD1", csup: "\u2AD0", csupe: "\u2AD2", ctdot: "\u22EF", cudarrl: "\u2938", cudarrr: "\u2935", cuepr: "\u22DE", cuesc: "\u22DF", cularr: "\u21B6", cularrp: "\u293D", cupbrcap: "\u2A48", cupcap: "\u2A46", CupCap: "\u224D", cup: "\u222A", Cup: "\u22D3", cupcup: "\u2A4A", cupdot: "\u228D", cupor: "\u2A45", cups: "\u222A\uFE00", curarr: "\u21B7", curarrm: "\u293C", curlyeqprec: "\u22DE", curlyeqsucc: "\u22DF", curlyvee: "\u22CE", curlywedge: "\u22CF", curren: "\xA4", curvearrowleft: "\u21B6", curvearrowright: "\u21B7", cuvee: "\u22CE", cuwed: "\u22CF", cwconint: "\u2232", cwint: "\u2231", cylcty: "\u232D", dagger: "\u2020", Dagger: "\u2021", daleth: "\u2138", darr: "\u2193", Darr: "\u21A1", dArr: "\u21D3", dash: "\u2010", Dashv: "\u2AE4", dashv: "\u22A3", dbkarow: "\u290F", dblac: "\u02DD", Dcaron: "\u010E", dcaron: "\u010F", Dcy: "\u0414", dcy: "\u0434", ddagger: "\u2021", ddarr: "\u21CA", DD: "\u2145", dd: "\u2146", DDotrahd: "\u2911", ddotseq: "\u2A77", deg: "\xB0", Del: "\u2207", Delta: "\u0394", delta: "\u03B4", demptyv: "\u29B1", dfisht: "\u297F", Dfr: "\u{1D507}", dfr: "\u{1D521}", dHar: "\u2965", dharl: "\u21C3", dharr: "\u21C2", DiacriticalAcute: "\xB4", DiacriticalDot: "\u02D9", DiacriticalDoubleAcute: "\u02DD", DiacriticalGrave: "`", DiacriticalTilde: "\u02DC", diam: "\u22C4", diamond: "\u22C4", Diamond: "\u22C4", diamondsuit: "\u2666", diams: "\u2666", die: "\xA8", DifferentialD: "\u2146", digamma: "\u03DD", disin: "\u22F2", div: "\xF7", divide: "\xF7", divideontimes: "\u22C7", divonx: "\u22C7", DJcy: "\u0402", djcy: "\u0452", dlcorn: "\u231E", dlcrop: "\u230D", dollar: "$", Dopf: "\u{1D53B}", dopf: "\u{1D555}", Dot: "\xA8", dot: "\u02D9", DotDot: "\u20DC", doteq: "\u2250", doteqdot: "\u2251", DotEqual: "\u2250", dotminus: "\u2238", dotplus: "\u2214", dotsquare: "\u22A1", doublebarwedge: "\u2306", DoubleContourIntegral: "\u222F", DoubleDot: "\xA8", DoubleDownArrow: "\u21D3", DoubleLeftArrow: "\u21D0", DoubleLeftRightArrow: "\u21D4", DoubleLeftTee: "\u2AE4", DoubleLongLeftArrow: "\u27F8", DoubleLongLeftRightArrow: "\u27FA", DoubleLongRightArrow: "\u27F9", DoubleRightArrow: "\u21D2", DoubleRightTee: "\u22A8", DoubleUpArrow: "\u21D1", DoubleUpDownArrow: "\u21D5", DoubleVerticalBar: "\u2225", DownArrowBar: "\u2913", downarrow: "\u2193", DownArrow: "\u2193", Downarrow: "\u21D3", DownArrowUpArrow: "\u21F5", DownBreve: "\u0311", downdownarrows: "\u21CA", downharpoonleft: "\u21C3", downharpoonright: "\u21C2", DownLeftRightVector: "\u2950", DownLeftTeeVector: "\u295E", DownLeftVectorBar: "\u2956", DownLeftVector: "\u21BD", DownRightTeeVector: "\u295F", DownRightVectorBar: "\u2957", DownRightVector: "\u21C1", DownTeeArrow: "\u21A7", DownTee: "\u22A4", drbkarow: "\u2910", drcorn: "\u231F", drcrop: "\u230C", Dscr: "\u{1D49F}", dscr: "\u{1D4B9}", DScy: "\u0405", dscy: "\u0455", dsol: "\u29F6", Dstrok: "\u0110", dstrok: "\u0111", dtdot: "\u22F1", dtri: "\u25BF", dtrif: "\u25BE", duarr: "\u21F5", duhar: "\u296F", dwangle: "\u29A6", DZcy: "\u040F", dzcy: "\u045F", dzigrarr: "\u27FF", Eacute: "\xC9", eacute: "\xE9", easter: "\u2A6E", Ecaron: "\u011A", ecaron: "\u011B", Ecirc: "\xCA", ecirc: "\xEA", ecir: "\u2256", ecolon: "\u2255", Ecy: "\u042D", ecy: "\u044D", eDDot: "\u2A77", Edot: "\u0116", edot: "\u0117", eDot: "\u2251", ee: "\u2147", efDot: "\u2252", Efr: "\u{1D508}", efr: "\u{1D522}", eg: "\u2A9A", Egrave: "\xC8", egrave: "\xE8", egs: "\u2A96", egsdot: "\u2A98", el: "\u2A99", Element: "\u2208", elinters: "\u23E7", ell: "\u2113", els: "\u2A95", elsdot: "\u2A97", Emacr: "\u0112", emacr: "\u0113", empty: "\u2205", emptyset: "\u2205", EmptySmallSquare: "\u25FB", emptyv: "\u2205", EmptyVerySmallSquare: "\u25AB", emsp13: "\u2004", emsp14: "\u2005", emsp: "\u2003", ENG: "\u014A", eng: "\u014B", ensp: "\u2002", Eogon: "\u0118", eogon: "\u0119", Eopf: "\u{1D53C}", eopf: "\u{1D556}", epar: "\u22D5", eparsl: "\u29E3", eplus: "\u2A71", epsi: "\u03B5", Epsilon: "\u0395", epsilon: "\u03B5", epsiv: "\u03F5", eqcirc: "\u2256", eqcolon: "\u2255", eqsim: "\u2242", eqslantgtr: "\u2A96", eqslantless: "\u2A95", Equal: "\u2A75", equals: "=", EqualTilde: "\u2242", equest: "\u225F", Equilibrium: "\u21CC", equiv: "\u2261", equivDD: "\u2A78", eqvparsl: "\u29E5", erarr: "\u2971", erDot: "\u2253", escr: "\u212F", Escr: "\u2130", esdot: "\u2250", Esim: "\u2A73", esim: "\u2242", Eta: "\u0397", eta: "\u03B7", ETH: "\xD0", eth: "\xF0", Euml: "\xCB", euml: "\xEB", euro: "\u20AC", excl: "!", exist: "\u2203", Exists: "\u2203", expectation: "\u2130", exponentiale: "\u2147", ExponentialE: "\u2147", fallingdotseq: "\u2252", Fcy: "\u0424", fcy: "\u0444", female: "\u2640", ffilig: "\uFB03", fflig: "\uFB00", ffllig: "\uFB04", Ffr: "\u{1D509}", ffr: "\u{1D523}", filig: "\uFB01", FilledSmallSquare: "\u25FC", FilledVerySmallSquare: "\u25AA", fjlig: "fj", flat: "\u266D", fllig: "\uFB02", fltns: "\u25B1", fnof: "\u0192", Fopf: "\u{1D53D}", fopf: "\u{1D557}", forall: "\u2200", ForAll: "\u2200", fork: "\u22D4", forkv: "\u2AD9", Fouriertrf: "\u2131", fpartint: "\u2A0D", frac12: "\xBD", frac13: "\u2153", frac14: "\xBC", frac15: "\u2155", frac16: "\u2159", frac18: "\u215B", frac23: "\u2154", frac25: "\u2156", frac34: "\xBE", frac35: "\u2157", frac38: "\u215C", frac45: "\u2158", frac56: "\u215A", frac58: "\u215D", frac78: "\u215E", frasl: "\u2044", frown: "\u2322", fscr: "\u{1D4BB}", Fscr: "\u2131", gacute: "\u01F5", Gamma: "\u0393", gamma: "\u03B3", Gammad: "\u03DC", gammad: "\u03DD", gap: "\u2A86", Gbreve: "\u011E", gbreve: "\u011F", Gcedil: "\u0122", Gcirc: "\u011C", gcirc: "\u011D", Gcy: "\u0413", gcy: "\u0433", Gdot: "\u0120", gdot: "\u0121", ge: "\u2265", gE: "\u2267", gEl: "\u2A8C", gel: "\u22DB", geq: "\u2265", geqq: "\u2267", geqslant: "\u2A7E", gescc: "\u2AA9", ges: "\u2A7E", gesdot: "\u2A80", gesdoto: "\u2A82", gesdotol: "\u2A84", gesl: "\u22DB\uFE00", gesles: "\u2A94", Gfr: "\u{1D50A}", gfr: "\u{1D524}", gg: "\u226B", Gg: "\u22D9", ggg: "\u22D9", gimel: "\u2137", GJcy: "\u0403", gjcy: "\u0453", gla: "\u2AA5", gl: "\u2277", glE: "\u2A92", glj: "\u2AA4", gnap: "\u2A8A", gnapprox: "\u2A8A", gne: "\u2A88", gnE: "\u2269", gneq: "\u2A88", gneqq: "\u2269", gnsim: "\u22E7", Gopf: "\u{1D53E}", gopf: "\u{1D558}", grave: "`", GreaterEqual: "\u2265", GreaterEqualLess: "\u22DB", GreaterFullEqual: "\u2267", GreaterGreater: "\u2AA2", GreaterLess: "\u2277", GreaterSlantEqual: "\u2A7E", GreaterTilde: "\u2273", Gscr: "\u{1D4A2}", gscr: "\u210A", gsim: "\u2273", gsime: "\u2A8E", gsiml: "\u2A90", gtcc: "\u2AA7", gtcir: "\u2A7A", gt: ">", GT: ">", Gt: "\u226B", gtdot: "\u22D7", gtlPar: "\u2995", gtquest: "\u2A7C", gtrapprox: "\u2A86", gtrarr: "\u2978", gtrdot: "\u22D7", gtreqless: "\u22DB", gtreqqless: "\u2A8C", gtrless: "\u2277", gtrsim: "\u2273", gvertneqq: "\u2269\uFE00", gvnE: "\u2269\uFE00", Hacek: "\u02C7", hairsp: "\u200A", half: "\xBD", hamilt: "\u210B", HARDcy: "\u042A", hardcy: "\u044A", harrcir: "\u2948", harr: "\u2194", hArr: "\u21D4", harrw: "\u21AD", Hat: "^", hbar: "\u210F", Hcirc: "\u0124", hcirc: "\u0125", hearts: "\u2665", heartsuit: "\u2665", hellip: "\u2026", hercon: "\u22B9", hfr: "\u{1D525}", Hfr: "\u210C", HilbertSpace: "\u210B", hksearow: "\u2925", hkswarow: "\u2926", hoarr: "\u21FF", homtht: "\u223B", hookleftarrow: "\u21A9", hookrightarrow: "\u21AA", hopf: "\u{1D559}", Hopf: "\u210D", horbar: "\u2015", HorizontalLine: "\u2500", hscr: "\u{1D4BD}", Hscr: "\u210B", hslash: "\u210F", Hstrok: "\u0126", hstrok: "\u0127", HumpDownHump: "\u224E", HumpEqual: "\u224F", hybull: "\u2043", hyphen: "\u2010", Iacute: "\xCD", iacute: "\xED", ic: "\u2063", Icirc: "\xCE", icirc: "\xEE", Icy: "\u0418", icy: "\u0438", Idot: "\u0130", IEcy: "\u0415", iecy: "\u0435", iexcl: "\xA1", iff: "\u21D4", ifr: "\u{1D526}", Ifr: "\u2111", Igrave: "\xCC", igrave: "\xEC", ii: "\u2148", iiiint: "\u2A0C", iiint: "\u222D", iinfin: "\u29DC", iiota: "\u2129", IJlig: "\u0132", ijlig: "\u0133", Imacr: "\u012A", imacr: "\u012B", image: "\u2111", ImaginaryI: "\u2148", imagline: "\u2110", imagpart: "\u2111", imath: "\u0131", Im: "\u2111", imof: "\u22B7", imped: "\u01B5", Implies: "\u21D2", incare: "\u2105", in: "\u2208", infin: "\u221E", infintie: "\u29DD", inodot: "\u0131", intcal: "\u22BA", int: "\u222B", Int: "\u222C", integers: "\u2124", Integral: "\u222B", intercal: "\u22BA", Intersection: "\u22C2", intlarhk: "\u2A17", intprod: "\u2A3C", InvisibleComma: "\u2063", InvisibleTimes: "\u2062", IOcy: "\u0401", iocy: "\u0451", Iogon: "\u012E", iogon: "\u012F", Iopf: "\u{1D540}", iopf: "\u{1D55A}", Iota: "\u0399", iota: "\u03B9", iprod: "\u2A3C", iquest: "\xBF", iscr: "\u{1D4BE}", Iscr: "\u2110", isin: "\u2208", isindot: "\u22F5", isinE: "\u22F9", isins: "\u22F4", isinsv: "\u22F3", isinv: "\u2208", it: "\u2062", Itilde: "\u0128", itilde: "\u0129", Iukcy: "\u0406", iukcy: "\u0456", Iuml: "\xCF", iuml: "\xEF", Jcirc: "\u0134", jcirc: "\u0135", Jcy: "\u0419", jcy: "\u0439", Jfr: "\u{1D50D}", jfr: "\u{1D527}", jmath: "\u0237", Jopf: "\u{1D541}", jopf: "\u{1D55B}", Jscr: "\u{1D4A5}", jscr: "\u{1D4BF}", Jsercy: "\u0408", jsercy: "\u0458", Jukcy: "\u0404", jukcy: "\u0454", Kappa: "\u039A", kappa: "\u03BA", kappav: "\u03F0", Kcedil: "\u0136", kcedil: "\u0137", Kcy: "\u041A", kcy: "\u043A", Kfr: "\u{1D50E}", kfr: "\u{1D528}", kgreen: "\u0138", KHcy: "\u0425", khcy: "\u0445", KJcy: "\u040C", kjcy: "\u045C", Kopf: "\u{1D542}", kopf: "\u{1D55C}", Kscr: "\u{1D4A6}", kscr: "\u{1D4C0}", lAarr: "\u21DA", Lacute: "\u0139", lacute: "\u013A", laemptyv: "\u29B4", lagran: "\u2112", Lambda: "\u039B", lambda: "\u03BB", lang: "\u27E8", Lang: "\u27EA", langd: "\u2991", langle: "\u27E8", lap: "\u2A85", Laplacetrf: "\u2112", laquo: "\xAB", larrb: "\u21E4", larrbfs: "\u291F", larr: "\u2190", Larr: "\u219E", lArr: "\u21D0", larrfs: "\u291D", larrhk: "\u21A9", larrlp: "\u21AB", larrpl: "\u2939", larrsim: "\u2973", larrtl: "\u21A2", latail: "\u2919", lAtail: "\u291B", lat: "\u2AAB", late: "\u2AAD", lates: "\u2AAD\uFE00", lbarr: "\u290C", lBarr: "\u290E", lbbrk: "\u2772", lbrace: "{", lbrack: "[", lbrke: "\u298B", lbrksld: "\u298F", lbrkslu: "\u298D", Lcaron: "\u013D", lcaron: "\u013E", Lcedil: "\u013B", lcedil: "\u013C", lceil: "\u2308", lcub: "{", Lcy: "\u041B", lcy: "\u043B", ldca: "\u2936", ldquo: "\u201C", ldquor: "\u201E", ldrdhar: "\u2967", ldrushar: "\u294B", ldsh: "\u21B2", le: "\u2264", lE: "\u2266", LeftAngleBracket: "\u27E8", LeftArrowBar: "\u21E4", leftarrow: "\u2190", LeftArrow: "\u2190", Leftarrow: "\u21D0", LeftArrowRightArrow: "\u21C6", leftarrowtail: "\u21A2", LeftCeiling: "\u2308", LeftDoubleBracket: "\u27E6", LeftDownTeeVector: "\u2961", LeftDownVectorBar: "\u2959", LeftDownVector: "\u21C3", LeftFloor: "\u230A", leftharpoondown: "\u21BD", leftharpoonup: "\u21BC", leftleftarrows: "\u21C7", leftrightarrow: "\u2194", LeftRightArrow: "\u2194", Leftrightarrow: "\u21D4", leftrightarrows: "\u21C6", leftrightharpoons: "\u21CB", leftrightsquigarrow: "\u21AD", LeftRightVector: "\u294E", LeftTeeArrow: "\u21A4", LeftTee: "\u22A3", LeftTeeVector: "\u295A", leftthreetimes: "\u22CB", LeftTriangleBar: "\u29CF", LeftTriangle: "\u22B2", LeftTriangleEqual: "\u22B4", LeftUpDownVector: "\u2951", LeftUpTeeVector: "\u2960", LeftUpVectorBar: "\u2958", LeftUpVector: "\u21BF", LeftVectorBar: "\u2952", LeftVector: "\u21BC", lEg: "\u2A8B", leg: "\u22DA", leq: "\u2264", leqq: "\u2266", leqslant: "\u2A7D", lescc: "\u2AA8", les: "\u2A7D", lesdot: "\u2A7F", lesdoto: "\u2A81", lesdotor: "\u2A83", lesg: "\u22DA\uFE00", lesges: "\u2A93", lessapprox: "\u2A85", lessdot: "\u22D6", lesseqgtr: "\u22DA", lesseqqgtr: "\u2A8B", LessEqualGreater: "\u22DA", LessFullEqual: "\u2266", LessGreater: "\u2276", lessgtr: "\u2276", LessLess: "\u2AA1", lesssim: "\u2272", LessSlantEqual: "\u2A7D", LessTilde: "\u2272", lfisht: "\u297C", lfloor: "\u230A", Lfr: "\u{1D50F}", lfr: "\u{1D529}", lg: "\u2276", lgE: "\u2A91", lHar: "\u2962", lhard: "\u21BD", lharu: "\u21BC", lharul: "\u296A", lhblk: "\u2584", LJcy: "\u0409", ljcy: "\u0459", llarr: "\u21C7", ll: "\u226A", Ll: "\u22D8", llcorner: "\u231E", Lleftarrow: "\u21DA", llhard: "\u296B", lltri: "\u25FA", Lmidot: "\u013F", lmidot: "\u0140", lmoustache: "\u23B0", lmoust: "\u23B0", lnap: "\u2A89", lnapprox: "\u2A89", lne: "\u2A87", lnE: "\u2268", lneq: "\u2A87", lneqq: "\u2268", lnsim: "\u22E6", loang: "\u27EC", loarr: "\u21FD", lobrk: "\u27E6", longleftarrow: "\u27F5", LongLeftArrow: "\u27F5", Longleftarrow: "\u27F8", longleftrightarrow: "\u27F7", LongLeftRightArrow: "\u27F7", Longleftrightarrow: "\u27FA", longmapsto: "\u27FC", longrightarrow: "\u27F6", LongRightArrow: "\u27F6", Longrightarrow: "\u27F9", looparrowleft: "\u21AB", looparrowright: "\u21AC", lopar: "\u2985", Lopf: "\u{1D543}", lopf: "\u{1D55D}", loplus: "\u2A2D", lotimes: "\u2A34", lowast: "\u2217", lowbar: "_", LowerLeftArrow: "\u2199", LowerRightArrow: "\u2198", loz: "\u25CA", lozenge: "\u25CA", lozf: "\u29EB", lpar: "(", lparlt: "\u2993", lrarr: "\u21C6", lrcorner: "\u231F", lrhar: "\u21CB", lrhard: "\u296D", lrm: "\u200E", lrtri: "\u22BF", lsaquo: "\u2039", lscr: "\u{1D4C1}", Lscr: "\u2112", lsh: "\u21B0", Lsh: "\u21B0", lsim: "\u2272", lsime: "\u2A8D", lsimg: "\u2A8F", lsqb: "[", lsquo: "\u2018", lsquor: "\u201A", Lstrok: "\u0141", lstrok: "\u0142", ltcc: "\u2AA6", ltcir: "\u2A79", lt: "<", LT: "<", Lt: "\u226A", ltdot: "\u22D6", lthree: "\u22CB", ltimes: "\u22C9", ltlarr: "\u2976", ltquest: "\u2A7B", ltri: "\u25C3", ltrie: "\u22B4", ltrif: "\u25C2", ltrPar: "\u2996", lurdshar: "\u294A", luruhar: "\u2966", lvertneqq: "\u2268\uFE00", lvnE: "\u2268\uFE00", macr: "\xAF", male: "\u2642", malt: "\u2720", maltese: "\u2720", Map: "\u2905", map: "\u21A6", mapsto: "\u21A6", mapstodown: "\u21A7", mapstoleft: "\u21A4", mapstoup: "\u21A5", marker: "\u25AE", mcomma: "\u2A29", Mcy: "\u041C", mcy: "\u043C", mdash: "\u2014", mDDot: "\u223A", measuredangle: "\u2221", MediumSpace: "\u205F", Mellintrf: "\u2133", Mfr: "\u{1D510}", mfr: "\u{1D52A}", mho: "\u2127", micro: "\xB5", midast: "*", midcir: "\u2AF0", mid: "\u2223", middot: "\xB7", minusb: "\u229F", minus: "\u2212", minusd: "\u2238", minusdu: "\u2A2A", MinusPlus: "\u2213", mlcp: "\u2ADB", mldr: "\u2026", mnplus: "\u2213", models: "\u22A7", Mopf: "\u{1D544}", mopf: "\u{1D55E}", mp: "\u2213", mscr: "\u{1D4C2}", Mscr: "\u2133", mstpos: "\u223E", Mu: "\u039C", mu: "\u03BC", multimap: "\u22B8", mumap: "\u22B8", nabla: "\u2207", Nacute: "\u0143", nacute: "\u0144", nang: "\u2220\u20D2", nap: "\u2249", napE: "\u2A70\u0338", napid: "\u224B\u0338", napos: "\u0149", napprox: "\u2249", natural: "\u266E", naturals: "\u2115", natur: "\u266E", nbsp: "\xA0", nbump: "\u224E\u0338", nbumpe: "\u224F\u0338", ncap: "\u2A43", Ncaron: "\u0147", ncaron: "\u0148", Ncedil: "\u0145", ncedil: "\u0146", ncong: "\u2247", ncongdot: "\u2A6D\u0338", ncup: "\u2A42", Ncy: "\u041D", ncy: "\u043D", ndash: "\u2013", nearhk: "\u2924", nearr: "\u2197", neArr: "\u21D7", nearrow: "\u2197", ne: "\u2260", nedot: "\u2250\u0338", NegativeMediumSpace: "\u200B", NegativeThickSpace: "\u200B", NegativeThinSpace: "\u200B", NegativeVeryThinSpace: "\u200B", nequiv: "\u2262", nesear: "\u2928", nesim: "\u2242\u0338", NestedGreaterGreater: "\u226B", NestedLessLess: "\u226A", NewLine: `
1155
+ `, nexist: "\u2204", nexists: "\u2204", Nfr: "\u{1D511}", nfr: "\u{1D52B}", ngE: "\u2267\u0338", nge: "\u2271", ngeq: "\u2271", ngeqq: "\u2267\u0338", ngeqslant: "\u2A7E\u0338", nges: "\u2A7E\u0338", nGg: "\u22D9\u0338", ngsim: "\u2275", nGt: "\u226B\u20D2", ngt: "\u226F", ngtr: "\u226F", nGtv: "\u226B\u0338", nharr: "\u21AE", nhArr: "\u21CE", nhpar: "\u2AF2", ni: "\u220B", nis: "\u22FC", nisd: "\u22FA", niv: "\u220B", NJcy: "\u040A", njcy: "\u045A", nlarr: "\u219A", nlArr: "\u21CD", nldr: "\u2025", nlE: "\u2266\u0338", nle: "\u2270", nleftarrow: "\u219A", nLeftarrow: "\u21CD", nleftrightarrow: "\u21AE", nLeftrightarrow: "\u21CE", nleq: "\u2270", nleqq: "\u2266\u0338", nleqslant: "\u2A7D\u0338", nles: "\u2A7D\u0338", nless: "\u226E", nLl: "\u22D8\u0338", nlsim: "\u2274", nLt: "\u226A\u20D2", nlt: "\u226E", nltri: "\u22EA", nltrie: "\u22EC", nLtv: "\u226A\u0338", nmid: "\u2224", NoBreak: "\u2060", NonBreakingSpace: "\xA0", nopf: "\u{1D55F}", Nopf: "\u2115", Not: "\u2AEC", not: "\xAC", NotCongruent: "\u2262", NotCupCap: "\u226D", NotDoubleVerticalBar: "\u2226", NotElement: "\u2209", NotEqual: "\u2260", NotEqualTilde: "\u2242\u0338", NotExists: "\u2204", NotGreater: "\u226F", NotGreaterEqual: "\u2271", NotGreaterFullEqual: "\u2267\u0338", NotGreaterGreater: "\u226B\u0338", NotGreaterLess: "\u2279", NotGreaterSlantEqual: "\u2A7E\u0338", NotGreaterTilde: "\u2275", NotHumpDownHump: "\u224E\u0338", NotHumpEqual: "\u224F\u0338", notin: "\u2209", notindot: "\u22F5\u0338", notinE: "\u22F9\u0338", notinva: "\u2209", notinvb: "\u22F7", notinvc: "\u22F6", NotLeftTriangleBar: "\u29CF\u0338", NotLeftTriangle: "\u22EA", NotLeftTriangleEqual: "\u22EC", NotLess: "\u226E", NotLessEqual: "\u2270", NotLessGreater: "\u2278", NotLessLess: "\u226A\u0338", NotLessSlantEqual: "\u2A7D\u0338", NotLessTilde: "\u2274", NotNestedGreaterGreater: "\u2AA2\u0338", NotNestedLessLess: "\u2AA1\u0338", notni: "\u220C", notniva: "\u220C", notnivb: "\u22FE", notnivc: "\u22FD", NotPrecedes: "\u2280", NotPrecedesEqual: "\u2AAF\u0338", NotPrecedesSlantEqual: "\u22E0", NotReverseElement: "\u220C", NotRightTriangleBar: "\u29D0\u0338", NotRightTriangle: "\u22EB", NotRightTriangleEqual: "\u22ED", NotSquareSubset: "\u228F\u0338", NotSquareSubsetEqual: "\u22E2", NotSquareSuperset: "\u2290\u0338", NotSquareSupersetEqual: "\u22E3", NotSubset: "\u2282\u20D2", NotSubsetEqual: "\u2288", NotSucceeds: "\u2281", NotSucceedsEqual: "\u2AB0\u0338", NotSucceedsSlantEqual: "\u22E1", NotSucceedsTilde: "\u227F\u0338", NotSuperset: "\u2283\u20D2", NotSupersetEqual: "\u2289", NotTilde: "\u2241", NotTildeEqual: "\u2244", NotTildeFullEqual: "\u2247", NotTildeTilde: "\u2249", NotVerticalBar: "\u2224", nparallel: "\u2226", npar: "\u2226", nparsl: "\u2AFD\u20E5", npart: "\u2202\u0338", npolint: "\u2A14", npr: "\u2280", nprcue: "\u22E0", nprec: "\u2280", npreceq: "\u2AAF\u0338", npre: "\u2AAF\u0338", nrarrc: "\u2933\u0338", nrarr: "\u219B", nrArr: "\u21CF", nrarrw: "\u219D\u0338", nrightarrow: "\u219B", nRightarrow: "\u21CF", nrtri: "\u22EB", nrtrie: "\u22ED", nsc: "\u2281", nsccue: "\u22E1", nsce: "\u2AB0\u0338", Nscr: "\u{1D4A9}", nscr: "\u{1D4C3}", nshortmid: "\u2224", nshortparallel: "\u2226", nsim: "\u2241", nsime: "\u2244", nsimeq: "\u2244", nsmid: "\u2224", nspar: "\u2226", nsqsube: "\u22E2", nsqsupe: "\u22E3", nsub: "\u2284", nsubE: "\u2AC5\u0338", nsube: "\u2288", nsubset: "\u2282\u20D2", nsubseteq: "\u2288", nsubseteqq: "\u2AC5\u0338", nsucc: "\u2281", nsucceq: "\u2AB0\u0338", nsup: "\u2285", nsupE: "\u2AC6\u0338", nsupe: "\u2289", nsupset: "\u2283\u20D2", nsupseteq: "\u2289", nsupseteqq: "\u2AC6\u0338", ntgl: "\u2279", Ntilde: "\xD1", ntilde: "\xF1", ntlg: "\u2278", ntriangleleft: "\u22EA", ntrianglelefteq: "\u22EC", ntriangleright: "\u22EB", ntrianglerighteq: "\u22ED", Nu: "\u039D", nu: "\u03BD", num: "#", numero: "\u2116", numsp: "\u2007", nvap: "\u224D\u20D2", nvdash: "\u22AC", nvDash: "\u22AD", nVdash: "\u22AE", nVDash: "\u22AF", nvge: "\u2265\u20D2", nvgt: ">\u20D2", nvHarr: "\u2904", nvinfin: "\u29DE", nvlArr: "\u2902", nvle: "\u2264\u20D2", nvlt: "<\u20D2", nvltrie: "\u22B4\u20D2", nvrArr: "\u2903", nvrtrie: "\u22B5\u20D2", nvsim: "\u223C\u20D2", nwarhk: "\u2923", nwarr: "\u2196", nwArr: "\u21D6", nwarrow: "\u2196", nwnear: "\u2927", Oacute: "\xD3", oacute: "\xF3", oast: "\u229B", Ocirc: "\xD4", ocirc: "\xF4", ocir: "\u229A", Ocy: "\u041E", ocy: "\u043E", odash: "\u229D", Odblac: "\u0150", odblac: "\u0151", odiv: "\u2A38", odot: "\u2299", odsold: "\u29BC", OElig: "\u0152", oelig: "\u0153", ofcir: "\u29BF", Ofr: "\u{1D512}", ofr: "\u{1D52C}", ogon: "\u02DB", Ograve: "\xD2", ograve: "\xF2", ogt: "\u29C1", ohbar: "\u29B5", ohm: "\u03A9", oint: "\u222E", olarr: "\u21BA", olcir: "\u29BE", olcross: "\u29BB", oline: "\u203E", olt: "\u29C0", Omacr: "\u014C", omacr: "\u014D", Omega: "\u03A9", omega: "\u03C9", Omicron: "\u039F", omicron: "\u03BF", omid: "\u29B6", ominus: "\u2296", Oopf: "\u{1D546}", oopf: "\u{1D560}", opar: "\u29B7", OpenCurlyDoubleQuote: "\u201C", OpenCurlyQuote: "\u2018", operp: "\u29B9", oplus: "\u2295", orarr: "\u21BB", Or: "\u2A54", or: "\u2228", ord: "\u2A5D", order: "\u2134", orderof: "\u2134", ordf: "\xAA", ordm: "\xBA", origof: "\u22B6", oror: "\u2A56", orslope: "\u2A57", orv: "\u2A5B", oS: "\u24C8", Oscr: "\u{1D4AA}", oscr: "\u2134", Oslash: "\xD8", oslash: "\xF8", osol: "\u2298", Otilde: "\xD5", otilde: "\xF5", otimesas: "\u2A36", Otimes: "\u2A37", otimes: "\u2297", Ouml: "\xD6", ouml: "\xF6", ovbar: "\u233D", OverBar: "\u203E", OverBrace: "\u23DE", OverBracket: "\u23B4", OverParenthesis: "\u23DC", para: "\xB6", parallel: "\u2225", par: "\u2225", parsim: "\u2AF3", parsl: "\u2AFD", part: "\u2202", PartialD: "\u2202", Pcy: "\u041F", pcy: "\u043F", percnt: "%", period: ".", permil: "\u2030", perp: "\u22A5", pertenk: "\u2031", Pfr: "\u{1D513}", pfr: "\u{1D52D}", Phi: "\u03A6", phi: "\u03C6", phiv: "\u03D5", phmmat: "\u2133", phone: "\u260E", Pi: "\u03A0", pi: "\u03C0", pitchfork: "\u22D4", piv: "\u03D6", planck: "\u210F", planckh: "\u210E", plankv: "\u210F", plusacir: "\u2A23", plusb: "\u229E", pluscir: "\u2A22", plus: "+", plusdo: "\u2214", plusdu: "\u2A25", pluse: "\u2A72", PlusMinus: "\xB1", plusmn: "\xB1", plussim: "\u2A26", plustwo: "\u2A27", pm: "\xB1", Poincareplane: "\u210C", pointint: "\u2A15", popf: "\u{1D561}", Popf: "\u2119", pound: "\xA3", prap: "\u2AB7", Pr: "\u2ABB", pr: "\u227A", prcue: "\u227C", precapprox: "\u2AB7", prec: "\u227A", preccurlyeq: "\u227C", Precedes: "\u227A", PrecedesEqual: "\u2AAF", PrecedesSlantEqual: "\u227C", PrecedesTilde: "\u227E", preceq: "\u2AAF", precnapprox: "\u2AB9", precneqq: "\u2AB5", precnsim: "\u22E8", pre: "\u2AAF", prE: "\u2AB3", precsim: "\u227E", prime: "\u2032", Prime: "\u2033", primes: "\u2119", prnap: "\u2AB9", prnE: "\u2AB5", prnsim: "\u22E8", prod: "\u220F", Product: "\u220F", profalar: "\u232E", profline: "\u2312", profsurf: "\u2313", prop: "\u221D", Proportional: "\u221D", Proportion: "\u2237", propto: "\u221D", prsim: "\u227E", prurel: "\u22B0", Pscr: "\u{1D4AB}", pscr: "\u{1D4C5}", Psi: "\u03A8", psi: "\u03C8", puncsp: "\u2008", Qfr: "\u{1D514}", qfr: "\u{1D52E}", qint: "\u2A0C", qopf: "\u{1D562}", Qopf: "\u211A", qprime: "\u2057", Qscr: "\u{1D4AC}", qscr: "\u{1D4C6}", quaternions: "\u210D", quatint: "\u2A16", quest: "?", questeq: "\u225F", quot: '"', QUOT: '"', rAarr: "\u21DB", race: "\u223D\u0331", Racute: "\u0154", racute: "\u0155", radic: "\u221A", raemptyv: "\u29B3", rang: "\u27E9", Rang: "\u27EB", rangd: "\u2992", range: "\u29A5", rangle: "\u27E9", raquo: "\xBB", rarrap: "\u2975", rarrb: "\u21E5", rarrbfs: "\u2920", rarrc: "\u2933", rarr: "\u2192", Rarr: "\u21A0", rArr: "\u21D2", rarrfs: "\u291E", rarrhk: "\u21AA", rarrlp: "\u21AC", rarrpl: "\u2945", rarrsim: "\u2974", Rarrtl: "\u2916", rarrtl: "\u21A3", rarrw: "\u219D", ratail: "\u291A", rAtail: "\u291C", ratio: "\u2236", rationals: "\u211A", rbarr: "\u290D", rBarr: "\u290F", RBarr: "\u2910", rbbrk: "\u2773", rbrace: "}", rbrack: "]", rbrke: "\u298C", rbrksld: "\u298E", rbrkslu: "\u2990", Rcaron: "\u0158", rcaron: "\u0159", Rcedil: "\u0156", rcedil: "\u0157", rceil: "\u2309", rcub: "}", Rcy: "\u0420", rcy: "\u0440", rdca: "\u2937", rdldhar: "\u2969", rdquo: "\u201D", rdquor: "\u201D", rdsh: "\u21B3", real: "\u211C", realine: "\u211B", realpart: "\u211C", reals: "\u211D", Re: "\u211C", rect: "\u25AD", reg: "\xAE", REG: "\xAE", ReverseElement: "\u220B", ReverseEquilibrium: "\u21CB", ReverseUpEquilibrium: "\u296F", rfisht: "\u297D", rfloor: "\u230B", rfr: "\u{1D52F}", Rfr: "\u211C", rHar: "\u2964", rhard: "\u21C1", rharu: "\u21C0", rharul: "\u296C", Rho: "\u03A1", rho: "\u03C1", rhov: "\u03F1", RightAngleBracket: "\u27E9", RightArrowBar: "\u21E5", rightarrow: "\u2192", RightArrow: "\u2192", Rightarrow: "\u21D2", RightArrowLeftArrow: "\u21C4", rightarrowtail: "\u21A3", RightCeiling: "\u2309", RightDoubleBracket: "\u27E7", RightDownTeeVector: "\u295D", RightDownVectorBar: "\u2955", RightDownVector: "\u21C2", RightFloor: "\u230B", rightharpoondown: "\u21C1", rightharpoonup: "\u21C0", rightleftarrows: "\u21C4", rightleftharpoons: "\u21CC", rightrightarrows: "\u21C9", rightsquigarrow: "\u219D", RightTeeArrow: "\u21A6", RightTee: "\u22A2", RightTeeVector: "\u295B", rightthreetimes: "\u22CC", RightTriangleBar: "\u29D0", RightTriangle: "\u22B3", RightTriangleEqual: "\u22B5", RightUpDownVector: "\u294F", RightUpTeeVector: "\u295C", RightUpVectorBar: "\u2954", RightUpVector: "\u21BE", RightVectorBar: "\u2953", RightVector: "\u21C0", ring: "\u02DA", risingdotseq: "\u2253", rlarr: "\u21C4", rlhar: "\u21CC", rlm: "\u200F", rmoustache: "\u23B1", rmoust: "\u23B1", rnmid: "\u2AEE", roang: "\u27ED", roarr: "\u21FE", robrk: "\u27E7", ropar: "\u2986", ropf: "\u{1D563}", Ropf: "\u211D", roplus: "\u2A2E", rotimes: "\u2A35", RoundImplies: "\u2970", rpar: ")", rpargt: "\u2994", rppolint: "\u2A12", rrarr: "\u21C9", Rrightarrow: "\u21DB", rsaquo: "\u203A", rscr: "\u{1D4C7}", Rscr: "\u211B", rsh: "\u21B1", Rsh: "\u21B1", rsqb: "]", rsquo: "\u2019", rsquor: "\u2019", rthree: "\u22CC", rtimes: "\u22CA", rtri: "\u25B9", rtrie: "\u22B5", rtrif: "\u25B8", rtriltri: "\u29CE", RuleDelayed: "\u29F4", ruluhar: "\u2968", rx: "\u211E", Sacute: "\u015A", sacute: "\u015B", sbquo: "\u201A", scap: "\u2AB8", Scaron: "\u0160", scaron: "\u0161", Sc: "\u2ABC", sc: "\u227B", sccue: "\u227D", sce: "\u2AB0", scE: "\u2AB4", Scedil: "\u015E", scedil: "\u015F", Scirc: "\u015C", scirc: "\u015D", scnap: "\u2ABA", scnE: "\u2AB6", scnsim: "\u22E9", scpolint: "\u2A13", scsim: "\u227F", Scy: "\u0421", scy: "\u0441", sdotb: "\u22A1", sdot: "\u22C5", sdote: "\u2A66", searhk: "\u2925", searr: "\u2198", seArr: "\u21D8", searrow: "\u2198", sect: "\xA7", semi: ";", seswar: "\u2929", setminus: "\u2216", setmn: "\u2216", sext: "\u2736", Sfr: "\u{1D516}", sfr: "\u{1D530}", sfrown: "\u2322", sharp: "\u266F", SHCHcy: "\u0429", shchcy: "\u0449", SHcy: "\u0428", shcy: "\u0448", ShortDownArrow: "\u2193", ShortLeftArrow: "\u2190", shortmid: "\u2223", shortparallel: "\u2225", ShortRightArrow: "\u2192", ShortUpArrow: "\u2191", shy: "\xAD", Sigma: "\u03A3", sigma: "\u03C3", sigmaf: "\u03C2", sigmav: "\u03C2", sim: "\u223C", simdot: "\u2A6A", sime: "\u2243", simeq: "\u2243", simg: "\u2A9E", simgE: "\u2AA0", siml: "\u2A9D", simlE: "\u2A9F", simne: "\u2246", simplus: "\u2A24", simrarr: "\u2972", slarr: "\u2190", SmallCircle: "\u2218", smallsetminus: "\u2216", smashp: "\u2A33", smeparsl: "\u29E4", smid: "\u2223", smile: "\u2323", smt: "\u2AAA", smte: "\u2AAC", smtes: "\u2AAC\uFE00", SOFTcy: "\u042C", softcy: "\u044C", solbar: "\u233F", solb: "\u29C4", sol: "/", Sopf: "\u{1D54A}", sopf: "\u{1D564}", spades: "\u2660", spadesuit: "\u2660", spar: "\u2225", sqcap: "\u2293", sqcaps: "\u2293\uFE00", sqcup: "\u2294", sqcups: "\u2294\uFE00", Sqrt: "\u221A", sqsub: "\u228F", sqsube: "\u2291", sqsubset: "\u228F", sqsubseteq: "\u2291", sqsup: "\u2290", sqsupe: "\u2292", sqsupset: "\u2290", sqsupseteq: "\u2292", square: "\u25A1", Square: "\u25A1", SquareIntersection: "\u2293", SquareSubset: "\u228F", SquareSubsetEqual: "\u2291", SquareSuperset: "\u2290", SquareSupersetEqual: "\u2292", SquareUnion: "\u2294", squarf: "\u25AA", squ: "\u25A1", squf: "\u25AA", srarr: "\u2192", Sscr: "\u{1D4AE}", sscr: "\u{1D4C8}", ssetmn: "\u2216", ssmile: "\u2323", sstarf: "\u22C6", Star: "\u22C6", star: "\u2606", starf: "\u2605", straightepsilon: "\u03F5", straightphi: "\u03D5", strns: "\xAF", sub: "\u2282", Sub: "\u22D0", subdot: "\u2ABD", subE: "\u2AC5", sube: "\u2286", subedot: "\u2AC3", submult: "\u2AC1", subnE: "\u2ACB", subne: "\u228A", subplus: "\u2ABF", subrarr: "\u2979", subset: "\u2282", Subset: "\u22D0", subseteq: "\u2286", subseteqq: "\u2AC5", SubsetEqual: "\u2286", subsetneq: "\u228A", subsetneqq: "\u2ACB", subsim: "\u2AC7", subsub: "\u2AD5", subsup: "\u2AD3", succapprox: "\u2AB8", succ: "\u227B", succcurlyeq: "\u227D", Succeeds: "\u227B", SucceedsEqual: "\u2AB0", SucceedsSlantEqual: "\u227D", SucceedsTilde: "\u227F", succeq: "\u2AB0", succnapprox: "\u2ABA", succneqq: "\u2AB6", succnsim: "\u22E9", succsim: "\u227F", SuchThat: "\u220B", sum: "\u2211", Sum: "\u2211", sung: "\u266A", sup1: "\xB9", sup2: "\xB2", sup3: "\xB3", sup: "\u2283", Sup: "\u22D1", supdot: "\u2ABE", supdsub: "\u2AD8", supE: "\u2AC6", supe: "\u2287", supedot: "\u2AC4", Superset: "\u2283", SupersetEqual: "\u2287", suphsol: "\u27C9", suphsub: "\u2AD7", suplarr: "\u297B", supmult: "\u2AC2", supnE: "\u2ACC", supne: "\u228B", supplus: "\u2AC0", supset: "\u2283", Supset: "\u22D1", supseteq: "\u2287", supseteqq: "\u2AC6", supsetneq: "\u228B", supsetneqq: "\u2ACC", supsim: "\u2AC8", supsub: "\u2AD4", supsup: "\u2AD6", swarhk: "\u2926", swarr: "\u2199", swArr: "\u21D9", swarrow: "\u2199", swnwar: "\u292A", szlig: "\xDF", Tab: " ", target: "\u2316", Tau: "\u03A4", tau: "\u03C4", tbrk: "\u23B4", Tcaron: "\u0164", tcaron: "\u0165", Tcedil: "\u0162", tcedil: "\u0163", Tcy: "\u0422", tcy: "\u0442", tdot: "\u20DB", telrec: "\u2315", Tfr: "\u{1D517}", tfr: "\u{1D531}", there4: "\u2234", therefore: "\u2234", Therefore: "\u2234", Theta: "\u0398", theta: "\u03B8", thetasym: "\u03D1", thetav: "\u03D1", thickapprox: "\u2248", thicksim: "\u223C", ThickSpace: "\u205F\u200A", ThinSpace: "\u2009", thinsp: "\u2009", thkap: "\u2248", thksim: "\u223C", THORN: "\xDE", thorn: "\xFE", tilde: "\u02DC", Tilde: "\u223C", TildeEqual: "\u2243", TildeFullEqual: "\u2245", TildeTilde: "\u2248", timesbar: "\u2A31", timesb: "\u22A0", times: "\xD7", timesd: "\u2A30", tint: "\u222D", toea: "\u2928", topbot: "\u2336", topcir: "\u2AF1", top: "\u22A4", Topf: "\u{1D54B}", topf: "\u{1D565}", topfork: "\u2ADA", tosa: "\u2929", tprime: "\u2034", trade: "\u2122", TRADE: "\u2122", triangle: "\u25B5", triangledown: "\u25BF", triangleleft: "\u25C3", trianglelefteq: "\u22B4", triangleq: "\u225C", triangleright: "\u25B9", trianglerighteq: "\u22B5", tridot: "\u25EC", trie: "\u225C", triminus: "\u2A3A", TripleDot: "\u20DB", triplus: "\u2A39", trisb: "\u29CD", tritime: "\u2A3B", trpezium: "\u23E2", Tscr: "\u{1D4AF}", tscr: "\u{1D4C9}", TScy: "\u0426", tscy: "\u0446", TSHcy: "\u040B", tshcy: "\u045B", Tstrok: "\u0166", tstrok: "\u0167", twixt: "\u226C", twoheadleftarrow: "\u219E", twoheadrightarrow: "\u21A0", Uacute: "\xDA", uacute: "\xFA", uarr: "\u2191", Uarr: "\u219F", uArr: "\u21D1", Uarrocir: "\u2949", Ubrcy: "\u040E", ubrcy: "\u045E", Ubreve: "\u016C", ubreve: "\u016D", Ucirc: "\xDB", ucirc: "\xFB", Ucy: "\u0423", ucy: "\u0443", udarr: "\u21C5", Udblac: "\u0170", udblac: "\u0171", udhar: "\u296E", ufisht: "\u297E", Ufr: "\u{1D518}", ufr: "\u{1D532}", Ugrave: "\xD9", ugrave: "\xF9", uHar: "\u2963", uharl: "\u21BF", uharr: "\u21BE", uhblk: "\u2580", ulcorn: "\u231C", ulcorner: "\u231C", ulcrop: "\u230F", ultri: "\u25F8", Umacr: "\u016A", umacr: "\u016B", uml: "\xA8", UnderBar: "_", UnderBrace: "\u23DF", UnderBracket: "\u23B5", UnderParenthesis: "\u23DD", Union: "\u22C3", UnionPlus: "\u228E", Uogon: "\u0172", uogon: "\u0173", Uopf: "\u{1D54C}", uopf: "\u{1D566}", UpArrowBar: "\u2912", uparrow: "\u2191", UpArrow: "\u2191", Uparrow: "\u21D1", UpArrowDownArrow: "\u21C5", updownarrow: "\u2195", UpDownArrow: "\u2195", Updownarrow: "\u21D5", UpEquilibrium: "\u296E", upharpoonleft: "\u21BF", upharpoonright: "\u21BE", uplus: "\u228E", UpperLeftArrow: "\u2196", UpperRightArrow: "\u2197", upsi: "\u03C5", Upsi: "\u03D2", upsih: "\u03D2", Upsilon: "\u03A5", upsilon: "\u03C5", UpTeeArrow: "\u21A5", UpTee: "\u22A5", upuparrows: "\u21C8", urcorn: "\u231D", urcorner: "\u231D", urcrop: "\u230E", Uring: "\u016E", uring: "\u016F", urtri: "\u25F9", Uscr: "\u{1D4B0}", uscr: "\u{1D4CA}", utdot: "\u22F0", Utilde: "\u0168", utilde: "\u0169", utri: "\u25B5", utrif: "\u25B4", uuarr: "\u21C8", Uuml: "\xDC", uuml: "\xFC", uwangle: "\u29A7", vangrt: "\u299C", varepsilon: "\u03F5", varkappa: "\u03F0", varnothing: "\u2205", varphi: "\u03D5", varpi: "\u03D6", varpropto: "\u221D", varr: "\u2195", vArr: "\u21D5", varrho: "\u03F1", varsigma: "\u03C2", varsubsetneq: "\u228A\uFE00", varsubsetneqq: "\u2ACB\uFE00", varsupsetneq: "\u228B\uFE00", varsupsetneqq: "\u2ACC\uFE00", vartheta: "\u03D1", vartriangleleft: "\u22B2", vartriangleright: "\u22B3", vBar: "\u2AE8", Vbar: "\u2AEB", vBarv: "\u2AE9", Vcy: "\u0412", vcy: "\u0432", vdash: "\u22A2", vDash: "\u22A8", Vdash: "\u22A9", VDash: "\u22AB", Vdashl: "\u2AE6", veebar: "\u22BB", vee: "\u2228", Vee: "\u22C1", veeeq: "\u225A", vellip: "\u22EE", verbar: "|", Verbar: "\u2016", vert: "|", Vert: "\u2016", VerticalBar: "\u2223", VerticalLine: "|", VerticalSeparator: "\u2758", VerticalTilde: "\u2240", VeryThinSpace: "\u200A", Vfr: "\u{1D519}", vfr: "\u{1D533}", vltri: "\u22B2", vnsub: "\u2282\u20D2", vnsup: "\u2283\u20D2", Vopf: "\u{1D54D}", vopf: "\u{1D567}", vprop: "\u221D", vrtri: "\u22B3", Vscr: "\u{1D4B1}", vscr: "\u{1D4CB}", vsubnE: "\u2ACB\uFE00", vsubne: "\u228A\uFE00", vsupnE: "\u2ACC\uFE00", vsupne: "\u228B\uFE00", Vvdash: "\u22AA", vzigzag: "\u299A", Wcirc: "\u0174", wcirc: "\u0175", wedbar: "\u2A5F", wedge: "\u2227", Wedge: "\u22C0", wedgeq: "\u2259", weierp: "\u2118", Wfr: "\u{1D51A}", wfr: "\u{1D534}", Wopf: "\u{1D54E}", wopf: "\u{1D568}", wp: "\u2118", wr: "\u2240", wreath: "\u2240", Wscr: "\u{1D4B2}", wscr: "\u{1D4CC}", xcap: "\u22C2", xcirc: "\u25EF", xcup: "\u22C3", xdtri: "\u25BD", Xfr: "\u{1D51B}", xfr: "\u{1D535}", xharr: "\u27F7", xhArr: "\u27FA", Xi: "\u039E", xi: "\u03BE", xlarr: "\u27F5", xlArr: "\u27F8", xmap: "\u27FC", xnis: "\u22FB", xodot: "\u2A00", Xopf: "\u{1D54F}", xopf: "\u{1D569}", xoplus: "\u2A01", xotime: "\u2A02", xrarr: "\u27F6", xrArr: "\u27F9", Xscr: "\u{1D4B3}", xscr: "\u{1D4CD}", xsqcup: "\u2A06", xuplus: "\u2A04", xutri: "\u25B3", xvee: "\u22C1", xwedge: "\u22C0", Yacute: "\xDD", yacute: "\xFD", YAcy: "\u042F", yacy: "\u044F", Ycirc: "\u0176", ycirc: "\u0177", Ycy: "\u042B", ycy: "\u044B", yen: "\xA5", Yfr: "\u{1D51C}", yfr: "\u{1D536}", YIcy: "\u0407", yicy: "\u0457", Yopf: "\u{1D550}", yopf: "\u{1D56A}", Yscr: "\u{1D4B4}", yscr: "\u{1D4CE}", YUcy: "\u042E", yucy: "\u044E", yuml: "\xFF", Yuml: "\u0178", Zacute: "\u0179", zacute: "\u017A", Zcaron: "\u017D", zcaron: "\u017E", Zcy: "\u0417", zcy: "\u0437", Zdot: "\u017B", zdot: "\u017C", zeetrf: "\u2128", ZeroWidthSpace: "\u200B", Zeta: "\u0396", zeta: "\u03B6", zfr: "\u{1D537}", Zfr: "\u2128", ZHcy: "\u0416", zhcy: "\u0436", zigrarr: "\u21DD", zopf: "\u{1D56B}", Zopf: "\u2124", Zscr: "\u{1D4B5}", zscr: "\u{1D4CF}", zwj: "\u200D", zwnj: "\u200C" };
1156
+ var Ws = /^#[xX]([A-Fa-f0-9]+)$/;
1157
+ var js = /^#([0-9]+)$/;
1158
+ var Qs = /^([A-Za-z0-9]+)$/;
1159
+ var ur = function() {
1160
+ function e5(t) {
1161
+ this.named = t;
1162
+ }
1163
+ return e5.prototype.parse = function(t) {
1164
+ if (t) {
1165
+ var r = t.match(Ws);
1166
+ if (r) return String.fromCharCode(parseInt(r[1], 16));
1167
+ if (r = t.match(js), r) return String.fromCharCode(parseInt(r[1], 10));
1168
+ if (r = t.match(Qs), r) return this.named[r[1]];
1169
+ }
1170
+ }, e5;
1171
+ }();
1172
+ var Js = /[\t\n\f ]/;
1173
+ var $s = /[A-Za-z]/;
1174
+ var Xs = /\r\n?/g;
1175
+ function _(e5) {
1176
+ return Js.test(e5);
1177
+ }
1178
+ function wn(e5) {
1179
+ return $s.test(e5);
1180
+ }
1181
+ function Zs(e5) {
1182
+ return e5.replace(Xs, `
1183
+ `);
1184
+ }
1185
+ var hr = function() {
1186
+ function e5(t, r, n) {
1187
+ n === void 0 && (n = "precompile"), this.delegate = t, this.entityParser = r, this.mode = n, this.state = "beforeData", this.line = -1, this.column = -1, this.input = "", this.index = -1, this.tagNameBuffer = "", this.states = { beforeData: function() {
1188
+ var s = this.peek();
1189
+ if (s === "<" && !this.isIgnoredEndTag()) this.transitionTo("tagOpen"), this.markTagStart(), this.consume();
1190
+ else {
1191
+ if (this.mode === "precompile" && s === `
1192
+ `) {
1193
+ var i = this.tagNameBuffer.toLowerCase();
1194
+ (i === "pre" || i === "textarea") && this.consume();
1195
+ }
1196
+ this.transitionTo("data"), this.delegate.beginData();
1197
+ }
1198
+ }, data: function() {
1199
+ var s = this.peek(), i = this.tagNameBuffer;
1200
+ s === "<" && !this.isIgnoredEndTag() ? (this.delegate.finishData(), this.transitionTo("tagOpen"), this.markTagStart(), this.consume()) : s === "&" && i !== "script" && i !== "style" ? (this.consume(), this.delegate.appendToData(this.consumeCharRef() || "&")) : (this.consume(), this.delegate.appendToData(s));
1201
+ }, tagOpen: function() {
1202
+ var s = this.consume();
1203
+ s === "!" ? this.transitionTo("markupDeclarationOpen") : s === "/" ? this.transitionTo("endTagOpen") : (s === "@" || s === ":" || wn(s)) && (this.transitionTo("tagName"), this.tagNameBuffer = "", this.delegate.beginStartTag(), this.appendToTagName(s));
1204
+ }, markupDeclarationOpen: function() {
1205
+ var s = this.consume();
1206
+ if (s === "-" && this.peek() === "-") this.consume(), this.transitionTo("commentStart"), this.delegate.beginComment();
1207
+ else {
1208
+ var i = s.toUpperCase() + this.input.substring(this.index, this.index + 6).toUpperCase();
1209
+ i === "DOCTYPE" && (this.consume(), this.consume(), this.consume(), this.consume(), this.consume(), this.consume(), this.transitionTo("doctype"), this.delegate.beginDoctype && this.delegate.beginDoctype());
1210
+ }
1211
+ }, doctype: function() {
1212
+ var s = this.consume();
1213
+ _(s) && this.transitionTo("beforeDoctypeName");
1214
+ }, beforeDoctypeName: function() {
1215
+ var s = this.consume();
1216
+ _(s) || (this.transitionTo("doctypeName"), this.delegate.appendToDoctypeName && this.delegate.appendToDoctypeName(s.toLowerCase()));
1217
+ }, doctypeName: function() {
1218
+ var s = this.consume();
1219
+ _(s) ? this.transitionTo("afterDoctypeName") : s === ">" ? (this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData")) : this.delegate.appendToDoctypeName && this.delegate.appendToDoctypeName(s.toLowerCase());
1220
+ }, afterDoctypeName: function() {
1221
+ var s = this.consume();
1222
+ if (!_(s)) if (s === ">") this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData");
1223
+ else {
1224
+ var i = s.toUpperCase() + this.input.substring(this.index, this.index + 5).toUpperCase(), a = i.toUpperCase() === "PUBLIC", o = i.toUpperCase() === "SYSTEM";
1225
+ (a || o) && (this.consume(), this.consume(), this.consume(), this.consume(), this.consume(), this.consume()), a ? this.transitionTo("afterDoctypePublicKeyword") : o && this.transitionTo("afterDoctypeSystemKeyword");
1226
+ }
1227
+ }, afterDoctypePublicKeyword: function() {
1228
+ var s = this.peek();
1229
+ _(s) ? (this.transitionTo("beforeDoctypePublicIdentifier"), this.consume()) : s === '"' ? (this.transitionTo("doctypePublicIdentifierDoubleQuoted"), this.consume()) : s === "'" ? (this.transitionTo("doctypePublicIdentifierSingleQuoted"), this.consume()) : s === ">" && (this.consume(), this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData"));
1230
+ }, doctypePublicIdentifierDoubleQuoted: function() {
1231
+ var s = this.consume();
1232
+ s === '"' ? this.transitionTo("afterDoctypePublicIdentifier") : s === ">" ? (this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData")) : this.delegate.appendToDoctypePublicIdentifier && this.delegate.appendToDoctypePublicIdentifier(s);
1233
+ }, doctypePublicIdentifierSingleQuoted: function() {
1234
+ var s = this.consume();
1235
+ s === "'" ? this.transitionTo("afterDoctypePublicIdentifier") : s === ">" ? (this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData")) : this.delegate.appendToDoctypePublicIdentifier && this.delegate.appendToDoctypePublicIdentifier(s);
1236
+ }, afterDoctypePublicIdentifier: function() {
1237
+ var s = this.consume();
1238
+ _(s) ? this.transitionTo("betweenDoctypePublicAndSystemIdentifiers") : s === ">" ? (this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData")) : s === '"' ? this.transitionTo("doctypeSystemIdentifierDoubleQuoted") : s === "'" && this.transitionTo("doctypeSystemIdentifierSingleQuoted");
1239
+ }, betweenDoctypePublicAndSystemIdentifiers: function() {
1240
+ var s = this.consume();
1241
+ _(s) || (s === ">" ? (this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData")) : s === '"' ? this.transitionTo("doctypeSystemIdentifierDoubleQuoted") : s === "'" && this.transitionTo("doctypeSystemIdentifierSingleQuoted"));
1242
+ }, doctypeSystemIdentifierDoubleQuoted: function() {
1243
+ var s = this.consume();
1244
+ s === '"' ? this.transitionTo("afterDoctypeSystemIdentifier") : s === ">" ? (this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData")) : this.delegate.appendToDoctypeSystemIdentifier && this.delegate.appendToDoctypeSystemIdentifier(s);
1245
+ }, doctypeSystemIdentifierSingleQuoted: function() {
1246
+ var s = this.consume();
1247
+ s === "'" ? this.transitionTo("afterDoctypeSystemIdentifier") : s === ">" ? (this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData")) : this.delegate.appendToDoctypeSystemIdentifier && this.delegate.appendToDoctypeSystemIdentifier(s);
1248
+ }, afterDoctypeSystemIdentifier: function() {
1249
+ var s = this.consume();
1250
+ _(s) || s === ">" && (this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData"));
1251
+ }, commentStart: function() {
1252
+ var s = this.consume();
1253
+ s === "-" ? this.transitionTo("commentStartDash") : s === ">" ? (this.delegate.finishComment(), this.transitionTo("beforeData")) : (this.delegate.appendToCommentData(s), this.transitionTo("comment"));
1254
+ }, commentStartDash: function() {
1255
+ var s = this.consume();
1256
+ s === "-" ? this.transitionTo("commentEnd") : s === ">" ? (this.delegate.finishComment(), this.transitionTo("beforeData")) : (this.delegate.appendToCommentData("-"), this.transitionTo("comment"));
1257
+ }, comment: function() {
1258
+ var s = this.consume();
1259
+ s === "-" ? this.transitionTo("commentEndDash") : this.delegate.appendToCommentData(s);
1260
+ }, commentEndDash: function() {
1261
+ var s = this.consume();
1262
+ s === "-" ? this.transitionTo("commentEnd") : (this.delegate.appendToCommentData("-" + s), this.transitionTo("comment"));
1263
+ }, commentEnd: function() {
1264
+ var s = this.consume();
1265
+ s === ">" ? (this.delegate.finishComment(), this.transitionTo("beforeData")) : (this.delegate.appendToCommentData("--" + s), this.transitionTo("comment"));
1266
+ }, tagName: function() {
1267
+ var s = this.consume();
1268
+ _(s) ? this.transitionTo("beforeAttributeName") : s === "/" ? this.transitionTo("selfClosingStartTag") : s === ">" ? (this.delegate.finishTag(), this.transitionTo("beforeData")) : this.appendToTagName(s);
1269
+ }, endTagName: function() {
1270
+ var s = this.consume();
1271
+ _(s) ? (this.transitionTo("beforeAttributeName"), this.tagNameBuffer = "") : s === "/" ? (this.transitionTo("selfClosingStartTag"), this.tagNameBuffer = "") : s === ">" ? (this.delegate.finishTag(), this.transitionTo("beforeData"), this.tagNameBuffer = "") : this.appendToTagName(s);
1272
+ }, beforeAttributeName: function() {
1273
+ var s = this.peek();
1274
+ if (_(s)) {
1275
+ this.consume();
1276
+ return;
1277
+ } else s === "/" ? (this.transitionTo("selfClosingStartTag"), this.consume()) : s === ">" ? (this.consume(), this.delegate.finishTag(), this.transitionTo("beforeData")) : s === "=" ? (this.delegate.reportSyntaxError("attribute name cannot start with equals sign"), this.transitionTo("attributeName"), this.delegate.beginAttribute(), this.consume(), this.delegate.appendToAttributeName(s)) : (this.transitionTo("attributeName"), this.delegate.beginAttribute());
1278
+ }, attributeName: function() {
1279
+ var s = this.peek();
1280
+ _(s) ? (this.transitionTo("afterAttributeName"), this.consume()) : s === "/" ? (this.delegate.beginAttributeValue(false), this.delegate.finishAttributeValue(), this.consume(), this.transitionTo("selfClosingStartTag")) : s === "=" ? (this.transitionTo("beforeAttributeValue"), this.consume()) : s === ">" ? (this.delegate.beginAttributeValue(false), this.delegate.finishAttributeValue(), this.consume(), this.delegate.finishTag(), this.transitionTo("beforeData")) : s === '"' || s === "'" || s === "<" ? (this.delegate.reportSyntaxError(s + " is not a valid character within attribute names"), this.consume(), this.delegate.appendToAttributeName(s)) : (this.consume(), this.delegate.appendToAttributeName(s));
1281
+ }, afterAttributeName: function() {
1282
+ var s = this.peek();
1283
+ if (_(s)) {
1284
+ this.consume();
1285
+ return;
1286
+ } else s === "/" ? (this.delegate.beginAttributeValue(false), this.delegate.finishAttributeValue(), this.consume(), this.transitionTo("selfClosingStartTag")) : s === "=" ? (this.consume(), this.transitionTo("beforeAttributeValue")) : s === ">" ? (this.delegate.beginAttributeValue(false), this.delegate.finishAttributeValue(), this.consume(), this.delegate.finishTag(), this.transitionTo("beforeData")) : (this.delegate.beginAttributeValue(false), this.delegate.finishAttributeValue(), this.transitionTo("attributeName"), this.delegate.beginAttribute(), this.consume(), this.delegate.appendToAttributeName(s));
1287
+ }, beforeAttributeValue: function() {
1288
+ var s = this.peek();
1289
+ _(s) ? this.consume() : s === '"' ? (this.transitionTo("attributeValueDoubleQuoted"), this.delegate.beginAttributeValue(true), this.consume()) : s === "'" ? (this.transitionTo("attributeValueSingleQuoted"), this.delegate.beginAttributeValue(true), this.consume()) : s === ">" ? (this.delegate.beginAttributeValue(false), this.delegate.finishAttributeValue(), this.consume(), this.delegate.finishTag(), this.transitionTo("beforeData")) : (this.transitionTo("attributeValueUnquoted"), this.delegate.beginAttributeValue(false), this.consume(), this.delegate.appendToAttributeValue(s));
1290
+ }, attributeValueDoubleQuoted: function() {
1291
+ var s = this.consume();
1292
+ s === '"' ? (this.delegate.finishAttributeValue(), this.transitionTo("afterAttributeValueQuoted")) : s === "&" ? this.delegate.appendToAttributeValue(this.consumeCharRef() || "&") : this.delegate.appendToAttributeValue(s);
1293
+ }, attributeValueSingleQuoted: function() {
1294
+ var s = this.consume();
1295
+ s === "'" ? (this.delegate.finishAttributeValue(), this.transitionTo("afterAttributeValueQuoted")) : s === "&" ? this.delegate.appendToAttributeValue(this.consumeCharRef() || "&") : this.delegate.appendToAttributeValue(s);
1296
+ }, attributeValueUnquoted: function() {
1297
+ var s = this.peek();
1298
+ _(s) ? (this.delegate.finishAttributeValue(), this.consume(), this.transitionTo("beforeAttributeName")) : s === "/" ? (this.delegate.finishAttributeValue(), this.consume(), this.transitionTo("selfClosingStartTag")) : s === "&" ? (this.consume(), this.delegate.appendToAttributeValue(this.consumeCharRef() || "&")) : s === ">" ? (this.delegate.finishAttributeValue(), this.consume(), this.delegate.finishTag(), this.transitionTo("beforeData")) : (this.consume(), this.delegate.appendToAttributeValue(s));
1299
+ }, afterAttributeValueQuoted: function() {
1300
+ var s = this.peek();
1301
+ _(s) ? (this.consume(), this.transitionTo("beforeAttributeName")) : s === "/" ? (this.consume(), this.transitionTo("selfClosingStartTag")) : s === ">" ? (this.consume(), this.delegate.finishTag(), this.transitionTo("beforeData")) : this.transitionTo("beforeAttributeName");
1302
+ }, selfClosingStartTag: function() {
1303
+ var s = this.peek();
1304
+ s === ">" ? (this.consume(), this.delegate.markTagAsSelfClosing(), this.delegate.finishTag(), this.transitionTo("beforeData")) : this.transitionTo("beforeAttributeName");
1305
+ }, endTagOpen: function() {
1306
+ var s = this.consume();
1307
+ (s === "@" || s === ":" || wn(s)) && (this.transitionTo("endTagName"), this.tagNameBuffer = "", this.delegate.beginEndTag(), this.appendToTagName(s));
1308
+ } }, this.reset();
1309
+ }
1310
+ return e5.prototype.reset = function() {
1311
+ this.transitionTo("beforeData"), this.input = "", this.tagNameBuffer = "", this.index = 0, this.line = 1, this.column = 0, this.delegate.reset();
1312
+ }, e5.prototype.transitionTo = function(t) {
1313
+ this.state = t;
1314
+ }, e5.prototype.tokenize = function(t) {
1315
+ this.reset(), this.tokenizePart(t), this.tokenizeEOF();
1316
+ }, e5.prototype.tokenizePart = function(t) {
1317
+ for (this.input += Zs(t); this.index < this.input.length; ) {
1318
+ var r = this.states[this.state];
1319
+ if (r !== void 0) r.call(this);
1320
+ else throw new Error("unhandled state " + this.state);
1321
+ }
1322
+ }, e5.prototype.tokenizeEOF = function() {
1323
+ this.flushData();
1324
+ }, e5.prototype.flushData = function() {
1325
+ this.state === "data" && (this.delegate.finishData(), this.transitionTo("beforeData"));
1326
+ }, e5.prototype.peek = function() {
1327
+ return this.input.charAt(this.index);
1328
+ }, e5.prototype.consume = function() {
1329
+ var t = this.peek();
1330
+ return this.index++, t === `
1331
+ ` ? (this.line++, this.column = 0) : this.column++, t;
1332
+ }, e5.prototype.consumeCharRef = function() {
1333
+ var t = this.input.indexOf(";", this.index);
1334
+ if (t !== -1) {
1335
+ var r = this.input.slice(this.index, t), n = this.entityParser.parse(r);
1336
+ if (n) {
1337
+ for (var s = r.length; s; ) this.consume(), s--;
1338
+ return this.consume(), n;
1339
+ }
1340
+ }
1341
+ }, e5.prototype.markTagStart = function() {
1342
+ this.delegate.tagOpen();
1343
+ }, e5.prototype.appendToTagName = function(t) {
1344
+ this.tagNameBuffer += t, this.delegate.appendToTagName(t);
1345
+ }, e5.prototype.isIgnoredEndTag = function() {
1346
+ var t = this.tagNameBuffer;
1347
+ return t === "title" && this.input.substring(this.index, this.index + 8) !== "</title>" || t === "style" && this.input.substring(this.index, this.index + 8) !== "</style>" || t === "script" && this.input.substring(this.index, this.index + 9) !== "</script>";
1348
+ }, e5;
1349
+ }();
1350
+ var Ka = function() {
1351
+ function e5(t, r) {
1352
+ r === void 0 && (r = {}), this.options = r, this.token = null, this.startLine = 1, this.startColumn = 0, this.tokens = [], this.tokenizer = new hr(this, t, r.mode), this._currentAttribute = void 0;
1353
+ }
1354
+ return e5.prototype.tokenize = function(t) {
1355
+ return this.tokens = [], this.tokenizer.tokenize(t), this.tokens;
1356
+ }, e5.prototype.tokenizePart = function(t) {
1357
+ return this.tokens = [], this.tokenizer.tokenizePart(t), this.tokens;
1358
+ }, e5.prototype.tokenizeEOF = function() {
1359
+ return this.tokens = [], this.tokenizer.tokenizeEOF(), this.tokens[0];
1360
+ }, e5.prototype.reset = function() {
1361
+ this.token = null, this.startLine = 1, this.startColumn = 0;
1362
+ }, e5.prototype.current = function() {
1363
+ var t = this.token;
1364
+ if (t === null) throw new Error("token was unexpectedly null");
1365
+ if (arguments.length === 0) return t;
1366
+ for (var r = 0; r < arguments.length; r++) if (t.type === arguments[r]) return t;
1367
+ throw new Error("token type was unexpectedly " + t.type);
1368
+ }, e5.prototype.push = function(t) {
1369
+ this.token = t, this.tokens.push(t);
1370
+ }, e5.prototype.currentAttribute = function() {
1371
+ return this._currentAttribute;
1372
+ }, e5.prototype.addLocInfo = function() {
1373
+ this.options.loc && (this.current().loc = { start: { line: this.startLine, column: this.startColumn }, end: { line: this.tokenizer.line, column: this.tokenizer.column } }), this.startLine = this.tokenizer.line, this.startColumn = this.tokenizer.column;
1374
+ }, e5.prototype.beginDoctype = function() {
1375
+ this.push({ type: "Doctype", name: "" });
1376
+ }, e5.prototype.appendToDoctypeName = function(t) {
1377
+ this.current("Doctype").name += t;
1378
+ }, e5.prototype.appendToDoctypePublicIdentifier = function(t) {
1379
+ var r = this.current("Doctype");
1380
+ r.publicIdentifier === void 0 ? r.publicIdentifier = t : r.publicIdentifier += t;
1381
+ }, e5.prototype.appendToDoctypeSystemIdentifier = function(t) {
1382
+ var r = this.current("Doctype");
1383
+ r.systemIdentifier === void 0 ? r.systemIdentifier = t : r.systemIdentifier += t;
1384
+ }, e5.prototype.endDoctype = function() {
1385
+ this.addLocInfo();
1386
+ }, e5.prototype.beginData = function() {
1387
+ this.push({ type: "Chars", chars: "" });
1388
+ }, e5.prototype.appendToData = function(t) {
1389
+ this.current("Chars").chars += t;
1390
+ }, e5.prototype.finishData = function() {
1391
+ this.addLocInfo();
1392
+ }, e5.prototype.beginComment = function() {
1393
+ this.push({ type: "Comment", chars: "" });
1394
+ }, e5.prototype.appendToCommentData = function(t) {
1395
+ this.current("Comment").chars += t;
1396
+ }, e5.prototype.finishComment = function() {
1397
+ this.addLocInfo();
1398
+ }, e5.prototype.tagOpen = function() {
1399
+ }, e5.prototype.beginStartTag = function() {
1400
+ this.push({ type: "StartTag", tagName: "", attributes: [], selfClosing: false });
1401
+ }, e5.prototype.beginEndTag = function() {
1402
+ this.push({ type: "EndTag", tagName: "" });
1403
+ }, e5.prototype.finishTag = function() {
1404
+ this.addLocInfo();
1405
+ }, e5.prototype.markTagAsSelfClosing = function() {
1406
+ this.current("StartTag").selfClosing = true;
1407
+ }, e5.prototype.appendToTagName = function(t) {
1408
+ this.current("StartTag", "EndTag").tagName += t;
1409
+ }, e5.prototype.beginAttribute = function() {
1410
+ this._currentAttribute = ["", "", false];
1411
+ }, e5.prototype.appendToAttributeName = function(t) {
1412
+ this.currentAttribute()[0] += t;
1413
+ }, e5.prototype.beginAttributeValue = function(t) {
1414
+ this.currentAttribute()[2] = t;
1415
+ }, e5.prototype.appendToAttributeValue = function(t) {
1416
+ this.currentAttribute()[1] += t;
1417
+ }, e5.prototype.finishAttributeValue = function() {
1418
+ this.current("StartTag").attributes.push(this._currentAttribute);
1419
+ }, e5.prototype.reportSyntaxError = function(t) {
1420
+ this.current().syntaxError = t;
1421
+ }, e5;
1422
+ }();
1423
+ var xe = { Append: 1, TrustingAppend: 2, Comment: 3, Modifier: 4, StrictModifier: 5, Block: 6, StrictBlock: 7, Component: 8, OpenElement: 10, OpenElementWithSplat: 11, FlushElement: 12, CloseElement: 13, StaticAttr: 14, DynamicAttr: 15, ComponentAttr: 16, AttrSplat: 17, Yield: 18, DynamicArg: 20, StaticArg: 21, TrustingDynamicAttr: 22, TrustingComponentAttr: 23, StaticComponentAttr: 24, Debugger: 26, Undefined: 27, Call: 28, Concat: 29, GetSymbol: 30, GetLexicalSymbol: 32, GetStrictKeyword: 31, GetFreeAsComponentOrHelperHead: 35, GetFreeAsHelperHead: 37, GetFreeAsModifierHead: 38, GetFreeAsComponentHead: 39, InElement: 40, If: 41, Each: 42, Let: 44, WithDynamicVars: 45, InvokeComponent: 46, HasBlock: 48, HasBlockParams: 49, Curry: 50, Not: 51, IfInline: 52, GetDynamicVar: 53, Log: 54 };
1424
+ function Cn(e5) {
1425
+ return function(t) {
1426
+ return Array.isArray(t) && t[0] === e5;
1427
+ };
1428
+ }
1429
+ var Qa = Cn(xe.FlushElement);
1430
+ var Ja = Cn(xe.GetSymbol);
1431
+ var ti = /["&\xA0]/u;
1432
+ var io = new RegExp(ti.source, "gu");
1433
+ var ei = /[&<>\xA0]/u;
1434
+ var ao = new RegExp(ei.source, "gu");
1435
+ var br = /* @__PURE__ */ new Set(["area", "base", "br", "col", "command", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]);
1436
+ function ri(e5) {
1437
+ var t;
1438
+ return br.has(e5.toLowerCase()) && ((t = e5[0]) == null ? void 0 : t.toLowerCase()) === e5[0];
1439
+ }
1440
+ function ue(e5) {
1441
+ return e5.length > 0;
1442
+ }
1443
+ function ie(e5, t = "unexpected empty list") {
1444
+ return e5;
1445
+ }
1446
+ function Nr(e5) {
1447
+ return e5.length === 0 ? void 0 : e5[e5.length - 1];
1448
+ }
1449
+ function ni(e5) {
1450
+ return e5.length === 0 ? void 0 : e5[0];
1451
+ }
1452
+ var ut = Object.freeze({ line: 1, column: 0 });
1453
+ var si = Object.freeze({ source: "(synthetic)", start: ut, end: ut });
1454
+ var se = Object.freeze({ source: "(nonexistent)", start: ut, end: ut });
1455
+ var ct = Object.freeze({ source: "(broken)", start: ut, end: ut });
1456
+ var yr = class {
1457
+
1458
+ constructor(t) {
1459
+ this._whens = t;
1460
+ }
1461
+ first(t) {
1462
+ for (let r of this._whens) {
1463
+ let n = r.match(t);
1464
+ if (ue(n)) return n[0];
1465
+ }
1466
+ return null;
1467
+ }
1468
+ };
1469
+ var Le = (_class3 = class {constructor() { _class3.prototype.__init3.call(this); }
1470
+ __init3() {this._map = /* @__PURE__ */ new Map()}
1471
+ get(t, r) {
1472
+ let n = this._map.get(t);
1473
+ return n || (n = r(), this._map.set(t, n), n);
1474
+ }
1475
+ add(t, r) {
1476
+ this._map.set(t, r);
1477
+ }
1478
+ match(t) {
1479
+ let r = function(a) {
1480
+ switch (a) {
1481
+ case "Broken":
1482
+ case "InternalsSynthetic":
1483
+ case "NonExistent":
1484
+ return "IS_INVISIBLE";
1485
+ default:
1486
+ return a;
1487
+ }
1488
+ }(t), n = [], s = this._map.get(r), i = this._map.get("MATCH_ANY");
1489
+ return s && n.push(s), i && n.push(i), n;
1490
+ }
1491
+ }, _class3);
1492
+ function On(e5) {
1493
+ return e5(new kr()).validate();
1494
+ }
1495
+ var kr = (_class4 = class {constructor() { _class4.prototype.__init4.call(this); }
1496
+ __init4() {this._whens = new Le()}
1497
+ validate() {
1498
+ return (t, r) => this.matchFor(t.kind, r.kind)(t, r);
1499
+ }
1500
+ matchFor(t, r) {
1501
+ let n = this._whens.match(t);
1502
+ return ue(n), new yr(n).first(r);
1503
+ }
1504
+ when(t, r, n) {
1505
+ return this._whens.get(t, () => new Le()).add(r, n), this;
1506
+ }
1507
+ }, _class4);
1508
+ var Sr = class e {
1509
+ static synthetic(t) {
1510
+ let r = D.synthetic(t);
1511
+ return new e({ loc: r, chars: t });
1512
+ }
1513
+ static load(t, r) {
1514
+ return new e({ loc: D.load(t, r[1]), chars: r[0] });
1515
+ }
1516
+
1517
+
1518
+ constructor(t) {
1519
+ this.loc = t.loc, this.chars = t.chars;
1520
+ }
1521
+ getString() {
1522
+ return this.chars;
1523
+ }
1524
+ serialize() {
1525
+ return [this.chars, this.loc.serialize()];
1526
+ }
1527
+ };
1528
+ var D = class e2 {
1529
+ static get NON_EXISTENT() {
1530
+ return new X("NonExistent", se).wrap();
1531
+ }
1532
+ static load(t, r) {
1533
+ return typeof r == "number" ? e2.forCharPositions(t, r, r) : typeof r == "string" ? e2.synthetic(r) : Array.isArray(r) ? e2.forCharPositions(t, r[0], r[1]) : r === "NonExistent" ? e2.NON_EXISTENT : r === "Broken" ? e2.broken(ct) : void bn(r);
1534
+ }
1535
+ static forHbsLoc(t, r) {
1536
+ let n = new pt(t, r.start), s = new pt(t, r.end);
1537
+ return new oe(t, { start: n, end: s }, r).wrap();
1538
+ }
1539
+ static forCharPositions(t, r, n) {
1540
+ let s = new wt(t, r), i = new wt(t, n);
1541
+ return new ae(t, { start: s, end: i }).wrap();
1542
+ }
1543
+ static synthetic(t) {
1544
+ return new X("InternalsSynthetic", se, t).wrap();
1545
+ }
1546
+ static broken(t = ct) {
1547
+ return new X("Broken", t).wrap();
1548
+ }
1549
+
1550
+ constructor(t) {
1551
+ var r;
1552
+ this.data = t, this.isInvisible = (r = t.kind) !== "CharPosition" && r !== "HbsPosition";
1553
+ }
1554
+ getStart() {
1555
+ return this.data.getStart().wrap();
1556
+ }
1557
+ getEnd() {
1558
+ return this.data.getEnd().wrap();
1559
+ }
1560
+ get loc() {
1561
+ let t = this.data.toHbsSpan();
1562
+ return t === null ? ct : t.toHbsLoc();
1563
+ }
1564
+ get module() {
1565
+ return this.data.getModule();
1566
+ }
1567
+ get startPosition() {
1568
+ return this.loc.start;
1569
+ }
1570
+ get endPosition() {
1571
+ return this.loc.end;
1572
+ }
1573
+ toJSON() {
1574
+ return this.loc;
1575
+ }
1576
+ withStart(t) {
1577
+ return K(t.data, this.data.getEnd());
1578
+ }
1579
+ withEnd(t) {
1580
+ return K(this.data.getStart(), t.data);
1581
+ }
1582
+ asString() {
1583
+ return this.data.asString();
1584
+ }
1585
+ toSlice(t) {
1586
+ let r = this.data.asString();
1587
+ return false, new Sr({ loc: this, chars: t || r });
1588
+ }
1589
+ get start() {
1590
+ return this.loc.start;
1591
+ }
1592
+ set start(t) {
1593
+ this.data.locDidUpdate({ start: t });
1594
+ }
1595
+ get end() {
1596
+ return this.loc.end;
1597
+ }
1598
+ set end(t) {
1599
+ this.data.locDidUpdate({ end: t });
1600
+ }
1601
+ get source() {
1602
+ return this.module;
1603
+ }
1604
+ collapse(t) {
1605
+ switch (t) {
1606
+ case "start":
1607
+ return this.getStart().collapsed();
1608
+ case "end":
1609
+ return this.getEnd().collapsed();
1610
+ }
1611
+ }
1612
+ extend(t) {
1613
+ return K(this.data.getStart(), t.data.getEnd());
1614
+ }
1615
+ serialize() {
1616
+ return this.data.serialize();
1617
+ }
1618
+ slice({ skipStart: t = 0, skipEnd: r = 0 }) {
1619
+ return K(this.getStart().move(t).data, this.getEnd().move(-r).data);
1620
+ }
1621
+ sliceStartChars({ skipStart: t = 0, chars: r }) {
1622
+ return K(this.getStart().move(t).data, this.getStart().move(t + r).data);
1623
+ }
1624
+ sliceEndChars({ skipEnd: t = 0, chars: r }) {
1625
+ return K(this.getEnd().move(t - r).data, this.getStart().move(-t).data);
1626
+ }
1627
+ };
1628
+ var ce;
1629
+ var ae = class {
1630
+ constructor(t, r) {
1631
+ Me(this, "kind", "CharPosition");
1632
+ Pt(this, ce, null);
1633
+ this.source = t, this.charPositions = r;
1634
+ }
1635
+ wrap() {
1636
+ return new D(this);
1637
+ }
1638
+ asString() {
1639
+ return this.source.slice(this.charPositions.start.charPos, this.charPositions.end.charPos);
1640
+ }
1641
+ getModule() {
1642
+ return this.source.module;
1643
+ }
1644
+ getStart() {
1645
+ return this.charPositions.start;
1646
+ }
1647
+ getEnd() {
1648
+ return this.charPositions.end;
1649
+ }
1650
+ locDidUpdate() {
1651
+ }
1652
+ toHbsSpan() {
1653
+ let t = I(this, ce);
1654
+ if (t === null) {
1655
+ let r = this.charPositions.start.toHbsPos(), n = this.charPositions.end.toHbsPos();
1656
+ t = J(this, ce, r === null || n === null ? ht : new oe(this.source, { start: r, end: n }));
1657
+ }
1658
+ return t === ht ? null : t;
1659
+ }
1660
+ serialize() {
1661
+ let { start: { charPos: t }, end: { charPos: r } } = this.charPositions;
1662
+ return t === r ? t : [t, r];
1663
+ }
1664
+ toCharPosSpan() {
1665
+ return this;
1666
+ }
1667
+ };
1668
+ ce = /* @__PURE__ */ new WeakMap();
1669
+ var St;
1670
+ var vt;
1671
+ var oe = class {
1672
+ constructor(t, r, n = null) {
1673
+ Me(this, "kind", "HbsPosition");
1674
+ Pt(this, St, null);
1675
+ Pt(this, vt);
1676
+ this.source = t, this.hbsPositions = r, J(this, vt, n);
1677
+ }
1678
+ serialize() {
1679
+ let t = this.toCharPosSpan();
1680
+ return t === null ? "Broken" : t.wrap().serialize();
1681
+ }
1682
+ wrap() {
1683
+ return new D(this);
1684
+ }
1685
+ updateProvided(t, r) {
1686
+ I(this, vt) && (I(this, vt)[r] = t), J(this, St, null), J(this, vt, { start: t, end: t });
1687
+ }
1688
+ locDidUpdate({ start: t, end: r }) {
1689
+ t !== void 0 && (this.updateProvided(t, "start"), this.hbsPositions.start = new pt(this.source, t, null)), r !== void 0 && (this.updateProvided(r, "end"), this.hbsPositions.end = new pt(this.source, r, null));
1690
+ }
1691
+ asString() {
1692
+ let t = this.toCharPosSpan();
1693
+ return t === null ? "" : t.asString();
1694
+ }
1695
+ getModule() {
1696
+ return this.source.module;
1697
+ }
1698
+ getStart() {
1699
+ return this.hbsPositions.start;
1700
+ }
1701
+ getEnd() {
1702
+ return this.hbsPositions.end;
1703
+ }
1704
+ toHbsLoc() {
1705
+ return { start: this.hbsPositions.start.hbsPos, end: this.hbsPositions.end.hbsPos };
1706
+ }
1707
+ toHbsSpan() {
1708
+ return this;
1709
+ }
1710
+ toCharPosSpan() {
1711
+ let t = I(this, St);
1712
+ if (t === null) {
1713
+ let r = this.hbsPositions.start.toCharPos(), n = this.hbsPositions.end.toCharPos();
1714
+ if (!r || !n) return t = J(this, St, ht), null;
1715
+ t = J(this, St, new ae(this.source, { start: r, end: n }));
1716
+ }
1717
+ return t === ht ? null : t;
1718
+ }
1719
+ };
1720
+ St = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap();
1721
+ var X = class {
1722
+ constructor(t, r, n = null) {
1723
+ this.kind = t, this.loc = r, this.string = n;
1724
+ }
1725
+ serialize() {
1726
+ switch (this.kind) {
1727
+ case "Broken":
1728
+ case "NonExistent":
1729
+ return this.kind;
1730
+ case "InternalsSynthetic":
1731
+ return this.string || "";
1732
+ }
1733
+ }
1734
+ wrap() {
1735
+ return new D(this);
1736
+ }
1737
+ asString() {
1738
+ return this.string || "";
1739
+ }
1740
+ locDidUpdate({ start: t, end: r }) {
1741
+ t !== void 0 && (this.loc.start = t), r !== void 0 && (this.loc.end = r);
1742
+ }
1743
+ getModule() {
1744
+ return "an unknown module";
1745
+ }
1746
+ getStart() {
1747
+ return new le(this.kind, this.loc.start);
1748
+ }
1749
+ getEnd() {
1750
+ return new le(this.kind, this.loc.end);
1751
+ }
1752
+ toCharPosSpan() {
1753
+ return this;
1754
+ }
1755
+ toHbsSpan() {
1756
+ return null;
1757
+ }
1758
+ toHbsLoc() {
1759
+ return ct;
1760
+ }
1761
+ };
1762
+ var K = On((e5) => e5.when("HbsPosition", "HbsPosition", (t, r) => new oe(t.source, { start: t, end: r }).wrap()).when("CharPosition", "CharPosition", (t, r) => new ae(t.source, { start: t, end: r }).wrap()).when("CharPosition", "HbsPosition", (t, r) => {
1763
+ let n = r.toCharPos();
1764
+ return n === null ? new X("Broken", ct).wrap() : K(t, n);
1765
+ }).when("HbsPosition", "CharPosition", (t, r) => {
1766
+ let n = t.toCharPos();
1767
+ return n === null ? new X("Broken", ct).wrap() : K(n, r);
1768
+ }).when("IS_INVISIBLE", "MATCH_ANY", (t) => new X(t.kind, ct).wrap()).when("MATCH_ANY", "IS_INVISIBLE", (t, r) => new X(r.kind, ct).wrap()));
1769
+ var ht = "BROKEN";
1770
+ var Ht = class e3 {
1771
+ static forHbsPos(t, r) {
1772
+ return new pt(t, r, null).wrap();
1773
+ }
1774
+ static broken(t = ut) {
1775
+ return new le("Broken", t).wrap();
1776
+ }
1777
+ constructor(t) {
1778
+ this.data = t;
1779
+ }
1780
+ get offset() {
1781
+ let t = this.data.toCharPos();
1782
+ return t === null ? null : t.offset;
1783
+ }
1784
+ eql(t) {
1785
+ return ii(this.data, t.data);
1786
+ }
1787
+ until(t) {
1788
+ return K(this.data, t.data);
1789
+ }
1790
+ move(t) {
1791
+ let r = this.data.toCharPos();
1792
+ if (r === null) return e3.broken();
1793
+ {
1794
+ let n = r.offset + t;
1795
+ return r.source.validate(n) ? new wt(r.source, n).wrap() : e3.broken();
1796
+ }
1797
+ }
1798
+ collapsed() {
1799
+ return K(this.data, this.data);
1800
+ }
1801
+ toJSON() {
1802
+ return this.data.toJSON();
1803
+ }
1804
+ };
1805
+ var wt = (_class5 = class {
1806
+ __init5() {this.kind = "CharPosition"}
1807
+ __init6() {this._locPos = null}
1808
+ constructor(t, r) {;_class5.prototype.__init5.call(this);_class5.prototype.__init6.call(this);
1809
+ this.source = t, this.charPos = r;
1810
+ }
1811
+ toCharPos() {
1812
+ return this;
1813
+ }
1814
+ toJSON() {
1815
+ let t = this.toHbsPos();
1816
+ return t === null ? ut : t.toJSON();
1817
+ }
1818
+ wrap() {
1819
+ return new Ht(this);
1820
+ }
1821
+ get offset() {
1822
+ return this.charPos;
1823
+ }
1824
+ toHbsPos() {
1825
+ let t = this._locPos;
1826
+ if (t === null) {
1827
+ let r = this.source.hbsPosFor(this.charPos);
1828
+ this._locPos = t = r === null ? ht : new pt(this.source, r, this.charPos);
1829
+ }
1830
+ return t === ht ? null : t;
1831
+ }
1832
+ }, _class5);
1833
+ var pt = (_class6 = class {
1834
+ __init7() {this.kind = "HbsPosition"}
1835
+
1836
+ constructor(t, r, n = null) {;_class6.prototype.__init7.call(this);
1837
+ this.source = t, this.hbsPos = r, this._charPos = n === null ? null : new wt(t, n);
1838
+ }
1839
+ toCharPos() {
1840
+ let t = this._charPos;
1841
+ if (t === null) {
1842
+ let r = this.source.charPosFor(this.hbsPos);
1843
+ this._charPos = t = r === null ? ht : new wt(this.source, r);
1844
+ }
1845
+ return t === ht ? null : t;
1846
+ }
1847
+ toJSON() {
1848
+ return this.hbsPos;
1849
+ }
1850
+ wrap() {
1851
+ return new Ht(this);
1852
+ }
1853
+ toHbsPos() {
1854
+ return this;
1855
+ }
1856
+ }, _class6);
1857
+ var le = class {
1858
+ constructor(t, r) {
1859
+ this.kind = t, this.pos = r;
1860
+ }
1861
+ toCharPos() {
1862
+ return null;
1863
+ }
1864
+ toJSON() {
1865
+ return this.pos;
1866
+ }
1867
+ wrap() {
1868
+ return new Ht(this);
1869
+ }
1870
+ get offset() {
1871
+ return null;
1872
+ }
1873
+ };
1874
+ var ii = On((e5) => e5.when("HbsPosition", "HbsPosition", ({ hbsPos: t }, { hbsPos: r }) => t.column === r.column && t.line === r.line).when("CharPosition", "CharPosition", ({ charPos: t }, { charPos: r }) => t === r).when("CharPosition", "HbsPosition", ({ offset: t }, r) => {
1875
+ var n;
1876
+ return t === ((n = r.toCharPos()) == null ? void 0 : n.offset);
1877
+ }).when("HbsPosition", "CharPosition", (t, { offset: r }) => {
1878
+ var n;
1879
+ return ((n = t.toCharPos()) == null ? void 0 : n.offset) === r;
1880
+ }).when("MATCH_ANY", "MATCH_ANY", () => false));
1881
+ var Et = class e4 {
1882
+ static from(t, r = {}) {
1883
+ var n;
1884
+ return new e4(t, (n = r.meta) == null ? void 0 : n.moduleName);
1885
+ }
1886
+ constructor(t, r = "an unknown module") {
1887
+ this.source = t, this.module = r;
1888
+ }
1889
+ validate(t) {
1890
+ return t >= 0 && t <= this.source.length;
1891
+ }
1892
+ slice(t, r) {
1893
+ return this.source.slice(t, r);
1894
+ }
1895
+ offsetFor(t, r) {
1896
+ return Ht.forHbsPos(this, { line: t, column: r });
1897
+ }
1898
+ spanFor({ start: t, end: r }) {
1899
+ return D.forHbsLoc(this, { start: { line: t.line, column: t.column }, end: { line: r.line, column: r.column } });
1900
+ }
1901
+ hbsPosFor(t) {
1902
+ let r = 0, n = 0;
1903
+ if (t > this.source.length) return null;
1904
+ for (; ; ) {
1905
+ let s = this.source.indexOf(`
1906
+ `, n);
1907
+ if (t <= s || s === -1) return { line: r + 1, column: t - n };
1908
+ r += 1, n = s + 1;
1909
+ }
1910
+ }
1911
+ charPosFor(t) {
1912
+ let { line: r, column: n } = t, s = this.source.length, i = 0, a = 0;
1913
+ for (; a < s; ) {
1914
+ let o = this.source.indexOf(`
1915
+ `, a);
1916
+ if (o === -1 && (o = this.source.length), i === r - 1) {
1917
+ if (a + n > o) return o;
1918
+ if (false) {
1919
+ let c = this.hbsPosFor(a + n);
1920
+ c.line, c.column;
1921
+ }
1922
+ return a + n;
1923
+ }
1924
+ if (o === -1) return 0;
1925
+ i += 1, a = o + 1;
1926
+ }
1927
+ return s;
1928
+ }
1929
+ };
1930
+ function S(e5, t) {
1931
+ let { module: r, loc: n } = t, { line: s, column: i } = n.start, a = t.asString(), o = a ? `
1932
+
1933
+ |
1934
+ | ${a.split(`
1935
+ `).join(`
1936
+ | `)}
1937
+ |
1938
+
1939
+ ` : "", c = new Error(`${e5}: ${o}(error occurred in '${r}' @ line ${s} : column ${i})`);
1940
+ return c.name = "SyntaxError", c.location = t, c.code = a, c;
1941
+ }
1942
+ var ai = { Template: ["body"], Block: ["body"], MustacheStatement: ["path", "params", "hash"], BlockStatement: ["path", "params", "hash", "program", "inverse"], ElementModifierStatement: ["path", "params", "hash"], CommentStatement: [], MustacheCommentStatement: [], ElementNode: ["attributes", "modifiers", "children", "comments"], AttrNode: ["value"], TextNode: [], ConcatStatement: ["parts"], SubExpression: ["path", "params", "hash"], PathExpression: [], StringLiteral: [], BooleanLiteral: [], NumberLiteral: [], NullLiteral: [], UndefinedLiteral: [], Hash: ["pairs"], HashPair: ["value"] };
1943
+ var xr = function() {
1944
+ function e5(t, r, n, s) {
1945
+ let i = Error.call(this, t);
1946
+ this.key = s, this.message = t, this.node = r, this.parent = n, i.stack && (this.stack = i.stack);
1947
+ }
1948
+ return e5.prototype = Object.create(Error.prototype), e5.prototype.constructor = e5, e5;
1949
+ }();
1950
+ function Nn(e5, t, r) {
1951
+ return new xr("Cannot remove a node unless it is part of an array", e5, t, r);
1952
+ }
1953
+ function oi(e5, t, r) {
1954
+ return new xr("Cannot replace a node with multiple nodes unless it is part of an array", e5, t, r);
1955
+ }
1956
+ function xn(e5, t) {
1957
+ return new xr("Replacing and removing in key handlers is not yet supported.", e5, null, t);
1958
+ }
1959
+ var Ft = class {
1960
+
1961
+
1962
+
1963
+ constructor(t, r = null, n = null) {
1964
+ this.node = t, this.parent = r, this.parentKey = n;
1965
+ }
1966
+ get parentNode() {
1967
+ return this.parent ? this.parent.node : null;
1968
+ }
1969
+ parents() {
1970
+ return { [Symbol.iterator]: () => new vr(this) };
1971
+ }
1972
+ };
1973
+ var vr = class {
1974
+
1975
+ constructor(t) {
1976
+ this.path = t;
1977
+ }
1978
+ next() {
1979
+ return this.path.parent ? (this.path = this.path.parent, { done: false, value: this.path }) : { done: true, value: null };
1980
+ }
1981
+ };
1982
+ function Bn(e5) {
1983
+ return typeof e5 == "function" ? e5 : e5.enter;
1984
+ }
1985
+ function In(e5) {
1986
+ return typeof e5 == "function" ? void 0 : e5.exit;
1987
+ }
1988
+ function De(e5, t) {
1989
+ let r, n, s, { node: i, parent: a, parentKey: o } = t, c = function(h, p) {
1990
+ if (h.Program && (p === "Template" && !h.Template || p === "Block" && !h.Block)) return h.Program;
1991
+ let m = h[p];
1992
+ return m !== void 0 ? m : h.All;
1993
+ }(e5, i.type);
1994
+ if (c !== void 0 && (r = Bn(c), n = In(c)), r !== void 0 && (s = r(i, t)), s != null) {
1995
+ if (JSON.stringify(i) !== JSON.stringify(s)) return Array.isArray(s) ? (Rn(e5, s, a, o), s) : De(e5, new Ft(s, a, o)) || s;
1996
+ s = void 0;
1997
+ }
1998
+ if (s === void 0) {
1999
+ let h = ai[i.type];
2000
+ for (let p = 0; p < h.length; p++) li(e5, c, t, h[p]);
2001
+ n !== void 0 && (s = n(i, t));
2002
+ }
2003
+ return s;
2004
+ }
2005
+ function An(e5, t, r) {
2006
+ e5[t] = r;
2007
+ }
2008
+ function li(e5, t, r, n) {
2009
+ let s, i, { node: a } = r, o = function(c, h) {
2010
+ return c[h];
2011
+ }(a, n);
2012
+ if (o) {
2013
+ if (t !== void 0) {
2014
+ let c = function(h, p) {
2015
+ let m = typeof h != "function" ? h.keys : void 0;
2016
+ if (m === void 0) return;
2017
+ let v = m[p];
2018
+ return v !== void 0 ? v : m.All;
2019
+ }(t, n);
2020
+ c !== void 0 && (s = Bn(c), i = In(c));
2021
+ }
2022
+ if (s !== void 0 && s(a, n) !== void 0) throw xn(a, n);
2023
+ if (Array.isArray(o)) Rn(e5, o, r, n);
2024
+ else {
2025
+ let c = De(e5, new Ft(o, r, n));
2026
+ c !== void 0 && function(h, p, m, v) {
2027
+ if (v === null) throw Nn(m, h, p);
2028
+ if (Array.isArray(v)) {
2029
+ if (v.length !== 1) throw v.length === 0 ? Nn(m, h, p) : oi(m, h, p);
2030
+ An(h, p, v[0]);
2031
+ } else An(h, p, v);
2032
+ }(a, n, o, c);
2033
+ }
2034
+ if (i !== void 0 && i(a, n) !== void 0) throw xn(a, n);
2035
+ }
2036
+ }
2037
+ function Rn(e5, t, r, n) {
2038
+ for (let s = 0; s < t.length; s++) {
2039
+ let i = t[s], a = De(e5, new Ft(i, r, n));
2040
+ a !== void 0 && (s += ci(t, s, a) - 1);
2041
+ }
2042
+ }
2043
+ function ci(e5, t, r) {
2044
+ return r === null ? (e5.splice(t, 1), 0) : Array.isArray(r) ? (e5.splice(t, 1, ...r), r.length) : (e5.splice(t, 1, r), 1);
2045
+ }
2046
+ function ui(e5, t) {
2047
+ De(t, new Ft(e5));
2048
+ }
2049
+ function Vt(e5, t) {
2050
+ (function(r) {
2051
+ switch (r.type) {
2052
+ case "Block":
2053
+ case "Template":
2054
+ return r.body;
2055
+ case "ElementNode":
2056
+ return r.children;
2057
+ }
2058
+ })(e5).push(t);
2059
+ }
2060
+ function qn(e5) {
2061
+ return e5.type === "StringLiteral" || e5.type === "BooleanLiteral" || e5.type === "NumberLiteral" || e5.type === "NullLiteral" || e5.type === "UndefinedLiteral";
2062
+ }
2063
+ var pr;
2064
+ function fr() {
2065
+ return pr || (pr = new Et("", "(synthetic)")), pr;
2066
+ }
2067
+ function Pn(e5, t) {
2068
+ return f.var({ name: e5, loc: T(t || null) });
2069
+ }
2070
+ function lt(e5, t) {
2071
+ let r = T(t || null);
2072
+ if (typeof e5 != "string") {
2073
+ if ("type" in e5) return e5;
2074
+ {
2075
+ e5.head.indexOf(".");
2076
+ let { head: i, tail: a } = e5;
2077
+ return f.path({ head: f.head({ original: i, loc: r.sliceStartChars({ chars: i.length }) }), tail: a, loc: T(t || null) });
2078
+ }
2079
+ }
2080
+ let { head: n, tail: s } = function(i, a) {
2081
+ let [o, ...c] = ie(i.split(".")), h = f.head({ original: o, loc: T(a || null) });
2082
+ return f.path({ head: h, tail: c, loc: T(a || null) });
2083
+ }(e5, r);
2084
+ return f.path({ head: n, tail: s, loc: r });
2085
+ }
2086
+ function Pe(e5, t, r) {
2087
+ return f.literal({ type: e5, value: t, loc: T(r || null) });
2088
+ }
2089
+ function ne(e5 = [], t) {
2090
+ return f.hash({ pairs: e5, loc: T(t || null) });
2091
+ }
2092
+ function Vn(e5) {
2093
+ return e5.map((t) => typeof t == "string" ? f.var({ name: t, loc: D.synthetic(t) }) : t);
2094
+ }
2095
+ function Ln(e5 = [], t = [], r = false, n) {
2096
+ return f.blockItself({ body: e5, params: Vn(t), chained: r, loc: T(n || null) });
2097
+ }
2098
+ function Dn(e5 = [], t = [], r) {
2099
+ return f.template({ body: e5, blockParams: t, loc: T(r || null) });
2100
+ }
2101
+ function T(...e5) {
2102
+ if (e5.length === 1) {
2103
+ let t = e5[0];
2104
+ return t && typeof t == "object" ? D.forHbsLoc(fr(), t) : D.forHbsLoc(fr(), si);
2105
+ }
2106
+ {
2107
+ let [t, r, n, s, i] = e5, a = i ? new Et("", i) : fr();
2108
+ return D.forHbsLoc(a, { start: { line: t, column: r }, end: { line: n || t, column: s || r } });
2109
+ }
2110
+ }
2111
+ var hi = { mustache: function(e5, t = [], r = ne([]), n = false, s, i) {
2112
+ return f.mustache({ path: lt(e5), params: t, hash: r, trusting: n, strip: i, loc: T(s || null) });
2113
+ }, block: function(e5, t, r, n, s = null, i, a, o, c) {
2114
+ let h, p = null;
2115
+ return h = n.type === "Template" ? f.blockItself({ params: Vn(n.blockParams), body: n.body, loc: n.loc }) : n, (s == null ? void 0 : s.type) === "Template" ? (s.blockParams.length, p = f.blockItself({ params: [], body: s.body, loc: s.loc })) : p = s, f.block({ path: lt(e5), params: t || [], hash: r || ne([]), defaultBlock: h, elseBlock: p, loc: T(i || null), openStrip: a, inverseStrip: o, closeStrip: c });
2116
+ }, comment: function(e5, t) {
2117
+ return f.comment({ value: e5, loc: T(t || null) });
2118
+ }, mustacheComment: function(e5, t) {
2119
+ return f.mustacheComment({ value: e5, loc: T(t || null) });
2120
+ }, element: function(e5, t = {}) {
2121
+ let r, n, { attrs: s, blockParams: i, modifiers: a, comments: o, children: c, openTag: h, closeTag: p, loc: m } = t;
2122
+ typeof e5 == "string" ? e5.endsWith("/") ? (r = lt(e5.slice(0, -1)), n = true) : r = lt(e5) : "type" in e5 ? (e5.type, e5.type, r = e5) : "path" in e5 ? (e5.path.type, e5.path.type, r = e5.path, n = e5.selfClosing) : (r = lt(e5.name), n = e5.selfClosing);
2123
+ let v = i == null ? void 0 : i.map((E) => typeof E == "string" ? Pn(E) : E), g = null;
2124
+ return p ? g = T(p || null) : p === void 0 && (g = n || ri(r.original) ? null : T(null)), f.element({ path: r, selfClosing: n || false, attributes: s || [], params: v || [], modifiers: a || [], comments: o || [], children: c || [], openTag: T(h || null), closeTag: g, loc: T(m || null) });
2125
+ }, elementModifier: function(e5, t, r, n) {
2126
+ return f.elementModifier({ path: lt(e5), params: t || [], hash: r || ne([]), loc: T(n || null) });
2127
+ }, attr: function(e5, t, r) {
2128
+ return f.attr({ name: e5, value: t, loc: T(r || null) });
2129
+ }, text: function(e5 = "", t) {
2130
+ return f.text({ chars: e5, loc: T(t || null) });
2131
+ }, sexpr: function(e5, t = [], r = ne([]), n) {
2132
+ return f.sexpr({ path: lt(e5), params: t, hash: r, loc: T(n || null) });
2133
+ }, concat: function(e5, t) {
2134
+ if (!ue(e5)) throw new Error("b.concat requires at least one part");
2135
+ return f.concat({ parts: e5, loc: T(t || null) });
2136
+ }, hash: ne, pair: function(e5, t, r) {
2137
+ return f.pair({ key: e5, value: t, loc: T(r || null) });
2138
+ }, literal: Pe, program: function(e5, t, r) {
2139
+ return t && t.length ? Ln(e5, t, false, r) : Dn(e5, [], r);
2140
+ }, blockItself: Ln, template: Dn, loc: T, pos: function(e5, t) {
2141
+ return f.pos({ line: e5, column: t });
2142
+ }, path: lt, fullPath: function(e5, t = [], r) {
2143
+ return f.path({ head: e5, tail: t, loc: T(r || null) });
2144
+ }, head: function(e5, t) {
2145
+ return f.head({ original: e5, loc: T(t || null) });
2146
+ }, at: function(e5, t) {
2147
+ return f.atName({ name: e5, loc: T(t || null) });
2148
+ }, var: Pn, this: function(e5) {
2149
+ return f.this({ loc: T(e5 || null) });
2150
+ }, string: mr("StringLiteral"), boolean: mr("BooleanLiteral"), number: mr("NumberLiteral"), undefined: () => Pe("UndefinedLiteral", void 0), null: () => Pe("NullLiteral", null) };
2151
+ function mr(e5) {
2152
+ return function(t, r) {
2153
+ return Pe(e5, t, r);
2154
+ };
2155
+ }
2156
+ var Ae = { close: false, open: false };
2157
+ var f = new class {
2158
+ pos({ line: e5, column: t }) {
2159
+ return { line: e5, column: t };
2160
+ }
2161
+ blockItself({ body: e5, params: t, chained: r = false, loc: n }) {
2162
+ return { type: "Block", body: e5, params: t, get blockParams() {
2163
+ return this.params.map((s) => s.name);
2164
+ }, set blockParams(s) {
2165
+ this.params = s.map((i) => f.var({ name: i, loc: D.synthetic(i) }));
2166
+ }, chained: r, loc: n };
2167
+ }
2168
+ template({ body: e5, blockParams: t, loc: r }) {
2169
+ return { type: "Template", body: e5, blockParams: t, loc: r };
2170
+ }
2171
+ mustache({ path: e5, params: t, hash: r, trusting: n, loc: s, strip: i = Ae }) {
2172
+ return function({ path: a, params: o, hash: c, trusting: h, strip: p, loc: m }) {
2173
+ let v = { type: "MustacheStatement", path: a, params: o, hash: c, trusting: h, strip: p, loc: m };
2174
+ return Object.defineProperty(v, "escaped", { enumerable: false, get() {
2175
+ return !this.trusting;
2176
+ }, set(g) {
2177
+ this.trusting = !g;
2178
+ } }), v;
2179
+ }({ path: e5, params: t, hash: r, trusting: n, strip: i, loc: s });
2180
+ }
2181
+ block({ path: e5, params: t, hash: r, defaultBlock: n, elseBlock: s = null, loc: i, openStrip: a = Ae, inverseStrip: o = Ae, closeStrip: c = Ae }) {
2182
+ return { type: "BlockStatement", path: e5, params: t, hash: r, program: n, inverse: s, loc: i, openStrip: a, inverseStrip: o, closeStrip: c };
2183
+ }
2184
+ comment({ value: e5, loc: t }) {
2185
+ return { type: "CommentStatement", value: e5, loc: t };
2186
+ }
2187
+ mustacheComment({ value: e5, loc: t }) {
2188
+ return { type: "MustacheCommentStatement", value: e5, loc: t };
2189
+ }
2190
+ concat({ parts: e5, loc: t }) {
2191
+ return { type: "ConcatStatement", parts: e5, loc: t };
2192
+ }
2193
+ element({ path: e5, selfClosing: t, attributes: r, modifiers: n, params: s, comments: i, children: a, openTag: o, closeTag: c, loc: h }) {
2194
+ let p = t;
2195
+ return { type: "ElementNode", path: e5, attributes: r, modifiers: n, params: s, comments: i, children: a, openTag: o, closeTag: c, loc: h, get tag() {
2196
+ return this.path.original;
2197
+ }, set tag(m) {
2198
+ this.path.original = m;
2199
+ }, get blockParams() {
2200
+ return this.params.map((m) => m.name);
2201
+ }, set blockParams(m) {
2202
+ this.params = m.map((v) => f.var({ name: v, loc: D.synthetic(v) }));
2203
+ }, get selfClosing() {
2204
+ return p;
2205
+ }, set selfClosing(m) {
2206
+ p = m, this.closeTag = m ? null : D.synthetic(`</${this.tag}>`);
2207
+ } };
2208
+ }
2209
+ elementModifier({ path: e5, params: t, hash: r, loc: n }) {
2210
+ return { type: "ElementModifierStatement", path: e5, params: t, hash: r, loc: n };
2211
+ }
2212
+ attr({ name: e5, value: t, loc: r }) {
2213
+ return { type: "AttrNode", name: e5, value: t, loc: r };
2214
+ }
2215
+ text({ chars: e5, loc: t }) {
2216
+ return { type: "TextNode", chars: e5, loc: t };
2217
+ }
2218
+ sexpr({ path: e5, params: t, hash: r, loc: n }) {
2219
+ return { type: "SubExpression", path: e5, params: t, hash: r, loc: n };
2220
+ }
2221
+ path({ head: e5, tail: t, loc: r }) {
2222
+ return function({ head: n, tail: s, loc: i }) {
2223
+ let a = { type: "PathExpression", head: n, tail: s, get original() {
2224
+ return [this.head.original, ...this.tail].join(".");
2225
+ }, set original(o) {
2226
+ let [c, ...h] = ie(o.split("."));
2227
+ this.head = hi.head(c, this.head.loc), this.tail = h;
2228
+ }, loc: i };
2229
+ return Object.defineProperty(a, "parts", { enumerable: false, get() {
2230
+ let o = ie(this.original.split("."));
2231
+ return o[0] === "this" ? o.shift() : o[0].startsWith("@") && (o[0] = o[0].slice(1)), Object.freeze(o);
2232
+ }, set(o) {
2233
+ var h;
2234
+ let c = [...o];
2235
+ c[0] === "this" || (h = c[0]) != null && h.startsWith("@") || (this.head.type === "ThisHead" ? c.unshift("this") : this.head.type === "AtHead" && (c[0] = `@${c[0]}`)), this.original = c.join(".");
2236
+ } }), Object.defineProperty(a, "this", { enumerable: false, get() {
2237
+ return this.head.type === "ThisHead";
2238
+ } }), Object.defineProperty(a, "data", { enumerable: false, get() {
2239
+ return this.head.type === "AtHead";
2240
+ } }), a;
2241
+ }({ head: e5, tail: t, loc: r });
2242
+ }
2243
+ head({ original: e5, loc: t }) {
2244
+ return e5 === "this" ? this.this({ loc: t }) : e5[0] === "@" ? this.atName({ name: e5, loc: t }) : this.var({ name: e5, loc: t });
2245
+ }
2246
+ this({ loc: e5 }) {
2247
+ return { type: "ThisHead", get original() {
2248
+ return "this";
2249
+ }, loc: e5 };
2250
+ }
2251
+ atName({ name: e5, loc: t }) {
2252
+ let r = "", n = { type: "AtHead", get name() {
2253
+ return r;
2254
+ }, set name(s) {
2255
+ s[0], s.indexOf("."), r = s;
2256
+ }, get original() {
2257
+ return this.name;
2258
+ }, set original(s) {
2259
+ this.name = s;
2260
+ }, loc: t };
2261
+ return n.name = e5, n;
2262
+ }
2263
+ var({ name: e5, loc: t }) {
2264
+ let r = "", n = { type: "VarHead", get name() {
2265
+ return r;
2266
+ }, set name(s) {
2267
+ s[0], s.indexOf("."), r = s;
2268
+ }, get original() {
2269
+ return this.name;
2270
+ }, set original(s) {
2271
+ this.name = s;
2272
+ }, loc: t };
2273
+ return n.name = e5, n;
2274
+ }
2275
+ hash({ pairs: e5, loc: t }) {
2276
+ return { type: "Hash", pairs: e5, loc: t };
2277
+ }
2278
+ pair({ key: e5, value: t, loc: r }) {
2279
+ return { type: "HashPair", key: e5, value: t, loc: r };
2280
+ }
2281
+ literal({ type: e5, value: t, loc: r }) {
2282
+ return function({ type: n, value: s, loc: i }) {
2283
+ let a = { type: n, value: s, loc: i };
2284
+ return Object.defineProperty(a, "original", { enumerable: false, get() {
2285
+ return this.value;
2286
+ }, set(o) {
2287
+ this.value = o;
2288
+ } }), a;
2289
+ }({ type: e5, value: t, loc: r });
2290
+ }
2291
+ }();
2292
+ var Er = (_class7 = class {
2293
+ __init8() {this.elementStack = []}
2294
+
2295
+
2296
+ __init9() {this.currentAttribute = null}
2297
+ __init10() {this.currentNode = null}
2298
+
2299
+ constructor(t, r = new ur(Tn), n = "precompile") {;_class7.prototype.__init8.call(this);_class7.prototype.__init9.call(this);_class7.prototype.__init10.call(this);
2300
+ this.source = t, this.lines = t.source.split(/\r\n?|\n/u), this.tokenizer = new hr(this, r, n);
2301
+ }
2302
+ offset() {
2303
+ let { line: t, column: r } = this.tokenizer;
2304
+ return this.source.offsetFor(t, r);
2305
+ }
2306
+ pos({ line: t, column: r }) {
2307
+ return this.source.offsetFor(t, r);
2308
+ }
2309
+ finish(t) {
2310
+ return rr({}, t, { loc: t.start.until(this.offset()) });
2311
+ }
2312
+ get currentAttr() {
2313
+ return this.currentAttribute;
2314
+ }
2315
+ get currentTag() {
2316
+ let t = this.currentNode;
2317
+ return t && (t.type === "StartTag" || t.type), t;
2318
+ }
2319
+ get currentStartTag() {
2320
+ let t = this.currentNode;
2321
+ return t && t.type, t;
2322
+ }
2323
+ get currentEndTag() {
2324
+ let t = this.currentNode;
2325
+ return t && t.type, t;
2326
+ }
2327
+ get currentComment() {
2328
+ let t = this.currentNode;
2329
+ return t && t.type, t;
2330
+ }
2331
+ get currentData() {
2332
+ let t = this.currentNode;
2333
+ return t && t.type, t;
2334
+ }
2335
+ acceptNode(t) {
2336
+ return this[t.type](t);
2337
+ }
2338
+ currentElement() {
2339
+ return Nr(ie(this.elementStack));
2340
+ }
2341
+ sourceForNode(t, r) {
2342
+ let n, s, i, a = t.loc.start.line - 1, o = a - 1, c = t.loc.start.column, h = [];
2343
+ for (r ? (s = r.loc.end.line - 1, i = r.loc.end.column) : (s = t.loc.end.line - 1, i = t.loc.end.column); o < s; ) o++, n = this.lines[o], o === a ? a === s ? h.push(n.slice(c, i)) : h.push(n.slice(c)) : o === s ? h.push(n.slice(0, i)) : h.push(n);
2344
+ return h.join(`
2345
+ `);
2346
+ }
2347
+ }, _class7);
2348
+ var wr = (_class8 = class extends Er {constructor(...args) { super(...args); _class8.prototype.__init11.call(this); }
2349
+ __init11() {this.pendingError = null}
2350
+ parse(t, r) {
2351
+ var i;
2352
+ let n = f.template({ body: [], blockParams: r, loc: this.source.spanFor(t.loc) }), s = this.parseProgram(n, t);
2353
+ return (i = this.pendingError) == null || i.eof(s.loc.getEnd()), s;
2354
+ }
2355
+ Program(t, r) {
2356
+ let n = f.blockItself({ body: [], params: r, chained: t.chained, loc: this.source.spanFor(t.loc) });
2357
+ return this.parseProgram(n, t);
2358
+ }
2359
+ parseProgram(t, r) {
2360
+ if (r.body.length === 0) return t;
2361
+ let n;
2362
+ try {
2363
+ this.elementStack.push(t);
2364
+ for (let s of r.body) this.acceptNode(s);
2365
+ } finally {
2366
+ n = this.elementStack.pop();
2367
+ }
2368
+ if (t !== n) {
2369
+ if ((n == null ? void 0 : n.type) === "ElementNode") throw S(`Unclosed element \`${n.tag}\``, n.loc);
2370
+ t.type;
2371
+ }
2372
+ return t;
2373
+ }
2374
+ BlockStatement(t) {
2375
+ var p;
2376
+ if (this.tokenizer.state === "comment") return void this.appendToCommentData(this.sourceForNode(t));
2377
+ if (this.tokenizer.state !== "data" && this.tokenizer.state !== "beforeData") throw S("A block may only be used inside an HTML element or another block.", this.source.spanFor(t.loc));
2378
+ let { path: r, params: n, hash: s } = dr(this, t), i = this.source.spanFor(t.loc), a = [];
2379
+ if ((p = t.program.blockParams) != null && p.length) {
2380
+ let m = s.loc.collapse("end");
2381
+ m = t.program.loc ? m.withEnd(this.source.spanFor(t.program.loc).getStart()) : t.program.body[0] ? m.withEnd(this.source.spanFor(t.program.body[0].loc).getStart()) : m.withEnd(i.getEnd());
2382
+ let v = m.asString(), g = v.indexOf("|") + 1, E = v.indexOf("|", g);
2383
+ for (let N of t.program.blockParams) {
2384
+ let x, w;
2385
+ x = g >= E ? -1 : v.indexOf(N, g), x === -1 || x + N.length > E ? (g = E, w = this.source.spanFor(se)) : (g = x, w = m.sliceStartChars({ skipStart: g, chars: N.length }), g += N.length), a.push(f.var({ name: N, loc: w }));
2386
+ }
2387
+ }
2388
+ t.program.loc || (t.program.loc = se), t.inverse && !t.inverse.loc && (t.inverse.loc = se);
2389
+ let o = this.Program(t.program, a), c = t.inverse ? this.Program(t.inverse, []) : null, h = f.block({ path: r, params: n, hash: s, defaultBlock: o, elseBlock: c, loc: this.source.spanFor(t.loc), openStrip: t.openStrip, inverseStrip: t.inverseStrip, closeStrip: t.closeStrip });
2390
+ Vt(this.currentElement(), h);
2391
+ }
2392
+ MustacheStatement(t) {
2393
+ var o;
2394
+ (o = this.pendingError) == null || o.mustache(this.source.spanFor(t.loc));
2395
+ let { tokenizer: r } = this;
2396
+ if (r.state === "comment") return void this.appendToCommentData(this.sourceForNode(t));
2397
+ let n, { escaped: s, loc: i, strip: a } = t;
2398
+ if ("original" in t.path && t.path.original === "...attributes") throw S("Illegal use of ...attributes", this.source.spanFor(t.loc));
2399
+ if (qn(t.path)) n = f.mustache({ path: this.acceptNode(t.path), params: [], hash: f.hash({ pairs: [], loc: this.source.spanFor(t.path.loc).collapse("end") }), trusting: !s, loc: this.source.spanFor(i), strip: a });
2400
+ else {
2401
+ let { path: c, params: h, hash: p } = dr(this, t);
2402
+ n = f.mustache({ path: c, params: h, hash: p, trusting: !s, loc: this.source.spanFor(i), strip: a });
2403
+ }
2404
+ switch (r.state) {
2405
+ case "tagOpen":
2406
+ case "tagName":
2407
+ throw S("Cannot use mustaches in an elements tagname", n.loc);
2408
+ case "beforeAttributeName":
2409
+ gr(this.currentStartTag, n);
2410
+ break;
2411
+ case "attributeName":
2412
+ case "afterAttributeName":
2413
+ this.beginAttributeValue(false), this.finishAttributeValue(), gr(this.currentStartTag, n), r.transitionTo("beforeAttributeName");
2414
+ break;
2415
+ case "afterAttributeValueQuoted":
2416
+ gr(this.currentStartTag, n), r.transitionTo("beforeAttributeName");
2417
+ break;
2418
+ case "beforeAttributeValue":
2419
+ this.beginAttributeValue(false), this.appendDynamicAttributeValuePart(n), r.transitionTo("attributeValueUnquoted");
2420
+ break;
2421
+ case "attributeValueDoubleQuoted":
2422
+ case "attributeValueSingleQuoted":
2423
+ case "attributeValueUnquoted":
2424
+ this.appendDynamicAttributeValuePart(n);
2425
+ break;
2426
+ default:
2427
+ Vt(this.currentElement(), n);
2428
+ }
2429
+ return n;
2430
+ }
2431
+ appendDynamicAttributeValuePart(t) {
2432
+ this.finalizeTextPart();
2433
+ let r = this.currentAttr;
2434
+ r.isDynamic = true, r.parts.push(t);
2435
+ }
2436
+ finalizeTextPart() {
2437
+ let t = this.currentAttr.currentPart;
2438
+ t !== null && (this.currentAttr.parts.push(t), this.startTextPart());
2439
+ }
2440
+ startTextPart() {
2441
+ this.currentAttr.currentPart = null;
2442
+ }
2443
+ ContentStatement(t) {
2444
+ (function(r, n) {
2445
+ let s = n.loc.start.line, i = n.loc.start.column, a = function(o, c) {
2446
+ if (c === "") return { lines: o.split(`
2447
+ `).length - 1, columns: 0 };
2448
+ let [h] = o.split(c), p = h.split(/\n/u), m = p.length - 1;
2449
+ return { lines: m, columns: p[m].length };
2450
+ }(n.original, n.value);
2451
+ s += a.lines, a.lines ? i = a.columns : i += a.columns, r.line = s, r.column = i;
2452
+ })(this.tokenizer, t), this.tokenizer.tokenizePart(t.value), this.tokenizer.flushData();
2453
+ }
2454
+ CommentStatement(t) {
2455
+ let { tokenizer: r } = this;
2456
+ if (r.state === "comment") return this.appendToCommentData(this.sourceForNode(t)), null;
2457
+ let { value: n, loc: s } = t, i = f.mustacheComment({ value: n, loc: this.source.spanFor(s) });
2458
+ switch (r.state) {
2459
+ case "beforeAttributeName":
2460
+ case "afterAttributeName":
2461
+ this.currentStartTag.comments.push(i);
2462
+ break;
2463
+ case "beforeData":
2464
+ case "data":
2465
+ Vt(this.currentElement(), i);
2466
+ break;
2467
+ default:
2468
+ throw S(`Using a Handlebars comment when in the \`${r.state}\` state is not supported`, this.source.spanFor(t.loc));
2469
+ }
2470
+ return i;
2471
+ }
2472
+ PartialStatement(t) {
2473
+ throw S("Handlebars partials are not supported", this.source.spanFor(t.loc));
2474
+ }
2475
+ PartialBlockStatement(t) {
2476
+ throw S("Handlebars partial blocks are not supported", this.source.spanFor(t.loc));
2477
+ }
2478
+ Decorator(t) {
2479
+ throw S("Handlebars decorators are not supported", this.source.spanFor(t.loc));
2480
+ }
2481
+ DecoratorBlock(t) {
2482
+ throw S("Handlebars decorator blocks are not supported", this.source.spanFor(t.loc));
2483
+ }
2484
+ SubExpression(t) {
2485
+ let { path: r, params: n, hash: s } = dr(this, t);
2486
+ return f.sexpr({ path: r, params: n, hash: s, loc: this.source.spanFor(t.loc) });
2487
+ }
2488
+ PathExpression(t) {
2489
+ let { original: r } = t, n;
2490
+ if (r.indexOf("/") !== -1) {
2491
+ if (r.slice(0, 2) === "./") throw S('Using "./" is not supported in Glimmer and unnecessary', this.source.spanFor(t.loc));
2492
+ if (r.slice(0, 3) === "../") throw S('Changing context using "../" is not supported in Glimmer', this.source.spanFor(t.loc));
2493
+ if (r.indexOf(".") !== -1) throw S("Mixing '.' and '/' in paths is not supported in Glimmer; use only '.' to separate property paths", this.source.spanFor(t.loc));
2494
+ n = [t.parts.join("/")];
2495
+ } else {
2496
+ if (r === ".") throw S("'.' is not a supported path in Glimmer; check for a path with a trailing '.'", this.source.spanFor(t.loc));
2497
+ n = t.parts;
2498
+ }
2499
+ let s, i = false;
2500
+ if (/^this(?:\..+)?$/u.test(r) && (i = true), i) s = f.this({ loc: this.source.spanFor({ start: t.loc.start, end: { line: t.loc.start.line, column: t.loc.start.column + 4 } }) });
2501
+ else if (t.data) {
2502
+ let a = n.shift();
2503
+ if (a === void 0) throw S("Attempted to parse a path expression, but it was not valid. Paths beginning with @ must start with a-z.", this.source.spanFor(t.loc));
2504
+ s = f.atName({ name: `@${a}`, loc: this.source.spanFor({ start: t.loc.start, end: { line: t.loc.start.line, column: t.loc.start.column + a.length + 1 } }) });
2505
+ } else {
2506
+ let a = n.shift();
2507
+ if (a === void 0) throw S("Attempted to parse a path expression, but it was not valid. Paths must start with a-z or A-Z.", this.source.spanFor(t.loc));
2508
+ s = f.var({ name: a, loc: this.source.spanFor({ start: t.loc.start, end: { line: t.loc.start.line, column: t.loc.start.column + a.length } }) });
2509
+ }
2510
+ return f.path({ head: s, tail: n, loc: this.source.spanFor(t.loc) });
2511
+ }
2512
+ Hash(t) {
2513
+ let r = t.pairs.map((n) => f.pair({ key: n.key, value: this.acceptNode(n.value), loc: this.source.spanFor(n.loc) }));
2514
+ return f.hash({ pairs: r, loc: this.source.spanFor(t.loc) });
2515
+ }
2516
+ StringLiteral(t) {
2517
+ return f.literal({ type: "StringLiteral", value: t.value, loc: this.source.spanFor(t.loc) });
2518
+ }
2519
+ BooleanLiteral(t) {
2520
+ return f.literal({ type: "BooleanLiteral", value: t.value, loc: this.source.spanFor(t.loc) });
2521
+ }
2522
+ NumberLiteral(t) {
2523
+ return f.literal({ type: "NumberLiteral", value: t.value, loc: this.source.spanFor(t.loc) });
2524
+ }
2525
+ UndefinedLiteral(t) {
2526
+ return f.literal({ type: "UndefinedLiteral", value: void 0, loc: this.source.spanFor(t.loc) });
2527
+ }
2528
+ NullLiteral(t) {
2529
+ return f.literal({ type: "NullLiteral", value: null, loc: this.source.spanFor(t.loc) });
2530
+ }
2531
+ }, _class8);
2532
+ function dr(e5, t) {
2533
+ let r;
2534
+ switch (t.path.type) {
2535
+ case "PathExpression":
2536
+ r = e5.PathExpression(t.path);
2537
+ break;
2538
+ case "SubExpression":
2539
+ r = e5.SubExpression(t.path);
2540
+ break;
2541
+ case "StringLiteral":
2542
+ case "UndefinedLiteral":
2543
+ case "NullLiteral":
2544
+ case "NumberLiteral":
2545
+ case "BooleanLiteral": {
2546
+ let i;
2547
+ throw i = t.path.type === "BooleanLiteral" ? t.path.original.toString() : t.path.type === "StringLiteral" ? `"${t.path.original}"` : t.path.type === "NullLiteral" ? "null" : t.path.type === "NumberLiteral" ? t.path.value.toString() : "undefined", S(`${t.path.type} "${t.path.type === "StringLiteral" ? t.path.original : i}" cannot be called as a sub-expression, replace (${i}) with ${i}`, e5.source.spanFor(t.path.loc));
2548
+ }
2549
+ }
2550
+ let n = t.params ? t.params.map((i) => e5.acceptNode(i)) : [], s = ue(n) ? Nr(n).loc : r.loc;
2551
+ return { path: r, params: n, hash: t.hash ? e5.Hash(t.hash) : f.hash({ pairs: [], loc: e5.source.spanFor(s).collapse("end") }) };
2552
+ }
2553
+ function gr(e5, t) {
2554
+ let { path: r, params: n, hash: s, loc: i } = t;
2555
+ if (qn(r)) {
2556
+ let o = `{{${function(c) {
2557
+ return c.type === "UndefinedLiteral" ? "undefined" : JSON.stringify(c.value);
2558
+ }(r)}}}`;
2559
+ throw S(`In <${e5.name} ... ${o} ..., ${o} is not a valid modifier`, t.loc);
2560
+ }
2561
+ let a = f.elementModifier({ path: r, params: n, hash: s, loc: i });
2562
+ e5.modifiers.push(a);
2563
+ }
2564
+ function qt(e5) {
2565
+ return /[\t\n\f ]/u.test(e5);
2566
+ }
2567
+ var Tr = (_class9 = class extends wr {constructor(...args2) { super(...args2); _class9.prototype.__init12.call(this);_class9.prototype.__init13.call(this); }
2568
+ __init12() {this.tagOpenLine = 0}
2569
+ __init13() {this.tagOpenColumn = 0}
2570
+ reset() {
2571
+ this.currentNode = null;
2572
+ }
2573
+ beginComment() {
2574
+ this.currentNode = { type: "CommentStatement", value: "", start: this.source.offsetFor(this.tagOpenLine, this.tagOpenColumn) };
2575
+ }
2576
+ appendToCommentData(t) {
2577
+ this.currentComment.value += t;
2578
+ }
2579
+ finishComment() {
2580
+ Vt(this.currentElement(), f.comment(this.finish(this.currentComment)));
2581
+ }
2582
+ beginData() {
2583
+ this.currentNode = { type: "TextNode", chars: "", start: this.offset() };
2584
+ }
2585
+ appendToData(t) {
2586
+ this.currentData.chars += t;
2587
+ }
2588
+ finishData() {
2589
+ Vt(this.currentElement(), f.text(this.finish(this.currentData)));
2590
+ }
2591
+ tagOpen() {
2592
+ this.tagOpenLine = this.tokenizer.line, this.tagOpenColumn = this.tokenizer.column;
2593
+ }
2594
+ beginStartTag() {
2595
+ this.currentNode = { type: "StartTag", name: "", nameStart: null, nameEnd: null, attributes: [], modifiers: [], comments: [], params: [], selfClosing: false, start: this.source.offsetFor(this.tagOpenLine, this.tagOpenColumn) };
2596
+ }
2597
+ beginEndTag() {
2598
+ this.currentNode = { type: "EndTag", name: "", start: this.source.offsetFor(this.tagOpenLine, this.tagOpenColumn) };
2599
+ }
2600
+ finishTag() {
2601
+ let t = this.finish(this.currentTag);
2602
+ if (t.type === "StartTag") {
2603
+ if (this.finishStartTag(), t.name === ":") throw S("Invalid named block named detected, you may have created a named block without a name, or you may have began your name with a number. Named blocks must have names that are at least one character long, and begin with a lower case letter", this.source.spanFor({ start: this.currentTag.start.toJSON(), end: this.offset().toJSON() }));
2604
+ (br.has(t.name) || t.selfClosing) && this.finishEndTag(true);
2605
+ } else t.type === "EndTag" && this.finishEndTag(false);
2606
+ }
2607
+ finishStartTag() {
2608
+ let { name: t, nameStart: r, nameEnd: n } = this.currentStartTag, s = r.until(n), [i, ...a] = ie(t.split(".")), o = f.path({ head: f.head({ original: i, loc: s.sliceStartChars({ chars: i.length }) }), tail: a, loc: s }), { attributes: c, modifiers: h, comments: p, params: m, selfClosing: v, loc: g } = this.finish(this.currentStartTag), E = f.element({ path: o, selfClosing: v, attributes: c, modifiers: h, comments: p, params: m, children: [], openTag: g, closeTag: v ? null : D.broken(), loc: g });
2609
+ this.elementStack.push(E);
2610
+ }
2611
+ finishEndTag(t) {
2612
+ let { start: r } = this.currentTag, n = this.finish(this.currentTag), s = this.elementStack.pop();
2613
+ this.validateEndTag(n, s, t);
2614
+ let i = this.currentElement();
2615
+ t ? s.closeTag = null : s.selfClosing ? s.closeTag : s.closeTag = r.until(this.offset()), s.loc = s.loc.withEnd(this.offset()), Vt(i, f.element(s));
2616
+ }
2617
+ markTagAsSelfClosing() {
2618
+ let t = this.currentTag;
2619
+ if (t.type !== "StartTag") throw S("Invalid end tag: closing tag must not be self-closing", this.source.spanFor({ start: t.start.toJSON(), end: this.offset().toJSON() }));
2620
+ t.selfClosing = true;
2621
+ }
2622
+ appendToTagName(t) {
2623
+ let r = this.currentTag;
2624
+ if (r.name += t, r.type === "StartTag") {
2625
+ let n = this.offset();
2626
+ r.nameStart === null && (r.nameEnd, r.nameStart = n.move(-1)), r.nameEnd = n;
2627
+ }
2628
+ }
2629
+ beginAttribute() {
2630
+ let t = this.offset();
2631
+ this.currentAttribute = { name: "", parts: [], currentPart: null, isQuoted: false, isDynamic: false, start: t, valueSpan: t.collapsed() };
2632
+ }
2633
+ appendToAttributeName(t) {
2634
+ this.currentAttr.name += t, this.currentAttr.name === "as" && this.parsePossibleBlockParams();
2635
+ }
2636
+ beginAttributeValue(t) {
2637
+ this.currentAttr.isQuoted = t, this.startTextPart(), this.currentAttr.valueSpan = this.offset().collapsed();
2638
+ }
2639
+ appendToAttributeValue(t) {
2640
+ let r = this.currentAttr.parts, n = r[r.length - 1], s = this.currentAttr.currentPart;
2641
+ if (s) s.chars += t, s.loc = s.loc.withEnd(this.offset());
2642
+ else {
2643
+ let i = this.offset();
2644
+ i = t === `
2645
+ ` ? n ? n.loc.getEnd() : this.currentAttr.valueSpan.getStart() : i.move(-1), this.currentAttr.currentPart = f.text({ chars: t, loc: i.collapsed() });
2646
+ }
2647
+ }
2648
+ finishAttributeValue() {
2649
+ this.finalizeTextPart();
2650
+ let t = this.currentTag, r = this.offset();
2651
+ if (t.type === "EndTag") throw S("Invalid end tag: closing tag must not have attributes", this.source.spanFor({ start: t.start.toJSON(), end: r.toJSON() }));
2652
+ let { name: n, parts: s, start: i, isQuoted: a, isDynamic: o, valueSpan: c } = this.currentAttr;
2653
+ if (n.startsWith("|") && s.length === 0 && !a && !o) throw S("Invalid block parameters syntax: block parameters must be preceded by the `as` keyword", i.until(i.move(n.length)));
2654
+ let h = this.assembleAttributeValue(s, a, o, i.until(r));
2655
+ h.loc = c.withEnd(r);
2656
+ let p = f.attr({ name: n, value: h, loc: i.until(r) });
2657
+ this.currentStartTag.attributes.push(p);
2658
+ }
2659
+ parsePossibleBlockParams() {
2660
+ let t = /[!"#%&'()*+./;<=>@[\\\]^`{|}~]/u;
2661
+ this.tokenizer.state;
2662
+ let r = this.currentStartTag, n = this.currentAttr, s = { state: "PossibleAs" }, i = { PossibleAs: (o) => {
2663
+ if (s.state, qt(o)) s = { state: "BeforeStartPipe" }, this.tokenizer.transitionTo("afterAttributeName"), this.tokenizer.consume();
2664
+ else {
2665
+ if (o === "|") throw S('Invalid block parameters syntax: expecting at least one space character between "as" and "|"', n.start.until(this.offset().move(1)));
2666
+ s = { state: "Done" };
2667
+ }
2668
+ }, BeforeStartPipe: (o) => {
2669
+ s.state, qt(o) ? this.tokenizer.consume() : o === "|" ? (s = { state: "BeforeBlockParamName" }, this.tokenizer.transitionTo("beforeAttributeName"), this.tokenizer.consume()) : s = { state: "Done" };
2670
+ }, BeforeBlockParamName: (o) => {
2671
+ if (s.state, qt(o)) this.tokenizer.consume();
2672
+ else if (o === "") s = { state: "Done" }, this.pendingError = { mustache(c) {
2673
+ throw S("Invalid block parameters syntax: mustaches cannot be used inside parameters list", c);
2674
+ }, eof(c) {
2675
+ throw S('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list', n.start.until(c));
2676
+ } };
2677
+ else if (o === "|") {
2678
+ if (r.params.length === 0) throw S("Invalid block parameters syntax: empty parameters list, expecting at least one identifier", n.start.until(this.offset().move(1)));
2679
+ s = { state: "AfterEndPipe" }, this.tokenizer.consume();
2680
+ } else {
2681
+ if (o === ">" || o === "/") throw S('Invalid block parameters syntax: incomplete parameters list, expecting "|" but the tag was closed prematurely', n.start.until(this.offset().move(1)));
2682
+ s = { state: "BlockParamName", name: o, start: this.offset() }, this.tokenizer.consume();
2683
+ }
2684
+ }, BlockParamName: (o) => {
2685
+ if (s.state, o === "") s = { state: "Done" }, this.pendingError = { mustache(c) {
2686
+ throw S("Invalid block parameters syntax: mustaches cannot be used inside parameters list", c);
2687
+ }, eof(c) {
2688
+ throw S('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list', n.start.until(c));
2689
+ } };
2690
+ else if (o === "|" || qt(o)) {
2691
+ let c = s.start.until(this.offset());
2692
+ if (s.name === "this" || t.test(s.name)) throw S(`Invalid block parameters syntax: invalid identifier name \`${s.name}\``, c);
2693
+ r.params.push(f.var({ name: s.name, loc: c })), s = o === "|" ? { state: "AfterEndPipe" } : { state: "BeforeBlockParamName" }, this.tokenizer.consume();
2694
+ } else {
2695
+ if (o === ">" || o === "/") throw S('Invalid block parameters syntax: expecting "|" but the tag was closed prematurely', n.start.until(this.offset().move(1)));
2696
+ s.name += o, this.tokenizer.consume();
2697
+ }
2698
+ }, AfterEndPipe: (o) => {
2699
+ s.state, qt(o) ? this.tokenizer.consume() : o === "" ? (s = { state: "Done" }, this.pendingError = { mustache(c) {
2700
+ throw S("Invalid block parameters syntax: modifiers cannot follow parameters list", c);
2701
+ }, eof(c) {
2702
+ throw S('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list', n.start.until(c));
2703
+ } }) : o === ">" || o === "/" ? s = { state: "Done" } : (s = { state: "Error", message: 'Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list', start: this.offset() }, this.tokenizer.consume());
2704
+ }, Error: (o) => {
2705
+ if (s.state, o === "" || o === "/" || o === ">" || qt(o)) throw S(s.message, s.start.until(this.offset()));
2706
+ this.tokenizer.consume();
2707
+ }, Done: () => {
2708
+ } }, a;
2709
+ do
2710
+ a = this.tokenizer.peek(), i[s.state](a);
2711
+ while (s.state !== "Done" && a !== "");
2712
+ s.state;
2713
+ }
2714
+ reportSyntaxError(t) {
2715
+ throw S(t, this.offset().collapsed());
2716
+ }
2717
+ assembleConcatenatedValue(t) {
2718
+ for (let s of t) if (s.type !== "MustacheStatement" && s.type !== "TextNode") throw S(`Unsupported node in quoted attribute value: ${s.type}`, s.loc);
2719
+ let r = ni(t), n = Nr(t);
2720
+ return f.concat({ parts: t, loc: this.source.spanFor(r.loc).extend(this.source.spanFor(n.loc)) });
2721
+ }
2722
+ validateEndTag(t, r, n) {
2723
+ if (br.has(t.name) && !n) throw S(`<${t.name}> elements do not need end tags. You should remove it`, t.loc);
2724
+ if (r.tag === void 0) throw S(`Closing tag </${t.name}> without an open tag`, t.loc);
2725
+ if (r.tag !== t.name) throw S(`Closing tag </${t.name}> did not match last open tag <${r.tag}> (on line ${r.loc.startPosition.line})`, t.loc);
2726
+ }
2727
+ assembleAttributeValue(t, r, n, s) {
2728
+ if (n) {
2729
+ if (r) return this.assembleConcatenatedValue(t);
2730
+ {
2731
+ let [i, a] = t;
2732
+ if (a === void 0 || a.type === "TextNode" && a.chars === "/") return i;
2733
+ throw S("An unquoted attribute value must be a string or a mustache, preceded by whitespace or a '=' character, and followed by whitespace, a '>' character, or '/>'", s);
2734
+ }
2735
+ }
2736
+ return ue(t) ? t[0] : f.text({ chars: "", loc: s });
2737
+ }
2738
+ }, _class9);
2739
+ var pi = {};
2740
+ var Cr = class extends ur {
2741
+ constructor() {
2742
+ super({});
2743
+ }
2744
+ parse() {
2745
+ }
2746
+ };
2747
+ function Hn(e5, t = {}) {
2748
+ var c, h, p;
2749
+ let r, n, s, i = t.mode || "precompile";
2750
+ typeof e5 == "string" ? (r = new Et(e5, (c = t.meta) == null ? void 0 : c.moduleName), n = i === "codemod" ? Ne(e5, t.parseOptions) : cr(e5, t.parseOptions)) : e5 instanceof Et ? (r = e5, n = i === "codemod" ? Ne(e5.source, t.parseOptions) : cr(e5.source, t.parseOptions)) : (r = new Et("", (h = t.meta) == null ? void 0 : h.moduleName), n = e5), i === "codemod" && (s = new Cr());
2751
+ let a = D.forCharPositions(r, 0, r.source.length);
2752
+ n.loc = { source: "(program)", start: a.startPosition, end: a.endPosition };
2753
+ let o = new Tr(r, s, i).parse(n, _nullishCoalesce(t.locals, () => ( [])));
2754
+ if ((p = t == null ? void 0 : t.plugins) != null && p.ast) for (let m of t.plugins.ast) ui(o, m(rr({}, t, { syntax: pi }, { plugins: void 0 })).visitor);
2755
+ return o;
2756
+ }
2757
+ var fi = { resolution: () => xe.GetStrictKeyword, serialize: () => "Strict", isAngleBracket: false };
2758
+ var oo = { ...fi, isAngleBracket: true };
2759
+ var _e = `
2760
+ `;
2761
+ var Fn = "\r";
2762
+ var Un = function() {
2763
+ function e5(t) {
2764
+ this.length = t.length;
2765
+ for (var r = [0], n = 0; n < t.length; ) switch (t[n]) {
2766
+ case _e:
2767
+ n += _e.length, r.push(n);
2768
+ break;
2769
+ case Fn:
2770
+ n += Fn.length, t[n] === _e && (n += _e.length), r.push(n);
2771
+ break;
2772
+ default:
2773
+ n++;
2774
+ break;
2775
+ }
2776
+ this.offsets = r;
2777
+ }
2778
+ return e5.prototype.locationForIndex = function(t) {
2779
+ if (t < 0 || t > this.length) return null;
2780
+ for (var r = 0, n = this.offsets; n[r + 1] <= t; ) r++;
2781
+ var s = t - n[r];
2782
+ return { line: r, column: s };
2783
+ }, e5.prototype.indexForLocation = function(t) {
2784
+ var r = t.line, n = t.column;
2785
+ return r < 0 || r >= this.offsets.length || n < 0 || n > this.lengthOfLine(r) ? null : this.offsets[r] + n;
2786
+ }, e5.prototype.lengthOfLine = function(t) {
2787
+ var r = this.offsets[t], n = t === this.offsets.length - 1 ? this.length : this.offsets[t + 1];
2788
+ return n - r;
2789
+ }, e5;
2790
+ }();
2791
+ function mi(e5, t) {
2792
+ let r = new SyntaxError(e5 + " (" + t.loc.start.line + ":" + t.loc.start.column + ")");
2793
+ return Object.assign(r, t);
2794
+ }
2795
+ var Mn = mi;
2796
+ function di(e5) {
2797
+ let t = _nullishCoalesce(e5.children, () => ( e5.body));
2798
+ if (t) for (let r = 0; r < t.length - 1; r++) t[r].type === "TextNode" && t[r + 1].type === "MustacheStatement" && (t[r].chars = t[r].chars.replace(/\\$/u, "\\\\"));
2799
+ }
2800
+ function gi(e5) {
2801
+ let t = new Un(e5), r = ({ line: s, column: i }) => t.indexForLocation({ line: s - 1, column: i }), n = (s) => {
2802
+ let { start: i, end: a } = s.loc;
2803
+ i.offset = r(i), a.offset = r(a);
2804
+ };
2805
+ return () => ({ name: "prettierParsePlugin", visitor: { All(s) {
2806
+ n(s), di(s);
2807
+ } } });
2808
+ }
2809
+ function bi(e5) {
2810
+ let t;
2811
+ try {
2812
+ t = Hn(e5, { mode: "codemod", plugins: { ast: [gi(e5)] } });
2813
+ } catch (r) {
2814
+ let n = ki(r);
2815
+ if (n) {
2816
+ let s = yi(r);
2817
+ throw Mn(s, { loc: n, cause: r });
2818
+ }
2819
+ throw r;
2820
+ }
2821
+ return t;
2822
+ }
2823
+ function yi(e5) {
2824
+ let { message: t } = e5, r = t.split(`
2825
+ `);
2826
+ return r.length >= 4 && /^Parse error on line \d+:$/u.test(r[0]) && /^-*\^$/u.test(it(false, r, -2)) ? it(false, r, -1) : r.length >= 4 && /:\s?$/u.test(r[0]) && /^\(error occurred in '.*?' @ line \d+ : column \d+\)$/u.test(it(false, r, -1)) && r[1] === "" && it(false, r, -2) === "" && r.slice(2, -2).every((n) => n.startsWith("|")) ? r[0].trim().slice(0, -1) : t;
2827
+ }
2828
+ function ki(e5) {
2829
+ let { location: t, hash: r } = e5;
2830
+ if (t) {
2831
+ let { start: n, end: s } = t;
2832
+ return typeof s.line != "number" ? { start: n } : t;
2833
+ }
2834
+ if (r) {
2835
+ let { loc: { last_line: n, last_column: s } } = r;
2836
+ return { start: { line: n, column: s + 1 } };
2837
+ }
2838
+ }
2839
+ var Si = { parse: bi, astFormat: "glimmer", locStart: yt, locEnd: te };
2840
+ var vi = { glimmer: fn };
2841
+ var wo = Pr;
2842
+
2843
+
2844
+
2845
+
2846
+
2847
+ exports.default = wo; exports.languages = mn; exports.parsers = Ar; exports.printers = vi;