@kubb/core 3.0.0-alpha.15 → 3.0.0-alpha.16

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 (108) hide show
  1. package/dist/acorn-75VVZH4M.cjs +3015 -0
  2. package/dist/acorn-75VVZH4M.cjs.map +1 -0
  3. package/dist/acorn-BDQRFTH5.js +3009 -0
  4. package/dist/acorn-BDQRFTH5.js.map +1 -0
  5. package/dist/angular-7QLNOURG.js +1537 -0
  6. package/dist/angular-7QLNOURG.js.map +1 -0
  7. package/dist/angular-G25ZDZ3P.cjs +1543 -0
  8. package/dist/angular-G25ZDZ3P.cjs.map +1 -0
  9. package/dist/babel-CZJUWSVJ.cjs +6905 -0
  10. package/dist/babel-CZJUWSVJ.cjs.map +1 -0
  11. package/dist/babel-GWHGORSH.js +6899 -0
  12. package/dist/babel-GWHGORSH.js.map +1 -0
  13. package/dist/{chunk-LCONSKJV.cjs → chunk-CLBBHMA3.cjs} +8 -8
  14. package/dist/{chunk-LCONSKJV.cjs.map → chunk-CLBBHMA3.cjs.map} +1 -1
  15. package/dist/{chunk-GWZ4GG5H.cjs → chunk-HRFBE6CG.cjs} +10 -10
  16. package/dist/{chunk-GWZ4GG5H.cjs.map → chunk-HRFBE6CG.cjs.map} +1 -1
  17. package/dist/{chunk-IUN6LRFH.js → chunk-IS3U2E4B.js} +5 -4
  18. package/dist/chunk-IS3U2E4B.js.map +1 -0
  19. package/dist/{chunk-Z5PJTU5Y.cjs → chunk-J23TXIBZ.cjs} +12 -4
  20. package/dist/chunk-J23TXIBZ.cjs.map +1 -0
  21. package/dist/{chunk-E6CN2CZC.js → chunk-JSL2IBGJ.js} +3 -3
  22. package/dist/{chunk-E6CN2CZC.js.map → chunk-JSL2IBGJ.js.map} +1 -1
  23. package/dist/{chunk-HSOPQXAZ.cjs → chunk-KQAXIDXD.cjs} +36 -35
  24. package/dist/chunk-KQAXIDXD.cjs.map +1 -0
  25. package/dist/chunk-OSWGRZMH.js +12927 -0
  26. package/dist/chunk-OSWGRZMH.js.map +1 -0
  27. package/dist/chunk-PXLB77EH.cjs +12933 -0
  28. package/dist/chunk-PXLB77EH.cjs.map +1 -0
  29. package/dist/chunk-PZ5AY32C.js +9 -0
  30. package/dist/chunk-PZ5AY32C.js.map +1 -0
  31. package/dist/{chunk-7SY2AKJK.cjs → chunk-Q7NER2U2.cjs} +6 -6
  32. package/dist/{chunk-7SY2AKJK.cjs.map → chunk-Q7NER2U2.cjs.map} +1 -1
  33. package/dist/{chunk-U4NVHXG7.cjs → chunk-UEIL3SRH.cjs} +4 -4
  34. package/dist/{chunk-U4NVHXG7.cjs.map → chunk-UEIL3SRH.cjs.map} +1 -1
  35. package/dist/{chunk-HBQM723K.js → chunk-ZEL4DI72.js} +3 -3
  36. package/dist/{chunk-HBQM723K.js.map → chunk-ZEL4DI72.js.map} +1 -1
  37. package/dist/estree-4BFMOGHF.js +4367 -0
  38. package/dist/estree-4BFMOGHF.js.map +1 -0
  39. package/dist/estree-TXDUNIHF.cjs +4375 -0
  40. package/dist/estree-TXDUNIHF.cjs.map +1 -0
  41. package/dist/flow-VXQDDICF.js +26262 -0
  42. package/dist/flow-VXQDDICF.js.map +1 -0
  43. package/dist/flow-XCGHVA4N.cjs +26268 -0
  44. package/dist/flow-XCGHVA4N.cjs.map +1 -0
  45. package/dist/glimmer-FBL5UTXI.js +2844 -0
  46. package/dist/glimmer-FBL5UTXI.js.map +1 -0
  47. package/dist/glimmer-SRXJA5DC.cjs +2852 -0
  48. package/dist/glimmer-SRXJA5DC.cjs.map +1 -0
  49. package/dist/graphql-FUGWBNAY.cjs +1250 -0
  50. package/dist/graphql-FUGWBNAY.cjs.map +1 -0
  51. package/dist/graphql-VWUEBAX7.js +1241 -0
  52. package/dist/graphql-VWUEBAX7.js.map +1 -0
  53. package/dist/html-PE4V7PIZ.cjs +2754 -0
  54. package/dist/html-PE4V7PIZ.cjs.map +1 -0
  55. package/dist/html-SRQHPYU4.js +2745 -0
  56. package/dist/html-SRQHPYU4.js.map +1 -0
  57. package/dist/index.cjs +35 -35
  58. package/dist/index.cjs.map +1 -1
  59. package/dist/index.js +6 -5
  60. package/dist/index.js.map +1 -1
  61. package/dist/logger.cjs +7 -7
  62. package/dist/logger.js +3 -2
  63. package/dist/markdown-7H53GZRF.js +3319 -0
  64. package/dist/markdown-7H53GZRF.js.map +1 -0
  65. package/dist/markdown-MR7POCQ6.cjs +3328 -0
  66. package/dist/markdown-MR7POCQ6.cjs.map +1 -0
  67. package/dist/meriyah-GDT4GDJH.cjs +2356 -0
  68. package/dist/meriyah-GDT4GDJH.cjs.map +1 -0
  69. package/dist/meriyah-MBZURH4I.js +2350 -0
  70. package/dist/meriyah-MBZURH4I.js.map +1 -0
  71. package/dist/mocks.cjs +23350 -18
  72. package/dist/mocks.cjs.map +1 -1
  73. package/dist/mocks.d.cts +2 -1
  74. package/dist/mocks.d.ts +2 -1
  75. package/dist/mocks.js +23312 -17
  76. package/dist/mocks.js.map +1 -1
  77. package/dist/postcss-4NLPAMPV.cjs +4945 -0
  78. package/dist/postcss-4NLPAMPV.cjs.map +1 -0
  79. package/dist/postcss-TPQQRMEX.js +4936 -0
  80. package/dist/postcss-TPQQRMEX.js.map +1 -0
  81. package/dist/{prompt-WQQUN22Z.js → prompt-EWVFJSYF.js} +4 -3
  82. package/dist/prompt-EWVFJSYF.js.map +1 -0
  83. package/dist/{prompt-KR6JRAMC.cjs → prompt-FDRFKJA5.cjs} +62 -62
  84. package/dist/{prompt-KR6JRAMC.cjs.map → prompt-FDRFKJA5.cjs.map} +1 -1
  85. package/dist/transformers.cjs +23 -23
  86. package/dist/transformers.js +1 -0
  87. package/dist/transformers.js.map +1 -1
  88. package/dist/typescript-FX5DO2QH.cjs +19 -0
  89. package/dist/typescript-FX5DO2QH.cjs.map +1 -0
  90. package/dist/typescript-IRGFXOHK.js +4 -0
  91. package/dist/typescript-IRGFXOHK.js.map +1 -0
  92. package/dist/utils.cjs +17 -17
  93. package/dist/utils.js +2 -1
  94. package/dist/yaml-KXYJMJO6.cjs +4216 -0
  95. package/dist/yaml-KXYJMJO6.cjs.map +1 -0
  96. package/dist/yaml-Q6KMUOXF.js +4207 -0
  97. package/dist/yaml-Q6KMUOXF.js.map +1 -0
  98. package/package.json +8 -8
  99. package/src/FileManager.ts +1 -1
  100. package/src/__snapshots__/barrel.json +2 -0
  101. package/src/__snapshots__/grouped.json +12 -6
  102. package/src/__snapshots__/ordered.json +12 -6
  103. package/src/build.ts +1 -1
  104. package/src/utils/parser.ts +1 -0
  105. package/dist/chunk-HSOPQXAZ.cjs.map +0 -1
  106. package/dist/chunk-IUN6LRFH.js.map +0 -1
  107. package/dist/chunk-Z5PJTU5Y.cjs.map +0 -1
  108. package/dist/prompt-WQQUN22Z.js.map +0 -1
