ranui 0.2.0-alpha.0 → 0.2.0-alpha.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 (82) hide show
  1. package/README.md +26 -0
  2. package/README.zh-CN.md +26 -0
  3. package/dist/bin/build-iife.d.ts +1 -0
  4. package/dist/button-BstLjXNe.js +117 -0
  5. package/dist/button.js +1 -1
  6. package/dist/colorpicker-CGh8pRqo.js +315 -0
  7. package/dist/colorpicker.js +1 -1
  8. package/dist/components/colorpicker/index.d.ts +11 -0
  9. package/dist/components/dropdown/index.d.ts +0 -2
  10. package/dist/components/image/index.d.ts +6 -0
  11. package/dist/components/input/index.d.ts +13 -20
  12. package/dist/components/player/core/view.d.ts +0 -1
  13. package/dist/components/player/index.d.ts +0 -1
  14. package/dist/components/popover/index.d.ts +0 -2
  15. package/dist/components/select/index.d.ts +15 -0
  16. package/dist/{dropdown-C5362qTy.js → dropdown-RqHMRhFE.js} +0 -6
  17. package/dist/dropdown.js +1 -1
  18. package/dist/{icon-DmoEnao5.js → icon-Blm7AbyY.js} +2 -0
  19. package/dist/icon.js +1 -1
  20. package/dist/iife/button.iife.js +1 -0
  21. package/dist/iife/card.iife.js +1 -0
  22. package/dist/iife/checkbox.iife.js +1 -0
  23. package/dist/iife/colorpicker.iife.js +5 -0
  24. package/dist/iife/dropdown.iife.js +1 -0
  25. package/dist/iife/form.iife.js +1 -0
  26. package/dist/iife/icon.iife.js +1 -0
  27. package/dist/iife/image.iife.js +3 -0
  28. package/dist/iife/input.iife.js +1 -0
  29. package/dist/iife/link.iife.js +1 -0
  30. package/dist/iife/loading.iife.js +1 -0
  31. package/dist/iife/math.iife.js +261 -0
  32. package/dist/iife/message.iife.js +1 -0
  33. package/dist/iife/modal.iife.js +1 -0
  34. package/dist/iife/player.iife.js +31 -0
  35. package/dist/iife/popover.iife.js +1 -0
  36. package/dist/iife/progress.iife.js +1 -0
  37. package/dist/iife/radar.iife.js +1 -0
  38. package/dist/iife/route.iife.js +1 -0
  39. package/dist/iife/router.iife.js +1 -0
  40. package/dist/iife/scratch.iife.js +1 -0
  41. package/dist/iife/section.iife.js +1 -0
  42. package/dist/iife/select.iife.js +5 -0
  43. package/dist/iife/skeleton.iife.js +1 -0
  44. package/dist/iife/tab.iife.js +1 -0
  45. package/dist/iife/tabpane.iife.js +1 -0
  46. package/dist/{image-6GayFDqX.js → image-DKm6z7YQ.js} +17 -15
  47. package/dist/image.js +1 -1
  48. package/dist/index.cjs +16 -16
  49. package/dist/index.iife.js +35 -35
  50. package/dist/index.js +16 -16
  51. package/dist/input-Dskw1bAl.js +186 -0
  52. package/dist/input.js +1 -1
  53. package/dist/{katex-es-Cnq5Pk8K.cjs → katex-es-BTpuCxxV.cjs} +7 -7
  54. package/dist/{katex-es-Bpesphgp.js → katex-es-CKRwcaiU.js} +606 -606
  55. package/dist/{loading-Mko22ncl.js → loading-C4QUpm70.js} +1 -1
  56. package/dist/loading.js +1 -1
  57. package/dist/{math-B5PpSnFR.js → math-Dv4nXSoI.js} +1 -1
  58. package/dist/math.js +1 -1
  59. package/dist/{message-CQENvkoi.js → message-De5e1txT.js} +1 -1
  60. package/dist/message.js +1 -1
  61. package/dist/{player-CvfmwWUa.js → player-CqTAmg_E.js} +636 -638
  62. package/dist/player.js +1 -1
  63. package/dist/{popover-BCvHwLZb.js → popover-BY32HNMl.js} +19 -26
  64. package/dist/popover.js +1 -1
  65. package/dist/{progress-BWkNf2J5.js → progress-gZo0knzu.js} +11 -11
  66. package/dist/progress.js +1 -1
  67. package/dist/{radar-CWsawt2g.js → radar-19P5Mtld.js} +17 -17
  68. package/dist/radar.js +1 -1
  69. package/dist/ranui.css +1 -1
  70. package/dist/{select-BmhCUTLb.js → select-BVdUtQX5.js} +72 -51
  71. package/dist/select.js +1 -1
  72. package/dist/{skeleton-DPv9nFhL.js → skeleton-BAdJ6vyA.js} +1 -1
  73. package/dist/skeleton.js +1 -1
  74. package/dist/{tab-C9swK-hm.js → tab-DH2owP2V.js} +0 -1
  75. package/dist/tab.js +1 -1
  76. package/dist/vite.config.d.ts +4 -0
  77. package/docs/COMPONENTS.md +10 -12
  78. package/docs/DESIGN.md +16 -0
  79. package/package.json +3 -3
  80. package/dist/button-DukaD6uL.js +0 -117
  81. package/dist/colorpicker-Ch67dWa_.js +0 -302
  82. package/dist/input-DoraIb3x.js +0 -198
