@versini/sassysaint 8.93.0 → 8.94.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{AboutChangelog.CCG0EsFp.js → AboutChangelog.CG4vpwwD.js} +3 -3
- package/dist/chunks/{AboutEntry.CmbMEk80.js → AboutEntry.w5vjTeL7.js} +5 -5
- package/dist/chunks/{App.DHm-vAz3.js → App.BtzZ2vTv.js} +16 -16
- package/dist/chunks/{Chart.D5b8rSw0.js → Chart.8DTAxBSj.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.CruRxSPg.js → ChatBubbleAssistant.CkScoM-D.js} +4 -4
- package/dist/chunks/{ChatBubbleUser.CbgAouu5.js → ChatBubbleUser.DVEU7ptq.js} +3 -3
- package/dist/chunks/{ChatHistoryTable.BXm0Wfn8.js → ChatHistoryTable.CQtRi74J.js} +3 -3
- package/dist/chunks/{HistoryEntry.CWQlIC46.js → HistoryEntry.CKob4HvQ.js} +3 -3
- package/dist/chunks/{ProfileEntry.CJ2FlUm-.js → ProfileEntry.ClXXL2fu.js} +2 -2
- package/dist/chunks/{SettingsEntry.Z2ibN15M.js → SettingsEntry.DzvNz96Q.js} +3 -3
- package/dist/chunks/UsageEntry.C0ecDK4S.js +240 -0
- package/dist/chunks/{UserMemoriesPanel.CDaqt9YY.js → UserMemoriesPanel.Bl-g8hI5.js} +4 -4
- package/dist/chunks/{index.Dvfd_xy7.js → index.BFaGjlXq.js} +1 -1
- package/dist/chunks/{index.DwUTIEER.js → index.BLe8rUGn.js} +1 -1
- package/dist/chunks/{index.Bb7Osc7v.js → index.BNLREtum.js} +1118 -1063
- package/dist/chunks/{index.VZEWwcvk.js → index.BaVUOyZq.js} +1 -1
- package/dist/chunks/{index.D2v902R5.js → index.BbW73zrx.js} +3 -3
- package/dist/chunks/{index.DKNoU6CC.js → index.BrOQRpaM.js} +1 -1
- package/dist/chunks/{index.CiNSTJQK.js → index.Cna41ve3.js} +2 -2
- package/dist/chunks/{index.CkE_mvVS.js → index.JezaMn5V.js} +1 -1
- package/dist/chunks/{index.DHtGE5Nb.js → index.l_KrqN7B.js} +1 -1
- package/dist/chunks/{useMarkdown.CFED0oEl.js → useMarkdown.TVIK7Xs-.js} +825 -807
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
- package/dist/chunks/UsageEntry.GAzLsiex.js +0 -220
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as Le, jsxs as
|
|
2
|
-
import { isTauri as Lr, ButtonCopy as zr, unObfuscate as _r, obfuscate as Mr } from "./index.
|
|
3
|
-
import { useCallback as Dt, useRef as
|
|
4
|
-
import { getDefaultExportFromCjs as Ot } from "./App.
|
|
5
|
-
const Ft = -1, ee = 0, $n = 1, ne = 2, ze = 3, _e = 4, Me = 5, Ne = 6, Bt = 7, Ut = 8, Qe = typeof self == "object" ? self : globalThis,
|
|
1
|
+
import { jsx as Le, jsxs as Rt, Fragment as Tr } from "react/jsx-runtime";
|
|
2
|
+
import { isTauri as Lr, ButtonCopy as zr, unObfuscate as _r, obfuscate as Mr } from "./index.BNLREtum.js";
|
|
3
|
+
import { useCallback as Dt, useRef as Rn, useState as Nr, useEffect as vr } from "react";
|
|
4
|
+
import { getDefaultExportFromCjs as Ot } from "./App.BtzZ2vTv.js";
|
|
5
|
+
const Ft = -1, ee = 0, $n = 1, ne = 2, ze = 3, _e = 4, Me = 5, Ne = 6, Bt = 7, Ut = 8, Qe = typeof self == "object" ? self : globalThis, Rr = (n, e) => {
|
|
6
6
|
const t = (i, l) => (n.set(l, i), i), r = (i) => {
|
|
7
7
|
if (n.has(i))
|
|
8
8
|
return n.get(i);
|
|
@@ -59,7 +59,7 @@ const Ft = -1, ee = 0, $n = 1, ne = 2, ze = 3, _e = 4, Me = 5, Ne = 6, Bt = 7, U
|
|
|
59
59
|
return t(new Qe[l](o), i);
|
|
60
60
|
};
|
|
61
61
|
return r;
|
|
62
|
-
}, Je = (n) =>
|
|
62
|
+
}, Je = (n) => Rr(/* @__PURE__ */ new Map(), n)(0), Pn = "", { toString: Dr } = {}, { keys: Or } = Object, Dn = (n) => {
|
|
63
63
|
const e = typeof n;
|
|
64
64
|
if (e !== "object" || !n)
|
|
65
65
|
return [ee, e];
|
|
@@ -112,10 +112,10 @@ const Ft = -1, ee = 0, $n = 1, ne = 2, ze = 3, _e = 4, Me = 5, Ne = 6, Bt = 7, U
|
|
|
112
112
|
let d = o;
|
|
113
113
|
return s === "DataView" ? d = new Uint8Array(o.buffer) : s === "ArrayBuffer" && (d = new Uint8Array(o)), i([s, [...d]], o);
|
|
114
114
|
}
|
|
115
|
-
const c = [],
|
|
115
|
+
const c = [], f = i([a, c], o);
|
|
116
116
|
for (const d of o)
|
|
117
117
|
c.push(l(d));
|
|
118
|
-
return
|
|
118
|
+
return f;
|
|
119
119
|
}
|
|
120
120
|
case ne: {
|
|
121
121
|
if (s)
|
|
@@ -129,28 +129,28 @@ const Ft = -1, ee = 0, $n = 1, ne = 2, ze = 3, _e = 4, Me = 5, Ne = 6, Bt = 7, U
|
|
|
129
129
|
}
|
|
130
130
|
if (e && "toJSON" in o)
|
|
131
131
|
return l(o.toJSON());
|
|
132
|
-
const c = [],
|
|
132
|
+
const c = [], f = i([a, c], o);
|
|
133
133
|
for (const d of Or(o))
|
|
134
134
|
(n || !Yn(Dn(o[d]))) && c.push([l(d), l(o[d])]);
|
|
135
|
-
return
|
|
135
|
+
return f;
|
|
136
136
|
}
|
|
137
137
|
case ze:
|
|
138
138
|
return i([a, o.toISOString()], o);
|
|
139
139
|
case _e: {
|
|
140
|
-
const { source: c, flags:
|
|
141
|
-
return i([a, { source: c, flags:
|
|
140
|
+
const { source: c, flags: f } = o;
|
|
141
|
+
return i([a, { source: c, flags: f }], o);
|
|
142
142
|
}
|
|
143
143
|
case Me: {
|
|
144
|
-
const c = [],
|
|
145
|
-
for (const [d,
|
|
146
|
-
(n || !(Yn(Dn(d)) || Yn(Dn(
|
|
147
|
-
return
|
|
144
|
+
const c = [], f = i([a, c], o);
|
|
145
|
+
for (const [d, p] of o)
|
|
146
|
+
(n || !(Yn(Dn(d)) || Yn(Dn(p)))) && c.push([l(d), l(p)]);
|
|
147
|
+
return f;
|
|
148
148
|
}
|
|
149
149
|
case Ne: {
|
|
150
|
-
const c = [],
|
|
150
|
+
const c = [], f = i([a, c], o);
|
|
151
151
|
for (const d of o)
|
|
152
152
|
(n || !Yn(Dn(d))) && c.push(l(d));
|
|
153
|
-
return
|
|
153
|
+
return f;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
const { message: u } = o;
|
|
@@ -185,7 +185,7 @@ const Ft = -1, ee = 0, $n = 1, ne = 2, ze = 3, _e = 4, Me = 5, Ne = 6, Bt = 7, U
|
|
|
185
185
|
if (typeof n == "object")
|
|
186
186
|
return Br(n);
|
|
187
187
|
if (typeof n == "function")
|
|
188
|
-
return
|
|
188
|
+
return ve(n);
|
|
189
189
|
throw new Error("Expected function, string, or array as `test`");
|
|
190
190
|
})
|
|
191
191
|
);
|
|
@@ -194,7 +194,7 @@ function Br(n) {
|
|
|
194
194
|
let t = -1;
|
|
195
195
|
for (; ++t < n.length; )
|
|
196
196
|
e[t] = jt(n[t]);
|
|
197
|
-
return
|
|
197
|
+
return ve(r);
|
|
198
198
|
function r(...i) {
|
|
199
199
|
let l = -1;
|
|
200
200
|
for (; ++l < e.length; )
|
|
@@ -203,12 +203,12 @@ function Br(n) {
|
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
function Ur(n) {
|
|
206
|
-
return
|
|
206
|
+
return ve(e);
|
|
207
207
|
function e(t) {
|
|
208
208
|
return t.tagName === n;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function ve(n) {
|
|
212
212
|
return e;
|
|
213
213
|
function e(t, r, i) {
|
|
214
214
|
return !!($r(t) && n.call(
|
|
@@ -333,33 +333,33 @@ function Zr(n, e, t, r) {
|
|
|
333
333
|
const l = $t(i), o = r ? -1 : 1;
|
|
334
334
|
a(n, void 0, [])();
|
|
335
335
|
function a(s, u, c) {
|
|
336
|
-
const
|
|
336
|
+
const f = (
|
|
337
337
|
/** @type {Record<string, unknown>} */
|
|
338
338
|
s && typeof s == "object" ? s : {}
|
|
339
339
|
);
|
|
340
|
-
if (typeof
|
|
341
|
-
const
|
|
340
|
+
if (typeof f.type == "string") {
|
|
341
|
+
const p = (
|
|
342
342
|
// `hast`
|
|
343
|
-
typeof
|
|
343
|
+
typeof f.tagName == "string" ? f.tagName : (
|
|
344
344
|
// `xast`
|
|
345
|
-
typeof
|
|
345
|
+
typeof f.name == "string" ? f.name : void 0
|
|
346
346
|
)
|
|
347
347
|
);
|
|
348
348
|
Object.defineProperty(d, "name", {
|
|
349
|
-
value: "node (" + (s.type + (
|
|
349
|
+
value: "node (" + (s.type + (p ? "<" + p + ">" : "")) + ")"
|
|
350
350
|
});
|
|
351
351
|
}
|
|
352
352
|
return d;
|
|
353
353
|
function d() {
|
|
354
|
-
let
|
|
355
|
-
if ((!e || l(s, u, c[c.length - 1] || void 0)) && (
|
|
356
|
-
return
|
|
354
|
+
let p = Ht, w, b, L;
|
|
355
|
+
if ((!e || l(s, u, c[c.length - 1] || void 0)) && (p = ni(t(s, c)), p[0] === nt))
|
|
356
|
+
return p;
|
|
357
357
|
if ("children" in s && s.children) {
|
|
358
358
|
const x = (
|
|
359
359
|
/** @type {UnistParent} */
|
|
360
360
|
s
|
|
361
361
|
);
|
|
362
|
-
if (x.children &&
|
|
362
|
+
if (x.children && p[0] !== ke)
|
|
363
363
|
for (b = (r ? x.children.length : -1) + o, L = c.concat(x); b > -1 && b < x.children.length; ) {
|
|
364
364
|
const T = x.children[b];
|
|
365
365
|
if (w = a(T, b, L)(), w[0] === nt)
|
|
@@ -367,7 +367,7 @@ function Zr(n, e, t, r) {
|
|
|
367
367
|
b = typeof w[1] == "number" ? w[1] : b + o;
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
|
-
return
|
|
370
|
+
return p;
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
373
|
}
|
|
@@ -378,8 +378,8 @@ function wn(n, e, t, r) {
|
|
|
378
378
|
let i, l, o;
|
|
379
379
|
typeof e == "function" && typeof t != "function" ? (l = void 0, o = e, i = t) : (l = e, o = t, i = r), Zr(n, l, a, i);
|
|
380
380
|
function a(s, u) {
|
|
381
|
-
const c = u[u.length - 1],
|
|
382
|
-
return o(s,
|
|
381
|
+
const c = u[u.length - 1], f = c ? c.children.indexOf(s) : void 0;
|
|
382
|
+
return o(s, f, c);
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
385
|
const ei = ["http", "https"], ti = ["nofollow"], ri = {};
|
|
@@ -390,8 +390,8 @@ function ii(n) {
|
|
|
390
390
|
if (l.tagName === "a" && typeof l.properties.href == "string" && r(l, o, a)) {
|
|
391
391
|
const s = l.properties.href;
|
|
392
392
|
if (qr(s) ? t.includes(s.slice(0, s.indexOf(":"))) : s.startsWith("//")) {
|
|
393
|
-
const u = On(e.content, l), c = u && !Array.isArray(u) ? [u] : u,
|
|
394
|
-
if (w && Object.assign(l.properties, bn(w)), d.length > 0 && (l.properties.rel = [...d]),
|
|
393
|
+
const u = On(e.content, l), c = u && !Array.isArray(u) ? [u] : u, f = On(e.rel, l) || ti, d = typeof f == "string" ? Wr(f) : f, p = On(e.target, l), w = On(e.properties, l);
|
|
394
|
+
if (w && Object.assign(l.properties, bn(w)), d.length > 0 && (l.properties.rel = [...d]), p && (l.properties.target = p), c) {
|
|
395
395
|
const b = On(e.contentProperties, l) || {};
|
|
396
396
|
l.children.push({
|
|
397
397
|
type: "element",
|
|
@@ -408,13 +408,13 @@ function ii(n) {
|
|
|
408
408
|
function On(n, e) {
|
|
409
409
|
return typeof n == "function" ? n(e) : n;
|
|
410
410
|
}
|
|
411
|
-
function li({ defaultOrigin: n = "", allowedLinkPrefixes: e = [], allowedImagePrefixes: t = [], allowDataImages: r = !1,
|
|
412
|
-
const
|
|
413
|
-
if (!n && (
|
|
411
|
+
function li({ defaultOrigin: n = "", allowedLinkPrefixes: e = [], allowedImagePrefixes: t = [], allowDataImages: r = !1, allowedProtocols: i = [], blockedImageClass: l = "inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm", blockedLinkClass: o = "text-gray-500" }) {
|
|
412
|
+
const a = e.length && !e.every((u) => u === "*"), s = t.length && !t.every((u) => u === "*");
|
|
413
|
+
if (!n && (a || s))
|
|
414
414
|
throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");
|
|
415
|
-
return (
|
|
416
|
-
const
|
|
417
|
-
wn(
|
|
415
|
+
return (u) => {
|
|
416
|
+
const c = si(n, e, t, r, i, l, o);
|
|
417
|
+
wn(u, c);
|
|
418
418
|
};
|
|
419
419
|
}
|
|
420
420
|
function et(n, e) {
|
|
@@ -441,9 +441,15 @@ const ai = /* @__PURE__ */ new Set([
|
|
|
441
441
|
"irc:",
|
|
442
442
|
"ircs:",
|
|
443
443
|
"mailto:",
|
|
444
|
-
"xmpp:"
|
|
444
|
+
"xmpp:",
|
|
445
|
+
"blob:"
|
|
446
|
+
]), ui = /* @__PURE__ */ new Set([
|
|
447
|
+
"javascript:",
|
|
448
|
+
"data:",
|
|
449
|
+
"file:",
|
|
450
|
+
"vbscript:"
|
|
445
451
|
]);
|
|
446
|
-
function tt(n, e, t, r = !1, i = !1) {
|
|
452
|
+
function tt(n, e, t, r = !1, i = !1, l = []) {
|
|
447
453
|
if (!n)
|
|
448
454
|
return null;
|
|
449
455
|
if (typeof n == "string" && n.startsWith("#") && !i)
|
|
@@ -454,61 +460,73 @@ function tt(n, e, t, r = !1, i = !1) {
|
|
|
454
460
|
}
|
|
455
461
|
if (typeof n == "string" && n.startsWith("data:"))
|
|
456
462
|
return i && r && n.startsWith("data:image/") ? n : null;
|
|
457
|
-
|
|
458
|
-
|
|
463
|
+
if (typeof n == "string" && n.startsWith("blob:")) {
|
|
464
|
+
try {
|
|
465
|
+
if (new URL(n).protocol === "blob:" && n.length > 5) {
|
|
466
|
+
const c = n.substring(5);
|
|
467
|
+
if (c && c.length > 0 && c !== "invalid")
|
|
468
|
+
return n;
|
|
469
|
+
}
|
|
470
|
+
} catch {
|
|
471
|
+
return null;
|
|
472
|
+
}
|
|
473
|
+
return null;
|
|
474
|
+
}
|
|
475
|
+
const o = et(n, t);
|
|
476
|
+
if (!o || ui.has(o.protocol) || !(ai.has(o.protocol) || l.includes(o.protocol) || l.includes("*")))
|
|
459
477
|
return null;
|
|
460
|
-
if (
|
|
461
|
-
return
|
|
462
|
-
const
|
|
463
|
-
return
|
|
464
|
-
const
|
|
465
|
-
return !
|
|
466
|
-
}) ?
|
|
467
|
-
}
|
|
468
|
-
const le = Symbol("node-seen"),
|
|
469
|
-
const
|
|
470
|
-
if (
|
|
471
|
-
|
|
478
|
+
if (o.protocol === "mailto:" || !o.protocol.match(/^https?:$/))
|
|
479
|
+
return o.href;
|
|
480
|
+
const s = oi(n);
|
|
481
|
+
return o && e.some((u) => {
|
|
482
|
+
const c = et(u, t);
|
|
483
|
+
return !c || c.origin !== o.origin ? !1 : o.href.startsWith(c.href);
|
|
484
|
+
}) ? s ? o.pathname + o.search + o.hash : o.href : e.includes("*") ? o.protocol !== "https:" && o.protocol !== "http:" ? null : s ? o.pathname + o.search + o.hash : o.href : null;
|
|
485
|
+
}
|
|
486
|
+
const le = Symbol("node-seen"), si = (n, e, t, r, i, l, o) => {
|
|
487
|
+
const a = (s, u, c) => {
|
|
488
|
+
if (s.type !== "element" || // @ts-expect-error
|
|
489
|
+
s[le])
|
|
472
490
|
return jn;
|
|
473
|
-
if (
|
|
474
|
-
const
|
|
475
|
-
return
|
|
491
|
+
if (s.tagName === "a") {
|
|
492
|
+
const f = tt(s.properties.href, e, n, !1, !1, i);
|
|
493
|
+
return f === null ? (s[le] = !0, wn(s, a), c && typeof u == "number" && (c.children[u] = {
|
|
476
494
|
type: "element",
|
|
477
495
|
tagName: "span",
|
|
478
496
|
properties: {
|
|
479
|
-
title: "Blocked URL: " + String(
|
|
480
|
-
class:
|
|
497
|
+
title: "Blocked URL: " + String(s.properties.href),
|
|
498
|
+
class: o
|
|
481
499
|
},
|
|
482
500
|
children: [
|
|
483
|
-
...
|
|
501
|
+
...s.children,
|
|
484
502
|
{
|
|
485
503
|
type: "text",
|
|
486
504
|
value: " [blocked]"
|
|
487
505
|
}
|
|
488
506
|
]
|
|
489
|
-
}), ke) : (
|
|
507
|
+
}), ke) : (s.properties.href = f, s.properties.target = "_blank", s.properties.rel = "noopener noreferrer", jn);
|
|
490
508
|
}
|
|
491
|
-
if (
|
|
492
|
-
const
|
|
493
|
-
return
|
|
509
|
+
if (s.tagName === "img") {
|
|
510
|
+
const f = tt(s.properties.src, t, n, r, !0, i);
|
|
511
|
+
return f === null ? (s[le] = !0, wn(s, a), c && typeof u == "number" && (c.children[u] = {
|
|
494
512
|
type: "element",
|
|
495
513
|
tagName: "span",
|
|
496
514
|
properties: {
|
|
497
|
-
class:
|
|
515
|
+
class: l
|
|
498
516
|
},
|
|
499
517
|
children: [
|
|
500
518
|
{
|
|
501
519
|
type: "text",
|
|
502
|
-
value: "[Image blocked: " + String(
|
|
520
|
+
value: "[Image blocked: " + String(s.properties.alt || "No description") + "]"
|
|
503
521
|
}
|
|
504
522
|
]
|
|
505
|
-
}), ke) : (
|
|
523
|
+
}), ke) : (s.properties.src = f, jn);
|
|
506
524
|
}
|
|
507
525
|
return jn;
|
|
508
526
|
};
|
|
509
|
-
return
|
|
527
|
+
return a;
|
|
510
528
|
};
|
|
511
|
-
function
|
|
529
|
+
function Qu(n) {
|
|
512
530
|
const e = [], t = String(n || "");
|
|
513
531
|
let r = t.indexOf(","), i = 0, l = !1;
|
|
514
532
|
for (; !l; ) {
|
|
@@ -518,22 +536,22 @@ function Ku(n) {
|
|
|
518
536
|
}
|
|
519
537
|
return e;
|
|
520
538
|
}
|
|
521
|
-
function
|
|
539
|
+
function ci(n, e) {
|
|
522
540
|
const t = {};
|
|
523
541
|
return (n[n.length - 1] === "" ? [...n, ""] : n).join(
|
|
524
542
|
(t.padRight ? " " : "") + "," + (t.padLeft === !1 ? "" : " ")
|
|
525
543
|
).trim();
|
|
526
544
|
}
|
|
527
|
-
const
|
|
545
|
+
const fi = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, pi = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, hi = {};
|
|
528
546
|
function rt(n, e) {
|
|
529
|
-
return (
|
|
547
|
+
return (hi.jsx ? pi : fi).test(n);
|
|
530
548
|
}
|
|
531
|
-
const
|
|
532
|
-
function
|
|
549
|
+
const mi = /[ \t\n\f\r]/g;
|
|
550
|
+
function di(n) {
|
|
533
551
|
return typeof n == "object" ? n.type === "text" ? it(n.value) : !1 : it(n);
|
|
534
552
|
}
|
|
535
553
|
function it(n) {
|
|
536
|
-
return n.replace(
|
|
554
|
+
return n.replace(mi, "") === "";
|
|
537
555
|
}
|
|
538
556
|
class Wn {
|
|
539
557
|
/**
|
|
@@ -587,16 +605,16 @@ J.prototype.overloadedBoolean = !1;
|
|
|
587
605
|
J.prototype.property = "";
|
|
588
606
|
J.prototype.spaceSeparated = !1;
|
|
589
607
|
J.prototype.space = void 0;
|
|
590
|
-
let
|
|
608
|
+
let gi = 0;
|
|
591
609
|
const N = Sn(), q = Sn(), be = Sn(), k = Sn(), $ = Sn(), Tn = Sn(), nn = Sn();
|
|
592
610
|
function Sn() {
|
|
593
|
-
return 2 ** ++
|
|
611
|
+
return 2 ** ++gi;
|
|
594
612
|
}
|
|
595
613
|
const we = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, boolean: N, booleanish: q, commaOrSpaceSeparated: nn, commaSeparated: Tn, number: k, overloadedBoolean: be, spaceSeparated: $ }, Symbol.toStringTag, { value: "Module" })), oe = (
|
|
596
614
|
/** @type {ReadonlyArray<keyof typeof types>} */
|
|
597
615
|
Object.keys(we)
|
|
598
616
|
);
|
|
599
|
-
class
|
|
617
|
+
class Re extends J {
|
|
600
618
|
/**
|
|
601
619
|
* @constructor
|
|
602
620
|
* @param {string} property
|
|
@@ -619,14 +637,14 @@ class ve extends J {
|
|
|
619
637
|
}
|
|
620
638
|
}
|
|
621
639
|
}
|
|
622
|
-
|
|
640
|
+
Re.prototype.defined = !0;
|
|
623
641
|
function lt(n, e, t) {
|
|
624
642
|
t && (n[e] = t);
|
|
625
643
|
}
|
|
626
644
|
function zn(n) {
|
|
627
645
|
const e = {}, t = {};
|
|
628
646
|
for (const [r, i] of Object.entries(n.properties)) {
|
|
629
|
-
const l = new
|
|
647
|
+
const l = new Re(
|
|
630
648
|
r,
|
|
631
649
|
n.transform(n.attributes || {}, r),
|
|
632
650
|
i,
|
|
@@ -698,7 +716,7 @@ function Wt(n, e) {
|
|
|
698
716
|
function Xt(n, e) {
|
|
699
717
|
return Wt(n, e.toLowerCase());
|
|
700
718
|
}
|
|
701
|
-
const
|
|
719
|
+
const yi = zn({
|
|
702
720
|
attributes: {
|
|
703
721
|
acceptcharset: "accept-charset",
|
|
704
722
|
classname: "class",
|
|
@@ -1059,7 +1077,7 @@ const gi = zn({
|
|
|
1059
1077
|
},
|
|
1060
1078
|
space: "html",
|
|
1061
1079
|
transform: Xt
|
|
1062
|
-
}),
|
|
1080
|
+
}), ki = zn({
|
|
1063
1081
|
attributes: {
|
|
1064
1082
|
accentHeight: "accent-height",
|
|
1065
1083
|
alignmentBaseline: "alignment-baseline",
|
|
@@ -1643,7 +1661,7 @@ const gi = zn({
|
|
|
1643
1661
|
transform(n, e) {
|
|
1644
1662
|
return "xml:" + e.slice(3).toLowerCase();
|
|
1645
1663
|
}
|
|
1646
|
-
}),
|
|
1664
|
+
}), xi = {
|
|
1647
1665
|
classId: "classID",
|
|
1648
1666
|
dataType: "datatype",
|
|
1649
1667
|
itemId: "itemID",
|
|
@@ -1661,40 +1679,40 @@ const gi = zn({
|
|
|
1661
1679
|
xLinkTitle: "xlinkTitle",
|
|
1662
1680
|
xLinkType: "xlinkType",
|
|
1663
1681
|
xmlnsXLink: "xmlnsXlink"
|
|
1664
|
-
},
|
|
1665
|
-
function
|
|
1682
|
+
}, bi = /[A-Z]/g, ot = /-[a-z]/g, wi = /^data[-\w.:]+$/i;
|
|
1683
|
+
function Si(n, e) {
|
|
1666
1684
|
const t = xe(e);
|
|
1667
1685
|
let r = e, i = J;
|
|
1668
1686
|
if (t in n.normal)
|
|
1669
1687
|
return n.property[n.normal[t]];
|
|
1670
|
-
if (t.length > 4 && t.slice(0, 4) === "data" &&
|
|
1688
|
+
if (t.length > 4 && t.slice(0, 4) === "data" && wi.test(e)) {
|
|
1671
1689
|
if (e.charAt(4) === "-") {
|
|
1672
|
-
const l = e.slice(5).replace(ot,
|
|
1690
|
+
const l = e.slice(5).replace(ot, Ii);
|
|
1673
1691
|
r = "data" + l.charAt(0).toUpperCase() + l.slice(1);
|
|
1674
1692
|
} else {
|
|
1675
1693
|
const l = e.slice(4);
|
|
1676
1694
|
if (!ot.test(l)) {
|
|
1677
|
-
let o = l.replace(
|
|
1695
|
+
let o = l.replace(bi, Ci);
|
|
1678
1696
|
o.charAt(0) !== "-" && (o = "-" + o), e = "data" + o;
|
|
1679
1697
|
}
|
|
1680
1698
|
}
|
|
1681
|
-
i =
|
|
1699
|
+
i = Re;
|
|
1682
1700
|
}
|
|
1683
1701
|
return new i(r, e);
|
|
1684
1702
|
}
|
|
1685
|
-
function
|
|
1703
|
+
function Ci(n) {
|
|
1686
1704
|
return "-" + n.toLowerCase();
|
|
1687
1705
|
}
|
|
1688
|
-
function
|
|
1706
|
+
function Ii(n) {
|
|
1689
1707
|
return n.charAt(1).toUpperCase();
|
|
1690
1708
|
}
|
|
1691
|
-
const
|
|
1709
|
+
const Ei = Vt([qt, yi, Gt, Yt, Kt], "html"), De = Vt([qt, ki, Gt, Yt, Kt], "svg");
|
|
1692
1710
|
var An = {}, ae, at;
|
|
1693
|
-
function
|
|
1711
|
+
function Pi() {
|
|
1694
1712
|
if (at) return ae;
|
|
1695
1713
|
at = 1;
|
|
1696
1714
|
var n = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, e = /\n/g, t = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, i = /^:\s*/, l = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, o = /^[;\s]*/, a = /^\s+|\s+$/g, s = `
|
|
1697
|
-
`, u = "/", c = "*",
|
|
1715
|
+
`, u = "/", c = "*", f = "", d = "comment", p = "declaration";
|
|
1698
1716
|
ae = function(b, L) {
|
|
1699
1717
|
if (typeof b != "string")
|
|
1700
1718
|
throw new TypeError("First argument must be a string");
|
|
@@ -1723,7 +1741,7 @@ function Ei() {
|
|
|
1723
1741
|
);
|
|
1724
1742
|
if (I.reason = P, I.filename = L.source, I.line = x, I.column = T, I.source = b, !L.silent) throw I;
|
|
1725
1743
|
}
|
|
1726
|
-
function
|
|
1744
|
+
function R(P) {
|
|
1727
1745
|
var I = P.exec(b);
|
|
1728
1746
|
if (I) {
|
|
1729
1747
|
var _ = I[0];
|
|
@@ -1731,7 +1749,7 @@ function Ei() {
|
|
|
1731
1749
|
}
|
|
1732
1750
|
}
|
|
1733
1751
|
function V() {
|
|
1734
|
-
|
|
1752
|
+
R(t);
|
|
1735
1753
|
}
|
|
1736
1754
|
function O(P) {
|
|
1737
1755
|
var I;
|
|
@@ -1742,9 +1760,9 @@ function Ei() {
|
|
|
1742
1760
|
function F() {
|
|
1743
1761
|
var P = B();
|
|
1744
1762
|
if (!(u != b.charAt(0) || c != b.charAt(1))) {
|
|
1745
|
-
for (var I = 2;
|
|
1763
|
+
for (var I = 2; f != b.charAt(I) && (c != b.charAt(I) || u != b.charAt(I + 1)); )
|
|
1746
1764
|
++I;
|
|
1747
|
-
if (I += 2,
|
|
1765
|
+
if (I += 2, f === b.charAt(I - 1))
|
|
1748
1766
|
return y("End of comment missing");
|
|
1749
1767
|
var _ = b.slice(2, I - 2);
|
|
1750
1768
|
return T += 2, C(_), b = b.slice(I), T += 2, P({
|
|
@@ -1754,15 +1772,15 @@ function Ei() {
|
|
|
1754
1772
|
}
|
|
1755
1773
|
}
|
|
1756
1774
|
function A() {
|
|
1757
|
-
var P = B(), I =
|
|
1775
|
+
var P = B(), I = R(r);
|
|
1758
1776
|
if (I) {
|
|
1759
|
-
if (F(), !
|
|
1760
|
-
var _ =
|
|
1761
|
-
type:
|
|
1762
|
-
property: w(I[0].replace(n,
|
|
1763
|
-
value: _ ? w(_[0].replace(n,
|
|
1777
|
+
if (F(), !R(i)) return y("property missing ':'");
|
|
1778
|
+
var _ = R(l), W = P({
|
|
1779
|
+
type: p,
|
|
1780
|
+
property: w(I[0].replace(n, f)),
|
|
1781
|
+
value: _ ? w(_[0].replace(n, f)) : f
|
|
1764
1782
|
});
|
|
1765
|
-
return
|
|
1783
|
+
return R(o), W;
|
|
1766
1784
|
}
|
|
1767
1785
|
}
|
|
1768
1786
|
function E() {
|
|
@@ -1775,19 +1793,19 @@ function Ei() {
|
|
|
1775
1793
|
return V(), E();
|
|
1776
1794
|
};
|
|
1777
1795
|
function w(b) {
|
|
1778
|
-
return b ? b.replace(a,
|
|
1796
|
+
return b ? b.replace(a, f) : f;
|
|
1779
1797
|
}
|
|
1780
1798
|
return ae;
|
|
1781
1799
|
}
|
|
1782
1800
|
var ut;
|
|
1783
|
-
function
|
|
1801
|
+
function Ai() {
|
|
1784
1802
|
if (ut) return An;
|
|
1785
1803
|
ut = 1;
|
|
1786
1804
|
var n = An && An.__importDefault || function(r) {
|
|
1787
1805
|
return r && r.__esModule ? r : { default: r };
|
|
1788
1806
|
};
|
|
1789
1807
|
Object.defineProperty(An, "__esModule", { value: !0 }), An.default = t;
|
|
1790
|
-
const e = n(/* @__PURE__ */
|
|
1808
|
+
const e = n(/* @__PURE__ */ Pi());
|
|
1791
1809
|
function t(r, i) {
|
|
1792
1810
|
let l = null;
|
|
1793
1811
|
if (!r || typeof r != "string")
|
|
@@ -1803,7 +1821,7 @@ function Pi() {
|
|
|
1803
1821
|
return An;
|
|
1804
1822
|
}
|
|
1805
1823
|
var Fn = {}, st;
|
|
1806
|
-
function
|
|
1824
|
+
function Ti() {
|
|
1807
1825
|
if (st) return Fn;
|
|
1808
1826
|
st = 1, Object.defineProperty(Fn, "__esModule", { value: !0 }), Fn.camelCase = void 0;
|
|
1809
1827
|
var n = /^--[a-zA-Z0-9_-]+$/, e = /-([a-z])/g, t = /^[^-]+$/, r = /^-(webkit|moz|ms|o|khtml)-/, i = /^-(ms)-/, l = function(u) {
|
|
@@ -1818,12 +1836,12 @@ function Ai() {
|
|
|
1818
1836
|
return Fn.camelCase = s, Fn;
|
|
1819
1837
|
}
|
|
1820
1838
|
var Bn, ct;
|
|
1821
|
-
function
|
|
1839
|
+
function Li() {
|
|
1822
1840
|
if (ct) return Bn;
|
|
1823
1841
|
ct = 1;
|
|
1824
1842
|
var n = Bn && Bn.__importDefault || function(i) {
|
|
1825
1843
|
return i && i.__esModule ? i : { default: i };
|
|
1826
|
-
}, e = n(/* @__PURE__ */
|
|
1844
|
+
}, e = n(/* @__PURE__ */ Ai()), t = /* @__PURE__ */ Ti();
|
|
1827
1845
|
function r(i, l) {
|
|
1828
1846
|
var o = {};
|
|
1829
1847
|
return !i || typeof i != "string" || (0, e.default)(i, function(a, s) {
|
|
@@ -1832,8 +1850,8 @@ function Ti() {
|
|
|
1832
1850
|
}
|
|
1833
1851
|
return r.default = r, Bn = r, Bn;
|
|
1834
1852
|
}
|
|
1835
|
-
var
|
|
1836
|
-
const
|
|
1853
|
+
var zi = /* @__PURE__ */ Li();
|
|
1854
|
+
const _i = /* @__PURE__ */ Ot(zi), Qt = Jt("end"), Oe = Jt("start");
|
|
1837
1855
|
function Jt(n) {
|
|
1838
1856
|
return e;
|
|
1839
1857
|
function e(t) {
|
|
@@ -1846,7 +1864,7 @@ function Jt(n) {
|
|
|
1846
1864
|
};
|
|
1847
1865
|
}
|
|
1848
1866
|
}
|
|
1849
|
-
function
|
|
1867
|
+
function Mi(n) {
|
|
1850
1868
|
const e = Oe(n), t = Qt(n);
|
|
1851
1869
|
if (e && t)
|
|
1852
1870
|
return { start: e, end: t };
|
|
@@ -1950,8 +1968,8 @@ Y.prototype.fatal = void 0;
|
|
|
1950
1968
|
Y.prototype.place = void 0;
|
|
1951
1969
|
Y.prototype.ruleId = void 0;
|
|
1952
1970
|
Y.prototype.source = void 0;
|
|
1953
|
-
const Fe = {}.hasOwnProperty,
|
|
1954
|
-
function
|
|
1971
|
+
const Fe = {}.hasOwnProperty, Ni = /* @__PURE__ */ new Map(), vi = /[A-Z]/g, Ri = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), Di = /* @__PURE__ */ new Set(["td", "th"]), Zt = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
1972
|
+
function Oi(n, e) {
|
|
1955
1973
|
if (!e || e.Fragment === void 0)
|
|
1956
1974
|
throw new TypeError("Expected `Fragment` in options");
|
|
1957
1975
|
const t = e.filePath || void 0;
|
|
@@ -1961,13 +1979,13 @@ function Di(n, e) {
|
|
|
1961
1979
|
throw new TypeError(
|
|
1962
1980
|
"Expected `jsxDEV` in options when `development: true`"
|
|
1963
1981
|
);
|
|
1964
|
-
r =
|
|
1982
|
+
r = qi(t, e.jsxDEV);
|
|
1965
1983
|
} else {
|
|
1966
1984
|
if (typeof e.jsx != "function")
|
|
1967
1985
|
throw new TypeError("Expected `jsx` in production options");
|
|
1968
1986
|
if (typeof e.jsxs != "function")
|
|
1969
1987
|
throw new TypeError("Expected `jsxs` in production options");
|
|
1970
|
-
r =
|
|
1988
|
+
r = Vi(t, e.jsx, e.jsxs);
|
|
1971
1989
|
}
|
|
1972
1990
|
const i = {
|
|
1973
1991
|
Fragment: e.Fragment,
|
|
@@ -1980,7 +1998,7 @@ function Di(n, e) {
|
|
|
1980
1998
|
ignoreInvalidStyle: e.ignoreInvalidStyle || !1,
|
|
1981
1999
|
passKeys: e.passKeys !== !1,
|
|
1982
2000
|
passNode: e.passNode || !1,
|
|
1983
|
-
schema: e.space === "svg" ? De :
|
|
2001
|
+
schema: e.space === "svg" ? De : Ei,
|
|
1984
2002
|
stylePropertyNameCase: e.stylePropertyNameCase || "dom",
|
|
1985
2003
|
tableCellAlignToStyle: e.tableCellAlignToStyle !== !1
|
|
1986
2004
|
}, l = nr(i, n, void 0);
|
|
@@ -1993,29 +2011,29 @@ function Di(n, e) {
|
|
|
1993
2011
|
}
|
|
1994
2012
|
function nr(n, e, t) {
|
|
1995
2013
|
if (e.type === "element")
|
|
1996
|
-
return
|
|
2014
|
+
return Fi(n, e, t);
|
|
1997
2015
|
if (e.type === "mdxFlowExpression" || e.type === "mdxTextExpression")
|
|
1998
|
-
return
|
|
2016
|
+
return Bi(n, e);
|
|
1999
2017
|
if (e.type === "mdxJsxFlowElement" || e.type === "mdxJsxTextElement")
|
|
2000
|
-
return
|
|
2018
|
+
return ji(n, e, t);
|
|
2001
2019
|
if (e.type === "mdxjsEsm")
|
|
2002
|
-
return
|
|
2020
|
+
return Ui(n, e);
|
|
2003
2021
|
if (e.type === "root")
|
|
2004
|
-
return
|
|
2022
|
+
return $i(n, e, t);
|
|
2005
2023
|
if (e.type === "text")
|
|
2006
|
-
return
|
|
2024
|
+
return Hi(n, e);
|
|
2007
2025
|
}
|
|
2008
|
-
function
|
|
2026
|
+
function Fi(n, e, t) {
|
|
2009
2027
|
const r = n.schema;
|
|
2010
2028
|
let i = r;
|
|
2011
2029
|
e.tagName.toLowerCase() === "svg" && r.space === "html" && (i = De, n.schema = i), n.ancestors.push(e);
|
|
2012
|
-
const l = tr(n, e.tagName, !1), o =
|
|
2030
|
+
const l = tr(n, e.tagName, !1), o = Wi(n, e);
|
|
2013
2031
|
let a = Ue(n, e);
|
|
2014
2032
|
return Ri.has(e.tagName) && (a = a.filter(function(s) {
|
|
2015
|
-
return typeof s == "string" ? !
|
|
2033
|
+
return typeof s == "string" ? !di(s) : !0;
|
|
2016
2034
|
})), er(n, o, l, e), Be(o, a), n.ancestors.pop(), n.schema = r, n.create(e, l, o, t);
|
|
2017
2035
|
}
|
|
2018
|
-
function
|
|
2036
|
+
function Bi(n, e) {
|
|
2019
2037
|
if (e.data && e.data.estree && n.evaluater) {
|
|
2020
2038
|
const r = e.data.estree.body[0];
|
|
2021
2039
|
return (
|
|
@@ -2025,7 +2043,7 @@ function Fi(n, e) {
|
|
|
2025
2043
|
}
|
|
2026
2044
|
qn(n, e.position);
|
|
2027
2045
|
}
|
|
2028
|
-
function
|
|
2046
|
+
function Ui(n, e) {
|
|
2029
2047
|
if (e.data && e.data.estree && n.evaluater)
|
|
2030
2048
|
return (
|
|
2031
2049
|
/** @type {Child | undefined} */
|
|
@@ -2033,18 +2051,18 @@ function Bi(n, e) {
|
|
|
2033
2051
|
);
|
|
2034
2052
|
qn(n, e.position);
|
|
2035
2053
|
}
|
|
2036
|
-
function
|
|
2054
|
+
function ji(n, e, t) {
|
|
2037
2055
|
const r = n.schema;
|
|
2038
2056
|
let i = r;
|
|
2039
2057
|
e.name === "svg" && r.space === "html" && (i = De, n.schema = i), n.ancestors.push(e);
|
|
2040
|
-
const l = e.name === null ? n.Fragment : tr(n, e.name, !0), o =
|
|
2058
|
+
const l = e.name === null ? n.Fragment : tr(n, e.name, !0), o = Xi(n, e), a = Ue(n, e);
|
|
2041
2059
|
return er(n, o, l, e), Be(o, a), n.ancestors.pop(), n.schema = r, n.create(e, l, o, t);
|
|
2042
2060
|
}
|
|
2043
|
-
function
|
|
2061
|
+
function $i(n, e, t) {
|
|
2044
2062
|
const r = {};
|
|
2045
2063
|
return Be(r, Ue(n, e)), n.create(e, n.Fragment, r, t);
|
|
2046
2064
|
}
|
|
2047
|
-
function
|
|
2065
|
+
function Hi(n, e) {
|
|
2048
2066
|
return e.value;
|
|
2049
2067
|
}
|
|
2050
2068
|
function er(n, e, t, r) {
|
|
@@ -2056,14 +2074,14 @@ function Be(n, e) {
|
|
|
2056
2074
|
t && (n.children = t);
|
|
2057
2075
|
}
|
|
2058
2076
|
}
|
|
2059
|
-
function
|
|
2077
|
+
function Vi(n, e, t) {
|
|
2060
2078
|
return r;
|
|
2061
2079
|
function r(i, l, o, a) {
|
|
2062
2080
|
const u = Array.isArray(o.children) ? t : e;
|
|
2063
2081
|
return a ? u(l, o, a) : u(l, o);
|
|
2064
2082
|
}
|
|
2065
2083
|
}
|
|
2066
|
-
function
|
|
2084
|
+
function qi(n, e) {
|
|
2067
2085
|
return t;
|
|
2068
2086
|
function t(r, i, l, o) {
|
|
2069
2087
|
const a = Array.isArray(l.children), s = Oe(r);
|
|
@@ -2081,15 +2099,15 @@ function Vi(n, e) {
|
|
|
2081
2099
|
);
|
|
2082
2100
|
}
|
|
2083
2101
|
}
|
|
2084
|
-
function
|
|
2102
|
+
function Wi(n, e) {
|
|
2085
2103
|
const t = {};
|
|
2086
2104
|
let r, i;
|
|
2087
2105
|
for (i in e.properties)
|
|
2088
2106
|
if (i !== "children" && Fe.call(e.properties, i)) {
|
|
2089
|
-
const l =
|
|
2107
|
+
const l = Gi(n, i, e.properties[i]);
|
|
2090
2108
|
if (l) {
|
|
2091
2109
|
const [o, a] = l;
|
|
2092
|
-
n.tableCellAlignToStyle && o === "align" && typeof a == "string" &&
|
|
2110
|
+
n.tableCellAlignToStyle && o === "align" && typeof a == "string" && Di.has(e.tagName) ? r = a : t[o] = a;
|
|
2093
2111
|
}
|
|
2094
2112
|
}
|
|
2095
2113
|
if (r) {
|
|
@@ -2101,7 +2119,7 @@ function qi(n, e) {
|
|
|
2101
2119
|
}
|
|
2102
2120
|
return t;
|
|
2103
2121
|
}
|
|
2104
|
-
function
|
|
2122
|
+
function Xi(n, e) {
|
|
2105
2123
|
const t = {};
|
|
2106
2124
|
for (const r of e.attributes)
|
|
2107
2125
|
if (r.type === "mdxJsxExpressionAttribute")
|
|
@@ -2132,7 +2150,7 @@ function Wi(n, e) {
|
|
|
2132
2150
|
function Ue(n, e) {
|
|
2133
2151
|
const t = [];
|
|
2134
2152
|
let r = -1;
|
|
2135
|
-
const i = n.passKeys ? /* @__PURE__ */ new Map() :
|
|
2153
|
+
const i = n.passKeys ? /* @__PURE__ */ new Map() : Ni;
|
|
2136
2154
|
for (; ++r < e.children.length; ) {
|
|
2137
2155
|
const l = e.children[r];
|
|
2138
2156
|
let o;
|
|
@@ -2148,22 +2166,22 @@ function Ue(n, e) {
|
|
|
2148
2166
|
}
|
|
2149
2167
|
return t;
|
|
2150
2168
|
}
|
|
2151
|
-
function
|
|
2152
|
-
const r =
|
|
2169
|
+
function Gi(n, e, t) {
|
|
2170
|
+
const r = Si(n.schema, e);
|
|
2153
2171
|
if (!(t == null || typeof t == "number" && Number.isNaN(t))) {
|
|
2154
|
-
if (Array.isArray(t) && (t = r.commaSeparated ?
|
|
2155
|
-
let i = typeof t == "object" ? t :
|
|
2156
|
-
return n.stylePropertyNameCase === "css" && (i =
|
|
2172
|
+
if (Array.isArray(t) && (t = r.commaSeparated ? ci(t) : Xr(t)), r.property === "style") {
|
|
2173
|
+
let i = typeof t == "object" ? t : Yi(n, String(t));
|
|
2174
|
+
return n.stylePropertyNameCase === "css" && (i = Ki(i)), ["style", i];
|
|
2157
2175
|
}
|
|
2158
2176
|
return [
|
|
2159
|
-
n.elementAttributeNameCase === "react" && r.space ?
|
|
2177
|
+
n.elementAttributeNameCase === "react" && r.space ? xi[r.property] || r.property : r.attribute,
|
|
2160
2178
|
t
|
|
2161
2179
|
];
|
|
2162
2180
|
}
|
|
2163
2181
|
}
|
|
2164
|
-
function
|
|
2182
|
+
function Yi(n, e) {
|
|
2165
2183
|
try {
|
|
2166
|
-
return
|
|
2184
|
+
return _i(e, { reactCompat: !0 });
|
|
2167
2185
|
} catch (t) {
|
|
2168
2186
|
if (n.ignoreInvalidStyle)
|
|
2169
2187
|
return {};
|
|
@@ -2222,37 +2240,37 @@ function qn(n, e) {
|
|
|
2222
2240
|
);
|
|
2223
2241
|
throw t.file = n.filePath || void 0, t.url = Zt + "#cannot-handle-mdx-estrees-without-createevaluater", t;
|
|
2224
2242
|
}
|
|
2225
|
-
function
|
|
2243
|
+
function Ki(n) {
|
|
2226
2244
|
const e = {};
|
|
2227
2245
|
let t;
|
|
2228
2246
|
for (t in n)
|
|
2229
|
-
Fe.call(n, t) && (e[
|
|
2247
|
+
Fe.call(n, t) && (e[Qi(t)] = n[t]);
|
|
2230
2248
|
return e;
|
|
2231
2249
|
}
|
|
2232
|
-
function
|
|
2233
|
-
let e = n.replace(
|
|
2250
|
+
function Qi(n) {
|
|
2251
|
+
let e = n.replace(vi, Ji);
|
|
2234
2252
|
return e.slice(0, 3) === "ms-" && (e = "-" + e), e;
|
|
2235
2253
|
}
|
|
2236
|
-
function
|
|
2254
|
+
function Ji(n) {
|
|
2237
2255
|
return "-" + n.toLowerCase();
|
|
2238
2256
|
}
|
|
2239
|
-
function
|
|
2257
|
+
function Zi(n) {
|
|
2240
2258
|
const e = (
|
|
2241
2259
|
/** @type {Processor} */
|
|
2242
2260
|
this
|
|
2243
2261
|
);
|
|
2244
2262
|
e.compiler = t;
|
|
2245
2263
|
function t(r, i) {
|
|
2246
|
-
return
|
|
2264
|
+
return Oi(r, { filePath: i.path, ...n });
|
|
2247
2265
|
}
|
|
2248
2266
|
}
|
|
2249
|
-
const
|
|
2250
|
-
function
|
|
2251
|
-
const t =
|
|
2267
|
+
const nl = {};
|
|
2268
|
+
function el(n, e) {
|
|
2269
|
+
const t = nl, r = typeof t.includeImageAlt == "boolean" ? t.includeImageAlt : !0, i = typeof t.includeHtml == "boolean" ? t.includeHtml : !0;
|
|
2252
2270
|
return rr(n, r, i);
|
|
2253
2271
|
}
|
|
2254
2272
|
function rr(n, e, t) {
|
|
2255
|
-
if (
|
|
2273
|
+
if (tl(n)) {
|
|
2256
2274
|
if ("value" in n)
|
|
2257
2275
|
return n.type === "html" && !t ? "" : n.value;
|
|
2258
2276
|
if (e && "alt" in n && n.alt)
|
|
@@ -2269,7 +2287,7 @@ function ht(n, e, t) {
|
|
|
2269
2287
|
r[i] = rr(n[i], e, t);
|
|
2270
2288
|
return r.join("");
|
|
2271
2289
|
}
|
|
2272
|
-
function
|
|
2290
|
+
function tl(n) {
|
|
2273
2291
|
return !!(n && typeof n == "object");
|
|
2274
2292
|
}
|
|
2275
2293
|
const mt = document.createElement("i");
|
|
@@ -2296,14 +2314,14 @@ function tn(n, e) {
|
|
|
2296
2314
|
return n.length > 0 ? (cn(n, n.length, 0, e), n) : e;
|
|
2297
2315
|
}
|
|
2298
2316
|
const dt = {}.hasOwnProperty;
|
|
2299
|
-
function
|
|
2317
|
+
function rl(n) {
|
|
2300
2318
|
const e = {};
|
|
2301
2319
|
let t = -1;
|
|
2302
2320
|
for (; ++t < n.length; )
|
|
2303
|
-
|
|
2321
|
+
il(e, n[t]);
|
|
2304
2322
|
return e;
|
|
2305
2323
|
}
|
|
2306
|
-
function
|
|
2324
|
+
function il(n, e) {
|
|
2307
2325
|
let t;
|
|
2308
2326
|
for (t in e) {
|
|
2309
2327
|
const i = (dt.call(n, t) ? n[t] : void 0) || (n[t] = {}), l = e[t];
|
|
@@ -2312,7 +2330,7 @@ function rl(n, e) {
|
|
|
2312
2330
|
for (o in l) {
|
|
2313
2331
|
dt.call(i, o) || (i[o] = []);
|
|
2314
2332
|
const a = l[o];
|
|
2315
|
-
|
|
2333
|
+
ll(
|
|
2316
2334
|
// @ts-expect-error Looks like a list.
|
|
2317
2335
|
i[o],
|
|
2318
2336
|
Array.isArray(a) ? a : a ? [a] : []
|
|
@@ -2320,7 +2338,7 @@ function rl(n, e) {
|
|
|
2320
2338
|
}
|
|
2321
2339
|
}
|
|
2322
2340
|
}
|
|
2323
|
-
function
|
|
2341
|
+
function ll(n, e) {
|
|
2324
2342
|
let t = -1;
|
|
2325
2343
|
const r = [];
|
|
2326
2344
|
for (; ++t < e.length; )
|
|
@@ -2343,7 +2361,7 @@ function ir(n, e) {
|
|
|
2343
2361
|
function Ln(n) {
|
|
2344
2362
|
return n.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
2345
2363
|
}
|
|
2346
|
-
const sn = yn(/[A-Za-z]/), en = yn(/[\dA-Za-z]/),
|
|
2364
|
+
const sn = yn(/[A-Za-z]/), en = yn(/[\dA-Za-z]/), ol = yn(/[#-'*+\--9=?A-Z^-~]/);
|
|
2347
2365
|
function Ce(n) {
|
|
2348
2366
|
return (
|
|
2349
2367
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
@@ -2351,7 +2369,7 @@ function Ce(n) {
|
|
|
2351
2369
|
n !== null && (n < 32 || n === 127)
|
|
2352
2370
|
);
|
|
2353
2371
|
}
|
|
2354
|
-
const Ie = yn(/\d/),
|
|
2372
|
+
const Ie = yn(/\d/), al = yn(/[\dA-Fa-f]/), ul = yn(/[!-/:-@[-`{-~]/);
|
|
2355
2373
|
function z(n) {
|
|
2356
2374
|
return n !== null && n < -2;
|
|
2357
2375
|
}
|
|
@@ -2361,7 +2379,7 @@ function Q(n) {
|
|
|
2361
2379
|
function D(n) {
|
|
2362
2380
|
return n === -2 || n === -1 || n === 32;
|
|
2363
2381
|
}
|
|
2364
|
-
const
|
|
2382
|
+
const sl = yn(new RegExp("\\p{P}|\\p{S}", "u")), cl = yn(/\s/);
|
|
2365
2383
|
function yn(n) {
|
|
2366
2384
|
return e;
|
|
2367
2385
|
function e(t) {
|
|
@@ -2398,10 +2416,10 @@ function H(n, e, t, r) {
|
|
|
2398
2416
|
return D(s) && l++ < i ? (n.consume(s), a) : (n.exit(t), e(s));
|
|
2399
2417
|
}
|
|
2400
2418
|
}
|
|
2401
|
-
const
|
|
2402
|
-
tokenize:
|
|
2419
|
+
const fl = {
|
|
2420
|
+
tokenize: pl
|
|
2403
2421
|
};
|
|
2404
|
-
function
|
|
2422
|
+
function pl(n) {
|
|
2405
2423
|
const e = n.attempt(this.parser.constructs.contentInitial, r, i);
|
|
2406
2424
|
let t;
|
|
2407
2425
|
return e;
|
|
@@ -2430,12 +2448,12 @@ function fl(n) {
|
|
|
2430
2448
|
return z(a) ? (n.consume(a), n.exit("chunkText"), l) : (n.consume(a), o);
|
|
2431
2449
|
}
|
|
2432
2450
|
}
|
|
2433
|
-
const
|
|
2434
|
-
tokenize: hl
|
|
2435
|
-
}, gt = {
|
|
2451
|
+
const hl = {
|
|
2436
2452
|
tokenize: ml
|
|
2453
|
+
}, gt = {
|
|
2454
|
+
tokenize: dl
|
|
2437
2455
|
};
|
|
2438
|
-
function
|
|
2456
|
+
function ml(n) {
|
|
2439
2457
|
const e = this, t = [];
|
|
2440
2458
|
let r = 0, i, l, o;
|
|
2441
2459
|
return a;
|
|
@@ -2457,12 +2475,12 @@ function hl(n) {
|
|
|
2457
2475
|
break;
|
|
2458
2476
|
}
|
|
2459
2477
|
x(r);
|
|
2460
|
-
let
|
|
2461
|
-
for (;
|
|
2462
|
-
e.events[
|
|
2478
|
+
let R = B;
|
|
2479
|
+
for (; R < e.events.length; )
|
|
2480
|
+
e.events[R][1].end = {
|
|
2463
2481
|
...y
|
|
2464
|
-
},
|
|
2465
|
-
return cn(e.events, j + 1, 0, e.events.slice(B)), e.events.length =
|
|
2482
|
+
}, R++;
|
|
2483
|
+
return cn(e.events, j + 1, 0, e.events.slice(B)), e.events.length = R, u(C);
|
|
2466
2484
|
}
|
|
2467
2485
|
return a(C);
|
|
2468
2486
|
}
|
|
@@ -2474,18 +2492,18 @@ function hl(n) {
|
|
|
2474
2492
|
return w(C);
|
|
2475
2493
|
e.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
|
|
2476
2494
|
}
|
|
2477
|
-
return e.containerState = {}, n.check(gt, c,
|
|
2495
|
+
return e.containerState = {}, n.check(gt, c, f)(C);
|
|
2478
2496
|
}
|
|
2479
2497
|
function c(C) {
|
|
2480
2498
|
return i && T(), x(r), d(C);
|
|
2481
2499
|
}
|
|
2482
|
-
function
|
|
2500
|
+
function f(C) {
|
|
2483
2501
|
return e.parser.lazy[e.now().line] = r !== t.length, o = e.now().offset, w(C);
|
|
2484
2502
|
}
|
|
2485
2503
|
function d(C) {
|
|
2486
|
-
return e.containerState = {}, n.attempt(gt,
|
|
2504
|
+
return e.containerState = {}, n.attempt(gt, p, w)(C);
|
|
2487
2505
|
}
|
|
2488
|
-
function
|
|
2506
|
+
function p(C) {
|
|
2489
2507
|
return r++, t.push([e.currentConstruct, e.containerState]), d(C);
|
|
2490
2508
|
}
|
|
2491
2509
|
function w(C) {
|
|
@@ -2518,8 +2536,8 @@ function hl(n) {
|
|
|
2518
2536
|
i.events[y][1].end.offset > o)
|
|
2519
2537
|
)
|
|
2520
2538
|
return;
|
|
2521
|
-
const
|
|
2522
|
-
let V =
|
|
2539
|
+
const R = e.events.length;
|
|
2540
|
+
let V = R, O, F;
|
|
2523
2541
|
for (; V--; )
|
|
2524
2542
|
if (e.events[V][0] === "exit" && e.events[V][1].type === "chunkFlow") {
|
|
2525
2543
|
if (O) {
|
|
@@ -2528,11 +2546,11 @@ function hl(n) {
|
|
|
2528
2546
|
}
|
|
2529
2547
|
O = !0;
|
|
2530
2548
|
}
|
|
2531
|
-
for (x(r), y =
|
|
2549
|
+
for (x(r), y = R; y < e.events.length; )
|
|
2532
2550
|
e.events[y][1].end = {
|
|
2533
2551
|
...F
|
|
2534
2552
|
}, y++;
|
|
2535
|
-
cn(e.events, V + 1, 0, e.events.slice(
|
|
2553
|
+
cn(e.events, V + 1, 0, e.events.slice(R)), e.events.length = y;
|
|
2536
2554
|
}
|
|
2537
2555
|
}
|
|
2538
2556
|
function x(C) {
|
|
@@ -2547,13 +2565,13 @@ function hl(n) {
|
|
|
2547
2565
|
i.write([null]), l = void 0, i = void 0, e.containerState._closeFlow = void 0;
|
|
2548
2566
|
}
|
|
2549
2567
|
}
|
|
2550
|
-
function
|
|
2568
|
+
function dl(n, e, t) {
|
|
2551
2569
|
return H(n, n.attempt(this.parser.constructs.document, e, t), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
2552
2570
|
}
|
|
2553
2571
|
function yt(n) {
|
|
2554
|
-
if (n === null || Q(n) ||
|
|
2572
|
+
if (n === null || Q(n) || cl(n))
|
|
2555
2573
|
return 1;
|
|
2556
|
-
if (
|
|
2574
|
+
if (sl(n))
|
|
2557
2575
|
return 2;
|
|
2558
2576
|
}
|
|
2559
2577
|
function $e(n, e, t) {
|
|
@@ -2567,10 +2585,10 @@ function $e(n, e, t) {
|
|
|
2567
2585
|
}
|
|
2568
2586
|
const Ee = {
|
|
2569
2587
|
name: "attention",
|
|
2570
|
-
resolveAll:
|
|
2571
|
-
tokenize:
|
|
2588
|
+
resolveAll: gl,
|
|
2589
|
+
tokenize: yl
|
|
2572
2590
|
};
|
|
2573
|
-
function
|
|
2591
|
+
function gl(n, e) {
|
|
2574
2592
|
let t = -1, r, i, l, o, a, s, u, c;
|
|
2575
2593
|
for (; ++t < n.length; )
|
|
2576
2594
|
if (n[t][0] === "enter" && n[t][1].type === "attentionSequence" && n[t][1]._close) {
|
|
@@ -2580,14 +2598,14 @@ function dl(n, e) {
|
|
|
2580
2598
|
if ((n[r][1]._close || n[t][1]._open) && (n[t][1].end.offset - n[t][1].start.offset) % 3 && !((n[r][1].end.offset - n[r][1].start.offset + n[t][1].end.offset - n[t][1].start.offset) % 3))
|
|
2581
2599
|
continue;
|
|
2582
2600
|
s = n[r][1].end.offset - n[r][1].start.offset > 1 && n[t][1].end.offset - n[t][1].start.offset > 1 ? 2 : 1;
|
|
2583
|
-
const
|
|
2601
|
+
const f = {
|
|
2584
2602
|
...n[r][1].end
|
|
2585
2603
|
}, d = {
|
|
2586
2604
|
...n[t][1].start
|
|
2587
2605
|
};
|
|
2588
|
-
kt(
|
|
2606
|
+
kt(f, -s), kt(d, s), o = {
|
|
2589
2607
|
type: s > 1 ? "strongSequence" : "emphasisSequence",
|
|
2590
|
-
start:
|
|
2608
|
+
start: f,
|
|
2591
2609
|
end: {
|
|
2592
2610
|
...n[r][1].end
|
|
2593
2611
|
}
|
|
@@ -2625,7 +2643,7 @@ function dl(n, e) {
|
|
|
2625
2643
|
n[t][1].type === "attentionSequence" && (n[t][1].type = "data");
|
|
2626
2644
|
return n;
|
|
2627
2645
|
}
|
|
2628
|
-
function
|
|
2646
|
+
function yl(n, e) {
|
|
2629
2647
|
const t = this.parser.constructs.attentionMarkers.null, r = this.previous, i = yt(r);
|
|
2630
2648
|
let l;
|
|
2631
2649
|
return o;
|
|
@@ -2635,57 +2653,57 @@ function gl(n, e) {
|
|
|
2635
2653
|
function a(s) {
|
|
2636
2654
|
if (s === l)
|
|
2637
2655
|
return n.consume(s), a;
|
|
2638
|
-
const u = n.exit("attentionSequence"), c = yt(s),
|
|
2639
|
-
return u._open = !!(l === 42 ?
|
|
2656
|
+
const u = n.exit("attentionSequence"), c = yt(s), f = !c || c === 2 && i || t.includes(s), d = !i || i === 2 && c || t.includes(r);
|
|
2657
|
+
return u._open = !!(l === 42 ? f : f && (i || !d)), u._close = !!(l === 42 ? d : d && (c || !f)), e(s);
|
|
2640
2658
|
}
|
|
2641
2659
|
}
|
|
2642
2660
|
function kt(n, e) {
|
|
2643
2661
|
n.column += e, n.offset += e, n._bufferIndex += e;
|
|
2644
2662
|
}
|
|
2645
|
-
const
|
|
2663
|
+
const kl = {
|
|
2646
2664
|
name: "autolink",
|
|
2647
|
-
tokenize:
|
|
2665
|
+
tokenize: xl
|
|
2648
2666
|
};
|
|
2649
|
-
function
|
|
2667
|
+
function xl(n, e, t) {
|
|
2650
2668
|
let r = 0;
|
|
2651
2669
|
return i;
|
|
2652
|
-
function i(
|
|
2653
|
-
return n.enter("autolink"), n.enter("autolinkMarker"), n.consume(
|
|
2670
|
+
function i(p) {
|
|
2671
|
+
return n.enter("autolink"), n.enter("autolinkMarker"), n.consume(p), n.exit("autolinkMarker"), n.enter("autolinkProtocol"), l;
|
|
2654
2672
|
}
|
|
2655
|
-
function l(
|
|
2656
|
-
return sn(
|
|
2673
|
+
function l(p) {
|
|
2674
|
+
return sn(p) ? (n.consume(p), o) : p === 64 ? t(p) : u(p);
|
|
2657
2675
|
}
|
|
2658
|
-
function o(
|
|
2659
|
-
return
|
|
2676
|
+
function o(p) {
|
|
2677
|
+
return p === 43 || p === 45 || p === 46 || en(p) ? (r = 1, a(p)) : u(p);
|
|
2660
2678
|
}
|
|
2661
|
-
function a(
|
|
2662
|
-
return
|
|
2679
|
+
function a(p) {
|
|
2680
|
+
return p === 58 ? (n.consume(p), r = 0, s) : (p === 43 || p === 45 || p === 46 || en(p)) && r++ < 32 ? (n.consume(p), a) : (r = 0, u(p));
|
|
2663
2681
|
}
|
|
2664
|
-
function s(
|
|
2665
|
-
return
|
|
2682
|
+
function s(p) {
|
|
2683
|
+
return p === 62 ? (n.exit("autolinkProtocol"), n.enter("autolinkMarker"), n.consume(p), n.exit("autolinkMarker"), n.exit("autolink"), e) : p === null || p === 32 || p === 60 || Ce(p) ? t(p) : (n.consume(p), s);
|
|
2666
2684
|
}
|
|
2667
|
-
function u(
|
|
2668
|
-
return
|
|
2685
|
+
function u(p) {
|
|
2686
|
+
return p === 64 ? (n.consume(p), c) : ol(p) ? (n.consume(p), u) : t(p);
|
|
2669
2687
|
}
|
|
2670
|
-
function c(
|
|
2671
|
-
return en(
|
|
2688
|
+
function c(p) {
|
|
2689
|
+
return en(p) ? f(p) : t(p);
|
|
2672
2690
|
}
|
|
2673
|
-
function p
|
|
2674
|
-
return
|
|
2691
|
+
function f(p) {
|
|
2692
|
+
return p === 46 ? (n.consume(p), r = 0, c) : p === 62 ? (n.exit("autolinkProtocol").type = "autolinkEmail", n.enter("autolinkMarker"), n.consume(p), n.exit("autolinkMarker"), n.exit("autolink"), e) : d(p);
|
|
2675
2693
|
}
|
|
2676
|
-
function d(
|
|
2677
|
-
if ((
|
|
2678
|
-
const w =
|
|
2679
|
-
return n.consume(
|
|
2694
|
+
function d(p) {
|
|
2695
|
+
if ((p === 45 || en(p)) && r++ < 63) {
|
|
2696
|
+
const w = p === 45 ? d : f;
|
|
2697
|
+
return n.consume(p), w;
|
|
2680
2698
|
}
|
|
2681
|
-
return t(
|
|
2699
|
+
return t(p);
|
|
2682
2700
|
}
|
|
2683
2701
|
}
|
|
2684
2702
|
const re = {
|
|
2685
2703
|
partial: !0,
|
|
2686
|
-
tokenize:
|
|
2704
|
+
tokenize: bl
|
|
2687
2705
|
};
|
|
2688
|
-
function
|
|
2706
|
+
function bl(n, e, t) {
|
|
2689
2707
|
return r;
|
|
2690
2708
|
function r(l) {
|
|
2691
2709
|
return D(l) ? H(n, i, "linePrefix")(l) : i(l);
|
|
@@ -2696,13 +2714,13 @@ function xl(n, e, t) {
|
|
|
2696
2714
|
}
|
|
2697
2715
|
const lr = {
|
|
2698
2716
|
continuation: {
|
|
2699
|
-
tokenize:
|
|
2717
|
+
tokenize: Sl
|
|
2700
2718
|
},
|
|
2701
|
-
exit:
|
|
2719
|
+
exit: Cl,
|
|
2702
2720
|
name: "blockQuote",
|
|
2703
|
-
tokenize:
|
|
2721
|
+
tokenize: wl
|
|
2704
2722
|
};
|
|
2705
|
-
function
|
|
2723
|
+
function wl(n, e, t) {
|
|
2706
2724
|
const r = this;
|
|
2707
2725
|
return i;
|
|
2708
2726
|
function i(o) {
|
|
@@ -2718,7 +2736,7 @@ function bl(n, e, t) {
|
|
|
2718
2736
|
return D(o) ? (n.enter("blockQuotePrefixWhitespace"), n.consume(o), n.exit("blockQuotePrefixWhitespace"), n.exit("blockQuotePrefix"), e) : (n.exit("blockQuotePrefix"), e(o));
|
|
2719
2737
|
}
|
|
2720
2738
|
}
|
|
2721
|
-
function
|
|
2739
|
+
function Sl(n, e, t) {
|
|
2722
2740
|
const r = this;
|
|
2723
2741
|
return i;
|
|
2724
2742
|
function i(o) {
|
|
@@ -2728,56 +2746,56 @@ function wl(n, e, t) {
|
|
|
2728
2746
|
return n.attempt(lr, e, t)(o);
|
|
2729
2747
|
}
|
|
2730
2748
|
}
|
|
2731
|
-
function
|
|
2749
|
+
function Cl(n) {
|
|
2732
2750
|
n.exit("blockQuote");
|
|
2733
2751
|
}
|
|
2734
2752
|
const or = {
|
|
2735
2753
|
name: "characterEscape",
|
|
2736
|
-
tokenize:
|
|
2754
|
+
tokenize: Il
|
|
2737
2755
|
};
|
|
2738
|
-
function
|
|
2756
|
+
function Il(n, e, t) {
|
|
2739
2757
|
return r;
|
|
2740
2758
|
function r(l) {
|
|
2741
2759
|
return n.enter("characterEscape"), n.enter("escapeMarker"), n.consume(l), n.exit("escapeMarker"), i;
|
|
2742
2760
|
}
|
|
2743
2761
|
function i(l) {
|
|
2744
|
-
return
|
|
2762
|
+
return ul(l) ? (n.enter("characterEscapeValue"), n.consume(l), n.exit("characterEscapeValue"), n.exit("characterEscape"), e) : t(l);
|
|
2745
2763
|
}
|
|
2746
2764
|
}
|
|
2747
2765
|
const ar = {
|
|
2748
2766
|
name: "characterReference",
|
|
2749
|
-
tokenize:
|
|
2767
|
+
tokenize: El
|
|
2750
2768
|
};
|
|
2751
|
-
function
|
|
2769
|
+
function El(n, e, t) {
|
|
2752
2770
|
const r = this;
|
|
2753
2771
|
let i = 0, l, o;
|
|
2754
2772
|
return a;
|
|
2755
|
-
function a(
|
|
2756
|
-
return n.enter("characterReference"), n.enter("characterReferenceMarker"), n.consume(
|
|
2773
|
+
function a(f) {
|
|
2774
|
+
return n.enter("characterReference"), n.enter("characterReferenceMarker"), n.consume(f), n.exit("characterReferenceMarker"), s;
|
|
2757
2775
|
}
|
|
2758
|
-
function s(
|
|
2759
|
-
return
|
|
2776
|
+
function s(f) {
|
|
2777
|
+
return f === 35 ? (n.enter("characterReferenceMarkerNumeric"), n.consume(f), n.exit("characterReferenceMarkerNumeric"), u) : (n.enter("characterReferenceValue"), l = 31, o = en, c(f));
|
|
2760
2778
|
}
|
|
2761
|
-
function u(
|
|
2762
|
-
return
|
|
2779
|
+
function u(f) {
|
|
2780
|
+
return f === 88 || f === 120 ? (n.enter("characterReferenceMarkerHexadecimal"), n.consume(f), n.exit("characterReferenceMarkerHexadecimal"), n.enter("characterReferenceValue"), l = 6, o = al, c) : (n.enter("characterReferenceValue"), l = 7, o = Ie, c(f));
|
|
2763
2781
|
}
|
|
2764
|
-
function c(
|
|
2765
|
-
if (
|
|
2782
|
+
function c(f) {
|
|
2783
|
+
if (f === 59 && i) {
|
|
2766
2784
|
const d = n.exit("characterReferenceValue");
|
|
2767
|
-
return o === en && !je(r.sliceSerialize(d)) ? t(
|
|
2785
|
+
return o === en && !je(r.sliceSerialize(d)) ? t(f) : (n.enter("characterReferenceMarker"), n.consume(f), n.exit("characterReferenceMarker"), n.exit("characterReference"), e);
|
|
2768
2786
|
}
|
|
2769
|
-
return o(
|
|
2787
|
+
return o(f) && i++ < l ? (n.consume(f), c) : t(f);
|
|
2770
2788
|
}
|
|
2771
2789
|
}
|
|
2772
2790
|
const xt = {
|
|
2773
2791
|
partial: !0,
|
|
2774
|
-
tokenize:
|
|
2792
|
+
tokenize: Al
|
|
2775
2793
|
}, bt = {
|
|
2776
2794
|
concrete: !0,
|
|
2777
2795
|
name: "codeFenced",
|
|
2778
|
-
tokenize:
|
|
2796
|
+
tokenize: Pl
|
|
2779
2797
|
};
|
|
2780
|
-
function
|
|
2798
|
+
function Pl(n, e, t) {
|
|
2781
2799
|
const r = this, i = {
|
|
2782
2800
|
partial: !0,
|
|
2783
2801
|
tokenize: j
|
|
@@ -2788,27 +2806,27 @@ function El(n, e, t) {
|
|
|
2788
2806
|
return u(y);
|
|
2789
2807
|
}
|
|
2790
2808
|
function u(y) {
|
|
2791
|
-
const
|
|
2792
|
-
return l =
|
|
2809
|
+
const R = r.events[r.events.length - 1];
|
|
2810
|
+
return l = R && R[1].type === "linePrefix" ? R[2].sliceSerialize(R[1], !0).length : 0, a = y, n.enter("codeFenced"), n.enter("codeFencedFence"), n.enter("codeFencedFenceSequence"), c(y);
|
|
2793
2811
|
}
|
|
2794
2812
|
function c(y) {
|
|
2795
|
-
return y === a ? (o++, n.consume(y), c) : o < 3 ? t(y) : (n.exit("codeFencedFenceSequence"), D(y) ? H(n,
|
|
2813
|
+
return y === a ? (o++, n.consume(y), c) : o < 3 ? t(y) : (n.exit("codeFencedFenceSequence"), D(y) ? H(n, f, "whitespace")(y) : f(y));
|
|
2796
2814
|
}
|
|
2797
|
-
function
|
|
2815
|
+
function f(y) {
|
|
2798
2816
|
return y === null || z(y) ? (n.exit("codeFencedFence"), r.interrupt ? e(y) : n.check(xt, b, B)(y)) : (n.enter("codeFencedFenceInfo"), n.enter("chunkString", {
|
|
2799
2817
|
contentType: "string"
|
|
2800
2818
|
}), d(y));
|
|
2801
2819
|
}
|
|
2802
2820
|
function d(y) {
|
|
2803
|
-
return y === null || z(y) ? (n.exit("chunkString"), n.exit("codeFencedFenceInfo"),
|
|
2821
|
+
return y === null || z(y) ? (n.exit("chunkString"), n.exit("codeFencedFenceInfo"), f(y)) : D(y) ? (n.exit("chunkString"), n.exit("codeFencedFenceInfo"), H(n, p, "whitespace")(y)) : y === 96 && y === a ? t(y) : (n.consume(y), d);
|
|
2804
2822
|
}
|
|
2805
|
-
function
|
|
2806
|
-
return y === null || z(y) ?
|
|
2823
|
+
function p(y) {
|
|
2824
|
+
return y === null || z(y) ? f(y) : (n.enter("codeFencedFenceMeta"), n.enter("chunkString", {
|
|
2807
2825
|
contentType: "string"
|
|
2808
2826
|
}), w(y));
|
|
2809
2827
|
}
|
|
2810
2828
|
function w(y) {
|
|
2811
|
-
return y === null || z(y) ? (n.exit("chunkString"), n.exit("codeFencedFenceMeta"),
|
|
2829
|
+
return y === null || z(y) ? (n.exit("chunkString"), n.exit("codeFencedFenceMeta"), f(y)) : y === 96 && y === a ? t(y) : (n.consume(y), w);
|
|
2812
2830
|
}
|
|
2813
2831
|
function b(y) {
|
|
2814
2832
|
return n.attempt(i, B, L)(y);
|
|
@@ -2828,7 +2846,7 @@ function El(n, e, t) {
|
|
|
2828
2846
|
function B(y) {
|
|
2829
2847
|
return n.exit("codeFenced"), e(y);
|
|
2830
2848
|
}
|
|
2831
|
-
function j(y,
|
|
2849
|
+
function j(y, R, V) {
|
|
2832
2850
|
let O = 0;
|
|
2833
2851
|
return F;
|
|
2834
2852
|
function F(_) {
|
|
@@ -2844,11 +2862,11 @@ function El(n, e, t) {
|
|
|
2844
2862
|
return _ === a ? (O++, y.consume(_), P) : O >= o ? (y.exit("codeFencedFenceSequence"), D(_) ? H(y, I, "whitespace")(_) : I(_)) : V(_);
|
|
2845
2863
|
}
|
|
2846
2864
|
function I(_) {
|
|
2847
|
-
return _ === null || z(_) ? (y.exit("codeFencedFence"),
|
|
2865
|
+
return _ === null || z(_) ? (y.exit("codeFencedFence"), R(_)) : V(_);
|
|
2848
2866
|
}
|
|
2849
2867
|
}
|
|
2850
2868
|
}
|
|
2851
|
-
function
|
|
2869
|
+
function Al(n, e, t) {
|
|
2852
2870
|
const r = this;
|
|
2853
2871
|
return i;
|
|
2854
2872
|
function i(o) {
|
|
@@ -2860,12 +2878,12 @@ function Pl(n, e, t) {
|
|
|
2860
2878
|
}
|
|
2861
2879
|
const ue = {
|
|
2862
2880
|
name: "codeIndented",
|
|
2863
|
-
tokenize: Tl
|
|
2864
|
-
}, Al = {
|
|
2865
|
-
partial: !0,
|
|
2866
2881
|
tokenize: Ll
|
|
2882
|
+
}, Tl = {
|
|
2883
|
+
partial: !0,
|
|
2884
|
+
tokenize: zl
|
|
2867
2885
|
};
|
|
2868
|
-
function
|
|
2886
|
+
function Ll(n, e, t) {
|
|
2869
2887
|
const r = this;
|
|
2870
2888
|
return i;
|
|
2871
2889
|
function i(u) {
|
|
@@ -2876,7 +2894,7 @@ function Tl(n, e, t) {
|
|
|
2876
2894
|
return c && c[1].type === "linePrefix" && c[2].sliceSerialize(c[1], !0).length >= 4 ? o(u) : t(u);
|
|
2877
2895
|
}
|
|
2878
2896
|
function o(u) {
|
|
2879
|
-
return u === null ? s(u) : z(u) ? n.attempt(
|
|
2897
|
+
return u === null ? s(u) : z(u) ? n.attempt(Tl, o, s)(u) : (n.enter("codeFlowValue"), a(u));
|
|
2880
2898
|
}
|
|
2881
2899
|
function a(u) {
|
|
2882
2900
|
return u === null || z(u) ? (n.exit("codeFlowValue"), o(u)) : (n.consume(u), a);
|
|
@@ -2885,7 +2903,7 @@ function Tl(n, e, t) {
|
|
|
2885
2903
|
return n.exit("codeIndented"), e(u);
|
|
2886
2904
|
}
|
|
2887
2905
|
}
|
|
2888
|
-
function
|
|
2906
|
+
function zl(n, e, t) {
|
|
2889
2907
|
const r = this;
|
|
2890
2908
|
return i;
|
|
2891
2909
|
function i(o) {
|
|
@@ -2896,13 +2914,13 @@ function Ll(n, e, t) {
|
|
|
2896
2914
|
return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? e(o) : z(o) ? i(o) : t(o);
|
|
2897
2915
|
}
|
|
2898
2916
|
}
|
|
2899
|
-
const
|
|
2917
|
+
const _l = {
|
|
2900
2918
|
name: "codeText",
|
|
2901
|
-
previous:
|
|
2902
|
-
resolve:
|
|
2903
|
-
tokenize:
|
|
2919
|
+
previous: Nl,
|
|
2920
|
+
resolve: Ml,
|
|
2921
|
+
tokenize: vl
|
|
2904
2922
|
};
|
|
2905
|
-
function
|
|
2923
|
+
function Ml(n) {
|
|
2906
2924
|
let e = n.length - 4, t = 3, r, i;
|
|
2907
2925
|
if ((n[t][1].type === "lineEnding" || n[t][1].type === "space") && (n[e][1].type === "lineEnding" || n[e][1].type === "space")) {
|
|
2908
2926
|
for (r = t; ++r < e; )
|
|
@@ -2915,26 +2933,26 @@ function _l(n) {
|
|
|
2915
2933
|
i === void 0 ? r !== e && n[r][1].type !== "lineEnding" && (i = r) : (r === e || n[r][1].type === "lineEnding") && (n[i][1].type = "codeTextData", r !== i + 2 && (n[i][1].end = n[r - 1][1].end, n.splice(i + 2, r - i - 2), e -= r - i - 2, r = i + 2), i = void 0);
|
|
2916
2934
|
return n;
|
|
2917
2935
|
}
|
|
2918
|
-
function
|
|
2936
|
+
function Nl(n) {
|
|
2919
2937
|
return n !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
|
|
2920
2938
|
}
|
|
2921
|
-
function
|
|
2939
|
+
function vl(n, e, t) {
|
|
2922
2940
|
let r = 0, i, l;
|
|
2923
2941
|
return o;
|
|
2924
|
-
function o(
|
|
2925
|
-
return n.enter("codeText"), n.enter("codeTextSequence"), a(
|
|
2942
|
+
function o(f) {
|
|
2943
|
+
return n.enter("codeText"), n.enter("codeTextSequence"), a(f);
|
|
2926
2944
|
}
|
|
2927
|
-
function a(
|
|
2928
|
-
return
|
|
2945
|
+
function a(f) {
|
|
2946
|
+
return f === 96 ? (n.consume(f), r++, a) : (n.exit("codeTextSequence"), s(f));
|
|
2929
2947
|
}
|
|
2930
|
-
function s(
|
|
2931
|
-
return
|
|
2948
|
+
function s(f) {
|
|
2949
|
+
return f === null ? t(f) : f === 32 ? (n.enter("space"), n.consume(f), n.exit("space"), s) : f === 96 ? (l = n.enter("codeTextSequence"), i = 0, c(f)) : z(f) ? (n.enter("lineEnding"), n.consume(f), n.exit("lineEnding"), s) : (n.enter("codeTextData"), u(f));
|
|
2932
2950
|
}
|
|
2933
|
-
function u(
|
|
2934
|
-
return
|
|
2951
|
+
function u(f) {
|
|
2952
|
+
return f === null || f === 32 || f === 96 || z(f) ? (n.exit("codeTextData"), s(f)) : (n.consume(f), u);
|
|
2935
2953
|
}
|
|
2936
|
-
function c(
|
|
2937
|
-
return
|
|
2954
|
+
function c(f) {
|
|
2955
|
+
return f === 96 ? (n.consume(f), i++, c) : i === r ? (n.exit("codeTextSequence"), n.exit("codeText"), e(f)) : (l.type = "codeTextData", u(f));
|
|
2938
2956
|
}
|
|
2939
2957
|
}
|
|
2940
2958
|
class Rl {
|
|
@@ -3120,7 +3138,7 @@ function ur(n) {
|
|
|
3120
3138
|
for (; ++l < s.length && s[l][1].type !== "content"; )
|
|
3121
3139
|
s[l][1].type === "chunkText" && (s[l][1]._isInFirstContentOfListItem = !0, l++);
|
|
3122
3140
|
if (r[0] === "enter")
|
|
3123
|
-
r[1].contentType && (Object.assign(e,
|
|
3141
|
+
r[1].contentType && (Object.assign(e, Dl(c, t)), t = e[t], u = !0);
|
|
3124
3142
|
else if (r[1]._container) {
|
|
3125
3143
|
for (l = t, i = void 0; l--; )
|
|
3126
3144
|
if (o = c.get(l), o[1].type === "lineEnding" || o[1].type === "lineEndingBlank")
|
|
@@ -3133,24 +3151,24 @@ function ur(n) {
|
|
|
3133
3151
|
}
|
|
3134
3152
|
return cn(n, 0, Number.POSITIVE_INFINITY, c.slice(0)), !u;
|
|
3135
3153
|
}
|
|
3136
|
-
function
|
|
3154
|
+
function Dl(n, e) {
|
|
3137
3155
|
const t = n.get(e)[1], r = n.get(e)[2];
|
|
3138
3156
|
let i = e - 1;
|
|
3139
3157
|
const l = [];
|
|
3140
3158
|
let o = t._tokenizer;
|
|
3141
3159
|
o || (o = r.parser[t.contentType](t.start), t._contentTypeTextTrailing && (o._contentTypeTextTrailing = !0));
|
|
3142
3160
|
const a = o.events, s = [], u = {};
|
|
3143
|
-
let c,
|
|
3161
|
+
let c, f, d = -1, p = t, w = 0, b = 0;
|
|
3144
3162
|
const L = [b];
|
|
3145
|
-
for (;
|
|
3146
|
-
for (; n.get(++i)[1] !==
|
|
3163
|
+
for (; p; ) {
|
|
3164
|
+
for (; n.get(++i)[1] !== p; )
|
|
3147
3165
|
;
|
|
3148
|
-
l.push(i),
|
|
3166
|
+
l.push(i), p._tokenizer || (c = r.sliceStream(p), p.next || c.push(null), f && o.defineSkip(p.start), p._isInFirstContentOfListItem && (o._gfmTasklistFirstContentOfListItem = !0), o.write(c), p._isInFirstContentOfListItem && (o._gfmTasklistFirstContentOfListItem = void 0)), f = p, p = p.next;
|
|
3149
3167
|
}
|
|
3150
|
-
for (
|
|
3168
|
+
for (p = t; ++d < a.length; )
|
|
3151
3169
|
// Find a void token that includes a break.
|
|
3152
|
-
a[d][0] === "exit" && a[d - 1][0] === "enter" && a[d][1].type === a[d - 1][1].type && a[d][1].start.line !== a[d][1].end.line && (b = d + 1, L.push(b),
|
|
3153
|
-
for (o.events = [],
|
|
3170
|
+
a[d][0] === "exit" && a[d - 1][0] === "enter" && a[d][1].type === a[d - 1][1].type && a[d][1].start.line !== a[d][1].end.line && (b = d + 1, L.push(b), p._tokenizer = void 0, p.previous = void 0, p = p.next);
|
|
3171
|
+
for (o.events = [], p ? (p._tokenizer = void 0, p.previous = void 0) : L.pop(), d = L.length; d--; ) {
|
|
3154
3172
|
const x = a.slice(L[d], L[d + 1]), T = l.pop();
|
|
3155
3173
|
s.push([T, T + x.length - 1]), n.splice(T, 2, x);
|
|
3156
3174
|
}
|
|
@@ -3158,17 +3176,17 @@ function vl(n, e) {
|
|
|
3158
3176
|
u[w + s[d][0]] = w + s[d][1], w += s[d][1] - s[d][0] - 1;
|
|
3159
3177
|
return u;
|
|
3160
3178
|
}
|
|
3161
|
-
const
|
|
3162
|
-
resolve:
|
|
3163
|
-
tokenize: Bl
|
|
3164
|
-
}, Ol = {
|
|
3165
|
-
partial: !0,
|
|
3179
|
+
const Ol = {
|
|
3180
|
+
resolve: Bl,
|
|
3166
3181
|
tokenize: Ul
|
|
3182
|
+
}, Fl = {
|
|
3183
|
+
partial: !0,
|
|
3184
|
+
tokenize: jl
|
|
3167
3185
|
};
|
|
3168
|
-
function
|
|
3186
|
+
function Bl(n) {
|
|
3169
3187
|
return ur(n), n;
|
|
3170
3188
|
}
|
|
3171
|
-
function
|
|
3189
|
+
function Ul(n, e) {
|
|
3172
3190
|
let t;
|
|
3173
3191
|
return r;
|
|
3174
3192
|
function r(a) {
|
|
@@ -3177,7 +3195,7 @@ function Bl(n, e) {
|
|
|
3177
3195
|
}), i(a);
|
|
3178
3196
|
}
|
|
3179
3197
|
function i(a) {
|
|
3180
|
-
return a === null ? l(a) : z(a) ? n.check(
|
|
3198
|
+
return a === null ? l(a) : z(a) ? n.check(Fl, o, l)(a) : (n.consume(a), i);
|
|
3181
3199
|
}
|
|
3182
3200
|
function l(a) {
|
|
3183
3201
|
return n.exit("chunkContent"), n.exit("content"), e(a);
|
|
@@ -3189,7 +3207,7 @@ function Bl(n, e) {
|
|
|
3189
3207
|
}), t = t.next, i;
|
|
3190
3208
|
}
|
|
3191
3209
|
}
|
|
3192
|
-
function
|
|
3210
|
+
function jl(n, e, t) {
|
|
3193
3211
|
const r = this;
|
|
3194
3212
|
return i;
|
|
3195
3213
|
function i(o) {
|
|
@@ -3205,8 +3223,8 @@ function Ul(n, e, t) {
|
|
|
3205
3223
|
function sr(n, e, t, r, i, l, o, a, s) {
|
|
3206
3224
|
const u = s || Number.POSITIVE_INFINITY;
|
|
3207
3225
|
let c = 0;
|
|
3208
|
-
return
|
|
3209
|
-
function
|
|
3226
|
+
return f;
|
|
3227
|
+
function f(x) {
|
|
3210
3228
|
return x === 60 ? (n.enter(r), n.enter(i), n.enter(l), n.consume(x), n.exit(l), d) : x === null || x === 32 || x === 41 || Ce(x) ? t(x) : (n.enter(r), n.enter(o), n.enter(a), n.enter("chunkString", {
|
|
3211
3229
|
contentType: "string"
|
|
3212
3230
|
}), b(x));
|
|
@@ -3214,13 +3232,13 @@ function sr(n, e, t, r, i, l, o, a, s) {
|
|
|
3214
3232
|
function d(x) {
|
|
3215
3233
|
return x === 62 ? (n.enter(l), n.consume(x), n.exit(l), n.exit(i), n.exit(r), e) : (n.enter(a), n.enter("chunkString", {
|
|
3216
3234
|
contentType: "string"
|
|
3217
|
-
}),
|
|
3235
|
+
}), p(x));
|
|
3218
3236
|
}
|
|
3219
|
-
function
|
|
3220
|
-
return x === 62 ? (n.exit("chunkString"), n.exit(a), d(x)) : x === null || x === 60 || z(x) ? t(x) : (n.consume(x), x === 92 ? w :
|
|
3237
|
+
function p(x) {
|
|
3238
|
+
return x === 62 ? (n.exit("chunkString"), n.exit(a), d(x)) : x === null || x === 60 || z(x) ? t(x) : (n.consume(x), x === 92 ? w : p);
|
|
3221
3239
|
}
|
|
3222
3240
|
function w(x) {
|
|
3223
|
-
return x === 60 || x === 62 || x === 92 ? (n.consume(x),
|
|
3241
|
+
return x === 60 || x === 62 || x === 92 ? (n.consume(x), p) : p(x);
|
|
3224
3242
|
}
|
|
3225
3243
|
function b(x) {
|
|
3226
3244
|
return !c && (x === null || x === 41 || Q(x)) ? (n.exit("chunkString"), n.exit(a), n.exit(o), n.exit(r), e(x)) : c < u && x === 40 ? (n.consume(x), c++, b) : x === 41 ? (n.consume(x), c--, b) : x === null || x === 32 || x === 40 || Ce(x) ? t(x) : (n.consume(x), x === 92 ? L : b);
|
|
@@ -3233,24 +3251,24 @@ function cr(n, e, t, r, i, l) {
|
|
|
3233
3251
|
const o = this;
|
|
3234
3252
|
let a = 0, s;
|
|
3235
3253
|
return u;
|
|
3236
|
-
function u(
|
|
3237
|
-
return n.enter(r), n.enter(i), n.consume(
|
|
3254
|
+
function u(p) {
|
|
3255
|
+
return n.enter(r), n.enter(i), n.consume(p), n.exit(i), n.enter(l), c;
|
|
3238
3256
|
}
|
|
3239
|
-
function c(
|
|
3240
|
-
return a > 999 ||
|
|
3257
|
+
function c(p) {
|
|
3258
|
+
return a > 999 || p === null || p === 91 || p === 93 && !s || // To do: remove in the future once we’ve switched from
|
|
3241
3259
|
// `micromark-extension-footnote` to `micromark-extension-gfm-footnote`,
|
|
3242
3260
|
// which doesn’t need this.
|
|
3243
3261
|
// Hidden footnotes hook.
|
|
3244
3262
|
/* c8 ignore next 3 */
|
|
3245
|
-
|
|
3263
|
+
p === 94 && !a && "_hiddenFootnoteSupport" in o.parser.constructs ? t(p) : p === 93 ? (n.exit(l), n.enter(i), n.consume(p), n.exit(i), n.exit(r), e) : z(p) ? (n.enter("lineEnding"), n.consume(p), n.exit("lineEnding"), c) : (n.enter("chunkString", {
|
|
3246
3264
|
contentType: "string"
|
|
3247
|
-
}), p
|
|
3265
|
+
}), f(p));
|
|
3248
3266
|
}
|
|
3249
|
-
function p
|
|
3250
|
-
return
|
|
3267
|
+
function f(p) {
|
|
3268
|
+
return p === null || p === 91 || p === 93 || z(p) || a++ > 999 ? (n.exit("chunkString"), c(p)) : (n.consume(p), s || (s = !D(p)), p === 92 ? d : f);
|
|
3251
3269
|
}
|
|
3252
|
-
function d(
|
|
3253
|
-
return
|
|
3270
|
+
function d(p) {
|
|
3271
|
+
return p === 91 || p === 92 || p === 93 ? (n.consume(p), a++, f) : f(p);
|
|
3254
3272
|
}
|
|
3255
3273
|
}
|
|
3256
3274
|
function fr(n, e, t, r, i, l) {
|
|
@@ -3268,9 +3286,9 @@ function fr(n, e, t, r, i, l) {
|
|
|
3268
3286
|
}), c(d));
|
|
3269
3287
|
}
|
|
3270
3288
|
function c(d) {
|
|
3271
|
-
return d === o || d === null || z(d) ? (n.exit("chunkString"), u(d)) : (n.consume(d), d === 92 ?
|
|
3289
|
+
return d === o || d === null || z(d) ? (n.exit("chunkString"), u(d)) : (n.consume(d), d === 92 ? f : c);
|
|
3272
3290
|
}
|
|
3273
|
-
function
|
|
3291
|
+
function f(d) {
|
|
3274
3292
|
return d === o || d === 92 ? (n.consume(d), c) : c(d);
|
|
3275
3293
|
}
|
|
3276
3294
|
}
|
|
@@ -3281,21 +3299,21 @@ function Vn(n, e) {
|
|
|
3281
3299
|
return z(i) ? (n.enter("lineEnding"), n.consume(i), n.exit("lineEnding"), t = !0, r) : D(i) ? H(n, r, t ? "linePrefix" : "lineSuffix")(i) : e(i);
|
|
3282
3300
|
}
|
|
3283
3301
|
}
|
|
3284
|
-
const
|
|
3302
|
+
const $l = {
|
|
3285
3303
|
name: "definition",
|
|
3286
|
-
tokenize: Hl
|
|
3287
|
-
}, $l = {
|
|
3288
|
-
partial: !0,
|
|
3289
3304
|
tokenize: Vl
|
|
3305
|
+
}, Hl = {
|
|
3306
|
+
partial: !0,
|
|
3307
|
+
tokenize: ql
|
|
3290
3308
|
};
|
|
3291
|
-
function
|
|
3309
|
+
function Vl(n, e, t) {
|
|
3292
3310
|
const r = this;
|
|
3293
3311
|
let i;
|
|
3294
3312
|
return l;
|
|
3295
|
-
function l(
|
|
3296
|
-
return n.enter("definition"), o(
|
|
3313
|
+
function l(p) {
|
|
3314
|
+
return n.enter("definition"), o(p);
|
|
3297
3315
|
}
|
|
3298
|
-
function o(
|
|
3316
|
+
function o(p) {
|
|
3299
3317
|
return cr.call(
|
|
3300
3318
|
r,
|
|
3301
3319
|
n,
|
|
@@ -3305,15 +3323,15 @@ function Hl(n, e, t) {
|
|
|
3305
3323
|
"definitionLabel",
|
|
3306
3324
|
"definitionLabelMarker",
|
|
3307
3325
|
"definitionLabelString"
|
|
3308
|
-
)(
|
|
3326
|
+
)(p);
|
|
3309
3327
|
}
|
|
3310
|
-
function a(
|
|
3311
|
-
return i = Ln(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)),
|
|
3328
|
+
function a(p) {
|
|
3329
|
+
return i = Ln(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), p === 58 ? (n.enter("definitionMarker"), n.consume(p), n.exit("definitionMarker"), s) : t(p);
|
|
3312
3330
|
}
|
|
3313
|
-
function s(
|
|
3314
|
-
return Q(
|
|
3331
|
+
function s(p) {
|
|
3332
|
+
return Q(p) ? Vn(n, u)(p) : u(p);
|
|
3315
3333
|
}
|
|
3316
|
-
function u(
|
|
3334
|
+
function u(p) {
|
|
3317
3335
|
return sr(
|
|
3318
3336
|
n,
|
|
3319
3337
|
c,
|
|
@@ -3324,19 +3342,19 @@ function Hl(n, e, t) {
|
|
|
3324
3342
|
"definitionDestinationLiteralMarker",
|
|
3325
3343
|
"definitionDestinationRaw",
|
|
3326
3344
|
"definitionDestinationString"
|
|
3327
|
-
)(
|
|
3345
|
+
)(p);
|
|
3328
3346
|
}
|
|
3329
|
-
function c(
|
|
3330
|
-
return n.attempt(
|
|
3347
|
+
function c(p) {
|
|
3348
|
+
return n.attempt(Hl, f, f)(p);
|
|
3331
3349
|
}
|
|
3332
|
-
function p
|
|
3333
|
-
return D(
|
|
3350
|
+
function f(p) {
|
|
3351
|
+
return D(p) ? H(n, d, "whitespace")(p) : d(p);
|
|
3334
3352
|
}
|
|
3335
|
-
function d(
|
|
3336
|
-
return
|
|
3353
|
+
function d(p) {
|
|
3354
|
+
return p === null || z(p) ? (n.exit("definition"), r.parser.defined.push(i), e(p)) : t(p);
|
|
3337
3355
|
}
|
|
3338
3356
|
}
|
|
3339
|
-
function
|
|
3357
|
+
function ql(n, e, t) {
|
|
3340
3358
|
return r;
|
|
3341
3359
|
function r(a) {
|
|
3342
3360
|
return Q(a) ? Vn(n, i)(a) : t(a);
|
|
@@ -3351,11 +3369,11 @@ function Vl(n, e, t) {
|
|
|
3351
3369
|
return a === null || z(a) ? e(a) : t(a);
|
|
3352
3370
|
}
|
|
3353
3371
|
}
|
|
3354
|
-
const
|
|
3372
|
+
const Wl = {
|
|
3355
3373
|
name: "hardBreakEscape",
|
|
3356
|
-
tokenize:
|
|
3374
|
+
tokenize: Xl
|
|
3357
3375
|
};
|
|
3358
|
-
function
|
|
3376
|
+
function Xl(n, e, t) {
|
|
3359
3377
|
return r;
|
|
3360
3378
|
function r(l) {
|
|
3361
3379
|
return n.enter("hardBreakEscape"), n.consume(l), i;
|
|
@@ -3364,12 +3382,12 @@ function Wl(n, e, t) {
|
|
|
3364
3382
|
return z(l) ? (n.exit("hardBreakEscape"), e(l)) : t(l);
|
|
3365
3383
|
}
|
|
3366
3384
|
}
|
|
3367
|
-
const
|
|
3385
|
+
const Gl = {
|
|
3368
3386
|
name: "headingAtx",
|
|
3369
|
-
resolve:
|
|
3370
|
-
tokenize:
|
|
3387
|
+
resolve: Yl,
|
|
3388
|
+
tokenize: Kl
|
|
3371
3389
|
};
|
|
3372
|
-
function
|
|
3390
|
+
function Yl(n, e) {
|
|
3373
3391
|
let t = n.length - 2, r = 3, i, l;
|
|
3374
3392
|
return n[r][1].type === "whitespace" && (r += 2), t - 2 > r && n[t][1].type === "whitespace" && (t -= 2), n[t][1].type === "atxHeadingSequence" && (r === t - 1 || t - 4 > r && n[t - 2][1].type === "whitespace") && (t -= r + 1 === t ? 2 : 4), t > r && (i = {
|
|
3375
3393
|
type: "atxHeadingText",
|
|
@@ -3382,7 +3400,7 @@ function Gl(n, e) {
|
|
|
3382
3400
|
contentType: "text"
|
|
3383
3401
|
}, cn(n, r, t - r + 1, [["enter", i, e], ["enter", l, e], ["exit", l, e], ["exit", i, e]])), n;
|
|
3384
3402
|
}
|
|
3385
|
-
function
|
|
3403
|
+
function Kl(n, e, t) {
|
|
3386
3404
|
let r = 0;
|
|
3387
3405
|
return i;
|
|
3388
3406
|
function i(c) {
|
|
@@ -3404,7 +3422,7 @@ function Yl(n, e, t) {
|
|
|
3404
3422
|
return c === null || c === 35 || Q(c) ? (n.exit("atxHeadingText"), a(c)) : (n.consume(c), u);
|
|
3405
3423
|
}
|
|
3406
3424
|
}
|
|
3407
|
-
const
|
|
3425
|
+
const Ql = [
|
|
3408
3426
|
"address",
|
|
3409
3427
|
"article",
|
|
3410
3428
|
"aside",
|
|
@@ -3467,25 +3485,25 @@ const Kl = [
|
|
|
3467
3485
|
"tr",
|
|
3468
3486
|
"track",
|
|
3469
3487
|
"ul"
|
|
3470
|
-
], wt = ["pre", "script", "style", "textarea"],
|
|
3488
|
+
], wt = ["pre", "script", "style", "textarea"], Jl = {
|
|
3471
3489
|
concrete: !0,
|
|
3472
3490
|
name: "htmlFlow",
|
|
3473
|
-
resolveTo:
|
|
3474
|
-
tokenize:
|
|
3475
|
-
}, Jl = {
|
|
3476
|
-
partial: !0,
|
|
3477
|
-
tokenize: ro
|
|
3491
|
+
resolveTo: eo,
|
|
3492
|
+
tokenize: to
|
|
3478
3493
|
}, Zl = {
|
|
3479
3494
|
partial: !0,
|
|
3480
|
-
tokenize:
|
|
3495
|
+
tokenize: io
|
|
3496
|
+
}, no = {
|
|
3497
|
+
partial: !0,
|
|
3498
|
+
tokenize: ro
|
|
3481
3499
|
};
|
|
3482
|
-
function
|
|
3500
|
+
function eo(n) {
|
|
3483
3501
|
let e = n.length;
|
|
3484
3502
|
for (; e-- && !(n[e][0] === "enter" && n[e][1].type === "htmlFlow"); )
|
|
3485
3503
|
;
|
|
3486
3504
|
return e > 1 && n[e - 2][1].type === "linePrefix" && (n[e][1].start = n[e - 2][1].start, n[e + 1][1].start = n[e - 2][1].start, n.splice(e - 2, 2)), n;
|
|
3487
3505
|
}
|
|
3488
|
-
function
|
|
3506
|
+
function to(n, e, t) {
|
|
3489
3507
|
const r = this;
|
|
3490
3508
|
let i, l, o, a, s;
|
|
3491
3509
|
return u;
|
|
@@ -3493,15 +3511,15 @@ function eo(n, e, t) {
|
|
|
3493
3511
|
return c(m);
|
|
3494
3512
|
}
|
|
3495
3513
|
function c(m) {
|
|
3496
|
-
return n.enter("htmlFlow"), n.enter("htmlFlowData"), n.consume(m),
|
|
3514
|
+
return n.enter("htmlFlow"), n.enter("htmlFlowData"), n.consume(m), f;
|
|
3497
3515
|
}
|
|
3498
|
-
function
|
|
3516
|
+
function f(m) {
|
|
3499
3517
|
return m === 33 ? (n.consume(m), d) : m === 47 ? (n.consume(m), l = !0, b) : m === 63 ? (n.consume(m), i = 3, r.interrupt ? e : h) : sn(m) ? (n.consume(m), o = String.fromCharCode(m), L) : t(m);
|
|
3500
3518
|
}
|
|
3501
3519
|
function d(m) {
|
|
3502
|
-
return m === 45 ? (n.consume(m), i = 2,
|
|
3520
|
+
return m === 45 ? (n.consume(m), i = 2, p) : m === 91 ? (n.consume(m), i = 5, a = 0, w) : sn(m) ? (n.consume(m), i = 4, r.interrupt ? e : h) : t(m);
|
|
3503
3521
|
}
|
|
3504
|
-
function
|
|
3522
|
+
function p(m) {
|
|
3505
3523
|
return m === 45 ? (n.consume(m), r.interrupt ? e : h) : t(m);
|
|
3506
3524
|
}
|
|
3507
3525
|
function w(m) {
|
|
@@ -3514,7 +3532,7 @@ function eo(n, e, t) {
|
|
|
3514
3532
|
function L(m) {
|
|
3515
3533
|
if (m === null || m === 47 || m === 62 || Q(m)) {
|
|
3516
3534
|
const on = m === 47, kn = o.toLowerCase();
|
|
3517
|
-
return !on && !l && wt.includes(kn) ? (i = 1, r.interrupt ? e(m) : E(m)) :
|
|
3535
|
+
return !on && !l && wt.includes(kn) ? (i = 1, r.interrupt ? e(m) : E(m)) : Ql.includes(o.toLowerCase()) ? (i = 6, on ? (n.consume(m), x) : r.interrupt ? e(m) : E(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(m) : l ? T(m) : C(m));
|
|
3518
3536
|
}
|
|
3519
3537
|
return m === 45 || en(m) ? (n.consume(m), o += String.fromCharCode(m), L) : t(m);
|
|
3520
3538
|
}
|
|
@@ -3534,10 +3552,10 @@ function eo(n, e, t) {
|
|
|
3534
3552
|
return m === 61 ? (n.consume(m), y) : D(m) ? (n.consume(m), j) : C(m);
|
|
3535
3553
|
}
|
|
3536
3554
|
function y(m) {
|
|
3537
|
-
return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? t(m) : m === 34 || m === 39 ? (n.consume(m), s = m,
|
|
3555
|
+
return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? t(m) : m === 34 || m === 39 ? (n.consume(m), s = m, R) : D(m) ? (n.consume(m), y) : V(m);
|
|
3538
3556
|
}
|
|
3539
|
-
function
|
|
3540
|
-
return m === s ? (n.consume(m), s = null, O) : m === null || z(m) ? t(m) : (n.consume(m),
|
|
3557
|
+
function R(m) {
|
|
3558
|
+
return m === s ? (n.consume(m), s = null, O) : m === null || z(m) ? t(m) : (n.consume(m), R);
|
|
3541
3559
|
}
|
|
3542
3560
|
function V(m) {
|
|
3543
3561
|
return m === null || m === 34 || m === 39 || m === 47 || m === 60 || m === 61 || m === 62 || m === 96 || Q(m) ? j(m) : (n.consume(m), V);
|
|
@@ -3552,10 +3570,10 @@ function eo(n, e, t) {
|
|
|
3552
3570
|
return m === null || z(m) ? E(m) : D(m) ? (n.consume(m), A) : t(m);
|
|
3553
3571
|
}
|
|
3554
3572
|
function E(m) {
|
|
3555
|
-
return m === 45 && i === 2 ? (n.consume(m), W) : m === 60 && i === 1 ? (n.consume(m), X) : m === 62 && i === 4 ? (n.consume(m), ln) : m === 63 && i === 3 ? (n.consume(m), h) : m === 93 && i === 5 ? (n.consume(m), fn) : z(m) && (i === 6 || i === 7) ? (n.exit("htmlFlowData"), n.check(
|
|
3573
|
+
return m === 45 && i === 2 ? (n.consume(m), W) : m === 60 && i === 1 ? (n.consume(m), X) : m === 62 && i === 4 ? (n.consume(m), ln) : m === 63 && i === 3 ? (n.consume(m), h) : m === 93 && i === 5 ? (n.consume(m), fn) : z(m) && (i === 6 || i === 7) ? (n.exit("htmlFlowData"), n.check(Zl, pn, P)(m)) : m === null || z(m) ? (n.exit("htmlFlowData"), P(m)) : (n.consume(m), E);
|
|
3556
3574
|
}
|
|
3557
3575
|
function P(m) {
|
|
3558
|
-
return n.check(
|
|
3576
|
+
return n.check(no, I, pn)(m);
|
|
3559
3577
|
}
|
|
3560
3578
|
function I(m) {
|
|
3561
3579
|
return n.enter("lineEnding"), n.consume(m), n.exit("lineEnding"), _;
|
|
@@ -3589,7 +3607,7 @@ function eo(n, e, t) {
|
|
|
3589
3607
|
return n.exit("htmlFlow"), e(m);
|
|
3590
3608
|
}
|
|
3591
3609
|
}
|
|
3592
|
-
function
|
|
3610
|
+
function ro(n, e, t) {
|
|
3593
3611
|
const r = this;
|
|
3594
3612
|
return i;
|
|
3595
3613
|
function i(o) {
|
|
@@ -3599,17 +3617,17 @@ function to(n, e, t) {
|
|
|
3599
3617
|
return r.parser.lazy[r.now().line] ? t(o) : e(o);
|
|
3600
3618
|
}
|
|
3601
3619
|
}
|
|
3602
|
-
function
|
|
3620
|
+
function io(n, e, t) {
|
|
3603
3621
|
return r;
|
|
3604
3622
|
function r(i) {
|
|
3605
3623
|
return n.enter("lineEnding"), n.consume(i), n.exit("lineEnding"), n.attempt(re, e, t);
|
|
3606
3624
|
}
|
|
3607
3625
|
}
|
|
3608
|
-
const
|
|
3626
|
+
const lo = {
|
|
3609
3627
|
name: "htmlText",
|
|
3610
|
-
tokenize:
|
|
3628
|
+
tokenize: oo
|
|
3611
3629
|
};
|
|
3612
|
-
function
|
|
3630
|
+
function oo(n, e, t) {
|
|
3613
3631
|
const r = this;
|
|
3614
3632
|
let i, l, o;
|
|
3615
3633
|
return a;
|
|
@@ -3623,16 +3641,16 @@ function lo(n, e, t) {
|
|
|
3623
3641
|
return h === 45 ? (n.consume(h), c) : h === 91 ? (n.consume(h), l = 0, w) : sn(h) ? (n.consume(h), T) : t(h);
|
|
3624
3642
|
}
|
|
3625
3643
|
function c(h) {
|
|
3626
|
-
return h === 45 ? (n.consume(h),
|
|
3644
|
+
return h === 45 ? (n.consume(h), p) : t(h);
|
|
3627
3645
|
}
|
|
3628
|
-
function
|
|
3629
|
-
return h === null ? t(h) : h === 45 ? (n.consume(h), d) : z(h) ? (o =
|
|
3646
|
+
function f(h) {
|
|
3647
|
+
return h === null ? t(h) : h === 45 ? (n.consume(h), d) : z(h) ? (o = f, X(h)) : (n.consume(h), f);
|
|
3630
3648
|
}
|
|
3631
3649
|
function d(h) {
|
|
3632
|
-
return h === 45 ? (n.consume(h),
|
|
3650
|
+
return h === 45 ? (n.consume(h), p) : f(h);
|
|
3633
3651
|
}
|
|
3634
|
-
function
|
|
3635
|
-
return h === 62 ? W(h) : h === 45 ? d(h) :
|
|
3652
|
+
function p(h) {
|
|
3653
|
+
return h === 62 ? W(h) : h === 45 ? d(h) : f(h);
|
|
3636
3654
|
}
|
|
3637
3655
|
function w(h) {
|
|
3638
3656
|
const ln = "CDATA[";
|
|
@@ -3660,10 +3678,10 @@ function lo(n, e, t) {
|
|
|
3660
3678
|
return sn(h) ? (n.consume(h), y) : t(h);
|
|
3661
3679
|
}
|
|
3662
3680
|
function y(h) {
|
|
3663
|
-
return h === 45 || en(h) ? (n.consume(h), y) :
|
|
3681
|
+
return h === 45 || en(h) ? (n.consume(h), y) : R(h);
|
|
3664
3682
|
}
|
|
3665
|
-
function
|
|
3666
|
-
return z(h) ? (o =
|
|
3683
|
+
function R(h) {
|
|
3684
|
+
return z(h) ? (o = R, X(h)) : D(h) ? (n.consume(h), R) : W(h);
|
|
3667
3685
|
}
|
|
3668
3686
|
function V(h) {
|
|
3669
3687
|
return h === 45 || en(h) ? (n.consume(h), V) : h === 47 || h === 62 || Q(h) ? O(h) : t(h);
|
|
@@ -3704,17 +3722,17 @@ function lo(n, e, t) {
|
|
|
3704
3722
|
}
|
|
3705
3723
|
const He = {
|
|
3706
3724
|
name: "labelEnd",
|
|
3707
|
-
resolveAll:
|
|
3708
|
-
resolveTo:
|
|
3709
|
-
tokenize: fo
|
|
3710
|
-
}, oo = {
|
|
3725
|
+
resolveAll: co,
|
|
3726
|
+
resolveTo: fo,
|
|
3711
3727
|
tokenize: po
|
|
3712
3728
|
}, ao = {
|
|
3713
3729
|
tokenize: ho
|
|
3714
3730
|
}, uo = {
|
|
3715
3731
|
tokenize: mo
|
|
3732
|
+
}, so = {
|
|
3733
|
+
tokenize: go
|
|
3716
3734
|
};
|
|
3717
|
-
function
|
|
3735
|
+
function co(n) {
|
|
3718
3736
|
let e = -1;
|
|
3719
3737
|
const t = [];
|
|
3720
3738
|
for (; ++e < n.length; ) {
|
|
@@ -3726,7 +3744,7 @@ function so(n) {
|
|
|
3726
3744
|
}
|
|
3727
3745
|
return n.length !== t.length && cn(n, 0, n.length, t), n;
|
|
3728
3746
|
}
|
|
3729
|
-
function
|
|
3747
|
+
function fo(n, e) {
|
|
3730
3748
|
let t = n.length, r = 0, i, l, o, a;
|
|
3731
3749
|
for (; t--; )
|
|
3732
3750
|
if (i = n[t][1], l) {
|
|
@@ -3766,7 +3784,7 @@ function co(n, e) {
|
|
|
3766
3784
|
};
|
|
3767
3785
|
return a = [["enter", s, e], ["enter", u, e]], a = tn(a, n.slice(l + 1, l + r + 3)), a = tn(a, [["enter", c, e]]), a = tn(a, $e(e.parser.constructs.insideSpan.null, n.slice(l + r + 4, o - 3), e)), a = tn(a, [["exit", c, e], n[o - 2], n[o - 1], ["exit", u, e]]), a = tn(a, n.slice(o + 1)), a = tn(a, [["exit", s, e]]), cn(n, l, n.length, a), n;
|
|
3768
3786
|
}
|
|
3769
|
-
function
|
|
3787
|
+
function po(n, e, t) {
|
|
3770
3788
|
const r = this;
|
|
3771
3789
|
let i = r.events.length, l, o;
|
|
3772
3790
|
for (; i--; )
|
|
@@ -3776,52 +3794,52 @@ function fo(n, e, t) {
|
|
|
3776
3794
|
}
|
|
3777
3795
|
return a;
|
|
3778
3796
|
function a(d) {
|
|
3779
|
-
return l ? l._inactive ?
|
|
3797
|
+
return l ? l._inactive ? f(d) : (o = r.parser.defined.includes(Ln(r.sliceSerialize({
|
|
3780
3798
|
start: l.end,
|
|
3781
3799
|
end: r.now()
|
|
3782
3800
|
}))), n.enter("labelEnd"), n.enter("labelMarker"), n.consume(d), n.exit("labelMarker"), n.exit("labelEnd"), s) : t(d);
|
|
3783
3801
|
}
|
|
3784
3802
|
function s(d) {
|
|
3785
|
-
return d === 40 ? n.attempt(
|
|
3803
|
+
return d === 40 ? n.attempt(ao, c, o ? c : f)(d) : d === 91 ? n.attempt(uo, c, o ? u : f)(d) : o ? c(d) : f(d);
|
|
3786
3804
|
}
|
|
3787
3805
|
function u(d) {
|
|
3788
|
-
return n.attempt(
|
|
3806
|
+
return n.attempt(so, c, f)(d);
|
|
3789
3807
|
}
|
|
3790
3808
|
function c(d) {
|
|
3791
3809
|
return e(d);
|
|
3792
3810
|
}
|
|
3793
|
-
function
|
|
3811
|
+
function f(d) {
|
|
3794
3812
|
return l._balanced = !0, t(d);
|
|
3795
3813
|
}
|
|
3796
3814
|
}
|
|
3797
|
-
function
|
|
3815
|
+
function ho(n, e, t) {
|
|
3798
3816
|
return r;
|
|
3799
|
-
function r(
|
|
3800
|
-
return n.enter("resource"), n.enter("resourceMarker"), n.consume(
|
|
3817
|
+
function r(f) {
|
|
3818
|
+
return n.enter("resource"), n.enter("resourceMarker"), n.consume(f), n.exit("resourceMarker"), i;
|
|
3801
3819
|
}
|
|
3802
|
-
function i(
|
|
3803
|
-
return Q(
|
|
3820
|
+
function i(f) {
|
|
3821
|
+
return Q(f) ? Vn(n, l)(f) : l(f);
|
|
3804
3822
|
}
|
|
3805
|
-
function l(
|
|
3806
|
-
return
|
|
3823
|
+
function l(f) {
|
|
3824
|
+
return f === 41 ? c(f) : sr(n, o, a, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(f);
|
|
3807
3825
|
}
|
|
3808
|
-
function o(
|
|
3809
|
-
return Q(
|
|
3826
|
+
function o(f) {
|
|
3827
|
+
return Q(f) ? Vn(n, s)(f) : c(f);
|
|
3810
3828
|
}
|
|
3811
|
-
function a(
|
|
3812
|
-
return t(
|
|
3829
|
+
function a(f) {
|
|
3830
|
+
return t(f);
|
|
3813
3831
|
}
|
|
3814
|
-
function s(
|
|
3815
|
-
return
|
|
3832
|
+
function s(f) {
|
|
3833
|
+
return f === 34 || f === 39 || f === 40 ? fr(n, u, t, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(f) : c(f);
|
|
3816
3834
|
}
|
|
3817
|
-
function u(
|
|
3818
|
-
return Q(
|
|
3835
|
+
function u(f) {
|
|
3836
|
+
return Q(f) ? Vn(n, c)(f) : c(f);
|
|
3819
3837
|
}
|
|
3820
|
-
function c(
|
|
3821
|
-
return
|
|
3838
|
+
function c(f) {
|
|
3839
|
+
return f === 41 ? (n.enter("resourceMarker"), n.consume(f), n.exit("resourceMarker"), n.exit("resource"), e) : t(f);
|
|
3822
3840
|
}
|
|
3823
3841
|
}
|
|
3824
|
-
function
|
|
3842
|
+
function mo(n, e, t) {
|
|
3825
3843
|
const r = this;
|
|
3826
3844
|
return i;
|
|
3827
3845
|
function i(a) {
|
|
@@ -3834,7 +3852,7 @@ function ho(n, e, t) {
|
|
|
3834
3852
|
return t(a);
|
|
3835
3853
|
}
|
|
3836
3854
|
}
|
|
3837
|
-
function
|
|
3855
|
+
function go(n, e, t) {
|
|
3838
3856
|
return r;
|
|
3839
3857
|
function r(l) {
|
|
3840
3858
|
return n.enter("reference"), n.enter("referenceMarker"), n.consume(l), n.exit("referenceMarker"), i;
|
|
@@ -3843,12 +3861,12 @@ function mo(n, e, t) {
|
|
|
3843
3861
|
return l === 93 ? (n.enter("referenceMarker"), n.consume(l), n.exit("referenceMarker"), n.exit("reference"), e) : t(l);
|
|
3844
3862
|
}
|
|
3845
3863
|
}
|
|
3846
|
-
const
|
|
3864
|
+
const yo = {
|
|
3847
3865
|
name: "labelStartImage",
|
|
3848
3866
|
resolveAll: He.resolveAll,
|
|
3849
|
-
tokenize:
|
|
3867
|
+
tokenize: ko
|
|
3850
3868
|
};
|
|
3851
|
-
function
|
|
3869
|
+
function ko(n, e, t) {
|
|
3852
3870
|
const r = this;
|
|
3853
3871
|
return i;
|
|
3854
3872
|
function i(a) {
|
|
@@ -3861,12 +3879,12 @@ function yo(n, e, t) {
|
|
|
3861
3879
|
return a === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? t(a) : e(a);
|
|
3862
3880
|
}
|
|
3863
3881
|
}
|
|
3864
|
-
const
|
|
3882
|
+
const xo = {
|
|
3865
3883
|
name: "labelStartLink",
|
|
3866
3884
|
resolveAll: He.resolveAll,
|
|
3867
|
-
tokenize:
|
|
3885
|
+
tokenize: bo
|
|
3868
3886
|
};
|
|
3869
|
-
function
|
|
3887
|
+
function bo(n, e, t) {
|
|
3870
3888
|
const r = this;
|
|
3871
3889
|
return i;
|
|
3872
3890
|
function i(o) {
|
|
@@ -3878,9 +3896,9 @@ function xo(n, e, t) {
|
|
|
3878
3896
|
}
|
|
3879
3897
|
const se = {
|
|
3880
3898
|
name: "lineEnding",
|
|
3881
|
-
tokenize:
|
|
3899
|
+
tokenize: wo
|
|
3882
3900
|
};
|
|
3883
|
-
function
|
|
3901
|
+
function wo(n, e) {
|
|
3884
3902
|
return t;
|
|
3885
3903
|
function t(r) {
|
|
3886
3904
|
return n.enter("lineEnding"), n.consume(r), n.exit("lineEnding"), H(n, e, "linePrefix");
|
|
@@ -3888,9 +3906,9 @@ function bo(n, e) {
|
|
|
3888
3906
|
}
|
|
3889
3907
|
const Zn = {
|
|
3890
3908
|
name: "thematicBreak",
|
|
3891
|
-
tokenize:
|
|
3909
|
+
tokenize: So
|
|
3892
3910
|
};
|
|
3893
|
-
function
|
|
3911
|
+
function So(n, e, t) {
|
|
3894
3912
|
let r = 0, i;
|
|
3895
3913
|
return l;
|
|
3896
3914
|
function l(u) {
|
|
@@ -3908,69 +3926,69 @@ function wo(n, e, t) {
|
|
|
3908
3926
|
}
|
|
3909
3927
|
const K = {
|
|
3910
3928
|
continuation: {
|
|
3911
|
-
tokenize:
|
|
3929
|
+
tokenize: Po
|
|
3912
3930
|
},
|
|
3913
|
-
exit:
|
|
3931
|
+
exit: To,
|
|
3914
3932
|
name: "list",
|
|
3915
|
-
tokenize:
|
|
3916
|
-
}, So = {
|
|
3917
|
-
partial: !0,
|
|
3918
|
-
tokenize: To
|
|
3933
|
+
tokenize: Eo
|
|
3919
3934
|
}, Co = {
|
|
3920
3935
|
partial: !0,
|
|
3921
|
-
tokenize:
|
|
3936
|
+
tokenize: Lo
|
|
3937
|
+
}, Io = {
|
|
3938
|
+
partial: !0,
|
|
3939
|
+
tokenize: Ao
|
|
3922
3940
|
};
|
|
3923
|
-
function
|
|
3941
|
+
function Eo(n, e, t) {
|
|
3924
3942
|
const r = this, i = r.events[r.events.length - 1];
|
|
3925
3943
|
let l = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, o = 0;
|
|
3926
3944
|
return a;
|
|
3927
|
-
function a(
|
|
3928
|
-
const w = r.containerState.type || (
|
|
3929
|
-
if (w === "listUnordered" ? !r.containerState.marker ||
|
|
3945
|
+
function a(p) {
|
|
3946
|
+
const w = r.containerState.type || (p === 42 || p === 43 || p === 45 ? "listUnordered" : "listOrdered");
|
|
3947
|
+
if (w === "listUnordered" ? !r.containerState.marker || p === r.containerState.marker : Ie(p)) {
|
|
3930
3948
|
if (r.containerState.type || (r.containerState.type = w, n.enter(w, {
|
|
3931
3949
|
_container: !0
|
|
3932
3950
|
})), w === "listUnordered")
|
|
3933
|
-
return n.enter("listItemPrefix"),
|
|
3934
|
-
if (!r.interrupt ||
|
|
3935
|
-
return n.enter("listItemPrefix"), n.enter("listItemValue"), s(
|
|
3951
|
+
return n.enter("listItemPrefix"), p === 42 || p === 45 ? n.check(Zn, t, u)(p) : u(p);
|
|
3952
|
+
if (!r.interrupt || p === 49)
|
|
3953
|
+
return n.enter("listItemPrefix"), n.enter("listItemValue"), s(p);
|
|
3936
3954
|
}
|
|
3937
|
-
return t(
|
|
3955
|
+
return t(p);
|
|
3938
3956
|
}
|
|
3939
|
-
function s(
|
|
3940
|
-
return Ie(
|
|
3957
|
+
function s(p) {
|
|
3958
|
+
return Ie(p) && ++o < 10 ? (n.consume(p), s) : (!r.interrupt || o < 2) && (r.containerState.marker ? p === r.containerState.marker : p === 41 || p === 46) ? (n.exit("listItemValue"), u(p)) : t(p);
|
|
3941
3959
|
}
|
|
3942
|
-
function u(
|
|
3943
|
-
return n.enter("listItemMarker"), n.consume(
|
|
3960
|
+
function u(p) {
|
|
3961
|
+
return n.enter("listItemMarker"), n.consume(p), n.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || p, n.check(
|
|
3944
3962
|
re,
|
|
3945
3963
|
// Can’t be empty when interrupting.
|
|
3946
3964
|
r.interrupt ? t : c,
|
|
3947
|
-
n.attempt(
|
|
3965
|
+
n.attempt(Co, d, f)
|
|
3948
3966
|
);
|
|
3949
3967
|
}
|
|
3950
|
-
function c(
|
|
3951
|
-
return r.containerState.initialBlankLine = !0, l++, d(
|
|
3968
|
+
function c(p) {
|
|
3969
|
+
return r.containerState.initialBlankLine = !0, l++, d(p);
|
|
3952
3970
|
}
|
|
3953
|
-
function p
|
|
3954
|
-
return D(
|
|
3971
|
+
function f(p) {
|
|
3972
|
+
return D(p) ? (n.enter("listItemPrefixWhitespace"), n.consume(p), n.exit("listItemPrefixWhitespace"), d) : t(p);
|
|
3955
3973
|
}
|
|
3956
|
-
function d(
|
|
3957
|
-
return r.containerState.size = l + r.sliceSerialize(n.exit("listItemPrefix"), !0).length, e(
|
|
3974
|
+
function d(p) {
|
|
3975
|
+
return r.containerState.size = l + r.sliceSerialize(n.exit("listItemPrefix"), !0).length, e(p);
|
|
3958
3976
|
}
|
|
3959
3977
|
}
|
|
3960
|
-
function
|
|
3978
|
+
function Po(n, e, t) {
|
|
3961
3979
|
const r = this;
|
|
3962
3980
|
return r.containerState._closeFlow = void 0, n.check(re, i, l);
|
|
3963
3981
|
function i(a) {
|
|
3964
3982
|
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, H(n, e, "listItemIndent", r.containerState.size + 1)(a);
|
|
3965
3983
|
}
|
|
3966
3984
|
function l(a) {
|
|
3967
|
-
return r.containerState.furtherBlankLines || !D(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, o(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, n.attempt(
|
|
3985
|
+
return r.containerState.furtherBlankLines || !D(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, o(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, n.attempt(Io, e, o)(a));
|
|
3968
3986
|
}
|
|
3969
3987
|
function o(a) {
|
|
3970
3988
|
return r.containerState._closeFlow = !0, r.interrupt = void 0, H(n, n.attempt(K, e, t), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
|
|
3971
3989
|
}
|
|
3972
3990
|
}
|
|
3973
|
-
function
|
|
3991
|
+
function Ao(n, e, t) {
|
|
3974
3992
|
const r = this;
|
|
3975
3993
|
return H(n, i, "listItemIndent", r.containerState.size + 1);
|
|
3976
3994
|
function i(l) {
|
|
@@ -3978,10 +3996,10 @@ function Po(n, e, t) {
|
|
|
3978
3996
|
return o && o[1].type === "listItemIndent" && o[2].sliceSerialize(o[1], !0).length === r.containerState.size ? e(l) : t(l);
|
|
3979
3997
|
}
|
|
3980
3998
|
}
|
|
3981
|
-
function
|
|
3999
|
+
function To(n) {
|
|
3982
4000
|
n.exit(this.containerState.type);
|
|
3983
4001
|
}
|
|
3984
|
-
function
|
|
4002
|
+
function Lo(n, e, t) {
|
|
3985
4003
|
const r = this;
|
|
3986
4004
|
return H(n, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
|
|
3987
4005
|
function i(l) {
|
|
@@ -3991,10 +4009,10 @@ function To(n, e, t) {
|
|
|
3991
4009
|
}
|
|
3992
4010
|
const St = {
|
|
3993
4011
|
name: "setextUnderline",
|
|
3994
|
-
resolveTo:
|
|
3995
|
-
tokenize:
|
|
4012
|
+
resolveTo: zo,
|
|
4013
|
+
tokenize: _o
|
|
3996
4014
|
};
|
|
3997
|
-
function
|
|
4015
|
+
function zo(n, e) {
|
|
3998
4016
|
let t = n.length, r, i, l;
|
|
3999
4017
|
for (; t--; )
|
|
4000
4018
|
if (n[t][0] === "enter") {
|
|
@@ -4018,18 +4036,18 @@ function Lo(n, e) {
|
|
|
4018
4036
|
...n[l][1].end
|
|
4019
4037
|
}) : n[r][1] = o, n.push(["exit", o, e]), n;
|
|
4020
4038
|
}
|
|
4021
|
-
function
|
|
4039
|
+
function _o(n, e, t) {
|
|
4022
4040
|
const r = this;
|
|
4023
4041
|
let i;
|
|
4024
4042
|
return l;
|
|
4025
4043
|
function l(u) {
|
|
4026
|
-
let c = r.events.length,
|
|
4044
|
+
let c = r.events.length, f;
|
|
4027
4045
|
for (; c--; )
|
|
4028
4046
|
if (r.events[c][1].type !== "lineEnding" && r.events[c][1].type !== "linePrefix" && r.events[c][1].type !== "content") {
|
|
4029
|
-
|
|
4047
|
+
f = r.events[c][1].type === "paragraph";
|
|
4030
4048
|
break;
|
|
4031
4049
|
}
|
|
4032
|
-
return !r.parser.lazy[r.now().line] && (r.interrupt ||
|
|
4050
|
+
return !r.parser.lazy[r.now().line] && (r.interrupt || f) ? (n.enter("setextHeadingLine"), i = u, o(u)) : t(u);
|
|
4033
4051
|
}
|
|
4034
4052
|
function o(u) {
|
|
4035
4053
|
return n.enter("setextHeadingLineSequence"), a(u);
|
|
@@ -4041,16 +4059,16 @@ function zo(n, e, t) {
|
|
|
4041
4059
|
return u === null || z(u) ? (n.exit("setextHeadingLine"), e(u)) : t(u);
|
|
4042
4060
|
}
|
|
4043
4061
|
}
|
|
4044
|
-
const
|
|
4045
|
-
tokenize:
|
|
4062
|
+
const Mo = {
|
|
4063
|
+
tokenize: No
|
|
4046
4064
|
};
|
|
4047
|
-
function
|
|
4065
|
+
function No(n) {
|
|
4048
4066
|
const e = this, t = n.attempt(
|
|
4049
4067
|
// Try to parse a blank line.
|
|
4050
4068
|
re,
|
|
4051
4069
|
r,
|
|
4052
4070
|
// Try to parse initial flow (essentially, only code).
|
|
4053
|
-
n.attempt(this.parser.constructs.flowInitial, i, H(n, n.attempt(this.parser.constructs.flow, i, n.attempt(
|
|
4071
|
+
n.attempt(this.parser.constructs.flowInitial, i, H(n, n.attempt(this.parser.constructs.flow, i, n.attempt(Ol, i)), "linePrefix"))
|
|
4054
4072
|
);
|
|
4055
4073
|
return t;
|
|
4056
4074
|
function r(l) {
|
|
@@ -4068,12 +4086,12 @@ function Mo(n) {
|
|
|
4068
4086
|
return n.enter("lineEnding"), n.consume(l), n.exit("lineEnding"), e.currentConstruct = void 0, t;
|
|
4069
4087
|
}
|
|
4070
4088
|
}
|
|
4071
|
-
const
|
|
4089
|
+
const vo = {
|
|
4072
4090
|
resolveAll: hr()
|
|
4073
|
-
}, Ro = pr("string"),
|
|
4091
|
+
}, Ro = pr("string"), Do = pr("text");
|
|
4074
4092
|
function pr(n) {
|
|
4075
4093
|
return {
|
|
4076
|
-
resolveAll: hr(n === "text" ?
|
|
4094
|
+
resolveAll: hr(n === "text" ? Oo : void 0),
|
|
4077
4095
|
tokenize: e
|
|
4078
4096
|
};
|
|
4079
4097
|
function e(t) {
|
|
@@ -4095,12 +4113,12 @@ function pr(n) {
|
|
|
4095
4113
|
function u(c) {
|
|
4096
4114
|
if (c === null)
|
|
4097
4115
|
return !0;
|
|
4098
|
-
const
|
|
4116
|
+
const f = i[c];
|
|
4099
4117
|
let d = -1;
|
|
4100
|
-
if (
|
|
4101
|
-
for (; ++d <
|
|
4102
|
-
const
|
|
4103
|
-
if (!
|
|
4118
|
+
if (f)
|
|
4119
|
+
for (; ++d < f.length; ) {
|
|
4120
|
+
const p = f[d];
|
|
4121
|
+
if (!p.previous || p.previous.call(r, r.previous))
|
|
4104
4122
|
return !0;
|
|
4105
4123
|
}
|
|
4106
4124
|
return !1;
|
|
@@ -4116,7 +4134,7 @@ function hr(n) {
|
|
|
4116
4134
|
return n ? n(t, r) : t;
|
|
4117
4135
|
}
|
|
4118
4136
|
}
|
|
4119
|
-
function
|
|
4137
|
+
function Oo(n, e) {
|
|
4120
4138
|
let t = 0;
|
|
4121
4139
|
for (; ++t <= n.length; )
|
|
4122
4140
|
if ((t === n.length || n[t][1].type === "lineEnding") && n[t - 1][1].type === "data") {
|
|
@@ -4158,7 +4176,7 @@ function Do(n, e) {
|
|
|
4158
4176
|
}
|
|
4159
4177
|
return n;
|
|
4160
4178
|
}
|
|
4161
|
-
const
|
|
4179
|
+
const Fo = {
|
|
4162
4180
|
42: K,
|
|
4163
4181
|
43: K,
|
|
4164
4182
|
45: K,
|
|
@@ -4173,45 +4191,45 @@ const Oo = {
|
|
|
4173
4191
|
56: K,
|
|
4174
4192
|
57: K,
|
|
4175
4193
|
62: lr
|
|
4176
|
-
}, Fo = {
|
|
4177
|
-
91: jl
|
|
4178
4194
|
}, Bo = {
|
|
4195
|
+
91: $l
|
|
4196
|
+
}, Uo = {
|
|
4179
4197
|
[-2]: ue,
|
|
4180
4198
|
[-1]: ue,
|
|
4181
4199
|
32: ue
|
|
4182
|
-
},
|
|
4183
|
-
35:
|
|
4200
|
+
}, jo = {
|
|
4201
|
+
35: Gl,
|
|
4184
4202
|
42: Zn,
|
|
4185
4203
|
45: [St, Zn],
|
|
4186
|
-
60:
|
|
4204
|
+
60: Jl,
|
|
4187
4205
|
61: St,
|
|
4188
4206
|
95: Zn,
|
|
4189
4207
|
96: bt,
|
|
4190
4208
|
126: bt
|
|
4191
|
-
},
|
|
4209
|
+
}, $o = {
|
|
4192
4210
|
38: ar,
|
|
4193
4211
|
92: or
|
|
4194
|
-
},
|
|
4212
|
+
}, Ho = {
|
|
4195
4213
|
[-5]: se,
|
|
4196
4214
|
[-4]: se,
|
|
4197
4215
|
[-3]: se,
|
|
4198
|
-
33:
|
|
4216
|
+
33: yo,
|
|
4199
4217
|
38: ar,
|
|
4200
4218
|
42: Ee,
|
|
4201
|
-
60: [
|
|
4202
|
-
91:
|
|
4203
|
-
92: [
|
|
4219
|
+
60: [kl, lo],
|
|
4220
|
+
91: xo,
|
|
4221
|
+
92: [Wl, or],
|
|
4204
4222
|
93: He,
|
|
4205
4223
|
95: Ee,
|
|
4206
|
-
96:
|
|
4207
|
-
}, Ho = {
|
|
4208
|
-
null: [Ee, No]
|
|
4224
|
+
96: _l
|
|
4209
4225
|
}, Vo = {
|
|
4210
|
-
null: [
|
|
4226
|
+
null: [Ee, vo]
|
|
4211
4227
|
}, qo = {
|
|
4228
|
+
null: [42, 95]
|
|
4229
|
+
}, Wo = {
|
|
4212
4230
|
null: []
|
|
4213
|
-
},
|
|
4214
|
-
function
|
|
4231
|
+
}, Xo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, attentionMarkers: qo, contentInitial: Bo, disable: Wo, document: Fo, flow: jo, flowInitial: Uo, insideSpan: Vo, string: $o, text: Ho }, Symbol.toStringTag, { value: "Module" }));
|
|
4232
|
+
function Go(n, e, t) {
|
|
4215
4233
|
let r = {
|
|
4216
4234
|
_bufferIndex: -1,
|
|
4217
4235
|
_index: 0,
|
|
@@ -4222,12 +4240,12 @@ function Xo(n, e, t) {
|
|
|
4222
4240
|
const i = {}, l = [];
|
|
4223
4241
|
let o = [], a = [];
|
|
4224
4242
|
const s = {
|
|
4225
|
-
attempt:
|
|
4226
|
-
check:
|
|
4243
|
+
attempt: R(j),
|
|
4244
|
+
check: R(y),
|
|
4227
4245
|
consume: T,
|
|
4228
4246
|
enter: C,
|
|
4229
4247
|
exit: B,
|
|
4230
|
-
interrupt:
|
|
4248
|
+
interrupt: R(y, {
|
|
4231
4249
|
interrupt: !0
|
|
4232
4250
|
})
|
|
4233
4251
|
}, u = {
|
|
@@ -4239,19 +4257,19 @@ function Xo(n, e, t) {
|
|
|
4239
4257
|
parser: n,
|
|
4240
4258
|
previous: null,
|
|
4241
4259
|
sliceSerialize: d,
|
|
4242
|
-
sliceStream:
|
|
4243
|
-
write:
|
|
4260
|
+
sliceStream: p,
|
|
4261
|
+
write: f
|
|
4244
4262
|
};
|
|
4245
4263
|
let c = e.tokenize.call(u, s);
|
|
4246
4264
|
return e.resolveAll && l.push(e), u;
|
|
4247
|
-
function
|
|
4265
|
+
function f(A) {
|
|
4248
4266
|
return o = tn(o, A), L(), o[o.length - 1] !== null ? [] : (V(e, 0), u.events = $e(l, u.events, u), u.events);
|
|
4249
4267
|
}
|
|
4250
4268
|
function d(A, E) {
|
|
4251
|
-
return
|
|
4269
|
+
return Ko(p(A), E);
|
|
4252
4270
|
}
|
|
4253
|
-
function
|
|
4254
|
-
return
|
|
4271
|
+
function p(A) {
|
|
4272
|
+
return Yo(o, A);
|
|
4255
4273
|
}
|
|
4256
4274
|
function w() {
|
|
4257
4275
|
const {
|
|
@@ -4306,7 +4324,7 @@ function Xo(n, e, t) {
|
|
|
4306
4324
|
function y(A, E) {
|
|
4307
4325
|
E.restore();
|
|
4308
4326
|
}
|
|
4309
|
-
function
|
|
4327
|
+
function R(A, E) {
|
|
4310
4328
|
return P;
|
|
4311
4329
|
function P(I, _, W) {
|
|
4312
4330
|
let X, rn, fn, h;
|
|
@@ -4374,7 +4392,7 @@ function Xo(n, e, t) {
|
|
|
4374
4392
|
r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
|
|
4375
4393
|
}
|
|
4376
4394
|
}
|
|
4377
|
-
function
|
|
4395
|
+
function Yo(n, e) {
|
|
4378
4396
|
const t = e.start._index, r = e.start._bufferIndex, i = e.end._index, l = e.end._bufferIndex;
|
|
4379
4397
|
let o;
|
|
4380
4398
|
if (t === i)
|
|
@@ -4388,7 +4406,7 @@ function Go(n, e) {
|
|
|
4388
4406
|
}
|
|
4389
4407
|
return o;
|
|
4390
4408
|
}
|
|
4391
|
-
function
|
|
4409
|
+
function Ko(n, e) {
|
|
4392
4410
|
let t = -1;
|
|
4393
4411
|
const r = [];
|
|
4394
4412
|
let i;
|
|
@@ -4428,49 +4446,49 @@ function Yo(n, e) {
|
|
|
4428
4446
|
}
|
|
4429
4447
|
return r.join("");
|
|
4430
4448
|
}
|
|
4431
|
-
function
|
|
4449
|
+
function Qo(n) {
|
|
4432
4450
|
const r = {
|
|
4433
4451
|
constructs: (
|
|
4434
4452
|
/** @type {FullNormalizedExtension} */
|
|
4435
|
-
|
|
4453
|
+
rl([Xo, ...(n || {}).extensions || []])
|
|
4436
4454
|
),
|
|
4437
|
-
content: i(
|
|
4455
|
+
content: i(fl),
|
|
4438
4456
|
defined: [],
|
|
4439
|
-
document: i(
|
|
4440
|
-
flow: i(
|
|
4457
|
+
document: i(hl),
|
|
4458
|
+
flow: i(Mo),
|
|
4441
4459
|
lazy: {},
|
|
4442
4460
|
string: i(Ro),
|
|
4443
|
-
text: i(
|
|
4461
|
+
text: i(Do)
|
|
4444
4462
|
};
|
|
4445
4463
|
return r;
|
|
4446
4464
|
function i(l) {
|
|
4447
4465
|
return o;
|
|
4448
4466
|
function o(a) {
|
|
4449
|
-
return
|
|
4467
|
+
return Go(r, l, a);
|
|
4450
4468
|
}
|
|
4451
4469
|
}
|
|
4452
4470
|
}
|
|
4453
|
-
function
|
|
4471
|
+
function Jo(n) {
|
|
4454
4472
|
for (; !ur(n); )
|
|
4455
4473
|
;
|
|
4456
4474
|
return n;
|
|
4457
4475
|
}
|
|
4458
4476
|
const Ct = /[\0\t\n\r]/g;
|
|
4459
|
-
function
|
|
4477
|
+
function Zo() {
|
|
4460
4478
|
let n = 1, e = "", t = !0, r;
|
|
4461
4479
|
return i;
|
|
4462
4480
|
function i(l, o, a) {
|
|
4463
4481
|
const s = [];
|
|
4464
|
-
let u, c,
|
|
4465
|
-
for (l = e + (typeof l == "string" ? l.toString() : new TextDecoder(o || void 0).decode(l)),
|
|
4466
|
-
if (Ct.lastIndex =
|
|
4467
|
-
e = l.slice(
|
|
4482
|
+
let u, c, f, d, p;
|
|
4483
|
+
for (l = e + (typeof l == "string" ? l.toString() : new TextDecoder(o || void 0).decode(l)), f = 0, e = "", t && (l.charCodeAt(0) === 65279 && f++, t = void 0); f < l.length; ) {
|
|
4484
|
+
if (Ct.lastIndex = f, u = Ct.exec(l), d = u && u.index !== void 0 ? u.index : l.length, p = l.charCodeAt(d), !u) {
|
|
4485
|
+
e = l.slice(f);
|
|
4468
4486
|
break;
|
|
4469
4487
|
}
|
|
4470
|
-
if (
|
|
4488
|
+
if (p === 10 && f === d && r)
|
|
4471
4489
|
s.push(-3), r = void 0;
|
|
4472
4490
|
else
|
|
4473
|
-
switch (r && (s.push(-5), r = void 0),
|
|
4491
|
+
switch (r && (s.push(-5), r = void 0), f < d && (s.push(l.slice(f, d)), n += d - f), p) {
|
|
4474
4492
|
case 0: {
|
|
4475
4493
|
s.push(65533), n++;
|
|
4476
4494
|
break;
|
|
@@ -4486,16 +4504,16 @@ function Jo() {
|
|
|
4486
4504
|
default:
|
|
4487
4505
|
r = !0, n = 1;
|
|
4488
4506
|
}
|
|
4489
|
-
|
|
4507
|
+
f = d + 1;
|
|
4490
4508
|
}
|
|
4491
4509
|
return a && (r && s.push(-5), e && s.push(e), s.push(null)), s;
|
|
4492
4510
|
}
|
|
4493
4511
|
}
|
|
4494
|
-
const
|
|
4495
|
-
function
|
|
4496
|
-
return n.replace(
|
|
4512
|
+
const na = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
|
|
4513
|
+
function ea(n) {
|
|
4514
|
+
return n.replace(na, ta);
|
|
4497
4515
|
}
|
|
4498
|
-
function
|
|
4516
|
+
function ta(n, e, t) {
|
|
4499
4517
|
if (e)
|
|
4500
4518
|
return e;
|
|
4501
4519
|
if (t.charCodeAt(0) === 35) {
|
|
@@ -4505,10 +4523,10 @@ function ea(n, e, t) {
|
|
|
4505
4523
|
return je(t) || n;
|
|
4506
4524
|
}
|
|
4507
4525
|
const mr = {}.hasOwnProperty;
|
|
4508
|
-
function
|
|
4509
|
-
return typeof e != "string" && (t = e, e = void 0),
|
|
4526
|
+
function ra(n, e, t) {
|
|
4527
|
+
return typeof e != "string" && (t = e, e = void 0), ia(t)(Jo(Qo(t).document().write(Zo()(n, e, !0))));
|
|
4510
4528
|
}
|
|
4511
|
-
function
|
|
4529
|
+
function ia(n) {
|
|
4512
4530
|
const e = {
|
|
4513
4531
|
transforms: [],
|
|
4514
4532
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
@@ -4544,7 +4562,7 @@ function ra(n) {
|
|
|
4544
4562
|
link: l(Ye),
|
|
4545
4563
|
listItem: l(Cr),
|
|
4546
4564
|
listItemValue: d,
|
|
4547
|
-
listOrdered: l(Ke,
|
|
4565
|
+
listOrdered: l(Ke, f),
|
|
4548
4566
|
listUnordered: l(Ke),
|
|
4549
4567
|
paragraph: l(Ir),
|
|
4550
4568
|
reference: m,
|
|
@@ -4569,7 +4587,7 @@ function ra(n) {
|
|
|
4569
4587
|
characterReference: Mn,
|
|
4570
4588
|
codeFenced: s(L),
|
|
4571
4589
|
codeFencedFence: b,
|
|
4572
|
-
codeFencedFenceInfo:
|
|
4590
|
+
codeFencedFenceInfo: p,
|
|
4573
4591
|
codeFencedFenceMeta: w,
|
|
4574
4592
|
codeFlowValue: F,
|
|
4575
4593
|
codeIndented: s(x),
|
|
@@ -4601,7 +4619,7 @@ function ra(n) {
|
|
|
4601
4619
|
resourceTitleString: ln,
|
|
4602
4620
|
resource: pn,
|
|
4603
4621
|
setextHeading: s(V),
|
|
4604
|
-
setextHeadingLineSequence:
|
|
4622
|
+
setextHeadingLineSequence: R,
|
|
4605
4623
|
setextHeadingText: y,
|
|
4606
4624
|
strong: s(),
|
|
4607
4625
|
thematicBreak: s()
|
|
@@ -4624,14 +4642,14 @@ function ra(n) {
|
|
|
4624
4642
|
buffer: o,
|
|
4625
4643
|
resume: c,
|
|
4626
4644
|
data: t
|
|
4627
|
-
},
|
|
4645
|
+
}, v = [];
|
|
4628
4646
|
let U = -1;
|
|
4629
4647
|
for (; ++U < g.length; )
|
|
4630
4648
|
if (g[U][1].type === "listOrdered" || g[U][1].type === "listUnordered")
|
|
4631
4649
|
if (g[U][0] === "enter")
|
|
4632
|
-
|
|
4650
|
+
v.push(U);
|
|
4633
4651
|
else {
|
|
4634
|
-
const an =
|
|
4652
|
+
const an = v.pop();
|
|
4635
4653
|
U = i(g, an, U);
|
|
4636
4654
|
}
|
|
4637
4655
|
for (U = -1; ++U < g.length; ) {
|
|
@@ -4660,18 +4678,18 @@ function ra(n) {
|
|
|
4660
4678
|
return S;
|
|
4661
4679
|
}
|
|
4662
4680
|
function i(g, S, M) {
|
|
4663
|
-
let
|
|
4664
|
-
for (; ++
|
|
4665
|
-
const Z = g[
|
|
4681
|
+
let v = S - 1, U = -1, an = !1, xn, hn, Nn, vn;
|
|
4682
|
+
for (; ++v <= M; ) {
|
|
4683
|
+
const Z = g[v];
|
|
4666
4684
|
switch (Z[1].type) {
|
|
4667
4685
|
case "listUnordered":
|
|
4668
4686
|
case "listOrdered":
|
|
4669
4687
|
case "blockQuote": {
|
|
4670
|
-
Z[0] === "enter" ? U++ : U--,
|
|
4688
|
+
Z[0] === "enter" ? U++ : U--, vn = void 0;
|
|
4671
4689
|
break;
|
|
4672
4690
|
}
|
|
4673
4691
|
case "lineEndingBlank": {
|
|
4674
|
-
Z[0] === "enter" && (xn && !
|
|
4692
|
+
Z[0] === "enter" && (xn && !vn && !U && !Nn && (Nn = v), vn = void 0);
|
|
4675
4693
|
break;
|
|
4676
4694
|
}
|
|
4677
4695
|
case "linePrefix":
|
|
@@ -4681,11 +4699,11 @@ function ra(n) {
|
|
|
4681
4699
|
case "listItemPrefixWhitespace":
|
|
4682
4700
|
break;
|
|
4683
4701
|
default:
|
|
4684
|
-
|
|
4702
|
+
vn = void 0;
|
|
4685
4703
|
}
|
|
4686
4704
|
if (!U && Z[0] === "enter" && Z[1].type === "listItemPrefix" || U === -1 && Z[0] === "exit" && (Z[1].type === "listUnordered" || Z[1].type === "listOrdered")) {
|
|
4687
4705
|
if (xn) {
|
|
4688
|
-
let En =
|
|
4706
|
+
let En = v;
|
|
4689
4707
|
for (hn = void 0; En--; ) {
|
|
4690
4708
|
const mn = g[En];
|
|
4691
4709
|
if (mn[1].type === "lineEnding" || mn[1].type === "lineEndingBlank") {
|
|
@@ -4693,7 +4711,7 @@ function ra(n) {
|
|
|
4693
4711
|
hn && (g[hn][1].type = "lineEndingBlank", an = !0), mn[1].type = "lineEnding", hn = En;
|
|
4694
4712
|
} else if (!(mn[1].type === "linePrefix" || mn[1].type === "blockQuotePrefix" || mn[1].type === "blockQuotePrefixWhitespace" || mn[1].type === "blockQuoteMarker" || mn[1].type === "listItemIndent")) break;
|
|
4695
4713
|
}
|
|
4696
|
-
Nn && (!hn || Nn < hn) && (xn._spread = !0), xn.end = Object.assign({}, hn ? g[hn][1].start : Z[1].end), g.splice(hn ||
|
|
4714
|
+
Nn && (!hn || Nn < hn) && (xn._spread = !0), xn.end = Object.assign({}, hn ? g[hn][1].start : Z[1].end), g.splice(hn || v, 0, ["exit", xn, Z[2]]), v++, M++;
|
|
4697
4715
|
}
|
|
4698
4716
|
if (Z[1].type === "listItemPrefix") {
|
|
4699
4717
|
const En = {
|
|
@@ -4703,7 +4721,7 @@ function ra(n) {
|
|
|
4703
4721
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
4704
4722
|
end: void 0
|
|
4705
4723
|
};
|
|
4706
|
-
xn = En, g.splice(
|
|
4724
|
+
xn = En, g.splice(v, 0, ["enter", En, Z[2]]), v++, M++, Nn = void 0, vn = !0;
|
|
4707
4725
|
}
|
|
4708
4726
|
}
|
|
4709
4727
|
}
|
|
@@ -4711,8 +4729,8 @@ function ra(n) {
|
|
|
4711
4729
|
}
|
|
4712
4730
|
function l(g, S) {
|
|
4713
4731
|
return M;
|
|
4714
|
-
function M(
|
|
4715
|
-
a.call(this, g(
|
|
4732
|
+
function M(v) {
|
|
4733
|
+
a.call(this, g(v), v), S && S.call(this, v);
|
|
4716
4734
|
}
|
|
4717
4735
|
}
|
|
4718
4736
|
function o() {
|
|
@@ -4735,9 +4753,9 @@ function ra(n) {
|
|
|
4735
4753
|
}
|
|
4736
4754
|
}
|
|
4737
4755
|
function u(g, S) {
|
|
4738
|
-
const M = this.stack.pop(),
|
|
4739
|
-
if (
|
|
4740
|
-
|
|
4756
|
+
const M = this.stack.pop(), v = this.tokenStack.pop();
|
|
4757
|
+
if (v)
|
|
4758
|
+
v[0].type !== g.type && (S ? S.call(this, g, v[0]) : (v[1] || It).call(this, g, v[0]));
|
|
4741
4759
|
else throw new Error("Cannot close `" + g.type + "` (" + Hn({
|
|
4742
4760
|
start: g.start,
|
|
4743
4761
|
end: g.end
|
|
@@ -4745,9 +4763,9 @@ function ra(n) {
|
|
|
4745
4763
|
M.position.end = gn(g.end);
|
|
4746
4764
|
}
|
|
4747
4765
|
function c() {
|
|
4748
|
-
return
|
|
4766
|
+
return el(this.stack.pop());
|
|
4749
4767
|
}
|
|
4750
|
-
function
|
|
4768
|
+
function f() {
|
|
4751
4769
|
this.data.expectingFirstListItemValue = !0;
|
|
4752
4770
|
}
|
|
4753
4771
|
function d(g) {
|
|
@@ -4756,7 +4774,7 @@ function ra(n) {
|
|
|
4756
4774
|
S.start = Number.parseInt(this.sliceSerialize(g), 10), this.data.expectingFirstListItemValue = void 0;
|
|
4757
4775
|
}
|
|
4758
4776
|
}
|
|
4759
|
-
function
|
|
4777
|
+
function p() {
|
|
4760
4778
|
const g = this.resume(), S = this.stack[this.stack.length - 1];
|
|
4761
4779
|
S.lang = g;
|
|
4762
4780
|
}
|
|
@@ -4797,7 +4815,7 @@ function ra(n) {
|
|
|
4797
4815
|
function y() {
|
|
4798
4816
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
4799
4817
|
}
|
|
4800
|
-
function
|
|
4818
|
+
function R(g) {
|
|
4801
4819
|
const S = this.stack[this.stack.length - 1];
|
|
4802
4820
|
S.depth = this.sliceSerialize(g).codePointAt(0) === 61 ? 1 : 2;
|
|
4803
4821
|
}
|
|
@@ -4806,12 +4824,12 @@ function ra(n) {
|
|
|
4806
4824
|
}
|
|
4807
4825
|
function O(g) {
|
|
4808
4826
|
const M = this.stack[this.stack.length - 1].children;
|
|
4809
|
-
let
|
|
4810
|
-
(!
|
|
4827
|
+
let v = M[M.length - 1];
|
|
4828
|
+
(!v || v.type !== "text") && (v = Pr(), v.position = {
|
|
4811
4829
|
start: gn(g.start),
|
|
4812
4830
|
// @ts-expect-error: we’ll add `end` later.
|
|
4813
4831
|
end: void 0
|
|
4814
|
-
}, M.push(
|
|
4832
|
+
}, M.push(v)), this.stack.push(v);
|
|
4815
4833
|
}
|
|
4816
4834
|
function F(g) {
|
|
4817
4835
|
const S = this.stack.pop();
|
|
@@ -4861,13 +4879,13 @@ function ra(n) {
|
|
|
4861
4879
|
}
|
|
4862
4880
|
function rn(g) {
|
|
4863
4881
|
const S = this.sliceSerialize(g), M = this.stack[this.stack.length - 2];
|
|
4864
|
-
M.label =
|
|
4882
|
+
M.label = ea(S), M.identifier = Ln(S).toLowerCase();
|
|
4865
4883
|
}
|
|
4866
4884
|
function fn() {
|
|
4867
4885
|
const g = this.stack[this.stack.length - 1], S = this.resume(), M = this.stack[this.stack.length - 1];
|
|
4868
4886
|
if (this.data.inReference = !0, M.type === "link") {
|
|
4869
|
-
const
|
|
4870
|
-
M.children =
|
|
4887
|
+
const v = g.children;
|
|
4888
|
+
M.children = v;
|
|
4871
4889
|
} else
|
|
4872
4890
|
M.alt = S;
|
|
4873
4891
|
}
|
|
@@ -4894,10 +4912,10 @@ function ra(n) {
|
|
|
4894
4912
|
}
|
|
4895
4913
|
function G(g) {
|
|
4896
4914
|
const S = this.sliceSerialize(g), M = this.data.characterReferenceType;
|
|
4897
|
-
let
|
|
4898
|
-
M ? (
|
|
4915
|
+
let v;
|
|
4916
|
+
M ? (v = ir(S, M === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : v = je(S);
|
|
4899
4917
|
const U = this.stack[this.stack.length - 1];
|
|
4900
|
-
U.value +=
|
|
4918
|
+
U.value += v;
|
|
4901
4919
|
}
|
|
4902
4920
|
function Mn(g) {
|
|
4903
4921
|
const S = this.stack.pop();
|
|
@@ -5035,10 +5053,10 @@ function dr(n, e) {
|
|
|
5035
5053
|
let t = -1;
|
|
5036
5054
|
for (; ++t < e.length; ) {
|
|
5037
5055
|
const r = e[t];
|
|
5038
|
-
Array.isArray(r) ? dr(n, r) :
|
|
5056
|
+
Array.isArray(r) ? dr(n, r) : la(n, r);
|
|
5039
5057
|
}
|
|
5040
5058
|
}
|
|
5041
|
-
function
|
|
5059
|
+
function la(n, e) {
|
|
5042
5060
|
let t;
|
|
5043
5061
|
for (t in e)
|
|
5044
5062
|
if (mr.call(e, t))
|
|
@@ -5073,11 +5091,11 @@ function It(n, e) {
|
|
|
5073
5091
|
end: e.end
|
|
5074
5092
|
}) + ") is still open");
|
|
5075
5093
|
}
|
|
5076
|
-
function
|
|
5094
|
+
function oa(n) {
|
|
5077
5095
|
const e = this;
|
|
5078
5096
|
e.parser = t;
|
|
5079
5097
|
function t(r) {
|
|
5080
|
-
return
|
|
5098
|
+
return ra(r, {
|
|
5081
5099
|
...e.data("settings"),
|
|
5082
5100
|
...n,
|
|
5083
5101
|
// Note: these options are not in the readme.
|
|
@@ -5088,7 +5106,7 @@ function la(n) {
|
|
|
5088
5106
|
});
|
|
5089
5107
|
}
|
|
5090
5108
|
}
|
|
5091
|
-
function
|
|
5109
|
+
function aa(n, e) {
|
|
5092
5110
|
const t = {
|
|
5093
5111
|
type: "element",
|
|
5094
5112
|
tagName: "blockquote",
|
|
@@ -5097,12 +5115,12 @@ function oa(n, e) {
|
|
|
5097
5115
|
};
|
|
5098
5116
|
return n.patch(e, t), n.applyData(e, t);
|
|
5099
5117
|
}
|
|
5100
|
-
function
|
|
5118
|
+
function ua(n, e) {
|
|
5101
5119
|
const t = { type: "element", tagName: "br", properties: {}, children: [] };
|
|
5102
5120
|
return n.patch(e, t), [n.applyData(e, t), { type: "text", value: `
|
|
5103
5121
|
` }];
|
|
5104
5122
|
}
|
|
5105
|
-
function
|
|
5123
|
+
function sa(n, e) {
|
|
5106
5124
|
const t = e.value ? e.value + `
|
|
5107
5125
|
` : "", r = {};
|
|
5108
5126
|
e.lang && (r.className = ["language-" + e.lang]);
|
|
@@ -5114,7 +5132,7 @@ function ua(n, e) {
|
|
|
5114
5132
|
};
|
|
5115
5133
|
return e.meta && (i.data = { meta: e.meta }), n.patch(e, i), i = n.applyData(e, i), i = { type: "element", tagName: "pre", properties: {}, children: [i] }, n.patch(e, i), i;
|
|
5116
5134
|
}
|
|
5117
|
-
function
|
|
5135
|
+
function ca(n, e) {
|
|
5118
5136
|
const t = {
|
|
5119
5137
|
type: "element",
|
|
5120
5138
|
tagName: "del",
|
|
@@ -5123,7 +5141,7 @@ function sa(n, e) {
|
|
|
5123
5141
|
};
|
|
5124
5142
|
return n.patch(e, t), n.applyData(e, t);
|
|
5125
5143
|
}
|
|
5126
|
-
function
|
|
5144
|
+
function fa(n, e) {
|
|
5127
5145
|
const t = {
|
|
5128
5146
|
type: "element",
|
|
5129
5147
|
tagName: "em",
|
|
@@ -5132,7 +5150,7 @@ function ca(n, e) {
|
|
|
5132
5150
|
};
|
|
5133
5151
|
return n.patch(e, t), n.applyData(e, t);
|
|
5134
5152
|
}
|
|
5135
|
-
function
|
|
5153
|
+
function pa(n, e) {
|
|
5136
5154
|
const t = typeof n.options.clobberPrefix == "string" ? n.options.clobberPrefix : "user-content-", r = String(e.identifier).toUpperCase(), i = _n(r.toLowerCase()), l = n.footnoteOrder.indexOf(r);
|
|
5137
5155
|
let o, a = n.footnoteCounts.get(r);
|
|
5138
5156
|
a === void 0 ? (a = 0, n.footnoteOrder.push(r), o = n.footnoteOrder.length) : o = l + 1, a += 1, n.footnoteCounts.set(r, a);
|
|
@@ -5156,7 +5174,7 @@ function fa(n, e) {
|
|
|
5156
5174
|
};
|
|
5157
5175
|
return n.patch(e, u), n.applyData(e, u);
|
|
5158
5176
|
}
|
|
5159
|
-
function
|
|
5177
|
+
function ha(n, e) {
|
|
5160
5178
|
const t = {
|
|
5161
5179
|
type: "element",
|
|
5162
5180
|
tagName: "h" + e.depth,
|
|
@@ -5165,7 +5183,7 @@ function pa(n, e) {
|
|
|
5165
5183
|
};
|
|
5166
5184
|
return n.patch(e, t), n.applyData(e, t);
|
|
5167
5185
|
}
|
|
5168
|
-
function
|
|
5186
|
+
function ma(n, e) {
|
|
5169
5187
|
if (n.options.allowDangerousHtml) {
|
|
5170
5188
|
const t = { type: "raw", value: e.value };
|
|
5171
5189
|
return n.patch(e, t), n.applyData(e, t);
|
|
@@ -5181,7 +5199,7 @@ function gr(n, e) {
|
|
|
5181
5199
|
const o = i[i.length - 1];
|
|
5182
5200
|
return o && o.type === "text" ? o.value += r : i.push({ type: "text", value: r }), i;
|
|
5183
5201
|
}
|
|
5184
|
-
function
|
|
5202
|
+
function da(n, e) {
|
|
5185
5203
|
const t = String(e.identifier).toUpperCase(), r = n.definitionById.get(t);
|
|
5186
5204
|
if (!r)
|
|
5187
5205
|
return gr(n, e);
|
|
@@ -5190,13 +5208,13 @@ function ma(n, e) {
|
|
|
5190
5208
|
const l = { type: "element", tagName: "img", properties: i, children: [] };
|
|
5191
5209
|
return n.patch(e, l), n.applyData(e, l);
|
|
5192
5210
|
}
|
|
5193
|
-
function
|
|
5211
|
+
function ga(n, e) {
|
|
5194
5212
|
const t = { src: _n(e.url) };
|
|
5195
5213
|
e.alt !== null && e.alt !== void 0 && (t.alt = e.alt), e.title !== null && e.title !== void 0 && (t.title = e.title);
|
|
5196
5214
|
const r = { type: "element", tagName: "img", properties: t, children: [] };
|
|
5197
5215
|
return n.patch(e, r), n.applyData(e, r);
|
|
5198
5216
|
}
|
|
5199
|
-
function
|
|
5217
|
+
function ya(n, e) {
|
|
5200
5218
|
const t = { type: "text", value: e.value.replace(/\r?\n|\r/g, " ") };
|
|
5201
5219
|
n.patch(e, t);
|
|
5202
5220
|
const r = {
|
|
@@ -5207,7 +5225,7 @@ function ga(n, e) {
|
|
|
5207
5225
|
};
|
|
5208
5226
|
return n.patch(e, r), n.applyData(e, r);
|
|
5209
5227
|
}
|
|
5210
|
-
function
|
|
5228
|
+
function ka(n, e) {
|
|
5211
5229
|
const t = String(e.identifier).toUpperCase(), r = n.definitionById.get(t);
|
|
5212
5230
|
if (!r)
|
|
5213
5231
|
return gr(n, e);
|
|
@@ -5221,7 +5239,7 @@ function ya(n, e) {
|
|
|
5221
5239
|
};
|
|
5222
5240
|
return n.patch(e, l), n.applyData(e, l);
|
|
5223
5241
|
}
|
|
5224
|
-
function
|
|
5242
|
+
function xa(n, e) {
|
|
5225
5243
|
const t = { href: _n(e.url) };
|
|
5226
5244
|
e.title !== null && e.title !== void 0 && (t.title = e.title);
|
|
5227
5245
|
const r = {
|
|
@@ -5232,12 +5250,12 @@ function ka(n, e) {
|
|
|
5232
5250
|
};
|
|
5233
5251
|
return n.patch(e, r), n.applyData(e, r);
|
|
5234
5252
|
}
|
|
5235
|
-
function
|
|
5236
|
-
const r = n.all(e), i = t ?
|
|
5253
|
+
function ba(n, e, t) {
|
|
5254
|
+
const r = n.all(e), i = t ? wa(t) : yr(e), l = {}, o = [];
|
|
5237
5255
|
if (typeof e.checked == "boolean") {
|
|
5238
5256
|
const c = r[0];
|
|
5239
|
-
let
|
|
5240
|
-
c && c.type === "element" && c.tagName === "p" ?
|
|
5257
|
+
let f;
|
|
5258
|
+
c && c.type === "element" && c.tagName === "p" ? f = c : (f = { type: "element", tagName: "p", properties: {}, children: [] }, r.unshift(f)), f.children.length > 0 && f.children.unshift({ type: "text", value: " " }), f.children.unshift({
|
|
5241
5259
|
type: "element",
|
|
5242
5260
|
tagName: "input",
|
|
5243
5261
|
properties: { type: "checkbox", checked: e.checked, disabled: !0 },
|
|
@@ -5256,7 +5274,7 @@ function xa(n, e, t) {
|
|
|
5256
5274
|
const u = { type: "element", tagName: "li", properties: l, children: o };
|
|
5257
5275
|
return n.patch(e, u), n.applyData(e, u);
|
|
5258
5276
|
}
|
|
5259
|
-
function
|
|
5277
|
+
function wa(n) {
|
|
5260
5278
|
let e = !1;
|
|
5261
5279
|
if (n.type === "list") {
|
|
5262
5280
|
e = n.spread || !1;
|
|
@@ -5271,7 +5289,7 @@ function yr(n) {
|
|
|
5271
5289
|
const e = n.spread;
|
|
5272
5290
|
return e ?? n.children.length > 1;
|
|
5273
5291
|
}
|
|
5274
|
-
function
|
|
5292
|
+
function Sa(n, e) {
|
|
5275
5293
|
const t = {}, r = n.all(e);
|
|
5276
5294
|
let i = -1;
|
|
5277
5295
|
for (typeof e.start == "number" && e.start !== 1 && (t.start = e.start); ++i < r.length; ) {
|
|
@@ -5289,7 +5307,7 @@ function wa(n, e) {
|
|
|
5289
5307
|
};
|
|
5290
5308
|
return n.patch(e, l), n.applyData(e, l);
|
|
5291
5309
|
}
|
|
5292
|
-
function
|
|
5310
|
+
function Ca(n, e) {
|
|
5293
5311
|
const t = {
|
|
5294
5312
|
type: "element",
|
|
5295
5313
|
tagName: "p",
|
|
@@ -5298,11 +5316,11 @@ function Sa(n, e) {
|
|
|
5298
5316
|
};
|
|
5299
5317
|
return n.patch(e, t), n.applyData(e, t);
|
|
5300
5318
|
}
|
|
5301
|
-
function
|
|
5319
|
+
function Ia(n, e) {
|
|
5302
5320
|
const t = { type: "root", children: n.wrap(n.all(e)) };
|
|
5303
5321
|
return n.patch(e, t), n.applyData(e, t);
|
|
5304
5322
|
}
|
|
5305
|
-
function
|
|
5323
|
+
function Ea(n, e) {
|
|
5306
5324
|
const t = {
|
|
5307
5325
|
type: "element",
|
|
5308
5326
|
tagName: "strong",
|
|
@@ -5311,7 +5329,7 @@ function Ia(n, e) {
|
|
|
5311
5329
|
};
|
|
5312
5330
|
return n.patch(e, t), n.applyData(e, t);
|
|
5313
5331
|
}
|
|
5314
|
-
function
|
|
5332
|
+
function Pa(n, e) {
|
|
5315
5333
|
const t = n.all(e), r = t.shift(), i = [];
|
|
5316
5334
|
if (r) {
|
|
5317
5335
|
const o = {
|
|
@@ -5339,15 +5357,15 @@ function Ea(n, e) {
|
|
|
5339
5357
|
};
|
|
5340
5358
|
return n.patch(e, l), n.applyData(e, l);
|
|
5341
5359
|
}
|
|
5342
|
-
function
|
|
5360
|
+
function Aa(n, e, t) {
|
|
5343
5361
|
const r = t ? t.children : void 0, l = (r ? r.indexOf(e) : 1) === 0 ? "th" : "td", o = t && t.type === "table" ? t.align : void 0, a = o ? o.length : e.children.length;
|
|
5344
5362
|
let s = -1;
|
|
5345
5363
|
const u = [];
|
|
5346
5364
|
for (; ++s < a; ) {
|
|
5347
|
-
const
|
|
5348
|
-
|
|
5365
|
+
const f = e.children[s], d = {}, p = o ? o[s] : void 0;
|
|
5366
|
+
p && (d.align = p);
|
|
5349
5367
|
let w = { type: "element", tagName: l, properties: d, children: [] };
|
|
5350
|
-
|
|
5368
|
+
f && (w.children = n.all(f), n.patch(f, w), w = n.applyData(f, w)), u.push(w);
|
|
5351
5369
|
}
|
|
5352
5370
|
const c = {
|
|
5353
5371
|
type: "element",
|
|
@@ -5357,7 +5375,7 @@ function Pa(n, e, t) {
|
|
|
5357
5375
|
};
|
|
5358
5376
|
return n.patch(e, c), n.applyData(e, c);
|
|
5359
5377
|
}
|
|
5360
|
-
function
|
|
5378
|
+
function Ta(n, e) {
|
|
5361
5379
|
const t = {
|
|
5362
5380
|
type: "element",
|
|
5363
5381
|
tagName: "td",
|
|
@@ -5368,7 +5386,7 @@ function Aa(n, e) {
|
|
|
5368
5386
|
return n.patch(e, t), n.applyData(e, t);
|
|
5369
5387
|
}
|
|
5370
5388
|
const Et = 9, Pt = 32;
|
|
5371
|
-
function
|
|
5389
|
+
function La(n) {
|
|
5372
5390
|
const e = String(n), t = /\r?\n|\r/g;
|
|
5373
5391
|
let r = t.exec(e), i = 0;
|
|
5374
5392
|
const l = [];
|
|
@@ -5393,11 +5411,11 @@ function At(n, e, t) {
|
|
|
5393
5411
|
}
|
|
5394
5412
|
return i > r ? n.slice(r, i) : "";
|
|
5395
5413
|
}
|
|
5396
|
-
function
|
|
5397
|
-
const t = { type: "text", value:
|
|
5414
|
+
function za(n, e) {
|
|
5415
|
+
const t = { type: "text", value: La(String(e.value)) };
|
|
5398
5416
|
return n.patch(e, t), n.applyData(e, t);
|
|
5399
5417
|
}
|
|
5400
|
-
function
|
|
5418
|
+
function _a(n, e) {
|
|
5401
5419
|
const t = {
|
|
5402
5420
|
type: "element",
|
|
5403
5421
|
tagName: "hr",
|
|
@@ -5406,31 +5424,31 @@ function za(n, e) {
|
|
|
5406
5424
|
};
|
|
5407
5425
|
return n.patch(e, t), n.applyData(e, t);
|
|
5408
5426
|
}
|
|
5409
|
-
const
|
|
5410
|
-
blockquote:
|
|
5411
|
-
break:
|
|
5412
|
-
code:
|
|
5413
|
-
delete:
|
|
5414
|
-
emphasis:
|
|
5415
|
-
footnoteReference:
|
|
5416
|
-
heading:
|
|
5417
|
-
html:
|
|
5418
|
-
imageReference:
|
|
5419
|
-
image:
|
|
5420
|
-
inlineCode:
|
|
5421
|
-
linkReference:
|
|
5422
|
-
link:
|
|
5423
|
-
listItem:
|
|
5424
|
-
list:
|
|
5425
|
-
paragraph:
|
|
5427
|
+
const Ma = {
|
|
5428
|
+
blockquote: aa,
|
|
5429
|
+
break: ua,
|
|
5430
|
+
code: sa,
|
|
5431
|
+
delete: ca,
|
|
5432
|
+
emphasis: fa,
|
|
5433
|
+
footnoteReference: pa,
|
|
5434
|
+
heading: ha,
|
|
5435
|
+
html: ma,
|
|
5436
|
+
imageReference: da,
|
|
5437
|
+
image: ga,
|
|
5438
|
+
inlineCode: ya,
|
|
5439
|
+
linkReference: ka,
|
|
5440
|
+
link: xa,
|
|
5441
|
+
listItem: ba,
|
|
5442
|
+
list: Sa,
|
|
5443
|
+
paragraph: Ca,
|
|
5426
5444
|
// @ts-expect-error: root is different, but hard to type.
|
|
5427
|
-
root:
|
|
5428
|
-
strong:
|
|
5429
|
-
table:
|
|
5430
|
-
tableCell:
|
|
5431
|
-
tableRow:
|
|
5432
|
-
text:
|
|
5433
|
-
thematicBreak:
|
|
5445
|
+
root: Ia,
|
|
5446
|
+
strong: Ea,
|
|
5447
|
+
table: Pa,
|
|
5448
|
+
tableCell: Ta,
|
|
5449
|
+
tableRow: Aa,
|
|
5450
|
+
text: za,
|
|
5451
|
+
thematicBreak: _a,
|
|
5434
5452
|
toml: Kn,
|
|
5435
5453
|
yaml: Kn,
|
|
5436
5454
|
definition: Kn,
|
|
@@ -5438,7 +5456,7 @@ const _a = {
|
|
|
5438
5456
|
};
|
|
5439
5457
|
function Kn() {
|
|
5440
5458
|
}
|
|
5441
|
-
function
|
|
5459
|
+
function Na(n, e) {
|
|
5442
5460
|
const t = [{ type: "text", value: "↩" }];
|
|
5443
5461
|
return e > 1 && t.push({
|
|
5444
5462
|
type: "element",
|
|
@@ -5447,11 +5465,11 @@ function Ma(n, e) {
|
|
|
5447
5465
|
children: [{ type: "text", value: String(e) }]
|
|
5448
5466
|
}), t;
|
|
5449
5467
|
}
|
|
5450
|
-
function
|
|
5468
|
+
function va(n, e) {
|
|
5451
5469
|
return "Back to reference " + (n + 1) + (e > 1 ? "-" + e : "");
|
|
5452
5470
|
}
|
|
5453
5471
|
function Ra(n) {
|
|
5454
|
-
const e = typeof n.options.clobberPrefix == "string" ? n.options.clobberPrefix : "user-content-", t = n.options.footnoteBackContent ||
|
|
5472
|
+
const e = typeof n.options.clobberPrefix == "string" ? n.options.clobberPrefix : "user-content-", t = n.options.footnoteBackContent || Na, r = n.options.footnoteBackLabel || va, i = n.options.footnoteLabel || "Footnotes", l = n.options.footnoteLabelTagName || "h2", o = n.options.footnoteLabelProperties || {
|
|
5455
5473
|
className: ["sr-only"]
|
|
5456
5474
|
}, a = [];
|
|
5457
5475
|
let s = -1;
|
|
@@ -5461,19 +5479,19 @@ function Ra(n) {
|
|
|
5461
5479
|
);
|
|
5462
5480
|
if (!u)
|
|
5463
5481
|
continue;
|
|
5464
|
-
const c = n.all(u),
|
|
5465
|
-
let
|
|
5466
|
-
const w = [], b = n.footnoteCounts.get(
|
|
5467
|
-
for (; b !== void 0 && ++
|
|
5482
|
+
const c = n.all(u), f = String(u.identifier).toUpperCase(), d = _n(f.toLowerCase());
|
|
5483
|
+
let p = 0;
|
|
5484
|
+
const w = [], b = n.footnoteCounts.get(f);
|
|
5485
|
+
for (; b !== void 0 && ++p <= b; ) {
|
|
5468
5486
|
w.length > 0 && w.push({ type: "text", value: " " });
|
|
5469
|
-
let T = typeof t == "string" ? t : t(s,
|
|
5487
|
+
let T = typeof t == "string" ? t : t(s, p);
|
|
5470
5488
|
typeof T == "string" && (T = { type: "text", value: T }), w.push({
|
|
5471
5489
|
type: "element",
|
|
5472
5490
|
tagName: "a",
|
|
5473
5491
|
properties: {
|
|
5474
|
-
href: "#" + e + "fnref-" + d + (
|
|
5492
|
+
href: "#" + e + "fnref-" + d + (p > 1 ? "-" + p : ""),
|
|
5475
5493
|
dataFootnoteBackref: "",
|
|
5476
|
-
ariaLabel: typeof r == "string" ? r : r(s,
|
|
5494
|
+
ariaLabel: typeof r == "string" ? r : r(s, p),
|
|
5477
5495
|
className: ["data-footnote-backref"]
|
|
5478
5496
|
},
|
|
5479
5497
|
children: Array.isArray(T) ? T : [T]
|
|
@@ -5521,11 +5539,11 @@ function Ra(n) {
|
|
|
5521
5539
|
]
|
|
5522
5540
|
};
|
|
5523
5541
|
}
|
|
5524
|
-
const Pe = {}.hasOwnProperty,
|
|
5525
|
-
function
|
|
5526
|
-
const t = e ||
|
|
5542
|
+
const Pe = {}.hasOwnProperty, Da = {};
|
|
5543
|
+
function Oa(n, e) {
|
|
5544
|
+
const t = e || Da, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), o = { ...Ma, ...t.handlers }, a = {
|
|
5527
5545
|
all: u,
|
|
5528
|
-
applyData:
|
|
5546
|
+
applyData: Ba,
|
|
5529
5547
|
definitionById: r,
|
|
5530
5548
|
footnoteById: i,
|
|
5531
5549
|
footnoteCounts: l,
|
|
@@ -5533,19 +5551,19 @@ function Da(n, e) {
|
|
|
5533
5551
|
handlers: o,
|
|
5534
5552
|
one: s,
|
|
5535
5553
|
options: t,
|
|
5536
|
-
patch:
|
|
5537
|
-
wrap:
|
|
5554
|
+
patch: Fa,
|
|
5555
|
+
wrap: ja
|
|
5538
5556
|
};
|
|
5539
5557
|
return wn(n, function(c) {
|
|
5540
5558
|
if (c.type === "definition" || c.type === "footnoteDefinition") {
|
|
5541
|
-
const
|
|
5542
|
-
|
|
5559
|
+
const f = c.type === "definition" ? r : i, d = String(c.identifier).toUpperCase();
|
|
5560
|
+
f.has(d) || f.set(d, c);
|
|
5543
5561
|
}
|
|
5544
5562
|
}), a;
|
|
5545
|
-
function s(c,
|
|
5546
|
-
const d = c.type,
|
|
5547
|
-
if (Pe.call(a.handlers, d) &&
|
|
5548
|
-
return
|
|
5563
|
+
function s(c, f) {
|
|
5564
|
+
const d = c.type, p = a.handlers[d];
|
|
5565
|
+
if (Pe.call(a.handlers, d) && p)
|
|
5566
|
+
return p(a, c, f);
|
|
5549
5567
|
if (a.options.passThrough && a.options.passThrough.includes(d)) {
|
|
5550
5568
|
if ("children" in c) {
|
|
5551
5569
|
const { children: b, ...L } = c, x = bn(L);
|
|
@@ -5553,31 +5571,31 @@ function Da(n, e) {
|
|
|
5553
5571
|
}
|
|
5554
5572
|
return bn(c);
|
|
5555
5573
|
}
|
|
5556
|
-
return (a.options.unknownHandler ||
|
|
5574
|
+
return (a.options.unknownHandler || Ua)(a, c, f);
|
|
5557
5575
|
}
|
|
5558
5576
|
function u(c) {
|
|
5559
|
-
const
|
|
5577
|
+
const f = [];
|
|
5560
5578
|
if ("children" in c) {
|
|
5561
5579
|
const d = c.children;
|
|
5562
|
-
let
|
|
5563
|
-
for (; ++
|
|
5564
|
-
const w = a.one(d[
|
|
5580
|
+
let p = -1;
|
|
5581
|
+
for (; ++p < d.length; ) {
|
|
5582
|
+
const w = a.one(d[p], c);
|
|
5565
5583
|
if (w) {
|
|
5566
|
-
if (
|
|
5584
|
+
if (p && d[p - 1].type === "break" && (!Array.isArray(w) && w.type === "text" && (w.value = Tt(w.value)), !Array.isArray(w) && w.type === "element")) {
|
|
5567
5585
|
const b = w.children[0];
|
|
5568
5586
|
b && b.type === "text" && (b.value = Tt(b.value));
|
|
5569
5587
|
}
|
|
5570
|
-
Array.isArray(w) ?
|
|
5588
|
+
Array.isArray(w) ? f.push(...w) : f.push(w);
|
|
5571
5589
|
}
|
|
5572
5590
|
}
|
|
5573
5591
|
}
|
|
5574
|
-
return
|
|
5592
|
+
return f;
|
|
5575
5593
|
}
|
|
5576
5594
|
}
|
|
5577
|
-
function Oa(n, e) {
|
|
5578
|
-
n.position && (e.position = _i(n));
|
|
5579
|
-
}
|
|
5580
5595
|
function Fa(n, e) {
|
|
5596
|
+
n.position && (e.position = Mi(n));
|
|
5597
|
+
}
|
|
5598
|
+
function Ba(n, e) {
|
|
5581
5599
|
let t = e;
|
|
5582
5600
|
if (n && n.data) {
|
|
5583
5601
|
const r = n.data.hName, i = n.data.hChildren, l = n.data.hProperties;
|
|
@@ -5592,7 +5610,7 @@ function Fa(n, e) {
|
|
|
5592
5610
|
}
|
|
5593
5611
|
return t;
|
|
5594
5612
|
}
|
|
5595
|
-
function
|
|
5613
|
+
function Ua(n, e) {
|
|
5596
5614
|
const t = e.data || {}, r = "value" in e && !(Pe.call(t, "hProperties") || Pe.call(t, "hChildren")) ? { type: "text", value: e.value } : {
|
|
5597
5615
|
type: "element",
|
|
5598
5616
|
tagName: "div",
|
|
@@ -5601,7 +5619,7 @@ function Ba(n, e) {
|
|
|
5601
5619
|
};
|
|
5602
5620
|
return n.patch(e, r), n.applyData(e, r);
|
|
5603
5621
|
}
|
|
5604
|
-
function
|
|
5622
|
+
function ja(n, e) {
|
|
5605
5623
|
const t = [];
|
|
5606
5624
|
let r = -1;
|
|
5607
5625
|
for (e && t.push({ type: "text", value: `
|
|
@@ -5618,11 +5636,11 @@ function Tt(n) {
|
|
|
5618
5636
|
return n.slice(e);
|
|
5619
5637
|
}
|
|
5620
5638
|
function Lt(n, e) {
|
|
5621
|
-
const t =
|
|
5639
|
+
const t = Oa(n, e), r = t.one(n, void 0), i = Ra(t), l = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
|
|
5622
5640
|
return i && l.children.push({ type: "text", value: `
|
|
5623
5641
|
` }, i), l;
|
|
5624
5642
|
}
|
|
5625
|
-
function
|
|
5643
|
+
function $a(n, e) {
|
|
5626
5644
|
return n && "run" in n ? async function(t, r) {
|
|
5627
5645
|
const i = (
|
|
5628
5646
|
/** @type {HastRoot} */
|
|
@@ -5641,7 +5659,7 @@ function zt(n) {
|
|
|
5641
5659
|
throw n;
|
|
5642
5660
|
}
|
|
5643
5661
|
var ce, _t;
|
|
5644
|
-
function
|
|
5662
|
+
function Ha() {
|
|
5645
5663
|
if (_t) return ce;
|
|
5646
5664
|
_t = 1;
|
|
5647
5665
|
var n = Object.prototype.hasOwnProperty, e = Object.prototype.toString, t = Object.defineProperty, r = Object.getOwnPropertyDescriptor, i = function(u) {
|
|
@@ -5649,8 +5667,8 @@ function $a() {
|
|
|
5649
5667
|
}, l = function(u) {
|
|
5650
5668
|
if (!u || e.call(u) !== "[object Object]")
|
|
5651
5669
|
return !1;
|
|
5652
|
-
var c = n.call(u, "constructor"),
|
|
5653
|
-
if (u.constructor && !c && !
|
|
5670
|
+
var c = n.call(u, "constructor"), f = u.constructor && u.constructor.prototype && n.call(u.constructor.prototype, "isPrototypeOf");
|
|
5671
|
+
if (u.constructor && !c && !f)
|
|
5654
5672
|
return !1;
|
|
5655
5673
|
var d;
|
|
5656
5674
|
for (d in u)
|
|
@@ -5672,23 +5690,23 @@ function $a() {
|
|
|
5672
5690
|
return u[c];
|
|
5673
5691
|
};
|
|
5674
5692
|
return ce = function s() {
|
|
5675
|
-
var u, c,
|
|
5693
|
+
var u, c, f, d, p, w, b = arguments[0], L = 1, x = arguments.length, T = !1;
|
|
5676
5694
|
for (typeof b == "boolean" && (T = b, b = arguments[1] || {}, L = 2), (b == null || typeof b != "object" && typeof b != "function") && (b = {}); L < x; ++L)
|
|
5677
5695
|
if (u = arguments[L], u != null)
|
|
5678
5696
|
for (c in u)
|
|
5679
|
-
|
|
5697
|
+
f = a(b, c), d = a(u, c), b !== d && (T && d && (l(d) || (p = i(d))) ? (p ? (p = !1, w = f && i(f) ? f : []) : w = f && l(f) ? f : {}, o(b, { name: c, newValue: s(T, w, d) })) : typeof d < "u" && o(b, { name: c, newValue: d }));
|
|
5680
5698
|
return b;
|
|
5681
5699
|
}, ce;
|
|
5682
5700
|
}
|
|
5683
|
-
var
|
|
5684
|
-
const fe = /* @__PURE__ */ Ot(
|
|
5701
|
+
var Va = /* @__PURE__ */ Ha();
|
|
5702
|
+
const fe = /* @__PURE__ */ Ot(Va);
|
|
5685
5703
|
function Ae(n) {
|
|
5686
5704
|
if (typeof n != "object" || n === null)
|
|
5687
5705
|
return !1;
|
|
5688
5706
|
const e = Object.getPrototypeOf(n);
|
|
5689
5707
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in n) && !(Symbol.iterator in n);
|
|
5690
5708
|
}
|
|
5691
|
-
function
|
|
5709
|
+
function qa() {
|
|
5692
5710
|
const n = [], e = { run: t, use: r };
|
|
5693
5711
|
return e;
|
|
5694
5712
|
function t(...i) {
|
|
@@ -5699,14 +5717,14 @@ function Va() {
|
|
|
5699
5717
|
a(null, ...i);
|
|
5700
5718
|
function a(s, ...u) {
|
|
5701
5719
|
const c = n[++l];
|
|
5702
|
-
let
|
|
5720
|
+
let f = -1;
|
|
5703
5721
|
if (s) {
|
|
5704
5722
|
o(s);
|
|
5705
5723
|
return;
|
|
5706
5724
|
}
|
|
5707
|
-
for (; ++
|
|
5708
|
-
(u[
|
|
5709
|
-
i = u, c ?
|
|
5725
|
+
for (; ++f < i.length; )
|
|
5726
|
+
(u[f] === null || u[f] === void 0) && (u[f] = i[f]);
|
|
5727
|
+
i = u, c ? Wa(c, a)(...u) : o(null, ...u);
|
|
5710
5728
|
}
|
|
5711
5729
|
}
|
|
5712
5730
|
function r(i) {
|
|
@@ -5717,7 +5735,7 @@ function Va() {
|
|
|
5717
5735
|
return n.push(i), e;
|
|
5718
5736
|
}
|
|
5719
5737
|
}
|
|
5720
|
-
function
|
|
5738
|
+
function Wa(n, e) {
|
|
5721
5739
|
let t;
|
|
5722
5740
|
return r;
|
|
5723
5741
|
function r(...o) {
|
|
@@ -5744,8 +5762,8 @@ function qa(n, e) {
|
|
|
5744
5762
|
i(null, o);
|
|
5745
5763
|
}
|
|
5746
5764
|
}
|
|
5747
|
-
const un = { basename:
|
|
5748
|
-
function
|
|
5765
|
+
const un = { basename: Xa, dirname: Ga, extname: Ya, join: Ka, sep: "/" };
|
|
5766
|
+
function Xa(n, e) {
|
|
5749
5767
|
if (e !== void 0 && typeof e != "string")
|
|
5750
5768
|
throw new TypeError('"ext" argument must be a string');
|
|
5751
5769
|
Xn(n);
|
|
@@ -5773,7 +5791,7 @@ function Wa(n, e) {
|
|
|
5773
5791
|
o < 0 && (l = !0, o = i + 1), a > -1 && (n.codePointAt(i) === e.codePointAt(a--) ? a < 0 && (r = i) : (a = -1, r = o));
|
|
5774
5792
|
return t === r ? r = o : r < 0 && (r = n.length), n.slice(t, r);
|
|
5775
5793
|
}
|
|
5776
|
-
function
|
|
5794
|
+
function Ga(n) {
|
|
5777
5795
|
if (Xn(n), n.length === 0)
|
|
5778
5796
|
return ".";
|
|
5779
5797
|
let e = -1, t = n.length, r;
|
|
@@ -5786,7 +5804,7 @@ function Xa(n) {
|
|
|
5786
5804
|
} else r || (r = !0);
|
|
5787
5805
|
return e < 0 ? n.codePointAt(0) === 47 ? "/" : "." : e === 1 && n.codePointAt(0) === 47 ? "//" : n.slice(0, e);
|
|
5788
5806
|
}
|
|
5789
|
-
function
|
|
5807
|
+
function Ya(n) {
|
|
5790
5808
|
Xn(n);
|
|
5791
5809
|
let e = n.length, t = -1, r = 0, i = -1, l = 0, o;
|
|
5792
5810
|
for (; e--; ) {
|
|
@@ -5804,19 +5822,19 @@ function Ga(n) {
|
|
|
5804
5822
|
l === 0 || // The (right-most) trimmed path component is exactly `..`.
|
|
5805
5823
|
l === 1 && i === t - 1 && i === r + 1 ? "" : n.slice(i, t);
|
|
5806
5824
|
}
|
|
5807
|
-
function
|
|
5825
|
+
function Ka(...n) {
|
|
5808
5826
|
let e = -1, t;
|
|
5809
5827
|
for (; ++e < n.length; )
|
|
5810
5828
|
Xn(n[e]), n[e] && (t = t === void 0 ? n[e] : t + "/" + n[e]);
|
|
5811
|
-
return t === void 0 ? "." :
|
|
5829
|
+
return t === void 0 ? "." : Qa(t);
|
|
5812
5830
|
}
|
|
5813
|
-
function
|
|
5831
|
+
function Qa(n) {
|
|
5814
5832
|
Xn(n);
|
|
5815
5833
|
const e = n.codePointAt(0) === 47;
|
|
5816
|
-
let t =
|
|
5834
|
+
let t = Ja(n, !e);
|
|
5817
5835
|
return t.length === 0 && !e && (t = "."), t.length > 0 && n.codePointAt(n.length - 1) === 47 && (t += "/"), e ? "/" + t : t;
|
|
5818
5836
|
}
|
|
5819
|
-
function
|
|
5837
|
+
function Ja(n, e) {
|
|
5820
5838
|
let t = "", r = 0, i = -1, l = 0, o = -1, a, s;
|
|
5821
5839
|
for (; ++o <= n.length; ) {
|
|
5822
5840
|
if (o < n.length)
|
|
@@ -5853,15 +5871,15 @@ function Xn(n) {
|
|
|
5853
5871
|
"Path must be a string. Received " + JSON.stringify(n)
|
|
5854
5872
|
);
|
|
5855
5873
|
}
|
|
5856
|
-
const
|
|
5857
|
-
function
|
|
5874
|
+
const Za = { cwd: nu };
|
|
5875
|
+
function nu() {
|
|
5858
5876
|
return "/";
|
|
5859
5877
|
}
|
|
5860
5878
|
function Te(n) {
|
|
5861
5879
|
return !!(n !== null && typeof n == "object" && "href" in n && n.href && "protocol" in n && n.protocol && // @ts-expect-error: indexing is fine.
|
|
5862
5880
|
n.auth === void 0);
|
|
5863
5881
|
}
|
|
5864
|
-
function
|
|
5882
|
+
function eu(n) {
|
|
5865
5883
|
if (typeof n == "string")
|
|
5866
5884
|
n = new URL(n);
|
|
5867
5885
|
else if (!Te(n)) {
|
|
@@ -5874,9 +5892,9 @@ function nu(n) {
|
|
|
5874
5892
|
const e = new TypeError("The URL must be of scheme file");
|
|
5875
5893
|
throw e.code = "ERR_INVALID_URL_SCHEME", e;
|
|
5876
5894
|
}
|
|
5877
|
-
return
|
|
5895
|
+
return tu(n);
|
|
5878
5896
|
}
|
|
5879
|
-
function
|
|
5897
|
+
function tu(n) {
|
|
5880
5898
|
if (n.hostname !== "") {
|
|
5881
5899
|
const r = new TypeError(
|
|
5882
5900
|
'File URL host must be "localhost" or empty on darwin'
|
|
@@ -5908,7 +5926,7 @@ const pe = (
|
|
|
5908
5926
|
"dirname"
|
|
5909
5927
|
]
|
|
5910
5928
|
);
|
|
5911
|
-
class
|
|
5929
|
+
class ru {
|
|
5912
5930
|
/**
|
|
5913
5931
|
* Create a new virtual file.
|
|
5914
5932
|
*
|
|
@@ -5933,7 +5951,7 @@ class tu {
|
|
|
5933
5951
|
*/
|
|
5934
5952
|
constructor(e) {
|
|
5935
5953
|
let t;
|
|
5936
|
-
e ? Te(e) ? t = { path: e } : typeof e == "string" ||
|
|
5954
|
+
e ? Te(e) ? t = { path: e } : typeof e == "string" || iu(e) ? t = { value: e } : t = e : t = {}, this.cwd = "cwd" in t ? "" : Za.cwd(), this.data = {}, this.history = [], this.messages = [];
|
|
5937
5955
|
let r = -1;
|
|
5938
5956
|
for (; ++r < pe.length; ) {
|
|
5939
5957
|
const l = pe[r];
|
|
@@ -6041,7 +6059,7 @@ class tu {
|
|
|
6041
6059
|
* Nothing.
|
|
6042
6060
|
*/
|
|
6043
6061
|
set path(e) {
|
|
6044
|
-
Te(e) && (e =
|
|
6062
|
+
Te(e) && (e = eu(e)), me(e, "path"), this.path !== e && this.history.push(e);
|
|
6045
6063
|
}
|
|
6046
6064
|
/**
|
|
6047
6065
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -6292,10 +6310,10 @@ function Mt(n, e) {
|
|
|
6292
6310
|
if (!n)
|
|
6293
6311
|
throw new Error("Setting `" + e + "` requires `path` to be set too");
|
|
6294
6312
|
}
|
|
6295
|
-
function
|
|
6313
|
+
function iu(n) {
|
|
6296
6314
|
return !!(n && typeof n == "object" && "byteLength" in n && "byteOffset" in n);
|
|
6297
6315
|
}
|
|
6298
|
-
const
|
|
6316
|
+
const lu = (
|
|
6299
6317
|
/**
|
|
6300
6318
|
* @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
|
|
6301
6319
|
*/
|
|
@@ -6316,13 +6334,13 @@ const iu = (
|
|
|
6316
6334
|
};
|
|
6317
6335
|
return Object.setPrototypeOf(l, r), l;
|
|
6318
6336
|
})
|
|
6319
|
-
),
|
|
6320
|
-
class Ve extends
|
|
6337
|
+
), ou = {}.hasOwnProperty;
|
|
6338
|
+
class Ve extends lu {
|
|
6321
6339
|
/**
|
|
6322
6340
|
* Create a processor.
|
|
6323
6341
|
*/
|
|
6324
6342
|
constructor() {
|
|
6325
|
-
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 =
|
|
6343
|
+
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 = qa();
|
|
6326
6344
|
}
|
|
6327
6345
|
/**
|
|
6328
6346
|
* Copy a processor.
|
|
@@ -6407,7 +6425,7 @@ class Ve extends iu {
|
|
|
6407
6425
|
* the entire dataset when getting without key.
|
|
6408
6426
|
*/
|
|
6409
6427
|
data(e, t) {
|
|
6410
|
-
return typeof e == "string" ? arguments.length === 2 ? (ye("data", this.frozen), this.namespace[e] = t, this) :
|
|
6428
|
+
return typeof e == "string" ? arguments.length === 2 ? (ye("data", this.frozen), this.namespace[e] = t, this) : ou.call(this.namespace, e) && this.namespace[e] || void 0 : e ? (ye("data", this.frozen), this.namespace = e, this) : this.namespace;
|
|
6411
6429
|
}
|
|
6412
6430
|
/**
|
|
6413
6431
|
* Freeze a processor.
|
|
@@ -6514,22 +6532,22 @@ class Ve extends iu {
|
|
|
6514
6532
|
/** @type {unknown} */
|
|
6515
6533
|
r.parse(a)
|
|
6516
6534
|
);
|
|
6517
|
-
r.run(s, a, function(c,
|
|
6518
|
-
if (c || !
|
|
6535
|
+
r.run(s, a, function(c, f, d) {
|
|
6536
|
+
if (c || !f || !d)
|
|
6519
6537
|
return u(c);
|
|
6520
|
-
const
|
|
6538
|
+
const p = (
|
|
6521
6539
|
/** @type {CompileTree extends undefined ? Node : CompileTree} */
|
|
6522
6540
|
/** @type {unknown} */
|
|
6523
|
-
|
|
6524
|
-
), w = r.stringify(
|
|
6525
|
-
|
|
6541
|
+
f
|
|
6542
|
+
), w = r.stringify(p, d);
|
|
6543
|
+
su(w) ? d.value = w : d.result = w, u(
|
|
6526
6544
|
c,
|
|
6527
6545
|
/** @type {VFileWithOutput<CompileResult>} */
|
|
6528
6546
|
d
|
|
6529
6547
|
);
|
|
6530
6548
|
});
|
|
6531
|
-
function u(c,
|
|
6532
|
-
c || !
|
|
6549
|
+
function u(c, f) {
|
|
6550
|
+
c || !f ? o(c) : l ? l(f) : t(void 0, f);
|
|
6533
6551
|
}
|
|
6534
6552
|
}
|
|
6535
6553
|
}
|
|
@@ -6566,7 +6584,7 @@ class Ve extends iu {
|
|
|
6566
6584
|
*/
|
|
6567
6585
|
processSync(e) {
|
|
6568
6586
|
let t = !1, r;
|
|
6569
|
-
return this.freeze(), de("processSync", this.parser || this.Parser), ge("processSync", this.compiler || this.Compiler), this.process(e, i),
|
|
6587
|
+
return this.freeze(), de("processSync", this.parser || this.Parser), ge("processSync", this.compiler || this.Compiler), this.process(e, i), vt("processSync", "process", t), r;
|
|
6570
6588
|
function i(l, o) {
|
|
6571
6589
|
t = !0, zt(l), r = o;
|
|
6572
6590
|
}
|
|
@@ -6616,12 +6634,12 @@ class Ve extends iu {
|
|
|
6616
6634
|
function l(o, a) {
|
|
6617
6635
|
const s = Qn(t);
|
|
6618
6636
|
i.run(e, s, u);
|
|
6619
|
-
function u(c,
|
|
6620
|
-
const
|
|
6637
|
+
function u(c, f, d) {
|
|
6638
|
+
const p = (
|
|
6621
6639
|
/** @type {TailTree extends undefined ? Node : TailTree} */
|
|
6622
|
-
|
|
6640
|
+
f || e
|
|
6623
6641
|
);
|
|
6624
|
-
c ? a(c) : o ? o(
|
|
6642
|
+
c ? a(c) : o ? o(p) : r(void 0, p, d);
|
|
6625
6643
|
}
|
|
6626
6644
|
}
|
|
6627
6645
|
}
|
|
@@ -6644,7 +6662,7 @@ class Ve extends iu {
|
|
|
6644
6662
|
*/
|
|
6645
6663
|
runSync(e, t) {
|
|
6646
6664
|
let r = !1, i;
|
|
6647
|
-
return this.run(e, t, l),
|
|
6665
|
+
return this.run(e, t, l), vt("runSync", "run", r), i;
|
|
6648
6666
|
function l(o, a) {
|
|
6649
6667
|
zt(o), i = a, r = !0;
|
|
6650
6668
|
}
|
|
@@ -6754,11 +6772,11 @@ class Ve extends iu {
|
|
|
6754
6772
|
s(u, []);
|
|
6755
6773
|
else if (typeof u == "object")
|
|
6756
6774
|
if (Array.isArray(u)) {
|
|
6757
|
-
const [c, ...
|
|
6775
|
+
const [c, ...f] = (
|
|
6758
6776
|
/** @type {PluginTuple<Array<unknown>>} */
|
|
6759
6777
|
u
|
|
6760
6778
|
);
|
|
6761
|
-
s(c,
|
|
6779
|
+
s(c, f);
|
|
6762
6780
|
} else
|
|
6763
6781
|
o(u);
|
|
6764
6782
|
else
|
|
@@ -6775,30 +6793,30 @@ class Ve extends iu {
|
|
|
6775
6793
|
let c = -1;
|
|
6776
6794
|
if (u != null) if (Array.isArray(u))
|
|
6777
6795
|
for (; ++c < u.length; ) {
|
|
6778
|
-
const
|
|
6779
|
-
l(
|
|
6796
|
+
const f = u[c];
|
|
6797
|
+
l(f);
|
|
6780
6798
|
}
|
|
6781
6799
|
else
|
|
6782
6800
|
throw new TypeError("Expected a list of plugins, not `" + u + "`");
|
|
6783
6801
|
}
|
|
6784
6802
|
function s(u, c) {
|
|
6785
|
-
let
|
|
6786
|
-
for (; ++
|
|
6787
|
-
if (r[
|
|
6788
|
-
d =
|
|
6803
|
+
let f = -1, d = -1;
|
|
6804
|
+
for (; ++f < r.length; )
|
|
6805
|
+
if (r[f][0] === u) {
|
|
6806
|
+
d = f;
|
|
6789
6807
|
break;
|
|
6790
6808
|
}
|
|
6791
6809
|
if (d === -1)
|
|
6792
6810
|
r.push([u, ...c]);
|
|
6793
6811
|
else if (c.length > 0) {
|
|
6794
|
-
let [
|
|
6812
|
+
let [p, ...w] = c;
|
|
6795
6813
|
const b = r[d][1];
|
|
6796
|
-
Ae(b) && Ae(
|
|
6814
|
+
Ae(b) && Ae(p) && (p = fe(!0, b, p)), r[d] = [u, p, ...w];
|
|
6797
6815
|
}
|
|
6798
6816
|
}
|
|
6799
6817
|
}
|
|
6800
6818
|
}
|
|
6801
|
-
const
|
|
6819
|
+
const au = new Ve().freeze();
|
|
6802
6820
|
function de(n, e) {
|
|
6803
6821
|
if (typeof e != "function")
|
|
6804
6822
|
throw new TypeError("Cannot `" + n + "` without `parser`");
|
|
@@ -6817,25 +6835,25 @@ function Nt(n) {
|
|
|
6817
6835
|
if (!Ae(n) || typeof n.type != "string")
|
|
6818
6836
|
throw new TypeError("Expected node, got `" + n + "`");
|
|
6819
6837
|
}
|
|
6820
|
-
function
|
|
6838
|
+
function vt(n, e, t) {
|
|
6821
6839
|
if (!t)
|
|
6822
6840
|
throw new Error(
|
|
6823
6841
|
"`" + n + "` finished async. Use `" + e + "` instead"
|
|
6824
6842
|
);
|
|
6825
6843
|
}
|
|
6826
6844
|
function Qn(n) {
|
|
6827
|
-
return
|
|
6828
|
-
}
|
|
6829
|
-
function au(n) {
|
|
6830
|
-
return !!(n && typeof n == "object" && "message" in n && "messages" in n);
|
|
6845
|
+
return uu(n) ? n : new ru(n);
|
|
6831
6846
|
}
|
|
6832
6847
|
function uu(n) {
|
|
6833
|
-
return typeof n == "
|
|
6848
|
+
return !!(n && typeof n == "object" && "message" in n && "messages" in n);
|
|
6834
6849
|
}
|
|
6835
6850
|
function su(n) {
|
|
6851
|
+
return typeof n == "string" || cu(n);
|
|
6852
|
+
}
|
|
6853
|
+
function cu(n) {
|
|
6836
6854
|
return !!(n && typeof n == "object" && "byteLength" in n && "byteOffset" in n);
|
|
6837
6855
|
}
|
|
6838
|
-
const
|
|
6856
|
+
const fu = ({
|
|
6839
6857
|
href: n,
|
|
6840
6858
|
target: e,
|
|
6841
6859
|
rel: t,
|
|
@@ -6844,7 +6862,7 @@ const cu = ({
|
|
|
6844
6862
|
}) => {
|
|
6845
6863
|
const l = Dt(
|
|
6846
6864
|
async (o) => {
|
|
6847
|
-
if (Lr() && n &&
|
|
6865
|
+
if (Lr() && n && pu(n)) {
|
|
6848
6866
|
o.preventDefault(), o.stopPropagation();
|
|
6849
6867
|
try {
|
|
6850
6868
|
const { openUrl: a } = await import(
|
|
@@ -6861,27 +6879,27 @@ const cu = ({
|
|
|
6861
6879
|
);
|
|
6862
6880
|
return /* @__PURE__ */ Le("a", { href: n, target: e, rel: t, onClick: l, ...i, children: r });
|
|
6863
6881
|
};
|
|
6864
|
-
function
|
|
6882
|
+
function pu(n) {
|
|
6865
6883
|
try {
|
|
6866
6884
|
return new URL(n, window.location.href).origin !== window.location.origin;
|
|
6867
6885
|
} catch {
|
|
6868
6886
|
return !0;
|
|
6869
6887
|
}
|
|
6870
6888
|
}
|
|
6871
|
-
const
|
|
6889
|
+
const hu = /(!?\[)([^\]]*?)$/, mu = /(\*\*)([^*]*?)$/, du = /(__)([^_]*?)$/, gu = /(\*\*\*)([^*]*?)$/, yu = /(\*)([^*]*?)$/, ku = /(_)([^_]*?)$/, xu = /(`)([^`]*?)$/, bu = /(~~)([^~]*?)$/, wu = /\n[\t ]*(?:[-*+]|\d+\.)[\t ]+$/, Su = /(\n[\t ]*)([-*+]|\d+\.)([\t ]*)\n([\t ]*[^\s])/g, Cu = (n) => {
|
|
6872
6890
|
let e = n;
|
|
6873
6891
|
e = e.replace(
|
|
6874
|
-
|
|
6892
|
+
Su,
|
|
6875
6893
|
(r, i, l, o, a) => `${i}${l} ${a}`
|
|
6876
6894
|
);
|
|
6877
|
-
const t = e.match(
|
|
6895
|
+
const t = e.match(wu);
|
|
6878
6896
|
return t ? e.substring(0, e.length - t[0].length) : e;
|
|
6879
6897
|
}, qe = (n) => {
|
|
6880
6898
|
const e = (n.match(/```/g) || []).length;
|
|
6881
6899
|
return e > 0 && e % 2 === 0 && n.includes(`
|
|
6882
6900
|
`);
|
|
6883
|
-
},
|
|
6884
|
-
const e = n.match(
|
|
6901
|
+
}, Iu = (n) => {
|
|
6902
|
+
const e = n.match(hu);
|
|
6885
6903
|
if (e) {
|
|
6886
6904
|
if (e[1].startsWith("!")) {
|
|
6887
6905
|
const r = n.lastIndexOf(e[0]);
|
|
@@ -6890,8 +6908,8 @@ const pu = /(!?\[)([^\]]*?)$/, hu = /(\*\*)([^*]*?)$/, mu = /(__)([^_]*?)$/, du
|
|
|
6890
6908
|
return `${n}](placeholder:incomplete-link)`;
|
|
6891
6909
|
}
|
|
6892
6910
|
return n;
|
|
6893
|
-
},
|
|
6894
|
-
const e = n.match(
|
|
6911
|
+
}, Eu = (n) => {
|
|
6912
|
+
const e = n.match(mu);
|
|
6895
6913
|
if (e) {
|
|
6896
6914
|
const t = e[2];
|
|
6897
6915
|
if (!t || /^[\s_~*`]*$/.test(t))
|
|
@@ -6905,8 +6923,8 @@ const pu = /(!?\[)([^\]]*?)$/, hu = /(\*\*)([^*]*?)$/, mu = /(__)([^_]*?)$/, du
|
|
|
6905
6923
|
return `${n}**`;
|
|
6906
6924
|
}
|
|
6907
6925
|
return n;
|
|
6908
|
-
},
|
|
6909
|
-
const e = n.match(
|
|
6926
|
+
}, Pu = (n) => {
|
|
6927
|
+
const e = n.match(du);
|
|
6910
6928
|
if (e) {
|
|
6911
6929
|
const t = e[2];
|
|
6912
6930
|
if (!t || /^[\s_~*`]*$/.test(t))
|
|
@@ -6920,7 +6938,7 @@ const pu = /(!?\[)([^\]]*?)$/, hu = /(\*\*)([^*]*?)$/, mu = /(__)([^_]*?)$/, du
|
|
|
6920
6938
|
return `${n}__`;
|
|
6921
6939
|
}
|
|
6922
6940
|
return n;
|
|
6923
|
-
},
|
|
6941
|
+
}, Au = (n) => {
|
|
6924
6942
|
let e = 0, t = !1, r = 0;
|
|
6925
6943
|
for (let i = 0; i < n.length; i++) {
|
|
6926
6944
|
const l = n[i];
|
|
@@ -6947,10 +6965,10 @@ const pu = /(!?\[)([^\]]*?)$/, hu = /(\*\*)([^*]*?)$/, mu = /(__)([^_]*?)$/, du
|
|
|
6947
6965
|
}
|
|
6948
6966
|
}
|
|
6949
6967
|
return e;
|
|
6950
|
-
},
|
|
6968
|
+
}, Tu = (n) => {
|
|
6951
6969
|
if (qe(n))
|
|
6952
6970
|
return n;
|
|
6953
|
-
if (n.match(
|
|
6971
|
+
if (n.match(yu)) {
|
|
6954
6972
|
let t = -1;
|
|
6955
6973
|
for (let l = 0; l < n.length; l++)
|
|
6956
6974
|
if (n[l] === "*" && n[l - 1] !== "*" && n[l + 1] !== "*") {
|
|
@@ -6966,11 +6984,11 @@ const pu = /(!?\[)([^\]]*?)$/, hu = /(\*\*)([^*]*?)$/, mu = /(__)([^_]*?)$/, du
|
|
|
6966
6984
|
);
|
|
6967
6985
|
if (!r || /^[\s_~*`]*$/.test(r))
|
|
6968
6986
|
return n;
|
|
6969
|
-
if (
|
|
6987
|
+
if (Au(n) % 2 === 1)
|
|
6970
6988
|
return `${n}*`;
|
|
6971
6989
|
}
|
|
6972
6990
|
return n;
|
|
6973
|
-
},
|
|
6991
|
+
}, Lu = (n, e) => {
|
|
6974
6992
|
let t = !1, r = !1;
|
|
6975
6993
|
for (let i = 0; i < n.length && i < e; i++) {
|
|
6976
6994
|
if (n[i] === "\\" && n[i + 1] === "$") {
|
|
@@ -6992,7 +7010,7 @@ const pu = /(!?\[)([^\]]*?)$/, hu = /(\*\*)([^*]*?)$/, mu = /(__)([^_]*?)$/, du
|
|
|
6992
7010
|
t = !t;
|
|
6993
7011
|
}
|
|
6994
7012
|
return t;
|
|
6995
|
-
},
|
|
7013
|
+
}, zu = (n) => {
|
|
6996
7014
|
let e = 0, t = !1, r = !1, i = !1;
|
|
6997
7015
|
for (let l = 0; l < n.length; l++) {
|
|
6998
7016
|
const o = n[l], a = l > 0 ? n[l - 1] : "", s = l < n.length - 1 ? n[l + 1] : "";
|
|
@@ -7015,13 +7033,13 @@ const pu = /(!?\[)([^\]]*?)$/, hu = /(\*\*)([^*]*?)$/, mu = /(__)([^_]*?)$/, du
|
|
|
7015
7033
|
}
|
|
7016
7034
|
}
|
|
7017
7035
|
return e;
|
|
7018
|
-
},
|
|
7036
|
+
}, _u = (n) => {
|
|
7019
7037
|
if (qe(n))
|
|
7020
7038
|
return n;
|
|
7021
|
-
if (n.match(
|
|
7039
|
+
if (n.match(ku)) {
|
|
7022
7040
|
let t = -1;
|
|
7023
7041
|
for (let l = 0; l < n.length; l++)
|
|
7024
|
-
if (n[l] === "_" && n[l - 1] !== "_" && n[l + 1] !== "_" && n[l - 1] !== "\\" && !
|
|
7042
|
+
if (n[l] === "_" && n[l - 1] !== "_" && n[l + 1] !== "_" && n[l - 1] !== "\\" && !Lu(n, l) && !kr(n, l)) {
|
|
7025
7043
|
const o = l > 0 ? n[l - 1] : "", a = l < n.length - 1 ? n[l + 1] : "";
|
|
7026
7044
|
if (o && a && /[\p{L}\p{N}_]/u.test(o) && /[\p{L}\p{N}_]/u.test(a))
|
|
7027
7045
|
continue;
|
|
@@ -7035,16 +7053,16 @@ const pu = /(!?\[)([^\]]*?)$/, hu = /(\*\*)([^*]*?)$/, mu = /(__)([^_]*?)$/, du
|
|
|
7035
7053
|
);
|
|
7036
7054
|
if (!r || /^[\s_~*`]*$/.test(r))
|
|
7037
7055
|
return n;
|
|
7038
|
-
if (
|
|
7056
|
+
if (zu(n) % 2 === 1)
|
|
7039
7057
|
return `${n}_`;
|
|
7040
7058
|
}
|
|
7041
7059
|
return n;
|
|
7042
|
-
},
|
|
7060
|
+
}, Mu = (n) => {
|
|
7043
7061
|
let e = 0;
|
|
7044
7062
|
for (let t = 0; t < n.length; t++)
|
|
7045
7063
|
n[t] === "`" && !ie(n, t) && e++;
|
|
7046
7064
|
return e;
|
|
7047
|
-
},
|
|
7065
|
+
}, Nu = (n) => {
|
|
7048
7066
|
if (n.match(/^```[^`\n]*```?$/) && !n.includes(`
|
|
7049
7067
|
`))
|
|
7050
7068
|
return n.endsWith("``") && !n.endsWith("```") ? `${n}\`` : n;
|
|
@@ -7052,17 +7070,17 @@ const pu = /(!?\[)([^\]]*?)$/, hu = /(\*\*)([^*]*?)$/, mu = /(__)([^_]*?)$/, du
|
|
|
7052
7070
|
if (t > 0 && t % 2 === 0 && n.includes(`
|
|
7053
7071
|
`) || (n.endsWith("```\n") || n.endsWith("```")) && t % 2 === 0)
|
|
7054
7072
|
return n;
|
|
7055
|
-
const i = n.match(
|
|
7073
|
+
const i = n.match(xu);
|
|
7056
7074
|
if (i && !r) {
|
|
7057
7075
|
const l = i[2];
|
|
7058
7076
|
if (!l || /^[\s_~*`]*$/.test(l))
|
|
7059
7077
|
return n;
|
|
7060
|
-
if (
|
|
7078
|
+
if (Mu(n) % 2 === 1)
|
|
7061
7079
|
return `${n}\``;
|
|
7062
7080
|
}
|
|
7063
7081
|
return n;
|
|
7064
|
-
},
|
|
7065
|
-
const e = n.match(
|
|
7082
|
+
}, vu = (n) => {
|
|
7083
|
+
const e = n.match(bu);
|
|
7066
7084
|
if (e) {
|
|
7067
7085
|
const t = e[2];
|
|
7068
7086
|
if (!t || /^[\s_~*`]*$/.test(t))
|
|
@@ -7079,7 +7097,7 @@ const pu = /(!?\[)([^\]]*?)$/, hu = /(\*\*)([^*]*?)$/, mu = /(__)([^_]*?)$/, du
|
|
|
7079
7097
|
`, t) !== -1 && !n.endsWith(`
|
|
7080
7098
|
`) ? `${n}
|
|
7081
7099
|
$$` : `${n}$$`;
|
|
7082
|
-
},
|
|
7100
|
+
}, Du = (n) => {
|
|
7083
7101
|
let e = 0;
|
|
7084
7102
|
const t = n.match(/\*+/g) || [];
|
|
7085
7103
|
for (const r of t) {
|
|
@@ -7087,27 +7105,27 @@ $$` : `${n}$$`;
|
|
|
7087
7105
|
i >= 3 && (e += Math.floor(i / 3));
|
|
7088
7106
|
}
|
|
7089
7107
|
return e;
|
|
7090
|
-
},
|
|
7108
|
+
}, Ou = (n) => {
|
|
7091
7109
|
if (qe(n) || /^\*{4,}$/.test(n))
|
|
7092
7110
|
return n;
|
|
7093
|
-
const e = n.match(
|
|
7111
|
+
const e = n.match(gu);
|
|
7094
7112
|
if (e) {
|
|
7095
7113
|
const t = e[2];
|
|
7096
7114
|
if (!t || /^[\s_~*`]*$/.test(t))
|
|
7097
7115
|
return n;
|
|
7098
|
-
if (
|
|
7116
|
+
if (Du(n) % 2 === 1)
|
|
7099
7117
|
return `${n}***`;
|
|
7100
7118
|
}
|
|
7101
7119
|
return n;
|
|
7102
|
-
},
|
|
7120
|
+
}, Fu = (n) => {
|
|
7103
7121
|
if (!n || typeof n != "string")
|
|
7104
7122
|
return n;
|
|
7105
7123
|
let e = n;
|
|
7106
|
-
e =
|
|
7107
|
-
const t =
|
|
7108
|
-
return t.endsWith("](placeholder:incomplete-link)") ? t : (e = t, e =
|
|
7124
|
+
e = Cu(e);
|
|
7125
|
+
const t = Iu(e);
|
|
7126
|
+
return t.endsWith("](placeholder:incomplete-link)") ? t : (e = t, e = Nu(e), e = Ou(e), e = Eu(e), e = Pu(e), e = Tu(e), e = _u(e), e = vu(e), e = Ru(e), e);
|
|
7109
7127
|
};
|
|
7110
|
-
class
|
|
7128
|
+
class Bu {
|
|
7111
7129
|
remarkGfm = null;
|
|
7112
7130
|
rehypeKatex = null;
|
|
7113
7131
|
remarkMath = null;
|
|
@@ -7119,7 +7137,7 @@ class Fu {
|
|
|
7119
7137
|
if (!this.remarkGfm) {
|
|
7120
7138
|
const { default: e } = await import(
|
|
7121
7139
|
/* webpackChunkName: "md-remark" */
|
|
7122
|
-
"./index.
|
|
7140
|
+
"./index.BrOQRpaM.js"
|
|
7123
7141
|
);
|
|
7124
7142
|
this.remarkGfm = e;
|
|
7125
7143
|
}
|
|
@@ -7127,10 +7145,10 @@ class Fu {
|
|
|
7127
7145
|
}
|
|
7128
7146
|
async loadKatex() {
|
|
7129
7147
|
if (!this.rehypeKatex) {
|
|
7130
|
-
|
|
7148
|
+
Vu("https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css");
|
|
7131
7149
|
const { default: e } = await import(
|
|
7132
7150
|
/* webpackChunkName: "md-rehype-katex" */
|
|
7133
|
-
"./index.
|
|
7151
|
+
"./index.Cna41ve3.js"
|
|
7134
7152
|
);
|
|
7135
7153
|
this.rehypeKatex = e;
|
|
7136
7154
|
}
|
|
@@ -7140,7 +7158,7 @@ class Fu {
|
|
|
7140
7158
|
if (!this.remarkMath) {
|
|
7141
7159
|
const { default: e } = await import(
|
|
7142
7160
|
/* webpackChunkName: "md-remark" */
|
|
7143
|
-
"./index.
|
|
7161
|
+
"./index.BFaGjlXq.js"
|
|
7144
7162
|
);
|
|
7145
7163
|
this.remarkMath = e;
|
|
7146
7164
|
}
|
|
@@ -7150,18 +7168,18 @@ class Fu {
|
|
|
7150
7168
|
if (!this.rehypeHighlight) {
|
|
7151
7169
|
const { default: e } = await import(
|
|
7152
7170
|
/* webpackChunkName: "md-rehype-highlight" */
|
|
7153
|
-
"./index.
|
|
7171
|
+
"./index.BbW73zrx.js"
|
|
7154
7172
|
);
|
|
7155
7173
|
this.rehypeHighlight = e;
|
|
7156
7174
|
}
|
|
7157
7175
|
return this.rehypeHighlight;
|
|
7158
7176
|
}
|
|
7159
7177
|
}
|
|
7160
|
-
const Jn = new
|
|
7178
|
+
const Jn = new Bu(), Uu = ({
|
|
7161
7179
|
children: n,
|
|
7162
7180
|
raw: e,
|
|
7163
7181
|
...t
|
|
7164
|
-
}) => /* @__PURE__ */
|
|
7182
|
+
}) => /* @__PURE__ */ Rt("pre", { className: "relative pt-7 sm:pt-2 ps-0 sm:ps-3", ...t, children: [
|
|
7165
7183
|
n,
|
|
7166
7184
|
/* @__PURE__ */ Le(
|
|
7167
7185
|
zr,
|
|
@@ -7174,16 +7192,16 @@ const Jn = new Fu(), Bu = ({
|
|
|
7174
7192
|
className: "mb-2 px-1 absolute top-2 right-2 font-sans font-normal text-xs"
|
|
7175
7193
|
}
|
|
7176
7194
|
)
|
|
7177
|
-
] }),
|
|
7195
|
+
] }), ju = (n) => n.includes("```"), $u = (n) => n.includes("$$"), Hu = (n) => (
|
|
7178
7196
|
// urls.
|
|
7179
7197
|
n.includes("http://") || n.includes("https://") || // table.
|
|
7180
7198
|
n.includes("|") || // strikethrough.
|
|
7181
7199
|
n.includes("~") || n.includes("~~") || // task lists.
|
|
7182
7200
|
n.includes("- [ ]") || n.includes("- [x]")
|
|
7183
|
-
),
|
|
7201
|
+
), Vu = (n) => {
|
|
7184
7202
|
const e = document.createElement("link");
|
|
7185
7203
|
e.href = n, e.type = "text/css", e.rel = "stylesheet", e.id = "dynamic-katex-css", document.head.appendChild(e);
|
|
7186
|
-
},
|
|
7204
|
+
}, qu = () => (n) => {
|
|
7187
7205
|
wn(n, (e) => {
|
|
7188
7206
|
if (e?.type === "element" && e?.tagName === "pre") {
|
|
7189
7207
|
const [t] = e.children;
|
|
@@ -7192,18 +7210,18 @@ const Jn = new Fu(), Bu = ({
|
|
|
7192
7210
|
e.raw = Mr(t.children?.[0].value);
|
|
7193
7211
|
}
|
|
7194
7212
|
});
|
|
7195
|
-
},
|
|
7213
|
+
}, Wu = () => (n) => {
|
|
7196
7214
|
wn(n, "element", (e) => {
|
|
7197
7215
|
e?.type === "element" && e?.tagName === "pre" && (e.properties.raw = e.raw);
|
|
7198
7216
|
});
|
|
7199
|
-
},
|
|
7217
|
+
}, Ju = ({
|
|
7200
7218
|
onError: n = () => {
|
|
7201
7219
|
},
|
|
7202
7220
|
parseIncomplete: e = !0
|
|
7203
7221
|
} = {}) => {
|
|
7204
|
-
const t =
|
|
7222
|
+
const t = Rn(n), r = Rn(null), i = Rn(null), l = Rn(null), o = Rn({
|
|
7205
7223
|
rehypePlugins: [
|
|
7206
|
-
|
|
7224
|
+
qu,
|
|
7207
7225
|
/**
|
|
7208
7226
|
* Security: Harden against XSS by restricting allowed elements, attributes,
|
|
7209
7227
|
* and URL protocols. Uses safe defaults for AI-generated content.
|
|
@@ -7235,41 +7253,41 @@ const Jn = new Fu(), Bu = ({
|
|
|
7235
7253
|
],
|
|
7236
7254
|
remarkPlugins: []
|
|
7237
7255
|
}), [a, s] = Nr(null);
|
|
7238
|
-
|
|
7256
|
+
vr(() => {
|
|
7239
7257
|
t.current = n;
|
|
7240
7258
|
}, [n]);
|
|
7241
7259
|
const u = Dt(
|
|
7242
7260
|
(c) => {
|
|
7243
7261
|
(async () => {
|
|
7244
|
-
const
|
|
7245
|
-
if (!r.current &&
|
|
7262
|
+
const f = e ? Fu(c) : c;
|
|
7263
|
+
if (!r.current && ju(f)) {
|
|
7246
7264
|
r.current = !0;
|
|
7247
|
-
const
|
|
7248
|
-
o.current.rehypePlugins.push(
|
|
7265
|
+
const p = await Jn.loadHighlight();
|
|
7266
|
+
o.current.rehypePlugins.push(p);
|
|
7249
7267
|
}
|
|
7250
|
-
if (!i.current &&
|
|
7268
|
+
if (!i.current && Hu(f)) {
|
|
7251
7269
|
i.current = !0;
|
|
7252
|
-
const
|
|
7253
|
-
o.current.remarkPlugins.push(
|
|
7270
|
+
const p = await Jn.loadGfm();
|
|
7271
|
+
o.current.remarkPlugins.push(p);
|
|
7254
7272
|
}
|
|
7255
|
-
if (!l.current &&
|
|
7273
|
+
if (!l.current && $u(f)) {
|
|
7256
7274
|
l.current = !0;
|
|
7257
|
-
const
|
|
7258
|
-
o.current.remarkPlugins.push(w), o.current.rehypePlugins.push(
|
|
7275
|
+
const p = await Jn.loadKatex(), w = await Jn.loadMath();
|
|
7276
|
+
o.current.remarkPlugins.push(w), o.current.rehypePlugins.push(p);
|
|
7259
7277
|
}
|
|
7260
7278
|
const d = [
|
|
7261
7279
|
...o.current.rehypePlugins,
|
|
7262
|
-
|
|
7280
|
+
Wu
|
|
7263
7281
|
];
|
|
7264
|
-
|
|
7282
|
+
au().use(oa).use(o.current.remarkPlugins).use($a).use(d).use(Zi, {
|
|
7265
7283
|
Fragment: Tr,
|
|
7266
7284
|
jsx: Le,
|
|
7267
|
-
jsxs:
|
|
7285
|
+
jsxs: Rt,
|
|
7268
7286
|
components: {
|
|
7269
|
-
pre:
|
|
7270
|
-
a:
|
|
7287
|
+
pre: Uu,
|
|
7288
|
+
a: fu
|
|
7271
7289
|
}
|
|
7272
|
-
}).process(
|
|
7290
|
+
}).process(f).then((p) => s(p.result)).catch(t.current);
|
|
7273
7291
|
})();
|
|
7274
7292
|
},
|
|
7275
7293
|
[e]
|
|
@@ -7284,26 +7302,26 @@ export {
|
|
|
7284
7302
|
Ce as asciiControl,
|
|
7285
7303
|
re as blankLine,
|
|
7286
7304
|
yt as classifyCharacter,
|
|
7287
|
-
|
|
7305
|
+
rl as combineExtensions,
|
|
7288
7306
|
$t as convert,
|
|
7289
7307
|
jt as convertElement,
|
|
7290
7308
|
H as factorySpace,
|
|
7291
|
-
|
|
7292
|
-
|
|
7309
|
+
Si as find,
|
|
7310
|
+
Ei as html,
|
|
7293
7311
|
z as markdownLineEnding,
|
|
7294
7312
|
Q as markdownLineEndingOrSpace,
|
|
7295
7313
|
D as markdownSpace,
|
|
7296
7314
|
xe as normalize,
|
|
7297
7315
|
Ln as normalizeIdentifier,
|
|
7298
7316
|
Wr as parse,
|
|
7299
|
-
|
|
7317
|
+
Qu as parse$1,
|
|
7300
7318
|
$e as resolveAll,
|
|
7301
7319
|
cn as splice,
|
|
7302
7320
|
De as svg,
|
|
7303
|
-
|
|
7304
|
-
|
|
7305
|
-
|
|
7306
|
-
|
|
7321
|
+
el as toString,
|
|
7322
|
+
sl as unicodePunctuation,
|
|
7323
|
+
cl as unicodeWhitespace,
|
|
7324
|
+
Ju as useMarkdown,
|
|
7307
7325
|
wn as visit,
|
|
7308
7326
|
Zr as visitParents
|
|
7309
7327
|
};
|