@versini/sassysaint 8.107.2 → 8.107.4
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.-F_kMw74.js → AboutChangelog.DeRcKN5H.js} +2 -2
- package/dist/chunks/{AboutEntry.DR75PxCw.js → AboutEntry.6mTHwkfb.js} +7 -7
- package/dist/chunks/{App.3M79T1qj.js → App.DTjbiLAP.js} +1753 -2012
- package/dist/chunks/{Bubble.CA6Nm1l0.js → Bubble.ltolxxta.js} +47 -86
- package/dist/chunks/{Chart.DwZeH0GA.js → Chart.BzOmOhOW.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.Bm-gE-ev.js → ChatBubbleAssistant.lGE_8ao1.js} +200 -213
- package/dist/chunks/{ChatBubbleUser.lLvteBf3.js → ChatBubbleUser.DC661ePq.js} +28 -41
- package/dist/chunks/{ChatHistoryTable.yS0g-92Q.js → ChatHistoryTable.BkRFWpsA.js} +108 -125
- package/dist/chunks/{Table.AnN2X7VF.js → DeleteButtonIcon.P0LgJDjE.js} +125 -116
- package/dist/chunks/{HistoryEntry.DfNmYlfN.js → HistoryEntry.uUjsDuT0.js} +6 -6
- package/dist/chunks/{LoginEntry.BccxHPtX.js → LoginEntry.BGZdTDwf.js} +4 -4
- package/dist/chunks/{LogoEntry.CFw0uv25.js → LogoEntry.Bpddd0yA.js} +301 -430
- package/dist/chunks/{MemoriesEntry.Cdao1cmo.js → MemoriesEntry.BYQm9cuU.js} +164 -169
- package/dist/chunks/{ProfileEntry.b8NaUHNW.js → ProfileEntry.BqcZXSeT.js} +4 -4
- package/dist/chunks/{SettingsEntry.CjuYtYSp.js → SettingsEntry.BdC5Vyof.js} +5 -5
- package/dist/chunks/{UsageEntry.cp-aSBF9.js → UsageEntry._O8Q6TwS.js} +5 -5
- package/dist/chunks/index.Bi0z4EE1.js +90 -0
- package/dist/chunks/{index.CgpXJ39e.js → index.BlviGqw0.js} +4 -4
- package/dist/chunks/{index.BSdZTOf6.js → index.BxbWxVtd.js} +1 -1
- package/dist/chunks/index.C70LcKzU.js +279 -0
- package/dist/chunks/{index.CLVeqfU3.js → index.CYcieK1H.js} +34 -47
- package/dist/chunks/{index.Dbw9MfpE.js → index.CaofbEIP.js} +3 -19
- package/dist/chunks/{index.B6FhZIr6.js → index.D2nN0rC6.js} +1 -1
- package/dist/chunks/{index.DhQEm5fx.js → index.DG-VhqKw.js} +1 -1
- package/dist/chunks/{index.DYkMD3_1.js → index.DuxTgnco.js} +56 -69
- package/dist/chunks/{index.DHLA2Fes.js → index.s8Izh8-Q.js} +2 -2
- package/dist/chunks/{useMarkdown.CoVPoXwW.js → useMarkdown.DjEZz9lH.js} +316 -329
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +3 -7
- package/dist/style.css +1 -14
- package/package.json +5 -5
- package/dist/chunks/index.BAdB50GZ.js +0 -103
- package/dist/chunks/index.CyKPGk1D.js +0 -305
|
@@ -1,21 +1,8 @@
|
|
|
1
|
-
import { jsx as Tn, jsxs as Rt, Fragment as
|
|
2
|
-
import { ButtonIcon as
|
|
1
|
+
import { jsx as Tn, jsxs as Rt, Fragment as _r } from "react/jsx-runtime";
|
|
2
|
+
import { ButtonIcon as Mr, IconCopied as Nr, IconCopy as vr } from "./LogoEntry.Bpddd0yA.js";
|
|
3
3
|
import Rr, { useState as Dt, useEffect as Ot, useCallback as Ft, useRef as Dn } from "react";
|
|
4
|
-
import { getDefaultExportFromCjs as Bt, unObfuscate as Dr, obfuscate as Or } from "./App.
|
|
5
|
-
import { isTauri as Fr } from "./index.
|
|
6
|
-
/*!
|
|
7
|
-
@versini/ui-button v11.0.0
|
|
8
|
-
© 2025 gizmette.com
|
|
9
|
-
*/
|
|
10
|
-
try {
|
|
11
|
-
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
12
|
-
version: "11.0.0",
|
|
13
|
-
buildTime: "12/16/2025 06:21 PM EST",
|
|
14
|
-
homepage: "https://www.npmjs.com/package/@versini/ui-button",
|
|
15
|
-
license: "MIT"
|
|
16
|
-
});
|
|
17
|
-
} catch {
|
|
18
|
-
}
|
|
4
|
+
import { getDefaultExportFromCjs as Bt, unObfuscate as Dr, obfuscate as Or } from "./App.DTjbiLAP.js";
|
|
5
|
+
import { isTauri as Fr } from "./index.CaofbEIP.js";
|
|
19
6
|
const Ut = /* @__PURE__ */ Rr.forwardRef(({ copyToClipboard: n, ...e }, t) => {
|
|
20
7
|
const [r, i] = Dt(!1), l = () => {
|
|
21
8
|
typeof n == "string" && (navigator.clipboard.writeText(n), i(!0)), typeof n == "function" && (navigator.clipboard.writeText(n()), i(!0));
|
|
@@ -29,14 +16,14 @@ const Ut = /* @__PURE__ */ Rr.forwardRef(({ copyToClipboard: n, ...e }, t) => {
|
|
|
29
16
|
};
|
|
30
17
|
}, [
|
|
31
18
|
r
|
|
32
|
-
]), /* @__PURE__ */ Tn(
|
|
19
|
+
]), /* @__PURE__ */ Tn(Mr, {
|
|
33
20
|
...e,
|
|
34
21
|
size: "small",
|
|
35
22
|
ref: t,
|
|
36
23
|
label: r ? "Copied to clipboard" : "Copy to clipboard",
|
|
37
24
|
onClick: l,
|
|
38
25
|
disabled: r,
|
|
39
|
-
children: r ? /* @__PURE__ */ Tn(
|
|
26
|
+
children: r ? /* @__PURE__ */ Tn(Nr, {
|
|
40
27
|
size: "size-3"
|
|
41
28
|
}) : /* @__PURE__ */ Tn(vr, {
|
|
42
29
|
size: "size-3"
|
|
@@ -44,7 +31,7 @@ const Ut = /* @__PURE__ */ Rr.forwardRef(({ copyToClipboard: n, ...e }, t) => {
|
|
|
44
31
|
});
|
|
45
32
|
});
|
|
46
33
|
Ut.displayName = "ButtonCopy";
|
|
47
|
-
const jt = -1, te = 0, Hn = 1, ee = 2,
|
|
34
|
+
const jt = -1, te = 0, Hn = 1, ee = 2, ze = 3, _e = 4, Me = 5, Ne = 6, $t = 7, Ht = 8, Qe = typeof self == "object" ? self : globalThis, Br = (n, e) => {
|
|
48
35
|
const t = (i, l) => (n.set(l, i), i), r = (i) => {
|
|
49
36
|
if (n.has(i))
|
|
50
37
|
return n.get(i);
|
|
@@ -65,19 +52,19 @@ const jt = -1, te = 0, Hn = 1, ee = 2, Le = 3, ze = 4, Ne = 5, Me = 6, $t = 7, H
|
|
|
65
52
|
a[r(s)] = r(u);
|
|
66
53
|
return a;
|
|
67
54
|
}
|
|
68
|
-
case
|
|
55
|
+
case ze:
|
|
69
56
|
return t(new Date(o), i);
|
|
70
|
-
case
|
|
57
|
+
case _e: {
|
|
71
58
|
const { source: a, flags: s } = o;
|
|
72
59
|
return t(new RegExp(a, s), i);
|
|
73
60
|
}
|
|
74
|
-
case
|
|
61
|
+
case Me: {
|
|
75
62
|
const a = t(/* @__PURE__ */ new Map(), i);
|
|
76
63
|
for (const [s, u] of o)
|
|
77
64
|
a.set(r(s), r(u));
|
|
78
65
|
return a;
|
|
79
66
|
}
|
|
80
|
-
case
|
|
67
|
+
case Ne: {
|
|
81
68
|
const a = t(/* @__PURE__ */ new Set(), i);
|
|
82
69
|
for (const s of o)
|
|
83
70
|
a.add(r(s));
|
|
@@ -112,13 +99,13 @@ const jt = -1, te = 0, Hn = 1, ee = 2, Le = 3, ze = 4, Ne = 5, Me = 6, $t = 7, H
|
|
|
112
99
|
case "Object":
|
|
113
100
|
return [ee, Pn];
|
|
114
101
|
case "Date":
|
|
115
|
-
return [Le, Pn];
|
|
116
|
-
case "RegExp":
|
|
117
102
|
return [ze, Pn];
|
|
103
|
+
case "RegExp":
|
|
104
|
+
return [_e, Pn];
|
|
118
105
|
case "Map":
|
|
119
|
-
return [Ne, Pn];
|
|
120
|
-
case "Set":
|
|
121
106
|
return [Me, Pn];
|
|
107
|
+
case "Set":
|
|
108
|
+
return [Ne, Pn];
|
|
122
109
|
case "DataView":
|
|
123
110
|
return [Hn, t];
|
|
124
111
|
}
|
|
@@ -176,19 +163,19 @@ const jt = -1, te = 0, Hn = 1, ee = 2, Le = 3, ze = 4, Ne = 5, Me = 6, $t = 7, H
|
|
|
176
163
|
(n || !Kn(On(o[d]))) && c.push([l(d), l(o[d])]);
|
|
177
164
|
return f;
|
|
178
165
|
}
|
|
179
|
-
case
|
|
166
|
+
case ze:
|
|
180
167
|
return i([a, o.toISOString()], o);
|
|
181
|
-
case
|
|
168
|
+
case _e: {
|
|
182
169
|
const { source: c, flags: f } = o;
|
|
183
170
|
return i([a, { source: c, flags: f }], o);
|
|
184
171
|
}
|
|
185
|
-
case
|
|
172
|
+
case Me: {
|
|
186
173
|
const c = [], f = i([a, c], o);
|
|
187
174
|
for (const [d, p] of o)
|
|
188
175
|
(n || !(Kn(On(d)) || Kn(On(p)))) && c.push([l(d), l(p)]);
|
|
189
176
|
return f;
|
|
190
177
|
}
|
|
191
|
-
case
|
|
178
|
+
case Ne: {
|
|
192
179
|
const c = [], f = i([a, c], o);
|
|
193
180
|
for (const d of o)
|
|
194
181
|
(n || !Kn(On(d))) && c.push(l(d));
|
|
@@ -393,7 +380,7 @@ function ri(n, e, t, r) {
|
|
|
393
380
|
}
|
|
394
381
|
return d;
|
|
395
382
|
function d() {
|
|
396
|
-
let p = Wt, w, b,
|
|
383
|
+
let p = Wt, w, b, L;
|
|
397
384
|
if ((!e || l(s, u, c[c.length - 1] || void 0)) && (p = ii(t(s, c)), p[0] === nt))
|
|
398
385
|
return p;
|
|
399
386
|
if ("children" in s && s.children) {
|
|
@@ -402,9 +389,9 @@ function ri(n, e, t, r) {
|
|
|
402
389
|
s
|
|
403
390
|
);
|
|
404
391
|
if (x.children && p[0] !== xe)
|
|
405
|
-
for (b = (r ? x.children.length : -1) + o,
|
|
392
|
+
for (b = (r ? x.children.length : -1) + o, L = c.concat(x); b > -1 && b < x.children.length; ) {
|
|
406
393
|
const T = x.children[b];
|
|
407
|
-
if (w = a(T, b,
|
|
394
|
+
if (w = a(T, b, L)(), w[0] === nt)
|
|
408
395
|
return w;
|
|
409
396
|
b = typeof w[1] == "number" ? w[1] : b + o;
|
|
410
397
|
}
|
|
@@ -531,7 +518,7 @@ function tt(n, e, t, r = !1, i = !1, l = []) {
|
|
|
531
518
|
return !c || c.origin !== o.origin ? !1 : o.href.startsWith(c.href);
|
|
532
519
|
}) ? 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;
|
|
533
520
|
}
|
|
534
|
-
const oe = Symbol("node-seen"), hi = (n, e, t, r, i, l, o) => {
|
|
521
|
+
const oe = /* @__PURE__ */ Symbol("node-seen"), hi = (n, e, t, r, i, l, o) => {
|
|
535
522
|
const a = (s, u, c) => {
|
|
536
523
|
if (s.type !== "element" || // @ts-expect-error
|
|
537
524
|
s[oe])
|
|
@@ -654,11 +641,11 @@ J.prototype.property = "";
|
|
|
654
641
|
J.prototype.spaceSeparated = !1;
|
|
655
642
|
J.prototype.space = void 0;
|
|
656
643
|
let bi = 0;
|
|
657
|
-
const
|
|
644
|
+
const N = Sn(), q = Sn(), we = Sn(), k = Sn(), $ = Sn(), Ln = Sn(), nn = Sn();
|
|
658
645
|
function Sn() {
|
|
659
646
|
return 2 ** ++bi;
|
|
660
647
|
}
|
|
661
|
-
const Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, boolean:
|
|
648
|
+
const Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, boolean: N, booleanish: q, commaOrSpaceSeparated: nn, commaSeparated: Ln, number: k, overloadedBoolean: we, spaceSeparated: $ }, Symbol.toStringTag, { value: "Module" })), ae = (
|
|
662
649
|
/** @type {ReadonlyArray<keyof typeof types>} */
|
|
663
650
|
Object.keys(Se)
|
|
664
651
|
);
|
|
@@ -689,7 +676,7 @@ Re.prototype.defined = !0;
|
|
|
689
676
|
function lt(n, e, t) {
|
|
690
677
|
t && (n[e] = t);
|
|
691
678
|
}
|
|
692
|
-
function
|
|
679
|
+
function _n(n) {
|
|
693
680
|
const e = {}, t = {};
|
|
694
681
|
for (const [r, i] of Object.entries(n.properties)) {
|
|
695
682
|
const l = new Re(
|
|
@@ -702,7 +689,7 @@ function zn(n) {
|
|
|
702
689
|
}
|
|
703
690
|
return new Xn(e, t, n.space);
|
|
704
691
|
}
|
|
705
|
-
const Gt =
|
|
692
|
+
const Gt = _n({
|
|
706
693
|
properties: {
|
|
707
694
|
ariaActiveDescendant: null,
|
|
708
695
|
ariaAtomic: q,
|
|
@@ -764,7 +751,7 @@ function Yt(n, e) {
|
|
|
764
751
|
function Kt(n, e) {
|
|
765
752
|
return Yt(n, e.toLowerCase());
|
|
766
753
|
}
|
|
767
|
-
const wi =
|
|
754
|
+
const wi = _n({
|
|
768
755
|
attributes: {
|
|
769
756
|
acceptcharset: "accept-charset",
|
|
770
757
|
classname: "class",
|
|
@@ -775,43 +762,43 @@ const wi = zn({
|
|
|
775
762
|
properties: {
|
|
776
763
|
// Standard Properties.
|
|
777
764
|
abbr: null,
|
|
778
|
-
accept:
|
|
765
|
+
accept: Ln,
|
|
779
766
|
acceptCharset: $,
|
|
780
767
|
accessKey: $,
|
|
781
768
|
action: null,
|
|
782
769
|
allow: null,
|
|
783
|
-
allowFullScreen:
|
|
784
|
-
allowPaymentRequest:
|
|
785
|
-
allowUserMedia:
|
|
770
|
+
allowFullScreen: N,
|
|
771
|
+
allowPaymentRequest: N,
|
|
772
|
+
allowUserMedia: N,
|
|
786
773
|
alt: null,
|
|
787
774
|
as: null,
|
|
788
|
-
async:
|
|
775
|
+
async: N,
|
|
789
776
|
autoCapitalize: null,
|
|
790
777
|
autoComplete: $,
|
|
791
|
-
autoFocus:
|
|
792
|
-
autoPlay:
|
|
778
|
+
autoFocus: N,
|
|
779
|
+
autoPlay: N,
|
|
793
780
|
blocking: $,
|
|
794
781
|
capture: null,
|
|
795
782
|
charSet: null,
|
|
796
|
-
checked:
|
|
783
|
+
checked: N,
|
|
797
784
|
cite: null,
|
|
798
785
|
className: $,
|
|
799
786
|
cols: k,
|
|
800
787
|
colSpan: null,
|
|
801
788
|
content: null,
|
|
802
789
|
contentEditable: q,
|
|
803
|
-
controls:
|
|
790
|
+
controls: N,
|
|
804
791
|
controlsList: $,
|
|
805
|
-
coords: k |
|
|
792
|
+
coords: k | Ln,
|
|
806
793
|
crossOrigin: null,
|
|
807
794
|
data: null,
|
|
808
795
|
dateTime: null,
|
|
809
796
|
decoding: null,
|
|
810
|
-
default:
|
|
811
|
-
defer:
|
|
797
|
+
default: N,
|
|
798
|
+
defer: N,
|
|
812
799
|
dir: null,
|
|
813
800
|
dirName: null,
|
|
814
|
-
disabled:
|
|
801
|
+
disabled: N,
|
|
815
802
|
download: we,
|
|
816
803
|
draggable: q,
|
|
817
804
|
encType: null,
|
|
@@ -821,7 +808,7 @@ const wi = zn({
|
|
|
821
808
|
formAction: null,
|
|
822
809
|
formEncType: null,
|
|
823
810
|
formMethod: null,
|
|
824
|
-
formNoValidate:
|
|
811
|
+
formNoValidate: N,
|
|
825
812
|
formTarget: null,
|
|
826
813
|
headers: $,
|
|
827
814
|
height: k,
|
|
@@ -834,15 +821,15 @@ const wi = zn({
|
|
|
834
821
|
id: null,
|
|
835
822
|
imageSizes: null,
|
|
836
823
|
imageSrcSet: null,
|
|
837
|
-
inert:
|
|
824
|
+
inert: N,
|
|
838
825
|
inputMode: null,
|
|
839
826
|
integrity: null,
|
|
840
827
|
is: null,
|
|
841
|
-
isMap:
|
|
828
|
+
isMap: N,
|
|
842
829
|
itemId: null,
|
|
843
830
|
itemProp: $,
|
|
844
831
|
itemRef: $,
|
|
845
|
-
itemScope:
|
|
832
|
+
itemScope: N,
|
|
846
833
|
itemType: $,
|
|
847
834
|
kind: null,
|
|
848
835
|
label: null,
|
|
@@ -850,7 +837,7 @@ const wi = zn({
|
|
|
850
837
|
language: null,
|
|
851
838
|
list: null,
|
|
852
839
|
loading: null,
|
|
853
|
-
loop:
|
|
840
|
+
loop: N,
|
|
854
841
|
low: k,
|
|
855
842
|
manifest: null,
|
|
856
843
|
max: null,
|
|
@@ -859,12 +846,12 @@ const wi = zn({
|
|
|
859
846
|
method: null,
|
|
860
847
|
min: null,
|
|
861
848
|
minLength: k,
|
|
862
|
-
multiple:
|
|
863
|
-
muted:
|
|
849
|
+
multiple: N,
|
|
850
|
+
muted: N,
|
|
864
851
|
name: null,
|
|
865
852
|
nonce: null,
|
|
866
|
-
noModule:
|
|
867
|
-
noValidate:
|
|
853
|
+
noModule: N,
|
|
854
|
+
noValidate: N,
|
|
868
855
|
onAbort: null,
|
|
869
856
|
onAfterPrint: null,
|
|
870
857
|
onAuxClick: null,
|
|
@@ -953,31 +940,31 @@ const wi = zn({
|
|
|
953
940
|
onVolumeChange: null,
|
|
954
941
|
onWaiting: null,
|
|
955
942
|
onWheel: null,
|
|
956
|
-
open:
|
|
943
|
+
open: N,
|
|
957
944
|
optimum: k,
|
|
958
945
|
pattern: null,
|
|
959
946
|
ping: $,
|
|
960
947
|
placeholder: null,
|
|
961
|
-
playsInline:
|
|
948
|
+
playsInline: N,
|
|
962
949
|
popover: null,
|
|
963
950
|
popoverTarget: null,
|
|
964
951
|
popoverTargetAction: null,
|
|
965
952
|
poster: null,
|
|
966
953
|
preload: null,
|
|
967
|
-
readOnly:
|
|
954
|
+
readOnly: N,
|
|
968
955
|
referrerPolicy: null,
|
|
969
956
|
rel: $,
|
|
970
|
-
required:
|
|
971
|
-
reversed:
|
|
957
|
+
required: N,
|
|
958
|
+
reversed: N,
|
|
972
959
|
rows: k,
|
|
973
960
|
rowSpan: k,
|
|
974
961
|
sandbox: $,
|
|
975
962
|
scope: null,
|
|
976
|
-
scoped:
|
|
977
|
-
seamless:
|
|
978
|
-
selected:
|
|
979
|
-
shadowRootClonable:
|
|
980
|
-
shadowRootDelegatesFocus:
|
|
963
|
+
scoped: N,
|
|
964
|
+
seamless: N,
|
|
965
|
+
selected: N,
|
|
966
|
+
shadowRootClonable: N,
|
|
967
|
+
shadowRootDelegatesFocus: N,
|
|
981
968
|
shadowRootMode: null,
|
|
982
969
|
shape: null,
|
|
983
970
|
size: k,
|
|
@@ -997,7 +984,7 @@ const wi = zn({
|
|
|
997
984
|
title: null,
|
|
998
985
|
translate: null,
|
|
999
986
|
type: null,
|
|
1000
|
-
typeMustMatch:
|
|
987
|
+
typeMustMatch: N,
|
|
1001
988
|
useMap: null,
|
|
1002
989
|
value: q,
|
|
1003
990
|
width: k,
|
|
@@ -1043,9 +1030,9 @@ const wi = zn({
|
|
|
1043
1030
|
// `<object>`
|
|
1044
1031
|
color: null,
|
|
1045
1032
|
// `<font>` and `<hr>`. Use CSS instead
|
|
1046
|
-
compact:
|
|
1033
|
+
compact: N,
|
|
1047
1034
|
// Lists. Use CSS to reduce space between items instead
|
|
1048
|
-
declare:
|
|
1035
|
+
declare: N,
|
|
1049
1036
|
// `<object>`
|
|
1050
1037
|
event: null,
|
|
1051
1038
|
// `<script>`
|
|
@@ -1069,13 +1056,13 @@ const wi = zn({
|
|
|
1069
1056
|
// `<body>`
|
|
1070
1057
|
marginWidth: k,
|
|
1071
1058
|
// `<body>`
|
|
1072
|
-
noResize:
|
|
1059
|
+
noResize: N,
|
|
1073
1060
|
// `<frame>`
|
|
1074
|
-
noHref:
|
|
1061
|
+
noHref: N,
|
|
1075
1062
|
// `<area>`. Use no href instead of an explicit `nohref`
|
|
1076
|
-
noShade:
|
|
1063
|
+
noShade: N,
|
|
1077
1064
|
// `<hr>`. Use background-color and height instead of borders
|
|
1078
|
-
noWrap:
|
|
1065
|
+
noWrap: N,
|
|
1079
1066
|
// `<td>` and `<th>`
|
|
1080
1067
|
object: null,
|
|
1081
1068
|
// `<applet>`
|
|
@@ -1115,8 +1102,8 @@ const wi = zn({
|
|
|
1115
1102
|
allowTransparency: null,
|
|
1116
1103
|
autoCorrect: null,
|
|
1117
1104
|
autoSave: null,
|
|
1118
|
-
disablePictureInPicture:
|
|
1119
|
-
disableRemotePlayback:
|
|
1105
|
+
disablePictureInPicture: N,
|
|
1106
|
+
disableRemotePlayback: N,
|
|
1120
1107
|
prefix: null,
|
|
1121
1108
|
property: null,
|
|
1122
1109
|
results: k,
|
|
@@ -1125,7 +1112,7 @@ const wi = zn({
|
|
|
1125
1112
|
},
|
|
1126
1113
|
space: "html",
|
|
1127
1114
|
transform: Kt
|
|
1128
|
-
}), Si =
|
|
1115
|
+
}), Si = _n({
|
|
1129
1116
|
attributes: {
|
|
1130
1117
|
accentHeight: "accent-height",
|
|
1131
1118
|
alignmentBaseline: "alignment-baseline",
|
|
@@ -1351,7 +1338,7 @@ const wi = zn({
|
|
|
1351
1338
|
dur: null,
|
|
1352
1339
|
divisor: k,
|
|
1353
1340
|
dominantBaseline: null,
|
|
1354
|
-
download:
|
|
1341
|
+
download: N,
|
|
1355
1342
|
dx: null,
|
|
1356
1343
|
dy: null,
|
|
1357
1344
|
edgeMode: null,
|
|
@@ -1384,9 +1371,9 @@ const wi = zn({
|
|
|
1384
1371
|
from: null,
|
|
1385
1372
|
fx: null,
|
|
1386
1373
|
fy: null,
|
|
1387
|
-
g1:
|
|
1388
|
-
g2:
|
|
1389
|
-
glyphName:
|
|
1374
|
+
g1: Ln,
|
|
1375
|
+
g2: Ln,
|
|
1376
|
+
glyphName: Ln,
|
|
1390
1377
|
glyphOrientationHorizontal: null,
|
|
1391
1378
|
glyphOrientationVertical: null,
|
|
1392
1379
|
glyphRef: null,
|
|
@@ -1684,7 +1671,7 @@ const wi = zn({
|
|
|
1684
1671
|
},
|
|
1685
1672
|
space: "svg",
|
|
1686
1673
|
transform: Yt
|
|
1687
|
-
}), Qt =
|
|
1674
|
+
}), Qt = _n({
|
|
1688
1675
|
properties: {
|
|
1689
1676
|
xLinkActuate: null,
|
|
1690
1677
|
xLinkArcRole: null,
|
|
@@ -1698,12 +1685,12 @@ const wi = zn({
|
|
|
1698
1685
|
transform(n, e) {
|
|
1699
1686
|
return "xlink:" + e.slice(5).toLowerCase();
|
|
1700
1687
|
}
|
|
1701
|
-
}), Jt =
|
|
1688
|
+
}), Jt = _n({
|
|
1702
1689
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
1703
1690
|
properties: { xmlnsXLink: null, xmlns: null },
|
|
1704
1691
|
space: "xmlns",
|
|
1705
1692
|
transform: Kt
|
|
1706
|
-
}), Zt =
|
|
1693
|
+
}), Zt = _n({
|
|
1707
1694
|
properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
|
|
1708
1695
|
space: "xml",
|
|
1709
1696
|
transform(n, e) {
|
|
@@ -1754,24 +1741,24 @@ function Ai(n) {
|
|
|
1754
1741
|
function Ti(n) {
|
|
1755
1742
|
return n.charAt(1).toUpperCase();
|
|
1756
1743
|
}
|
|
1757
|
-
const
|
|
1744
|
+
const Li = Xt([Gt, wi, Qt, Jt, Zt], "html"), De = Xt([Gt, Si, Qt, Jt, Zt], "svg");
|
|
1758
1745
|
var An = {}, ue, at;
|
|
1759
|
-
function
|
|
1746
|
+
function zi() {
|
|
1760
1747
|
if (at) return ue;
|
|
1761
1748
|
at = 1;
|
|
1762
1749
|
var n = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, e = /\n/g, t = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, i = /^:\s*/, l = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, o = /^[;\s]*/, a = /^\s+|\s+$/g, s = `
|
|
1763
1750
|
`, u = "/", c = "*", f = "", d = "comment", p = "declaration";
|
|
1764
|
-
ue = function(b,
|
|
1751
|
+
ue = function(b, L) {
|
|
1765
1752
|
if (typeof b != "string")
|
|
1766
1753
|
throw new TypeError("First argument must be a string");
|
|
1767
1754
|
if (!b) return [];
|
|
1768
|
-
|
|
1755
|
+
L = L || {};
|
|
1769
1756
|
var x = 1, T = 1;
|
|
1770
1757
|
function C(P) {
|
|
1771
1758
|
var I = P.match(e);
|
|
1772
1759
|
I && (x += I.length);
|
|
1773
|
-
var
|
|
1774
|
-
T = ~
|
|
1760
|
+
var _ = P.lastIndexOf(s);
|
|
1761
|
+
T = ~_ ? P.length - _ : T + P.length;
|
|
1775
1762
|
}
|
|
1776
1763
|
function B() {
|
|
1777
1764
|
var P = { line: x, column: T };
|
|
@@ -1780,20 +1767,20 @@ function Li() {
|
|
|
1780
1767
|
};
|
|
1781
1768
|
}
|
|
1782
1769
|
function j(P) {
|
|
1783
|
-
this.start = P, this.end = { line: x, column: T }, this.source =
|
|
1770
|
+
this.start = P, this.end = { line: x, column: T }, this.source = L.source;
|
|
1784
1771
|
}
|
|
1785
1772
|
j.prototype.content = b;
|
|
1786
1773
|
function y(P) {
|
|
1787
1774
|
var I = new Error(
|
|
1788
|
-
|
|
1775
|
+
L.source + ":" + x + ":" + T + ": " + P
|
|
1789
1776
|
);
|
|
1790
|
-
if (I.reason = P, I.filename =
|
|
1777
|
+
if (I.reason = P, I.filename = L.source, I.line = x, I.column = T, I.source = b, !L.silent) throw I;
|
|
1791
1778
|
}
|
|
1792
1779
|
function R(P) {
|
|
1793
1780
|
var I = P.exec(b);
|
|
1794
1781
|
if (I) {
|
|
1795
|
-
var
|
|
1796
|
-
return C(
|
|
1782
|
+
var _ = I[0];
|
|
1783
|
+
return C(_), b = b.slice(_.length), I;
|
|
1797
1784
|
}
|
|
1798
1785
|
}
|
|
1799
1786
|
function V() {
|
|
@@ -1812,10 +1799,10 @@ function Li() {
|
|
|
1812
1799
|
++I;
|
|
1813
1800
|
if (I += 2, f === b.charAt(I - 1))
|
|
1814
1801
|
return y("End of comment missing");
|
|
1815
|
-
var
|
|
1816
|
-
return T += 2, C(
|
|
1802
|
+
var _ = b.slice(2, I - 2);
|
|
1803
|
+
return T += 2, C(_), b = b.slice(I), T += 2, P({
|
|
1817
1804
|
type: d,
|
|
1818
|
-
comment:
|
|
1805
|
+
comment: _
|
|
1819
1806
|
});
|
|
1820
1807
|
}
|
|
1821
1808
|
}
|
|
@@ -1823,10 +1810,10 @@ function Li() {
|
|
|
1823
1810
|
var P = B(), I = R(r);
|
|
1824
1811
|
if (I) {
|
|
1825
1812
|
if (F(), !R(i)) return y("property missing ':'");
|
|
1826
|
-
var
|
|
1813
|
+
var _ = R(l), W = P({
|
|
1827
1814
|
type: p,
|
|
1828
1815
|
property: w(I[0].replace(n, f)),
|
|
1829
|
-
value:
|
|
1816
|
+
value: _ ? w(_[0].replace(n, f)) : f
|
|
1830
1817
|
});
|
|
1831
1818
|
return R(o), W;
|
|
1832
1819
|
}
|
|
@@ -1846,14 +1833,14 @@ function Li() {
|
|
|
1846
1833
|
return ue;
|
|
1847
1834
|
}
|
|
1848
1835
|
var ut;
|
|
1849
|
-
function
|
|
1836
|
+
function _i() {
|
|
1850
1837
|
if (ut) return An;
|
|
1851
1838
|
ut = 1;
|
|
1852
1839
|
var n = An && An.__importDefault || function(r) {
|
|
1853
1840
|
return r && r.__esModule ? r : { default: r };
|
|
1854
1841
|
};
|
|
1855
1842
|
Object.defineProperty(An, "__esModule", { value: !0 }), An.default = t;
|
|
1856
|
-
const e = n(/* @__PURE__ */
|
|
1843
|
+
const e = n(/* @__PURE__ */ zi());
|
|
1857
1844
|
function t(r, i) {
|
|
1858
1845
|
let l = null;
|
|
1859
1846
|
if (!r || typeof r != "string")
|
|
@@ -1869,7 +1856,7 @@ function zi() {
|
|
|
1869
1856
|
return An;
|
|
1870
1857
|
}
|
|
1871
1858
|
var Bn = {}, st;
|
|
1872
|
-
function
|
|
1859
|
+
function Mi() {
|
|
1873
1860
|
if (st) return Bn;
|
|
1874
1861
|
st = 1, Object.defineProperty(Bn, "__esModule", { value: !0 }), Bn.camelCase = void 0;
|
|
1875
1862
|
var n = /^--[a-zA-Z0-9_-]+$/, e = /-([a-z])/g, t = /^[^-]+$/, r = /^-(webkit|moz|ms|o|khtml)-/, i = /^-(ms)-/, l = function(u) {
|
|
@@ -1884,12 +1871,12 @@ function Ni() {
|
|
|
1884
1871
|
return Bn.camelCase = s, Bn;
|
|
1885
1872
|
}
|
|
1886
1873
|
var Un, ct;
|
|
1887
|
-
function
|
|
1874
|
+
function Ni() {
|
|
1888
1875
|
if (ct) return Un;
|
|
1889
1876
|
ct = 1;
|
|
1890
1877
|
var n = Un && Un.__importDefault || function(i) {
|
|
1891
1878
|
return i && i.__esModule ? i : { default: i };
|
|
1892
|
-
}, e = n(/* @__PURE__ */
|
|
1879
|
+
}, e = n(/* @__PURE__ */ _i()), t = /* @__PURE__ */ Mi();
|
|
1893
1880
|
function r(i, l) {
|
|
1894
1881
|
var o = {};
|
|
1895
1882
|
return !i || typeof i != "string" || (0, e.default)(i, function(a, s) {
|
|
@@ -1898,7 +1885,7 @@ function Mi() {
|
|
|
1898
1885
|
}
|
|
1899
1886
|
return r.default = r, Un = r, Un;
|
|
1900
1887
|
}
|
|
1901
|
-
var vi = /* @__PURE__ */
|
|
1888
|
+
var vi = /* @__PURE__ */ Ni();
|
|
1902
1889
|
const Ri = /* @__PURE__ */ Bt(vi), nr = er("end"), Oe = er("start");
|
|
1903
1890
|
function er(n) {
|
|
1904
1891
|
return e;
|
|
@@ -2046,7 +2033,7 @@ function ji(n, e) {
|
|
|
2046
2033
|
ignoreInvalidStyle: e.ignoreInvalidStyle || !1,
|
|
2047
2034
|
passKeys: e.passKeys !== !1,
|
|
2048
2035
|
passNode: e.passNode || !1,
|
|
2049
|
-
schema: e.space === "svg" ? De :
|
|
2036
|
+
schema: e.space === "svg" ? De : Li,
|
|
2050
2037
|
stylePropertyNameCase: e.stylePropertyNameCase || "dom",
|
|
2051
2038
|
tableCellAlignToStyle: e.tableCellAlignToStyle !== !1
|
|
2052
2039
|
}, l = rr(i, n, void 0);
|
|
@@ -2406,7 +2393,7 @@ function ar(n, e) {
|
|
|
2406
2393
|
t > 1114111 ? "�" : String.fromCodePoint(t)
|
|
2407
2394
|
);
|
|
2408
2395
|
}
|
|
2409
|
-
function
|
|
2396
|
+
function zn(n) {
|
|
2410
2397
|
return n.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
2411
2398
|
}
|
|
2412
2399
|
const sn = yn(/[A-Za-z]/), en = yn(/[\dA-Za-z]/), cl = yn(/[#-'*+\--9=?A-Z^-~]/);
|
|
@@ -2418,7 +2405,7 @@ function Ie(n) {
|
|
|
2418
2405
|
);
|
|
2419
2406
|
}
|
|
2420
2407
|
const Ee = yn(/\d/), fl = yn(/[\dA-Fa-f]/), pl = yn(/[!-/:-@[-`{-~]/);
|
|
2421
|
-
function
|
|
2408
|
+
function z(n) {
|
|
2422
2409
|
return n !== null && n < -2;
|
|
2423
2410
|
}
|
|
2424
2411
|
function Q(n) {
|
|
@@ -2434,7 +2421,7 @@ function yn(n) {
|
|
|
2434
2421
|
return t !== null && t > -1 && n.test(String.fromCharCode(t));
|
|
2435
2422
|
}
|
|
2436
2423
|
}
|
|
2437
|
-
function
|
|
2424
|
+
function Mn(n) {
|
|
2438
2425
|
const e = [];
|
|
2439
2426
|
let t = -1, r = 0, i = 0;
|
|
2440
2427
|
for (; ++t < n.length; ) {
|
|
@@ -2493,7 +2480,7 @@ function gl(n) {
|
|
|
2493
2480
|
n.exit("chunkText"), n.exit("paragraph"), n.consume(a);
|
|
2494
2481
|
return;
|
|
2495
2482
|
}
|
|
2496
|
-
return
|
|
2483
|
+
return z(a) ? (n.consume(a), n.exit("chunkText"), l) : (n.consume(a), o);
|
|
2497
2484
|
}
|
|
2498
2485
|
}
|
|
2499
2486
|
const yl = {
|
|
@@ -2567,12 +2554,12 @@ function kl(n) {
|
|
|
2567
2554
|
}
|
|
2568
2555
|
function b(C) {
|
|
2569
2556
|
if (C === null) {
|
|
2570
|
-
|
|
2557
|
+
L(n.exit("chunkFlow"), !0), x(0), n.consume(C);
|
|
2571
2558
|
return;
|
|
2572
2559
|
}
|
|
2573
|
-
return
|
|
2560
|
+
return z(C) ? (n.consume(C), L(n.exit("chunkFlow")), r = 0, e.interrupt = void 0, a) : (n.consume(C), b);
|
|
2574
2561
|
}
|
|
2575
|
-
function
|
|
2562
|
+
function L(C, B) {
|
|
2576
2563
|
const j = e.sliceStream(C);
|
|
2577
2564
|
if (B && j.push(null), C.previous = l, l && (l.next = C), l = C, i.defineSkip(C.start), i.write(j), e.parser.lazy[C.start.line]) {
|
|
2578
2565
|
let y = i.events.length;
|
|
@@ -2757,7 +2744,7 @@ function Il(n, e, t) {
|
|
|
2757
2744
|
return D(l) ? H(n, i, "linePrefix")(l) : i(l);
|
|
2758
2745
|
}
|
|
2759
2746
|
function i(l) {
|
|
2760
|
-
return l === null ||
|
|
2747
|
+
return l === null || z(l) ? e(l) : t(l);
|
|
2761
2748
|
}
|
|
2762
2749
|
}
|
|
2763
2750
|
const ur = {
|
|
@@ -2812,9 +2799,9 @@ function Tl(n, e, t) {
|
|
|
2812
2799
|
}
|
|
2813
2800
|
const cr = {
|
|
2814
2801
|
name: "characterReference",
|
|
2815
|
-
tokenize:
|
|
2802
|
+
tokenize: Ll
|
|
2816
2803
|
};
|
|
2817
|
-
function
|
|
2804
|
+
function Ll(n, e, t) {
|
|
2818
2805
|
const r = this;
|
|
2819
2806
|
let i = 0, l, o;
|
|
2820
2807
|
return a;
|
|
@@ -2837,13 +2824,13 @@ function _l(n, e, t) {
|
|
|
2837
2824
|
}
|
|
2838
2825
|
const xt = {
|
|
2839
2826
|
partial: !0,
|
|
2840
|
-
tokenize:
|
|
2827
|
+
tokenize: _l
|
|
2841
2828
|
}, bt = {
|
|
2842
2829
|
concrete: !0,
|
|
2843
2830
|
name: "codeFenced",
|
|
2844
|
-
tokenize:
|
|
2831
|
+
tokenize: zl
|
|
2845
2832
|
};
|
|
2846
|
-
function
|
|
2833
|
+
function zl(n, e, t) {
|
|
2847
2834
|
const r = this, i = {
|
|
2848
2835
|
partial: !0,
|
|
2849
2836
|
tokenize: j
|
|
@@ -2861,35 +2848,35 @@ function Ll(n, e, t) {
|
|
|
2861
2848
|
return y === a ? (o++, n.consume(y), c) : o < 3 ? t(y) : (n.exit("codeFencedFenceSequence"), D(y) ? H(n, f, "whitespace")(y) : f(y));
|
|
2862
2849
|
}
|
|
2863
2850
|
function f(y) {
|
|
2864
|
-
return y === null ||
|
|
2851
|
+
return y === null || z(y) ? (n.exit("codeFencedFence"), r.interrupt ? e(y) : n.check(xt, b, B)(y)) : (n.enter("codeFencedFenceInfo"), n.enter("chunkString", {
|
|
2865
2852
|
contentType: "string"
|
|
2866
2853
|
}), d(y));
|
|
2867
2854
|
}
|
|
2868
2855
|
function d(y) {
|
|
2869
|
-
return y === null ||
|
|
2856
|
+
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);
|
|
2870
2857
|
}
|
|
2871
2858
|
function p(y) {
|
|
2872
|
-
return y === null ||
|
|
2859
|
+
return y === null || z(y) ? f(y) : (n.enter("codeFencedFenceMeta"), n.enter("chunkString", {
|
|
2873
2860
|
contentType: "string"
|
|
2874
2861
|
}), w(y));
|
|
2875
2862
|
}
|
|
2876
2863
|
function w(y) {
|
|
2877
|
-
return y === null ||
|
|
2864
|
+
return y === null || z(y) ? (n.exit("chunkString"), n.exit("codeFencedFenceMeta"), f(y)) : y === 96 && y === a ? t(y) : (n.consume(y), w);
|
|
2878
2865
|
}
|
|
2879
2866
|
function b(y) {
|
|
2880
|
-
return n.attempt(i, B,
|
|
2867
|
+
return n.attempt(i, B, L)(y);
|
|
2881
2868
|
}
|
|
2882
|
-
function
|
|
2869
|
+
function L(y) {
|
|
2883
2870
|
return n.enter("lineEnding"), n.consume(y), n.exit("lineEnding"), x;
|
|
2884
2871
|
}
|
|
2885
2872
|
function x(y) {
|
|
2886
2873
|
return l > 0 && D(y) ? H(n, T, "linePrefix", l + 1)(y) : T(y);
|
|
2887
2874
|
}
|
|
2888
2875
|
function T(y) {
|
|
2889
|
-
return y === null ||
|
|
2876
|
+
return y === null || z(y) ? n.check(xt, b, B)(y) : (n.enter("codeFlowValue"), C(y));
|
|
2890
2877
|
}
|
|
2891
2878
|
function C(y) {
|
|
2892
|
-
return y === null ||
|
|
2879
|
+
return y === null || z(y) ? (n.exit("codeFlowValue"), T(y)) : (n.consume(y), C);
|
|
2893
2880
|
}
|
|
2894
2881
|
function B(y) {
|
|
2895
2882
|
return n.exit("codeFenced"), e(y);
|
|
@@ -2897,24 +2884,24 @@ function Ll(n, e, t) {
|
|
|
2897
2884
|
function j(y, R, V) {
|
|
2898
2885
|
let O = 0;
|
|
2899
2886
|
return F;
|
|
2900
|
-
function F(
|
|
2901
|
-
return y.enter("lineEnding"), y.consume(
|
|
2887
|
+
function F(_) {
|
|
2888
|
+
return y.enter("lineEnding"), y.consume(_), y.exit("lineEnding"), A;
|
|
2902
2889
|
}
|
|
2903
|
-
function A(
|
|
2904
|
-
return y.enter("codeFencedFence"), D(
|
|
2890
|
+
function A(_) {
|
|
2891
|
+
return y.enter("codeFencedFence"), D(_) ? H(y, E, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(_) : E(_);
|
|
2905
2892
|
}
|
|
2906
|
-
function E(
|
|
2907
|
-
return
|
|
2893
|
+
function E(_) {
|
|
2894
|
+
return _ === a ? (y.enter("codeFencedFenceSequence"), P(_)) : V(_);
|
|
2908
2895
|
}
|
|
2909
|
-
function P(
|
|
2910
|
-
return
|
|
2896
|
+
function P(_) {
|
|
2897
|
+
return _ === a ? (O++, y.consume(_), P) : O >= o ? (y.exit("codeFencedFenceSequence"), D(_) ? H(y, I, "whitespace")(_) : I(_)) : V(_);
|
|
2911
2898
|
}
|
|
2912
|
-
function I(
|
|
2913
|
-
return
|
|
2899
|
+
function I(_) {
|
|
2900
|
+
return _ === null || z(_) ? (y.exit("codeFencedFence"), R(_)) : V(_);
|
|
2914
2901
|
}
|
|
2915
2902
|
}
|
|
2916
2903
|
}
|
|
2917
|
-
function
|
|
2904
|
+
function _l(n, e, t) {
|
|
2918
2905
|
const r = this;
|
|
2919
2906
|
return i;
|
|
2920
2907
|
function i(o) {
|
|
@@ -2926,12 +2913,12 @@ function zl(n, e, t) {
|
|
|
2926
2913
|
}
|
|
2927
2914
|
const se = {
|
|
2928
2915
|
name: "codeIndented",
|
|
2929
|
-
tokenize:
|
|
2930
|
-
},
|
|
2916
|
+
tokenize: Nl
|
|
2917
|
+
}, Ml = {
|
|
2931
2918
|
partial: !0,
|
|
2932
2919
|
tokenize: vl
|
|
2933
2920
|
};
|
|
2934
|
-
function
|
|
2921
|
+
function Nl(n, e, t) {
|
|
2935
2922
|
const r = this;
|
|
2936
2923
|
return i;
|
|
2937
2924
|
function i(u) {
|
|
@@ -2942,10 +2929,10 @@ function Ml(n, e, t) {
|
|
|
2942
2929
|
return c && c[1].type === "linePrefix" && c[2].sliceSerialize(c[1], !0).length >= 4 ? o(u) : t(u);
|
|
2943
2930
|
}
|
|
2944
2931
|
function o(u) {
|
|
2945
|
-
return u === null ? s(u) :
|
|
2932
|
+
return u === null ? s(u) : z(u) ? n.attempt(Ml, o, s)(u) : (n.enter("codeFlowValue"), a(u));
|
|
2946
2933
|
}
|
|
2947
2934
|
function a(u) {
|
|
2948
|
-
return u === null ||
|
|
2935
|
+
return u === null || z(u) ? (n.exit("codeFlowValue"), o(u)) : (n.consume(u), a);
|
|
2949
2936
|
}
|
|
2950
2937
|
function s(u) {
|
|
2951
2938
|
return n.exit("codeIndented"), e(u);
|
|
@@ -2955,11 +2942,11 @@ function vl(n, e, t) {
|
|
|
2955
2942
|
const r = this;
|
|
2956
2943
|
return i;
|
|
2957
2944
|
function i(o) {
|
|
2958
|
-
return r.parser.lazy[r.now().line] ? t(o) :
|
|
2945
|
+
return r.parser.lazy[r.now().line] ? t(o) : z(o) ? (n.enter("lineEnding"), n.consume(o), n.exit("lineEnding"), i) : H(n, l, "linePrefix", 5)(o);
|
|
2959
2946
|
}
|
|
2960
2947
|
function l(o) {
|
|
2961
2948
|
const a = r.events[r.events.length - 1];
|
|
2962
|
-
return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? e(o) :
|
|
2949
|
+
return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? e(o) : z(o) ? i(o) : t(o);
|
|
2963
2950
|
}
|
|
2964
2951
|
}
|
|
2965
2952
|
const Rl = {
|
|
@@ -2994,10 +2981,10 @@ function Fl(n, e, t) {
|
|
|
2994
2981
|
return f === 96 ? (n.consume(f), r++, a) : (n.exit("codeTextSequence"), s(f));
|
|
2995
2982
|
}
|
|
2996
2983
|
function s(f) {
|
|
2997
|
-
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)) :
|
|
2984
|
+
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));
|
|
2998
2985
|
}
|
|
2999
2986
|
function u(f) {
|
|
3000
|
-
return f === null || f === 32 || f === 96 ||
|
|
2987
|
+
return f === null || f === 32 || f === 96 || z(f) ? (n.exit("codeTextData"), s(f)) : (n.consume(f), u);
|
|
3001
2988
|
}
|
|
3002
2989
|
function c(f) {
|
|
3003
2990
|
return f === 96 ? (n.consume(f), i++, c) : i === r ? (n.exit("codeTextSequence"), n.exit("codeText"), e(f)) : (l.type = "codeTextData", u(f));
|
|
@@ -3207,7 +3194,7 @@ function Ul(n, e) {
|
|
|
3207
3194
|
o || (o = r.parser[t.contentType](t.start), t._contentTypeTextTrailing && (o._contentTypeTextTrailing = !0));
|
|
3208
3195
|
const a = o.events, s = [], u = {};
|
|
3209
3196
|
let c, f, d = -1, p = t, w = 0, b = 0;
|
|
3210
|
-
const
|
|
3197
|
+
const L = [b];
|
|
3211
3198
|
for (; p; ) {
|
|
3212
3199
|
for (; n.get(++i)[1] !== p; )
|
|
3213
3200
|
;
|
|
@@ -3215,9 +3202,9 @@ function Ul(n, e) {
|
|
|
3215
3202
|
}
|
|
3216
3203
|
for (p = t; ++d < a.length; )
|
|
3217
3204
|
// Find a void token that includes a break.
|
|
3218
|
-
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,
|
|
3219
|
-
for (o.events = [], p ? (p._tokenizer = void 0, p.previous = void 0) :
|
|
3220
|
-
const x = a.slice(
|
|
3205
|
+
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);
|
|
3206
|
+
for (o.events = [], p ? (p._tokenizer = void 0, p.previous = void 0) : L.pop(), d = L.length; d--; ) {
|
|
3207
|
+
const x = a.slice(L[d], L[d + 1]), T = l.pop();
|
|
3221
3208
|
s.push([T, T + x.length - 1]), n.splice(T, 2, x);
|
|
3222
3209
|
}
|
|
3223
3210
|
for (s.reverse(), d = -1; ++d < s.length; )
|
|
@@ -3243,7 +3230,7 @@ function Vl(n, e) {
|
|
|
3243
3230
|
}), i(a);
|
|
3244
3231
|
}
|
|
3245
3232
|
function i(a) {
|
|
3246
|
-
return a === null ? l(a) :
|
|
3233
|
+
return a === null ? l(a) : z(a) ? n.check($l, o, l)(a) : (n.consume(a), i);
|
|
3247
3234
|
}
|
|
3248
3235
|
function l(a) {
|
|
3249
3236
|
return n.exit("chunkContent"), n.exit("content"), e(a);
|
|
@@ -3262,7 +3249,7 @@ function ql(n, e, t) {
|
|
|
3262
3249
|
return n.exit("chunkContent"), n.enter("lineEnding"), n.consume(o), n.exit("lineEnding"), H(n, l, "linePrefix");
|
|
3263
3250
|
}
|
|
3264
3251
|
function l(o) {
|
|
3265
|
-
if (o === null ||
|
|
3252
|
+
if (o === null || z(o))
|
|
3266
3253
|
return t(o);
|
|
3267
3254
|
const a = r.events[r.events.length - 1];
|
|
3268
3255
|
return !r.parser.constructs.disable.null.includes("codeIndented") && a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? e(o) : n.interrupt(r.parser.constructs.flow, t, e)(o);
|
|
@@ -3283,15 +3270,15 @@ function pr(n, e, t, r, i, l, o, a, s) {
|
|
|
3283
3270
|
}), p(x));
|
|
3284
3271
|
}
|
|
3285
3272
|
function p(x) {
|
|
3286
|
-
return x === 62 ? (n.exit("chunkString"), n.exit(a), d(x)) : x === null || x === 60 ||
|
|
3273
|
+
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);
|
|
3287
3274
|
}
|
|
3288
3275
|
function w(x) {
|
|
3289
3276
|
return x === 60 || x === 62 || x === 92 ? (n.consume(x), p) : p(x);
|
|
3290
3277
|
}
|
|
3291
3278
|
function b(x) {
|
|
3292
|
-
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 || Ie(x) ? t(x) : (n.consume(x), x === 92 ?
|
|
3279
|
+
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 || Ie(x) ? t(x) : (n.consume(x), x === 92 ? L : b);
|
|
3293
3280
|
}
|
|
3294
|
-
function
|
|
3281
|
+
function L(x) {
|
|
3295
3282
|
return x === 40 || x === 41 || x === 92 ? (n.consume(x), b) : b(x);
|
|
3296
3283
|
}
|
|
3297
3284
|
}
|
|
@@ -3308,12 +3295,12 @@ function hr(n, e, t, r, i, l) {
|
|
|
3308
3295
|
// which doesn’t need this.
|
|
3309
3296
|
// Hidden footnotes hook.
|
|
3310
3297
|
/* c8 ignore next 3 */
|
|
3311
|
-
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) :
|
|
3298
|
+
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", {
|
|
3312
3299
|
contentType: "string"
|
|
3313
3300
|
}), f(p));
|
|
3314
3301
|
}
|
|
3315
3302
|
function f(p) {
|
|
3316
|
-
return p === null || p === 91 || p === 93 ||
|
|
3303
|
+
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);
|
|
3317
3304
|
}
|
|
3318
3305
|
function d(p) {
|
|
3319
3306
|
return p === 91 || p === 92 || p === 93 ? (n.consume(p), a++, f) : f(p);
|
|
@@ -3329,12 +3316,12 @@ function mr(n, e, t, r, i, l) {
|
|
|
3329
3316
|
return d === o ? (n.enter(i), n.consume(d), n.exit(i), n.exit(r), e) : (n.enter(l), u(d));
|
|
3330
3317
|
}
|
|
3331
3318
|
function u(d) {
|
|
3332
|
-
return d === o ? (n.exit(l), s(o)) : d === null ? t(d) :
|
|
3319
|
+
return d === o ? (n.exit(l), s(o)) : d === null ? t(d) : z(d) ? (n.enter("lineEnding"), n.consume(d), n.exit("lineEnding"), H(n, u, "linePrefix")) : (n.enter("chunkString", {
|
|
3333
3320
|
contentType: "string"
|
|
3334
3321
|
}), c(d));
|
|
3335
3322
|
}
|
|
3336
3323
|
function c(d) {
|
|
3337
|
-
return d === o || d === null ||
|
|
3324
|
+
return d === o || d === null || z(d) ? (n.exit("chunkString"), u(d)) : (n.consume(d), d === 92 ? f : c);
|
|
3338
3325
|
}
|
|
3339
3326
|
function f(d) {
|
|
3340
3327
|
return d === o || d === 92 ? (n.consume(d), c) : c(d);
|
|
@@ -3344,7 +3331,7 @@ function qn(n, e) {
|
|
|
3344
3331
|
let t;
|
|
3345
3332
|
return r;
|
|
3346
3333
|
function r(i) {
|
|
3347
|
-
return
|
|
3334
|
+
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);
|
|
3348
3335
|
}
|
|
3349
3336
|
}
|
|
3350
3337
|
const Wl = {
|
|
@@ -3374,7 +3361,7 @@ function Gl(n, e, t) {
|
|
|
3374
3361
|
)(p);
|
|
3375
3362
|
}
|
|
3376
3363
|
function a(p) {
|
|
3377
|
-
return i =
|
|
3364
|
+
return i = zn(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);
|
|
3378
3365
|
}
|
|
3379
3366
|
function s(p) {
|
|
3380
3367
|
return Q(p) ? qn(n, u)(p) : u(p);
|
|
@@ -3399,7 +3386,7 @@ function Gl(n, e, t) {
|
|
|
3399
3386
|
return D(p) ? H(n, d, "whitespace")(p) : d(p);
|
|
3400
3387
|
}
|
|
3401
3388
|
function d(p) {
|
|
3402
|
-
return p === null ||
|
|
3389
|
+
return p === null || z(p) ? (n.exit("definition"), r.parser.defined.push(i), e(p)) : t(p);
|
|
3403
3390
|
}
|
|
3404
3391
|
}
|
|
3405
3392
|
function Yl(n, e, t) {
|
|
@@ -3414,7 +3401,7 @@ function Yl(n, e, t) {
|
|
|
3414
3401
|
return D(a) ? H(n, o, "whitespace")(a) : o(a);
|
|
3415
3402
|
}
|
|
3416
3403
|
function o(a) {
|
|
3417
|
-
return a === null ||
|
|
3404
|
+
return a === null || z(a) ? e(a) : t(a);
|
|
3418
3405
|
}
|
|
3419
3406
|
}
|
|
3420
3407
|
const Kl = {
|
|
@@ -3427,7 +3414,7 @@ function Ql(n, e, t) {
|
|
|
3427
3414
|
return n.enter("hardBreakEscape"), n.consume(l), i;
|
|
3428
3415
|
}
|
|
3429
3416
|
function i(l) {
|
|
3430
|
-
return
|
|
3417
|
+
return z(l) ? (n.exit("hardBreakEscape"), e(l)) : t(l);
|
|
3431
3418
|
}
|
|
3432
3419
|
}
|
|
3433
3420
|
const Jl = {
|
|
@@ -3461,7 +3448,7 @@ function no(n, e, t) {
|
|
|
3461
3448
|
return c === 35 && r++ < 6 ? (n.consume(c), o) : c === null || Q(c) ? (n.exit("atxHeadingSequence"), a(c)) : t(c);
|
|
3462
3449
|
}
|
|
3463
3450
|
function a(c) {
|
|
3464
|
-
return c === 35 ? (n.enter("atxHeadingSequence"), s(c)) : c === null ||
|
|
3451
|
+
return c === 35 ? (n.enter("atxHeadingSequence"), s(c)) : c === null || z(c) ? (n.exit("atxHeading"), e(c)) : D(c) ? H(n, a, "whitespace")(c) : (n.enter("atxHeadingText"), u(c));
|
|
3465
3452
|
}
|
|
3466
3453
|
function s(c) {
|
|
3467
3454
|
return c === 35 ? (n.consume(c), s) : (n.exit("atxHeadingSequence"), a(c));
|
|
@@ -3562,7 +3549,7 @@ function oo(n, e, t) {
|
|
|
3562
3549
|
return n.enter("htmlFlow"), n.enter("htmlFlowData"), n.consume(m), f;
|
|
3563
3550
|
}
|
|
3564
3551
|
function f(m) {
|
|
3565
|
-
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),
|
|
3552
|
+
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);
|
|
3566
3553
|
}
|
|
3567
3554
|
function d(m) {
|
|
3568
3555
|
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);
|
|
@@ -3575,14 +3562,14 @@ function oo(n, e, t) {
|
|
|
3575
3562
|
return m === on.charCodeAt(a++) ? (n.consume(m), a === on.length ? r.interrupt ? e : E : w) : t(m);
|
|
3576
3563
|
}
|
|
3577
3564
|
function b(m) {
|
|
3578
|
-
return sn(m) ? (n.consume(m), o = String.fromCharCode(m),
|
|
3565
|
+
return sn(m) ? (n.consume(m), o = String.fromCharCode(m), L) : t(m);
|
|
3579
3566
|
}
|
|
3580
|
-
function
|
|
3567
|
+
function L(m) {
|
|
3581
3568
|
if (m === null || m === 47 || m === 62 || Q(m)) {
|
|
3582
3569
|
const on = m === 47, kn = o.toLowerCase();
|
|
3583
3570
|
return !on && !l && wt.includes(kn) ? (i = 1, r.interrupt ? e(m) : E(m)) : eo.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));
|
|
3584
3571
|
}
|
|
3585
|
-
return m === 45 || en(m) ? (n.consume(m), o += String.fromCharCode(m),
|
|
3572
|
+
return m === 45 || en(m) ? (n.consume(m), o += String.fromCharCode(m), L) : t(m);
|
|
3586
3573
|
}
|
|
3587
3574
|
function x(m) {
|
|
3588
3575
|
return m === 62 ? (n.consume(m), r.interrupt ? e : E) : t(m);
|
|
@@ -3603,7 +3590,7 @@ function oo(n, e, t) {
|
|
|
3603
3590
|
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);
|
|
3604
3591
|
}
|
|
3605
3592
|
function R(m) {
|
|
3606
|
-
return m === s ? (n.consume(m), s = null, O) : m === null ||
|
|
3593
|
+
return m === s ? (n.consume(m), s = null, O) : m === null || z(m) ? t(m) : (n.consume(m), R);
|
|
3607
3594
|
}
|
|
3608
3595
|
function V(m) {
|
|
3609
3596
|
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);
|
|
@@ -3615,19 +3602,19 @@ function oo(n, e, t) {
|
|
|
3615
3602
|
return m === 62 ? (n.consume(m), A) : t(m);
|
|
3616
3603
|
}
|
|
3617
3604
|
function A(m) {
|
|
3618
|
-
return m === null ||
|
|
3605
|
+
return m === null || z(m) ? E(m) : D(m) ? (n.consume(m), A) : t(m);
|
|
3619
3606
|
}
|
|
3620
3607
|
function E(m) {
|
|
3621
|
-
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) :
|
|
3608
|
+
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(ro, pn, P)(m)) : m === null || z(m) ? (n.exit("htmlFlowData"), P(m)) : (n.consume(m), E);
|
|
3622
3609
|
}
|
|
3623
3610
|
function P(m) {
|
|
3624
3611
|
return n.check(io, I, pn)(m);
|
|
3625
3612
|
}
|
|
3626
3613
|
function I(m) {
|
|
3627
|
-
return n.enter("lineEnding"), n.consume(m), n.exit("lineEnding"),
|
|
3614
|
+
return n.enter("lineEnding"), n.consume(m), n.exit("lineEnding"), _;
|
|
3628
3615
|
}
|
|
3629
|
-
function
|
|
3630
|
-
return m === null ||
|
|
3616
|
+
function _(m) {
|
|
3617
|
+
return m === null || z(m) ? P(m) : (n.enter("htmlFlowData"), E(m));
|
|
3631
3618
|
}
|
|
3632
3619
|
function W(m) {
|
|
3633
3620
|
return m === 45 ? (n.consume(m), h) : E(m);
|
|
@@ -3649,7 +3636,7 @@ function oo(n, e, t) {
|
|
|
3649
3636
|
return m === 62 ? (n.consume(m), ln) : m === 45 && i === 2 ? (n.consume(m), h) : E(m);
|
|
3650
3637
|
}
|
|
3651
3638
|
function ln(m) {
|
|
3652
|
-
return m === null ||
|
|
3639
|
+
return m === null || z(m) ? (n.exit("htmlFlowData"), pn(m)) : (n.consume(m), ln);
|
|
3653
3640
|
}
|
|
3654
3641
|
function pn(m) {
|
|
3655
3642
|
return n.exit("htmlFlow"), e(m);
|
|
@@ -3659,7 +3646,7 @@ function ao(n, e, t) {
|
|
|
3659
3646
|
const r = this;
|
|
3660
3647
|
return i;
|
|
3661
3648
|
function i(o) {
|
|
3662
|
-
return
|
|
3649
|
+
return z(o) ? (n.enter("lineEnding"), n.consume(o), n.exit("lineEnding"), l) : t(o);
|
|
3663
3650
|
}
|
|
3664
3651
|
function l(o) {
|
|
3665
3652
|
return r.parser.lazy[r.now().line] ? t(o) : e(o);
|
|
@@ -3692,7 +3679,7 @@ function co(n, e, t) {
|
|
|
3692
3679
|
return h === 45 ? (n.consume(h), p) : t(h);
|
|
3693
3680
|
}
|
|
3694
3681
|
function f(h) {
|
|
3695
|
-
return h === null ? t(h) : h === 45 ? (n.consume(h), d) :
|
|
3682
|
+
return h === null ? t(h) : h === 45 ? (n.consume(h), d) : z(h) ? (o = f, X(h)) : (n.consume(h), f);
|
|
3696
3683
|
}
|
|
3697
3684
|
function d(h) {
|
|
3698
3685
|
return h === 45 ? (n.consume(h), p) : f(h);
|
|
@@ -3705,19 +3692,19 @@ function co(n, e, t) {
|
|
|
3705
3692
|
return h === ln.charCodeAt(l++) ? (n.consume(h), l === ln.length ? b : w) : t(h);
|
|
3706
3693
|
}
|
|
3707
3694
|
function b(h) {
|
|
3708
|
-
return h === null ? t(h) : h === 93 ? (n.consume(h),
|
|
3695
|
+
return h === null ? t(h) : h === 93 ? (n.consume(h), L) : z(h) ? (o = b, X(h)) : (n.consume(h), b);
|
|
3709
3696
|
}
|
|
3710
|
-
function
|
|
3697
|
+
function L(h) {
|
|
3711
3698
|
return h === 93 ? (n.consume(h), x) : b(h);
|
|
3712
3699
|
}
|
|
3713
3700
|
function x(h) {
|
|
3714
3701
|
return h === 62 ? W(h) : h === 93 ? (n.consume(h), x) : b(h);
|
|
3715
3702
|
}
|
|
3716
3703
|
function T(h) {
|
|
3717
|
-
return h === null || h === 62 ? W(h) :
|
|
3704
|
+
return h === null || h === 62 ? W(h) : z(h) ? (o = T, X(h)) : (n.consume(h), T);
|
|
3718
3705
|
}
|
|
3719
3706
|
function C(h) {
|
|
3720
|
-
return h === null ? t(h) : h === 63 ? (n.consume(h), B) :
|
|
3707
|
+
return h === null ? t(h) : h === 63 ? (n.consume(h), B) : z(h) ? (o = C, X(h)) : (n.consume(h), C);
|
|
3721
3708
|
}
|
|
3722
3709
|
function B(h) {
|
|
3723
3710
|
return h === 62 ? W(h) : C(h);
|
|
@@ -3729,30 +3716,30 @@ function co(n, e, t) {
|
|
|
3729
3716
|
return h === 45 || en(h) ? (n.consume(h), y) : R(h);
|
|
3730
3717
|
}
|
|
3731
3718
|
function R(h) {
|
|
3732
|
-
return
|
|
3719
|
+
return z(h) ? (o = R, X(h)) : D(h) ? (n.consume(h), R) : W(h);
|
|
3733
3720
|
}
|
|
3734
3721
|
function V(h) {
|
|
3735
3722
|
return h === 45 || en(h) ? (n.consume(h), V) : h === 47 || h === 62 || Q(h) ? O(h) : t(h);
|
|
3736
3723
|
}
|
|
3737
3724
|
function O(h) {
|
|
3738
|
-
return h === 47 ? (n.consume(h), W) : h === 58 || h === 95 || sn(h) ? (n.consume(h), F) :
|
|
3725
|
+
return h === 47 ? (n.consume(h), W) : h === 58 || h === 95 || sn(h) ? (n.consume(h), F) : z(h) ? (o = O, X(h)) : D(h) ? (n.consume(h), O) : W(h);
|
|
3739
3726
|
}
|
|
3740
3727
|
function F(h) {
|
|
3741
3728
|
return h === 45 || h === 46 || h === 58 || h === 95 || en(h) ? (n.consume(h), F) : A(h);
|
|
3742
3729
|
}
|
|
3743
3730
|
function A(h) {
|
|
3744
|
-
return h === 61 ? (n.consume(h), E) :
|
|
3731
|
+
return h === 61 ? (n.consume(h), E) : z(h) ? (o = A, X(h)) : D(h) ? (n.consume(h), A) : O(h);
|
|
3745
3732
|
}
|
|
3746
3733
|
function E(h) {
|
|
3747
|
-
return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? t(h) : h === 34 || h === 39 ? (n.consume(h), i = h, P) :
|
|
3734
|
+
return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? t(h) : h === 34 || h === 39 ? (n.consume(h), i = h, P) : z(h) ? (o = E, X(h)) : D(h) ? (n.consume(h), E) : (n.consume(h), I);
|
|
3748
3735
|
}
|
|
3749
3736
|
function P(h) {
|
|
3750
|
-
return h === i ? (n.consume(h), i = void 0,
|
|
3737
|
+
return h === i ? (n.consume(h), i = void 0, _) : h === null ? t(h) : z(h) ? (o = P, X(h)) : (n.consume(h), P);
|
|
3751
3738
|
}
|
|
3752
3739
|
function I(h) {
|
|
3753
3740
|
return h === null || h === 34 || h === 39 || h === 60 || h === 61 || h === 96 ? t(h) : h === 47 || h === 62 || Q(h) ? O(h) : (n.consume(h), I);
|
|
3754
3741
|
}
|
|
3755
|
-
function
|
|
3742
|
+
function _(h) {
|
|
3756
3743
|
return h === 47 || h === 62 || Q(h) ? O(h) : t(h);
|
|
3757
3744
|
}
|
|
3758
3745
|
function W(h) {
|
|
@@ -3842,7 +3829,7 @@ function yo(n, e, t) {
|
|
|
3842
3829
|
}
|
|
3843
3830
|
return a;
|
|
3844
3831
|
function a(d) {
|
|
3845
|
-
return l ? l._inactive ? f(d) : (o = r.parser.defined.includes(
|
|
3832
|
+
return l ? l._inactive ? f(d) : (o = r.parser.defined.includes(zn(r.sliceSerialize({
|
|
3846
3833
|
start: l.end,
|
|
3847
3834
|
end: r.now()
|
|
3848
3835
|
}))), n.enter("labelEnd"), n.enter("labelMarker"), n.consume(d), n.exit("labelMarker"), n.exit("labelEnd"), s) : t(d);
|
|
@@ -3894,7 +3881,7 @@ function xo(n, e, t) {
|
|
|
3894
3881
|
return hr.call(r, n, l, o, "reference", "referenceMarker", "referenceString")(a);
|
|
3895
3882
|
}
|
|
3896
3883
|
function l(a) {
|
|
3897
|
-
return r.parser.defined.includes(
|
|
3884
|
+
return r.parser.defined.includes(zn(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? e(a) : t(a);
|
|
3898
3885
|
}
|
|
3899
3886
|
function o(a) {
|
|
3900
3887
|
return t(a);
|
|
@@ -3966,7 +3953,7 @@ function Po(n, e, t) {
|
|
|
3966
3953
|
return i = u, a(u);
|
|
3967
3954
|
}
|
|
3968
3955
|
function a(u) {
|
|
3969
|
-
return u === i ? (n.enter("thematicBreakSequence"), s(u)) : r >= 3 && (u === null ||
|
|
3956
|
+
return u === i ? (n.enter("thematicBreakSequence"), s(u)) : r >= 3 && (u === null || z(u)) ? (n.exit("thematicBreak"), e(u)) : t(u);
|
|
3970
3957
|
}
|
|
3971
3958
|
function s(u) {
|
|
3972
3959
|
return u === i ? (n.consume(u), r++, s) : (n.exit("thematicBreakSequence"), D(u) ? H(n, a, "whitespace")(u) : a(u));
|
|
@@ -3974,19 +3961,19 @@ function Po(n, e, t) {
|
|
|
3974
3961
|
}
|
|
3975
3962
|
const K = {
|
|
3976
3963
|
continuation: {
|
|
3977
|
-
tokenize:
|
|
3964
|
+
tokenize: zo
|
|
3978
3965
|
},
|
|
3979
|
-
exit:
|
|
3966
|
+
exit: Mo,
|
|
3980
3967
|
name: "list",
|
|
3981
|
-
tokenize:
|
|
3968
|
+
tokenize: Lo
|
|
3982
3969
|
}, Ao = {
|
|
3983
3970
|
partial: !0,
|
|
3984
|
-
tokenize:
|
|
3971
|
+
tokenize: No
|
|
3985
3972
|
}, To = {
|
|
3986
3973
|
partial: !0,
|
|
3987
|
-
tokenize:
|
|
3974
|
+
tokenize: _o
|
|
3988
3975
|
};
|
|
3989
|
-
function
|
|
3976
|
+
function Lo(n, e, t) {
|
|
3990
3977
|
const r = this, i = r.events[r.events.length - 1];
|
|
3991
3978
|
let l = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, o = 0;
|
|
3992
3979
|
return a;
|
|
@@ -4023,7 +4010,7 @@ function _o(n, e, t) {
|
|
|
4023
4010
|
return r.containerState.size = l + r.sliceSerialize(n.exit("listItemPrefix"), !0).length, e(p);
|
|
4024
4011
|
}
|
|
4025
4012
|
}
|
|
4026
|
-
function
|
|
4013
|
+
function zo(n, e, t) {
|
|
4027
4014
|
const r = this;
|
|
4028
4015
|
return r.containerState._closeFlow = void 0, n.check(ie, i, l);
|
|
4029
4016
|
function i(a) {
|
|
@@ -4036,7 +4023,7 @@ function Lo(n, e, t) {
|
|
|
4036
4023
|
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);
|
|
4037
4024
|
}
|
|
4038
4025
|
}
|
|
4039
|
-
function
|
|
4026
|
+
function _o(n, e, t) {
|
|
4040
4027
|
const r = this;
|
|
4041
4028
|
return H(n, i, "listItemIndent", r.containerState.size + 1);
|
|
4042
4029
|
function i(l) {
|
|
@@ -4044,10 +4031,10 @@ function zo(n, e, t) {
|
|
|
4044
4031
|
return o && o[1].type === "listItemIndent" && o[2].sliceSerialize(o[1], !0).length === r.containerState.size ? e(l) : t(l);
|
|
4045
4032
|
}
|
|
4046
4033
|
}
|
|
4047
|
-
function
|
|
4034
|
+
function Mo(n) {
|
|
4048
4035
|
n.exit(this.containerState.type);
|
|
4049
4036
|
}
|
|
4050
|
-
function
|
|
4037
|
+
function No(n, e, t) {
|
|
4051
4038
|
const r = this;
|
|
4052
4039
|
return H(n, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
|
|
4053
4040
|
function i(l) {
|
|
@@ -4104,7 +4091,7 @@ function Ro(n, e, t) {
|
|
|
4104
4091
|
return u === i ? (n.consume(u), a) : (n.exit("setextHeadingLineSequence"), D(u) ? H(n, s, "lineSuffix")(u) : s(u));
|
|
4105
4092
|
}
|
|
4106
4093
|
function s(u) {
|
|
4107
|
-
return u === null ||
|
|
4094
|
+
return u === null || z(u) ? (n.exit("setextHeadingLine"), e(u)) : t(u);
|
|
4108
4095
|
}
|
|
4109
4096
|
}
|
|
4110
4097
|
const Do = {
|
|
@@ -4311,7 +4298,7 @@ function Jo(n, e, t) {
|
|
|
4311
4298
|
let c = e.tokenize.call(u, s);
|
|
4312
4299
|
return e.resolveAll && l.push(e), u;
|
|
4313
4300
|
function f(A) {
|
|
4314
|
-
return o = tn(o, A),
|
|
4301
|
+
return o = tn(o, A), L(), o[o.length - 1] !== null ? [] : (V(e, 0), u.events = $e(l, u.events, u), u.events);
|
|
4315
4302
|
}
|
|
4316
4303
|
function d(A, E) {
|
|
4317
4304
|
return na(p(A), E);
|
|
@@ -4325,20 +4312,20 @@ function Jo(n, e, t) {
|
|
|
4325
4312
|
_index: E,
|
|
4326
4313
|
line: P,
|
|
4327
4314
|
column: I,
|
|
4328
|
-
offset:
|
|
4315
|
+
offset: _
|
|
4329
4316
|
} = r;
|
|
4330
4317
|
return {
|
|
4331
4318
|
_bufferIndex: A,
|
|
4332
4319
|
_index: E,
|
|
4333
4320
|
line: P,
|
|
4334
4321
|
column: I,
|
|
4335
|
-
offset:
|
|
4322
|
+
offset: _
|
|
4336
4323
|
};
|
|
4337
4324
|
}
|
|
4338
4325
|
function b(A) {
|
|
4339
4326
|
i[A.line] = A.column, F();
|
|
4340
4327
|
}
|
|
4341
|
-
function
|
|
4328
|
+
function L() {
|
|
4342
4329
|
let A;
|
|
4343
4330
|
for (; r._index < o.length; ) {
|
|
4344
4331
|
const E = o[r._index];
|
|
@@ -4353,7 +4340,7 @@ function Jo(n, e, t) {
|
|
|
4353
4340
|
c = c(A);
|
|
4354
4341
|
}
|
|
4355
4342
|
function T(A) {
|
|
4356
|
-
|
|
4343
|
+
z(A) ? (r.line++, r.column = 1, r.offset += A === -3 ? 2 : 1, F()) : A !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
|
|
4357
4344
|
// strings.
|
|
4358
4345
|
/** @type {string} */
|
|
4359
4346
|
o[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = A;
|
|
@@ -4374,7 +4361,7 @@ function Jo(n, e, t) {
|
|
|
4374
4361
|
}
|
|
4375
4362
|
function R(A, E) {
|
|
4376
4363
|
return P;
|
|
4377
|
-
function P(I,
|
|
4364
|
+
function P(I, _, W) {
|
|
4378
4365
|
let X, rn, fn, h;
|
|
4379
4366
|
return Array.isArray(I) ? (
|
|
4380
4367
|
/* c8 ignore next 1 */
|
|
@@ -4387,8 +4374,8 @@ function Jo(n, e, t) {
|
|
|
4387
4374
|
])
|
|
4388
4375
|
) : ln(I);
|
|
4389
4376
|
function ln(G) {
|
|
4390
|
-
return
|
|
4391
|
-
function
|
|
4377
|
+
return Nn;
|
|
4378
|
+
function Nn(dn) {
|
|
4392
4379
|
const Cn = dn !== null && G[dn], In = dn !== null && G.null, Yn = [
|
|
4393
4380
|
// To do: add more extension tests.
|
|
4394
4381
|
/* c8 ignore next 2 */
|
|
@@ -4402,8 +4389,8 @@ function Jo(n, e, t) {
|
|
|
4402
4389
|
return X = G, rn = 0, G.length === 0 ? W : m(G[rn]);
|
|
4403
4390
|
}
|
|
4404
4391
|
function m(G) {
|
|
4405
|
-
return
|
|
4406
|
-
function
|
|
4392
|
+
return Nn;
|
|
4393
|
+
function Nn(dn) {
|
|
4407
4394
|
return h = O(), fn = G, G.partial || (u.currentConstruct = G), G.name && u.parser.constructs.disable.null.includes(G.name) ? kn() : G.tokenize.call(
|
|
4408
4395
|
// If we do have fields, create an object w/ `context` as its
|
|
4409
4396
|
// prototype.
|
|
@@ -4416,7 +4403,7 @@ function Jo(n, e, t) {
|
|
|
4416
4403
|
}
|
|
4417
4404
|
}
|
|
4418
4405
|
function on(G) {
|
|
4419
|
-
return A(fn, h),
|
|
4406
|
+
return A(fn, h), _;
|
|
4420
4407
|
}
|
|
4421
4408
|
function kn(G) {
|
|
4422
4409
|
return h.restore(), ++rn < X.length ? m(X[rn]) : W;
|
|
@@ -4427,13 +4414,13 @@ function Jo(n, e, t) {
|
|
|
4427
4414
|
A.resolveAll && !l.includes(A) && l.push(A), A.resolve && cn(u.events, E, u.events.length - E, A.resolve(u.events.slice(E), u)), A.resolveTo && (u.events = A.resolveTo(u.events, u));
|
|
4428
4415
|
}
|
|
4429
4416
|
function O() {
|
|
4430
|
-
const A = w(), E = u.previous, P = u.currentConstruct, I = u.events.length,
|
|
4417
|
+
const A = w(), E = u.previous, P = u.currentConstruct, I = u.events.length, _ = Array.from(a);
|
|
4431
4418
|
return {
|
|
4432
4419
|
from: I,
|
|
4433
4420
|
restore: W
|
|
4434
4421
|
};
|
|
4435
4422
|
function W() {
|
|
4436
|
-
r = A, u.previous = E, u.currentConstruct = P, u.events.length = I, a =
|
|
4423
|
+
r = A, u.previous = E, u.currentConstruct = P, u.events.length = I, a = _, F();
|
|
4437
4424
|
}
|
|
4438
4425
|
}
|
|
4439
4426
|
function F() {
|
|
@@ -4619,7 +4606,7 @@ function ua(n) {
|
|
|
4619
4606
|
resourceTitleString: o,
|
|
4620
4607
|
setextHeading: l(We),
|
|
4621
4608
|
strong: l(Tr),
|
|
4622
|
-
thematicBreak: l(
|
|
4609
|
+
thematicBreak: l(zr)
|
|
4623
4610
|
},
|
|
4624
4611
|
exit: {
|
|
4625
4612
|
atxHeading: s(),
|
|
@@ -4632,14 +4619,14 @@ function ua(n) {
|
|
|
4632
4619
|
characterReferenceMarkerHexadecimal: kn,
|
|
4633
4620
|
characterReferenceMarkerNumeric: kn,
|
|
4634
4621
|
characterReferenceValue: G,
|
|
4635
|
-
characterReference:
|
|
4636
|
-
codeFenced: s(
|
|
4622
|
+
characterReference: Nn,
|
|
4623
|
+
codeFenced: s(L),
|
|
4637
4624
|
codeFencedFence: b,
|
|
4638
4625
|
codeFencedFenceInfo: p,
|
|
4639
4626
|
codeFencedFenceMeta: w,
|
|
4640
4627
|
codeFlowValue: F,
|
|
4641
4628
|
codeIndented: s(x),
|
|
4642
|
-
codeText: s(
|
|
4629
|
+
codeText: s(_),
|
|
4643
4630
|
codeTextData: F,
|
|
4644
4631
|
data: F,
|
|
4645
4632
|
definition: s(),
|
|
@@ -4681,7 +4668,7 @@ function ua(n) {
|
|
|
4681
4668
|
type: "root",
|
|
4682
4669
|
children: []
|
|
4683
4670
|
};
|
|
4684
|
-
const
|
|
4671
|
+
const M = {
|
|
4685
4672
|
stack: [S],
|
|
4686
4673
|
tokenStack: [],
|
|
4687
4674
|
config: e,
|
|
@@ -4704,11 +4691,11 @@ function ua(n) {
|
|
|
4704
4691
|
const an = e[g[U][0]];
|
|
4705
4692
|
yr.call(an, g[U][1].type) && an[g[U][1].type].call(Object.assign({
|
|
4706
4693
|
sliceSerialize: g[U][2].sliceSerialize
|
|
4707
|
-
},
|
|
4694
|
+
}, M), g[U][1]);
|
|
4708
4695
|
}
|
|
4709
|
-
if (
|
|
4710
|
-
const an =
|
|
4711
|
-
(an[1] || It).call(
|
|
4696
|
+
if (M.tokenStack.length > 0) {
|
|
4697
|
+
const an = M.tokenStack[M.tokenStack.length - 1];
|
|
4698
|
+
(an[1] || It).call(M, void 0, an[0]);
|
|
4712
4699
|
}
|
|
4713
4700
|
for (S.position = {
|
|
4714
4701
|
start: gn(g.length > 0 ? g[0][1].start : {
|
|
@@ -4725,9 +4712,9 @@ function ua(n) {
|
|
|
4725
4712
|
S = e.transforms[U](S) || S;
|
|
4726
4713
|
return S;
|
|
4727
4714
|
}
|
|
4728
|
-
function i(g, S,
|
|
4715
|
+
function i(g, S, M) {
|
|
4729
4716
|
let v = S - 1, U = -1, an = !1, xn, hn, vn, Rn;
|
|
4730
|
-
for (; ++v <=
|
|
4717
|
+
for (; ++v <= M; ) {
|
|
4731
4718
|
const Z = g[v];
|
|
4732
4719
|
switch (Z[1].type) {
|
|
4733
4720
|
case "listUnordered":
|
|
@@ -4759,7 +4746,7 @@ function ua(n) {
|
|
|
4759
4746
|
hn && (g[hn][1].type = "lineEndingBlank", an = !0), mn[1].type = "lineEnding", hn = En;
|
|
4760
4747
|
} else if (!(mn[1].type === "linePrefix" || mn[1].type === "blockQuotePrefix" || mn[1].type === "blockQuotePrefixWhitespace" || mn[1].type === "blockQuoteMarker" || mn[1].type === "listItemIndent")) break;
|
|
4761
4748
|
}
|
|
4762
|
-
vn && (!hn || vn < 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++,
|
|
4749
|
+
vn && (!hn || vn < 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++;
|
|
4763
4750
|
}
|
|
4764
4751
|
if (Z[1].type === "listItemPrefix") {
|
|
4765
4752
|
const En = {
|
|
@@ -4769,15 +4756,15 @@ function ua(n) {
|
|
|
4769
4756
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
4770
4757
|
end: void 0
|
|
4771
4758
|
};
|
|
4772
|
-
xn = En, g.splice(v, 0, ["enter", En, Z[2]]), v++,
|
|
4759
|
+
xn = En, g.splice(v, 0, ["enter", En, Z[2]]), v++, M++, vn = void 0, Rn = !0;
|
|
4773
4760
|
}
|
|
4774
4761
|
}
|
|
4775
4762
|
}
|
|
4776
|
-
return g[S][1]._spread = an,
|
|
4763
|
+
return g[S][1]._spread = an, M;
|
|
4777
4764
|
}
|
|
4778
4765
|
function l(g, S) {
|
|
4779
|
-
return
|
|
4780
|
-
function
|
|
4766
|
+
return M;
|
|
4767
|
+
function M(v) {
|
|
4781
4768
|
a.call(this, g(v), v), S && S.call(this, v);
|
|
4782
4769
|
}
|
|
4783
4770
|
}
|
|
@@ -4787,8 +4774,8 @@ function ua(n) {
|
|
|
4787
4774
|
children: []
|
|
4788
4775
|
});
|
|
4789
4776
|
}
|
|
4790
|
-
function a(g, S,
|
|
4791
|
-
this.stack[this.stack.length - 1].children.push(g), this.stack.push(g), this.tokenStack.push([S,
|
|
4777
|
+
function a(g, S, M) {
|
|
4778
|
+
this.stack[this.stack.length - 1].children.push(g), this.stack.push(g), this.tokenStack.push([S, M || void 0]), g.position = {
|
|
4792
4779
|
start: gn(S.start),
|
|
4793
4780
|
// @ts-expect-error: `end` will be patched later.
|
|
4794
4781
|
end: void 0
|
|
@@ -4796,19 +4783,19 @@ function ua(n) {
|
|
|
4796
4783
|
}
|
|
4797
4784
|
function s(g) {
|
|
4798
4785
|
return S;
|
|
4799
|
-
function S(
|
|
4800
|
-
g && g.call(this,
|
|
4786
|
+
function S(M) {
|
|
4787
|
+
g && g.call(this, M), u.call(this, M);
|
|
4801
4788
|
}
|
|
4802
4789
|
}
|
|
4803
4790
|
function u(g, S) {
|
|
4804
|
-
const
|
|
4791
|
+
const M = this.stack.pop(), v = this.tokenStack.pop();
|
|
4805
4792
|
if (v)
|
|
4806
4793
|
v[0].type !== g.type && (S ? S.call(this, g, v[0]) : (v[1] || It).call(this, g, v[0]));
|
|
4807
4794
|
else throw new Error("Cannot close `" + g.type + "` (" + Vn({
|
|
4808
4795
|
start: g.start,
|
|
4809
4796
|
end: g.end
|
|
4810
4797
|
}) + "): it’s not open");
|
|
4811
|
-
|
|
4798
|
+
M.position.end = gn(g.end);
|
|
4812
4799
|
}
|
|
4813
4800
|
function c() {
|
|
4814
4801
|
return ll(this.stack.pop());
|
|
@@ -4833,7 +4820,7 @@ function ua(n) {
|
|
|
4833
4820
|
function b() {
|
|
4834
4821
|
this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
|
|
4835
4822
|
}
|
|
4836
|
-
function
|
|
4823
|
+
function L() {
|
|
4837
4824
|
const g = this.resume(), S = this.stack[this.stack.length - 1];
|
|
4838
4825
|
S.value = g.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
|
|
4839
4826
|
}
|
|
@@ -4842,8 +4829,8 @@ function ua(n) {
|
|
|
4842
4829
|
S.value = g.replace(/(\r?\n|\r)$/g, "");
|
|
4843
4830
|
}
|
|
4844
4831
|
function T(g) {
|
|
4845
|
-
const S = this.resume(),
|
|
4846
|
-
|
|
4832
|
+
const S = this.resume(), M = this.stack[this.stack.length - 1];
|
|
4833
|
+
M.label = S, M.identifier = zn(this.sliceSerialize(g)).toLowerCase();
|
|
4847
4834
|
}
|
|
4848
4835
|
function C() {
|
|
4849
4836
|
const g = this.resume(), S = this.stack[this.stack.length - 1];
|
|
@@ -4856,8 +4843,8 @@ function ua(n) {
|
|
|
4856
4843
|
function j(g) {
|
|
4857
4844
|
const S = this.stack[this.stack.length - 1];
|
|
4858
4845
|
if (!S.depth) {
|
|
4859
|
-
const
|
|
4860
|
-
S.depth =
|
|
4846
|
+
const M = this.sliceSerialize(g).length;
|
|
4847
|
+
S.depth = M;
|
|
4861
4848
|
}
|
|
4862
4849
|
}
|
|
4863
4850
|
function y() {
|
|
@@ -4871,13 +4858,13 @@ function ua(n) {
|
|
|
4871
4858
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
4872
4859
|
}
|
|
4873
4860
|
function O(g) {
|
|
4874
|
-
const
|
|
4875
|
-
let v =
|
|
4876
|
-
(!v || v.type !== "text") && (v =
|
|
4861
|
+
const M = this.stack[this.stack.length - 1].children;
|
|
4862
|
+
let v = M[M.length - 1];
|
|
4863
|
+
(!v || v.type !== "text") && (v = Lr(), v.position = {
|
|
4877
4864
|
start: gn(g.start),
|
|
4878
4865
|
// @ts-expect-error: we’ll add `end` later.
|
|
4879
4866
|
end: void 0
|
|
4880
|
-
},
|
|
4867
|
+
}, M.push(v)), this.stack.push(v);
|
|
4881
4868
|
}
|
|
4882
4869
|
function F(g) {
|
|
4883
4870
|
const S = this.stack.pop();
|
|
@@ -4886,8 +4873,8 @@ function ua(n) {
|
|
|
4886
4873
|
function A(g) {
|
|
4887
4874
|
const S = this.stack[this.stack.length - 1];
|
|
4888
4875
|
if (this.data.atHardBreak) {
|
|
4889
|
-
const
|
|
4890
|
-
|
|
4876
|
+
const M = S.children[S.children.length - 1];
|
|
4877
|
+
M.position.end = gn(g.end), this.data.atHardBreak = void 0;
|
|
4891
4878
|
return;
|
|
4892
4879
|
}
|
|
4893
4880
|
!this.data.setextHeadingSlurpLineEnding && e.canContainEols.includes(S.type) && (O.call(this, g), F.call(this, g));
|
|
@@ -4903,7 +4890,7 @@ function ua(n) {
|
|
|
4903
4890
|
const g = this.resume(), S = this.stack[this.stack.length - 1];
|
|
4904
4891
|
S.value = g;
|
|
4905
4892
|
}
|
|
4906
|
-
function
|
|
4893
|
+
function _() {
|
|
4907
4894
|
const g = this.resume(), S = this.stack[this.stack.length - 1];
|
|
4908
4895
|
S.value = g;
|
|
4909
4896
|
}
|
|
@@ -4926,16 +4913,16 @@ function ua(n) {
|
|
|
4926
4913
|
this.data.referenceType = void 0;
|
|
4927
4914
|
}
|
|
4928
4915
|
function rn(g) {
|
|
4929
|
-
const S = this.sliceSerialize(g),
|
|
4930
|
-
|
|
4916
|
+
const S = this.sliceSerialize(g), M = this.stack[this.stack.length - 2];
|
|
4917
|
+
M.label = la(S), M.identifier = zn(S).toLowerCase();
|
|
4931
4918
|
}
|
|
4932
4919
|
function fn() {
|
|
4933
|
-
const g = this.stack[this.stack.length - 1], S = this.resume(),
|
|
4934
|
-
if (this.data.inReference = !0,
|
|
4920
|
+
const g = this.stack[this.stack.length - 1], S = this.resume(), M = this.stack[this.stack.length - 1];
|
|
4921
|
+
if (this.data.inReference = !0, M.type === "link") {
|
|
4935
4922
|
const v = g.children;
|
|
4936
|
-
|
|
4923
|
+
M.children = v;
|
|
4937
4924
|
} else
|
|
4938
|
-
|
|
4925
|
+
M.alt = S;
|
|
4939
4926
|
}
|
|
4940
4927
|
function h() {
|
|
4941
4928
|
const g = this.resume(), S = this.stack[this.stack.length - 1];
|
|
@@ -4952,20 +4939,20 @@ function ua(n) {
|
|
|
4952
4939
|
this.data.referenceType = "collapsed";
|
|
4953
4940
|
}
|
|
4954
4941
|
function on(g) {
|
|
4955
|
-
const S = this.resume(),
|
|
4956
|
-
|
|
4942
|
+
const S = this.resume(), M = this.stack[this.stack.length - 1];
|
|
4943
|
+
M.label = S, M.identifier = zn(this.sliceSerialize(g)).toLowerCase(), this.data.referenceType = "full";
|
|
4957
4944
|
}
|
|
4958
4945
|
function kn(g) {
|
|
4959
4946
|
this.data.characterReferenceType = g.type;
|
|
4960
4947
|
}
|
|
4961
4948
|
function G(g) {
|
|
4962
|
-
const S = this.sliceSerialize(g),
|
|
4949
|
+
const S = this.sliceSerialize(g), M = this.data.characterReferenceType;
|
|
4963
4950
|
let v;
|
|
4964
|
-
|
|
4951
|
+
M ? (v = ar(S, M === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : v = je(S);
|
|
4965
4952
|
const U = this.stack[this.stack.length - 1];
|
|
4966
4953
|
U.value += v;
|
|
4967
4954
|
}
|
|
4968
|
-
function
|
|
4955
|
+
function Nn(g) {
|
|
4969
4956
|
const S = this.stack.pop();
|
|
4970
4957
|
S.position.end = gn(g.end);
|
|
4971
4958
|
}
|
|
@@ -5078,13 +5065,13 @@ function ua(n) {
|
|
|
5078
5065
|
children: []
|
|
5079
5066
|
};
|
|
5080
5067
|
}
|
|
5081
|
-
function
|
|
5068
|
+
function Lr() {
|
|
5082
5069
|
return {
|
|
5083
5070
|
type: "text",
|
|
5084
5071
|
value: ""
|
|
5085
5072
|
};
|
|
5086
5073
|
}
|
|
5087
|
-
function
|
|
5074
|
+
function zr() {
|
|
5088
5075
|
return {
|
|
5089
5076
|
type: "thematicBreak"
|
|
5090
5077
|
};
|
|
@@ -5199,7 +5186,7 @@ function da(n, e) {
|
|
|
5199
5186
|
return n.patch(e, t), n.applyData(e, t);
|
|
5200
5187
|
}
|
|
5201
5188
|
function ga(n, e) {
|
|
5202
|
-
const t = typeof n.options.clobberPrefix == "string" ? n.options.clobberPrefix : "user-content-", r = String(e.identifier).toUpperCase(), i =
|
|
5189
|
+
const t = typeof n.options.clobberPrefix == "string" ? n.options.clobberPrefix : "user-content-", r = String(e.identifier).toUpperCase(), i = Mn(r.toLowerCase()), l = n.footnoteOrder.indexOf(r);
|
|
5203
5190
|
let o, a = n.footnoteCounts.get(r);
|
|
5204
5191
|
a === void 0 ? (a = 0, n.footnoteOrder.push(r), o = n.footnoteOrder.length) : o = l + 1, a += 1, n.footnoteCounts.set(r, a);
|
|
5205
5192
|
const s = {
|
|
@@ -5251,13 +5238,13 @@ function xa(n, e) {
|
|
|
5251
5238
|
const t = String(e.identifier).toUpperCase(), r = n.definitionById.get(t);
|
|
5252
5239
|
if (!r)
|
|
5253
5240
|
return xr(n, e);
|
|
5254
|
-
const i = { src:
|
|
5241
|
+
const i = { src: Mn(r.url || ""), alt: e.alt };
|
|
5255
5242
|
r.title !== null && r.title !== void 0 && (i.title = r.title);
|
|
5256
5243
|
const l = { type: "element", tagName: "img", properties: i, children: [] };
|
|
5257
5244
|
return n.patch(e, l), n.applyData(e, l);
|
|
5258
5245
|
}
|
|
5259
5246
|
function ba(n, e) {
|
|
5260
|
-
const t = { src:
|
|
5247
|
+
const t = { src: Mn(e.url) };
|
|
5261
5248
|
e.alt !== null && e.alt !== void 0 && (t.alt = e.alt), e.title !== null && e.title !== void 0 && (t.title = e.title);
|
|
5262
5249
|
const r = { type: "element", tagName: "img", properties: t, children: [] };
|
|
5263
5250
|
return n.patch(e, r), n.applyData(e, r);
|
|
@@ -5277,7 +5264,7 @@ function Sa(n, e) {
|
|
|
5277
5264
|
const t = String(e.identifier).toUpperCase(), r = n.definitionById.get(t);
|
|
5278
5265
|
if (!r)
|
|
5279
5266
|
return xr(n, e);
|
|
5280
|
-
const i = { href:
|
|
5267
|
+
const i = { href: Mn(r.url || "") };
|
|
5281
5268
|
r.title !== null && r.title !== void 0 && (i.title = r.title);
|
|
5282
5269
|
const l = {
|
|
5283
5270
|
type: "element",
|
|
@@ -5288,7 +5275,7 @@ function Sa(n, e) {
|
|
|
5288
5275
|
return n.patch(e, l), n.applyData(e, l);
|
|
5289
5276
|
}
|
|
5290
5277
|
function Ca(n, e) {
|
|
5291
|
-
const t = { href:
|
|
5278
|
+
const t = { href: Mn(e.url) };
|
|
5292
5279
|
e.title !== null && e.title !== void 0 && (t.title = e.title);
|
|
5293
5280
|
const r = {
|
|
5294
5281
|
type: "element",
|
|
@@ -5368,7 +5355,7 @@ function Ta(n, e) {
|
|
|
5368
5355
|
const t = { type: "root", children: n.wrap(n.all(e)) };
|
|
5369
5356
|
return n.patch(e, t), n.applyData(e, t);
|
|
5370
5357
|
}
|
|
5371
|
-
function
|
|
5358
|
+
function La(n, e) {
|
|
5372
5359
|
const t = {
|
|
5373
5360
|
type: "element",
|
|
5374
5361
|
tagName: "strong",
|
|
@@ -5377,7 +5364,7 @@ function _a(n, e) {
|
|
|
5377
5364
|
};
|
|
5378
5365
|
return n.patch(e, t), n.applyData(e, t);
|
|
5379
5366
|
}
|
|
5380
|
-
function
|
|
5367
|
+
function za(n, e) {
|
|
5381
5368
|
const t = n.all(e), r = t.shift(), i = [];
|
|
5382
5369
|
if (r) {
|
|
5383
5370
|
const o = {
|
|
@@ -5405,7 +5392,7 @@ function La(n, e) {
|
|
|
5405
5392
|
};
|
|
5406
5393
|
return n.patch(e, l), n.applyData(e, l);
|
|
5407
5394
|
}
|
|
5408
|
-
function
|
|
5395
|
+
function _a(n, e, t) {
|
|
5409
5396
|
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;
|
|
5410
5397
|
let s = -1;
|
|
5411
5398
|
const u = [];
|
|
@@ -5423,7 +5410,7 @@ function za(n, e, t) {
|
|
|
5423
5410
|
};
|
|
5424
5411
|
return n.patch(e, c), n.applyData(e, c);
|
|
5425
5412
|
}
|
|
5426
|
-
function
|
|
5413
|
+
function Ma(n, e) {
|
|
5427
5414
|
const t = {
|
|
5428
5415
|
type: "element",
|
|
5429
5416
|
tagName: "td",
|
|
@@ -5434,7 +5421,7 @@ function Na(n, e) {
|
|
|
5434
5421
|
return n.patch(e, t), n.applyData(e, t);
|
|
5435
5422
|
}
|
|
5436
5423
|
const Et = 9, Pt = 32;
|
|
5437
|
-
function
|
|
5424
|
+
function Na(n) {
|
|
5438
5425
|
const e = String(n), t = /\r?\n|\r/g;
|
|
5439
5426
|
let r = t.exec(e), i = 0;
|
|
5440
5427
|
const l = [];
|
|
@@ -5460,7 +5447,7 @@ function At(n, e, t) {
|
|
|
5460
5447
|
return i > r ? n.slice(r, i) : "";
|
|
5461
5448
|
}
|
|
5462
5449
|
function va(n, e) {
|
|
5463
|
-
const t = { type: "text", value:
|
|
5450
|
+
const t = { type: "text", value: Na(String(e.value)) };
|
|
5464
5451
|
return n.patch(e, t), n.applyData(e, t);
|
|
5465
5452
|
}
|
|
5466
5453
|
function Ra(n, e) {
|
|
@@ -5491,10 +5478,10 @@ const Da = {
|
|
|
5491
5478
|
paragraph: Aa,
|
|
5492
5479
|
// @ts-expect-error: root is different, but hard to type.
|
|
5493
5480
|
root: Ta,
|
|
5494
|
-
strong:
|
|
5495
|
-
table:
|
|
5496
|
-
tableCell:
|
|
5497
|
-
tableRow:
|
|
5481
|
+
strong: La,
|
|
5482
|
+
table: za,
|
|
5483
|
+
tableCell: Ma,
|
|
5484
|
+
tableRow: _a,
|
|
5498
5485
|
text: va,
|
|
5499
5486
|
thematicBreak: Ra,
|
|
5500
5487
|
toml: Qn,
|
|
@@ -5527,7 +5514,7 @@ function Ba(n) {
|
|
|
5527
5514
|
);
|
|
5528
5515
|
if (!u)
|
|
5529
5516
|
continue;
|
|
5530
|
-
const c = n.all(u), f = String(u.identifier).toUpperCase(), d =
|
|
5517
|
+
const c = n.all(u), f = String(u.identifier).toUpperCase(), d = Mn(f.toLowerCase());
|
|
5531
5518
|
let p = 0;
|
|
5532
5519
|
const w = [], b = n.footnoteCounts.get(f);
|
|
5533
5520
|
for (; b !== void 0 && ++p <= b; ) {
|
|
@@ -5545,10 +5532,10 @@ function Ba(n) {
|
|
|
5545
5532
|
children: Array.isArray(T) ? T : [T]
|
|
5546
5533
|
});
|
|
5547
5534
|
}
|
|
5548
|
-
const
|
|
5549
|
-
if (
|
|
5550
|
-
const T =
|
|
5551
|
-
T && T.type === "text" ? T.value += " " :
|
|
5535
|
+
const L = c[c.length - 1];
|
|
5536
|
+
if (L && L.type === "element" && L.tagName === "p") {
|
|
5537
|
+
const T = L.children[L.children.length - 1];
|
|
5538
|
+
T && T.type === "text" ? T.value += " " : L.children.push({ type: "text", value: " " }), L.children.push(...w);
|
|
5552
5539
|
} else
|
|
5553
5540
|
c.push(...w);
|
|
5554
5541
|
const x = {
|
|
@@ -5614,7 +5601,7 @@ function ja(n, e) {
|
|
|
5614
5601
|
return p(a, c, f);
|
|
5615
5602
|
if (a.options.passThrough && a.options.passThrough.includes(d)) {
|
|
5616
5603
|
if ("children" in c) {
|
|
5617
|
-
const { children: b, ...
|
|
5604
|
+
const { children: b, ...L } = c, x = bn(L);
|
|
5618
5605
|
return x.children = a.all(c), x;
|
|
5619
5606
|
}
|
|
5620
5607
|
return bn(c);
|
|
@@ -5683,7 +5670,7 @@ function Tt(n) {
|
|
|
5683
5670
|
e++, t = n.charCodeAt(e);
|
|
5684
5671
|
return n.slice(e);
|
|
5685
5672
|
}
|
|
5686
|
-
function
|
|
5673
|
+
function Lt(n, e) {
|
|
5687
5674
|
const t = ja(n, e), r = t.one(n, void 0), i = Ba(t), l = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
|
|
5688
5675
|
return i && l.children.push({ type: "text", value: `
|
|
5689
5676
|
` }, i), l;
|
|
@@ -5692,24 +5679,24 @@ function Wa(n, e) {
|
|
|
5692
5679
|
return n && "run" in n ? async function(t, r) {
|
|
5693
5680
|
const i = (
|
|
5694
5681
|
/** @type {HastRoot} */
|
|
5695
|
-
|
|
5682
|
+
Lt(t, { file: r, ...e })
|
|
5696
5683
|
);
|
|
5697
5684
|
await n.run(i, r);
|
|
5698
5685
|
} : function(t, r) {
|
|
5699
5686
|
return (
|
|
5700
5687
|
/** @type {HastRoot} */
|
|
5701
|
-
|
|
5688
|
+
Lt(t, { file: r, ...n || e })
|
|
5702
5689
|
);
|
|
5703
5690
|
};
|
|
5704
5691
|
}
|
|
5705
|
-
function
|
|
5692
|
+
function zt(n) {
|
|
5706
5693
|
if (n)
|
|
5707
5694
|
throw n;
|
|
5708
5695
|
}
|
|
5709
|
-
var fe,
|
|
5696
|
+
var fe, _t;
|
|
5710
5697
|
function Xa() {
|
|
5711
|
-
if (
|
|
5712
|
-
|
|
5698
|
+
if (_t) return fe;
|
|
5699
|
+
_t = 1;
|
|
5713
5700
|
var n = Object.prototype.hasOwnProperty, e = Object.prototype.toString, t = Object.defineProperty, r = Object.getOwnPropertyDescriptor, i = function(u) {
|
|
5714
5701
|
return typeof Array.isArray == "function" ? Array.isArray(u) : e.call(u) === "[object Array]";
|
|
5715
5702
|
}, l = function(u) {
|
|
@@ -5738,9 +5725,9 @@ function Xa() {
|
|
|
5738
5725
|
return u[c];
|
|
5739
5726
|
};
|
|
5740
5727
|
return fe = function s() {
|
|
5741
|
-
var u, c, f, d, p, w, b = arguments[0],
|
|
5742
|
-
for (typeof b == "boolean" && (T = b, b = arguments[1] || {},
|
|
5743
|
-
if (u = arguments[
|
|
5728
|
+
var u, c, f, d, p, w, b = arguments[0], L = 1, x = arguments.length, T = !1;
|
|
5729
|
+
for (typeof b == "boolean" && (T = b, b = arguments[1] || {}, L = 2), (b == null || typeof b != "object" && typeof b != "function") && (b = {}); L < x; ++L)
|
|
5730
|
+
if (u = arguments[L], u != null)
|
|
5744
5731
|
for (c in u)
|
|
5745
5732
|
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 }));
|
|
5746
5733
|
return b;
|
|
@@ -5923,14 +5910,14 @@ const ru = { cwd: iu };
|
|
|
5923
5910
|
function iu() {
|
|
5924
5911
|
return "/";
|
|
5925
5912
|
}
|
|
5926
|
-
function
|
|
5913
|
+
function Le(n) {
|
|
5927
5914
|
return !!(n !== null && typeof n == "object" && "href" in n && n.href && "protocol" in n && n.protocol && // @ts-expect-error: indexing is fine.
|
|
5928
5915
|
n.auth === void 0);
|
|
5929
5916
|
}
|
|
5930
5917
|
function lu(n) {
|
|
5931
5918
|
if (typeof n == "string")
|
|
5932
5919
|
n = new URL(n);
|
|
5933
|
-
else if (!
|
|
5920
|
+
else if (!Le(n)) {
|
|
5934
5921
|
const e = new TypeError(
|
|
5935
5922
|
'The "path" argument must be of type string or an instance of URL. Received `' + n + "`"
|
|
5936
5923
|
);
|
|
@@ -5999,7 +5986,7 @@ class au {
|
|
|
5999
5986
|
*/
|
|
6000
5987
|
constructor(e) {
|
|
6001
5988
|
let t;
|
|
6002
|
-
e ?
|
|
5989
|
+
e ? Le(e) ? t = { path: e } : typeof e == "string" || uu(e) ? t = { value: e } : t = e : t = {}, this.cwd = "cwd" in t ? "" : ru.cwd(), this.data = {}, this.history = [], this.messages = [];
|
|
6003
5990
|
let r = -1;
|
|
6004
5991
|
for (; ++r < he.length; ) {
|
|
6005
5992
|
const l = he[r];
|
|
@@ -6053,7 +6040,7 @@ class au {
|
|
|
6053
6040
|
* Nothing.
|
|
6054
6041
|
*/
|
|
6055
6042
|
set dirname(e) {
|
|
6056
|
-
|
|
6043
|
+
Mt(this.basename, "dirname"), this.path = un.join(e || "", this.basename);
|
|
6057
6044
|
}
|
|
6058
6045
|
/**
|
|
6059
6046
|
* Get the extname (including dot) (example: `'.js'`).
|
|
@@ -6077,7 +6064,7 @@ class au {
|
|
|
6077
6064
|
* Nothing.
|
|
6078
6065
|
*/
|
|
6079
6066
|
set extname(e) {
|
|
6080
|
-
if (me(e, "extname"),
|
|
6067
|
+
if (me(e, "extname"), Mt(this.dirname, "extname"), e) {
|
|
6081
6068
|
if (e.codePointAt(0) !== 46)
|
|
6082
6069
|
throw new Error("`extname` must start with `.`");
|
|
6083
6070
|
if (e.includes(".", 1))
|
|
@@ -6107,7 +6094,7 @@ class au {
|
|
|
6107
6094
|
* Nothing.
|
|
6108
6095
|
*/
|
|
6109
6096
|
set path(e) {
|
|
6110
|
-
|
|
6097
|
+
Le(e) && (e = lu(e)), de(e, "path"), this.path !== e && this.history.push(e);
|
|
6111
6098
|
}
|
|
6112
6099
|
/**
|
|
6113
6100
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -6354,7 +6341,7 @@ function de(n, e) {
|
|
|
6354
6341
|
if (!n)
|
|
6355
6342
|
throw new Error("`" + e + "` cannot be empty");
|
|
6356
6343
|
}
|
|
6357
|
-
function
|
|
6344
|
+
function Mt(n, e) {
|
|
6358
6345
|
if (!n)
|
|
6359
6346
|
throw new Error("Setting `" + e + "` requires `path` to be set too");
|
|
6360
6347
|
}
|
|
@@ -6634,7 +6621,7 @@ class Ve extends su {
|
|
|
6634
6621
|
let t = !1, r;
|
|
6635
6622
|
return this.freeze(), ge("processSync", this.parser || this.Parser), ye("processSync", this.compiler || this.Compiler), this.process(e, i), vt("processSync", "process", t), r;
|
|
6636
6623
|
function i(l, o) {
|
|
6637
|
-
t = !0,
|
|
6624
|
+
t = !0, zt(l), r = o;
|
|
6638
6625
|
}
|
|
6639
6626
|
}
|
|
6640
6627
|
/**
|
|
@@ -6676,7 +6663,7 @@ class Ve extends su {
|
|
|
6676
6663
|
* transformed tree.
|
|
6677
6664
|
*/
|
|
6678
6665
|
run(e, t, r) {
|
|
6679
|
-
|
|
6666
|
+
Nt(e), this.freeze();
|
|
6680
6667
|
const i = this.transformers;
|
|
6681
6668
|
return !r && typeof t == "function" && (r = t, t = void 0), r ? l(void 0, r) : new Promise(l);
|
|
6682
6669
|
function l(o, a) {
|
|
@@ -6712,7 +6699,7 @@ class Ve extends su {
|
|
|
6712
6699
|
let r = !1, i;
|
|
6713
6700
|
return this.run(e, t, l), vt("runSync", "run", r), i;
|
|
6714
6701
|
function l(o, a) {
|
|
6715
|
-
|
|
6702
|
+
zt(o), i = a, r = !0;
|
|
6716
6703
|
}
|
|
6717
6704
|
}
|
|
6718
6705
|
/**
|
|
@@ -6747,7 +6734,7 @@ class Ve extends su {
|
|
|
6747
6734
|
stringify(e, t) {
|
|
6748
6735
|
this.freeze();
|
|
6749
6736
|
const r = Jn(t), i = this.compiler || this.Compiler;
|
|
6750
|
-
return ye("stringify", i),
|
|
6737
|
+
return ye("stringify", i), Nt(e), i(e, r);
|
|
6751
6738
|
}
|
|
6752
6739
|
/**
|
|
6753
6740
|
* Configure the processor to use a plugin, a list of usable values, or a
|
|
@@ -6879,7 +6866,7 @@ function ke(n, e) {
|
|
|
6879
6866
|
"Cannot call `" + n + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
|
|
6880
6867
|
);
|
|
6881
6868
|
}
|
|
6882
|
-
function
|
|
6869
|
+
function Nt(n) {
|
|
6883
6870
|
if (!Te(n) || typeof n.type != "string")
|
|
6884
6871
|
throw new TypeError("Expected node, got `" + n + "`");
|
|
6885
6872
|
}
|
|
@@ -6956,7 +6943,7 @@ const yu = /(!?\[)([^\]]*?)$/, ku = /(\*\*)([^*]*?)$/, xu = /(__)([^_]*?)$/, bu
|
|
|
6956
6943
|
return `${n}](placeholder:incomplete-link)`;
|
|
6957
6944
|
}
|
|
6958
6945
|
return n;
|
|
6959
|
-
},
|
|
6946
|
+
}, Lu = (n) => {
|
|
6960
6947
|
const e = n.match(ku);
|
|
6961
6948
|
if (e) {
|
|
6962
6949
|
const t = e[2];
|
|
@@ -6971,7 +6958,7 @@ const yu = /(!?\[)([^\]]*?)$/, ku = /(\*\*)([^*]*?)$/, xu = /(__)([^_]*?)$/, bu
|
|
|
6971
6958
|
return `${n}**`;
|
|
6972
6959
|
}
|
|
6973
6960
|
return n;
|
|
6974
|
-
},
|
|
6961
|
+
}, zu = (n) => {
|
|
6975
6962
|
const e = n.match(xu);
|
|
6976
6963
|
if (e) {
|
|
6977
6964
|
const t = e[2];
|
|
@@ -6986,7 +6973,7 @@ const yu = /(!?\[)([^\]]*?)$/, ku = /(\*\*)([^*]*?)$/, xu = /(__)([^_]*?)$/, bu
|
|
|
6986
6973
|
return `${n}__`;
|
|
6987
6974
|
}
|
|
6988
6975
|
return n;
|
|
6989
|
-
},
|
|
6976
|
+
}, _u = (n) => {
|
|
6990
6977
|
let e = 0, t = !1, r = 0;
|
|
6991
6978
|
for (let i = 0; i < n.length; i++) {
|
|
6992
6979
|
const l = n[i];
|
|
@@ -7013,7 +7000,7 @@ const yu = /(!?\[)([^\]]*?)$/, ku = /(\*\*)([^*]*?)$/, xu = /(__)([^_]*?)$/, bu
|
|
|
7013
7000
|
}
|
|
7014
7001
|
}
|
|
7015
7002
|
return e;
|
|
7016
|
-
},
|
|
7003
|
+
}, Mu = (n) => {
|
|
7017
7004
|
if (qe(n))
|
|
7018
7005
|
return n;
|
|
7019
7006
|
if (n.match(wu)) {
|
|
@@ -7032,11 +7019,11 @@ const yu = /(!?\[)([^\]]*?)$/, ku = /(\*\*)([^*]*?)$/, xu = /(__)([^_]*?)$/, bu
|
|
|
7032
7019
|
);
|
|
7033
7020
|
if (!r || /^[\s_~*`]*$/.test(r))
|
|
7034
7021
|
return n;
|
|
7035
|
-
if (
|
|
7022
|
+
if (_u(n) % 2 === 1)
|
|
7036
7023
|
return `${n}*`;
|
|
7037
7024
|
}
|
|
7038
7025
|
return n;
|
|
7039
|
-
},
|
|
7026
|
+
}, Nu = (n, e) => {
|
|
7040
7027
|
let t = !1, r = !1;
|
|
7041
7028
|
for (let i = 0; i < n.length && i < e; i++) {
|
|
7042
7029
|
if (n[i] === "\\" && n[i + 1] === "$") {
|
|
@@ -7087,7 +7074,7 @@ const yu = /(!?\[)([^\]]*?)$/, ku = /(\*\*)([^*]*?)$/, xu = /(__)([^_]*?)$/, bu
|
|
|
7087
7074
|
if (n.match(Su)) {
|
|
7088
7075
|
let t = -1;
|
|
7089
7076
|
for (let l = 0; l < n.length; l++)
|
|
7090
|
-
if (n[l] === "_" && n[l - 1] !== "_" && n[l + 1] !== "_" && n[l - 1] !== "\\" && !
|
|
7077
|
+
if (n[l] === "_" && n[l - 1] !== "_" && n[l + 1] !== "_" && n[l - 1] !== "\\" && !Nu(n, l) && !wr(n, l)) {
|
|
7091
7078
|
const o = l > 0 ? n[l - 1] : "", a = l < n.length - 1 ? n[l + 1] : "";
|
|
7092
7079
|
if (o && a && /[\p{L}\p{N}_]/u.test(o) && /[\p{L}\p{N}_]/u.test(a))
|
|
7093
7080
|
continue;
|
|
@@ -7171,7 +7158,7 @@ $$` : `${n}$$`;
|
|
|
7171
7158
|
let e = n;
|
|
7172
7159
|
e = Au(e);
|
|
7173
7160
|
const t = Tu(e);
|
|
7174
|
-
return t.endsWith("](placeholder:incomplete-link)") ? t : (e = t, e = Ou(e), e = ju(e), e =
|
|
7161
|
+
return t.endsWith("](placeholder:incomplete-link)") ? t : (e = t, e = Ou(e), e = ju(e), e = Lu(e), e = zu(e), e = Mu(e), e = Ru(e), e = Fu(e), e = Bu(e), e);
|
|
7175
7162
|
};
|
|
7176
7163
|
class Hu {
|
|
7177
7164
|
remarkGfm = null;
|
|
@@ -7185,7 +7172,7 @@ class Hu {
|
|
|
7185
7172
|
if (!this.remarkGfm) {
|
|
7186
7173
|
const { default: e } = await import(
|
|
7187
7174
|
/* webpackChunkName: "md-remark" */
|
|
7188
|
-
"./index.
|
|
7175
|
+
"./index.BxbWxVtd.js"
|
|
7189
7176
|
);
|
|
7190
7177
|
this.remarkGfm = e;
|
|
7191
7178
|
}
|
|
@@ -7196,7 +7183,7 @@ class Hu {
|
|
|
7196
7183
|
Gu("https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css");
|
|
7197
7184
|
const { default: e } = await import(
|
|
7198
7185
|
/* webpackChunkName: "md-rehype-katex" */
|
|
7199
|
-
"./index.
|
|
7186
|
+
"./index.s8Izh8-Q.js"
|
|
7200
7187
|
);
|
|
7201
7188
|
this.rehypeKatex = e;
|
|
7202
7189
|
}
|
|
@@ -7206,7 +7193,7 @@ class Hu {
|
|
|
7206
7193
|
if (!this.remarkMath) {
|
|
7207
7194
|
const { default: e } = await import(
|
|
7208
7195
|
/* webpackChunkName: "md-remark" */
|
|
7209
|
-
"./index.
|
|
7196
|
+
"./index.DG-VhqKw.js"
|
|
7210
7197
|
);
|
|
7211
7198
|
this.remarkMath = e;
|
|
7212
7199
|
}
|
|
@@ -7216,7 +7203,7 @@ class Hu {
|
|
|
7216
7203
|
if (!this.rehypeHighlight) {
|
|
7217
7204
|
const { default: e } = await import(
|
|
7218
7205
|
/* webpackChunkName: "md-rehype-highlight" */
|
|
7219
|
-
"./index.
|
|
7206
|
+
"./index.BlviGqw0.js"
|
|
7220
7207
|
);
|
|
7221
7208
|
this.rehypeHighlight = e;
|
|
7222
7209
|
}
|
|
@@ -7329,7 +7316,7 @@ const Zn = new Hu(), Vu = ({
|
|
|
7329
7316
|
Ku
|
|
7330
7317
|
];
|
|
7331
7318
|
fu().use(ca).use(o.current.remarkPlugins).use(Wa).use(d).use(rl, {
|
|
7332
|
-
Fragment:
|
|
7319
|
+
Fragment: _r,
|
|
7333
7320
|
jsx: Tn,
|
|
7334
7321
|
jsxs: Rt,
|
|
7335
7322
|
components: {
|
|
@@ -7356,12 +7343,12 @@ export {
|
|
|
7356
7343
|
Vt as convertElement,
|
|
7357
7344
|
H as factorySpace,
|
|
7358
7345
|
Pi as find,
|
|
7359
|
-
|
|
7360
|
-
|
|
7346
|
+
Li as html,
|
|
7347
|
+
z as markdownLineEnding,
|
|
7361
7348
|
Q as markdownLineEndingOrSpace,
|
|
7362
7349
|
D as markdownSpace,
|
|
7363
7350
|
be as normalize,
|
|
7364
|
-
|
|
7351
|
+
zn as normalizeIdentifier,
|
|
7365
7352
|
Kr as parse,
|
|
7366
7353
|
ts as parse$1,
|
|
7367
7354
|
$e as resolveAll,
|