@richmd/react 2.0.4 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.jsx +184 -176
- package/dist/index.umd.jsx +12 -12
- package/dist/richmd.css +1 -1
- package/package.json +2 -2
package/dist/index.es.jsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as qr from "react";
|
|
2
2
|
import vt, { useState as qm, useMemo as Vm, useCallback as Ia } from "react";
|
|
3
3
|
import wu from "html-react-parser";
|
|
4
4
|
class me {
|
|
@@ -83,9 +83,9 @@ const ge = {
|
|
|
83
83
|
Video: np,
|
|
84
84
|
Link: ip,
|
|
85
85
|
InlineKatex: op
|
|
86
|
-
}, sp = /^\s*$/, lp = (t) => t.length === 0 || sp.test(t),
|
|
86
|
+
}, sp = /^\s*$/, lp = (t) => t.length === 0 || sp.test(t), Cr = {
|
|
87
87
|
isEmpty: lp
|
|
88
|
-
}, rt = 0, xa = 1,
|
|
88
|
+
}, rt = 0, xa = 1, Vr = 2, $r = 3, Da = 4, wa = 5, Ma = 6, La = 7, fr = 8, Wr = 9, sr = 10, lr = 11, Tr = 12, Kt = (t) => {
|
|
89
89
|
const e = [];
|
|
90
90
|
let r = "", a = rt, n = !1;
|
|
91
91
|
const i = [];
|
|
@@ -98,16 +98,16 @@ const ge = {
|
|
|
98
98
|
switch (s) {
|
|
99
99
|
case "*":
|
|
100
100
|
if (t[o + 1] === "*") {
|
|
101
|
-
o += 1, t[o + 1] === "*" ? (o += 1, a ===
|
|
101
|
+
o += 1, t[o + 1] === "*" ? (o += 1, a === $r ? (e.push(new ge.EmItalic(r)), a = rt) : (e.push(new ge.Text(r)), a = $r), r = "") : (a === Vr ? (e.push(new ge.Em(r)), a = rt) : (e.push(new ge.Text(r)), a = Vr), r = "");
|
|
102
102
|
continue;
|
|
103
|
-
} else if (a ===
|
|
104
|
-
e.push(new ge.EmItalic(r)), a =
|
|
103
|
+
} else if (a === $r) {
|
|
104
|
+
e.push(new ge.EmItalic(r)), a = Vr, r = "";
|
|
105
105
|
continue;
|
|
106
106
|
}
|
|
107
107
|
a === xa ? (e.push(new ge.Italic(r)), a = rt, r = "") : (e.push(new ge.Text(r)), a = xa, r = "");
|
|
108
108
|
continue;
|
|
109
109
|
case "_":
|
|
110
|
-
if (a ===
|
|
110
|
+
if (a === Tr || a === fr || a === Wr) {
|
|
111
111
|
r += s;
|
|
112
112
|
continue;
|
|
113
113
|
}
|
|
@@ -118,7 +118,7 @@ const ge = {
|
|
|
118
118
|
a === Da ? (e.push(new ge.Italic(r)), a = rt) : (e.push(new ge.Text(r)), a = Da), r = "";
|
|
119
119
|
continue;
|
|
120
120
|
case "~":
|
|
121
|
-
if (a ===
|
|
121
|
+
if (a === Tr || a === fr || a === Wr) {
|
|
122
122
|
r += s;
|
|
123
123
|
continue;
|
|
124
124
|
}
|
|
@@ -129,13 +129,13 @@ const ge = {
|
|
|
129
129
|
r += s;
|
|
130
130
|
continue;
|
|
131
131
|
case "`":
|
|
132
|
-
a ===
|
|
132
|
+
a === sr ? (e.push(new ge.InlineCode(r)), a = rt) : (e.push(new ge.Text(r)), a = sr), r = "";
|
|
133
133
|
continue;
|
|
134
134
|
case "$":
|
|
135
|
-
a ===
|
|
135
|
+
a === lr ? (e.push(new ge.InlineKatex(r)), a = rt) : (e.push(new ge.Text(r)), a = lr), r = "";
|
|
136
136
|
continue;
|
|
137
137
|
case "<": {
|
|
138
|
-
|
|
138
|
+
Cr.isEmpty(r) || (i.length === 0 ? e.push(new ge.Text(r)) : i[i.length - 1] += r, r = "");
|
|
139
139
|
let c = s;
|
|
140
140
|
if (c !== "<") {
|
|
141
141
|
do
|
|
@@ -152,45 +152,53 @@ const ge = {
|
|
|
152
152
|
continue;
|
|
153
153
|
}
|
|
154
154
|
case "!":
|
|
155
|
-
if (
|
|
155
|
+
if (a === sr || a === lr) {
|
|
156
|
+
r += s;
|
|
157
|
+
continue;
|
|
158
|
+
}
|
|
159
|
+
if (!Cr.isEmpty(r)) {
|
|
156
160
|
r += s;
|
|
157
161
|
continue;
|
|
158
162
|
}
|
|
159
163
|
if (t[o + 1] === "[") {
|
|
160
|
-
r = "", a =
|
|
164
|
+
r = "", a = fr, r = s;
|
|
161
165
|
continue;
|
|
162
166
|
}
|
|
163
167
|
case "@":
|
|
164
|
-
if (
|
|
168
|
+
if (a === sr || a === lr) {
|
|
169
|
+
r += s;
|
|
170
|
+
continue;
|
|
171
|
+
}
|
|
172
|
+
if (!Cr.isEmpty(r)) {
|
|
165
173
|
r += s;
|
|
166
174
|
break;
|
|
167
175
|
}
|
|
168
176
|
if (t[o + 1] === "[") {
|
|
169
|
-
r = "", a =
|
|
177
|
+
r = "", a = Tr, r = s;
|
|
170
178
|
continue;
|
|
171
179
|
}
|
|
172
180
|
case "[":
|
|
173
|
-
if (a !==
|
|
174
|
-
e.push(new ge.Text(r)), a =
|
|
181
|
+
if (a !== fr && a !== Tr) {
|
|
182
|
+
e.push(new ge.Text(r)), a = Wr, r = s;
|
|
175
183
|
continue;
|
|
176
184
|
} else {
|
|
177
185
|
r += s;
|
|
178
186
|
continue;
|
|
179
187
|
}
|
|
180
188
|
case ")":
|
|
181
|
-
if (r += s, a ===
|
|
189
|
+
if (r += s, a === fr) {
|
|
182
190
|
e.push(new ge.Image(r)), a = rt, r = "";
|
|
183
191
|
continue;
|
|
184
|
-
} else if (a ===
|
|
192
|
+
} else if (a === Tr) {
|
|
185
193
|
e.push(new ge.Video(r)), a = rt, r = "";
|
|
186
194
|
continue;
|
|
187
|
-
} else if (a ===
|
|
195
|
+
} else if (a === Wr) {
|
|
188
196
|
e.push(new ge.Link(r)), a = rt, r = "";
|
|
189
197
|
continue;
|
|
190
198
|
} else
|
|
191
199
|
continue;
|
|
192
200
|
case "\\":
|
|
193
|
-
if (a !==
|
|
201
|
+
if (a !== sr && a !== lr) {
|
|
194
202
|
n = !0;
|
|
195
203
|
continue;
|
|
196
204
|
}
|
|
@@ -200,7 +208,7 @@ const ge = {
|
|
|
200
208
|
break;
|
|
201
209
|
}
|
|
202
210
|
}
|
|
203
|
-
if (!
|
|
211
|
+
if (!Cr.isEmpty(r)) {
|
|
204
212
|
const o = e[e.length - 1];
|
|
205
213
|
if (!o || a === rt)
|
|
206
214
|
e.push(new ge.Text(r));
|
|
@@ -210,10 +218,10 @@ const ge = {
|
|
|
210
218
|
case xa:
|
|
211
219
|
s = "*";
|
|
212
220
|
break;
|
|
213
|
-
case
|
|
221
|
+
case Vr:
|
|
214
222
|
s = "**";
|
|
215
223
|
break;
|
|
216
|
-
case
|
|
224
|
+
case $r:
|
|
217
225
|
s = "***";
|
|
218
226
|
break;
|
|
219
227
|
case Da:
|
|
@@ -228,10 +236,10 @@ const ge = {
|
|
|
228
236
|
case La:
|
|
229
237
|
s = "~~";
|
|
230
238
|
break;
|
|
231
|
-
case
|
|
239
|
+
case sr:
|
|
232
240
|
s = "`";
|
|
233
241
|
break;
|
|
234
|
-
case
|
|
242
|
+
case lr:
|
|
235
243
|
s = "$";
|
|
236
244
|
break;
|
|
237
245
|
}
|
|
@@ -365,27 +373,27 @@ const Ne = {
|
|
|
365
373
|
StartSlide: Rp,
|
|
366
374
|
EndSlide: Op,
|
|
367
375
|
Mode: cp
|
|
368
|
-
}, cl = /^(#{1,})\s(.+)$/, dl = /^(\s*)?(?:\-|\*)\s(.+)$/, _l = /^(\s*)?([0-9]+)\.\s(.+)$/, Ap = /^[\*\-_\s]+$/, Ip = /^[`~]{3}(.*)|[`~]{3}(.*)\b[\l]+\b\:\b[\u\l]+\b$/, ul = /^(>{1,})\s?(.+)$/, ml = /(?:\s*)?\|(.+)\|(?:\s*)$/, xp = /^[\$]{2}(.*)$/, Dp = /^[\=]{3}(.*)|[\=]{3}(.*)\b[\l]+\b$/, wp = /^\:\>(\b[\w_\.\/]+\b|[\u3040-\u309F\u30A0-\u30FF\u3400-\u9FFF])+$/, Mp = /^\:\>$/, Lp = /^\:\:\b[a-z]+\b|\:\:\b[a-z]+\b\.\b[a-z]+\b|\:\:\.\b[a-z]+\b$/, kp = /^\:\:$/, Pp = /^\:use\sslide\:$/, Fp = /^\:\-{3}\:(title|content)|\:\-{3}\:(title|content)\.\b[a-z]+\b$/, Up = /^\:\<\-{2}\:(title|content)|\:\<\-{2}\:(title|content)\.\b[a-z]+\b$/, Bp = /^\:\-{2}\>\:(title|content)|\:\-{2}\>\:(title|content)\.\b[a-z]+\b$/, Gp = /^\:\-{3}\:$/, we = 0, ka = 1, pl = 2, gl = 3,
|
|
369
|
-
let
|
|
376
|
+
}, cl = /^(#{1,})\s(.+)$/, dl = /^(\s*)?(?:\-|\*)\s(.+)$/, _l = /^(\s*)?([0-9]+)\.\s(.+)$/, Ap = /^[\*\-_\s]+$/, Ip = /^[`~]{3}(.*)|[`~]{3}(.*)\b[\l]+\b\:\b[\u\l]+\b$/, ul = /^(>{1,})\s?(.+)$/, ml = /(?:\s*)?\|(.+)\|(?:\s*)$/, xp = /^[\$]{2}(.*)$/, Dp = /^[\=]{3}(.*)|[\=]{3}(.*)\b[\l]+\b$/, wp = /^\:\>(\b[\w_\.\/]+\b|[\u3040-\u309F\u30A0-\u30FF\u3400-\u9FFF])+$/, Mp = /^\:\>$/, Lp = /^\:\:\b[a-z]+\b|\:\:\b[a-z]+\b\.\b[a-z]+\b|\:\:\.\b[a-z]+\b$/, kp = /^\:\:$/, Pp = /^\:use\sslide\:$/, Fp = /^\:\-{3}\:(title|content)|\:\-{3}\:(title|content)\.\b[a-z]+\b$/, Up = /^\:\<\-{2}\:(title|content)|\:\<\-{2}\:(title|content)\.\b[a-z]+\b$/, Bp = /^\:\-{2}\>\:(title|content)|\:\-{2}\>\:(title|content)\.\b[a-z]+\b$/, Gp = /^\:\-{3}\:$/, we = 0, ka = 1, pl = 2, gl = 3, cr = 4, El = 0, vr = 1;
|
|
377
|
+
let dr;
|
|
370
378
|
const Yp = (t) => {
|
|
371
379
|
const e = [];
|
|
372
380
|
let r = "", a = we, n = El, i = [], o, s = "", c = "", _ = "default", u = "";
|
|
373
381
|
const p = (E) => {
|
|
374
|
-
i.length > 0 && (e.push(new Ne.Table(i)), i = []),
|
|
382
|
+
i.length > 0 && (e.push(new Ne.Table(i)), i = []), Cr.isEmpty(E) || e.push(new Ne.Paragraph(E));
|
|
375
383
|
}, S = t.replace(/\r/g, "").split(`
|
|
376
384
|
`);
|
|
377
385
|
for (const E of S)
|
|
378
|
-
if (e.length === 0 && n === El && (Pp.test(E) ? (e.push(new Ne.Mode("slide")), n =
|
|
386
|
+
if (e.length === 0 && n === El && (Pp.test(E) ? (e.push(new Ne.Mode("slide")), n = vr, a = cr) : e.push(new Ne.Mode("default"))), n === vr && a === cr && Fp.test(E)) {
|
|
379
387
|
const h = E.replace(/\:\-{3}:/, "").trim().split(".");
|
|
380
388
|
e.push(new Ne.StartSlide("center", h[0], h[1] ?? "default")), a = we, r = "";
|
|
381
|
-
} else if (n ===
|
|
389
|
+
} else if (n === vr && a === cr && Up.test(E)) {
|
|
382
390
|
const h = E.replace(/\:\<\-{2}:/, "").trim().split(".");
|
|
383
391
|
e.push(new Ne.StartSlide("left", h[0], h[1] ?? "default")), a = we, r = "";
|
|
384
|
-
} else if (n ===
|
|
392
|
+
} else if (n === vr && a === cr && Bp.test(E)) {
|
|
385
393
|
const h = E.replace(/\:\-{2}\>:/, "").trim().split(".");
|
|
386
394
|
e.push(new Ne.StartSlide("right", h[0], h[1] ?? "default")), a = we, r = "";
|
|
387
|
-
} else if (n ===
|
|
388
|
-
p(r), e.push(new Ne.EndSlide()), a =
|
|
395
|
+
} else if (n === vr && a === we && Gp.test(E))
|
|
396
|
+
p(r), e.push(new Ne.EndSlide()), a = cr, r = "";
|
|
389
397
|
else if (a === we && wp.test(E)) {
|
|
390
398
|
p(r);
|
|
391
399
|
const h = E.replace(/\:\>/, "").trim();
|
|
@@ -395,9 +403,9 @@ const Yp = (t) => {
|
|
|
395
403
|
else if (a === we && Lp.test(E)) {
|
|
396
404
|
p(r);
|
|
397
405
|
const h = E.replace(/\:\:/, "").trim();
|
|
398
|
-
h ?
|
|
406
|
+
h ? dr = h.split(".") : dr = ["span", ""], e.push(new Ne.StartTag(dr[0] ?? "span", dr[1])), r = "";
|
|
399
407
|
} else if (a === we && kp.test(E))
|
|
400
|
-
p(r), e.push(new Ne.EndTag(
|
|
408
|
+
p(r), e.push(new Ne.EndTag(dr ? dr[0] : "span")), r = "";
|
|
401
409
|
else if (Ip.test(E))
|
|
402
410
|
if (a === ka)
|
|
403
411
|
e.push(new Ne.Code(r.trim(), s, c)), s = "", c = "", a = we, r = "";
|
|
@@ -483,7 +491,7 @@ ${E}`,
|
|
|
483
491
|
T.level
|
|
484
492
|
)), r = "";
|
|
485
493
|
} else
|
|
486
|
-
a !==
|
|
494
|
+
a !== cr && (r += E !== "" ? `${E}
|
|
487
495
|
` : `
|
|
488
496
|
`);
|
|
489
497
|
}
|
|
@@ -800,11 +808,11 @@ class Ht {
|
|
|
800
808
|
return this.size >= 2;
|
|
801
809
|
}
|
|
802
810
|
}
|
|
803
|
-
var Bs = 0, na = 1,
|
|
811
|
+
var Bs = 0, na = 1, ur = 2, Pt = 3, Rr = 4, ut = 5, mr = 6, Je = 7, Ct = [new Ht(Bs, 0, !1), new Ht(na, 0, !0), new Ht(ur, 1, !1), new Ht(Pt, 1, !0), new Ht(Rr, 2, !1), new Ht(ut, 2, !0), new Ht(mr, 3, !1), new Ht(Je, 3, !0)], a0 = [Rr, ut, Rr, ut, mr, Je, mr, Je], n0 = [ut, ut, ut, ut, Je, Je, Je, Je], i0 = [ur, Pt, Rr, ut, mr, Je, mr, Je], o0 = [Pt, Pt, ut, ut, Je, Je, Je, Je], s0 = [na, na, Pt, Pt, ut, ut, Je, Je], l0 = [Bs, na, ur, Pt, ur, Pt, ur, Pt], Z = {
|
|
804
812
|
DISPLAY: Ct[Bs],
|
|
805
|
-
TEXT: Ct[
|
|
806
|
-
SCRIPT: Ct[
|
|
807
|
-
SCRIPTSCRIPT: Ct[
|
|
813
|
+
TEXT: Ct[ur],
|
|
814
|
+
SCRIPT: Ct[Rr],
|
|
815
|
+
SCRIPTSCRIPT: Ct[mr]
|
|
808
816
|
}, ws = [{
|
|
809
817
|
// Latin characters beyond the Latin-1 characters we have metrics for.
|
|
810
818
|
// Needed for Czech, Hungarian and Turkish text, for example.
|
|
@@ -881,7 +889,7 @@ function Lu(t) {
|
|
|
881
889
|
return !0;
|
|
882
890
|
return !1;
|
|
883
891
|
}
|
|
884
|
-
var
|
|
892
|
+
var _r = 80, d0 = function(t, e) {
|
|
885
893
|
return "M95," + (622 + t + e) + `
|
|
886
894
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
887
895
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
@@ -953,22 +961,22 @@ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
|
953
961
|
var a = "";
|
|
954
962
|
switch (t) {
|
|
955
963
|
case "sqrtMain":
|
|
956
|
-
a = d0(e,
|
|
964
|
+
a = d0(e, _r);
|
|
957
965
|
break;
|
|
958
966
|
case "sqrtSize1":
|
|
959
|
-
a = _0(e,
|
|
967
|
+
a = _0(e, _r);
|
|
960
968
|
break;
|
|
961
969
|
case "sqrtSize2":
|
|
962
|
-
a = u0(e,
|
|
970
|
+
a = u0(e, _r);
|
|
963
971
|
break;
|
|
964
972
|
case "sqrtSize3":
|
|
965
|
-
a = m0(e,
|
|
973
|
+
a = m0(e, _r);
|
|
966
974
|
break;
|
|
967
975
|
case "sqrtSize4":
|
|
968
|
-
a = p0(e,
|
|
976
|
+
a = p0(e, _r);
|
|
969
977
|
break;
|
|
970
978
|
case "sqrtTall":
|
|
971
|
-
a = E0(e,
|
|
979
|
+
a = E0(e, _r, r);
|
|
972
980
|
}
|
|
973
981
|
return a;
|
|
974
982
|
}, h0 = function(t, e) {
|
|
@@ -1300,7 +1308,7 @@ l0,-` + (e + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
1300
1308
|
throw new Error("Unknown stretchy delimiter.");
|
|
1301
1309
|
}
|
|
1302
1310
|
};
|
|
1303
|
-
class
|
|
1311
|
+
class Ar {
|
|
1304
1312
|
// HtmlDomNode
|
|
1305
1313
|
// Never used; needed for satisfying interface.
|
|
1306
1314
|
constructor(e) {
|
|
@@ -4079,7 +4087,7 @@ function l(t, e, r, a, n, i) {
|
|
|
4079
4087
|
replace: a
|
|
4080
4088
|
}, i && a && (ye[t][a] = ye[t][n]);
|
|
4081
4089
|
}
|
|
4082
|
-
var d = "math", D = "text", m = "main", b = "ams", Ae = "accent-token", q = "bin", et = "close",
|
|
4090
|
+
var d = "math", D = "text", m = "main", b = "ams", Ae = "accent-token", q = "bin", et = "close", pr = "inner", X = "mathord", Ge = "op-token", lt = "open", da = "punct", f = "rel", Gt = "spacing", y = "textord";
|
|
4083
4091
|
l(d, m, f, "≡", "\\equiv", !0);
|
|
4084
4092
|
l(d, m, f, "≺", "\\prec", !0);
|
|
4085
4093
|
l(d, m, f, "≻", "\\succ", !0);
|
|
@@ -4606,12 +4614,12 @@ l(d, m, Ge, "∯", "\\oiint");
|
|
|
4606
4614
|
l(d, m, Ge, "∰", "\\oiiint");
|
|
4607
4615
|
l(d, m, Ge, "⨆", "\\bigsqcup");
|
|
4608
4616
|
l(d, m, Ge, "∫", "\\smallint");
|
|
4609
|
-
l(D, m,
|
|
4610
|
-
l(d, m,
|
|
4611
|
-
l(D, m,
|
|
4612
|
-
l(d, m,
|
|
4613
|
-
l(d, m,
|
|
4614
|
-
l(d, m,
|
|
4617
|
+
l(D, m, pr, "…", "\\textellipsis");
|
|
4618
|
+
l(d, m, pr, "…", "\\mathellipsis");
|
|
4619
|
+
l(D, m, pr, "…", "\\ldots", !0);
|
|
4620
|
+
l(d, m, pr, "…", "\\ldots", !0);
|
|
4621
|
+
l(d, m, pr, "⋯", "\\@cdots", !0);
|
|
4622
|
+
l(d, m, pr, "⋱", "\\ddots", !0);
|
|
4615
4623
|
l(d, m, y, "⋮", "\\varvdots");
|
|
4616
4624
|
l(D, m, y, "⋮", "\\varvdots");
|
|
4617
4625
|
l(d, m, Ae, "ˊ", "\\acute");
|
|
@@ -4909,10 +4917,10 @@ var Xr = [
|
|
|
4909
4917
|
var n = new Bu(t, e, r, a);
|
|
4910
4918
|
return Ys(n), n;
|
|
4911
4919
|
}, zu = function(t) {
|
|
4912
|
-
var e = new
|
|
4920
|
+
var e = new Ar(t);
|
|
4913
4921
|
return Ys(e), e;
|
|
4914
4922
|
}, F0 = function(t, e) {
|
|
4915
|
-
return t instanceof
|
|
4923
|
+
return t instanceof Ar ? at([], [t], e) : t;
|
|
4916
4924
|
}, U0 = function(t) {
|
|
4917
4925
|
if (t.positionType === "individualShift") {
|
|
4918
4926
|
for (var e = t.children, r = [e[0]], a = -e[0].shift - e[0].elem.depth, n = a, i = 1; i < e.length; i++) {
|
|
@@ -5241,7 +5249,7 @@ var la = function(t) {
|
|
|
5241
5249
|
a === void 0 && (a = [null, null]);
|
|
5242
5250
|
for (var n = [], i = 0; i < t.length; i++) {
|
|
5243
5251
|
var o = _e(t[i], e);
|
|
5244
|
-
if (o instanceof
|
|
5252
|
+
if (o instanceof Ar) {
|
|
5245
5253
|
var s = o.children;
|
|
5246
5254
|
n.push(...s);
|
|
5247
5255
|
} else
|
|
@@ -5286,7 +5294,7 @@ var la = function(t) {
|
|
|
5286
5294
|
}
|
|
5287
5295
|
n && e.pop();
|
|
5288
5296
|
}, $u = function(t) {
|
|
5289
|
-
return t instanceof
|
|
5297
|
+
return t instanceof Ar || t instanceof Bu || t instanceof ca && t.hasClass("enclosing") ? t : null;
|
|
5290
5298
|
}, Q0 = function t(e, r) {
|
|
5291
5299
|
var a = $u(e);
|
|
5292
5300
|
if (a) {
|
|
@@ -5301,7 +5309,7 @@ var la = function(t) {
|
|
|
5301
5309
|
return e;
|
|
5302
5310
|
}, ks = function(t, e) {
|
|
5303
5311
|
return t ? (e && (t = Q0(t, e)), W0[t.classes[0]] || null) : null;
|
|
5304
|
-
},
|
|
5312
|
+
}, Or = function(t, e) {
|
|
5305
5313
|
var r = ["nulldelimiter"].concat(t.baseSizingClasses());
|
|
5306
5314
|
return Ut(e.concat(r));
|
|
5307
5315
|
}, _e = function(t, e, r) {
|
|
@@ -5344,7 +5352,7 @@ function Il(t, e) {
|
|
|
5344
5352
|
return u;
|
|
5345
5353
|
}
|
|
5346
5354
|
function Wu(t) {
|
|
5347
|
-
return new
|
|
5355
|
+
return new Ar(t);
|
|
5348
5356
|
}
|
|
5349
5357
|
class st {
|
|
5350
5358
|
constructor(e, r, a) {
|
|
@@ -6607,7 +6615,7 @@ z({
|
|
|
6607
6615
|
};
|
|
6608
6616
|
}
|
|
6609
6617
|
});
|
|
6610
|
-
var
|
|
6618
|
+
var yr = function(t, e, r) {
|
|
6611
6619
|
var a = ye.math[t] && ye.math[t].replace, n = Gs(a || t, e, r);
|
|
6612
6620
|
if (!n)
|
|
6613
6621
|
throw new Error("Unsupported symbol " + t + " and font size " + e + ".");
|
|
@@ -6655,9 +6663,9 @@ var vr = function(t, e, r) {
|
|
|
6655
6663
|
o = c = _ = t, s = null;
|
|
6656
6664
|
var S = "Size1-Regular";
|
|
6657
6665
|
t === "\\uparrow" ? c = _ = "⏐" : t === "\\Uparrow" ? c = _ = "‖" : t === "\\downarrow" ? o = c = "⏐" : t === "\\Downarrow" ? o = c = "‖" : t === "\\updownarrow" ? (o = "\\uparrow", c = "⏐", _ = "\\downarrow") : t === "\\Updownarrow" ? (o = "\\Uparrow", c = "‖", _ = "\\Downarrow") : K.contains(pg, t) ? (c = "∣", u = "vert", p = 333) : K.contains(gg, t) ? (c = "∥", u = "doublevert", p = 556) : t === "[" || t === "\\lbrack" ? (o = "⎡", c = "⎢", _ = "⎣", S = "Size4-Regular", u = "lbrack", p = 667) : t === "]" || t === "\\rbrack" ? (o = "⎤", c = "⎥", _ = "⎦", S = "Size4-Regular", u = "rbrack", p = 667) : t === "\\lfloor" || t === "⌊" ? (c = o = "⎢", _ = "⎣", S = "Size4-Regular", u = "lfloor", p = 667) : t === "\\lceil" || t === "⌈" ? (o = "⎡", c = _ = "⎢", S = "Size4-Regular", u = "lceil", p = 667) : t === "\\rfloor" || t === "⌋" ? (c = o = "⎥", _ = "⎦", S = "Size4-Regular", u = "rfloor", p = 667) : t === "\\rceil" || t === "⌉" ? (o = "⎤", c = _ = "⎥", S = "Size4-Regular", u = "rceil", p = 667) : t === "(" || t === "\\lparen" ? (o = "⎛", c = "⎜", _ = "⎝", S = "Size4-Regular", u = "lparen", p = 875) : t === ")" || t === "\\rparen" ? (o = "⎞", c = "⎟", _ = "⎠", S = "Size4-Regular", u = "rparen", p = 875) : t === "\\{" || t === "\\lbrace" ? (o = "⎧", s = "⎨", _ = "⎩", c = "⎪", S = "Size4-Regular") : t === "\\}" || t === "\\rbrace" ? (o = "⎫", s = "⎬", _ = "⎭", c = "⎪", S = "Size4-Regular") : t === "\\lgroup" || t === "⟮" ? (o = "⎧", _ = "⎩", c = "⎪", S = "Size4-Regular") : t === "\\rgroup" || t === "⟯" ? (o = "⎫", _ = "⎭", c = "⎪", S = "Size4-Regular") : t === "\\lmoustache" || t === "⎰" ? (o = "⎧", _ = "⎭", c = "⎪", S = "Size4-Regular") : (t === "\\rmoustache" || t === "⎱") && (o = "⎫", _ = "⎩", c = "⎪", S = "Size4-Regular");
|
|
6658
|
-
var E =
|
|
6666
|
+
var E = yr(o, S, n), h = E.height + E.depth, T = yr(c, S, n), C = T.height + T.depth, N = yr(_, S, n), R = N.height + N.depth, A = 0, x = 1;
|
|
6659
6667
|
if (s !== null) {
|
|
6660
|
-
var M =
|
|
6668
|
+
var M = yr(s, S, n);
|
|
6661
6669
|
A = M.height + M.depth, x = 2;
|
|
6662
6670
|
}
|
|
6663
6671
|
var w = h + R + A, B = Math.max(0, Math.ceil((e - w) / (x * C))), F = w + B * x * C, J = a.fontMetrics().axisHeight;
|
|
@@ -6700,7 +6708,7 @@ var vr = function(t, e, r) {
|
|
|
6700
6708
|
return O.makeSvgSpan(["hide-tail"], [s], n);
|
|
6701
6709
|
}, Eg = function(t, e) {
|
|
6702
6710
|
var r = e.havingBaseSizing(), a = sm("\\surd", t * r.sizeMultiplier, om, r), n = r.sizeMultiplier, i = Math.max(0, e.minRuleThickness - e.fontMetrics().sqrtRuleThickness), o, s = 0, c = 0, _ = 0, u;
|
|
6703
|
-
return a.type === "small" ? (_ = 1e3 + 1e3 * i + Va, t < 1 ? n = 1 : t < 1.4 && (n = 0.7), s = (1 + i + $a) / n, c = (1 + i) / n, o = Wa("sqrtMain", s, _, i, e), o.style.minWidth = "0.853em", u = 0.833 / n) : a.type === "large" ? (_ = (1e3 + Va) *
|
|
6711
|
+
return a.type === "small" ? (_ = 1e3 + 1e3 * i + Va, t < 1 ? n = 1 : t < 1.4 && (n = 0.7), s = (1 + i + $a) / n, c = (1 + i) / n, o = Wa("sqrtMain", s, _, i, e), o.style.minWidth = "0.853em", u = 0.833 / n) : a.type === "large" ? (_ = (1e3 + Va) * Nr[a.size], c = (Nr[a.size] + i) / n, s = (Nr[a.size] + i + $a) / n, o = Wa("sqrtSize" + a.size, s, _, i, e), o.style.minWidth = "1.02em", u = 1 / n) : (s = t + i + $a, c = t + i, _ = Math.floor(1e3 * t + i) + Va, o = Wa("sqrtTall", s, _, i, e), o.style.minWidth = "0.742em", u = 1.056), o.height = c, o.style.height = U(s), {
|
|
6704
6712
|
span: o,
|
|
6705
6713
|
advanceWidth: u,
|
|
6706
6714
|
// Calculate the actual line width.
|
|
@@ -6709,11 +6717,11 @@ var vr = function(t, e, r) {
|
|
|
6709
6717
|
// have thicker rules.
|
|
6710
6718
|
ruleWidth: (e.fontMetrics().sqrtRuleThickness + i) * n
|
|
6711
6719
|
};
|
|
6712
|
-
}, nm = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "\\surd"], Sg = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱"], im = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"],
|
|
6720
|
+
}, nm = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "\\surd"], Sg = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱"], im = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], Nr = [0, 1.2, 1.8, 2.4, 3], hg = function(t, e, r, a, n) {
|
|
6713
6721
|
if (t === "<" || t === "\\lt" || t === "⟨" ? t = "\\langle" : (t === ">" || t === "\\gt" || t === "⟩") && (t = "\\rangle"), K.contains(nm, t) || K.contains(im, t))
|
|
6714
6722
|
return rm(t, e, !1, r, a, n);
|
|
6715
6723
|
if (K.contains(Sg, t))
|
|
6716
|
-
return am(t,
|
|
6724
|
+
return am(t, Nr[e], !1, r, a, n);
|
|
6717
6725
|
throw new k("Illegal delimiter: '" + t + "'");
|
|
6718
6726
|
}, bg = [{
|
|
6719
6727
|
type: "small",
|
|
@@ -6780,7 +6788,7 @@ var vr = function(t, e, r) {
|
|
|
6780
6788
|
throw new Error("Add support for delim type '" + t.type + "' here.");
|
|
6781
6789
|
}, sm = function(t, e, r, a) {
|
|
6782
6790
|
for (var n = Math.min(2, 3 - a.style.size), i = n; i < r.length && r[i].type !== "stack"; i++) {
|
|
6783
|
-
var o =
|
|
6791
|
+
var o = yr(t, Tg(r[i]), "math"), s = o.height + o.depth;
|
|
6784
6792
|
if (r[i].type === "small") {
|
|
6785
6793
|
var c = a.havingBaseStyle(r[i].style);
|
|
6786
6794
|
s *= c.sizeMultiplier;
|
|
@@ -6813,7 +6821,7 @@ var vr = function(t, e, r) {
|
|
|
6813
6821
|
}, Ft = {
|
|
6814
6822
|
sqrtImage: Eg,
|
|
6815
6823
|
sizedDelim: hg,
|
|
6816
|
-
sizeToMaxHeight:
|
|
6824
|
+
sizeToMaxHeight: Nr,
|
|
6817
6825
|
customSizedDelim: lm,
|
|
6818
6826
|
leftRightDelim: vg
|
|
6819
6827
|
}, Ml = {
|
|
@@ -6967,14 +6975,14 @@ z({
|
|
|
6967
6975
|
r[o].isMiddle ? i = !0 : (a = Math.max(r[o].height, a), n = Math.max(r[o].depth, n));
|
|
6968
6976
|
a *= e.sizeMultiplier, n *= e.sizeMultiplier;
|
|
6969
6977
|
var s;
|
|
6970
|
-
if (t.left === "." ? s =
|
|
6978
|
+
if (t.left === "." ? s = Or(e, ["mopen"]) : s = Ft.leftRightDelim(t.left, a, n, e, t.mode, ["mopen"]), r.unshift(s), i)
|
|
6971
6979
|
for (var c = 1; c < r.length; c++) {
|
|
6972
6980
|
var _ = r[c], u = _.isMiddle;
|
|
6973
6981
|
u && (r[c] = Ft.leftRightDelim(u.delim, a, n, u.options, t.mode, []));
|
|
6974
6982
|
}
|
|
6975
6983
|
var p;
|
|
6976
6984
|
if (t.right === ".")
|
|
6977
|
-
p =
|
|
6985
|
+
p = Or(e, ["mclose"]);
|
|
6978
6986
|
else {
|
|
6979
6987
|
var S = t.rightColor ? e.withColor(t.rightColor) : e;
|
|
6980
6988
|
p = Ft.leftRightDelim(t.right, a, n, S, t.mode, ["mclose"]);
|
|
@@ -7015,7 +7023,7 @@ z({
|
|
|
7015
7023
|
htmlBuilder: (t, e) => {
|
|
7016
7024
|
var r;
|
|
7017
7025
|
if (t.delim === ".")
|
|
7018
|
-
r =
|
|
7026
|
+
r = Or(e, []);
|
|
7019
7027
|
else {
|
|
7020
7028
|
r = Ft.sizedDelim(t.delim, 1, e, t.mode, []);
|
|
7021
7029
|
var a = {
|
|
@@ -8016,7 +8024,7 @@ var pm = (t, e) => {
|
|
|
8016
8024
|
var x;
|
|
8017
8025
|
r.size === Z.DISPLAY.size ? x = e.fontMetrics().delim1 : r.size === Z.SCRIPTSCRIPT.size ? x = e.havingStyle(Z.SCRIPT).fontMetrics().delim2 : x = e.fontMetrics().delim2;
|
|
8018
8026
|
var M, w;
|
|
8019
|
-
return t.leftDelim == null ? M =
|
|
8027
|
+
return t.leftDelim == null ? M = Or(e, ["mopen"]) : M = Ft.customSizedDelim(t.leftDelim, x, !0, e.havingStyle(r), t.mode, ["mopen"]), t.continued ? w = O.makeSpan([]) : t.rightDelim == null ? w = Or(e, ["mclose"]) : w = Ft.customSizedDelim(t.rightDelim, x, !0, e.havingStyle(r), t.mode, ["mclose"]), O.makeSpan(["mord"].concat(i.sizingClasses(e)), [M, O.makeSpan(["mfrac"], [C]), w], e);
|
|
8020
8028
|
}, Zs = (t, e) => {
|
|
8021
8029
|
var r = new L.MathNode("mfrac", [be(t.numer, e), be(t.denom, e)]);
|
|
8022
8030
|
if (!t.hasBarLine)
|
|
@@ -8890,7 +8898,7 @@ var Em = (t, e, r, a, n, i, o) => {
|
|
|
8890
8898
|
N.style.marginRight = U(i), C.unshift(N);
|
|
8891
8899
|
}
|
|
8892
8900
|
return O.makeSpan(["mop", "op-limits"], C, a);
|
|
8893
|
-
}, Sm = ["\\smallint"],
|
|
8901
|
+
}, Sm = ["\\smallint"], gr = (t, e) => {
|
|
8894
8902
|
var r, a, n = !1, i;
|
|
8895
8903
|
t.type === "supsub" ? (r = t.sup, a = t.sub, i = ie(t.base, "op"), n = !0) : i = ie(t, "op");
|
|
8896
8904
|
var o = e.style, s = !1;
|
|
@@ -8923,7 +8931,7 @@ var Em = (t, e, r, a, n, i, o) => {
|
|
|
8923
8931
|
}
|
|
8924
8932
|
var C = 0, N = 0;
|
|
8925
8933
|
return (c instanceof ht || i.name === "\\oiint" || i.name === "\\oiiint") && !i.suppressBaseShift && (C = (c.height - c.depth) / 2 - e.fontMetrics().axisHeight, N = c.italic), n ? Em(c, r, a, e, o, N, C) : (C && (c.style.position = "relative", c.style.top = U(C)), c);
|
|
8926
|
-
},
|
|
8934
|
+
}, Ir = (t, e) => {
|
|
8927
8935
|
var r;
|
|
8928
8936
|
if (t.symbol)
|
|
8929
8937
|
r = new st("mo", [pt(t.name, t.mode)]), K.contains(Sm, t.name) && r.setAttribute("largeop", "false");
|
|
@@ -8969,8 +8977,8 @@ z({
|
|
|
8969
8977
|
name: n
|
|
8970
8978
|
};
|
|
8971
8979
|
},
|
|
8972
|
-
htmlBuilder:
|
|
8973
|
-
mathmlBuilder:
|
|
8980
|
+
htmlBuilder: gr,
|
|
8981
|
+
mathmlBuilder: Ir
|
|
8974
8982
|
});
|
|
8975
8983
|
z({
|
|
8976
8984
|
type: "op",
|
|
@@ -8992,8 +9000,8 @@ z({
|
|
|
8992
9000
|
body: Ue(a)
|
|
8993
9001
|
};
|
|
8994
9002
|
},
|
|
8995
|
-
htmlBuilder:
|
|
8996
|
-
mathmlBuilder:
|
|
9003
|
+
htmlBuilder: gr,
|
|
9004
|
+
mathmlBuilder: Ir
|
|
8997
9005
|
});
|
|
8998
9006
|
var Og = {
|
|
8999
9007
|
"∫": "\\int",
|
|
@@ -9023,8 +9031,8 @@ z({
|
|
|
9023
9031
|
name: r
|
|
9024
9032
|
};
|
|
9025
9033
|
},
|
|
9026
|
-
htmlBuilder:
|
|
9027
|
-
mathmlBuilder:
|
|
9034
|
+
htmlBuilder: gr,
|
|
9035
|
+
mathmlBuilder: Ir
|
|
9028
9036
|
});
|
|
9029
9037
|
z({
|
|
9030
9038
|
type: "op",
|
|
@@ -9046,8 +9054,8 @@ z({
|
|
|
9046
9054
|
name: r
|
|
9047
9055
|
};
|
|
9048
9056
|
},
|
|
9049
|
-
htmlBuilder:
|
|
9050
|
-
mathmlBuilder:
|
|
9057
|
+
htmlBuilder: gr,
|
|
9058
|
+
mathmlBuilder: Ir
|
|
9051
9059
|
});
|
|
9052
9060
|
z({
|
|
9053
9061
|
type: "op",
|
|
@@ -9069,8 +9077,8 @@ z({
|
|
|
9069
9077
|
name: a
|
|
9070
9078
|
};
|
|
9071
9079
|
},
|
|
9072
|
-
htmlBuilder:
|
|
9073
|
-
mathmlBuilder:
|
|
9080
|
+
htmlBuilder: gr,
|
|
9081
|
+
mathmlBuilder: Ir
|
|
9074
9082
|
});
|
|
9075
9083
|
var hm = (t, e) => {
|
|
9076
9084
|
var r, a, n = !1, i;
|
|
@@ -9585,7 +9593,7 @@ var xg = function(t, e) {
|
|
|
9585
9593
|
if (r)
|
|
9586
9594
|
if (r.type === "op") {
|
|
9587
9595
|
var a = r.limits && (e.style.size === Z.DISPLAY.size || r.alwaysHandleSupSub);
|
|
9588
|
-
return a ?
|
|
9596
|
+
return a ? gr : null;
|
|
9589
9597
|
} else if (r.type === "operatorname") {
|
|
9590
9598
|
var n = r.alwaysHandleSupSub && (e.style.size === Z.DISPLAY.size || r.limits);
|
|
9591
9599
|
return n ? hm : null;
|
|
@@ -12883,12 +12891,12 @@ function Xg() {
|
|
|
12883
12891
|
"value"
|
|
12884
12892
|
// common variable name
|
|
12885
12893
|
], xt = "keyword";
|
|
12886
|
-
function
|
|
12894
|
+
function xr(v, I, Y = xt) {
|
|
12887
12895
|
const ne = /* @__PURE__ */ Object.create(null);
|
|
12888
12896
|
return typeof v == "string" ? Pe(Y, v.split(" ")) : Array.isArray(v) ? Pe(Y, v) : Object.keys(v).forEach(function(Fe) {
|
|
12889
12897
|
Object.assign(
|
|
12890
12898
|
ne,
|
|
12891
|
-
|
|
12899
|
+
xr(v[Fe], I, Fe)
|
|
12892
12900
|
);
|
|
12893
12901
|
}), ne;
|
|
12894
12902
|
function Pe(Fe, $) {
|
|
@@ -12899,19 +12907,19 @@ function Xg() {
|
|
|
12899
12907
|
}
|
|
12900
12908
|
}
|
|
12901
12909
|
function Sa(v, I) {
|
|
12902
|
-
return I ? Number(I) :
|
|
12910
|
+
return I ? Number(I) : Er(v) ? 0 : 1;
|
|
12903
12911
|
}
|
|
12904
|
-
function
|
|
12912
|
+
function Er(v) {
|
|
12905
12913
|
return It.includes(v.toLowerCase());
|
|
12906
12914
|
}
|
|
12907
|
-
const
|
|
12915
|
+
const Dr = {}, Dt = (v) => {
|
|
12908
12916
|
console.error(v);
|
|
12909
|
-
},
|
|
12917
|
+
}, wr = (v, ...I) => {
|
|
12910
12918
|
console.log(`WARN: ${v}`, ...I);
|
|
12911
12919
|
}, Et = (v, I) => {
|
|
12912
|
-
|
|
12920
|
+
Dr[`${v}/${I}`] || (console.log(`Deprecated as of ${v}. ${I}`), Dr[`${v}/${I}`] = !0);
|
|
12913
12921
|
}, dt = new Error();
|
|
12914
|
-
function
|
|
12922
|
+
function Mr(v, I, { key: Y }) {
|
|
12915
12923
|
let ne = 0;
|
|
12916
12924
|
const Pe = v[Y], Fe = {}, $ = {};
|
|
12917
12925
|
for (let V = 1; V <= I.length; V++)
|
|
@@ -12924,25 +12932,25 @@ function Xg() {
|
|
|
12924
12932
|
throw Dt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), dt;
|
|
12925
12933
|
if (typeof v.beginScope != "object" || v.beginScope === null)
|
|
12926
12934
|
throw Dt("beginScope must be object"), dt;
|
|
12927
|
-
|
|
12935
|
+
Mr(v, v.begin, { key: "beginScope" }), v.begin = M(v.begin, { joinWith: "" });
|
|
12928
12936
|
}
|
|
12929
12937
|
}
|
|
12930
|
-
function
|
|
12938
|
+
function Lr(v) {
|
|
12931
12939
|
if (Array.isArray(v.end)) {
|
|
12932
12940
|
if (v.skip || v.excludeEnd || v.returnEnd)
|
|
12933
12941
|
throw Dt("skip, excludeEnd, returnEnd not compatible with endScope: {}"), dt;
|
|
12934
12942
|
if (typeof v.endScope != "object" || v.endScope === null)
|
|
12935
12943
|
throw Dt("endScope must be object"), dt;
|
|
12936
|
-
|
|
12944
|
+
Mr(v, v.end, { key: "endScope" }), v.end = M(v.end, { joinWith: "" });
|
|
12937
12945
|
}
|
|
12938
12946
|
}
|
|
12939
|
-
function
|
|
12947
|
+
function Sr(v) {
|
|
12940
12948
|
v.scope && typeof v.scope == "object" && v.scope !== null && (v.beginScope = v.scope, delete v.scope);
|
|
12941
12949
|
}
|
|
12942
12950
|
function ba(v) {
|
|
12943
|
-
|
|
12951
|
+
Sr(v), typeof v.beginScope == "string" && (v.beginScope = { _wrap: v.beginScope }), typeof v.endScope == "string" && (v.endScope = { _wrap: v.endScope }), ha(v), Lr(v);
|
|
12944
12952
|
}
|
|
12945
|
-
function
|
|
12953
|
+
function kr(v) {
|
|
12946
12954
|
function I($, V) {
|
|
12947
12955
|
return new RegExp(
|
|
12948
12956
|
p($),
|
|
@@ -12968,7 +12976,7 @@ function Xg() {
|
|
|
12968
12976
|
const te = this.matcherRe.exec(V);
|
|
12969
12977
|
if (!te)
|
|
12970
12978
|
return null;
|
|
12971
|
-
const $e = te.findIndex((
|
|
12979
|
+
const $e = te.findIndex((br, Ca) => Ca > 0 && br !== void 0), Be = this.matchIndexes[$e];
|
|
12972
12980
|
return te.splice(0, $e), Object.assign(te, Be);
|
|
12973
12981
|
}
|
|
12974
12982
|
}
|
|
@@ -13030,7 +13038,7 @@ function Xg() {
|
|
|
13030
13038
|
or
|
|
13031
13039
|
].forEach((Be) => Be($, V)), $.isCompiled = !0;
|
|
13032
13040
|
let $e = null;
|
|
13033
|
-
return typeof $.keywords == "object" && $.keywords.$pattern && ($.keywords = Object.assign({}, $.keywords), $e = $.keywords.$pattern, delete $.keywords.$pattern), $e = $e || /\w+/, $.keywords && ($.keywords =
|
|
13041
|
+
return typeof $.keywords == "object" && $.keywords.$pattern && ($.keywords = Object.assign({}, $.keywords), $e = $.keywords.$pattern, delete $.keywords.$pattern), $e = $e || /\w+/, $.keywords && ($.keywords = xr($.keywords, v.case_insensitive)), te.keywordPatternRe = I($e, !0), V && ($.begin || ($.begin = /\B|\b/), te.beginRe = I(te.begin), !$.end && !$.endsWithParent && ($.end = /\B|\b/), $.end && (te.endRe = I(te.end)), te.terminatorEnd = p(te.end) || "", $.endsWithParent && V.terminatorEnd && (te.terminatorEnd += ($.end ? "|" : "") + V.terminatorEnd)), $.illegal && (te.illegalRe = I(
|
|
13034
13042
|
/** @type {RegExp | string} */
|
|
13035
13043
|
$.illegal
|
|
13036
13044
|
)), $.contains || ($.contains = []), $.contains = [].concat(...$.contains.map(function(Be) {
|
|
@@ -13050,13 +13058,13 @@ function Xg() {
|
|
|
13050
13058
|
v
|
|
13051
13059
|
);
|
|
13052
13060
|
}
|
|
13053
|
-
function
|
|
13054
|
-
return v ? v.endsWithParent ||
|
|
13061
|
+
function Pr(v) {
|
|
13062
|
+
return v ? v.endsWithParent || Pr(v.starts) : !1;
|
|
13055
13063
|
}
|
|
13056
13064
|
function fa(v) {
|
|
13057
13065
|
return v.variants && !v.cachedVariants && (v.cachedVariants = v.variants.map(function(I) {
|
|
13058
13066
|
return a(v, { variants: null }, I);
|
|
13059
|
-
})), v.cachedVariants ? v.cachedVariants :
|
|
13067
|
+
})), v.cachedVariants ? v.cachedVariants : Pr(v) ? a(v, { starts: v.starts ? a(v.starts) : null }) : Object.isFrozen(v) ? a(v) : v;
|
|
13060
13068
|
}
|
|
13061
13069
|
var Ta = "11.11.1";
|
|
13062
13070
|
class va extends Error {
|
|
@@ -13064,7 +13072,7 @@ function Xg() {
|
|
|
13064
13072
|
super(I), this.name = "HTMLInjectionError", this.html = Y;
|
|
13065
13073
|
}
|
|
13066
13074
|
}
|
|
13067
|
-
const
|
|
13075
|
+
const hr = r, Fr = a, Ur = Symbol("nomatch"), Se = 7, er = function(v) {
|
|
13068
13076
|
const I = /* @__PURE__ */ Object.create(null), Y = /* @__PURE__ */ Object.create(null), ne = [];
|
|
13069
13077
|
let Pe = !0;
|
|
13070
13078
|
const Fe = "Could not find the language '{}', did you forget to load/include a language module?", $ = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
|
@@ -13089,7 +13097,7 @@ function Xg() {
|
|
|
13089
13097
|
const de = V.languageDetectRe.exec(j);
|
|
13090
13098
|
if (de) {
|
|
13091
13099
|
const ve = Yt(de[1]);
|
|
13092
|
-
return ve || (
|
|
13100
|
+
return ve || (wr(Fe.replace("{}", de[1])), wr("Falling back to no-highlight mode for this block.", P)), ve ? de[1] : "no-highlight";
|
|
13093
13101
|
}
|
|
13094
13102
|
return j.split(/\s+/).find((ve) => te(ve) || Yt(ve));
|
|
13095
13103
|
}
|
|
@@ -13101,11 +13109,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
|
|
|
13101
13109
|
code: ve,
|
|
13102
13110
|
language: ze
|
|
13103
13111
|
};
|
|
13104
|
-
|
|
13105
|
-
const zt = bt.result ? bt.result :
|
|
13106
|
-
return zt.code = bt.code,
|
|
13112
|
+
Gr("before:highlight", bt);
|
|
13113
|
+
const zt = bt.result ? bt.result : br(bt.language, bt.code, de);
|
|
13114
|
+
return zt.code = bt.code, Gr("after:highlight", zt), zt;
|
|
13107
13115
|
}
|
|
13108
|
-
function
|
|
13116
|
+
function br(P, j, de, ve) {
|
|
13109
13117
|
const ze = /* @__PURE__ */ Object.create(null);
|
|
13110
13118
|
function bt(G, W) {
|
|
13111
13119
|
return G.keywords[W];
|
|
@@ -13123,7 +13131,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
|
|
|
13123
13131
|
const he = Tt.case_insensitive ? W[0].toLowerCase() : W[0], je = bt(ae, he);
|
|
13124
13132
|
if (je) {
|
|
13125
13133
|
const [wt, zm] = je;
|
|
13126
|
-
if (Ke.addText(se), se = "", ze[he] = (ze[he] || 0) + 1, ze[he] <= Se && (
|
|
13134
|
+
if (Ke.addText(se), se = "", ze[he] = (ze[he] || 0) + 1, ze[he] <= Se && (Hr += zm), wt.startsWith("_"))
|
|
13127
13135
|
se += W[0];
|
|
13128
13136
|
else {
|
|
13129
13137
|
const Hm = Tt.classNameAliases[wt] || wt;
|
|
@@ -13135,7 +13143,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
|
|
|
13135
13143
|
}
|
|
13136
13144
|
se += Ce.substring(G), Ke.addText(se);
|
|
13137
13145
|
}
|
|
13138
|
-
function
|
|
13146
|
+
function Yr() {
|
|
13139
13147
|
if (Ce === "") return;
|
|
13140
13148
|
let G = null;
|
|
13141
13149
|
if (typeof ae.subLanguage == "string") {
|
|
@@ -13143,14 +13151,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
|
|
|
13143
13151
|
Ke.addText(Ce);
|
|
13144
13152
|
return;
|
|
13145
13153
|
}
|
|
13146
|
-
G =
|
|
13154
|
+
G = br(ae.subLanguage, Ce, !0, ll[ae.subLanguage]), ll[ae.subLanguage] = /** @type {CompiledMode} */
|
|
13147
13155
|
G._top;
|
|
13148
13156
|
} else
|
|
13149
13157
|
G = ya(Ce, ae.subLanguage.length ? ae.subLanguage : null);
|
|
13150
|
-
ae.relevance > 0 && (
|
|
13158
|
+
ae.relevance > 0 && (Hr += G.relevance), Ke.__addSublanguage(G._emitter, G.language);
|
|
13151
13159
|
}
|
|
13152
13160
|
function it() {
|
|
13153
|
-
ae.subLanguage != null ?
|
|
13161
|
+
ae.subLanguage != null ? Yr() : zt(), Ce = "";
|
|
13154
13162
|
}
|
|
13155
13163
|
function ft(G, W) {
|
|
13156
13164
|
G !== "" && (Ke.startScope(W), Ke.addText(G), Ke.endScope());
|
|
@@ -13199,11 +13207,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
|
|
|
13199
13207
|
function Bm(G) {
|
|
13200
13208
|
const W = G[0], se = j.substring(G.index), he = ol(ae, G, se);
|
|
13201
13209
|
if (!he)
|
|
13202
|
-
return
|
|
13210
|
+
return Ur;
|
|
13203
13211
|
const je = ae;
|
|
13204
13212
|
ae.endScope && ae.endScope._wrap ? (it(), ft(W, ae.endScope._wrap)) : ae.endScope && ae.endScope._multi ? (it(), nl(ae.endScope, G)) : je.skip ? Ce += W : (je.returnEnd || je.excludeEnd || (Ce += W), it(), je.excludeEnd && (Ce = W));
|
|
13205
13213
|
do
|
|
13206
|
-
ae.scope && Ke.closeNode(), !ae.skip && !ae.subLanguage && (
|
|
13214
|
+
ae.scope && Ke.closeNode(), !ae.skip && !ae.subLanguage && (Hr += ae.relevance), ae = ae.parent;
|
|
13207
13215
|
while (ae !== he.parent);
|
|
13208
13216
|
return he.starts && il(he.starts, G), je.returnEnd ? 0 : W.length;
|
|
13209
13217
|
}
|
|
@@ -13213,26 +13221,26 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
|
|
|
13213
13221
|
W.scope && G.unshift(W.scope);
|
|
13214
13222
|
G.forEach((W) => Ke.openNode(W));
|
|
13215
13223
|
}
|
|
13216
|
-
let
|
|
13224
|
+
let zr = {};
|
|
13217
13225
|
function sl(G, W) {
|
|
13218
13226
|
const se = W && W[0];
|
|
13219
13227
|
if (Ce += G, se == null)
|
|
13220
13228
|
return it(), 0;
|
|
13221
|
-
if (
|
|
13229
|
+
if (zr.type === "begin" && W.type === "end" && zr.index === W.index && se === "") {
|
|
13222
13230
|
if (Ce += j.slice(W.index, W.index + 1), !Pe) {
|
|
13223
13231
|
const he = new Error(`0 width match regex (${P})`);
|
|
13224
|
-
throw he.languageName = P, he.badRule =
|
|
13232
|
+
throw he.languageName = P, he.badRule = zr.rule, he;
|
|
13225
13233
|
}
|
|
13226
13234
|
return 1;
|
|
13227
13235
|
}
|
|
13228
|
-
if (
|
|
13236
|
+
if (zr = W, W.type === "begin")
|
|
13229
13237
|
return Um(W);
|
|
13230
13238
|
if (W.type === "illegal" && !de) {
|
|
13231
13239
|
const he = new Error('Illegal lexeme "' + se + '" for mode "' + (ae.scope || "<unnamed>") + '"');
|
|
13232
13240
|
throw he.mode = ae, he;
|
|
13233
13241
|
} else if (W.type === "end") {
|
|
13234
13242
|
const he = Bm(W);
|
|
13235
|
-
if (he !==
|
|
13243
|
+
if (he !== Ur)
|
|
13236
13244
|
return he;
|
|
13237
13245
|
}
|
|
13238
13246
|
if (W.type === "illegal" && se === "")
|
|
@@ -13245,11 +13253,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
|
|
|
13245
13253
|
const Tt = Yt(P);
|
|
13246
13254
|
if (!Tt)
|
|
13247
13255
|
throw Dt(Fe.replace("{}", P)), new Error('Unknown language: "' + P + '"');
|
|
13248
|
-
const Ym =
|
|
13256
|
+
const Ym = kr(Tt);
|
|
13249
13257
|
let Ra = "", ae = ve || Ym;
|
|
13250
13258
|
const ll = {}, Ke = new V.__emitter(V);
|
|
13251
13259
|
Gm();
|
|
13252
|
-
let Ce = "",
|
|
13260
|
+
let Ce = "", Hr = 0, tr = 0, Oa = 0, Aa = !1;
|
|
13253
13261
|
try {
|
|
13254
13262
|
if (Tt.__emitTokens)
|
|
13255
13263
|
Tt.__emitTokens(j, Ke);
|
|
@@ -13266,7 +13274,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
|
|
|
13266
13274
|
return Ke.finalize(), Ra = Ke.toHTML(), {
|
|
13267
13275
|
language: P,
|
|
13268
13276
|
value: Ra,
|
|
13269
|
-
relevance:
|
|
13277
|
+
relevance: Hr,
|
|
13270
13278
|
illegal: !1,
|
|
13271
13279
|
_emitter: Ke,
|
|
13272
13280
|
_top: ae
|
|
@@ -13275,7 +13283,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
|
|
|
13275
13283
|
if (G.message && G.message.includes("Illegal"))
|
|
13276
13284
|
return {
|
|
13277
13285
|
language: P,
|
|
13278
|
-
value:
|
|
13286
|
+
value: hr(j),
|
|
13279
13287
|
illegal: !0,
|
|
13280
13288
|
relevance: 0,
|
|
13281
13289
|
_illegalBy: {
|
|
@@ -13290,7 +13298,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
|
|
|
13290
13298
|
if (Pe)
|
|
13291
13299
|
return {
|
|
13292
13300
|
language: P,
|
|
13293
|
-
value:
|
|
13301
|
+
value: hr(j),
|
|
13294
13302
|
illegal: !1,
|
|
13295
13303
|
relevance: 0,
|
|
13296
13304
|
errorRaised: G,
|
|
@@ -13302,7 +13310,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
|
|
|
13302
13310
|
}
|
|
13303
13311
|
function Ca(P) {
|
|
13304
13312
|
const j = {
|
|
13305
|
-
value:
|
|
13313
|
+
value: hr(P),
|
|
13306
13314
|
illegal: !1,
|
|
13307
13315
|
relevance: 0,
|
|
13308
13316
|
_top: $,
|
|
@@ -13313,7 +13321,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
|
|
|
13313
13321
|
function ya(P, j) {
|
|
13314
13322
|
j = j || V.languages || Object.keys(I);
|
|
13315
13323
|
const de = Ca(P), ve = j.filter(Yt).filter(al).map(
|
|
13316
|
-
(it) =>
|
|
13324
|
+
(it) => br(it, P, !1)
|
|
13317
13325
|
);
|
|
13318
13326
|
ve.unshift(de);
|
|
13319
13327
|
const ze = ve.sort((it, ft) => {
|
|
@@ -13325,8 +13333,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
|
|
|
13325
13333
|
return -1;
|
|
13326
13334
|
}
|
|
13327
13335
|
return 0;
|
|
13328
|
-
}), [bt, zt] = ze,
|
|
13329
|
-
return
|
|
13336
|
+
}), [bt, zt] = ze, Yr = bt;
|
|
13337
|
+
return Yr.secondBest = zt, Yr;
|
|
13330
13338
|
}
|
|
13331
13339
|
function Rm(P, j, de) {
|
|
13332
13340
|
const ve = j && Y[j] || de;
|
|
@@ -13336,7 +13344,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
|
|
|
13336
13344
|
let j = null;
|
|
13337
13345
|
const de = $e(P);
|
|
13338
13346
|
if (te(de)) return;
|
|
13339
|
-
if (
|
|
13347
|
+
if (Gr(
|
|
13340
13348
|
"before:highlightElement",
|
|
13341
13349
|
{ el: P, language: de }
|
|
13342
13350
|
), P.dataset.highlighted) {
|
|
@@ -13358,21 +13366,21 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
|
|
|
13358
13366
|
}, ze.secondBest && (P.secondBest = {
|
|
13359
13367
|
language: ze.secondBest.language,
|
|
13360
13368
|
relevance: ze.secondBest.relevance
|
|
13361
|
-
}),
|
|
13369
|
+
}), Gr("after:highlightElement", { el: P, result: ze, text: ve });
|
|
13362
13370
|
}
|
|
13363
13371
|
function Om(P) {
|
|
13364
|
-
V =
|
|
13372
|
+
V = Fr(V, P);
|
|
13365
13373
|
}
|
|
13366
13374
|
const Am = () => {
|
|
13367
|
-
|
|
13375
|
+
Br(), Et("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
13368
13376
|
};
|
|
13369
13377
|
function Im() {
|
|
13370
|
-
|
|
13378
|
+
Br(), Et("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
|
13371
13379
|
}
|
|
13372
13380
|
let tl = !1;
|
|
13373
|
-
function
|
|
13381
|
+
function Br() {
|
|
13374
13382
|
function P() {
|
|
13375
|
-
|
|
13383
|
+
Br();
|
|
13376
13384
|
}
|
|
13377
13385
|
if (document.readyState === "loading") {
|
|
13378
13386
|
tl || window.addEventListener("DOMContentLoaded", P, !1), tl = !0;
|
|
@@ -13431,7 +13439,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
|
|
|
13431
13439
|
const j = ne.indexOf(P);
|
|
13432
13440
|
j !== -1 && ne.splice(j, 1);
|
|
13433
13441
|
}
|
|
13434
|
-
function
|
|
13442
|
+
function Gr(P, j) {
|
|
13435
13443
|
const de = P;
|
|
13436
13444
|
ne.forEach(function(ve) {
|
|
13437
13445
|
ve[de] && ve[de](j);
|
|
@@ -13443,7 +13451,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
|
|
|
13443
13451
|
Object.assign(v, {
|
|
13444
13452
|
highlight: Be,
|
|
13445
13453
|
highlightAuto: ya,
|
|
13446
|
-
highlightAll:
|
|
13454
|
+
highlightAll: Br,
|
|
13447
13455
|
highlightElement: Na,
|
|
13448
13456
|
// TODO: Remove with v12 API
|
|
13449
13457
|
highlightBlock: Pm,
|
|
@@ -13456,7 +13464,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
|
|
|
13456
13464
|
getLanguage: Yt,
|
|
13457
13465
|
registerAliases: rl,
|
|
13458
13466
|
autoDetection: al,
|
|
13459
|
-
inherit:
|
|
13467
|
+
inherit: Fr,
|
|
13460
13468
|
addPlugin: Lm,
|
|
13461
13469
|
removePlugin: km
|
|
13462
13470
|
}), v.debugMode = function() {
|
|
@@ -57258,17 +57266,17 @@ function ob() {
|
|
|
57258
57266
|
At("#"),
|
|
57259
57267
|
or
|
|
57260
57268
|
]
|
|
57261
|
-
}, xt = { match: r(/`/, A, /`/) },
|
|
57269
|
+
}, xt = { match: r(/`/, A, /`/) }, xr = {
|
|
57262
57270
|
className: "variable",
|
|
57263
57271
|
match: /\$\d+/
|
|
57264
57272
|
}, Sa = {
|
|
57265
57273
|
className: "variable",
|
|
57266
57274
|
match: `\\$${R}+`
|
|
57267
|
-
},
|
|
57275
|
+
}, Er = [
|
|
57268
57276
|
xt,
|
|
57269
|
-
|
|
57277
|
+
xr,
|
|
57270
57278
|
Sa
|
|
57271
|
-
],
|
|
57279
|
+
], Dr = {
|
|
57272
57280
|
match: /(@|#(un)?)available/,
|
|
57273
57281
|
scope: "keyword",
|
|
57274
57282
|
starts: { contains: [
|
|
@@ -57286,13 +57294,13 @@ function ob() {
|
|
|
57286
57294
|
}, Dt = {
|
|
57287
57295
|
scope: "keyword",
|
|
57288
57296
|
match: r(/@/, n(...M), e(n(/\(/, /\s+/)))
|
|
57289
|
-
},
|
|
57297
|
+
}, wr = {
|
|
57290
57298
|
scope: "meta",
|
|
57291
57299
|
match: r(/@/, A)
|
|
57292
57300
|
}, Et = [
|
|
57293
|
-
|
|
57301
|
+
Dr,
|
|
57294
57302
|
Dt,
|
|
57295
|
-
|
|
57303
|
+
wr
|
|
57296
57304
|
], dt = {
|
|
57297
57305
|
match: e(/\b[A-Z]/),
|
|
57298
57306
|
relevance: 0,
|
|
@@ -57324,7 +57332,7 @@ function ob() {
|
|
|
57324
57332
|
relevance: 0
|
|
57325
57333
|
}
|
|
57326
57334
|
]
|
|
57327
|
-
},
|
|
57335
|
+
}, Mr = {
|
|
57328
57336
|
begin: /</,
|
|
57329
57337
|
end: />/,
|
|
57330
57338
|
keywords: fe,
|
|
@@ -57336,12 +57344,12 @@ function ob() {
|
|
|
57336
57344
|
dt
|
|
57337
57345
|
]
|
|
57338
57346
|
};
|
|
57339
|
-
dt.contains.push(
|
|
57347
|
+
dt.contains.push(Mr);
|
|
57340
57348
|
const ha = {
|
|
57341
57349
|
match: r(A, /\s*:/),
|
|
57342
57350
|
keywords: "_|0",
|
|
57343
57351
|
relevance: 0
|
|
57344
|
-
},
|
|
57352
|
+
}, Lr = {
|
|
57345
57353
|
begin: /\(/,
|
|
57346
57354
|
end: /\)/,
|
|
57347
57355
|
relevance: 0,
|
|
@@ -57356,11 +57364,11 @@ function ob() {
|
|
|
57356
57364
|
...Le,
|
|
57357
57365
|
ce,
|
|
57358
57366
|
ct,
|
|
57359
|
-
...
|
|
57367
|
+
...Er,
|
|
57360
57368
|
...Et,
|
|
57361
57369
|
dt
|
|
57362
57370
|
]
|
|
57363
|
-
},
|
|
57371
|
+
}, Sr = {
|
|
57364
57372
|
begin: /</,
|
|
57365
57373
|
end: />/,
|
|
57366
57374
|
keywords: "repeat each",
|
|
@@ -57385,7 +57393,7 @@ function ob() {
|
|
|
57385
57393
|
match: A
|
|
57386
57394
|
}
|
|
57387
57395
|
]
|
|
57388
|
-
},
|
|
57396
|
+
}, kr = {
|
|
57389
57397
|
begin: /\(/,
|
|
57390
57398
|
end: /\)/,
|
|
57391
57399
|
keywords: fe,
|
|
@@ -57398,11 +57406,11 @@ function ob() {
|
|
|
57398
57406
|
ct,
|
|
57399
57407
|
...Et,
|
|
57400
57408
|
dt,
|
|
57401
|
-
|
|
57409
|
+
Lr
|
|
57402
57410
|
],
|
|
57403
57411
|
endsParent: !0,
|
|
57404
57412
|
illegal: /["']/
|
|
57405
|
-
},
|
|
57413
|
+
}, Pr = {
|
|
57406
57414
|
match: [
|
|
57407
57415
|
/(func|macro)/,
|
|
57408
57416
|
/\s+/,
|
|
@@ -57413,8 +57421,8 @@ function ob() {
|
|
|
57413
57421
|
3: "title.function"
|
|
57414
57422
|
},
|
|
57415
57423
|
contains: [
|
|
57416
|
-
|
|
57417
|
-
|
|
57424
|
+
Sr,
|
|
57425
|
+
kr,
|
|
57418
57426
|
J
|
|
57419
57427
|
],
|
|
57420
57428
|
illegal: [
|
|
@@ -57428,8 +57436,8 @@ function ob() {
|
|
|
57428
57436
|
],
|
|
57429
57437
|
className: { 1: "keyword" },
|
|
57430
57438
|
contains: [
|
|
57431
|
-
|
|
57432
|
-
|
|
57439
|
+
Sr,
|
|
57440
|
+
kr,
|
|
57433
57441
|
J
|
|
57434
57442
|
],
|
|
57435
57443
|
illegal: /\[|%/
|
|
@@ -57459,7 +57467,7 @@ function ob() {
|
|
|
57459
57467
|
...u
|
|
57460
57468
|
],
|
|
57461
57469
|
end: /}/
|
|
57462
|
-
},
|
|
57470
|
+
}, hr = {
|
|
57463
57471
|
match: [
|
|
57464
57472
|
/class\b/,
|
|
57465
57473
|
/\s+/,
|
|
@@ -57472,7 +57480,7 @@ function ob() {
|
|
|
57472
57480
|
3: "keyword",
|
|
57473
57481
|
5: "title.function"
|
|
57474
57482
|
}
|
|
57475
|
-
},
|
|
57483
|
+
}, Fr = {
|
|
57476
57484
|
match: [
|
|
57477
57485
|
/class\b/,
|
|
57478
57486
|
/\s+/,
|
|
@@ -57482,7 +57490,7 @@ function ob() {
|
|
|
57482
57490
|
1: "keyword",
|
|
57483
57491
|
3: "keyword"
|
|
57484
57492
|
}
|
|
57485
|
-
},
|
|
57493
|
+
}, Ur = {
|
|
57486
57494
|
begin: [
|
|
57487
57495
|
/(struct|protocol|class|extension|enum|actor)/,
|
|
57488
57496
|
/\s+/,
|
|
@@ -57495,7 +57503,7 @@ function ob() {
|
|
|
57495
57503
|
},
|
|
57496
57504
|
keywords: fe,
|
|
57497
57505
|
contains: [
|
|
57498
|
-
|
|
57506
|
+
Sr,
|
|
57499
57507
|
...Ie,
|
|
57500
57508
|
{
|
|
57501
57509
|
begin: /:/,
|
|
@@ -57521,7 +57529,7 @@ function ob() {
|
|
|
57521
57529
|
...Le,
|
|
57522
57530
|
ce,
|
|
57523
57531
|
ct,
|
|
57524
|
-
...
|
|
57532
|
+
...Er
|
|
57525
57533
|
];
|
|
57526
57534
|
er.contains = [
|
|
57527
57535
|
..._t,
|
|
@@ -57540,11 +57548,11 @@ function ob() {
|
|
|
57540
57548
|
keywords: fe,
|
|
57541
57549
|
contains: [
|
|
57542
57550
|
...Q,
|
|
57543
|
-
Lr,
|
|
57544
|
-
fa,
|
|
57545
|
-
Er,
|
|
57546
|
-
kr,
|
|
57547
57551
|
Pr,
|
|
57552
|
+
fa,
|
|
57553
|
+
hr,
|
|
57554
|
+
Fr,
|
|
57555
|
+
Ur,
|
|
57548
57556
|
Ta,
|
|
57549
57557
|
va,
|
|
57550
57558
|
{
|
|
@@ -57559,10 +57567,10 @@ function ob() {
|
|
|
57559
57567
|
...Le,
|
|
57560
57568
|
ce,
|
|
57561
57569
|
ct,
|
|
57562
|
-
...
|
|
57570
|
+
...Er,
|
|
57563
57571
|
...Et,
|
|
57564
57572
|
dt,
|
|
57565
|
-
|
|
57573
|
+
Lr
|
|
57566
57574
|
]
|
|
57567
57575
|
};
|
|
57568
57576
|
}
|
|
@@ -61790,10 +61798,10 @@ ${a}
|
|
|
61790
61798
|
return /* @__PURE__ */ vt.createElement("div", { id: e, className: r }, wu(a));
|
|
61791
61799
|
};
|
|
61792
61800
|
function Hb(t, e, r, a) {
|
|
61793
|
-
const n =
|
|
61794
|
-
|
|
61801
|
+
const n = qr.useRef(r), i = qr.useRef(a);
|
|
61802
|
+
qr.useEffect(() => {
|
|
61795
61803
|
n.current = r, i.current = a;
|
|
61796
|
-
}),
|
|
61804
|
+
}), qr.useEffect(() => {
|
|
61797
61805
|
const o = t && "current" in t ? t.current : t;
|
|
61798
61806
|
if (!o) return;
|
|
61799
61807
|
let s = 0;
|