@@ -0,0 +1,2852 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var chunkJ23TXIBZ_cjs = require('./chunk-J23TXIBZ.cjs');
6
+
7
+ // ../../node_modules/.pnpm/prettier@3.3.3/node_modules/prettier/plugins/glimmer.mjs
8
+ chunkJ23TXIBZ_cjs.init_cjs_shims();
9
+ var rs = Object.defineProperty;
10
+ var Fr = (t5) => {
11
+ throw TypeError(t5);
12
+ };
13
+ var zt = (t5, e) => {
14
+ for (var r in e) rs(t5, r, { get: e[r], enumerable: true });
15
+ };
16
+ var Mr = (t5, e, r) => e.has(t5) || Fr("Cannot " + r);
17
+ var $ = (t5, e, r) => (Mr(t5, e, "read from private field"), e.get(t5));
18
+ var Gt = (t5, e, r) => e.has(t5) ? Fr("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t5) : e.set(t5, r);
19
+ var Yt = (t5, e, r, n) => (Mr(t5, e, "write to private field"), e.set(t5, r), r);
20
+ var Rr = {};
21
+ zt(Rr, { languages: () => Sn, parsers: () => Ir, printers: () => pa });
22
+ var ns = (t5, e, r, n) => {
23
+ if (!(t5 && e == null)) return e.replaceAll ? e.replaceAll(r, n) : r.global ? e.replace(r, n) : e.split(r).join(n);
24
+ };
25
+ var Kt = ns;
26
+ var ze = "string";
27
+ var Ge = "array";
28
+ var Ye = "cursor";
29
+ var Le = "indent";
30
+ var _e = "align";
31
+ var Ke = "trim";
32
+ var De = "group";
33
+ var Oe = "fill";
34
+ var Be = "if-break";
35
+ var We = "indent-if-break";
36
+ var $e = "line-suffix";
37
+ var je = "line-suffix-boundary";
38
+ var ee = "line";
39
+ var Qe = "label";
40
+ var Ie = "break-parent";
41
+ var ft = /* @__PURE__ */ new Set([Ye, Le, _e, Ke, De, Oe, Be, We, $e, je, ee, Qe, Ie]);
42
+ function ss(t5) {
43
+ if (typeof t5 == "string") return ze;
44
+ if (Array.isArray(t5)) return Ge;
45
+ if (!t5) return;
46
+ let { type: e } = t5;
47
+ if (ft.has(e)) return e;
48
+ }
49
+ var Xe = ss;
50
+ var is = (t5) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(t5);
51
+ function as(t5) {
52
+ let e = t5 === null ? "null" : typeof t5;
53
+ if (e !== "string" && e !== "object") return `Unexpected doc '${e}',
54
+ Expected it to be 'string' or 'object'.`;
55
+ if (Xe(t5)) throw new Error("doc is valid.");
56
+ let r = Object.prototype.toString.call(t5);
57
+ if (r !== "[object Object]") return `Unexpected doc '${r}'.`;
58
+ let n = is([...ft].map((s) => `'${s}'`));
59
+ return `Unexpected doc.type '${t5.type}'.
60
+ Expected it to be ${n}.`;
61
+ }
62
+ var Wt = class extends Error {
63
+ name = "InvalidDocError";
64
+ constructor(e) {
65
+ super(as(e)), this.doc = e;
66
+ }
67
+ };
68
+ var $t = Wt;
69
+ var zr = () => {
70
+ };
71
+ var dt = zr;
72
+ function R(t5) {
73
+ return { type: Le, contents: t5 };
74
+ }
75
+ function os(t5, e) {
76
+ return { type: _e, contents: e, n: t5 };
77
+ }
78
+ function q(t5, e = {}) {
79
+ return dt(e.expandedStates), { type: De, id: e.id, contents: t5, break: !!e.shouldBreak, expandedStates: e.expandedStates };
80
+ }
81
+ function jt(t5) {
82
+ return os(-1, t5);
83
+ }
84
+ function Qt(t5) {
85
+ return { type: Oe, parts: t5 };
86
+ }
87
+ function Xt(t5, e = "", r = {}) {
88
+ return { type: Be, breakContents: t5, flatContents: e, groupId: r.groupId };
89
+ }
90
+ var Gr = { type: Ie };
91
+ var ls = { type: ee, hard: true };
92
+ var cs = { type: ee, hard: true, literal: true };
93
+ var D = { type: ee };
94
+ var Y = { type: ee, soft: true };
95
+ var ye = [ls, Gr];
96
+ var Yr = [cs, Gr];
97
+ function Ee(t5, e) {
98
+ let r = [];
99
+ for (let n = 0; n < e.length; n++) n !== 0 && r.push(t5), r.push(e[n]);
100
+ return r;
101
+ }
102
+ var us = (t5, e, r) => {
103
+ if (!(t5 && e == null)) return Array.isArray(e) || typeof e == "string" ? e[r < 0 ? e.length + r : r] : e.at(r);
104
+ };
105
+ var oe = us;
106
+ function hs(t5, e) {
107
+ if (typeof t5 == "string") return e(t5);
108
+ let r = /* @__PURE__ */ new Map();
109
+ return n(t5);
110
+ function n(i) {
111
+ if (r.has(i)) return r.get(i);
112
+ let a = s(i);
113
+ return r.set(i, a), a;
114
+ }
115
+ function s(i) {
116
+ switch (Xe(i)) {
117
+ case Ge:
118
+ return e(i.map(n));
119
+ case Oe:
120
+ return e({ ...i, parts: i.parts.map(n) });
121
+ case Be:
122
+ return e({ ...i, breakContents: n(i.breakContents), flatContents: n(i.flatContents) });
123
+ case De: {
124
+ let { expandedStates: a, contents: o } = i;
125
+ return a ? (a = a.map(n), o = a[0]) : o = n(o), e({ ...i, contents: o, expandedStates: a });
126
+ }
127
+ case _e:
128
+ case Le:
129
+ case We:
130
+ case Qe:
131
+ case $e:
132
+ return e({ ...i, contents: n(i.contents) });
133
+ case ze:
134
+ case Ye:
135
+ case Ke:
136
+ case je:
137
+ case ee:
138
+ case Ie:
139
+ return e(i);
140
+ default:
141
+ throw new $t(i);
142
+ }
143
+ }
144
+ }
145
+ function Kr(t5, e = Yr) {
146
+ return hs(t5, (r) => typeof r == "string" ? Ee(e, r.split(`
147
+ `)) : r);
148
+ }
149
+ var mt = "'";
150
+ var Wr = '"';
151
+ function ps(t5, e) {
152
+ let r = e === true || e === mt ? mt : Wr, n = r === mt ? Wr : mt, s = 0, i = 0;
153
+ for (let a of t5) a === r ? s++ : a === n && i++;
154
+ return s > i ? n : r;
155
+ }
156
+ var gt = ps;
157
+ function Jt(t5) {
158
+ if (typeof t5 != "string") throw new TypeError("Expected a string");
159
+ return t5.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
160
+ }
161
+ var G;
162
+ var Zt = class {
163
+ constructor(e) {
164
+ Gt(this, G);
165
+ Yt(this, G, new Set(e));
166
+ }
167
+ getLeadingWhitespaceCount(e) {
168
+ let r = $(this, G), n = 0;
169
+ for (let s = 0; s < e.length && r.has(e.charAt(s)); s++) n++;
170
+ return n;
171
+ }
172
+ getTrailingWhitespaceCount(e) {
173
+ let r = $(this, G), n = 0;
174
+ for (let s = e.length - 1; s >= 0 && r.has(e.charAt(s)); s--) n++;
175
+ return n;
176
+ }
177
+ getLeadingWhitespace(e) {
178
+ let r = this.getLeadingWhitespaceCount(e);
179
+ return e.slice(0, r);
180
+ }
181
+ getTrailingWhitespace(e) {
182
+ let r = this.getTrailingWhitespaceCount(e);
183
+ return e.slice(e.length - r);
184
+ }
185
+ hasLeadingWhitespace(e) {
186
+ return $(this, G).has(e.charAt(0));
187
+ }
188
+ hasTrailingWhitespace(e) {
189
+ return $(this, G).has(oe(false, e, -1));
190
+ }
191
+ trimStart(e) {
192
+ let r = this.getLeadingWhitespaceCount(e);
193
+ return e.slice(r);
194
+ }
195
+ trimEnd(e) {
196
+ let r = this.getTrailingWhitespaceCount(e);
197
+ return e.slice(0, e.length - r);
198
+ }
199
+ trim(e) {
200
+ return this.trimEnd(this.trimStart(e));
201
+ }
202
+ split(e, r = false) {
203
+ let n = `[${Jt([...$(this, G)].join(""))}]+`, s = new RegExp(r ? `(${n})` : n, "u");
204
+ return e.split(s);
205
+ }
206
+ hasWhitespaceCharacter(e) {
207
+ let r = $(this, G);
208
+ return Array.prototype.some.call(e, (n) => r.has(n));
209
+ }
210
+ hasNonWhitespaceCharacter(e) {
211
+ let r = $(this, G);
212
+ return Array.prototype.some.call(e, (n) => !r.has(n));
213
+ }
214
+ isWhitespaceOnly(e) {
215
+ let r = $(this, G);
216
+ return Array.prototype.every.call(e, (n) => r.has(n));
217
+ }
218
+ };
219
+ G = /* @__PURE__ */ new WeakMap();
220
+ var $r = Zt;
221
+ var fs = [" ", `
222
+ `, "\f", "\r", " "];
223
+ var ds = new $r(fs);
224
+ var K = ds;
225
+ function ms(t5) {
226
+ return Array.isArray(t5) && t5.length > 0;
227
+ }
228
+ var Je = ms;
229
+ var er = class extends Error {
230
+ name = "UnexpectedNodeError";
231
+ constructor(e, r, n = "type") {
232
+ super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`), this.node = e;
233
+ }
234
+ };
235
+ var jr = er;
236
+ function Qr(t5, e) {
237
+ if (t5.type === "TextNode") {
238
+ let r = t5.chars.trim();
239
+ if (!r) return null;
240
+ e.chars = K.split(r).join(" ");
241
+ }
242
+ t5.type === "ElementNode" && (delete e.startTag, delete e.openTag, delete e.parts, delete e.endTag, delete e.closeTag, delete e.nameNode, delete e.body, delete e.blockParamNodes, delete e.params, delete e.path), t5.type === "Block" && (delete e.blockParamNodes, delete e.params), t5.type === "AttrNode" && t5.name.toLowerCase() === "class" && delete e.value, t5.type === "PathExpression" && (e.head = t5.head.original);
243
+ }
244
+ Qr.ignoredProperties = /* @__PURE__ */ new Set(["loc", "selfClosing"]);
245
+ var Xr = Qr;
246
+ var Ze = null;
247
+ function et(t5) {
248
+ if (Ze !== null && typeof Ze.property) {
249
+ let e = Ze;
250
+ return Ze = et.prototype = null, e;
251
+ }
252
+ return Ze = et.prototype = t5 ?? /* @__PURE__ */ Object.create(null), new et();
253
+ }
254
+ var gs = 10;
255
+ for (let t5 = 0; t5 <= gs; t5++) et();
256
+ function tr(t5) {
257
+ return et(t5);
258
+ }
259
+ function bs(t5, e = "type") {
260
+ tr(t5);
261
+ function r(n) {
262
+ let s = n[e], i = t5[s];
263
+ if (!Array.isArray(i)) throw Object.assign(new Error(`Missing visitor keys for '${s}'.`), { node: n });
264
+ return i;
265
+ }
266
+ return r;
267
+ }
268
+ var Jr = bs;
269
+ var Zr = { 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"] };
270
+ var ys = Jr(Zr);
271
+ var en = ys;
272
+ function Se(t5) {
273
+ return t5.loc.start.offset;
274
+ }
275
+ function tt(t5) {
276
+ return t5.loc.end.offset;
277
+ }
278
+ var tn = /* @__PURE__ */ new Set(["area", "base", "br", "col", "command", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]);
279
+ function nn(t5) {
280
+ return t5.toUpperCase() === t5;
281
+ }
282
+ function Es(t5) {
283
+ return t5.type === "ElementNode" && typeof t5.tag == "string" && !t5.tag.startsWith(":") && (nn(t5.tag[0]) || t5.tag.includes("."));
284
+ }
285
+ function Ss(t5) {
286
+ return tn.has(t5.toLowerCase()) && !nn(t5[0]);
287
+ }
288
+ function rr(t5) {
289
+ return t5.selfClosing === true || Ss(t5.tag) || Es(t5) && t5.children.every((e) => bt(e));
290
+ }
291
+ function bt(t5) {
292
+ return t5.type === "TextNode" && !/\S/u.test(t5.chars);
293
+ }
294
+ function rn(t5) {
295
+ return (t5 == null ? void 0 : t5.type) === "MustacheCommentStatement" && typeof t5.value == "string" && t5.value.trim() === "prettier-ignore";
296
+ }
297
+ function sn(t5) {
298
+ return rn(t5.node) || t5.isInArray && (t5.key === "children" || t5.key === "body" || t5.key === "parts") && rn(t5.siblings[t5.index - 2]);
299
+ }
300
+ var fn = 2;
301
+ function ws(t5, e, r) {
302
+ var s, i, a, o, c, p, h, d, N;
303
+ let { node: n } = t5;
304
+ switch (n.type) {
305
+ case "Block":
306
+ case "Program":
307
+ case "Template":
308
+ return q(t5.map(r, "body"));
309
+ case "ElementNode": {
310
+ let g = q(Ts(t5, r)), T = e.htmlWhitespaceSensitivity === "ignore" && ((s = t5.next) == null ? void 0 : s.type) === "ElementNode" ? Y : "";
311
+ if (rr(n)) return [g, T];
312
+ let x = ["</", n.tag, ">"];
313
+ return n.children.length === 0 ? [g, R(x), T] : e.htmlWhitespaceSensitivity === "ignore" ? [g, R(an(t5, e, r)), ye, R(x), T] : [g, R(q(an(t5, e, r))), R(x), T];
314
+ }
315
+ case "BlockStatement":
316
+ return Cs(t5) ? [Ls(t5, r), cn(t5, r, e), un(t5, r, e)] : [Ps(t5, r), q([cn(t5, r, e), un(t5, r, e), _s(t5, r, e)])];
317
+ case "ElementModifierStatement":
318
+ return q(["{{", pn(t5, r), "}}"]);
319
+ case "MustacheStatement":
320
+ return q([yt(n), pn(t5, r), Et(n)]);
321
+ case "SubExpression":
322
+ return q(["(", Hs(t5, r), Y, ")"]);
323
+ case "AttrNode": {
324
+ let { name: g, value: T } = n, x = T.type === "TextNode";
325
+ if (x && T.chars === "" && Se(T) === tt(T)) return g;
326
+ let v = x ? gt(T.chars, e.singleQuote) : T.type === "ConcatStatement" ? gt(T.parts.map((H) => H.type === "TextNode" ? H.chars : "").join(""), e.singleQuote) : "", M = r("value");
327
+ return [g, "=", v, g === "class" && v ? q(R(M)) : M, v];
328
+ }
329
+ case "ConcatStatement":
330
+ return t5.map(r, "parts");
331
+ case "Hash":
332
+ return Ee(D, t5.map(r, "pairs"));
333
+ case "HashPair":
334
+ return [n.key, "=", r("value")];
335
+ case "TextNode": {
336
+ let g = Kt(false, n.chars, "{{", String.raw`\{{`), T = Os(t5);
337
+ if (T) {
338
+ if (T === "class") {
339
+ let J = g.trim().split(/\s+/u).join(" "), re = false, V = false;
340
+ return t5.parent.type === "ConcatStatement" && (((i = t5.previous) == null ? void 0 : i.type) === "MustacheStatement" && /^\s/u.test(g) && (re = true), ((a = t5.next) == null ? void 0 : a.type) === "MustacheStatement" && /\s$/u.test(g) && J !== "" && (V = true)), [re ? D : "", J, V ? D : ""];
341
+ }
342
+ return Kr(g);
343
+ }
344
+ let x = K.isWhitespaceOnly(g), { isFirst: C, isLast: v } = t5;
345
+ if (e.htmlWhitespaceSensitivity !== "ignore") {
346
+ let J = v && t5.parent.type === "Template", re = C && t5.parent.type === "Template";
347
+ if (x) {
348
+ if (re || J) return "";
349
+ let _ = [D], se = Re(g);
350
+ return se && (_ = rt(se)), v && (_ = _.map((ut) => jt(ut))), _;
351
+ }
352
+ let V = K.getLeadingWhitespace(g), Pe = [];
353
+ if (V) {
354
+ Pe = [D];
355
+ let _ = Re(V);
356
+ _ && (Pe = rt(_)), g = g.slice(V.length);
357
+ }
358
+ let U = K.getTrailingWhitespace(g), ne = [];
359
+ if (U) {
360
+ if (!J) {
361
+ ne = [D];
362
+ let _ = Re(U);
363
+ _ && (ne = rt(_)), v && (ne = ne.map((se) => jt(se)));
364
+ }
365
+ g = g.slice(0, -U.length);
366
+ }
367
+ return [...Pe, Qt(hn(g)), ...ne];
368
+ }
369
+ let M = Re(g), H = Bs(g), X = Is(g);
370
+ if ((C || v) && x && (t5.parent.type === "Block" || t5.parent.type === "ElementNode" || t5.parent.type === "Template")) return "";
371
+ x && M ? (H = Math.min(M, fn), X = 0) : ((((o = t5.next) == null ? void 0 : o.type) === "BlockStatement" || ((c = t5.next) == null ? void 0 : c.type) === "ElementNode") && (X = Math.max(X, 1)), (((p = t5.previous) == null ? void 0 : p.type) === "BlockStatement" || ((h = t5.previous) == null ? void 0 : h.type) === "ElementNode") && (H = Math.max(H, 1)));
372
+ let ve = "", Ae = "";
373
+ return X === 0 && ((d = t5.next) == null ? void 0 : d.type) === "MustacheStatement" && (Ae = " "), H === 0 && ((N = t5.previous) == null ? void 0 : N.type) === "MustacheStatement" && (ve = " "), C && (H = 0, ve = ""), v && (X = 0, Ae = ""), K.hasLeadingWhitespace(g) && (g = ve + K.trimStart(g)), K.hasTrailingWhitespace(g) && (g = K.trimEnd(g) + Ae), [...rt(H), Qt(hn(g)), ...rt(X)];
374
+ }
375
+ case "MustacheCommentStatement": {
376
+ let g = Se(n), T = tt(n), x = e.originalText.charAt(g + 2) === "~", C = e.originalText.charAt(T - 3) === "~", v = n.value.includes("}}") ? "--" : "";
377
+ return ["{{", x ? "~" : "", "!", v, n.value, v, C ? "~" : "", "}}"];
378
+ }
379
+ case "PathExpression":
380
+ return Ms(n);
381
+ case "BooleanLiteral":
382
+ return String(n.value);
383
+ case "CommentStatement":
384
+ return ["<!--", n.value, "-->"];
385
+ case "StringLiteral":
386
+ return Rs(t5, e);
387
+ case "NumberLiteral":
388
+ return String(n.value);
389
+ case "UndefinedLiteral":
390
+ return "undefined";
391
+ case "NullLiteral":
392
+ return "null";
393
+ case "AtHead":
394
+ case "VarHead":
395
+ case "ThisHead":
396
+ default:
397
+ throw new jr(n, "Handlebars");
398
+ }
399
+ }
400
+ function ks(t5, e) {
401
+ return Se(t5) - Se(e);
402
+ }
403
+ function Ts(t5, e) {
404
+ let { node: r } = t5, n = ["attributes", "modifiers", "comments"].filter((i) => Je(r[i])), s = n.flatMap((i) => r[i]).sort(ks);
405
+ for (let i of n) t5.each(({ node: a }) => {
406
+ let o = s.indexOf(a);
407
+ s.splice(o, 1, [D, e()]);
408
+ }, i);
409
+ return Je(r.blockParams) && s.push(D, sr(r)), ["<", r.tag, R(s), Ns(r)];
410
+ }
411
+ function an(t5, e, r) {
412
+ let { node: n } = t5, s = n.children.every((i) => bt(i));
413
+ return e.htmlWhitespaceSensitivity === "ignore" && s ? "" : t5.map(({ isFirst: i }) => {
414
+ let a = r();
415
+ return i && e.htmlWhitespaceSensitivity === "ignore" ? [Y, a] : a;
416
+ }, "children");
417
+ }
418
+ function Ns(t5) {
419
+ return rr(t5) ? Xt([Y, "/>"], [" />", Y]) : Xt([Y, ">"], ">");
420
+ }
421
+ function yt(t5) {
422
+ var n;
423
+ let e = t5.trusting ? "{{{" : "{{", r = (n = t5.strip) != null && n.open ? "~" : "";
424
+ return [e, r];
425
+ }
426
+ function Et(t5) {
427
+ var n;
428
+ let e = t5.trusting ? "}}}" : "}}";
429
+ return [(n = t5.strip) != null && n.close ? "~" : "", e];
430
+ }
431
+ function vs(t5) {
432
+ let e = yt(t5), r = t5.openStrip.open ? "~" : "";
433
+ return [e, r, "#"];
434
+ }
435
+ function As(t5) {
436
+ let e = Et(t5);
437
+ return [t5.openStrip.close ? "~" : "", e];
438
+ }
439
+ function on(t5) {
440
+ let e = yt(t5), r = t5.closeStrip.open ? "~" : "";
441
+ return [e, r, "/"];
442
+ }
443
+ function ln(t5) {
444
+ let e = Et(t5);
445
+ return [t5.closeStrip.close ? "~" : "", e];
446
+ }
447
+ function dn(t5) {
448
+ let e = yt(t5), r = t5.inverseStrip.open ? "~" : "";
449
+ return [e, r];
450
+ }
451
+ function mn(t5) {
452
+ let e = Et(t5);
453
+ return [t5.inverseStrip.close ? "~" : "", e];
454
+ }
455
+ function Ps(t5, e) {
456
+ let { node: r } = t5, n = [], s = St(t5, e);
457
+ return s && n.push(q(s)), Je(r.program.blockParams) && n.push(sr(r.program)), q([vs(r), nr(t5, e), n.length > 0 ? R([D, Ee(D, n)]) : "", Y, As(r)]);
458
+ }
459
+ function xs(t5, e) {
460
+ return [e.htmlWhitespaceSensitivity === "ignore" ? ye : "", dn(t5), "else", mn(t5)];
461
+ }
462
+ var gn = (t5, e) => t5.head.type === "VarHead" && e.head.type === "VarHead" && t5.head.name === e.head.name;
463
+ function Cs(t5) {
464
+ var n;
465
+ let { grandparent: e, node: r } = t5;
466
+ return ((n = e == null ? void 0 : e.inverse) == null ? void 0 : n.body.length) === 1 && e.inverse.body[0] === r && gn(e.inverse.body[0].path, e.path);
467
+ }
468
+ function Ls(t5, e) {
469
+ let { node: r, grandparent: n } = t5;
470
+ return q([dn(n), ["else", " ", n.inverse.body[0].path.head.name], R([D, q(St(t5, e)), ...Je(r.program.blockParams) ? [D, sr(r.program)] : []]), Y, mn(n)]);
471
+ }
472
+ function _s(t5, e, r) {
473
+ let { node: n } = t5;
474
+ return r.htmlWhitespaceSensitivity === "ignore" ? [bn(n) ? Y : ye, on(n), e("path"), ln(n)] : [on(n), e("path"), ln(n)];
475
+ }
476
+ function bn(t5) {
477
+ return t5.type === "BlockStatement" && t5.program.body.every((e) => bt(e));
478
+ }
479
+ function Ds(t5) {
480
+ return yn(t5) && t5.inverse.body.length === 1 && t5.inverse.body[0].type === "BlockStatement" && gn(t5.inverse.body[0].path, t5.path);
481
+ }
482
+ function yn(t5) {
483
+ return t5.type === "BlockStatement" && t5.inverse;
484
+ }
485
+ function cn(t5, e, r) {
486
+ let { node: n } = t5;
487
+ if (bn(n)) return "";
488
+ let s = e("program");
489
+ return r.htmlWhitespaceSensitivity === "ignore" ? R([ye, s]) : R(s);
490
+ }
491
+ function un(t5, e, r) {
492
+ let { node: n } = t5, s = e("inverse"), i = r.htmlWhitespaceSensitivity === "ignore" ? [ye, s] : s;
493
+ return Ds(n) ? i : yn(n) ? [xs(n, r), R(i)] : "";
494
+ }
495
+ function hn(t5) {
496
+ return Ee(D, K.split(t5));
497
+ }
498
+ function Os(t5) {
499
+ for (let e = 0; e < 2; e++) {
500
+ let r = t5.getParentNode(e);
501
+ if ((r == null ? void 0 : r.type) === "AttrNode") return r.name.toLowerCase();
502
+ }
503
+ }
504
+ function Re(t5) {
505
+ return t5 = typeof t5 == "string" ? t5 : "", t5.split(`
506
+ `).length - 1;
507
+ }
508
+ function Bs(t5) {
509
+ t5 = typeof t5 == "string" ? t5 : "";
510
+ let e = (t5.match(/^([^\S\n\r]*[\n\r])+/gu) || [])[0] || "";
511
+ return Re(e);
512
+ }
513
+ function Is(t5) {
514
+ t5 = typeof t5 == "string" ? t5 : "";
515
+ let e = (t5.match(/([\n\r][^\S\n\r]*)+$/gu) || [])[0] || "";
516
+ return Re(e);
517
+ }
518
+ function rt(t5 = 0) {
519
+ return Array.from({ length: Math.min(t5, fn) }).fill(ye);
520
+ }
521
+ function Rs(t5, e) {
522
+ let { node: { value: r } } = t5, n = gt(r, qs(t5) ? !e.singleQuote : e.singleQuote);
523
+ return [n, Kt(false, r, n, `\\${n}`), n];
524
+ }
525
+ function qs(t5) {
526
+ let { ancestors: e } = t5, r = e.findIndex((n) => n.type !== "SubExpression");
527
+ return r !== -1 && e[r + 1].type === "ConcatStatement" && e[r + 2].type === "AttrNode";
528
+ }
529
+ function Hs(t5, e) {
530
+ let r = nr(t5, e), n = St(t5, e);
531
+ return n ? R([r, D, q(n)]) : r;
532
+ }
533
+ function pn(t5, e) {
534
+ let r = nr(t5, e), n = St(t5, e);
535
+ return n ? [R([r, D, n]), Y] : r;
536
+ }
537
+ function nr(t5, e) {
538
+ return e("path");
539
+ }
540
+ function St(t5, e) {
541
+ var s;
542
+ let { node: r } = t5, n = [];
543
+ return r.params.length > 0 && n.push(...t5.map(e, "params")), ((s = r.hash) == null ? void 0 : s.pairs.length) > 0 && n.push(e("hash")), n.length === 0 ? "" : Ee(D, n);
544
+ }
545
+ function sr(t5) {
546
+ return ["as |", t5.blockParams.join(" "), "|"];
547
+ }
548
+ var Vs = new Set("!\"#%&'()*+,./;<=>@[\\]^`{|}~");
549
+ var Us = /* @__PURE__ */ new Set(["true", "false", "null", "undefined"]);
550
+ var Fs = (t5, e) => e === 0 && t5.startsWith("@") ? false : e !== 0 && Us.has(t5) || /\s/u.test(t5) || /^\d/u.test(t5) || Array.prototype.some.call(t5, (r) => Vs.has(r));
551
+ function Ms(t5) {
552
+ return t5.tail.length === 0 && t5.original.includes("/") ? t5.original : [t5.head.original, ...t5.tail].map((r, n) => Fs(r, n) ? `[${r}]` : r).join(".");
553
+ }
554
+ var zs = { print: ws, massageAstNode: Xr, hasPrettierIgnore: sn, getVisitorKeys: en };
555
+ var En = zs;
556
+ var Sn = [{ linguistLanguageId: 155, name: "Handlebars", type: "markup", color: "#f7931e", aliases: ["hbs", "htmlbars"], extensions: [".handlebars", ".hbs"], tmScope: "text.html.handlebars", aceMode: "handlebars", parsers: ["glimmer"], vscodeLanguageIds: ["handlebars"] }];
557
+ var Ir = {};
558
+ zt(Ir, { glimmer: () => ha });
559
+ function w(t5, e) {
560
+ if (!t5) throw new Error(e || "assertion failure");
561
+ }
562
+ function F(t5) {
563
+ Js.warn(`DEPRECATION: ${t5}`);
564
+ }
565
+ function kt(t5) {
566
+ if (t5 == null) throw new Error("Expected value to be present");
567
+ return t5;
568
+ }
569
+ function Tn(t5, e) {
570
+ if (t5 == null) throw new Error(e);
571
+ return t5;
572
+ }
573
+ function we(t5) {
574
+ return t5.length > 0;
575
+ }
576
+ function Tt(t5, e = "unexpected empty list") {
577
+ if (!we(t5)) throw new Error(e);
578
+ }
579
+ function qe(t5, e = "unexpected empty list") {
580
+ return Tt(t5, e), t5;
581
+ }
582
+ function Nt(t5) {
583
+ return t5.length === 0 ? void 0 : t5[t5.length - 1];
584
+ }
585
+ function Nn(t5) {
586
+ return t5.length === 0 ? void 0 : t5[0];
587
+ }
588
+ var ir = function(t5) {
589
+ return t5[t5.MAX_SMI = 1073741823] = "MAX_SMI", t5[t5.MIN_SMI = -1073741824] = "MIN_SMI", t5[t5.SIGN_BIT = -536870913] = "SIGN_BIT", t5[t5.MAX_INT = 536870911] = "MAX_INT", t5[t5.MIN_INT = -536870912] = "MIN_INT", t5[t5.FALSE_HANDLE = 0] = "FALSE_HANDLE", t5[t5.TRUE_HANDLE = 1] = "TRUE_HANDLE", t5[t5.NULL_HANDLE = 2] = "NULL_HANDLE", t5[t5.UNDEFINED_HANDLE = 3] = "UNDEFINED_HANDLE", t5[t5.ENCODED_FALSE_HANDLE = 0] = "ENCODED_FALSE_HANDLE", t5[t5.ENCODED_TRUE_HANDLE = 1] = "ENCODED_TRUE_HANDLE", t5[t5.ENCODED_NULL_HANDLE = 2] = "ENCODED_NULL_HANDLE", t5[t5.ENCODED_UNDEFINED_HANDLE = 3] = "ENCODED_UNDEFINED_HANDLE", t5;
590
+ }({});
591
+ function Ks(t5) {
592
+ return t5 & ir.SIGN_BIT;
593
+ }
594
+ function Ws(t5) {
595
+ return t5 | ~ir.SIGN_BIT;
596
+ }
597
+ function $s(t5) {
598
+ return ~t5;
599
+ }
600
+ function js(t5) {
601
+ return ~t5;
602
+ }
603
+ function Qs(t5) {
604
+ return t5 |= 0, t5 < 0 ? Ks(t5) : $s(t5);
605
+ }
606
+ function Xs(t5) {
607
+ return t5 |= 0, t5 > ir.SIGN_BIT ? js(t5) : Ws(t5);
608
+ }
609
+ [1, -1].forEach((t5) => Xs(Qs(t5)));
610
+ var ar = Object.assign;
611
+ var Js = console;
612
+ var wn = console;
613
+ function vn(t5, e = "unexpected unreachable branch") {
614
+ throw wn.log("unreachable", t5), wn.log(`${e} :: ${JSON.stringify(t5)} (${t5})`), new Error("code reached unreachable");
615
+ }
616
+ var Zs = function() {
617
+ var t5 = function(ie, m, E, b) {
618
+ for (E = E || {}, b = ie.length; b--; E[ie[b]] = m) ;
619
+ return E;
620
+ }, e = [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], p = [1, 33], h = [1, 34], d = [1, 37], N = [14, 15, 19, 29, 34, 39, 44, 47, 48, 52, 56, 60], g = [14, 15, 19, 29, 34, 44, 47, 48, 52, 56, 60], T = [15, 18], x = [14, 15, 19, 29, 34, 47, 48, 52, 56, 60], C = [33, 64, 71, 79, 80, 81, 82, 83, 84], v = [23, 33, 55, 64, 67, 71, 74, 79, 80, 81, 82, 83, 84], M = [1, 51], H = [23, 33, 55, 64, 67, 71, 74, 79, 80, 81, 82, 83, 84, 86], X = [2, 43], ve = [55, 64, 71, 79, 80, 81, 82, 83, 84], Ae = [1, 58], J = [1, 59], re = [1, 66], V = [33, 64, 71, 74, 79, 80, 81, 82, 83, 84], Pe = [23, 64, 71, 79, 80, 81, 82, 83, 84], U = [1, 76], ne = [64, 67, 71, 79, 80, 81, 82, 83, 84], _ = [33, 74], se = [23, 33, 55, 67, 71, 74], ut = [1, 106], It = [1, 118], qr = [71, 76], Rt = { trace: function() {
621
+ }, 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(m, E, b, y, P, l, xe) {
622
+ var u = l.length - 1;
623
+ switch (P) {
624
+ case 1:
625
+ return l[u - 1];
626
+ case 2:
627
+ this.$ = y.prepareProgram(l[u]);
628
+ break;
629
+ case 3:
630
+ case 4:
631
+ case 5:
632
+ case 6:
633
+ case 7:
634
+ case 8:
635
+ case 20:
636
+ case 27:
637
+ case 28:
638
+ case 33:
639
+ case 34:
640
+ this.$ = l[u];
641
+ break;
642
+ case 9:
643
+ this.$ = { type: "CommentStatement", value: y.stripComment(l[u]), strip: y.stripFlags(l[u], l[u]), loc: y.locInfo(this._$) };
644
+ break;
645
+ case 10:
646
+ this.$ = { type: "ContentStatement", original: l[u], value: l[u], loc: y.locInfo(this._$) };
647
+ break;
648
+ case 11:
649
+ this.$ = y.prepareRawBlock(l[u - 2], l[u - 1], l[u], this._$);
650
+ break;
651
+ case 12:
652
+ this.$ = { path: l[u - 3], params: l[u - 2], hash: l[u - 1] };
653
+ break;
654
+ case 13:
655
+ this.$ = y.prepareBlock(l[u - 3], l[u - 2], l[u - 1], l[u], false, this._$);
656
+ break;
657
+ case 14:
658
+ this.$ = y.prepareBlock(l[u - 3], l[u - 2], l[u - 1], l[u], true, this._$);
659
+ break;
660
+ case 15:
661
+ 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]) };
662
+ break;
663
+ case 16:
664
+ case 17:
665
+ 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]) };
666
+ break;
667
+ case 18:
668
+ this.$ = { strip: y.stripFlags(l[u - 1], l[u - 1]), program: l[u] };
669
+ break;
670
+ case 19:
671
+ var ae = y.prepareBlock(l[u - 2], l[u - 1], l[u], l[u], false, this._$), Me = y.prepareProgram([ae], l[u - 1].loc);
672
+ Me.chained = true, this.$ = { strip: l[u - 2].strip, program: Me, chain: true };
673
+ break;
674
+ case 21:
675
+ this.$ = { path: l[u - 1], strip: y.stripFlags(l[u - 2], l[u]) };
676
+ break;
677
+ case 22:
678
+ case 23:
679
+ this.$ = y.prepareMustache(l[u - 3], l[u - 2], l[u - 1], l[u - 4], y.stripFlags(l[u - 4], l[u]), this._$);
680
+ break;
681
+ case 24:
682
+ 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._$) };
683
+ break;
684
+ case 25:
685
+ this.$ = y.preparePartialBlock(l[u - 2], l[u - 1], l[u], this._$);
686
+ break;
687
+ case 26:
688
+ this.$ = { path: l[u - 3], params: l[u - 2], hash: l[u - 1], strip: y.stripFlags(l[u - 4], l[u]) };
689
+ break;
690
+ case 29:
691
+ this.$ = { type: "SubExpression", path: l[u - 3], params: l[u - 2], hash: l[u - 1], loc: y.locInfo(this._$) };
692
+ break;
693
+ case 30:
694
+ this.$ = { type: "Hash", pairs: l[u], loc: y.locInfo(this._$) };
695
+ break;
696
+ case 31:
697
+ this.$ = { type: "HashPair", key: y.id(l[u - 2]), value: l[u], loc: y.locInfo(this._$) };
698
+ break;
699
+ case 32:
700
+ this.$ = y.id(l[u - 1]);
701
+ break;
702
+ case 35:
703
+ this.$ = { type: "StringLiteral", value: l[u], original: l[u], loc: y.locInfo(this._$) };
704
+ break;
705
+ case 36:
706
+ this.$ = { type: "NumberLiteral", value: Number(l[u]), original: Number(l[u]), loc: y.locInfo(this._$) };
707
+ break;
708
+ case 37:
709
+ this.$ = { type: "BooleanLiteral", value: l[u] === "true", original: l[u] === "true", loc: y.locInfo(this._$) };
710
+ break;
711
+ case 38:
712
+ this.$ = { type: "UndefinedLiteral", original: void 0, value: void 0, loc: y.locInfo(this._$) };
713
+ break;
714
+ case 39:
715
+ this.$ = { type: "NullLiteral", original: null, value: null, loc: y.locInfo(this._$) };
716
+ break;
717
+ case 40:
718
+ this.$ = y.preparePath(true, l[u], this._$);
719
+ break;
720
+ case 41:
721
+ this.$ = y.preparePath(false, l[u], this._$);
722
+ break;
723
+ case 42:
724
+ l[u - 2].push({ part: y.id(l[u]), original: l[u], separator: l[u - 1] }), this.$ = l[u - 2];
725
+ break;
726
+ case 43:
727
+ this.$ = [{ part: y.id(l[u]), original: l[u] }];
728
+ break;
729
+ case 44:
730
+ case 46:
731
+ case 48:
732
+ case 56:
733
+ case 62:
734
+ case 68:
735
+ case 76:
736
+ case 80:
737
+ case 84:
738
+ case 88:
739
+ case 92:
740
+ this.$ = [];
741
+ break;
742
+ case 45:
743
+ case 47:
744
+ case 49:
745
+ case 57:
746
+ case 63:
747
+ case 69:
748
+ case 77:
749
+ case 81:
750
+ case 85:
751
+ case 89:
752
+ case 93:
753
+ case 97:
754
+ case 99:
755
+ l[u - 1].push(l[u]);
756
+ break;
757
+ case 96:
758
+ case 98:
759
+ this.$ = [l[u]];
760
+ break;
761
+ }
762
+ }, table: [t5([5, 14, 15, 19, 29, 34, 48, 52, 56, 60], e, { 3: 1, 4: 2, 6: 3 }), { 1: [3] }, { 5: [1, 4] }, t5([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] }, t5(n, [2, 45]), t5(n, [2, 3]), t5(n, [2, 4]), t5(n, [2, 5]), t5(n, [2, 6]), t5(n, [2, 7]), t5(n, [2, 8]), t5(n, [2, 9]), { 20: 26, 49: 25, 63: 27, 64: s, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, { 20: 26, 49: 39, 63: 27, 64: s, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, t5(N, e, { 6: 3, 4: 40 }), t5(g, e, { 6: 3, 4: 41 }), t5(T, [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: p, 83: h, 84: d, 85: 36 }, t5(x, e, { 6: 3, 4: 44 }), t5([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: p, 83: h, 84: d, 85: 36 }, { 20: 46, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, { 20: 47, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, { 20: 26, 49: 48, 63: 27, 64: s, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, t5(C, [2, 76], { 50: 49 }), t5(v, [2, 27]), t5(v, [2, 28]), t5(v, [2, 33]), t5(v, [2, 34]), t5(v, [2, 35]), t5(v, [2, 36]), t5(v, [2, 37]), t5(v, [2, 38]), t5(v, [2, 39]), { 20: 26, 49: 50, 63: 27, 64: s, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, t5(v, [2, 41], { 86: M }), { 71: i, 85: 52 }, t5(H, X), t5(ve, [2, 80], { 53: 53 }), { 25: 54, 38: 56, 39: Ae, 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] }, t5(C, [2, 84], { 57: 64 }), { 26: 65, 47: re }, t5(V, [2, 56], { 30: 67 }), t5(V, [2, 62], { 35: 68 }), t5(Pe, [2, 48], { 21: 69 }), t5(C, [2, 88], { 61: 70 }), { 20: 26, 33: [2, 78], 49: 72, 51: 71, 63: 27, 64: s, 68: 73, 69: 74, 70: 75, 71: U, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, t5(ne, [2, 92], { 65: 77 }), { 71: [1, 78] }, t5(v, [2, 40], { 86: M }), { 20: 26, 49: 80, 54: 79, 55: [2, 82], 63: 27, 64: s, 68: 81, 69: 74, 70: 75, 71: U, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, { 26: 82, 47: re }, { 47: [2, 53] }, t5(N, e, { 6: 3, 4: 83 }), { 47: [2, 20] }, { 20: 84, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, t5(x, e, { 6: 3, 4: 85 }), { 26: 86, 47: re }, { 47: [2, 55] }, t5(n, [2, 11]), t5(T, [2, 47]), { 20: 26, 33: [2, 86], 49: 88, 58: 87, 63: 27, 64: s, 68: 89, 69: 74, 70: 75, 71: U, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, t5(n, [2, 25]), { 20: 90, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, t5(_, [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: U, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d }), t5(_, [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: U, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d }), { 20: 26, 22: 97, 23: [2, 50], 49: 98, 63: 27, 64: s, 68: 99, 69: 74, 70: 75, 71: U, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, { 20: 26, 33: [2, 90], 49: 101, 62: 100, 63: 27, 64: s, 68: 102, 69: 74, 70: 75, 71: U, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, { 33: [1, 103] }, t5(C, [2, 77]), { 33: [2, 79] }, t5([23, 33, 55, 67, 74], [2, 30], { 70: 104, 71: [1, 105] }), t5(se, [2, 96]), t5(H, X, { 72: ut }), { 20: 26, 49: 108, 63: 27, 64: s, 66: 107, 67: [2, 94], 68: 109, 69: 74, 70: 75, 71: U, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, t5(H, [2, 42]), { 55: [1, 110] }, t5(ve, [2, 81]), { 55: [2, 83] }, t5(n, [2, 13]), { 38: 56, 39: Ae, 43: 57, 44: J, 45: 112, 46: 111, 47: [2, 74] }, t5(V, [2, 68], { 40: 113 }), { 47: [2, 18] }, t5(n, [2, 14]), { 33: [1, 114] }, t5(C, [2, 85]), { 33: [2, 87] }, { 33: [1, 115] }, { 32: 116, 33: [2, 60], 73: 117, 74: It }, t5(V, [2, 57]), t5(_, [2, 59]), { 33: [2, 66], 37: 119, 73: 120, 74: It }, t5(V, [2, 63]), t5(_, [2, 65]), { 23: [1, 121] }, t5(Pe, [2, 49]), { 23: [2, 51] }, { 33: [1, 122] }, t5(C, [2, 89]), { 33: [2, 91] }, t5(n, [2, 22]), t5(se, [2, 97]), { 72: ut }, { 20: 26, 49: 123, 63: 27, 64: s, 71: i, 77: 28, 78: 29, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d, 85: 36 }, { 67: [1, 124] }, t5(ne, [2, 93]), { 67: [2, 95] }, t5(n, [2, 23]), { 47: [2, 19] }, { 47: [2, 75] }, t5(_, [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: U, 79: a, 80: o, 81: c, 82: p, 83: h, 84: d }), t5(n, [2, 24]), t5(n, [2, 21]), { 33: [1, 128] }, { 33: [2, 61] }, { 71: [1, 130], 75: 129 }, { 33: [1, 131] }, { 33: [2, 67] }, t5(T, [2, 12]), t5(x, [2, 26]), t5(se, [2, 31]), t5(v, [2, 29]), { 33: [2, 72], 42: 132, 73: 133, 74: It }, t5(V, [2, 69]), t5(_, [2, 71]), t5(N, [2, 15]), { 71: [1, 135], 76: [1, 134] }, t5(qr, [2, 98]), t5(g, [2, 16]), { 33: [1, 136] }, { 33: [2, 73] }, { 33: [2, 32] }, t5(qr, [2, 99]), t5(N, [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(m, E) {
763
+ if (E.recoverable) this.trace(m);
764
+ else {
765
+ var b = new Error(m);
766
+ throw b.hash = E, b;
767
+ }
768
+ }, parse: function(m) {
769
+ var E = this, b = [0], P = [null], l = [], xe = this.table, u = "", ae = 0, Me = 0, Hr = 0, Jn = 2, Vr = 1, Zn = l.slice.call(arguments, 1), L = Object.create(this.lexer), me = { yy: {} };
770
+ for (var Ht in this.yy) Object.prototype.hasOwnProperty.call(this.yy, Ht) && (me.yy[Ht] = this.yy[Ht]);
771
+ L.setInput(m, me.yy), me.yy.lexer = L, me.yy.parser = this, typeof L.yylloc > "u" && (L.yylloc = {});
772
+ var Vt = L.yylloc;
773
+ l.push(Vt);
774
+ var es = L.options && L.options.ranges;
775
+ typeof me.yy.parseError == "function" ? this.parseError = me.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
776
+ for (var ts = function() {
777
+ var W;
778
+ return W = L.lex() || Vr, typeof W != "number" && (W = E.symbols_[W] || W), W;
779
+ }, I, Ut, ge, z, da, Ft, Ce = {}, ht, Z, Ur, pt; ; ) {
780
+ if (ge = b[b.length - 1], this.defaultActions[ge] ? z = this.defaultActions[ge] : ((I === null || typeof I > "u") && (I = ts()), z = xe[ge] && xe[ge][I]), typeof z > "u" || !z.length || !z[0]) {
781
+ var Mt = "";
782
+ pt = [];
783
+ for (ht in xe[ge]) this.terminals_[ht] && ht > Jn && pt.push("'" + this.terminals_[ht] + "'");
784
+ L.showPosition ? Mt = "Parse error on line " + (ae + 1) + `:
785
+ ` + L.showPosition() + `
786
+ Expecting ` + pt.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : Mt = "Parse error on line " + (ae + 1) + ": Unexpected " + (I == Vr ? "end of input" : "'" + (this.terminals_[I] || I) + "'"), this.parseError(Mt, { text: L.match, token: this.terminals_[I] || I, line: L.yylineno, loc: Vt, expected: pt });
787
+ }
788
+ if (z[0] instanceof Array && z.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + ge + ", token: " + I);
789
+ switch (z[0]) {
790
+ case 1:
791
+ b.push(I), P.push(L.yytext), l.push(L.yylloc), b.push(z[1]), I = null, Ut ? (I = Ut, Ut = null) : (Me = L.yyleng, u = L.yytext, ae = L.yylineno, Vt = L.yylloc, Hr > 0);
792
+ break;
793
+ case 2:
794
+ if (Z = this.productions_[z[1]][1], Ce.$ = P[P.length - Z], Ce._$ = { first_line: l[l.length - (Z || 1)].first_line, last_line: l[l.length - 1].last_line, first_column: l[l.length - (Z || 1)].first_column, last_column: l[l.length - 1].last_column }, es && (Ce._$.range = [l[l.length - (Z || 1)].range[0], l[l.length - 1].range[1]]), Ft = this.performAction.apply(Ce, [u, Me, ae, me.yy, z[1], P, l].concat(Zn)), typeof Ft < "u") return Ft;
795
+ Z && (b = b.slice(0, -1 * Z * 2), P = P.slice(0, -1 * Z), l = l.slice(0, -1 * Z)), b.push(this.productions_[z[1]][0]), P.push(Ce.$), l.push(Ce._$), Ur = xe[b[b.length - 2]][b[b.length - 1]], b.push(Ur);
796
+ break;
797
+ case 3:
798
+ return true;
799
+ }
800
+ }
801
+ return true;
802
+ } }, Xn = /* @__PURE__ */ function() {
803
+ var ie = { EOF: 1, parseError: function(E, b) {
804
+ if (this.yy.parser) this.yy.parser.parseError(E, b);
805
+ else throw new Error(E);
806
+ }, setInput: function(m, E) {
807
+ return this.yy = E || this.yy || {}, this._input = m, 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;
808
+ }, input: function() {
809
+ var m = this._input[0];
810
+ this.yytext += m, this.yyleng++, this.offset++, this.match += m, this.matched += m;
811
+ var E = m.match(/(?:\r\n?|\n).*/g);
812
+ return E ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), m;
813
+ }, unput: function(m) {
814
+ var E = m.length, b = m.split(/(?:\r\n?|\n)/g);
815
+ this._input = m + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - E), this.offset -= E;
816
+ var y = this.match.split(/(?:\r\n?|\n)/g);
817
+ 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);
818
+ var P = this.yylloc.range;
819
+ 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 - E }, this.options.ranges && (this.yylloc.range = [P[0], P[0] + this.yyleng - E]), this.yyleng = this.yytext.length, this;
820
+ }, more: function() {
821
+ return this._more = true, this;
822
+ }, reject: function() {
823
+ if (this.options.backtrack_lexer) this._backtrack = true;
824
+ 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).
825
+ ` + this.showPosition(), { text: "", token: null, line: this.yylineno });
826
+ return this;
827
+ }, less: function(m) {
828
+ this.unput(this.match.slice(m));
829
+ }, pastInput: function() {
830
+ var m = this.matched.substr(0, this.matched.length - this.match.length);
831
+ return (m.length > 20 ? "..." : "") + m.substr(-20).replace(/\n/g, "");
832
+ }, upcomingInput: function() {
833
+ var m = this.match;
834
+ return m.length < 20 && (m += this._input.substr(0, 20 - m.length)), (m.substr(0, 20) + (m.length > 20 ? "..." : "")).replace(/\n/g, "");
835
+ }, showPosition: function() {
836
+ var m = this.pastInput(), E = new Array(m.length + 1).join("-");
837
+ return m + this.upcomingInput() + `
838
+ ` + E + "^";
839
+ }, test_match: function(m, E) {
840
+ var b, y, P;
841
+ if (this.options.backtrack_lexer && (P = { 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 && (P.yylloc.range = this.yylloc.range.slice(0))), y = m[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 + m[0].length }, this.yytext += m[0], this.match += m[0], this.matches = m, 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(m[0].length), this.matched += m[0], b = this.performAction.call(this, this.yy, this, E, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), b) return b;
842
+ if (this._backtrack) {
843
+ for (var l in P) this[l] = P[l];
844
+ return false;
845
+ }
846
+ return false;
847
+ }, next: function() {
848
+ if (this.done) return this.EOF;
849
+ this._input || (this.done = true);
850
+ var m, E, b, y;
851
+ this._more || (this.yytext = "", this.match = "");
852
+ for (var P = this._currentRules(), l = 0; l < P.length; l++) if (b = this._input.match(this.rules[P[l]]), b && (!E || b[0].length > E[0].length)) {
853
+ if (E = b, y = l, this.options.backtrack_lexer) {
854
+ if (m = this.test_match(b, P[l]), m !== false) return m;
855
+ if (this._backtrack) {
856
+ E = false;
857
+ continue;
858
+ } else return false;
859
+ } else if (!this.options.flex) break;
860
+ }
861
+ return E ? (m = this.test_match(E, P[y]), m !== false ? m : false) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
862
+ ` + this.showPosition(), { text: "", token: null, line: this.yylineno });
863
+ }, lex: function() {
864
+ var E = this.next();
865
+ return E || this.lex();
866
+ }, begin: function(E) {
867
+ this.conditionStack.push(E);
868
+ }, popState: function() {
869
+ var E = this.conditionStack.length - 1;
870
+ return E > 0 ? this.conditionStack.pop() : this.conditionStack[0];
871
+ }, _currentRules: function() {
872
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
873
+ }, topState: function(E) {
874
+ return E = this.conditionStack.length - 1 - Math.abs(E || 0), E >= 0 ? this.conditionStack[E] : "INITIAL";
875
+ }, pushState: function(E) {
876
+ this.begin(E);
877
+ }, stateStackSize: function() {
878
+ return this.conditionStack.length;
879
+ }, options: {}, performAction: function(E, b, y, P) {
880
+ function l(u, ae) {
881
+ return b.yytext = b.yytext.substring(u, b.yyleng - ae + u);
882
+ }
883
+ switch (y) {
884
+ case 0:
885
+ 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;
886
+ break;
887
+ case 1:
888
+ return 15;
889
+ case 2:
890
+ return this.popState(), 15;
891
+ case 3:
892
+ return this.begin("raw"), 15;
893
+ case 4:
894
+ return this.popState(), this.conditionStack[this.conditionStack.length - 1] === "raw" ? 15 : (l(5, 9), 18);
895
+ case 5:
896
+ return 15;
897
+ case 6:
898
+ return this.popState(), 14;
899
+ case 7:
900
+ return 64;
901
+ case 8:
902
+ return 67;
903
+ case 9:
904
+ return 19;
905
+ case 10:
906
+ return this.popState(), this.begin("raw"), 23;
907
+ case 11:
908
+ return 56;
909
+ case 12:
910
+ return 60;
911
+ case 13:
912
+ return 29;
913
+ case 14:
914
+ return 47;
915
+ case 15:
916
+ return this.popState(), 44;
917
+ case 16:
918
+ return this.popState(), 44;
919
+ case 17:
920
+ return 34;
921
+ case 18:
922
+ return 39;
923
+ case 19:
924
+ return 52;
925
+ case 20:
926
+ return 48;
927
+ case 21:
928
+ this.unput(b.yytext), this.popState(), this.begin("com");
929
+ break;
930
+ case 22:
931
+ return this.popState(), 14;
932
+ case 23:
933
+ return 48;
934
+ case 24:
935
+ return 72;
936
+ case 25:
937
+ return 71;
938
+ case 26:
939
+ return 71;
940
+ case 27:
941
+ return 86;
942
+ case 28:
943
+ break;
944
+ case 29:
945
+ return this.popState(), 55;
946
+ case 30:
947
+ return this.popState(), 33;
948
+ case 31:
949
+ return b.yytext = l(1, 2).replace(/\\"/g, '"'), 79;
950
+ case 32:
951
+ return b.yytext = l(1, 2).replace(/\\'/g, "'"), 79;
952
+ case 33:
953
+ return 84;
954
+ case 34:
955
+ return 81;
956
+ case 35:
957
+ return 81;
958
+ case 36:
959
+ return 82;
960
+ case 37:
961
+ return 83;
962
+ case 38:
963
+ return 80;
964
+ case 39:
965
+ return 74;
966
+ case 40:
967
+ return 76;
968
+ case 41:
969
+ return 71;
970
+ case 42:
971
+ return b.yytext = b.yytext.replace(/\\([\\\]])/g, "$1"), 71;
972
+ case 43:
973
+ return "INVALID";
974
+ case 44:
975
+ return 5;
976
+ }
977
+ }, 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 } } };
978
+ return ie;
979
+ }();
980
+ Rt.lexer = Xn;
981
+ function qt() {
982
+ this.yy = {};
983
+ }
984
+ return qt.prototype = Rt, Rt.Parser = qt, new qt();
985
+ }();
986
+ var vt = Zs;
987
+ var or = ["description", "fileName", "lineNumber", "endLineNumber", "message", "name", "number", "stack"];
988
+ function lr(t5, e) {
989
+ var r = e && e.loc, n, s, i, a;
990
+ r && (n = r.start.line, s = r.end.line, i = r.start.column, a = r.end.column, t5 += " - " + n + ":" + i);
991
+ for (var o = Error.prototype.constructor.call(this, t5), c = 0; c < or.length; c++) this[or[c]] = o[or[c]];
992
+ Error.captureStackTrace && Error.captureStackTrace(this, lr);
993
+ try {
994
+ 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));
995
+ } catch {
996
+ }
997
+ }
998
+ lr.prototype = new Error();
999
+ var le = lr;
1000
+ function At() {
1001
+ this.parents = [];
1002
+ }
1003
+ At.prototype = { constructor: At, mutating: false, acceptKey: function(t5, e) {
1004
+ var r = this.accept(t5[e]);
1005
+ if (this.mutating) {
1006
+ if (r && !At.prototype[r.type]) throw new le('Unexpected node type "' + r.type + '" found when accepting ' + e + " on " + t5.type);
1007
+ t5[e] = r;
1008
+ }
1009
+ }, acceptRequired: function(t5, e) {
1010
+ if (this.acceptKey(t5, e), !t5[e]) throw new le(t5.type + " requires " + e);
1011
+ }, acceptArray: function(t5) {
1012
+ for (var e = 0, r = t5.length; e < r; e++) this.acceptKey(t5, e), t5[e] || (t5.splice(e, 1), e--, r--);
1013
+ }, accept: function(t5) {
1014
+ if (t5) {
1015
+ if (!this[t5.type]) throw new le("Unknown type: " + t5.type, t5);
1016
+ this.current && this.parents.unshift(this.current), this.current = t5;
1017
+ var e = this[t5.type](t5);
1018
+ if (this.current = this.parents.shift(), !this.mutating || e) return e;
1019
+ if (e !== false) return t5;
1020
+ }
1021
+ }, Program: function(t5) {
1022
+ this.acceptArray(t5.body);
1023
+ }, MustacheStatement: Pt, Decorator: Pt, BlockStatement: An, DecoratorBlock: An, PartialStatement: Pn, PartialBlockStatement: function(t5) {
1024
+ Pn.call(this, t5), this.acceptKey(t5, "program");
1025
+ }, ContentStatement: function() {
1026
+ }, CommentStatement: function() {
1027
+ }, SubExpression: Pt, PathExpression: function() {
1028
+ }, StringLiteral: function() {
1029
+ }, NumberLiteral: function() {
1030
+ }, BooleanLiteral: function() {
1031
+ }, UndefinedLiteral: function() {
1032
+ }, NullLiteral: function() {
1033
+ }, Hash: function(t5) {
1034
+ this.acceptArray(t5.pairs);
1035
+ }, HashPair: function(t5) {
1036
+ this.acceptRequired(t5, "value");
1037
+ } };
1038
+ function Pt(t5) {
1039
+ this.acceptRequired(t5, "path"), this.acceptArray(t5.params), this.acceptKey(t5, "hash");
1040
+ }
1041
+ function An(t5) {
1042
+ Pt.call(this, t5), this.acceptKey(t5, "program"), this.acceptKey(t5, "inverse");
1043
+ }
1044
+ function Pn(t5) {
1045
+ this.acceptRequired(t5, "name"), this.acceptArray(t5.params), this.acceptKey(t5, "hash");
1046
+ }
1047
+ var xn = At;
1048
+ function j(t5) {
1049
+ t5 === void 0 && (t5 = {}), this.options = t5;
1050
+ }
1051
+ j.prototype = new xn();
1052
+ j.prototype.Program = function(t5) {
1053
+ var e = !this.options.ignoreStandalone, r = !this.isRootSeen;
1054
+ this.isRootSeen = true;
1055
+ for (var n = t5.body, s = 0, i = n.length; s < i; s++) {
1056
+ var a = n[s], o = this.accept(a);
1057
+ if (o) {
1058
+ var c = cr(n, s, r), p = ur(n, s, r), h = o.openStandalone && c, d = o.closeStandalone && p, N = o.inlineStandalone && c && p;
1059
+ o.close && ke(n, s, true), o.open && ce(n, s, true), e && N && (ke(n, s), ce(n, s) && a.type === "PartialStatement" && (a.indent = /([ \t]+$)/.exec(n[s - 1].original)[1])), e && h && (ke((a.program || a.inverse).body), ce(n, s)), e && d && (ke(n, s), ce((a.inverse || a.program).body));
1060
+ }
1061
+ }
1062
+ return t5;
1063
+ };
1064
+ j.prototype.BlockStatement = j.prototype.DecoratorBlock = j.prototype.PartialBlockStatement = function(t5) {
1065
+ this.accept(t5.program), this.accept(t5.inverse);
1066
+ var e = t5.program || t5.inverse, r = t5.program && t5.inverse, n = r, s = r;
1067
+ if (r && r.chained) for (n = r.body[0].program; s.chained; ) s = s.body[s.body.length - 1].program;
1068
+ var i = { open: t5.openStrip.open, close: t5.closeStrip.close, openStandalone: ur(e.body), closeStandalone: cr((n || e).body) };
1069
+ if (t5.openStrip.close && ke(e.body, null, true), r) {
1070
+ var a = t5.inverseStrip;
1071
+ a.open && ce(e.body, null, true), a.close && ke(n.body, null, true), t5.closeStrip.open && ce(s.body, null, true), !this.options.ignoreStandalone && cr(e.body) && ur(n.body) && (ce(e.body), ke(n.body));
1072
+ } else t5.closeStrip.open && ce(e.body, null, true);
1073
+ return i;
1074
+ };
1075
+ j.prototype.Decorator = j.prototype.MustacheStatement = function(t5) {
1076
+ return t5.strip;
1077
+ };
1078
+ j.prototype.PartialStatement = j.prototype.CommentStatement = function(t5) {
1079
+ var e = t5.strip || {};
1080
+ return { inlineStandalone: true, open: e.open, close: e.close };
1081
+ };
1082
+ function cr(t5, e, r) {
1083
+ e === void 0 && (e = t5.length);
1084
+ var n = t5[e - 1], s = t5[e - 2];
1085
+ if (!n) return r;
1086
+ if (n.type === "ContentStatement") return (s || !r ? /\r?\n\s*?$/ : /(^|\r?\n)\s*?$/).test(n.original);
1087
+ }
1088
+ function ur(t5, e, r) {
1089
+ e === void 0 && (e = -1);
1090
+ var n = t5[e + 1], s = t5[e + 2];
1091
+ if (!n) return r;
1092
+ if (n.type === "ContentStatement") return (s || !r ? /^\s*?\r?\n/ : /^\s*?(\r?\n|$)/).test(n.original);
1093
+ }
1094
+ function ke(t5, e, r) {
1095
+ var n = t5[e == null ? 0 : e + 1];
1096
+ if (!(!n || n.type !== "ContentStatement" || !r && n.rightStripped)) {
1097
+ var s = n.value;
1098
+ n.value = n.value.replace(r ? /^\s+/ : /^[ \t]*\r?\n?/, ""), n.rightStripped = n.value !== s;
1099
+ }
1100
+ }
1101
+ function ce(t5, e, r) {
1102
+ var n = t5[e == null ? t5.length - 1 : e - 1];
1103
+ if (!(!n || n.type !== "ContentStatement" || !r && n.leftStripped)) {
1104
+ var s = n.value;
1105
+ return n.value = n.value.replace(r ? /\s+$/ : /[ \t]+$/, ""), n.leftStripped = n.value !== s, n.leftStripped;
1106
+ }
1107
+ }
1108
+ var Cn = j;
1109
+ var nt = {};
1110
+ zt(nt, { SourceLocation: () => pr, id: () => ei, prepareBlock: () => ai, prepareMustache: () => si, preparePartialBlock: () => li, preparePath: () => ni, prepareProgram: () => oi, prepareRawBlock: () => ii, stripComment: () => ri, stripFlags: () => ti });
1111
+ function hr(t5, e) {
1112
+ if (e = e.path ? e.path.original : e, t5.path.original !== e) {
1113
+ var r = { loc: t5.path.loc };
1114
+ throw new le(t5.path.original + " doesn't match " + e, r);
1115
+ }
1116
+ }
1117
+ function pr(t5, e) {
1118
+ this.source = t5, this.start = { line: e.first_line, column: e.first_column }, this.end = { line: e.last_line, column: e.last_column };
1119
+ }
1120
+ function ei(t5) {
1121
+ return /^\[.*\]$/.test(t5) ? t5.substring(1, t5.length - 1) : t5;
1122
+ }
1123
+ function ti(t5, e) {
1124
+ return { open: t5.charAt(2) === "~", close: e.charAt(e.length - 3) === "~" };
1125
+ }
1126
+ function ri(t5) {
1127
+ return t5.replace(/^\{\{~?!-?-?/, "").replace(/-?-?~?\}\}$/, "");
1128
+ }
1129
+ function ni(t5, e, r) {
1130
+ r = this.locInfo(r);
1131
+ for (var n = t5 ? "@" : "", s = [], i = 0, a = 0, o = e.length; a < o; a++) {
1132
+ var c = e[a].part, p = e[a].original !== c;
1133
+ if (n += (e[a].separator || "") + c, !p && (c === ".." || c === "." || c === "this")) {
1134
+ if (s.length > 0) throw new le("Invalid path: " + n, { loc: r });
1135
+ c === ".." && i++;
1136
+ } else s.push(c);
1137
+ }
1138
+ return { type: "PathExpression", data: t5, depth: i, parts: s, original: n, loc: r };
1139
+ }
1140
+ function si(t5, e, r, n, s, i) {
1141
+ var a = n.charAt(3) || n.charAt(2), o = a !== "{" && a !== "&", c = /\*/.test(n);
1142
+ return { type: c ? "Decorator" : "MustacheStatement", path: t5, params: e, hash: r, escaped: o, strip: s, loc: this.locInfo(i) };
1143
+ }
1144
+ function ii(t5, e, r, n) {
1145
+ hr(t5, r), n = this.locInfo(n);
1146
+ var s = { type: "Program", body: e, strip: {}, loc: n };
1147
+ return { type: "BlockStatement", path: t5.path, params: t5.params, hash: t5.hash, program: s, openStrip: {}, inverseStrip: {}, closeStrip: {}, loc: n };
1148
+ }
1149
+ function ai(t5, e, r, n, s, i) {
1150
+ n && n.path && hr(t5, n);
1151
+ var a = /\*/.test(t5.open);
1152
+ e.blockParams = t5.blockParams;
1153
+ var o, c;
1154
+ if (r) {
1155
+ if (a) throw new le("Unexpected inverse block on decorator", r);
1156
+ r.chain && (r.program.body[0].closeStrip = n.strip), c = r.strip, o = r.program;
1157
+ }
1158
+ return s && (s = o, o = e, e = s), { type: a ? "DecoratorBlock" : "BlockStatement", path: t5.path, params: t5.params, hash: t5.hash, program: e, inverse: o, openStrip: t5.strip, inverseStrip: c, closeStrip: n && n.strip, loc: this.locInfo(i) };
1159
+ }
1160
+ function oi(t5, e) {
1161
+ if (!e && t5.length) {
1162
+ var r = t5[0].loc, n = t5[t5.length - 1].loc;
1163
+ r && n && (e = { source: r.source, start: { line: r.start.line, column: r.start.column }, end: { line: n.end.line, column: n.end.column } });
1164
+ }
1165
+ return { type: "Program", body: t5, strip: {}, loc: e };
1166
+ }
1167
+ function li(t5, e, r, n) {
1168
+ return hr(t5, r), { type: "PartialBlockStatement", name: t5.path, params: t5.params, hash: t5.hash, program: e, openStrip: t5.strip, closeStrip: r && r.strip, loc: this.locInfo(n) };
1169
+ }
1170
+ var Ln = {};
1171
+ for (xt in nt) Object.prototype.hasOwnProperty.call(nt, xt) && (Ln[xt] = nt[xt]);
1172
+ var xt;
1173
+ function Ct(t5, e) {
1174
+ if (t5.type === "Program") return t5;
1175
+ vt.yy = Ln, vt.yy.locInfo = function(n) {
1176
+ return new pr(e && e.srcName, n);
1177
+ };
1178
+ var r = vt.parse(t5);
1179
+ return r;
1180
+ }
1181
+ function fr(t5, e) {
1182
+ var r = Ct(t5, e), n = new Cn(e);
1183
+ return n.accept(r);
1184
+ }
1185
+ var Dn = { 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: `
1186
+ `, 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" };
1187
+ var ci = /^#[xX]([A-Fa-f0-9]+)$/;
1188
+ var ui = /^#([0-9]+)$/;
1189
+ var hi = /^([A-Za-z0-9]+)$/;
1190
+ var dr = function() {
1191
+ function t5(e) {
1192
+ this.named = e;
1193
+ }
1194
+ return t5.prototype.parse = function(e) {
1195
+ if (e) {
1196
+ var r = e.match(ci);
1197
+ if (r) return String.fromCharCode(parseInt(r[1], 16));
1198
+ if (r = e.match(ui), r) return String.fromCharCode(parseInt(r[1], 10));
1199
+ if (r = e.match(hi), r) return this.named[r[1]];
1200
+ }
1201
+ }, t5;
1202
+ }();
1203
+ var pi = /[\t\n\f ]/;
1204
+ var fi = /[A-Za-z]/;
1205
+ var di = /\r\n?/g;
1206
+ function B(t5) {
1207
+ return pi.test(t5);
1208
+ }
1209
+ function _n(t5) {
1210
+ return fi.test(t5);
1211
+ }
1212
+ function mi(t5) {
1213
+ return t5.replace(di, `
1214
+ `);
1215
+ }
1216
+ var mr = function() {
1217
+ function t5(e, r, n) {
1218
+ n === void 0 && (n = "precompile"), this.delegate = e, 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() {
1219
+ var s = this.peek();
1220
+ if (s === "<" && !this.isIgnoredEndTag()) this.transitionTo("tagOpen"), this.markTagStart(), this.consume();
1221
+ else {
1222
+ if (this.mode === "precompile" && s === `
1223
+ `) {
1224
+ var i = this.tagNameBuffer.toLowerCase();
1225
+ (i === "pre" || i === "textarea") && this.consume();
1226
+ }
1227
+ this.transitionTo("data"), this.delegate.beginData();
1228
+ }
1229
+ }, data: function() {
1230
+ var s = this.peek(), i = this.tagNameBuffer;
1231
+ 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));
1232
+ }, tagOpen: function() {
1233
+ var s = this.consume();
1234
+ s === "!" ? this.transitionTo("markupDeclarationOpen") : s === "/" ? this.transitionTo("endTagOpen") : (s === "@" || s === ":" || _n(s)) && (this.transitionTo("tagName"), this.tagNameBuffer = "", this.delegate.beginStartTag(), this.appendToTagName(s));
1235
+ }, markupDeclarationOpen: function() {
1236
+ var s = this.consume();
1237
+ if (s === "-" && this.peek() === "-") this.consume(), this.transitionTo("commentStart"), this.delegate.beginComment();
1238
+ else {
1239
+ var i = s.toUpperCase() + this.input.substring(this.index, this.index + 6).toUpperCase();
1240
+ i === "DOCTYPE" && (this.consume(), this.consume(), this.consume(), this.consume(), this.consume(), this.consume(), this.transitionTo("doctype"), this.delegate.beginDoctype && this.delegate.beginDoctype());
1241
+ }
1242
+ }, doctype: function() {
1243
+ var s = this.consume();
1244
+ B(s) && this.transitionTo("beforeDoctypeName");
1245
+ }, beforeDoctypeName: function() {
1246
+ var s = this.consume();
1247
+ B(s) || (this.transitionTo("doctypeName"), this.delegate.appendToDoctypeName && this.delegate.appendToDoctypeName(s.toLowerCase()));
1248
+ }, doctypeName: function() {
1249
+ var s = this.consume();
1250
+ B(s) ? this.transitionTo("afterDoctypeName") : s === ">" ? (this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData")) : this.delegate.appendToDoctypeName && this.delegate.appendToDoctypeName(s.toLowerCase());
1251
+ }, afterDoctypeName: function() {
1252
+ var s = this.consume();
1253
+ if (!B(s)) if (s === ">") this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData");
1254
+ else {
1255
+ var i = s.toUpperCase() + this.input.substring(this.index, this.index + 5).toUpperCase(), a = i.toUpperCase() === "PUBLIC", o = i.toUpperCase() === "SYSTEM";
1256
+ (a || o) && (this.consume(), this.consume(), this.consume(), this.consume(), this.consume(), this.consume()), a ? this.transitionTo("afterDoctypePublicKeyword") : o && this.transitionTo("afterDoctypeSystemKeyword");
1257
+ }
1258
+ }, afterDoctypePublicKeyword: function() {
1259
+ var s = this.peek();
1260
+ B(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"));
1261
+ }, doctypePublicIdentifierDoubleQuoted: function() {
1262
+ var s = this.consume();
1263
+ s === '"' ? this.transitionTo("afterDoctypePublicIdentifier") : s === ">" ? (this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData")) : this.delegate.appendToDoctypePublicIdentifier && this.delegate.appendToDoctypePublicIdentifier(s);
1264
+ }, doctypePublicIdentifierSingleQuoted: function() {
1265
+ var s = this.consume();
1266
+ s === "'" ? this.transitionTo("afterDoctypePublicIdentifier") : s === ">" ? (this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData")) : this.delegate.appendToDoctypePublicIdentifier && this.delegate.appendToDoctypePublicIdentifier(s);
1267
+ }, afterDoctypePublicIdentifier: function() {
1268
+ var s = this.consume();
1269
+ B(s) ? this.transitionTo("betweenDoctypePublicAndSystemIdentifiers") : s === ">" ? (this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData")) : s === '"' ? this.transitionTo("doctypeSystemIdentifierDoubleQuoted") : s === "'" && this.transitionTo("doctypeSystemIdentifierSingleQuoted");
1270
+ }, betweenDoctypePublicAndSystemIdentifiers: function() {
1271
+ var s = this.consume();
1272
+ B(s) || (s === ">" ? (this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData")) : s === '"' ? this.transitionTo("doctypeSystemIdentifierDoubleQuoted") : s === "'" && this.transitionTo("doctypeSystemIdentifierSingleQuoted"));
1273
+ }, doctypeSystemIdentifierDoubleQuoted: function() {
1274
+ var s = this.consume();
1275
+ s === '"' ? this.transitionTo("afterDoctypeSystemIdentifier") : s === ">" ? (this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData")) : this.delegate.appendToDoctypeSystemIdentifier && this.delegate.appendToDoctypeSystemIdentifier(s);
1276
+ }, doctypeSystemIdentifierSingleQuoted: function() {
1277
+ var s = this.consume();
1278
+ s === "'" ? this.transitionTo("afterDoctypeSystemIdentifier") : s === ">" ? (this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData")) : this.delegate.appendToDoctypeSystemIdentifier && this.delegate.appendToDoctypeSystemIdentifier(s);
1279
+ }, afterDoctypeSystemIdentifier: function() {
1280
+ var s = this.consume();
1281
+ B(s) || s === ">" && (this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData"));
1282
+ }, commentStart: function() {
1283
+ var s = this.consume();
1284
+ s === "-" ? this.transitionTo("commentStartDash") : s === ">" ? (this.delegate.finishComment(), this.transitionTo("beforeData")) : (this.delegate.appendToCommentData(s), this.transitionTo("comment"));
1285
+ }, commentStartDash: function() {
1286
+ var s = this.consume();
1287
+ s === "-" ? this.transitionTo("commentEnd") : s === ">" ? (this.delegate.finishComment(), this.transitionTo("beforeData")) : (this.delegate.appendToCommentData("-"), this.transitionTo("comment"));
1288
+ }, comment: function() {
1289
+ var s = this.consume();
1290
+ s === "-" ? this.transitionTo("commentEndDash") : this.delegate.appendToCommentData(s);
1291
+ }, commentEndDash: function() {
1292
+ var s = this.consume();
1293
+ s === "-" ? this.transitionTo("commentEnd") : (this.delegate.appendToCommentData("-" + s), this.transitionTo("comment"));
1294
+ }, commentEnd: function() {
1295
+ var s = this.consume();
1296
+ s === ">" ? (this.delegate.finishComment(), this.transitionTo("beforeData")) : (this.delegate.appendToCommentData("--" + s), this.transitionTo("comment"));
1297
+ }, tagName: function() {
1298
+ var s = this.consume();
1299
+ B(s) ? this.transitionTo("beforeAttributeName") : s === "/" ? this.transitionTo("selfClosingStartTag") : s === ">" ? (this.delegate.finishTag(), this.transitionTo("beforeData")) : this.appendToTagName(s);
1300
+ }, endTagName: function() {
1301
+ var s = this.consume();
1302
+ B(s) ? (this.transitionTo("beforeAttributeName"), this.tagNameBuffer = "") : s === "/" ? (this.transitionTo("selfClosingStartTag"), this.tagNameBuffer = "") : s === ">" ? (this.delegate.finishTag(), this.transitionTo("beforeData"), this.tagNameBuffer = "") : this.appendToTagName(s);
1303
+ }, beforeAttributeName: function() {
1304
+ var s = this.peek();
1305
+ if (B(s)) {
1306
+ this.consume();
1307
+ return;
1308
+ } 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());
1309
+ }, attributeName: function() {
1310
+ var s = this.peek();
1311
+ B(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));
1312
+ }, afterAttributeName: function() {
1313
+ var s = this.peek();
1314
+ if (B(s)) {
1315
+ this.consume();
1316
+ return;
1317
+ } 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));
1318
+ }, beforeAttributeValue: function() {
1319
+ var s = this.peek();
1320
+ B(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));
1321
+ }, attributeValueDoubleQuoted: function() {
1322
+ var s = this.consume();
1323
+ s === '"' ? (this.delegate.finishAttributeValue(), this.transitionTo("afterAttributeValueQuoted")) : s === "&" ? this.delegate.appendToAttributeValue(this.consumeCharRef() || "&") : this.delegate.appendToAttributeValue(s);
1324
+ }, attributeValueSingleQuoted: function() {
1325
+ var s = this.consume();
1326
+ s === "'" ? (this.delegate.finishAttributeValue(), this.transitionTo("afterAttributeValueQuoted")) : s === "&" ? this.delegate.appendToAttributeValue(this.consumeCharRef() || "&") : this.delegate.appendToAttributeValue(s);
1327
+ }, attributeValueUnquoted: function() {
1328
+ var s = this.peek();
1329
+ B(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));
1330
+ }, afterAttributeValueQuoted: function() {
1331
+ var s = this.peek();
1332
+ B(s) ? (this.consume(), this.transitionTo("beforeAttributeName")) : s === "/" ? (this.consume(), this.transitionTo("selfClosingStartTag")) : s === ">" ? (this.consume(), this.delegate.finishTag(), this.transitionTo("beforeData")) : this.transitionTo("beforeAttributeName");
1333
+ }, selfClosingStartTag: function() {
1334
+ var s = this.peek();
1335
+ s === ">" ? (this.consume(), this.delegate.markTagAsSelfClosing(), this.delegate.finishTag(), this.transitionTo("beforeData")) : this.transitionTo("beforeAttributeName");
1336
+ }, endTagOpen: function() {
1337
+ var s = this.consume();
1338
+ (s === "@" || s === ":" || _n(s)) && (this.transitionTo("endTagName"), this.tagNameBuffer = "", this.delegate.beginEndTag(), this.appendToTagName(s));
1339
+ } }, this.reset();
1340
+ }
1341
+ return t5.prototype.reset = function() {
1342
+ this.transitionTo("beforeData"), this.input = "", this.tagNameBuffer = "", this.index = 0, this.line = 1, this.column = 0, this.delegate.reset();
1343
+ }, t5.prototype.transitionTo = function(e) {
1344
+ this.state = e;
1345
+ }, t5.prototype.tokenize = function(e) {
1346
+ this.reset(), this.tokenizePart(e), this.tokenizeEOF();
1347
+ }, t5.prototype.tokenizePart = function(e) {
1348
+ for (this.input += mi(e); this.index < this.input.length; ) {
1349
+ var r = this.states[this.state];
1350
+ if (r !== void 0) r.call(this);
1351
+ else throw new Error("unhandled state " + this.state);
1352
+ }
1353
+ }, t5.prototype.tokenizeEOF = function() {
1354
+ this.flushData();
1355
+ }, t5.prototype.flushData = function() {
1356
+ this.state === "data" && (this.delegate.finishData(), this.transitionTo("beforeData"));
1357
+ }, t5.prototype.peek = function() {
1358
+ return this.input.charAt(this.index);
1359
+ }, t5.prototype.consume = function() {
1360
+ var e = this.peek();
1361
+ return this.index++, e === `
1362
+ ` ? (this.line++, this.column = 0) : this.column++, e;
1363
+ }, t5.prototype.consumeCharRef = function() {
1364
+ var e = this.input.indexOf(";", this.index);
1365
+ if (e !== -1) {
1366
+ var r = this.input.slice(this.index, e), n = this.entityParser.parse(r);
1367
+ if (n) {
1368
+ for (var s = r.length; s; ) this.consume(), s--;
1369
+ return this.consume(), n;
1370
+ }
1371
+ }
1372
+ }, t5.prototype.markTagStart = function() {
1373
+ this.delegate.tagOpen();
1374
+ }, t5.prototype.appendToTagName = function(e) {
1375
+ this.tagNameBuffer += e, this.delegate.appendToTagName(e);
1376
+ }, t5.prototype.isIgnoredEndTag = function() {
1377
+ var e = this.tagNameBuffer;
1378
+ return e === "title" && this.input.substring(this.index, this.index + 8) !== "</title>" || e === "style" && this.input.substring(this.index, this.index + 8) !== "</style>" || e === "script" && this.input.substring(this.index, this.index + 9) !== "</script>";
1379
+ }, t5;
1380
+ }();
1381
+ var kr = /* @__PURE__ */ new Set(["area", "base", "br", "col", "command", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]);
1382
+ function yi(t5) {
1383
+ var e;
1384
+ return kr.has(t5.toLowerCase()) && ((e = t5[0]) == null ? void 0 : e.toLowerCase()) === t5[0];
1385
+ }
1386
+ var pe = Object.freeze({ line: 1, column: 0 });
1387
+ var Ei = Object.freeze({ source: "(synthetic)", start: pe, end: pe });
1388
+ var st = Object.freeze({ source: "(nonexistent)", start: pe, end: pe });
1389
+ var ue = Object.freeze({ source: "(broken)", start: pe, end: pe });
1390
+ var k = function(t5) {
1391
+ return t5.CharPosition = "CharPosition", t5.HbsPosition = "HbsPosition", t5.InternalsSynthetic = "InternalsSynthetic", t5.NonExistent = "NonExistent", t5.Broken = "Broken", t5;
1392
+ }({});
1393
+ var it = "MATCH_ANY";
1394
+ var Tr = "IS_INVISIBLE";
1395
+ var Nr = class {
1396
+ _whens;
1397
+ constructor(e) {
1398
+ this._whens = e;
1399
+ }
1400
+ first(e) {
1401
+ for (let r of this._whens) {
1402
+ let n = r.match(e);
1403
+ if (we(n)) return n[0];
1404
+ }
1405
+ return null;
1406
+ }
1407
+ };
1408
+ var Dt = class {
1409
+ _map = /* @__PURE__ */ new Map();
1410
+ get(e, r) {
1411
+ let n = this._map.get(e);
1412
+ return n || (n = r(), this._map.set(e, n), n);
1413
+ }
1414
+ add(e, r) {
1415
+ this._map.set(e, r);
1416
+ }
1417
+ match(e) {
1418
+ let r = Si(e), n = [], s = this._map.get(r), i = this._map.get(it);
1419
+ return s && n.push(s), i && n.push(i), n;
1420
+ }
1421
+ };
1422
+ function Hn(t5) {
1423
+ return t5(new vr()).check();
1424
+ }
1425
+ var vr = class {
1426
+ _whens = new Dt();
1427
+ check() {
1428
+ return (e, r) => this.matchFor(e.kind, r.kind)(e, r);
1429
+ }
1430
+ matchFor(e, r) {
1431
+ let n = this._whens.match(e);
1432
+ w(we(n), `no match defined for (${e}, ${r}) and no AnyMatch defined either`);
1433
+ let s = new Nr(n).first(r);
1434
+ return w(s !== null, `no match defined for (${e}, ${r}) and no AnyMatch defined either`), s;
1435
+ }
1436
+ when(e, r, n) {
1437
+ return this._whens.get(e, () => new Dt()).add(r, n), this;
1438
+ }
1439
+ };
1440
+ function Si(t5) {
1441
+ switch (t5) {
1442
+ case k.Broken:
1443
+ case k.InternalsSynthetic:
1444
+ case k.NonExistent:
1445
+ return Tr;
1446
+ default:
1447
+ return t5;
1448
+ }
1449
+ }
1450
+ var Ar = class t {
1451
+ static synthetic(e) {
1452
+ let r = O.synthetic(e);
1453
+ return new t({ loc: r, chars: e });
1454
+ }
1455
+ static load(e, r) {
1456
+ return new t({ loc: O.load(e, r[1]), chars: r[0] });
1457
+ }
1458
+ chars;
1459
+ loc;
1460
+ constructor(e) {
1461
+ this.loc = e.loc, this.chars = e.chars;
1462
+ }
1463
+ getString() {
1464
+ return this.chars;
1465
+ }
1466
+ serialize() {
1467
+ return [this.chars, this.loc.serialize()];
1468
+ }
1469
+ };
1470
+ var O = class t2 {
1471
+ static get NON_EXISTENT() {
1472
+ return new te(k.NonExistent, st).wrap();
1473
+ }
1474
+ static load(e, r) {
1475
+ if (typeof r == "number") return t2.forCharPositions(e, r, r);
1476
+ if (typeof r == "string") return t2.synthetic(r);
1477
+ if (Array.isArray(r)) return t2.forCharPositions(e, r[0], r[1]);
1478
+ if (r === k.NonExistent) return t2.NON_EXISTENT;
1479
+ if (r === k.Broken) return t2.broken(ue);
1480
+ vn(r);
1481
+ }
1482
+ static forHbsLoc(e, r) {
1483
+ let n = new de(e, r.start), s = new de(e, r.end);
1484
+ return new ot(e, { start: n, end: s }, r).wrap();
1485
+ }
1486
+ static forCharPositions(e, r, n) {
1487
+ let s = new Ne(e, r), i = new Ne(e, n);
1488
+ return new at(e, { start: s, end: i }).wrap();
1489
+ }
1490
+ static synthetic(e) {
1491
+ return new te(k.InternalsSynthetic, st, e).wrap();
1492
+ }
1493
+ static broken(e = ue) {
1494
+ return new te(k.Broken, e).wrap();
1495
+ }
1496
+ isInvisible;
1497
+ constructor(e) {
1498
+ this.data = e, this.isInvisible = e.kind !== k.CharPosition && e.kind !== k.HbsPosition;
1499
+ }
1500
+ getStart() {
1501
+ return this.data.getStart().wrap();
1502
+ }
1503
+ getEnd() {
1504
+ return this.data.getEnd().wrap();
1505
+ }
1506
+ get loc() {
1507
+ let e = this.data.toHbsSpan();
1508
+ return e === null ? ue : e.toHbsLoc();
1509
+ }
1510
+ get module() {
1511
+ return this.data.getModule();
1512
+ }
1513
+ get startPosition() {
1514
+ return this.loc.start;
1515
+ }
1516
+ get endPosition() {
1517
+ return this.loc.end;
1518
+ }
1519
+ toJSON() {
1520
+ return this.loc;
1521
+ }
1522
+ withStart(e) {
1523
+ return Q(e.data, this.data.getEnd());
1524
+ }
1525
+ withEnd(e) {
1526
+ return Q(this.data.getStart(), e.data);
1527
+ }
1528
+ asString() {
1529
+ return this.data.asString();
1530
+ }
1531
+ toSlice(e) {
1532
+ let r = this.data.asString();
1533
+ return new Ar({ loc: this, chars: e || r });
1534
+ }
1535
+ get start() {
1536
+ return this.loc.start;
1537
+ }
1538
+ set start(e) {
1539
+ this.data.locDidUpdate({ start: e });
1540
+ }
1541
+ get end() {
1542
+ return this.loc.end;
1543
+ }
1544
+ set end(e) {
1545
+ this.data.locDidUpdate({ end: e });
1546
+ }
1547
+ get source() {
1548
+ return this.module;
1549
+ }
1550
+ collapse(e) {
1551
+ switch (e) {
1552
+ case "start":
1553
+ return this.getStart().collapsed();
1554
+ case "end":
1555
+ return this.getEnd().collapsed();
1556
+ }
1557
+ }
1558
+ extend(e) {
1559
+ return Q(this.data.getStart(), e.data.getEnd());
1560
+ }
1561
+ serialize() {
1562
+ return this.data.serialize();
1563
+ }
1564
+ slice({ skipStart: e = 0, skipEnd: r = 0 }) {
1565
+ return Q(this.getStart().move(e).data, this.getEnd().move(-r).data);
1566
+ }
1567
+ sliceStartChars({ skipStart: e = 0, chars: r }) {
1568
+ return Q(this.getStart().move(e).data, this.getStart().move(e + r).data);
1569
+ }
1570
+ sliceEndChars({ skipEnd: e = 0, chars: r }) {
1571
+ return Q(this.getEnd().move(e - r).data, this.getStart().move(-e).data);
1572
+ }
1573
+ };
1574
+ var at = class {
1575
+ kind = k.CharPosition;
1576
+ _locPosSpan = null;
1577
+ constructor(e, r) {
1578
+ this.source = e, this.charPositions = r;
1579
+ }
1580
+ wrap() {
1581
+ return new O(this);
1582
+ }
1583
+ asString() {
1584
+ return this.source.slice(this.charPositions.start.charPos, this.charPositions.end.charPos);
1585
+ }
1586
+ getModule() {
1587
+ return this.source.module;
1588
+ }
1589
+ getStart() {
1590
+ return this.charPositions.start;
1591
+ }
1592
+ getEnd() {
1593
+ return this.charPositions.end;
1594
+ }
1595
+ locDidUpdate() {
1596
+ }
1597
+ toHbsSpan() {
1598
+ let e = this._locPosSpan;
1599
+ if (e === null) {
1600
+ let r = this.charPositions.start.toHbsPos(), n = this.charPositions.end.toHbsPos();
1601
+ r === null || n === null ? e = this._locPosSpan = fe : e = this._locPosSpan = new ot(this.source, { start: r, end: n });
1602
+ }
1603
+ return e === fe ? null : e;
1604
+ }
1605
+ serialize() {
1606
+ let { start: { charPos: e }, end: { charPos: r } } = this.charPositions;
1607
+ return e === r ? e : [e, r];
1608
+ }
1609
+ toCharPosSpan() {
1610
+ return this;
1611
+ }
1612
+ };
1613
+ var ot = class {
1614
+ kind = k.HbsPosition;
1615
+ _charPosSpan = null;
1616
+ _providedHbsLoc;
1617
+ constructor(e, r, n = null) {
1618
+ this.source = e, this.hbsPositions = r, this._providedHbsLoc = n;
1619
+ }
1620
+ serialize() {
1621
+ let e = this.toCharPosSpan();
1622
+ return e === null ? k.Broken : e.wrap().serialize();
1623
+ }
1624
+ wrap() {
1625
+ return new O(this);
1626
+ }
1627
+ updateProvided(e, r) {
1628
+ this._providedHbsLoc && (this._providedHbsLoc[r] = e), this._charPosSpan = null, this._providedHbsLoc = { start: e, end: e };
1629
+ }
1630
+ locDidUpdate({ start: e, end: r }) {
1631
+ e !== void 0 && (this.updateProvided(e, "start"), this.hbsPositions.start = new de(this.source, e, null)), r !== void 0 && (this.updateProvided(r, "end"), this.hbsPositions.end = new de(this.source, r, null));
1632
+ }
1633
+ asString() {
1634
+ let e = this.toCharPosSpan();
1635
+ return e === null ? "" : e.asString();
1636
+ }
1637
+ getModule() {
1638
+ return this.source.module;
1639
+ }
1640
+ getStart() {
1641
+ return this.hbsPositions.start;
1642
+ }
1643
+ getEnd() {
1644
+ return this.hbsPositions.end;
1645
+ }
1646
+ toHbsLoc() {
1647
+ return { start: this.hbsPositions.start.hbsPos, end: this.hbsPositions.end.hbsPos };
1648
+ }
1649
+ toHbsSpan() {
1650
+ return this;
1651
+ }
1652
+ toCharPosSpan() {
1653
+ let e = this._charPosSpan;
1654
+ if (e === null) {
1655
+ let r = this.hbsPositions.start.toCharPos(), n = this.hbsPositions.end.toCharPos();
1656
+ if (r && n) e = this._charPosSpan = new at(this.source, { start: r, end: n });
1657
+ else return e = this._charPosSpan = fe, null;
1658
+ }
1659
+ return e === fe ? null : e;
1660
+ }
1661
+ };
1662
+ var te = class {
1663
+ constructor(e, r, n = null) {
1664
+ this.kind = e, this.loc = r, this.string = n;
1665
+ }
1666
+ serialize() {
1667
+ switch (this.kind) {
1668
+ case k.Broken:
1669
+ case k.NonExistent:
1670
+ return this.kind;
1671
+ case k.InternalsSynthetic:
1672
+ return this.string || "";
1673
+ }
1674
+ }
1675
+ wrap() {
1676
+ return new O(this);
1677
+ }
1678
+ asString() {
1679
+ return this.string || "";
1680
+ }
1681
+ locDidUpdate({ start: e, end: r }) {
1682
+ e !== void 0 && (this.loc.start = e), r !== void 0 && (this.loc.end = r);
1683
+ }
1684
+ getModule() {
1685
+ return "an unknown module";
1686
+ }
1687
+ getStart() {
1688
+ return new lt(this.kind, this.loc.start);
1689
+ }
1690
+ getEnd() {
1691
+ return new lt(this.kind, this.loc.end);
1692
+ }
1693
+ toCharPosSpan() {
1694
+ return this;
1695
+ }
1696
+ toHbsSpan() {
1697
+ return null;
1698
+ }
1699
+ toHbsLoc() {
1700
+ return ue;
1701
+ }
1702
+ };
1703
+ var Q = Hn((t5) => t5.when(k.HbsPosition, k.HbsPosition, (e, r) => new ot(e.source, { start: e, end: r }).wrap()).when(k.CharPosition, k.CharPosition, (e, r) => new at(e.source, { start: e, end: r }).wrap()).when(k.CharPosition, k.HbsPosition, (e, r) => {
1704
+ let n = r.toCharPos();
1705
+ return n === null ? new te(k.Broken, ue).wrap() : Q(e, n);
1706
+ }).when(k.HbsPosition, k.CharPosition, (e, r) => {
1707
+ let n = e.toCharPos();
1708
+ return n === null ? new te(k.Broken, ue).wrap() : Q(n, r);
1709
+ }).when(Tr, it, (e) => new te(e.kind, ue).wrap()).when(it, Tr, (e, r) => new te(r.kind, ue).wrap()));
1710
+ var fe = "BROKEN";
1711
+ var Ue = class t3 {
1712
+ static forHbsPos(e, r) {
1713
+ return new de(e, r, null).wrap();
1714
+ }
1715
+ static broken(e = pe) {
1716
+ return new lt(k.Broken, e).wrap();
1717
+ }
1718
+ constructor(e) {
1719
+ this.data = e;
1720
+ }
1721
+ get offset() {
1722
+ let e = this.data.toCharPos();
1723
+ return e === null ? null : e.offset;
1724
+ }
1725
+ eql(e) {
1726
+ return wi(this.data, e.data);
1727
+ }
1728
+ until(e) {
1729
+ return Q(this.data, e.data);
1730
+ }
1731
+ move(e) {
1732
+ let r = this.data.toCharPos();
1733
+ if (r === null) return t3.broken();
1734
+ {
1735
+ let n = r.offset + e;
1736
+ return r.source.check(n) ? new Ne(r.source, n).wrap() : t3.broken();
1737
+ }
1738
+ }
1739
+ collapsed() {
1740
+ return Q(this.data, this.data);
1741
+ }
1742
+ toJSON() {
1743
+ return this.data.toJSON();
1744
+ }
1745
+ };
1746
+ var Ne = class {
1747
+ kind = k.CharPosition;
1748
+ _locPos = null;
1749
+ constructor(e, r) {
1750
+ this.source = e, this.charPos = r;
1751
+ }
1752
+ toCharPos() {
1753
+ return this;
1754
+ }
1755
+ toJSON() {
1756
+ let e = this.toHbsPos();
1757
+ return e === null ? pe : e.toJSON();
1758
+ }
1759
+ wrap() {
1760
+ return new Ue(this);
1761
+ }
1762
+ get offset() {
1763
+ return this.charPos;
1764
+ }
1765
+ toHbsPos() {
1766
+ let e = this._locPos;
1767
+ if (e === null) {
1768
+ let r = this.source.hbsPosFor(this.charPos);
1769
+ r === null ? this._locPos = e = fe : this._locPos = e = new de(this.source, r, this.charPos);
1770
+ }
1771
+ return e === fe ? null : e;
1772
+ }
1773
+ };
1774
+ var de = class {
1775
+ kind = k.HbsPosition;
1776
+ _charPos;
1777
+ constructor(e, r, n = null) {
1778
+ this.source = e, this.hbsPos = r, this._charPos = n === null ? null : new Ne(e, n);
1779
+ }
1780
+ toCharPos() {
1781
+ let e = this._charPos;
1782
+ if (e === null) {
1783
+ let r = this.source.charPosFor(this.hbsPos);
1784
+ r === null ? this._charPos = e = fe : this._charPos = e = new Ne(this.source, r);
1785
+ }
1786
+ return e === fe ? null : e;
1787
+ }
1788
+ toJSON() {
1789
+ return this.hbsPos;
1790
+ }
1791
+ wrap() {
1792
+ return new Ue(this);
1793
+ }
1794
+ toHbsPos() {
1795
+ return this;
1796
+ }
1797
+ };
1798
+ var lt = class {
1799
+ constructor(e, r) {
1800
+ this.kind = e, this.pos = r;
1801
+ }
1802
+ toCharPos() {
1803
+ return null;
1804
+ }
1805
+ toJSON() {
1806
+ return this.pos;
1807
+ }
1808
+ wrap() {
1809
+ return new Ue(this);
1810
+ }
1811
+ get offset() {
1812
+ return null;
1813
+ }
1814
+ };
1815
+ var wi = Hn((t5) => t5.when(k.HbsPosition, k.HbsPosition, ({ hbsPos: e }, { hbsPos: r }) => e.column === r.column && e.line === r.line).when(k.CharPosition, k.CharPosition, ({ charPos: e }, { charPos: r }) => e === r).when(k.CharPosition, k.HbsPosition, ({ offset: e }, r) => {
1816
+ var n;
1817
+ return e === ((n = r.toCharPos()) == null ? void 0 : n.offset);
1818
+ }).when(k.HbsPosition, k.CharPosition, (e, { offset: r }) => {
1819
+ var n;
1820
+ return ((n = e.toCharPos()) == null ? void 0 : n.offset) === r;
1821
+ }).when(it, it, () => false));
1822
+ var Te = class t4 {
1823
+ static from(e, r = {}) {
1824
+ var n;
1825
+ return new t4(e, (n = r.meta) == null ? void 0 : n.moduleName);
1826
+ }
1827
+ constructor(e, r = "an unknown module") {
1828
+ this.source = e, this.module = r;
1829
+ }
1830
+ check(e) {
1831
+ return e >= 0 && e <= this.source.length;
1832
+ }
1833
+ slice(e, r) {
1834
+ return this.source.slice(e, r);
1835
+ }
1836
+ offsetFor(e, r) {
1837
+ return Ue.forHbsPos(this, { line: e, column: r });
1838
+ }
1839
+ spanFor({ start: e, end: r }) {
1840
+ return O.forHbsLoc(this, { start: { line: e.line, column: e.column }, end: { line: r.line, column: r.column } });
1841
+ }
1842
+ hbsPosFor(e) {
1843
+ let r = 0, n = 0;
1844
+ if (e > this.source.length) return null;
1845
+ for (; ; ) {
1846
+ let s = this.source.indexOf(`
1847
+ `, n);
1848
+ if (e <= s || s === -1) return { line: r + 1, column: e - n };
1849
+ r += 1, n = s + 1;
1850
+ }
1851
+ }
1852
+ charPosFor(e) {
1853
+ let { line: r, column: n } = e, i = this.source.length, a = 0, o = 0;
1854
+ for (; o < i; ) {
1855
+ let c = this.source.indexOf(`
1856
+ `, o);
1857
+ if (c === -1 && (c = this.source.length), a === r - 1) {
1858
+ if (o + n > c) return c;
1859
+ return o + n;
1860
+ } else {
1861
+ if (c === -1) return 0;
1862
+ a += 1, o = c + 1;
1863
+ }
1864
+ }
1865
+ return i;
1866
+ }
1867
+ };
1868
+ function S(t5, e) {
1869
+ let { module: r, loc: n } = e, { line: s, column: i } = n.start, a = e.asString(), o = a ? `
1870
+
1871
+ |
1872
+ | ${a.split(`
1873
+ `).join(`
1874
+ | `)}
1875
+ |
1876
+
1877
+ ` : "", c = new Error(`${t5}: ${o}(error occurred in '${r}' @ line ${s} : column ${i})`);
1878
+ return c.name = "SyntaxError", c.location = e, c.code = a, c;
1879
+ }
1880
+ var ki = { 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"] };
1881
+ var Or = function() {
1882
+ t5.prototype = Object.create(Error.prototype), t5.prototype.constructor = t5;
1883
+ function t5(e, r, n, s) {
1884
+ let i = Error.call(this, e);
1885
+ this.key = s, this.message = e, this.node = r, this.parent = n, i.stack && (this.stack = i.stack);
1886
+ }
1887
+ return t5;
1888
+ }();
1889
+ function Bn(t5, e, r) {
1890
+ return new Or("Cannot remove a node unless it is part of an array", t5, e, r);
1891
+ }
1892
+ function Ti(t5, e, r) {
1893
+ return new Or("Cannot replace a node with multiple nodes unless it is part of an array", t5, e, r);
1894
+ }
1895
+ function In(t5, e) {
1896
+ return new Or("Replacing and removing in key handlers is not yet supported.", t5, null, e);
1897
+ }
1898
+ var Fe = class {
1899
+ node;
1900
+ parent;
1901
+ parentKey;
1902
+ constructor(e, r = null, n = null) {
1903
+ this.node = e, this.parent = r, this.parentKey = n;
1904
+ }
1905
+ get parentNode() {
1906
+ return this.parent ? this.parent.node : null;
1907
+ }
1908
+ parents() {
1909
+ return { [Symbol.iterator]: () => new Pr(this) };
1910
+ }
1911
+ };
1912
+ var Pr = class {
1913
+ path;
1914
+ constructor(e) {
1915
+ this.path = e;
1916
+ }
1917
+ next() {
1918
+ return this.path.parent ? (this.path = this.path.parent, { done: false, value: this.path }) : { done: true, value: null };
1919
+ }
1920
+ };
1921
+ function Vn(t5) {
1922
+ return typeof t5 == "function" ? t5 : t5.enter;
1923
+ }
1924
+ function Un(t5) {
1925
+ if (typeof t5 != "function") return t5.exit;
1926
+ }
1927
+ function Ni(t5, e) {
1928
+ let r = typeof t5 != "function" ? t5.keys : void 0;
1929
+ if (r === void 0) return;
1930
+ let n = r[e];
1931
+ return n !== void 0 ? n : r.All;
1932
+ }
1933
+ function vi(t5, e) {
1934
+ if (t5.Program && (e === "Template" && !t5.Template || e === "Block" && !t5.Block)) return F(`The 'Program' visitor node is deprecated. Use 'Template' or 'Block' instead (node was '${e}') `), t5.Program;
1935
+ let r = t5[e];
1936
+ return r !== void 0 ? r : t5.All;
1937
+ }
1938
+ function Ot(t5, e) {
1939
+ let { node: r, parent: n, parentKey: s } = e, i = vi(t5, r.type), a, o;
1940
+ i !== void 0 && (a = Vn(i), o = Un(i));
1941
+ let c;
1942
+ if (a !== void 0 && (c = a(r, e)), c != null) if (JSON.stringify(r) === JSON.stringify(c)) c = void 0;
1943
+ else {
1944
+ if (Array.isArray(c)) return Fn(t5, c, n, s), c;
1945
+ {
1946
+ let p = new Fe(c, n, s);
1947
+ return Ot(t5, p) || c;
1948
+ }
1949
+ }
1950
+ if (c === void 0) {
1951
+ let p = ki[r.type];
1952
+ for (let h = 0; h < p.length; h++) {
1953
+ let d = p[h];
1954
+ Pi(t5, i, e, d);
1955
+ }
1956
+ o !== void 0 && (c = o(r, e));
1957
+ }
1958
+ return c;
1959
+ }
1960
+ function Ai(t5, e) {
1961
+ return t5[e];
1962
+ }
1963
+ function Rn(t5, e, r) {
1964
+ t5[e] = r;
1965
+ }
1966
+ function Pi(t5, e, r, n) {
1967
+ let { node: s } = r, i = Ai(s, n);
1968
+ if (!i) return;
1969
+ let a, o;
1970
+ if (e !== void 0) {
1971
+ let c = Ni(e, n);
1972
+ c !== void 0 && (a = Vn(c), o = Un(c));
1973
+ }
1974
+ if (a !== void 0 && a(s, n) !== void 0) throw In(s, n);
1975
+ if (Array.isArray(i)) Fn(t5, i, r, n);
1976
+ else {
1977
+ let c = new Fe(i, r, n), p = Ot(t5, c);
1978
+ p !== void 0 && xi(s, n, i, p);
1979
+ }
1980
+ if (o !== void 0 && o(s, n) !== void 0) throw In(s, n);
1981
+ }
1982
+ function Fn(t5, e, r, n) {
1983
+ for (let s = 0; s < e.length; s++) {
1984
+ let i = kt(e[s]), a = new Fe(i, r, n), o = Ot(t5, a);
1985
+ o !== void 0 && (s += Ci(e, s, o) - 1);
1986
+ }
1987
+ }
1988
+ function xi(t5, e, r, n) {
1989
+ if (n === null) throw Bn(r, t5, e);
1990
+ if (Array.isArray(n)) if (n.length === 1) Rn(t5, e, n[0]);
1991
+ else throw n.length === 0 ? Bn(r, t5, e) : Ti(r, t5, e);
1992
+ else Rn(t5, e, n);
1993
+ }
1994
+ function Ci(t5, e, r) {
1995
+ return r === null ? (t5.splice(e, 1), 0) : Array.isArray(r) ? (t5.splice(e, 1, ...r), r.length) : (t5.splice(e, 1, r), 1);
1996
+ }
1997
+ function Li(t5, e) {
1998
+ let r = new Fe(t5);
1999
+ Ot(e, r);
2000
+ }
2001
+ function _i(t5) {
2002
+ switch (t5.type) {
2003
+ case "Block":
2004
+ case "Template":
2005
+ return t5.body;
2006
+ case "ElementNode":
2007
+ return t5.children;
2008
+ }
2009
+ }
2010
+ function Ve(t5, e) {
2011
+ _i(t5).push(e);
2012
+ }
2013
+ function Mn(t5) {
2014
+ return t5.type === "StringLiteral" || t5.type === "BooleanLiteral" || t5.type === "NumberLiteral" || t5.type === "NullLiteral" || t5.type === "UndefinedLiteral";
2015
+ }
2016
+ function Di(t5) {
2017
+ return t5.type === "UndefinedLiteral" ? "undefined" : JSON.stringify(t5.value);
2018
+ }
2019
+ var br;
2020
+ function yr() {
2021
+ return br || (br = new Te("", "(synthetic)")), br;
2022
+ }
2023
+ function Oi(t5, e = [], r = ct([]), n = false, s, i) {
2024
+ return f.mustache({ path: he(t5), params: e, hash: r, trusting: n, strip: i, loc: A(s || null) });
2025
+ }
2026
+ function Bi(t5, e, r, n, s = null, i, a, o, c) {
2027
+ let p, h = null;
2028
+ return n.type === "Template" ? (F("b.program is deprecated. Use b.blockItself instead."), p = f.blockItself({ params: Gn(n.blockParams), body: n.body, loc: n.loc })) : p = n, (s == null ? void 0 : s.type) === "Template" ? (F("b.program is deprecated. Use b.blockItself instead."), w(s.blockParams.length === 0, "{{else}} block cannot have block params"), h = f.blockItself({ params: [], body: s.body, loc: s.loc })) : h = s, f.block({ path: he(t5), params: e || [], hash: r || ct([]), defaultBlock: p, elseBlock: h, loc: A(i || null), openStrip: a, inverseStrip: o, closeStrip: c });
2029
+ }
2030
+ function Ii(t5, e, r, n) {
2031
+ return f.elementModifier({ path: he(t5), params: e || [], hash: r || ct([]), loc: A(n || null) });
2032
+ }
2033
+ function Ri(t5, e) {
2034
+ return f.comment({ value: t5, loc: A(e || null) });
2035
+ }
2036
+ function qi(t5, e) {
2037
+ return f.mustacheComment({ value: t5, loc: A(e || null) });
2038
+ }
2039
+ function Hi(t5, e) {
2040
+ if (!we(t5)) throw new Error("b.concat requires at least one part");
2041
+ return f.concat({ parts: t5, loc: A(e || null) });
2042
+ }
2043
+ function Vi(t5, e = {}) {
2044
+ let { attrs: r, blockParams: n, modifiers: s, comments: i, children: a, openTag: o, closeTag: c, loc: p } = e, h, d;
2045
+ typeof t5 == "string" ? t5.endsWith("/") ? (h = he(t5.slice(0, -1)), d = true) : h = he(t5) : "type" in t5 ? (w(t5.type === "PathExpression", `Invalid tag type ${t5.type}`), h = t5) : "path" in t5 ? (w(t5.path.type === "PathExpression", `Invalid tag type ${t5.path.type}`), h = t5.path, d = t5.selfClosing) : (h = he(t5.name), d = t5.selfClosing), d && w(c == null, "Cannot build a self-closing tag with a closeTag source location");
2046
+ let N = n == null ? void 0 : n.map((T) => typeof T == "string" ? zn(T) : T), g = null;
2047
+ return c ? g = A(c || null) : c === void 0 && (g = d || yi(h.original) ? null : A(null)), f.element({ path: h, selfClosing: d || false, attributes: r || [], params: N || [], modifiers: s || [], comments: i || [], children: a || [], openTag: A(o || null), closeTag: g, loc: A(p || null) });
2048
+ }
2049
+ function Ui(t5, e, r) {
2050
+ return f.attr({ name: t5, value: e, loc: A(r || null) });
2051
+ }
2052
+ function Fi(t5 = "", e) {
2053
+ return f.text({ chars: t5, loc: A(e || null) });
2054
+ }
2055
+ function Mi(t5, e = [], r = ct([]), n) {
2056
+ return f.sexpr({ path: he(t5), params: e, hash: r, loc: A(n || null) });
2057
+ }
2058
+ function zi(t5, e) {
2059
+ let [r, ...n] = qe(t5.split(".")), s = f.head({ original: r, loc: A(e || null) });
2060
+ return f.path({ head: s, tail: n, loc: A(e || null) });
2061
+ }
2062
+ function Gi(t5) {
2063
+ return f.this({ loc: A(t5 || null) });
2064
+ }
2065
+ function Yi(t5, e) {
2066
+ return f.atName({ name: t5, loc: A(e || null) });
2067
+ }
2068
+ function zn(t5, e) {
2069
+ return f.var({ name: t5, loc: A(e || null) });
2070
+ }
2071
+ function Ki(t5, e) {
2072
+ return f.head({ original: t5, loc: A(e || null) });
2073
+ }
2074
+ function Wi(t5, e = [], r) {
2075
+ return f.path({ head: t5, tail: e, loc: A(r || null) });
2076
+ }
2077
+ function he(t5, e) {
2078
+ let r = A(e || null);
2079
+ if (typeof t5 != "string") {
2080
+ if ("type" in t5) return t5;
2081
+ {
2082
+ w(t5.head.indexOf(".") === -1, "builder.path({ head, tail }) should not be called with a head with dots in it");
2083
+ let { head: i, tail: a } = t5;
2084
+ return f.path({ head: f.head({ original: i, loc: r.sliceStartChars({ chars: i.length }) }), tail: a, loc: A(e || null) });
2085
+ }
2086
+ }
2087
+ let { head: n, tail: s } = zi(t5, r);
2088
+ return f.path({ head: n, tail: s, loc: r });
2089
+ }
2090
+ function _t(t5, e, r) {
2091
+ return f.literal({ type: t5, value: e, loc: A(r || null) });
2092
+ }
2093
+ function ct(t5 = [], e) {
2094
+ return f.hash({ pairs: t5, loc: A(e || null) });
2095
+ }
2096
+ function $i(t5, e, r) {
2097
+ return f.pair({ key: t5, value: e, loc: A(r || null) });
2098
+ }
2099
+ function ji(t5, e, r) {
2100
+ return F("b.program is deprecated. Use b.template or b.blockItself instead."), e && e.length ? Yn(t5, e, false, r) : Kn(t5, [], r);
2101
+ }
2102
+ function Gn(t5) {
2103
+ return t5.map((e) => typeof e == "string" ? f.var({ name: e, loc: O.synthetic(e) }) : e);
2104
+ }
2105
+ function Yn(t5 = [], e = [], r = false, n) {
2106
+ return f.blockItself({ body: t5, params: Gn(e), chained: r, loc: A(n || null) });
2107
+ }
2108
+ function Kn(t5 = [], e = [], r) {
2109
+ return f.template({ body: t5, blockParams: e, loc: A(r || null) });
2110
+ }
2111
+ function Qi(t5, e) {
2112
+ return f.pos({ line: t5, column: e });
2113
+ }
2114
+ function A(...t5) {
2115
+ if (t5.length === 1) {
2116
+ let e = t5[0];
2117
+ return e && typeof e == "object" ? O.forHbsLoc(yr(), e) : O.forHbsLoc(yr(), Ei);
2118
+ } else {
2119
+ let [e, r, n, s, i] = t5, a = i ? new Te("", i) : yr();
2120
+ return O.forHbsLoc(a, { start: { line: e, column: r }, end: { line: n || e, column: s || r } });
2121
+ }
2122
+ }
2123
+ var Xi = { mustache: Oi, block: Bi, comment: Ri, mustacheComment: qi, element: Vi, elementModifier: Ii, attr: Ui, text: Fi, sexpr: Mi, concat: Hi, hash: ct, pair: $i, literal: _t, program: ji, blockItself: Yn, template: Kn, loc: A, pos: Qi, path: he, fullPath: Wi, head: Ki, at: Yi, var: zn, this: Gi, string: Er("StringLiteral"), boolean: Er("BooleanLiteral"), number: Er("NumberLiteral"), undefined() {
2124
+ return _t("UndefinedLiteral", void 0);
2125
+ }, null() {
2126
+ return _t("NullLiteral", null);
2127
+ } };
2128
+ function Er(t5) {
2129
+ return function(e, r) {
2130
+ return _t(t5, e, r);
2131
+ };
2132
+ }
2133
+ function Ji({ path: t5, params: e, hash: r, trusting: n, strip: s, loc: i }) {
2134
+ let a = { type: "MustacheStatement", path: t5, params: e, hash: r, trusting: n, strip: s, loc: i };
2135
+ return Object.defineProperty(a, "escaped", { enumerable: false, get() {
2136
+ return F("The escaped property on mustache nodes is deprecated, use trusting instead"), !this.trusting;
2137
+ }, set(o) {
2138
+ F("The escaped property on mustache nodes is deprecated, use trusting instead"), this.trusting = !o;
2139
+ } }), a;
2140
+ }
2141
+ function Zi({ head: t5, tail: e, loc: r }) {
2142
+ let n = { type: "PathExpression", head: t5, tail: e, get original() {
2143
+ return [this.head.original, ...this.tail].join(".");
2144
+ }, set original(s) {
2145
+ let [i, ...a] = qe(s.split("."));
2146
+ this.head = Xi.head(i, this.head.loc), this.tail = a;
2147
+ }, loc: r };
2148
+ return Object.defineProperty(n, "parts", { enumerable: false, get() {
2149
+ F("The parts property on path nodes is deprecated, use head and tail instead");
2150
+ let s = qe(this.original.split("."));
2151
+ return s[0] === "this" ? s.shift() : s[0].startsWith("@") && (s[0] = s[0].slice(1)), Object.freeze(s);
2152
+ }, set(s) {
2153
+ var a;
2154
+ F("The parts property on mustache nodes is deprecated, use head and tail instead");
2155
+ let i = [...s];
2156
+ i[0] !== "this" && !((a = i[0]) != null && a.startsWith("@")) && (this.head.type === "ThisHead" ? i.unshift("this") : this.head.type === "AtHead" && (i[0] = `@${i[0]}`)), this.original = i.join(".");
2157
+ } }), Object.defineProperty(n, "this", { enumerable: false, get() {
2158
+ return F("The this property on path nodes is deprecated, use head.type instead"), this.head.type === "ThisHead";
2159
+ } }), Object.defineProperty(n, "data", { enumerable: false, get() {
2160
+ return F("The data property on path nodes is deprecated, use head.type instead"), this.head.type === "AtHead";
2161
+ } }), n;
2162
+ }
2163
+ function ea({ type: t5, value: e, loc: r }) {
2164
+ let n = { type: t5, value: e, loc: r };
2165
+ return Object.defineProperty(n, "original", { enumerable: false, get() {
2166
+ return F("The original property on literal nodes is deprecated, use value instead"), this.value;
2167
+ }, set(s) {
2168
+ F("The original property on literal nodes is deprecated, use value instead"), this.value = s;
2169
+ } }), n;
2170
+ }
2171
+ var Lt = { close: false, open: false };
2172
+ var xr = class {
2173
+ pos({ line: e, column: r }) {
2174
+ return { line: e, column: r };
2175
+ }
2176
+ blockItself({ body: e, params: r, chained: n = false, loc: s }) {
2177
+ return { type: "Block", body: e, params: r, get blockParams() {
2178
+ return this.params.map((i) => i.name);
2179
+ }, set blockParams(i) {
2180
+ this.params = i.map((a) => f.var({ name: a, loc: O.synthetic(a) }));
2181
+ }, chained: n, loc: s };
2182
+ }
2183
+ template({ body: e, blockParams: r, loc: n }) {
2184
+ return { type: "Template", body: e, blockParams: r, loc: n };
2185
+ }
2186
+ mustache({ path: e, params: r, hash: n, trusting: s, loc: i, strip: a = Lt }) {
2187
+ return Ji({ path: e, params: r, hash: n, trusting: s, strip: a, loc: i });
2188
+ }
2189
+ block({ path: e, params: r, hash: n, defaultBlock: s, elseBlock: i = null, loc: a, openStrip: o = Lt, inverseStrip: c = Lt, closeStrip: p = Lt }) {
2190
+ return { type: "BlockStatement", path: e, params: r, hash: n, program: s, inverse: i, loc: a, openStrip: o, inverseStrip: c, closeStrip: p };
2191
+ }
2192
+ comment({ value: e, loc: r }) {
2193
+ return { type: "CommentStatement", value: e, loc: r };
2194
+ }
2195
+ mustacheComment({ value: e, loc: r }) {
2196
+ return { type: "MustacheCommentStatement", value: e, loc: r };
2197
+ }
2198
+ concat({ parts: e, loc: r }) {
2199
+ return { type: "ConcatStatement", parts: e, loc: r };
2200
+ }
2201
+ element({ path: e, selfClosing: r, attributes: n, modifiers: s, params: i, comments: a, children: o, openTag: c, closeTag: p, loc: h }) {
2202
+ let d = r;
2203
+ return { type: "ElementNode", path: e, attributes: n, modifiers: s, params: i, comments: a, children: o, openTag: c, closeTag: p, loc: h, get tag() {
2204
+ return this.path.original;
2205
+ }, set tag(N) {
2206
+ this.path.original = N;
2207
+ }, get blockParams() {
2208
+ return this.params.map((N) => N.name);
2209
+ }, set blockParams(N) {
2210
+ this.params = N.map((g) => f.var({ name: g, loc: O.synthetic(g) }));
2211
+ }, get selfClosing() {
2212
+ return d;
2213
+ }, set selfClosing(N) {
2214
+ d = N, N ? this.closeTag = null : this.closeTag = O.synthetic(`</${this.tag}>`);
2215
+ } };
2216
+ }
2217
+ elementModifier({ path: e, params: r, hash: n, loc: s }) {
2218
+ return { type: "ElementModifierStatement", path: e, params: r, hash: n, loc: s };
2219
+ }
2220
+ attr({ name: e, value: r, loc: n }) {
2221
+ return { type: "AttrNode", name: e, value: r, loc: n };
2222
+ }
2223
+ text({ chars: e, loc: r }) {
2224
+ return { type: "TextNode", chars: e, loc: r };
2225
+ }
2226
+ sexpr({ path: e, params: r, hash: n, loc: s }) {
2227
+ return { type: "SubExpression", path: e, params: r, hash: n, loc: s };
2228
+ }
2229
+ path({ head: e, tail: r, loc: n }) {
2230
+ return Zi({ head: e, tail: r, loc: n });
2231
+ }
2232
+ head({ original: e, loc: r }) {
2233
+ return e === "this" ? this.this({ loc: r }) : e[0] === "@" ? this.atName({ name: e, loc: r }) : this.var({ name: e, loc: r });
2234
+ }
2235
+ this({ loc: e }) {
2236
+ return { type: "ThisHead", get original() {
2237
+ return "this";
2238
+ }, loc: e };
2239
+ }
2240
+ atName({ name: e, loc: r }) {
2241
+ let n = "", s = { type: "AtHead", get name() {
2242
+ return n;
2243
+ }, set name(i) {
2244
+ w(i[0] === "@", "call builders.at() with a string that starts with '@'"), w(i.indexOf(".") === -1, "builder.at() should not be called with a name with dots in it"), n = i;
2245
+ }, get original() {
2246
+ return this.name;
2247
+ }, set original(i) {
2248
+ this.name = i;
2249
+ }, loc: r };
2250
+ return s.name = e, s;
2251
+ }
2252
+ var({ name: e, loc: r }) {
2253
+ let n = "", s = { type: "VarHead", get name() {
2254
+ return n;
2255
+ }, set name(i) {
2256
+ w(i !== "this", "You called builders.var() with 'this'. Call builders.this instead"), w(i[0] !== "@", `You called builders.var() with '${e}'. Call builders.at('${e}') instead`), w(i.indexOf(".") === -1, "builder.var() should not be called with a name with dots in it"), n = i;
2257
+ }, get original() {
2258
+ return this.name;
2259
+ }, set original(i) {
2260
+ this.name = i;
2261
+ }, loc: r };
2262
+ return s.name = e, s;
2263
+ }
2264
+ hash({ pairs: e, loc: r }) {
2265
+ return { type: "Hash", pairs: e, loc: r };
2266
+ }
2267
+ pair({ key: e, value: r, loc: n }) {
2268
+ return { type: "HashPair", key: e, value: r, loc: n };
2269
+ }
2270
+ literal({ type: e, value: r, loc: n }) {
2271
+ return ea({ type: e, value: r, loc: n });
2272
+ }
2273
+ };
2274
+ var f = new xr();
2275
+ var Cr = class {
2276
+ elementStack = [];
2277
+ lines;
2278
+ source;
2279
+ currentAttribute = null;
2280
+ currentNode = null;
2281
+ tokenizer;
2282
+ constructor(e, r = new dr(Dn), n = "precompile") {
2283
+ this.source = e, this.lines = e.source.split(/\r\n?|\n/u), this.tokenizer = new mr(this, r, n);
2284
+ }
2285
+ offset() {
2286
+ let { line: e, column: r } = this.tokenizer;
2287
+ return this.source.offsetFor(e, r);
2288
+ }
2289
+ pos({ line: e, column: r }) {
2290
+ return this.source.offsetFor(e, r);
2291
+ }
2292
+ finish(e) {
2293
+ return ar({}, e, { loc: e.start.until(this.offset()) });
2294
+ }
2295
+ get currentAttr() {
2296
+ return Tn(this.currentAttribute, "expected attribute");
2297
+ }
2298
+ get currentTag() {
2299
+ let e = this.currentNode;
2300
+ return w(e && (e.type === "StartTag" || e.type === "EndTag"), "expected tag"), e;
2301
+ }
2302
+ get currentStartTag() {
2303
+ let e = this.currentNode;
2304
+ return w(e && e.type === "StartTag", "expected start tag"), e;
2305
+ }
2306
+ get currentEndTag() {
2307
+ let e = this.currentNode;
2308
+ return w(e && e.type === "EndTag", "expected end tag"), e;
2309
+ }
2310
+ get currentComment() {
2311
+ let e = this.currentNode;
2312
+ return w(e && e.type === "CommentStatement", "expected a comment"), e;
2313
+ }
2314
+ get currentData() {
2315
+ let e = this.currentNode;
2316
+ return w(e && e.type === "TextNode", "expected a text node"), e;
2317
+ }
2318
+ acceptNode(e) {
2319
+ return this[e.type](e);
2320
+ }
2321
+ currentElement() {
2322
+ return Nt(qe(this.elementStack));
2323
+ }
2324
+ sourceForNode(e, r) {
2325
+ let n = e.loc.start.line - 1, s = n - 1, i = e.loc.start.column, a = [], o, c, p;
2326
+ for (r ? (c = r.loc.end.line - 1, p = r.loc.end.column) : (c = e.loc.end.line - 1, p = e.loc.end.column); s < c; ) s++, o = kt(this.lines[s]), s === n ? n === c ? a.push(o.slice(i, p)) : a.push(o.slice(i)) : s === c ? a.push(o.slice(0, p)) : a.push(o);
2327
+ return a.join(`
2328
+ `);
2329
+ }
2330
+ };
2331
+ var qn = "beforeAttributeName";
2332
+ var ta = "attributeValueUnquoted";
2333
+ var Lr = class extends Cr {
2334
+ pendingError = null;
2335
+ parse(e, r) {
2336
+ var i;
2337
+ let n = f.template({ body: [], blockParams: r, loc: this.source.spanFor(e.loc) }), s = this.parseProgram(n, e);
2338
+ return (i = this.pendingError) == null || i.eof(s.loc.getEnd()), s;
2339
+ }
2340
+ Program(e, r) {
2341
+ w(Array.isArray(r), "[BUG] Program in parser unexpectedly called without block params");
2342
+ let n = f.blockItself({ body: [], params: r, chained: e.chained, loc: this.source.spanFor(e.loc) });
2343
+ return this.parseProgram(n, e);
2344
+ }
2345
+ parseProgram(e, r) {
2346
+ if (r.body.length === 0) return e;
2347
+ let n;
2348
+ try {
2349
+ this.elementStack.push(e);
2350
+ for (let s of r.body) this.acceptNode(s);
2351
+ } finally {
2352
+ n = this.elementStack.pop();
2353
+ }
2354
+ if (e !== n) {
2355
+ if ((n == null ? void 0 : n.type) === "ElementNode") throw S(`Unclosed element \`${n.tag}\``, n.loc);
2356
+ w(n !== void 0, "[BUG] empty parser elementStack"), w(false, `[BUG] mismatched parser elementStack node: ${e.type}`);
2357
+ }
2358
+ return e;
2359
+ }
2360
+ BlockStatement(e) {
2361
+ var d;
2362
+ if (this.tokenizer.state === "comment") {
2363
+ this.appendToCommentData(this.sourceForNode(e));
2364
+ return;
2365
+ }
2366
+ 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(e.loc));
2367
+ let { path: r, params: n, hash: s } = Sr(this, e), i = this.source.spanFor(e.loc), a = [];
2368
+ if ((d = e.program.blockParams) != null && d.length) {
2369
+ let N = s.loc.collapse("end");
2370
+ e.program.loc ? N = N.withEnd(this.source.spanFor(e.program.loc).getStart()) : e.program.body[0] ? N = N.withEnd(this.source.spanFor(e.program.body[0].loc).getStart()) : N = N.withEnd(i.getEnd());
2371
+ let g = N.asString(), T = g.indexOf("|") + 1, x = g.indexOf("|", T);
2372
+ for (let C of e.program.blockParams) {
2373
+ let v, M;
2374
+ T >= x ? v = -1 : v = g.indexOf(C, T), v === -1 || v + C.length > x ? (T = x, M = this.source.spanFor(st)) : (T = v, M = N.sliceStartChars({ skipStart: T, chars: C.length }), T += C.length), a.push(f.var({ name: C, loc: M }));
2375
+ }
2376
+ }
2377
+ e.program.loc || (e.program.loc = st), e.inverse && !e.inverse.loc && (e.inverse.loc = st);
2378
+ let o = this.Program(e.program, a), c = e.inverse ? this.Program(e.inverse, []) : null, p = f.block({ path: r, params: n, hash: s, defaultBlock: o, elseBlock: c, loc: this.source.spanFor(e.loc), openStrip: e.openStrip, inverseStrip: e.inverseStrip, closeStrip: e.closeStrip }), h = this.currentElement();
2379
+ Ve(h, p);
2380
+ }
2381
+ MustacheStatement(e) {
2382
+ var o;
2383
+ (o = this.pendingError) == null || o.mustache(this.source.spanFor(e.loc));
2384
+ let { tokenizer: r } = this;
2385
+ if (r.state === "comment") {
2386
+ this.appendToCommentData(this.sourceForNode(e));
2387
+ return;
2388
+ }
2389
+ let n, { escaped: s, loc: i, strip: a } = e;
2390
+ if ("original" in e.path && e.path.original === "...attributes") throw S("Illegal use of ...attributes", this.source.spanFor(e.loc));
2391
+ if (Mn(e.path)) n = f.mustache({ path: this.acceptNode(e.path), params: [], hash: f.hash({ pairs: [], loc: this.source.spanFor(e.path.loc).collapse("end") }), trusting: !s, loc: this.source.spanFor(i), strip: a });
2392
+ else {
2393
+ let { path: c, params: p, hash: h } = Sr(this, e);
2394
+ n = f.mustache({ path: c, params: p, hash: h, trusting: !s, loc: this.source.spanFor(i), strip: a });
2395
+ }
2396
+ switch (r.state) {
2397
+ case "tagOpen":
2398
+ case "tagName":
2399
+ throw S("Cannot use mustaches in an elements tagname", n.loc);
2400
+ case "beforeAttributeName":
2401
+ wr(this.currentStartTag, n);
2402
+ break;
2403
+ case "attributeName":
2404
+ case "afterAttributeName":
2405
+ this.beginAttributeValue(false), this.finishAttributeValue(), wr(this.currentStartTag, n), r.transitionTo(qn);
2406
+ break;
2407
+ case "afterAttributeValueQuoted":
2408
+ wr(this.currentStartTag, n), r.transitionTo(qn);
2409
+ break;
2410
+ case "beforeAttributeValue":
2411
+ this.beginAttributeValue(false), this.appendDynamicAttributeValuePart(n), r.transitionTo(ta);
2412
+ break;
2413
+ case "attributeValueDoubleQuoted":
2414
+ case "attributeValueSingleQuoted":
2415
+ case "attributeValueUnquoted":
2416
+ this.appendDynamicAttributeValuePart(n);
2417
+ break;
2418
+ default:
2419
+ Ve(this.currentElement(), n);
2420
+ }
2421
+ return n;
2422
+ }
2423
+ appendDynamicAttributeValuePart(e) {
2424
+ this.finalizeTextPart();
2425
+ let r = this.currentAttr;
2426
+ r.isDynamic = true, r.parts.push(e);
2427
+ }
2428
+ finalizeTextPart() {
2429
+ let r = this.currentAttr.currentPart;
2430
+ r !== null && (this.currentAttr.parts.push(r), this.startTextPart());
2431
+ }
2432
+ startTextPart() {
2433
+ this.currentAttr.currentPart = null;
2434
+ }
2435
+ ContentStatement(e) {
2436
+ na(this.tokenizer, e), this.tokenizer.tokenizePart(e.value), this.tokenizer.flushData();
2437
+ }
2438
+ CommentStatement(e) {
2439
+ let { tokenizer: r } = this;
2440
+ if (r.state === "comment") return this.appendToCommentData(this.sourceForNode(e)), null;
2441
+ let { value: n, loc: s } = e, i = f.mustacheComment({ value: n, loc: this.source.spanFor(s) });
2442
+ switch (r.state) {
2443
+ case "beforeAttributeName":
2444
+ case "afterAttributeName":
2445
+ this.currentStartTag.comments.push(i);
2446
+ break;
2447
+ case "beforeData":
2448
+ case "data":
2449
+ Ve(this.currentElement(), i);
2450
+ break;
2451
+ default:
2452
+ throw S(`Using a Handlebars comment when in the \`${r.state}\` state is not supported`, this.source.spanFor(e.loc));
2453
+ }
2454
+ return i;
2455
+ }
2456
+ PartialStatement(e) {
2457
+ throw S("Handlebars partials are not supported", this.source.spanFor(e.loc));
2458
+ }
2459
+ PartialBlockStatement(e) {
2460
+ throw S("Handlebars partial blocks are not supported", this.source.spanFor(e.loc));
2461
+ }
2462
+ Decorator(e) {
2463
+ throw S("Handlebars decorators are not supported", this.source.spanFor(e.loc));
2464
+ }
2465
+ DecoratorBlock(e) {
2466
+ throw S("Handlebars decorator blocks are not supported", this.source.spanFor(e.loc));
2467
+ }
2468
+ SubExpression(e) {
2469
+ let { path: r, params: n, hash: s } = Sr(this, e);
2470
+ return f.sexpr({ path: r, params: n, hash: s, loc: this.source.spanFor(e.loc) });
2471
+ }
2472
+ PathExpression(e) {
2473
+ let { original: r } = e, n;
2474
+ if (r.indexOf("/") !== -1) {
2475
+ if (r.slice(0, 2) === "./") throw S('Using "./" is not supported in Glimmer and unnecessary', this.source.spanFor(e.loc));
2476
+ if (r.slice(0, 3) === "../") throw S('Changing context using "../" is not supported in Glimmer', this.source.spanFor(e.loc));
2477
+ if (r.indexOf(".") !== -1) throw S("Mixing '.' and '/' in paths is not supported in Glimmer; use only '.' to separate property paths", this.source.spanFor(e.loc));
2478
+ n = [e.parts.join("/")];
2479
+ } else {
2480
+ if (r === ".") throw S("'.' is not a supported path in Glimmer; check for a path with a trailing '.'", this.source.spanFor(e.loc));
2481
+ n = e.parts;
2482
+ }
2483
+ let s = false;
2484
+ /^this(?:\..+)?$/u.test(r) && (s = true);
2485
+ let i;
2486
+ if (s) i = f.this({ loc: this.source.spanFor({ start: e.loc.start, end: { line: e.loc.start.line, column: e.loc.start.column + 4 } }) });
2487
+ else if (e.data) {
2488
+ let a = n.shift();
2489
+ 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(e.loc));
2490
+ i = f.atName({ name: `@${a}`, loc: this.source.spanFor({ start: e.loc.start, end: { line: e.loc.start.line, column: e.loc.start.column + a.length + 1 } }) });
2491
+ } else {
2492
+ let a = n.shift();
2493
+ 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(e.loc));
2494
+ i = f.var({ name: a, loc: this.source.spanFor({ start: e.loc.start, end: { line: e.loc.start.line, column: e.loc.start.column + a.length } }) });
2495
+ }
2496
+ return f.path({ head: i, tail: n, loc: this.source.spanFor(e.loc) });
2497
+ }
2498
+ Hash(e) {
2499
+ let r = e.pairs.map((n) => f.pair({ key: n.key, value: this.acceptNode(n.value), loc: this.source.spanFor(n.loc) }));
2500
+ return f.hash({ pairs: r, loc: this.source.spanFor(e.loc) });
2501
+ }
2502
+ StringLiteral(e) {
2503
+ return f.literal({ type: "StringLiteral", value: e.value, loc: this.source.spanFor(e.loc) });
2504
+ }
2505
+ BooleanLiteral(e) {
2506
+ return f.literal({ type: "BooleanLiteral", value: e.value, loc: this.source.spanFor(e.loc) });
2507
+ }
2508
+ NumberLiteral(e) {
2509
+ return f.literal({ type: "NumberLiteral", value: e.value, loc: this.source.spanFor(e.loc) });
2510
+ }
2511
+ UndefinedLiteral(e) {
2512
+ return f.literal({ type: "UndefinedLiteral", value: void 0, loc: this.source.spanFor(e.loc) });
2513
+ }
2514
+ NullLiteral(e) {
2515
+ return f.literal({ type: "NullLiteral", value: null, loc: this.source.spanFor(e.loc) });
2516
+ }
2517
+ };
2518
+ function ra(t5, e) {
2519
+ if (e === "") return { lines: t5.split(`
2520
+ `).length - 1, columns: 0 };
2521
+ let [r] = t5.split(e), n = r.split(/\n/u), s = n.length - 1;
2522
+ return { lines: s, columns: kt(n[s]).length };
2523
+ }
2524
+ function na(t5, e) {
2525
+ let r = e.loc.start.line, n = e.loc.start.column, s = ra(e.original, e.value);
2526
+ r = r + s.lines, s.lines ? n = s.columns : n = n + s.columns, t5.line = r, t5.column = n;
2527
+ }
2528
+ function Sr(t5, e) {
2529
+ let r;
2530
+ switch (e.path.type) {
2531
+ case "PathExpression":
2532
+ r = t5.PathExpression(e.path);
2533
+ break;
2534
+ case "SubExpression":
2535
+ r = t5.SubExpression(e.path);
2536
+ break;
2537
+ case "StringLiteral":
2538
+ case "UndefinedLiteral":
2539
+ case "NullLiteral":
2540
+ case "NumberLiteral":
2541
+ case "BooleanLiteral": {
2542
+ let a;
2543
+ throw e.path.type === "BooleanLiteral" ? a = e.path.original.toString() : e.path.type === "StringLiteral" ? a = `"${e.path.original}"` : e.path.type === "NullLiteral" ? a = "null" : e.path.type === "NumberLiteral" ? a = e.path.value.toString() : a = "undefined", S(`${e.path.type} "${e.path.type === "StringLiteral" ? e.path.original : a}" cannot be called as a sub-expression, replace (${a}) with ${a}`, t5.source.spanFor(e.path.loc));
2544
+ }
2545
+ }
2546
+ let n = e.params ? e.params.map((a) => t5.acceptNode(a)) : [], s = we(n) ? Nt(n).loc : r.loc, i = e.hash ? t5.Hash(e.hash) : f.hash({ pairs: [], loc: t5.source.spanFor(s).collapse("end") });
2547
+ return { path: r, params: n, hash: i };
2548
+ }
2549
+ function wr(t5, e) {
2550
+ let { path: r, params: n, hash: s, loc: i } = e;
2551
+ if (Mn(r)) {
2552
+ let o = `{{${Di(r)}}}`, c = `<${t5.name} ... ${o} ...`;
2553
+ throw S(`In ${c}, ${o} is not a valid modifier`, e.loc);
2554
+ }
2555
+ let a = f.elementModifier({ path: r, params: n, hash: s, loc: i });
2556
+ t5.modifiers.push(a);
2557
+ }
2558
+ function He(t5) {
2559
+ return /[\t\n\f ]/u.test(t5);
2560
+ }
2561
+ var _r = class extends Lr {
2562
+ tagOpenLine = 0;
2563
+ tagOpenColumn = 0;
2564
+ reset() {
2565
+ this.currentNode = null;
2566
+ }
2567
+ beginComment() {
2568
+ this.currentNode = { type: "CommentStatement", value: "", start: this.source.offsetFor(this.tagOpenLine, this.tagOpenColumn) };
2569
+ }
2570
+ appendToCommentData(e) {
2571
+ this.currentComment.value += e;
2572
+ }
2573
+ finishComment() {
2574
+ Ve(this.currentElement(), f.comment(this.finish(this.currentComment)));
2575
+ }
2576
+ beginData() {
2577
+ this.currentNode = { type: "TextNode", chars: "", start: this.offset() };
2578
+ }
2579
+ appendToData(e) {
2580
+ this.currentData.chars += e;
2581
+ }
2582
+ finishData() {
2583
+ Ve(this.currentElement(), f.text(this.finish(this.currentData)));
2584
+ }
2585
+ tagOpen() {
2586
+ this.tagOpenLine = this.tokenizer.line, this.tagOpenColumn = this.tokenizer.column;
2587
+ }
2588
+ beginStartTag() {
2589
+ this.currentNode = { type: "StartTag", name: "", nameStart: null, nameEnd: null, attributes: [], modifiers: [], comments: [], params: [], selfClosing: false, start: this.source.offsetFor(this.tagOpenLine, this.tagOpenColumn) };
2590
+ }
2591
+ beginEndTag() {
2592
+ this.currentNode = { type: "EndTag", name: "", start: this.source.offsetFor(this.tagOpenLine, this.tagOpenColumn) };
2593
+ }
2594
+ finishTag() {
2595
+ let e = this.finish(this.currentTag);
2596
+ if (e.type === "StartTag") {
2597
+ if (this.finishStartTag(), e.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() }));
2598
+ (kr.has(e.name) || e.selfClosing) && this.finishEndTag(true);
2599
+ } else e.type === "EndTag" && this.finishEndTag(false);
2600
+ }
2601
+ finishStartTag() {
2602
+ let { name: e, nameStart: r, nameEnd: n } = this.currentStartTag;
2603
+ w(e !== "", "tag name cannot be empty"), w(r !== null, "nameStart unexpectedly null"), w(n !== null, "nameEnd unexpectedly null");
2604
+ let s = r.until(n), [i, ...a] = qe(e.split(".")), o = f.path({ head: f.head({ original: i, loc: s.sliceStartChars({ chars: i.length }) }), tail: a, loc: s }), { attributes: c, modifiers: p, comments: h, params: d, selfClosing: N, loc: g } = this.finish(this.currentStartTag), T = f.element({ path: o, selfClosing: N, attributes: c, modifiers: p, comments: h, params: d, children: [], openTag: g, closeTag: N ? null : O.broken(), loc: g });
2605
+ this.elementStack.push(T);
2606
+ }
2607
+ finishEndTag(e) {
2608
+ let { start: r } = this.currentTag, n = this.finish(this.currentTag), s = this.elementStack.pop();
2609
+ this.validateEndTag(n, s, e);
2610
+ let i = this.currentElement();
2611
+ e ? s.closeTag = null : s.selfClosing ? w(s.closeTag === null, "element.closeTag unexpectedly present") : s.closeTag = r.until(this.offset()), s.loc = s.loc.withEnd(this.offset()), Ve(i, f.element(s));
2612
+ }
2613
+ markTagAsSelfClosing() {
2614
+ let e = this.currentTag;
2615
+ if (e.type === "StartTag") e.selfClosing = true;
2616
+ else throw S("Invalid end tag: closing tag must not be self-closing", this.source.spanFor({ start: e.start.toJSON(), end: this.offset().toJSON() }));
2617
+ }
2618
+ appendToTagName(e) {
2619
+ let r = this.currentTag;
2620
+ if (r.name += e, r.type === "StartTag") {
2621
+ let n = this.offset();
2622
+ r.nameStart === null && (w(r.nameEnd === null, "nameStart and nameEnd must both be null"), r.nameStart = n.move(-1)), r.nameEnd = n;
2623
+ }
2624
+ }
2625
+ beginAttribute() {
2626
+ let e = this.offset();
2627
+ this.currentAttribute = { name: "", parts: [], currentPart: null, isQuoted: false, isDynamic: false, start: e, valueSpan: e.collapsed() };
2628
+ }
2629
+ appendToAttributeName(e) {
2630
+ this.currentAttr.name += e, this.currentAttr.name === "as" && this.parsePossibleBlockParams();
2631
+ }
2632
+ beginAttributeValue(e) {
2633
+ this.currentAttr.isQuoted = e, this.startTextPart(), this.currentAttr.valueSpan = this.offset().collapsed();
2634
+ }
2635
+ appendToAttributeValue(e) {
2636
+ let r = this.currentAttr.parts, n = r[r.length - 1], s = this.currentAttr.currentPart;
2637
+ if (s) s.chars += e, s.loc = s.loc.withEnd(this.offset());
2638
+ else {
2639
+ let i = this.offset();
2640
+ e === `
2641
+ ` ? i = n ? n.loc.getEnd() : this.currentAttr.valueSpan.getStart() : i = i.move(-1), this.currentAttr.currentPart = f.text({ chars: e, loc: i.collapsed() });
2642
+ }
2643
+ }
2644
+ finishAttributeValue() {
2645
+ this.finalizeTextPart();
2646
+ let e = this.currentTag, r = this.offset();
2647
+ if (e.type === "EndTag") throw S("Invalid end tag: closing tag must not have attributes", this.source.spanFor({ start: e.start.toJSON(), end: r.toJSON() }));
2648
+ let { name: n, parts: s, start: i, isQuoted: a, isDynamic: o, valueSpan: c } = this.currentAttr;
2649
+ 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)));
2650
+ let p = this.assembleAttributeValue(s, a, o, i.until(r));
2651
+ p.loc = c.withEnd(r);
2652
+ let h = f.attr({ name: n, value: p, loc: i.until(r) });
2653
+ this.currentStartTag.attributes.push(h);
2654
+ }
2655
+ parsePossibleBlockParams() {
2656
+ let e = "beforeAttributeName", r = "attributeName", n = "afterAttributeName", s = /[!"#%&'()*+./;<=>@[\\\]^`{|}~]/u;
2657
+ w(this.tokenizer.state === r, "must be in TokenizerState.attributeName");
2658
+ let i = this.currentStartTag, a = this.currentAttr, o = { state: "PossibleAs" }, c = { PossibleAs: (h) => {
2659
+ if (w(o.state === "PossibleAs", "bug in block params parser"), He(h)) o = { state: "BeforeStartPipe" }, this.tokenizer.transitionTo(n), this.tokenizer.consume();
2660
+ else {
2661
+ if (h === "|") throw S('Invalid block parameters syntax: expecting at least one space character between "as" and "|"', a.start.until(this.offset().move(1)));
2662
+ o = { state: "Done" };
2663
+ }
2664
+ }, BeforeStartPipe: (h) => {
2665
+ w(o.state === "BeforeStartPipe", "bug in block params parser"), He(h) ? this.tokenizer.consume() : h === "|" ? (o = { state: "BeforeBlockParamName" }, this.tokenizer.transitionTo(e), this.tokenizer.consume()) : o = { state: "Done" };
2666
+ }, BeforeBlockParamName: (h) => {
2667
+ if (w(o.state === "BeforeBlockParamName", "bug in block params parser"), He(h)) this.tokenizer.consume();
2668
+ else if (h === "") o = { state: "Done" }, this.pendingError = { mustache(d) {
2669
+ throw S("Invalid block parameters syntax: mustaches cannot be used inside parameters list", d);
2670
+ }, eof(d) {
2671
+ throw S('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list', a.start.until(d));
2672
+ } };
2673
+ else if (h === "|") {
2674
+ if (i.params.length === 0) throw S("Invalid block parameters syntax: empty parameters list, expecting at least one identifier", a.start.until(this.offset().move(1)));
2675
+ o = { state: "AfterEndPipe" }, this.tokenizer.consume();
2676
+ } else {
2677
+ if (h === ">" || h === "/") throw S('Invalid block parameters syntax: incomplete parameters list, expecting "|" but the tag was closed prematurely', a.start.until(this.offset().move(1)));
2678
+ o = { state: "BlockParamName", name: h, start: this.offset() }, this.tokenizer.consume();
2679
+ }
2680
+ }, BlockParamName: (h) => {
2681
+ if (w(o.state === "BlockParamName", "bug in block params parser"), h === "") o = { state: "Done" }, this.pendingError = { mustache(d) {
2682
+ throw S("Invalid block parameters syntax: mustaches cannot be used inside parameters list", d);
2683
+ }, eof(d) {
2684
+ throw S('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list', a.start.until(d));
2685
+ } };
2686
+ else if (h === "|" || He(h)) {
2687
+ let d = o.start.until(this.offset());
2688
+ if (o.name === "this" || s.test(o.name)) throw S(`Invalid block parameters syntax: invalid identifier name \`${o.name}\``, d);
2689
+ i.params.push(f.var({ name: o.name, loc: d })), o = h === "|" ? { state: "AfterEndPipe" } : { state: "BeforeBlockParamName" }, this.tokenizer.consume();
2690
+ } else {
2691
+ if (h === ">" || h === "/") throw S('Invalid block parameters syntax: expecting "|" but the tag was closed prematurely', a.start.until(this.offset().move(1)));
2692
+ o.name += h, this.tokenizer.consume();
2693
+ }
2694
+ }, AfterEndPipe: (h) => {
2695
+ w(o.state === "AfterEndPipe", "bug in block params parser"), He(h) ? this.tokenizer.consume() : h === "" ? (o = { state: "Done" }, this.pendingError = { mustache(d) {
2696
+ throw S("Invalid block parameters syntax: modifiers cannot follow parameters list", d);
2697
+ }, eof(d) {
2698
+ throw S('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list', a.start.until(d));
2699
+ } }) : h === ">" || h === "/" ? o = { state: "Done" } : (o = { state: "Error", message: 'Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list', start: this.offset() }, this.tokenizer.consume());
2700
+ }, Error: (h) => {
2701
+ if (w(o.state === "Error", "bug in block params parser"), h === "" || h === "/" || h === ">" || He(h)) throw S(o.message, o.start.until(this.offset()));
2702
+ this.tokenizer.consume();
2703
+ }, Done: () => {
2704
+ w(false, "This should never be called");
2705
+ } }, p;
2706
+ do
2707
+ p = this.tokenizer.peek(), c[o.state](p);
2708
+ while (o.state !== "Done" && p !== "");
2709
+ w(o.state === "Done", "bug in block params parser");
2710
+ }
2711
+ reportSyntaxError(e) {
2712
+ throw S(e, this.offset().collapsed());
2713
+ }
2714
+ assembleConcatenatedValue(e) {
2715
+ for (let s of e) if (s.type !== "MustacheStatement" && s.type !== "TextNode") throw S(`Unsupported node in quoted attribute value: ${s.type}`, s.loc);
2716
+ Tt(e, "the concatenation parts of an element should not be empty");
2717
+ let r = Nn(e), n = Nt(e);
2718
+ return f.concat({ parts: e, loc: this.source.spanFor(r.loc).extend(this.source.spanFor(n.loc)) });
2719
+ }
2720
+ validateEndTag(e, r, n) {
2721
+ if (kr.has(e.name) && !n) throw S(`<${e.name}> elements do not need end tags. You should remove it`, e.loc);
2722
+ if (r.tag === void 0) throw S(`Closing tag </${e.name}> without an open tag`, e.loc);
2723
+ if (r.tag !== e.name) throw S(`Closing tag </${e.name}> did not match last open tag <${r.tag}> (on line ${r.loc.startPosition.line})`, e.loc);
2724
+ }
2725
+ assembleAttributeValue(e, r, n, s) {
2726
+ if (n) {
2727
+ if (r) return this.assembleConcatenatedValue(e);
2728
+ {
2729
+ Tt(e);
2730
+ let [i, a] = e;
2731
+ if (a === void 0 || a.type === "TextNode" && a.chars === "/") return i;
2732
+ 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);
2733
+ }
2734
+ } else return we(e) ? e[0] : f.text({ chars: "", loc: s });
2735
+ }
2736
+ };
2737
+ var sa = {};
2738
+ var Dr = class extends dr {
2739
+ constructor() {
2740
+ super({});
2741
+ }
2742
+ parse() {
2743
+ }
2744
+ };
2745
+ function Wn(t5, e = {}) {
2746
+ var c, p, h;
2747
+ let r = e.mode || "precompile", n, s;
2748
+ typeof t5 == "string" ? (n = new Te(t5, (c = e.meta) == null ? void 0 : c.moduleName), r === "codemod" ? s = Ct(t5, e.parseOptions) : s = fr(t5, e.parseOptions)) : t5 instanceof Te ? (n = t5, r === "codemod" ? s = Ct(t5.source, e.parseOptions) : s = fr(t5.source, e.parseOptions)) : (n = new Te("", (p = e.meta) == null ? void 0 : p.moduleName), s = t5);
2749
+ let i;
2750
+ r === "codemod" && (i = new Dr());
2751
+ let a = O.forCharPositions(n, 0, n.source.length);
2752
+ s.loc = { source: "(program)", start: a.startPosition, end: a.endPosition };
2753
+ let o = new _r(n, i, r).parse(s, e.locals ?? []);
2754
+ if ((h = e == null ? void 0 : e.plugins) != null && h.ast) for (let d of e.plugins.ast) {
2755
+ let N = ar({}, e, { syntax: sa }, { plugins: void 0 }), g = d(N);
2756
+ Li(o, g.visitor);
2757
+ }
2758
+ return o;
2759
+ }
2760
+ (function(t5) {
2761
+ return t5.Helper = "Helper", t5.Modifier = "Modifier", t5.Component = "Component", t5;
2762
+ })({});
2763
+ var Bt = `
2764
+ `;
2765
+ var $n = "\r";
2766
+ var jn = function() {
2767
+ function t5(e) {
2768
+ this.length = e.length;
2769
+ for (var r = [0], n = 0; n < e.length; ) switch (e[n]) {
2770
+ case Bt:
2771
+ n += Bt.length, r.push(n);
2772
+ break;
2773
+ case $n:
2774
+ n += $n.length, e[n] === Bt && (n += Bt.length), r.push(n);
2775
+ break;
2776
+ default:
2777
+ n++;
2778
+ break;
2779
+ }
2780
+ this.offsets = r;
2781
+ }
2782
+ return t5.prototype.locationForIndex = function(e) {
2783
+ if (e < 0 || e > this.length) return null;
2784
+ for (var r = 0, n = this.offsets; n[r + 1] <= e; ) r++;
2785
+ var s = e - n[r];
2786
+ return { line: r, column: s };
2787
+ }, t5.prototype.indexForLocation = function(e) {
2788
+ var r = e.line, n = e.column;
2789
+ return r < 0 || r >= this.offsets.length || n < 0 || n > this.lengthOfLine(r) ? null : this.offsets[r] + n;
2790
+ }, t5.prototype.lengthOfLine = function(e) {
2791
+ var r = this.offsets[e], n = e === this.offsets.length - 1 ? this.length : this.offsets[e + 1];
2792
+ return n - r;
2793
+ }, t5;
2794
+ }();
2795
+ function ia(t5, e) {
2796
+ let r = new SyntaxError(t5 + " (" + e.loc.start.line + ":" + e.loc.start.column + ")");
2797
+ return Object.assign(r, e);
2798
+ }
2799
+ var Qn = ia;
2800
+ function aa(t5) {
2801
+ let e = t5.children ?? t5.body;
2802
+ if (e) for (let r = 0; r < e.length - 1; r++) e[r].type === "TextNode" && e[r + 1].type === "MustacheStatement" && (e[r].chars = e[r].chars.replace(/\\$/u, "\\\\"));
2803
+ }
2804
+ function oa(t5) {
2805
+ let e = new jn(t5), r = ({ line: s, column: i }) => e.indexForLocation({ line: s - 1, column: i }), n = (s) => {
2806
+ let { start: i, end: a } = s.loc;
2807
+ i.offset = r(i), a.offset = r(a);
2808
+ };
2809
+ return () => ({ name: "prettierParsePlugin", visitor: { All(s) {
2810
+ n(s), aa(s);
2811
+ } } });
2812
+ }
2813
+ function la(t5) {
2814
+ let e;
2815
+ try {
2816
+ e = Wn(t5, { mode: "codemod", plugins: { ast: [oa(t5)] } });
2817
+ } catch (r) {
2818
+ let n = ua(r);
2819
+ if (n) {
2820
+ let s = ca(r);
2821
+ throw Qn(s, { loc: n, cause: r });
2822
+ }
2823
+ throw r;
2824
+ }
2825
+ return e;
2826
+ }
2827
+ function ca(t5) {
2828
+ let { message: e } = t5, r = e.split(`
2829
+ `);
2830
+ return r.length >= 4 && /^Parse error on line \d+:$/u.test(r[0]) && /^-*\^$/u.test(oe(false, r, -2)) ? oe(false, r, -1) : r.length >= 4 && /:\s?$/u.test(r[0]) && /^\(error occurred in '.*?' @ line \d+ : column \d+\)$/u.test(oe(false, r, -1)) && r[1] === "" && oe(false, r, -2) === "" && r.slice(2, -2).every((n) => n.startsWith("|")) ? r[0].trim().slice(0, -1) : e;
2831
+ }
2832
+ function ua(t5) {
2833
+ let { location: e, hash: r } = t5;
2834
+ if (e) {
2835
+ let { start: n, end: s } = e;
2836
+ return typeof s.line != "number" ? { start: n } : e;
2837
+ }
2838
+ if (r) {
2839
+ let { loc: { last_line: n, last_column: s } } = r;
2840
+ return { start: { line: n, column: s + 1 } };
2841
+ }
2842
+ }
2843
+ var ha = { parse: la, astFormat: "glimmer", locStart: Se, locEnd: tt };
2844
+ var pa = { glimmer: En };
2845
+ var bl = Rr;
2846
+
2847
+ exports.default = bl;
2848
+ exports.languages = Sn;
2849
+ exports.parsers = Ir;
2850
+ exports.printers = pa;
2851
+ //# sourceMappingURL=glimmer-SRXJA5DC.cjs.map
2852
+ //# sourceMappingURL=glimmer-SRXJA5DC.cjs.map