@rexeus/typeweaver 0.3.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-AYKTAXMI.js +14954 -0
- package/dist/chunk-K3NQKI34.js +1 -3
- package/dist/cli-Q5T6SL57.js +14951 -0
- package/dist/cli.cjs +1045 -102301
- package/dist/cli.js +1 -2
- package/dist/entry.js +3 -3
- package/dist/index.cjs +1 -116227
- package/dist/index.js +1 -2
- package/dist/metafile-cjs.json +1 -0
- package/dist/metafile-esm.json +1 -0
- package/dist/tsx-loader-3QUDYASH.js +1 -3
- package/package.json +18 -8
- package/dist/acorn-TNAGPKCR.js +0 -3130
- package/dist/acorn-ZFAHQIG7.js +0 -3131
- package/dist/angular-3KXBV3WD.js +0 -3030
- package/dist/angular-WMVKTHFF.js +0 -3031
- package/dist/babel-5QZSVJOE.js +0 -7297
- package/dist/babel-V7SGJWS6.js +0 -7296
- package/dist/chunk-4ST7XK4F.js +0 -34641
- package/dist/chunk-MLKGABMK.js +0 -9
- package/dist/cli-GOSMI5D3.js +0 -34642
- package/dist/estree-QSPT5I7I.js +0 -4612
- package/dist/estree-Y36AM62I.js +0 -4613
- package/dist/flow-7LH7X5GA.js +0 -27547
- package/dist/flow-WHVBWPDR.js +0 -27546
- package/dist/glimmer-BHRIPYOK.js +0 -2894
- package/dist/glimmer-CBYXJR5M.js +0 -2895
- package/dist/graphql-7EJJJFHU.js +0 -1266
- package/dist/graphql-KKVSZXX7.js +0 -1267
- package/dist/html-M3WOAMIJ.js +0 -2927
- package/dist/html-YM5TKPVB.js +0 -2926
- package/dist/markdown-FIK6SNTF.js +0 -3551
- package/dist/markdown-X6DQGEVV.js +0 -3552
- package/dist/meriyah-FBUICA5T.js +0 -2684
- package/dist/meriyah-GWPOVAHY.js +0 -2685
- package/dist/postcss-N2W7KQ6Q.js +0 -5081
- package/dist/postcss-ODV7XV5T.js +0 -5080
- package/dist/typescript-BG63TNYD.js +0 -13203
- package/dist/typescript-IYJMK2NE.js +0 -13204
- package/dist/yaml-5FEMTYXO.js +0 -4225
- package/dist/yaml-DV3ZI4ZT.js +0 -4224
|
@@ -1,3552 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import "./chunk-K3NQKI34.js";
|
|
3
|
-
|
|
4
|
-
// ../../node_modules/.pnpm/prettier@3.7.4/node_modules/prettier/plugins/markdown.mjs
|
|
5
|
-
var El = Object.create;
|
|
6
|
-
var Ft = Object.defineProperty;
|
|
7
|
-
var Cl = Object.getOwnPropertyDescriptor;
|
|
8
|
-
var vl = Object.getOwnPropertyNames;
|
|
9
|
-
var Al = Object.getPrototypeOf;
|
|
10
|
-
var bl = Object.prototype.hasOwnProperty;
|
|
11
|
-
var x = (e, r) => () => (r || e((r = { exports: {} }).exports, r), r.exports);
|
|
12
|
-
var Wn = (e, r) => {
|
|
13
|
-
for (var t in r) Ft(e, t, { get: r[t], enumerable: true });
|
|
14
|
-
};
|
|
15
|
-
var xl = (e, r, t, n) => {
|
|
16
|
-
if (r && typeof r == "object" || typeof r == "function") for (let u of vl(r)) !bl.call(e, u) && u !== t && Ft(e, u, { get: () => r[u], enumerable: !(n = Cl(r, u)) || n.enumerable });
|
|
17
|
-
return e;
|
|
18
|
-
};
|
|
19
|
-
var Re = (e, r, t) => (t = e != null ? El(Al(e)) : {}, xl(r || !e || !e.__esModule ? Ft(t, "default", { value: e, enumerable: true }) : t, e));
|
|
20
|
-
var Tr = x((gF, Vn) => {
|
|
21
|
-
"use strict";
|
|
22
|
-
Vn.exports = Bl;
|
|
23
|
-
function Bl(e) {
|
|
24
|
-
return String(e).replace(/\s+/g, " ");
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
var Qi = x((KC, Ji) => {
|
|
28
|
-
"use strict";
|
|
29
|
-
Ji.exports = Qf;
|
|
30
|
-
var pr = 9, Wr = 10, Ve = 32, Hf = 33, Kf = 58, je = 91, Xf = 92, It = 93, hr = 94, Vr = 96, jr = 4, Jf = 1024;
|
|
31
|
-
function Qf(e) {
|
|
32
|
-
var r = this.Parser, t = this.Compiler;
|
|
33
|
-
Zf(r) && rD(r, e), eD(t) && tD(t);
|
|
34
|
-
}
|
|
35
|
-
function Zf(e) {
|
|
36
|
-
return !!(e && e.prototype && e.prototype.blockTokenizers);
|
|
37
|
-
}
|
|
38
|
-
function eD(e) {
|
|
39
|
-
return !!(e && e.prototype && e.prototype.visitors);
|
|
40
|
-
}
|
|
41
|
-
function rD(e, r) {
|
|
42
|
-
for (var t = r || {}, n = e.prototype, u = n.blockTokenizers, i = n.inlineTokenizers, a = n.blockMethods, o = n.inlineMethods, s = u.definition, f = i.reference, c = [], l = -1, D = a.length, m; ++l < D; ) m = a[l], !(m === "newline" || m === "indentedCode" || m === "paragraph" || m === "footnoteDefinition") && c.push([m]);
|
|
43
|
-
c.push(["footnoteDefinition"]), t.inlineNotes && (St(o, "reference", "inlineNote"), i.inlineNote = F), St(a, "definition", "footnoteDefinition"), St(o, "reference", "footnoteCall"), u.definition = E, u.footnoteDefinition = p, i.footnoteCall = h, i.reference = g, n.interruptFootnoteDefinition = c, g.locator = f.locator, h.locator = v, F.locator = A;
|
|
44
|
-
function p(b, d, y) {
|
|
45
|
-
for (var w = this, C = w.interruptFootnoteDefinition, k = w.offset, T = d.length + 1, B = 0, _ = [], S, P, N, O, I, le, K, L, ie, Z, ve, Ae, G; B < T && (O = d.charCodeAt(B), !(O !== pr && O !== Ve)); ) B++;
|
|
46
|
-
if (d.charCodeAt(B++) === je && d.charCodeAt(B++) === hr) {
|
|
47
|
-
for (P = B; B < T; ) {
|
|
48
|
-
if (O = d.charCodeAt(B), O !== O || O === Wr || O === pr || O === Ve) return;
|
|
49
|
-
if (O === It) {
|
|
50
|
-
N = B, B++;
|
|
51
|
-
break;
|
|
52
|
-
}
|
|
53
|
-
B++;
|
|
54
|
-
}
|
|
55
|
-
if (!(N === void 0 || P === N || d.charCodeAt(B++) !== Kf)) {
|
|
56
|
-
if (y) return true;
|
|
57
|
-
for (S = d.slice(P, N), I = b.now(), ie = 0, Z = 0, ve = B, Ae = []; B < T; ) {
|
|
58
|
-
if (O = d.charCodeAt(B), O !== O || O === Wr) G = { start: ie, contentStart: ve || B, contentEnd: B, end: B }, Ae.push(G), O === Wr && (ie = B + 1, Z = 0, ve = void 0, G.end = ie);
|
|
59
|
-
else if (Z !== void 0) if (O === Ve || O === pr) Z += O === Ve ? 1 : jr - Z % jr, Z > jr && (Z = void 0, ve = B);
|
|
60
|
-
else {
|
|
61
|
-
if (Z < jr && G && (G.contentStart === G.contentEnd || nD(C, u, w, [b, d.slice(B, Jf), true]))) break;
|
|
62
|
-
Z = void 0, ve = B;
|
|
63
|
-
}
|
|
64
|
-
B++;
|
|
65
|
-
}
|
|
66
|
-
for (B = -1, T = Ae.length; T > 0 && (G = Ae[T - 1], G.contentStart === G.contentEnd); ) T--;
|
|
67
|
-
for (le = b(d.slice(0, G.contentEnd)); ++B < T; ) G = Ae[B], k[I.line + B] = (k[I.line + B] || 0) + (G.contentStart - G.start), _.push(d.slice(G.contentStart, G.end));
|
|
68
|
-
return K = w.enterBlock(), L = w.tokenizeBlock(_.join(""), I), K(), le({ type: "footnoteDefinition", identifier: S.toLowerCase(), label: S, children: L });
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
function h(b, d, y) {
|
|
73
|
-
var w = d.length + 1, C = 0, k, T, B, _;
|
|
74
|
-
if (d.charCodeAt(C++) === je && d.charCodeAt(C++) === hr) {
|
|
75
|
-
for (T = C; C < w; ) {
|
|
76
|
-
if (_ = d.charCodeAt(C), _ !== _ || _ === Wr || _ === pr || _ === Ve) return;
|
|
77
|
-
if (_ === It) {
|
|
78
|
-
B = C, C++;
|
|
79
|
-
break;
|
|
80
|
-
}
|
|
81
|
-
C++;
|
|
82
|
-
}
|
|
83
|
-
if (!(B === void 0 || T === B)) return y ? true : (k = d.slice(T, B), b(d.slice(0, C))({ type: "footnoteReference", identifier: k.toLowerCase(), label: k }));
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
function F(b, d, y) {
|
|
87
|
-
var w = this, C = d.length + 1, k = 0, T = 0, B, _, S, P, N, O, I;
|
|
88
|
-
if (d.charCodeAt(k++) === hr && d.charCodeAt(k++) === je) {
|
|
89
|
-
for (S = k; k < C; ) {
|
|
90
|
-
if (_ = d.charCodeAt(k), _ !== _) return;
|
|
91
|
-
if (O === void 0) if (_ === Xf) k += 2;
|
|
92
|
-
else if (_ === je) T++, k++;
|
|
93
|
-
else if (_ === It) if (T === 0) {
|
|
94
|
-
P = k, k++;
|
|
95
|
-
break;
|
|
96
|
-
} else T--, k++;
|
|
97
|
-
else if (_ === Vr) {
|
|
98
|
-
for (N = k, O = 1; d.charCodeAt(N + O) === Vr; ) O++;
|
|
99
|
-
k += O;
|
|
100
|
-
} else k++;
|
|
101
|
-
else if (_ === Vr) {
|
|
102
|
-
for (N = k, I = 1; d.charCodeAt(N + I) === Vr; ) I++;
|
|
103
|
-
k += I, O === I && (O = void 0), I = void 0;
|
|
104
|
-
} else k++;
|
|
105
|
-
}
|
|
106
|
-
if (P !== void 0) return y ? true : (B = b.now(), B.column += 2, B.offset += 2, b(d.slice(0, k))({ type: "footnote", children: w.tokenizeInline(d.slice(S, P), B) }));
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
function g(b, d, y) {
|
|
110
|
-
var w = 0;
|
|
111
|
-
if (d.charCodeAt(w) === Hf && w++, d.charCodeAt(w) === je && d.charCodeAt(w + 1) !== hr) return f.call(this, b, d, y);
|
|
112
|
-
}
|
|
113
|
-
function E(b, d, y) {
|
|
114
|
-
for (var w = 0, C = d.charCodeAt(w); C === Ve || C === pr; ) C = d.charCodeAt(++w);
|
|
115
|
-
if (C === je && d.charCodeAt(w + 1) !== hr) return s.call(this, b, d, y);
|
|
116
|
-
}
|
|
117
|
-
function v(b, d) {
|
|
118
|
-
return b.indexOf("[", d);
|
|
119
|
-
}
|
|
120
|
-
function A(b, d) {
|
|
121
|
-
return b.indexOf("^[", d);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
function tD(e) {
|
|
125
|
-
var r = e.prototype.visitors, t = " ";
|
|
126
|
-
r.footnote = n, r.footnoteReference = u, r.footnoteDefinition = i;
|
|
127
|
-
function n(a) {
|
|
128
|
-
return "^[" + this.all(a).join("") + "]";
|
|
129
|
-
}
|
|
130
|
-
function u(a) {
|
|
131
|
-
return "[^" + (a.label || a.identifier) + "]";
|
|
132
|
-
}
|
|
133
|
-
function i(a) {
|
|
134
|
-
for (var o = this.all(a).join(`
|
|
135
|
-
|
|
136
|
-
`).split(`
|
|
137
|
-
`), s = 0, f = o.length, c; ++s < f; ) c = o[s], c !== "" && (o[s] = t + c);
|
|
138
|
-
return "[^" + (a.label || a.identifier) + "]: " + o.join(`
|
|
139
|
-
`);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
function St(e, r, t) {
|
|
143
|
-
e.splice(e.indexOf(r), 0, t);
|
|
144
|
-
}
|
|
145
|
-
function nD(e, r, t, n) {
|
|
146
|
-
for (var u = e.length, i = -1; ++i < u; ) if (r[e[i][0]].apply(t, n)) return true;
|
|
147
|
-
return false;
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
var Rt = x((Lt) => {
|
|
151
|
-
Lt.isRemarkParser = iD;
|
|
152
|
-
Lt.isRemarkCompiler = uD;
|
|
153
|
-
function iD(e) {
|
|
154
|
-
return !!(e && e.prototype && e.prototype.blockTokenizers);
|
|
155
|
-
}
|
|
156
|
-
function uD(e) {
|
|
157
|
-
return !!(e && e.prototype && e.prototype.visitors);
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
|
-
var uu = x((JC, iu) => {
|
|
161
|
-
var Zi = Rt();
|
|
162
|
-
iu.exports = cD;
|
|
163
|
-
var eu = 9, ru = 32, $r = 36, aD = 48, oD = 57, tu = 92, sD = ["math", "math-inline"], nu = "math-display";
|
|
164
|
-
function cD(e) {
|
|
165
|
-
let r = this.Parser, t = this.Compiler;
|
|
166
|
-
Zi.isRemarkParser(r) && lD(r, e), Zi.isRemarkCompiler(t) && fD(t, e);
|
|
167
|
-
}
|
|
168
|
-
function lD(e, r) {
|
|
169
|
-
let t = e.prototype, n = t.inlineMethods;
|
|
170
|
-
i.locator = u, t.inlineTokenizers.math = i, n.splice(n.indexOf("text"), 0, "math");
|
|
171
|
-
function u(a, o) {
|
|
172
|
-
return a.indexOf("$", o);
|
|
173
|
-
}
|
|
174
|
-
function i(a, o, s) {
|
|
175
|
-
let f = o.length, c = false, l = false, D = 0, m, p, h, F, g, E, v;
|
|
176
|
-
if (o.charCodeAt(D) === tu && (l = true, D++), o.charCodeAt(D) === $r) {
|
|
177
|
-
if (D++, l) return s ? true : a(o.slice(0, D))({ type: "text", value: "$" });
|
|
178
|
-
if (o.charCodeAt(D) === $r && (c = true, D++), h = o.charCodeAt(D), !(h === ru || h === eu)) {
|
|
179
|
-
for (F = D; D < f; ) {
|
|
180
|
-
if (p = h, h = o.charCodeAt(D + 1), p === $r) {
|
|
181
|
-
if (m = o.charCodeAt(D - 1), m !== ru && m !== eu && (h !== h || h < aD || h > oD) && (!c || h === $r)) {
|
|
182
|
-
g = D - 1, D++, c && D++, E = D;
|
|
183
|
-
break;
|
|
184
|
-
}
|
|
185
|
-
} else p === tu && (D++, h = o.charCodeAt(D + 1));
|
|
186
|
-
D++;
|
|
187
|
-
}
|
|
188
|
-
if (E !== void 0) return s ? true : (v = o.slice(F, g + 1), a(o.slice(0, E))({ type: "inlineMath", value: v, data: { hName: "span", hProperties: { className: sD.concat(c && r.inlineMathDouble ? [nu] : []) }, hChildren: [{ type: "text", value: v }] } }));
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
function fD(e) {
|
|
194
|
-
let r = e.prototype;
|
|
195
|
-
r.visitors.inlineMath = t;
|
|
196
|
-
function t(n) {
|
|
197
|
-
let u = "$";
|
|
198
|
-
return (n.data && n.data.hProperties && n.data.hProperties.className || []).includes(nu) && (u = "$$"), u + n.value + u;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
var lu = x((QC, cu) => {
|
|
203
|
-
var au = Rt();
|
|
204
|
-
cu.exports = dD;
|
|
205
|
-
var ou = 10, dr = 32, Mt = 36, su = `
|
|
206
|
-
`, DD = "$", pD = 2, hD = ["math", "math-display"];
|
|
207
|
-
function dD() {
|
|
208
|
-
let e = this.Parser, r = this.Compiler;
|
|
209
|
-
au.isRemarkParser(e) && mD(e), au.isRemarkCompiler(r) && FD(r);
|
|
210
|
-
}
|
|
211
|
-
function mD(e) {
|
|
212
|
-
let r = e.prototype, t = r.blockMethods, n = r.interruptParagraph, u = r.interruptList, i = r.interruptBlockquote;
|
|
213
|
-
r.blockTokenizers.math = a, t.splice(t.indexOf("fencedCode") + 1, 0, "math"), n.splice(n.indexOf("fencedCode") + 1, 0, ["math"]), u.splice(u.indexOf("fencedCode") + 1, 0, ["math"]), i.splice(i.indexOf("fencedCode") + 1, 0, ["math"]);
|
|
214
|
-
function a(o, s, f) {
|
|
215
|
-
var c = s.length, l = 0;
|
|
216
|
-
let D, m, p, h, F, g, E, v, A, b, d;
|
|
217
|
-
for (; l < c && s.charCodeAt(l) === dr; ) l++;
|
|
218
|
-
for (F = l; l < c && s.charCodeAt(l) === Mt; ) l++;
|
|
219
|
-
if (g = l - F, !(g < pD)) {
|
|
220
|
-
for (; l < c && s.charCodeAt(l) === dr; ) l++;
|
|
221
|
-
for (E = l; l < c; ) {
|
|
222
|
-
if (D = s.charCodeAt(l), D === Mt) return;
|
|
223
|
-
if (D === ou) break;
|
|
224
|
-
l++;
|
|
225
|
-
}
|
|
226
|
-
if (s.charCodeAt(l) === ou) {
|
|
227
|
-
if (f) return true;
|
|
228
|
-
for (m = [], E !== l && m.push(s.slice(E, l)), l++, p = s.indexOf(su, l + 1), p = p === -1 ? c : p; l < c; ) {
|
|
229
|
-
for (v = false, b = l, d = p, h = p, A = 0; h > b && s.charCodeAt(h - 1) === dr; ) h--;
|
|
230
|
-
for (; h > b && s.charCodeAt(h - 1) === Mt; ) A++, h--;
|
|
231
|
-
for (g <= A && s.indexOf(DD, b) === h && (v = true, d = h); b <= d && b - l < F && s.charCodeAt(b) === dr; ) b++;
|
|
232
|
-
if (v) for (; d > b && s.charCodeAt(d - 1) === dr; ) d--;
|
|
233
|
-
if ((!v || b !== d) && m.push(s.slice(b, d)), v) break;
|
|
234
|
-
l = p + 1, p = s.indexOf(su, l + 1), p = p === -1 ? c : p;
|
|
235
|
-
}
|
|
236
|
-
return m = m.join(`
|
|
237
|
-
`), o(s.slice(0, p))({ type: "math", value: m, data: { hName: "div", hProperties: { className: hD.concat() }, hChildren: [{ type: "text", value: m }] } });
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
function FD(e) {
|
|
243
|
-
let r = e.prototype;
|
|
244
|
-
r.visitors.math = t;
|
|
245
|
-
function t(n) {
|
|
246
|
-
return `$$
|
|
247
|
-
` + n.value + `
|
|
248
|
-
$$`;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
});
|
|
252
|
-
var Du = x((ZC, fu) => {
|
|
253
|
-
var gD = uu(), ED = lu();
|
|
254
|
-
fu.exports = CD;
|
|
255
|
-
function CD(e) {
|
|
256
|
-
var r = e || {};
|
|
257
|
-
ED.call(this, r), gD.call(this, r);
|
|
258
|
-
}
|
|
259
|
-
});
|
|
260
|
-
var Ie = x((ev, pu) => {
|
|
261
|
-
pu.exports = AD;
|
|
262
|
-
var vD = Object.prototype.hasOwnProperty;
|
|
263
|
-
function AD() {
|
|
264
|
-
for (var e = {}, r = 0; r < arguments.length; r++) {
|
|
265
|
-
var t = arguments[r];
|
|
266
|
-
for (var n in t) vD.call(t, n) && (e[n] = t[n]);
|
|
267
|
-
}
|
|
268
|
-
return e;
|
|
269
|
-
}
|
|
270
|
-
});
|
|
271
|
-
var hu = x((rv, Ut) => {
|
|
272
|
-
typeof Object.create == "function" ? Ut.exports = function(r, t) {
|
|
273
|
-
t && (r.super_ = t, r.prototype = Object.create(t.prototype, { constructor: { value: r, enumerable: false, writable: true, configurable: true } }));
|
|
274
|
-
} : Ut.exports = function(r, t) {
|
|
275
|
-
if (t) {
|
|
276
|
-
r.super_ = t;
|
|
277
|
-
var n = function() {
|
|
278
|
-
};
|
|
279
|
-
n.prototype = t.prototype, r.prototype = new n(), r.prototype.constructor = r;
|
|
280
|
-
}
|
|
281
|
-
};
|
|
282
|
-
});
|
|
283
|
-
var Fu = x((tv, mu) => {
|
|
284
|
-
"use strict";
|
|
285
|
-
var bD = Ie(), du = hu();
|
|
286
|
-
mu.exports = xD;
|
|
287
|
-
function xD(e) {
|
|
288
|
-
var r, t, n;
|
|
289
|
-
du(i, e), du(u, i), r = i.prototype;
|
|
290
|
-
for (t in r) n = r[t], n && typeof n == "object" && (r[t] = "concat" in n ? n.concat() : bD(n));
|
|
291
|
-
return i;
|
|
292
|
-
function u(a) {
|
|
293
|
-
return e.apply(this, a);
|
|
294
|
-
}
|
|
295
|
-
function i() {
|
|
296
|
-
return this instanceof i ? e.apply(this, arguments) : new u(arguments);
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
});
|
|
300
|
-
var Eu = x((nv, gu) => {
|
|
301
|
-
"use strict";
|
|
302
|
-
gu.exports = yD;
|
|
303
|
-
function yD(e, r, t) {
|
|
304
|
-
return n;
|
|
305
|
-
function n() {
|
|
306
|
-
var u = t || this, i = u[e];
|
|
307
|
-
return u[e] = !r, a;
|
|
308
|
-
function a() {
|
|
309
|
-
u[e] = i;
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
});
|
|
314
|
-
var vu = x((iv, Cu) => {
|
|
315
|
-
"use strict";
|
|
316
|
-
Cu.exports = wD;
|
|
317
|
-
function wD(e) {
|
|
318
|
-
for (var r = String(e), t = [], n = /\r?\n|\r/g; n.exec(r); ) t.push(n.lastIndex);
|
|
319
|
-
return t.push(r.length + 1), { toPoint: u, toPosition: u, toOffset: i };
|
|
320
|
-
function u(a) {
|
|
321
|
-
var o = -1;
|
|
322
|
-
if (a > -1 && a < t[t.length - 1]) {
|
|
323
|
-
for (; ++o < t.length; ) if (t[o] > a) return { line: o + 1, column: a - (t[o - 1] || 0) + 1, offset: a };
|
|
324
|
-
}
|
|
325
|
-
return {};
|
|
326
|
-
}
|
|
327
|
-
function i(a) {
|
|
328
|
-
var o = a && a.line, s = a && a.column, f;
|
|
329
|
-
return !isNaN(o) && !isNaN(s) && o - 1 in t && (f = (t[o - 2] || 0) + s - 1 || 0), f > -1 && f < t[t.length - 1] ? f : -1;
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
});
|
|
333
|
-
var bu = x((uv, Au) => {
|
|
334
|
-
"use strict";
|
|
335
|
-
Au.exports = kD;
|
|
336
|
-
var Yt = "\\";
|
|
337
|
-
function kD(e, r) {
|
|
338
|
-
return t;
|
|
339
|
-
function t(n) {
|
|
340
|
-
for (var u = 0, i = n.indexOf(Yt), a = e[r], o = [], s; i !== -1; ) o.push(n.slice(u, i)), u = i + 1, s = n.charAt(u), (!s || a.indexOf(s) === -1) && o.push(Yt), i = n.indexOf(Yt, u + 1);
|
|
341
|
-
return o.push(n.slice(u)), o.join("");
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
});
|
|
345
|
-
var xu = x((av, TD) => {
|
|
346
|
-
TD.exports = { AElig: "\xC6", AMP: "&", Aacute: "\xC1", Acirc: "\xC2", Agrave: "\xC0", Aring: "\xC5", Atilde: "\xC3", Auml: "\xC4", COPY: "\xA9", Ccedil: "\xC7", ETH: "\xD0", Eacute: "\xC9", Ecirc: "\xCA", Egrave: "\xC8", Euml: "\xCB", GT: ">", Iacute: "\xCD", Icirc: "\xCE", Igrave: "\xCC", Iuml: "\xCF", LT: "<", Ntilde: "\xD1", Oacute: "\xD3", Ocirc: "\xD4", Ograve: "\xD2", Oslash: "\xD8", Otilde: "\xD5", Ouml: "\xD6", QUOT: '"', REG: "\xAE", THORN: "\xDE", Uacute: "\xDA", Ucirc: "\xDB", Ugrave: "\xD9", Uuml: "\xDC", Yacute: "\xDD", aacute: "\xE1", acirc: "\xE2", acute: "\xB4", aelig: "\xE6", agrave: "\xE0", amp: "&", aring: "\xE5", atilde: "\xE3", auml: "\xE4", brvbar: "\xA6", ccedil: "\xE7", cedil: "\xB8", cent: "\xA2", copy: "\xA9", curren: "\xA4", deg: "\xB0", divide: "\xF7", eacute: "\xE9", ecirc: "\xEA", egrave: "\xE8", eth: "\xF0", euml: "\xEB", frac12: "\xBD", frac14: "\xBC", frac34: "\xBE", gt: ">", iacute: "\xED", icirc: "\xEE", iexcl: "\xA1", igrave: "\xEC", iquest: "\xBF", iuml: "\xEF", laquo: "\xAB", lt: "<", macr: "\xAF", micro: "\xB5", middot: "\xB7", nbsp: "\xA0", not: "\xAC", ntilde: "\xF1", oacute: "\xF3", ocirc: "\xF4", ograve: "\xF2", ordf: "\xAA", ordm: "\xBA", oslash: "\xF8", otilde: "\xF5", ouml: "\xF6", para: "\xB6", plusmn: "\xB1", pound: "\xA3", quot: '"', raquo: "\xBB", reg: "\xAE", sect: "\xA7", shy: "\xAD", sup1: "\xB9", sup2: "\xB2", sup3: "\xB3", szlig: "\xDF", thorn: "\xFE", times: "\xD7", uacute: "\xFA", ucirc: "\xFB", ugrave: "\xF9", uml: "\xA8", uuml: "\xFC", yacute: "\xFD", yen: "\xA5", yuml: "\xFF" };
|
|
347
|
-
});
|
|
348
|
-
var yu = x((ov, BD) => {
|
|
349
|
-
BD.exports = { "0": "\uFFFD", "128": "\u20AC", "130": "\u201A", "131": "\u0192", "132": "\u201E", "133": "\u2026", "134": "\u2020", "135": "\u2021", "136": "\u02C6", "137": "\u2030", "138": "\u0160", "139": "\u2039", "140": "\u0152", "142": "\u017D", "145": "\u2018", "146": "\u2019", "147": "\u201C", "148": "\u201D", "149": "\u2022", "150": "\u2013", "151": "\u2014", "152": "\u02DC", "153": "\u2122", "154": "\u0161", "155": "\u203A", "156": "\u0153", "158": "\u017E", "159": "\u0178" };
|
|
350
|
-
});
|
|
351
|
-
var Se = x((sv, wu) => {
|
|
352
|
-
"use strict";
|
|
353
|
-
wu.exports = _D;
|
|
354
|
-
function _D(e) {
|
|
355
|
-
var r = typeof e == "string" ? e.charCodeAt(0) : e;
|
|
356
|
-
return r >= 48 && r <= 57;
|
|
357
|
-
}
|
|
358
|
-
});
|
|
359
|
-
var Tu = x((cv, ku) => {
|
|
360
|
-
"use strict";
|
|
361
|
-
ku.exports = OD;
|
|
362
|
-
function OD(e) {
|
|
363
|
-
var r = typeof e == "string" ? e.charCodeAt(0) : e;
|
|
364
|
-
return r >= 97 && r <= 102 || r >= 65 && r <= 70 || r >= 48 && r <= 57;
|
|
365
|
-
}
|
|
366
|
-
});
|
|
367
|
-
var $e = x((lv, Bu) => {
|
|
368
|
-
"use strict";
|
|
369
|
-
Bu.exports = qD;
|
|
370
|
-
function qD(e) {
|
|
371
|
-
var r = typeof e == "string" ? e.charCodeAt(0) : e;
|
|
372
|
-
return r >= 97 && r <= 122 || r >= 65 && r <= 90;
|
|
373
|
-
}
|
|
374
|
-
});
|
|
375
|
-
var Ou = x((fv, _u) => {
|
|
376
|
-
"use strict";
|
|
377
|
-
var ND = $e(), PD = Se();
|
|
378
|
-
_u.exports = ID;
|
|
379
|
-
function ID(e) {
|
|
380
|
-
return ND(e) || PD(e);
|
|
381
|
-
}
|
|
382
|
-
});
|
|
383
|
-
var qu = x((Dv, SD) => {
|
|
384
|
-
SD.exports = { AEli: "\xC6", AElig: "\xC6", AM: "&", AMP: "&", Aacut: "\xC1", Aacute: "\xC1", Abreve: "\u0102", Acir: "\xC2", Acirc: "\xC2", Acy: "\u0410", Afr: "\u{1D504}", Agrav: "\xC0", Agrave: "\xC0", Alpha: "\u0391", Amacr: "\u0100", And: "\u2A53", Aogon: "\u0104", Aopf: "\u{1D538}", ApplyFunction: "\u2061", Arin: "\xC5", Aring: "\xC5", Ascr: "\u{1D49C}", Assign: "\u2254", Atild: "\xC3", Atilde: "\xC3", Aum: "\xC4", Auml: "\xC4", Backslash: "\u2216", Barv: "\u2AE7", Barwed: "\u2306", Bcy: "\u0411", Because: "\u2235", Bernoullis: "\u212C", Beta: "\u0392", Bfr: "\u{1D505}", Bopf: "\u{1D539}", Breve: "\u02D8", Bscr: "\u212C", Bumpeq: "\u224E", CHcy: "\u0427", COP: "\xA9", COPY: "\xA9", Cacute: "\u0106", Cap: "\u22D2", CapitalDifferentialD: "\u2145", Cayleys: "\u212D", Ccaron: "\u010C", Ccedi: "\xC7", Ccedil: "\xC7", Ccirc: "\u0108", Cconint: "\u2230", Cdot: "\u010A", Cedilla: "\xB8", CenterDot: "\xB7", Cfr: "\u212D", Chi: "\u03A7", CircleDot: "\u2299", CircleMinus: "\u2296", CirclePlus: "\u2295", CircleTimes: "\u2297", ClockwiseContourIntegral: "\u2232", CloseCurlyDoubleQuote: "\u201D", CloseCurlyQuote: "\u2019", Colon: "\u2237", Colone: "\u2A74", Congruent: "\u2261", Conint: "\u222F", ContourIntegral: "\u222E", Copf: "\u2102", Coproduct: "\u2210", CounterClockwiseContourIntegral: "\u2233", Cross: "\u2A2F", Cscr: "\u{1D49E}", Cup: "\u22D3", CupCap: "\u224D", DD: "\u2145", DDotrahd: "\u2911", DJcy: "\u0402", DScy: "\u0405", DZcy: "\u040F", Dagger: "\u2021", Darr: "\u21A1", Dashv: "\u2AE4", Dcaron: "\u010E", Dcy: "\u0414", Del: "\u2207", Delta: "\u0394", Dfr: "\u{1D507}", DiacriticalAcute: "\xB4", DiacriticalDot: "\u02D9", DiacriticalDoubleAcute: "\u02DD", DiacriticalGrave: "`", DiacriticalTilde: "\u02DC", Diamond: "\u22C4", DifferentialD: "\u2146", Dopf: "\u{1D53B}", Dot: "\xA8", DotDot: "\u20DC", DotEqual: "\u2250", 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", DownArrow: "\u2193", DownArrowBar: "\u2913", DownArrowUpArrow: "\u21F5", DownBreve: "\u0311", DownLeftRightVector: "\u2950", DownLeftTeeVector: "\u295E", DownLeftVector: "\u21BD", DownLeftVectorBar: "\u2956", DownRightTeeVector: "\u295F", DownRightVector: "\u21C1", DownRightVectorBar: "\u2957", DownTee: "\u22A4", DownTeeArrow: "\u21A7", Downarrow: "\u21D3", Dscr: "\u{1D49F}", Dstrok: "\u0110", ENG: "\u014A", ET: "\xD0", ETH: "\xD0", Eacut: "\xC9", Eacute: "\xC9", Ecaron: "\u011A", Ecir: "\xCA", Ecirc: "\xCA", Ecy: "\u042D", Edot: "\u0116", Efr: "\u{1D508}", Egrav: "\xC8", Egrave: "\xC8", Element: "\u2208", Emacr: "\u0112", EmptySmallSquare: "\u25FB", EmptyVerySmallSquare: "\u25AB", Eogon: "\u0118", Eopf: "\u{1D53C}", Epsilon: "\u0395", Equal: "\u2A75", EqualTilde: "\u2242", Equilibrium: "\u21CC", Escr: "\u2130", Esim: "\u2A73", Eta: "\u0397", Eum: "\xCB", Euml: "\xCB", Exists: "\u2203", ExponentialE: "\u2147", Fcy: "\u0424", Ffr: "\u{1D509}", FilledSmallSquare: "\u25FC", FilledVerySmallSquare: "\u25AA", Fopf: "\u{1D53D}", ForAll: "\u2200", Fouriertrf: "\u2131", Fscr: "\u2131", GJcy: "\u0403", G: ">", GT: ">", Gamma: "\u0393", Gammad: "\u03DC", Gbreve: "\u011E", Gcedil: "\u0122", Gcirc: "\u011C", Gcy: "\u0413", Gdot: "\u0120", Gfr: "\u{1D50A}", Gg: "\u22D9", Gopf: "\u{1D53E}", GreaterEqual: "\u2265", GreaterEqualLess: "\u22DB", GreaterFullEqual: "\u2267", GreaterGreater: "\u2AA2", GreaterLess: "\u2277", GreaterSlantEqual: "\u2A7E", GreaterTilde: "\u2273", Gscr: "\u{1D4A2}", Gt: "\u226B", HARDcy: "\u042A", Hacek: "\u02C7", Hat: "^", Hcirc: "\u0124", Hfr: "\u210C", HilbertSpace: "\u210B", Hopf: "\u210D", HorizontalLine: "\u2500", Hscr: "\u210B", Hstrok: "\u0126", HumpDownHump: "\u224E", HumpEqual: "\u224F", IEcy: "\u0415", IJlig: "\u0132", IOcy: "\u0401", Iacut: "\xCD", Iacute: "\xCD", Icir: "\xCE", Icirc: "\xCE", Icy: "\u0418", Idot: "\u0130", Ifr: "\u2111", Igrav: "\xCC", Igrave: "\xCC", Im: "\u2111", Imacr: "\u012A", ImaginaryI: "\u2148", Implies: "\u21D2", Int: "\u222C", Integral: "\u222B", Intersection: "\u22C2", InvisibleComma: "\u2063", InvisibleTimes: "\u2062", Iogon: "\u012E", Iopf: "\u{1D540}", Iota: "\u0399", Iscr: "\u2110", Itilde: "\u0128", Iukcy: "\u0406", Ium: "\xCF", Iuml: "\xCF", Jcirc: "\u0134", Jcy: "\u0419", Jfr: "\u{1D50D}", Jopf: "\u{1D541}", Jscr: "\u{1D4A5}", Jsercy: "\u0408", Jukcy: "\u0404", KHcy: "\u0425", KJcy: "\u040C", Kappa: "\u039A", Kcedil: "\u0136", Kcy: "\u041A", Kfr: "\u{1D50E}", Kopf: "\u{1D542}", Kscr: "\u{1D4A6}", LJcy: "\u0409", L: "<", LT: "<", Lacute: "\u0139", Lambda: "\u039B", Lang: "\u27EA", Laplacetrf: "\u2112", Larr: "\u219E", Lcaron: "\u013D", Lcedil: "\u013B", Lcy: "\u041B", LeftAngleBracket: "\u27E8", LeftArrow: "\u2190", LeftArrowBar: "\u21E4", LeftArrowRightArrow: "\u21C6", LeftCeiling: "\u2308", LeftDoubleBracket: "\u27E6", LeftDownTeeVector: "\u2961", LeftDownVector: "\u21C3", LeftDownVectorBar: "\u2959", LeftFloor: "\u230A", LeftRightArrow: "\u2194", LeftRightVector: "\u294E", LeftTee: "\u22A3", LeftTeeArrow: "\u21A4", LeftTeeVector: "\u295A", LeftTriangle: "\u22B2", LeftTriangleBar: "\u29CF", LeftTriangleEqual: "\u22B4", LeftUpDownVector: "\u2951", LeftUpTeeVector: "\u2960", LeftUpVector: "\u21BF", LeftUpVectorBar: "\u2958", LeftVector: "\u21BC", LeftVectorBar: "\u2952", Leftarrow: "\u21D0", Leftrightarrow: "\u21D4", LessEqualGreater: "\u22DA", LessFullEqual: "\u2266", LessGreater: "\u2276", LessLess: "\u2AA1", LessSlantEqual: "\u2A7D", LessTilde: "\u2272", Lfr: "\u{1D50F}", Ll: "\u22D8", Lleftarrow: "\u21DA", Lmidot: "\u013F", LongLeftArrow: "\u27F5", LongLeftRightArrow: "\u27F7", LongRightArrow: "\u27F6", Longleftarrow: "\u27F8", Longleftrightarrow: "\u27FA", Longrightarrow: "\u27F9", Lopf: "\u{1D543}", LowerLeftArrow: "\u2199", LowerRightArrow: "\u2198", Lscr: "\u2112", Lsh: "\u21B0", Lstrok: "\u0141", Lt: "\u226A", Map: "\u2905", Mcy: "\u041C", MediumSpace: "\u205F", Mellintrf: "\u2133", Mfr: "\u{1D510}", MinusPlus: "\u2213", Mopf: "\u{1D544}", Mscr: "\u2133", Mu: "\u039C", NJcy: "\u040A", Nacute: "\u0143", Ncaron: "\u0147", Ncedil: "\u0145", Ncy: "\u041D", NegativeMediumSpace: "\u200B", NegativeThickSpace: "\u200B", NegativeThinSpace: "\u200B", NegativeVeryThinSpace: "\u200B", NestedGreaterGreater: "\u226B", NestedLessLess: "\u226A", NewLine: `
|
|
385
|
-
`, Nfr: "\u{1D511}", NoBreak: "\u2060", NonBreakingSpace: "\xA0", Nopf: "\u2115", Not: "\u2AEC", 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", NotLeftTriangle: "\u22EA", NotLeftTriangleBar: "\u29CF\u0338", NotLeftTriangleEqual: "\u22EC", NotLess: "\u226E", NotLessEqual: "\u2270", NotLessGreater: "\u2278", NotLessLess: "\u226A\u0338", NotLessSlantEqual: "\u2A7D\u0338", NotLessTilde: "\u2274", NotNestedGreaterGreater: "\u2AA2\u0338", NotNestedLessLess: "\u2AA1\u0338", NotPrecedes: "\u2280", NotPrecedesEqual: "\u2AAF\u0338", NotPrecedesSlantEqual: "\u22E0", NotReverseElement: "\u220C", NotRightTriangle: "\u22EB", NotRightTriangleBar: "\u29D0\u0338", 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", Nscr: "\u{1D4A9}", Ntild: "\xD1", Ntilde: "\xD1", Nu: "\u039D", OElig: "\u0152", Oacut: "\xD3", Oacute: "\xD3", Ocir: "\xD4", Ocirc: "\xD4", Ocy: "\u041E", Odblac: "\u0150", Ofr: "\u{1D512}", Ograv: "\xD2", Ograve: "\xD2", Omacr: "\u014C", Omega: "\u03A9", Omicron: "\u039F", Oopf: "\u{1D546}", OpenCurlyDoubleQuote: "\u201C", OpenCurlyQuote: "\u2018", Or: "\u2A54", Oscr: "\u{1D4AA}", Oslas: "\xD8", Oslash: "\xD8", Otild: "\xD5", Otilde: "\xD5", Otimes: "\u2A37", Oum: "\xD6", Ouml: "\xD6", OverBar: "\u203E", OverBrace: "\u23DE", OverBracket: "\u23B4", OverParenthesis: "\u23DC", PartialD: "\u2202", Pcy: "\u041F", Pfr: "\u{1D513}", Phi: "\u03A6", Pi: "\u03A0", PlusMinus: "\xB1", Poincareplane: "\u210C", Popf: "\u2119", Pr: "\u2ABB", Precedes: "\u227A", PrecedesEqual: "\u2AAF", PrecedesSlantEqual: "\u227C", PrecedesTilde: "\u227E", Prime: "\u2033", Product: "\u220F", Proportion: "\u2237", Proportional: "\u221D", Pscr: "\u{1D4AB}", Psi: "\u03A8", QUO: '"', QUOT: '"', Qfr: "\u{1D514}", Qopf: "\u211A", Qscr: "\u{1D4AC}", RBarr: "\u2910", RE: "\xAE", REG: "\xAE", Racute: "\u0154", Rang: "\u27EB", Rarr: "\u21A0", Rarrtl: "\u2916", Rcaron: "\u0158", Rcedil: "\u0156", Rcy: "\u0420", Re: "\u211C", ReverseElement: "\u220B", ReverseEquilibrium: "\u21CB", ReverseUpEquilibrium: "\u296F", Rfr: "\u211C", Rho: "\u03A1", RightAngleBracket: "\u27E9", RightArrow: "\u2192", RightArrowBar: "\u21E5", RightArrowLeftArrow: "\u21C4", RightCeiling: "\u2309", RightDoubleBracket: "\u27E7", RightDownTeeVector: "\u295D", RightDownVector: "\u21C2", RightDownVectorBar: "\u2955", RightFloor: "\u230B", RightTee: "\u22A2", RightTeeArrow: "\u21A6", RightTeeVector: "\u295B", RightTriangle: "\u22B3", RightTriangleBar: "\u29D0", RightTriangleEqual: "\u22B5", RightUpDownVector: "\u294F", RightUpTeeVector: "\u295C", RightUpVector: "\u21BE", RightUpVectorBar: "\u2954", RightVector: "\u21C0", RightVectorBar: "\u2953", Rightarrow: "\u21D2", Ropf: "\u211D", RoundImplies: "\u2970", Rrightarrow: "\u21DB", Rscr: "\u211B", Rsh: "\u21B1", RuleDelayed: "\u29F4", SHCHcy: "\u0429", SHcy: "\u0428", SOFTcy: "\u042C", Sacute: "\u015A", Sc: "\u2ABC", Scaron: "\u0160", Scedil: "\u015E", Scirc: "\u015C", Scy: "\u0421", Sfr: "\u{1D516}", ShortDownArrow: "\u2193", ShortLeftArrow: "\u2190", ShortRightArrow: "\u2192", ShortUpArrow: "\u2191", Sigma: "\u03A3", SmallCircle: "\u2218", Sopf: "\u{1D54A}", Sqrt: "\u221A", Square: "\u25A1", SquareIntersection: "\u2293", SquareSubset: "\u228F", SquareSubsetEqual: "\u2291", SquareSuperset: "\u2290", SquareSupersetEqual: "\u2292", SquareUnion: "\u2294", Sscr: "\u{1D4AE}", Star: "\u22C6", Sub: "\u22D0", Subset: "\u22D0", SubsetEqual: "\u2286", Succeeds: "\u227B", SucceedsEqual: "\u2AB0", SucceedsSlantEqual: "\u227D", SucceedsTilde: "\u227F", SuchThat: "\u220B", Sum: "\u2211", Sup: "\u22D1", Superset: "\u2283", SupersetEqual: "\u2287", Supset: "\u22D1", THOR: "\xDE", THORN: "\xDE", TRADE: "\u2122", TSHcy: "\u040B", TScy: "\u0426", Tab: " ", Tau: "\u03A4", Tcaron: "\u0164", Tcedil: "\u0162", Tcy: "\u0422", Tfr: "\u{1D517}", Therefore: "\u2234", Theta: "\u0398", ThickSpace: "\u205F\u200A", ThinSpace: "\u2009", Tilde: "\u223C", TildeEqual: "\u2243", TildeFullEqual: "\u2245", TildeTilde: "\u2248", Topf: "\u{1D54B}", TripleDot: "\u20DB", Tscr: "\u{1D4AF}", Tstrok: "\u0166", Uacut: "\xDA", Uacute: "\xDA", Uarr: "\u219F", Uarrocir: "\u2949", Ubrcy: "\u040E", Ubreve: "\u016C", Ucir: "\xDB", Ucirc: "\xDB", Ucy: "\u0423", Udblac: "\u0170", Ufr: "\u{1D518}", Ugrav: "\xD9", Ugrave: "\xD9", Umacr: "\u016A", UnderBar: "_", UnderBrace: "\u23DF", UnderBracket: "\u23B5", UnderParenthesis: "\u23DD", Union: "\u22C3", UnionPlus: "\u228E", Uogon: "\u0172", Uopf: "\u{1D54C}", UpArrow: "\u2191", UpArrowBar: "\u2912", UpArrowDownArrow: "\u21C5", UpDownArrow: "\u2195", UpEquilibrium: "\u296E", UpTee: "\u22A5", UpTeeArrow: "\u21A5", Uparrow: "\u21D1", Updownarrow: "\u21D5", UpperLeftArrow: "\u2196", UpperRightArrow: "\u2197", Upsi: "\u03D2", Upsilon: "\u03A5", Uring: "\u016E", Uscr: "\u{1D4B0}", Utilde: "\u0168", Uum: "\xDC", Uuml: "\xDC", VDash: "\u22AB", Vbar: "\u2AEB", Vcy: "\u0412", Vdash: "\u22A9", Vdashl: "\u2AE6", Vee: "\u22C1", Verbar: "\u2016", Vert: "\u2016", VerticalBar: "\u2223", VerticalLine: "|", VerticalSeparator: "\u2758", VerticalTilde: "\u2240", VeryThinSpace: "\u200A", Vfr: "\u{1D519}", Vopf: "\u{1D54D}", Vscr: "\u{1D4B1}", Vvdash: "\u22AA", Wcirc: "\u0174", Wedge: "\u22C0", Wfr: "\u{1D51A}", Wopf: "\u{1D54E}", Wscr: "\u{1D4B2}", Xfr: "\u{1D51B}", Xi: "\u039E", Xopf: "\u{1D54F}", Xscr: "\u{1D4B3}", YAcy: "\u042F", YIcy: "\u0407", YUcy: "\u042E", Yacut: "\xDD", Yacute: "\xDD", Ycirc: "\u0176", Ycy: "\u042B", Yfr: "\u{1D51C}", Yopf: "\u{1D550}", Yscr: "\u{1D4B4}", Yuml: "\u0178", ZHcy: "\u0416", Zacute: "\u0179", Zcaron: "\u017D", Zcy: "\u0417", Zdot: "\u017B", ZeroWidthSpace: "\u200B", Zeta: "\u0396", Zfr: "\u2128", Zopf: "\u2124", Zscr: "\u{1D4B5}", aacut: "\xE1", aacute: "\xE1", abreve: "\u0103", ac: "\u223E", acE: "\u223E\u0333", acd: "\u223F", acir: "\xE2", acirc: "\xE2", acut: "\xB4", acute: "\xB4", acy: "\u0430", aeli: "\xE6", aelig: "\xE6", af: "\u2061", afr: "\u{1D51E}", agrav: "\xE0", agrave: "\xE0", alefsym: "\u2135", aleph: "\u2135", alpha: "\u03B1", amacr: "\u0101", amalg: "\u2A3F", am: "&", amp: "&", and: "\u2227", andand: "\u2A55", andd: "\u2A5C", andslope: "\u2A58", andv: "\u2A5A", ang: "\u2220", ange: "\u29A4", angle: "\u2220", angmsd: "\u2221", angmsdaa: "\u29A8", angmsdab: "\u29A9", angmsdac: "\u29AA", angmsdad: "\u29AB", angmsdae: "\u29AC", angmsdaf: "\u29AD", angmsdag: "\u29AE", angmsdah: "\u29AF", angrt: "\u221F", angrtvb: "\u22BE", angrtvbd: "\u299D", angsph: "\u2222", angst: "\xC5", angzarr: "\u237C", aogon: "\u0105", aopf: "\u{1D552}", ap: "\u2248", apE: "\u2A70", apacir: "\u2A6F", ape: "\u224A", apid: "\u224B", apos: "'", approx: "\u2248", approxeq: "\u224A", arin: "\xE5", aring: "\xE5", ascr: "\u{1D4B6}", ast: "*", asymp: "\u2248", asympeq: "\u224D", atild: "\xE3", atilde: "\xE3", aum: "\xE4", auml: "\xE4", awconint: "\u2233", awint: "\u2A11", bNot: "\u2AED", backcong: "\u224C", backepsilon: "\u03F6", backprime: "\u2035", backsim: "\u223D", backsimeq: "\u22CD", barvee: "\u22BD", barwed: "\u2305", barwedge: "\u2305", bbrk: "\u23B5", bbrktbrk: "\u23B6", bcong: "\u224C", bcy: "\u0431", bdquo: "\u201E", becaus: "\u2235", because: "\u2235", bemptyv: "\u29B0", bepsi: "\u03F6", bernou: "\u212C", beta: "\u03B2", beth: "\u2136", between: "\u226C", 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: "\u2310", bopf: "\u{1D553}", bot: "\u22A5", bottom: "\u22A5", bowtie: "\u22C8", boxDL: "\u2557", boxDR: "\u2554", boxDl: "\u2556", boxDr: "\u2553", boxH: "\u2550", boxHD: "\u2566", boxHU: "\u2569", boxHd: "\u2564", boxHu: "\u2567", boxUL: "\u255D", boxUR: "\u255A", boxUl: "\u255C", boxUr: "\u2559", boxV: "\u2551", boxVH: "\u256C", boxVL: "\u2563", boxVR: "\u2560", boxVh: "\u256B", boxVl: "\u2562", boxVr: "\u255F", boxbox: "\u29C9", boxdL: "\u2555", boxdR: "\u2552", boxdl: "\u2510", boxdr: "\u250C", boxh: "\u2500", boxhD: "\u2565", boxhU: "\u2568", boxhd: "\u252C", boxhu: "\u2534", boxminus: "\u229F", boxplus: "\u229E", boxtimes: "\u22A0", boxuL: "\u255B", boxuR: "\u2558", boxul: "\u2518", boxur: "\u2514", boxv: "\u2502", boxvH: "\u256A", boxvL: "\u2561", boxvR: "\u255E", boxvh: "\u253C", boxvl: "\u2524", boxvr: "\u251C", bprime: "\u2035", breve: "\u02D8", brvba: "\xA6", brvbar: "\xA6", bscr: "\u{1D4B7}", bsemi: "\u204F", bsim: "\u223D", bsime: "\u22CD", bsol: "\\", bsolb: "\u29C5", bsolhsub: "\u27C8", bull: "\u2022", bullet: "\u2022", bump: "\u224E", bumpE: "\u2AAE", bumpe: "\u224F", bumpeq: "\u224F", cacute: "\u0107", cap: "\u2229", capand: "\u2A44", capbrcup: "\u2A49", capcap: "\u2A4B", capcup: "\u2A47", capdot: "\u2A40", caps: "\u2229\uFE00", caret: "\u2041", caron: "\u02C7", ccaps: "\u2A4D", ccaron: "\u010D", ccedi: "\xE7", ccedil: "\xE7", ccirc: "\u0109", ccups: "\u2A4C", ccupssm: "\u2A50", cdot: "\u010B", cedi: "\xB8", cedil: "\xB8", cemptyv: "\u29B2", cen: "\xA2", cent: "\xA2", centerdot: "\xB7", cfr: "\u{1D520}", chcy: "\u0447", check: "\u2713", checkmark: "\u2713", chi: "\u03C7", cir: "\u25CB", cirE: "\u29C3", circ: "\u02C6", circeq: "\u2257", circlearrowleft: "\u21BA", circlearrowright: "\u21BB", circledR: "\xAE", circledS: "\u24C8", circledast: "\u229B", circledcirc: "\u229A", circleddash: "\u229D", cire: "\u2257", cirfnint: "\u2A10", cirmid: "\u2AEF", cirscir: "\u29C2", clubs: "\u2663", clubsuit: "\u2663", colon: ":", colone: "\u2254", coloneq: "\u2254", comma: ",", commat: "@", comp: "\u2201", compfn: "\u2218", complement: "\u2201", complexes: "\u2102", cong: "\u2245", congdot: "\u2A6D", conint: "\u222E", copf: "\u{1D554}", coprod: "\u2210", cop: "\xA9", copy: "\xA9", copysr: "\u2117", crarr: "\u21B5", cross: "\u2717", 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", cup: "\u222A", cupbrcap: "\u2A48", cupcap: "\u2A46", cupcup: "\u2A4A", cupdot: "\u228D", cupor: "\u2A45", cups: "\u222A\uFE00", curarr: "\u21B7", curarrm: "\u293C", curlyeqprec: "\u22DE", curlyeqsucc: "\u22DF", curlyvee: "\u22CE", curlywedge: "\u22CF", curre: "\xA4", curren: "\xA4", curvearrowleft: "\u21B6", curvearrowright: "\u21B7", cuvee: "\u22CE", cuwed: "\u22CF", cwconint: "\u2232", cwint: "\u2231", cylcty: "\u232D", dArr: "\u21D3", dHar: "\u2965", dagger: "\u2020", daleth: "\u2138", darr: "\u2193", dash: "\u2010", dashv: "\u22A3", dbkarow: "\u290F", dblac: "\u02DD", dcaron: "\u010F", dcy: "\u0434", dd: "\u2146", ddagger: "\u2021", ddarr: "\u21CA", ddotseq: "\u2A77", de: "\xB0", deg: "\xB0", delta: "\u03B4", demptyv: "\u29B1", dfisht: "\u297F", dfr: "\u{1D521}", dharl: "\u21C3", dharr: "\u21C2", diam: "\u22C4", diamond: "\u22C4", diamondsuit: "\u2666", diams: "\u2666", die: "\xA8", digamma: "\u03DD", disin: "\u22F2", div: "\xF7", divid: "\xF7", divide: "\xF7", divideontimes: "\u22C7", divonx: "\u22C7", djcy: "\u0452", dlcorn: "\u231E", dlcrop: "\u230D", dollar: "$", dopf: "\u{1D555}", dot: "\u02D9", doteq: "\u2250", doteqdot: "\u2251", dotminus: "\u2238", dotplus: "\u2214", dotsquare: "\u22A1", doublebarwedge: "\u2306", downarrow: "\u2193", downdownarrows: "\u21CA", downharpoonleft: "\u21C3", downharpoonright: "\u21C2", drbkarow: "\u2910", drcorn: "\u231F", drcrop: "\u230C", dscr: "\u{1D4B9}", dscy: "\u0455", dsol: "\u29F6", dstrok: "\u0111", dtdot: "\u22F1", dtri: "\u25BF", dtrif: "\u25BE", duarr: "\u21F5", duhar: "\u296F", dwangle: "\u29A6", dzcy: "\u045F", dzigrarr: "\u27FF", eDDot: "\u2A77", eDot: "\u2251", eacut: "\xE9", eacute: "\xE9", easter: "\u2A6E", ecaron: "\u011B", ecir: "\xEA", ecirc: "\xEA", ecolon: "\u2255", ecy: "\u044D", edot: "\u0117", ee: "\u2147", efDot: "\u2252", efr: "\u{1D522}", eg: "\u2A9A", egrav: "\xE8", egrave: "\xE8", egs: "\u2A96", egsdot: "\u2A98", el: "\u2A99", elinters: "\u23E7", ell: "\u2113", els: "\u2A95", elsdot: "\u2A97", emacr: "\u0113", empty: "\u2205", emptyset: "\u2205", emptyv: "\u2205", emsp13: "\u2004", emsp14: "\u2005", emsp: "\u2003", eng: "\u014B", ensp: "\u2002", eogon: "\u0119", eopf: "\u{1D556}", epar: "\u22D5", eparsl: "\u29E3", eplus: "\u2A71", epsi: "\u03B5", epsilon: "\u03B5", epsiv: "\u03F5", eqcirc: "\u2256", eqcolon: "\u2255", eqsim: "\u2242", eqslantgtr: "\u2A96", eqslantless: "\u2A95", equals: "=", equest: "\u225F", equiv: "\u2261", equivDD: "\u2A78", eqvparsl: "\u29E5", erDot: "\u2253", erarr: "\u2971", escr: "\u212F", esdot: "\u2250", esim: "\u2242", eta: "\u03B7", et: "\xF0", eth: "\xF0", eum: "\xEB", euml: "\xEB", euro: "\u20AC", excl: "!", exist: "\u2203", expectation: "\u2130", exponentiale: "\u2147", fallingdotseq: "\u2252", fcy: "\u0444", female: "\u2640", ffilig: "\uFB03", fflig: "\uFB00", ffllig: "\uFB04", ffr: "\u{1D523}", filig: "\uFB01", fjlig: "fj", flat: "\u266D", fllig: "\uFB02", fltns: "\u25B1", fnof: "\u0192", fopf: "\u{1D557}", forall: "\u2200", fork: "\u22D4", forkv: "\u2AD9", fpartint: "\u2A0D", frac1: "\xBC", frac12: "\xBD", frac13: "\u2153", frac14: "\xBC", frac15: "\u2155", frac16: "\u2159", frac18: "\u215B", frac23: "\u2154", frac25: "\u2156", frac3: "\xBE", frac34: "\xBE", frac35: "\u2157", frac38: "\u215C", frac45: "\u2158", frac56: "\u215A", frac58: "\u215D", frac78: "\u215E", frasl: "\u2044", frown: "\u2322", fscr: "\u{1D4BB}", gE: "\u2267", gEl: "\u2A8C", gacute: "\u01F5", gamma: "\u03B3", gammad: "\u03DD", gap: "\u2A86", gbreve: "\u011F", gcirc: "\u011D", gcy: "\u0433", gdot: "\u0121", ge: "\u2265", gel: "\u22DB", geq: "\u2265", geqq: "\u2267", geqslant: "\u2A7E", ges: "\u2A7E", gescc: "\u2AA9", gesdot: "\u2A80", gesdoto: "\u2A82", gesdotol: "\u2A84", gesl: "\u22DB\uFE00", gesles: "\u2A94", gfr: "\u{1D524}", gg: "\u226B", ggg: "\u22D9", gimel: "\u2137", gjcy: "\u0453", gl: "\u2277", glE: "\u2A92", gla: "\u2AA5", glj: "\u2AA4", gnE: "\u2269", gnap: "\u2A8A", gnapprox: "\u2A8A", gne: "\u2A88", gneq: "\u2A88", gneqq: "\u2269", gnsim: "\u22E7", gopf: "\u{1D558}", grave: "`", gscr: "\u210A", gsim: "\u2273", gsime: "\u2A8E", gsiml: "\u2A90", g: ">", gt: ">", gtcc: "\u2AA7", gtcir: "\u2A7A", 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", hArr: "\u21D4", hairsp: "\u200A", half: "\xBD", hamilt: "\u210B", hardcy: "\u044A", harr: "\u2194", harrcir: "\u2948", harrw: "\u21AD", hbar: "\u210F", hcirc: "\u0125", hearts: "\u2665", heartsuit: "\u2665", hellip: "\u2026", hercon: "\u22B9", hfr: "\u{1D525}", hksearow: "\u2925", hkswarow: "\u2926", hoarr: "\u21FF", homtht: "\u223B", hookleftarrow: "\u21A9", hookrightarrow: "\u21AA", hopf: "\u{1D559}", horbar: "\u2015", hscr: "\u{1D4BD}", hslash: "\u210F", hstrok: "\u0127", hybull: "\u2043", hyphen: "\u2010", iacut: "\xED", iacute: "\xED", ic: "\u2063", icir: "\xEE", icirc: "\xEE", icy: "\u0438", iecy: "\u0435", iexc: "\xA1", iexcl: "\xA1", iff: "\u21D4", ifr: "\u{1D526}", igrav: "\xEC", igrave: "\xEC", ii: "\u2148", iiiint: "\u2A0C", iiint: "\u222D", iinfin: "\u29DC", iiota: "\u2129", ijlig: "\u0133", imacr: "\u012B", image: "\u2111", imagline: "\u2110", imagpart: "\u2111", imath: "\u0131", imof: "\u22B7", imped: "\u01B5", in: "\u2208", incare: "\u2105", infin: "\u221E", infintie: "\u29DD", inodot: "\u0131", int: "\u222B", intcal: "\u22BA", integers: "\u2124", intercal: "\u22BA", intlarhk: "\u2A17", intprod: "\u2A3C", iocy: "\u0451", iogon: "\u012F", iopf: "\u{1D55A}", iota: "\u03B9", iprod: "\u2A3C", iques: "\xBF", iquest: "\xBF", iscr: "\u{1D4BE}", isin: "\u2208", isinE: "\u22F9", isindot: "\u22F5", isins: "\u22F4", isinsv: "\u22F3", isinv: "\u2208", it: "\u2062", itilde: "\u0129", iukcy: "\u0456", ium: "\xEF", iuml: "\xEF", jcirc: "\u0135", jcy: "\u0439", jfr: "\u{1D527}", jmath: "\u0237", jopf: "\u{1D55B}", jscr: "\u{1D4BF}", jsercy: "\u0458", jukcy: "\u0454", kappa: "\u03BA", kappav: "\u03F0", kcedil: "\u0137", kcy: "\u043A", kfr: "\u{1D528}", kgreen: "\u0138", khcy: "\u0445", kjcy: "\u045C", kopf: "\u{1D55C}", kscr: "\u{1D4C0}", lAarr: "\u21DA", lArr: "\u21D0", lAtail: "\u291B", lBarr: "\u290E", lE: "\u2266", lEg: "\u2A8B", lHar: "\u2962", lacute: "\u013A", laemptyv: "\u29B4", lagran: "\u2112", lambda: "\u03BB", lang: "\u27E8", langd: "\u2991", langle: "\u27E8", lap: "\u2A85", laqu: "\xAB", laquo: "\xAB", larr: "\u2190", larrb: "\u21E4", larrbfs: "\u291F", larrfs: "\u291D", larrhk: "\u21A9", larrlp: "\u21AB", larrpl: "\u2939", larrsim: "\u2973", larrtl: "\u21A2", lat: "\u2AAB", latail: "\u2919", late: "\u2AAD", lates: "\u2AAD\uFE00", lbarr: "\u290C", lbbrk: "\u2772", lbrace: "{", lbrack: "[", lbrke: "\u298B", lbrksld: "\u298F", lbrkslu: "\u298D", lcaron: "\u013E", lcedil: "\u013C", lceil: "\u2308", lcub: "{", lcy: "\u043B", ldca: "\u2936", ldquo: "\u201C", ldquor: "\u201E", ldrdhar: "\u2967", ldrushar: "\u294B", ldsh: "\u21B2", le: "\u2264", leftarrow: "\u2190", leftarrowtail: "\u21A2", leftharpoondown: "\u21BD", leftharpoonup: "\u21BC", leftleftarrows: "\u21C7", leftrightarrow: "\u2194", leftrightarrows: "\u21C6", leftrightharpoons: "\u21CB", leftrightsquigarrow: "\u21AD", leftthreetimes: "\u22CB", leg: "\u22DA", leq: "\u2264", leqq: "\u2266", leqslant: "\u2A7D", les: "\u2A7D", lescc: "\u2AA8", lesdot: "\u2A7F", lesdoto: "\u2A81", lesdotor: "\u2A83", lesg: "\u22DA\uFE00", lesges: "\u2A93", lessapprox: "\u2A85", lessdot: "\u22D6", lesseqgtr: "\u22DA", lesseqqgtr: "\u2A8B", lessgtr: "\u2276", lesssim: "\u2272", lfisht: "\u297C", lfloor: "\u230A", lfr: "\u{1D529}", lg: "\u2276", lgE: "\u2A91", lhard: "\u21BD", lharu: "\u21BC", lharul: "\u296A", lhblk: "\u2584", ljcy: "\u0459", ll: "\u226A", llarr: "\u21C7", llcorner: "\u231E", llhard: "\u296B", lltri: "\u25FA", lmidot: "\u0140", lmoust: "\u23B0", lmoustache: "\u23B0", lnE: "\u2268", lnap: "\u2A89", lnapprox: "\u2A89", lne: "\u2A87", lneq: "\u2A87", lneqq: "\u2268", lnsim: "\u22E6", loang: "\u27EC", loarr: "\u21FD", lobrk: "\u27E6", longleftarrow: "\u27F5", longleftrightarrow: "\u27F7", longmapsto: "\u27FC", longrightarrow: "\u27F6", looparrowleft: "\u21AB", looparrowright: "\u21AC", lopar: "\u2985", lopf: "\u{1D55D}", loplus: "\u2A2D", lotimes: "\u2A34", lowast: "\u2217", lowbar: "_", 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}", lsh: "\u21B0", lsim: "\u2272", lsime: "\u2A8D", lsimg: "\u2A8F", lsqb: "[", lsquo: "\u2018", lsquor: "\u201A", lstrok: "\u0142", l: "<", lt: "<", ltcc: "\u2AA6", ltcir: "\u2A79", ltdot: "\u22D6", lthree: "\u22CB", ltimes: "\u22C9", ltlarr: "\u2976", ltquest: "\u2A7B", ltrPar: "\u2996", ltri: "\u25C3", ltrie: "\u22B4", ltrif: "\u25C2", lurdshar: "\u294A", luruhar: "\u2966", lvertneqq: "\u2268\uFE00", lvnE: "\u2268\uFE00", mDDot: "\u223A", mac: "\xAF", macr: "\xAF", male: "\u2642", malt: "\u2720", maltese: "\u2720", map: "\u21A6", mapsto: "\u21A6", mapstodown: "\u21A7", mapstoleft: "\u21A4", mapstoup: "\u21A5", marker: "\u25AE", mcomma: "\u2A29", mcy: "\u043C", mdash: "\u2014", measuredangle: "\u2221", mfr: "\u{1D52A}", mho: "\u2127", micr: "\xB5", micro: "\xB5", mid: "\u2223", midast: "*", midcir: "\u2AF0", middo: "\xB7", middot: "\xB7", minus: "\u2212", minusb: "\u229F", minusd: "\u2238", minusdu: "\u2A2A", mlcp: "\u2ADB", mldr: "\u2026", mnplus: "\u2213", models: "\u22A7", mopf: "\u{1D55E}", mp: "\u2213", mscr: "\u{1D4C2}", mstpos: "\u223E", mu: "\u03BC", multimap: "\u22B8", mumap: "\u22B8", nGg: "\u22D9\u0338", nGt: "\u226B\u20D2", nGtv: "\u226B\u0338", nLeftarrow: "\u21CD", nLeftrightarrow: "\u21CE", nLl: "\u22D8\u0338", nLt: "\u226A\u20D2", nLtv: "\u226A\u0338", nRightarrow: "\u21CF", nVDash: "\u22AF", nVdash: "\u22AE", nabla: "\u2207", nacute: "\u0144", nang: "\u2220\u20D2", nap: "\u2249", napE: "\u2A70\u0338", napid: "\u224B\u0338", napos: "\u0149", napprox: "\u2249", natur: "\u266E", natural: "\u266E", naturals: "\u2115", nbs: "\xA0", nbsp: "\xA0", nbump: "\u224E\u0338", nbumpe: "\u224F\u0338", ncap: "\u2A43", ncaron: "\u0148", ncedil: "\u0146", ncong: "\u2247", ncongdot: "\u2A6D\u0338", ncup: "\u2A42", ncy: "\u043D", ndash: "\u2013", ne: "\u2260", neArr: "\u21D7", nearhk: "\u2924", nearr: "\u2197", nearrow: "\u2197", nedot: "\u2250\u0338", nequiv: "\u2262", nesear: "\u2928", nesim: "\u2242\u0338", nexist: "\u2204", nexists: "\u2204", nfr: "\u{1D52B}", ngE: "\u2267\u0338", nge: "\u2271", ngeq: "\u2271", ngeqq: "\u2267\u0338", ngeqslant: "\u2A7E\u0338", nges: "\u2A7E\u0338", ngsim: "\u2275", ngt: "\u226F", ngtr: "\u226F", nhArr: "\u21CE", nharr: "\u21AE", nhpar: "\u2AF2", ni: "\u220B", nis: "\u22FC", nisd: "\u22FA", niv: "\u220B", njcy: "\u045A", nlArr: "\u21CD", nlE: "\u2266\u0338", nlarr: "\u219A", nldr: "\u2025", nle: "\u2270", nleftarrow: "\u219A", nleftrightarrow: "\u21AE", nleq: "\u2270", nleqq: "\u2266\u0338", nleqslant: "\u2A7D\u0338", nles: "\u2A7D\u0338", nless: "\u226E", nlsim: "\u2274", nlt: "\u226E", nltri: "\u22EA", nltrie: "\u22EC", nmid: "\u2224", nopf: "\u{1D55F}", no: "\xAC", not: "\xAC", notin: "\u2209", notinE: "\u22F9\u0338", notindot: "\u22F5\u0338", notinva: "\u2209", notinvb: "\u22F7", notinvc: "\u22F6", notni: "\u220C", notniva: "\u220C", notnivb: "\u22FE", notnivc: "\u22FD", npar: "\u2226", nparallel: "\u2226", nparsl: "\u2AFD\u20E5", npart: "\u2202\u0338", npolint: "\u2A14", npr: "\u2280", nprcue: "\u22E0", npre: "\u2AAF\u0338", nprec: "\u2280", npreceq: "\u2AAF\u0338", nrArr: "\u21CF", nrarr: "\u219B", nrarrc: "\u2933\u0338", nrarrw: "\u219D\u0338", nrightarrow: "\u219B", nrtri: "\u22EB", nrtrie: "\u22ED", nsc: "\u2281", nsccue: "\u22E1", nsce: "\u2AB0\u0338", 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", ntild: "\xF1", ntilde: "\xF1", ntlg: "\u2278", ntriangleleft: "\u22EA", ntrianglelefteq: "\u22EC", ntriangleright: "\u22EB", ntrianglerighteq: "\u22ED", nu: "\u03BD", num: "#", numero: "\u2116", numsp: "\u2007", nvDash: "\u22AD", nvHarr: "\u2904", nvap: "\u224D\u20D2", nvdash: "\u22AC", nvge: "\u2265\u20D2", nvgt: ">\u20D2", nvinfin: "\u29DE", nvlArr: "\u2902", nvle: "\u2264\u20D2", nvlt: "<\u20D2", nvltrie: "\u22B4\u20D2", nvrArr: "\u2903", nvrtrie: "\u22B5\u20D2", nvsim: "\u223C\u20D2", nwArr: "\u21D6", nwarhk: "\u2923", nwarr: "\u2196", nwarrow: "\u2196", nwnear: "\u2927", oS: "\u24C8", oacut: "\xF3", oacute: "\xF3", oast: "\u229B", ocir: "\xF4", ocirc: "\xF4", ocy: "\u043E", odash: "\u229D", odblac: "\u0151", odiv: "\u2A38", odot: "\u2299", odsold: "\u29BC", oelig: "\u0153", ofcir: "\u29BF", ofr: "\u{1D52C}", ogon: "\u02DB", ograv: "\xF2", ograve: "\xF2", ogt: "\u29C1", ohbar: "\u29B5", ohm: "\u03A9", oint: "\u222E", olarr: "\u21BA", olcir: "\u29BE", olcross: "\u29BB", oline: "\u203E", olt: "\u29C0", omacr: "\u014D", omega: "\u03C9", omicron: "\u03BF", omid: "\u29B6", ominus: "\u2296", oopf: "\u{1D560}", opar: "\u29B7", operp: "\u29B9", oplus: "\u2295", or: "\u2228", orarr: "\u21BB", ord: "\xBA", order: "\u2134", orderof: "\u2134", ordf: "\xAA", ordm: "\xBA", origof: "\u22B6", oror: "\u2A56", orslope: "\u2A57", orv: "\u2A5B", oscr: "\u2134", oslas: "\xF8", oslash: "\xF8", osol: "\u2298", otild: "\xF5", otilde: "\xF5", otimes: "\u2297", otimesas: "\u2A36", oum: "\xF6", ouml: "\xF6", ovbar: "\u233D", par: "\xB6", para: "\xB6", parallel: "\u2225", parsim: "\u2AF3", parsl: "\u2AFD", part: "\u2202", pcy: "\u043F", percnt: "%", period: ".", permil: "\u2030", perp: "\u22A5", pertenk: "\u2031", pfr: "\u{1D52D}", phi: "\u03C6", phiv: "\u03D5", phmmat: "\u2133", phone: "\u260E", pi: "\u03C0", pitchfork: "\u22D4", piv: "\u03D6", planck: "\u210F", planckh: "\u210E", plankv: "\u210F", plus: "+", plusacir: "\u2A23", plusb: "\u229E", pluscir: "\u2A22", plusdo: "\u2214", plusdu: "\u2A25", pluse: "\u2A72", plusm: "\xB1", plusmn: "\xB1", plussim: "\u2A26", plustwo: "\u2A27", pm: "\xB1", pointint: "\u2A15", popf: "\u{1D561}", poun: "\xA3", pound: "\xA3", pr: "\u227A", prE: "\u2AB3", prap: "\u2AB7", prcue: "\u227C", pre: "\u2AAF", prec: "\u227A", precapprox: "\u2AB7", preccurlyeq: "\u227C", preceq: "\u2AAF", precnapprox: "\u2AB9", precneqq: "\u2AB5", precnsim: "\u22E8", precsim: "\u227E", prime: "\u2032", primes: "\u2119", prnE: "\u2AB5", prnap: "\u2AB9", prnsim: "\u22E8", prod: "\u220F", profalar: "\u232E", profline: "\u2312", profsurf: "\u2313", prop: "\u221D", propto: "\u221D", prsim: "\u227E", prurel: "\u22B0", pscr: "\u{1D4C5}", psi: "\u03C8", puncsp: "\u2008", qfr: "\u{1D52E}", qint: "\u2A0C", qopf: "\u{1D562}", qprime: "\u2057", qscr: "\u{1D4C6}", quaternions: "\u210D", quatint: "\u2A16", quest: "?", questeq: "\u225F", quo: '"', quot: '"', rAarr: "\u21DB", rArr: "\u21D2", rAtail: "\u291C", rBarr: "\u290F", rHar: "\u2964", race: "\u223D\u0331", racute: "\u0155", radic: "\u221A", raemptyv: "\u29B3", rang: "\u27E9", rangd: "\u2992", range: "\u29A5", rangle: "\u27E9", raqu: "\xBB", raquo: "\xBB", rarr: "\u2192", rarrap: "\u2975", rarrb: "\u21E5", rarrbfs: "\u2920", rarrc: "\u2933", rarrfs: "\u291E", rarrhk: "\u21AA", rarrlp: "\u21AC", rarrpl: "\u2945", rarrsim: "\u2974", rarrtl: "\u21A3", rarrw: "\u219D", ratail: "\u291A", ratio: "\u2236", rationals: "\u211A", rbarr: "\u290D", rbbrk: "\u2773", rbrace: "}", rbrack: "]", rbrke: "\u298C", rbrksld: "\u298E", rbrkslu: "\u2990", rcaron: "\u0159", rcedil: "\u0157", rceil: "\u2309", rcub: "}", rcy: "\u0440", rdca: "\u2937", rdldhar: "\u2969", rdquo: "\u201D", rdquor: "\u201D", rdsh: "\u21B3", real: "\u211C", realine: "\u211B", realpart: "\u211C", reals: "\u211D", rect: "\u25AD", re: "\xAE", reg: "\xAE", rfisht: "\u297D", rfloor: "\u230B", rfr: "\u{1D52F}", rhard: "\u21C1", rharu: "\u21C0", rharul: "\u296C", rho: "\u03C1", rhov: "\u03F1", rightarrow: "\u2192", rightarrowtail: "\u21A3", rightharpoondown: "\u21C1", rightharpoonup: "\u21C0", rightleftarrows: "\u21C4", rightleftharpoons: "\u21CC", rightrightarrows: "\u21C9", rightsquigarrow: "\u219D", rightthreetimes: "\u22CC", ring: "\u02DA", risingdotseq: "\u2253", rlarr: "\u21C4", rlhar: "\u21CC", rlm: "\u200F", rmoust: "\u23B1", rmoustache: "\u23B1", rnmid: "\u2AEE", roang: "\u27ED", roarr: "\u21FE", robrk: "\u27E7", ropar: "\u2986", ropf: "\u{1D563}", roplus: "\u2A2E", rotimes: "\u2A35", rpar: ")", rpargt: "\u2994", rppolint: "\u2A12", rrarr: "\u21C9", rsaquo: "\u203A", rscr: "\u{1D4C7}", rsh: "\u21B1", rsqb: "]", rsquo: "\u2019", rsquor: "\u2019", rthree: "\u22CC", rtimes: "\u22CA", rtri: "\u25B9", rtrie: "\u22B5", rtrif: "\u25B8", rtriltri: "\u29CE", ruluhar: "\u2968", rx: "\u211E", sacute: "\u015B", sbquo: "\u201A", sc: "\u227B", scE: "\u2AB4", scap: "\u2AB8", scaron: "\u0161", sccue: "\u227D", sce: "\u2AB0", scedil: "\u015F", scirc: "\u015D", scnE: "\u2AB6", scnap: "\u2ABA", scnsim: "\u22E9", scpolint: "\u2A13", scsim: "\u227F", scy: "\u0441", sdot: "\u22C5", sdotb: "\u22A1", sdote: "\u2A66", seArr: "\u21D8", searhk: "\u2925", searr: "\u2198", searrow: "\u2198", sec: "\xA7", sect: "\xA7", semi: ";", seswar: "\u2929", setminus: "\u2216", setmn: "\u2216", sext: "\u2736", sfr: "\u{1D530}", sfrown: "\u2322", sharp: "\u266F", shchcy: "\u0449", shcy: "\u0448", shortmid: "\u2223", shortparallel: "\u2225", sh: "\xAD", shy: "\xAD", 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", smallsetminus: "\u2216", smashp: "\u2A33", smeparsl: "\u29E4", smid: "\u2223", smile: "\u2323", smt: "\u2AAA", smte: "\u2AAC", smtes: "\u2AAC\uFE00", softcy: "\u044C", sol: "/", solb: "\u29C4", solbar: "\u233F", sopf: "\u{1D564}", spades: "\u2660", spadesuit: "\u2660", spar: "\u2225", sqcap: "\u2293", sqcaps: "\u2293\uFE00", sqcup: "\u2294", sqcups: "\u2294\uFE00", sqsub: "\u228F", sqsube: "\u2291", sqsubset: "\u228F", sqsubseteq: "\u2291", sqsup: "\u2290", sqsupe: "\u2292", sqsupset: "\u2290", sqsupseteq: "\u2292", squ: "\u25A1", square: "\u25A1", squarf: "\u25AA", squf: "\u25AA", srarr: "\u2192", sscr: "\u{1D4C8}", ssetmn: "\u2216", ssmile: "\u2323", sstarf: "\u22C6", star: "\u2606", starf: "\u2605", straightepsilon: "\u03F5", straightphi: "\u03D5", strns: "\xAF", sub: "\u2282", subE: "\u2AC5", subdot: "\u2ABD", sube: "\u2286", subedot: "\u2AC3", submult: "\u2AC1", subnE: "\u2ACB", subne: "\u228A", subplus: "\u2ABF", subrarr: "\u2979", subset: "\u2282", subseteq: "\u2286", subseteqq: "\u2AC5", subsetneq: "\u228A", subsetneqq: "\u2ACB", subsim: "\u2AC7", subsub: "\u2AD5", subsup: "\u2AD3", succ: "\u227B", succapprox: "\u2AB8", succcurlyeq: "\u227D", succeq: "\u2AB0", succnapprox: "\u2ABA", succneqq: "\u2AB6", succnsim: "\u22E9", succsim: "\u227F", sum: "\u2211", sung: "\u266A", sup: "\u2283", sup1: "\xB9", sup2: "\xB2", sup3: "\xB3", supE: "\u2AC6", supdot: "\u2ABE", supdsub: "\u2AD8", supe: "\u2287", supedot: "\u2AC4", suphsol: "\u27C9", suphsub: "\u2AD7", suplarr: "\u297B", supmult: "\u2AC2", supnE: "\u2ACC", supne: "\u228B", supplus: "\u2AC0", supset: "\u2283", supseteq: "\u2287", supseteqq: "\u2AC6", supsetneq: "\u228B", supsetneqq: "\u2ACC", supsim: "\u2AC8", supsub: "\u2AD4", supsup: "\u2AD6", swArr: "\u21D9", swarhk: "\u2926", swarr: "\u2199", swarrow: "\u2199", swnwar: "\u292A", szli: "\xDF", szlig: "\xDF", target: "\u2316", tau: "\u03C4", tbrk: "\u23B4", tcaron: "\u0165", tcedil: "\u0163", tcy: "\u0442", tdot: "\u20DB", telrec: "\u2315", tfr: "\u{1D531}", there4: "\u2234", therefore: "\u2234", theta: "\u03B8", thetasym: "\u03D1", thetav: "\u03D1", thickapprox: "\u2248", thicksim: "\u223C", thinsp: "\u2009", thkap: "\u2248", thksim: "\u223C", thor: "\xFE", thorn: "\xFE", tilde: "\u02DC", time: "\xD7", times: "\xD7", timesb: "\u22A0", timesbar: "\u2A31", timesd: "\u2A30", tint: "\u222D", toea: "\u2928", top: "\u22A4", topbot: "\u2336", topcir: "\u2AF1", topf: "\u{1D565}", topfork: "\u2ADA", tosa: "\u2929", tprime: "\u2034", trade: "\u2122", triangle: "\u25B5", triangledown: "\u25BF", triangleleft: "\u25C3", trianglelefteq: "\u22B4", triangleq: "\u225C", triangleright: "\u25B9", trianglerighteq: "\u22B5", tridot: "\u25EC", trie: "\u225C", triminus: "\u2A3A", triplus: "\u2A39", trisb: "\u29CD", tritime: "\u2A3B", trpezium: "\u23E2", tscr: "\u{1D4C9}", tscy: "\u0446", tshcy: "\u045B", tstrok: "\u0167", twixt: "\u226C", twoheadleftarrow: "\u219E", twoheadrightarrow: "\u21A0", uArr: "\u21D1", uHar: "\u2963", uacut: "\xFA", uacute: "\xFA", uarr: "\u2191", ubrcy: "\u045E", ubreve: "\u016D", ucir: "\xFB", ucirc: "\xFB", ucy: "\u0443", udarr: "\u21C5", udblac: "\u0171", udhar: "\u296E", ufisht: "\u297E", ufr: "\u{1D532}", ugrav: "\xF9", ugrave: "\xF9", uharl: "\u21BF", uharr: "\u21BE", uhblk: "\u2580", ulcorn: "\u231C", ulcorner: "\u231C", ulcrop: "\u230F", ultri: "\u25F8", umacr: "\u016B", um: "\xA8", uml: "\xA8", uogon: "\u0173", uopf: "\u{1D566}", uparrow: "\u2191", updownarrow: "\u2195", upharpoonleft: "\u21BF", upharpoonright: "\u21BE", uplus: "\u228E", upsi: "\u03C5", upsih: "\u03D2", upsilon: "\u03C5", upuparrows: "\u21C8", urcorn: "\u231D", urcorner: "\u231D", urcrop: "\u230E", uring: "\u016F", urtri: "\u25F9", uscr: "\u{1D4CA}", utdot: "\u22F0", utilde: "\u0169", utri: "\u25B5", utrif: "\u25B4", uuarr: "\u21C8", uum: "\xFC", uuml: "\xFC", uwangle: "\u29A7", vArr: "\u21D5", vBar: "\u2AE8", vBarv: "\u2AE9", vDash: "\u22A8", vangrt: "\u299C", varepsilon: "\u03F5", varkappa: "\u03F0", varnothing: "\u2205", varphi: "\u03D5", varpi: "\u03D6", varpropto: "\u221D", varr: "\u2195", varrho: "\u03F1", varsigma: "\u03C2", varsubsetneq: "\u228A\uFE00", varsubsetneqq: "\u2ACB\uFE00", varsupsetneq: "\u228B\uFE00", varsupsetneqq: "\u2ACC\uFE00", vartheta: "\u03D1", vartriangleleft: "\u22B2", vartriangleright: "\u22B3", vcy: "\u0432", vdash: "\u22A2", vee: "\u2228", veebar: "\u22BB", veeeq: "\u225A", vellip: "\u22EE", verbar: "|", vert: "|", vfr: "\u{1D533}", vltri: "\u22B2", vnsub: "\u2282\u20D2", vnsup: "\u2283\u20D2", vopf: "\u{1D567}", vprop: "\u221D", vrtri: "\u22B3", vscr: "\u{1D4CB}", vsubnE: "\u2ACB\uFE00", vsubne: "\u228A\uFE00", vsupnE: "\u2ACC\uFE00", vsupne: "\u228B\uFE00", vzigzag: "\u299A", wcirc: "\u0175", wedbar: "\u2A5F", wedge: "\u2227", wedgeq: "\u2259", weierp: "\u2118", wfr: "\u{1D534}", wopf: "\u{1D568}", wp: "\u2118", wr: "\u2240", wreath: "\u2240", wscr: "\u{1D4CC}", xcap: "\u22C2", xcirc: "\u25EF", xcup: "\u22C3", xdtri: "\u25BD", xfr: "\u{1D535}", xhArr: "\u27FA", xharr: "\u27F7", xi: "\u03BE", xlArr: "\u27F8", xlarr: "\u27F5", xmap: "\u27FC", xnis: "\u22FB", xodot: "\u2A00", xopf: "\u{1D569}", xoplus: "\u2A01", xotime: "\u2A02", xrArr: "\u27F9", xrarr: "\u27F6", xscr: "\u{1D4CD}", xsqcup: "\u2A06", xuplus: "\u2A04", xutri: "\u25B3", xvee: "\u22C1", xwedge: "\u22C0", yacut: "\xFD", yacute: "\xFD", yacy: "\u044F", ycirc: "\u0177", ycy: "\u044B", ye: "\xA5", yen: "\xA5", yfr: "\u{1D536}", yicy: "\u0457", yopf: "\u{1D56A}", yscr: "\u{1D4CE}", yucy: "\u044E", yum: "\xFF", yuml: "\xFF", zacute: "\u017A", zcaron: "\u017E", zcy: "\u0437", zdot: "\u017C", zeetrf: "\u2128", zeta: "\u03B6", zfr: "\u{1D537}", zhcy: "\u0436", zigrarr: "\u21DD", zopf: "\u{1D56B}", zscr: "\u{1D4CF}", zwj: "\u200D", zwnj: "\u200C" };
|
|
386
|
-
});
|
|
387
|
-
var Iu = x((pv, Pu) => {
|
|
388
|
-
"use strict";
|
|
389
|
-
var Nu = qu();
|
|
390
|
-
Pu.exports = RD;
|
|
391
|
-
var LD = {}.hasOwnProperty;
|
|
392
|
-
function RD(e) {
|
|
393
|
-
return LD.call(Nu, e) ? Nu[e] : false;
|
|
394
|
-
}
|
|
395
|
-
});
|
|
396
|
-
var mr = x((hv, Hu) => {
|
|
397
|
-
"use strict";
|
|
398
|
-
var Su = xu(), Lu = yu(), MD = Se(), UD = Tu(), Yu = Ou(), YD = Iu();
|
|
399
|
-
Hu.exports = ep;
|
|
400
|
-
var GD = {}.hasOwnProperty, He = String.fromCharCode, zD = Function.prototype, Ru = { warning: null, reference: null, text: null, warningContext: null, referenceContext: null, textContext: null, position: {}, additional: null, attribute: false, nonTerminated: true }, WD = 9, Mu = 10, VD = 12, jD = 32, Uu = 38, $D = 59, HD = 60, KD = 61, XD = 35, JD = 88, QD = 120, ZD = 65533, Ke = "named", zt = "hexadecimal", Wt = "decimal", Vt = {};
|
|
401
|
-
Vt[zt] = 16;
|
|
402
|
-
Vt[Wt] = 10;
|
|
403
|
-
var Hr = {};
|
|
404
|
-
Hr[Ke] = Yu;
|
|
405
|
-
Hr[Wt] = MD;
|
|
406
|
-
Hr[zt] = UD;
|
|
407
|
-
var Gu = 1, zu = 2, Wu = 3, Vu = 4, ju = 5, Gt = 6, $u = 7, we = {};
|
|
408
|
-
we[Gu] = "Named character references must be terminated by a semicolon";
|
|
409
|
-
we[zu] = "Numeric character references must be terminated by a semicolon";
|
|
410
|
-
we[Wu] = "Named character references cannot be empty";
|
|
411
|
-
we[Vu] = "Numeric character references cannot be empty";
|
|
412
|
-
we[ju] = "Named character references must be known";
|
|
413
|
-
we[Gt] = "Numeric character references cannot be disallowed";
|
|
414
|
-
we[$u] = "Numeric character references cannot be outside the permissible Unicode range";
|
|
415
|
-
function ep(e, r) {
|
|
416
|
-
var t = {}, n, u;
|
|
417
|
-
r || (r = {});
|
|
418
|
-
for (u in Ru) n = r[u], t[u] = n ?? Ru[u];
|
|
419
|
-
return (t.position.indent || t.position.start) && (t.indent = t.position.indent || [], t.position = t.position.start), rp(e, t);
|
|
420
|
-
}
|
|
421
|
-
function rp(e, r) {
|
|
422
|
-
var t = r.additional, n = r.nonTerminated, u = r.text, i = r.reference, a = r.warning, o = r.textContext, s = r.referenceContext, f = r.warningContext, c = r.position, l = r.indent || [], D = e.length, m = 0, p = -1, h = c.column || 1, F = c.line || 1, g = "", E = [], v, A, b, d, y, w, C, k, T, B, _, S, P, N, O, I, le, K, L;
|
|
423
|
-
for (typeof t == "string" && (t = t.charCodeAt(0)), I = ie(), k = a ? Z : zD, m--, D++; ++m < D; ) if (y === Mu && (h = l[p] || 1), y = e.charCodeAt(m), y === Uu) {
|
|
424
|
-
if (C = e.charCodeAt(m + 1), C === WD || C === Mu || C === VD || C === jD || C === Uu || C === HD || C !== C || t && C === t) {
|
|
425
|
-
g += He(y), h++;
|
|
426
|
-
continue;
|
|
427
|
-
}
|
|
428
|
-
for (P = m + 1, S = P, L = P, C === XD ? (L = ++S, C = e.charCodeAt(L), C === JD || C === QD ? (N = zt, L = ++S) : N = Wt) : N = Ke, v = "", _ = "", d = "", O = Hr[N], L--; ++L < D && (C = e.charCodeAt(L), !!O(C)); ) d += He(C), N === Ke && GD.call(Su, d) && (v = d, _ = Su[d]);
|
|
429
|
-
b = e.charCodeAt(L) === $D, b && (L++, A = N === Ke ? YD(d) : false, A && (v = d, _ = A)), K = 1 + L - P, !b && !n || (d ? N === Ke ? (b && !_ ? k(ju, 1) : (v !== d && (L = S + v.length, K = 1 + L - S, b = false), b || (T = v ? Gu : Wu, r.attribute ? (C = e.charCodeAt(L), C === KD ? (k(T, K), _ = null) : Yu(C) ? _ = null : k(T, K)) : k(T, K))), w = _) : (b || k(zu, K), w = parseInt(d, Vt[N]), tp(w) ? (k($u, K), w = He(ZD)) : w in Lu ? (k(Gt, K), w = Lu[w]) : (B = "", np(w) && k(Gt, K), w > 65535 && (w -= 65536, B += He(w >>> 10 | 55296), w = 56320 | w & 1023), w = B + He(w))) : N !== Ke && k(Vu, K)), w ? (ve(), I = ie(), m = L - 1, h += L - P + 1, E.push(w), le = ie(), le.offset++, i && i.call(s, w, { start: I, end: le }, e.slice(P - 1, L)), I = le) : (d = e.slice(P - 1, L), g += d, h += d.length, m = L - 1);
|
|
430
|
-
} else y === 10 && (F++, p++, h = 0), y === y ? (g += He(y), h++) : ve();
|
|
431
|
-
return E.join("");
|
|
432
|
-
function ie() {
|
|
433
|
-
return { line: F, column: h, offset: m + (c.offset || 0) };
|
|
434
|
-
}
|
|
435
|
-
function Z(Ae, G) {
|
|
436
|
-
var mt = ie();
|
|
437
|
-
mt.column += G, mt.offset += G, a.call(f, we[Ae], mt, Ae);
|
|
438
|
-
}
|
|
439
|
-
function ve() {
|
|
440
|
-
g && (E.push(g), u && u.call(o, g, { start: I, end: ie() }), g = "");
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
function tp(e) {
|
|
444
|
-
return e >= 55296 && e <= 57343 || e > 1114111;
|
|
445
|
-
}
|
|
446
|
-
function np(e) {
|
|
447
|
-
return e >= 1 && e <= 8 || e === 11 || e >= 13 && e <= 31 || e >= 127 && e <= 159 || e >= 64976 && e <= 65007 || (e & 65535) === 65535 || (e & 65535) === 65534;
|
|
448
|
-
}
|
|
449
|
-
});
|
|
450
|
-
var Ju = x((dv, Xu) => {
|
|
451
|
-
"use strict";
|
|
452
|
-
var ip = Ie(), Ku = mr();
|
|
453
|
-
Xu.exports = up;
|
|
454
|
-
function up(e) {
|
|
455
|
-
return t.raw = n, t;
|
|
456
|
-
function r(i) {
|
|
457
|
-
for (var a = e.offset, o = i.line, s = []; ++o && o in a; ) s.push((a[o] || 0) + 1);
|
|
458
|
-
return { start: i, indent: s };
|
|
459
|
-
}
|
|
460
|
-
function t(i, a, o) {
|
|
461
|
-
Ku(i, { position: r(a), warning: u, text: o, reference: o, textContext: e, referenceContext: e });
|
|
462
|
-
}
|
|
463
|
-
function n(i, a, o) {
|
|
464
|
-
return Ku(i, ip(o, { position: r(a), warning: u }));
|
|
465
|
-
}
|
|
466
|
-
function u(i, a, o) {
|
|
467
|
-
o !== 3 && e.file.message(i, a);
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
});
|
|
471
|
-
var ea = x((mv, Zu) => {
|
|
472
|
-
"use strict";
|
|
473
|
-
Zu.exports = ap;
|
|
474
|
-
function ap(e) {
|
|
475
|
-
return r;
|
|
476
|
-
function r(t, n) {
|
|
477
|
-
var u = this, i = u.offset, a = [], o = u[e + "Methods"], s = u[e + "Tokenizers"], f = n.line, c = n.column, l, D, m, p, h, F;
|
|
478
|
-
if (!t) return a;
|
|
479
|
-
for (w.now = v, w.file = u.file, g(""); t; ) {
|
|
480
|
-
for (l = -1, D = o.length, h = false; ++l < D && (p = o[l], m = s[p], !(m && (!m.onlyAtStart || u.atStart) && (!m.notInList || !u.inList) && (!m.notInBlock || !u.inBlock) && (!m.notInLink || !u.inLink) && (F = t.length, m.apply(u, [w, t]), h = F !== t.length, h))); ) ;
|
|
481
|
-
h || u.file.fail(new Error("Infinite loop"), w.now());
|
|
482
|
-
}
|
|
483
|
-
return u.eof = v(), a;
|
|
484
|
-
function g(C) {
|
|
485
|
-
for (var k = -1, T = C.indexOf(`
|
|
486
|
-
`); T !== -1; ) f++, k = T, T = C.indexOf(`
|
|
487
|
-
`, T + 1);
|
|
488
|
-
k === -1 ? c += C.length : c = C.length - k, f in i && (k !== -1 ? c += i[f] : c <= i[f] && (c = i[f] + 1));
|
|
489
|
-
}
|
|
490
|
-
function E() {
|
|
491
|
-
var C = [], k = f + 1;
|
|
492
|
-
return function() {
|
|
493
|
-
for (var T = f + 1; k < T; ) C.push((i[k] || 0) + 1), k++;
|
|
494
|
-
return C;
|
|
495
|
-
};
|
|
496
|
-
}
|
|
497
|
-
function v() {
|
|
498
|
-
var C = { line: f, column: c };
|
|
499
|
-
return C.offset = u.toOffset(C), C;
|
|
500
|
-
}
|
|
501
|
-
function A(C) {
|
|
502
|
-
this.start = C, this.end = v();
|
|
503
|
-
}
|
|
504
|
-
function b(C) {
|
|
505
|
-
t.slice(0, C.length) !== C && u.file.fail(new Error("Incorrectly eaten value: please report this warning on https://git.io/vg5Ft"), v());
|
|
506
|
-
}
|
|
507
|
-
function d() {
|
|
508
|
-
var C = v();
|
|
509
|
-
return k;
|
|
510
|
-
function k(T, B) {
|
|
511
|
-
var _ = T.position, S = _ ? _.start : C, P = [], N = _ && _.end.line, O = C.line;
|
|
512
|
-
if (T.position = new A(S), _ && B && _.indent) {
|
|
513
|
-
if (P = _.indent, N < O) {
|
|
514
|
-
for (; ++N < O; ) P.push((i[N] || 0) + 1);
|
|
515
|
-
P.push(C.column);
|
|
516
|
-
}
|
|
517
|
-
B = P.concat(B);
|
|
518
|
-
}
|
|
519
|
-
return T.position.indent = B || [], T;
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
function y(C, k) {
|
|
523
|
-
var T = k ? k.children : a, B = T[T.length - 1], _;
|
|
524
|
-
return B && C.type === B.type && (C.type === "text" || C.type === "blockquote") && Qu(B) && Qu(C) && (_ = C.type === "text" ? op : sp, C = _.call(u, B, C)), C !== B && T.push(C), u.atStart && a.length !== 0 && u.exitStart(), C;
|
|
525
|
-
}
|
|
526
|
-
function w(C) {
|
|
527
|
-
var k = E(), T = d(), B = v();
|
|
528
|
-
return b(C), _.reset = S, S.test = P, _.test = P, t = t.slice(C.length), g(C), k = k(), _;
|
|
529
|
-
function _(N, O) {
|
|
530
|
-
return T(y(T(N), O), k);
|
|
531
|
-
}
|
|
532
|
-
function S() {
|
|
533
|
-
var N = _.apply(null, arguments);
|
|
534
|
-
return f = B.line, c = B.column, t = C + t, N;
|
|
535
|
-
}
|
|
536
|
-
function P() {
|
|
537
|
-
var N = T({});
|
|
538
|
-
return f = B.line, c = B.column, t = C + t, N.position;
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
function Qu(e) {
|
|
544
|
-
var r, t;
|
|
545
|
-
return e.type !== "text" || !e.position ? true : (r = e.position.start, t = e.position.end, r.line !== t.line || t.column - r.column === e.value.length);
|
|
546
|
-
}
|
|
547
|
-
function op(e, r) {
|
|
548
|
-
return e.value += r.value, e;
|
|
549
|
-
}
|
|
550
|
-
function sp(e, r) {
|
|
551
|
-
return this.options.commonmark || this.options.gfm ? r : (e.children = e.children.concat(r.children), e);
|
|
552
|
-
}
|
|
553
|
-
});
|
|
554
|
-
var na = x((Fv, ta) => {
|
|
555
|
-
"use strict";
|
|
556
|
-
ta.exports = Kr;
|
|
557
|
-
var jt = ["\\", "`", "*", "{", "}", "[", "]", "(", ")", "#", "+", "-", ".", "!", "_", ">"], $t = jt.concat(["~", "|"]), ra = $t.concat([`
|
|
558
|
-
`, '"', "$", "%", "&", "'", ",", "/", ":", ";", "<", "=", "?", "@", "^"]);
|
|
559
|
-
Kr.default = jt;
|
|
560
|
-
Kr.gfm = $t;
|
|
561
|
-
Kr.commonmark = ra;
|
|
562
|
-
function Kr(e) {
|
|
563
|
-
var r = e || {};
|
|
564
|
-
return r.commonmark ? ra : r.gfm ? $t : jt;
|
|
565
|
-
}
|
|
566
|
-
});
|
|
567
|
-
var ua = x((gv, ia) => {
|
|
568
|
-
"use strict";
|
|
569
|
-
ia.exports = ["address", "article", "aside", "base", "basefont", "blockquote", "body", "caption", "center", "col", "colgroup", "dd", "details", "dialog", "dir", "div", "dl", "dt", "fieldset", "figcaption", "figure", "footer", "form", "frame", "frameset", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "iframe", "legend", "li", "link", "main", "menu", "menuitem", "meta", "nav", "noframes", "ol", "optgroup", "option", "p", "param", "pre", "section", "source", "title", "summary", "table", "tbody", "td", "tfoot", "th", "thead", "title", "tr", "track", "ul"];
|
|
570
|
-
});
|
|
571
|
-
var Ht = x((Ev, aa) => {
|
|
572
|
-
"use strict";
|
|
573
|
-
aa.exports = { position: true, gfm: true, commonmark: false, pedantic: false, blocks: ua() };
|
|
574
|
-
});
|
|
575
|
-
var sa = x((Cv, oa) => {
|
|
576
|
-
"use strict";
|
|
577
|
-
var cp = Ie(), lp = na(), fp = Ht();
|
|
578
|
-
oa.exports = Dp;
|
|
579
|
-
function Dp(e) {
|
|
580
|
-
var r = this, t = r.options, n, u;
|
|
581
|
-
if (e == null) e = {};
|
|
582
|
-
else if (typeof e == "object") e = cp(e);
|
|
583
|
-
else throw new Error("Invalid value `" + e + "` for setting `options`");
|
|
584
|
-
for (n in fp) {
|
|
585
|
-
if (u = e[n], u == null && (u = t[n]), n !== "blocks" && typeof u != "boolean" || n === "blocks" && typeof u != "object") throw new Error("Invalid value `" + u + "` for setting `options." + n + "`");
|
|
586
|
-
e[n] = u;
|
|
587
|
-
}
|
|
588
|
-
return r.options = e, r.escape = lp(e), r;
|
|
589
|
-
}
|
|
590
|
-
});
|
|
591
|
-
var fa = x((vv, la) => {
|
|
592
|
-
"use strict";
|
|
593
|
-
la.exports = ca;
|
|
594
|
-
function ca(e) {
|
|
595
|
-
if (e == null) return mp;
|
|
596
|
-
if (typeof e == "string") return dp(e);
|
|
597
|
-
if (typeof e == "object") return "length" in e ? hp(e) : pp(e);
|
|
598
|
-
if (typeof e == "function") return e;
|
|
599
|
-
throw new Error("Expected function, string, or object as test");
|
|
600
|
-
}
|
|
601
|
-
function pp(e) {
|
|
602
|
-
return r;
|
|
603
|
-
function r(t) {
|
|
604
|
-
var n;
|
|
605
|
-
for (n in e) if (t[n] !== e[n]) return false;
|
|
606
|
-
return true;
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
function hp(e) {
|
|
610
|
-
for (var r = [], t = -1; ++t < e.length; ) r[t] = ca(e[t]);
|
|
611
|
-
return n;
|
|
612
|
-
function n() {
|
|
613
|
-
for (var u = -1; ++u < r.length; ) if (r[u].apply(this, arguments)) return true;
|
|
614
|
-
return false;
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
function dp(e) {
|
|
618
|
-
return r;
|
|
619
|
-
function r(t) {
|
|
620
|
-
return !!(t && t.type === e);
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
function mp() {
|
|
624
|
-
return true;
|
|
625
|
-
}
|
|
626
|
-
});
|
|
627
|
-
var pa = x((Av, Da) => {
|
|
628
|
-
Da.exports = Fp;
|
|
629
|
-
function Fp(e) {
|
|
630
|
-
return e;
|
|
631
|
-
}
|
|
632
|
-
});
|
|
633
|
-
var Fa = x((bv, ma) => {
|
|
634
|
-
"use strict";
|
|
635
|
-
ma.exports = Xr;
|
|
636
|
-
var gp = fa(), Ep = pa(), ha = true, da = "skip", Kt = false;
|
|
637
|
-
Xr.CONTINUE = ha;
|
|
638
|
-
Xr.SKIP = da;
|
|
639
|
-
Xr.EXIT = Kt;
|
|
640
|
-
function Xr(e, r, t, n) {
|
|
641
|
-
var u, i;
|
|
642
|
-
typeof r == "function" && typeof t != "function" && (n = t, t = r, r = null), i = gp(r), u = n ? -1 : 1, a(e, null, [])();
|
|
643
|
-
function a(o, s, f) {
|
|
644
|
-
var c = typeof o == "object" && o !== null ? o : {}, l;
|
|
645
|
-
return typeof c.type == "string" && (l = typeof c.tagName == "string" ? c.tagName : typeof c.name == "string" ? c.name : void 0, D.displayName = "node (" + Ep(c.type + (l ? "<" + l + ">" : "")) + ")"), D;
|
|
646
|
-
function D() {
|
|
647
|
-
var m = f.concat(o), p = [], h, F;
|
|
648
|
-
if ((!r || i(o, s, f[f.length - 1] || null)) && (p = Cp(t(o, f)), p[0] === Kt)) return p;
|
|
649
|
-
if (o.children && p[0] !== da) for (F = (n ? o.children.length : -1) + u; F > -1 && F < o.children.length; ) {
|
|
650
|
-
if (h = a(o.children[F], F, m)(), h[0] === Kt) return h;
|
|
651
|
-
F = typeof h[1] == "number" ? h[1] : F + u;
|
|
652
|
-
}
|
|
653
|
-
return p;
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
function Cp(e) {
|
|
658
|
-
return e !== null && typeof e == "object" && "length" in e ? e : typeof e == "number" ? [ha, e] : [e];
|
|
659
|
-
}
|
|
660
|
-
});
|
|
661
|
-
var Ea = x((xv, ga) => {
|
|
662
|
-
"use strict";
|
|
663
|
-
ga.exports = Qr;
|
|
664
|
-
var Jr = Fa(), vp = Jr.CONTINUE, Ap = Jr.SKIP, bp = Jr.EXIT;
|
|
665
|
-
Qr.CONTINUE = vp;
|
|
666
|
-
Qr.SKIP = Ap;
|
|
667
|
-
Qr.EXIT = bp;
|
|
668
|
-
function Qr(e, r, t, n) {
|
|
669
|
-
typeof r == "function" && typeof t != "function" && (n = t, t = r, r = null), Jr(e, r, u, n);
|
|
670
|
-
function u(i, a) {
|
|
671
|
-
var o = a[a.length - 1], s = o ? o.children.indexOf(i) : null;
|
|
672
|
-
return t(i, s, o);
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
});
|
|
676
|
-
var va = x((yv, Ca) => {
|
|
677
|
-
"use strict";
|
|
678
|
-
var xp = Ea();
|
|
679
|
-
Ca.exports = yp;
|
|
680
|
-
function yp(e, r) {
|
|
681
|
-
return xp(e, r ? wp : kp), e;
|
|
682
|
-
}
|
|
683
|
-
function wp(e) {
|
|
684
|
-
delete e.position;
|
|
685
|
-
}
|
|
686
|
-
function kp(e) {
|
|
687
|
-
e.position = void 0;
|
|
688
|
-
}
|
|
689
|
-
});
|
|
690
|
-
var xa = x((wv, ba) => {
|
|
691
|
-
"use strict";
|
|
692
|
-
var Aa = Ie(), Tp = va();
|
|
693
|
-
ba.exports = Op;
|
|
694
|
-
var Bp = `
|
|
695
|
-
`, _p = /\r\n|\r/g;
|
|
696
|
-
function Op() {
|
|
697
|
-
var e = this, r = String(e.file), t = { line: 1, column: 1, offset: 0 }, n = Aa(t), u;
|
|
698
|
-
return r = r.replace(_p, Bp), r.charCodeAt(0) === 65279 && (r = r.slice(1), n.column++, n.offset++), u = { type: "root", children: e.tokenizeBlock(r, n), position: { start: t, end: e.eof || Aa(t) } }, e.options.position || Tp(u, true), u;
|
|
699
|
-
}
|
|
700
|
-
});
|
|
701
|
-
var wa = x((kv, ya) => {
|
|
702
|
-
"use strict";
|
|
703
|
-
var qp = /^[ \t]*(\n|$)/;
|
|
704
|
-
ya.exports = Np;
|
|
705
|
-
function Np(e, r, t) {
|
|
706
|
-
for (var n, u = "", i = 0, a = r.length; i < a && (n = qp.exec(r.slice(i)), n != null); ) i += n[0].length, u += n[0];
|
|
707
|
-
if (u !== "") {
|
|
708
|
-
if (t) return true;
|
|
709
|
-
e(u);
|
|
710
|
-
}
|
|
711
|
-
}
|
|
712
|
-
});
|
|
713
|
-
var Zr = x((Tv, ka) => {
|
|
714
|
-
"use strict";
|
|
715
|
-
var ge = "", Xt;
|
|
716
|
-
ka.exports = Pp;
|
|
717
|
-
function Pp(e, r) {
|
|
718
|
-
if (typeof e != "string") throw new TypeError("expected a string");
|
|
719
|
-
if (r === 1) return e;
|
|
720
|
-
if (r === 2) return e + e;
|
|
721
|
-
var t = e.length * r;
|
|
722
|
-
if (Xt !== e || typeof Xt > "u") Xt = e, ge = "";
|
|
723
|
-
else if (ge.length >= t) return ge.substr(0, t);
|
|
724
|
-
for (; t > ge.length && r > 1; ) r & 1 && (ge += e), r >>= 1, e += e;
|
|
725
|
-
return ge += e, ge = ge.substr(0, t), ge;
|
|
726
|
-
}
|
|
727
|
-
});
|
|
728
|
-
var Jt = x((Bv, Ta) => {
|
|
729
|
-
"use strict";
|
|
730
|
-
Ta.exports = Ip;
|
|
731
|
-
function Ip(e) {
|
|
732
|
-
return String(e).replace(/\n+$/, "");
|
|
733
|
-
}
|
|
734
|
-
});
|
|
735
|
-
var Oa = x((_v, _a) => {
|
|
736
|
-
"use strict";
|
|
737
|
-
var Sp = Zr(), Lp = Jt();
|
|
738
|
-
_a.exports = Up;
|
|
739
|
-
var Qt = `
|
|
740
|
-
`, Ba = " ", Zt = " ", Rp = 4, Mp = Sp(Zt, Rp);
|
|
741
|
-
function Up(e, r, t) {
|
|
742
|
-
for (var n = -1, u = r.length, i = "", a = "", o = "", s = "", f, c, l; ++n < u; ) if (f = r.charAt(n), l) if (l = false, i += o, a += s, o = "", s = "", f === Qt) o = f, s = f;
|
|
743
|
-
else for (i += f, a += f; ++n < u; ) {
|
|
744
|
-
if (f = r.charAt(n), !f || f === Qt) {
|
|
745
|
-
s = f, o = f;
|
|
746
|
-
break;
|
|
747
|
-
}
|
|
748
|
-
i += f, a += f;
|
|
749
|
-
}
|
|
750
|
-
else if (f === Zt && r.charAt(n + 1) === f && r.charAt(n + 2) === f && r.charAt(n + 3) === f) o += Mp, n += 3, l = true;
|
|
751
|
-
else if (f === Ba) o += f, l = true;
|
|
752
|
-
else {
|
|
753
|
-
for (c = ""; f === Ba || f === Zt; ) c += f, f = r.charAt(++n);
|
|
754
|
-
if (f !== Qt) break;
|
|
755
|
-
o += c + f, s += f;
|
|
756
|
-
}
|
|
757
|
-
if (a) return t ? true : e(i)({ type: "code", lang: null, meta: null, value: Lp(a) });
|
|
758
|
-
}
|
|
759
|
-
});
|
|
760
|
-
var Pa = x((Ov, Na) => {
|
|
761
|
-
"use strict";
|
|
762
|
-
Na.exports = Wp;
|
|
763
|
-
var et = `
|
|
764
|
-
`, Fr = " ", Xe = " ", Yp = "~", qa = "`", Gp = 3, zp = 4;
|
|
765
|
-
function Wp(e, r, t) {
|
|
766
|
-
var n = this, u = n.options.gfm, i = r.length + 1, a = 0, o = "", s, f, c, l, D, m, p, h, F, g, E, v, A;
|
|
767
|
-
if (u) {
|
|
768
|
-
for (; a < i && (c = r.charAt(a), !(c !== Xe && c !== Fr)); ) o += c, a++;
|
|
769
|
-
if (v = a, c = r.charAt(a), !(c !== Yp && c !== qa)) {
|
|
770
|
-
for (a++, f = c, s = 1, o += c; a < i && (c = r.charAt(a), c === f); ) o += c, s++, a++;
|
|
771
|
-
if (!(s < Gp)) {
|
|
772
|
-
for (; a < i && (c = r.charAt(a), !(c !== Xe && c !== Fr)); ) o += c, a++;
|
|
773
|
-
for (l = "", p = ""; a < i && (c = r.charAt(a), !(c === et || f === qa && c === f)); ) c === Xe || c === Fr ? p += c : (l += p + c, p = ""), a++;
|
|
774
|
-
if (c = r.charAt(a), !(c && c !== et)) {
|
|
775
|
-
if (t) return true;
|
|
776
|
-
A = e.now(), A.column += o.length, A.offset += o.length, o += l, l = n.decode.raw(n.unescape(l), A), p && (o += p), p = "", g = "", E = "", h = "", F = "";
|
|
777
|
-
for (var b = true; a < i; ) {
|
|
778
|
-
if (c = r.charAt(a), h += g, F += E, g = "", E = "", c !== et) {
|
|
779
|
-
h += c, E += c, a++;
|
|
780
|
-
continue;
|
|
781
|
-
}
|
|
782
|
-
for (b ? (o += c, b = false) : (g += c, E += c), p = "", a++; a < i && (c = r.charAt(a), c === Xe); ) p += c, a++;
|
|
783
|
-
if (g += p, E += p.slice(v), !(p.length >= zp)) {
|
|
784
|
-
for (p = ""; a < i && (c = r.charAt(a), c === f); ) p += c, a++;
|
|
785
|
-
if (g += p, E += p, !(p.length < s)) {
|
|
786
|
-
for (p = ""; a < i && (c = r.charAt(a), !(c !== Xe && c !== Fr)); ) g += c, E += c, a++;
|
|
787
|
-
if (!c || c === et) break;
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
}
|
|
791
|
-
for (o += h + g, a = -1, i = l.length; ++a < i; ) if (c = l.charAt(a), c === Xe || c === Fr) D || (D = l.slice(0, a));
|
|
792
|
-
else if (D) {
|
|
793
|
-
m = l.slice(a);
|
|
794
|
-
break;
|
|
795
|
-
}
|
|
796
|
-
return e(o)({ type: "code", lang: D || l || null, meta: m || null, value: F });
|
|
797
|
-
}
|
|
798
|
-
}
|
|
799
|
-
}
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
});
|
|
803
|
-
var Le = x((Je, Ia) => {
|
|
804
|
-
Je = Ia.exports = Vp;
|
|
805
|
-
function Vp(e) {
|
|
806
|
-
return e.trim ? e.trim() : Je.right(Je.left(e));
|
|
807
|
-
}
|
|
808
|
-
Je.left = function(e) {
|
|
809
|
-
return e.trimLeft ? e.trimLeft() : e.replace(/^\s\s*/, "");
|
|
810
|
-
};
|
|
811
|
-
Je.right = function(e) {
|
|
812
|
-
if (e.trimRight) return e.trimRight();
|
|
813
|
-
for (var r = /\s/, t = e.length; r.test(e.charAt(--t)); ) ;
|
|
814
|
-
return e.slice(0, t + 1);
|
|
815
|
-
};
|
|
816
|
-
});
|
|
817
|
-
var rt = x((qv, Sa) => {
|
|
818
|
-
"use strict";
|
|
819
|
-
Sa.exports = jp;
|
|
820
|
-
function jp(e, r, t, n) {
|
|
821
|
-
for (var u = e.length, i = -1, a, o; ++i < u; ) if (a = e[i], o = a[1] || {}, !(o.pedantic !== void 0 && o.pedantic !== t.options.pedantic) && !(o.commonmark !== void 0 && o.commonmark !== t.options.commonmark) && r[a[0]].apply(t, n)) return true;
|
|
822
|
-
return false;
|
|
823
|
-
}
|
|
824
|
-
});
|
|
825
|
-
var Ua = x((Nv, Ma) => {
|
|
826
|
-
"use strict";
|
|
827
|
-
var $p = Le(), Hp = rt();
|
|
828
|
-
Ma.exports = Kp;
|
|
829
|
-
var en = `
|
|
830
|
-
`, La = " ", rn = " ", Ra = ">";
|
|
831
|
-
function Kp(e, r, t) {
|
|
832
|
-
for (var n = this, u = n.offset, i = n.blockTokenizers, a = n.interruptBlockquote, o = e.now(), s = o.line, f = r.length, c = [], l = [], D = [], m, p = 0, h, F, g, E, v, A, b, d; p < f && (h = r.charAt(p), !(h !== rn && h !== La)); ) p++;
|
|
833
|
-
if (r.charAt(p) === Ra) {
|
|
834
|
-
if (t) return true;
|
|
835
|
-
for (p = 0; p < f; ) {
|
|
836
|
-
for (g = r.indexOf(en, p), A = p, b = false, g === -1 && (g = f); p < f && (h = r.charAt(p), !(h !== rn && h !== La)); ) p++;
|
|
837
|
-
if (r.charAt(p) === Ra ? (p++, b = true, r.charAt(p) === rn && p++) : p = A, E = r.slice(p, g), !b && !$p(E)) {
|
|
838
|
-
p = A;
|
|
839
|
-
break;
|
|
840
|
-
}
|
|
841
|
-
if (!b && (F = r.slice(p), Hp(a, i, n, [e, F, true]))) break;
|
|
842
|
-
v = A === p ? E : r.slice(A, g), D.push(p - A), c.push(v), l.push(E), p = g + 1;
|
|
843
|
-
}
|
|
844
|
-
for (p = -1, f = D.length, m = e(c.join(en)); ++p < f; ) u[s] = (u[s] || 0) + D[p], s++;
|
|
845
|
-
return d = n.enterBlock(), l = n.tokenizeBlock(l.join(en), o), d(), m({ type: "blockquote", children: l });
|
|
846
|
-
}
|
|
847
|
-
}
|
|
848
|
-
});
|
|
849
|
-
var za = x((Pv, Ga) => {
|
|
850
|
-
"use strict";
|
|
851
|
-
Ga.exports = Jp;
|
|
852
|
-
var Ya = `
|
|
853
|
-
`, gr = " ", Er = " ", Cr = "#", Xp = 6;
|
|
854
|
-
function Jp(e, r, t) {
|
|
855
|
-
for (var n = this, u = n.options.pedantic, i = r.length + 1, a = -1, o = e.now(), s = "", f = "", c, l, D; ++a < i; ) {
|
|
856
|
-
if (c = r.charAt(a), c !== Er && c !== gr) {
|
|
857
|
-
a--;
|
|
858
|
-
break;
|
|
859
|
-
}
|
|
860
|
-
s += c;
|
|
861
|
-
}
|
|
862
|
-
for (D = 0; ++a <= i; ) {
|
|
863
|
-
if (c = r.charAt(a), c !== Cr) {
|
|
864
|
-
a--;
|
|
865
|
-
break;
|
|
866
|
-
}
|
|
867
|
-
s += c, D++;
|
|
868
|
-
}
|
|
869
|
-
if (!(D > Xp) && !(!D || !u && r.charAt(a + 1) === Cr)) {
|
|
870
|
-
for (i = r.length + 1, l = ""; ++a < i; ) {
|
|
871
|
-
if (c = r.charAt(a), c !== Er && c !== gr) {
|
|
872
|
-
a--;
|
|
873
|
-
break;
|
|
874
|
-
}
|
|
875
|
-
l += c;
|
|
876
|
-
}
|
|
877
|
-
if (!(!u && l.length === 0 && c && c !== Ya)) {
|
|
878
|
-
if (t) return true;
|
|
879
|
-
for (s += l, l = "", f = ""; ++a < i && (c = r.charAt(a), !(!c || c === Ya)); ) {
|
|
880
|
-
if (c !== Er && c !== gr && c !== Cr) {
|
|
881
|
-
f += l + c, l = "";
|
|
882
|
-
continue;
|
|
883
|
-
}
|
|
884
|
-
for (; c === Er || c === gr; ) l += c, c = r.charAt(++a);
|
|
885
|
-
if (!u && f && !l && c === Cr) {
|
|
886
|
-
f += c;
|
|
887
|
-
continue;
|
|
888
|
-
}
|
|
889
|
-
for (; c === Cr; ) l += c, c = r.charAt(++a);
|
|
890
|
-
for (; c === Er || c === gr; ) l += c, c = r.charAt(++a);
|
|
891
|
-
a--;
|
|
892
|
-
}
|
|
893
|
-
return o.column += s.length, o.offset += s.length, s += f + l, e(s)({ type: "heading", depth: D, children: n.tokenizeInline(f, o) });
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
});
|
|
898
|
-
var ja = x((Iv, Va) => {
|
|
899
|
-
"use strict";
|
|
900
|
-
Va.exports = ih;
|
|
901
|
-
var Qp = " ", Zp = `
|
|
902
|
-
`, Wa = " ", eh = "*", rh = "-", th = "_", nh = 3;
|
|
903
|
-
function ih(e, r, t) {
|
|
904
|
-
for (var n = -1, u = r.length + 1, i = "", a, o, s, f; ++n < u && (a = r.charAt(n), !(a !== Qp && a !== Wa)); ) i += a;
|
|
905
|
-
if (!(a !== eh && a !== rh && a !== th)) for (o = a, i += a, s = 1, f = ""; ++n < u; ) if (a = r.charAt(n), a === o) s++, i += f + o, f = "";
|
|
906
|
-
else if (a === Wa) f += a;
|
|
907
|
-
else return s >= nh && (!a || a === Zp) ? (i += f, t ? true : e(i)({ type: "thematicBreak" })) : void 0;
|
|
908
|
-
}
|
|
909
|
-
});
|
|
910
|
-
var tn = x((Sv, Ha) => {
|
|
911
|
-
"use strict";
|
|
912
|
-
Ha.exports = sh;
|
|
913
|
-
var $a = " ", uh = " ", ah = 1, oh = 4;
|
|
914
|
-
function sh(e) {
|
|
915
|
-
for (var r = 0, t = 0, n = e.charAt(r), u = {}, i, a = 0; n === $a || n === uh; ) {
|
|
916
|
-
for (i = n === $a ? oh : ah, t += i, i > 1 && (t = Math.floor(t / i) * i); a < t; ) u[++a] = r;
|
|
917
|
-
n = e.charAt(++r);
|
|
918
|
-
}
|
|
919
|
-
return { indent: t, stops: u };
|
|
920
|
-
}
|
|
921
|
-
});
|
|
922
|
-
var Ja = x((Lv, Xa) => {
|
|
923
|
-
"use strict";
|
|
924
|
-
var ch = Le(), lh = Zr(), fh = tn();
|
|
925
|
-
Xa.exports = hh;
|
|
926
|
-
var Ka = `
|
|
927
|
-
`, Dh = " ", ph = "!";
|
|
928
|
-
function hh(e, r) {
|
|
929
|
-
var t = e.split(Ka), n = t.length + 1, u = 1 / 0, i = [], a, o, s;
|
|
930
|
-
for (t.unshift(lh(Dh, r) + ph); n--; ) if (o = fh(t[n]), i[n] = o.stops, ch(t[n]).length !== 0) if (o.indent) o.indent > 0 && o.indent < u && (u = o.indent);
|
|
931
|
-
else {
|
|
932
|
-
u = 1 / 0;
|
|
933
|
-
break;
|
|
934
|
-
}
|
|
935
|
-
if (u !== 1 / 0) for (n = t.length; n--; ) {
|
|
936
|
-
for (s = i[n], a = u; a && !(a in s); ) a--;
|
|
937
|
-
t[n] = t[n].slice(s[a] + 1);
|
|
938
|
-
}
|
|
939
|
-
return t.shift(), t.join(Ka);
|
|
940
|
-
}
|
|
941
|
-
});
|
|
942
|
-
var no = x((Rv, to) => {
|
|
943
|
-
"use strict";
|
|
944
|
-
var dh = Le(), mh = Zr(), Qa = Se(), Fh = tn(), gh = Ja(), Eh = rt();
|
|
945
|
-
to.exports = kh;
|
|
946
|
-
var nn = "*", Ch = "_", Za = "+", un = "-", eo = ".", Ee = " ", oe = `
|
|
947
|
-
`, tt = " ", ro = ")", vh = "x", ke = 4, Ah = /\n\n(?!\s*$)/, bh = /^\[([ X\tx])][ \t]/, xh = /^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/, yh = /^([ \t]*)([*+-]|\d+[.)])([ \t]+)/, wh = /^( {1,4}|\t)?/gm;
|
|
948
|
-
function kh(e, r, t) {
|
|
949
|
-
for (var n = this, u = n.options.commonmark, i = n.options.pedantic, a = n.blockTokenizers, o = n.interruptList, s = 0, f = r.length, c = null, l, D, m, p, h, F, g, E, v, A, b, d, y, w, C, k, T, B, _, S = false, P, N, O, I; s < f && (p = r.charAt(s), !(p !== tt && p !== Ee)); ) s++;
|
|
950
|
-
if (p = r.charAt(s), p === nn || p === Za || p === un) h = p, m = false;
|
|
951
|
-
else {
|
|
952
|
-
for (m = true, D = ""; s < f && (p = r.charAt(s), !!Qa(p)); ) D += p, s++;
|
|
953
|
-
if (p = r.charAt(s), !D || !(p === eo || u && p === ro) || t && D !== "1") return;
|
|
954
|
-
c = parseInt(D, 10), h = p;
|
|
955
|
-
}
|
|
956
|
-
if (p = r.charAt(++s), !(p !== Ee && p !== tt && (i || p !== oe && p !== ""))) {
|
|
957
|
-
if (t) return true;
|
|
958
|
-
for (s = 0, w = [], C = [], k = []; s < f; ) {
|
|
959
|
-
for (F = r.indexOf(oe, s), g = s, E = false, I = false, F === -1 && (F = f), l = 0; s < f; ) {
|
|
960
|
-
if (p = r.charAt(s), p === tt) l += ke - l % ke;
|
|
961
|
-
else if (p === Ee) l++;
|
|
962
|
-
else break;
|
|
963
|
-
s++;
|
|
964
|
-
}
|
|
965
|
-
if (T && l >= T.indent && (I = true), p = r.charAt(s), v = null, !I) {
|
|
966
|
-
if (p === nn || p === Za || p === un) v = p, s++, l++;
|
|
967
|
-
else {
|
|
968
|
-
for (D = ""; s < f && (p = r.charAt(s), !!Qa(p)); ) D += p, s++;
|
|
969
|
-
p = r.charAt(s), s++, D && (p === eo || u && p === ro) && (v = p, l += D.length + 1);
|
|
970
|
-
}
|
|
971
|
-
if (v) if (p = r.charAt(s), p === tt) l += ke - l % ke, s++;
|
|
972
|
-
else if (p === Ee) {
|
|
973
|
-
for (O = s + ke; s < O && r.charAt(s) === Ee; ) s++, l++;
|
|
974
|
-
s === O && r.charAt(s) === Ee && (s -= ke - 1, l -= ke - 1);
|
|
975
|
-
} else p !== oe && p !== "" && (v = null);
|
|
976
|
-
}
|
|
977
|
-
if (v) {
|
|
978
|
-
if (!i && h !== v) break;
|
|
979
|
-
E = true;
|
|
980
|
-
} else !u && !I && r.charAt(g) === Ee ? I = true : u && T && (I = l >= T.indent || l > ke), E = false, s = g;
|
|
981
|
-
if (b = r.slice(g, F), A = g === s ? b : r.slice(s, F), (v === nn || v === Ch || v === un) && a.thematicBreak.call(n, e, b, true)) break;
|
|
982
|
-
if (d = y, y = !E && !dh(A).length, I && T) T.value = T.value.concat(k, b), C = C.concat(k, b), k = [];
|
|
983
|
-
else if (E) k.length !== 0 && (S = true, T.value.push(""), T.trail = k.concat()), T = { value: [b], indent: l, trail: [] }, w.push(T), C = C.concat(k, b), k = [];
|
|
984
|
-
else if (y) {
|
|
985
|
-
if (d && !u) break;
|
|
986
|
-
k.push(b);
|
|
987
|
-
} else {
|
|
988
|
-
if (d || Eh(o, a, n, [e, b, true])) break;
|
|
989
|
-
T.value = T.value.concat(k, b), C = C.concat(k, b), k = [];
|
|
990
|
-
}
|
|
991
|
-
s = F + 1;
|
|
992
|
-
}
|
|
993
|
-
for (P = e(C.join(oe)).reset({ type: "list", ordered: m, start: c, spread: S, children: [] }), B = n.enterList(), _ = n.enterBlock(), s = -1, f = w.length; ++s < f; ) T = w[s].value.join(oe), N = e.now(), e(T)(Th(n, T, N), P), T = w[s].trail.join(oe), s !== f - 1 && (T += oe), e(T);
|
|
994
|
-
return B(), _(), P;
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
function Th(e, r, t) {
|
|
998
|
-
var n = e.offset, u = e.options.pedantic ? Bh : _h, i = null, a, o;
|
|
999
|
-
return r = u.apply(null, arguments), e.options.gfm && (a = r.match(bh), a && (o = a[0].length, i = a[1].toLowerCase() === vh, n[t.line] += o, r = r.slice(o))), { type: "listItem", spread: Ah.test(r), checked: i, children: e.tokenizeBlock(r, t) };
|
|
1000
|
-
}
|
|
1001
|
-
function Bh(e, r, t) {
|
|
1002
|
-
var n = e.offset, u = t.line;
|
|
1003
|
-
return r = r.replace(yh, i), u = t.line, r.replace(wh, i);
|
|
1004
|
-
function i(a) {
|
|
1005
|
-
return n[u] = (n[u] || 0) + a.length, u++, "";
|
|
1006
|
-
}
|
|
1007
|
-
}
|
|
1008
|
-
function _h(e, r, t) {
|
|
1009
|
-
var n = e.offset, u = t.line, i, a, o, s, f, c, l;
|
|
1010
|
-
for (r = r.replace(xh, D), s = r.split(oe), f = gh(r, Fh(i).indent).split(oe), f[0] = o, n[u] = (n[u] || 0) + a.length, u++, c = 0, l = s.length; ++c < l; ) n[u] = (n[u] || 0) + s[c].length - f[c].length, u++;
|
|
1011
|
-
return f.join(oe);
|
|
1012
|
-
function D(m, p, h, F, g) {
|
|
1013
|
-
return a = p + h + F, o = g, Number(h) < 10 && a.length % 2 === 1 && (h = Ee + h), i = p + mh(Ee, h.length) + F, i + o;
|
|
1014
|
-
}
|
|
1015
|
-
}
|
|
1016
|
-
});
|
|
1017
|
-
var oo = x((Mv, ao) => {
|
|
1018
|
-
"use strict";
|
|
1019
|
-
ao.exports = Sh;
|
|
1020
|
-
var an = `
|
|
1021
|
-
`, Oh = " ", io = " ", uo = "=", qh = "-", Nh = 3, Ph = 1, Ih = 2;
|
|
1022
|
-
function Sh(e, r, t) {
|
|
1023
|
-
for (var n = this, u = e.now(), i = r.length, a = -1, o = "", s, f, c, l, D; ++a < i; ) {
|
|
1024
|
-
if (c = r.charAt(a), c !== io || a >= Nh) {
|
|
1025
|
-
a--;
|
|
1026
|
-
break;
|
|
1027
|
-
}
|
|
1028
|
-
o += c;
|
|
1029
|
-
}
|
|
1030
|
-
for (s = "", f = ""; ++a < i; ) {
|
|
1031
|
-
if (c = r.charAt(a), c === an) {
|
|
1032
|
-
a--;
|
|
1033
|
-
break;
|
|
1034
|
-
}
|
|
1035
|
-
c === io || c === Oh ? f += c : (s += f + c, f = "");
|
|
1036
|
-
}
|
|
1037
|
-
if (u.column += o.length, u.offset += o.length, o += s + f, c = r.charAt(++a), l = r.charAt(++a), !(c !== an || l !== uo && l !== qh)) {
|
|
1038
|
-
for (o += c, f = l, D = l === uo ? Ph : Ih; ++a < i; ) {
|
|
1039
|
-
if (c = r.charAt(a), c !== l) {
|
|
1040
|
-
if (c !== an) return;
|
|
1041
|
-
a--;
|
|
1042
|
-
break;
|
|
1043
|
-
}
|
|
1044
|
-
f += c;
|
|
1045
|
-
}
|
|
1046
|
-
return t ? true : e(o + f)({ type: "heading", depth: D, children: n.tokenizeInline(s, u) });
|
|
1047
|
-
}
|
|
1048
|
-
}
|
|
1049
|
-
});
|
|
1050
|
-
var sn = x((on) => {
|
|
1051
|
-
"use strict";
|
|
1052
|
-
var Lh = "[a-zA-Z_:][a-zA-Z0-9:._-]*", Rh = "[^\"'=<>`\\u0000-\\u0020]+", Mh = "'[^']*'", Uh = '"[^"]*"', Yh = "(?:" + Rh + "|" + Mh + "|" + Uh + ")", Gh = "(?:\\s+" + Lh + "(?:\\s*=\\s*" + Yh + ")?)", so = "<[A-Za-z][A-Za-z0-9\\-]*" + Gh + "*\\s*\\/?>", co = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", zh = "<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->", Wh = "<[?].*?[?]>", Vh = "<![A-Za-z]+\\s+[^>]*>", jh = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>";
|
|
1053
|
-
on.openCloseTag = new RegExp("^(?:" + so + "|" + co + ")");
|
|
1054
|
-
on.tag = new RegExp("^(?:" + so + "|" + co + "|" + zh + "|" + Wh + "|" + Vh + "|" + jh + ")");
|
|
1055
|
-
});
|
|
1056
|
-
var po = x((Yv, Do) => {
|
|
1057
|
-
"use strict";
|
|
1058
|
-
var $h = sn().openCloseTag;
|
|
1059
|
-
Do.exports = sd;
|
|
1060
|
-
var Hh = " ", Kh = " ", lo = `
|
|
1061
|
-
`, Xh = "<", Jh = /^<(script|pre|style)(?=(\s|>|$))/i, Qh = /<\/(script|pre|style)>/i, Zh = /^<!--/, ed = /-->/, rd = /^<\?/, td = /\?>/, nd = /^<![A-Za-z]/, id = />/, ud = /^<!\[CDATA\[/, ad = /]]>/, fo = /^$/, od = new RegExp($h.source + "\\s*$");
|
|
1062
|
-
function sd(e, r, t) {
|
|
1063
|
-
for (var n = this, u = n.options.blocks.join("|"), i = new RegExp("^</?(" + u + ")(?=(\\s|/?>|$))", "i"), a = r.length, o = 0, s, f, c, l, D, m, p, h = [[Jh, Qh, true], [Zh, ed, true], [rd, td, true], [nd, id, true], [ud, ad, true], [i, fo, true], [od, fo, false]]; o < a && (l = r.charAt(o), !(l !== Hh && l !== Kh)); ) o++;
|
|
1064
|
-
if (r.charAt(o) === Xh) {
|
|
1065
|
-
for (s = r.indexOf(lo, o + 1), s = s === -1 ? a : s, f = r.slice(o, s), c = -1, D = h.length; ++c < D; ) if (h[c][0].test(f)) {
|
|
1066
|
-
m = h[c];
|
|
1067
|
-
break;
|
|
1068
|
-
}
|
|
1069
|
-
if (m) {
|
|
1070
|
-
if (t) return m[2];
|
|
1071
|
-
if (o = s, !m[1].test(f)) for (; o < a; ) {
|
|
1072
|
-
if (s = r.indexOf(lo, o + 1), s = s === -1 ? a : s, f = r.slice(o + 1, s), m[1].test(f)) {
|
|
1073
|
-
f && (o = s);
|
|
1074
|
-
break;
|
|
1075
|
-
}
|
|
1076
|
-
o = s;
|
|
1077
|
-
}
|
|
1078
|
-
return p = r.slice(0, o), e(p)({ type: "html", value: p });
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
}
|
|
1082
|
-
});
|
|
1083
|
-
var se = x((Gv, ho) => {
|
|
1084
|
-
"use strict";
|
|
1085
|
-
ho.exports = fd;
|
|
1086
|
-
var cd = String.fromCharCode, ld = /\s/;
|
|
1087
|
-
function fd(e) {
|
|
1088
|
-
return ld.test(typeof e == "number" ? cd(e) : e.charAt(0));
|
|
1089
|
-
}
|
|
1090
|
-
});
|
|
1091
|
-
var cn = x((zv, mo) => {
|
|
1092
|
-
"use strict";
|
|
1093
|
-
var Dd = Tr();
|
|
1094
|
-
mo.exports = pd;
|
|
1095
|
-
function pd(e) {
|
|
1096
|
-
return Dd(e).toLowerCase();
|
|
1097
|
-
}
|
|
1098
|
-
});
|
|
1099
|
-
var bo = x((Wv, Ao) => {
|
|
1100
|
-
"use strict";
|
|
1101
|
-
var hd = se(), dd = cn();
|
|
1102
|
-
Ao.exports = Ed;
|
|
1103
|
-
var Fo = '"', go = "'", md = "\\", Qe = `
|
|
1104
|
-
`, nt = " ", it = " ", fn = "[", vr = "]", Fd = "(", gd = ")", Eo = ":", Co = "<", vo = ">";
|
|
1105
|
-
function Ed(e, r, t) {
|
|
1106
|
-
for (var n = this, u = n.options.commonmark, i = 0, a = r.length, o = "", s, f, c, l, D, m, p, h; i < a && (l = r.charAt(i), !(l !== it && l !== nt)); ) o += l, i++;
|
|
1107
|
-
if (l = r.charAt(i), l === fn) {
|
|
1108
|
-
for (i++, o += l, c = ""; i < a && (l = r.charAt(i), l !== vr); ) l === md && (c += l, i++, l = r.charAt(i)), c += l, i++;
|
|
1109
|
-
if (!(!c || r.charAt(i) !== vr || r.charAt(i + 1) !== Eo)) {
|
|
1110
|
-
for (m = c, o += c + vr + Eo, i = o.length, c = ""; i < a && (l = r.charAt(i), !(l !== nt && l !== it && l !== Qe)); ) o += l, i++;
|
|
1111
|
-
if (l = r.charAt(i), c = "", s = o, l === Co) {
|
|
1112
|
-
for (i++; i < a && (l = r.charAt(i), !!ln(l)); ) c += l, i++;
|
|
1113
|
-
if (l = r.charAt(i), l === ln.delimiter) o += Co + c + l, i++;
|
|
1114
|
-
else {
|
|
1115
|
-
if (u) return;
|
|
1116
|
-
i -= c.length + 1, c = "";
|
|
1117
|
-
}
|
|
1118
|
-
}
|
|
1119
|
-
if (!c) {
|
|
1120
|
-
for (; i < a && (l = r.charAt(i), !!Cd(l)); ) c += l, i++;
|
|
1121
|
-
o += c;
|
|
1122
|
-
}
|
|
1123
|
-
if (c) {
|
|
1124
|
-
for (p = c, c = ""; i < a && (l = r.charAt(i), !(l !== nt && l !== it && l !== Qe)); ) c += l, i++;
|
|
1125
|
-
if (l = r.charAt(i), D = null, l === Fo ? D = Fo : l === go ? D = go : l === Fd && (D = gd), !D) c = "", i = o.length;
|
|
1126
|
-
else if (c) {
|
|
1127
|
-
for (o += c + l, i = o.length, c = ""; i < a && (l = r.charAt(i), l !== D); ) {
|
|
1128
|
-
if (l === Qe) {
|
|
1129
|
-
if (i++, l = r.charAt(i), l === Qe || l === D) return;
|
|
1130
|
-
c += Qe;
|
|
1131
|
-
}
|
|
1132
|
-
c += l, i++;
|
|
1133
|
-
}
|
|
1134
|
-
if (l = r.charAt(i), l !== D) return;
|
|
1135
|
-
f = o, o += c + l, i++, h = c, c = "";
|
|
1136
|
-
} else return;
|
|
1137
|
-
for (; i < a && (l = r.charAt(i), !(l !== nt && l !== it)); ) o += l, i++;
|
|
1138
|
-
if (l = r.charAt(i), !l || l === Qe) return t ? true : (s = e(s).test().end, p = n.decode.raw(n.unescape(p), s, { nonTerminated: false }), h && (f = e(f).test().end, h = n.decode.raw(n.unescape(h), f)), e(o)({ type: "definition", identifier: dd(m), label: m, title: h || null, url: p }));
|
|
1139
|
-
}
|
|
1140
|
-
}
|
|
1141
|
-
}
|
|
1142
|
-
}
|
|
1143
|
-
function ln(e) {
|
|
1144
|
-
return e !== vo && e !== fn && e !== vr;
|
|
1145
|
-
}
|
|
1146
|
-
ln.delimiter = vo;
|
|
1147
|
-
function Cd(e) {
|
|
1148
|
-
return e !== fn && e !== vr && !hd(e);
|
|
1149
|
-
}
|
|
1150
|
-
});
|
|
1151
|
-
var wo = x((Vv, yo) => {
|
|
1152
|
-
"use strict";
|
|
1153
|
-
var vd = se();
|
|
1154
|
-
yo.exports = Od;
|
|
1155
|
-
var Ad = " ", ut = `
|
|
1156
|
-
`, bd = " ", xd = "-", yd = ":", wd = "\\", Dn = "|", kd = 1, Td = 2, xo = "left", Bd = "center", _d = "right";
|
|
1157
|
-
function Od(e, r, t) {
|
|
1158
|
-
var n = this, u, i, a, o, s, f, c, l, D, m, p, h, F, g, E, v, A, b, d, y, w, C;
|
|
1159
|
-
if (n.options.gfm) {
|
|
1160
|
-
for (u = 0, v = 0, f = r.length + 1, c = []; u < f; ) {
|
|
1161
|
-
if (y = r.indexOf(ut, u), w = r.indexOf(Dn, u + 1), y === -1 && (y = r.length), w === -1 || w > y) {
|
|
1162
|
-
if (v < Td) return;
|
|
1163
|
-
break;
|
|
1164
|
-
}
|
|
1165
|
-
c.push(r.slice(u, y)), v++, u = y + 1;
|
|
1166
|
-
}
|
|
1167
|
-
for (o = c.join(ut), i = c.splice(1, 1)[0] || [], u = 0, f = i.length, v--, a = false, p = []; u < f; ) {
|
|
1168
|
-
if (D = i.charAt(u), D === Dn) {
|
|
1169
|
-
if (m = null, a === false) {
|
|
1170
|
-
if (C === false) return;
|
|
1171
|
-
} else p.push(a), a = false;
|
|
1172
|
-
C = false;
|
|
1173
|
-
} else if (D === xd) m = true, a = a || null;
|
|
1174
|
-
else if (D === yd) a === xo ? a = Bd : m && a === null ? a = _d : a = xo;
|
|
1175
|
-
else if (!vd(D)) return;
|
|
1176
|
-
u++;
|
|
1177
|
-
}
|
|
1178
|
-
if (a !== false && p.push(a), !(p.length < kd)) {
|
|
1179
|
-
if (t) return true;
|
|
1180
|
-
for (E = -1, b = [], d = e(o).reset({ type: "table", align: p, children: b }); ++E < v; ) {
|
|
1181
|
-
for (A = c[E], s = { type: "tableRow", children: [] }, E && e(ut), e(A).reset(s, d), f = A.length + 1, u = 0, l = "", h = "", F = true; u < f; ) {
|
|
1182
|
-
if (D = A.charAt(u), D === Ad || D === bd) {
|
|
1183
|
-
h ? l += D : e(D), u++;
|
|
1184
|
-
continue;
|
|
1185
|
-
}
|
|
1186
|
-
D === "" || D === Dn ? F ? e(D) : ((h || D) && !F && (o = h, l.length > 1 && (D ? (o += l.slice(0, -1), l = l.charAt(l.length - 1)) : (o += l, l = "")), g = e.now(), e(o)({ type: "tableCell", children: n.tokenizeInline(h, g) }, s)), e(l + D), l = "", h = "") : (l && (h += l, l = ""), h += D, D === wd && u !== f - 2 && (h += A.charAt(u + 1), u++)), F = false, u++;
|
|
1187
|
-
}
|
|
1188
|
-
E || e(ut + i);
|
|
1189
|
-
}
|
|
1190
|
-
return d;
|
|
1191
|
-
}
|
|
1192
|
-
}
|
|
1193
|
-
}
|
|
1194
|
-
});
|
|
1195
|
-
var Bo = x((jv, To) => {
|
|
1196
|
-
"use strict";
|
|
1197
|
-
var qd = Le(), Nd = Jt(), Pd = rt();
|
|
1198
|
-
To.exports = Ld;
|
|
1199
|
-
var Id = " ", Ar = `
|
|
1200
|
-
`, Sd = " ", ko = 4;
|
|
1201
|
-
function Ld(e, r, t) {
|
|
1202
|
-
for (var n = this, u = n.options, i = u.commonmark, a = n.blockTokenizers, o = n.interruptParagraph, s = r.indexOf(Ar), f = r.length, c, l, D, m, p; s < f; ) {
|
|
1203
|
-
if (s === -1) {
|
|
1204
|
-
s = f;
|
|
1205
|
-
break;
|
|
1206
|
-
}
|
|
1207
|
-
if (r.charAt(s + 1) === Ar) break;
|
|
1208
|
-
if (i) {
|
|
1209
|
-
for (m = 0, c = s + 1; c < f; ) {
|
|
1210
|
-
if (D = r.charAt(c), D === Id) {
|
|
1211
|
-
m = ko;
|
|
1212
|
-
break;
|
|
1213
|
-
} else if (D === Sd) m++;
|
|
1214
|
-
else break;
|
|
1215
|
-
c++;
|
|
1216
|
-
}
|
|
1217
|
-
if (m >= ko && D !== Ar) {
|
|
1218
|
-
s = r.indexOf(Ar, s + 1);
|
|
1219
|
-
continue;
|
|
1220
|
-
}
|
|
1221
|
-
}
|
|
1222
|
-
if (l = r.slice(s + 1), Pd(o, a, n, [e, l, true])) break;
|
|
1223
|
-
if (c = s, s = r.indexOf(Ar, s + 1), s !== -1 && qd(r.slice(c, s)) === "") {
|
|
1224
|
-
s = c;
|
|
1225
|
-
break;
|
|
1226
|
-
}
|
|
1227
|
-
}
|
|
1228
|
-
return l = r.slice(0, s), t ? true : (p = e.now(), l = Nd(l), e(l)({ type: "paragraph", children: n.tokenizeInline(l, p) }));
|
|
1229
|
-
}
|
|
1230
|
-
});
|
|
1231
|
-
var Oo = x(($v, _o) => {
|
|
1232
|
-
"use strict";
|
|
1233
|
-
_o.exports = Rd;
|
|
1234
|
-
function Rd(e, r) {
|
|
1235
|
-
return e.indexOf("\\", r);
|
|
1236
|
-
}
|
|
1237
|
-
});
|
|
1238
|
-
var Io = x((Hv, Po) => {
|
|
1239
|
-
"use strict";
|
|
1240
|
-
var Md = Oo();
|
|
1241
|
-
Po.exports = No;
|
|
1242
|
-
No.locator = Md;
|
|
1243
|
-
var Ud = `
|
|
1244
|
-
`, qo = "\\";
|
|
1245
|
-
function No(e, r, t) {
|
|
1246
|
-
var n = this, u, i;
|
|
1247
|
-
if (r.charAt(0) === qo && (u = r.charAt(1), n.escape.indexOf(u) !== -1)) return t ? true : (u === Ud ? i = { type: "break" } : i = { type: "text", value: u }, e(qo + u)(i));
|
|
1248
|
-
}
|
|
1249
|
-
});
|
|
1250
|
-
var pn = x((Kv, So) => {
|
|
1251
|
-
"use strict";
|
|
1252
|
-
So.exports = Yd;
|
|
1253
|
-
function Yd(e, r) {
|
|
1254
|
-
return e.indexOf("<", r);
|
|
1255
|
-
}
|
|
1256
|
-
});
|
|
1257
|
-
var Yo = x((Xv, Uo) => {
|
|
1258
|
-
"use strict";
|
|
1259
|
-
var Lo = se(), Gd = mr(), zd = pn();
|
|
1260
|
-
Uo.exports = Fn;
|
|
1261
|
-
Fn.locator = zd;
|
|
1262
|
-
Fn.notInLink = true;
|
|
1263
|
-
var Ro = "<", hn = ">", Mo = "@", dn = "/", mn = "mailto:", at = mn.length;
|
|
1264
|
-
function Fn(e, r, t) {
|
|
1265
|
-
var n = this, u = "", i = r.length, a = 0, o = "", s = false, f = "", c, l, D, m, p;
|
|
1266
|
-
if (r.charAt(0) === Ro) {
|
|
1267
|
-
for (a++, u = Ro; a < i && (c = r.charAt(a), !(Lo(c) || c === hn || c === Mo || c === ":" && r.charAt(a + 1) === dn)); ) o += c, a++;
|
|
1268
|
-
if (o) {
|
|
1269
|
-
if (f += o, o = "", c = r.charAt(a), f += c, a++, c === Mo) s = true;
|
|
1270
|
-
else {
|
|
1271
|
-
if (c !== ":" || r.charAt(a + 1) !== dn) return;
|
|
1272
|
-
f += dn, a++;
|
|
1273
|
-
}
|
|
1274
|
-
for (; a < i && (c = r.charAt(a), !(Lo(c) || c === hn)); ) o += c, a++;
|
|
1275
|
-
if (c = r.charAt(a), !(!o || c !== hn)) return t ? true : (f += o, D = f, u += f + c, l = e.now(), l.column++, l.offset++, s && (f.slice(0, at).toLowerCase() === mn ? (D = D.slice(at), l.column += at, l.offset += at) : f = mn + f), m = n.inlineTokenizers, n.inlineTokenizers = { text: m.text }, p = n.enterLink(), D = n.tokenizeInline(D, l), n.inlineTokenizers = m, p(), e(u)({ type: "link", title: null, url: Gd(f, { nonTerminated: false }), children: D }));
|
|
1276
|
-
}
|
|
1277
|
-
}
|
|
1278
|
-
}
|
|
1279
|
-
});
|
|
1280
|
-
var zo = x((Jv, Go) => {
|
|
1281
|
-
"use strict";
|
|
1282
|
-
Go.exports = Wd;
|
|
1283
|
-
function Wd(e, r) {
|
|
1284
|
-
var t = String(e), n = 0, u;
|
|
1285
|
-
if (typeof r != "string") throw new Error("Expected character");
|
|
1286
|
-
for (u = t.indexOf(r); u !== -1; ) n++, u = t.indexOf(r, u + r.length);
|
|
1287
|
-
return n;
|
|
1288
|
-
}
|
|
1289
|
-
});
|
|
1290
|
-
var jo = x((Qv, Vo) => {
|
|
1291
|
-
"use strict";
|
|
1292
|
-
Vo.exports = Vd;
|
|
1293
|
-
var Wo = ["www.", "http://", "https://"];
|
|
1294
|
-
function Vd(e, r) {
|
|
1295
|
-
var t = -1, n, u, i;
|
|
1296
|
-
if (!this.options.gfm) return t;
|
|
1297
|
-
for (u = Wo.length, n = -1; ++n < u; ) i = e.indexOf(Wo[n], r), i !== -1 && (t === -1 || i < t) && (t = i);
|
|
1298
|
-
return t;
|
|
1299
|
-
}
|
|
1300
|
-
});
|
|
1301
|
-
var Jo = x((Zv, Xo) => {
|
|
1302
|
-
"use strict";
|
|
1303
|
-
var $o = zo(), jd = mr(), $d = Se(), gn = $e(), Hd = se(), Kd = jo();
|
|
1304
|
-
Xo.exports = Cn;
|
|
1305
|
-
Cn.locator = Kd;
|
|
1306
|
-
Cn.notInLink = true;
|
|
1307
|
-
var Xd = 33, Jd = 38, Qd = 41, Zd = 42, e0 = 44, r0 = 45, En = 46, t0 = 58, n0 = 59, i0 = 63, u0 = 60, Ho = 95, a0 = 126, o0 = "(", Ko = ")";
|
|
1308
|
-
function Cn(e, r, t) {
|
|
1309
|
-
var n = this, u = n.options.gfm, i = n.inlineTokenizers, a = r.length, o = -1, s = false, f, c, l, D, m, p, h, F, g, E, v, A, b, d;
|
|
1310
|
-
if (u) {
|
|
1311
|
-
if (r.slice(0, 4) === "www.") s = true, D = 4;
|
|
1312
|
-
else if (r.slice(0, 7).toLowerCase() === "http://") D = 7;
|
|
1313
|
-
else if (r.slice(0, 8).toLowerCase() === "https://") D = 8;
|
|
1314
|
-
else return;
|
|
1315
|
-
for (o = D - 1, l = D, f = []; D < a; ) {
|
|
1316
|
-
if (h = r.charCodeAt(D), h === En) {
|
|
1317
|
-
if (o === D - 1) break;
|
|
1318
|
-
f.push(D), o = D, D++;
|
|
1319
|
-
continue;
|
|
1320
|
-
}
|
|
1321
|
-
if ($d(h) || gn(h) || h === r0 || h === Ho) {
|
|
1322
|
-
D++;
|
|
1323
|
-
continue;
|
|
1324
|
-
}
|
|
1325
|
-
break;
|
|
1326
|
-
}
|
|
1327
|
-
if (h === En && (f.pop(), D--), f[0] !== void 0 && (c = f.length < 2 ? l : f[f.length - 2] + 1, r.slice(c, D).indexOf("_") === -1)) {
|
|
1328
|
-
if (t) return true;
|
|
1329
|
-
for (F = D, m = D; D < a && (h = r.charCodeAt(D), !(Hd(h) || h === u0)); ) D++, h === Xd || h === Zd || h === e0 || h === En || h === t0 || h === i0 || h === Ho || h === a0 || (F = D);
|
|
1330
|
-
if (D = F, r.charCodeAt(D - 1) === Qd) for (p = r.slice(m, D), g = $o(p, o0), E = $o(p, Ko); E > g; ) D = m + p.lastIndexOf(Ko), p = r.slice(m, D), E--;
|
|
1331
|
-
if (r.charCodeAt(D - 1) === n0 && (D--, gn(r.charCodeAt(D - 1)))) {
|
|
1332
|
-
for (F = D - 2; gn(r.charCodeAt(F)); ) F--;
|
|
1333
|
-
r.charCodeAt(F) === Jd && (D = F);
|
|
1334
|
-
}
|
|
1335
|
-
return v = r.slice(0, D), b = jd(v, { nonTerminated: false }), s && (b = "http://" + b), d = n.enterLink(), n.inlineTokenizers = { text: i.text }, A = n.tokenizeInline(v, e.now()), n.inlineTokenizers = i, d(), e(v)({ type: "link", title: null, url: b, children: A });
|
|
1336
|
-
}
|
|
1337
|
-
}
|
|
1338
|
-
}
|
|
1339
|
-
});
|
|
1340
|
-
var rs = x((e2, es) => {
|
|
1341
|
-
"use strict";
|
|
1342
|
-
var s0 = Se(), c0 = $e(), l0 = 43, f0 = 45, D0 = 46, p0 = 95;
|
|
1343
|
-
es.exports = Zo;
|
|
1344
|
-
function Zo(e, r) {
|
|
1345
|
-
var t = this, n, u;
|
|
1346
|
-
if (!this.options.gfm || (n = e.indexOf("@", r), n === -1)) return -1;
|
|
1347
|
-
if (u = n, u === r || !Qo(e.charCodeAt(u - 1))) return Zo.call(t, e, n + 1);
|
|
1348
|
-
for (; u > r && Qo(e.charCodeAt(u - 1)); ) u--;
|
|
1349
|
-
return u;
|
|
1350
|
-
}
|
|
1351
|
-
function Qo(e) {
|
|
1352
|
-
return s0(e) || c0(e) || e === l0 || e === f0 || e === D0 || e === p0;
|
|
1353
|
-
}
|
|
1354
|
-
});
|
|
1355
|
-
var us = x((r2, is) => {
|
|
1356
|
-
"use strict";
|
|
1357
|
-
var h0 = mr(), ts = Se(), ns = $e(), d0 = rs();
|
|
1358
|
-
is.exports = bn;
|
|
1359
|
-
bn.locator = d0;
|
|
1360
|
-
bn.notInLink = true;
|
|
1361
|
-
var m0 = 43, vn = 45, ot = 46, F0 = 64, An = 95;
|
|
1362
|
-
function bn(e, r, t) {
|
|
1363
|
-
var n = this, u = n.options.gfm, i = n.inlineTokenizers, a = 0, o = r.length, s = -1, f, c, l, D;
|
|
1364
|
-
if (u) {
|
|
1365
|
-
for (f = r.charCodeAt(a); ts(f) || ns(f) || f === m0 || f === vn || f === ot || f === An; ) f = r.charCodeAt(++a);
|
|
1366
|
-
if (a !== 0 && f === F0) {
|
|
1367
|
-
for (a++; a < o; ) {
|
|
1368
|
-
if (f = r.charCodeAt(a), ts(f) || ns(f) || f === vn || f === ot || f === An) {
|
|
1369
|
-
a++, s === -1 && f === ot && (s = a);
|
|
1370
|
-
continue;
|
|
1371
|
-
}
|
|
1372
|
-
break;
|
|
1373
|
-
}
|
|
1374
|
-
if (!(s === -1 || s === a || f === vn || f === An)) return f === ot && a--, c = r.slice(0, a), t ? true : (D = n.enterLink(), n.inlineTokenizers = { text: i.text }, l = n.tokenizeInline(c, e.now()), n.inlineTokenizers = i, D(), e(c)({ type: "link", title: null, url: "mailto:" + h0(c, { nonTerminated: false }), children: l }));
|
|
1375
|
-
}
|
|
1376
|
-
}
|
|
1377
|
-
}
|
|
1378
|
-
});
|
|
1379
|
-
var ss = x((t2, os) => {
|
|
1380
|
-
"use strict";
|
|
1381
|
-
var g0 = $e(), E0 = pn(), C0 = sn().tag;
|
|
1382
|
-
os.exports = as;
|
|
1383
|
-
as.locator = E0;
|
|
1384
|
-
var v0 = "<", A0 = "?", b0 = "!", x0 = "/", y0 = /^<a /i, w0 = /^<\/a>/i;
|
|
1385
|
-
function as(e, r, t) {
|
|
1386
|
-
var n = this, u = r.length, i, a;
|
|
1387
|
-
if (!(r.charAt(0) !== v0 || u < 3) && (i = r.charAt(1), !(!g0(i) && i !== A0 && i !== b0 && i !== x0) && (a = r.match(C0), !!a))) return t ? true : (a = a[0], !n.inLink && y0.test(a) ? n.inLink = true : n.inLink && w0.test(a) && (n.inLink = false), e(a)({ type: "html", value: a }));
|
|
1388
|
-
}
|
|
1389
|
-
});
|
|
1390
|
-
var xn = x((n2, cs) => {
|
|
1391
|
-
"use strict";
|
|
1392
|
-
cs.exports = k0;
|
|
1393
|
-
function k0(e, r) {
|
|
1394
|
-
var t = e.indexOf("[", r), n = e.indexOf("![", r);
|
|
1395
|
-
return n === -1 || t < n ? t : n;
|
|
1396
|
-
}
|
|
1397
|
-
});
|
|
1398
|
-
var ms = x((i2, ds) => {
|
|
1399
|
-
"use strict";
|
|
1400
|
-
var br = se(), T0 = xn();
|
|
1401
|
-
ds.exports = hs;
|
|
1402
|
-
hs.locator = T0;
|
|
1403
|
-
var B0 = `
|
|
1404
|
-
`, _0 = "!", ls = '"', fs = "'", Ze = "(", xr = ")", yn = "<", wn = ">", Ds = "[", yr = "\\", O0 = "]", ps = "`";
|
|
1405
|
-
function hs(e, r, t) {
|
|
1406
|
-
var n = this, u = "", i = 0, a = r.charAt(0), o = n.options.pedantic, s = n.options.commonmark, f = n.options.gfm, c, l, D, m, p, h, F, g, E, v, A, b, d, y, w, C, k, T;
|
|
1407
|
-
if (a === _0 && (g = true, u = a, a = r.charAt(++i)), a === Ds && !(!g && n.inLink)) {
|
|
1408
|
-
for (u += a, y = "", i++, A = r.length, C = e.now(), d = 0, C.column += i, C.offset += i; i < A; ) {
|
|
1409
|
-
if (a = r.charAt(i), h = a, a === ps) {
|
|
1410
|
-
for (l = 1; r.charAt(i + 1) === ps; ) h += a, i++, l++;
|
|
1411
|
-
D ? l >= D && (D = 0) : D = l;
|
|
1412
|
-
} else if (a === yr) i++, h += r.charAt(i);
|
|
1413
|
-
else if ((!D || f) && a === Ds) d++;
|
|
1414
|
-
else if ((!D || f) && a === O0) if (d) d--;
|
|
1415
|
-
else {
|
|
1416
|
-
if (r.charAt(i + 1) !== Ze) return;
|
|
1417
|
-
h += Ze, c = true, i++;
|
|
1418
|
-
break;
|
|
1419
|
-
}
|
|
1420
|
-
y += h, h = "", i++;
|
|
1421
|
-
}
|
|
1422
|
-
if (c) {
|
|
1423
|
-
for (E = y, u += y + h, i++; i < A && (a = r.charAt(i), !!br(a)); ) u += a, i++;
|
|
1424
|
-
if (a = r.charAt(i), y = "", m = u, a === yn) {
|
|
1425
|
-
for (i++, m += yn; i < A && (a = r.charAt(i), a !== wn); ) {
|
|
1426
|
-
if (s && a === B0) return;
|
|
1427
|
-
y += a, i++;
|
|
1428
|
-
}
|
|
1429
|
-
if (r.charAt(i) !== wn) return;
|
|
1430
|
-
u += yn + y + wn, w = y, i++;
|
|
1431
|
-
} else {
|
|
1432
|
-
for (a = null, h = ""; i < A && (a = r.charAt(i), !(h && (a === ls || a === fs || s && a === Ze))); ) {
|
|
1433
|
-
if (br(a)) {
|
|
1434
|
-
if (!o) break;
|
|
1435
|
-
h += a;
|
|
1436
|
-
} else {
|
|
1437
|
-
if (a === Ze) d++;
|
|
1438
|
-
else if (a === xr) {
|
|
1439
|
-
if (d === 0) break;
|
|
1440
|
-
d--;
|
|
1441
|
-
}
|
|
1442
|
-
y += h, h = "", a === yr && (y += yr, a = r.charAt(++i)), y += a;
|
|
1443
|
-
}
|
|
1444
|
-
i++;
|
|
1445
|
-
}
|
|
1446
|
-
u += y, w = y, i = u.length;
|
|
1447
|
-
}
|
|
1448
|
-
for (y = ""; i < A && (a = r.charAt(i), !!br(a)); ) y += a, i++;
|
|
1449
|
-
if (a = r.charAt(i), u += y, y && (a === ls || a === fs || s && a === Ze)) if (i++, u += a, y = "", v = a === Ze ? xr : a, p = u, s) {
|
|
1450
|
-
for (; i < A && (a = r.charAt(i), a !== v); ) a === yr && (y += yr, a = r.charAt(++i)), i++, y += a;
|
|
1451
|
-
if (a = r.charAt(i), a !== v) return;
|
|
1452
|
-
for (b = y, u += y + a, i++; i < A && (a = r.charAt(i), !!br(a)); ) u += a, i++;
|
|
1453
|
-
} else for (h = ""; i < A; ) {
|
|
1454
|
-
if (a = r.charAt(i), a === v) F && (y += v + h, h = ""), F = true;
|
|
1455
|
-
else if (!F) y += a;
|
|
1456
|
-
else if (a === xr) {
|
|
1457
|
-
u += y + v + h, b = y;
|
|
1458
|
-
break;
|
|
1459
|
-
} else br(a) ? h += a : (y += v + h + a, h = "", F = false);
|
|
1460
|
-
i++;
|
|
1461
|
-
}
|
|
1462
|
-
if (r.charAt(i) === xr) return t ? true : (u += xr, w = n.decode.raw(n.unescape(w), e(m).test().end, { nonTerminated: false }), b && (p = e(p).test().end, b = n.decode.raw(n.unescape(b), p)), T = { type: g ? "image" : "link", title: b || null, url: w }, g ? T.alt = n.decode.raw(n.unescape(E), C) || null : (k = n.enterLink(), T.children = n.tokenizeInline(E, C), k()), e(u)(T));
|
|
1463
|
-
}
|
|
1464
|
-
}
|
|
1465
|
-
}
|
|
1466
|
-
});
|
|
1467
|
-
var Es = x((u2, gs) => {
|
|
1468
|
-
"use strict";
|
|
1469
|
-
var q0 = se(), N0 = xn(), P0 = cn();
|
|
1470
|
-
gs.exports = Fs;
|
|
1471
|
-
Fs.locator = N0;
|
|
1472
|
-
var kn = "link", I0 = "image", S0 = "shortcut", L0 = "collapsed", Tn = "full", R0 = "!", st = "[", ct = "\\", lt = "]";
|
|
1473
|
-
function Fs(e, r, t) {
|
|
1474
|
-
var n = this, u = n.options.commonmark, i = r.charAt(0), a = 0, o = r.length, s = "", f = "", c = kn, l = S0, D, m, p, h, F, g, E, v;
|
|
1475
|
-
if (i === R0 && (c = I0, f = i, i = r.charAt(++a)), i === st) {
|
|
1476
|
-
for (a++, f += i, g = "", v = 0; a < o; ) {
|
|
1477
|
-
if (i = r.charAt(a), i === st) E = true, v++;
|
|
1478
|
-
else if (i === lt) {
|
|
1479
|
-
if (!v) break;
|
|
1480
|
-
v--;
|
|
1481
|
-
}
|
|
1482
|
-
i === ct && (g += ct, i = r.charAt(++a)), g += i, a++;
|
|
1483
|
-
}
|
|
1484
|
-
if (s = g, D = g, i = r.charAt(a), i === lt) {
|
|
1485
|
-
if (a++, s += i, g = "", !u) for (; a < o && (i = r.charAt(a), !!q0(i)); ) g += i, a++;
|
|
1486
|
-
if (i = r.charAt(a), i === st) {
|
|
1487
|
-
for (m = "", g += i, a++; a < o && (i = r.charAt(a), !(i === st || i === lt)); ) i === ct && (m += ct, i = r.charAt(++a)), m += i, a++;
|
|
1488
|
-
i = r.charAt(a), i === lt ? (l = m ? Tn : L0, g += m + i, a++) : m = "", s += g, g = "";
|
|
1489
|
-
} else {
|
|
1490
|
-
if (!D) return;
|
|
1491
|
-
m = D;
|
|
1492
|
-
}
|
|
1493
|
-
if (!(l !== Tn && E)) return s = f + s, c === kn && n.inLink ? null : t ? true : (p = e.now(), p.column += f.length, p.offset += f.length, m = l === Tn ? m : D, h = { type: c + "Reference", identifier: P0(m), label: m, referenceType: l }, c === kn ? (F = n.enterLink(), h.children = n.tokenizeInline(D, p), F()) : h.alt = n.decode.raw(n.unescape(D), p) || null, e(s)(h));
|
|
1494
|
-
}
|
|
1495
|
-
}
|
|
1496
|
-
}
|
|
1497
|
-
});
|
|
1498
|
-
var vs = x((a2, Cs) => {
|
|
1499
|
-
"use strict";
|
|
1500
|
-
Cs.exports = M0;
|
|
1501
|
-
function M0(e, r) {
|
|
1502
|
-
var t = e.indexOf("**", r), n = e.indexOf("__", r);
|
|
1503
|
-
return n === -1 ? t : t === -1 || n < t ? n : t;
|
|
1504
|
-
}
|
|
1505
|
-
});
|
|
1506
|
-
var ys = x((o2, xs) => {
|
|
1507
|
-
"use strict";
|
|
1508
|
-
var U0 = Le(), As = se(), Y0 = vs();
|
|
1509
|
-
xs.exports = bs;
|
|
1510
|
-
bs.locator = Y0;
|
|
1511
|
-
var G0 = "\\", z0 = "*", W0 = "_";
|
|
1512
|
-
function bs(e, r, t) {
|
|
1513
|
-
var n = this, u = 0, i = r.charAt(u), a, o, s, f, c, l, D;
|
|
1514
|
-
if (!(i !== z0 && i !== W0 || r.charAt(++u) !== i) && (o = n.options.pedantic, s = i, c = s + s, l = r.length, u++, f = "", i = "", !(o && As(r.charAt(u))))) for (; u < l; ) {
|
|
1515
|
-
if (D = i, i = r.charAt(u), i === s && r.charAt(u + 1) === s && (!o || !As(D)) && (i = r.charAt(u + 2), i !== s)) return U0(f) ? t ? true : (a = e.now(), a.column += 2, a.offset += 2, e(c + f + c)({ type: "strong", children: n.tokenizeInline(f, a) })) : void 0;
|
|
1516
|
-
!o && i === G0 && (f += i, i = r.charAt(++u)), f += i, u++;
|
|
1517
|
-
}
|
|
1518
|
-
}
|
|
1519
|
-
});
|
|
1520
|
-
var ks = x((s2, ws) => {
|
|
1521
|
-
"use strict";
|
|
1522
|
-
ws.exports = $0;
|
|
1523
|
-
var V0 = String.fromCharCode, j0 = /\w/;
|
|
1524
|
-
function $0(e) {
|
|
1525
|
-
return j0.test(typeof e == "number" ? V0(e) : e.charAt(0));
|
|
1526
|
-
}
|
|
1527
|
-
});
|
|
1528
|
-
var Bs = x((c2, Ts) => {
|
|
1529
|
-
"use strict";
|
|
1530
|
-
Ts.exports = H0;
|
|
1531
|
-
function H0(e, r) {
|
|
1532
|
-
var t = e.indexOf("*", r), n = e.indexOf("_", r);
|
|
1533
|
-
return n === -1 ? t : t === -1 || n < t ? n : t;
|
|
1534
|
-
}
|
|
1535
|
-
});
|
|
1536
|
-
var Ps = x((l2, Ns) => {
|
|
1537
|
-
"use strict";
|
|
1538
|
-
var K0 = Le(), X0 = ks(), _s = se(), J0 = Bs();
|
|
1539
|
-
Ns.exports = qs;
|
|
1540
|
-
qs.locator = J0;
|
|
1541
|
-
var Q0 = "*", Os = "_", Z0 = "\\";
|
|
1542
|
-
function qs(e, r, t) {
|
|
1543
|
-
var n = this, u = 0, i = r.charAt(u), a, o, s, f, c, l, D;
|
|
1544
|
-
if (!(i !== Q0 && i !== Os) && (o = n.options.pedantic, c = i, s = i, l = r.length, u++, f = "", i = "", !(o && _s(r.charAt(u))))) for (; u < l; ) {
|
|
1545
|
-
if (D = i, i = r.charAt(u), i === s && (!o || !_s(D))) {
|
|
1546
|
-
if (i = r.charAt(++u), i !== s) {
|
|
1547
|
-
if (!K0(f) || D === s) return;
|
|
1548
|
-
if (!o && s === Os && X0(i)) {
|
|
1549
|
-
f += s;
|
|
1550
|
-
continue;
|
|
1551
|
-
}
|
|
1552
|
-
return t ? true : (a = e.now(), a.column++, a.offset++, e(c + f + s)({ type: "emphasis", children: n.tokenizeInline(f, a) }));
|
|
1553
|
-
}
|
|
1554
|
-
f += s;
|
|
1555
|
-
}
|
|
1556
|
-
!o && i === Z0 && (f += i, i = r.charAt(++u)), f += i, u++;
|
|
1557
|
-
}
|
|
1558
|
-
}
|
|
1559
|
-
});
|
|
1560
|
-
var Ss = x((f2, Is) => {
|
|
1561
|
-
"use strict";
|
|
1562
|
-
Is.exports = em;
|
|
1563
|
-
function em(e, r) {
|
|
1564
|
-
return e.indexOf("~~", r);
|
|
1565
|
-
}
|
|
1566
|
-
});
|
|
1567
|
-
var Ys = x((D2, Us) => {
|
|
1568
|
-
"use strict";
|
|
1569
|
-
var Ls = se(), rm = Ss();
|
|
1570
|
-
Us.exports = Ms;
|
|
1571
|
-
Ms.locator = rm;
|
|
1572
|
-
var ft = "~", Rs = "~~";
|
|
1573
|
-
function Ms(e, r, t) {
|
|
1574
|
-
var n = this, u = "", i = "", a = "", o = "", s, f, c;
|
|
1575
|
-
if (!(!n.options.gfm || r.charAt(0) !== ft || r.charAt(1) !== ft || Ls(r.charAt(2)))) for (s = 1, f = r.length, c = e.now(), c.column += 2, c.offset += 2; ++s < f; ) {
|
|
1576
|
-
if (u = r.charAt(s), u === ft && i === ft && (!a || !Ls(a))) return t ? true : e(Rs + o + Rs)({ type: "delete", children: n.tokenizeInline(o, c) });
|
|
1577
|
-
o += i, a = i, i = u;
|
|
1578
|
-
}
|
|
1579
|
-
}
|
|
1580
|
-
});
|
|
1581
|
-
var zs = x((p2, Gs) => {
|
|
1582
|
-
"use strict";
|
|
1583
|
-
Gs.exports = tm;
|
|
1584
|
-
function tm(e, r) {
|
|
1585
|
-
return e.indexOf("`", r);
|
|
1586
|
-
}
|
|
1587
|
-
});
|
|
1588
|
-
var js = x((h2, Vs) => {
|
|
1589
|
-
"use strict";
|
|
1590
|
-
var nm = zs();
|
|
1591
|
-
Vs.exports = Ws;
|
|
1592
|
-
Ws.locator = nm;
|
|
1593
|
-
var Bn = 10, _n = 32, On = 96;
|
|
1594
|
-
function Ws(e, r, t) {
|
|
1595
|
-
for (var n = r.length, u = 0, i, a, o, s, f, c; u < n && r.charCodeAt(u) === On; ) u++;
|
|
1596
|
-
if (!(u === 0 || u === n)) {
|
|
1597
|
-
for (i = u, f = r.charCodeAt(u); u < n; ) {
|
|
1598
|
-
if (s = f, f = r.charCodeAt(u + 1), s === On) {
|
|
1599
|
-
if (a === void 0 && (a = u), o = u + 1, f !== On && o - a === i) {
|
|
1600
|
-
c = true;
|
|
1601
|
-
break;
|
|
1602
|
-
}
|
|
1603
|
-
} else a !== void 0 && (a = void 0, o = void 0);
|
|
1604
|
-
u++;
|
|
1605
|
-
}
|
|
1606
|
-
if (c) {
|
|
1607
|
-
if (t) return true;
|
|
1608
|
-
if (u = i, n = a, s = r.charCodeAt(u), f = r.charCodeAt(n - 1), c = false, n - u > 2 && (s === _n || s === Bn) && (f === _n || f === Bn)) {
|
|
1609
|
-
for (u++, n--; u < n; ) {
|
|
1610
|
-
if (s = r.charCodeAt(u), s !== _n && s !== Bn) {
|
|
1611
|
-
c = true;
|
|
1612
|
-
break;
|
|
1613
|
-
}
|
|
1614
|
-
u++;
|
|
1615
|
-
}
|
|
1616
|
-
c === true && (i++, a--);
|
|
1617
|
-
}
|
|
1618
|
-
return e(r.slice(0, o))({ type: "inlineCode", value: r.slice(i, a) });
|
|
1619
|
-
}
|
|
1620
|
-
}
|
|
1621
|
-
}
|
|
1622
|
-
});
|
|
1623
|
-
var Hs = x((d2, $s) => {
|
|
1624
|
-
"use strict";
|
|
1625
|
-
$s.exports = im;
|
|
1626
|
-
function im(e, r) {
|
|
1627
|
-
for (var t = e.indexOf(`
|
|
1628
|
-
`, r); t > r && e.charAt(t - 1) === " "; ) t--;
|
|
1629
|
-
return t;
|
|
1630
|
-
}
|
|
1631
|
-
});
|
|
1632
|
-
var Js = x((m2, Xs) => {
|
|
1633
|
-
"use strict";
|
|
1634
|
-
var um = Hs();
|
|
1635
|
-
Xs.exports = Ks;
|
|
1636
|
-
Ks.locator = um;
|
|
1637
|
-
var am = " ", om = `
|
|
1638
|
-
`, sm = 2;
|
|
1639
|
-
function Ks(e, r, t) {
|
|
1640
|
-
for (var n = r.length, u = -1, i = "", a; ++u < n; ) {
|
|
1641
|
-
if (a = r.charAt(u), a === om) return u < sm ? void 0 : t ? true : (i += a, e(i)({ type: "break" }));
|
|
1642
|
-
if (a !== am) return;
|
|
1643
|
-
i += a;
|
|
1644
|
-
}
|
|
1645
|
-
}
|
|
1646
|
-
});
|
|
1647
|
-
var Zs = x((F2, Qs) => {
|
|
1648
|
-
"use strict";
|
|
1649
|
-
Qs.exports = cm;
|
|
1650
|
-
function cm(e, r, t) {
|
|
1651
|
-
var n = this, u, i, a, o, s, f, c, l, D, m;
|
|
1652
|
-
if (t) return true;
|
|
1653
|
-
for (u = n.inlineMethods, o = u.length, i = n.inlineTokenizers, a = -1, D = r.length; ++a < o; ) l = u[a], !(l === "text" || !i[l]) && (c = i[l].locator, c || e.file.fail("Missing locator: `" + l + "`"), f = c.call(n, r, 1), f !== -1 && f < D && (D = f));
|
|
1654
|
-
s = r.slice(0, D), m = e.now(), n.decode(s, m, p);
|
|
1655
|
-
function p(h, F, g) {
|
|
1656
|
-
e(g || h)({ type: "text", value: h });
|
|
1657
|
-
}
|
|
1658
|
-
}
|
|
1659
|
-
});
|
|
1660
|
-
var nc = x((g2, tc) => {
|
|
1661
|
-
"use strict";
|
|
1662
|
-
var lm = Ie(), Dt = Eu(), fm = vu(), Dm = bu(), pm = Ju(), qn = ea();
|
|
1663
|
-
tc.exports = ec;
|
|
1664
|
-
function ec(e, r) {
|
|
1665
|
-
this.file = r, this.offset = {}, this.options = lm(this.options), this.setOptions({}), this.inList = false, this.inBlock = false, this.inLink = false, this.atStart = true, this.toOffset = fm(r).toOffset, this.unescape = Dm(this, "escape"), this.decode = pm(this);
|
|
1666
|
-
}
|
|
1667
|
-
var Y = ec.prototype;
|
|
1668
|
-
Y.setOptions = sa();
|
|
1669
|
-
Y.parse = xa();
|
|
1670
|
-
Y.options = Ht();
|
|
1671
|
-
Y.exitStart = Dt("atStart", true);
|
|
1672
|
-
Y.enterList = Dt("inList", false);
|
|
1673
|
-
Y.enterLink = Dt("inLink", false);
|
|
1674
|
-
Y.enterBlock = Dt("inBlock", false);
|
|
1675
|
-
Y.interruptParagraph = [["thematicBreak"], ["list"], ["atxHeading"], ["fencedCode"], ["blockquote"], ["html"], ["setextHeading", { commonmark: false }], ["definition", { commonmark: false }]];
|
|
1676
|
-
Y.interruptList = [["atxHeading", { pedantic: false }], ["fencedCode", { pedantic: false }], ["thematicBreak", { pedantic: false }], ["definition", { commonmark: false }]];
|
|
1677
|
-
Y.interruptBlockquote = [["indentedCode", { commonmark: true }], ["fencedCode", { commonmark: true }], ["atxHeading", { commonmark: true }], ["setextHeading", { commonmark: true }], ["thematicBreak", { commonmark: true }], ["html", { commonmark: true }], ["list", { commonmark: true }], ["definition", { commonmark: false }]];
|
|
1678
|
-
Y.blockTokenizers = { blankLine: wa(), indentedCode: Oa(), fencedCode: Pa(), blockquote: Ua(), atxHeading: za(), thematicBreak: ja(), list: no(), setextHeading: oo(), html: po(), definition: bo(), table: wo(), paragraph: Bo() };
|
|
1679
|
-
Y.inlineTokenizers = { escape: Io(), autoLink: Yo(), url: Jo(), email: us(), html: ss(), link: ms(), reference: Es(), strong: ys(), emphasis: Ps(), deletion: Ys(), code: js(), break: Js(), text: Zs() };
|
|
1680
|
-
Y.blockMethods = rc(Y.blockTokenizers);
|
|
1681
|
-
Y.inlineMethods = rc(Y.inlineTokenizers);
|
|
1682
|
-
Y.tokenizeBlock = qn("block");
|
|
1683
|
-
Y.tokenizeInline = qn("inline");
|
|
1684
|
-
Y.tokenizeFactory = qn;
|
|
1685
|
-
function rc(e) {
|
|
1686
|
-
var r = [], t;
|
|
1687
|
-
for (t in e) r.push(t);
|
|
1688
|
-
return r;
|
|
1689
|
-
}
|
|
1690
|
-
});
|
|
1691
|
-
var oc = x((E2, ac) => {
|
|
1692
|
-
"use strict";
|
|
1693
|
-
var hm = Fu(), dm = Ie(), ic = nc();
|
|
1694
|
-
ac.exports = uc;
|
|
1695
|
-
uc.Parser = ic;
|
|
1696
|
-
function uc(e) {
|
|
1697
|
-
var r = this.data("settings"), t = hm(ic);
|
|
1698
|
-
t.prototype.options = dm(t.prototype.options, r, e), this.Parser = t;
|
|
1699
|
-
}
|
|
1700
|
-
});
|
|
1701
|
-
var cc = x((C2, sc) => {
|
|
1702
|
-
"use strict";
|
|
1703
|
-
sc.exports = mm;
|
|
1704
|
-
function mm(e) {
|
|
1705
|
-
if (e) throw e;
|
|
1706
|
-
}
|
|
1707
|
-
});
|
|
1708
|
-
var Nn = x((v2, lc) => {
|
|
1709
|
-
lc.exports = function(r) {
|
|
1710
|
-
return r != null && r.constructor != null && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r);
|
|
1711
|
-
};
|
|
1712
|
-
});
|
|
1713
|
-
var Ec = x((A2, gc) => {
|
|
1714
|
-
"use strict";
|
|
1715
|
-
var pt = Object.prototype.hasOwnProperty, Fc = Object.prototype.toString, fc = Object.defineProperty, Dc = Object.getOwnPropertyDescriptor, pc = function(r) {
|
|
1716
|
-
return typeof Array.isArray == "function" ? Array.isArray(r) : Fc.call(r) === "[object Array]";
|
|
1717
|
-
}, hc = function(r) {
|
|
1718
|
-
if (!r || Fc.call(r) !== "[object Object]") return false;
|
|
1719
|
-
var t = pt.call(r, "constructor"), n = r.constructor && r.constructor.prototype && pt.call(r.constructor.prototype, "isPrototypeOf");
|
|
1720
|
-
if (r.constructor && !t && !n) return false;
|
|
1721
|
-
var u;
|
|
1722
|
-
for (u in r) ;
|
|
1723
|
-
return typeof u > "u" || pt.call(r, u);
|
|
1724
|
-
}, dc = function(r, t) {
|
|
1725
|
-
fc && t.name === "__proto__" ? fc(r, t.name, { enumerable: true, configurable: true, value: t.newValue, writable: true }) : r[t.name] = t.newValue;
|
|
1726
|
-
}, mc = function(r, t) {
|
|
1727
|
-
if (t === "__proto__") if (pt.call(r, t)) {
|
|
1728
|
-
if (Dc) return Dc(r, t).value;
|
|
1729
|
-
} else return;
|
|
1730
|
-
return r[t];
|
|
1731
|
-
};
|
|
1732
|
-
gc.exports = function e() {
|
|
1733
|
-
var r, t, n, u, i, a, o = arguments[0], s = 1, f = arguments.length, c = false;
|
|
1734
|
-
for (typeof o == "boolean" && (c = o, o = arguments[1] || {}, s = 2), (o == null || typeof o != "object" && typeof o != "function") && (o = {}); s < f; ++s) if (r = arguments[s], r != null) for (t in r) n = mc(o, t), u = mc(r, t), o !== u && (c && u && (hc(u) || (i = pc(u))) ? (i ? (i = false, a = n && pc(n) ? n : []) : a = n && hc(n) ? n : {}, dc(o, { name: t, newValue: e(c, a, u) })) : typeof u < "u" && dc(o, { name: t, newValue: u }));
|
|
1735
|
-
return o;
|
|
1736
|
-
};
|
|
1737
|
-
});
|
|
1738
|
-
var vc = x((b2, Cc) => {
|
|
1739
|
-
"use strict";
|
|
1740
|
-
Cc.exports = (e) => {
|
|
1741
|
-
if (Object.prototype.toString.call(e) !== "[object Object]") return false;
|
|
1742
|
-
let r = Object.getPrototypeOf(e);
|
|
1743
|
-
return r === null || r === Object.prototype;
|
|
1744
|
-
};
|
|
1745
|
-
});
|
|
1746
|
-
var bc = x((x2, Ac) => {
|
|
1747
|
-
"use strict";
|
|
1748
|
-
var Fm = [].slice;
|
|
1749
|
-
Ac.exports = gm;
|
|
1750
|
-
function gm(e, r) {
|
|
1751
|
-
var t;
|
|
1752
|
-
return n;
|
|
1753
|
-
function n() {
|
|
1754
|
-
var a = Fm.call(arguments, 0), o = e.length > a.length, s;
|
|
1755
|
-
o && a.push(u);
|
|
1756
|
-
try {
|
|
1757
|
-
s = e.apply(null, a);
|
|
1758
|
-
} catch (f) {
|
|
1759
|
-
if (o && t) throw f;
|
|
1760
|
-
return u(f);
|
|
1761
|
-
}
|
|
1762
|
-
o || (s && typeof s.then == "function" ? s.then(i, u) : s instanceof Error ? u(s) : i(s));
|
|
1763
|
-
}
|
|
1764
|
-
function u() {
|
|
1765
|
-
t || (t = true, r.apply(null, arguments));
|
|
1766
|
-
}
|
|
1767
|
-
function i(a) {
|
|
1768
|
-
u(null, a);
|
|
1769
|
-
}
|
|
1770
|
-
}
|
|
1771
|
-
});
|
|
1772
|
-
var Tc = x((y2, kc) => {
|
|
1773
|
-
"use strict";
|
|
1774
|
-
var yc = bc();
|
|
1775
|
-
kc.exports = wc;
|
|
1776
|
-
wc.wrap = yc;
|
|
1777
|
-
var xc = [].slice;
|
|
1778
|
-
function wc() {
|
|
1779
|
-
var e = [], r = {};
|
|
1780
|
-
return r.run = t, r.use = n, r;
|
|
1781
|
-
function t() {
|
|
1782
|
-
var u = -1, i = xc.call(arguments, 0, -1), a = arguments[arguments.length - 1];
|
|
1783
|
-
if (typeof a != "function") throw new Error("Expected function as last argument, not " + a);
|
|
1784
|
-
o.apply(null, [null].concat(i));
|
|
1785
|
-
function o(s) {
|
|
1786
|
-
var f = e[++u], c = xc.call(arguments, 0), l = c.slice(1), D = i.length, m = -1;
|
|
1787
|
-
if (s) {
|
|
1788
|
-
a(s);
|
|
1789
|
-
return;
|
|
1790
|
-
}
|
|
1791
|
-
for (; ++m < D; ) (l[m] === null || l[m] === void 0) && (l[m] = i[m]);
|
|
1792
|
-
i = l, f ? yc(f, o).apply(null, i) : a.apply(null, [null].concat(i));
|
|
1793
|
-
}
|
|
1794
|
-
}
|
|
1795
|
-
function n(u) {
|
|
1796
|
-
if (typeof u != "function") throw new Error("Expected `fn` to be a function, not " + u);
|
|
1797
|
-
return e.push(u), r;
|
|
1798
|
-
}
|
|
1799
|
-
}
|
|
1800
|
-
});
|
|
1801
|
-
var qc = x((w2, Oc) => {
|
|
1802
|
-
"use strict";
|
|
1803
|
-
var er = {}.hasOwnProperty;
|
|
1804
|
-
Oc.exports = Em;
|
|
1805
|
-
function Em(e) {
|
|
1806
|
-
return !e || typeof e != "object" ? "" : er.call(e, "position") || er.call(e, "type") ? Bc(e.position) : er.call(e, "start") || er.call(e, "end") ? Bc(e) : er.call(e, "line") || er.call(e, "column") ? Pn(e) : "";
|
|
1807
|
-
}
|
|
1808
|
-
function Pn(e) {
|
|
1809
|
-
return (!e || typeof e != "object") && (e = {}), _c(e.line) + ":" + _c(e.column);
|
|
1810
|
-
}
|
|
1811
|
-
function Bc(e) {
|
|
1812
|
-
return (!e || typeof e != "object") && (e = {}), Pn(e.start) + "-" + Pn(e.end);
|
|
1813
|
-
}
|
|
1814
|
-
function _c(e) {
|
|
1815
|
-
return e && typeof e == "number" ? e : 1;
|
|
1816
|
-
}
|
|
1817
|
-
});
|
|
1818
|
-
var Ic = x((k2, Pc) => {
|
|
1819
|
-
"use strict";
|
|
1820
|
-
var Cm = qc();
|
|
1821
|
-
Pc.exports = In;
|
|
1822
|
-
function Nc() {
|
|
1823
|
-
}
|
|
1824
|
-
Nc.prototype = Error.prototype;
|
|
1825
|
-
In.prototype = new Nc();
|
|
1826
|
-
var Te = In.prototype;
|
|
1827
|
-
Te.file = "";
|
|
1828
|
-
Te.name = "";
|
|
1829
|
-
Te.reason = "";
|
|
1830
|
-
Te.message = "";
|
|
1831
|
-
Te.stack = "";
|
|
1832
|
-
Te.fatal = null;
|
|
1833
|
-
Te.column = null;
|
|
1834
|
-
Te.line = null;
|
|
1835
|
-
function In(e, r, t) {
|
|
1836
|
-
var n, u, i;
|
|
1837
|
-
typeof r == "string" && (t = r, r = null), n = vm(t), u = Cm(r) || "1:1", i = { start: { line: null, column: null }, end: { line: null, column: null } }, r && r.position && (r = r.position), r && (r.start ? (i = r, r = r.start) : i.start = r), e.stack && (this.stack = e.stack, e = e.message), this.message = e, this.name = u, this.reason = e, this.line = r ? r.line : null, this.column = r ? r.column : null, this.location = i, this.source = n[0], this.ruleId = n[1];
|
|
1838
|
-
}
|
|
1839
|
-
function vm(e) {
|
|
1840
|
-
var r = [null, null], t;
|
|
1841
|
-
return typeof e == "string" && (t = e.indexOf(":"), t === -1 ? r[1] = e : (r[0] = e.slice(0, t), r[1] = e.slice(t + 1))), r;
|
|
1842
|
-
}
|
|
1843
|
-
});
|
|
1844
|
-
var Sc = x((rr) => {
|
|
1845
|
-
"use strict";
|
|
1846
|
-
rr.basename = Am;
|
|
1847
|
-
rr.dirname = bm;
|
|
1848
|
-
rr.extname = xm;
|
|
1849
|
-
rr.join = ym;
|
|
1850
|
-
rr.sep = "/";
|
|
1851
|
-
function Am(e, r) {
|
|
1852
|
-
var t = 0, n = -1, u, i, a, o;
|
|
1853
|
-
if (r !== void 0 && typeof r != "string") throw new TypeError('"ext" argument must be a string');
|
|
1854
|
-
if (wr(e), u = e.length, r === void 0 || !r.length || r.length > e.length) {
|
|
1855
|
-
for (; u--; ) if (e.charCodeAt(u) === 47) {
|
|
1856
|
-
if (a) {
|
|
1857
|
-
t = u + 1;
|
|
1858
|
-
break;
|
|
1859
|
-
}
|
|
1860
|
-
} else n < 0 && (a = true, n = u + 1);
|
|
1861
|
-
return n < 0 ? "" : e.slice(t, n);
|
|
1862
|
-
}
|
|
1863
|
-
if (r === e) return "";
|
|
1864
|
-
for (i = -1, o = r.length - 1; u--; ) if (e.charCodeAt(u) === 47) {
|
|
1865
|
-
if (a) {
|
|
1866
|
-
t = u + 1;
|
|
1867
|
-
break;
|
|
1868
|
-
}
|
|
1869
|
-
} else i < 0 && (a = true, i = u + 1), o > -1 && (e.charCodeAt(u) === r.charCodeAt(o--) ? o < 0 && (n = u) : (o = -1, n = i));
|
|
1870
|
-
return t === n ? n = i : n < 0 && (n = e.length), e.slice(t, n);
|
|
1871
|
-
}
|
|
1872
|
-
function bm(e) {
|
|
1873
|
-
var r, t, n;
|
|
1874
|
-
if (wr(e), !e.length) return ".";
|
|
1875
|
-
for (r = -1, n = e.length; --n; ) if (e.charCodeAt(n) === 47) {
|
|
1876
|
-
if (t) {
|
|
1877
|
-
r = n;
|
|
1878
|
-
break;
|
|
1879
|
-
}
|
|
1880
|
-
} else t || (t = true);
|
|
1881
|
-
return r < 0 ? e.charCodeAt(0) === 47 ? "/" : "." : r === 1 && e.charCodeAt(0) === 47 ? "//" : e.slice(0, r);
|
|
1882
|
-
}
|
|
1883
|
-
function xm(e) {
|
|
1884
|
-
var r = -1, t = 0, n = -1, u = 0, i, a, o;
|
|
1885
|
-
for (wr(e), o = e.length; o--; ) {
|
|
1886
|
-
if (a = e.charCodeAt(o), a === 47) {
|
|
1887
|
-
if (i) {
|
|
1888
|
-
t = o + 1;
|
|
1889
|
-
break;
|
|
1890
|
-
}
|
|
1891
|
-
continue;
|
|
1892
|
-
}
|
|
1893
|
-
n < 0 && (i = true, n = o + 1), a === 46 ? r < 0 ? r = o : u !== 1 && (u = 1) : r > -1 && (u = -1);
|
|
1894
|
-
}
|
|
1895
|
-
return r < 0 || n < 0 || u === 0 || u === 1 && r === n - 1 && r === t + 1 ? "" : e.slice(r, n);
|
|
1896
|
-
}
|
|
1897
|
-
function ym() {
|
|
1898
|
-
for (var e = -1, r; ++e < arguments.length; ) wr(arguments[e]), arguments[e] && (r = r === void 0 ? arguments[e] : r + "/" + arguments[e]);
|
|
1899
|
-
return r === void 0 ? "." : wm(r);
|
|
1900
|
-
}
|
|
1901
|
-
function wm(e) {
|
|
1902
|
-
var r, t;
|
|
1903
|
-
return wr(e), r = e.charCodeAt(0) === 47, t = km(e, !r), !t.length && !r && (t = "."), t.length && e.charCodeAt(e.length - 1) === 47 && (t += "/"), r ? "/" + t : t;
|
|
1904
|
-
}
|
|
1905
|
-
function km(e, r) {
|
|
1906
|
-
for (var t = "", n = 0, u = -1, i = 0, a = -1, o, s; ++a <= e.length; ) {
|
|
1907
|
-
if (a < e.length) o = e.charCodeAt(a);
|
|
1908
|
-
else {
|
|
1909
|
-
if (o === 47) break;
|
|
1910
|
-
o = 47;
|
|
1911
|
-
}
|
|
1912
|
-
if (o === 47) {
|
|
1913
|
-
if (!(u === a - 1 || i === 1)) if (u !== a - 1 && i === 2) {
|
|
1914
|
-
if (t.length < 2 || n !== 2 || t.charCodeAt(t.length - 1) !== 46 || t.charCodeAt(t.length - 2) !== 46) {
|
|
1915
|
-
if (t.length > 2) {
|
|
1916
|
-
if (s = t.lastIndexOf("/"), s !== t.length - 1) {
|
|
1917
|
-
s < 0 ? (t = "", n = 0) : (t = t.slice(0, s), n = t.length - 1 - t.lastIndexOf("/")), u = a, i = 0;
|
|
1918
|
-
continue;
|
|
1919
|
-
}
|
|
1920
|
-
} else if (t.length) {
|
|
1921
|
-
t = "", n = 0, u = a, i = 0;
|
|
1922
|
-
continue;
|
|
1923
|
-
}
|
|
1924
|
-
}
|
|
1925
|
-
r && (t = t.length ? t + "/.." : "..", n = 2);
|
|
1926
|
-
} else t.length ? t += "/" + e.slice(u + 1, a) : t = e.slice(u + 1, a), n = a - u - 1;
|
|
1927
|
-
u = a, i = 0;
|
|
1928
|
-
} else o === 46 && i > -1 ? i++ : i = -1;
|
|
1929
|
-
}
|
|
1930
|
-
return t;
|
|
1931
|
-
}
|
|
1932
|
-
function wr(e) {
|
|
1933
|
-
if (typeof e != "string") throw new TypeError("Path must be a string. Received " + JSON.stringify(e));
|
|
1934
|
-
}
|
|
1935
|
-
});
|
|
1936
|
-
var Rc = x((Lc) => {
|
|
1937
|
-
"use strict";
|
|
1938
|
-
Lc.cwd = Tm;
|
|
1939
|
-
function Tm() {
|
|
1940
|
-
return "/";
|
|
1941
|
-
}
|
|
1942
|
-
});
|
|
1943
|
-
var Yc = x((_2, Uc) => {
|
|
1944
|
-
"use strict";
|
|
1945
|
-
var ce = Sc(), Bm = Rc(), _m = Nn();
|
|
1946
|
-
Uc.exports = Ce;
|
|
1947
|
-
var Om = {}.hasOwnProperty, Sn = ["history", "path", "basename", "stem", "extname", "dirname"];
|
|
1948
|
-
Ce.prototype.toString = Gm;
|
|
1949
|
-
Object.defineProperty(Ce.prototype, "path", { get: qm, set: Nm });
|
|
1950
|
-
Object.defineProperty(Ce.prototype, "dirname", { get: Pm, set: Im });
|
|
1951
|
-
Object.defineProperty(Ce.prototype, "basename", { get: Sm, set: Lm });
|
|
1952
|
-
Object.defineProperty(Ce.prototype, "extname", { get: Rm, set: Mm });
|
|
1953
|
-
Object.defineProperty(Ce.prototype, "stem", { get: Um, set: Ym });
|
|
1954
|
-
function Ce(e) {
|
|
1955
|
-
var r, t;
|
|
1956
|
-
if (!e) e = {};
|
|
1957
|
-
else if (typeof e == "string" || _m(e)) e = { contents: e };
|
|
1958
|
-
else if ("message" in e && "messages" in e) return e;
|
|
1959
|
-
if (!(this instanceof Ce)) return new Ce(e);
|
|
1960
|
-
for (this.data = {}, this.messages = [], this.history = [], this.cwd = Bm.cwd(), t = -1; ++t < Sn.length; ) r = Sn[t], Om.call(e, r) && (this[r] = e[r]);
|
|
1961
|
-
for (r in e) Sn.indexOf(r) < 0 && (this[r] = e[r]);
|
|
1962
|
-
}
|
|
1963
|
-
function qm() {
|
|
1964
|
-
return this.history[this.history.length - 1];
|
|
1965
|
-
}
|
|
1966
|
-
function Nm(e) {
|
|
1967
|
-
Rn(e, "path"), this.path !== e && this.history.push(e);
|
|
1968
|
-
}
|
|
1969
|
-
function Pm() {
|
|
1970
|
-
return typeof this.path == "string" ? ce.dirname(this.path) : void 0;
|
|
1971
|
-
}
|
|
1972
|
-
function Im(e) {
|
|
1973
|
-
Mc(this.path, "dirname"), this.path = ce.join(e || "", this.basename);
|
|
1974
|
-
}
|
|
1975
|
-
function Sm() {
|
|
1976
|
-
return typeof this.path == "string" ? ce.basename(this.path) : void 0;
|
|
1977
|
-
}
|
|
1978
|
-
function Lm(e) {
|
|
1979
|
-
Rn(e, "basename"), Ln(e, "basename"), this.path = ce.join(this.dirname || "", e);
|
|
1980
|
-
}
|
|
1981
|
-
function Rm() {
|
|
1982
|
-
return typeof this.path == "string" ? ce.extname(this.path) : void 0;
|
|
1983
|
-
}
|
|
1984
|
-
function Mm(e) {
|
|
1985
|
-
if (Ln(e, "extname"), Mc(this.path, "extname"), e) {
|
|
1986
|
-
if (e.charCodeAt(0) !== 46) throw new Error("`extname` must start with `.`");
|
|
1987
|
-
if (e.indexOf(".", 1) > -1) throw new Error("`extname` cannot contain multiple dots");
|
|
1988
|
-
}
|
|
1989
|
-
this.path = ce.join(this.dirname, this.stem + (e || ""));
|
|
1990
|
-
}
|
|
1991
|
-
function Um() {
|
|
1992
|
-
return typeof this.path == "string" ? ce.basename(this.path, this.extname) : void 0;
|
|
1993
|
-
}
|
|
1994
|
-
function Ym(e) {
|
|
1995
|
-
Rn(e, "stem"), Ln(e, "stem"), this.path = ce.join(this.dirname || "", e + (this.extname || ""));
|
|
1996
|
-
}
|
|
1997
|
-
function Gm(e) {
|
|
1998
|
-
return (this.contents || "").toString(e);
|
|
1999
|
-
}
|
|
2000
|
-
function Ln(e, r) {
|
|
2001
|
-
if (e && e.indexOf(ce.sep) > -1) throw new Error("`" + r + "` cannot be a path: did not expect `" + ce.sep + "`");
|
|
2002
|
-
}
|
|
2003
|
-
function Rn(e, r) {
|
|
2004
|
-
if (!e) throw new Error("`" + r + "` cannot be empty");
|
|
2005
|
-
}
|
|
2006
|
-
function Mc(e, r) {
|
|
2007
|
-
if (!e) throw new Error("Setting `" + r + "` requires `path` to be set too");
|
|
2008
|
-
}
|
|
2009
|
-
});
|
|
2010
|
-
var zc = x((O2, Gc) => {
|
|
2011
|
-
"use strict";
|
|
2012
|
-
var zm = Ic(), ht = Yc();
|
|
2013
|
-
Gc.exports = ht;
|
|
2014
|
-
ht.prototype.message = Wm;
|
|
2015
|
-
ht.prototype.info = jm;
|
|
2016
|
-
ht.prototype.fail = Vm;
|
|
2017
|
-
function Wm(e, r, t) {
|
|
2018
|
-
var n = new zm(e, r, t);
|
|
2019
|
-
return this.path && (n.name = this.path + ":" + n.name, n.file = this.path), n.fatal = false, this.messages.push(n), n;
|
|
2020
|
-
}
|
|
2021
|
-
function Vm() {
|
|
2022
|
-
var e = this.message.apply(this, arguments);
|
|
2023
|
-
throw e.fatal = true, e;
|
|
2024
|
-
}
|
|
2025
|
-
function jm() {
|
|
2026
|
-
var e = this.message.apply(this, arguments);
|
|
2027
|
-
return e.fatal = null, e;
|
|
2028
|
-
}
|
|
2029
|
-
});
|
|
2030
|
-
var Vc = x((q2, Wc) => {
|
|
2031
|
-
"use strict";
|
|
2032
|
-
Wc.exports = zc();
|
|
2033
|
-
});
|
|
2034
|
-
var el = x((N2, Zc) => {
|
|
2035
|
-
"use strict";
|
|
2036
|
-
var jc = cc(), $m = Nn(), dt = Ec(), $c = vc(), Jc = Tc(), kr = Vc();
|
|
2037
|
-
Zc.exports = Qc().freeze();
|
|
2038
|
-
var Hm = [].slice, Km = {}.hasOwnProperty, Xm = Jc().use(Jm).use(Qm).use(Zm);
|
|
2039
|
-
function Jm(e, r) {
|
|
2040
|
-
r.tree = e.parse(r.file);
|
|
2041
|
-
}
|
|
2042
|
-
function Qm(e, r, t) {
|
|
2043
|
-
e.run(r.tree, r.file, n);
|
|
2044
|
-
function n(u, i, a) {
|
|
2045
|
-
u ? t(u) : (r.tree = i, r.file = a, t());
|
|
2046
|
-
}
|
|
2047
|
-
}
|
|
2048
|
-
function Zm(e, r) {
|
|
2049
|
-
var t = e.stringify(r.tree, r.file);
|
|
2050
|
-
t == null || (typeof t == "string" || $m(t) ? ("value" in r.file && (r.file.value = t), r.file.contents = t) : r.file.result = t);
|
|
2051
|
-
}
|
|
2052
|
-
function Qc() {
|
|
2053
|
-
var e = [], r = Jc(), t = {}, n = -1, u;
|
|
2054
|
-
return i.data = o, i.freeze = a, i.attachers = e, i.use = s, i.parse = c, i.stringify = m, i.run = l, i.runSync = D, i.process = p, i.processSync = h, i;
|
|
2055
|
-
function i() {
|
|
2056
|
-
for (var F = Qc(), g = -1; ++g < e.length; ) F.use.apply(null, e[g]);
|
|
2057
|
-
return F.data(dt(true, {}, t)), F;
|
|
2058
|
-
}
|
|
2059
|
-
function a() {
|
|
2060
|
-
var F, g;
|
|
2061
|
-
if (u) return i;
|
|
2062
|
-
for (; ++n < e.length; ) F = e[n], F[1] !== false && (F[1] === true && (F[1] = void 0), g = F[0].apply(i, F.slice(1)), typeof g == "function" && r.use(g));
|
|
2063
|
-
return u = true, n = 1 / 0, i;
|
|
2064
|
-
}
|
|
2065
|
-
function o(F, g) {
|
|
2066
|
-
return typeof F == "string" ? arguments.length === 2 ? (Yn("data", u), t[F] = g, i) : Km.call(t, F) && t[F] || null : F ? (Yn("data", u), t = F, i) : t;
|
|
2067
|
-
}
|
|
2068
|
-
function s(F) {
|
|
2069
|
-
var g;
|
|
2070
|
-
if (Yn("use", u), F != null) if (typeof F == "function") b.apply(null, arguments);
|
|
2071
|
-
else if (typeof F == "object") "length" in F ? A(F) : E(F);
|
|
2072
|
-
else throw new Error("Expected usable value, not `" + F + "`");
|
|
2073
|
-
return g && (t.settings = dt(t.settings || {}, g)), i;
|
|
2074
|
-
function E(d) {
|
|
2075
|
-
A(d.plugins), d.settings && (g = dt(g || {}, d.settings));
|
|
2076
|
-
}
|
|
2077
|
-
function v(d) {
|
|
2078
|
-
if (typeof d == "function") b(d);
|
|
2079
|
-
else if (typeof d == "object") "length" in d ? b.apply(null, d) : E(d);
|
|
2080
|
-
else throw new Error("Expected usable value, not `" + d + "`");
|
|
2081
|
-
}
|
|
2082
|
-
function A(d) {
|
|
2083
|
-
var y = -1;
|
|
2084
|
-
if (d != null) if (typeof d == "object" && "length" in d) for (; ++y < d.length; ) v(d[y]);
|
|
2085
|
-
else throw new Error("Expected a list of plugins, not `" + d + "`");
|
|
2086
|
-
}
|
|
2087
|
-
function b(d, y) {
|
|
2088
|
-
var w = f(d);
|
|
2089
|
-
w ? ($c(w[1]) && $c(y) && (y = dt(true, w[1], y)), w[1] = y) : e.push(Hm.call(arguments));
|
|
2090
|
-
}
|
|
2091
|
-
}
|
|
2092
|
-
function f(F) {
|
|
2093
|
-
for (var g = -1; ++g < e.length; ) if (e[g][0] === F) return e[g];
|
|
2094
|
-
}
|
|
2095
|
-
function c(F) {
|
|
2096
|
-
var g = kr(F), E;
|
|
2097
|
-
return a(), E = i.Parser, Mn("parse", E), Hc(E, "parse") ? new E(String(g), g).parse() : E(String(g), g);
|
|
2098
|
-
}
|
|
2099
|
-
function l(F, g, E) {
|
|
2100
|
-
if (Kc(F), a(), !E && typeof g == "function" && (E = g, g = null), !E) return new Promise(v);
|
|
2101
|
-
v(null, E);
|
|
2102
|
-
function v(A, b) {
|
|
2103
|
-
r.run(F, kr(g), d);
|
|
2104
|
-
function d(y, w, C) {
|
|
2105
|
-
w = w || F, y ? b(y) : A ? A(w) : E(null, w, C);
|
|
2106
|
-
}
|
|
2107
|
-
}
|
|
2108
|
-
}
|
|
2109
|
-
function D(F, g) {
|
|
2110
|
-
var E, v;
|
|
2111
|
-
return l(F, g, A), Xc("runSync", "run", v), E;
|
|
2112
|
-
function A(b, d) {
|
|
2113
|
-
v = true, E = d, jc(b);
|
|
2114
|
-
}
|
|
2115
|
-
}
|
|
2116
|
-
function m(F, g) {
|
|
2117
|
-
var E = kr(g), v;
|
|
2118
|
-
return a(), v = i.Compiler, Un("stringify", v), Kc(F), Hc(v, "compile") ? new v(F, E).compile() : v(F, E);
|
|
2119
|
-
}
|
|
2120
|
-
function p(F, g) {
|
|
2121
|
-
if (a(), Mn("process", i.Parser), Un("process", i.Compiler), !g) return new Promise(E);
|
|
2122
|
-
E(null, g);
|
|
2123
|
-
function E(v, A) {
|
|
2124
|
-
var b = kr(F);
|
|
2125
|
-
Xm.run(i, { file: b }, d);
|
|
2126
|
-
function d(y) {
|
|
2127
|
-
y ? A(y) : v ? v(b) : g(null, b);
|
|
2128
|
-
}
|
|
2129
|
-
}
|
|
2130
|
-
}
|
|
2131
|
-
function h(F) {
|
|
2132
|
-
var g, E;
|
|
2133
|
-
return a(), Mn("processSync", i.Parser), Un("processSync", i.Compiler), g = kr(F), p(g, v), Xc("processSync", "process", E), g;
|
|
2134
|
-
function v(A) {
|
|
2135
|
-
E = true, jc(A);
|
|
2136
|
-
}
|
|
2137
|
-
}
|
|
2138
|
-
}
|
|
2139
|
-
function Hc(e, r) {
|
|
2140
|
-
return typeof e == "function" && e.prototype && (eF(e.prototype) || r in e.prototype);
|
|
2141
|
-
}
|
|
2142
|
-
function eF(e) {
|
|
2143
|
-
var r;
|
|
2144
|
-
for (r in e) return true;
|
|
2145
|
-
return false;
|
|
2146
|
-
}
|
|
2147
|
-
function Mn(e, r) {
|
|
2148
|
-
if (typeof r != "function") throw new Error("Cannot `" + e + "` without `Parser`");
|
|
2149
|
-
}
|
|
2150
|
-
function Un(e, r) {
|
|
2151
|
-
if (typeof r != "function") throw new Error("Cannot `" + e + "` without `Compiler`");
|
|
2152
|
-
}
|
|
2153
|
-
function Yn(e, r) {
|
|
2154
|
-
if (r) throw new Error("Cannot invoke `" + e + "` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.");
|
|
2155
|
-
}
|
|
2156
|
-
function Kc(e) {
|
|
2157
|
-
if (!e || typeof e.type != "string") throw new Error("Expected node, got `" + e + "`");
|
|
2158
|
-
}
|
|
2159
|
-
function Xc(e, r, t) {
|
|
2160
|
-
if (!t) throw new Error("`" + e + "` finished async. Use `" + r + "` instead");
|
|
2161
|
-
}
|
|
2162
|
-
});
|
|
2163
|
-
var gl = {};
|
|
2164
|
-
Wn(gl, { languages: () => Ki, options: () => Xi, parsers: () => zn, printers: () => fF });
|
|
2165
|
-
var Me = (e, r) => (t, n, ...u) => t | 1 && n == null ? void 0 : (r.call(n) ?? n[e]).apply(n, u);
|
|
2166
|
-
function yl(e) {
|
|
2167
|
-
return this[e < 0 ? this.length + e : e];
|
|
2168
|
-
}
|
|
2169
|
-
var wl = Me("at", function() {
|
|
2170
|
-
if (Array.isArray(this) || typeof this == "string") return yl;
|
|
2171
|
-
});
|
|
2172
|
-
var U = wl;
|
|
2173
|
-
var kl = String.prototype.replaceAll ?? function(e, r) {
|
|
2174
|
-
return e.global ? this.replace(e, r) : this.split(e).join(r);
|
|
2175
|
-
};
|
|
2176
|
-
var Tl = Me("replaceAll", function() {
|
|
2177
|
-
if (typeof this == "string") return kl;
|
|
2178
|
-
});
|
|
2179
|
-
var R = Tl;
|
|
2180
|
-
var $i = Re(Tr(), 1);
|
|
2181
|
-
function fe(e) {
|
|
2182
|
-
if (typeof e != "string") throw new TypeError("Expected a string");
|
|
2183
|
-
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
2184
|
-
}
|
|
2185
|
-
var _l = () => {
|
|
2186
|
-
};
|
|
2187
|
-
var tr = _l;
|
|
2188
|
-
var V = "string";
|
|
2189
|
-
var j = "array";
|
|
2190
|
-
var be = "cursor";
|
|
2191
|
-
var ee = "indent";
|
|
2192
|
-
var re = "align";
|
|
2193
|
-
var De = "trim";
|
|
2194
|
-
var X = "group";
|
|
2195
|
-
var J = "fill";
|
|
2196
|
-
var Q = "if-break";
|
|
2197
|
-
var pe = "indent-if-break";
|
|
2198
|
-
var he = "line-suffix";
|
|
2199
|
-
var de = "line-suffix-boundary";
|
|
2200
|
-
var $ = "line";
|
|
2201
|
-
var me = "label";
|
|
2202
|
-
var te = "break-parent";
|
|
2203
|
-
var Br = /* @__PURE__ */ new Set([be, ee, re, De, X, J, Q, pe, he, de, $, me, te]);
|
|
2204
|
-
function Ol(e) {
|
|
2205
|
-
if (typeof e == "string") return V;
|
|
2206
|
-
if (Array.isArray(e)) return j;
|
|
2207
|
-
if (!e) return;
|
|
2208
|
-
let { type: r } = e;
|
|
2209
|
-
if (Br.has(r)) return r;
|
|
2210
|
-
}
|
|
2211
|
-
var W = Ol;
|
|
2212
|
-
var ql = (e) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(e);
|
|
2213
|
-
function Nl(e) {
|
|
2214
|
-
let r = e === null ? "null" : typeof e;
|
|
2215
|
-
if (r !== "string" && r !== "object") return `Unexpected doc '${r}',
|
|
2216
|
-
Expected it to be 'string' or 'object'.`;
|
|
2217
|
-
if (W(e)) throw new Error("doc is valid.");
|
|
2218
|
-
let t = Object.prototype.toString.call(e);
|
|
2219
|
-
if (t !== "[object Object]") return `Unexpected doc '${t}'.`;
|
|
2220
|
-
let n = ql([...Br].map((u) => `'${u}'`));
|
|
2221
|
-
return `Unexpected doc.type '${e.type}'.
|
|
2222
|
-
Expected it to be ${n}.`;
|
|
2223
|
-
}
|
|
2224
|
-
var gt = class extends Error {
|
|
2225
|
-
name = "InvalidDocError";
|
|
2226
|
-
constructor(r) {
|
|
2227
|
-
super(Nl(r)), this.doc = r;
|
|
2228
|
-
}
|
|
2229
|
-
};
|
|
2230
|
-
var Be = gt;
|
|
2231
|
-
var jn = {};
|
|
2232
|
-
function Pl(e, r, t, n) {
|
|
2233
|
-
let u = [e];
|
|
2234
|
-
for (; u.length > 0; ) {
|
|
2235
|
-
let i = u.pop();
|
|
2236
|
-
if (i === jn) {
|
|
2237
|
-
t(u.pop());
|
|
2238
|
-
continue;
|
|
2239
|
-
}
|
|
2240
|
-
t && u.push(i, jn);
|
|
2241
|
-
let a = W(i);
|
|
2242
|
-
if (!a) throw new Be(i);
|
|
2243
|
-
if (r?.(i) !== false) switch (a) {
|
|
2244
|
-
case j:
|
|
2245
|
-
case J: {
|
|
2246
|
-
let o = a === j ? i : i.parts;
|
|
2247
|
-
for (let s = o.length, f = s - 1; f >= 0; --f) u.push(o[f]);
|
|
2248
|
-
break;
|
|
2249
|
-
}
|
|
2250
|
-
case Q:
|
|
2251
|
-
u.push(i.flatContents, i.breakContents);
|
|
2252
|
-
break;
|
|
2253
|
-
case X:
|
|
2254
|
-
if (n && i.expandedStates) for (let o = i.expandedStates.length, s = o - 1; s >= 0; --s) u.push(i.expandedStates[s]);
|
|
2255
|
-
else u.push(i.contents);
|
|
2256
|
-
break;
|
|
2257
|
-
case re:
|
|
2258
|
-
case ee:
|
|
2259
|
-
case pe:
|
|
2260
|
-
case me:
|
|
2261
|
-
case he:
|
|
2262
|
-
u.push(i.contents);
|
|
2263
|
-
break;
|
|
2264
|
-
case V:
|
|
2265
|
-
case be:
|
|
2266
|
-
case De:
|
|
2267
|
-
case de:
|
|
2268
|
-
case $:
|
|
2269
|
-
case te:
|
|
2270
|
-
break;
|
|
2271
|
-
default:
|
|
2272
|
-
throw new Be(i);
|
|
2273
|
-
}
|
|
2274
|
-
}
|
|
2275
|
-
}
|
|
2276
|
-
var $n = Pl;
|
|
2277
|
-
function Il(e, r) {
|
|
2278
|
-
if (typeof e == "string") return r(e);
|
|
2279
|
-
let t = /* @__PURE__ */ new Map();
|
|
2280
|
-
return n(e);
|
|
2281
|
-
function n(i) {
|
|
2282
|
-
if (t.has(i)) return t.get(i);
|
|
2283
|
-
let a = u(i);
|
|
2284
|
-
return t.set(i, a), a;
|
|
2285
|
-
}
|
|
2286
|
-
function u(i) {
|
|
2287
|
-
switch (W(i)) {
|
|
2288
|
-
case j:
|
|
2289
|
-
return r(i.map(n));
|
|
2290
|
-
case J:
|
|
2291
|
-
return r({ ...i, parts: i.parts.map(n) });
|
|
2292
|
-
case Q:
|
|
2293
|
-
return r({ ...i, breakContents: n(i.breakContents), flatContents: n(i.flatContents) });
|
|
2294
|
-
case X: {
|
|
2295
|
-
let { expandedStates: a, contents: o } = i;
|
|
2296
|
-
return a ? (a = a.map(n), o = a[0]) : o = n(o), r({ ...i, contents: o, expandedStates: a });
|
|
2297
|
-
}
|
|
2298
|
-
case re:
|
|
2299
|
-
case ee:
|
|
2300
|
-
case pe:
|
|
2301
|
-
case me:
|
|
2302
|
-
case he:
|
|
2303
|
-
return r({ ...i, contents: n(i.contents) });
|
|
2304
|
-
case V:
|
|
2305
|
-
case be:
|
|
2306
|
-
case De:
|
|
2307
|
-
case de:
|
|
2308
|
-
case $:
|
|
2309
|
-
case te:
|
|
2310
|
-
return r(i);
|
|
2311
|
-
default:
|
|
2312
|
-
throw new Be(i);
|
|
2313
|
-
}
|
|
2314
|
-
}
|
|
2315
|
-
}
|
|
2316
|
-
function Hn(e) {
|
|
2317
|
-
if (e.length > 0) {
|
|
2318
|
-
let r = U(0, e, -1);
|
|
2319
|
-
!r.expandedStates && !r.break && (r.break = "propagated");
|
|
2320
|
-
}
|
|
2321
|
-
return null;
|
|
2322
|
-
}
|
|
2323
|
-
function Kn(e) {
|
|
2324
|
-
let r = /* @__PURE__ */ new Set(), t = [];
|
|
2325
|
-
function n(i) {
|
|
2326
|
-
if (i.type === te && Hn(t), i.type === X) {
|
|
2327
|
-
if (t.push(i), r.has(i)) return false;
|
|
2328
|
-
r.add(i);
|
|
2329
|
-
}
|
|
2330
|
-
}
|
|
2331
|
-
function u(i) {
|
|
2332
|
-
i.type === X && t.pop().break && Hn(t);
|
|
2333
|
-
}
|
|
2334
|
-
$n(e, n, u, true);
|
|
2335
|
-
}
|
|
2336
|
-
function xe(e, r = nr) {
|
|
2337
|
-
return Il(e, (t) => typeof t == "string" ? _r(r, t.split(`
|
|
2338
|
-
`)) : t);
|
|
2339
|
-
}
|
|
2340
|
-
var ne = tr;
|
|
2341
|
-
var Or = tr;
|
|
2342
|
-
var Xn = tr;
|
|
2343
|
-
var Jn = tr;
|
|
2344
|
-
function ir(e) {
|
|
2345
|
-
return ne(e), { type: ee, contents: e };
|
|
2346
|
-
}
|
|
2347
|
-
function Fe(e, r) {
|
|
2348
|
-
return Jn(e), ne(r), { type: re, contents: r, n: e };
|
|
2349
|
-
}
|
|
2350
|
-
function ur(e) {
|
|
2351
|
-
return Fe({ type: "root" }, e);
|
|
2352
|
-
}
|
|
2353
|
-
var Ue = { type: te };
|
|
2354
|
-
function Ye(e) {
|
|
2355
|
-
return Xn(e), { type: J, parts: e };
|
|
2356
|
-
}
|
|
2357
|
-
function Ge(e, r = {}) {
|
|
2358
|
-
return ne(e), Or(r.expandedStates, true), { type: X, id: r.id, contents: e, break: !!r.shouldBreak, expandedStates: r.expandedStates };
|
|
2359
|
-
}
|
|
2360
|
-
function Qn(e, r = "", t = {}) {
|
|
2361
|
-
return ne(e), r !== "" && ne(r), { type: Q, breakContents: e, flatContents: r, groupId: t.groupId };
|
|
2362
|
-
}
|
|
2363
|
-
function _r(e, r) {
|
|
2364
|
-
ne(e), Or(r);
|
|
2365
|
-
let t = [];
|
|
2366
|
-
for (let n = 0; n < r.length; n++) n !== 0 && t.push(e), t.push(r[n]);
|
|
2367
|
-
return t;
|
|
2368
|
-
}
|
|
2369
|
-
var qr = { type: $ };
|
|
2370
|
-
var Nr = { type: $, soft: true };
|
|
2371
|
-
var ar = { type: $, hard: true };
|
|
2372
|
-
var M = [ar, Ue];
|
|
2373
|
-
var Sl = { type: $, hard: true, literal: true };
|
|
2374
|
-
var nr = [Sl, Ue];
|
|
2375
|
-
var Ll = "cr";
|
|
2376
|
-
var Rl = "crlf";
|
|
2377
|
-
var Ml = "\r";
|
|
2378
|
-
var Ul = `\r
|
|
2379
|
-
`;
|
|
2380
|
-
var Yl = `
|
|
2381
|
-
`;
|
|
2382
|
-
var Gl = Yl;
|
|
2383
|
-
function Zn(e) {
|
|
2384
|
-
return e === Ll ? Ml : e === Rl ? Ul : Gl;
|
|
2385
|
-
}
|
|
2386
|
-
var ei = () => /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
|
|
2387
|
-
function Et(e) {
|
|
2388
|
-
return e === 12288 || e >= 65281 && e <= 65376 || e >= 65504 && e <= 65510;
|
|
2389
|
-
}
|
|
2390
|
-
function Ct(e) {
|
|
2391
|
-
return e >= 4352 && e <= 4447 || e === 8986 || e === 8987 || e === 9001 || e === 9002 || e >= 9193 && e <= 9196 || e === 9200 || e === 9203 || e === 9725 || e === 9726 || e === 9748 || e === 9749 || e >= 9776 && e <= 9783 || e >= 9800 && e <= 9811 || e === 9855 || e >= 9866 && e <= 9871 || e === 9875 || e === 9889 || e === 9898 || e === 9899 || e === 9917 || e === 9918 || e === 9924 || e === 9925 || e === 9934 || e === 9940 || e === 9962 || e === 9970 || e === 9971 || e === 9973 || e === 9978 || e === 9981 || e === 9989 || e === 9994 || e === 9995 || e === 10024 || e === 10060 || e === 10062 || e >= 10067 && e <= 10069 || e === 10071 || e >= 10133 && e <= 10135 || e === 10160 || e === 10175 || e === 11035 || e === 11036 || e === 11088 || e === 11093 || e >= 11904 && e <= 11929 || e >= 11931 && e <= 12019 || e >= 12032 && e <= 12245 || e >= 12272 && e <= 12287 || e >= 12289 && e <= 12350 || e >= 12353 && e <= 12438 || e >= 12441 && e <= 12543 || e >= 12549 && e <= 12591 || e >= 12593 && e <= 12686 || e >= 12688 && e <= 12773 || e >= 12783 && e <= 12830 || e >= 12832 && e <= 12871 || e >= 12880 && e <= 42124 || e >= 42128 && e <= 42182 || e >= 43360 && e <= 43388 || e >= 44032 && e <= 55203 || e >= 63744 && e <= 64255 || e >= 65040 && e <= 65049 || e >= 65072 && e <= 65106 || e >= 65108 && e <= 65126 || e >= 65128 && e <= 65131 || e >= 94176 && e <= 94180 || e >= 94192 && e <= 94198 || e >= 94208 && e <= 101589 || e >= 101631 && e <= 101662 || e >= 101760 && e <= 101874 || e >= 110576 && e <= 110579 || e >= 110581 && e <= 110587 || e === 110589 || e === 110590 || e >= 110592 && e <= 110882 || e === 110898 || e >= 110928 && e <= 110930 || e === 110933 || e >= 110948 && e <= 110951 || e >= 110960 && e <= 111355 || e >= 119552 && e <= 119638 || e >= 119648 && e <= 119670 || e === 126980 || e === 127183 || e === 127374 || e >= 127377 && e <= 127386 || e >= 127488 && e <= 127490 || e >= 127504 && e <= 127547 || e >= 127552 && e <= 127560 || e === 127568 || e === 127569 || e >= 127584 && e <= 127589 || e >= 127744 && e <= 127776 || e >= 127789 && e <= 127797 || e >= 127799 && e <= 127868 || e >= 127870 && e <= 127891 || e >= 127904 && e <= 127946 || e >= 127951 && e <= 127955 || e >= 127968 && e <= 127984 || e === 127988 || e >= 127992 && e <= 128062 || e === 128064 || e >= 128066 && e <= 128252 || e >= 128255 && e <= 128317 || e >= 128331 && e <= 128334 || e >= 128336 && e <= 128359 || e === 128378 || e === 128405 || e === 128406 || e === 128420 || e >= 128507 && e <= 128591 || e >= 128640 && e <= 128709 || e === 128716 || e >= 128720 && e <= 128722 || e >= 128725 && e <= 128728 || e >= 128732 && e <= 128735 || e === 128747 || e === 128748 || e >= 128756 && e <= 128764 || e >= 128992 && e <= 129003 || e === 129008 || e >= 129292 && e <= 129338 || e >= 129340 && e <= 129349 || e >= 129351 && e <= 129535 || e >= 129648 && e <= 129660 || e >= 129664 && e <= 129674 || e >= 129678 && e <= 129734 || e === 129736 || e >= 129741 && e <= 129756 || e >= 129759 && e <= 129770 || e >= 129775 && e <= 129784 || e >= 131072 && e <= 196605 || e >= 196608 && e <= 262141;
|
|
2392
|
-
}
|
|
2393
|
-
var ri = "\xA9\xAE\u203C\u2049\u2122\u2139\u2194\u2195\u2196\u2197\u2198\u2199\u21A9\u21AA\u2328\u23CF\u23F1\u23F2\u23F8\u23F9\u23FA\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600\u2601\u2602\u2603\u2604\u260E\u2611\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638\u2639\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694\u2695\u2696\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F1\u26F7\u26F8\u26F9\u2702\u2708\u2709\u270C\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05\u2B06\u2B07";
|
|
2394
|
-
var zl = /[^\x20-\x7F]/u;
|
|
2395
|
-
var Wl = new Set(ri);
|
|
2396
|
-
function Vl(e) {
|
|
2397
|
-
if (!e) return 0;
|
|
2398
|
-
if (!zl.test(e)) return e.length;
|
|
2399
|
-
e = e.replace(ei(), (t) => Wl.has(t) ? " " : " ");
|
|
2400
|
-
let r = 0;
|
|
2401
|
-
for (let t of e) {
|
|
2402
|
-
let n = t.codePointAt(0);
|
|
2403
|
-
n <= 31 || n >= 127 && n <= 159 || n >= 768 && n <= 879 || n >= 65024 && n <= 65039 || (r += Et(n) || Ct(n) ? 2 : 1);
|
|
2404
|
-
}
|
|
2405
|
-
return r;
|
|
2406
|
-
}
|
|
2407
|
-
var or = Vl;
|
|
2408
|
-
var jl = { type: 0 };
|
|
2409
|
-
var $l = { type: 1 };
|
|
2410
|
-
var vt = { value: "", length: 0, queue: [], get root() {
|
|
2411
|
-
return vt;
|
|
2412
|
-
} };
|
|
2413
|
-
function ti(e, r, t) {
|
|
2414
|
-
let n = r.type === 1 ? e.queue.slice(0, -1) : [...e.queue, r], u = "", i = 0, a = 0, o = 0;
|
|
2415
|
-
for (let p of n) switch (p.type) {
|
|
2416
|
-
case 0:
|
|
2417
|
-
c(), t.useTabs ? s(1) : f(t.tabWidth);
|
|
2418
|
-
break;
|
|
2419
|
-
case 3: {
|
|
2420
|
-
let { string: h } = p;
|
|
2421
|
-
c(), u += h, i += h.length;
|
|
2422
|
-
break;
|
|
2423
|
-
}
|
|
2424
|
-
case 2: {
|
|
2425
|
-
let { width: h } = p;
|
|
2426
|
-
a += 1, o += h;
|
|
2427
|
-
break;
|
|
2428
|
-
}
|
|
2429
|
-
default:
|
|
2430
|
-
throw new Error(`Unexpected indent comment '${p.type}'.`);
|
|
2431
|
-
}
|
|
2432
|
-
return D(), { ...e, value: u, length: i, queue: n };
|
|
2433
|
-
function s(p) {
|
|
2434
|
-
u += " ".repeat(p), i += t.tabWidth * p;
|
|
2435
|
-
}
|
|
2436
|
-
function f(p) {
|
|
2437
|
-
u += " ".repeat(p), i += p;
|
|
2438
|
-
}
|
|
2439
|
-
function c() {
|
|
2440
|
-
t.useTabs ? l() : D();
|
|
2441
|
-
}
|
|
2442
|
-
function l() {
|
|
2443
|
-
a > 0 && s(a), m();
|
|
2444
|
-
}
|
|
2445
|
-
function D() {
|
|
2446
|
-
o > 0 && f(o), m();
|
|
2447
|
-
}
|
|
2448
|
-
function m() {
|
|
2449
|
-
a = 0, o = 0;
|
|
2450
|
-
}
|
|
2451
|
-
}
|
|
2452
|
-
function ni(e, r, t) {
|
|
2453
|
-
if (!r) return e;
|
|
2454
|
-
if (r.type === "root") return { ...e, root: e };
|
|
2455
|
-
if (r === Number.NEGATIVE_INFINITY) return e.root;
|
|
2456
|
-
let n;
|
|
2457
|
-
return typeof r == "number" ? r < 0 ? n = $l : n = { type: 2, width: r } : n = { type: 3, string: r }, ti(e, n, t);
|
|
2458
|
-
}
|
|
2459
|
-
function ii(e, r) {
|
|
2460
|
-
return ti(e, jl, r);
|
|
2461
|
-
}
|
|
2462
|
-
function Hl(e) {
|
|
2463
|
-
let r = 0;
|
|
2464
|
-
for (let t = e.length - 1; t >= 0; t--) {
|
|
2465
|
-
let n = e[t];
|
|
2466
|
-
if (n === " " || n === " ") r++;
|
|
2467
|
-
else break;
|
|
2468
|
-
}
|
|
2469
|
-
return r;
|
|
2470
|
-
}
|
|
2471
|
-
function At(e) {
|
|
2472
|
-
let r = Hl(e);
|
|
2473
|
-
return { text: r === 0 ? e : e.slice(0, e.length - r), count: r };
|
|
2474
|
-
}
|
|
2475
|
-
var H = /* @__PURE__ */ Symbol("MODE_BREAK");
|
|
2476
|
-
var ue = /* @__PURE__ */ Symbol("MODE_FLAT");
|
|
2477
|
-
var bt = /* @__PURE__ */ Symbol("DOC_FILL_PRINTED_LENGTH");
|
|
2478
|
-
function Pr(e, r, t, n, u, i) {
|
|
2479
|
-
if (t === Number.POSITIVE_INFINITY) return true;
|
|
2480
|
-
let a = r.length, o = false, s = [e], f = "";
|
|
2481
|
-
for (; t >= 0; ) {
|
|
2482
|
-
if (s.length === 0) {
|
|
2483
|
-
if (a === 0) return true;
|
|
2484
|
-
s.push(r[--a]);
|
|
2485
|
-
continue;
|
|
2486
|
-
}
|
|
2487
|
-
let { mode: c, doc: l } = s.pop(), D = W(l);
|
|
2488
|
-
switch (D) {
|
|
2489
|
-
case V:
|
|
2490
|
-
l && (o && (f += " ", t -= 1, o = false), f += l, t -= or(l));
|
|
2491
|
-
break;
|
|
2492
|
-
case j:
|
|
2493
|
-
case J: {
|
|
2494
|
-
let m = D === j ? l : l.parts, p = l[bt] ?? 0;
|
|
2495
|
-
for (let h = m.length - 1; h >= p; h--) s.push({ mode: c, doc: m[h] });
|
|
2496
|
-
break;
|
|
2497
|
-
}
|
|
2498
|
-
case ee:
|
|
2499
|
-
case re:
|
|
2500
|
-
case pe:
|
|
2501
|
-
case me:
|
|
2502
|
-
s.push({ mode: c, doc: l.contents });
|
|
2503
|
-
break;
|
|
2504
|
-
case De: {
|
|
2505
|
-
let { text: m, count: p } = At(f);
|
|
2506
|
-
f = m, t += p;
|
|
2507
|
-
break;
|
|
2508
|
-
}
|
|
2509
|
-
case X: {
|
|
2510
|
-
if (i && l.break) return false;
|
|
2511
|
-
let m = l.break ? H : c, p = l.expandedStates && m === H ? U(0, l.expandedStates, -1) : l.contents;
|
|
2512
|
-
s.push({ mode: m, doc: p });
|
|
2513
|
-
break;
|
|
2514
|
-
}
|
|
2515
|
-
case Q: {
|
|
2516
|
-
let p = (l.groupId ? u[l.groupId] || ue : c) === H ? l.breakContents : l.flatContents;
|
|
2517
|
-
p && s.push({ mode: c, doc: p });
|
|
2518
|
-
break;
|
|
2519
|
-
}
|
|
2520
|
-
case $:
|
|
2521
|
-
if (c === H || l.hard) return true;
|
|
2522
|
-
l.soft || (o = true);
|
|
2523
|
-
break;
|
|
2524
|
-
case he:
|
|
2525
|
-
n = true;
|
|
2526
|
-
break;
|
|
2527
|
-
case de:
|
|
2528
|
-
if (n) return false;
|
|
2529
|
-
break;
|
|
2530
|
-
}
|
|
2531
|
-
}
|
|
2532
|
-
return false;
|
|
2533
|
-
}
|
|
2534
|
-
function ui(e, r) {
|
|
2535
|
-
let t = /* @__PURE__ */ Object.create(null), n = r.printWidth, u = Zn(r.endOfLine), i = 0, a = [{ indent: vt, mode: H, doc: e }], o = "", s = false, f = [], c = [], l = [], D = [], m = 0;
|
|
2536
|
-
for (Kn(e); a.length > 0; ) {
|
|
2537
|
-
let { indent: E, mode: v, doc: A } = a.pop();
|
|
2538
|
-
switch (W(A)) {
|
|
2539
|
-
case V: {
|
|
2540
|
-
let b = u !== `
|
|
2541
|
-
` ? R(0, A, `
|
|
2542
|
-
`, u) : A;
|
|
2543
|
-
b && (o += b, a.length > 0 && (i += or(b)));
|
|
2544
|
-
break;
|
|
2545
|
-
}
|
|
2546
|
-
case j:
|
|
2547
|
-
for (let b = A.length - 1; b >= 0; b--) a.push({ indent: E, mode: v, doc: A[b] });
|
|
2548
|
-
break;
|
|
2549
|
-
case be:
|
|
2550
|
-
if (c.length >= 2) throw new Error("There are too many 'cursor' in doc.");
|
|
2551
|
-
c.push(m + o.length);
|
|
2552
|
-
break;
|
|
2553
|
-
case ee:
|
|
2554
|
-
a.push({ indent: ii(E, r), mode: v, doc: A.contents });
|
|
2555
|
-
break;
|
|
2556
|
-
case re:
|
|
2557
|
-
a.push({ indent: ni(E, A.n, r), mode: v, doc: A.contents });
|
|
2558
|
-
break;
|
|
2559
|
-
case De:
|
|
2560
|
-
g();
|
|
2561
|
-
break;
|
|
2562
|
-
case X:
|
|
2563
|
-
switch (v) {
|
|
2564
|
-
case ue:
|
|
2565
|
-
if (!s) {
|
|
2566
|
-
a.push({ indent: E, mode: A.break ? H : ue, doc: A.contents });
|
|
2567
|
-
break;
|
|
2568
|
-
}
|
|
2569
|
-
case H: {
|
|
2570
|
-
s = false;
|
|
2571
|
-
let b = { indent: E, mode: ue, doc: A.contents }, d = n - i, y = f.length > 0;
|
|
2572
|
-
if (!A.break && Pr(b, a, d, y, t)) a.push(b);
|
|
2573
|
-
else if (A.expandedStates) {
|
|
2574
|
-
let w = U(0, A.expandedStates, -1);
|
|
2575
|
-
if (A.break) {
|
|
2576
|
-
a.push({ indent: E, mode: H, doc: w });
|
|
2577
|
-
break;
|
|
2578
|
-
} else for (let C = 1; C < A.expandedStates.length + 1; C++) if (C >= A.expandedStates.length) {
|
|
2579
|
-
a.push({ indent: E, mode: H, doc: w });
|
|
2580
|
-
break;
|
|
2581
|
-
} else {
|
|
2582
|
-
let k = A.expandedStates[C], T = { indent: E, mode: ue, doc: k };
|
|
2583
|
-
if (Pr(T, a, d, y, t)) {
|
|
2584
|
-
a.push(T);
|
|
2585
|
-
break;
|
|
2586
|
-
}
|
|
2587
|
-
}
|
|
2588
|
-
} else a.push({ indent: E, mode: H, doc: A.contents });
|
|
2589
|
-
break;
|
|
2590
|
-
}
|
|
2591
|
-
}
|
|
2592
|
-
A.id && (t[A.id] = U(0, a, -1).mode);
|
|
2593
|
-
break;
|
|
2594
|
-
case J: {
|
|
2595
|
-
let b = n - i, d = A[bt] ?? 0, { parts: y } = A, w = y.length - d;
|
|
2596
|
-
if (w === 0) break;
|
|
2597
|
-
let C = y[d + 0], k = y[d + 1], T = { indent: E, mode: ue, doc: C }, B = { indent: E, mode: H, doc: C }, _ = Pr(T, [], b, f.length > 0, t, true);
|
|
2598
|
-
if (w === 1) {
|
|
2599
|
-
_ ? a.push(T) : a.push(B);
|
|
2600
|
-
break;
|
|
2601
|
-
}
|
|
2602
|
-
let S = { indent: E, mode: ue, doc: k }, P = { indent: E, mode: H, doc: k };
|
|
2603
|
-
if (w === 2) {
|
|
2604
|
-
_ ? a.push(S, T) : a.push(P, B);
|
|
2605
|
-
break;
|
|
2606
|
-
}
|
|
2607
|
-
let N = y[d + 2], O = { indent: E, mode: v, doc: { ...A, [bt]: d + 2 } }, le = Pr({ indent: E, mode: ue, doc: [C, k, N] }, [], b, f.length > 0, t, true);
|
|
2608
|
-
a.push(O), le ? a.push(S, T) : _ ? a.push(P, T) : a.push(P, B);
|
|
2609
|
-
break;
|
|
2610
|
-
}
|
|
2611
|
-
case Q:
|
|
2612
|
-
case pe: {
|
|
2613
|
-
let b = A.groupId ? t[A.groupId] : v;
|
|
2614
|
-
if (b === H) {
|
|
2615
|
-
let d = A.type === Q ? A.breakContents : A.negate ? A.contents : ir(A.contents);
|
|
2616
|
-
d && a.push({ indent: E, mode: v, doc: d });
|
|
2617
|
-
}
|
|
2618
|
-
if (b === ue) {
|
|
2619
|
-
let d = A.type === Q ? A.flatContents : A.negate ? ir(A.contents) : A.contents;
|
|
2620
|
-
d && a.push({ indent: E, mode: v, doc: d });
|
|
2621
|
-
}
|
|
2622
|
-
break;
|
|
2623
|
-
}
|
|
2624
|
-
case he:
|
|
2625
|
-
f.push({ indent: E, mode: v, doc: A.contents });
|
|
2626
|
-
break;
|
|
2627
|
-
case de:
|
|
2628
|
-
f.length > 0 && a.push({ indent: E, mode: v, doc: ar });
|
|
2629
|
-
break;
|
|
2630
|
-
case $:
|
|
2631
|
-
switch (v) {
|
|
2632
|
-
case ue:
|
|
2633
|
-
if (A.hard) s = true;
|
|
2634
|
-
else {
|
|
2635
|
-
A.soft || (o += " ", i += 1);
|
|
2636
|
-
break;
|
|
2637
|
-
}
|
|
2638
|
-
case H:
|
|
2639
|
-
if (f.length > 0) {
|
|
2640
|
-
a.push({ indent: E, mode: v, doc: A }, ...f.reverse()), f.length = 0;
|
|
2641
|
-
break;
|
|
2642
|
-
}
|
|
2643
|
-
A.literal ? (o += u, i = 0, E.root && (E.root.value && (o += E.root.value), i = E.root.length)) : (g(), o += u + E.value, i = E.length);
|
|
2644
|
-
break;
|
|
2645
|
-
}
|
|
2646
|
-
break;
|
|
2647
|
-
case me:
|
|
2648
|
-
a.push({ indent: E, mode: v, doc: A.contents });
|
|
2649
|
-
break;
|
|
2650
|
-
case te:
|
|
2651
|
-
break;
|
|
2652
|
-
default:
|
|
2653
|
-
throw new Be(A);
|
|
2654
|
-
}
|
|
2655
|
-
a.length === 0 && f.length > 0 && (a.push(...f.reverse()), f.length = 0);
|
|
2656
|
-
}
|
|
2657
|
-
let p = l.join("") + o, h = [...D, ...c];
|
|
2658
|
-
if (h.length !== 2) return { formatted: p };
|
|
2659
|
-
let F = h[0];
|
|
2660
|
-
return { formatted: p, cursorNodeStart: F, cursorNodeText: p.slice(F, U(0, h, -1)) };
|
|
2661
|
-
function g() {
|
|
2662
|
-
let { text: E, count: v } = At(o);
|
|
2663
|
-
E && (l.push(E), m += E.length), o = "", i -= v, c.length > 0 && (D.push(...c.map((A) => Math.min(A, m))), c.length = 0);
|
|
2664
|
-
}
|
|
2665
|
-
}
|
|
2666
|
-
function Kl(e, r) {
|
|
2667
|
-
let t = e.matchAll(new RegExp(`(?:${fe(r)})+`, "gu"));
|
|
2668
|
-
return t.reduce || (t = [...t]), t.reduce((n, [u]) => Math.max(n, u.length), 0) / r.length;
|
|
2669
|
-
}
|
|
2670
|
-
var Ir = Kl;
|
|
2671
|
-
function Xl(e, r) {
|
|
2672
|
-
let t = e.match(new RegExp(`(${fe(r)})+`, "gu"));
|
|
2673
|
-
if (t === null) return 1;
|
|
2674
|
-
let n = /* @__PURE__ */ new Map(), u = 0;
|
|
2675
|
-
for (let i of t) {
|
|
2676
|
-
let a = i.length / r.length;
|
|
2677
|
-
n.set(a, true), a > u && (u = a);
|
|
2678
|
-
}
|
|
2679
|
-
for (let i = 1; i < u; i++) if (!n.get(i)) return i;
|
|
2680
|
-
return u + 1;
|
|
2681
|
-
}
|
|
2682
|
-
var ai = Xl;
|
|
2683
|
-
var oi = Object.freeze({ character: "'", codePoint: 39 });
|
|
2684
|
-
var si = Object.freeze({ character: '"', codePoint: 34 });
|
|
2685
|
-
var Jl = Object.freeze({ preferred: oi, alternate: si });
|
|
2686
|
-
var Ql = Object.freeze({ preferred: si, alternate: oi });
|
|
2687
|
-
function Zl(e, r) {
|
|
2688
|
-
let { preferred: t, alternate: n } = r === true || r === "'" ? Jl : Ql, { length: u } = e, i = 0, a = 0;
|
|
2689
|
-
for (let o = 0; o < u; o++) {
|
|
2690
|
-
let s = e.charCodeAt(o);
|
|
2691
|
-
s === t.codePoint ? i++ : s === n.codePoint && a++;
|
|
2692
|
-
}
|
|
2693
|
-
return (i > a ? n : t).character;
|
|
2694
|
-
}
|
|
2695
|
-
var ci = Zl;
|
|
2696
|
-
var xt = class extends Error {
|
|
2697
|
-
name = "UnexpectedNodeError";
|
|
2698
|
-
constructor(r, t, n = "type") {
|
|
2699
|
-
super(`Unexpected ${t} node ${n}: ${JSON.stringify(r[n])}.`), this.node = r;
|
|
2700
|
-
}
|
|
2701
|
-
};
|
|
2702
|
-
var li = xt;
|
|
2703
|
-
var bi = Re(Tr(), 1);
|
|
2704
|
-
var ef = Array.prototype.toReversed ?? function() {
|
|
2705
|
-
return [...this].reverse();
|
|
2706
|
-
};
|
|
2707
|
-
var rf = Me("toReversed", function() {
|
|
2708
|
-
if (Array.isArray(this)) return ef;
|
|
2709
|
-
});
|
|
2710
|
-
var fi = rf;
|
|
2711
|
-
function tf() {
|
|
2712
|
-
let e = globalThis, r = e.Deno?.build?.os;
|
|
2713
|
-
return typeof r == "string" ? r === "windows" : e.navigator?.platform?.startsWith("Win") ?? e.process?.platform?.startsWith("win") ?? false;
|
|
2714
|
-
}
|
|
2715
|
-
var nf = tf();
|
|
2716
|
-
function Di(e) {
|
|
2717
|
-
if (e = e instanceof URL ? e : new URL(e), e.protocol !== "file:") throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);
|
|
2718
|
-
return e;
|
|
2719
|
-
}
|
|
2720
|
-
function uf(e) {
|
|
2721
|
-
return e = Di(e), decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g, "%25"));
|
|
2722
|
-
}
|
|
2723
|
-
function af(e) {
|
|
2724
|
-
e = Di(e);
|
|
2725
|
-
let r = decodeURIComponent(e.pathname.replace(/\//g, "\\").replace(/%(?![0-9A-Fa-f]{2})/g, "%25")).replace(/^\\*([A-Za-z]:)(\\|$)/, "$1\\");
|
|
2726
|
-
return e.hostname !== "" && (r = `\\\\${e.hostname}${r}`), r;
|
|
2727
|
-
}
|
|
2728
|
-
function yt(e) {
|
|
2729
|
-
return nf ? af(e) : uf(e);
|
|
2730
|
-
}
|
|
2731
|
-
var pi = (e) => String(e).split(/[/\\]/u).pop();
|
|
2732
|
-
var hi = (e) => String(e).startsWith("file:");
|
|
2733
|
-
function di(e, r) {
|
|
2734
|
-
if (!r) return;
|
|
2735
|
-
let t = pi(r).toLowerCase();
|
|
2736
|
-
return e.find(({ filenames: n }) => n?.some((u) => u.toLowerCase() === t)) ?? e.find(({ extensions: n }) => n?.some((u) => t.endsWith(u)));
|
|
2737
|
-
}
|
|
2738
|
-
function of(e, r) {
|
|
2739
|
-
if (r) return e.find(({ name: t }) => t.toLowerCase() === r) ?? e.find(({ aliases: t }) => t?.includes(r)) ?? e.find(({ extensions: t }) => t?.includes(`.${r}`));
|
|
2740
|
-
}
|
|
2741
|
-
var sf = void 0;
|
|
2742
|
-
function mi(e, r) {
|
|
2743
|
-
if (r) {
|
|
2744
|
-
if (hi(r)) try {
|
|
2745
|
-
r = yt(r);
|
|
2746
|
-
} catch {
|
|
2747
|
-
return;
|
|
2748
|
-
}
|
|
2749
|
-
if (typeof r == "string") return e.find(({ isSupported: t }) => t?.({ filepath: r }));
|
|
2750
|
-
}
|
|
2751
|
-
}
|
|
2752
|
-
function cf(e, r) {
|
|
2753
|
-
let t = fi(0, e.plugins).flatMap((u) => u.languages ?? []);
|
|
2754
|
-
return (of(t, r.language) ?? di(t, r.physicalFile) ?? di(t, r.file) ?? mi(t, r.physicalFile) ?? mi(t, r.file) ?? sf?.(t, r.physicalFile))?.parsers[0];
|
|
2755
|
-
}
|
|
2756
|
-
var Fi = cf;
|
|
2757
|
-
var Sr = /* @__PURE__ */ Symbol.for("PRETTIER_IS_FRONT_MATTER");
|
|
2758
|
-
function lf(e) {
|
|
2759
|
-
return !!e?.[Sr];
|
|
2760
|
-
}
|
|
2761
|
-
var wt = lf;
|
|
2762
|
-
var sr = 3;
|
|
2763
|
-
function ff(e) {
|
|
2764
|
-
let r = e.slice(0, sr);
|
|
2765
|
-
if (r !== "---" && r !== "+++") return;
|
|
2766
|
-
let t = e.indexOf(`
|
|
2767
|
-
`, sr);
|
|
2768
|
-
if (t === -1) return;
|
|
2769
|
-
let n = e.slice(sr, t).trim(), u = e.indexOf(`
|
|
2770
|
-
${r}`, t), i = n;
|
|
2771
|
-
if (i || (i = r === "+++" ? "toml" : "yaml"), u === -1 && r === "---" && i === "yaml" && (u = e.indexOf(`
|
|
2772
|
-
...`, t)), u === -1) return;
|
|
2773
|
-
let a = u + 1 + sr, o = e.charAt(a + 1);
|
|
2774
|
-
if (!/\s?/u.test(o)) return;
|
|
2775
|
-
let s = e.slice(0, a), f;
|
|
2776
|
-
return { language: i, explicitLanguage: n || null, value: e.slice(t + 1, u), startDelimiter: r, endDelimiter: s.slice(-sr), raw: s, start: { line: 1, column: 0, index: 0 }, end: { index: s.length, get line() {
|
|
2777
|
-
return f ?? (f = s.split(`
|
|
2778
|
-
`)), f.length;
|
|
2779
|
-
}, get column() {
|
|
2780
|
-
return f ?? (f = s.split(`
|
|
2781
|
-
`)), U(0, f, -1).length;
|
|
2782
|
-
} }, [Sr]: true };
|
|
2783
|
-
}
|
|
2784
|
-
function Df(e) {
|
|
2785
|
-
let r = ff(e);
|
|
2786
|
-
return r ? { frontMatter: r, get content() {
|
|
2787
|
-
let { raw: t } = r;
|
|
2788
|
-
return R(0, t, /[^\n]/gu, " ") + e.slice(t.length);
|
|
2789
|
-
} } : { content: e };
|
|
2790
|
-
}
|
|
2791
|
-
var _e = Df;
|
|
2792
|
-
var gi = "format";
|
|
2793
|
-
var Ei = /<!--\s*@(?:noformat|noprettier)\s*-->|\{\s*\/\*\s*@(?:noformat|noprettier)\s*\*\/\s*\}|<!--.*\r?\n[\s\S]*(^|\n)[^\S\n]*@(?:noformat|noprettier)[^\S\n]*($|\n)[\s\S]*\n.*-->/mu;
|
|
2794
|
-
var Ci = /<!--\s*@(?:format|prettier)\s*-->|\{\s*\/\*\s*@(?:format|prettier)\s*\*\/\s*\}|<!--.*\r?\n[\s\S]*(^|\n)[^\S\n]*@(?:format|prettier)[^\S\n]*($|\n)[\s\S]*\n.*-->/mu;
|
|
2795
|
-
var Lr = (e) => _e(e).content.trimStart().match(Ci)?.index === 0;
|
|
2796
|
-
var vi = (e) => _e(e).content.trimStart().match(Ei)?.index === 0;
|
|
2797
|
-
var Ai = (e) => {
|
|
2798
|
-
let { frontMatter: r } = _e(e), t = `<!-- @${gi} -->`;
|
|
2799
|
-
return r ? `${r.raw}
|
|
2800
|
-
|
|
2801
|
-
${t}
|
|
2802
|
-
|
|
2803
|
-
${e.slice(r.end.index)}` : `${t}
|
|
2804
|
-
|
|
2805
|
-
${e}`;
|
|
2806
|
-
};
|
|
2807
|
-
var pf = /* @__PURE__ */ new Set(["position", "raw"]);
|
|
2808
|
-
function xi(e, r, t) {
|
|
2809
|
-
if ((e.type === "code" || e.type === "yaml" || e.type === "import" || e.type === "export" || e.type === "jsx") && delete r.value, e.type === "list" && delete r.isAligned, (e.type === "list" || e.type === "listItem") && delete r.spread, e.type === "text") return null;
|
|
2810
|
-
if (e.type === "inlineCode" && (r.value = R(0, e.value, `
|
|
2811
|
-
`, " ")), e.type === "wikiLink" && (r.value = R(0, e.value.trim(), /[\t\n]+/gu, " ")), (e.type === "definition" || e.type === "linkReference" || e.type === "imageReference") && (r.label = (0, bi.default)(e.label)), (e.type === "link" || e.type === "image") && e.url && e.url.includes("(")) for (let n of "<>") r.url = R(0, e.url, n, encodeURIComponent(n));
|
|
2812
|
-
if ((e.type === "definition" || e.type === "link" || e.type === "image") && e.title && (r.title = R(0, e.title, /\\(?=["')])/gu, "")), t?.type === "root" && t.children.length > 0 && (t.children[0] === e || wt(t.children[0]) && t.children[1] === e) && e.type === "html" && Lr(e.value)) return null;
|
|
2813
|
-
}
|
|
2814
|
-
xi.ignoredProperties = pf;
|
|
2815
|
-
var yi = xi;
|
|
2816
|
-
var wi = /(?:[\u{2c7}\u{2c9}-\u{2cb}\u{2d9}\u{2ea}-\u{2eb}\u{305}\u{323}\u{1100}-\u{11ff}\u{2e80}-\u{2e99}\u{2e9b}-\u{2ef3}\u{2f00}-\u{2fd5}\u{2ff0}-\u{303f}\u{3041}-\u{3096}\u{3099}-\u{30ff}\u{3105}-\u{312f}\u{3131}-\u{318e}\u{3190}-\u{4dbf}\u{4e00}-\u{9fff}\u{a700}-\u{a707}\u{a960}-\u{a97c}\u{ac00}-\u{d7a3}\u{d7b0}-\u{d7c6}\u{d7cb}-\u{d7fb}\u{f900}-\u{fa6d}\u{fa70}-\u{fad9}\u{fe10}-\u{fe1f}\u{fe30}-\u{fe6f}\u{ff00}-\u{ffef}\u{16fe3}\u{16ff2}-\u{16ff6}\u{1aff0}-\u{1aff3}\u{1aff5}-\u{1affb}\u{1affd}-\u{1affe}\u{1b000}-\u{1b122}\u{1b132}\u{1b150}-\u{1b152}\u{1b155}\u{1b164}-\u{1b167}\u{1f200}\u{1f250}-\u{1f251}\u{20000}-\u{2a6df}\u{2a700}-\u{2b81d}\u{2b820}-\u{2cead}\u{2ceb0}-\u{2ebe0}\u{2ebf0}-\u{2ee5d}\u{2f800}-\u{2fa1d}\u{30000}-\u{3134a}\u{31350}-\u{33479}])(?:[\u{fe00}-\u{fe0f}\u{e0100}-\u{e01ef}])?/u;
|
|
2817
|
-
var Oe = /(?:[\u{21}-\u{2f}\u{3a}-\u{40}\u{5b}-\u{60}\u{7b}-\u{7e}]|\p{General_Category=Connector_Punctuation}|\p{General_Category=Dash_Punctuation}|\p{General_Category=Close_Punctuation}|\p{General_Category=Final_Punctuation}|\p{General_Category=Initial_Punctuation}|\p{General_Category=Other_Punctuation}|\p{General_Category=Open_Punctuation})/u;
|
|
2818
|
-
var qe = (e) => e.position.start.offset;
|
|
2819
|
-
var Ne = (e) => e.position.end.offset;
|
|
2820
|
-
var kt = /* @__PURE__ */ new Set(["liquidNode", "inlineCode", "emphasis", "esComment", "strong", "delete", "wikiLink", "link", "linkReference", "image", "imageReference", "footnote", "footnoteReference", "sentence", "whitespace", "word", "break", "inlineMath"]);
|
|
2821
|
-
var Rr = /* @__PURE__ */ new Set([...kt, "tableCell", "paragraph", "heading"]);
|
|
2822
|
-
var We = "non-cjk";
|
|
2823
|
-
var ae = "cj-letter";
|
|
2824
|
-
var Pe = "k-letter";
|
|
2825
|
-
var cr = "cjk-punctuation";
|
|
2826
|
-
var hf = /\p{Script_Extensions=Hangul}/u;
|
|
2827
|
-
function Mr(e) {
|
|
2828
|
-
let r = [], t = e.split(/([\t\n ]+)/u);
|
|
2829
|
-
for (let [u, i] of t.entries()) {
|
|
2830
|
-
if (u % 2 === 1) {
|
|
2831
|
-
r.push({ type: "whitespace", value: /\n/u.test(i) ? `
|
|
2832
|
-
` : " " });
|
|
2833
|
-
continue;
|
|
2834
|
-
}
|
|
2835
|
-
if ((u === 0 || u === t.length - 1) && i === "") continue;
|
|
2836
|
-
let a = i.split(new RegExp(`(${wi.source})`, "u"));
|
|
2837
|
-
for (let [o, s] of a.entries()) if (!((o === 0 || o === a.length - 1) && s === "")) {
|
|
2838
|
-
if (o % 2 === 0) {
|
|
2839
|
-
s !== "" && n({ type: "word", value: s, kind: We, isCJ: false, hasLeadingPunctuation: Oe.test(s[0]), hasTrailingPunctuation: Oe.test(U(0, s, -1)) });
|
|
2840
|
-
continue;
|
|
2841
|
-
}
|
|
2842
|
-
if (Oe.test(s)) {
|
|
2843
|
-
n({ type: "word", value: s, kind: cr, isCJ: true, hasLeadingPunctuation: true, hasTrailingPunctuation: true });
|
|
2844
|
-
continue;
|
|
2845
|
-
}
|
|
2846
|
-
if (hf.test(s)) {
|
|
2847
|
-
n({ type: "word", value: s, kind: Pe, isCJ: false, hasLeadingPunctuation: false, hasTrailingPunctuation: false });
|
|
2848
|
-
continue;
|
|
2849
|
-
}
|
|
2850
|
-
n({ type: "word", value: s, kind: ae, isCJ: true, hasLeadingPunctuation: false, hasTrailingPunctuation: false });
|
|
2851
|
-
}
|
|
2852
|
-
}
|
|
2853
|
-
return r;
|
|
2854
|
-
function n(u) {
|
|
2855
|
-
let i = U(0, r, -1);
|
|
2856
|
-
i?.type === "word" && !a(We, cr) && ![i.value, u.value].some((o) => /\u3000/u.test(o)) && r.push({ type: "whitespace", value: "" }), r.push(u);
|
|
2857
|
-
function a(o, s) {
|
|
2858
|
-
return i.kind === o && u.kind === s || i.kind === s && u.kind === o;
|
|
2859
|
-
}
|
|
2860
|
-
}
|
|
2861
|
-
}
|
|
2862
|
-
function ze(e, r) {
|
|
2863
|
-
let t = r.originalText.slice(e.position.start.offset, e.position.end.offset), { numberText: n, leadingSpaces: u } = t.match(/^\s*(?<numberText>\d+)(\.|\))(?<leadingSpaces>\s*)/u).groups;
|
|
2864
|
-
return { number: Number(n), leadingSpaces: u };
|
|
2865
|
-
}
|
|
2866
|
-
function ki(e, r) {
|
|
2867
|
-
return !e.ordered || e.children.length < 2 || ze(e.children[1], r).number !== 1 ? false : ze(e.children[0], r).number !== 0 ? true : e.children.length > 2 && ze(e.children[2], r).number === 1;
|
|
2868
|
-
}
|
|
2869
|
-
function Ur(e, r) {
|
|
2870
|
-
let { value: t } = e;
|
|
2871
|
-
return e.position.end.offset === r.length && t.endsWith(`
|
|
2872
|
-
`) && r.endsWith(`
|
|
2873
|
-
`) ? t.slice(0, -1) : t;
|
|
2874
|
-
}
|
|
2875
|
-
function ye(e, r) {
|
|
2876
|
-
return (function t(n, u, i) {
|
|
2877
|
-
let a = { ...r(n, u, i) };
|
|
2878
|
-
return a.children && (a.children = a.children.map((o, s) => t(o, s, [a, ...i]))), a;
|
|
2879
|
-
})(e, null, []);
|
|
2880
|
-
}
|
|
2881
|
-
function Yr(e) {
|
|
2882
|
-
if (e?.type !== "link" || e.children.length !== 1) return false;
|
|
2883
|
-
let [r] = e.children;
|
|
2884
|
-
return qe(e) === qe(r) && Ne(e) === Ne(r);
|
|
2885
|
-
}
|
|
2886
|
-
function lr(e) {
|
|
2887
|
-
let r;
|
|
2888
|
-
if (e.type === "html") r = e.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/u);
|
|
2889
|
-
else {
|
|
2890
|
-
let t;
|
|
2891
|
-
e.type === "esComment" ? t = e : e.type === "paragraph" && e.children.length === 1 && e.children[0].type === "esComment" && (t = e.children[0]), t && (r = t.value.match(/^prettier-ignore(?:-(start|end))?$/u));
|
|
2892
|
-
}
|
|
2893
|
-
return r ? r[1] || "next" : false;
|
|
2894
|
-
}
|
|
2895
|
-
function Gr(e, r) {
|
|
2896
|
-
return t(e, r, (n) => n.ordered === e.ordered);
|
|
2897
|
-
function t(n, u, i) {
|
|
2898
|
-
let a = -1;
|
|
2899
|
-
for (let o of u.children) if (o.type === n.type && i(o) ? a++ : a = -1, o === n) return a;
|
|
2900
|
-
}
|
|
2901
|
-
}
|
|
2902
|
-
function df(e, r) {
|
|
2903
|
-
let { node: t } = e;
|
|
2904
|
-
if (t.type === "code" && t.lang !== null) {
|
|
2905
|
-
let n = Fi(r, { language: t.lang });
|
|
2906
|
-
if (n) return async (u) => {
|
|
2907
|
-
let i = r.__inJsTemplate ? "~" : "`", a = i.repeat(Math.max(3, Ir(t.value, i) + 1)), o = { parser: n };
|
|
2908
|
-
t.lang === "ts" || t.lang === "typescript" ? o.filepath = "dummy.ts" : t.lang === "tsx" && (o.filepath = "dummy.tsx");
|
|
2909
|
-
let s = await u(Ur(t, r.originalText), o);
|
|
2910
|
-
return ur([a, t.lang, t.meta ? " " + t.meta : "", M, xe(s), M, a]);
|
|
2911
|
-
};
|
|
2912
|
-
}
|
|
2913
|
-
switch (t.type) {
|
|
2914
|
-
case "import":
|
|
2915
|
-
case "export":
|
|
2916
|
-
return (n) => n(t.value, { __onHtmlBindingRoot: (u) => mf(u, t.type), parser: "babel" });
|
|
2917
|
-
case "jsx":
|
|
2918
|
-
return (n) => n(`<$>${t.value}</$>`, { parser: "__js_expression", rootMarker: "mdx" });
|
|
2919
|
-
}
|
|
2920
|
-
return null;
|
|
2921
|
-
}
|
|
2922
|
-
function mf(e, r) {
|
|
2923
|
-
let { program: { body: t } } = e;
|
|
2924
|
-
if (!t.every((n) => n.type === "ImportDeclaration" || n.type === "ExportDefaultDeclaration" || n.type === "ExportNamedDeclaration")) throw new Error(`Unexpected '${r}' in MDX.`);
|
|
2925
|
-
}
|
|
2926
|
-
var Ti = df;
|
|
2927
|
-
var fr = null;
|
|
2928
|
-
function Dr(e) {
|
|
2929
|
-
if (fr !== null && typeof fr.property) {
|
|
2930
|
-
let r = fr;
|
|
2931
|
-
return fr = Dr.prototype = null, r;
|
|
2932
|
-
}
|
|
2933
|
-
return fr = Dr.prototype = e ?? /* @__PURE__ */ Object.create(null), new Dr();
|
|
2934
|
-
}
|
|
2935
|
-
var Ff = 10;
|
|
2936
|
-
for (let e = 0; e <= Ff; e++) Dr();
|
|
2937
|
-
function Tt(e) {
|
|
2938
|
-
return Dr(e);
|
|
2939
|
-
}
|
|
2940
|
-
function gf(e, r = "type") {
|
|
2941
|
-
Tt(e);
|
|
2942
|
-
function t(n) {
|
|
2943
|
-
let u = n[r], i = e[u];
|
|
2944
|
-
if (!Array.isArray(i)) throw Object.assign(new Error(`Missing visitor keys for '${u}'.`), { node: n });
|
|
2945
|
-
return i;
|
|
2946
|
-
}
|
|
2947
|
-
return t;
|
|
2948
|
-
}
|
|
2949
|
-
var Bi = gf;
|
|
2950
|
-
var q = [["children"], []];
|
|
2951
|
-
var _i = { root: q[0], paragraph: q[0], sentence: q[0], word: q[1], whitespace: q[1], emphasis: q[0], strong: q[0], delete: q[0], inlineCode: q[1], wikiLink: q[1], link: q[0], image: q[1], blockquote: q[0], heading: q[0], code: q[1], html: q[1], list: q[0], thematicBreak: q[1], linkReference: q[0], imageReference: q[1], definition: q[1], footnote: q[0], footnoteReference: q[1], footnoteDefinition: q[0], table: q[0], tableCell: q[0], break: q[1], liquidNode: q[1], import: q[1], export: q[1], esComment: q[1], jsx: q[1], math: q[1], inlineMath: q[1], tableRow: q[0], listItem: q[0], text: q[1] };
|
|
2952
|
-
var Ef = Bi(_i);
|
|
2953
|
-
var Oi = Ef;
|
|
2954
|
-
function z(e, r, t, n = {}) {
|
|
2955
|
-
let { processor: u = t } = n, i = [];
|
|
2956
|
-
return e.each(() => {
|
|
2957
|
-
let a = u(e);
|
|
2958
|
-
a !== false && (i.length > 0 && Cf(e) && (i.push(M), (Af(e, r) || qi(e)) && i.push(M), qi(e) && i.push(M)), i.push(a));
|
|
2959
|
-
}, "children"), i;
|
|
2960
|
-
}
|
|
2961
|
-
function Cf({ node: e, parent: r }) {
|
|
2962
|
-
let t = kt.has(e.type), n = e.type === "html" && Rr.has(r.type);
|
|
2963
|
-
return !t && !n;
|
|
2964
|
-
}
|
|
2965
|
-
var vf = /* @__PURE__ */ new Set(["listItem", "definition"]);
|
|
2966
|
-
function Af({ node: e, previous: r, parent: t }, n) {
|
|
2967
|
-
if (Ni(r, n) || e.type === "list" && t.type === "listItem" && r.type === "code") return true;
|
|
2968
|
-
let i = r.type === e.type && vf.has(e.type), a = t.type === "listItem" && (e.type === "list" || !Ni(t, n)), o = lr(r) === "next", s = e.type === "html" && r.type === "html" && r.position.end.line + 1 === e.position.start.line, f = e.type === "html" && t.type === "listItem" && r.type === "paragraph" && r.position.end.line + 1 === e.position.start.line;
|
|
2969
|
-
return !(i || a || o || s || f);
|
|
2970
|
-
}
|
|
2971
|
-
function qi({ node: e, previous: r }) {
|
|
2972
|
-
let t = r.type === "list", n = e.type === "code" && e.isIndented;
|
|
2973
|
-
return t && n;
|
|
2974
|
-
}
|
|
2975
|
-
function Ni(e, r) {
|
|
2976
|
-
return e.type === "listItem" && (e.spread || r.originalText.charAt(e.position.end.offset - 1) === `
|
|
2977
|
-
`);
|
|
2978
|
-
}
|
|
2979
|
-
function Ii(e, r, t) {
|
|
2980
|
-
let { node: n } = e, u = Gr(n, e.parent), i = ki(n, r);
|
|
2981
|
-
return z(e, r, t, { processor() {
|
|
2982
|
-
let a = s(), { node: o } = e;
|
|
2983
|
-
if (o.children.length === 2 && o.children[1].type === "html" && o.children[0].position.start.column !== o.children[1].position.start.column) return [a, Pi(e, r, t, a)];
|
|
2984
|
-
return [a, Fe(" ".repeat(a.length), Pi(e, r, t, a))];
|
|
2985
|
-
function s() {
|
|
2986
|
-
let f = n.ordered ? (e.isFirst ? n.start : i ? 1 : n.start + e.index) + (u % 2 === 0 ? ". " : ") ") : u % 2 === 0 ? "- " : "* ";
|
|
2987
|
-
return (n.isAligned || n.hasIndentedCodeblock) && n.ordered ? bf(f, r) : f;
|
|
2988
|
-
}
|
|
2989
|
-
} });
|
|
2990
|
-
}
|
|
2991
|
-
function Pi(e, r, t, n) {
|
|
2992
|
-
let { node: u } = e, i = u.checked === null ? "" : u.checked ? "[x] " : "[ ] ";
|
|
2993
|
-
return [i, z(e, r, t, { processor({ node: a, isFirst: o }) {
|
|
2994
|
-
if (o && a.type !== "list") return Fe(" ".repeat(i.length), t());
|
|
2995
|
-
let s = " ".repeat(xf(r.tabWidth - n.length, 0, 3));
|
|
2996
|
-
return [s, Fe(s, t())];
|
|
2997
|
-
} })];
|
|
2998
|
-
}
|
|
2999
|
-
function bf(e, r) {
|
|
3000
|
-
let t = n();
|
|
3001
|
-
return e + " ".repeat(t >= 4 ? 0 : t);
|
|
3002
|
-
function n() {
|
|
3003
|
-
let u = e.length % r.tabWidth;
|
|
3004
|
-
return u === 0 ? 0 : r.tabWidth - u;
|
|
3005
|
-
}
|
|
3006
|
-
}
|
|
3007
|
-
function xf(e, r, t) {
|
|
3008
|
-
return Math.max(r, Math.min(e, t));
|
|
3009
|
-
}
|
|
3010
|
-
function Si(e, r, t) {
|
|
3011
|
-
let { node: n } = e, u = [], i = e.map(() => e.map(({ index: l }) => {
|
|
3012
|
-
let D = ui(t(), r).formatted, m = or(D);
|
|
3013
|
-
return u[l] = Math.max(u[l] ?? 3, m), { text: D, width: m };
|
|
3014
|
-
}, "children"), "children"), a = s(false);
|
|
3015
|
-
if (r.proseWrap !== "never") return [Ue, a];
|
|
3016
|
-
let o = s(true);
|
|
3017
|
-
return [Ue, Ge(Qn(o, a))];
|
|
3018
|
-
function s(l) {
|
|
3019
|
-
return _r(ar, [c(i[0], l), f(l), ...i.slice(1).map((D) => c(D, l))].map((D) => `| ${D.join(" | ")} |`));
|
|
3020
|
-
}
|
|
3021
|
-
function f(l) {
|
|
3022
|
-
return u.map((D, m) => {
|
|
3023
|
-
let p = n.align[m], h = p === "center" || p === "left" ? ":" : "-", F = p === "center" || p === "right" ? ":" : "-", g = l ? "-" : "-".repeat(D - 2);
|
|
3024
|
-
return `${h}${g}${F}`;
|
|
3025
|
-
});
|
|
3026
|
-
}
|
|
3027
|
-
function c(l, D) {
|
|
3028
|
-
return l.map(({ text: m, width: p }, h) => {
|
|
3029
|
-
if (D) return m;
|
|
3030
|
-
let F = u[h] - p, g = n.align[h], E = 0;
|
|
3031
|
-
g === "right" ? E = F : g === "center" && (E = Math.floor(F / 2));
|
|
3032
|
-
let v = F - E;
|
|
3033
|
-
return `${" ".repeat(E)}${m}${" ".repeat(v)}`;
|
|
3034
|
-
});
|
|
3035
|
-
}
|
|
3036
|
-
}
|
|
3037
|
-
function Li(e) {
|
|
3038
|
-
let { node: r } = e, t = R(0, R(0, r.value, "*", "\\*"), new RegExp([`(^|${Oe.source})(_+)`, `(_+)(${Oe.source}|$)`].join("|"), "gu"), (i, a, o, s, f) => R(0, o ? `${a}${o}` : `${s}${f}`, "_", "\\_")), n = (i, a, o) => i.type === "sentence" && o === 0, u = (i, a, o) => Yr(i.children[o - 1]);
|
|
3039
|
-
return t !== r.value && (e.match(void 0, n, u) || e.match(void 0, n, (i, a, o) => i.type === "emphasis" && o === 0, u)) && (t = t.replace(/^(\\?[*_])+/u, (i) => R(0, i, "\\", ""))), t;
|
|
3040
|
-
}
|
|
3041
|
-
function Ri(e, r, t) {
|
|
3042
|
-
let n = e.map(t, "children");
|
|
3043
|
-
return yf(n);
|
|
3044
|
-
}
|
|
3045
|
-
function yf(e) {
|
|
3046
|
-
let r = [""];
|
|
3047
|
-
return (function t(n) {
|
|
3048
|
-
for (let u of n) {
|
|
3049
|
-
let i = W(u);
|
|
3050
|
-
if (i === j) {
|
|
3051
|
-
t(u);
|
|
3052
|
-
continue;
|
|
3053
|
-
}
|
|
3054
|
-
let a = u, o = [];
|
|
3055
|
-
i === J && ([a, ...o] = u.parts), r.push([r.pop(), a], ...o);
|
|
3056
|
-
}
|
|
3057
|
-
})(e), Ye(r);
|
|
3058
|
-
}
|
|
3059
|
-
var Bt = class {
|
|
3060
|
-
#e;
|
|
3061
|
-
constructor(r) {
|
|
3062
|
-
this.#e = new Set(r);
|
|
3063
|
-
}
|
|
3064
|
-
getLeadingWhitespaceCount(r) {
|
|
3065
|
-
let t = this.#e, n = 0;
|
|
3066
|
-
for (let u = 0; u < r.length && t.has(r.charAt(u)); u++) n++;
|
|
3067
|
-
return n;
|
|
3068
|
-
}
|
|
3069
|
-
getTrailingWhitespaceCount(r) {
|
|
3070
|
-
let t = this.#e, n = 0;
|
|
3071
|
-
for (let u = r.length - 1; u >= 0 && t.has(r.charAt(u)); u--) n++;
|
|
3072
|
-
return n;
|
|
3073
|
-
}
|
|
3074
|
-
getLeadingWhitespace(r) {
|
|
3075
|
-
let t = this.getLeadingWhitespaceCount(r);
|
|
3076
|
-
return r.slice(0, t);
|
|
3077
|
-
}
|
|
3078
|
-
getTrailingWhitespace(r) {
|
|
3079
|
-
let t = this.getTrailingWhitespaceCount(r);
|
|
3080
|
-
return r.slice(r.length - t);
|
|
3081
|
-
}
|
|
3082
|
-
hasLeadingWhitespace(r) {
|
|
3083
|
-
return this.#e.has(r.charAt(0));
|
|
3084
|
-
}
|
|
3085
|
-
hasTrailingWhitespace(r) {
|
|
3086
|
-
return this.#e.has(U(0, r, -1));
|
|
3087
|
-
}
|
|
3088
|
-
trimStart(r) {
|
|
3089
|
-
let t = this.getLeadingWhitespaceCount(r);
|
|
3090
|
-
return r.slice(t);
|
|
3091
|
-
}
|
|
3092
|
-
trimEnd(r) {
|
|
3093
|
-
let t = this.getTrailingWhitespaceCount(r);
|
|
3094
|
-
return r.slice(0, r.length - t);
|
|
3095
|
-
}
|
|
3096
|
-
trim(r) {
|
|
3097
|
-
return this.trimEnd(this.trimStart(r));
|
|
3098
|
-
}
|
|
3099
|
-
split(r, t = false) {
|
|
3100
|
-
let n = `[${fe([...this.#e].join(""))}]+`, u = new RegExp(t ? `(${n})` : n, "u");
|
|
3101
|
-
return r.split(u);
|
|
3102
|
-
}
|
|
3103
|
-
hasWhitespaceCharacter(r) {
|
|
3104
|
-
let t = this.#e;
|
|
3105
|
-
return Array.prototype.some.call(r, (n) => t.has(n));
|
|
3106
|
-
}
|
|
3107
|
-
hasNonWhitespaceCharacter(r) {
|
|
3108
|
-
let t = this.#e;
|
|
3109
|
-
return Array.prototype.some.call(r, (n) => !t.has(n));
|
|
3110
|
-
}
|
|
3111
|
-
isWhitespaceOnly(r) {
|
|
3112
|
-
let t = this.#e;
|
|
3113
|
-
return Array.prototype.every.call(r, (n) => t.has(n));
|
|
3114
|
-
}
|
|
3115
|
-
#r(r) {
|
|
3116
|
-
let t = Number.POSITIVE_INFINITY;
|
|
3117
|
-
for (let n of r.split(`
|
|
3118
|
-
`)) {
|
|
3119
|
-
if (n.length === 0) continue;
|
|
3120
|
-
let u = this.getLeadingWhitespaceCount(n);
|
|
3121
|
-
if (u === 0) return 0;
|
|
3122
|
-
n.length !== u && u < t && (t = u);
|
|
3123
|
-
}
|
|
3124
|
-
return t === Number.POSITIVE_INFINITY ? 0 : t;
|
|
3125
|
-
}
|
|
3126
|
-
dedentString(r) {
|
|
3127
|
-
let t = this.#r(r);
|
|
3128
|
-
return t === 0 ? r : r.split(`
|
|
3129
|
-
`).map((n) => n.slice(t)).join(`
|
|
3130
|
-
`);
|
|
3131
|
-
}
|
|
3132
|
-
};
|
|
3133
|
-
var Mi = Bt;
|
|
3134
|
-
var wf = [" ", `
|
|
3135
|
-
`, "\f", "\r", " "];
|
|
3136
|
-
var kf = new Mi(wf);
|
|
3137
|
-
var _t = kf;
|
|
3138
|
-
var Tf = /^\\?.$/su;
|
|
3139
|
-
var Bf = /^\n *>[ >]*$/u;
|
|
3140
|
-
function _f(e, r) {
|
|
3141
|
-
return e = Of(e, r), e = Nf(e), e = If(e, r), e = Sf(e, r), e = Pf(e), e;
|
|
3142
|
-
}
|
|
3143
|
-
function Of(e, r) {
|
|
3144
|
-
return ye(e, (t) => {
|
|
3145
|
-
if (t.type !== "text") return t;
|
|
3146
|
-
let { value: n } = t;
|
|
3147
|
-
if (n === "*" || n === "_" || !Tf.test(n) || t.position.end.offset - t.position.start.offset === n.length) return t;
|
|
3148
|
-
let u = r.originalText.slice(t.position.start.offset, t.position.end.offset);
|
|
3149
|
-
return Bf.test(u) ? t : { ...t, value: u };
|
|
3150
|
-
});
|
|
3151
|
-
}
|
|
3152
|
-
function qf(e, r, t) {
|
|
3153
|
-
return ye(e, (n) => {
|
|
3154
|
-
if (!n.children) return n;
|
|
3155
|
-
let u = [], i, a;
|
|
3156
|
-
for (let o of n.children) i && r(i, o) ? (o = t(i, o), u.splice(-1, 1, o), a || (a = true)) : u.push(o), i = o;
|
|
3157
|
-
return a ? { ...n, children: u } : n;
|
|
3158
|
-
});
|
|
3159
|
-
}
|
|
3160
|
-
function Nf(e) {
|
|
3161
|
-
return qf(e, (r, t) => r.type === "text" && t.type === "text", (r, t) => ({ type: "text", value: r.value + t.value, position: { start: r.position.start, end: t.position.end } }));
|
|
3162
|
-
}
|
|
3163
|
-
function Pf(e) {
|
|
3164
|
-
return ye(e, (r, t, [n]) => {
|
|
3165
|
-
if (r.type !== "text") return r;
|
|
3166
|
-
let { value: u } = r;
|
|
3167
|
-
return n.type === "paragraph" && (t === 0 && (u = _t.trimStart(u)), t === n.children.length - 1 && (u = _t.trimEnd(u))), { type: "sentence", position: r.position, children: Mr(u) };
|
|
3168
|
-
});
|
|
3169
|
-
}
|
|
3170
|
-
function If(e, r) {
|
|
3171
|
-
return ye(e, (t, n, u) => {
|
|
3172
|
-
if (t.type === "code") {
|
|
3173
|
-
let i = /^\n?(?: {4,}|\t)/u.test(r.originalText.slice(t.position.start.offset, t.position.end.offset));
|
|
3174
|
-
if (t.isIndented = i, i) for (let a = 0; a < u.length; a++) {
|
|
3175
|
-
let o = u[a];
|
|
3176
|
-
if (o.hasIndentedCodeblock) break;
|
|
3177
|
-
o.type === "list" && (o.hasIndentedCodeblock = true);
|
|
3178
|
-
}
|
|
3179
|
-
}
|
|
3180
|
-
return t;
|
|
3181
|
-
});
|
|
3182
|
-
}
|
|
3183
|
-
function Sf(e, r) {
|
|
3184
|
-
return ye(e, (u, i, a) => {
|
|
3185
|
-
if (u.type === "list" && u.children.length > 0) {
|
|
3186
|
-
for (let o = 0; o < a.length; o++) {
|
|
3187
|
-
let s = a[o];
|
|
3188
|
-
if (s.type === "list" && !s.isAligned) return u.isAligned = false, u;
|
|
3189
|
-
}
|
|
3190
|
-
u.isAligned = n(u);
|
|
3191
|
-
}
|
|
3192
|
-
return u;
|
|
3193
|
-
});
|
|
3194
|
-
function t(u) {
|
|
3195
|
-
return u.children.length === 0 ? -1 : u.children[0].position.start.column - 1;
|
|
3196
|
-
}
|
|
3197
|
-
function n(u) {
|
|
3198
|
-
if (!u.ordered) return true;
|
|
3199
|
-
let [i, a] = u.children;
|
|
3200
|
-
if (ze(i, r).leadingSpaces.length > 1) return true;
|
|
3201
|
-
let s = t(i);
|
|
3202
|
-
if (s === -1) return false;
|
|
3203
|
-
if (u.children.length === 1) return s % r.tabWidth === 0;
|
|
3204
|
-
let f = t(a);
|
|
3205
|
-
return s !== f ? false : s % r.tabWidth === 0 ? true : ze(a, r).leadingSpaces.length > 1;
|
|
3206
|
-
}
|
|
3207
|
-
}
|
|
3208
|
-
var Ui = _f;
|
|
3209
|
-
function Yi(e, r) {
|
|
3210
|
-
let t = [""];
|
|
3211
|
-
return e.each(() => {
|
|
3212
|
-
let { node: n } = e, u = r();
|
|
3213
|
-
switch (n.type) {
|
|
3214
|
-
case "whitespace":
|
|
3215
|
-
if (W(u) !== V) {
|
|
3216
|
-
t.push(u, "");
|
|
3217
|
-
break;
|
|
3218
|
-
}
|
|
3219
|
-
default:
|
|
3220
|
-
t.push([t.pop(), u]);
|
|
3221
|
-
}
|
|
3222
|
-
}, "children"), Ye(t);
|
|
3223
|
-
}
|
|
3224
|
-
var Lf = /* @__PURE__ */ new Set(["heading", "tableCell", "link", "wikiLink"]);
|
|
3225
|
-
var Gi = new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");
|
|
3226
|
-
function Rf({ parent: e }) {
|
|
3227
|
-
if (e.usesCJSpaces === void 0) {
|
|
3228
|
-
let r = { " ": 0, "": 0 }, { children: t } = e;
|
|
3229
|
-
for (let n = 1; n < t.length - 1; ++n) {
|
|
3230
|
-
let u = t[n];
|
|
3231
|
-
if (u.type === "whitespace" && (u.value === " " || u.value === "")) {
|
|
3232
|
-
let i = t[n - 1].kind, a = t[n + 1].kind;
|
|
3233
|
-
(i === ae && a === We || i === We && a === ae) && ++r[u.value];
|
|
3234
|
-
}
|
|
3235
|
-
}
|
|
3236
|
-
e.usesCJSpaces = r[" "] > r[""];
|
|
3237
|
-
}
|
|
3238
|
-
return e.usesCJSpaces;
|
|
3239
|
-
}
|
|
3240
|
-
function Mf(e, r) {
|
|
3241
|
-
if (r) return true;
|
|
3242
|
-
let { previous: t, next: n } = e;
|
|
3243
|
-
if (!t || !n) return true;
|
|
3244
|
-
let u = t.kind, i = n.kind;
|
|
3245
|
-
return zi(u) && zi(i) || u === Pe && i === ae || i === Pe && u === ae ? true : u === cr || i === cr || u === ae && i === ae ? false : Gi.has(n.value[0]) || Gi.has(U(0, t.value, -1)) ? true : t.hasTrailingPunctuation || n.hasLeadingPunctuation ? false : Rf(e);
|
|
3246
|
-
}
|
|
3247
|
-
function zi(e) {
|
|
3248
|
-
return e === We || e === Pe;
|
|
3249
|
-
}
|
|
3250
|
-
function Uf(e, r, t, n) {
|
|
3251
|
-
if (t !== "always" || e.hasAncestor((a) => Lf.has(a.type))) return false;
|
|
3252
|
-
if (n) return r !== "";
|
|
3253
|
-
let { previous: u, next: i } = e;
|
|
3254
|
-
return !u || !i ? true : r === "" ? false : u.kind === Pe && i.kind === ae || i.kind === Pe && u.kind === ae ? true : !(u.isCJ || i.isCJ);
|
|
3255
|
-
}
|
|
3256
|
-
function Ot(e, r, t, n) {
|
|
3257
|
-
if (t === "preserve" && r === `
|
|
3258
|
-
`) return M;
|
|
3259
|
-
let u = r === " " || r === `
|
|
3260
|
-
` && Mf(e, n);
|
|
3261
|
-
return Uf(e, r, t, n) ? u ? qr : Nr : u ? " " : "";
|
|
3262
|
-
}
|
|
3263
|
-
function Wi(e) {
|
|
3264
|
-
let { previous: r, next: t } = e;
|
|
3265
|
-
return r?.type === "sentence" && U(0, r.children, -1)?.type === "word" && !U(0, r.children, -1).hasTrailingPunctuation || t?.type === "sentence" && t.children[0]?.type === "word" && !t.children[0].hasLeadingPunctuation;
|
|
3266
|
-
}
|
|
3267
|
-
function Yf(e, r, t) {
|
|
3268
|
-
let { node: n } = e;
|
|
3269
|
-
if (zf(e)) {
|
|
3270
|
-
let u = [""], i = Mr(r.originalText.slice(n.position.start.offset, n.position.end.offset));
|
|
3271
|
-
for (let a of i) {
|
|
3272
|
-
if (a.type === "word") {
|
|
3273
|
-
u.push([u.pop(), a.value]);
|
|
3274
|
-
continue;
|
|
3275
|
-
}
|
|
3276
|
-
let o = Ot(e, a.value, r.proseWrap, true);
|
|
3277
|
-
if (W(o) === V) {
|
|
3278
|
-
u.push([u.pop(), o]);
|
|
3279
|
-
continue;
|
|
3280
|
-
}
|
|
3281
|
-
u.push(o, "");
|
|
3282
|
-
}
|
|
3283
|
-
return Ye(u);
|
|
3284
|
-
}
|
|
3285
|
-
switch (n.type) {
|
|
3286
|
-
case "root":
|
|
3287
|
-
return n.children.length === 0 ? "" : [Gf(e, r, t), M];
|
|
3288
|
-
case "paragraph":
|
|
3289
|
-
return Ri(e, r, t);
|
|
3290
|
-
case "sentence":
|
|
3291
|
-
return Yi(e, t);
|
|
3292
|
-
case "word":
|
|
3293
|
-
return Li(e);
|
|
3294
|
-
case "whitespace": {
|
|
3295
|
-
let { next: u } = e, i = u && /^>|^(?:[*+-]|#{1,6}|\d+[).])$/u.test(u.value) ? "never" : r.proseWrap;
|
|
3296
|
-
return Ot(e, n.value, i);
|
|
3297
|
-
}
|
|
3298
|
-
case "emphasis": {
|
|
3299
|
-
let u;
|
|
3300
|
-
if (Yr(n.children[0])) u = r.originalText[n.position.start.offset];
|
|
3301
|
-
else {
|
|
3302
|
-
let i = Wi(e), a = e.callParent(({ node: o }) => o.type === "strong" && Wi(e));
|
|
3303
|
-
u = i || a || e.hasAncestor((o) => o.type === "emphasis") ? "*" : "_";
|
|
3304
|
-
}
|
|
3305
|
-
return [u, z(e, r, t), u];
|
|
3306
|
-
}
|
|
3307
|
-
case "strong":
|
|
3308
|
-
return ["**", z(e, r, t), "**"];
|
|
3309
|
-
case "delete":
|
|
3310
|
-
return ["~~", z(e, r, t), "~~"];
|
|
3311
|
-
case "inlineCode": {
|
|
3312
|
-
let u = r.proseWrap === "preserve" ? n.value : R(0, n.value, `
|
|
3313
|
-
`, " "), i = ai(u, "`"), a = "`".repeat(i), o = u.startsWith("`") || u.endsWith("`") || /^[\n ]/u.test(u) && /[\n ]$/u.test(u) && /[^\n ]/u.test(u) ? " " : "";
|
|
3314
|
-
return [a, o, u, o, a];
|
|
3315
|
-
}
|
|
3316
|
-
case "wikiLink": {
|
|
3317
|
-
let u = "";
|
|
3318
|
-
return r.proseWrap === "preserve" ? u = n.value : u = R(0, n.value, /[\t\n]+/gu, " "), ["[[", u, "]]"];
|
|
3319
|
-
}
|
|
3320
|
-
case "link":
|
|
3321
|
-
switch (r.originalText[n.position.start.offset]) {
|
|
3322
|
-
case "<": {
|
|
3323
|
-
let u = "mailto:";
|
|
3324
|
-
return ["<", n.url.startsWith(u) && r.originalText.slice(n.position.start.offset + 1, n.position.start.offset + 1 + u.length) !== u ? n.url.slice(u.length) : n.url, ">"];
|
|
3325
|
-
}
|
|
3326
|
-
case "[":
|
|
3327
|
-
return ["[", z(e, r, t), "](", qt(n.url, ")"), zr(n.title, r), ")"];
|
|
3328
|
-
default:
|
|
3329
|
-
return r.originalText.slice(n.position.start.offset, n.position.end.offset);
|
|
3330
|
-
}
|
|
3331
|
-
case "image":
|
|
3332
|
-
return [""), zr(n.title, r), ")"];
|
|
3333
|
-
case "blockquote":
|
|
3334
|
-
return ["> ", Fe("> ", z(e, r, t))];
|
|
3335
|
-
case "heading":
|
|
3336
|
-
return ["#".repeat(n.depth) + " ", z(e, r, t)];
|
|
3337
|
-
case "code": {
|
|
3338
|
-
if (n.isIndented) {
|
|
3339
|
-
let a = " ".repeat(4);
|
|
3340
|
-
return Fe(a, [a, xe(n.value, M)]);
|
|
3341
|
-
}
|
|
3342
|
-
let u = r.__inJsTemplate ? "~" : "`", i = u.repeat(Math.max(3, Ir(n.value, u) + 1));
|
|
3343
|
-
return [i, n.lang || "", n.meta ? " " + n.meta : "", M, xe(Ur(n, r.originalText), M), M, i];
|
|
3344
|
-
}
|
|
3345
|
-
case "html": {
|
|
3346
|
-
let { parent: u, isLast: i } = e, a = u.type === "root" && i ? n.value.trimEnd() : n.value, o = /^<!--.*-->$/su.test(a);
|
|
3347
|
-
return xe(a, o ? M : ur(nr));
|
|
3348
|
-
}
|
|
3349
|
-
case "list":
|
|
3350
|
-
return Ii(e, r, t);
|
|
3351
|
-
case "thematicBreak": {
|
|
3352
|
-
let { ancestors: u } = e, i = u.findIndex((o) => o.type === "list");
|
|
3353
|
-
return i === -1 ? "---" : Gr(u[i], u[i + 1]) % 2 === 0 ? "***" : "---";
|
|
3354
|
-
}
|
|
3355
|
-
case "linkReference":
|
|
3356
|
-
return ["[", z(e, r, t), "]", n.referenceType === "full" ? Nt(n) : n.referenceType === "collapsed" ? "[]" : ""];
|
|
3357
|
-
case "imageReference":
|
|
3358
|
-
switch (n.referenceType) {
|
|
3359
|
-
case "full":
|
|
3360
|
-
return ["![", n.alt || "", "]", Nt(n)];
|
|
3361
|
-
default:
|
|
3362
|
-
return ["![", n.alt, "]", n.referenceType === "collapsed" ? "[]" : ""];
|
|
3363
|
-
}
|
|
3364
|
-
case "definition": {
|
|
3365
|
-
let u = r.proseWrap === "always" ? qr : " ";
|
|
3366
|
-
return Ge([Nt(n), ":", ir([u, qt(n.url), n.title === null ? "" : [u, zr(n.title, r, false)]])]);
|
|
3367
|
-
}
|
|
3368
|
-
case "footnote":
|
|
3369
|
-
return ["[^", z(e, r, t), "]"];
|
|
3370
|
-
case "footnoteReference":
|
|
3371
|
-
return ji(n);
|
|
3372
|
-
case "footnoteDefinition": {
|
|
3373
|
-
let u = n.children.length === 1 && n.children[0].type === "paragraph" && (r.proseWrap === "never" || r.proseWrap === "preserve" && n.children[0].position.start.line === n.children[0].position.end.line);
|
|
3374
|
-
return [ji(n), ": ", u ? z(e, r, t) : Ge([Fe(" ".repeat(4), z(e, r, t, { processor: ({ isFirst: i }) => i ? Ge([Nr, t()]) : t() }))])];
|
|
3375
|
-
}
|
|
3376
|
-
case "table":
|
|
3377
|
-
return Si(e, r, t);
|
|
3378
|
-
case "tableCell":
|
|
3379
|
-
return z(e, r, t);
|
|
3380
|
-
case "break":
|
|
3381
|
-
return /\s/u.test(r.originalText[n.position.start.offset]) ? [" ", ur(nr)] : ["\\", M];
|
|
3382
|
-
case "liquidNode":
|
|
3383
|
-
return xe(n.value, M);
|
|
3384
|
-
case "import":
|
|
3385
|
-
case "export":
|
|
3386
|
-
case "jsx":
|
|
3387
|
-
return n.value.trimEnd();
|
|
3388
|
-
case "esComment":
|
|
3389
|
-
return ["{/* ", n.value, " */}"];
|
|
3390
|
-
case "math":
|
|
3391
|
-
return ["$$", M, n.value ? [xe(n.value, M), M] : "", "$$"];
|
|
3392
|
-
case "inlineMath":
|
|
3393
|
-
return r.originalText.slice(qe(n), Ne(n));
|
|
3394
|
-
case "frontMatter":
|
|
3395
|
-
case "tableRow":
|
|
3396
|
-
case "listItem":
|
|
3397
|
-
case "text":
|
|
3398
|
-
default:
|
|
3399
|
-
throw new li(n, "Markdown");
|
|
3400
|
-
}
|
|
3401
|
-
}
|
|
3402
|
-
function Gf(e, r, t) {
|
|
3403
|
-
let n = [], u = null, { children: i } = e.node;
|
|
3404
|
-
for (let [a, o] of i.entries()) switch (lr(o)) {
|
|
3405
|
-
case "start":
|
|
3406
|
-
u === null && (u = { index: a, offset: o.position.end.offset });
|
|
3407
|
-
break;
|
|
3408
|
-
case "end":
|
|
3409
|
-
u !== null && (n.push({ start: u, end: { index: a, offset: o.position.start.offset } }), u = null);
|
|
3410
|
-
break;
|
|
3411
|
-
default:
|
|
3412
|
-
break;
|
|
3413
|
-
}
|
|
3414
|
-
return z(e, r, t, { processor({ index: a }) {
|
|
3415
|
-
if (n.length > 0) {
|
|
3416
|
-
let o = n[0];
|
|
3417
|
-
if (a === o.start.index) return [Vi(i[o.start.index]), r.originalText.slice(o.start.offset, o.end.offset), Vi(i[o.end.index])];
|
|
3418
|
-
if (o.start.index < a && a < o.end.index) return false;
|
|
3419
|
-
if (a === o.end.index) return n.shift(), false;
|
|
3420
|
-
}
|
|
3421
|
-
return t();
|
|
3422
|
-
} });
|
|
3423
|
-
}
|
|
3424
|
-
function Vi(e) {
|
|
3425
|
-
if (e.type === "html") return e.value;
|
|
3426
|
-
if (e.type === "paragraph" && Array.isArray(e.children) && e.children.length === 1 && e.children[0].type === "esComment") return ["{/* ", e.children[0].value, " */}"];
|
|
3427
|
-
}
|
|
3428
|
-
function zf(e) {
|
|
3429
|
-
let r = e.findAncestor((t) => t.type === "linkReference" || t.type === "imageReference");
|
|
3430
|
-
return r && (r.type !== "linkReference" || r.referenceType !== "full");
|
|
3431
|
-
}
|
|
3432
|
-
var Wf = (e, r) => {
|
|
3433
|
-
for (let t of r) e = R(0, e, t, encodeURIComponent(t));
|
|
3434
|
-
return e;
|
|
3435
|
-
};
|
|
3436
|
-
function qt(e, r = []) {
|
|
3437
|
-
let t = [" ", ...Array.isArray(r) ? r : [r]];
|
|
3438
|
-
return new RegExp(t.map((n) => fe(n)).join("|"), "u").test(e) ? `<${Wf(e, "<>")}>` : e;
|
|
3439
|
-
}
|
|
3440
|
-
function zr(e, r, t = true) {
|
|
3441
|
-
if (!e) return "";
|
|
3442
|
-
if (t) return " " + zr(e, r, false);
|
|
3443
|
-
if (e = R(0, e, /\\(?=["')])/gu, ""), e.includes('"') && e.includes("'") && !e.includes(")")) return `(${e})`;
|
|
3444
|
-
let n = ci(e, r.singleQuote);
|
|
3445
|
-
return e = R(0, e, "\\", "\\\\"), e = R(0, e, n, `\\${n}`), `${n}${e}${n}`;
|
|
3446
|
-
}
|
|
3447
|
-
function Vf(e) {
|
|
3448
|
-
return e.index > 0 && lr(e.previous) === "next";
|
|
3449
|
-
}
|
|
3450
|
-
function Nt(e) {
|
|
3451
|
-
return `[${(0, $i.default)(e.label)}]`;
|
|
3452
|
-
}
|
|
3453
|
-
function ji(e) {
|
|
3454
|
-
return `[^${e.label}]`;
|
|
3455
|
-
}
|
|
3456
|
-
var jf = { features: { experimental_frontMatterSupport: { massageAstNode: true, embed: true, print: true } }, preprocess: Ui, print: Yf, embed: Ti, massageAstNode: yi, hasPrettierIgnore: Vf, insertPragma: Ai, getVisitorKeys: Oi };
|
|
3457
|
-
var Hi = jf;
|
|
3458
|
-
var Ki = [{ name: "Markdown", type: "prose", aceMode: "markdown", extensions: [".md", ".livemd", ".markdown", ".mdown", ".mdwn", ".mkd", ".mkdn", ".mkdown", ".ronn", ".scd", ".workbook"], filenames: ["contents.lr", "README"], tmScope: "text.md", aliases: ["md", "pandoc"], codemirrorMode: "gfm", codemirrorMimeType: "text/x-gfm", wrap: true, parsers: ["markdown"], vscodeLanguageIds: ["markdown"], linguistLanguageId: 222 }, { name: "MDX", type: "prose", aceMode: "markdown", extensions: [".mdx"], filenames: [], tmScope: "text.md", aliases: ["md", "pandoc"], codemirrorMode: "gfm", codemirrorMimeType: "text/x-gfm", wrap: true, parsers: ["mdx"], vscodeLanguageIds: ["mdx"], linguistLanguageId: 222 }];
|
|
3459
|
-
var Pt = { bracketSpacing: { category: "Common", type: "boolean", default: true, description: "Print spaces between brackets.", oppositeDescription: "Do not print spaces between brackets." }, objectWrap: { category: "Common", type: "choice", default: "preserve", description: "How to wrap object literals.", choices: [{ value: "preserve", description: "Keep as multi-line, if there is a newline between the opening brace and first property." }, { value: "collapse", description: "Fit to a single line when possible." }] }, singleQuote: { category: "Common", type: "boolean", default: false, description: "Use single quotes instead of double quotes." }, proseWrap: { category: "Common", type: "choice", default: "preserve", description: "How to wrap prose.", choices: [{ value: "always", description: "Wrap prose if it exceeds the print width." }, { value: "never", description: "Do not wrap prose." }, { value: "preserve", description: "Wrap prose as-is." }] }, bracketSameLine: { category: "Common", type: "boolean", default: false, description: "Put > of opening tags on the last line instead of on a new line." }, singleAttributePerLine: { category: "Common", type: "boolean", default: false, description: "Enforce single attribute per line in HTML, Vue and JSX." } };
|
|
3460
|
-
var $f = { proseWrap: Pt.proseWrap, singleQuote: Pt.singleQuote };
|
|
3461
|
-
var Xi = $f;
|
|
3462
|
-
var zn = {};
|
|
3463
|
-
Wn(zn, { markdown: () => cF, mdx: () => lF, remark: () => cF });
|
|
3464
|
-
var Dl = Re(Qi(), 1);
|
|
3465
|
-
var pl = Re(Du(), 1);
|
|
3466
|
-
var hl = Re(oc(), 1);
|
|
3467
|
-
var dl = Re(el(), 1);
|
|
3468
|
-
var rF = /^import\s/u;
|
|
3469
|
-
var tF = /^export\s/u;
|
|
3470
|
-
var rl = "[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)*|";
|
|
3471
|
-
var tl = /<!---->|<!---?[^>-](?:-?[^-])*-->/u;
|
|
3472
|
-
var nF = /^\{\s*\/\*(.*)\*\/\s*\}/u;
|
|
3473
|
-
var iF = (e) => rF.test(e);
|
|
3474
|
-
var nl = (e) => tF.test(e);
|
|
3475
|
-
var il = (e) => iF(e) || nl(e);
|
|
3476
|
-
var Gn = (e, r) => {
|
|
3477
|
-
let t = r.indexOf(`
|
|
3478
|
-
|
|
3479
|
-
`), n = t === -1 ? r : r.slice(0, t);
|
|
3480
|
-
if (il(n)) return e(n)({ type: nl(n) ? "export" : "import", value: n });
|
|
3481
|
-
};
|
|
3482
|
-
Gn.notInBlock = true;
|
|
3483
|
-
Gn.locator = (e) => il(e) ? -1 : 1;
|
|
3484
|
-
var ul = (e, r) => {
|
|
3485
|
-
let t = nF.exec(r);
|
|
3486
|
-
if (t) return e(t[0])({ type: "esComment", value: t[1].trim() });
|
|
3487
|
-
};
|
|
3488
|
-
ul.locator = (e, r) => e.indexOf("{", r);
|
|
3489
|
-
var al = function() {
|
|
3490
|
-
let { Parser: e } = this, { blockTokenizers: r, blockMethods: t, inlineTokenizers: n, inlineMethods: u } = e.prototype;
|
|
3491
|
-
r.esSyntax = Gn, n.esComment = ul, t.splice(t.indexOf("paragraph"), 0, "esSyntax"), u.splice(u.indexOf("text"), 0, "esComment");
|
|
3492
|
-
};
|
|
3493
|
-
var uF = function() {
|
|
3494
|
-
let e = this.Parser.prototype;
|
|
3495
|
-
e.blockMethods = ["frontMatter", ...e.blockMethods], e.blockTokenizers.frontMatter = r;
|
|
3496
|
-
function r(t, n) {
|
|
3497
|
-
let { frontMatter: u } = _e(n);
|
|
3498
|
-
if (u) return t(u.raw)({ ...u, type: "frontMatter" });
|
|
3499
|
-
}
|
|
3500
|
-
r.onlyAtStart = true;
|
|
3501
|
-
};
|
|
3502
|
-
var ol = uF;
|
|
3503
|
-
function aF() {
|
|
3504
|
-
return (e) => ye(e, (r, t, [n]) => r.type !== "html" || tl.test(r.value) || Rr.has(n.type) ? r : { ...r, type: "jsx" });
|
|
3505
|
-
}
|
|
3506
|
-
var sl = aF;
|
|
3507
|
-
var oF = function() {
|
|
3508
|
-
let e = this.Parser.prototype, r = e.inlineMethods;
|
|
3509
|
-
r.splice(r.indexOf("text"), 0, "liquid"), e.inlineTokenizers.liquid = t;
|
|
3510
|
-
function t(n, u) {
|
|
3511
|
-
let i = u.match(/^(\{%.*?%\}|\{\{.*?\}\})/su);
|
|
3512
|
-
if (i) return n(i[0])({ type: "liquidNode", value: i[0] });
|
|
3513
|
-
}
|
|
3514
|
-
t.locator = function(n, u) {
|
|
3515
|
-
return n.indexOf("{", u);
|
|
3516
|
-
};
|
|
3517
|
-
};
|
|
3518
|
-
var cl = oF;
|
|
3519
|
-
var sF = function() {
|
|
3520
|
-
let e = "wikiLink", r = /^\[\[(?<linkContents>.+?)\]\]/su, t = this.Parser.prototype, n = t.inlineMethods;
|
|
3521
|
-
n.splice(n.indexOf("link"), 0, e), t.inlineTokenizers.wikiLink = u;
|
|
3522
|
-
function u(i, a) {
|
|
3523
|
-
let o = r.exec(a);
|
|
3524
|
-
if (o) {
|
|
3525
|
-
let s = o.groups.linkContents.trim();
|
|
3526
|
-
return i(o[0])({ type: e, value: s });
|
|
3527
|
-
}
|
|
3528
|
-
}
|
|
3529
|
-
u.locator = function(i, a) {
|
|
3530
|
-
return i.indexOf("[", a);
|
|
3531
|
-
};
|
|
3532
|
-
};
|
|
3533
|
-
var ll = sF;
|
|
3534
|
-
function ml({ isMDX: e }) {
|
|
3535
|
-
return (r) => {
|
|
3536
|
-
let t = (0, dl.default)().use(hl.default, { commonmark: true, ...e && { blocks: [rl] } }).use(Dl.default).use(ol).use(pl.default).use(e ? al : fl).use(cl).use(e ? sl : fl).use(ll);
|
|
3537
|
-
return t.run(t.parse(r));
|
|
3538
|
-
};
|
|
3539
|
-
}
|
|
3540
|
-
function fl() {
|
|
3541
|
-
}
|
|
3542
|
-
var Fl = { astFormat: "mdast", hasPragma: Lr, hasIgnorePragma: vi, locStart: qe, locEnd: Ne };
|
|
3543
|
-
var cF = { ...Fl, parse: ml({ isMDX: false }) };
|
|
3544
|
-
var lF = { ...Fl, parse: ml({ isMDX: true }) };
|
|
3545
|
-
var fF = { mdast: Hi };
|
|
3546
|
-
export {
|
|
3547
|
-
gl as default,
|
|
3548
|
-
Ki as languages,
|
|
3549
|
-
Xi as options,
|
|
3550
|
-
zn as parsers,
|
|
3551
|
-
fF as printers
|
|
3552
|
-
};
|