@richmd/react 2.0.0-rc.1 → 2.0.0-rc.2

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 CHANGED
@@ -1,5 +1,5 @@
1
- import * as Ur from "react";
2
- import vt, { useState as qm, useMemo as Vm, useCallback as va } from "react";
1
+ import * as Br from "react";
2
+ import vt, { useState as qm, useMemo as Vm, useCallback as Ca } from "react";
3
3
  import wu from "html-react-parser";
4
4
  class me {
5
5
  constructor(e, r) {
@@ -85,7 +85,7 @@ const ue = {
85
85
  InlineKatex: op
86
86
  }, sp = /^\s*$/, lp = (t) => t.length === 0 || sp.test(t), nr = {
87
87
  isEmpty: lp
88
- }, rt = 0, Ca = 1, ya = 2, Na = 3, Ra = 4, Oa = 5, Aa = 6, Ia = 7, xa = 8, sl = 9, Br = 10, Gr = 11, Da = 12, Kt = (t) => {
88
+ }, rt = 0, ya = 1, Na = 2, Ra = 3, Oa = 4, Aa = 5, Ia = 6, xa = 7, Da = 8, sl = 9, Gr = 10, Yr = 11, wa = 12, Kt = (t) => {
89
89
  const e = [];
90
90
  let r = "", a = rt, n = !1;
91
91
  const i = [];
@@ -98,30 +98,30 @@ const ue = {
98
98
  switch (o) {
99
99
  case "*":
100
100
  if (t[s + 1] === "*") {
101
- s += 1, t[s + 1] === "*" ? (s += 1, a === Na ? (e.push(new ue.EmItalic(r)), a = rt) : (e.push(new ue.Text(r)), a = Na), r = "") : (a === ya ? (e.push(new ue.Em(r)), a = rt) : (e.push(new ue.Text(r)), a = ya), r = "");
101
+ s += 1, t[s + 1] === "*" ? (s += 1, a === Ra ? (e.push(new ue.EmItalic(r)), a = rt) : (e.push(new ue.Text(r)), a = Ra), r = "") : (a === Na ? (e.push(new ue.Em(r)), a = rt) : (e.push(new ue.Text(r)), a = Na), r = "");
102
102
  continue;
103
103
  }
104
- a === Ca ? (e.push(new ue.Italic(r)), a = rt) : (e.push(new ue.Text(r)), a = Ca), r = "";
104
+ a === ya ? (e.push(new ue.Italic(r)), a = rt) : (e.push(new ue.Text(r)), a = ya), r = "";
105
105
  continue;
106
106
  case "_":
107
107
  if (t[s + 1] === "_") {
108
- s += 1, t[s + 1] === "_" ? (s += 1, a === Aa ? (e.push(new ue.EmItalic(r)), a = rt) : (e.push(new ue.Text(r)), a = Aa), r = "") : (a === Oa ? (e.push(new ue.Em(r)), a = rt) : (e.push(new ue.Text(r)), a = Oa), r = "");
108
+ s += 1, t[s + 1] === "_" ? (s += 1, a === Ia ? (e.push(new ue.EmItalic(r)), a = rt) : (e.push(new ue.Text(r)), a = Ia), r = "") : (a === Aa ? (e.push(new ue.Em(r)), a = rt) : (e.push(new ue.Text(r)), a = Aa), r = "");
109
109
  continue;
110
110
  }
111
- a === Ra ? (e.push(new ue.Italic(r)), a = rt) : (e.push(new ue.Text(r)), a = Ra), r = "";
111
+ a === Oa ? (e.push(new ue.Italic(r)), a = rt) : (e.push(new ue.Text(r)), a = Oa), r = "";
112
112
  continue;
113
113
  case "~":
114
114
  if (t[s + 1] === "~") {
115
- s += 1, a === Ia ? (e.push(new ue.Strikethrough(r)), a = rt) : (e.push(new ue.Text(r)), a = Ia), r = "";
115
+ s += 1, a === xa ? (e.push(new ue.Strikethrough(r)), a = rt) : (e.push(new ue.Text(r)), a = xa), r = "";
116
116
  continue;
117
117
  }
118
118
  r += o;
119
119
  continue;
120
120
  case "`":
121
- a === Br ? (e.push(new ue.InlineCode(r)), a = rt) : (nr.isEmpty(r) || e.push(new ue.Text(r)), a = Br), r = "";
121
+ a === Gr ? (e.push(new ue.InlineCode(r)), a = rt) : (nr.isEmpty(r) || e.push(new ue.Text(r)), a = Gr), r = "";
122
122
  continue;
123
123
  case "$":
124
- a === Gr ? (e.push(new ue.InlineKatex(r)), a = rt) : (nr.isEmpty(r) || e.push(new ue.Text(r)), a = Gr), r = "";
124
+ a === Yr ? (e.push(new ue.InlineKatex(r)), a = rt) : (nr.isEmpty(r) || e.push(new ue.Text(r)), a = Yr), r = "";
125
125
  continue;
126
126
  case "<": {
127
127
  nr.isEmpty(r) || (i.length === 0 ? e.push(new ue.Text(r)) : i[i.length - 1] += r, r = "");
@@ -141,23 +141,23 @@ const ue = {
141
141
  continue;
142
142
  }
143
143
  case "!":
144
- nr.isEmpty(r) || e.push(new ue.Text(r)), r = "", a = xa, r = o;
144
+ nr.isEmpty(r) || e.push(new ue.Text(r)), r = "", a = Da, r = o;
145
145
  continue;
146
146
  case "@":
147
- nr.isEmpty(r) || e.push(new ue.Text(r)), r = "", a = Da, r = o;
147
+ nr.isEmpty(r) || e.push(new ue.Text(r)), r = "", a = wa, r = o;
148
148
  continue;
149
149
  case "[":
150
- if (a !== xa && a !== Da) {
150
+ if (a !== Da && a !== wa) {
151
151
  e.push(new ue.Text(r)), a = sl, r = o;
152
152
  continue;
153
153
  }
154
154
  r += o;
155
155
  continue;
156
156
  case ")":
157
- r += o, a === xa ? (e.push(new ue.Image(r)), a = rt, r = "") : a === Da ? (e.push(new ue.Video(r)), a = rt, r = "") : a === sl && (e.push(new ue.Link(r)), a = rt, r = "");
157
+ r += o, a === Da ? (e.push(new ue.Image(r)), a = rt, r = "") : a === wa ? (e.push(new ue.Video(r)), a = rt, r = "") : a === sl && (e.push(new ue.Link(r)), a = rt, r = "");
158
158
  continue;
159
159
  case "\\":
160
- if (a !== Br && a !== Gr) {
160
+ if (a !== Gr && a !== Yr) {
161
161
  n = !0;
162
162
  continue;
163
163
  }
@@ -174,31 +174,31 @@ const ue = {
174
174
  else {
175
175
  let o = "";
176
176
  switch (a) {
177
- case Ca:
177
+ case ya:
178
178
  o = "*";
179
179
  break;
180
- case ya:
180
+ case Na:
181
181
  o = "**";
182
182
  break;
183
- case Na:
183
+ case Ra:
184
184
  o = "***";
185
185
  break;
186
- case Ra:
186
+ case Oa:
187
187
  o = "_";
188
188
  break;
189
- case Oa:
189
+ case Aa:
190
190
  o = "__";
191
191
  break;
192
- case Aa:
192
+ case Ia:
193
193
  o = "___";
194
194
  break;
195
- case Ia:
195
+ case xa:
196
196
  o = "~~";
197
197
  break;
198
- case Br:
198
+ case Gr:
199
199
  o = "`";
200
200
  break;
201
- case Gr:
201
+ case Yr:
202
202
  o = "$";
203
203
  break;
204
204
  }
@@ -332,13 +332,13 @@ const xe = {
332
332
  StartSlide: Rp,
333
333
  EndSlide: Op,
334
334
  Mode: cp
335
- }, ll = /^(#{1,})\s(.+)$/, cl = /^(\s*)?(?:\-|\*)\s(.+)$/, dl = /^(\s*)?([0-9]+)\.\s(.+)$/, Ap = /^[\*\-_\s]+$/, Ip = /^[`~]{3}(.*)|[`~]{3}(.*)\b[\l]+\b\:\b[\u\l]+\b$/, _l = /^(>{1,})\s?(.+)$/, ul = /(?:\s*)?\|(.+)\|(?:\s*)$/, xp = /^[\$]{2}(.*)$/, Dp = /^[\$]{2}\s(.+)\s[\$]{2}$/, wp = /^[\=]{3}(.*)|[\=]{3}(.*)\b[\l]+\b$/, Mp = /^\:\>(\b[\w_\.\/]+\b|[\u3040-\u309F\u30A0-\u30FF\u3400-\u9FFF])+$/, Lp = /^\:\>$/, kp = /^\:\:\b[a-z]+\b|\:\:\b[a-z]+\b\.\b[a-z]+\b|\:\:\.\b[a-z]+\b$/, Pp = /^\:\:$/, Fp = /^\:use\sslide\:$/, Up = /^\:\-{3}\:(title|content)|\:\-{3}\:(title|content)\.\b[a-z]+\b$/, Bp = /^\:\<\-{2}\:(title|content)|\:\<\-{2}\:(title|content)\.\b[a-z]+\b$/, Gp = /^\:\-{2}\>\:(title|content)|\:\-{2}\>\:(title|content)\.\b[a-z]+\b$/, Yp = /^\:\-{3}\:$/, Oe = 0, wa = 1, ml = 2, pl = 3, Ma = 4, gl = 0, El = 1;
335
+ }, ll = /^(#{1,})\s(.+)$/, cl = /^(\s*)?(?:\-|\*)\s(.+)$/, dl = /^(\s*)?([0-9]+)\.\s(.+)$/, Ap = /^[\*\-_\s]+$/, Ip = /^[`~]{3}(.*)|[`~]{3}(.*)\b[\l]+\b\:\b[\u\l]+\b$/, _l = /^(>{1,})\s?(.+)$/, ul = /(?:\s*)?\|(.+)\|(?:\s*)$/, xp = /^[\$]{2}(.*)$/, Dp = /^[\$]{2}\s(.+)\s[\$]{2}$/, wp = /^[\=]{3}(.*)|[\=]{3}(.*)\b[\l]+\b$/, Mp = /^\:\>(\b[\w_\.\/]+\b|[\u3040-\u309F\u30A0-\u30FF\u3400-\u9FFF])+$/, Lp = /^\:\>$/, kp = /^\:\:\b[a-z]+\b|\:\:\b[a-z]+\b\.\b[a-z]+\b|\:\:\.\b[a-z]+\b$/, Pp = /^\:\:$/, Fp = /^\:use\sslide\:$/, Up = /^\:\-{3}\:(title|content)|\:\-{3}\:(title|content)\.\b[a-z]+\b$/, Bp = /^\:\<\-{2}\:(title|content)|\:\<\-{2}\:(title|content)\.\b[a-z]+\b$/, Gp = /^\:\-{2}\>\:(title|content)|\:\-{2}\>\:(title|content)\.\b[a-z]+\b$/, Yp = /^\:\-{3}\:$/, Ne = 0, Ma = 1, ml = 2, pl = 3, hr = 4, gl = 0, El = 1;
336
336
  let lr;
337
337
  const zp = (t) => {
338
338
  const e = [];
339
339
  t && !/\n$/.test(t) && (t += `
340
340
  `);
341
- let r = "", a = "", n = Oe, i = gl, s = [], o, c = "", _ = "", u = "default";
341
+ let r = "", a = "", n = Ne, i = gl, s = [], o, c = "", _ = "", u = "default";
342
342
  const p = (E) => {
343
343
  s.length > 0 && (e.push(new xe.Table(s)), s = []), nr.isEmpty(E) || e.push(new xe.Paragraph(E));
344
344
  };
@@ -348,67 +348,65 @@ const zp = (t) => {
348
348
  if (S === `
349
349
  `) {
350
350
  if (e.length === 0 && i === gl)
351
- Fp.test(a) ? (e.push(new xe.Mode("slide")), i = El, n = Ma) : e.push(new xe.Mode("default"));
352
- else if (i === El) {
353
- if (Up.test(a)) {
354
- p(r);
355
- const h = a.replace(/\:\-{3}:/, "").trim().split(".");
356
- e.push(new xe.StartSlide("center", h[0], h[1] ?? "default")), n = Oe;
357
- } else if (Bp.test(a)) {
358
- p(r);
359
- const h = a.replace(/\:\<\-{2}:/, "").trim().split(".");
360
- e.push(new xe.StartSlide("left", h[0], h[1] ?? "default")), n = Oe;
361
- } else if (Gp.test(a)) {
362
- p(r);
363
- const h = a.replace(/\:\-{2}\>:/, "").trim().split(".");
364
- e.push(new xe.StartSlide("right", h[0], h[1] ?? "default")), n = Oe;
365
- } else Yp.test(a) && (p(r), e.push(new xe.EndSlide()), n = Ma);
366
- (n === Ma || n === Oe) && (r = "");
367
- }
368
- if (n === Oe && Mp.test(a)) {
351
+ Fp.test(a) ? (e.push(new xe.Mode("slide")), i = El, n = hr) : e.push(new xe.Mode("default"));
352
+ else if (n === hr && Up.test(a)) {
353
+ p(r);
354
+ const h = a.replace(/\:\-{3}:/, "").trim().split(".");
355
+ e.push(new xe.StartSlide("center", h[0], h[1] ?? "default")), n = Ne, r = "";
356
+ } else if (n === hr && Bp.test(a)) {
357
+ p(r);
358
+ const h = a.replace(/\:\<\-{2}:/, "").trim().split(".");
359
+ e.push(new xe.StartSlide("left", h[0], h[1] ?? "default")), n = Ne, r = "";
360
+ } else if (n === hr && Gp.test(a)) {
361
+ p(r);
362
+ const h = a.replace(/\:\-{2}\>:/, "").trim().split(".");
363
+ e.push(new xe.StartSlide("right", h[0], h[1] ?? "default")), n = Ne, r = "";
364
+ } else if (n === Ne && Yp.test(a))
365
+ p(r), e.push(new xe.EndSlide()), n = hr, i = El, r = "";
366
+ else if (n === Ne && Mp.test(a)) {
369
367
  p(r);
370
368
  const h = a.replace(/\:\>/, "").trim();
371
369
  e.push(new xe.StartDetails(h)), r = "";
372
- } else if (n === Oe && Lp.test(a))
370
+ } else if (n === Ne && Lp.test(a))
373
371
  p(r), e.push(new xe.EndDetails()), r = "";
374
- else if (n === Oe && kp.test(a)) {
372
+ else if (n === Ne && kp.test(a)) {
375
373
  p(r);
376
374
  const h = a.replace(/\:\:/, "").trim();
377
375
  h ? lr = h.split(".") : lr = ["span", ""], e.push(new xe.StartTag(lr[0] ?? "span", lr[1])), r = "";
378
- } else if (n === Oe && Pp.test(a))
376
+ } else if (n === Ne && Pp.test(a))
379
377
  p(r), e.push(new xe.EndTag(lr ? lr[0] : "div")), r = "";
380
378
  else if (Ip.test(a))
381
- if (n === wa)
382
- e.push(new xe.Code(r.trim(), c, _)), c = "", _ = "", n = Oe, r = "";
383
- else if (n === Oe) {
379
+ if (n === Ma)
380
+ e.push(new xe.Code(r.trim(), c, _)), c = "", _ = "", n = Ne, r = "";
381
+ else if (n === Ne) {
384
382
  p(r);
385
383
  const h = a.replace(/\`\`\`/, "").trim().split(":");
386
- c = h[0], _ = h[1], n = wa, r = "";
384
+ c = h[0], _ = h[1], n = Ma, r = "";
387
385
  } else
388
386
  r += a !== "" ? `${a}
389
387
  ` : `
390
388
  `;
391
- else if (n === Oe && Dp.test(a)) {
389
+ else if (n === Ne && Dp.test(a)) {
392
390
  p(r), r = "";
393
391
  const h = a.replace(/\$\$/g, "").trim();
394
392
  e.push(new xe.Katex(h));
395
393
  } else if (xp.test(a))
396
- n === ml ? (e.push(new xe.Katex(r.trim())), n = Oe, r = "") : n === Oe ? (p(r), n = ml, r = "") : r += a !== "" ? `${a}
394
+ n === ml ? (e.push(new xe.Katex(r.trim())), n = Ne, r = "") : n === Ne ? (p(r), n = ml, r = "") : r += a !== "" ? `${a}
397
395
  ` : `
398
396
  `;
399
397
  else if (wp.test(a))
400
- n === pl ? (e.push(new xe.ColorBlock(r.trim(), u)), u = "default", n = Oe, r = "") : n === Oe ? (p(r), u = a.replace(/\=\=\=/, "").trim(), u === "" && (u = "default"), n = pl, r = "") : r += a !== "" ? `${a}
398
+ n === pl ? (e.push(new xe.ColorBlock(r.trim(), u)), u = "default", n = Ne, r = "") : n === Ne ? (p(r), u = a.replace(/\=\=\=/, "").trim(), u === "" && (u = "default"), n = pl, r = "") : r += a !== "" ? `${a}
401
399
  ` : `
402
400
  `;
403
- else if (n === Oe && a.match(_l) !== null) {
401
+ else if (n === Ne && a.match(_l) !== null) {
404
402
  if (o = a.match(_l), o === null) continue;
405
403
  p(r), e.push(new xe.Blockquote(o[2], o[1].length)), r = "";
406
- } else if (n === Oe && Ap.test(a) && a.split(/[\*\-_]/).length > 3)
404
+ } else if (n === Ne && Ap.test(a) && a.split(/[\*\-_]/).length > 3)
407
405
  p(r), r = "", e.push(new xe.Horizontal());
408
- else if (n === Oe && a.match(ll) !== null) {
406
+ else if (n === Ne && a.match(ll) !== null) {
409
407
  if (o = a.match(ll), o === null) continue;
410
408
  p(r), r = "", e.push(new xe.Heading(o[2], o[1].length));
411
- } else if (n === Oe && a.match(cl) !== null) {
409
+ } else if (n === Ne && a.match(cl) !== null) {
412
410
  if (o = a.match(cl), o === null) continue;
413
411
  p(r);
414
412
  const h = e[e.length - 1], T = o[2].match(/^\[(x|\u0020)?\]\s(.+)$/);
@@ -422,7 +420,7 @@ const zp = (t) => {
422
420
  }
423
421
  const N = T ? new xe.CheckList(T[2].trim(), T[1] === "x", C) : new xe.List(o[2].trim(), C);
424
422
  e.push(N), r = "";
425
- } else if (n === Oe && a.match(dl) !== null) {
423
+ } else if (n === Ne && a.match(dl) !== null) {
426
424
  if (o = a.match(dl), o === null) continue;
427
425
  p(r);
428
426
  const h = e[e.length - 1];
@@ -437,11 +435,11 @@ const zp = (t) => {
437
435
  }
438
436
  const N = new xe.OrderedList(o[3].trim(), C || 0, T);
439
437
  e.push(N), r = "";
440
- } else if (n === Oe && a.match(ul) !== null) {
438
+ } else if (n === Ne && a.match(ul) !== null) {
441
439
  if (o = a.match(ul), o === null) continue;
442
440
  s.push(a), r = "";
443
441
  } else if (a === "")
444
- n === Oe && (p(r), e.push(new xe.Br()), r = ""), n === wa && (r += a !== "" ? `${a}
442
+ n === Ne && (p(r), e.push(new xe.Br()), r = ""), n === Ma && (r += a !== "" ? `${a}
445
443
  ` : `
446
444
  `);
447
445
  else {
@@ -451,14 +449,15 @@ const zp = (t) => {
451
449
  e[e.length - 1].values[T.length - 1].value += `
452
450
  ${a}`, r = "";
453
451
  } else
454
- r += a !== "" ? `${a}
455
- ` : "";
452
+ n === Ne && (r += a !== "" ? `${a}
453
+ ` : `
454
+ `);
456
455
  }
457
456
  a = "";
458
457
  } else
459
458
  a += S;
460
459
  }
461
- return n === Oe && p(r.slice(0, -1)), e;
460
+ return n === Ne && p(r.slice(0, -1)), e;
462
461
  };
463
462
  class Hp {
464
463
  constructor(e) {
@@ -771,10 +770,10 @@ class Ht {
771
770
  return this.size >= 2;
772
771
  }
773
772
  }
774
- var Fs = 0, Xr = 1, dr = 2, Pt = 3, fr = 4, ut = 5, _r = 6, Je = 7, Ct = [new Ht(Fs, 0, !1), new Ht(Xr, 0, !0), new Ht(dr, 1, !1), new Ht(Pt, 1, !0), new Ht(fr, 2, !1), new Ht(ut, 2, !0), new Ht(_r, 3, !1), new Ht(Je, 3, !0)], n0 = [fr, ut, fr, ut, _r, Je, _r, Je], i0 = [ut, ut, ut, ut, Je, Je, Je, Je], o0 = [dr, Pt, fr, ut, _r, Je, _r, Je], s0 = [Pt, Pt, ut, ut, Je, Je, Je, Je], l0 = [Xr, Xr, Pt, Pt, ut, ut, Je, Je], c0 = [Fs, Xr, dr, Pt, dr, Pt, dr, Pt], Z = {
773
+ var Fs = 0, Zr = 1, dr = 2, Pt = 3, Tr = 4, ut = 5, _r = 6, Je = 7, Ct = [new Ht(Fs, 0, !1), new Ht(Zr, 0, !0), new Ht(dr, 1, !1), new Ht(Pt, 1, !0), new Ht(Tr, 2, !1), new Ht(ut, 2, !0), new Ht(_r, 3, !1), new Ht(Je, 3, !0)], n0 = [Tr, ut, Tr, ut, _r, Je, _r, Je], i0 = [ut, ut, ut, ut, Je, Je, Je, Je], o0 = [dr, Pt, Tr, ut, _r, Je, _r, Je], s0 = [Pt, Pt, ut, ut, Je, Je, Je, Je], l0 = [Zr, Zr, Pt, Pt, ut, ut, Je, Je], c0 = [Fs, Zr, dr, Pt, dr, Pt, dr, Pt], Z = {
775
774
  DISPLAY: Ct[Fs],
776
775
  TEXT: Ct[dr],
777
- SCRIPT: Ct[fr],
776
+ SCRIPT: Ct[Tr],
778
777
  SCRIPTSCRIPT: Ct[_r]
779
778
  }, xs = [{
780
779
  // Latin characters beyond the Latin-1 characters we have metrics for.
@@ -844,11 +843,11 @@ function d0(t) {
844
843
  }
845
844
  return null;
846
845
  }
847
- var jr = [];
848
- xs.forEach((t) => t.blocks.forEach((e) => jr.push(...e)));
846
+ var Xr = [];
847
+ xs.forEach((t) => t.blocks.forEach((e) => Xr.push(...e)));
849
848
  function Lu(t) {
850
- for (var e = 0; e < jr.length; e += 2)
851
- if (t >= jr[e] && t <= jr[e + 1])
849
+ for (var e = 0; e < Xr.length; e += 2)
850
+ if (t >= Xr[e] && t <= Xr[e + 1])
852
851
  return !0;
853
852
  return !1;
854
853
  }
@@ -1271,7 +1270,7 @@ l0,-` + (e + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
1271
1270
  throw new Error("Unknown stretchy delimiter.");
1272
1271
  }
1273
1272
  };
1274
- class vr {
1273
+ class Cr {
1275
1274
  // HtmlDomNode
1276
1275
  // Never used; needed for satisfying interface.
1277
1276
  constructor(e) {
@@ -3376,7 +3375,7 @@ var kt = {
3376
3375
  8242: [0, 0.61111, 0, 0, 0.525],
3377
3376
  9251: [0.11111, 0.21944, 0, 0, 0.525]
3378
3377
  }
3379
- }, Yr = {
3378
+ }, zr = {
3380
3379
  slant: [0.25, 0.25, 0.25],
3381
3380
  // sigma1
3382
3381
  space: [0, 0, 0],
@@ -3549,10 +3548,10 @@ function T0(t) {
3549
3548
  var e;
3550
3549
  if (t >= 5 ? e = 0 : t >= 3 ? e = 1 : e = 2, !ka[e]) {
3551
3550
  var r = ka[e] = {
3552
- cssEmPerMu: Yr.quad[e] / 18
3551
+ cssEmPerMu: zr.quad[e] / 18
3553
3552
  };
3554
- for (var a in Yr)
3555
- Yr.hasOwnProperty(a) && (r[a] = Yr[a][e]);
3553
+ for (var a in zr)
3554
+ zr.hasOwnProperty(a) && (r[a] = zr[a][e]);
3556
3555
  }
3557
3556
  return ka[e];
3558
3557
  }
@@ -3863,7 +3862,7 @@ var Ds = {
3863
3862
  e += this.children[i].toMarkup();
3864
3863
  return e += "</" + t + ">", e;
3865
3864
  };
3866
- class ra {
3865
+ class aa {
3867
3866
  constructor(e, r, a, n) {
3868
3867
  this.children = void 0, this.attributes = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.width = void 0, this.maxFontSize = void 0, this.style = void 0, Pu.call(this, e, a, n), this.children = r || [];
3869
3868
  }
@@ -4022,7 +4021,7 @@ function vl(t) {
4022
4021
  throw new Error("Expected symbolNode but got " + String(t) + ".");
4023
4022
  }
4024
4023
  function O0(t) {
4025
- if (t instanceof ra)
4024
+ if (t instanceof aa)
4026
4025
  return t;
4027
4026
  throw new Error("Expected span<HtmlDomNode> but got " + String(t) + ".");
4028
4027
  }
@@ -4050,7 +4049,7 @@ function l(t, e, r, a, n, i) {
4050
4049
  replace: a
4051
4050
  }, i && a && (ye[t][a] = ye[t][n]);
4052
4051
  }
4053
- var d = "math", D = "text", m = "main", b = "ams", Ae = "accent-token", q = "bin", et = "close", ur = "inner", X = "mathord", Ge = "op-token", lt = "open", aa = "punct", f = "rel", Gt = "spacing", y = "textord";
4052
+ var d = "math", D = "text", m = "main", b = "ams", Ae = "accent-token", q = "bin", et = "close", ur = "inner", X = "mathord", Ge = "op-token", lt = "open", na = "punct", f = "rel", Gt = "spacing", y = "textord";
4054
4053
  l(d, m, f, "≡", "\\equiv", !0);
4055
4054
  l(d, m, f, "≺", "\\prec", !0);
4056
4055
  l(d, m, f, "≻", "\\succ", !0);
@@ -4075,8 +4074,8 @@ l(d, m, f, "∝", "\\propto", !0);
4075
4074
  l(d, m, f, "⊢", "\\vdash", !0);
4076
4075
  l(d, m, f, "⊣", "\\dashv", !0);
4077
4076
  l(d, m, f, "∋", "\\owns");
4078
- l(d, m, aa, ".", "\\ldotp");
4079
- l(d, m, aa, "⋅", "\\cdotp");
4077
+ l(d, m, na, ".", "\\ldotp");
4078
+ l(d, m, na, "⋅", "\\cdotp");
4080
4079
  l(d, m, y, "#", "\\#");
4081
4080
  l(D, m, y, "#", "\\#");
4082
4081
  l(d, m, y, "&", "\\&");
@@ -4503,8 +4502,8 @@ l(D, m, Gt, " ", "\\space");
4503
4502
  l(D, m, Gt, " ", "\\nobreakspace");
4504
4503
  l(d, m, Gt, null, "\\nobreak");
4505
4504
  l(d, m, Gt, null, "\\allowbreak");
4506
- l(d, m, aa, ",", ",");
4507
- l(d, m, aa, ";", ";");
4505
+ l(d, m, na, ",", ",");
4506
+ l(d, m, na, ";", ";");
4508
4507
  l(d, b, q, "⊼", "\\barwedge", !0);
4509
4508
  l(d, b, q, "⊻", "\\veebar", !0);
4510
4509
  l(d, m, q, "⊙", "\\odot", !0);
@@ -4659,10 +4658,10 @@ for (var Fa = 0; Fa < Nl.length; Fa++) {
4659
4658
  var Rl = Nl.charAt(Fa);
4660
4659
  l(D, m, y, Rl, Rl);
4661
4660
  }
4662
- var Zr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
4663
- for (var Ua = 0; Ua < Zr.length; Ua++) {
4664
- var zr = Zr.charAt(Ua);
4665
- l(d, m, X, zr, zr), l(D, m, y, zr, zr);
4661
+ var Jr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
4662
+ for (var Ua = 0; Ua < Jr.length; Ua++) {
4663
+ var Hr = Jr.charAt(Ua);
4664
+ l(d, m, X, Hr, Hr), l(D, m, y, Hr, Hr);
4666
4665
  }
4667
4666
  l(d, b, y, "C", "ℂ");
4668
4667
  l(D, b, y, "C", "ℂ");
@@ -4681,8 +4680,8 @@ l(D, b, y, "Z", "ℤ");
4681
4680
  l(d, m, X, "h", "ℎ");
4682
4681
  l(D, m, X, "h", "ℎ");
4683
4682
  var ee = "";
4684
- for (var Ze = 0; Ze < Zr.length; Ze++) {
4685
- var Me = Zr.charAt(Ze);
4683
+ for (var Ze = 0; Ze < Jr.length; Ze++) {
4684
+ var Me = Jr.charAt(Ze);
4686
4685
  ee = String.fromCharCode(55349, 56320 + Ze), l(d, m, X, Me, ee), l(D, m, y, Me, ee), ee = String.fromCharCode(55349, 56372 + Ze), l(d, m, X, Me, ee), l(D, m, y, Me, ee), ee = String.fromCharCode(55349, 56424 + Ze), l(d, m, X, Me, ee), l(D, m, y, Me, ee), ee = String.fromCharCode(55349, 56580 + Ze), l(d, m, X, Me, ee), l(D, m, y, Me, ee), ee = String.fromCharCode(55349, 56684 + Ze), l(d, m, X, Me, ee), l(D, m, y, Me, ee), ee = String.fromCharCode(55349, 56736 + Ze), l(d, m, X, Me, ee), l(D, m, y, Me, ee), ee = String.fromCharCode(55349, 56788 + Ze), l(d, m, X, Me, ee), l(D, m, y, Me, ee), ee = String.fromCharCode(55349, 56840 + Ze), l(d, m, X, Me, ee), l(D, m, y, Me, ee), ee = String.fromCharCode(55349, 56944 + Ze), l(d, m, X, Me, ee), l(D, m, y, Me, ee), Ze < 26 && (ee = String.fromCharCode(55349, 56632 + Ze), l(d, m, X, Me, ee), l(D, m, y, Me, ee), ee = String.fromCharCode(55349, 56476 + Ze), l(d, m, X, Me, ee), l(D, m, y, Me, ee));
4687
4686
  }
4688
4687
  ee = "𝕜";
@@ -4694,10 +4693,10 @@ for (var rr = 0; rr < 10; rr++) {
4694
4693
  }
4695
4694
  var ws = "ÐÞþ";
4696
4695
  for (var Ba = 0; Ba < ws.length; Ba++) {
4697
- var Hr = ws.charAt(Ba);
4698
- l(d, m, X, Hr, Hr), l(D, m, y, Hr, Hr);
4696
+ var qr = ws.charAt(Ba);
4697
+ l(d, m, X, qr, qr), l(D, m, y, qr, qr);
4699
4698
  }
4700
- var qr = [
4699
+ var Vr = [
4701
4700
  ["mathbf", "textbf", "Main-Bold"],
4702
4701
  // A-Z bold upright
4703
4702
  ["mathbf", "textbf", "Main-Bold"],
@@ -4768,24 +4767,24 @@ var qr = [
4768
4767
  var r = t.charCodeAt(0), a = t.charCodeAt(1), n = (r - 55296) * 1024 + (a - 56320) + 65536, i = e === "math" ? 0 : 1;
4769
4768
  if (119808 <= n && n < 120484) {
4770
4769
  var s = Math.floor((n - 119808) / 26);
4771
- return [qr[s][2], qr[s][i]];
4770
+ return [Vr[s][2], Vr[s][i]];
4772
4771
  } else if (120782 <= n && n <= 120831) {
4773
4772
  var o = Math.floor((n - 120782) / 10);
4774
4773
  return [Ol[o][2], Ol[o][i]];
4775
4774
  } else {
4776
4775
  if (n === 120485 || n === 120486)
4777
- return [qr[0][2], qr[0][i]];
4776
+ return [Vr[0][2], Vr[0][i]];
4778
4777
  if (120486 < n && n < 120782)
4779
4778
  return ["", ""];
4780
4779
  throw new k("Unsupported character: " + t);
4781
4780
  }
4782
- }, na = function(t, e, r) {
4781
+ }, ia = function(t, e, r) {
4783
4782
  return ye[r][t] && ye[r][t].replace && (t = ye[r][t].replace), {
4784
4783
  value: t,
4785
4784
  metrics: Us(t, e, r)
4786
4785
  };
4787
4786
  }, St = function(t, e, r, a, n) {
4788
- var i = na(t, e, r), s = i.metrics;
4787
+ var i = ia(t, e, r), s = i.metrics;
4789
4788
  t = i.value;
4790
4789
  var o;
4791
4790
  if (s) {
@@ -4800,9 +4799,9 @@ var qr = [
4800
4799
  }
4801
4800
  return o;
4802
4801
  }, D0 = function(t, e, r, a) {
4803
- return a === void 0 && (a = []), r.font === "boldsymbol" && na(t, "Main-Bold", e).metrics ? St(t, "Main-Bold", e, r, a.concat(["mathbf"])) : t === "\\" || ye[e][t].font === "main" ? St(t, "Main-Regular", e, r, a) : St(t, "AMS-Regular", e, r, a.concat(["amsrm"]));
4802
+ return a === void 0 && (a = []), r.font === "boldsymbol" && ia(t, "Main-Bold", e).metrics ? St(t, "Main-Bold", e, r, a.concat(["mathbf"])) : t === "\\" || ye[e][t].font === "main" ? St(t, "Main-Regular", e, r, a) : St(t, "AMS-Regular", e, r, a.concat(["amsrm"]));
4804
4803
  }, w0 = function(t, e, r, a, n) {
4805
- return n !== "textord" && na(t, "Math-BoldItalic", e).metrics ? {
4804
+ return n !== "textord" && ia(t, "Math-BoldItalic", e).metrics ? {
4806
4805
  fontName: "Math-BoldItalic",
4807
4806
  fontClass: "boldsymbol"
4808
4807
  } : {
@@ -4818,8 +4817,8 @@ var qr = [
4818
4817
  if (o === "boldsymbol") {
4819
4818
  var E = w0(n, a, e, i, r);
4820
4819
  u = E.fontName, p = [E.fontClass];
4821
- } else s ? (u = Hu[o].fontName, p = [o]) : (u = Vr(o, e.fontWeight, e.fontShape), p = [o, e.fontWeight, e.fontShape]);
4822
- if (na(n, u, a).metrics)
4820
+ } else s ? (u = Hu[o].fontName, p = [o]) : (u = $r(o, e.fontWeight, e.fontShape), p = [o, e.fontWeight, e.fontShape]);
4821
+ if (ia(n, u, a).metrics)
4823
4822
  return St(n, u, a, e, i.concat(p));
4824
4823
  if (Gu.hasOwnProperty(n) && u.slice(0, 10) === "Typewriter") {
4825
4824
  for (var S = [], h = 0; h < n.length; h++)
@@ -4832,13 +4831,13 @@ var qr = [
4832
4831
  if (r === "textord") {
4833
4832
  var T = ye[a][n] && ye[a][n].font;
4834
4833
  if (T === "ams") {
4835
- var C = Vr("amsrm", e.fontWeight, e.fontShape);
4834
+ var C = $r("amsrm", e.fontWeight, e.fontShape);
4836
4835
  return St(n, C, a, e, i.concat("amsrm", e.fontWeight, e.fontShape));
4837
4836
  } else if (T === "main" || !T) {
4838
- var N = Vr("textrm", e.fontWeight, e.fontShape);
4837
+ var N = $r("textrm", e.fontWeight, e.fontShape);
4839
4838
  return St(n, N, a, e, i.concat(e.fontWeight, e.fontShape));
4840
4839
  } else {
4841
- var R = Vr(T, e.fontWeight, e.fontShape);
4840
+ var R = $r(T, e.fontWeight, e.fontShape);
4842
4841
  return St(n, R, a, e, i.concat(R, e.fontWeight, e.fontShape));
4843
4842
  }
4844
4843
  } else
@@ -4871,19 +4870,19 @@ var qr = [
4871
4870
  }
4872
4871
  t.height = e, t.depth = r, t.maxFontSize = a;
4873
4872
  }, at = function(t, e, r, a) {
4874
- var n = new ra(t, e, r, a);
4873
+ var n = new aa(t, e, r, a);
4875
4874
  return Bs(n), n;
4876
- }, Yu = (t, e, r, a) => new ra(t, e, r, a), P0 = function(t, e, r) {
4875
+ }, Yu = (t, e, r, a) => new aa(t, e, r, a), P0 = function(t, e, r) {
4877
4876
  var a = at([t], [], e);
4878
4877
  return a.height = Math.max(r || e.fontMetrics().defaultRuleThickness, e.minRuleThickness), a.style.borderBottomWidth = U(a.height), a.maxFontSize = 1, a;
4879
4878
  }, F0 = function(t, e, r, a) {
4880
4879
  var n = new Bu(t, e, r, a);
4881
4880
  return Bs(n), n;
4882
4881
  }, zu = function(t) {
4883
- var e = new vr(t);
4882
+ var e = new Cr(t);
4884
4883
  return Bs(e), e;
4885
4884
  }, U0 = function(t, e) {
4886
- return t instanceof vr ? at([], [t], e) : t;
4885
+ return t instanceof Cr ? at([], [t], e) : t;
4887
4886
  }, B0 = function(t) {
4888
4887
  if (t.positionType === "individualShift") {
4889
4888
  for (var e = t.children, r = [e[0]], a = -e[0].shift - e[0].elem.depth, n = a, i = 1; i < e.length; i++) {
@@ -4961,7 +4960,7 @@ var qr = [
4961
4960
  }, Y0 = (t, e) => {
4962
4961
  var r = at(["mspace"], [], e), a = we(t, e);
4963
4962
  return r.style.marginRight = U(a), r;
4964
- }, Vr = function(t, e, r) {
4963
+ }, $r = function(t, e, r) {
4965
4964
  var a = "";
4966
4965
  switch (t) {
4967
4966
  case "amsrm":
@@ -5147,7 +5146,7 @@ var qr = [
5147
5146
  minner: {
5148
5147
  mop: De
5149
5148
  }
5150
- }, Vu = {}, Jr = {}, ea = {};
5149
+ }, Vu = {}, ea = {}, ta = {};
5151
5150
  function z(t) {
5152
5151
  for (var {
5153
5152
  type: e,
@@ -5169,7 +5168,7 @@ function z(t) {
5169
5168
  handler: n
5170
5169
  }, c = 0; c < r.length; ++c)
5171
5170
  Vu[r[c]] = o;
5172
- e && (i && (Jr[e] = i), s && (ea[e] = s));
5171
+ e && (i && (ea[e] = i), s && (ta[e] = s));
5173
5172
  }
5174
5173
  function or(t) {
5175
5174
  var {
@@ -5190,7 +5189,7 @@ function or(t) {
5190
5189
  mathmlBuilder: a
5191
5190
  });
5192
5191
  }
5193
- var ta = function(t) {
5192
+ var ra = function(t) {
5194
5193
  return t.type === "ordgroup" && t.body.length === 1 ? t.body[0] : t;
5195
5194
  }, Ue = function(t) {
5196
5195
  return t.type === "ordgroup" ? t.body : [t];
@@ -5212,7 +5211,7 @@ var ta = function(t) {
5212
5211
  a === void 0 && (a = [null, null]);
5213
5212
  for (var n = [], i = 0; i < t.length; i++) {
5214
5213
  var s = _e(t[i], e);
5215
- if (s instanceof vr) {
5214
+ if (s instanceof Cr) {
5216
5215
  var o = s.children;
5217
5216
  n.push(...o);
5218
5217
  } else
@@ -5257,7 +5256,7 @@ var ta = function(t) {
5257
5256
  }
5258
5257
  n && e.pop();
5259
5258
  }, $u = function(t) {
5260
- return t instanceof vr || t instanceof Bu || t instanceof ra && t.hasClass("enclosing") ? t : null;
5259
+ return t instanceof Cr || t instanceof Bu || t instanceof aa && t.hasClass("enclosing") ? t : null;
5261
5260
  }, K0 = function t(e, r) {
5262
5261
  var a = $u(e);
5263
5262
  if (a) {
@@ -5272,14 +5271,14 @@ var ta = function(t) {
5272
5271
  return e;
5273
5272
  }, Ms = function(t, e) {
5274
5273
  return t ? (e && (t = K0(t, e)), Q0[t.classes[0]] || null) : null;
5275
- }, Tr = function(t, e) {
5274
+ }, vr = function(t, e) {
5276
5275
  var r = ["nulldelimiter"].concat(t.baseSizingClasses());
5277
5276
  return Ut(e.concat(r));
5278
5277
  }, _e = function(t, e, r) {
5279
5278
  if (!t)
5280
5279
  return Ut();
5281
- if (Jr[t.type]) {
5282
- var a = Jr[t.type](t, e);
5280
+ if (ea[t.type]) {
5281
+ var a = ea[t.type](t, e);
5283
5282
  if (r && e.size !== r.size) {
5284
5283
  a = Ut(e.sizingClasses(r), [a], e);
5285
5284
  var n = e.sizeMultiplier / r.sizeMultiplier;
@@ -5289,7 +5288,7 @@ var ta = function(t) {
5289
5288
  } else
5290
5289
  throw new k("Got group of unknown type: '" + t.type + "'");
5291
5290
  };
5292
- function $r(t, e) {
5291
+ function Wr(t, e) {
5293
5292
  var r = Ut(["base"], t, e), a = Ut(["strut"]);
5294
5293
  return a.style.height = U(r.height + r.depth), r.depth && (a.style.verticalAlign = U(-r.depth)), r.children.unshift(a), r;
5295
5294
  }
@@ -5302,11 +5301,11 @@ function Il(t, e) {
5302
5301
  if (s.push(a[o]), a[o].hasClass("mbin") || a[o].hasClass("mrel") || a[o].hasClass("allowbreak")) {
5303
5302
  for (var c = !1; o < a.length - 1 && a[o + 1].hasClass("mspace") && !a[o + 1].hasClass("newline"); )
5304
5303
  o++, s.push(a[o]), a[o].hasClass("nobreak") && (c = !0);
5305
- c || (i.push($r(s, e)), s = []);
5306
- } else a[o].hasClass("newline") && (s.pop(), s.length > 0 && (i.push($r(s, e)), s = []), i.push(a[o]));
5307
- s.length > 0 && i.push($r(s, e));
5304
+ c || (i.push(Wr(s, e)), s = []);
5305
+ } else a[o].hasClass("newline") && (s.pop(), s.length > 0 && (i.push(Wr(s, e)), s = []), i.push(a[o]));
5306
+ s.length > 0 && i.push(Wr(s, e));
5308
5307
  var _;
5309
- r ? (_ = $r(He(r, e, !0)), _.classes = ["tag"], i.push(_)) : n && i.push(n);
5308
+ r ? (_ = Wr(He(r, e, !0)), _.classes = ["tag"], i.push(_)) : n && i.push(n);
5310
5309
  var u = Ut(["katex-html"], i);
5311
5310
  if (u.setAttribute("aria-hidden", "true"), _) {
5312
5311
  var p = _.children[0];
@@ -5315,7 +5314,7 @@ function Il(t, e) {
5315
5314
  return u;
5316
5315
  }
5317
5316
  function Wu(t) {
5318
- return new vr(t);
5317
+ return new Cr(t);
5319
5318
  }
5320
5319
  class st {
5321
5320
  constructor(e, r, a) {
@@ -5523,8 +5522,8 @@ var nt = function(t, e, r) {
5523
5522
  }, be = function(t, e) {
5524
5523
  if (!t)
5525
5524
  return new L.MathNode("mrow");
5526
- if (ea[t.type]) {
5527
- var r = ea[t.type](t, e);
5525
+ if (ta[t.type]) {
5526
+ var r = ta[t.type](t, e);
5528
5527
  return r;
5529
5528
  } else
5530
5529
  throw new k("Got group of unknown type: '" + t.type + "'");
@@ -5762,12 +5761,12 @@ function ie(t, e) {
5762
5761
  return t;
5763
5762
  }
5764
5763
  function zs(t) {
5765
- var e = ia(t);
5764
+ var e = oa(t);
5766
5765
  if (!e)
5767
5766
  throw new Error("Expected node of symbol group type, but got " + (t ? "node of type " + t.type : String(t)));
5768
5767
  return e;
5769
5768
  }
5770
- function ia(t) {
5769
+ function oa(t) {
5771
5770
  return t && (t.type === "atom" || I0.hasOwnProperty(t.type)) ? t : null;
5772
5771
  }
5773
5772
  var Hs = (t, e) => {
@@ -5831,7 +5830,7 @@ z({
5831
5830
  numArgs: 1
5832
5831
  },
5833
5832
  handler: (t, e) => {
5834
- var r = ta(e[0]), a = !og.test(t.funcName), n = !a || t.funcName === "\\widehat" || t.funcName === "\\widetilde" || t.funcName === "\\widecheck";
5833
+ var r = ra(e[0]), a = !og.test(t.funcName), n = !a || t.funcName === "\\widehat" || t.funcName === "\\widetilde" || t.funcName === "\\widecheck";
5835
5834
  return {
5836
5835
  type: "accent",
5837
5836
  mode: t.parser.mode,
@@ -5909,7 +5908,7 @@ z({
5909
5908
  return a.setAttribute("accentunder", "true"), a;
5910
5909
  }
5911
5910
  });
5912
- var Wr = (t) => {
5911
+ var Qr = (t) => {
5913
5912
  var e = new L.MathNode("mpadded", t ? [t] : []);
5914
5913
  return e.setAttribute("width", "+0.6em"), e.setAttribute("lspace", "0.3em"), e;
5915
5914
  };
@@ -6010,17 +6009,17 @@ z({
6010
6009
  r.setAttribute("minsize", t.label.charAt(0) === "x" ? "1.75em" : "3.0em");
6011
6010
  var a;
6012
6011
  if (t.body) {
6013
- var n = Wr(be(t.body, e));
6012
+ var n = Qr(be(t.body, e));
6014
6013
  if (t.below) {
6015
- var i = Wr(be(t.below, e));
6014
+ var i = Qr(be(t.below, e));
6016
6015
  a = new L.MathNode("munderover", [r, i, n]);
6017
6016
  } else
6018
6017
  a = new L.MathNode("mover", [r, n]);
6019
6018
  } else if (t.below) {
6020
- var s = Wr(be(t.below, e));
6019
+ var s = Qr(be(t.below, e));
6021
6020
  a = new L.MathNode("munder", [r, s]);
6022
6021
  } else
6023
- a = Wr(), a = new L.MathNode("mover", [r, a]);
6022
+ a = Qr(), a = new L.MathNode("mover", [r, a]);
6024
6023
  return a;
6025
6024
  }
6026
6025
  });
@@ -6057,7 +6056,7 @@ z({
6057
6056
  htmlBuilder: Ku,
6058
6057
  mathmlBuilder: ju
6059
6058
  });
6060
- var oa = (t) => {
6059
+ var sa = (t) => {
6061
6060
  var e = t.type === "ordgroup" && t.body.length ? t.body[0] : t;
6062
6061
  return e.type === "atom" && (e.family === "bin" || e.family === "rel") ? "m" + e.family : "mord";
6063
6062
  };
@@ -6074,7 +6073,7 @@ z({
6074
6073
  return {
6075
6074
  type: "mclass",
6076
6075
  mode: r.mode,
6077
- mclass: oa(e[0]),
6076
+ mclass: sa(e[0]),
6078
6077
  body: Ue(e[1]),
6079
6078
  isCharacterBox: K.isCharacterBox(e[1])
6080
6079
  };
@@ -6091,7 +6090,7 @@ z({
6091
6090
  parser: r,
6092
6091
  funcName: a
6093
6092
  } = t, n = e[1], i = e[0], s;
6094
- a !== "\\stackrel" ? s = oa(n) : s = "mrel";
6093
+ a !== "\\stackrel" ? s = sa(n) : s = "mrel";
6095
6094
  var o = {
6096
6095
  type: "op",
6097
6096
  mode: n.mode,
@@ -6133,7 +6132,7 @@ z({
6133
6132
  return {
6134
6133
  type: "pmb",
6135
6134
  mode: r.mode,
6136
- mclass: oa(e[0]),
6135
+ mclass: sa(e[0]),
6137
6136
  body: Ue(e[0])
6138
6137
  };
6139
6138
  },
@@ -6578,7 +6577,7 @@ z({
6578
6577
  };
6579
6578
  }
6580
6579
  });
6581
- var hr = function(t, e, r) {
6580
+ var br = function(t, e, r) {
6582
6581
  var a = ye.math[t] && ye.math[t].replace, n = Us(a || t, e, r);
6583
6582
  if (!n)
6584
6583
  throw new Error("Unsupported symbol " + t + " and font size " + e + ".");
@@ -6618,7 +6617,7 @@ var hr = function(t, e, r) {
6618
6617
  type: "elem",
6619
6618
  elem: s
6620
6619
  };
6621
- }, ks = 8e-3, Qr = {
6620
+ }, ks = 8e-3, Kr = {
6622
6621
  type: "kern",
6623
6622
  size: -1 * ks
6624
6623
  }, gg = ["|", "\\lvert", "\\rvert", "\\vert"], Eg = ["\\|", "\\lVert", "\\rVert", "\\Vert"], am = function(t, e, r, a, n, i) {
@@ -6626,33 +6625,33 @@ var hr = function(t, e, r) {
6626
6625
  s = c = _ = t, o = null;
6627
6626
  var E = "Size1-Regular";
6628
6627
  t === "\\uparrow" ? c = _ = "⏐" : t === "\\Uparrow" ? c = _ = "‖" : t === "\\downarrow" ? s = c = "⏐" : t === "\\Downarrow" ? s = c = "‖" : t === "\\updownarrow" ? (s = "\\uparrow", c = "⏐", _ = "\\downarrow") : t === "\\Updownarrow" ? (s = "\\Uparrow", c = "‖", _ = "\\Downarrow") : K.contains(gg, t) ? (c = "∣", u = "vert", p = 333) : K.contains(Eg, t) ? (c = "∥", u = "doublevert", p = 556) : t === "[" || t === "\\lbrack" ? (s = "⎡", c = "⎢", _ = "⎣", E = "Size4-Regular", u = "lbrack", p = 667) : t === "]" || t === "\\rbrack" ? (s = "⎤", c = "⎥", _ = "⎦", E = "Size4-Regular", u = "rbrack", p = 667) : t === "\\lfloor" || t === "⌊" ? (c = s = "⎢", _ = "⎣", E = "Size4-Regular", u = "lfloor", p = 667) : t === "\\lceil" || t === "⌈" ? (s = "⎡", c = _ = "⎢", E = "Size4-Regular", u = "lceil", p = 667) : t === "\\rfloor" || t === "⌋" ? (c = s = "⎥", _ = "⎦", E = "Size4-Regular", u = "rfloor", p = 667) : t === "\\rceil" || t === "⌉" ? (s = "⎤", c = _ = "⎥", E = "Size4-Regular", u = "rceil", p = 667) : t === "(" || t === "\\lparen" ? (s = "⎛", c = "⎜", _ = "⎝", E = "Size4-Regular", u = "lparen", p = 875) : t === ")" || t === "\\rparen" ? (s = "⎞", c = "⎟", _ = "⎠", E = "Size4-Regular", u = "rparen", p = 875) : t === "\\{" || t === "\\lbrace" ? (s = "⎧", o = "⎨", _ = "⎩", c = "⎪", E = "Size4-Regular") : t === "\\}" || t === "\\rbrace" ? (s = "⎫", o = "⎬", _ = "⎭", c = "⎪", E = "Size4-Regular") : t === "\\lgroup" || t === "⟮" ? (s = "⎧", _ = "⎩", c = "⎪", E = "Size4-Regular") : t === "\\rgroup" || t === "⟯" ? (s = "⎫", _ = "⎭", c = "⎪", E = "Size4-Regular") : t === "\\lmoustache" || t === "⎰" ? (s = "⎧", _ = "⎭", c = "⎪", E = "Size4-Regular") : (t === "\\rmoustache" || t === "⎱") && (s = "⎫", _ = "⎩", c = "⎪", E = "Size4-Regular");
6629
- var S = hr(s, E, n), h = S.height + S.depth, T = hr(c, E, n), C = T.height + T.depth, N = hr(_, E, n), R = N.height + N.depth, A = 0, x = 1;
6628
+ var S = br(s, E, n), h = S.height + S.depth, T = br(c, E, n), C = T.height + T.depth, N = br(_, E, n), R = N.height + N.depth, A = 0, x = 1;
6630
6629
  if (o !== null) {
6631
- var M = hr(o, E, n);
6630
+ var M = br(o, E, n);
6632
6631
  A = M.height + M.depth, x = 2;
6633
6632
  }
6634
6633
  var w = h + R + A, B = Math.max(0, Math.ceil((e - w) / (x * C))), F = w + B * x * C, J = a.fontMetrics().axisHeight;
6635
6634
  r && (J *= a.sizeMultiplier);
6636
6635
  var H = F / 2 - J, Q = [];
6637
6636
  if (u.length > 0) {
6638
- var ge = F - h - R, oe = Math.round(F * 1e3), re = f0(u, Math.round(ge * 1e3)), le = new ir(u, re), Ne = (p / 1e3).toFixed(3) + "em", fe = (oe / 1e3).toFixed(3) + "em", Ie = new Wt([le], {
6639
- width: Ne,
6637
+ var ge = F - h - R, oe = Math.round(F * 1e3), re = f0(u, Math.round(ge * 1e3)), le = new ir(u, re), Re = (p / 1e3).toFixed(3) + "em", fe = (oe / 1e3).toFixed(3) + "em", Ie = new Wt([le], {
6638
+ width: Re,
6640
6639
  height: fe,
6641
6640
  viewBox: "0 0 " + p + " " + oe
6642
6641
  }), Ye = O.makeSvgSpan([], [Ie], a);
6643
- Ye.height = oe / 1e3, Ye.style.width = Ne, Ye.style.height = fe, Q.push({
6642
+ Ye.height = oe / 1e3, Ye.style.width = Re, Ye.style.height = fe, Q.push({
6644
6643
  type: "elem",
6645
6644
  elem: Ye
6646
6645
  });
6647
6646
  } else {
6648
- if (Q.push(Ya(_, E, n)), Q.push(Qr), o === null) {
6647
+ if (Q.push(Ya(_, E, n)), Q.push(Kr), o === null) {
6649
6648
  var qe = F - h - R + 2 * ks;
6650
6649
  Q.push(za(c, qe, a));
6651
6650
  } else {
6652
6651
  var Te = (F - h - R - A) / 2 + 2 * ks;
6653
- Q.push(za(c, Te, a)), Q.push(Qr), Q.push(Ya(o, E, n)), Q.push(Qr), Q.push(za(c, Te, a));
6652
+ Q.push(za(c, Te, a)), Q.push(Kr), Q.push(Ya(o, E, n)), Q.push(Kr), Q.push(za(c, Te, a));
6654
6653
  }
6655
- Q.push(Qr), Q.push(Ya(s, E, n));
6654
+ Q.push(Kr), Q.push(Ya(s, E, n));
6656
6655
  }
6657
6656
  var Ve = a.havingBaseStyle(Z.TEXT), We = O.makeVList({
6658
6657
  positionType: "bottom",
@@ -6671,7 +6670,7 @@ var hr = function(t, e, r) {
6671
6670
  return O.makeSvgSpan(["hide-tail"], [o], n);
6672
6671
  }, Sg = function(t, e) {
6673
6672
  var r = e.havingBaseSizing(), a = sm("\\surd", t * r.sizeMultiplier, om, r), n = r.sizeMultiplier, i = Math.max(0, e.minRuleThickness - e.fontMetrics().sqrtRuleThickness), s, o = 0, c = 0, _ = 0, u;
6674
- return a.type === "small" ? (_ = 1e3 + 1e3 * i + Ha, t < 1 ? n = 1 : t < 1.4 && (n = 0.7), o = (1 + i + qa) / n, c = (1 + i) / n, s = Va("sqrtMain", o, _, i, e), s.style.minWidth = "0.853em", u = 0.833 / n) : a.type === "large" ? (_ = (1e3 + Ha) * br[a.size], c = (br[a.size] + i) / n, o = (br[a.size] + i + qa) / n, s = Va("sqrtSize" + a.size, o, _, i, e), s.style.minWidth = "1.02em", u = 1 / n) : (o = t + i + qa, c = t + i, _ = Math.floor(1e3 * t + i) + Ha, s = Va("sqrtTall", o, _, i, e), s.style.minWidth = "0.742em", u = 1.056), s.height = c, s.style.height = U(o), {
6673
+ return a.type === "small" ? (_ = 1e3 + 1e3 * i + Ha, t < 1 ? n = 1 : t < 1.4 && (n = 0.7), o = (1 + i + qa) / n, c = (1 + i) / n, s = Va("sqrtMain", o, _, i, e), s.style.minWidth = "0.853em", u = 0.833 / n) : a.type === "large" ? (_ = (1e3 + Ha) * fr[a.size], c = (fr[a.size] + i) / n, o = (fr[a.size] + i + qa) / n, s = Va("sqrtSize" + a.size, o, _, i, e), s.style.minWidth = "1.02em", u = 1 / n) : (o = t + i + qa, c = t + i, _ = Math.floor(1e3 * t + i) + Ha, s = Va("sqrtTall", o, _, i, e), s.style.minWidth = "0.742em", u = 1.056), s.height = c, s.style.height = U(o), {
6675
6674
  span: s,
6676
6675
  advanceWidth: u,
6677
6676
  // Calculate the actual line width.
@@ -6680,11 +6679,11 @@ var hr = function(t, e, r) {
6680
6679
  // have thicker rules.
6681
6680
  ruleWidth: (e.fontMetrics().sqrtRuleThickness + i) * n
6682
6681
  };
6683
- }, nm = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "\\surd"], hg = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱"], im = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], br = [0, 1.2, 1.8, 2.4, 3], bg = function(t, e, r, a, n) {
6682
+ }, nm = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "\\surd"], hg = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱"], im = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], fr = [0, 1.2, 1.8, 2.4, 3], bg = function(t, e, r, a, n) {
6684
6683
  if (t === "<" || t === "\\lt" || t === "⟨" ? t = "\\langle" : (t === ">" || t === "\\gt" || t === "⟩") && (t = "\\rangle"), K.contains(nm, t) || K.contains(im, t))
6685
6684
  return rm(t, e, !1, r, a, n);
6686
6685
  if (K.contains(hg, t))
6687
- return am(t, br[e], !1, r, a, n);
6686
+ return am(t, fr[e], !1, r, a, n);
6688
6687
  throw new k("Illegal delimiter: '" + t + "'");
6689
6688
  }, fg = [{
6690
6689
  type: "small",
@@ -6751,7 +6750,7 @@ var hr = function(t, e, r) {
6751
6750
  throw new Error("Add support for delim type '" + t.type + "' here.");
6752
6751
  }, sm = function(t, e, r, a) {
6753
6752
  for (var n = Math.min(2, 3 - a.style.size), i = n; i < r.length && r[i].type !== "stack"; i++) {
6754
- var s = hr(t, vg(r[i]), "math"), o = s.height + s.depth;
6753
+ var s = br(t, vg(r[i]), "math"), o = s.height + s.depth;
6755
6754
  if (r[i].type === "small") {
6756
6755
  var c = a.havingBaseStyle(r[i].style);
6757
6756
  o *= c.sizeMultiplier;
@@ -6784,7 +6783,7 @@ var hr = function(t, e, r) {
6784
6783
  }, Ft = {
6785
6784
  sqrtImage: Sg,
6786
6785
  sizedDelim: bg,
6787
- sizeToMaxHeight: br,
6786
+ sizeToMaxHeight: fr,
6788
6787
  customSizedDelim: lm,
6789
6788
  leftRightDelim: Cg
6790
6789
  }, Ml = {
@@ -6853,8 +6852,8 @@ var hr = function(t, e, r) {
6853
6852
  size: 4
6854
6853
  }
6855
6854
  }, yg = ["(", "\\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", "."];
6856
- function sa(t, e) {
6857
- var r = ia(t);
6855
+ function la(t, e) {
6856
+ var r = oa(t);
6858
6857
  if (r && K.contains(yg, r.text))
6859
6858
  return r;
6860
6859
  throw r ? new k("Invalid delimiter '" + r.text + "' after '" + e.funcName + "'", t) : new k("Invalid delimiter type '" + t.type + "'", t);
@@ -6867,7 +6866,7 @@ z({
6867
6866
  argTypes: ["primitive"]
6868
6867
  },
6869
6868
  handler: (t, e) => {
6870
- var r = sa(e[0], t);
6869
+ var r = la(e[0], t);
6871
6870
  return {
6872
6871
  type: "delimsizing",
6873
6872
  mode: t.parser.mode,
@@ -6904,7 +6903,7 @@ z({
6904
6903
  return {
6905
6904
  type: "leftright-right",
6906
6905
  mode: t.parser.mode,
6907
- delim: sa(e[0], t).text,
6906
+ delim: la(e[0], t).text,
6908
6907
  color: r
6909
6908
  // undefined if not set via \color
6910
6909
  };
@@ -6918,7 +6917,7 @@ z({
6918
6917
  primitive: !0
6919
6918
  },
6920
6919
  handler: (t, e) => {
6921
- var r = sa(e[0], t), a = t.parser;
6920
+ var r = la(e[0], t), a = t.parser;
6922
6921
  ++a.leftrightDepth;
6923
6922
  var n = a.parseExpression(!1);
6924
6923
  --a.leftrightDepth, a.expect("\\right", !1);
@@ -6938,14 +6937,14 @@ z({
6938
6937
  r[s].isMiddle ? i = !0 : (a = Math.max(r[s].height, a), n = Math.max(r[s].depth, n));
6939
6938
  a *= e.sizeMultiplier, n *= e.sizeMultiplier;
6940
6939
  var o;
6941
- if (t.left === "." ? o = Tr(e, ["mopen"]) : o = Ft.leftRightDelim(t.left, a, n, e, t.mode, ["mopen"]), r.unshift(o), i)
6940
+ if (t.left === "." ? o = vr(e, ["mopen"]) : o = Ft.leftRightDelim(t.left, a, n, e, t.mode, ["mopen"]), r.unshift(o), i)
6942
6941
  for (var c = 1; c < r.length; c++) {
6943
6942
  var _ = r[c], u = _.isMiddle;
6944
6943
  u && (r[c] = Ft.leftRightDelim(u.delim, a, n, u.options, t.mode, []));
6945
6944
  }
6946
6945
  var p;
6947
6946
  if (t.right === ".")
6948
- p = Tr(e, ["mclose"]);
6947
+ p = vr(e, ["mclose"]);
6949
6948
  else {
6950
6949
  var E = t.rightColor ? e.withColor(t.rightColor) : e;
6951
6950
  p = Ft.leftRightDelim(t.right, a, n, E, t.mode, ["mclose"]);
@@ -6974,7 +6973,7 @@ z({
6974
6973
  primitive: !0
6975
6974
  },
6976
6975
  handler: (t, e) => {
6977
- var r = sa(e[0], t);
6976
+ var r = la(e[0], t);
6978
6977
  if (!t.parser.leftrightDepth)
6979
6978
  throw new k("\\middle without preceding \\left", r);
6980
6979
  return {
@@ -6986,7 +6985,7 @@ z({
6986
6985
  htmlBuilder: (t, e) => {
6987
6986
  var r;
6988
6987
  if (t.delim === ".")
6989
- r = Tr(e, []);
6988
+ r = vr(e, []);
6990
6989
  else {
6991
6990
  r = Ft.sizedDelim(t.delim, 1, e, t.mode, []);
6992
6991
  var a = {
@@ -7239,7 +7238,7 @@ function Nt(t) {
7239
7238
  handler: n
7240
7239
  }, c = 0; c < r.length; ++c)
7241
7240
  cm[r[c]] = o;
7242
- i && (Jr[e] = i), s && (ea[e] = s);
7241
+ i && (ea[e] = i), s && (ta[e] = s);
7243
7242
  }
7244
7243
  var dm = {};
7245
7244
  function g(t, e) {
@@ -7253,7 +7252,7 @@ function kl(t) {
7253
7252
  t.consume(), e.push(r === "\\hdashline"), t.consumeSpaces(), r = t.fetch().text;
7254
7253
  return e;
7255
7254
  }
7256
- var la = (t) => {
7255
+ var ca = (t) => {
7257
7256
  var e = t.parser.settings;
7258
7257
  if (!e.displayMode)
7259
7258
  throw new k("{" + t.envName + "} can be used only in display mode.");
@@ -7371,11 +7370,11 @@ var Rt = function(t, e) {
7371
7370
  var J = t.rowGaps[r], H = 0;
7372
7371
  J && (H = we(J, e), H > 0 && (H += N, w < H && (w = H), H = 0)), t.addJot && (w += h), B.height = M, B.depth = w, R += M, B.pos = R, R += w + H, o[r] = B, A(i[r + 1]);
7373
7372
  }
7374
- var Q = R / 2 + e.fontMetrics().axisHeight, ge = t.cols || [], oe = [], re, le, Ne = [];
7373
+ var Q = R / 2 + e.fontMetrics().axisHeight, ge = t.cols || [], oe = [], re, le, Re = [];
7375
7374
  if (t.tags && t.tags.some((It) => It))
7376
7375
  for (r = 0; r < n; ++r) {
7377
7376
  var fe = o[r], Ie = fe.pos - Q, Ye = t.tags[r], qe = void 0;
7378
- Ye === !0 ? qe = O.makeSpan(["eqn-num"], [], e) : Ye === !1 ? qe = O.makeSpan([], [], e) : qe = O.makeSpan([], He(Ye, e, !0), e), qe.depth = fe.depth, qe.height = fe.height, Ne.push({
7377
+ Ye === !0 ? qe = O.makeSpan(["eqn-num"], [], e) : Ye === !1 ? qe = O.makeSpan([], [], e) : qe = O.makeSpan([], He(Ye, e, !0), e), qe.depth = fe.depth, qe.height = fe.height, Re.push({
7379
7378
  type: "elem",
7380
7379
  elem: qe,
7381
7380
  shift: Ie
@@ -7403,10 +7402,10 @@ var Rt = function(t, e) {
7403
7402
  (a > 0 || t.hskipBeforeAndAfter) && (pe = K.deflt(Te.pregap, p), pe !== 0 && (re = O.makeSpan(["arraycolsep"], []), re.style.width = U(pe), oe.push(re)));
7404
7403
  var ce = [];
7405
7404
  for (r = 0; r < n; ++r) {
7406
- var Re = o[r], ke = Re[a];
7405
+ var Oe = o[r], ke = Oe[a];
7407
7406
  if (ke) {
7408
- var tt = Re.pos - Q;
7409
- ke.depth = Re.depth, ke.height = Re.height, ce.push({
7407
+ var tt = Oe.pos - Q;
7408
+ ke.depth = Oe.depth, ke.height = Oe.height, ce.push({
7410
7409
  type: "elem",
7411
7410
  elem: ke,
7412
7411
  shift: tt
@@ -7441,11 +7440,11 @@ var Rt = function(t, e) {
7441
7440
  children: ct
7442
7441
  }, e);
7443
7442
  }
7444
- if (Ne.length === 0)
7443
+ if (Re.length === 0)
7445
7444
  return O.makeSpan(["mord"], [o], e);
7446
7445
  var At = O.makeVList({
7447
7446
  positionType: "individualShift",
7448
- children: Ne
7447
+ children: Re
7449
7448
  }, e);
7450
7449
  return At = O.makeSpan(["tag"], [At], e), O.makeFragment([o, At]);
7451
7450
  }, Ng = {
@@ -7479,7 +7478,7 @@ var Rt = function(t, e) {
7479
7478
  w += B[F].length === 0 ? "none " : B[F][0] ? "dashed " : "solid ";
7480
7479
  return /[sd]/.test(w) && _.setAttribute("rowlines", w.trim()), p !== "" && (_ = new L.MathNode("menclose", [_]), _.setAttribute("notation", p.trim())), t.arraystretch && t.arraystretch < 1 && (_ = new L.MathNode("mstyle", [_]), _.setAttribute("scriptlevel", "1")), _;
7481
7480
  }, _m = function(t, e) {
7482
- t.envName.indexOf("ed") === -1 && la(t);
7481
+ t.envName.indexOf("ed") === -1 && ca(t);
7483
7482
  var r = [], a = t.envName.indexOf("at") > -1 ? "alignat" : "align", n = t.envName === "split", i = jt(t.parser, {
7484
7483
  cols: r,
7485
7484
  addJot: !0,
@@ -7532,7 +7531,7 @@ Nt({
7532
7531
  numArgs: 1
7533
7532
  },
7534
7533
  handler(t, e) {
7535
- var r = ia(e[0]), a = r ? [e[0]] : ie(e[0], "ordgroup").body, n = a.map(function(s) {
7534
+ var r = oa(e[0]), a = r ? [e[0]] : ie(e[0], "ordgroup").body, n = a.map(function(s) {
7536
7535
  var o = zs(s), c = o.text;
7537
7536
  if ("lcr".indexOf(c) !== -1)
7538
7537
  return {
@@ -7632,7 +7631,7 @@ Nt({
7632
7631
  numArgs: 1
7633
7632
  },
7634
7633
  handler(t, e) {
7635
- var r = ia(e[0]), a = r ? [e[0]] : ie(e[0], "ordgroup").body, n = a.map(function(s) {
7634
+ var r = oa(e[0]), a = r ? [e[0]] : ie(e[0], "ordgroup").body, n = a.map(function(s) {
7636
7635
  var o = zs(s), c = o.text;
7637
7636
  if ("lc".indexOf(c) !== -1)
7638
7637
  return {
@@ -7710,7 +7709,7 @@ Nt({
7710
7709
  numArgs: 0
7711
7710
  },
7712
7711
  handler(t) {
7713
- K.contains(["gather", "gather*"], t.envName) && la(t);
7712
+ K.contains(["gather", "gather*"], t.envName) && ca(t);
7714
7713
  var e = {
7715
7714
  cols: [{
7716
7715
  type: "align",
@@ -7744,7 +7743,7 @@ Nt({
7744
7743
  numArgs: 0
7745
7744
  },
7746
7745
  handler(t) {
7747
- la(t);
7746
+ ca(t);
7748
7747
  var e = {
7749
7748
  autoTag: Ws(t.envName),
7750
7749
  emptySingleRow: !0,
@@ -7764,7 +7763,7 @@ Nt({
7764
7763
  numArgs: 0
7765
7764
  },
7766
7765
  handler(t) {
7767
- return la(t), _g(t.parser);
7766
+ return ca(t), _g(t.parser);
7768
7767
  },
7769
7768
  htmlBuilder: Rt,
7770
7769
  mathmlBuilder: Ot
@@ -7867,7 +7866,7 @@ z({
7867
7866
  var {
7868
7867
  parser: r,
7869
7868
  funcName: a
7870
- } = t, n = ta(e[0]), i = a;
7869
+ } = t, n = ra(e[0]), i = a;
7871
7870
  return i in Fl && (i = Fl[i]), {
7872
7871
  type: "font",
7873
7872
  mode: r.mode,
@@ -7891,7 +7890,7 @@ z({
7891
7890
  return {
7892
7891
  type: "mclass",
7893
7892
  mode: r.mode,
7894
- mclass: oa(a),
7893
+ mclass: sa(a),
7895
7894
  body: [{
7896
7895
  type: "font",
7897
7896
  mode: r.mode,
@@ -7987,7 +7986,7 @@ var pm = (t, e) => {
7987
7986
  var x;
7988
7987
  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;
7989
7988
  var M, w;
7990
- return t.leftDelim == null ? M = Tr(e, ["mopen"]) : M = Ft.customSizedDelim(t.leftDelim, x, !0, e.havingStyle(r), t.mode, ["mopen"]), t.continued ? w = O.makeSpan([]) : t.rightDelim == null ? w = Tr(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);
7989
+ return t.leftDelim == null ? M = vr(e, ["mopen"]) : M = Ft.customSizedDelim(t.leftDelim, x, !0, e.havingStyle(r), t.mode, ["mopen"]), t.continued ? w = O.makeSpan([]) : t.rightDelim == null ? w = vr(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);
7991
7990
  }, js = (t, e) => {
7992
7991
  var r = new L.MathNode("mfrac", [be(t.numer, e), be(t.denom, e)]);
7993
7992
  if (!t.hasBarLine)
@@ -8169,7 +8168,7 @@ z({
8169
8168
  handler(t, e) {
8170
8169
  var {
8171
8170
  parser: r
8172
- } = t, a = e[4], n = e[5], i = ta(e[0]), s = i.type === "atom" && i.family === "open" ? Bl(i.text) : null, o = ta(e[1]), c = o.type === "atom" && o.family === "close" ? Bl(o.text) : null, _ = ie(e[2], "size"), u, p = null;
8171
+ } = t, a = e[4], n = e[5], i = ra(e[0]), s = i.type === "atom" && i.family === "open" ? Bl(i.text) : null, o = ra(e[1]), c = o.type === "atom" && o.family === "close" ? Bl(o.text) : null, _ = ie(e[2], "size"), u, p = null;
8173
8172
  _.isBlank ? u = !0 : (p = _.value, u = p.number > 0);
8174
8173
  var E = "auto", S = e[3];
8175
8174
  if (S.type === "ordgroup") {
@@ -8894,7 +8893,7 @@ var Em = (t, e, r, a, n, i, s) => {
8894
8893
  }
8895
8894
  var C = 0, N = 0;
8896
8895
  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, s, N, C) : (C && (c.style.position = "relative", c.style.top = U(C)), c);
8897
- }, Cr = (t, e) => {
8896
+ }, yr = (t, e) => {
8898
8897
  var r;
8899
8898
  if (t.symbol)
8900
8899
  r = new st("mo", [pt(t.name, t.mode)]), K.contains(Sm, t.name) && r.setAttribute("largeop", "false");
@@ -8941,7 +8940,7 @@ z({
8941
8940
  };
8942
8941
  },
8943
8942
  htmlBuilder: mr,
8944
- mathmlBuilder: Cr
8943
+ mathmlBuilder: yr
8945
8944
  });
8946
8945
  z({
8947
8946
  type: "op",
@@ -8964,7 +8963,7 @@ z({
8964
8963
  };
8965
8964
  },
8966
8965
  htmlBuilder: mr,
8967
- mathmlBuilder: Cr
8966
+ mathmlBuilder: yr
8968
8967
  });
8969
8968
  var Ag = {
8970
8969
  "∫": "\\int",
@@ -8995,7 +8994,7 @@ z({
8995
8994
  };
8996
8995
  },
8997
8996
  htmlBuilder: mr,
8998
- mathmlBuilder: Cr
8997
+ mathmlBuilder: yr
8999
8998
  });
9000
8999
  z({
9001
9000
  type: "op",
@@ -9018,7 +9017,7 @@ z({
9018
9017
  };
9019
9018
  },
9020
9019
  htmlBuilder: mr,
9021
- mathmlBuilder: Cr
9020
+ mathmlBuilder: yr
9022
9021
  });
9023
9022
  z({
9024
9023
  type: "op",
@@ -9041,7 +9040,7 @@ z({
9041
9040
  };
9042
9041
  },
9043
9042
  htmlBuilder: mr,
9044
- mathmlBuilder: Cr
9043
+ mathmlBuilder: yr
9045
9044
  });
9046
9045
  var hm = (t, e) => {
9047
9046
  var r, a, n = !1, i;
@@ -10934,7 +10933,7 @@ class Yg {
10934
10933
  return r != null ? typeof r == "string" || typeof r == "function" || !r.unexpandable : Vt.hasOwnProperty(e) && !Vt[e].primitive;
10935
10934
  }
10936
10935
  }
10937
- var Xl = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/, Kr = Object.freeze({
10936
+ var Xl = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/, jr = Object.freeze({
10938
10937
  "₊": "+",
10939
10938
  "₋": "-",
10940
10939
  "₌": "=",
@@ -11430,7 +11429,7 @@ var Xl = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗ
11430
11429
  Ώ: "Ώ",
11431
11430
  Ὼ: "Ὼ"
11432
11431
  };
11433
- class ca {
11432
+ class da {
11434
11433
  constructor(e, r) {
11435
11434
  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 Yg(e, r, this.mode), this.settings = r, this.leftrightDepth = 0;
11436
11435
  }
@@ -11500,7 +11499,7 @@ class ca {
11500
11499
  for (var a = []; ; ) {
11501
11500
  this.mode === "math" && this.consumeSpaces();
11502
11501
  var n = this.fetch();
11503
- if (ca.endOfExpression.indexOf(n.text) !== -1 || r && n.text === r || e && Vt[n.text] && Vt[n.text].infix)
11502
+ if (da.endOfExpression.indexOf(n.text) !== -1 || r && n.text === r || e && Vt[n.text] && Vt[n.text].infix)
11504
11503
  break;
11505
11504
  var i = this.parseAtom(r);
11506
11505
  if (i) {
@@ -11617,13 +11616,13 @@ class ca {
11617
11616
  mode: this.mode,
11618
11617
  body: c
11619
11618
  };
11620
- } else if (Kr[i.text]) {
11619
+ } else if (jr[i.text]) {
11621
11620
  var _ = Xl.test(i.text), u = [];
11622
- for (u.push(new mt(Kr[i.text])), this.consume(); ; ) {
11621
+ for (u.push(new mt(jr[i.text])), this.consume(); ; ) {
11623
11622
  var p = this.fetch().text;
11624
- if (!Kr[p] || Xl.test(p) !== _)
11623
+ if (!jr[p] || Xl.test(p) !== _)
11625
11624
  break;
11626
- u.unshift(new mt(Kr[p])), this.consume();
11625
+ u.unshift(new mt(jr[p])), this.consume();
11627
11626
  }
11628
11627
  var E = this.subparse(u);
11629
11628
  _ ? n = {
@@ -11996,11 +11995,11 @@ class ca {
11996
11995
  return s;
11997
11996
  }
11998
11997
  }
11999
- ca.endOfExpression = ["}", "\\endgroup", "\\end", "\\right", "&"];
11998
+ da.endOfExpression = ["}", "\\endgroup", "\\end", "\\right", "&"];
12000
11999
  var zg = function(t, e) {
12001
12000
  if (!(typeof t == "string" || t instanceof String))
12002
12001
  throw new TypeError("KaTeX can only parse string typed expression");
12003
- var r = new ca(t, e);
12002
+ var r = new da(t, e);
12004
12003
  delete r.gullet.macros.current["\\df@tag"];
12005
12004
  var a = r.parse();
12006
12005
  if (delete r.gullet.macros.current["\\current@color"], delete r.gullet.macros.current["\\color"], r.gullet.macros.get("\\df@tag")) {
@@ -12652,7 +12651,7 @@ function Zg() {
12652
12651
  end: "'",
12653
12652
  illegal: "\\n",
12654
12653
  contains: [re]
12655
- }, Ne = {
12654
+ }, Re = {
12656
12655
  scope: "string",
12657
12656
  begin: '"',
12658
12657
  end: '"',
@@ -12759,7 +12758,7 @@ function Zg() {
12759
12758
  scope: "title",
12760
12759
  begin: F,
12761
12760
  relevance: 0
12762
- }, Re = {
12761
+ }, Oe = {
12763
12762
  // excludes method names from keyword processing
12764
12763
  begin: "\\.\\s*" + F,
12765
12764
  relevance: 0
@@ -12793,11 +12792,11 @@ function Zg() {
12793
12792
  HASH_COMMENT_MODE: Te,
12794
12793
  IDENT_RE: B,
12795
12794
  MATCH_NOTHING_RE: w,
12796
- METHOD_GUARD: Re,
12795
+ METHOD_GUARD: Oe,
12797
12796
  NUMBER_MODE: Ve,
12798
12797
  NUMBER_RE: J,
12799
12798
  PHRASAL_WORDS_MODE: fe,
12800
- QUOTE_STRING_MODE: Ne,
12799
+ QUOTE_STRING_MODE: Re,
12801
12800
  REGEXP_MODE: Qe,
12802
12801
  RE_STARTERS_RE: ge,
12803
12802
  SHEBANG: oe,
@@ -12854,66 +12853,66 @@ function Zg() {
12854
12853
  "value"
12855
12854
  // common variable name
12856
12855
  ], xt = "keyword";
12857
- function yr(v, I, Y = xt) {
12856
+ function Nr(v, I, Y = xt) {
12858
12857
  const ne = /* @__PURE__ */ Object.create(null);
12859
12858
  return typeof v == "string" ? Pe(Y, v.split(" ")) : Array.isArray(v) ? Pe(Y, v) : Object.keys(v).forEach(function(Fe) {
12860
12859
  Object.assign(
12861
12860
  ne,
12862
- yr(v[Fe], I, Fe)
12861
+ Nr(v[Fe], I, Fe)
12863
12862
  );
12864
12863
  }), ne;
12865
12864
  function Pe(Fe, $) {
12866
12865
  I && ($ = $.map((V) => V.toLowerCase())), $.forEach(function(V) {
12867
12866
  const te = V.split("|");
12868
- ne[te[0]] = [Fe, da(te[0], te[1])];
12867
+ ne[te[0]] = [Fe, _a(te[0], te[1])];
12869
12868
  });
12870
12869
  }
12871
12870
  }
12872
- function da(v, I) {
12871
+ function _a(v, I) {
12873
12872
  return I ? Number(I) : pr(v) ? 0 : 1;
12874
12873
  }
12875
12874
  function pr(v) {
12876
12875
  return It.includes(v.toLowerCase());
12877
12876
  }
12878
- const Nr = {}, Dt = (v) => {
12877
+ const Rr = {}, Dt = (v) => {
12879
12878
  console.error(v);
12880
- }, Rr = (v, ...I) => {
12879
+ }, Or = (v, ...I) => {
12881
12880
  console.log(`WARN: ${v}`, ...I);
12882
12881
  }, Et = (v, I) => {
12883
- Nr[`${v}/${I}`] || (console.log(`Deprecated as of ${v}. ${I}`), Nr[`${v}/${I}`] = !0);
12882
+ Rr[`${v}/${I}`] || (console.log(`Deprecated as of ${v}. ${I}`), Rr[`${v}/${I}`] = !0);
12884
12883
  }, dt = new Error();
12885
- function Or(v, I, { key: Y }) {
12884
+ function Ar(v, I, { key: Y }) {
12886
12885
  let ne = 0;
12887
12886
  const Pe = v[Y], Fe = {}, $ = {};
12888
12887
  for (let V = 1; V <= I.length; V++)
12889
12888
  $[V + ne] = Pe[V], Fe[V + ne] = !0, ne += R(I[V - 1]);
12890
12889
  v[Y] = $, v[Y]._emit = Fe, v[Y]._multi = !0;
12891
12890
  }
12892
- function _a(v) {
12891
+ function ua(v) {
12893
12892
  if (Array.isArray(v.begin)) {
12894
12893
  if (v.skip || v.excludeBegin || v.returnBegin)
12895
12894
  throw Dt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), dt;
12896
12895
  if (typeof v.beginScope != "object" || v.beginScope === null)
12897
12896
  throw Dt("beginScope must be object"), dt;
12898
- Or(v, v.begin, { key: "beginScope" }), v.begin = M(v.begin, { joinWith: "" });
12897
+ Ar(v, v.begin, { key: "beginScope" }), v.begin = M(v.begin, { joinWith: "" });
12899
12898
  }
12900
12899
  }
12901
- function Ar(v) {
12900
+ function Ir(v) {
12902
12901
  if (Array.isArray(v.end)) {
12903
12902
  if (v.skip || v.excludeEnd || v.returnEnd)
12904
12903
  throw Dt("skip, excludeEnd, returnEnd not compatible with endScope: {}"), dt;
12905
12904
  if (typeof v.endScope != "object" || v.endScope === null)
12906
12905
  throw Dt("endScope must be object"), dt;
12907
- Or(v, v.end, { key: "endScope" }), v.end = M(v.end, { joinWith: "" });
12906
+ Ar(v, v.end, { key: "endScope" }), v.end = M(v.end, { joinWith: "" });
12908
12907
  }
12909
12908
  }
12910
12909
  function gr(v) {
12911
12910
  v.scope && typeof v.scope == "object" && v.scope !== null && (v.beginScope = v.scope, delete v.scope);
12912
12911
  }
12913
- function ua(v) {
12914
- gr(v), typeof v.beginScope == "string" && (v.beginScope = { _wrap: v.beginScope }), typeof v.endScope == "string" && (v.endScope = { _wrap: v.endScope }), _a(v), Ar(v);
12912
+ function ma(v) {
12913
+ gr(v), typeof v.beginScope == "string" && (v.beginScope = { _wrap: v.beginScope }), typeof v.endScope == "string" && (v.endScope = { _wrap: v.endScope }), ua(v), Ir(v);
12915
12914
  }
12916
- function Ir(v) {
12915
+ function xr(v) {
12917
12916
  function I($, V) {
12918
12917
  return new RegExp(
12919
12918
  p($),
@@ -12939,7 +12938,7 @@ function Zg() {
12939
12938
  const te = this.matcherRe.exec(V);
12940
12939
  if (!te)
12941
12940
  return null;
12942
- const $e = te.findIndex((Sr, Ea) => Ea > 0 && Sr !== void 0), Be = this.matchIndexes[$e];
12941
+ const $e = te.findIndex((Sr, Sa) => Sa > 0 && Sr !== void 0), Be = this.matchIndexes[$e];
12943
12942
  return te.splice(0, $e), Object.assign(te, Be);
12944
12943
  }
12945
12944
  }
@@ -12990,7 +12989,7 @@ function Zg() {
12990
12989
  // do this early so compiler extensions generally don't have to worry about
12991
12990
  // the distinction between match/begin
12992
12991
  Jt,
12993
- ua,
12992
+ ma,
12994
12993
  At
12995
12994
  ].forEach((Be) => Be($, V)), v.compilerExtensions.forEach((Be) => Be($, V)), $.__beforeBegin = null, [
12996
12995
  gt,
@@ -13001,11 +13000,11 @@ function Zg() {
13001
13000
  sr
13002
13001
  ].forEach((Be) => Be($, V)), $.isCompiled = !0;
13003
13002
  let $e = null;
13004
- return typeof $.keywords == "object" && $.keywords.$pattern && ($.keywords = Object.assign({}, $.keywords), $e = $.keywords.$pattern, delete $.keywords.$pattern), $e = $e || /\w+/, $.keywords && ($.keywords = yr($.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(
13003
+ return typeof $.keywords == "object" && $.keywords.$pattern && ($.keywords = Object.assign({}, $.keywords), $e = $.keywords.$pattern, delete $.keywords.$pattern), $e = $e || /\w+/, $.keywords && ($.keywords = Nr($.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(
13005
13004
  /** @type {RegExp | string} */
13006
13005
  $.illegal
13007
13006
  )), $.contains || ($.contains = []), $.contains = [].concat(...$.contains.map(function(Be) {
13008
- return ma(Be === "self" ? $ : Be);
13007
+ return pa(Be === "self" ? $ : Be);
13009
13008
  })), $.contains.forEach(function(Be) {
13010
13009
  Fe(
13011
13010
  /** @type Mode */
@@ -13021,21 +13020,21 @@ function Zg() {
13021
13020
  v
13022
13021
  );
13023
13022
  }
13024
- function xr(v) {
13025
- return v ? v.endsWithParent || xr(v.starts) : !1;
13023
+ function Dr(v) {
13024
+ return v ? v.endsWithParent || Dr(v.starts) : !1;
13026
13025
  }
13027
- function ma(v) {
13026
+ function pa(v) {
13028
13027
  return v.variants && !v.cachedVariants && (v.cachedVariants = v.variants.map(function(I) {
13029
13028
  return a(v, { variants: null }, I);
13030
- })), v.cachedVariants ? v.cachedVariants : xr(v) ? a(v, { starts: v.starts ? a(v.starts) : null }) : Object.isFrozen(v) ? a(v) : v;
13029
+ })), v.cachedVariants ? v.cachedVariants : Dr(v) ? a(v, { starts: v.starts ? a(v.starts) : null }) : Object.isFrozen(v) ? a(v) : v;
13031
13030
  }
13032
- var pa = "11.11.1";
13033
- class ga extends Error {
13031
+ var ga = "11.11.1";
13032
+ class Ea extends Error {
13034
13033
  constructor(I, Y) {
13035
13034
  super(I), this.name = "HTMLInjectionError", this.html = Y;
13036
13035
  }
13037
13036
  }
13038
- const Er = r, Dr = a, wr = Symbol("nomatch"), Ee = 7, er = function(v) {
13037
+ const Er = r, wr = a, Mr = Symbol("nomatch"), Ee = 7, er = function(v) {
13039
13038
  const I = /* @__PURE__ */ Object.create(null), Y = /* @__PURE__ */ Object.create(null), ne = [];
13040
13039
  let Pe = !0;
13041
13040
  const Fe = "Could not find the language '{}', did you forget to load/include a language module?", $ = { disableAutodetect: !0, name: "Plain text", contains: [] };
@@ -13060,7 +13059,7 @@ function Zg() {
13060
13059
  const de = V.languageDetectRe.exec(j);
13061
13060
  if (de) {
13062
13061
  const ve = Yt(de[1]);
13063
- return ve || (Rr(Fe.replace("{}", de[1])), Rr("Falling back to no-highlight mode for this block.", P)), ve ? de[1] : "no-highlight";
13062
+ return ve || (Or(Fe.replace("{}", de[1])), Or("Falling back to no-highlight mode for this block.", P)), ve ? de[1] : "no-highlight";
13064
13063
  }
13065
13064
  return j.split(/\s+/).find((ve) => te(ve) || Yt(ve));
13066
13065
  }
@@ -13072,9 +13071,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
13072
13071
  code: ve,
13073
13072
  language: ze
13074
13073
  };
13075
- Lr("before:highlight", bt);
13074
+ kr("before:highlight", bt);
13076
13075
  const zt = bt.result ? bt.result : Sr(bt.language, bt.code, de);
13077
- return zt.code = bt.code, Lr("after:highlight", zt), zt;
13076
+ return zt.code = bt.code, kr("after:highlight", zt), zt;
13078
13077
  }
13079
13078
  function Sr(P, j, de, ve) {
13080
13079
  const ze = /* @__PURE__ */ Object.create(null);
@@ -13094,7 +13093,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
13094
13093
  const Se = Tt.case_insensitive ? W[0].toLowerCase() : W[0], je = bt(ae, Se);
13095
13094
  if (je) {
13096
13095
  const [wt, zm] = je;
13097
- if (Ke.addText(se), se = "", ze[Se] = (ze[Se] || 0) + 1, ze[Se] <= Ee && (Fr += zm), wt.startsWith("_"))
13096
+ if (Ke.addText(se), se = "", ze[Se] = (ze[Se] || 0) + 1, ze[Se] <= Ee && (Ur += zm), wt.startsWith("_"))
13098
13097
  se += W[0];
13099
13098
  else {
13100
13099
  const Hm = Tt.classNameAliases[wt] || wt;
@@ -13106,7 +13105,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
13106
13105
  }
13107
13106
  se += Ce.substring(G), Ke.addText(se);
13108
13107
  }
13109
- function kr() {
13108
+ function Pr() {
13110
13109
  if (Ce === "") return;
13111
13110
  let G = null;
13112
13111
  if (typeof ae.subLanguage == "string") {
@@ -13117,11 +13116,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
13117
13116
  G = Sr(ae.subLanguage, Ce, !0, ol[ae.subLanguage]), ol[ae.subLanguage] = /** @type {CompiledMode} */
13118
13117
  G._top;
13119
13118
  } else
13120
- G = Sa(Ce, ae.subLanguage.length ? ae.subLanguage : null);
13121
- ae.relevance > 0 && (Fr += G.relevance), Ke.__addSublanguage(G._emitter, G.language);
13119
+ G = ha(Ce, ae.subLanguage.length ? ae.subLanguage : null);
13120
+ ae.relevance > 0 && (Ur += G.relevance), Ke.__addSublanguage(G._emitter, G.language);
13122
13121
  }
13123
13122
  function it() {
13124
- ae.subLanguage != null ? kr() : zt(), Ce = "";
13123
+ ae.subLanguage != null ? Pr() : zt(), Ce = "";
13125
13124
  }
13126
13125
  function ft(G, W) {
13127
13126
  G !== "" && (Ke.startScope(W), Ke.addText(G), Ke.endScope());
@@ -13158,7 +13157,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
13158
13157
  return nl(G.parent, W, se);
13159
13158
  }
13160
13159
  function Fm(G) {
13161
- return ae.matcher.regexIndex === 0 ? (Ce += G[0], 1) : (Ta = !0, 0);
13160
+ return ae.matcher.regexIndex === 0 ? (Ce += G[0], 1) : (va = !0, 0);
13162
13161
  }
13163
13162
  function Um(G) {
13164
13163
  const W = G[0], se = G.rule, Se = new e(se), je = [se.__beforeBegin, se["on:begin"]];
@@ -13170,11 +13169,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
13170
13169
  function Bm(G) {
13171
13170
  const W = G[0], se = j.substring(G.index), Se = nl(ae, G, se);
13172
13171
  if (!Se)
13173
- return wr;
13172
+ return Mr;
13174
13173
  const je = ae;
13175
13174
  ae.endScope && ae.endScope._wrap ? (it(), ft(W, ae.endScope._wrap)) : ae.endScope && ae.endScope._multi ? (it(), rl(ae.endScope, G)) : je.skip ? Ce += W : (je.returnEnd || je.excludeEnd || (Ce += W), it(), je.excludeEnd && (Ce = W));
13176
13175
  do
13177
- ae.scope && Ke.closeNode(), !ae.skip && !ae.subLanguage && (Fr += ae.relevance), ae = ae.parent;
13176
+ ae.scope && Ke.closeNode(), !ae.skip && !ae.subLanguage && (Ur += ae.relevance), ae = ae.parent;
13178
13177
  while (ae !== Se.parent);
13179
13178
  return Se.starts && al(Se.starts, G), je.returnEnd ? 0 : W.length;
13180
13179
  }
@@ -13184,49 +13183,49 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
13184
13183
  W.scope && G.unshift(W.scope);
13185
13184
  G.forEach((W) => Ke.openNode(W));
13186
13185
  }
13187
- let Pr = {};
13186
+ let Fr = {};
13188
13187
  function il(G, W) {
13189
13188
  const se = W && W[0];
13190
13189
  if (Ce += G, se == null)
13191
13190
  return it(), 0;
13192
- if (Pr.type === "begin" && W.type === "end" && Pr.index === W.index && se === "") {
13191
+ if (Fr.type === "begin" && W.type === "end" && Fr.index === W.index && se === "") {
13193
13192
  if (Ce += j.slice(W.index, W.index + 1), !Pe) {
13194
13193
  const Se = new Error(`0 width match regex (${P})`);
13195
- throw Se.languageName = P, Se.badRule = Pr.rule, Se;
13194
+ throw Se.languageName = P, Se.badRule = Fr.rule, Se;
13196
13195
  }
13197
13196
  return 1;
13198
13197
  }
13199
- if (Pr = W, W.type === "begin")
13198
+ if (Fr = W, W.type === "begin")
13200
13199
  return Um(W);
13201
13200
  if (W.type === "illegal" && !de) {
13202
13201
  const Se = new Error('Illegal lexeme "' + se + '" for mode "' + (ae.scope || "<unnamed>") + '"');
13203
13202
  throw Se.mode = ae, Se;
13204
13203
  } else if (W.type === "end") {
13205
13204
  const Se = Bm(W);
13206
- if (Se !== wr)
13205
+ if (Se !== Mr)
13207
13206
  return Se;
13208
13207
  }
13209
13208
  if (W.type === "illegal" && se === "")
13210
13209
  return Ce += `
13211
13210
  `, 1;
13212
- if (fa > 1e5 && fa > W.index * 3)
13211
+ if (Ta > 1e5 && Ta > W.index * 3)
13213
13212
  throw new Error("potential infinite loop, way more iterations than matches");
13214
13213
  return Ce += se, se.length;
13215
13214
  }
13216
13215
  const Tt = Yt(P);
13217
13216
  if (!Tt)
13218
13217
  throw Dt(Fe.replace("{}", P)), new Error('Unknown language: "' + P + '"');
13219
- const Ym = Ir(Tt);
13220
- let ba = "", ae = ve || Ym;
13218
+ const Ym = xr(Tt);
13219
+ let fa = "", ae = ve || Ym;
13221
13220
  const ol = {}, Ke = new V.__emitter(V);
13222
13221
  Gm();
13223
- let Ce = "", Fr = 0, tr = 0, fa = 0, Ta = !1;
13222
+ let Ce = "", Ur = 0, tr = 0, Ta = 0, va = !1;
13224
13223
  try {
13225
13224
  if (Tt.__emitTokens)
13226
13225
  Tt.__emitTokens(j, Ke);
13227
13226
  else {
13228
13227
  for (ae.matcher.considerAll(); ; ) {
13229
- fa++, Ta ? Ta = !1 : ae.matcher.considerAll(), ae.matcher.lastIndex = tr;
13228
+ Ta++, va ? va = !1 : ae.matcher.considerAll(), ae.matcher.lastIndex = tr;
13230
13229
  const G = ae.matcher.exec(j);
13231
13230
  if (!G) break;
13232
13231
  const W = j.substring(tr, G.index), se = il(W, G);
@@ -13234,10 +13233,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
13234
13233
  }
13235
13234
  il(j.substring(tr));
13236
13235
  }
13237
- return Ke.finalize(), ba = Ke.toHTML(), {
13236
+ return Ke.finalize(), fa = Ke.toHTML(), {
13238
13237
  language: P,
13239
- value: ba,
13240
- relevance: Fr,
13238
+ value: fa,
13239
+ relevance: Ur,
13241
13240
  illegal: !1,
13242
13241
  _emitter: Ke,
13243
13242
  _top: ae
@@ -13254,7 +13253,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
13254
13253
  index: tr,
13255
13254
  context: j.slice(tr - 100, tr + 100),
13256
13255
  mode: G.mode,
13257
- resultSoFar: ba
13256
+ resultSoFar: fa
13258
13257
  },
13259
13258
  _emitter: Ke
13260
13259
  };
@@ -13271,7 +13270,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
13271
13270
  throw G;
13272
13271
  }
13273
13272
  }
13274
- function Ea(P) {
13273
+ function Sa(P) {
13275
13274
  const j = {
13276
13275
  value: Er(P),
13277
13276
  illegal: !1,
@@ -13281,9 +13280,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
13281
13280
  };
13282
13281
  return j._emitter.addText(P), j;
13283
13282
  }
13284
- function Sa(P, j) {
13283
+ function ha(P, j) {
13285
13284
  j = j || V.languages || Object.keys(I);
13286
- const de = Ea(P), ve = j.filter(Yt).filter(tl).map(
13285
+ const de = Sa(P), ve = j.filter(Yt).filter(tl).map(
13287
13286
  (it) => Sr(it, P, !1)
13288
13287
  );
13289
13288
  ve.unshift(de);
@@ -13296,18 +13295,18 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
13296
13295
  return -1;
13297
13296
  }
13298
13297
  return 0;
13299
- }), [bt, zt] = ze, kr = bt;
13300
- return kr.secondBest = zt, kr;
13298
+ }), [bt, zt] = ze, Pr = bt;
13299
+ return Pr.secondBest = zt, Pr;
13301
13300
  }
13302
13301
  function Rm(P, j, de) {
13303
13302
  const ve = j && Y[j] || de;
13304
13303
  P.classList.add("hljs"), P.classList.add(`language-${ve}`);
13305
13304
  }
13306
- function ha(P) {
13305
+ function ba(P) {
13307
13306
  let j = null;
13308
13307
  const de = $e(P);
13309
13308
  if (te(de)) return;
13310
- if (Lr(
13309
+ if (kr(
13311
13310
  "before:highlightElement",
13312
13311
  { el: P, language: de }
13313
13312
  ), P.dataset.highlighted) {
@@ -13315,12 +13314,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
13315
13314
  return;
13316
13315
  }
13317
13316
  if (P.children.length > 0 && (V.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(P)), V.throwUnescapedHTML))
13318
- throw new ga(
13317
+ throw new Ea(
13319
13318
  "One of your code blocks includes unescaped HTML.",
13320
13319
  P.innerHTML
13321
13320
  );
13322
13321
  j = P;
13323
- const ve = j.textContent, ze = de ? Be(ve, { language: de, ignoreIllegals: !0 }) : Sa(ve);
13322
+ const ve = j.textContent, ze = de ? Be(ve, { language: de, ignoreIllegals: !0 }) : ha(ve);
13324
13323
  P.innerHTML = ze.value, P.dataset.highlighted = "yes", Rm(P, de, ze.language), P.result = {
13325
13324
  language: ze.language,
13326
13325
  // TODO: remove with version 11.0
@@ -13329,27 +13328,27 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
13329
13328
  }, ze.secondBest && (P.secondBest = {
13330
13329
  language: ze.secondBest.language,
13331
13330
  relevance: ze.secondBest.relevance
13332
- }), Lr("after:highlightElement", { el: P, result: ze, text: ve });
13331
+ }), kr("after:highlightElement", { el: P, result: ze, text: ve });
13333
13332
  }
13334
13333
  function Om(P) {
13335
- V = Dr(V, P);
13334
+ V = wr(V, P);
13336
13335
  }
13337
13336
  const Am = () => {
13338
- Mr(), Et("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
13337
+ Lr(), Et("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
13339
13338
  };
13340
13339
  function Im() {
13341
- Mr(), Et("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
13340
+ Lr(), Et("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
13342
13341
  }
13343
13342
  let Js = !1;
13344
- function Mr() {
13343
+ function Lr() {
13345
13344
  function P() {
13346
- Mr();
13345
+ Lr();
13347
13346
  }
13348
13347
  if (document.readyState === "loading") {
13349
13348
  Js || window.addEventListener("DOMContentLoaded", P, !1), Js = !0;
13350
13349
  return;
13351
13350
  }
13352
- document.querySelectorAll(V.cssSelector).forEach(ha);
13351
+ document.querySelectorAll(V.cssSelector).forEach(ba);
13353
13352
  }
13354
13353
  function xm(P, j) {
13355
13354
  let de = null;
@@ -13402,20 +13401,20 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
13402
13401
  const j = ne.indexOf(P);
13403
13402
  j !== -1 && ne.splice(j, 1);
13404
13403
  }
13405
- function Lr(P, j) {
13404
+ function kr(P, j) {
13406
13405
  const de = P;
13407
13406
  ne.forEach(function(ve) {
13408
13407
  ve[de] && ve[de](j);
13409
13408
  });
13410
13409
  }
13411
13410
  function Pm(P) {
13412
- return Et("10.7.0", "highlightBlock will be removed entirely in v12.0"), Et("10.7.0", "Please use highlightElement now."), ha(P);
13411
+ return Et("10.7.0", "highlightBlock will be removed entirely in v12.0"), Et("10.7.0", "Please use highlightElement now."), ba(P);
13413
13412
  }
13414
13413
  Object.assign(v, {
13415
13414
  highlight: Be,
13416
- highlightAuto: Sa,
13417
- highlightAll: Mr,
13418
- highlightElement: ha,
13415
+ highlightAuto: ha,
13416
+ highlightAll: Lr,
13417
+ highlightElement: ba,
13419
13418
  // TODO: Remove with v12 API
13420
13419
  highlightBlock: Pm,
13421
13420
  configure: Om,
@@ -13427,14 +13426,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ze = P, ve = j), de =
13427
13426
  getLanguage: Yt,
13428
13427
  registerAliases: el,
13429
13428
  autoDetection: tl,
13430
- inherit: Dr,
13429
+ inherit: wr,
13431
13430
  addPlugin: Lm,
13432
13431
  removePlugin: km
13433
13432
  }), v.debugMode = function() {
13434
13433
  Pe = !1;
13435
13434
  }, v.safeMode = function() {
13436
13435
  Pe = !0;
13437
- }, v.versionString = pa, v.regex = {
13436
+ }, v.versionString = ga, v.regex = {
13438
13437
  concat: T,
13439
13438
  lookahead: E,
13440
13439
  either: N,
@@ -25719,7 +25718,7 @@ function lS() {
25719
25718
  }, x = function({ includeEqual: Ve }) {
25720
25719
  let We;
25721
25720
  Ve ? We = "!%&*+-/<=>@^|~?" : We = "!%&*+-/<>@^|~?";
25722
- const Le = Array.from(We), Qe = a("[", ...Le.map(t), "]"), pe = i(Qe, /\./), ce = a(pe, r(pe)), Re = i(
25721
+ const Le = Array.from(We), Qe = a("[", ...Le.map(t), "]"), pe = i(Qe, /\./), ce = a(pe, r(pe)), Oe = i(
25723
25722
  a(ce, pe, "*"),
25724
25723
  // Matches at least 2 chars operators
25725
25724
  a(Qe, "+")
@@ -25729,7 +25728,7 @@ function lS() {
25729
25728
  scope: "operator",
25730
25729
  match: i(
25731
25730
  // symbolic operators:
25732
- Re,
25731
+ Oe,
25733
25732
  // other symbolic keywords:
25734
25733
  // Type casting and conversion operators:
25735
25734
  /:\?>/,
@@ -25863,7 +25862,7 @@ function lS() {
25863
25862
  },
25864
25863
  o.BACKSLASH_ESCAPE
25865
25864
  ]
25866
- }, Ne = {
25865
+ }, Re = {
25867
25866
  scope: "string",
25868
25867
  begin: /"""/,
25869
25868
  end: /"""/,
@@ -25970,7 +25969,7 @@ function lS() {
25970
25969
  qe,
25971
25970
  Ye,
25972
25971
  Ie,
25973
- Ne,
25972
+ Re,
25974
25973
  le,
25975
25974
  re,
25976
25975
  Te
@@ -25989,7 +25988,7 @@ function lS() {
25989
25988
  contains: [
25990
25989
  N,
25991
25990
  // can contain any constant value
25992
- Ne,
25991
+ Re,
25993
25992
  le,
25994
25993
  re,
25995
25994
  Te,
@@ -31965,8 +31964,8 @@ function wS() {
31965
31964
  );
31966
31965
  function c(_) {
31967
31966
  const u = _.regex, p = (pe, { after: ce }) => {
31968
- const Re = "</" + pe[0].slice(1);
31969
- return pe.input.indexOf(Re, ce) !== -1;
31967
+ const Oe = "</" + pe[0].slice(1);
31968
+ return pe.input.indexOf(Oe, ce) !== -1;
31970
31969
  }, E = t, S = {
31971
31970
  begin: "<>",
31972
31971
  end: "</>"
@@ -31978,7 +31977,7 @@ function wS() {
31978
31977
  * @param {CallbackResponse} response
31979
31978
  */
31980
31979
  isTrulyOpeningTag: (pe, ce) => {
31981
- const Re = pe[0].length + pe.index, ke = pe.input[Re];
31980
+ const Oe = pe[0].length + pe.index, ke = pe.input[Oe];
31982
31981
  if (
31983
31982
  // HTML should not include another raw `<` inside a tag
31984
31983
  // nested type?
@@ -31990,9 +31989,9 @@ function wS() {
31990
31989
  ce.ignoreMatch();
31991
31990
  return;
31992
31991
  }
31993
- ke === ">" && (p(pe, { after: Re }) || ce.ignoreMatch());
31992
+ ke === ">" && (p(pe, { after: Oe }) || ce.ignoreMatch());
31994
31993
  let tt;
31995
- const Xe = pe.input.substring(Re);
31994
+ const Xe = pe.input.substring(Oe);
31996
31995
  if (tt = Xe.match(/^\s*=/)) {
31997
31996
  ce.ignoreMatch();
31998
31997
  return;
@@ -32196,7 +32195,7 @@ function wS() {
32196
32195
  }
32197
32196
  }
32198
32197
  ]
32199
- }, Ne = {
32198
+ }, Re = {
32200
32199
  relevance: 0,
32201
32200
  match: u.either(
32202
32201
  // Hard coded exceptions
@@ -32323,7 +32322,7 @@ function wS() {
32323
32322
  aliases: ["js", "jsx", "mjs", "cjs"],
32324
32323
  keywords: C,
32325
32324
  // this will be extended by TypeScript
32326
- exports: { PARAMS_CONTAINS: oe, CLASS_REFERENCE: Ne },
32325
+ exports: { PARAMS_CONTAINS: oe, CLASS_REFERENCE: Re },
32327
32326
  illegal: /#(?![$_A-z])/,
32328
32327
  contains: [
32329
32328
  _.SHEBANG({
@@ -32342,7 +32341,7 @@ function wS() {
32342
32341
  // Skip numbers when they are part of a variable name
32343
32342
  { match: /\$\d+/ },
32344
32343
  x,
32345
- Ne,
32344
+ Re,
32346
32345
  {
32347
32346
  scope: "attr",
32348
32347
  match: E + u.lookahead(":"),
@@ -46696,8 +46695,8 @@ function Th() {
46696
46695
  keyword: R,
46697
46696
  literal: ((re) => {
46698
46697
  const le = [];
46699
- return re.forEach((Ne) => {
46700
- le.push(Ne), Ne.toLowerCase() === Ne ? le.push(Ne.toUpperCase()) : le.push(Ne.toLowerCase());
46698
+ return re.forEach((Re) => {
46699
+ le.push(Re), Re.toLowerCase() === Re ? le.push(Re.toUpperCase()) : le.push(Re.toLowerCase());
46701
46700
  }), le;
46702
46701
  })(N),
46703
46702
  built_in: A
@@ -57094,7 +57093,7 @@ function sb() {
57094
57093
  // Consume .keyword to prevent highlighting properties and methods as keywords.
57095
57094
  match: r(/\./, n(..._)),
57096
57095
  relevance: 0
57097
- }, re = _.filter((Ee) => typeof Ee == "string").concat(["_|0"]), le = _.filter((Ee) => typeof Ee != "string").concat(c).map(i), Ne = { variants: [
57096
+ }, re = _.filter((Ee) => typeof Ee == "string").concat(["_|0"]), le = _.filter((Ee) => typeof Ee != "string").concat(c).map(i), Re = { variants: [
57098
57097
  {
57099
57098
  className: "keyword",
57100
57099
  match: n(...le, ...o)
@@ -57111,7 +57110,7 @@ function sb() {
57111
57110
  }, Ie = [
57112
57111
  ge,
57113
57112
  oe,
57114
- Ne
57113
+ Re
57115
57114
  ], Ye = {
57116
57115
  // Consume .built_in to prevent highlighting properties and methods.
57117
57116
  match: r(/\./, n(...S)),
@@ -57154,7 +57153,7 @@ function sb() {
57154
57153
  // binary-literal
57155
57154
  { match: /\b0b([01]_*)+\b/ }
57156
57155
  ]
57157
- }, Re = (Ee = "") => ({
57156
+ }, Oe = (Ee = "") => ({
57158
57157
  className: "subst",
57159
57158
  variants: [
57160
57159
  { match: r(/\\/, Ee, /[0\\tnr"']/) },
@@ -57172,7 +57171,7 @@ function sb() {
57172
57171
  begin: r(Ee, /"""/),
57173
57172
  end: r(/"""/, Ee),
57174
57173
  contains: [
57175
- Re(Ee),
57174
+ Oe(Ee),
57176
57175
  ke(Ee),
57177
57176
  tt(Ee)
57178
57177
  ]
@@ -57180,7 +57179,7 @@ function sb() {
57180
57179
  begin: r(Ee, /"/),
57181
57180
  end: r(/"/, Ee),
57182
57181
  contains: [
57183
- Re(Ee),
57182
+ Oe(Ee),
57184
57183
  tt(Ee)
57185
57184
  ]
57186
57185
  }), ct = {
@@ -57229,17 +57228,17 @@ function sb() {
57229
57228
  At("#"),
57230
57229
  sr
57231
57230
  ]
57232
- }, xt = { match: r(/`/, A, /`/) }, yr = {
57231
+ }, xt = { match: r(/`/, A, /`/) }, Nr = {
57233
57232
  className: "variable",
57234
57233
  match: /\$\d+/
57235
- }, da = {
57234
+ }, _a = {
57236
57235
  className: "variable",
57237
57236
  match: `\\$${R}+`
57238
57237
  }, pr = [
57239
57238
  xt,
57240
- yr,
57241
- da
57242
- ], Nr = {
57239
+ Nr,
57240
+ _a
57241
+ ], Rr = {
57243
57242
  match: /(@|#(un)?)available/,
57244
57243
  scope: "keyword",
57245
57244
  starts: { contains: [
@@ -57257,13 +57256,13 @@ function sb() {
57257
57256
  }, Dt = {
57258
57257
  scope: "keyword",
57259
57258
  match: r(/@/, n(...M), e(n(/\(/, /\s+/)))
57260
- }, Rr = {
57259
+ }, Or = {
57261
57260
  scope: "meta",
57262
57261
  match: r(/@/, A)
57263
57262
  }, Et = [
57264
- Nr,
57263
+ Rr,
57265
57264
  Dt,
57266
- Rr
57265
+ Or
57267
57266
  ], dt = {
57268
57267
  match: e(/\b[A-Z]/),
57269
57268
  relevance: 0,
@@ -57295,7 +57294,7 @@ function sb() {
57295
57294
  relevance: 0
57296
57295
  }
57297
57296
  ]
57298
- }, Or = {
57297
+ }, Ar = {
57299
57298
  begin: /</,
57300
57299
  end: />/,
57301
57300
  keywords: fe,
@@ -57307,19 +57306,19 @@ function sb() {
57307
57306
  dt
57308
57307
  ]
57309
57308
  };
57310
- dt.contains.push(Or);
57311
- const _a = {
57309
+ dt.contains.push(Ar);
57310
+ const ua = {
57312
57311
  match: r(A, /\s*:/),
57313
57312
  keywords: "_|0",
57314
57313
  relevance: 0
57315
- }, Ar = {
57314
+ }, Ir = {
57316
57315
  begin: /\(/,
57317
57316
  end: /\)/,
57318
57317
  relevance: 0,
57319
57318
  keywords: fe,
57320
57319
  contains: [
57321
57320
  "self",
57322
- _a,
57321
+ ua,
57323
57322
  ...Q,
57324
57323
  It,
57325
57324
  ...Ie,
@@ -57339,7 +57338,7 @@ function sb() {
57339
57338
  ...Q,
57340
57339
  dt
57341
57340
  ]
57342
- }, ua = {
57341
+ }, ma = {
57343
57342
  begin: n(
57344
57343
  e(r(A, /\s*:/)),
57345
57344
  e(r(A, /\s+/, A, /\s*:/))
@@ -57356,12 +57355,12 @@ function sb() {
57356
57355
  match: A
57357
57356
  }
57358
57357
  ]
57359
- }, Ir = {
57358
+ }, xr = {
57360
57359
  begin: /\(/,
57361
57360
  end: /\)/,
57362
57361
  keywords: fe,
57363
57362
  contains: [
57364
- ua,
57363
+ ma,
57365
57364
  ...Q,
57366
57365
  ...Ie,
57367
57366
  ...Le,
@@ -57369,11 +57368,11 @@ function sb() {
57369
57368
  ct,
57370
57369
  ...Et,
57371
57370
  dt,
57372
- Ar
57371
+ Ir
57373
57372
  ],
57374
57373
  endsParent: !0,
57375
57374
  illegal: /["']/
57376
- }, xr = {
57375
+ }, Dr = {
57377
57376
  match: [
57378
57377
  /(func|macro)/,
57379
57378
  /\s+/,
@@ -57385,14 +57384,14 @@ function sb() {
57385
57384
  },
57386
57385
  contains: [
57387
57386
  gr,
57388
- Ir,
57387
+ xr,
57389
57388
  J
57390
57389
  ],
57391
57390
  illegal: [
57392
57391
  /\[/,
57393
57392
  /%/
57394
57393
  ]
57395
- }, ma = {
57394
+ }, pa = {
57396
57395
  match: [
57397
57396
  /\b(?:subscript|init[?!]?)/,
57398
57397
  /\s*(?=[<(])/
@@ -57400,11 +57399,11 @@ function sb() {
57400
57399
  className: { 1: "keyword" },
57401
57400
  contains: [
57402
57401
  gr,
57403
- Ir,
57402
+ xr,
57404
57403
  J
57405
57404
  ],
57406
57405
  illegal: /\[|%/
57407
- }, pa = {
57406
+ }, ga = {
57408
57407
  match: [
57409
57408
  /operator/,
57410
57409
  /\s+/,
@@ -57414,7 +57413,7 @@ function sb() {
57414
57413
  1: "keyword",
57415
57414
  3: "title"
57416
57415
  }
57417
- }, ga = {
57416
+ }, Ea = {
57418
57417
  begin: [
57419
57418
  /precedencegroup/,
57420
57419
  /\s+/,
@@ -57443,7 +57442,7 @@ function sb() {
57443
57442
  3: "keyword",
57444
57443
  5: "title.function"
57445
57444
  }
57446
- }, Dr = {
57445
+ }, wr = {
57447
57446
  match: [
57448
57447
  /class\b/,
57449
57448
  /\s+/,
@@ -57453,7 +57452,7 @@ function sb() {
57453
57452
  1: "keyword",
57454
57453
  3: "keyword"
57455
57454
  }
57456
- }, wr = {
57455
+ }, Mr = {
57457
57456
  begin: [
57458
57457
  /(struct|protocol|class|extension|enum|actor)/,
57459
57458
  /\s+/,
@@ -57511,13 +57510,13 @@ function sb() {
57511
57510
  keywords: fe,
57512
57511
  contains: [
57513
57512
  ...Q,
57514
- xr,
57515
- ma,
57516
- Er,
57517
57513
  Dr,
57518
- wr,
57519
57514
  pa,
57515
+ Er,
57516
+ wr,
57517
+ Mr,
57520
57518
  ga,
57519
+ Ea,
57521
57520
  {
57522
57521
  beginKeywords: "import",
57523
57522
  end: /$/,
@@ -57533,7 +57532,7 @@ function sb() {
57533
57532
  ...pr,
57534
57533
  ...Et,
57535
57534
  dt,
57536
- Ar
57535
+ Ir
57537
57536
  ]
57538
57537
  };
57539
57538
  }
@@ -58613,9 +58612,9 @@ function gb() {
58613
58612
  n
58614
58613
  );
58615
58614
  function c(u) {
58616
- const p = u.regex, E = (ce, { after: Re }) => {
58615
+ const p = u.regex, E = (ce, { after: Oe }) => {
58617
58616
  const ke = "</" + ce[0].slice(1);
58618
- return ce.input.indexOf(ke, Re) !== -1;
58617
+ return ce.input.indexOf(ke, Oe) !== -1;
58619
58618
  }, S = t, h = {
58620
58619
  begin: "<>",
58621
58620
  end: "</>"
@@ -58626,7 +58625,7 @@ function gb() {
58626
58625
  * @param {RegExpMatchArray} match
58627
58626
  * @param {CallbackResponse} response
58628
58627
  */
58629
- isTrulyOpeningTag: (ce, Re) => {
58628
+ isTrulyOpeningTag: (ce, Oe) => {
58630
58629
  const ke = ce[0].length + ce.index, tt = ce.input[ke];
58631
58630
  if (
58632
58631
  // HTML should not include another raw `<` inside a tag
@@ -58636,18 +58635,18 @@ function gb() {
58636
58635
  // `<T, A extends keyof T, V>`
58637
58636
  tt === ","
58638
58637
  ) {
58639
- Re.ignoreMatch();
58638
+ Oe.ignoreMatch();
58640
58639
  return;
58641
58640
  }
58642
- tt === ">" && (E(ce, { after: ke }) || Re.ignoreMatch());
58641
+ tt === ">" && (E(ce, { after: ke }) || Oe.ignoreMatch());
58643
58642
  let Xe;
58644
58643
  const gt = ce.input.substring(ke);
58645
58644
  if (Xe = gt.match(/^\s*=/)) {
58646
- Re.ignoreMatch();
58645
+ Oe.ignoreMatch();
58647
58646
  return;
58648
58647
  }
58649
58648
  if ((Xe = gt.match(/^\s+extends\s+/)) && Xe.index === 0) {
58650
- Re.ignoreMatch();
58649
+ Oe.ignoreMatch();
58651
58650
  return;
58652
58651
  }
58653
58652
  }
@@ -58812,7 +58811,7 @@ function gb() {
58812
58811
  excludeEnd: !0,
58813
58812
  keywords: N,
58814
58813
  contains: re
58815
- }, Ne = {
58814
+ }, Re = {
58816
58815
  variants: [
58817
58816
  // class Car extends vehicle
58818
58817
  {
@@ -59112,7 +59111,7 @@ function gb() {
59112
59111
  },
59113
59112
  Ve,
59114
59113
  qe,
59115
- Ne,
59114
+ Re,
59116
59115
  Le,
59117
59116
  {
59118
59117
  match: /\$[(.]/
@@ -61757,10 +61756,10 @@ ${a}
61757
61756
  return /* @__PURE__ */ vt.createElement("div", { id: e, className: r }, wu(a));
61758
61757
  };
61759
61758
  function qb(t, e, r, a) {
61760
- const n = Ur.useRef(r), i = Ur.useRef(a);
61761
- Ur.useEffect(() => {
61759
+ const n = Br.useRef(r), i = Br.useRef(a);
61760
+ Br.useEffect(() => {
61762
61761
  n.current = r, i.current = a;
61763
- }), Ur.useEffect(() => {
61762
+ }), Br.useEffect(() => {
61764
61763
  const s = t && "current" in t ? t.current : t;
61765
61764
  if (!s) return;
61766
61765
  let o = 0;
@@ -61775,11 +61774,11 @@ function qb(t, e, r, a) {
61775
61774
  }, [t, e]);
61776
61775
  }
61777
61776
  const Qb = ({ text: t, isController: e = !1 }) => {
61778
- const { slide: r } = Nm(t), [a, n] = qm(0), i = r.length - 1, s = Vm(() => wu(r[a]), [a, r]), o = va(() => {
61777
+ const { slide: r } = Nm(t), [a, n] = qm(0), i = r.length - 1, s = Vm(() => wu(r[a]), [a, r]), o = Ca(() => {
61779
61778
  a !== i && n((u) => u + 1);
61780
- }, [a, i, r]), c = va(() => {
61779
+ }, [a, i, r]), c = Ca(() => {
61781
61780
  a !== 0 && n((u) => u - 1);
61782
- }, [a, r]), _ = va(
61781
+ }, [a, r]), _ = Ca(
61783
61782
  (u) => {
61784
61783
  (u.key === "ArrowRight" || u.key === "Enter") && o(), (u.key === "ArrowLeft" || u.key === "Backspace") && c(), u.key === "Escape" && n(0);
61785
61784
  },