lowcoder-comps 2.7.1 → 2.7.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.
Files changed (45) hide show
  1. package/{20043e57.js → 06bfc8fd.js} +2 -2
  2. package/{2ab6c3e7.js → 0bc1e750.js} +103 -103
  3. package/{3d5c53a9.js → 16017dca.js} +1 -1
  4. package/{75ca0804.js → 188d0a7b.js} +1 -1
  5. package/194933bf.js +21942 -0
  6. package/{6f672a37.js → 1d548e39.js} +30 -30
  7. package/{ae063085.js → 1e6f66fd.js} +4 -4
  8. package/{9ab17d2b.js → 250dc9f4.js} +11 -11
  9. package/2bab86ad.js +2318 -0
  10. package/{3320cebb.js → 38362e7c.js} +1 -1
  11. package/{b79eb0a0.js → 455488fd.js} +2 -2
  12. package/{a423d8a4.js → 456027f3.js} +10 -10
  13. package/{145bbbf8.js → 4626b6f8.js} +1 -1
  14. package/{368623d4.js → 46b8527c.js} +3 -3
  15. package/{1355af90.js → 50383021.js} +1 -1
  16. package/{e686efca.js → 514e4c08.js} +1 -1
  17. package/{572dbe1a.js → 5e5d535b.js} +6 -2
  18. package/{d8eb5780.js → 78f1ff0d.js} +9 -9
  19. package/{4fca0408.js → 816637dc.js} +83239 -86684
  20. package/{a2092753.js → 822253e7.js} +2 -2
  21. package/{14aee76a.js → 87065cc7.js} +1 -1
  22. package/{144f954a.js → 91e84a61.js} +1 -1
  23. package/{668e2d53.js → 9a7ae50a.js} +4 -4
  24. package/{3c051c62.js → 9dbba476.js} +5 -5
  25. package/{4b4585a7.js → a23f123d.js} +5 -5
  26. package/{5ed067d2.js → ac024963.js} +1 -1
  27. package/{903f681c.js → ba8c6a16.js} +29 -29
  28. package/{7519dcf3.js → c5be1d77.js} +9 -9
  29. package/{819e4d36.js → cbf03099.js} +2 -2
  30. package/{7800e924.js → d29b1617.js} +4 -4
  31. package/{7f1c17ab.js → d4b2d80a.js} +2 -2
  32. package/{9dfda495.js → d5dbb80b.js} +6 -6
  33. package/{b08a1a87.js → d708b9ba.js} +5 -5
  34. package/{e5b014a9.js → e8a70b0f.js} +932 -868
  35. package/{5906ae5d.js → e9f334a4.js} +22 -22
  36. package/{9b21f3b2.js → f06f653d.js} +1 -1
  37. package/{47fc5096.js → fb7b2a8c.js} +1 -1
  38. package/{79a34448.js → ff57e9e3.js} +3 -3
  39. package/ffd1bcb0.js +86 -0
  40. package/{bb21178e.js → fff3acf7.js} +11 -11
  41. package/index.js +3 -3
  42. package/package.json +1 -1
  43. package/1bdddbe6.js +0 -2501
  44. package/54155789.js +0 -19321
  45. package/5ef4a192.js +0 -86
@@ -52,42 +52,42 @@ class M {
52
52
  }
53
53
  }
54
54
  M.prototype.__proto__ = Error.prototype;
