@versini/sassysaint 7.1.0 → 7.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.Ds0uId3o.js → App.CBWEb0V8.js} +1362 -1371
- package/dist/chunks/{ChatBubbleAssistant.Dp-agOTo.js → ChatBubbleAssistant.XRTqE2w4.js} +731 -721
- package/dist/chunks/{HeaderEntry.BwH4Isxn.js → HeaderEntry.D5tq2VRC.js} +451 -469
- package/dist/chunks/{MarkdownWithExtra.Co7kRLuz.js → MarkdownWithExtra.-zr5boZg.js} +2 -2
- package/dist/chunks/{index.Ct43f1gn.js → index.DdXdvpdr.js} +145 -135
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as en, jsx as re, Fragment as er } from "react/jsx-runtime";
|
|
2
|
-
import { ChatContext as gi, E as di, Re as ct } from "./App.
|
|
2
|
+
import { ChatContext as gi, E as di, Re as ct } from "./App.CBWEb0V8.js";
|
|
3
3
|
import hn from "clsx";
|
|
4
4
|
import { lazy as yi, useContext as ki, Suspense as xi } from "react";
|
|
5
|
-
import { LOCAL_STORAGE_PREFIX as bi, LOCAL_STORAGE_CHAT_DETAILS as wi, durationFormatter as Si } from "./index.
|
|
5
|
+
import { LOCAL_STORAGE_PREFIX as bi, LOCAL_STORAGE_CHAT_DETAILS as wi, durationFormatter as Si, numberFormatter as Ci } from "./index.DdXdvpdr.js";
|
|
6
6
|
function nr(e) {
|
|
7
7
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
8
8
|
}
|
|
@@ -19,7 +19,7 @@ try {
|
|
|
19
19
|
});
|
|
20
20
|
} catch {
|
|
21
21
|
}
|
|
22
|
-
const ft = "av-spinner",
|
|
22
|
+
const ft = "av-spinner", Ei = ({
|
|
23
23
|
spinnerRef: e,
|
|
24
24
|
mode: t = "system",
|
|
25
25
|
type: n = "circle",
|
|
@@ -53,7 +53,7 @@ const ft = "av-spinner", Ci = ({
|
|
|
53
53
|
/* @__PURE__ */ re("span", { className: "sr-only", children: "Loading..." })
|
|
54
54
|
] });
|
|
55
55
|
};
|
|
56
|
-
function
|
|
56
|
+
function tf(e) {
|
|
57
57
|
const t = [], n = String(e || "");
|
|
58
58
|
let r = n.indexOf(","), i = 0, o = !1;
|
|
59
59
|
for (; !o; ) {
|
|
@@ -63,22 +63,22 @@ function ef(e) {
|
|
|
63
63
|
}
|
|
64
64
|
return t;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function Ii(e, t) {
|
|
67
67
|
const n = {};
|
|
68
68
|
return (e[e.length - 1] === "" ? [...e, ""] : e).join(
|
|
69
69
|
(n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")
|
|
70
70
|
).trim();
|
|
71
71
|
}
|
|
72
|
-
const
|
|
72
|
+
const Ai = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Ti = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Pi = {};
|
|
73
73
|
function ht(e, t) {
|
|
74
|
-
return (
|
|
74
|
+
return (Pi.jsx ? Ti : Ai).test(e);
|
|
75
75
|
}
|
|
76
|
-
const
|
|
77
|
-
function
|
|
76
|
+
const vi = /[ \t\n\f\r]/g;
|
|
77
|
+
function Li(e) {
|
|
78
78
|
return typeof e == "object" ? e.type === "text" ? pt(e.value) : !1 : pt(e);
|
|
79
79
|
}
|
|
80
80
|
function pt(e) {
|
|
81
|
-
return e.replace(
|
|
81
|
+
return e.replace(vi, "") === "";
|
|
82
82
|
}
|
|
83
83
|
class Ve {
|
|
84
84
|
/**
|
|
@@ -124,10 +124,10 @@ le.prototype.spaceSeparated = !1;
|
|
|
124
124
|
le.prototype.commaOrSpaceSeparated = !1;
|
|
125
125
|
le.prototype.mustUseProperty = !1;
|
|
126
126
|
le.prototype.defined = !1;
|
|
127
|
-
let
|
|
127
|
+
let zi = 0;
|
|
128
128
|
const M = Ie(), W = Ie(), rr = Ie(), I = Ie(), V = Ie(), ze = Ie(), ne = Ie();
|
|
129
129
|
function Ie() {
|
|
130
|
-
return 2 ** ++
|
|
130
|
+
return 2 ** ++zi;
|
|
131
131
|
}
|
|
132
132
|
const Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, boolean: M, booleanish: W, commaOrSpaceSeparated: ne, commaSeparated: ze, number: I, overloadedBoolean: rr, spaceSeparated: V }, Symbol.toStringTag, { value: "Module" })), pn = Object.keys(Dn);
|
|
133
133
|
class Hn extends le {
|
|
@@ -151,12 +151,12 @@ Hn.prototype.defined = !0;
|
|
|
151
151
|
function mt(e, t, n) {
|
|
152
152
|
n && (e[t] = n);
|
|
153
153
|
}
|
|
154
|
-
const
|
|
154
|
+
const Di = {}.hasOwnProperty;
|
|
155
155
|
function Fe(e) {
|
|
156
156
|
const t = {}, n = {};
|
|
157
157
|
let r;
|
|
158
158
|
for (r in e.properties)
|
|
159
|
-
if (
|
|
159
|
+
if (Di.call(e.properties, r)) {
|
|
160
160
|
const i = e.properties[r], o = new Hn(
|
|
161
161
|
r,
|
|
162
162
|
e.transform(e.attributes || {}, r),
|
|
@@ -254,7 +254,7 @@ const ur = Fe({
|
|
|
254
254
|
ariaValueText: null,
|
|
255
255
|
role: null
|
|
256
256
|
}
|
|
257
|
-
}),
|
|
257
|
+
}), Fi = Fe({
|
|
258
258
|
space: "html",
|
|
259
259
|
attributes: {
|
|
260
260
|
acceptcharset: "accept-charset",
|
|
@@ -615,7 +615,7 @@ const ur = Fe({
|
|
|
615
615
|
security: null,
|
|
616
616
|
unselectable: null
|
|
617
617
|
}
|
|
618
|
-
}),
|
|
618
|
+
}), _i = Fe({
|
|
619
619
|
space: "svg",
|
|
620
620
|
attributes: {
|
|
621
621
|
accentHeight: "accent-height",
|
|
@@ -1174,20 +1174,20 @@ const ur = Fe({
|
|
|
1174
1174
|
z: null,
|
|
1175
1175
|
zoomAndPan: null
|
|
1176
1176
|
}
|
|
1177
|
-
}),
|
|
1178
|
-
function
|
|
1177
|
+
}), Ri = /^data[-\w.:]+$/i, gt = /-[a-z]/g, Oi = /[A-Z]/g;
|
|
1178
|
+
function Mi(e, t) {
|
|
1179
1179
|
const n = zn(t);
|
|
1180
1180
|
let r = t, i = le;
|
|
1181
1181
|
if (n in e.normal)
|
|
1182
1182
|
return e.property[e.normal[n]];
|
|
1183
|
-
if (n.length > 4 && n.slice(0, 4) === "data" &&
|
|
1183
|
+
if (n.length > 4 && n.slice(0, 4) === "data" && Ri.test(t)) {
|
|
1184
1184
|
if (t.charAt(4) === "-") {
|
|
1185
|
-
const o = t.slice(5).replace(gt,
|
|
1185
|
+
const o = t.slice(5).replace(gt, Bi);
|
|
1186
1186
|
r = "data" + o.charAt(0).toUpperCase() + o.slice(1);
|
|
1187
1187
|
} else {
|
|
1188
1188
|
const o = t.slice(4);
|
|
1189
1189
|
if (!gt.test(o)) {
|
|
1190
|
-
let l = o.replace(
|
|
1190
|
+
let l = o.replace(Oi, Ni);
|
|
1191
1191
|
l.charAt(0) !== "-" && (l = "-" + l), t = "data" + l;
|
|
1192
1192
|
}
|
|
1193
1193
|
}
|
|
@@ -1195,13 +1195,13 @@ function Oi(e, t) {
|
|
|
1195
1195
|
}
|
|
1196
1196
|
return new i(r, t);
|
|
1197
1197
|
}
|
|
1198
|
-
function
|
|
1198
|
+
function Ni(e) {
|
|
1199
1199
|
return "-" + e.toLowerCase();
|
|
1200
1200
|
}
|
|
1201
|
-
function
|
|
1201
|
+
function Bi(e) {
|
|
1202
1202
|
return e.charAt(1).toUpperCase();
|
|
1203
1203
|
}
|
|
1204
|
-
const
|
|
1204
|
+
const ji = {
|
|
1205
1205
|
classId: "classID",
|
|
1206
1206
|
dataType: "datatype",
|
|
1207
1207
|
itemId: "itemID",
|
|
@@ -1219,16 +1219,16 @@ const Bi = {
|
|
|
1219
1219
|
xLinkTitle: "xlinkTitle",
|
|
1220
1220
|
xLinkType: "xlinkType",
|
|
1221
1221
|
xmlnsXLink: "xmlnsXlink"
|
|
1222
|
-
},
|
|
1223
|
-
function
|
|
1222
|
+
}, Hi = tr([lr, ir, ur, sr, Fi], "html"), Un = tr([lr, ir, ur, sr, _i], "svg");
|
|
1223
|
+
function rf(e) {
|
|
1224
1224
|
const t = String(e || "").trim();
|
|
1225
1225
|
return t ? t.split(/[ \t\n\r\f]+/g) : [];
|
|
1226
1226
|
}
|
|
1227
|
-
function
|
|
1227
|
+
function Ui(e) {
|
|
1228
1228
|
return e.join(" ").trim();
|
|
1229
1229
|
}
|
|
1230
1230
|
var Ne = {}, mn, dt;
|
|
1231
|
-
function
|
|
1231
|
+
function $i() {
|
|
1232
1232
|
if (dt) return mn;
|
|
1233
1233
|
dt = 1;
|
|
1234
1234
|
var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, n = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, i = /^:\s*/, o = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, l = /^[;\s]*/, a = /^\s+|\s+$/g, u = `
|
|
@@ -1325,7 +1325,7 @@ function qi() {
|
|
|
1325
1325
|
return r && r.__esModule ? r : { default: r };
|
|
1326
1326
|
};
|
|
1327
1327
|
Object.defineProperty(Ne, "__esModule", { value: !0 }), Ne.default = n;
|
|
1328
|
-
var t = e(/* @__PURE__ */
|
|
1328
|
+
var t = e(/* @__PURE__ */ $i());
|
|
1329
1329
|
function n(r, i) {
|
|
1330
1330
|
var o = null;
|
|
1331
1331
|
if (!r || typeof r != "string")
|
|
@@ -1340,8 +1340,8 @@ function qi() {
|
|
|
1340
1340
|
}
|
|
1341
1341
|
return Ne;
|
|
1342
1342
|
}
|
|
1343
|
-
var
|
|
1344
|
-
const kt = /* @__PURE__ */ nr(
|
|
1343
|
+
var Vi = /* @__PURE__ */ qi();
|
|
1344
|
+
const kt = /* @__PURE__ */ nr(Vi), Wi = kt.default || kt, cr = fr("end"), $n = fr("start");
|
|
1345
1345
|
function fr(e) {
|
|
1346
1346
|
return t;
|
|
1347
1347
|
function t(n) {
|
|
@@ -1354,8 +1354,8 @@ function fr(e) {
|
|
|
1354
1354
|
};
|
|
1355
1355
|
}
|
|
1356
1356
|
}
|
|
1357
|
-
function
|
|
1358
|
-
const t =
|
|
1357
|
+
function Qi(e) {
|
|
1358
|
+
const t = $n(e), n = cr(e);
|
|
1359
1359
|
if (t && n)
|
|
1360
1360
|
return { start: t, end: n };
|
|
1361
1361
|
}
|
|
@@ -1458,8 +1458,8 @@ K.prototype.fatal = void 0;
|
|
|
1458
1458
|
K.prototype.place = void 0;
|
|
1459
1459
|
K.prototype.ruleId = void 0;
|
|
1460
1460
|
K.prototype.source = void 0;
|
|
1461
|
-
const
|
|
1462
|
-
function
|
|
1461
|
+
const qn = {}.hasOwnProperty, Yi = /* @__PURE__ */ new Map(), Gi = /[A-Z]/g, Xi = /-([a-z])/g, Ki = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), Ji = /* @__PURE__ */ new Set(["td", "th"]), hr = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
1462
|
+
function Zi(e, t) {
|
|
1463
1463
|
if (!t || t.Fragment === void 0)
|
|
1464
1464
|
throw new TypeError("Expected `Fragment` in options");
|
|
1465
1465
|
const n = t.filePath || void 0;
|
|
@@ -1469,13 +1469,13 @@ function Ji(e, t) {
|
|
|
1469
1469
|
throw new TypeError(
|
|
1470
1470
|
"Expected `jsxDEV` in options when `development: true`"
|
|
1471
1471
|
);
|
|
1472
|
-
r =
|
|
1472
|
+
r = al(n, t.jsxDEV);
|
|
1473
1473
|
} else {
|
|
1474
1474
|
if (typeof t.jsx != "function")
|
|
1475
1475
|
throw new TypeError("Expected `jsx` in production options");
|
|
1476
1476
|
if (typeof t.jsxs != "function")
|
|
1477
1477
|
throw new TypeError("Expected `jsxs` in production options");
|
|
1478
|
-
r =
|
|
1478
|
+
r = ol(n, t.jsx, t.jsxs);
|
|
1479
1479
|
}
|
|
1480
1480
|
const i = {
|
|
1481
1481
|
Fragment: t.Fragment,
|
|
@@ -1488,7 +1488,7 @@ function Ji(e, t) {
|
|
|
1488
1488
|
ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
|
|
1489
1489
|
passKeys: t.passKeys !== !1,
|
|
1490
1490
|
passNode: t.passNode || !1,
|
|
1491
|
-
schema: t.space === "svg" ? Un :
|
|
1491
|
+
schema: t.space === "svg" ? Un : Hi,
|
|
1492
1492
|
stylePropertyNameCase: t.stylePropertyNameCase || "dom",
|
|
1493
1493
|
tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
|
|
1494
1494
|
}, o = pr(i, e, void 0);
|
|
@@ -1501,29 +1501,29 @@ function Ji(e, t) {
|
|
|
1501
1501
|
}
|
|
1502
1502
|
function pr(e, t, n) {
|
|
1503
1503
|
if (t.type === "element")
|
|
1504
|
-
return
|
|
1504
|
+
return el(e, t, n);
|
|
1505
1505
|
if (t.type === "mdxFlowExpression" || t.type === "mdxTextExpression")
|
|
1506
|
-
return
|
|
1506
|
+
return nl(e, t);
|
|
1507
1507
|
if (t.type === "mdxJsxFlowElement" || t.type === "mdxJsxTextElement")
|
|
1508
|
-
return
|
|
1508
|
+
return rl(e, t, n);
|
|
1509
1509
|
if (t.type === "mdxjsEsm")
|
|
1510
|
-
return
|
|
1510
|
+
return tl(e, t);
|
|
1511
1511
|
if (t.type === "root")
|
|
1512
|
-
return
|
|
1512
|
+
return il(e, t, n);
|
|
1513
1513
|
if (t.type === "text")
|
|
1514
|
-
return
|
|
1514
|
+
return ll(e, t);
|
|
1515
1515
|
}
|
|
1516
|
-
function
|
|
1516
|
+
function el(e, t, n) {
|
|
1517
1517
|
const r = e.schema;
|
|
1518
1518
|
let i = r;
|
|
1519
1519
|
t.tagName.toLowerCase() === "svg" && r.space === "html" && (i = Un, e.schema = i), e.ancestors.push(t);
|
|
1520
|
-
const o = gr(e, t.tagName, !1), l =
|
|
1520
|
+
const o = gr(e, t.tagName, !1), l = ul(e, t);
|
|
1521
1521
|
let a = Wn(e, t);
|
|
1522
|
-
return
|
|
1523
|
-
return typeof u == "string" ? !
|
|
1522
|
+
return Ki.has(t.tagName) && (a = a.filter(function(u) {
|
|
1523
|
+
return typeof u == "string" ? !Li(u) : !0;
|
|
1524
1524
|
})), mr(e, l, o, t), Vn(l, a), e.ancestors.pop(), e.schema = r, e.create(t, o, l, n);
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1526
|
+
function nl(e, t) {
|
|
1527
1527
|
if (t.data && t.data.estree && e.evaluater) {
|
|
1528
1528
|
const r = t.data.estree.body[0];
|
|
1529
1529
|
return (
|
|
@@ -1531,28 +1531,28 @@ function el(e, t) {
|
|
|
1531
1531
|
e.evaluater.evaluateExpression(r.expression)
|
|
1532
1532
|
);
|
|
1533
1533
|
}
|
|
1534
|
-
|
|
1534
|
+
$e(e, t.position);
|
|
1535
1535
|
}
|
|
1536
|
-
function
|
|
1536
|
+
function tl(e, t) {
|
|
1537
1537
|
if (t.data && t.data.estree && e.evaluater)
|
|
1538
1538
|
return (
|
|
1539
1539
|
/** @type {Child | undefined} */
|
|
1540
1540
|
e.evaluater.evaluateProgram(t.data.estree)
|
|
1541
1541
|
);
|
|
1542
|
-
|
|
1542
|
+
$e(e, t.position);
|
|
1543
1543
|
}
|
|
1544
|
-
function
|
|
1544
|
+
function rl(e, t, n) {
|
|
1545
1545
|
const r = e.schema;
|
|
1546
1546
|
let i = r;
|
|
1547
1547
|
t.name === "svg" && r.space === "html" && (i = Un, e.schema = i), e.ancestors.push(t);
|
|
1548
|
-
const o = t.name === null ? e.Fragment : gr(e, t.name, !0), l =
|
|
1548
|
+
const o = t.name === null ? e.Fragment : gr(e, t.name, !0), l = sl(e, t), a = Wn(e, t);
|
|
1549
1549
|
return mr(e, l, o, t), Vn(l, a), e.ancestors.pop(), e.schema = r, e.create(t, o, l, n);
|
|
1550
1550
|
}
|
|
1551
|
-
function
|
|
1551
|
+
function il(e, t, n) {
|
|
1552
1552
|
const r = {};
|
|
1553
1553
|
return Vn(r, Wn(e, t)), e.create(t, e.Fragment, r, n);
|
|
1554
1554
|
}
|
|
1555
|
-
function
|
|
1555
|
+
function ll(e, t) {
|
|
1556
1556
|
return t.value;
|
|
1557
1557
|
}
|
|
1558
1558
|
function mr(e, t, n, r) {
|
|
@@ -1564,17 +1564,17 @@ function Vn(e, t) {
|
|
|
1564
1564
|
n && (e.children = n);
|
|
1565
1565
|
}
|
|
1566
1566
|
}
|
|
1567
|
-
function
|
|
1567
|
+
function ol(e, t, n) {
|
|
1568
1568
|
return r;
|
|
1569
1569
|
function r(i, o, l, a) {
|
|
1570
1570
|
const s = Array.isArray(l.children) ? n : t;
|
|
1571
1571
|
return a ? s(o, l, a) : s(o, l);
|
|
1572
1572
|
}
|
|
1573
1573
|
}
|
|
1574
|
-
function
|
|
1574
|
+
function al(e, t) {
|
|
1575
1575
|
return n;
|
|
1576
1576
|
function n(r, i, o, l) {
|
|
1577
|
-
const a = Array.isArray(o.children), u =
|
|
1577
|
+
const a = Array.isArray(o.children), u = $n(r);
|
|
1578
1578
|
return t(
|
|
1579
1579
|
i,
|
|
1580
1580
|
o,
|
|
@@ -1589,15 +1589,15 @@ function ol(e, t) {
|
|
|
1589
1589
|
);
|
|
1590
1590
|
}
|
|
1591
1591
|
}
|
|
1592
|
-
function
|
|
1592
|
+
function ul(e, t) {
|
|
1593
1593
|
const n = {};
|
|
1594
1594
|
let r, i;
|
|
1595
1595
|
for (i in t.properties)
|
|
1596
|
-
if (i !== "children" &&
|
|
1597
|
-
const o =
|
|
1596
|
+
if (i !== "children" && qn.call(t.properties, i)) {
|
|
1597
|
+
const o = cl(e, i, t.properties[i]);
|
|
1598
1598
|
if (o) {
|
|
1599
1599
|
const [l, a] = o;
|
|
1600
|
-
e.tableCellAlignToStyle && l === "align" && typeof a == "string" &&
|
|
1600
|
+
e.tableCellAlignToStyle && l === "align" && typeof a == "string" && Ji.has(t.tagName) ? r = a : n[l] = a;
|
|
1601
1601
|
}
|
|
1602
1602
|
}
|
|
1603
1603
|
if (r) {
|
|
@@ -1609,7 +1609,7 @@ function al(e, t) {
|
|
|
1609
1609
|
}
|
|
1610
1610
|
return n;
|
|
1611
1611
|
}
|
|
1612
|
-
function
|
|
1612
|
+
function sl(e, t) {
|
|
1613
1613
|
const n = {};
|
|
1614
1614
|
for (const r of t.attributes)
|
|
1615
1615
|
if (r.type === "mdxJsxExpressionAttribute")
|
|
@@ -1620,7 +1620,7 @@ function ul(e, t) {
|
|
|
1620
1620
|
e.evaluater.evaluateExpression(a.argument)
|
|
1621
1621
|
);
|
|
1622
1622
|
} else
|
|
1623
|
-
|
|
1623
|
+
$e(e, t.position);
|
|
1624
1624
|
else {
|
|
1625
1625
|
const i = r.name;
|
|
1626
1626
|
let o;
|
|
@@ -1629,7 +1629,7 @@ function ul(e, t) {
|
|
|
1629
1629
|
const a = r.value.data.estree.body[0];
|
|
1630
1630
|
o = e.evaluater.evaluateExpression(a.expression);
|
|
1631
1631
|
} else
|
|
1632
|
-
|
|
1632
|
+
$e(e, t.position);
|
|
1633
1633
|
else
|
|
1634
1634
|
o = r.value === null ? !0 : r.value;
|
|
1635
1635
|
n[i] = /** @type {Props[keyof Props]} */
|
|
@@ -1640,7 +1640,7 @@ function ul(e, t) {
|
|
|
1640
1640
|
function Wn(e, t) {
|
|
1641
1641
|
const n = [];
|
|
1642
1642
|
let r = -1;
|
|
1643
|
-
const i = e.passKeys ? /* @__PURE__ */ new Map() :
|
|
1643
|
+
const i = e.passKeys ? /* @__PURE__ */ new Map() : Yi;
|
|
1644
1644
|
for (; ++r < t.children.length; ) {
|
|
1645
1645
|
const o = t.children[r];
|
|
1646
1646
|
let l;
|
|
@@ -1656,23 +1656,23 @@ function Wn(e, t) {
|
|
|
1656
1656
|
}
|
|
1657
1657
|
return n;
|
|
1658
1658
|
}
|
|
1659
|
-
function
|
|
1660
|
-
const r =
|
|
1659
|
+
function cl(e, t, n) {
|
|
1660
|
+
const r = Mi(e.schema, t);
|
|
1661
1661
|
if (!(n == null || typeof n == "number" && Number.isNaN(n))) {
|
|
1662
|
-
if (Array.isArray(n) && (n = r.commaSeparated ?
|
|
1663
|
-
let i = typeof n == "object" ? n :
|
|
1664
|
-
return e.stylePropertyNameCase === "css" && (i =
|
|
1662
|
+
if (Array.isArray(n) && (n = r.commaSeparated ? Ii(n) : Ui(n)), r.property === "style") {
|
|
1663
|
+
let i = typeof n == "object" ? n : fl(e, String(n));
|
|
1664
|
+
return e.stylePropertyNameCase === "css" && (i = hl(i)), ["style", i];
|
|
1665
1665
|
}
|
|
1666
1666
|
return [
|
|
1667
|
-
e.elementAttributeNameCase === "react" && r.space ?
|
|
1667
|
+
e.elementAttributeNameCase === "react" && r.space ? ji[r.property] || r.property : r.attribute,
|
|
1668
1668
|
n
|
|
1669
1669
|
];
|
|
1670
1670
|
}
|
|
1671
1671
|
}
|
|
1672
|
-
function
|
|
1672
|
+
function fl(e, t) {
|
|
1673
1673
|
const n = {};
|
|
1674
1674
|
try {
|
|
1675
|
-
|
|
1675
|
+
Wi(t, r);
|
|
1676
1676
|
} catch (i) {
|
|
1677
1677
|
if (!e.ignoreInvalidStyle) {
|
|
1678
1678
|
const o = (
|
|
@@ -1690,7 +1690,7 @@ function cl(e, t) {
|
|
|
1690
1690
|
return n;
|
|
1691
1691
|
function r(i, o) {
|
|
1692
1692
|
let l = i;
|
|
1693
|
-
l.slice(0, 2) !== "--" && (l.slice(0, 4) === "-ms-" && (l = "ms-" + l.slice(4)), l = l.replace(
|
|
1693
|
+
l.slice(0, 2) !== "--" && (l.slice(0, 4) === "-ms-" && (l = "ms-" + l.slice(4)), l = l.replace(Xi, ml)), n[l] = o;
|
|
1694
1694
|
}
|
|
1695
1695
|
}
|
|
1696
1696
|
function gr(e, t, n) {
|
|
@@ -1718,13 +1718,13 @@ function gr(e, t, n) {
|
|
|
1718
1718
|
/** @type {keyof JSX.IntrinsicElements} */
|
|
1719
1719
|
r.value
|
|
1720
1720
|
);
|
|
1721
|
-
return
|
|
1721
|
+
return qn.call(e.components, i) ? e.components[i] : i;
|
|
1722
1722
|
}
|
|
1723
1723
|
if (e.evaluater)
|
|
1724
1724
|
return e.evaluater.evaluateExpression(r);
|
|
1725
|
-
|
|
1725
|
+
$e(e);
|
|
1726
1726
|
}
|
|
1727
|
-
function
|
|
1727
|
+
function $e(e, t) {
|
|
1728
1728
|
const n = new K(
|
|
1729
1729
|
"Cannot handle MDX estrees without `createEvaluater`",
|
|
1730
1730
|
{
|
|
@@ -1736,21 +1736,21 @@ function qe(e, t) {
|
|
|
1736
1736
|
);
|
|
1737
1737
|
throw n.file = e.filePath || void 0, n.url = hr + "#cannot-handle-mdx-estrees-without-createevaluater", n;
|
|
1738
1738
|
}
|
|
1739
|
-
function
|
|
1739
|
+
function hl(e) {
|
|
1740
1740
|
const t = {};
|
|
1741
1741
|
let n;
|
|
1742
1742
|
for (n in e)
|
|
1743
|
-
|
|
1743
|
+
qn.call(e, n) && (t[pl(n)] = e[n]);
|
|
1744
1744
|
return t;
|
|
1745
1745
|
}
|
|
1746
|
-
function
|
|
1747
|
-
let t = e.replace(
|
|
1746
|
+
function pl(e) {
|
|
1747
|
+
let t = e.replace(Gi, gl);
|
|
1748
1748
|
return t.slice(0, 3) === "ms-" && (t = "-" + t), t;
|
|
1749
1749
|
}
|
|
1750
|
-
function
|
|
1750
|
+
function ml(e, t) {
|
|
1751
1751
|
return t.toUpperCase();
|
|
1752
1752
|
}
|
|
1753
|
-
function
|
|
1753
|
+
function gl(e) {
|
|
1754
1754
|
return "-" + e.toLowerCase();
|
|
1755
1755
|
}
|
|
1756
1756
|
const gn = {
|
|
@@ -1775,13 +1775,13 @@ const gn = {
|
|
|
1775
1775
|
"track",
|
|
1776
1776
|
"video"
|
|
1777
1777
|
]
|
|
1778
|
-
},
|
|
1778
|
+
}, dl = {};
|
|
1779
1779
|
function Qn(e, t) {
|
|
1780
|
-
const n =
|
|
1780
|
+
const n = dl, r = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, i = typeof n.includeHtml == "boolean" ? n.includeHtml : !0;
|
|
1781
1781
|
return dr(e, r, i);
|
|
1782
1782
|
}
|
|
1783
1783
|
function dr(e, t, n) {
|
|
1784
|
-
if (
|
|
1784
|
+
if (yl(e)) {
|
|
1785
1785
|
if ("value" in e)
|
|
1786
1786
|
return e.type === "html" && !n ? "" : e.value;
|
|
1787
1787
|
if (t && "alt" in e && e.alt)
|
|
@@ -1798,7 +1798,7 @@ function wt(e, t, n) {
|
|
|
1798
1798
|
r[i] = dr(e[i], t, n);
|
|
1799
1799
|
return r.join("");
|
|
1800
1800
|
}
|
|
1801
|
-
function
|
|
1801
|
+
function yl(e) {
|
|
1802
1802
|
return !!(e && typeof e == "object");
|
|
1803
1803
|
}
|
|
1804
1804
|
const St = document.createElement("i");
|
|
@@ -1825,10 +1825,10 @@ function yr(e) {
|
|
|
1825
1825
|
const t = {};
|
|
1826
1826
|
let n = -1;
|
|
1827
1827
|
for (; ++n < e.length; )
|
|
1828
|
-
|
|
1828
|
+
kl(t, e[n]);
|
|
1829
1829
|
return t;
|
|
1830
1830
|
}
|
|
1831
|
-
function
|
|
1831
|
+
function kl(e, t) {
|
|
1832
1832
|
let n;
|
|
1833
1833
|
for (n in t) {
|
|
1834
1834
|
const i = (Ct.call(e, n) ? e[n] : void 0) || (e[n] = {}), o = t[n];
|
|
@@ -1837,7 +1837,7 @@ function yl(e, t) {
|
|
|
1837
1837
|
for (l in o) {
|
|
1838
1838
|
Ct.call(i, l) || (i[l] = []);
|
|
1839
1839
|
const a = o[l];
|
|
1840
|
-
|
|
1840
|
+
xl(
|
|
1841
1841
|
// @ts-expect-error Looks like a list.
|
|
1842
1842
|
i[l],
|
|
1843
1843
|
Array.isArray(a) ? a : a ? [a] : []
|
|
@@ -1845,7 +1845,7 @@ function yl(e, t) {
|
|
|
1845
1845
|
}
|
|
1846
1846
|
}
|
|
1847
1847
|
}
|
|
1848
|
-
function
|
|
1848
|
+
function xl(e, t) {
|
|
1849
1849
|
let n = -1;
|
|
1850
1850
|
const r = [];
|
|
1851
1851
|
for (; ++n < t.length; )
|
|
@@ -1868,7 +1868,7 @@ function kr(e, t) {
|
|
|
1868
1868
|
function ce(e) {
|
|
1869
1869
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
1870
1870
|
}
|
|
1871
|
-
const J = be(/[A-Za-z]/), X = be(/[\dA-Za-z]/),
|
|
1871
|
+
const J = be(/[A-Za-z]/), X = be(/[\dA-Za-z]/), bl = be(/[#-'*+\--9=?A-Z^-~]/);
|
|
1872
1872
|
function nn(e) {
|
|
1873
1873
|
return (
|
|
1874
1874
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
@@ -1876,11 +1876,11 @@ function nn(e) {
|
|
|
1876
1876
|
e !== null && (e < 32 || e === 127)
|
|
1877
1877
|
);
|
|
1878
1878
|
}
|
|
1879
|
-
const _n = be(/\d/),
|
|
1879
|
+
const _n = be(/\d/), wl = be(/[\dA-Fa-f]/), Sl = be(/[!-/:-@[-`{-~]/);
|
|
1880
1880
|
function D(e) {
|
|
1881
1881
|
return e !== null && e < -2;
|
|
1882
1882
|
}
|
|
1883
|
-
function
|
|
1883
|
+
function q(e) {
|
|
1884
1884
|
return e !== null && (e < 0 || e === 32);
|
|
1885
1885
|
}
|
|
1886
1886
|
function N(e) {
|
|
@@ -1923,10 +1923,10 @@ function j(e, t, n, r) {
|
|
|
1923
1923
|
return N(u) && o++ < i ? (e.consume(u), a) : (e.exit(n), t(u));
|
|
1924
1924
|
}
|
|
1925
1925
|
}
|
|
1926
|
-
const
|
|
1927
|
-
tokenize:
|
|
1926
|
+
const Cl = {
|
|
1927
|
+
tokenize: El
|
|
1928
1928
|
};
|
|
1929
|
-
function
|
|
1929
|
+
function El(e) {
|
|
1930
1930
|
const t = e.attempt(this.parser.constructs.contentInitial, r, i);
|
|
1931
1931
|
let n;
|
|
1932
1932
|
return t;
|
|
@@ -1955,12 +1955,12 @@ function Cl(e) {
|
|
|
1955
1955
|
return D(a) ? (e.consume(a), e.exit("chunkText"), o) : (e.consume(a), l);
|
|
1956
1956
|
}
|
|
1957
1957
|
}
|
|
1958
|
-
const
|
|
1959
|
-
tokenize: Il
|
|
1960
|
-
}, Et = {
|
|
1958
|
+
const Il = {
|
|
1961
1959
|
tokenize: Al
|
|
1960
|
+
}, Et = {
|
|
1961
|
+
tokenize: Tl
|
|
1962
1962
|
};
|
|
1963
|
-
function
|
|
1963
|
+
function Al(e) {
|
|
1964
1964
|
const t = this, n = [];
|
|
1965
1965
|
let r = 0, i, o, l;
|
|
1966
1966
|
return a;
|
|
@@ -2072,11 +2072,11 @@ function Il(e) {
|
|
|
2072
2072
|
i.write([null]), o = void 0, i = void 0, t.containerState._closeFlow = void 0;
|
|
2073
2073
|
}
|
|
2074
2074
|
}
|
|
2075
|
-
function
|
|
2075
|
+
function Tl(e, t, n) {
|
|
2076
2076
|
return j(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
2077
2077
|
}
|
|
2078
2078
|
function De(e) {
|
|
2079
|
-
if (e === null ||
|
|
2079
|
+
if (e === null || q(e) || Ee(e))
|
|
2080
2080
|
return 1;
|
|
2081
2081
|
if (an(e))
|
|
2082
2082
|
return 2;
|
|
@@ -2092,10 +2092,10 @@ function un(e, t, n) {
|
|
|
2092
2092
|
}
|
|
2093
2093
|
const Rn = {
|
|
2094
2094
|
name: "attention",
|
|
2095
|
-
resolveAll:
|
|
2096
|
-
tokenize:
|
|
2095
|
+
resolveAll: Pl,
|
|
2096
|
+
tokenize: vl
|
|
2097
2097
|
};
|
|
2098
|
-
function
|
|
2098
|
+
function Pl(e, t) {
|
|
2099
2099
|
let n = -1, r, i, o, l, a, u, s, f;
|
|
2100
2100
|
for (; ++n < e.length; )
|
|
2101
2101
|
if (e[n][0] === "enter" && e[n][1].type === "attentionSequence" && e[n][1]._close) {
|
|
@@ -2150,7 +2150,7 @@ function Tl(e, t) {
|
|
|
2150
2150
|
e[n][1].type === "attentionSequence" && (e[n][1].type = "data");
|
|
2151
2151
|
return e;
|
|
2152
2152
|
}
|
|
2153
|
-
function
|
|
2153
|
+
function vl(e, t) {
|
|
2154
2154
|
const n = this.parser.constructs.attentionMarkers.null, r = this.previous, i = De(r);
|
|
2155
2155
|
let o;
|
|
2156
2156
|
return l;
|
|
@@ -2167,11 +2167,11 @@ function Pl(e, t) {
|
|
|
2167
2167
|
function It(e, t) {
|
|
2168
2168
|
e.column += t, e.offset += t, e._bufferIndex += t;
|
|
2169
2169
|
}
|
|
2170
|
-
const
|
|
2170
|
+
const Ll = {
|
|
2171
2171
|
name: "autolink",
|
|
2172
|
-
tokenize:
|
|
2172
|
+
tokenize: zl
|
|
2173
2173
|
};
|
|
2174
|
-
function
|
|
2174
|
+
function zl(e, t, n) {
|
|
2175
2175
|
let r = 0;
|
|
2176
2176
|
return i;
|
|
2177
2177
|
function i(h) {
|
|
@@ -2190,7 +2190,7 @@ function Ll(e, t, n) {
|
|
|
2190
2190
|
return h === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), t) : h === null || h === 32 || h === 60 || nn(h) ? n(h) : (e.consume(h), u);
|
|
2191
2191
|
}
|
|
2192
2192
|
function s(h) {
|
|
2193
|
-
return h === 64 ? (e.consume(h), f) :
|
|
2193
|
+
return h === 64 ? (e.consume(h), f) : bl(h) ? (e.consume(h), s) : n(h);
|
|
2194
2194
|
}
|
|
2195
2195
|
function f(h) {
|
|
2196
2196
|
return X(h) ? c(h) : n(h);
|
|
@@ -2208,9 +2208,9 @@ function Ll(e, t, n) {
|
|
|
2208
2208
|
}
|
|
2209
2209
|
const We = {
|
|
2210
2210
|
partial: !0,
|
|
2211
|
-
tokenize:
|
|
2211
|
+
tokenize: Dl
|
|
2212
2212
|
};
|
|
2213
|
-
function
|
|
2213
|
+
function Dl(e, t, n) {
|
|
2214
2214
|
return r;
|
|
2215
2215
|
function r(o) {
|
|
2216
2216
|
return N(o) ? j(e, i, "linePrefix")(o) : i(o);
|
|
@@ -2221,13 +2221,13 @@ function zl(e, t, n) {
|
|
|
2221
2221
|
}
|
|
2222
2222
|
const xr = {
|
|
2223
2223
|
continuation: {
|
|
2224
|
-
tokenize:
|
|
2224
|
+
tokenize: _l
|
|
2225
2225
|
},
|
|
2226
|
-
exit:
|
|
2226
|
+
exit: Rl,
|
|
2227
2227
|
name: "blockQuote",
|
|
2228
|
-
tokenize:
|
|
2228
|
+
tokenize: Fl
|
|
2229
2229
|
};
|
|
2230
|
-
function
|
|
2230
|
+
function Fl(e, t, n) {
|
|
2231
2231
|
const r = this;
|
|
2232
2232
|
return i;
|
|
2233
2233
|
function i(l) {
|
|
@@ -2243,7 +2243,7 @@ function Dl(e, t, n) {
|
|
|
2243
2243
|
return N(l) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(l), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(l));
|
|
2244
2244
|
}
|
|
2245
2245
|
}
|
|
2246
|
-
function
|
|
2246
|
+
function _l(e, t, n) {
|
|
2247
2247
|
const r = this;
|
|
2248
2248
|
return i;
|
|
2249
2249
|
function i(l) {
|
|
@@ -2253,27 +2253,27 @@ function Fl(e, t, n) {
|
|
|
2253
2253
|
return e.attempt(xr, t, n)(l);
|
|
2254
2254
|
}
|
|
2255
2255
|
}
|
|
2256
|
-
function
|
|
2256
|
+
function Rl(e) {
|
|
2257
2257
|
e.exit("blockQuote");
|
|
2258
2258
|
}
|
|
2259
2259
|
const br = {
|
|
2260
2260
|
name: "characterEscape",
|
|
2261
|
-
tokenize:
|
|
2261
|
+
tokenize: Ol
|
|
2262
2262
|
};
|
|
2263
|
-
function
|
|
2263
|
+
function Ol(e, t, n) {
|
|
2264
2264
|
return r;
|
|
2265
2265
|
function r(o) {
|
|
2266
2266
|
return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(o), e.exit("escapeMarker"), i;
|
|
2267
2267
|
}
|
|
2268
2268
|
function i(o) {
|
|
2269
|
-
return
|
|
2269
|
+
return Sl(o) ? (e.enter("characterEscapeValue"), e.consume(o), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : n(o);
|
|
2270
2270
|
}
|
|
2271
2271
|
}
|
|
2272
2272
|
const wr = {
|
|
2273
2273
|
name: "characterReference",
|
|
2274
|
-
tokenize:
|
|
2274
|
+
tokenize: Ml
|
|
2275
2275
|
};
|
|
2276
|
-
function
|
|
2276
|
+
function Ml(e, t, n) {
|
|
2277
2277
|
const r = this;
|
|
2278
2278
|
let i = 0, o, l;
|
|
2279
2279
|
return a;
|
|
@@ -2284,7 +2284,7 @@ function Ol(e, t, n) {
|
|
|
2284
2284
|
return c === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(c), e.exit("characterReferenceMarkerNumeric"), s) : (e.enter("characterReferenceValue"), o = 31, l = X, f(c));
|
|
2285
2285
|
}
|
|
2286
2286
|
function s(c) {
|
|
2287
|
-
return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l =
|
|
2287
|
+
return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l = wl, f) : (e.enter("characterReferenceValue"), o = 7, l = _n, f(c));
|
|
2288
2288
|
}
|
|
2289
2289
|
function f(c) {
|
|
2290
2290
|
if (c === 59 && i) {
|
|
@@ -2296,13 +2296,13 @@ function Ol(e, t, n) {
|
|
|
2296
2296
|
}
|
|
2297
2297
|
const At = {
|
|
2298
2298
|
partial: !0,
|
|
2299
|
-
tokenize:
|
|
2299
|
+
tokenize: Bl
|
|
2300
2300
|
}, Tt = {
|
|
2301
2301
|
concrete: !0,
|
|
2302
2302
|
name: "codeFenced",
|
|
2303
|
-
tokenize:
|
|
2303
|
+
tokenize: Nl
|
|
2304
2304
|
};
|
|
2305
|
-
function
|
|
2305
|
+
function Nl(e, t, n) {
|
|
2306
2306
|
const r = this, i = {
|
|
2307
2307
|
partial: !0,
|
|
2308
2308
|
tokenize: z
|
|
@@ -2373,7 +2373,7 @@ function Ml(e, t, n) {
|
|
|
2373
2373
|
}
|
|
2374
2374
|
}
|
|
2375
2375
|
}
|
|
2376
|
-
function
|
|
2376
|
+
function Bl(e, t, n) {
|
|
2377
2377
|
const r = this;
|
|
2378
2378
|
return i;
|
|
2379
2379
|
function i(l) {
|
|
@@ -2385,12 +2385,12 @@ function Nl(e, t, n) {
|
|
|
2385
2385
|
}
|
|
2386
2386
|
const dn = {
|
|
2387
2387
|
name: "codeIndented",
|
|
2388
|
-
tokenize: jl
|
|
2389
|
-
}, Bl = {
|
|
2390
|
-
partial: !0,
|
|
2391
2388
|
tokenize: Hl
|
|
2389
|
+
}, jl = {
|
|
2390
|
+
partial: !0,
|
|
2391
|
+
tokenize: Ul
|
|
2392
2392
|
};
|
|
2393
|
-
function
|
|
2393
|
+
function Hl(e, t, n) {
|
|
2394
2394
|
const r = this;
|
|
2395
2395
|
return i;
|
|
2396
2396
|
function i(s) {
|
|
@@ -2401,7 +2401,7 @@ function jl(e, t, n) {
|
|
|
2401
2401
|
return f && f[1].type === "linePrefix" && f[2].sliceSerialize(f[1], !0).length >= 4 ? l(s) : n(s);
|
|
2402
2402
|
}
|
|
2403
2403
|
function l(s) {
|
|
2404
|
-
return s === null ? u(s) : D(s) ? e.attempt(
|
|
2404
|
+
return s === null ? u(s) : D(s) ? e.attempt(jl, l, u)(s) : (e.enter("codeFlowValue"), a(s));
|
|
2405
2405
|
}
|
|
2406
2406
|
function a(s) {
|
|
2407
2407
|
return s === null || D(s) ? (e.exit("codeFlowValue"), l(s)) : (e.consume(s), a);
|
|
@@ -2410,7 +2410,7 @@ function jl(e, t, n) {
|
|
|
2410
2410
|
return e.exit("codeIndented"), t(s);
|
|
2411
2411
|
}
|
|
2412
2412
|
}
|
|
2413
|
-
function
|
|
2413
|
+
function Ul(e, t, n) {
|
|
2414
2414
|
const r = this;
|
|
2415
2415
|
return i;
|
|
2416
2416
|
function i(l) {
|
|
@@ -2421,11 +2421,11 @@ function Hl(e, t, n) {
|
|
|
2421
2421
|
return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? t(l) : D(l) ? i(l) : n(l);
|
|
2422
2422
|
}
|
|
2423
2423
|
}
|
|
2424
|
-
const
|
|
2424
|
+
const $l = {
|
|
2425
2425
|
name: "codeText",
|
|
2426
|
-
previous:
|
|
2426
|
+
previous: Vl,
|
|
2427
2427
|
resolve: ql,
|
|
2428
|
-
tokenize:
|
|
2428
|
+
tokenize: Wl
|
|
2429
2429
|
};
|
|
2430
2430
|
function ql(e) {
|
|
2431
2431
|
let t = e.length - 4, n = 3, r, i;
|
|
@@ -2440,10 +2440,10 @@ function ql(e) {
|
|
|
2440
2440
|
i === void 0 ? r !== t && e[r][1].type !== "lineEnding" && (i = r) : (r === t || e[r][1].type === "lineEnding") && (e[i][1].type = "codeTextData", r !== i + 2 && (e[i][1].end = e[r - 1][1].end, e.splice(i + 2, r - i - 2), t -= r - i - 2, r = i + 2), i = void 0);
|
|
2441
2441
|
return e;
|
|
2442
2442
|
}
|
|
2443
|
-
function
|
|
2443
|
+
function Vl(e) {
|
|
2444
2444
|
return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
|
|
2445
2445
|
}
|
|
2446
|
-
function
|
|
2446
|
+
function Wl(e, t, n) {
|
|
2447
2447
|
let r = 0, i, o;
|
|
2448
2448
|
return l;
|
|
2449
2449
|
function l(c) {
|
|
@@ -2462,7 +2462,7 @@ function Vl(e, t, n) {
|
|
|
2462
2462
|
return c === 96 ? (e.consume(c), i++, f) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), t(c)) : (o.type = "codeTextData", s(c));
|
|
2463
2463
|
}
|
|
2464
2464
|
}
|
|
2465
|
-
class
|
|
2465
|
+
class Ql {
|
|
2466
2466
|
/**
|
|
2467
2467
|
* @param {ReadonlyArray<T> | null | undefined} [initial]
|
|
2468
2468
|
* Initial items (optional).
|
|
@@ -2637,7 +2637,7 @@ function Be(e, t) {
|
|
|
2637
2637
|
function Sr(e) {
|
|
2638
2638
|
const t = {};
|
|
2639
2639
|
let n = -1, r, i, o, l, a, u, s;
|
|
2640
|
-
const f = new
|
|
2640
|
+
const f = new Ql(e);
|
|
2641
2641
|
for (; ++n < f.length; ) {
|
|
2642
2642
|
for (; n in t; )
|
|
2643
2643
|
n = t[n];
|
|
@@ -2645,7 +2645,7 @@ function Sr(e) {
|
|
|
2645
2645
|
for (; ++o < u.length && u[o][1].type !== "content"; )
|
|
2646
2646
|
u[o][1].type === "chunkText" && (u[o][1]._isInFirstContentOfListItem = !0, o++);
|
|
2647
2647
|
if (r[0] === "enter")
|
|
2648
|
-
r[1].contentType && (Object.assign(t,
|
|
2648
|
+
r[1].contentType && (Object.assign(t, Yl(f, n)), n = t[n], s = !0);
|
|
2649
2649
|
else if (r[1]._container) {
|
|
2650
2650
|
for (o = n, i = void 0; o-- && (l = f.get(o), l[1].type === "lineEnding" || l[1].type === "lineEndingBlank"); )
|
|
2651
2651
|
l[0] === "enter" && (i && (f.get(i)[1].type = "lineEndingBlank"), l[1].type = "lineEnding", i = o);
|
|
@@ -2656,7 +2656,7 @@ function Sr(e) {
|
|
|
2656
2656
|
}
|
|
2657
2657
|
return te(e, 0, Number.POSITIVE_INFINITY, f.slice(0)), !s;
|
|
2658
2658
|
}
|
|
2659
|
-
function
|
|
2659
|
+
function Yl(e, t) {
|
|
2660
2660
|
const n = e.get(t)[1], r = e.get(t)[2];
|
|
2661
2661
|
let i = t - 1;
|
|
2662
2662
|
const o = [], l = n._tokenizer || r.parser[n.contentType](n.start), a = l.events, u = [], s = {};
|
|
@@ -2678,17 +2678,17 @@ function Ql(e, t) {
|
|
|
2678
2678
|
s[d + u[p][0]] = d + u[p][1], d += u[p][1] - u[p][0] - 1;
|
|
2679
2679
|
return s;
|
|
2680
2680
|
}
|
|
2681
|
-
const
|
|
2682
|
-
resolve:
|
|
2683
|
-
tokenize: Kl
|
|
2684
|
-
}, Gl = {
|
|
2685
|
-
partial: !0,
|
|
2681
|
+
const Gl = {
|
|
2682
|
+
resolve: Kl,
|
|
2686
2683
|
tokenize: Jl
|
|
2684
|
+
}, Xl = {
|
|
2685
|
+
partial: !0,
|
|
2686
|
+
tokenize: Zl
|
|
2687
2687
|
};
|
|
2688
|
-
function
|
|
2688
|
+
function Kl(e) {
|
|
2689
2689
|
return Sr(e), e;
|
|
2690
2690
|
}
|
|
2691
|
-
function
|
|
2691
|
+
function Jl(e, t) {
|
|
2692
2692
|
let n;
|
|
2693
2693
|
return r;
|
|
2694
2694
|
function r(a) {
|
|
@@ -2697,7 +2697,7 @@ function Kl(e, t) {
|
|
|
2697
2697
|
}), i(a);
|
|
2698
2698
|
}
|
|
2699
2699
|
function i(a) {
|
|
2700
|
-
return a === null ? o(a) : D(a) ? e.check(
|
|
2700
|
+
return a === null ? o(a) : D(a) ? e.check(Xl, l, o)(a) : (e.consume(a), i);
|
|
2701
2701
|
}
|
|
2702
2702
|
function o(a) {
|
|
2703
2703
|
return e.exit("chunkContent"), e.exit("content"), t(a);
|
|
@@ -2709,7 +2709,7 @@ function Kl(e, t) {
|
|
|
2709
2709
|
}), n = n.next, i;
|
|
2710
2710
|
}
|
|
2711
2711
|
}
|
|
2712
|
-
function
|
|
2712
|
+
function Zl(e, t, n) {
|
|
2713
2713
|
const r = this;
|
|
2714
2714
|
return i;
|
|
2715
2715
|
function i(l) {
|
|
@@ -2743,7 +2743,7 @@ function Cr(e, t, n, r, i, o, l, a, u) {
|
|
|
2743
2743
|
return y === 60 || y === 62 || y === 92 ? (e.consume(y), h) : h(y);
|
|
2744
2744
|
}
|
|
2745
2745
|
function x(y) {
|
|
2746
|
-
return !f && (y === null || y === 41 ||
|
|
2746
|
+
return !f && (y === null || y === 41 || q(y)) ? (e.exit("chunkString"), e.exit(a), e.exit(l), e.exit(r), t(y)) : f < s && y === 40 ? (e.consume(y), f++, x) : y === 41 ? (e.consume(y), f--, x) : y === null || y === 32 || y === 40 || nn(y) ? n(y) : (e.consume(y), y === 92 ? E : x);
|
|
2747
2747
|
}
|
|
2748
2748
|
function E(y) {
|
|
2749
2749
|
return y === 40 || y === 41 || y === 92 ? (e.consume(y), x) : x(y);
|
|
@@ -2801,14 +2801,14 @@ function Ue(e, t) {
|
|
|
2801
2801
|
return D(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : N(i) ? j(e, r, n ? "linePrefix" : "lineSuffix")(i) : t(i);
|
|
2802
2802
|
}
|
|
2803
2803
|
}
|
|
2804
|
-
const
|
|
2804
|
+
const eo = {
|
|
2805
2805
|
name: "definition",
|
|
2806
|
-
tokenize: no
|
|
2807
|
-
}, eo = {
|
|
2808
|
-
partial: !0,
|
|
2809
2806
|
tokenize: to
|
|
2807
|
+
}, no = {
|
|
2808
|
+
partial: !0,
|
|
2809
|
+
tokenize: ro
|
|
2810
2810
|
};
|
|
2811
|
-
function
|
|
2811
|
+
function to(e, t, n) {
|
|
2812
2812
|
const r = this;
|
|
2813
2813
|
let i;
|
|
2814
2814
|
return o;
|
|
@@ -2831,7 +2831,7 @@ function no(e, t, n) {
|
|
|
2831
2831
|
return i = ce(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), h === 58 ? (e.enter("definitionMarker"), e.consume(h), e.exit("definitionMarker"), u) : n(h);
|
|
2832
2832
|
}
|
|
2833
2833
|
function u(h) {
|
|
2834
|
-
return
|
|
2834
|
+
return q(h) ? Ue(e, s)(h) : s(h);
|
|
2835
2835
|
}
|
|
2836
2836
|
function s(h) {
|
|
2837
2837
|
return Cr(
|
|
@@ -2847,7 +2847,7 @@ function no(e, t, n) {
|
|
|
2847
2847
|
)(h);
|
|
2848
2848
|
}
|
|
2849
2849
|
function f(h) {
|
|
2850
|
-
return e.attempt(
|
|
2850
|
+
return e.attempt(no, c, c)(h);
|
|
2851
2851
|
}
|
|
2852
2852
|
function c(h) {
|
|
2853
2853
|
return N(h) ? j(e, p, "whitespace")(h) : p(h);
|
|
@@ -2856,10 +2856,10 @@ function no(e, t, n) {
|
|
|
2856
2856
|
return h === null || D(h) ? (e.exit("definition"), r.parser.defined.push(i), t(h)) : n(h);
|
|
2857
2857
|
}
|
|
2858
2858
|
}
|
|
2859
|
-
function
|
|
2859
|
+
function ro(e, t, n) {
|
|
2860
2860
|
return r;
|
|
2861
2861
|
function r(a) {
|
|
2862
|
-
return
|
|
2862
|
+
return q(a) ? Ue(e, i)(a) : n(a);
|
|
2863
2863
|
}
|
|
2864
2864
|
function i(a) {
|
|
2865
2865
|
return Ir(e, o, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
|
|
@@ -2871,11 +2871,11 @@ function to(e, t, n) {
|
|
|
2871
2871
|
return a === null || D(a) ? t(a) : n(a);
|
|
2872
2872
|
}
|
|
2873
2873
|
}
|
|
2874
|
-
const
|
|
2874
|
+
const io = {
|
|
2875
2875
|
name: "hardBreakEscape",
|
|
2876
|
-
tokenize:
|
|
2876
|
+
tokenize: lo
|
|
2877
2877
|
};
|
|
2878
|
-
function
|
|
2878
|
+
function lo(e, t, n) {
|
|
2879
2879
|
return r;
|
|
2880
2880
|
function r(o) {
|
|
2881
2881
|
return e.enter("hardBreakEscape"), e.consume(o), i;
|
|
@@ -2884,12 +2884,12 @@ function io(e, t, n) {
|
|
|
2884
2884
|
return D(o) ? (e.exit("hardBreakEscape"), t(o)) : n(o);
|
|
2885
2885
|
}
|
|
2886
2886
|
}
|
|
2887
|
-
const
|
|
2887
|
+
const oo = {
|
|
2888
2888
|
name: "headingAtx",
|
|
2889
|
-
resolve:
|
|
2890
|
-
tokenize:
|
|
2889
|
+
resolve: ao,
|
|
2890
|
+
tokenize: uo
|
|
2891
2891
|
};
|
|
2892
|
-
function
|
|
2892
|
+
function ao(e, t) {
|
|
2893
2893
|
let n = e.length - 2, r = 3, i, o;
|
|
2894
2894
|
return e[r][1].type === "whitespace" && (r += 2), n - 2 > r && e[n][1].type === "whitespace" && (n -= 2), e[n][1].type === "atxHeadingSequence" && (r === n - 1 || n - 4 > r && e[n - 2][1].type === "whitespace") && (n -= r + 1 === n ? 2 : 4), n > r && (i = {
|
|
2895
2895
|
type: "atxHeadingText",
|
|
@@ -2902,7 +2902,7 @@ function oo(e, t) {
|
|
|
2902
2902
|
contentType: "text"
|
|
2903
2903
|
}, te(e, r, n - r + 1, [["enter", i, t], ["enter", o, t], ["exit", o, t], ["exit", i, t]])), e;
|
|
2904
2904
|
}
|
|
2905
|
-
function
|
|
2905
|
+
function uo(e, t, n) {
|
|
2906
2906
|
let r = 0;
|
|
2907
2907
|
return i;
|
|
2908
2908
|
function i(f) {
|
|
@@ -2912,7 +2912,7 @@ function ao(e, t, n) {
|
|
|
2912
2912
|
return e.enter("atxHeadingSequence"), l(f);
|
|
2913
2913
|
}
|
|
2914
2914
|
function l(f) {
|
|
2915
|
-
return f === 35 && r++ < 6 ? (e.consume(f), l) : f === null ||
|
|
2915
|
+
return f === 35 && r++ < 6 ? (e.consume(f), l) : f === null || q(f) ? (e.exit("atxHeadingSequence"), a(f)) : n(f);
|
|
2916
2916
|
}
|
|
2917
2917
|
function a(f) {
|
|
2918
2918
|
return f === 35 ? (e.enter("atxHeadingSequence"), u(f)) : f === null || D(f) ? (e.exit("atxHeading"), t(f)) : N(f) ? j(e, a, "whitespace")(f) : (e.enter("atxHeadingText"), s(f));
|
|
@@ -2921,10 +2921,10 @@ function ao(e, t, n) {
|
|
|
2921
2921
|
return f === 35 ? (e.consume(f), u) : (e.exit("atxHeadingSequence"), a(f));
|
|
2922
2922
|
}
|
|
2923
2923
|
function s(f) {
|
|
2924
|
-
return f === null || f === 35 ||
|
|
2924
|
+
return f === null || f === 35 || q(f) ? (e.exit("atxHeadingText"), a(f)) : (e.consume(f), s);
|
|
2925
2925
|
}
|
|
2926
2926
|
}
|
|
2927
|
-
const
|
|
2927
|
+
const so = [
|
|
2928
2928
|
"address",
|
|
2929
2929
|
"article",
|
|
2930
2930
|
"aside",
|
|
@@ -2987,25 +2987,25 @@ const uo = [
|
|
|
2987
2987
|
"tr",
|
|
2988
2988
|
"track",
|
|
2989
2989
|
"ul"
|
|
2990
|
-
], Pt = ["pre", "script", "style", "textarea"],
|
|
2990
|
+
], Pt = ["pre", "script", "style", "textarea"], co = {
|
|
2991
2991
|
concrete: !0,
|
|
2992
2992
|
name: "htmlFlow",
|
|
2993
|
-
resolveTo:
|
|
2994
|
-
tokenize:
|
|
2995
|
-
}, co = {
|
|
2996
|
-
partial: !0,
|
|
2997
|
-
tokenize: go
|
|
2993
|
+
resolveTo: po,
|
|
2994
|
+
tokenize: mo
|
|
2998
2995
|
}, fo = {
|
|
2999
2996
|
partial: !0,
|
|
3000
|
-
tokenize:
|
|
2997
|
+
tokenize: yo
|
|
2998
|
+
}, ho = {
|
|
2999
|
+
partial: !0,
|
|
3000
|
+
tokenize: go
|
|
3001
3001
|
};
|
|
3002
|
-
function
|
|
3002
|
+
function po(e) {
|
|
3003
3003
|
let t = e.length;
|
|
3004
3004
|
for (; t-- && !(e[t][0] === "enter" && e[t][1].type === "htmlFlow"); )
|
|
3005
3005
|
;
|
|
3006
3006
|
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;
|
|
3007
3007
|
}
|
|
3008
|
-
function
|
|
3008
|
+
function mo(e, t, n) {
|
|
3009
3009
|
const r = this;
|
|
3010
3010
|
let i, o, l, a, u;
|
|
3011
3011
|
return s;
|
|
@@ -3032,9 +3032,9 @@ function po(e, t, n) {
|
|
|
3032
3032
|
return J(g) ? (e.consume(g), l = String.fromCharCode(g), E) : n(g);
|
|
3033
3033
|
}
|
|
3034
3034
|
function E(g) {
|
|
3035
|
-
if (g === null || g === 47 || g === 62 ||
|
|
3035
|
+
if (g === null || g === 47 || g === 62 || q(g)) {
|
|
3036
3036
|
const ue = g === 47, we = l.toLowerCase();
|
|
3037
|
-
return !ue && !o && Pt.includes(we) ? (i = 1, r.interrupt ? t(g) : v(g)) :
|
|
3037
|
+
return !ue && !o && Pt.includes(we) ? (i = 1, r.interrupt ? t(g) : v(g)) : so.includes(l.toLowerCase()) ? (i = 6, ue ? (e.consume(g), y) : r.interrupt ? t(g) : v(g)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(g) : o ? S(g) : C(g));
|
|
3038
3038
|
}
|
|
3039
3039
|
return g === 45 || X(g) ? (e.consume(g), l += String.fromCharCode(g), E) : n(g);
|
|
3040
3040
|
}
|
|
@@ -3060,7 +3060,7 @@ function po(e, t, n) {
|
|
|
3060
3060
|
return g === u ? (e.consume(g), u = null, H) : g === null || D(g) ? n(g) : (e.consume(g), O);
|
|
3061
3061
|
}
|
|
3062
3062
|
function U(g) {
|
|
3063
|
-
return g === null || g === 34 || g === 39 || g === 47 || g === 60 || g === 61 || g === 62 || g === 96 ||
|
|
3063
|
+
return g === null || g === 34 || g === 39 || g === 47 || g === 60 || g === 61 || g === 62 || g === 96 || q(g) ? z(g) : (e.consume(g), U);
|
|
3064
3064
|
}
|
|
3065
3065
|
function H(g) {
|
|
3066
3066
|
return g === 47 || g === 62 || N(g) ? C(g) : n(g);
|
|
@@ -3072,10 +3072,10 @@ function po(e, t, n) {
|
|
|
3072
3072
|
return g === null || D(g) ? v(g) : N(g) ? (e.consume(g), P) : n(g);
|
|
3073
3073
|
}
|
|
3074
3074
|
function v(g) {
|
|
3075
|
-
return g === 45 && i === 2 ? (e.consume(g), Q) : g === 60 && i === 1 ? (e.consume(g), Y) : g === 62 && i === 4 ? (e.consume(g), ae) : g === 63 && i === 3 ? (e.consume(g), m) : g === 93 && i === 5 ? (e.consume(g), pe) : D(g) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
|
|
3075
|
+
return g === 45 && i === 2 ? (e.consume(g), Q) : g === 60 && i === 1 ? (e.consume(g), Y) : g === 62 && i === 4 ? (e.consume(g), ae) : g === 63 && i === 3 ? (e.consume(g), m) : g === 93 && i === 5 ? (e.consume(g), pe) : D(g) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(fo, me, L)(g)) : g === null || D(g) ? (e.exit("htmlFlowData"), L(g)) : (e.consume(g), v);
|
|
3076
3076
|
}
|
|
3077
3077
|
function L(g) {
|
|
3078
|
-
return e.check(
|
|
3078
|
+
return e.check(ho, T, me)(g);
|
|
3079
3079
|
}
|
|
3080
3080
|
function T(g) {
|
|
3081
3081
|
return e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"), _;
|
|
@@ -3109,7 +3109,7 @@ function po(e, t, n) {
|
|
|
3109
3109
|
return e.exit("htmlFlow"), t(g);
|
|
3110
3110
|
}
|
|
3111
3111
|
}
|
|
3112
|
-
function
|
|
3112
|
+
function go(e, t, n) {
|
|
3113
3113
|
const r = this;
|
|
3114
3114
|
return i;
|
|
3115
3115
|
function i(l) {
|
|
@@ -3119,17 +3119,17 @@ function mo(e, t, n) {
|
|
|
3119
3119
|
return r.parser.lazy[r.now().line] ? n(l) : t(l);
|
|
3120
3120
|
}
|
|
3121
3121
|
}
|
|
3122
|
-
function
|
|
3122
|
+
function yo(e, t, n) {
|
|
3123
3123
|
return r;
|
|
3124
3124
|
function r(i) {
|
|
3125
3125
|
return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(We, t, n);
|
|
3126
3126
|
}
|
|
3127
3127
|
}
|
|
3128
|
-
const
|
|
3128
|
+
const ko = {
|
|
3129
3129
|
name: "htmlText",
|
|
3130
|
-
tokenize:
|
|
3130
|
+
tokenize: xo
|
|
3131
3131
|
};
|
|
3132
|
-
function
|
|
3132
|
+
function xo(e, t, n) {
|
|
3133
3133
|
const r = this;
|
|
3134
3134
|
let i, o, l;
|
|
3135
3135
|
return a;
|
|
@@ -3186,7 +3186,7 @@ function ko(e, t, n) {
|
|
|
3186
3186
|
return D(m) ? (l = O, Y(m)) : N(m) ? (e.consume(m), O) : Q(m);
|
|
3187
3187
|
}
|
|
3188
3188
|
function U(m) {
|
|
3189
|
-
return m === 45 || X(m) ? (e.consume(m), U) : m === 47 || m === 62 ||
|
|
3189
|
+
return m === 45 || X(m) ? (e.consume(m), U) : m === 47 || m === 62 || q(m) ? H(m) : n(m);
|
|
3190
3190
|
}
|
|
3191
3191
|
function H(m) {
|
|
3192
3192
|
return m === 47 ? (e.consume(m), Q) : m === 58 || m === 95 || J(m) ? (e.consume(m), k) : D(m) ? (l = H, Y(m)) : N(m) ? (e.consume(m), H) : Q(m);
|
|
@@ -3204,10 +3204,10 @@ function ko(e, t, n) {
|
|
|
3204
3204
|
return m === i ? (e.consume(m), i = void 0, _) : m === null ? n(m) : D(m) ? (l = L, Y(m)) : (e.consume(m), L);
|
|
3205
3205
|
}
|
|
3206
3206
|
function T(m) {
|
|
3207
|
-
return m === null || m === 34 || m === 39 || m === 60 || m === 61 || m === 96 ? n(m) : m === 47 || m === 62 ||
|
|
3207
|
+
return m === null || m === 34 || m === 39 || m === 60 || m === 61 || m === 96 ? n(m) : m === 47 || m === 62 || q(m) ? H(m) : (e.consume(m), T);
|
|
3208
3208
|
}
|
|
3209
3209
|
function _(m) {
|
|
3210
|
-
return m === 47 || m === 62 ||
|
|
3210
|
+
return m === 47 || m === 62 || q(m) ? H(m) : n(m);
|
|
3211
3211
|
}
|
|
3212
3212
|
function Q(m) {
|
|
3213
3213
|
return m === 62 ? (e.consume(m), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(m);
|
|
@@ -3224,17 +3224,17 @@ function ko(e, t, n) {
|
|
|
3224
3224
|
}
|
|
3225
3225
|
const Gn = {
|
|
3226
3226
|
name: "labelEnd",
|
|
3227
|
-
resolveAll:
|
|
3228
|
-
resolveTo:
|
|
3229
|
-
tokenize: Eo
|
|
3230
|
-
}, xo = {
|
|
3227
|
+
resolveAll: Co,
|
|
3228
|
+
resolveTo: Eo,
|
|
3231
3229
|
tokenize: Io
|
|
3232
3230
|
}, bo = {
|
|
3233
3231
|
tokenize: Ao
|
|
3234
3232
|
}, wo = {
|
|
3235
3233
|
tokenize: To
|
|
3234
|
+
}, So = {
|
|
3235
|
+
tokenize: Po
|
|
3236
3236
|
};
|
|
3237
|
-
function
|
|
3237
|
+
function Co(e) {
|
|
3238
3238
|
let t = -1;
|
|
3239
3239
|
const n = [];
|
|
3240
3240
|
for (; ++t < e.length; ) {
|
|
@@ -3246,7 +3246,7 @@ function So(e) {
|
|
|
3246
3246
|
}
|
|
3247
3247
|
return e.length !== n.length && te(e, 0, e.length, n), e;
|
|
3248
3248
|
}
|
|
3249
|
-
function
|
|
3249
|
+
function Eo(e, t) {
|
|
3250
3250
|
let n = e.length, r = 0, i, o, l, a;
|
|
3251
3251
|
for (; n--; )
|
|
3252
3252
|
if (i = e[n][1], o) {
|
|
@@ -3286,7 +3286,7 @@ function Co(e, t) {
|
|
|
3286
3286
|
};
|
|
3287
3287
|
return a = [["enter", u, t], ["enter", s, t]], a = ie(a, e.slice(o + 1, o + r + 3)), a = ie(a, [["enter", f, t]]), a = ie(a, un(t.parser.constructs.insideSpan.null, e.slice(o + r + 4, l - 3), t)), a = ie(a, [["exit", f, t], e[l - 2], e[l - 1], ["exit", s, t]]), a = ie(a, e.slice(l + 1)), a = ie(a, [["exit", u, t]]), te(e, o, e.length, a), e;
|
|
3288
3288
|
}
|
|
3289
|
-
function
|
|
3289
|
+
function Io(e, t, n) {
|
|
3290
3290
|
const r = this;
|
|
3291
3291
|
let i = r.events.length, o, l;
|
|
3292
3292
|
for (; i--; )
|
|
@@ -3302,10 +3302,10 @@ function Eo(e, t, n) {
|
|
|
3302
3302
|
}))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(p), e.exit("labelMarker"), e.exit("labelEnd"), u) : n(p);
|
|
3303
3303
|
}
|
|
3304
3304
|
function u(p) {
|
|
3305
|
-
return p === 40 ? e.attempt(
|
|
3305
|
+
return p === 40 ? e.attempt(bo, f, l ? f : c)(p) : p === 91 ? e.attempt(wo, f, l ? s : c)(p) : l ? f(p) : c(p);
|
|
3306
3306
|
}
|
|
3307
3307
|
function s(p) {
|
|
3308
|
-
return e.attempt(
|
|
3308
|
+
return e.attempt(So, f, c)(p);
|
|
3309
3309
|
}
|
|
3310
3310
|
function f(p) {
|
|
3311
3311
|
return t(p);
|
|
@@ -3314,19 +3314,19 @@ function Eo(e, t, n) {
|
|
|
3314
3314
|
return o._balanced = !0, n(p);
|
|
3315
3315
|
}
|
|
3316
3316
|
}
|
|
3317
|
-
function
|
|
3317
|
+
function Ao(e, t, n) {
|
|
3318
3318
|
return r;
|
|
3319
3319
|
function r(c) {
|
|
3320
3320
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), i;
|
|
3321
3321
|
}
|
|
3322
3322
|
function i(c) {
|
|
3323
|
-
return
|
|
3323
|
+
return q(c) ? Ue(e, o)(c) : o(c);
|
|
3324
3324
|
}
|
|
3325
3325
|
function o(c) {
|
|
3326
3326
|
return c === 41 ? f(c) : Cr(e, l, a, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(c);
|
|
3327
3327
|
}
|
|
3328
3328
|
function l(c) {
|
|
3329
|
-
return
|
|
3329
|
+
return q(c) ? Ue(e, u)(c) : f(c);
|
|
3330
3330
|
}
|
|
3331
3331
|
function a(c) {
|
|
3332
3332
|
return n(c);
|
|
@@ -3335,13 +3335,13 @@ function Io(e, t, n) {
|
|
|
3335
3335
|
return c === 34 || c === 39 || c === 40 ? Ir(e, s, n, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(c) : f(c);
|
|
3336
3336
|
}
|
|
3337
3337
|
function s(c) {
|
|
3338
|
-
return
|
|
3338
|
+
return q(c) ? Ue(e, f)(c) : f(c);
|
|
3339
3339
|
}
|
|
3340
3340
|
function f(c) {
|
|
3341
3341
|
return c === 41 ? (e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), e.exit("resource"), t) : n(c);
|
|
3342
3342
|
}
|
|
3343
3343
|
}
|
|
3344
|
-
function
|
|
3344
|
+
function To(e, t, n) {
|
|
3345
3345
|
const r = this;
|
|
3346
3346
|
return i;
|
|
3347
3347
|
function i(a) {
|
|
@@ -3354,7 +3354,7 @@ function Ao(e, t, n) {
|
|
|
3354
3354
|
return n(a);
|
|
3355
3355
|
}
|
|
3356
3356
|
}
|
|
3357
|
-
function
|
|
3357
|
+
function Po(e, t, n) {
|
|
3358
3358
|
return r;
|
|
3359
3359
|
function r(o) {
|
|
3360
3360
|
return e.enter("reference"), e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), i;
|
|
@@ -3363,12 +3363,12 @@ function To(e, t, n) {
|
|
|
3363
3363
|
return o === 93 ? (e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), e.exit("reference"), t) : n(o);
|
|
3364
3364
|
}
|
|
3365
3365
|
}
|
|
3366
|
-
const
|
|
3366
|
+
const vo = {
|
|
3367
3367
|
name: "labelStartImage",
|
|
3368
3368
|
resolveAll: Gn.resolveAll,
|
|
3369
|
-
tokenize:
|
|
3369
|
+
tokenize: Lo
|
|
3370
3370
|
};
|
|
3371
|
-
function
|
|
3371
|
+
function Lo(e, t, n) {
|
|
3372
3372
|
const r = this;
|
|
3373
3373
|
return i;
|
|
3374
3374
|
function i(a) {
|
|
@@ -3381,12 +3381,12 @@ function vo(e, t, n) {
|
|
|
3381
3381
|
return a === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? n(a) : t(a);
|
|
3382
3382
|
}
|
|
3383
3383
|
}
|
|
3384
|
-
const
|
|
3384
|
+
const zo = {
|
|
3385
3385
|
name: "labelStartLink",
|
|
3386
3386
|
resolveAll: Gn.resolveAll,
|
|
3387
|
-
tokenize:
|
|
3387
|
+
tokenize: Do
|
|
3388
3388
|
};
|
|
3389
|
-
function
|
|
3389
|
+
function Do(e, t, n) {
|
|
3390
3390
|
const r = this;
|
|
3391
3391
|
return i;
|
|
3392
3392
|
function i(l) {
|
|
@@ -3398,9 +3398,9 @@ function zo(e, t, n) {
|
|
|
3398
3398
|
}
|
|
3399
3399
|
const yn = {
|
|
3400
3400
|
name: "lineEnding",
|
|
3401
|
-
tokenize:
|
|
3401
|
+
tokenize: Fo
|
|
3402
3402
|
};
|
|
3403
|
-
function
|
|
3403
|
+
function Fo(e, t) {
|
|
3404
3404
|
return n;
|
|
3405
3405
|
function n(r) {
|
|
3406
3406
|
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), j(e, t, "linePrefix");
|
|
@@ -3408,9 +3408,9 @@ function Do(e, t) {
|
|
|
3408
3408
|
}
|
|
3409
3409
|
const Ze = {
|
|
3410
3410
|
name: "thematicBreak",
|
|
3411
|
-
tokenize:
|
|
3411
|
+
tokenize: _o
|
|
3412
3412
|
};
|
|
3413
|
-
function
|
|
3413
|
+
function _o(e, t, n) {
|
|
3414
3414
|
let r = 0, i;
|
|
3415
3415
|
return o;
|
|
3416
3416
|
function o(s) {
|
|
@@ -3428,19 +3428,19 @@ function Fo(e, t, n) {
|
|
|
3428
3428
|
}
|
|
3429
3429
|
const Z = {
|
|
3430
3430
|
continuation: {
|
|
3431
|
-
tokenize:
|
|
3431
|
+
tokenize: No
|
|
3432
3432
|
},
|
|
3433
|
-
exit:
|
|
3433
|
+
exit: jo,
|
|
3434
3434
|
name: "list",
|
|
3435
|
-
tokenize:
|
|
3436
|
-
}, _o = {
|
|
3437
|
-
partial: !0,
|
|
3438
|
-
tokenize: jo
|
|
3435
|
+
tokenize: Mo
|
|
3439
3436
|
}, Ro = {
|
|
3440
3437
|
partial: !0,
|
|
3441
|
-
tokenize:
|
|
3438
|
+
tokenize: Ho
|
|
3439
|
+
}, Oo = {
|
|
3440
|
+
partial: !0,
|
|
3441
|
+
tokenize: Bo
|
|
3442
3442
|
};
|
|
3443
|
-
function
|
|
3443
|
+
function Mo(e, t, n) {
|
|
3444
3444
|
const r = this, i = r.events[r.events.length - 1];
|
|
3445
3445
|
let o = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, l = 0;
|
|
3446
3446
|
return a;
|
|
@@ -3464,7 +3464,7 @@ function Oo(e, t, n) {
|
|
|
3464
3464
|
We,
|
|
3465
3465
|
// Can’t be empty when interrupting.
|
|
3466
3466
|
r.interrupt ? n : f,
|
|
3467
|
-
e.attempt(
|
|
3467
|
+
e.attempt(Ro, p, c)
|
|
3468
3468
|
);
|
|
3469
3469
|
}
|
|
3470
3470
|
function f(h) {
|
|
@@ -3477,20 +3477,20 @@ function Oo(e, t, n) {
|
|
|
3477
3477
|
return r.containerState.size = o + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(h);
|
|
3478
3478
|
}
|
|
3479
3479
|
}
|
|
3480
|
-
function
|
|
3480
|
+
function No(e, t, n) {
|
|
3481
3481
|
const r = this;
|
|
3482
3482
|
return r.containerState._closeFlow = void 0, e.check(We, i, o);
|
|
3483
3483
|
function i(a) {
|
|
3484
3484
|
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, j(e, t, "listItemIndent", r.containerState.size + 1)(a);
|
|
3485
3485
|
}
|
|
3486
3486
|
function o(a) {
|
|
3487
|
-
return r.containerState.furtherBlankLines || !N(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, l(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(
|
|
3487
|
+
return r.containerState.furtherBlankLines || !N(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, l(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(Oo, t, l)(a));
|
|
3488
3488
|
}
|
|
3489
3489
|
function l(a) {
|
|
3490
3490
|
return r.containerState._closeFlow = !0, r.interrupt = void 0, j(e, e.attempt(Z, t, n), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
|
|
3491
3491
|
}
|
|
3492
3492
|
}
|
|
3493
|
-
function
|
|
3493
|
+
function Bo(e, t, n) {
|
|
3494
3494
|
const r = this;
|
|
3495
3495
|
return j(e, i, "listItemIndent", r.containerState.size + 1);
|
|
3496
3496
|
function i(o) {
|
|
@@ -3498,10 +3498,10 @@ function No(e, t, n) {
|
|
|
3498
3498
|
return l && l[1].type === "listItemIndent" && l[2].sliceSerialize(l[1], !0).length === r.containerState.size ? t(o) : n(o);
|
|
3499
3499
|
}
|
|
3500
3500
|
}
|
|
3501
|
-
function
|
|
3501
|
+
function jo(e) {
|
|
3502
3502
|
e.exit(this.containerState.type);
|
|
3503
3503
|
}
|
|
3504
|
-
function
|
|
3504
|
+
function Ho(e, t, n) {
|
|
3505
3505
|
const r = this;
|
|
3506
3506
|
return j(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
|
|
3507
3507
|
function i(o) {
|
|
@@ -3511,10 +3511,10 @@ function jo(e, t, n) {
|
|
|
3511
3511
|
}
|
|
3512
3512
|
const vt = {
|
|
3513
3513
|
name: "setextUnderline",
|
|
3514
|
-
resolveTo:
|
|
3515
|
-
tokenize:
|
|
3514
|
+
resolveTo: Uo,
|
|
3515
|
+
tokenize: $o
|
|
3516
3516
|
};
|
|
3517
|
-
function
|
|
3517
|
+
function Uo(e, t) {
|
|
3518
3518
|
let n = e.length, r, i, o;
|
|
3519
3519
|
for (; n--; )
|
|
3520
3520
|
if (e[n][0] === "enter") {
|
|
@@ -3538,7 +3538,7 @@ function Ho(e, t) {
|
|
|
3538
3538
|
...e[o][1].end
|
|
3539
3539
|
}) : e[r][1] = l, e.push(["exit", l, t]), e;
|
|
3540
3540
|
}
|
|
3541
|
-
function
|
|
3541
|
+
function $o(e, t, n) {
|
|
3542
3542
|
const r = this;
|
|
3543
3543
|
let i;
|
|
3544
3544
|
return o;
|
|
@@ -3562,15 +3562,15 @@ function Uo(e, t, n) {
|
|
|
3562
3562
|
}
|
|
3563
3563
|
}
|
|
3564
3564
|
const qo = {
|
|
3565
|
-
tokenize:
|
|
3565
|
+
tokenize: Vo
|
|
3566
3566
|
};
|
|
3567
|
-
function
|
|
3567
|
+
function Vo(e) {
|
|
3568
3568
|
const t = this, n = e.attempt(
|
|
3569
3569
|
// Try to parse a blank line.
|
|
3570
3570
|
We,
|
|
3571
3571
|
r,
|
|
3572
3572
|
// Try to parse initial flow (essentially, only code).
|
|
3573
|
-
e.attempt(this.parser.constructs.flowInitial, i, j(e, e.attempt(this.parser.constructs.flow, i, e.attempt(
|
|
3573
|
+
e.attempt(this.parser.constructs.flowInitial, i, j(e, e.attempt(this.parser.constructs.flow, i, e.attempt(Gl, i)), "linePrefix"))
|
|
3574
3574
|
);
|
|
3575
3575
|
return n;
|
|
3576
3576
|
function r(o) {
|
|
@@ -3588,12 +3588,12 @@ function $o(e) {
|
|
|
3588
3588
|
return e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), t.currentConstruct = void 0, n;
|
|
3589
3589
|
}
|
|
3590
3590
|
}
|
|
3591
|
-
const
|
|
3591
|
+
const Wo = {
|
|
3592
3592
|
resolveAll: Tr()
|
|
3593
|
-
},
|
|
3593
|
+
}, Qo = Ar("string"), Yo = Ar("text");
|
|
3594
3594
|
function Ar(e) {
|
|
3595
3595
|
return {
|
|
3596
|
-
resolveAll: Tr(e === "text" ?
|
|
3596
|
+
resolveAll: Tr(e === "text" ? Go : void 0),
|
|
3597
3597
|
tokenize: t
|
|
3598
3598
|
};
|
|
3599
3599
|
function t(n) {
|
|
@@ -3636,7 +3636,7 @@ function Tr(e) {
|
|
|
3636
3636
|
return e ? e(n, r) : n;
|
|
3637
3637
|
}
|
|
3638
3638
|
}
|
|
3639
|
-
function
|
|
3639
|
+
function Go(e, t) {
|
|
3640
3640
|
let n = 0;
|
|
3641
3641
|
for (; ++n <= e.length; )
|
|
3642
3642
|
if ((n === e.length || e[n][1].type === "lineEnding") && e[n - 1][1].type === "data") {
|
|
@@ -3678,7 +3678,7 @@ function Yo(e, t) {
|
|
|
3678
3678
|
}
|
|
3679
3679
|
return e;
|
|
3680
3680
|
}
|
|
3681
|
-
const
|
|
3681
|
+
const Xo = {
|
|
3682
3682
|
42: Z,
|
|
3683
3683
|
43: Z,
|
|
3684
3684
|
45: Z,
|
|
@@ -3693,45 +3693,45 @@ const Go = {
|
|
|
3693
3693
|
56: Z,
|
|
3694
3694
|
57: Z,
|
|
3695
3695
|
62: xr
|
|
3696
|
-
}, Xo = {
|
|
3697
|
-
91: Zl
|
|
3698
3696
|
}, Ko = {
|
|
3697
|
+
91: eo
|
|
3698
|
+
}, Jo = {
|
|
3699
3699
|
[-2]: dn,
|
|
3700
3700
|
[-1]: dn,
|
|
3701
3701
|
32: dn
|
|
3702
|
-
},
|
|
3703
|
-
35:
|
|
3702
|
+
}, Zo = {
|
|
3703
|
+
35: oo,
|
|
3704
3704
|
42: Ze,
|
|
3705
3705
|
45: [vt, Ze],
|
|
3706
|
-
60:
|
|
3706
|
+
60: co,
|
|
3707
3707
|
61: vt,
|
|
3708
3708
|
95: Ze,
|
|
3709
3709
|
96: Tt,
|
|
3710
3710
|
126: Tt
|
|
3711
|
-
},
|
|
3711
|
+
}, ea = {
|
|
3712
3712
|
38: wr,
|
|
3713
3713
|
92: br
|
|
3714
|
-
},
|
|
3714
|
+
}, na = {
|
|
3715
3715
|
[-5]: yn,
|
|
3716
3716
|
[-4]: yn,
|
|
3717
3717
|
[-3]: yn,
|
|
3718
|
-
33:
|
|
3718
|
+
33: vo,
|
|
3719
3719
|
38: wr,
|
|
3720
3720
|
42: Rn,
|
|
3721
|
-
60: [
|
|
3722
|
-
91:
|
|
3723
|
-
92: [
|
|
3721
|
+
60: [Ll, ko],
|
|
3722
|
+
91: zo,
|
|
3723
|
+
92: [io, br],
|
|
3724
3724
|
93: Gn,
|
|
3725
3725
|
95: Rn,
|
|
3726
|
-
96:
|
|
3727
|
-
}, na = {
|
|
3728
|
-
null: [Rn, Vo]
|
|
3726
|
+
96: $l
|
|
3729
3727
|
}, ta = {
|
|
3730
|
-
null: [
|
|
3728
|
+
null: [Rn, Wo]
|
|
3731
3729
|
}, ra = {
|
|
3730
|
+
null: [42, 95]
|
|
3731
|
+
}, ia = {
|
|
3732
3732
|
null: []
|
|
3733
|
-
},
|
|
3734
|
-
function
|
|
3733
|
+
}, la = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, attentionMarkers: ra, contentInitial: Ko, disable: ia, document: Xo, flow: Zo, flowInitial: Jo, insideSpan: ta, string: ea, text: na }, Symbol.toStringTag, { value: "Module" }));
|
|
3734
|
+
function oa(e, t, n) {
|
|
3735
3735
|
let r = {
|
|
3736
3736
|
_bufferIndex: -1,
|
|
3737
3737
|
_index: 0,
|
|
@@ -3768,10 +3768,10 @@ function la(e, t, n) {
|
|
|
3768
3768
|
return l = ie(l, P), E(), l[l.length - 1] !== null ? [] : (U(t, 0), s.events = un(o, s.events, s), s.events);
|
|
3769
3769
|
}
|
|
3770
3770
|
function p(P, v) {
|
|
3771
|
-
return
|
|
3771
|
+
return ua(h(P), v);
|
|
3772
3772
|
}
|
|
3773
3773
|
function h(P) {
|
|
3774
|
-
return
|
|
3774
|
+
return aa(l, P);
|
|
3775
3775
|
}
|
|
3776
3776
|
function d() {
|
|
3777
3777
|
const {
|
|
@@ -3894,7 +3894,7 @@ function la(e, t, n) {
|
|
|
3894
3894
|
r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
|
|
3895
3895
|
}
|
|
3896
3896
|
}
|
|
3897
|
-
function
|
|
3897
|
+
function aa(e, t) {
|
|
3898
3898
|
const n = t.start._index, r = t.start._bufferIndex, i = t.end._index, o = t.end._bufferIndex;
|
|
3899
3899
|
let l;
|
|
3900
3900
|
if (n === i)
|
|
@@ -3908,7 +3908,7 @@ function oa(e, t) {
|
|
|
3908
3908
|
}
|
|
3909
3909
|
return l;
|
|
3910
3910
|
}
|
|
3911
|
-
function
|
|
3911
|
+
function ua(e, t) {
|
|
3912
3912
|
let n = -1;
|
|
3913
3913
|
const r = [];
|
|
3914
3914
|
let i;
|
|
@@ -3948,35 +3948,35 @@ function aa(e, t) {
|
|
|
3948
3948
|
}
|
|
3949
3949
|
return r.join("");
|
|
3950
3950
|
}
|
|
3951
|
-
function
|
|
3951
|
+
function sa(e) {
|
|
3952
3952
|
const r = {
|
|
3953
3953
|
constructs: (
|
|
3954
3954
|
/** @type {FullNormalizedExtension} */
|
|
3955
|
-
yr([
|
|
3955
|
+
yr([la, ...(e || {}).extensions || []])
|
|
3956
3956
|
),
|
|
3957
|
-
content: i(
|
|
3957
|
+
content: i(Cl),
|
|
3958
3958
|
defined: [],
|
|
3959
|
-
document: i(
|
|
3959
|
+
document: i(Il),
|
|
3960
3960
|
flow: i(qo),
|
|
3961
3961
|
lazy: {},
|
|
3962
|
-
string: i(
|
|
3963
|
-
text: i(
|
|
3962
|
+
string: i(Qo),
|
|
3963
|
+
text: i(Yo)
|
|
3964
3964
|
};
|
|
3965
3965
|
return r;
|
|
3966
3966
|
function i(o) {
|
|
3967
3967
|
return l;
|
|
3968
3968
|
function l(a) {
|
|
3969
|
-
return
|
|
3969
|
+
return oa(r, o, a);
|
|
3970
3970
|
}
|
|
3971
3971
|
}
|
|
3972
3972
|
}
|
|
3973
|
-
function
|
|
3973
|
+
function ca(e) {
|
|
3974
3974
|
for (; !Sr(e); )
|
|
3975
3975
|
;
|
|
3976
3976
|
return e;
|
|
3977
3977
|
}
|
|
3978
3978
|
const Lt = /[\0\t\n\r]/g;
|
|
3979
|
-
function
|
|
3979
|
+
function fa() {
|
|
3980
3980
|
let e = 1, t = "", n = !0, r;
|
|
3981
3981
|
return i;
|
|
3982
3982
|
function i(o, l, a) {
|
|
@@ -4011,11 +4011,11 @@ function ca() {
|
|
|
4011
4011
|
return a && (r && u.push(-5), t && u.push(t), u.push(null)), u;
|
|
4012
4012
|
}
|
|
4013
4013
|
}
|
|
4014
|
-
const
|
|
4015
|
-
function
|
|
4016
|
-
return e.replace(
|
|
4014
|
+
const ha = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
|
|
4015
|
+
function pa(e) {
|
|
4016
|
+
return e.replace(ha, ma);
|
|
4017
4017
|
}
|
|
4018
|
-
function
|
|
4018
|
+
function ma(e, t, n) {
|
|
4019
4019
|
if (t)
|
|
4020
4020
|
return t;
|
|
4021
4021
|
if (n.charCodeAt(0) === 35) {
|
|
@@ -4025,10 +4025,10 @@ function pa(e, t, n) {
|
|
|
4025
4025
|
return Yn(n) || e;
|
|
4026
4026
|
}
|
|
4027
4027
|
const Pr = {}.hasOwnProperty;
|
|
4028
|
-
function
|
|
4029
|
-
return typeof t != "string" && (n = t, t = void 0),
|
|
4028
|
+
function ga(e, t, n) {
|
|
4029
|
+
return typeof t != "string" && (n = t, t = void 0), da(n)(ca(sa(n).document().write(fa()(e, t, !0))));
|
|
4030
4030
|
}
|
|
4031
|
-
function
|
|
4031
|
+
function da(e) {
|
|
4032
4032
|
const t = {
|
|
4033
4033
|
transforms: [],
|
|
4034
4034
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
@@ -4145,20 +4145,20 @@ function ga(e) {
|
|
|
4145
4145
|
resume: f,
|
|
4146
4146
|
data: n
|
|
4147
4147
|
}, B = [];
|
|
4148
|
-
let
|
|
4149
|
-
for (;
|
|
4150
|
-
if (b[
|
|
4151
|
-
if (b[
|
|
4152
|
-
B.push(
|
|
4148
|
+
let $ = -1;
|
|
4149
|
+
for (; ++$ < b.length; )
|
|
4150
|
+
if (b[$][1].type === "listOrdered" || b[$][1].type === "listUnordered")
|
|
4151
|
+
if (b[$][0] === "enter")
|
|
4152
|
+
B.push($);
|
|
4153
4153
|
else {
|
|
4154
4154
|
const se = B.pop();
|
|
4155
|
-
|
|
4155
|
+
$ = i(b, se, $);
|
|
4156
4156
|
}
|
|
4157
|
-
for (
|
|
4158
|
-
const se = t[b[
|
|
4159
|
-
Pr.call(se, b[
|
|
4160
|
-
sliceSerialize: b[
|
|
4161
|
-
}, R), b[
|
|
4157
|
+
for ($ = -1; ++$ < b.length; ) {
|
|
4158
|
+
const se = t[b[$][0]];
|
|
4159
|
+
Pr.call(se, b[$][1].type) && se[b[$][1].type].call(Object.assign({
|
|
4160
|
+
sliceSerialize: b[$][2].sliceSerialize
|
|
4161
|
+
}, R), b[$][1]);
|
|
4162
4162
|
}
|
|
4163
4163
|
if (R.tokenStack.length > 0) {
|
|
4164
4164
|
const se = R.tokenStack[R.tokenStack.length - 1];
|
|
@@ -4175,23 +4175,23 @@ function ga(e) {
|
|
|
4175
4175
|
column: 1,
|
|
4176
4176
|
offset: 0
|
|
4177
4177
|
})
|
|
4178
|
-
},
|
|
4179
|
-
A = t.transforms[
|
|
4178
|
+
}, $ = -1; ++$ < t.transforms.length; )
|
|
4179
|
+
A = t.transforms[$](A) || A;
|
|
4180
4180
|
return A;
|
|
4181
4181
|
}
|
|
4182
4182
|
function i(b, A, R) {
|
|
4183
|
-
let B = A - 1,
|
|
4183
|
+
let B = A - 1, $ = -1, se = !1, Se, ge, Oe, Me;
|
|
4184
4184
|
for (; ++B <= R; ) {
|
|
4185
4185
|
const ee = b[B];
|
|
4186
4186
|
switch (ee[1].type) {
|
|
4187
4187
|
case "listUnordered":
|
|
4188
4188
|
case "listOrdered":
|
|
4189
4189
|
case "blockQuote": {
|
|
4190
|
-
ee[0] === "enter" ?
|
|
4190
|
+
ee[0] === "enter" ? $++ : $--, Me = void 0;
|
|
4191
4191
|
break;
|
|
4192
4192
|
}
|
|
4193
4193
|
case "lineEndingBlank": {
|
|
4194
|
-
ee[0] === "enter" && (Se && !Me &&
|
|
4194
|
+
ee[0] === "enter" && (Se && !Me && !$ && !Oe && (Oe = B), Me = void 0);
|
|
4195
4195
|
break;
|
|
4196
4196
|
}
|
|
4197
4197
|
case "linePrefix":
|
|
@@ -4203,7 +4203,7 @@ function ga(e) {
|
|
|
4203
4203
|
default:
|
|
4204
4204
|
Me = void 0;
|
|
4205
4205
|
}
|
|
4206
|
-
if (
|
|
4206
|
+
if (!$ && ee[0] === "enter" && ee[1].type === "listItemPrefix" || $ === -1 && ee[0] === "exit" && (ee[1].type === "listUnordered" || ee[1].type === "listOrdered")) {
|
|
4207
4207
|
if (Se) {
|
|
4208
4208
|
let Pe = B;
|
|
4209
4209
|
for (ge = void 0; Pe--; ) {
|
|
@@ -4381,7 +4381,7 @@ function ga(e) {
|
|
|
4381
4381
|
}
|
|
4382
4382
|
function oe(b) {
|
|
4383
4383
|
const A = this.sliceSerialize(b), R = this.stack[this.stack.length - 2];
|
|
4384
|
-
R.label =
|
|
4384
|
+
R.label = pa(A), R.identifier = ce(A).toLowerCase();
|
|
4385
4385
|
}
|
|
4386
4386
|
function pe() {
|
|
4387
4387
|
const b = this.stack[this.stack.length - 1], A = this.resume(), R = this.stack[this.stack.length - 1];
|
|
@@ -4416,8 +4416,8 @@ function ga(e) {
|
|
|
4416
4416
|
const A = this.sliceSerialize(b), R = this.data.characterReferenceType;
|
|
4417
4417
|
let B;
|
|
4418
4418
|
R ? (B = kr(A, R === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : B = Yn(A);
|
|
4419
|
-
const
|
|
4420
|
-
|
|
4419
|
+
const $ = this.stack[this.stack.length - 1];
|
|
4420
|
+
$.value += B;
|
|
4421
4421
|
}
|
|
4422
4422
|
function Re(b) {
|
|
4423
4423
|
const A = this.stack.pop();
|
|
@@ -4555,10 +4555,10 @@ function vr(e, t) {
|
|
|
4555
4555
|
let n = -1;
|
|
4556
4556
|
for (; ++n < t.length; ) {
|
|
4557
4557
|
const r = t[n];
|
|
4558
|
-
Array.isArray(r) ? vr(e, r) :
|
|
4558
|
+
Array.isArray(r) ? vr(e, r) : ya(e, r);
|
|
4559
4559
|
}
|
|
4560
4560
|
}
|
|
4561
|
-
function
|
|
4561
|
+
function ya(e, t) {
|
|
4562
4562
|
let n;
|
|
4563
4563
|
for (n in t)
|
|
4564
4564
|
if (Pr.call(t, n))
|
|
@@ -4593,11 +4593,11 @@ function zt(e, t) {
|
|
|
4593
4593
|
end: t.end
|
|
4594
4594
|
}) + ") is still open");
|
|
4595
4595
|
}
|
|
4596
|
-
function
|
|
4596
|
+
function ka(e) {
|
|
4597
4597
|
const t = this;
|
|
4598
4598
|
t.parser = n;
|
|
4599
4599
|
function n(r) {
|
|
4600
|
-
return
|
|
4600
|
+
return ga(r, {
|
|
4601
4601
|
...t.data("settings"),
|
|
4602
4602
|
...e,
|
|
4603
4603
|
// Note: these options are not in the readme.
|
|
@@ -4608,7 +4608,7 @@ function ya(e) {
|
|
|
4608
4608
|
});
|
|
4609
4609
|
}
|
|
4610
4610
|
}
|
|
4611
|
-
function
|
|
4611
|
+
function xa(e, t) {
|
|
4612
4612
|
const n = {
|
|
4613
4613
|
type: "element",
|
|
4614
4614
|
tagName: "blockquote",
|
|
@@ -4617,12 +4617,12 @@ function ka(e, t) {
|
|
|
4617
4617
|
};
|
|
4618
4618
|
return e.patch(t, n), e.applyData(t, n);
|
|
4619
4619
|
}
|
|
4620
|
-
function
|
|
4620
|
+
function ba(e, t) {
|
|
4621
4621
|
const n = { type: "element", tagName: "br", properties: {}, children: [] };
|
|
4622
4622
|
return e.patch(t, n), [e.applyData(t, n), { type: "text", value: `
|
|
4623
4623
|
` }];
|
|
4624
4624
|
}
|
|
4625
|
-
function
|
|
4625
|
+
function wa(e, t) {
|
|
4626
4626
|
const n = t.value ? t.value + `
|
|
4627
4627
|
` : "", r = {};
|
|
4628
4628
|
t.lang && (r.className = ["language-" + t.lang]);
|
|
@@ -4634,7 +4634,7 @@ function ba(e, t) {
|
|
|
4634
4634
|
};
|
|
4635
4635
|
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;
|
|
4636
4636
|
}
|
|
4637
|
-
function
|
|
4637
|
+
function Sa(e, t) {
|
|
4638
4638
|
const n = {
|
|
4639
4639
|
type: "element",
|
|
4640
4640
|
tagName: "del",
|
|
@@ -4643,7 +4643,7 @@ function wa(e, t) {
|
|
|
4643
4643
|
};
|
|
4644
4644
|
return e.patch(t, n), e.applyData(t, n);
|
|
4645
4645
|
}
|
|
4646
|
-
function
|
|
4646
|
+
function Ca(e, t) {
|
|
4647
4647
|
const n = {
|
|
4648
4648
|
type: "element",
|
|
4649
4649
|
tagName: "em",
|
|
@@ -4652,7 +4652,7 @@ function Sa(e, t) {
|
|
|
4652
4652
|
};
|
|
4653
4653
|
return e.patch(t, n), e.applyData(t, n);
|
|
4654
4654
|
}
|
|
4655
|
-
function
|
|
4655
|
+
function Ea(e, t) {
|
|
4656
4656
|
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), i = _e(r.toLowerCase()), o = e.footnoteOrder.indexOf(r);
|
|
4657
4657
|
let l, a = e.footnoteCounts.get(r);
|
|
4658
4658
|
a === void 0 ? (a = 0, e.footnoteOrder.push(r), l = e.footnoteOrder.length) : l = o + 1, a += 1, e.footnoteCounts.set(r, a);
|
|
@@ -4676,7 +4676,7 @@ function Ca(e, t) {
|
|
|
4676
4676
|
};
|
|
4677
4677
|
return e.patch(t, s), e.applyData(t, s);
|
|
4678
4678
|
}
|
|
4679
|
-
function
|
|
4679
|
+
function Ia(e, t) {
|
|
4680
4680
|
const n = {
|
|
4681
4681
|
type: "element",
|
|
4682
4682
|
tagName: "h" + t.depth,
|
|
@@ -4685,7 +4685,7 @@ function Ea(e, t) {
|
|
|
4685
4685
|
};
|
|
4686
4686
|
return e.patch(t, n), e.applyData(t, n);
|
|
4687
4687
|
}
|
|
4688
|
-
function
|
|
4688
|
+
function Aa(e, t) {
|
|
4689
4689
|
if (e.options.allowDangerousHtml) {
|
|
4690
4690
|
const n = { type: "raw", value: t.value };
|
|
4691
4691
|
return e.patch(t, n), e.applyData(t, n);
|
|
@@ -4701,7 +4701,7 @@ function Lr(e, t) {
|
|
|
4701
4701
|
const l = i[i.length - 1];
|
|
4702
4702
|
return l && l.type === "text" ? l.value += r : i.push({ type: "text", value: r }), i;
|
|
4703
4703
|
}
|
|
4704
|
-
function
|
|
4704
|
+
function Ta(e, t) {
|
|
4705
4705
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
4706
4706
|
if (!r)
|
|
4707
4707
|
return Lr(e, t);
|
|
@@ -4710,13 +4710,13 @@ function Aa(e, t) {
|
|
|
4710
4710
|
const o = { type: "element", tagName: "img", properties: i, children: [] };
|
|
4711
4711
|
return e.patch(t, o), e.applyData(t, o);
|
|
4712
4712
|
}
|
|
4713
|
-
function
|
|
4713
|
+
function Pa(e, t) {
|
|
4714
4714
|
const n = { src: _e(t.url) };
|
|
4715
4715
|
t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
|
|
4716
4716
|
const r = { type: "element", tagName: "img", properties: n, children: [] };
|
|
4717
4717
|
return e.patch(t, r), e.applyData(t, r);
|
|
4718
4718
|
}
|
|
4719
|
-
function
|
|
4719
|
+
function va(e, t) {
|
|
4720
4720
|
const n = { type: "text", value: t.value.replace(/\r?\n|\r/g, " ") };
|
|
4721
4721
|
e.patch(t, n);
|
|
4722
4722
|
const r = {
|
|
@@ -4727,7 +4727,7 @@ function Pa(e, t) {
|
|
|
4727
4727
|
};
|
|
4728
4728
|
return e.patch(t, r), e.applyData(t, r);
|
|
4729
4729
|
}
|
|
4730
|
-
function
|
|
4730
|
+
function La(e, t) {
|
|
4731
4731
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
4732
4732
|
if (!r)
|
|
4733
4733
|
return Lr(e, t);
|
|
@@ -4741,7 +4741,7 @@ function va(e, t) {
|
|
|
4741
4741
|
};
|
|
4742
4742
|
return e.patch(t, o), e.applyData(t, o);
|
|
4743
4743
|
}
|
|
4744
|
-
function
|
|
4744
|
+
function za(e, t) {
|
|
4745
4745
|
const n = { href: _e(t.url) };
|
|
4746
4746
|
t.title !== null && t.title !== void 0 && (n.title = t.title);
|
|
4747
4747
|
const r = {
|
|
@@ -4752,8 +4752,8 @@ function La(e, t) {
|
|
|
4752
4752
|
};
|
|
4753
4753
|
return e.patch(t, r), e.applyData(t, r);
|
|
4754
4754
|
}
|
|
4755
|
-
function
|
|
4756
|
-
const r = e.all(t), i = n ?
|
|
4755
|
+
function Da(e, t, n) {
|
|
4756
|
+
const r = e.all(t), i = n ? Fa(n) : zr(t), o = {}, l = [];
|
|
4757
4757
|
if (typeof t.checked == "boolean") {
|
|
4758
4758
|
const f = r[0];
|
|
4759
4759
|
let c;
|
|
@@ -4776,7 +4776,7 @@ function za(e, t, n) {
|
|
|
4776
4776
|
const s = { type: "element", tagName: "li", properties: o, children: l };
|
|
4777
4777
|
return e.patch(t, s), e.applyData(t, s);
|
|
4778
4778
|
}
|
|
4779
|
-
function
|
|
4779
|
+
function Fa(e) {
|
|
4780
4780
|
let t = !1;
|
|
4781
4781
|
if (e.type === "list") {
|
|
4782
4782
|
t = e.spread || !1;
|
|
@@ -4791,7 +4791,7 @@ function zr(e) {
|
|
|
4791
4791
|
const t = e.spread;
|
|
4792
4792
|
return t ?? e.children.length > 1;
|
|
4793
4793
|
}
|
|
4794
|
-
function
|
|
4794
|
+
function _a(e, t) {
|
|
4795
4795
|
const n = {}, r = e.all(t);
|
|
4796
4796
|
let i = -1;
|
|
4797
4797
|
for (typeof t.start == "number" && t.start !== 1 && (n.start = t.start); ++i < r.length; ) {
|
|
@@ -4809,7 +4809,7 @@ function Fa(e, t) {
|
|
|
4809
4809
|
};
|
|
4810
4810
|
return e.patch(t, o), e.applyData(t, o);
|
|
4811
4811
|
}
|
|
4812
|
-
function
|
|
4812
|
+
function Ra(e, t) {
|
|
4813
4813
|
const n = {
|
|
4814
4814
|
type: "element",
|
|
4815
4815
|
tagName: "p",
|
|
@@ -4818,11 +4818,11 @@ function _a(e, t) {
|
|
|
4818
4818
|
};
|
|
4819
4819
|
return e.patch(t, n), e.applyData(t, n);
|
|
4820
4820
|
}
|
|
4821
|
-
function
|
|
4821
|
+
function Oa(e, t) {
|
|
4822
4822
|
const n = { type: "root", children: e.wrap(e.all(t)) };
|
|
4823
4823
|
return e.patch(t, n), e.applyData(t, n);
|
|
4824
4824
|
}
|
|
4825
|
-
function
|
|
4825
|
+
function Ma(e, t) {
|
|
4826
4826
|
const n = {
|
|
4827
4827
|
type: "element",
|
|
4828
4828
|
tagName: "strong",
|
|
@@ -4831,7 +4831,7 @@ function Oa(e, t) {
|
|
|
4831
4831
|
};
|
|
4832
4832
|
return e.patch(t, n), e.applyData(t, n);
|
|
4833
4833
|
}
|
|
4834
|
-
function
|
|
4834
|
+
function Na(e, t) {
|
|
4835
4835
|
const n = e.all(t), r = n.shift(), i = [];
|
|
4836
4836
|
if (r) {
|
|
4837
4837
|
const l = {
|
|
@@ -4848,7 +4848,7 @@ function Ma(e, t) {
|
|
|
4848
4848
|
tagName: "tbody",
|
|
4849
4849
|
properties: {},
|
|
4850
4850
|
children: e.wrap(n, !0)
|
|
4851
|
-
}, a =
|
|
4851
|
+
}, a = $n(t.children[1]), u = cr(t.children[t.children.length - 1]);
|
|
4852
4852
|
a && u && (l.position = { start: a, end: u }), i.push(l);
|
|
4853
4853
|
}
|
|
4854
4854
|
const o = {
|
|
@@ -4859,7 +4859,7 @@ function Ma(e, t) {
|
|
|
4859
4859
|
};
|
|
4860
4860
|
return e.patch(t, o), e.applyData(t, o);
|
|
4861
4861
|
}
|
|
4862
|
-
function
|
|
4862
|
+
function Ba(e, t, n) {
|
|
4863
4863
|
const r = n ? n.children : void 0, o = (r ? r.indexOf(t) : 1) === 0 ? "th" : "td", l = n && n.type === "table" ? n.align : void 0, a = l ? l.length : t.children.length;
|
|
4864
4864
|
let u = -1;
|
|
4865
4865
|
const s = [];
|
|
@@ -4877,7 +4877,7 @@ function Na(e, t, n) {
|
|
|
4877
4877
|
};
|
|
4878
4878
|
return e.patch(t, f), e.applyData(t, f);
|
|
4879
4879
|
}
|
|
4880
|
-
function
|
|
4880
|
+
function ja(e, t) {
|
|
4881
4881
|
const n = {
|
|
4882
4882
|
type: "element",
|
|
4883
4883
|
tagName: "td",
|
|
@@ -4888,7 +4888,7 @@ function Ba(e, t) {
|
|
|
4888
4888
|
return e.patch(t, n), e.applyData(t, n);
|
|
4889
4889
|
}
|
|
4890
4890
|
const Dt = 9, Ft = 32;
|
|
4891
|
-
function
|
|
4891
|
+
function Ha(e) {
|
|
4892
4892
|
const t = String(e), n = /\r?\n|\r/g;
|
|
4893
4893
|
let r = n.exec(t), i = 0;
|
|
4894
4894
|
const o = [];
|
|
@@ -4913,11 +4913,11 @@ function _t(e, t, n) {
|
|
|
4913
4913
|
}
|
|
4914
4914
|
return i > r ? e.slice(r, i) : "";
|
|
4915
4915
|
}
|
|
4916
|
-
function
|
|
4917
|
-
const n = { type: "text", value:
|
|
4916
|
+
function Ua(e, t) {
|
|
4917
|
+
const n = { type: "text", value: Ha(String(t.value)) };
|
|
4918
4918
|
return e.patch(t, n), e.applyData(t, n);
|
|
4919
4919
|
}
|
|
4920
|
-
function
|
|
4920
|
+
function $a(e, t) {
|
|
4921
4921
|
const n = {
|
|
4922
4922
|
type: "element",
|
|
4923
4923
|
tagName: "hr",
|
|
@@ -4927,30 +4927,30 @@ function Ua(e, t) {
|
|
|
4927
4927
|
return e.patch(t, n), e.applyData(t, n);
|
|
4928
4928
|
}
|
|
4929
4929
|
const qa = {
|
|
4930
|
-
blockquote:
|
|
4931
|
-
break:
|
|
4932
|
-
code:
|
|
4933
|
-
delete:
|
|
4934
|
-
emphasis:
|
|
4935
|
-
footnoteReference:
|
|
4936
|
-
heading:
|
|
4937
|
-
html:
|
|
4938
|
-
imageReference:
|
|
4939
|
-
image:
|
|
4940
|
-
inlineCode:
|
|
4941
|
-
linkReference:
|
|
4942
|
-
link:
|
|
4943
|
-
listItem:
|
|
4944
|
-
list:
|
|
4945
|
-
paragraph:
|
|
4930
|
+
blockquote: xa,
|
|
4931
|
+
break: ba,
|
|
4932
|
+
code: wa,
|
|
4933
|
+
delete: Sa,
|
|
4934
|
+
emphasis: Ca,
|
|
4935
|
+
footnoteReference: Ea,
|
|
4936
|
+
heading: Ia,
|
|
4937
|
+
html: Aa,
|
|
4938
|
+
imageReference: Ta,
|
|
4939
|
+
image: Pa,
|
|
4940
|
+
inlineCode: va,
|
|
4941
|
+
linkReference: La,
|
|
4942
|
+
link: za,
|
|
4943
|
+
listItem: Da,
|
|
4944
|
+
list: _a,
|
|
4945
|
+
paragraph: Ra,
|
|
4946
4946
|
// @ts-expect-error: root is different, but hard to type.
|
|
4947
|
-
root:
|
|
4948
|
-
strong:
|
|
4949
|
-
table:
|
|
4950
|
-
tableCell:
|
|
4951
|
-
tableRow:
|
|
4952
|
-
text:
|
|
4953
|
-
thematicBreak:
|
|
4947
|
+
root: Oa,
|
|
4948
|
+
strong: Ma,
|
|
4949
|
+
table: Na,
|
|
4950
|
+
tableCell: ja,
|
|
4951
|
+
tableRow: Ba,
|
|
4952
|
+
text: Ua,
|
|
4953
|
+
thematicBreak: $a,
|
|
4954
4954
|
toml: Ge,
|
|
4955
4955
|
yaml: Ge,
|
|
4956
4956
|
definition: Ge,
|
|
@@ -4958,7 +4958,7 @@ const qa = {
|
|
|
4958
4958
|
};
|
|
4959
4959
|
function Ge() {
|
|
4960
4960
|
}
|
|
4961
|
-
const Dr = -1, sn = 0, tn = 1, rn = 2, Xn = 3, Kn = 4, Jn = 5, Zn = 6, Fr = 7, _r = 8, Rt = typeof self == "object" ? self : globalThis,
|
|
4961
|
+
const Dr = -1, sn = 0, tn = 1, rn = 2, Xn = 3, Kn = 4, Jn = 5, Zn = 6, Fr = 7, _r = 8, Rt = typeof self == "object" ? self : globalThis, Va = (e, t) => {
|
|
4962
4962
|
const n = (i, o) => (e.set(o, i), i), r = (i) => {
|
|
4963
4963
|
if (e.has(i))
|
|
4964
4964
|
return e.get(i);
|
|
@@ -5009,11 +5009,11 @@ const Dr = -1, sn = 0, tn = 1, rn = 2, Xn = 3, Kn = 4, Jn = 5, Zn = 6, Fr = 7, _
|
|
|
5009
5009
|
return n(new Rt[o](l), i);
|
|
5010
5010
|
};
|
|
5011
5011
|
return r;
|
|
5012
|
-
}, Ot = (e) =>
|
|
5012
|
+
}, Ot = (e) => Va(/* @__PURE__ */ new Map(), e)(0), ve = "", { toString: Wa } = {}, { keys: Qa } = Object, je = (e) => {
|
|
5013
5013
|
const t = typeof e;
|
|
5014
5014
|
if (t !== "object" || !e)
|
|
5015
5015
|
return [sn, t];
|
|
5016
|
-
const n =
|
|
5016
|
+
const n = Wa.call(e).slice(8, -1);
|
|
5017
5017
|
switch (n) {
|
|
5018
5018
|
case "Array":
|
|
5019
5019
|
return [tn, ve];
|
|
@@ -5029,7 +5029,7 @@ const Dr = -1, sn = 0, tn = 1, rn = 2, Xn = 3, Kn = 4, Jn = 5, Zn = 6, Fr = 7, _
|
|
|
5029
5029
|
return [Zn, ve];
|
|
5030
5030
|
}
|
|
5031
5031
|
return n.includes("Array") ? [tn, n] : n.includes("Error") ? [Fr, n] : [rn, n];
|
|
5032
|
-
}, Xe = ([e, t]) => e === sn && (t === "function" || t === "symbol"),
|
|
5032
|
+
}, Xe = ([e, t]) => e === sn && (t === "function" || t === "symbol"), Ya = (e, t, n, r) => {
|
|
5033
5033
|
const i = (l, a) => {
|
|
5034
5034
|
const u = r.push(l) - 1;
|
|
5035
5035
|
return n.set(a, u), u;
|
|
@@ -5076,7 +5076,7 @@ const Dr = -1, sn = 0, tn = 1, rn = 2, Xn = 3, Kn = 4, Jn = 5, Zn = 6, Fr = 7, _
|
|
|
5076
5076
|
if (t && "toJSON" in l)
|
|
5077
5077
|
return o(l.toJSON());
|
|
5078
5078
|
const f = [], c = i([a, f], l);
|
|
5079
|
-
for (const p of
|
|
5079
|
+
for (const p of Qa(l))
|
|
5080
5080
|
(e || !Xe(je(l[p]))) && f.push([o(p), o(l[p])]);
|
|
5081
5081
|
return c;
|
|
5082
5082
|
}
|
|
@@ -5105,12 +5105,12 @@ const Dr = -1, sn = 0, tn = 1, rn = 2, Xn = 3, Kn = 4, Jn = 5, Zn = 6, Fr = 7, _
|
|
|
5105
5105
|
return o;
|
|
5106
5106
|
}, Mt = (e, { json: t, lossy: n } = {}) => {
|
|
5107
5107
|
const r = [];
|
|
5108
|
-
return
|
|
5108
|
+
return Ya(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
|
|
5109
5109
|
}, ln = typeof structuredClone == "function" ? (
|
|
5110
5110
|
/* c8 ignore start */
|
|
5111
5111
|
(e, t) => t && ("json" in t || "lossy" in t) ? Ot(Mt(e, t)) : structuredClone(e)
|
|
5112
5112
|
) : (e, t) => Ot(Mt(e, t));
|
|
5113
|
-
function
|
|
5113
|
+
function Ga(e, t) {
|
|
5114
5114
|
const n = [{ type: "text", value: "↩" }];
|
|
5115
5115
|
return t > 1 && n.push({
|
|
5116
5116
|
type: "element",
|
|
@@ -5119,11 +5119,11 @@ function Ya(e, t) {
|
|
|
5119
5119
|
children: [{ type: "text", value: String(t) }]
|
|
5120
5120
|
}), n;
|
|
5121
5121
|
}
|
|
5122
|
-
function
|
|
5122
|
+
function Xa(e, t) {
|
|
5123
5123
|
return "Back to reference " + (e + 1) + (t > 1 ? "-" + t : "");
|
|
5124
5124
|
}
|
|
5125
|
-
function
|
|
5126
|
-
const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", n = e.options.footnoteBackContent ||
|
|
5125
|
+
function Ka(e) {
|
|
5126
|
+
const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", n = e.options.footnoteBackContent || Ga, r = e.options.footnoteBackLabel || Xa, i = e.options.footnoteLabel || "Footnotes", o = e.options.footnoteLabelTagName || "h2", l = e.options.footnoteLabelProperties || {
|
|
5127
5127
|
className: ["sr-only"]
|
|
5128
5128
|
}, a = [];
|
|
5129
5129
|
let u = -1;
|
|
@@ -5210,17 +5210,17 @@ const cn = (
|
|
|
5210
5210
|
*/
|
|
5211
5211
|
function(e) {
|
|
5212
5212
|
if (e == null)
|
|
5213
|
-
return
|
|
5213
|
+
return nu;
|
|
5214
5214
|
if (typeof e == "function")
|
|
5215
5215
|
return fn(e);
|
|
5216
5216
|
if (typeof e == "object")
|
|
5217
|
-
return Array.isArray(e) ?
|
|
5217
|
+
return Array.isArray(e) ? Ja(e) : Za(e);
|
|
5218
5218
|
if (typeof e == "string")
|
|
5219
|
-
return
|
|
5219
|
+
return eu(e);
|
|
5220
5220
|
throw new Error("Expected function, string, or object as test");
|
|
5221
5221
|
}
|
|
5222
5222
|
);
|
|
5223
|
-
function
|
|
5223
|
+
function Ja(e) {
|
|
5224
5224
|
const t = [];
|
|
5225
5225
|
let n = -1;
|
|
5226
5226
|
for (; ++n < e.length; )
|
|
@@ -5233,7 +5233,7 @@ function Ka(e) {
|
|
|
5233
5233
|
return !1;
|
|
5234
5234
|
}
|
|
5235
5235
|
}
|
|
5236
|
-
function
|
|
5236
|
+
function Za(e) {
|
|
5237
5237
|
const t = (
|
|
5238
5238
|
/** @type {Record<string, unknown>} */
|
|
5239
5239
|
e
|
|
@@ -5251,7 +5251,7 @@ function Ja(e) {
|
|
|
5251
5251
|
return !0;
|
|
5252
5252
|
}
|
|
5253
5253
|
}
|
|
5254
|
-
function
|
|
5254
|
+
function eu(e) {
|
|
5255
5255
|
return fn(t);
|
|
5256
5256
|
function t(n) {
|
|
5257
5257
|
return n && n.type === e;
|
|
@@ -5260,7 +5260,7 @@ function Za(e) {
|
|
|
5260
5260
|
function fn(e) {
|
|
5261
5261
|
return t;
|
|
5262
5262
|
function t(n, r, i) {
|
|
5263
|
-
return !!(
|
|
5263
|
+
return !!(tu(n) && e.call(
|
|
5264
5264
|
this,
|
|
5265
5265
|
n,
|
|
5266
5266
|
typeof r == "number" ? r : void 0,
|
|
@@ -5268,13 +5268,13 @@ function fn(e) {
|
|
|
5268
5268
|
));
|
|
5269
5269
|
}
|
|
5270
5270
|
}
|
|
5271
|
-
function
|
|
5271
|
+
function nu() {
|
|
5272
5272
|
return !0;
|
|
5273
5273
|
}
|
|
5274
|
-
function
|
|
5274
|
+
function tu(e) {
|
|
5275
5275
|
return e !== null && typeof e == "object" && "type" in e;
|
|
5276
5276
|
}
|
|
5277
|
-
const Rr = [],
|
|
5277
|
+
const Rr = [], ru = !0, On = !1, iu = "skip";
|
|
5278
5278
|
function Or(e, t, n, r) {
|
|
5279
5279
|
let i;
|
|
5280
5280
|
typeof t == "function" && typeof n != "function" ? (r = n, n = t) : i = t;
|
|
@@ -5300,14 +5300,14 @@ function Or(e, t, n, r) {
|
|
|
5300
5300
|
return p;
|
|
5301
5301
|
function p() {
|
|
5302
5302
|
let h = Rr, d, x, E;
|
|
5303
|
-
if ((!t || o(u, s, f[f.length - 1] || void 0)) && (h =
|
|
5303
|
+
if ((!t || o(u, s, f[f.length - 1] || void 0)) && (h = lu(n(u, f)), h[0] === On))
|
|
5304
5304
|
return h;
|
|
5305
5305
|
if ("children" in u && u.children) {
|
|
5306
5306
|
const y = (
|
|
5307
5307
|
/** @type {UnistParent} */
|
|
5308
5308
|
u
|
|
5309
5309
|
);
|
|
5310
|
-
if (y.children && h[0] !==
|
|
5310
|
+
if (y.children && h[0] !== iu)
|
|
5311
5311
|
for (x = (r ? y.children.length : -1) + l, E = f.concat(y); x > -1 && x < y.children.length; ) {
|
|
5312
5312
|
const S = y.children[x];
|
|
5313
5313
|
if (d = a(S, x, E)(), d[0] === On)
|
|
@@ -5319,8 +5319,8 @@ function Or(e, t, n, r) {
|
|
|
5319
5319
|
}
|
|
5320
5320
|
}
|
|
5321
5321
|
}
|
|
5322
|
-
function
|
|
5323
|
-
return Array.isArray(e) ? e : typeof e == "number" ? [
|
|
5322
|
+
function lu(e) {
|
|
5323
|
+
return Array.isArray(e) ? e : typeof e == "number" ? [ru, e] : e == null ? Rr : [e];
|
|
5324
5324
|
}
|
|
5325
5325
|
function et(e, t, n, r) {
|
|
5326
5326
|
let i, o, l;
|
|
@@ -5330,11 +5330,11 @@ function et(e, t, n, r) {
|
|
|
5330
5330
|
return l(u, c, f);
|
|
5331
5331
|
}
|
|
5332
5332
|
}
|
|
5333
|
-
const Mn = {}.hasOwnProperty,
|
|
5334
|
-
function
|
|
5335
|
-
const n = t ||
|
|
5333
|
+
const Mn = {}.hasOwnProperty, ou = {};
|
|
5334
|
+
function au(e, t) {
|
|
5335
|
+
const n = t || ou, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), l = { ...qa, ...n.handlers }, a = {
|
|
5336
5336
|
all: s,
|
|
5337
|
-
applyData:
|
|
5337
|
+
applyData: su,
|
|
5338
5338
|
definitionById: r,
|
|
5339
5339
|
footnoteById: i,
|
|
5340
5340
|
footnoteCounts: o,
|
|
@@ -5342,8 +5342,8 @@ function ou(e, t) {
|
|
|
5342
5342
|
handlers: l,
|
|
5343
5343
|
one: u,
|
|
5344
5344
|
options: n,
|
|
5345
|
-
patch:
|
|
5346
|
-
wrap:
|
|
5345
|
+
patch: uu,
|
|
5346
|
+
wrap: fu
|
|
5347
5347
|
};
|
|
5348
5348
|
return et(e, function(f) {
|
|
5349
5349
|
if (f.type === "definition" || f.type === "footnoteDefinition") {
|
|
@@ -5362,7 +5362,7 @@ function ou(e, t) {
|
|
|
5362
5362
|
}
|
|
5363
5363
|
return ln(f);
|
|
5364
5364
|
}
|
|
5365
|
-
return (a.options.unknownHandler ||
|
|
5365
|
+
return (a.options.unknownHandler || cu)(a, f, c);
|
|
5366
5366
|
}
|
|
5367
5367
|
function s(f) {
|
|
5368
5368
|
const c = [];
|
|
@@ -5383,10 +5383,10 @@ function ou(e, t) {
|
|
|
5383
5383
|
return c;
|
|
5384
5384
|
}
|
|
5385
5385
|
}
|
|
5386
|
-
function au(e, t) {
|
|
5387
|
-
e.position && (t.position = Wi(e));
|
|
5388
|
-
}
|
|
5389
5386
|
function uu(e, t) {
|
|
5387
|
+
e.position && (t.position = Qi(e));
|
|
5388
|
+
}
|
|
5389
|
+
function su(e, t) {
|
|
5390
5390
|
let n = t;
|
|
5391
5391
|
if (e && e.data) {
|
|
5392
5392
|
const r = e.data.hName, i = e.data.hChildren, o = e.data.hProperties;
|
|
@@ -5401,7 +5401,7 @@ function uu(e, t) {
|
|
|
5401
5401
|
}
|
|
5402
5402
|
return n;
|
|
5403
5403
|
}
|
|
5404
|
-
function
|
|
5404
|
+
function cu(e, t) {
|
|
5405
5405
|
const n = t.data || {}, r = "value" in t && !(Mn.call(n, "hProperties") || Mn.call(n, "hChildren")) ? { type: "text", value: t.value } : {
|
|
5406
5406
|
type: "element",
|
|
5407
5407
|
tagName: "div",
|
|
@@ -5410,7 +5410,7 @@ function su(e, t) {
|
|
|
5410
5410
|
};
|
|
5411
5411
|
return e.patch(t, r), e.applyData(t, r);
|
|
5412
5412
|
}
|
|
5413
|
-
function
|
|
5413
|
+
function fu(e, t) {
|
|
5414
5414
|
const n = [];
|
|
5415
5415
|
let r = -1;
|
|
5416
5416
|
for (t && n.push({ type: "text", value: `
|
|
@@ -5427,11 +5427,11 @@ function Nt(e) {
|
|
|
5427
5427
|
return e.slice(t);
|
|
5428
5428
|
}
|
|
5429
5429
|
function Bt(e, t) {
|
|
5430
|
-
const n =
|
|
5430
|
+
const n = au(e, t), r = n.one(e, void 0), i = Ka(n), o = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
|
|
5431
5431
|
return i && o.children.push({ type: "text", value: `
|
|
5432
5432
|
` }, i), o;
|
|
5433
5433
|
}
|
|
5434
|
-
function
|
|
5434
|
+
function hu(e, t) {
|
|
5435
5435
|
return e && "run" in e ? async function(n, r) {
|
|
5436
5436
|
const i = (
|
|
5437
5437
|
/** @type {HastRoot} */
|
|
@@ -5450,7 +5450,7 @@ function jt(e) {
|
|
|
5450
5450
|
throw e;
|
|
5451
5451
|
}
|
|
5452
5452
|
var kn, Ht;
|
|
5453
|
-
function
|
|
5453
|
+
function pu() {
|
|
5454
5454
|
if (Ht) return kn;
|
|
5455
5455
|
Ht = 1;
|
|
5456
5456
|
var e = Object.prototype.hasOwnProperty, t = Object.prototype.toString, n = Object.defineProperty, r = Object.getOwnPropertyDescriptor, i = function(s) {
|
|
@@ -5489,15 +5489,15 @@ function hu() {
|
|
|
5489
5489
|
return x;
|
|
5490
5490
|
}, kn;
|
|
5491
5491
|
}
|
|
5492
|
-
var
|
|
5493
|
-
const xn = /* @__PURE__ */ nr(
|
|
5492
|
+
var mu = /* @__PURE__ */ pu();
|
|
5493
|
+
const xn = /* @__PURE__ */ nr(mu);
|
|
5494
5494
|
function Nn(e) {
|
|
5495
5495
|
if (typeof e != "object" || e === null)
|
|
5496
5496
|
return !1;
|
|
5497
5497
|
const t = Object.getPrototypeOf(e);
|
|
5498
5498
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
5499
5499
|
}
|
|
5500
|
-
function
|
|
5500
|
+
function gu() {
|
|
5501
5501
|
const e = [], t = { run: n, use: r };
|
|
5502
5502
|
return t;
|
|
5503
5503
|
function n(...i) {
|
|
@@ -5515,7 +5515,7 @@ function mu() {
|
|
|
5515
5515
|
}
|
|
5516
5516
|
for (; ++c < i.length; )
|
|
5517
5517
|
(s[c] === null || s[c] === void 0) && (s[c] = i[c]);
|
|
5518
|
-
i = s, f ?
|
|
5518
|
+
i = s, f ? du(f, a)(...s) : l(null, ...s);
|
|
5519
5519
|
}
|
|
5520
5520
|
}
|
|
5521
5521
|
function r(i) {
|
|
@@ -5526,7 +5526,7 @@ function mu() {
|
|
|
5526
5526
|
return e.push(i), t;
|
|
5527
5527
|
}
|
|
5528
5528
|
}
|
|
5529
|
-
function
|
|
5529
|
+
function du(e, t) {
|
|
5530
5530
|
let n;
|
|
5531
5531
|
return r;
|
|
5532
5532
|
function r(...l) {
|
|
@@ -5553,8 +5553,8 @@ function gu(e, t) {
|
|
|
5553
5553
|
i(null, l);
|
|
5554
5554
|
}
|
|
5555
5555
|
}
|
|
5556
|
-
const fe = { basename:
|
|
5557
|
-
function
|
|
5556
|
+
const fe = { basename: yu, dirname: ku, extname: xu, join: bu, sep: "/" };
|
|
5557
|
+
function yu(e, t) {
|
|
5558
5558
|
if (t !== void 0 && typeof t != "string")
|
|
5559
5559
|
throw new TypeError('"ext" argument must be a string');
|
|
5560
5560
|
Qe(e);
|
|
@@ -5582,7 +5582,7 @@ function du(e, t) {
|
|
|
5582
5582
|
l < 0 && (o = !0, l = i + 1), a > -1 && (e.codePointAt(i) === t.codePointAt(a--) ? a < 0 && (r = i) : (a = -1, r = l));
|
|
5583
5583
|
return n === r ? r = l : r < 0 && (r = e.length), e.slice(n, r);
|
|
5584
5584
|
}
|
|
5585
|
-
function
|
|
5585
|
+
function ku(e) {
|
|
5586
5586
|
if (Qe(e), e.length === 0)
|
|
5587
5587
|
return ".";
|
|
5588
5588
|
let t = -1, n = e.length, r;
|
|
@@ -5595,7 +5595,7 @@ function yu(e) {
|
|
|
5595
5595
|
} else r || (r = !0);
|
|
5596
5596
|
return t < 0 ? e.codePointAt(0) === 47 ? "/" : "." : t === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, t);
|
|
5597
5597
|
}
|
|
5598
|
-
function
|
|
5598
|
+
function xu(e) {
|
|
5599
5599
|
Qe(e);
|
|
5600
5600
|
let t = e.length, n = -1, r = 0, i = -1, o = 0, l;
|
|
5601
5601
|
for (; t--; ) {
|
|
@@ -5613,19 +5613,19 @@ function ku(e) {
|
|
|
5613
5613
|
o === 0 || // The (right-most) trimmed path component is exactly `..`.
|
|
5614
5614
|
o === 1 && i === n - 1 && i === r + 1 ? "" : e.slice(i, n);
|
|
5615
5615
|
}
|
|
5616
|
-
function
|
|
5616
|
+
function bu(...e) {
|
|
5617
5617
|
let t = -1, n;
|
|
5618
5618
|
for (; ++t < e.length; )
|
|
5619
5619
|
Qe(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
|
|
5620
|
-
return n === void 0 ? "." :
|
|
5620
|
+
return n === void 0 ? "." : wu(n);
|
|
5621
5621
|
}
|
|
5622
|
-
function
|
|
5622
|
+
function wu(e) {
|
|
5623
5623
|
Qe(e);
|
|
5624
5624
|
const t = e.codePointAt(0) === 47;
|
|
5625
|
-
let n =
|
|
5625
|
+
let n = Su(e, !t);
|
|
5626
5626
|
return n.length === 0 && !t && (n = "."), n.length > 0 && e.codePointAt(e.length - 1) === 47 && (n += "/"), t ? "/" + n : n;
|
|
5627
5627
|
}
|
|
5628
|
-
function
|
|
5628
|
+
function Su(e, t) {
|
|
5629
5629
|
let n = "", r = 0, i = -1, o = 0, l = -1, a, u;
|
|
5630
5630
|
for (; ++l <= e.length; ) {
|
|
5631
5631
|
if (l < e.length)
|
|
@@ -5662,15 +5662,15 @@ function Qe(e) {
|
|
|
5662
5662
|
"Path must be a string. Received " + JSON.stringify(e)
|
|
5663
5663
|
);
|
|
5664
5664
|
}
|
|
5665
|
-
const
|
|
5666
|
-
function
|
|
5665
|
+
const Cu = { cwd: Eu };
|
|
5666
|
+
function Eu() {
|
|
5667
5667
|
return "/";
|
|
5668
5668
|
}
|
|
5669
5669
|
function Bn(e) {
|
|
5670
5670
|
return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
|
|
5671
5671
|
e.auth === void 0);
|
|
5672
5672
|
}
|
|
5673
|
-
function
|
|
5673
|
+
function Iu(e) {
|
|
5674
5674
|
if (typeof e == "string")
|
|
5675
5675
|
e = new URL(e);
|
|
5676
5676
|
else if (!Bn(e)) {
|
|
@@ -5683,9 +5683,9 @@ function Eu(e) {
|
|
|
5683
5683
|
const t = new TypeError("The URL must be of scheme file");
|
|
5684
5684
|
throw t.code = "ERR_INVALID_URL_SCHEME", t;
|
|
5685
5685
|
}
|
|
5686
|
-
return
|
|
5686
|
+
return Au(e);
|
|
5687
5687
|
}
|
|
5688
|
-
function
|
|
5688
|
+
function Au(e) {
|
|
5689
5689
|
if (e.hostname !== "") {
|
|
5690
5690
|
const r = new TypeError(
|
|
5691
5691
|
'File URL host must be "localhost" or empty on darwin'
|
|
@@ -5742,7 +5742,7 @@ class Mr {
|
|
|
5742
5742
|
*/
|
|
5743
5743
|
constructor(t) {
|
|
5744
5744
|
let n;
|
|
5745
|
-
t ? Bn(t) ? n = { path: t } : typeof t == "string" ||
|
|
5745
|
+
t ? Bn(t) ? n = { path: t } : typeof t == "string" || Tu(t) ? n = { value: t } : n = t : n = {}, this.cwd = "cwd" in n ? "" : Cu.cwd(), this.data = {}, this.history = [], this.messages = [];
|
|
5746
5746
|
let r = -1;
|
|
5747
5747
|
for (; ++r < bn.length; ) {
|
|
5748
5748
|
const o = bn[r];
|
|
@@ -5850,7 +5850,7 @@ class Mr {
|
|
|
5850
5850
|
* Nothing.
|
|
5851
5851
|
*/
|
|
5852
5852
|
set path(t) {
|
|
5853
|
-
Bn(t) && (t =
|
|
5853
|
+
Bn(t) && (t = Iu(t)), Sn(t, "path"), this.path !== t && this.history.push(t);
|
|
5854
5854
|
}
|
|
5855
5855
|
/**
|
|
5856
5856
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -6101,10 +6101,10 @@ function Ut(e, t) {
|
|
|
6101
6101
|
if (!e)
|
|
6102
6102
|
throw new Error("Setting `" + t + "` requires `path` to be set too");
|
|
6103
6103
|
}
|
|
6104
|
-
function
|
|
6104
|
+
function Tu(e) {
|
|
6105
6105
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
6106
6106
|
}
|
|
6107
|
-
const
|
|
6107
|
+
const Pu = (
|
|
6108
6108
|
/**
|
|
6109
6109
|
* @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
|
|
6110
6110
|
*/
|
|
@@ -6125,13 +6125,13 @@ const Tu = (
|
|
|
6125
6125
|
};
|
|
6126
6126
|
return Object.setPrototypeOf(o, r), o;
|
|
6127
6127
|
}
|
|
6128
|
-
),
|
|
6129
|
-
class nt extends
|
|
6128
|
+
), vu = {}.hasOwnProperty;
|
|
6129
|
+
class nt extends Pu {
|
|
6130
6130
|
/**
|
|
6131
6131
|
* Create a processor.
|
|
6132
6132
|
*/
|
|
6133
6133
|
constructor() {
|
|
6134
|
-
super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers =
|
|
6134
|
+
super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers = gu();
|
|
6135
6135
|
}
|
|
6136
6136
|
/**
|
|
6137
6137
|
* Copy a processor.
|
|
@@ -6216,7 +6216,7 @@ class nt extends Tu {
|
|
|
6216
6216
|
* the entire dataset when getting without key.
|
|
6217
6217
|
*/
|
|
6218
6218
|
data(t, n) {
|
|
6219
|
-
return typeof t == "string" ? arguments.length === 2 ? (In("data", this.frozen), this.namespace[t] = n, this) :
|
|
6219
|
+
return typeof t == "string" ? arguments.length === 2 ? (In("data", this.frozen), this.namespace[t] = n, this) : vu.call(this.namespace, t) && this.namespace[t] || void 0 : t ? (In("data", this.frozen), this.namespace = t, this) : this.namespace;
|
|
6220
6220
|
}
|
|
6221
6221
|
/**
|
|
6222
6222
|
* Freeze a processor.
|
|
@@ -6331,7 +6331,7 @@ class nt extends Tu {
|
|
|
6331
6331
|
/** @type {unknown} */
|
|
6332
6332
|
c
|
|
6333
6333
|
), d = r.stringify(h, p);
|
|
6334
|
-
|
|
6334
|
+
Du(d) ? p.value = d : p.result = d, s(
|
|
6335
6335
|
f,
|
|
6336
6336
|
/** @type {VFileWithOutput<CompileResult>} */
|
|
6337
6337
|
p
|
|
@@ -6375,7 +6375,7 @@ class nt extends Tu {
|
|
|
6375
6375
|
*/
|
|
6376
6376
|
processSync(t) {
|
|
6377
6377
|
let n = !1, r;
|
|
6378
|
-
return this.freeze(), Cn("processSync", this.parser || this.Parser), En("processSync", this.compiler || this.Compiler), this.process(t, i),
|
|
6378
|
+
return this.freeze(), Cn("processSync", this.parser || this.Parser), En("processSync", this.compiler || this.Compiler), this.process(t, i), qt("processSync", "process", n), r;
|
|
6379
6379
|
function i(o, l) {
|
|
6380
6380
|
n = !0, jt(o), r = l;
|
|
6381
6381
|
}
|
|
@@ -6419,7 +6419,7 @@ class nt extends Tu {
|
|
|
6419
6419
|
* transformed tree.
|
|
6420
6420
|
*/
|
|
6421
6421
|
run(t, n, r) {
|
|
6422
|
-
|
|
6422
|
+
$t(t), this.freeze();
|
|
6423
6423
|
const i = this.transformers;
|
|
6424
6424
|
return !r && typeof n == "function" && (r = n, n = void 0), r ? o(void 0, r) : new Promise(o);
|
|
6425
6425
|
function o(l, a) {
|
|
@@ -6453,7 +6453,7 @@ class nt extends Tu {
|
|
|
6453
6453
|
*/
|
|
6454
6454
|
runSync(t, n) {
|
|
6455
6455
|
let r = !1, i;
|
|
6456
|
-
return this.run(t, n, o),
|
|
6456
|
+
return this.run(t, n, o), qt("runSync", "run", r), i;
|
|
6457
6457
|
function o(l, a) {
|
|
6458
6458
|
jt(l), i = a, r = !0;
|
|
6459
6459
|
}
|
|
@@ -6490,7 +6490,7 @@ class nt extends Tu {
|
|
|
6490
6490
|
stringify(t, n) {
|
|
6491
6491
|
this.freeze();
|
|
6492
6492
|
const r = Ke(n), i = this.compiler || this.Compiler;
|
|
6493
|
-
return En("stringify", i),
|
|
6493
|
+
return En("stringify", i), $t(t), i(t, r);
|
|
6494
6494
|
}
|
|
6495
6495
|
/**
|
|
6496
6496
|
* Configure the processor to use a plugin, a list of usable values, or a
|
|
@@ -6607,7 +6607,7 @@ class nt extends Tu {
|
|
|
6607
6607
|
}
|
|
6608
6608
|
}
|
|
6609
6609
|
}
|
|
6610
|
-
const
|
|
6610
|
+
const Lu = new nt().freeze();
|
|
6611
6611
|
function Cn(e, t) {
|
|
6612
6612
|
if (typeof t != "function")
|
|
6613
6613
|
throw new TypeError("Cannot `" + e + "` without `parser`");
|
|
@@ -6622,29 +6622,29 @@ function In(e, t) {
|
|
|
6622
6622
|
"Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
|
|
6623
6623
|
);
|
|
6624
6624
|
}
|
|
6625
|
-
function
|
|
6625
|
+
function $t(e) {
|
|
6626
6626
|
if (!Nn(e) || typeof e.type != "string")
|
|
6627
6627
|
throw new TypeError("Expected node, got `" + e + "`");
|
|
6628
6628
|
}
|
|
6629
|
-
function
|
|
6629
|
+
function qt(e, t, n) {
|
|
6630
6630
|
if (!n)
|
|
6631
6631
|
throw new Error(
|
|
6632
6632
|
"`" + e + "` finished async. Use `" + t + "` instead"
|
|
6633
6633
|
);
|
|
6634
6634
|
}
|
|
6635
6635
|
function Ke(e) {
|
|
6636
|
-
return
|
|
6637
|
-
}
|
|
6638
|
-
function Lu(e) {
|
|
6639
|
-
return !!(e && typeof e == "object" && "message" in e && "messages" in e);
|
|
6636
|
+
return zu(e) ? e : new Mr(e);
|
|
6640
6637
|
}
|
|
6641
6638
|
function zu(e) {
|
|
6642
|
-
return typeof e == "
|
|
6639
|
+
return !!(e && typeof e == "object" && "message" in e && "messages" in e);
|
|
6643
6640
|
}
|
|
6644
6641
|
function Du(e) {
|
|
6642
|
+
return typeof e == "string" || Fu(e);
|
|
6643
|
+
}
|
|
6644
|
+
function Fu(e) {
|
|
6645
6645
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
6646
6646
|
}
|
|
6647
|
-
const Vt = [], Wt = { allowDangerousHtml: !0 },
|
|
6647
|
+
const Vt = [], Wt = { allowDangerousHtml: !0 }, _u = /^(https?|ircs?|mailto|xmpp)$/i, Ru = [
|
|
6648
6648
|
{ from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
|
|
6649
6649
|
{ from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
|
|
6650
6650
|
{
|
|
@@ -6677,10 +6677,10 @@ const Vt = [], Wt = { allowDangerousHtml: !0 }, Fu = /^(https?|ircs?|mailto|xmpp
|
|
|
6677
6677
|
{ from: "transformImageUri", id: "#add-urltransform", to: "urlTransform" },
|
|
6678
6678
|
{ from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
|
|
6679
6679
|
];
|
|
6680
|
-
function
|
|
6681
|
-
const t = e.allowedElements, n = e.allowElement, r = e.children || "", i = e.className, o = e.components, l = e.disallowedElements, a = e.rehypePlugins || Vt, u = e.remarkPlugins || Vt, s = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...Wt } : Wt, f = e.skipHtml, c = e.unwrapDisallowed, p = e.urlTransform ||
|
|
6680
|
+
function Ou(e) {
|
|
6681
|
+
const t = e.allowedElements, n = e.allowElement, r = e.children || "", i = e.className, o = e.components, l = e.disallowedElements, a = e.rehypePlugins || Vt, u = e.remarkPlugins || Vt, s = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...Wt } : Wt, f = e.skipHtml, c = e.unwrapDisallowed, p = e.urlTransform || Mu, h = Lu().use(ka).use(u).use(hu, s).use(a), d = new Mr();
|
|
6682
6682
|
typeof r == "string" && (d.value = r);
|
|
6683
|
-
for (const S of
|
|
6683
|
+
for (const S of Ru)
|
|
6684
6684
|
;
|
|
6685
6685
|
const x = h.parse(d);
|
|
6686
6686
|
let E = h.runSync(x, d);
|
|
@@ -6693,7 +6693,7 @@ function Ru(e) {
|
|
|
6693
6693
|
/** @type {Array<ElementContent>} */
|
|
6694
6694
|
E.type === "root" ? E.children : [E]
|
|
6695
6695
|
)
|
|
6696
|
-
}), et(E, y),
|
|
6696
|
+
}), et(E, y), Zi(E, {
|
|
6697
6697
|
Fragment: er,
|
|
6698
6698
|
// @ts-expect-error
|
|
6699
6699
|
// React components are allowed to return numbers,
|
|
@@ -6723,13 +6723,13 @@ function Ru(e) {
|
|
|
6723
6723
|
}
|
|
6724
6724
|
}
|
|
6725
6725
|
}
|
|
6726
|
-
function
|
|
6726
|
+
function Mu(e) {
|
|
6727
6727
|
const t = e.indexOf(":"), n = e.indexOf("?"), r = e.indexOf("#"), i = e.indexOf("/");
|
|
6728
6728
|
return (
|
|
6729
6729
|
// If there is no protocol, it’s relative.
|
|
6730
6730
|
t === -1 || // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.
|
|
6731
6731
|
i !== -1 && t > i || n !== -1 && t > n || r !== -1 && t > r || // It is a protocol, it should be allowed.
|
|
6732
|
-
|
|
6732
|
+
_u.test(e.slice(0, t)) ? e : ""
|
|
6733
6733
|
);
|
|
6734
6734
|
}
|
|
6735
6735
|
function Qt(e, t) {
|
|
@@ -6741,13 +6741,13 @@ function Qt(e, t) {
|
|
|
6741
6741
|
r++, i = n.indexOf(t, i + t.length);
|
|
6742
6742
|
return r;
|
|
6743
6743
|
}
|
|
6744
|
-
function
|
|
6744
|
+
function Nu(e) {
|
|
6745
6745
|
if (typeof e != "string")
|
|
6746
6746
|
throw new TypeError("Expected a string");
|
|
6747
6747
|
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
6748
6748
|
}
|
|
6749
|
-
function
|
|
6750
|
-
const i = cn(n.ignore || []), o =
|
|
6749
|
+
function Bu(e, t, n) {
|
|
6750
|
+
const i = cn(n.ignore || []), o = ju(t);
|
|
6751
6751
|
let l = -1;
|
|
6752
6752
|
for (; ++l < o.length; )
|
|
6753
6753
|
Or(e, "text", a);
|
|
@@ -6790,7 +6790,7 @@ function Nu(e, t, n) {
|
|
|
6790
6790
|
return y ? (d < s.value.length && S.push({ type: "text", value: s.value.slice(d) }), c.children.splice(E, 1, ...S)) : S = [s], E + S.length;
|
|
6791
6791
|
}
|
|
6792
6792
|
}
|
|
6793
|
-
function
|
|
6793
|
+
function ju(e) {
|
|
6794
6794
|
const t = [];
|
|
6795
6795
|
if (!Array.isArray(e))
|
|
6796
6796
|
throw new TypeError("Expected find and replace tuple or list of tuples");
|
|
@@ -6798,33 +6798,33 @@ function Bu(e) {
|
|
|
6798
6798
|
let r = -1;
|
|
6799
6799
|
for (; ++r < n.length; ) {
|
|
6800
6800
|
const i = n[r];
|
|
6801
|
-
t.push([
|
|
6801
|
+
t.push([Hu(i[0]), Uu(i[1])]);
|
|
6802
6802
|
}
|
|
6803
6803
|
return t;
|
|
6804
6804
|
}
|
|
6805
|
-
function ju(e) {
|
|
6806
|
-
return typeof e == "string" ? new RegExp(Mu(e), "g") : e;
|
|
6807
|
-
}
|
|
6808
6805
|
function Hu(e) {
|
|
6806
|
+
return typeof e == "string" ? new RegExp(Nu(e), "g") : e;
|
|
6807
|
+
}
|
|
6808
|
+
function Uu(e) {
|
|
6809
6809
|
return typeof e == "function" ? e : function() {
|
|
6810
6810
|
return e;
|
|
6811
6811
|
};
|
|
6812
6812
|
}
|
|
6813
6813
|
const An = "phrasing", Tn = ["autolink", "link", "image", "label"];
|
|
6814
|
-
function
|
|
6814
|
+
function $u() {
|
|
6815
6815
|
return {
|
|
6816
|
-
transforms: [
|
|
6816
|
+
transforms: [Xu],
|
|
6817
6817
|
enter: {
|
|
6818
|
-
literalAutolink:
|
|
6818
|
+
literalAutolink: Vu,
|
|
6819
6819
|
literalAutolinkEmail: Pn,
|
|
6820
6820
|
literalAutolinkHttp: Pn,
|
|
6821
6821
|
literalAutolinkWww: Pn
|
|
6822
6822
|
},
|
|
6823
6823
|
exit: {
|
|
6824
|
-
literalAutolink:
|
|
6825
|
-
literalAutolinkEmail:
|
|
6826
|
-
literalAutolinkHttp:
|
|
6827
|
-
literalAutolinkWww:
|
|
6824
|
+
literalAutolink: Gu,
|
|
6825
|
+
literalAutolinkEmail: Yu,
|
|
6826
|
+
literalAutolinkHttp: Wu,
|
|
6827
|
+
literalAutolinkWww: Qu
|
|
6828
6828
|
}
|
|
6829
6829
|
};
|
|
6830
6830
|
}
|
|
@@ -6855,41 +6855,41 @@ function qu() {
|
|
|
6855
6855
|
]
|
|
6856
6856
|
};
|
|
6857
6857
|
}
|
|
6858
|
-
function
|
|
6858
|
+
function Vu(e) {
|
|
6859
6859
|
this.enter({ type: "link", title: null, url: "", children: [] }, e);
|
|
6860
6860
|
}
|
|
6861
6861
|
function Pn(e) {
|
|
6862
6862
|
this.config.enter.autolinkProtocol.call(this, e);
|
|
6863
6863
|
}
|
|
6864
|
-
function
|
|
6864
|
+
function Wu(e) {
|
|
6865
6865
|
this.config.exit.autolinkProtocol.call(this, e);
|
|
6866
6866
|
}
|
|
6867
|
-
function
|
|
6867
|
+
function Qu(e) {
|
|
6868
6868
|
this.config.exit.data.call(this, e);
|
|
6869
6869
|
const t = this.stack[this.stack.length - 1];
|
|
6870
6870
|
t.url = "http://" + this.sliceSerialize(e);
|
|
6871
6871
|
}
|
|
6872
|
-
function
|
|
6872
|
+
function Yu(e) {
|
|
6873
6873
|
this.config.exit.autolinkEmail.call(this, e);
|
|
6874
6874
|
}
|
|
6875
|
-
function
|
|
6875
|
+
function Gu(e) {
|
|
6876
6876
|
this.exit(e);
|
|
6877
6877
|
}
|
|
6878
|
-
function
|
|
6879
|
-
|
|
6878
|
+
function Xu(e) {
|
|
6879
|
+
Bu(
|
|
6880
6880
|
e,
|
|
6881
6881
|
[
|
|
6882
|
-
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,
|
|
6883
|
-
[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"),
|
|
6882
|
+
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, Ku],
|
|
6883
|
+
[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"), Ju]
|
|
6884
6884
|
],
|
|
6885
6885
|
{ ignore: ["link", "linkReference"] }
|
|
6886
6886
|
);
|
|
6887
6887
|
}
|
|
6888
|
-
function
|
|
6888
|
+
function Ku(e, t, n, r, i) {
|
|
6889
6889
|
let o = "";
|
|
6890
|
-
if (!Nr(i) || (/^w/i.test(t) && (n = t + n, t = "", o = "http://"), !
|
|
6890
|
+
if (!Nr(i) || (/^w/i.test(t) && (n = t + n, t = "", o = "http://"), !Zu(n)))
|
|
6891
6891
|
return !1;
|
|
6892
|
-
const l =
|
|
6892
|
+
const l = es(n + r);
|
|
6893
6893
|
if (!l[0]) return !1;
|
|
6894
6894
|
const a = {
|
|
6895
6895
|
type: "link",
|
|
@@ -6899,7 +6899,7 @@ function Xu(e, t, n, r, i) {
|
|
|
6899
6899
|
};
|
|
6900
6900
|
return l[1] ? [a, { type: "text", value: l[1] }] : a;
|
|
6901
6901
|
}
|
|
6902
|
-
function
|
|
6902
|
+
function Ju(e, t, n, r) {
|
|
6903
6903
|
return (
|
|
6904
6904
|
// Not an expected previous character.
|
|
6905
6905
|
!Nr(r, !0) || // Label ends in not allowed character.
|
|
@@ -6911,11 +6911,11 @@ function Ku(e, t, n, r) {
|
|
|
6911
6911
|
}
|
|
6912
6912
|
);
|
|
6913
6913
|
}
|
|
6914
|
-
function
|
|
6914
|
+
function Zu(e) {
|
|
6915
6915
|
const t = e.split(".");
|
|
6916
6916
|
return !(t.length < 2 || t[t.length - 1] && (/_/.test(t[t.length - 1]) || !/[a-zA-Z\d]/.test(t[t.length - 1])) || t[t.length - 2] && (/_/.test(t[t.length - 2]) || !/[a-zA-Z\d]/.test(t[t.length - 2])));
|
|
6917
6917
|
}
|
|
6918
|
-
function
|
|
6918
|
+
function es(e) {
|
|
6919
6919
|
const t = /[!"&'),.:;<>?\]}]+$/.exec(e);
|
|
6920
6920
|
if (!t)
|
|
6921
6921
|
return [e, void 0];
|
|
@@ -6932,61 +6932,61 @@ function Nr(e, t) {
|
|
|
6932
6932
|
return (e.index === 0 || Ee(n) || an(n)) && // If it’s an email, the previous character should not be a slash.
|
|
6933
6933
|
(!t || n !== 47);
|
|
6934
6934
|
}
|
|
6935
|
-
Br.peek =
|
|
6936
|
-
function
|
|
6935
|
+
Br.peek = fs;
|
|
6936
|
+
function ns() {
|
|
6937
6937
|
return {
|
|
6938
6938
|
enter: {
|
|
6939
|
-
gfmFootnoteDefinition:
|
|
6940
|
-
gfmFootnoteDefinitionLabelString: rs,
|
|
6941
|
-
gfmFootnoteCall: os,
|
|
6942
|
-
gfmFootnoteCallString: as
|
|
6943
|
-
},
|
|
6944
|
-
exit: {
|
|
6945
|
-
gfmFootnoteDefinition: ls,
|
|
6939
|
+
gfmFootnoteDefinition: rs,
|
|
6946
6940
|
gfmFootnoteDefinitionLabelString: is,
|
|
6947
|
-
gfmFootnoteCall:
|
|
6941
|
+
gfmFootnoteCall: as,
|
|
6948
6942
|
gfmFootnoteCallString: us
|
|
6943
|
+
},
|
|
6944
|
+
exit: {
|
|
6945
|
+
gfmFootnoteDefinition: os,
|
|
6946
|
+
gfmFootnoteDefinitionLabelString: ls,
|
|
6947
|
+
gfmFootnoteCall: cs,
|
|
6948
|
+
gfmFootnoteCallString: ss
|
|
6949
6949
|
}
|
|
6950
6950
|
};
|
|
6951
6951
|
}
|
|
6952
|
-
function
|
|
6952
|
+
function ts() {
|
|
6953
6953
|
return {
|
|
6954
6954
|
// This is on by default already.
|
|
6955
6955
|
unsafe: [{ character: "[", inConstruct: ["phrasing", "label", "reference"] }],
|
|
6956
|
-
handlers: { footnoteDefinition:
|
|
6956
|
+
handlers: { footnoteDefinition: hs, footnoteReference: Br }
|
|
6957
6957
|
};
|
|
6958
6958
|
}
|
|
6959
|
-
function
|
|
6959
|
+
function rs(e) {
|
|
6960
6960
|
this.enter(
|
|
6961
6961
|
{ type: "footnoteDefinition", identifier: "", label: "", children: [] },
|
|
6962
6962
|
e
|
|
6963
6963
|
);
|
|
6964
6964
|
}
|
|
6965
|
-
function
|
|
6965
|
+
function is() {
|
|
6966
6966
|
this.buffer();
|
|
6967
6967
|
}
|
|
6968
|
-
function
|
|
6968
|
+
function ls(e) {
|
|
6969
6969
|
const t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
6970
6970
|
n.label = t, n.identifier = ce(
|
|
6971
6971
|
this.sliceSerialize(e)
|
|
6972
6972
|
).toLowerCase();
|
|
6973
6973
|
}
|
|
6974
|
-
function
|
|
6974
|
+
function os(e) {
|
|
6975
6975
|
this.exit(e);
|
|
6976
6976
|
}
|
|
6977
|
-
function
|
|
6977
|
+
function as(e) {
|
|
6978
6978
|
this.enter({ type: "footnoteReference", identifier: "", label: "" }, e);
|
|
6979
6979
|
}
|
|
6980
|
-
function
|
|
6980
|
+
function us() {
|
|
6981
6981
|
this.buffer();
|
|
6982
6982
|
}
|
|
6983
|
-
function
|
|
6983
|
+
function ss(e) {
|
|
6984
6984
|
const t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
6985
6985
|
n.label = t, n.identifier = ce(
|
|
6986
6986
|
this.sliceSerialize(e)
|
|
6987
6987
|
).toLowerCase();
|
|
6988
6988
|
}
|
|
6989
|
-
function
|
|
6989
|
+
function cs(e) {
|
|
6990
6990
|
this.exit(e);
|
|
6991
6991
|
}
|
|
6992
6992
|
function Br(e, t, n, r) {
|
|
@@ -7001,10 +7001,10 @@ function Br(e, t, n, r) {
|
|
|
7001
7001
|
})
|
|
7002
7002
|
), a(), l(), o += i.move("]"), o;
|
|
7003
7003
|
}
|
|
7004
|
-
function
|
|
7004
|
+
function fs() {
|
|
7005
7005
|
return "[";
|
|
7006
7006
|
}
|
|
7007
|
-
function
|
|
7007
|
+
function hs(e, t, n, r) {
|
|
7008
7008
|
const i = n.createTracker(r);
|
|
7009
7009
|
let o = i.move("[^");
|
|
7010
7010
|
const l = n.enter("footnoteDefinition"), a = n.enter("label");
|
|
@@ -7017,13 +7017,13 @@ function fs(e, t, n, r) {
|
|
|
7017
7017
|
), a(), o += i.move(
|
|
7018
7018
|
"]:" + (e.children && e.children.length > 0 ? " " : "")
|
|
7019
7019
|
), i.shift(4), o += i.move(
|
|
7020
|
-
n.indentLines(n.containerFlow(e, i.current()),
|
|
7020
|
+
n.indentLines(n.containerFlow(e, i.current()), ps)
|
|
7021
7021
|
), l(), o;
|
|
7022
7022
|
}
|
|
7023
|
-
function
|
|
7023
|
+
function ps(e, t, n) {
|
|
7024
7024
|
return t === 0 ? e : (n ? "" : " ") + e;
|
|
7025
7025
|
}
|
|
7026
|
-
const
|
|
7026
|
+
const ms = [
|
|
7027
7027
|
"autolink",
|
|
7028
7028
|
"destinationLiteral",
|
|
7029
7029
|
"destinationRaw",
|
|
@@ -7031,30 +7031,30 @@ const ps = [
|
|
|
7031
7031
|
"titleQuote",
|
|
7032
7032
|
"titleApostrophe"
|
|
7033
7033
|
];
|
|
7034
|
-
jr.peek =
|
|
7035
|
-
function
|
|
7034
|
+
jr.peek = xs;
|
|
7035
|
+
function gs() {
|
|
7036
7036
|
return {
|
|
7037
7037
|
canContainEols: ["delete"],
|
|
7038
|
-
enter: { strikethrough:
|
|
7039
|
-
exit: { strikethrough:
|
|
7038
|
+
enter: { strikethrough: ys },
|
|
7039
|
+
exit: { strikethrough: ks }
|
|
7040
7040
|
};
|
|
7041
7041
|
}
|
|
7042
|
-
function
|
|
7042
|
+
function ds() {
|
|
7043
7043
|
return {
|
|
7044
7044
|
unsafe: [
|
|
7045
7045
|
{
|
|
7046
7046
|
character: "~",
|
|
7047
7047
|
inConstruct: "phrasing",
|
|
7048
|
-
notInConstruct:
|
|
7048
|
+
notInConstruct: ms
|
|
7049
7049
|
}
|
|
7050
7050
|
],
|
|
7051
7051
|
handlers: { delete: jr }
|
|
7052
7052
|
};
|
|
7053
7053
|
}
|
|
7054
|
-
function
|
|
7054
|
+
function ys(e) {
|
|
7055
7055
|
this.enter({ type: "delete", children: [] }, e);
|
|
7056
7056
|
}
|
|
7057
|
-
function
|
|
7057
|
+
function ks(e) {
|
|
7058
7058
|
this.exit(e);
|
|
7059
7059
|
}
|
|
7060
7060
|
function jr(e, t, n, r) {
|
|
@@ -7066,20 +7066,20 @@ function jr(e, t, n, r) {
|
|
|
7066
7066
|
after: "~"
|
|
7067
7067
|
}), l += i.move("~~"), o(), l;
|
|
7068
7068
|
}
|
|
7069
|
-
function
|
|
7069
|
+
function xs() {
|
|
7070
7070
|
return "~";
|
|
7071
7071
|
}
|
|
7072
|
-
function
|
|
7072
|
+
function bs(e) {
|
|
7073
7073
|
return e.length;
|
|
7074
7074
|
}
|
|
7075
|
-
function
|
|
7076
|
-
const n = t, r = (n.align || []).concat(), i = n.stringLength ||
|
|
7075
|
+
function ws(e, t) {
|
|
7076
|
+
const n = t, r = (n.align || []).concat(), i = n.stringLength || bs, o = [], l = [], a = [], u = [];
|
|
7077
7077
|
let s = 0, f = -1;
|
|
7078
7078
|
for (; ++f < e.length; ) {
|
|
7079
7079
|
const x = [], E = [];
|
|
7080
7080
|
let y = -1;
|
|
7081
7081
|
for (e[f].length > s && (s = e[f].length); ++y < e[f].length; ) {
|
|
7082
|
-
const S =
|
|
7082
|
+
const S = Ss(e[f][y]);
|
|
7083
7083
|
if (n.alignDelimiters !== !1) {
|
|
7084
7084
|
const C = i(S);
|
|
7085
7085
|
E[y] = C, (u[y] === void 0 || C > u[y]) && (u[y] = C);
|
|
@@ -7134,26 +7134,26 @@ function bs(e, t) {
|
|
|
7134
7134
|
return d.join(`
|
|
7135
7135
|
`);
|
|
7136
7136
|
}
|
|
7137
|
-
function
|
|
7137
|
+
function Ss(e) {
|
|
7138
7138
|
return e == null ? "" : String(e);
|
|
7139
7139
|
}
|
|
7140
7140
|
function Yt(e) {
|
|
7141
7141
|
const t = typeof e == "string" ? e.codePointAt(0) : 0;
|
|
7142
7142
|
return t === 67 || t === 99 ? 99 : t === 76 || t === 108 ? 108 : t === 82 || t === 114 ? 114 : 0;
|
|
7143
7143
|
}
|
|
7144
|
-
function
|
|
7144
|
+
function Cs(e, t, n, r) {
|
|
7145
7145
|
const i = n.enter("blockquote"), o = n.createTracker(r);
|
|
7146
7146
|
o.move("> "), o.shift(2);
|
|
7147
7147
|
const l = n.indentLines(
|
|
7148
7148
|
n.containerFlow(e, o.current()),
|
|
7149
|
-
|
|
7149
|
+
Es
|
|
7150
7150
|
);
|
|
7151
7151
|
return i(), l;
|
|
7152
7152
|
}
|
|
7153
|
-
function
|
|
7153
|
+
function Es(e, t, n) {
|
|
7154
7154
|
return ">" + (n ? "" : " ") + e;
|
|
7155
7155
|
}
|
|
7156
|
-
function
|
|
7156
|
+
function Is(e, t) {
|
|
7157
7157
|
return Gt(e, t.inConstruct, !0) && !Gt(e, t.notInConstruct, !1);
|
|
7158
7158
|
}
|
|
7159
7159
|
function Gt(e, t, n) {
|
|
@@ -7169,12 +7169,12 @@ function Xt(e, t, n, r) {
|
|
|
7169
7169
|
let i = -1;
|
|
7170
7170
|
for (; ++i < n.unsafe.length; )
|
|
7171
7171
|
if (n.unsafe[i].character === `
|
|
7172
|
-
` &&
|
|
7172
|
+
` && Is(n.stack, n.unsafe[i]))
|
|
7173
7173
|
return /[ \t]/.test(r.before) ? "" : " ";
|
|
7174
7174
|
return `\\
|
|
7175
7175
|
`;
|
|
7176
7176
|
}
|
|
7177
|
-
function
|
|
7177
|
+
function As(e, t) {
|
|
7178
7178
|
const n = String(e);
|
|
7179
7179
|
let r = n.indexOf(t), i = r, o = 0, l = 0;
|
|
7180
7180
|
if (typeof t != "string")
|
|
@@ -7183,13 +7183,13 @@ function Is(e, t) {
|
|
|
7183
7183
|
r === i ? ++o > l && (l = o) : o = 1, i = r + t.length, r = n.indexOf(t, i);
|
|
7184
7184
|
return l;
|
|
7185
7185
|
}
|
|
7186
|
-
function
|
|
7186
|
+
function Ts(e, t) {
|
|
7187
7187
|
return !!(t.options.fences === !1 && e.value && // If there’s no info…
|
|
7188
7188
|
!e.lang && // And there’s a non-whitespace character…
|
|
7189
7189
|
/[^ \r\n]/.test(e.value) && // And the value doesn’t start or end in a blank…
|
|
7190
7190
|
!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value));
|
|
7191
7191
|
}
|
|
7192
|
-
function
|
|
7192
|
+
function Ps(e) {
|
|
7193
7193
|
const t = e.options.fence || "`";
|
|
7194
7194
|
if (t !== "`" && t !== "~")
|
|
7195
7195
|
throw new Error(
|
|
@@ -7197,13 +7197,13 @@ function Ts(e) {
|
|
|
7197
7197
|
);
|
|
7198
7198
|
return t;
|
|
7199
7199
|
}
|
|
7200
|
-
function
|
|
7201
|
-
const i =
|
|
7202
|
-
if (
|
|
7203
|
-
const c = n.enter("codeIndented"), p = n.indentLines(o,
|
|
7200
|
+
function vs(e, t, n, r) {
|
|
7201
|
+
const i = Ps(n), o = e.value || "", l = i === "`" ? "GraveAccent" : "Tilde";
|
|
7202
|
+
if (Ts(e, n)) {
|
|
7203
|
+
const c = n.enter("codeIndented"), p = n.indentLines(o, Ls);
|
|
7204
7204
|
return c(), p;
|
|
7205
7205
|
}
|
|
7206
|
-
const a = n.createTracker(r), u = i.repeat(Math.max(
|
|
7206
|
+
const a = n.createTracker(r), u = i.repeat(Math.max(As(o, i) + 1, 3)), s = n.enter("codeFenced");
|
|
7207
7207
|
let f = a.move(u);
|
|
7208
7208
|
if (e.lang) {
|
|
7209
7209
|
const c = n.enter(`codeFencedLang${l}`);
|
|
@@ -7232,7 +7232,7 @@ function Ps(e, t, n, r) {
|
|
|
7232
7232
|
`), o && (f += a.move(o + `
|
|
7233
7233
|
`)), f += a.move(u), s(), f;
|
|
7234
7234
|
}
|
|
7235
|
-
function
|
|
7235
|
+
function Ls(e, t, n) {
|
|
7236
7236
|
return (n ? "" : " ") + e;
|
|
7237
7237
|
}
|
|
7238
7238
|
function tt(e) {
|
|
@@ -7243,7 +7243,7 @@ function tt(e) {
|
|
|
7243
7243
|
);
|
|
7244
7244
|
return t;
|
|
7245
7245
|
}
|
|
7246
|
-
function
|
|
7246
|
+
function zs(e, t, n, r) {
|
|
7247
7247
|
const i = tt(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.enter("definition");
|
|
7248
7248
|
let a = n.enter("label");
|
|
7249
7249
|
const u = n.createTracker(r);
|
|
@@ -7273,7 +7273,7 @@ function Ls(e, t, n, r) {
|
|
|
7273
7273
|
})
|
|
7274
7274
|
), s += u.move(i), a()), l(), s;
|
|
7275
7275
|
}
|
|
7276
|
-
function
|
|
7276
|
+
function Ds(e) {
|
|
7277
7277
|
const t = e.options.emphasis || "*";
|
|
7278
7278
|
if (t !== "*" && t !== "_")
|
|
7279
7279
|
throw new Error(
|
|
@@ -7281,7 +7281,7 @@ function zs(e) {
|
|
|
7281
7281
|
);
|
|
7282
7282
|
return t;
|
|
7283
7283
|
}
|
|
7284
|
-
function
|
|
7284
|
+
function qe(e) {
|
|
7285
7285
|
return "&#x" + e.toString(16).toUpperCase() + ";";
|
|
7286
7286
|
}
|
|
7287
7287
|
function on(e, t, n) {
|
|
@@ -7317,9 +7317,9 @@ function on(e, t, n) {
|
|
|
7317
7317
|
{ inside: !1, outside: !1 }
|
|
7318
7318
|
);
|
|
7319
7319
|
}
|
|
7320
|
-
Hr.peek =
|
|
7320
|
+
Hr.peek = Fs;
|
|
7321
7321
|
function Hr(e, t, n, r) {
|
|
7322
|
-
const i =
|
|
7322
|
+
const i = Ds(n), o = n.enter("emphasis"), l = n.createTracker(r), a = l.move(i);
|
|
7323
7323
|
let u = l.move(
|
|
7324
7324
|
n.containerPhrasing(e, {
|
|
7325
7325
|
after: i,
|
|
@@ -7332,28 +7332,28 @@ function Hr(e, t, n, r) {
|
|
|
7332
7332
|
s,
|
|
7333
7333
|
i
|
|
7334
7334
|
);
|
|
7335
|
-
f.inside && (u =
|
|
7335
|
+
f.inside && (u = qe(s) + u.slice(1));
|
|
7336
7336
|
const c = u.charCodeAt(u.length - 1), p = on(r.after.charCodeAt(0), c, i);
|
|
7337
|
-
p.inside && (u = u.slice(0, -1) +
|
|
7337
|
+
p.inside && (u = u.slice(0, -1) + qe(c));
|
|
7338
7338
|
const h = l.move(i);
|
|
7339
7339
|
return o(), n.attentionEncodeSurroundingInfo = {
|
|
7340
7340
|
after: p.outside,
|
|
7341
7341
|
before: f.outside
|
|
7342
7342
|
}, a + u + h;
|
|
7343
7343
|
}
|
|
7344
|
-
function
|
|
7344
|
+
function Fs(e, t, n) {
|
|
7345
7345
|
return n.options.emphasis || "*";
|
|
7346
7346
|
}
|
|
7347
|
-
function
|
|
7347
|
+
function _s(e, t) {
|
|
7348
7348
|
let n = !1;
|
|
7349
7349
|
return et(e, function(r) {
|
|
7350
7350
|
if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
|
|
7351
7351
|
return n = !0, On;
|
|
7352
7352
|
}), !!((!e.depth || e.depth < 3) && Qn(e) && (t.options.setext || n));
|
|
7353
7353
|
}
|
|
7354
|
-
function
|
|
7354
|
+
function Rs(e, t, n, r) {
|
|
7355
7355
|
const i = Math.max(Math.min(6, e.depth || 1), 1), o = n.createTracker(r);
|
|
7356
|
-
if (
|
|
7356
|
+
if (_s(e, n)) {
|
|
7357
7357
|
const f = n.enter("headingSetext"), c = n.enter("phrasing"), p = n.containerPhrasing(e, {
|
|
7358
7358
|
...o.current(),
|
|
7359
7359
|
before: `
|
|
@@ -7378,17 +7378,17 @@ function _s(e, t, n, r) {
|
|
|
7378
7378
|
`,
|
|
7379
7379
|
...o.current()
|
|
7380
7380
|
});
|
|
7381
|
-
return /^[\t ]/.test(s) && (s =
|
|
7381
|
+
return /^[\t ]/.test(s) && (s = qe(s.charCodeAt(0)) + s.slice(1)), s = s ? l + " " + s : l, n.options.closeAtx && (s += " " + l), u(), a(), s;
|
|
7382
7382
|
}
|
|
7383
|
-
Ur.peek =
|
|
7383
|
+
Ur.peek = Os;
|
|
7384
7384
|
function Ur(e) {
|
|
7385
7385
|
return e.value || "";
|
|
7386
7386
|
}
|
|
7387
|
-
function
|
|
7387
|
+
function Os() {
|
|
7388
7388
|
return "<";
|
|
7389
7389
|
}
|
|
7390
|
-
|
|
7391
|
-
function
|
|
7390
|
+
$r.peek = Ms;
|
|
7391
|
+
function $r(e, t, n, r) {
|
|
7392
7392
|
const i = tt(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.enter("image");
|
|
7393
7393
|
let a = n.enter("label");
|
|
7394
7394
|
const u = n.createTracker(r);
|
|
@@ -7413,11 +7413,11 @@ function qr(e, t, n, r) {
|
|
|
7413
7413
|
})
|
|
7414
7414
|
), s += u.move(i), a()), s += u.move(")"), l(), s;
|
|
7415
7415
|
}
|
|
7416
|
-
function
|
|
7416
|
+
function Ms() {
|
|
7417
7417
|
return "!";
|
|
7418
7418
|
}
|
|
7419
|
-
|
|
7420
|
-
function
|
|
7419
|
+
qr.peek = Ns;
|
|
7420
|
+
function qr(e, t, n, r) {
|
|
7421
7421
|
const i = e.referenceType, o = n.enter("imageReference");
|
|
7422
7422
|
let l = n.enter("label");
|
|
7423
7423
|
const a = n.createTracker(r);
|
|
@@ -7437,10 +7437,10 @@ function $r(e, t, n, r) {
|
|
|
7437
7437
|
});
|
|
7438
7438
|
return l(), n.stack = f, o(), i === "full" || !s || s !== c ? u += a.move(c + "]") : i === "shortcut" ? u = u.slice(0, -1) : u += a.move("]"), u;
|
|
7439
7439
|
}
|
|
7440
|
-
function
|
|
7440
|
+
function Ns() {
|
|
7441
7441
|
return "!";
|
|
7442
7442
|
}
|
|
7443
|
-
Vr.peek =
|
|
7443
|
+
Vr.peek = Bs;
|
|
7444
7444
|
function Vr(e, t, n) {
|
|
7445
7445
|
let r = e.value || "", i = "`", o = -1;
|
|
7446
7446
|
for (; new RegExp("(^|[^`])" + i + "([^`]|$)").test(r); )
|
|
@@ -7456,7 +7456,7 @@ function Vr(e, t, n) {
|
|
|
7456
7456
|
}
|
|
7457
7457
|
return i + r + i;
|
|
7458
7458
|
}
|
|
7459
|
-
function
|
|
7459
|
+
function Bs() {
|
|
7460
7460
|
return "`";
|
|
7461
7461
|
}
|
|
7462
7462
|
function Wr(e, t) {
|
|
@@ -7470,7 +7470,7 @@ function Wr(e, t) {
|
|
|
7470
7470
|
// references don’t work), space, or angle brackets…
|
|
7471
7471
|
!/[\0- <>\u007F]/.test(e.url));
|
|
7472
7472
|
}
|
|
7473
|
-
Qr.peek =
|
|
7473
|
+
Qr.peek = js;
|
|
7474
7474
|
function Qr(e, t, n, r) {
|
|
7475
7475
|
const i = tt(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.createTracker(r);
|
|
7476
7476
|
let a, u;
|
|
@@ -7512,10 +7512,10 @@ function Qr(e, t, n, r) {
|
|
|
7512
7512
|
})
|
|
7513
7513
|
), s += l.move(i), u()), s += l.move(")"), a(), s;
|
|
7514
7514
|
}
|
|
7515
|
-
function
|
|
7515
|
+
function js(e, t, n) {
|
|
7516
7516
|
return Wr(e, n) ? "<" : "[";
|
|
7517
7517
|
}
|
|
7518
|
-
Yr.peek =
|
|
7518
|
+
Yr.peek = Hs;
|
|
7519
7519
|
function Yr(e, t, n, r) {
|
|
7520
7520
|
const i = e.referenceType, o = n.enter("linkReference");
|
|
7521
7521
|
let l = n.enter("label");
|
|
@@ -7536,7 +7536,7 @@ function Yr(e, t, n, r) {
|
|
|
7536
7536
|
});
|
|
7537
7537
|
return l(), n.stack = f, o(), i === "full" || !s || s !== c ? u += a.move(c + "]") : i === "shortcut" ? u = u.slice(0, -1) : u += a.move("]"), u;
|
|
7538
7538
|
}
|
|
7539
|
-
function
|
|
7539
|
+
function Hs() {
|
|
7540
7540
|
return "[";
|
|
7541
7541
|
}
|
|
7542
7542
|
function rt(e) {
|
|
@@ -7547,7 +7547,7 @@ function rt(e) {
|
|
|
7547
7547
|
);
|
|
7548
7548
|
return t;
|
|
7549
7549
|
}
|
|
7550
|
-
function
|
|
7550
|
+
function Us(e) {
|
|
7551
7551
|
const t = rt(e), n = e.options.bulletOther;
|
|
7552
7552
|
if (!n)
|
|
7553
7553
|
return t === "*" ? "-" : "*";
|
|
@@ -7561,7 +7561,7 @@ function Hs(e) {
|
|
|
7561
7561
|
);
|
|
7562
7562
|
return n;
|
|
7563
7563
|
}
|
|
7564
|
-
function
|
|
7564
|
+
function $s(e) {
|
|
7565
7565
|
const t = e.options.bulletOrdered || ".";
|
|
7566
7566
|
if (t !== "." && t !== ")")
|
|
7567
7567
|
throw new Error(
|
|
@@ -7579,8 +7579,8 @@ function Gr(e) {
|
|
|
7579
7579
|
}
|
|
7580
7580
|
function qs(e, t, n, r) {
|
|
7581
7581
|
const i = n.enter("list"), o = n.bulletCurrent;
|
|
7582
|
-
let l = e.ordered ?
|
|
7583
|
-
const a = e.ordered ? l === "." ? ")" : "." :
|
|
7582
|
+
let l = e.ordered ? $s(n) : rt(n);
|
|
7583
|
+
const a = e.ordered ? l === "." ? ")" : "." : Us(n);
|
|
7584
7584
|
let u = t && n.bulletLastUsed ? l === n.bulletLastUsed : !1;
|
|
7585
7585
|
if (!e.ordered) {
|
|
7586
7586
|
const f = e.children ? e.children[0] : void 0;
|
|
@@ -7605,7 +7605,7 @@ function qs(e, t, n, r) {
|
|
|
7605
7605
|
const s = n.containerFlow(e, r);
|
|
7606
7606
|
return n.bulletLastUsed = l, n.bulletCurrent = o, i(), s;
|
|
7607
7607
|
}
|
|
7608
|
-
function
|
|
7608
|
+
function Vs(e) {
|
|
7609
7609
|
const t = e.options.listItemIndent || "one";
|
|
7610
7610
|
if (t !== "tab" && t !== "one" && t !== "mixed")
|
|
7611
7611
|
throw new Error(
|
|
@@ -7613,8 +7613,8 @@ function $s(e) {
|
|
|
7613
7613
|
);
|
|
7614
7614
|
return t;
|
|
7615
7615
|
}
|
|
7616
|
-
function
|
|
7617
|
-
const i =
|
|
7616
|
+
function Ws(e, t, n, r) {
|
|
7617
|
+
const i = Vs(n);
|
|
7618
7618
|
let o = n.bulletCurrent || rt(n);
|
|
7619
7619
|
t && t.type === "list" && t.ordered && (o = (typeof t.start == "number" && t.start > -1 ? t.start : 1) + (n.options.incrementListMarker === !1 ? 0 : t.children.indexOf(e)) + o);
|
|
7620
7620
|
let l = o.length + 1;
|
|
@@ -7630,11 +7630,11 @@ function Vs(e, t, n, r) {
|
|
|
7630
7630
|
return p ? (h ? "" : " ".repeat(l)) + c : (h ? o : o + " ".repeat(l - o.length)) + c;
|
|
7631
7631
|
}
|
|
7632
7632
|
}
|
|
7633
|
-
function
|
|
7633
|
+
function Qs(e, t, n, r) {
|
|
7634
7634
|
const i = n.enter("paragraph"), o = n.enter("phrasing"), l = n.containerPhrasing(e, r);
|
|
7635
7635
|
return o(), i(), l;
|
|
7636
7636
|
}
|
|
7637
|
-
const
|
|
7637
|
+
const Ys = (
|
|
7638
7638
|
/** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
|
|
7639
7639
|
cn([
|
|
7640
7640
|
"break",
|
|
@@ -7660,12 +7660,12 @@ const Qs = (
|
|
|
7660
7660
|
"textDirective"
|
|
7661
7661
|
])
|
|
7662
7662
|
);
|
|
7663
|
-
function
|
|
7663
|
+
function Gs(e, t, n, r) {
|
|
7664
7664
|
return (e.children.some(function(l) {
|
|
7665
|
-
return
|
|
7665
|
+
return Ys(l);
|
|
7666
7666
|
}) ? n.containerPhrasing : n.containerFlow).call(n, e, r);
|
|
7667
7667
|
}
|
|
7668
|
-
function
|
|
7668
|
+
function Xs(e) {
|
|
7669
7669
|
const t = e.options.strong || "*";
|
|
7670
7670
|
if (t !== "*" && t !== "_")
|
|
7671
7671
|
throw new Error(
|
|
@@ -7673,9 +7673,9 @@ function Gs(e) {
|
|
|
7673
7673
|
);
|
|
7674
7674
|
return t;
|
|
7675
7675
|
}
|
|
7676
|
-
Xr.peek =
|
|
7676
|
+
Xr.peek = Ks;
|
|
7677
7677
|
function Xr(e, t, n, r) {
|
|
7678
|
-
const i =
|
|
7678
|
+
const i = Xs(n), o = n.enter("strong"), l = n.createTracker(r), a = l.move(i + i);
|
|
7679
7679
|
let u = l.move(
|
|
7680
7680
|
n.containerPhrasing(e, {
|
|
7681
7681
|
after: i,
|
|
@@ -7688,22 +7688,22 @@ function Xr(e, t, n, r) {
|
|
|
7688
7688
|
s,
|
|
7689
7689
|
i
|
|
7690
7690
|
);
|
|
7691
|
-
f.inside && (u =
|
|
7691
|
+
f.inside && (u = qe(s) + u.slice(1));
|
|
7692
7692
|
const c = u.charCodeAt(u.length - 1), p = on(r.after.charCodeAt(0), c, i);
|
|
7693
|
-
p.inside && (u = u.slice(0, -1) +
|
|
7693
|
+
p.inside && (u = u.slice(0, -1) + qe(c));
|
|
7694
7694
|
const h = l.move(i + i);
|
|
7695
7695
|
return o(), n.attentionEncodeSurroundingInfo = {
|
|
7696
7696
|
after: p.outside,
|
|
7697
7697
|
before: f.outside
|
|
7698
7698
|
}, a + u + h;
|
|
7699
7699
|
}
|
|
7700
|
-
function
|
|
7700
|
+
function Ks(e, t, n) {
|
|
7701
7701
|
return n.options.strong || "*";
|
|
7702
7702
|
}
|
|
7703
|
-
function
|
|
7703
|
+
function Js(e, t, n, r) {
|
|
7704
7704
|
return n.safe(e.value, r);
|
|
7705
7705
|
}
|
|
7706
|
-
function
|
|
7706
|
+
function Zs(e) {
|
|
7707
7707
|
const t = e.options.ruleRepetition || 3;
|
|
7708
7708
|
if (t < 3)
|
|
7709
7709
|
throw new Error(
|
|
@@ -7711,50 +7711,50 @@ function Js(e) {
|
|
|
7711
7711
|
);
|
|
7712
7712
|
return t;
|
|
7713
7713
|
}
|
|
7714
|
-
function
|
|
7715
|
-
const r = (Gr(n) + (n.options.ruleSpaces ? " " : "")).repeat(
|
|
7714
|
+
function ec(e, t, n) {
|
|
7715
|
+
const r = (Gr(n) + (n.options.ruleSpaces ? " " : "")).repeat(Zs(n));
|
|
7716
7716
|
return n.options.ruleSpaces ? r.slice(0, -1) : r;
|
|
7717
7717
|
}
|
|
7718
7718
|
const Kr = {
|
|
7719
|
-
blockquote:
|
|
7719
|
+
blockquote: Cs,
|
|
7720
7720
|
break: Xt,
|
|
7721
|
-
code:
|
|
7722
|
-
definition:
|
|
7721
|
+
code: vs,
|
|
7722
|
+
definition: zs,
|
|
7723
7723
|
emphasis: Hr,
|
|
7724
7724
|
hardBreak: Xt,
|
|
7725
|
-
heading:
|
|
7725
|
+
heading: Rs,
|
|
7726
7726
|
html: Ur,
|
|
7727
|
-
image:
|
|
7728
|
-
imageReference:
|
|
7727
|
+
image: $r,
|
|
7728
|
+
imageReference: qr,
|
|
7729
7729
|
inlineCode: Vr,
|
|
7730
7730
|
link: Qr,
|
|
7731
7731
|
linkReference: Yr,
|
|
7732
7732
|
list: qs,
|
|
7733
|
-
listItem:
|
|
7734
|
-
paragraph:
|
|
7735
|
-
root:
|
|
7733
|
+
listItem: Ws,
|
|
7734
|
+
paragraph: Qs,
|
|
7735
|
+
root: Gs,
|
|
7736
7736
|
strong: Xr,
|
|
7737
|
-
text:
|
|
7738
|
-
thematicBreak:
|
|
7737
|
+
text: Js,
|
|
7738
|
+
thematicBreak: ec
|
|
7739
7739
|
};
|
|
7740
|
-
function
|
|
7740
|
+
function nc() {
|
|
7741
7741
|
return {
|
|
7742
7742
|
enter: {
|
|
7743
|
-
table:
|
|
7743
|
+
table: tc,
|
|
7744
7744
|
tableData: Kt,
|
|
7745
7745
|
tableHeader: Kt,
|
|
7746
|
-
tableRow:
|
|
7746
|
+
tableRow: ic
|
|
7747
7747
|
},
|
|
7748
7748
|
exit: {
|
|
7749
|
-
codeText:
|
|
7750
|
-
table:
|
|
7749
|
+
codeText: lc,
|
|
7750
|
+
table: rc,
|
|
7751
7751
|
tableData: vn,
|
|
7752
7752
|
tableHeader: vn,
|
|
7753
7753
|
tableRow: vn
|
|
7754
7754
|
}
|
|
7755
7755
|
};
|
|
7756
7756
|
}
|
|
7757
|
-
function
|
|
7757
|
+
function tc(e) {
|
|
7758
7758
|
const t = e._align;
|
|
7759
7759
|
this.enter(
|
|
7760
7760
|
{
|
|
@@ -7767,10 +7767,10 @@ function nc(e) {
|
|
|
7767
7767
|
e
|
|
7768
7768
|
), this.data.inTable = !0;
|
|
7769
7769
|
}
|
|
7770
|
-
function
|
|
7770
|
+
function rc(e) {
|
|
7771
7771
|
this.exit(e), this.data.inTable = void 0;
|
|
7772
7772
|
}
|
|
7773
|
-
function
|
|
7773
|
+
function ic(e) {
|
|
7774
7774
|
this.enter({ type: "tableRow", children: [] }, e);
|
|
7775
7775
|
}
|
|
7776
7776
|
function vn(e) {
|
|
@@ -7779,16 +7779,16 @@ function vn(e) {
|
|
|
7779
7779
|
function Kt(e) {
|
|
7780
7780
|
this.enter({ type: "tableCell", children: [] }, e);
|
|
7781
7781
|
}
|
|
7782
|
-
function
|
|
7782
|
+
function lc(e) {
|
|
7783
7783
|
let t = this.resume();
|
|
7784
|
-
this.data.inTable && (t = t.replace(/\\([\\|])/g,
|
|
7784
|
+
this.data.inTable && (t = t.replace(/\\([\\|])/g, oc));
|
|
7785
7785
|
const n = this.stack[this.stack.length - 1];
|
|
7786
7786
|
n.value = t, this.exit(e);
|
|
7787
7787
|
}
|
|
7788
|
-
function
|
|
7788
|
+
function oc(e, t) {
|
|
7789
7789
|
return t === "|" ? t : e;
|
|
7790
7790
|
}
|
|
7791
|
-
function
|
|
7791
|
+
function ac(e) {
|
|
7792
7792
|
const t = e, n = t.tableCellPadding, r = t.tablePipeAlign, i = t.stringLength, o = n ? " " : "|";
|
|
7793
7793
|
return {
|
|
7794
7794
|
unsafe: [
|
|
@@ -7834,7 +7834,7 @@ function oc(e) {
|
|
|
7834
7834
|
return S(), y(), C;
|
|
7835
7835
|
}
|
|
7836
7836
|
function s(h, d) {
|
|
7837
|
-
return
|
|
7837
|
+
return ws(h, {
|
|
7838
7838
|
align: d,
|
|
7839
7839
|
// @ts-expect-error: `markdown-table` types should support `null`.
|
|
7840
7840
|
alignDelimiters: r,
|
|
@@ -7865,26 +7865,26 @@ function oc(e) {
|
|
|
7865
7865
|
return x.stack.includes("tableCell") && (E = E.replace(/\|/g, "\\$&")), E;
|
|
7866
7866
|
}
|
|
7867
7867
|
}
|
|
7868
|
-
function
|
|
7868
|
+
function uc() {
|
|
7869
7869
|
return {
|
|
7870
7870
|
exit: {
|
|
7871
7871
|
taskListCheckValueChecked: Jt,
|
|
7872
7872
|
taskListCheckValueUnchecked: Jt,
|
|
7873
|
-
paragraph:
|
|
7873
|
+
paragraph: cc
|
|
7874
7874
|
}
|
|
7875
7875
|
};
|
|
7876
7876
|
}
|
|
7877
|
-
function
|
|
7877
|
+
function sc() {
|
|
7878
7878
|
return {
|
|
7879
7879
|
unsafe: [{ atBreak: !0, character: "-", after: "[:|-]" }],
|
|
7880
|
-
handlers: { listItem:
|
|
7880
|
+
handlers: { listItem: fc }
|
|
7881
7881
|
};
|
|
7882
7882
|
}
|
|
7883
7883
|
function Jt(e) {
|
|
7884
7884
|
const t = this.stack[this.stack.length - 2];
|
|
7885
7885
|
t.checked = e.type === "taskListCheckValueChecked";
|
|
7886
7886
|
}
|
|
7887
|
-
function
|
|
7887
|
+
function cc(e) {
|
|
7888
7888
|
const t = this.stack[this.stack.length - 2];
|
|
7889
7889
|
if (t && t.type === "listItem" && typeof t.checked == "boolean") {
|
|
7890
7890
|
const n = this.stack[this.stack.length - 1], r = n.children[0];
|
|
@@ -7903,7 +7903,7 @@ function sc(e) {
|
|
|
7903
7903
|
}
|
|
7904
7904
|
this.exit(e);
|
|
7905
7905
|
}
|
|
7906
|
-
function
|
|
7906
|
+
function fc(e, t, n, r) {
|
|
7907
7907
|
const i = e.children[0], o = typeof e.checked == "boolean" && i && i.type === "paragraph", l = "[" + (e.checked ? "x" : " ") + "] ", a = n.createTracker(r);
|
|
7908
7908
|
o && a.move(l);
|
|
7909
7909
|
let u = Kr.listItem(e, t, n, {
|
|
@@ -7915,55 +7915,55 @@ function cc(e, t, n, r) {
|
|
|
7915
7915
|
return f + l;
|
|
7916
7916
|
}
|
|
7917
7917
|
}
|
|
7918
|
-
function
|
|
7918
|
+
function hc() {
|
|
7919
7919
|
return [
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
7923
|
-
|
|
7924
|
-
|
|
7920
|
+
$u(),
|
|
7921
|
+
ns(),
|
|
7922
|
+
gs(),
|
|
7923
|
+
nc(),
|
|
7924
|
+
uc()
|
|
7925
7925
|
];
|
|
7926
7926
|
}
|
|
7927
|
-
function
|
|
7927
|
+
function pc(e) {
|
|
7928
7928
|
return {
|
|
7929
7929
|
extensions: [
|
|
7930
7930
|
qu(),
|
|
7931
|
-
|
|
7932
|
-
|
|
7933
|
-
|
|
7934
|
-
|
|
7931
|
+
ts(),
|
|
7932
|
+
ds(),
|
|
7933
|
+
ac(e),
|
|
7934
|
+
sc()
|
|
7935
7935
|
]
|
|
7936
7936
|
};
|
|
7937
7937
|
}
|
|
7938
|
-
const
|
|
7939
|
-
tokenize: xc,
|
|
7940
|
-
partial: !0
|
|
7941
|
-
}, Jr = {
|
|
7938
|
+
const mc = {
|
|
7942
7939
|
tokenize: bc,
|
|
7943
7940
|
partial: !0
|
|
7944
|
-
},
|
|
7941
|
+
}, Jr = {
|
|
7945
7942
|
tokenize: wc,
|
|
7946
7943
|
partial: !0
|
|
7947
|
-
},
|
|
7944
|
+
}, Zr = {
|
|
7948
7945
|
tokenize: Sc,
|
|
7949
7946
|
partial: !0
|
|
7950
|
-
},
|
|
7947
|
+
}, ei = {
|
|
7951
7948
|
tokenize: Cc,
|
|
7952
7949
|
partial: !0
|
|
7950
|
+
}, gc = {
|
|
7951
|
+
tokenize: Ec,
|
|
7952
|
+
partial: !0
|
|
7953
7953
|
}, ni = {
|
|
7954
7954
|
name: "wwwAutolink",
|
|
7955
|
-
tokenize:
|
|
7955
|
+
tokenize: kc,
|
|
7956
7956
|
previous: ri
|
|
7957
7957
|
}, ti = {
|
|
7958
7958
|
name: "protocolAutolink",
|
|
7959
|
-
tokenize:
|
|
7959
|
+
tokenize: xc,
|
|
7960
7960
|
previous: ii
|
|
7961
7961
|
}, ye = {
|
|
7962
7962
|
name: "emailAutolink",
|
|
7963
|
-
tokenize:
|
|
7963
|
+
tokenize: yc,
|
|
7964
7964
|
previous: li
|
|
7965
7965
|
}, he = {};
|
|
7966
|
-
function
|
|
7966
|
+
function dc() {
|
|
7967
7967
|
return {
|
|
7968
7968
|
text: he
|
|
7969
7969
|
};
|
|
@@ -7979,7 +7979,7 @@ he[72] = [ye, ti];
|
|
|
7979
7979
|
he[104] = [ye, ti];
|
|
7980
7980
|
he[87] = [ye, ni];
|
|
7981
7981
|
he[119] = [ye, ni];
|
|
7982
|
-
function
|
|
7982
|
+
function yc(e, t, n) {
|
|
7983
7983
|
const r = this;
|
|
7984
7984
|
let i, o;
|
|
7985
7985
|
return l;
|
|
@@ -7990,7 +7990,7 @@ function dc(e, t, n) {
|
|
|
7990
7990
|
return jn(c) ? (e.consume(c), a) : c === 64 ? (e.consume(c), u) : n(c);
|
|
7991
7991
|
}
|
|
7992
7992
|
function u(c) {
|
|
7993
|
-
return c === 46 ? e.check(
|
|
7993
|
+
return c === 46 ? e.check(gc, f, s)(c) : c === 45 || c === 95 || X(c) ? (o = !0, e.consume(c), u) : f(c);
|
|
7994
7994
|
}
|
|
7995
7995
|
function s(c) {
|
|
7996
7996
|
return e.consume(c), i = !0, u;
|
|
@@ -7999,17 +7999,17 @@ function dc(e, t, n) {
|
|
|
7999
7999
|
return o && i && J(r.previous) ? (e.exit("literalAutolinkEmail"), e.exit("literalAutolink"), t(c)) : n(c);
|
|
8000
8000
|
}
|
|
8001
8001
|
}
|
|
8002
|
-
function
|
|
8002
|
+
function kc(e, t, n) {
|
|
8003
8003
|
const r = this;
|
|
8004
8004
|
return i;
|
|
8005
8005
|
function i(l) {
|
|
8006
|
-
return l !== 87 && l !== 119 || !ri.call(r, r.previous) || it(r.events) ? n(l) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(
|
|
8006
|
+
return l !== 87 && l !== 119 || !ri.call(r, r.previous) || it(r.events) ? n(l) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(mc, e.attempt(Jr, e.attempt(Zr, o), n), n)(l));
|
|
8007
8007
|
}
|
|
8008
8008
|
function o(l) {
|
|
8009
8009
|
return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(l);
|
|
8010
8010
|
}
|
|
8011
8011
|
}
|
|
8012
|
-
function
|
|
8012
|
+
function xc(e, t, n) {
|
|
8013
8013
|
const r = this;
|
|
8014
8014
|
let i = "", o = !1;
|
|
8015
8015
|
return l;
|
|
@@ -8030,13 +8030,13 @@ function kc(e, t, n) {
|
|
|
8030
8030
|
return c === 47 ? (e.consume(c), o ? s : (o = !0, u)) : n(c);
|
|
8031
8031
|
}
|
|
8032
8032
|
function s(c) {
|
|
8033
|
-
return c === null || nn(c) ||
|
|
8033
|
+
return c === null || nn(c) || q(c) || Ee(c) || an(c) ? n(c) : e.attempt(Jr, e.attempt(Zr, f), n)(c);
|
|
8034
8034
|
}
|
|
8035
8035
|
function f(c) {
|
|
8036
8036
|
return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(c);
|
|
8037
8037
|
}
|
|
8038
8038
|
}
|
|
8039
|
-
function
|
|
8039
|
+
function bc(e, t, n) {
|
|
8040
8040
|
let r = 0;
|
|
8041
8041
|
return i;
|
|
8042
8042
|
function i(l) {
|
|
@@ -8046,11 +8046,11 @@ function xc(e, t, n) {
|
|
|
8046
8046
|
return l === null ? n(l) : t(l);
|
|
8047
8047
|
}
|
|
8048
8048
|
}
|
|
8049
|
-
function
|
|
8049
|
+
function wc(e, t, n) {
|
|
8050
8050
|
let r, i, o;
|
|
8051
8051
|
return l;
|
|
8052
8052
|
function l(s) {
|
|
8053
|
-
return s === 46 || s === 95 ? e.check(ei, u, a)(s) : s === null ||
|
|
8053
|
+
return s === 46 || s === 95 ? e.check(ei, u, a)(s) : s === null || q(s) || Ee(s) || s !== 45 && an(s) ? u(s) : (o = !0, e.consume(s), l);
|
|
8054
8054
|
}
|
|
8055
8055
|
function a(s) {
|
|
8056
8056
|
return s === 95 ? r = !0 : (i = r, r = void 0), e.consume(s), l;
|
|
@@ -8059,27 +8059,27 @@ function bc(e, t, n) {
|
|
|
8059
8059
|
return i || r || !o ? n(s) : t(s);
|
|
8060
8060
|
}
|
|
8061
8061
|
}
|
|
8062
|
-
function
|
|
8062
|
+
function Sc(e, t) {
|
|
8063
8063
|
let n = 0, r = 0;
|
|
8064
8064
|
return i;
|
|
8065
8065
|
function i(l) {
|
|
8066
|
-
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(ei, t, o)(l) : l === null ||
|
|
8066
|
+
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(ei, t, o)(l) : l === null || q(l) || Ee(l) ? t(l) : (e.consume(l), i);
|
|
8067
8067
|
}
|
|
8068
8068
|
function o(l) {
|
|
8069
8069
|
return l === 41 && r++, e.consume(l), i;
|
|
8070
8070
|
}
|
|
8071
8071
|
}
|
|
8072
|
-
function
|
|
8072
|
+
function Cc(e, t, n) {
|
|
8073
8073
|
return r;
|
|
8074
8074
|
function r(a) {
|
|
8075
8075
|
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) : (
|
|
8076
8076
|
// `<` is an end.
|
|
8077
8077
|
a === 60 || // So is whitespace.
|
|
8078
|
-
a === null ||
|
|
8078
|
+
a === null || q(a) || Ee(a) ? t(a) : n(a)
|
|
8079
8079
|
);
|
|
8080
8080
|
}
|
|
8081
8081
|
function i(a) {
|
|
8082
|
-
return a === null || a === 40 || a === 91 ||
|
|
8082
|
+
return a === null || a === 40 || a === 91 || q(a) || Ee(a) ? t(a) : r(a);
|
|
8083
8083
|
}
|
|
8084
8084
|
function o(a) {
|
|
8085
8085
|
return J(a) ? l(a) : n(a);
|
|
@@ -8088,7 +8088,7 @@ function Sc(e, t, n) {
|
|
|
8088
8088
|
return a === 59 ? (e.consume(a), r) : J(a) ? (e.consume(a), l) : n(a);
|
|
8089
8089
|
}
|
|
8090
8090
|
}
|
|
8091
|
-
function
|
|
8091
|
+
function Ec(e, t, n) {
|
|
8092
8092
|
return r;
|
|
8093
8093
|
function r(o) {
|
|
8094
8094
|
return e.consume(o), i;
|
|
@@ -8098,7 +8098,7 @@ function Cc(e, t, n) {
|
|
|
8098
8098
|
}
|
|
8099
8099
|
}
|
|
8100
8100
|
function ri(e) {
|
|
8101
|
-
return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 ||
|
|
8101
|
+
return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 || q(e);
|
|
8102
8102
|
}
|
|
8103
8103
|
function ii(e) {
|
|
8104
8104
|
return !J(e);
|
|
@@ -8124,37 +8124,37 @@ function it(e) {
|
|
|
8124
8124
|
}
|
|
8125
8125
|
return e.length > 0 && !n && (e[e.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), n;
|
|
8126
8126
|
}
|
|
8127
|
-
const
|
|
8128
|
-
tokenize:
|
|
8127
|
+
const Ic = {
|
|
8128
|
+
tokenize: Fc,
|
|
8129
8129
|
partial: !0
|
|
8130
8130
|
};
|
|
8131
|
-
function
|
|
8131
|
+
function Ac() {
|
|
8132
8132
|
return {
|
|
8133
8133
|
document: {
|
|
8134
8134
|
91: {
|
|
8135
8135
|
name: "gfmFootnoteDefinition",
|
|
8136
|
-
tokenize:
|
|
8136
|
+
tokenize: Lc,
|
|
8137
8137
|
continuation: {
|
|
8138
|
-
tokenize:
|
|
8138
|
+
tokenize: zc
|
|
8139
8139
|
},
|
|
8140
|
-
exit:
|
|
8140
|
+
exit: Dc
|
|
8141
8141
|
}
|
|
8142
8142
|
},
|
|
8143
8143
|
text: {
|
|
8144
8144
|
91: {
|
|
8145
8145
|
name: "gfmFootnoteCall",
|
|
8146
|
-
tokenize:
|
|
8146
|
+
tokenize: vc
|
|
8147
8147
|
},
|
|
8148
8148
|
93: {
|
|
8149
8149
|
name: "gfmPotentialFootnoteCall",
|
|
8150
8150
|
add: "after",
|
|
8151
|
-
tokenize:
|
|
8152
|
-
resolveTo:
|
|
8151
|
+
tokenize: Tc,
|
|
8152
|
+
resolveTo: Pc
|
|
8153
8153
|
}
|
|
8154
8154
|
}
|
|
8155
8155
|
};
|
|
8156
8156
|
}
|
|
8157
|
-
function
|
|
8157
|
+
function Tc(e, t, n) {
|
|
8158
8158
|
const r = this;
|
|
8159
8159
|
let i = r.events.length;
|
|
8160
8160
|
const o = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
@@ -8179,7 +8179,7 @@ function Ac(e, t, n) {
|
|
|
8179
8179
|
return s.codePointAt(0) !== 94 || !o.includes(s.slice(1)) ? n(u) : (e.enter("gfmFootnoteCallLabelMarker"), e.consume(u), e.exit("gfmFootnoteCallLabelMarker"), t(u));
|
|
8180
8180
|
}
|
|
8181
8181
|
}
|
|
8182
|
-
function
|
|
8182
|
+
function Pc(e, t) {
|
|
8183
8183
|
let n = e.length;
|
|
8184
8184
|
for (; n-- && !(e[n][1].type === "labelImage" && e[n][0] === "enter"); )
|
|
8185
8185
|
;
|
|
@@ -8226,7 +8226,7 @@ function Tc(e, t) {
|
|
|
8226
8226
|
];
|
|
8227
8227
|
return e.splice(n, e.length - n + 1, ...a), e;
|
|
8228
8228
|
}
|
|
8229
|
-
function
|
|
8229
|
+
function vc(e, t, n) {
|
|
8230
8230
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
8231
8231
|
let o = 0, l;
|
|
8232
8232
|
return a;
|
|
@@ -8242,7 +8242,7 @@ function Pc(e, t, n) {
|
|
|
8242
8242
|
o > 999 || // Closing brace with nothing.
|
|
8243
8243
|
c === 93 && !l || // Space or tab is not supported by GFM for some reason.
|
|
8244
8244
|
// `\n` and `[` not being supported makes sense.
|
|
8245
|
-
c === null || c === 91 ||
|
|
8245
|
+
c === null || c === 91 || q(c)
|
|
8246
8246
|
)
|
|
8247
8247
|
return n(c);
|
|
8248
8248
|
if (c === 93) {
|
|
@@ -8250,13 +8250,13 @@ function Pc(e, t, n) {
|
|
|
8250
8250
|
const p = e.exit("gfmFootnoteCallString");
|
|
8251
8251
|
return i.includes(ce(r.sliceSerialize(p))) ? (e.enter("gfmFootnoteCallLabelMarker"), e.consume(c), e.exit("gfmFootnoteCallLabelMarker"), e.exit("gfmFootnoteCall"), t) : n(c);
|
|
8252
8252
|
}
|
|
8253
|
-
return
|
|
8253
|
+
return q(c) || (l = !0), o++, e.consume(c), c === 92 ? f : s;
|
|
8254
8254
|
}
|
|
8255
8255
|
function f(c) {
|
|
8256
8256
|
return c === 91 || c === 92 || c === 93 ? (e.consume(c), o++, s) : s(c);
|
|
8257
8257
|
}
|
|
8258
8258
|
}
|
|
8259
|
-
function
|
|
8259
|
+
function Lc(e, t, n) {
|
|
8260
8260
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
8261
8261
|
let o, l = 0, a;
|
|
8262
8262
|
return u;
|
|
@@ -8272,7 +8272,7 @@ function vc(e, t, n) {
|
|
|
8272
8272
|
l > 999 || // Closing brace with nothing.
|
|
8273
8273
|
d === 93 && !a || // Space or tab is not supported by GFM for some reason.
|
|
8274
8274
|
// `\n` and `[` not being supported makes sense.
|
|
8275
|
-
d === null || d === 91 ||
|
|
8275
|
+
d === null || d === 91 || q(d)
|
|
8276
8276
|
)
|
|
8277
8277
|
return n(d);
|
|
8278
8278
|
if (d === 93) {
|
|
@@ -8280,7 +8280,7 @@ function vc(e, t, n) {
|
|
|
8280
8280
|
const x = e.exit("gfmFootnoteDefinitionLabelString");
|
|
8281
8281
|
return o = ce(r.sliceSerialize(x)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(d), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), p;
|
|
8282
8282
|
}
|
|
8283
|
-
return
|
|
8283
|
+
return q(d) || (a = !0), l++, e.consume(d), d === 92 ? c : f;
|
|
8284
8284
|
}
|
|
8285
8285
|
function c(d) {
|
|
8286
8286
|
return d === 91 || d === 92 || d === 93 ? (e.consume(d), l++, f) : f(d);
|
|
@@ -8292,13 +8292,13 @@ function vc(e, t, n) {
|
|
|
8292
8292
|
return t(d);
|
|
8293
8293
|
}
|
|
8294
8294
|
}
|
|
8295
|
-
function
|
|
8296
|
-
return e.check(We, t, e.attempt(
|
|
8295
|
+
function zc(e, t, n) {
|
|
8296
|
+
return e.check(We, t, e.attempt(Ic, t, n));
|
|
8297
8297
|
}
|
|
8298
|
-
function
|
|
8298
|
+
function Dc(e) {
|
|
8299
8299
|
e.exit("gfmFootnoteDefinition");
|
|
8300
8300
|
}
|
|
8301
|
-
function
|
|
8301
|
+
function Fc(e, t, n) {
|
|
8302
8302
|
const r = this;
|
|
8303
8303
|
return j(e, i, "gfmFootnoteDefinitionIndent", 5);
|
|
8304
8304
|
function i(o) {
|
|
@@ -8306,7 +8306,7 @@ function Dc(e, t, n) {
|
|
|
8306
8306
|
return l && l[1].type === "gfmFootnoteDefinitionIndent" && l[2].sliceSerialize(l[1], !0).length === 4 ? t(o) : n(o);
|
|
8307
8307
|
}
|
|
8308
8308
|
}
|
|
8309
|
-
function
|
|
8309
|
+
function _c(e) {
|
|
8310
8310
|
let n = e.singleTilde;
|
|
8311
8311
|
const r = {
|
|
8312
8312
|
name: "strikethrough",
|
|
@@ -8367,7 +8367,7 @@ function Fc(e) {
|
|
|
8367
8367
|
}
|
|
8368
8368
|
}
|
|
8369
8369
|
}
|
|
8370
|
-
class
|
|
8370
|
+
class Rc {
|
|
8371
8371
|
/**
|
|
8372
8372
|
* Create a new edit map.
|
|
8373
8373
|
*/
|
|
@@ -8383,7 +8383,7 @@ class _c {
|
|
|
8383
8383
|
* @returns {undefined}
|
|
8384
8384
|
*/
|
|
8385
8385
|
add(t, n, r) {
|
|
8386
|
-
|
|
8386
|
+
Oc(this, t, n, r);
|
|
8387
8387
|
}
|
|
8388
8388
|
// To do: add this when moving to `micromark`.
|
|
8389
8389
|
// /**
|
|
@@ -8422,7 +8422,7 @@ class _c {
|
|
|
8422
8422
|
this.map.length = 0;
|
|
8423
8423
|
}
|
|
8424
8424
|
}
|
|
8425
|
-
function
|
|
8425
|
+
function Oc(e, t, n, r) {
|
|
8426
8426
|
let i = 0;
|
|
8427
8427
|
if (!(n === 0 && r.length === 0)) {
|
|
8428
8428
|
for (; i < e.map.length; ) {
|
|
@@ -8435,7 +8435,7 @@ function Rc(e, t, n, r) {
|
|
|
8435
8435
|
e.map.push([t, n, r]);
|
|
8436
8436
|
}
|
|
8437
8437
|
}
|
|
8438
|
-
function
|
|
8438
|
+
function Mc(e, t) {
|
|
8439
8439
|
let n = !1;
|
|
8440
8440
|
const r = [];
|
|
8441
8441
|
for (; t < e.length; ) {
|
|
@@ -8455,18 +8455,18 @@ function Oc(e, t) {
|
|
|
8455
8455
|
}
|
|
8456
8456
|
return r;
|
|
8457
8457
|
}
|
|
8458
|
-
function
|
|
8458
|
+
function Nc() {
|
|
8459
8459
|
return {
|
|
8460
8460
|
flow: {
|
|
8461
8461
|
null: {
|
|
8462
8462
|
name: "table",
|
|
8463
|
-
tokenize:
|
|
8464
|
-
resolveAll:
|
|
8463
|
+
tokenize: Bc,
|
|
8464
|
+
resolveAll: jc
|
|
8465
8465
|
}
|
|
8466
8466
|
}
|
|
8467
8467
|
};
|
|
8468
8468
|
}
|
|
8469
|
-
function
|
|
8469
|
+
function Bc(e, t, n) {
|
|
8470
8470
|
const r = this;
|
|
8471
8471
|
let i = 0, o = 0, l;
|
|
8472
8472
|
return a;
|
|
@@ -8491,7 +8491,7 @@ function Nc(e, t, n) {
|
|
|
8491
8491
|
return k === null ? n(k) : D(k) ? o > 1 ? (o = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(k), e.exit("lineEnding"), h) : n(k) : N(k) ? j(e, f, "whitespace")(k) : (o += 1, l && (l = !1, i += 1), k === 124 ? (e.enter("tableCellDivider"), e.consume(k), e.exit("tableCellDivider"), l = !0, f) : (e.enter("data"), c(k)));
|
|
8492
8492
|
}
|
|
8493
8493
|
function c(k) {
|
|
8494
|
-
return k === null || k === 124 ||
|
|
8494
|
+
return k === null || k === 124 || q(k) ? (e.exit("data"), f(k)) : (e.consume(k), k === 92 ? p : c);
|
|
8495
8495
|
}
|
|
8496
8496
|
function p(k) {
|
|
8497
8497
|
return k === 92 || k === 124 ? (e.consume(k), c) : c(k);
|
|
@@ -8530,15 +8530,15 @@ function Nc(e, t, n) {
|
|
|
8530
8530
|
return k === 124 ? (e.enter("tableCellDivider"), e.consume(k), e.exit("tableCellDivider"), O) : k === null || D(k) ? (e.exit("tableRow"), t(k)) : N(k) ? j(e, O, "whitespace")(k) : (e.enter("data"), U(k));
|
|
8531
8531
|
}
|
|
8532
8532
|
function U(k) {
|
|
8533
|
-
return k === null || k === 124 ||
|
|
8533
|
+
return k === null || k === 124 || q(k) ? (e.exit("data"), O(k)) : (e.consume(k), k === 92 ? H : U);
|
|
8534
8534
|
}
|
|
8535
8535
|
function H(k) {
|
|
8536
8536
|
return k === 92 || k === 124 ? (e.consume(k), U) : U(k);
|
|
8537
8537
|
}
|
|
8538
8538
|
}
|
|
8539
|
-
function
|
|
8539
|
+
function jc(e, t) {
|
|
8540
8540
|
let n = -1, r = !0, i = 0, o = [0, 0, 0, 0], l = [0, 0, 0, 0], a = !1, u = 0, s, f, c;
|
|
8541
|
-
const p = new
|
|
8541
|
+
const p = new Rc();
|
|
8542
8542
|
for (; ++n < e.length; ) {
|
|
8543
8543
|
const h = e[n], d = h[1];
|
|
8544
8544
|
h[0] === "enter" ? d.type === "tableHead" ? (a = !1, u !== 0 && (Zt(p, t, u, s, f), f = void 0, u = 0), s = {
|
|
@@ -8555,7 +8555,7 @@ function Bc(e, t) {
|
|
|
8555
8555
|
}
|
|
8556
8556
|
for (u !== 0 && Zt(p, t, u, s, f), p.consume(t.events), n = -1; ++n < t.events.length; ) {
|
|
8557
8557
|
const h = t.events[n];
|
|
8558
|
-
h[0] === "enter" && h[1].type === "table" && (h[1]._align =
|
|
8558
|
+
h[0] === "enter" && h[1].type === "table" && (h[1]._align = Mc(t.events, n));
|
|
8559
8559
|
}
|
|
8560
8560
|
return e;
|
|
8561
8561
|
}
|
|
@@ -8593,18 +8593,18 @@ function Le(e, t) {
|
|
|
8593
8593
|
const n = e[t], r = n[0] === "enter" ? "start" : "end";
|
|
8594
8594
|
return n[1][r];
|
|
8595
8595
|
}
|
|
8596
|
-
const
|
|
8596
|
+
const Hc = {
|
|
8597
8597
|
name: "tasklistCheck",
|
|
8598
|
-
tokenize:
|
|
8598
|
+
tokenize: $c
|
|
8599
8599
|
};
|
|
8600
|
-
function
|
|
8600
|
+
function Uc() {
|
|
8601
8601
|
return {
|
|
8602
8602
|
text: {
|
|
8603
|
-
91:
|
|
8603
|
+
91: Hc
|
|
8604
8604
|
}
|
|
8605
8605
|
};
|
|
8606
8606
|
}
|
|
8607
|
-
function
|
|
8607
|
+
function $c(e, t, n) {
|
|
8608
8608
|
const r = this;
|
|
8609
8609
|
return i;
|
|
8610
8610
|
function i(u) {
|
|
@@ -8616,7 +8616,7 @@ function Uc(e, t, n) {
|
|
|
8616
8616
|
);
|
|
8617
8617
|
}
|
|
8618
8618
|
function o(u) {
|
|
8619
|
-
return
|
|
8619
|
+
return q(u) ? (e.enter("taskListCheckValueUnchecked"), e.consume(u), e.exit("taskListCheckValueUnchecked"), l) : u === 88 || u === 120 ? (e.enter("taskListCheckValueChecked"), e.consume(u), e.exit("taskListCheckValueChecked"), l) : n(u);
|
|
8620
8620
|
}
|
|
8621
8621
|
function l(u) {
|
|
8622
8622
|
return u === 93 ? (e.enter("taskListCheckMarker"), e.consume(u), e.exit("taskListCheckMarker"), e.exit("taskListCheck"), a) : n(u);
|
|
@@ -8633,78 +8633,88 @@ function qc(e, t, n) {
|
|
|
8633
8633
|
return i === null ? n(i) : t(i);
|
|
8634
8634
|
}
|
|
8635
8635
|
}
|
|
8636
|
-
function
|
|
8636
|
+
function Vc(e) {
|
|
8637
8637
|
return yr([
|
|
8638
|
-
|
|
8639
|
-
|
|
8640
|
-
|
|
8641
|
-
|
|
8642
|
-
|
|
8638
|
+
dc(),
|
|
8639
|
+
Ac(),
|
|
8640
|
+
_c(e),
|
|
8641
|
+
Nc(),
|
|
8642
|
+
Uc()
|
|
8643
8643
|
]);
|
|
8644
8644
|
}
|
|
8645
|
-
const
|
|
8646
|
-
function
|
|
8645
|
+
const Wc = {};
|
|
8646
|
+
function Qc(e) {
|
|
8647
8647
|
const t = (
|
|
8648
8648
|
/** @type {Processor} */
|
|
8649
8649
|
this
|
|
8650
|
-
), n = e ||
|
|
8651
|
-
i.push(
|
|
8650
|
+
), n = e || Wc, r = t.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), o = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), l = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
|
|
8651
|
+
i.push(Vc(n)), o.push(hc()), l.push(pc(n));
|
|
8652
8652
|
}
|
|
8653
|
-
const
|
|
8653
|
+
const Yc = yi(
|
|
8654
8654
|
() => import(
|
|
8655
8655
|
/* webpackChunkName: "LazyMarkdownWithExtra" */
|
|
8656
|
-
"./MarkdownWithExtra.
|
|
8656
|
+
"./MarkdownWithExtra.-zr5boZg.js"
|
|
8657
8657
|
)
|
|
8658
8658
|
), Ln = {
|
|
8659
8659
|
MODEL: "Model",
|
|
8660
8660
|
PLUGIN: "Plugin",
|
|
8661
8661
|
PROCESSING_TIME: "Processing time"
|
|
8662
|
-
},
|
|
8662
|
+
}, Gc = (e, t) => {
|
|
8663
|
+
if (e) {
|
|
8664
|
+
const n = Si(e);
|
|
8665
|
+
return t ? `${n} (${Ci.format(t)} tokens)` : `${n}`;
|
|
8666
|
+
}
|
|
8667
|
+
return null;
|
|
8668
|
+
}, Xc = ({
|
|
8663
8669
|
content: e,
|
|
8664
8670
|
name: t,
|
|
8665
8671
|
loading: n,
|
|
8666
|
-
processingTime: r
|
|
8672
|
+
processingTime: r,
|
|
8673
|
+
usage: i
|
|
8667
8674
|
}) => {
|
|
8668
8675
|
const {
|
|
8669
|
-
state: { streaming:
|
|
8670
|
-
} = ki(gi), [
|
|
8676
|
+
state: { streaming: o, model: l }
|
|
8677
|
+
} = ki(gi), [a] = di({
|
|
8671
8678
|
key: bi + wi,
|
|
8672
8679
|
initialValue: !1
|
|
8673
|
-
}),
|
|
8674
|
-
[Ln.MODEL]:
|
|
8675
|
-
[Ln.PLUGIN]: t
|
|
8676
|
-
[Ln.PROCESSING_TIME]:
|
|
8680
|
+
}), u = a && {
|
|
8681
|
+
[Ln.MODEL]: l || null,
|
|
8682
|
+
[Ln.PLUGIN]: t || null,
|
|
8683
|
+
[Ln.PROCESSING_TIME]: Gc(
|
|
8684
|
+
r,
|
|
8685
|
+
i
|
|
8686
|
+
)
|
|
8677
8687
|
};
|
|
8678
|
-
return /* @__PURE__ */ re(er, { children: n ? /* @__PURE__ */ re(ct, { children: /* @__PURE__ */ re(
|
|
8688
|
+
return /* @__PURE__ */ re(er, { children: n ? /* @__PURE__ */ re(ct, { children: /* @__PURE__ */ re(Ei, { type: "dots" }) }) : /* @__PURE__ */ en(
|
|
8679
8689
|
ct,
|
|
8680
8690
|
{
|
|
8681
|
-
copyToClipboard:
|
|
8691
|
+
copyToClipboard: o ? "loading..." : e,
|
|
8682
8692
|
copyToClipboardFocusMode: "light",
|
|
8683
|
-
footer:
|
|
8693
|
+
footer: u,
|
|
8684
8694
|
noMaxWidth: !0,
|
|
8685
8695
|
className: "max-w-[95cqw] @container mt-3",
|
|
8686
8696
|
children: [
|
|
8687
|
-
e && (e.includes("$$") || e.includes("```")) && /* @__PURE__ */ re(xi, { fallback: /* @__PURE__ */ re("div", {}), children: /* @__PURE__ */ re(
|
|
8688
|
-
e && !e.includes("$$") && !e.includes("```") && /* @__PURE__ */ re(
|
|
8697
|
+
e && (e.includes("$$") || e.includes("```")) && /* @__PURE__ */ re(xi, { fallback: /* @__PURE__ */ re("div", {}), children: /* @__PURE__ */ re(Yc, { content: e }) }),
|
|
8698
|
+
e && !e.includes("$$") && !e.includes("```") && /* @__PURE__ */ re(Ou, { remarkPlugins: [Qc], children: e })
|
|
8689
8699
|
]
|
|
8690
8700
|
}
|
|
8691
8701
|
) });
|
|
8692
|
-
},
|
|
8702
|
+
}, lf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Xc }, Symbol.toStringTag, { value: "Module" }));
|
|
8693
8703
|
export {
|
|
8694
|
-
|
|
8695
|
-
|
|
8696
|
-
|
|
8704
|
+
lf as ChatBubbleAssistant,
|
|
8705
|
+
Ou as Markdown,
|
|
8706
|
+
iu as SKIP,
|
|
8697
8707
|
cn as convert,
|
|
8698
8708
|
j as factorySpace,
|
|
8699
|
-
|
|
8709
|
+
Mi as find,
|
|
8700
8710
|
nr as getDefaultExportFromCjs,
|
|
8701
|
-
|
|
8702
|
-
|
|
8711
|
+
Hi as html,
|
|
8712
|
+
As as longestStreak,
|
|
8703
8713
|
D as markdownLineEnding,
|
|
8704
8714
|
zn as normalize,
|
|
8705
|
-
|
|
8706
|
-
|
|
8707
|
-
|
|
8715
|
+
rf as parse,
|
|
8716
|
+
tf as parse$1,
|
|
8717
|
+
Qc as remarkGfm,
|
|
8708
8718
|
Un as svg,
|
|
8709
8719
|
et as visit,
|
|
8710
8720
|
Or as visitParents
|