@versini/sassysaint 5.5.17 → 5.5.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{App.CGtB3zQZ.js → App.CN26Vdes.js} +668 -661
- package/dist/chunks/{HeaderToolbar.2wFvK4Tt.js → HeaderToolbar.RG5VcCoN.js} +679 -640
- package/dist/chunks/{MarkdownWithExtra.BCy_BgBz.js → MarkdownWithExtra.D9aZRrcd.js} +283 -276
- package/dist/chunks/{MessageAssistant.CwEosJOq.js → MessageAssistant.DpLJVr9t.js} +3 -3
- package/dist/chunks/{index.DfBlqXlL.js → index.DaKlCgCU.js} +498 -488
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { convert as _s, getDefaultExportFromCjs as Ss, visit as Na, find as Ns, parse as Sn, parse$1 as Nn, normalize as kn, svg as ks, html as Ts, visitParents as Ms, SKIP as As, longestStreak as Os, factorySpace as xr, markdownLineEnding as $t, Markdown as Rs, remarkGfm as Cs } from "./MessageAssistant.
|
|
3
|
-
import { P as Is, L as Ds, j as Ls } from "./index.
|
|
1
|
+
import { jsx as We, jsxs as P0, Fragment as Sa } from "react/jsx-runtime";
|
|
2
|
+
import { convert as _s, getDefaultExportFromCjs as Ss, visit as Na, find as Ns, parse as Sn, parse$1 as Nn, normalize as kn, svg as ks, html as Ts, visitParents as Ms, SKIP as As, longestStreak as Os, factorySpace as xr, markdownLineEnding as $t, Markdown as Rs, remarkGfm as Cs } from "./MessageAssistant.DpLJVr9t.js";
|
|
3
|
+
import { P as Is, L as Ds, j as Ls } from "./index.DaKlCgCU.js";
|
|
4
4
|
import Bs, { useState as zs, useEffect as Ps } from "react";
|
|
5
5
|
import Fs from "clsx";
|
|
6
6
|
const ka = ({
|
|
@@ -16,7 +16,7 @@ const ka = ({
|
|
|
16
16
|
}) => {
|
|
17
17
|
const m = Fs(i, n);
|
|
18
18
|
return /* @__PURE__ */ P0(Sa, { children: [
|
|
19
|
-
/* @__PURE__ */
|
|
19
|
+
/* @__PURE__ */ We(
|
|
20
20
|
"svg",
|
|
21
21
|
{
|
|
22
22
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -30,7 +30,7 @@ const ka = ({
|
|
|
30
30
|
children: t
|
|
31
31
|
}
|
|
32
32
|
),
|
|
33
|
-
o && c && /* @__PURE__ */
|
|
33
|
+
o && c && /* @__PURE__ */ We("span", { className: "sr-only", children: o })
|
|
34
34
|
] });
|
|
35
35
|
};
|
|
36
36
|
/*!
|
|
@@ -40,7 +40,7 @@ const ka = ({
|
|
|
40
40
|
try {
|
|
41
41
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
42
42
|
version: "4.0.0",
|
|
43
|
-
buildTime: "01/
|
|
43
|
+
buildTime: "01/04/2025 04:09 PM EST",
|
|
44
44
|
homepage: "https://github.com/aversini/ui-components",
|
|
45
45
|
license: "MIT"
|
|
46
46
|
});
|
|
@@ -62,14 +62,21 @@ const Us = ({
|
|
|
62
62
|
title: r || "Copied",
|
|
63
63
|
...a,
|
|
64
64
|
children: [
|
|
65
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ We(
|
|
66
66
|
"path",
|
|
67
67
|
{
|
|
68
|
+
className: "fa-secondary",
|
|
68
69
|
opacity: "0.4",
|
|
69
|
-
d: "
|
|
70
|
+
d: "M0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32C28.7 32 0 60.7 0 96zM104 256c0-6.1 2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l47 47c37-37 74-74 111-111c4.7-4.7 10.8-7 17-7s12.3 2.3 17 7c2.3 2.3 4.1 5 5.3 7.9c.6 1.5 1 2.9 1.3 4.4c.2 1.1 .3 2.2 .3 2.2c.1 1.2 .1 1.2 .1 2.5c-.1 1.5-.1 1.9-.1 2.3c-.1 .7-.2 1.5-.3 2.2c-.3 1.5-.7 3-1.3 4.4c-1.2 2.9-2.9 5.6-5.3 7.9c-42.7 42.7-85.3 85.3-128 128c-4.7 4.7-10.8 7-17 7s-12.3-2.3-17-7c-21.3-21.3-42.7-42.7-64-64c-4.7-4.7-7-10.8-7-17z"
|
|
70
71
|
}
|
|
71
72
|
),
|
|
72
|
-
/* @__PURE__ */
|
|
73
|
+
/* @__PURE__ */ We(
|
|
74
|
+
"path",
|
|
75
|
+
{
|
|
76
|
+
className: "fa-primary",
|
|
77
|
+
d: "M337 175c9.4 9.4 9.4 24.6 0 33.9L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0z"
|
|
78
|
+
}
|
|
79
|
+
)
|
|
73
80
|
]
|
|
74
81
|
}
|
|
75
82
|
), qs = ({
|
|
@@ -78,7 +85,7 @@ const Us = ({
|
|
|
78
85
|
title: r,
|
|
79
86
|
monotone: n,
|
|
80
87
|
...a
|
|
81
|
-
}) => /* @__PURE__ */
|
|
88
|
+
}) => /* @__PURE__ */ We(
|
|
82
89
|
ka,
|
|
83
90
|
{
|
|
84
91
|
defaultViewBox: "0 0 512 512",
|
|
@@ -87,17 +94,17 @@ const Us = ({
|
|
|
87
94
|
className: t,
|
|
88
95
|
title: r || "Copy",
|
|
89
96
|
...a,
|
|
90
|
-
children: /* @__PURE__ */
|
|
97
|
+
children: /* @__PURE__ */ We("path", { d: "M64 464l224 0c8.8 0 16-7.2 16-16l0-64 48 0 0 64c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64l64 0 0 48-64 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16zM224 304l224 0c8.8 0 16-7.2 16-16l0-224c0-8.8-7.2-16-16-16L224 48c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16zm-64-16l0-224c0-35.3 28.7-64 64-64L448 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64l-224 0c-35.3 0-64-28.7-64-64z" })
|
|
91
98
|
}
|
|
92
99
|
);
|
|
93
100
|
/*!
|
|
94
|
-
@versini/ui-icons v4.
|
|
101
|
+
@versini/ui-icons v4.2.0
|
|
95
102
|
© 2025 gizmette.com
|
|
96
103
|
*/
|
|
97
104
|
try {
|
|
98
105
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
99
|
-
version: "4.
|
|
100
|
-
buildTime: "01/
|
|
106
|
+
version: "4.2.0",
|
|
107
|
+
buildTime: "01/04/2025 04:09 PM EST",
|
|
101
108
|
homepage: "https://github.com/aversini/ui-components",
|
|
102
109
|
license: "MIT"
|
|
103
110
|
});
|
|
@@ -114,7 +121,7 @@ const Ta = Bs.forwardRef(({ copyToClipboard: t, ...e }, r) => {
|
|
|
114
121
|
}, 3e3)), () => {
|
|
115
122
|
clearTimeout(o);
|
|
116
123
|
};
|
|
117
|
-
}, [n]), /* @__PURE__ */
|
|
124
|
+
}, [n]), /* @__PURE__ */ We(
|
|
118
125
|
Is,
|
|
119
126
|
{
|
|
120
127
|
...e,
|
|
@@ -123,7 +130,7 @@ const Ta = Bs.forwardRef(({ copyToClipboard: t, ...e }, r) => {
|
|
|
123
130
|
label: n ? "Copied to clipboard" : "Copy to clipboard",
|
|
124
131
|
onClick: i,
|
|
125
132
|
disabled: n,
|
|
126
|
-
children: n ? /* @__PURE__ */
|
|
133
|
+
children: n ? /* @__PURE__ */ We(Us, { size: "size-3" }) : /* @__PURE__ */ We(qs, { size: "size-3" })
|
|
127
134
|
}
|
|
128
135
|
);
|
|
129
136
|
});
|
|
@@ -217,7 +224,7 @@ function Gs(t) {
|
|
|
217
224
|
function Ks(t) {
|
|
218
225
|
return t !== null && typeof t == "object" && "type" in t && "tagName" in t;
|
|
219
226
|
}
|
|
220
|
-
const Mn = /\n/g, An = /[\t ]+/g, N0 = Gt("br"), On = Gt(Js),
|
|
227
|
+
const Mn = /\n/g, An = /[\t ]+/g, N0 = Gt("br"), On = Gt(Js), Ws = Gt("p"), Rn = Gt("tr"), Vs = Gt([
|
|
221
228
|
// List from: <https://html.spec.whatwg.org/multipage/rendering.html#hidden-elements>
|
|
222
229
|
"datalist",
|
|
223
230
|
"head",
|
|
@@ -358,12 +365,12 @@ function Aa(t, e, r) {
|
|
|
358
365
|
function Ys(t, e, r) {
|
|
359
366
|
const n = Ra(t, r), a = t.children || [];
|
|
360
367
|
let i = -1, o = [];
|
|
361
|
-
if (
|
|
368
|
+
if (Vs(t))
|
|
362
369
|
return o;
|
|
363
370
|
let c, u;
|
|
364
371
|
for (N0(t) || Rn(t) && // @ts-expect-error: something up with types of parents.
|
|
365
372
|
Tn(e, t, Rn) ? u = `
|
|
366
|
-
` :
|
|
373
|
+
` : Ws(t) ? (c = 2, u = 2) : Ma(t) && (c = 1, u = 1); ++i < a.length; )
|
|
367
374
|
o = o.concat(
|
|
368
375
|
Aa(a[i], t, {
|
|
369
376
|
whitespace: n,
|
|
@@ -8723,7 +8730,7 @@ function Ko(t) {
|
|
|
8723
8730
|
]
|
|
8724
8731
|
};
|
|
8725
8732
|
}
|
|
8726
|
-
const
|
|
8733
|
+
const Wo = (t) => ({
|
|
8727
8734
|
IMPORTANT: {
|
|
8728
8735
|
scope: "meta",
|
|
8729
8736
|
begin: "!important"
|
|
@@ -8756,7 +8763,7 @@ const Vo = (t) => ({
|
|
|
8756
8763
|
className: "attr",
|
|
8757
8764
|
begin: /--[A-Za-z_][A-Za-z0-9_-]*/
|
|
8758
8765
|
}
|
|
8759
|
-
}),
|
|
8766
|
+
}), Vo = [
|
|
8760
8767
|
"a",
|
|
8761
8768
|
"abbr",
|
|
8762
8769
|
"address",
|
|
@@ -9317,7 +9324,7 @@ const Vo = (t) => ({
|
|
|
9317
9324
|
// instead of getting false positives on say `font`
|
|
9318
9325
|
].reverse();
|
|
9319
9326
|
function Jo(t) {
|
|
9320
|
-
const e =
|
|
9327
|
+
const e = Wo(t), r = Xo, n = Zo, a = "@[a-z-]+", i = "and or not only", c = {
|
|
9321
9328
|
className: "variable",
|
|
9322
9329
|
begin: "(\\$" + "[a-zA-Z-][a-zA-Z0-9_-]*" + ")\\b",
|
|
9323
9330
|
relevance: 0
|
|
@@ -9345,7 +9352,7 @@ function Jo(t) {
|
|
|
9345
9352
|
e.ATTRIBUTE_SELECTOR_MODE,
|
|
9346
9353
|
{
|
|
9347
9354
|
className: "selector-tag",
|
|
9348
|
-
begin: "\\b(" +
|
|
9355
|
+
begin: "\\b(" + Vo.join("|") + ")\\b",
|
|
9349
9356
|
// was there, before, but why?
|
|
9350
9357
|
relevance: 0
|
|
9351
9358
|
},
|
|
@@ -10745,7 +10752,7 @@ function ll(t) {
|
|
|
10745
10752
|
end: /}/
|
|
10746
10753
|
};
|
|
10747
10754
|
for (const ue of K.variants) {
|
|
10748
|
-
const lt = ue.contains.find((
|
|
10755
|
+
const lt = ue.contains.find((Wt) => Wt.label === "interpol");
|
|
10749
10756
|
lt.keywords = m;
|
|
10750
10757
|
const ct = [
|
|
10751
10758
|
...p,
|
|
@@ -10917,7 +10924,7 @@ const Ur = "[A-Za-z$_][0-9A-Za-z$_]*", Ha = [
|
|
|
10917
10924
|
"SyntaxError",
|
|
10918
10925
|
"TypeError",
|
|
10919
10926
|
"URIError"
|
|
10920
|
-
],
|
|
10927
|
+
], Wa = [
|
|
10921
10928
|
"setInterval",
|
|
10922
10929
|
"setTimeout",
|
|
10923
10930
|
"clearInterval",
|
|
@@ -10935,7 +10942,7 @@ const Ur = "[A-Za-z$_][0-9A-Za-z$_]*", Ha = [
|
|
|
10935
10942
|
"encodeURIComponent",
|
|
10936
10943
|
"escape",
|
|
10937
10944
|
"unescape"
|
|
10938
|
-
],
|
|
10945
|
+
], Va = [
|
|
10939
10946
|
"arguments",
|
|
10940
10947
|
"this",
|
|
10941
10948
|
"super",
|
|
@@ -10948,7 +10955,7 @@ const Ur = "[A-Za-z$_][0-9A-Za-z$_]*", Ha = [
|
|
|
10948
10955
|
"global"
|
|
10949
10956
|
// Node.js
|
|
10950
10957
|
], Ya = [].concat(
|
|
10951
|
-
|
|
10958
|
+
Wa,
|
|
10952
10959
|
Ga,
|
|
10953
10960
|
Ka
|
|
10954
10961
|
);
|
|
@@ -10996,7 +11003,7 @@ function cl(t) {
|
|
|
10996
11003
|
keyword: Ha,
|
|
10997
11004
|
literal: $a,
|
|
10998
11005
|
built_in: Ya,
|
|
10999
|
-
"variable.language":
|
|
11006
|
+
"variable.language": Va
|
|
11000
11007
|
}, u = "[0-9](_?[0-9])*", m = `\\.(${u})`, p = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", f = {
|
|
11001
11008
|
className: "number",
|
|
11002
11009
|
variants: [
|
|
@@ -11249,7 +11256,7 @@ function cl(t) {
|
|
|
11249
11256
|
match: e.concat(
|
|
11250
11257
|
/\b/,
|
|
11251
11258
|
le([
|
|
11252
|
-
...
|
|
11259
|
+
...Wa,
|
|
11253
11260
|
"super",
|
|
11254
11261
|
"import"
|
|
11255
11262
|
]),
|
|
@@ -11507,7 +11514,7 @@ function ul(t) {
|
|
|
11507
11514
|
keyword: Ha.concat(c),
|
|
11508
11515
|
literal: $a,
|
|
11509
11516
|
built_in: Ya.concat(n),
|
|
11510
|
-
"variable.language":
|
|
11517
|
+
"variable.language": Va
|
|
11511
11518
|
}, m = {
|
|
11512
11519
|
className: "meta",
|
|
11513
11520
|
begin: "@" + r
|
|
@@ -12617,7 +12624,7 @@ function gl() {
|
|
|
12617
12624
|
y.begin = y.match, delete y.match;
|
|
12618
12625
|
}
|
|
12619
12626
|
}
|
|
12620
|
-
function
|
|
12627
|
+
function Wt(y, T) {
|
|
12621
12628
|
y.relevance === void 0 && (y.relevance = 1);
|
|
12622
12629
|
}
|
|
12623
12630
|
const sr = (y, T) => {
|
|
@@ -12632,7 +12639,7 @@ function gl() {
|
|
|
12632
12639
|
Object.assign(B, { endsParent: !0 })
|
|
12633
12640
|
]
|
|
12634
12641
|
}, y.relevance = 0, delete B.beforeMatch;
|
|
12635
|
-
},
|
|
12642
|
+
}, Vt = [
|
|
12636
12643
|
"of",
|
|
12637
12644
|
"and",
|
|
12638
12645
|
"for",
|
|
@@ -12659,15 +12666,15 @@ function gl() {
|
|
|
12659
12666
|
function Me(Ae, G) {
|
|
12660
12667
|
T && (G = G.map((H) => H.toLowerCase())), G.forEach(function(H) {
|
|
12661
12668
|
const j = H.split("|");
|
|
12662
|
-
ee[j[0]] = [Ae,
|
|
12669
|
+
ee[j[0]] = [Ae, Vi(j[0], j[1])];
|
|
12663
12670
|
});
|
|
12664
12671
|
}
|
|
12665
12672
|
}
|
|
12666
|
-
function
|
|
12673
|
+
function Vi(y, T) {
|
|
12667
12674
|
return T ? Number(T) : Yi(y) ? 0 : 1;
|
|
12668
12675
|
}
|
|
12669
12676
|
function Yi(y) {
|
|
12670
|
-
return
|
|
12677
|
+
return Vt.includes(y.toLowerCase());
|
|
12671
12678
|
}
|
|
12672
12679
|
const cn = {}, Ft = (y) => {
|
|
12673
12680
|
console.error(y);
|
|
@@ -12792,7 +12799,7 @@ function gl() {
|
|
|
12792
12799
|
// raw array if they wanted to perhaps manipulate it, etc.
|
|
12793
12800
|
lt,
|
|
12794
12801
|
// default to 1 relevance if not specified
|
|
12795
|
-
|
|
12802
|
+
Wt
|
|
12796
12803
|
].forEach((Re) => Re(G, H)), G.isCompiled = !0;
|
|
12797
12804
|
let Be = null;
|
|
12798
12805
|
return typeof G.keywords == "object" && G.keywords.$pattern && (G.keywords = Object.assign({}, G.keywords), Be = G.keywords.$pattern, delete G.keywords.$pattern), Be = Be || /\w+/, G.keywords && (G.keywords = ln(G.keywords, y.case_insensitive)), j.keywordPatternRe = T(Be, !0), H && (G.begin || (G.begin = /\B|\b/), j.beginRe = T(j.begin), !G.end && !G.endsWithParent && (G.end = /\B|\b/), G.end && (j.endRe = T(j.end)), j.terminatorEnd = f(j.end) || "", G.endsWithParent && H.terminatorEnd && (j.terminatorEnd += (G.end ? "|" : "") + H.terminatorEnd)), G.illegal && (j.illegalRe = T(
|
|
@@ -12872,8 +12879,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ie = C, fe = Y), se =
|
|
|
12872
12879
|
}
|
|
12873
12880
|
function or(C, Y, se, fe) {
|
|
12874
12881
|
const Ie = /* @__PURE__ */ Object.create(null);
|
|
12875
|
-
function it(z,
|
|
12876
|
-
return z.keywords[
|
|
12882
|
+
function it(z, W) {
|
|
12883
|
+
return z.keywords[W];
|
|
12877
12884
|
}
|
|
12878
12885
|
function Mt() {
|
|
12879
12886
|
if (!te.keywords) {
|
|
@@ -12882,21 +12889,21 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ie = C, fe = Y), se =
|
|
|
12882
12889
|
}
|
|
12883
12890
|
let z = 0;
|
|
12884
12891
|
te.keywordPatternRe.lastIndex = 0;
|
|
12885
|
-
let
|
|
12886
|
-
for (;
|
|
12887
|
-
ae += we.substring(z,
|
|
12888
|
-
const de = dt.case_insensitive ?
|
|
12892
|
+
let W = te.keywordPatternRe.exec(we), ae = "";
|
|
12893
|
+
for (; W; ) {
|
|
12894
|
+
ae += we.substring(z, W.index);
|
|
12895
|
+
const de = dt.case_insensitive ? W[0].toLowerCase() : W[0], Fe = it(te, de);
|
|
12889
12896
|
if (Fe) {
|
|
12890
12897
|
const [bt, Es] = Fe;
|
|
12891
12898
|
if (ze.addText(ae), ae = "", Ie[de] = (Ie[de] || 0) + 1, Ie[de] <= ns && (Er += Es), bt.startsWith("_"))
|
|
12892
|
-
ae +=
|
|
12899
|
+
ae += W[0];
|
|
12893
12900
|
else {
|
|
12894
12901
|
const xs = dt.classNameAliases[bt] || bt;
|
|
12895
|
-
ut(
|
|
12902
|
+
ut(W[0], xs);
|
|
12896
12903
|
}
|
|
12897
12904
|
} else
|
|
12898
|
-
ae +=
|
|
12899
|
-
z = te.keywordPatternRe.lastIndex,
|
|
12905
|
+
ae += W[0];
|
|
12906
|
+
z = te.keywordPatternRe.lastIndex, W = te.keywordPatternRe.exec(we);
|
|
12900
12907
|
}
|
|
12901
12908
|
ae += we.substring(z), ze.addText(ae);
|
|
12902
12909
|
}
|
|
@@ -12917,30 +12924,30 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ie = C, fe = Y), se =
|
|
|
12917
12924
|
function Ye() {
|
|
12918
12925
|
te.subLanguage != null ? yr() : Mt(), we = "";
|
|
12919
12926
|
}
|
|
12920
|
-
function ut(z,
|
|
12921
|
-
z !== "" && (ze.startScope(
|
|
12927
|
+
function ut(z, W) {
|
|
12928
|
+
z !== "" && (ze.startScope(W), ze.addText(z), ze.endScope());
|
|
12922
12929
|
}
|
|
12923
|
-
function yn(z,
|
|
12930
|
+
function yn(z, W) {
|
|
12924
12931
|
let ae = 1;
|
|
12925
|
-
const de =
|
|
12932
|
+
const de = W.length - 1;
|
|
12926
12933
|
for (; ae <= de; ) {
|
|
12927
12934
|
if (!z._emit[ae]) {
|
|
12928
12935
|
ae++;
|
|
12929
12936
|
continue;
|
|
12930
12937
|
}
|
|
12931
|
-
const Fe = dt.classNameAliases[z[ae]] || z[ae], bt =
|
|
12938
|
+
const Fe = dt.classNameAliases[z[ae]] || z[ae], bt = W[ae];
|
|
12932
12939
|
Fe ? ut(bt, Fe) : (we = bt, Mt(), we = ""), ae++;
|
|
12933
12940
|
}
|
|
12934
12941
|
}
|
|
12935
|
-
function wn(z,
|
|
12936
|
-
return z.scope && typeof z.scope == "string" && ze.openNode(dt.classNameAliases[z.scope] || z.scope), z.beginScope && (z.beginScope._wrap ? (ut(we, dt.classNameAliases[z.beginScope._wrap] || z.beginScope._wrap), we = "") : z.beginScope._multi && (yn(z.beginScope,
|
|
12942
|
+
function wn(z, W) {
|
|
12943
|
+
return z.scope && typeof z.scope == "string" && ze.openNode(dt.classNameAliases[z.scope] || z.scope), z.beginScope && (z.beginScope._wrap ? (ut(we, dt.classNameAliases[z.beginScope._wrap] || z.beginScope._wrap), we = "") : z.beginScope._multi && (yn(z.beginScope, W), we = "")), te = Object.create(z, { parent: { value: te } }), te;
|
|
12937
12944
|
}
|
|
12938
|
-
function En(z,
|
|
12945
|
+
function En(z, W, ae) {
|
|
12939
12946
|
let de = D(z.endRe, ae);
|
|
12940
12947
|
if (de) {
|
|
12941
12948
|
if (z["on:end"]) {
|
|
12942
12949
|
const Fe = new e(z);
|
|
12943
|
-
z["on:end"](
|
|
12950
|
+
z["on:end"](W, Fe), Fe.isMatchIgnored && (de = !1);
|
|
12944
12951
|
}
|
|
12945
12952
|
if (de) {
|
|
12946
12953
|
for (; z.endsParent && z.parent; )
|
|
@@ -12949,60 +12956,60 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ie = C, fe = Y), se =
|
|
|
12949
12956
|
}
|
|
12950
12957
|
}
|
|
12951
12958
|
if (z.endsWithParent)
|
|
12952
|
-
return En(z.parent,
|
|
12959
|
+
return En(z.parent, W, ae);
|
|
12953
12960
|
}
|
|
12954
12961
|
function gs(z) {
|
|
12955
12962
|
return te.matcher.regexIndex === 0 ? (we += z[0], 1) : (i0 = !0, 0);
|
|
12956
12963
|
}
|
|
12957
12964
|
function bs(z) {
|
|
12958
|
-
const
|
|
12965
|
+
const W = z[0], ae = z.rule, de = new e(ae), Fe = [ae.__beforeBegin, ae["on:begin"]];
|
|
12959
12966
|
for (const bt of Fe)
|
|
12960
12967
|
if (bt && (bt(z, de), de.isMatchIgnored))
|
|
12961
|
-
return gs(
|
|
12962
|
-
return ae.skip ? we +=
|
|
12968
|
+
return gs(W);
|
|
12969
|
+
return ae.skip ? we += W : (ae.excludeBegin && (we += W), Ye(), !ae.returnBegin && !ae.excludeBegin && (we = W)), wn(ae, z), ae.returnBegin ? 0 : W.length;
|
|
12963
12970
|
}
|
|
12964
12971
|
function vs(z) {
|
|
12965
|
-
const
|
|
12972
|
+
const W = z[0], ae = Y.substring(z.index), de = En(te, z, ae);
|
|
12966
12973
|
if (!de)
|
|
12967
12974
|
return pn;
|
|
12968
12975
|
const Fe = te;
|
|
12969
|
-
te.endScope && te.endScope._wrap ? (Ye(), ut(
|
|
12976
|
+
te.endScope && te.endScope._wrap ? (Ye(), ut(W, te.endScope._wrap)) : te.endScope && te.endScope._multi ? (Ye(), yn(te.endScope, z)) : Fe.skip ? we += W : (Fe.returnEnd || Fe.excludeEnd || (we += W), Ye(), Fe.excludeEnd && (we = W));
|
|
12970
12977
|
do
|
|
12971
12978
|
te.scope && ze.closeNode(), !te.skip && !te.subLanguage && (Er += te.relevance), te = te.parent;
|
|
12972
12979
|
while (te !== de.parent);
|
|
12973
|
-
return de.starts && wn(de.starts, z), Fe.returnEnd ? 0 :
|
|
12980
|
+
return de.starts && wn(de.starts, z), Fe.returnEnd ? 0 : W.length;
|
|
12974
12981
|
}
|
|
12975
12982
|
function ys() {
|
|
12976
12983
|
const z = [];
|
|
12977
|
-
for (let
|
|
12978
|
-
|
|
12979
|
-
z.forEach((
|
|
12984
|
+
for (let W = te; W !== dt; W = W.parent)
|
|
12985
|
+
W.scope && z.unshift(W.scope);
|
|
12986
|
+
z.forEach((W) => ze.openNode(W));
|
|
12980
12987
|
}
|
|
12981
12988
|
let wr = {};
|
|
12982
|
-
function xn(z,
|
|
12983
|
-
const ae =
|
|
12989
|
+
function xn(z, W) {
|
|
12990
|
+
const ae = W && W[0];
|
|
12984
12991
|
if (we += z, ae == null)
|
|
12985
12992
|
return Ye(), 0;
|
|
12986
|
-
if (wr.type === "begin" &&
|
|
12987
|
-
if (we += Y.slice(
|
|
12993
|
+
if (wr.type === "begin" && W.type === "end" && wr.index === W.index && ae === "") {
|
|
12994
|
+
if (we += Y.slice(W.index, W.index + 1), !Me) {
|
|
12988
12995
|
const de = new Error(`0 width match regex (${C})`);
|
|
12989
12996
|
throw de.languageName = C, de.badRule = wr.rule, de;
|
|
12990
12997
|
}
|
|
12991
12998
|
return 1;
|
|
12992
12999
|
}
|
|
12993
|
-
if (wr =
|
|
12994
|
-
return bs(
|
|
12995
|
-
if (
|
|
13000
|
+
if (wr = W, W.type === "begin")
|
|
13001
|
+
return bs(W);
|
|
13002
|
+
if (W.type === "illegal" && !se) {
|
|
12996
13003
|
const de = new Error('Illegal lexeme "' + ae + '" for mode "' + (te.scope || "<unnamed>") + '"');
|
|
12997
13004
|
throw de.mode = te, de;
|
|
12998
|
-
} else if (
|
|
12999
|
-
const de = vs(
|
|
13005
|
+
} else if (W.type === "end") {
|
|
13006
|
+
const de = vs(W);
|
|
13000
13007
|
if (de !== pn)
|
|
13001
13008
|
return de;
|
|
13002
13009
|
}
|
|
13003
|
-
if (
|
|
13010
|
+
if (W.type === "illegal" && ae === "")
|
|
13004
13011
|
return 1;
|
|
13005
|
-
if (a0 > 1e5 && a0 >
|
|
13012
|
+
if (a0 > 1e5 && a0 > W.index * 3)
|
|
13006
13013
|
throw new Error("potential infinite loop, way more iterations than matches");
|
|
13007
13014
|
return we += ae, ae.length;
|
|
13008
13015
|
}
|
|
@@ -13022,7 +13029,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ie = C, fe = Y), se =
|
|
|
13022
13029
|
a0++, i0 ? i0 = !1 : te.matcher.considerAll(), te.matcher.lastIndex = Ut;
|
|
13023
13030
|
const z = te.matcher.exec(Y);
|
|
13024
13031
|
if (!z) break;
|
|
13025
|
-
const
|
|
13032
|
+
const W = Y.substring(Ut, z.index), ae = xn(W, z);
|
|
13026
13033
|
Ut = z.index + ae;
|
|
13027
13034
|
}
|
|
13028
13035
|
xn(Y.substring(Ut));
|
|
@@ -13790,15 +13797,15 @@ var Hl = function(e, r) {
|
|
|
13790
13797
|
return e === void 0 ? r : e;
|
|
13791
13798
|
}, Gl = /([A-Z])/g, Kl = function(e) {
|
|
13792
13799
|
return e.replace(Gl, "-$1").toLowerCase();
|
|
13793
|
-
},
|
|
13800
|
+
}, Wl = {
|
|
13794
13801
|
"&": "&",
|
|
13795
13802
|
">": ">",
|
|
13796
13803
|
"<": "<",
|
|
13797
13804
|
'"': """,
|
|
13798
13805
|
"'": "'"
|
|
13799
|
-
},
|
|
13806
|
+
}, Vl = /[&><"']/g;
|
|
13800
13807
|
function Yl(t) {
|
|
13801
|
-
return String(t).replace(
|
|
13808
|
+
return String(t).replace(Vl, (e) => Wl[e]);
|
|
13802
13809
|
}
|
|
13803
13810
|
var Ja = function t(e) {
|
|
13804
13811
|
return e.type === "ordgroup" || e.type === "color" ? e.body.length === 1 ? t(e.body[0]) : e : e.type === "font" ? t(e.body) : e;
|
|
@@ -13812,7 +13819,7 @@ var Ja = function t(e) {
|
|
|
13812
13819
|
}, Ql = function(e) {
|
|
13813
13820
|
var r = /^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);
|
|
13814
13821
|
return r ? r[2] !== ":" || !/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1]) ? null : r[1].toLowerCase() : "_relative";
|
|
13815
|
-
},
|
|
13822
|
+
}, V = {
|
|
13816
13823
|
contains: Hl,
|
|
13817
13824
|
deflt: $l,
|
|
13818
13825
|
escape: Yl,
|
|
@@ -13973,7 +13980,7 @@ class q0 {
|
|
|
13973
13980
|
*/
|
|
13974
13981
|
isTrusted(e) {
|
|
13975
13982
|
if (e.url && !e.protocol) {
|
|
13976
|
-
var r =
|
|
13983
|
+
var r = V.protocolFromUrl(e.url);
|
|
13977
13984
|
if (r == null)
|
|
13978
13985
|
return !1;
|
|
13979
13986
|
e.protocol = r;
|
|
@@ -14539,7 +14546,7 @@ class hr {
|
|
|
14539
14546
|
this.children = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, this.children = e, this.classes = [], this.height = 0, this.depth = 0, this.maxFontSize = 0, this.style = {};
|
|
14540
14547
|
}
|
|
14541
14548
|
hasClass(e) {
|
|
14542
|
-
return
|
|
14549
|
+
return V.contains(this.classes, e);
|
|
14543
14550
|
}
|
|
14544
14551
|
/** Convert the fragment into a node. */
|
|
14545
14552
|
toNode() {
|
|
@@ -17111,13 +17118,13 @@ var O0 = {
|
|
|
17111
17118
|
return r;
|
|
17112
17119
|
}, ni = function(e) {
|
|
17113
17120
|
var r = "<" + e;
|
|
17114
|
-
this.classes.length && (r += ' class="' +
|
|
17121
|
+
this.classes.length && (r += ' class="' + V.escape(Ct(this.classes)) + '"');
|
|
17115
17122
|
var n = "";
|
|
17116
17123
|
for (var a in this.style)
|
|
17117
|
-
this.style.hasOwnProperty(a) && (n +=
|
|
17118
|
-
n && (r += ' style="' +
|
|
17124
|
+
this.style.hasOwnProperty(a) && (n += V.hyphenate(a) + ":" + this.style[a] + ";");
|
|
17125
|
+
n && (r += ' style="' + V.escape(n) + '"');
|
|
17119
17126
|
for (var i in this.attributes)
|
|
17120
|
-
this.attributes.hasOwnProperty(i) && (r += " " + i + '="' +
|
|
17127
|
+
this.attributes.hasOwnProperty(i) && (r += " " + i + '="' + V.escape(this.attributes[i]) + '"');
|
|
17121
17128
|
r += ">";
|
|
17122
17129
|
for (var o = 0; o < this.children.length; o++)
|
|
17123
17130
|
r += this.children[o].toMarkup();
|
|
@@ -17136,7 +17143,7 @@ class pr {
|
|
|
17136
17143
|
this.attributes[e] = r;
|
|
17137
17144
|
}
|
|
17138
17145
|
hasClass(e) {
|
|
17139
|
-
return
|
|
17146
|
+
return V.contains(this.classes, e);
|
|
17140
17147
|
}
|
|
17141
17148
|
toNode() {
|
|
17142
17149
|
return ri.call(this, "span");
|
|
@@ -17153,7 +17160,7 @@ class G0 {
|
|
|
17153
17160
|
this.attributes[e] = r;
|
|
17154
17161
|
}
|
|
17155
17162
|
hasClass(e) {
|
|
17156
|
-
return
|
|
17163
|
+
return V.contains(this.classes, e);
|
|
17157
17164
|
}
|
|
17158
17165
|
toNode() {
|
|
17159
17166
|
return ri.call(this, "a");
|
|
@@ -17167,7 +17174,7 @@ class wc {
|
|
|
17167
17174
|
this.src = void 0, this.alt = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, this.alt = r, this.src = e, this.classes = ["mord"], this.style = n;
|
|
17168
17175
|
}
|
|
17169
17176
|
hasClass(e) {
|
|
17170
|
-
return
|
|
17177
|
+
return V.contains(this.classes, e);
|
|
17171
17178
|
}
|
|
17172
17179
|
toNode() {
|
|
17173
17180
|
var e = document.createElement("img");
|
|
@@ -17177,10 +17184,10 @@ class wc {
|
|
|
17177
17184
|
return e;
|
|
17178
17185
|
}
|
|
17179
17186
|
toMarkup() {
|
|
17180
|
-
var e = '<img src="' +
|
|
17187
|
+
var e = '<img src="' + V.escape(this.src) + '"' + (' alt="' + V.escape(this.alt) + '"'), r = "";
|
|
17181
17188
|
for (var n in this.style)
|
|
17182
|
-
this.style.hasOwnProperty(n) && (r +=
|
|
17183
|
-
return r && (e += ' style="' +
|
|
17189
|
+
this.style.hasOwnProperty(n) && (r += V.hyphenate(n) + ":" + this.style[n] + ";");
|
|
17190
|
+
return r && (e += ' style="' + V.escape(r) + '"'), e += "'/>", e;
|
|
17184
17191
|
}
|
|
17185
17192
|
}
|
|
17186
17193
|
var Ec = {
|
|
@@ -17197,7 +17204,7 @@ class et {
|
|
|
17197
17204
|
m && this.classes.push(m + "_fallback"), /[îïíì]/.test(this.text) && (this.text = Ec[this.text]);
|
|
17198
17205
|
}
|
|
17199
17206
|
hasClass(e) {
|
|
17200
|
-
return
|
|
17207
|
+
return V.contains(this.classes, e);
|
|
17201
17208
|
}
|
|
17202
17209
|
/**
|
|
17203
17210
|
* Creates a text node or span from a symbol node. Note that a span is only
|
|
@@ -17215,13 +17222,13 @@ class et {
|
|
|
17215
17222
|
*/
|
|
17216
17223
|
toMarkup() {
|
|
17217
17224
|
var e = !1, r = "<span";
|
|
17218
|
-
this.classes.length && (e = !0, r += ' class="', r +=
|
|
17225
|
+
this.classes.length && (e = !0, r += ' class="', r += V.escape(Ct(this.classes)), r += '"');
|
|
17219
17226
|
var n = "";
|
|
17220
17227
|
this.italic > 0 && (n += "margin-right:" + this.italic + "em;");
|
|
17221
17228
|
for (var a in this.style)
|
|
17222
|
-
this.style.hasOwnProperty(a) && (n +=
|
|
17223
|
-
n && (e = !0, r += ' style="' +
|
|
17224
|
-
var i =
|
|
17229
|
+
this.style.hasOwnProperty(a) && (n += V.hyphenate(a) + ":" + this.style[a] + ";");
|
|
17230
|
+
n && (e = !0, r += ' style="' + V.escape(n) + '"');
|
|
17231
|
+
var i = V.escape(this.text);
|
|
17225
17232
|
return e ? (r += ">", r += i, r += "</span>", r) : i;
|
|
17226
17233
|
}
|
|
17227
17234
|
}
|
|
@@ -17240,7 +17247,7 @@ class _t {
|
|
|
17240
17247
|
toMarkup() {
|
|
17241
17248
|
var e = '<svg xmlns="http://www.w3.org/2000/svg"';
|
|
17242
17249
|
for (var r in this.attributes)
|
|
17243
|
-
Object.prototype.hasOwnProperty.call(this.attributes, r) && (e += " " + r + '="' +
|
|
17250
|
+
Object.prototype.hasOwnProperty.call(this.attributes, r) && (e += " " + r + '="' + V.escape(this.attributes[r]) + '"');
|
|
17244
17251
|
e += ">";
|
|
17245
17252
|
for (var n = 0; n < this.children.length; n++)
|
|
17246
17253
|
e += this.children[n].toMarkup();
|
|
@@ -17256,7 +17263,7 @@ class It {
|
|
|
17256
17263
|
return this.alternate ? r.setAttribute("d", this.alternate) : r.setAttribute("d", Hn[this.pathName]), r;
|
|
17257
17264
|
}
|
|
17258
17265
|
toMarkup() {
|
|
17259
|
-
return this.alternate ? '<path d="' +
|
|
17266
|
+
return this.alternate ? '<path d="' + V.escape(this.alternate) + '"/>' : '<path d="' + V.escape(Hn[this.pathName]) + '"/>';
|
|
17260
17267
|
}
|
|
17261
17268
|
}
|
|
17262
17269
|
class R0 {
|
|
@@ -17272,11 +17279,11 @@ class R0 {
|
|
|
17272
17279
|
toMarkup() {
|
|
17273
17280
|
var e = "<line";
|
|
17274
17281
|
for (var r in this.attributes)
|
|
17275
|
-
Object.prototype.hasOwnProperty.call(this.attributes, r) && (e += " " + r + '="' +
|
|
17282
|
+
Object.prototype.hasOwnProperty.call(this.attributes, r) && (e += " " + r + '="' + V.escape(this.attributes[r]) + '"');
|
|
17276
17283
|
return e += "/>", e;
|
|
17277
17284
|
}
|
|
17278
17285
|
}
|
|
17279
|
-
function
|
|
17286
|
+
function Wn(t) {
|
|
17280
17287
|
if (t instanceof et)
|
|
17281
17288
|
return t;
|
|
17282
17289
|
throw new Error("Expected symbolNode but got " + String(t) + ".");
|
|
@@ -17310,7 +17317,7 @@ function s(t, e, r, n, a, i) {
|
|
|
17310
17317
|
replace: n
|
|
17311
17318
|
}, i && n && (ge[t][n] = ge[t][a]);
|
|
17312
17319
|
}
|
|
17313
|
-
var l = "math", A = "text", d = "main", g = "ams", _e = "accent-token", U = "bin", $e = "close", rr = "inner", Z = "mathord", Ce = "op-token", Xe = "open",
|
|
17320
|
+
var l = "math", A = "text", d = "main", g = "ams", _e = "accent-token", U = "bin", $e = "close", rr = "inner", Z = "mathord", Ce = "op-token", Xe = "open", Wr = "punct", b = "rel", kt = "spacing", E = "textord";
|
|
17314
17321
|
s(l, d, b, "≡", "\\equiv", !0);
|
|
17315
17322
|
s(l, d, b, "≺", "\\prec", !0);
|
|
17316
17323
|
s(l, d, b, "≻", "\\succ", !0);
|
|
@@ -17335,8 +17342,8 @@ s(l, d, b, "∝", "\\propto", !0);
|
|
|
17335
17342
|
s(l, d, b, "⊢", "\\vdash", !0);
|
|
17336
17343
|
s(l, d, b, "⊣", "\\dashv", !0);
|
|
17337
17344
|
s(l, d, b, "∋", "\\owns");
|
|
17338
|
-
s(l, d,
|
|
17339
|
-
s(l, d,
|
|
17345
|
+
s(l, d, Wr, ".", "\\ldotp");
|
|
17346
|
+
s(l, d, Wr, "⋅", "\\cdotp");
|
|
17340
17347
|
s(l, d, E, "#", "\\#");
|
|
17341
17348
|
s(A, d, E, "#", "\\#");
|
|
17342
17349
|
s(l, d, E, "&", "\\&");
|
|
@@ -17763,8 +17770,8 @@ s(A, d, kt, " ", "\\space");
|
|
|
17763
17770
|
s(A, d, kt, " ", "\\nobreakspace");
|
|
17764
17771
|
s(l, d, kt, null, "\\nobreak");
|
|
17765
17772
|
s(l, d, kt, null, "\\allowbreak");
|
|
17766
|
-
s(l, d,
|
|
17767
|
-
s(l, d,
|
|
17773
|
+
s(l, d, Wr, ",", ",");
|
|
17774
|
+
s(l, d, Wr, ";", ";");
|
|
17768
17775
|
s(l, g, U, "⊼", "\\barwedge", !0);
|
|
17769
17776
|
s(l, g, U, "⊻", "\\veebar", !0);
|
|
17770
17777
|
s(l, d, U, "⊙", "\\odot", !0);
|
|
@@ -17908,9 +17915,9 @@ s(A, d, E, "£", "\\pounds");
|
|
|
17908
17915
|
s(A, d, E, "£", "\\textsterling", !0);
|
|
17909
17916
|
s(l, g, E, "✠", "\\maltese");
|
|
17910
17917
|
s(A, g, E, "✠", "\\maltese");
|
|
17911
|
-
var
|
|
17912
|
-
for (var m0 = 0; m0 <
|
|
17913
|
-
var Yn =
|
|
17918
|
+
var Vn = '0123456789/@."';
|
|
17919
|
+
for (var m0 = 0; m0 < Vn.length; m0++) {
|
|
17920
|
+
var Yn = Vn.charAt(m0);
|
|
17914
17921
|
s(l, d, E, Yn, Yn);
|
|
17915
17922
|
}
|
|
17916
17923
|
var Zn = '0123456789!@*()-=+";:?/.,';
|
|
@@ -18038,13 +18045,13 @@ var Rr = [
|
|
|
18038
18045
|
return ["", ""];
|
|
18039
18046
|
throw new R("Unsupported character: " + e);
|
|
18040
18047
|
}
|
|
18041
|
-
},
|
|
18048
|
+
}, Vr = function(e, r, n) {
|
|
18042
18049
|
return ge[n][e] && ge[n][e].replace && (e = ge[n][e].replace), {
|
|
18043
18050
|
value: e,
|
|
18044
18051
|
metrics: $0(e, r, n)
|
|
18045
18052
|
};
|
|
18046
18053
|
}, st = function(e, r, n, a, i) {
|
|
18047
|
-
var o =
|
|
18054
|
+
var o = Vr(e, r, n), c = o.metrics;
|
|
18048
18055
|
e = o.value;
|
|
18049
18056
|
var u;
|
|
18050
18057
|
if (c) {
|
|
@@ -18059,9 +18066,9 @@ var Rr = [
|
|
|
18059
18066
|
}
|
|
18060
18067
|
return u;
|
|
18061
18068
|
}, kc = function(e, r, n, a) {
|
|
18062
|
-
return a === void 0 && (a = []), n.font === "boldsymbol" &&
|
|
18069
|
+
return a === void 0 && (a = []), n.font === "boldsymbol" && Vr(e, "Main-Bold", r).metrics ? st(e, "Main-Bold", r, n, a.concat(["mathbf"])) : e === "\\" || ge[r][e].font === "main" ? st(e, "Main-Regular", r, n, a) : st(e, "AMS-Regular", r, n, a.concat(["amsrm"]));
|
|
18063
18070
|
}, Tc = function(e, r, n, a, i) {
|
|
18064
|
-
return i !== "textord" &&
|
|
18071
|
+
return i !== "textord" && Vr(e, "Math-BoldItalic", r).metrics ? {
|
|
18065
18072
|
fontName: "Math-BoldItalic",
|
|
18066
18073
|
fontClass: "boldsymbol"
|
|
18067
18074
|
} : {
|
|
@@ -18078,7 +18085,7 @@ var Rr = [
|
|
|
18078
18085
|
var w = Tc(i, a, r, o, n);
|
|
18079
18086
|
f = w.fontName, v = [w.fontClass];
|
|
18080
18087
|
} else c ? (f = oi[u].fontName, v = [u]) : (f = Cr(u, r.fontWeight, r.fontShape), v = [u, r.fontWeight, r.fontShape]);
|
|
18081
|
-
if (
|
|
18088
|
+
if (Vr(i, f, a).metrics)
|
|
18082
18089
|
return st(i, f, a, r, o.concat(v));
|
|
18083
18090
|
if (ai.hasOwnProperty(i) && f.slice(0, 10) === "Typewriter") {
|
|
18084
18091
|
for (var _ = [], x = 0; x < i.length; x++)
|
|
@@ -18483,7 +18490,7 @@ var Kr = function(e) {
|
|
|
18483
18490
|
var f = St([a[0] || "leftmost"], [], r), v = St([a[1] || "rightmost"], [], r), w = n === "root";
|
|
18484
18491
|
return Jn(i, (_, x) => {
|
|
18485
18492
|
var N = x.classes[0], M = _.classes[0];
|
|
18486
|
-
N === "mbin" &&
|
|
18493
|
+
N === "mbin" && V.contains(qc, M) ? x.classes[0] = "mord" : M === "mbin" && V.contains(Uc, N) && (_.classes[0] = "mord");
|
|
18487
18494
|
}, {
|
|
18488
18495
|
node: f
|
|
18489
18496
|
}, v, w), Jn(i, (_, x) => {
|
|
@@ -18607,8 +18614,8 @@ class Qe {
|
|
|
18607
18614
|
toMarkup() {
|
|
18608
18615
|
var e = "<" + this.type;
|
|
18609
18616
|
for (var r in this.attributes)
|
|
18610
|
-
Object.prototype.hasOwnProperty.call(this.attributes, r) && (e += " " + r + '="', e +=
|
|
18611
|
-
this.classes.length > 0 && (e += ' class ="' +
|
|
18617
|
+
Object.prototype.hasOwnProperty.call(this.attributes, r) && (e += " " + r + '="', e += V.escape(this.attributes[r]), e += '"');
|
|
18618
|
+
this.classes.length > 0 && (e += ' class ="' + V.escape(Ct(this.classes)) + '"'), e += ">";
|
|
18612
18619
|
for (var n = 0; n < this.children.length; n++)
|
|
18613
18620
|
e += this.children[n].toMarkup();
|
|
18614
18621
|
return e += "</" + this.type + ">", e;
|
|
@@ -18635,7 +18642,7 @@ class cr {
|
|
|
18635
18642
|
* (representing the text itself).
|
|
18636
18643
|
*/
|
|
18637
18644
|
toMarkup() {
|
|
18638
|
-
return
|
|
18645
|
+
return V.escape(this.toText());
|
|
18639
18646
|
}
|
|
18640
18647
|
/**
|
|
18641
18648
|
* Converts the text node into a string
|
|
@@ -18681,9 +18688,9 @@ var O = {
|
|
|
18681
18688
|
newDocumentFragment: di
|
|
18682
18689
|
}, tt = function(e, r, n) {
|
|
18683
18690
|
return ge[r][e] && ge[r][e].replace && e.charCodeAt(0) !== 55349 && !(ai.hasOwnProperty(e) && n && (n.fontFamily && n.fontFamily.slice(4, 6) === "tt" || n.font && n.font.slice(4, 6) === "tt")) && (e = ge[r][e].replace), new O.TextNode(e);
|
|
18684
|
-
},
|
|
18691
|
+
}, W0 = function(e) {
|
|
18685
18692
|
return e.length === 1 ? e[0] : new O.MathNode("mrow", e);
|
|
18686
|
-
},
|
|
18693
|
+
}, V0 = function(e, r) {
|
|
18687
18694
|
if (r.fontFamily === "texttt")
|
|
18688
18695
|
return "monospace";
|
|
18689
18696
|
if (r.fontFamily === "textsf")
|
|
@@ -18715,12 +18722,12 @@ var O = {
|
|
|
18715
18722
|
if (n === "mathtt")
|
|
18716
18723
|
return "monospace";
|
|
18717
18724
|
var i = e.text;
|
|
18718
|
-
if (
|
|
18725
|
+
if (V.contains(["\\imath", "\\jmath"], i))
|
|
18719
18726
|
return null;
|
|
18720
18727
|
ge[a][i] && ge[a][i].replace && (i = ge[a][i].replace);
|
|
18721
18728
|
var o = S.fontMap[n].fontName;
|
|
18722
18729
|
return $0(i, o, a) ? S.fontMap[n].variant : null;
|
|
18723
|
-
},
|
|
18730
|
+
}, Ve = function(e, r, n) {
|
|
18724
18731
|
if (e.length === 1) {
|
|
18725
18732
|
var a = pe(e[0], r);
|
|
18726
18733
|
return n && a instanceof Qe && a.type === "mo" && (a.setAttribute("lspace", "0em"), a.setAttribute("rspace", "0em")), [a];
|
|
@@ -18752,7 +18759,7 @@ var O = {
|
|
|
18752
18759
|
}
|
|
18753
18760
|
return i;
|
|
18754
18761
|
}, Dt = function(e, r, n) {
|
|
18755
|
-
return
|
|
18762
|
+
return W0(Ve(e, r, n));
|
|
18756
18763
|
}, pe = function(e, r) {
|
|
18757
18764
|
if (!e)
|
|
18758
18765
|
return new O.MathNode("mrow");
|
|
@@ -18763,8 +18770,8 @@ var O = {
|
|
|
18763
18770
|
throw new R("Got group of unknown type: '" + e.type + "'");
|
|
18764
18771
|
};
|
|
18765
18772
|
function jn(t, e, r, n, a) {
|
|
18766
|
-
var i =
|
|
18767
|
-
i.length === 1 && i[0] instanceof Qe &&
|
|
18773
|
+
var i = Ve(t, r), o;
|
|
18774
|
+
i.length === 1 && i[0] instanceof Qe && V.contains(["mrow", "mtable"], i[0].type) ? o = i[0] : o = new O.MathNode("mrow", i);
|
|
18768
18775
|
var c = new O.MathNode("annotation", [new O.TextNode(e)]);
|
|
18769
18776
|
c.setAttribute("encoding", "application/x-tex");
|
|
18770
18777
|
var u = new O.MathNode("semantics", [o, c]), m = new O.MathNode("math", [u]);
|
|
@@ -18784,7 +18791,7 @@ var mi = function(e) {
|
|
|
18784
18791
|
r.leqno && n.push("leqno"), r.fleqn && n.push("fleqn"), e = S.makeSpan(n, [e]);
|
|
18785
18792
|
}
|
|
18786
18793
|
return e;
|
|
18787
|
-
},
|
|
18794
|
+
}, Wc = function(e, r, n) {
|
|
18788
18795
|
var a = mi(n), i;
|
|
18789
18796
|
if (n.output === "mathml")
|
|
18790
18797
|
return jn(e, r, a, n.displayMode, !0);
|
|
@@ -18796,7 +18803,7 @@ var mi = function(e) {
|
|
|
18796
18803
|
i = S.makeSpan(["katex"], [c, u]);
|
|
18797
18804
|
}
|
|
18798
18805
|
return hi(i, n);
|
|
18799
|
-
},
|
|
18806
|
+
}, Vc = function(e, r, n) {
|
|
18800
18807
|
var a = mi(n), i = D0(e, a), o = S.makeSpan(["katex"], [i]);
|
|
18801
18808
|
return hi(o, n);
|
|
18802
18809
|
}, Yc = {
|
|
@@ -18899,7 +18906,7 @@ var mi = function(e) {
|
|
|
18899
18906
|
}, Jc = function(e, r) {
|
|
18900
18907
|
function n() {
|
|
18901
18908
|
var c = 4e5, u = e.label.slice(1);
|
|
18902
|
-
if (
|
|
18909
|
+
if (V.contains(["widehat", "widecheck", "widetilde", "utilde"], u)) {
|
|
18903
18910
|
var m = e, p = Qc(m.base), f, v, w;
|
|
18904
18911
|
if (p > 5)
|
|
18905
18912
|
u === "widehat" || u === "widecheck" ? (f = 420, c = 2364, w = 0.42, v = u + "4") : (f = 312, c = 2340, w = 0.34, v = "tilde4");
|
|
@@ -19009,10 +19016,10 @@ function Yr(t) {
|
|
|
19009
19016
|
var Z0 = (t, e) => {
|
|
19010
19017
|
var r, n, a;
|
|
19011
19018
|
t && t.type === "supsub" ? (n = re(t.base, "accent"), r = n.base, t.base = r, a = xc(oe(t, e)), t.base = n) : (n = re(t, "accent"), r = n.base);
|
|
19012
|
-
var i = oe(r, e.havingCrampedStyle()), o = n.isShifty &&
|
|
19019
|
+
var i = oe(r, e.havingCrampedStyle()), o = n.isShifty && V.isCharacterBox(r), c = 0;
|
|
19013
19020
|
if (o) {
|
|
19014
|
-
var u =
|
|
19015
|
-
c =
|
|
19021
|
+
var u = V.getBaseElem(r), m = oe(u, e.havingCrampedStyle());
|
|
19022
|
+
c = Wn(m).skew;
|
|
19016
19023
|
}
|
|
19017
19024
|
var p = n.label === "\\c", f = p ? i.height + i.depth : Math.min(i.height, e.fontMetrics().xHeight), v;
|
|
19018
19025
|
if (n.isStretchy)
|
|
@@ -19036,7 +19043,7 @@ var Z0 = (t, e) => {
|
|
|
19036
19043
|
n.label === "\\vec" ? (w = S.staticSvg("vec", e), _ = S.svgData.vec[1]) : (w = S.makeOrd({
|
|
19037
19044
|
mode: n.mode,
|
|
19038
19045
|
text: n.label
|
|
19039
|
-
}, e, "textord"), w =
|
|
19046
|
+
}, e, "textord"), w = Wn(w), w.italic = 0, _ = w.width, p && (f += w.depth)), v = S.makeSpan(["accent-body"], [w]);
|
|
19040
19047
|
var x = n.label === "\\textcircled";
|
|
19041
19048
|
x && (v.classes.push("accent-full"), f = i.height);
|
|
19042
19049
|
var N = c;
|
|
@@ -19059,7 +19066,7 @@ var Z0 = (t, e) => {
|
|
|
19059
19066
|
}, pi = (t, e) => {
|
|
19060
19067
|
var r = t.isStretchy ? Nt.mathMLnode(t.label) : new O.MathNode("mo", [tt(t.label, t.mode)]), n = new O.MathNode("mover", [pe(t.base, e), r]);
|
|
19061
19068
|
return n.setAttribute("accent", "true"), n;
|
|
19062
|
-
},
|
|
19069
|
+
}, e1 = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((t) => "\\" + t).join("|"));
|
|
19063
19070
|
P({
|
|
19064
19071
|
type: "accent",
|
|
19065
19072
|
names: ["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring", "\\widecheck", "\\widehat", "\\widetilde", "\\overrightarrow", "\\overleftarrow", "\\Overrightarrow", "\\overleftrightarrow", "\\overgroup", "\\overlinesegment", "\\overleftharpoon", "\\overrightharpoon"],
|
|
@@ -19067,7 +19074,7 @@ P({
|
|
|
19067
19074
|
numArgs: 1
|
|
19068
19075
|
},
|
|
19069
19076
|
handler: (t, e) => {
|
|
19070
|
-
var r = Kr(e[0]), n = !
|
|
19077
|
+
var r = Kr(e[0]), n = !e1.test(t.funcName), a = !n || t.funcName === "\\widehat" || t.funcName === "\\widetilde" || t.funcName === "\\widecheck";
|
|
19071
19078
|
return {
|
|
19072
19079
|
type: "accent",
|
|
19073
19080
|
mode: t.parser.mode,
|
|
@@ -19260,13 +19267,13 @@ P({
|
|
|
19260
19267
|
return n;
|
|
19261
19268
|
}
|
|
19262
19269
|
});
|
|
19263
|
-
var
|
|
19270
|
+
var t1 = S.makeSpan;
|
|
19264
19271
|
function fi(t, e) {
|
|
19265
19272
|
var r = De(t.body, e, !0);
|
|
19266
|
-
return
|
|
19273
|
+
return t1([t.mclass], r, e);
|
|
19267
19274
|
}
|
|
19268
19275
|
function gi(t, e) {
|
|
19269
|
-
var r, n =
|
|
19276
|
+
var r, n = Ve(t.body, e);
|
|
19270
19277
|
return t.mclass === "minner" ? r = new O.MathNode("mpadded", n) : t.mclass === "mord" ? t.isCharacterBox ? (r = n[0], r.type = "mi") : r = new O.MathNode("mi", n) : (t.isCharacterBox ? (r = n[0], r.type = "mo") : r = new O.MathNode("mo", n), t.mclass === "mbin" ? (r.attributes.lspace = "0.22em", r.attributes.rspace = "0.22em") : t.mclass === "mpunct" ? (r.attributes.lspace = "0em", r.attributes.rspace = "0.17em") : t.mclass === "mopen" || t.mclass === "mclose" ? (r.attributes.lspace = "0em", r.attributes.rspace = "0em") : t.mclass === "minner" && (r.attributes.lspace = "0.0556em", r.attributes.width = "+0.1111em")), r;
|
|
19271
19278
|
}
|
|
19272
19279
|
P({
|
|
@@ -19287,7 +19294,7 @@ P({
|
|
|
19287
19294
|
mclass: "m" + n.slice(5),
|
|
19288
19295
|
// TODO(kevinb): don't prefix with 'm'
|
|
19289
19296
|
body: Oe(a),
|
|
19290
|
-
isCharacterBox:
|
|
19297
|
+
isCharacterBox: V.isCharacterBox(a)
|
|
19291
19298
|
};
|
|
19292
19299
|
},
|
|
19293
19300
|
htmlBuilder: fi,
|
|
@@ -19312,7 +19319,7 @@ P({
|
|
|
19312
19319
|
mode: r.mode,
|
|
19313
19320
|
mclass: Zr(e[0]),
|
|
19314
19321
|
body: Oe(e[1]),
|
|
19315
|
-
isCharacterBox:
|
|
19322
|
+
isCharacterBox: V.isCharacterBox(e[1])
|
|
19316
19323
|
};
|
|
19317
19324
|
}
|
|
19318
19325
|
});
|
|
@@ -19349,7 +19356,7 @@ P({
|
|
|
19349
19356
|
mode: r.mode,
|
|
19350
19357
|
mclass: o,
|
|
19351
19358
|
body: [u],
|
|
19352
|
-
isCharacterBox:
|
|
19359
|
+
isCharacterBox: V.isCharacterBox(u)
|
|
19353
19360
|
};
|
|
19354
19361
|
},
|
|
19355
19362
|
htmlBuilder: fi,
|
|
@@ -19378,11 +19385,11 @@ P({
|
|
|
19378
19385
|
return n.style.textShadow = "0.02em 0.01em 0.04px", n;
|
|
19379
19386
|
},
|
|
19380
19387
|
mathmlBuilder(t, e) {
|
|
19381
|
-
var r =
|
|
19388
|
+
var r = Ve(t.body, e), n = new O.MathNode("mstyle", r);
|
|
19382
19389
|
return n.setAttribute("style", "text-shadow: 0.02em 0.01em 0.04px"), n;
|
|
19383
19390
|
}
|
|
19384
19391
|
});
|
|
19385
|
-
var
|
|
19392
|
+
var r1 = {
|
|
19386
19393
|
">": "\\\\cdrightarrow",
|
|
19387
19394
|
"<": "\\\\cdleftarrow",
|
|
19388
19395
|
"=": "\\\\cdlongequal",
|
|
@@ -19395,9 +19402,9 @@ var ru = {
|
|
|
19395
19402
|
body: [],
|
|
19396
19403
|
mode: "math",
|
|
19397
19404
|
style: "display"
|
|
19398
|
-
}), ta = (t) => t.type === "textord" && t.text === "@",
|
|
19399
|
-
function
|
|
19400
|
-
var n =
|
|
19405
|
+
}), ta = (t) => t.type === "textord" && t.text === "@", n1 = (t, e) => (t.type === "mathord" || t.type === "atom") && t.text === e;
|
|
19406
|
+
function a1(t, e, r) {
|
|
19407
|
+
var n = r1[t];
|
|
19401
19408
|
switch (n) {
|
|
19402
19409
|
case "\\\\cdrightarrow":
|
|
19403
19410
|
case "\\\\cdleftarrow":
|
|
@@ -19434,7 +19441,7 @@ function au(t, e, r) {
|
|
|
19434
19441
|
};
|
|
19435
19442
|
}
|
|
19436
19443
|
}
|
|
19437
|
-
function
|
|
19444
|
+
function i1(t) {
|
|
19438
19445
|
var e = [];
|
|
19439
19446
|
for (t.gullet.beginGroup(), t.gullet.macros.set("\\cr", "\\\\\\relax"), t.gullet.beginGroup(); ; ) {
|
|
19440
19447
|
e.push(t.parseExpression(!1, "\\\\")), t.gullet.endGroup(), t.gullet.beginGroup();
|
|
@@ -19465,7 +19472,7 @@ function iu(t) {
|
|
|
19465
19472
|
}, !("=|.".indexOf(m) > -1)) if ("<>AV".indexOf(m) > -1)
|
|
19466
19473
|
for (var f = 0; f < 2; f++) {
|
|
19467
19474
|
for (var v = !0, w = u + 1; w < o.length; w++) {
|
|
19468
|
-
if (
|
|
19475
|
+
if (n1(o[w], m)) {
|
|
19469
19476
|
v = !1, u = w;
|
|
19470
19477
|
break;
|
|
19471
19478
|
}
|
|
@@ -19478,7 +19485,7 @@ function iu(t) {
|
|
|
19478
19485
|
}
|
|
19479
19486
|
else
|
|
19480
19487
|
throw new R('Expected one of "<>AV=|." after @', o[u]);
|
|
19481
|
-
var _ =
|
|
19488
|
+
var _ = a1(m, p, t), x = {
|
|
19482
19489
|
type: "styling",
|
|
19483
19490
|
body: [_],
|
|
19484
19491
|
mode: "math",
|
|
@@ -19591,7 +19598,7 @@ var bi = (t, e) => {
|
|
|
19591
19598
|
var r = De(t.body, e.withColor(t.color), !1);
|
|
19592
19599
|
return S.makeFragment(r);
|
|
19593
19600
|
}, vi = (t, e) => {
|
|
19594
|
-
var r =
|
|
19601
|
+
var r = Ve(t.body, e.withColor(t.color)), n = new O.MathNode("mstyle", r);
|
|
19595
19602
|
return n.setAttribute("mathcolor", t.color), n;
|
|
19596
19603
|
};
|
|
19597
19604
|
P({
|
|
@@ -19686,7 +19693,7 @@ var L0 = {
|
|
|
19686
19693
|
if (/^(?:[\\{}$&#^_]|EOF)$/.test(e))
|
|
19687
19694
|
throw new R("Expected a control sequence", t);
|
|
19688
19695
|
return e;
|
|
19689
|
-
},
|
|
19696
|
+
}, s1 = (t) => {
|
|
19690
19697
|
var e = t.gullet.popToken();
|
|
19691
19698
|
return e.text === "=" && (e = t.gullet.popToken(), e.text === " " && (e = t.gullet.popToken())), e;
|
|
19692
19699
|
}, wi = (t, e, r, n) => {
|
|
@@ -19784,7 +19791,7 @@ P({
|
|
|
19784
19791
|
funcName: r
|
|
19785
19792
|
} = t, n = yi(e.gullet.popToken());
|
|
19786
19793
|
e.gullet.consumeSpaces();
|
|
19787
|
-
var a =
|
|
19794
|
+
var a = s1(e);
|
|
19788
19795
|
return wi(e, n, a, r === "\\\\globallet"), {
|
|
19789
19796
|
type: "internal",
|
|
19790
19797
|
mode: e.mode
|
|
@@ -19825,13 +19832,13 @@ var lr = function(e, r, n) {
|
|
|
19825
19832
|
}, Ei = function(e, r, n) {
|
|
19826
19833
|
var a = r.havingBaseStyle(n), i = (1 - r.sizeMultiplier / a.sizeMultiplier) * r.fontMetrics().axisHeight;
|
|
19827
19834
|
e.classes.push("delimcenter"), e.style.top = I(i), e.height -= i, e.depth += i;
|
|
19828
|
-
},
|
|
19835
|
+
}, o1 = function(e, r, n, a, i, o) {
|
|
19829
19836
|
var c = S.makeSymbol(e, "Main-Regular", i, a), u = X0(c, r, a, o);
|
|
19830
19837
|
return n && Ei(u, a, r), u;
|
|
19831
|
-
},
|
|
19838
|
+
}, l1 = function(e, r, n, a) {
|
|
19832
19839
|
return S.makeSymbol(e, "Size" + r + "-Regular", n, a);
|
|
19833
19840
|
}, xi = function(e, r, n, a, i, o) {
|
|
19834
|
-
var c =
|
|
19841
|
+
var c = l1(e, r, i, a), u = X0(S.makeSpan(["delimsizing", "size" + r], [c], a), X.TEXT, a, o);
|
|
19835
19842
|
return n && Ei(u, a, X.TEXT), u;
|
|
19836
19843
|
}, g0 = function(e, r, n) {
|
|
19837
19844
|
var a;
|
|
@@ -19857,11 +19864,11 @@ var lr = function(e, r, n) {
|
|
|
19857
19864
|
}, B0 = 8e-3, Lr = {
|
|
19858
19865
|
type: "kern",
|
|
19859
19866
|
size: -1 * B0
|
|
19860
|
-
},
|
|
19867
|
+
}, c1 = ["|", "\\lvert", "\\rvert", "\\vert"], u1 = ["\\|", "\\lVert", "\\rVert", "\\Vert"], _i = function(e, r, n, a, i, o) {
|
|
19861
19868
|
var c, u, m, p, f = "", v = 0;
|
|
19862
19869
|
c = m = p = e, u = null;
|
|
19863
19870
|
var w = "Size1-Regular";
|
|
19864
|
-
e === "\\uparrow" ? m = p = "⏐" : e === "\\Uparrow" ? m = p = "‖" : e === "\\downarrow" ? c = m = "⏐" : e === "\\Downarrow" ? c = m = "‖" : e === "\\updownarrow" ? (c = "\\uparrow", m = "⏐", p = "\\downarrow") : e === "\\Updownarrow" ? (c = "\\Uparrow", m = "‖", p = "\\Downarrow") :
|
|
19871
|
+
e === "\\uparrow" ? m = p = "⏐" : e === "\\Uparrow" ? m = p = "‖" : e === "\\downarrow" ? c = m = "⏐" : e === "\\Downarrow" ? c = m = "‖" : e === "\\updownarrow" ? (c = "\\uparrow", m = "⏐", p = "\\downarrow") : e === "\\Updownarrow" ? (c = "\\Uparrow", m = "‖", p = "\\Downarrow") : V.contains(c1, e) ? (m = "∣", f = "vert", v = 333) : V.contains(u1, e) ? (m = "∥", f = "doublevert", v = 556) : e === "[" || e === "\\lbrack" ? (c = "⎡", m = "⎢", p = "⎣", w = "Size4-Regular", f = "lbrack", v = 667) : e === "]" || e === "\\rbrack" ? (c = "⎤", m = "⎥", p = "⎦", w = "Size4-Regular", f = "rbrack", v = 667) : e === "\\lfloor" || e === "⌊" ? (m = c = "⎢", p = "⎣", w = "Size4-Regular", f = "lfloor", v = 667) : e === "\\lceil" || e === "⌈" ? (c = "⎡", m = p = "⎢", w = "Size4-Regular", f = "lceil", v = 667) : e === "\\rfloor" || e === "⌋" ? (m = c = "⎥", p = "⎦", w = "Size4-Regular", f = "rfloor", v = 667) : e === "\\rceil" || e === "⌉" ? (c = "⎤", m = p = "⎥", w = "Size4-Regular", f = "rceil", v = 667) : e === "(" || e === "\\lparen" ? (c = "⎛", m = "⎜", p = "⎝", w = "Size4-Regular", f = "lparen", v = 875) : e === ")" || e === "\\rparen" ? (c = "⎞", m = "⎟", p = "⎠", w = "Size4-Regular", f = "rparen", v = 875) : e === "\\{" || e === "\\lbrace" ? (c = "⎧", u = "⎨", p = "⎩", m = "⎪", w = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (c = "⎫", u = "⎬", p = "⎭", m = "⎪", w = "Size4-Regular") : e === "\\lgroup" || e === "⟮" ? (c = "⎧", p = "⎩", m = "⎪", w = "Size4-Regular") : e === "\\rgroup" || e === "⟯" ? (c = "⎫", p = "⎭", m = "⎪", w = "Size4-Regular") : e === "\\lmoustache" || e === "⎰" ? (c = "⎧", p = "⎭", m = "⎪", w = "Size4-Regular") : (e === "\\rmoustache" || e === "⎱") && (c = "⎫", p = "⎩", m = "⎪", w = "Size4-Regular");
|
|
19865
19872
|
var _ = lr(c, w, i), x = _.height + _.depth, N = lr(m, w, i), M = N.height + N.depth, k = lr(p, w, i), D = k.height + k.depth, L = 0, F = 1;
|
|
19866
19873
|
if (u !== null) {
|
|
19867
19874
|
var q = lr(u, w, i);
|
|
@@ -19905,7 +19912,7 @@ var lr = function(e, r, n) {
|
|
|
19905
19912
|
preserveAspectRatio: "xMinYMin slice"
|
|
19906
19913
|
});
|
|
19907
19914
|
return S.makeSvgSpan(["hide-tail"], [u], i);
|
|
19908
|
-
},
|
|
19915
|
+
}, d1 = function(e, r) {
|
|
19909
19916
|
var n = r.havingBaseSizing(), a = Ti("\\surd", e * n.sizeMultiplier, ki, n), i = n.sizeMultiplier, o = Math.max(0, r.minRuleThickness - r.fontMetrics().sqrtRuleThickness), c, u = 0, m = 0, p = 0, f;
|
|
19910
19917
|
return a.type === "small" ? (p = 1e3 + 1e3 * o + v0, e < 1 ? i = 1 : e < 1.4 && (i = 0.7), u = (1 + o + y0) / i, m = (1 + o) / i, c = w0("sqrtMain", u, p, o, r), c.style.minWidth = "0.853em", f = 0.833 / i) : a.type === "large" ? (p = (1e3 + v0) * ur[a.size], m = (ur[a.size] + o) / i, u = (ur[a.size] + o + y0) / i, c = w0("sqrtSize" + a.size, u, p, o, r), c.style.minWidth = "1.02em", f = 1 / i) : (u = e + o + y0, m = e + o, p = Math.floor(1e3 * e + o) + v0, c = w0("sqrtTall", u, p, o, r), c.style.minWidth = "0.742em", f = 1.056), c.height = m, c.style.height = I(u), {
|
|
19911
19918
|
span: c,
|
|
@@ -19916,13 +19923,13 @@ var lr = function(e, r, n) {
|
|
|
19916
19923
|
// have thicker rules.
|
|
19917
19924
|
ruleWidth: (r.fontMetrics().sqrtRuleThickness + o) * i
|
|
19918
19925
|
};
|
|
19919
|
-
}, Si = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "\\surd"],
|
|
19920
|
-
if (e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle"),
|
|
19926
|
+
}, Si = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "\\surd"], m1 = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱"], Ni = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], ur = [0, 1.2, 1.8, 2.4, 3], h1 = function(e, r, n, a, i) {
|
|
19927
|
+
if (e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle"), V.contains(Si, e) || V.contains(Ni, e))
|
|
19921
19928
|
return xi(e, r, !1, n, a, i);
|
|
19922
|
-
if (
|
|
19929
|
+
if (V.contains(m1, e))
|
|
19923
19930
|
return _i(e, ur[r], !1, n, a, i);
|
|
19924
19931
|
throw new R("Illegal delimiter: '" + e + "'");
|
|
19925
|
-
},
|
|
19932
|
+
}, p1 = [{
|
|
19926
19933
|
type: "small",
|
|
19927
19934
|
style: X.SCRIPTSCRIPT
|
|
19928
19935
|
}, {
|
|
@@ -19943,7 +19950,7 @@ var lr = function(e, r, n) {
|
|
|
19943
19950
|
}, {
|
|
19944
19951
|
type: "large",
|
|
19945
19952
|
size: 4
|
|
19946
|
-
}],
|
|
19953
|
+
}], f1 = [{
|
|
19947
19954
|
type: "small",
|
|
19948
19955
|
style: X.SCRIPTSCRIPT
|
|
19949
19956
|
}, {
|
|
@@ -19977,7 +19984,7 @@ var lr = function(e, r, n) {
|
|
|
19977
19984
|
size: 4
|
|
19978
19985
|
}, {
|
|
19979
19986
|
type: "stack"
|
|
19980
|
-
}],
|
|
19987
|
+
}], g1 = function(e) {
|
|
19981
19988
|
if (e.type === "small")
|
|
19982
19989
|
return "Main-Regular";
|
|
19983
19990
|
if (e.type === "large")
|
|
@@ -19987,7 +19994,7 @@ var lr = function(e, r, n) {
|
|
|
19987
19994
|
throw new Error("Add support for delim type '" + e.type + "' here.");
|
|
19988
19995
|
}, Ti = function(e, r, n, a) {
|
|
19989
19996
|
for (var i = Math.min(2, 3 - a.style.size), o = i; o < n.length && n[o].type !== "stack"; o++) {
|
|
19990
|
-
var c = lr(e,
|
|
19997
|
+
var c = lr(e, g1(n[o]), "math"), u = c.height + c.depth;
|
|
19991
19998
|
if (n[o].type === "small") {
|
|
19992
19999
|
var m = a.havingBaseStyle(n[o].style);
|
|
19993
20000
|
u *= m.sizeMultiplier;
|
|
@@ -19999,10 +20006,10 @@ var lr = function(e, r, n) {
|
|
|
19999
20006
|
}, Mi = function(e, r, n, a, i, o) {
|
|
20000
20007
|
e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle");
|
|
20001
20008
|
var c;
|
|
20002
|
-
|
|
20009
|
+
V.contains(Ni, e) ? c = p1 : V.contains(Si, e) ? c = ki : c = f1;
|
|
20003
20010
|
var u = Ti(e, r, c, a);
|
|
20004
|
-
return u.type === "small" ?
|
|
20005
|
-
},
|
|
20011
|
+
return u.type === "small" ? o1(e, u.style, n, a, i, o) : u.type === "large" ? xi(e, u.size, n, a, i, o) : _i(e, r, n, a, i, o);
|
|
20012
|
+
}, b1 = function(e, r, n, a, i, o) {
|
|
20006
20013
|
var c = a.fontMetrics().axisHeight * a.sizeMultiplier, u = 901, m = 5 / a.fontMetrics().ptPerEm, p = Math.max(r - c, n + c), f = Math.max(
|
|
20007
20014
|
// In real TeX, calculations are done using integral values which are
|
|
20008
20015
|
// 65536 per pt, or 655360 per em. So, the division here truncates in
|
|
@@ -20018,11 +20025,11 @@ var lr = function(e, r, n) {
|
|
|
20018
20025
|
);
|
|
20019
20026
|
return Mi(e, f, !0, a, i, o);
|
|
20020
20027
|
}, xt = {
|
|
20021
|
-
sqrtImage:
|
|
20022
|
-
sizedDelim:
|
|
20028
|
+
sqrtImage: d1,
|
|
20029
|
+
sizedDelim: h1,
|
|
20023
20030
|
sizeToMaxHeight: ur,
|
|
20024
20031
|
customSizedDelim: Mi,
|
|
20025
|
-
leftRightDelim:
|
|
20032
|
+
leftRightDelim: b1
|
|
20026
20033
|
}, ra = {
|
|
20027
20034
|
"\\bigl": {
|
|
20028
20035
|
mclass: "mopen",
|
|
@@ -20088,10 +20095,10 @@ var lr = function(e, r, n) {
|
|
|
20088
20095
|
mclass: "mord",
|
|
20089
20096
|
size: 4
|
|
20090
20097
|
}
|
|
20091
|
-
},
|
|
20098
|
+
}, v1 = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "<", ">", "\\langle", "⟨", "\\rangle", "⟩", "\\lt", "\\gt", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱", "/", "\\backslash", "|", "\\vert", "\\|", "\\Vert", "\\uparrow", "\\Uparrow", "\\downarrow", "\\Downarrow", "\\updownarrow", "\\Updownarrow", "."];
|
|
20092
20099
|
function Xr(t, e) {
|
|
20093
20100
|
var r = Yr(t);
|
|
20094
|
-
if (r &&
|
|
20101
|
+
if (r && V.contains(v1, r.text))
|
|
20095
20102
|
return r;
|
|
20096
20103
|
throw r ? new R("Invalid delimiter '" + r.text + "' after '" + e.funcName + "'", t) : new R("Invalid delimiter type '" + t.type + "'", t);
|
|
20097
20104
|
}
|
|
@@ -20190,7 +20197,7 @@ P({
|
|
|
20190
20197
|
},
|
|
20191
20198
|
mathmlBuilder: (t, e) => {
|
|
20192
20199
|
na(t);
|
|
20193
|
-
var r =
|
|
20200
|
+
var r = Ve(t.body, e);
|
|
20194
20201
|
if (t.left !== ".") {
|
|
20195
20202
|
var n = new O.MathNode("mo", [tt(t.left, t.mode)]);
|
|
20196
20203
|
n.setAttribute("fence", "true"), r.unshift(n);
|
|
@@ -20199,7 +20206,7 @@ P({
|
|
|
20199
20206
|
var a = new O.MathNode("mo", [tt(t.right, t.mode)]);
|
|
20200
20207
|
a.setAttribute("fence", "true"), t.rightColor && a.setAttribute("mathcolor", t.rightColor), r.push(a);
|
|
20201
20208
|
}
|
|
20202
|
-
return
|
|
20209
|
+
return W0(r);
|
|
20203
20210
|
}
|
|
20204
20211
|
});
|
|
20205
20212
|
P({
|
|
@@ -20239,7 +20246,7 @@ P({
|
|
|
20239
20246
|
}
|
|
20240
20247
|
});
|
|
20241
20248
|
var Q0 = (t, e) => {
|
|
20242
|
-
var r = S.wrapFragment(oe(t.body, e), e), n = t.label.slice(1), a = e.sizeMultiplier, i, o = 0, c =
|
|
20249
|
+
var r = S.wrapFragment(oe(t.body, e), e), n = t.label.slice(1), a = e.sizeMultiplier, i, o = 0, c = V.isCharacterBox(t.body);
|
|
20243
20250
|
if (n === "sout")
|
|
20244
20251
|
i = S.makeSpan(["stretchy", "sout"]), i.height = e.fontMetrics().defaultRuleThickness / a, o = -0.5 * e.fontMetrics().xHeight;
|
|
20245
20252
|
else if (n === "phase") {
|
|
@@ -20589,11 +20596,11 @@ var ft = function(e, r) {
|
|
|
20589
20596
|
number: 3,
|
|
20590
20597
|
unit: "ex"
|
|
20591
20598
|
}, r) : 12 * f, x = 3 * f, N = e.arraystretch * _, M = 0.7 * N, k = 0.3 * N, D = 0;
|
|
20592
|
-
function L(
|
|
20593
|
-
for (var Yt = 0; Yt <
|
|
20599
|
+
function L(Vt) {
|
|
20600
|
+
for (var Yt = 0; Yt < Vt.length; ++Yt)
|
|
20594
20601
|
Yt > 0 && (D += 0.25), m.push({
|
|
20595
20602
|
pos: D,
|
|
20596
|
-
isDashed:
|
|
20603
|
+
isDashed: Vt[Yt]
|
|
20597
20604
|
});
|
|
20598
20605
|
}
|
|
20599
20606
|
for (L(o[0]), n = 0; n < e.body.length; ++n) {
|
|
@@ -20608,7 +20615,7 @@ var ft = function(e, r) {
|
|
|
20608
20615
|
Ee && (he = Ne(Ee, r), he > 0 && (he += k, $ < he && ($ = he), he = 0)), e.addJot && ($ += x), Q.height = q, Q.depth = $, D += q, Q.pos = D, D += $ + he, u[n] = Q, L(o[n + 1]);
|
|
20609
20616
|
}
|
|
20610
20617
|
var le = D / 2 + r.fontMetrics().axisHeight, be = e.cols || [], ne = [], ve, Le, Pe = [];
|
|
20611
|
-
if (e.tags && e.tags.some((
|
|
20618
|
+
if (e.tags && e.tags.some((Vt) => Vt))
|
|
20612
20619
|
for (n = 0; n < i; ++n) {
|
|
20613
20620
|
var ie = u[n], Te = ie.pos - le, xe = e.tags[n], ye = void 0;
|
|
20614
20621
|
xe === !0 ? ye = S.makeSpan(["eqn-num"], [], r) : xe === !1 ? ye = S.makeSpan([], [], r) : ye = S.makeSpan([], De(xe, r, !0), r), ye.depth = ie.depth, ye.height = ie.height, Pe.push({
|
|
@@ -20636,7 +20643,7 @@ var ft = function(e, r) {
|
|
|
20636
20643
|
}
|
|
20637
20644
|
if (!(a >= c)) {
|
|
20638
20645
|
var ot = void 0;
|
|
20639
|
-
(a > 0 || e.hskipBeforeAndAfter) && (ot =
|
|
20646
|
+
(a > 0 || e.hskipBeforeAndAfter) && (ot = V.deflt(ce.pregap, v), ot !== 0 && (ve = S.makeSpan(["arraycolsep"], []), ve.style.width = I(ot), ne.push(ve)));
|
|
20640
20647
|
var nt = [];
|
|
20641
20648
|
for (n = 0; n < i; ++n) {
|
|
20642
20649
|
var Pt = u[n], at = Pt[a];
|
|
@@ -20652,7 +20659,7 @@ var ft = function(e, r) {
|
|
|
20652
20659
|
nt = S.makeVList({
|
|
20653
20660
|
positionType: "individualShift",
|
|
20654
20661
|
children: nt
|
|
20655
|
-
}, r), nt = S.makeSpan(["col-align-" + (ce.align || "c")], [nt]), ne.push(nt), (a < c - 1 || e.hskipBeforeAndAfter) && (ot =
|
|
20662
|
+
}, r), nt = S.makeSpan(["col-align-" + (ce.align || "c")], [nt]), ne.push(nt), (a < c - 1 || e.hskipBeforeAndAfter) && (ot = V.deflt(ce.postgap, v), ot !== 0 && (ve = S.makeSpan(["arraycolsep"], []), ve.style.width = I(ot), ne.push(ve)));
|
|
20656
20663
|
}
|
|
20657
20664
|
}
|
|
20658
20665
|
if (u = S.makeSpan(["mtable"], ne), m.length > 0) {
|
|
@@ -20661,15 +20668,15 @@ var ft = function(e, r) {
|
|
|
20661
20668
|
elem: u,
|
|
20662
20669
|
shift: 0
|
|
20663
20670
|
}]; m.length > 0; ) {
|
|
20664
|
-
var ct = m.pop(),
|
|
20671
|
+
var ct = m.pop(), Wt = ct.pos - le;
|
|
20665
20672
|
ct.isDashed ? lt.push({
|
|
20666
20673
|
type: "elem",
|
|
20667
20674
|
elem: ue,
|
|
20668
|
-
shift:
|
|
20675
|
+
shift: Wt
|
|
20669
20676
|
}) : lt.push({
|
|
20670
20677
|
type: "elem",
|
|
20671
20678
|
elem: ir,
|
|
20672
|
-
shift:
|
|
20679
|
+
shift: Wt
|
|
20673
20680
|
});
|
|
20674
20681
|
}
|
|
20675
20682
|
u = S.makeVList({
|
|
@@ -20684,7 +20691,7 @@ var ft = function(e, r) {
|
|
|
20684
20691
|
children: Pe
|
|
20685
20692
|
}, r);
|
|
20686
20693
|
return sr = S.makeSpan(["tag"], [sr], r), S.makeFragment([u, sr]);
|
|
20687
|
-
},
|
|
20694
|
+
}, y1 = {
|
|
20688
20695
|
c: "center ",
|
|
20689
20696
|
l: "left ",
|
|
20690
20697
|
r: "right "
|
|
@@ -20701,7 +20708,7 @@ var ft = function(e, r) {
|
|
|
20701
20708
|
var _ = e.cols, x = "", N = !1, M = 0, k = _.length;
|
|
20702
20709
|
_[0].type === "separator" && (v += "top ", M = 1), _[_.length - 1].type === "separator" && (v += "bottom ", k -= 1);
|
|
20703
20710
|
for (var D = M; D < k; D++)
|
|
20704
|
-
_[D].type === "align" ? (w +=
|
|
20711
|
+
_[D].type === "align" ? (w += y1[_[D].align], N && (x += "none "), N = !0) : _[D].type === "separator" && N && (x += _[D].separator === "|" ? "solid " : "dashed ", N = !1);
|
|
20705
20712
|
p.setAttribute("columnalign", w.trim()), /[sd]/.test(x) && p.setAttribute("columnlines", x.trim());
|
|
20706
20713
|
}
|
|
20707
20714
|
if (e.colSeparationType === "align") {
|
|
@@ -20946,7 +20953,7 @@ pt({
|
|
|
20946
20953
|
numArgs: 0
|
|
20947
20954
|
},
|
|
20948
20955
|
handler(t) {
|
|
20949
|
-
|
|
20956
|
+
V.contains(["gather", "gather*"], t.envName) && Qr(t);
|
|
20950
20957
|
var e = {
|
|
20951
20958
|
cols: [{
|
|
20952
20959
|
type: "align",
|
|
@@ -21000,7 +21007,7 @@ pt({
|
|
|
21000
21007
|
numArgs: 0
|
|
21001
21008
|
},
|
|
21002
21009
|
handler(t) {
|
|
21003
|
-
return Qr(t),
|
|
21010
|
+
return Qr(t), i1(t.parser);
|
|
21004
21011
|
},
|
|
21005
21012
|
htmlBuilder: ft,
|
|
21006
21013
|
mathmlBuilder: gt
|
|
@@ -21122,7 +21129,7 @@ P({
|
|
|
21122
21129
|
handler: (t, e) => {
|
|
21123
21130
|
var {
|
|
21124
21131
|
parser: r
|
|
21125
|
-
} = t, n = e[0], a =
|
|
21132
|
+
} = t, n = e[0], a = V.isCharacterBox(n);
|
|
21126
21133
|
return {
|
|
21127
21134
|
type: "mclass",
|
|
21128
21135
|
mode: r.mode,
|
|
@@ -21247,7 +21254,7 @@ var Di = (t, e) => {
|
|
|
21247
21254
|
var u = new O.MathNode("mo", [new O.TextNode(t.rightDelim.replace("\\", ""))]);
|
|
21248
21255
|
u.setAttribute("fence", "true"), o.push(u);
|
|
21249
21256
|
}
|
|
21250
|
-
return
|
|
21257
|
+
return W0(o);
|
|
21251
21258
|
}
|
|
21252
21259
|
return r;
|
|
21253
21260
|
};
|
|
@@ -21540,7 +21547,7 @@ var Li = (t, e) => {
|
|
|
21540
21547
|
}, e);
|
|
21541
21548
|
}
|
|
21542
21549
|
return S.makeSpan(["mord", a.isOver ? "mover" : "munder"], [c], e);
|
|
21543
|
-
},
|
|
21550
|
+
}, w1 = (t, e) => {
|
|
21544
21551
|
var r = Nt.mathMLnode(t.label);
|
|
21545
21552
|
return new O.MathNode(t.isOver ? "mover" : "munder", [pe(t.base, e), r]);
|
|
21546
21553
|
};
|
|
@@ -21564,7 +21571,7 @@ P({
|
|
|
21564
21571
|
};
|
|
21565
21572
|
},
|
|
21566
21573
|
htmlBuilder: Li,
|
|
21567
|
-
mathmlBuilder:
|
|
21574
|
+
mathmlBuilder: w1
|
|
21568
21575
|
});
|
|
21569
21576
|
P({
|
|
21570
21577
|
type: "href",
|
|
@@ -21660,7 +21667,7 @@ P({
|
|
|
21660
21667
|
return S.makeFragment(r);
|
|
21661
21668
|
},
|
|
21662
21669
|
mathmlBuilder(t, e) {
|
|
21663
|
-
return new O.MathNode("mrow",
|
|
21670
|
+
return new O.MathNode("mrow", Ve(t.body, e));
|
|
21664
21671
|
}
|
|
21665
21672
|
});
|
|
21666
21673
|
P({
|
|
@@ -22002,7 +22009,7 @@ P({
|
|
|
22002
22009
|
});
|
|
22003
22010
|
var Bi = (t, e, r, n, a, i, o) => {
|
|
22004
22011
|
t = S.makeSpan([], [t]);
|
|
22005
|
-
var c = r &&
|
|
22012
|
+
var c = r && V.isCharacterBox(r), u, m;
|
|
22006
22013
|
if (e) {
|
|
22007
22014
|
var p = oe(e, n.havingStyle(a.sup()), n);
|
|
22008
22015
|
m = {
|
|
@@ -22100,7 +22107,7 @@ var Bi = (t, e, r, n, a, i, o) => {
|
|
|
22100
22107
|
var r, n, a = !1, i;
|
|
22101
22108
|
t.type === "supsub" ? (r = t.sup, n = t.sub, i = re(t.base, "op"), a = !0) : i = re(t, "op");
|
|
22102
22109
|
var o = e.style, c = !1;
|
|
22103
|
-
o.size === X.DISPLAY.size && i.symbol && !
|
|
22110
|
+
o.size === X.DISPLAY.size && i.symbol && !V.contains(zi, i.name) && (c = !0);
|
|
22104
22111
|
var u;
|
|
22105
22112
|
if (i.symbol) {
|
|
22106
22113
|
var m = c ? "Size2-Regular" : "Size1-Regular", p = "";
|
|
@@ -22132,16 +22139,16 @@ var Bi = (t, e, r, n, a, i, o) => {
|
|
|
22132
22139
|
}, fr = (t, e) => {
|
|
22133
22140
|
var r;
|
|
22134
22141
|
if (t.symbol)
|
|
22135
|
-
r = new Qe("mo", [tt(t.name, t.mode)]),
|
|
22142
|
+
r = new Qe("mo", [tt(t.name, t.mode)]), V.contains(zi, t.name) && r.setAttribute("largeop", "false");
|
|
22136
22143
|
else if (t.body)
|
|
22137
|
-
r = new Qe("mo",
|
|
22144
|
+
r = new Qe("mo", Ve(t.body, e));
|
|
22138
22145
|
else {
|
|
22139
22146
|
r = new Qe("mi", [new cr(t.name.slice(1))]);
|
|
22140
22147
|
var n = new Qe("mo", [tt("", "text")]);
|
|
22141
22148
|
t.parentIsSupSub ? r = new Qe("mrow", [r, n]) : r = di([r, n]);
|
|
22142
22149
|
}
|
|
22143
22150
|
return r;
|
|
22144
|
-
},
|
|
22151
|
+
}, E1 = {
|
|
22145
22152
|
"∏": "\\prod",
|
|
22146
22153
|
"∐": "\\coprod",
|
|
22147
22154
|
"∑": "\\sum",
|
|
@@ -22166,7 +22173,7 @@ P({
|
|
|
22166
22173
|
parser: r,
|
|
22167
22174
|
funcName: n
|
|
22168
22175
|
} = t, a = n;
|
|
22169
|
-
return a.length === 1 && (a =
|
|
22176
|
+
return a.length === 1 && (a = E1[a]), {
|
|
22170
22177
|
type: "op",
|
|
22171
22178
|
mode: r.mode,
|
|
22172
22179
|
limits: !0,
|
|
@@ -22201,7 +22208,7 @@ P({
|
|
|
22201
22208
|
htmlBuilder: nr,
|
|
22202
22209
|
mathmlBuilder: fr
|
|
22203
22210
|
});
|
|
22204
|
-
var
|
|
22211
|
+
var x1 = {
|
|
22205
22212
|
"∫": "\\int",
|
|
22206
22213
|
"∬": "\\iint",
|
|
22207
22214
|
"∭": "\\iiint",
|
|
@@ -22266,7 +22273,7 @@ P({
|
|
|
22266
22273
|
parser: e,
|
|
22267
22274
|
funcName: r
|
|
22268
22275
|
} = t, n = r;
|
|
22269
|
-
return n.length === 1 && (n =
|
|
22276
|
+
return n.length === 1 && (n = x1[n]), {
|
|
22270
22277
|
type: "op",
|
|
22271
22278
|
mode: e.mode,
|
|
22272
22279
|
limits: !1,
|
|
@@ -22298,8 +22305,8 @@ var Pi = (t, e) => {
|
|
|
22298
22305
|
} else
|
|
22299
22306
|
o = S.makeSpan(["mop"], [], e);
|
|
22300
22307
|
return a ? Bi(o, r, n, e, e.style, 0, 0) : o;
|
|
22301
|
-
},
|
|
22302
|
-
for (var r =
|
|
22308
|
+
}, _1 = (t, e) => {
|
|
22309
|
+
for (var r = Ve(t.body, e.withFont("mathrm")), n = !0, a = 0; a < r.length; a++) {
|
|
22303
22310
|
var i = r[a];
|
|
22304
22311
|
if (!(i instanceof O.SpaceNode)) if (i instanceof O.MathNode)
|
|
22305
22312
|
switch (i.type) {
|
|
@@ -22351,7 +22358,7 @@ P({
|
|
|
22351
22358
|
};
|
|
22352
22359
|
},
|
|
22353
22360
|
htmlBuilder: Pi,
|
|
22354
|
-
mathmlBuilder:
|
|
22361
|
+
mathmlBuilder: _1
|
|
22355
22362
|
});
|
|
22356
22363
|
h("\\operatorname", "\\@ifstar\\operatornamewithlimits\\operatorname@");
|
|
22357
22364
|
Kt({
|
|
@@ -22427,7 +22434,7 @@ P({
|
|
|
22427
22434
|
return S.makeFragment(r);
|
|
22428
22435
|
},
|
|
22429
22436
|
mathmlBuilder: (t, e) => {
|
|
22430
|
-
var r =
|
|
22437
|
+
var r = Ve(t.body, e);
|
|
22431
22438
|
return new O.MathNode("mphantom", r);
|
|
22432
22439
|
}
|
|
22433
22440
|
});
|
|
@@ -22462,7 +22469,7 @@ P({
|
|
|
22462
22469
|
}, e), S.makeSpan(["mord"], [r], e);
|
|
22463
22470
|
},
|
|
22464
22471
|
mathmlBuilder: (t, e) => {
|
|
22465
|
-
var r =
|
|
22472
|
+
var r = Ve(Oe(t.body), e), n = new O.MathNode("mphantom", r), a = new O.MathNode("mpadded", [n]);
|
|
22466
22473
|
return a.setAttribute("height", "0px"), a.setAttribute("depth", "0px"), a;
|
|
22467
22474
|
}
|
|
22468
22475
|
});
|
|
@@ -22488,7 +22495,7 @@ P({
|
|
|
22488
22495
|
return S.makeSpan(["mord", "rlap"], [r, n], e);
|
|
22489
22496
|
},
|
|
22490
22497
|
mathmlBuilder: (t, e) => {
|
|
22491
|
-
var r =
|
|
22498
|
+
var r = Ve(Oe(t.body), e), n = new O.MathNode("mphantom", r), a = new O.MathNode("mpadded", [n]);
|
|
22492
22499
|
return a.setAttribute("width", "0px"), a;
|
|
22493
22500
|
}
|
|
22494
22501
|
});
|
|
@@ -22582,7 +22589,7 @@ function Fi(t, e, r) {
|
|
|
22582
22589
|
}
|
|
22583
22590
|
return S.makeFragment(n);
|
|
22584
22591
|
}
|
|
22585
|
-
var ua = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"],
|
|
22592
|
+
var ua = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"], S1 = (t, e) => {
|
|
22586
22593
|
var r = e.havingSize(t.size);
|
|
22587
22594
|
return Fi(t.body, r, e);
|
|
22588
22595
|
};
|
|
@@ -22607,9 +22614,9 @@ P({
|
|
|
22607
22614
|
body: i
|
|
22608
22615
|
};
|
|
22609
22616
|
},
|
|
22610
|
-
htmlBuilder:
|
|
22617
|
+
htmlBuilder: S1,
|
|
22611
22618
|
mathmlBuilder: (t, e) => {
|
|
22612
|
-
var r = e.havingSize(t.size), n =
|
|
22619
|
+
var r = e.havingSize(t.size), n = Ve(t.body, r), a = new O.MathNode("mstyle", n);
|
|
22613
22620
|
return a.setAttribute("mathsize", I(r.sizeMultiplier)), a;
|
|
22614
22621
|
}
|
|
22615
22622
|
});
|
|
@@ -22775,7 +22782,7 @@ P({
|
|
|
22775
22782
|
return Fi(t.body, n, e);
|
|
22776
22783
|
},
|
|
22777
22784
|
mathmlBuilder(t, e) {
|
|
22778
|
-
var r = da[t.style], n = e.havingStyle(r), a =
|
|
22785
|
+
var r = da[t.style], n = e.havingStyle(r), a = Ve(t.body, n), i = new O.MathNode("mstyle", a), o = {
|
|
22779
22786
|
display: ["0", "true"],
|
|
22780
22787
|
text: ["0", "false"],
|
|
22781
22788
|
script: ["1", "false"],
|
|
@@ -22784,7 +22791,7 @@ P({
|
|
|
22784
22791
|
return i.setAttribute("scriptlevel", c[0]), i.setAttribute("displaystyle", c[1]), i;
|
|
22785
22792
|
}
|
|
22786
22793
|
});
|
|
22787
|
-
var
|
|
22794
|
+
var N1 = function(e, r) {
|
|
22788
22795
|
var n = e.base;
|
|
22789
22796
|
if (n)
|
|
22790
22797
|
if (n.type === "op") {
|
|
@@ -22795,7 +22802,7 @@ var Nu = function(e, r) {
|
|
|
22795
22802
|
return i ? Pi : null;
|
|
22796
22803
|
} else {
|
|
22797
22804
|
if (n.type === "accent")
|
|
22798
|
-
return
|
|
22805
|
+
return V.isCharacterBox(n.base) ? Z0 : null;
|
|
22799
22806
|
if (n.type === "horizBrace") {
|
|
22800
22807
|
var o = !e.sub;
|
|
22801
22808
|
return o === n.isOver ? Li : null;
|
|
@@ -22807,14 +22814,14 @@ var Nu = function(e, r) {
|
|
|
22807
22814
|
Kt({
|
|
22808
22815
|
type: "supsub",
|
|
22809
22816
|
htmlBuilder(t, e) {
|
|
22810
|
-
var r =
|
|
22817
|
+
var r = N1(t, e);
|
|
22811
22818
|
if (r)
|
|
22812
22819
|
return r(t, e);
|
|
22813
22820
|
var {
|
|
22814
22821
|
base: n,
|
|
22815
22822
|
sup: a,
|
|
22816
22823
|
sub: i
|
|
22817
|
-
} = t, o = oe(n, e), c, u, m = e.fontMetrics(), p = 0, f = 0, v = n &&
|
|
22824
|
+
} = t, o = oe(n, e), c, u, m = e.fontMetrics(), p = 0, f = 0, v = n && V.isCharacterBox(n);
|
|
22818
22825
|
if (a) {
|
|
22819
22826
|
var w = e.havingStyle(e.style.sup());
|
|
22820
22827
|
c = oe(a, w, e), v || (p = o.height - w.fontMetrics().supDrop * w.sizeMultiplier / e.sizeMultiplier);
|
|
@@ -22914,7 +22921,7 @@ Kt({
|
|
|
22914
22921
|
mathmlBuilder(t, e) {
|
|
22915
22922
|
var r = new O.MathNode("mo", [tt(t.text, t.mode)]);
|
|
22916
22923
|
if (t.family === "bin") {
|
|
22917
|
-
var n =
|
|
22924
|
+
var n = V0(t, e);
|
|
22918
22925
|
n === "bold-italic" && r.setAttribute("mathvariant", n);
|
|
22919
22926
|
} else t.family === "punct" ? r.setAttribute("separator", "true") : (t.family === "open" || t.family === "close") && r.setAttribute("stretchy", "false");
|
|
22920
22927
|
return r;
|
|
@@ -22931,7 +22938,7 @@ Kt({
|
|
|
22931
22938
|
return S.makeOrd(t, e, "mathord");
|
|
22932
22939
|
},
|
|
22933
22940
|
mathmlBuilder(t, e) {
|
|
22934
|
-
var r = new O.MathNode("mi", [tt(t.text, t.mode, e)]), n =
|
|
22941
|
+
var r = new O.MathNode("mi", [tt(t.text, t.mode, e)]), n = V0(t, e) || "italic";
|
|
22935
22942
|
return n !== Ui[r.type] && r.setAttribute("mathvariant", n), r;
|
|
22936
22943
|
}
|
|
22937
22944
|
});
|
|
@@ -22941,7 +22948,7 @@ Kt({
|
|
|
22941
22948
|
return S.makeOrd(t, e, "textord");
|
|
22942
22949
|
},
|
|
22943
22950
|
mathmlBuilder(t, e) {
|
|
22944
|
-
var r = tt(t.text, t.mode, e), n =
|
|
22951
|
+
var r = tt(t.text, t.mode, e), n = V0(t, e) || "normal", a;
|
|
22945
22952
|
return t.mode === "text" ? a = new O.MathNode("mtext", [r]) : /[0-9]/.test(t.text) ? a = new O.MathNode("mn", [r]) : t.text === "\\prime" ? a = new O.MathNode("mo", [r]) : a = new O.MathNode("mi", [r]), n !== Ui[a.type] && a.setAttribute("mathvariant", n), a;
|
|
22946
22953
|
}
|
|
22947
22954
|
});
|
|
@@ -23007,12 +23014,12 @@ var ha = {
|
|
|
23007
23014
|
}, pa = {
|
|
23008
23015
|
"\\textbf": "textbf",
|
|
23009
23016
|
"\\textmd": "textmd"
|
|
23010
|
-
},
|
|
23017
|
+
}, k1 = {
|
|
23011
23018
|
"\\textit": "textit",
|
|
23012
23019
|
"\\textup": "textup"
|
|
23013
23020
|
}, fa = (t, e) => {
|
|
23014
23021
|
var r = t.font;
|
|
23015
|
-
return r ? ha[r] ? e.withTextFontFamily(ha[r]) : pa[r] ? e.withTextFontWeight(pa[r]) : e.withTextFontShape(
|
|
23022
|
+
return r ? ha[r] ? e.withTextFontFamily(ha[r]) : pa[r] ? e.withTextFontWeight(pa[r]) : e.withTextFontShape(k1[r]) : e;
|
|
23016
23023
|
};
|
|
23017
23024
|
P({
|
|
23018
23025
|
type: "text",
|
|
@@ -23158,22 +23165,22 @@ P({
|
|
|
23158
23165
|
}
|
|
23159
23166
|
});
|
|
23160
23167
|
var ga = (t) => t.body.replace(/ /g, t.star ? "␣" : " "), Rt = ci, qi = `[ \r
|
|
23161
|
-
]`,
|
|
23168
|
+
]`, T1 = "\\\\[a-zA-Z@]+", M1 = "\\\\[^\uD800-\uDFFF]", A1 = "(" + T1 + ")" + qi + "*", O1 = `\\\\(
|
|
23162
23169
|
|[ \r ]+
|
|
23163
|
-
?)[ \r ]*`, z0 = "[̀-ͯ]",
|
|
23164
|
-
(
|
|
23170
|
+
?)[ \r ]*`, z0 = "[̀-ͯ]", R1 = new RegExp(z0 + "+$"), C1 = "(" + qi + "+)|" + // whitespace
|
|
23171
|
+
(O1 + "|") + // \whitespace
|
|
23165
23172
|
"([!-\\[\\]-‧-豈-]" + // single codepoint
|
|
23166
23173
|
(z0 + "*") + // ...plus accents
|
|
23167
23174
|
"|[\uD800-\uDBFF][\uDC00-\uDFFF]" + // surrogate pair
|
|
23168
23175
|
(z0 + "*") + // ...plus accents
|
|
23169
23176
|
"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5" + // \verb unstarred
|
|
23170
|
-
("|" +
|
|
23171
|
-
("|" +
|
|
23177
|
+
("|" + A1) + // \macroName + spaces
|
|
23178
|
+
("|" + M1 + ")");
|
|
23172
23179
|
class ba {
|
|
23173
23180
|
// Category codes. The lexer only supports comment characters (14) for now.
|
|
23174
23181
|
// MacroExpander additionally distinguishes active (13).
|
|
23175
23182
|
constructor(e, r) {
|
|
23176
|
-
this.input = void 0, this.settings = void 0, this.tokenRegex = void 0, this.catcodes = void 0, this.input = e, this.settings = r, this.tokenRegex = new RegExp(
|
|
23183
|
+
this.input = void 0, this.settings = void 0, this.tokenRegex = void 0, this.catcodes = void 0, this.input = e, this.settings = r, this.tokenRegex = new RegExp(C1, "g"), this.catcodes = {
|
|
23177
23184
|
"%": 14,
|
|
23178
23185
|
// comment character
|
|
23179
23186
|
"~": 13
|
|
@@ -23202,7 +23209,7 @@ class ba {
|
|
|
23202
23209
|
return new je(a, new Ze(this, r, this.tokenRegex.lastIndex));
|
|
23203
23210
|
}
|
|
23204
23211
|
}
|
|
23205
|
-
class
|
|
23212
|
+
class I1 {
|
|
23206
23213
|
/**
|
|
23207
23214
|
* Both arguments are optional. The first argument is an object of
|
|
23208
23215
|
* built-in mappings which never change. The second argument is an object
|
|
@@ -23273,7 +23280,7 @@ class Iu {
|
|
|
23273
23280
|
r == null ? delete this.current[e] : this.current[e] = r;
|
|
23274
23281
|
}
|
|
23275
23282
|
}
|
|
23276
|
-
var
|
|
23283
|
+
var D1 = Oi;
|
|
23277
23284
|
h("\\noexpand", function(t) {
|
|
23278
23285
|
var e = t.popToken();
|
|
23279
23286
|
return t.isExpandable(e.text) && (e.noexpand = !0, e.treatAsRelax = !0), {
|
|
@@ -23541,7 +23548,7 @@ var ya = {
|
|
|
23541
23548
|
};
|
|
23542
23549
|
h("\\dots", function(t) {
|
|
23543
23550
|
var e = "\\dotso", r = t.expandAfterFuture().text;
|
|
23544
|
-
return r in ya ? e = ya[r] : (r.slice(0, 4) === "\\not" || r in ge.math &&
|
|
23551
|
+
return r in ya ? e = ya[r] : (r.slice(0, 4) === "\\not" || r in ge.math && V.contains(["bin", "rel"], ge.math[r].group)) && (e = "\\dotsb"), e;
|
|
23545
23552
|
});
|
|
23546
23553
|
var an = {
|
|
23547
23554
|
// \rightdelim@ checks for the following:
|
|
@@ -23862,9 +23869,9 @@ var Gi = {
|
|
|
23862
23869
|
"\\nolimits": !0
|
|
23863
23870
|
// Parser.js
|
|
23864
23871
|
};
|
|
23865
|
-
class
|
|
23872
|
+
class L1 {
|
|
23866
23873
|
constructor(e, r, n) {
|
|
23867
|
-
this.settings = void 0, this.expansionCount = void 0, this.lexer = void 0, this.macros = void 0, this.stack = void 0, this.mode = void 0, this.settings = r, this.expansionCount = 0, this.feed(e), this.macros = new
|
|
23874
|
+
this.settings = void 0, this.expansionCount = void 0, this.lexer = void 0, this.macros = void 0, this.stack = void 0, this.mode = void 0, this.settings = r, this.expansionCount = 0, this.feed(e), this.macros = new I1(D1, r.macros), this.mode = n, this.stack = [];
|
|
23868
23875
|
}
|
|
23869
23876
|
/**
|
|
23870
23877
|
* Feed a new input string to the same MacroExpander
|
|
@@ -24654,7 +24661,7 @@ var wa = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗ
|
|
|
24654
24661
|
};
|
|
24655
24662
|
class Jr {
|
|
24656
24663
|
constructor(e, r) {
|
|
24657
|
-
this.mode = void 0, this.gullet = void 0, this.settings = void 0, this.leftrightDepth = void 0, this.nextToken = void 0, this.mode = "math", this.gullet = new
|
|
24664
|
+
this.mode = void 0, this.gullet = void 0, this.settings = void 0, this.leftrightDepth = void 0, this.nextToken = void 0, this.mode = "math", this.gullet = new L1(e, r, this.mode), this.settings = r, this.leftrightDepth = 0;
|
|
24658
24665
|
}
|
|
24659
24666
|
/**
|
|
24660
24667
|
* Checks a result to make sure it has the right type, and throws an
|
|
@@ -25164,7 +25171,7 @@ class Jr {
|
|
|
25164
25171
|
};
|
|
25165
25172
|
}
|
|
25166
25173
|
Ea.hasOwnProperty(r[0]) && !ge[this.mode][r[0]] && (this.settings.strict && this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Accented Unicode text character "' + r[0] + '" used in math mode', e), r = Ea[r[0]] + r.slice(1));
|
|
25167
|
-
var i =
|
|
25174
|
+
var i = R1.exec(r);
|
|
25168
25175
|
i && (r = r.substring(0, i.index), r === "i" ? r = "ı" : r === "j" && (r = "ȷ"));
|
|
25169
25176
|
var o;
|
|
25170
25177
|
if (ge[this.mode][r]) {
|
|
@@ -25244,13 +25251,13 @@ var sn = function(e, r) {
|
|
|
25244
25251
|
typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."), Ki = function() {
|
|
25245
25252
|
throw new R("KaTeX doesn't work in quirks mode.");
|
|
25246
25253
|
});
|
|
25247
|
-
var
|
|
25254
|
+
var B1 = function(e, r) {
|
|
25248
25255
|
var n = on(e, r).toMarkup();
|
|
25249
25256
|
return n;
|
|
25250
|
-
},
|
|
25257
|
+
}, z1 = function(e, r) {
|
|
25251
25258
|
var n = new q0(r);
|
|
25252
25259
|
return sn(e, n);
|
|
25253
|
-
},
|
|
25260
|
+
}, Wi = function(e, r, n) {
|
|
25254
25261
|
if (n.throwOnError || !(e instanceof R))
|
|
25255
25262
|
throw e;
|
|
25256
25263
|
var a = S.makeSpan(["katex-error"], [new et(r)]);
|
|
@@ -25259,17 +25266,17 @@ var Bu = function(e, r) {
|
|
|
25259
25266
|
var n = new q0(r);
|
|
25260
25267
|
try {
|
|
25261
25268
|
var a = sn(e, n);
|
|
25262
|
-
return
|
|
25269
|
+
return Wc(a, e, n);
|
|
25263
25270
|
} catch (i) {
|
|
25264
|
-
return
|
|
25271
|
+
return Wi(i, e, n);
|
|
25265
25272
|
}
|
|
25266
|
-
},
|
|
25273
|
+
}, P1 = function(e, r) {
|
|
25267
25274
|
var n = new q0(r);
|
|
25268
25275
|
try {
|
|
25269
25276
|
var a = sn(e, n);
|
|
25270
|
-
return
|
|
25277
|
+
return Vc(a, e, n);
|
|
25271
25278
|
} catch (i) {
|
|
25272
|
-
return
|
|
25279
|
+
return Wi(i, e, n);
|
|
25273
25280
|
}
|
|
25274
25281
|
}, xa = {
|
|
25275
25282
|
/**
|
|
@@ -25285,7 +25292,7 @@ var Bu = function(e, r) {
|
|
|
25285
25292
|
* Renders the given LaTeX into an HTML+MathML combination string,
|
|
25286
25293
|
* for sending to the client.
|
|
25287
25294
|
*/
|
|
25288
|
-
renderToString:
|
|
25295
|
+
renderToString: B1,
|
|
25289
25296
|
/**
|
|
25290
25297
|
* KaTeX error, usually during parsing.
|
|
25291
25298
|
*/
|
|
@@ -25302,7 +25309,7 @@ var Bu = function(e, r) {
|
|
|
25302
25309
|
* The internal tree representation is unstable and is very likely
|
|
25303
25310
|
* to change. Use at your own risk.
|
|
25304
25311
|
*/
|
|
25305
|
-
__parse:
|
|
25312
|
+
__parse: z1,
|
|
25306
25313
|
/**
|
|
25307
25314
|
* Renders the given LaTeX into an HTML+MathML internal DOM tree
|
|
25308
25315
|
* representation, without flattening that representation to a string.
|
|
@@ -25320,7 +25327,7 @@ var Bu = function(e, r) {
|
|
|
25320
25327
|
* The internal tree representation is unstable and is very likely
|
|
25321
25328
|
* to change. Use at your own risk.
|
|
25322
25329
|
*/
|
|
25323
|
-
__renderToHTMLTree:
|
|
25330
|
+
__renderToHTMLTree: P1,
|
|
25324
25331
|
/**
|
|
25325
25332
|
* extends internal font metrics object with a new object
|
|
25326
25333
|
* each key in the new object represents a font name
|
|
@@ -25356,12 +25363,12 @@ var Bu = function(e, r) {
|
|
|
25356
25363
|
LineNode: R0
|
|
25357
25364
|
}
|
|
25358
25365
|
};
|
|
25359
|
-
const
|
|
25360
|
-
function
|
|
25361
|
-
const e = t ||
|
|
25366
|
+
const F1 = {}, U1 = [];
|
|
25367
|
+
function q1(t) {
|
|
25368
|
+
const e = t || F1;
|
|
25362
25369
|
return function(r, n) {
|
|
25363
25370
|
Ms(r, "element", function(a, i) {
|
|
25364
|
-
const o = Array.isArray(a.properties.className) ? a.properties.className :
|
|
25371
|
+
const o = Array.isArray(a.properties.className) ? a.properties.className : U1, c = o.includes("language-math"), u = o.includes("math-display"), m = o.includes("math-inline");
|
|
25365
25372
|
let p = u;
|
|
25366
25373
|
if (!c && !u && !m)
|
|
25367
25374
|
return;
|
|
@@ -25416,7 +25423,7 @@ function qu(t) {
|
|
|
25416
25423
|
});
|
|
25417
25424
|
};
|
|
25418
25425
|
}
|
|
25419
|
-
function
|
|
25426
|
+
function H1() {
|
|
25420
25427
|
return {
|
|
25421
25428
|
enter: {
|
|
25422
25429
|
mathFlow: t,
|
|
@@ -25488,7 +25495,7 @@ function Hu() {
|
|
|
25488
25495
|
this.config.enter.data.call(this, u), this.config.exit.data.call(this, u);
|
|
25489
25496
|
}
|
|
25490
25497
|
}
|
|
25491
|
-
function $
|
|
25498
|
+
function $1(t) {
|
|
25492
25499
|
let e = (t || {}).singleDollarTextMath;
|
|
25493
25500
|
return e == null && (e = !0), n.peek = a, {
|
|
25494
25501
|
unsafe: [
|
|
@@ -25550,14 +25557,14 @@ function $u(t) {
|
|
|
25550
25557
|
return "$";
|
|
25551
25558
|
}
|
|
25552
25559
|
}
|
|
25553
|
-
const
|
|
25554
|
-
tokenize:
|
|
25560
|
+
const G1 = {
|
|
25561
|
+
tokenize: K1,
|
|
25555
25562
|
concrete: !0
|
|
25556
25563
|
}, _a = {
|
|
25557
|
-
tokenize:
|
|
25564
|
+
tokenize: W1,
|
|
25558
25565
|
partial: !0
|
|
25559
25566
|
};
|
|
25560
|
-
function
|
|
25567
|
+
function K1(t, e, r) {
|
|
25561
25568
|
const n = this, a = n.events[n.events.length - 1], i = a && a[1].type === "linePrefix" ? a[2].sliceSerialize(a[1], !0).length : 0;
|
|
25562
25569
|
let o = 0;
|
|
25563
25570
|
return c;
|
|
@@ -25632,7 +25639,7 @@ function Ku(t, e, r) {
|
|
|
25632
25639
|
}
|
|
25633
25640
|
}
|
|
25634
25641
|
}
|
|
25635
|
-
function
|
|
25642
|
+
function W1(t, e, r) {
|
|
25636
25643
|
const n = this;
|
|
25637
25644
|
return a;
|
|
25638
25645
|
function a(o) {
|
|
@@ -25642,12 +25649,12 @@ function Vu(t, e, r) {
|
|
|
25642
25649
|
return n.parser.lazy[n.now().line] ? r(o) : e(o);
|
|
25643
25650
|
}
|
|
25644
25651
|
}
|
|
25645
|
-
function
|
|
25652
|
+
function V1(t) {
|
|
25646
25653
|
let r = t.singleDollarTextMath;
|
|
25647
25654
|
return r == null && (r = !0), {
|
|
25648
25655
|
tokenize: n,
|
|
25649
|
-
resolve:
|
|
25650
|
-
previous:
|
|
25656
|
+
resolve: Y1,
|
|
25657
|
+
previous: Z1
|
|
25651
25658
|
};
|
|
25652
25659
|
function n(a, i, o) {
|
|
25653
25660
|
let c = 0, u, m;
|
|
@@ -25669,7 +25676,7 @@ function Wu(t) {
|
|
|
25669
25676
|
}
|
|
25670
25677
|
}
|
|
25671
25678
|
}
|
|
25672
|
-
function
|
|
25679
|
+
function Y1(t) {
|
|
25673
25680
|
let e = t.length - 4, r = 3, n, a;
|
|
25674
25681
|
if ((t[r][1].type === "lineEnding" || t[r][1].type === "space") && (t[e][1].type === "lineEnding" || t[e][1].type === "space")) {
|
|
25675
25682
|
for (n = r; ++n < e; )
|
|
@@ -25682,42 +25689,42 @@ function Yu(t) {
|
|
|
25682
25689
|
a === void 0 ? n !== e && t[n][1].type !== "lineEnding" && (a = n) : (n === e || t[n][1].type === "lineEnding") && (t[a][1].type = "mathTextData", n !== a + 2 && (t[a][1].end = t[n - 1][1].end, t.splice(a + 2, n - a - 2), e -= n - a - 2, n = a + 2), a = void 0);
|
|
25683
25690
|
return t;
|
|
25684
25691
|
}
|
|
25685
|
-
function
|
|
25692
|
+
function Z1(t) {
|
|
25686
25693
|
return t !== 36 || this.events[this.events.length - 1][1].type === "characterEscape";
|
|
25687
25694
|
}
|
|
25688
|
-
function
|
|
25695
|
+
function X1(t) {
|
|
25689
25696
|
return {
|
|
25690
25697
|
flow: {
|
|
25691
|
-
36:
|
|
25698
|
+
36: G1
|
|
25692
25699
|
},
|
|
25693
25700
|
text: {
|
|
25694
|
-
36:
|
|
25701
|
+
36: V1(t)
|
|
25695
25702
|
}
|
|
25696
25703
|
};
|
|
25697
25704
|
}
|
|
25698
|
-
const
|
|
25699
|
-
function
|
|
25705
|
+
const Q1 = {};
|
|
25706
|
+
function J1(t) {
|
|
25700
25707
|
const e = (
|
|
25701
25708
|
/** @type {Processor} */
|
|
25702
25709
|
this
|
|
25703
|
-
), r = t ||
|
|
25704
|
-
a.push(
|
|
25710
|
+
), r = t || Q1, n = e.data(), a = n.micromarkExtensions || (n.micromarkExtensions = []), i = n.fromMarkdownExtensions || (n.fromMarkdownExtensions = []), o = n.toMarkdownExtensions || (n.toMarkdownExtensions = []);
|
|
25711
|
+
a.push(X1(r)), i.push(H1()), o.push($1(r));
|
|
25705
25712
|
}
|
|
25706
|
-
const
|
|
25713
|
+
const j1 = () => (t) => {
|
|
25707
25714
|
Na(t, "element", (e) => {
|
|
25708
25715
|
var r, n;
|
|
25709
25716
|
e.tagName === "code" && ((n = (r = e.children) == null ? void 0 : r[0]) != null && n.value) && (e.properties["data-raw-code"] = e.children[0].value);
|
|
25710
25717
|
});
|
|
25711
|
-
},
|
|
25718
|
+
}, iu = ({
|
|
25712
25719
|
content: t
|
|
25713
25720
|
}) => {
|
|
25714
25721
|
const e = (r) => r.children.props["data-raw-code"] || "";
|
|
25715
|
-
return /* @__PURE__ */
|
|
25722
|
+
return /* @__PURE__ */ We(
|
|
25716
25723
|
Rs,
|
|
25717
25724
|
{
|
|
25718
25725
|
components: {
|
|
25719
25726
|
pre: (r) => /* @__PURE__ */ P0(Sa, { children: [
|
|
25720
|
-
/* @__PURE__ */
|
|
25727
|
+
/* @__PURE__ */ We(Ds, { alignHorizontal: "flex-end", children: /* @__PURE__ */ We(Ls, { children: /* @__PURE__ */ We(
|
|
25721
25728
|
Ta,
|
|
25722
25729
|
{
|
|
25723
25730
|
copyToClipboard: () => e(r),
|
|
@@ -25726,7 +25733,7 @@ const ju = () => (t) => {
|
|
|
25726
25733
|
className: "mb-2 px-1"
|
|
25727
25734
|
}
|
|
25728
25735
|
) }) }),
|
|
25729
|
-
/* @__PURE__ */
|
|
25736
|
+
/* @__PURE__ */ We(
|
|
25730
25737
|
"pre",
|
|
25731
25738
|
{
|
|
25732
25739
|
...r,
|
|
@@ -25736,12 +25743,12 @@ const ju = () => (t) => {
|
|
|
25736
25743
|
)
|
|
25737
25744
|
] })
|
|
25738
25745
|
},
|
|
25739
|
-
remarkPlugins: [Cs,
|
|
25740
|
-
rehypePlugins: [
|
|
25746
|
+
remarkPlugins: [Cs, J1],
|
|
25747
|
+
rehypePlugins: [j1, _l, q1],
|
|
25741
25748
|
children: t
|
|
25742
25749
|
}
|
|
25743
25750
|
);
|
|
25744
25751
|
};
|
|
25745
25752
|
export {
|
|
25746
|
-
|
|
25753
|
+
iu as default
|
|
25747
25754
|
};
|