@versini/sassysaint 8.1.5 → 8.1.6
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.MheiaI_X.js → App.Bu_Y7DBI.js} +358 -350
- package/dist/chunks/{ChatBubbleAssistant.BfpBoYHf.js → ChatBubbleAssistant.DgrebQgo.js} +808 -807
- package/dist/chunks/{MarkdownWithExtra.Bm6mMa2f.js → MarkdownWithExtra.Cwkg1Zvf.js} +2 -2
- package/dist/chunks/{index.CCfmmZLd.js → index.D9EM1LM1.js} +23 -20
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +4 -4
@@ -1,8 +1,9 @@
|
|
1
|
-
import { Fragment as
|
2
|
-
import { getDefaultExportFromCjs as
|
3
|
-
import { lazy as
|
4
|
-
import
|
5
|
-
|
1
|
+
import { Fragment as mi, jsx as de, jsxs as gi } from "react/jsx-runtime";
|
2
|
+
import { getDefaultExportFromCjs as er, ChatContext as di, E as yi, Re as ut } from "./App.Bu_Y7DBI.js";
|
3
|
+
import { lazy as ki, useContext as xi, Suspense as bi } from "react";
|
4
|
+
import wi from "clsx";
|
5
|
+
import { LOCAL_STORAGE_PREFIX as Si, LOCAL_STORAGE_CHAT_DETAILS as Ci, convertCamelCaseToReadable as Ei, ROLE_INTERNAL as Ii } from "./index.D9EM1LM1.js";
|
6
|
+
function rf(e) {
|
6
7
|
const t = [], n = String(e || "");
|
7
8
|
let r = n.indexOf(","), i = 0, o = !1;
|
8
9
|
for (; !o; ) {
|
@@ -12,22 +13,22 @@ function ef(e) {
|
|
12
13
|
}
|
13
14
|
return t;
|
14
15
|
}
|
15
|
-
function
|
16
|
+
function Ai(e, t) {
|
16
17
|
const n = {};
|
17
18
|
return (e[e.length - 1] === "" ? [...e, ""] : e).join(
|
18
19
|
(n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")
|
19
20
|
).trim();
|
20
21
|
}
|
21
|
-
const
|
22
|
+
const Ti = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Pi = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Li = {};
|
22
23
|
function at(e, t) {
|
23
|
-
return (
|
24
|
+
return (Li.jsx ? Pi : Ti).test(e);
|
24
25
|
}
|
25
|
-
const
|
26
|
-
function
|
26
|
+
const vi = /[ \t\n\f\r]/g;
|
27
|
+
function zi(e) {
|
27
28
|
return typeof e == "object" ? e.type === "text" ? st(e.value) : !1 : st(e);
|
28
29
|
}
|
29
30
|
function st(e) {
|
30
|
-
return e.replace(
|
31
|
+
return e.replace(vi, "") === "";
|
31
32
|
}
|
32
33
|
class $e {
|
33
34
|
/**
|
@@ -43,7 +44,7 @@ class $e {
|
|
43
44
|
$e.prototype.property = {};
|
44
45
|
$e.prototype.normal = {};
|
45
46
|
$e.prototype.space = null;
|
46
|
-
function
|
47
|
+
function nr(e, t) {
|
47
48
|
const n = {}, r = {};
|
48
49
|
let i = -1;
|
49
50
|
for (; ++i < e.length; )
|
@@ -73,12 +74,12 @@ ie.prototype.spaceSeparated = !1;
|
|
73
74
|
ie.prototype.commaOrSpaceSeparated = !1;
|
74
75
|
ie.prototype.mustUseProperty = !1;
|
75
76
|
ie.prototype.defined = !1;
|
76
|
-
let
|
77
|
-
const R = Ie(), W = Ie(),
|
77
|
+
let Di = 0;
|
78
|
+
const R = Ie(), W = Ie(), tr = Ie(), S = Ie(), $ = Ie(), ze = Ie(), ne = Ie();
|
78
79
|
function Ie() {
|
79
|
-
return 2 ** ++
|
80
|
+
return 2 ** ++Di;
|
80
81
|
}
|
81
|
-
const Ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, boolean: R, booleanish: W, commaOrSpaceSeparated: ne, commaSeparated: ze, number: S, overloadedBoolean:
|
82
|
+
const Ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, boolean: R, booleanish: W, commaOrSpaceSeparated: ne, commaSeparated: ze, number: S, overloadedBoolean: tr, spaceSeparated: $ }, Symbol.toStringTag, { value: "Module" })), fn = Object.keys(Ln);
|
82
83
|
class Nn extends ie {
|
83
84
|
/**
|
84
85
|
* @constructor
|
@@ -100,12 +101,12 @@ Nn.prototype.defined = !0;
|
|
100
101
|
function ct(e, t, n) {
|
101
102
|
n && (e[t] = n);
|
102
103
|
}
|
103
|
-
const
|
104
|
+
const Fi = {}.hasOwnProperty;
|
104
105
|
function Fe(e) {
|
105
106
|
const t = {}, n = {};
|
106
107
|
let r;
|
107
108
|
for (r in e.properties)
|
108
|
-
if (
|
109
|
+
if (Fi.call(e.properties, r)) {
|
109
110
|
const i = e.properties[r], o = new Nn(
|
110
111
|
r,
|
111
112
|
e.transform(e.attributes || {}, r),
|
@@ -116,7 +117,7 @@ function Fe(e) {
|
|
116
117
|
}
|
117
118
|
return new $e(t, n, e.space);
|
118
119
|
}
|
119
|
-
const
|
120
|
+
const rr = Fe({
|
120
121
|
space: "xlink",
|
121
122
|
transform(e, t) {
|
122
123
|
return "xlink:" + t.slice(5).toLowerCase();
|
@@ -130,25 +131,25 @@ const tr = Fe({
|
|
130
131
|
xLinkTitle: null,
|
131
132
|
xLinkType: null
|
132
133
|
}
|
133
|
-
}),
|
134
|
+
}), ir = Fe({
|
134
135
|
space: "xml",
|
135
136
|
transform(e, t) {
|
136
137
|
return "xml:" + t.slice(3).toLowerCase();
|
137
138
|
},
|
138
139
|
properties: { xmlLang: null, xmlBase: null, xmlSpace: null }
|
139
140
|
});
|
140
|
-
function
|
141
|
+
function lr(e, t) {
|
141
142
|
return t in e ? e[t] : t;
|
142
143
|
}
|
143
|
-
function
|
144
|
-
return
|
144
|
+
function or(e, t) {
|
145
|
+
return lr(e, t.toLowerCase());
|
145
146
|
}
|
146
|
-
const
|
147
|
+
const ur = Fe({
|
147
148
|
space: "xmlns",
|
148
149
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
149
|
-
transform:
|
150
|
+
transform: or,
|
150
151
|
properties: { xmlns: null, xmlnsXLink: null }
|
151
|
-
}),
|
152
|
+
}), ar = Fe({
|
152
153
|
transform(e, t) {
|
153
154
|
return t === "role" ? t : "aria-" + t.slice(4).toLowerCase();
|
154
155
|
},
|
@@ -203,7 +204,7 @@ const or = Fe({
|
|
203
204
|
ariaValueText: null,
|
204
205
|
role: null
|
205
206
|
}
|
206
|
-
}),
|
207
|
+
}), Ri = Fe({
|
207
208
|
space: "html",
|
208
209
|
attributes: {
|
209
210
|
acceptcharset: "accept-charset",
|
@@ -211,7 +212,7 @@ const or = Fe({
|
|
211
212
|
htmlfor: "for",
|
212
213
|
httpequiv: "http-equiv"
|
213
214
|
},
|
214
|
-
transform:
|
215
|
+
transform: or,
|
215
216
|
mustUseProperty: ["checked", "multiple", "muted", "selected"],
|
216
217
|
properties: {
|
217
218
|
// Standard Properties.
|
@@ -253,7 +254,7 @@ const or = Fe({
|
|
253
254
|
dir: null,
|
254
255
|
dirName: null,
|
255
256
|
disabled: R,
|
256
|
-
download:
|
257
|
+
download: tr,
|
257
258
|
draggable: W,
|
258
259
|
encType: null,
|
259
260
|
enterKeyHint: null,
|
@@ -564,7 +565,7 @@ const or = Fe({
|
|
564
565
|
security: null,
|
565
566
|
unselectable: null
|
566
567
|
}
|
567
|
-
}),
|
568
|
+
}), Oi = Fe({
|
568
569
|
space: "svg",
|
569
570
|
attributes: {
|
570
571
|
accentHeight: "accent-height",
|
@@ -741,7 +742,7 @@ const or = Fe({
|
|
741
742
|
playbackOrder: "playbackorder",
|
742
743
|
timelineBegin: "timelinebegin"
|
743
744
|
},
|
744
|
-
transform:
|
745
|
+
transform: lr,
|
745
746
|
properties: {
|
746
747
|
about: ne,
|
747
748
|
accentHeight: S,
|
@@ -1123,20 +1124,20 @@ const or = Fe({
|
|
1123
1124
|
z: null,
|
1124
1125
|
zoomAndPan: null
|
1125
1126
|
}
|
1126
|
-
}),
|
1127
|
-
function
|
1127
|
+
}), _i = /^data[-\w.:]+$/i, ft = /-[a-z]/g, Mi = /[A-Z]/g;
|
1128
|
+
function Ni(e, t) {
|
1128
1129
|
const n = Pn(t);
|
1129
1130
|
let r = t, i = ie;
|
1130
1131
|
if (n in e.normal)
|
1131
1132
|
return e.property[e.normal[n]];
|
1132
|
-
if (n.length > 4 && n.slice(0, 4) === "data" &&
|
1133
|
+
if (n.length > 4 && n.slice(0, 4) === "data" && _i.test(t)) {
|
1133
1134
|
if (t.charAt(4) === "-") {
|
1134
|
-
const o = t.slice(5).replace(ft,
|
1135
|
+
const o = t.slice(5).replace(ft, ji);
|
1135
1136
|
r = "data" + o.charAt(0).toUpperCase() + o.slice(1);
|
1136
1137
|
} else {
|
1137
1138
|
const o = t.slice(4);
|
1138
1139
|
if (!ft.test(o)) {
|
1139
|
-
let l = o.replace(
|
1140
|
+
let l = o.replace(Mi, Bi);
|
1140
1141
|
l.charAt(0) !== "-" && (l = "-" + l), t = "data" + l;
|
1141
1142
|
}
|
1142
1143
|
}
|
@@ -1144,13 +1145,13 @@ function _i(e, t) {
|
|
1144
1145
|
}
|
1145
1146
|
return new i(r, t);
|
1146
1147
|
}
|
1147
|
-
function
|
1148
|
+
function Bi(e) {
|
1148
1149
|
return "-" + e.toLowerCase();
|
1149
1150
|
}
|
1150
|
-
function
|
1151
|
+
function ji(e) {
|
1151
1152
|
return e.charAt(1).toUpperCase();
|
1152
1153
|
}
|
1153
|
-
const
|
1154
|
+
const Hi = {
|
1154
1155
|
classId: "classID",
|
1155
1156
|
dataType: "datatype",
|
1156
1157
|
itemId: "itemID",
|
@@ -1168,16 +1169,16 @@ const Bi = {
|
|
1168
1169
|
xLinkTitle: "xlinkTitle",
|
1169
1170
|
xLinkType: "xlinkType",
|
1170
1171
|
xmlnsXLink: "xmlnsXlink"
|
1171
|
-
},
|
1172
|
-
function
|
1172
|
+
}, Ui = nr([ir, rr, ur, ar, Ri], "html"), Bn = nr([ir, rr, ur, ar, Oi], "svg");
|
1173
|
+
function lf(e) {
|
1173
1174
|
const t = String(e || "").trim();
|
1174
1175
|
return t ? t.split(/[ \t\n\r\f]+/g) : [];
|
1175
1176
|
}
|
1176
|
-
function
|
1177
|
+
function qi(e) {
|
1177
1178
|
return e.join(" ").trim();
|
1178
1179
|
}
|
1179
1180
|
var Ne = {}, hn, ht;
|
1180
|
-
function
|
1181
|
+
function Vi() {
|
1181
1182
|
if (ht) return hn;
|
1182
1183
|
ht = 1;
|
1183
1184
|
var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, n = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, i = /^:\s*/, o = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, l = /^[;\s]*/, u = /^\s+|\s+$/g, a = `
|
@@ -1267,14 +1268,14 @@ function Ui() {
|
|
1267
1268
|
return hn;
|
1268
1269
|
}
|
1269
1270
|
var pt;
|
1270
|
-
function
|
1271
|
+
function $i() {
|
1271
1272
|
if (pt) return Ne;
|
1272
1273
|
pt = 1;
|
1273
1274
|
var e = Ne.__importDefault || function(r) {
|
1274
1275
|
return r && r.__esModule ? r : { default: r };
|
1275
1276
|
};
|
1276
1277
|
Object.defineProperty(Ne, "__esModule", { value: !0 }), Ne.default = n;
|
1277
|
-
var t = e(/* @__PURE__ */
|
1278
|
+
var t = e(/* @__PURE__ */ Vi());
|
1278
1279
|
function n(r, i) {
|
1279
1280
|
var o = null;
|
1280
1281
|
if (!r || typeof r != "string")
|
@@ -1289,9 +1290,9 @@ function qi() {
|
|
1289
1290
|
}
|
1290
1291
|
return Ne;
|
1291
1292
|
}
|
1292
|
-
var
|
1293
|
-
const mt = /* @__PURE__ */
|
1294
|
-
function
|
1293
|
+
var Wi = /* @__PURE__ */ $i();
|
1294
|
+
const mt = /* @__PURE__ */ er(Wi), Qi = mt.default || mt, sr = cr("end"), jn = cr("start");
|
1295
|
+
function cr(e) {
|
1295
1296
|
return t;
|
1296
1297
|
function t(n) {
|
1297
1298
|
const r = n && n.position && n.position[e] || {};
|
@@ -1303,8 +1304,8 @@ function sr(e) {
|
|
1303
1304
|
};
|
1304
1305
|
}
|
1305
1306
|
}
|
1306
|
-
function
|
1307
|
-
const t = jn(e), n =
|
1307
|
+
function Yi(e) {
|
1308
|
+
const t = jn(e), n = sr(e);
|
1308
1309
|
if (t && n)
|
1309
1310
|
return { start: t, end: n };
|
1310
1311
|
}
|
@@ -1407,8 +1408,8 @@ K.prototype.fatal = void 0;
|
|
1407
1408
|
K.prototype.place = void 0;
|
1408
1409
|
K.prototype.ruleId = void 0;
|
1409
1410
|
K.prototype.source = void 0;
|
1410
|
-
const Hn = {}.hasOwnProperty,
|
1411
|
-
function
|
1411
|
+
const Hn = {}.hasOwnProperty, Gi = /* @__PURE__ */ new Map(), Xi = /[A-Z]/g, Ki = /-([a-z])/g, Ji = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), Zi = /* @__PURE__ */ new Set(["td", "th"]), fr = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
1412
|
+
function el(e, t) {
|
1412
1413
|
if (!t || t.Fragment === void 0)
|
1413
1414
|
throw new TypeError("Expected `Fragment` in options");
|
1414
1415
|
const n = t.filePath || void 0;
|
@@ -1418,13 +1419,13 @@ function Ji(e, t) {
|
|
1418
1419
|
throw new TypeError(
|
1419
1420
|
"Expected `jsxDEV` in options when `development: true`"
|
1420
1421
|
);
|
1421
|
-
r =
|
1422
|
+
r = al(n, t.jsxDEV);
|
1422
1423
|
} else {
|
1423
1424
|
if (typeof t.jsx != "function")
|
1424
1425
|
throw new TypeError("Expected `jsx` in production options");
|
1425
1426
|
if (typeof t.jsxs != "function")
|
1426
1427
|
throw new TypeError("Expected `jsxs` in production options");
|
1427
|
-
r =
|
1428
|
+
r = ul(n, t.jsx, t.jsxs);
|
1428
1429
|
}
|
1429
1430
|
const i = {
|
1430
1431
|
Fragment: t.Fragment,
|
@@ -1437,10 +1438,10 @@ function Ji(e, t) {
|
|
1437
1438
|
ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
|
1438
1439
|
passKeys: t.passKeys !== !1,
|
1439
1440
|
passNode: t.passNode || !1,
|
1440
|
-
schema: t.space === "svg" ? Bn :
|
1441
|
+
schema: t.space === "svg" ? Bn : Ui,
|
1441
1442
|
stylePropertyNameCase: t.stylePropertyNameCase || "dom",
|
1442
1443
|
tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
|
1443
|
-
}, o =
|
1444
|
+
}, o = hr(i, e, void 0);
|
1444
1445
|
return o && typeof o != "string" ? o : i.create(
|
1445
1446
|
e,
|
1446
1447
|
i.Fragment,
|
@@ -1448,31 +1449,31 @@ function Ji(e, t) {
|
|
1448
1449
|
void 0
|
1449
1450
|
);
|
1450
1451
|
}
|
1451
|
-
function
|
1452
|
+
function hr(e, t, n) {
|
1452
1453
|
if (t.type === "element")
|
1453
|
-
return
|
1454
|
+
return nl(e, t, n);
|
1454
1455
|
if (t.type === "mdxFlowExpression" || t.type === "mdxTextExpression")
|
1455
|
-
return
|
1456
|
+
return tl(e, t);
|
1456
1457
|
if (t.type === "mdxJsxFlowElement" || t.type === "mdxJsxTextElement")
|
1457
|
-
return
|
1458
|
+
return il(e, t, n);
|
1458
1459
|
if (t.type === "mdxjsEsm")
|
1459
|
-
return
|
1460
|
+
return rl(e, t);
|
1460
1461
|
if (t.type === "root")
|
1461
|
-
return
|
1462
|
+
return ll(e, t, n);
|
1462
1463
|
if (t.type === "text")
|
1463
|
-
return
|
1464
|
+
return ol(e, t);
|
1464
1465
|
}
|
1465
|
-
function
|
1466
|
+
function nl(e, t, n) {
|
1466
1467
|
const r = e.schema;
|
1467
1468
|
let i = r;
|
1468
1469
|
t.tagName.toLowerCase() === "svg" && r.space === "html" && (i = Bn, e.schema = i), e.ancestors.push(t);
|
1469
|
-
const o =
|
1470
|
+
const o = mr(e, t.tagName, !1), l = sl(e, t);
|
1470
1471
|
let u = qn(e, t);
|
1471
|
-
return
|
1472
|
-
return typeof a == "string" ? !
|
1473
|
-
})),
|
1472
|
+
return Ji.has(t.tagName) && (u = u.filter(function(a) {
|
1473
|
+
return typeof a == "string" ? !zi(a) : !0;
|
1474
|
+
})), pr(e, l, o, t), Un(l, u), e.ancestors.pop(), e.schema = r, e.create(t, o, l, n);
|
1474
1475
|
}
|
1475
|
-
function
|
1476
|
+
function tl(e, t) {
|
1476
1477
|
if (t.data && t.data.estree && e.evaluater) {
|
1477
1478
|
const r = t.data.estree.body[0];
|
1478
1479
|
return (
|
@@ -1482,7 +1483,7 @@ function el(e, t) {
|
|
1482
1483
|
}
|
1483
1484
|
qe(e, t.position);
|
1484
1485
|
}
|
1485
|
-
function
|
1486
|
+
function rl(e, t) {
|
1486
1487
|
if (t.data && t.data.estree && e.evaluater)
|
1487
1488
|
return (
|
1488
1489
|
/** @type {Child | undefined} */
|
@@ -1490,21 +1491,21 @@ function nl(e, t) {
|
|
1490
1491
|
);
|
1491
1492
|
qe(e, t.position);
|
1492
1493
|
}
|
1493
|
-
function
|
1494
|
+
function il(e, t, n) {
|
1494
1495
|
const r = e.schema;
|
1495
1496
|
let i = r;
|
1496
1497
|
t.name === "svg" && r.space === "html" && (i = Bn, e.schema = i), e.ancestors.push(t);
|
1497
|
-
const o = t.name === null ? e.Fragment :
|
1498
|
-
return
|
1498
|
+
const o = t.name === null ? e.Fragment : mr(e, t.name, !0), l = cl(e, t), u = qn(e, t);
|
1499
|
+
return pr(e, l, o, t), Un(l, u), e.ancestors.pop(), e.schema = r, e.create(t, o, l, n);
|
1499
1500
|
}
|
1500
|
-
function
|
1501
|
+
function ll(e, t, n) {
|
1501
1502
|
const r = {};
|
1502
1503
|
return Un(r, qn(e, t)), e.create(t, e.Fragment, r, n);
|
1503
1504
|
}
|
1504
|
-
function
|
1505
|
+
function ol(e, t) {
|
1505
1506
|
return t.value;
|
1506
1507
|
}
|
1507
|
-
function
|
1508
|
+
function pr(e, t, n, r) {
|
1508
1509
|
typeof n != "string" && n !== e.Fragment && e.passNode && (t.node = r);
|
1509
1510
|
}
|
1510
1511
|
function Un(e, t) {
|
@@ -1513,14 +1514,14 @@ function Un(e, t) {
|
|
1513
1514
|
n && (e.children = n);
|
1514
1515
|
}
|
1515
1516
|
}
|
1516
|
-
function
|
1517
|
+
function ul(e, t, n) {
|
1517
1518
|
return r;
|
1518
1519
|
function r(i, o, l, u) {
|
1519
1520
|
const s = Array.isArray(l.children) ? n : t;
|
1520
1521
|
return u ? s(o, l, u) : s(o, l);
|
1521
1522
|
}
|
1522
1523
|
}
|
1523
|
-
function
|
1524
|
+
function al(e, t) {
|
1524
1525
|
return n;
|
1525
1526
|
function n(r, i, o, l) {
|
1526
1527
|
const u = Array.isArray(o.children), a = jn(r);
|
@@ -1538,15 +1539,15 @@ function ol(e, t) {
|
|
1538
1539
|
);
|
1539
1540
|
}
|
1540
1541
|
}
|
1541
|
-
function
|
1542
|
+
function sl(e, t) {
|
1542
1543
|
const n = {};
|
1543
1544
|
let r, i;
|
1544
1545
|
for (i in t.properties)
|
1545
1546
|
if (i !== "children" && Hn.call(t.properties, i)) {
|
1546
|
-
const o =
|
1547
|
+
const o = fl(e, i, t.properties[i]);
|
1547
1548
|
if (o) {
|
1548
1549
|
const [l, u] = o;
|
1549
|
-
e.tableCellAlignToStyle && l === "align" && typeof u == "string" &&
|
1550
|
+
e.tableCellAlignToStyle && l === "align" && typeof u == "string" && Zi.has(t.tagName) ? r = u : n[l] = u;
|
1550
1551
|
}
|
1551
1552
|
}
|
1552
1553
|
if (r) {
|
@@ -1558,7 +1559,7 @@ function ul(e, t) {
|
|
1558
1559
|
}
|
1559
1560
|
return n;
|
1560
1561
|
}
|
1561
|
-
function
|
1562
|
+
function cl(e, t) {
|
1562
1563
|
const n = {};
|
1563
1564
|
for (const r of t.attributes)
|
1564
1565
|
if (r.type === "mdxJsxExpressionAttribute")
|
@@ -1589,7 +1590,7 @@ function al(e, t) {
|
|
1589
1590
|
function qn(e, t) {
|
1590
1591
|
const n = [];
|
1591
1592
|
let r = -1;
|
1592
|
-
const i = e.passKeys ? /* @__PURE__ */ new Map() :
|
1593
|
+
const i = e.passKeys ? /* @__PURE__ */ new Map() : Gi;
|
1593
1594
|
for (; ++r < t.children.length; ) {
|
1594
1595
|
const o = t.children[r];
|
1595
1596
|
let l;
|
@@ -1600,28 +1601,28 @@ function qn(e, t) {
|
|
1600
1601
|
l = a + "-" + s, i.set(a, s + 1);
|
1601
1602
|
}
|
1602
1603
|
}
|
1603
|
-
const u =
|
1604
|
+
const u = hr(e, o, l);
|
1604
1605
|
u !== void 0 && n.push(u);
|
1605
1606
|
}
|
1606
1607
|
return n;
|
1607
1608
|
}
|
1608
|
-
function
|
1609
|
-
const r =
|
1609
|
+
function fl(e, t, n) {
|
1610
|
+
const r = Ni(e.schema, t);
|
1610
1611
|
if (!(n == null || typeof n == "number" && Number.isNaN(n))) {
|
1611
|
-
if (Array.isArray(n) && (n = r.commaSeparated ?
|
1612
|
-
let i = typeof n == "object" ? n :
|
1613
|
-
return e.stylePropertyNameCase === "css" && (i =
|
1612
|
+
if (Array.isArray(n) && (n = r.commaSeparated ? Ai(n) : qi(n)), r.property === "style") {
|
1613
|
+
let i = typeof n == "object" ? n : hl(e, String(n));
|
1614
|
+
return e.stylePropertyNameCase === "css" && (i = pl(i)), ["style", i];
|
1614
1615
|
}
|
1615
1616
|
return [
|
1616
|
-
e.elementAttributeNameCase === "react" && r.space ?
|
1617
|
+
e.elementAttributeNameCase === "react" && r.space ? Hi[r.property] || r.property : r.attribute,
|
1617
1618
|
n
|
1618
1619
|
];
|
1619
1620
|
}
|
1620
1621
|
}
|
1621
|
-
function
|
1622
|
+
function hl(e, t) {
|
1622
1623
|
const n = {};
|
1623
1624
|
try {
|
1624
|
-
|
1625
|
+
Qi(t, r);
|
1625
1626
|
} catch (i) {
|
1626
1627
|
if (!e.ignoreInvalidStyle) {
|
1627
1628
|
const o = (
|
@@ -1633,16 +1634,16 @@ function cl(e, t) {
|
|
1633
1634
|
ruleId: "style",
|
1634
1635
|
source: "hast-util-to-jsx-runtime"
|
1635
1636
|
});
|
1636
|
-
throw l.file = e.filePath || void 0, l.url =
|
1637
|
+
throw l.file = e.filePath || void 0, l.url = fr + "#cannot-parse-style-attribute", l;
|
1637
1638
|
}
|
1638
1639
|
}
|
1639
1640
|
return n;
|
1640
1641
|
function r(i, o) {
|
1641
1642
|
let l = i;
|
1642
|
-
l.slice(0, 2) !== "--" && (l.slice(0, 4) === "-ms-" && (l = "ms-" + l.slice(4)), l = l.replace(
|
1643
|
+
l.slice(0, 2) !== "--" && (l.slice(0, 4) === "-ms-" && (l = "ms-" + l.slice(4)), l = l.replace(Ki, gl)), n[l] = o;
|
1643
1644
|
}
|
1644
1645
|
}
|
1645
|
-
function
|
1646
|
+
function mr(e, t, n) {
|
1646
1647
|
let r;
|
1647
1648
|
if (!n)
|
1648
1649
|
r = { type: "Literal", value: t };
|
@@ -1683,23 +1684,23 @@ function qe(e, t) {
|
|
1683
1684
|
source: "hast-util-to-jsx-runtime"
|
1684
1685
|
}
|
1685
1686
|
);
|
1686
|
-
throw n.file = e.filePath || void 0, n.url =
|
1687
|
+
throw n.file = e.filePath || void 0, n.url = fr + "#cannot-handle-mdx-estrees-without-createevaluater", n;
|
1687
1688
|
}
|
1688
|
-
function
|
1689
|
+
function pl(e) {
|
1689
1690
|
const t = {};
|
1690
1691
|
let n;
|
1691
1692
|
for (n in e)
|
1692
|
-
Hn.call(e, n) && (t[
|
1693
|
+
Hn.call(e, n) && (t[ml(n)] = e[n]);
|
1693
1694
|
return t;
|
1694
1695
|
}
|
1695
|
-
function
|
1696
|
-
let t = e.replace(
|
1696
|
+
function ml(e) {
|
1697
|
+
let t = e.replace(Xi, dl);
|
1697
1698
|
return t.slice(0, 3) === "ms-" && (t = "-" + t), t;
|
1698
1699
|
}
|
1699
|
-
function
|
1700
|
+
function gl(e, t) {
|
1700
1701
|
return t.toUpperCase();
|
1701
1702
|
}
|
1702
|
-
function
|
1703
|
+
function dl(e) {
|
1703
1704
|
return "-" + e.toLowerCase();
|
1704
1705
|
}
|
1705
1706
|
const pn = {
|
@@ -1724,13 +1725,13 @@ const pn = {
|
|
1724
1725
|
"track",
|
1725
1726
|
"video"
|
1726
1727
|
]
|
1727
|
-
},
|
1728
|
+
}, yl = {};
|
1728
1729
|
function Vn(e, t) {
|
1729
|
-
const n =
|
1730
|
-
return
|
1730
|
+
const n = yl, r = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, i = typeof n.includeHtml == "boolean" ? n.includeHtml : !0;
|
1731
|
+
return gr(e, r, i);
|
1731
1732
|
}
|
1732
|
-
function
|
1733
|
-
if (
|
1733
|
+
function gr(e, t, n) {
|
1734
|
+
if (kl(e)) {
|
1734
1735
|
if ("value" in e)
|
1735
1736
|
return e.type === "html" && !n ? "" : e.value;
|
1736
1737
|
if (t && "alt" in e && e.alt)
|
@@ -1744,10 +1745,10 @@ function yt(e, t, n) {
|
|
1744
1745
|
const r = [];
|
1745
1746
|
let i = -1;
|
1746
1747
|
for (; ++i < e.length; )
|
1747
|
-
r[i] =
|
1748
|
+
r[i] = gr(e[i], t, n);
|
1748
1749
|
return r.join("");
|
1749
1750
|
}
|
1750
|
-
function
|
1751
|
+
function kl(e) {
|
1751
1752
|
return !!(e && typeof e == "object");
|
1752
1753
|
}
|
1753
1754
|
const kt = document.createElement("i");
|
@@ -1770,14 +1771,14 @@ function re(e, t) {
|
|
1770
1771
|
return e.length > 0 ? (te(e, e.length, 0, t), e) : t;
|
1771
1772
|
}
|
1772
1773
|
const xt = {}.hasOwnProperty;
|
1773
|
-
function
|
1774
|
+
function dr(e) {
|
1774
1775
|
const t = {};
|
1775
1776
|
let n = -1;
|
1776
1777
|
for (; ++n < e.length; )
|
1777
|
-
|
1778
|
+
xl(t, e[n]);
|
1778
1779
|
return t;
|
1779
1780
|
}
|
1780
|
-
function
|
1781
|
+
function xl(e, t) {
|
1781
1782
|
let n;
|
1782
1783
|
for (n in t) {
|
1783
1784
|
const i = (xt.call(e, n) ? e[n] : void 0) || (e[n] = {}), o = t[n];
|
@@ -1786,7 +1787,7 @@ function yl(e, t) {
|
|
1786
1787
|
for (l in o) {
|
1787
1788
|
xt.call(i, l) || (i[l] = []);
|
1788
1789
|
const u = o[l];
|
1789
|
-
|
1790
|
+
bl(
|
1790
1791
|
// @ts-expect-error Looks like a list.
|
1791
1792
|
i[l],
|
1792
1793
|
Array.isArray(u) ? u : u ? [u] : []
|
@@ -1794,14 +1795,14 @@ function yl(e, t) {
|
|
1794
1795
|
}
|
1795
1796
|
}
|
1796
1797
|
}
|
1797
|
-
function
|
1798
|
+
function bl(e, t) {
|
1798
1799
|
let n = -1;
|
1799
1800
|
const r = [];
|
1800
1801
|
for (; ++n < t.length; )
|
1801
1802
|
(t[n].add === "after" ? e : r).push(t[n]);
|
1802
1803
|
te(e, 0, 0, r);
|
1803
1804
|
}
|
1804
|
-
function
|
1805
|
+
function yr(e, t) {
|
1805
1806
|
const n = Number.parseInt(e, t);
|
1806
1807
|
return (
|
1807
1808
|
// C0 except for HT, LF, FF, CR, space.
|
@@ -1817,7 +1818,7 @@ function dr(e, t) {
|
|
1817
1818
|
function se(e) {
|
1818
1819
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
1819
1820
|
}
|
1820
|
-
const J = be(/[A-Za-z]/), X = be(/[\dA-Za-z]/),
|
1821
|
+
const J = be(/[A-Za-z]/), X = be(/[\dA-Za-z]/), wl = be(/[#-'*+\--9=?A-Z^-~]/);
|
1821
1822
|
function en(e) {
|
1822
1823
|
return (
|
1823
1824
|
// Special whitespace codes (which have negative values), C0 and Control
|
@@ -1825,7 +1826,7 @@ function en(e) {
|
|
1825
1826
|
e !== null && (e < 32 || e === 127)
|
1826
1827
|
);
|
1827
1828
|
}
|
1828
|
-
const zn = be(/\d/),
|
1829
|
+
const zn = be(/\d/), Sl = be(/[\dA-Fa-f]/), Cl = be(/[!-/:-@[-`{-~]/);
|
1829
1830
|
function z(e) {
|
1830
1831
|
return e !== null && e < -2;
|
1831
1832
|
}
|
@@ -1872,10 +1873,10 @@ function j(e, t, n, r) {
|
|
1872
1873
|
return N(a) && o++ < i ? (e.consume(a), u) : (e.exit(n), t(a));
|
1873
1874
|
}
|
1874
1875
|
}
|
1875
|
-
const
|
1876
|
-
tokenize:
|
1876
|
+
const El = {
|
1877
|
+
tokenize: Il
|
1877
1878
|
};
|
1878
|
-
function
|
1879
|
+
function Il(e) {
|
1879
1880
|
const t = e.attempt(this.parser.constructs.contentInitial, r, i);
|
1880
1881
|
let n;
|
1881
1882
|
return t;
|
@@ -1904,12 +1905,12 @@ function Cl(e) {
|
|
1904
1905
|
return z(u) ? (e.consume(u), e.exit("chunkText"), o) : (e.consume(u), l);
|
1905
1906
|
}
|
1906
1907
|
}
|
1907
|
-
const
|
1908
|
-
tokenize:
|
1908
|
+
const Al = {
|
1909
|
+
tokenize: Tl
|
1909
1910
|
}, bt = {
|
1910
|
-
tokenize:
|
1911
|
+
tokenize: Pl
|
1911
1912
|
};
|
1912
|
-
function
|
1913
|
+
function Tl(e) {
|
1913
1914
|
const t = this, n = [];
|
1914
1915
|
let r = 0, i, o, l;
|
1915
1916
|
return u;
|
@@ -2021,7 +2022,7 @@ function Il(e) {
|
|
2021
2022
|
i.write([null]), o = void 0, i = void 0, t.containerState._closeFlow = void 0;
|
2022
2023
|
}
|
2023
2024
|
}
|
2024
|
-
function
|
2025
|
+
function Pl(e, t, n) {
|
2025
2026
|
return j(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
2026
2027
|
}
|
2027
2028
|
function De(e) {
|
@@ -2041,10 +2042,10 @@ function un(e, t, n) {
|
|
2041
2042
|
}
|
2042
2043
|
const Dn = {
|
2043
2044
|
name: "attention",
|
2044
|
-
resolveAll:
|
2045
|
-
tokenize:
|
2045
|
+
resolveAll: Ll,
|
2046
|
+
tokenize: vl
|
2046
2047
|
};
|
2047
|
-
function
|
2048
|
+
function Ll(e, t) {
|
2048
2049
|
let n = -1, r, i, o, l, u, a, s, f;
|
2049
2050
|
for (; ++n < e.length; )
|
2050
2051
|
if (e[n][0] === "enter" && e[n][1].type === "attentionSequence" && e[n][1]._close) {
|
@@ -2099,7 +2100,7 @@ function Tl(e, t) {
|
|
2099
2100
|
e[n][1].type === "attentionSequence" && (e[n][1].type = "data");
|
2100
2101
|
return e;
|
2101
2102
|
}
|
2102
|
-
function
|
2103
|
+
function vl(e, t) {
|
2103
2104
|
const n = this.parser.constructs.attentionMarkers.null, r = this.previous, i = De(r);
|
2104
2105
|
let o;
|
2105
2106
|
return l;
|
@@ -2116,11 +2117,11 @@ function Pl(e, t) {
|
|
2116
2117
|
function wt(e, t) {
|
2117
2118
|
e.column += t, e.offset += t, e._bufferIndex += t;
|
2118
2119
|
}
|
2119
|
-
const
|
2120
|
+
const zl = {
|
2120
2121
|
name: "autolink",
|
2121
|
-
tokenize:
|
2122
|
+
tokenize: Dl
|
2122
2123
|
};
|
2123
|
-
function
|
2124
|
+
function Dl(e, t, n) {
|
2124
2125
|
let r = 0;
|
2125
2126
|
return i;
|
2126
2127
|
function i(h) {
|
@@ -2139,7 +2140,7 @@ function vl(e, t, n) {
|
|
2139
2140
|
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 || en(h) ? n(h) : (e.consume(h), a);
|
2140
2141
|
}
|
2141
2142
|
function s(h) {
|
2142
|
-
return h === 64 ? (e.consume(h), f) :
|
2143
|
+
return h === 64 ? (e.consume(h), f) : wl(h) ? (e.consume(h), s) : n(h);
|
2143
2144
|
}
|
2144
2145
|
function f(h) {
|
2145
2146
|
return X(h) ? c(h) : n(h);
|
@@ -2157,9 +2158,9 @@ function vl(e, t, n) {
|
|
2157
2158
|
}
|
2158
2159
|
const We = {
|
2159
2160
|
partial: !0,
|
2160
|
-
tokenize:
|
2161
|
+
tokenize: Fl
|
2161
2162
|
};
|
2162
|
-
function
|
2163
|
+
function Fl(e, t, n) {
|
2163
2164
|
return r;
|
2164
2165
|
function r(o) {
|
2165
2166
|
return N(o) ? j(e, i, "linePrefix")(o) : i(o);
|
@@ -2168,15 +2169,15 @@ function zl(e, t, n) {
|
|
2168
2169
|
return o === null || z(o) ? t(o) : n(o);
|
2169
2170
|
}
|
2170
2171
|
}
|
2171
|
-
const
|
2172
|
+
const kr = {
|
2172
2173
|
continuation: {
|
2173
|
-
tokenize:
|
2174
|
+
tokenize: Ol
|
2174
2175
|
},
|
2175
|
-
exit:
|
2176
|
+
exit: _l,
|
2176
2177
|
name: "blockQuote",
|
2177
|
-
tokenize:
|
2178
|
+
tokenize: Rl
|
2178
2179
|
};
|
2179
|
-
function
|
2180
|
+
function Rl(e, t, n) {
|
2180
2181
|
const r = this;
|
2181
2182
|
return i;
|
2182
2183
|
function i(l) {
|
@@ -2192,37 +2193,37 @@ function Dl(e, t, n) {
|
|
2192
2193
|
return N(l) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(l), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(l));
|
2193
2194
|
}
|
2194
2195
|
}
|
2195
|
-
function
|
2196
|
+
function Ol(e, t, n) {
|
2196
2197
|
const r = this;
|
2197
2198
|
return i;
|
2198
2199
|
function i(l) {
|
2199
2200
|
return N(l) ? j(e, o, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(l) : o(l);
|
2200
2201
|
}
|
2201
2202
|
function o(l) {
|
2202
|
-
return e.attempt(
|
2203
|
+
return e.attempt(kr, t, n)(l);
|
2203
2204
|
}
|
2204
2205
|
}
|
2205
|
-
function
|
2206
|
+
function _l(e) {
|
2206
2207
|
e.exit("blockQuote");
|
2207
2208
|
}
|
2208
|
-
const
|
2209
|
+
const xr = {
|
2209
2210
|
name: "characterEscape",
|
2210
|
-
tokenize:
|
2211
|
+
tokenize: Ml
|
2211
2212
|
};
|
2212
|
-
function
|
2213
|
+
function Ml(e, t, n) {
|
2213
2214
|
return r;
|
2214
2215
|
function r(o) {
|
2215
2216
|
return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(o), e.exit("escapeMarker"), i;
|
2216
2217
|
}
|
2217
2218
|
function i(o) {
|
2218
|
-
return
|
2219
|
+
return Cl(o) ? (e.enter("characterEscapeValue"), e.consume(o), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : n(o);
|
2219
2220
|
}
|
2220
2221
|
}
|
2221
|
-
const
|
2222
|
+
const br = {
|
2222
2223
|
name: "characterReference",
|
2223
|
-
tokenize:
|
2224
|
+
tokenize: Nl
|
2224
2225
|
};
|
2225
|
-
function
|
2226
|
+
function Nl(e, t, n) {
|
2226
2227
|
const r = this;
|
2227
2228
|
let i = 0, o, l;
|
2228
2229
|
return u;
|
@@ -2233,7 +2234,7 @@ function _l(e, t, n) {
|
|
2233
2234
|
return c === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(c), e.exit("characterReferenceMarkerNumeric"), s) : (e.enter("characterReferenceValue"), o = 31, l = X, f(c));
|
2234
2235
|
}
|
2235
2236
|
function s(c) {
|
2236
|
-
return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l =
|
2237
|
+
return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l = Sl, f) : (e.enter("characterReferenceValue"), o = 7, l = zn, f(c));
|
2237
2238
|
}
|
2238
2239
|
function f(c) {
|
2239
2240
|
if (c === 59 && i) {
|
@@ -2245,13 +2246,13 @@ function _l(e, t, n) {
|
|
2245
2246
|
}
|
2246
2247
|
const St = {
|
2247
2248
|
partial: !0,
|
2248
|
-
tokenize:
|
2249
|
+
tokenize: jl
|
2249
2250
|
}, Ct = {
|
2250
2251
|
concrete: !0,
|
2251
2252
|
name: "codeFenced",
|
2252
|
-
tokenize:
|
2253
|
+
tokenize: Bl
|
2253
2254
|
};
|
2254
|
-
function
|
2255
|
+
function Bl(e, t, n) {
|
2255
2256
|
const r = this, i = {
|
2256
2257
|
partial: !0,
|
2257
2258
|
tokenize: _
|
@@ -2322,7 +2323,7 @@ function Ml(e, t, n) {
|
|
2322
2323
|
}
|
2323
2324
|
}
|
2324
2325
|
}
|
2325
|
-
function
|
2326
|
+
function jl(e, t, n) {
|
2326
2327
|
const r = this;
|
2327
2328
|
return i;
|
2328
2329
|
function i(l) {
|
@@ -2334,12 +2335,12 @@ function Nl(e, t, n) {
|
|
2334
2335
|
}
|
2335
2336
|
const mn = {
|
2336
2337
|
name: "codeIndented",
|
2337
|
-
tokenize:
|
2338
|
-
},
|
2338
|
+
tokenize: Ul
|
2339
|
+
}, Hl = {
|
2339
2340
|
partial: !0,
|
2340
|
-
tokenize:
|
2341
|
+
tokenize: ql
|
2341
2342
|
};
|
2342
|
-
function
|
2343
|
+
function Ul(e, t, n) {
|
2343
2344
|
const r = this;
|
2344
2345
|
return i;
|
2345
2346
|
function i(s) {
|
@@ -2350,7 +2351,7 @@ function jl(e, t, n) {
|
|
2350
2351
|
return f && f[1].type === "linePrefix" && f[2].sliceSerialize(f[1], !0).length >= 4 ? l(s) : n(s);
|
2351
2352
|
}
|
2352
2353
|
function l(s) {
|
2353
|
-
return s === null ? a(s) : z(s) ? e.attempt(
|
2354
|
+
return s === null ? a(s) : z(s) ? e.attempt(Hl, l, a)(s) : (e.enter("codeFlowValue"), u(s));
|
2354
2355
|
}
|
2355
2356
|
function u(s) {
|
2356
2357
|
return s === null || z(s) ? (e.exit("codeFlowValue"), l(s)) : (e.consume(s), u);
|
@@ -2359,7 +2360,7 @@ function jl(e, t, n) {
|
|
2359
2360
|
return e.exit("codeIndented"), t(s);
|
2360
2361
|
}
|
2361
2362
|
}
|
2362
|
-
function
|
2363
|
+
function ql(e, t, n) {
|
2363
2364
|
const r = this;
|
2364
2365
|
return i;
|
2365
2366
|
function i(l) {
|
@@ -2370,13 +2371,13 @@ function Hl(e, t, n) {
|
|
2370
2371
|
return u && u[1].type === "linePrefix" && u[2].sliceSerialize(u[1], !0).length >= 4 ? t(l) : z(l) ? i(l) : n(l);
|
2371
2372
|
}
|
2372
2373
|
}
|
2373
|
-
const
|
2374
|
+
const Vl = {
|
2374
2375
|
name: "codeText",
|
2375
|
-
previous:
|
2376
|
-
resolve:
|
2377
|
-
tokenize:
|
2376
|
+
previous: Wl,
|
2377
|
+
resolve: $l,
|
2378
|
+
tokenize: Ql
|
2378
2379
|
};
|
2379
|
-
function
|
2380
|
+
function $l(e) {
|
2380
2381
|
let t = e.length - 4, n = 3, r, i;
|
2381
2382
|
if ((e[n][1].type === "lineEnding" || e[n][1].type === "space") && (e[t][1].type === "lineEnding" || e[t][1].type === "space")) {
|
2382
2383
|
for (r = n; ++r < t; )
|
@@ -2389,10 +2390,10 @@ function ql(e) {
|
|
2389
2390
|
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);
|
2390
2391
|
return e;
|
2391
2392
|
}
|
2392
|
-
function
|
2393
|
+
function Wl(e) {
|
2393
2394
|
return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
|
2394
2395
|
}
|
2395
|
-
function
|
2396
|
+
function Ql(e, t, n) {
|
2396
2397
|
let r = 0, i, o;
|
2397
2398
|
return l;
|
2398
2399
|
function l(c) {
|
@@ -2411,7 +2412,7 @@ function $l(e, t, n) {
|
|
2411
2412
|
return c === 96 ? (e.consume(c), i++, f) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), t(c)) : (o.type = "codeTextData", s(c));
|
2412
2413
|
}
|
2413
2414
|
}
|
2414
|
-
class
|
2415
|
+
class Yl {
|
2415
2416
|
/**
|
2416
2417
|
* @param {ReadonlyArray<T> | null | undefined} [initial]
|
2417
2418
|
* Initial items (optional).
|
@@ -2583,10 +2584,10 @@ function Be(e, t) {
|
|
2583
2584
|
for (; n < t.length; )
|
2584
2585
|
e.push(...t.slice(n, n + 1e4)), n += 1e4;
|
2585
2586
|
}
|
2586
|
-
function
|
2587
|
+
function wr(e) {
|
2587
2588
|
const t = {};
|
2588
2589
|
let n = -1, r, i, o, l, u, a, s;
|
2589
|
-
const f = new
|
2590
|
+
const f = new Yl(e);
|
2590
2591
|
for (; ++n < f.length; ) {
|
2591
2592
|
for (; n in t; )
|
2592
2593
|
n = t[n];
|
@@ -2594,7 +2595,7 @@ function br(e) {
|
|
2594
2595
|
for (; ++o < a.length && a[o][1].type !== "content"; )
|
2595
2596
|
a[o][1].type === "chunkText" && (a[o][1]._isInFirstContentOfListItem = !0, o++);
|
2596
2597
|
if (r[0] === "enter")
|
2597
|
-
r[1].contentType && (Object.assign(t,
|
2598
|
+
r[1].contentType && (Object.assign(t, Gl(f, n)), n = t[n], s = !0);
|
2598
2599
|
else if (r[1]._container) {
|
2599
2600
|
for (o = n, i = void 0; o-- && (l = f.get(o), l[1].type === "lineEnding" || l[1].type === "lineEndingBlank"); )
|
2600
2601
|
l[0] === "enter" && (i && (f.get(i)[1].type = "lineEndingBlank"), l[1].type = "lineEnding", i = o);
|
@@ -2605,7 +2606,7 @@ function br(e) {
|
|
2605
2606
|
}
|
2606
2607
|
return te(e, 0, Number.POSITIVE_INFINITY, f.slice(0)), !s;
|
2607
2608
|
}
|
2608
|
-
function
|
2609
|
+
function Gl(e, t) {
|
2609
2610
|
const n = e.get(t)[1], r = e.get(t)[2];
|
2610
2611
|
let i = t - 1;
|
2611
2612
|
const o = [], l = n._tokenizer || r.parser[n.contentType](n.start), u = l.events, a = [], s = {};
|
@@ -2627,17 +2628,17 @@ function Ql(e, t) {
|
|
2627
2628
|
s[d + a[p][0]] = d + a[p][1], d += a[p][1] - a[p][0] - 1;
|
2628
2629
|
return s;
|
2629
2630
|
}
|
2630
|
-
const
|
2631
|
-
resolve:
|
2632
|
-
tokenize:
|
2633
|
-
},
|
2631
|
+
const Xl = {
|
2632
|
+
resolve: Jl,
|
2633
|
+
tokenize: Zl
|
2634
|
+
}, Kl = {
|
2634
2635
|
partial: !0,
|
2635
|
-
tokenize:
|
2636
|
+
tokenize: eo
|
2636
2637
|
};
|
2637
|
-
function
|
2638
|
-
return
|
2638
|
+
function Jl(e) {
|
2639
|
+
return wr(e), e;
|
2639
2640
|
}
|
2640
|
-
function
|
2641
|
+
function Zl(e, t) {
|
2641
2642
|
let n;
|
2642
2643
|
return r;
|
2643
2644
|
function r(u) {
|
@@ -2646,7 +2647,7 @@ function Kl(e, t) {
|
|
2646
2647
|
}), i(u);
|
2647
2648
|
}
|
2648
2649
|
function i(u) {
|
2649
|
-
return u === null ? o(u) : z(u) ? e.check(
|
2650
|
+
return u === null ? o(u) : z(u) ? e.check(Kl, l, o)(u) : (e.consume(u), i);
|
2650
2651
|
}
|
2651
2652
|
function o(u) {
|
2652
2653
|
return e.exit("chunkContent"), e.exit("content"), t(u);
|
@@ -2658,7 +2659,7 @@ function Kl(e, t) {
|
|
2658
2659
|
}), n = n.next, i;
|
2659
2660
|
}
|
2660
2661
|
}
|
2661
|
-
function
|
2662
|
+
function eo(e, t, n) {
|
2662
2663
|
const r = this;
|
2663
2664
|
return i;
|
2664
2665
|
function i(l) {
|
@@ -2671,7 +2672,7 @@ function Jl(e, t, n) {
|
|
2671
2672
|
return !r.parser.constructs.disable.null.includes("codeIndented") && u && u[1].type === "linePrefix" && u[2].sliceSerialize(u[1], !0).length >= 4 ? t(l) : e.interrupt(r.parser.constructs.flow, n, t)(l);
|
2672
2673
|
}
|
2673
2674
|
}
|
2674
|
-
function
|
2675
|
+
function Sr(e, t, n, r, i, o, l, u, a) {
|
2675
2676
|
const s = a || Number.POSITIVE_INFINITY;
|
2676
2677
|
let f = 0;
|
2677
2678
|
return c;
|
@@ -2698,7 +2699,7 @@ function wr(e, t, n, r, i, o, l, u, a) {
|
|
2698
2699
|
return y === 40 || y === 41 || y === 92 ? (e.consume(y), x) : x(y);
|
2699
2700
|
}
|
2700
2701
|
}
|
2701
|
-
function
|
2702
|
+
function Cr(e, t, n, r, i, o) {
|
2702
2703
|
const l = this;
|
2703
2704
|
let u = 0, a;
|
2704
2705
|
return s;
|
@@ -2722,7 +2723,7 @@ function Sr(e, t, n, r, i, o) {
|
|
2722
2723
|
return h === 91 || h === 92 || h === 93 ? (e.consume(h), u++, c) : c(h);
|
2723
2724
|
}
|
2724
2725
|
}
|
2725
|
-
function
|
2726
|
+
function Er(e, t, n, r, i, o) {
|
2726
2727
|
let l;
|
2727
2728
|
return u;
|
2728
2729
|
function u(p) {
|
@@ -2750,14 +2751,14 @@ function Ue(e, t) {
|
|
2750
2751
|
return z(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : N(i) ? j(e, r, n ? "linePrefix" : "lineSuffix")(i) : t(i);
|
2751
2752
|
}
|
2752
2753
|
}
|
2753
|
-
const
|
2754
|
+
const no = {
|
2754
2755
|
name: "definition",
|
2755
|
-
tokenize:
|
2756
|
-
},
|
2756
|
+
tokenize: ro
|
2757
|
+
}, to = {
|
2757
2758
|
partial: !0,
|
2758
|
-
tokenize:
|
2759
|
+
tokenize: io
|
2759
2760
|
};
|
2760
|
-
function
|
2761
|
+
function ro(e, t, n) {
|
2761
2762
|
const r = this;
|
2762
2763
|
let i;
|
2763
2764
|
return o;
|
@@ -2765,7 +2766,7 @@ function no(e, t, n) {
|
|
2765
2766
|
return e.enter("definition"), l(h);
|
2766
2767
|
}
|
2767
2768
|
function l(h) {
|
2768
|
-
return
|
2769
|
+
return Cr.call(
|
2769
2770
|
r,
|
2770
2771
|
e,
|
2771
2772
|
u,
|
@@ -2783,7 +2784,7 @@ function no(e, t, n) {
|
|
2783
2784
|
return V(h) ? Ue(e, s)(h) : s(h);
|
2784
2785
|
}
|
2785
2786
|
function s(h) {
|
2786
|
-
return
|
2787
|
+
return Sr(
|
2787
2788
|
e,
|
2788
2789
|
f,
|
2789
2790
|
// Note: we don’t need to reset the way `markdown-rs` does.
|
@@ -2796,7 +2797,7 @@ function no(e, t, n) {
|
|
2796
2797
|
)(h);
|
2797
2798
|
}
|
2798
2799
|
function f(h) {
|
2799
|
-
return e.attempt(
|
2800
|
+
return e.attempt(to, c, c)(h);
|
2800
2801
|
}
|
2801
2802
|
function c(h) {
|
2802
2803
|
return N(h) ? j(e, p, "whitespace")(h) : p(h);
|
@@ -2805,13 +2806,13 @@ function no(e, t, n) {
|
|
2805
2806
|
return h === null || z(h) ? (e.exit("definition"), r.parser.defined.push(i), t(h)) : n(h);
|
2806
2807
|
}
|
2807
2808
|
}
|
2808
|
-
function
|
2809
|
+
function io(e, t, n) {
|
2809
2810
|
return r;
|
2810
2811
|
function r(u) {
|
2811
2812
|
return V(u) ? Ue(e, i)(u) : n(u);
|
2812
2813
|
}
|
2813
2814
|
function i(u) {
|
2814
|
-
return
|
2815
|
+
return Er(e, o, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(u);
|
2815
2816
|
}
|
2816
2817
|
function o(u) {
|
2817
2818
|
return N(u) ? j(e, l, "whitespace")(u) : l(u);
|
@@ -2820,11 +2821,11 @@ function to(e, t, n) {
|
|
2820
2821
|
return u === null || z(u) ? t(u) : n(u);
|
2821
2822
|
}
|
2822
2823
|
}
|
2823
|
-
const
|
2824
|
+
const lo = {
|
2824
2825
|
name: "hardBreakEscape",
|
2825
|
-
tokenize:
|
2826
|
+
tokenize: oo
|
2826
2827
|
};
|
2827
|
-
function
|
2828
|
+
function oo(e, t, n) {
|
2828
2829
|
return r;
|
2829
2830
|
function r(o) {
|
2830
2831
|
return e.enter("hardBreakEscape"), e.consume(o), i;
|
@@ -2833,12 +2834,12 @@ function io(e, t, n) {
|
|
2833
2834
|
return z(o) ? (e.exit("hardBreakEscape"), t(o)) : n(o);
|
2834
2835
|
}
|
2835
2836
|
}
|
2836
|
-
const
|
2837
|
+
const uo = {
|
2837
2838
|
name: "headingAtx",
|
2838
|
-
resolve:
|
2839
|
-
tokenize:
|
2839
|
+
resolve: ao,
|
2840
|
+
tokenize: so
|
2840
2841
|
};
|
2841
|
-
function
|
2842
|
+
function ao(e, t) {
|
2842
2843
|
let n = e.length - 2, r = 3, i, o;
|
2843
2844
|
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 = {
|
2844
2845
|
type: "atxHeadingText",
|
@@ -2851,7 +2852,7 @@ function oo(e, t) {
|
|
2851
2852
|
contentType: "text"
|
2852
2853
|
}, te(e, r, n - r + 1, [["enter", i, t], ["enter", o, t], ["exit", o, t], ["exit", i, t]])), e;
|
2853
2854
|
}
|
2854
|
-
function
|
2855
|
+
function so(e, t, n) {
|
2855
2856
|
let r = 0;
|
2856
2857
|
return i;
|
2857
2858
|
function i(f) {
|
@@ -2873,7 +2874,7 @@ function uo(e, t, n) {
|
|
2873
2874
|
return f === null || f === 35 || V(f) ? (e.exit("atxHeadingText"), u(f)) : (e.consume(f), s);
|
2874
2875
|
}
|
2875
2876
|
}
|
2876
|
-
const
|
2877
|
+
const co = [
|
2877
2878
|
"address",
|
2878
2879
|
"article",
|
2879
2880
|
"aside",
|
@@ -2936,25 +2937,25 @@ const ao = [
|
|
2936
2937
|
"tr",
|
2937
2938
|
"track",
|
2938
2939
|
"ul"
|
2939
|
-
], Et = ["pre", "script", "style", "textarea"],
|
2940
|
+
], Et = ["pre", "script", "style", "textarea"], fo = {
|
2940
2941
|
concrete: !0,
|
2941
2942
|
name: "htmlFlow",
|
2942
|
-
resolveTo:
|
2943
|
-
tokenize: po
|
2944
|
-
}, co = {
|
2945
|
-
partial: !0,
|
2943
|
+
resolveTo: mo,
|
2946
2944
|
tokenize: go
|
2947
|
-
},
|
2945
|
+
}, ho = {
|
2946
|
+
partial: !0,
|
2947
|
+
tokenize: ko
|
2948
|
+
}, po = {
|
2948
2949
|
partial: !0,
|
2949
|
-
tokenize:
|
2950
|
+
tokenize: yo
|
2950
2951
|
};
|
2951
|
-
function
|
2952
|
+
function mo(e) {
|
2952
2953
|
let t = e.length;
|
2953
2954
|
for (; t-- && !(e[t][0] === "enter" && e[t][1].type === "htmlFlow"); )
|
2954
2955
|
;
|
2955
2956
|
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;
|
2956
2957
|
}
|
2957
|
-
function
|
2958
|
+
function go(e, t, n) {
|
2958
2959
|
const r = this;
|
2959
2960
|
let i, o, l, u, a;
|
2960
2961
|
return s;
|
@@ -2983,7 +2984,7 @@ function po(e, t, n) {
|
|
2983
2984
|
function E(g) {
|
2984
2985
|
if (g === null || g === 47 || g === 62 || V(g)) {
|
2985
2986
|
const ue = g === 47, we = l.toLowerCase();
|
2986
|
-
return !ue && !o && Et.includes(we) ? (i = 1, r.interrupt ? t(g) : L(g)) :
|
2987
|
+
return !ue && !o && Et.includes(we) ? (i = 1, r.interrupt ? t(g) : L(g)) : co.includes(l.toLowerCase()) ? (i = 6, ue ? (e.consume(g), y) : r.interrupt ? t(g) : L(g)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(g) : o ? I(g) : C(g));
|
2987
2988
|
}
|
2988
2989
|
return g === 45 || X(g) ? (e.consume(g), l += String.fromCharCode(g), E) : n(g);
|
2989
2990
|
}
|
@@ -3021,10 +3022,10 @@ function po(e, t, n) {
|
|
3021
3022
|
return g === null || z(g) ? L(g) : N(g) ? (e.consume(g), P) : n(g);
|
3022
3023
|
}
|
3023
3024
|
function L(g) {
|
3024
|
-
return g === 45 && i === 2 ? (e.consume(g), Q) : g === 60 && i === 1 ? (e.consume(g), Y) : g === 62 && i === 4 ? (e.consume(g), oe) : g === 63 && i === 3 ? (e.consume(g), m) : g === 93 && i === 5 ? (e.consume(g), he) : z(g) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
|
3025
|
+
return g === 45 && i === 2 ? (e.consume(g), Q) : g === 60 && i === 1 ? (e.consume(g), Y) : g === 62 && i === 4 ? (e.consume(g), oe) : g === 63 && i === 3 ? (e.consume(g), m) : g === 93 && i === 5 ? (e.consume(g), he) : z(g) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(ho, pe, v)(g)) : g === null || z(g) ? (e.exit("htmlFlowData"), v(g)) : (e.consume(g), L);
|
3025
3026
|
}
|
3026
3027
|
function v(g) {
|
3027
|
-
return e.check(
|
3028
|
+
return e.check(po, T, pe)(g);
|
3028
3029
|
}
|
3029
3030
|
function T(g) {
|
3030
3031
|
return e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"), D;
|
@@ -3058,7 +3059,7 @@ function po(e, t, n) {
|
|
3058
3059
|
return e.exit("htmlFlow"), t(g);
|
3059
3060
|
}
|
3060
3061
|
}
|
3061
|
-
function
|
3062
|
+
function yo(e, t, n) {
|
3062
3063
|
const r = this;
|
3063
3064
|
return i;
|
3064
3065
|
function i(l) {
|
@@ -3068,17 +3069,17 @@ function mo(e, t, n) {
|
|
3068
3069
|
return r.parser.lazy[r.now().line] ? n(l) : t(l);
|
3069
3070
|
}
|
3070
3071
|
}
|
3071
|
-
function
|
3072
|
+
function ko(e, t, n) {
|
3072
3073
|
return r;
|
3073
3074
|
function r(i) {
|
3074
3075
|
return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(We, t, n);
|
3075
3076
|
}
|
3076
3077
|
}
|
3077
|
-
const
|
3078
|
+
const xo = {
|
3078
3079
|
name: "htmlText",
|
3079
|
-
tokenize:
|
3080
|
+
tokenize: bo
|
3080
3081
|
};
|
3081
|
-
function
|
3082
|
+
function bo(e, t, n) {
|
3082
3083
|
const r = this;
|
3083
3084
|
let i, o, l;
|
3084
3085
|
return u;
|
@@ -3173,17 +3174,17 @@ function ko(e, t, n) {
|
|
3173
3174
|
}
|
3174
3175
|
const Wn = {
|
3175
3176
|
name: "labelEnd",
|
3176
|
-
resolveAll:
|
3177
|
-
resolveTo:
|
3178
|
-
tokenize: Eo
|
3179
|
-
}, xo = {
|
3180
|
-
tokenize: Io
|
3181
|
-
}, bo = {
|
3177
|
+
resolveAll: Eo,
|
3178
|
+
resolveTo: Io,
|
3182
3179
|
tokenize: Ao
|
3183
3180
|
}, wo = {
|
3184
3181
|
tokenize: To
|
3182
|
+
}, So = {
|
3183
|
+
tokenize: Po
|
3184
|
+
}, Co = {
|
3185
|
+
tokenize: Lo
|
3185
3186
|
};
|
3186
|
-
function
|
3187
|
+
function Eo(e) {
|
3187
3188
|
let t = -1;
|
3188
3189
|
const n = [];
|
3189
3190
|
for (; ++t < e.length; ) {
|
@@ -3195,7 +3196,7 @@ function So(e) {
|
|
3195
3196
|
}
|
3196
3197
|
return e.length !== n.length && te(e, 0, e.length, n), e;
|
3197
3198
|
}
|
3198
|
-
function
|
3199
|
+
function Io(e, t) {
|
3199
3200
|
let n = e.length, r = 0, i, o, l, u;
|
3200
3201
|
for (; n--; )
|
3201
3202
|
if (i = e[n][1], o) {
|
@@ -3235,7 +3236,7 @@ function Co(e, t) {
|
|
3235
3236
|
};
|
3236
3237
|
return u = [["enter", a, t], ["enter", s, t]], u = re(u, e.slice(o + 1, o + r + 3)), u = re(u, [["enter", f, t]]), u = re(u, un(t.parser.constructs.insideSpan.null, e.slice(o + r + 4, l - 3), t)), u = re(u, [["exit", f, t], e[l - 2], e[l - 1], ["exit", s, t]]), u = re(u, e.slice(l + 1)), u = re(u, [["exit", a, t]]), te(e, o, e.length, u), e;
|
3237
3238
|
}
|
3238
|
-
function
|
3239
|
+
function Ao(e, t, n) {
|
3239
3240
|
const r = this;
|
3240
3241
|
let i = r.events.length, o, l;
|
3241
3242
|
for (; i--; )
|
@@ -3251,10 +3252,10 @@ function Eo(e, t, n) {
|
|
3251
3252
|
}))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(p), e.exit("labelMarker"), e.exit("labelEnd"), a) : n(p);
|
3252
3253
|
}
|
3253
3254
|
function a(p) {
|
3254
|
-
return p === 40 ? e.attempt(
|
3255
|
+
return p === 40 ? e.attempt(wo, f, l ? f : c)(p) : p === 91 ? e.attempt(So, f, l ? s : c)(p) : l ? f(p) : c(p);
|
3255
3256
|
}
|
3256
3257
|
function s(p) {
|
3257
|
-
return e.attempt(
|
3258
|
+
return e.attempt(Co, f, c)(p);
|
3258
3259
|
}
|
3259
3260
|
function f(p) {
|
3260
3261
|
return t(p);
|
@@ -3263,7 +3264,7 @@ function Eo(e, t, n) {
|
|
3263
3264
|
return o._balanced = !0, n(p);
|
3264
3265
|
}
|
3265
3266
|
}
|
3266
|
-
function
|
3267
|
+
function To(e, t, n) {
|
3267
3268
|
return r;
|
3268
3269
|
function r(c) {
|
3269
3270
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), i;
|
@@ -3272,7 +3273,7 @@ function Io(e, t, n) {
|
|
3272
3273
|
return V(c) ? Ue(e, o)(c) : o(c);
|
3273
3274
|
}
|
3274
3275
|
function o(c) {
|
3275
|
-
return c === 41 ? f(c) :
|
3276
|
+
return c === 41 ? f(c) : Sr(e, l, u, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(c);
|
3276
3277
|
}
|
3277
3278
|
function l(c) {
|
3278
3279
|
return V(c) ? Ue(e, a)(c) : f(c);
|
@@ -3281,7 +3282,7 @@ function Io(e, t, n) {
|
|
3281
3282
|
return n(c);
|
3282
3283
|
}
|
3283
3284
|
function a(c) {
|
3284
|
-
return c === 34 || c === 39 || c === 40 ?
|
3285
|
+
return c === 34 || c === 39 || c === 40 ? Er(e, s, n, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(c) : f(c);
|
3285
3286
|
}
|
3286
3287
|
function s(c) {
|
3287
3288
|
return V(c) ? Ue(e, f)(c) : f(c);
|
@@ -3290,11 +3291,11 @@ function Io(e, t, n) {
|
|
3290
3291
|
return c === 41 ? (e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), e.exit("resource"), t) : n(c);
|
3291
3292
|
}
|
3292
3293
|
}
|
3293
|
-
function
|
3294
|
+
function Po(e, t, n) {
|
3294
3295
|
const r = this;
|
3295
3296
|
return i;
|
3296
3297
|
function i(u) {
|
3297
|
-
return
|
3298
|
+
return Cr.call(r, e, o, l, "reference", "referenceMarker", "referenceString")(u);
|
3298
3299
|
}
|
3299
3300
|
function o(u) {
|
3300
3301
|
return r.parser.defined.includes(se(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? t(u) : n(u);
|
@@ -3303,7 +3304,7 @@ function Ao(e, t, n) {
|
|
3303
3304
|
return n(u);
|
3304
3305
|
}
|
3305
3306
|
}
|
3306
|
-
function
|
3307
|
+
function Lo(e, t, n) {
|
3307
3308
|
return r;
|
3308
3309
|
function r(o) {
|
3309
3310
|
return e.enter("reference"), e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), i;
|
@@ -3312,12 +3313,12 @@ function To(e, t, n) {
|
|
3312
3313
|
return o === 93 ? (e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), e.exit("reference"), t) : n(o);
|
3313
3314
|
}
|
3314
3315
|
}
|
3315
|
-
const
|
3316
|
+
const vo = {
|
3316
3317
|
name: "labelStartImage",
|
3317
3318
|
resolveAll: Wn.resolveAll,
|
3318
|
-
tokenize:
|
3319
|
+
tokenize: zo
|
3319
3320
|
};
|
3320
|
-
function
|
3321
|
+
function zo(e, t, n) {
|
3321
3322
|
const r = this;
|
3322
3323
|
return i;
|
3323
3324
|
function i(u) {
|
@@ -3330,12 +3331,12 @@ function Lo(e, t, n) {
|
|
3330
3331
|
return u === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? n(u) : t(u);
|
3331
3332
|
}
|
3332
3333
|
}
|
3333
|
-
const
|
3334
|
+
const Do = {
|
3334
3335
|
name: "labelStartLink",
|
3335
3336
|
resolveAll: Wn.resolveAll,
|
3336
|
-
tokenize:
|
3337
|
+
tokenize: Fo
|
3337
3338
|
};
|
3338
|
-
function
|
3339
|
+
function Fo(e, t, n) {
|
3339
3340
|
const r = this;
|
3340
3341
|
return i;
|
3341
3342
|
function i(l) {
|
@@ -3347,9 +3348,9 @@ function zo(e, t, n) {
|
|
3347
3348
|
}
|
3348
3349
|
const gn = {
|
3349
3350
|
name: "lineEnding",
|
3350
|
-
tokenize:
|
3351
|
+
tokenize: Ro
|
3351
3352
|
};
|
3352
|
-
function
|
3353
|
+
function Ro(e, t) {
|
3353
3354
|
return n;
|
3354
3355
|
function n(r) {
|
3355
3356
|
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), j(e, t, "linePrefix");
|
@@ -3357,9 +3358,9 @@ function Do(e, t) {
|
|
3357
3358
|
}
|
3358
3359
|
const Ze = {
|
3359
3360
|
name: "thematicBreak",
|
3360
|
-
tokenize:
|
3361
|
+
tokenize: Oo
|
3361
3362
|
};
|
3362
|
-
function
|
3363
|
+
function Oo(e, t, n) {
|
3363
3364
|
let r = 0, i;
|
3364
3365
|
return o;
|
3365
3366
|
function o(s) {
|
@@ -3377,19 +3378,19 @@ function Fo(e, t, n) {
|
|
3377
3378
|
}
|
3378
3379
|
const Z = {
|
3379
3380
|
continuation: {
|
3380
|
-
tokenize:
|
3381
|
+
tokenize: Bo
|
3381
3382
|
},
|
3382
|
-
exit:
|
3383
|
+
exit: Ho,
|
3383
3384
|
name: "list",
|
3384
|
-
tokenize:
|
3385
|
-
},
|
3385
|
+
tokenize: No
|
3386
|
+
}, _o = {
|
3386
3387
|
partial: !0,
|
3387
|
-
tokenize:
|
3388
|
-
},
|
3388
|
+
tokenize: Uo
|
3389
|
+
}, Mo = {
|
3389
3390
|
partial: !0,
|
3390
|
-
tokenize:
|
3391
|
+
tokenize: jo
|
3391
3392
|
};
|
3392
|
-
function
|
3393
|
+
function No(e, t, n) {
|
3393
3394
|
const r = this, i = r.events[r.events.length - 1];
|
3394
3395
|
let o = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, l = 0;
|
3395
3396
|
return u;
|
@@ -3413,7 +3414,7 @@ function _o(e, t, n) {
|
|
3413
3414
|
We,
|
3414
3415
|
// Can’t be empty when interrupting.
|
3415
3416
|
r.interrupt ? n : f,
|
3416
|
-
e.attempt(
|
3417
|
+
e.attempt(_o, p, c)
|
3417
3418
|
);
|
3418
3419
|
}
|
3419
3420
|
function f(h) {
|
@@ -3426,20 +3427,20 @@ function _o(e, t, n) {
|
|
3426
3427
|
return r.containerState.size = o + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(h);
|
3427
3428
|
}
|
3428
3429
|
}
|
3429
|
-
function
|
3430
|
+
function Bo(e, t, n) {
|
3430
3431
|
const r = this;
|
3431
3432
|
return r.containerState._closeFlow = void 0, e.check(We, i, o);
|
3432
3433
|
function i(u) {
|
3433
3434
|
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, j(e, t, "listItemIndent", r.containerState.size + 1)(u);
|
3434
3435
|
}
|
3435
3436
|
function o(u) {
|
3436
|
-
return r.containerState.furtherBlankLines || !N(u) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, l(u)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(
|
3437
|
+
return r.containerState.furtherBlankLines || !N(u) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, l(u)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(Mo, t, l)(u));
|
3437
3438
|
}
|
3438
3439
|
function l(u) {
|
3439
3440
|
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)(u);
|
3440
3441
|
}
|
3441
3442
|
}
|
3442
|
-
function
|
3443
|
+
function jo(e, t, n) {
|
3443
3444
|
const r = this;
|
3444
3445
|
return j(e, i, "listItemIndent", r.containerState.size + 1);
|
3445
3446
|
function i(o) {
|
@@ -3447,10 +3448,10 @@ function No(e, t, n) {
|
|
3447
3448
|
return l && l[1].type === "listItemIndent" && l[2].sliceSerialize(l[1], !0).length === r.containerState.size ? t(o) : n(o);
|
3448
3449
|
}
|
3449
3450
|
}
|
3450
|
-
function
|
3451
|
+
function Ho(e) {
|
3451
3452
|
e.exit(this.containerState.type);
|
3452
3453
|
}
|
3453
|
-
function
|
3454
|
+
function Uo(e, t, n) {
|
3454
3455
|
const r = this;
|
3455
3456
|
return j(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
|
3456
3457
|
function i(o) {
|
@@ -3460,10 +3461,10 @@ function jo(e, t, n) {
|
|
3460
3461
|
}
|
3461
3462
|
const It = {
|
3462
3463
|
name: "setextUnderline",
|
3463
|
-
resolveTo:
|
3464
|
-
tokenize:
|
3464
|
+
resolveTo: qo,
|
3465
|
+
tokenize: Vo
|
3465
3466
|
};
|
3466
|
-
function
|
3467
|
+
function qo(e, t) {
|
3467
3468
|
let n = e.length, r, i, o;
|
3468
3469
|
for (; n--; )
|
3469
3470
|
if (e[n][0] === "enter") {
|
@@ -3487,7 +3488,7 @@ function Ho(e, t) {
|
|
3487
3488
|
...e[o][1].end
|
3488
3489
|
}) : e[r][1] = l, e.push(["exit", l, t]), e;
|
3489
3490
|
}
|
3490
|
-
function
|
3491
|
+
function Vo(e, t, n) {
|
3491
3492
|
const r = this;
|
3492
3493
|
let i;
|
3493
3494
|
return o;
|
@@ -3510,16 +3511,16 @@ function Uo(e, t, n) {
|
|
3510
3511
|
return s === null || z(s) ? (e.exit("setextHeadingLine"), t(s)) : n(s);
|
3511
3512
|
}
|
3512
3513
|
}
|
3513
|
-
const
|
3514
|
-
tokenize:
|
3514
|
+
const $o = {
|
3515
|
+
tokenize: Wo
|
3515
3516
|
};
|
3516
|
-
function
|
3517
|
+
function Wo(e) {
|
3517
3518
|
const t = this, n = e.attempt(
|
3518
3519
|
// Try to parse a blank line.
|
3519
3520
|
We,
|
3520
3521
|
r,
|
3521
3522
|
// Try to parse initial flow (essentially, only code).
|
3522
|
-
e.attempt(this.parser.constructs.flowInitial, i, j(e, e.attempt(this.parser.constructs.flow, i, e.attempt(
|
3523
|
+
e.attempt(this.parser.constructs.flowInitial, i, j(e, e.attempt(this.parser.constructs.flow, i, e.attempt(Xl, i)), "linePrefix"))
|
3523
3524
|
);
|
3524
3525
|
return n;
|
3525
3526
|
function r(o) {
|
@@ -3537,12 +3538,12 @@ function Vo(e) {
|
|
3537
3538
|
return e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), t.currentConstruct = void 0, n;
|
3538
3539
|
}
|
3539
3540
|
}
|
3540
|
-
const
|
3541
|
-
resolveAll:
|
3542
|
-
},
|
3543
|
-
function
|
3541
|
+
const Qo = {
|
3542
|
+
resolveAll: Ar()
|
3543
|
+
}, Yo = Ir("string"), Go = Ir("text");
|
3544
|
+
function Ir(e) {
|
3544
3545
|
return {
|
3545
|
-
resolveAll:
|
3546
|
+
resolveAll: Ar(e === "text" ? Xo : void 0),
|
3546
3547
|
tokenize: t
|
3547
3548
|
};
|
3548
3549
|
function t(n) {
|
@@ -3576,7 +3577,7 @@ function Er(e) {
|
|
3576
3577
|
}
|
3577
3578
|
}
|
3578
3579
|
}
|
3579
|
-
function
|
3580
|
+
function Ar(e) {
|
3580
3581
|
return t;
|
3581
3582
|
function t(n, r) {
|
3582
3583
|
let i = -1, o;
|
@@ -3585,7 +3586,7 @@ function Ir(e) {
|
|
3585
3586
|
return e ? e(n, r) : n;
|
3586
3587
|
}
|
3587
3588
|
}
|
3588
|
-
function
|
3589
|
+
function Xo(e, t) {
|
3589
3590
|
let n = 0;
|
3590
3591
|
for (; ++n <= e.length; )
|
3591
3592
|
if ((n === e.length || e[n][1].type === "lineEnding") && e[n - 1][1].type === "data") {
|
@@ -3627,7 +3628,7 @@ function Yo(e, t) {
|
|
3627
3628
|
}
|
3628
3629
|
return e;
|
3629
3630
|
}
|
3630
|
-
const
|
3631
|
+
const Ko = {
|
3631
3632
|
42: Z,
|
3632
3633
|
43: Z,
|
3633
3634
|
45: Z,
|
@@ -3641,46 +3642,46 @@ const Go = {
|
|
3641
3642
|
55: Z,
|
3642
3643
|
56: Z,
|
3643
3644
|
57: Z,
|
3644
|
-
62:
|
3645
|
-
},
|
3646
|
-
91:
|
3647
|
-
},
|
3645
|
+
62: kr
|
3646
|
+
}, Jo = {
|
3647
|
+
91: no
|
3648
|
+
}, Zo = {
|
3648
3649
|
[-2]: mn,
|
3649
3650
|
[-1]: mn,
|
3650
3651
|
32: mn
|
3651
|
-
},
|
3652
|
-
35:
|
3652
|
+
}, eu = {
|
3653
|
+
35: uo,
|
3653
3654
|
42: Ze,
|
3654
3655
|
45: [It, Ze],
|
3655
|
-
60:
|
3656
|
+
60: fo,
|
3656
3657
|
61: It,
|
3657
3658
|
95: Ze,
|
3658
3659
|
96: Ct,
|
3659
3660
|
126: Ct
|
3660
|
-
},
|
3661
|
-
38:
|
3662
|
-
92:
|
3663
|
-
},
|
3661
|
+
}, nu = {
|
3662
|
+
38: br,
|
3663
|
+
92: xr
|
3664
|
+
}, tu = {
|
3664
3665
|
[-5]: gn,
|
3665
3666
|
[-4]: gn,
|
3666
3667
|
[-3]: gn,
|
3667
|
-
33:
|
3668
|
-
38:
|
3668
|
+
33: vo,
|
3669
|
+
38: br,
|
3669
3670
|
42: Dn,
|
3670
|
-
60: [
|
3671
|
-
91:
|
3672
|
-
92: [
|
3671
|
+
60: [zl, xo],
|
3672
|
+
91: Do,
|
3673
|
+
92: [lo, xr],
|
3673
3674
|
93: Wn,
|
3674
3675
|
95: Dn,
|
3675
|
-
96:
|
3676
|
-
}, nu = {
|
3677
|
-
null: [Dn, $o]
|
3678
|
-
}, tu = {
|
3679
|
-
null: [42, 95]
|
3676
|
+
96: Vl
|
3680
3677
|
}, ru = {
|
3678
|
+
null: [Dn, Qo]
|
3679
|
+
}, iu = {
|
3680
|
+
null: [42, 95]
|
3681
|
+
}, lu = {
|
3681
3682
|
null: []
|
3682
|
-
},
|
3683
|
-
function
|
3683
|
+
}, ou = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, attentionMarkers: iu, contentInitial: Jo, disable: lu, document: Ko, flow: eu, flowInitial: Zo, insideSpan: ru, string: nu, text: tu }, Symbol.toStringTag, { value: "Module" }));
|
3684
|
+
function uu(e, t, n) {
|
3684
3685
|
let r = {
|
3685
3686
|
_bufferIndex: -1,
|
3686
3687
|
_index: 0,
|
@@ -3717,10 +3718,10 @@ function lu(e, t, n) {
|
|
3717
3718
|
return l = re(l, P), E(), l[l.length - 1] !== null ? [] : (U(t, 0), s.events = un(o, s.events, s), s.events);
|
3718
3719
|
}
|
3719
3720
|
function p(P, L) {
|
3720
|
-
return
|
3721
|
+
return su(h(P), L);
|
3721
3722
|
}
|
3722
3723
|
function h(P) {
|
3723
|
-
return
|
3724
|
+
return au(l, P);
|
3724
3725
|
}
|
3725
3726
|
function d() {
|
3726
3727
|
const {
|
@@ -3843,7 +3844,7 @@ function lu(e, t, n) {
|
|
3843
3844
|
r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
|
3844
3845
|
}
|
3845
3846
|
}
|
3846
|
-
function
|
3847
|
+
function au(e, t) {
|
3847
3848
|
const n = t.start._index, r = t.start._bufferIndex, i = t.end._index, o = t.end._bufferIndex;
|
3848
3849
|
let l;
|
3849
3850
|
if (n === i)
|
@@ -3857,7 +3858,7 @@ function ou(e, t) {
|
|
3857
3858
|
}
|
3858
3859
|
return l;
|
3859
3860
|
}
|
3860
|
-
function
|
3861
|
+
function su(e, t) {
|
3861
3862
|
let n = -1;
|
3862
3863
|
const r = [];
|
3863
3864
|
let i;
|
@@ -3897,35 +3898,35 @@ function uu(e, t) {
|
|
3897
3898
|
}
|
3898
3899
|
return r.join("");
|
3899
3900
|
}
|
3900
|
-
function
|
3901
|
+
function cu(e) {
|
3901
3902
|
const r = {
|
3902
3903
|
constructs: (
|
3903
3904
|
/** @type {FullNormalizedExtension} */
|
3904
|
-
|
3905
|
+
dr([ou, ...(e || {}).extensions || []])
|
3905
3906
|
),
|
3906
|
-
content: i(
|
3907
|
+
content: i(El),
|
3907
3908
|
defined: [],
|
3908
|
-
document: i(
|
3909
|
-
flow: i(
|
3909
|
+
document: i(Al),
|
3910
|
+
flow: i($o),
|
3910
3911
|
lazy: {},
|
3911
|
-
string: i(
|
3912
|
-
text: i(
|
3912
|
+
string: i(Yo),
|
3913
|
+
text: i(Go)
|
3913
3914
|
};
|
3914
3915
|
return r;
|
3915
3916
|
function i(o) {
|
3916
3917
|
return l;
|
3917
3918
|
function l(u) {
|
3918
|
-
return
|
3919
|
+
return uu(r, o, u);
|
3919
3920
|
}
|
3920
3921
|
}
|
3921
3922
|
}
|
3922
|
-
function
|
3923
|
-
for (; !
|
3923
|
+
function fu(e) {
|
3924
|
+
for (; !wr(e); )
|
3924
3925
|
;
|
3925
3926
|
return e;
|
3926
3927
|
}
|
3927
3928
|
const At = /[\0\t\n\r]/g;
|
3928
|
-
function
|
3929
|
+
function hu() {
|
3929
3930
|
let e = 1, t = "", n = !0, r;
|
3930
3931
|
return i;
|
3931
3932
|
function i(o, l, u) {
|
@@ -3960,24 +3961,24 @@ function cu() {
|
|
3960
3961
|
return u && (r && a.push(-5), t && a.push(t), a.push(null)), a;
|
3961
3962
|
}
|
3962
3963
|
}
|
3963
|
-
const
|
3964
|
-
function
|
3965
|
-
return e.replace(
|
3964
|
+
const pu = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
|
3965
|
+
function mu(e) {
|
3966
|
+
return e.replace(pu, gu);
|
3966
3967
|
}
|
3967
|
-
function
|
3968
|
+
function gu(e, t, n) {
|
3968
3969
|
if (t)
|
3969
3970
|
return t;
|
3970
3971
|
if (n.charCodeAt(0) === 35) {
|
3971
3972
|
const i = n.charCodeAt(1), o = i === 120 || i === 88;
|
3972
|
-
return
|
3973
|
+
return yr(n.slice(o ? 2 : 1), o ? 16 : 10);
|
3973
3974
|
}
|
3974
3975
|
return $n(n) || e;
|
3975
3976
|
}
|
3976
|
-
const
|
3977
|
-
function
|
3978
|
-
return typeof t != "string" && (n = t, t = void 0),
|
3977
|
+
const Tr = {}.hasOwnProperty;
|
3978
|
+
function du(e, t, n) {
|
3979
|
+
return typeof t != "string" && (n = t, t = void 0), yu(n)(fu(cu(n).document().write(hu()(e, t, !0))));
|
3979
3980
|
}
|
3980
|
-
function
|
3981
|
+
function yu(e) {
|
3981
3982
|
const t = {
|
3982
3983
|
transforms: [],
|
3983
3984
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
@@ -3993,36 +3994,36 @@ function gu(e) {
|
|
3993
3994
|
codeFencedFenceInfo: l,
|
3994
3995
|
codeFencedFenceMeta: l,
|
3995
3996
|
codeIndented: o(Ye, l),
|
3996
|
-
codeText: o(
|
3997
|
+
codeText: o(li, l),
|
3997
3998
|
codeTextData: H,
|
3998
3999
|
data: H,
|
3999
4000
|
codeFlowValue: H,
|
4000
|
-
definition: o(
|
4001
|
+
definition: o(oi),
|
4001
4002
|
definitionDestinationString: l,
|
4002
4003
|
definitionLabelString: l,
|
4003
4004
|
definitionTitleString: l,
|
4004
|
-
emphasis: o(
|
4005
|
+
emphasis: o(ui),
|
4005
4006
|
hardBreakEscape: o(rt),
|
4006
4007
|
hardBreakTrailing: o(rt),
|
4007
4008
|
htmlFlow: o(it, l),
|
4008
4009
|
htmlFlowData: H,
|
4009
4010
|
htmlText: o(it, l),
|
4010
4011
|
htmlTextData: H,
|
4011
|
-
image: o(
|
4012
|
+
image: o(ai),
|
4012
4013
|
label: l,
|
4013
4014
|
link: o(lt),
|
4014
|
-
listItem: o(
|
4015
|
+
listItem: o(si),
|
4015
4016
|
listItemValue: p,
|
4016
4017
|
listOrdered: o(ot, c),
|
4017
4018
|
listUnordered: o(ot),
|
4018
|
-
paragraph: o(
|
4019
|
+
paragraph: o(ci),
|
4019
4020
|
reference: g,
|
4020
4021
|
referenceString: l,
|
4021
4022
|
resourceDestinationString: l,
|
4022
4023
|
resourceTitleString: l,
|
4023
4024
|
setextHeading: o(tt),
|
4024
|
-
strong: o(
|
4025
|
-
thematicBreak: o(
|
4025
|
+
strong: o(fi),
|
4026
|
+
thematicBreak: o(pi)
|
4026
4027
|
},
|
4027
4028
|
exit: {
|
4028
4029
|
atxHeading: a(),
|
@@ -4076,7 +4077,7 @@ function gu(e) {
|
|
4076
4077
|
thematicBreak: a()
|
4077
4078
|
}
|
4078
4079
|
};
|
4079
|
-
|
4080
|
+
Pr(t, (e || {}).mdastExtensions || []);
|
4080
4081
|
const n = {};
|
4081
4082
|
return r;
|
4082
4083
|
function r(b) {
|
@@ -4105,7 +4106,7 @@ function gu(e) {
|
|
4105
4106
|
}
|
4106
4107
|
for (q = -1; ++q < b.length; ) {
|
4107
4108
|
const ae = t[b[q][0]];
|
4108
|
-
|
4109
|
+
Tr.call(ae, b[q][1].type) && ae[b[q][1].type].call(Object.assign({
|
4109
4110
|
sliceSerialize: b[q][2].sliceSerialize
|
4110
4111
|
}, F), b[q][1]);
|
4111
4112
|
}
|
@@ -4276,7 +4277,7 @@ function gu(e) {
|
|
4276
4277
|
function H(b) {
|
4277
4278
|
const F = this.stack[this.stack.length - 1].children;
|
4278
4279
|
let B = F[F.length - 1];
|
4279
|
-
(!B || B.type !== "text") && (B =
|
4280
|
+
(!B || B.type !== "text") && (B = hi(), B.position = {
|
4280
4281
|
start: xe(b.start),
|
4281
4282
|
// @ts-expect-error: we’ll add `end` later.
|
4282
4283
|
end: void 0
|
@@ -4330,7 +4331,7 @@ function gu(e) {
|
|
4330
4331
|
}
|
4331
4332
|
function le(b) {
|
4332
4333
|
const A = this.sliceSerialize(b), F = this.stack[this.stack.length - 2];
|
4333
|
-
F.label =
|
4334
|
+
F.label = mu(A), F.identifier = se(A).toLowerCase();
|
4334
4335
|
}
|
4335
4336
|
function he() {
|
4336
4337
|
const b = this.stack[this.stack.length - 1], A = this.resume(), F = this.stack[this.stack.length - 1];
|
@@ -4364,7 +4365,7 @@ function gu(e) {
|
|
4364
4365
|
function G(b) {
|
4365
4366
|
const A = this.sliceSerialize(b), F = this.data.characterReferenceType;
|
4366
4367
|
let B;
|
4367
|
-
F ? (B =
|
4368
|
+
F ? (B = yr(A, F === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : B = $n(A);
|
4368
4369
|
const q = this.stack[this.stack.length - 1];
|
4369
4370
|
q.value += B;
|
4370
4371
|
}
|
@@ -4396,13 +4397,13 @@ function gu(e) {
|
|
4396
4397
|
value: ""
|
4397
4398
|
};
|
4398
4399
|
}
|
4399
|
-
function
|
4400
|
+
function li() {
|
4400
4401
|
return {
|
4401
4402
|
type: "inlineCode",
|
4402
4403
|
value: ""
|
4403
4404
|
};
|
4404
4405
|
}
|
4405
|
-
function
|
4406
|
+
function oi() {
|
4406
4407
|
return {
|
4407
4408
|
type: "definition",
|
4408
4409
|
identifier: "",
|
@@ -4411,7 +4412,7 @@ function gu(e) {
|
|
4411
4412
|
url: ""
|
4412
4413
|
};
|
4413
4414
|
}
|
4414
|
-
function
|
4415
|
+
function ui() {
|
4415
4416
|
return {
|
4416
4417
|
type: "emphasis",
|
4417
4418
|
children: []
|
@@ -4436,7 +4437,7 @@ function gu(e) {
|
|
4436
4437
|
value: ""
|
4437
4438
|
};
|
4438
4439
|
}
|
4439
|
-
function
|
4440
|
+
function ai() {
|
4440
4441
|
return {
|
4441
4442
|
type: "image",
|
4442
4443
|
title: null,
|
@@ -4461,7 +4462,7 @@ function gu(e) {
|
|
4461
4462
|
children: []
|
4462
4463
|
};
|
4463
4464
|
}
|
4464
|
-
function
|
4465
|
+
function si(b) {
|
4465
4466
|
return {
|
4466
4467
|
type: "listItem",
|
4467
4468
|
spread: b._spread,
|
@@ -4469,25 +4470,25 @@ function gu(e) {
|
|
4469
4470
|
children: []
|
4470
4471
|
};
|
4471
4472
|
}
|
4472
|
-
function
|
4473
|
+
function ci() {
|
4473
4474
|
return {
|
4474
4475
|
type: "paragraph",
|
4475
4476
|
children: []
|
4476
4477
|
};
|
4477
4478
|
}
|
4478
|
-
function
|
4479
|
+
function fi() {
|
4479
4480
|
return {
|
4480
4481
|
type: "strong",
|
4481
4482
|
children: []
|
4482
4483
|
};
|
4483
4484
|
}
|
4484
|
-
function
|
4485
|
+
function hi() {
|
4485
4486
|
return {
|
4486
4487
|
type: "text",
|
4487
4488
|
value: ""
|
4488
4489
|
};
|
4489
4490
|
}
|
4490
|
-
function
|
4491
|
+
function pi() {
|
4491
4492
|
return {
|
4492
4493
|
type: "thematicBreak"
|
4493
4494
|
};
|
@@ -4500,17 +4501,17 @@ function xe(e) {
|
|
4500
4501
|
offset: e.offset
|
4501
4502
|
};
|
4502
4503
|
}
|
4503
|
-
function
|
4504
|
+
function Pr(e, t) {
|
4504
4505
|
let n = -1;
|
4505
4506
|
for (; ++n < t.length; ) {
|
4506
4507
|
const r = t[n];
|
4507
|
-
Array.isArray(r) ?
|
4508
|
+
Array.isArray(r) ? Pr(e, r) : ku(e, r);
|
4508
4509
|
}
|
4509
4510
|
}
|
4510
|
-
function
|
4511
|
+
function ku(e, t) {
|
4511
4512
|
let n;
|
4512
4513
|
for (n in t)
|
4513
|
-
if (
|
4514
|
+
if (Tr.call(t, n))
|
4514
4515
|
switch (n) {
|
4515
4516
|
case "canContainEols": {
|
4516
4517
|
const r = t[n];
|
@@ -4542,11 +4543,11 @@ function Tt(e, t) {
|
|
4542
4543
|
end: t.end
|
4543
4544
|
}) + ") is still open");
|
4544
4545
|
}
|
4545
|
-
function
|
4546
|
+
function xu(e) {
|
4546
4547
|
const t = this;
|
4547
4548
|
t.parser = n;
|
4548
4549
|
function n(r) {
|
4549
|
-
return
|
4550
|
+
return du(r, {
|
4550
4551
|
...t.data("settings"),
|
4551
4552
|
...e,
|
4552
4553
|
// Note: these options are not in the readme.
|
@@ -4557,7 +4558,7 @@ function yu(e) {
|
|
4557
4558
|
});
|
4558
4559
|
}
|
4559
4560
|
}
|
4560
|
-
function
|
4561
|
+
function bu(e, t) {
|
4561
4562
|
const n = {
|
4562
4563
|
type: "element",
|
4563
4564
|
tagName: "blockquote",
|
@@ -4566,12 +4567,12 @@ function ku(e, t) {
|
|
4566
4567
|
};
|
4567
4568
|
return e.patch(t, n), e.applyData(t, n);
|
4568
4569
|
}
|
4569
|
-
function
|
4570
|
+
function wu(e, t) {
|
4570
4571
|
const n = { type: "element", tagName: "br", properties: {}, children: [] };
|
4571
4572
|
return e.patch(t, n), [e.applyData(t, n), { type: "text", value: `
|
4572
4573
|
` }];
|
4573
4574
|
}
|
4574
|
-
function
|
4575
|
+
function Su(e, t) {
|
4575
4576
|
const n = t.value ? t.value + `
|
4576
4577
|
` : "", r = {};
|
4577
4578
|
t.lang && (r.className = ["language-" + t.lang]);
|
@@ -4583,7 +4584,7 @@ function bu(e, t) {
|
|
4583
4584
|
};
|
4584
4585
|
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;
|
4585
4586
|
}
|
4586
|
-
function
|
4587
|
+
function Cu(e, t) {
|
4587
4588
|
const n = {
|
4588
4589
|
type: "element",
|
4589
4590
|
tagName: "del",
|
@@ -4592,7 +4593,7 @@ function wu(e, t) {
|
|
4592
4593
|
};
|
4593
4594
|
return e.patch(t, n), e.applyData(t, n);
|
4594
4595
|
}
|
4595
|
-
function
|
4596
|
+
function Eu(e, t) {
|
4596
4597
|
const n = {
|
4597
4598
|
type: "element",
|
4598
4599
|
tagName: "em",
|
@@ -4601,7 +4602,7 @@ function Su(e, t) {
|
|
4601
4602
|
};
|
4602
4603
|
return e.patch(t, n), e.applyData(t, n);
|
4603
4604
|
}
|
4604
|
-
function
|
4605
|
+
function Iu(e, t) {
|
4605
4606
|
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), i = Re(r.toLowerCase()), o = e.footnoteOrder.indexOf(r);
|
4606
4607
|
let l, u = e.footnoteCounts.get(r);
|
4607
4608
|
u === void 0 ? (u = 0, e.footnoteOrder.push(r), l = e.footnoteOrder.length) : l = o + 1, u += 1, e.footnoteCounts.set(r, u);
|
@@ -4625,7 +4626,7 @@ function Cu(e, t) {
|
|
4625
4626
|
};
|
4626
4627
|
return e.patch(t, s), e.applyData(t, s);
|
4627
4628
|
}
|
4628
|
-
function
|
4629
|
+
function Au(e, t) {
|
4629
4630
|
const n = {
|
4630
4631
|
type: "element",
|
4631
4632
|
tagName: "h" + t.depth,
|
@@ -4634,13 +4635,13 @@ function Eu(e, t) {
|
|
4634
4635
|
};
|
4635
4636
|
return e.patch(t, n), e.applyData(t, n);
|
4636
4637
|
}
|
4637
|
-
function
|
4638
|
+
function Tu(e, t) {
|
4638
4639
|
if (e.options.allowDangerousHtml) {
|
4639
4640
|
const n = { type: "raw", value: t.value };
|
4640
4641
|
return e.patch(t, n), e.applyData(t, n);
|
4641
4642
|
}
|
4642
4643
|
}
|
4643
|
-
function
|
4644
|
+
function Lr(e, t) {
|
4644
4645
|
const n = t.referenceType;
|
4645
4646
|
let r = "]";
|
4646
4647
|
if (n === "collapsed" ? r += "[]" : n === "full" && (r += "[" + (t.label || t.identifier) + "]"), t.type === "imageReference")
|
@@ -4650,22 +4651,22 @@ function Pr(e, t) {
|
|
4650
4651
|
const l = i[i.length - 1];
|
4651
4652
|
return l && l.type === "text" ? l.value += r : i.push({ type: "text", value: r }), i;
|
4652
4653
|
}
|
4653
|
-
function
|
4654
|
+
function Pu(e, t) {
|
4654
4655
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
4655
4656
|
if (!r)
|
4656
|
-
return
|
4657
|
+
return Lr(e, t);
|
4657
4658
|
const i = { src: Re(r.url || ""), alt: t.alt };
|
4658
4659
|
r.title !== null && r.title !== void 0 && (i.title = r.title);
|
4659
4660
|
const o = { type: "element", tagName: "img", properties: i, children: [] };
|
4660
4661
|
return e.patch(t, o), e.applyData(t, o);
|
4661
4662
|
}
|
4662
|
-
function
|
4663
|
+
function Lu(e, t) {
|
4663
4664
|
const n = { src: Re(t.url) };
|
4664
4665
|
t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
|
4665
4666
|
const r = { type: "element", tagName: "img", properties: n, children: [] };
|
4666
4667
|
return e.patch(t, r), e.applyData(t, r);
|
4667
4668
|
}
|
4668
|
-
function
|
4669
|
+
function vu(e, t) {
|
4669
4670
|
const n = { type: "text", value: t.value.replace(/\r?\n|\r/g, " ") };
|
4670
4671
|
e.patch(t, n);
|
4671
4672
|
const r = {
|
@@ -4676,10 +4677,10 @@ function Pu(e, t) {
|
|
4676
4677
|
};
|
4677
4678
|
return e.patch(t, r), e.applyData(t, r);
|
4678
4679
|
}
|
4679
|
-
function
|
4680
|
+
function zu(e, t) {
|
4680
4681
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
4681
4682
|
if (!r)
|
4682
|
-
return
|
4683
|
+
return Lr(e, t);
|
4683
4684
|
const i = { href: Re(r.url || "") };
|
4684
4685
|
r.title !== null && r.title !== void 0 && (i.title = r.title);
|
4685
4686
|
const o = {
|
@@ -4690,7 +4691,7 @@ function Lu(e, t) {
|
|
4690
4691
|
};
|
4691
4692
|
return e.patch(t, o), e.applyData(t, o);
|
4692
4693
|
}
|
4693
|
-
function
|
4694
|
+
function Du(e, t) {
|
4694
4695
|
const n = { href: Re(t.url) };
|
4695
4696
|
t.title !== null && t.title !== void 0 && (n.title = t.title);
|
4696
4697
|
const r = {
|
@@ -4701,8 +4702,8 @@ function vu(e, t) {
|
|
4701
4702
|
};
|
4702
4703
|
return e.patch(t, r), e.applyData(t, r);
|
4703
4704
|
}
|
4704
|
-
function
|
4705
|
-
const r = e.all(t), i = n ?
|
4705
|
+
function Fu(e, t, n) {
|
4706
|
+
const r = e.all(t), i = n ? Ru(n) : vr(t), o = {}, l = [];
|
4706
4707
|
if (typeof t.checked == "boolean") {
|
4707
4708
|
const f = r[0];
|
4708
4709
|
let c;
|
@@ -4725,22 +4726,22 @@ function zu(e, t, n) {
|
|
4725
4726
|
const s = { type: "element", tagName: "li", properties: o, children: l };
|
4726
4727
|
return e.patch(t, s), e.applyData(t, s);
|
4727
4728
|
}
|
4728
|
-
function
|
4729
|
+
function Ru(e) {
|
4729
4730
|
let t = !1;
|
4730
4731
|
if (e.type === "list") {
|
4731
4732
|
t = e.spread || !1;
|
4732
4733
|
const n = e.children;
|
4733
4734
|
let r = -1;
|
4734
4735
|
for (; !t && ++r < n.length; )
|
4735
|
-
t =
|
4736
|
+
t = vr(n[r]);
|
4736
4737
|
}
|
4737
4738
|
return t;
|
4738
4739
|
}
|
4739
|
-
function
|
4740
|
+
function vr(e) {
|
4740
4741
|
const t = e.spread;
|
4741
4742
|
return t ?? e.children.length > 1;
|
4742
4743
|
}
|
4743
|
-
function
|
4744
|
+
function Ou(e, t) {
|
4744
4745
|
const n = {}, r = e.all(t);
|
4745
4746
|
let i = -1;
|
4746
4747
|
for (typeof t.start == "number" && t.start !== 1 && (n.start = t.start); ++i < r.length; ) {
|
@@ -4758,7 +4759,7 @@ function Fu(e, t) {
|
|
4758
4759
|
};
|
4759
4760
|
return e.patch(t, o), e.applyData(t, o);
|
4760
4761
|
}
|
4761
|
-
function
|
4762
|
+
function _u(e, t) {
|
4762
4763
|
const n = {
|
4763
4764
|
type: "element",
|
4764
4765
|
tagName: "p",
|
@@ -4767,11 +4768,11 @@ function Ru(e, t) {
|
|
4767
4768
|
};
|
4768
4769
|
return e.patch(t, n), e.applyData(t, n);
|
4769
4770
|
}
|
4770
|
-
function
|
4771
|
+
function Mu(e, t) {
|
4771
4772
|
const n = { type: "root", children: e.wrap(e.all(t)) };
|
4772
4773
|
return e.patch(t, n), e.applyData(t, n);
|
4773
4774
|
}
|
4774
|
-
function
|
4775
|
+
function Nu(e, t) {
|
4775
4776
|
const n = {
|
4776
4777
|
type: "element",
|
4777
4778
|
tagName: "strong",
|
@@ -4780,7 +4781,7 @@ function _u(e, t) {
|
|
4780
4781
|
};
|
4781
4782
|
return e.patch(t, n), e.applyData(t, n);
|
4782
4783
|
}
|
4783
|
-
function
|
4784
|
+
function Bu(e, t) {
|
4784
4785
|
const n = e.all(t), r = n.shift(), i = [];
|
4785
4786
|
if (r) {
|
4786
4787
|
const l = {
|
@@ -4797,7 +4798,7 @@ function Mu(e, t) {
|
|
4797
4798
|
tagName: "tbody",
|
4798
4799
|
properties: {},
|
4799
4800
|
children: e.wrap(n, !0)
|
4800
|
-
}, u = jn(t.children[1]), a =
|
4801
|
+
}, u = jn(t.children[1]), a = sr(t.children[t.children.length - 1]);
|
4801
4802
|
u && a && (l.position = { start: u, end: a }), i.push(l);
|
4802
4803
|
}
|
4803
4804
|
const o = {
|
@@ -4808,7 +4809,7 @@ function Mu(e, t) {
|
|
4808
4809
|
};
|
4809
4810
|
return e.patch(t, o), e.applyData(t, o);
|
4810
4811
|
}
|
4811
|
-
function
|
4812
|
+
function ju(e, t, n) {
|
4812
4813
|
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, u = l ? l.length : t.children.length;
|
4813
4814
|
let a = -1;
|
4814
4815
|
const s = [];
|
@@ -4826,7 +4827,7 @@ function Nu(e, t, n) {
|
|
4826
4827
|
};
|
4827
4828
|
return e.patch(t, f), e.applyData(t, f);
|
4828
4829
|
}
|
4829
|
-
function
|
4830
|
+
function Hu(e, t) {
|
4830
4831
|
const n = {
|
4831
4832
|
type: "element",
|
4832
4833
|
tagName: "td",
|
@@ -4837,7 +4838,7 @@ function Bu(e, t) {
|
|
4837
4838
|
return e.patch(t, n), e.applyData(t, n);
|
4838
4839
|
}
|
4839
4840
|
const Pt = 9, Lt = 32;
|
4840
|
-
function
|
4841
|
+
function Uu(e) {
|
4841
4842
|
const t = String(e), n = /\r?\n|\r/g;
|
4842
4843
|
let r = n.exec(t), i = 0;
|
4843
4844
|
const o = [];
|
@@ -4862,11 +4863,11 @@ function vt(e, t, n) {
|
|
4862
4863
|
}
|
4863
4864
|
return i > r ? e.slice(r, i) : "";
|
4864
4865
|
}
|
4865
|
-
function
|
4866
|
-
const n = { type: "text", value:
|
4866
|
+
function qu(e, t) {
|
4867
|
+
const n = { type: "text", value: Uu(String(t.value)) };
|
4867
4868
|
return e.patch(t, n), e.applyData(t, n);
|
4868
4869
|
}
|
4869
|
-
function
|
4870
|
+
function Vu(e, t) {
|
4870
4871
|
const n = {
|
4871
4872
|
type: "element",
|
4872
4873
|
tagName: "hr",
|
@@ -4875,31 +4876,31 @@ function Uu(e, t) {
|
|
4875
4876
|
};
|
4876
4877
|
return e.patch(t, n), e.applyData(t, n);
|
4877
4878
|
}
|
4878
|
-
const
|
4879
|
-
blockquote:
|
4880
|
-
break:
|
4881
|
-
code:
|
4882
|
-
delete:
|
4883
|
-
emphasis:
|
4884
|
-
footnoteReference:
|
4885
|
-
heading:
|
4886
|
-
html:
|
4887
|
-
imageReference:
|
4888
|
-
image:
|
4889
|
-
inlineCode:
|
4890
|
-
linkReference:
|
4891
|
-
link:
|
4892
|
-
listItem:
|
4893
|
-
list:
|
4894
|
-
paragraph:
|
4879
|
+
const $u = {
|
4880
|
+
blockquote: bu,
|
4881
|
+
break: wu,
|
4882
|
+
code: Su,
|
4883
|
+
delete: Cu,
|
4884
|
+
emphasis: Eu,
|
4885
|
+
footnoteReference: Iu,
|
4886
|
+
heading: Au,
|
4887
|
+
html: Tu,
|
4888
|
+
imageReference: Pu,
|
4889
|
+
image: Lu,
|
4890
|
+
inlineCode: vu,
|
4891
|
+
linkReference: zu,
|
4892
|
+
link: Du,
|
4893
|
+
listItem: Fu,
|
4894
|
+
list: Ou,
|
4895
|
+
paragraph: _u,
|
4895
4896
|
// @ts-expect-error: root is different, but hard to type.
|
4896
|
-
root:
|
4897
|
-
strong:
|
4898
|
-
table:
|
4899
|
-
tableCell:
|
4900
|
-
tableRow:
|
4901
|
-
text:
|
4902
|
-
thematicBreak:
|
4897
|
+
root: Mu,
|
4898
|
+
strong: Nu,
|
4899
|
+
table: Bu,
|
4900
|
+
tableCell: Hu,
|
4901
|
+
tableRow: ju,
|
4902
|
+
text: qu,
|
4903
|
+
thematicBreak: Vu,
|
4903
4904
|
toml: Ge,
|
4904
4905
|
yaml: Ge,
|
4905
4906
|
definition: Ge,
|
@@ -4907,14 +4908,14 @@ const qu = {
|
|
4907
4908
|
};
|
4908
4909
|
function Ge() {
|
4909
4910
|
}
|
4910
|
-
const
|
4911
|
+
const zr = -1, an = 0, nn = 1, tn = 2, Qn = 3, Yn = 4, Gn = 5, Xn = 6, Dr = 7, Fr = 8, zt = typeof self == "object" ? self : globalThis, Wu = (e, t) => {
|
4911
4912
|
const n = (i, o) => (e.set(o, i), i), r = (i) => {
|
4912
4913
|
if (e.has(i))
|
4913
4914
|
return e.get(i);
|
4914
4915
|
const [o, l] = t[i];
|
4915
4916
|
switch (o) {
|
4916
4917
|
case an:
|
4917
|
-
case
|
4918
|
+
case zr:
|
4918
4919
|
return n(l, i);
|
4919
4920
|
case nn: {
|
4920
4921
|
const u = n([], i);
|
@@ -4946,11 +4947,11 @@ const vr = -1, an = 0, nn = 1, tn = 2, Qn = 3, Yn = 4, Gn = 5, Xn = 6, zr = 7, D
|
|
4946
4947
|
u.add(r(a));
|
4947
4948
|
return u;
|
4948
4949
|
}
|
4949
|
-
case
|
4950
|
+
case Dr: {
|
4950
4951
|
const { name: u, message: a } = l;
|
4951
4952
|
return n(new zt[u](a), i);
|
4952
4953
|
}
|
4953
|
-
case
|
4954
|
+
case Fr:
|
4954
4955
|
return n(BigInt(l), i);
|
4955
4956
|
case "BigInt":
|
4956
4957
|
return n(Object(BigInt(l)), i);
|
@@ -4958,11 +4959,11 @@ const vr = -1, an = 0, nn = 1, tn = 2, Qn = 3, Yn = 4, Gn = 5, Xn = 6, zr = 7, D
|
|
4958
4959
|
return n(new zt[o](l), i);
|
4959
4960
|
};
|
4960
4961
|
return r;
|
4961
|
-
}, Dt = (e) =>
|
4962
|
+
}, Dt = (e) => Wu(/* @__PURE__ */ new Map(), e)(0), Le = "", { toString: Qu } = {}, { keys: Yu } = Object, je = (e) => {
|
4962
4963
|
const t = typeof e;
|
4963
4964
|
if (t !== "object" || !e)
|
4964
4965
|
return [an, t];
|
4965
|
-
const n =
|
4966
|
+
const n = Qu.call(e).slice(8, -1);
|
4966
4967
|
switch (n) {
|
4967
4968
|
case "Array":
|
4968
4969
|
return [nn, Le];
|
@@ -4977,8 +4978,8 @@ const vr = -1, an = 0, nn = 1, tn = 2, Qn = 3, Yn = 4, Gn = 5, Xn = 6, zr = 7, D
|
|
4977
4978
|
case "Set":
|
4978
4979
|
return [Xn, Le];
|
4979
4980
|
}
|
4980
|
-
return n.includes("Array") ? [nn, n] : n.includes("Error") ? [
|
4981
|
-
}, Xe = ([e, t]) => e === an && (t === "function" || t === "symbol"),
|
4981
|
+
return n.includes("Array") ? [nn, n] : n.includes("Error") ? [Dr, n] : [tn, n];
|
4982
|
+
}, Xe = ([e, t]) => e === an && (t === "function" || t === "symbol"), Gu = (e, t, n, r) => {
|
4982
4983
|
const i = (l, u) => {
|
4983
4984
|
const a = r.push(l) - 1;
|
4984
4985
|
return n.set(u, a), a;
|
@@ -4991,7 +4992,7 @@ const vr = -1, an = 0, nn = 1, tn = 2, Qn = 3, Yn = 4, Gn = 5, Xn = 6, zr = 7, D
|
|
4991
4992
|
let f = l;
|
4992
4993
|
switch (a) {
|
4993
4994
|
case "bigint":
|
4994
|
-
u =
|
4995
|
+
u = Fr, f = l.toString();
|
4995
4996
|
break;
|
4996
4997
|
case "function":
|
4997
4998
|
case "symbol":
|
@@ -5000,7 +5001,7 @@ const vr = -1, an = 0, nn = 1, tn = 2, Qn = 3, Yn = 4, Gn = 5, Xn = 6, zr = 7, D
|
|
5000
5001
|
f = null;
|
5001
5002
|
break;
|
5002
5003
|
case "undefined":
|
5003
|
-
return i([
|
5004
|
+
return i([zr], l);
|
5004
5005
|
}
|
5005
5006
|
return i([u, f], l);
|
5006
5007
|
}
|
@@ -5025,7 +5026,7 @@ const vr = -1, an = 0, nn = 1, tn = 2, Qn = 3, Yn = 4, Gn = 5, Xn = 6, zr = 7, D
|
|
5025
5026
|
if (t && "toJSON" in l)
|
5026
5027
|
return o(l.toJSON());
|
5027
5028
|
const f = [], c = i([u, f], l);
|
5028
|
-
for (const p of
|
5029
|
+
for (const p of Yu(l))
|
5029
5030
|
(e || !Xe(je(l[p]))) && f.push([o(p), o(l[p])]);
|
5030
5031
|
return c;
|
5031
5032
|
}
|
@@ -5054,12 +5055,12 @@ const vr = -1, an = 0, nn = 1, tn = 2, Qn = 3, Yn = 4, Gn = 5, Xn = 6, zr = 7, D
|
|
5054
5055
|
return o;
|
5055
5056
|
}, Ft = (e, { json: t, lossy: n } = {}) => {
|
5056
5057
|
const r = [];
|
5057
|
-
return
|
5058
|
+
return Gu(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
|
5058
5059
|
}, rn = typeof structuredClone == "function" ? (
|
5059
5060
|
/* c8 ignore start */
|
5060
5061
|
(e, t) => t && ("json" in t || "lossy" in t) ? Dt(Ft(e, t)) : structuredClone(e)
|
5061
5062
|
) : (e, t) => Dt(Ft(e, t));
|
5062
|
-
function
|
5063
|
+
function Xu(e, t) {
|
5063
5064
|
const n = [{ type: "text", value: "↩" }];
|
5064
5065
|
return t > 1 && n.push({
|
5065
5066
|
type: "element",
|
@@ -5068,11 +5069,11 @@ function Yu(e, t) {
|
|
5068
5069
|
children: [{ type: "text", value: String(t) }]
|
5069
5070
|
}), n;
|
5070
5071
|
}
|
5071
|
-
function
|
5072
|
+
function Ku(e, t) {
|
5072
5073
|
return "Back to reference " + (e + 1) + (t > 1 ? "-" + t : "");
|
5073
5074
|
}
|
5074
|
-
function
|
5075
|
-
const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", n = e.options.footnoteBackContent ||
|
5075
|
+
function Ju(e) {
|
5076
|
+
const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", n = e.options.footnoteBackContent || Xu, r = e.options.footnoteBackLabel || Ku, i = e.options.footnoteLabel || "Footnotes", o = e.options.footnoteLabelTagName || "h2", l = e.options.footnoteLabelProperties || {
|
5076
5077
|
className: ["sr-only"]
|
5077
5078
|
}, u = [];
|
5078
5079
|
let a = -1;
|
@@ -5159,17 +5160,17 @@ const sn = (
|
|
5159
5160
|
*/
|
5160
5161
|
function(e) {
|
5161
5162
|
if (e == null)
|
5162
|
-
return
|
5163
|
+
return ta;
|
5163
5164
|
if (typeof e == "function")
|
5164
5165
|
return cn(e);
|
5165
5166
|
if (typeof e == "object")
|
5166
|
-
return Array.isArray(e) ?
|
5167
|
+
return Array.isArray(e) ? Zu(e) : ea(e);
|
5167
5168
|
if (typeof e == "string")
|
5168
|
-
return
|
5169
|
+
return na(e);
|
5169
5170
|
throw new Error("Expected function, string, or object as test");
|
5170
5171
|
}
|
5171
5172
|
);
|
5172
|
-
function
|
5173
|
+
function Zu(e) {
|
5173
5174
|
const t = [];
|
5174
5175
|
let n = -1;
|
5175
5176
|
for (; ++n < e.length; )
|
@@ -5182,7 +5183,7 @@ function Ku(e) {
|
|
5182
5183
|
return !1;
|
5183
5184
|
}
|
5184
5185
|
}
|
5185
|
-
function
|
5186
|
+
function ea(e) {
|
5186
5187
|
const t = (
|
5187
5188
|
/** @type {Record<string, unknown>} */
|
5188
5189
|
e
|
@@ -5200,7 +5201,7 @@ function Ju(e) {
|
|
5200
5201
|
return !0;
|
5201
5202
|
}
|
5202
5203
|
}
|
5203
|
-
function
|
5204
|
+
function na(e) {
|
5204
5205
|
return cn(t);
|
5205
5206
|
function t(n) {
|
5206
5207
|
return n && n.type === e;
|
@@ -5209,7 +5210,7 @@ function Zu(e) {
|
|
5209
5210
|
function cn(e) {
|
5210
5211
|
return t;
|
5211
5212
|
function t(n, r, i) {
|
5212
|
-
return !!(
|
5213
|
+
return !!(ra(n) && e.call(
|
5213
5214
|
this,
|
5214
5215
|
n,
|
5215
5216
|
typeof r == "number" ? r : void 0,
|
@@ -5217,14 +5218,14 @@ function cn(e) {
|
|
5217
5218
|
));
|
5218
5219
|
}
|
5219
5220
|
}
|
5220
|
-
function
|
5221
|
+
function ta() {
|
5221
5222
|
return !0;
|
5222
5223
|
}
|
5223
|
-
function
|
5224
|
+
function ra(e) {
|
5224
5225
|
return e !== null && typeof e == "object" && "type" in e;
|
5225
5226
|
}
|
5226
|
-
const
|
5227
|
-
function
|
5227
|
+
const Rr = [], ia = !0, Fn = !1, la = "skip";
|
5228
|
+
function Or(e, t, n, r) {
|
5228
5229
|
let i;
|
5229
5230
|
typeof t == "function" && typeof n != "function" ? (r = n, n = t) : i = t;
|
5230
5231
|
const o = sn(i), l = r ? -1 : 1;
|
@@ -5248,15 +5249,15 @@ function Rr(e, t, n, r) {
|
|
5248
5249
|
}
|
5249
5250
|
return p;
|
5250
5251
|
function p() {
|
5251
|
-
let h =
|
5252
|
-
if ((!t || o(a, s, f[f.length - 1] || void 0)) && (h =
|
5252
|
+
let h = Rr, d, x, E;
|
5253
|
+
if ((!t || o(a, s, f[f.length - 1] || void 0)) && (h = oa(n(a, f)), h[0] === Fn))
|
5253
5254
|
return h;
|
5254
5255
|
if ("children" in a && a.children) {
|
5255
5256
|
const y = (
|
5256
5257
|
/** @type {UnistParent} */
|
5257
5258
|
a
|
5258
5259
|
);
|
5259
|
-
if (y.children && h[0] !==
|
5260
|
+
if (y.children && h[0] !== la)
|
5260
5261
|
for (x = (r ? y.children.length : -1) + l, E = f.concat(y); x > -1 && x < y.children.length; ) {
|
5261
5262
|
const I = y.children[x];
|
5262
5263
|
if (d = u(I, x, E)(), d[0] === Fn)
|
@@ -5268,22 +5269,22 @@ function Rr(e, t, n, r) {
|
|
5268
5269
|
}
|
5269
5270
|
}
|
5270
5271
|
}
|
5271
|
-
function
|
5272
|
-
return Array.isArray(e) ? e : typeof e == "number" ? [
|
5272
|
+
function oa(e) {
|
5273
|
+
return Array.isArray(e) ? e : typeof e == "number" ? [ia, e] : e == null ? Rr : [e];
|
5273
5274
|
}
|
5274
5275
|
function Kn(e, t, n, r) {
|
5275
5276
|
let i, o, l;
|
5276
|
-
typeof t == "function" && typeof n != "function" ? (o = void 0, l = t, i = n) : (o = t, l = n, i = r),
|
5277
|
+
typeof t == "function" && typeof n != "function" ? (o = void 0, l = t, i = n) : (o = t, l = n, i = r), Or(e, o, u, i);
|
5277
5278
|
function u(a, s) {
|
5278
5279
|
const f = s[s.length - 1], c = f ? f.children.indexOf(a) : void 0;
|
5279
5280
|
return l(a, c, f);
|
5280
5281
|
}
|
5281
5282
|
}
|
5282
|
-
const Rn = {}.hasOwnProperty,
|
5283
|
-
function
|
5284
|
-
const n = t ||
|
5283
|
+
const Rn = {}.hasOwnProperty, ua = {};
|
5284
|
+
function aa(e, t) {
|
5285
|
+
const n = t || ua, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), l = { ...$u, ...n.handlers }, u = {
|
5285
5286
|
all: s,
|
5286
|
-
applyData:
|
5287
|
+
applyData: ca,
|
5287
5288
|
definitionById: r,
|
5288
5289
|
footnoteById: i,
|
5289
5290
|
footnoteCounts: o,
|
@@ -5291,8 +5292,8 @@ function oa(e, t) {
|
|
5291
5292
|
handlers: l,
|
5292
5293
|
one: a,
|
5293
5294
|
options: n,
|
5294
|
-
patch:
|
5295
|
-
wrap:
|
5295
|
+
patch: sa,
|
5296
|
+
wrap: ha
|
5296
5297
|
};
|
5297
5298
|
return Kn(e, function(f) {
|
5298
5299
|
if (f.type === "definition" || f.type === "footnoteDefinition") {
|
@@ -5311,7 +5312,7 @@ function oa(e, t) {
|
|
5311
5312
|
}
|
5312
5313
|
return rn(f);
|
5313
5314
|
}
|
5314
|
-
return (u.options.unknownHandler ||
|
5315
|
+
return (u.options.unknownHandler || fa)(u, f, c);
|
5315
5316
|
}
|
5316
5317
|
function s(f) {
|
5317
5318
|
const c = [];
|
@@ -5332,10 +5333,10 @@ function oa(e, t) {
|
|
5332
5333
|
return c;
|
5333
5334
|
}
|
5334
5335
|
}
|
5335
|
-
function
|
5336
|
-
e.position && (t.position =
|
5336
|
+
function sa(e, t) {
|
5337
|
+
e.position && (t.position = Yi(e));
|
5337
5338
|
}
|
5338
|
-
function
|
5339
|
+
function ca(e, t) {
|
5339
5340
|
let n = t;
|
5340
5341
|
if (e && e.data) {
|
5341
5342
|
const r = e.data.hName, i = e.data.hChildren, o = e.data.hProperties;
|
@@ -5350,7 +5351,7 @@ function aa(e, t) {
|
|
5350
5351
|
}
|
5351
5352
|
return n;
|
5352
5353
|
}
|
5353
|
-
function
|
5354
|
+
function fa(e, t) {
|
5354
5355
|
const n = t.data || {}, r = "value" in t && !(Rn.call(n, "hProperties") || Rn.call(n, "hChildren")) ? { type: "text", value: t.value } : {
|
5355
5356
|
type: "element",
|
5356
5357
|
tagName: "div",
|
@@ -5359,7 +5360,7 @@ function sa(e, t) {
|
|
5359
5360
|
};
|
5360
5361
|
return e.patch(t, r), e.applyData(t, r);
|
5361
5362
|
}
|
5362
|
-
function
|
5363
|
+
function ha(e, t) {
|
5363
5364
|
const n = [];
|
5364
5365
|
let r = -1;
|
5365
5366
|
for (t && n.push({ type: "text", value: `
|
@@ -5376,11 +5377,11 @@ function Rt(e) {
|
|
5376
5377
|
return e.slice(t);
|
5377
5378
|
}
|
5378
5379
|
function Ot(e, t) {
|
5379
|
-
const n =
|
5380
|
+
const n = aa(e, t), r = n.one(e, void 0), i = Ju(n), o = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
|
5380
5381
|
return i && o.children.push({ type: "text", value: `
|
5381
5382
|
` }, i), o;
|
5382
5383
|
}
|
5383
|
-
function
|
5384
|
+
function pa(e, t) {
|
5384
5385
|
return e && "run" in e ? async function(n, r) {
|
5385
5386
|
const i = (
|
5386
5387
|
/** @type {HastRoot} */
|
@@ -5399,7 +5400,7 @@ function _t(e) {
|
|
5399
5400
|
throw e;
|
5400
5401
|
}
|
5401
5402
|
var dn, Mt;
|
5402
|
-
function
|
5403
|
+
function ma() {
|
5403
5404
|
if (Mt) return dn;
|
5404
5405
|
Mt = 1;
|
5405
5406
|
var e = Object.prototype.hasOwnProperty, t = Object.prototype.toString, n = Object.defineProperty, r = Object.getOwnPropertyDescriptor, i = function(s) {
|
@@ -5438,15 +5439,15 @@ function ha() {
|
|
5438
5439
|
return x;
|
5439
5440
|
}, dn;
|
5440
5441
|
}
|
5441
|
-
var
|
5442
|
-
const yn = /* @__PURE__ */
|
5442
|
+
var ga = /* @__PURE__ */ ma();
|
5443
|
+
const yn = /* @__PURE__ */ er(ga);
|
5443
5444
|
function On(e) {
|
5444
5445
|
if (typeof e != "object" || e === null)
|
5445
5446
|
return !1;
|
5446
5447
|
const t = Object.getPrototypeOf(e);
|
5447
5448
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
5448
5449
|
}
|
5449
|
-
function
|
5450
|
+
function da() {
|
5450
5451
|
const e = [], t = { run: n, use: r };
|
5451
5452
|
return t;
|
5452
5453
|
function n(...i) {
|
@@ -5464,7 +5465,7 @@ function ma() {
|
|
5464
5465
|
}
|
5465
5466
|
for (; ++c < i.length; )
|
5466
5467
|
(s[c] === null || s[c] === void 0) && (s[c] = i[c]);
|
5467
|
-
i = s, f ?
|
5468
|
+
i = s, f ? ya(f, u)(...s) : l(null, ...s);
|
5468
5469
|
}
|
5469
5470
|
}
|
5470
5471
|
function r(i) {
|
@@ -5475,7 +5476,7 @@ function ma() {
|
|
5475
5476
|
return e.push(i), t;
|
5476
5477
|
}
|
5477
5478
|
}
|
5478
|
-
function
|
5479
|
+
function ya(e, t) {
|
5479
5480
|
let n;
|
5480
5481
|
return r;
|
5481
5482
|
function r(...l) {
|
@@ -5502,8 +5503,8 @@ function ga(e, t) {
|
|
5502
5503
|
i(null, l);
|
5503
5504
|
}
|
5504
5505
|
}
|
5505
|
-
const ce = { basename:
|
5506
|
-
function
|
5506
|
+
const ce = { basename: ka, dirname: xa, extname: ba, join: wa, sep: "/" };
|
5507
|
+
function ka(e, t) {
|
5507
5508
|
if (t !== void 0 && typeof t != "string")
|
5508
5509
|
throw new TypeError('"ext" argument must be a string');
|
5509
5510
|
Qe(e);
|
@@ -5531,7 +5532,7 @@ function da(e, t) {
|
|
5531
5532
|
l < 0 && (o = !0, l = i + 1), u > -1 && (e.codePointAt(i) === t.codePointAt(u--) ? u < 0 && (r = i) : (u = -1, r = l));
|
5532
5533
|
return n === r ? r = l : r < 0 && (r = e.length), e.slice(n, r);
|
5533
5534
|
}
|
5534
|
-
function
|
5535
|
+
function xa(e) {
|
5535
5536
|
if (Qe(e), e.length === 0)
|
5536
5537
|
return ".";
|
5537
5538
|
let t = -1, n = e.length, r;
|
@@ -5544,7 +5545,7 @@ function ya(e) {
|
|
5544
5545
|
} else r || (r = !0);
|
5545
5546
|
return t < 0 ? e.codePointAt(0) === 47 ? "/" : "." : t === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, t);
|
5546
5547
|
}
|
5547
|
-
function
|
5548
|
+
function ba(e) {
|
5548
5549
|
Qe(e);
|
5549
5550
|
let t = e.length, n = -1, r = 0, i = -1, o = 0, l;
|
5550
5551
|
for (; t--; ) {
|
@@ -5562,19 +5563,19 @@ function ka(e) {
|
|
5562
5563
|
o === 0 || // The (right-most) trimmed path component is exactly `..`.
|
5563
5564
|
o === 1 && i === n - 1 && i === r + 1 ? "" : e.slice(i, n);
|
5564
5565
|
}
|
5565
|
-
function
|
5566
|
+
function wa(...e) {
|
5566
5567
|
let t = -1, n;
|
5567
5568
|
for (; ++t < e.length; )
|
5568
5569
|
Qe(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
|
5569
|
-
return n === void 0 ? "." :
|
5570
|
+
return n === void 0 ? "." : Sa(n);
|
5570
5571
|
}
|
5571
|
-
function
|
5572
|
+
function Sa(e) {
|
5572
5573
|
Qe(e);
|
5573
5574
|
const t = e.codePointAt(0) === 47;
|
5574
|
-
let n =
|
5575
|
+
let n = Ca(e, !t);
|
5575
5576
|
return n.length === 0 && !t && (n = "."), n.length > 0 && e.codePointAt(e.length - 1) === 47 && (n += "/"), t ? "/" + n : n;
|
5576
5577
|
}
|
5577
|
-
function
|
5578
|
+
function Ca(e, t) {
|
5578
5579
|
let n = "", r = 0, i = -1, o = 0, l = -1, u, a;
|
5579
5580
|
for (; ++l <= e.length; ) {
|
5580
5581
|
if (l < e.length)
|
@@ -5611,15 +5612,15 @@ function Qe(e) {
|
|
5611
5612
|
"Path must be a string. Received " + JSON.stringify(e)
|
5612
5613
|
);
|
5613
5614
|
}
|
5614
|
-
const
|
5615
|
-
function
|
5615
|
+
const Ea = { cwd: Ia };
|
5616
|
+
function Ia() {
|
5616
5617
|
return "/";
|
5617
5618
|
}
|
5618
5619
|
function _n(e) {
|
5619
5620
|
return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
|
5620
5621
|
e.auth === void 0);
|
5621
5622
|
}
|
5622
|
-
function
|
5623
|
+
function Aa(e) {
|
5623
5624
|
if (typeof e == "string")
|
5624
5625
|
e = new URL(e);
|
5625
5626
|
else if (!_n(e)) {
|
@@ -5632,9 +5633,9 @@ function Ea(e) {
|
|
5632
5633
|
const t = new TypeError("The URL must be of scheme file");
|
5633
5634
|
throw t.code = "ERR_INVALID_URL_SCHEME", t;
|
5634
5635
|
}
|
5635
|
-
return
|
5636
|
+
return Ta(e);
|
5636
5637
|
}
|
5637
|
-
function
|
5638
|
+
function Ta(e) {
|
5638
5639
|
if (e.hostname !== "") {
|
5639
5640
|
const r = new TypeError(
|
5640
5641
|
'File URL host must be "localhost" or empty on darwin'
|
@@ -5666,7 +5667,7 @@ const kn = (
|
|
5666
5667
|
"dirname"
|
5667
5668
|
]
|
5668
5669
|
);
|
5669
|
-
class
|
5670
|
+
class _r {
|
5670
5671
|
/**
|
5671
5672
|
* Create a new virtual file.
|
5672
5673
|
*
|
@@ -5691,7 +5692,7 @@ class Or {
|
|
5691
5692
|
*/
|
5692
5693
|
constructor(t) {
|
5693
5694
|
let n;
|
5694
|
-
t ? _n(t) ? n = { path: t } : typeof t == "string" ||
|
5695
|
+
t ? _n(t) ? n = { path: t } : typeof t == "string" || Pa(t) ? n = { value: t } : n = t : n = {}, this.cwd = "cwd" in n ? "" : Ea.cwd(), this.data = {}, this.history = [], this.messages = [];
|
5695
5696
|
let r = -1;
|
5696
5697
|
for (; ++r < kn.length; ) {
|
5697
5698
|
const o = kn[r];
|
@@ -5799,7 +5800,7 @@ class Or {
|
|
5799
5800
|
* Nothing.
|
5800
5801
|
*/
|
5801
5802
|
set path(t) {
|
5802
|
-
_n(t) && (t =
|
5803
|
+
_n(t) && (t = Aa(t)), bn(t, "path"), this.path !== t && this.history.push(t);
|
5803
5804
|
}
|
5804
5805
|
/**
|
5805
5806
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
@@ -6050,10 +6051,10 @@ function Nt(e, t) {
|
|
6050
6051
|
if (!e)
|
6051
6052
|
throw new Error("Setting `" + t + "` requires `path` to be set too");
|
6052
6053
|
}
|
6053
|
-
function
|
6054
|
+
function Pa(e) {
|
6054
6055
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
6055
6056
|
}
|
6056
|
-
const
|
6057
|
+
const La = (
|
6057
6058
|
/**
|
6058
6059
|
* @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
|
6059
6060
|
*/
|
@@ -6074,13 +6075,13 @@ const Ta = (
|
|
6074
6075
|
};
|
6075
6076
|
return Object.setPrototypeOf(o, r), o;
|
6076
6077
|
}
|
6077
|
-
),
|
6078
|
-
class Jn extends
|
6078
|
+
), va = {}.hasOwnProperty;
|
6079
|
+
class Jn extends La {
|
6079
6080
|
/**
|
6080
6081
|
* Create a processor.
|
6081
6082
|
*/
|
6082
6083
|
constructor() {
|
6083
|
-
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 =
|
6084
|
+
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 = da();
|
6084
6085
|
}
|
6085
6086
|
/**
|
6086
6087
|
* Copy a processor.
|
@@ -6165,7 +6166,7 @@ class Jn extends Ta {
|
|
6165
6166
|
* the entire dataset when getting without key.
|
6166
6167
|
*/
|
6167
6168
|
data(t, n) {
|
6168
|
-
return typeof t == "string" ? arguments.length === 2 ? (Cn("data", this.frozen), this.namespace[t] = n, this) :
|
6169
|
+
return typeof t == "string" ? arguments.length === 2 ? (Cn("data", this.frozen), this.namespace[t] = n, this) : va.call(this.namespace, t) && this.namespace[t] || void 0 : t ? (Cn("data", this.frozen), this.namespace = t, this) : this.namespace;
|
6169
6170
|
}
|
6170
6171
|
/**
|
6171
6172
|
* Freeze a processor.
|
@@ -6280,7 +6281,7 @@ class Jn extends Ta {
|
|
6280
6281
|
/** @type {unknown} */
|
6281
6282
|
c
|
6282
6283
|
), d = r.stringify(h, p);
|
6283
|
-
|
6284
|
+
Fa(d) ? p.value = d : p.result = d, s(
|
6284
6285
|
f,
|
6285
6286
|
/** @type {VFileWithOutput<CompileResult>} */
|
6286
6287
|
p
|
@@ -6556,7 +6557,7 @@ class Jn extends Ta {
|
|
6556
6557
|
}
|
6557
6558
|
}
|
6558
6559
|
}
|
6559
|
-
const
|
6560
|
+
const za = new Jn().freeze();
|
6560
6561
|
function wn(e, t) {
|
6561
6562
|
if (typeof t != "function")
|
6562
6563
|
throw new TypeError("Cannot `" + e + "` without `parser`");
|
@@ -6582,18 +6583,18 @@ function jt(e, t, n) {
|
|
6582
6583
|
);
|
6583
6584
|
}
|
6584
6585
|
function Ke(e) {
|
6585
|
-
return
|
6586
|
+
return Da(e) ? e : new _r(e);
|
6586
6587
|
}
|
6587
|
-
function
|
6588
|
+
function Da(e) {
|
6588
6589
|
return !!(e && typeof e == "object" && "message" in e && "messages" in e);
|
6589
6590
|
}
|
6590
|
-
function
|
6591
|
-
return typeof e == "string" ||
|
6591
|
+
function Fa(e) {
|
6592
|
+
return typeof e == "string" || Ra(e);
|
6592
6593
|
}
|
6593
|
-
function
|
6594
|
+
function Ra(e) {
|
6594
6595
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
6595
6596
|
}
|
6596
|
-
const Ht = [], Ut = { allowDangerousHtml: !0 },
|
6597
|
+
const Ht = [], Ut = { allowDangerousHtml: !0 }, Oa = /^(https?|ircs?|mailto|xmpp)$/i, _a = [
|
6597
6598
|
{ from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
|
6598
6599
|
{ from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
|
6599
6600
|
{
|
@@ -6628,30 +6629,30 @@ const Ht = [], Ut = { allowDangerousHtml: !0 }, Fa = /^(https?|ircs?|mailto|xmpp
|
|
6628
6629
|
{ from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
|
6629
6630
|
];
|
6630
6631
|
function qt(e) {
|
6631
|
-
const t =
|
6632
|
-
return
|
6632
|
+
const t = Ma(e), n = Na(e);
|
6633
|
+
return Ba(t.runSync(t.parse(n), n), e);
|
6633
6634
|
}
|
6634
|
-
function
|
6635
|
+
function Ma(e) {
|
6635
6636
|
const t = e.rehypePlugins || Ht, n = e.remarkPlugins || Ht, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...Ut } : Ut;
|
6636
|
-
return
|
6637
|
+
return za().use(xu).use(n).use(pa, r).use(t);
|
6637
6638
|
}
|
6638
|
-
function
|
6639
|
-
const t = e.children || "", n = new
|
6639
|
+
function Na(e) {
|
6640
|
+
const t = e.children || "", n = new _r();
|
6640
6641
|
return typeof t == "string" && (n.value = t), n;
|
6641
6642
|
}
|
6642
|
-
function
|
6643
|
-
const n = t.allowedElements, r = t.allowElement, i = t.components, o = t.disallowedElements, l = t.skipHtml, u = t.unwrapDisallowed, a = t.urlTransform ||
|
6644
|
-
for (const f of
|
6643
|
+
function Ba(e, t) {
|
6644
|
+
const n = t.allowedElements, r = t.allowElement, i = t.components, o = t.disallowedElements, l = t.skipHtml, u = t.unwrapDisallowed, a = t.urlTransform || ja;
|
6645
|
+
for (const f of _a)
|
6645
6646
|
;
|
6646
|
-
return Kn(e, s),
|
6647
|
-
Fragment:
|
6647
|
+
return Kn(e, s), el(e, {
|
6648
|
+
Fragment: mi,
|
6648
6649
|
// @ts-expect-error
|
6649
6650
|
// React components are allowed to return numbers,
|
6650
6651
|
// but not according to the types in hast-util-to-jsx-runtime
|
6651
6652
|
components: i,
|
6652
6653
|
ignoreInvalidStyle: !0,
|
6653
6654
|
jsx: de,
|
6654
|
-
jsxs:
|
6655
|
+
jsxs: gi,
|
6655
6656
|
passKeys: !0,
|
6656
6657
|
passNode: !0
|
6657
6658
|
});
|
@@ -6673,13 +6674,13 @@ function Ma(e, t) {
|
|
6673
6674
|
}
|
6674
6675
|
}
|
6675
6676
|
}
|
6676
|
-
function
|
6677
|
+
function ja(e) {
|
6677
6678
|
const t = e.indexOf(":"), n = e.indexOf("?"), r = e.indexOf("#"), i = e.indexOf("/");
|
6678
6679
|
return (
|
6679
6680
|
// If there is no protocol, it’s relative.
|
6680
6681
|
t === -1 || // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.
|
6681
6682
|
i !== -1 && t > i || n !== -1 && t > n || r !== -1 && t > r || // It is a protocol, it should be allowed.
|
6682
|
-
|
6683
|
+
Oa.test(e.slice(0, t)) ? e : ""
|
6683
6684
|
);
|
6684
6685
|
}
|
6685
6686
|
function Vt(e, t) {
|
@@ -6691,16 +6692,16 @@ function Vt(e, t) {
|
|
6691
6692
|
r++, i = n.indexOf(t, i + t.length);
|
6692
6693
|
return r;
|
6693
6694
|
}
|
6694
|
-
function
|
6695
|
+
function Ha(e) {
|
6695
6696
|
if (typeof e != "string")
|
6696
6697
|
throw new TypeError("Expected a string");
|
6697
6698
|
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
6698
6699
|
}
|
6699
|
-
function
|
6700
|
-
const i = sn(n.ignore || []), o =
|
6700
|
+
function Ua(e, t, n) {
|
6701
|
+
const i = sn(n.ignore || []), o = qa(t);
|
6701
6702
|
let l = -1;
|
6702
6703
|
for (; ++l < o.length; )
|
6703
|
-
|
6704
|
+
Or(e, "text", u);
|
6704
6705
|
function u(s, f) {
|
6705
6706
|
let c = -1, p;
|
6706
6707
|
for (; ++c < f.length; ) {
|
@@ -6740,7 +6741,7 @@ function ja(e, t, n) {
|
|
6740
6741
|
return y ? (d < s.value.length && I.push({ type: "text", value: s.value.slice(d) }), c.children.splice(E, 1, ...I)) : I = [s], E + I.length;
|
6741
6742
|
}
|
6742
6743
|
}
|
6743
|
-
function
|
6744
|
+
function qa(e) {
|
6744
6745
|
const t = [];
|
6745
6746
|
if (!Array.isArray(e))
|
6746
6747
|
throw new TypeError("Expected find and replace tuple or list of tuples");
|
@@ -6748,37 +6749,37 @@ function Ha(e) {
|
|
6748
6749
|
let r = -1;
|
6749
6750
|
for (; ++r < n.length; ) {
|
6750
6751
|
const i = n[r];
|
6751
|
-
t.push([
|
6752
|
+
t.push([Va(i[0]), $a(i[1])]);
|
6752
6753
|
}
|
6753
6754
|
return t;
|
6754
6755
|
}
|
6755
|
-
function
|
6756
|
-
return typeof e == "string" ? new RegExp(
|
6756
|
+
function Va(e) {
|
6757
|
+
return typeof e == "string" ? new RegExp(Ha(e), "g") : e;
|
6757
6758
|
}
|
6758
|
-
function
|
6759
|
+
function $a(e) {
|
6759
6760
|
return typeof e == "function" ? e : function() {
|
6760
6761
|
return e;
|
6761
6762
|
};
|
6762
6763
|
}
|
6763
6764
|
const En = "phrasing", In = ["autolink", "link", "image", "label"];
|
6764
|
-
function
|
6765
|
+
function Wa() {
|
6765
6766
|
return {
|
6766
|
-
transforms: [
|
6767
|
+
transforms: [Za],
|
6767
6768
|
enter: {
|
6768
|
-
literalAutolink:
|
6769
|
+
literalAutolink: Ya,
|
6769
6770
|
literalAutolinkEmail: An,
|
6770
6771
|
literalAutolinkHttp: An,
|
6771
6772
|
literalAutolinkWww: An
|
6772
6773
|
},
|
6773
6774
|
exit: {
|
6774
|
-
literalAutolink:
|
6775
|
-
literalAutolinkEmail:
|
6776
|
-
literalAutolinkHttp:
|
6777
|
-
literalAutolinkWww:
|
6775
|
+
literalAutolink: Ja,
|
6776
|
+
literalAutolinkEmail: Ka,
|
6777
|
+
literalAutolinkHttp: Ga,
|
6778
|
+
literalAutolinkWww: Xa
|
6778
6779
|
}
|
6779
6780
|
};
|
6780
6781
|
}
|
6781
|
-
function
|
6782
|
+
function Qa() {
|
6782
6783
|
return {
|
6783
6784
|
unsafe: [
|
6784
6785
|
{
|
@@ -6805,41 +6806,41 @@ function $a() {
|
|
6805
6806
|
]
|
6806
6807
|
};
|
6807
6808
|
}
|
6808
|
-
function
|
6809
|
+
function Ya(e) {
|
6809
6810
|
this.enter({ type: "link", title: null, url: "", children: [] }, e);
|
6810
6811
|
}
|
6811
6812
|
function An(e) {
|
6812
6813
|
this.config.enter.autolinkProtocol.call(this, e);
|
6813
6814
|
}
|
6814
|
-
function
|
6815
|
+
function Ga(e) {
|
6815
6816
|
this.config.exit.autolinkProtocol.call(this, e);
|
6816
6817
|
}
|
6817
|
-
function
|
6818
|
+
function Xa(e) {
|
6818
6819
|
this.config.exit.data.call(this, e);
|
6819
6820
|
const t = this.stack[this.stack.length - 1];
|
6820
6821
|
t.url = "http://" + this.sliceSerialize(e);
|
6821
6822
|
}
|
6822
|
-
function
|
6823
|
+
function Ka(e) {
|
6823
6824
|
this.config.exit.autolinkEmail.call(this, e);
|
6824
6825
|
}
|
6825
|
-
function
|
6826
|
+
function Ja(e) {
|
6826
6827
|
this.exit(e);
|
6827
6828
|
}
|
6828
|
-
function
|
6829
|
-
|
6829
|
+
function Za(e) {
|
6830
|
+
Ua(
|
6830
6831
|
e,
|
6831
6832
|
[
|
6832
|
-
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,
|
6833
|
-
[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"),
|
6833
|
+
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, es],
|
6834
|
+
[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"), ns]
|
6834
6835
|
],
|
6835
6836
|
{ ignore: ["link", "linkReference"] }
|
6836
6837
|
);
|
6837
6838
|
}
|
6838
|
-
function
|
6839
|
+
function es(e, t, n, r, i) {
|
6839
6840
|
let o = "";
|
6840
|
-
if (!
|
6841
|
+
if (!Mr(i) || (/^w/i.test(t) && (n = t + n, t = "", o = "http://"), !ts(n)))
|
6841
6842
|
return !1;
|
6842
|
-
const l =
|
6843
|
+
const l = rs(n + r);
|
6843
6844
|
if (!l[0]) return !1;
|
6844
6845
|
const u = {
|
6845
6846
|
type: "link",
|
@@ -6849,10 +6850,10 @@ function Ja(e, t, n, r, i) {
|
|
6849
6850
|
};
|
6850
6851
|
return l[1] ? [u, { type: "text", value: l[1] }] : u;
|
6851
6852
|
}
|
6852
|
-
function
|
6853
|
+
function ns(e, t, n, r) {
|
6853
6854
|
return (
|
6854
6855
|
// Not an expected previous character.
|
6855
|
-
!
|
6856
|
+
!Mr(r, !0) || // Label ends in not allowed character.
|
6856
6857
|
/[-\d_]$/.test(n) ? !1 : {
|
6857
6858
|
type: "link",
|
6858
6859
|
title: null,
|
@@ -6861,11 +6862,11 @@ function Za(e, t, n, r) {
|
|
6861
6862
|
}
|
6862
6863
|
);
|
6863
6864
|
}
|
6864
|
-
function
|
6865
|
+
function ts(e) {
|
6865
6866
|
const t = e.split(".");
|
6866
6867
|
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])));
|
6867
6868
|
}
|
6868
|
-
function
|
6869
|
+
function rs(e) {
|
6869
6870
|
const t = /[!"&'),.:;<>?\]}]+$/.exec(e);
|
6870
6871
|
if (!t)
|
6871
6872
|
return [e, void 0];
|
@@ -6877,69 +6878,69 @@ function ns(e) {
|
|
6877
6878
|
e += n.slice(0, r + 1), n = n.slice(r + 1), r = n.indexOf(")"), o++;
|
6878
6879
|
return [e, n];
|
6879
6880
|
}
|
6880
|
-
function
|
6881
|
+
function Mr(e, t) {
|
6881
6882
|
const n = e.input.charCodeAt(e.index - 1);
|
6882
6883
|
return (e.index === 0 || Ee(n) || on(n)) && // If it’s an email, the previous character should not be a slash.
|
6883
6884
|
(!t || n !== 47);
|
6884
6885
|
}
|
6885
|
-
|
6886
|
-
function
|
6886
|
+
Nr.peek = ms;
|
6887
|
+
function is() {
|
6887
6888
|
return {
|
6888
6889
|
enter: {
|
6889
|
-
gfmFootnoteDefinition:
|
6890
|
-
gfmFootnoteDefinitionLabelString:
|
6891
|
-
gfmFootnoteCall:
|
6892
|
-
gfmFootnoteCallString:
|
6890
|
+
gfmFootnoteDefinition: os,
|
6891
|
+
gfmFootnoteDefinitionLabelString: us,
|
6892
|
+
gfmFootnoteCall: cs,
|
6893
|
+
gfmFootnoteCallString: fs
|
6893
6894
|
},
|
6894
6895
|
exit: {
|
6895
|
-
gfmFootnoteDefinition:
|
6896
|
-
gfmFootnoteDefinitionLabelString:
|
6897
|
-
gfmFootnoteCall:
|
6898
|
-
gfmFootnoteCallString:
|
6896
|
+
gfmFootnoteDefinition: ss,
|
6897
|
+
gfmFootnoteDefinitionLabelString: as,
|
6898
|
+
gfmFootnoteCall: ps,
|
6899
|
+
gfmFootnoteCallString: hs
|
6899
6900
|
}
|
6900
6901
|
};
|
6901
6902
|
}
|
6902
|
-
function
|
6903
|
+
function ls() {
|
6903
6904
|
return {
|
6904
6905
|
// This is on by default already.
|
6905
6906
|
unsafe: [{ character: "[", inConstruct: ["phrasing", "label", "reference"] }],
|
6906
|
-
handlers: { footnoteDefinition:
|
6907
|
+
handlers: { footnoteDefinition: gs, footnoteReference: Nr }
|
6907
6908
|
};
|
6908
6909
|
}
|
6909
|
-
function
|
6910
|
+
function os(e) {
|
6910
6911
|
this.enter(
|
6911
6912
|
{ type: "footnoteDefinition", identifier: "", label: "", children: [] },
|
6912
6913
|
e
|
6913
6914
|
);
|
6914
6915
|
}
|
6915
|
-
function
|
6916
|
+
function us() {
|
6916
6917
|
this.buffer();
|
6917
6918
|
}
|
6918
|
-
function
|
6919
|
+
function as(e) {
|
6919
6920
|
const t = this.resume(), n = this.stack[this.stack.length - 1];
|
6920
6921
|
n.label = t, n.identifier = se(
|
6921
6922
|
this.sliceSerialize(e)
|
6922
6923
|
).toLowerCase();
|
6923
6924
|
}
|
6924
|
-
function
|
6925
|
+
function ss(e) {
|
6925
6926
|
this.exit(e);
|
6926
6927
|
}
|
6927
|
-
function
|
6928
|
+
function cs(e) {
|
6928
6929
|
this.enter({ type: "footnoteReference", identifier: "", label: "" }, e);
|
6929
6930
|
}
|
6930
|
-
function
|
6931
|
+
function fs() {
|
6931
6932
|
this.buffer();
|
6932
6933
|
}
|
6933
|
-
function
|
6934
|
+
function hs(e) {
|
6934
6935
|
const t = this.resume(), n = this.stack[this.stack.length - 1];
|
6935
6936
|
n.label = t, n.identifier = se(
|
6936
6937
|
this.sliceSerialize(e)
|
6937
6938
|
).toLowerCase();
|
6938
6939
|
}
|
6939
|
-
function
|
6940
|
+
function ps(e) {
|
6940
6941
|
this.exit(e);
|
6941
6942
|
}
|
6942
|
-
function
|
6943
|
+
function Nr(e, t, n, r) {
|
6943
6944
|
const i = n.createTracker(r);
|
6944
6945
|
let o = i.move("[^");
|
6945
6946
|
const l = n.enter("footnoteReference"), u = n.enter("reference");
|
@@ -6951,10 +6952,10 @@ function Mr(e, t, n, r) {
|
|
6951
6952
|
})
|
6952
6953
|
), u(), l(), o += i.move("]"), o;
|
6953
6954
|
}
|
6954
|
-
function
|
6955
|
+
function ms() {
|
6955
6956
|
return "[";
|
6956
6957
|
}
|
6957
|
-
function
|
6958
|
+
function gs(e, t, n, r) {
|
6958
6959
|
const i = n.createTracker(r);
|
6959
6960
|
let o = i.move("[^");
|
6960
6961
|
const l = n.enter("footnoteDefinition"), u = n.enter("label");
|
@@ -6967,13 +6968,13 @@ function ps(e, t, n, r) {
|
|
6967
6968
|
), u(), o += i.move(
|
6968
6969
|
"]:" + (e.children && e.children.length > 0 ? " " : "")
|
6969
6970
|
), i.shift(4), o += i.move(
|
6970
|
-
n.indentLines(n.containerFlow(e, i.current()),
|
6971
|
+
n.indentLines(n.containerFlow(e, i.current()), ds)
|
6971
6972
|
), l(), o;
|
6972
6973
|
}
|
6973
|
-
function
|
6974
|
+
function ds(e, t, n) {
|
6974
6975
|
return t === 0 ? e : (n ? "" : " ") + e;
|
6975
6976
|
}
|
6976
|
-
const
|
6977
|
+
const ys = [
|
6977
6978
|
"autolink",
|
6978
6979
|
"destinationLiteral",
|
6979
6980
|
"destinationRaw",
|
@@ -6981,33 +6982,33 @@ const gs = [
|
|
6981
6982
|
"titleQuote",
|
6982
6983
|
"titleApostrophe"
|
6983
6984
|
];
|
6984
|
-
|
6985
|
-
function
|
6985
|
+
Br.peek = Ss;
|
6986
|
+
function ks() {
|
6986
6987
|
return {
|
6987
6988
|
canContainEols: ["delete"],
|
6988
|
-
enter: { strikethrough:
|
6989
|
-
exit: { strikethrough:
|
6989
|
+
enter: { strikethrough: bs },
|
6990
|
+
exit: { strikethrough: ws }
|
6990
6991
|
};
|
6991
6992
|
}
|
6992
|
-
function
|
6993
|
+
function xs() {
|
6993
6994
|
return {
|
6994
6995
|
unsafe: [
|
6995
6996
|
{
|
6996
6997
|
character: "~",
|
6997
6998
|
inConstruct: "phrasing",
|
6998
|
-
notInConstruct:
|
6999
|
+
notInConstruct: ys
|
6999
7000
|
}
|
7000
7001
|
],
|
7001
|
-
handlers: { delete:
|
7002
|
+
handlers: { delete: Br }
|
7002
7003
|
};
|
7003
7004
|
}
|
7004
|
-
function
|
7005
|
+
function bs(e) {
|
7005
7006
|
this.enter({ type: "delete", children: [] }, e);
|
7006
7007
|
}
|
7007
|
-
function
|
7008
|
+
function ws(e) {
|
7008
7009
|
this.exit(e);
|
7009
7010
|
}
|
7010
|
-
function
|
7011
|
+
function Br(e, t, n, r) {
|
7011
7012
|
const i = n.createTracker(r), o = n.enter("strikethrough");
|
7012
7013
|
let l = i.move("~~");
|
7013
7014
|
return l += n.containerPhrasing(e, {
|
@@ -7016,20 +7017,20 @@ function Nr(e, t, n, r) {
|
|
7016
7017
|
after: "~"
|
7017
7018
|
}), l += i.move("~~"), o(), l;
|
7018
7019
|
}
|
7019
|
-
function
|
7020
|
+
function Ss() {
|
7020
7021
|
return "~";
|
7021
7022
|
}
|
7022
|
-
function
|
7023
|
+
function Cs(e) {
|
7023
7024
|
return e.length;
|
7024
7025
|
}
|
7025
|
-
function
|
7026
|
-
const n = t, r = (n.align || []).concat(), i = n.stringLength ||
|
7026
|
+
function Es(e, t) {
|
7027
|
+
const n = t, r = (n.align || []).concat(), i = n.stringLength || Cs, o = [], l = [], u = [], a = [];
|
7027
7028
|
let s = 0, f = -1;
|
7028
7029
|
for (; ++f < e.length; ) {
|
7029
7030
|
const x = [], E = [];
|
7030
7031
|
let y = -1;
|
7031
7032
|
for (e[f].length > s && (s = e[f].length); ++y < e[f].length; ) {
|
7032
|
-
const I =
|
7033
|
+
const I = Is(e[f][y]);
|
7033
7034
|
if (n.alignDelimiters !== !1) {
|
7034
7035
|
const C = i(I);
|
7035
7036
|
E[y] = C, (a[y] === void 0 || C > a[y]) && (a[y] = C);
|
@@ -7084,26 +7085,26 @@ function Ss(e, t) {
|
|
7084
7085
|
return d.join(`
|
7085
7086
|
`);
|
7086
7087
|
}
|
7087
|
-
function
|
7088
|
+
function Is(e) {
|
7088
7089
|
return e == null ? "" : String(e);
|
7089
7090
|
}
|
7090
7091
|
function $t(e) {
|
7091
7092
|
const t = typeof e == "string" ? e.codePointAt(0) : 0;
|
7092
7093
|
return t === 67 || t === 99 ? 99 : t === 76 || t === 108 ? 108 : t === 82 || t === 114 ? 114 : 0;
|
7093
7094
|
}
|
7094
|
-
function
|
7095
|
+
function As(e, t, n, r) {
|
7095
7096
|
const i = n.enter("blockquote"), o = n.createTracker(r);
|
7096
7097
|
o.move("> "), o.shift(2);
|
7097
7098
|
const l = n.indentLines(
|
7098
7099
|
n.containerFlow(e, o.current()),
|
7099
|
-
|
7100
|
+
Ts
|
7100
7101
|
);
|
7101
7102
|
return i(), l;
|
7102
7103
|
}
|
7103
|
-
function
|
7104
|
+
function Ts(e, t, n) {
|
7104
7105
|
return ">" + (n ? "" : " ") + e;
|
7105
7106
|
}
|
7106
|
-
function
|
7107
|
+
function Ps(e, t) {
|
7107
7108
|
return Wt(e, t.inConstruct, !0) && !Wt(e, t.notInConstruct, !1);
|
7108
7109
|
}
|
7109
7110
|
function Wt(e, t, n) {
|
@@ -7119,12 +7120,12 @@ function Qt(e, t, n, r) {
|
|
7119
7120
|
let i = -1;
|
7120
7121
|
for (; ++i < n.unsafe.length; )
|
7121
7122
|
if (n.unsafe[i].character === `
|
7122
|
-
` &&
|
7123
|
+
` && Ps(n.stack, n.unsafe[i]))
|
7123
7124
|
return /[ \t]/.test(r.before) ? "" : " ";
|
7124
7125
|
return `\\
|
7125
7126
|
`;
|
7126
7127
|
}
|
7127
|
-
function
|
7128
|
+
function Ls(e, t) {
|
7128
7129
|
const n = String(e);
|
7129
7130
|
let r = n.indexOf(t), i = r, o = 0, l = 0;
|
7130
7131
|
if (typeof t != "string")
|
@@ -7133,13 +7134,13 @@ function Ts(e, t) {
|
|
7133
7134
|
r === i ? ++o > l && (l = o) : o = 1, i = r + t.length, r = n.indexOf(t, i);
|
7134
7135
|
return l;
|
7135
7136
|
}
|
7136
|
-
function
|
7137
|
+
function vs(e, t) {
|
7137
7138
|
return !!(t.options.fences === !1 && e.value && // If there’s no info…
|
7138
7139
|
!e.lang && // And there’s a non-whitespace character…
|
7139
7140
|
/[^ \r\n]/.test(e.value) && // And the value doesn’t start or end in a blank…
|
7140
7141
|
!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value));
|
7141
7142
|
}
|
7142
|
-
function
|
7143
|
+
function zs(e) {
|
7143
7144
|
const t = e.options.fence || "`";
|
7144
7145
|
if (t !== "`" && t !== "~")
|
7145
7146
|
throw new Error(
|
@@ -7147,13 +7148,13 @@ function Ls(e) {
|
|
7147
7148
|
);
|
7148
7149
|
return t;
|
7149
7150
|
}
|
7150
|
-
function
|
7151
|
-
const i =
|
7152
|
-
if (
|
7153
|
-
const c = n.enter("codeIndented"), p = n.indentLines(o,
|
7151
|
+
function Ds(e, t, n, r) {
|
7152
|
+
const i = zs(n), o = e.value || "", l = i === "`" ? "GraveAccent" : "Tilde";
|
7153
|
+
if (vs(e, n)) {
|
7154
|
+
const c = n.enter("codeIndented"), p = n.indentLines(o, Fs);
|
7154
7155
|
return c(), p;
|
7155
7156
|
}
|
7156
|
-
const u = n.createTracker(r), a = i.repeat(Math.max(
|
7157
|
+
const u = n.createTracker(r), a = i.repeat(Math.max(Ls(o, i) + 1, 3)), s = n.enter("codeFenced");
|
7157
7158
|
let f = u.move(a);
|
7158
7159
|
if (e.lang) {
|
7159
7160
|
const c = n.enter(`codeFencedLang${l}`);
|
@@ -7182,7 +7183,7 @@ function vs(e, t, n, r) {
|
|
7182
7183
|
`), o && (f += u.move(o + `
|
7183
7184
|
`)), f += u.move(a), s(), f;
|
7184
7185
|
}
|
7185
|
-
function
|
7186
|
+
function Fs(e, t, n) {
|
7186
7187
|
return (n ? "" : " ") + e;
|
7187
7188
|
}
|
7188
7189
|
function Zn(e) {
|
@@ -7193,7 +7194,7 @@ function Zn(e) {
|
|
7193
7194
|
);
|
7194
7195
|
return t;
|
7195
7196
|
}
|
7196
|
-
function
|
7197
|
+
function Rs(e, t, n, r) {
|
7197
7198
|
const i = Zn(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.enter("definition");
|
7198
7199
|
let u = n.enter("label");
|
7199
7200
|
const a = n.createTracker(r);
|
@@ -7223,7 +7224,7 @@ function Ds(e, t, n, r) {
|
|
7223
7224
|
})
|
7224
7225
|
), s += a.move(i), u()), l(), s;
|
7225
7226
|
}
|
7226
|
-
function
|
7227
|
+
function Os(e) {
|
7227
7228
|
const t = e.options.emphasis || "*";
|
7228
7229
|
if (t !== "*" && t !== "_")
|
7229
7230
|
throw new Error(
|
@@ -7267,9 +7268,9 @@ function ln(e, t, n) {
|
|
7267
7268
|
{ inside: !1, outside: !1 }
|
7268
7269
|
);
|
7269
7270
|
}
|
7270
|
-
|
7271
|
-
function
|
7272
|
-
const i =
|
7271
|
+
jr.peek = _s;
|
7272
|
+
function jr(e, t, n, r) {
|
7273
|
+
const i = Os(n), o = n.enter("emphasis"), l = n.createTracker(r), u = l.move(i);
|
7273
7274
|
let a = l.move(
|
7274
7275
|
n.containerPhrasing(e, {
|
7275
7276
|
after: i,
|
@@ -7291,19 +7292,19 @@ function Br(e, t, n, r) {
|
|
7291
7292
|
before: f.outside
|
7292
7293
|
}, u + a + h;
|
7293
7294
|
}
|
7294
|
-
function
|
7295
|
+
function _s(e, t, n) {
|
7295
7296
|
return n.options.emphasis || "*";
|
7296
7297
|
}
|
7297
|
-
function
|
7298
|
+
function Ms(e, t) {
|
7298
7299
|
let n = !1;
|
7299
7300
|
return Kn(e, function(r) {
|
7300
7301
|
if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
|
7301
7302
|
return n = !0, Fn;
|
7302
7303
|
}), !!((!e.depth || e.depth < 3) && Vn(e) && (t.options.setext || n));
|
7303
7304
|
}
|
7304
|
-
function
|
7305
|
+
function Ns(e, t, n, r) {
|
7305
7306
|
const i = Math.max(Math.min(6, e.depth || 1), 1), o = n.createTracker(r);
|
7306
|
-
if (
|
7307
|
+
if (Ms(e, n)) {
|
7307
7308
|
const f = n.enter("headingSetext"), c = n.enter("phrasing"), p = n.containerPhrasing(e, {
|
7308
7309
|
...o.current(),
|
7309
7310
|
before: `
|
@@ -7330,15 +7331,15 @@ function _s(e, t, n, r) {
|
|
7330
7331
|
});
|
7331
7332
|
return /^[\t ]/.test(s) && (s = Ve(s.charCodeAt(0)) + s.slice(1)), s = s ? l + " " + s : l, n.options.closeAtx && (s += " " + l), a(), u(), s;
|
7332
7333
|
}
|
7333
|
-
|
7334
|
-
function
|
7334
|
+
Hr.peek = Bs;
|
7335
|
+
function Hr(e) {
|
7335
7336
|
return e.value || "";
|
7336
7337
|
}
|
7337
|
-
function
|
7338
|
+
function Bs() {
|
7338
7339
|
return "<";
|
7339
7340
|
}
|
7340
|
-
|
7341
|
-
function
|
7341
|
+
Ur.peek = js;
|
7342
|
+
function Ur(e, t, n, r) {
|
7342
7343
|
const i = Zn(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.enter("image");
|
7343
7344
|
let u = n.enter("label");
|
7344
7345
|
const a = n.createTracker(r);
|
@@ -7363,11 +7364,11 @@ function Hr(e, t, n, r) {
|
|
7363
7364
|
})
|
7364
7365
|
), s += a.move(i), u()), s += a.move(")"), l(), s;
|
7365
7366
|
}
|
7366
|
-
function
|
7367
|
+
function js() {
|
7367
7368
|
return "!";
|
7368
7369
|
}
|
7369
|
-
|
7370
|
-
function
|
7370
|
+
qr.peek = Hs;
|
7371
|
+
function qr(e, t, n, r) {
|
7371
7372
|
const i = e.referenceType, o = n.enter("imageReference");
|
7372
7373
|
let l = n.enter("label");
|
7373
7374
|
const u = n.createTracker(r);
|
@@ -7387,11 +7388,11 @@ function Ur(e, t, n, r) {
|
|
7387
7388
|
});
|
7388
7389
|
return l(), n.stack = f, o(), i === "full" || !s || s !== c ? a += u.move(c + "]") : i === "shortcut" ? a = a.slice(0, -1) : a += u.move("]"), a;
|
7389
7390
|
}
|
7390
|
-
function
|
7391
|
+
function Hs() {
|
7391
7392
|
return "!";
|
7392
7393
|
}
|
7393
|
-
|
7394
|
-
function
|
7394
|
+
Vr.peek = Us;
|
7395
|
+
function Vr(e, t, n) {
|
7395
7396
|
let r = e.value || "", i = "`", o = -1;
|
7396
7397
|
for (; new RegExp("(^|[^`])" + i + "([^`]|$)").test(r); )
|
7397
7398
|
i += "`";
|
@@ -7406,10 +7407,10 @@ function qr(e, t, n) {
|
|
7406
7407
|
}
|
7407
7408
|
return i + r + i;
|
7408
7409
|
}
|
7409
|
-
function
|
7410
|
+
function Us() {
|
7410
7411
|
return "`";
|
7411
7412
|
}
|
7412
|
-
function
|
7413
|
+
function $r(e, t) {
|
7413
7414
|
const n = Vn(e);
|
7414
7415
|
return !!(!t.options.resourceLink && // If there’s a url…
|
7415
7416
|
e.url && // And there’s a no title…
|
@@ -7420,11 +7421,11 @@ function Vr(e, t) {
|
|
7420
7421
|
// references don’t work), space, or angle brackets…
|
7421
7422
|
!/[\0- <>\u007F]/.test(e.url));
|
7422
7423
|
}
|
7423
|
-
|
7424
|
-
function
|
7424
|
+
Wr.peek = qs;
|
7425
|
+
function Wr(e, t, n, r) {
|
7425
7426
|
const i = Zn(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.createTracker(r);
|
7426
7427
|
let u, a;
|
7427
|
-
if (
|
7428
|
+
if ($r(e, n)) {
|
7428
7429
|
const f = n.stack;
|
7429
7430
|
n.stack = [], u = n.enter("autolink");
|
7430
7431
|
let c = l.move("<");
|
@@ -7462,11 +7463,11 @@ function $r(e, t, n, r) {
|
|
7462
7463
|
})
|
7463
7464
|
), s += l.move(i), a()), s += l.move(")"), u(), s;
|
7464
7465
|
}
|
7465
|
-
function
|
7466
|
-
return
|
7466
|
+
function qs(e, t, n) {
|
7467
|
+
return $r(e, n) ? "<" : "[";
|
7467
7468
|
}
|
7468
|
-
|
7469
|
-
function
|
7469
|
+
Qr.peek = Vs;
|
7470
|
+
function Qr(e, t, n, r) {
|
7470
7471
|
const i = e.referenceType, o = n.enter("linkReference");
|
7471
7472
|
let l = n.enter("label");
|
7472
7473
|
const u = n.createTracker(r);
|
@@ -7486,7 +7487,7 @@ function Wr(e, t, n, r) {
|
|
7486
7487
|
});
|
7487
7488
|
return l(), n.stack = f, o(), i === "full" || !s || s !== c ? a += u.move(c + "]") : i === "shortcut" ? a = a.slice(0, -1) : a += u.move("]"), a;
|
7488
7489
|
}
|
7489
|
-
function
|
7490
|
+
function Vs() {
|
7490
7491
|
return "[";
|
7491
7492
|
}
|
7492
7493
|
function et(e) {
|
@@ -7497,7 +7498,7 @@ function et(e) {
|
|
7497
7498
|
);
|
7498
7499
|
return t;
|
7499
7500
|
}
|
7500
|
-
function
|
7501
|
+
function $s(e) {
|
7501
7502
|
const t = et(e), n = e.options.bulletOther;
|
7502
7503
|
if (!n)
|
7503
7504
|
return t === "*" ? "-" : "*";
|
@@ -7511,7 +7512,7 @@ function qs(e) {
|
|
7511
7512
|
);
|
7512
7513
|
return n;
|
7513
7514
|
}
|
7514
|
-
function
|
7515
|
+
function Ws(e) {
|
7515
7516
|
const t = e.options.bulletOrdered || ".";
|
7516
7517
|
if (t !== "." && t !== ")")
|
7517
7518
|
throw new Error(
|
@@ -7519,7 +7520,7 @@ function Vs(e) {
|
|
7519
7520
|
);
|
7520
7521
|
return t;
|
7521
7522
|
}
|
7522
|
-
function
|
7523
|
+
function Yr(e) {
|
7523
7524
|
const t = e.options.rule || "*";
|
7524
7525
|
if (t !== "*" && t !== "-" && t !== "_")
|
7525
7526
|
throw new Error(
|
@@ -7527,10 +7528,10 @@ function Qr(e) {
|
|
7527
7528
|
);
|
7528
7529
|
return t;
|
7529
7530
|
}
|
7530
|
-
function
|
7531
|
+
function Qs(e, t, n, r) {
|
7531
7532
|
const i = n.enter("list"), o = n.bulletCurrent;
|
7532
|
-
let l = e.ordered ?
|
7533
|
-
const u = e.ordered ? l === "." ? ")" : "." :
|
7533
|
+
let l = e.ordered ? Ws(n) : et(n);
|
7534
|
+
const u = e.ordered ? l === "." ? ")" : "." : $s(n);
|
7534
7535
|
let a = t && n.bulletLastUsed ? l === n.bulletLastUsed : !1;
|
7535
7536
|
if (!e.ordered) {
|
7536
7537
|
const f = e.children ? e.children[0] : void 0;
|
@@ -7539,7 +7540,7 @@ function $s(e, t, n, r) {
|
|
7539
7540
|
(l === "*" || l === "-") && // Empty first list item:
|
7540
7541
|
f && (!f.children || !f.children[0]) && // Directly in two other list items:
|
7541
7542
|
n.stack[n.stack.length - 1] === "list" && n.stack[n.stack.length - 2] === "listItem" && n.stack[n.stack.length - 3] === "list" && n.stack[n.stack.length - 4] === "listItem" && // That are each the first child.
|
7542
|
-
n.indexStack[n.indexStack.length - 1] === 0 && n.indexStack[n.indexStack.length - 2] === 0 && n.indexStack[n.indexStack.length - 3] === 0 && (a = !0),
|
7543
|
+
n.indexStack[n.indexStack.length - 1] === 0 && n.indexStack[n.indexStack.length - 2] === 0 && n.indexStack[n.indexStack.length - 3] === 0 && (a = !0), Yr(n) === l && f
|
7543
7544
|
) {
|
7544
7545
|
let c = -1;
|
7545
7546
|
for (; ++c < e.children.length; ) {
|
@@ -7555,7 +7556,7 @@ function $s(e, t, n, r) {
|
|
7555
7556
|
const s = n.containerFlow(e, r);
|
7556
7557
|
return n.bulletLastUsed = l, n.bulletCurrent = o, i(), s;
|
7557
7558
|
}
|
7558
|
-
function
|
7559
|
+
function Ys(e) {
|
7559
7560
|
const t = e.options.listItemIndent || "one";
|
7560
7561
|
if (t !== "tab" && t !== "one" && t !== "mixed")
|
7561
7562
|
throw new Error(
|
@@ -7563,8 +7564,8 @@ function Ws(e) {
|
|
7563
7564
|
);
|
7564
7565
|
return t;
|
7565
7566
|
}
|
7566
|
-
function
|
7567
|
-
const i =
|
7567
|
+
function Gs(e, t, n, r) {
|
7568
|
+
const i = Ys(n);
|
7568
7569
|
let o = n.bulletCurrent || et(n);
|
7569
7570
|
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);
|
7570
7571
|
let l = o.length + 1;
|
@@ -7580,11 +7581,11 @@ function Qs(e, t, n, r) {
|
|
7580
7581
|
return p ? (h ? "" : " ".repeat(l)) + c : (h ? o : o + " ".repeat(l - o.length)) + c;
|
7581
7582
|
}
|
7582
7583
|
}
|
7583
|
-
function
|
7584
|
+
function Xs(e, t, n, r) {
|
7584
7585
|
const i = n.enter("paragraph"), o = n.enter("phrasing"), l = n.containerPhrasing(e, r);
|
7585
7586
|
return o(), i(), l;
|
7586
7587
|
}
|
7587
|
-
const
|
7588
|
+
const Ks = (
|
7588
7589
|
/** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
|
7589
7590
|
sn([
|
7590
7591
|
"break",
|
@@ -7610,12 +7611,12 @@ const Gs = (
|
|
7610
7611
|
"textDirective"
|
7611
7612
|
])
|
7612
7613
|
);
|
7613
|
-
function
|
7614
|
+
function Js(e, t, n, r) {
|
7614
7615
|
return (e.children.some(function(l) {
|
7615
|
-
return
|
7616
|
+
return Ks(l);
|
7616
7617
|
}) ? n.containerPhrasing : n.containerFlow).call(n, e, r);
|
7617
7618
|
}
|
7618
|
-
function
|
7619
|
+
function Zs(e) {
|
7619
7620
|
const t = e.options.strong || "*";
|
7620
7621
|
if (t !== "*" && t !== "_")
|
7621
7622
|
throw new Error(
|
@@ -7623,9 +7624,9 @@ function Ks(e) {
|
|
7623
7624
|
);
|
7624
7625
|
return t;
|
7625
7626
|
}
|
7626
|
-
|
7627
|
-
function
|
7628
|
-
const i =
|
7627
|
+
Gr.peek = ec;
|
7628
|
+
function Gr(e, t, n, r) {
|
7629
|
+
const i = Zs(n), o = n.enter("strong"), l = n.createTracker(r), u = l.move(i + i);
|
7629
7630
|
let a = l.move(
|
7630
7631
|
n.containerPhrasing(e, {
|
7631
7632
|
after: i,
|
@@ -7647,13 +7648,13 @@ function Yr(e, t, n, r) {
|
|
7647
7648
|
before: f.outside
|
7648
7649
|
}, u + a + h;
|
7649
7650
|
}
|
7650
|
-
function
|
7651
|
+
function ec(e, t, n) {
|
7651
7652
|
return n.options.strong || "*";
|
7652
7653
|
}
|
7653
|
-
function
|
7654
|
+
function nc(e, t, n, r) {
|
7654
7655
|
return n.safe(e.value, r);
|
7655
7656
|
}
|
7656
|
-
function
|
7657
|
+
function tc(e) {
|
7657
7658
|
const t = e.options.ruleRepetition || 3;
|
7658
7659
|
if (t < 3)
|
7659
7660
|
throw new Error(
|
@@ -7661,50 +7662,50 @@ function ec(e) {
|
|
7661
7662
|
);
|
7662
7663
|
return t;
|
7663
7664
|
}
|
7664
|
-
function
|
7665
|
-
const r = (
|
7665
|
+
function rc(e, t, n) {
|
7666
|
+
const r = (Yr(n) + (n.options.ruleSpaces ? " " : "")).repeat(tc(n));
|
7666
7667
|
return n.options.ruleSpaces ? r.slice(0, -1) : r;
|
7667
7668
|
}
|
7668
|
-
const
|
7669
|
-
blockquote:
|
7669
|
+
const Xr = {
|
7670
|
+
blockquote: As,
|
7670
7671
|
break: Qt,
|
7671
|
-
code:
|
7672
|
-
definition:
|
7673
|
-
emphasis:
|
7672
|
+
code: Ds,
|
7673
|
+
definition: Rs,
|
7674
|
+
emphasis: jr,
|
7674
7675
|
hardBreak: Qt,
|
7675
|
-
heading:
|
7676
|
-
html:
|
7677
|
-
image:
|
7678
|
-
imageReference:
|
7679
|
-
inlineCode:
|
7680
|
-
link:
|
7681
|
-
linkReference:
|
7682
|
-
list:
|
7683
|
-
listItem:
|
7684
|
-
paragraph:
|
7685
|
-
root:
|
7686
|
-
strong:
|
7687
|
-
text:
|
7688
|
-
thematicBreak:
|
7676
|
+
heading: Ns,
|
7677
|
+
html: Hr,
|
7678
|
+
image: Ur,
|
7679
|
+
imageReference: qr,
|
7680
|
+
inlineCode: Vr,
|
7681
|
+
link: Wr,
|
7682
|
+
linkReference: Qr,
|
7683
|
+
list: Qs,
|
7684
|
+
listItem: Gs,
|
7685
|
+
paragraph: Xs,
|
7686
|
+
root: Js,
|
7687
|
+
strong: Gr,
|
7688
|
+
text: nc,
|
7689
|
+
thematicBreak: rc
|
7689
7690
|
};
|
7690
|
-
function
|
7691
|
+
function ic() {
|
7691
7692
|
return {
|
7692
7693
|
enter: {
|
7693
|
-
table:
|
7694
|
+
table: lc,
|
7694
7695
|
tableData: Yt,
|
7695
7696
|
tableHeader: Yt,
|
7696
|
-
tableRow:
|
7697
|
+
tableRow: uc
|
7697
7698
|
},
|
7698
7699
|
exit: {
|
7699
|
-
codeText:
|
7700
|
-
table:
|
7700
|
+
codeText: ac,
|
7701
|
+
table: oc,
|
7701
7702
|
tableData: Tn,
|
7702
7703
|
tableHeader: Tn,
|
7703
7704
|
tableRow: Tn
|
7704
7705
|
}
|
7705
7706
|
};
|
7706
7707
|
}
|
7707
|
-
function
|
7708
|
+
function lc(e) {
|
7708
7709
|
const t = e._align;
|
7709
7710
|
this.enter(
|
7710
7711
|
{
|
@@ -7717,10 +7718,10 @@ function rc(e) {
|
|
7717
7718
|
e
|
7718
7719
|
), this.data.inTable = !0;
|
7719
7720
|
}
|
7720
|
-
function
|
7721
|
+
function oc(e) {
|
7721
7722
|
this.exit(e), this.data.inTable = void 0;
|
7722
7723
|
}
|
7723
|
-
function
|
7724
|
+
function uc(e) {
|
7724
7725
|
this.enter({ type: "tableRow", children: [] }, e);
|
7725
7726
|
}
|
7726
7727
|
function Tn(e) {
|
@@ -7729,16 +7730,16 @@ function Tn(e) {
|
|
7729
7730
|
function Yt(e) {
|
7730
7731
|
this.enter({ type: "tableCell", children: [] }, e);
|
7731
7732
|
}
|
7732
|
-
function
|
7733
|
+
function ac(e) {
|
7733
7734
|
let t = this.resume();
|
7734
|
-
this.data.inTable && (t = t.replace(/\\([\\|])/g,
|
7735
|
+
this.data.inTable && (t = t.replace(/\\([\\|])/g, sc));
|
7735
7736
|
const n = this.stack[this.stack.length - 1];
|
7736
7737
|
n.value = t, this.exit(e);
|
7737
7738
|
}
|
7738
|
-
function
|
7739
|
+
function sc(e, t) {
|
7739
7740
|
return t === "|" ? t : e;
|
7740
7741
|
}
|
7741
|
-
function
|
7742
|
+
function cc(e) {
|
7742
7743
|
const t = e, n = t.tableCellPadding, r = t.tablePipeAlign, i = t.stringLength, o = n ? " " : "|";
|
7743
7744
|
return {
|
7744
7745
|
unsafe: [
|
@@ -7784,7 +7785,7 @@ function ac(e) {
|
|
7784
7785
|
return I(), y(), C;
|
7785
7786
|
}
|
7786
7787
|
function s(h, d) {
|
7787
|
-
return
|
7788
|
+
return Es(h, {
|
7788
7789
|
align: d,
|
7789
7790
|
// @ts-expect-error: `markdown-table` types should support `null`.
|
7790
7791
|
alignDelimiters: r,
|
@@ -7811,30 +7812,30 @@ function ac(e) {
|
|
7811
7812
|
return C(), I;
|
7812
7813
|
}
|
7813
7814
|
function p(h, d, x) {
|
7814
|
-
let E =
|
7815
|
+
let E = Xr.inlineCode(h, d, x);
|
7815
7816
|
return x.stack.includes("tableCell") && (E = E.replace(/\|/g, "\\$&")), E;
|
7816
7817
|
}
|
7817
7818
|
}
|
7818
|
-
function
|
7819
|
+
function fc() {
|
7819
7820
|
return {
|
7820
7821
|
exit: {
|
7821
7822
|
taskListCheckValueChecked: Gt,
|
7822
7823
|
taskListCheckValueUnchecked: Gt,
|
7823
|
-
paragraph:
|
7824
|
+
paragraph: pc
|
7824
7825
|
}
|
7825
7826
|
};
|
7826
7827
|
}
|
7827
|
-
function
|
7828
|
+
function hc() {
|
7828
7829
|
return {
|
7829
7830
|
unsafe: [{ atBreak: !0, character: "-", after: "[:|-]" }],
|
7830
|
-
handlers: { listItem:
|
7831
|
+
handlers: { listItem: mc }
|
7831
7832
|
};
|
7832
7833
|
}
|
7833
7834
|
function Gt(e) {
|
7834
7835
|
const t = this.stack[this.stack.length - 2];
|
7835
7836
|
t.checked = e.type === "taskListCheckValueChecked";
|
7836
7837
|
}
|
7837
|
-
function
|
7838
|
+
function pc(e) {
|
7838
7839
|
const t = this.stack[this.stack.length - 2];
|
7839
7840
|
if (t && t.type === "listItem" && typeof t.checked == "boolean") {
|
7840
7841
|
const n = this.stack[this.stack.length - 1], r = n.children[0];
|
@@ -7853,10 +7854,10 @@ function fc(e) {
|
|
7853
7854
|
}
|
7854
7855
|
this.exit(e);
|
7855
7856
|
}
|
7856
|
-
function
|
7857
|
+
function mc(e, t, n, r) {
|
7857
7858
|
const i = e.children[0], o = typeof e.checked == "boolean" && i && i.type === "paragraph", l = "[" + (e.checked ? "x" : " ") + "] ", u = n.createTracker(r);
|
7858
7859
|
o && u.move(l);
|
7859
|
-
let a =
|
7860
|
+
let a = Xr.listItem(e, t, n, {
|
7860
7861
|
...r,
|
7861
7862
|
...u.current()
|
7862
7863
|
});
|
@@ -7865,55 +7866,55 @@ function hc(e, t, n, r) {
|
|
7865
7866
|
return f + l;
|
7866
7867
|
}
|
7867
7868
|
}
|
7868
|
-
function
|
7869
|
+
function gc() {
|
7869
7870
|
return [
|
7870
|
-
|
7871
|
-
|
7872
|
-
|
7873
|
-
|
7874
|
-
|
7871
|
+
Wa(),
|
7872
|
+
is(),
|
7873
|
+
ks(),
|
7874
|
+
ic(),
|
7875
|
+
fc()
|
7875
7876
|
];
|
7876
7877
|
}
|
7877
|
-
function
|
7878
|
+
function dc(e) {
|
7878
7879
|
return {
|
7879
7880
|
extensions: [
|
7880
|
-
|
7881
|
-
|
7882
|
-
|
7883
|
-
|
7884
|
-
|
7881
|
+
Qa(),
|
7882
|
+
ls(),
|
7883
|
+
xs(),
|
7884
|
+
cc(e),
|
7885
|
+
hc()
|
7885
7886
|
]
|
7886
7887
|
};
|
7887
7888
|
}
|
7888
|
-
const
|
7889
|
-
tokenize: wc,
|
7890
|
-
partial: !0
|
7891
|
-
}, Xr = {
|
7892
|
-
tokenize: Sc,
|
7893
|
-
partial: !0
|
7894
|
-
}, Kr = {
|
7889
|
+
const yc = {
|
7895
7890
|
tokenize: Cc,
|
7896
7891
|
partial: !0
|
7897
|
-
},
|
7892
|
+
}, Kr = {
|
7898
7893
|
tokenize: Ec,
|
7899
7894
|
partial: !0
|
7900
|
-
},
|
7895
|
+
}, Jr = {
|
7901
7896
|
tokenize: Ic,
|
7902
7897
|
partial: !0
|
7903
7898
|
}, Zr = {
|
7904
|
-
|
7905
|
-
|
7906
|
-
|
7899
|
+
tokenize: Ac,
|
7900
|
+
partial: !0
|
7901
|
+
}, kc = {
|
7902
|
+
tokenize: Tc,
|
7903
|
+
partial: !0
|
7907
7904
|
}, ei = {
|
7908
|
-
name: "
|
7909
|
-
tokenize:
|
7905
|
+
name: "wwwAutolink",
|
7906
|
+
tokenize: wc,
|
7910
7907
|
previous: ti
|
7908
|
+
}, ni = {
|
7909
|
+
name: "protocolAutolink",
|
7910
|
+
tokenize: Sc,
|
7911
|
+
previous: ri
|
7911
7912
|
}, ye = {
|
7912
7913
|
name: "emailAutolink",
|
7913
|
-
tokenize:
|
7914
|
-
previous:
|
7914
|
+
tokenize: bc,
|
7915
|
+
previous: ii
|
7915
7916
|
}, fe = {};
|
7916
|
-
function
|
7917
|
+
function xc() {
|
7917
7918
|
return {
|
7918
7919
|
text: fe
|
7919
7920
|
};
|
@@ -7925,22 +7926,22 @@ fe[43] = ye;
|
|
7925
7926
|
fe[45] = ye;
|
7926
7927
|
fe[46] = ye;
|
7927
7928
|
fe[95] = ye;
|
7928
|
-
fe[72] = [ye,
|
7929
|
-
fe[104] = [ye,
|
7930
|
-
fe[87] = [ye,
|
7931
|
-
fe[119] = [ye,
|
7932
|
-
function
|
7929
|
+
fe[72] = [ye, ni];
|
7930
|
+
fe[104] = [ye, ni];
|
7931
|
+
fe[87] = [ye, ei];
|
7932
|
+
fe[119] = [ye, ei];
|
7933
|
+
function bc(e, t, n) {
|
7933
7934
|
const r = this;
|
7934
7935
|
let i, o;
|
7935
7936
|
return l;
|
7936
7937
|
function l(c) {
|
7937
|
-
return !Mn(c) || !
|
7938
|
+
return !Mn(c) || !ii.call(r, r.previous) || nt(r.events) ? n(c) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), u(c));
|
7938
7939
|
}
|
7939
7940
|
function u(c) {
|
7940
7941
|
return Mn(c) ? (e.consume(c), u) : c === 64 ? (e.consume(c), a) : n(c);
|
7941
7942
|
}
|
7942
7943
|
function a(c) {
|
7943
|
-
return c === 46 ? e.check(
|
7944
|
+
return c === 46 ? e.check(kc, f, s)(c) : c === 45 || c === 95 || X(c) ? (o = !0, e.consume(c), a) : f(c);
|
7944
7945
|
}
|
7945
7946
|
function s(c) {
|
7946
7947
|
return e.consume(c), i = !0, a;
|
@@ -7949,22 +7950,22 @@ function kc(e, t, n) {
|
|
7949
7950
|
return o && i && J(r.previous) ? (e.exit("literalAutolinkEmail"), e.exit("literalAutolink"), t(c)) : n(c);
|
7950
7951
|
}
|
7951
7952
|
}
|
7952
|
-
function
|
7953
|
+
function wc(e, t, n) {
|
7953
7954
|
const r = this;
|
7954
7955
|
return i;
|
7955
7956
|
function i(l) {
|
7956
|
-
return l !== 87 && l !== 119 || !
|
7957
|
+
return l !== 87 && l !== 119 || !ti.call(r, r.previous) || nt(r.events) ? n(l) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(yc, e.attempt(Kr, e.attempt(Jr, o), n), n)(l));
|
7957
7958
|
}
|
7958
7959
|
function o(l) {
|
7959
7960
|
return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(l);
|
7960
7961
|
}
|
7961
7962
|
}
|
7962
|
-
function
|
7963
|
+
function Sc(e, t, n) {
|
7963
7964
|
const r = this;
|
7964
7965
|
let i = "", o = !1;
|
7965
7966
|
return l;
|
7966
7967
|
function l(c) {
|
7967
|
-
return (c === 72 || c === 104) &&
|
7968
|
+
return (c === 72 || c === 104) && ri.call(r, r.previous) && !nt(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), i += String.fromCodePoint(c), e.consume(c), u) : n(c);
|
7968
7969
|
}
|
7969
7970
|
function u(c) {
|
7970
7971
|
if (J(c) && i.length < 5)
|
@@ -7980,13 +7981,13 @@ function bc(e, t, n) {
|
|
7980
7981
|
return c === 47 ? (e.consume(c), o ? s : (o = !0, a)) : n(c);
|
7981
7982
|
}
|
7982
7983
|
function s(c) {
|
7983
|
-
return c === null || en(c) || V(c) || Ee(c) || on(c) ? n(c) : e.attempt(
|
7984
|
+
return c === null || en(c) || V(c) || Ee(c) || on(c) ? n(c) : e.attempt(Kr, e.attempt(Jr, f), n)(c);
|
7984
7985
|
}
|
7985
7986
|
function f(c) {
|
7986
7987
|
return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(c);
|
7987
7988
|
}
|
7988
7989
|
}
|
7989
|
-
function
|
7990
|
+
function Cc(e, t, n) {
|
7990
7991
|
let r = 0;
|
7991
7992
|
return i;
|
7992
7993
|
function i(l) {
|
@@ -7996,11 +7997,11 @@ function wc(e, t, n) {
|
|
7996
7997
|
return l === null ? n(l) : t(l);
|
7997
7998
|
}
|
7998
7999
|
}
|
7999
|
-
function
|
8000
|
+
function Ec(e, t, n) {
|
8000
8001
|
let r, i, o;
|
8001
8002
|
return l;
|
8002
8003
|
function l(s) {
|
8003
|
-
return s === 46 || s === 95 ? e.check(
|
8004
|
+
return s === 46 || s === 95 ? e.check(Zr, a, u)(s) : s === null || V(s) || Ee(s) || s !== 45 && on(s) ? a(s) : (o = !0, e.consume(s), l);
|
8004
8005
|
}
|
8005
8006
|
function u(s) {
|
8006
8007
|
return s === 95 ? r = !0 : (i = r, r = void 0), e.consume(s), l;
|
@@ -8009,17 +8010,17 @@ function Sc(e, t, n) {
|
|
8009
8010
|
return i || r || !o ? n(s) : t(s);
|
8010
8011
|
}
|
8011
8012
|
}
|
8012
|
-
function
|
8013
|
+
function Ic(e, t) {
|
8013
8014
|
let n = 0, r = 0;
|
8014
8015
|
return i;
|
8015
8016
|
function i(l) {
|
8016
|
-
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(
|
8017
|
+
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(Zr, t, o)(l) : l === null || V(l) || Ee(l) ? t(l) : (e.consume(l), i);
|
8017
8018
|
}
|
8018
8019
|
function o(l) {
|
8019
8020
|
return l === 41 && r++, e.consume(l), i;
|
8020
8021
|
}
|
8021
8022
|
}
|
8022
|
-
function
|
8023
|
+
function Ac(e, t, n) {
|
8023
8024
|
return r;
|
8024
8025
|
function r(u) {
|
8025
8026
|
return u === 33 || u === 34 || u === 39 || u === 41 || u === 42 || u === 44 || u === 46 || u === 58 || u === 59 || u === 63 || u === 95 || u === 126 ? (e.consume(u), r) : u === 38 ? (e.consume(u), o) : u === 93 ? (e.consume(u), i) : (
|
@@ -8038,7 +8039,7 @@ function Ec(e, t, n) {
|
|
8038
8039
|
return u === 59 ? (e.consume(u), r) : J(u) ? (e.consume(u), l) : n(u);
|
8039
8040
|
}
|
8040
8041
|
}
|
8041
|
-
function
|
8042
|
+
function Tc(e, t, n) {
|
8042
8043
|
return r;
|
8043
8044
|
function r(o) {
|
8044
8045
|
return e.consume(o), i;
|
@@ -8047,13 +8048,13 @@ function Ic(e, t, n) {
|
|
8047
8048
|
return X(o) ? n(o) : t(o);
|
8048
8049
|
}
|
8049
8050
|
}
|
8050
|
-
function
|
8051
|
+
function ti(e) {
|
8051
8052
|
return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 || V(e);
|
8052
8053
|
}
|
8053
|
-
function
|
8054
|
+
function ri(e) {
|
8054
8055
|
return !J(e);
|
8055
8056
|
}
|
8056
|
-
function
|
8057
|
+
function ii(e) {
|
8057
8058
|
return !(e === 47 || Mn(e));
|
8058
8059
|
}
|
8059
8060
|
function Mn(e) {
|
@@ -8074,37 +8075,37 @@ function nt(e) {
|
|
8074
8075
|
}
|
8075
8076
|
return e.length > 0 && !n && (e[e.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), n;
|
8076
8077
|
}
|
8077
|
-
const
|
8078
|
-
tokenize:
|
8078
|
+
const Pc = {
|
8079
|
+
tokenize: _c,
|
8079
8080
|
partial: !0
|
8080
8081
|
};
|
8081
|
-
function
|
8082
|
+
function Lc() {
|
8082
8083
|
return {
|
8083
8084
|
document: {
|
8084
8085
|
91: {
|
8085
8086
|
name: "gfmFootnoteDefinition",
|
8086
|
-
tokenize:
|
8087
|
+
tokenize: Fc,
|
8087
8088
|
continuation: {
|
8088
|
-
tokenize:
|
8089
|
+
tokenize: Rc
|
8089
8090
|
},
|
8090
|
-
exit:
|
8091
|
+
exit: Oc
|
8091
8092
|
}
|
8092
8093
|
},
|
8093
8094
|
text: {
|
8094
8095
|
91: {
|
8095
8096
|
name: "gfmFootnoteCall",
|
8096
|
-
tokenize:
|
8097
|
+
tokenize: Dc
|
8097
8098
|
},
|
8098
8099
|
93: {
|
8099
8100
|
name: "gfmPotentialFootnoteCall",
|
8100
8101
|
add: "after",
|
8101
|
-
tokenize:
|
8102
|
-
resolveTo:
|
8102
|
+
tokenize: vc,
|
8103
|
+
resolveTo: zc
|
8103
8104
|
}
|
8104
8105
|
}
|
8105
8106
|
};
|
8106
8107
|
}
|
8107
|
-
function
|
8108
|
+
function vc(e, t, n) {
|
8108
8109
|
const r = this;
|
8109
8110
|
let i = r.events.length;
|
8110
8111
|
const o = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
@@ -8129,7 +8130,7 @@ function Pc(e, t, n) {
|
|
8129
8130
|
return s.codePointAt(0) !== 94 || !o.includes(s.slice(1)) ? n(a) : (e.enter("gfmFootnoteCallLabelMarker"), e.consume(a), e.exit("gfmFootnoteCallLabelMarker"), t(a));
|
8130
8131
|
}
|
8131
8132
|
}
|
8132
|
-
function
|
8133
|
+
function zc(e, t) {
|
8133
8134
|
let n = e.length;
|
8134
8135
|
for (; n-- && !(e[n][1].type === "labelImage" && e[n][0] === "enter"); )
|
8135
8136
|
;
|
@@ -8176,7 +8177,7 @@ function Lc(e, t) {
|
|
8176
8177
|
];
|
8177
8178
|
return e.splice(n, e.length - n + 1, ...u), e;
|
8178
8179
|
}
|
8179
|
-
function
|
8180
|
+
function Dc(e, t, n) {
|
8180
8181
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
8181
8182
|
let o = 0, l;
|
8182
8183
|
return u;
|
@@ -8206,7 +8207,7 @@ function vc(e, t, n) {
|
|
8206
8207
|
return c === 91 || c === 92 || c === 93 ? (e.consume(c), o++, s) : s(c);
|
8207
8208
|
}
|
8208
8209
|
}
|
8209
|
-
function
|
8210
|
+
function Fc(e, t, n) {
|
8210
8211
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
8211
8212
|
let o, l = 0, u;
|
8212
8213
|
return a;
|
@@ -8242,13 +8243,13 @@ function zc(e, t, n) {
|
|
8242
8243
|
return t(d);
|
8243
8244
|
}
|
8244
8245
|
}
|
8245
|
-
function
|
8246
|
-
return e.check(We, t, e.attempt(
|
8246
|
+
function Rc(e, t, n) {
|
8247
|
+
return e.check(We, t, e.attempt(Pc, t, n));
|
8247
8248
|
}
|
8248
|
-
function
|
8249
|
+
function Oc(e) {
|
8249
8250
|
e.exit("gfmFootnoteDefinition");
|
8250
8251
|
}
|
8251
|
-
function
|
8252
|
+
function _c(e, t, n) {
|
8252
8253
|
const r = this;
|
8253
8254
|
return j(e, i, "gfmFootnoteDefinitionIndent", 5);
|
8254
8255
|
function i(o) {
|
@@ -8256,7 +8257,7 @@ function Rc(e, t, n) {
|
|
8256
8257
|
return l && l[1].type === "gfmFootnoteDefinitionIndent" && l[2].sliceSerialize(l[1], !0).length === 4 ? t(o) : n(o);
|
8257
8258
|
}
|
8258
8259
|
}
|
8259
|
-
function
|
8260
|
+
function Mc(e) {
|
8260
8261
|
let n = e.singleTilde;
|
8261
8262
|
const r = {
|
8262
8263
|
name: "strikethrough",
|
@@ -8317,7 +8318,7 @@ function Oc(e) {
|
|
8317
8318
|
}
|
8318
8319
|
}
|
8319
8320
|
}
|
8320
|
-
class
|
8321
|
+
class Nc {
|
8321
8322
|
/**
|
8322
8323
|
* Create a new edit map.
|
8323
8324
|
*/
|
@@ -8333,7 +8334,7 @@ class _c {
|
|
8333
8334
|
* @returns {undefined}
|
8334
8335
|
*/
|
8335
8336
|
add(t, n, r) {
|
8336
|
-
|
8337
|
+
Bc(this, t, n, r);
|
8337
8338
|
}
|
8338
8339
|
// To do: add this when moving to `micromark`.
|
8339
8340
|
// /**
|
@@ -8372,7 +8373,7 @@ class _c {
|
|
8372
8373
|
this.map.length = 0;
|
8373
8374
|
}
|
8374
8375
|
}
|
8375
|
-
function
|
8376
|
+
function Bc(e, t, n, r) {
|
8376
8377
|
let i = 0;
|
8377
8378
|
if (!(n === 0 && r.length === 0)) {
|
8378
8379
|
for (; i < e.map.length; ) {
|
@@ -8385,7 +8386,7 @@ function Mc(e, t, n, r) {
|
|
8385
8386
|
e.map.push([t, n, r]);
|
8386
8387
|
}
|
8387
8388
|
}
|
8388
|
-
function
|
8389
|
+
function jc(e, t) {
|
8389
8390
|
let n = !1;
|
8390
8391
|
const r = [];
|
8391
8392
|
for (; t < e.length; ) {
|
@@ -8405,18 +8406,18 @@ function Nc(e, t) {
|
|
8405
8406
|
}
|
8406
8407
|
return r;
|
8407
8408
|
}
|
8408
|
-
function
|
8409
|
+
function Hc() {
|
8409
8410
|
return {
|
8410
8411
|
flow: {
|
8411
8412
|
null: {
|
8412
8413
|
name: "table",
|
8413
|
-
tokenize:
|
8414
|
-
resolveAll:
|
8414
|
+
tokenize: Uc,
|
8415
|
+
resolveAll: qc
|
8415
8416
|
}
|
8416
8417
|
}
|
8417
8418
|
};
|
8418
8419
|
}
|
8419
|
-
function
|
8420
|
+
function Uc(e, t, n) {
|
8420
8421
|
const r = this;
|
8421
8422
|
let i = 0, o = 0, l;
|
8422
8423
|
return u;
|
@@ -8486,9 +8487,9 @@ function jc(e, t, n) {
|
|
8486
8487
|
return k === 92 || k === 124 ? (e.consume(k), U) : U(k);
|
8487
8488
|
}
|
8488
8489
|
}
|
8489
|
-
function
|
8490
|
+
function qc(e, t) {
|
8490
8491
|
let n = -1, r = !0, i = 0, o = [0, 0, 0, 0], l = [0, 0, 0, 0], u = !1, a = 0, s, f, c;
|
8491
|
-
const p = new
|
8492
|
+
const p = new Nc();
|
8492
8493
|
for (; ++n < e.length; ) {
|
8493
8494
|
const h = e[n], d = h[1];
|
8494
8495
|
h[0] === "enter" ? d.type === "tableHead" ? (u = !1, a !== 0 && (Xt(p, t, a, s, f), f = void 0, a = 0), s = {
|
@@ -8505,7 +8506,7 @@ function Hc(e, t) {
|
|
8505
8506
|
}
|
8506
8507
|
for (a !== 0 && Xt(p, t, a, s, f), p.consume(t.events), n = -1; ++n < t.events.length; ) {
|
8507
8508
|
const h = t.events[n];
|
8508
|
-
h[0] === "enter" && h[1].type === "table" && (h[1]._align =
|
8509
|
+
h[0] === "enter" && h[1].type === "table" && (h[1]._align = jc(t.events, n));
|
8509
8510
|
}
|
8510
8511
|
return e;
|
8511
8512
|
}
|
@@ -8543,18 +8544,18 @@ function ve(e, t) {
|
|
8543
8544
|
const n = e[t], r = n[0] === "enter" ? "start" : "end";
|
8544
8545
|
return n[1][r];
|
8545
8546
|
}
|
8546
|
-
const
|
8547
|
+
const Vc = {
|
8547
8548
|
name: "tasklistCheck",
|
8548
|
-
tokenize:
|
8549
|
+
tokenize: Wc
|
8549
8550
|
};
|
8550
|
-
function
|
8551
|
+
function $c() {
|
8551
8552
|
return {
|
8552
8553
|
text: {
|
8553
|
-
91:
|
8554
|
+
91: Vc
|
8554
8555
|
}
|
8555
8556
|
};
|
8556
8557
|
}
|
8557
|
-
function
|
8558
|
+
function Wc(e, t, n) {
|
8558
8559
|
const r = this;
|
8559
8560
|
return i;
|
8560
8561
|
function i(a) {
|
@@ -8573,43 +8574,43 @@ function Vc(e, t, n) {
|
|
8573
8574
|
}
|
8574
8575
|
function u(a) {
|
8575
8576
|
return z(a) ? t(a) : N(a) ? e.check({
|
8576
|
-
tokenize:
|
8577
|
+
tokenize: Qc
|
8577
8578
|
}, t, n)(a) : n(a);
|
8578
8579
|
}
|
8579
8580
|
}
|
8580
|
-
function
|
8581
|
+
function Qc(e, t, n) {
|
8581
8582
|
return j(e, r, "whitespace");
|
8582
8583
|
function r(i) {
|
8583
8584
|
return i === null ? n(i) : t(i);
|
8584
8585
|
}
|
8585
8586
|
}
|
8586
|
-
function
|
8587
|
-
return
|
8588
|
-
|
8589
|
-
|
8590
|
-
|
8591
|
-
|
8592
|
-
|
8587
|
+
function Yc(e) {
|
8588
|
+
return dr([
|
8589
|
+
xc(),
|
8590
|
+
Lc(),
|
8591
|
+
Mc(e),
|
8592
|
+
Hc(),
|
8593
|
+
$c()
|
8593
8594
|
]);
|
8594
8595
|
}
|
8595
|
-
const
|
8596
|
+
const Gc = {};
|
8596
8597
|
function Kt(e) {
|
8597
8598
|
const t = (
|
8598
8599
|
/** @type {Processor<Root>} */
|
8599
8600
|
this
|
8600
|
-
), n = e ||
|
8601
|
-
i.push(
|
8601
|
+
), n = e || Gc, r = t.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), o = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), l = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
|
8602
|
+
i.push(Yc(n)), o.push(gc()), l.push(dc(n));
|
8602
8603
|
}
|
8603
|
-
const
|
8604
|
+
const Xc = ki(
|
8604
8605
|
() => import(
|
8605
8606
|
/* webpackChunkName: "LazyMarkdownWithExtra" */
|
8606
|
-
"./MarkdownWithExtra.
|
8607
|
+
"./MarkdownWithExtra.Cwkg1Zvf.js"
|
8607
8608
|
)
|
8608
8609
|
), Jt = {
|
8609
8610
|
MODEL: "Model",
|
8610
8611
|
PLUGIN: "Plugin",
|
8611
8612
|
USAGE: "Usage"
|
8612
|
-
},
|
8613
|
+
}, Zt = wi("max-w-[99cqw] mt-3"), Kc = ({
|
8613
8614
|
content: e,
|
8614
8615
|
annotations: t,
|
8615
8616
|
toolName: n,
|
@@ -8617,40 +8618,40 @@ const Yc = yi(
|
|
8617
8618
|
}) => {
|
8618
8619
|
const {
|
8619
8620
|
state: { streaming: i }
|
8620
|
-
} =
|
8621
|
-
key:
|
8621
|
+
} = xi(di), o = t == null ? void 0 : t.model, [l] = yi({
|
8622
|
+
key: Si + Ci,
|
8622
8623
|
initialValue: !1
|
8623
8624
|
}), u = l && {
|
8624
8625
|
[Jt.MODEL]: o || null,
|
8625
|
-
[Jt.PLUGIN]: n ?
|
8626
|
+
[Jt.PLUGIN]: n ? Ei(n) : null
|
8626
8627
|
};
|
8627
|
-
return r ===
|
8628
|
+
return r === Ii ? /* @__PURE__ */ de(ut, { className: Zt, children: /* @__PURE__ */ de("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ de(qt, { remarkPlugins: [Kt], children: e }) }) }) : /* @__PURE__ */ de(
|
8628
8629
|
ut,
|
8629
8630
|
{
|
8630
8631
|
copyToClipboard: i ? "loading..." : e,
|
8631
8632
|
copyToClipboardFocusMode: "light",
|
8632
8633
|
footer: u,
|
8633
8634
|
noMaxWidth: !0,
|
8634
|
-
className:
|
8635
|
-
children: e && (e.includes("$$") || e.includes("```")) ? /* @__PURE__ */ de(
|
8635
|
+
className: Zt,
|
8636
|
+
children: e && (e.includes("$$") || e.includes("```")) ? /* @__PURE__ */ de(bi, { fallback: /* @__PURE__ */ de("div", {}), children: /* @__PURE__ */ de(Xc, { content: e }) }) : /* @__PURE__ */ de(qt, { remarkPlugins: [Kt], children: e })
|
8636
8637
|
}
|
8637
8638
|
);
|
8638
|
-
},
|
8639
|
+
}, of = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Kc }, Symbol.toStringTag, { value: "Module" }));
|
8639
8640
|
export {
|
8640
|
-
|
8641
|
+
of as ChatBubbleAssistant,
|
8641
8642
|
qt as Markdown,
|
8642
|
-
|
8643
|
+
la as SKIP,
|
8643
8644
|
sn as convert,
|
8644
8645
|
j as factorySpace,
|
8645
|
-
|
8646
|
-
|
8647
|
-
|
8646
|
+
Ni as find,
|
8647
|
+
Ui as html,
|
8648
|
+
Ls as longestStreak,
|
8648
8649
|
z as markdownLineEnding,
|
8649
8650
|
Pn as normalize,
|
8650
|
-
|
8651
|
-
|
8651
|
+
lf as parse,
|
8652
|
+
rf as parse$1,
|
8652
8653
|
Kt as remarkGfm,
|
8653
8654
|
Bn as svg,
|
8654
8655
|
Kn as visit,
|
8655
|
-
|
8656
|
+
Or as visitParents
|
8656
8657
|
};
|