@@ -1,4 +1,4 @@
1
- var pe = class gr {
1
+ var ve = class gr {
2
2
  constructor(e, t, a) {
3
3
  this.lexer = void 0, this.start = void 0, this.end = void 0, this.lexer = e, this.start = t, this.end = a;
4
4
  }
@@ -10,7 +10,7 @@ var pe = class gr {
10
10
  this.text = void 0, this.loc = void 0, this.noexpand = void 0, this.treatAsRelax = void 0, this.text = e, this.loc = t;
11
11
  }
12
12
  range(e, t) {
13
- return new br(t, pe.range(this, e));
13
+ return new br(t, ve.range(this, e));
14
14
  }
15
15
  }, M = class yr {
16
16
  constructor(e, t) {
@@ -215,10 +215,10 @@ var m0 = class {
215
215
  return be[Ba[this.id]];
216
216
  }
217
217
  sub() {
218
- return be[Ca[this.id]];
218
+ return be[Na[this.id]];
219
219
  }
220
220
  fracNum() {
221
- return be[Na[this.id]];
221
+ return be[Ca[this.id]];
222
222
  }
223
223
  fracDen() {
224
224
  return be[qa[this.id]];
@@ -232,47 +232,47 @@ var m0 = class {
232
232
  isTight() {
233
233
  return this.size >= 2;
234
234
  }
235
- }, u0 = 0, Tt = 1, Je = 2, ze = 3, st = 4, me = 5, Qe = 6, ae = 7, be = [
235
+ }, u0 = 0, Tt = 1, Qe = 2, ze = 3, st = 4, ce = 5, _e = 6, ae = 7, be = [
236
236
  new Ie(u0, 0, !1),
237
237
  new Ie(Tt, 0, !0),
238
- new Ie(Je, 1, !1),
238
+ new Ie(Qe, 1, !1),
239
239
  new Ie(ze, 1, !0),
240
240
  new Ie(st, 2, !1),
241
- new Ie(me, 2, !0),
242
- new Ie(Qe, 3, !1),
241
+ new Ie(ce, 2, !0),
242
+ new Ie(_e, 3, !1),
243
243
  new Ie(ae, 3, !0)
244
244
  ], Ba = [
245
245
  st,
246
- me,
246
+ ce,
247
247
  st,
248
- me,
249
- Qe,
248
+ ce,
249
+ _e,
250
250
  ae,
251
- Qe,
251
+ _e,
252
252
  ae
253
- ], Ca = [
254
- me,
255
- me,
256
- me,
257
- me,
253
+ ], Na = [
254
+ ce,
255
+ ce,
256
+ ce,
257
+ ce,
258
258
  ae,
259
259
  ae,
260
260
  ae,
261
261
  ae
262
- ], Na = [
263
- Je,
262
+ ], Ca = [
263
+ Qe,
264
264
  ze,
265
265
  st,
266
- me,
267
- Qe,
266
+ ce,
267
+ _e,
268
268
  ae,
269
- Qe,
269
+ _e,
270
270
  ae
271
271
  ], qa = [
272
272
  ze,
273
273
  ze,
274
- me,
275
- me,
274
+ ce,
275
+ ce,
276
276
  ae,
277
277
  ae,
278
278
  ae,
@@ -282,24 +282,24 @@ var m0 = class {
282
282
  Tt,
283
283
  ze,
284
284
  ze,
285
- me,
286
- me,
285
+ ce,
286
+ ce,
287
287
  ae,
288
288
  ae
289
289
  ], Ea = [
290
290
  u0,
291
291
  Tt,
292
- Je,
292
+ Qe,
293
293
  ze,
294
- Je,
294
+ Qe,
295
295
  ze,
296
- Je,
296
+ Qe,
297
297
  ze
298
298
  ], I = {
299
299
  DISPLAY: be[u0],
300
- TEXT: be[Je],
300
+ TEXT: be[Qe],
301
301
  SCRIPT: be[st],
302
- SCRIPTSCRIPT: be[Qe]
302
+ SCRIPTSCRIPT: be[_e]
303
303
  }, t0 = [
304
304
  {
305
305
  name: "latin",
@@ -348,7 +348,7 @@ function xr(r) {
348
348
  for (var e = 0; e < zt.length; e += 2) if (r >= zt[e] && r <= zt[e + 1]) return !0;
349
349
  return !1;
350
350
  }
351
- var Ke = 80, Oa = function(e, t) {
351
+ var Je = 80, Oa = function(e, t) {
352
352
  return "M95," + (622 + e + t) + `
353
353
  c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
354
354
  c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
@@ -420,22 +420,22 @@ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
420
420
  var n = "";
421
421
  switch (e) {
422
422
  case "sqrtMain":
423
- n = Oa(t, Ke);
423
+ n = Oa(t, Je);
424
424
  break;
425
425
  case "sqrtSize1":
426
- n = Da(t, Ke);
426
+ n = Da(t, Je);
427
427
  break;
428
428
  case "sqrtSize2":
429
- n = La(t, Ke);
429
+ n = La(t, Je);
430
430
  break;
431
431
  case "sqrtSize3":
432
- n = Ha(t, Ke);
432
+ n = Ha(t, Je);
433
433
  break;
434
434
  case "sqrtSize4":
435
- n = Fa(t, Ke);
435
+ n = Fa(t, Je);
436
436
  break;
437
437
  case "sqrtTall":
438
- n = Ga(t, Ke, a);
438
+ n = Ga(t, Je, a);
439
439
  }
440
440
  return n;
441
441
  }, Ua = function(e, t) {
@@ -15403,9 +15403,9 @@ var Wa = [
15403
15403
  2.488
15404
15404
  ], D0 = function(e, t) {
15405
15405
  return t.size < 2 ? e : Wa[e - 1][t.size - 1];
15406
- }, kr = class Ue {
15406
+ }, kr = class $e {
15407
15407
  constructor(e) {
15408
- 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 || Ue.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 = O0[this.size - 1], this.maxSize = e.maxSize, this.minRuleThickness = e.minRuleThickness, this._fontMetrics = void 0;
15408
+ 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 || $e.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 = O0[this.size - 1], this.maxSize = e.maxSize, this.minRuleThickness = e.minRuleThickness, this._fontMetrics = void 0;
15409
15409
  }
15410
15410
  extend(e) {
15411
15411
  var t = {
@@ -15422,7 +15422,7 @@ var Wa = [
15422
15422
  minRuleThickness: this.minRuleThickness
15423
15423
  };
15424
15424
  for (var a in e) e.hasOwnProperty(a) && (t[a] = e[a]);
15425
- return new Ue(t);
15425
+ return new $e(t);
15426
15426
  }
15427
15427
  havingStyle(e) {
15428
15428
  return this.style === e ? this : this.extend({
@@ -15443,8 +15443,8 @@ var Wa = [
15443
15443
  }
15444
15444
  havingBaseStyle(e) {
15445
15445
  e = e || this.style.text();
15446
- var t = D0(Ue.BASESIZE, e);
15447
- return this.size === t && this.textSize === Ue.BASESIZE && this.style === e ? this : this.extend({
15446
+ var t = D0($e.BASESIZE, e);
15447
+ return this.size === t && this.textSize === $e.BASESIZE && this.style === e ? this : this.extend({
15448
15448
  style: e,
15449
15449
  size: t
15450
15450
  });
@@ -15503,10 +15503,10 @@ var Wa = [
15503
15503
  ] : [];
15504
15504
  }
15505
15505
  baseSizingClasses() {
15506
- return this.size !== Ue.BASESIZE ? [
15506
+ return this.size !== $e.BASESIZE ? [
15507
15507
  "sizing",
15508
15508
  "reset-size" + this.size,
15509
- "size" + Ue.BASESIZE
15509
+ "size" + $e.BASESIZE
15510
15510
  ] : [];
15511
15511
  }
15512
15512
  fontMetrics() {
@@ -15536,7 +15536,7 @@ var r0 = {
15536
15536
  mu: !0
15537
15537
  }, Sr = function(e) {
15538
15538
  return typeof e != "string" && (e = e.unit), e in r0 || e in ja || e === "ex";
15539
- }, j = function(e, t) {
15539
+ }, Z = function(e, t) {
15540
15540
  var a;
15541
15541
  if (e.unit in r0) a = r0[e.unit] / t.fontMetrics().ptPerEm / t.sizeMultiplier;
15542
15542
  else if (e.unit === "mu") a = t.fontMetrics().cssEmPerMu;
@@ -15630,7 +15630,7 @@ var r0 = {
15630
15630
  ï: "ı̈",
15631
15631
  í: "ı́",
15632
15632
  ì: "ı̀"
15633
- }, ue = class {
15633
+ }, de = class {
15634
15634
  constructor(r, e, t, a, n, s, o, m) {
15635
15635
  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 = r, this.height = e || 0, this.depth = t || 0, this.italic = a || 0, this.skew = n || 0, this.width = s || 0, this.classes = o || [], this.style = m || {}, this.maxFontSize = 0;
15636
15636
  var c = Ia(this.text.charCodeAt(0));
@@ -15699,7 +15699,7 @@ var r0 = {
15699
15699
  }
15700
15700
  };
15701
15701
  function L0(r) {
15702
- if (r instanceof ue) return r;
15702
+ if (r instanceof de) return r;
15703
15703
  throw new Error("Expected symbolNode but got " + String(r) + ".");
15704
15704
  }
15705
15705
  function Ja(r) {
@@ -15730,7 +15730,7 @@ function i(r, e, t, a, n, s) {
15730
15730
  replace: a
15731
15731
  }, s && a && (X[r][a] = X[r][n]);
15732
15732
  }
15733
- var l = "math", k = "text", h = "main", d = "ams", Y = "accent-token", C = "bin", ne = "close", _e = "inner", E = "mathord", _ = "op-token", le = "open", qt = "punct", f = "rel", Ne = "spacing", v = "textord";
15733
+ var l = "math", k = "text", h = "main", d = "ams", W = "accent-token", N = "bin", ne = "close", et = "inner", E = "mathord", Q = "op-token", he = "open", qt = "punct", f = "rel", Ce = "spacing", v = "textord";
15734
15734
  i(l, h, f, "≡", "\\equiv", !0);
15735
15735
  i(l, h, f, "≺", "\\prec", !0);
15736
15736
  i(l, h, f, "≻", "\\succ", !0);
@@ -15788,21 +15788,21 @@ i(l, h, v, "‡", "\\ddag");
15788
15788
  i(k, h, v, "‡", "\\ddag");
15789
15789
  i(k, h, v, "‡", "\\textdaggerdbl");
15790
15790
  i(l, h, ne, "⎱", "\\rmoustache", !0);
15791
- i(l, h, le, "⎰", "\\lmoustache", !0);
15791
+ i(l, h, he, "⎰", "\\lmoustache", !0);
15792
15792
  i(l, h, ne, "⟯", "\\rgroup", !0);
15793
- i(l, h, le, "⟮", "\\lgroup", !0);
15794
- i(l, h, C, "∓", "\\mp", !0);
15795
- i(l, h, C, "⊖", "\\ominus", !0);
15796
- i(l, h, C, "⊎", "\\uplus", !0);
15797
- i(l, h, C, "⊓", "\\sqcap", !0);
15798
- i(l, h, C, "∗", "\\ast");
15799
- i(l, h, C, "⊔", "\\sqcup", !0);
15800
- i(l, h, C, "◯", "\\bigcirc", !0);
15801
- i(l, h, C, "∙", "\\bullet", !0);
15802
- i(l, h, C, "‡", "\\ddagger");
15803
- i(l, h, C, "≀", "\\wr", !0);
15804
- i(l, h, C, "⨿", "\\amalg");
15805
- i(l, h, C, "&", "\\And");
15793
+ i(l, h, he, "⟮", "\\lgroup", !0);
15794
+ i(l, h, N, "∓", "\\mp", !0);
15795
+ i(l, h, N, "⊖", "\\ominus", !0);
15796
+ i(l, h, N, "⊎", "\\uplus", !0);
15797
+ i(l, h, N, "⊓", "\\sqcap", !0);
15798
+ i(l, h, N, "∗", "\\ast");
15799
+ i(l, h, N, "⊔", "\\sqcup", !0);
15800
+ i(l, h, N, "◯", "\\bigcirc", !0);
15801
+ i(l, h, N, "∙", "\\bullet", !0);
15802
+ i(l, h, N, "‡", "\\ddagger");
15803
+ i(l, h, N, "≀", "\\wr", !0);
15804
+ i(l, h, N, "⨿", "\\amalg");
15805
+ i(l, h, N, "&", "\\And");
15806
15806
  i(l, h, f, "⟵", "\\longleftarrow", !0);
15807
15807
  i(l, h, f, "⇐", "\\Leftarrow", !0);
15808
15808
  i(l, h, f, "⟸", "\\Longleftarrow", !0);
@@ -15876,8 +15876,8 @@ i(l, d, f, "⊮", "\\nVdash", !0);
15876
15876
  i(l, d, f, "⪵", "\\precneqq", !0);
15877
15877
  i(l, d, f, "⪶", "\\succneqq", !0);
15878
15878
  i(l, d, f, "", "\\@nsubseteqq");
15879
- i(l, d, C, "⊴", "\\unlhd");
15880
- i(l, d, C, "⊵", "\\unrhd");
15879
+ i(l, d, N, "⊴", "\\unlhd");
15880
+ i(l, d, N, "⊵", "\\unrhd");
15881
15881
  i(l, d, f, "↚", "\\nleftarrow", !0);
15882
15882
  i(l, d, f, "↛", "\\nrightarrow", !0);
15883
15883
  i(l, d, f, "⇍", "\\nLeftarrow", !0);
@@ -15920,9 +15920,9 @@ i(l, d, v, "ℸ", "\\daleth", !0);
15920
15920
  i(l, d, v, "ℷ", "\\gimel", !0);
15921
15921
  i(l, d, v, "ϝ", "\\digamma", !0);
15922
15922
  i(l, d, v, "ϰ", "\\varkappa");
15923
- i(l, d, le, "┌", "\\@ulcorner", !0);
15923
+ i(l, d, he, "┌", "\\@ulcorner", !0);
15924
15924
  i(l, d, ne, "┐", "\\@urcorner", !0);
15925
- i(l, d, le, "└", "\\@llcorner", !0);
15925
+ i(l, d, he, "└", "\\@llcorner", !0);
15926
15926
  i(l, d, ne, "┘", "\\@lrcorner", !0);
15927
15927
  i(l, d, f, "≦", "\\leqq", !0);
15928
15928
  i(l, d, f, "⩽", "\\leqslant", !0);
@@ -15930,7 +15930,7 @@ i(l, d, f, "⪕", "\\eqslantless", !0);
15930
15930
  i(l, d, f, "≲", "\\lesssim", !0);
15931
15931
  i(l, d, f, "⪅", "\\lessapprox", !0);
15932
15932
  i(l, d, f, "≊", "\\approxeq", !0);
15933
- i(l, d, C, "⋖", "\\lessdot");
15933
+ i(l, d, N, "⋖", "\\lessdot");
15934
15934
  i(l, d, f, "⋘", "\\lll", !0);
15935
15935
  i(l, d, f, "≶", "\\lessgtr", !0);
15936
15936
  i(l, d, f, "⋚", "\\lesseqgtr", !0);
@@ -15960,7 +15960,7 @@ i(l, d, f, "⩾", "\\geqslant", !0);
15960
15960
  i(l, d, f, "⪖", "\\eqslantgtr", !0);
15961
15961
  i(l, d, f, "≳", "\\gtrsim", !0);
15962
15962
  i(l, d, f, "⪆", "\\gtrapprox", !0);
15963
- i(l, d, C, "⋗", "\\gtrdot");
15963
+ i(l, d, N, "⋗", "\\gtrdot");
15964
15964
  i(l, d, f, "⋙", "\\ggg", !0);
15965
15965
  i(l, d, f, "≷", "\\gtrless", !0);
15966
15966
  i(l, d, f, "⋛", "\\gtreqless", !0);
@@ -15992,32 +15992,32 @@ i(l, d, f, "▶", "\\blacktriangleright");
15992
15992
  i(l, d, f, "∵", "\\because", !0);
15993
15993
  i(l, d, f, "⋘", "\\llless");
15994
15994
  i(l, d, f, "⋙", "\\gggtr");
15995
- i(l, d, C, "⊲", "\\lhd");
15996
- i(l, d, C, "⊳", "\\rhd");
15995
+ i(l, d, N, "⊲", "\\lhd");
15996
+ i(l, d, N, "⊳", "\\rhd");
15997
15997
  i(l, d, f, "≂", "\\eqsim", !0);
15998
15998
  i(l, h, f, "⋈", "\\Join");
15999
15999
  i(l, d, f, "≑", "\\Doteq", !0);
16000
- i(l, d, C, "∔", "\\dotplus", !0);
16001
- i(l, d, C, "∖", "\\smallsetminus");
16002
- i(l, d, C, "⋒", "\\Cap", !0);
16003
- i(l, d, C, "⋓", "\\Cup", !0);
16004
- i(l, d, C, "⩞", "\\doublebarwedge", !0);
16005
- i(l, d, C, "⊟", "\\boxminus", !0);
16006
- i(l, d, C, "⊞", "\\boxplus", !0);
16007
- i(l, d, C, "⋇", "\\divideontimes", !0);
16008
- i(l, d, C, "⋉", "\\ltimes", !0);
16009
- i(l, d, C, "⋊", "\\rtimes", !0);
16010
- i(l, d, C, "⋋", "\\leftthreetimes", !0);
16011
- i(l, d, C, "⋌", "\\rightthreetimes", !0);
16012
- i(l, d, C, "⋏", "\\curlywedge", !0);
16013
- i(l, d, C, "⋎", "\\curlyvee", !0);
16014
- i(l, d, C, "⊝", "\\circleddash", !0);
16015
- i(l, d, C, "⊛", "\\circledast", !0);
16016
- i(l, d, C, "⋅", "\\centerdot");
16017
- i(l, d, C, "⊺", "\\intercal", !0);
16018
- i(l, d, C, "⋒", "\\doublecap");
16019
- i(l, d, C, "⋓", "\\doublecup");
16020
- i(l, d, C, "⊠", "\\boxtimes", !0);
16000
+ i(l, d, N, "∔", "\\dotplus", !0);
16001
+ i(l, d, N, "∖", "\\smallsetminus");
16002
+ i(l, d, N, "⋒", "\\Cap", !0);
16003
+ i(l, d, N, "⋓", "\\Cup", !0);
16004
+ i(l, d, N, "⩞", "\\doublebarwedge", !0);
16005
+ i(l, d, N, "⊟", "\\boxminus", !0);
16006
+ i(l, d, N, "⊞", "\\boxplus", !0);
16007
+ i(l, d, N, "⋇", "\\divideontimes", !0);
16008
+ i(l, d, N, "⋉", "\\ltimes", !0);
16009
+ i(l, d, N, "⋊", "\\rtimes", !0);
16010
+ i(l, d, N, "⋋", "\\leftthreetimes", !0);
16011
+ i(l, d, N, "⋌", "\\rightthreetimes", !0);
16012
+ i(l, d, N, "⋏", "\\curlywedge", !0);
16013
+ i(l, d, N, "⋎", "\\curlyvee", !0);
16014
+ i(l, d, N, "⊝", "\\circleddash", !0);
16015
+ i(l, d, N, "⊛", "\\circledast", !0);
16016
+ i(l, d, N, "⋅", "\\centerdot");
16017
+ i(l, d, N, "⊺", "\\intercal", !0);
16018
+ i(l, d, N, "⋒", "\\doublecap");
16019
+ i(l, d, N, "⋓", "\\doublecup");
16020
+ i(l, d, N, "⊠", "\\boxtimes", !0);
16021
16021
  i(l, d, f, "⇢", "\\dashrightarrow", !0);
16022
16022
  i(l, d, f, "⇠", "\\dashleftarrow", !0);
16023
16023
  i(l, d, f, "⇇", "\\leftleftarrows", !0);
@@ -16125,25 +16125,25 @@ i(l, h, E, "ϖ", "\\varpi", !0);
16125
16125
  i(l, h, E, "ϱ", "\\varrho", !0);
16126
16126
  i(l, h, E, "ς", "\\varsigma", !0);
16127
16127
  i(l, h, E, "φ", "\\varphi", !0);
16128
- i(l, h, C, "∗", "*", !0);
16129
- i(l, h, C, "+", "+");
16130
- i(l, h, C, "−", "-", !0);
16131
- i(l, h, C, "⋅", "\\cdot", !0);
16132
- i(l, h, C, "∘", "\\circ", !0);
16133
- i(l, h, C, "÷", "\\div", !0);
16134
- i(l, h, C, "±", "\\pm", !0);
16135
- i(l, h, C, "×", "\\times", !0);
16136
- i(l, h, C, "∩", "\\cap", !0);
16137
- i(l, h, C, "∪", "\\cup", !0);
16138
- i(l, h, C, "∖", "\\setminus", !0);
16139
- i(l, h, C, "∧", "\\land");
16140
- i(l, h, C, "∨", "\\lor");
16141
- i(l, h, C, "∧", "\\wedge", !0);
16142
- i(l, h, C, "∨", "\\vee", !0);
16128
+ i(l, h, N, "∗", "*", !0);
16129
+ i(l, h, N, "+", "+");
16130
+ i(l, h, N, "−", "-", !0);
16131
+ i(l, h, N, "⋅", "\\cdot", !0);
16132
+ i(l, h, N, "∘", "\\circ", !0);
16133
+ i(l, h, N, "÷", "\\div", !0);
16134
+ i(l, h, N, "±", "\\pm", !0);
16135
+ i(l, h, N, "×", "\\times", !0);
16136
+ i(l, h, N, "∩", "\\cap", !0);
16137
+ i(l, h, N, "∪", "\\cup", !0);
16138
+ i(l, h, N, "∖", "\\setminus", !0);
16139
+ i(l, h, N, "∧", "\\land");
16140
+ i(l, h, N, "∨", "\\lor");
16141
+ i(l, h, N, "∧", "\\wedge", !0);
16142
+ i(l, h, N, "∨", "\\vee", !0);
16143
16143
  i(l, h, v, "√", "\\surd");
16144
- i(l, h, le, "⟨", "\\langle", !0);
16145
- i(l, h, le, "∣", "\\lvert");
16146
- i(l, h, le, "∥", "\\lVert");
16144
+ i(l, h, he, "⟨", "\\langle", !0);
16145
+ i(l, h, he, "∣", "\\lvert");
16146
+ i(l, h, he, "∥", "\\lVert");
16147
16147
  i(l, h, ne, "?", "?");
16148
16148
  i(l, h, ne, "!", "!");
16149
16149
  i(l, h, ne, "⟩", "\\rangle", !0);
@@ -16174,52 +16174,52 @@ i(l, h, f, "→", "\\rightarrow", !0);
16174
16174
  i(l, h, f, "→", "\\to");
16175
16175
  i(l, d, f, "≱", "\\ngeq", !0);
16176
16176
  i(l, d, f, "≰", "\\nleq", !0);
16177
- i(l, h, Ne, " ", "\\ ");
16178
- i(l, h, Ne, " ", "\\space");
16179
- i(l, h, Ne, " ", "\\nobreakspace");
16180
- i(k, h, Ne, " ", "\\ ");
16181
- i(k, h, Ne, " ", " ");
16182
- i(k, h, Ne, " ", "\\space");
16183
- i(k, h, Ne, " ", "\\nobreakspace");
16184
- i(l, h, Ne, null, "\\nobreak");
16185
- i(l, h, Ne, null, "\\allowbreak");
16177
+ i(l, h, Ce, " ", "\\ ");
16178
+ i(l, h, Ce, " ", "\\space");
16179
+ i(l, h, Ce, " ", "\\nobreakspace");
16180
+ i(k, h, Ce, " ", "\\ ");
16181
+ i(k, h, Ce, " ", " ");
16182
+ i(k, h, Ce, " ", "\\space");
16183
+ i(k, h, Ce, " ", "\\nobreakspace");
16184
+ i(l, h, Ce, null, "\\nobreak");
16185
+ i(l, h, Ce, null, "\\allowbreak");
16186
16186
  i(l, h, qt, ",", ",");
16187
16187
  i(l, h, qt, ";", ";");
16188
- i(l, d, C, "⊼", "\\barwedge", !0);
16189
- i(l, d, C, "⊻", "\\veebar", !0);
16190
- i(l, h, C, "⊙", "\\odot", !0);
16191
- i(l, h, C, "⊕", "\\oplus", !0);
16192
- i(l, h, C, "⊗", "\\otimes", !0);
16188
+ i(l, d, N, "⊼", "\\barwedge", !0);
16189
+ i(l, d, N, "⊻", "\\veebar", !0);
16190
+ i(l, h, N, "⊙", "\\odot", !0);
16191
+ i(l, h, N, "⊕", "\\oplus", !0);
16192
+ i(l, h, N, "⊗", "\\otimes", !0);
16193
16193
  i(l, h, v, "∂", "\\partial", !0);
16194
- i(l, h, C, "⊘", "\\oslash", !0);
16195
- i(l, d, C, "⊚", "\\circledcirc", !0);
16196
- i(l, d, C, "⊡", "\\boxdot", !0);
16197
- i(l, h, C, "△", "\\bigtriangleup");
16198
- i(l, h, C, "▽", "\\bigtriangledown");
16199
- i(l, h, C, "†", "\\dagger");
16200
- i(l, h, C, "⋄", "\\diamond");
16201
- i(l, h, C, "⋆", "\\star");
16202
- i(l, h, C, "◃", "\\triangleleft");
16203
- i(l, h, C, "▹", "\\triangleright");
16204
- i(l, h, le, "{", "\\{");
16194
+ i(l, h, N, "⊘", "\\oslash", !0);
16195
+ i(l, d, N, "⊚", "\\circledcirc", !0);
16196
+ i(l, d, N, "⊡", "\\boxdot", !0);
16197
+ i(l, h, N, "△", "\\bigtriangleup");
16198
+ i(l, h, N, "▽", "\\bigtriangledown");
16199
+ i(l, h, N, "†", "\\dagger");
16200
+ i(l, h, N, "⋄", "\\diamond");
16201
+ i(l, h, N, "⋆", "\\star");
16202
+ i(l, h, N, "◃", "\\triangleleft");
16203
+ i(l, h, N, "▹", "\\triangleright");
16204
+ i(l, h, he, "{", "\\{");
16205
16205
  i(k, h, v, "{", "\\{");
16206
16206
  i(k, h, v, "{", "\\textbraceleft");
16207
16207
  i(l, h, ne, "}", "\\}");
16208
16208
  i(k, h, v, "}", "\\}");
16209
16209
  i(k, h, v, "}", "\\textbraceright");
16210
- i(l, h, le, "{", "\\lbrace");
16210
+ i(l, h, he, "{", "\\lbrace");
16211
16211
  i(l, h, ne, "}", "\\rbrace");
16212
- i(l, h, le, "[", "\\lbrack", !0);
16212
+ i(l, h, he, "[", "\\lbrack", !0);
16213
16213
  i(k, h, v, "[", "\\lbrack", !0);
16214
16214
  i(l, h, ne, "]", "\\rbrack", !0);
16215
16215
  i(k, h, v, "]", "\\rbrack", !0);
16216
- i(l, h, le, "(", "\\lparen", !0);
16216
+ i(l, h, he, "(", "\\lparen", !0);
16217
16217
  i(l, h, ne, ")", "\\rparen", !0);
16218
16218
  i(k, h, v, "<", "\\textless", !0);
16219
16219
  i(k, h, v, ">", "\\textgreater", !0);
16220
- i(l, h, le, "⌊", "\\lfloor", !0);
16220
+ i(l, h, he, "⌊", "\\lfloor", !0);
16221
16221
  i(l, h, ne, "⌋", "\\rfloor", !0);
16222
- i(l, h, le, "⌈", "\\lceil", !0);
16222
+ i(l, h, he, "⌈", "\\lceil", !0);
16223
16223
  i(l, h, ne, "⌉", "\\rceil", !0);
16224
16224
  i(l, h, v, "\\", "\\backslash");
16225
16225
  i(l, h, v, "∣", "|");
@@ -16237,44 +16237,44 @@ i(l, h, f, "↓", "\\downarrow", !0);
16237
16237
  i(l, h, f, "⇓", "\\Downarrow", !0);
16238
16238
  i(l, h, f, "↕", "\\updownarrow", !0);
16239
16239
  i(l, h, f, "⇕", "\\Updownarrow", !0);
16240
- i(l, h, _, "∐", "\\coprod");
16241
- i(l, h, _, "⋁", "\\bigvee");
16242
- i(l, h, _, "⋀", "\\bigwedge");
16243
- i(l, h, _, "⨄", "\\biguplus");
16244
- i(l, h, _, "⋂", "\\bigcap");
16245
- i(l, h, _, "⋃", "\\bigcup");
16246
- i(l, h, _, "∫", "\\int");
16247
- i(l, h, _, "∫", "\\intop");
16248
- i(l, h, _, "∬", "\\iint");
16249
- i(l, h, _, "∭", "\\iiint");
16250
- i(l, h, _, "∏", "\\prod");
16251
- i(l, h, _, "∑", "\\sum");
16252
- i(l, h, _, "⨂", "\\bigotimes");
16253
- i(l, h, _, "⨁", "\\bigoplus");
16254
- i(l, h, _, "⨀", "\\bigodot");
16255
- i(l, h, _, "∮", "\\oint");
16256
- i(l, h, _, "∯", "\\oiint");
16257
- i(l, h, _, "∰", "\\oiiint");
16258
- i(l, h, _, "⨆", "\\bigsqcup");
16259
- i(l, h, _, "∫", "\\smallint");
16260
- i(k, h, _e, "…", "\\textellipsis");
16261
- i(l, h, _e, "…", "\\mathellipsis");
16262
- i(k, h, _e, "…", "\\ldots", !0);
16263
- i(l, h, _e, "…", "\\ldots", !0);
16264
- i(l, h, _e, "⋯", "\\@cdots", !0);
16265
- i(l, h, _e, "⋱", "\\ddots", !0);
16240
+ i(l, h, Q, "∐", "\\coprod");
16241
+ i(l, h, Q, "⋁", "\\bigvee");
16242
+ i(l, h, Q, "⋀", "\\bigwedge");
16243
+ i(l, h, Q, "⨄", "\\biguplus");
16244
+ i(l, h, Q, "⋂", "\\bigcap");
16245
+ i(l, h, Q, "⋃", "\\bigcup");
16246
+ i(l, h, Q, "∫", "\\int");
16247
+ i(l, h, Q, "∫", "\\intop");
16248
+ i(l, h, Q, "∬", "\\iint");
16249
+ i(l, h, Q, "∭", "\\iiint");
16250
+ i(l, h, Q, "∏", "\\prod");
16251
+ i(l, h, Q, "∑", "\\sum");
16252
+ i(l, h, Q, "⨂", "\\bigotimes");
16253
+ i(l, h, Q, "⨁", "\\bigoplus");
16254
+ i(l, h, Q, "⨀", "\\bigodot");
16255
+ i(l, h, Q, "∮", "\\oint");
16256
+ i(l, h, Q, "∯", "\\oiint");
16257
+ i(l, h, Q, "∰", "\\oiiint");
16258
+ i(l, h, Q, "⨆", "\\bigsqcup");
16259
+ i(l, h, Q, "∫", "\\smallint");
16260
+ i(k, h, et, "…", "\\textellipsis");
16261
+ i(l, h, et, "…", "\\mathellipsis");
16262
+ i(k, h, et, "…", "\\ldots", !0);
16263
+ i(l, h, et, "…", "\\ldots", !0);
16264
+ i(l, h, et, "⋯", "\\@cdots", !0);
16265
+ i(l, h, et, "⋱", "\\ddots", !0);
16266
16266
  i(l, h, v, "⋮", "\\varvdots");
16267
- i(l, h, Y, "ˊ", "\\acute");
16268
- i(l, h, Y, "ˋ", "\\grave");
16269
- i(l, h, Y, "¨", "\\ddot");
16270
- i(l, h, Y, "~", "\\tilde");
16271
- i(l, h, Y, "ˉ", "\\bar");
16272
- i(l, h, Y, "˘", "\\breve");
16273
- i(l, h, Y, "ˇ", "\\check");
16274
- i(l, h, Y, "^", "\\hat");
16275
- i(l, h, Y, "⃗", "\\vec");
16276
- i(l, h, Y, "˙", "\\dot");
16277
- i(l, h, Y, "˚", "\\mathring");
16267
+ i(l, h, W, "ˊ", "\\acute");
16268
+ i(l, h, W, "ˋ", "\\grave");
16269
+ i(l, h, W, "¨", "\\ddot");
16270
+ i(l, h, W, "~", "\\tilde");
16271
+ i(l, h, W, "ˉ", "\\bar");
16272
+ i(l, h, W, "˘", "\\breve");
16273
+ i(l, h, W, "ˇ", "\\check");
16274
+ i(l, h, W, "^", "\\hat");
16275
+ i(l, h, W, "⃗", "\\vec");
16276
+ i(l, h, W, "˙", "\\dot");
16277
+ i(l, h, W, "˚", "\\mathring");
16278
16278
  i(l, h, E, "", "\\@imath");
16279
16279
  i(l, h, E, "", "\\@jmath");
16280
16280
  i(l, h, v, "ı", "ı");
@@ -16288,19 +16288,19 @@ i(k, h, v, "ø", "\\o", !0);
16288
16288
  i(k, h, v, "Æ", "\\AE", !0);
16289
16289
  i(k, h, v, "Œ", "\\OE", !0);
16290
16290
  i(k, h, v, "Ø", "\\O", !0);
16291
- i(k, h, Y, "ˊ", "\\'");
16292
- i(k, h, Y, "ˋ", "\\`");
16293
- i(k, h, Y, "ˆ", "\\^");
16294
- i(k, h, Y, "˜", "\\~");
16295
- i(k, h, Y, "ˉ", "\\=");
16296
- i(k, h, Y, "˘", "\\u");
16297
- i(k, h, Y, "˙", "\\.");
16298
- i(k, h, Y, "¸", "\\c");
16299
- i(k, h, Y, "˚", "\\r");
16300
- i(k, h, Y, "ˇ", "\\v");
16301
- i(k, h, Y, "¨", '\\"');
16302
- i(k, h, Y, "˝", "\\H");
16303
- i(k, h, Y, "◯", "\\textcircled");
16291
+ i(k, h, W, "ˊ", "\\'");
16292
+ i(k, h, W, "ˋ", "\\`");
16293
+ i(k, h, W, "ˆ", "\\^");
16294
+ i(k, h, W, "˜", "\\~");
16295
+ i(k, h, W, "ˉ", "\\=");
16296
+ i(k, h, W, "˘", "\\u");
16297
+ i(k, h, W, "˙", "\\.");
16298
+ i(k, h, W, "¸", "\\c");
16299
+ i(k, h, W, "˚", "\\r");
16300
+ i(k, h, W, "ˇ", "\\v");
16301
+ i(k, h, W, "¨", '\\"');
16302
+ i(k, h, W, "˝", "\\H");
16303
+ i(k, h, W, "◯", "\\textcircled");
16304
16304
  var Ar = {
16305
16305
  "--": !0,
16306
16306
  "---": !0,
@@ -16359,17 +16359,17 @@ i(l, d, v, "Z", "ℤ");
16359
16359
  i(k, d, v, "Z", "ℤ");
16360
16360
  i(l, h, E, "h", "ℎ");
16361
16361
  i(k, h, E, "h", "ℎ");
16362
- var O = "";
16362
+ var D = "";
16363
16363
  for (var re = 0; re < At.length; re++) {
16364
16364
  var K = At.charAt(re);
16365
- O = String.fromCharCode(55349, 56320 + re), i(l, h, E, K, O), i(k, h, v, K, O), O = String.fromCharCode(55349, 56372 + re), i(l, h, E, K, O), i(k, h, v, K, O), O = String.fromCharCode(55349, 56424 + re), i(l, h, E, K, O), i(k, h, v, K, O), O = String.fromCharCode(55349, 56580 + re), i(l, h, E, K, O), i(k, h, v, K, O), O = String.fromCharCode(55349, 56684 + re), i(l, h, E, K, O), i(k, h, v, K, O), O = String.fromCharCode(55349, 56736 + re), i(l, h, E, K, O), i(k, h, v, K, O), O = String.fromCharCode(55349, 56788 + re), i(l, h, E, K, O), i(k, h, v, K, O), O = String.fromCharCode(55349, 56840 + re), i(l, h, E, K, O), i(k, h, v, K, O), O = String.fromCharCode(55349, 56944 + re), i(l, h, E, K, O), i(k, h, v, K, O), re < 26 && (O = String.fromCharCode(55349, 56632 + re), i(l, h, E, K, O), i(k, h, v, K, O), O = String.fromCharCode(55349, 56476 + re), i(l, h, E, K, O), i(k, h, v, K, O));
16365
+ D = String.fromCharCode(55349, 56320 + re), i(l, h, E, K, D), i(k, h, v, K, D), D = String.fromCharCode(55349, 56372 + re), i(l, h, E, K, D), i(k, h, v, K, D), D = String.fromCharCode(55349, 56424 + re), i(l, h, E, K, D), i(k, h, v, K, D), D = String.fromCharCode(55349, 56580 + re), i(l, h, E, K, D), i(k, h, v, K, D), D = String.fromCharCode(55349, 56684 + re), i(l, h, E, K, D), i(k, h, v, K, D), D = String.fromCharCode(55349, 56736 + re), i(l, h, E, K, D), i(k, h, v, K, D), D = String.fromCharCode(55349, 56788 + re), i(l, h, E, K, D), i(k, h, v, K, D), D = String.fromCharCode(55349, 56840 + re), i(l, h, E, K, D), i(k, h, v, K, D), D = String.fromCharCode(55349, 56944 + re), i(l, h, E, K, D), i(k, h, v, K, D), re < 26 && (D = String.fromCharCode(55349, 56632 + re), i(l, h, E, K, D), i(k, h, v, K, D), D = String.fromCharCode(55349, 56476 + re), i(l, h, E, K, D), i(k, h, v, K, D));
16366
16366
  }
16367
- O = "𝕜";
16368
- i(l, h, E, "k", O);
16369
- i(k, h, v, "k", O);
16370
- for (var Ge = 0; Ge < 10; Ge++) {
16371
- var Oe = Ge.toString();
16372
- O = String.fromCharCode(55349, 57294 + Ge), i(l, h, E, Oe, O), i(k, h, v, Oe, O), O = String.fromCharCode(55349, 57314 + Ge), i(l, h, E, Oe, O), i(k, h, v, Oe, O), O = String.fromCharCode(55349, 57324 + Ge), i(l, h, E, Oe, O), i(k, h, v, Oe, O), O = String.fromCharCode(55349, 57334 + Ge), i(l, h, E, Oe, O), i(k, h, v, Oe, O);
16367
+ D = "𝕜";
16368
+ i(l, h, E, "k", D);
16369
+ i(k, h, v, "k", D);
16370
+ for (var Ve = 0; Ve < 10; Ve++) {
16371
+ var Oe = Ve.toString();
16372
+ D = String.fromCharCode(55349, 57294 + Ve), i(l, h, E, Oe, D), i(k, h, v, Oe, D), D = String.fromCharCode(55349, 57314 + Ve), i(l, h, E, Oe, D), i(k, h, v, Oe, D), D = String.fromCharCode(55349, 57324 + Ve), i(l, h, E, Oe, D), i(k, h, v, Oe, D), D = String.fromCharCode(55349, 57334 + Ve), i(l, h, E, Oe, D), i(k, h, v, Oe, D);
16373
16373
  }
16374
16374
  var n0 = "ÐÞþ";
16375
16375
  for (var Xt = 0; Xt < n0.length; Xt++) {
@@ -16551,15 +16551,15 @@ var bt = [
16551
16551
  value: e,
16552
16552
  metrics: c0(e, t, a)
16553
16553
  };
16554
- }, ve = function(e, t, a, n, s) {
16554
+ }, ge = function(e, t, a, n, s) {
16555
16555
  var o = Rt(e, t, a), m = o.metrics;
16556
16556
  e = o.value;
16557
16557
  var c;
16558
16558
  if (m) {
16559
16559
  var p = m.italic;
16560
- (a === "text" || n && n.font === "mathit") && (p = 0), c = new ue(e, m.height, m.depth, p, m.skew, m.width, s);
16560
+ (a === "text" || n && n.font === "mathit") && (p = 0), c = new de(e, m.height, m.depth, p, m.skew, m.width, s);
16561
16561
  } else
16562
- typeof console < "u" && console.warn("No character metrics " + ("for '" + e + "' in style '" + t + "' and mode '" + a + "'")), c = new ue(e, 0, 0, 0, 0, 0, s);
16562
+ typeof console < "u" && console.warn("No character metrics " + ("for '" + e + "' in style '" + t + "' and mode '" + a + "'")), c = new de(e, 0, 0, 0, 0, 0, s);
16563
16563
  if (n) {
16564
16564
  c.maxFontSize = n.sizeMultiplier, n.style.isTight() && c.classes.push("mtight");
16565
16565
  var g = n.getColor();
@@ -16567,7 +16567,7 @@ var bt = [
16567
16567
  }
16568
16568
  return c;
16569
16569
  }, t1 = function(e, t, a, n) {
16570
- return n === void 0 && (n = []), a.font === "boldsymbol" && Rt(e, "Main-Bold", t).metrics ? ve(e, "Main-Bold", t, a, n.concat(["mathbf"])) : e === "\\" || X[t][e].font === "main" ? ve(e, "Main-Regular", t, a, n) : ve(e, "AMS-Regular", t, a, n.concat(["amsrm"]));
16570
+ return n === void 0 && (n = []), a.font === "boldsymbol" && Rt(e, "Main-Bold", t).metrics ? ge(e, "Main-Bold", t, a, n.concat(["mathbf"])) : e === "\\" || X[t][e].font === "main" ? ge(e, "Main-Regular", t, a, n) : ge(e, "AMS-Regular", t, a, n.concat(["amsrm"]));
16571
16571
  }, r1 = function(e, t, a, n, s) {
16572
16572
  return s !== "textord" && Rt(e, "Math-BoldItalic", t).metrics ? {
16573
16573
  fontName: "Math-BoldItalic",
@@ -16578,30 +16578,30 @@ var bt = [
16578
16578
  };
16579
16579
  }, a1 = function(e, t, a) {
16580
16580
  var n = e.mode, s = e.text, o = ["mord"], m = n === "math" || n === "text" && t.font, c = m ? t.font : t.fontFamily, p = "", g = "";
16581
- if (s.charCodeAt(0) === 55349 && ([p, g] = e1(s, n)), p.length > 0) return ve(s, p, n, t, o.concat(g));
16581
+ if (s.charCodeAt(0) === 55349 && ([p, g] = e1(s, n)), p.length > 0) return ge(s, p, n, t, o.concat(g));
16582
16582
  if (c) {
16583
16583
  var y, x;
16584
16584
  if (c === "boldsymbol") {
16585
16585
  var w = r1(s, n, t, o, a);
16586
16586
  y = w.fontName, x = [w.fontClass];
16587
- } else m ? (y = Cr[c].fontName, x = [c]) : (y = yt(c, t.fontWeight, t.fontShape), x = [
16587
+ } else m ? (y = Nr[c].fontName, x = [c]) : (y = yt(c, t.fontWeight, t.fontShape), x = [
16588
16588
  c,
16589
16589
  t.fontWeight,
16590
16590
  t.fontShape
16591
16591
  ]);
16592
- if (Rt(s, y, n).metrics) return ve(s, y, n, t, o.concat(x));
16592
+ if (Rt(s, y, n).metrics) return ge(s, y, n, t, o.concat(x));
16593
16593
  if (Ar.hasOwnProperty(s) && y.slice(0, 10) === "Typewriter") {
16594
- for (var T = [], A = 0; A < s.length; A++) T.push(ve(s[A], y, n, t, o.concat(x)));
16595
- return Br(T);
16594
+ for (var A = [], T = 0; T < s.length; T++) A.push(ge(s[T], y, n, t, o.concat(x)));
16595
+ return Br(A);
16596
16596
  }
16597
16597
  }
16598
- if (a === "mathord") return ve(s, "Math-Italic", n, t, o.concat(["mathnormal"]));
16598
+ if (a === "mathord") return ge(s, "Math-Italic", n, t, o.concat(["mathnormal"]));
16599
16599
  if (a === "textord") {
16600
- var N = X[n][s] && X[n][s].font;
16601
- if (N === "ams") return ve(s, yt("amsrm", t.fontWeight, t.fontShape), n, t, o.concat("amsrm", t.fontWeight, t.fontShape));
16602
- if (N === "main" || !N) return ve(s, yt("textrm", t.fontWeight, t.fontShape), n, t, o.concat(t.fontWeight, t.fontShape));
16603
- var q = yt(N, t.fontWeight, t.fontShape);
16604
- return ve(s, q, n, t, o.concat(q, t.fontWeight, t.fontShape));
16600
+ var q = X[n][s] && X[n][s].font;
16601
+ if (q === "ams") return ge(s, yt("amsrm", t.fontWeight, t.fontShape), n, t, o.concat("amsrm", t.fontWeight, t.fontShape));
16602
+ if (q === "main" || !q) return ge(s, yt("textrm", t.fontWeight, t.fontShape), n, t, o.concat(t.fontWeight, t.fontShape));
16603
+ var C = yt(q, t.fontWeight, t.fontShape);
16604
+ return ge(s, C, n, t, o.concat(C, t.fontWeight, t.fontShape));
16605
16605
  } else throw new Error("unexpected type: " + a + " in makeOrd");
16606
16606
  }, n1 = (r, e) => {
16607
16607
  if (Le(r.classes) !== Le(e.classes) || r.skew !== e.skew || r.maxFontSize !== e.maxFontSize) return !1;
@@ -16615,7 +16615,7 @@ var bt = [
16615
16615
  }, i1 = (r) => {
16616
16616
  for (var e = 0; e < r.length - 1; e++) {
16617
16617
  var t = r[e], a = r[e + 1];
16618
- t instanceof ue && a instanceof ue && n1(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--);
16618
+ t instanceof de && a instanceof de && n1(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--);
16619
16619
  }
16620
16620
  return r;
16621
16621
  }, f0 = function(e) {
@@ -16624,11 +16624,11 @@ var bt = [
16624
16624
  o.height > t && (t = o.height), o.depth > a && (a = o.depth), o.maxFontSize > n && (n = o.maxFontSize);
16625
16625
  }
16626
16626
  e.height = t, e.depth = a, e.maxFontSize = n;
16627
- }, ie = function(e, t, a, n) {
16627
+ }, le = function(e, t, a, n) {
16628
16628
  var s = new ht(e, t, a, n);
16629
16629
  return f0(s), s;
16630
16630
  }, U0 = (r, e, t, a) => new ht(r, e, t, a), s1 = function(e, t, a) {
16631
- var n = ie([e], [], t);
16631
+ var n = le([e], [], t);
16632
16632
  return n.height = Math.max(a || t.fontMetrics().defaultRuleThickness, t.minRuleThickness), n.style.borderBottomWidth = z(n.height), n.maxFontSize = 1, n;
16633
16633
  }, l1 = function(e, t, a, n) {
16634
16634
  var s = new d0(e, t, a, n);
@@ -16637,7 +16637,7 @@ var bt = [
16637
16637
  var t = new ot(e);
16638
16638
  return f0(t), t;
16639
16639
  }, o1 = function(e, t) {
16640
- return e instanceof ot ? ie([], [e], t) : e;
16640
+ return e instanceof ot ? le([], [e], t) : e;
16641
16641
  }, h1 = function(e) {
16642
16642
  if (e.positionType === "individualShift") {
16643
16643
  for (var t = e.children, a = [t[0]], n = -t[0].shift - t[0].elem.depth, s = n, o = 1; o < t.length; o++) {
@@ -16680,28 +16680,28 @@ var bt = [
16680
16680
  }
16681
16681
  }
16682
16682
  s += 2;
16683
- var p = ie(["pstrut"], []);
16683
+ var p = le(["pstrut"], []);
16684
16684
  p.style.height = z(s);
16685
- for (var g = [], y = n, x = n, w = n, T = 0; T < a.length; T++) {
16686
- var A = a[T];
16687
- if (A.type === "kern") w += A.size;
16685
+ for (var g = [], y = n, x = n, w = n, A = 0; A < a.length; A++) {
16686
+ var T = a[A];
16687
+ if (T.type === "kern") w += T.size;
16688
16688
  else {
16689
- var N = A.elem, q = A.wrapperClasses || [], D = A.wrapperStyle || {}, V = ie(q, [p, N], void 0, D);
16690
- V.style.top = z(-s - w - N.depth), A.marginLeft && (V.style.marginLeft = A.marginLeft), A.marginRight && (V.style.marginRight = A.marginRight), g.push(V), w += N.height + N.depth;
16689
+ var q = T.elem, C = T.wrapperClasses || [], O = T.wrapperStyle || {}, P = le(C, [p, q], void 0, O);
16690
+ P.style.top = z(-s - w - q.depth), T.marginLeft && (P.style.marginLeft = T.marginLeft), T.marginRight && (P.style.marginRight = T.marginRight), g.push(P), w += q.height + q.depth;
16691
16691
  }
16692
16692
  y = Math.min(y, w), x = Math.max(x, w);
16693
16693
  }
16694
- var P = ie(["vlist"], g);
16695
- P.style.height = z(x);
16696
- var H;
16694
+ var V = le(["vlist"], g);
16695
+ V.style.height = z(x);
16696
+ var F;
16697
16697
  if (y < 0) {
16698
- var F = ie(["vlist"], [ie([], [])]);
16699
- F.style.height = z(-y), H = [ie(["vlist-r"], [P, ie(["vlist-s"], [new ue("​")])]), ie(["vlist-r"], [F])];
16700
- } else H = [ie(["vlist-r"], [P])];
16701
- var U = ie(["vlist-t"], H);
16702
- return H.length === 2 && U.classes.push("vlist-t2"), U.height = x, U.depth = -y, U;
16698
+ var H = le(["vlist"], [le([], [])]);
16699
+ H.style.height = z(-y), F = [le(["vlist-r"], [V, le(["vlist-s"], [new de("​")])]), le(["vlist-r"], [H])];
16700
+ } else F = [le(["vlist-r"], [V])];
16701
+ var U = le(["vlist-t"], F);
16702
+ return F.length === 2 && U.classes.push("vlist-t2"), U.height = x, U.depth = -y, U;
16703
16703
  }, u1 = (r, e) => {
16704
- var t = ie(["mspace"], [], e), a = j(r, e);
16704
+ var t = le(["mspace"], [], e), a = Z(r, e);
16705
16705
  return t.style.marginRight = z(a), t;
16706
16706
  }, yt = function(e, t, a) {
16707
16707
  var n = "";
@@ -16723,7 +16723,7 @@ var bt = [
16723
16723
  }
16724
16724
  var s;
16725
16725
  return t === "textbf" && a === "textit" ? s = "BoldItalic" : t === "textbf" ? s = "Bold" : t === "textit" ? s = "Italic" : s = "Regular", n + "-" + s;
16726
- }, Cr = {
16726
+ }, Nr = {
16727
16727
  mathbf: {
16728
16728
  variant: "bold",
16729
16729
  fontName: "Main-Bold"
@@ -16795,10 +16795,10 @@ var bt = [
16795
16795
  0.659
16796
16796
  ]
16797
16797
  }, b = {
16798
- fontMap: Cr,
16799
- makeSymbol: ve,
16798
+ fontMap: Nr,
16799
+ makeSymbol: ge,
16800
16800
  mathsym: t1,
16801
- makeSpan: ie,
16801
+ makeSpan: le,
16802
16802
  makeSvgSpan: U0,
16803
16803
  makeLineSpan: s1,
16804
16804
  makeAnchor: l1,
@@ -16808,21 +16808,21 @@ var bt = [
16808
16808
  makeOrd: a1,
16809
16809
  makeGlue: u1,
16810
16810
  staticSvg: function(e, t) {
16811
- var [a, n, s] = $0[e], o = U0(["overlay"], [new Te([new He(a)], {
16811
+ var [a, n, s] = $0[e], o = new He(a), m = U0(["overlay"], [new Te([o], {
16812
16812
  width: z(n),
16813
16813
  height: z(s),
16814
16814
  style: "width:" + z(n),
16815
16815
  viewBox: "0 0 " + 1e3 * n + " " + 1e3 * s,
16816
16816
  preserveAspectRatio: "xMinYMin"
16817
16817
  })], t);
16818
- return o.height = s, o.style.height = z(s), o.style.width = z(n), o;
16818
+ return m.height = s, m.style.height = z(s), m.style.width = z(n), m;
16819
16819
  },
16820
16820
  svgData: $0,
16821
16821
  tryCombineChars: i1
16822
- }, W = {
16822
+ }, j = {
16823
16823
  number: 3,
16824
16824
  unit: "mu"
16825
- }, Ve = {
16825
+ }, Ue = {
16826
16826
  number: 4,
16827
16827
  unit: "mu"
16828
16828
  }, Me = {
@@ -16830,22 +16830,22 @@ var bt = [
16830
16830
  unit: "mu"
16831
16831
  }, c1 = {
16832
16832
  mord: {
16833
- mop: W,
16834
- mbin: Ve,
16833
+ mop: j,
16834
+ mbin: Ue,
16835
16835
  mrel: Me,
16836
- minner: W
16836
+ minner: j
16837
16837
  },
16838
16838
  mop: {
16839
- mord: W,
16840
- mop: W,
16839
+ mord: j,
16840
+ mop: j,
16841
16841
  mrel: Me,
16842
- minner: W
16842
+ minner: j
16843
16843
  },
16844
16844
  mbin: {
16845
- mord: Ve,
16846
- mop: Ve,
16847
- mopen: Ve,
16848
- minner: Ve
16845
+ mord: Ue,
16846
+ mop: Ue,
16847
+ mopen: Ue,
16848
+ minner: Ue
16849
16849
  },
16850
16850
  mrel: {
16851
16851
  mord: Me,
@@ -16855,42 +16855,42 @@ var bt = [
16855
16855
  },
16856
16856
  mopen: {},
16857
16857
  mclose: {
16858
- mop: W,
16859
- mbin: Ve,
16858
+ mop: j,
16859
+ mbin: Ue,
16860
16860
  mrel: Me,
16861
- minner: W
16861
+ minner: j
16862
16862
  },
16863
16863
  mpunct: {
16864
- mord: W,
16865
- mop: W,
16864
+ mord: j,
16865
+ mop: j,
16866
16866
  mrel: Me,
16867
- mopen: W,
16868
- mclose: W,
16869
- mpunct: W,
16870
- minner: W
16867
+ mopen: j,
16868
+ mclose: j,
16869
+ mpunct: j,
16870
+ minner: j
16871
16871
  },
16872
16872
  minner: {
16873
- mord: W,
16874
- mop: W,
16875
- mbin: Ve,
16873
+ mord: j,
16874
+ mop: j,
16875
+ mbin: Ue,
16876
16876
  mrel: Me,
16877
- mopen: W,
16878
- mpunct: W,
16879
- minner: W
16877
+ mopen: j,
16878
+ mpunct: j,
16879
+ minner: j
16880
16880
  }
16881
16881
  }, d1 = {
16882
- mord: { mop: W },
16882
+ mord: { mop: j },
16883
16883
  mop: {
16884
- mord: W,
16885
- mop: W
16884
+ mord: j,
16885
+ mop: j
16886
16886
  },
16887
16887
  mbin: {},
16888
16888
  mrel: {},
16889
16889
  mopen: {},
16890
- mclose: { mop: W },
16890
+ mclose: { mop: j },
16891
16891
  mpunct: {},
16892
- minner: { mop: W }
16893
- }, Nr = {}, Bt = {}, Ct = {};
16892
+ minner: { mop: j }
16893
+ }, Cr = {}, Bt = {}, Nt = {};
16894
16894
  function B(r) {
16895
16895
  for (var { type: e, names: t, props: a, handler: n, htmlBuilder: s, mathmlBuilder: o } = r, m = {
16896
16896
  type: e,
@@ -16903,10 +16903,10 @@ function B(r) {
16903
16903
  infix: !!a.infix,
16904
16904
  primitive: !!a.primitive,
16905
16905
  handler: n
16906
- }, c = 0; c < t.length; ++c) Nr[t[c]] = m;
16907
- e && (s && (Bt[e] = s), o && (Ct[e] = o));
16906
+ }, c = 0; c < t.length; ++c) Cr[t[c]] = m;
16907
+ e && (s && (Bt[e] = s), o && (Nt[e] = o));
16908
16908
  }
16909
- function $e(r) {
16909
+ function Xe(r) {
16910
16910
  var { type: e, htmlBuilder: t, mathmlBuilder: a } = r;
16911
16911
  B({
16912
16912
  type: e,
@@ -16919,9 +16919,9 @@ function $e(r) {
16919
16919
  mathmlBuilder: a
16920
16920
  });
16921
16921
  }
16922
- var Nt = function(e) {
16922
+ var Ct = function(e) {
16923
16923
  return e.type === "ordgroup" && e.body.length === 1 ? e.body[0] : e;
16924
- }, Q = function(e) {
16924
+ }, J = function(e) {
16925
16925
  return e.type === "ordgroup" ? e.body : [e];
16926
16926
  }, Be = b.makeSpan, f1 = [
16927
16927
  "leftmost",
@@ -16965,12 +16965,12 @@ var Nt = function(e) {
16965
16965
  g.type === "sizing" ? p = t.havingSize(g.size) : g.type === "styling" && (p = t.havingStyle(v1[g.style]));
16966
16966
  }
16967
16967
  var y = Be([n[0] || "leftmost"], [], t), x = Be([n[1] || "rightmost"], [], t), w = a === "root";
16968
- return X0(s, (T, A) => {
16969
- var N = A.classes[0], q = T.classes[0];
16970
- N === "mbin" && R.contains(p1, q) ? A.classes[0] = "mord" : q === "mbin" && R.contains(f1, N) && (T.classes[0] = "mord");
16971
- }, { node: y }, x, w), X0(s, (T, A) => {
16972
- var N = i0(A), q = i0(T), D = N && q ? T.hasClass("mtight") ? d1[N][q] : c1[N][q] : null;
16973
- if (D) return b.makeGlue(D, p);
16968
+ return X0(s, (A, T) => {
16969
+ var q = T.classes[0], C = A.classes[0];
16970
+ q === "mbin" && R.contains(p1, C) ? T.classes[0] = "mord" : C === "mbin" && R.contains(f1, q) && (A.classes[0] = "mord");
16971
+ }, { node: y }, x, w), X0(s, (A, T) => {
16972
+ var q = i0(T), C = i0(A), O = q && C ? A.hasClass("mtight") ? d1[q][C] : c1[q][C] : null;
16973
+ if (O) return b.makeGlue(O, p);
16974
16974
  }, { node: y }, x, w), s;
16975
16975
  }, X0 = function r(e, t, a, n, s) {
16976
16976
  n && e.push(n);
@@ -17047,7 +17047,7 @@ function s0(r, e) {
17047
17047
  function Rr(r) {
17048
17048
  return new ot(r);
17049
17049
  }
17050
- var he = class {
17050
+ var ue = class {
17051
17051
  constructor(r, e, t) {
17052
17052
  this.type = void 0, this.attributes = void 0, this.children = void 0, this.classes = void 0, this.type = r, this.attributes = {}, this.children = e || [], this.classes = t || [];
17053
17053
  }
@@ -17103,11 +17103,11 @@ var he = class {
17103
17103
  return this.character ? this.character : " ";
17104
17104
  }
17105
17105
  }, S = {
17106
- MathNode: he,
17106
+ MathNode: ue,
17107
17107
  TextNode: nt,
17108
17108
  SpaceNode: y1,
17109
17109
  newDocumentFragment: Rr
17110
- }, ce = function(e, t, a) {
17110
+ }, fe = function(e, t, a) {
17111
17111
  return X[t][e] && X[t][e].replace && e.charCodeAt(0) !== 55349 && !(Ar.hasOwnProperty(e) && a && (a.fontFamily && a.fontFamily.slice(4, 6) === "tt" || a.font && a.font.slice(4, 6) === "tt")) && (e = X[t][e].replace), new S.TextNode(e);
17112
17112
  }, p0 = function(e) {
17113
17113
  return e.length === 1 ? e[0] : new S.MathNode("mrow", e);
@@ -17133,14 +17133,14 @@ var he = class {
17133
17133
  X[n][s] && X[n][s].replace && (s = X[n][s].replace);
17134
17134
  var o = b.fontMap[a].fontName;
17135
17135
  return c0(s, o, n) ? b.fontMap[a].variant : null;
17136
- }, se = function(e, t, a) {
17136
+ }, oe = function(e, t, a) {
17137
17137
  if (e.length === 1) {
17138
17138
  var n = $(e[0], t);
17139
- return a && n instanceof he && n.type === "mo" && (n.setAttribute("lspace", "0em"), n.setAttribute("rspace", "0em")), [n];
17139
+ return a && n instanceof ue && n.type === "mo" && (n.setAttribute("lspace", "0em"), n.setAttribute("rspace", "0em")), [n];
17140
17140
  }
17141
17141
  for (var s = [], o, m = 0; m < e.length; m++) {
17142
17142
  var c = $(e[m], t);
17143
- if (c instanceof he && o instanceof he) {
17143
+ if (c instanceof ue && o instanceof ue) {
17144
17144
  if (c.type === "mtext" && o.type === "mtext" && c.getAttribute("mathvariant") === o.getAttribute("mathvariant")) {
17145
17145
  o.children.push(...c.children);
17146
17146
  continue;
@@ -17165,15 +17165,15 @@ var he = class {
17165
17165
  }
17166
17166
  return s;
17167
17167
  }, Fe = function(e, t, a) {
17168
- return p0(se(e, t, a));
17168
+ return p0(oe(e, t, a));
17169
17169
  }, $ = function(e, t) {
17170
17170
  if (!e) return new S.MathNode("mrow");
17171
- if (Ct[e.type]) return Ct[e.type](e, t);
17171
+ if (Nt[e.type]) return Nt[e.type](e, t);
17172
17172
  throw new M("Got group of unknown type: '" + e.type + "'");
17173
17173
  };
17174
17174
  function Y0(r, e, t, a, n) {
17175
- var s = se(r, t), o;
17176
- s.length === 1 && s[0] instanceof he && R.contains(["mrow", "mtable"], s[0].type) ? o = s[0] : o = new S.MathNode("mrow", s);
17175
+ var s = oe(r, t), o;
17176
+ s.length === 1 && s[0] instanceof ue && R.contains(["mrow", "mtable"], s[0].type) ? o = s[0] : o = new S.MathNode("mrow", s);
17177
17177
  var m = new S.MathNode("annotation", [new S.TextNode(e)]);
17178
17178
  m.setAttribute("encoding", "application/x-tex");
17179
17179
  var c = new S.MathNode("semantics", [o, m]), p = new S.MathNode("math", [c]);
@@ -17485,7 +17485,7 @@ var Er = function(e) {
17485
17485
  ]
17486
17486
  }, z1 = function(e) {
17487
17487
  return e.type === "ordgroup" ? e.body.length : 1;
17488
- }, Ce = {
17488
+ }, Ne = {
17489
17489
  encloseSpan: function(e, t, a, n, s) {
17490
17490
  var o, m = e.height + e.depth + a + n;
17491
17491
  if (/fbox|color|angl/.test(t)) {
@@ -17577,7 +17577,7 @@ var Er = function(e) {
17577
17577
  0.34
17578
17578
  ][w], y = "tilde" + w);
17579
17579
  }
17580
- var T = new Te([new He(y)], {
17580
+ var A = new He(y), T = new Te([A], {
17581
17581
  width: "100%",
17582
17582
  height: z(x),
17583
17583
  viewBox: "0 0 " + m + " " + g,
@@ -17589,18 +17589,18 @@ var Er = function(e) {
17589
17589
  height: x
17590
17590
  };
17591
17591
  } else {
17592
- var A = [], N = M1[c], [q, D, V] = N, P = V / 1e3, H = q.length, F, U;
17592
+ var q = [], C = M1[c], [O, P, V] = C, F = V / 1e3, H = O.length, U, Y;
17593
17593
  if (H === 1) {
17594
- var Z = N[3];
17595
- F = ["hide-tail"], U = [Z];
17594
+ var ie = C[3];
17595
+ U = ["hide-tail"], Y = [ie];
17596
17596
  } else if (H === 2)
17597
- F = ["halfarrow-left", "halfarrow-right"], U = ["xMinYMin", "xMaxYMin"];
17597
+ U = ["halfarrow-left", "halfarrow-right"], Y = ["xMinYMin", "xMaxYMin"];
17598
17598
  else if (H === 3)
17599
- F = [
17599
+ U = [
17600
17600
  "brace-left",
17601
17601
  "brace-center",
17602
17602
  "brace-right"
17603
- ], U = [
17603
+ ], Y = [
17604
17604
  "xMinYMin",
17605
17605
  "xMidYMin",
17606
17606
  "xMaxYMin"
@@ -17608,23 +17608,23 @@ var Er = function(e) {
17608
17608
  else throw new Error(`Correct katexImagesData or update code here to support
17609
17609
  ` + H + " children.");
17610
17610
  for (var te = 0; te < H; te++) {
17611
- var de = new Te([new He(q[te])], {
17611
+ var _ = new He(O[te]), Ge = new Te([_], {
17612
17612
  width: "400em",
17613
- height: z(P),
17613
+ height: z(F),
17614
17614
  viewBox: "0 0 " + m + " " + V,
17615
- preserveAspectRatio: U[te] + " slice"
17616
- }), J = b.makeSvgSpan([F[te]], [de], t);
17615
+ preserveAspectRatio: Y[te] + " slice"
17616
+ }), se = b.makeSvgSpan([U[te]], [Ge], t);
17617
17617
  if (H === 1) return {
17618
- span: J,
17619
- minWidth: D,
17620
- height: P
17618
+ span: se,
17619
+ minWidth: P,
17620
+ height: F
17621
17621
  };
17622
- J.style.height = z(P), A.push(J);
17622
+ se.style.height = z(F), q.push(se);
17623
17623
  }
17624
17624
  return {
17625
- span: b.makeSpan(["stretchy"], A, t),
17626
- minWidth: D,
17627
- height: P
17625
+ span: b.makeSpan(["stretchy"], q, t),
17626
+ minWidth: P,
17627
+ height: F
17628
17628
  };
17629
17629
  }
17630
17630
  }
@@ -17651,7 +17651,7 @@ var b0 = (r, e) => {
17651
17651
  o && (m = L0(G(R.getBaseElem(t), e.havingCrampedStyle())).skew);
17652
17652
  var c = a.label === "\\c", p = c ? s.height + s.depth : Math.min(s.height, e.fontMetrics().xHeight), g;
17653
17653
  if (a.isStretchy)
17654
- g = Ce.svgSpan(a, e), g = b.makeVList({
17654
+ g = Ne.svgSpan(a, e), g = b.makeVList({
17655
17655
  positionType: "firstBaseline",
17656
17656
  children: [{
17657
17657
  type: "elem",
@@ -17674,8 +17674,8 @@ var b0 = (r, e) => {
17674
17674
  }, e, "textord"), y = L0(y), y.italic = 0, x = y.width, c && (p += y.depth)), g = b.makeSpan(["accent-body"], [y]);
17675
17675
  var w = a.label === "\\textcircled";
17676
17676
  w && (g.classes.push("accent-full"), p = s.height);
17677
- var T = m;
17678
- w || (T -= x / 2), g.style.left = z(T), a.label === "\\textcircled" && (g.style.top = ".2em"), g = b.makeVList({
17677
+ var A = m;
17678
+ w || (A -= x / 2), g.style.left = z(A), a.label === "\\textcircled" && (g.style.top = ".2em"), g = b.makeVList({
17679
17679
  positionType: "firstBaseline",
17680
17680
  children: [
17681
17681
  {
@@ -17693,10 +17693,10 @@ var b0 = (r, e) => {
17693
17693
  ]
17694
17694
  }, e);
17695
17695
  }
17696
- var A = b.makeSpan(["mord", "accent"], [g], e);
17697
- return n ? (n.children[0] = A, n.height = Math.max(A.height, n.height), n.classes[0] = "mord", n) : A;
17696
+ var T = b.makeSpan(["mord", "accent"], [g], e);
17697
+ return n ? (n.children[0] = T, n.height = Math.max(T.height, n.height), n.classes[0] = "mord", n) : T;
17698
17698
  }, Or = (r, e) => {
17699
- var t = r.isStretchy ? Ce.mathMLnode(r.label) : new S.MathNode("mo", [ce(r.label, r.mode)]), a = new S.MathNode("mover", [$(r.base, e), t]);
17699
+ var t = r.isStretchy ? Ne.mathMLnode(r.label) : new S.MathNode("mo", [fe(r.label, r.mode)]), a = new S.MathNode("mover", [$(r.base, e), t]);
17700
17700
  return a.setAttribute("accent", "true"), a;
17701
17701
  }, T1 = new RegExp([
17702
17702
  "\\acute",
@@ -17739,7 +17739,7 @@ B({
17739
17739
  ],
17740
17740
  props: { numArgs: 1 },
17741
17741
  handler: (r, e) => {
17742
- var t = Nt(e[0]), a = !T1.test(r.funcName), n = !a || r.funcName === "\\widehat" || r.funcName === "\\widetilde" || r.funcName === "\\widecheck";
17742
+ var t = Ct(e[0]), a = !T1.test(r.funcName), n = !a || r.funcName === "\\widehat" || r.funcName === "\\widetilde" || r.funcName === "\\widecheck";
17743
17743
  return {
17744
17744
  type: "accent",
17745
17745
  mode: r.parser.mode,
@@ -17810,7 +17810,7 @@ B({
17810
17810
  };
17811
17811
  },
17812
17812
  htmlBuilder: (r, e) => {
17813
- var t = G(r.base, e), a = Ce.svgSpan(r, e), n = r.label === "\\utilde" ? 0.12 : 0, s = b.makeVList({
17813
+ var t = G(r.base, e), a = Ne.svgSpan(r, e), n = r.label === "\\utilde" ? 0.12 : 0, s = b.makeVList({
17814
17814
  positionType: "top",
17815
17815
  positionData: t.height,
17816
17816
  children: [
@@ -17832,7 +17832,7 @@ B({
17832
17832
  return b.makeSpan(["mord", "accentunder"], [s], e);
17833
17833
  },
17834
17834
  mathmlBuilder: (r, e) => {
17835
- var t = Ce.mathMLnode(r.label), a = new S.MathNode("munder", [$(r.base, e), t]);
17835
+ var t = Ne.mathMLnode(r.label), a = new S.MathNode("munder", [$(r.base, e), t]);
17836
17836
  return a.setAttribute("accentunder", "true"), a;
17837
17837
  }
17838
17838
  });
@@ -17888,7 +17888,7 @@ B({
17888
17888
  n.classes.push(s + "-arrow-pad");
17889
17889
  var o;
17890
17890
  r.below && (a = e.havingStyle(t.sub()), o = b.wrapFragment(G(r.below, a, e), e), o.classes.push(s + "-arrow-pad"));
17891
- var m = Ce.svgSpan(r, e), c = -e.fontMetrics().axisHeight + 0.5 * m.height, p = -e.fontMetrics().axisHeight - 0.5 * m.height - 0.111;
17891
+ var m = Ne.svgSpan(r, e), c = -e.fontMetrics().axisHeight + 0.5 * m.height, p = -e.fontMetrics().axisHeight - 0.5 * m.height - 0.111;
17892
17892
  (n.depth > 0.25 || r.label === "\\xleftequilibrium") && (p -= n.depth);
17893
17893
  var g;
17894
17894
  if (o) {
@@ -17928,7 +17928,7 @@ B({
17928
17928
  return g.children[0].children[0].children[1].classes.push("svg-align"), b.makeSpan(["mrel", "x-arrow"], [g], e);
17929
17929
  },
17930
17930
  mathmlBuilder(r, e) {
17931
- var t = Ce.mathMLnode(r.label);
17931
+ var t = Ne.mathMLnode(r.label);
17932
17932
  t.setAttribute("minsize", r.label.charAt(0) === "x" ? "1.75em" : "3.0em");
17933
17933
  var a;
17934
17934
  if (r.body) {
@@ -17955,7 +17955,7 @@ function Dr(r, e) {
17955
17955
  return A1([r.mclass], t, e);
17956
17956
  }
17957
17957
  function Lr(r, e) {
17958
- var t, a = se(r.body, e);
17958
+ var t, a = oe(r.body, e);
17959
17959
  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;
17960
17960
  }
17961
17961
  B({
@@ -17979,7 +17979,7 @@ B({
17979
17979
  type: "mclass",
17980
17980
  mode: t.mode,
17981
17981
  mclass: "m" + a.slice(5),
17982
- body: Q(n),
17982
+ body: J(n),
17983
17983
  isCharacterBox: R.isCharacterBox(n)
17984
17984
  };
17985
17985
  },
@@ -18000,7 +18000,7 @@ B({
18000
18000
  type: "mclass",
18001
18001
  mode: t.mode,
18002
18002
  mclass: It(e[0]),
18003
- body: Q(e[1]),
18003
+ body: J(e[1]),
18004
18004
  isCharacterBox: R.isCharacterBox(e[1])
18005
18005
  };
18006
18006
  }
@@ -18024,7 +18024,7 @@ B({
18024
18024
  parentIsSupSub: !1,
18025
18025
  symbol: !1,
18026
18026
  suppressBaseShift: a !== "\\stackrel",
18027
- body: Q(n)
18027
+ body: J(n)
18028
18028
  }, c = {
18029
18029
  type: "supsub",
18030
18030
  mode: s.mode,
@@ -18056,7 +18056,7 @@ B({
18056
18056
  type: "pmb",
18057
18057
  mode: t.mode,
18058
18058
  mclass: It(e[0]),
18059
- body: Q(e[0])
18059
+ body: J(e[0])
18060
18060
  };
18061
18061
  },
18062
18062
  htmlBuilder(r, e) {
@@ -18064,7 +18064,7 @@ B({
18064
18064
  return a.style.textShadow = "0.02em 0.01em 0.04px", a;
18065
18065
  },
18066
18066
  mathmlBuilder(r, e) {
18067
- var t = se(r.body, e), a = new S.MathNode("mstyle", t);
18067
+ var t = oe(r.body, e), a = new S.MathNode("mstyle", t);
18068
18068
  return a.setAttribute("style", "text-shadow: 0.02em 0.01em 0.04px"), a;
18069
18069
  }
18070
18070
  });
@@ -18081,8 +18081,8 @@ var B1 = {
18081
18081
  body: [],
18082
18082
  mode: "math",
18083
18083
  style: "display"
18084
- }), j0 = (r) => r.type === "textord" && r.text === "@", C1 = (r, e) => (r.type === "mathord" || r.type === "atom") && r.text === e;
18085
- function N1(r, e, t) {
18084
+ }), j0 = (r) => r.type === "textord" && r.text === "@", N1 = (r, e) => (r.type === "mathord" || r.type === "atom") && r.text === e;
18085
+ function C1(r, e, t) {
18086
18086
  var a = B1[r];
18087
18087
  switch (a) {
18088
18088
  case "\\\\cdrightarrow":
@@ -18147,7 +18147,7 @@ function q1(r) {
18147
18147
  body: []
18148
18148
  }, !("=|.".indexOf(p) > -1)) if ("<>AV".indexOf(p) > -1) for (var y = 0; y < 2; y++) {
18149
18149
  for (var x = !0, w = c + 1; w < o.length; w++) {
18150
- if (C1(o[w], p)) {
18150
+ if (N1(o[w], p)) {
18151
18151
  x = !1, c = w;
18152
18152
  break;
18153
18153
  }
@@ -18157,13 +18157,13 @@ function q1(r) {
18157
18157
  if (x) throw new M("Missing a " + p + " character to complete a CD arrow.", o[c]);
18158
18158
  }
18159
18159
  else throw new M('Expected one of "<>AV=|." after @', o[c]);
18160
- var T = {
18160
+ var A = {
18161
18161
  type: "styling",
18162
- body: [N1(p, g, r)],
18162
+ body: [C1(p, g, r)],
18163
18163
  mode: "math",
18164
18164
  style: "display"
18165
18165
  };
18166
- a.push(T), m = W0();
18166
+ a.push(A), m = W0();
18167
18167
  }
18168
18168
  s % 2 === 0 ? a.push(m) : a.shift(), a = [], n.push(a);
18169
18169
  }
@@ -18252,7 +18252,7 @@ var Hr = (r, e) => {
18252
18252
  var t = ee(r.body, e.withColor(r.color), !1);
18253
18253
  return b.makeFragment(t);
18254
18254
  }, Fr = (r, e) => {
18255
- var t = se(r.body, e.withColor(r.color)), a = new S.MathNode("mstyle", t);
18255
+ var t = oe(r.body, e.withColor(r.color)), a = new S.MathNode("mstyle", t);
18256
18256
  return a.setAttribute("mathcolor", r.color), a;
18257
18257
  };
18258
18258
  B({
@@ -18269,7 +18269,7 @@ B({
18269
18269
  type: "color",
18270
18270
  mode: t.mode,
18271
18271
  color: a,
18272
- body: Q(n)
18272
+ body: J(n)
18273
18273
  };
18274
18274
  },
18275
18275
  htmlBuilder: Hr,
@@ -18316,11 +18316,11 @@ B({
18316
18316
  },
18317
18317
  htmlBuilder(r, e) {
18318
18318
  var t = b.makeSpan(["mspace"], [], e);
18319
- return r.newLine && (t.classes.push("newline"), r.size && (t.style.marginTop = z(j(r.size, e)))), t;
18319
+ return r.newLine && (t.classes.push("newline"), r.size && (t.style.marginTop = z(Z(r.size, e)))), t;
18320
18320
  },
18321
18321
  mathmlBuilder(r, e) {
18322
18322
  var t = new S.MathNode("mspace");
18323
- return r.newLine && (t.setAttribute("linebreak", "newline"), r.size && t.setAttribute("height", z(j(r.size, e)))), t;
18323
+ return r.newLine && (t.setAttribute("linebreak", "newline"), r.size && t.setAttribute("height", z(Z(r.size, e)))), t;
18324
18324
  }
18325
18325
  });
18326
18326
  var l0 = {
@@ -18465,16 +18465,16 @@ var at = function(e, t, a) {
18465
18465
  elem: b.makeSpan(["delimsizinginner", n], [b.makeSpan([], [b.makeSymbol(e, t, a)])])
18466
18466
  };
18467
18467
  }, Wt = function(e, t, a) {
18468
- var n = ye["Size4-Regular"][e.charCodeAt(0)] ? ye["Size4-Regular"][e.charCodeAt(0)][4] : ye["Size1-Regular"][e.charCodeAt(0)][4], s = new Te([new He("inner", Ua(e, Math.round(1e3 * t)))], {
18468
+ var n = ye["Size4-Regular"][e.charCodeAt(0)] ? ye["Size4-Regular"][e.charCodeAt(0)][4] : ye["Size1-Regular"][e.charCodeAt(0)][4], s = new He("inner", Ua(e, Math.round(1e3 * t))), o = new Te([s], {
18469
18469
  width: z(n),
18470
18470
  height: z(t),
18471
18471
  style: "width:" + z(n),
18472
18472
  viewBox: "0 0 " + 1e3 * n + " " + Math.round(1e3 * t),
18473
18473
  preserveAspectRatio: "xMinYMin"
18474
- }), o = b.makeSvgSpan([], [s], a);
18475
- return o.height = t, o.style.height = z(t), o.style.width = z(n), {
18474
+ }), m = b.makeSvgSpan([], [o], a);
18475
+ return m.height = t, m.style.height = z(t), m.style.width = z(n), {
18476
18476
  type: "elem",
18477
- elem: o
18477
+ elem: m
18478
18478
  };
18479
18479
  }, o0 = 8e-3, kt = {
18480
18480
  type: "kern",
@@ -18494,48 +18494,48 @@ var at = function(e, t, a) {
18494
18494
  m = p = g = e, c = null;
18495
18495
  var w = "Size1-Regular";
18496
18496
  e === "\\uparrow" ? p = g = "⏐" : e === "\\Uparrow" ? p = g = "‖" : e === "\\downarrow" ? m = p = "⏐" : e === "\\Downarrow" ? m = p = "‖" : e === "\\updownarrow" ? (m = "\\uparrow", p = "⏐", g = "\\downarrow") : e === "\\Updownarrow" ? (m = "\\Uparrow", p = "‖", g = "\\Downarrow") : R.contains(O1, e) ? (p = "∣", y = "vert", x = 333) : R.contains(D1, e) ? (p = "∥", y = "doublevert", x = 556) : e === "[" || e === "\\lbrack" ? (m = "⎡", p = "⎢", g = "⎣", w = "Size4-Regular", y = "lbrack", x = 667) : e === "]" || e === "\\rbrack" ? (m = "⎤", p = "⎥", g = "⎦", w = "Size4-Regular", y = "rbrack", x = 667) : e === "\\lfloor" || e === "⌊" ? (p = m = "⎢", g = "⎣", w = "Size4-Regular", y = "lfloor", x = 667) : e === "\\lceil" || e === "⌈" ? (m = "⎡", p = g = "⎢", w = "Size4-Regular", y = "lceil", x = 667) : e === "\\rfloor" || e === "⌋" ? (p = m = "⎥", g = "⎦", w = "Size4-Regular", y = "rfloor", x = 667) : e === "\\rceil" || e === "⌉" ? (m = "⎤", p = g = "⎥", w = "Size4-Regular", y = "rceil", x = 667) : e === "(" || e === "\\lparen" ? (m = "⎛", p = "⎜", g = "⎝", w = "Size4-Regular", y = "lparen", x = 875) : e === ")" || e === "\\rparen" ? (m = "⎞", p = "⎟", g = "⎠", w = "Size4-Regular", y = "rparen", x = 875) : e === "\\{" || e === "\\lbrace" ? (m = "⎧", c = "⎨", g = "⎩", p = "⎪", w = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (m = "⎫", c = "⎬", g = "⎭", p = "⎪", w = "Size4-Regular") : e === "\\lgroup" || e === "⟮" ? (m = "⎧", g = "⎩", p = "⎪", w = "Size4-Regular") : e === "\\rgroup" || e === "⟯" ? (m = "⎫", g = "⎭", p = "⎪", w = "Size4-Regular") : e === "\\lmoustache" || e === "⎰" ? (m = "⎧", g = "⎭", p = "⎪", w = "Size4-Regular") : (e === "\\rmoustache" || e === "⎱") && (m = "⎫", g = "⎩", p = "⎪", w = "Size4-Regular");
18497
- var T = at(m, w, s), A = T.height + T.depth, N = at(p, w, s), q = N.height + N.depth, D = at(g, w, s), V = D.height + D.depth, P = 0, H = 1;
18497
+ var A = at(m, w, s), T = A.height + A.depth, q = at(p, w, s), C = q.height + q.depth, O = at(g, w, s), P = O.height + O.depth, V = 0, F = 1;
18498
18498
  if (c !== null) {
18499
- var F = at(c, w, s);
18500
- P = F.height + F.depth, H = 2;
18499
+ var H = at(c, w, s);
18500
+ V = H.height + H.depth, F = 2;
18501
18501
  }
18502
- var U = A + V + P, Z = U + Math.max(0, Math.ceil((t - U) / (H * q))) * H * q, te = n.fontMetrics().axisHeight;
18503
- a && (te *= n.sizeMultiplier);
18504
- var de = Z / 2 - te, J = [];
18502
+ var U = T + P + V, Y = U + Math.max(0, Math.ceil((t - U) / (F * C))) * F * C, ie = n.fontMetrics().axisHeight;
18503
+ a && (ie *= n.sizeMultiplier);
18504
+ var te = Y / 2 - ie, _ = [];
18505
18505
  if (y.length > 0) {
18506
- var tt = Z - A - V, ge = Math.round(Z * 1e3), fe = $a(y, Math.round(tt * 1e3)), qe = new He(y, fe), Xe = (x / 1e3).toFixed(3) + "em", Ye = (ge / 1e3).toFixed(3) + "em", Lt = new Te([qe], {
18507
- width: Xe,
18508
- height: Ye,
18509
- viewBox: "0 0 " + x + " " + ge
18506
+ var Ge = Y - T - P, se = Math.round(Y * 1e3), pe = $a(y, Math.round(Ge * 1e3)), qe = new He(y, pe), Ye = (x / 1e3).toFixed(3) + "em", We = (se / 1e3).toFixed(3) + "em", Lt = new Te([qe], {
18507
+ width: Ye,
18508
+ height: We,
18509
+ viewBox: "0 0 " + x + " " + se
18510
18510
  }), Re = b.makeSvgSpan([], [Lt], n);
18511
- Re.height = ge / 1e3, Re.style.width = Xe, Re.style.height = Ye, J.push({
18511
+ Re.height = se / 1e3, Re.style.width = Ye, Re.style.height = We, _.push({
18512
18512
  type: "elem",
18513
18513
  elem: Re
18514
18514
  });
18515
18515
  } else {
18516
- if (J.push(Yt(g, w, s)), J.push(kt), c === null) {
18517
- var Ee = Z - A - V + 2 * o0;
18518
- J.push(Wt(p, Ee, n));
18516
+ if (_.push(Yt(g, w, s)), _.push(kt), c === null) {
18517
+ var Ee = Y - T - P + 2 * o0;
18518
+ _.push(Wt(p, Ee, n));
18519
18519
  } else {
18520
- var oe = (Z - A - V - P) / 2 + 2 * o0;
18521
- J.push(Wt(p, oe, n)), J.push(kt), J.push(Yt(c, w, s)), J.push(kt), J.push(Wt(p, oe, n));
18520
+ var me = (Y - T - P - V) / 2 + 2 * o0;
18521
+ _.push(Wt(p, me, n)), _.push(kt), _.push(Yt(c, w, s)), _.push(kt), _.push(Wt(p, me, n));
18522
18522
  }
18523
- J.push(kt), J.push(Yt(m, w, s));
18523
+ _.push(kt), _.push(Yt(m, w, s));
18524
18524
  }
18525
18525
  var rt = n.havingBaseStyle(I.TEXT), Ht = b.makeVList({
18526
18526
  positionType: "bottom",
18527
- positionData: de,
18528
- children: J
18527
+ positionData: te,
18528
+ children: _
18529
18529
  }, rt);
18530
18530
  return y0(b.makeSpan(["delimsizing", "mult"], [Ht], rt), I.TEXT, n, o);
18531
18531
  }, jt = 80, Zt = 0.08, Kt = function(e, t, a, n, s) {
18532
- var o = new Te([new He(e, Va(e, n, a))], {
18532
+ var o = Va(e, n, a), m = new He(e, o), c = new Te([m], {
18533
18533
  width: "400em",
18534
18534
  height: z(t),
18535
18535
  viewBox: "0 0 400000 " + a,
18536
18536
  preserveAspectRatio: "xMinYMin slice"
18537
18537
  });
18538
- return b.makeSvgSpan(["hide-tail"], [o], s);
18538
+ return b.makeSvgSpan(["hide-tail"], [c], s);
18539
18539
  }, L1 = function(e, t) {
18540
18540
  var a = t.havingBaseSizing(), n = jr("\\surd", e * a.sizeMultiplier, Wr, a), s = a.sizeMultiplier, o = Math.max(0, t.minRuleThickness - t.fontMetrics().sqrtRuleThickness), m, c = 0, p = 0, g = 0, y;
18541
18541
  return n.type === "small" ? (g = 1e3 + 1e3 * o + jt, e < 1 ? s = 1 : e < 1.4 && (s = 0.7), c = (1 + o + Zt) / s, p = (1 + o) / s, m = Kt("sqrtMain", c, g, o, t), m.style.minWidth = "0.853em", y = 0.833 / s) : n.type === "large" ? (g = (1e3 + jt) * it[n.size], p = (it[n.size] + o) / s, c = (it[n.size] + o + Zt) / s, m = Kt("sqrtSize" + n.size, c, g, o, t), m.style.minWidth = "1.02em", y = 1 / s) : (c = e + o + Zt, p = e + o, g = Math.floor(1e3 * e + o) + jt, m = Kt("sqrtTall", c, g, o, t), m.style.minWidth = "0.742em", y = 1.056), m.height = p, m.style.height = z(c), {
@@ -18872,7 +18872,7 @@ B({
18872
18872
  htmlBuilder: (r, e) => r.delim === "." ? b.makeSpan([r.mclass]) : Ae.sizedDelim(r.delim, r.size, e, r.mode, [r.mclass]),
18873
18873
  mathmlBuilder: (r) => {
18874
18874
  var e = [];
18875
- r.delim !== "." && e.push(ce(r.delim, r.mode));
18875
+ r.delim !== "." && e.push(fe(r.delim, r.mode));
18876
18876
  var t = new S.MathNode("mo", e);
18877
18877
  r.mclass === "mopen" || r.mclass === "mclose" ? t.setAttribute("fence", "true") : t.setAttribute("fence", "false"), t.setAttribute("stretchy", "true");
18878
18878
  var a = z(Ae.sizeToMaxHeight[r.size]);
@@ -18941,13 +18941,13 @@ B({
18941
18941
  },
18942
18942
  mathmlBuilder: (r, e) => {
18943
18943
  J0(r);
18944
- var t = se(r.body, e);
18944
+ var t = oe(r.body, e);
18945
18945
  if (r.left !== ".") {
18946
- var a = new S.MathNode("mo", [ce(r.left, r.mode)]);
18946
+ var a = new S.MathNode("mo", [fe(r.left, r.mode)]);
18947
18947
  a.setAttribute("fence", "true"), t.unshift(a);
18948
18948
  }
18949
18949
  if (r.right !== ".") {
18950
- var n = new S.MathNode("mo", [ce(r.right, r.mode)]);
18950
+ var n = new S.MathNode("mo", [fe(r.right, r.mode)]);
18951
18951
  n.setAttribute("fence", "true"), r.rightColor && n.setAttribute("mathcolor", r.rightColor), t.push(n);
18952
18952
  }
18953
18953
  return p0(t);
@@ -18983,7 +18983,7 @@ B({
18983
18983
  return t;
18984
18984
  },
18985
18985
  mathmlBuilder: (r, e) => {
18986
- var t = r.delim === "\\vert" || r.delim === "|" ? ce("|", "text") : ce(r.delim, r.mode), a = new S.MathNode("mo", [t]);
18986
+ var t = r.delim === "\\vert" || r.delim === "|" ? fe("|", "text") : fe(r.delim, r.mode), a = new S.MathNode("mo", [t]);
18987
18987
  return a.setAttribute("fence", "true"), a.setAttribute("lspace", "0.05em"), a.setAttribute("rspace", "0.05em"), a;
18988
18988
  }
18989
18989
  });
@@ -18992,30 +18992,30 @@ var w0 = (r, e) => {
18992
18992
  if (a === "sout")
18993
18993
  s = b.makeSpan(["stretchy", "sout"]), s.height = e.fontMetrics().defaultRuleThickness / n, o = -0.5 * e.fontMetrics().xHeight;
18994
18994
  else if (a === "phase") {
18995
- var c = j({
18995
+ var c = Z({
18996
18996
  number: 0.6,
18997
18997
  unit: "pt"
18998
- }, e), p = j({
18998
+ }, e), p = Z({
18999
18999
  number: 0.35,
19000
19000
  unit: "ex"
19001
19001
  }, e), g = e.havingBaseSizing();
19002
19002
  n = n / g.sizeMultiplier;
19003
19003
  var y = t.height + t.depth + c + p;
19004
19004
  t.style.paddingLeft = z(y / 2 + c);
19005
- var x = Math.floor(1e3 * y * n), w = new Te([new He("phase", Pa(x))], {
19005
+ var x = Math.floor(1e3 * y * n), w = Pa(x), A = new Te([new He("phase", w)], {
19006
19006
  width: "400em",
19007
19007
  height: z(x / 1e3),
19008
19008
  viewBox: "0 0 400000 " + x,
19009
19009
  preserveAspectRatio: "xMinYMin slice"
19010
19010
  });
19011
- s = b.makeSvgSpan(["hide-tail"], [w], e), s.style.height = z(y), o = t.depth + c + p;
19011
+ s = b.makeSvgSpan(["hide-tail"], [A], e), s.style.height = z(y), o = t.depth + c + p;
19012
19012
  } else {
19013
19013
  /cancel/.test(a) ? m || t.classes.push("cancel-pad") : a === "angl" ? t.classes.push("anglpad") : t.classes.push("boxpad");
19014
- var T = 0, A = 0, N = 0;
19015
- /box/.test(a) ? (N = Math.max(e.fontMetrics().fboxrule, e.minRuleThickness), T = e.fontMetrics().fboxsep + (a === "colorbox" ? 0 : N), A = T) : a === "angl" ? (N = Math.max(e.fontMetrics().defaultRuleThickness, e.minRuleThickness), T = 4 * N, A = Math.max(0, 0.25 - t.depth)) : (T = m ? 0.2 : 0, A = T), s = Ce.encloseSpan(t, a, T, A, e), /fbox|boxed|fcolorbox/.test(a) ? (s.style.borderStyle = "solid", s.style.borderWidth = z(N)) : a === "angl" && N !== 0.049 && (s.style.borderTopWidth = z(N), s.style.borderRightWidth = z(N)), o = t.depth + A, r.backgroundColor && (s.style.backgroundColor = r.backgroundColor, r.borderColor && (s.style.borderColor = r.borderColor));
19014
+ var T = 0, q = 0, C = 0;
19015
+ /box/.test(a) ? (C = Math.max(e.fontMetrics().fboxrule, e.minRuleThickness), T = e.fontMetrics().fboxsep + (a === "colorbox" ? 0 : C), q = T) : a === "angl" ? (C = Math.max(e.fontMetrics().defaultRuleThickness, e.minRuleThickness), T = 4 * C, q = Math.max(0, 0.25 - t.depth)) : (T = m ? 0.2 : 0, q = T), s = Ne.encloseSpan(t, a, T, q, e), /fbox|boxed|fcolorbox/.test(a) ? (s.style.borderStyle = "solid", s.style.borderWidth = z(C)) : a === "angl" && C !== 0.049 && (s.style.borderTopWidth = z(C), s.style.borderRightWidth = z(C)), o = t.depth + q, r.backgroundColor && (s.style.backgroundColor = r.backgroundColor, r.borderColor && (s.style.borderColor = r.borderColor));
19016
19016
  }
19017
- var q;
19018
- if (r.backgroundColor) q = b.makeVList({
19017
+ var O;
19018
+ if (r.backgroundColor) O = b.makeVList({
19019
19019
  positionType: "individualShift",
19020
19020
  children: [{
19021
19021
  type: "elem",
@@ -19028,8 +19028,8 @@ var w0 = (r, e) => {
19028
19028
  }]
19029
19029
  }, e);
19030
19030
  else {
19031
- var D = /cancel|phase/.test(a) ? ["svg-align"] : [];
19032
- q = b.makeVList({
19031
+ var P = /cancel|phase/.test(a) ? ["svg-align"] : [];
19032
+ O = b.makeVList({
19033
19033
  positionType: "individualShift",
19034
19034
  children: [{
19035
19035
  type: "elem",
@@ -19039,11 +19039,11 @@ var w0 = (r, e) => {
19039
19039
  type: "elem",
19040
19040
  elem: s,
19041
19041
  shift: o,
19042
- wrapperClasses: D
19042
+ wrapperClasses: P
19043
19043
  }]
19044
19044
  }, e);
19045
19045
  }
19046
- return /cancel/.test(a) && (q.height = t.height, q.depth = t.depth), /cancel/.test(a) && !m ? b.makeSpan(["mord", "cancel-lap"], [q], e) : b.makeSpan(["mord"], [q], e);
19046
+ return /cancel/.test(a) && (O.height = t.height, O.depth = t.depth), /cancel/.test(a) && !m ? b.makeSpan(["mord", "cancel-lap"], [O], e) : b.makeSpan(["mord"], [O], e);
19047
19047
  }, x0 = (r, e) => {
19048
19048
  var t = 0, a = new S.MathNode(r.label.indexOf("colorbox") > -1 ? "mpadded" : "menclose", [$(r.body, e)]);
19049
19049
  switch (r.label) {
@@ -19192,7 +19192,7 @@ function xe(r) {
19192
19192
  numOptionalArgs: 0,
19193
19193
  handler: n
19194
19194
  }, c = 0; c < t.length; ++c) Zr[t[c]] = m;
19195
- s && (Bt[e] = s), o && (Ct[e] = o);
19195
+ s && (Bt[e] = s), o && (Nt[e] = o);
19196
19196
  }
19197
19197
  var Kr = {};
19198
19198
  function u(r, e) {
@@ -19220,39 +19220,39 @@ function Pe(r, e, t) {
19220
19220
  else if (o = parseFloat(w), !o || o < 0) throw new M("Invalid \\arraystretch: " + w);
19221
19221
  }
19222
19222
  r.gullet.beginGroup();
19223
- var T = [], A = [T], N = [], q = [], D = c != null ? [] : void 0;
19224
- function V() {
19223
+ var A = [], T = [A], q = [], C = [], O = c != null ? [] : void 0;
19224
+ function P() {
19225
19225
  c && r.gullet.macros.set("\\@eqnsw", "1", !0);
19226
19226
  }
19227
- function P() {
19228
- D && (r.gullet.macros.get("\\df@tag") ? (D.push(r.subparse([new we("\\df@tag")])), r.gullet.macros.set("\\df@tag", void 0, !0)) : D.push(!!c && r.gullet.macros.get("\\@eqnsw") === "1"));
19227
+ function V() {
19228
+ O && (r.gullet.macros.get("\\df@tag") ? (O.push(r.subparse([new we("\\df@tag")])), r.gullet.macros.set("\\df@tag", void 0, !0)) : O.push(!!c && r.gullet.macros.get("\\@eqnsw") === "1"));
19229
19229
  }
19230
- for (V(), q.push(Q0(r)); ; ) {
19231
- var H = r.parseExpression(!1, p ? "\\end" : "\\\\");
19232
- r.gullet.endGroup(), r.gullet.beginGroup(), H = {
19230
+ for (P(), C.push(Q0(r)); ; ) {
19231
+ var F = r.parseExpression(!1, p ? "\\end" : "\\\\");
19232
+ r.gullet.endGroup(), r.gullet.beginGroup(), F = {
19233
19233
  type: "ordgroup",
19234
19234
  mode: r.mode,
19235
- body: H
19236
- }, t && (H = {
19235
+ body: F
19236
+ }, t && (F = {
19237
19237
  type: "styling",
19238
19238
  mode: r.mode,
19239
19239
  style: t,
19240
- body: [H]
19241
- }), T.push(H);
19242
- var F = r.fetch().text;
19243
- if (F === "&") {
19244
- if (y && T.length === y) {
19240
+ body: [F]
19241
+ }), A.push(F);
19242
+ var H = r.fetch().text;
19243
+ if (H === "&") {
19244
+ if (y && A.length === y) {
19245
19245
  if (p || m) throw new M("Too many tab characters: &", r.nextToken);
19246
19246
  r.settings.reportNonstrict("textEnv", "Too few columns specified in the {array} column argument.");
19247
19247
  }
19248
19248
  r.consume();
19249
- } else if (F === "\\end") {
19250
- P(), T.length === 1 && H.type === "styling" && H.body[0].body.length === 0 && (A.length > 1 || !g) && A.pop(), q.length < A.length + 1 && q.push([]);
19249
+ } else if (H === "\\end") {
19250
+ V(), A.length === 1 && F.type === "styling" && F.body[0].body.length === 0 && (T.length > 1 || !g) && T.pop(), C.length < T.length + 1 && C.push([]);
19251
19251
  break;
19252
- } else if (F === "\\\\") {
19252
+ } else if (H === "\\\\") {
19253
19253
  r.consume();
19254
19254
  var U = void 0;
19255
- r.gullet.future().text !== " " && (U = r.parseSizeGroup(!0)), N.push(U ? U.value : null), P(), q.push(Q0(r)), T = [], A.push(T), V();
19255
+ r.gullet.future().text !== " " && (U = r.parseSizeGroup(!0)), q.push(U ? U.value : null), V(), C.push(Q0(r)), A = [], T.push(A), P();
19256
19256
  } else throw new M("Expected & or \\\\ or \\cr or \\end", r.nextToken);
19257
19257
  }
19258
19258
  return r.gullet.endGroup(), r.gullet.endGroup(), {
@@ -19260,13 +19260,13 @@ function Pe(r, e, t) {
19260
19260
  mode: r.mode,
19261
19261
  addJot: n,
19262
19262
  arraystretch: o,
19263
- body: A,
19263
+ body: T,
19264
19264
  cols: s,
19265
- rowGaps: N,
19265
+ rowGaps: q,
19266
19266
  hskipBeforeAndAfter: a,
19267
- hLinesBeforeRow: q,
19267
+ hLinesBeforeRow: C,
19268
19268
  colSeparationType: m,
19269
- tags: D,
19269
+ tags: O,
19270
19270
  leqno: x
19271
19271
  };
19272
19272
  }
@@ -19276,75 +19276,75 @@ function S0(r) {
19276
19276
  var ke = function(e, t) {
19277
19277
  var a, n, s = e.body.length, o = e.hLinesBeforeRow, m = 0, c = new Array(s), p = [], g = Math.max(t.fontMetrics().arrayRuleWidth, t.minRuleThickness), y = 1 / t.fontMetrics().ptPerEm, x = 5 * y;
19278
19278
  e.colSeparationType && e.colSeparationType === "small" && (x = 0.2778 * (t.havingStyle(I.SCRIPT).sizeMultiplier / t.sizeMultiplier));
19279
- var w = e.colSeparationType === "CD" ? j({
19279
+ var w = e.colSeparationType === "CD" ? Z({
19280
19280
  number: 3,
19281
19281
  unit: "ex"
19282
- }, t) : 12 * y, T = 3 * y, A = e.arraystretch * w, N = 0.7 * A, q = 0.3 * A, D = 0;
19283
- function V(dt) {
19282
+ }, t) : 12 * y, A = 3 * y, T = e.arraystretch * w, q = 0.7 * T, C = 0.3 * T, O = 0;
19283
+ function P(dt) {
19284
19284
  for (var ft = 0; ft < dt.length; ++ft)
19285
- ft > 0 && (D += 0.25), p.push({
19286
- pos: D,
19285
+ ft > 0 && (O += 0.25), p.push({
19286
+ pos: O,
19287
19287
  isDashed: dt[ft]
19288
19288
  });
19289
19289
  }
19290
- for (V(o[0]), a = 0; a < e.body.length; ++a) {
19291
- var P = e.body[a], H = N, F = q;
19292
- m < P.length && (m = P.length);
19293
- var U = new Array(P.length);
19294
- for (n = 0; n < P.length; ++n) {
19295
- var Z = G(P[n], t);
19296
- F < Z.depth && (F = Z.depth), H < Z.height && (H = Z.height), U[n] = Z;
19290
+ for (P(o[0]), a = 0; a < e.body.length; ++a) {
19291
+ var V = e.body[a], F = q, H = C;
19292
+ m < V.length && (m = V.length);
19293
+ var U = new Array(V.length);
19294
+ for (n = 0; n < V.length; ++n) {
19295
+ var Y = G(V[n], t);
19296
+ H < Y.depth && (H = Y.depth), F < Y.height && (F = Y.height), U[n] = Y;
19297
19297
  }
19298
- var te = e.rowGaps[a], de = 0;
19299
- te && (de = j(te, t), de > 0 && (de += q, F < de && (F = de), de = 0)), e.addJot && (F += T), U.height = H, U.depth = F, D += H, U.pos = D, D += F + de, c[a] = U, V(o[a + 1]);
19298
+ var ie = e.rowGaps[a], te = 0;
19299
+ ie && (te = Z(ie, t), te > 0 && (te += C, H < te && (H = te), te = 0)), e.addJot && (H += A), U.height = F, U.depth = H, O += F, U.pos = O, O += H + te, c[a] = U, P(o[a + 1]);
19300
19300
  }
19301
- var J = D / 2 + t.fontMetrics().axisHeight, tt = e.cols || [], ge = [], fe, qe, Xe = [];
19301
+ var _ = O / 2 + t.fontMetrics().axisHeight, Ge = e.cols || [], se = [], pe, qe, Ye = [];
19302
19302
  if (e.tags && e.tags.some((dt) => dt)) for (a = 0; a < s; ++a) {
19303
- var Ye = c[a], Lt = Ye.pos - J, Re = e.tags[a], Ee = void 0;
19304
- Re === !0 ? Ee = b.makeSpan(["eqn-num"], [], t) : Re === !1 ? Ee = b.makeSpan([], [], t) : Ee = b.makeSpan([], ee(Re, t, !0), t), Ee.depth = Ye.depth, Ee.height = Ye.height, Xe.push({
19303
+ var We = c[a], Lt = We.pos - _, Re = e.tags[a], Ee = void 0;
19304
+ Re === !0 ? Ee = b.makeSpan(["eqn-num"], [], t) : Re === !1 ? Ee = b.makeSpan([], [], t) : Ee = b.makeSpan([], ee(Re, t, !0), t), Ee.depth = We.depth, Ee.height = We.height, Ye.push({
19305
19305
  type: "elem",
19306
19306
  elem: Ee,
19307
19307
  shift: Lt
19308
19308
  });
19309
19309
  }
19310
- for (n = 0, qe = 0; n < m || qe < tt.length; ++n, ++qe) {
19311
- for (var oe = tt[qe] || {}, rt = !0; oe.type === "separator"; ) {
19312
- if (rt || (fe = b.makeSpan(["arraycolsep"], []), fe.style.width = z(t.fontMetrics().doubleRuleSep), ge.push(fe)), oe.separator === "|" || oe.separator === ":") {
19313
- var Ht = oe.separator === "|" ? "solid" : "dashed", We = b.makeSpan(["vertical-separator"], [], t);
19314
- We.style.height = z(D), We.style.borderRightWidth = z(g), We.style.borderRightStyle = Ht, We.style.margin = "0 " + z(-g / 2);
19315
- var N0 = D - J;
19316
- N0 && (We.style.verticalAlign = z(-N0)), ge.push(We);
19317
- } else throw new M("Invalid separator type: " + oe.separator);
19318
- qe++, oe = tt[qe] || {}, rt = !1;
19310
+ for (n = 0, qe = 0; n < m || qe < Ge.length; ++n, ++qe) {
19311
+ for (var me = Ge[qe] || {}, rt = !0; me.type === "separator"; ) {
19312
+ if (rt || (pe = b.makeSpan(["arraycolsep"], []), pe.style.width = z(t.fontMetrics().doubleRuleSep), se.push(pe)), me.separator === "|" || me.separator === ":") {
19313
+ var Ht = me.separator === "|" ? "solid" : "dashed", je = b.makeSpan(["vertical-separator"], [], t);
19314
+ je.style.height = z(O), je.style.borderRightWidth = z(g), je.style.borderRightStyle = Ht, je.style.margin = "0 " + z(-g / 2);
19315
+ var C0 = O - _;
19316
+ C0 && (je.style.verticalAlign = z(-C0)), se.push(je);
19317
+ } else throw new M("Invalid separator type: " + me.separator);
19318
+ qe++, me = Ge[qe] || {}, rt = !1;
19319
19319
  }
19320
19320
  if (!(n >= m)) {
19321
- var je = void 0;
19322
- (n > 0 || e.hskipBeforeAndAfter) && (je = R.deflt(oe.pregap, x), je !== 0 && (fe = b.makeSpan(["arraycolsep"], []), fe.style.width = z(je), ge.push(fe)));
19323
- var Ze = [];
19321
+ var Ze = void 0;
19322
+ (n > 0 || e.hskipBeforeAndAfter) && (Ze = R.deflt(me.pregap, x), Ze !== 0 && (pe = b.makeSpan(["arraycolsep"], []), pe.style.width = z(Ze), se.push(pe)));
19323
+ var Ke = [];
19324
19324
  for (a = 0; a < s; ++a) {
19325
19325
  var ut = c[a], ct = ut[n];
19326
19326
  if (ct) {
19327
- var pa = ut.pos - J;
19328
- ct.depth = ut.depth, ct.height = ut.height, Ze.push({
19327
+ var pa = ut.pos - _;
19328
+ ct.depth = ut.depth, ct.height = ut.height, Ke.push({
19329
19329
  type: "elem",
19330
19330
  elem: ct,
19331
19331
  shift: pa
19332
19332
  });
19333
19333
  }
19334
19334
  }
19335
- Ze = b.makeVList({
19335
+ Ke = b.makeVList({
19336
19336
  positionType: "individualShift",
19337
- children: Ze
19338
- }, t), Ze = b.makeSpan(["col-align-" + (oe.align || "c")], [Ze]), ge.push(Ze), (n < m - 1 || e.hskipBeforeAndAfter) && (je = R.deflt(oe.postgap, x), je !== 0 && (fe = b.makeSpan(["arraycolsep"], []), fe.style.width = z(je), ge.push(fe)));
19337
+ children: Ke
19338
+ }, t), Ke = b.makeSpan(["col-align-" + (me.align || "c")], [Ke]), se.push(Ke), (n < m - 1 || e.hskipBeforeAndAfter) && (Ze = R.deflt(me.postgap, x), Ze !== 0 && (pe = b.makeSpan(["arraycolsep"], []), pe.style.width = z(Ze), se.push(pe)));
19339
19339
  }
19340
19340
  }
19341
- if (c = b.makeSpan(["mtable"], ge), p.length > 0) {
19341
+ if (c = b.makeSpan(["mtable"], se), p.length > 0) {
19342
19342
  for (var va = b.makeLineSpan("hline", t, g), ga = b.makeLineSpan("hdashline", t, g), Ft = [{
19343
19343
  type: "elem",
19344
19344
  elem: c,
19345
19345
  shift: 0
19346
19346
  }]; p.length > 0; ) {
19347
- var q0 = p.pop(), R0 = q0.pos - J;
19347
+ var q0 = p.pop(), R0 = q0.pos - _;
19348
19348
  q0.isDashed ? Ft.push({
19349
19349
  type: "elem",
19350
19350
  elem: ga,
@@ -19360,10 +19360,10 @@ var ke = function(e, t) {
19360
19360
  children: Ft
19361
19361
  }, t);
19362
19362
  }
19363
- if (Xe.length === 0) return b.makeSpan(["mord"], [c], t);
19363
+ if (Ye.length === 0) return b.makeSpan(["mord"], [c], t);
19364
19364
  var Pt = b.makeVList({
19365
19365
  positionType: "individualShift",
19366
- children: Xe
19366
+ children: Ye
19367
19367
  }, t);
19368
19368
  return Pt = b.makeSpan(["tag"], [Pt], t), b.makeFragment([c, Pt]);
19369
19369
  }, $1 = {
@@ -19379,18 +19379,18 @@ var ke = function(e, t) {
19379
19379
  g.setAttribute("rowspacing", z(y));
19380
19380
  var x = "", w = "";
19381
19381
  if (e.cols && e.cols.length > 0) {
19382
- var T = e.cols, A = "", N = !1, q = 0, D = T.length;
19383
- T[0].type === "separator" && (x += "top ", q = 1), T[T.length - 1].type === "separator" && (x += "bottom ", D -= 1);
19384
- for (var V = q; V < D; V++) T[V].type === "align" ? (w += $1[T[V].align], N && (A += "none "), N = !0) : T[V].type === "separator" && N && (A += T[V].separator === "|" ? "solid " : "dashed ", N = !1);
19385
- g.setAttribute("columnalign", w.trim()), /[sd]/.test(A) && g.setAttribute("columnlines", A.trim());
19382
+ var A = e.cols, T = "", q = !1, C = 0, O = A.length;
19383
+ A[0].type === "separator" && (x += "top ", C = 1), A[A.length - 1].type === "separator" && (x += "bottom ", O -= 1);
19384
+ for (var P = C; P < O; P++) A[P].type === "align" ? (w += $1[A[P].align], q && (T += "none "), q = !0) : A[P].type === "separator" && q && (T += A[P].separator === "|" ? "solid " : "dashed ", q = !1);
19385
+ g.setAttribute("columnalign", w.trim()), /[sd]/.test(T) && g.setAttribute("columnlines", T.trim());
19386
19386
  }
19387
19387
  if (e.colSeparationType === "align") {
19388
- for (var P = e.cols || [], H = "", F = 1; F < P.length; F++) H += F % 2 ? "0em " : "1em ";
19389
- g.setAttribute("columnspacing", H.trim());
19388
+ for (var V = e.cols || [], F = "", H = 1; H < V.length; H++) F += H % 2 ? "0em " : "1em ";
19389
+ g.setAttribute("columnspacing", F.trim());
19390
19390
  } else e.colSeparationType === "alignat" || e.colSeparationType === "gather" ? g.setAttribute("columnspacing", "0em") : e.colSeparationType === "small" ? g.setAttribute("columnspacing", "0.2778em") : e.colSeparationType === "CD" ? g.setAttribute("columnspacing", "0.5em") : g.setAttribute("columnspacing", "1em");
19391
- var U = "", Z = e.hLinesBeforeRow;
19392
- x += Z[0].length > 0 ? "left " : "", x += Z[Z.length - 1].length > 0 ? "right " : "";
19393
- for (var te = 1; te < Z.length - 1; te++) U += Z[te].length === 0 ? "none " : Z[te][0] ? "dashed " : "solid ";
19391
+ var U = "", Y = e.hLinesBeforeRow;
19392
+ x += Y[0].length > 0 ? "left " : "", x += Y[Y.length - 1].length > 0 ? "right " : "";
19393
+ for (var ie = 1; ie < Y.length - 1; ie++) U += Y[ie].length === 0 ? "none " : Y[ie][0] ? "dashed " : "solid ";
19394
19394
  return /[sd]/.test(U) && g.setAttribute("rowlines", U.trim()), x !== "" && (g = new S.MathNode("menclose", [g]), g.setAttribute("notation", x.trim())), e.arraystretch && e.arraystretch < 1 && (g = new S.MathNode("mstyle", [g]), g.setAttribute("scriptlevel", "1")), g;
19395
19395
  }, Jr = function(e, t) {
19396
19396
  e.envName.indexOf("ed") === -1 && Dt(e);
@@ -19415,21 +19415,21 @@ var ke = function(e, t) {
19415
19415
  m = Number(g), c = m * 2;
19416
19416
  }
19417
19417
  var w = !c;
19418
- o.body.forEach(function(q) {
19419
- for (var D = 1; D < q.length; D += 2) L(L(q[D], "styling").body[0], "ordgroup").body.unshift(p);
19418
+ o.body.forEach(function(C) {
19419
+ for (var O = 1; O < C.length; O += 2) L(L(C[O], "styling").body[0], "ordgroup").body.unshift(p);
19420
19420
  if (w)
19421
- c < q.length && (c = q.length);
19421
+ c < C.length && (c = C.length);
19422
19422
  else {
19423
- var V = q.length / 2;
19424
- if (m < V) throw new M("Too many math in a row: " + ("expected " + m + ", but got " + V), q[0]);
19423
+ var P = C.length / 2;
19424
+ if (m < P) throw new M("Too many math in a row: " + ("expected " + m + ", but got " + P), C[0]);
19425
19425
  }
19426
19426
  });
19427
- for (var T = 0; T < c; ++T) {
19428
- var A = "r", N = 0;
19429
- T % 2 === 1 ? A = "l" : T > 0 && w && (N = 1), a[T] = {
19427
+ for (var A = 0; A < c; ++A) {
19428
+ var T = "r", q = 0;
19429
+ A % 2 === 1 ? T = "l" : A > 0 && w && (q = 1), a[A] = {
19430
19430
  type: "align",
19431
- align: A,
19432
- pregap: N,
19431
+ align: T,
19432
+ pregap: q,
19433
19433
  postgap: 0
19434
19434
  };
19435
19435
  }
@@ -19754,7 +19754,7 @@ B({
19754
19754
  allowedInArgument: !0
19755
19755
  },
19756
19756
  handler: (r, e) => {
19757
- var { parser: t, funcName: a } = r, n = Nt(e[0]), s = a;
19757
+ var { parser: t, funcName: a } = r, n = Ct(e[0]), s = a;
19758
19758
  return s in er && (s = er[s]), {
19759
19759
  type: "font",
19760
19760
  mode: t.mode,
@@ -19826,26 +19826,26 @@ var ea = (r, e) => {
19826
19826
  }
19827
19827
  s = e.havingStyle(n);
19828
19828
  var p = G(r.denom, s, e), g, y, x;
19829
- r.hasBarLine ? (r.barSize ? (y = j(r.barSize, e), g = b.makeLineSpan("frac-line", e, y)) : g = b.makeLineSpan("frac-line", e), y = g.height, x = g.height) : (g = null, y = 0, x = e.fontMetrics().defaultRuleThickness);
19830
- var w, T, A;
19831
- t.size === I.DISPLAY.size || r.size === "display" ? (w = e.fontMetrics().num1, y > 0 ? T = 3 * x : T = 7 * x, A = e.fontMetrics().denom1) : (y > 0 ? (w = e.fontMetrics().num2, T = x) : (w = e.fontMetrics().num3, T = 3 * x), A = e.fontMetrics().denom2);
19832
- var N;
19829
+ r.hasBarLine ? (r.barSize ? (y = Z(r.barSize, e), g = b.makeLineSpan("frac-line", e, y)) : g = b.makeLineSpan("frac-line", e), y = g.height, x = g.height) : (g = null, y = 0, x = e.fontMetrics().defaultRuleThickness);
19830
+ var w, A, T;
19831
+ t.size === I.DISPLAY.size || r.size === "display" ? (w = e.fontMetrics().num1, y > 0 ? A = 3 * x : A = 7 * x, T = e.fontMetrics().denom1) : (y > 0 ? (w = e.fontMetrics().num2, A = x) : (w = e.fontMetrics().num3, A = 3 * x), T = e.fontMetrics().denom2);
19832
+ var q;
19833
19833
  if (g) {
19834
- var D = e.fontMetrics().axisHeight;
19835
- w - o.depth - (D + 0.5 * y) < T && (w += T - (w - o.depth - (D + 0.5 * y))), D - 0.5 * y - (p.height - A) < T && (A += T - (D - 0.5 * y - (p.height - A)));
19836
- var V = -(D - 0.5 * y);
19837
- N = b.makeVList({
19834
+ var O = e.fontMetrics().axisHeight;
19835
+ w - o.depth - (O + 0.5 * y) < A && (w += A - (w - o.depth - (O + 0.5 * y))), O - 0.5 * y - (p.height - T) < A && (T += A - (O - 0.5 * y - (p.height - T)));
19836
+ var P = -(O - 0.5 * y);
19837
+ q = b.makeVList({
19838
19838
  positionType: "individualShift",
19839
19839
  children: [
19840
19840
  {
19841
19841
  type: "elem",
19842
19842
  elem: p,
19843
- shift: A
19843
+ shift: T
19844
19844
  },
19845
19845
  {
19846
19846
  type: "elem",
19847
19847
  elem: g,
19848
- shift: V
19848
+ shift: P
19849
19849
  },
19850
19850
  {
19851
19851
  type: "elem",
@@ -19855,13 +19855,13 @@ var ea = (r, e) => {
19855
19855
  ]
19856
19856
  }, e);
19857
19857
  } else {
19858
- var q = w - o.depth - (p.height - A);
19859
- q < T && (w += 0.5 * (T - q), A += 0.5 * (T - q)), N = b.makeVList({
19858
+ var C = w - o.depth - (p.height - T);
19859
+ C < A && (w += 0.5 * (A - C), T += 0.5 * (A - C)), q = b.makeVList({
19860
19860
  positionType: "individualShift",
19861
19861
  children: [{
19862
19862
  type: "elem",
19863
19863
  elem: p,
19864
- shift: A
19864
+ shift: T
19865
19865
  }, {
19866
19866
  type: "elem",
19867
19867
  elem: o,
@@ -19869,20 +19869,20 @@ var ea = (r, e) => {
19869
19869
  }]
19870
19870
  }, e);
19871
19871
  }
19872
- s = e.havingStyle(t), N.height *= s.sizeMultiplier / e.sizeMultiplier, N.depth *= s.sizeMultiplier / e.sizeMultiplier;
19873
- var P;
19874
- t.size === I.DISPLAY.size ? P = e.fontMetrics().delim1 : t.size === I.SCRIPTSCRIPT.size ? P = e.havingStyle(I.SCRIPT).fontMetrics().delim2 : P = e.fontMetrics().delim2;
19875
- var H, F;
19876
- return r.leftDelim == null ? H = lt(e, ["mopen"]) : H = Ae.customSizedDelim(r.leftDelim, P, !0, e.havingStyle(t), r.mode, ["mopen"]), r.continued ? F = b.makeSpan([]) : r.rightDelim == null ? F = lt(e, ["mclose"]) : F = Ae.customSizedDelim(r.rightDelim, P, !0, e.havingStyle(t), r.mode, ["mclose"]), b.makeSpan(["mord"].concat(s.sizingClasses(e)), [
19877
- H,
19878
- b.makeSpan(["mfrac"], [N]),
19879
- F
19872
+ s = e.havingStyle(t), q.height *= s.sizeMultiplier / e.sizeMultiplier, q.depth *= s.sizeMultiplier / e.sizeMultiplier;
19873
+ var V;
19874
+ t.size === I.DISPLAY.size ? V = e.fontMetrics().delim1 : t.size === I.SCRIPTSCRIPT.size ? V = e.havingStyle(I.SCRIPT).fontMetrics().delim2 : V = e.fontMetrics().delim2;
19875
+ var F, H;
19876
+ return r.leftDelim == null ? F = lt(e, ["mopen"]) : F = Ae.customSizedDelim(r.leftDelim, V, !0, e.havingStyle(t), r.mode, ["mopen"]), r.continued ? H = b.makeSpan([]) : r.rightDelim == null ? H = lt(e, ["mclose"]) : H = Ae.customSizedDelim(r.rightDelim, V, !0, e.havingStyle(t), r.mode, ["mclose"]), b.makeSpan(["mord"].concat(s.sizingClasses(e)), [
19877
+ F,
19878
+ b.makeSpan(["mfrac"], [q]),
19879
+ H
19880
19880
  ], e);
19881
19881
  }, z0 = (r, e) => {
19882
19882
  var t = new S.MathNode("mfrac", [$(r.numer, e), $(r.denom, e)]);
19883
19883
  if (!r.hasBarLine) t.setAttribute("linethickness", "0px");
19884
19884
  else if (r.barSize) {
19885
- var a = j(r.barSize, e);
19885
+ var a = Z(r.barSize, e);
19886
19886
  t.setAttribute("linethickness", z(a));
19887
19887
  }
19888
19888
  var n = ea(r.size, e.style);
@@ -20060,13 +20060,13 @@ B({
20060
20060
  ]
20061
20061
  },
20062
20062
  handler(r, e) {
20063
- var { parser: t } = r, a = e[4], n = e[5], s = Nt(e[0]), o = s.type === "atom" && s.family === "open" ? rr(s.text) : null, m = Nt(e[1]), c = m.type === "atom" && m.family === "close" ? rr(m.text) : null, p = L(e[2], "size"), g, y = null;
20063
+ var { parser: t } = r, a = e[4], n = e[5], s = Ct(e[0]), o = s.type === "atom" && s.family === "open" ? rr(s.text) : null, m = Ct(e[1]), c = m.type === "atom" && m.family === "close" ? rr(m.text) : null, p = L(e[2], "size"), g, y = null;
20064
20064
  p.isBlank ? g = !0 : (y = p.value, g = y.number > 0);
20065
20065
  var x = "auto", w = e[3];
20066
20066
  if (w.type === "ordgroup") {
20067
20067
  if (w.body.length > 0) {
20068
- var T = L(w.body[0], "textord");
20069
- x = tr[Number(T.text)];
20068
+ var A = L(w.body[0], "textord");
20069
+ x = tr[Number(A.text)];
20070
20070
  }
20071
20071
  } else
20072
20072
  w = L(w, "textord"), x = tr[Number(w.text)];
@@ -20137,7 +20137,7 @@ B({
20137
20137
  var ta = (r, e) => {
20138
20138
  var t = e.style, a, n;
20139
20139
  r.type === "supsub" ? (a = r.sup ? G(r.sup, e.havingStyle(t.sup()), e) : G(r.sub, e.havingStyle(t.sub()), e), n = L(r.base, "horizBrace")) : n = L(r, "horizBrace");
20140
- var s = G(n.base, e.havingBaseStyle(I.DISPLAY)), o = Ce.svgSpan(n, e), m;
20140
+ var s = G(n.base, e.havingBaseStyle(I.DISPLAY)), o = Ne.svgSpan(n, e), m;
20141
20141
  if (n.isOver ? (m = b.makeVList({
20142
20142
  positionType: "firstBaseline",
20143
20143
  children: [
@@ -20210,7 +20210,7 @@ var ta = (r, e) => {
20210
20210
  }
20211
20211
  return b.makeSpan(["mord", n.isOver ? "mover" : "munder"], [m], e);
20212
20212
  }, X1 = (r, e) => {
20213
- var t = Ce.mathMLnode(r.label);
20213
+ var t = Ne.mathMLnode(r.label);
20214
20214
  return new S.MathNode(r.isOver ? "mover" : "munder", [$(r.base, e), t]);
20215
20215
  };
20216
20216
  B({
@@ -20247,7 +20247,7 @@ B({
20247
20247
  type: "href",
20248
20248
  mode: t.mode,
20249
20249
  href: n,
20250
- body: Q(a)
20250
+ body: J(a)
20251
20251
  } : t.formatUnsupportedCmd("\\href");
20252
20252
  },
20253
20253
  htmlBuilder: (r, e) => {
@@ -20256,7 +20256,7 @@ B({
20256
20256
  },
20257
20257
  mathmlBuilder: (r, e) => {
20258
20258
  var t = Fe(r.body, e);
20259
- return t instanceof he || (t = new he("mrow", [t])), t.setAttribute("href", r.href), t;
20259
+ return t instanceof ue || (t = new ue("mrow", [t])), t.setAttribute("href", r.href), t;
20260
20260
  }
20261
20261
  });
20262
20262
  B({
@@ -20291,7 +20291,7 @@ B({
20291
20291
  type: "href",
20292
20292
  mode: t.mode,
20293
20293
  href: a,
20294
- body: Q(m)
20294
+ body: J(m)
20295
20295
  };
20296
20296
  }
20297
20297
  });
@@ -20309,7 +20309,7 @@ B({
20309
20309
  return {
20310
20310
  type: "hbox",
20311
20311
  mode: t.mode,
20312
- body: Q(e[0])
20312
+ body: J(e[0])
20313
20313
  };
20314
20314
  },
20315
20315
  htmlBuilder(r, e) {
@@ -20317,7 +20317,7 @@ B({
20317
20317
  return b.makeFragment(t);
20318
20318
  },
20319
20319
  mathmlBuilder(r, e) {
20320
- return new S.MathNode("mrow", se(r.body, e));
20320
+ return new S.MathNode("mrow", oe(r.body, e));
20321
20321
  }
20322
20322
  });
20323
20323
  B({
@@ -20374,7 +20374,7 @@ B({
20374
20374
  type: "html",
20375
20375
  mode: t.mode,
20376
20376
  attributes: c,
20377
- body: Q(o)
20377
+ body: J(o)
20378
20378
  } : t.formatUnsupportedCmd(a);
20379
20379
  },
20380
20380
  htmlBuilder: (r, e) => {
@@ -20398,8 +20398,8 @@ B({
20398
20398
  return {
20399
20399
  type: "htmlmathml",
20400
20400
  mode: t.mode,
20401
- html: Q(e[0]),
20402
- mathml: Q(e[1])
20401
+ html: J(e[0]),
20402
+ mathml: J(e[1])
20403
20403
  };
20404
20404
  },
20405
20405
  htmlBuilder: (r, e) => {
@@ -20480,10 +20480,10 @@ B({
20480
20480
  } : a.formatUnsupportedCmd("\\includegraphics");
20481
20481
  },
20482
20482
  htmlBuilder: (r, e) => {
20483
- var t = j(r.height, e), a = 0;
20484
- r.totalheight.number > 0 && (a = j(r.totalheight, e) - t);
20483
+ var t = Z(r.height, e), a = 0;
20484
+ r.totalheight.number > 0 && (a = Z(r.totalheight, e) - t);
20485
20485
  var n = 0;
20486
- r.width.number > 0 && (n = j(r.width, e));
20486
+ r.width.number > 0 && (n = Z(r.width, e));
20487
20487
  var s = { height: z(t + a) };
20488
20488
  n > 0 && (s.width = z(n)), a > 0 && (s.verticalAlign = z(-a));
20489
20489
  var o = new Za(r.src, r.alt, s);
@@ -20492,9 +20492,9 @@ B({
20492
20492
  mathmlBuilder: (r, e) => {
20493
20493
  var t = new S.MathNode("mglyph", []);
20494
20494
  t.setAttribute("alt", r.alt);
20495
- var a = j(r.height, e), n = 0;
20496
- if (r.totalheight.number > 0 && (n = j(r.totalheight, e) - a, t.setAttribute("valign", z(-n))), t.setAttribute("height", z(a + n)), r.width.number > 0) {
20497
- var s = j(r.width, e);
20495
+ var a = Z(r.height, e), n = 0;
20496
+ if (r.totalheight.number > 0 && (n = Z(r.totalheight, e) - a, t.setAttribute("valign", z(-n))), t.setAttribute("height", z(a + n)), r.width.number > 0) {
20497
+ var s = Z(r.width, e);
20498
20498
  t.setAttribute("width", z(s));
20499
20499
  }
20500
20500
  return t.setAttribute("src", r.src), t;
@@ -20530,7 +20530,7 @@ B({
20530
20530
  return b.makeGlue(r.dimension, e);
20531
20531
  },
20532
20532
  mathmlBuilder(r, e) {
20533
- var t = j(r.dimension, e);
20533
+ var t = Z(r.dimension, e);
20534
20534
  return new S.SpaceNode(t);
20535
20535
  }
20536
20536
  });
@@ -20627,10 +20627,10 @@ B({
20627
20627
  return {
20628
20628
  type: "mathchoice",
20629
20629
  mode: t.mode,
20630
- display: Q(e[0]),
20631
- text: Q(e[1]),
20632
- script: Q(e[2]),
20633
- scriptscript: Q(e[3])
20630
+ display: J(e[0]),
20631
+ text: J(e[1]),
20632
+ script: J(e[2]),
20633
+ scriptscript: J(e[3])
20634
20634
  };
20635
20635
  },
20636
20636
  htmlBuilder: (r, e) => {
@@ -20696,10 +20696,10 @@ var ra = (r, e, t, a, n, s, o) => {
20696
20696
  ]
20697
20697
  }, a);
20698
20698
  } else if (c) {
20699
- var T = r.height - o;
20699
+ var A = r.height - o;
20700
20700
  x = b.makeVList({
20701
20701
  positionType: "top",
20702
- positionData: T,
20702
+ positionData: A,
20703
20703
  children: [
20704
20704
  {
20705
20705
  type: "kern",
@@ -20721,10 +20721,10 @@ var ra = (r, e, t, a, n, s, o) => {
20721
20721
  ]
20722
20722
  }, a);
20723
20723
  } else if (p) {
20724
- var A = r.depth + o;
20724
+ var T = r.depth + o;
20725
20725
  x = b.makeVList({
20726
20726
  positionType: "bottom",
20727
- positionData: A,
20727
+ positionData: T,
20728
20728
  children: [
20729
20729
  {
20730
20730
  type: "elem",
@@ -20746,13 +20746,13 @@ var ra = (r, e, t, a, n, s, o) => {
20746
20746
  ]
20747
20747
  }, a);
20748
20748
  } else return r;
20749
- var N = [x];
20749
+ var q = [x];
20750
20750
  if (c && s !== 0 && !m) {
20751
- var q = b.makeSpan(["mspace"], [], a);
20752
- q.style.marginRight = z(s), N.unshift(q);
20751
+ var C = b.makeSpan(["mspace"], [], a);
20752
+ C.style.marginRight = z(s), q.unshift(C);
20753
20753
  }
20754
- return b.makeSpan(["mop", "op-limits"], N, a);
20755
- }, aa = ["\\smallint"], et = (r, e) => {
20754
+ return b.makeSpan(["mop", "op-limits"], q, a);
20755
+ }, aa = ["\\smallint"], tt = (r, e) => {
20756
20756
  var t, a, n = !1, s;
20757
20757
  r.type === "supsub" ? (t = r.sup, a = r.sub, s = L(r.base, "op"), n = !0) : s = L(r, "op");
20758
20758
  var o = e.style, m = !1;
@@ -20781,22 +20781,22 @@ var ra = (r, e, t, a, n, s, o) => {
20781
20781
  }
20782
20782
  } else if (s.body) {
20783
20783
  var w = ee(s.body, e, !0);
20784
- w.length === 1 && w[0] instanceof ue ? (c = w[0], c.classes[0] = "mop") : c = b.makeSpan(["mop"], w, e);
20784
+ w.length === 1 && w[0] instanceof de ? (c = w[0], c.classes[0] = "mop") : c = b.makeSpan(["mop"], w, e);
20785
20785
  } else {
20786
- for (var T = [], A = 1; A < s.name.length; A++) T.push(b.mathsym(s.name[A], s.mode, e));
20787
- c = b.makeSpan(["mop"], T, e);
20786
+ for (var A = [], T = 1; T < s.name.length; T++) A.push(b.mathsym(s.name[T], s.mode, e));
20787
+ c = b.makeSpan(["mop"], A, e);
20788
20788
  }
20789
- var N = 0, q = 0;
20790
- return (c instanceof ue || s.name === "\\oiint" || s.name === "\\oiiint") && !s.suppressBaseShift && (N = (c.height - c.depth) / 2 - e.fontMetrics().axisHeight, q = c.italic), n ? ra(c, t, a, e, o, q, N) : (N && (c.style.position = "relative", c.style.top = z(N)), c);
20789
+ var q = 0, C = 0;
20790
+ return (c instanceof de || s.name === "\\oiint" || s.name === "\\oiiint") && !s.suppressBaseShift && (q = (c.height - c.depth) / 2 - e.fontMetrics().axisHeight, C = c.italic), n ? ra(c, t, a, e, o, C, q) : (q && (c.style.position = "relative", c.style.top = z(q)), c);
20791
20791
  }, mt = (r, e) => {
20792
20792
  var t;
20793
20793
  if (r.symbol)
20794
- t = new he("mo", [ce(r.name, r.mode)]), R.contains(aa, r.name) && t.setAttribute("largeop", "false");
20795
- else if (r.body) t = new he("mo", se(r.body, e));
20794
+ t = new ue("mo", [fe(r.name, r.mode)]), R.contains(aa, r.name) && t.setAttribute("largeop", "false");
20795
+ else if (r.body) t = new ue("mo", oe(r.body, e));
20796
20796
  else {
20797
- t = new he("mi", [new nt(r.name.slice(1))]);
20798
- var a = new he("mo", [ce("⁡", "text")]);
20799
- r.parentIsSupSub ? t = new he("mrow", [t, a]) : t = Rr([t, a]);
20797
+ t = new ue("mi", [new nt(r.name.slice(1))]);
20798
+ var a = new ue("mo", [fe("⁡", "text")]);
20799
+ r.parentIsSupSub ? t = new ue("mrow", [t, a]) : t = Rr([t, a]);
20800
20800
  }
20801
20801
  return t;
20802
20802
  }, Y1 = {
@@ -20855,7 +20855,7 @@ B({
20855
20855
  name: n
20856
20856
  };
20857
20857
  },
20858
- htmlBuilder: et,
20858
+ htmlBuilder: tt,
20859
20859
  mathmlBuilder: mt
20860
20860
  });
20861
20861
  B({
@@ -20873,10 +20873,10 @@ B({
20873
20873
  limits: !1,
20874
20874
  parentIsSupSub: !1,
20875
20875
  symbol: !1,
20876
- body: Q(a)
20876
+ body: J(a)
20877
20877
  };
20878
20878
  },
20879
- htmlBuilder: et,
20879
+ htmlBuilder: tt,
20880
20880
  mathmlBuilder: mt
20881
20881
  });
20882
20882
  var W1 = {
@@ -20935,7 +20935,7 @@ B({
20935
20935
  name: t
20936
20936
  };
20937
20937
  },
20938
- htmlBuilder: et,
20938
+ htmlBuilder: tt,
20939
20939
  mathmlBuilder: mt
20940
20940
  });
20941
20941
  B({
@@ -20962,7 +20962,7 @@ B({
20962
20962
  name: t
20963
20963
  };
20964
20964
  },
20965
- htmlBuilder: et,
20965
+ htmlBuilder: tt,
20966
20966
  mathmlBuilder: mt
20967
20967
  });
20968
20968
  B({
@@ -20993,7 +20993,7 @@ B({
20993
20993
  name: a
20994
20994
  };
20995
20995
  },
20996
- htmlBuilder: et,
20996
+ htmlBuilder: tt,
20997
20997
  mathmlBuilder: mt
20998
20998
  });
20999
20999
  var na = (r, e) => {
@@ -21010,13 +21010,13 @@ var na = (r, e) => {
21010
21010
  } : g;
21011
21011
  }), e.withFont("mathrm"), !0), c = 0; c < m.length; c++) {
21012
21012
  var p = m[c];
21013
- p instanceof ue && (p.text = p.text.replace(/\u2212/, "-").replace(/\u2217/, "*"));
21013
+ p instanceof de && (p.text = p.text.replace(/\u2212/, "-").replace(/\u2217/, "*"));
21014
21014
  }
21015
21015
  o = b.makeSpan(["mop"], m, e);
21016
21016
  } else o = b.makeSpan(["mop"], [], e);
21017
21017
  return n ? ra(o, t, a, e, e.style, 0, 0) : o;
21018
21018
  }, j1 = (r, e) => {
21019
- for (var t = se(r.body, e.withFont("mathrm")), a = !0, n = 0; n < t.length; n++) {
21019
+ for (var t = oe(r.body, e.withFont("mathrm")), a = !0, n = 0; n < t.length; n++) {
21020
21020
  var s = t[n];
21021
21021
  if (!(s instanceof S.SpaceNode)) if (s instanceof S.MathNode) switch (s.type) {
21022
21022
  case "mi":
@@ -21040,7 +21040,7 @@ var na = (r, e) => {
21040
21040
  }
21041
21041
  var c = new S.MathNode("mi", t);
21042
21042
  c.setAttribute("mathvariant", "normal");
21043
- var p = new S.MathNode("mo", [ce("⁡", "text")]);
21043
+ var p = new S.MathNode("mo", [fe("⁡", "text")]);
21044
21044
  return r.parentIsSupSub ? new S.MathNode("mrow", [c, p]) : S.newDocumentFragment([c, p]);
21045
21045
  };
21046
21046
  B({
@@ -21052,7 +21052,7 @@ B({
21052
21052
  return {
21053
21053
  type: "operatorname",
21054
21054
  mode: t.mode,
21055
- body: Q(n),
21055
+ body: J(n),
21056
21056
  alwaysHandleSupSub: a === "\\operatornamewithlimits",
21057
21057
  limits: !1,
21058
21058
  parentIsSupSub: !1
@@ -21062,7 +21062,7 @@ B({
21062
21062
  mathmlBuilder: j1
21063
21063
  });
21064
21064
  u("\\operatorname", "\\@ifstar\\operatornamewithlimits\\operatorname@");
21065
- $e({
21065
+ Xe({
21066
21066
  type: "ordgroup",
21067
21067
  htmlBuilder(r, e) {
21068
21068
  return r.semisimple ? b.makeFragment(ee(r.body, e, !1)) : b.makeSpan(["mord"], ee(r.body, e, !0), e);
@@ -21126,7 +21126,7 @@ B({
21126
21126
  return {
21127
21127
  type: "phantom",
21128
21128
  mode: t.mode,
21129
- body: Q(a)
21129
+ body: J(a)
21130
21130
  };
21131
21131
  },
21132
21132
  htmlBuilder: (r, e) => {
@@ -21134,7 +21134,7 @@ B({
21134
21134
  return b.makeFragment(t);
21135
21135
  },
21136
21136
  mathmlBuilder: (r, e) => {
21137
- var t = se(r.body, e);
21137
+ var t = oe(r.body, e);
21138
21138
  return new S.MathNode("mphantom", t);
21139
21139
  }
21140
21140
  });
@@ -21166,7 +21166,7 @@ B({
21166
21166
  }, e), b.makeSpan(["mord"], [t], e);
21167
21167
  },
21168
21168
  mathmlBuilder: (r, e) => {
21169
- var t = se(Q(r.body), e), a = new S.MathNode("mphantom", t), n = new S.MathNode("mpadded", [a]);
21169
+ var t = oe(J(r.body), e), a = new S.MathNode("mphantom", t), n = new S.MathNode("mpadded", [a]);
21170
21170
  return n.setAttribute("height", "0px"), n.setAttribute("depth", "0px"), n;
21171
21171
  }
21172
21172
  });
@@ -21190,7 +21190,7 @@ B({
21190
21190
  return b.makeSpan(["mord", "rlap"], [t, a], e);
21191
21191
  },
21192
21192
  mathmlBuilder: (r, e) => {
21193
- var t = se(Q(r.body), e), a = new S.MathNode("mphantom", t), n = new S.MathNode("mpadded", [a]);
21193
+ var t = oe(J(r.body), e), a = new S.MathNode("mphantom", t), n = new S.MathNode("mpadded", [a]);
21194
21194
  return n.setAttribute("width", "0px"), n;
21195
21195
  }
21196
21196
  });
@@ -21212,7 +21212,7 @@ B({
21212
21212
  };
21213
21213
  },
21214
21214
  htmlBuilder(r, e) {
21215
- var t = G(r.body, e), a = j(r.dy, e);
21215
+ var t = G(r.body, e), a = Z(r.dy, e);
21216
21216
  return b.makeVList({
21217
21217
  positionType: "shift",
21218
21218
  positionData: -a,
@@ -21265,11 +21265,11 @@ B({
21265
21265
  };
21266
21266
  },
21267
21267
  htmlBuilder(r, e) {
21268
- var t = b.makeSpan(["mord", "rule"], [], e), a = j(r.width, e), n = j(r.height, e), s = r.shift ? j(r.shift, e) : 0;
21268
+ var t = b.makeSpan(["mord", "rule"], [], e), a = Z(r.width, e), n = Z(r.height, e), s = r.shift ? Z(r.shift, e) : 0;
21269
21269
  return t.style.borderRightWidth = z(a), t.style.borderTopWidth = z(n), t.style.bottom = z(s), t.width = a, t.height = n + s, t.depth = -s, t.maxFontSize = n * 1.125 * e.sizeMultiplier, t;
21270
21270
  },
21271
21271
  mathmlBuilder(r, e) {
21272
- var t = j(r.width, e), a = j(r.height, e), n = r.shift ? j(r.shift, e) : 0, s = e.color && e.getColor() || "black", o = new S.MathNode("mspace");
21272
+ var t = Z(r.width, e), a = Z(r.height, e), n = r.shift ? Z(r.shift, e) : 0, s = e.color && e.getColor() || "black", o = new S.MathNode("mspace");
21273
21273
  o.setAttribute("mathbackground", s), o.setAttribute("width", z(t)), o.setAttribute("height", z(a));
21274
21274
  var m = new S.MathNode("mpadded", [o]);
21275
21275
  return n >= 0 ? m.setAttribute("height", z(n)) : (m.setAttribute("height", z(n)), m.setAttribute("depth", z(-n))), m.setAttribute("voffset", z(n)), m;
@@ -21316,7 +21316,7 @@ B({
21316
21316
  },
21317
21317
  htmlBuilder: Z1,
21318
21318
  mathmlBuilder: (r, e) => {
21319
- var t = e.havingSize(r.size), a = se(r.body, t), n = new S.MathNode("mstyle", a);
21319
+ var t = e.havingSize(r.size), a = oe(r.body, t), n = new S.MathNode("mstyle", a);
21320
21320
  return n.setAttribute("mathsize", z(t.sizeMultiplier)), n;
21321
21321
  }
21322
21322
  });
@@ -21418,15 +21418,15 @@ B({
21418
21418
  ]
21419
21419
  }, e);
21420
21420
  if (r.index) {
21421
- var w = e.havingStyle(I.SCRIPTSCRIPT), T = G(r.index, w, e), A = 0.6 * (x.height - x.depth), N = b.makeVList({
21421
+ var w = e.havingStyle(I.SCRIPTSCRIPT), A = G(r.index, w, e), T = 0.6 * (x.height - x.depth), q = b.makeVList({
21422
21422
  positionType: "shift",
21423
- positionData: -A,
21423
+ positionData: -T,
21424
21424
  children: [{
21425
21425
  type: "elem",
21426
- elem: T
21426
+ elem: A
21427
21427
  }]
21428
- }, e), q = b.makeSpan(["root"], [N]);
21429
- return b.makeSpan(["mord", "sqrt"], [q, x], e);
21428
+ }, e), C = b.makeSpan(["root"], [q]);
21429
+ return b.makeSpan(["mord", "sqrt"], [C, x], e);
21430
21430
  } else
21431
21431
  return b.makeSpan(["mord", "sqrt"], [x], e);
21432
21432
  },
@@ -21468,7 +21468,7 @@ B({
21468
21468
  return ia(r.body, a, e);
21469
21469
  },
21470
21470
  mathmlBuilder(r, e) {
21471
- var t = ir[r.style], a = e.havingStyle(t), n = se(r.body, a), s = new S.MathNode("mstyle", n), o = {
21471
+ var t = ir[r.style], a = e.havingStyle(t), n = oe(r.body, a), s = new S.MathNode("mstyle", n), o = {
21472
21472
  display: ["0", "true"],
21473
21473
  text: ["0", "false"],
21474
21474
  script: ["1", "false"],
@@ -21479,9 +21479,9 @@ B({
21479
21479
  });
21480
21480
  var K1 = function(e, t) {
21481
21481
  var a = e.base;
21482
- return a ? a.type === "op" ? a.limits && (t.style.size === I.DISPLAY.size || a.alwaysHandleSupSub) ? et : null : a.type === "operatorname" ? a.alwaysHandleSupSub && (t.style.size === I.DISPLAY.size || a.limits) ? na : null : a.type === "accent" ? R.isCharacterBox(a.base) ? b0 : null : a.type === "horizBrace" && !e.sub === a.isOver ? ta : null : null;
21482
+ return a ? a.type === "op" ? a.limits && (t.style.size === I.DISPLAY.size || a.alwaysHandleSupSub) ? tt : null : a.type === "operatorname" ? a.alwaysHandleSupSub && (t.style.size === I.DISPLAY.size || a.limits) ? na : null : a.type === "accent" ? R.isCharacterBox(a.base) ? b0 : null : a.type === "horizBrace" && !e.sub === a.isOver ? ta : null : null;
21483
21483
  };
21484
- $e({
21484
+ Xe({
21485
21485
  type: "supsub",
21486
21486
  htmlBuilder(r, e) {
21487
21487
  var t = K1(r, e);
@@ -21492,67 +21492,67 @@ $e({
21492
21492
  m = G(n, w, e), x || (g = o.height - w.fontMetrics().supDrop * w.sizeMultiplier / e.sizeMultiplier);
21493
21493
  }
21494
21494
  if (s) {
21495
- var T = e.havingStyle(e.style.sub());
21496
- c = G(s, T, e), x || (y = o.depth + T.fontMetrics().subDrop * T.sizeMultiplier / e.sizeMultiplier);
21495
+ var A = e.havingStyle(e.style.sub());
21496
+ c = G(s, A, e), x || (y = o.depth + A.fontMetrics().subDrop * A.sizeMultiplier / e.sizeMultiplier);
21497
21497
  }
21498
- var A;
21499
- e.style === I.DISPLAY ? A = p.sup1 : e.style.cramped ? A = p.sup3 : A = p.sup2;
21500
- var N = e.sizeMultiplier, q = z(0.5 / p.ptPerEm / N), D = null;
21498
+ var T;
21499
+ e.style === I.DISPLAY ? T = p.sup1 : e.style.cramped ? T = p.sup3 : T = p.sup2;
21500
+ var q = e.sizeMultiplier, C = z(0.5 / p.ptPerEm / q), O = null;
21501
21501
  if (c) {
21502
- var V = r.base && r.base.type === "op" && r.base.name && (r.base.name === "\\oiint" || r.base.name === "\\oiiint");
21503
- (o instanceof ue || V) && (D = z(-o.italic));
21502
+ var P = r.base && r.base.type === "op" && r.base.name && (r.base.name === "\\oiint" || r.base.name === "\\oiiint");
21503
+ (o instanceof de || P) && (O = z(-o.italic));
21504
21504
  }
21505
- var P;
21505
+ var V;
21506
21506
  if (m && c) {
21507
- g = Math.max(g, A, m.depth + 0.25 * p.xHeight), y = Math.max(y, p.sub2);
21508
- var H = 4 * p.defaultRuleThickness;
21509
- if (g - m.depth - (c.height - y) < H) {
21510
- y = H - (g - m.depth) + c.height;
21511
- var F = 0.8 * p.xHeight - (g - m.depth);
21512
- F > 0 && (g += F, y -= F);
21507
+ g = Math.max(g, T, m.depth + 0.25 * p.xHeight), y = Math.max(y, p.sub2);
21508
+ var F = 4 * p.defaultRuleThickness;
21509
+ if (g - m.depth - (c.height - y) < F) {
21510
+ y = F - (g - m.depth) + c.height;
21511
+ var H = 0.8 * p.xHeight - (g - m.depth);
21512
+ H > 0 && (g += H, y -= H);
21513
21513
  }
21514
21514
  var U = [{
21515
21515
  type: "elem",
21516
21516
  elem: c,
21517
21517
  shift: y,
21518
- marginRight: q,
21519
- marginLeft: D
21518
+ marginRight: C,
21519
+ marginLeft: O
21520
21520
  }, {
21521
21521
  type: "elem",
21522
21522
  elem: m,
21523
21523
  shift: -g,
21524
- marginRight: q
21524
+ marginRight: C
21525
21525
  }];
21526
- P = b.makeVList({
21526
+ V = b.makeVList({
21527
21527
  positionType: "individualShift",
21528
21528
  children: U
21529
21529
  }, e);
21530
21530
  } else if (c) {
21531
21531
  y = Math.max(y, p.sub1, c.height - 0.8 * p.xHeight);
21532
- var Z = [{
21532
+ var Y = [{
21533
21533
  type: "elem",
21534
21534
  elem: c,
21535
- marginLeft: D,
21536
- marginRight: q
21535
+ marginLeft: O,
21536
+ marginRight: C
21537
21537
  }];
21538
- P = b.makeVList({
21538
+ V = b.makeVList({
21539
21539
  positionType: "shift",
21540
21540
  positionData: y,
21541
- children: Z
21541
+ children: Y
21542
21542
  }, e);
21543
21543
  } else if (m)
21544
- g = Math.max(g, A, m.depth + 0.25 * p.xHeight), P = b.makeVList({
21544
+ g = Math.max(g, T, m.depth + 0.25 * p.xHeight), V = b.makeVList({
21545
21545
  positionType: "shift",
21546
21546
  positionData: -g,
21547
21547
  children: [{
21548
21548
  type: "elem",
21549
21549
  elem: m,
21550
- marginRight: q
21550
+ marginRight: C
21551
21551
  }]
21552
21552
  }, e);
21553
21553
  else throw new Error("supsub must have either sup or sub.");
21554
- var te = i0(o, "right") || "mord";
21555
- return b.makeSpan([te], [o, b.makeSpan(["msupsub"], [P])], e);
21554
+ var ie = i0(o, "right") || "mord";
21555
+ return b.makeSpan([ie], [o, b.makeSpan(["msupsub"], [V])], e);
21556
21556
  },
21557
21557
  mathmlBuilder(r, e) {
21558
21558
  var t = !1, a, n;
@@ -21576,13 +21576,13 @@ $e({
21576
21576
  return new S.MathNode(o, s);
21577
21577
  }
21578
21578
  });
21579
- $e({
21579
+ Xe({
21580
21580
  type: "atom",
21581
21581
  htmlBuilder(r, e) {
21582
21582
  return b.mathsym(r.text, r.mode, e, ["m" + r.family]);
21583
21583
  },
21584
21584
  mathmlBuilder(r, e) {
21585
- var t = new S.MathNode("mo", [ce(r.text, r.mode)]);
21585
+ var t = new S.MathNode("mo", [fe(r.text, r.mode)]);
21586
21586
  if (r.family === "bin") {
21587
21587
  var a = v0(r, e);
21588
21588
  a === "bold-italic" && t.setAttribute("mathvariant", a);
@@ -21595,23 +21595,23 @@ var sa = {
21595
21595
  mn: "normal",
21596
21596
  mtext: "normal"
21597
21597
  };
21598
- $e({
21598
+ Xe({
21599
21599
  type: "mathord",
21600
21600
  htmlBuilder(r, e) {
21601
21601
  return b.makeOrd(r, e, "mathord");
21602
21602
  },
21603
21603
  mathmlBuilder(r, e) {
21604
- var t = new S.MathNode("mi", [ce(r.text, r.mode, e)]), a = v0(r, e) || "italic";
21604
+ var t = new S.MathNode("mi", [fe(r.text, r.mode, e)]), a = v0(r, e) || "italic";
21605
21605
  return a !== sa[t.type] && t.setAttribute("mathvariant", a), t;
21606
21606
  }
21607
21607
  });
21608
- $e({
21608
+ Xe({
21609
21609
  type: "textord",
21610
21610
  htmlBuilder(r, e) {
21611
21611
  return b.makeOrd(r, e, "textord");
21612
21612
  },
21613
21613
  mathmlBuilder(r, e) {
21614
- var t = ce(r.text, r.mode, e), a = v0(r, e) || "normal", n;
21614
+ var t = fe(r.text, r.mode, e), a = v0(r, e) || "normal", n;
21615
21615
  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 !== sa[n.type] && n.setAttribute("mathvariant", a), n;
21616
21616
  }
21617
21617
  });
@@ -21625,7 +21625,7 @@ var Qt = {
21625
21625
  "\\space": {},
21626
21626
  "\\nobreakspace": { className: "nobreak" }
21627
21627
  };
21628
- $e({
21628
+ Xe({
21629
21629
  type: "spacing",
21630
21630
  htmlBuilder(r, e) {
21631
21631
  if (_t.hasOwnProperty(r.text)) {
@@ -21653,7 +21653,7 @@ var sr = () => {
21653
21653
  var r = new S.MathNode("mtd", []);
21654
21654
  return r.setAttribute("width", "50%"), r;
21655
21655
  };
21656
- $e({
21656
+ Xe({
21657
21657
  type: "tag",
21658
21658
  mathmlBuilder(r, e) {
21659
21659
  var t = new S.MathNode("mtable", [new S.MathNode("mtr", [
@@ -21711,7 +21711,7 @@ B({
21711
21711
  return {
21712
21712
  type: "text",
21713
21713
  mode: t.mode,
21714
- body: Q(n),
21714
+ body: J(n),
21715
21715
  font: a
21716
21716
  };
21717
21717
  },
@@ -21824,7 +21824,7 @@ B({
21824
21824
  return a.setAttribute("mathvariant", "monospace"), a;
21825
21825
  }
21826
21826
  });
21827
- var mr = (r) => r.body.replace(/ /g, r.star ? "␣" : " "), De = Nr, la = `[ \r
21827
+ var mr = (r) => r.body.replace(/ /g, r.star ? "␣" : " "), De = Cr, la = `[ \r
21828
21828
  ]`, Q1 = "\\\\[a-zA-Z@]+", _1 = "\\\\[^\uD800-\uDFFF]", e4 = "(" + Q1 + ")" + la + "*", t4 = `\\\\(
21829
21829
  |[ \r ]+
21830
21830
  ?)[ \r ]*`, h0 = "[̀-ͯ]", r4 = new RegExp(h0 + "+$"), a4 = "(" + la + "+)|" + (t4 + "|") + "([!-\\[\\]-‧‪-퟿豈-￿]" + (h0 + "*") + "|[\uD800-\uDBFF][\uDC00-\uDFFF]" + (h0 + "*") + "|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5" + ("|" + e4) + ("|" + _1 + ")"), ur = class {
@@ -21839,16 +21839,16 @@ var mr = (r) => r.body.replace(/ /g, r.star ? "␣" : " "), De = Nr, la = `[ \r
21839
21839
  }
21840
21840
  lex() {
21841
21841
  var r = this.input, e = this.tokenRegex.lastIndex;
21842
- if (e === r.length) return new we("EOF", new pe(this, e, e));
21842
+ if (e === r.length) return new we("EOF", new ve(this, e, e));
21843
21843
  var t = this.tokenRegex.exec(r);
21844
- if (t === null || t.index !== e) throw new M("Unexpected character: '" + r[e] + "'", new we(r[e], new pe(this, e, e + 1)));
21844
+ if (t === null || t.index !== e) throw new M("Unexpected character: '" + r[e] + "'", new we(r[e], new ve(this, e, e + 1)));
21845
21845
  var a = t[6] || t[3] || (t[2] ? "\\ " : " ");
21846
21846
  if (this.catcodes[a] === 14) {
21847
21847
  var n = r.indexOf(`
21848
21848
  `, this.tokenRegex.lastIndex);
21849
21849
  return n === -1 ? (this.tokenRegex.lastIndex = r.length, this.settings.reportNonstrict("commentAtEnd", "% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")) : this.tokenRegex.lastIndex = n + 1, this.lex();
21850
21850
  }
21851
- return new we(a, new pe(this, e, this.tokenRegex.lastIndex));
21851
+ return new we(a, new ve(this, e, this.tokenRegex.lastIndex));
21852
21852
  }
21853
21853
  }, n4 = class {
21854
21854
  constructor(r, e) {
@@ -23392,7 +23392,7 @@ var ma = {
23392
23392
  this.expect(o), this.gullet.endGroup(), s = {
23393
23393
  type: "ordgroup",
23394
23394
  mode: this.mode,
23395
- loc: pe.range(a, c),
23395
+ loc: ve.range(a, c),
23396
23396
  body: m,
23397
23397
  semisimple: n === "\\begingroup" || void 0
23398
23398
  };
@@ -23408,17 +23408,17 @@ var ma = {
23408
23408
  s === "-" && e[a + 1].text === "-" && (a + 1 < t && e[a + 2].text === "-" ? (e.splice(a, 3, {
23409
23409
  type: "textord",
23410
23410
  mode: "text",
23411
- loc: pe.range(n, e[a + 2]),
23411
+ loc: ve.range(n, e[a + 2]),
23412
23412
  text: "---"
23413
23413
  }), t -= 2) : (e.splice(a, 2, {
23414
23414
  type: "textord",
23415
23415
  mode: "text",
23416
- loc: pe.range(n, e[a + 1]),
23416
+ loc: ve.range(n, e[a + 1]),
23417
23417
  text: "--"
23418
23418
  }), t -= 1)), (s === "'" || s === "`") && e[a + 1].text === s && (e.splice(a, 2, {
23419
23419
  type: "textord",
23420
23420
  mode: "text",
23421
- loc: pe.range(n, e[a + 1]),
23421
+ loc: ve.range(n, e[a + 1]),
23422
23422
  text: s + s
23423
23423
  }), t -= 1);
23424
23424
  }
@@ -23443,7 +23443,7 @@ var ma = {
23443
23443
  var o;
23444
23444
  if (X[this.mode][t]) {
23445
23445
  this.settings.strict && this.mode === "math" && n0.indexOf(t) >= 0 && this.settings.reportNonstrict("unicodeTextInMathMode", 'Latin-1/Unicode text character "' + t[0] + '" used in math mode', e);
23446
- var m = X[this.mode][t].group, c = pe.range(e), p;
23446
+ var m = X[this.mode][t].group, c = ve.range(e), p;
23447
23447
  if (Qa.hasOwnProperty(m)) {
23448
23448
  var g = m;
23449
23449
  p = {
@@ -23464,7 +23464,7 @@ var ma = {
23464
23464
  this.settings.strict && (xr(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 = {
23465
23465
  type: "textord",
23466
23466
  mode: "text",
23467
- loc: pe.range(e),
23467
+ loc: ve.range(e),
23468
23468
  text: t
23469
23469
  };
23470
23470
  else return null;
@@ -23476,7 +23476,7 @@ var ma = {
23476
23476
  o = {
23477
23477
  type: "accent",
23478
23478
  mode: this.mode,
23479
- loc: pe.range(e),
23479
+ loc: ve.range(e),
23480
23480
  label: w,
23481
23481
  isStretchy: !1,
23482
23482
  isShifty: !0,
@@ -23510,21 +23510,21 @@ var B0 = function(e, t) {
23510
23510
  return n;
23511
23511
  }, da = function(e, t, a) {
23512
23512
  t.textContent = "";
23513
- var n = C0(e, a).toNode();
23513
+ var n = N0(e, a).toNode();
23514
23514
  t.appendChild(n);
23515
23515
  };
23516
23516
  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."), da = function() {
23517
23517
  throw new M("KaTeX doesn't work in quirks mode.");
23518
23518
  });
23519
23519
  var l4 = function(e, t) {
23520
- return C0(e, t).toMarkup();
23520
+ return N0(e, t).toMarkup();
23521
23521
  }, o4 = function(e, t) {
23522
23522
  return B0(e, new m0(t));
23523
23523
  }, fa = function(e, t, a) {
23524
23524
  if (a.throwOnError || !(e instanceof M)) throw e;
23525
- var n = b.makeSpan(["katex-error"], [new ue(t)]);
23525
+ var n = b.makeSpan(["katex-error"], [new de(t)]);
23526
23526
  return n.setAttribute("title", e.toString()), n.setAttribute("style", "color:" + a.errorColor), n;
23527
- }, C0 = function(e, t) {
23527
+ }, N0 = function(e, t) {
23528
23528
  var a = new m0(t);
23529
23529
  try {
23530
23530
  return w1(B0(e, a), e, a);
@@ -23538,7 +23538,7 @@ var l4 = function(e, t) {
23538
23538
  ParseError: M,
23539
23539
  SETTINGS_SCHEMA: Mt,
23540
23540
  __parse: o4,
23541
- __renderToDomTree: C0,
23541
+ __renderToDomTree: N0,
23542
23542
  __renderToHTMLTree: function(e, t) {
23543
23543
  var a = new m0(t);
23544
23544
  try {
@@ -23554,7 +23554,7 @@ var l4 = function(e, t) {
23554
23554
  __domTree: {
23555
23555
  Span: ht,
23556
23556
  Anchor: d0,
23557
- SymbolNode: ue,
23557
+ SymbolNode: de,
23558
23558
  SvgNode: Te,
23559
23559
  PathNode: He,
23560
23560
  LineNode: a0