@versini/sassysaint 5.0.1 → 5.1.2
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/chunks/App.Doru-B7k.js +1434 -0
- package/dist/chunks/LazyHeader.DClUfXqp.js +1981 -0
- package/dist/chunks/{LazyMarkdownWithExtra.Crb3W0hj.js → LazyMarkdownWithExtra.CxcZ95uu.js} +1 -1
- package/dist/chunks/{LazyMessageAssistant.Cvu_1y4O.js → LazyMessageAssistant.KLzNh6WV.js} +535 -510
- package/dist/chunks/{index.CMDql_8l.js → index.B5Wp8y85.js} +1587 -1367
- package/dist/chunks/index.B5nDJSgt.js +1466 -0
- package/dist/chunks/index.DY3Gz5Cp.DIHttQr7.js +261 -0
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +5 -5
- package/dist/chunks/App.BMR9hf5e.js +0 -500
- package/dist/chunks/LazyHeader.Bu6NhpqV.js +0 -1429
- package/dist/chunks/index.BA5202H5.DKMEJZV8.js +0 -253
- package/dist/chunks/useLocalStorage.D91BITud.js +0 -1016
|
@@ -1,18 +1,44 @@
|
|
|
1
1
|
import { jsxs as He, jsx as re, Fragment as or } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { AppContext as
|
|
4
|
-
import { lazy as Ii, useContext as Ti, Suspense as Pi } from "react";
|
|
5
|
-
import { T as ut } from "./App.BMR9hf5e.js";
|
|
2
|
+
import { le as ot } from "./App.Doru-B7k.js";
|
|
3
|
+
import { AppContext as wi, E as Si } from "./index.B5nDJSgt.js";
|
|
6
4
|
import cn from "clsx";
|
|
7
|
-
|
|
5
|
+
import { lazy as Ci, useContext as Ei, Suspense as Ii } from "react";
|
|
6
|
+
import { LOCAL_STORAGE_PREFIX as Ai, LOCAL_STORAGE_CHAT_DETAILS as Ti, durationFormatter as Pi } from "./index.B5Wp8y85.js";
|
|
7
|
+
var at = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
8
|
+
function Li(e) {
|
|
9
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
10
|
+
}
|
|
11
|
+
/*!
|
|
12
|
+
@versini/ui-spinner v1.0.4
|
|
13
|
+
© 2024 gizmette.com
|
|
14
|
+
*/
|
|
15
|
+
try {
|
|
16
|
+
window.__VERSINI_UI_SPINNER__ || (window.__VERSINI_UI_SPINNER__ = {
|
|
17
|
+
version: "1.0.4",
|
|
18
|
+
buildTime: "09/24/2024 07:45 PM EDT",
|
|
19
|
+
homepage: "https://github.com/aversini/ui-components",
|
|
20
|
+
license: "MIT"
|
|
21
|
+
});
|
|
22
|
+
} catch {
|
|
23
|
+
}
|
|
24
|
+
const ut = "av-spinner", st = (e) => {
|
|
25
|
+
let t = "";
|
|
26
|
+
if (typeof e == "number" || typeof e == "string")
|
|
27
|
+
t = "m-" + e;
|
|
28
|
+
else {
|
|
29
|
+
const n = [];
|
|
30
|
+
(e == null ? void 0 : e.t) !== void 0 && n.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && n.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && n.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && n.push(`ml-${e.l}`), t = n.join(" ");
|
|
31
|
+
}
|
|
32
|
+
return t;
|
|
33
|
+
}, zi = ({
|
|
8
34
|
spinnerRef: e,
|
|
9
35
|
mode: t = "system",
|
|
10
36
|
type: n = "circle",
|
|
11
37
|
spacing: r
|
|
12
38
|
}) => {
|
|
13
39
|
const i = n === "circle" ? cn(
|
|
14
|
-
|
|
15
|
-
|
|
40
|
+
ut,
|
|
41
|
+
st(r),
|
|
16
42
|
"h-8 w-8",
|
|
17
43
|
"align-[-0.125em]",
|
|
18
44
|
"border-4",
|
|
@@ -23,7 +49,7 @@ const Li = ({
|
|
|
23
49
|
"text-copy-dark dark:text-copy-accent": t === "system",
|
|
24
50
|
"text-copy-accent dark:text-copy-dark": t === "alt-system"
|
|
25
51
|
}
|
|
26
|
-
) : cn(
|
|
52
|
+
) : cn(ut, st(r)), o = cn("av-spinner__dot", {
|
|
27
53
|
"fill-copy-dark": t === "dark",
|
|
28
54
|
"fill-copy-accent": t === "light",
|
|
29
55
|
"fill-copy-dark dark:fill-copy-accent": t === "system",
|
|
@@ -38,10 +64,6 @@ const Li = ({
|
|
|
38
64
|
/* @__PURE__ */ re("span", { className: "sr-only", children: "Loading..." })
|
|
39
65
|
] });
|
|
40
66
|
};
|
|
41
|
-
var st = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
42
|
-
function zi(e) {
|
|
43
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
44
|
-
}
|
|
45
67
|
function yf(e) {
|
|
46
68
|
const t = [], n = String(e || "");
|
|
47
69
|
let r = n.indexOf(","), i = 0, o = !1;
|
|
@@ -52,22 +74,22 @@ function yf(e) {
|
|
|
52
74
|
}
|
|
53
75
|
return t;
|
|
54
76
|
}
|
|
55
|
-
function
|
|
77
|
+
function vi(e, t) {
|
|
56
78
|
const n = {};
|
|
57
79
|
return (e[e.length - 1] === "" ? [...e, ""] : e).join(
|
|
58
80
|
(n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")
|
|
59
81
|
).trim();
|
|
60
82
|
}
|
|
61
|
-
const
|
|
83
|
+
const Di = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Oi = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Fi = {};
|
|
62
84
|
function ct(e, t) {
|
|
63
|
-
return (Fi.jsx ? Oi :
|
|
85
|
+
return (Fi.jsx ? Oi : Di).test(e);
|
|
64
86
|
}
|
|
65
|
-
const
|
|
66
|
-
function
|
|
87
|
+
const _i = /[ \t\n\f\r]/g;
|
|
88
|
+
function Ri(e) {
|
|
67
89
|
return typeof e == "object" ? e.type === "text" ? ft(e.value) : !1 : ft(e);
|
|
68
90
|
}
|
|
69
91
|
function ft(e) {
|
|
70
|
-
return e.replace(
|
|
92
|
+
return e.replace(_i, "") === "";
|
|
71
93
|
}
|
|
72
94
|
class $e {
|
|
73
95
|
/**
|
|
@@ -114,11 +136,11 @@ le.prototype.commaOrSpaceSeparated = !1;
|
|
|
114
136
|
le.prototype.mustUseProperty = !1;
|
|
115
137
|
le.prototype.defined = !1;
|
|
116
138
|
let Mi = 0;
|
|
117
|
-
const O = Te(), W = Te(), ur = Te(), C = Te(), $ = Te(),
|
|
139
|
+
const O = Te(), W = Te(), ur = Te(), C = Te(), $ = Te(), De = Te(), ne = Te();
|
|
118
140
|
function Te() {
|
|
119
141
|
return 2 ** ++Mi;
|
|
120
142
|
}
|
|
121
|
-
const Pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, boolean: O, booleanish: W, commaOrSpaceSeparated: ne, commaSeparated:
|
|
143
|
+
const Pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, boolean: O, booleanish: W, commaOrSpaceSeparated: ne, commaSeparated: De, number: C, overloadedBoolean: ur, spaceSeparated: $ }, Symbol.toStringTag, { value: "Module" })), fn = Object.keys(Pn);
|
|
122
144
|
class Mn extends le {
|
|
123
145
|
/**
|
|
124
146
|
* @constructor
|
|
@@ -140,12 +162,12 @@ Mn.prototype.defined = !0;
|
|
|
140
162
|
function pt(e, t, n) {
|
|
141
163
|
n && (e[t] = n);
|
|
142
164
|
}
|
|
143
|
-
const
|
|
165
|
+
const Ni = {}.hasOwnProperty;
|
|
144
166
|
function Oe(e) {
|
|
145
167
|
const t = {}, n = {};
|
|
146
168
|
let r;
|
|
147
169
|
for (r in e.properties)
|
|
148
|
-
if (
|
|
170
|
+
if (Ni.call(e.properties, r)) {
|
|
149
171
|
const i = e.properties[r], o = new Mn(
|
|
150
172
|
r,
|
|
151
173
|
e.transform(e.attributes || {}, r),
|
|
@@ -243,7 +265,7 @@ const hr = Oe({
|
|
|
243
265
|
ariaValueText: null,
|
|
244
266
|
role: null
|
|
245
267
|
}
|
|
246
|
-
}),
|
|
268
|
+
}), Bi = Oe({
|
|
247
269
|
space: "html",
|
|
248
270
|
attributes: {
|
|
249
271
|
acceptcharset: "accept-charset",
|
|
@@ -256,7 +278,7 @@ const hr = Oe({
|
|
|
256
278
|
properties: {
|
|
257
279
|
// Standard Properties.
|
|
258
280
|
abbr: null,
|
|
259
|
-
accept:
|
|
281
|
+
accept: De,
|
|
260
282
|
acceptCharset: $,
|
|
261
283
|
accessKey: $,
|
|
262
284
|
action: null,
|
|
@@ -283,7 +305,7 @@ const hr = Oe({
|
|
|
283
305
|
contentEditable: W,
|
|
284
306
|
controls: O,
|
|
285
307
|
controlsList: $,
|
|
286
|
-
coords: C |
|
|
308
|
+
coords: C | De,
|
|
287
309
|
crossOrigin: null,
|
|
288
310
|
data: null,
|
|
289
311
|
dateTime: null,
|
|
@@ -863,9 +885,9 @@ const hr = Oe({
|
|
|
863
885
|
from: null,
|
|
864
886
|
fx: null,
|
|
865
887
|
fy: null,
|
|
866
|
-
g1:
|
|
867
|
-
g2:
|
|
868
|
-
glyphName:
|
|
888
|
+
g1: De,
|
|
889
|
+
g2: De,
|
|
890
|
+
glyphName: De,
|
|
869
891
|
glyphOrientationHorizontal: null,
|
|
870
892
|
glyphOrientationVertical: null,
|
|
871
893
|
glyphRef: null,
|
|
@@ -1206,7 +1228,7 @@ const Wi = {
|
|
|
1206
1228
|
xLinkTitle: "xlinkTitle",
|
|
1207
1229
|
xLinkType: "xlinkType",
|
|
1208
1230
|
xmlnsXLink: "xmlnsXlink"
|
|
1209
|
-
}, Qi = ar([cr, sr, hr, mr,
|
|
1231
|
+
}, Qi = ar([cr, sr, hr, mr, Bi], "html"), Nn = ar([cr, sr, hr, mr, ji], "svg");
|
|
1210
1232
|
function kf(e) {
|
|
1211
1233
|
const t = String(e || "").trim();
|
|
1212
1234
|
return t ? t.split(/[ \t\n\r\f]+/g) : [];
|
|
@@ -1215,7 +1237,7 @@ function Gi(e) {
|
|
|
1215
1237
|
return e.join(" ").trim();
|
|
1216
1238
|
}
|
|
1217
1239
|
var gr = {}, mt = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Xi = /\n/g, Yi = /^\s*/, Ki = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, Ji = /^:\s*/, Zi = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, el = /^[;\s]*/, nl = /^\s+|\s+$/g, tl = `
|
|
1218
|
-
`, gt = "/", dt = "*",
|
|
1240
|
+
`, gt = "/", dt = "*", Ie = "", rl = "comment", il = "declaration", ll = function(e, t) {
|
|
1219
1241
|
if (typeof e != "string")
|
|
1220
1242
|
throw new TypeError("First argument must be a string");
|
|
1221
1243
|
if (!e) return [];
|
|
@@ -1262,9 +1284,9 @@ var gr = {}, mt = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Xi = /\n/g, Yi = /^\s*/, Ki
|
|
|
1262
1284
|
function c() {
|
|
1263
1285
|
var d = o();
|
|
1264
1286
|
if (!(gt != e.charAt(0) || dt != e.charAt(1))) {
|
|
1265
|
-
for (var k = 2;
|
|
1287
|
+
for (var k = 2; Ie != e.charAt(k) && (dt != e.charAt(k) || gt != e.charAt(k + 1)); )
|
|
1266
1288
|
++k;
|
|
1267
|
-
if (k += 2,
|
|
1289
|
+
if (k += 2, Ie === e.charAt(k - 1))
|
|
1268
1290
|
return a("End of comment missing");
|
|
1269
1291
|
var S = e.slice(2, k - 2);
|
|
1270
1292
|
return r += 2, i(S), e = e.slice(k), r += 2, d({
|
|
@@ -1279,8 +1301,8 @@ var gr = {}, mt = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Xi = /\n/g, Yi = /^\s*/, Ki
|
|
|
1279
1301
|
if (c(), !u(Ji)) return a("property missing ':'");
|
|
1280
1302
|
var S = u(Zi), x = d({
|
|
1281
1303
|
type: il,
|
|
1282
|
-
property: yt(k[0].replace(mt,
|
|
1283
|
-
value: S ? yt(S[0].replace(mt,
|
|
1304
|
+
property: yt(k[0].replace(mt, Ie)),
|
|
1305
|
+
value: S ? yt(S[0].replace(mt, Ie)) : Ie
|
|
1284
1306
|
});
|
|
1285
1307
|
return u(el), x;
|
|
1286
1308
|
}
|
|
@@ -1295,9 +1317,9 @@ var gr = {}, mt = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Xi = /\n/g, Yi = /^\s*/, Ki
|
|
|
1295
1317
|
return s(), p();
|
|
1296
1318
|
};
|
|
1297
1319
|
function yt(e) {
|
|
1298
|
-
return e ? e.replace(nl,
|
|
1320
|
+
return e ? e.replace(nl, Ie) : Ie;
|
|
1299
1321
|
}
|
|
1300
|
-
var ol =
|
|
1322
|
+
var ol = at && at.__importDefault || function(e) {
|
|
1301
1323
|
return e && e.__esModule ? e : { default: e };
|
|
1302
1324
|
};
|
|
1303
1325
|
Object.defineProperty(gr, "__esModule", { value: !0 });
|
|
@@ -1315,7 +1337,7 @@ function ul(e, t) {
|
|
|
1315
1337
|
}), n;
|
|
1316
1338
|
}
|
|
1317
1339
|
var kt = gr.default = ul;
|
|
1318
|
-
const sl = kt.default || kt, dr = yr("end"),
|
|
1340
|
+
const sl = kt.default || kt, dr = yr("end"), Bn = yr("start");
|
|
1319
1341
|
function yr(e) {
|
|
1320
1342
|
return t;
|
|
1321
1343
|
function t(n) {
|
|
@@ -1329,11 +1351,11 @@ function yr(e) {
|
|
|
1329
1351
|
}
|
|
1330
1352
|
}
|
|
1331
1353
|
function cl(e) {
|
|
1332
|
-
const t =
|
|
1354
|
+
const t = Bn(e), n = dr(e);
|
|
1333
1355
|
if (t && n)
|
|
1334
1356
|
return { start: t, end: n };
|
|
1335
1357
|
}
|
|
1336
|
-
function
|
|
1358
|
+
function Be(e) {
|
|
1337
1359
|
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? xt(e.position) : "start" in e || "end" in e ? xt(e) : "line" in e || "column" in e ? Ln(e) : "";
|
|
1338
1360
|
}
|
|
1339
1361
|
function Ln(e) {
|
|
@@ -1416,7 +1438,7 @@ class K extends Error {
|
|
|
1416
1438
|
u && (o.place = u.position);
|
|
1417
1439
|
}
|
|
1418
1440
|
const a = o.place && "start" in o.place ? o.place.start : o.place;
|
|
1419
|
-
this.ancestors = o.ancestors || void 0, this.cause = o.cause || void 0, this.column = a ? a.column : void 0, this.fatal = void 0, this.message = i, this.line = a ? a.line : void 0, this.name =
|
|
1441
|
+
this.ancestors = o.ancestors || void 0, this.cause = o.cause || void 0, this.column = a ? a.column : void 0, this.fatal = void 0, this.message = i, this.line = a ? a.line : void 0, this.name = Be(o.place) || "1:1", this.place = o.place || void 0, this.reason = this.message, this.ruleId = o.ruleId || void 0, this.source = o.source || void 0, this.stack = l && o.cause && typeof o.cause.stack == "string" ? o.cause.stack : "";
|
|
1420
1442
|
}
|
|
1421
1443
|
}
|
|
1422
1444
|
K.prototype.file = "";
|
|
@@ -1462,7 +1484,7 @@ function dl(e, t) {
|
|
|
1462
1484
|
ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
|
|
1463
1485
|
passKeys: t.passKeys !== !1,
|
|
1464
1486
|
passNode: t.passNode || !1,
|
|
1465
|
-
schema: t.space === "svg" ?
|
|
1487
|
+
schema: t.space === "svg" ? Nn : Qi,
|
|
1466
1488
|
stylePropertyNameCase: t.stylePropertyNameCase || "dom",
|
|
1467
1489
|
tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
|
|
1468
1490
|
}, o = xr(i, e, void 0);
|
|
@@ -1490,11 +1512,11 @@ function xr(e, t, n) {
|
|
|
1490
1512
|
function yl(e, t, n) {
|
|
1491
1513
|
const r = e.schema;
|
|
1492
1514
|
let i = r;
|
|
1493
|
-
t.tagName.toLowerCase() === "svg" && r.space === "html" && (i =
|
|
1494
|
-
const o = wr(e, t.tagName, !1), l =
|
|
1515
|
+
t.tagName.toLowerCase() === "svg" && r.space === "html" && (i = Nn, e.schema = i), e.ancestors.push(t);
|
|
1516
|
+
const o = wr(e, t.tagName, !1), l = Il(e, t);
|
|
1495
1517
|
let a = Un(e, t);
|
|
1496
1518
|
return ml.has(t.tagName) && (a = a.filter(function(u) {
|
|
1497
|
-
return typeof u == "string" ? !
|
|
1519
|
+
return typeof u == "string" ? !Ri(u) : !0;
|
|
1498
1520
|
})), br(e, l, o, t), Hn(l, a), e.ancestors.pop(), e.schema = r, e.create(t, o, l, n);
|
|
1499
1521
|
}
|
|
1500
1522
|
function kl(e, t) {
|
|
@@ -1518,8 +1540,8 @@ function xl(e, t) {
|
|
|
1518
1540
|
function bl(e, t, n) {
|
|
1519
1541
|
const r = e.schema;
|
|
1520
1542
|
let i = r;
|
|
1521
|
-
t.name === "svg" && r.space === "html" && (i =
|
|
1522
|
-
const o = t.name === null ? e.Fragment : wr(e, t.name, !0), l =
|
|
1543
|
+
t.name === "svg" && r.space === "html" && (i = Nn, e.schema = i), e.ancestors.push(t);
|
|
1544
|
+
const o = t.name === null ? e.Fragment : wr(e, t.name, !0), l = Al(e, t), a = Un(e, t);
|
|
1523
1545
|
return br(e, l, o, t), Hn(l, a), e.ancestors.pop(), e.schema = r, e.create(t, o, l, n);
|
|
1524
1546
|
}
|
|
1525
1547
|
function wl(e, t, n) {
|
|
@@ -1548,7 +1570,7 @@ function Cl(e, t, n) {
|
|
|
1548
1570
|
function El(e, t) {
|
|
1549
1571
|
return n;
|
|
1550
1572
|
function n(r, i, o, l) {
|
|
1551
|
-
const a = Array.isArray(o.children), u =
|
|
1573
|
+
const a = Array.isArray(o.children), u = Bn(r);
|
|
1552
1574
|
return t(
|
|
1553
1575
|
i,
|
|
1554
1576
|
o,
|
|
@@ -1563,7 +1585,7 @@ function El(e, t) {
|
|
|
1563
1585
|
);
|
|
1564
1586
|
}
|
|
1565
1587
|
}
|
|
1566
|
-
function
|
|
1588
|
+
function Il(e, t) {
|
|
1567
1589
|
const n = {};
|
|
1568
1590
|
let r, i;
|
|
1569
1591
|
for (i in t.properties)
|
|
@@ -1583,7 +1605,7 @@ function Al(e, t) {
|
|
|
1583
1605
|
}
|
|
1584
1606
|
return n;
|
|
1585
1607
|
}
|
|
1586
|
-
function
|
|
1608
|
+
function Al(e, t) {
|
|
1587
1609
|
const n = {};
|
|
1588
1610
|
for (const r of t.attributes)
|
|
1589
1611
|
if (r.type === "mdxJsxExpressionAttribute")
|
|
@@ -1633,7 +1655,7 @@ function Un(e, t) {
|
|
|
1633
1655
|
function Tl(e, t, n) {
|
|
1634
1656
|
const r = $i(e.schema, t);
|
|
1635
1657
|
if (!(n == null || typeof n == "number" && Number.isNaN(n))) {
|
|
1636
|
-
if (Array.isArray(n) && (n = r.commaSeparated ?
|
|
1658
|
+
if (Array.isArray(n) && (n = r.commaSeparated ? vi(n) : Gi(n)), r.property === "style") {
|
|
1637
1659
|
let i = typeof n == "object" ? n : Pl(e, String(n));
|
|
1638
1660
|
return e.stylePropertyNameCase === "css" && (i = Ll(i)), ["style", i];
|
|
1639
1661
|
}
|
|
@@ -1664,7 +1686,7 @@ function Pl(e, t) {
|
|
|
1664
1686
|
return n;
|
|
1665
1687
|
function r(i, o) {
|
|
1666
1688
|
let l = i;
|
|
1667
|
-
l.slice(0, 2) !== "--" && (l.slice(0, 4) === "-ms-" && (l = "ms-" + l.slice(4)), l = l.replace(hl,
|
|
1689
|
+
l.slice(0, 2) !== "--" && (l.slice(0, 4) === "-ms-" && (l = "ms-" + l.slice(4)), l = l.replace(hl, vl)), n[l] = o;
|
|
1668
1690
|
}
|
|
1669
1691
|
}
|
|
1670
1692
|
function wr(e, t, n) {
|
|
@@ -1718,13 +1740,13 @@ function Ll(e) {
|
|
|
1718
1740
|
return t;
|
|
1719
1741
|
}
|
|
1720
1742
|
function zl(e) {
|
|
1721
|
-
let t = e.replace(pl,
|
|
1743
|
+
let t = e.replace(pl, Dl);
|
|
1722
1744
|
return t.slice(0, 3) === "ms-" && (t = "-" + t), t;
|
|
1723
1745
|
}
|
|
1724
|
-
function
|
|
1746
|
+
function vl(e, t) {
|
|
1725
1747
|
return t.toUpperCase();
|
|
1726
1748
|
}
|
|
1727
|
-
function
|
|
1749
|
+
function Dl(e) {
|
|
1728
1750
|
return "-" + e.toLowerCase();
|
|
1729
1751
|
}
|
|
1730
1752
|
const pn = {
|
|
@@ -1799,10 +1821,10 @@ function Cr(e) {
|
|
|
1799
1821
|
const t = {};
|
|
1800
1822
|
let n = -1;
|
|
1801
1823
|
for (; ++n < e.length; )
|
|
1802
|
-
|
|
1824
|
+
_l(t, e[n]);
|
|
1803
1825
|
return t;
|
|
1804
1826
|
}
|
|
1805
|
-
function
|
|
1827
|
+
function _l(e, t) {
|
|
1806
1828
|
let n;
|
|
1807
1829
|
for (n in t) {
|
|
1808
1830
|
const i = (Ct.call(e, n) ? e[n] : void 0) || (e[n] = {}), o = t[n];
|
|
@@ -1811,7 +1833,7 @@ function Rl(e, t) {
|
|
|
1811
1833
|
for (l in o) {
|
|
1812
1834
|
Ct.call(i, l) || (i[l] = []);
|
|
1813
1835
|
const a = o[l];
|
|
1814
|
-
|
|
1836
|
+
Rl(
|
|
1815
1837
|
// @ts-expect-error Looks like a list.
|
|
1816
1838
|
i[l],
|
|
1817
1839
|
Array.isArray(a) ? a : a ? [a] : []
|
|
@@ -1819,7 +1841,7 @@ function Rl(e, t) {
|
|
|
1819
1841
|
}
|
|
1820
1842
|
}
|
|
1821
1843
|
}
|
|
1822
|
-
function
|
|
1844
|
+
function Rl(e, t) {
|
|
1823
1845
|
let n = -1;
|
|
1824
1846
|
const r = [];
|
|
1825
1847
|
for (; ++n < t.length; )
|
|
@@ -1850,7 +1872,7 @@ function Je(e) {
|
|
|
1850
1872
|
e !== null && (e < 32 || e === 127)
|
|
1851
1873
|
);
|
|
1852
1874
|
}
|
|
1853
|
-
const zn = be(/\d/),
|
|
1875
|
+
const zn = be(/\d/), Nl = be(/[\dA-Fa-f]/), Bl = be(/[!-/:-@[-`{-~]/);
|
|
1854
1876
|
function L(e) {
|
|
1855
1877
|
return e !== null && e < -2;
|
|
1856
1878
|
}
|
|
@@ -1860,7 +1882,7 @@ function U(e) {
|
|
|
1860
1882
|
function F(e) {
|
|
1861
1883
|
return e === -2 || e === -1 || e === 32;
|
|
1862
1884
|
}
|
|
1863
|
-
const rn = be(new RegExp("\\p{P}|\\p{S}", "u")),
|
|
1885
|
+
const rn = be(new RegExp("\\p{P}|\\p{S}", "u")), Ae = be(/\s/);
|
|
1864
1886
|
function be(e) {
|
|
1865
1887
|
return t;
|
|
1866
1888
|
function t(n) {
|
|
@@ -1955,24 +1977,24 @@ function $l(e) {
|
|
|
1955
1977
|
}
|
|
1956
1978
|
function u(E) {
|
|
1957
1979
|
if (r++, t.containerState._closeFlow) {
|
|
1958
|
-
t.containerState._closeFlow = void 0, i &&
|
|
1980
|
+
t.containerState._closeFlow = void 0, i && I();
|
|
1959
1981
|
const z = t.events.length;
|
|
1960
|
-
let
|
|
1961
|
-
for (;
|
|
1962
|
-
if (t.events[
|
|
1963
|
-
w = t.events[
|
|
1982
|
+
let v = z, w;
|
|
1983
|
+
for (; v--; )
|
|
1984
|
+
if (t.events[v][0] === "exit" && t.events[v][1].type === "chunkFlow") {
|
|
1985
|
+
w = t.events[v][1].end;
|
|
1964
1986
|
break;
|
|
1965
1987
|
}
|
|
1966
1988
|
x(r);
|
|
1967
|
-
let
|
|
1968
|
-
for (;
|
|
1969
|
-
t.events[
|
|
1989
|
+
let _ = z;
|
|
1990
|
+
for (; _ < t.events.length; )
|
|
1991
|
+
t.events[_][1].end = Object.assign({}, w), _++;
|
|
1970
1992
|
return te(
|
|
1971
1993
|
t.events,
|
|
1972
|
-
|
|
1994
|
+
v + 1,
|
|
1973
1995
|
0,
|
|
1974
1996
|
t.events.slice(z)
|
|
1975
|
-
), t.events.length =
|
|
1997
|
+
), t.events.length = _, s(E);
|
|
1976
1998
|
}
|
|
1977
1999
|
return a(E);
|
|
1978
2000
|
}
|
|
@@ -1991,7 +2013,7 @@ function $l(e) {
|
|
|
1991
2013
|
)(E);
|
|
1992
2014
|
}
|
|
1993
2015
|
function f(E) {
|
|
1994
|
-
return i &&
|
|
2016
|
+
return i && I(), x(r), h(E);
|
|
1995
2017
|
}
|
|
1996
2018
|
function c(E) {
|
|
1997
2019
|
return t.parser.lazy[t.now().line] = r !== n.length, l = t.now().offset, d(E);
|
|
@@ -2008,7 +2030,7 @@ function $l(e) {
|
|
|
2008
2030
|
}
|
|
2009
2031
|
function d(E) {
|
|
2010
2032
|
if (E === null) {
|
|
2011
|
-
i &&
|
|
2033
|
+
i && I(), x(0), e.consume(E);
|
|
2012
2034
|
return;
|
|
2013
2035
|
}
|
|
2014
2036
|
return i = i || t.parser.flow(t.now()), e.enter("chunkFlow", {
|
|
@@ -2025,8 +2047,8 @@ function $l(e) {
|
|
|
2025
2047
|
return L(E) ? (e.consume(E), S(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, a) : (e.consume(E), k);
|
|
2026
2048
|
}
|
|
2027
2049
|
function S(E, z) {
|
|
2028
|
-
const
|
|
2029
|
-
if (z &&
|
|
2050
|
+
const v = t.sliceStream(E);
|
|
2051
|
+
if (z && v.push(null), E.previous = o, o && (o.next = E), o = E, i.defineSkip(E.start), i.write(v), t.parser.lazy[E.start.line]) {
|
|
2030
2052
|
let w = i.events.length;
|
|
2031
2053
|
for (; w--; )
|
|
2032
2054
|
if (
|
|
@@ -2036,35 +2058,35 @@ function $l(e) {
|
|
|
2036
2058
|
i.events[w][1].end.offset > l)
|
|
2037
2059
|
)
|
|
2038
2060
|
return;
|
|
2039
|
-
const
|
|
2040
|
-
let q =
|
|
2061
|
+
const _ = t.events.length;
|
|
2062
|
+
let q = _, B, y;
|
|
2041
2063
|
for (; q--; )
|
|
2042
2064
|
if (t.events[q][0] === "exit" && t.events[q][1].type === "chunkFlow") {
|
|
2043
|
-
if (
|
|
2065
|
+
if (B) {
|
|
2044
2066
|
y = t.events[q][1].end;
|
|
2045
2067
|
break;
|
|
2046
2068
|
}
|
|
2047
|
-
|
|
2069
|
+
B = !0;
|
|
2048
2070
|
}
|
|
2049
|
-
for (x(r), w =
|
|
2071
|
+
for (x(r), w = _; w < t.events.length; )
|
|
2050
2072
|
t.events[w][1].end = Object.assign({}, y), w++;
|
|
2051
2073
|
te(
|
|
2052
2074
|
t.events,
|
|
2053
2075
|
q + 1,
|
|
2054
2076
|
0,
|
|
2055
|
-
t.events.slice(
|
|
2077
|
+
t.events.slice(_)
|
|
2056
2078
|
), t.events.length = w;
|
|
2057
2079
|
}
|
|
2058
2080
|
}
|
|
2059
2081
|
function x(E) {
|
|
2060
2082
|
let z = n.length;
|
|
2061
2083
|
for (; z-- > E; ) {
|
|
2062
|
-
const
|
|
2063
|
-
t.containerState =
|
|
2084
|
+
const v = n[z];
|
|
2085
|
+
t.containerState = v[1], v[0].exit.call(t, e);
|
|
2064
2086
|
}
|
|
2065
2087
|
n.length = E;
|
|
2066
2088
|
}
|
|
2067
|
-
function
|
|
2089
|
+
function I() {
|
|
2068
2090
|
i.write([null]), o = void 0, i = void 0, t.containerState._closeFlow = void 0;
|
|
2069
2091
|
}
|
|
2070
2092
|
}
|
|
@@ -2077,7 +2099,7 @@ function ql(e, t, n) {
|
|
|
2077
2099
|
);
|
|
2078
2100
|
}
|
|
2079
2101
|
function Ze(e) {
|
|
2080
|
-
if (e === null || U(e) ||
|
|
2102
|
+
if (e === null || U(e) || Ae(e))
|
|
2081
2103
|
return 1;
|
|
2082
2104
|
if (rn(e))
|
|
2083
2105
|
return 2;
|
|
@@ -2091,7 +2113,7 @@ function ln(e, t, n) {
|
|
|
2091
2113
|
}
|
|
2092
2114
|
return t;
|
|
2093
2115
|
}
|
|
2094
|
-
const
|
|
2116
|
+
const vn = {
|
|
2095
2117
|
name: "attention",
|
|
2096
2118
|
tokenize: Wl,
|
|
2097
2119
|
resolveAll: Vl
|
|
@@ -2107,7 +2129,7 @@ function Vl(e, t) {
|
|
|
2107
2129
|
continue;
|
|
2108
2130
|
u = e[r][1].end.offset - e[r][1].start.offset > 1 && e[n][1].end.offset - e[n][1].start.offset > 1 ? 2 : 1;
|
|
2109
2131
|
const c = Object.assign({}, e[r][1].end), h = Object.assign({}, e[n][1].start);
|
|
2110
|
-
|
|
2132
|
+
It(c, -u), It(h, u), l = {
|
|
2111
2133
|
type: u > 1 ? "strongSequence" : "emphasisSequence",
|
|
2112
2134
|
start: c,
|
|
2113
2135
|
end: Object.assign({}, e[r][1].end)
|
|
@@ -2168,7 +2190,7 @@ function Wl(e, t) {
|
|
|
2168
2190
|
return s._open = !!(o === 42 ? c : c && (i || !h)), s._close = !!(o === 42 ? h : h && (f || !c)), t(u);
|
|
2169
2191
|
}
|
|
2170
2192
|
}
|
|
2171
|
-
function
|
|
2193
|
+
function It(e, t) {
|
|
2172
2194
|
e.column += t, e.offset += t, e._bufferIndex += t;
|
|
2173
2195
|
}
|
|
2174
2196
|
const Ql = {
|
|
@@ -2223,7 +2245,7 @@ function Xl(e, t, n) {
|
|
|
2223
2245
|
return o === null || L(o) ? t(o) : n(o);
|
|
2224
2246
|
}
|
|
2225
2247
|
}
|
|
2226
|
-
const
|
|
2248
|
+
const Ir = {
|
|
2227
2249
|
name: "blockQuote",
|
|
2228
2250
|
tokenize: Yl,
|
|
2229
2251
|
continuation: {
|
|
@@ -2259,13 +2281,13 @@ function Kl(e, t, n) {
|
|
|
2259
2281
|
)(l) : o(l);
|
|
2260
2282
|
}
|
|
2261
2283
|
function o(l) {
|
|
2262
|
-
return e.attempt(
|
|
2284
|
+
return e.attempt(Ir, t, n)(l);
|
|
2263
2285
|
}
|
|
2264
2286
|
}
|
|
2265
2287
|
function Jl(e) {
|
|
2266
2288
|
e.exit("blockQuote");
|
|
2267
2289
|
}
|
|
2268
|
-
const
|
|
2290
|
+
const Ar = {
|
|
2269
2291
|
name: "characterEscape",
|
|
2270
2292
|
tokenize: Zl
|
|
2271
2293
|
};
|
|
@@ -2275,7 +2297,7 @@ function Zl(e, t, n) {
|
|
|
2275
2297
|
return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(o), e.exit("escapeMarker"), i;
|
|
2276
2298
|
}
|
|
2277
2299
|
function i(o) {
|
|
2278
|
-
return
|
|
2300
|
+
return Bl(o) ? (e.enter("characterEscapeValue"), e.consume(o), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : n(o);
|
|
2279
2301
|
}
|
|
2280
2302
|
}
|
|
2281
2303
|
const Tr = {
|
|
@@ -2293,7 +2315,7 @@ function eo(e, t, n) {
|
|
|
2293
2315
|
return c === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(c), e.exit("characterReferenceMarkerNumeric"), s) : (e.enter("characterReferenceValue"), o = 31, l = Y, f(c));
|
|
2294
2316
|
}
|
|
2295
2317
|
function s(c) {
|
|
2296
|
-
return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l =
|
|
2318
|
+
return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l = Nl, f) : (e.enter("characterReferenceValue"), o = 7, l = zn, f(c));
|
|
2297
2319
|
}
|
|
2298
2320
|
function f(c) {
|
|
2299
2321
|
if (c === 59 && i) {
|
|
@@ -2303,7 +2325,7 @@ function eo(e, t, n) {
|
|
|
2303
2325
|
return l(c) && i++ < o ? (e.consume(c), f) : n(c);
|
|
2304
2326
|
}
|
|
2305
2327
|
}
|
|
2306
|
-
const
|
|
2328
|
+
const At = {
|
|
2307
2329
|
tokenize: to,
|
|
2308
2330
|
partial: !0
|
|
2309
2331
|
}, Tt = {
|
|
@@ -2313,7 +2335,7 @@ const It = {
|
|
|
2313
2335
|
};
|
|
2314
2336
|
function no(e, t, n) {
|
|
2315
2337
|
const r = this, i = {
|
|
2316
|
-
tokenize:
|
|
2338
|
+
tokenize: v,
|
|
2317
2339
|
partial: !0
|
|
2318
2340
|
};
|
|
2319
2341
|
let o = 0, l = 0, a;
|
|
@@ -2322,14 +2344,14 @@ function no(e, t, n) {
|
|
|
2322
2344
|
return s(w);
|
|
2323
2345
|
}
|
|
2324
2346
|
function s(w) {
|
|
2325
|
-
const
|
|
2326
|
-
return o =
|
|
2347
|
+
const _ = r.events[r.events.length - 1];
|
|
2348
|
+
return o = _ && _[1].type === "linePrefix" ? _[2].sliceSerialize(_[1], !0).length : 0, a = w, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), f(w);
|
|
2327
2349
|
}
|
|
2328
2350
|
function f(w) {
|
|
2329
2351
|
return w === a ? (l++, e.consume(w), f) : l < 3 ? n(w) : (e.exit("codeFencedFenceSequence"), F(w) ? M(e, c, "whitespace")(w) : c(w));
|
|
2330
2352
|
}
|
|
2331
2353
|
function c(w) {
|
|
2332
|
-
return w === null || L(w) ? (e.exit("codeFencedFence"), r.interrupt ? t(w) : e.check(
|
|
2354
|
+
return w === null || L(w) ? (e.exit("codeFencedFence"), r.interrupt ? t(w) : e.check(At, k, z)(w)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
2333
2355
|
contentType: "string"
|
|
2334
2356
|
}), h(w));
|
|
2335
2357
|
}
|
|
@@ -2353,42 +2375,42 @@ function no(e, t, n) {
|
|
|
2353
2375
|
function x(w) {
|
|
2354
2376
|
return o > 0 && F(w) ? M(
|
|
2355
2377
|
e,
|
|
2356
|
-
|
|
2378
|
+
I,
|
|
2357
2379
|
"linePrefix",
|
|
2358
2380
|
o + 1
|
|
2359
|
-
)(w) :
|
|
2381
|
+
)(w) : I(w);
|
|
2360
2382
|
}
|
|
2361
|
-
function
|
|
2362
|
-
return w === null || L(w) ? e.check(
|
|
2383
|
+
function I(w) {
|
|
2384
|
+
return w === null || L(w) ? e.check(At, k, z)(w) : (e.enter("codeFlowValue"), E(w));
|
|
2363
2385
|
}
|
|
2364
2386
|
function E(w) {
|
|
2365
|
-
return w === null || L(w) ? (e.exit("codeFlowValue"),
|
|
2387
|
+
return w === null || L(w) ? (e.exit("codeFlowValue"), I(w)) : (e.consume(w), E);
|
|
2366
2388
|
}
|
|
2367
2389
|
function z(w) {
|
|
2368
2390
|
return e.exit("codeFenced"), t(w);
|
|
2369
2391
|
}
|
|
2370
|
-
function
|
|
2371
|
-
let
|
|
2392
|
+
function v(w, _, q) {
|
|
2393
|
+
let B = 0;
|
|
2372
2394
|
return y;
|
|
2373
|
-
function y(
|
|
2374
|
-
return w.enter("lineEnding"), w.consume(
|
|
2395
|
+
function y(N) {
|
|
2396
|
+
return w.enter("lineEnding"), w.consume(N), w.exit("lineEnding"), T;
|
|
2375
2397
|
}
|
|
2376
|
-
function T(
|
|
2377
|
-
return w.enter("codeFencedFence"), F(
|
|
2398
|
+
function T(N) {
|
|
2399
|
+
return w.enter("codeFencedFence"), F(N) ? M(
|
|
2378
2400
|
w,
|
|
2379
2401
|
P,
|
|
2380
2402
|
"linePrefix",
|
|
2381
2403
|
r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
|
|
2382
|
-
)(
|
|
2404
|
+
)(N) : P(N);
|
|
2383
2405
|
}
|
|
2384
|
-
function P(
|
|
2385
|
-
return
|
|
2406
|
+
function P(N) {
|
|
2407
|
+
return N === a ? (w.enter("codeFencedFenceSequence"), H(N)) : q(N);
|
|
2386
2408
|
}
|
|
2387
|
-
function H(
|
|
2388
|
-
return
|
|
2409
|
+
function H(N) {
|
|
2410
|
+
return N === a ? (B++, w.consume(N), H) : B >= l ? (w.exit("codeFencedFenceSequence"), F(N) ? M(w, V, "whitespace")(N) : V(N)) : q(N);
|
|
2389
2411
|
}
|
|
2390
|
-
function V(
|
|
2391
|
-
return
|
|
2412
|
+
function V(N) {
|
|
2413
|
+
return N === null || L(N) ? (w.exit("codeFencedFence"), _(N)) : q(N);
|
|
2392
2414
|
}
|
|
2393
2415
|
}
|
|
2394
2416
|
}
|
|
@@ -2515,8 +2537,8 @@ function co(e, t) {
|
|
|
2515
2537
|
// Find a void token that includes a break.
|
|
2516
2538
|
a[h][0] === "exit" && a[h - 1][0] === "enter" && a[h][1].type === a[h - 1][1].type && a[h][1].start.line !== a[h][1].end.line && (k = h + 1, S.push(k), p._tokenizer = void 0, p.previous = void 0, p = p.next);
|
|
2517
2539
|
for (l.events = [], p ? (p._tokenizer = void 0, p.previous = void 0) : S.pop(), h = S.length; h--; ) {
|
|
2518
|
-
const x = a.slice(S[h], S[h + 1]),
|
|
2519
|
-
u.unshift([
|
|
2540
|
+
const x = a.slice(S[h], S[h + 1]), I = o.pop();
|
|
2541
|
+
u.unshift([I, I + x.length - 1]), te(e, I, 2, x);
|
|
2520
2542
|
}
|
|
2521
2543
|
for (h = -1; ++h < u.length; )
|
|
2522
2544
|
s[d + u[h][0]] = d + u[h][1], d += u[h][1] - u[h][0] - 1;
|
|
@@ -2621,7 +2643,7 @@ function zr(e, t, n, r, i, o) {
|
|
|
2621
2643
|
return p === 91 || p === 92 || p === 93 ? (e.consume(p), a++, c) : c(p);
|
|
2622
2644
|
}
|
|
2623
2645
|
}
|
|
2624
|
-
function
|
|
2646
|
+
function vr(e, t, n, r, i, o) {
|
|
2625
2647
|
let l;
|
|
2626
2648
|
return a;
|
|
2627
2649
|
function a(h) {
|
|
@@ -2716,7 +2738,7 @@ function bo(e, t, n) {
|
|
|
2716
2738
|
return U(a) ? je(e, i)(a) : n(a);
|
|
2717
2739
|
}
|
|
2718
2740
|
function i(a) {
|
|
2719
|
-
return
|
|
2741
|
+
return vr(
|
|
2720
2742
|
e,
|
|
2721
2743
|
o,
|
|
2722
2744
|
n,
|
|
@@ -2747,7 +2769,7 @@ function So(e, t, n) {
|
|
|
2747
2769
|
}
|
|
2748
2770
|
const Co = {
|
|
2749
2771
|
name: "headingAtx",
|
|
2750
|
-
tokenize:
|
|
2772
|
+
tokenize: Io,
|
|
2751
2773
|
resolve: Eo
|
|
2752
2774
|
};
|
|
2753
2775
|
function Eo(e, t) {
|
|
@@ -2768,7 +2790,7 @@ function Eo(e, t) {
|
|
|
2768
2790
|
["exit", i, t]
|
|
2769
2791
|
])), e;
|
|
2770
2792
|
}
|
|
2771
|
-
function
|
|
2793
|
+
function Io(e, t, n) {
|
|
2772
2794
|
let r = 0;
|
|
2773
2795
|
return i;
|
|
2774
2796
|
function i(f) {
|
|
@@ -2790,7 +2812,7 @@ function Ao(e, t, n) {
|
|
|
2790
2812
|
return f === null || f === 35 || U(f) ? (e.exit("atxHeadingText"), a(f)) : (e.consume(f), s);
|
|
2791
2813
|
}
|
|
2792
2814
|
}
|
|
2793
|
-
const
|
|
2815
|
+
const Ao = [
|
|
2794
2816
|
"address",
|
|
2795
2817
|
"article",
|
|
2796
2818
|
"aside",
|
|
@@ -2855,14 +2877,14 @@ const Io = [
|
|
|
2855
2877
|
"ul"
|
|
2856
2878
|
], Pt = ["pre", "script", "style", "textarea"], To = {
|
|
2857
2879
|
name: "htmlFlow",
|
|
2858
|
-
tokenize:
|
|
2880
|
+
tokenize: vo,
|
|
2859
2881
|
resolveTo: zo,
|
|
2860
2882
|
concrete: !0
|
|
2861
2883
|
}, Po = {
|
|
2862
2884
|
tokenize: Oo,
|
|
2863
2885
|
partial: !0
|
|
2864
2886
|
}, Lo = {
|
|
2865
|
-
tokenize:
|
|
2887
|
+
tokenize: Do,
|
|
2866
2888
|
partial: !0
|
|
2867
2889
|
};
|
|
2868
2890
|
function zo(e) {
|
|
@@ -2871,7 +2893,7 @@ function zo(e) {
|
|
|
2871
2893
|
;
|
|
2872
2894
|
return t > 1 && e[t - 2][1].type === "linePrefix" && (e[t][1].start = e[t - 2][1].start, e[t + 1][1].start = e[t - 2][1].start, e.splice(t - 2, 2)), e;
|
|
2873
2895
|
}
|
|
2874
|
-
function
|
|
2896
|
+
function vo(e, t, n) {
|
|
2875
2897
|
const r = this;
|
|
2876
2898
|
let i, o, l, a, u;
|
|
2877
2899
|
return s;
|
|
@@ -2900,35 +2922,35 @@ function Do(e, t, n) {
|
|
|
2900
2922
|
function S(g) {
|
|
2901
2923
|
if (g === null || g === 47 || g === 62 || U(g)) {
|
|
2902
2924
|
const ue = g === 47, we = l.toLowerCase();
|
|
2903
|
-
return !ue && !o && Pt.includes(we) ? (i = 1, r.interrupt ? t(g) : P(g)) :
|
|
2925
|
+
return !ue && !o && Pt.includes(we) ? (i = 1, r.interrupt ? t(g) : P(g)) : Ao.includes(l.toLowerCase()) ? (i = 6, ue ? (e.consume(g), x) : r.interrupt ? t(g) : P(g)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(g) : o ? I(g) : E(g));
|
|
2904
2926
|
}
|
|
2905
2927
|
return g === 45 || Y(g) ? (e.consume(g), l += String.fromCharCode(g), S) : n(g);
|
|
2906
2928
|
}
|
|
2907
2929
|
function x(g) {
|
|
2908
2930
|
return g === 62 ? (e.consume(g), r.interrupt ? t : P) : n(g);
|
|
2909
2931
|
}
|
|
2910
|
-
function
|
|
2911
|
-
return F(g) ? (e.consume(g),
|
|
2932
|
+
function I(g) {
|
|
2933
|
+
return F(g) ? (e.consume(g), I) : y(g);
|
|
2912
2934
|
}
|
|
2913
2935
|
function E(g) {
|
|
2914
2936
|
return g === 47 ? (e.consume(g), y) : g === 58 || g === 95 || J(g) ? (e.consume(g), z) : F(g) ? (e.consume(g), E) : y(g);
|
|
2915
2937
|
}
|
|
2916
2938
|
function z(g) {
|
|
2917
|
-
return g === 45 || g === 46 || g === 58 || g === 95 || Y(g) ? (e.consume(g), z) :
|
|
2939
|
+
return g === 45 || g === 46 || g === 58 || g === 95 || Y(g) ? (e.consume(g), z) : v(g);
|
|
2918
2940
|
}
|
|
2919
|
-
function
|
|
2920
|
-
return g === 61 ? (e.consume(g), w) : F(g) ? (e.consume(g),
|
|
2941
|
+
function v(g) {
|
|
2942
|
+
return g === 61 ? (e.consume(g), w) : F(g) ? (e.consume(g), v) : E(g);
|
|
2921
2943
|
}
|
|
2922
2944
|
function w(g) {
|
|
2923
|
-
return g === null || g === 60 || g === 61 || g === 62 || g === 96 ? n(g) : g === 34 || g === 39 ? (e.consume(g), u = g,
|
|
2945
|
+
return g === null || g === 60 || g === 61 || g === 62 || g === 96 ? n(g) : g === 34 || g === 39 ? (e.consume(g), u = g, _) : F(g) ? (e.consume(g), w) : q(g);
|
|
2924
2946
|
}
|
|
2925
|
-
function
|
|
2926
|
-
return g === u ? (e.consume(g), u = null,
|
|
2947
|
+
function _(g) {
|
|
2948
|
+
return g === u ? (e.consume(g), u = null, B) : g === null || L(g) ? n(g) : (e.consume(g), _);
|
|
2927
2949
|
}
|
|
2928
2950
|
function q(g) {
|
|
2929
|
-
return g === null || g === 34 || g === 39 || g === 47 || g === 60 || g === 61 || g === 62 || g === 96 || U(g) ?
|
|
2951
|
+
return g === null || g === 34 || g === 39 || g === 47 || g === 60 || g === 61 || g === 62 || g === 96 || U(g) ? v(g) : (e.consume(g), q);
|
|
2930
2952
|
}
|
|
2931
|
-
function
|
|
2953
|
+
function B(g) {
|
|
2932
2954
|
return g === 47 || g === 62 || F(g) ? E(g) : n(g);
|
|
2933
2955
|
}
|
|
2934
2956
|
function y(g) {
|
|
@@ -2952,9 +2974,9 @@ function Do(e, t, n) {
|
|
|
2952
2974
|
)(g);
|
|
2953
2975
|
}
|
|
2954
2976
|
function V(g) {
|
|
2955
|
-
return e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"),
|
|
2977
|
+
return e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"), N;
|
|
2956
2978
|
}
|
|
2957
|
-
function
|
|
2979
|
+
function N(g) {
|
|
2958
2980
|
return g === null || L(g) ? H(g) : (e.enter("htmlFlowData"), P(g));
|
|
2959
2981
|
}
|
|
2960
2982
|
function X(g) {
|
|
@@ -2983,7 +3005,7 @@ function Do(e, t, n) {
|
|
|
2983
3005
|
return e.exit("htmlFlow"), t(g);
|
|
2984
3006
|
}
|
|
2985
3007
|
}
|
|
2986
|
-
function
|
|
3008
|
+
function Do(e, t, n) {
|
|
2987
3009
|
const r = this;
|
|
2988
3010
|
return i;
|
|
2989
3011
|
function i(l) {
|
|
@@ -3001,9 +3023,9 @@ function Oo(e, t, n) {
|
|
|
3001
3023
|
}
|
|
3002
3024
|
const Fo = {
|
|
3003
3025
|
name: "htmlText",
|
|
3004
|
-
tokenize:
|
|
3026
|
+
tokenize: _o
|
|
3005
3027
|
};
|
|
3006
|
-
function
|
|
3028
|
+
function _o(e, t, n) {
|
|
3007
3029
|
const r = this;
|
|
3008
3030
|
let i, o, l;
|
|
3009
3031
|
return a;
|
|
@@ -3011,10 +3033,10 @@ function Ro(e, t, n) {
|
|
|
3011
3033
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(m), u;
|
|
3012
3034
|
}
|
|
3013
3035
|
function u(m) {
|
|
3014
|
-
return m === 33 ? (e.consume(m), s) : m === 47 ? (e.consume(m),
|
|
3036
|
+
return m === 33 ? (e.consume(m), s) : m === 47 ? (e.consume(m), v) : m === 63 ? (e.consume(m), E) : J(m) ? (e.consume(m), q) : n(m);
|
|
3015
3037
|
}
|
|
3016
3038
|
function s(m) {
|
|
3017
|
-
return m === 45 ? (e.consume(m), f) : m === 91 ? (e.consume(m), o = 0, d) : J(m) ? (e.consume(m),
|
|
3039
|
+
return m === 45 ? (e.consume(m), f) : m === 91 ? (e.consume(m), o = 0, d) : J(m) ? (e.consume(m), I) : n(m);
|
|
3018
3040
|
}
|
|
3019
3041
|
function f(m) {
|
|
3020
3042
|
return m === 45 ? (e.consume(m), p) : n(m);
|
|
@@ -3041,8 +3063,8 @@ function Ro(e, t, n) {
|
|
|
3041
3063
|
function x(m) {
|
|
3042
3064
|
return m === 62 ? X(m) : m === 93 ? (e.consume(m), x) : k(m);
|
|
3043
3065
|
}
|
|
3044
|
-
function
|
|
3045
|
-
return m === null || m === 62 ? X(m) : L(m) ? (l =
|
|
3066
|
+
function I(m) {
|
|
3067
|
+
return m === null || m === 62 ? X(m) : L(m) ? (l = I, Q(m)) : (e.consume(m), I);
|
|
3046
3068
|
}
|
|
3047
3069
|
function E(m) {
|
|
3048
3070
|
return m === null ? n(m) : m === 63 ? (e.consume(m), z) : L(m) ? (l = E, Q(m)) : (e.consume(m), E);
|
|
@@ -3050,38 +3072,38 @@ function Ro(e, t, n) {
|
|
|
3050
3072
|
function z(m) {
|
|
3051
3073
|
return m === 62 ? X(m) : E(m);
|
|
3052
3074
|
}
|
|
3053
|
-
function
|
|
3075
|
+
function v(m) {
|
|
3054
3076
|
return J(m) ? (e.consume(m), w) : n(m);
|
|
3055
3077
|
}
|
|
3056
3078
|
function w(m) {
|
|
3057
|
-
return m === 45 || Y(m) ? (e.consume(m), w) :
|
|
3079
|
+
return m === 45 || Y(m) ? (e.consume(m), w) : _(m);
|
|
3058
3080
|
}
|
|
3059
|
-
function
|
|
3060
|
-
return L(m) ? (l =
|
|
3081
|
+
function _(m) {
|
|
3082
|
+
return L(m) ? (l = _, Q(m)) : F(m) ? (e.consume(m), _) : X(m);
|
|
3061
3083
|
}
|
|
3062
3084
|
function q(m) {
|
|
3063
|
-
return m === 45 || Y(m) ? (e.consume(m), q) : m === 47 || m === 62 || U(m) ?
|
|
3085
|
+
return m === 45 || Y(m) ? (e.consume(m), q) : m === 47 || m === 62 || U(m) ? B(m) : n(m);
|
|
3064
3086
|
}
|
|
3065
|
-
function
|
|
3066
|
-
return m === 47 ? (e.consume(m), X) : m === 58 || m === 95 || J(m) ? (e.consume(m), y) : L(m) ? (l =
|
|
3087
|
+
function B(m) {
|
|
3088
|
+
return m === 47 ? (e.consume(m), X) : m === 58 || m === 95 || J(m) ? (e.consume(m), y) : L(m) ? (l = B, Q(m)) : F(m) ? (e.consume(m), B) : X(m);
|
|
3067
3089
|
}
|
|
3068
3090
|
function y(m) {
|
|
3069
3091
|
return m === 45 || m === 46 || m === 58 || m === 95 || Y(m) ? (e.consume(m), y) : T(m);
|
|
3070
3092
|
}
|
|
3071
3093
|
function T(m) {
|
|
3072
|
-
return m === 61 ? (e.consume(m), P) : L(m) ? (l = T, Q(m)) : F(m) ? (e.consume(m), T) :
|
|
3094
|
+
return m === 61 ? (e.consume(m), P) : L(m) ? (l = T, Q(m)) : F(m) ? (e.consume(m), T) : B(m);
|
|
3073
3095
|
}
|
|
3074
3096
|
function P(m) {
|
|
3075
3097
|
return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? n(m) : m === 34 || m === 39 ? (e.consume(m), i = m, H) : L(m) ? (l = P, Q(m)) : F(m) ? (e.consume(m), P) : (e.consume(m), V);
|
|
3076
3098
|
}
|
|
3077
3099
|
function H(m) {
|
|
3078
|
-
return m === i ? (e.consume(m), i = void 0,
|
|
3100
|
+
return m === i ? (e.consume(m), i = void 0, N) : m === null ? n(m) : L(m) ? (l = H, Q(m)) : (e.consume(m), H);
|
|
3079
3101
|
}
|
|
3080
3102
|
function V(m) {
|
|
3081
|
-
return m === null || m === 34 || m === 39 || m === 60 || m === 61 || m === 96 ? n(m) : m === 47 || m === 62 || U(m) ?
|
|
3103
|
+
return m === null || m === 34 || m === 39 || m === 60 || m === 61 || m === 96 ? n(m) : m === 47 || m === 62 || U(m) ? B(m) : (e.consume(m), V);
|
|
3082
3104
|
}
|
|
3083
|
-
function
|
|
3084
|
-
return m === 47 || m === 62 || U(m) ?
|
|
3105
|
+
function N(m) {
|
|
3106
|
+
return m === 47 || m === 62 || U(m) ? B(m) : n(m);
|
|
3085
3107
|
}
|
|
3086
3108
|
function X(m) {
|
|
3087
3109
|
return m === 62 ? (e.consume(m), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(m);
|
|
@@ -3105,15 +3127,15 @@ const Vn = {
|
|
|
3105
3127
|
name: "labelEnd",
|
|
3106
3128
|
tokenize: Ho,
|
|
3107
3129
|
resolveTo: jo,
|
|
3108
|
-
resolveAll:
|
|
3109
|
-
},
|
|
3130
|
+
resolveAll: Bo
|
|
3131
|
+
}, Ro = {
|
|
3110
3132
|
tokenize: Uo
|
|
3111
3133
|
}, Mo = {
|
|
3112
3134
|
tokenize: $o
|
|
3113
|
-
},
|
|
3135
|
+
}, No = {
|
|
3114
3136
|
tokenize: qo
|
|
3115
3137
|
};
|
|
3116
|
-
function
|
|
3138
|
+
function Bo(e) {
|
|
3117
3139
|
let t = -1;
|
|
3118
3140
|
for (; ++t < e.length; ) {
|
|
3119
3141
|
const n = e[t][1];
|
|
@@ -3185,7 +3207,7 @@ function Ho(e, t, n) {
|
|
|
3185
3207
|
}
|
|
3186
3208
|
function u(h) {
|
|
3187
3209
|
return h === 40 ? e.attempt(
|
|
3188
|
-
|
|
3210
|
+
Ro,
|
|
3189
3211
|
f,
|
|
3190
3212
|
l ? f : c
|
|
3191
3213
|
)(h) : h === 91 ? e.attempt(
|
|
@@ -3196,7 +3218,7 @@ function Ho(e, t, n) {
|
|
|
3196
3218
|
}
|
|
3197
3219
|
function s(h) {
|
|
3198
3220
|
return e.attempt(
|
|
3199
|
-
|
|
3221
|
+
No,
|
|
3200
3222
|
f,
|
|
3201
3223
|
c
|
|
3202
3224
|
)(h);
|
|
@@ -3236,7 +3258,7 @@ function Uo(e, t, n) {
|
|
|
3236
3258
|
return n(c);
|
|
3237
3259
|
}
|
|
3238
3260
|
function u(c) {
|
|
3239
|
-
return c === 34 || c === 39 || c === 40 ?
|
|
3261
|
+
return c === 34 || c === 39 || c === 40 ? vr(
|
|
3240
3262
|
e,
|
|
3241
3263
|
s,
|
|
3242
3264
|
n,
|
|
@@ -3543,8 +3565,8 @@ function aa(e) {
|
|
|
3543
3565
|
}
|
|
3544
3566
|
const ua = {
|
|
3545
3567
|
resolveAll: Or()
|
|
3546
|
-
}, sa =
|
|
3547
|
-
function
|
|
3568
|
+
}, sa = Dr("string"), ca = Dr("text");
|
|
3569
|
+
function Dr(e) {
|
|
3548
3570
|
return {
|
|
3549
3571
|
tokenize: t,
|
|
3550
3572
|
resolveAll: Or(
|
|
@@ -3649,12 +3671,12 @@ function pa(e, t, n) {
|
|
|
3649
3671
|
const i = {}, o = [];
|
|
3650
3672
|
let l = [], a = [];
|
|
3651
3673
|
const u = {
|
|
3652
|
-
consume:
|
|
3674
|
+
consume: I,
|
|
3653
3675
|
enter: E,
|
|
3654
3676
|
exit: z,
|
|
3655
|
-
attempt:
|
|
3656
|
-
check:
|
|
3657
|
-
interrupt:
|
|
3677
|
+
attempt: _(v),
|
|
3678
|
+
check: _(w),
|
|
3679
|
+
interrupt: _(w, {
|
|
3658
3680
|
interrupt: !0
|
|
3659
3681
|
})
|
|
3660
3682
|
}, s = {
|
|
@@ -3681,13 +3703,13 @@ function pa(e, t, n) {
|
|
|
3681
3703
|
return ha(l, T);
|
|
3682
3704
|
}
|
|
3683
3705
|
function d() {
|
|
3684
|
-
const { line: T, column: P, offset: H, _index: V, _bufferIndex:
|
|
3706
|
+
const { line: T, column: P, offset: H, _index: V, _bufferIndex: N } = r;
|
|
3685
3707
|
return {
|
|
3686
3708
|
line: T,
|
|
3687
3709
|
column: P,
|
|
3688
3710
|
offset: H,
|
|
3689
3711
|
_index: V,
|
|
3690
|
-
_bufferIndex:
|
|
3712
|
+
_bufferIndex: N
|
|
3691
3713
|
};
|
|
3692
3714
|
}
|
|
3693
3715
|
function k(T) {
|
|
@@ -3707,7 +3729,7 @@ function pa(e, t, n) {
|
|
|
3707
3729
|
function x(T) {
|
|
3708
3730
|
f = f(T);
|
|
3709
3731
|
}
|
|
3710
|
-
function
|
|
3732
|
+
function I(T) {
|
|
3711
3733
|
L(T) ? (r.line++, r.column = 1, r.offset += T === -3 ? 2 : 1, y()) : T !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === l[r._index].length && (r._bufferIndex = -1, r._index++)), s.previous = T;
|
|
3712
3734
|
}
|
|
3713
3735
|
function E(T, P) {
|
|
@@ -3718,23 +3740,23 @@ function pa(e, t, n) {
|
|
|
3718
3740
|
const P = a.pop();
|
|
3719
3741
|
return P.end = d(), s.events.push(["exit", P, s]), P;
|
|
3720
3742
|
}
|
|
3721
|
-
function
|
|
3743
|
+
function v(T, P) {
|
|
3722
3744
|
q(T, P.from);
|
|
3723
3745
|
}
|
|
3724
3746
|
function w(T, P) {
|
|
3725
3747
|
P.restore();
|
|
3726
3748
|
}
|
|
3727
|
-
function
|
|
3749
|
+
function _(T, P) {
|
|
3728
3750
|
return H;
|
|
3729
|
-
function H(V,
|
|
3751
|
+
function H(V, N, X) {
|
|
3730
3752
|
let Q, oe, he, m;
|
|
3731
3753
|
return Array.isArray(V) ? me(V) : "tokenize" in V ? (
|
|
3732
3754
|
// @ts-expect-error Looks like a construct.
|
|
3733
3755
|
me([V])
|
|
3734
3756
|
) : ae(V);
|
|
3735
3757
|
function ae(G) {
|
|
3736
|
-
return
|
|
3737
|
-
function
|
|
3758
|
+
return _e;
|
|
3759
|
+
function _e(ke) {
|
|
3738
3760
|
const Pe = ke !== null && G[ke], Se = ke !== null && G.null, sn = [
|
|
3739
3761
|
// To do: add more extension tests.
|
|
3740
3762
|
/* c8 ignore next 2 */
|
|
@@ -3748,9 +3770,9 @@ function pa(e, t, n) {
|
|
|
3748
3770
|
return Q = G, oe = 0, G.length === 0 ? X : g(G[oe]);
|
|
3749
3771
|
}
|
|
3750
3772
|
function g(G) {
|
|
3751
|
-
return
|
|
3752
|
-
function
|
|
3753
|
-
return m =
|
|
3773
|
+
return _e;
|
|
3774
|
+
function _e(ke) {
|
|
3775
|
+
return m = B(), he = G, G.partial || (s.currentConstruct = G), G.name && s.parser.constructs.disable.null.includes(G.name) ? we() : G.tokenize.call(
|
|
3754
3776
|
// If we do have fields, create an object w/ `context` as its
|
|
3755
3777
|
// prototype.
|
|
3756
3778
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
@@ -3762,7 +3784,7 @@ function pa(e, t, n) {
|
|
|
3762
3784
|
}
|
|
3763
3785
|
}
|
|
3764
3786
|
function ue(G) {
|
|
3765
|
-
return T(he, m),
|
|
3787
|
+
return T(he, m), N;
|
|
3766
3788
|
}
|
|
3767
3789
|
function we(G) {
|
|
3768
3790
|
return m.restore(), ++oe < Q.length ? g(Q[oe]) : X;
|
|
@@ -3777,14 +3799,14 @@ function pa(e, t, n) {
|
|
|
3777
3799
|
T.resolve(s.events.slice(P), s)
|
|
3778
3800
|
), T.resolveTo && (s.events = T.resolveTo(s.events, s));
|
|
3779
3801
|
}
|
|
3780
|
-
function
|
|
3781
|
-
const T = d(), P = s.previous, H = s.currentConstruct, V = s.events.length,
|
|
3802
|
+
function B() {
|
|
3803
|
+
const T = d(), P = s.previous, H = s.currentConstruct, V = s.events.length, N = Array.from(a);
|
|
3782
3804
|
return {
|
|
3783
3805
|
restore: X,
|
|
3784
3806
|
from: V
|
|
3785
3807
|
};
|
|
3786
3808
|
function X() {
|
|
3787
|
-
r = T, s.previous = P, s.currentConstruct = H, s.events.length = V, a =
|
|
3809
|
+
r = T, s.previous = P, s.currentConstruct = H, s.events.length = V, a = N, y();
|
|
3788
3810
|
}
|
|
3789
3811
|
}
|
|
3790
3812
|
function y() {
|
|
@@ -3860,7 +3882,7 @@ const ga = {
|
|
|
3860
3882
|
55: Z,
|
|
3861
3883
|
56: Z,
|
|
3862
3884
|
57: Z,
|
|
3863
|
-
62:
|
|
3885
|
+
62: Ir
|
|
3864
3886
|
}, da = {
|
|
3865
3887
|
91: yo
|
|
3866
3888
|
}, ya = {
|
|
@@ -3878,28 +3900,28 @@ const ga = {
|
|
|
3878
3900
|
126: Tt
|
|
3879
3901
|
}, xa = {
|
|
3880
3902
|
38: Tr,
|
|
3881
|
-
92:
|
|
3903
|
+
92: Ar
|
|
3882
3904
|
}, ba = {
|
|
3883
3905
|
[-5]: mn,
|
|
3884
3906
|
[-4]: mn,
|
|
3885
3907
|
[-3]: mn,
|
|
3886
3908
|
33: Vo,
|
|
3887
3909
|
38: Tr,
|
|
3888
|
-
42:
|
|
3910
|
+
42: vn,
|
|
3889
3911
|
60: [Ql, Fo],
|
|
3890
3912
|
91: Qo,
|
|
3891
|
-
92: [wo,
|
|
3913
|
+
92: [wo, Ar],
|
|
3892
3914
|
93: Vn,
|
|
3893
|
-
95:
|
|
3915
|
+
95: vn,
|
|
3894
3916
|
96: oo
|
|
3895
3917
|
}, wa = {
|
|
3896
|
-
null: [
|
|
3918
|
+
null: [vn, ua]
|
|
3897
3919
|
}, Sa = {
|
|
3898
3920
|
null: [42, 95]
|
|
3899
3921
|
}, Ca = {
|
|
3900
3922
|
null: []
|
|
3901
3923
|
}, Ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, attentionMarkers: Sa, contentInitial: da, disable: Ca, document: ga, flow: ka, flowInitial: ya, insideSpan: wa, string: xa, text: ba }, Symbol.toStringTag, { value: "Module" }));
|
|
3902
|
-
function
|
|
3924
|
+
function Ia(e) {
|
|
3903
3925
|
const n = (
|
|
3904
3926
|
/** @type {FullNormalizedExtension} */
|
|
3905
3927
|
Cr([Ea, ...(e || {}).extensions || []])
|
|
@@ -3921,7 +3943,7 @@ function Aa(e) {
|
|
|
3921
3943
|
}
|
|
3922
3944
|
}
|
|
3923
3945
|
}
|
|
3924
|
-
function
|
|
3946
|
+
function Aa(e) {
|
|
3925
3947
|
for (; !Pr(e); )
|
|
3926
3948
|
;
|
|
3927
3949
|
return e;
|
|
@@ -3976,33 +3998,33 @@ function za(e, t, n) {
|
|
|
3976
3998
|
return qn(n) || e;
|
|
3977
3999
|
}
|
|
3978
4000
|
const Fr = {}.hasOwnProperty;
|
|
3979
|
-
function
|
|
3980
|
-
return typeof t != "string" && (n = t, t = void 0),
|
|
3981
|
-
|
|
3982
|
-
|
|
4001
|
+
function va(e, t, n) {
|
|
4002
|
+
return typeof t != "string" && (n = t, t = void 0), Da(n)(
|
|
4003
|
+
Aa(
|
|
4004
|
+
Ia(n).document().write(Ta()(e, t, !0))
|
|
3983
4005
|
)
|
|
3984
4006
|
);
|
|
3985
4007
|
}
|
|
3986
|
-
function
|
|
4008
|
+
function Da(e) {
|
|
3987
4009
|
const t = {
|
|
3988
4010
|
transforms: [],
|
|
3989
4011
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
3990
4012
|
enter: {
|
|
3991
4013
|
autolink: o(it),
|
|
3992
|
-
autolinkProtocol:
|
|
3993
|
-
autolinkEmail:
|
|
4014
|
+
autolinkProtocol: B,
|
|
4015
|
+
autolinkEmail: B,
|
|
3994
4016
|
atxHeading: o(nt),
|
|
3995
4017
|
blockQuote: o(Pe),
|
|
3996
|
-
characterEscape:
|
|
3997
|
-
characterReference:
|
|
4018
|
+
characterEscape: B,
|
|
4019
|
+
characterReference: B,
|
|
3998
4020
|
codeFenced: o(Se),
|
|
3999
4021
|
codeFencedFenceInfo: l,
|
|
4000
4022
|
codeFencedFenceMeta: l,
|
|
4001
4023
|
codeIndented: o(Se, l),
|
|
4002
4024
|
codeText: o(sn, l),
|
|
4003
|
-
codeTextData:
|
|
4004
|
-
data:
|
|
4005
|
-
codeFlowValue:
|
|
4025
|
+
codeTextData: B,
|
|
4026
|
+
data: B,
|
|
4027
|
+
codeFlowValue: B,
|
|
4006
4028
|
definition: o(hi),
|
|
4007
4029
|
definitionDestinationString: l,
|
|
4008
4030
|
definitionLabelString: l,
|
|
@@ -4011,9 +4033,9 @@ function va(e) {
|
|
|
4011
4033
|
hardBreakEscape: o(tt),
|
|
4012
4034
|
hardBreakTrailing: o(tt),
|
|
4013
4035
|
htmlFlow: o(rt, l),
|
|
4014
|
-
htmlFlowData:
|
|
4036
|
+
htmlFlowData: B,
|
|
4015
4037
|
htmlText: o(rt, l),
|
|
4016
|
-
htmlTextData:
|
|
4038
|
+
htmlTextData: B,
|
|
4017
4039
|
image: o(gi),
|
|
4018
4040
|
label: l,
|
|
4019
4041
|
link: o(it),
|
|
@@ -4032,10 +4054,10 @@ function va(e) {
|
|
|
4032
4054
|
},
|
|
4033
4055
|
exit: {
|
|
4034
4056
|
atxHeading: u(),
|
|
4035
|
-
atxHeadingSequence:
|
|
4057
|
+
atxHeadingSequence: v,
|
|
4036
4058
|
autolink: u(),
|
|
4037
4059
|
autolinkEmail: ke,
|
|
4038
|
-
autolinkProtocol:
|
|
4060
|
+
autolinkProtocol: _e,
|
|
4039
4061
|
blockQuote: u(),
|
|
4040
4062
|
characterEscapeValue: y,
|
|
4041
4063
|
characterReferenceMarkerHexadecimal: we,
|
|
@@ -4047,12 +4069,12 @@ function va(e) {
|
|
|
4047
4069
|
codeFencedFenceMeta: d,
|
|
4048
4070
|
codeFlowValue: y,
|
|
4049
4071
|
codeIndented: u(x),
|
|
4050
|
-
codeText: u(
|
|
4072
|
+
codeText: u(N),
|
|
4051
4073
|
codeTextData: y,
|
|
4052
4074
|
data: y,
|
|
4053
4075
|
definition: u(),
|
|
4054
4076
|
definitionDestinationString: z,
|
|
4055
|
-
definitionLabelString:
|
|
4077
|
+
definitionLabelString: I,
|
|
4056
4078
|
definitionTitleString: E,
|
|
4057
4079
|
emphasis: u(),
|
|
4058
4080
|
hardBreakEscape: u(P),
|
|
@@ -4075,22 +4097,22 @@ function va(e) {
|
|
|
4075
4097
|
resourceTitleString: ae,
|
|
4076
4098
|
resource: me,
|
|
4077
4099
|
setextHeading: u(q),
|
|
4078
|
-
setextHeadingLineSequence:
|
|
4100
|
+
setextHeadingLineSequence: _,
|
|
4079
4101
|
setextHeadingText: w,
|
|
4080
4102
|
strong: u(),
|
|
4081
4103
|
thematicBreak: u()
|
|
4082
4104
|
}
|
|
4083
4105
|
};
|
|
4084
|
-
|
|
4106
|
+
_r(t, (e || {}).mdastExtensions || []);
|
|
4085
4107
|
const n = {};
|
|
4086
4108
|
return r;
|
|
4087
4109
|
function r(b) {
|
|
4088
|
-
let
|
|
4110
|
+
let A = {
|
|
4089
4111
|
type: "root",
|
|
4090
4112
|
children: []
|
|
4091
4113
|
};
|
|
4092
|
-
const
|
|
4093
|
-
stack: [
|
|
4114
|
+
const D = {
|
|
4115
|
+
stack: [A],
|
|
4094
4116
|
tokenStack: [],
|
|
4095
4117
|
config: t,
|
|
4096
4118
|
enter: a,
|
|
@@ -4098,14 +4120,14 @@ function va(e) {
|
|
|
4098
4120
|
buffer: l,
|
|
4099
4121
|
resume: f,
|
|
4100
4122
|
data: n
|
|
4101
|
-
},
|
|
4123
|
+
}, R = [];
|
|
4102
4124
|
let j = -1;
|
|
4103
4125
|
for (; ++j < b.length; )
|
|
4104
4126
|
if (b[j][1].type === "listOrdered" || b[j][1].type === "listUnordered")
|
|
4105
4127
|
if (b[j][0] === "enter")
|
|
4106
|
-
|
|
4128
|
+
R.push(j);
|
|
4107
4129
|
else {
|
|
4108
|
-
const se =
|
|
4130
|
+
const se = R.pop();
|
|
4109
4131
|
j = i(b, se, j);
|
|
4110
4132
|
}
|
|
4111
4133
|
for (j = -1; ++j < b.length; ) {
|
|
@@ -4115,16 +4137,16 @@ function va(e) {
|
|
|
4115
4137
|
{
|
|
4116
4138
|
sliceSerialize: b[j][2].sliceSerialize
|
|
4117
4139
|
},
|
|
4118
|
-
|
|
4140
|
+
D
|
|
4119
4141
|
),
|
|
4120
4142
|
b[j][1]
|
|
4121
4143
|
);
|
|
4122
4144
|
}
|
|
4123
|
-
if (
|
|
4124
|
-
const se =
|
|
4125
|
-
(se[1] ||
|
|
4145
|
+
if (D.tokenStack.length > 0) {
|
|
4146
|
+
const se = D.tokenStack[D.tokenStack.length - 1];
|
|
4147
|
+
(se[1] || vt).call(D, void 0, se[0]);
|
|
4126
4148
|
}
|
|
4127
|
-
for (
|
|
4149
|
+
for (A.position = {
|
|
4128
4150
|
start: xe(
|
|
4129
4151
|
b.length > 0 ? b[0][1].start : {
|
|
4130
4152
|
line: 1,
|
|
@@ -4140,13 +4162,13 @@ function va(e) {
|
|
|
4140
4162
|
}
|
|
4141
4163
|
)
|
|
4142
4164
|
}, j = -1; ++j < t.transforms.length; )
|
|
4143
|
-
|
|
4144
|
-
return
|
|
4165
|
+
A = t.transforms[j](A) || A;
|
|
4166
|
+
return A;
|
|
4145
4167
|
}
|
|
4146
|
-
function i(b,
|
|
4147
|
-
let
|
|
4148
|
-
for (; ++
|
|
4149
|
-
const ee = b[
|
|
4168
|
+
function i(b, A, D) {
|
|
4169
|
+
let R = A - 1, j = -1, se = !1, Ce, ge, Re, Me;
|
|
4170
|
+
for (; ++R <= D; ) {
|
|
4171
|
+
const ee = b[R];
|
|
4150
4172
|
switch (ee[1].type) {
|
|
4151
4173
|
case "listUnordered":
|
|
4152
4174
|
case "listOrdered":
|
|
@@ -4155,7 +4177,7 @@ function va(e) {
|
|
|
4155
4177
|
break;
|
|
4156
4178
|
}
|
|
4157
4179
|
case "lineEndingBlank": {
|
|
4158
|
-
ee[0] === "enter" && (Ce && !Me && !j && !
|
|
4180
|
+
ee[0] === "enter" && (Ce && !Me && !j && !Re && (Re = R), Me = void 0);
|
|
4159
4181
|
break;
|
|
4160
4182
|
}
|
|
4161
4183
|
case "linePrefix":
|
|
@@ -4169,7 +4191,7 @@ function va(e) {
|
|
|
4169
4191
|
}
|
|
4170
4192
|
if (!j && ee[0] === "enter" && ee[1].type === "listItemPrefix" || j === -1 && ee[0] === "exit" && (ee[1].type === "listUnordered" || ee[1].type === "listOrdered")) {
|
|
4171
4193
|
if (Ce) {
|
|
4172
|
-
let Le =
|
|
4194
|
+
let Le = R;
|
|
4173
4195
|
for (ge = void 0; Le--; ) {
|
|
4174
4196
|
const de = b[Le];
|
|
4175
4197
|
if (de[1].type === "lineEnding" || de[1].type === "lineEndingBlank") {
|
|
@@ -4177,10 +4199,10 @@ function va(e) {
|
|
|
4177
4199
|
ge && (b[ge][1].type = "lineEndingBlank", se = !0), de[1].type = "lineEnding", ge = Le;
|
|
4178
4200
|
} else if (!(de[1].type === "linePrefix" || de[1].type === "blockQuotePrefix" || de[1].type === "blockQuotePrefixWhitespace" || de[1].type === "blockQuoteMarker" || de[1].type === "listItemIndent")) break;
|
|
4179
4201
|
}
|
|
4180
|
-
|
|
4202
|
+
Re && (!ge || Re < ge) && (Ce._spread = !0), Ce.end = Object.assign(
|
|
4181
4203
|
{},
|
|
4182
4204
|
ge ? b[ge][1].start : ee[1].end
|
|
4183
|
-
), b.splice(ge ||
|
|
4205
|
+
), b.splice(ge || R, 0, ["exit", Ce, ee[2]]), R++, D++;
|
|
4184
4206
|
}
|
|
4185
4207
|
if (ee[1].type === "listItemPrefix") {
|
|
4186
4208
|
const Le = {
|
|
@@ -4190,16 +4212,16 @@ function va(e) {
|
|
|
4190
4212
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
4191
4213
|
end: void 0
|
|
4192
4214
|
};
|
|
4193
|
-
Ce = Le, b.splice(
|
|
4215
|
+
Ce = Le, b.splice(R, 0, ["enter", Le, ee[2]]), R++, D++, Re = void 0, Me = !0;
|
|
4194
4216
|
}
|
|
4195
4217
|
}
|
|
4196
4218
|
}
|
|
4197
|
-
return b[
|
|
4219
|
+
return b[A][1]._spread = se, D;
|
|
4198
4220
|
}
|
|
4199
|
-
function o(b,
|
|
4200
|
-
return
|
|
4201
|
-
function
|
|
4202
|
-
a.call(this, b(
|
|
4221
|
+
function o(b, A) {
|
|
4222
|
+
return D;
|
|
4223
|
+
function D(R) {
|
|
4224
|
+
a.call(this, b(R), R), A && A.call(this, R);
|
|
4203
4225
|
}
|
|
4204
4226
|
}
|
|
4205
4227
|
function l() {
|
|
@@ -4208,30 +4230,30 @@ function va(e) {
|
|
|
4208
4230
|
children: []
|
|
4209
4231
|
});
|
|
4210
4232
|
}
|
|
4211
|
-
function a(b,
|
|
4212
|
-
this.stack[this.stack.length - 1].children.push(b), this.stack.push(b), this.tokenStack.push([
|
|
4213
|
-
start: xe(
|
|
4233
|
+
function a(b, A, D) {
|
|
4234
|
+
this.stack[this.stack.length - 1].children.push(b), this.stack.push(b), this.tokenStack.push([A, D]), b.position = {
|
|
4235
|
+
start: xe(A.start),
|
|
4214
4236
|
// @ts-expect-error: `end` will be patched later.
|
|
4215
4237
|
end: void 0
|
|
4216
4238
|
};
|
|
4217
4239
|
}
|
|
4218
4240
|
function u(b) {
|
|
4219
|
-
return
|
|
4220
|
-
function
|
|
4221
|
-
b && b.call(this,
|
|
4241
|
+
return A;
|
|
4242
|
+
function A(D) {
|
|
4243
|
+
b && b.call(this, D), s.call(this, D);
|
|
4222
4244
|
}
|
|
4223
4245
|
}
|
|
4224
|
-
function s(b,
|
|
4225
|
-
const
|
|
4226
|
-
if (
|
|
4227
|
-
|
|
4246
|
+
function s(b, A) {
|
|
4247
|
+
const D = this.stack.pop(), R = this.tokenStack.pop();
|
|
4248
|
+
if (R)
|
|
4249
|
+
R[0].type !== b.type && (A ? A.call(this, b, R[0]) : (R[1] || vt).call(this, b, R[0]));
|
|
4228
4250
|
else throw new Error(
|
|
4229
|
-
"Cannot close `" + b.type + "` (" +
|
|
4251
|
+
"Cannot close `" + b.type + "` (" + Be({
|
|
4230
4252
|
start: b.start,
|
|
4231
4253
|
end: b.end
|
|
4232
4254
|
}) + "): it’s not open"
|
|
4233
4255
|
);
|
|
4234
|
-
|
|
4256
|
+
D.position.end = xe(b.end);
|
|
4235
4257
|
}
|
|
4236
4258
|
function f() {
|
|
4237
4259
|
return $n(this.stack.pop());
|
|
@@ -4241,102 +4263,102 @@ function va(e) {
|
|
|
4241
4263
|
}
|
|
4242
4264
|
function h(b) {
|
|
4243
4265
|
if (this.data.expectingFirstListItemValue) {
|
|
4244
|
-
const
|
|
4245
|
-
|
|
4266
|
+
const A = this.stack[this.stack.length - 2];
|
|
4267
|
+
A.start = Number.parseInt(this.sliceSerialize(b), 10), this.data.expectingFirstListItemValue = void 0;
|
|
4246
4268
|
}
|
|
4247
4269
|
}
|
|
4248
4270
|
function p() {
|
|
4249
|
-
const b = this.resume(),
|
|
4250
|
-
|
|
4271
|
+
const b = this.resume(), A = this.stack[this.stack.length - 1];
|
|
4272
|
+
A.lang = b;
|
|
4251
4273
|
}
|
|
4252
4274
|
function d() {
|
|
4253
|
-
const b = this.resume(),
|
|
4254
|
-
|
|
4275
|
+
const b = this.resume(), A = this.stack[this.stack.length - 1];
|
|
4276
|
+
A.meta = b;
|
|
4255
4277
|
}
|
|
4256
4278
|
function k() {
|
|
4257
4279
|
this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
|
|
4258
4280
|
}
|
|
4259
4281
|
function S() {
|
|
4260
|
-
const b = this.resume(),
|
|
4261
|
-
|
|
4282
|
+
const b = this.resume(), A = this.stack[this.stack.length - 1];
|
|
4283
|
+
A.value = b.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
|
|
4262
4284
|
}
|
|
4263
4285
|
function x() {
|
|
4264
|
-
const b = this.resume(),
|
|
4265
|
-
|
|
4286
|
+
const b = this.resume(), A = this.stack[this.stack.length - 1];
|
|
4287
|
+
A.value = b.replace(/(\r?\n|\r)$/g, "");
|
|
4266
4288
|
}
|
|
4267
|
-
function
|
|
4268
|
-
const
|
|
4269
|
-
|
|
4289
|
+
function I(b) {
|
|
4290
|
+
const A = this.resume(), D = this.stack[this.stack.length - 1];
|
|
4291
|
+
D.label = A, D.identifier = ce(
|
|
4270
4292
|
this.sliceSerialize(b)
|
|
4271
4293
|
).toLowerCase();
|
|
4272
4294
|
}
|
|
4273
4295
|
function E() {
|
|
4274
|
-
const b = this.resume(),
|
|
4275
|
-
|
|
4296
|
+
const b = this.resume(), A = this.stack[this.stack.length - 1];
|
|
4297
|
+
A.title = b;
|
|
4276
4298
|
}
|
|
4277
4299
|
function z() {
|
|
4278
|
-
const b = this.resume(),
|
|
4279
|
-
|
|
4280
|
-
}
|
|
4281
|
-
function
|
|
4282
|
-
const
|
|
4283
|
-
if (!
|
|
4284
|
-
const
|
|
4285
|
-
|
|
4300
|
+
const b = this.resume(), A = this.stack[this.stack.length - 1];
|
|
4301
|
+
A.url = b;
|
|
4302
|
+
}
|
|
4303
|
+
function v(b) {
|
|
4304
|
+
const A = this.stack[this.stack.length - 1];
|
|
4305
|
+
if (!A.depth) {
|
|
4306
|
+
const D = this.sliceSerialize(b).length;
|
|
4307
|
+
A.depth = D;
|
|
4286
4308
|
}
|
|
4287
4309
|
}
|
|
4288
4310
|
function w() {
|
|
4289
4311
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
4290
4312
|
}
|
|
4291
|
-
function
|
|
4292
|
-
const
|
|
4293
|
-
|
|
4313
|
+
function _(b) {
|
|
4314
|
+
const A = this.stack[this.stack.length - 1];
|
|
4315
|
+
A.depth = this.sliceSerialize(b).codePointAt(0) === 61 ? 1 : 2;
|
|
4294
4316
|
}
|
|
4295
4317
|
function q() {
|
|
4296
4318
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
4297
4319
|
}
|
|
4298
|
-
function
|
|
4299
|
-
const
|
|
4300
|
-
let
|
|
4301
|
-
(!
|
|
4320
|
+
function B(b) {
|
|
4321
|
+
const D = this.stack[this.stack.length - 1].children;
|
|
4322
|
+
let R = D[D.length - 1];
|
|
4323
|
+
(!R || R.type !== "text") && (R = xi(), R.position = {
|
|
4302
4324
|
start: xe(b.start),
|
|
4303
4325
|
// @ts-expect-error: we’ll add `end` later.
|
|
4304
4326
|
end: void 0
|
|
4305
|
-
},
|
|
4327
|
+
}, D.push(R)), this.stack.push(R);
|
|
4306
4328
|
}
|
|
4307
4329
|
function y(b) {
|
|
4308
|
-
const
|
|
4309
|
-
|
|
4330
|
+
const A = this.stack.pop();
|
|
4331
|
+
A.value += this.sliceSerialize(b), A.position.end = xe(b.end);
|
|
4310
4332
|
}
|
|
4311
4333
|
function T(b) {
|
|
4312
|
-
const
|
|
4334
|
+
const A = this.stack[this.stack.length - 1];
|
|
4313
4335
|
if (this.data.atHardBreak) {
|
|
4314
|
-
const
|
|
4315
|
-
|
|
4336
|
+
const D = A.children[A.children.length - 1];
|
|
4337
|
+
D.position.end = xe(b.end), this.data.atHardBreak = void 0;
|
|
4316
4338
|
return;
|
|
4317
4339
|
}
|
|
4318
|
-
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(
|
|
4340
|
+
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(A.type) && (B.call(this, b), y.call(this, b));
|
|
4319
4341
|
}
|
|
4320
4342
|
function P() {
|
|
4321
4343
|
this.data.atHardBreak = !0;
|
|
4322
4344
|
}
|
|
4323
4345
|
function H() {
|
|
4324
|
-
const b = this.resume(),
|
|
4325
|
-
|
|
4346
|
+
const b = this.resume(), A = this.stack[this.stack.length - 1];
|
|
4347
|
+
A.value = b;
|
|
4326
4348
|
}
|
|
4327
4349
|
function V() {
|
|
4328
|
-
const b = this.resume(),
|
|
4329
|
-
|
|
4350
|
+
const b = this.resume(), A = this.stack[this.stack.length - 1];
|
|
4351
|
+
A.value = b;
|
|
4330
4352
|
}
|
|
4331
|
-
function
|
|
4332
|
-
const b = this.resume(),
|
|
4333
|
-
|
|
4353
|
+
function N() {
|
|
4354
|
+
const b = this.resume(), A = this.stack[this.stack.length - 1];
|
|
4355
|
+
A.value = b;
|
|
4334
4356
|
}
|
|
4335
4357
|
function X() {
|
|
4336
4358
|
const b = this.stack[this.stack.length - 1];
|
|
4337
4359
|
if (this.data.inReference) {
|
|
4338
|
-
const
|
|
4339
|
-
b.type += "Reference", b.referenceType =
|
|
4360
|
+
const A = this.data.referenceType || "shortcut";
|
|
4361
|
+
b.type += "Reference", b.referenceType = A, delete b.url, delete b.title;
|
|
4340
4362
|
} else
|
|
4341
4363
|
delete b.identifier, delete b.label;
|
|
4342
4364
|
this.data.referenceType = void 0;
|
|
@@ -4344,31 +4366,31 @@ function va(e) {
|
|
|
4344
4366
|
function Q() {
|
|
4345
4367
|
const b = this.stack[this.stack.length - 1];
|
|
4346
4368
|
if (this.data.inReference) {
|
|
4347
|
-
const
|
|
4348
|
-
b.type += "Reference", b.referenceType =
|
|
4369
|
+
const A = this.data.referenceType || "shortcut";
|
|
4370
|
+
b.type += "Reference", b.referenceType = A, delete b.url, delete b.title;
|
|
4349
4371
|
} else
|
|
4350
4372
|
delete b.identifier, delete b.label;
|
|
4351
4373
|
this.data.referenceType = void 0;
|
|
4352
4374
|
}
|
|
4353
4375
|
function oe(b) {
|
|
4354
|
-
const
|
|
4355
|
-
|
|
4376
|
+
const A = this.sliceSerialize(b), D = this.stack[this.stack.length - 2];
|
|
4377
|
+
D.label = La(A), D.identifier = ce(A).toLowerCase();
|
|
4356
4378
|
}
|
|
4357
4379
|
function he() {
|
|
4358
|
-
const b = this.stack[this.stack.length - 1],
|
|
4359
|
-
if (this.data.inReference = !0,
|
|
4360
|
-
const
|
|
4361
|
-
|
|
4380
|
+
const b = this.stack[this.stack.length - 1], A = this.resume(), D = this.stack[this.stack.length - 1];
|
|
4381
|
+
if (this.data.inReference = !0, D.type === "link") {
|
|
4382
|
+
const R = b.children;
|
|
4383
|
+
D.children = R;
|
|
4362
4384
|
} else
|
|
4363
|
-
|
|
4385
|
+
D.alt = A;
|
|
4364
4386
|
}
|
|
4365
4387
|
function m() {
|
|
4366
|
-
const b = this.resume(),
|
|
4367
|
-
|
|
4388
|
+
const b = this.resume(), A = this.stack[this.stack.length - 1];
|
|
4389
|
+
A.url = b;
|
|
4368
4390
|
}
|
|
4369
4391
|
function ae() {
|
|
4370
|
-
const b = this.resume(),
|
|
4371
|
-
|
|
4392
|
+
const b = this.resume(), A = this.stack[this.stack.length - 1];
|
|
4393
|
+
A.title = b;
|
|
4372
4394
|
}
|
|
4373
4395
|
function me() {
|
|
4374
4396
|
this.data.inReference = void 0;
|
|
@@ -4377,8 +4399,8 @@ function va(e) {
|
|
|
4377
4399
|
this.data.referenceType = "collapsed";
|
|
4378
4400
|
}
|
|
4379
4401
|
function ue(b) {
|
|
4380
|
-
const
|
|
4381
|
-
|
|
4402
|
+
const A = this.resume(), D = this.stack[this.stack.length - 1];
|
|
4403
|
+
D.label = A, D.identifier = ce(
|
|
4382
4404
|
this.sliceSerialize(b)
|
|
4383
4405
|
).toLowerCase(), this.data.referenceType = "full";
|
|
4384
4406
|
}
|
|
@@ -4386,24 +4408,24 @@ function va(e) {
|
|
|
4386
4408
|
this.data.characterReferenceType = b.type;
|
|
4387
4409
|
}
|
|
4388
4410
|
function G(b) {
|
|
4389
|
-
const
|
|
4390
|
-
let
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
), this.data.characterReferenceType = void 0) :
|
|
4411
|
+
const A = this.sliceSerialize(b), D = this.data.characterReferenceType;
|
|
4412
|
+
let R;
|
|
4413
|
+
D ? (R = Er(
|
|
4414
|
+
A,
|
|
4415
|
+
D === "characterReferenceMarkerNumeric" ? 10 : 16
|
|
4416
|
+
), this.data.characterReferenceType = void 0) : R = qn(A);
|
|
4395
4417
|
const j = this.stack.pop();
|
|
4396
|
-
j.value +=
|
|
4418
|
+
j.value += R, j.position.end = xe(b.end);
|
|
4397
4419
|
}
|
|
4398
|
-
function
|
|
4420
|
+
function _e(b) {
|
|
4399
4421
|
y.call(this, b);
|
|
4400
|
-
const
|
|
4401
|
-
|
|
4422
|
+
const A = this.stack[this.stack.length - 1];
|
|
4423
|
+
A.url = this.sliceSerialize(b);
|
|
4402
4424
|
}
|
|
4403
4425
|
function ke(b) {
|
|
4404
4426
|
y.call(this, b);
|
|
4405
|
-
const
|
|
4406
|
-
|
|
4427
|
+
const A = this.stack[this.stack.length - 1];
|
|
4428
|
+
A.url = "mailto:" + this.sliceSerialize(b);
|
|
4407
4429
|
}
|
|
4408
4430
|
function Pe() {
|
|
4409
4431
|
return {
|
|
@@ -4523,11 +4545,11 @@ function xe(e) {
|
|
|
4523
4545
|
offset: e.offset
|
|
4524
4546
|
};
|
|
4525
4547
|
}
|
|
4526
|
-
function
|
|
4548
|
+
function _r(e, t) {
|
|
4527
4549
|
let n = -1;
|
|
4528
4550
|
for (; ++n < t.length; ) {
|
|
4529
4551
|
const r = t[n];
|
|
4530
|
-
Array.isArray(r) ?
|
|
4552
|
+
Array.isArray(r) ? _r(e, r) : Oa(e, r);
|
|
4531
4553
|
}
|
|
4532
4554
|
}
|
|
4533
4555
|
function Oa(e, t) {
|
|
@@ -4553,17 +4575,17 @@ function Oa(e, t) {
|
|
|
4553
4575
|
}
|
|
4554
4576
|
}
|
|
4555
4577
|
}
|
|
4556
|
-
function
|
|
4578
|
+
function vt(e, t) {
|
|
4557
4579
|
throw e ? new Error(
|
|
4558
|
-
"Cannot close `" + e.type + "` (" +
|
|
4580
|
+
"Cannot close `" + e.type + "` (" + Be({
|
|
4559
4581
|
start: e.start,
|
|
4560
4582
|
end: e.end
|
|
4561
|
-
}) + "): a different token (`" + t.type + "`, " +
|
|
4583
|
+
}) + "): a different token (`" + t.type + "`, " + Be({
|
|
4562
4584
|
start: t.start,
|
|
4563
4585
|
end: t.end
|
|
4564
4586
|
}) + ") is open"
|
|
4565
4587
|
) : new Error(
|
|
4566
|
-
"Cannot close document, a token (`" + t.type + "`, " +
|
|
4588
|
+
"Cannot close document, a token (`" + t.type + "`, " + Be({
|
|
4567
4589
|
start: t.start,
|
|
4568
4590
|
end: t.end
|
|
4569
4591
|
}) + ") is still open"
|
|
@@ -4573,7 +4595,7 @@ function Fa(e) {
|
|
|
4573
4595
|
const t = this;
|
|
4574
4596
|
t.parser = n;
|
|
4575
4597
|
function n(r) {
|
|
4576
|
-
return
|
|
4598
|
+
return va(r, {
|
|
4577
4599
|
...t.data("settings"),
|
|
4578
4600
|
...e,
|
|
4579
4601
|
// Note: these options are not in the readme.
|
|
@@ -4584,7 +4606,7 @@ function Fa(e) {
|
|
|
4584
4606
|
});
|
|
4585
4607
|
}
|
|
4586
4608
|
}
|
|
4587
|
-
function
|
|
4609
|
+
function _a(e, t) {
|
|
4588
4610
|
const n = {
|
|
4589
4611
|
type: "element",
|
|
4590
4612
|
tagName: "blockquote",
|
|
@@ -4593,7 +4615,7 @@ function Ra(e, t) {
|
|
|
4593
4615
|
};
|
|
4594
4616
|
return e.patch(t, n), e.applyData(t, n);
|
|
4595
4617
|
}
|
|
4596
|
-
function
|
|
4618
|
+
function Ra(e, t) {
|
|
4597
4619
|
const n = { type: "element", tagName: "br", properties: {}, children: [] };
|
|
4598
4620
|
return e.patch(t, n), [e.applyData(t, n), { type: "text", value: `
|
|
4599
4621
|
` }];
|
|
@@ -4610,7 +4632,7 @@ function Ma(e, t) {
|
|
|
4610
4632
|
};
|
|
4611
4633
|
return t.meta && (i.data = { meta: t.meta }), e.patch(t, i), i = e.applyData(t, i), i = { type: "element", tagName: "pre", properties: {}, children: [i] }, e.patch(t, i), i;
|
|
4612
4634
|
}
|
|
4613
|
-
function
|
|
4635
|
+
function Na(e, t) {
|
|
4614
4636
|
const n = {
|
|
4615
4637
|
type: "element",
|
|
4616
4638
|
tagName: "del",
|
|
@@ -4619,7 +4641,7 @@ function Ba(e, t) {
|
|
|
4619
4641
|
};
|
|
4620
4642
|
return e.patch(t, n), e.applyData(t, n);
|
|
4621
4643
|
}
|
|
4622
|
-
function
|
|
4644
|
+
function Ba(e, t) {
|
|
4623
4645
|
const n = {
|
|
4624
4646
|
type: "element",
|
|
4625
4647
|
tagName: "em",
|
|
@@ -4667,7 +4689,7 @@ function Ua(e, t) {
|
|
|
4667
4689
|
return e.patch(t, n), e.applyData(t, n);
|
|
4668
4690
|
}
|
|
4669
4691
|
}
|
|
4670
|
-
function
|
|
4692
|
+
function Rr(e, t) {
|
|
4671
4693
|
const n = t.referenceType;
|
|
4672
4694
|
let r = "]";
|
|
4673
4695
|
if (n === "collapsed" ? r += "[]" : n === "full" && (r += "[" + (t.label || t.identifier) + "]"), t.type === "imageReference")
|
|
@@ -4680,7 +4702,7 @@ function _r(e, t) {
|
|
|
4680
4702
|
function $a(e, t) {
|
|
4681
4703
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
4682
4704
|
if (!r)
|
|
4683
|
-
return
|
|
4705
|
+
return Rr(e, t);
|
|
4684
4706
|
const i = { src: Fe(r.url || ""), alt: t.alt };
|
|
4685
4707
|
r.title !== null && r.title !== void 0 && (i.title = r.title);
|
|
4686
4708
|
const o = { type: "element", tagName: "img", properties: i, children: [] };
|
|
@@ -4706,7 +4728,7 @@ function Va(e, t) {
|
|
|
4706
4728
|
function Wa(e, t) {
|
|
4707
4729
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
4708
4730
|
if (!r)
|
|
4709
|
-
return
|
|
4731
|
+
return Rr(e, t);
|
|
4710
4732
|
const i = { href: Fe(r.url || "") };
|
|
4711
4733
|
r.title !== null && r.title !== void 0 && (i.title = r.title);
|
|
4712
4734
|
const o = {
|
|
@@ -4824,7 +4846,7 @@ function eu(e, t) {
|
|
|
4824
4846
|
tagName: "tbody",
|
|
4825
4847
|
properties: {},
|
|
4826
4848
|
children: e.wrap(n, !0)
|
|
4827
|
-
}, a =
|
|
4849
|
+
}, a = Bn(t.children[1]), u = dr(t.children[t.children.length - 1]);
|
|
4828
4850
|
a && u && (l.position = { start: a, end: u }), i.push(l);
|
|
4829
4851
|
}
|
|
4830
4852
|
const o = {
|
|
@@ -4863,7 +4885,7 @@ function tu(e, t) {
|
|
|
4863
4885
|
};
|
|
4864
4886
|
return e.patch(t, n), e.applyData(t, n);
|
|
4865
4887
|
}
|
|
4866
|
-
const
|
|
4888
|
+
const Dt = 9, Ot = 32;
|
|
4867
4889
|
function ru(e) {
|
|
4868
4890
|
const t = String(e), n = /\r?\n|\r/g;
|
|
4869
4891
|
let r = n.exec(t), i = 0;
|
|
@@ -4879,12 +4901,12 @@ function Ft(e, t, n) {
|
|
|
4879
4901
|
let r = 0, i = e.length;
|
|
4880
4902
|
if (t) {
|
|
4881
4903
|
let o = e.codePointAt(r);
|
|
4882
|
-
for (; o ===
|
|
4904
|
+
for (; o === Dt || o === Ot; )
|
|
4883
4905
|
r++, o = e.codePointAt(r);
|
|
4884
4906
|
}
|
|
4885
4907
|
if (n) {
|
|
4886
4908
|
let o = e.codePointAt(i - 1);
|
|
4887
|
-
for (; o ===
|
|
4909
|
+
for (; o === Dt || o === Ot; )
|
|
4888
4910
|
i--, o = e.codePointAt(i - 1);
|
|
4889
4911
|
}
|
|
4890
4912
|
return i > r ? e.slice(r, i) : "";
|
|
@@ -4903,11 +4925,11 @@ function lu(e, t) {
|
|
|
4903
4925
|
return e.patch(t, n), e.applyData(t, n);
|
|
4904
4926
|
}
|
|
4905
4927
|
const ou = {
|
|
4906
|
-
blockquote:
|
|
4907
|
-
break:
|
|
4928
|
+
blockquote: _a,
|
|
4929
|
+
break: Ra,
|
|
4908
4930
|
code: Ma,
|
|
4909
|
-
delete:
|
|
4910
|
-
emphasis:
|
|
4931
|
+
delete: Na,
|
|
4932
|
+
emphasis: Ba,
|
|
4911
4933
|
footnoteReference: ja,
|
|
4912
4934
|
heading: Ha,
|
|
4913
4935
|
html: Ua,
|
|
@@ -4934,14 +4956,14 @@ const ou = {
|
|
|
4934
4956
|
};
|
|
4935
4957
|
function We() {
|
|
4936
4958
|
}
|
|
4937
|
-
const
|
|
4959
|
+
const Nr = -1, on = 0, en = 1, nn = 2, Wn = 3, Qn = 4, Gn = 5, Xn = 6, Br = 7, jr = 8, _t = typeof self == "object" ? self : globalThis, au = (e, t) => {
|
|
4938
4960
|
const n = (i, o) => (e.set(o, i), i), r = (i) => {
|
|
4939
4961
|
if (e.has(i))
|
|
4940
4962
|
return e.get(i);
|
|
4941
4963
|
const [o, l] = t[i];
|
|
4942
4964
|
switch (o) {
|
|
4943
4965
|
case on:
|
|
4944
|
-
case
|
|
4966
|
+
case Nr:
|
|
4945
4967
|
return n(l, i);
|
|
4946
4968
|
case en: {
|
|
4947
4969
|
const a = n([], i);
|
|
@@ -4973,19 +4995,19 @@ const Br = -1, on = 0, en = 1, nn = 2, Wn = 3, Qn = 4, Gn = 5, Xn = 6, Nr = 7, j
|
|
|
4973
4995
|
a.add(r(u));
|
|
4974
4996
|
return a;
|
|
4975
4997
|
}
|
|
4976
|
-
case
|
|
4998
|
+
case Br: {
|
|
4977
4999
|
const { name: a, message: u } = l;
|
|
4978
|
-
return n(new
|
|
5000
|
+
return n(new _t[a](u), i);
|
|
4979
5001
|
}
|
|
4980
5002
|
case jr:
|
|
4981
5003
|
return n(BigInt(l), i);
|
|
4982
5004
|
case "BigInt":
|
|
4983
5005
|
return n(Object(BigInt(l)), i);
|
|
4984
5006
|
}
|
|
4985
|
-
return n(new
|
|
5007
|
+
return n(new _t[o](l), i);
|
|
4986
5008
|
};
|
|
4987
5009
|
return r;
|
|
4988
|
-
},
|
|
5010
|
+
}, Rt = (e) => au(/* @__PURE__ */ new Map(), e)(0), ze = "", { toString: uu } = {}, { keys: su } = Object, Ne = (e) => {
|
|
4989
5011
|
const t = typeof e;
|
|
4990
5012
|
if (t !== "object" || !e)
|
|
4991
5013
|
return [on, t];
|
|
@@ -5004,7 +5026,7 @@ const Br = -1, on = 0, en = 1, nn = 2, Wn = 3, Qn = 4, Gn = 5, Xn = 6, Nr = 7, j
|
|
|
5004
5026
|
case "Set":
|
|
5005
5027
|
return [Xn, ze];
|
|
5006
5028
|
}
|
|
5007
|
-
return n.includes("Array") ? [en, n] : n.includes("Error") ? [
|
|
5029
|
+
return n.includes("Array") ? [en, n] : n.includes("Error") ? [Br, n] : [nn, n];
|
|
5008
5030
|
}, Qe = ([e, t]) => e === on && (t === "function" || t === "symbol"), cu = (e, t, n, r) => {
|
|
5009
5031
|
const i = (l, a) => {
|
|
5010
5032
|
const u = r.push(l) - 1;
|
|
@@ -5012,7 +5034,7 @@ const Br = -1, on = 0, en = 1, nn = 2, Wn = 3, Qn = 4, Gn = 5, Xn = 6, Nr = 7, j
|
|
|
5012
5034
|
}, o = (l) => {
|
|
5013
5035
|
if (n.has(l))
|
|
5014
5036
|
return n.get(l);
|
|
5015
|
-
let [a, u] =
|
|
5037
|
+
let [a, u] = Ne(l);
|
|
5016
5038
|
switch (a) {
|
|
5017
5039
|
case on: {
|
|
5018
5040
|
let f = l;
|
|
@@ -5027,7 +5049,7 @@ const Br = -1, on = 0, en = 1, nn = 2, Wn = 3, Qn = 4, Gn = 5, Xn = 6, Nr = 7, j
|
|
|
5027
5049
|
f = null;
|
|
5028
5050
|
break;
|
|
5029
5051
|
case "undefined":
|
|
5030
|
-
return i([
|
|
5052
|
+
return i([Nr], l);
|
|
5031
5053
|
}
|
|
5032
5054
|
return i([a, f], l);
|
|
5033
5055
|
}
|
|
@@ -5053,7 +5075,7 @@ const Br = -1, on = 0, en = 1, nn = 2, Wn = 3, Qn = 4, Gn = 5, Xn = 6, Nr = 7, j
|
|
|
5053
5075
|
return o(l.toJSON());
|
|
5054
5076
|
const f = [], c = i([a, f], l);
|
|
5055
5077
|
for (const h of su(l))
|
|
5056
|
-
(e || !Qe(
|
|
5078
|
+
(e || !Qe(Ne(l[h]))) && f.push([o(h), o(l[h])]);
|
|
5057
5079
|
return c;
|
|
5058
5080
|
}
|
|
5059
5081
|
case Wn:
|
|
@@ -5065,13 +5087,13 @@ const Br = -1, on = 0, en = 1, nn = 2, Wn = 3, Qn = 4, Gn = 5, Xn = 6, Nr = 7, j
|
|
|
5065
5087
|
case Gn: {
|
|
5066
5088
|
const f = [], c = i([a, f], l);
|
|
5067
5089
|
for (const [h, p] of l)
|
|
5068
|
-
(e || !(Qe(
|
|
5090
|
+
(e || !(Qe(Ne(h)) || Qe(Ne(p)))) && f.push([o(h), o(p)]);
|
|
5069
5091
|
return c;
|
|
5070
5092
|
}
|
|
5071
5093
|
case Xn: {
|
|
5072
5094
|
const f = [], c = i([a, f], l);
|
|
5073
5095
|
for (const h of l)
|
|
5074
|
-
(e || !Qe(
|
|
5096
|
+
(e || !Qe(Ne(h))) && f.push(o(h));
|
|
5075
5097
|
return c;
|
|
5076
5098
|
}
|
|
5077
5099
|
}
|
|
@@ -5084,8 +5106,8 @@ const Br = -1, on = 0, en = 1, nn = 2, Wn = 3, Qn = 4, Gn = 5, Xn = 6, Nr = 7, j
|
|
|
5084
5106
|
return cu(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
|
|
5085
5107
|
}, tn = typeof structuredClone == "function" ? (
|
|
5086
5108
|
/* c8 ignore start */
|
|
5087
|
-
(e, t) => t && ("json" in t || "lossy" in t) ?
|
|
5088
|
-
) : (e, t) =>
|
|
5109
|
+
(e, t) => t && ("json" in t || "lossy" in t) ? Rt(Mt(e, t)) : structuredClone(e)
|
|
5110
|
+
) : (e, t) => Rt(Mt(e, t));
|
|
5089
5111
|
function fu(e, t) {
|
|
5090
5112
|
const n = [{ type: "text", value: "↩" }];
|
|
5091
5113
|
return t > 1 && n.push({
|
|
@@ -5112,8 +5134,8 @@ function hu(e) {
|
|
|
5112
5134
|
const d = [], k = e.footnoteCounts.get(c);
|
|
5113
5135
|
for (; k !== void 0 && ++p <= k; ) {
|
|
5114
5136
|
d.length > 0 && d.push({ type: "text", value: " " });
|
|
5115
|
-
let
|
|
5116
|
-
typeof
|
|
5137
|
+
let I = typeof n == "string" ? n : n(u, p);
|
|
5138
|
+
typeof I == "string" && (I = { type: "text", value: I }), d.push({
|
|
5117
5139
|
type: "element",
|
|
5118
5140
|
tagName: "a",
|
|
5119
5141
|
properties: {
|
|
@@ -5122,13 +5144,13 @@ function hu(e) {
|
|
|
5122
5144
|
ariaLabel: typeof r == "string" ? r : r(u, p),
|
|
5123
5145
|
className: ["data-footnote-backref"]
|
|
5124
5146
|
},
|
|
5125
|
-
children: Array.isArray(
|
|
5147
|
+
children: Array.isArray(I) ? I : [I]
|
|
5126
5148
|
});
|
|
5127
5149
|
}
|
|
5128
5150
|
const S = f[f.length - 1];
|
|
5129
5151
|
if (S && S.type === "element" && S.tagName === "p") {
|
|
5130
|
-
const
|
|
5131
|
-
|
|
5152
|
+
const I = S.children[S.children.length - 1];
|
|
5153
|
+
I && I.type === "text" ? I.value += " " : S.children.push({ type: "text", value: " " }), S.children.push(...d);
|
|
5132
5154
|
} else
|
|
5133
5155
|
f.push(...d);
|
|
5134
5156
|
const x = {
|
|
@@ -5248,7 +5270,7 @@ function yu() {
|
|
|
5248
5270
|
function ku(e) {
|
|
5249
5271
|
return e !== null && typeof e == "object" && "type" in e;
|
|
5250
5272
|
}
|
|
5251
|
-
const Hr = [], xu = !0,
|
|
5273
|
+
const Hr = [], xu = !0, Dn = !1, bu = "skip";
|
|
5252
5274
|
function Ur(e, t, n, r) {
|
|
5253
5275
|
let i;
|
|
5254
5276
|
typeof t == "function" && typeof n != "function" ? (r = n, n = t) : i = t;
|
|
@@ -5274,7 +5296,7 @@ function Ur(e, t, n, r) {
|
|
|
5274
5296
|
return h;
|
|
5275
5297
|
function h() {
|
|
5276
5298
|
let p = Hr, d, k, S;
|
|
5277
|
-
if ((!t || o(u, s, f[f.length - 1] || void 0)) && (p = wu(n(u, f)), p[0] ===
|
|
5299
|
+
if ((!t || o(u, s, f[f.length - 1] || void 0)) && (p = wu(n(u, f)), p[0] === Dn))
|
|
5278
5300
|
return p;
|
|
5279
5301
|
if ("children" in u && u.children) {
|
|
5280
5302
|
const x = (
|
|
@@ -5283,8 +5305,8 @@ function Ur(e, t, n, r) {
|
|
|
5283
5305
|
);
|
|
5284
5306
|
if (x.children && p[0] !== bu)
|
|
5285
5307
|
for (k = (r ? x.children.length : -1) + l, S = f.concat(x); k > -1 && k < x.children.length; ) {
|
|
5286
|
-
const
|
|
5287
|
-
if (d = a(
|
|
5308
|
+
const I = x.children[k];
|
|
5309
|
+
if (d = a(I, k, S)(), d[0] === Dn)
|
|
5288
5310
|
return d;
|
|
5289
5311
|
k = typeof d[1] == "number" ? d[1] : k + l;
|
|
5290
5312
|
}
|
|
@@ -5308,7 +5330,7 @@ const On = {}.hasOwnProperty, Su = {};
|
|
|
5308
5330
|
function Cu(e, t) {
|
|
5309
5331
|
const n = t || Su, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), l = { ...ou, ...n.handlers }, a = {
|
|
5310
5332
|
all: s,
|
|
5311
|
-
applyData:
|
|
5333
|
+
applyData: Iu,
|
|
5312
5334
|
definitionById: r,
|
|
5313
5335
|
footnoteById: i,
|
|
5314
5336
|
footnoteCounts: o,
|
|
@@ -5336,7 +5358,7 @@ function Cu(e, t) {
|
|
|
5336
5358
|
}
|
|
5337
5359
|
return tn(f);
|
|
5338
5360
|
}
|
|
5339
|
-
return (a.options.unknownHandler ||
|
|
5361
|
+
return (a.options.unknownHandler || Au)(a, f, c);
|
|
5340
5362
|
}
|
|
5341
5363
|
function s(f) {
|
|
5342
5364
|
const c = [];
|
|
@@ -5346,9 +5368,9 @@ function Cu(e, t) {
|
|
|
5346
5368
|
for (; ++p < h.length; ) {
|
|
5347
5369
|
const d = a.one(h[p], f);
|
|
5348
5370
|
if (d) {
|
|
5349
|
-
if (p && h[p - 1].type === "break" && (!Array.isArray(d) && d.type === "text" && (d.value =
|
|
5371
|
+
if (p && h[p - 1].type === "break" && (!Array.isArray(d) && d.type === "text" && (d.value = Nt(d.value)), !Array.isArray(d) && d.type === "element")) {
|
|
5350
5372
|
const k = d.children[0];
|
|
5351
|
-
k && k.type === "text" && (k.value =
|
|
5373
|
+
k && k.type === "text" && (k.value = Nt(k.value));
|
|
5352
5374
|
}
|
|
5353
5375
|
Array.isArray(d) ? c.push(...d) : c.push(d);
|
|
5354
5376
|
}
|
|
@@ -5360,7 +5382,7 @@ function Cu(e, t) {
|
|
|
5360
5382
|
function Eu(e, t) {
|
|
5361
5383
|
e.position && (t.position = cl(e));
|
|
5362
5384
|
}
|
|
5363
|
-
function
|
|
5385
|
+
function Iu(e, t) {
|
|
5364
5386
|
let n = t;
|
|
5365
5387
|
if (e && e.data) {
|
|
5366
5388
|
const r = e.data.hName, i = e.data.hChildren, o = e.data.hProperties;
|
|
@@ -5375,7 +5397,7 @@ function Au(e, t) {
|
|
|
5375
5397
|
}
|
|
5376
5398
|
return n;
|
|
5377
5399
|
}
|
|
5378
|
-
function
|
|
5400
|
+
function Au(e, t) {
|
|
5379
5401
|
const n = t.data || {}, r = "value" in t && !(On.call(n, "hProperties") || On.call(n, "hChildren")) ? { type: "text", value: t.value } : {
|
|
5380
5402
|
type: "element",
|
|
5381
5403
|
tagName: "div",
|
|
@@ -5394,13 +5416,13 @@ function Tu(e, t) {
|
|
|
5394
5416
|
return t && e.length > 0 && n.push({ type: "text", value: `
|
|
5395
5417
|
` }), n;
|
|
5396
5418
|
}
|
|
5397
|
-
function
|
|
5419
|
+
function Nt(e) {
|
|
5398
5420
|
let t = 0, n = e.charCodeAt(t);
|
|
5399
5421
|
for (; n === 9 || n === 32; )
|
|
5400
5422
|
t++, n = e.charCodeAt(t);
|
|
5401
5423
|
return e.slice(t);
|
|
5402
5424
|
}
|
|
5403
|
-
function
|
|
5425
|
+
function Bt(e, t) {
|
|
5404
5426
|
const n = Cu(e, t), r = n.one(e, void 0), i = hu(n), o = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
|
|
5405
5427
|
return i && o.children.push({ type: "text", value: `
|
|
5406
5428
|
` }, i), o;
|
|
@@ -5409,13 +5431,13 @@ function Pu(e, t) {
|
|
|
5409
5431
|
return e && "run" in e ? async function(n, r) {
|
|
5410
5432
|
const i = (
|
|
5411
5433
|
/** @type {HastRoot} */
|
|
5412
|
-
|
|
5434
|
+
Bt(n, { file: r, ...t })
|
|
5413
5435
|
);
|
|
5414
5436
|
await e.run(i, r);
|
|
5415
5437
|
} : function(n, r) {
|
|
5416
5438
|
return (
|
|
5417
5439
|
/** @type {HastRoot} */
|
|
5418
|
-
|
|
5440
|
+
Bt(n, { file: r, ...t || e })
|
|
5419
5441
|
);
|
|
5420
5442
|
};
|
|
5421
5443
|
}
|
|
@@ -5457,7 +5479,7 @@ var Ke = Object.prototype.hasOwnProperty, $r = Object.prototype.toString, Ht = O
|
|
|
5457
5479
|
r = Wt(a, n), i = Wt(t, n), a !== i && (f && i && (qt(i) || (o = $t(i))) ? (o ? (o = !1, l = r && $t(r) ? r : []) : l = r && qt(r) ? r : {}, Vt(a, { name: n, newValue: e(f, l, i) })) : typeof i < "u" && Vt(a, { name: n, newValue: i }));
|
|
5458
5480
|
return a;
|
|
5459
5481
|
};
|
|
5460
|
-
const gn = /* @__PURE__ */
|
|
5482
|
+
const gn = /* @__PURE__ */ Li(Lu);
|
|
5461
5483
|
function Fn(e) {
|
|
5462
5484
|
if (typeof e != "object" || e === null)
|
|
5463
5485
|
return !1;
|
|
@@ -5482,7 +5504,7 @@ function zu() {
|
|
|
5482
5504
|
}
|
|
5483
5505
|
for (; ++c < i.length; )
|
|
5484
5506
|
(s[c] === null || s[c] === void 0) && (s[c] = i[c]);
|
|
5485
|
-
i = s, f ?
|
|
5507
|
+
i = s, f ? vu(f, a)(...s) : l(null, ...s);
|
|
5486
5508
|
}
|
|
5487
5509
|
}
|
|
5488
5510
|
function r(i) {
|
|
@@ -5493,7 +5515,7 @@ function zu() {
|
|
|
5493
5515
|
return e.push(i), t;
|
|
5494
5516
|
}
|
|
5495
5517
|
}
|
|
5496
|
-
function
|
|
5518
|
+
function vu(e, t) {
|
|
5497
5519
|
let n;
|
|
5498
5520
|
return r;
|
|
5499
5521
|
function r(...l) {
|
|
@@ -5520,8 +5542,8 @@ function Du(e, t) {
|
|
|
5520
5542
|
i(null, l);
|
|
5521
5543
|
}
|
|
5522
5544
|
}
|
|
5523
|
-
const fe = { basename:
|
|
5524
|
-
function
|
|
5545
|
+
const fe = { basename: Du, dirname: Ou, extname: Fu, join: _u, sep: "/" };
|
|
5546
|
+
function Du(e, t) {
|
|
5525
5547
|
if (t !== void 0 && typeof t != "string")
|
|
5526
5548
|
throw new TypeError('"ext" argument must be a string');
|
|
5527
5549
|
Ve(e);
|
|
@@ -5580,13 +5602,13 @@ function Fu(e) {
|
|
|
5580
5602
|
o === 0 || // The (right-most) trimmed path component is exactly `..`.
|
|
5581
5603
|
o === 1 && i === n - 1 && i === r + 1 ? "" : e.slice(i, n);
|
|
5582
5604
|
}
|
|
5583
|
-
function
|
|
5605
|
+
function _u(...e) {
|
|
5584
5606
|
let t = -1, n;
|
|
5585
5607
|
for (; ++t < e.length; )
|
|
5586
5608
|
Ve(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
|
|
5587
|
-
return n === void 0 ? "." :
|
|
5609
|
+
return n === void 0 ? "." : Ru(n);
|
|
5588
5610
|
}
|
|
5589
|
-
function
|
|
5611
|
+
function Ru(e) {
|
|
5590
5612
|
Ve(e);
|
|
5591
5613
|
const t = e.codePointAt(0) === 47;
|
|
5592
5614
|
let n = Mu(e, !t);
|
|
@@ -5629,18 +5651,18 @@ function Ve(e) {
|
|
|
5629
5651
|
"Path must be a string. Received " + JSON.stringify(e)
|
|
5630
5652
|
);
|
|
5631
5653
|
}
|
|
5632
|
-
const
|
|
5633
|
-
function
|
|
5654
|
+
const Nu = { cwd: Bu };
|
|
5655
|
+
function Bu() {
|
|
5634
5656
|
return "/";
|
|
5635
5657
|
}
|
|
5636
|
-
function
|
|
5658
|
+
function _n(e) {
|
|
5637
5659
|
return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
|
|
5638
5660
|
e.auth === void 0);
|
|
5639
5661
|
}
|
|
5640
5662
|
function ju(e) {
|
|
5641
5663
|
if (typeof e == "string")
|
|
5642
5664
|
e = new URL(e);
|
|
5643
|
-
else if (!
|
|
5665
|
+
else if (!_n(e)) {
|
|
5644
5666
|
const t = new TypeError(
|
|
5645
5667
|
'The "path" argument must be of type string or an instance of URL. Received `' + e + "`"
|
|
5646
5668
|
);
|
|
@@ -5709,7 +5731,7 @@ class qr {
|
|
|
5709
5731
|
*/
|
|
5710
5732
|
constructor(t) {
|
|
5711
5733
|
let n;
|
|
5712
|
-
t ?
|
|
5734
|
+
t ? _n(t) ? n = { path: t } : typeof t == "string" || Uu(t) ? n = { value: t } : n = t : n = {}, this.cwd = Nu.cwd(), this.data = {}, this.history = [], this.messages = [];
|
|
5713
5735
|
let r = -1;
|
|
5714
5736
|
for (; ++r < dn.length; ) {
|
|
5715
5737
|
const o = dn[r];
|
|
@@ -5817,7 +5839,7 @@ class qr {
|
|
|
5817
5839
|
* Nothing.
|
|
5818
5840
|
*/
|
|
5819
5841
|
set path(t) {
|
|
5820
|
-
|
|
5842
|
+
_n(t) && (t = ju(t)), kn(t, "path"), this.path !== t && this.history.push(t);
|
|
5821
5843
|
}
|
|
5822
5844
|
/**
|
|
5823
5845
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -6653,7 +6675,7 @@ const Yt = [], Kt = { allowDangerousHtml: !0 }, Xu = /^(https?|ircs?|mailto|xmpp
|
|
|
6653
6675
|
function Ku(e) {
|
|
6654
6676
|
const t = e.allowedElements, n = e.allowElement, r = e.children || "", i = e.className, o = e.components, l = e.disallowedElements, a = e.rehypePlugins || Yt, u = e.remarkPlugins || Yt, s = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...Kt } : Kt, f = e.skipHtml, c = e.unwrapDisallowed, h = e.urlTransform || Ju, p = Vu().use(Fa).use(u).use(Pu, s).use(a), d = new qr();
|
|
6655
6677
|
typeof r == "string" && (d.value = r);
|
|
6656
|
-
for (const
|
|
6678
|
+
for (const I of Yu)
|
|
6657
6679
|
;
|
|
6658
6680
|
const k = p.parse(d);
|
|
6659
6681
|
let S = p.runSync(k, d);
|
|
@@ -6675,21 +6697,21 @@ function Ku(e) {
|
|
|
6675
6697
|
passKeys: !0,
|
|
6676
6698
|
passNode: !0
|
|
6677
6699
|
});
|
|
6678
|
-
function x(
|
|
6679
|
-
if (
|
|
6680
|
-
return f ? z.children.splice(E, 1) : z.children[E] = { type: "text", value:
|
|
6681
|
-
if (
|
|
6682
|
-
let
|
|
6683
|
-
for (
|
|
6684
|
-
if (Object.hasOwn(pn,
|
|
6685
|
-
const w =
|
|
6686
|
-
(
|
|
6700
|
+
function x(I, E, z) {
|
|
6701
|
+
if (I.type === "raw" && z && typeof E == "number")
|
|
6702
|
+
return f ? z.children.splice(E, 1) : z.children[E] = { type: "text", value: I.value }, E;
|
|
6703
|
+
if (I.type === "element") {
|
|
6704
|
+
let v;
|
|
6705
|
+
for (v in pn)
|
|
6706
|
+
if (Object.hasOwn(pn, v) && Object.hasOwn(I.properties, v)) {
|
|
6707
|
+
const w = I.properties[v], _ = pn[v];
|
|
6708
|
+
(_ === null || _.includes(I.tagName)) && (I.properties[v] = h(String(w || ""), v, I));
|
|
6687
6709
|
}
|
|
6688
6710
|
}
|
|
6689
|
-
if (
|
|
6690
|
-
let
|
|
6691
|
-
if (!
|
|
6692
|
-
return c &&
|
|
6711
|
+
if (I.type === "element") {
|
|
6712
|
+
let v = t ? !t.includes(I.tagName) : l ? l.includes(I.tagName) : !1;
|
|
6713
|
+
if (!v && n && typeof E == "number" && (v = !n(I, E, z)), v && z && typeof E == "number")
|
|
6714
|
+
return c && I.children ? z.children.splice(E, 1, ...I.children) : z.children.splice(E, 1), E;
|
|
6693
6715
|
}
|
|
6694
6716
|
}
|
|
6695
6717
|
}
|
|
@@ -6740,24 +6762,24 @@ function es(e, t, n) {
|
|
|
6740
6762
|
const c = f[f.length - 1], h = o[l][0], p = o[l][1];
|
|
6741
6763
|
let d = 0;
|
|
6742
6764
|
const S = c.children.indexOf(s);
|
|
6743
|
-
let x = !1,
|
|
6765
|
+
let x = !1, I = [];
|
|
6744
6766
|
h.lastIndex = 0;
|
|
6745
6767
|
let E = h.exec(s.value);
|
|
6746
6768
|
for (; E; ) {
|
|
6747
|
-
const z = E.index,
|
|
6769
|
+
const z = E.index, v = {
|
|
6748
6770
|
index: E.index,
|
|
6749
6771
|
input: E.input,
|
|
6750
6772
|
stack: [...f, s]
|
|
6751
6773
|
};
|
|
6752
|
-
let w = p(...E,
|
|
6753
|
-
if (typeof w == "string" && (w = w.length > 0 ? { type: "text", value: w } : void 0), w === !1 ? h.lastIndex = z + 1 : (d !== z &&
|
|
6774
|
+
let w = p(...E, v);
|
|
6775
|
+
if (typeof w == "string" && (w = w.length > 0 ? { type: "text", value: w } : void 0), w === !1 ? h.lastIndex = z + 1 : (d !== z && I.push({
|
|
6754
6776
|
type: "text",
|
|
6755
6777
|
value: s.value.slice(d, z)
|
|
6756
|
-
}), Array.isArray(w) ?
|
|
6778
|
+
}), Array.isArray(w) ? I.push(...w) : w && I.push(w), d = z + E[0].length, x = !0), !h.global)
|
|
6757
6779
|
break;
|
|
6758
6780
|
E = h.exec(s.value);
|
|
6759
6781
|
}
|
|
6760
|
-
return x ? (d < s.value.length &&
|
|
6782
|
+
return x ? (d < s.value.length && I.push({ type: "text", value: s.value.slice(d) }), c.children.splice(S, 1, ...I)) : I = [s], S + I.length;
|
|
6761
6783
|
}
|
|
6762
6784
|
}
|
|
6763
6785
|
function ns(e) {
|
|
@@ -6899,9 +6921,9 @@ function gs(e) {
|
|
|
6899
6921
|
}
|
|
6900
6922
|
function Vr(e, t) {
|
|
6901
6923
|
const n = e.input.charCodeAt(e.index - 1);
|
|
6902
|
-
return (e.index === 0 ||
|
|
6924
|
+
return (e.index === 0 || Ae(n) || rn(n)) && (!t || n !== 47);
|
|
6903
6925
|
}
|
|
6904
|
-
Wr.peek =
|
|
6926
|
+
Wr.peek = As;
|
|
6905
6927
|
function ds() {
|
|
6906
6928
|
return {
|
|
6907
6929
|
enter: {
|
|
@@ -6913,7 +6935,7 @@ function ds() {
|
|
|
6913
6935
|
exit: {
|
|
6914
6936
|
gfmFootnoteDefinition: ws,
|
|
6915
6937
|
gfmFootnoteDefinitionLabelString: bs,
|
|
6916
|
-
gfmFootnoteCall:
|
|
6938
|
+
gfmFootnoteCall: Is,
|
|
6917
6939
|
gfmFootnoteCallString: Es
|
|
6918
6940
|
}
|
|
6919
6941
|
};
|
|
@@ -6955,7 +6977,7 @@ function Es(e) {
|
|
|
6955
6977
|
this.sliceSerialize(e)
|
|
6956
6978
|
).toLowerCase();
|
|
6957
6979
|
}
|
|
6958
|
-
function
|
|
6980
|
+
function Is(e) {
|
|
6959
6981
|
this.exit(e);
|
|
6960
6982
|
}
|
|
6961
6983
|
function Wr(e, t, n, r) {
|
|
@@ -6970,7 +6992,7 @@ function Wr(e, t, n, r) {
|
|
|
6970
6992
|
})
|
|
6971
6993
|
), a(), l(), o += i.move("]"), o;
|
|
6972
6994
|
}
|
|
6973
|
-
function
|
|
6995
|
+
function As() {
|
|
6974
6996
|
return "[";
|
|
6975
6997
|
}
|
|
6976
6998
|
function Ts(e, t, n, r) {
|
|
@@ -7004,11 +7026,11 @@ Qr.peek = Fs;
|
|
|
7004
7026
|
function zs() {
|
|
7005
7027
|
return {
|
|
7006
7028
|
canContainEols: ["delete"],
|
|
7007
|
-
enter: { strikethrough:
|
|
7029
|
+
enter: { strikethrough: Ds },
|
|
7008
7030
|
exit: { strikethrough: Os }
|
|
7009
7031
|
};
|
|
7010
7032
|
}
|
|
7011
|
-
function
|
|
7033
|
+
function vs() {
|
|
7012
7034
|
return {
|
|
7013
7035
|
unsafe: [
|
|
7014
7036
|
{
|
|
@@ -7020,7 +7042,7 @@ function Ds() {
|
|
|
7020
7042
|
handlers: { delete: Qr }
|
|
7021
7043
|
};
|
|
7022
7044
|
}
|
|
7023
|
-
function
|
|
7045
|
+
function Ds(e) {
|
|
7024
7046
|
this.enter({ type: "delete", children: [] }, e);
|
|
7025
7047
|
}
|
|
7026
7048
|
function Os(e) {
|
|
@@ -7038,17 +7060,17 @@ function Qr(e, t, n, r) {
|
|
|
7038
7060
|
function Fs() {
|
|
7039
7061
|
return "~";
|
|
7040
7062
|
}
|
|
7041
|
-
function
|
|
7063
|
+
function _s(e, t = {}) {
|
|
7042
7064
|
const n = (t.align || []).concat(), r = t.stringLength || Ms, i = [], o = [], l = [], a = [];
|
|
7043
7065
|
let u = 0, s = -1;
|
|
7044
7066
|
for (; ++s < e.length; ) {
|
|
7045
7067
|
const d = [], k = [];
|
|
7046
7068
|
let S = -1;
|
|
7047
7069
|
for (e[s].length > u && (u = e[s].length); ++S < e[s].length; ) {
|
|
7048
|
-
const x =
|
|
7070
|
+
const x = Rs(e[s][S]);
|
|
7049
7071
|
if (t.alignDelimiters !== !1) {
|
|
7050
|
-
const
|
|
7051
|
-
k[S] =
|
|
7072
|
+
const I = r(x);
|
|
7073
|
+
k[S] = I, (a[S] === void 0 || I > a[S]) && (a[S] = I);
|
|
7052
7074
|
}
|
|
7053
7075
|
d.push(x);
|
|
7054
7076
|
}
|
|
@@ -7073,8 +7095,8 @@ function Rs(e, t = {}) {
|
|
|
7073
7095
|
1,
|
|
7074
7096
|
a[f] - k.length - S.length
|
|
7075
7097
|
);
|
|
7076
|
-
const
|
|
7077
|
-
t.alignDelimiters !== !1 && (x = k.length + x + S.length, x > a[f] && (a[f] = x), h[f] = x), c[f] =
|
|
7098
|
+
const I = k + "-".repeat(x) + S;
|
|
7099
|
+
t.alignDelimiters !== !1 && (x = k.length + x + S.length, x > a[f] && (a[f] = x), h[f] = x), c[f] = I;
|
|
7078
7100
|
}
|
|
7079
7101
|
o.splice(1, 0, c), l.splice(1, 0, h), s = -1;
|
|
7080
7102
|
const p = [];
|
|
@@ -7084,14 +7106,14 @@ function Rs(e, t = {}) {
|
|
|
7084
7106
|
const S = [];
|
|
7085
7107
|
for (; ++f < u; ) {
|
|
7086
7108
|
const x = d[f] || "";
|
|
7087
|
-
let
|
|
7109
|
+
let I = "", E = "";
|
|
7088
7110
|
if (t.alignDelimiters !== !1) {
|
|
7089
|
-
const z = a[f] - (k[f] || 0),
|
|
7090
|
-
|
|
7111
|
+
const z = a[f] - (k[f] || 0), v = i[f];
|
|
7112
|
+
v === 114 ? I = " ".repeat(z) : v === 99 ? z % 2 ? (I = " ".repeat(z / 2 + 0.5), E = " ".repeat(z / 2 - 0.5)) : (I = " ".repeat(z / 2), E = I) : E = " ".repeat(z);
|
|
7091
7113
|
}
|
|
7092
7114
|
t.delimiterStart !== !1 && !f && S.push("|"), t.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
|
|
7093
7115
|
// empty: there will be a closing space.
|
|
7094
|
-
!(t.alignDelimiters === !1 && x === "") && (t.delimiterStart !== !1 || f) && S.push(" "), t.alignDelimiters !== !1 && S.push(
|
|
7116
|
+
!(t.alignDelimiters === !1 && x === "") && (t.delimiterStart !== !1 || f) && S.push(" "), t.alignDelimiters !== !1 && S.push(I), S.push(x), t.alignDelimiters !== !1 && S.push(E), t.padding !== !1 && S.push(" "), (t.delimiterEnd !== !1 || f !== u - 1) && S.push("|");
|
|
7095
7117
|
}
|
|
7096
7118
|
p.push(
|
|
7097
7119
|
t.delimiterEnd === !1 ? S.join("").replace(/ +$/, "") : S.join("")
|
|
@@ -7100,7 +7122,7 @@ function Rs(e, t = {}) {
|
|
|
7100
7122
|
return p.join(`
|
|
7101
7123
|
`);
|
|
7102
7124
|
}
|
|
7103
|
-
function
|
|
7125
|
+
function Rs(e) {
|
|
7104
7126
|
return e == null ? "" : String(e);
|
|
7105
7127
|
}
|
|
7106
7128
|
function Ms(e) {
|
|
@@ -7110,16 +7132,16 @@ function Zt(e) {
|
|
|
7110
7132
|
const t = typeof e == "string" ? e.codePointAt(0) : 0;
|
|
7111
7133
|
return t === 67 || t === 99 ? 99 : t === 76 || t === 108 ? 108 : t === 82 || t === 114 ? 114 : 0;
|
|
7112
7134
|
}
|
|
7113
|
-
function
|
|
7135
|
+
function Ns(e, t, n, r) {
|
|
7114
7136
|
const i = n.enter("blockquote"), o = n.createTracker(r);
|
|
7115
7137
|
o.move("> "), o.shift(2);
|
|
7116
7138
|
const l = n.indentLines(
|
|
7117
7139
|
n.containerFlow(e, o.current()),
|
|
7118
|
-
|
|
7140
|
+
Bs
|
|
7119
7141
|
);
|
|
7120
7142
|
return i(), l;
|
|
7121
7143
|
}
|
|
7122
|
-
function
|
|
7144
|
+
function Bs(e, t, n) {
|
|
7123
7145
|
return ">" + (n ? "" : " ") + e;
|
|
7124
7146
|
}
|
|
7125
7147
|
function js(e, t) {
|
|
@@ -7269,7 +7291,7 @@ function Xs(e, t) {
|
|
|
7269
7291
|
let n = !1;
|
|
7270
7292
|
return Yn(e, function(r) {
|
|
7271
7293
|
if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
|
|
7272
|
-
return n = !0,
|
|
7294
|
+
return n = !0, Dn;
|
|
7273
7295
|
}), !!((!e.depth || e.depth < 3) && $n(e) && (t.options.setext || n));
|
|
7274
7296
|
}
|
|
7275
7297
|
function Ys(e, t, n, r) {
|
|
@@ -7625,7 +7647,7 @@ function gc(e, t, n) {
|
|
|
7625
7647
|
return n.options.ruleSpaces ? r.slice(0, -1) : r;
|
|
7626
7648
|
}
|
|
7627
7649
|
const ii = {
|
|
7628
|
-
blockquote:
|
|
7650
|
+
blockquote: Ns,
|
|
7629
7651
|
break: nr,
|
|
7630
7652
|
code: qs,
|
|
7631
7653
|
definition: Ws,
|
|
@@ -7657,9 +7679,9 @@ function dc() {
|
|
|
7657
7679
|
exit: {
|
|
7658
7680
|
codeText: bc,
|
|
7659
7681
|
table: kc,
|
|
7660
|
-
tableData:
|
|
7661
|
-
tableHeader:
|
|
7662
|
-
tableRow:
|
|
7682
|
+
tableData: In,
|
|
7683
|
+
tableHeader: In,
|
|
7684
|
+
tableRow: In
|
|
7663
7685
|
}
|
|
7664
7686
|
};
|
|
7665
7687
|
}
|
|
@@ -7682,7 +7704,7 @@ function kc(e) {
|
|
|
7682
7704
|
function xc(e) {
|
|
7683
7705
|
this.enter({ type: "tableRow", children: [] }, e);
|
|
7684
7706
|
}
|
|
7685
|
-
function
|
|
7707
|
+
function In(e) {
|
|
7686
7708
|
this.exit(e);
|
|
7687
7709
|
}
|
|
7688
7710
|
function tr(e) {
|
|
@@ -7730,20 +7752,20 @@ function Sc(e) {
|
|
|
7730
7752
|
return s(f(p, k, S), p.align);
|
|
7731
7753
|
}
|
|
7732
7754
|
function a(p, d, k, S) {
|
|
7733
|
-
const x = c(p, k, S),
|
|
7734
|
-
return
|
|
7755
|
+
const x = c(p, k, S), I = s([x]);
|
|
7756
|
+
return I.slice(0, I.indexOf(`
|
|
7735
7757
|
`));
|
|
7736
7758
|
}
|
|
7737
7759
|
function u(p, d, k, S) {
|
|
7738
|
-
const x = k.enter("tableCell"),
|
|
7760
|
+
const x = k.enter("tableCell"), I = k.enter("phrasing"), E = k.containerPhrasing(p, {
|
|
7739
7761
|
...S,
|
|
7740
7762
|
before: o,
|
|
7741
7763
|
after: o
|
|
7742
7764
|
});
|
|
7743
|
-
return
|
|
7765
|
+
return I(), x(), E;
|
|
7744
7766
|
}
|
|
7745
7767
|
function s(p, d) {
|
|
7746
|
-
return
|
|
7768
|
+
return _s(p, {
|
|
7747
7769
|
align: d,
|
|
7748
7770
|
// @ts-expect-error: `markdown-table` types should support `null`.
|
|
7749
7771
|
alignDelimiters: r,
|
|
@@ -7756,18 +7778,18 @@ function Sc(e) {
|
|
|
7756
7778
|
function f(p, d, k) {
|
|
7757
7779
|
const S = p.children;
|
|
7758
7780
|
let x = -1;
|
|
7759
|
-
const
|
|
7781
|
+
const I = [], E = d.enter("table");
|
|
7760
7782
|
for (; ++x < S.length; )
|
|
7761
|
-
|
|
7762
|
-
return E(),
|
|
7783
|
+
I[x] = c(S[x], d, k);
|
|
7784
|
+
return E(), I;
|
|
7763
7785
|
}
|
|
7764
7786
|
function c(p, d, k) {
|
|
7765
7787
|
const S = p.children;
|
|
7766
7788
|
let x = -1;
|
|
7767
|
-
const
|
|
7789
|
+
const I = [], E = d.enter("tableRow");
|
|
7768
7790
|
for (; ++x < S.length; )
|
|
7769
|
-
|
|
7770
|
-
return E(),
|
|
7791
|
+
I[x] = u(S[x], p, d, k);
|
|
7792
|
+
return E(), I;
|
|
7771
7793
|
}
|
|
7772
7794
|
function h(p, d, k) {
|
|
7773
7795
|
let S = ii.inlineCode(p, d, k);
|
|
@@ -7779,21 +7801,21 @@ function Cc() {
|
|
|
7779
7801
|
exit: {
|
|
7780
7802
|
taskListCheckValueChecked: rr,
|
|
7781
7803
|
taskListCheckValueUnchecked: rr,
|
|
7782
|
-
paragraph:
|
|
7804
|
+
paragraph: Ic
|
|
7783
7805
|
}
|
|
7784
7806
|
};
|
|
7785
7807
|
}
|
|
7786
7808
|
function Ec() {
|
|
7787
7809
|
return {
|
|
7788
7810
|
unsafe: [{ atBreak: !0, character: "-", after: "[:|-]" }],
|
|
7789
|
-
handlers: { listItem:
|
|
7811
|
+
handlers: { listItem: Ac }
|
|
7790
7812
|
};
|
|
7791
7813
|
}
|
|
7792
7814
|
function rr(e) {
|
|
7793
7815
|
const t = this.stack[this.stack.length - 2];
|
|
7794
7816
|
t.checked = e.type === "taskListCheckValueChecked";
|
|
7795
7817
|
}
|
|
7796
|
-
function
|
|
7818
|
+
function Ic(e) {
|
|
7797
7819
|
const t = this.stack[this.stack.length - 2];
|
|
7798
7820
|
if (t && t.type === "listItem" && typeof t.checked == "boolean") {
|
|
7799
7821
|
const n = this.stack[this.stack.length - 1], r = n.children[0];
|
|
@@ -7812,7 +7834,7 @@ function Ac(e) {
|
|
|
7812
7834
|
}
|
|
7813
7835
|
this.exit(e);
|
|
7814
7836
|
}
|
|
7815
|
-
function
|
|
7837
|
+
function Ac(e, t, n, r) {
|
|
7816
7838
|
const i = e.children[0], o = typeof e.checked == "boolean" && i && i.type === "paragraph", l = "[" + (e.checked ? "x" : " ") + "] ", a = n.createTracker(r);
|
|
7817
7839
|
o && a.move(l);
|
|
7818
7840
|
let u = ii.listItem(e, t, n, {
|
|
@@ -7838,26 +7860,26 @@ function Pc(e) {
|
|
|
7838
7860
|
extensions: [
|
|
7839
7861
|
ls(),
|
|
7840
7862
|
ys(),
|
|
7841
|
-
|
|
7863
|
+
vs(),
|
|
7842
7864
|
Sc(e),
|
|
7843
7865
|
Ec()
|
|
7844
7866
|
]
|
|
7845
7867
|
};
|
|
7846
7868
|
}
|
|
7847
7869
|
const Lc = {
|
|
7848
|
-
tokenize:
|
|
7870
|
+
tokenize: _c,
|
|
7849
7871
|
partial: !0
|
|
7850
7872
|
}, li = {
|
|
7851
|
-
tokenize:
|
|
7873
|
+
tokenize: Rc,
|
|
7852
7874
|
partial: !0
|
|
7853
7875
|
}, oi = {
|
|
7854
7876
|
tokenize: Mc,
|
|
7855
7877
|
partial: !0
|
|
7856
7878
|
}, ai = {
|
|
7857
|
-
tokenize:
|
|
7879
|
+
tokenize: Nc,
|
|
7858
7880
|
partial: !0
|
|
7859
7881
|
}, zc = {
|
|
7860
|
-
tokenize:
|
|
7882
|
+
tokenize: Bc,
|
|
7861
7883
|
partial: !0
|
|
7862
7884
|
}, ui = {
|
|
7863
7885
|
tokenize: Oc,
|
|
@@ -7866,10 +7888,10 @@ const Lc = {
|
|
|
7866
7888
|
tokenize: Fc,
|
|
7867
7889
|
previous: fi
|
|
7868
7890
|
}, ye = {
|
|
7869
|
-
tokenize:
|
|
7891
|
+
tokenize: Dc,
|
|
7870
7892
|
previous: pi
|
|
7871
7893
|
}, pe = {};
|
|
7872
|
-
function
|
|
7894
|
+
function vc() {
|
|
7873
7895
|
return {
|
|
7874
7896
|
text: pe
|
|
7875
7897
|
};
|
|
@@ -7885,15 +7907,15 @@ pe[72] = [ye, si];
|
|
|
7885
7907
|
pe[104] = [ye, si];
|
|
7886
7908
|
pe[87] = [ye, ui];
|
|
7887
7909
|
pe[119] = [ye, ui];
|
|
7888
|
-
function
|
|
7910
|
+
function Dc(e, t, n) {
|
|
7889
7911
|
const r = this;
|
|
7890
7912
|
let i, o;
|
|
7891
7913
|
return l;
|
|
7892
7914
|
function l(c) {
|
|
7893
|
-
return !
|
|
7915
|
+
return !Rn(c) || !pi.call(r, r.previous) || et(r.events) ? n(c) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), a(c));
|
|
7894
7916
|
}
|
|
7895
7917
|
function a(c) {
|
|
7896
|
-
return
|
|
7918
|
+
return Rn(c) ? (e.consume(c), a) : c === 64 ? (e.consume(c), u) : n(c);
|
|
7897
7919
|
}
|
|
7898
7920
|
function u(c) {
|
|
7899
7921
|
return c === 46 ? e.check(
|
|
@@ -7944,13 +7966,13 @@ function Fc(e, t, n) {
|
|
|
7944
7966
|
return c === 47 ? (e.consume(c), o ? s : (o = !0, u)) : n(c);
|
|
7945
7967
|
}
|
|
7946
7968
|
function s(c) {
|
|
7947
|
-
return c === null || Je(c) || U(c) ||
|
|
7969
|
+
return c === null || Je(c) || U(c) || Ae(c) || rn(c) ? n(c) : e.attempt(li, e.attempt(oi, f), n)(c);
|
|
7948
7970
|
}
|
|
7949
7971
|
function f(c) {
|
|
7950
7972
|
return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(c);
|
|
7951
7973
|
}
|
|
7952
7974
|
}
|
|
7953
|
-
function
|
|
7975
|
+
function _c(e, t, n) {
|
|
7954
7976
|
let r = 0;
|
|
7955
7977
|
return i;
|
|
7956
7978
|
function i(l) {
|
|
@@ -7960,11 +7982,11 @@ function Rc(e, t, n) {
|
|
|
7960
7982
|
return l === null ? n(l) : t(l);
|
|
7961
7983
|
}
|
|
7962
7984
|
}
|
|
7963
|
-
function
|
|
7985
|
+
function Rc(e, t, n) {
|
|
7964
7986
|
let r, i, o;
|
|
7965
7987
|
return l;
|
|
7966
7988
|
function l(s) {
|
|
7967
|
-
return s === 46 || s === 95 ? e.check(ai, u, a)(s) : s === null || U(s) ||
|
|
7989
|
+
return s === 46 || s === 95 ? e.check(ai, u, a)(s) : s === null || U(s) || Ae(s) || s !== 45 && rn(s) ? u(s) : (o = !0, e.consume(s), l);
|
|
7968
7990
|
}
|
|
7969
7991
|
function a(s) {
|
|
7970
7992
|
return s === 95 ? r = !0 : (i = r, r = void 0), e.consume(s), l;
|
|
@@ -7977,23 +7999,23 @@ function Mc(e, t) {
|
|
|
7977
7999
|
let n = 0, r = 0;
|
|
7978
8000
|
return i;
|
|
7979
8001
|
function i(l) {
|
|
7980
|
-
return l === 40 ? (n++, e.consume(l), i) : l === 41 && r < n ? o(l) : l === 33 || l === 34 || l === 38 || l === 39 || l === 41 || l === 42 || l === 44 || l === 46 || l === 58 || l === 59 || l === 60 || l === 63 || l === 93 || l === 95 || l === 126 ? e.check(ai, t, o)(l) : l === null || U(l) ||
|
|
8002
|
+
return l === 40 ? (n++, e.consume(l), i) : l === 41 && r < n ? o(l) : l === 33 || l === 34 || l === 38 || l === 39 || l === 41 || l === 42 || l === 44 || l === 46 || l === 58 || l === 59 || l === 60 || l === 63 || l === 93 || l === 95 || l === 126 ? e.check(ai, t, o)(l) : l === null || U(l) || Ae(l) ? t(l) : (e.consume(l), i);
|
|
7981
8003
|
}
|
|
7982
8004
|
function o(l) {
|
|
7983
8005
|
return l === 41 && r++, e.consume(l), i;
|
|
7984
8006
|
}
|
|
7985
8007
|
}
|
|
7986
|
-
function
|
|
8008
|
+
function Nc(e, t, n) {
|
|
7987
8009
|
return r;
|
|
7988
8010
|
function r(a) {
|
|
7989
8011
|
return a === 33 || a === 34 || a === 39 || a === 41 || a === 42 || a === 44 || a === 46 || a === 58 || a === 59 || a === 63 || a === 95 || a === 126 ? (e.consume(a), r) : a === 38 ? (e.consume(a), o) : a === 93 ? (e.consume(a), i) : (
|
|
7990
8012
|
// `<` is an end.
|
|
7991
8013
|
a === 60 || // So is whitespace.
|
|
7992
|
-
a === null || U(a) ||
|
|
8014
|
+
a === null || U(a) || Ae(a) ? t(a) : n(a)
|
|
7993
8015
|
);
|
|
7994
8016
|
}
|
|
7995
8017
|
function i(a) {
|
|
7996
|
-
return a === null || a === 40 || a === 91 || U(a) ||
|
|
8018
|
+
return a === null || a === 40 || a === 91 || U(a) || Ae(a) ? t(a) : r(a);
|
|
7997
8019
|
}
|
|
7998
8020
|
function o(a) {
|
|
7999
8021
|
return J(a) ? l(a) : n(a);
|
|
@@ -8002,7 +8024,7 @@ function Bc(e, t, n) {
|
|
|
8002
8024
|
return a === 59 ? (e.consume(a), r) : J(a) ? (e.consume(a), l) : n(a);
|
|
8003
8025
|
}
|
|
8004
8026
|
}
|
|
8005
|
-
function
|
|
8027
|
+
function Bc(e, t, n) {
|
|
8006
8028
|
return r;
|
|
8007
8029
|
function r(o) {
|
|
8008
8030
|
return e.consume(o), i;
|
|
@@ -8018,9 +8040,9 @@ function fi(e) {
|
|
|
8018
8040
|
return !J(e);
|
|
8019
8041
|
}
|
|
8020
8042
|
function pi(e) {
|
|
8021
|
-
return !(e === 47 ||
|
|
8043
|
+
return !(e === 47 || Rn(e));
|
|
8022
8044
|
}
|
|
8023
|
-
function
|
|
8045
|
+
function Rn(e) {
|
|
8024
8046
|
return e === 43 || e === 45 || e === 46 || e === 95 || Y(e);
|
|
8025
8047
|
}
|
|
8026
8048
|
function et(e) {
|
|
@@ -8443,39 +8465,39 @@ function ef(e, t, n) {
|
|
|
8443
8465
|
)(y) : d(y));
|
|
8444
8466
|
}
|
|
8445
8467
|
function d(y) {
|
|
8446
|
-
return y === 45 || y === 58 ? S(y) : y === 124 ? (l = !0, e.enter("tableCellDivider"), e.consume(y), e.exit("tableCellDivider"), k) :
|
|
8468
|
+
return y === 45 || y === 58 ? S(y) : y === 124 ? (l = !0, e.enter("tableCellDivider"), e.consume(y), e.exit("tableCellDivider"), k) : v(y);
|
|
8447
8469
|
}
|
|
8448
8470
|
function k(y) {
|
|
8449
8471
|
return F(y) ? M(e, S, "whitespace")(y) : S(y);
|
|
8450
8472
|
}
|
|
8451
8473
|
function S(y) {
|
|
8452
|
-
return y === 58 ? (o += 1, l = !0, e.enter("tableDelimiterMarker"), e.consume(y), e.exit("tableDelimiterMarker"), x) : y === 45 ? (o += 1, x(y)) : y === null || L(y) ? z(y) :
|
|
8474
|
+
return y === 58 ? (o += 1, l = !0, e.enter("tableDelimiterMarker"), e.consume(y), e.exit("tableDelimiterMarker"), x) : y === 45 ? (o += 1, x(y)) : y === null || L(y) ? z(y) : v(y);
|
|
8453
8475
|
}
|
|
8454
8476
|
function x(y) {
|
|
8455
|
-
return y === 45 ? (e.enter("tableDelimiterFiller"),
|
|
8477
|
+
return y === 45 ? (e.enter("tableDelimiterFiller"), I(y)) : v(y);
|
|
8456
8478
|
}
|
|
8457
|
-
function
|
|
8458
|
-
return y === 45 ? (e.consume(y),
|
|
8479
|
+
function I(y) {
|
|
8480
|
+
return y === 45 ? (e.consume(y), I) : y === 58 ? (l = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(y), e.exit("tableDelimiterMarker"), E) : (e.exit("tableDelimiterFiller"), E(y));
|
|
8459
8481
|
}
|
|
8460
8482
|
function E(y) {
|
|
8461
8483
|
return F(y) ? M(e, z, "whitespace")(y) : z(y);
|
|
8462
8484
|
}
|
|
8463
8485
|
function z(y) {
|
|
8464
|
-
return y === 124 ? d(y) : y === null || L(y) ? !l || i !== o ?
|
|
8486
|
+
return y === 124 ? d(y) : y === null || L(y) ? !l || i !== o ? v(y) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(y)) : v(y);
|
|
8465
8487
|
}
|
|
8466
|
-
function
|
|
8488
|
+
function v(y) {
|
|
8467
8489
|
return n(y);
|
|
8468
8490
|
}
|
|
8469
8491
|
function w(y) {
|
|
8470
|
-
return e.enter("tableRow"),
|
|
8492
|
+
return e.enter("tableRow"), _(y);
|
|
8471
8493
|
}
|
|
8472
|
-
function
|
|
8473
|
-
return y === 124 ? (e.enter("tableCellDivider"), e.consume(y), e.exit("tableCellDivider"),
|
|
8494
|
+
function _(y) {
|
|
8495
|
+
return y === 124 ? (e.enter("tableCellDivider"), e.consume(y), e.exit("tableCellDivider"), _) : y === null || L(y) ? (e.exit("tableRow"), t(y)) : F(y) ? M(e, _, "whitespace")(y) : (e.enter("data"), q(y));
|
|
8474
8496
|
}
|
|
8475
8497
|
function q(y) {
|
|
8476
|
-
return y === null || y === 124 || U(y) ? (e.exit("data"),
|
|
8498
|
+
return y === null || y === 124 || U(y) ? (e.exit("data"), _(y)) : (e.consume(y), y === 92 ? B : q);
|
|
8477
8499
|
}
|
|
8478
|
-
function
|
|
8500
|
+
function B(y) {
|
|
8479
8501
|
return y === 92 || y === 124 ? (e.consume(y), q) : q(y);
|
|
8480
8502
|
}
|
|
8481
8503
|
}
|
|
@@ -8525,15 +8547,15 @@ function nf(e, t) {
|
|
|
8525
8547
|
}
|
|
8526
8548
|
function Xe(e, t, n, r, i, o) {
|
|
8527
8549
|
const l = r === 1 ? "tableHeader" : r === 2 ? "tableDelimiter" : "tableData", a = "tableContent";
|
|
8528
|
-
n[0] !== 0 && (o.end = Object.assign({},
|
|
8529
|
-
const u =
|
|
8550
|
+
n[0] !== 0 && (o.end = Object.assign({}, ve(t.events, n[0])), e.add(n[0], 0, [["exit", o, t]]));
|
|
8551
|
+
const u = ve(t.events, n[1]);
|
|
8530
8552
|
if (o = {
|
|
8531
8553
|
type: l,
|
|
8532
8554
|
start: Object.assign({}, u),
|
|
8533
8555
|
// Note: correct end is set later.
|
|
8534
8556
|
end: Object.assign({}, u)
|
|
8535
8557
|
}, e.add(n[1], 0, [["enter", o, t]]), n[2] !== 0) {
|
|
8536
|
-
const s =
|
|
8558
|
+
const s = ve(t.events, n[2]), f = ve(t.events, n[3]), c = {
|
|
8537
8559
|
type: a,
|
|
8538
8560
|
start: Object.assign({}, s),
|
|
8539
8561
|
end: Object.assign({}, f)
|
|
@@ -8547,13 +8569,13 @@ function Xe(e, t, n, r, i, o) {
|
|
|
8547
8569
|
}
|
|
8548
8570
|
e.add(n[3] + 1, 0, [["exit", c, t]]);
|
|
8549
8571
|
}
|
|
8550
|
-
return i !== void 0 && (o.end = Object.assign({},
|
|
8572
|
+
return i !== void 0 && (o.end = Object.assign({}, ve(t.events, i)), e.add(i, 0, [["exit", o, t]]), o = void 0), o;
|
|
8551
8573
|
}
|
|
8552
8574
|
function ir(e, t, n, r, i) {
|
|
8553
|
-
const o = [], l =
|
|
8575
|
+
const o = [], l = ve(t.events, n);
|
|
8554
8576
|
i && (i.end = Object.assign({}, l), o.push(["exit", i, t])), r.end = Object.assign({}, l), o.push(["exit", r, t]), e.add(n + 1, 0, o);
|
|
8555
8577
|
}
|
|
8556
|
-
function
|
|
8578
|
+
function ve(e, t) {
|
|
8557
8579
|
const n = e[t], r = n[0] === "enter" ? "start" : "end";
|
|
8558
8580
|
return n[1][r];
|
|
8559
8581
|
}
|
|
@@ -8602,7 +8624,7 @@ function of(e, t, n) {
|
|
|
8602
8624
|
}
|
|
8603
8625
|
function af(e) {
|
|
8604
8626
|
return Cr([
|
|
8605
|
-
|
|
8627
|
+
vc(),
|
|
8606
8628
|
Hc(),
|
|
8607
8629
|
Xc(e),
|
|
8608
8630
|
Zc(),
|
|
@@ -8617,9 +8639,12 @@ function sf(e) {
|
|
|
8617
8639
|
), n = e || uf, r = t.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), o = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), l = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
|
|
8618
8640
|
i.push(af(n)), o.push(Tc()), l.push(Pc(n));
|
|
8619
8641
|
}
|
|
8620
|
-
const cf =
|
|
8621
|
-
() => import(
|
|
8622
|
-
|
|
8642
|
+
const cf = Ci(
|
|
8643
|
+
() => import(
|
|
8644
|
+
/* webpackChunkName: "LazyMarkdownWithExtra" */
|
|
8645
|
+
"./LazyMarkdownWithExtra.CxcZ95uu.js"
|
|
8646
|
+
)
|
|
8647
|
+
), An = {
|
|
8623
8648
|
MODEL: "Model",
|
|
8624
8649
|
PLUGIN: "Plugin",
|
|
8625
8650
|
PROCESSING_TIME: "Processing time"
|
|
@@ -8629,24 +8654,24 @@ const cf = Ii(
|
|
|
8629
8654
|
loading: n,
|
|
8630
8655
|
processingTime: r
|
|
8631
8656
|
}) => {
|
|
8632
|
-
const { state: i } =
|
|
8633
|
-
key:
|
|
8657
|
+
const { state: i } = Ei(wi), [o] = Si({
|
|
8658
|
+
key: Ai + Ti,
|
|
8634
8659
|
initialValue: !1
|
|
8635
8660
|
});
|
|
8636
8661
|
return /* @__PURE__ */ He(or, { children: [
|
|
8637
8662
|
/* @__PURE__ */ re("div", { className: "h-0.5" }),
|
|
8638
|
-
n ? /* @__PURE__ */ re(
|
|
8639
|
-
|
|
8663
|
+
n ? /* @__PURE__ */ re(ot, { children: /* @__PURE__ */ re(zi, { type: "dots" }) }) : /* @__PURE__ */ He(
|
|
8664
|
+
ot,
|
|
8640
8665
|
{
|
|
8641
8666
|
copyToClipboard: e,
|
|
8642
8667
|
copyToClipboardFocusMode: "light",
|
|
8643
8668
|
footer: {
|
|
8644
|
-
[
|
|
8645
|
-
[
|
|
8646
|
-
[
|
|
8669
|
+
[An.MODEL]: i && i.model && o ? i.model : null,
|
|
8670
|
+
[An.PLUGIN]: t && o ? t : null,
|
|
8671
|
+
[An.PROCESSING_TIME]: r && o ? Pi(r) : null
|
|
8647
8672
|
},
|
|
8648
8673
|
children: [
|
|
8649
|
-
e && (e.includes("$$") || e.includes("```")) && /* @__PURE__ */ re(
|
|
8674
|
+
e && (e.includes("$$") || e.includes("```")) && /* @__PURE__ */ re(Ii, { fallback: /* @__PURE__ */ re("div", {}), children: /* @__PURE__ */ re(cf, { content: e }) }),
|
|
8650
8675
|
e && !e.includes("$$") && !e.includes("```") && /* @__PURE__ */ re(Ku, { remarkPlugins: [sf], children: e })
|
|
8651
8676
|
]
|
|
8652
8677
|
}
|
|
@@ -8660,7 +8685,7 @@ export {
|
|
|
8660
8685
|
an as convert,
|
|
8661
8686
|
M as factorySpace,
|
|
8662
8687
|
$i as find,
|
|
8663
|
-
|
|
8688
|
+
Li as getDefaultExportFromCjs,
|
|
8664
8689
|
Qi as html,
|
|
8665
8690
|
Hs as longestStreak,
|
|
8666
8691
|
L as markdownLineEnding,
|
|
@@ -8668,7 +8693,7 @@ export {
|
|
|
8668
8693
|
kf as parse,
|
|
8669
8694
|
yf as parse$1,
|
|
8670
8695
|
sf as remarkGfm,
|
|
8671
|
-
|
|
8696
|
+
Nn as svg,
|
|
8672
8697
|
Yn as visit,
|
|
8673
8698
|
Ur as visitParents
|
|
8674
8699
|
};
|