55
- var da = function(e, t) {
55
+ var fa = function(e, t) {
56
56
  return e.indexOf(t) !== -1;
57
- }, fa = function(e, t) {
57
+ }, pa = function(e, t) {
58
58
  return e === void 0 ? t : e;
59
- }, pa = /([A-Z])/g, va = function(e) {
60
- return e.replace(pa, "-$1").toLowerCase();
61
- }, ga = {
59
+ }, va = /([A-Z])/g, ga = function(e) {
60
+ return e.replace(va, "-$1").toLowerCase();
61
+ }, ba = {
62
62
  "&": "&",
63
63
  ">": ">",
64
64
  "<": "&lt;",
65
65
  '"': "&quot;",
66
66
  "'": "&#x27;"
67
- }, ba = /[&><"']/g;
68
- function ya(r) {
69
- return String(r).replace(ba, (e) => ga[e]);
67
+ }, ya = /[&><"']/g;
68
+ function xa(r) {
69
+ return String(r).replace(ya, (e) => ba[e]);
70
70
  }
71
- var pr = function r(e) {
71
+ var vr = function r(e) {
72
72
  return e.type === "ordgroup" || e.type === "color" ? e.body.length === 1 ? r(e.body[0]) : e : e.type === "font" ? r(e.body) : e;
73
- }, xa = function(e) {
74
- var t = pr(e);
75
- return t.type === "mathord" || t.type === "textord" || t.type === "atom";
76
73
  }, wa = function(e) {
74
+ var t = vr(e);
75
+ return t.type === "mathord" || t.type === "textord" || t.type === "atom";
76
+ }, ka = function(e) {
77
77
  if (!e)
78
78
  throw new Error("Expected non-null, but got " + String(e));
79
79
  return e;
80
- }, ka = function(e) {
80
+ }, Sa = function(e) {
81
81
  var t = /^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);
82
82
  return t ? t[2] !== ":" || !/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1]) ? null : t[1].toLowerCase() : "_relative";
83
83
  }, q = {
84
- contains: da,
85
- deflt: fa,
86
- escape: ya,
87
- hyphenate: va,
88
- getBaseElem: pr,
89
- isCharacterBox: xa,
90
- protocolFromUrl: ka
84
+ contains: fa,
85
+ deflt: pa,
86
+ escape: xa,
87
+ hyphenate: ga,
88
+ getBaseElem: vr,
89
+ isCharacterBox: wa,
90
+ protocolFromUrl: Sa
91
91
  }, ze = {
92
92
  displayMode: {
93
93
  type: "boolean",
@@ -175,7 +175,7 @@ var pr = function r(e) {
175
175
  cli: !1
176
176
  }
177
177
  };
178
- function Sa(r) {
178
+ function Ma(r) {
179
179
  if (r.default)
180
180
  return r.default;
181
181
  var e = r.type, t = Array.isArray(e) ? e[0] : e;
@@ -192,13 +192,13 @@ function Sa(r) {
192
192
  return {};
193
193
  }
194
194
  }
195
- class ct {
195
+ class dt {
196
196
  constructor(e) {
197
197
  this.displayMode = void 0, this.output = void 0, this.leqno = void 0, this.fleqn = void 0, this.throwOnError = void 0, this.errorColor = void 0, this.macros = void 0, this.minRuleThickness = void 0, this.colorIsTextColor = void 0, this.strict = void 0, this.trust = void 0, this.maxSize = void 0, this.maxExpand = void 0, this.globalGroup = void 0, e = e || {};
198
198
  for (var t in ze)
199
199
  if (ze.hasOwnProperty(t)) {
200
200
  var a = ze[t];
201
- this[t] = e[t] !== void 0 ? a.processor ? a.processor(e[t]) : e[t] : Sa(a);
201
+ this[t] = e[t] !== void 0 ? a.processor ? a.processor(e[t]) : e[t] : Ma(a);
202
202
  }
203
203
  }
204
204
  /**
@@ -258,40 +258,40 @@ class O0 {
258
258
  * Get the style of a superscript given a base in the current style.
259
259
  */
260
260
  sup() {
261
- return y0[Ma[this.id]];
261
+ return y0[za[this.id]];
262
262
  }
263
263
  /**
264
264
  * Get the style of a subscript given a base in the current style.
265
265
  */
266
266
  sub() {
267
- return y0[za[this.id]];
267
+ return y0[Aa[this.id]];
268
268
  }
269
269
  /**
270
270
  * Get the style of a fraction numerator given the fraction in the current
271
271
  * style.
272
272
  */
273
273
  fracNum() {
274
- return y0[Aa[this.id]];
274
+ return y0[Ta[this.id]];
275
275
  }
276
276
  /**
277
277
  * Get the style of a fraction denominator given the fraction in the current
278
278
  * style.
279
279
  */
280
280
  fracDen() {
281
- return y0[Ta[this.id]];
281
+ return y0[Ba[this.id]];
282
282
  }
283
283
  /**
284
284
  * Get the cramped version of a style (in particular, cramping a cramped style
285
285
  * doesn't change the style).
286
286
  */
287
287
  cramp() {
288
- return y0[Ba[this.id]];
288
+ return y0[Da[this.id]];
289
289
  }
290
290
  /**
291
291
  * Get a text or display version of this style.
292
292
  */
293
293
  text() {
294
- return y0[Da[this.id]];
294
+ return y0[Ca[this.id]];
295
295
  }
296
296
  /**
297
297
  * Return true if this style is tightly spaced (scriptstyle/scriptscriptstyle)
@@ -300,12 +300,12 @@ class O0 {
300
300
  return this.size >= 2;
301
301
  }
302
302
  }
303
- var dt = 0, Te = 1, _0 = 2, T0 = 3, le = 4, d0 = 5, ee = 6, n0 = 7, y0 = [new O0(dt, 0, !1), new O0(Te, 0, !0), new O0(_0, 1, !1), new O0(T0, 1, !0), new O0(le, 2, !1), new O0(d0, 2, !0), new O0(ee, 3, !1), new O0(n0, 3, !0)], Ma = [le, d0, le, d0, ee, n0, ee, n0], za = [d0, d0, d0, d0, n0, n0, n0, n0], Aa = [_0, T0, le, d0, ee, n0, ee, n0], Ta = [T0, T0, d0, d0, n0, n0, n0, n0], Ba = [Te, Te, T0, T0, d0, d0, n0, n0], Da = [dt, Te, _0, T0, _0, T0, _0, T0], R = {
304
- DISPLAY: y0[dt],
305
- TEXT: y0[_0],
303
+ var ft = 0, Te = 1, ee = 2, B0 = 3, le = 4, d0 = 5, te = 6, n0 = 7, y0 = [new O0(ft, 0, !1), new O0(Te, 0, !0), new O0(ee, 1, !1), new O0(B0, 1, !0), new O0(le, 2, !1), new O0(d0, 2, !0), new O0(te, 3, !1), new O0(n0, 3, !0)], za = [le, d0, le, d0, te, n0, te, n0], Aa = [d0, d0, d0, d0, n0, n0, n0, n0], Ta = [ee, B0, le, d0, te, n0, te, n0], Ba = [B0, B0, d0, d0, n0, n0, n0, n0], Da = [Te, Te, B0, B0, d0, d0, n0, n0], Ca = [ft, Te, ee, B0, ee, B0, ee, B0], R = {
304
+ DISPLAY: y0[ft],
305
+ TEXT: y0[ee],
306
306
  SCRIPT: y0[le],
307
- SCRIPTSCRIPT: y0[ee]
308
- }, at = [{
307
+ SCRIPTSCRIPT: y0[te]
308
+ }, nt = [{
309
309
  // Latin characters beyond the Latin-1 characters we have metrics for.
310
310
  // Needed for Czech, Hungarian and Turkish text, for example.
311
311
  name: "latin",
@@ -364,9 +364,9 @@ var dt = 0, Te = 1, _0 = 2, T0 = 3, le = 4, d0 = 5, ee = 6, n0 = 7, y0 = [new O0
364
364
  name: "hangul",
365
365
  blocks: [[44032, 55215]]
366
366
  }];
367
- function Ca(r) {
368
- for (var e = 0; e < at.length; e++)
369
- for (var t = at[e], a = 0; a < t.blocks.length; a++) {
367
+ function Na(r) {
368
+ for (var e = 0; e < nt.length; e++)
369
+ for (var t = nt[e], a = 0; a < t.blocks.length; a++) {
370
370
  var n = t.blocks[a];
371
371
  if (r >= n[0] && r <= n[1])
372
372
  return t.name;
@@ -374,14 +374,14 @@ function Ca(r) {
374
374
  return null;
375
375
  }
376
376
  var Ae = [];
377
- at.forEach((r) => r.blocks.forEach((e) => Ae.push(...e)));
378
- function vr(r) {
377
+ nt.forEach((r) => r.blocks.forEach((e) => Ae.push(...e)));
378
+ function gr(r) {
379
379
  for (var e = 0; e < Ae.length; e += 2)
380
380
  if (r >= Ae[e] && r <= Ae[e + 1])
381
381
  return !0;
382
382
  return !1;
383
383
  }
384
- var Q0 = 80, Na = function(e, t) {
384
+ var _0 = 80, qa = function(e, t) {
385
385
  return "M95," + (622 + e + t) + `
386
386
  c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
387
387
  c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
@@ -394,7 +394,7 @@ H400000v` + (40 + e) + `H845.2724
394
394
  s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
395
395
  c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
396
396
  M` + (834 + e) + " " + t + "h400000v" + (40 + e) + "h-400000z";
397
- }, qa = function(e, t) {
397
+ }, Ea = function(e, t) {
398
398
  return "M263," + (601 + e + t) + `c0.7,0,18,39.7,52,119
399
399
  c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
400
400
  c340,-704.7,510.7,-1060.3,512,-1067
@@ -406,7 +406,7 @@ c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
406
406
  s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
407
407
  c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
408
408
  M` + (1001 + e) + " " + t + "h400000v" + (40 + e) + "h-400000z";
409
- }, Ea = function(e, t) {
409
+ }, Ra = function(e, t) {
410
410
  return "M983 " + (10 + e + t) + `
411
411
  l` + e / 3.13 + " -" + e + `
412
412
  c4,-6.7,10,-10,18,-10 H400000v` + (40 + e) + `
@@ -417,7 +417,7 @@ c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
417
417
  c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
418
418
  c53.7,-170.3,84.5,-266.8,92.5,-289.5z
419
419
  M` + (1001 + e) + " " + t + "h400000v" + (40 + e) + "h-400000z";
420
- }, Ra = function(e, t) {
420
+ }, Ia = function(e, t) {
421
421
  return "M424," + (2398 + e + t) + `
422
422
  c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
423
423
  c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
@@ -429,7 +429,7 @@ s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
429
429
  c-2,6,-10,9,-24,9
430
430
  c-8,0,-12,-0.7,-12,-2z M` + (1001 + e) + " " + t + `
431
431
  h400000v` + (40 + e) + "h-400000z";
432
- }, Ia = function(e, t) {
432
+ }, Fa = function(e, t) {
433
433
  return "M473," + (2713 + e + t) + `
434
434
  c339.3,-1799.3,509.3,-2700,510,-2702 l` + e / 5.298 + " -" + e + `
435
435
  c3.3,-7.3,9.3,-11,18,-11 H400000v` + (40 + e) + `H1017.7
@@ -448,30 +448,30 @@ H742v` + n + `l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
448
448
  h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
449
449
  c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
450
450
  219 661 l218 661zM702 ` + t + "H400000v" + (40 + e) + "H742z";
451
- }, Fa = function(e, t, a) {
451
+ }, La = function(e, t, a) {
452
452
  t = 1e3 * t;
453
453
  var n = "";
454
454
  switch (e) {
455
455
  case "sqrtMain":
456
- n = Na(t, Q0);
456
+ n = qa(t, _0);
457
457
  break;
458
458
  case "sqrtSize1":
459
- n = qa(t, Q0);
459
+ n = Ea(t, _0);
460
460
  break;
461
461
  case "sqrtSize2":
462
- n = Ea(t, Q0);
462
+ n = Ra(t, _0);
463
463
  break;
464
464
  case "sqrtSize3":
465
- n = Ra(t, Q0);
465
+ n = Ia(t, _0);
466
466
  break;
467
467
  case "sqrtSize4":
468
- n = Ia(t, Q0);
468
+ n = Fa(t, _0);
469
469
  break;
470
470
  case "sqrtTall":
471
- n = Ha(t, Q0, a);
471
+ n = Ha(t, _0, a);
472
472
  }
473
473
  return n;
474
- }, La = function(e, t) {
474
+ }, Pa = function(e, t) {
475
475
  switch (e) {
476
476
  case "⎜":
477
477
  return "M291 0 H417 V" + t + " H291z M291 0 H417 V" + t + " H291z";
@@ -494,7 +494,7 @@ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
494
494
  default:
495
495
  return "";
496
496
  }
497
- }, It = {
497
+ }, Ft = {
498
498
  // The doubleleftarrow geometry is from glyph U+21D0 in the font KaTeX Main
499
499
  doubleleftarrow: `M262 157
500
500
  l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
@@ -746,7 +746,7 @@ c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
746
746
  -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
747
747
  c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
748
748
  M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
749
- }, Pa = function(e, t) {
749
+ }, Ga = function(e, t) {
750
750
  switch (e) {
751
751
  case "lbrack":
752
752
  return "M403 1759 V84 H666 V0 H319 V1759 v" + t + ` v1759 h347 v-84
@@ -2972,7 +2972,7 @@ var x0 = {
2972
2972
  sqrtRuleThickness: [0.04, 0.04, 0.04],
2973
2973
  // This value determines how large a pt is, for metrics which are defined
2974
2974
  // in terms of pts.
2975
- // This value is also used in katex.less; if you change it make sure the
2975
+ // This value is also used in katex.scss; if you change it make sure the
2976
2976
  // values match.
2977
2977
  ptPerEm: [10, 10, 10],
2978
2978
  // The space between adjacent `|` columns in an array definition. From
@@ -3060,14 +3060,14 @@ var x0 = {
3060
3060
  ю: "m",
3061
3061
  я: "r"
3062
3062
  };
3063
- function Ga(r, e) {
3063
+ function Va(r, e) {
3064
3064
  x0[r] = e;
3065
3065
  }
3066
- function ft(r, e, t) {
3066
+ function pt(r, e, t) {
3067
3067
  if (!x0[e])
3068
3068
  throw new Error("Font metrics not found for font: " + e + ".");
3069
3069
  var a = r.charCodeAt(0), n = x0[e][a];
3070
- if (!n && r[0] in Ot && (a = Ot[r[0]].charCodeAt(0), n = x0[e][a]), !n && t === "text" && vr(a) && (n = x0[e][77]), n)
3070
+ if (!n && r[0] in Ot && (a = Ot[r[0]].charCodeAt(0), n = x0[e][a]), !n && t === "text" && gr(a) && (n = x0[e][77]), n)
3071
3071
  return {
3072
3072
  depth: n[0],
3073
3073
  height: n[1],
@@ -3077,7 +3077,7 @@ function ft(r, e, t) {
3077
3077
  };
3078
3078
  }
3079
3079
  var Ue = {};
3080
- function Va(r) {
3080
+ function Ua(r) {
3081
3081
  var e;
3082
3082
  if (r >= 5 ? e = 0 : r >= 3 ? e = 1 : e = 2, !Ue[e]) {
3083
3083
  var t = Ue[e] = {
@@ -3088,7 +3088,7 @@ function Va(r) {
3088
3088
  }
3089
3089
  return Ue[e];
3090
3090
  }
3091
- var Ua = [
3091
+ var Ya = [
3092
3092
  // Each element contains [textsize, scriptsize, scriptscriptsize].
3093
3093
  // The size mappings are taken from TeX with \normalsize=10pt.
3094
3094
  [1, 1, 1],
@@ -3127,10 +3127,10 @@ var Ua = [
3127
3127
  1.728,
3128
3128
  2.074,
3129
3129
  2.488
3130
- ], Ft = function(e, t) {
3131
- return t.size < 2 ? e : Ua[e - 1][t.size - 1];
3130
+ ], Lt = function(e, t) {
3131
+ return t.size < 2 ? e : Ya[e - 1][t.size - 1];
3132
3132
  };
3133
- class A0 {
3133
+ class T0 {
3134
3134
  // A font family applies to a group of fonts (i.e. SansSerif), while a font
3135
3135
  // represents a specific font (i.e. SansSerif Bold).
3136
3136
  // See: https://tex.stackexchange.com/questions/22350/difference-between-textrm-and-mathrm
@@ -3138,7 +3138,7 @@ class A0 {
3138
3138
  * The base size index.
3139
3139
  */
3140
3140
  constructor(e) {
3141
- this.style = void 0, this.color = void 0, this.size = void 0, this.textSize = void 0, this.phantom = void 0, this.font = void 0, this.fontFamily = void 0, this.fontWeight = void 0, this.fontShape = void 0, this.sizeMultiplier = void 0, this.maxSize = void 0, this.minRuleThickness = void 0, this._fontMetrics = void 0, this.style = e.style, this.color = e.color, this.size = e.size || A0.BASESIZE, this.textSize = e.textSize || this.size, this.phantom = !!e.phantom, this.font = e.font || "", this.fontFamily = e.fontFamily || "", this.fontWeight = e.fontWeight || "", this.fontShape = e.fontShape || "", this.sizeMultiplier = Ht[this.size - 1], this.maxSize = e.maxSize, this.minRuleThickness = e.minRuleThickness, this._fontMetrics = void 0;
3141
+ this.style = void 0, this.color = void 0, this.size = void 0, this.textSize = void 0, this.phantom = void 0, this.font = void 0, this.fontFamily = void 0, this.fontWeight = void 0, this.fontShape = void 0, this.sizeMultiplier = void 0, this.maxSize = void 0, this.minRuleThickness = void 0, this._fontMetrics = void 0, this.style = e.style, this.color = e.color, this.size = e.size || T0.BASESIZE, this.textSize = e.textSize || this.size, this.phantom = !!e.phantom, this.font = e.font || "", this.fontFamily = e.fontFamily || "", this.fontWeight = e.fontWeight || "", this.fontShape = e.fontShape || "", this.sizeMultiplier = Ht[this.size - 1], this.maxSize = e.maxSize, this.minRuleThickness = e.minRuleThickness, this._fontMetrics = void 0;
3142
3142
  }
3143
3143
  /**
3144
3144
  * Returns a new options object with the same properties as "this". Properties
@@ -3160,7 +3160,7 @@ class A0 {
3160
3160
  };
3161
3161
  for (var a in e)
3162
3162
  e.hasOwnProperty(a) && (t[a] = e[a]);
3163
- return new A0(t);
3163
+ return new T0(t);
3164
3164
  }
3165
3165
  /**
3166
3166
  * Return an options object with the given style. If `this.style === style`,
@@ -3169,7 +3169,7 @@ class A0 {
3169
3169
  havingStyle(e) {
3170
3170
  return this.style === e ? this : this.extend({
3171
3171
  style: e,
3172
- size: Ft(this.textSize, e)
3172
+ size: Lt(this.textSize, e)
3173
3173
  });
3174
3174
  }
3175
3175
  /**
@@ -3197,8 +3197,8 @@ class A0 {
3197
3197
  */
3198
3198
  havingBaseStyle(e) {
3199
3199
  e = e || this.style.text();
3200
- var t = Ft(A0.BASESIZE, e);
3201
- return this.size === t && this.textSize === A0.BASESIZE && this.style === e ? this : this.extend({
3200
+ var t = Lt(T0.BASESIZE, e);
3201
+ return this.size === t && this.textSize === T0.BASESIZE && this.style === e ? this : this.extend({
3202
3202
  style: e,
3203
3203
  size: t
3204
3204
  });
@@ -3290,13 +3290,13 @@ class A0 {
3290
3290
  * `this.havingSize(BASESIZE).sizingClasses(this)`.
3291
3291
  */
3292
3292
  baseSizingClasses() {
3293
- return this.size !== A0.BASESIZE ? ["sizing", "reset-size" + this.size, "size" + A0.BASESIZE] : [];
3293
+ return this.size !== T0.BASESIZE ? ["sizing", "reset-size" + this.size, "size" + T0.BASESIZE] : [];
3294
3294
  }
3295
3295
  /**
3296
3296
  * Return the font metrics for this size.
3297
3297
  */
3298
3298
  fontMetrics() {
3299
- return this._fontMetrics || (this._fontMetrics = Va(this.size)), this._fontMetrics;
3299
+ return this._fontMetrics || (this._fontMetrics = Ua(this.size)), this._fontMetrics;
3300
3300
  }
3301
3301
  /**
3302
3302
  * Gets the CSS color of the current options object
@@ -3305,8 +3305,8 @@ class A0 {
3305
3305
  return this.phantom ? "transparent" : this.color;
3306
3306
  }
3307
3307
  }
3308
- A0.BASESIZE = 6;
3309
- var nt = {
3308
+ T0.BASESIZE = 6;
3309
+ var it = {
3310
3310
  // https://en.wikibooks.org/wiki/LaTeX/Lengths and
3311
3311
  // https://tex.stackexchange.com/a/8263
3312
3312
  pt: 1,
@@ -3334,16 +3334,16 @@ var nt = {
3334
3334
  // https://tex.stackexchange.com/a/41371
3335
3335
  px: 803 / 800
3336
3336
  // \pdfpxdimen defaults to 1 bp in pdfTeX and LuaTeX
3337
- }, Ya = {
3337
+ }, Xa = {
3338
3338
  ex: !0,
3339
3339
  em: !0,
3340
3340
  mu: !0
3341
- }, gr = function(e) {
3342
- return typeof e != "string" && (e = e.unit), e in nt || e in Ya || e === "ex";
3341
+ }, br = function(e) {
3342
+ return typeof e != "string" && (e = e.unit), e in it || e in Xa || e === "ex";
3343
3343
  }, K = function(e, t) {
3344
3344
  var a;
3345
- if (e.unit in nt)
3346
- a = nt[e.unit] / t.fontMetrics().ptPerEm / t.sizeMultiplier;
3345
+ if (e.unit in it)
3346
+ a = it[e.unit] / t.fontMetrics().ptPerEm / t.sizeMultiplier;
3347
3347
  else if (e.unit === "mu")
3348
3348
  a = t.fontMetrics().cssEmPerMu;
3349
3349
  else {
@@ -3359,17 +3359,17 @@ var nt = {
3359
3359
  return Math.min(e.number * a, t.maxSize);
3360
3360
  }, A = function(e) {
3361
3361
  return +e.toFixed(4) + "em";
3362
- }, L0 = function(e) {
3362
+ }, P0 = function(e) {
3363
3363
  return e.filter((t) => t).join(" ");
3364
- }, br = function(e, t, a) {
3364
+ }, yr = function(e, t, a) {
3365
3365
  if (this.classes = e || [], this.attributes = {}, this.height = 0, this.depth = 0, this.maxFontSize = 0, this.style = a || {}, t) {
3366
3366
  t.style.isTight() && this.classes.push("mtight");
3367
3367
  var n = t.getColor();
3368
3368
  n && (this.style.color = n);
3369
3369
  }
3370
- }, yr = function(e) {
3370
+ }, xr = function(e) {
3371
3371
  var t = document.createElement(e);
3372
- t.className = L0(this.classes);
3372
+ t.className = P0(this.classes);
3373
3373
  for (var a in this.style)
3374
3374
  this.style.hasOwnProperty(a) && (t.style[a] = this.style[a]);
3375
3375
  for (var n in this.attributes)
@@ -3377,15 +3377,19 @@ var nt = {
3377
3377
  for (var s = 0; s < this.children.length; s++)
3378
3378
  t.appendChild(this.children[s].toNode());
3379
3379
  return t;
3380
- }, xr = function(e) {
3380
+ }, $a = /[\s"'>/=\x00-\x1f]/, wr = function(e) {
3381
3381
  var t = "<" + e;
3382
- this.classes.length && (t += ' class="' + q.escape(L0(this.classes)) + '"');
3382
+ this.classes.length && (t += ' class="' + q.escape(P0(this.classes)) + '"');
3383
3383
  var a = "";
3384
3384
  for (var n in this.style)
3385
3385
  this.style.hasOwnProperty(n) && (a += q.hyphenate(n) + ":" + this.style[n] + ";");
3386
3386
  a && (t += ' style="' + q.escape(a) + '"');
3387
3387
  for (var s in this.attributes)
3388
- this.attributes.hasOwnProperty(s) && (t += " " + s + '="' + q.escape(this.attributes[s]) + '"');
3388
+ if (this.attributes.hasOwnProperty(s)) {
3389
+ if ($a.test(s))
3390
+ throw new M("Invalid attribute name '" + s + "'");
3391
+ t += " " + s + '="' + q.escape(this.attributes[s]) + '"';
3392
+ }
3389
3393
  t += ">";
3390
3394
  for (var o = 0; o < this.children.length; o++)
3391
3395
  t += this.children[o].toMarkup();
@@ -3393,7 +3397,7 @@ var nt = {
3393
3397
  };
3394
3398
  class he {
3395
3399
  constructor(e, t, a, n) {
3396
- 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, br.call(this, e, a, n), this.children = t || [];
3400
+ 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, yr.call(this, e, a, n), this.children = t || [];
3397
3401
  }
3398
3402
  /**
3399
3403
  * Sets an arbitrary attribute on the span. Warning: use this wisely. Not
@@ -3407,15 +3411,15 @@ class he {
3407
3411
  return q.contains(this.classes, e);
3408
3412
  }
3409
3413
  toNode() {
3410
- return yr.call(this, "span");
3414
+ return xr.call(this, "span");
3411
3415
  }
3412
3416
  toMarkup() {
3413
- return xr.call(this, "span");
3417
+ return wr.call(this, "span");
3414
3418
  }
3415
3419
  }
3416
- class pt {
3420
+ class vt {
3417
3421
  constructor(e, t, a, n) {
3418
- this.children = void 0, this.attributes = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, br.call(this, t, n), this.children = a || [], this.setAttribute("href", e);
3422
+ this.children = void 0, this.attributes = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, yr.call(this, t, n), this.children = a || [], this.setAttribute("href", e);
3419
3423
  }
3420
3424
  setAttribute(e, t) {
3421
3425
  this.attributes[e] = t;
@@ -3424,13 +3428,13 @@ class pt {
3424
3428
  return q.contains(this.classes, e);
3425
3429
  }
3426
3430
  toNode() {
3427
- return yr.call(this, "a");
3431
+ return xr.call(this, "a");
3428
3432
  }
3429
3433
  toMarkup() {
3430
- return xr.call(this, "a");
3434
+ return wr.call(this, "a");
3431
3435
  }
3432
3436
  }
3433
- class Xa {
3437
+ class Wa {
3434
3438
  constructor(e, t, a) {
3435
3439
  this.src = void 0, this.alt = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, this.alt = t, this.src = e, this.classes = ["mord"], this.style = a;
3436
3440
  }
@@ -3451,7 +3455,7 @@ class Xa {
3451
3455
  return t && (e += ' style="' + q.escape(t) + '"'), e += "'/>", e;
3452
3456
  }
3453
3457
  }
3454
- var $a = {
3458
+ var ja = {
3455
3459
  î: "ı̂",
3456
3460
  ï: "ı̈",
3457
3461
  í: "ı́",
@@ -3461,8 +3465,8 @@ var $a = {
3461
3465
  class p0 {
3462
3466
  constructor(e, t, a, n, s, o, h, c) {
3463
3467
  this.text = void 0, this.height = void 0, this.depth = void 0, this.italic = void 0, this.skew = void 0, this.width = void 0, this.maxFontSize = void 0, this.classes = void 0, this.style = void 0, this.text = e, this.height = t || 0, this.depth = a || 0, this.italic = n || 0, this.skew = s || 0, this.width = o || 0, this.classes = h || [], this.style = c || {}, this.maxFontSize = 0;
3464
- var p = Ca(this.text.charCodeAt(0));
3465
- p && this.classes.push(p + "_fallback"), /[îïíì]/.test(this.text) && (this.text = $a[this.text]);
3468
+ var p = Na(this.text.charCodeAt(0));
3469
+ p && this.classes.push(p + "_fallback"), /[îïíì]/.test(this.text) && (this.text = ja[this.text]);
3466
3470
  }
3467
3471
  hasClass(e) {
3468
3472
  return q.contains(this.classes, e);
@@ -3473,7 +3477,7 @@ class p0 {
3473
3477
  */
3474
3478
  toNode() {
3475
3479
  var e = document.createTextNode(this.text), t = null;
3476
- this.italic > 0 && (t = document.createElement("span"), t.style.marginRight = A(this.italic)), this.classes.length > 0 && (t = t || document.createElement("span"), t.className = L0(this.classes));
3480
+ this.italic > 0 && (t = document.createElement("span"), t.style.marginRight = A(this.italic)), this.classes.length > 0 && (t = t || document.createElement("span"), t.className = P0(this.classes));
3477
3481
  for (var a in this.style)
3478
3482
  this.style.hasOwnProperty(a) && (t = t || document.createElement("span"), t.style[a] = this.style[a]);
3479
3483
  return t ? (t.appendChild(e), t) : e;
@@ -3483,7 +3487,7 @@ class p0 {
3483
3487
  */
3484
3488
  toMarkup() {
3485
3489
  var e = !1, t = "<span";
3486
- this.classes.length && (e = !0, t += ' class="', t += q.escape(L0(this.classes)), t += '"');
3490
+ this.classes.length && (e = !0, t += ' class="', t += q.escape(P0(this.classes)), t += '"');
3487
3491
  var a = "";
3488
3492
  this.italic > 0 && (a += "margin-right:" + this.italic + "em;");
3489
3493
  for (var n in this.style)
@@ -3493,7 +3497,7 @@ class p0 {
3493
3497
  return e ? (t += ">", t += s, t += "</span>", t) : s;
3494
3498
  }
3495
3499
  }
3496
- class D0 {
3500
+ class C0 {
3497
3501
  constructor(e, t) {
3498
3502
  this.children = void 0, this.attributes = void 0, this.children = e || [], this.attributes = t || {};
3499
3503
  }
@@ -3515,19 +3519,19 @@ class D0 {
3515
3519
  return e += "</svg>", e;
3516
3520
  }
3517
3521
  }
3518
- class P0 {
3522
+ class G0 {
3519
3523
  constructor(e, t) {
3520
3524
  this.pathName = void 0, this.alternate = void 0, this.pathName = e, this.alternate = t;
3521
3525
  }
3522
3526
  toNode() {
3523
3527
  var e = "http://www.w3.org/2000/svg", t = document.createElementNS(e, "path");
3524
- return this.alternate ? t.setAttribute("d", this.alternate) : t.setAttribute("d", It[this.pathName]), t;
3528
+ return this.alternate ? t.setAttribute("d", this.alternate) : t.setAttribute("d", Ft[this.pathName]), t;
3525
3529
  }
3526
3530
  toMarkup() {
3527
- return this.alternate ? '<path d="' + q.escape(this.alternate) + '"/>' : '<path d="' + q.escape(It[this.pathName]) + '"/>';
3531
+ return this.alternate ? '<path d="' + q.escape(this.alternate) + '"/>' : '<path d="' + q.escape(Ft[this.pathName]) + '"/>';
3528
3532
  }
3529
3533
  }
3530
- class it {
3534
+ class st {
3531
3535
  constructor(e) {
3532
3536
  this.attributes = void 0, this.attributes = e || {};
3533
3537
  }
@@ -3544,24 +3548,24 @@ class it {
3544
3548
  return e += "/>", e;
3545
3549
  }
3546
3550
  }
3547
- function Lt(r) {
3551
+ function Pt(r) {
3548
3552
  if (r instanceof p0)
3549
3553
  return r;
3550
3554
  throw new Error("Expected symbolNode but got " + String(r) + ".");
3551
3555
  }
3552
- function Wa(r) {
3556
+ function Za(r) {
3553
3557
  if (r instanceof he)
3554
3558
  return r;
3555
3559
  throw new Error("Expected span<HtmlDomNode> but got " + String(r) + ".");
3556
3560
  }
3557
- var ja = {
3561
+ var Ka = {
3558
3562
  bin: 1,
3559
3563
  close: 1,
3560
3564
  inner: 1,
3561
3565
  open: 1,
3562
3566
  punct: 1,
3563
3567
  rel: 1
3564
- }, Za = {
3568
+ }, Ja = {
3565
3569
  "accent-token": 1,
3566
3570
  mathord: 1,
3567
3571
  "op-token": 1,
@@ -3578,7 +3582,7 @@ function i(r, e, t, a, n, s) {
3578
3582
  replace: a
3579
3583
  }, s && a && ($[r][a] = $[r][n]);
3580
3584
  }
3581
- var l = "math", k = "text", u = "main", d = "ams", W = "accent-token", D = "bin", i0 = "close", te = "inner", E = "mathord", _ = "op-token", h0 = "open", qe = "punct", f = "rel", q0 = "spacing", v = "textord";
3585
+ var l = "math", k = "text", u = "main", d = "ams", W = "accent-token", D = "bin", i0 = "close", re = "inner", E = "mathord", _ = "op-token", m0 = "open", qe = "punct", f = "rel", E0 = "spacing", v = "textord";
3582
3586
  i(l, u, f, "≡", "\\equiv", !0);
3583
3587
  i(l, u, f, "≺", "\\prec", !0);
3584
3588
  i(l, u, f, "≻", "\\succ", !0);
@@ -3636,9 +3640,9 @@ i(l, u, v, "‡", "\\ddag");
3636
3640
  i(k, u, v, "‡", "\\ddag");
3637
3641
  i(k, u, v, "‡", "\\textdaggerdbl");
3638
3642
  i(l, u, i0, "⎱", "\\rmoustache", !0);
3639
- i(l, u, h0, "⎰", "\\lmoustache", !0);
3643
+ i(l, u, m0, "⎰", "\\lmoustache", !0);
3640
3644
  i(l, u, i0, "⟯", "\\rgroup", !0);
3641
- i(l, u, h0, "⟮", "\\lgroup", !0);
3645
+ i(l, u, m0, "⟮", "\\lgroup", !0);
3642
3646
  i(l, u, D, "∓", "\\mp", !0);
3643
3647
  i(l, u, D, "⊖", "\\ominus", !0);
3644
3648
  i(l, u, D, "⊎", "\\uplus", !0);
@@ -3768,9 +3772,9 @@ i(l, d, v, "ℸ", "\\daleth", !0);
3768
3772
  i(l, d, v, "ℷ", "\\gimel", !0);
3769
3773
  i(l, d, v, "ϝ", "\\digamma", !0);
3770
3774
  i(l, d, v, "ϰ", "\\varkappa");
3771
- i(l, d, h0, "┌", "\\@ulcorner", !0);
3775
+ i(l, d, m0, "┌", "\\@ulcorner", !0);
3772
3776
  i(l, d, i0, "┐", "\\@urcorner", !0);
3773
- i(l, d, h0, "└", "\\@llcorner", !0);
3777
+ i(l, d, m0, "└", "\\@llcorner", !0);
3774
3778
  i(l, d, i0, "┘", "\\@lrcorner", !0);
3775
3779
  i(l, d, f, "≦", "\\leqq", !0);
3776
3780
  i(l, d, f, "⩽", "\\leqslant", !0);
@@ -3989,9 +3993,9 @@ i(l, u, D, "∨", "\\lor");
3989
3993
  i(l, u, D, "∧", "\\wedge", !0);
3990
3994
  i(l, u, D, "∨", "\\vee", !0);
3991
3995
  i(l, u, v, "√", "\\surd");
3992
- i(l, u, h0, "⟨", "\\langle", !0);
3993
- i(l, u, h0, "∣", "\\lvert");
3994
- i(l, u, h0, "∥", "\\lVert");
3996
+ i(l, u, m0, "⟨", "\\langle", !0);
3997
+ i(l, u, m0, "∣", "\\lvert");
3998
+ i(l, u, m0, "∥", "\\lVert");
3995
3999
  i(l, u, i0, "?", "?");
3996
4000
  i(l, u, i0, "!", "!");
3997
4001
  i(l, u, i0, "⟩", "\\rangle", !0);
@@ -4022,15 +4026,15 @@ i(l, u, f, "→", "\\rightarrow", !0);
4022
4026
  i(l, u, f, "→", "\\to");
4023
4027
  i(l, d, f, "≱", "\\ngeq", !0);
4024
4028
  i(l, d, f, "≰", "\\nleq", !0);
4025
- i(l, u, q0, " ", "\\ ");
4026
- i(l, u, q0, " ", "\\space");
4027
- i(l, u, q0, " ", "\\nobreakspace");
4028
- i(k, u, q0, " ", "\\ ");
4029
- i(k, u, q0, " ", " ");
4030
- i(k, u, q0, " ", "\\space");
4031
- i(k, u, q0, " ", "\\nobreakspace");
4032
- i(l, u, q0, null, "\\nobreak");
4033
- i(l, u, q0, null, "\\allowbreak");
4029
+ i(l, u, E0, " ", "\\ ");
4030
+ i(l, u, E0, " ", "\\space");
4031
+ i(l, u, E0, " ", "\\nobreakspace");
4032
+ i(k, u, E0, " ", "\\ ");
4033
+ i(k, u, E0, " ", " ");
4034
+ i(k, u, E0, " ", "\\space");
4035
+ i(k, u, E0, " ", "\\nobreakspace");
4036
+ i(l, u, E0, null, "\\nobreak");
4037
+ i(l, u, E0, null, "\\allowbreak");
4034
4038
  i(l, u, qe, ",", ",");
4035
4039
  i(l, u, qe, ";", ";");
4036
4040
  i(l, d, D, "⊼", "\\barwedge", !0);
@@ -4049,25 +4053,25 @@ i(l, u, D, "⋄", "\\diamond");
4049
4053
  i(l, u, D, "⋆", "\\star");
4050
4054
  i(l, u, D, "◃", "\\triangleleft");
4051
4055
  i(l, u, D, "▹", "\\triangleright");
4052
- i(l, u, h0, "{", "\\{");
4056
+ i(l, u, m0, "{", "\\{");
4053
4057
  i(k, u, v, "{", "\\{");
4054
4058
  i(k, u, v, "{", "\\textbraceleft");
4055
4059
  i(l, u, i0, "}", "\\}");
4056
4060
  i(k, u, v, "}", "\\}");
4057
4061
  i(k, u, v, "}", "\\textbraceright");
4058
- i(l, u, h0, "{", "\\lbrace");
4062
+ i(l, u, m0, "{", "\\lbrace");
4059
4063
  i(l, u, i0, "}", "\\rbrace");
4060
- i(l, u, h0, "[", "\\lbrack", !0);
4064
+ i(l, u, m0, "[", "\\lbrack", !0);
4061
4065
  i(k, u, v, "[", "\\lbrack", !0);
4062
4066
  i(l, u, i0, "]", "\\rbrack", !0);
4063
4067
  i(k, u, v, "]", "\\rbrack", !0);
4064
- i(l, u, h0, "(", "\\lparen", !0);
4068
+ i(l, u, m0, "(", "\\lparen", !0);
4065
4069
  i(l, u, i0, ")", "\\rparen", !0);
4066
4070
  i(k, u, v, "<", "\\textless", !0);
4067
4071
  i(k, u, v, ">", "\\textgreater", !0);
4068
- i(l, u, h0, "⌊", "\\lfloor", !0);
4072
+ i(l, u, m0, "⌊", "\\lfloor", !0);
4069
4073
  i(l, u, i0, "⌋", "\\rfloor", !0);
4070
- i(l, u, h0, "⌈", "\\lceil", !0);
4074
+ i(l, u, m0, "⌈", "\\lceil", !0);
4071
4075
  i(l, u, i0, "⌉", "\\rceil", !0);
4072
4076
  i(l, u, v, "\\", "\\backslash");
4073
4077
  i(l, u, v, "∣", "|");
@@ -4105,13 +4109,14 @@ i(l, u, _, "∯", "\\oiint");
4105
4109
  i(l, u, _, "∰", "\\oiiint");
4106
4110
  i(l, u, _, "⨆", "\\bigsqcup");
4107
4111
  i(l, u, _, "∫", "\\smallint");
4108
- i(k, u, te, "…", "\\textellipsis");
4109
- i(l, u, te, "…", "\\mathellipsis");
4110
- i(k, u, te, "…", "\\ldots", !0);
4111
- i(l, u, te, "…", "\\ldots", !0);
4112
- i(l, u, te, "⋯", "\\@cdots", !0);
4113
- i(l, u, te, "⋱", "\\ddots", !0);
4112
+ i(k, u, re, "…", "\\textellipsis");
4113
+ i(l, u, re, "…", "\\mathellipsis");
4114
+ i(k, u, re, "…", "\\ldots", !0);
4115
+ i(l, u, re, "…", "\\ldots", !0);
4116
+ i(l, u, re, "⋯", "\\@cdots", !0);
4117
+ i(l, u, re, "⋱", "\\ddots", !0);
4114
4118
  i(l, u, v, "⋮", "\\varvdots");
4119
+ i(k, u, v, "⋮", "\\varvdots");
4115
4120
  i(l, u, W, "ˊ", "\\acute");
4116
4121
  i(l, u, W, "ˋ", "\\grave");
4117
4122
  i(l, u, W, "¨", "\\ddot");
@@ -4149,7 +4154,7 @@ i(k, u, W, "ˇ", "\\v");
4149
4154
  i(k, u, W, "¨", '\\"');
4150
4155
  i(k, u, W, "˝", "\\H");
4151
4156
  i(k, u, W, "◯", "\\textcircled");
4152
- var wr = {
4157
+ var kr = {
4153
4158
  "--": !0,
4154
4159
  "---": !0,
4155
4160
  "``": !0,
@@ -4176,15 +4181,15 @@ i(k, u, v, "£", "\\pounds");
4176
4181
  i(k, u, v, "£", "\\textsterling", !0);
4177
4182
  i(l, d, v, "✠", "\\maltese");
4178
4183
  i(k, d, v, "✠", "\\maltese");
4179
- var Pt = '0123456789/@."';
4180
- for (var Ye = 0; Ye < Pt.length; Ye++) {
4181
- var Gt = Pt.charAt(Ye);
4182
- i(l, u, v, Gt, Gt);
4184
+ var Gt = '0123456789/@."';
4185
+ for (var Ye = 0; Ye < Gt.length; Ye++) {
4186
+ var Vt = Gt.charAt(Ye);
4187
+ i(l, u, v, Vt, Vt);
4183
4188
  }
4184
- var Vt = '0123456789!@*()-=+";:?/.,';
4185
- for (var Xe = 0; Xe < Vt.length; Xe++) {
4186
- var Ut = Vt.charAt(Xe);
4187
- i(k, u, v, Ut, Ut);
4189
+ var Ut = '0123456789!@*()-=+";:?/.,';
4190
+ for (var Xe = 0; Xe < Ut.length; Xe++) {
4191
+ var Yt = Ut.charAt(Xe);
4192
+ i(k, u, v, Yt, Yt);
4188
4193
  }
4189
4194
  var Be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
4190
4195
  for (var $e = 0; $e < Be.length; $e++) {
@@ -4215,13 +4220,13 @@ for (var a0 = 0; a0 < Be.length; a0++) {
4215
4220
  I = String.fromCharCode(55349, 56668);
4216
4221
  i(l, u, E, "k", I);
4217
4222
  i(k, u, v, "k", I);
4218
- for (var Y0 = 0; Y0 < 10; Y0++) {
4219
- var H0 = Y0.toString();
4220
- I = String.fromCharCode(55349, 57294 + Y0), i(l, u, E, H0, I), i(k, u, v, H0, I), I = String.fromCharCode(55349, 57314 + Y0), i(l, u, E, H0, I), i(k, u, v, H0, I), I = String.fromCharCode(55349, 57324 + Y0), i(l, u, E, H0, I), i(k, u, v, H0, I), I = String.fromCharCode(55349, 57334 + Y0), i(l, u, E, H0, I), i(k, u, v, H0, I);
4223
+ for (var X0 = 0; X0 < 10; X0++) {
4224
+ var H0 = X0.toString();
4225
+ I = String.fromCharCode(55349, 57294 + X0), i(l, u, E, H0, I), i(k, u, v, H0, I), I = String.fromCharCode(55349, 57314 + X0), i(l, u, E, H0, I), i(k, u, v, H0, I), I = String.fromCharCode(55349, 57324 + X0), i(l, u, E, H0, I), i(k, u, v, H0, I), I = String.fromCharCode(55349, 57334 + X0), i(l, u, E, H0, I), i(k, u, v, H0, I);
4221
4226
  }
4222
- var st = "ÐÞþ";
4223
- for (var We = 0; We < st.length; We++) {
4224
- var be = st.charAt(We);
4227
+ var lt = "ÐÞþ";
4228
+ for (var We = 0; We < lt.length; We++) {
4229
+ var be = lt.charAt(We);
4225
4230
  i(l, u, E, be, be), i(k, u, v, be, be);
4226
4231
  }
4227
4232
  var ye = [
@@ -4280,7 +4285,7 @@ var ye = [
4280
4285
  // A-Z monospace
4281
4286
  ["mathtt", "texttt", "Typewriter-Regular"]
4282
4287
  // a-z monospace
4283
- ], Yt = [
4288
+ ], Xt = [
4284
4289
  ["mathbf", "textbf", "Main-Bold"],
4285
4290
  // 0-9 bold
4286
4291
  ["", "", ""],
@@ -4291,14 +4296,14 @@ var ye = [
4291
4296
  // 0-9 bold sans-serif
4292
4297
  ["mathtt", "texttt", "Typewriter-Regular"]
4293
4298
  // 0-9 monospace
4294
- ], Ka = function(e, t) {
4299
+ ], Qa = function(e, t) {
4295
4300
  var a = e.charCodeAt(0), n = e.charCodeAt(1), s = (a - 55296) * 1024 + (n - 56320) + 65536, o = t === "math" ? 0 : 1;
4296
4301
  if (119808 <= s && s < 120484) {
4297
4302
  var h = Math.floor((s - 119808) / 26);
4298
4303
  return [ye[h][2], ye[h][o]];
4299
4304
  } else if (120782 <= s && s <= 120831) {
4300
4305
  var c = Math.floor((s - 120782) / 10);
4301
- return [Yt[c][2], Yt[c][o]];
4306
+ return [Xt[c][2], Xt[c][o]];
4302
4307
  } else {
4303
4308
  if (s === 120485 || s === 120486)
4304
4309
  return [ye[0][2], ye[0][o]];
@@ -4309,7 +4314,7 @@ var ye = [
4309
4314
  }, Ee = function(e, t, a) {
4310
4315
  return $[a][e] && $[a][e].replace && (e = $[a][e].replace), {
4311
4316
  value: e,
4312
- metrics: ft(e, t, a)
4317
+ metrics: pt(e, t, a)
4313
4318
  };
4314
4319
  }, b0 = function(e, t, a, n, s) {
4315
4320
  var o = Ee(e, t, a), h = o.metrics;
@@ -4326,9 +4331,9 @@ var ye = [
4326
4331
  g && (c.style.color = g);
4327
4332
  }
4328
4333
  return c;
4329
- }, Ja = function(e, t, a, n) {
4334
+ }, _a = function(e, t, a, n) {
4330
4335
  return n === void 0 && (n = []), a.font === "boldsymbol" && Ee(e, "Main-Bold", t).metrics ? b0(e, "Main-Bold", t, a, n.concat(["mathbf"])) : e === "\\" || $[t][e].font === "main" ? b0(e, "Main-Regular", t, a, n) : b0(e, "AMS-Regular", t, a, n.concat(["amsrm"]));
4331
- }, Qa = function(e, t, a, n, s) {
4336
+ }, e1 = function(e, t, a, n, s) {
4332
4337
  return s !== "textord" && Ee(e, "Math-BoldItalic", t).metrics ? {
4333
4338
  fontName: "Math-BoldItalic",
4334
4339
  fontClass: "boldsymbol"
@@ -4336,23 +4341,23 @@ var ye = [
4336
4341
  fontName: "Main-Bold",
4337
4342
  fontClass: "mathbf"
4338
4343
  };
4339
- }, _a = function(e, t, a) {
4344
+ }, t1 = function(e, t, a) {
4340
4345
  var n = e.mode, s = e.text, o = ["mord"], h = n === "math" || n === "text" && t.font, c = h ? t.font : t.fontFamily, p = "", g = "";
4341
- if (s.charCodeAt(0) === 55349 && ([p, g] = Ka(s, n)), p.length > 0)
4346
+ if (s.charCodeAt(0) === 55349 && ([p, g] = Qa(s, n)), p.length > 0)
4342
4347
  return b0(s, p, n, t, o.concat(g));
4343
4348
  if (c) {
4344
4349
  var y, w;
4345
4350
  if (c === "boldsymbol") {
4346
- var x = Qa(s, n, t, o, a);
4351
+ var x = e1(s, n, t, o, a);
4347
4352
  y = x.fontName, w = [x.fontClass];
4348
4353
  } else
4349
- h ? (y = Mr[c].fontName, w = [c]) : (y = xe(c, t.fontWeight, t.fontShape), w = [c, t.fontWeight, t.fontShape]);
4354
+ h ? (y = zr[c].fontName, w = [c]) : (y = xe(c, t.fontWeight, t.fontShape), w = [c, t.fontWeight, t.fontShape]);
4350
4355
  if (Ee(s, y, n).metrics)
4351
4356
  return b0(s, y, n, t, o.concat(w));
4352
- if (wr.hasOwnProperty(s) && y.slice(0, 10) === "Typewriter") {
4357
+ if (kr.hasOwnProperty(s) && y.slice(0, 10) === "Typewriter") {
4353
4358
  for (var z = [], T = 0; T < s.length; T++)
4354
4359
  z.push(b0(s[T], y, n, t, o.concat(w)));
4355
- return Sr(z);
4360
+ return Mr(z);
4356
4361
  }
4357
4362
  }
4358
4363
  if (a === "mathord")
@@ -4363,16 +4368,16 @@ var ye = [
4363
4368
  var N = xe("amsrm", t.fontWeight, t.fontShape);
4364
4369
  return b0(s, N, n, t, o.concat("amsrm", t.fontWeight, t.fontShape));
4365
4370
  } else if (C === "main" || !C) {
4366
- var O = xe("textrm", t.fontWeight, t.fontShape);
4367
- return b0(s, O, n, t, o.concat(t.fontWeight, t.fontShape));
4371
+ var F = xe("textrm", t.fontWeight, t.fontShape);
4372
+ return b0(s, F, n, t, o.concat(t.fontWeight, t.fontShape));
4368
4373
  } else {
4369
- var H = xe(C, t.fontWeight, t.fontShape);
4370
- return b0(s, H, n, t, o.concat(H, t.fontWeight, t.fontShape));
4374
+ var O = xe(C, t.fontWeight, t.fontShape);
4375
+ return b0(s, O, n, t, o.concat(O, t.fontWeight, t.fontShape));
4371
4376
  }
4372
4377
  } else
4373
4378
  throw new Error("unexpected type: " + a + " in makeOrd");
4374
- }, e1 = (r, e) => {
4375
- if (L0(r.classes) !== L0(e.classes) || r.skew !== e.skew || r.maxFontSize !== e.maxFontSize)
4379
+ }, r1 = (r, e) => {
4380
+ if (P0(r.classes) !== P0(e.classes) || r.skew !== e.skew || r.maxFontSize !== e.maxFontSize)
4376
4381
  return !1;
4377
4382
  if (r.classes.length === 1) {
4378
4383
  var t = r.classes[0];
@@ -4386,13 +4391,13 @@ var ye = [
4386
4391
  if (e.style.hasOwnProperty(n) && r.style[n] !== e.style[n])
4387
4392
  return !1;
4388
4393
  return !0;
4389
- }, t1 = (r) => {
4394
+ }, a1 = (r) => {
4390
4395
  for (var e = 0; e < r.length - 1; e++) {
4391
4396
  var t = r[e], a = r[e + 1];
4392
- t instanceof p0 && a instanceof p0 && e1(t, a) && (t.text += a.text, t.height = Math.max(t.height, a.height), t.depth = Math.max(t.depth, a.depth), t.italic = a.italic, r.splice(e + 1, 1), e--);
4397
+ t instanceof p0 && a instanceof p0 && r1(t, a) && (t.text += a.text, t.height = Math.max(t.height, a.height), t.depth = Math.max(t.depth, a.depth), t.italic = a.italic, r.splice(e + 1, 1), e--);
4393
4398
  }
4394
4399
  return r;
4395
- }, vt = function(e) {
4400
+ }, gt = function(e) {
4396
4401
  for (var t = 0, a = 0, n = 0, s = 0; s < e.children.length; s++) {
4397
4402
  var o = e.children[s];
4398
4403
  o.height > t && (t = o.height), o.depth > a && (a = o.depth), o.maxFontSize > n && (n = o.maxFontSize);
@@ -4400,19 +4405,19 @@ var ye = [
4400
4405
  e.height = t, e.depth = a, e.maxFontSize = n;
4401
4406
  }, l0 = function(e, t, a, n) {
4402
4407
  var s = new he(e, t, a, n);
4403
- return vt(s), s;
4404
- }, kr = (r, e, t, a) => new he(r, e, t, a), r1 = function(e, t, a) {
4408
+ return gt(s), s;
4409
+ }, Sr = (r, e, t, a) => new he(r, e, t, a), n1 = function(e, t, a) {
4405
4410
  var n = l0([e], [], t);
4406
4411
  return n.height = Math.max(a || t.fontMetrics().defaultRuleThickness, t.minRuleThickness), n.style.borderBottomWidth = A(n.height), n.maxFontSize = 1, n;
4407
- }, a1 = function(e, t, a, n) {
4408
- var s = new pt(e, t, a, n);
4409
- return vt(s), s;
4410
- }, Sr = function(e) {
4412
+ }, i1 = function(e, t, a, n) {
4413
+ var s = new vt(e, t, a, n);
4414
+ return gt(s), s;
4415
+ }, Mr = function(e) {
4411
4416
  var t = new ue(e);
4412
- return vt(t), t;
4413
- }, n1 = function(e, t) {
4417
+ return gt(t), t;
4418
+ }, s1 = function(e, t) {
4414
4419
  return e instanceof ue ? l0([], [e], t) : e;
4415
- }, i1 = function(e) {
4420
+ }, l1 = function(e) {
4416
4421
  if (e.positionType === "individualShift") {
4417
4422
  for (var t = e.children, a = [t[0]], n = -t[0].shift - t[0].elem.depth, s = n, o = 1; o < t.length; o++) {
4418
4423
  var h = -t[o].shift - s - t[o].elem.depth, c = h - (t[o - 1].elem.height + t[o - 1].elem.depth);
@@ -4450,11 +4455,11 @@ var ye = [
4450
4455
  children: e.children,
4451
4456
  depth: p
4452
4457
  };
4453
- }, s1 = function(e, t) {
4458
+ }, o1 = function(e, t) {
4454
4459
  for (var {
4455
4460
  children: a,
4456
4461
  depth: n
4457
- } = i1(e), s = 0, o = 0; o < a.length; o++) {
4462
+ } = l1(e), s = 0, o = 0; o < a.length; o++) {
4458
4463
  var h = a[o];
4459
4464
  if (h.type === "elem") {
4460
4465
  var c = h.elem;
@@ -4469,8 +4474,8 @@ var ye = [
4469
4474
  if (T.type === "kern")
4470
4475
  x += T.size;
4471
4476
  else {
4472
- var C = T.elem, N = T.wrapperClasses || [], O = T.wrapperStyle || {}, H = l0(N, [p, C], void 0, O);
4473
- H.style.top = A(-s - x - C.depth), T.marginLeft && (H.style.marginLeft = T.marginLeft), T.marginRight && (H.style.marginRight = T.marginRight), g.push(H), x += C.height + C.depth;
4477
+ var C = T.elem, N = T.wrapperClasses || [], F = T.wrapperStyle || {}, O = l0(N, [p, C], void 0, F);
4478
+ O.style.top = A(-s - x - C.depth), T.marginLeft && (O.style.marginLeft = T.marginLeft), T.marginRight && (O.style.marginRight = T.marginRight), g.push(O), x += C.height + C.depth;
4474
4479
  }
4475
4480
  y = Math.min(y, x), w = Math.max(w, x);
4476
4481
  }
@@ -4486,7 +4491,7 @@ var ye = [
4486
4491
  L = [l0(["vlist-r"], [V])];
4487
4492
  var Y = l0(["vlist-t"], L);
4488
4493
  return L.length === 2 && Y.classes.push("vlist-t2"), Y.height = w, Y.depth = -y, Y;
4489
- }, l1 = (r, e) => {
4494
+ }, u1 = (r, e) => {
4490
4495
  var t = l0(["mspace"], [], e), a = K(r, e);
4491
4496
  return t.style.marginRight = A(a), t;
4492
4497
  }, xe = function(e, t, a) {
@@ -4509,7 +4514,7 @@ var ye = [
4509
4514
  }
4510
4515
  var s;
4511
4516
  return t === "textbf" && a === "textit" ? s = "BoldItalic" : t === "textbf" ? s = "Bold" : t === "textit" ? s = "Italic" : s = "Regular", n + "-" + s;
4512
- }, Mr = {
4517
+ }, zr = {
4513
4518
  // styles
4514
4519
  mathbf: {
4515
4520
  variant: "bold",
@@ -4531,6 +4536,10 @@ var ye = [
4531
4536
  variant: "italic",
4532
4537
  fontName: "Math-Italic"
4533
4538
  },
4539
+ mathsfit: {
4540
+ variant: "sans-serif-italic",
4541
+ fontName: "SansSerif-Italic"
4542
+ },
4534
4543
  // "boldsymbol" is missing because they require the use of multiple fonts:
4535
4544
  // Math-BoldItalic and Main-Bold. This is handled by a special case in
4536
4545
  // makeOrd which ends up calling boldsymbol.
@@ -4559,7 +4568,7 @@ var ye = [
4559
4568
  variant: "monospace",
4560
4569
  fontName: "Typewriter-Regular"
4561
4570
  }
4562
- }, zr = {
4571
+ }, Ar = {
4563
4572
  // path, width, height
4564
4573
  vec: ["vec", 0.471, 0.714],
4565
4574
  // values from the font glyph
@@ -4568,77 +4577,77 @@ var ye = [
4568
4577
  oiintSize2: ["oiintSize2", 1.472, 0.659],
4569
4578
  oiiintSize1: ["oiiintSize1", 1.304, 0.499],
4570
4579
  oiiintSize2: ["oiiintSize2", 1.98, 0.659]
4571
- }, o1 = function(e, t) {
4572
- var [a, n, s] = zr[e], o = new P0(a), h = new D0([o], {
4580
+ }, h1 = function(e, t) {
4581
+ var [a, n, s] = Ar[e], o = new G0(a), h = new C0([o], {
4573
4582
  width: A(n),
4574
4583
  height: A(s),
4575
4584
  // Override CSS rule `.katex svg { width: 100% }`
4576
4585
  style: "width:" + A(n),
4577
4586
  viewBox: "0 0 " + 1e3 * n + " " + 1e3 * s,
4578
4587
  preserveAspectRatio: "xMinYMin"
4579
- }), c = kr(["overlay"], [h], t);
4588
+ }), c = Sr(["overlay"], [h], t);
4580
4589
  return c.height = s, c.style.height = A(s), c.style.width = A(n), c;
4581
4590
  }, b = {
4582
- fontMap: Mr,
4591
+ fontMap: zr,
4583
4592
  makeSymbol: b0,
4584
- mathsym: Ja,
4593
+ mathsym: _a,
4585
4594
  makeSpan: l0,
4586
- makeSvgSpan: kr,
4587
- makeLineSpan: r1,
4588
- makeAnchor: a1,
4589
- makeFragment: Sr,
4590
- wrapFragment: n1,
4591
- makeVList: s1,
4592
- makeOrd: _a,
4593
- makeGlue: l1,
4594
- staticSvg: o1,
4595
- svgData: zr,
4596
- tryCombineChars: t1
4595
+ makeSvgSpan: Sr,
4596
+ makeLineSpan: n1,
4597
+ makeAnchor: i1,
4598
+ makeFragment: Mr,
4599
+ wrapFragment: s1,
4600
+ makeVList: o1,
4601
+ makeOrd: t1,
4602
+ makeGlue: u1,
4603
+ staticSvg: h1,
4604
+ svgData: Ar,
4605
+ tryCombineChars: a1
4597
4606
  }, Z = {
4598
4607
  number: 3,
4599
4608
  unit: "mu"
4600
- }, X0 = {
4609
+ }, $0 = {
4601
4610
  number: 4,
4602
4611
  unit: "mu"
4603
- }, z0 = {
4612
+ }, A0 = {
4604
4613
  number: 5,
4605
4614
  unit: "mu"
4606
- }, u1 = {
4615
+ }, m1 = {
4607
4616
  mord: {
4608
4617
  mop: Z,
4609
- mbin: X0,
4610
- mrel: z0,
4618
+ mbin: $0,
4619
+ mrel: A0,
4611
4620
  minner: Z
4612
4621
  },
4613
4622
  mop: {
4614
4623
  mord: Z,
4615
4624
  mop: Z,
4616
- mrel: z0,
4625
+ mrel: A0,
4617
4626
  minner: Z
4618
4627
  },
4619
4628
  mbin: {
4620
- mord: X0,
4621
- mop: X0,
4622
- mopen: X0,
4623
- minner: X0
4629
+ mord: $0,
4630
+ mop: $0,
4631
+ mopen: $0,
4632
+ minner: $0
4624
4633
  },
4625
4634
  mrel: {
4626
- mord: z0,
4627
- mop: z0,
4628
- mopen: z0,
4629
- minner: z0
4635
+ mord: A0,
4636
+ mop: A0,
4637
+ mopen: A0,
4638
+ minner: A0
4630
4639
  },
4631
4640
  mopen: {},
4632
4641
  mclose: {
4633
4642
  mop: Z,
4634
- mbin: X0,
4635
- mrel: z0,
4643
+ mbin: $0,
4644
+ mrel: A0,
4636
4645
  minner: Z
4637
4646
  },
4638
4647
  mpunct: {
4639
4648
  mord: Z,
4640
4649
  mop: Z,
4641
- mrel: z0,
4650
+ mrel: A0,
4642
4651
  mopen: Z,
4643
4652
  mclose: Z,
4644
4653
  mpunct: Z,
@@ -4647,13 +4656,13 @@ var ye = [
4647
4656
  minner: {
4648
4657
  mord: Z,
4649
4658
  mop: Z,
4650
- mbin: X0,
4651
- mrel: z0,
4659
+ mbin: $0,
4660
+ mrel: A0,
4652
4661
  mopen: Z,
4653
4662
  mpunct: Z,
4654
4663
  minner: Z
4655
4664
  }
4656
- }, h1 = {
4665
+ }, c1 = {
4657
4666
  mord: {
4658
4667
  mop: Z
4659
4668
  },
@@ -4671,7 +4680,7 @@ var ye = [
4671
4680
  minner: {
4672
4681
  mop: Z
4673
4682
  }
4674
- }, Ar = {}, De = {}, Ce = {};
4683
+ }, Tr = {}, De = {}, Ce = {};
4675
4684
  function B(r) {
4676
4685
  for (var {
4677
4686
  type: e,
@@ -4692,10 +4701,10 @@ function B(r) {
4692
4701
  primitive: !!a.primitive,
4693
4702
  handler: n
4694
4703
  }, c = 0; c < t.length; ++c)
4695
- Ar[t[c]] = h;
4704
+ Tr[t[c]] = h;
4696
4705
  e && (s && (De[e] = s), o && (Ce[e] = o));
4697
4706
  }
4698
- function $0(r) {
4707
+ function W0(r) {
4699
4708
  var {
4700
4709
  type: e,
4701
4710
  htmlBuilder: t,
@@ -4718,12 +4727,12 @@ var Ne = function(e) {
4718
4727
  return e.type === "ordgroup" && e.body.length === 1 ? e.body[0] : e;
4719
4728
  }, Q = function(e) {
4720
4729
  return e.type === "ordgroup" ? e.body : [e];
4721
- }, C0 = b.makeSpan, m1 = ["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"], c1 = ["rightmost", "mrel", "mclose", "mpunct"], d1 = {
4730
+ }, N0 = b.makeSpan, d1 = ["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"], f1 = ["rightmost", "mrel", "mclose", "mpunct"], p1 = {
4722
4731
  display: R.DISPLAY,
4723
4732
  text: R.TEXT,
4724
4733
  script: R.SCRIPT,
4725
4734
  scriptscript: R.SCRIPTSCRIPT
4726
- }, f1 = {
4735
+ }, v1 = {
4727
4736
  mord: "mord",
4728
4737
  mop: "mop",
4729
4738
  mbin: "mbin",
@@ -4747,25 +4756,25 @@ var Ne = function(e) {
4747
4756
  var p = t;
4748
4757
  if (e.length === 1) {
4749
4758
  var g = e[0];
4750
- g.type === "sizing" ? p = t.havingSize(g.size) : g.type === "styling" && (p = t.havingStyle(d1[g.style]));
4759
+ g.type === "sizing" ? p = t.havingSize(g.size) : g.type === "styling" && (p = t.havingStyle(p1[g.style]));
4751
4760
  }
4752
- var y = C0([n[0] || "leftmost"], [], t), w = C0([n[1] || "rightmost"], [], t), x = a === "root";
4753
- return Xt(s, (z, T) => {
4761
+ var y = N0([n[0] || "leftmost"], [], t), w = N0([n[1] || "rightmost"], [], t), x = a === "root";
4762
+ return $t(s, (z, T) => {
4754
4763
  var C = T.classes[0], N = z.classes[0];
4755
- C === "mbin" && q.contains(c1, N) ? T.classes[0] = "mord" : N === "mbin" && q.contains(m1, C) && (z.classes[0] = "mord");
4764
+ C === "mbin" && q.contains(f1, N) ? T.classes[0] = "mord" : N === "mbin" && q.contains(d1, C) && (z.classes[0] = "mord");
4756
4765
  }, {
4757
4766
  node: y
4758
- }, w, x), Xt(s, (z, T) => {
4759
- var C = lt(T), N = lt(z), O = C && N ? z.hasClass("mtight") ? h1[C][N] : u1[C][N] : null;
4760
- if (O)
4761
- return b.makeGlue(O, p);
4767
+ }, w, x), $t(s, (z, T) => {
4768
+ var C = ot(T), N = ot(z), F = C && N ? z.hasClass("mtight") ? c1[C][N] : m1[C][N] : null;
4769
+ if (F)
4770
+ return b.makeGlue(F, p);
4762
4771
  }, {
4763
4772
  node: y
4764
4773
  }, w, x), s;
4765
- }, Xt = function r(e, t, a, n, s) {
4774
+ }, $t = function r(e, t, a, n, s) {
4766
4775
  n && e.push(n);
4767
4776
  for (var o = 0; o < e.length; o++) {
4768
- var h = e[o], c = Tr(h);
4777
+ var h = e[o], c = Br(h);
4769
4778
  if (c) {
4770
4779
  r(c.children, t, a, null, s);
4771
4780
  continue;
@@ -4775,15 +4784,15 @@ var Ne = function(e) {
4775
4784
  var g = t(h, a.node);
4776
4785
  g && (a.insertAfter ? a.insertAfter(g) : (e.unshift(g), o++));
4777
4786
  }
4778
- p ? a.node = h : s && h.hasClass("newline") && (a.node = C0(["leftmost"])), a.insertAfter = ((y) => (w) => {
4787
+ p ? a.node = h : s && h.hasClass("newline") && (a.node = N0(["leftmost"])), a.insertAfter = ((y) => (w) => {
4779
4788
  e.splice(y + 1, 0, w), o++;
4780
4789
  })(o);
4781
4790
  }
4782
4791
  n && e.pop();
4783
- }, Tr = function(e) {
4784
- return e instanceof ue || e instanceof pt || e instanceof he && e.hasClass("enclosing") ? e : null;
4785
- }, p1 = function r(e, t) {
4786
- var a = Tr(e);
4792
+ }, Br = function(e) {
4793
+ return e instanceof ue || e instanceof vt || e instanceof he && e.hasClass("enclosing") ? e : null;
4794
+ }, g1 = function r(e, t) {
4795
+ var a = Br(e);
4787
4796
  if (a) {
4788
4797
  var n = a.children;
4789
4798
  if (n.length) {
@@ -4794,18 +4803,18 @@ var Ne = function(e) {
4794
4803
  }
4795
4804
  }
4796
4805
  return e;
4797
- }, lt = function(e, t) {
4798
- return e ? (t && (e = p1(e, t)), f1[e.classes[0]] || null) : null;
4806
+ }, ot = function(e, t) {
4807
+ return e ? (t && (e = g1(e, t)), v1[e.classes[0]] || null) : null;
4799
4808
  }, oe = function(e, t) {
4800
4809
  var a = ["nulldelimiter"].concat(e.baseSizingClasses());
4801
- return C0(t.concat(a));
4810
+ return N0(t.concat(a));
4802
4811
  }, P = function(e, t, a) {
4803
4812
  if (!e)
4804
- return C0();
4813
+ return N0();
4805
4814
  if (De[e.type]) {
4806
4815
  var n = De[e.type](e, t);
4807
4816
  if (a && t.size !== a.size) {
4808
- n = C0(t.sizingClasses(a), [n], t);
4817
+ n = N0(t.sizingClasses(a), [n], t);
4809
4818
  var s = t.sizeMultiplier / a.sizeMultiplier;
4810
4819
  n.height *= s, n.depth *= s;
4811
4820
  }
@@ -4814,10 +4823,10 @@ var Ne = function(e) {
4814
4823
  throw new M("Got group of unknown type: '" + e.type + "'");
4815
4824
  };
4816
4825
  function we(r, e) {
4817
- var t = C0(["base"], r, e), a = C0(["strut"]);
4826
+ var t = N0(["base"], r, e), a = N0(["strut"]);
4818
4827
  return a.style.height = A(t.height + t.depth), t.depth && (a.style.verticalAlign = A(-t.depth)), t.children.unshift(a), t;
4819
4828
  }
4820
- function ot(r, e) {
4829
+ function ut(r, e) {
4821
4830
  var t = null;
4822
4831
  r.length === 1 && r[0].type === "tag" && (t = r[0].tag, r = r[0].body);
4823
4832
  var a = t0(r, e, "root"), n;
@@ -4832,17 +4841,17 @@ function ot(r, e) {
4832
4841
  o.length > 0 && s.push(we(o, e));
4833
4842
  var p;
4834
4843
  t ? (p = we(t0(t, e, !0)), p.classes = ["tag"], s.push(p)) : n && s.push(n);
4835
- var g = C0(["katex-html"], s);
4844
+ var g = N0(["katex-html"], s);
4836
4845
  if (g.setAttribute("aria-hidden", "true"), p) {
4837
4846
  var y = p.children[0];
4838
4847
  y.style.height = A(g.height + g.depth), g.depth && (y.style.verticalAlign = A(-g.depth));
4839
4848
  }
4840
4849
  return g;
4841
4850
  }
4842
- function Br(r) {
4851
+ function Dr(r) {
4843
4852
  return new ue(r);
4844
4853
  }
4845
- class c0 {
4854
+ class h0 {
4846
4855
  constructor(e, t, a) {
4847
4856
  this.type = void 0, this.attributes = void 0, this.children = void 0, this.classes = void 0, this.type = e, this.attributes = {}, this.children = t || [], this.classes = a || [];
4848
4857
  }
@@ -4866,9 +4875,14 @@ class c0 {
4866
4875
  var e = document.createElementNS("http://www.w3.org/1998/Math/MathML", this.type);
4867
4876
  for (var t in this.attributes)
4868
4877
  Object.prototype.hasOwnProperty.call(this.attributes, t) && e.setAttribute(t, this.attributes[t]);
4869
- this.classes.length > 0 && (e.className = L0(this.classes));
4878
+ this.classes.length > 0 && (e.className = P0(this.classes));
4870
4879
  for (var a = 0; a < this.children.length; a++)
4871
- e.appendChild(this.children[a].toNode());
4880
+ if (this.children[a] instanceof w0 && this.children[a + 1] instanceof w0) {
4881
+ for (var n = this.children[a].toText() + this.children[++a].toText(); this.children[a + 1] instanceof w0; )
4882
+ n += this.children[++a].toText();
4883
+ e.appendChild(new w0(n).toNode());
4884
+ } else
4885
+ e.appendChild(this.children[a].toNode());
4872
4886
  return e;
4873
4887
  }
4874
4888
  /**
@@ -4878,7 +4892,7 @@ class c0 {
4878
4892
  var e = "<" + this.type;
4879
4893
  for (var t in this.attributes)
4880
4894
  Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="', e += q.escape(this.attributes[t]), e += '"');
4881
- this.classes.length > 0 && (e += ' class ="' + q.escape(L0(this.classes)) + '"'), e += ">";
4895
+ this.classes.length > 0 && (e += ' class ="' + q.escape(P0(this.classes)) + '"'), e += ">";
4882
4896
  for (var a = 0; a < this.children.length; a++)
4883
4897
  e += this.children[a].toMarkup();
4884
4898
  return e += "</" + this.type + ">", e;
@@ -4890,7 +4904,7 @@ class c0 {
4890
4904
  return this.children.map((e) => e.toText()).join("");
4891
4905
  }
4892
4906
  }
4893
- class ie {
4907
+ class w0 {
4894
4908
  constructor(e) {
4895
4909
  this.text = void 0, this.text = e;
4896
4910
  }
@@ -4915,7 +4929,7 @@ class ie {
4915
4929
  return this.text;
4916
4930
  }
4917
4931
  }
4918
- class v1 {
4932
+ class b1 {
4919
4933
  /**
4920
4934
  * Create a Space node with width given in CSS ems.
4921
4935
  */
@@ -4945,15 +4959,15 @@ class v1 {
4945
4959
  }
4946
4960
  }
4947
4961
  var S = {
4948
- MathNode: c0,
4949
- TextNode: ie,
4950
- SpaceNode: v1,
4951
- newDocumentFragment: Br
4962
+ MathNode: h0,
4963
+ TextNode: w0,
4964
+ SpaceNode: b1,
4965
+ newDocumentFragment: Dr
4952
4966
  }, v0 = function(e, t, a) {
4953
- return $[t][e] && $[t][e].replace && e.charCodeAt(0) !== 55349 && !(wr.hasOwnProperty(e) && a && (a.fontFamily && a.fontFamily.slice(4, 6) === "tt" || a.font && a.font.slice(4, 6) === "tt")) && (e = $[t][e].replace), new S.TextNode(e);
4954
- }, gt = function(e) {
4967
+ return $[t][e] && $[t][e].replace && e.charCodeAt(0) !== 55349 && !(kr.hasOwnProperty(e) && a && (a.fontFamily && a.fontFamily.slice(4, 6) === "tt" || a.font && a.font.slice(4, 6) === "tt")) && (e = $[t][e].replace), new S.TextNode(e);
4968
+ }, bt = function(e) {
4955
4969
  return e.length === 1 ? e[0] : new S.MathNode("mrow", e);
4956
- }, bt = function(e, t) {
4970
+ }, yt = function(e, t) {
4957
4971
  if (t.fontFamily === "texttt")
4958
4972
  return "monospace";
4959
4973
  if (t.fontFamily === "textsf")
@@ -4976,6 +4990,8 @@ var S = {
4976
4990
  return "bold";
4977
4991
  if (a === "mathbb")
4978
4992
  return "double-struck";
4993
+ if (a === "mathsfit")
4994
+ return "sans-serif-italic";
4979
4995
  if (a === "mathfrak")
4980
4996
  return "fraktur";
4981
4997
  if (a === "mathscr" || a === "mathcal")
@@ -4989,40 +5005,55 @@ var S = {
4989
5005
  return null;
4990
5006
  $[n][s] && $[n][s].replace && (s = $[n][s].replace);
4991
5007
  var o = b.fontMap[a].fontName;
4992
- return ft(s, o, n) ? b.fontMap[a].variant : null;
4993
- }, o0 = function(e, t, a) {
5008
+ return pt(s, o, n) ? b.fontMap[a].variant : null;
5009
+ };
5010
+ function je(r) {
5011
+ if (!r)
5012
+ return !1;
5013
+ if (r.type === "mi" && r.children.length === 1) {
5014
+ var e = r.children[0];
5015
+ return e instanceof w0 && e.text === ".";
5016
+ } else if (r.type === "mo" && r.children.length === 1 && r.getAttribute("separator") === "true" && r.getAttribute("lspace") === "0em" && r.getAttribute("rspace") === "0em") {
5017
+ var t = r.children[0];
5018
+ return t instanceof w0 && t.text === ",";
5019
+ } else
5020
+ return !1;
5021
+ }
5022
+ var o0 = function(e, t, a) {
4994
5023
  if (e.length === 1) {
4995
5024
  var n = X(e[0], t);
4996
- return a && n instanceof c0 && n.type === "mo" && (n.setAttribute("lspace", "0em"), n.setAttribute("rspace", "0em")), [n];
5025
+ return a && n instanceof h0 && n.type === "mo" && (n.setAttribute("lspace", "0em"), n.setAttribute("rspace", "0em")), [n];
4997
5026
  }
4998
5027
  for (var s = [], o, h = 0; h < e.length; h++) {
4999
5028
  var c = X(e[h], t);
5000
- if (c instanceof c0 && o instanceof c0) {
5029
+ if (c instanceof h0 && o instanceof h0) {
5001
5030
  if (c.type === "mtext" && o.type === "mtext" && c.getAttribute("mathvariant") === o.getAttribute("mathvariant")) {
5002
5031
  o.children.push(...c.children);
5003
5032
  continue;
5004
5033
  } else if (c.type === "mn" && o.type === "mn") {
5005
5034
  o.children.push(...c.children);
5006
5035
  continue;
5007
- } else if (c.type === "mi" && c.children.length === 1 && o.type === "mn") {
5036
+ } else if (je(c) && o.type === "mn") {
5037
+ o.children.push(...c.children);
5038
+ continue;
5039
+ } else if (c.type === "mn" && je(o))
5040
+ c.children = [...o.children, ...c.children], s.pop();
5041
+ else if ((c.type === "msup" || c.type === "msub") && c.children.length >= 1 && (o.type === "mn" || je(o))) {
5008
5042
  var p = c.children[0];
5009
- if (p instanceof ie && p.text === ".") {
5010
- o.children.push(...c.children);
5011
- continue;
5012
- }
5043
+ p instanceof h0 && p.type === "mn" && (p.children = [...o.children, ...p.children], s.pop());
5013
5044
  } else if (o.type === "mi" && o.children.length === 1) {
5014
5045
  var g = o.children[0];
5015
- if (g instanceof ie && g.text === "̸" && (c.type === "mo" || c.type === "mi" || c.type === "mn")) {
5046
+ if (g instanceof w0 && g.text === "̸" && (c.type === "mo" || c.type === "mi" || c.type === "mn")) {
5016
5047
  var y = c.children[0];
5017
- y instanceof ie && y.text.length > 0 && (y.text = y.text.slice(0, 1) + "̸" + y.text.slice(1), s.pop());
5048
+ y instanceof w0 && y.text.length > 0 && (y.text = y.text.slice(0, 1) + "̸" + y.text.slice(1), s.pop());
5018
5049
  }
5019
5050
  }
5020
5051
  }
5021
5052
  s.push(c), o = c;
5022
5053
  }
5023
5054
  return s;
5024
- }, G0 = function(e, t, a) {
5025
- return gt(o0(e, t, a));
5055
+ }, V0 = function(e, t, a) {
5056
+ return bt(o0(e, t, a));
5026
5057
  }, X = function(e, t) {
5027
5058
  if (!e)
5028
5059
  return new S.MathNode("mrow");
@@ -5032,9 +5063,9 @@ var S = {
5032
5063
  } else
5033
5064
  throw new M("Got group of unknown type: '" + e.type + "'");
5034
5065
  };
5035
- function $t(r, e, t, a, n) {
5066
+ function Wt(r, e, t, a, n) {
5036
5067
  var s = o0(r, t), o;
5037
- s.length === 1 && s[0] instanceof c0 && q.contains(["mrow", "mtable"], s[0].type) ? o = s[0] : o = new S.MathNode("mrow", s);
5068
+ s.length === 1 && s[0] instanceof h0 && q.contains(["mrow", "mtable"], s[0].type) ? o = s[0] : o = new S.MathNode("mrow", s);
5038
5069
  var h = new S.MathNode("annotation", [new S.TextNode(e)]);
5039
5070
  h.setAttribute("encoding", "application/x-tex");
5040
5071
  var c = new S.MathNode("semantics", [o, h]), p = new S.MathNode("math", [c]);
@@ -5042,34 +5073,34 @@ function $t(r, e, t, a, n) {
5042
5073
  var g = n ? "katex" : "katex-mathml";
5043
5074
  return b.makeSpan([g], [p]);
5044
5075
  }
5045
- var Dr = function(e) {
5046
- return new A0({
5076
+ var Cr = function(e) {
5077
+ return new T0({
5047
5078
  style: e.displayMode ? R.DISPLAY : R.TEXT,
5048
5079
  maxSize: e.maxSize,
5049
5080
  minRuleThickness: e.minRuleThickness
5050
5081
  });
5051
- }, Cr = function(e, t) {
5082
+ }, Nr = function(e, t) {
5052
5083
  if (t.displayMode) {
5053
5084
  var a = ["katex-display"];
5054
5085
  t.leqno && a.push("leqno"), t.fleqn && a.push("fleqn"), e = b.makeSpan(a, [e]);
5055
5086
  }
5056
5087
  return e;
5057
- }, g1 = function(e, t, a) {
5058
- var n = Dr(a), s;
5088
+ }, y1 = function(e, t, a) {
5089
+ var n = Cr(a), s;
5059
5090
  if (a.output === "mathml")
5060
- return $t(e, t, n, a.displayMode, !0);
5091
+ return Wt(e, t, n, a.displayMode, !0);
5061
5092
  if (a.output === "html") {
5062
- var o = ot(e, n);
5093
+ var o = ut(e, n);
5063
5094
  s = b.makeSpan(["katex"], [o]);
5064
5095
  } else {
5065
- var h = $t(e, t, n, a.displayMode, !1), c = ot(e, n);
5096
+ var h = Wt(e, t, n, a.displayMode, !1), c = ut(e, n);
5066
5097
  s = b.makeSpan(["katex"], [h, c]);
5067
5098
  }
5068
- return Cr(s, a);
5069
- }, b1 = function(e, t, a) {
5070
- var n = Dr(a), s = ot(e, n), o = b.makeSpan(["katex"], [s]);
5071
- return Cr(o, a);
5072
- }, y1 = {
5099
+ return Nr(s, a);
5100
+ }, x1 = function(e, t, a) {
5101
+ var n = Cr(a), s = ut(e, n), o = b.makeSpan(["katex"], [s]);
5102
+ return Nr(o, a);
5103
+ }, w1 = {
5073
5104
  widehat: "^",
5074
5105
  widecheck: "ˇ",
5075
5106
  widetilde: "~",
@@ -5114,10 +5145,10 @@ var Dr = function(e) {
5114
5145
  "\\cdrightarrow": "→",
5115
5146
  "\\cdleftarrow": "←",
5116
5147
  "\\cdlongequal": "="
5117
- }, x1 = function(e) {
5118
- var t = new S.MathNode("mo", [new S.TextNode(y1[e.replace(/^\\/, "")])]);
5148
+ }, k1 = function(e) {
5149
+ var t = new S.MathNode("mo", [new S.TextNode(w1[e.replace(/^\\/, "")])]);
5119
5150
  return t.setAttribute("stretchy", "true"), t;
5120
- }, w1 = {
5151
+ }, S1 = {
5121
5152
  // path(s), minWidth, height, align
5122
5153
  overrightarrow: [["rightarrow"], 0.888, 522, "xMaxYMin"],
5123
5154
  overleftarrow: [["leftarrow"], 0.888, 522, "xMinYMin"],
@@ -5164,20 +5195,20 @@ var Dr = function(e) {
5164
5195
  xrightleftarrows: [["baraboveleftarrow", "rightarrowabovebar"], 1.75, 901],
5165
5196
  xrightequilibrium: [["baraboveshortleftharpoon", "rightharpoonaboveshortbar"], 1.75, 716],
5166
5197
  xleftequilibrium: [["shortbaraboveleftharpoon", "shortrightharpoonabovebar"], 1.75, 716]
5167
- }, k1 = function(e) {
5198
+ }, M1 = function(e) {
5168
5199
  return e.type === "ordgroup" ? e.body.length : 1;
5169
- }, S1 = function(e, t) {
5200
+ }, z1 = function(e, t) {
5170
5201
  function a() {
5171
5202
  var h = 4e5, c = e.label.slice(1);
5172
5203
  if (q.contains(["widehat", "widecheck", "widetilde", "utilde"], c)) {
5173
- var p = e, g = k1(p.base), y, w, x;
5204
+ var p = e, g = M1(p.base), y, w, x;
5174
5205
  if (g > 5)
5175
5206
  c === "widehat" || c === "widecheck" ? (y = 420, h = 2364, x = 0.42, w = c + "4") : (y = 312, h = 2340, x = 0.34, w = "tilde4");
5176
5207
  else {
5177
5208
  var z = [1, 1, 2, 2, 3, 3][g];
5178
5209
  c === "widehat" || c === "widecheck" ? (h = [0, 1062, 2364, 2364, 2364][z], y = [0, 239, 300, 360, 420][z], x = [0, 0.24, 0.3, 0.3, 0.36, 0.42][z], w = c + z) : (h = [0, 600, 1033, 2339, 2340][z], y = [0, 260, 286, 306, 312][z], x = [0, 0.26, 0.286, 0.3, 0.306, 0.34][z], w = "tilde" + z);
5179
5210
  }
5180
- var T = new P0(w), C = new D0([T], {
5211
+ var T = new G0(w), C = new C0([T], {
5181
5212
  width: "100%",
5182
5213
  height: A(x),
5183
5214
  viewBox: "0 0 " + h + " " + y,
@@ -5189,10 +5220,10 @@ var Dr = function(e) {
5189
5220
  height: x
5190
5221
  };
5191
5222
  } else {
5192
- var N = [], O = w1[c], [H, V, L] = O, U = L / 1e3, G = H.length, j, Y;
5223
+ var N = [], F = S1[c], [O, V, L] = F, U = L / 1e3, G = O.length, j, Y;
5193
5224
  if (G === 1) {
5194
- var M0 = O[3];
5195
- j = ["hide-tail"], Y = [M0];
5225
+ var z0 = F[3];
5226
+ j = ["hide-tail"], Y = [z0];
5196
5227
  } else if (G === 2)
5197
5228
  j = ["halfarrow-left", "halfarrow-right"], Y = ["xMinYMin", "xMaxYMin"];
5198
5229
  else if (G === 3)
@@ -5201,12 +5232,12 @@ var Dr = function(e) {
5201
5232
  throw new Error(`Correct katexImagesData or update code here to support
5202
5233
  ` + G + " children.");
5203
5234
  for (var r0 = 0; r0 < G; r0++) {
5204
- var e0 = new P0(H[r0]), U0 = new D0([e0], {
5235
+ var e0 = new G0(O[r0]), Y0 = new C0([e0], {
5205
5236
  width: "400em",
5206
5237
  height: A(U),
5207
5238
  viewBox: "0 0 " + h + " " + L,
5208
5239
  preserveAspectRatio: Y[r0] + " slice"
5209
- }), s0 = b.makeSvgSpan([j[r0]], [U0], t);
5240
+ }), s0 = b.makeSvgSpan([j[r0]], [Y0], t);
5210
5241
  if (G === 1)
5211
5242
  return {
5212
5243
  span: s0,
@@ -5228,7 +5259,7 @@ var Dr = function(e) {
5228
5259
  height: o
5229
5260
  } = a();
5230
5261
  return n.height = o, n.style.height = A(o), s > 0 && (n.style.minWidth = A(s)), n;
5231
- }, M1 = function(e, t, a, n, s) {
5262
+ }, A1 = function(e, t, a, n, s) {
5232
5263
  var o, h = e.height + e.depth + a + n;
5233
5264
  if (/fbox|color|angl/.test(t)) {
5234
5265
  if (o = b.makeSpan(["stretchy", t], [], s), t === "fbox") {
@@ -5237,56 +5268,56 @@ var Dr = function(e) {
5237
5268
  }
5238
5269
  } else {
5239
5270
  var p = [];
5240
- /^[bx]cancel$/.test(t) && p.push(new it({
5271
+ /^[bx]cancel$/.test(t) && p.push(new st({
5241
5272
  x1: "0",
5242
5273
  y1: "0",
5243
5274
  x2: "100%",
5244
5275
  y2: "100%",
5245
5276
  "stroke-width": "0.046em"
5246
- })), /^x?cancel$/.test(t) && p.push(new it({
5277
+ })), /^x?cancel$/.test(t) && p.push(new st({
5247
5278
  x1: "0",
5248
5279
  y1: "100%",
5249
5280
  x2: "100%",
5250
5281
  y2: "0",
5251
5282
  "stroke-width": "0.046em"
5252
5283
  }));
5253
- var g = new D0(p, {
5284
+ var g = new C0(p, {
5254
5285
  width: "100%",
5255
5286
  height: A(h)
5256
5287
  });
5257
5288
  o = b.makeSvgSpan([], [g], s);
5258
5289
  }
5259
5290
  return o.height = h, o.style.height = A(h), o;
5260
- }, N0 = {
5261
- encloseSpan: M1,
5262
- mathMLnode: x1,
5263
- svgSpan: S1
5291
+ }, q0 = {
5292
+ encloseSpan: A1,
5293
+ mathMLnode: k1,
5294
+ svgSpan: z1
5264
5295
  };
5265
- function F(r, e) {
5296
+ function H(r, e) {
5266
5297
  if (!r || r.type !== e)
5267
5298
  throw new Error("Expected node of type " + e + ", but got " + (r ? "node of type " + r.type : String(r)));
5268
5299
  return r;
5269
5300
  }
5270
- function yt(r) {
5301
+ function xt(r) {
5271
5302
  var e = Re(r);
5272
5303
  if (!e)
5273
5304
  throw new Error("Expected node of symbol group type, but got " + (r ? "node of type " + r.type : String(r)));
5274
5305
  return e;
5275
5306
  }
5276
5307
  function Re(r) {
5277
- return r && (r.type === "atom" || Za.hasOwnProperty(r.type)) ? r : null;
5308
+ return r && (r.type === "atom" || Ja.hasOwnProperty(r.type)) ? r : null;
5278
5309
  }
5279
- var xt = (r, e) => {
5310
+ var wt = (r, e) => {
5280
5311
  var t, a, n;
5281
- r && r.type === "supsub" ? (a = F(r.base, "accent"), t = a.base, r.base = t, n = Wa(P(r, e)), r.base = a) : (a = F(r, "accent"), t = a.base);
5312
+ r && r.type === "supsub" ? (a = H(r.base, "accent"), t = a.base, r.base = t, n = Za(P(r, e)), r.base = a) : (a = H(r, "accent"), t = a.base);
5282
5313
  var s = P(t, e.havingCrampedStyle()), o = a.isShifty && q.isCharacterBox(t), h = 0;
5283
5314
  if (o) {
5284
5315
  var c = q.getBaseElem(t), p = P(c, e.havingCrampedStyle());
5285
- h = Lt(p).skew;
5316
+ h = Pt(p).skew;
5286
5317
  }
5287
5318
  var g = a.label === "\\c", y = g ? s.height + s.depth : Math.min(s.height, e.fontMetrics().xHeight), w;
5288
5319
  if (a.isStretchy)
5289
- w = N0.svgSpan(a, e), w = b.makeVList({
5320
+ w = q0.svgSpan(a, e), w = b.makeVList({
5290
5321
  positionType: "firstBaseline",
5291
5322
  children: [{
5292
5323
  type: "elem",
@@ -5306,7 +5337,7 @@ var xt = (r, e) => {
5306
5337
  a.label === "\\vec" ? (x = b.staticSvg("vec", e), z = b.svgData.vec[1]) : (x = b.makeOrd({
5307
5338
  mode: a.mode,
5308
5339
  text: a.label
5309
- }, e, "textord"), x = Lt(x), x.italic = 0, z = x.width, g && (y += x.depth)), w = b.makeSpan(["accent-body"], [x]);
5340
+ }, e, "textord"), x = Pt(x), x.italic = 0, z = x.width, g && (y += x.depth)), w = b.makeSpan(["accent-body"], [x]);
5310
5341
  var T = a.label === "\\textcircled";
5311
5342
  T && (w.classes.push("accent-full"), y = s.height);
5312
5343
  var C = h;
@@ -5326,10 +5357,10 @@ var xt = (r, e) => {
5326
5357
  }
5327
5358
  var N = b.makeSpan(["mord", "accent"], [w], e);
5328
5359
  return n ? (n.children[0] = N, n.height = Math.max(N.height, n.height), n.classes[0] = "mord", n) : N;
5329
- }, Nr = (r, e) => {
5330
- var t = r.isStretchy ? N0.mathMLnode(r.label) : new S.MathNode("mo", [v0(r.label, r.mode)]), a = new S.MathNode("mover", [X(r.base, e), t]);
5360
+ }, qr = (r, e) => {
5361
+ var t = r.isStretchy ? q0.mathMLnode(r.label) : new S.MathNode("mo", [v0(r.label, r.mode)]), a = new S.MathNode("mover", [X(r.base, e), t]);
5331
5362
  return a.setAttribute("accent", "true"), a;
5332
- }, z1 = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((r) => "\\" + r).join("|"));
5363
+ }, T1 = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((r) => "\\" + r).join("|"));
5333
5364
  B({
5334
5365
  type: "accent",
5335
5366
  names: ["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring", "\\widecheck", "\\widehat", "\\widetilde", "\\overrightarrow", "\\overleftarrow", "\\Overrightarrow", "\\overleftrightarrow", "\\overgroup", "\\overlinesegment", "\\overleftharpoon", "\\overrightharpoon"],
@@ -5337,7 +5368,7 @@ B({
5337
5368
  numArgs: 1
5338
5369
  },
5339
5370
  handler: (r, e) => {
5340
- var t = Ne(e[0]), a = !z1.test(r.funcName), n = !a || r.funcName === "\\widehat" || r.funcName === "\\widetilde" || r.funcName === "\\widecheck";
5371
+ var t = Ne(e[0]), a = !T1.test(r.funcName), n = !a || r.funcName === "\\widehat" || r.funcName === "\\widetilde" || r.funcName === "\\widecheck";
5341
5372
  return {
5342
5373
  type: "accent",
5343
5374
  mode: r.parser.mode,
@@ -5347,8 +5378,8 @@ B({
5347
5378
  base: t
5348
5379
  };
5349
5380
  },
5350
- htmlBuilder: xt,
5351
- mathmlBuilder: Nr
5381
+ htmlBuilder: wt,
5382
+ mathmlBuilder: qr
5352
5383
  });
5353
5384
  B({
5354
5385
  type: "accent",
@@ -5371,8 +5402,8 @@ B({
5371
5402
  base: t
5372
5403
  };
5373
5404
  },
5374
- htmlBuilder: xt,
5375
- mathmlBuilder: Nr
5405
+ htmlBuilder: wt,
5406
+ mathmlBuilder: qr
5376
5407
  });
5377
5408
  B({
5378
5409
  type: "accentUnder",
@@ -5393,7 +5424,7 @@ B({
5393
5424
  };
5394
5425
  },
5395
5426
  htmlBuilder: (r, e) => {
5396
- var t = P(r.base, e), a = N0.svgSpan(r, e), n = r.label === "\\utilde" ? 0.12 : 0, s = b.makeVList({
5427
+ var t = P(r.base, e), a = q0.svgSpan(r, e), n = r.label === "\\utilde" ? 0.12 : 0, s = b.makeVList({
5397
5428
  positionType: "top",
5398
5429
  positionData: t.height,
5399
5430
  children: [{
@@ -5411,7 +5442,7 @@ B({
5411
5442
  return b.makeSpan(["mord", "accentunder"], [s], e);
5412
5443
  },
5413
5444
  mathmlBuilder: (r, e) => {
5414
- var t = N0.mathMLnode(r.label), a = new S.MathNode("munder", [X(r.base, e), t]);
5445
+ var t = q0.mathMLnode(r.label), a = new S.MathNode("munder", [X(r.base, e), t]);
5415
5446
  return a.setAttribute("accentunder", "true"), a;
5416
5447
  }
5417
5448
  });
@@ -5475,7 +5506,7 @@ B({
5475
5506
  n.classes.push(s + "-arrow-pad");
5476
5507
  var o;
5477
5508
  r.below && (a = e.havingStyle(t.sub()), o = b.wrapFragment(P(r.below, a, e), e), o.classes.push(s + "-arrow-pad"));
5478
- var h = N0.svgSpan(r, e), c = -e.fontMetrics().axisHeight + 0.5 * h.height, p = -e.fontMetrics().axisHeight - 0.5 * h.height - 0.111;
5509
+ var h = q0.svgSpan(r, e), c = -e.fontMetrics().axisHeight + 0.5 * h.height, p = -e.fontMetrics().axisHeight - 0.5 * h.height - 0.111;
5479
5510
  (n.depth > 0.25 || r.label === "\\xleftequilibrium") && (p -= n.depth);
5480
5511
  var g;
5481
5512
  if (o) {
@@ -5512,7 +5543,7 @@ B({
5512
5543
  return g.children[0].children[0].children[1].classes.push("svg-align"), b.makeSpan(["mrel", "x-arrow"], [g], e);
5513
5544
  },
5514
5545
  mathmlBuilder(r, e) {
5515
- var t = N0.mathMLnode(r.label);
5546
+ var t = q0.mathMLnode(r.label);
5516
5547
  t.setAttribute("minsize", r.label.charAt(0) === "x" ? "1.75em" : "3.0em");
5517
5548
  var a;
5518
5549
  if (r.body) {
@@ -5530,12 +5561,12 @@ B({
5530
5561
  return a;
5531
5562
  }
5532
5563
  });
5533
- var A1 = b.makeSpan;
5534
- function qr(r, e) {
5564
+ var B1 = b.makeSpan;
5565
+ function Er(r, e) {
5535
5566
  var t = t0(r.body, e, !0);
5536
- return A1([r.mclass], t, e);
5567
+ return B1([r.mclass], t, e);
5537
5568
  }
5538
- function Er(r, e) {
5569
+ function Rr(r, e) {
5539
5570
  var t, a = o0(r.body, e);
5540
5571
  return r.mclass === "minner" ? t = new S.MathNode("mpadded", a) : r.mclass === "mord" ? r.isCharacterBox ? (t = a[0], t.type = "mi") : t = new S.MathNode("mi", a) : (r.isCharacterBox ? (t = a[0], t.type = "mo") : t = new S.MathNode("mo", a), r.mclass === "mbin" ? (t.attributes.lspace = "0.22em", t.attributes.rspace = "0.22em") : r.mclass === "mpunct" ? (t.attributes.lspace = "0em", t.attributes.rspace = "0.17em") : r.mclass === "mopen" || r.mclass === "mclose" ? (t.attributes.lspace = "0em", t.attributes.rspace = "0em") : r.mclass === "minner" && (t.attributes.lspace = "0.0556em", t.attributes.width = "+0.1111em")), t;
5541
5572
  }
@@ -5560,8 +5591,8 @@ B({
5560
5591
  isCharacterBox: q.isCharacterBox(n)
5561
5592
  };
5562
5593
  },
5563
- htmlBuilder: qr,
5564
- mathmlBuilder: Er
5594
+ htmlBuilder: Er,
5595
+ mathmlBuilder: Rr
5565
5596
  });
5566
5597
  var Ie = (r) => {
5567
5598
  var e = r.type === "ordgroup" && r.body.length ? r.body[0] : r;
@@ -5622,8 +5653,8 @@ B({
5622
5653
  isCharacterBox: q.isCharacterBox(c)
5623
5654
  };
5624
5655
  },
5625
- htmlBuilder: qr,
5626
- mathmlBuilder: Er
5656
+ htmlBuilder: Er,
5657
+ mathmlBuilder: Rr
5627
5658
  });
5628
5659
  B({
5629
5660
  type: "pmb",
@@ -5652,7 +5683,7 @@ B({
5652
5683
  return a.setAttribute("style", "text-shadow: 0.02em 0.01em 0.04px"), a;
5653
5684
  }
5654
5685
  });
5655
- var T1 = {
5686
+ var D1 = {
5656
5687
  ">": "\\\\cdrightarrow",
5657
5688
  "<": "\\\\cdleftarrow",
5658
5689
  "=": "\\\\cdlongequal",
@@ -5660,14 +5691,14 @@ var T1 = {
5660
5691
  V: "\\downarrow",
5661
5692
  "|": "\\Vert",
5662
5693
  ".": "no arrow"
5663
- }, Wt = () => ({
5694
+ }, jt = () => ({
5664
5695
  type: "styling",
5665
5696
  body: [],
5666
5697
  mode: "math",
5667
5698
  style: "display"
5668
- }), jt = (r) => r.type === "textord" && r.text === "@", B1 = (r, e) => (r.type === "mathord" || r.type === "atom") && r.text === e;
5669
- function D1(r, e, t) {
5670
- var a = T1[r];
5699
+ }), Zt = (r) => r.type === "textord" && r.text === "@", C1 = (r, e) => (r.type === "mathord" || r.type === "atom") && r.text === e;
5700
+ function N1(r, e, t) {
5701
+ var a = D1[r];
5671
5702
  switch (a) {
5672
5703
  case "\\\\cdrightarrow":
5673
5704
  case "\\\\cdleftarrow":
@@ -5704,7 +5735,7 @@ function D1(r, e, t) {
5704
5735
  };
5705
5736
  }
5706
5737
  }
5707
- function C1(r) {
5738
+ function q1(r) {
5708
5739
  var e = [];
5709
5740
  for (r.gullet.beginGroup(), r.gullet.macros.set("\\cr", "\\\\\\relax"), r.gullet.beginGroup(); ; ) {
5710
5741
  e.push(r.parseExpression(!1, "\\\\")), r.gullet.endGroup(), r.gullet.beginGroup();
@@ -5718,12 +5749,12 @@ function C1(r) {
5718
5749
  throw new M("Expected \\\\ or \\cr or \\end", r.nextToken);
5719
5750
  }
5720
5751
  for (var a = [], n = [a], s = 0; s < e.length; s++) {
5721
- for (var o = e[s], h = Wt(), c = 0; c < o.length; c++)
5722
- if (!jt(o[c]))
5752
+ for (var o = e[s], h = jt(), c = 0; c < o.length; c++)
5753
+ if (!Zt(o[c]))
5723
5754
  h.body.push(o[c]);
5724
5755
  else {
5725
5756
  a.push(h), c += 1;
5726
- var p = yt(o[c]).text, g = new Array(2);
5757
+ var p = xt(o[c]).text, g = new Array(2);
5727
5758
  if (g[0] = {
5728
5759
  type: "ordgroup",
5729
5760
  mode: "math",
@@ -5736,11 +5767,11 @@ function C1(r) {
5736
5767
  if ("<>AV".indexOf(p) > -1)
5737
5768
  for (var y = 0; y < 2; y++) {
5738
5769
  for (var w = !0, x = c + 1; x < o.length; x++) {
5739
- if (B1(o[x], p)) {
5770
+ if (C1(o[x], p)) {
5740
5771
  w = !1, c = x;
5741
5772
  break;
5742
5773
  }
5743
- if (jt(o[x]))
5774
+ if (Zt(o[x]))
5744
5775
  throw new M("Missing a " + p + " character to complete a CD arrow.", o[x]);
5745
5776
  g[y].body.push(o[x]);
5746
5777
  }
@@ -5749,14 +5780,14 @@ function C1(r) {
5749
5780
  }
5750
5781
  else
5751
5782
  throw new M('Expected one of "<>AV=|." after @', o[c]);
5752
- var z = D1(p, g, r), T = {
5783
+ var z = N1(p, g, r), T = {
5753
5784
  type: "styling",
5754
5785
  body: [z],
5755
5786
  mode: "math",
5756
5787
  style: "display"
5757
5788
  // CD is always displaystyle.
5758
5789
  };
5759
- a.push(T), h = Wt();
5790
+ a.push(T), h = jt();
5760
5791
  }
5761
5792
  s % 2 === 0 ? a.push(h) : a.shift(), a = [], n.push(a);
5762
5793
  }
@@ -5842,8 +5873,8 @@ B({
5842
5873
  handler(r, e) {
5843
5874
  for (var {
5844
5875
  parser: t
5845
- } = r, a = F(e[0], "ordgroup"), n = a.body, s = "", o = 0; o < n.length; o++) {
5846
- var h = F(n[o], "textord");
5876
+ } = r, a = H(e[0], "ordgroup"), n = a.body, s = "", o = 0; o < n.length; o++) {
5877
+ var h = H(n[o], "textord");
5847
5878
  s += h.text;
5848
5879
  }
5849
5880
  var c = parseInt(s), p;
@@ -5858,10 +5889,10 @@ B({
5858
5889
  };
5859
5890
  }
5860
5891
  });
5861
- var Rr = (r, e) => {
5892
+ var Ir = (r, e) => {
5862
5893
  var t = t0(r.body, e.withColor(r.color), !1);
5863
5894
  return b.makeFragment(t);
5864
- }, Ir = (r, e) => {
5895
+ }, Fr = (r, e) => {
5865
5896
  var t = o0(r.body, e.withColor(r.color)), a = new S.MathNode("mstyle", t);
5866
5897
  return a.setAttribute("mathcolor", r.color), a;
5867
5898
  };
@@ -5876,7 +5907,7 @@ B({
5876
5907
  handler(r, e) {
5877
5908
  var {
5878
5909
  parser: t
5879
- } = r, a = F(e[0], "color-token").color, n = e[1];
5910
+ } = r, a = H(e[0], "color-token").color, n = e[1];
5880
5911
  return {
5881
5912
  type: "color",
5882
5913
  mode: t.mode,
@@ -5884,8 +5915,8 @@ B({
5884
5915
  body: Q(n)
5885
5916
  };
5886
5917
  },
5887
- htmlBuilder: Rr,
5888
- mathmlBuilder: Ir
5918
+ htmlBuilder: Ir,
5919
+ mathmlBuilder: Fr
5889
5920
  });
5890
5921
  B({
5891
5922
  type: "color",
@@ -5899,7 +5930,7 @@ B({
5899
5930
  var {
5900
5931
  parser: t,
5901
5932
  breakOnTokenText: a
5902
- } = r, n = F(e[0], "color-token").color;
5933
+ } = r, n = H(e[0], "color-token").color;
5903
5934
  t.gullet.macros.set("\\current@color", n);
5904
5935
  var s = t.parseExpression(!0, a);
5905
5936
  return {
@@ -5909,8 +5940,8 @@ B({
5909
5940
  body: s
5910
5941
  };
5911
5942
  },
5912
- htmlBuilder: Rr,
5913
- mathmlBuilder: Ir
5943
+ htmlBuilder: Ir,
5944
+ mathmlBuilder: Fr
5914
5945
  });
5915
5946
  B({
5916
5947
  type: "cr",
@@ -5928,7 +5959,7 @@ B({
5928
5959
  type: "cr",
5929
5960
  mode: a.mode,
5930
5961
  newLine: s,
5931
- size: n && F(n, "size").value
5962
+ size: n && H(n, "size").value
5932
5963
  };
5933
5964
  },
5934
5965
  // The following builders are called only at the top level,
@@ -5942,7 +5973,7 @@ B({
5942
5973
  return r.newLine && (t.setAttribute("linebreak", "newline"), r.size && t.setAttribute("height", A(K(r.size, e)))), t;
5943
5974
  }
5944
5975
  });
5945
- var ut = {
5976
+ var ht = {
5946
5977
  "\\global": "\\global",
5947
5978
  "\\long": "\\\\globallong",
5948
5979
  "\\\\globallong": "\\\\globallong",
@@ -5957,7 +5988,7 @@ var ut = {
5957
5988
  if (/^(?:[\\{}$&#^_]|EOF)$/.test(e))
5958
5989
  throw new M("Expected a control sequence", r);
5959
5990
  return e;
5960
- }, N1 = (r) => {
5991
+ }, E1 = (r) => {
5961
5992
  var e = r.gullet.popToken();
5962
5993
  return e.text === "=" && (e = r.gullet.popToken(), e.text === " " && (e = r.gullet.popToken())), e;
5963
5994
  }, Hr = (r, e, t, a) => {
@@ -5988,8 +6019,8 @@ B({
5988
6019
  } = r;
5989
6020
  e.consumeSpaces();
5990
6021
  var a = e.fetch();
5991
- if (ut[a.text])
5992
- return (t === "\\global" || t === "\\\\globallong") && (a.text = ut[a.text]), F(e.parseFunction(), "internal");
6022
+ if (ht[a.text])
6023
+ return (t === "\\global" || t === "\\\\globallong") && (a.text = ht[a.text]), H(e.parseFunction(), "internal");
5993
6024
  throw new M("Invalid token after macro prefix", a);
5994
6025
  }
5995
6026
  });
@@ -6031,7 +6062,7 @@ B({
6031
6062
  tokens: c,
6032
6063
  numArgs: s,
6033
6064
  delimiters: h
6034
- }, t === ut[t]), {
6065
+ }, t === ht[t]), {
6035
6066
  type: "internal",
6036
6067
  mode: e.mode
6037
6068
  };
@@ -6055,7 +6086,7 @@ B({
6055
6086
  funcName: t
6056
6087
  } = r, a = Or(e.gullet.popToken());
6057
6088
  e.gullet.consumeSpaces();
6058
- var n = N1(e);
6089
+ var n = E1(e);
6059
6090
  return Hr(e, a, n, t === "\\\\globallet"), {
6060
6091
  type: "internal",
6061
6092
  mode: e.mode
@@ -6085,26 +6116,26 @@ B({
6085
6116
  };
6086
6117
  }
6087
6118
  });
6088
- var ne = function(e, t, a) {
6089
- var n = $.math[e] && $.math[e].replace, s = ft(n || e, t, a);
6119
+ var ie = function(e, t, a) {
6120
+ var n = $.math[e] && $.math[e].replace, s = pt(n || e, t, a);
6090
6121
  if (!s)
6091
6122
  throw new Error("Unsupported symbol " + e + " and font size " + t + ".");
6092
6123
  return s;
6093
- }, wt = function(e, t, a, n) {
6124
+ }, kt = function(e, t, a, n) {
6094
6125
  var s = a.havingBaseStyle(t), o = b.makeSpan(n.concat(s.sizingClasses(a)), [e], a), h = s.sizeMultiplier / a.sizeMultiplier;
6095
6126
  return o.height *= h, o.depth *= h, o.maxFontSize = s.sizeMultiplier, o;
6096
- }, Fr = function(e, t, a) {
6127
+ }, Lr = function(e, t, a) {
6097
6128
  var n = t.havingBaseStyle(a), s = (1 - t.sizeMultiplier / n.sizeMultiplier) * t.fontMetrics().axisHeight;
6098
6129
  e.classes.push("delimcenter"), e.style.top = A(s), e.height -= s, e.depth += s;
6099
- }, q1 = function(e, t, a, n, s, o) {
6100
- var h = b.makeSymbol(e, "Main-Regular", s, n), c = wt(h, t, n, o);
6101
- return a && Fr(c, n, t), c;
6102
- }, E1 = function(e, t, a, n) {
6130
+ }, R1 = function(e, t, a, n, s, o) {
6131
+ var h = b.makeSymbol(e, "Main-Regular", s, n), c = kt(h, t, n, o);
6132
+ return a && Lr(c, n, t), c;
6133
+ }, I1 = function(e, t, a, n) {
6103
6134
  return b.makeSymbol(e, "Size" + t + "-Regular", a, n);
6104
- }, Lr = function(e, t, a, n, s, o) {
6105
- var h = E1(e, t, s, n), c = wt(b.makeSpan(["delimsizing", "size" + t], [h], n), R.TEXT, n, o);
6106
- return a && Fr(c, n, R.TEXT), c;
6107
- }, je = function(e, t, a) {
6135
+ }, Pr = function(e, t, a, n, s, o) {
6136
+ var h = I1(e, t, s, n), c = kt(b.makeSpan(["delimsizing", "size" + t], [h], n), R.TEXT, n, o);
6137
+ return a && Lr(c, n, R.TEXT), c;
6138
+ }, Ze = function(e, t, a) {
6108
6139
  var n;
6109
6140
  t === "Size1-Regular" ? n = "delim-size1" : n = "delim-size4";
6110
6141
  var s = b.makeSpan(["delimsizinginner", n], [b.makeSpan([], [b.makeSymbol(e, t, a)])]);
@@ -6112,8 +6143,8 @@ var ne = function(e, t, a) {
6112
6143
  type: "elem",
6113
6144
  elem: s
6114
6145
  };
6115
- }, Ze = function(e, t, a) {
6116
- var n = x0["Size4-Regular"][e.charCodeAt(0)] ? x0["Size4-Regular"][e.charCodeAt(0)][4] : x0["Size1-Regular"][e.charCodeAt(0)][4], s = new P0("inner", La(e, Math.round(1e3 * t))), o = new D0([s], {
6146
+ }, Ke = function(e, t, a) {
6147
+ var n = x0["Size4-Regular"][e.charCodeAt(0)] ? x0["Size4-Regular"][e.charCodeAt(0)][4] : x0["Size1-Regular"][e.charCodeAt(0)][4], s = new G0("inner", Pa(e, Math.round(1e3 * t))), o = new C0([s], {
6117
6148
  width: A(n),
6118
6149
  height: A(t),
6119
6150
  // Override CSS rule `.katex svg { width: 100% }`
@@ -6125,50 +6156,50 @@ var ne = function(e, t, a) {
6125
6156
  type: "elem",
6126
6157
  elem: h
6127
6158
  };
6128
- }, ht = 8e-3, Se = {
6159
+ }, mt = 8e-3, Se = {
6129
6160
  type: "kern",
6130
- size: -1 * ht
6131
- }, R1 = ["|", "\\lvert", "\\rvert", "\\vert"], I1 = ["\\|", "\\lVert", "\\rVert", "\\Vert"], Pr = function(e, t, a, n, s, o) {
6161
+ size: -1 * mt
6162
+ }, F1 = ["|", "\\lvert", "\\rvert", "\\vert"], O1 = ["\\|", "\\lVert", "\\rVert", "\\Vert"], Gr = function(e, t, a, n, s, o) {
6132
6163
  var h, c, p, g, y = "", w = 0;
6133
6164
  h = p = g = e, c = null;
6134
6165
  var x = "Size1-Regular";
6135
- e === "\\uparrow" ? p = g = "⏐" : e === "\\Uparrow" ? p = g = "‖" : e === "\\downarrow" ? h = p = "⏐" : e === "\\Downarrow" ? h = p = "‖" : e === "\\updownarrow" ? (h = "\\uparrow", p = "⏐", g = "\\downarrow") : e === "\\Updownarrow" ? (h = "\\Uparrow", p = "‖", g = "\\Downarrow") : q.contains(R1, e) ? (p = "∣", y = "vert", w = 333) : q.contains(I1, e) ? (p = "∥", y = "doublevert", w = 556) : e === "[" || e === "\\lbrack" ? (h = "⎡", p = "⎢", g = "⎣", x = "Size4-Regular", y = "lbrack", w = 667) : e === "]" || e === "\\rbrack" ? (h = "⎤", p = "⎥", g = "⎦", x = "Size4-Regular", y = "rbrack", w = 667) : e === "\\lfloor" || e === "⌊" ? (p = h = "⎢", g = "⎣", x = "Size4-Regular", y = "lfloor", w = 667) : e === "\\lceil" || e === "⌈" ? (h = "⎡", p = g = "⎢", x = "Size4-Regular", y = "lceil", w = 667) : e === "\\rfloor" || e === "⌋" ? (p = h = "⎥", g = "⎦", x = "Size4-Regular", y = "rfloor", w = 667) : e === "\\rceil" || e === "⌉" ? (h = "⎤", p = g = "⎥", x = "Size4-Regular", y = "rceil", w = 667) : e === "(" || e === "\\lparen" ? (h = "⎛", p = "⎜", g = "⎝", x = "Size4-Regular", y = "lparen", w = 875) : e === ")" || e === "\\rparen" ? (h = "⎞", p = "⎟", g = "⎠", x = "Size4-Regular", y = "rparen", w = 875) : e === "\\{" || e === "\\lbrace" ? (h = "⎧", c = "⎨", g = "⎩", p = "⎪", x = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (h = "⎫", c = "⎬", g = "⎭", p = "⎪", x = "Size4-Regular") : e === "\\lgroup" || e === "⟮" ? (h = "⎧", g = "⎩", p = "⎪", x = "Size4-Regular") : e === "\\rgroup" || e === "⟯" ? (h = "⎫", g = "⎭", p = "⎪", x = "Size4-Regular") : e === "\\lmoustache" || e === "⎰" ? (h = "⎧", g = "⎭", p = "⎪", x = "Size4-Regular") : (e === "\\rmoustache" || e === "⎱") && (h = "⎫", g = "⎩", p = "⎪", x = "Size4-Regular");
6136
- var z = ne(h, x, s), T = z.height + z.depth, C = ne(p, x, s), N = C.height + C.depth, O = ne(g, x, s), H = O.height + O.depth, V = 0, L = 1;
6166
+ e === "\\uparrow" ? p = g = "⏐" : e === "\\Uparrow" ? p = g = "‖" : e === "\\downarrow" ? h = p = "⏐" : e === "\\Downarrow" ? h = p = "‖" : e === "\\updownarrow" ? (h = "\\uparrow", p = "⏐", g = "\\downarrow") : e === "\\Updownarrow" ? (h = "\\Uparrow", p = "‖", g = "\\Downarrow") : q.contains(F1, e) ? (p = "∣", y = "vert", w = 333) : q.contains(O1, e) ? (p = "∥", y = "doublevert", w = 556) : e === "[" || e === "\\lbrack" ? (h = "⎡", p = "⎢", g = "⎣", x = "Size4-Regular", y = "lbrack", w = 667) : e === "]" || e === "\\rbrack" ? (h = "⎤", p = "⎥", g = "⎦", x = "Size4-Regular", y = "rbrack", w = 667) : e === "\\lfloor" || e === "⌊" ? (p = h = "⎢", g = "⎣", x = "Size4-Regular", y = "lfloor", w = 667) : e === "\\lceil" || e === "⌈" ? (h = "⎡", p = g = "⎢", x = "Size4-Regular", y = "lceil", w = 667) : e === "\\rfloor" || e === "⌋" ? (p = h = "⎥", g = "⎦", x = "Size4-Regular", y = "rfloor", w = 667) : e === "\\rceil" || e === "⌉" ? (h = "⎤", p = g = "⎥", x = "Size4-Regular", y = "rceil", w = 667) : e === "(" || e === "\\lparen" ? (h = "⎛", p = "⎜", g = "⎝", x = "Size4-Regular", y = "lparen", w = 875) : e === ")" || e === "\\rparen" ? (h = "⎞", p = "⎟", g = "⎠", x = "Size4-Regular", y = "rparen", w = 875) : e === "\\{" || e === "\\lbrace" ? (h = "⎧", c = "⎨", g = "⎩", p = "⎪", x = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (h = "⎫", c = "⎬", g = "⎭", p = "⎪", x = "Size4-Regular") : e === "\\lgroup" || e === "⟮" ? (h = "⎧", g = "⎩", p = "⎪", x = "Size4-Regular") : e === "\\rgroup" || e === "⟯" ? (h = "⎫", g = "⎭", p = "⎪", x = "Size4-Regular") : e === "\\lmoustache" || e === "⎰" ? (h = "⎧", g = "⎭", p = "⎪", x = "Size4-Regular") : (e === "\\rmoustache" || e === "⎱") && (h = "⎫", g = "⎩", p = "⎪", x = "Size4-Regular");
6167
+ var z = ie(h, x, s), T = z.height + z.depth, C = ie(p, x, s), N = C.height + C.depth, F = ie(g, x, s), O = F.height + F.depth, V = 0, L = 1;
6137
6168
  if (c !== null) {
6138
- var U = ne(c, x, s);
6169
+ var U = ie(c, x, s);
6139
6170
  V = U.height + U.depth, L = 2;
6140
6171
  }
6141
- var G = T + H + V, j = Math.max(0, Math.ceil((t - G) / (L * N))), Y = G + j * L * N, M0 = n.fontMetrics().axisHeight;
6142
- a && (M0 *= n.sizeMultiplier);
6143
- var r0 = Y / 2 - M0, e0 = [];
6172
+ var G = T + O + V, j = Math.max(0, Math.ceil((t - G) / (L * N))), Y = G + j * L * N, z0 = n.fontMetrics().axisHeight;
6173
+ a && (z0 *= n.sizeMultiplier);
6174
+ var r0 = Y / 2 - z0, e0 = [];
6144
6175
  if (y.length > 0) {
6145
- var U0 = Y - T - H, s0 = Math.round(Y * 1e3), g0 = Pa(y, Math.round(U0 * 1e3)), E0 = new P0(y, g0), W0 = (w / 1e3).toFixed(3) + "em", j0 = (s0 / 1e3).toFixed(3) + "em", Le = new D0([E0], {
6146
- width: W0,
6147
- height: j0,
6176
+ var Y0 = Y - T - O, s0 = Math.round(Y * 1e3), g0 = Ga(y, Math.round(Y0 * 1e3)), R0 = new G0(y, g0), j0 = (w / 1e3).toFixed(3) + "em", Z0 = (s0 / 1e3).toFixed(3) + "em", Le = new C0([R0], {
6177
+ width: j0,
6178
+ height: Z0,
6148
6179
  viewBox: "0 0 " + w + " " + s0
6149
- }), R0 = b.makeSvgSpan([], [Le], n);
6150
- R0.height = s0 / 1e3, R0.style.width = W0, R0.style.height = j0, e0.push({
6180
+ }), I0 = b.makeSvgSpan([], [Le], n);
6181
+ I0.height = s0 / 1e3, I0.style.width = j0, I0.style.height = Z0, e0.push({
6151
6182
  type: "elem",
6152
- elem: R0
6183
+ elem: I0
6153
6184
  });
6154
6185
  } else {
6155
- if (e0.push(je(g, x, s)), e0.push(Se), c === null) {
6156
- var I0 = Y - T - H + 2 * ht;
6157
- e0.push(Ze(p, I0, n));
6186
+ if (e0.push(Ze(g, x, s)), e0.push(Se), c === null) {
6187
+ var F0 = Y - T - O + 2 * mt;
6188
+ e0.push(Ke(p, F0, n));
6158
6189
  } else {
6159
- var m0 = (Y - T - H - V) / 2 + 2 * ht;
6160
- e0.push(Ze(p, m0, n)), e0.push(Se), e0.push(je(c, x, s)), e0.push(Se), e0.push(Ze(p, m0, n));
6190
+ var c0 = (Y - T - O - V) / 2 + 2 * mt;
6191
+ e0.push(Ke(p, c0, n)), e0.push(Se), e0.push(Ze(c, x, s)), e0.push(Se), e0.push(Ke(p, c0, n));
6161
6192
  }
6162
- e0.push(Se), e0.push(je(h, x, s));
6193
+ e0.push(Se), e0.push(Ze(h, x, s));
6163
6194
  }
6164
- var ae = n.havingBaseStyle(R.TEXT), Pe = b.makeVList({
6195
+ var ne = n.havingBaseStyle(R.TEXT), Pe = b.makeVList({
6165
6196
  positionType: "bottom",
6166
6197
  positionData: r0,
6167
6198
  children: e0
6168
- }, ae);
6169
- return wt(b.makeSpan(["delimsizing", "mult"], [Pe], ae), R.TEXT, n, o);
6170
- }, Ke = 80, Je = 0.08, Qe = function(e, t, a, n, s) {
6171
- var o = Fa(e, n, a), h = new P0(e, o), c = new D0([h], {
6199
+ }, ne);
6200
+ return kt(b.makeSpan(["delimsizing", "mult"], [Pe], ne), R.TEXT, n, o);
6201
+ }, Je = 80, Qe = 0.08, _e = function(e, t, a, n, s) {
6202
+ var o = La(e, n, a), h = new G0(e, o), c = new C0([h], {
6172
6203
  // Note: 1000:1 ratio of viewBox to document em width.
6173
6204
  width: "400em",
6174
6205
  height: A(t),
@@ -6176,9 +6207,9 @@ var ne = function(e, t, a) {
6176
6207
  preserveAspectRatio: "xMinYMin slice"
6177
6208
  });
6178
6209
  return b.makeSvgSpan(["hide-tail"], [c], s);
6179
- }, O1 = function(e, t) {
6180
- var a = t.havingBaseSizing(), n = Yr("\\surd", e * a.sizeMultiplier, Ur, a), s = a.sizeMultiplier, o = Math.max(0, t.minRuleThickness - t.fontMetrics().sqrtRuleThickness), h, c = 0, p = 0, g = 0, y;
6181
- return n.type === "small" ? (g = 1e3 + 1e3 * o + Ke, e < 1 ? s = 1 : e < 1.4 && (s = 0.7), c = (1 + o + Je) / s, p = (1 + o) / s, h = Qe("sqrtMain", c, g, o, t), h.style.minWidth = "0.853em", y = 0.833 / s) : n.type === "large" ? (g = (1e3 + Ke) * se[n.size], p = (se[n.size] + o) / s, c = (se[n.size] + o + Je) / s, h = Qe("sqrtSize" + n.size, c, g, o, t), h.style.minWidth = "1.02em", y = 1 / s) : (c = e + o + Je, p = e + o, g = Math.floor(1e3 * e + o) + Ke, h = Qe("sqrtTall", c, g, o, t), h.style.minWidth = "0.742em", y = 1.056), h.height = p, h.style.height = A(c), {
6210
+ }, H1 = function(e, t) {
6211
+ var a = t.havingBaseSizing(), n = Xr("\\surd", e * a.sizeMultiplier, Yr, a), s = a.sizeMultiplier, o = Math.max(0, t.minRuleThickness - t.fontMetrics().sqrtRuleThickness), h, c = 0, p = 0, g = 0, y;
6212
+ return n.type === "small" ? (g = 1e3 + 1e3 * o + Je, e < 1 ? s = 1 : e < 1.4 && (s = 0.7), c = (1 + o + Qe) / s, p = (1 + o) / s, h = _e("sqrtMain", c, g, o, t), h.style.minWidth = "0.853em", y = 0.833 / s) : n.type === "large" ? (g = (1e3 + Je) * se[n.size], p = (se[n.size] + o) / s, c = (se[n.size] + o + Qe) / s, h = _e("sqrtSize" + n.size, c, g, o, t), h.style.minWidth = "1.02em", y = 1 / s) : (c = e + o + Qe, p = e + o, g = Math.floor(1e3 * e + o) + Je, h = _e("sqrtTall", c, g, o, t), h.style.minWidth = "0.742em", y = 1.056), h.height = p, h.style.height = A(c), {
6182
6213
  span: h,
6183
6214
  advanceWidth: y,
6184
6215
  // Calculate the actual line width.
@@ -6187,13 +6218,13 @@ var ne = function(e, t, a) {
6187
6218
  // have thicker rules.
6188
6219
  ruleWidth: (t.fontMetrics().sqrtRuleThickness + o) * s
6189
6220
  };
6190
- }, Gr = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "\\surd"], H1 = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱"], Vr = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], se = [0, 1.2, 1.8, 2.4, 3], F1 = function(e, t, a, n, s) {
6191
- if (e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle"), q.contains(Gr, e) || q.contains(Vr, e))
6192
- return Lr(e, t, !1, a, n, s);
6193
- if (q.contains(H1, e))
6194
- return Pr(e, se[t], !1, a, n, s);
6221
+ }, Vr = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "\\surd"], L1 = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱"], Ur = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], se = [0, 1.2, 1.8, 2.4, 3], P1 = function(e, t, a, n, s) {
6222
+ if (e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle"), q.contains(Vr, e) || q.contains(Ur, e))
6223
+ return Pr(e, t, !1, a, n, s);
6224
+ if (q.contains(L1, e))
6225
+ return Gr(e, se[t], !1, a, n, s);
6195
6226
  throw new M("Illegal delimiter: '" + e + "'");
6196
- }, L1 = [{
6227
+ }, G1 = [{
6197
6228
  type: "small",
6198
6229
  style: R.SCRIPTSCRIPT
6199
6230
  }, {
@@ -6214,7 +6245,7 @@ var ne = function(e, t, a) {
6214
6245
  }, {
6215
6246
  type: "large",
6216
6247
  size: 4
6217
- }], P1 = [{
6248
+ }], V1 = [{
6218
6249
  type: "small",
6219
6250
  style: R.SCRIPTSCRIPT
6220
6251
  }, {
@@ -6225,7 +6256,7 @@ var ne = function(e, t, a) {
6225
6256
  style: R.TEXT
6226
6257
  }, {
6227
6258
  type: "stack"
6228
- }], Ur = [{
6259
+ }], Yr = [{
6229
6260
  type: "small",
6230
6261
  style: R.SCRIPTSCRIPT
6231
6262
  }, {
@@ -6248,7 +6279,7 @@ var ne = function(e, t, a) {
6248
6279
  size: 4
6249
6280
  }, {
6250
6281
  type: "stack"
6251
- }], G1 = function(e) {
6282
+ }], U1 = function(e) {
6252
6283
  if (e.type === "small")
6253
6284
  return "Main-Regular";
6254
6285
  if (e.type === "large")
@@ -6256,9 +6287,9 @@ var ne = function(e, t, a) {
6256
6287
  if (e.type === "stack")
6257
6288
  return "Size4-Regular";
6258
6289
  throw new Error("Add support for delim type '" + e.type + "' here.");
6259
- }, Yr = function(e, t, a, n) {
6290
+ }, Xr = function(e, t, a, n) {
6260
6291
  for (var s = Math.min(2, 3 - n.style.size), o = s; o < a.length && a[o].type !== "stack"; o++) {
6261
- var h = ne(e, G1(a[o]), "math"), c = h.height + h.depth;
6292
+ var h = ie(e, U1(a[o]), "math"), c = h.height + h.depth;
6262
6293
  if (a[o].type === "small") {
6263
6294
  var p = n.havingBaseStyle(a[o].style);
6264
6295
  c *= p.sizeMultiplier;
@@ -6267,13 +6298,13 @@ var ne = function(e, t, a) {
6267
6298
  return a[o];
6268
6299
  }
6269
6300
  return a[a.length - 1];
6270
- }, Xr = function(e, t, a, n, s, o) {
6301
+ }, $r = function(e, t, a, n, s, o) {
6271
6302
  e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle");
6272
6303
  var h;
6273
- q.contains(Vr, e) ? h = L1 : q.contains(Gr, e) ? h = Ur : h = P1;
6274
- var c = Yr(e, t, h, n);
6275
- return c.type === "small" ? q1(e, c.style, a, n, s, o) : c.type === "large" ? Lr(e, c.size, a, n, s, o) : Pr(e, t, a, n, s, o);
6276
- }, V1 = function(e, t, a, n, s, o) {
6304
+ q.contains(Ur, e) ? h = G1 : q.contains(Vr, e) ? h = Yr : h = V1;
6305
+ var c = Xr(e, t, h, n);
6306
+ return c.type === "small" ? R1(e, c.style, a, n, s, o) : c.type === "large" ? Pr(e, c.size, a, n, s, o) : Gr(e, t, a, n, s, o);
6307
+ }, Y1 = function(e, t, a, n, s, o) {
6277
6308
  var h = n.fontMetrics().axisHeight * n.sizeMultiplier, c = 901, p = 5 / n.fontMetrics().ptPerEm, g = Math.max(t - h, a + h), y = Math.max(
6278
6309
  // In real TeX, calculations are done using integral values which are
6279
6310
  // 65536 per pt, or 655360 per em. So, the division here truncates in
@@ -6287,14 +6318,14 @@ var ne = function(e, t, a) {
6287
6318
  g / 500 * c,
6288
6319
  2 * g - p
6289
6320
  );
6290
- return Xr(e, y, !0, n, s, o);
6291
- }, B0 = {
6292
- sqrtImage: O1,
6293
- sizedDelim: F1,
6321
+ return $r(e, y, !0, n, s, o);
6322
+ }, D0 = {
6323
+ sqrtImage: H1,
6324
+ sizedDelim: P1,
6294
6325
  sizeToMaxHeight: se,
6295
- customSizedDelim: Xr,
6296
- leftRightDelim: V1
6297
- }, Zt = {
6326
+ customSizedDelim: $r,
6327
+ leftRightDelim: Y1
6328
+ }, Kt = {
6298
6329
  "\\bigl": {
6299
6330
  mclass: "mopen",
6300
6331
  size: 1
@@ -6359,10 +6390,10 @@ var ne = function(e, t, a) {
6359
6390
  mclass: "mord",
6360
6391
  size: 4
6361
6392
  }
6362
- }, U1 = ["(", "\\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", "."];
6363
- function Oe(r, e) {
6393
+ }, X1 = ["(", "\\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", "."];
6394
+ function Fe(r, e) {
6364
6395
  var t = Re(r);
6365
- if (t && q.contains(U1, t.text))
6396
+ if (t && q.contains(X1, t.text))
6366
6397
  return t;
6367
6398
  throw t ? new M("Invalid delimiter '" + t.text + "' after '" + e.funcName + "'", r) : new M("Invalid delimiter type '" + r.type + "'", r);
6368
6399
  }
@@ -6374,26 +6405,26 @@ B({
6374
6405
  argTypes: ["primitive"]
6375
6406
  },
6376
6407
  handler: (r, e) => {
6377
- var t = Oe(e[0], r);
6408
+ var t = Fe(e[0], r);
6378
6409
  return {
6379
6410
  type: "delimsizing",
6380
6411
  mode: r.parser.mode,
6381
- size: Zt[r.funcName].size,
6382
- mclass: Zt[r.funcName].mclass,
6412
+ size: Kt[r.funcName].size,
6413
+ mclass: Kt[r.funcName].mclass,
6383
6414
  delim: t.text
6384
6415
  };
6385
6416
  },
6386
- htmlBuilder: (r, e) => r.delim === "." ? b.makeSpan([r.mclass]) : B0.sizedDelim(r.delim, r.size, e, r.mode, [r.mclass]),
6417
+ htmlBuilder: (r, e) => r.delim === "." ? b.makeSpan([r.mclass]) : D0.sizedDelim(r.delim, r.size, e, r.mode, [r.mclass]),
6387
6418
  mathmlBuilder: (r) => {
6388
6419
  var e = [];
6389
6420
  r.delim !== "." && e.push(v0(r.delim, r.mode));
6390
6421
  var t = new S.MathNode("mo", e);
6391
6422
  r.mclass === "mopen" || r.mclass === "mclose" ? t.setAttribute("fence", "true") : t.setAttribute("fence", "false"), t.setAttribute("stretchy", "true");
6392
- var a = A(B0.sizeToMaxHeight[r.size]);
6423
+ var a = A(D0.sizeToMaxHeight[r.size]);
6393
6424
  return t.setAttribute("minsize", a), t.setAttribute("maxsize", a), t;
6394
6425
  }
6395
6426
  });
6396
- function Kt(r) {
6427
+ function Jt(r) {
6397
6428
  if (!r.body)
6398
6429
  throw new Error("Bug: The leftright ParseNode wasn't fully parsed.");
6399
6430
  }
@@ -6411,7 +6442,7 @@ B({
6411
6442
  return {
6412
6443
  type: "leftright-right",
6413
6444
  mode: r.parser.mode,
6414
- delim: Oe(e[0], r).text,
6445
+ delim: Fe(e[0], r).text,
6415
6446
  color: t
6416
6447
  // undefined if not set via \color
6417
6448
  };
@@ -6425,11 +6456,11 @@ B({
6425
6456
  primitive: !0
6426
6457
  },
6427
6458
  handler: (r, e) => {
6428
- var t = Oe(e[0], r), a = r.parser;
6459
+ var t = Fe(e[0], r), a = r.parser;
6429
6460
  ++a.leftrightDepth;
6430
6461
  var n = a.parseExpression(!1);
6431
6462
  --a.leftrightDepth, a.expect("\\right", !1);
6432
- var s = F(a.parseFunction(), "leftright-right");
6463
+ var s = H(a.parseFunction(), "leftright-right");
6433
6464
  return {
6434
6465
  type: "leftright",
6435
6466
  mode: a.mode,
@@ -6440,27 +6471,27 @@ B({
6440
6471
  };
6441
6472
  },
6442
6473
  htmlBuilder: (r, e) => {
6443
- Kt(r);
6474
+ Jt(r);
6444
6475
  for (var t = t0(r.body, e, !0, ["mopen", "mclose"]), a = 0, n = 0, s = !1, o = 0; o < t.length; o++)
6445
6476
  t[o].isMiddle ? s = !0 : (a = Math.max(t[o].height, a), n = Math.max(t[o].depth, n));
6446
6477
  a *= e.sizeMultiplier, n *= e.sizeMultiplier;
6447
6478
  var h;
6448
- if (r.left === "." ? h = oe(e, ["mopen"]) : h = B0.leftRightDelim(r.left, a, n, e, r.mode, ["mopen"]), t.unshift(h), s)
6479
+ if (r.left === "." ? h = oe(e, ["mopen"]) : h = D0.leftRightDelim(r.left, a, n, e, r.mode, ["mopen"]), t.unshift(h), s)
6449
6480
  for (var c = 1; c < t.length; c++) {
6450
6481
  var p = t[c], g = p.isMiddle;
6451
- g && (t[c] = B0.leftRightDelim(g.delim, a, n, g.options, r.mode, []));
6482
+ g && (t[c] = D0.leftRightDelim(g.delim, a, n, g.options, r.mode, []));
6452
6483
  }
6453
6484
  var y;
6454
6485
  if (r.right === ".")
6455
6486
  y = oe(e, ["mclose"]);
6456
6487
  else {
6457
6488
  var w = r.rightColor ? e.withColor(r.rightColor) : e;
6458
- y = B0.leftRightDelim(r.right, a, n, w, r.mode, ["mclose"]);
6489
+ y = D0.leftRightDelim(r.right, a, n, w, r.mode, ["mclose"]);
6459
6490
  }
6460
6491
  return t.push(y), b.makeSpan(["minner"], t, e);
6461
6492
  },
6462
6493
  mathmlBuilder: (r, e) => {
6463
- Kt(r);
6494
+ Jt(r);
6464
6495
  var t = o0(r.body, e);
6465
6496
  if (r.left !== ".") {
6466
6497
  var a = new S.MathNode("mo", [v0(r.left, r.mode)]);
@@ -6470,7 +6501,7 @@ B({
6470
6501
  var n = new S.MathNode("mo", [v0(r.right, r.mode)]);
6471
6502
  n.setAttribute("fence", "true"), r.rightColor && n.setAttribute("mathcolor", r.rightColor), t.push(n);
6472
6503
  }
6473
- return gt(t);
6504
+ return bt(t);
6474
6505
  }
6475
6506
  });
6476
6507
  B({
@@ -6481,7 +6512,7 @@ B({
6481
6512
  primitive: !0
6482
6513
  },
6483
6514
  handler: (r, e) => {
6484
- var t = Oe(e[0], r);
6515
+ var t = Fe(e[0], r);
6485
6516
  if (!r.parser.leftrightDepth)
6486
6517
  throw new M("\\middle without preceding \\left", t);
6487
6518
  return {
@@ -6495,7 +6526,7 @@ B({
6495
6526
  if (r.delim === ".")
6496
6527
  t = oe(e, []);
6497
6528
  else {
6498
- t = B0.sizedDelim(r.delim, 1, e, r.mode, []);
6529
+ t = D0.sizedDelim(r.delim, 1, e, r.mode, []);
6499
6530
  var a = {
6500
6531
  delim: r.delim,
6501
6532
  options: e
@@ -6509,7 +6540,7 @@ B({
6509
6540
  return a.setAttribute("fence", "true"), a.setAttribute("lspace", "0.05em"), a.setAttribute("rspace", "0.05em"), a;
6510
6541
  }
6511
6542
  });
6512
- var kt = (r, e) => {
6543
+ var St = (r, e) => {
6513
6544
  var t = b.wrapFragment(P(r.body, e), e), a = r.label.slice(1), n = e.sizeMultiplier, s, o = 0, h = q.isCharacterBox(r.body);
6514
6545
  if (a === "sout")
6515
6546
  s = b.makeSpan(["stretchy", "sout"]), s.height = e.fontMetrics().defaultRuleThickness / n, o = -0.5 * e.fontMetrics().xHeight;
@@ -6524,7 +6555,7 @@ var kt = (r, e) => {
6524
6555
  n = n / g.sizeMultiplier;
6525
6556
  var y = t.height + t.depth + c + p;
6526
6557
  t.style.paddingLeft = A(y / 2 + c);
6527
- var w = Math.floor(1e3 * y * n), x = Oa(w), z = new D0([new P0("phase", x)], {
6558
+ var w = Math.floor(1e3 * y * n), x = Oa(w), z = new C0([new G0("phase", x)], {
6528
6559
  width: "400em",
6529
6560
  height: A(w / 1e3),
6530
6561
  viewBox: "0 0 400000 " + w,
@@ -6539,11 +6570,11 @@ var kt = (r, e) => {
6539
6570
  // default
6540
6571
  e.minRuleThickness
6541
6572
  // User override.
6542
- ), T = e.fontMetrics().fboxsep + (a === "colorbox" ? 0 : N), C = T) : a === "angl" ? (N = Math.max(e.fontMetrics().defaultRuleThickness, e.minRuleThickness), T = 4 * N, C = Math.max(0, 0.25 - t.depth)) : (T = h ? 0.2 : 0, C = T), s = N0.encloseSpan(t, a, T, C, e), /fbox|boxed|fcolorbox/.test(a) ? (s.style.borderStyle = "solid", s.style.borderWidth = A(N)) : a === "angl" && N !== 0.049 && (s.style.borderTopWidth = A(N), s.style.borderRightWidth = A(N)), o = t.depth + C, r.backgroundColor && (s.style.backgroundColor = r.backgroundColor, r.borderColor && (s.style.borderColor = r.borderColor));
6573
+ ), T = e.fontMetrics().fboxsep + (a === "colorbox" ? 0 : N), C = T) : a === "angl" ? (N = Math.max(e.fontMetrics().defaultRuleThickness, e.minRuleThickness), T = 4 * N, C = Math.max(0, 0.25 - t.depth)) : (T = h ? 0.2 : 0, C = T), s = q0.encloseSpan(t, a, T, C, e), /fbox|boxed|fcolorbox/.test(a) ? (s.style.borderStyle = "solid", s.style.borderWidth = A(N)) : a === "angl" && N !== 0.049 && (s.style.borderTopWidth = A(N), s.style.borderRightWidth = A(N)), o = t.depth + C, r.backgroundColor && (s.style.backgroundColor = r.backgroundColor, r.borderColor && (s.style.borderColor = r.borderColor));
6543
6574
  }
6544
- var O;
6575
+ var F;
6545
6576
  if (r.backgroundColor)
6546
- O = b.makeVList({
6577
+ F = b.makeVList({
6547
6578
  positionType: "individualShift",
6548
6579
  children: [
6549
6580
  // Put the color background behind inner;
@@ -6560,8 +6591,8 @@ var kt = (r, e) => {
6560
6591
  ]
6561
6592
  }, e);
6562
6593
  else {
6563
- var H = /cancel|phase/.test(a) ? ["svg-align"] : [];
6564
- O = b.makeVList({
6594
+ var O = /cancel|phase/.test(a) ? ["svg-align"] : [];
6595
+ F = b.makeVList({
6565
6596
  positionType: "individualShift",
6566
6597
  children: [
6567
6598
  // Write the \cancel stroke on top of inner.
@@ -6574,13 +6605,13 @@ var kt = (r, e) => {
6574
6605
  type: "elem",
6575
6606
  elem: s,
6576
6607
  shift: o,
6577
- wrapperClasses: H
6608
+ wrapperClasses: O
6578
6609
  }
6579
6610
  ]
6580
6611
  }, e);
6581
6612
  }
6582
- return /cancel/.test(a) && (O.height = t.height, O.depth = t.depth), /cancel/.test(a) && !h ? b.makeSpan(["mord", "cancel-lap"], [O], e) : b.makeSpan(["mord"], [O], e);
6583
- }, St = (r, e) => {
6613
+ return /cancel/.test(a) && (F.height = t.height, F.depth = t.depth), /cancel/.test(a) && !h ? b.makeSpan(["mord", "cancel-lap"], [F], e) : b.makeSpan(["mord"], [F], e);
6614
+ }, Mt = (r, e) => {
6584
6615
  var t = 0, a = new S.MathNode(r.label.indexOf("colorbox") > -1 ? "mpadded" : "menclose", [X(r.body, e)]);
6585
6616
  switch (r.label) {
6586
6617
  case "\\cancel":
@@ -6631,7 +6662,7 @@ B({
6631
6662
  var {
6632
6663
  parser: a,
6633
6664
  funcName: n
6634
- } = r, s = F(e[0], "color-token").color, o = e[1];
6665
+ } = r, s = H(e[0], "color-token").color, o = e[1];
6635
6666
  return {
6636
6667
  type: "enclose",
6637
6668
  mode: a.mode,
@@ -6640,8 +6671,8 @@ B({
6640
6671
  body: o
6641
6672
  };
6642
6673
  },
6643
- htmlBuilder: kt,
6644
- mathmlBuilder: St
6674
+ htmlBuilder: St,
6675
+ mathmlBuilder: Mt
6645
6676
  });
6646
6677
  B({
6647
6678
  type: "enclose",
@@ -6655,7 +6686,7 @@ B({
6655
6686
  var {
6656
6687
  parser: a,
6657
6688
  funcName: n
6658
- } = r, s = F(e[0], "color-token").color, o = F(e[1], "color-token").color, h = e[2];
6689
+ } = r, s = H(e[0], "color-token").color, o = H(e[1], "color-token").color, h = e[2];
6659
6690
  return {
6660
6691
  type: "enclose",
6661
6692
  mode: a.mode,
@@ -6665,8 +6696,8 @@ B({
6665
6696
  body: h
6666
6697
  };
6667
6698
  },
6668
- htmlBuilder: kt,
6669
- mathmlBuilder: St
6699
+ htmlBuilder: St,
6700
+ mathmlBuilder: Mt
6670
6701
  });
6671
6702
  B({
6672
6703
  type: "enclose",
@@ -6706,8 +6737,8 @@ B({
6706
6737
  body: n
6707
6738
  };
6708
6739
  },
6709
- htmlBuilder: kt,
6710
- mathmlBuilder: St
6740
+ htmlBuilder: St,
6741
+ mathmlBuilder: Mt
6711
6742
  });
6712
6743
  B({
6713
6744
  type: "enclose",
@@ -6729,8 +6760,8 @@ B({
6729
6760
  };
6730
6761
  }
6731
6762
  });
6732
- var $r = {};
6733
- function w0(r) {
6763
+ var Wr = {};
6764
+ function k0(r) {
6734
6765
  for (var {
6735
6766
  type: e,
6736
6767
  names: t,
@@ -6745,14 +6776,14 @@ function w0(r) {
6745
6776
  numOptionalArgs: 0,
6746
6777
  handler: n
6747
6778
  }, c = 0; c < t.length; ++c)
6748
- $r[t[c]] = h;
6779
+ Wr[t[c]] = h;
6749
6780
  s && (De[e] = s), o && (Ce[e] = o);
6750
6781
  }
6751
- var Wr = {};
6782
+ var jr = {};
6752
6783
  function m(r, e) {
6753
- Wr[r] = e;
6784
+ jr[r] = e;
6754
6785
  }
6755
- function Jt(r) {
6786
+ function Qt(r) {
6756
6787
  var e = [];
6757
6788
  r.consumeSpaces();
6758
6789
  var t = r.fetch().text;
@@ -6760,16 +6791,16 @@ function Jt(r) {
6760
6791
  r.consume(), e.push(t === "\\hdashline"), r.consumeSpaces(), t = r.fetch().text;
6761
6792
  return e;
6762
6793
  }
6763
- var He = (r) => {
6794
+ var Oe = (r) => {
6764
6795
  var e = r.parser.settings;
6765
6796
  if (!e.displayMode)
6766
6797
  throw new M("{" + r.envName + "} can be used only in display mode.");
6767
6798
  };
6768
- function Mt(r) {
6799
+ function zt(r) {
6769
6800
  if (r.indexOf("ed") === -1)
6770
6801
  return r.indexOf("*") === -1;
6771
6802
  }
6772
- function V0(r, e, t) {
6803
+ function U0(r, e, t) {
6773
6804
  var {
6774
6805
  hskipBeforeAndAfter: a,
6775
6806
  addJot: n,
@@ -6790,14 +6821,14 @@ function V0(r, e, t) {
6790
6821
  throw new M("Invalid \\arraystretch: " + x);
6791
6822
  }
6792
6823
  r.gullet.beginGroup();
6793
- var z = [], T = [z], C = [], N = [], O = c != null ? [] : void 0;
6794
- function H() {
6824
+ var z = [], T = [z], C = [], N = [], F = c != null ? [] : void 0;
6825
+ function O() {
6795
6826
  c && r.gullet.macros.set("\\@eqnsw", "1", !0);
6796
6827
  }
6797
6828
  function V() {
6798
- O && (r.gullet.macros.get("\\df@tag") ? (O.push(r.subparse([new f0("\\df@tag")])), r.gullet.macros.set("\\df@tag", void 0, !0)) : O.push(!!c && r.gullet.macros.get("\\@eqnsw") === "1"));
6829
+ F && (r.gullet.macros.get("\\df@tag") ? (F.push(r.subparse([new f0("\\df@tag")])), r.gullet.macros.set("\\df@tag", void 0, !0)) : F.push(!!c && r.gullet.macros.get("\\@eqnsw") === "1"));
6799
6830
  }
6800
- for (H(), N.push(Jt(r)); ; ) {
6831
+ for (O(), N.push(Qt(r)); ; ) {
6801
6832
  var L = r.parseExpression(!1, p ? "\\end" : "\\\\");
6802
6833
  r.gullet.endGroup(), r.gullet.beginGroup(), L = {
6803
6834
  type: "ordgroup",
@@ -6823,7 +6854,7 @@ function V0(r, e, t) {
6823
6854
  } else if (U === "\\\\") {
6824
6855
  r.consume();
6825
6856
  var G = void 0;
6826
- r.gullet.future().text !== " " && (G = r.parseSizeGroup(!0)), C.push(G ? G.value : null), V(), N.push(Jt(r)), z = [], T.push(z), H();
6857
+ r.gullet.future().text !== " " && (G = r.parseSizeGroup(!0)), C.push(G ? G.value : null), V(), N.push(Qt(r)), z = [], T.push(z), O();
6827
6858
  } else
6828
6859
  throw new M("Expected & or \\\\ or \\cr or \\end", r.nextToken);
6829
6860
  }
@@ -6838,14 +6869,14 @@ function V0(r, e, t) {
6838
6869
  hskipBeforeAndAfter: a,
6839
6870
  hLinesBeforeRow: N,
6840
6871
  colSeparationType: h,
6841
- tags: O,
6872
+ tags: F,
6842
6873
  leqno: w
6843
6874
  };
6844
6875
  }
6845
- function zt(r) {
6876
+ function At(r) {
6846
6877
  return r.slice(0, 1) === "d" ? "display" : "text";
6847
6878
  }
6848
- var k0 = function(e, t) {
6879
+ var S0 = function(e, t) {
6849
6880
  var a, n, s = e.body.length, o = e.hLinesBeforeRow, h = 0, c = new Array(s), p = [], g = Math.max(
6850
6881
  // From LaTeX \showthe\arrayrulewidth. Equals 0.04 em.
6851
6882
  t.fontMetrics().arrayRuleWidth,
@@ -6859,88 +6890,88 @@ var k0 = function(e, t) {
6859
6890
  var z = e.colSeparationType === "CD" ? K({
6860
6891
  number: 3,
6861
6892
  unit: "ex"
6862
- }, t) : 12 * y, T = 3 * y, C = e.arraystretch * z, N = 0.7 * C, O = 0.3 * C, H = 0;
6893
+ }, t) : 12 * y, T = 3 * y, C = e.arraystretch * z, N = 0.7 * C, F = 0.3 * C, O = 0;
6863
6894
  function V(fe) {
6864
6895
  for (var pe = 0; pe < fe.length; ++pe)
6865
- pe > 0 && (H += 0.25), p.push({
6866
- pos: H,
6896
+ pe > 0 && (O += 0.25), p.push({
6897
+ pos: O,
6867
6898
  isDashed: fe[pe]
6868
6899
  });
6869
6900
  }
6870
6901
  for (V(o[0]), a = 0; a < e.body.length; ++a) {
6871
- var L = e.body[a], U = N, G = O;
6902
+ var L = e.body[a], U = N, G = F;
6872
6903
  h < L.length && (h = L.length);
6873
6904
  var j = new Array(L.length);
6874
6905
  for (n = 0; n < L.length; ++n) {
6875
6906
  var Y = P(L[n], t);
6876
6907
  G < Y.depth && (G = Y.depth), U < Y.height && (U = Y.height), j[n] = Y;
6877
6908
  }
6878
- var M0 = e.rowGaps[a], r0 = 0;
6879
- M0 && (r0 = K(M0, t), r0 > 0 && (r0 += O, G < r0 && (G = r0), r0 = 0)), e.addJot && (G += T), j.height = U, j.depth = G, H += U, j.pos = H, H += G + r0, c[a] = j, V(o[a + 1]);
6909
+ var z0 = e.rowGaps[a], r0 = 0;
6910
+ z0 && (r0 = K(z0, t), r0 > 0 && (r0 += F, G < r0 && (G = r0), r0 = 0)), e.addJot && (G += T), j.height = U, j.depth = G, O += U, j.pos = O, O += G + r0, c[a] = j, V(o[a + 1]);
6880
6911
  }
6881
- var e0 = H / 2 + t.fontMetrics().axisHeight, U0 = e.cols || [], s0 = [], g0, E0, W0 = [];
6912
+ var e0 = O / 2 + t.fontMetrics().axisHeight, Y0 = e.cols || [], s0 = [], g0, R0, j0 = [];
6882
6913
  if (e.tags && e.tags.some((fe) => fe))
6883
6914
  for (a = 0; a < s; ++a) {
6884
- var j0 = c[a], Le = j0.pos - e0, R0 = e.tags[a], I0 = void 0;
6885
- R0 === !0 ? I0 = b.makeSpan(["eqn-num"], [], t) : R0 === !1 ? I0 = b.makeSpan([], [], t) : I0 = b.makeSpan([], t0(R0, t, !0), t), I0.depth = j0.depth, I0.height = j0.height, W0.push({
6915
+ var Z0 = c[a], Le = Z0.pos - e0, I0 = e.tags[a], F0 = void 0;
6916
+ I0 === !0 ? F0 = b.makeSpan(["eqn-num"], [], t) : I0 === !1 ? F0 = b.makeSpan([], [], t) : F0 = b.makeSpan([], t0(I0, t, !0), t), F0.depth = Z0.depth, F0.height = Z0.height, j0.push({
6886
6917
  type: "elem",
6887
- elem: I0,
6918
+ elem: F0,
6888
6919
  shift: Le
6889
6920
  });
6890
6921
  }
6891
6922
  for (
6892
- n = 0, E0 = 0;
6923
+ n = 0, R0 = 0;
6893
6924
  // Continue while either there are more columns or more column
6894
6925
  // descriptions, so trailing separators don't get lost.
6895
- n < h || E0 < U0.length;
6896
- ++n, ++E0
6926
+ n < h || R0 < Y0.length;
6927
+ ++n, ++R0
6897
6928
  ) {
6898
- for (var m0 = U0[E0] || {}, ae = !0; m0.type === "separator"; ) {
6899
- if (ae || (g0 = b.makeSpan(["arraycolsep"], []), g0.style.width = A(t.fontMetrics().doubleRuleSep), s0.push(g0)), m0.separator === "|" || m0.separator === ":") {
6900
- var Pe = m0.separator === "|" ? "solid" : "dashed", Z0 = b.makeSpan(["vertical-separator"], [], t);
6901
- Z0.style.height = A(H), Z0.style.borderRightWidth = A(g), Z0.style.borderRightStyle = Pe, Z0.style.margin = "0 " + A(-g / 2);
6902
- var qt = H - e0;
6903
- qt && (Z0.style.verticalAlign = A(-qt)), s0.push(Z0);
6929
+ for (var c0 = Y0[R0] || {}, ne = !0; c0.type === "separator"; ) {
6930
+ if (ne || (g0 = b.makeSpan(["arraycolsep"], []), g0.style.width = A(t.fontMetrics().doubleRuleSep), s0.push(g0)), c0.separator === "|" || c0.separator === ":") {
6931
+ var Pe = c0.separator === "|" ? "solid" : "dashed", K0 = b.makeSpan(["vertical-separator"], [], t);
6932
+ K0.style.height = A(O), K0.style.borderRightWidth = A(g), K0.style.borderRightStyle = Pe, K0.style.margin = "0 " + A(-g / 2);
6933
+ var Et = O - e0;
6934
+ Et && (K0.style.verticalAlign = A(-Et)), s0.push(K0);
6904
6935
  } else
6905
- throw new M("Invalid separator type: " + m0.separator);
6906
- E0++, m0 = U0[E0] || {}, ae = !1;
6936
+ throw new M("Invalid separator type: " + c0.separator);
6937
+ R0++, c0 = Y0[R0] || {}, ne = !1;
6907
6938
  }
6908
6939
  if (!(n >= h)) {
6909
- var K0 = void 0;
6910
- (n > 0 || e.hskipBeforeAndAfter) && (K0 = q.deflt(m0.pregap, w), K0 !== 0 && (g0 = b.makeSpan(["arraycolsep"], []), g0.style.width = A(K0), s0.push(g0)));
6911
- var J0 = [];
6940
+ var J0 = void 0;
6941
+ (n > 0 || e.hskipBeforeAndAfter) && (J0 = q.deflt(c0.pregap, w), J0 !== 0 && (g0 = b.makeSpan(["arraycolsep"], []), g0.style.width = A(J0), s0.push(g0)));
6942
+ var Q0 = [];
6912
6943
  for (a = 0; a < s; ++a) {
6913
6944
  var ce = c[a], de = ce[n];
6914
6945
  if (de) {
6915
- var ha = ce.pos - e0;
6916
- de.depth = ce.depth, de.height = ce.height, J0.push({
6946
+ var ma = ce.pos - e0;
6947
+ de.depth = ce.depth, de.height = ce.height, Q0.push({
6917
6948
  type: "elem",
6918
6949
  elem: de,
6919
- shift: ha
6950
+ shift: ma
6920
6951
  });
6921
6952
  }
6922
6953
  }
6923
- J0 = b.makeVList({
6954
+ Q0 = b.makeVList({
6924
6955
  positionType: "individualShift",
6925
- children: J0
6926
- }, t), J0 = b.makeSpan(["col-align-" + (m0.align || "c")], [J0]), s0.push(J0), (n < h - 1 || e.hskipBeforeAndAfter) && (K0 = q.deflt(m0.postgap, w), K0 !== 0 && (g0 = b.makeSpan(["arraycolsep"], []), g0.style.width = A(K0), s0.push(g0)));
6956
+ children: Q0
6957
+ }, t), Q0 = b.makeSpan(["col-align-" + (c0.align || "c")], [Q0]), s0.push(Q0), (n < h - 1 || e.hskipBeforeAndAfter) && (J0 = q.deflt(c0.postgap, w), J0 !== 0 && (g0 = b.makeSpan(["arraycolsep"], []), g0.style.width = A(J0), s0.push(g0)));
6927
6958
  }
6928
6959
  }
6929
6960
  if (c = b.makeSpan(["mtable"], s0), p.length > 0) {
6930
- for (var ma = b.makeLineSpan("hline", t, g), ca = b.makeLineSpan("hdashline", t, g), Ge = [{
6961
+ for (var ca = b.makeLineSpan("hline", t, g), da = b.makeLineSpan("hdashline", t, g), Ge = [{
6931
6962
  type: "elem",
6932
6963
  elem: c,
6933
6964
  shift: 0
6934
6965
  }]; p.length > 0; ) {
6935
- var Et = p.pop(), Rt = Et.pos - e0;
6936
- Et.isDashed ? Ge.push({
6966
+ var Rt = p.pop(), It = Rt.pos - e0;
6967
+ Rt.isDashed ? Ge.push({
6937
6968
  type: "elem",
6938
- elem: ca,
6939
- shift: Rt
6969
+ elem: da,
6970
+ shift: It
6940
6971
  }) : Ge.push({
6941
6972
  type: "elem",
6942
- elem: ma,
6943
- shift: Rt
6973
+ elem: ca,
6974
+ shift: It
6944
6975
  });
6945
6976
  }
6946
6977
  c = b.makeVList({
@@ -6948,18 +6979,18 @@ var k0 = function(e, t) {
6948
6979
  children: Ge
6949
6980
  }, t);
6950
6981
  }
6951
- if (W0.length === 0)
6982
+ if (j0.length === 0)
6952
6983
  return b.makeSpan(["mord"], [c], t);
6953
6984
  var Ve = b.makeVList({
6954
6985
  positionType: "individualShift",
6955
- children: W0
6986
+ children: j0
6956
6987
  }, t);
6957
6988
  return Ve = b.makeSpan(["tag"], [Ve], t), b.makeFragment([c, Ve]);
6958
- }, Y1 = {
6989
+ }, $1 = {
6959
6990
  c: "center ",
6960
6991
  l: "left ",
6961
6992
  r: "right "
6962
- }, S0 = function(e, t) {
6993
+ }, M0 = function(e, t) {
6963
6994
  for (var a = [], n = new S.MathNode("mtd", [], ["mtr-glue"]), s = new S.MathNode("mtd", [], ["mml-eqn-num"]), o = 0; o < e.body.length; o++) {
6964
6995
  for (var h = e.body[o], c = [], p = 0; p < h.length; p++)
6965
6996
  c.push(new S.MathNode("mtd", [X(h[p], t)]));
@@ -6969,10 +7000,10 @@ var k0 = function(e, t) {
6969
7000
  g.setAttribute("rowspacing", A(y));
6970
7001
  var w = "", x = "";
6971
7002
  if (e.cols && e.cols.length > 0) {
6972
- var z = e.cols, T = "", C = !1, N = 0, O = z.length;
6973
- z[0].type === "separator" && (w += "top ", N = 1), z[z.length - 1].type === "separator" && (w += "bottom ", O -= 1);
6974
- for (var H = N; H < O; H++)
6975
- z[H].type === "align" ? (x += Y1[z[H].align], C && (T += "none "), C = !0) : z[H].type === "separator" && C && (T += z[H].separator === "|" ? "solid " : "dashed ", C = !1);
7003
+ var z = e.cols, T = "", C = !1, N = 0, F = z.length;
7004
+ z[0].type === "separator" && (w += "top ", N = 1), z[z.length - 1].type === "separator" && (w += "bottom ", F -= 1);
7005
+ for (var O = N; O < F; O++)
7006
+ z[O].type === "align" ? (x += $1[z[O].align], C && (T += "none "), C = !0) : z[O].type === "separator" && C && (T += z[O].separator === "|" ? "solid " : "dashed ", C = !1);
6976
7007
  g.setAttribute("columnalign", x.trim()), /[sd]/.test(T) && g.setAttribute("columnlines", T.trim());
6977
7008
  }
6978
7009
  if (e.colSeparationType === "align") {
@@ -6986,12 +7017,12 @@ var k0 = function(e, t) {
6986
7017
  for (var Y = 1; Y < j.length - 1; Y++)
6987
7018
  G += j[Y].length === 0 ? "none " : j[Y][0] ? "dashed " : "solid ";
6988
7019
  return /[sd]/.test(G) && g.setAttribute("rowlines", G.trim()), w !== "" && (g = new S.MathNode("menclose", [g]), g.setAttribute("notation", w.trim())), e.arraystretch && e.arraystretch < 1 && (g = new S.MathNode("mstyle", [g]), g.setAttribute("scriptlevel", "1")), g;
6989
- }, jr = function(e, t) {
6990
- e.envName.indexOf("ed") === -1 && He(e);
6991
- var a = [], n = e.envName.indexOf("at") > -1 ? "alignat" : "align", s = e.envName === "split", o = V0(e.parser, {
7020
+ }, Zr = function(e, t) {
7021
+ e.envName.indexOf("ed") === -1 && Oe(e);
7022
+ var a = [], n = e.envName.indexOf("at") > -1 ? "alignat" : "align", s = e.envName === "split", o = U0(e.parser, {
6992
7023
  cols: a,
6993
7024
  addJot: !0,
6994
- autoTag: s ? void 0 : Mt(e.envName),
7025
+ autoTag: s ? void 0 : zt(e.envName),
6995
7026
  emptySingleRow: !0,
6996
7027
  colSeparationType: n,
6997
7028
  maxNumCols: s ? 2 : void 0,
@@ -7003,15 +7034,15 @@ var k0 = function(e, t) {
7003
7034
  };
7004
7035
  if (t[0] && t[0].type === "ordgroup") {
7005
7036
  for (var g = "", y = 0; y < t[0].body.length; y++) {
7006
- var w = F(t[0].body[y], "textord");
7037
+ var w = H(t[0].body[y], "textord");
7007
7038
  g += w.text;
7008
7039
  }
7009
7040
  h = Number(g), c = h * 2;
7010
7041
  }
7011
7042
  var x = !c;
7012
7043
  o.body.forEach(function(N) {
7013
- for (var O = 1; O < N.length; O += 2) {
7014
- var H = F(N[O], "styling"), V = F(H.body[0], "ordgroup");
7044
+ for (var F = 1; F < N.length; F += 2) {
7045
+ var O = H(N[F], "styling"), V = H(O.body[0], "ordgroup");
7015
7046
  V.body.unshift(p);
7016
7047
  }
7017
7048
  if (x)
@@ -7033,15 +7064,15 @@ var k0 = function(e, t) {
7033
7064
  }
7034
7065
  return o.colSeparationType = x ? "align" : "alignat", o;
7035
7066
  };
7036
- w0({
7067
+ k0({
7037
7068
  type: "array",
7038
7069
  names: ["array", "darray"],
7039
7070
  props: {
7040
7071
  numArgs: 1
7041
7072
  },
7042
7073
  handler(r, e) {
7043
- var t = Re(e[0]), a = t ? [e[0]] : F(e[0], "ordgroup").body, n = a.map(function(o) {
7044
- var h = yt(o), c = h.text;
7074
+ var t = Re(e[0]), a = t ? [e[0]] : H(e[0], "ordgroup").body, n = a.map(function(o) {
7075
+ var h = xt(o), c = h.text;
7045
7076
  if ("lcr".indexOf(c) !== -1)
7046
7077
  return {
7047
7078
  type: "align",
@@ -7064,12 +7095,12 @@ w0({
7064
7095
  // \@preamble in lttab.dtx
7065
7096
  maxNumCols: n.length
7066
7097
  };
7067
- return V0(r.parser, s, zt(r.envName));
7098
+ return U0(r.parser, s, At(r.envName));
7068
7099
  },
7069
- htmlBuilder: k0,
7070
- mathmlBuilder: S0
7100
+ htmlBuilder: S0,
7101
+ mathmlBuilder: M0
7071
7102
  });
7072
- w0({
7103
+ k0({
7073
7104
  type: "array",
7074
7105
  names: ["matrix", "pmatrix", "bmatrix", "Bmatrix", "vmatrix", "Vmatrix", "matrix*", "pmatrix*", "bmatrix*", "Bmatrix*", "vmatrix*", "Vmatrix*"],
7075
7106
  props: {
@@ -7101,7 +7132,7 @@ w0({
7101
7132
  }];
7102
7133
  }
7103
7134
  }
7104
- var s = V0(r.parser, a, zt(r.envName)), o = Math.max(0, ...s.body.map((h) => h.length));
7135
+ var s = U0(r.parser, a, At(r.envName)), o = Math.max(0, ...s.body.map((h) => h.length));
7105
7136
  return s.cols = new Array(o).fill({
7106
7137
  type: "align",
7107
7138
  align: t
@@ -7115,10 +7146,10 @@ w0({
7115
7146
  // \right uninfluenced by \color in array
7116
7147
  } : s;
7117
7148
  },
7118
- htmlBuilder: k0,
7119
- mathmlBuilder: S0
7149
+ htmlBuilder: S0,
7150
+ mathmlBuilder: M0
7120
7151
  });
7121
- w0({
7152
+ k0({
7122
7153
  type: "array",
7123
7154
  names: ["smallmatrix"],
7124
7155
  props: {
@@ -7127,21 +7158,21 @@ w0({
7127
7158
  handler(r) {
7128
7159
  var e = {
7129
7160
  arraystretch: 0.5
7130
- }, t = V0(r.parser, e, "script");
7161
+ }, t = U0(r.parser, e, "script");
7131
7162
  return t.colSeparationType = "small", t;
7132
7163
  },
7133
- htmlBuilder: k0,
7134
- mathmlBuilder: S0
7164
+ htmlBuilder: S0,
7165
+ mathmlBuilder: M0
7135
7166
  });
7136
- w0({
7167
+ k0({
7137
7168
  type: "array",
7138
7169
  names: ["subarray"],
7139
7170
  props: {
7140
7171
  numArgs: 1
7141
7172
  },
7142
7173
  handler(r, e) {
7143
- var t = Re(e[0]), a = t ? [e[0]] : F(e[0], "ordgroup").body, n = a.map(function(o) {
7144
- var h = yt(o), c = h.text;
7174
+ var t = Re(e[0]), a = t ? [e[0]] : H(e[0], "ordgroup").body, n = a.map(function(o) {
7175
+ var h = xt(o), c = h.text;
7145
7176
  if ("lc".indexOf(c) !== -1)
7146
7177
  return {
7147
7178
  type: "align",
@@ -7156,14 +7187,14 @@ w0({
7156
7187
  hskipBeforeAndAfter: !1,
7157
7188
  arraystretch: 0.5
7158
7189
  };
7159
- if (s = V0(r.parser, s, "script"), s.body.length > 0 && s.body[0].length > 1)
7190
+ if (s = U0(r.parser, s, "script"), s.body.length > 0 && s.body[0].length > 1)
7160
7191
  throw new M("{subarray} can contain only one column");
7161
7192
  return s;
7162
7193
  },
7163
- htmlBuilder: k0,
7164
- mathmlBuilder: S0
7194
+ htmlBuilder: S0,
7195
+ mathmlBuilder: M0
7165
7196
  });
7166
- w0({
7197
+ k0({
7167
7198
  type: "array",
7168
7199
  names: ["cases", "dcases", "rcases", "drcases"],
7169
7200
  props: {
@@ -7188,7 +7219,7 @@ w0({
7188
7219
  pregap: 0,
7189
7220
  postgap: 0
7190
7221
  }]
7191
- }, t = V0(r.parser, e, zt(r.envName));
7222
+ }, t = U0(r.parser, e, At(r.envName));
7192
7223
  return {
7193
7224
  type: "leftright",
7194
7225
  mode: r.mode,
@@ -7198,27 +7229,27 @@ w0({
7198
7229
  rightColor: void 0
7199
7230
  };
7200
7231
  },
7201
- htmlBuilder: k0,
7202
- mathmlBuilder: S0
7232
+ htmlBuilder: S0,
7233
+ mathmlBuilder: M0
7203
7234
  });
7204
- w0({
7235
+ k0({
7205
7236
  type: "array",
7206
7237
  names: ["align", "align*", "aligned", "split"],
7207
7238
  props: {
7208
7239
  numArgs: 0
7209
7240
  },
7210
- handler: jr,
7211
- htmlBuilder: k0,
7212
- mathmlBuilder: S0
7241
+ handler: Zr,
7242
+ htmlBuilder: S0,
7243
+ mathmlBuilder: M0
7213
7244
  });
7214
- w0({
7245
+ k0({
7215
7246
  type: "array",
7216
7247
  names: ["gathered", "gather", "gather*"],
7217
7248
  props: {
7218
7249
  numArgs: 0
7219
7250
  },
7220
7251
  handler(r) {
7221
- q.contains(["gather", "gather*"], r.envName) && He(r);
7252
+ q.contains(["gather", "gather*"], r.envName) && Oe(r);
7222
7253
  var e = {
7223
7254
  cols: [{
7224
7255
  type: "align",
@@ -7226,56 +7257,56 @@ w0({
7226
7257
  }],
7227
7258
  addJot: !0,
7228
7259
  colSeparationType: "gather",
7229
- autoTag: Mt(r.envName),
7260
+ autoTag: zt(r.envName),
7230
7261
  emptySingleRow: !0,
7231
7262
  leqno: r.parser.settings.leqno
7232
7263
  };
7233
- return V0(r.parser, e, "display");
7264
+ return U0(r.parser, e, "display");
7234
7265
  },
7235
- htmlBuilder: k0,
7236
- mathmlBuilder: S0
7266
+ htmlBuilder: S0,
7267
+ mathmlBuilder: M0
7237
7268
  });
7238
- w0({
7269
+ k0({
7239
7270
  type: "array",
7240
7271
  names: ["alignat", "alignat*", "alignedat"],
7241
7272
  props: {
7242
7273
  numArgs: 1
7243
7274
  },
7244
- handler: jr,
7245
- htmlBuilder: k0,
7246
- mathmlBuilder: S0
7275
+ handler: Zr,
7276
+ htmlBuilder: S0,
7277
+ mathmlBuilder: M0
7247
7278
  });
7248
- w0({
7279
+ k0({
7249
7280
  type: "array",
7250
7281
  names: ["equation", "equation*"],
7251
7282
  props: {
7252
7283
  numArgs: 0
7253
7284
  },
7254
7285
  handler(r) {
7255
- He(r);
7286
+ Oe(r);
7256
7287
  var e = {
7257
- autoTag: Mt(r.envName),
7288
+ autoTag: zt(r.envName),
7258
7289
  emptySingleRow: !0,
7259
7290
  singleRow: !0,
7260
7291
  maxNumCols: 1,
7261
7292
  leqno: r.parser.settings.leqno
7262
7293
  };
7263
- return V0(r.parser, e, "display");
7294
+ return U0(r.parser, e, "display");
7264
7295
  },
7265
- htmlBuilder: k0,
7266
- mathmlBuilder: S0
7296
+ htmlBuilder: S0,
7297
+ mathmlBuilder: M0
7267
7298
  });
7268
- w0({
7299
+ k0({
7269
7300
  type: "array",
7270
7301
  names: ["CD"],
7271
7302
  props: {
7272
7303
  numArgs: 0
7273
7304
  },
7274
7305
  handler(r) {
7275
- return He(r), C1(r.parser);
7306
+ return Oe(r), q1(r.parser);
7276
7307
  },
7277
- htmlBuilder: k0,
7278
- mathmlBuilder: S0
7308
+ htmlBuilder: S0,
7309
+ mathmlBuilder: M0
7279
7310
  });
7280
7311
  m("\\nonumber", "\\gdef\\@eqnsw{0}");
7281
7312
  m("\\notag", "\\nonumber");
@@ -7292,7 +7323,7 @@ B({
7292
7323
  throw new M(r.funcName + " valid only within array environment");
7293
7324
  }
7294
7325
  });
7295
- var Qt = $r;
7326
+ var _t = Wr;
7296
7327
  B({
7297
7328
  type: "environment",
7298
7329
  names: ["\\begin", "\\end"],
@@ -7308,11 +7339,11 @@ B({
7308
7339
  if (n.type !== "ordgroup")
7309
7340
  throw new M("Invalid environment name", n);
7310
7341
  for (var s = "", o = 0; o < n.body.length; ++o)
7311
- s += F(n.body[o], "textord").text;
7342
+ s += H(n.body[o], "textord").text;
7312
7343
  if (a === "\\begin") {
7313
- if (!Qt.hasOwnProperty(s))
7344
+ if (!_t.hasOwnProperty(s))
7314
7345
  throw new M("No such environment: " + s, n);
7315
- var h = Qt[s], {
7346
+ var h = _t[s], {
7316
7347
  args: c,
7317
7348
  optArgs: p
7318
7349
  } = t.parseArguments("\\begin{" + s + "}", h), g = {
@@ -7321,7 +7352,7 @@ B({
7321
7352
  parser: t
7322
7353
  }, y = h.handler(g, c, p);
7323
7354
  t.expect("\\end", !1);
7324
- var w = t.nextToken, x = F(t.parseFunction(), "environment");
7355
+ var w = t.nextToken, x = H(t.parseFunction(), "environment");
7325
7356
  if (x.name !== s)
7326
7357
  throw new M("Mismatch: \\begin{" + s + "} matched by \\end{" + x.name + "}", w);
7327
7358
  return y;
@@ -7334,13 +7365,13 @@ B({
7334
7365
  };
7335
7366
  }
7336
7367
  });
7337
- var Zr = (r, e) => {
7368
+ var Kr = (r, e) => {
7338
7369
  var t = r.font, a = e.withFont(t);
7339
7370
  return P(r.body, a);
7340
- }, Kr = (r, e) => {
7371
+ }, Jr = (r, e) => {
7341
7372
  var t = r.font, a = e.withFont(t);
7342
7373
  return X(r.body, a);
7343
- }, _t = {
7374
+ }, er = {
7344
7375
  "\\Bbb": "\\mathbb",
7345
7376
  "\\bold": "\\mathbf",
7346
7377
  "\\frak": "\\mathfrak",
@@ -7354,6 +7385,7 @@ B({
7354
7385
  "\\mathit",
7355
7386
  "\\mathbf",
7356
7387
  "\\mathnormal",
7388
+ "\\mathsfit",
7357
7389
  // families
7358
7390
  "\\mathbb",
7359
7391
  "\\mathcal",
@@ -7375,15 +7407,15 @@ B({
7375
7407
  parser: t,
7376
7408
  funcName: a
7377
7409
  } = r, n = Ne(e[0]), s = a;
7378
- return s in _t && (s = _t[s]), {
7410
+ return s in er && (s = er[s]), {
7379
7411
  type: "font",
7380
7412
  mode: t.mode,
7381
7413
  font: s.slice(1),
7382
7414
  body: n
7383
7415
  };
7384
7416
  },
7385
- htmlBuilder: Zr,
7386
- mathmlBuilder: Kr
7417
+ htmlBuilder: Kr,
7418
+ mathmlBuilder: Jr
7387
7419
  });
7388
7420
  B({
7389
7421
  type: "mclass",
@@ -7435,14 +7467,14 @@ B({
7435
7467
  }
7436
7468
  };
7437
7469
  },
7438
- htmlBuilder: Zr,
7439
- mathmlBuilder: Kr
7470
+ htmlBuilder: Kr,
7471
+ mathmlBuilder: Jr
7440
7472
  });
7441
- var Jr = (r, e) => {
7473
+ var Qr = (r, e) => {
7442
7474
  var t = e;
7443
7475
  return r === "display" ? t = t.id >= R.SCRIPT.id ? t.text() : R.DISPLAY : r === "text" && t.size === R.DISPLAY.size ? t = R.TEXT : r === "script" ? t = R.SCRIPT : r === "scriptscript" && (t = R.SCRIPTSCRIPT), t;
7444
- }, At = (r, e) => {
7445
- var t = Jr(r.size, e.style), a = t.fracNum(), n = t.fracDen(), s;
7476
+ }, Tt = (r, e) => {
7477
+ var t = Qr(r.size, e.style), a = t.fracNum(), n = t.fracDen(), s;
7446
7478
  s = e.havingStyle(a);
7447
7479
  var o = P(r.numer, s, e);
7448
7480
  if (r.continued) {
@@ -7456,9 +7488,9 @@ var Jr = (r, e) => {
7456
7488
  t.size === R.DISPLAY.size || r.size === "display" ? (x = e.fontMetrics().num1, y > 0 ? z = 3 * w : z = 7 * w, T = e.fontMetrics().denom1) : (y > 0 ? (x = e.fontMetrics().num2, z = w) : (x = e.fontMetrics().num3, z = 3 * w), T = e.fontMetrics().denom2);
7457
7489
  var C;
7458
7490
  if (g) {
7459
- var O = e.fontMetrics().axisHeight;
7460
- x - o.depth - (O + 0.5 * y) < z && (x += z - (x - o.depth - (O + 0.5 * y))), O - 0.5 * y - (p.height - T) < z && (T += z - (O - 0.5 * y - (p.height - T)));
7461
- var H = -(O - 0.5 * y);
7491
+ var F = e.fontMetrics().axisHeight;
7492
+ x - o.depth - (F + 0.5 * y) < z && (x += z - (x - o.depth - (F + 0.5 * y))), F - 0.5 * y - (p.height - T) < z && (T += z - (F - 0.5 * y - (p.height - T)));
7493
+ var O = -(F - 0.5 * y);
7462
7494
  C = b.makeVList({
7463
7495
  positionType: "individualShift",
7464
7496
  children: [{
@@ -7468,7 +7500,7 @@ var Jr = (r, e) => {
7468
7500
  }, {
7469
7501
  type: "elem",
7470
7502
  elem: g,
7471
- shift: H
7503
+ shift: O
7472
7504
  }, {
7473
7505
  type: "elem",
7474
7506
  elem: o,
@@ -7494,8 +7526,8 @@ var Jr = (r, e) => {
7494
7526
  var V;
7495
7527
  t.size === R.DISPLAY.size ? V = e.fontMetrics().delim1 : t.size === R.SCRIPTSCRIPT.size ? V = e.havingStyle(R.SCRIPT).fontMetrics().delim2 : V = e.fontMetrics().delim2;
7496
7528
  var L, U;
7497
- return r.leftDelim == null ? L = oe(e, ["mopen"]) : L = B0.customSizedDelim(r.leftDelim, V, !0, e.havingStyle(t), r.mode, ["mopen"]), r.continued ? U = b.makeSpan([]) : r.rightDelim == null ? U = oe(e, ["mclose"]) : U = B0.customSizedDelim(r.rightDelim, V, !0, e.havingStyle(t), r.mode, ["mclose"]), b.makeSpan(["mord"].concat(s.sizingClasses(e)), [L, b.makeSpan(["mfrac"], [C]), U], e);
7498
- }, Tt = (r, e) => {
7529
+ return r.leftDelim == null ? L = oe(e, ["mopen"]) : L = D0.customSizedDelim(r.leftDelim, V, !0, e.havingStyle(t), r.mode, ["mopen"]), r.continued ? U = b.makeSpan([]) : r.rightDelim == null ? U = oe(e, ["mclose"]) : U = D0.customSizedDelim(r.rightDelim, V, !0, e.havingStyle(t), r.mode, ["mclose"]), b.makeSpan(["mord"].concat(s.sizingClasses(e)), [L, b.makeSpan(["mfrac"], [C]), U], e);
7530
+ }, Bt = (r, e) => {
7499
7531
  var t = new S.MathNode("mfrac", [X(r.numer, e), X(r.denom, e)]);
7500
7532
  if (!r.hasBarLine)
7501
7533
  t.setAttribute("linethickness", "0px");
@@ -7503,7 +7535,7 @@ var Jr = (r, e) => {
7503
7535
  var a = K(r.barSize, e);
7504
7536
  t.setAttribute("linethickness", A(a));
7505
7537
  }
7506
- var n = Jr(r.size, e.style);
7538
+ var n = Qr(r.size, e.style);
7507
7539
  if (n.size !== e.style.size) {
7508
7540
  t = new S.MathNode("mstyle", [t]);
7509
7541
  var s = n.size === R.DISPLAY.size ? "true" : "false";
@@ -7519,7 +7551,7 @@ var Jr = (r, e) => {
7519
7551
  var c = new S.MathNode("mo", [new S.TextNode(r.rightDelim.replace("\\", ""))]);
7520
7552
  c.setAttribute("fence", "true"), o.push(c);
7521
7553
  }
7522
- return gt(o);
7554
+ return bt(o);
7523
7555
  }
7524
7556
  return t;
7525
7557
  };
@@ -7593,8 +7625,8 @@ B({
7593
7625
  barSize: null
7594
7626
  };
7595
7627
  },
7596
- htmlBuilder: At,
7597
- mathmlBuilder: Tt
7628
+ htmlBuilder: Tt,
7629
+ mathmlBuilder: Bt
7598
7630
  });
7599
7631
  B({
7600
7632
  type: "genfrac",
@@ -7661,7 +7693,7 @@ B({
7661
7693
  };
7662
7694
  }
7663
7695
  });
7664
- var er = ["display", "text", "script", "scriptscript"], tr = function(e) {
7696
+ var tr = ["display", "text", "script", "scriptscript"], rr = function(e) {
7665
7697
  var t = null;
7666
7698
  return e.length > 0 && (t = e, t = t === "." ? null : t), t;
7667
7699
  };
@@ -7676,16 +7708,16 @@ B({
7676
7708
  handler(r, e) {
7677
7709
  var {
7678
7710
  parser: t
7679
- } = r, a = e[4], n = e[5], s = Ne(e[0]), o = s.type === "atom" && s.family === "open" ? tr(s.text) : null, h = Ne(e[1]), c = h.type === "atom" && h.family === "close" ? tr(h.text) : null, p = F(e[2], "size"), g, y = null;
7711
+ } = r, a = e[4], n = e[5], s = Ne(e[0]), o = s.type === "atom" && s.family === "open" ? rr(s.text) : null, h = Ne(e[1]), c = h.type === "atom" && h.family === "close" ? rr(h.text) : null, p = H(e[2], "size"), g, y = null;
7680
7712
  p.isBlank ? g = !0 : (y = p.value, g = y.number > 0);
7681
7713
  var w = "auto", x = e[3];
7682
7714
  if (x.type === "ordgroup") {
7683
7715
  if (x.body.length > 0) {
7684
- var z = F(x.body[0], "textord");
7685
- w = er[Number(z.text)];
7716
+ var z = H(x.body[0], "textord");
7717
+ w = tr[Number(z.text)];
7686
7718
  }
7687
7719
  } else
7688
- x = F(x, "textord"), w = er[Number(x.text)];
7720
+ x = H(x, "textord"), w = tr[Number(x.text)];
7689
7721
  return {
7690
7722
  type: "genfrac",
7691
7723
  mode: t.mode,
@@ -7699,8 +7731,8 @@ B({
7699
7731
  size: w
7700
7732
  };
7701
7733
  },
7702
- htmlBuilder: At,
7703
- mathmlBuilder: Tt
7734
+ htmlBuilder: Tt,
7735
+ mathmlBuilder: Bt
7704
7736
  });
7705
7737
  B({
7706
7738
  type: "infix",
@@ -7720,7 +7752,7 @@ B({
7720
7752
  type: "infix",
7721
7753
  mode: t.mode,
7722
7754
  replaceWith: "\\\\abovefrac",
7723
- size: F(e[0], "size").value,
7755
+ size: H(e[0], "size").value,
7724
7756
  token: n
7725
7757
  };
7726
7758
  }
@@ -7736,7 +7768,7 @@ B({
7736
7768
  var {
7737
7769
  parser: t,
7738
7770
  funcName: a
7739
- } = r, n = e[0], s = wa(F(e[1], "infix").size), o = e[2], h = s.number > 0;
7771
+ } = r, n = e[0], s = ka(H(e[1], "infix").size), o = e[2], h = s.number > 0;
7740
7772
  return {
7741
7773
  type: "genfrac",
7742
7774
  mode: t.mode,
@@ -7750,13 +7782,13 @@ B({
7750
7782
  size: "auto"
7751
7783
  };
7752
7784
  },
7753
- htmlBuilder: At,
7754
- mathmlBuilder: Tt
7785
+ htmlBuilder: Tt,
7786
+ mathmlBuilder: Bt
7755
7787
  });
7756
- var Qr = (r, e) => {
7788
+ var _r = (r, e) => {
7757
7789
  var t = e.style, a, n;
7758
- r.type === "supsub" ? (a = r.sup ? P(r.sup, e.havingStyle(t.sup()), e) : P(r.sub, e.havingStyle(t.sub()), e), n = F(r.base, "horizBrace")) : n = F(r, "horizBrace");
7759
- var s = P(n.base, e.havingBaseStyle(R.DISPLAY)), o = N0.svgSpan(n, e), h;
7790
+ r.type === "supsub" ? (a = r.sup ? P(r.sup, e.havingStyle(t.sup()), e) : P(r.sub, e.havingStyle(t.sub()), e), n = H(r.base, "horizBrace")) : n = H(r, "horizBrace");
7791
+ var s = P(n.base, e.havingBaseStyle(R.DISPLAY)), o = q0.svgSpan(n, e), h;
7760
7792
  if (n.isOver ? (h = b.makeVList({
7761
7793
  positionType: "firstBaseline",
7762
7794
  children: [{
@@ -7812,8 +7844,8 @@ var Qr = (r, e) => {
7812
7844
  }, e);
7813
7845
  }
7814
7846
  return b.makeSpan(["mord", n.isOver ? "mover" : "munder"], [h], e);
7815
- }, X1 = (r, e) => {
7816
- var t = N0.mathMLnode(r.label);
7847
+ }, W1 = (r, e) => {
7848
+ var t = q0.mathMLnode(r.label);
7817
7849
  return new S.MathNode(r.isOver ? "mover" : "munder", [X(r.base, e), t]);
7818
7850
  };
7819
7851
  B({
@@ -7835,8 +7867,8 @@ B({
7835
7867
  base: e[0]
7836
7868
  };
7837
7869
  },
7838
- htmlBuilder: Qr,
7839
- mathmlBuilder: X1
7870
+ htmlBuilder: _r,
7871
+ mathmlBuilder: W1
7840
7872
  });
7841
7873
  B({
7842
7874
  type: "href",
@@ -7849,7 +7881,7 @@ B({
7849
7881
  handler: (r, e) => {
7850
7882
  var {
7851
7883
  parser: t
7852
- } = r, a = e[1], n = F(e[0], "url").url;
7884
+ } = r, a = e[1], n = H(e[0], "url").url;
7853
7885
  return t.settings.isTrusted({
7854
7886
  command: "\\href",
7855
7887
  url: n
@@ -7865,8 +7897,8 @@ B({
7865
7897
  return b.makeAnchor(r.href, [], t, e);
7866
7898
  },
7867
7899
  mathmlBuilder: (r, e) => {
7868
- var t = G0(r.body, e);
7869
- return t instanceof c0 || (t = new c0("mrow", [t])), t.setAttribute("href", r.href), t;
7900
+ var t = V0(r.body, e);
7901
+ return t instanceof h0 || (t = new h0("mrow", [t])), t.setAttribute("href", r.href), t;
7870
7902
  }
7871
7903
  });
7872
7904
  B({
@@ -7880,7 +7912,7 @@ B({
7880
7912
  handler: (r, e) => {
7881
7913
  var {
7882
7914
  parser: t
7883
- } = r, a = F(e[0], "url").url;
7915
+ } = r, a = H(e[0], "url").url;
7884
7916
  if (!t.settings.isTrusted({
7885
7917
  command: "\\url",
7886
7918
  url: a
@@ -7948,7 +7980,7 @@ B({
7948
7980
  parser: t,
7949
7981
  funcName: a,
7950
7982
  token: n
7951
- } = r, s = F(e[0], "raw").string, o = e[1];
7983
+ } = r, s = H(e[0], "raw").string, o = e[1];
7952
7984
  t.settings.strict && t.settings.reportNonstrict("htmlExtension", "HTML extension is disabled on strict mode");
7953
7985
  var h, c = {};
7954
7986
  switch (a) {
@@ -8001,7 +8033,7 @@ B({
8001
8033
  s !== "class" && r.attributes.hasOwnProperty(s) && n.setAttribute(s, r.attributes[s]);
8002
8034
  return n;
8003
8035
  },
8004
- mathmlBuilder: (r, e) => G0(r.body, e)
8036
+ mathmlBuilder: (r, e) => V0(r.body, e)
8005
8037
  });
8006
8038
  B({
8007
8039
  type: "htmlmathml",
@@ -8025,9 +8057,9 @@ B({
8025
8057
  var t = t0(r.html, e, !1);
8026
8058
  return b.makeFragment(t);
8027
8059
  },
8028
- mathmlBuilder: (r, e) => G0(r.mathml, e)
8060
+ mathmlBuilder: (r, e) => V0(r.mathml, e)
8029
8061
  });
8030
- var _e = function(e) {
8062
+ var et = function(e) {
8031
8063
  if (/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))
8032
8064
  return {
8033
8065
  number: +e,
@@ -8041,7 +8073,7 @@ var _e = function(e) {
8041
8073
  // sign + magnitude, cast to number
8042
8074
  unit: t[3]
8043
8075
  };
8044
- if (!gr(a))
8076
+ if (!br(a))
8045
8077
  throw new M("Invalid unit: '" + a.unit + "' in \\includegraphics.");
8046
8078
  return a;
8047
8079
  };
@@ -8068,7 +8100,7 @@ B({
8068
8100
  unit: "em"
8069
8101
  }, h = "";
8070
8102
  if (t[0])
8071
- for (var c = F(t[0], "raw").string, p = c.split(","), g = 0; g < p.length; g++) {
8103
+ for (var c = H(t[0], "raw").string, p = c.split(","), g = 0; g < p.length; g++) {
8072
8104
  var y = p[g].split("=");
8073
8105
  if (y.length === 2) {
8074
8106
  var w = y[1].trim();
@@ -8077,20 +8109,20 @@ B({
8077
8109
  h = w;
8078
8110
  break;
8079
8111
  case "width":
8080
- n = _e(w);
8112
+ n = et(w);
8081
8113
  break;
8082
8114
  case "height":
8083
- s = _e(w);
8115
+ s = et(w);
8084
8116
  break;
8085
8117
  case "totalheight":
8086
- o = _e(w);
8118
+ o = et(w);
8087
8119
  break;
8088
8120
  default:
8089
8121
  throw new M("Invalid key: '" + y[0] + "' in \\includegraphics.");
8090
8122
  }
8091
8123
  }
8092
8124
  }
8093
- var x = F(e[0], "url").url;
8125
+ var x = H(e[0], "url").url;
8094
8126
  return h === "" && (h = x, h = h.replace(/^.*[\\/]/, ""), h = h.substring(0, h.lastIndexOf("."))), a.settings.isTrusted({
8095
8127
  command: "\\includegraphics",
8096
8128
  url: x
@@ -8113,7 +8145,7 @@ B({
8113
8145
  height: A(t + a)
8114
8146
  };
8115
8147
  n > 0 && (s.width = A(n)), a > 0 && (s.verticalAlign = A(-a));
8116
- var o = new Xa(r.src, r.alt, s);
8148
+ var o = new Wa(r.src, r.alt, s);
8117
8149
  return o.height = t, o.depth = a, o;
8118
8150
  },
8119
8151
  mathmlBuilder: (r, e) => {
@@ -8140,7 +8172,7 @@ B({
8140
8172
  var {
8141
8173
  parser: t,
8142
8174
  funcName: a
8143
- } = r, n = F(e[0], "size");
8175
+ } = r, n = H(e[0], "size");
8144
8176
  if (t.settings.strict) {
8145
8177
  var s = a[1] === "m", o = n.value.unit === "mu";
8146
8178
  s ? (o || t.settings.reportNonstrict("mathVsTextUnits", "LaTeX's " + a + " supports only mu units, " + ("not " + n.value.unit + " units")), t.mode !== "math" && t.settings.reportNonstrict("mathVsTextUnits", "LaTeX's " + a + " works only in math mode")) : o && t.settings.reportNonstrict("mathVsTextUnits", "LaTeX's " + a + " doesn't support mu units");
@@ -8229,7 +8261,7 @@ B({
8229
8261
  throw new M("Mismatched " + r.funcName);
8230
8262
  }
8231
8263
  });
8232
- var rr = (r, e) => {
8264
+ var ar = (r, e) => {
8233
8265
  switch (e.style.size) {
8234
8266
  case R.DISPLAY.size:
8235
8267
  return r.display;
@@ -8264,15 +8296,15 @@ B({
8264
8296
  };
8265
8297
  },
8266
8298
  htmlBuilder: (r, e) => {
8267
- var t = rr(r, e), a = t0(t, e, !1);
8299
+ var t = ar(r, e), a = t0(t, e, !1);
8268
8300
  return b.makeFragment(a);
8269
8301
  },
8270
8302
  mathmlBuilder: (r, e) => {
8271
- var t = rr(r, e);
8272
- return G0(t, e);
8303
+ var t = ar(r, e);
8304
+ return V0(t, e);
8273
8305
  }
8274
8306
  });
8275
- var _r = (r, e, t, a, n, s, o) => {
8307
+ var ea = (r, e, t, a, n, s, o) => {
8276
8308
  r = b.makeSpan([], [r]);
8277
8309
  var h = t && q.isCharacterBox(t), c, p;
8278
8310
  if (e) {
@@ -8368,11 +8400,11 @@ var _r = (r, e, t, a, n, s, o) => {
8368
8400
  N.style.marginRight = A(s), C.unshift(N);
8369
8401
  }
8370
8402
  return b.makeSpan(["mop", "op-limits"], C, a);
8371
- }, ea = ["\\smallint"], re = (r, e) => {
8403
+ }, ta = ["\\smallint"], ae = (r, e) => {
8372
8404
  var t, a, n = !1, s;
8373
- r.type === "supsub" ? (t = r.sup, a = r.sub, s = F(r.base, "op"), n = !0) : s = F(r, "op");
8405
+ r.type === "supsub" ? (t = r.sup, a = r.sub, s = H(r.base, "op"), n = !0) : s = H(r, "op");
8374
8406
  var o = e.style, h = !1;
8375
- o.size === R.DISPLAY.size && s.symbol && !q.contains(ea, s.name) && (h = !0);
8407
+ o.size === R.DISPLAY.size && s.symbol && !q.contains(ta, s.name) && (h = !0);
8376
8408
  var c;
8377
8409
  if (s.symbol) {
8378
8410
  var p = h ? "Size2-Regular" : "Size1-Regular", g = "";
@@ -8400,20 +8432,20 @@ var _r = (r, e, t, a, n, s, o) => {
8400
8432
  c = b.makeSpan(["mop"], z, e);
8401
8433
  }
8402
8434
  var C = 0, N = 0;
8403
- return (c instanceof p0 || s.name === "\\oiint" || s.name === "\\oiiint") && !s.suppressBaseShift && (C = (c.height - c.depth) / 2 - e.fontMetrics().axisHeight, N = c.italic), n ? _r(c, t, a, e, o, N, C) : (C && (c.style.position = "relative", c.style.top = A(C)), c);
8435
+ return (c instanceof p0 || s.name === "\\oiint" || s.name === "\\oiiint") && !s.suppressBaseShift && (C = (c.height - c.depth) / 2 - e.fontMetrics().axisHeight, N = c.italic), n ? ea(c, t, a, e, o, N, C) : (C && (c.style.position = "relative", c.style.top = A(C)), c);
8404
8436
  }, me = (r, e) => {
8405
8437
  var t;
8406
8438
  if (r.symbol)
8407
- t = new c0("mo", [v0(r.name, r.mode)]), q.contains(ea, r.name) && t.setAttribute("largeop", "false");
8439
+ t = new h0("mo", [v0(r.name, r.mode)]), q.contains(ta, r.name) && t.setAttribute("largeop", "false");
8408
8440
  else if (r.body)
8409
- t = new c0("mo", o0(r.body, e));
8441
+ t = new h0("mo", o0(r.body, e));
8410
8442
  else {
8411
- t = new c0("mi", [new ie(r.name.slice(1))]);
8412
- var a = new c0("mo", [v0("⁡", "text")]);
8413
- r.parentIsSupSub ? t = new c0("mrow", [t, a]) : t = Br([t, a]);
8443
+ t = new h0("mi", [new w0(r.name.slice(1))]);
8444
+ var a = new h0("mo", [v0("⁡", "text")]);
8445
+ r.parentIsSupSub ? t = new h0("mrow", [t, a]) : t = Dr([t, a]);
8414
8446
  }
8415
8447
  return t;
8416
- }, $1 = {
8448
+ }, j1 = {
8417
8449
  "∏": "\\prod",
8418
8450
  "∐": "\\coprod",
8419
8451
  "∑": "\\sum",
@@ -8438,7 +8470,7 @@ B({
8438
8470
  parser: t,
8439
8471
  funcName: a
8440
8472
  } = r, n = a;
8441
- return n.length === 1 && (n = $1[n]), {
8473
+ return n.length === 1 && (n = j1[n]), {
8442
8474
  type: "op",
8443
8475
  mode: t.mode,
8444
8476
  limits: !0,
@@ -8447,7 +8479,7 @@ B({
8447
8479
  name: n
8448
8480
  };
8449
8481
  },
8450
- htmlBuilder: re,
8482
+ htmlBuilder: ae,
8451
8483
  mathmlBuilder: me
8452
8484
  });
8453
8485
  B({
@@ -8470,10 +8502,10 @@ B({
8470
8502
  body: Q(a)
8471
8503
  };
8472
8504
  },
8473
- htmlBuilder: re,
8505
+ htmlBuilder: ae,
8474
8506
  mathmlBuilder: me
8475
8507
  });
8476
- var W1 = {
8508
+ var Z1 = {
8477
8509
  "∫": "\\int",
8478
8510
  "∬": "\\iint",
8479
8511
  "∭": "\\iiint",
@@ -8501,7 +8533,7 @@ B({
8501
8533
  name: t
8502
8534
  };
8503
8535
  },
8504
- htmlBuilder: re,
8536
+ htmlBuilder: ae,
8505
8537
  mathmlBuilder: me
8506
8538
  });
8507
8539
  B({
@@ -8524,7 +8556,7 @@ B({
8524
8556
  name: t
8525
8557
  };
8526
8558
  },
8527
- htmlBuilder: re,
8559
+ htmlBuilder: ae,
8528
8560
  mathmlBuilder: me
8529
8561
  });
8530
8562
  B({
@@ -8538,7 +8570,7 @@ B({
8538
8570
  parser: e,
8539
8571
  funcName: t
8540
8572
  } = r, a = t;
8541
- return a.length === 1 && (a = W1[a]), {
8573
+ return a.length === 1 && (a = Z1[a]), {
8542
8574
  type: "op",
8543
8575
  mode: e.mode,
8544
8576
  limits: !1,
@@ -8547,12 +8579,12 @@ B({
8547
8579
  name: a
8548
8580
  };
8549
8581
  },
8550
- htmlBuilder: re,
8582
+ htmlBuilder: ae,
8551
8583
  mathmlBuilder: me
8552
8584
  });
8553
- var ta = (r, e) => {
8585
+ var ra = (r, e) => {
8554
8586
  var t, a, n = !1, s;
8555
- r.type === "supsub" ? (t = r.sup, a = r.sub, s = F(r.base, "operatorname"), n = !0) : s = F(r, "operatorname");
8587
+ r.type === "supsub" ? (t = r.sup, a = r.sub, s = H(r.base, "operatorname"), n = !0) : s = H(r, "operatorname");
8556
8588
  var o;
8557
8589
  if (s.body.length > 0) {
8558
8590
  for (var h = s.body.map((y) => {
@@ -8569,8 +8601,8 @@ var ta = (r, e) => {
8569
8601
  o = b.makeSpan(["mop"], c, e);
8570
8602
  } else
8571
8603
  o = b.makeSpan(["mop"], [], e);
8572
- return n ? _r(o, t, a, e, e.style, 0, 0) : o;
8573
- }, j1 = (r, e) => {
8604
+ return n ? ea(o, t, a, e, e.style, 0, 0) : o;
8605
+ }, K1 = (r, e) => {
8574
8606
  for (var t = o0(r.body, e.withFont("mathrm")), a = !0, n = 0; n < t.length; n++) {
8575
8607
  var s = t[n];
8576
8608
  if (!(s instanceof S.SpaceNode))
@@ -8622,17 +8654,17 @@ B({
8622
8654
  parentIsSupSub: !1
8623
8655
  };
8624
8656
  },
8625
- htmlBuilder: ta,
8626
- mathmlBuilder: j1
8657
+ htmlBuilder: ra,
8658
+ mathmlBuilder: K1
8627
8659
  });
8628
8660
  m("\\operatorname", "\\@ifstar\\operatornamewithlimits\\operatorname@");
8629
- $0({
8661
+ W0({
8630
8662
  type: "ordgroup",
8631
8663
  htmlBuilder(r, e) {
8632
8664
  return r.semisimple ? b.makeFragment(t0(r.body, e, !1)) : b.makeSpan(["mord"], t0(r.body, e, !0), e);
8633
8665
  },
8634
8666
  mathmlBuilder(r, e) {
8635
- return G0(r.body, e, !0);
8667
+ return V0(r.body, e, !0);
8636
8668
  }
8637
8669
  });
8638
8670
  B({
@@ -8775,7 +8807,7 @@ B({
8775
8807
  handler(r, e) {
8776
8808
  var {
8777
8809
  parser: t
8778
- } = r, a = F(e[0], "size").value, n = e[1];
8810
+ } = r, a = H(e[0], "size").value, n = e[1];
8779
8811
  return {
8780
8812
  type: "raisebox",
8781
8813
  mode: t.mode,
@@ -8804,7 +8836,8 @@ B({
8804
8836
  names: ["\\relax"],
8805
8837
  props: {
8806
8838
  numArgs: 0,
8807
- allowedInText: !0
8839
+ allowedInText: !0,
8840
+ allowedInArgument: !0
8808
8841
  },
8809
8842
  handler(r) {
8810
8843
  var {
@@ -8822,16 +8855,18 @@ B({
8822
8855
  props: {
8823
8856
  numArgs: 2,
8824
8857
  numOptionalArgs: 1,
8858
+ allowedInText: !0,
8859
+ allowedInMath: !0,
8825
8860
  argTypes: ["size", "size", "size"]
8826
8861
  },
8827
8862
  handler(r, e, t) {
8828
8863
  var {
8829
8864
  parser: a
8830
- } = r, n = t[0], s = F(e[0], "size"), o = F(e[1], "size");
8865
+ } = r, n = t[0], s = H(e[0], "size"), o = H(e[1], "size");
8831
8866
  return {
8832
8867
  type: "rule",
8833
8868
  mode: a.mode,
8834
- shift: n && F(n, "size").value,
8869
+ shift: n && H(n, "size").value,
8835
8870
  width: s.value,
8836
8871
  height: o.value
8837
8872
  };
@@ -8847,20 +8882,20 @@ B({
8847
8882
  return n >= 0 ? h.setAttribute("height", A(n)) : (h.setAttribute("height", A(n)), h.setAttribute("depth", A(-n))), h.setAttribute("voffset", A(n)), h;
8848
8883
  }
8849
8884
  });
8850
- function ra(r, e, t) {
8885
+ function aa(r, e, t) {
8851
8886
  for (var a = t0(r, e, !1), n = e.sizeMultiplier / t.sizeMultiplier, s = 0; s < a.length; s++) {
8852
8887
  var o = a[s].classes.indexOf("sizing");
8853
8888
  o < 0 ? Array.prototype.push.apply(a[s].classes, e.sizingClasses(t)) : a[s].classes[o + 1] === "reset-size" + e.size && (a[s].classes[o + 1] = "reset-size" + t.size), a[s].height *= n, a[s].depth *= n;
8854
8889
  }
8855
8890
  return b.makeFragment(a);
8856
8891
  }
8857
- var ar = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"], Z1 = (r, e) => {
8892
+ var nr = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"], J1 = (r, e) => {
8858
8893
  var t = e.havingSize(r.size);
8859
- return ra(r.body, t, e);
8894
+ return aa(r.body, t, e);
8860
8895
  };
8861
8896
  B({
8862
8897
  type: "sizing",
8863
- names: ar,
8898
+ names: nr,
8864
8899
  props: {
8865
8900
  numArgs: 0,
8866
8901
  allowedInText: !0
@@ -8875,11 +8910,11 @@ B({
8875
8910
  type: "sizing",
8876
8911
  mode: n.mode,
8877
8912
  // Figure out what size to use based on the list of functions above
8878
- size: ar.indexOf(a) + 1,
8913
+ size: nr.indexOf(a) + 1,
8879
8914
  body: s
8880
8915
  };
8881
8916
  },
8882
- htmlBuilder: Z1,
8917
+ htmlBuilder: J1,
8883
8918
  mathmlBuilder: (r, e) => {
8884
8919
  var t = e.havingSize(r.size), a = o0(r.body, t), n = new S.MathNode("mstyle", a);
8885
8920
  return n.setAttribute("mathsize", A(t.sizeMultiplier)), n;
@@ -8896,7 +8931,7 @@ B({
8896
8931
  handler: (r, e, t) => {
8897
8932
  var {
8898
8933
  parser: a
8899
- } = r, n = !1, s = !1, o = t[0] && F(t[0], "ordgroup");
8934
+ } = r, n = !1, s = !1, o = t[0] && H(t[0], "ordgroup");
8900
8935
  if (o)
8901
8936
  for (var h = "", c = 0; c < o.body.length; ++c) {
8902
8937
  var p = o.body[c];
@@ -8971,7 +9006,7 @@ B({
8971
9006
  span: c,
8972
9007
  ruleWidth: p,
8973
9008
  advanceWidth: g
8974
- } = B0.sqrtImage(h, e), y = c.height - p;
9009
+ } = D0.sqrtImage(h, e), y = c.height - p;
8975
9010
  y > t.height + t.depth + o && (o = (o + y - t.height - t.depth) / 2);
8976
9011
  var w = c.height - t.height - o - p;
8977
9012
  t.style.paddingLeft = A(g);
@@ -9000,8 +9035,8 @@ B({
9000
9035
  type: "elem",
9001
9036
  elem: T
9002
9037
  }]
9003
- }, e), O = b.makeSpan(["root"], [N]);
9004
- return b.makeSpan(["mord", "sqrt"], [O, x], e);
9038
+ }, e), F = b.makeSpan(["root"], [N]);
9039
+ return b.makeSpan(["mord", "sqrt"], [F, x], e);
9005
9040
  } else
9006
9041
  return b.makeSpan(["mord", "sqrt"], [x], e);
9007
9042
  },
@@ -9013,7 +9048,7 @@ B({
9013
9048
  return a ? new S.MathNode("mroot", [X(t, e), X(a, e)]) : new S.MathNode("msqrt", [X(t, e)]);
9014
9049
  }
9015
9050
  });
9016
- var nr = {
9051
+ var ir = {
9017
9052
  display: R.DISPLAY,
9018
9053
  text: R.TEXT,
9019
9054
  script: R.SCRIPT,
@@ -9043,11 +9078,11 @@ B({
9043
9078
  };
9044
9079
  },
9045
9080
  htmlBuilder(r, e) {
9046
- var t = nr[r.style], a = e.havingStyle(t).withFont("");
9047
- return ra(r.body, a, e);
9081
+ var t = ir[r.style], a = e.havingStyle(t).withFont("");
9082
+ return aa(r.body, a, e);
9048
9083
  },
9049
9084
  mathmlBuilder(r, e) {
9050
- var t = nr[r.style], a = e.havingStyle(t), n = o0(r.body, a), s = new S.MathNode("mstyle", n), o = {
9085
+ var t = ir[r.style], a = e.havingStyle(t), n = o0(r.body, a), s = new S.MathNode("mstyle", n), o = {
9051
9086
  display: ["0", "true"],
9052
9087
  text: ["0", "false"],
9053
9088
  script: ["1", "false"],
@@ -9056,31 +9091,31 @@ B({
9056
9091
  return s.setAttribute("scriptlevel", h[0]), s.setAttribute("displaystyle", h[1]), s;
9057
9092
  }
9058
9093
  });
9059
- var K1 = function(e, t) {
9094
+ var Q1 = function(e, t) {
9060
9095
  var a = e.base;
9061
9096
  if (a)
9062
9097
  if (a.type === "op") {
9063
9098
  var n = a.limits && (t.style.size === R.DISPLAY.size || a.alwaysHandleSupSub);
9064
- return n ? re : null;
9099
+ return n ? ae : null;
9065
9100
  } else if (a.type === "operatorname") {
9066
9101
  var s = a.alwaysHandleSupSub && (t.style.size === R.DISPLAY.size || a.limits);
9067
- return s ? ta : null;
9102
+ return s ? ra : null;
9068
9103
  } else {
9069
9104
  if (a.type === "accent")
9070
- return q.isCharacterBox(a.base) ? xt : null;
9105
+ return q.isCharacterBox(a.base) ? wt : null;
9071
9106
  if (a.type === "horizBrace") {
9072
9107
  var o = !e.sub;
9073
- return o === a.isOver ? Qr : null;
9108
+ return o === a.isOver ? _r : null;
9074
9109
  } else
9075
9110
  return null;
9076
9111
  }
9077
9112
  else
9078
9113
  return null;
9079
9114
  };
9080
- $0({
9115
+ W0({
9081
9116
  type: "supsub",
9082
9117
  htmlBuilder(r, e) {
9083
- var t = K1(r, e);
9118
+ var t = Q1(r, e);
9084
9119
  if (t)
9085
9120
  return t(r, e);
9086
9121
  var {
@@ -9098,10 +9133,10 @@ $0({
9098
9133
  }
9099
9134
  var T;
9100
9135
  e.style === R.DISPLAY ? T = p.sup1 : e.style.cramped ? T = p.sup3 : T = p.sup2;
9101
- var C = e.sizeMultiplier, N = A(0.5 / p.ptPerEm / C), O = null;
9136
+ var C = e.sizeMultiplier, N = A(0.5 / p.ptPerEm / C), F = null;
9102
9137
  if (c) {
9103
- var H = r.base && r.base.type === "op" && r.base.name && (r.base.name === "\\oiint" || r.base.name === "\\oiiint");
9104
- (o instanceof p0 || H) && (O = A(-o.italic));
9138
+ var O = r.base && r.base.type === "op" && r.base.name && (r.base.name === "\\oiint" || r.base.name === "\\oiiint");
9139
+ (o instanceof p0 || O) && (F = A(-o.italic));
9105
9140
  }
9106
9141
  var V;
9107
9142
  if (h && c) {
@@ -9117,7 +9152,7 @@ $0({
9117
9152
  elem: c,
9118
9153
  shift: y,
9119
9154
  marginRight: N,
9120
- marginLeft: O
9155
+ marginLeft: F
9121
9156
  }, {
9122
9157
  type: "elem",
9123
9158
  elem: h,
@@ -9133,7 +9168,7 @@ $0({
9133
9168
  var Y = [{
9134
9169
  type: "elem",
9135
9170
  elem: c,
9136
- marginLeft: O,
9171
+ marginLeft: F,
9137
9172
  marginRight: N
9138
9173
  }];
9139
9174
  V = b.makeVList({
@@ -9153,8 +9188,8 @@ $0({
9153
9188
  }, e);
9154
9189
  else
9155
9190
  throw new Error("supsub must have either sup or sub.");
9156
- var M0 = lt(o, "right") || "mord";
9157
- return b.makeSpan([M0], [o, b.makeSpan(["msupsub"], [V])], e);
9191
+ var z0 = ot(o, "right") || "mord";
9192
+ return b.makeSpan([z0], [o, b.makeSpan(["msupsub"], [V])], e);
9158
9193
  },
9159
9194
  mathmlBuilder(r, e) {
9160
9195
  var t = !1, a, n;
@@ -9179,7 +9214,7 @@ $0({
9179
9214
  return new S.MathNode(o, s);
9180
9215
  }
9181
9216
  });
9182
- $0({
9217
+ W0({
9183
9218
  type: "atom",
9184
9219
  htmlBuilder(r, e) {
9185
9220
  return b.mathsym(r.text, r.mode, e, ["m" + r.family]);
@@ -9187,42 +9222,42 @@ $0({
9187
9222
  mathmlBuilder(r, e) {
9188
9223
  var t = new S.MathNode("mo", [v0(r.text, r.mode)]);
9189
9224
  if (r.family === "bin") {
9190
- var a = bt(r, e);
9225
+ var a = yt(r, e);
9191
9226
  a === "bold-italic" && t.setAttribute("mathvariant", a);
9192
9227
  } else
9193
9228
  r.family === "punct" ? t.setAttribute("separator", "true") : (r.family === "open" || r.family === "close") && t.setAttribute("stretchy", "false");
9194
9229
  return t;
9195
9230
  }
9196
9231
  });
9197
- var aa = {
9232
+ var na = {
9198
9233
  mi: "italic",
9199
9234
  mn: "normal",
9200
9235
  mtext: "normal"
9201
9236
  };
9202
- $0({
9237
+ W0({
9203
9238
  type: "mathord",
9204
9239
  htmlBuilder(r, e) {
9205
9240
  return b.makeOrd(r, e, "mathord");
9206
9241
  },
9207
9242
  mathmlBuilder(r, e) {
9208
- var t = new S.MathNode("mi", [v0(r.text, r.mode, e)]), a = bt(r, e) || "italic";
9209
- return a !== aa[t.type] && t.setAttribute("mathvariant", a), t;
9243
+ var t = new S.MathNode("mi", [v0(r.text, r.mode, e)]), a = yt(r, e) || "italic";
9244
+ return a !== na[t.type] && t.setAttribute("mathvariant", a), t;
9210
9245
  }
9211
9246
  });
9212
- $0({
9247
+ W0({
9213
9248
  type: "textord",
9214
9249
  htmlBuilder(r, e) {
9215
9250
  return b.makeOrd(r, e, "textord");
9216
9251
  },
9217
9252
  mathmlBuilder(r, e) {
9218
- var t = v0(r.text, r.mode, e), a = bt(r, e) || "normal", n;
9219
- return r.mode === "text" ? n = new S.MathNode("mtext", [t]) : /[0-9]/.test(r.text) ? n = new S.MathNode("mn", [t]) : r.text === "\\prime" ? n = new S.MathNode("mo", [t]) : n = new S.MathNode("mi", [t]), a !== aa[n.type] && n.setAttribute("mathvariant", a), n;
9253
+ var t = v0(r.text, r.mode, e), a = yt(r, e) || "normal", n;
9254
+ return r.mode === "text" ? n = new S.MathNode("mtext", [t]) : /[0-9]/.test(r.text) ? n = new S.MathNode("mn", [t]) : r.text === "\\prime" ? n = new S.MathNode("mo", [t]) : n = new S.MathNode("mi", [t]), a !== na[n.type] && n.setAttribute("mathvariant", a), n;
9220
9255
  }
9221
9256
  });
9222
- var et = {
9257
+ var tt = {
9223
9258
  "\\nobreak": "nobreak",
9224
9259
  "\\allowbreak": "allowbreak"
9225
- }, tt = {
9260
+ }, rt = {
9226
9261
  " ": {},
9227
9262
  "\\ ": {},
9228
9263
  "~": {
@@ -9233,60 +9268,69 @@ var et = {
9233
9268
  className: "nobreak"
9234
9269
  }
9235
9270
  };
9236
- $0({
9271
+ W0({
9237
9272
  type: "spacing",
9238
9273
  htmlBuilder(r, e) {
9239
- if (tt.hasOwnProperty(r.text)) {
9240
- var t = tt[r.text].className || "";
9274
+ if (rt.hasOwnProperty(r.text)) {
9275
+ var t = rt[r.text].className || "";
9241
9276
  if (r.mode === "text") {
9242
9277
  var a = b.makeOrd(r, e, "textord");
9243
9278
  return a.classes.push(t), a;
9244
9279
  } else
9245
9280
  return b.makeSpan(["mspace", t], [b.mathsym(r.text, r.mode, e)], e);
9246
9281
  } else {
9247
- if (et.hasOwnProperty(r.text))
9248
- return b.makeSpan(["mspace", et[r.text]], [], e);
9282
+ if (tt.hasOwnProperty(r.text))
9283
+ return b.makeSpan(["mspace", tt[r.text]], [], e);
9249
9284
  throw new M('Unknown type of space "' + r.text + '"');
9250
9285
  }
9251
9286
  },
9252
9287
  mathmlBuilder(r, e) {
9253
9288
  var t;
9254
- if (tt.hasOwnProperty(r.text))
9289
+ if (rt.hasOwnProperty(r.text))
9255
9290
  t = new S.MathNode("mtext", [new S.TextNode(" ")]);
9256
9291
  else {
9257
- if (et.hasOwnProperty(r.text))
9292
+ if (tt.hasOwnProperty(r.text))
9258
9293
  return new S.MathNode("mspace");
9259
9294
  throw new M('Unknown type of space "' + r.text + '"');
9260
9295
  }
9261
9296
  return t;
9262
9297
  }
9263
9298
  });
9264
- var ir = () => {
9299
+ var sr = () => {
9265
9300
  var r = new S.MathNode("mtd", []);
9266
9301
  return r.setAttribute("width", "50%"), r;
9267
9302
  };
9268
- $0({
9303
+ W0({
9269
9304
  type: "tag",
9270
9305
  mathmlBuilder(r, e) {
9271
- var t = new S.MathNode("mtable", [new S.MathNode("mtr", [ir(), new S.MathNode("mtd", [G0(r.body, e)]), ir(), new S.MathNode("mtd", [G0(r.tag, e)])])]);
9306
+ var t = new S.MathNode("mtable", [new S.MathNode("mtr", [sr(), new S.MathNode("mtd", [V0(r.body, e)]), sr(), new S.MathNode("mtd", [V0(r.tag, e)])])]);
9272
9307
  return t.setAttribute("width", "100%"), t;
9273
9308
  }
9274
9309
  });
9275
- var sr = {
9310
+ var lr = {
9276
9311
  "\\text": void 0,
9277
9312
  "\\textrm": "textrm",
9278
9313
  "\\textsf": "textsf",
9279
9314
  "\\texttt": "texttt",
9280
9315
  "\\textnormal": "textrm"
9281
- }, lr = {
9316
+ }, or = {
9282
9317
  "\\textbf": "textbf",
9283
9318
  "\\textmd": "textmd"
9284
- }, J1 = {
9319
+ }, _1 = {
9285
9320
  "\\textit": "textit",
9286
9321
  "\\textup": "textup"
9287
- }, or = (r, e) => {
9322
+ }, ur = (r, e) => {
9288
9323
  var t = r.font;
9289
- return t ? sr[t] ? e.withTextFontFamily(sr[t]) : lr[t] ? e.withTextFontWeight(lr[t]) : e.withTextFontShape(J1[t]) : e;
9324
+ if (t) {
9325
+ if (lr[t])
9326
+ return e.withTextFontFamily(lr[t]);
9327
+ if (or[t])
9328
+ return e.withTextFontWeight(or[t]);
9329
+ if (t === "\\emph")
9330
+ return e.fontShape === "textit" ? e.withTextFontShape("textup") : e.withTextFontShape("textit");
9331
+ } else
9332
+ return e;
9333
+ return e.withTextFontShape(_1[t]);
9290
9334
  };
9291
9335
  B({
9292
9336
  type: "text",
@@ -9302,7 +9346,8 @@ B({
9302
9346
  "\\textmd",
9303
9347
  // Font Shapes
9304
9348
  "\\textit",
9305
- "\\textup"
9349
+ "\\textup",
9350
+ "\\emph"
9306
9351
  ],
9307
9352
  props: {
9308
9353
  numArgs: 1,
@@ -9323,12 +9368,12 @@ B({
9323
9368
  };
9324
9369
  },
9325
9370
  htmlBuilder(r, e) {
9326
- var t = or(r, e), a = t0(r.body, t, !0);
9371
+ var t = ur(r, e), a = t0(r.body, t, !0);
9327
9372
  return b.makeSpan(["mord", "text"], a, t);
9328
9373
  },
9329
9374
  mathmlBuilder(r, e) {
9330
- var t = or(r, e);
9331
- return G0(r.body, t);
9375
+ var t = ur(r, e);
9376
+ return V0(r.body, t);
9332
9377
  }
9333
9378
  });
9334
9379
  B({
@@ -9420,34 +9465,34 @@ B({
9420
9465
  throw new M("\\verb ended by end of line instead of matching delimiter");
9421
9466
  },
9422
9467
  htmlBuilder(r, e) {
9423
- for (var t = ur(r), a = [], n = e.havingStyle(e.style.text()), s = 0; s < t.length; s++) {
9468
+ for (var t = hr(r), a = [], n = e.havingStyle(e.style.text()), s = 0; s < t.length; s++) {
9424
9469
  var o = t[s];
9425
9470
  o === "~" && (o = "\\textasciitilde"), a.push(b.makeSymbol(o, "Typewriter-Regular", r.mode, n, ["mord", "texttt"]));
9426
9471
  }
9427
9472
  return b.makeSpan(["mord", "text"].concat(n.sizingClasses(e)), b.tryCombineChars(a), n);
9428
9473
  },
9429
9474
  mathmlBuilder(r, e) {
9430
- var t = new S.TextNode(ur(r)), a = new S.MathNode("mtext", [t]);
9475
+ var t = new S.TextNode(hr(r)), a = new S.MathNode("mtext", [t]);
9431
9476
  return a.setAttribute("mathvariant", "monospace"), a;
9432
9477
  }
9433
9478
  });
9434
- var ur = (r) => r.body.replace(/ /g, r.star ? "␣" : " "), F0 = Ar, na = `[ \r
9435
- ]`, Q1 = "\\\\[a-zA-Z@]+", _1 = "\\\\[^\uD800-\uDFFF]", e4 = "(" + Q1 + ")" + na + "*", t4 = `\\\\(
9479
+ var hr = (r) => r.body.replace(/ /g, r.star ? "␣" : " "), L0 = Tr, ia = `[ \r
9480
+ ]`, e4 = "\\\\[a-zA-Z@]+", t4 = "\\\\[^\uD800-\uDFFF]", r4 = "(" + e4 + ")" + ia + "*", a4 = `\\\\(
9436
9481
  |[ \r ]+
9437
- ?)[ \r ]*`, mt = "[̀-ͯ]", r4 = new RegExp(mt + "+$"), a4 = "(" + na + "+)|" + // whitespace
9438
- (t4 + "|") + // \whitespace
9482
+ ?)[ \r ]*`, ct = "[̀-ͯ]", n4 = new RegExp(ct + "+$"), i4 = "(" + ia + "+)|" + // whitespace
9483
+ (a4 + "|") + // \whitespace
9439
9484
  "([!-\\[\\]-‧‪-퟿豈-￿]" + // single codepoint
9440
- (mt + "*") + // ...plus accents
9485
+ (ct + "*") + // ...plus accents
9441
9486
  "|[\uD800-\uDBFF][\uDC00-\uDFFF]" + // surrogate pair
9442
- (mt + "*") + // ...plus accents
9487
+ (ct + "*") + // ...plus accents
9443
9488
  "|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5" + // \verb unstarred
9444
- ("|" + e4) + // \macroName + spaces
9445
- ("|" + _1 + ")");
9446
- class hr {
9489
+ ("|" + r4) + // \macroName + spaces
9490
+ ("|" + t4 + ")");
9491
+ class mr {
9447
9492
  // Category codes. The lexer only supports comment characters (14) for now.
9448
9493
  // MacroExpander additionally distinguishes active (13).
9449
9494
  constructor(e, t) {
9450
- this.input = void 0, this.settings = void 0, this.tokenRegex = void 0, this.catcodes = void 0, this.input = e, this.settings = t, this.tokenRegex = new RegExp(a4, "g"), this.catcodes = {
9495
+ this.input = void 0, this.settings = void 0, this.tokenRegex = void 0, this.catcodes = void 0, this.input = e, this.settings = t, this.tokenRegex = new RegExp(i4, "g"), this.catcodes = {
9451
9496
  "%": 14,
9452
9497
  // comment character
9453
9498
  "~": 13
@@ -9476,7 +9521,7 @@ class hr {
9476
9521
  return new f0(n, new u0(this, t, this.tokenRegex.lastIndex));
9477
9522
  }
9478
9523
  }
9479
- class n4 {
9524
+ class s4 {
9480
9525
  /**
9481
9526
  * Both arguments are optional. The first argument is an object of
9482
9527
  * built-in mappings which never change. The second argument is an object
@@ -9547,7 +9592,7 @@ class n4 {
9547
9592
  t == null ? delete this.current[e] : this.current[e] = t;
9548
9593
  }
9549
9594
  }
9550
- var i4 = Wr;
9595
+ var l4 = jr;
9551
9596
  m("\\noexpand", function(r) {
9552
9597
  var e = r.popToken();
9553
9598
  return r.isExpandable(e.text) && (e.noexpand = !0, e.treatAsRelax = !0), {
@@ -9599,7 +9644,7 @@ m("\\TextOrMath", function(r) {
9599
9644
  numArgs: 0
9600
9645
  };
9601
9646
  });
9602
- var mr = {
9647
+ var cr = {
9603
9648
  0: 0,
9604
9649
  1: 1,
9605
9650
  2: 2,
@@ -9640,38 +9685,38 @@ m("\\char", function(r) {
9640
9685
  else
9641
9686
  t = 10;
9642
9687
  if (t) {
9643
- if (a = mr[e.text], a == null || a >= t)
9688
+ if (a = cr[e.text], a == null || a >= t)
9644
9689
  throw new M("Invalid base-" + t + " digit " + e.text);
9645
- for (var n; (n = mr[r.future().text]) != null && n < t; )
9690
+ for (var n; (n = cr[r.future().text]) != null && n < t; )
9646
9691
  a *= t, a += n, r.popToken();
9647
9692
  }
9648
9693
  return "\\@char{" + a + "}";
9649
9694
  });
9650
- var Bt = (r, e, t) => {
9651
- var a = r.consumeArg().tokens;
9652
- if (a.length !== 1)
9695
+ var Dt = (r, e, t, a) => {
9696
+ var n = r.consumeArg().tokens;
9697
+ if (n.length !== 1)
9653
9698
  throw new M("\\newcommand's first argument must be a macro name");
9654
- var n = a[0].text, s = r.isDefined(n);
9655
- if (s && !e)
9656
- throw new M("\\newcommand{" + n + "} attempting to redefine " + (n + "; use \\renewcommand"));
9657
- if (!s && !t)
9658
- throw new M("\\renewcommand{" + n + "} when command " + n + " does not yet exist; use \\newcommand");
9659
- var o = 0;
9660
- if (a = r.consumeArg().tokens, a.length === 1 && a[0].text === "[") {
9661
- for (var h = "", c = r.expandNextToken(); c.text !== "]" && c.text !== "EOF"; )
9662
- h += c.text, c = r.expandNextToken();
9663
- if (!h.match(/^\s*[0-9]+\s*$/))
9664
- throw new M("Invalid number of arguments: " + h);
9665
- o = parseInt(h), a = r.consumeArg().tokens;
9666
- }
9667
- return r.macros.set(n, {
9668
- tokens: a,
9669
- numArgs: o
9699
+ var s = n[0].text, o = r.isDefined(s);
9700
+ if (o && !e)
9701
+ throw new M("\\newcommand{" + s + "} attempting to redefine " + (s + "; use \\renewcommand"));
9702
+ if (!o && !t)
9703
+ throw new M("\\renewcommand{" + s + "} when command " + s + " does not yet exist; use \\newcommand");
9704
+ var h = 0;
9705
+ if (n = r.consumeArg().tokens, n.length === 1 && n[0].text === "[") {
9706
+ for (var c = "", p = r.expandNextToken(); p.text !== "]" && p.text !== "EOF"; )
9707
+ c += p.text, p = r.expandNextToken();
9708
+ if (!c.match(/^\s*[0-9]+\s*$/))
9709
+ throw new M("Invalid number of arguments: " + c);
9710
+ h = parseInt(c), n = r.consumeArg().tokens;
9711
+ }
9712
+ return o && a || r.macros.set(s, {
9713
+ tokens: n,
9714
+ numArgs: h
9670
9715
  }), "";
9671
9716
  };
9672
- m("\\newcommand", (r) => Bt(r, !1, !0));
9673
- m("\\renewcommand", (r) => Bt(r, !0, !1));
9674
- m("\\providecommand", (r) => Bt(r, !0, !0));
9717
+ m("\\newcommand", (r) => Dt(r, !1, !0, !1));
9718
+ m("\\renewcommand", (r) => Dt(r, !0, !1, !1));
9719
+ m("\\providecommand", (r) => Dt(r, !0, !0, !0));
9675
9720
  m("\\message", (r) => {
9676
9721
  var e = r.consumeArgs(1)[0];
9677
9722
  return console.log(e.reverse().map((t) => t.text).join("")), "";
@@ -9682,7 +9727,7 @@ m("\\errmessage", (r) => {
9682
9727
  });
9683
9728
  m("\\show", (r) => {
9684
9729
  var e = r.popToken(), t = e.text;
9685
- return console.log(e, r.macros.get(t), F0[t], $.math[t], $.text[t]), "";
9730
+ return console.log(e, r.macros.get(t), L0[t], $.math[t], $.text[t]), "";
9686
9731
  });
9687
9732
  m("\\bgroup", "{");
9688
9733
  m("\\egroup", "}");
@@ -9739,7 +9784,7 @@ m("\\ulcorner", '\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');
9739
9784
  m("\\urcorner", '\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');
9740
9785
  m("\\llcorner", '\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');
9741
9786
  m("\\lrcorner", '\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');
9742
- m("\\vdots", "\\mathord{\\varvdots\\rule{0pt}{15pt}}");
9787
+ m("\\vdots", "{\\varvdots\\rule{0pt}{15pt}}");
9743
9788
  m("⋮", "\\vdots");
9744
9789
  m("\\varGamma", "\\mathit{\\Gamma}");
9745
9790
  m("\\varDelta", "\\mathit{\\Delta}");
@@ -9758,7 +9803,9 @@ m("\\boxed", "\\fbox{$\\displaystyle{#1}$}");
9758
9803
  m("\\iff", "\\DOTSB\\;\\Longleftrightarrow\\;");
9759
9804
  m("\\implies", "\\DOTSB\\;\\Longrightarrow\\;");
9760
9805
  m("\\impliedby", "\\DOTSB\\;\\Longleftarrow\\;");
9761
- var cr = {
9806
+ m("\\dddot", "{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");
9807
+ m("\\ddddot", "{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");
9808
+ var dr = {
9762
9809
  ",": "\\dotsc",
9763
9810
  "\\not": "\\dotsb",
9764
9811
  // \keybin@ checks for the following:
@@ -9815,9 +9862,9 @@ var cr = {
9815
9862
  };
9816
9863
  m("\\dots", function(r) {
9817
9864
  var e = "\\dotso", t = r.expandAfterFuture().text;
9818
- return t in cr ? e = cr[t] : (t.slice(0, 4) === "\\not" || t in $.math && q.contains(["bin", "rel"], $.math[t].group)) && (e = "\\dotsb"), e;
9865
+ return t in dr ? e = dr[t] : (t.slice(0, 4) === "\\not" || t in $.math && q.contains(["bin", "rel"], $.math[t].group)) && (e = "\\dotsb"), e;
9819
9866
  });
9820
- var Dt = {
9867
+ var Ct = {
9821
9868
  // \rightdelim@ checks for the following:
9822
9869
  ")": !0,
9823
9870
  "]": !0,
@@ -9843,15 +9890,15 @@ var Dt = {
9843
9890
  };
9844
9891
  m("\\dotso", function(r) {
9845
9892
  var e = r.future().text;
9846
- return e in Dt ? "\\ldots\\," : "\\ldots";
9893
+ return e in Ct ? "\\ldots\\," : "\\ldots";
9847
9894
  });
9848
9895
  m("\\dotsc", function(r) {
9849
9896
  var e = r.future().text;
9850
- return e in Dt && e !== "," ? "\\ldots\\," : "\\ldots";
9897
+ return e in Ct && e !== "," ? "\\ldots\\," : "\\ldots";
9851
9898
  });
9852
9899
  m("\\cdots", function(r) {
9853
9900
  var e = r.future().text;
9854
- return e in Dt ? "\\@cdots\\," : "\\@cdots";
9901
+ return e in Ct ? "\\@cdots\\," : "\\@cdots";
9855
9902
  });
9856
9903
  m("\\dotsb", "\\cdots");
9857
9904
  m("\\dotsm", "\\cdots");
@@ -9889,9 +9936,9 @@ m("\\pmod", "\\pod{{\\rm mod}\\mkern6mu#1}");
9889
9936
  m("\\mod", "\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");
9890
9937
  m("\\newline", "\\\\\\relax");
9891
9938
  m("\\TeX", "\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");
9892
- var ia = A(x0["Main-Regular"]["T".charCodeAt(0)][1] - 0.7 * x0["Main-Regular"]["A".charCodeAt(0)][1]);
9893
- m("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + ia + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}");
9894
- m("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + ia + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}");
9939
+ var sa = A(x0["Main-Regular"]["T".charCodeAt(0)][1] - 0.7 * x0["Main-Regular"]["A".charCodeAt(0)][1]);
9940
+ m("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + sa + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}");
9941
+ m("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + sa + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}");
9895
9942
  m("\\hspace", "\\@ifstar\\@hspacer\\@hspace");
9896
9943
  m("\\@hspace", "\\hskip #1\\relax");
9897
9944
  m("\\@hspacer", "\\rule{0pt}{0pt}\\hskip #1\\relax");
@@ -10037,7 +10084,7 @@ m("\\ket", "\\mathinner{|{#1}\\rangle}");
10037
10084
  m("\\braket", "\\mathinner{\\langle{#1}\\rangle}");
10038
10085
  m("\\Bra", "\\left\\langle#1\\right|");
10039
10086
  m("\\Ket", "\\left|#1\\right\\rangle");
10040
- var sa = (r) => (e) => {
10087
+ var la = (r) => (e) => {
10041
10088
  var t = e.consumeArg().tokens, a = e.consumeArg().tokens, n = e.consumeArg().tokens, s = e.consumeArg().tokens, o = e.macros.get("|"), h = e.macros.get("\\|");
10042
10089
  e.macros.beginGroup();
10043
10090
  var c = (y) => (w) => {
@@ -10064,8 +10111,8 @@ var sa = (r) => (e) => {
10064
10111
  numArgs: 0
10065
10112
  };
10066
10113
  };
10067
- m("\\bra@ket", sa(!1));
10068
- m("\\bra@set", sa(!0));
10114
+ m("\\bra@ket", la(!1));
10115
+ m("\\bra@set", la(!0));
10069
10116
  m("\\Braket", "\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");
10070
10117
  m("\\Set", "\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");
10071
10118
  m("\\set", "\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");
@@ -10126,7 +10173,7 @@ m("\\grayH", "\\textcolor{##3b3e40}{#1}");
10126
10173
  m("\\grayI", "\\textcolor{##21242c}{#1}");
10127
10174
  m("\\kaBlue", "\\textcolor{##314453}{#1}");
10128
10175
  m("\\kaGreen", "\\textcolor{##71B307}{#1}");
10129
- var la = {
10176
+ var oa = {
10130
10177
  "^": !0,
10131
10178
  // Parser.js
10132
10179
  _: !0,
@@ -10136,16 +10183,16 @@ var la = {
10136
10183
  "\\nolimits": !0
10137
10184
  // Parser.js
10138
10185
  };
10139
- class s4 {
10186
+ class o4 {
10140
10187
  constructor(e, t, a) {
10141
- this.settings = void 0, this.expansionCount = void 0, this.lexer = void 0, this.macros = void 0, this.stack = void 0, this.mode = void 0, this.settings = t, this.expansionCount = 0, this.feed(e), this.macros = new n4(i4, t.macros), this.mode = a, this.stack = [];
10188
+ this.settings = void 0, this.expansionCount = void 0, this.lexer = void 0, this.macros = void 0, this.stack = void 0, this.mode = void 0, this.settings = t, this.expansionCount = 0, this.feed(e), this.macros = new s4(l4, t.macros), this.mode = a, this.stack = [];
10142
10189
  }
10143
10190
  /**
10144
10191
  * Feed a new input string to the same MacroExpander
10145
10192
  * (with existing macros etc.).
10146
10193
  */
10147
10194
  feed(e) {
10148
- this.lexer = new hr(e, this.settings);
10195
+ this.lexer = new mr(e, this.settings);
10149
10196
  }
10150
10197
  /**
10151
10198
  * Switches between "text" and "math" modes.
@@ -10402,7 +10449,7 @@ class s4 {
10402
10449
  if (n.indexOf("#") !== -1)
10403
10450
  for (var o = n.replace(/##/g, ""); o.indexOf("#" + (s + 1)) !== -1; )
10404
10451
  ++s;
10405
- for (var h = new hr(n, this.settings), c = [], p = h.lex(); p.text !== "EOF"; )
10452
+ for (var h = new mr(n, this.settings), c = [], p = h.lex(); p.text !== "EOF"; )
10406
10453
  c.push(p), p = h.lex();
10407
10454
  c.reverse();
10408
10455
  var g = {
@@ -10420,17 +10467,17 @@ class s4 {
10420
10467
  * `implicitCommands`.
10421
10468
  */
10422
10469
  isDefined(e) {
10423
- return this.macros.has(e) || F0.hasOwnProperty(e) || $.math.hasOwnProperty(e) || $.text.hasOwnProperty(e) || la.hasOwnProperty(e);
10470
+ return this.macros.has(e) || L0.hasOwnProperty(e) || $.math.hasOwnProperty(e) || $.text.hasOwnProperty(e) || oa.hasOwnProperty(e);
10424
10471
  }
10425
10472
  /**
10426
10473
  * Determine whether a command is expandable.
10427
10474
  */
10428
10475
  isExpandable(e) {
10429
10476
  var t = this.macros.get(e);
10430
- return t != null ? typeof t == "string" || typeof t == "function" || !t.unexpandable : F0.hasOwnProperty(e) && !F0[e].primitive;
10477
+ return t != null ? typeof t == "string" || typeof t == "function" || !t.unexpandable : L0.hasOwnProperty(e) && !L0[e].primitive;
10431
10478
  }
10432
10479
  }
10433
- var dr = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/, Me = Object.freeze({
10480
+ var fr = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/, Me = Object.freeze({
10434
10481
  "₊": "+",
10435
10482
  "₋": "-",
10436
10483
  "₌": "=",
@@ -10533,7 +10580,7 @@ var dr = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗ
10533
10580
  "ᵠ": "ϕ",
10534
10581
  "ᵡ": "χ",
10535
10582
  "ᶿ": "θ"
10536
- }), rt = {
10583
+ }), at = {
10537
10584
  "́": {
10538
10585
  text: "\\'",
10539
10586
  math: "\\acute"
@@ -10580,7 +10627,7 @@ var dr = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗ
10580
10627
  "̧": {
10581
10628
  text: "\\c"
10582
10629
  }
10583
- }, fr = {
10630
+ }, pr = {
10584
10631
  á: "á",
10585
10632
  à: "à",
10586
10633
  ä: "ä",
@@ -10926,9 +10973,9 @@ var dr = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗ
10926
10973
  Ώ: "Ώ",
10927
10974
  Ὼ: "Ὼ"
10928
10975
  };
10929
- class Fe {
10976
+ class He {
10930
10977
  constructor(e, t) {
10931
- 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 s4(e, t, this.mode), this.settings = t, this.leftrightDepth = 0;
10978
+ 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 o4(e, t, this.mode), this.settings = t, this.leftrightDepth = 0;
10932
10979
  }
10933
10980
  /**
10934
10981
  * Checks a result to make sure it has the right type, and throws an
@@ -10996,7 +11043,7 @@ class Fe {
10996
11043
  for (var a = []; ; ) {
10997
11044
  this.mode === "math" && this.consumeSpaces();
10998
11045
  var n = this.fetch();
10999
- if (Fe.endOfExpression.indexOf(n.text) !== -1 || t && n.text === t || e && F0[n.text] && F0[n.text].infix)
11046
+ if (He.endOfExpression.indexOf(n.text) !== -1 || t && n.text === t || e && L0[n.text] && L0[n.text].infix)
11000
11047
  break;
11001
11048
  var s = this.parseAtom(t);
11002
11049
  if (s) {
@@ -11044,7 +11091,11 @@ class Fe {
11044
11091
  handleSupSubscript(e) {
11045
11092
  var t = this.fetch(), a = t.text;
11046
11093
  this.consume(), this.consumeSpaces();
11047
- var n = this.parseGroup(e);
11094
+ var n;
11095
+ do {
11096
+ var s;
11097
+ n = this.parseGroup(e);
11098
+ } while (((s = n) == null ? void 0 : s.type) === "internal");
11048
11099
  if (!n)
11049
11100
  throw new M("Expected group after '" + a + "'", t);
11050
11101
  return n;
@@ -11077,7 +11128,7 @@ class Fe {
11077
11128
  */
11078
11129
  parseAtom(e) {
11079
11130
  var t = this.parseGroup("atom", e);
11080
- if (this.mode === "text")
11131
+ if (t?.type === "internal" || this.mode === "text")
11081
11132
  return t;
11082
11133
  for (var a, n; ; ) {
11083
11134
  this.consumeSpaces();
@@ -11115,10 +11166,10 @@ class Fe {
11115
11166
  body: c
11116
11167
  };
11117
11168
  } else if (Me[s.text]) {
11118
- var p = dr.test(s.text), g = [];
11169
+ var p = fr.test(s.text), g = [];
11119
11170
  for (g.push(new f0(Me[s.text])), this.consume(); ; ) {
11120
11171
  var y = this.fetch().text;
11121
- if (!Me[y] || dr.test(y) !== p)
11172
+ if (!Me[y] || fr.test(y) !== p)
11122
11173
  break;
11123
11174
  g.unshift(new f0(Me[y])), this.consume();
11124
11175
  }
@@ -11147,7 +11198,7 @@ class Fe {
11147
11198
  * Parses an entire function, including its base and all of its arguments.
11148
11199
  */
11149
11200
  parseFunction(e, t) {
11150
- var a = this.fetch(), n = a.text, s = F0[n];
11201
+ var a = this.fetch(), n = a.text, s = L0[n];
11151
11202
  if (!s)
11152
11203
  return null;
11153
11204
  if (this.consume(), t && t !== "atom" && !s.allowedInArgument)
@@ -11171,7 +11222,7 @@ class Fe {
11171
11222
  parser: this,
11172
11223
  token: n,
11173
11224
  breakOnTokenText: s
11174
- }, h = F0[e];
11225
+ }, h = L0[e];
11175
11226
  if (h && h.handler)
11176
11227
  return h.handler(o, t, a);
11177
11228
  throw new M("No function handler for " + e);
@@ -11315,7 +11366,7 @@ class Fe {
11315
11366
  // sign + magnitude, cast to number
11316
11367
  unit: n[3]
11317
11368
  };
11318
- if (!gr(s))
11369
+ if (!br(s))
11319
11370
  throw new M("Invalid unit: '" + s.unit + "'", t);
11320
11371
  return {
11321
11372
  type: "size",
@@ -11383,7 +11434,7 @@ class Fe {
11383
11434
  // use-begingroup-instead-of-bgroup
11384
11435
  semisimple: n === "\\begingroup" || void 0
11385
11436
  };
11386
- } else if (s = this.parseFunction(t, e) || this.parseSymbol(), s == null && n[0] === "\\" && !la.hasOwnProperty(n)) {
11437
+ } else if (s = this.parseFunction(t, e) || this.parseSymbol(), s == null && n[0] === "\\" && !oa.hasOwnProperty(n)) {
11387
11438
  if (this.settings.throwOnError)
11388
11439
  throw new M("Undefined control sequence: " + n, a);
11389
11440
  s = this.formatUnsupportedCmd(n), this.consume();
@@ -11438,14 +11489,14 @@ class Fe {
11438
11489
  star: n
11439
11490
  };
11440
11491
  }
11441
- fr.hasOwnProperty(t[0]) && !$[this.mode][t[0]] && (this.settings.strict && this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Accented Unicode text character "' + t[0] + '" used in math mode', e), t = fr[t[0]] + t.slice(1));
11442
- var s = r4.exec(t);
11492
+ pr.hasOwnProperty(t[0]) && !$[this.mode][t[0]] && (this.settings.strict && this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Accented Unicode text character "' + t[0] + '" used in math mode', e), t = pr[t[0]] + t.slice(1));
11493
+ var s = n4.exec(t);
11443
11494
  s && (t = t.substring(0, s.index), t === "i" ? t = "ı" : t === "j" && (t = "ȷ"));
11444
11495
  var o;
11445
11496
  if ($[this.mode][t]) {
11446
- this.settings.strict && this.mode === "math" && st.indexOf(t) >= 0 && this.settings.reportNonstrict("unicodeTextInMathMode", 'Latin-1/Unicode text character "' + t[0] + '" used in math mode', e);
11497
+ this.settings.strict && this.mode === "math" && lt.indexOf(t) >= 0 && this.settings.reportNonstrict("unicodeTextInMathMode", 'Latin-1/Unicode text character "' + t[0] + '" used in math mode', e);
11447
11498
  var h = $[this.mode][t].group, c = u0.range(e), p;
11448
- if (ja.hasOwnProperty(h)) {
11499
+ if (Ka.hasOwnProperty(h)) {
11449
11500
  var g = h;
11450
11501
  p = {
11451
11502
  type: "atom",
@@ -11463,7 +11514,7 @@ class Fe {
11463
11514
  };
11464
11515
  o = p;
11465
11516
  } else if (t.charCodeAt(0) >= 128)
11466
- this.settings.strict && (vr(t.charCodeAt(0)) ? this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Unicode text character "' + t[0] + '" used in math mode', e) : this.settings.reportNonstrict("unknownSymbol", 'Unrecognized Unicode character "' + t[0] + '"' + (" (" + t.charCodeAt(0) + ")"), e)), o = {
11517
+ this.settings.strict && (gr(t.charCodeAt(0)) ? this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Unicode text character "' + t[0] + '" used in math mode', e) : this.settings.reportNonstrict("unknownSymbol", 'Unrecognized Unicode character "' + t[0] + '"' + (" (" + t.charCodeAt(0) + ")"), e)), o = {
11467
11518
  type: "textord",
11468
11519
  mode: "text",
11469
11520
  loc: u0.range(e),
@@ -11474,9 +11525,9 @@ class Fe {
11474
11525
  if (this.consume(), s)
11475
11526
  for (var y = 0; y < s[0].length; y++) {
11476
11527
  var w = s[0][y];
11477
- if (!rt[w])
11528
+ if (!at[w])
11478
11529
  throw new M("Unknown accent ' " + w + "'", e);
11479
- var x = rt[w][this.mode] || rt[w].text;
11530
+ var x = at[w][this.mode] || at[w].text;
11480
11531
  if (!x)
11481
11532
  throw new M("Accent " + w + " unsupported in " + this.mode + " mode", e);
11482
11533
  o = {
@@ -11493,11 +11544,11 @@ class Fe {
11493
11544
  return o;
11494
11545
  }
11495
11546
  }
11496
- Fe.endOfExpression = ["}", "\\endgroup", "\\end", "\\right", "&"];
11497
- var Ct = function(e, t) {
11547
+ He.endOfExpression = ["}", "\\endgroup", "\\end", "\\right", "&"];
11548
+ var Nt = function(e, t) {
11498
11549
  if (!(typeof e == "string" || e instanceof String))
11499
11550
  throw new TypeError("KaTeX can only parse string typed expression");
11500
- var a = new Fe(e, t);
11551
+ var a = new He(e, t);
11501
11552
  delete a.gullet.macros.current["\\df@tag"];
11502
11553
  var n = a.parse();
11503
11554
  if (delete a.gullet.macros.current["\\current@color"], delete a.gullet.macros.current["\\color"], a.gullet.macros.get("\\df@tag")) {
@@ -11511,62 +11562,69 @@ var Ct = function(e, t) {
11511
11562
  }];
11512
11563
  }
11513
11564
  return n;
11514
- }, oa = function(e, t, a) {
11565
+ }, ua = function(e, t, a) {
11515
11566
  t.textContent = "";
11516
- var n = Nt(e, a).toNode();
11567
+ var n = qt(e, a).toNode();
11517
11568
  t.appendChild(n);
11518
11569
  };
11519
- typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."), oa = function() {
11570
+ typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."), ua = function() {
11520
11571
  throw new M("KaTeX doesn't work in quirks mode.");
11521
11572
  });
11522
- var l4 = function(e, t) {
11523
- var a = Nt(e, t).toMarkup();
11573
+ var u4 = function(e, t) {
11574
+ var a = qt(e, t).toMarkup();
11524
11575
  return a;
11525
- }, o4 = function(e, t) {
11526
- var a = new ct(t);
11527
- return Ct(e, a);
11528
- }, ua = function(e, t, a) {
11576
+ }, h4 = function(e, t) {
11577
+ var a = new dt(t);
11578
+ return Nt(e, a);
11579
+ }, ha = function(e, t, a) {
11529
11580
  if (a.throwOnError || !(e instanceof M))
11530
11581
  throw e;
11531
11582
  var n = b.makeSpan(["katex-error"], [new p0(t)]);
11532
11583
  return n.setAttribute("title", e.toString()), n.setAttribute("style", "color:" + a.errorColor), n;
11533
- }, Nt = function(e, t) {
11534
- var a = new ct(t);
11584
+ }, qt = function(e, t) {
11585
+ var a = new dt(t);
11535
11586
  try {
11536
- var n = Ct(e, a);
11537
- return g1(n, e, a);
11587
+ var n = Nt(e, a);
11588
+ return y1(n, e, a);
11538
11589
  } catch (s) {
11539
- return ua(s, e, a);
11590
+ return ha(s, e, a);
11540
11591
  }
11541
- }, u4 = function(e, t) {
11542
- var a = new ct(t);
11592
+ }, m4 = function(e, t) {
11593
+ var a = new dt(t);
11543
11594
  try {
11544
- var n = Ct(e, a);
11545
- return b1(n, e, a);
11595
+ var n = Nt(e, a);
11596
+ return x1(n, e, a);
11546
11597
  } catch (s) {
11547
- return ua(s, e, a);
11548
- }
11549
- }, h4 = {
11598
+ return ha(s, e, a);
11599
+ }
11600
+ }, c4 = "0.16.22", d4 = {
11601
+ Span: he,
11602
+ Anchor: vt,
11603
+ SymbolNode: p0,
11604
+ SvgNode: C0,
11605
+ PathNode: G0,
11606
+ LineNode: st
11607
+ }, f4 = {
11550
11608
  /**
11551
11609
  * Current KaTeX version
11552
11610
  */
11553
- version: "0.16.10",
11611
+ version: c4,
11554
11612
  /**
11555
11613
  * Renders the given LaTeX into an HTML+MathML combination, and adds
11556
11614
  * it as a child to the specified DOM node.
11557
11615
  */
11558
- render: oa,
11616
+ render: ua,
11559
11617
  /**
11560
11618
  * Renders the given LaTeX into an HTML+MathML combination string,
11561
11619
  * for sending to the client.
11562
11620
  */
11563
- renderToString: l4,
11621
+ renderToString: u4,
11564
11622
  /**
11565
11623
  * KaTeX error, usually during parsing.
11566
11624
  */
11567
11625
  ParseError: M,
11568
11626
  /**
11569
- * The shema of Settings
11627
+ * The schema of Settings
11570
11628
  */
11571
11629
  SETTINGS_SCHEMA: ze,
11572
11630
  /**
@@ -11577,7 +11635,7 @@ var l4 = function(e, t) {
11577
11635
  * The internal tree representation is unstable and is very likely
11578
11636
  * to change. Use at your own risk.
11579
11637
  */
11580
- __parse: o4,
11638
+ __parse: h4,
11581
11639
  /**
11582
11640
  * Renders the given LaTeX into an HTML+MathML internal DOM tree
11583
11641
  * representation, without flattening that representation to a string.
@@ -11586,7 +11644,7 @@ var l4 = function(e, t) {
11586
11644
  * The internal tree representation is unstable and is very likely
11587
11645
  * to change. Use at your own risk.
11588
11646
  */
11589
- __renderToDomTree: Nt,
11647
+ __renderToDomTree: qt,
11590
11648
  /**
11591
11649
  * Renders the given LaTeX into an HTML internal DOM tree representation,
11592
11650
  * without MathML and without flattening that representation to a string.
@@ -11595,12 +11653,12 @@ var l4 = function(e, t) {
11595
11653
  * The internal tree representation is unstable and is very likely
11596
11654
  * to change. Use at your own risk.
11597
11655
  */
11598
- __renderToHTMLTree: u4,
11656
+ __renderToHTMLTree: m4,
11599
11657
  /**
11600
11658
  * extends internal font metrics object with a new object
11601
11659
  * each key in the new object represents a font name
11602
11660
  */
11603
- __setFontMetrics: Ga,
11661
+ __setFontMetrics: Va,
11604
11662
  /**
11605
11663
  * adds a new symbol to builtin symbols table
11606
11664
  */
@@ -11618,19 +11676,25 @@ var l4 = function(e, t) {
11618
11676
  /**
11619
11677
  * Expose the dom tree node types, which can be useful for type checking nodes.
11620
11678
  *
11621
- * NOTE: This method is not currently recommended for public use.
11679
+ * NOTE: These methods are not currently recommended for public use.
11622
11680
  * The internal tree representation is unstable and is very likely
11623
11681
  * to change. Use at your own risk.
11624
11682
  */
11625
- __domTree: {
11626
- Span: he,
11627
- Anchor: pt,
11628
- SymbolNode: p0,
11629
- SvgNode: D0,
11630
- PathNode: P0,
11631
- LineNode: it
11632
- }
11683
+ __domTree: d4
11633
11684
  };
11634
11685
  export {
11635
- h4 as default
11686
+ M as ParseError,
11687
+ ze as SETTINGS_SCHEMA,
11688
+ B as __defineFunction,
11689
+ m as __defineMacro,
11690
+ i as __defineSymbol,
11691
+ d4 as __domTree,
11692
+ h4 as __parse,
11693
+ qt as __renderToDomTree,
11694
+ m4 as __renderToHTMLTree,
11695
+ Va as __setFontMetrics,
11696
+ f4 as default,
11697
+ ua as render,
11698
+ u4 as renderToString,
11699
+ c4 as version
11636
11700
  };