Your Name 1912bcd25b
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
chore: sync all remaining local workspace changes
2026-05-08 11:26:57 +08:00

11871 lines
421 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* Extracted from browser-delivered Turbopack chunk: 3382a6406be800a2.070f51a43b.js
* Module id: 810689
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e) => {
"use strict";
class t extends Error {
constructor(e, r) {
var a = "KaTeX parse error: " + e,
n = r && r.loc;
if (n && n.start <= n.end) {
var i,
s,
o = n.lexer.input;
(i = n.start),
(s = n.end),
i === o.length
? (a += " at end of input: ")
: (a += " at position " + (i + 1) + ": ");
var l = o.slice(i, s).replace(/[^]/g, "$&̲");
a +=
(i > 15 ? "…" + o.slice(i - 15, i) : o.slice(0, i)) +
l +
(s + 15 < o.length ? o.slice(s, s + 15) + "…" : o.slice(s));
}
super(a),
(this.name = "ParseError"),
Object.setPrototypeOf(this, t.prototype),
(this.position = i),
null != i && null != s && (this.length = s - i),
(this.rawMessage = e);
}
}
var r,
a,
n = /([A-Z])/g,
i = (e) => e.replace(n, "-$1").toLowerCase(),
s = {
"&": "&amp;",
">": "&gt;",
"<": "&lt;",
'"': "&quot;",
"'": "&#x27;",
},
o = /[&><"']/g,
l = (e) => String(e).replace(o, (e) => s[e]),
h = (e) => {
if ("ordgroup" === e.type || "color" === e.type)
if (1 === e.body.length) return h(e.body[0]);
else return e;
return "font" === e.type ? h(e.body) : e;
},
m = new Set(["mathord", "textord", "atom"]),
c = (e) => m.has(h(e).type),
u = {
displayMode: {
type: "boolean",
description:
"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",
cli: "-d, --display-mode",
},
output: {
type: { enum: ["htmlAndMathml", "html", "mathml"] },
description: "Determines the markup language of the output.",
cli: "-F, --format <type>",
},
leqno: {
type: "boolean",
description:
"Render display math in leqno style (left-justified tags).",
},
fleqn: {
type: "boolean",
description: "Render display math flush left.",
},
throwOnError: {
type: "boolean",
default: !0,
cli: "-t, --no-throw-on-error",
cliDescription:
"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.",
},
errorColor: {
type: "string",
default: "#cc0000",
cli: "-c, --error-color <color>",
cliDescription:
"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",
cliProcessor: (e) => "#" + e,
},
macros: {
type: "object",
cli: "-m, --macro <def>",
cliDescription:
"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",
cliDefault: [],
cliProcessor: (e, t) => (t.push(e), t),
},
minRuleThickness: {
type: "number",
description:
"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",
processor: (e) => Math.max(0, e),
cli: "--min-rule-thickness <size>",
cliProcessor: parseFloat,
},
colorIsTextColor: {
type: "boolean",
description:
"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",
cli: "-b, --color-is-text-color",
},
strict: {
type: [{ enum: ["warn", "ignore", "error"] }, "boolean", "function"],
description:
"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",
cli: "-S, --strict",
cliDefault: !1,
},
trust: {
type: ["boolean", "function"],
description:
"Trust the input, enabling all HTML features such as \\url.",
cli: "-T, --trust",
},
maxSize: {
type: "number",
default: 1 / 0,
description:
"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",
processor: (e) => Math.max(0, e),
cli: "-s, --max-size <n>",
cliProcessor: parseInt,
},
maxExpand: {
type: "number",
default: 1e3,
description:
"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",
processor: (e) => Math.max(0, e),
cli: "-e, --max-expand <n>",
cliProcessor: (e) => ("Infinity" === e ? 1 / 0 : parseInt(e)),
},
globalGroup: { type: "boolean", cli: !1 },
};
class p {
constructor(e) {
for (var t of (void 0 === e && (e = {}),
(e = e || {}),
Object.keys(u))) {
var r = u[t],
a = e[t];
this[t] =
void 0 !== a
? r.processor
? r.processor(a)
: a
: (function (e) {
if ("default" in e) return e.default;
var t = e.type,
r = Array.isArray(t) ? t[0] : t;
if ("string" != typeof r) return r.enum[0];
switch (r) {
case "boolean":
return !1;
case "string":
return "";
case "number":
return 0;
case "object":
return {};
}
})(r);
}
}
reportNonstrict(e, r, a) {
var n = this.strict;
if (("function" == typeof n && (n = n(e, r, a)), n && "ignore" !== n)) {
if (!0 === n || "error" === n)
throw new t(
"LaTeX-incompatible input and strict mode is set to 'error': " +
(r + " [") +
e +
"]",
a,
);
"warn" === n
? "u" > typeof console &&
console.warn(
"LaTeX-incompatible input and strict mode is set to 'warn': " +
(r + " [") +
e +
"]",
)
: "u" > typeof console &&
console.warn(
"LaTeX-incompatible input and strict mode is set to " +
("unrecognized '" + n + "': " + r + " [") +
e +
"]",
);
}
}
useStrictBehavior(e, t, r) {
var a = this.strict;
if ("function" == typeof a)
try {
a = a(e, t, r);
} catch (e) {
a = "error";
}
return (
!!a &&
"ignore" !== a &&
(!0 === a ||
"error" === a ||
("warn" === a
? ("u" > typeof console &&
console.warn(
"LaTeX-incompatible input and strict mode is set to 'warn': " +
(t + " [") +
e +
"]",
),
!1)
: ("u" > typeof console &&
console.warn(
"LaTeX-incompatible input and strict mode is set to " +
("unrecognized '" + a + "': " + t + " [") +
e +
"]",
),
!1)))
);
}
isTrusted(e) {
if ("url" in e && e.url && !e.protocol) {
var t,
r,
a =
((t = e.url),
(r = /^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(
t,
))
? ":" === r[2] && /^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])
? r[1].toLowerCase()
: null
: "_relative");
if (null == a) return !1;
e.protocol = a;
}
return !!("function" == typeof this.trust ? this.trust(e) : this.trust);
}
}
class d {
constructor(e, t, r) {
(this.id = e), (this.size = t), (this.cramped = r);
}
sup() {
return g[f[this.id]];
}
sub() {
return g[b[this.id]];
}
fracNum() {
return g[v[this.id]];
}
fracDen() {
return g[y[this.id]];
}
cramp() {
return g[x[this.id]];
}
text() {
return g[w[this.id]];
}
isTight() {
return this.size >= 2;
}
}
var g = [
new d(0, 0, !1),
new d(1, 0, !0),
new d(2, 1, !1),
new d(3, 1, !0),
new d(4, 2, !1),
new d(5, 2, !0),
new d(6, 3, !1),
new d(7, 3, !0),
],
f = [4, 5, 4, 5, 6, 7, 6, 7],
b = [5, 5, 5, 5, 7, 7, 7, 7],
v = [2, 3, 4, 5, 6, 7, 6, 7],
y = [3, 3, 5, 5, 7, 7, 7, 7],
x = [1, 1, 3, 3, 5, 5, 7, 7],
w = [0, 1, 2, 3, 2, 3, 2, 3],
k = { DISPLAY: g[0], TEXT: g[2], SCRIPT: g[4], SCRIPTSCRIPT: g[6] },
z = [
{
name: "latin",
blocks: [
[256, 591],
[768, 879],
],
},
{ name: "cyrillic", blocks: [[1024, 1279]] },
{ name: "armenian", blocks: [[1328, 1423]] },
{ name: "brahmic", blocks: [[2304, 4255]] },
{ name: "georgian", blocks: [[4256, 4351]] },
{
name: "cjk",
blocks: [
[12288, 12543],
[19968, 40879],
[65280, 65376],
],
},
{ name: "hangul", blocks: [[44032, 55215]] },
],
S = [];
function M(e) {
for (var t = 0; t < S.length; t += 2)
if (e >= S[t] && e <= S[t + 1]) return !0;
return !1;
}
z.forEach((e) => e.blocks.forEach((e) => S.push(...e)));
var A = function (e, t, r) {
t *= 1e3;
var a,
n,
i,
s,
o,
l,
h = "";
switch (e) {
case "sqrtMain":
h =
"M95," +
(622 + (a = t) + 80) +
"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl" +
a / 2.075 +
" -" +
a +
"\nc5.3,-9.3,12,-14,20,-14\nH400000v" +
(40 + a) +
"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM" +
(834 + a) +
" 80h400000v" +
(40 + a) +
"h-400000z";
break;
case "sqrtSize1":
h =
"M263," +
(601 + (n = t) + 80) +
"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl" +
n / 2.084 +
" -" +
n +
"\nc4.7,-7.3,11,-11,19,-11\nH40000v" +
(40 + n) +
"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM" +
(1001 + n) +
" 80h400000v" +
(40 + n) +
"h-400000z";
break;
case "sqrtSize2":
h =
"M983 " +
(10 + (i = t) + 80) +
"\nl" +
i / 3.13 +
" -" +
i +
"\nc4,-6.7,10,-10,18,-10 H400000v" +
(40 + i) +
"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM" +
(1001 + i) +
" 80h400000v" +
(40 + i) +
"h-400000z";
break;
case "sqrtSize3":
h =
"M424," +
(2398 + (s = t) + 80) +
"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl" +
s / 4.223 +
" -" +
s +
"c4,-6.7,10,-10,18,-10 H400000\nv" +
(40 + s) +
"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M" +
(1001 + s) +
" 80\nh400000v" +
(40 + s) +
"h-400000z";
break;
case "sqrtSize4":
h =
"M473," +
(2713 + (o = t) + 80) +
"\nc339.3,-1799.3,509.3,-2700,510,-2702 l" +
o / 5.298 +
" -" +
o +
"\nc3.3,-7.3,9.3,-11,18,-11 H400000v" +
(40 + o) +
"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM" +
(1001 + o) +
" 80h400000v" +
(40 + o) +
"H1017.7z";
break;
case "sqrtTall":
h =
"M702 " +
((l = t) + 80) +
"H400000" +
(40 + l) +
"\nH742v" +
(r - 54 - 80 - l) +
"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 80H400000v" +
(40 + l) +
"H742z";
}
return h;
},
T = function (e, t) {
switch (e) {
case "⎜":
return "M291 0 H417 V" + t + " H291z M291 0 H417 V" + t + " H291z";
case "∣":
return "M145 0 H188 V" + t + " H145z M145 0 H188 V" + t + " H145z";
case "∥":
return (
"M145 0 H188 V" +
t +
" H145z M145 0 H188 V" +
t +
" H145z" +
("M367 0 H410 V" + t + " H367z M367 0 H410 V") +
t +
" H367z"
);
case "⎟":
return "M457 0 H583 V" + t + " H457z M457 0 H583 V" + t + " H457z";
case "⎢":
return "M319 0 H403 V" + t + " H319z M319 0 H403 V" + t + " H319z";
case "⎥":
return "M263 0 H347 V" + t + " H263z M263 0 H347 V" + t + " H263z";
case "⎪":
return "M384 0 H504 V" + t + " H384z M384 0 H504 V" + t + " H384z";
case "⏐":
return "M312 0 H355 V" + t + " H312z M312 0 H355 V" + t + " H312z";
case "‖":
return (
"M257 0 H300 V" +
t +
" H257z M257 0 H300 V" +
t +
" H257z" +
("M478 0 H521 V" + t + " H478z M478 0 H521 V") +
t +
" H478z"
);
default:
return "";
}
},
B = {
doubleleftarrow:
"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",
doublerightarrow:
"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",
leftarrow:
"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",
leftbrace:
"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",
leftbraceunder:
"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",
leftgroup:
"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",
leftgroupunder:
"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",
leftharpoon:
"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",
leftharpoonplus:
"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",
leftharpoondown:
"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",
leftharpoondownplus:
"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",
lefthook:
"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",
leftlinesegment:
"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",
leftmapsto:
"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",
leftToFrom:
"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",
longequal:
"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",
midbrace:
"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",
midbraceunder:
"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",
oiintSize1:
"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",
oiintSize2:
"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",
oiiintSize1:
"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",
oiiintSize2:
"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",
rightarrow:
"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",
rightbrace:
"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",
rightbraceunder:
"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",
rightgroup:
"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",
rightgroupunder:
"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",
rightharpoon:
"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",
rightharpoonplus:
"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",
rightharpoondown:
"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",
rightharpoondownplus:
"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",
righthook:
"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",
rightlinesegment:
"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",
rightToFrom:
"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",
twoheadleftarrow:
"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",
twoheadrightarrow:
"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",
tilde1:
"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",
tilde2:
"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",
tilde3:
"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",
tilde4:
"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",
vec: "M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",
widehat1:
"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",
widehat2:
"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",
widehat3:
"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",
widehat4:
"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",
widecheck1:
"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",
widecheck2:
"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",
widecheck3:
"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",
widecheck4:
"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",
baraboveleftarrow:
"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",
rightarrowabovebar:
"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",
baraboveshortleftharpoon:
"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",
rightharpoonaboveshortbar:
"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",
shortbaraboveleftharpoon:
"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",
shortrightharpoonabovebar:
"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z",
},
q = function (e, t) {
switch (e) {
case "lbrack":
return (
"M403 1759 V84 H666 V0 H319 V1759 v" +
t +
" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v" +
t +
" v1759 h84z"
);
case "rbrack":
return (
"M347 1759 V0 H0 V84 H263 V1759 v" +
t +
" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v" +
t +
" v1759 h84z"
);
case "vert":
return (
"M145 15 v585 v" +
t +
" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v" +
-t +
" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v" +
t +
" v585 h43z"
);
case "doublevert":
return (
"M145 15 v585 v" +
t +
" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v" +
-t +
" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v" +
t +
" v585 h43z\nM367 15 v585 v" +
t +
" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v" +
-t +
" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v" +
t +
" v585 h43z"
);
case "lfloor":
return (
"M319 602 V0 H403 V602 v" +
t +
" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v" +
t +
" v1715 H319z"
);
case "rfloor":
return (
"M319 602 V0 H403 V602 v" +
t +
" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v" +
t +
" v1715 H319z"
);
case "lceil":
return (
"M403 1759 V84 H666 V0 H319 V1759 v" +
t +
" v602 h84z\nM403 1759 V0 H319 V1759 v" +
t +
" v602 h84z"
);
case "rceil":
return (
"M347 1759 V0 H0 V84 H263 V1759 v" +
t +
" v602 h84z\nM347 1759 V0 h-84 V1759 v" +
t +
" v602 h84z"
);
case "lparen":
return (
"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0," +
(t + 84) +
"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-" +
(t + 92) +
"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z"
);
case "rparen":
return (
"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0," +
(t + 9) +
"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-" +
(t + 144) +
"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z"
);
default:
throw Error("Unknown stretchy delimiter.");
}
};
class C {
constructor(e) {
(this.children = e),
(this.classes = []),
(this.height = 0),
(this.depth = 0),
(this.maxFontSize = 0),
(this.style = {});
}
hasClass(e) {
return this.classes.includes(e);
}
toNode() {
for (
var e = document.createDocumentFragment(), t = 0;
t < this.children.length;
t++
)
e.appendChild(this.children[t].toNode());
return e;
}
toMarkup() {
for (var e = "", t = 0; t < this.children.length; t++)
e += this.children[t].toMarkup();
return e;
}
toText() {
return this.children.map((e) => e.toText()).join("");
}
}
var I = {
pt: 1,
mm: 7227 / 2540,
cm: 7227 / 254,
in: 72.27,
bp: 1.00375,
pc: 12,
dd: 1238 / 1157,
cc: 14856 / 1157,
nd: 685 / 642,
nc: 1370 / 107,
sp: 1 / 65536,
px: 1.00375,
},
H = { ex: !0, em: !0, mu: !0 },
R = function (e) {
return (
"string" != typeof e && (e = e.unit), e in I || e in H || "ex" === e
);
},
E = function (e, r) {
var a, n;
if (e.unit in I)
a = I[e.unit] / r.fontMetrics().ptPerEm / r.sizeMultiplier;
else if ("mu" === e.unit) a = r.fontMetrics().cssEmPerMu;
else {
if (
((n = r.style.isTight() ? r.havingStyle(r.style.text()) : r),
"ex" === e.unit)
)
a = n.fontMetrics().xHeight;
else if ("em" === e.unit) a = n.fontMetrics().quad;
else throw new t("Invalid unit: '" + e.unit + "'");
n !== r && (a *= n.sizeMultiplier / r.sizeMultiplier);
}
return Math.min(e.number * a, r.maxSize);
},
O = function (e) {
return +e.toFixed(4) + "em";
},
D = function (e) {
return e.filter((e) => e).join(" ");
},
N = function (e, t, r) {
if (
((this.classes = e || []),
(this.attributes = {}),
(this.height = 0),
(this.depth = 0),
(this.maxFontSize = 0),
(this.style = r || {}),
t)
) {
t.style.isTight() && this.classes.push("mtight");
var a = t.getColor();
a && (this.style.color = a);
}
},
L = function (e) {
var t = document.createElement(e);
for (var r of ((t.className = D(this.classes)),
Object.keys(this.style)))
t.style[r] = this.style[r];
for (var a of Object.keys(this.attributes))
t.setAttribute(a, this.attributes[a]);
for (var n = 0; n < this.children.length; n++)
t.appendChild(this.children[n].toNode());
return t;
},
P = /[\s"'>/=\x00-\x1f]/,
F = function (e) {
var r = "<" + e;
this.classes.length && (r += ' class="' + l(D(this.classes)) + '"');
var a = "";
for (var n of Object.keys(this.style))
a += i(n) + ":" + this.style[n] + ";";
for (var s of (a && (r += ' style="' + l(a) + '"'),
Object.keys(this.attributes))) {
if (P.test(s)) throw new t("Invalid attribute name '" + s + "'");
r += " " + s + '="' + l(this.attributes[s]) + '"';
}
r += ">";
for (var o = 0; o < this.children.length; o++)
r += this.children[o].toMarkup();
return r + ("</" + e + ">");
};
class V {
constructor(e, t, r, a) {
N.call(this, e, r, a), (this.children = t || []);
}
setAttribute(e, t) {
this.attributes[e] = t;
}
hasClass(e) {
return this.classes.includes(e);
}
toNode() {
return L.call(this, "span");
}
toMarkup() {
return F.call(this, "span");
}
}
class G {
constructor(e, t, r, a) {
N.call(this, t, a),
(this.children = r || []),
this.setAttribute("href", e);
}
setAttribute(e, t) {
this.attributes[e] = t;
}
hasClass(e) {
return this.classes.includes(e);
}
toNode() {
return L.call(this, "a");
}
toMarkup() {
return F.call(this, "a");
}
}
class U {
constructor(e, t, r) {
(this.alt = t),
(this.src = e),
(this.classes = ["mord"]),
(this.height = 0),
(this.depth = 0),
(this.maxFontSize = 0),
(this.style = r);
}
hasClass(e) {
return this.classes.includes(e);
}
toNode() {
var e = document.createElement("img");
for (var t of ((e.src = this.src),
(e.alt = this.alt),
(e.className = "mord"),
Object.keys(this.style)))
e.style[t] = this.style[t];
return e;
}
toMarkup() {
var e = '<img src="' + l(this.src) + '" alt="' + l(this.alt) + '"',
t = "";
for (var r of Object.keys(this.style))
t += i(r) + ":" + this.style[r] + ";";
return t && (e += ' style="' + l(t) + '"'), (e += "'/>");
}
}
var Y = { î: "ı̂", ï: "ı̈", í: "ı́", ì: "ı̀" };
class X {
constructor(e, t, r, a, n, i, s, o) {
(this.text = e),
(this.height = t || 0),
(this.depth = r || 0),
(this.italic = a || 0),
(this.skew = n || 0),
(this.width = i || 0),
(this.classes = s || []),
(this.style = o || {}),
(this.maxFontSize = 0);
var l = (function (e) {
for (var t = 0; t < z.length; t++)
for (var r = z[t], a = 0; a < r.blocks.length; a++) {
var n = r.blocks[a];
if (e >= n[0] && e <= n[1]) return r.name;
}
return null;
})(this.text.charCodeAt(0));
l && this.classes.push(l + "_fallback"),
/[îïíì]/.test(this.text) && (this.text = Y[this.text]);
}
hasClass(e) {
return this.classes.includes(e);
}
toNode() {
var e = document.createTextNode(this.text),
t = null;
for (var r of (this.italic > 0 &&
((t = document.createElement("span")).style.marginRight = O(
this.italic,
)),
this.classes.length > 0 &&
((t = t || document.createElement("span")).className = D(
this.classes,
)),
Object.keys(this.style)))
(t = t || document.createElement("span")).style[r] = this.style[r];
return t ? (t.appendChild(e), t) : e;
}
toMarkup() {
var e = !1,
t = "<span";
this.classes.length &&
((e = !0), (t += ' class="'), (t += l(D(this.classes))), (t += '"'));
var r = "";
for (var a of (this.italic > 0 &&
(r += "margin-right:" + this.italic + "em;"),
Object.keys(this.style)))
r += i(a) + ":" + this.style[a] + ";";
r && ((e = !0), (t += ' style="' + l(r) + '"'));
var n = l(this.text);
return e ? ((t += ">"), (t += n), (t += "</span>")) : n;
}
}
class j {
constructor(e, t) {
(this.children = e || []), (this.attributes = t || {});
}
toNode() {
var e = document.createElementNS("http://www.w3.org/2000/svg", "svg");
for (var t of Object.keys(this.attributes))
e.setAttribute(t, this.attributes[t]);
for (var r = 0; r < this.children.length; r++)
e.appendChild(this.children[r].toNode());
return e;
}
toMarkup() {
var e = '<svg xmlns="http://www.w3.org/2000/svg"';
for (var t of Object.keys(this.attributes))
e += " " + t + '="' + l(this.attributes[t]) + '"';
e += ">";
for (var r = 0; r < this.children.length; r++)
e += this.children[r].toMarkup();
return e + "</svg>";
}
}
class W {
constructor(e, t) {
(this.pathName = e), (this.alternate = t);
}
toNode() {
var e = document.createElementNS("http://www.w3.org/2000/svg", "path");
return (
this.alternate
? e.setAttribute("d", this.alternate)
: e.setAttribute("d", B[this.pathName]),
e
);
}
toMarkup() {
return this.alternate
? '<path d="' + l(this.alternate) + '"/>'
: '<path d="' + l(B[this.pathName]) + '"/>';
}
}
class _ {
constructor(e) {
this.attributes = e || {};
}
toNode() {
var e = document.createElementNS("http://www.w3.org/2000/svg", "line");
for (var t of Object.keys(this.attributes))
e.setAttribute(t, this.attributes[t]);
return e;
}
toMarkup() {
var e = "<line";
for (var t of Object.keys(this.attributes))
e += " " + t + '="' + l(this.attributes[t]) + '"';
return e + "/>";
}
}
var $ = {
"AMS-Regular": {
32: [0, 0, 0, 0, 0.25],
65: [0, 0.68889, 0, 0, 0.72222],
66: [0, 0.68889, 0, 0, 0.66667],
67: [0, 0.68889, 0, 0, 0.72222],
68: [0, 0.68889, 0, 0, 0.72222],
69: [0, 0.68889, 0, 0, 0.66667],
70: [0, 0.68889, 0, 0, 0.61111],
71: [0, 0.68889, 0, 0, 0.77778],
72: [0, 0.68889, 0, 0, 0.77778],
73: [0, 0.68889, 0, 0, 0.38889],
74: [0.16667, 0.68889, 0, 0, 0.5],
75: [0, 0.68889, 0, 0, 0.77778],
76: [0, 0.68889, 0, 0, 0.66667],
77: [0, 0.68889, 0, 0, 0.94445],
78: [0, 0.68889, 0, 0, 0.72222],
79: [0.16667, 0.68889, 0, 0, 0.77778],
80: [0, 0.68889, 0, 0, 0.61111],
81: [0.16667, 0.68889, 0, 0, 0.77778],
82: [0, 0.68889, 0, 0, 0.72222],
83: [0, 0.68889, 0, 0, 0.55556],
84: [0, 0.68889, 0, 0, 0.66667],
85: [0, 0.68889, 0, 0, 0.72222],
86: [0, 0.68889, 0, 0, 0.72222],
87: [0, 0.68889, 0, 0, 1],
88: [0, 0.68889, 0, 0, 0.72222],
89: [0, 0.68889, 0, 0, 0.72222],
90: [0, 0.68889, 0, 0, 0.66667],
107: [0, 0.68889, 0, 0, 0.55556],
160: [0, 0, 0, 0, 0.25],
165: [0, 0.675, 0.025, 0, 0.75],
174: [0.15559, 0.69224, 0, 0, 0.94666],
240: [0, 0.68889, 0, 0, 0.55556],
295: [0, 0.68889, 0, 0, 0.54028],
710: [0, 0.825, 0, 0, 2.33334],
732: [0, 0.9, 0, 0, 2.33334],
770: [0, 0.825, 0, 0, 2.33334],
771: [0, 0.9, 0, 0, 2.33334],
989: [0.08167, 0.58167, 0, 0, 0.77778],
1008: [0, 0.43056, 0.04028, 0, 0.66667],
8245: [0, 0.54986, 0, 0, 0.275],
8463: [0, 0.68889, 0, 0, 0.54028],
8487: [0, 0.68889, 0, 0, 0.72222],
8498: [0, 0.68889, 0, 0, 0.55556],
8502: [0, 0.68889, 0, 0, 0.66667],
8503: [0, 0.68889, 0, 0, 0.44445],
8504: [0, 0.68889, 0, 0, 0.66667],
8513: [0, 0.68889, 0, 0, 0.63889],
8592: [-0.03598, 0.46402, 0, 0, 0.5],
8594: [-0.03598, 0.46402, 0, 0, 0.5],
8602: [-0.13313, 0.36687, 0, 0, 1],
8603: [-0.13313, 0.36687, 0, 0, 1],
8606: [0.01354, 0.52239, 0, 0, 1],
8608: [0.01354, 0.52239, 0, 0, 1],
8610: [0.01354, 0.52239, 0, 0, 1.11111],
8611: [0.01354, 0.52239, 0, 0, 1.11111],
8619: [0, 0.54986, 0, 0, 1],
8620: [0, 0.54986, 0, 0, 1],
8621: [-0.13313, 0.37788, 0, 0, 1.38889],
8622: [-0.13313, 0.36687, 0, 0, 1],
8624: [0, 0.69224, 0, 0, 0.5],
8625: [0, 0.69224, 0, 0, 0.5],
8630: [0, 0.43056, 0, 0, 1],
8631: [0, 0.43056, 0, 0, 1],
8634: [0.08198, 0.58198, 0, 0, 0.77778],
8635: [0.08198, 0.58198, 0, 0, 0.77778],
8638: [0.19444, 0.69224, 0, 0, 0.41667],
8639: [0.19444, 0.69224, 0, 0, 0.41667],
8642: [0.19444, 0.69224, 0, 0, 0.41667],
8643: [0.19444, 0.69224, 0, 0, 0.41667],
8644: [0.1808, 0.675, 0, 0, 1],
8646: [0.1808, 0.675, 0, 0, 1],
8647: [0.1808, 0.675, 0, 0, 1],
8648: [0.19444, 0.69224, 0, 0, 0.83334],
8649: [0.1808, 0.675, 0, 0, 1],
8650: [0.19444, 0.69224, 0, 0, 0.83334],
8651: [0.01354, 0.52239, 0, 0, 1],
8652: [0.01354, 0.52239, 0, 0, 1],
8653: [-0.13313, 0.36687, 0, 0, 1],
8654: [-0.13313, 0.36687, 0, 0, 1],
8655: [-0.13313, 0.36687, 0, 0, 1],
8666: [0.13667, 0.63667, 0, 0, 1],
8667: [0.13667, 0.63667, 0, 0, 1],
8669: [-0.13313, 0.37788, 0, 0, 1],
8672: [-0.064, 0.437, 0, 0, 1.334],
8674: [-0.064, 0.437, 0, 0, 1.334],
8705: [0, 0.825, 0, 0, 0.5],
8708: [0, 0.68889, 0, 0, 0.55556],
8709: [0.08167, 0.58167, 0, 0, 0.77778],
8717: [0, 0.43056, 0, 0, 0.42917],
8722: [-0.03598, 0.46402, 0, 0, 0.5],
8724: [0.08198, 0.69224, 0, 0, 0.77778],
8726: [0.08167, 0.58167, 0, 0, 0.77778],
8733: [0, 0.69224, 0, 0, 0.77778],
8736: [0, 0.69224, 0, 0, 0.72222],
8737: [0, 0.69224, 0, 0, 0.72222],
8738: [0.03517, 0.52239, 0, 0, 0.72222],
8739: [0.08167, 0.58167, 0, 0, 0.22222],
8740: [0.25142, 0.74111, 0, 0, 0.27778],
8741: [0.08167, 0.58167, 0, 0, 0.38889],
8742: [0.25142, 0.74111, 0, 0, 0.5],
8756: [0, 0.69224, 0, 0, 0.66667],
8757: [0, 0.69224, 0, 0, 0.66667],
8764: [-0.13313, 0.36687, 0, 0, 0.77778],
8765: [-0.13313, 0.37788, 0, 0, 0.77778],
8769: [-0.13313, 0.36687, 0, 0, 0.77778],
8770: [-0.03625, 0.46375, 0, 0, 0.77778],
8774: [0.30274, 0.79383, 0, 0, 0.77778],
8776: [-0.01688, 0.48312, 0, 0, 0.77778],
8778: [0.08167, 0.58167, 0, 0, 0.77778],
8782: [0.06062, 0.54986, 0, 0, 0.77778],
8783: [0.06062, 0.54986, 0, 0, 0.77778],
8785: [0.08198, 0.58198, 0, 0, 0.77778],
8786: [0.08198, 0.58198, 0, 0, 0.77778],
8787: [0.08198, 0.58198, 0, 0, 0.77778],
8790: [0, 0.69224, 0, 0, 0.77778],
8791: [0.22958, 0.72958, 0, 0, 0.77778],
8796: [0.08198, 0.91667, 0, 0, 0.77778],
8806: [0.25583, 0.75583, 0, 0, 0.77778],
8807: [0.25583, 0.75583, 0, 0, 0.77778],
8808: [0.25142, 0.75726, 0, 0, 0.77778],
8809: [0.25142, 0.75726, 0, 0, 0.77778],
8812: [0.25583, 0.75583, 0, 0, 0.5],
8814: [0.20576, 0.70576, 0, 0, 0.77778],
8815: [0.20576, 0.70576, 0, 0, 0.77778],
8816: [0.30274, 0.79383, 0, 0, 0.77778],
8817: [0.30274, 0.79383, 0, 0, 0.77778],
8818: [0.22958, 0.72958, 0, 0, 0.77778],
8819: [0.22958, 0.72958, 0, 0, 0.77778],
8822: [0.1808, 0.675, 0, 0, 0.77778],
8823: [0.1808, 0.675, 0, 0, 0.77778],
8828: [0.13667, 0.63667, 0, 0, 0.77778],
8829: [0.13667, 0.63667, 0, 0, 0.77778],
8830: [0.22958, 0.72958, 0, 0, 0.77778],
8831: [0.22958, 0.72958, 0, 0, 0.77778],
8832: [0.20576, 0.70576, 0, 0, 0.77778],
8833: [0.20576, 0.70576, 0, 0, 0.77778],
8840: [0.30274, 0.79383, 0, 0, 0.77778],
8841: [0.30274, 0.79383, 0, 0, 0.77778],
8842: [0.13597, 0.63597, 0, 0, 0.77778],
8843: [0.13597, 0.63597, 0, 0, 0.77778],
8847: [0.03517, 0.54986, 0, 0, 0.77778],
8848: [0.03517, 0.54986, 0, 0, 0.77778],
8858: [0.08198, 0.58198, 0, 0, 0.77778],
8859: [0.08198, 0.58198, 0, 0, 0.77778],
8861: [0.08198, 0.58198, 0, 0, 0.77778],
8862: [0, 0.675, 0, 0, 0.77778],
8863: [0, 0.675, 0, 0, 0.77778],
8864: [0, 0.675, 0, 0, 0.77778],
8865: [0, 0.675, 0, 0, 0.77778],
8872: [0, 0.69224, 0, 0, 0.61111],
8873: [0, 0.69224, 0, 0, 0.72222],
8874: [0, 0.69224, 0, 0, 0.88889],
8876: [0, 0.68889, 0, 0, 0.61111],
8877: [0, 0.68889, 0, 0, 0.61111],
8878: [0, 0.68889, 0, 0, 0.72222],
8879: [0, 0.68889, 0, 0, 0.72222],
8882: [0.03517, 0.54986, 0, 0, 0.77778],
8883: [0.03517, 0.54986, 0, 0, 0.77778],
8884: [0.13667, 0.63667, 0, 0, 0.77778],
8885: [0.13667, 0.63667, 0, 0, 0.77778],
8888: [0, 0.54986, 0, 0, 1.11111],
8890: [0.19444, 0.43056, 0, 0, 0.55556],
8891: [0.19444, 0.69224, 0, 0, 0.61111],
8892: [0.19444, 0.69224, 0, 0, 0.61111],
8901: [0, 0.54986, 0, 0, 0.27778],
8903: [0.08167, 0.58167, 0, 0, 0.77778],
8905: [0.08167, 0.58167, 0, 0, 0.77778],
8906: [0.08167, 0.58167, 0, 0, 0.77778],
8907: [0, 0.69224, 0, 0, 0.77778],
8908: [0, 0.69224, 0, 0, 0.77778],
8909: [-0.03598, 0.46402, 0, 0, 0.77778],
8910: [0, 0.54986, 0, 0, 0.76042],
8911: [0, 0.54986, 0, 0, 0.76042],
8912: [0.03517, 0.54986, 0, 0, 0.77778],
8913: [0.03517, 0.54986, 0, 0, 0.77778],
8914: [0, 0.54986, 0, 0, 0.66667],
8915: [0, 0.54986, 0, 0, 0.66667],
8916: [0, 0.69224, 0, 0, 0.66667],
8918: [0.0391, 0.5391, 0, 0, 0.77778],
8919: [0.0391, 0.5391, 0, 0, 0.77778],
8920: [0.03517, 0.54986, 0, 0, 1.33334],
8921: [0.03517, 0.54986, 0, 0, 1.33334],
8922: [0.38569, 0.88569, 0, 0, 0.77778],
8923: [0.38569, 0.88569, 0, 0, 0.77778],
8926: [0.13667, 0.63667, 0, 0, 0.77778],
8927: [0.13667, 0.63667, 0, 0, 0.77778],
8928: [0.30274, 0.79383, 0, 0, 0.77778],
8929: [0.30274, 0.79383, 0, 0, 0.77778],
8934: [0.23222, 0.74111, 0, 0, 0.77778],
8935: [0.23222, 0.74111, 0, 0, 0.77778],
8936: [0.23222, 0.74111, 0, 0, 0.77778],
8937: [0.23222, 0.74111, 0, 0, 0.77778],
8938: [0.20576, 0.70576, 0, 0, 0.77778],
8939: [0.20576, 0.70576, 0, 0, 0.77778],
8940: [0.30274, 0.79383, 0, 0, 0.77778],
8941: [0.30274, 0.79383, 0, 0, 0.77778],
8994: [0.19444, 0.69224, 0, 0, 0.77778],
8995: [0.19444, 0.69224, 0, 0, 0.77778],
9416: [0.15559, 0.69224, 0, 0, 0.90222],
9484: [0, 0.69224, 0, 0, 0.5],
9488: [0, 0.69224, 0, 0, 0.5],
9492: [0, 0.37788, 0, 0, 0.5],
9496: [0, 0.37788, 0, 0, 0.5],
9585: [0.19444, 0.68889, 0, 0, 0.88889],
9586: [0.19444, 0.74111, 0, 0, 0.88889],
9632: [0, 0.675, 0, 0, 0.77778],
9633: [0, 0.675, 0, 0, 0.77778],
9650: [0, 0.54986, 0, 0, 0.72222],
9651: [0, 0.54986, 0, 0, 0.72222],
9654: [0.03517, 0.54986, 0, 0, 0.77778],
9660: [0, 0.54986, 0, 0, 0.72222],
9661: [0, 0.54986, 0, 0, 0.72222],
9664: [0.03517, 0.54986, 0, 0, 0.77778],
9674: [0.11111, 0.69224, 0, 0, 0.66667],
9733: [0.19444, 0.69224, 0, 0, 0.94445],
10003: [0, 0.69224, 0, 0, 0.83334],
10016: [0, 0.69224, 0, 0, 0.83334],
10731: [0.11111, 0.69224, 0, 0, 0.66667],
10846: [0.19444, 0.75583, 0, 0, 0.61111],
10877: [0.13667, 0.63667, 0, 0, 0.77778],
10878: [0.13667, 0.63667, 0, 0, 0.77778],
10885: [0.25583, 0.75583, 0, 0, 0.77778],
10886: [0.25583, 0.75583, 0, 0, 0.77778],
10887: [0.13597, 0.63597, 0, 0, 0.77778],
10888: [0.13597, 0.63597, 0, 0, 0.77778],
10889: [0.26167, 0.75726, 0, 0, 0.77778],
10890: [0.26167, 0.75726, 0, 0, 0.77778],
10891: [0.48256, 0.98256, 0, 0, 0.77778],
10892: [0.48256, 0.98256, 0, 0, 0.77778],
10901: [0.13667, 0.63667, 0, 0, 0.77778],
10902: [0.13667, 0.63667, 0, 0, 0.77778],
10933: [0.25142, 0.75726, 0, 0, 0.77778],
10934: [0.25142, 0.75726, 0, 0, 0.77778],
10935: [0.26167, 0.75726, 0, 0, 0.77778],
10936: [0.26167, 0.75726, 0, 0, 0.77778],
10937: [0.26167, 0.75726, 0, 0, 0.77778],
10938: [0.26167, 0.75726, 0, 0, 0.77778],
10949: [0.25583, 0.75583, 0, 0, 0.77778],
10950: [0.25583, 0.75583, 0, 0, 0.77778],
10955: [0.28481, 0.79383, 0, 0, 0.77778],
10956: [0.28481, 0.79383, 0, 0, 0.77778],
57350: [0.08167, 0.58167, 0, 0, 0.22222],
57351: [0.08167, 0.58167, 0, 0, 0.38889],
57352: [0.08167, 0.58167, 0, 0, 0.77778],
57353: [0, 0.43056, 0.04028, 0, 0.66667],
57356: [0.25142, 0.75726, 0, 0, 0.77778],
57357: [0.25142, 0.75726, 0, 0, 0.77778],
57358: [0.41951, 0.91951, 0, 0, 0.77778],
57359: [0.30274, 0.79383, 0, 0, 0.77778],
57360: [0.30274, 0.79383, 0, 0, 0.77778],
57361: [0.41951, 0.91951, 0, 0, 0.77778],
57366: [0.25142, 0.75726, 0, 0, 0.77778],
57367: [0.25142, 0.75726, 0, 0, 0.77778],
57368: [0.25142, 0.75726, 0, 0, 0.77778],
57369: [0.25142, 0.75726, 0, 0, 0.77778],
57370: [0.13597, 0.63597, 0, 0, 0.77778],
57371: [0.13597, 0.63597, 0, 0, 0.77778],
},
"Caligraphic-Regular": {
32: [0, 0, 0, 0, 0.25],
65: [0, 0.68333, 0, 0.19445, 0.79847],
66: [0, 0.68333, 0.03041, 0.13889, 0.65681],
67: [0, 0.68333, 0.05834, 0.13889, 0.52653],
68: [0, 0.68333, 0.02778, 0.08334, 0.77139],
69: [0, 0.68333, 0.08944, 0.11111, 0.52778],
70: [0, 0.68333, 0.09931, 0.11111, 0.71875],
71: [0.09722, 0.68333, 0.0593, 0.11111, 0.59487],
72: [0, 0.68333, 0.00965, 0.11111, 0.84452],
73: [0, 0.68333, 0.07382, 0, 0.54452],
74: [0.09722, 0.68333, 0.18472, 0.16667, 0.67778],
75: [0, 0.68333, 0.01445, 0.05556, 0.76195],
76: [0, 0.68333, 0, 0.13889, 0.68972],
77: [0, 0.68333, 0, 0.13889, 1.2009],
78: [0, 0.68333, 0.14736, 0.08334, 0.82049],
79: [0, 0.68333, 0.02778, 0.11111, 0.79611],
80: [0, 0.68333, 0.08222, 0.08334, 0.69556],
81: [0.09722, 0.68333, 0, 0.11111, 0.81667],
82: [0, 0.68333, 0, 0.08334, 0.8475],
83: [0, 0.68333, 0.075, 0.13889, 0.60556],
84: [0, 0.68333, 0.25417, 0, 0.54464],
85: [0, 0.68333, 0.09931, 0.08334, 0.62583],
86: [0, 0.68333, 0.08222, 0, 0.61278],
87: [0, 0.68333, 0.08222, 0.08334, 0.98778],
88: [0, 0.68333, 0.14643, 0.13889, 0.7133],
89: [0.09722, 0.68333, 0.08222, 0.08334, 0.66834],
90: [0, 0.68333, 0.07944, 0.13889, 0.72473],
160: [0, 0, 0, 0, 0.25],
},
"Fraktur-Regular": {
32: [0, 0, 0, 0, 0.25],
33: [0, 0.69141, 0, 0, 0.29574],
34: [0, 0.69141, 0, 0, 0.21471],
38: [0, 0.69141, 0, 0, 0.73786],
39: [0, 0.69141, 0, 0, 0.21201],
40: [0.24982, 0.74947, 0, 0, 0.38865],
41: [0.24982, 0.74947, 0, 0, 0.38865],
42: [0, 0.62119, 0, 0, 0.27764],
43: [0.08319, 0.58283, 0, 0, 0.75623],
44: [0, 0.10803, 0, 0, 0.27764],
45: [0.08319, 0.58283, 0, 0, 0.75623],
46: [0, 0.10803, 0, 0, 0.27764],
47: [0.24982, 0.74947, 0, 0, 0.50181],
48: [0, 0.47534, 0, 0, 0.50181],
49: [0, 0.47534, 0, 0, 0.50181],
50: [0, 0.47534, 0, 0, 0.50181],
51: [0.18906, 0.47534, 0, 0, 0.50181],
52: [0.18906, 0.47534, 0, 0, 0.50181],
53: [0.18906, 0.47534, 0, 0, 0.50181],
54: [0, 0.69141, 0, 0, 0.50181],
55: [0.18906, 0.47534, 0, 0, 0.50181],
56: [0, 0.69141, 0, 0, 0.50181],
57: [0.18906, 0.47534, 0, 0, 0.50181],
58: [0, 0.47534, 0, 0, 0.21606],
59: [0.12604, 0.47534, 0, 0, 0.21606],
61: [-0.13099, 0.36866, 0, 0, 0.75623],
63: [0, 0.69141, 0, 0, 0.36245],
65: [0, 0.69141, 0, 0, 0.7176],
66: [0, 0.69141, 0, 0, 0.88397],
67: [0, 0.69141, 0, 0, 0.61254],
68: [0, 0.69141, 0, 0, 0.83158],
69: [0, 0.69141, 0, 0, 0.66278],
70: [0.12604, 0.69141, 0, 0, 0.61119],
71: [0, 0.69141, 0, 0, 0.78539],
72: [0.06302, 0.69141, 0, 0, 0.7203],
73: [0, 0.69141, 0, 0, 0.55448],
74: [0.12604, 0.69141, 0, 0, 0.55231],
75: [0, 0.69141, 0, 0, 0.66845],
76: [0, 0.69141, 0, 0, 0.66602],
77: [0, 0.69141, 0, 0, 1.04953],
78: [0, 0.69141, 0, 0, 0.83212],
79: [0, 0.69141, 0, 0, 0.82699],
80: [0.18906, 0.69141, 0, 0, 0.82753],
81: [0.03781, 0.69141, 0, 0, 0.82699],
82: [0, 0.69141, 0, 0, 0.82807],
83: [0, 0.69141, 0, 0, 0.82861],
84: [0, 0.69141, 0, 0, 0.66899],
85: [0, 0.69141, 0, 0, 0.64576],
86: [0, 0.69141, 0, 0, 0.83131],
87: [0, 0.69141, 0, 0, 1.04602],
88: [0, 0.69141, 0, 0, 0.71922],
89: [0.18906, 0.69141, 0, 0, 0.83293],
90: [0.12604, 0.69141, 0, 0, 0.60201],
91: [0.24982, 0.74947, 0, 0, 0.27764],
93: [0.24982, 0.74947, 0, 0, 0.27764],
94: [0, 0.69141, 0, 0, 0.49965],
97: [0, 0.47534, 0, 0, 0.50046],
98: [0, 0.69141, 0, 0, 0.51315],
99: [0, 0.47534, 0, 0, 0.38946],
100: [0, 0.62119, 0, 0, 0.49857],
101: [0, 0.47534, 0, 0, 0.40053],
102: [0.18906, 0.69141, 0, 0, 0.32626],
103: [0.18906, 0.47534, 0, 0, 0.5037],
104: [0.18906, 0.69141, 0, 0, 0.52126],
105: [0, 0.69141, 0, 0, 0.27899],
106: [0, 0.69141, 0, 0, 0.28088],
107: [0, 0.69141, 0, 0, 0.38946],
108: [0, 0.69141, 0, 0, 0.27953],
109: [0, 0.47534, 0, 0, 0.76676],
110: [0, 0.47534, 0, 0, 0.52666],
111: [0, 0.47534, 0, 0, 0.48885],
112: [0.18906, 0.52396, 0, 0, 0.50046],
113: [0.18906, 0.47534, 0, 0, 0.48912],
114: [0, 0.47534, 0, 0, 0.38919],
115: [0, 0.47534, 0, 0, 0.44266],
116: [0, 0.62119, 0, 0, 0.33301],
117: [0, 0.47534, 0, 0, 0.5172],
118: [0, 0.52396, 0, 0, 0.5118],
119: [0, 0.52396, 0, 0, 0.77351],
120: [0.18906, 0.47534, 0, 0, 0.38865],
121: [0.18906, 0.47534, 0, 0, 0.49884],
122: [0.18906, 0.47534, 0, 0, 0.39054],
160: [0, 0, 0, 0, 0.25],
8216: [0, 0.69141, 0, 0, 0.21471],
8217: [0, 0.69141, 0, 0, 0.21471],
58112: [0, 0.62119, 0, 0, 0.49749],
58113: [0, 0.62119, 0, 0, 0.4983],
58114: [0.18906, 0.69141, 0, 0, 0.33328],
58115: [0.18906, 0.69141, 0, 0, 0.32923],
58116: [0.18906, 0.47534, 0, 0, 0.50343],
58117: [0, 0.69141, 0, 0, 0.33301],
58118: [0, 0.62119, 0, 0, 0.33409],
58119: [0, 0.47534, 0, 0, 0.50073],
},
"Main-Bold": {
32: [0, 0, 0, 0, 0.25],
33: [0, 0.69444, 0, 0, 0.35],
34: [0, 0.69444, 0, 0, 0.60278],
35: [0.19444, 0.69444, 0, 0, 0.95833],
36: [0.05556, 0.75, 0, 0, 0.575],
37: [0.05556, 0.75, 0, 0, 0.95833],
38: [0, 0.69444, 0, 0, 0.89444],
39: [0, 0.69444, 0, 0, 0.31944],
40: [0.25, 0.75, 0, 0, 0.44722],
41: [0.25, 0.75, 0, 0, 0.44722],
42: [0, 0.75, 0, 0, 0.575],
43: [0.13333, 0.63333, 0, 0, 0.89444],
44: [0.19444, 0.15556, 0, 0, 0.31944],
45: [0, 0.44444, 0, 0, 0.38333],
46: [0, 0.15556, 0, 0, 0.31944],
47: [0.25, 0.75, 0, 0, 0.575],
48: [0, 0.64444, 0, 0, 0.575],
49: [0, 0.64444, 0, 0, 0.575],
50: [0, 0.64444, 0, 0, 0.575],
51: [0, 0.64444, 0, 0, 0.575],
52: [0, 0.64444, 0, 0, 0.575],
53: [0, 0.64444, 0, 0, 0.575],
54: [0, 0.64444, 0, 0, 0.575],
55: [0, 0.64444, 0, 0, 0.575],
56: [0, 0.64444, 0, 0, 0.575],
57: [0, 0.64444, 0, 0, 0.575],
58: [0, 0.44444, 0, 0, 0.31944],
59: [0.19444, 0.44444, 0, 0, 0.31944],
60: [0.08556, 0.58556, 0, 0, 0.89444],
61: [-0.10889, 0.39111, 0, 0, 0.89444],
62: [0.08556, 0.58556, 0, 0, 0.89444],
63: [0, 0.69444, 0, 0, 0.54305],
64: [0, 0.69444, 0, 0, 0.89444],
65: [0, 0.68611, 0, 0, 0.86944],
66: [0, 0.68611, 0, 0, 0.81805],
67: [0, 0.68611, 0, 0, 0.83055],
68: [0, 0.68611, 0, 0, 0.88194],
69: [0, 0.68611, 0, 0, 0.75555],
70: [0, 0.68611, 0, 0, 0.72361],
71: [0, 0.68611, 0, 0, 0.90416],
72: [0, 0.68611, 0, 0, 0.9],
73: [0, 0.68611, 0, 0, 0.43611],
74: [0, 0.68611, 0, 0, 0.59444],
75: [0, 0.68611, 0, 0, 0.90138],
76: [0, 0.68611, 0, 0, 0.69166],
77: [0, 0.68611, 0, 0, 1.09166],
78: [0, 0.68611, 0, 0, 0.9],
79: [0, 0.68611, 0, 0, 0.86388],
80: [0, 0.68611, 0, 0, 0.78611],
81: [0.19444, 0.68611, 0, 0, 0.86388],
82: [0, 0.68611, 0, 0, 0.8625],
83: [0, 0.68611, 0, 0, 0.63889],
84: [0, 0.68611, 0, 0, 0.8],
85: [0, 0.68611, 0, 0, 0.88472],
86: [0, 0.68611, 0.01597, 0, 0.86944],
87: [0, 0.68611, 0.01597, 0, 1.18888],
88: [0, 0.68611, 0, 0, 0.86944],
89: [0, 0.68611, 0.02875, 0, 0.86944],
90: [0, 0.68611, 0, 0, 0.70277],
91: [0.25, 0.75, 0, 0, 0.31944],
92: [0.25, 0.75, 0, 0, 0.575],
93: [0.25, 0.75, 0, 0, 0.31944],
94: [0, 0.69444, 0, 0, 0.575],
95: [0.31, 0.13444, 0.03194, 0, 0.575],
97: [0, 0.44444, 0, 0, 0.55902],
98: [0, 0.69444, 0, 0, 0.63889],
99: [0, 0.44444, 0, 0, 0.51111],
100: [0, 0.69444, 0, 0, 0.63889],
101: [0, 0.44444, 0, 0, 0.52708],
102: [0, 0.69444, 0.10903, 0, 0.35139],
103: [0.19444, 0.44444, 0.01597, 0, 0.575],
104: [0, 0.69444, 0, 0, 0.63889],
105: [0, 0.69444, 0, 0, 0.31944],
106: [0.19444, 0.69444, 0, 0, 0.35139],
107: [0, 0.69444, 0, 0, 0.60694],
108: [0, 0.69444, 0, 0, 0.31944],
109: [0, 0.44444, 0, 0, 0.95833],
110: [0, 0.44444, 0, 0, 0.63889],
111: [0, 0.44444, 0, 0, 0.575],
112: [0.19444, 0.44444, 0, 0, 0.63889],
113: [0.19444, 0.44444, 0, 0, 0.60694],
114: [0, 0.44444, 0, 0, 0.47361],
115: [0, 0.44444, 0, 0, 0.45361],
116: [0, 0.63492, 0, 0, 0.44722],
117: [0, 0.44444, 0, 0, 0.63889],
118: [0, 0.44444, 0.01597, 0, 0.60694],
119: [0, 0.44444, 0.01597, 0, 0.83055],
120: [0, 0.44444, 0, 0, 0.60694],
121: [0.19444, 0.44444, 0.01597, 0, 0.60694],
122: [0, 0.44444, 0, 0, 0.51111],
123: [0.25, 0.75, 0, 0, 0.575],
124: [0.25, 0.75, 0, 0, 0.31944],
125: [0.25, 0.75, 0, 0, 0.575],
126: [0.35, 0.34444, 0, 0, 0.575],
160: [0, 0, 0, 0, 0.25],
163: [0, 0.69444, 0, 0, 0.86853],
168: [0, 0.69444, 0, 0, 0.575],
172: [0, 0.44444, 0, 0, 0.76666],
176: [0, 0.69444, 0, 0, 0.86944],
177: [0.13333, 0.63333, 0, 0, 0.89444],
184: [0.17014, 0, 0, 0, 0.51111],
198: [0, 0.68611, 0, 0, 1.04166],
215: [0.13333, 0.63333, 0, 0, 0.89444],
216: [0.04861, 0.73472, 0, 0, 0.89444],
223: [0, 0.69444, 0, 0, 0.59722],
230: [0, 0.44444, 0, 0, 0.83055],
247: [0.13333, 0.63333, 0, 0, 0.89444],
248: [0.09722, 0.54167, 0, 0, 0.575],
305: [0, 0.44444, 0, 0, 0.31944],
338: [0, 0.68611, 0, 0, 1.16944],
339: [0, 0.44444, 0, 0, 0.89444],
567: [0.19444, 0.44444, 0, 0, 0.35139],
710: [0, 0.69444, 0, 0, 0.575],
711: [0, 0.63194, 0, 0, 0.575],
713: [0, 0.59611, 0, 0, 0.575],
714: [0, 0.69444, 0, 0, 0.575],
715: [0, 0.69444, 0, 0, 0.575],
728: [0, 0.69444, 0, 0, 0.575],
729: [0, 0.69444, 0, 0, 0.31944],
730: [0, 0.69444, 0, 0, 0.86944],
732: [0, 0.69444, 0, 0, 0.575],
733: [0, 0.69444, 0, 0, 0.575],
915: [0, 0.68611, 0, 0, 0.69166],
916: [0, 0.68611, 0, 0, 0.95833],
920: [0, 0.68611, 0, 0, 0.89444],
923: [0, 0.68611, 0, 0, 0.80555],
926: [0, 0.68611, 0, 0, 0.76666],
928: [0, 0.68611, 0, 0, 0.9],
931: [0, 0.68611, 0, 0, 0.83055],
933: [0, 0.68611, 0, 0, 0.89444],
934: [0, 0.68611, 0, 0, 0.83055],
936: [0, 0.68611, 0, 0, 0.89444],
937: [0, 0.68611, 0, 0, 0.83055],
8211: [0, 0.44444, 0.03194, 0, 0.575],
8212: [0, 0.44444, 0.03194, 0, 1.14999],
8216: [0, 0.69444, 0, 0, 0.31944],
8217: [0, 0.69444, 0, 0, 0.31944],
8220: [0, 0.69444, 0, 0, 0.60278],
8221: [0, 0.69444, 0, 0, 0.60278],
8224: [0.19444, 0.69444, 0, 0, 0.51111],
8225: [0.19444, 0.69444, 0, 0, 0.51111],
8242: [0, 0.55556, 0, 0, 0.34444],
8407: [0, 0.72444, 0.15486, 0, 0.575],
8463: [0, 0.69444, 0, 0, 0.66759],
8465: [0, 0.69444, 0, 0, 0.83055],
8467: [0, 0.69444, 0, 0, 0.47361],
8472: [0.19444, 0.44444, 0, 0, 0.74027],
8476: [0, 0.69444, 0, 0, 0.83055],
8501: [0, 0.69444, 0, 0, 0.70277],
8592: [-0.10889, 0.39111, 0, 0, 1.14999],
8593: [0.19444, 0.69444, 0, 0, 0.575],
8594: [-0.10889, 0.39111, 0, 0, 1.14999],
8595: [0.19444, 0.69444, 0, 0, 0.575],
8596: [-0.10889, 0.39111, 0, 0, 1.14999],
8597: [0.25, 0.75, 0, 0, 0.575],
8598: [0.19444, 0.69444, 0, 0, 1.14999],
8599: [0.19444, 0.69444, 0, 0, 1.14999],
8600: [0.19444, 0.69444, 0, 0, 1.14999],
8601: [0.19444, 0.69444, 0, 0, 1.14999],
8636: [-0.10889, 0.39111, 0, 0, 1.14999],
8637: [-0.10889, 0.39111, 0, 0, 1.14999],
8640: [-0.10889, 0.39111, 0, 0, 1.14999],
8641: [-0.10889, 0.39111, 0, 0, 1.14999],
8656: [-0.10889, 0.39111, 0, 0, 1.14999],
8657: [0.19444, 0.69444, 0, 0, 0.70277],
8658: [-0.10889, 0.39111, 0, 0, 1.14999],
8659: [0.19444, 0.69444, 0, 0, 0.70277],
8660: [-0.10889, 0.39111, 0, 0, 1.14999],
8661: [0.25, 0.75, 0, 0, 0.70277],
8704: [0, 0.69444, 0, 0, 0.63889],
8706: [0, 0.69444, 0.06389, 0, 0.62847],
8707: [0, 0.69444, 0, 0, 0.63889],
8709: [0.05556, 0.75, 0, 0, 0.575],
8711: [0, 0.68611, 0, 0, 0.95833],
8712: [0.08556, 0.58556, 0, 0, 0.76666],
8715: [0.08556, 0.58556, 0, 0, 0.76666],
8722: [0.13333, 0.63333, 0, 0, 0.89444],
8723: [0.13333, 0.63333, 0, 0, 0.89444],
8725: [0.25, 0.75, 0, 0, 0.575],
8726: [0.25, 0.75, 0, 0, 0.575],
8727: [-0.02778, 0.47222, 0, 0, 0.575],
8728: [-0.02639, 0.47361, 0, 0, 0.575],
8729: [-0.02639, 0.47361, 0, 0, 0.575],
8730: [0.18, 0.82, 0, 0, 0.95833],
8733: [0, 0.44444, 0, 0, 0.89444],
8734: [0, 0.44444, 0, 0, 1.14999],
8736: [0, 0.69224, 0, 0, 0.72222],
8739: [0.25, 0.75, 0, 0, 0.31944],
8741: [0.25, 0.75, 0, 0, 0.575],
8743: [0, 0.55556, 0, 0, 0.76666],
8744: [0, 0.55556, 0, 0, 0.76666],
8745: [0, 0.55556, 0, 0, 0.76666],
8746: [0, 0.55556, 0, 0, 0.76666],
8747: [0.19444, 0.69444, 0.12778, 0, 0.56875],
8764: [-0.10889, 0.39111, 0, 0, 0.89444],
8768: [0.19444, 0.69444, 0, 0, 0.31944],
8771: [0.00222, 0.50222, 0, 0, 0.89444],
8773: [0.027, 0.638, 0, 0, 0.894],
8776: [0.02444, 0.52444, 0, 0, 0.89444],
8781: [0.00222, 0.50222, 0, 0, 0.89444],
8801: [0.00222, 0.50222, 0, 0, 0.89444],
8804: [0.19667, 0.69667, 0, 0, 0.89444],
8805: [0.19667, 0.69667, 0, 0, 0.89444],
8810: [0.08556, 0.58556, 0, 0, 1.14999],
8811: [0.08556, 0.58556, 0, 0, 1.14999],
8826: [0.08556, 0.58556, 0, 0, 0.89444],
8827: [0.08556, 0.58556, 0, 0, 0.89444],
8834: [0.08556, 0.58556, 0, 0, 0.89444],
8835: [0.08556, 0.58556, 0, 0, 0.89444],
8838: [0.19667, 0.69667, 0, 0, 0.89444],
8839: [0.19667, 0.69667, 0, 0, 0.89444],
8846: [0, 0.55556, 0, 0, 0.76666],
8849: [0.19667, 0.69667, 0, 0, 0.89444],
8850: [0.19667, 0.69667, 0, 0, 0.89444],
8851: [0, 0.55556, 0, 0, 0.76666],
8852: [0, 0.55556, 0, 0, 0.76666],
8853: [0.13333, 0.63333, 0, 0, 0.89444],
8854: [0.13333, 0.63333, 0, 0, 0.89444],
8855: [0.13333, 0.63333, 0, 0, 0.89444],
8856: [0.13333, 0.63333, 0, 0, 0.89444],
8857: [0.13333, 0.63333, 0, 0, 0.89444],
8866: [0, 0.69444, 0, 0, 0.70277],
8867: [0, 0.69444, 0, 0, 0.70277],
8868: [0, 0.69444, 0, 0, 0.89444],
8869: [0, 0.69444, 0, 0, 0.89444],
8900: [-0.02639, 0.47361, 0, 0, 0.575],
8901: [-0.02639, 0.47361, 0, 0, 0.31944],
8902: [-0.02778, 0.47222, 0, 0, 0.575],
8968: [0.25, 0.75, 0, 0, 0.51111],
8969: [0.25, 0.75, 0, 0, 0.51111],
8970: [0.25, 0.75, 0, 0, 0.51111],
8971: [0.25, 0.75, 0, 0, 0.51111],
8994: [-0.13889, 0.36111, 0, 0, 1.14999],
8995: [-0.13889, 0.36111, 0, 0, 1.14999],
9651: [0.19444, 0.69444, 0, 0, 1.02222],
9657: [-0.02778, 0.47222, 0, 0, 0.575],
9661: [0.19444, 0.69444, 0, 0, 1.02222],
9667: [-0.02778, 0.47222, 0, 0, 0.575],
9711: [0.19444, 0.69444, 0, 0, 1.14999],
9824: [0.12963, 0.69444, 0, 0, 0.89444],
9825: [0.12963, 0.69444, 0, 0, 0.89444],
9826: [0.12963, 0.69444, 0, 0, 0.89444],
9827: [0.12963, 0.69444, 0, 0, 0.89444],
9837: [0, 0.75, 0, 0, 0.44722],
9838: [0.19444, 0.69444, 0, 0, 0.44722],
9839: [0.19444, 0.69444, 0, 0, 0.44722],
10216: [0.25, 0.75, 0, 0, 0.44722],
10217: [0.25, 0.75, 0, 0, 0.44722],
10815: [0, 0.68611, 0, 0, 0.9],
10927: [0.19667, 0.69667, 0, 0, 0.89444],
10928: [0.19667, 0.69667, 0, 0, 0.89444],
57376: [0.19444, 0.69444, 0, 0, 0],
},
"Main-BoldItalic": {
32: [0, 0, 0, 0, 0.25],
33: [0, 0.69444, 0.11417, 0, 0.38611],
34: [0, 0.69444, 0.07939, 0, 0.62055],
35: [0.19444, 0.69444, 0.06833, 0, 0.94444],
37: [0.05556, 0.75, 0.12861, 0, 0.94444],
38: [0, 0.69444, 0.08528, 0, 0.88555],
39: [0, 0.69444, 0.12945, 0, 0.35555],
40: [0.25, 0.75, 0.15806, 0, 0.47333],
41: [0.25, 0.75, 0.03306, 0, 0.47333],
42: [0, 0.75, 0.14333, 0, 0.59111],
43: [0.10333, 0.60333, 0.03306, 0, 0.88555],
44: [0.19444, 0.14722, 0, 0, 0.35555],
45: [0, 0.44444, 0.02611, 0, 0.41444],
46: [0, 0.14722, 0, 0, 0.35555],
47: [0.25, 0.75, 0.15806, 0, 0.59111],
48: [0, 0.64444, 0.13167, 0, 0.59111],
49: [0, 0.64444, 0.13167, 0, 0.59111],
50: [0, 0.64444, 0.13167, 0, 0.59111],
51: [0, 0.64444, 0.13167, 0, 0.59111],
52: [0.19444, 0.64444, 0.13167, 0, 0.59111],
53: [0, 0.64444, 0.13167, 0, 0.59111],
54: [0, 0.64444, 0.13167, 0, 0.59111],
55: [0.19444, 0.64444, 0.13167, 0, 0.59111],
56: [0, 0.64444, 0.13167, 0, 0.59111],
57: [0, 0.64444, 0.13167, 0, 0.59111],
58: [0, 0.44444, 0.06695, 0, 0.35555],
59: [0.19444, 0.44444, 0.06695, 0, 0.35555],
61: [-0.10889, 0.39111, 0.06833, 0, 0.88555],
63: [0, 0.69444, 0.11472, 0, 0.59111],
64: [0, 0.69444, 0.09208, 0, 0.88555],
65: [0, 0.68611, 0, 0, 0.86555],
66: [0, 0.68611, 0.0992, 0, 0.81666],
67: [0, 0.68611, 0.14208, 0, 0.82666],
68: [0, 0.68611, 0.09062, 0, 0.87555],
69: [0, 0.68611, 0.11431, 0, 0.75666],
70: [0, 0.68611, 0.12903, 0, 0.72722],
71: [0, 0.68611, 0.07347, 0, 0.89527],
72: [0, 0.68611, 0.17208, 0, 0.8961],
73: [0, 0.68611, 0.15681, 0, 0.47166],
74: [0, 0.68611, 0.145, 0, 0.61055],
75: [0, 0.68611, 0.14208, 0, 0.89499],
76: [0, 0.68611, 0, 0, 0.69777],
77: [0, 0.68611, 0.17208, 0, 1.07277],
78: [0, 0.68611, 0.17208, 0, 0.8961],
79: [0, 0.68611, 0.09062, 0, 0.85499],
80: [0, 0.68611, 0.0992, 0, 0.78721],
81: [0.19444, 0.68611, 0.09062, 0, 0.85499],
82: [0, 0.68611, 0.02559, 0, 0.85944],
83: [0, 0.68611, 0.11264, 0, 0.64999],
84: [0, 0.68611, 0.12903, 0, 0.7961],
85: [0, 0.68611, 0.17208, 0, 0.88083],
86: [0, 0.68611, 0.18625, 0, 0.86555],
87: [0, 0.68611, 0.18625, 0, 1.15999],
88: [0, 0.68611, 0.15681, 0, 0.86555],
89: [0, 0.68611, 0.19803, 0, 0.86555],
90: [0, 0.68611, 0.14208, 0, 0.70888],
91: [0.25, 0.75, 0.1875, 0, 0.35611],
93: [0.25, 0.75, 0.09972, 0, 0.35611],
94: [0, 0.69444, 0.06709, 0, 0.59111],
95: [0.31, 0.13444, 0.09811, 0, 0.59111],
97: [0, 0.44444, 0.09426, 0, 0.59111],
98: [0, 0.69444, 0.07861, 0, 0.53222],
99: [0, 0.44444, 0.05222, 0, 0.53222],
100: [0, 0.69444, 0.10861, 0, 0.59111],
101: [0, 0.44444, 0.085, 0, 0.53222],
102: [0.19444, 0.69444, 0.21778, 0, 0.4],
103: [0.19444, 0.44444, 0.105, 0, 0.53222],
104: [0, 0.69444, 0.09426, 0, 0.59111],
105: [0, 0.69326, 0.11387, 0, 0.35555],
106: [0.19444, 0.69326, 0.1672, 0, 0.35555],
107: [0, 0.69444, 0.11111, 0, 0.53222],
108: [0, 0.69444, 0.10861, 0, 0.29666],
109: [0, 0.44444, 0.09426, 0, 0.94444],
110: [0, 0.44444, 0.09426, 0, 0.64999],
111: [0, 0.44444, 0.07861, 0, 0.59111],
112: [0.19444, 0.44444, 0.07861, 0, 0.59111],
113: [0.19444, 0.44444, 0.105, 0, 0.53222],
114: [0, 0.44444, 0.11111, 0, 0.50167],
115: [0, 0.44444, 0.08167, 0, 0.48694],
116: [0, 0.63492, 0.09639, 0, 0.385],
117: [0, 0.44444, 0.09426, 0, 0.62055],
118: [0, 0.44444, 0.11111, 0, 0.53222],
119: [0, 0.44444, 0.11111, 0, 0.76777],
120: [0, 0.44444, 0.12583, 0, 0.56055],
121: [0.19444, 0.44444, 0.105, 0, 0.56166],
122: [0, 0.44444, 0.13889, 0, 0.49055],
126: [0.35, 0.34444, 0.11472, 0, 0.59111],
160: [0, 0, 0, 0, 0.25],
168: [0, 0.69444, 0.11473, 0, 0.59111],
176: [0, 0.69444, 0, 0, 0.94888],
184: [0.17014, 0, 0, 0, 0.53222],
198: [0, 0.68611, 0.11431, 0, 1.02277],
216: [0.04861, 0.73472, 0.09062, 0, 0.88555],
223: [0.19444, 0.69444, 0.09736, 0, 0.665],
230: [0, 0.44444, 0.085, 0, 0.82666],
248: [0.09722, 0.54167, 0.09458, 0, 0.59111],
305: [0, 0.44444, 0.09426, 0, 0.35555],
338: [0, 0.68611, 0.11431, 0, 1.14054],
339: [0, 0.44444, 0.085, 0, 0.82666],
567: [0.19444, 0.44444, 0.04611, 0, 0.385],
710: [0, 0.69444, 0.06709, 0, 0.59111],
711: [0, 0.63194, 0.08271, 0, 0.59111],
713: [0, 0.59444, 0.10444, 0, 0.59111],
714: [0, 0.69444, 0.08528, 0, 0.59111],
715: [0, 0.69444, 0, 0, 0.59111],
728: [0, 0.69444, 0.10333, 0, 0.59111],
729: [0, 0.69444, 0.12945, 0, 0.35555],
730: [0, 0.69444, 0, 0, 0.94888],
732: [0, 0.69444, 0.11472, 0, 0.59111],
733: [0, 0.69444, 0.11472, 0, 0.59111],
915: [0, 0.68611, 0.12903, 0, 0.69777],
916: [0, 0.68611, 0, 0, 0.94444],
920: [0, 0.68611, 0.09062, 0, 0.88555],
923: [0, 0.68611, 0, 0, 0.80666],
926: [0, 0.68611, 0.15092, 0, 0.76777],
928: [0, 0.68611, 0.17208, 0, 0.8961],
931: [0, 0.68611, 0.11431, 0, 0.82666],
933: [0, 0.68611, 0.10778, 0, 0.88555],
934: [0, 0.68611, 0.05632, 0, 0.82666],
936: [0, 0.68611, 0.10778, 0, 0.88555],
937: [0, 0.68611, 0.0992, 0, 0.82666],
8211: [0, 0.44444, 0.09811, 0, 0.59111],
8212: [0, 0.44444, 0.09811, 0, 1.18221],
8216: [0, 0.69444, 0.12945, 0, 0.35555],
8217: [0, 0.69444, 0.12945, 0, 0.35555],
8220: [0, 0.69444, 0.16772, 0, 0.62055],
8221: [0, 0.69444, 0.07939, 0, 0.62055],
},
"Main-Italic": {
32: [0, 0, 0, 0, 0.25],
33: [0, 0.69444, 0.12417, 0, 0.30667],
34: [0, 0.69444, 0.06961, 0, 0.51444],
35: [0.19444, 0.69444, 0.06616, 0, 0.81777],
37: [0.05556, 0.75, 0.13639, 0, 0.81777],
38: [0, 0.69444, 0.09694, 0, 0.76666],
39: [0, 0.69444, 0.12417, 0, 0.30667],
40: [0.25, 0.75, 0.16194, 0, 0.40889],
41: [0.25, 0.75, 0.03694, 0, 0.40889],
42: [0, 0.75, 0.14917, 0, 0.51111],
43: [0.05667, 0.56167, 0.03694, 0, 0.76666],
44: [0.19444, 0.10556, 0, 0, 0.30667],
45: [0, 0.43056, 0.02826, 0, 0.35778],
46: [0, 0.10556, 0, 0, 0.30667],
47: [0.25, 0.75, 0.16194, 0, 0.51111],
48: [0, 0.64444, 0.13556, 0, 0.51111],
49: [0, 0.64444, 0.13556, 0, 0.51111],
50: [0, 0.64444, 0.13556, 0, 0.51111],
51: [0, 0.64444, 0.13556, 0, 0.51111],
52: [0.19444, 0.64444, 0.13556, 0, 0.51111],
53: [0, 0.64444, 0.13556, 0, 0.51111],
54: [0, 0.64444, 0.13556, 0, 0.51111],
55: [0.19444, 0.64444, 0.13556, 0, 0.51111],
56: [0, 0.64444, 0.13556, 0, 0.51111],
57: [0, 0.64444, 0.13556, 0, 0.51111],
58: [0, 0.43056, 0.0582, 0, 0.30667],
59: [0.19444, 0.43056, 0.0582, 0, 0.30667],
61: [-0.13313, 0.36687, 0.06616, 0, 0.76666],
63: [0, 0.69444, 0.1225, 0, 0.51111],
64: [0, 0.69444, 0.09597, 0, 0.76666],
65: [0, 0.68333, 0, 0, 0.74333],
66: [0, 0.68333, 0.10257, 0, 0.70389],
67: [0, 0.68333, 0.14528, 0, 0.71555],
68: [0, 0.68333, 0.09403, 0, 0.755],
69: [0, 0.68333, 0.12028, 0, 0.67833],
70: [0, 0.68333, 0.13305, 0, 0.65277],
71: [0, 0.68333, 0.08722, 0, 0.77361],
72: [0, 0.68333, 0.16389, 0, 0.74333],
73: [0, 0.68333, 0.15806, 0, 0.38555],
74: [0, 0.68333, 0.14028, 0, 0.525],
75: [0, 0.68333, 0.14528, 0, 0.76888],
76: [0, 0.68333, 0, 0, 0.62722],
77: [0, 0.68333, 0.16389, 0, 0.89666],
78: [0, 0.68333, 0.16389, 0, 0.74333],
79: [0, 0.68333, 0.09403, 0, 0.76666],
80: [0, 0.68333, 0.10257, 0, 0.67833],
81: [0.19444, 0.68333, 0.09403, 0, 0.76666],
82: [0, 0.68333, 0.03868, 0, 0.72944],
83: [0, 0.68333, 0.11972, 0, 0.56222],
84: [0, 0.68333, 0.13305, 0, 0.71555],
85: [0, 0.68333, 0.16389, 0, 0.74333],
86: [0, 0.68333, 0.18361, 0, 0.74333],
87: [0, 0.68333, 0.18361, 0, 0.99888],
88: [0, 0.68333, 0.15806, 0, 0.74333],
89: [0, 0.68333, 0.19383, 0, 0.74333],
90: [0, 0.68333, 0.14528, 0, 0.61333],
91: [0.25, 0.75, 0.1875, 0, 0.30667],
93: [0.25, 0.75, 0.10528, 0, 0.30667],
94: [0, 0.69444, 0.06646, 0, 0.51111],
95: [0.31, 0.12056, 0.09208, 0, 0.51111],
97: [0, 0.43056, 0.07671, 0, 0.51111],
98: [0, 0.69444, 0.06312, 0, 0.46],
99: [0, 0.43056, 0.05653, 0, 0.46],
100: [0, 0.69444, 0.10333, 0, 0.51111],
101: [0, 0.43056, 0.07514, 0, 0.46],
102: [0.19444, 0.69444, 0.21194, 0, 0.30667],
103: [0.19444, 0.43056, 0.08847, 0, 0.46],
104: [0, 0.69444, 0.07671, 0, 0.51111],
105: [0, 0.65536, 0.1019, 0, 0.30667],
106: [0.19444, 0.65536, 0.14467, 0, 0.30667],
107: [0, 0.69444, 0.10764, 0, 0.46],
108: [0, 0.69444, 0.10333, 0, 0.25555],
109: [0, 0.43056, 0.07671, 0, 0.81777],
110: [0, 0.43056, 0.07671, 0, 0.56222],
111: [0, 0.43056, 0.06312, 0, 0.51111],
112: [0.19444, 0.43056, 0.06312, 0, 0.51111],
113: [0.19444, 0.43056, 0.08847, 0, 0.46],
114: [0, 0.43056, 0.10764, 0, 0.42166],
115: [0, 0.43056, 0.08208, 0, 0.40889],
116: [0, 0.61508, 0.09486, 0, 0.33222],
117: [0, 0.43056, 0.07671, 0, 0.53666],
118: [0, 0.43056, 0.10764, 0, 0.46],
119: [0, 0.43056, 0.10764, 0, 0.66444],
120: [0, 0.43056, 0.12042, 0, 0.46389],
121: [0.19444, 0.43056, 0.08847, 0, 0.48555],
122: [0, 0.43056, 0.12292, 0, 0.40889],
126: [0.35, 0.31786, 0.11585, 0, 0.51111],
160: [0, 0, 0, 0, 0.25],
168: [0, 0.66786, 0.10474, 0, 0.51111],
176: [0, 0.69444, 0, 0, 0.83129],
184: [0.17014, 0, 0, 0, 0.46],
198: [0, 0.68333, 0.12028, 0, 0.88277],
216: [0.04861, 0.73194, 0.09403, 0, 0.76666],
223: [0.19444, 0.69444, 0.10514, 0, 0.53666],
230: [0, 0.43056, 0.07514, 0, 0.71555],
248: [0.09722, 0.52778, 0.09194, 0, 0.51111],
338: [0, 0.68333, 0.12028, 0, 0.98499],
339: [0, 0.43056, 0.07514, 0, 0.71555],
710: [0, 0.69444, 0.06646, 0, 0.51111],
711: [0, 0.62847, 0.08295, 0, 0.51111],
713: [0, 0.56167, 0.10333, 0, 0.51111],
714: [0, 0.69444, 0.09694, 0, 0.51111],
715: [0, 0.69444, 0, 0, 0.51111],
728: [0, 0.69444, 0.10806, 0, 0.51111],
729: [0, 0.66786, 0.11752, 0, 0.30667],
730: [0, 0.69444, 0, 0, 0.83129],
732: [0, 0.66786, 0.11585, 0, 0.51111],
733: [0, 0.69444, 0.1225, 0, 0.51111],
915: [0, 0.68333, 0.13305, 0, 0.62722],
916: [0, 0.68333, 0, 0, 0.81777],
920: [0, 0.68333, 0.09403, 0, 0.76666],
923: [0, 0.68333, 0, 0, 0.69222],
926: [0, 0.68333, 0.15294, 0, 0.66444],
928: [0, 0.68333, 0.16389, 0, 0.74333],
931: [0, 0.68333, 0.12028, 0, 0.71555],
933: [0, 0.68333, 0.11111, 0, 0.76666],
934: [0, 0.68333, 0.05986, 0, 0.71555],
936: [0, 0.68333, 0.11111, 0, 0.76666],
937: [0, 0.68333, 0.10257, 0, 0.71555],
8211: [0, 0.43056, 0.09208, 0, 0.51111],
8212: [0, 0.43056, 0.09208, 0, 1.02222],
8216: [0, 0.69444, 0.12417, 0, 0.30667],
8217: [0, 0.69444, 0.12417, 0, 0.30667],
8220: [0, 0.69444, 0.1685, 0, 0.51444],
8221: [0, 0.69444, 0.06961, 0, 0.51444],
8463: [0, 0.68889, 0, 0, 0.54028],
},
"Main-Regular": {
32: [0, 0, 0, 0, 0.25],
33: [0, 0.69444, 0, 0, 0.27778],
34: [0, 0.69444, 0, 0, 0.5],
35: [0.19444, 0.69444, 0, 0, 0.83334],
36: [0.05556, 0.75, 0, 0, 0.5],
37: [0.05556, 0.75, 0, 0, 0.83334],
38: [0, 0.69444, 0, 0, 0.77778],
39: [0, 0.69444, 0, 0, 0.27778],
40: [0.25, 0.75, 0, 0, 0.38889],
41: [0.25, 0.75, 0, 0, 0.38889],
42: [0, 0.75, 0, 0, 0.5],
43: [0.08333, 0.58333, 0, 0, 0.77778],
44: [0.19444, 0.10556, 0, 0, 0.27778],
45: [0, 0.43056, 0, 0, 0.33333],
46: [0, 0.10556, 0, 0, 0.27778],
47: [0.25, 0.75, 0, 0, 0.5],
48: [0, 0.64444, 0, 0, 0.5],
49: [0, 0.64444, 0, 0, 0.5],
50: [0, 0.64444, 0, 0, 0.5],
51: [0, 0.64444, 0, 0, 0.5],
52: [0, 0.64444, 0, 0, 0.5],
53: [0, 0.64444, 0, 0, 0.5],
54: [0, 0.64444, 0, 0, 0.5],
55: [0, 0.64444, 0, 0, 0.5],
56: [0, 0.64444, 0, 0, 0.5],
57: [0, 0.64444, 0, 0, 0.5],
58: [0, 0.43056, 0, 0, 0.27778],
59: [0.19444, 0.43056, 0, 0, 0.27778],
60: [0.0391, 0.5391, 0, 0, 0.77778],
61: [-0.13313, 0.36687, 0, 0, 0.77778],
62: [0.0391, 0.5391, 0, 0, 0.77778],
63: [0, 0.69444, 0, 0, 0.47222],
64: [0, 0.69444, 0, 0, 0.77778],
65: [0, 0.68333, 0, 0, 0.75],
66: [0, 0.68333, 0, 0, 0.70834],
67: [0, 0.68333, 0, 0, 0.72222],
68: [0, 0.68333, 0, 0, 0.76389],
69: [0, 0.68333, 0, 0, 0.68056],
70: [0, 0.68333, 0, 0, 0.65278],
71: [0, 0.68333, 0, 0, 0.78472],
72: [0, 0.68333, 0, 0, 0.75],
73: [0, 0.68333, 0, 0, 0.36111],
74: [0, 0.68333, 0, 0, 0.51389],
75: [0, 0.68333, 0, 0, 0.77778],
76: [0, 0.68333, 0, 0, 0.625],
77: [0, 0.68333, 0, 0, 0.91667],
78: [0, 0.68333, 0, 0, 0.75],
79: [0, 0.68333, 0, 0, 0.77778],
80: [0, 0.68333, 0, 0, 0.68056],
81: [0.19444, 0.68333, 0, 0, 0.77778],
82: [0, 0.68333, 0, 0, 0.73611],
83: [0, 0.68333, 0, 0, 0.55556],
84: [0, 0.68333, 0, 0, 0.72222],
85: [0, 0.68333, 0, 0, 0.75],
86: [0, 0.68333, 0.01389, 0, 0.75],
87: [0, 0.68333, 0.01389, 0, 1.02778],
88: [0, 0.68333, 0, 0, 0.75],
89: [0, 0.68333, 0.025, 0, 0.75],
90: [0, 0.68333, 0, 0, 0.61111],
91: [0.25, 0.75, 0, 0, 0.27778],
92: [0.25, 0.75, 0, 0, 0.5],
93: [0.25, 0.75, 0, 0, 0.27778],
94: [0, 0.69444, 0, 0, 0.5],
95: [0.31, 0.12056, 0.02778, 0, 0.5],
97: [0, 0.43056, 0, 0, 0.5],
98: [0, 0.69444, 0, 0, 0.55556],
99: [0, 0.43056, 0, 0, 0.44445],
100: [0, 0.69444, 0, 0, 0.55556],
101: [0, 0.43056, 0, 0, 0.44445],
102: [0, 0.69444, 0.07778, 0, 0.30556],
103: [0.19444, 0.43056, 0.01389, 0, 0.5],
104: [0, 0.69444, 0, 0, 0.55556],
105: [0, 0.66786, 0, 0, 0.27778],
106: [0.19444, 0.66786, 0, 0, 0.30556],
107: [0, 0.69444, 0, 0, 0.52778],
108: [0, 0.69444, 0, 0, 0.27778],
109: [0, 0.43056, 0, 0, 0.83334],
110: [0, 0.43056, 0, 0, 0.55556],
111: [0, 0.43056, 0, 0, 0.5],
112: [0.19444, 0.43056, 0, 0, 0.55556],
113: [0.19444, 0.43056, 0, 0, 0.52778],
114: [0, 0.43056, 0, 0, 0.39167],
115: [0, 0.43056, 0, 0, 0.39445],
116: [0, 0.61508, 0, 0, 0.38889],
117: [0, 0.43056, 0, 0, 0.55556],
118: [0, 0.43056, 0.01389, 0, 0.52778],
119: [0, 0.43056, 0.01389, 0, 0.72222],
120: [0, 0.43056, 0, 0, 0.52778],
121: [0.19444, 0.43056, 0.01389, 0, 0.52778],
122: [0, 0.43056, 0, 0, 0.44445],
123: [0.25, 0.75, 0, 0, 0.5],
124: [0.25, 0.75, 0, 0, 0.27778],
125: [0.25, 0.75, 0, 0, 0.5],
126: [0.35, 0.31786, 0, 0, 0.5],
160: [0, 0, 0, 0, 0.25],
163: [0, 0.69444, 0, 0, 0.76909],
167: [0.19444, 0.69444, 0, 0, 0.44445],
168: [0, 0.66786, 0, 0, 0.5],
172: [0, 0.43056, 0, 0, 0.66667],
176: [0, 0.69444, 0, 0, 0.75],
177: [0.08333, 0.58333, 0, 0, 0.77778],
182: [0.19444, 0.69444, 0, 0, 0.61111],
184: [0.17014, 0, 0, 0, 0.44445],
198: [0, 0.68333, 0, 0, 0.90278],
215: [0.08333, 0.58333, 0, 0, 0.77778],
216: [0.04861, 0.73194, 0, 0, 0.77778],
223: [0, 0.69444, 0, 0, 0.5],
230: [0, 0.43056, 0, 0, 0.72222],
247: [0.08333, 0.58333, 0, 0, 0.77778],
248: [0.09722, 0.52778, 0, 0, 0.5],
305: [0, 0.43056, 0, 0, 0.27778],
338: [0, 0.68333, 0, 0, 1.01389],
339: [0, 0.43056, 0, 0, 0.77778],
567: [0.19444, 0.43056, 0, 0, 0.30556],
710: [0, 0.69444, 0, 0, 0.5],
711: [0, 0.62847, 0, 0, 0.5],
713: [0, 0.56778, 0, 0, 0.5],
714: [0, 0.69444, 0, 0, 0.5],
715: [0, 0.69444, 0, 0, 0.5],
728: [0, 0.69444, 0, 0, 0.5],
729: [0, 0.66786, 0, 0, 0.27778],
730: [0, 0.69444, 0, 0, 0.75],
732: [0, 0.66786, 0, 0, 0.5],
733: [0, 0.69444, 0, 0, 0.5],
915: [0, 0.68333, 0, 0, 0.625],
916: [0, 0.68333, 0, 0, 0.83334],
920: [0, 0.68333, 0, 0, 0.77778],
923: [0, 0.68333, 0, 0, 0.69445],
926: [0, 0.68333, 0, 0, 0.66667],
928: [0, 0.68333, 0, 0, 0.75],
931: [0, 0.68333, 0, 0, 0.72222],
933: [0, 0.68333, 0, 0, 0.77778],
934: [0, 0.68333, 0, 0, 0.72222],
936: [0, 0.68333, 0, 0, 0.77778],
937: [0, 0.68333, 0, 0, 0.72222],
8211: [0, 0.43056, 0.02778, 0, 0.5],
8212: [0, 0.43056, 0.02778, 0, 1],
8216: [0, 0.69444, 0, 0, 0.27778],
8217: [0, 0.69444, 0, 0, 0.27778],
8220: [0, 0.69444, 0, 0, 0.5],
8221: [0, 0.69444, 0, 0, 0.5],
8224: [0.19444, 0.69444, 0, 0, 0.44445],
8225: [0.19444, 0.69444, 0, 0, 0.44445],
8230: [0, 0.123, 0, 0, 1.172],
8242: [0, 0.55556, 0, 0, 0.275],
8407: [0, 0.71444, 0.15382, 0, 0.5],
8463: [0, 0.68889, 0, 0, 0.54028],
8465: [0, 0.69444, 0, 0, 0.72222],
8467: [0, 0.69444, 0, 0.11111, 0.41667],
8472: [0.19444, 0.43056, 0, 0.11111, 0.63646],
8476: [0, 0.69444, 0, 0, 0.72222],
8501: [0, 0.69444, 0, 0, 0.61111],
8592: [-0.13313, 0.36687, 0, 0, 1],
8593: [0.19444, 0.69444, 0, 0, 0.5],
8594: [-0.13313, 0.36687, 0, 0, 1],
8595: [0.19444, 0.69444, 0, 0, 0.5],
8596: [-0.13313, 0.36687, 0, 0, 1],
8597: [0.25, 0.75, 0, 0, 0.5],
8598: [0.19444, 0.69444, 0, 0, 1],
8599: [0.19444, 0.69444, 0, 0, 1],
8600: [0.19444, 0.69444, 0, 0, 1],
8601: [0.19444, 0.69444, 0, 0, 1],
8614: [0.011, 0.511, 0, 0, 1],
8617: [0.011, 0.511, 0, 0, 1.126],
8618: [0.011, 0.511, 0, 0, 1.126],
8636: [-0.13313, 0.36687, 0, 0, 1],
8637: [-0.13313, 0.36687, 0, 0, 1],
8640: [-0.13313, 0.36687, 0, 0, 1],
8641: [-0.13313, 0.36687, 0, 0, 1],
8652: [0.011, 0.671, 0, 0, 1],
8656: [-0.13313, 0.36687, 0, 0, 1],
8657: [0.19444, 0.69444, 0, 0, 0.61111],
8658: [-0.13313, 0.36687, 0, 0, 1],
8659: [0.19444, 0.69444, 0, 0, 0.61111],
8660: [-0.13313, 0.36687, 0, 0, 1],
8661: [0.25, 0.75, 0, 0, 0.61111],
8704: [0, 0.69444, 0, 0, 0.55556],
8706: [0, 0.69444, 0.05556, 0.08334, 0.5309],
8707: [0, 0.69444, 0, 0, 0.55556],
8709: [0.05556, 0.75, 0, 0, 0.5],
8711: [0, 0.68333, 0, 0, 0.83334],
8712: [0.0391, 0.5391, 0, 0, 0.66667],
8715: [0.0391, 0.5391, 0, 0, 0.66667],
8722: [0.08333, 0.58333, 0, 0, 0.77778],
8723: [0.08333, 0.58333, 0, 0, 0.77778],
8725: [0.25, 0.75, 0, 0, 0.5],
8726: [0.25, 0.75, 0, 0, 0.5],
8727: [-0.03472, 0.46528, 0, 0, 0.5],
8728: [-0.05555, 0.44445, 0, 0, 0.5],
8729: [-0.05555, 0.44445, 0, 0, 0.5],
8730: [0.2, 0.8, 0, 0, 0.83334],
8733: [0, 0.43056, 0, 0, 0.77778],
8734: [0, 0.43056, 0, 0, 1],
8736: [0, 0.69224, 0, 0, 0.72222],
8739: [0.25, 0.75, 0, 0, 0.27778],
8741: [0.25, 0.75, 0, 0, 0.5],
8743: [0, 0.55556, 0, 0, 0.66667],
8744: [0, 0.55556, 0, 0, 0.66667],
8745: [0, 0.55556, 0, 0, 0.66667],
8746: [0, 0.55556, 0, 0, 0.66667],
8747: [0.19444, 0.69444, 0.11111, 0, 0.41667],
8764: [-0.13313, 0.36687, 0, 0, 0.77778],
8768: [0.19444, 0.69444, 0, 0, 0.27778],
8771: [-0.03625, 0.46375, 0, 0, 0.77778],
8773: [-0.022, 0.589, 0, 0, 0.778],
8776: [-0.01688, 0.48312, 0, 0, 0.77778],
8781: [-0.03625, 0.46375, 0, 0, 0.77778],
8784: [-0.133, 0.673, 0, 0, 0.778],
8801: [-0.03625, 0.46375, 0, 0, 0.77778],
8804: [0.13597, 0.63597, 0, 0, 0.77778],
8805: [0.13597, 0.63597, 0, 0, 0.77778],
8810: [0.0391, 0.5391, 0, 0, 1],
8811: [0.0391, 0.5391, 0, 0, 1],
8826: [0.0391, 0.5391, 0, 0, 0.77778],
8827: [0.0391, 0.5391, 0, 0, 0.77778],
8834: [0.0391, 0.5391, 0, 0, 0.77778],
8835: [0.0391, 0.5391, 0, 0, 0.77778],
8838: [0.13597, 0.63597, 0, 0, 0.77778],
8839: [0.13597, 0.63597, 0, 0, 0.77778],
8846: [0, 0.55556, 0, 0, 0.66667],
8849: [0.13597, 0.63597, 0, 0, 0.77778],
8850: [0.13597, 0.63597, 0, 0, 0.77778],
8851: [0, 0.55556, 0, 0, 0.66667],
8852: [0, 0.55556, 0, 0, 0.66667],
8853: [0.08333, 0.58333, 0, 0, 0.77778],
8854: [0.08333, 0.58333, 0, 0, 0.77778],
8855: [0.08333, 0.58333, 0, 0, 0.77778],
8856: [0.08333, 0.58333, 0, 0, 0.77778],
8857: [0.08333, 0.58333, 0, 0, 0.77778],
8866: [0, 0.69444, 0, 0, 0.61111],
8867: [0, 0.69444, 0, 0, 0.61111],
8868: [0, 0.69444, 0, 0, 0.77778],
8869: [0, 0.69444, 0, 0, 0.77778],
8872: [0.249, 0.75, 0, 0, 0.867],
8900: [-0.05555, 0.44445, 0, 0, 0.5],
8901: [-0.05555, 0.44445, 0, 0, 0.27778],
8902: [-0.03472, 0.46528, 0, 0, 0.5],
8904: [0.005, 0.505, 0, 0, 0.9],
8942: [0.03, 0.903, 0, 0, 0.278],
8943: [-0.19, 0.313, 0, 0, 1.172],
8945: [-0.1, 0.823, 0, 0, 1.282],
8968: [0.25, 0.75, 0, 0, 0.44445],
8969: [0.25, 0.75, 0, 0, 0.44445],
8970: [0.25, 0.75, 0, 0, 0.44445],
8971: [0.25, 0.75, 0, 0, 0.44445],
8994: [-0.14236, 0.35764, 0, 0, 1],
8995: [-0.14236, 0.35764, 0, 0, 1],
9136: [0.244, 0.744, 0, 0, 0.412],
9137: [0.244, 0.745, 0, 0, 0.412],
9651: [0.19444, 0.69444, 0, 0, 0.88889],
9657: [-0.03472, 0.46528, 0, 0, 0.5],
9661: [0.19444, 0.69444, 0, 0, 0.88889],
9667: [-0.03472, 0.46528, 0, 0, 0.5],
9711: [0.19444, 0.69444, 0, 0, 1],
9824: [0.12963, 0.69444, 0, 0, 0.77778],
9825: [0.12963, 0.69444, 0, 0, 0.77778],
9826: [0.12963, 0.69444, 0, 0, 0.77778],
9827: [0.12963, 0.69444, 0, 0, 0.77778],
9837: [0, 0.75, 0, 0, 0.38889],
9838: [0.19444, 0.69444, 0, 0, 0.38889],
9839: [0.19444, 0.69444, 0, 0, 0.38889],
10216: [0.25, 0.75, 0, 0, 0.38889],
10217: [0.25, 0.75, 0, 0, 0.38889],
10222: [0.244, 0.744, 0, 0, 0.412],
10223: [0.244, 0.745, 0, 0, 0.412],
10229: [0.011, 0.511, 0, 0, 1.609],
10230: [0.011, 0.511, 0, 0, 1.638],
10231: [0.011, 0.511, 0, 0, 1.859],
10232: [0.024, 0.525, 0, 0, 1.609],
10233: [0.024, 0.525, 0, 0, 1.638],
10234: [0.024, 0.525, 0, 0, 1.858],
10236: [0.011, 0.511, 0, 0, 1.638],
10815: [0, 0.68333, 0, 0, 0.75],
10927: [0.13597, 0.63597, 0, 0, 0.77778],
10928: [0.13597, 0.63597, 0, 0, 0.77778],
57376: [0.19444, 0.69444, 0, 0, 0],
},
"Math-BoldItalic": {
32: [0, 0, 0, 0, 0.25],
48: [0, 0.44444, 0, 0, 0.575],
49: [0, 0.44444, 0, 0, 0.575],
50: [0, 0.44444, 0, 0, 0.575],
51: [0.19444, 0.44444, 0, 0, 0.575],
52: [0.19444, 0.44444, 0, 0, 0.575],
53: [0.19444, 0.44444, 0, 0, 0.575],
54: [0, 0.64444, 0, 0, 0.575],
55: [0.19444, 0.44444, 0, 0, 0.575],
56: [0, 0.64444, 0, 0, 0.575],
57: [0.19444, 0.44444, 0, 0, 0.575],
65: [0, 0.68611, 0, 0, 0.86944],
66: [0, 0.68611, 0.04835, 0, 0.8664],
67: [0, 0.68611, 0.06979, 0, 0.81694],
68: [0, 0.68611, 0.03194, 0, 0.93812],
69: [0, 0.68611, 0.05451, 0, 0.81007],
70: [0, 0.68611, 0.15972, 0, 0.68889],
71: [0, 0.68611, 0, 0, 0.88673],
72: [0, 0.68611, 0.08229, 0, 0.98229],
73: [0, 0.68611, 0.07778, 0, 0.51111],
74: [0, 0.68611, 0.10069, 0, 0.63125],
75: [0, 0.68611, 0.06979, 0, 0.97118],
76: [0, 0.68611, 0, 0, 0.75555],
77: [0, 0.68611, 0.11424, 0, 1.14201],
78: [0, 0.68611, 0.11424, 0, 0.95034],
79: [0, 0.68611, 0.03194, 0, 0.83666],
80: [0, 0.68611, 0.15972, 0, 0.72309],
81: [0.19444, 0.68611, 0, 0, 0.86861],
82: [0, 0.68611, 0.00421, 0, 0.87235],
83: [0, 0.68611, 0.05382, 0, 0.69271],
84: [0, 0.68611, 0.15972, 0, 0.63663],
85: [0, 0.68611, 0.11424, 0, 0.80027],
86: [0, 0.68611, 0.25555, 0, 0.67778],
87: [0, 0.68611, 0.15972, 0, 1.09305],
88: [0, 0.68611, 0.07778, 0, 0.94722],
89: [0, 0.68611, 0.25555, 0, 0.67458],
90: [0, 0.68611, 0.06979, 0, 0.77257],
97: [0, 0.44444, 0, 0, 0.63287],
98: [0, 0.69444, 0, 0, 0.52083],
99: [0, 0.44444, 0, 0, 0.51342],
100: [0, 0.69444, 0, 0, 0.60972],
101: [0, 0.44444, 0, 0, 0.55361],
102: [0.19444, 0.69444, 0.11042, 0, 0.56806],
103: [0.19444, 0.44444, 0.03704, 0, 0.5449],
104: [0, 0.69444, 0, 0, 0.66759],
105: [0, 0.69326, 0, 0, 0.4048],
106: [0.19444, 0.69326, 0.0622, 0, 0.47083],
107: [0, 0.69444, 0.01852, 0, 0.6037],
108: [0, 0.69444, 0.0088, 0, 0.34815],
109: [0, 0.44444, 0, 0, 1.0324],
110: [0, 0.44444, 0, 0, 0.71296],
111: [0, 0.44444, 0, 0, 0.58472],
112: [0.19444, 0.44444, 0, 0, 0.60092],
113: [0.19444, 0.44444, 0.03704, 0, 0.54213],
114: [0, 0.44444, 0.03194, 0, 0.5287],
115: [0, 0.44444, 0, 0, 0.53125],
116: [0, 0.63492, 0, 0, 0.41528],
117: [0, 0.44444, 0, 0, 0.68102],
118: [0, 0.44444, 0.03704, 0, 0.56666],
119: [0, 0.44444, 0.02778, 0, 0.83148],
120: [0, 0.44444, 0, 0, 0.65903],
121: [0.19444, 0.44444, 0.03704, 0, 0.59028],
122: [0, 0.44444, 0.04213, 0, 0.55509],
160: [0, 0, 0, 0, 0.25],
915: [0, 0.68611, 0.15972, 0, 0.65694],
916: [0, 0.68611, 0, 0, 0.95833],
920: [0, 0.68611, 0.03194, 0, 0.86722],
923: [0, 0.68611, 0, 0, 0.80555],
926: [0, 0.68611, 0.07458, 0, 0.84125],
928: [0, 0.68611, 0.08229, 0, 0.98229],
931: [0, 0.68611, 0.05451, 0, 0.88507],
933: [0, 0.68611, 0.15972, 0, 0.67083],
934: [0, 0.68611, 0, 0, 0.76666],
936: [0, 0.68611, 0.11653, 0, 0.71402],
937: [0, 0.68611, 0.04835, 0, 0.8789],
945: [0, 0.44444, 0, 0, 0.76064],
946: [0.19444, 0.69444, 0.03403, 0, 0.65972],
947: [0.19444, 0.44444, 0.06389, 0, 0.59003],
948: [0, 0.69444, 0.03819, 0, 0.52222],
949: [0, 0.44444, 0, 0, 0.52882],
950: [0.19444, 0.69444, 0.06215, 0, 0.50833],
951: [0.19444, 0.44444, 0.03704, 0, 0.6],
952: [0, 0.69444, 0.03194, 0, 0.5618],
953: [0, 0.44444, 0, 0, 0.41204],
954: [0, 0.44444, 0, 0, 0.66759],
955: [0, 0.69444, 0, 0, 0.67083],
956: [0.19444, 0.44444, 0, 0, 0.70787],
957: [0, 0.44444, 0.06898, 0, 0.57685],
958: [0.19444, 0.69444, 0.03021, 0, 0.50833],
959: [0, 0.44444, 0, 0, 0.58472],
960: [0, 0.44444, 0.03704, 0, 0.68241],
961: [0.19444, 0.44444, 0, 0, 0.6118],
962: [0.09722, 0.44444, 0.07917, 0, 0.42361],
963: [0, 0.44444, 0.03704, 0, 0.68588],
964: [0, 0.44444, 0.13472, 0, 0.52083],
965: [0, 0.44444, 0.03704, 0, 0.63055],
966: [0.19444, 0.44444, 0, 0, 0.74722],
967: [0.19444, 0.44444, 0, 0, 0.71805],
968: [0.19444, 0.69444, 0.03704, 0, 0.75833],
969: [0, 0.44444, 0.03704, 0, 0.71782],
977: [0, 0.69444, 0, 0, 0.69155],
981: [0.19444, 0.69444, 0, 0, 0.7125],
982: [0, 0.44444, 0.03194, 0, 0.975],
1009: [0.19444, 0.44444, 0, 0, 0.6118],
1013: [0, 0.44444, 0, 0, 0.48333],
57649: [0, 0.44444, 0, 0, 0.39352],
57911: [0.19444, 0.44444, 0, 0, 0.43889],
},
"Math-Italic": {
32: [0, 0, 0, 0, 0.25],
48: [0, 0.43056, 0, 0, 0.5],
49: [0, 0.43056, 0, 0, 0.5],
50: [0, 0.43056, 0, 0, 0.5],
51: [0.19444, 0.43056, 0, 0, 0.5],
52: [0.19444, 0.43056, 0, 0, 0.5],
53: [0.19444, 0.43056, 0, 0, 0.5],
54: [0, 0.64444, 0, 0, 0.5],
55: [0.19444, 0.43056, 0, 0, 0.5],
56: [0, 0.64444, 0, 0, 0.5],
57: [0.19444, 0.43056, 0, 0, 0.5],
65: [0, 0.68333, 0, 0.13889, 0.75],
66: [0, 0.68333, 0.05017, 0.08334, 0.75851],
67: [0, 0.68333, 0.07153, 0.08334, 0.71472],
68: [0, 0.68333, 0.02778, 0.05556, 0.82792],
69: [0, 0.68333, 0.05764, 0.08334, 0.7382],
70: [0, 0.68333, 0.13889, 0.08334, 0.64306],
71: [0, 0.68333, 0, 0.08334, 0.78625],
72: [0, 0.68333, 0.08125, 0.05556, 0.83125],
73: [0, 0.68333, 0.07847, 0.11111, 0.43958],
74: [0, 0.68333, 0.09618, 0.16667, 0.55451],
75: [0, 0.68333, 0.07153, 0.05556, 0.84931],
76: [0, 0.68333, 0, 0.02778, 0.68056],
77: [0, 0.68333, 0.10903, 0.08334, 0.97014],
78: [0, 0.68333, 0.10903, 0.08334, 0.80347],
79: [0, 0.68333, 0.02778, 0.08334, 0.76278],
80: [0, 0.68333, 0.13889, 0.08334, 0.64201],
81: [0.19444, 0.68333, 0, 0.08334, 0.79056],
82: [0, 0.68333, 0.00773, 0.08334, 0.75929],
83: [0, 0.68333, 0.05764, 0.08334, 0.6132],
84: [0, 0.68333, 0.13889, 0.08334, 0.58438],
85: [0, 0.68333, 0.10903, 0.02778, 0.68278],
86: [0, 0.68333, 0.22222, 0, 0.58333],
87: [0, 0.68333, 0.13889, 0, 0.94445],
88: [0, 0.68333, 0.07847, 0.08334, 0.82847],
89: [0, 0.68333, 0.22222, 0, 0.58056],
90: [0, 0.68333, 0.07153, 0.08334, 0.68264],
97: [0, 0.43056, 0, 0, 0.52859],
98: [0, 0.69444, 0, 0, 0.42917],
99: [0, 0.43056, 0, 0.05556, 0.43276],
100: [0, 0.69444, 0, 0.16667, 0.52049],
101: [0, 0.43056, 0, 0.05556, 0.46563],
102: [0.19444, 0.69444, 0.10764, 0.16667, 0.48959],
103: [0.19444, 0.43056, 0.03588, 0.02778, 0.47697],
104: [0, 0.69444, 0, 0, 0.57616],
105: [0, 0.65952, 0, 0, 0.34451],
106: [0.19444, 0.65952, 0.05724, 0, 0.41181],
107: [0, 0.69444, 0.03148, 0, 0.5206],
108: [0, 0.69444, 0.01968, 0.08334, 0.29838],
109: [0, 0.43056, 0, 0, 0.87801],
110: [0, 0.43056, 0, 0, 0.60023],
111: [0, 0.43056, 0, 0.05556, 0.48472],
112: [0.19444, 0.43056, 0, 0.08334, 0.50313],
113: [0.19444, 0.43056, 0.03588, 0.08334, 0.44641],
114: [0, 0.43056, 0.02778, 0.05556, 0.45116],
115: [0, 0.43056, 0, 0.05556, 0.46875],
116: [0, 0.61508, 0, 0.08334, 0.36111],
117: [0, 0.43056, 0, 0.02778, 0.57246],
118: [0, 0.43056, 0.03588, 0.02778, 0.48472],
119: [0, 0.43056, 0.02691, 0.08334, 0.71592],
120: [0, 0.43056, 0, 0.02778, 0.57153],
121: [0.19444, 0.43056, 0.03588, 0.05556, 0.49028],
122: [0, 0.43056, 0.04398, 0.05556, 0.46505],
160: [0, 0, 0, 0, 0.25],
915: [0, 0.68333, 0.13889, 0.08334, 0.61528],
916: [0, 0.68333, 0, 0.16667, 0.83334],
920: [0, 0.68333, 0.02778, 0.08334, 0.76278],
923: [0, 0.68333, 0, 0.16667, 0.69445],
926: [0, 0.68333, 0.07569, 0.08334, 0.74236],
928: [0, 0.68333, 0.08125, 0.05556, 0.83125],
931: [0, 0.68333, 0.05764, 0.08334, 0.77986],
933: [0, 0.68333, 0.13889, 0.05556, 0.58333],
934: [0, 0.68333, 0, 0.08334, 0.66667],
936: [0, 0.68333, 0.11, 0.05556, 0.61222],
937: [0, 0.68333, 0.05017, 0.08334, 0.7724],
945: [0, 0.43056, 0.0037, 0.02778, 0.6397],
946: [0.19444, 0.69444, 0.05278, 0.08334, 0.56563],
947: [0.19444, 0.43056, 0.05556, 0, 0.51773],
948: [0, 0.69444, 0.03785, 0.05556, 0.44444],
949: [0, 0.43056, 0, 0.08334, 0.46632],
950: [0.19444, 0.69444, 0.07378, 0.08334, 0.4375],
951: [0.19444, 0.43056, 0.03588, 0.05556, 0.49653],
952: [0, 0.69444, 0.02778, 0.08334, 0.46944],
953: [0, 0.43056, 0, 0.05556, 0.35394],
954: [0, 0.43056, 0, 0, 0.57616],
955: [0, 0.69444, 0, 0, 0.58334],
956: [0.19444, 0.43056, 0, 0.02778, 0.60255],
957: [0, 0.43056, 0.06366, 0.02778, 0.49398],
958: [0.19444, 0.69444, 0.04601, 0.11111, 0.4375],
959: [0, 0.43056, 0, 0.05556, 0.48472],
960: [0, 0.43056, 0.03588, 0, 0.57003],
961: [0.19444, 0.43056, 0, 0.08334, 0.51702],
962: [0.09722, 0.43056, 0.07986, 0.08334, 0.36285],
963: [0, 0.43056, 0.03588, 0, 0.57141],
964: [0, 0.43056, 0.1132, 0.02778, 0.43715],
965: [0, 0.43056, 0.03588, 0.02778, 0.54028],
966: [0.19444, 0.43056, 0, 0.08334, 0.65417],
967: [0.19444, 0.43056, 0, 0.05556, 0.62569],
968: [0.19444, 0.69444, 0.03588, 0.11111, 0.65139],
969: [0, 0.43056, 0.03588, 0, 0.62245],
977: [0, 0.69444, 0, 0.08334, 0.59144],
981: [0.19444, 0.69444, 0, 0.08334, 0.59583],
982: [0, 0.43056, 0.02778, 0, 0.82813],
1009: [0.19444, 0.43056, 0, 0.08334, 0.51702],
1013: [0, 0.43056, 0, 0.05556, 0.4059],
57649: [0, 0.43056, 0, 0.02778, 0.32246],
57911: [0.19444, 0.43056, 0, 0.08334, 0.38403],
},
"SansSerif-Bold": {
32: [0, 0, 0, 0, 0.25],
33: [0, 0.69444, 0, 0, 0.36667],
34: [0, 0.69444, 0, 0, 0.55834],
35: [0.19444, 0.69444, 0, 0, 0.91667],
36: [0.05556, 0.75, 0, 0, 0.55],
37: [0.05556, 0.75, 0, 0, 1.02912],
38: [0, 0.69444, 0, 0, 0.83056],
39: [0, 0.69444, 0, 0, 0.30556],
40: [0.25, 0.75, 0, 0, 0.42778],
41: [0.25, 0.75, 0, 0, 0.42778],
42: [0, 0.75, 0, 0, 0.55],
43: [0.11667, 0.61667, 0, 0, 0.85556],
44: [0.10556, 0.13056, 0, 0, 0.30556],
45: [0, 0.45833, 0, 0, 0.36667],
46: [0, 0.13056, 0, 0, 0.30556],
47: [0.25, 0.75, 0, 0, 0.55],
48: [0, 0.69444, 0, 0, 0.55],
49: [0, 0.69444, 0, 0, 0.55],
50: [0, 0.69444, 0, 0, 0.55],
51: [0, 0.69444, 0, 0, 0.55],
52: [0, 0.69444, 0, 0, 0.55],
53: [0, 0.69444, 0, 0, 0.55],
54: [0, 0.69444, 0, 0, 0.55],
55: [0, 0.69444, 0, 0, 0.55],
56: [0, 0.69444, 0, 0, 0.55],
57: [0, 0.69444, 0, 0, 0.55],
58: [0, 0.45833, 0, 0, 0.30556],
59: [0.10556, 0.45833, 0, 0, 0.30556],
61: [-0.09375, 0.40625, 0, 0, 0.85556],
63: [0, 0.69444, 0, 0, 0.51945],
64: [0, 0.69444, 0, 0, 0.73334],
65: [0, 0.69444, 0, 0, 0.73334],
66: [0, 0.69444, 0, 0, 0.73334],
67: [0, 0.69444, 0, 0, 0.70278],
68: [0, 0.69444, 0, 0, 0.79445],
69: [0, 0.69444, 0, 0, 0.64167],
70: [0, 0.69444, 0, 0, 0.61111],
71: [0, 0.69444, 0, 0, 0.73334],
72: [0, 0.69444, 0, 0, 0.79445],
73: [0, 0.69444, 0, 0, 0.33056],
74: [0, 0.69444, 0, 0, 0.51945],
75: [0, 0.69444, 0, 0, 0.76389],
76: [0, 0.69444, 0, 0, 0.58056],
77: [0, 0.69444, 0, 0, 0.97778],
78: [0, 0.69444, 0, 0, 0.79445],
79: [0, 0.69444, 0, 0, 0.79445],
80: [0, 0.69444, 0, 0, 0.70278],
81: [0.10556, 0.69444, 0, 0, 0.79445],
82: [0, 0.69444, 0, 0, 0.70278],
83: [0, 0.69444, 0, 0, 0.61111],
84: [0, 0.69444, 0, 0, 0.73334],
85: [0, 0.69444, 0, 0, 0.76389],
86: [0, 0.69444, 0.01528, 0, 0.73334],
87: [0, 0.69444, 0.01528, 0, 1.03889],
88: [0, 0.69444, 0, 0, 0.73334],
89: [0, 0.69444, 0.0275, 0, 0.73334],
90: [0, 0.69444, 0, 0, 0.67223],
91: [0.25, 0.75, 0, 0, 0.34306],
93: [0.25, 0.75, 0, 0, 0.34306],
94: [0, 0.69444, 0, 0, 0.55],
95: [0.35, 0.10833, 0.03056, 0, 0.55],
97: [0, 0.45833, 0, 0, 0.525],
98: [0, 0.69444, 0, 0, 0.56111],
99: [0, 0.45833, 0, 0, 0.48889],
100: [0, 0.69444, 0, 0, 0.56111],
101: [0, 0.45833, 0, 0, 0.51111],
102: [0, 0.69444, 0.07639, 0, 0.33611],
103: [0.19444, 0.45833, 0.01528, 0, 0.55],
104: [0, 0.69444, 0, 0, 0.56111],
105: [0, 0.69444, 0, 0, 0.25556],
106: [0.19444, 0.69444, 0, 0, 0.28611],
107: [0, 0.69444, 0, 0, 0.53056],
108: [0, 0.69444, 0, 0, 0.25556],
109: [0, 0.45833, 0, 0, 0.86667],
110: [0, 0.45833, 0, 0, 0.56111],
111: [0, 0.45833, 0, 0, 0.55],
112: [0.19444, 0.45833, 0, 0, 0.56111],
113: [0.19444, 0.45833, 0, 0, 0.56111],
114: [0, 0.45833, 0.01528, 0, 0.37222],
115: [0, 0.45833, 0, 0, 0.42167],
116: [0, 0.58929, 0, 0, 0.40417],
117: [0, 0.45833, 0, 0, 0.56111],
118: [0, 0.45833, 0.01528, 0, 0.5],
119: [0, 0.45833, 0.01528, 0, 0.74445],
120: [0, 0.45833, 0, 0, 0.5],
121: [0.19444, 0.45833, 0.01528, 0, 0.5],
122: [0, 0.45833, 0, 0, 0.47639],
126: [0.35, 0.34444, 0, 0, 0.55],
160: [0, 0, 0, 0, 0.25],
168: [0, 0.69444, 0, 0, 0.55],
176: [0, 0.69444, 0, 0, 0.73334],
180: [0, 0.69444, 0, 0, 0.55],
184: [0.17014, 0, 0, 0, 0.48889],
305: [0, 0.45833, 0, 0, 0.25556],
567: [0.19444, 0.45833, 0, 0, 0.28611],
710: [0, 0.69444, 0, 0, 0.55],
711: [0, 0.63542, 0, 0, 0.55],
713: [0, 0.63778, 0, 0, 0.55],
728: [0, 0.69444, 0, 0, 0.55],
729: [0, 0.69444, 0, 0, 0.30556],
730: [0, 0.69444, 0, 0, 0.73334],
732: [0, 0.69444, 0, 0, 0.55],
733: [0, 0.69444, 0, 0, 0.55],
915: [0, 0.69444, 0, 0, 0.58056],
916: [0, 0.69444, 0, 0, 0.91667],
920: [0, 0.69444, 0, 0, 0.85556],
923: [0, 0.69444, 0, 0, 0.67223],
926: [0, 0.69444, 0, 0, 0.73334],
928: [0, 0.69444, 0, 0, 0.79445],
931: [0, 0.69444, 0, 0, 0.79445],
933: [0, 0.69444, 0, 0, 0.85556],
934: [0, 0.69444, 0, 0, 0.79445],
936: [0, 0.69444, 0, 0, 0.85556],
937: [0, 0.69444, 0, 0, 0.79445],
8211: [0, 0.45833, 0.03056, 0, 0.55],
8212: [0, 0.45833, 0.03056, 0, 1.10001],
8216: [0, 0.69444, 0, 0, 0.30556],
8217: [0, 0.69444, 0, 0, 0.30556],
8220: [0, 0.69444, 0, 0, 0.55834],
8221: [0, 0.69444, 0, 0, 0.55834],
},
"SansSerif-Italic": {
32: [0, 0, 0, 0, 0.25],
33: [0, 0.69444, 0.05733, 0, 0.31945],
34: [0, 0.69444, 0.00316, 0, 0.5],
35: [0.19444, 0.69444, 0.05087, 0, 0.83334],
36: [0.05556, 0.75, 0.11156, 0, 0.5],
37: [0.05556, 0.75, 0.03126, 0, 0.83334],
38: [0, 0.69444, 0.03058, 0, 0.75834],
39: [0, 0.69444, 0.07816, 0, 0.27778],
40: [0.25, 0.75, 0.13164, 0, 0.38889],
41: [0.25, 0.75, 0.02536, 0, 0.38889],
42: [0, 0.75, 0.11775, 0, 0.5],
43: [0.08333, 0.58333, 0.02536, 0, 0.77778],
44: [0.125, 0.08333, 0, 0, 0.27778],
45: [0, 0.44444, 0.01946, 0, 0.33333],
46: [0, 0.08333, 0, 0, 0.27778],
47: [0.25, 0.75, 0.13164, 0, 0.5],
48: [0, 0.65556, 0.11156, 0, 0.5],
49: [0, 0.65556, 0.11156, 0, 0.5],
50: [0, 0.65556, 0.11156, 0, 0.5],
51: [0, 0.65556, 0.11156, 0, 0.5],
52: [0, 0.65556, 0.11156, 0, 0.5],
53: [0, 0.65556, 0.11156, 0, 0.5],
54: [0, 0.65556, 0.11156, 0, 0.5],
55: [0, 0.65556, 0.11156, 0, 0.5],
56: [0, 0.65556, 0.11156, 0, 0.5],
57: [0, 0.65556, 0.11156, 0, 0.5],
58: [0, 0.44444, 0.02502, 0, 0.27778],
59: [0.125, 0.44444, 0.02502, 0, 0.27778],
61: [-0.13, 0.37, 0.05087, 0, 0.77778],
63: [0, 0.69444, 0.11809, 0, 0.47222],
64: [0, 0.69444, 0.07555, 0, 0.66667],
65: [0, 0.69444, 0, 0, 0.66667],
66: [0, 0.69444, 0.08293, 0, 0.66667],
67: [0, 0.69444, 0.11983, 0, 0.63889],
68: [0, 0.69444, 0.07555, 0, 0.72223],
69: [0, 0.69444, 0.11983, 0, 0.59722],
70: [0, 0.69444, 0.13372, 0, 0.56945],
71: [0, 0.69444, 0.11983, 0, 0.66667],
72: [0, 0.69444, 0.08094, 0, 0.70834],
73: [0, 0.69444, 0.13372, 0, 0.27778],
74: [0, 0.69444, 0.08094, 0, 0.47222],
75: [0, 0.69444, 0.11983, 0, 0.69445],
76: [0, 0.69444, 0, 0, 0.54167],
77: [0, 0.69444, 0.08094, 0, 0.875],
78: [0, 0.69444, 0.08094, 0, 0.70834],
79: [0, 0.69444, 0.07555, 0, 0.73611],
80: [0, 0.69444, 0.08293, 0, 0.63889],
81: [0.125, 0.69444, 0.07555, 0, 0.73611],
82: [0, 0.69444, 0.08293, 0, 0.64584],
83: [0, 0.69444, 0.09205, 0, 0.55556],
84: [0, 0.69444, 0.13372, 0, 0.68056],
85: [0, 0.69444, 0.08094, 0, 0.6875],
86: [0, 0.69444, 0.1615, 0, 0.66667],
87: [0, 0.69444, 0.1615, 0, 0.94445],
88: [0, 0.69444, 0.13372, 0, 0.66667],
89: [0, 0.69444, 0.17261, 0, 0.66667],
90: [0, 0.69444, 0.11983, 0, 0.61111],
91: [0.25, 0.75, 0.15942, 0, 0.28889],
93: [0.25, 0.75, 0.08719, 0, 0.28889],
94: [0, 0.69444, 0.0799, 0, 0.5],
95: [0.35, 0.09444, 0.08616, 0, 0.5],
97: [0, 0.44444, 0.00981, 0, 0.48056],
98: [0, 0.69444, 0.03057, 0, 0.51667],
99: [0, 0.44444, 0.08336, 0, 0.44445],
100: [0, 0.69444, 0.09483, 0, 0.51667],
101: [0, 0.44444, 0.06778, 0, 0.44445],
102: [0, 0.69444, 0.21705, 0, 0.30556],
103: [0.19444, 0.44444, 0.10836, 0, 0.5],
104: [0, 0.69444, 0.01778, 0, 0.51667],
105: [0, 0.67937, 0.09718, 0, 0.23889],
106: [0.19444, 0.67937, 0.09162, 0, 0.26667],
107: [0, 0.69444, 0.08336, 0, 0.48889],
108: [0, 0.69444, 0.09483, 0, 0.23889],
109: [0, 0.44444, 0.01778, 0, 0.79445],
110: [0, 0.44444, 0.01778, 0, 0.51667],
111: [0, 0.44444, 0.06613, 0, 0.5],
112: [0.19444, 0.44444, 0.0389, 0, 0.51667],
113: [0.19444, 0.44444, 0.04169, 0, 0.51667],
114: [0, 0.44444, 0.10836, 0, 0.34167],
115: [0, 0.44444, 0.0778, 0, 0.38333],
116: [0, 0.57143, 0.07225, 0, 0.36111],
117: [0, 0.44444, 0.04169, 0, 0.51667],
118: [0, 0.44444, 0.10836, 0, 0.46111],
119: [0, 0.44444, 0.10836, 0, 0.68334],
120: [0, 0.44444, 0.09169, 0, 0.46111],
121: [0.19444, 0.44444, 0.10836, 0, 0.46111],
122: [0, 0.44444, 0.08752, 0, 0.43472],
126: [0.35, 0.32659, 0.08826, 0, 0.5],
160: [0, 0, 0, 0, 0.25],
168: [0, 0.67937, 0.06385, 0, 0.5],
176: [0, 0.69444, 0, 0, 0.73752],
184: [0.17014, 0, 0, 0, 0.44445],
305: [0, 0.44444, 0.04169, 0, 0.23889],
567: [0.19444, 0.44444, 0.04169, 0, 0.26667],
710: [0, 0.69444, 0.0799, 0, 0.5],
711: [0, 0.63194, 0.08432, 0, 0.5],
713: [0, 0.60889, 0.08776, 0, 0.5],
714: [0, 0.69444, 0.09205, 0, 0.5],
715: [0, 0.69444, 0, 0, 0.5],
728: [0, 0.69444, 0.09483, 0, 0.5],
729: [0, 0.67937, 0.07774, 0, 0.27778],
730: [0, 0.69444, 0, 0, 0.73752],
732: [0, 0.67659, 0.08826, 0, 0.5],
733: [0, 0.69444, 0.09205, 0, 0.5],
915: [0, 0.69444, 0.13372, 0, 0.54167],
916: [0, 0.69444, 0, 0, 0.83334],
920: [0, 0.69444, 0.07555, 0, 0.77778],
923: [0, 0.69444, 0, 0, 0.61111],
926: [0, 0.69444, 0.12816, 0, 0.66667],
928: [0, 0.69444, 0.08094, 0, 0.70834],
931: [0, 0.69444, 0.11983, 0, 0.72222],
933: [0, 0.69444, 0.09031, 0, 0.77778],
934: [0, 0.69444, 0.04603, 0, 0.72222],
936: [0, 0.69444, 0.09031, 0, 0.77778],
937: [0, 0.69444, 0.08293, 0, 0.72222],
8211: [0, 0.44444, 0.08616, 0, 0.5],
8212: [0, 0.44444, 0.08616, 0, 1],
8216: [0, 0.69444, 0.07816, 0, 0.27778],
8217: [0, 0.69444, 0.07816, 0, 0.27778],
8220: [0, 0.69444, 0.14205, 0, 0.5],
8221: [0, 0.69444, 0.00316, 0, 0.5],
},
"SansSerif-Regular": {
32: [0, 0, 0, 0, 0.25],
33: [0, 0.69444, 0, 0, 0.31945],
34: [0, 0.69444, 0, 0, 0.5],
35: [0.19444, 0.69444, 0, 0, 0.83334],
36: [0.05556, 0.75, 0, 0, 0.5],
37: [0.05556, 0.75, 0, 0, 0.83334],
38: [0, 0.69444, 0, 0, 0.75834],
39: [0, 0.69444, 0, 0, 0.27778],
40: [0.25, 0.75, 0, 0, 0.38889],
41: [0.25, 0.75, 0, 0, 0.38889],
42: [0, 0.75, 0, 0, 0.5],
43: [0.08333, 0.58333, 0, 0, 0.77778],
44: [0.125, 0.08333, 0, 0, 0.27778],
45: [0, 0.44444, 0, 0, 0.33333],
46: [0, 0.08333, 0, 0, 0.27778],
47: [0.25, 0.75, 0, 0, 0.5],
48: [0, 0.65556, 0, 0, 0.5],
49: [0, 0.65556, 0, 0, 0.5],
50: [0, 0.65556, 0, 0, 0.5],
51: [0, 0.65556, 0, 0, 0.5],
52: [0, 0.65556, 0, 0, 0.5],
53: [0, 0.65556, 0, 0, 0.5],
54: [0, 0.65556, 0, 0, 0.5],
55: [0, 0.65556, 0, 0, 0.5],
56: [0, 0.65556, 0, 0, 0.5],
57: [0, 0.65556, 0, 0, 0.5],
58: [0, 0.44444, 0, 0, 0.27778],
59: [0.125, 0.44444, 0, 0, 0.27778],
61: [-0.13, 0.37, 0, 0, 0.77778],
63: [0, 0.69444, 0, 0, 0.47222],
64: [0, 0.69444, 0, 0, 0.66667],
65: [0, 0.69444, 0, 0, 0.66667],
66: [0, 0.69444, 0, 0, 0.66667],
67: [0, 0.69444, 0, 0, 0.63889],
68: [0, 0.69444, 0, 0, 0.72223],
69: [0, 0.69444, 0, 0, 0.59722],
70: [0, 0.69444, 0, 0, 0.56945],
71: [0, 0.69444, 0, 0, 0.66667],
72: [0, 0.69444, 0, 0, 0.70834],
73: [0, 0.69444, 0, 0, 0.27778],
74: [0, 0.69444, 0, 0, 0.47222],
75: [0, 0.69444, 0, 0, 0.69445],
76: [0, 0.69444, 0, 0, 0.54167],
77: [0, 0.69444, 0, 0, 0.875],
78: [0, 0.69444, 0, 0, 0.70834],
79: [0, 0.69444, 0, 0, 0.73611],
80: [0, 0.69444, 0, 0, 0.63889],
81: [0.125, 0.69444, 0, 0, 0.73611],
82: [0, 0.69444, 0, 0, 0.64584],
83: [0, 0.69444, 0, 0, 0.55556],
84: [0, 0.69444, 0, 0, 0.68056],
85: [0, 0.69444, 0, 0, 0.6875],
86: [0, 0.69444, 0.01389, 0, 0.66667],
87: [0, 0.69444, 0.01389, 0, 0.94445],
88: [0, 0.69444, 0, 0, 0.66667],
89: [0, 0.69444, 0.025, 0, 0.66667],
90: [0, 0.69444, 0, 0, 0.61111],
91: [0.25, 0.75, 0, 0, 0.28889],
93: [0.25, 0.75, 0, 0, 0.28889],
94: [0, 0.69444, 0, 0, 0.5],
95: [0.35, 0.09444, 0.02778, 0, 0.5],
97: [0, 0.44444, 0, 0, 0.48056],
98: [0, 0.69444, 0, 0, 0.51667],
99: [0, 0.44444, 0, 0, 0.44445],
100: [0, 0.69444, 0, 0, 0.51667],
101: [0, 0.44444, 0, 0, 0.44445],
102: [0, 0.69444, 0.06944, 0, 0.30556],
103: [0.19444, 0.44444, 0.01389, 0, 0.5],
104: [0, 0.69444, 0, 0, 0.51667],
105: [0, 0.67937, 0, 0, 0.23889],
106: [0.19444, 0.67937, 0, 0, 0.26667],
107: [0, 0.69444, 0, 0, 0.48889],
108: [0, 0.69444, 0, 0, 0.23889],
109: [0, 0.44444, 0, 0, 0.79445],
110: [0, 0.44444, 0, 0, 0.51667],
111: [0, 0.44444, 0, 0, 0.5],
112: [0.19444, 0.44444, 0, 0, 0.51667],
113: [0.19444, 0.44444, 0, 0, 0.51667],
114: [0, 0.44444, 0.01389, 0, 0.34167],
115: [0, 0.44444, 0, 0, 0.38333],
116: [0, 0.57143, 0, 0, 0.36111],
117: [0, 0.44444, 0, 0, 0.51667],
118: [0, 0.44444, 0.01389, 0, 0.46111],
119: [0, 0.44444, 0.01389, 0, 0.68334],
120: [0, 0.44444, 0, 0, 0.46111],
121: [0.19444, 0.44444, 0.01389, 0, 0.46111],
122: [0, 0.44444, 0, 0, 0.43472],
126: [0.35, 0.32659, 0, 0, 0.5],
160: [0, 0, 0, 0, 0.25],
168: [0, 0.67937, 0, 0, 0.5],
176: [0, 0.69444, 0, 0, 0.66667],
184: [0.17014, 0, 0, 0, 0.44445],
305: [0, 0.44444, 0, 0, 0.23889],
567: [0.19444, 0.44444, 0, 0, 0.26667],
710: [0, 0.69444, 0, 0, 0.5],
711: [0, 0.63194, 0, 0, 0.5],
713: [0, 0.60889, 0, 0, 0.5],
714: [0, 0.69444, 0, 0, 0.5],
715: [0, 0.69444, 0, 0, 0.5],
728: [0, 0.69444, 0, 0, 0.5],
729: [0, 0.67937, 0, 0, 0.27778],
730: [0, 0.69444, 0, 0, 0.66667],
732: [0, 0.67659, 0, 0, 0.5],
733: [0, 0.69444, 0, 0, 0.5],
915: [0, 0.69444, 0, 0, 0.54167],
916: [0, 0.69444, 0, 0, 0.83334],
920: [0, 0.69444, 0, 0, 0.77778],
923: [0, 0.69444, 0, 0, 0.61111],
926: [0, 0.69444, 0, 0, 0.66667],
928: [0, 0.69444, 0, 0, 0.70834],
931: [0, 0.69444, 0, 0, 0.72222],
933: [0, 0.69444, 0, 0, 0.77778],
934: [0, 0.69444, 0, 0, 0.72222],
936: [0, 0.69444, 0, 0, 0.77778],
937: [0, 0.69444, 0, 0, 0.72222],
8211: [0, 0.44444, 0.02778, 0, 0.5],
8212: [0, 0.44444, 0.02778, 0, 1],
8216: [0, 0.69444, 0, 0, 0.27778],
8217: [0, 0.69444, 0, 0, 0.27778],
8220: [0, 0.69444, 0, 0, 0.5],
8221: [0, 0.69444, 0, 0, 0.5],
},
"Script-Regular": {
32: [0, 0, 0, 0, 0.25],
65: [0, 0.7, 0.22925, 0, 0.80253],
66: [0, 0.7, 0.04087, 0, 0.90757],
67: [0, 0.7, 0.1689, 0, 0.66619],
68: [0, 0.7, 0.09371, 0, 0.77443],
69: [0, 0.7, 0.18583, 0, 0.56162],
70: [0, 0.7, 0.13634, 0, 0.89544],
71: [0, 0.7, 0.17322, 0, 0.60961],
72: [0, 0.7, 0.29694, 0, 0.96919],
73: [0, 0.7, 0.19189, 0, 0.80907],
74: [0.27778, 0.7, 0.19189, 0, 1.05159],
75: [0, 0.7, 0.31259, 0, 0.91364],
76: [0, 0.7, 0.19189, 0, 0.87373],
77: [0, 0.7, 0.15981, 0, 1.08031],
78: [0, 0.7, 0.3525, 0, 0.9015],
79: [0, 0.7, 0.08078, 0, 0.73787],
80: [0, 0.7, 0.08078, 0, 1.01262],
81: [0, 0.7, 0.03305, 0, 0.88282],
82: [0, 0.7, 0.06259, 0, 0.85],
83: [0, 0.7, 0.19189, 0, 0.86767],
84: [0, 0.7, 0.29087, 0, 0.74697],
85: [0, 0.7, 0.25815, 0, 0.79996],
86: [0, 0.7, 0.27523, 0, 0.62204],
87: [0, 0.7, 0.27523, 0, 0.80532],
88: [0, 0.7, 0.26006, 0, 0.94445],
89: [0, 0.7, 0.2939, 0, 0.70961],
90: [0, 0.7, 0.24037, 0, 0.8212],
160: [0, 0, 0, 0, 0.25],
},
"Size1-Regular": {
32: [0, 0, 0, 0, 0.25],
40: [0.35001, 0.85, 0, 0, 0.45834],
41: [0.35001, 0.85, 0, 0, 0.45834],
47: [0.35001, 0.85, 0, 0, 0.57778],
91: [0.35001, 0.85, 0, 0, 0.41667],
92: [0.35001, 0.85, 0, 0, 0.57778],
93: [0.35001, 0.85, 0, 0, 0.41667],
123: [0.35001, 0.85, 0, 0, 0.58334],
125: [0.35001, 0.85, 0, 0, 0.58334],
160: [0, 0, 0, 0, 0.25],
710: [0, 0.72222, 0, 0, 0.55556],
732: [0, 0.72222, 0, 0, 0.55556],
770: [0, 0.72222, 0, 0, 0.55556],
771: [0, 0.72222, 0, 0, 0.55556],
8214: [-99e-5, 0.601, 0, 0, 0.77778],
8593: [1e-5, 0.6, 0, 0, 0.66667],
8595: [1e-5, 0.6, 0, 0, 0.66667],
8657: [1e-5, 0.6, 0, 0, 0.77778],
8659: [1e-5, 0.6, 0, 0, 0.77778],
8719: [0.25001, 0.75, 0, 0, 0.94445],
8720: [0.25001, 0.75, 0, 0, 0.94445],
8721: [0.25001, 0.75, 0, 0, 1.05556],
8730: [0.35001, 0.85, 0, 0, 1],
8739: [-0.00599, 0.606, 0, 0, 0.33333],
8741: [-0.00599, 0.606, 0, 0, 0.55556],
8747: [0.30612, 0.805, 0.19445, 0, 0.47222],
8748: [0.306, 0.805, 0.19445, 0, 0.47222],
8749: [0.306, 0.805, 0.19445, 0, 0.47222],
8750: [0.30612, 0.805, 0.19445, 0, 0.47222],
8896: [0.25001, 0.75, 0, 0, 0.83334],
8897: [0.25001, 0.75, 0, 0, 0.83334],
8898: [0.25001, 0.75, 0, 0, 0.83334],
8899: [0.25001, 0.75, 0, 0, 0.83334],
8968: [0.35001, 0.85, 0, 0, 0.47222],
8969: [0.35001, 0.85, 0, 0, 0.47222],
8970: [0.35001, 0.85, 0, 0, 0.47222],
8971: [0.35001, 0.85, 0, 0, 0.47222],
9168: [-99e-5, 0.601, 0, 0, 0.66667],
10216: [0.35001, 0.85, 0, 0, 0.47222],
10217: [0.35001, 0.85, 0, 0, 0.47222],
10752: [0.25001, 0.75, 0, 0, 1.11111],
10753: [0.25001, 0.75, 0, 0, 1.11111],
10754: [0.25001, 0.75, 0, 0, 1.11111],
10756: [0.25001, 0.75, 0, 0, 0.83334],
10758: [0.25001, 0.75, 0, 0, 0.83334],
},
"Size2-Regular": {
32: [0, 0, 0, 0, 0.25],
40: [0.65002, 1.15, 0, 0, 0.59722],
41: [0.65002, 1.15, 0, 0, 0.59722],
47: [0.65002, 1.15, 0, 0, 0.81111],
91: [0.65002, 1.15, 0, 0, 0.47222],
92: [0.65002, 1.15, 0, 0, 0.81111],
93: [0.65002, 1.15, 0, 0, 0.47222],
123: [0.65002, 1.15, 0, 0, 0.66667],
125: [0.65002, 1.15, 0, 0, 0.66667],
160: [0, 0, 0, 0, 0.25],
710: [0, 0.75, 0, 0, 1],
732: [0, 0.75, 0, 0, 1],
770: [0, 0.75, 0, 0, 1],
771: [0, 0.75, 0, 0, 1],
8719: [0.55001, 1.05, 0, 0, 1.27778],
8720: [0.55001, 1.05, 0, 0, 1.27778],
8721: [0.55001, 1.05, 0, 0, 1.44445],
8730: [0.65002, 1.15, 0, 0, 1],
8747: [0.86225, 1.36, 0.44445, 0, 0.55556],
8748: [0.862, 1.36, 0.44445, 0, 0.55556],
8749: [0.862, 1.36, 0.44445, 0, 0.55556],
8750: [0.86225, 1.36, 0.44445, 0, 0.55556],
8896: [0.55001, 1.05, 0, 0, 1.11111],
8897: [0.55001, 1.05, 0, 0, 1.11111],
8898: [0.55001, 1.05, 0, 0, 1.11111],
8899: [0.55001, 1.05, 0, 0, 1.11111],
8968: [0.65002, 1.15, 0, 0, 0.52778],
8969: [0.65002, 1.15, 0, 0, 0.52778],
8970: [0.65002, 1.15, 0, 0, 0.52778],
8971: [0.65002, 1.15, 0, 0, 0.52778],
10216: [0.65002, 1.15, 0, 0, 0.61111],
10217: [0.65002, 1.15, 0, 0, 0.61111],
10752: [0.55001, 1.05, 0, 0, 1.51112],
10753: [0.55001, 1.05, 0, 0, 1.51112],
10754: [0.55001, 1.05, 0, 0, 1.51112],
10756: [0.55001, 1.05, 0, 0, 1.11111],
10758: [0.55001, 1.05, 0, 0, 1.11111],
},
"Size3-Regular": {
32: [0, 0, 0, 0, 0.25],
40: [0.95003, 1.45, 0, 0, 0.73611],
41: [0.95003, 1.45, 0, 0, 0.73611],
47: [0.95003, 1.45, 0, 0, 1.04445],
91: [0.95003, 1.45, 0, 0, 0.52778],
92: [0.95003, 1.45, 0, 0, 1.04445],
93: [0.95003, 1.45, 0, 0, 0.52778],
123: [0.95003, 1.45, 0, 0, 0.75],
125: [0.95003, 1.45, 0, 0, 0.75],
160: [0, 0, 0, 0, 0.25],
710: [0, 0.75, 0, 0, 1.44445],
732: [0, 0.75, 0, 0, 1.44445],
770: [0, 0.75, 0, 0, 1.44445],
771: [0, 0.75, 0, 0, 1.44445],
8730: [0.95003, 1.45, 0, 0, 1],
8968: [0.95003, 1.45, 0, 0, 0.58334],
8969: [0.95003, 1.45, 0, 0, 0.58334],
8970: [0.95003, 1.45, 0, 0, 0.58334],
8971: [0.95003, 1.45, 0, 0, 0.58334],
10216: [0.95003, 1.45, 0, 0, 0.75],
10217: [0.95003, 1.45, 0, 0, 0.75],
},
"Size4-Regular": {
32: [0, 0, 0, 0, 0.25],
40: [1.25003, 1.75, 0, 0, 0.79167],
41: [1.25003, 1.75, 0, 0, 0.79167],
47: [1.25003, 1.75, 0, 0, 1.27778],
91: [1.25003, 1.75, 0, 0, 0.58334],
92: [1.25003, 1.75, 0, 0, 1.27778],
93: [1.25003, 1.75, 0, 0, 0.58334],
123: [1.25003, 1.75, 0, 0, 0.80556],
125: [1.25003, 1.75, 0, 0, 0.80556],
160: [0, 0, 0, 0, 0.25],
710: [0, 0.825, 0, 0, 1.8889],
732: [0, 0.825, 0, 0, 1.8889],
770: [0, 0.825, 0, 0, 1.8889],
771: [0, 0.825, 0, 0, 1.8889],
8730: [1.25003, 1.75, 0, 0, 1],
8968: [1.25003, 1.75, 0, 0, 0.63889],
8969: [1.25003, 1.75, 0, 0, 0.63889],
8970: [1.25003, 1.75, 0, 0, 0.63889],
8971: [1.25003, 1.75, 0, 0, 0.63889],
9115: [0.64502, 1.155, 0, 0, 0.875],
9116: [1e-5, 0.6, 0, 0, 0.875],
9117: [0.64502, 1.155, 0, 0, 0.875],
9118: [0.64502, 1.155, 0, 0, 0.875],
9119: [1e-5, 0.6, 0, 0, 0.875],
9120: [0.64502, 1.155, 0, 0, 0.875],
9121: [0.64502, 1.155, 0, 0, 0.66667],
9122: [-99e-5, 0.601, 0, 0, 0.66667],
9123: [0.64502, 1.155, 0, 0, 0.66667],
9124: [0.64502, 1.155, 0, 0, 0.66667],
9125: [-99e-5, 0.601, 0, 0, 0.66667],
9126: [0.64502, 1.155, 0, 0, 0.66667],
9127: [1e-5, 0.9, 0, 0, 0.88889],
9128: [0.65002, 1.15, 0, 0, 0.88889],
9129: [0.90001, 0, 0, 0, 0.88889],
9130: [0, 0.3, 0, 0, 0.88889],
9131: [1e-5, 0.9, 0, 0, 0.88889],
9132: [0.65002, 1.15, 0, 0, 0.88889],
9133: [0.90001, 0, 0, 0, 0.88889],
9143: [0.88502, 0.915, 0, 0, 1.05556],
10216: [1.25003, 1.75, 0, 0, 0.80556],
10217: [1.25003, 1.75, 0, 0, 0.80556],
57344: [-0.00499, 0.605, 0, 0, 1.05556],
57345: [-0.00499, 0.605, 0, 0, 1.05556],
57680: [0, 0.12, 0, 0, 0.45],
57681: [0, 0.12, 0, 0, 0.45],
57682: [0, 0.12, 0, 0, 0.45],
57683: [0, 0.12, 0, 0, 0.45],
},
"Typewriter-Regular": {
32: [0, 0, 0, 0, 0.525],
33: [0, 0.61111, 0, 0, 0.525],
34: [0, 0.61111, 0, 0, 0.525],
35: [0, 0.61111, 0, 0, 0.525],
36: [0.08333, 0.69444, 0, 0, 0.525],
37: [0.08333, 0.69444, 0, 0, 0.525],
38: [0, 0.61111, 0, 0, 0.525],
39: [0, 0.61111, 0, 0, 0.525],
40: [0.08333, 0.69444, 0, 0, 0.525],
41: [0.08333, 0.69444, 0, 0, 0.525],
42: [0, 0.52083, 0, 0, 0.525],
43: [-0.08056, 0.53055, 0, 0, 0.525],
44: [0.13889, 0.125, 0, 0, 0.525],
45: [-0.08056, 0.53055, 0, 0, 0.525],
46: [0, 0.125, 0, 0, 0.525],
47: [0.08333, 0.69444, 0, 0, 0.525],
48: [0, 0.61111, 0, 0, 0.525],
49: [0, 0.61111, 0, 0, 0.525],
50: [0, 0.61111, 0, 0, 0.525],
51: [0, 0.61111, 0, 0, 0.525],
52: [0, 0.61111, 0, 0, 0.525],
53: [0, 0.61111, 0, 0, 0.525],
54: [0, 0.61111, 0, 0, 0.525],
55: [0, 0.61111, 0, 0, 0.525],
56: [0, 0.61111, 0, 0, 0.525],
57: [0, 0.61111, 0, 0, 0.525],
58: [0, 0.43056, 0, 0, 0.525],
59: [0.13889, 0.43056, 0, 0, 0.525],
60: [-0.05556, 0.55556, 0, 0, 0.525],
61: [-0.19549, 0.41562, 0, 0, 0.525],
62: [-0.05556, 0.55556, 0, 0, 0.525],
63: [0, 0.61111, 0, 0, 0.525],
64: [0, 0.61111, 0, 0, 0.525],
65: [0, 0.61111, 0, 0, 0.525],
66: [0, 0.61111, 0, 0, 0.525],
67: [0, 0.61111, 0, 0, 0.525],
68: [0, 0.61111, 0, 0, 0.525],
69: [0, 0.61111, 0, 0, 0.525],
70: [0, 0.61111, 0, 0, 0.525],
71: [0, 0.61111, 0, 0, 0.525],
72: [0, 0.61111, 0, 0, 0.525],
73: [0, 0.61111, 0, 0, 0.525],
74: [0, 0.61111, 0, 0, 0.525],
75: [0, 0.61111, 0, 0, 0.525],
76: [0, 0.61111, 0, 0, 0.525],
77: [0, 0.61111, 0, 0, 0.525],
78: [0, 0.61111, 0, 0, 0.525],
79: [0, 0.61111, 0, 0, 0.525],
80: [0, 0.61111, 0, 0, 0.525],
81: [0.13889, 0.61111, 0, 0, 0.525],
82: [0, 0.61111, 0, 0, 0.525],
83: [0, 0.61111, 0, 0, 0.525],
84: [0, 0.61111, 0, 0, 0.525],
85: [0, 0.61111, 0, 0, 0.525],
86: [0, 0.61111, 0, 0, 0.525],
87: [0, 0.61111, 0, 0, 0.525],
88: [0, 0.61111, 0, 0, 0.525],
89: [0, 0.61111, 0, 0, 0.525],
90: [0, 0.61111, 0, 0, 0.525],
91: [0.08333, 0.69444, 0, 0, 0.525],
92: [0.08333, 0.69444, 0, 0, 0.525],
93: [0.08333, 0.69444, 0, 0, 0.525],
94: [0, 0.61111, 0, 0, 0.525],
95: [0.09514, 0, 0, 0, 0.525],
96: [0, 0.61111, 0, 0, 0.525],
97: [0, 0.43056, 0, 0, 0.525],
98: [0, 0.61111, 0, 0, 0.525],
99: [0, 0.43056, 0, 0, 0.525],
100: [0, 0.61111, 0, 0, 0.525],
101: [0, 0.43056, 0, 0, 0.525],
102: [0, 0.61111, 0, 0, 0.525],
103: [0.22222, 0.43056, 0, 0, 0.525],
104: [0, 0.61111, 0, 0, 0.525],
105: [0, 0.61111, 0, 0, 0.525],
106: [0.22222, 0.61111, 0, 0, 0.525],
107: [0, 0.61111, 0, 0, 0.525],
108: [0, 0.61111, 0, 0, 0.525],
109: [0, 0.43056, 0, 0, 0.525],
110: [0, 0.43056, 0, 0, 0.525],
111: [0, 0.43056, 0, 0, 0.525],
112: [0.22222, 0.43056, 0, 0, 0.525],
113: [0.22222, 0.43056, 0, 0, 0.525],
114: [0, 0.43056, 0, 0, 0.525],
115: [0, 0.43056, 0, 0, 0.525],
116: [0, 0.55358, 0, 0, 0.525],
117: [0, 0.43056, 0, 0, 0.525],
118: [0, 0.43056, 0, 0, 0.525],
119: [0, 0.43056, 0, 0, 0.525],
120: [0, 0.43056, 0, 0, 0.525],
121: [0.22222, 0.43056, 0, 0, 0.525],
122: [0, 0.43056, 0, 0, 0.525],
123: [0.08333, 0.69444, 0, 0, 0.525],
124: [0.08333, 0.69444, 0, 0, 0.525],
125: [0.08333, 0.69444, 0, 0, 0.525],
126: [0, 0.61111, 0, 0, 0.525],
127: [0, 0.61111, 0, 0, 0.525],
160: [0, 0, 0, 0, 0.525],
176: [0, 0.61111, 0, 0, 0.525],
184: [0.19445, 0, 0, 0, 0.525],
305: [0, 0.43056, 0, 0, 0.525],
567: [0.22222, 0.43056, 0, 0, 0.525],
711: [0, 0.56597, 0, 0, 0.525],
713: [0, 0.56555, 0, 0, 0.525],
714: [0, 0.61111, 0, 0, 0.525],
715: [0, 0.61111, 0, 0, 0.525],
728: [0, 0.61111, 0, 0, 0.525],
730: [0, 0.61111, 0, 0, 0.525],
770: [0, 0.61111, 0, 0, 0.525],
771: [0, 0.61111, 0, 0, 0.525],
776: [0, 0.61111, 0, 0, 0.525],
915: [0, 0.61111, 0, 0, 0.525],
916: [0, 0.61111, 0, 0, 0.525],
920: [0, 0.61111, 0, 0, 0.525],
923: [0, 0.61111, 0, 0, 0.525],
926: [0, 0.61111, 0, 0, 0.525],
928: [0, 0.61111, 0, 0, 0.525],
931: [0, 0.61111, 0, 0, 0.525],
933: [0, 0.61111, 0, 0, 0.525],
934: [0, 0.61111, 0, 0, 0.525],
936: [0, 0.61111, 0, 0, 0.525],
937: [0, 0.61111, 0, 0, 0.525],
8216: [0, 0.61111, 0, 0, 0.525],
8217: [0, 0.61111, 0, 0, 0.525],
8242: [0, 0.61111, 0, 0, 0.525],
9251: [0.11111, 0.21944, 0, 0, 0.525],
},
},
Z = {
slant: [0.25, 0.25, 0.25],
space: [0, 0, 0],
stretch: [0, 0, 0],
shrink: [0, 0, 0],
xHeight: [0.431, 0.431, 0.431],
quad: [1, 1.171, 1.472],
extraSpace: [0, 0, 0],
num1: [0.677, 0.732, 0.925],
num2: [0.394, 0.384, 0.387],
num3: [0.444, 0.471, 0.504],
denom1: [0.686, 0.752, 1.025],
denom2: [0.345, 0.344, 0.532],
sup1: [0.413, 0.503, 0.504],
sup2: [0.363, 0.431, 0.404],
sup3: [0.289, 0.286, 0.294],
sub1: [0.15, 0.143, 0.2],
sub2: [0.247, 0.286, 0.4],
supDrop: [0.386, 0.353, 0.494],
subDrop: [0.05, 0.071, 0.1],
delim1: [2.39, 1.7, 1.98],
delim2: [1.01, 1.157, 1.42],
axisHeight: [0.25, 0.25, 0.25],
defaultRuleThickness: [0.04, 0.049, 0.049],
bigOpSpacing1: [0.111, 0.111, 0.111],
bigOpSpacing2: [0.166, 0.166, 0.166],
bigOpSpacing3: [0.2, 0.2, 0.2],
bigOpSpacing4: [0.6, 0.611, 0.611],
bigOpSpacing5: [0.1, 0.143, 0.143],
sqrtRuleThickness: [0.04, 0.04, 0.04],
ptPerEm: [10, 10, 10],
doubleRuleSep: [0.2, 0.2, 0.2],
arrayRuleWidth: [0.04, 0.04, 0.04],
fboxsep: [0.3, 0.3, 0.3],
fboxrule: [0.04, 0.04, 0.04],
},
K = {
Å: "A",
Ð: "D",
Þ: "o",
å: "a",
ð: "d",
þ: "o",
А: "A",
Б: "B",
В: "B",
Г: "F",
Д: "A",
Е: "E",
Ж: "K",
З: "3",
И: "N",
Й: "N",
К: "K",
Л: "N",
М: "M",
Н: "H",
О: "O",
П: "N",
Р: "P",
С: "C",
Т: "T",
У: "y",
Ф: "O",
Х: "X",
Ц: "U",
Ч: "h",
Ш: "W",
Щ: "W",
Ъ: "B",
Ы: "X",
Ь: "B",
Э: "3",
Ю: "X",
Я: "R",
а: "a",
б: "b",
в: "a",
г: "r",
д: "y",
е: "e",
ж: "m",
з: "e",
и: "n",
й: "n",
к: "n",
л: "n",
м: "m",
н: "n",
о: "o",
п: "n",
р: "p",
с: "c",
т: "o",
у: "y",
ф: "b",
х: "x",
ц: "n",
ч: "n",
ш: "w",
щ: "w",
ъ: "a",
ы: "m",
ь: "a",
э: "e",
ю: "m",
я: "r",
};
function J(e, t) {
$[e] = t;
}
function Q(e, t, r) {
if (!$[t]) throw Error("Font metrics not found for font: " + t + ".");
var a = e.charCodeAt(0),
n = $[t][a];
if (
(!n && e[0] in K && ((a = K[e[0]].charCodeAt(0)), (n = $[t][a])),
!n && "text" === r && M(a) && (n = $[t][77]),
n)
)
return {
depth: n[0],
height: n[1],
italic: n[2],
skew: n[3],
width: n[4],
};
}
var ee = {},
et = { bin: 1, close: 1, inner: 1, open: 1, punct: 1, rel: 1 },
er = {
"accent-token": 1,
mathord: 1,
"op-token": 1,
spacing: 1,
textord: 1,
},
ea = { math: {}, text: {} };
function en(e, t, r, a, n, i) {
(ea[e][n] = { font: t, group: r, replace: a }),
i && a && (ea[e][a] = ea[e][n]);
}
var ei = "math",
es = "text",
eo = "main",
el = "accent-token",
eh = "close",
em = "inner",
ec = "mathord",
eu = "op-token",
ep = "open",
ed = "punct",
eg = "spacing",
ef = "textord";
en(ei, eo, "rel", "≡", "\\equiv", !0),
en(ei, eo, "rel", "≺", "\\prec", !0),
en(ei, eo, "rel", "≻", "\\succ", !0),
en(ei, eo, "rel", "∼", "\\sim", !0),
en(ei, eo, "rel", "⊥", "\\perp"),
en(ei, eo, "rel", "⪯", "\\preceq", !0),
en(ei, eo, "rel", "⪰", "\\succeq", !0),
en(ei, eo, "rel", "≃", "\\simeq", !0),
en(ei, eo, "rel", "∣", "\\mid", !0),
en(ei, eo, "rel", "≪", "\\ll", !0),
en(ei, eo, "rel", "≫", "\\gg", !0),
en(ei, eo, "rel", "≍", "\\asymp", !0),
en(ei, eo, "rel", "∥", "\\parallel"),
en(ei, eo, "rel", "⋈", "\\bowtie", !0),
en(ei, eo, "rel", "⌣", "\\smile", !0),
en(ei, eo, "rel", "⊑", "\\sqsubseteq", !0),
en(ei, eo, "rel", "⊒", "\\sqsupseteq", !0),
en(ei, eo, "rel", "≐", "\\doteq", !0),
en(ei, eo, "rel", "⌢", "\\frown", !0),
en(ei, eo, "rel", "∋", "\\ni", !0),
en(ei, eo, "rel", "∝", "\\propto", !0),
en(ei, eo, "rel", "⊢", "\\vdash", !0),
en(ei, eo, "rel", "⊣", "\\dashv", !0),
en(ei, eo, "rel", "∋", "\\owns"),
en(ei, eo, ed, ".", "\\ldotp"),
en(ei, eo, ed, "⋅", "\\cdotp"),
en(ei, eo, ef, "#", "\\#"),
en(es, eo, ef, "#", "\\#"),
en(ei, eo, ef, "&", "\\&"),
en(es, eo, ef, "&", "\\&"),
en(ei, eo, ef, "ℵ", "\\aleph", !0),
en(ei, eo, ef, "∀", "\\forall", !0),
en(ei, eo, ef, "ℏ", "\\hbar", !0),
en(ei, eo, ef, "∃", "\\exists", !0),
en(ei, eo, ef, "∇", "\\nabla", !0),
en(ei, eo, ef, "♭", "\\flat", !0),
en(ei, eo, ef, "ℓ", "\\ell", !0),
en(ei, eo, ef, "♮", "\\natural", !0),
en(ei, eo, ef, "♣", "\\clubsuit", !0),
en(ei, eo, ef, "℘", "\\wp", !0),
en(ei, eo, ef, "♯", "\\sharp", !0),
en(ei, eo, ef, "♢", "\\diamondsuit", !0),
en(ei, eo, ef, "ℜ", "\\Re", !0),
en(ei, eo, ef, "♡", "\\heartsuit", !0),
en(ei, eo, ef, "ℑ", "\\Im", !0),
en(ei, eo, ef, "♠", "\\spadesuit", !0),
en(ei, eo, ef, "§", "\\S", !0),
en(es, eo, ef, "§", "\\S"),
en(ei, eo, ef, "¶", "\\P", !0),
en(es, eo, ef, "¶", "\\P"),
en(ei, eo, ef, "†", "\\dag"),
en(es, eo, ef, "†", "\\dag"),
en(es, eo, ef, "†", "\\textdagger"),
en(ei, eo, ef, "‡", "\\ddag"),
en(es, eo, ef, "‡", "\\ddag"),
en(es, eo, ef, "‡", "\\textdaggerdbl"),
en(ei, eo, eh, "⎱", "\\rmoustache", !0),
en(ei, eo, ep, "⎰", "\\lmoustache", !0),
en(ei, eo, eh, "⟯", "\\rgroup", !0),
en(ei, eo, ep, "⟮", "\\lgroup", !0),
en(ei, eo, "bin", "∓", "\\mp", !0),
en(ei, eo, "bin", "⊖", "\\ominus", !0),
en(ei, eo, "bin", "⊎", "\\uplus", !0),
en(ei, eo, "bin", "⊓", "\\sqcap", !0),
en(ei, eo, "bin", "∗", "\\ast"),
en(ei, eo, "bin", "⊔", "\\sqcup", !0),
en(ei, eo, "bin", "◯", "\\bigcirc", !0),
en(ei, eo, "bin", "∙", "\\bullet", !0),
en(ei, eo, "bin", "‡", "\\ddagger"),
en(ei, eo, "bin", "≀", "\\wr", !0),
en(ei, eo, "bin", "⨿", "\\amalg"),
en(ei, eo, "bin", "&", "\\And"),
en(ei, eo, "rel", "⟵", "\\longleftarrow", !0),
en(ei, eo, "rel", "⇐", "\\Leftarrow", !0),
en(ei, eo, "rel", "⟸", "\\Longleftarrow", !0),
en(ei, eo, "rel", "⟶", "\\longrightarrow", !0),
en(ei, eo, "rel", "⇒", "\\Rightarrow", !0),
en(ei, eo, "rel", "⟹", "\\Longrightarrow", !0),
en(ei, eo, "rel", "↔", "\\leftrightarrow", !0),
en(ei, eo, "rel", "⟷", "\\longleftrightarrow", !0),
en(ei, eo, "rel", "⇔", "\\Leftrightarrow", !0),
en(ei, eo, "rel", "⟺", "\\Longleftrightarrow", !0),
en(ei, eo, "rel", "↦", "\\mapsto", !0),
en(ei, eo, "rel", "⟼", "\\longmapsto", !0),
en(ei, eo, "rel", "↗", "\\nearrow", !0),
en(ei, eo, "rel", "↩", "\\hookleftarrow", !0),
en(ei, eo, "rel", "↪", "\\hookrightarrow", !0),
en(ei, eo, "rel", "↘", "\\searrow", !0),
en(ei, eo, "rel", "↼", "\\leftharpoonup", !0),
en(ei, eo, "rel", "⇀", "\\rightharpoonup", !0),
en(ei, eo, "rel", "↙", "\\swarrow", !0),
en(ei, eo, "rel", "↽", "\\leftharpoondown", !0),
en(ei, eo, "rel", "⇁", "\\rightharpoondown", !0),
en(ei, eo, "rel", "↖", "\\nwarrow", !0),
en(ei, eo, "rel", "⇌", "\\rightleftharpoons", !0),
en(ei, "ams", "rel", "≮", "\\nless", !0),
en(ei, "ams", "rel", "", "\\@nleqslant"),
en(ei, "ams", "rel", "", "\\@nleqq"),
en(ei, "ams", "rel", "⪇", "\\lneq", !0),
en(ei, "ams", "rel", "≨", "\\lneqq", !0),
en(ei, "ams", "rel", "", "\\@lvertneqq"),
en(ei, "ams", "rel", "⋦", "\\lnsim", !0),
en(ei, "ams", "rel", "⪉", "\\lnapprox", !0),
en(ei, "ams", "rel", "⊀", "\\nprec", !0),
en(ei, "ams", "rel", "⋠", "\\npreceq", !0),
en(ei, "ams", "rel", "⋨", "\\precnsim", !0),
en(ei, "ams", "rel", "⪹", "\\precnapprox", !0),
en(ei, "ams", "rel", "≁", "\\nsim", !0),
en(ei, "ams", "rel", "", "\\@nshortmid"),
en(ei, "ams", "rel", "∤", "\\nmid", !0),
en(ei, "ams", "rel", "⊬", "\\nvdash", !0),
en(ei, "ams", "rel", "⊭", "\\nvDash", !0),
en(ei, "ams", "rel", "⋪", "\\ntriangleleft"),
en(ei, "ams", "rel", "⋬", "\\ntrianglelefteq", !0),
en(ei, "ams", "rel", "⊊", "\\subsetneq", !0),
en(ei, "ams", "rel", "", "\\@varsubsetneq"),
en(ei, "ams", "rel", "⫋", "\\subsetneqq", !0),
en(ei, "ams", "rel", "", "\\@varsubsetneqq"),
en(ei, "ams", "rel", "≯", "\\ngtr", !0),
en(ei, "ams", "rel", "", "\\@ngeqslant"),
en(ei, "ams", "rel", "", "\\@ngeqq"),
en(ei, "ams", "rel", "⪈", "\\gneq", !0),
en(ei, "ams", "rel", "≩", "\\gneqq", !0),
en(ei, "ams", "rel", "", "\\@gvertneqq"),
en(ei, "ams", "rel", "⋧", "\\gnsim", !0),
en(ei, "ams", "rel", "⪊", "\\gnapprox", !0),
en(ei, "ams", "rel", "⊁", "\\nsucc", !0),
en(ei, "ams", "rel", "⋡", "\\nsucceq", !0),
en(ei, "ams", "rel", "⋩", "\\succnsim", !0),
en(ei, "ams", "rel", "⪺", "\\succnapprox", !0),
en(ei, "ams", "rel", "≆", "\\ncong", !0),
en(ei, "ams", "rel", "", "\\@nshortparallel"),
en(ei, "ams", "rel", "∦", "\\nparallel", !0),
en(ei, "ams", "rel", "⊯", "\\nVDash", !0),
en(ei, "ams", "rel", "⋫", "\\ntriangleright"),
en(ei, "ams", "rel", "⋭", "\\ntrianglerighteq", !0),
en(ei, "ams", "rel", "", "\\@nsupseteqq"),
en(ei, "ams", "rel", "⊋", "\\supsetneq", !0),
en(ei, "ams", "rel", "", "\\@varsupsetneq"),
en(ei, "ams", "rel", "⫌", "\\supsetneqq", !0),
en(ei, "ams", "rel", "", "\\@varsupsetneqq"),
en(ei, "ams", "rel", "⊮", "\\nVdash", !0),
en(ei, "ams", "rel", "⪵", "\\precneqq", !0),
en(ei, "ams", "rel", "⪶", "\\succneqq", !0),
en(ei, "ams", "rel", "", "\\@nsubseteqq"),
en(ei, "ams", "bin", "⊴", "\\unlhd"),
en(ei, "ams", "bin", "⊵", "\\unrhd"),
en(ei, "ams", "rel", "↚", "\\nleftarrow", !0),
en(ei, "ams", "rel", "↛", "\\nrightarrow", !0),
en(ei, "ams", "rel", "⇍", "\\nLeftarrow", !0),
en(ei, "ams", "rel", "⇏", "\\nRightarrow", !0),
en(ei, "ams", "rel", "↮", "\\nleftrightarrow", !0),
en(ei, "ams", "rel", "⇎", "\\nLeftrightarrow", !0),
en(ei, "ams", "rel", "△", "\\vartriangle"),
en(ei, "ams", ef, "ℏ", "\\hslash"),
en(ei, "ams", ef, "▽", "\\triangledown"),
en(ei, "ams", ef, "◊", "\\lozenge"),
en(ei, "ams", ef, "Ⓢ", "\\circledS"),
en(ei, "ams", ef, "®", "\\circledR"),
en(es, "ams", ef, "®", "\\circledR"),
en(ei, "ams", ef, "∡", "\\measuredangle", !0),
en(ei, "ams", ef, "∄", "\\nexists"),
en(ei, "ams", ef, "℧", "\\mho"),
en(ei, "ams", ef, "Ⅎ", "\\Finv", !0),
en(ei, "ams", ef, "⅁", "\\Game", !0),
en(ei, "ams", ef, "‵", "\\backprime"),
en(ei, "ams", ef, "▲", "\\blacktriangle"),
en(ei, "ams", ef, "▼", "\\blacktriangledown"),
en(ei, "ams", ef, "■", "\\blacksquare"),
en(ei, "ams", ef, "⧫", "\\blacklozenge"),
en(ei, "ams", ef, "★", "\\bigstar"),
en(ei, "ams", ef, "∢", "\\sphericalangle", !0),
en(ei, "ams", ef, "∁", "\\complement", !0),
en(ei, "ams", ef, "ð", "\\eth", !0),
en(es, eo, ef, "ð", "ð"),
en(ei, "ams", ef, "╱", "\\diagup"),
en(ei, "ams", ef, "╲", "\\diagdown"),
en(ei, "ams", ef, "□", "\\square"),
en(ei, "ams", ef, "□", "\\Box"),
en(ei, "ams", ef, "◊", "\\Diamond"),
en(ei, "ams", ef, "¥", "\\yen", !0),
en(es, "ams", ef, "¥", "\\yen", !0),
en(ei, "ams", ef, "✓", "\\checkmark", !0),
en(es, "ams", ef, "✓", "\\checkmark"),
en(ei, "ams", ef, "ℶ", "\\beth", !0),
en(ei, "ams", ef, "ℸ", "\\daleth", !0),
en(ei, "ams", ef, "ℷ", "\\gimel", !0),
en(ei, "ams", ef, "ϝ", "\\digamma", !0),
en(ei, "ams", ef, "ϰ", "\\varkappa"),
en(ei, "ams", ep, "┌", "\\@ulcorner", !0),
en(ei, "ams", eh, "┐", "\\@urcorner", !0),
en(ei, "ams", ep, "└", "\\@llcorner", !0),
en(ei, "ams", eh, "┘", "\\@lrcorner", !0),
en(ei, "ams", "rel", "≦", "\\leqq", !0),
en(ei, "ams", "rel", "⩽", "\\leqslant", !0),
en(ei, "ams", "rel", "⪕", "\\eqslantless", !0),
en(ei, "ams", "rel", "≲", "\\lesssim", !0),
en(ei, "ams", "rel", "⪅", "\\lessapprox", !0),
en(ei, "ams", "rel", "≊", "\\approxeq", !0),
en(ei, "ams", "bin", "⋖", "\\lessdot"),
en(ei, "ams", "rel", "⋘", "\\lll", !0),
en(ei, "ams", "rel", "≶", "\\lessgtr", !0),
en(ei, "ams", "rel", "⋚", "\\lesseqgtr", !0),
en(ei, "ams", "rel", "⪋", "\\lesseqqgtr", !0),
en(ei, "ams", "rel", "≑", "\\doteqdot"),
en(ei, "ams", "rel", "≓", "\\risingdotseq", !0),
en(ei, "ams", "rel", "≒", "\\fallingdotseq", !0),
en(ei, "ams", "rel", "∽", "\\backsim", !0),
en(ei, "ams", "rel", "⋍", "\\backsimeq", !0),
en(ei, "ams", "rel", "⫅", "\\subseteqq", !0),
en(ei, "ams", "rel", "⋐", "\\Subset", !0),
en(ei, "ams", "rel", "⊏", "\\sqsubset", !0),
en(ei, "ams", "rel", "≼", "\\preccurlyeq", !0),
en(ei, "ams", "rel", "⋞", "\\curlyeqprec", !0),
en(ei, "ams", "rel", "≾", "\\precsim", !0),
en(ei, "ams", "rel", "⪷", "\\precapprox", !0),
en(ei, "ams", "rel", "⊲", "\\vartriangleleft"),
en(ei, "ams", "rel", "⊴", "\\trianglelefteq"),
en(ei, "ams", "rel", "⊨", "\\vDash", !0),
en(ei, "ams", "rel", "⊪", "\\Vvdash", !0),
en(ei, "ams", "rel", "⌣", "\\smallsmile"),
en(ei, "ams", "rel", "⌢", "\\smallfrown"),
en(ei, "ams", "rel", "≏", "\\bumpeq", !0),
en(ei, "ams", "rel", "≎", "\\Bumpeq", !0),
en(ei, "ams", "rel", "≧", "\\geqq", !0),
en(ei, "ams", "rel", "⩾", "\\geqslant", !0),
en(ei, "ams", "rel", "⪖", "\\eqslantgtr", !0),
en(ei, "ams", "rel", "≳", "\\gtrsim", !0),
en(ei, "ams", "rel", "⪆", "\\gtrapprox", !0),
en(ei, "ams", "bin", "⋗", "\\gtrdot"),
en(ei, "ams", "rel", "⋙", "\\ggg", !0),
en(ei, "ams", "rel", "≷", "\\gtrless", !0),
en(ei, "ams", "rel", "⋛", "\\gtreqless", !0),
en(ei, "ams", "rel", "⪌", "\\gtreqqless", !0),
en(ei, "ams", "rel", "≖", "\\eqcirc", !0),
en(ei, "ams", "rel", "≗", "\\circeq", !0),
en(ei, "ams", "rel", "≜", "\\triangleq", !0),
en(ei, "ams", "rel", "∼", "\\thicksim"),
en(ei, "ams", "rel", "≈", "\\thickapprox"),
en(ei, "ams", "rel", "⫆", "\\supseteqq", !0),
en(ei, "ams", "rel", "⋑", "\\Supset", !0),
en(ei, "ams", "rel", "⊐", "\\sqsupset", !0),
en(ei, "ams", "rel", "≽", "\\succcurlyeq", !0),
en(ei, "ams", "rel", "⋟", "\\curlyeqsucc", !0),
en(ei, "ams", "rel", "≿", "\\succsim", !0),
en(ei, "ams", "rel", "⪸", "\\succapprox", !0),
en(ei, "ams", "rel", "⊳", "\\vartriangleright"),
en(ei, "ams", "rel", "⊵", "\\trianglerighteq"),
en(ei, "ams", "rel", "⊩", "\\Vdash", !0),
en(ei, "ams", "rel", "∣", "\\shortmid"),
en(ei, "ams", "rel", "∥", "\\shortparallel"),
en(ei, "ams", "rel", "≬", "\\between", !0),
en(ei, "ams", "rel", "⋔", "\\pitchfork", !0),
en(ei, "ams", "rel", "∝", "\\varpropto"),
en(ei, "ams", "rel", "◀", "\\blacktriangleleft"),
en(ei, "ams", "rel", "∴", "\\therefore", !0),
en(ei, "ams", "rel", "∍", "\\backepsilon"),
en(ei, "ams", "rel", "▶", "\\blacktriangleright"),
en(ei, "ams", "rel", "∵", "\\because", !0),
en(ei, "ams", "rel", "⋘", "\\llless"),
en(ei, "ams", "rel", "⋙", "\\gggtr"),
en(ei, "ams", "bin", "⊲", "\\lhd"),
en(ei, "ams", "bin", "⊳", "\\rhd"),
en(ei, "ams", "rel", "≂", "\\eqsim", !0),
en(ei, eo, "rel", "⋈", "\\Join"),
en(ei, "ams", "rel", "≑", "\\Doteq", !0),
en(ei, "ams", "bin", "∔", "\\dotplus", !0),
en(ei, "ams", "bin", "∖", "\\smallsetminus"),
en(ei, "ams", "bin", "⋒", "\\Cap", !0),
en(ei, "ams", "bin", "⋓", "\\Cup", !0),
en(ei, "ams", "bin", "⩞", "\\doublebarwedge", !0),
en(ei, "ams", "bin", "⊟", "\\boxminus", !0),
en(ei, "ams", "bin", "⊞", "\\boxplus", !0),
en(ei, "ams", "bin", "⋇", "\\divideontimes", !0),
en(ei, "ams", "bin", "⋉", "\\ltimes", !0),
en(ei, "ams", "bin", "⋊", "\\rtimes", !0),
en(ei, "ams", "bin", "⋋", "\\leftthreetimes", !0),
en(ei, "ams", "bin", "⋌", "\\rightthreetimes", !0),
en(ei, "ams", "bin", "⋏", "\\curlywedge", !0),
en(ei, "ams", "bin", "⋎", "\\curlyvee", !0),
en(ei, "ams", "bin", "⊝", "\\circleddash", !0),
en(ei, "ams", "bin", "⊛", "\\circledast", !0),
en(ei, "ams", "bin", "⋅", "\\centerdot"),
en(ei, "ams", "bin", "⊺", "\\intercal", !0),
en(ei, "ams", "bin", "⋒", "\\doublecap"),
en(ei, "ams", "bin", "⋓", "\\doublecup"),
en(ei, "ams", "bin", "⊠", "\\boxtimes", !0),
en(ei, "ams", "rel", "⇢", "\\dashrightarrow", !0),
en(ei, "ams", "rel", "⇠", "\\dashleftarrow", !0),
en(ei, "ams", "rel", "⇇", "\\leftleftarrows", !0),
en(ei, "ams", "rel", "⇆", "\\leftrightarrows", !0),
en(ei, "ams", "rel", "⇚", "\\Lleftarrow", !0),
en(ei, "ams", "rel", "↞", "\\twoheadleftarrow", !0),
en(ei, "ams", "rel", "↢", "\\leftarrowtail", !0),
en(ei, "ams", "rel", "↫", "\\looparrowleft", !0),
en(ei, "ams", "rel", "⇋", "\\leftrightharpoons", !0),
en(ei, "ams", "rel", "↶", "\\curvearrowleft", !0),
en(ei, "ams", "rel", "↺", "\\circlearrowleft", !0),
en(ei, "ams", "rel", "↰", "\\Lsh", !0),
en(ei, "ams", "rel", "⇈", "\\upuparrows", !0),
en(ei, "ams", "rel", "↿", "\\upharpoonleft", !0),
en(ei, "ams", "rel", "⇃", "\\downharpoonleft", !0),
en(ei, eo, "rel", "⊶", "\\origof", !0),
en(ei, eo, "rel", "⊷", "\\imageof", !0),
en(ei, "ams", "rel", "⊸", "\\multimap", !0),
en(ei, "ams", "rel", "↭", "\\leftrightsquigarrow", !0),
en(ei, "ams", "rel", "⇉", "\\rightrightarrows", !0),
en(ei, "ams", "rel", "⇄", "\\rightleftarrows", !0),
en(ei, "ams", "rel", "↠", "\\twoheadrightarrow", !0),
en(ei, "ams", "rel", "↣", "\\rightarrowtail", !0),
en(ei, "ams", "rel", "↬", "\\looparrowright", !0),
en(ei, "ams", "rel", "↷", "\\curvearrowright", !0),
en(ei, "ams", "rel", "↻", "\\circlearrowright", !0),
en(ei, "ams", "rel", "↱", "\\Rsh", !0),
en(ei, "ams", "rel", "⇊", "\\downdownarrows", !0),
en(ei, "ams", "rel", "↾", "\\upharpoonright", !0),
en(ei, "ams", "rel", "⇂", "\\downharpoonright", !0),
en(ei, "ams", "rel", "⇝", "\\rightsquigarrow", !0),
en(ei, "ams", "rel", "⇝", "\\leadsto"),
en(ei, "ams", "rel", "⇛", "\\Rrightarrow", !0),
en(ei, "ams", "rel", "↾", "\\restriction"),
en(ei, eo, ef, "‘", "`"),
en(ei, eo, ef, "$", "\\$"),
en(es, eo, ef, "$", "\\$"),
en(es, eo, ef, "$", "\\textdollar"),
en(ei, eo, ef, "%", "\\%"),
en(es, eo, ef, "%", "\\%"),
en(ei, eo, ef, "_", "\\_"),
en(es, eo, ef, "_", "\\_"),
en(es, eo, ef, "_", "\\textunderscore"),
en(ei, eo, ef, "∠", "\\angle", !0),
en(ei, eo, ef, "∞", "\\infty", !0),
en(ei, eo, ef, "′", "\\prime"),
en(ei, eo, ef, "△", "\\triangle"),
en(ei, eo, ef, "Γ", "\\Gamma", !0),
en(ei, eo, ef, "Δ", "\\Delta", !0),
en(ei, eo, ef, "Θ", "\\Theta", !0),
en(ei, eo, ef, "Λ", "\\Lambda", !0),
en(ei, eo, ef, "Ξ", "\\Xi", !0),
en(ei, eo, ef, "Π", "\\Pi", !0),
en(ei, eo, ef, "Σ", "\\Sigma", !0),
en(ei, eo, ef, "Υ", "\\Upsilon", !0),
en(ei, eo, ef, "Φ", "\\Phi", !0),
en(ei, eo, ef, "Ψ", "\\Psi", !0),
en(ei, eo, ef, "Ω", "\\Omega", !0),
en(ei, eo, ef, "A", "Α"),
en(ei, eo, ef, "B", "Β"),
en(ei, eo, ef, "E", "Ε"),
en(ei, eo, ef, "Z", "Ζ"),
en(ei, eo, ef, "H", "Η"),
en(ei, eo, ef, "I", "Ι"),
en(ei, eo, ef, "K", "Κ"),
en(ei, eo, ef, "M", "Μ"),
en(ei, eo, ef, "N", "Ν"),
en(ei, eo, ef, "O", "Ο"),
en(ei, eo, ef, "P", "Ρ"),
en(ei, eo, ef, "T", "Τ"),
en(ei, eo, ef, "X", "Χ"),
en(ei, eo, ef, "¬", "\\neg", !0),
en(ei, eo, ef, "¬", "\\lnot"),
en(ei, eo, ef, "⊤", "\\top"),
en(ei, eo, ef, "⊥", "\\bot"),
en(ei, eo, ef, "∅", "\\emptyset"),
en(ei, "ams", ef, "∅", "\\varnothing"),
en(ei, eo, ec, "α", "\\alpha", !0),
en(ei, eo, ec, "β", "\\beta", !0),
en(ei, eo, ec, "γ", "\\gamma", !0),
en(ei, eo, ec, "δ", "\\delta", !0),
en(ei, eo, ec, "ϵ", "\\epsilon", !0),
en(ei, eo, ec, "ζ", "\\zeta", !0),
en(ei, eo, ec, "η", "\\eta", !0),
en(ei, eo, ec, "θ", "\\theta", !0),
en(ei, eo, ec, "ι", "\\iota", !0),
en(ei, eo, ec, "κ", "\\kappa", !0),
en(ei, eo, ec, "λ", "\\lambda", !0),
en(ei, eo, ec, "μ", "\\mu", !0),
en(ei, eo, ec, "ν", "\\nu", !0),
en(ei, eo, ec, "ξ", "\\xi", !0),
en(ei, eo, ec, "ο", "\\omicron", !0),
en(ei, eo, ec, "π", "\\pi", !0),
en(ei, eo, ec, "ρ", "\\rho", !0),
en(ei, eo, ec, "σ", "\\sigma", !0),
en(ei, eo, ec, "τ", "\\tau", !0),
en(ei, eo, ec, "υ", "\\upsilon", !0),
en(ei, eo, ec, "ϕ", "\\phi", !0),
en(ei, eo, ec, "χ", "\\chi", !0),
en(ei, eo, ec, "ψ", "\\psi", !0),
en(ei, eo, ec, "ω", "\\omega", !0),
en(ei, eo, ec, "ε", "\\varepsilon", !0),
en(ei, eo, ec, "ϑ", "\\vartheta", !0),
en(ei, eo, ec, "ϖ", "\\varpi", !0),
en(ei, eo, ec, "ϱ", "\\varrho", !0),
en(ei, eo, ec, "ς", "\\varsigma", !0),
en(ei, eo, ec, "φ", "\\varphi", !0),
en(ei, eo, "bin", "∗", "*", !0),
en(ei, eo, "bin", "+", "+"),
en(ei, eo, "bin", "−", "-", !0),
en(ei, eo, "bin", "⋅", "\\cdot", !0),
en(ei, eo, "bin", "∘", "\\circ", !0),
en(ei, eo, "bin", "÷", "\\div", !0),
en(ei, eo, "bin", "±", "\\pm", !0),
en(ei, eo, "bin", "×", "\\times", !0),
en(ei, eo, "bin", "∩", "\\cap", !0),
en(ei, eo, "bin", "∪", "\\cup", !0),
en(ei, eo, "bin", "∖", "\\setminus", !0),
en(ei, eo, "bin", "∧", "\\land"),
en(ei, eo, "bin", "∨", "\\lor"),
en(ei, eo, "bin", "∧", "\\wedge", !0),
en(ei, eo, "bin", "∨", "\\vee", !0),
en(ei, eo, ef, "√", "\\surd"),
en(ei, eo, ep, "⟨", "\\langle", !0),
en(ei, eo, ep, "∣", "\\lvert"),
en(ei, eo, ep, "∥", "\\lVert"),
en(ei, eo, eh, "?", "?"),
en(ei, eo, eh, "!", "!"),
en(ei, eo, eh, "⟩", "\\rangle", !0),
en(ei, eo, eh, "∣", "\\rvert"),
en(ei, eo, eh, "∥", "\\rVert"),
en(ei, eo, "rel", "=", "="),
en(ei, eo, "rel", ":", ":"),
en(ei, eo, "rel", "≈", "\\approx", !0),
en(ei, eo, "rel", "≅", "\\cong", !0),
en(ei, eo, "rel", "≥", "\\ge"),
en(ei, eo, "rel", "≥", "\\geq", !0),
en(ei, eo, "rel", "←", "\\gets"),
en(ei, eo, "rel", ">", "\\gt", !0),
en(ei, eo, "rel", "∈", "\\in", !0),
en(ei, eo, "rel", "", "\\@not"),
en(ei, eo, "rel", "⊂", "\\subset", !0),
en(ei, eo, "rel", "⊃", "\\supset", !0),
en(ei, eo, "rel", "⊆", "\\subseteq", !0),
en(ei, eo, "rel", "⊇", "\\supseteq", !0),
en(ei, "ams", "rel", "⊈", "\\nsubseteq", !0),
en(ei, "ams", "rel", "⊉", "\\nsupseteq", !0),
en(ei, eo, "rel", "⊨", "\\models"),
en(ei, eo, "rel", "←", "\\leftarrow", !0),
en(ei, eo, "rel", "≤", "\\le"),
en(ei, eo, "rel", "≤", "\\leq", !0),
en(ei, eo, "rel", "<", "\\lt", !0),
en(ei, eo, "rel", "→", "\\rightarrow", !0),
en(ei, eo, "rel", "→", "\\to"),
en(ei, "ams", "rel", "≱", "\\ngeq", !0),
en(ei, "ams", "rel", "≰", "\\nleq", !0),
en(ei, eo, eg, " ", "\\ "),
en(ei, eo, eg, " ", "\\space"),
en(ei, eo, eg, " ", "\\nobreakspace"),
en(es, eo, eg, " ", "\\ "),
en(es, eo, eg, " ", " "),
en(es, eo, eg, " ", "\\space"),
en(es, eo, eg, " ", "\\nobreakspace"),
en(ei, eo, eg, null, "\\nobreak"),
en(ei, eo, eg, null, "\\allowbreak"),
en(ei, eo, ed, ",", ","),
en(ei, eo, ed, ";", ";"),
en(ei, "ams", "bin", "⊼", "\\barwedge", !0),
en(ei, "ams", "bin", "⊻", "\\veebar", !0),
en(ei, eo, "bin", "⊙", "\\odot", !0),
en(ei, eo, "bin", "⊕", "\\oplus", !0),
en(ei, eo, "bin", "⊗", "\\otimes", !0),
en(ei, eo, ef, "∂", "\\partial", !0),
en(ei, eo, "bin", "⊘", "\\oslash", !0),
en(ei, "ams", "bin", "⊚", "\\circledcirc", !0),
en(ei, "ams", "bin", "⊡", "\\boxdot", !0),
en(ei, eo, "bin", "△", "\\bigtriangleup"),
en(ei, eo, "bin", "▽", "\\bigtriangledown"),
en(ei, eo, "bin", "†", "\\dagger"),
en(ei, eo, "bin", "⋄", "\\diamond"),
en(ei, eo, "bin", "⋆", "\\star"),
en(ei, eo, "bin", "◃", "\\triangleleft"),
en(ei, eo, "bin", "▹", "\\triangleright"),
en(ei, eo, ep, "{", "\\{"),
en(es, eo, ef, "{", "\\{"),
en(es, eo, ef, "{", "\\textbraceleft"),
en(ei, eo, eh, "}", "\\}"),
en(es, eo, ef, "}", "\\}"),
en(es, eo, ef, "}", "\\textbraceright"),
en(ei, eo, ep, "{", "\\lbrace"),
en(ei, eo, eh, "}", "\\rbrace"),
en(ei, eo, ep, "[", "\\lbrack", !0),
en(es, eo, ef, "[", "\\lbrack", !0),
en(ei, eo, eh, "]", "\\rbrack", !0),
en(es, eo, ef, "]", "\\rbrack", !0),
en(ei, eo, ep, "(", "\\lparen", !0),
en(ei, eo, eh, ")", "\\rparen", !0),
en(es, eo, ef, "<", "\\textless", !0),
en(es, eo, ef, ">", "\\textgreater", !0),
en(ei, eo, ep, "⌊", "\\lfloor", !0),
en(ei, eo, eh, "⌋", "\\rfloor", !0),
en(ei, eo, ep, "⌈", "\\lceil", !0),
en(ei, eo, eh, "⌉", "\\rceil", !0),
en(ei, eo, ef, "\\", "\\backslash"),
en(ei, eo, ef, "∣", "|"),
en(ei, eo, ef, "∣", "\\vert"),
en(es, eo, ef, "|", "\\textbar", !0),
en(ei, eo, ef, "∥", "\\|"),
en(ei, eo, ef, "∥", "\\Vert"),
en(es, eo, ef, "∥", "\\textbardbl"),
en(es, eo, ef, "~", "\\textasciitilde"),
en(es, eo, ef, "\\", "\\textbackslash"),
en(es, eo, ef, "^", "\\textasciicircum"),
en(ei, eo, "rel", "↑", "\\uparrow", !0),
en(ei, eo, "rel", "⇑", "\\Uparrow", !0),
en(ei, eo, "rel", "↓", "\\downarrow", !0),
en(ei, eo, "rel", "⇓", "\\Downarrow", !0),
en(ei, eo, "rel", "↕", "\\updownarrow", !0),
en(ei, eo, "rel", "⇕", "\\Updownarrow", !0),
en(ei, eo, eu, "∐", "\\coprod"),
en(ei, eo, eu, "⋁", "\\bigvee"),
en(ei, eo, eu, "⋀", "\\bigwedge"),
en(ei, eo, eu, "⨄", "\\biguplus"),
en(ei, eo, eu, "⋂", "\\bigcap"),
en(ei, eo, eu, "⋃", "\\bigcup"),
en(ei, eo, eu, "∫", "\\int"),
en(ei, eo, eu, "∫", "\\intop"),
en(ei, eo, eu, "∬", "\\iint"),
en(ei, eo, eu, "∭", "\\iiint"),
en(ei, eo, eu, "∏", "\\prod"),
en(ei, eo, eu, "∑", "\\sum"),
en(ei, eo, eu, "⨂", "\\bigotimes"),
en(ei, eo, eu, "⨁", "\\bigoplus"),
en(ei, eo, eu, "⨀", "\\bigodot"),
en(ei, eo, eu, "∮", "\\oint"),
en(ei, eo, eu, "∯", "\\oiint"),
en(ei, eo, eu, "∰", "\\oiiint"),
en(ei, eo, eu, "⨆", "\\bigsqcup"),
en(ei, eo, eu, "∫", "\\smallint"),
en(es, eo, em, "…", "\\textellipsis"),
en(ei, eo, em, "…", "\\mathellipsis"),
en(es, eo, em, "…", "\\ldots", !0),
en(ei, eo, em, "…", "\\ldots", !0),
en(ei, eo, em, "⋯", "\\@cdots", !0),
en(ei, eo, em, "⋱", "\\ddots", !0),
en(ei, eo, ef, "⋮", "\\varvdots"),
en(es, eo, ef, "⋮", "\\varvdots"),
en(ei, eo, el, "ˊ", "\\acute"),
en(ei, eo, el, "ˋ", "\\grave"),
en(ei, eo, el, "¨", "\\ddot"),
en(ei, eo, el, "~", "\\tilde"),
en(ei, eo, el, "ˉ", "\\bar"),
en(ei, eo, el, "˘", "\\breve"),
en(ei, eo, el, "ˇ", "\\check"),
en(ei, eo, el, "^", "\\hat"),
en(ei, eo, el, "⃗", "\\vec"),
en(ei, eo, el, "˙", "\\dot"),
en(ei, eo, el, "˚", "\\mathring"),
en(ei, eo, ec, "", "\\@imath"),
en(ei, eo, ec, "", "\\@jmath"),
en(ei, eo, ef, "ı", "ı"),
en(ei, eo, ef, "ȷ", "ȷ"),
en(es, eo, ef, "ı", "\\i", !0),
en(es, eo, ef, "ȷ", "\\j", !0),
en(es, eo, ef, "ß", "\\ss", !0),
en(es, eo, ef, "æ", "\\ae", !0),
en(es, eo, ef, "œ", "\\oe", !0),
en(es, eo, ef, "ø", "\\o", !0),
en(es, eo, ef, "Æ", "\\AE", !0),
en(es, eo, ef, "Œ", "\\OE", !0),
en(es, eo, ef, "Ø", "\\O", !0),
en(es, eo, el, "ˊ", "\\'"),
en(es, eo, el, "ˋ", "\\`"),
en(es, eo, el, "ˆ", "\\^"),
en(es, eo, el, "˜", "\\~"),
en(es, eo, el, "ˉ", "\\="),
en(es, eo, el, "˘", "\\u"),
en(es, eo, el, "˙", "\\."),
en(es, eo, el, "¸", "\\c"),
en(es, eo, el, "˚", "\\r"),
en(es, eo, el, "ˇ", "\\v"),
en(es, eo, el, "¨", '\\"'),
en(es, eo, el, "˝", "\\H"),
en(es, eo, el, "◯", "\\textcircled");
var eb = { "--": !0, "---": !0, "``": !0, "''": !0 };
en(es, eo, ef, "–", "--", !0),
en(es, eo, ef, "–", "\\textendash"),
en(es, eo, ef, "—", "---", !0),
en(es, eo, ef, "—", "\\textemdash"),
en(es, eo, ef, "‘", "`", !0),
en(es, eo, ef, "‘", "\\textquoteleft"),
en(es, eo, ef, "’", "'", !0),
en(es, eo, ef, "’", "\\textquoteright"),
en(es, eo, ef, "“", "``", !0),
en(es, eo, ef, "“", "\\textquotedblleft"),
en(es, eo, ef, "”", "''", !0),
en(es, eo, ef, "”", "\\textquotedblright"),
en(ei, eo, ef, "°", "\\degree", !0),
en(es, eo, ef, "°", "\\degree"),
en(es, eo, ef, "°", "\\textdegree", !0),
en(ei, eo, ef, "£", "\\pounds"),
en(ei, eo, ef, "£", "\\mathsterling", !0),
en(es, eo, ef, "£", "\\pounds"),
en(es, eo, ef, "£", "\\textsterling", !0),
en(ei, "ams", ef, "✠", "\\maltese"),
en(es, "ams", ef, "✠", "\\maltese");
for (var ev = '0123456789/@."', ey = 0; ey < ev.length; ey++) {
var ex = ev.charAt(ey);
en(ei, eo, ef, ex, ex);
}
for (var ew = '0123456789!@*()-=+";:?/.,', ek = 0; ek < ew.length; ek++) {
var ez = ew.charAt(ek);
en(es, eo, ef, ez, ez);
}
for (
var eS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", eM = 0;
eM < eS.length;
eM++
) {
var eA = eS.charAt(eM);
en(ei, eo, ec, eA, eA), en(es, eo, ef, eA, eA);
}
en(ei, "ams", ef, "C", "ℂ"),
en(es, "ams", ef, "C", "ℂ"),
en(ei, "ams", ef, "H", "ℍ"),
en(es, "ams", ef, "H", "ℍ"),
en(ei, "ams", ef, "N", "ℕ"),
en(es, "ams", ef, "N", "ℕ"),
en(ei, "ams", ef, "P", "ℙ"),
en(es, "ams", ef, "P", "ℙ"),
en(ei, "ams", ef, "Q", "ℚ"),
en(es, "ams", ef, "Q", "ℚ"),
en(ei, "ams", ef, "R", "ℝ"),
en(es, "ams", ef, "R", "ℝ"),
en(ei, "ams", ef, "Z", "ℤ"),
en(es, "ams", ef, "Z", "ℤ"),
en(ei, eo, ec, "h", "ℎ"),
en(es, eo, ec, "h", "ℎ");
for (var eT = "", eB = 0; eB < eS.length; eB++) {
var eq = eS.charAt(eB);
en(ei, eo, ec, eq, (eT = String.fromCharCode(55349, 56320 + eB))),
en(es, eo, ef, eq, eT),
en(ei, eo, ec, eq, (eT = String.fromCharCode(55349, 56372 + eB))),
en(es, eo, ef, eq, eT),
en(ei, eo, ec, eq, (eT = String.fromCharCode(55349, 56424 + eB))),
en(es, eo, ef, eq, eT),
en(ei, eo, ec, eq, (eT = String.fromCharCode(55349, 56580 + eB))),
en(es, eo, ef, eq, eT),
en(ei, eo, ec, eq, (eT = String.fromCharCode(55349, 56684 + eB))),
en(es, eo, ef, eq, eT),
en(ei, eo, ec, eq, (eT = String.fromCharCode(55349, 56736 + eB))),
en(es, eo, ef, eq, eT),
en(ei, eo, ec, eq, (eT = String.fromCharCode(55349, 56788 + eB))),
en(es, eo, ef, eq, eT),
en(ei, eo, ec, eq, (eT = String.fromCharCode(55349, 56840 + eB))),
en(es, eo, ef, eq, eT),
en(ei, eo, ec, eq, (eT = String.fromCharCode(55349, 56944 + eB))),
en(es, eo, ef, eq, eT),
eB < 26 &&
(en(ei, eo, ec, eq, (eT = String.fromCharCode(55349, 56632 + eB))),
en(es, eo, ef, eq, eT),
en(ei, eo, ec, eq, (eT = String.fromCharCode(55349, 56476 + eB))),
en(es, eo, ef, eq, eT));
}
en(ei, eo, ec, "k", (eT = String.fromCharCode(55349, 56668))),
en(es, eo, ef, "k", eT);
for (var eC = 0; eC < 10; eC++) {
var eI = eC.toString();
en(ei, eo, ec, eI, (eT = String.fromCharCode(55349, 57294 + eC))),
en(es, eo, ef, eI, eT),
en(ei, eo, ec, eI, (eT = String.fromCharCode(55349, 57314 + eC))),
en(es, eo, ef, eI, eT),
en(ei, eo, ec, eI, (eT = String.fromCharCode(55349, 57324 + eC))),
en(es, eo, ef, eI, eT),
en(ei, eo, ec, eI, (eT = String.fromCharCode(55349, 57334 + eC))),
en(es, eo, ef, eI, eT);
}
for (var eH = "ÐÞþ", eR = 0; eR < eH.length; eR++) {
var eE = eH.charAt(eR);
en(ei, eo, ec, eE, eE), en(es, eo, ef, eE, eE);
}
var eO = [
["mathbf", "textbf", "Main-Bold"],
["mathbf", "textbf", "Main-Bold"],
["mathnormal", "textit", "Math-Italic"],
["mathnormal", "textit", "Math-Italic"],
["boldsymbol", "boldsymbol", "Main-BoldItalic"],
["boldsymbol", "boldsymbol", "Main-BoldItalic"],
["mathscr", "textscr", "Script-Regular"],
["", "", ""],
["", "", ""],
["", "", ""],
["mathfrak", "textfrak", "Fraktur-Regular"],
["mathfrak", "textfrak", "Fraktur-Regular"],
["mathbb", "textbb", "AMS-Regular"],
["mathbb", "textbb", "AMS-Regular"],
["mathboldfrak", "textboldfrak", "Fraktur-Regular"],
["mathboldfrak", "textboldfrak", "Fraktur-Regular"],
["mathsf", "textsf", "SansSerif-Regular"],
["mathsf", "textsf", "SansSerif-Regular"],
["mathboldsf", "textboldsf", "SansSerif-Bold"],
["mathboldsf", "textboldsf", "SansSerif-Bold"],
["mathitsf", "textitsf", "SansSerif-Italic"],
["mathitsf", "textitsf", "SansSerif-Italic"],
["", "", ""],
["", "", ""],
["mathtt", "texttt", "Typewriter-Regular"],
["mathtt", "texttt", "Typewriter-Regular"],
],
eD = [
["mathbf", "textbf", "Main-Bold"],
["", "", ""],
["mathsf", "textsf", "SansSerif-Regular"],
["mathboldsf", "textboldsf", "SansSerif-Bold"],
["mathtt", "texttt", "Typewriter-Regular"],
],
eN = function (e, t, r) {
if (ea[r][e]) {
var a = ea[r][e].replace;
a && (e = a);
}
return { value: e, metrics: Q(e, t, r) };
},
eL = function (e, t, r, a, n) {
var i,
s = eN(e, t, r),
o = s.metrics;
if (((e = s.value), o)) {
var l = o.italic;
("text" === r || (a && "mathit" === a.font)) && (l = 0),
(i = new X(e, o.height, o.depth, l, o.skew, o.width, n));
} else
"u" > typeof console &&
console.warn(
"No character metrics " +
("for '" + e + "' in style '" + t + "' and mode '") +
r +
"'",
),
(i = new X(e, 0, 0, 0, 0, 0, n));
if (a) {
(i.maxFontSize = a.sizeMultiplier),
a.style.isTight() && i.classes.push("mtight");
var h = a.getColor();
h && (i.style.color = h);
}
return i;
},
eP = function (e, t, r, a) {
return (void 0 === a && (a = []),
"boldsymbol" === r.font && eN(e, "Main-Bold", t).metrics)
? eL(e, "Main-Bold", t, r, a.concat(["mathbf"]))
: "\\" === e || "main" === ea[t][e].font
? eL(e, "Main-Regular", t, r, a)
: eL(e, "AMS-Regular", t, r, a.concat(["amsrm"]));
},
eF = function (e, r, a) {
var n = e.mode,
i = e.text,
s = ["mord"],
o = "math" === n || ("text" === n && r.font),
l = o ? r.font : r.fontFamily,
h = "",
m = "";
if (
(55349 === i.charCodeAt(0) &&
([h, m] = ((e, r) => {
var a =
(e.charCodeAt(0) - 55296) * 1024 +
(e.charCodeAt(1) - 56320) +
65536,
n = +("math" !== r);
if (119808 <= a && a < 120484) {
var i = Math.floor((a - 119808) / 26);
return [eO[i][2], eO[i][n]];
}
if (120782 <= a && a <= 120831) {
var s = Math.floor((a - 120782) / 10);
return [eD[s][2], eD[s][n]];
}
if (120485 === a || 120486 === a) return [eO[0][2], eO[0][n]];
if (120486 < a && a < 120782) return ["", ""];
throw new t("Unsupported character: " + e);
})(i, n)),
h.length > 0)
)
return eL(i, h, n, r, s.concat(m));
if (l) {
if ("boldsymbol" === l) {
var c,
u,
p =
"textord" !== a && eN(i, "Math-BoldItalic", n).metrics
? { fontName: "Math-BoldItalic", fontClass: "boldsymbol" }
: { fontName: "Main-Bold", fontClass: "mathbf" };
(c = p.fontName), (u = [p.fontClass]);
} else
o
? ((c = e0[l].fontName), (u = [l]))
: ((c = eQ(l, r.fontWeight, r.fontShape)),
(u = [l, r.fontWeight, r.fontShape]));
if (eN(i, c, n).metrics) return eL(i, c, n, r, s.concat(u));
if (eb.hasOwnProperty(i) && "Typewriter" === c.slice(0, 10)) {
for (var d = [], g = 0; g < i.length; g++)
d.push(eL(i[g], c, n, r, s.concat(u)));
return e_(d);
}
}
if ("mathord" === a)
return eL(i, "Math-Italic", n, r, s.concat(["mathnormal"]));
if ("textord" === a) {
var f = ea[n][i] && ea[n][i].font;
if ("ams" === f)
return eL(
i,
eQ("amsrm", r.fontWeight, r.fontShape),
n,
r,
s.concat("amsrm", r.fontWeight, r.fontShape),
);
if ("main" === f || !f)
return eL(
i,
eQ("textrm", r.fontWeight, r.fontShape),
n,
r,
s.concat(r.fontWeight, r.fontShape),
);
var b = eQ(f, r.fontWeight, r.fontShape);
return eL(i, b, n, r, s.concat(b, r.fontWeight, r.fontShape));
}
throw Error("unexpected type: " + a + " in makeOrd");
},
eV = (e, t) => {
if (
D(e.classes) !== D(t.classes) ||
e.skew !== t.skew ||
e.maxFontSize !== t.maxFontSize ||
(0 !== e.italic && e.hasClass("mathnormal"))
)
return !1;
if (1 === e.classes.length) {
var r = e.classes[0];
if ("mbin" === r || "mord" === r) return !1;
}
for (var a of Object.keys(e.style))
if (e.style[a] !== t.style[a]) return !1;
for (var n of Object.keys(t.style))
if (e.style[n] !== t.style[n]) return !1;
return !0;
},
eG = (e) => {
for (var t = 0; t < e.length - 1; t++) {
var r = e[t],
a = e[t + 1];
r instanceof X &&
a instanceof X &&
eV(r, a) &&
((r.text += a.text),
(r.height = Math.max(r.height, a.height)),
(r.depth = Math.max(r.depth, a.depth)),
(r.italic = a.italic),
e.splice(t + 1, 1),
t--);
}
return e;
},
eU = function (e) {
for (var t = 0, r = 0, a = 0, n = 0; n < e.children.length; n++) {
var i = e.children[n];
i.height > t && (t = i.height),
i.depth > r && (r = i.depth),
i.maxFontSize > a && (a = i.maxFontSize);
}
(e.height = t), (e.depth = r), (e.maxFontSize = a);
},
eY = function (e, t, r, a) {
var n = new V(e, t, r, a);
return eU(n), n;
},
eX = (e, t, r, a) => new V(e, t, r, a),
ej = function (e, t, r) {
var a = eY([e], [], t);
return (
(a.height = Math.max(
r || t.fontMetrics().defaultRuleThickness,
t.minRuleThickness,
)),
(a.style.borderBottomWidth = O(a.height)),
(a.maxFontSize = 1),
a
);
},
eW = function (e, t, r, a) {
var n = new G(e, t, r, a);
return eU(n), n;
},
e_ = function (e) {
var t = new C(e);
return eU(t), t;
},
e$ = function (e, t) {
return e instanceof C ? eY([], [e], t) : e;
},
eZ = function (e) {
if ("individualShift" === e.positionType) {
for (
var t,
r = e.children,
a = [r[0]],
n = -r[0].shift - r[0].elem.depth,
i = n,
s = 1;
s < r.length;
s++
) {
var o = -r[s].shift - i - r[s].elem.depth,
l = o - (r[s - 1].elem.height + r[s - 1].elem.depth);
(i += o), a.push({ type: "kern", size: l }), a.push(r[s]);
}
return { children: a, depth: n };
}
if ("top" === e.positionType) {
for (var h = e.positionData, m = 0; m < e.children.length; m++) {
var c = e.children[m];
h -= "kern" === c.type ? c.size : c.elem.height + c.elem.depth;
}
t = h;
} else if ("bottom" === e.positionType) t = -e.positionData;
else {
var u = e.children[0];
if ("elem" !== u.type)
throw Error('First child must have type "elem".');
if ("shift" === e.positionType) t = -u.elem.depth - e.positionData;
else if ("firstBaseline" === e.positionType) t = -u.elem.depth;
else throw Error("Invalid positionType " + e.positionType + ".");
}
return { children: e.children, depth: t };
},
eK = function (e, t) {
for (
var r, { children: a, depth: n } = eZ(e), i = 0, s = 0;
s < a.length;
s++
) {
var o = a[s];
if ("elem" === o.type) {
var l = o.elem;
i = Math.max(i, l.maxFontSize, l.height);
}
}
i += 2;
var h = eY(["pstrut"], []);
h.style.height = O(i);
for (var m = [], c = n, u = n, p = n, d = 0; d < a.length; d++) {
var g = a[d];
if ("kern" === g.type) p += g.size;
else {
var f = g.elem,
b = eY(
g.wrapperClasses || [],
[h, f],
void 0,
g.wrapperStyle || {},
);
(b.style.top = O(-i - p - f.depth)),
g.marginLeft && (b.style.marginLeft = g.marginLeft),
g.marginRight && (b.style.marginRight = g.marginRight),
m.push(b),
(p += f.height + f.depth);
}
(c = Math.min(c, p)), (u = Math.max(u, p));
}
var v = eY(["vlist"], m);
if (((v.style.height = O(u)), c < 0)) {
var y = eY([], []),
x = eY(["vlist"], [y]);
x.style.height = O(-c);
var w = eY(["vlist-s"], [new X("​")]);
r = [eY(["vlist-r"], [v, w]), eY(["vlist-r"], [x])];
} else r = [eY(["vlist-r"], [v])];
var k = eY(["vlist-t"], r);
return (
2 === r.length && k.classes.push("vlist-t2"),
(k.height = u),
(k.depth = -c),
k
);
},
eJ = (e, t) => {
var r = eY(["mspace"], [], t),
a = E(e, t);
return (r.style.marginRight = O(a)), r;
},
eQ = function (e, t, r) {
var a = "";
switch (e) {
case "amsrm":
a = "AMS";
break;
case "textrm":
a = "Main";
break;
case "textsf":
a = "SansSerif";
break;
case "texttt":
a = "Typewriter";
break;
default:
a = e;
}
return (
a +
"-" +
("textbf" === t && "textit" === r
? "BoldItalic"
: "textbf" === t
? "Bold"
: "textit" === t
? "Italic"
: "Regular")
);
},
e0 = {
mathbf: { variant: "bold", fontName: "Main-Bold" },
mathrm: { variant: "normal", fontName: "Main-Regular" },
textit: { variant: "italic", fontName: "Main-Italic" },
mathit: { variant: "italic", fontName: "Main-Italic" },
mathnormal: { variant: "italic", fontName: "Math-Italic" },
mathsfit: {
variant: "sans-serif-italic",
fontName: "SansSerif-Italic",
},
mathbb: { variant: "double-struck", fontName: "AMS-Regular" },
mathcal: { variant: "script", fontName: "Caligraphic-Regular" },
mathfrak: { variant: "fraktur", fontName: "Fraktur-Regular" },
mathscr: { variant: "script", fontName: "Script-Regular" },
mathsf: { variant: "sans-serif", fontName: "SansSerif-Regular" },
mathtt: { variant: "monospace", fontName: "Typewriter-Regular" },
},
e1 = {
vec: ["vec", 0.471, 0.714],
oiintSize1: ["oiintSize1", 0.957, 0.499],
oiintSize2: ["oiintSize2", 1.472, 0.659],
oiiintSize1: ["oiiintSize1", 1.304, 0.499],
oiiintSize2: ["oiiintSize2", 1.98, 0.659],
},
e4 = function (e, t) {
var [r, a, n] = e1[e],
i = eX(
["overlay"],
[
new j([new W(r)], {
width: O(a),
height: O(n),
style: "width:" + O(a),
viewBox: "0 0 " + 1e3 * a + " " + 1e3 * n,
preserveAspectRatio: "xMinYMin",
}),
],
t,
);
return (
(i.height = n), (i.style.height = O(n)), (i.style.width = O(a)), i
);
},
e5 = { number: 3, unit: "mu" },
e6 = { number: 4, unit: "mu" },
e7 = { number: 5, unit: "mu" },
e3 = {
mord: { mop: e5, mbin: e6, mrel: e7, minner: e5 },
mop: { mord: e5, mop: e5, mrel: e7, minner: e5 },
mbin: { mord: e6, mop: e6, mopen: e6, minner: e6 },
mrel: { mord: e7, mop: e7, mopen: e7, minner: e7 },
mopen: {},
mclose: { mop: e5, mbin: e6, mrel: e7, minner: e5 },
mpunct: {
mord: e5,
mop: e5,
mrel: e7,
mopen: e5,
mclose: e5,
mpunct: e5,
minner: e5,
},
minner: {
mord: e5,
mop: e5,
mbin: e6,
mrel: e7,
mopen: e5,
mpunct: e5,
minner: e5,
},
},
e8 = {
mord: { mop: e5 },
mop: { mord: e5, mop: e5 },
mbin: {},
mrel: {},
mopen: {},
mclose: { mop: e5 },
mpunct: {},
minner: { mop: e5 },
},
e2 = {},
e9 = {},
te = {};
function tt(e) {
for (
var {
type: t,
names: r,
props: a,
handler: n,
htmlBuilder: i,
mathmlBuilder: s,
} = e,
o = {
type: t,
numArgs: a.numArgs,
argTypes: a.argTypes,
allowedInArgument: !!a.allowedInArgument,
allowedInText: !!a.allowedInText,
allowedInMath: void 0 === a.allowedInMath || a.allowedInMath,
numOptionalArgs: a.numOptionalArgs || 0,
infix: !!a.infix,
primitive: !!a.primitive,
handler: n,
},
l = 0;
l < r.length;
++l
)
e2[r[l]] = o;
t && (i && (e9[t] = i), s && (te[t] = s));
}
function tr(e) {
var { type: t, htmlBuilder: r, mathmlBuilder: a } = e;
tt({
type: t,
names: [],
props: { numArgs: 0 },
handler() {
throw Error("Should never be called.");
},
htmlBuilder: r,
mathmlBuilder: a,
});
}
var ta = function (e) {
return "ordgroup" === e.type && 1 === e.body.length ? e.body[0] : e;
},
tn = function (e) {
return "ordgroup" === e.type ? e.body : [e];
},
ti = new Set(["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"]),
ts = new Set(["rightmost", "mrel", "mclose", "mpunct"]),
to = {
display: k.DISPLAY,
text: k.TEXT,
script: k.SCRIPT,
scriptscript: k.SCRIPTSCRIPT,
},
tl = {
mord: "mord",
mop: "mop",
mbin: "mbin",
mrel: "mrel",
mopen: "mopen",
mclose: "mclose",
mpunct: "mpunct",
minner: "minner",
},
th = function (e, t, r, a) {
void 0 === a && (a = [null, null]);
for (var n = [], i = 0; i < e.length; i++) {
var s = tg(e[i], t);
if (s instanceof C) {
var o = s.children;
n.push(...o);
} else n.push(s);
}
if ((eG(n), !r)) return n;
var l = t;
if (1 === e.length) {
var h = e[0];
"sizing" === h.type
? (l = t.havingSize(h.size))
: "styling" === h.type && (l = t.havingStyle(to[h.style]));
}
var m = eY([a[0] || "leftmost"], [], t),
c = eY([a[1] || "rightmost"], [], t),
u = "root" === r;
return (
tm(
n,
(e, t) => {
var r = t.classes[0],
a = e.classes[0];
"mbin" === r && ts.has(a)
? (t.classes[0] = "mord")
: "mbin" === a && ti.has(r) && (e.classes[0] = "mord");
},
{ node: m },
c,
u,
),
tm(
n,
(e, t) => {
var r,
a,
n = tp(t),
i = tp(e),
s =
n && i
? e.hasClass("mtight")
? null == (r = e8[n])
? void 0
: r[i]
: null == (a = e3[n])
? void 0
: a[i]
: null;
if (s) return eJ(s, l);
},
{ node: m },
c,
u,
),
n
);
},
tm = function (e, t, r, a, n) {
a && e.push(a);
for (var i = 0; i < e.length; i++) {
let a;
var s = e[i],
o = tc(s);
if (o) {
tm(o.children, t, r, null, n);
continue;
}
var l = !s.hasClass("mspace");
if (l) {
var h = t(s, r.node);
h && (r.insertAfter ? r.insertAfter(h) : (e.unshift(h), i++));
}
l
? (r.node = s)
: n && s.hasClass("newline") && (r.node = eY(["leftmost"])),
(a = i),
(r.insertAfter = (t) => {
e.splice(a + 1, 0, t), i++;
});
}
a && e.pop();
},
tc = function (e) {
return e instanceof C ||
e instanceof G ||
(e instanceof V && e.hasClass("enclosing"))
? e
: null;
},
tu = function (e, t) {
var r = tc(e);
if (r) {
var a = r.children;
if (a.length) {
if ("right" === t) return tu(a[a.length - 1], "right");
else if ("left" === t) return tu(a[0], "left");
}
}
return e;
},
tp = function (e, t) {
return e ? (t && (e = tu(e, t)), tl[e.classes[0]] || null) : null;
},
td = function (e, t) {
var r = ["nulldelimiter"].concat(e.baseSizingClasses());
return eY(t.concat(r));
},
tg = function (e, r, a) {
if (!e) return eY();
if (e9[e.type]) {
var n = e9[e.type](e, r);
if (a && r.size !== a.size) {
n = eY(r.sizingClasses(a), [n], r);
var i = r.sizeMultiplier / a.sizeMultiplier;
(n.height *= i), (n.depth *= i);
}
return n;
}
throw new t("Got group of unknown type: '" + e.type + "'");
};
function tf(e, t) {
var r = eY(["base"], e, t),
a = eY(["strut"]);
return (
(a.style.height = O(r.height + r.depth)),
r.depth && (a.style.verticalAlign = O(-r.depth)),
r.children.unshift(a),
r
);
}
function tb(e, t) {
var r,
a,
n = null;
1 === e.length &&
"tag" === e[0].type &&
((n = e[0].tag), (e = e[0].body));
var i = th(e, t, "root");
2 === i.length && i[1].hasClass("tag") && (r = i.pop());
for (var s = [], o = [], l = 0; l < i.length; l++)
if (
(o.push(i[l]),
i[l].hasClass("mbin") ||
i[l].hasClass("mrel") ||
i[l].hasClass("allowbreak"))
) {
for (
var h = !1;
l < i.length - 1 &&
i[l + 1].hasClass("mspace") &&
!i[l + 1].hasClass("newline");
)
l++, o.push(i[l]), i[l].hasClass("nobreak") && (h = !0);
h || (s.push(tf(o, t)), (o = []));
} else
i[l].hasClass("newline") &&
(o.pop(),
o.length > 0 && (s.push(tf(o, t)), (o = [])),
s.push(i[l]));
o.length > 0 && s.push(tf(o, t)),
n
? (((a = tf(th(n, t, !0), t)).classes = ["tag"]), s.push(a))
: r && s.push(r);
var m = eY(["katex-html"], s);
if ((m.setAttribute("aria-hidden", "true"), a)) {
var c = a.children[0];
(c.style.height = O(m.height + m.depth)),
m.depth && (c.style.verticalAlign = O(-m.depth));
}
return m;
}
class tv {
constructor(e, t, r) {
(this.type = e),
(this.attributes = {}),
(this.children = t || []),
(this.classes = r || []);
}
setAttribute(e, t) {
this.attributes[e] = t;
}
getAttribute(e) {
return this.attributes[e];
}
toNode() {
var e = document.createElementNS(
"http://www.w3.org/1998/Math/MathML",
this.type,
);
for (var t in this.attributes)
Object.prototype.hasOwnProperty.call(this.attributes, t) &&
e.setAttribute(t, this.attributes[t]);
this.classes.length > 0 && (e.className = D(this.classes));
for (var r = 0; r < this.children.length; r++)
if (
this.children[r] instanceof ty &&
this.children[r + 1] instanceof ty
) {
for (
var a = this.children[r].toText() + this.children[++r].toText();
this.children[r + 1] instanceof ty;
)
a += this.children[++r].toText();
e.appendChild(new ty(a).toNode());
} else e.appendChild(this.children[r].toNode());
return e;
}
toMarkup() {
var e = "<" + this.type;
for (var t in this.attributes)
Object.prototype.hasOwnProperty.call(this.attributes, t) &&
((e += " " + t + '="'), (e += l(this.attributes[t])), (e += '"'));
this.classes.length > 0 &&
(e += ' class ="' + l(D(this.classes)) + '"'),
(e += ">");
for (var r = 0; r < this.children.length; r++)
e += this.children[r].toMarkup();
return e + ("</" + this.type + ">");
}
toText() {
return this.children.map((e) => e.toText()).join("");
}
}
class ty {
constructor(e) {
this.text = e;
}
toNode() {
return document.createTextNode(this.text);
}
toMarkup() {
return l(this.toText());
}
toText() {
return this.text;
}
}
class tx {
constructor(e) {
(this.width = e),
e >= 0.05555 && e <= 0.05556
? (this.character = " ")
: e >= 0.1666 && e <= 0.1667
? (this.character = " ")
: e >= 0.2222 && e <= 0.2223
? (this.character = " ")
: e >= 0.2777 && e <= 0.2778
? (this.character = "  ")
: e >= -0.05556 && e <= -0.05555
? (this.character = " ⁣")
: e >= -0.1667 && e <= -0.1666
? (this.character = " ⁣")
: e >= -0.2223 && e <= -0.2222
? (this.character = " ⁣")
: e >= -0.2778 && e <= -0.2777
? (this.character = " ⁣")
: (this.character = null);
}
toNode() {
if (this.character) return document.createTextNode(this.character);
var e = document.createElementNS(
"http://www.w3.org/1998/Math/MathML",
"mspace",
);
return e.setAttribute("width", O(this.width)), e;
}
toMarkup() {
return this.character
? "<mtext>" + this.character + "</mtext>"
: '<mspace width="' + O(this.width) + '"/>';
}
toText() {
return this.character ? this.character : " ";
}
}
var tw = new Set(["\\imath", "\\jmath"]),
tk = new Set(["mrow", "mtable"]),
tz = function (e, t, r) {
return (
ea[t][e] &&
ea[t][e].replace &&
55349 !== e.charCodeAt(0) &&
!(
eb.hasOwnProperty(e) &&
r &&
((r.fontFamily && "tt" === r.fontFamily.slice(4, 6)) ||
(r.font && "tt" === r.font.slice(4, 6)))
) &&
(e = ea[t][e].replace),
new ty(e)
);
},
tS = function (e) {
return 1 === e.length ? e[0] : new tv("mrow", e);
},
tM = function (e, t) {
if ("texttt" === t.fontFamily) return "monospace";
if ("textsf" === t.fontFamily)
if ("textit" === t.fontShape && "textbf" === t.fontWeight)
return "sans-serif-bold-italic";
else if ("textit" === t.fontShape) return "sans-serif-italic";
else if ("textbf" === t.fontWeight) return "bold-sans-serif";
else return "sans-serif";
if ("textit" === t.fontShape && "textbf" === t.fontWeight)
return "bold-italic";
if ("textit" === t.fontShape) return "italic";
if ("textbf" === t.fontWeight) return "bold";
var r = t.font;
if (!r || "mathnormal" === r) return null;
var a = e.mode;
if ("mathit" === r) return "italic";
if ("boldsymbol" === r)
return "textord" === e.type ? "bold" : "bold-italic";
if ("mathbf" === r) return "bold";
if ("mathbb" === r) return "double-struck";
if ("mathsfit" === r) return "sans-serif-italic";
else if ("mathfrak" === r) return "fraktur";
else if ("mathscr" === r || "mathcal" === r) return "script";
else if ("mathsf" === r) return "sans-serif";
else if ("mathtt" === r) return "monospace";
var n = e.text;
if (tw.has(n)) return null;
if (ea[a][n]) {
var i = ea[a][n].replace;
i && (n = i);
}
return Q(n, e0[r].fontName, a) ? e0[r].variant : null;
};
function tA(e) {
if (!e) return !1;
if ("mi" === e.type && 1 === e.children.length) {
var t = e.children[0];
return t instanceof ty && "." === t.text;
}
if (
"mo" !== e.type ||
1 !== e.children.length ||
"true" !== e.getAttribute("separator") ||
"0em" !== e.getAttribute("lspace") ||
"0em" !== e.getAttribute("rspace")
)
return !1;
var r = e.children[0];
return r instanceof ty && "," === r.text;
}
var tT = function (e, t, r) {
if (1 === e.length) {
var a,
n = tq(e[0], t);
return (
r &&
n instanceof tv &&
"mo" === n.type &&
(n.setAttribute("lspace", "0em"),
n.setAttribute("rspace", "0em")),
[n]
);
}
for (var i = [], s = 0; s < e.length; s++) {
var o = tq(e[s], t);
if (o instanceof tv && a instanceof tv) {
if (
"mtext" === o.type &&
"mtext" === a.type &&
o.getAttribute("mathvariant") === a.getAttribute("mathvariant")
) {
a.children.push(...o.children);
continue;
} else if ("mn" === o.type && "mn" === a.type) {
a.children.push(...o.children);
continue;
} else if (tA(o) && "mn" === a.type) {
a.children.push(...o.children);
continue;
} else if ("mn" === o.type && tA(a))
(o.children = [...a.children, ...o.children]), i.pop();
else if (
("msup" === o.type || "msub" === o.type) &&
o.children.length >= 1 &&
("mn" === a.type || tA(a))
) {
var l = o.children[0];
l instanceof tv &&
"mn" === l.type &&
((l.children = [...a.children, ...l.children]), i.pop());
} else if ("mi" === a.type && 1 === a.children.length) {
var h = a.children[0];
if (
h instanceof ty &&
"̸" === h.text &&
("mo" === o.type || "mi" === o.type || "mn" === o.type)
) {
var m = o.children[0];
m instanceof ty &&
m.text.length > 0 &&
((m.text = m.text.slice(0, 1) + "̸" + m.text.slice(1)),
i.pop());
}
}
}
i.push(o), (a = o);
}
return i;
},
tB = function (e, t, r) {
return tS(tT(e, t, r));
},
tq = function (e, r) {
if (!e) return new tv("mrow");
if (te[e.type]) return te[e.type](e, r);
throw new t("Got group of unknown type: '" + e.type + "'");
};
function tC(e, t, r, a, n) {
var i,
s = tT(e, r);
i =
1 === s.length && s[0] instanceof tv && tk.has(s[0].type)
? s[0]
: new tv("mrow", s);
var o = new tv("annotation", [new ty(t)]);
o.setAttribute("encoding", "application/x-tex");
var l = new tv("semantics", [i, o]),
h = new tv("math", [l]);
return (
h.setAttribute("xmlns", "http://www.w3.org/1998/Math/MathML"),
a && h.setAttribute("display", "block"),
eY([n ? "katex" : "katex-mathml"], [h])
);
}
var tI = [
[1, 1, 1],
[2, 1, 1],
[3, 1, 1],
[4, 2, 1],
[5, 2, 1],
[6, 3, 1],
[7, 4, 2],
[8, 6, 3],
[9, 7, 6],
[10, 8, 7],
[11, 10, 9],
],
tH = [0.5, 0.6, 0.7, 0.8, 0.9, 1, 1.2, 1.44, 1.728, 2.074, 2.488],
tR = function (e, t) {
return t.size < 2 ? e : tI[e - 1][t.size - 1];
};
class tE {
constructor(e) {
(this.style = e.style),
(this.color = e.color),
(this.size = e.size || tE.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 = tH[this.size - 1]),
(this.maxSize = e.maxSize),
(this.minRuleThickness = e.minRuleThickness),
(this._fontMetrics = void 0);
}
extend(e) {
var t = {
style: this.style,
size: this.size,
textSize: this.textSize,
color: this.color,
phantom: this.phantom,
font: this.font,
fontFamily: this.fontFamily,
fontWeight: this.fontWeight,
fontShape: this.fontShape,
maxSize: this.maxSize,
minRuleThickness: this.minRuleThickness,
};
return Object.assign(t, e), new tE(t);
}
havingStyle(e) {
return this.style === e
? this
: this.extend({ style: e, size: tR(this.textSize, e) });
}
havingCrampedStyle() {
return this.havingStyle(this.style.cramp());
}
havingSize(e) {
return this.size === e && this.textSize === e
? this
: this.extend({
style: this.style.text(),
size: e,
textSize: e,
sizeMultiplier: tH[e - 1],
});
}
havingBaseStyle(e) {
e = e || this.style.text();
var t = tR(tE.BASESIZE, e);
return this.size === t &&
this.textSize === tE.BASESIZE &&
this.style === e
? this
: this.extend({ style: e, size: t });
}
havingBaseSizing() {
var e;
switch (this.style.id) {
case 4:
case 5:
e = 3;
break;
case 6:
case 7:
e = 1;
break;
default:
e = 6;
}
return this.extend({ style: this.style.text(), size: e });
}
withColor(e) {
return this.extend({ color: e });
}
withPhantom() {
return this.extend({ phantom: !0 });
}
withFont(e) {
return this.extend({ font: e });
}
withTextFontFamily(e) {
return this.extend({ fontFamily: e, font: "" });
}
withTextFontWeight(e) {
return this.extend({ fontWeight: e, font: "" });
}
withTextFontShape(e) {
return this.extend({ fontShape: e, font: "" });
}
sizingClasses(e) {
return e.size !== this.size
? ["sizing", "reset-size" + e.size, "size" + this.size]
: [];
}
baseSizingClasses() {
return this.size !== tE.BASESIZE
? ["sizing", "reset-size" + this.size, "size" + tE.BASESIZE]
: [];
}
fontMetrics() {
return (
this._fontMetrics ||
(this._fontMetrics = (function (e) {
var t;
if (!ee[(t = e >= 5 ? 0 : e >= 3 ? 1 : 2)]) {
var r = (ee[t] = { cssEmPerMu: Z.quad[t] / 18 });
for (var a in Z) Z.hasOwnProperty(a) && (r[a] = Z[a][t]);
}
return ee[t];
})(this.size)),
this._fontMetrics
);
}
getColor() {
return this.phantom ? "transparent" : this.color;
}
}
tE.BASESIZE = 6;
var tO = function (e) {
return new tE({
style: e.displayMode ? k.DISPLAY : k.TEXT,
maxSize: e.maxSize,
minRuleThickness: e.minRuleThickness,
});
},
tD = function (e, t) {
if (t.displayMode) {
var r = ["katex-display"];
t.leqno && r.push("leqno"),
t.fleqn && r.push("fleqn"),
(e = eY(r, [e]));
}
return e;
},
tN = function (e, t, r) {
var a = tO(r);
return "mathml" === r.output
? tC(e, t, a, r.displayMode, !0)
: tD(
"html" === r.output
? eY(["katex"], [tb(e, a)])
: eY(["katex"], [tC(e, t, a, r.displayMode, !1), tb(e, a)]),
r,
);
},
tL = {
widehat: "^",
widecheck: "ˇ",
widetilde: "~",
utilde: "~",
overleftarrow: "←",
underleftarrow: "←",
xleftarrow: "←",
overrightarrow: "→",
underrightarrow: "→",
xrightarrow: "→",
underbrace: "⏟",
overbrace: "⏞",
overgroup: "⏠",
undergroup: "⏡",
overleftrightarrow: "↔",
underleftrightarrow: "↔",
xleftrightarrow: "↔",
Overrightarrow: "⇒",
xRightarrow: "⇒",
overleftharpoon: "↼",
xleftharpoonup: "↼",
overrightharpoon: "⇀",
xrightharpoonup: "⇀",
xLeftarrow: "⇐",
xLeftrightarrow: "⇔",
xhookleftarrow: "↩",
xhookrightarrow: "↪",
xmapsto: "↦",
xrightharpoondown: "⇁",
xleftharpoondown: "↽",
xrightleftharpoons: "⇌",
xleftrightharpoons: "⇋",
xtwoheadleftarrow: "↞",
xtwoheadrightarrow: "↠",
xlongequal: "=",
xtofrom: "⇄",
xrightleftarrows: "⇄",
xrightequilibrium: "⇌",
xleftequilibrium: "⇋",
"\\cdrightarrow": "→",
"\\cdleftarrow": "←",
"\\cdlongequal": "=",
},
tP = function (e) {
var t = new tv("mo", [new ty(tL[e.replace(/^\\/, "")])]);
return t.setAttribute("stretchy", "true"), t;
},
tF = {
overrightarrow: [["rightarrow"], 0.888, 522, "xMaxYMin"],
overleftarrow: [["leftarrow"], 0.888, 522, "xMinYMin"],
underrightarrow: [["rightarrow"], 0.888, 522, "xMaxYMin"],
underleftarrow: [["leftarrow"], 0.888, 522, "xMinYMin"],
xrightarrow: [["rightarrow"], 1.469, 522, "xMaxYMin"],
"\\cdrightarrow": [["rightarrow"], 3, 522, "xMaxYMin"],
xleftarrow: [["leftarrow"], 1.469, 522, "xMinYMin"],
"\\cdleftarrow": [["leftarrow"], 3, 522, "xMinYMin"],
Overrightarrow: [["doublerightarrow"], 0.888, 560, "xMaxYMin"],
xRightarrow: [["doublerightarrow"], 1.526, 560, "xMaxYMin"],
xLeftarrow: [["doubleleftarrow"], 1.526, 560, "xMinYMin"],
overleftharpoon: [["leftharpoon"], 0.888, 522, "xMinYMin"],
xleftharpoonup: [["leftharpoon"], 0.888, 522, "xMinYMin"],
xleftharpoondown: [["leftharpoondown"], 0.888, 522, "xMinYMin"],
overrightharpoon: [["rightharpoon"], 0.888, 522, "xMaxYMin"],
xrightharpoonup: [["rightharpoon"], 0.888, 522, "xMaxYMin"],
xrightharpoondown: [["rightharpoondown"], 0.888, 522, "xMaxYMin"],
xlongequal: [["longequal"], 0.888, 334, "xMinYMin"],
"\\cdlongequal": [["longequal"], 3, 334, "xMinYMin"],
xtwoheadleftarrow: [["twoheadleftarrow"], 0.888, 334, "xMinYMin"],
xtwoheadrightarrow: [["twoheadrightarrow"], 0.888, 334, "xMaxYMin"],
overleftrightarrow: [["leftarrow", "rightarrow"], 0.888, 522],
overbrace: [["leftbrace", "midbrace", "rightbrace"], 1.6, 548],
underbrace: [
["leftbraceunder", "midbraceunder", "rightbraceunder"],
1.6,
548,
],
underleftrightarrow: [["leftarrow", "rightarrow"], 0.888, 522],
xleftrightarrow: [["leftarrow", "rightarrow"], 1.75, 522],
xLeftrightarrow: [["doubleleftarrow", "doublerightarrow"], 1.75, 560],
xrightleftharpoons: [
["leftharpoondownplus", "rightharpoonplus"],
1.75,
716,
],
xleftrightharpoons: [
["leftharpoonplus", "rightharpoondownplus"],
1.75,
716,
],
xhookleftarrow: [["leftarrow", "righthook"], 1.08, 522],
xhookrightarrow: [["lefthook", "rightarrow"], 1.08, 522],
overlinesegment: [["leftlinesegment", "rightlinesegment"], 0.888, 522],
underlinesegment: [["leftlinesegment", "rightlinesegment"], 0.888, 522],
overgroup: [["leftgroup", "rightgroup"], 0.888, 342],
undergroup: [["leftgroupunder", "rightgroupunder"], 0.888, 342],
xmapsto: [["leftmapsto", "rightarrow"], 1.5, 522],
xtofrom: [["leftToFrom", "rightToFrom"], 1.75, 528],
xrightleftarrows: [
["baraboveleftarrow", "rightarrowabovebar"],
1.75,
901,
],
xrightequilibrium: [
["baraboveshortleftharpoon", "rightharpoonaboveshortbar"],
1.75,
716,
],
xleftequilibrium: [
["shortbaraboveleftharpoon", "shortrightharpoonabovebar"],
1.75,
716,
],
},
tV = new Set(["widehat", "widecheck", "widetilde", "utilde"]),
tG = function (e, t) {
var {
span: r,
minWidth: a,
height: n,
} = (function () {
var r = 4e5,
a = e.label.slice(1);
if (tV.has(a)) {
var n,
i,
s,
o = "ordgroup" === e.base.type ? e.base.body.length : 1;
if (o > 5)
"widehat" === a || "widecheck" === a
? ((n = 420), (r = 2364), (s = 0.42), (i = a + "4"))
: ((n = 312), (r = 2340), (s = 0.34), (i = "tilde4"));
else {
var l = [1, 1, 2, 2, 3, 3][o];
"widehat" === a || "widecheck" === a
? ((r = [0, 1062, 2364, 2364, 2364][l]),
(n = [0, 239, 300, 360, 420][l]),
(s = [0, 0.24, 0.3, 0.3, 0.36, 0.42][l]),
(i = a + l))
: ((r = [0, 600, 1033, 2339, 2340][l]),
(n = [0, 260, 286, 306, 312][l]),
(s = [0, 0.26, 0.286, 0.3, 0.306, 0.34][l]),
(i = "tilde" + l));
}
return {
span: eX(
[],
[
new j([new W(i)], {
width: "100%",
height: O(s),
viewBox: "0 0 " + r + " " + n,
preserveAspectRatio: "none",
}),
],
t,
),
minWidth: 0,
height: s,
};
}
var h,
m,
c = [],
u = tF[a],
[p, d, g] = u,
f = g / 1e3,
b = p.length;
if (1 === b) (h = ["hide-tail"]), (m = [u[3]]);
else if (2 === b)
(h = ["halfarrow-left", "halfarrow-right"]),
(m = ["xMinYMin", "xMaxYMin"]);
else if (3 === b)
(h = ["brace-left", "brace-center", "brace-right"]),
(m = ["xMinYMin", "xMidYMin", "xMaxYMin"]);
else
throw Error(
"Correct katexImagesData or update code here to support\n " +
b +
" children.",
);
for (var v = 0; v < b; v++) {
var y = new j([new W(p[v])], {
width: "400em",
height: O(f),
viewBox: "0 0 " + r + " " + g,
preserveAspectRatio: m[v] + " slice",
}),
x = eX([h[v]], [y], t);
if (1 === b) return { span: x, minWidth: d, height: f };
(x.style.height = O(f)), c.push(x);
}
return { span: eY(["stretchy"], c, t), minWidth: d, height: f };
})();
return (
(r.height = n),
(r.style.height = O(n)),
a > 0 && (r.style.minWidth = O(a)),
r
);
},
tU = function (e, t, r, a, n) {
var i,
s = e.height + e.depth + r + a;
if (/fbox|color|angl/.test(t)) {
if (((i = eY(["stretchy", t], [], n)), "fbox" === t)) {
var o = n.color && n.getColor();
o && (i.style.borderColor = o);
}
} else {
var l = [];
/^[bx]cancel$/.test(t) &&
l.push(
new _({
x1: "0",
y1: "0",
x2: "100%",
y2: "100%",
"stroke-width": "0.046em",
}),
),
/^x?cancel$/.test(t) &&
l.push(
new _({
x1: "0",
y1: "100%",
x2: "100%",
y2: "0",
"stroke-width": "0.046em",
}),
),
(i = eX([], [new j(l, { width: "100%", height: O(s) })], n));
}
return (i.height = s), (i.style.height = O(s)), i;
};
function tY(e, t) {
if (!e || e.type !== t)
throw Error(
"Expected node of type " +
t +
", but got " +
(e ? "node of type " + e.type : String(e)),
);
return e;
}
function tX(e) {
var t = tj(e);
if (!t)
throw Error(
"Expected node of symbol group type, but got " +
(e ? "node of type " + e.type : String(e)),
);
return t;
}
function tj(e) {
return e && ("atom" === e.type || er.hasOwnProperty(e.type)) ? e : null;
}
var tW = (e) =>
e instanceof X
? e
: (e instanceof V || e instanceof G || e instanceof C) &&
1 === e.children.length
? tW(e.children[0])
: void 0,
t_ = (e, t) => {
e && "supsub" === e.type
? ((o = (l = tY(e.base, "accent")).base),
(e.base = o),
(h = (function (e) {
if (e instanceof V) return e;
throw Error(
"Expected span<HtmlDomNode> but got " + String(e) + ".",
);
})(tg(e, t))),
(e.base = l))
: (o = (l = tY(e, "accent")).base);
var r = tg(o, t.havingCrampedStyle()),
a = l.isShifty && c(o),
n = 0;
a && (n = null != (m = null == (u = tW(r)) ? void 0 : u.skew) ? m : 0);
var i = "\\c" === l.label,
s = i
? r.height + r.depth
: Math.min(r.height, t.fontMetrics().xHeight);
if (l.isStretchy)
g = eK({
positionType: "firstBaseline",
children: [
{ type: "elem", elem: r },
{
type: "elem",
elem: (g = tG(l, t)),
wrapperClasses: ["svg-align"],
wrapperStyle:
n > 0
? {
width: "calc(100% - " + O(2 * n) + ")",
marginLeft: O(2 * n),
}
: void 0,
},
],
});
else {
"\\vec" === l.label
? ((p = e4("vec", t)), (d = e1.vec[1]))
: (((p = (function (e) {
if (e instanceof X) return e;
throw Error("Expected symbolNode but got " + String(e) + ".");
})(
(p = eF(
{ type: "textord", mode: l.mode, text: l.label },
t,
"textord",
)),
)).italic = 0),
(d = p.width),
i && (s += p.depth));
var o,
l,
h,
m,
u,
p,
d,
g = eY(["accent-body"], [p]),
f = "\\textcircled" === l.label;
f && (g.classes.push("accent-full"), (s = r.height));
var b = n;
f || (b -= d / 2),
(g.style.left = O(b)),
"\\textcircled" === l.label && (g.style.top = ".2em"),
(g = eK({
positionType: "firstBaseline",
children: [
{ type: "elem", elem: r },
{ type: "kern", size: -s },
{ type: "elem", elem: g },
],
}));
}
var v = eY(["mord", "accent"], [g], t);
return h
? ((h.children[0] = v),
(h.height = Math.max(v.height, h.height)),
(h.classes[0] = "mord"),
h)
: v;
},
t$ = (e, t) => {
var r = e.isStretchy
? tP(e.label)
: new tv("mo", [tz(e.label, e.mode)]),
a = new tv("mover", [tq(e.base, t), r]);
return a.setAttribute("accent", "true"), a;
},
tZ = new RegExp(
[
"\\acute",
"\\grave",
"\\ddot",
"\\tilde",
"\\bar",
"\\breve",
"\\check",
"\\hat",
"\\vec",
"\\dot",
"\\mathring",
]
.map((e) => "\\" + e)
.join("|"),
);
tt({
type: "accent",
names: [
"\\acute",
"\\grave",
"\\ddot",
"\\tilde",
"\\bar",
"\\breve",
"\\check",
"\\hat",
"\\vec",
"\\dot",
"\\mathring",
"\\widecheck",
"\\widehat",
"\\widetilde",
"\\overrightarrow",
"\\overleftarrow",
"\\Overrightarrow",
"\\overleftrightarrow",
"\\overgroup",
"\\overlinesegment",
"\\overleftharpoon",
"\\overrightharpoon",
],
props: { numArgs: 1 },
handler: (e, t) => {
var r = ta(t[0]),
a = !tZ.test(e.funcName),
n =
!a ||
"\\widehat" === e.funcName ||
"\\widetilde" === e.funcName ||
"\\widecheck" === e.funcName;
return {
type: "accent",
mode: e.parser.mode,
label: e.funcName,
isStretchy: a,
isShifty: n,
base: r,
};
},
htmlBuilder: t_,
mathmlBuilder: t$,
}),
tt({
type: "accent",
names: [
"\\'",
"\\`",
"\\^",
"\\~",
"\\=",
"\\u",
"\\.",
'\\"',
"\\c",
"\\r",
"\\H",
"\\v",
"\\textcircled",
],
props: {
numArgs: 1,
allowedInText: !0,
allowedInMath: !0,
argTypes: ["primitive"],
},
handler: (e, t) => {
var r = t[0],
a = e.parser.mode;
return (
"math" === a &&
(e.parser.settings.reportNonstrict(
"mathVsTextAccents",
"LaTeX's accent " + e.funcName + " works only in text mode",
),
(a = "text")),
{
type: "accent",
mode: a,
label: e.funcName,
isStretchy: !1,
isShifty: !0,
base: r,
}
);
},
htmlBuilder: t_,
mathmlBuilder: t$,
}),
tt({
type: "accentUnder",
names: [
"\\underleftarrow",
"\\underrightarrow",
"\\underleftrightarrow",
"\\undergroup",
"\\underlinesegment",
"\\utilde",
],
props: { numArgs: 1 },
handler: (e, t) => {
var { parser: r, funcName: a } = e,
n = t[0];
return { type: "accentUnder", mode: r.mode, label: a, base: n };
},
htmlBuilder: (e, t) => {
var r = tg(e.base, t),
a = tG(e, t),
n = 0.12 * ("\\utilde" === e.label);
return eY(
["mord", "accentunder"],
[
eK({
positionType: "top",
positionData: r.height,
children: [
{ type: "elem", elem: a, wrapperClasses: ["svg-align"] },
{ type: "kern", size: n },
{ type: "elem", elem: r },
],
}),
],
t,
);
},
mathmlBuilder: (e, t) => {
var r = tP(e.label),
a = new tv("munder", [tq(e.base, t), r]);
return a.setAttribute("accentunder", "true"), a;
},
});
var tK = (e) => {
var t = new tv("mpadded", e ? [e] : []);
return (
t.setAttribute("width", "+0.6em"), t.setAttribute("lspace", "0.3em"), t
);
};
function tJ(e, t) {
var r = th(e.body, t, !0);
return eY([e.mclass], r, t);
}
function tQ(e, t) {
var r,
a = tT(e.body, t);
return (
"minner" === e.mclass
? (r = new tv("mpadded", a))
: "mord" === e.mclass
? e.isCharacterBox
? ((r = a[0]).type = "mi")
: (r = new tv("mi", a))
: (e.isCharacterBox
? ((r = a[0]).type = "mo")
: (r = new tv("mo", a)),
"mbin" === e.mclass
? ((r.attributes.lspace = "0.22em"),
(r.attributes.rspace = "0.22em"))
: "mpunct" === e.mclass
? ((r.attributes.lspace = "0em"),
(r.attributes.rspace = "0.17em"))
: "mopen" === e.mclass || "mclose" === e.mclass
? ((r.attributes.lspace = "0em"),
(r.attributes.rspace = "0em"))
: "minner" === e.mclass &&
((r.attributes.lspace = "0.0556em"),
(r.attributes.width = "+0.1111em"))),
r
);
}
tt({
type: "xArrow",
names: [
"\\xleftarrow",
"\\xrightarrow",
"\\xLeftarrow",
"\\xRightarrow",
"\\xleftrightarrow",
"\\xLeftrightarrow",
"\\xhookleftarrow",
"\\xhookrightarrow",
"\\xmapsto",
"\\xrightharpoondown",
"\\xrightharpoonup",
"\\xleftharpoondown",
"\\xleftharpoonup",
"\\xrightleftharpoons",
"\\xleftrightharpoons",
"\\xlongequal",
"\\xtwoheadrightarrow",
"\\xtwoheadleftarrow",
"\\xtofrom",
"\\xrightleftarrows",
"\\xrightequilibrium",
"\\xleftequilibrium",
"\\\\cdrightarrow",
"\\\\cdleftarrow",
"\\\\cdlongequal",
],
props: { numArgs: 1, numOptionalArgs: 1 },
handler(e, t, r) {
var { parser: a, funcName: n } = e;
return {
type: "xArrow",
mode: a.mode,
label: n,
body: t[0],
below: r[0],
};
},
htmlBuilder(e, t) {
var r,
a,
n = t.style,
i = t.havingStyle(n.sup()),
s = e$(tg(e.body, i, t), t),
o = "\\x" === e.label.slice(0, 2) ? "x" : "cd";
s.classes.push(o + "-arrow-pad"),
e.below &&
((i = t.havingStyle(n.sub())),
(r = e$(tg(e.below, i, t), t)).classes.push(o + "-arrow-pad"));
var l = tG(e, t),
h = -t.fontMetrics().axisHeight + 0.5 * l.height,
m = -t.fontMetrics().axisHeight - 0.5 * l.height - 0.111;
if (
((s.depth > 0.25 || "\\xleftequilibrium" === e.label) &&
(m -= s.depth),
r)
) {
var c =
-t.fontMetrics().axisHeight + r.height + 0.5 * l.height + 0.111;
a = eK({
positionType: "individualShift",
children: [
{ type: "elem", elem: s, shift: m },
{ type: "elem", elem: l, shift: h },
{ type: "elem", elem: r, shift: c },
],
});
} else
a = eK({
positionType: "individualShift",
children: [
{ type: "elem", elem: s, shift: m },
{ type: "elem", elem: l, shift: h },
],
});
return (
a.children[0].children[0].children[1].classes.push("svg-align"),
eY(["mrel", "x-arrow"], [a], t)
);
},
mathmlBuilder(e, t) {
var r,
a = tP(e.label);
if (
(a.setAttribute(
"minsize",
"x" === e.label.charAt(0) ? "1.75em" : "3.0em",
),
e.body)
) {
var n = tK(tq(e.body, t));
r = e.below
? new tv("munderover", [a, tK(tq(e.below, t)), n])
: new tv("mover", [a, n]);
} else
r = e.below
? new tv("munder", [a, tK(tq(e.below, t))])
: new tv("mover", [a, (r = tK())]);
return r;
},
}),
tt({
type: "mclass",
names: [
"\\mathord",
"\\mathbin",
"\\mathrel",
"\\mathopen",
"\\mathclose",
"\\mathpunct",
"\\mathinner",
],
props: { numArgs: 1, primitive: !0 },
handler(e, t) {
var { parser: r, funcName: a } = e,
n = t[0];
return {
type: "mclass",
mode: r.mode,
mclass: "m" + a.slice(5),
body: tn(n),
isCharacterBox: c(n),
};
},
htmlBuilder: tJ,
mathmlBuilder: tQ,
});
var t0 = (e) => {
var t = "ordgroup" === e.type && e.body.length ? e.body[0] : e;
return "atom" === t.type && ("bin" === t.family || "rel" === t.family)
? "m" + t.family
: "mord";
};
tt({
type: "mclass",
names: ["\\@binrel"],
props: { numArgs: 2 },
handler(e, t) {
var { parser: r } = e;
return {
type: "mclass",
mode: r.mode,
mclass: t0(t[0]),
body: tn(t[1]),
isCharacterBox: c(t[1]),
};
},
}),
tt({
type: "mclass",
names: ["\\stackrel", "\\overset", "\\underset"],
props: { numArgs: 2 },
handler(e, t) {
var r,
{ parser: a, funcName: n } = e,
i = t[1],
s = t[0];
r = "\\stackrel" !== n ? t0(i) : "mrel";
var o = {
type: "op",
mode: i.mode,
limits: !0,
alwaysHandleSupSub: !0,
parentIsSupSub: !1,
symbol: !1,
suppressBaseShift: "\\stackrel" !== n,
body: tn(i),
},
l = {
type: "supsub",
mode: s.mode,
base: o,
sup: "\\underset" === n ? null : s,
sub: "\\underset" === n ? s : null,
};
return {
type: "mclass",
mode: a.mode,
mclass: r,
body: [l],
isCharacterBox: c(l),
};
},
htmlBuilder: tJ,
mathmlBuilder: tQ,
}),
tt({
type: "pmb",
names: ["\\pmb"],
props: { numArgs: 1, allowedInText: !0 },
handler(e, t) {
var { parser: r } = e;
return {
type: "pmb",
mode: r.mode,
mclass: t0(t[0]),
body: tn(t[0]),
};
},
htmlBuilder(e, t) {
var r = th(e.body, t, !0),
a = eY([e.mclass], r, t);
return (a.style.textShadow = "0.02em 0.01em 0.04px"), a;
},
mathmlBuilder(e, t) {
var r = new tv("mstyle", tT(e.body, t));
return (
r.setAttribute("style", "text-shadow: 0.02em 0.01em 0.04px"), r
);
},
});
var t1 = {
">": "\\\\cdrightarrow",
"<": "\\\\cdleftarrow",
"=": "\\\\cdlongequal",
A: "\\uparrow",
V: "\\downarrow",
"|": "\\Vert",
".": "no arrow",
},
t4 = () => ({
type: "styling",
body: [],
mode: "math",
style: "display",
}),
t5 = (e) => "textord" === e.type && "@" === e.text,
t6 = (e, t) =>
("mathord" === e.type || "atom" === e.type) && e.text === t;
tt({
type: "cdlabel",
names: ["\\\\cdleft", "\\\\cdright"],
props: { numArgs: 1 },
handler(e, t) {
var { parser: r, funcName: a } = e;
return { type: "cdlabel", mode: r.mode, side: a.slice(4), label: t[0] };
},
htmlBuilder(e, t) {
var r = t.havingStyle(t.style.sup()),
a = e$(tg(e.label, r, t), t);
return (
a.classes.push("cd-label-" + e.side),
(a.style.bottom = O(0.8 - a.depth)),
(a.height = 0),
(a.depth = 0),
a
);
},
mathmlBuilder(e, t) {
var r = new tv("mrow", [tq(e.label, t)]);
return (
(r = new tv("mpadded", [r])).setAttribute("width", "0"),
"left" === e.side && r.setAttribute("lspace", "-1width"),
r.setAttribute("voffset", "0.7em"),
(r = new tv("mstyle", [r])).setAttribute("displaystyle", "false"),
r.setAttribute("scriptlevel", "1"),
r
);
},
}),
tt({
type: "cdlabelparent",
names: ["\\\\cdparent"],
props: { numArgs: 1 },
handler(e, t) {
var { parser: r } = e;
return { type: "cdlabelparent", mode: r.mode, fragment: t[0] };
},
htmlBuilder(e, t) {
var r = e$(tg(e.fragment, t), t);
return r.classes.push("cd-vert-arrow"), r;
},
mathmlBuilder: (e, t) => new tv("mrow", [tq(e.fragment, t)]),
}),
tt({
type: "textord",
names: ["\\@char"],
props: { numArgs: 1, allowedInText: !0 },
handler(e, r) {
for (
var a,
{ parser: n } = e,
i = tY(r[0], "ordgroup").body,
s = "",
o = 0;
o < i.length;
o++
)
s += tY(i[o], "textord").text;
var l = parseInt(s);
if (isNaN(l)) throw new t("\\@char has non-numeric argument " + s);
if (l < 0 || l >= 1114111)
throw new t("\\@char with invalid code point " + s);
return (
l <= 65535
? (a = String.fromCharCode(l))
: ((l -= 65536),
(a = String.fromCharCode(
(l >> 10) + 55296,
(1023 & l) + 56320,
))),
{ type: "textord", mode: n.mode, text: a }
);
},
});
var t7 = (e, t) => e_(th(e.body, t.withColor(e.color), !1)),
t3 = (e, t) => {
var r = new tv("mstyle", tT(e.body, t.withColor(e.color)));
return r.setAttribute("mathcolor", e.color), r;
};
tt({
type: "color",
names: ["\\textcolor"],
props: { numArgs: 2, allowedInText: !0, argTypes: ["color", "original"] },
handler(e, t) {
var { parser: r } = e,
a = tY(t[0], "color-token").color,
n = t[1];
return { type: "color", mode: r.mode, color: a, body: tn(n) };
},
htmlBuilder: t7,
mathmlBuilder: t3,
}),
tt({
type: "color",
names: ["\\color"],
props: { numArgs: 1, allowedInText: !0, argTypes: ["color"] },
handler(e, t) {
var { parser: r, breakOnTokenText: a } = e,
n = tY(t[0], "color-token").color;
r.gullet.macros.set("\\current@color", n);
var i = r.parseExpression(!0, a);
return { type: "color", mode: r.mode, color: n, body: i };
},
htmlBuilder: t7,
mathmlBuilder: t3,
}),
tt({
type: "cr",
names: ["\\\\"],
props: { numArgs: 0, numOptionalArgs: 0, allowedInText: !0 },
handler(e, t, r) {
var { parser: a } = e,
n = "[" === a.gullet.future().text ? a.parseSizeGroup(!0) : null,
i =
!a.settings.displayMode ||
!a.settings.useStrictBehavior(
"newLineInDisplayMode",
"In LaTeX, \\\\ or \\newline does nothing in display mode",
);
return {
type: "cr",
mode: a.mode,
newLine: i,
size: n && tY(n, "size").value,
};
},
htmlBuilder(e, t) {
var r = eY(["mspace"], [], t);
return (
e.newLine &&
(r.classes.push("newline"),
e.size && (r.style.marginTop = O(E(e.size, t)))),
r
);
},
mathmlBuilder(e, t) {
var r = new tv("mspace");
return (
e.newLine &&
(r.setAttribute("linebreak", "newline"),
e.size && r.setAttribute("height", O(E(e.size, t)))),
r
);
},
});
var t8 = {
"\\global": "\\global",
"\\long": "\\\\globallong",
"\\\\globallong": "\\\\globallong",
"\\def": "\\gdef",
"\\gdef": "\\gdef",
"\\edef": "\\xdef",
"\\xdef": "\\xdef",
"\\let": "\\\\globallet",
"\\futurelet": "\\\\globalfuture",
},
t2 = (e) => {
var r = e.text;
if (/^(?:[\\{}$&#^_]|EOF)$/.test(r))
throw new t("Expected a control sequence", e);
return r;
},
t9 = (e, t, r, a) => {
var n = e.gullet.macros.get(r.text);
null == n &&
((r.noexpand = !0),
(n = {
tokens: [r],
numArgs: 0,
unexpandable: !e.gullet.isExpandable(r.text),
})),
e.gullet.macros.set(t, n, a);
};
tt({
type: "internal",
names: ["\\global", "\\long", "\\\\globallong"],
props: { numArgs: 0, allowedInText: !0 },
handler(e) {
var { parser: r, funcName: a } = e;
r.consumeSpaces();
var n = r.fetch();
if (t8[n.text])
return (
("\\global" === a || "\\\\globallong" === a) &&
(n.text = t8[n.text]),
tY(r.parseFunction(), "internal")
);
throw new t("Invalid token after macro prefix", n);
},
}),
tt({
type: "internal",
names: ["\\def", "\\gdef", "\\edef", "\\xdef"],
props: { numArgs: 0, allowedInText: !0, primitive: !0 },
handler(e) {
var r,
{ parser: a, funcName: n } = e,
i = a.gullet.popToken(),
s = i.text;
if (/^(?:[\\{}$&#^_]|EOF)$/.test(s))
throw new t("Expected a control sequence", i);
for (var o = 0, l = [[]]; "{" !== a.gullet.future().text; )
if ("#" === (i = a.gullet.popToken()).text) {
if ("{" === a.gullet.future().text) {
(r = a.gullet.future()), l[o].push("{");
break;
}
if (((i = a.gullet.popToken()), !/^[1-9]$/.test(i.text)))
throw new t('Invalid argument number "' + i.text + '"');
if (parseInt(i.text) !== o + 1)
throw new t('Argument number "' + i.text + '" out of order');
o++, l.push([]);
} else if ("EOF" === i.text)
throw new t("Expected a macro definition");
else l[o].push(i.text);
var { tokens: h } = a.gullet.consumeArg();
return (
r && h.unshift(r),
("\\edef" === n || "\\xdef" === n) &&
(h = a.gullet.expandTokens(h)).reverse(),
a.gullet.macros.set(
s,
{ tokens: h, numArgs: o, delimiters: l },
n === t8[n],
),
{ type: "internal", mode: a.mode }
);
},
}),
tt({
type: "internal",
names: ["\\let", "\\\\globallet"],
props: { numArgs: 0, allowedInText: !0, primitive: !0 },
handler(e) {
var t,
{ parser: r, funcName: a } = e,
n = t2(r.gullet.popToken());
r.gullet.consumeSpaces();
var i =
("=" === (t = r.gullet.popToken()).text &&
" " === (t = r.gullet.popToken()).text &&
(t = r.gullet.popToken()),
t);
return (
t9(r, n, i, "\\\\globallet" === a),
{ type: "internal", mode: r.mode }
);
},
}),
tt({
type: "internal",
names: ["\\futurelet", "\\\\globalfuture"],
props: { numArgs: 0, allowedInText: !0, primitive: !0 },
handler(e) {
var { parser: t, funcName: r } = e,
a = t2(t.gullet.popToken()),
n = t.gullet.popToken(),
i = t.gullet.popToken();
return (
t9(t, a, i, "\\\\globalfuture" === r),
t.gullet.pushToken(i),
t.gullet.pushToken(n),
{ type: "internal", mode: t.mode }
);
},
});
var re = function (e, t, r) {
var a = Q((ea.math[e] && ea.math[e].replace) || e, t, r);
if (!a)
throw Error("Unsupported symbol " + e + " and font size " + t + ".");
return a;
},
rt = function (e, t, r, a) {
var n = r.havingBaseStyle(t),
i = eY(a.concat(n.sizingClasses(r)), [e], r),
s = n.sizeMultiplier / r.sizeMultiplier;
return (
(i.height *= s), (i.depth *= s), (i.maxFontSize = n.sizeMultiplier), i
);
},
rr = function (e, t, r) {
var a = t.havingBaseStyle(r),
n =
(1 - t.sizeMultiplier / a.sizeMultiplier) *
t.fontMetrics().axisHeight;
e.classes.push("delimcenter"),
(e.style.top = O(n)),
(e.height -= n),
(e.depth += n);
},
ra = function (e, t, r, a, n, i) {
var s = rt(eL(e, "Main-Regular", n, a), t, a, i);
return r && rr(s, a, t), s;
},
rn = function (e, t, r, a, n, i) {
var s = eL(e, "Size" + t + "-Regular", n, a),
o = rt(eY(["delimsizing", "size" + t], [s], a), k.TEXT, a, i);
return r && rr(o, a, k.TEXT), o;
},
ri = function (e, t, r) {
return {
type: "elem",
elem: eY(
[
"delimsizinginner",
"Size1-Regular" === t ? "delim-size1" : "delim-size4",
],
[eY([], [eL(e, t, r)])],
),
};
},
rs = function (e, t, r) {
var a = $["Size4-Regular"][e.charCodeAt(0)]
? $["Size4-Regular"][e.charCodeAt(0)][4]
: $["Size1-Regular"][e.charCodeAt(0)][4],
n = eX(
[],
[
new j([new W("inner", T(e, Math.round(1e3 * t)))], {
width: O(a),
height: O(t),
style: "width:" + O(a),
viewBox: "0 0 " + 1e3 * a + " " + Math.round(1e3 * t),
preserveAspectRatio: "xMinYMin",
}),
],
r,
);
return (
(n.height = t),
(n.style.height = O(t)),
(n.style.width = O(a)),
{ type: "elem", elem: n }
);
},
ro = { type: "kern", size: -0.008 },
rl = new Set(["|", "\\lvert", "\\rvert", "\\vert"]),
rh = new Set(["\\|", "\\lVert", "\\rVert", "\\Vert"]),
rm = function (e, t, r, a, n, i) {
var s,
o,
l,
h,
m = "",
c = 0;
(s = l = h = e), (o = null);
var u = "Size1-Regular";
"\\uparrow" === e
? (l = h = "⏐")
: "\\Uparrow" === e
? (l = h = "‖")
: "\\downarrow" === e
? (s = l = "⏐")
: "\\Downarrow" === e
? (s = l = "‖")
: "\\updownarrow" === e
? ((s = "\\uparrow"), (l = "⏐"), (h = "\\downarrow"))
: "\\Updownarrow" === e
? ((s = "\\Uparrow"), (l = "‖"), (h = "\\Downarrow"))
: rl.has(e)
? ((l = "∣"), (m = "vert"), (c = 333))
: rh.has(e)
? ((l = "∥"), (m = "doublevert"), (c = 556))
: "[" === e || "\\lbrack" === e
? ((s = "⎡"),
(l = "⎢"),
(h = "⎣"),
(u = "Size4-Regular"),
(m = "lbrack"),
(c = 667))
: "]" === e || "\\rbrack" === e
? ((s = "⎤"),
(l = "⎥"),
(h = "⎦"),
(u = "Size4-Regular"),
(m = "rbrack"),
(c = 667))
: "\\lfloor" === e || "⌊" === e
? ((l = s = "⎢"),
(h = "⎣"),
(u = "Size4-Regular"),
(m = "lfloor"),
(c = 667))
: "\\lceil" === e || "⌈" === e
? ((s = "⎡"),
(l = h = "⎢"),
(u = "Size4-Regular"),
(m = "lceil"),
(c = 667))
: "\\rfloor" === e || "⌋" === e
? ((l = s = "⎥"),
(h = "⎦"),
(u = "Size4-Regular"),
(m = "rfloor"),
(c = 667))
: "\\rceil" === e || "⌉" === e
? ((s = "⎤"),
(l = h = "⎥"),
(u = "Size4-Regular"),
(m = "rceil"),
(c = 667))
: "(" === e || "\\lparen" === e
? ((s = "⎛"),
(l = "⎜"),
(h = "⎝"),
(u = "Size4-Regular"),
(m = "lparen"),
(c = 875))
: ")" === e || "\\rparen" === e
? ((s = "⎞"),
(l = "⎟"),
(h = "⎠"),
(u = "Size4-Regular"),
(m = "rparen"),
(c = 875))
: "\\{" === e || "\\lbrace" === e
? ((s = "⎧"),
(o = "⎨"),
(h = "⎩"),
(l = "⎪"),
(u = "Size4-Regular"))
: "\\}" === e || "\\rbrace" === e
? ((s = "⎫"),
(o = "⎬"),
(h = "⎭"),
(l = "⎪"),
(u = "Size4-Regular"))
: "\\lgroup" === e || "⟮" === e
? ((s = "⎧"),
(h = "⎩"),
(l = "⎪"),
(u = "Size4-Regular"))
: "\\rgroup" === e || "⟯" === e
? ((s = "⎫"),
(h = "⎭"),
(l = "⎪"),
(u = "Size4-Regular"))
: "\\lmoustache" === e ||
"⎰" === e
? ((s = "⎧"),
(h = "⎭"),
(l = "⎪"),
(u = "Size4-Regular"))
: ("\\rmoustache" === e ||
"⎱" === e) &&
((s = "⎫"),
(h = "⎩"),
(l = "⎪"),
(u = "Size4-Regular"));
var p = re(s, u, n),
d = p.height + p.depth,
g = re(l, u, n),
f = g.height + g.depth,
b = re(h, u, n),
v = b.height + b.depth,
y = 0,
x = 1;
if (null !== o) {
var w = re(o, u, n);
(y = w.height + w.depth), (x = 2);
}
var z = d + v + y,
S = Math.max(0, Math.ceil((t - z) / (x * f))),
M = z + S * x * f,
A = a.fontMetrics().axisHeight;
r && (A *= a.sizeMultiplier);
var T = M / 2 - A,
B = [];
if (m.length > 0) {
var C = Math.round(1e3 * M),
I = q(m, Math.round(1e3 * (M - d - v))),
H = new W(m, I),
R = (c / 1e3).toFixed(3) + "em",
E = (C / 1e3).toFixed(3) + "em",
O = eX(
[],
[
new j([H], {
width: R,
height: E,
viewBox: "0 0 " + c + " " + C,
}),
],
a,
);
(O.height = C / 1e3),
(O.style.width = R),
(O.style.height = E),
B.push({ type: "elem", elem: O });
} else {
if ((B.push(ri(h, u, n)), B.push(ro), null === o))
B.push(rs(l, M - d - v + 0.016, a));
else {
var D = (M - d - v - y) / 2 + 0.016;
B.push(rs(l, D, a)),
B.push(ro),
B.push(ri(o, u, n)),
B.push(ro),
B.push(rs(l, D, a));
}
B.push(ro), B.push(ri(s, u, n));
}
var N = a.havingBaseStyle(k.TEXT);
return rt(
eY(
["delimsizing", "mult"],
[eK({ positionType: "bottom", positionData: T, children: B })],
N,
),
k.TEXT,
a,
i,
);
},
rc = function (e, t, r, a, n) {
var i = A(e, a, r);
return eX(
["hide-tail"],
[
new j([new W(e, i)], {
width: "400em",
height: O(t),
viewBox: "0 0 400000 " + r,
preserveAspectRatio: "xMinYMin slice",
}),
],
n,
);
},
ru = function (e, t) {
var r,
a,
n = t.havingBaseSizing(),
i = rk("\\surd", e * n.sizeMultiplier, rx, n),
s = n.sizeMultiplier,
o = Math.max(
0,
t.minRuleThickness - t.fontMetrics().sqrtRuleThickness,
),
l = 0,
h = 0,
m = 0;
return (
"small" === i.type
? ((m = 1e3 + 1e3 * o + 80),
e < 1 ? (s = 1) : e < 1.4 && (s = 0.7),
(l = (1 + o + 0.08) / s),
(h = (1 + o) / s),
((r = rc("sqrtMain", l, m, o, t)).style.minWidth = "0.853em"),
(a = 0.833 / s))
: "large" === i.type
? ((m = 1080 * rf[i.size]),
(h = (rf[i.size] + o) / s),
(l = (rf[i.size] + o + 0.08) / s),
((r = rc("sqrtSize" + i.size, l, m, o, t)).style.minWidth =
"1.02em"),
(a = 1 / s))
: ((l = e + o + 0.08),
(h = e + o),
((r = rc(
"sqrtTall",
l,
(m = Math.floor(1e3 * e + o) + 80),
o,
t,
)).style.minWidth = "0.742em"),
(a = 1.056)),
(r.height = h),
(r.style.height = O(l)),
{
span: r,
advanceWidth: a,
ruleWidth: (t.fontMetrics().sqrtRuleThickness + o) * s,
}
);
},
rp = new Set([
"(",
"\\lparen",
")",
"\\rparen",
"[",
"\\lbrack",
"]",
"\\rbrack",
"\\{",
"\\lbrace",
"\\}",
"\\rbrace",
"\\lfloor",
"\\rfloor",
"⌊",
"⌋",
"\\lceil",
"\\rceil",
"⌈",
"⌉",
"\\surd",
]),
rd = new Set([
"\\uparrow",
"\\downarrow",
"\\updownarrow",
"\\Uparrow",
"\\Downarrow",
"\\Updownarrow",
"|",
"\\|",
"\\vert",
"\\Vert",
"\\lvert",
"\\rvert",
"\\lVert",
"\\rVert",
"\\lgroup",
"\\rgroup",
"⟮",
"⟯",
"\\lmoustache",
"\\rmoustache",
"⎰",
"⎱",
]),
rg = new Set([
"<",
">",
"\\langle",
"\\rangle",
"/",
"\\backslash",
"\\lt",
"\\gt",
]),
rf = [0, 1.2, 1.8, 2.4, 3],
rb = function (e, r, a, n, i) {
if (
("<" === e || "\\lt" === e || "⟨" === e
? (e = "\\langle")
: (">" === e || "\\gt" === e || "⟩" === e) && (e = "\\rangle"),
rp.has(e) || rg.has(e))
)
return rn(e, r, !1, a, n, i);
if (rd.has(e)) return rm(e, rf[r], !1, a, n, i);
throw new t("Illegal delimiter: '" + e + "'");
},
rv = [
{ type: "small", style: k.SCRIPTSCRIPT },
{ type: "small", style: k.SCRIPT },
{ type: "small", style: k.TEXT },
{ type: "large", size: 1 },
{ type: "large", size: 2 },
{ type: "large", size: 3 },
{ type: "large", size: 4 },
],
ry = [
{ type: "small", style: k.SCRIPTSCRIPT },
{ type: "small", style: k.SCRIPT },
{ type: "small", style: k.TEXT },
{ type: "stack" },
],
rx = [
{ type: "small", style: k.SCRIPTSCRIPT },
{ type: "small", style: k.SCRIPT },
{ type: "small", style: k.TEXT },
{ type: "large", size: 1 },
{ type: "large", size: 2 },
{ type: "large", size: 3 },
{ type: "large", size: 4 },
{ type: "stack" },
],
rw = function (e) {
if ("small" === e.type) return "Main-Regular";
if ("large" === e.type) return "Size" + e.size + "-Regular";
if ("stack" === e.type) return "Size4-Regular";
throw Error("Add support for delim type '" + e.type + "' here.");
},
rk = function (e, t, r, a) {
for (var n = Math.min(2, 3 - a.style.size), i = n; i < r.length; i++) {
var s = r[i];
if ("stack" === s.type) break;
var o = re(e, rw(s), "math"),
l = o.height + o.depth;
if (
("small" === s.type &&
(l *= a.havingBaseStyle(s.style).sizeMultiplier),
l > t)
)
return s;
}
return r[r.length - 1];
},
rz = function (e, t, r, a, n, i) {
"<" === e || "\\lt" === e || "⟨" === e
? (e = "\\langle")
: (">" === e || "\\gt" === e || "⟩" === e) && (e = "\\rangle");
var s = rg.has(e) ? rv : rp.has(e) ? rx : ry,
o = rk(e, t, s, a);
return "small" === o.type
? ra(e, o.style, r, a, n, i)
: "large" === o.type
? rn(e, o.size, r, a, n, i)
: rm(e, t, r, a, n, i);
},
rS = function (e, t, r, a, n, i) {
var s = a.fontMetrics().axisHeight * a.sizeMultiplier,
o = 5 / a.fontMetrics().ptPerEm,
l = Math.max(t - s, r + s);
return rz(e, Math.max((l / 500) * 901, 2 * l - o), !0, a, n, i);
},
rM = {
"\\bigl": { mclass: "mopen", size: 1 },
"\\Bigl": { mclass: "mopen", size: 2 },
"\\biggl": { mclass: "mopen", size: 3 },
"\\Biggl": { mclass: "mopen", size: 4 },
"\\bigr": { mclass: "mclose", size: 1 },
"\\Bigr": { mclass: "mclose", size: 2 },
"\\biggr": { mclass: "mclose", size: 3 },
"\\Biggr": { mclass: "mclose", size: 4 },
"\\bigm": { mclass: "mrel", size: 1 },
"\\Bigm": { mclass: "mrel", size: 2 },
"\\biggm": { mclass: "mrel", size: 3 },
"\\Biggm": { mclass: "mrel", size: 4 },
"\\big": { mclass: "mord", size: 1 },
"\\Big": { mclass: "mord", size: 2 },
"\\bigg": { mclass: "mord", size: 3 },
"\\Bigg": { mclass: "mord", size: 4 },
},
rA = new Set([
"(",
"\\lparen",
")",
"\\rparen",
"[",
"\\lbrack",
"]",
"\\rbrack",
"\\{",
"\\lbrace",
"\\}",
"\\rbrace",
"\\lfloor",
"\\rfloor",
"⌊",
"⌋",
"\\lceil",
"\\rceil",
"⌈",
"⌉",
"<",
">",
"\\langle",
"⟨",
"\\rangle",
"⟩",
"\\lt",
"\\gt",
"\\lvert",
"\\rvert",
"\\lVert",
"\\rVert",
"\\lgroup",
"\\rgroup",
"⟮",
"⟯",
"\\lmoustache",
"\\rmoustache",
"⎰",
"⎱",
"/",
"\\backslash",
"|",
"\\vert",
"\\|",
"\\Vert",
"\\uparrow",
"\\Uparrow",
"\\downarrow",
"\\Downarrow",
"\\updownarrow",
"\\Updownarrow",
".",
]);
function rT(e, r) {
var a = tj(e);
if (a && rA.has(a.text)) return a;
if (a)
throw new t(
"Invalid delimiter '" + a.text + "' after '" + r.funcName + "'",
e,
);
throw new t("Invalid delimiter type '" + e.type + "'", e);
}
function rB(e) {
if (!e.body)
throw Error("Bug: The leftright ParseNode wasn't fully parsed.");
}
tt({
type: "delimsizing",
names: [
"\\bigl",
"\\Bigl",
"\\biggl",
"\\Biggl",
"\\bigr",
"\\Bigr",
"\\biggr",
"\\Biggr",
"\\bigm",
"\\Bigm",
"\\biggm",
"\\Biggm",
"\\big",
"\\Big",
"\\bigg",
"\\Bigg",
],
props: { numArgs: 1, argTypes: ["primitive"] },
handler: (e, t) => {
var r = rT(t[0], e);
return {
type: "delimsizing",
mode: e.parser.mode,
size: rM[e.funcName].size,
mclass: rM[e.funcName].mclass,
delim: r.text,
};
},
htmlBuilder: (e, t) =>
"." === e.delim
? eY([e.mclass])
: rb(e.delim, e.size, t, e.mode, [e.mclass]),
mathmlBuilder: (e) => {
var t = [];
"." !== e.delim && t.push(tz(e.delim, e.mode));
var r = new tv("mo", t);
"mopen" === e.mclass || "mclose" === e.mclass
? r.setAttribute("fence", "true")
: r.setAttribute("fence", "false"),
r.setAttribute("stretchy", "true");
var a = O(rf[e.size]);
return r.setAttribute("minsize", a), r.setAttribute("maxsize", a), r;
},
}),
tt({
type: "leftright-right",
names: ["\\right"],
props: { numArgs: 1, primitive: !0 },
handler: (e, r) => {
var a = e.parser.gullet.macros.get("\\current@color");
if (a && "string" != typeof a)
throw new t("\\current@color set to non-string in \\right");
return {
type: "leftright-right",
mode: e.parser.mode,
delim: rT(r[0], e).text,
color: a,
};
},
}),
tt({
type: "leftright",
names: ["\\left"],
props: { numArgs: 1, primitive: !0 },
handler: (e, t) => {
var r = rT(t[0], e),
a = e.parser;
++a.leftrightDepth;
var n = a.parseExpression(!1);
--a.leftrightDepth, a.expect("\\right", !1);
var i = tY(a.parseFunction(), "leftright-right");
return {
type: "leftright",
mode: a.mode,
body: n,
left: r.text,
right: i.delim,
rightColor: i.color,
};
},
htmlBuilder: (e, t) => {
rB(e);
for (
var r,
a,
n = th(e.body, t, !0, ["mopen", "mclose"]),
i = 0,
s = 0,
o = !1,
l = 0;
l < n.length;
l++
)
n[l].isMiddle
? (o = !0)
: ((i = Math.max(n[l].height, i)), (s = Math.max(n[l].depth, s)));
if (
((i *= t.sizeMultiplier),
(s *= t.sizeMultiplier),
(r =
"." === e.left
? td(t, ["mopen"])
: rS(e.left, i, s, t, e.mode, ["mopen"])),
n.unshift(r),
o)
)
for (var h = 1; h < n.length; h++) {
var m = n[h].isMiddle;
m && (n[h] = rS(m.delim, i, s, m.options, e.mode, []));
}
if ("." === e.right) a = td(t, ["mclose"]);
else {
var c = e.rightColor ? t.withColor(e.rightColor) : t;
a = rS(e.right, i, s, c, e.mode, ["mclose"]);
}
return n.push(a), eY(["minner"], n, t);
},
mathmlBuilder: (e, t) => {
rB(e);
var r = tT(e.body, t);
if ("." !== e.left) {
var a = new tv("mo", [tz(e.left, e.mode)]);
a.setAttribute("fence", "true"), r.unshift(a);
}
if ("." !== e.right) {
var n = new tv("mo", [tz(e.right, e.mode)]);
n.setAttribute("fence", "true"),
e.rightColor && n.setAttribute("mathcolor", e.rightColor),
r.push(n);
}
return tS(r);
},
}),
tt({
type: "middle",
names: ["\\middle"],
props: { numArgs: 1, primitive: !0 },
handler: (e, r) => {
var a = rT(r[0], e);
if (!e.parser.leftrightDepth)
throw new t("\\middle without preceding \\left", a);
return { type: "middle", mode: e.parser.mode, delim: a.text };
},
htmlBuilder: (e, t) => {
var r;
if ("." === e.delim) r = td(t, []);
else {
r = rb(e.delim, 1, t, e.mode, []);
var a = { delim: e.delim, options: t };
r.isMiddle = a;
}
return r;
},
mathmlBuilder: (e, t) => {
var r = new tv("mo", [
"\\vert" === e.delim || "|" === e.delim
? tz("|", "text")
: tz(e.delim, e.mode),
]);
return (
r.setAttribute("fence", "true"),
r.setAttribute("lspace", "0.05em"),
r.setAttribute("rspace", "0.05em"),
r
);
},
});
var rq = (e, t) => {
var r,
a,
n = e$(tg(e.body, t), t),
i = e.label.slice(1),
s = t.sizeMultiplier,
o = 0,
l = c(e.body);
if ("sout" === i)
((r = eY(["stretchy", "sout"])).height =
t.fontMetrics().defaultRuleThickness / s),
(o = -0.5 * t.fontMetrics().xHeight);
else if ("phase" === i) {
var h = E({ number: 0.6, unit: "pt" }, t),
m = E({ number: 0.35, unit: "ex" }, t);
s /= t.havingBaseSizing().sizeMultiplier;
var u = n.height + n.depth + h + m;
n.style.paddingLeft = O(u / 2 + h);
var p = Math.floor(1e3 * u * s);
((r = eX(
["hide-tail"],
[
new j(
[
new W(
"phase",
"M400000 " +
p +
" H0 L" +
p / 2 +
" 0 l65 45 L145 " +
(p - 80) +
" H400000z",
),
],
{
width: "400em",
height: O(p / 1e3),
viewBox: "0 0 400000 " + p,
preserveAspectRatio: "xMinYMin slice",
},
),
],
t,
)).style.height = O(u)),
(o = n.depth + h + m);
} else {
/cancel/.test(i)
? l || n.classes.push("cancel-pad")
: "angl" === i
? n.classes.push("anglpad")
: n.classes.push("boxpad");
var d = 0,
g = 0,
f = 0;
/box/.test(i)
? ((f = Math.max(t.fontMetrics().fboxrule, t.minRuleThickness)),
(g = d = t.fontMetrics().fboxsep + ("colorbox" === i ? 0 : f)))
: "angl" === i
? ((d =
4 *
(f = Math.max(
t.fontMetrics().defaultRuleThickness,
t.minRuleThickness,
))),
(g = Math.max(0, 0.25 - n.depth)))
: (g = d = 0.2 * !!l),
(r = tU(n, i, d, g, t)),
/fbox|boxed|fcolorbox/.test(i)
? ((r.style.borderStyle = "solid"), (r.style.borderWidth = O(f)))
: "angl" === i &&
0.049 !== f &&
((r.style.borderTopWidth = O(f)),
(r.style.borderRightWidth = O(f))),
(o = n.depth + g),
e.backgroundColor &&
((r.style.backgroundColor = e.backgroundColor),
e.borderColor && (r.style.borderColor = e.borderColor));
}
return ((a = e.backgroundColor
? eK({
positionType: "individualShift",
children: [
{ type: "elem", elem: r, shift: o },
{ type: "elem", elem: n, shift: 0 },
],
})
: eK({
positionType: "individualShift",
children: [
{ type: "elem", elem: n, shift: 0 },
{
type: "elem",
elem: r,
shift: o,
wrapperClasses: /cancel|phase/.test(i) ? ["svg-align"] : [],
},
],
})),
/cancel/.test(i) && ((a.height = n.height), (a.depth = n.depth)),
/cancel/.test(i) && !l)
? eY(["mord", "cancel-lap"], [a], t)
: eY(["mord"], [a], t);
},
rC = (e, t) => {
var r = 0,
a = new tv(e.label.includes("colorbox") ? "mpadded" : "menclose", [
tq(e.body, t),
]);
switch (e.label) {
case "\\cancel":
a.setAttribute("notation", "updiagonalstrike");
break;
case "\\bcancel":
a.setAttribute("notation", "downdiagonalstrike");
break;
case "\\phase":
a.setAttribute("notation", "phasorangle");
break;
case "\\sout":
a.setAttribute("notation", "horizontalstrike");
break;
case "\\fbox":
a.setAttribute("notation", "box");
break;
case "\\angl":
a.setAttribute("notation", "actuarial");
break;
case "\\fcolorbox":
case "\\colorbox":
if (
((r = t.fontMetrics().fboxsep * t.fontMetrics().ptPerEm),
a.setAttribute("width", "+" + 2 * r + "pt"),
a.setAttribute("height", "+" + 2 * r + "pt"),
a.setAttribute("lspace", r + "pt"),
a.setAttribute("voffset", r + "pt"),
"\\fcolorbox" === e.label)
) {
var n = Math.max(t.fontMetrics().fboxrule, t.minRuleThickness);
a.setAttribute(
"style",
"border: " + n + "em solid " + String(e.borderColor),
);
}
break;
case "\\xcancel":
a.setAttribute("notation", "updiagonalstrike downdiagonalstrike");
}
return (
e.backgroundColor &&
a.setAttribute("mathbackground", e.backgroundColor),
a
);
};
tt({
type: "enclose",
names: ["\\colorbox"],
props: { numArgs: 2, allowedInText: !0, argTypes: ["color", "text"] },
handler(e, t, r) {
var { parser: a, funcName: n } = e,
i = tY(t[0], "color-token").color,
s = t[1];
return {
type: "enclose",
mode: a.mode,
label: n,
backgroundColor: i,
body: s,
};
},
htmlBuilder: rq,
mathmlBuilder: rC,
}),
tt({
type: "enclose",
names: ["\\fcolorbox"],
props: {
numArgs: 3,
allowedInText: !0,
argTypes: ["color", "color", "text"],
},
handler(e, t, r) {
var { parser: a, funcName: n } = e,
i = tY(t[0], "color-token").color,
s = tY(t[1], "color-token").color,
o = t[2];
return {
type: "enclose",
mode: a.mode,
label: n,
backgroundColor: s,
borderColor: i,
body: o,
};
},
htmlBuilder: rq,
mathmlBuilder: rC,
}),
tt({
type: "enclose",
names: ["\\fbox"],
props: { numArgs: 1, argTypes: ["hbox"], allowedInText: !0 },
handler(e, t) {
var { parser: r } = e;
return { type: "enclose", mode: r.mode, label: "\\fbox", body: t[0] };
},
}),
tt({
type: "enclose",
names: ["\\cancel", "\\bcancel", "\\xcancel", "\\sout", "\\phase"],
props: { numArgs: 1 },
handler(e, t) {
var { parser: r, funcName: a } = e,
n = t[0];
return { type: "enclose", mode: r.mode, label: a, body: n };
},
htmlBuilder: rq,
mathmlBuilder: rC,
}),
tt({
type: "enclose",
names: ["\\angl"],
props: { numArgs: 1, argTypes: ["hbox"], allowedInText: !1 },
handler(e, t) {
var { parser: r } = e;
return { type: "enclose", mode: r.mode, label: "\\angl", body: t[0] };
},
});
var rI = {};
function rH(e) {
for (
var {
type: t,
names: r,
props: a,
handler: n,
htmlBuilder: i,
mathmlBuilder: s,
} = e,
o = {
type: t,
numArgs: a.numArgs || 0,
allowedInText: !1,
numOptionalArgs: 0,
handler: n,
},
l = 0;
l < r.length;
++l
)
rI[r[l]] = o;
i && (e9[t] = i), s && (te[t] = s);
}
var rR = {};
function rE(e, t) {
rR[e] = t;
}
class rO {
constructor(e, t, r) {
(this.lexer = e), (this.start = t), (this.end = r);
}
static range(e, t) {
return t
? e && e.loc && t.loc && e.loc.lexer === t.loc.lexer
? new rO(e.loc.lexer, e.loc.start, t.loc.end)
: null
: e && e.loc;
}
}
class rD {
constructor(e, t) {
(this.text = e), (this.loc = t);
}
range(e, t) {
return new rD(t, rO.range(this, e));
}
}
function rN(e) {
var t = [];
e.consumeSpaces();
var r = e.fetch().text;
for (
"\\relax" === r &&
(e.consume(), e.consumeSpaces(), (r = e.fetch().text));
"\\hline" === r || "\\hdashline" === r;
)
e.consume(),
t.push("\\hdashline" === r),
e.consumeSpaces(),
(r = e.fetch().text);
return t;
}
var rL = (e) => {
if (!e.parser.settings.displayMode)
throw new t("{" + e.envName + "} can be used only in display mode.");
},
rP = new Set(["gather", "gather*"]);
function rF(e) {
if (!e.includes("ed")) return !e.includes("*");
}
function rV(e, r, a) {
var {
hskipBeforeAndAfter: n,
addJot: i,
cols: s,
arraystretch: o,
colSeparationType: l,
autoTag: h,
singleRow: m,
emptySingleRow: c,
maxNumCols: u,
leqno: p,
} = r;
if (
(e.gullet.beginGroup(),
m || e.gullet.macros.set("\\cr", "\\\\\\relax"),
!o)
) {
var d = e.gullet.expandMacroAsText("\\arraystretch");
if (null == d) o = 1;
else if (!(o = parseFloat(d)) || o < 0)
throw new t("Invalid \\arraystretch: " + d);
}
e.gullet.beginGroup();
var g = [],
f = [g],
b = [],
v = [],
y = null != h ? [] : void 0;
function x() {
h && e.gullet.macros.set("\\@eqnsw", "1", !0);
}
function w() {
y &&
(e.gullet.macros.get("\\df@tag")
? (y.push(e.subparse([new rD("\\df@tag")])),
e.gullet.macros.set("\\df@tag", void 0, !0))
: y.push(!!h && "1" === e.gullet.macros.get("\\@eqnsw")));
}
for (x(), v.push(rN(e)); ; ) {
var k = e.parseExpression(!1, m ? "\\end" : "\\\\");
e.gullet.endGroup(), e.gullet.beginGroup();
var z = { type: "ordgroup", mode: e.mode, body: k };
a && (z = { type: "styling", mode: e.mode, style: a, body: [z] }),
g.push(z);
var S = e.fetch().text;
if ("&" === S) {
if (u && g.length === u)
if (m || l) throw new t("Too many tab characters: &", e.nextToken);
else
e.settings.reportNonstrict(
"textEnv",
"Too few columns specified in the {array} column argument.",
);
e.consume();
} else if ("\\end" === S) {
w(),
1 === g.length &&
"styling" === z.type &&
1 === z.body.length &&
"ordgroup" === z.body[0].type &&
0 === z.body[0].body.length &&
(f.length > 1 || !c) &&
f.pop(),
v.length < f.length + 1 && v.push([]);
break;
} else if ("\\\\" === S) {
e.consume();
var M = void 0;
" " !== e.gullet.future().text && (M = e.parseSizeGroup(!0)),
b.push(M ? M.value : null),
w(),
v.push(rN(e)),
(g = []),
f.push(g),
x();
} else throw new t("Expected & or \\\\ or \\cr or \\end", e.nextToken);
}
return (
e.gullet.endGroup(),
e.gullet.endGroup(),
{
type: "array",
mode: e.mode,
addJot: i,
arraystretch: o,
body: f,
cols: s,
rowGaps: b,
hskipBeforeAndAfter: n,
hLinesBeforeRow: v,
colSeparationType: l,
tags: y,
leqno: p,
}
);
}
function rG(e) {
return "d" === e.slice(0, 1) ? "display" : "text";
}
var rU = function (e, r) {
var a = e.body.length,
n = e.hLinesBeforeRow,
i = 0,
s = Array(a),
o = [],
l = Math.max(r.fontMetrics().arrayRuleWidth, r.minRuleThickness),
h = 1 / r.fontMetrics().ptPerEm,
m = 5 * h;
e.colSeparationType &&
"small" === e.colSeparationType &&
(m =
0.2778 *
(r.havingStyle(k.SCRIPT).sizeMultiplier / r.sizeMultiplier));
var c =
"CD" === e.colSeparationType
? E({ number: 3, unit: "ex" }, r)
: 12 * h,
u = 3 * h,
p = e.arraystretch * c,
d = 0.7 * p,
g = 0.3 * p,
f = 0;
function b(e) {
for (var t = 0; t < e.length; ++t)
t > 0 && (f += 0.25), o.push({ pos: f, isDashed: e[t] });
}
for (b(n[0]), D = 0; D < e.body.length; ++D) {
var v = e.body[D],
y = d,
x = g;
i < v.length && (i = v.length);
var w = Array(v.length);
for (N = 0; N < v.length; ++N) {
var z = tg(v[N], r);
x < z.depth && (x = z.depth),
y < z.height && (y = z.height),
(w[N] = z);
}
var S = e.rowGaps[D],
M = 0;
S && (M = E(S, r)) > 0 && (x < (M += g) && (x = M), (M = 0)),
e.addJot && (x += u),
(w.height = y),
(w.depth = x),
(w.pos = f += y),
(f += x + M),
(s[D] = w),
b(n[D + 1]);
}
var A = f / 2 + r.fontMetrics().axisHeight,
T = e.cols || [],
B = [],
q = [];
if (e.tags && e.tags.some((e) => e))
for (D = 0; D < a; ++D) {
var C = s[D],
I = C.pos - A,
H = e.tags[D],
R = void 0;
((R =
!0 === H
? eY(["eqn-num"], [], r)
: !1 === H
? eY([], [], r)
: eY([], th(H, r, !0), r)).depth = C.depth),
(R.height = C.height),
q.push({ type: "elem", elem: R, shift: I });
}
for (N = 0, P = 0; N < i || P < T.length; ++N, ++P) {
for (
var D, N, L, P, F, V, G, U, Y, X, j = T[P], W = !0;
(null == (V = j) ? void 0 : V.type) === "separator";
) {
if (
(W ||
(((L = eY(["arraycolsep"], [])).style.width = O(
r.fontMetrics().doubleRuleSep,
)),
B.push(L)),
"|" === j.separator || ":" === j.separator)
) {
var _ = "|" === j.separator ? "solid" : "dashed",
$ = eY(["vertical-separator"], [], r);
($.style.height = O(f)),
($.style.borderRightWidth = O(l)),
($.style.borderRightStyle = _),
($.style.margin = "0 " + O(-l / 2));
var Z = f - A;
Z && ($.style.verticalAlign = O(-Z)), B.push($);
} else throw new t("Invalid separator type: " + j.separator);
(j = T[++P]), (W = !1);
}
if (!(N >= i)) {
var K = void 0;
(N > 0 || e.hskipBeforeAndAfter) &&
0 !==
(K =
null != (G = null == (U = j) ? void 0 : U.pregap) ? G : m) &&
(((L = eY(["arraycolsep"], [])).style.width = O(K)), B.push(L));
var J = [];
for (D = 0; D < a; ++D) {
var Q = s[D],
ee = Q[N];
if (ee) {
var et = Q.pos - A;
(ee.depth = Q.depth),
(ee.height = Q.height),
J.push({ type: "elem", elem: ee, shift: et });
}
}
var er = eK({ positionType: "individualShift", children: J }),
ea = eY(
["col-align-" + ((null == (F = j) ? void 0 : F.align) || "c")],
[er],
);
B.push(ea),
(N < i - 1 || e.hskipBeforeAndAfter) &&
0 !==
(K =
null != (Y = null == (X = j) ? void 0 : X.postgap)
? Y
: m) &&
(((L = eY(["arraycolsep"], [])).style.width = O(K)), B.push(L));
}
}
var en = eY(["mtable"], B);
if (o.length > 0) {
for (
var ei = ej("hline", r, l),
es = ej("hdashline", r, l),
eo = [{ type: "elem", elem: en, shift: 0 }];
o.length > 0;
) {
var el = o.pop(),
eh = el.pos - A;
el.isDashed
? eo.push({ type: "elem", elem: es, shift: eh })
: eo.push({ type: "elem", elem: ei, shift: eh });
}
en = eK({ positionType: "individualShift", children: eo });
}
return 0 === q.length
? eY(["mord"], [en], r)
: e_([
en,
eY(
["tag"],
[eK({ positionType: "individualShift", children: q })],
r,
),
]);
},
rY = { c: "center ", l: "left ", r: "right " },
rX = function (e, t) {
for (
var r = [],
a = new tv("mtd", [], ["mtr-glue"]),
n = new tv("mtd", [], ["mml-eqn-num"]),
i = 0;
i < e.body.length;
i++
) {
for (var s = e.body[i], o = [], l = 0; l < s.length; l++)
o.push(new tv("mtd", [tq(s[l], t)]));
e.tags &&
e.tags[i] &&
(o.unshift(a), o.push(a), e.leqno ? o.unshift(n) : o.push(n)),
r.push(new tv("mtr", o));
}
var h = new tv("mtable", r),
m =
0.5 === e.arraystretch
? 0.1
: 0.16 + e.arraystretch - 1 + 0.09 * !!e.addJot;
h.setAttribute("rowspacing", O(m));
var c = "",
u = "";
if (e.cols && e.cols.length > 0) {
var p = e.cols,
d = "",
g = !1,
f = 0,
b = p.length;
"separator" === p[0].type && ((c += "top "), (f = 1)),
"separator" === p[p.length - 1].type &&
((c += "bottom "), (b -= 1));
for (var v = f; v < b; v++) {
var y = p[v];
"align" === y.type
? ((u += rY[y.align]), g && (d += "none "), (g = !0))
: "separator" === y.type &&
g &&
((d += "|" === y.separator ? "solid " : "dashed "), (g = !1));
}
h.setAttribute("columnalign", u.trim()),
/[sd]/.test(d) && h.setAttribute("columnlines", d.trim());
}
if ("align" === e.colSeparationType) {
for (var x = e.cols || [], w = "", k = 1; k < x.length; k++)
w += k % 2 ? "0em " : "1em ";
h.setAttribute("columnspacing", w.trim());
} else
"alignat" === e.colSeparationType || "gather" === e.colSeparationType
? h.setAttribute("columnspacing", "0em")
: "small" === e.colSeparationType
? h.setAttribute("columnspacing", "0.2778em")
: "CD" === e.colSeparationType
? h.setAttribute("columnspacing", "0.5em")
: h.setAttribute("columnspacing", "1em");
var z = "",
S = e.hLinesBeforeRow;
c +=
(S[0].length > 0 ? "left " : "") +
(S[S.length - 1].length > 0 ? "right " : "");
for (var M = 1; M < S.length - 1; M++)
z += 0 === S[M].length ? "none " : S[M][0] ? "dashed " : "solid ";
return (
/[sd]/.test(z) && h.setAttribute("rowlines", z.trim()),
"" !== c &&
(h = new tv("menclose", [h])).setAttribute("notation", c.trim()),
e.arraystretch &&
e.arraystretch < 1 &&
(h = new tv("mstyle", [h])).setAttribute("scriptlevel", "1"),
h
);
},
rj = function (e, r) {
e.envName.includes("ed") || rL(e);
var a = [],
n = e.envName.includes("at") ? "alignat" : "align",
i = "split" === e.envName,
s = rV(
e.parser,
{
cols: a,
addJot: !0,
autoTag: i ? void 0 : rF(e.envName),
emptySingleRow: !0,
colSeparationType: n,
maxNumCols: i ? 2 : void 0,
leqno: e.parser.settings.leqno,
},
"display",
),
o = 0,
l = 0,
h = { type: "ordgroup", mode: e.mode, body: [] };
if (r[0] && "ordgroup" === r[0].type) {
for (var m = "", c = 0; c < r[0].body.length; c++)
m += tY(r[0].body[c], "textord").text;
l = 2 * (o = Number(m));
}
var u = !l;
s.body.forEach(function (e) {
for (var r = 1; r < e.length; r += 2) {
var a = tY(e[r], "styling");
tY(a.body[0], "ordgroup").body.unshift(h);
}
if (u) l < e.length && (l = e.length);
else {
var n = e.length / 2;
if (o < n)
throw new t(
"Too many math in a row: expected " + o + ", but got " + n,
e[0],
);
}
});
for (var p = 0; p < l; ++p) {
var d = "r",
g = 0;
p % 2 == 1 ? (d = "l") : p > 0 && u && (g = 1),
(a[p] = { type: "align", align: d, pregap: g, postgap: 0 });
}
return (s.colSeparationType = u ? "align" : "alignat"), s;
};
rH({
type: "array",
names: ["array", "darray"],
props: { numArgs: 1 },
handler(e, r) {
var a = (tj(r[0]) ? [r[0]] : tY(r[0], "ordgroup").body).map(
function (e) {
var r = tX(e).text;
if ("lcr".includes(r)) return { type: "align", align: r };
if ("|" === r) return { type: "separator", separator: "|" };
if (":" === r) return { type: "separator", separator: ":" };
throw new t("Unknown column alignment: " + r, e);
},
),
n = { cols: a, hskipBeforeAndAfter: !0, maxNumCols: a.length };
return rV(e.parser, n, rG(e.envName));
},
htmlBuilder: rU,
mathmlBuilder: rX,
}),
rH({
type: "array",
names: [
"matrix",
"pmatrix",
"bmatrix",
"Bmatrix",
"vmatrix",
"Vmatrix",
"matrix*",
"pmatrix*",
"bmatrix*",
"Bmatrix*",
"vmatrix*",
"Vmatrix*",
],
props: { numArgs: 0 },
handler(e) {
var r = {
matrix: null,
pmatrix: ["(", ")"],
bmatrix: ["[", "]"],
Bmatrix: ["\\{", "\\}"],
vmatrix: ["|", "|"],
Vmatrix: ["\\Vert", "\\Vert"],
}[e.envName.replace("*", "")],
a = "c",
n = {
hskipBeforeAndAfter: !1,
cols: [{ type: "align", align: a }],
};
if ("*" === e.envName.charAt(e.envName.length - 1)) {
var i = e.parser;
if ((i.consumeSpaces(), "[" === i.fetch().text)) {
if (
(i.consume(),
i.consumeSpaces(),
(a = i.fetch().text),
!"lcr".includes(a))
)
throw new t("Expected l or c or r", i.nextToken);
i.consume(),
i.consumeSpaces(),
i.expect("]"),
i.consume(),
(n.cols = [{ type: "align", align: a }]);
}
}
var s = rV(e.parser, n, rG(e.envName)),
o = Math.max(0, ...s.body.map((e) => e.length));
return (
(s.cols = Array(o).fill({ type: "align", align: a })),
r
? {
type: "leftright",
mode: e.mode,
body: [s],
left: r[0],
right: r[1],
rightColor: void 0,
}
: s
);
},
htmlBuilder: rU,
mathmlBuilder: rX,
}),
rH({
type: "array",
names: ["smallmatrix"],
props: { numArgs: 0 },
handler(e) {
var t = rV(e.parser, { arraystretch: 0.5 }, "script");
return (t.colSeparationType = "small"), t;
},
htmlBuilder: rU,
mathmlBuilder: rX,
}),
rH({
type: "array",
names: ["subarray"],
props: { numArgs: 1 },
handler(e, r) {
var a = (tj(r[0]) ? [r[0]] : tY(r[0], "ordgroup").body).map(
function (e) {
var r = tX(e).text;
if ("lc".includes(r)) return { type: "align", align: r };
throw new t("Unknown column alignment: " + r, e);
},
);
if (a.length > 1)
throw new t("{subarray} can contain only one column");
var n = rV(
e.parser,
{ cols: a, hskipBeforeAndAfter: !1, arraystretch: 0.5 },
"script",
);
if (n.body.length > 0 && n.body[0].length > 1)
throw new t("{subarray} can contain only one column");
return n;
},
htmlBuilder: rU,
mathmlBuilder: rX,
}),
rH({
type: "array",
names: ["cases", "dcases", "rcases", "drcases"],
props: { numArgs: 0 },
handler(e) {
var t = rV(
e.parser,
{
arraystretch: 1.2,
cols: [
{ type: "align", align: "l", pregap: 0, postgap: 1 },
{ type: "align", align: "l", pregap: 0, postgap: 0 },
],
},
rG(e.envName),
);
return {
type: "leftright",
mode: e.mode,
body: [t],
left: e.envName.includes("r") ? "." : "\\{",
right: e.envName.includes("r") ? "\\}" : ".",
rightColor: void 0,
};
},
htmlBuilder: rU,
mathmlBuilder: rX,
}),
rH({
type: "array",
names: ["align", "align*", "aligned", "split"],
props: { numArgs: 0 },
handler: rj,
htmlBuilder: rU,
mathmlBuilder: rX,
}),
rH({
type: "array",
names: ["gathered", "gather", "gather*"],
props: { numArgs: 0 },
handler(e) {
rP.has(e.envName) && rL(e);
var t = {
cols: [{ type: "align", align: "c" }],
addJot: !0,
colSeparationType: "gather",
autoTag: rF(e.envName),
emptySingleRow: !0,
leqno: e.parser.settings.leqno,
};
return rV(e.parser, t, "display");
},
htmlBuilder: rU,
mathmlBuilder: rX,
}),
rH({
type: "array",
names: ["alignat", "alignat*", "alignedat"],
props: { numArgs: 1 },
handler: rj,
htmlBuilder: rU,
mathmlBuilder: rX,
}),
rH({
type: "array",
names: ["equation", "equation*"],
props: { numArgs: 0 },
handler(e) {
rL(e);
var t = {
autoTag: rF(e.envName),
emptySingleRow: !0,
singleRow: !0,
maxNumCols: 1,
leqno: e.parser.settings.leqno,
};
return rV(e.parser, t, "display");
},
htmlBuilder: rU,
mathmlBuilder: rX,
}),
rH({
type: "array",
names: ["CD"],
props: { numArgs: 0 },
handler: (e) => (
rL(e),
(function (e) {
var r = [];
for (
e.gullet.beginGroup(),
e.gullet.macros.set("\\cr", "\\\\\\relax"),
e.gullet.beginGroup();
;
) {
r.push(e.parseExpression(!1, "\\\\")),
e.gullet.endGroup(),
e.gullet.beginGroup();
var a = e.fetch().text;
if ("&" === a || "\\\\" === a) e.consume();
else if ("\\end" === a) {
0 === r[r.length - 1].length && r.pop();
break;
} else throw new t("Expected \\\\ or \\cr or \\end", e.nextToken);
}
for (var n = [], i = [n], s = 0; s < r.length; s++) {
for (var o = r[s], l = t4(), h = 0; h < o.length; h++)
if (t5(o[h])) {
n.push(l);
var m = tX(o[(h += 1)]).text,
c = [, ,];
if (
((c[0] = { type: "ordgroup", mode: "math", body: [] }),
(c[1] = { type: "ordgroup", mode: "math", body: [] }),
"=|.".includes(m))
);
else if ("<>AV".includes(m))
for (var u = 0; u < 2; u++) {
for (var p = !0, d = h + 1; d < o.length; d++) {
if (t6(o[d], m)) {
(p = !1), (h = d);
break;
}
if (t5(o[d]))
throw new t(
"Missing a " +
m +
" character to complete a CD arrow.",
o[d],
);
c[u].body.push(o[d]);
}
if (p)
throw new t(
"Missing a " +
m +
" character to complete a CD arrow.",
o[h],
);
}
else throw new t('Expected one of "<>AV=|." after @', o[h]);
var g = {
type: "styling",
body: [
(function (e, t, r) {
var a = t1[e];
switch (a) {
case "\\\\cdrightarrow":
case "\\\\cdleftarrow":
return r.callFunction(a, [t[0]], [t[1]]);
case "\\uparrow":
case "\\downarrow":
var n = r.callFunction("\\\\cdleft", [t[0]], []),
i = r.callFunction(
"\\Big",
[
{
type: "atom",
text: a,
mode: "math",
family: "rel",
},
],
[],
),
s = r.callFunction("\\\\cdright", [t[1]], []);
return r.callFunction(
"\\\\cdparent",
[
{
type: "ordgroup",
mode: "math",
body: [n, i, s],
},
],
[],
);
case "\\\\cdlongequal":
return r.callFunction("\\\\cdlongequal", [], []);
case "\\Vert":
return r.callFunction(
"\\Big",
[
{
type: "textord",
text: "\\Vert",
mode: "math",
},
],
[],
);
default:
return { type: "textord", text: " ", mode: "math" };
}
})(m, c, e),
],
mode: "math",
style: "display",
};
n.push(g), (l = t4());
} else l.body.push(o[h]);
s % 2 == 0 ? n.push(l) : n.shift(), (n = []), i.push(n);
}
e.gullet.endGroup(), e.gullet.endGroup();
var f = Array(i[0].length).fill({
type: "align",
align: "c",
pregap: 0.25,
postgap: 0.25,
});
return {
type: "array",
mode: "math",
body: i,
arraystretch: 1,
addJot: !0,
rowGaps: [null],
cols: f,
colSeparationType: "CD",
hLinesBeforeRow: Array(i.length + 1).fill([]),
};
})(e.parser)
),
htmlBuilder: rU,
mathmlBuilder: rX,
}),
(rR["\\nonumber"] = "\\gdef\\@eqnsw{0}"),
(rR["\\notag"] = "\\nonumber"),
tt({
type: "text",
names: ["\\hline", "\\hdashline"],
props: { numArgs: 0, allowedInText: !0, allowedInMath: !0 },
handler(e, r) {
throw new t(e.funcName + " valid only within array environment");
},
}),
tt({
type: "environment",
names: ["\\begin", "\\end"],
props: { numArgs: 1, argTypes: ["text"] },
handler(e, r) {
var { parser: a, funcName: n } = e,
i = r[0];
if ("ordgroup" !== i.type) throw new t("Invalid environment name", i);
for (var s = "", o = 0; o < i.body.length; ++o)
s += tY(i.body[o], "textord").text;
if ("\\begin" === n) {
if (!rI.hasOwnProperty(s))
throw new t("No such environment: " + s, i);
var l = rI[s],
{ args: h, optArgs: m } = a.parseArguments(
"\\begin{" + s + "}",
l,
),
c = { mode: a.mode, envName: s, parser: a },
u = l.handler(c, h, m);
a.expect("\\end", !1);
var p = a.nextToken,
d = tY(a.parseFunction(), "environment");
if (d.name !== s)
throw new t(
"Mismatch: \\begin{" + s + "} matched by \\end{" + d.name + "}",
p,
);
return u;
}
return { type: "environment", mode: a.mode, name: s, nameGroup: i };
},
});
var rW = (e, t) => {
var r = e.font,
a = t.withFont(r);
return tg(e.body, a);
},
r_ = (e, t) => {
var r = e.font,
a = t.withFont(r);
return tq(e.body, a);
},
r$ = {
"\\Bbb": "\\mathbb",
"\\bold": "\\mathbf",
"\\frak": "\\mathfrak",
"\\bm": "\\boldsymbol",
};
tt({
type: "font",
names: [
"\\mathrm",
"\\mathit",
"\\mathbf",
"\\mathnormal",
"\\mathsfit",
"\\mathbb",
"\\mathcal",
"\\mathfrak",
"\\mathscr",
"\\mathsf",
"\\mathtt",
"\\Bbb",
"\\bold",
"\\frak",
],
props: { numArgs: 1, allowedInArgument: !0 },
handler: (e, t) => {
var { parser: r, funcName: a } = e,
n = ta(t[0]),
i = a;
return (
i in r$ && (i = r$[i]),
{ type: "font", mode: r.mode, font: i.slice(1), body: n }
);
},
htmlBuilder: rW,
mathmlBuilder: r_,
}),
tt({
type: "mclass",
names: ["\\boldsymbol", "\\bm"],
props: { numArgs: 1 },
handler: (e, t) => {
var { parser: r } = e,
a = t[0];
return {
type: "mclass",
mode: r.mode,
mclass: t0(a),
body: [{ type: "font", mode: r.mode, font: "boldsymbol", body: a }],
isCharacterBox: c(a),
};
},
}),
tt({
type: "font",
names: ["\\rm", "\\sf", "\\tt", "\\bf", "\\it", "\\cal"],
props: { numArgs: 0, allowedInText: !0 },
handler: (e, t) => {
var { parser: r, funcName: a, breakOnTokenText: n } = e,
{ mode: i } = r,
s = r.parseExpression(!0, n);
return {
type: "font",
mode: i,
font: "math" + a.slice(1),
body: { type: "ordgroup", mode: r.mode, body: s },
};
},
htmlBuilder: rW,
mathmlBuilder: r_,
});
var rZ = (e, t) =>
t ? { type: "styling", mode: e.mode, style: t, body: [e] } : e;
tt({
type: "genfrac",
names: [
"\\cfrac",
"\\dfrac",
"\\frac",
"\\tfrac",
"\\dbinom",
"\\binom",
"\\tbinom",
"\\\\atopfrac",
"\\\\bracefrac",
"\\\\brackfrac",
],
props: { numArgs: 2, allowedInArgument: !0 },
handler: (e, t) => {
var r,
{ parser: a, funcName: n } = e,
i = t[0],
s = t[1],
o = null,
l = null;
switch (n) {
case "\\cfrac":
case "\\dfrac":
case "\\frac":
case "\\tfrac":
r = !0;
break;
case "\\\\atopfrac":
r = !1;
break;
case "\\dbinom":
case "\\binom":
case "\\tbinom":
(r = !1), (o = "("), (l = ")");
break;
case "\\\\bracefrac":
(r = !1), (o = "\\{"), (l = "\\}");
break;
case "\\\\brackfrac":
(r = !1), (o = "["), (l = "]");
break;
default:
throw Error("Unrecognized genfrac command");
}
var h = "\\cfrac" === n,
m = null;
return (
h || n.startsWith("\\d")
? (m = "display")
: n.startsWith("\\t") && (m = "text"),
rZ(
{
type: "genfrac",
mode: a.mode,
numer: i,
denom: s,
continued: h,
hasBarLine: r,
leftDelim: o,
rightDelim: l,
barSize: null,
},
m,
)
);
},
htmlBuilder: (e, t) => {
var r,
a,
n,
i,
s,
o,
l,
h,
m,
c,
u,
p = t.style,
d = p.fracNum(),
g = p.fracDen();
r = t.havingStyle(d);
var f = tg(e.numer, r, t);
if (e.continued) {
var b = 8.5 / t.fontMetrics().ptPerEm,
v = 3.5 / t.fontMetrics().ptPerEm;
(f.height = f.height < b ? b : f.height),
(f.depth = f.depth < v ? v : f.depth);
}
r = t.havingStyle(g);
var y = tg(e.denom, r, t);
if (
(e.hasBarLine
? (e.barSize
? ((n = E(e.barSize, t)), (a = ej("frac-line", t, n)))
: (a = ej("frac-line", t)),
(n = a.height),
(i = a.height))
: ((a = null), (n = 0), (i = t.fontMetrics().defaultRuleThickness)),
p.size === k.DISPLAY.size
? ((s = t.fontMetrics().num1),
(o = n > 0 ? 3 * i : 7 * i),
(l = t.fontMetrics().denom1))
: (n > 0
? ((s = t.fontMetrics().num2), (o = i))
: ((s = t.fontMetrics().num3), (o = 3 * i)),
(l = t.fontMetrics().denom2)),
a)
) {
var x = t.fontMetrics().axisHeight;
s - f.depth - (x + 0.5 * n) < o &&
(s += o - (s - f.depth - (x + 0.5 * n))),
x - 0.5 * n - (y.height - l) < o &&
(l += o - (x - 0.5 * n - (y.height - l))),
(h = eK({
positionType: "individualShift",
children: [
{ type: "elem", elem: y, shift: l },
{ type: "elem", elem: a, shift: -(x - 0.5 * n) },
{ type: "elem", elem: f, shift: -s },
],
}));
} else {
var w = s - f.depth - (y.height - l);
w < o && ((s += 0.5 * (o - w)), (l += 0.5 * (o - w))),
(h = eK({
positionType: "individualShift",
children: [
{ type: "elem", elem: y, shift: l },
{ type: "elem", elem: f, shift: -s },
],
}));
}
return (
(r = t.havingStyle(p)),
(h.height *= r.sizeMultiplier / t.sizeMultiplier),
(h.depth *= r.sizeMultiplier / t.sizeMultiplier),
(m =
p.size === k.DISPLAY.size
? t.fontMetrics().delim1
: p.size === k.SCRIPTSCRIPT.size
? t.havingStyle(k.SCRIPT).fontMetrics().delim2
: t.fontMetrics().delim2),
(c =
null == e.leftDelim
? td(t, ["mopen"])
: rz(e.leftDelim, m, !0, t.havingStyle(p), e.mode, ["mopen"])),
(u = e.continued
? eY([])
: null == e.rightDelim
? td(t, ["mclose"])
: rz(e.rightDelim, m, !0, t.havingStyle(p), e.mode, ["mclose"])),
eY(["mord"].concat(r.sizingClasses(t)), [c, eY(["mfrac"], [h]), u], t)
);
},
mathmlBuilder: (e, t) => {
var r = new tv("mfrac", [tq(e.numer, t), tq(e.denom, t)]);
if (e.hasBarLine) {
if (e.barSize) {
var a = E(e.barSize, t);
r.setAttribute("linethickness", O(a));
}
} else r.setAttribute("linethickness", "0px");
if (null != e.leftDelim || null != e.rightDelim) {
var n = [];
if (null != e.leftDelim) {
var i = new tv("mo", [new ty(e.leftDelim.replace("\\", ""))]);
i.setAttribute("fence", "true"), n.push(i);
}
if ((n.push(r), null != e.rightDelim)) {
var s = new tv("mo", [new ty(e.rightDelim.replace("\\", ""))]);
s.setAttribute("fence", "true"), n.push(s);
}
return tS(n);
}
return r;
},
}),
tt({
type: "infix",
names: ["\\over", "\\choose", "\\atop", "\\brace", "\\brack"],
props: { numArgs: 0, infix: !0 },
handler(e) {
var t,
{ parser: r, funcName: a, token: n } = e;
switch (a) {
case "\\over":
t = "\\frac";
break;
case "\\choose":
t = "\\binom";
break;
case "\\atop":
t = "\\\\atopfrac";
break;
case "\\brace":
t = "\\\\bracefrac";
break;
case "\\brack":
t = "\\\\brackfrac";
break;
default:
throw Error("Unrecognized infix genfrac command");
}
return { type: "infix", mode: r.mode, replaceWith: t, token: n };
},
});
var rK = ["display", "text", "script", "scriptscript"],
rJ = function (e) {
var t = null;
return e.length > 0 && (t = "." === (t = e) ? null : t), t;
};
tt({
type: "genfrac",
names: ["\\genfrac"],
props: {
numArgs: 6,
allowedInArgument: !0,
argTypes: ["math", "math", "size", "text", "math", "math"],
},
handler(e, t) {
var r,
{ parser: a } = e,
n = t[4],
i = t[5],
s = ta(t[0]),
o = "atom" === s.type && "open" === s.family ? rJ(s.text) : null,
l = ta(t[1]),
h = "atom" === l.type && "close" === l.family ? rJ(l.text) : null,
m = tY(t[2], "size"),
c = null;
r = !!m.isBlank || (c = m.value).number > 0;
var u = null,
p = t[3];
return (
"ordgroup" === p.type
? p.body.length > 0 &&
(u = rK[Number(tY(p.body[0], "textord").text)])
: (u = rK[Number((p = tY(p, "textord")).text)]),
rZ(
{
type: "genfrac",
mode: a.mode,
numer: n,
denom: i,
continued: !1,
hasBarLine: r,
barSize: c,
leftDelim: o,
rightDelim: h,
},
u,
)
);
},
}),
tt({
type: "infix",
names: ["\\above"],
props: { numArgs: 1, argTypes: ["size"], infix: !0 },
handler(e, t) {
var { parser: r, funcName: a, token: n } = e;
return {
type: "infix",
mode: r.mode,
replaceWith: "\\\\abovefrac",
size: tY(t[0], "size").value,
token: n,
};
},
}),
tt({
type: "genfrac",
names: ["\\\\abovefrac"],
props: { numArgs: 3, argTypes: ["math", "size", "math"] },
handler: (e, t) => {
var { parser: r, funcName: a } = e,
n = t[0],
i = tY(t[1], "infix").size;
if (!i)
throw Error("\\\\abovefrac expected size, but got " + String(i));
var s = t[2],
o = i.number > 0;
return {
type: "genfrac",
mode: r.mode,
numer: n,
denom: s,
continued: !1,
hasBarLine: o,
barSize: i,
leftDelim: null,
rightDelim: null,
};
},
});
var rQ = (e, t) => {
var r,
a,
n,
i = t.style;
"supsub" === e.type
? ((r = e.sup
? tg(e.sup, t.havingStyle(i.sup()), t)
: tg(e.sub, t.havingStyle(i.sub()), t)),
(a = tY(e.base, "horizBrace")))
: (a = tY(e, "horizBrace"));
var s = tg(a.base, t.havingBaseStyle(k.DISPLAY)),
o = tG(a, t);
if (
(a.isOver
? (n = eK({
positionType: "firstBaseline",
children: [
{ type: "elem", elem: s },
{ type: "kern", size: 0.1 },
{ type: "elem", elem: o },
],
})).children[0].children[0].children[1].classes.push("svg-align")
: (n = eK({
positionType: "bottom",
positionData: s.depth + 0.1 + o.height,
children: [
{ type: "elem", elem: o },
{ type: "kern", size: 0.1 },
{ type: "elem", elem: s },
],
})).children[0].children[0].children[0].classes.push("svg-align"),
r)
) {
var l = eY(["mord", a.isOver ? "mover" : "munder"], [n], t);
n = a.isOver
? eK({
positionType: "firstBaseline",
children: [
{ type: "elem", elem: l },
{ type: "kern", size: 0.2 },
{ type: "elem", elem: r },
],
})
: eK({
positionType: "bottom",
positionData: l.depth + 0.2 + r.height + r.depth,
children: [
{ type: "elem", elem: r },
{ type: "kern", size: 0.2 },
{ type: "elem", elem: l },
],
});
}
return eY(["mord", a.isOver ? "mover" : "munder"], [n], t);
};
tt({
type: "horizBrace",
names: ["\\overbrace", "\\underbrace"],
props: { numArgs: 1 },
handler(e, t) {
var { parser: r, funcName: a } = e;
return {
type: "horizBrace",
mode: r.mode,
label: a,
isOver: /^\\over/.test(a),
base: t[0],
};
},
htmlBuilder: rQ,
mathmlBuilder: (e, t) => {
var r = tP(e.label);
return new tv(e.isOver ? "mover" : "munder", [tq(e.base, t), r]);
},
}),
tt({
type: "href",
names: ["\\href"],
props: { numArgs: 2, argTypes: ["url", "original"], allowedInText: !0 },
handler: (e, t) => {
var { parser: r } = e,
a = t[1],
n = tY(t[0], "url").url;
return r.settings.isTrusted({ command: "\\href", url: n })
? { type: "href", mode: r.mode, href: n, body: tn(a) }
: r.formatUnsupportedCmd("\\href");
},
htmlBuilder: (e, t) => {
var r = th(e.body, t, !1);
return eW(e.href, [], r, t);
},
mathmlBuilder: (e, t) => {
var r = tB(e.body, t);
return (
r instanceof tv || (r = new tv("mrow", [r])),
r.setAttribute("href", e.href),
r
);
},
}),
tt({
type: "href",
names: ["\\url"],
props: { numArgs: 1, argTypes: ["url"], allowedInText: !0 },
handler: (e, t) => {
var { parser: r } = e,
a = tY(t[0], "url").url;
if (!r.settings.isTrusted({ command: "\\url", url: a }))
return r.formatUnsupportedCmd("\\url");
for (var n = [], i = 0; i < a.length; i++) {
var s = a[i];
"~" === s && (s = "\\textasciitilde"),
n.push({ type: "textord", mode: "text", text: s });
}
var o = { type: "text", mode: r.mode, font: "\\texttt", body: n };
return { type: "href", mode: r.mode, href: a, body: tn(o) };
},
}),
tt({
type: "hbox",
names: ["\\hbox"],
props: {
numArgs: 1,
argTypes: ["text"],
allowedInText: !0,
primitive: !0,
},
handler(e, t) {
var { parser: r } = e;
return { type: "hbox", mode: r.mode, body: tn(t[0]) };
},
htmlBuilder: (e, t) => e_(th(e.body, t, !1)),
mathmlBuilder: (e, t) => new tv("mrow", tT(e.body, t)),
}),
tt({
type: "html",
names: ["\\htmlClass", "\\htmlId", "\\htmlStyle", "\\htmlData"],
props: { numArgs: 2, argTypes: ["raw", "original"], allowedInText: !0 },
handler: (e, r) => {
var a,
{ parser: n, funcName: i, token: s } = e,
o = tY(r[0], "raw").string,
l = r[1];
n.settings.strict &&
n.settings.reportNonstrict(
"htmlExtension",
"HTML extension is disabled on strict mode",
);
var h = {};
switch (i) {
case "\\htmlClass":
(h.class = o), (a = { command: "\\htmlClass", class: o });
break;
case "\\htmlId":
(h.id = o), (a = { command: "\\htmlId", id: o });
break;
case "\\htmlStyle":
(h.style = o), (a = { command: "\\htmlStyle", style: o });
break;
case "\\htmlData":
for (var m = o.split(","), c = 0; c < m.length; c++) {
var u = m[c],
p = u.indexOf("=");
if (p < 0)
throw new t(
"\\htmlData key/value '" + u + "' missing equals sign",
);
var d = u.slice(0, p),
g = u.slice(p + 1);
h["data-" + d.trim()] = g;
}
a = { command: "\\htmlData", attributes: h };
break;
default:
throw Error("Unrecognized html command");
}
return n.settings.isTrusted(a)
? { type: "html", mode: n.mode, attributes: h, body: tn(l) }
: n.formatUnsupportedCmd(i);
},
htmlBuilder: (e, t) => {
var r = th(e.body, t, !1),
a = ["enclosing"];
e.attributes.class &&
a.push(...e.attributes.class.trim().split(/\s+/));
var n = eY(a, r, t);
for (var i in e.attributes)
"class" !== i &&
e.attributes.hasOwnProperty(i) &&
n.setAttribute(i, e.attributes[i]);
return n;
},
mathmlBuilder: (e, t) => tB(e.body, t),
}),
tt({
type: "htmlmathml",
names: ["\\html@mathml"],
props: { numArgs: 2, allowedInArgument: !0, allowedInText: !0 },
handler: (e, t) => {
var { parser: r } = e;
return {
type: "htmlmathml",
mode: r.mode,
html: tn(t[0]),
mathml: tn(t[1]),
};
},
htmlBuilder: (e, t) => e_(th(e.html, t, !1)),
mathmlBuilder: (e, t) => tB(e.mathml, t),
});
var r0 = function (e) {
if (/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))
return { number: +e, unit: "bp" };
var r = /([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);
if (!r) throw new t("Invalid size: '" + e + "' in \\includegraphics");
var a = { number: +(r[1] + r[2]), unit: r[3] };
if (!R(a))
throw new t("Invalid unit: '" + a.unit + "' in \\includegraphics.");
return a;
};
tt({
type: "includegraphics",
names: ["\\includegraphics"],
props: {
numArgs: 1,
numOptionalArgs: 1,
argTypes: ["raw", "url"],
allowedInText: !1,
},
handler: (e, r, a) => {
var { parser: n } = e,
i = { number: 0, unit: "em" },
s = { number: 0.9, unit: "em" },
o = { number: 0, unit: "em" },
l = "";
if (a[0])
for (
var h = tY(a[0], "raw").string.split(","), m = 0;
m < h.length;
m++
) {
var c = h[m].split("=");
if (2 === c.length) {
var u = c[1].trim();
switch (c[0].trim()) {
case "alt":
l = u;
break;
case "width":
i = r0(u);
break;
case "height":
s = r0(u);
break;
case "totalheight":
o = r0(u);
break;
default:
throw new t(
"Invalid key: '" + c[0] + "' in \\includegraphics.",
);
}
}
}
var p = tY(r[0], "url").url;
return ("" === l &&
(l = (l = (l = p).replace(/^.*[\\/]/, "")).substring(
0,
l.lastIndexOf("."),
)),
n.settings.isTrusted({ command: "\\includegraphics", url: p }))
? {
type: "includegraphics",
mode: n.mode,
alt: l,
width: i,
height: s,
totalheight: o,
src: p,
}
: n.formatUnsupportedCmd("\\includegraphics");
},
htmlBuilder: (e, t) => {
var r = E(e.height, t),
a = 0;
e.totalheight.number > 0 && (a = E(e.totalheight, t) - r);
var n = 0;
e.width.number > 0 && (n = E(e.width, t));
var i = { height: O(r + a) };
n > 0 && (i.width = O(n)), a > 0 && (i.verticalAlign = O(-a));
var s = new U(e.src, e.alt, i);
return (s.height = r), (s.depth = a), s;
},
mathmlBuilder: (e, t) => {
var r = new tv("mglyph", []);
r.setAttribute("alt", e.alt);
var a = E(e.height, t),
n = 0;
if (
(e.totalheight.number > 0 &&
((n = E(e.totalheight, t) - a), r.setAttribute("valign", O(-n))),
r.setAttribute("height", O(a + n)),
e.width.number > 0)
) {
var i = E(e.width, t);
r.setAttribute("width", O(i));
}
return r.setAttribute("src", e.src), r;
},
}),
tt({
type: "kern",
names: ["\\kern", "\\mkern", "\\hskip", "\\mskip"],
props: {
numArgs: 1,
argTypes: ["size"],
primitive: !0,
allowedInText: !0,
},
handler(e, t) {
var { parser: r, funcName: a } = e,
n = tY(t[0], "size");
if (r.settings.strict) {
var i = "m" === a[1],
s = "mu" === n.value.unit;
i
? (s ||
r.settings.reportNonstrict(
"mathVsTextUnits",
"LaTeX's " +
a +
" supports only mu units, not " +
n.value.unit +
" units",
),
"math" !== r.mode &&
r.settings.reportNonstrict(
"mathVsTextUnits",
"LaTeX's " + a + " works only in math mode",
))
: s &&
r.settings.reportNonstrict(
"mathVsTextUnits",
"LaTeX's " + a + " doesn't support mu units",
);
}
return { type: "kern", mode: r.mode, dimension: n.value };
},
htmlBuilder: (e, t) => eJ(e.dimension, t),
mathmlBuilder: (e, t) => new tx(E(e.dimension, t)),
}),
tt({
type: "lap",
names: ["\\mathllap", "\\mathrlap", "\\mathclap"],
props: { numArgs: 1, allowedInText: !0 },
handler: (e, t) => {
var { parser: r, funcName: a } = e,
n = t[0];
return { type: "lap", mode: r.mode, alignment: a.slice(5), body: n };
},
htmlBuilder: (e, t) => {
"clap" === e.alignment
? ((r = eY([], [tg(e.body, t)])), (r = eY(["inner"], [r], t)))
: (r = eY(["inner"], [tg(e.body, t)]));
var r,
a = eY(["fix"], []),
n = eY([e.alignment], [r, a], t),
i = eY(["strut"]);
return (
(i.style.height = O(n.height + n.depth)),
n.depth && (i.style.verticalAlign = O(-n.depth)),
n.children.unshift(i),
(n = eY(["thinbox"], [n], t)),
eY(["mord", "vbox"], [n], t)
);
},
mathmlBuilder: (e, t) => {
var r = new tv("mpadded", [tq(e.body, t)]);
if ("rlap" !== e.alignment) {
var a = "llap" === e.alignment ? "-1" : "-0.5";
r.setAttribute("lspace", a + "width");
}
return r.setAttribute("width", "0px"), r;
},
}),
tt({
type: "styling",
names: ["\\(", "$"],
props: { numArgs: 0, allowedInText: !0, allowedInMath: !1 },
handler(e, t) {
var { funcName: r, parser: a } = e,
n = a.mode;
a.switchMode("math");
var i = "\\(" === r ? "\\)" : "$",
s = a.parseExpression(!1, i);
return (
a.expect(i),
a.switchMode(n),
{ type: "styling", mode: a.mode, style: "text", body: s }
);
},
}),
tt({
type: "text",
names: ["\\)", "\\]"],
props: { numArgs: 0, allowedInText: !0, allowedInMath: !1 },
handler(e, r) {
throw new t("Mismatched " + e.funcName);
},
});
var r1 = (e, t) => {
switch (t.style.size) {
case k.DISPLAY.size:
return e.display;
case k.TEXT.size:
return e.text;
case k.SCRIPT.size:
return e.script;
case k.SCRIPTSCRIPT.size:
return e.scriptscript;
default:
return e.text;
}
};
tt({
type: "mathchoice",
names: ["\\mathchoice"],
props: { numArgs: 4, primitive: !0 },
handler: (e, t) => {
var { parser: r } = e;
return {
type: "mathchoice",
mode: r.mode,
display: tn(t[0]),
text: tn(t[1]),
script: tn(t[2]),
scriptscript: tn(t[3]),
};
},
htmlBuilder: (e, t) => e_(th(r1(e, t), t, !1)),
mathmlBuilder: (e, t) => tB(r1(e, t), t),
});
var r4 = (e, t, r, a, n, i, s) => {
e = eY([], [e]);
var o,
l,
h,
m = r && c(r);
if (t) {
var u = tg(t, a.havingStyle(n.sup()), a);
l = {
elem: u,
kern: Math.max(
a.fontMetrics().bigOpSpacing1,
a.fontMetrics().bigOpSpacing3 - u.depth,
),
};
}
if (r) {
var p = tg(r, a.havingStyle(n.sub()), a);
o = {
elem: p,
kern: Math.max(
a.fontMetrics().bigOpSpacing2,
a.fontMetrics().bigOpSpacing4 - p.height,
),
};
}
if (l && o)
h = eK({
positionType: "bottom",
positionData:
a.fontMetrics().bigOpSpacing5 +
o.elem.height +
o.elem.depth +
o.kern +
e.depth +
s,
children: [
{ type: "kern", size: a.fontMetrics().bigOpSpacing5 },
{ type: "elem", elem: o.elem, marginLeft: O(-i) },
{ type: "kern", size: o.kern },
{ type: "elem", elem: e },
{ type: "kern", size: l.kern },
{ type: "elem", elem: l.elem, marginLeft: O(i) },
{ type: "kern", size: a.fontMetrics().bigOpSpacing5 },
],
});
else if (o)
h = eK({
positionType: "top",
positionData: e.height - s,
children: [
{ type: "kern", size: a.fontMetrics().bigOpSpacing5 },
{ type: "elem", elem: o.elem, marginLeft: O(-i) },
{ type: "kern", size: o.kern },
{ type: "elem", elem: e },
],
});
else {
if (!l) return e;
h = eK({
positionType: "bottom",
positionData: e.depth + s,
children: [
{ type: "elem", elem: e },
{ type: "kern", size: l.kern },
{ type: "elem", elem: l.elem, marginLeft: O(i) },
{ type: "kern", size: a.fontMetrics().bigOpSpacing5 },
],
});
}
var d = [h];
if (o && 0 !== i && !m) {
var g = eY(["mspace"], [], a);
(g.style.marginRight = O(i)), d.unshift(g);
}
return eY(["mop", "op-limits"], d, a);
},
r5 = new Set(["\\smallint"]),
r6 = (e, t) => {
var r,
a,
n,
i,
s = !1;
"supsub" === e.type
? ((r = e.sup), (a = e.sub), (n = tY(e.base, "op")), (s = !0))
: (n = tY(e, "op"));
var o = t.style,
l = !1;
if (
(o.size === k.DISPLAY.size && n.symbol && !r5.has(n.name) && (l = !0),
n.symbol)
) {
var h = l ? "Size2-Regular" : "Size1-Regular",
m = "";
if (
(("\\oiint" === n.name || "\\oiiint" === n.name) &&
((m = n.name.slice(1)),
(n.name = "oiint" === m ? "\\iint" : "\\iiint")),
(i = eL(n.name, h, "math", t, [
"mop",
"op-symbol",
l ? "large-op" : "small-op",
])),
m.length > 0)
) {
var c = i.italic;
(i = eK({
positionType: "individualShift",
children: [
{ type: "elem", elem: i, shift: 0 },
{
type: "elem",
elem: e4(m + "Size" + (l ? "2" : "1"), t),
shift: 0.08 * !!l,
},
],
})),
(n.name = "\\" + m),
i.classes.unshift("mop"),
(i.italic = c);
}
} else if (n.body) {
var u = th(n.body, t, !0);
1 === u.length && u[0] instanceof X
? ((i = u[0]).classes[0] = "mop")
: (i = eY(["mop"], u, t));
} else {
for (var p = [], d = 1; d < n.name.length; d++)
p.push(eP(n.name[d], n.mode, t));
i = eY(["mop"], p, t);
}
var g = 0,
f = 0;
return ((i instanceof X ||
"\\oiint" === n.name ||
"\\oiiint" === n.name) &&
!n.suppressBaseShift &&
((g = (i.height - i.depth) / 2 - t.fontMetrics().axisHeight),
(f = i.italic || 0)),
s)
? r4(i, r, a, t, o, f, g)
: (g && ((i.style.position = "relative"), (i.style.top = O(g))), i);
},
r7 = (e, t) => {
var r;
if (e.symbol)
(r = new tv("mo", [tz(e.name, e.mode)])),
r5.has(e.name) && r.setAttribute("largeop", "false");
else if (e.body) r = new tv("mo", tT(e.body, t));
else {
r = new tv("mi", [new ty(e.name.slice(1))]);
var a = new tv("mo", [tz("⁡", "text")]);
r = e.parentIsSupSub ? new tv("mrow", [r, a]) : new C([r, a]);
}
return r;
},
r3 = {
"∏": "\\prod",
"∐": "\\coprod",
"∑": "\\sum",
"⋀": "\\bigwedge",
"⋁": "\\bigvee",
"⋂": "\\bigcap",
"⋃": "\\bigcup",
"⨀": "\\bigodot",
"⨁": "\\bigoplus",
"⨂": "\\bigotimes",
"⨄": "\\biguplus",
"⨆": "\\bigsqcup",
};
tt({
type: "op",
names: [
"\\coprod",
"\\bigvee",
"\\bigwedge",
"\\biguplus",
"\\bigcap",
"\\bigcup",
"\\intop",
"\\prod",
"\\sum",
"\\bigotimes",
"\\bigoplus",
"\\bigodot",
"\\bigsqcup",
"\\smallint",
"∏",
"∐",
"∑",
"⋀",
"⋁",
"⋂",
"⋃",
"⨀",
"⨁",
"⨂",
"⨄",
"⨆",
],
props: { numArgs: 0 },
handler: (e, t) => {
var { parser: r, funcName: a } = e,
n = a;
return (
1 === n.length && (n = r3[n]),
{
type: "op",
mode: r.mode,
limits: !0,
parentIsSupSub: !1,
symbol: !0,
name: n,
}
);
},
htmlBuilder: r6,
mathmlBuilder: r7,
}),
tt({
type: "op",
names: ["\\mathop"],
props: { numArgs: 1, primitive: !0 },
handler: (e, t) => {
var { parser: r } = e,
a = t[0];
return {
type: "op",
mode: r.mode,
limits: !1,
parentIsSupSub: !1,
symbol: !1,
body: tn(a),
};
},
htmlBuilder: r6,
mathmlBuilder: r7,
});
var r8 = {
"∫": "\\int",
"∬": "\\iint",
"∭": "\\iiint",
"∮": "\\oint",
"∯": "\\oiint",
"∰": "\\oiiint",
};
tt({
type: "op",
names: [
"\\arcsin",
"\\arccos",
"\\arctan",
"\\arctg",
"\\arcctg",
"\\arg",
"\\ch",
"\\cos",
"\\cosec",
"\\cosh",
"\\cot",
"\\cotg",
"\\coth",
"\\csc",
"\\ctg",
"\\cth",
"\\deg",
"\\dim",
"\\exp",
"\\hom",
"\\ker",
"\\lg",
"\\ln",
"\\log",
"\\sec",
"\\sin",
"\\sinh",
"\\sh",
"\\tan",
"\\tanh",
"\\tg",
"\\th",
],
props: { numArgs: 0 },
handler(e) {
var { parser: t, funcName: r } = e;
return {
type: "op",
mode: t.mode,
limits: !1,
parentIsSupSub: !1,
symbol: !1,
name: r,
};
},
htmlBuilder: r6,
mathmlBuilder: r7,
}),
tt({
type: "op",
names: [
"\\det",
"\\gcd",
"\\inf",
"\\lim",
"\\max",
"\\min",
"\\Pr",
"\\sup",
],
props: { numArgs: 0 },
handler(e) {
var { parser: t, funcName: r } = e;
return {
type: "op",
mode: t.mode,
limits: !0,
parentIsSupSub: !1,
symbol: !1,
name: r,
};
},
htmlBuilder: r6,
mathmlBuilder: r7,
}),
tt({
type: "op",
names: [
"\\int",
"\\iint",
"\\iiint",
"\\oint",
"\\oiint",
"\\oiiint",
"∫",
"∬",
"∭",
"∮",
"∯",
"∰",
],
props: { numArgs: 0, allowedInArgument: !0 },
handler(e) {
var { parser: t, funcName: r } = e,
a = r;
return (
1 === a.length && (a = r8[a]),
{
type: "op",
mode: t.mode,
limits: !1,
parentIsSupSub: !1,
symbol: !0,
name: a,
}
);
},
htmlBuilder: r6,
mathmlBuilder: r7,
});
var r2 = (e, t) => {
var r,
a,
n,
i,
s = !1;
if (
("supsub" === e.type
? ((r = e.sup),
(a = e.sub),
(n = tY(e.base, "operatorname")),
(s = !0))
: (n = tY(e, "operatorname")),
n.body.length > 0)
) {
for (
var o = th(
n.body.map((e) => {
var t = ("text" in e) ? e.text : void 0;
return "string" == typeof t
? { type: "textord", mode: e.mode, text: t }
: e;
}),
t.withFont("mathrm"),
!0,
),
l = 0;
l < o.length;
l++
) {
var h = o[l];
h instanceof X &&
(h.text = h.text.replace(/\u2212/, "-").replace(/\u2217/, "*"));
}
i = eY(["mop"], o, t);
} else i = eY(["mop"], [], t);
return s ? r4(i, r, a, t, t.style, 0, 0) : i;
};
function r9(e, t, r) {
for (
var a = th(e, t, !1), n = t.sizeMultiplier / r.sizeMultiplier, i = 0;
i < a.length;
i++
) {
var s = a[i].classes.indexOf("sizing");
s < 0
? Array.prototype.push.apply(a[i].classes, t.sizingClasses(r))
: a[i].classes[s + 1] === "reset-size" + t.size &&
(a[i].classes[s + 1] = "reset-size" + r.size),
(a[i].height *= n),
(a[i].depth *= n);
}
return e_(a);
}
tt({
type: "operatorname",
names: ["\\operatorname@", "\\operatornamewithlimits"],
props: { numArgs: 1 },
handler: (e, t) => {
var { parser: r, funcName: a } = e,
n = t[0];
return {
type: "operatorname",
mode: r.mode,
body: tn(n),
alwaysHandleSupSub: "\\operatornamewithlimits" === a,
limits: !1,
parentIsSupSub: !1,
};
},
htmlBuilder: r2,
mathmlBuilder: (e, t) => {
for (
var r = tT(e.body, t.withFont("mathrm")), a = !0, n = 0;
n < r.length;
n++
) {
var i = r[n];
if (i instanceof tx);
else if (i instanceof tv)
switch (i.type) {
case "mi":
case "mn":
case "mspace":
case "mtext":
break;
case "mo":
var s = i.children[0];
1 === i.children.length && s instanceof ty
? (s.text = s.text
.replace(/\u2212/, "-")
.replace(/\u2217/, "*"))
: (a = !1);
break;
default:
a = !1;
}
else a = !1;
}
a && (r = [new ty(r.map((e) => e.toText()).join(""))]);
var o = new tv("mi", r);
o.setAttribute("mathvariant", "normal");
var l = new tv("mo", [tz("⁡", "text")]);
return e.parentIsSupSub ? new tv("mrow", [o, l]) : new C([o, l]);
},
}),
(rR["\\operatorname"] =
"\\@ifstar\\operatornamewithlimits\\operatorname@"),
tr({
type: "ordgroup",
htmlBuilder: (e, t) =>
e.semisimple
? e_(th(e.body, t, !1))
: eY(["mord"], th(e.body, t, !0), t),
mathmlBuilder: (e, t) => tB(e.body, t, !0),
}),
tt({
type: "overline",
names: ["\\overline"],
props: { numArgs: 1 },
handler(e, t) {
var { parser: r } = e,
a = t[0];
return { type: "overline", mode: r.mode, body: a };
},
htmlBuilder(e, t) {
var r = tg(e.body, t.havingCrampedStyle()),
a = ej("overline-line", t),
n = t.fontMetrics().defaultRuleThickness;
return eY(
["mord", "overline"],
[
eK({
positionType: "firstBaseline",
children: [
{ type: "elem", elem: r },
{ type: "kern", size: 3 * n },
{ type: "elem", elem: a },
{ type: "kern", size: n },
],
}),
],
t,
);
},
mathmlBuilder(e, t) {
var r = new tv("mo", [new ty("‾")]);
r.setAttribute("stretchy", "true");
var a = new tv("mover", [tq(e.body, t), r]);
return a.setAttribute("accent", "true"), a;
},
}),
tt({
type: "phantom",
names: ["\\phantom"],
props: { numArgs: 1, allowedInText: !0 },
handler: (e, t) => {
var { parser: r } = e,
a = t[0];
return { type: "phantom", mode: r.mode, body: tn(a) };
},
htmlBuilder: (e, t) => e_(th(e.body, t.withPhantom(), !1)),
mathmlBuilder: (e, t) => new tv("mphantom", tT(e.body, t)),
}),
(rR["\\hphantom"] = "\\smash{\\phantom{#1}}"),
tt({
type: "vphantom",
names: ["\\vphantom"],
props: { numArgs: 1, allowedInText: !0 },
handler: (e, t) => {
var { parser: r } = e,
a = t[0];
return { type: "vphantom", mode: r.mode, body: a };
},
htmlBuilder: (e, t) => {
var r = eY(["inner"], [tg(e.body, t.withPhantom())]),
a = eY(["fix"], []);
return eY(["mord", "rlap"], [r, a], t);
},
mathmlBuilder: (e, t) => {
var r = new tv("mphantom", tT(tn(e.body), t)),
a = new tv("mpadded", [r]);
return a.setAttribute("width", "0px"), a;
},
}),
tt({
type: "raisebox",
names: ["\\raisebox"],
props: { numArgs: 2, argTypes: ["size", "hbox"], allowedInText: !0 },
handler(e, t) {
var { parser: r } = e,
a = tY(t[0], "size").value,
n = t[1];
return { type: "raisebox", mode: r.mode, dy: a, body: n };
},
htmlBuilder(e, t) {
var r = tg(e.body, t);
return eK({
positionType: "shift",
positionData: -E(e.dy, t),
children: [{ type: "elem", elem: r }],
});
},
mathmlBuilder(e, t) {
var r = new tv("mpadded", [tq(e.body, t)]),
a = e.dy.number + e.dy.unit;
return r.setAttribute("voffset", a), r;
},
}),
tt({
type: "internal",
names: ["\\relax"],
props: { numArgs: 0, allowedInText: !0, allowedInArgument: !0 },
handler(e) {
var { parser: t } = e;
return { type: "internal", mode: t.mode };
},
}),
tt({
type: "rule",
names: ["\\rule"],
props: {
numArgs: 2,
numOptionalArgs: 1,
allowedInText: !0,
allowedInMath: !0,
argTypes: ["size", "size", "size"],
},
handler(e, t, r) {
var { parser: a } = e,
n = r[0],
i = tY(t[0], "size"),
s = tY(t[1], "size");
return {
type: "rule",
mode: a.mode,
shift: n && tY(n, "size").value,
width: i.value,
height: s.value,
};
},
htmlBuilder(e, t) {
var r = eY(["mord", "rule"], [], t),
a = E(e.width, t),
n = E(e.height, t),
i = e.shift ? E(e.shift, t) : 0;
return (
(r.style.borderRightWidth = O(a)),
(r.style.borderTopWidth = O(n)),
(r.style.bottom = O(i)),
(r.width = a),
(r.height = n + i),
(r.depth = -i),
(r.maxFontSize = 1.125 * n * t.sizeMultiplier),
r
);
},
mathmlBuilder(e, t) {
var r = E(e.width, t),
a = E(e.height, t),
n = e.shift ? E(e.shift, t) : 0,
i = (t.color && t.getColor()) || "black",
s = new tv("mspace");
s.setAttribute("mathbackground", i),
s.setAttribute("width", O(r)),
s.setAttribute("height", O(a));
var o = new tv("mpadded", [s]);
return (
n >= 0
? o.setAttribute("height", O(n))
: (o.setAttribute("height", O(n)),
o.setAttribute("depth", O(-n))),
o.setAttribute("voffset", O(n)),
o
);
},
});
var ae = [
"\\tiny",
"\\sixptsize",
"\\scriptsize",
"\\footnotesize",
"\\small",
"\\normalsize",
"\\large",
"\\Large",
"\\LARGE",
"\\huge",
"\\Huge",
];
tt({
type: "sizing",
names: ae,
props: { numArgs: 0, allowedInText: !0 },
handler: (e, t) => {
var { breakOnTokenText: r, funcName: a, parser: n } = e,
i = n.parseExpression(!1, r);
return {
type: "sizing",
mode: n.mode,
size: ae.indexOf(a) + 1,
body: i,
};
},
htmlBuilder: (e, t) => {
var r = t.havingSize(e.size);
return r9(e.body, r, t);
},
mathmlBuilder: (e, t) => {
var r = t.havingSize(e.size),
a = new tv("mstyle", tT(e.body, r));
return a.setAttribute("mathsize", O(r.sizeMultiplier)), a;
},
}),
tt({
type: "smash",
names: ["\\smash"],
props: { numArgs: 1, numOptionalArgs: 1, allowedInText: !0 },
handler: (e, t, r) => {
var { parser: a } = e,
n = !1,
i = !1,
s = r[0] && tY(r[0], "ordgroup");
if (s)
for (var o = "", l = 0; l < s.body.length; ++l)
if ("t" === (o = tX(s.body[l]).text)) n = !0;
else if ("b" === o) i = !0;
else {
(n = !1), (i = !1);
break;
}
else (n = !0), (i = !0);
var h = t[0];
return {
type: "smash",
mode: a.mode,
body: h,
smashHeight: n,
smashDepth: i,
};
},
htmlBuilder: (e, t) => {
var r = eY([], [tg(e.body, t)]);
if (!e.smashHeight && !e.smashDepth) return r;
if (
(e.smashHeight && (r.height = 0),
e.smashDepth && (r.depth = 0),
e.smashHeight && e.smashDepth)
)
return eY(["mord", "smash"], [r], t);
if (r.children)
for (var a = 0; a < r.children.length; a++)
e.smashHeight && (r.children[a].height = 0),
e.smashDepth && (r.children[a].depth = 0);
return eY(
["mord"],
[
eK({
positionType: "firstBaseline",
children: [{ type: "elem", elem: r }],
}),
],
t,
);
},
mathmlBuilder: (e, t) => {
var r = new tv("mpadded", [tq(e.body, t)]);
return (
e.smashHeight && r.setAttribute("height", "0px"),
e.smashDepth && r.setAttribute("depth", "0px"),
r
);
},
}),
tt({
type: "sqrt",
names: ["\\sqrt"],
props: { numArgs: 1, numOptionalArgs: 1 },
handler(e, t, r) {
var { parser: a } = e,
n = r[0],
i = t[0];
return { type: "sqrt", mode: a.mode, body: i, index: n };
},
htmlBuilder(e, t) {
var r = tg(e.body, t.havingCrampedStyle());
0 === r.height && (r.height = t.fontMetrics().xHeight),
(r = e$(r, t));
var a = t.fontMetrics().defaultRuleThickness,
n = a;
t.style.id < k.TEXT.id && (n = t.fontMetrics().xHeight);
var i = a + n / 4,
{
span: s,
ruleWidth: o,
advanceWidth: l,
} = ru(r.height + r.depth + i + a, t),
h = s.height - o;
h > r.height + r.depth + i && (i = (i + h - r.height - r.depth) / 2);
var m = s.height - r.height - i - o;
r.style.paddingLeft = O(l);
var c = eK({
positionType: "firstBaseline",
children: [
{ type: "elem", elem: r, wrapperClasses: ["svg-align"] },
{ type: "kern", size: -(r.height + m) },
{ type: "elem", elem: s },
{ type: "kern", size: o },
],
});
if (!e.index) return eY(["mord", "sqrt"], [c], t);
var u = t.havingStyle(k.SCRIPTSCRIPT),
p = tg(e.index, u, t),
d = eY(
["root"],
[
eK({
positionType: "shift",
positionData: -(0.6 * (c.height - c.depth)),
children: [{ type: "elem", elem: p }],
}),
],
);
return eY(["mord", "sqrt"], [d, c], t);
},
mathmlBuilder(e, t) {
var { body: r, index: a } = e;
return a
? new tv("mroot", [tq(r, t), tq(a, t)])
: new tv("msqrt", [tq(r, t)]);
},
});
var at = {
display: k.DISPLAY,
text: k.TEXT,
script: k.SCRIPT,
scriptscript: k.SCRIPTSCRIPT,
};
tt({
type: "styling",
names: [
"\\displaystyle",
"\\textstyle",
"\\scriptstyle",
"\\scriptscriptstyle",
],
props: { numArgs: 0, allowedInText: !0, primitive: !0 },
handler(e, t) {
var { breakOnTokenText: r, funcName: a, parser: n } = e,
i = n.parseExpression(!0, r),
s = a.slice(1, a.length - 5);
return { type: "styling", mode: n.mode, style: s, body: i };
},
htmlBuilder(e, t) {
var r = at[e.style],
a = t.havingStyle(r).withFont("");
return r9(e.body, a, t);
},
mathmlBuilder(e, t) {
var r = at[e.style],
a = t.havingStyle(r),
n = new tv("mstyle", tT(e.body, a)),
i = {
display: ["0", "true"],
text: ["0", "false"],
script: ["1", "false"],
scriptscript: ["2", "false"],
}[e.style];
return (
n.setAttribute("scriptlevel", i[0]),
n.setAttribute("displaystyle", i[1]),
n
);
},
});
var ar = function (e, t) {
var r = e.base;
if (!r) return null;
if ("op" === r.type)
return r.limits &&
(t.style.size === k.DISPLAY.size || r.alwaysHandleSupSub)
? r6
: null;
if ("operatorname" === r.type)
return r.alwaysHandleSupSub &&
(t.style.size === k.DISPLAY.size || r.limits)
? r2
: null;
if ("accent" === r.type) return c(r.base) ? t_ : null;
if ("horizBrace" === r.type) return !e.sub === r.isOver ? rQ : null;
else return null;
};
tr({
type: "supsub",
htmlBuilder(e, t) {
var r,
a,
n,
i,
s = ar(e, t);
if (s) return s(e, t);
var { base: o, sup: l, sub: h } = e,
m = tg(o, t),
u = t.fontMetrics(),
p = 0,
d = 0,
g = o && c(o);
if (l) {
var f = t.havingStyle(t.style.sup());
(r = tg(l, f, t)),
g ||
(p =
m.height -
(f.fontMetrics().supDrop * f.sizeMultiplier) /
t.sizeMultiplier);
}
if (h) {
var b = t.havingStyle(t.style.sub());
(a = tg(h, b, t)),
g ||
(d =
m.depth +
(b.fontMetrics().subDrop * b.sizeMultiplier) /
t.sizeMultiplier);
}
n = t.style === k.DISPLAY ? u.sup1 : t.style.cramped ? u.sup3 : u.sup2;
var v = t.sizeMultiplier,
y = O(0.5 / u.ptPerEm / v),
x = null;
if (a) {
var w =
e.base &&
"op" === e.base.type &&
e.base.name &&
("\\oiint" === e.base.name || "\\oiiint" === e.base.name);
(m instanceof X || w) && (x = O(-m.italic));
}
if (r && a) {
(p = Math.max(p, n, r.depth + 0.25 * u.xHeight)),
(d = Math.max(d, u.sub2));
var z = 4 * u.defaultRuleThickness;
if (p - r.depth - (a.height - d) < z) {
d = z - (p - r.depth) + a.height;
var S = 0.8 * u.xHeight - (p - r.depth);
S > 0 && ((p += S), (d -= S));
}
i = eK({
positionType: "individualShift",
children: [
{
type: "elem",
elem: a,
shift: d,
marginRight: y,
marginLeft: x,
},
{ type: "elem", elem: r, shift: -p, marginRight: y },
],
});
} else if (a)
i = eK({
positionType: "shift",
positionData: (d = Math.max(d, u.sub1, a.height - 0.8 * u.xHeight)),
children: [
{ type: "elem", elem: a, marginLeft: x, marginRight: y },
],
});
else if (r)
i = eK({
positionType: "shift",
positionData: -(p = Math.max(p, n, r.depth + 0.25 * u.xHeight)),
children: [{ type: "elem", elem: r, marginRight: y }],
});
else throw Error("supsub must have either sup or sub.");
return eY([tp(m, "right") || "mord"], [m, eY(["msupsub"], [i])], t);
},
mathmlBuilder(e, t) {
var r,
a,
n = !1;
e.base &&
"horizBrace" === e.base.type &&
!!e.sup === e.base.isOver &&
((n = !0), (r = e.base.isOver)),
e.base &&
("op" === e.base.type || "operatorname" === e.base.type) &&
(e.base.parentIsSupSub = !0);
var i = [tq(e.base, t)];
if ((e.sub && i.push(tq(e.sub, t)), e.sup && i.push(tq(e.sup, t)), n))
a = r ? "mover" : "munder";
else if (e.sub)
if (e.sup) {
var s = e.base;
a =
(s && "op" === s.type && s.limits && t.style === k.DISPLAY) ||
(s &&
"operatorname" === s.type &&
s.alwaysHandleSupSub &&
(t.style === k.DISPLAY || s.limits))
? "munderover"
: "msubsup";
} else {
var o = e.base;
a =
(o &&
"op" === o.type &&
o.limits &&
(t.style === k.DISPLAY || o.alwaysHandleSupSub)) ||
(o &&
"operatorname" === o.type &&
o.alwaysHandleSupSub &&
(o.limits || t.style === k.DISPLAY))
? "munder"
: "msub";
}
else {
var l = e.base;
a =
(l &&
"op" === l.type &&
l.limits &&
(t.style === k.DISPLAY || l.alwaysHandleSupSub)) ||
(l &&
"operatorname" === l.type &&
l.alwaysHandleSupSub &&
(l.limits || t.style === k.DISPLAY))
? "mover"
: "msup";
}
return new tv(a, i);
},
}),
tr({
type: "atom",
htmlBuilder: (e, t) => eP(e.text, e.mode, t, ["m" + e.family]),
mathmlBuilder(e, t) {
var r = new tv("mo", [tz(e.text, e.mode)]);
if ("bin" === e.family) {
var a = tM(e, t);
"bold-italic" === a && r.setAttribute("mathvariant", a);
} else
"punct" === e.family
? r.setAttribute("separator", "true")
: ("open" === e.family || "close" === e.family) &&
r.setAttribute("stretchy", "false");
return r;
},
});
var aa = { mi: "italic", mn: "normal", mtext: "normal" };
tr({
type: "mathord",
htmlBuilder: (e, t) => eF(e, t, "mathord"),
mathmlBuilder(e, t) {
var r = new tv("mi", [tz(e.text, e.mode, t)]),
a = tM(e, t) || "italic";
return a !== aa[r.type] && r.setAttribute("mathvariant", a), r;
},
}),
tr({
type: "textord",
htmlBuilder: (e, t) => eF(e, t, "textord"),
mathmlBuilder(e, t) {
var r,
a = tz(e.text, e.mode, t),
n = tM(e, t) || "normal";
return (
n !==
aa[
(r =
"text" === e.mode
? new tv("mtext", [a])
: /[0-9]/.test(e.text)
? new tv("mn", [a])
: "\\prime" === e.text
? new tv("mo", [a])
: new tv("mi", [a])).type
] && r.setAttribute("mathvariant", n),
r
);
},
});
var an = { "\\nobreak": "nobreak", "\\allowbreak": "allowbreak" },
ai = {
" ": {},
"\\ ": {},
"~": { className: "nobreak" },
"\\space": {},
"\\nobreakspace": { className: "nobreak" },
};
tr({
type: "spacing",
htmlBuilder(e, r) {
if (ai.hasOwnProperty(e.text)) {
var a = ai[e.text].className || "";
if ("text" !== e.mode)
return eY(["mspace", a], [eP(e.text, e.mode, r)], r);
var n = eF(e, r, "textord");
return n.classes.push(a), n;
}
if (an.hasOwnProperty(e.text)) return eY(["mspace", an[e.text]], [], r);
throw new t('Unknown type of space "' + e.text + '"');
},
mathmlBuilder(e, r) {
var a;
if (ai.hasOwnProperty(e.text)) a = new tv("mtext", [new ty(" ")]);
else if (an.hasOwnProperty(e.text)) return new tv("mspace");
else throw new t('Unknown type of space "' + e.text + '"');
return a;
},
});
var as = () => {
var e = new tv("mtd", []);
return e.setAttribute("width", "50%"), e;
};
tr({
type: "tag",
mathmlBuilder(e, t) {
var r = new tv("mtable", [
new tv("mtr", [
as(),
new tv("mtd", [tB(e.body, t)]),
as(),
new tv("mtd", [tB(e.tag, t)]),
]),
]);
return r.setAttribute("width", "100%"), r;
},
});
var ao = {
"\\text": void 0,
"\\textrm": "textrm",
"\\textsf": "textsf",
"\\texttt": "texttt",
"\\textnormal": "textrm",
},
al = { "\\textbf": "textbf", "\\textmd": "textmd" },
ah = { "\\textit": "textit", "\\textup": "textup" },
am = (e, t) => {
var r = e.font;
return r
? ao[r]
? t.withTextFontFamily(ao[r])
: al[r]
? t.withTextFontWeight(al[r])
: "\\emph" === r
? "textit" === t.fontShape
? t.withTextFontShape("textup")
: t.withTextFontShape("textit")
: t.withTextFontShape(ah[r])
: t;
};
tt({
type: "text",
names: [
"\\text",
"\\textrm",
"\\textsf",
"\\texttt",
"\\textnormal",
"\\textbf",
"\\textmd",
"\\textit",
"\\textup",
"\\emph",
],
props: {
numArgs: 1,
argTypes: ["text"],
allowedInArgument: !0,
allowedInText: !0,
},
handler(e, t) {
var { parser: r, funcName: a } = e,
n = t[0];
return { type: "text", mode: r.mode, body: tn(n), font: a };
},
htmlBuilder(e, t) {
var r = am(e, t);
return eY(["mord", "text"], th(e.body, r, !0), r);
},
mathmlBuilder(e, t) {
var r = am(e, t);
return tB(e.body, r);
},
}),
tt({
type: "underline",
names: ["\\underline"],
props: { numArgs: 1, allowedInText: !0 },
handler(e, t) {
var { parser: r } = e;
return { type: "underline", mode: r.mode, body: t[0] };
},
htmlBuilder(e, t) {
var r = tg(e.body, t),
a = ej("underline-line", t),
n = t.fontMetrics().defaultRuleThickness;
return eY(
["mord", "underline"],
[
eK({
positionType: "top",
positionData: r.height,
children: [
{ type: "kern", size: n },
{ type: "elem", elem: a },
{ type: "kern", size: 3 * n },
{ type: "elem", elem: r },
],
}),
],
t,
);
},
mathmlBuilder(e, t) {
var r = new tv("mo", [new ty("‾")]);
r.setAttribute("stretchy", "true");
var a = new tv("munder", [tq(e.body, t), r]);
return a.setAttribute("accentunder", "true"), a;
},
}),
tt({
type: "vcenter",
names: ["\\vcenter"],
props: { numArgs: 1, argTypes: ["original"], allowedInText: !1 },
handler(e, t) {
var { parser: r } = e;
return { type: "vcenter", mode: r.mode, body: t[0] };
},
htmlBuilder(e, t) {
var r = tg(e.body, t),
a = t.fontMetrics().axisHeight;
return eK({
positionType: "shift",
positionData: 0.5 * (r.height - a - (r.depth + a)),
children: [{ type: "elem", elem: r }],
});
},
mathmlBuilder: (e, t) =>
new tv("mpadded", [tq(e.body, t)], ["vcenter"]),
}),
tt({
type: "verb",
names: ["\\verb"],
props: { numArgs: 0, allowedInText: !0 },
handler(e, r, a) {
throw new t(
"\\verb ended by end of line instead of matching delimiter",
);
},
htmlBuilder(e, t) {
for (
var r = ac(e), a = [], n = t.havingStyle(t.style.text()), i = 0;
i < r.length;
i++
) {
var s = r[i];
"~" === s && (s = "\\textasciitilde"),
a.push(
eL(s, "Typewriter-Regular", e.mode, n, ["mord", "texttt"]),
);
}
return eY(["mord", "text"].concat(n.sizingClasses(t)), eG(a), n);
},
mathmlBuilder(e, t) {
var r = new tv("mtext", [new ty(ac(e))]);
return r.setAttribute("mathvariant", "monospace"), r;
},
});
var ac = (e) => e.body.replace(/ /g, e.star ? "␣" : " "),
au = "[ \r\n ]",
ap = "[̀-ͯ]",
ad = RegExp(ap + "+$"),
ag =
"(" +
au +
"+)|\\\\(\n|[ \r ]+\n?)[ \r ]*|([!-\\[\\]-‧‪-퟿豈-￿]" +
ap +
"*|[\uD800-\uDBFF][\uDC00-\uDFFF]" +
ap +
"*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|(\\\\[a-zA-Z@]+)" +
au +
"*|\\\\[^\uD800-\uDFFF])";
class af {
constructor(e, t) {
(this.input = e),
(this.settings = t),
(this.tokenRegex = RegExp(ag, "g")),
(this.catcodes = { "%": 14, "~": 13 });
}
setCatcode(e, t) {
this.catcodes[e] = t;
}
lex() {
var e = this.input,
r = this.tokenRegex.lastIndex;
if (r === e.length) return new rD("EOF", new rO(this, r, r));
var a = this.tokenRegex.exec(e);
if (null === a || a.index !== r)
throw new t(
"Unexpected character: '" + e[r] + "'",
new rD(e[r], new rO(this, r, r + 1)),
);
var n = a[6] || a[3] || (a[2] ? "\\ " : " ");
if (14 === this.catcodes[n]) {
var i = e.indexOf("\n", this.tokenRegex.lastIndex);
return (
-1 === i
? ((this.tokenRegex.lastIndex = e.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 = i + 1),
this.lex()
);
}
return new rD(n, new rO(this, r, this.tokenRegex.lastIndex));
}
}
class ab {
constructor(e, t) {
void 0 === e && (e = {}),
void 0 === t && (t = {}),
(this.current = t),
(this.builtins = e),
(this.undefStack = []);
}
beginGroup() {
this.undefStack.push({});
}
endGroup() {
if (0 === this.undefStack.length)
throw new t(
"Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug",
);
var e = this.undefStack.pop();
for (var r in e)
e.hasOwnProperty(r) &&
(null == e[r] ? delete this.current[r] : (this.current[r] = e[r]));
}
endGroups() {
for (; this.undefStack.length > 0; ) this.endGroup();
}
has(e) {
return (
this.current.hasOwnProperty(e) || this.builtins.hasOwnProperty(e)
);
}
get(e) {
return this.current.hasOwnProperty(e)
? this.current[e]
: this.builtins[e];
}
set(e, t, r) {
if ((void 0 === r && (r = !1), r)) {
for (var a = 0; a < this.undefStack.length; a++)
delete this.undefStack[a][e];
this.undefStack.length > 0 &&
(this.undefStack[this.undefStack.length - 1][e] = t);
} else {
var n = this.undefStack[this.undefStack.length - 1];
n && !n.hasOwnProperty(e) && (n[e] = this.current[e]);
}
null == t ? delete this.current[e] : (this.current[e] = t);
}
}
(rR["\\noexpand"] = function (e) {
var t = e.popToken();
return (
e.isExpandable(t.text) && ((t.noexpand = !0), (t.treatAsRelax = !0)),
{ tokens: [t], numArgs: 0 }
);
}),
(rR["\\expandafter"] = function (e) {
var t = e.popToken();
return e.expandOnce(!0), { tokens: [t], numArgs: 0 };
}),
(rR["\\@firstoftwo"] = function (e) {
return { tokens: e.consumeArgs(2)[0], numArgs: 0 };
}),
(rR["\\@secondoftwo"] = function (e) {
return { tokens: e.consumeArgs(2)[1], numArgs: 0 };
}),
(rR["\\@ifnextchar"] = function (e) {
var t = e.consumeArgs(3);
e.consumeSpaces();
var r = e.future();
return 1 === t[0].length && t[0][0].text === r.text
? { tokens: t[1], numArgs: 0 }
: { tokens: t[2], numArgs: 0 };
}),
(rR["\\@ifstar"] = "\\@ifnextchar *{\\@firstoftwo{#1}}"),
(rR["\\TextOrMath"] = function (e) {
var t = e.consumeArgs(2);
return "text" === e.mode
? { tokens: t[0], numArgs: 0 }
: { tokens: t[1], numArgs: 0 };
});
var av = {
0: 0,
1: 1,
2: 2,
3: 3,
4: 4,
5: 5,
6: 6,
7: 7,
8: 8,
9: 9,
a: 10,
A: 10,
b: 11,
B: 11,
c: 12,
C: 12,
d: 13,
D: 13,
e: 14,
E: 14,
f: 15,
F: 15,
};
rR["\\char"] = function (e) {
var r,
a,
n = e.popToken(),
i = 0;
if ("'" === n.text) (r = 8), (n = e.popToken());
else if ('"' === n.text) (r = 16), (n = e.popToken());
else if ("`" === n.text)
if ("\\" === (n = e.popToken()).text[0]) i = n.text.charCodeAt(1);
else if ("EOF" === n.text) throw new t("\\char` missing argument");
else i = n.text.charCodeAt(0);
else r = 10;
if (r) {
if (null == (i = av[n.text]) || i >= r)
throw new t("Invalid base-" + r + " digit " + n.text);
for (; null != (a = av[e.future().text]) && a < r; )
(i *= r), (i += a), e.popToken();
}
return "\\@char{" + i + "}";
};
var ay = (e, r, a, n) => {
var i = e.consumeArg().tokens;
if (1 !== i.length)
throw new t("\\newcommand's first argument must be a macro name");
var s = i[0].text,
o = e.isDefined(s);
if (o && !r)
throw new t(
"\\newcommand{" +
s +
"} attempting to redefine " +
s +
"; use \\renewcommand",
);
if (!o && !a)
throw new t(
"\\renewcommand{" +
s +
"} when command " +
s +
" does not yet exist; use \\newcommand",
);
var l = 0;
if (1 === (i = e.consumeArg().tokens).length && "[" === i[0].text) {
for (
var h = "", m = e.expandNextToken();
"]" !== m.text && "EOF" !== m.text;
)
(h += m.text), (m = e.expandNextToken());
if (!h.match(/^\s*[0-9]+\s*$/))
throw new t("Invalid number of arguments: " + h);
(l = parseInt(h)), (i = e.consumeArg().tokens);
}
return (o && n) || e.macros.set(s, { tokens: i, numArgs: l }), "";
};
(rR["\\newcommand"] = (e) => ay(e, !1, !0, !1)),
(rR["\\renewcommand"] = (e) => ay(e, !0, !1, !1)),
(rR["\\providecommand"] = (e) => ay(e, !0, !0, !0)),
(rR["\\message"] = (e) => (
console.log(
e
.consumeArgs(1)[0]
.reverse()
.map((e) => e.text)
.join(""),
),
""
)),
(rR["\\errmessage"] = (e) => (
console.error(
e
.consumeArgs(1)[0]
.reverse()
.map((e) => e.text)
.join(""),
),
""
)),
(rR["\\show"] = (e) => {
var t = e.popToken(),
r = t.text;
return (
console.log(t, e.macros.get(r), e2[r], ea.math[r], ea.text[r]), ""
);
}),
(rR["\\bgroup"] = "{"),
(rR["\\egroup"] = "}"),
(rR["~"] = "\\nobreakspace"),
(rR["\\lq"] = "`"),
(rR["\\rq"] = "'"),
(rR["\\aa"] = "\\r a"),
(rR["\\AA"] = "\\r A"),
(rR["\\textcopyright"] = "\\html@mathml{\\textcircled{c}}{\\char`©}"),
(rR["\\copyright"] =
"\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),
(rR["\\textregistered"] =
"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),
(rR["ℬ"] = "\\mathscr{B}"),
(rR["ℰ"] = "\\mathscr{E}"),
(rR["ℱ"] = "\\mathscr{F}"),
(rR["ℋ"] = "\\mathscr{H}"),
(rR["ℐ"] = "\\mathscr{I}"),
(rR["ℒ"] = "\\mathscr{L}"),
(rR["ℳ"] = "\\mathscr{M}"),
(rR["ℛ"] = "\\mathscr{R}"),
(rR["ℭ"] = "\\mathfrak{C}"),
(rR["ℌ"] = "\\mathfrak{H}"),
(rR["ℨ"] = "\\mathfrak{Z}"),
(rR["\\Bbbk"] = "\\Bbb{k}"),
(rR["·"] = "\\cdotp"),
(rR["\\llap"] = "\\mathllap{\\textrm{#1}}"),
(rR["\\rlap"] = "\\mathrlap{\\textrm{#1}}"),
(rR["\\clap"] = "\\mathclap{\\textrm{#1}}"),
(rR["\\mathstrut"] = "\\vphantom{(}"),
(rR["\\underbar"] = "\\underline{\\text{#1}}"),
(rR["\\not"] =
'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}'),
(rR["\\neq"] = "\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),
(rR["\\ne"] = "\\neq"),
(rR["≠"] = "\\neq"),
(rR["\\notin"] =
"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),
(rR["∉"] = "\\notin"),
(rR["≘"] =
"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),
(rR["≙"] =
"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),
(rR["≚"] =
"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),
(rR["≛"] =
"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),
(rR["≝"] =
"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),
(rR["≞"] =
"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),
(rR["≟"] = "\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),
(rR["⟂"] = "\\perp"),
(rR["‼"] = "\\mathclose{!\\mkern-0.8mu!}"),
(rR["∌"] = "\\notni"),
(rR["⌜"] = "\\ulcorner"),
(rR["⌝"] = "\\urcorner"),
(rR["⌞"] = "\\llcorner"),
(rR["⌟"] = "\\lrcorner"),
(rR["©"] = "\\copyright"),
(rR["®"] = "\\textregistered"),
(rR["\\ulcorner"] = '\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),
(rR["\\urcorner"] = '\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),
(rR["\\llcorner"] = '\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),
(rR["\\lrcorner"] = '\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),
(rR["\\vdots"] = "{\\varvdots\\rule{0pt}{15pt}}"),
(rR["⋮"] = "\\vdots"),
(rR["\\varGamma"] = "\\mathit{\\Gamma}"),
(rR["\\varDelta"] = "\\mathit{\\Delta}"),
(rR["\\varTheta"] = "\\mathit{\\Theta}"),
(rR["\\varLambda"] = "\\mathit{\\Lambda}"),
(rR["\\varXi"] = "\\mathit{\\Xi}"),
(rR["\\varPi"] = "\\mathit{\\Pi}"),
(rR["\\varSigma"] = "\\mathit{\\Sigma}"),
(rR["\\varUpsilon"] = "\\mathit{\\Upsilon}"),
(rR["\\varPhi"] = "\\mathit{\\Phi}"),
(rR["\\varPsi"] = "\\mathit{\\Psi}"),
(rR["\\varOmega"] = "\\mathit{\\Omega}"),
(rR["\\substack"] = "\\begin{subarray}{c}#1\\end{subarray}"),
(rR["\\colon"] =
"\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),
(rR["\\boxed"] = "\\fbox{$\\displaystyle{#1}$}"),
(rR["\\iff"] = "\\DOTSB\\;\\Longleftrightarrow\\;"),
(rR["\\implies"] = "\\DOTSB\\;\\Longrightarrow\\;"),
(rR["\\impliedby"] = "\\DOTSB\\;\\Longleftarrow\\;"),
(rR["\\dddot"] = "{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),
(rR["\\ddddot"] =
"{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");
var ax = {
",": "\\dotsc",
"\\not": "\\dotsb",
"+": "\\dotsb",
"=": "\\dotsb",
"<": "\\dotsb",
">": "\\dotsb",
"-": "\\dotsb",
"*": "\\dotsb",
":": "\\dotsb",
"\\DOTSB": "\\dotsb",
"\\coprod": "\\dotsb",
"\\bigvee": "\\dotsb",
"\\bigwedge": "\\dotsb",
"\\biguplus": "\\dotsb",
"\\bigcap": "\\dotsb",
"\\bigcup": "\\dotsb",
"\\prod": "\\dotsb",
"\\sum": "\\dotsb",
"\\bigotimes": "\\dotsb",
"\\bigoplus": "\\dotsb",
"\\bigodot": "\\dotsb",
"\\bigsqcup": "\\dotsb",
"\\And": "\\dotsb",
"\\longrightarrow": "\\dotsb",
"\\Longrightarrow": "\\dotsb",
"\\longleftarrow": "\\dotsb",
"\\Longleftarrow": "\\dotsb",
"\\longleftrightarrow": "\\dotsb",
"\\Longleftrightarrow": "\\dotsb",
"\\mapsto": "\\dotsb",
"\\longmapsto": "\\dotsb",
"\\hookrightarrow": "\\dotsb",
"\\doteq": "\\dotsb",
"\\mathbin": "\\dotsb",
"\\mathrel": "\\dotsb",
"\\relbar": "\\dotsb",
"\\Relbar": "\\dotsb",
"\\xrightarrow": "\\dotsb",
"\\xleftarrow": "\\dotsb",
"\\DOTSI": "\\dotsi",
"\\int": "\\dotsi",
"\\oint": "\\dotsi",
"\\iint": "\\dotsi",
"\\iiint": "\\dotsi",
"\\iiiint": "\\dotsi",
"\\idotsint": "\\dotsi",
"\\DOTSX": "\\dotsx",
},
aw = new Set(["bin", "rel"]);
rR["\\dots"] = function (e) {
var t = "\\dotso",
r = e.expandAfterFuture().text;
return (
r in ax
? (t = ax[r])
: "\\not" === r.slice(0, 4)
? (t = "\\dotsb")
: r in ea.math && aw.has(ea.math[r].group) && (t = "\\dotsb"),
t
);
};
var ak = {
")": !0,
"]": !0,
"\\rbrack": !0,
"\\}": !0,
"\\rbrace": !0,
"\\rangle": !0,
"\\rceil": !0,
"\\rfloor": !0,
"\\rgroup": !0,
"\\rmoustache": !0,
"\\right": !0,
"\\bigr": !0,
"\\biggr": !0,
"\\Bigr": !0,
"\\Biggr": !0,
$: !0,
";": !0,
".": !0,
",": !0,
};
(rR["\\dotso"] = function (e) {
return e.future().text in ak ? "\\ldots\\," : "\\ldots";
}),
(rR["\\dotsc"] = function (e) {
var t = e.future().text;
return t in ak && "," !== t ? "\\ldots\\," : "\\ldots";
}),
(rR["\\cdots"] = function (e) {
return e.future().text in ak ? "\\@cdots\\," : "\\@cdots";
}),
(rR["\\dotsb"] = "\\cdots"),
(rR["\\dotsm"] = "\\cdots"),
(rR["\\dotsi"] = "\\!\\cdots"),
(rR["\\dotsx"] = "\\ldots\\,"),
(rR["\\DOTSI"] = "\\relax"),
(rR["\\DOTSB"] = "\\relax"),
(rR["\\DOTSX"] = "\\relax"),
(rR["\\tmspace"] = "\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),
(rR["\\,"] = "\\tmspace+{3mu}{.1667em}"),
(rR["\\thinspace"] = "\\,"),
(rR["\\>"] = "\\mskip{4mu}"),
(rR["\\:"] = "\\tmspace+{4mu}{.2222em}"),
(rR["\\medspace"] = "\\:"),
(rR["\\;"] = "\\tmspace+{5mu}{.2777em}"),
(rR["\\thickspace"] = "\\;"),
(rR["\\!"] = "\\tmspace-{3mu}{.1667em}"),
(rR["\\negthinspace"] = "\\!"),
(rR["\\negmedspace"] = "\\tmspace-{4mu}{.2222em}"),
(rR["\\negthickspace"] = "\\tmspace-{5mu}{.277em}"),
(rR["\\enspace"] = "\\kern.5em "),
(rR["\\enskip"] = "\\hskip.5em\\relax"),
(rR["\\quad"] = "\\hskip1em\\relax"),
(rR["\\qquad"] = "\\hskip2em\\relax"),
(rR["\\tag"] = "\\@ifstar\\tag@literal\\tag@paren"),
(rR["\\tag@paren"] = "\\tag@literal{({#1})}"),
(rR["\\tag@literal"] = (e) => {
if (e.macros.get("\\df@tag")) throw new t("Multiple \\tag");
return "\\gdef\\df@tag{\\text{#1}}";
}),
(rR["\\bmod"] =
"\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),
(rR["\\pod"] =
"\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),
(rR["\\pmod"] = "\\pod{{\\rm mod}\\mkern6mu#1}"),
(rR["\\mod"] =
"\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),
(rR["\\newline"] = "\\\\\\relax"),
(rR["\\TeX"] =
"\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");
var az = O($["Main-Regular"][84][1] - 0.7 * $["Main-Regular"][65][1]);
(rR["\\LaTeX"] =
"\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{" +
az +
"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),
(rR["\\KaTeX"] =
"\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{" +
az +
"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),
(rR["\\hspace"] = "\\@ifstar\\@hspacer\\@hspace"),
(rR["\\@hspace"] = "\\hskip #1\\relax"),
(rR["\\@hspacer"] = "\\rule{0pt}{0pt}\\hskip #1\\relax"),
(rR["\\ordinarycolon"] = ":"),
(rR["\\vcentcolon"] = "\\mathrel{\\mathop\\ordinarycolon}"),
(rR["\\dblcolon"] =
'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),
(rR["\\coloneqq"] =
'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),
(rR["\\Coloneqq"] =
'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),
(rR["\\coloneq"] =
'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),
(rR["\\Coloneq"] =
'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),
(rR["\\eqqcolon"] =
'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),
(rR["\\Eqqcolon"] =
'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),
(rR["\\eqcolon"] =
'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),
(rR["\\Eqcolon"] =
'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),
(rR["\\colonapprox"] =
'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),
(rR["\\Colonapprox"] =
'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),
(rR["\\colonsim"] =
'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),
(rR["\\Colonsim"] =
'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),
(rR["∷"] = "\\dblcolon"),
(rR["∹"] = "\\eqcolon"),
(rR["≔"] = "\\coloneqq"),
(rR["≕"] = "\\eqqcolon"),
(rR["⩴"] = "\\Coloneqq"),
(rR["\\ratio"] = "\\vcentcolon"),
(rR["\\coloncolon"] = "\\dblcolon"),
(rR["\\colonequals"] = "\\coloneqq"),
(rR["\\coloncolonequals"] = "\\Coloneqq"),
(rR["\\equalscolon"] = "\\eqqcolon"),
(rR["\\equalscoloncolon"] = "\\Eqqcolon"),
(rR["\\colonminus"] = "\\coloneq"),
(rR["\\coloncolonminus"] = "\\Coloneq"),
(rR["\\minuscolon"] = "\\eqcolon"),
(rR["\\minuscoloncolon"] = "\\Eqcolon"),
(rR["\\coloncolonapprox"] = "\\Colonapprox"),
(rR["\\coloncolonsim"] = "\\Colonsim"),
(rR["\\simcolon"] =
"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),
(rR["\\simcoloncolon"] =
"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),
(rR["\\approxcolon"] =
"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),
(rR["\\approxcoloncolon"] =
"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),
(rR["\\notni"] = "\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),
(rR["\\limsup"] = "\\DOTSB\\operatorname*{lim\\,sup}"),
(rR["\\liminf"] = "\\DOTSB\\operatorname*{lim\\,inf}"),
(rR["\\injlim"] = "\\DOTSB\\operatorname*{inj\\,lim}"),
(rR["\\projlim"] = "\\DOTSB\\operatorname*{proj\\,lim}"),
(rR["\\varlimsup"] = "\\DOTSB\\operatorname*{\\overline{lim}}"),
(rR["\\varliminf"] = "\\DOTSB\\operatorname*{\\underline{lim}}"),
(rR["\\varinjlim"] = "\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),
(rR["\\varprojlim"] = "\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),
(rR["\\gvertneqq"] = "\\html@mathml{\\@gvertneqq}{≩}"),
(rR["\\lvertneqq"] = "\\html@mathml{\\@lvertneqq}{≨}"),
(rR["\\ngeqq"] = "\\html@mathml{\\@ngeqq}{≱}"),
(rR["\\ngeqslant"] = "\\html@mathml{\\@ngeqslant}{≱}"),
(rR["\\nleqq"] = "\\html@mathml{\\@nleqq}{≰}"),
(rR["\\nleqslant"] = "\\html@mathml{\\@nleqslant}{≰}"),
(rR["\\nshortmid"] = "\\html@mathml{\\@nshortmid}{∤}"),
(rR["\\nshortparallel"] = "\\html@mathml{\\@nshortparallel}{∦}"),
(rR["\\nsubseteqq"] = "\\html@mathml{\\@nsubseteqq}{⊈}"),
(rR["\\nsupseteqq"] = "\\html@mathml{\\@nsupseteqq}{⊉}"),
(rR["\\varsubsetneq"] = "\\html@mathml{\\@varsubsetneq}{⊊}"),
(rR["\\varsubsetneqq"] = "\\html@mathml{\\@varsubsetneqq}{⫋}"),
(rR["\\varsupsetneq"] = "\\html@mathml{\\@varsupsetneq}{⊋}"),
(rR["\\varsupsetneqq"] = "\\html@mathml{\\@varsupsetneqq}{⫌}"),
(rR["\\imath"] = "\\html@mathml{\\@imath}{ı}"),
(rR["\\jmath"] = "\\html@mathml{\\@jmath}{ȷ}"),
(rR["\\llbracket"] =
"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),
(rR["\\rrbracket"] =
"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),
(rR["⟦"] = "\\llbracket"),
(rR["⟧"] = "\\rrbracket"),
(rR["\\lBrace"] =
"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),
(rR["\\rBrace"] =
"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),
(rR["⦃"] = "\\lBrace"),
(rR["⦄"] = "\\rBrace"),
(rR["\\minuso"] =
"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),
(rR["⦵"] = "\\minuso"),
(rR["\\darr"] = "\\downarrow"),
(rR["\\dArr"] = "\\Downarrow"),
(rR["\\Darr"] = "\\Downarrow"),
(rR["\\lang"] = "\\langle"),
(rR["\\rang"] = "\\rangle"),
(rR["\\uarr"] = "\\uparrow"),
(rR["\\uArr"] = "\\Uparrow"),
(rR["\\Uarr"] = "\\Uparrow"),
(rR["\\N"] = "\\mathbb{N}"),
(rR["\\R"] = "\\mathbb{R}"),
(rR["\\Z"] = "\\mathbb{Z}"),
(rR["\\alef"] = "\\aleph"),
(rR["\\alefsym"] = "\\aleph"),
(rR["\\Alpha"] = "\\mathrm{A}"),
(rR["\\Beta"] = "\\mathrm{B}"),
(rR["\\bull"] = "\\bullet"),
(rR["\\Chi"] = "\\mathrm{X}"),
(rR["\\clubs"] = "\\clubsuit"),
(rR["\\cnums"] = "\\mathbb{C}"),
(rR["\\Complex"] = "\\mathbb{C}"),
(rR["\\Dagger"] = "\\ddagger"),
(rR["\\diamonds"] = "\\diamondsuit"),
(rR["\\empty"] = "\\emptyset"),
(rR["\\Epsilon"] = "\\mathrm{E}"),
(rR["\\Eta"] = "\\mathrm{H}"),
(rR["\\exist"] = "\\exists"),
(rR["\\harr"] = "\\leftrightarrow"),
(rR["\\hArr"] = "\\Leftrightarrow"),
(rR["\\Harr"] = "\\Leftrightarrow"),
(rR["\\hearts"] = "\\heartsuit"),
(rR["\\image"] = "\\Im"),
(rR["\\infin"] = "\\infty"),
(rR["\\Iota"] = "\\mathrm{I}"),
(rR["\\isin"] = "\\in"),
(rR["\\Kappa"] = "\\mathrm{K}"),
(rR["\\larr"] = "\\leftarrow"),
(rR["\\lArr"] = "\\Leftarrow"),
(rR["\\Larr"] = "\\Leftarrow"),
(rR["\\lrarr"] = "\\leftrightarrow"),
(rR["\\lrArr"] = "\\Leftrightarrow"),
(rR["\\Lrarr"] = "\\Leftrightarrow"),
(rR["\\Mu"] = "\\mathrm{M}"),
(rR["\\natnums"] = "\\mathbb{N}"),
(rR["\\Nu"] = "\\mathrm{N}"),
(rR["\\Omicron"] = "\\mathrm{O}"),
(rR["\\plusmn"] = "\\pm"),
(rR["\\rarr"] = "\\rightarrow"),
(rR["\\rArr"] = "\\Rightarrow"),
(rR["\\Rarr"] = "\\Rightarrow"),
(rR["\\real"] = "\\Re"),
(rR["\\reals"] = "\\mathbb{R}"),
(rR["\\Reals"] = "\\mathbb{R}"),
(rR["\\Rho"] = "\\mathrm{P}"),
(rR["\\sdot"] = "\\cdot"),
(rR["\\sect"] = "\\S"),
(rR["\\spades"] = "\\spadesuit"),
(rR["\\sub"] = "\\subset"),
(rR["\\sube"] = "\\subseteq"),
(rR["\\supe"] = "\\supseteq"),
(rR["\\Tau"] = "\\mathrm{T}"),
(rR["\\thetasym"] = "\\vartheta"),
(rR["\\weierp"] = "\\wp"),
(rR["\\Zeta"] = "\\mathrm{Z}"),
(rR["\\argmin"] = "\\DOTSB\\operatorname*{arg\\,min}"),
(rR["\\argmax"] = "\\DOTSB\\operatorname*{arg\\,max}"),
(rR["\\plim"] = "\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),
(rR["\\bra"] = "\\mathinner{\\langle{#1}|}"),
(rR["\\ket"] = "\\mathinner{|{#1}\\rangle}"),
(rR["\\braket"] = "\\mathinner{\\langle{#1}\\rangle}"),
(rR["\\Bra"] = "\\left\\langle#1\\right|"),
(rR["\\Ket"] = "\\left|#1\\right\\rangle");
var aS = (e) => (t) => {
var r = t.consumeArg().tokens,
a = t.consumeArg().tokens,
n = t.consumeArg().tokens,
i = t.consumeArg().tokens,
s = t.macros.get("|"),
o = t.macros.get("\\|");
t.macros.beginGroup();
var l = (t) => (r) => {
e && (r.macros.set("|", s), n.length && r.macros.set("\\|", o));
var i = t;
return (
!t && n.length && "|" === r.future().text && (r.popToken(), (i = !0)),
{ tokens: i ? n : a, numArgs: 0 }
);
};
t.macros.set("|", l(!1)), n.length && t.macros.set("\\|", l(!0));
var h = t.consumeArg().tokens,
m = t.expandTokens([...i, ...h, ...r]);
return t.macros.endGroup(), { tokens: m.reverse(), numArgs: 0 };
};
(r = aS(!1)),
(rR["\\bra@ket"] = r),
(a = aS(!0)),
(rR["\\bra@set"] = a),
(rR["\\Braket"] =
"\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),
(rR["\\Set"] =
"\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),
(rR["\\set"] = "\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),
(rR["\\angln"] = "{\\angl n}"),
(rR["\\blue"] = "\\textcolor{##6495ed}{#1}"),
(rR["\\orange"] = "\\textcolor{##ffa500}{#1}"),
(rR["\\pink"] = "\\textcolor{##ff00af}{#1}"),
(rR["\\red"] = "\\textcolor{##df0030}{#1}"),
(rR["\\green"] = "\\textcolor{##28ae7b}{#1}"),
(rR["\\gray"] = "\\textcolor{gray}{#1}"),
(rR["\\purple"] = "\\textcolor{##9d38bd}{#1}"),
(rR["\\blueA"] = "\\textcolor{##ccfaff}{#1}"),
(rR["\\blueB"] = "\\textcolor{##80f6ff}{#1}"),
(rR["\\blueC"] = "\\textcolor{##63d9ea}{#1}"),
(rR["\\blueD"] = "\\textcolor{##11accd}{#1}"),
(rR["\\blueE"] = "\\textcolor{##0c7f99}{#1}"),
(rR["\\tealA"] = "\\textcolor{##94fff5}{#1}"),
(rR["\\tealB"] = "\\textcolor{##26edd5}{#1}"),
(rR["\\tealC"] = "\\textcolor{##01d1c1}{#1}"),
(rR["\\tealD"] = "\\textcolor{##01a995}{#1}"),
(rR["\\tealE"] = "\\textcolor{##208170}{#1}"),
(rR["\\greenA"] = "\\textcolor{##b6ffb0}{#1}"),
(rR["\\greenB"] = "\\textcolor{##8af281}{#1}"),
(rR["\\greenC"] = "\\textcolor{##74cf70}{#1}"),
(rR["\\greenD"] = "\\textcolor{##1fab54}{#1}"),
(rR["\\greenE"] = "\\textcolor{##0d923f}{#1}"),
(rR["\\goldA"] = "\\textcolor{##ffd0a9}{#1}"),
(rR["\\goldB"] = "\\textcolor{##ffbb71}{#1}"),
(rR["\\goldC"] = "\\textcolor{##ff9c39}{#1}"),
(rR["\\goldD"] = "\\textcolor{##e07d10}{#1}"),
(rR["\\goldE"] = "\\textcolor{##a75a05}{#1}"),
(rR["\\redA"] = "\\textcolor{##fca9a9}{#1}"),
(rR["\\redB"] = "\\textcolor{##ff8482}{#1}"),
(rR["\\redC"] = "\\textcolor{##f9685d}{#1}"),
(rR["\\redD"] = "\\textcolor{##e84d39}{#1}"),
(rR["\\redE"] = "\\textcolor{##bc2612}{#1}"),
(rR["\\maroonA"] = "\\textcolor{##ffbde0}{#1}"),
(rR["\\maroonB"] = "\\textcolor{##ff92c6}{#1}"),
(rR["\\maroonC"] = "\\textcolor{##ed5fa6}{#1}"),
(rR["\\maroonD"] = "\\textcolor{##ca337c}{#1}"),
(rR["\\maroonE"] = "\\textcolor{##9e034e}{#1}"),
(rR["\\purpleA"] = "\\textcolor{##ddd7ff}{#1}"),
(rR["\\purpleB"] = "\\textcolor{##c6b9fc}{#1}"),
(rR["\\purpleC"] = "\\textcolor{##aa87ff}{#1}"),
(rR["\\purpleD"] = "\\textcolor{##7854ab}{#1}"),
(rR["\\purpleE"] = "\\textcolor{##543b78}{#1}"),
(rR["\\mintA"] = "\\textcolor{##f5f9e8}{#1}"),
(rR["\\mintB"] = "\\textcolor{##edf2df}{#1}"),
(rR["\\mintC"] = "\\textcolor{##e0e5cc}{#1}"),
(rR["\\grayA"] = "\\textcolor{##f6f7f7}{#1}"),
(rR["\\grayB"] = "\\textcolor{##f0f1f2}{#1}"),
(rR["\\grayC"] = "\\textcolor{##e3e5e6}{#1}"),
(rR["\\grayD"] = "\\textcolor{##d6d8da}{#1}"),
(rR["\\grayE"] = "\\textcolor{##babec2}{#1}"),
(rR["\\grayF"] = "\\textcolor{##888d93}{#1}"),
(rR["\\grayG"] = "\\textcolor{##626569}{#1}"),
(rR["\\grayH"] = "\\textcolor{##3b3e40}{#1}"),
(rR["\\grayI"] = "\\textcolor{##21242c}{#1}"),
(rR["\\kaBlue"] = "\\textcolor{##314453}{#1}"),
(rR["\\kaGreen"] = "\\textcolor{##71B307}{#1}");
var aM = { "^": !0, _: !0, "\\limits": !0, "\\nolimits": !0 };
class aA {
constructor(e, t, r) {
(this.settings = t),
(this.expansionCount = 0),
this.feed(e),
(this.macros = new ab(rR, t.macros)),
(this.mode = r),
(this.stack = []);
}
feed(e) {
this.lexer = new af(e, this.settings);
}
switchMode(e) {
this.mode = e;
}
beginGroup() {
this.macros.beginGroup();
}
endGroup() {
this.macros.endGroup();
}
endGroups() {
this.macros.endGroups();
}
future() {
return (
0 === this.stack.length && this.pushToken(this.lexer.lex()),
this.stack[this.stack.length - 1]
);
}
popToken() {
return this.future(), this.stack.pop();
}
pushToken(e) {
this.stack.push(e);
}
pushTokens(e) {
this.stack.push(...e);
}
scanArgument(e) {
var t, r, a;
if (e) {
if ((this.consumeSpaces(), "[" !== this.future().text)) return null;
(t = this.popToken()),
({ tokens: a, end: r } = this.consumeArg(["]"]));
} else ({ tokens: a, start: t, end: r } = this.consumeArg());
return (
this.pushToken(new rD("EOF", r.loc)),
this.pushTokens(a),
new rD("", rO.range(t, r))
);
}
consumeSpaces() {
for (;;)
if (" " === this.future().text) this.stack.pop();
else break;
}
consumeArg(e) {
var r,
a = [],
n = e && e.length > 0;
n || this.consumeSpaces();
var i = this.future(),
s = 0,
o = 0;
do {
if (((r = this.popToken()), a.push(r), "{" === r.text)) ++s;
else if ("}" === r.text) {
if (-1 == --s) throw new t("Extra }", r);
} else if ("EOF" === r.text)
throw new t(
"Unexpected end of input in a macro argument, expected '" +
(e && n ? e[o] : "}") +
"'",
r,
);
if (e && n)
if ((0 === s || (1 === s && "{" === e[o])) && r.text === e[o]) {
if (++o === e.length) {
a.splice(-o, o);
break;
}
} else o = 0;
} while (0 !== s || n);
return (
"{" === i.text &&
"}" === a[a.length - 1].text &&
(a.pop(), a.shift()),
a.reverse(),
{ tokens: a, start: i, end: r }
);
}
consumeArgs(e, r) {
if (r) {
if (r.length !== e + 1)
throw new t(
"The length of delimiters doesn't match the number of args!",
);
for (var a = r[0], n = 0; n < a.length; n++) {
var i = this.popToken();
if (a[n] !== i.text)
throw new t("Use of the macro doesn't match its definition", i);
}
}
for (var s = [], o = 0; o < e; o++)
s.push(this.consumeArg(r && r[o + 1]).tokens);
return s;
}
countExpansion(e) {
if (
((this.expansionCount += e),
this.expansionCount > this.settings.maxExpand)
)
throw new t(
"Too many expansions: infinite loop or need to increase maxExpand setting",
);
}
expandOnce(e) {
var r = this.popToken(),
a = r.text,
n = r.noexpand ? null : this._getExpansion(a);
if (null == n || (e && n.unexpandable)) {
if (e && null == n && "\\" === a[0] && !this.isDefined(a))
throw new t("Undefined control sequence: " + a);
return this.pushToken(r), !1;
}
this.countExpansion(1);
var i = n.tokens,
s = this.consumeArgs(n.numArgs, n.delimiters);
if (n.numArgs) {
i = i.slice();
for (var o = i.length - 1; o >= 0; --o) {
var l = i[o];
if ("#" === l.text) {
if (0 === o)
throw new t("Incomplete placeholder at end of macro body", l);
if ("#" === (l = i[--o]).text) i.splice(o + 1, 1);
else if (/^[1-9]$/.test(l.text)) i.splice(o, 2, ...s[l.text - 1]);
else throw new t("Not a valid argument number", l);
}
}
}
return this.pushTokens(i), i.length;
}
expandAfterFuture() {
return this.expandOnce(), this.future();
}
expandNextToken() {
for (;;)
if (!1 === this.expandOnce()) {
var e = this.stack.pop();
return e.treatAsRelax && (e.text = "\\relax"), e;
}
}
expandMacro(e) {
return this.macros.has(e) ? this.expandTokens([new rD(e)]) : void 0;
}
expandTokens(e) {
var t = [],
r = this.stack.length;
for (this.pushTokens(e); this.stack.length > r; )
if (!1 === this.expandOnce(!0)) {
var a = this.stack.pop();
a.treatAsRelax && ((a.noexpand = !1), (a.treatAsRelax = !1)),
t.push(a);
}
return this.countExpansion(t.length), t;
}
expandMacroAsText(e) {
var t = this.expandMacro(e);
return t ? t.map((e) => e.text).join("") : t;
}
_getExpansion(e) {
var t = this.macros.get(e);
if (null == t) return t;
if (1 === e.length) {
var r = this.lexer.catcodes[e];
if (null != r && 13 !== r) return;
}
var a = "function" == typeof t ? t(this) : t;
if ("string" == typeof a) {
var n = 0;
if (a.includes("#"))
for (var i = a.replace(/##/g, ""); i.includes("#" + (n + 1)); ) ++n;
for (
var s = new af(a, this.settings), o = [], l = s.lex();
"EOF" !== l.text;
)
o.push(l), (l = s.lex());
return o.reverse(), { tokens: o, numArgs: n };
}
return a;
}
isDefined(e) {
return (
this.macros.has(e) ||
e2.hasOwnProperty(e) ||
ea.math.hasOwnProperty(e) ||
ea.text.hasOwnProperty(e) ||
aM.hasOwnProperty(e)
);
}
isExpandable(e) {
var t = this.macros.get(e);
return null != t
? "string" == typeof t || "function" == typeof t || !t.unexpandable
: e2.hasOwnProperty(e) && !e2[e].primitive;
}
}
var aT = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,
aB = Object.freeze({
"₊": "+",
"₋": "-",
"₌": "=",
"₍": "(",
"₎": ")",
"₀": "0",
"₁": "1",
"₂": "2",
"₃": "3",
"₄": "4",
"₅": "5",
"₆": "6",
"₇": "7",
"₈": "8",
"₉": "9",
ₐ: "a",
ₑ: "e",
ₕ: "h",
ᵢ: "i",
ⱼ: "j",
ₖ: "k",
ₗ: "l",
ₘ: "m",
ₙ: "n",
ₒ: "o",
ₚ: "p",
ᵣ: "r",
ₛ: "s",
ₜ: "t",
ᵤ: "u",
ᵥ: "v",
ₓ: "x",
ᵦ: "β",
ᵧ: "γ",
ᵨ: "ρ",
ᵩ: "ϕ",
ᵪ: "χ",
"⁺": "+",
"⁻": "-",
"⁼": "=",
"⁽": "(",
"⁾": ")",
"⁰": "0",
"¹": "1",
"²": "2",
"³": "3",
"⁴": "4",
"⁵": "5",
"⁶": "6",
"⁷": "7",
"⁸": "8",
"⁹": "9",
ᴬ: "A",
ᴮ: "B",
ᴰ: "D",
ᴱ: "E",
ᴳ: "G",
ᴴ: "H",
ᴵ: "I",
ᴶ: "J",
ᴷ: "K",
ᴸ: "L",
ᴹ: "M",
ᴺ: "N",
ᴼ: "O",
ᴾ: "P",
ᴿ: "R",
ᵀ: "T",
ᵁ: "U",
ⱽ: "V",
ᵂ: "W",
ᵃ: "a",
ᵇ: "b",
ᶜ: "c",
ᵈ: "d",
ᵉ: "e",
ᶠ: "f",
ᵍ: "g",
ʰ: "h",
ⁱ: "i",
ʲ: "j",
ᵏ: "k",
ˡ: "l",
ᵐ: "m",
ⁿ: "n",
ᵒ: "o",
ᵖ: "p",
ʳ: "r",
ˢ: "s",
ᵗ: "t",
ᵘ: "u",
ᵛ: "v",
ʷ: "w",
ˣ: "x",
ʸ: "y",
ᶻ: "z",
ᵝ: "β",
ᵞ: "γ",
ᵟ: "δ",
ᵠ: "ϕ",
ᵡ: "χ",
ᶿ: "θ",
}),
aq = {
"́": { text: "\\'", math: "\\acute" },
"̀": { text: "\\`", math: "\\grave" },
"̈": { text: '\\"', math: "\\ddot" },
"̃": { text: "\\~", math: "\\tilde" },
"̄": { text: "\\=", math: "\\bar" },
"̆": { text: "\\u", math: "\\breve" },
"̌": { text: "\\v", math: "\\check" },
"̂": { text: "\\^", math: "\\hat" },
"̇": { text: "\\.", math: "\\dot" },
"̊": { text: "\\r", math: "\\mathring" },
"̋": { text: "\\H" },
"̧": { text: "\\c" },
},
aC = {
á: "á",
à: "à",
ä: "ä",
ǟ: "ǟ",
ã: "ã",
ā: "ā",
ă: "ă",
ắ: "ắ",
ằ: "ằ",
ẵ: "ẵ",
ǎ: "ǎ",
â: "â",
ấ: "ấ",
ầ: "ầ",
ẫ: "ẫ",
ȧ: "ȧ",
ǡ: "ǡ",
å: "å",
ǻ: "ǻ",
ḃ: "ḃ",
ć: "ć",
ḉ: "ḉ",
č: "č",
ĉ: "ĉ",
ċ: "ċ",
ç: "ç",
ď: "ď",
ḋ: "ḋ",
ḑ: "ḑ",
é: "é",
è: "è",
ë: "ë",
ẽ: "ẽ",
ē: "ē",
ḗ: "ḗ",
ḕ: "ḕ",
ĕ: "ĕ",
ḝ: "ḝ",
ě: "ě",
ê: "ê",
ế: "ế",
ề: "ề",
ễ: "ễ",
ė: "ė",
ȩ: "ȩ",
ḟ: "ḟ",
ǵ: "ǵ",
ḡ: "ḡ",
ğ: "ğ",
ǧ: "ǧ",
ĝ: "ĝ",
ġ: "ġ",
ģ: "ģ",
ḧ: "ḧ",
ȟ: "ȟ",
ĥ: "ĥ",
ḣ: "ḣ",
ḩ: "ḩ",
í: "í",
ì: "ì",
ï: "ï",
ḯ: "ḯ",
ĩ: "ĩ",
ī: "ī",
ĭ: "ĭ",
ǐ: "ǐ",
î: "î",
ǰ: "ǰ",
ĵ: "ĵ",
ḱ: "ḱ",
ǩ: "ǩ",
ķ: "ķ",
ĺ: "ĺ",
ľ: "ľ",
ļ: "ļ",
ḿ: "ḿ",
ṁ: "ṁ",
ń: "ń",
ǹ: "ǹ",
ñ: "ñ",
ň: "ň",
ṅ: "ṅ",
ņ: "ņ",
ó: "ó",
ò: "ò",
ö: "ö",
ȫ: "ȫ",
õ: "õ",
ṍ: "ṍ",
ṏ: "ṏ",
ȭ: "ȭ",
ō: "ō",
ṓ: "ṓ",
ṑ: "ṑ",
ŏ: "ŏ",
ǒ: "ǒ",
ô: "ô",
ố: "ố",
ồ: "ồ",
ỗ: "ỗ",
ȯ: "ȯ",
ȱ: "ȱ",
ő: "ő",
ṕ: "ṕ",
ṗ: "ṗ",
ŕ: "ŕ",
ř: "ř",
ṙ: "ṙ",
ŗ: "ŗ",
ś: "ś",
ṥ: "ṥ",
š: "š",
ṧ: "ṧ",
ŝ: "ŝ",
ṡ: "ṡ",
ş: "ş",
ẗ: "ẗ",
ť: "ť",
ṫ: "ṫ",
ţ: "ţ",
ú: "ú",
ù: "ù",
ü: "ü",
ǘ: "ǘ",
ǜ: "ǜ",
ǖ: "ǖ",
ǚ: "ǚ",
ũ: "ũ",
ṹ: "ṹ",
ū: "ū",
ṻ: "ṻ",
ŭ: "ŭ",
ǔ: "ǔ",
û: "û",
ů: "ů",
ű: "ű",
ṽ: "ṽ",
ẃ: "ẃ",
ẁ: "ẁ",
ẅ: "ẅ",
ŵ: "ŵ",
ẇ: "ẇ",
ẘ: "ẘ",
ẍ: "ẍ",
ẋ: "ẋ",
ý: "ý",
ỳ: "ỳ",
ÿ: "ÿ",
ỹ: "ỹ",
ȳ: "ȳ",
ŷ: "ŷ",
ẏ: "ẏ",
ẙ: "ẙ",
ź: "ź",
ž: "ž",
ẑ: "ẑ",
ż: "ż",
Á: "Á",
À: "À",
Ä: "Ä",
Ǟ: "Ǟ",
Ã: "Ã",
Ā: "Ā",
Ă: "Ă",
Ắ: "Ắ",
Ằ: "Ằ",
Ẵ: "Ẵ",
Ǎ: "Ǎ",
Â: "Â",
Ấ: "Ấ",
Ầ: "Ầ",
Ẫ: "Ẫ",
Ȧ: "Ȧ",
Ǡ: "Ǡ",
Å: "Å",
Ǻ: "Ǻ",
Ḃ: "Ḃ",
Ć: "Ć",
Ḉ: "Ḉ",
Č: "Č",
Ĉ: "Ĉ",
Ċ: "Ċ",
Ç: "Ç",
Ď: "Ď",
Ḋ: "Ḋ",
Ḑ: "Ḑ",
É: "É",
È: "È",
Ë: "Ë",
Ẽ: "Ẽ",
Ē: "Ē",
Ḗ: "Ḗ",
Ḕ: "Ḕ",
Ĕ: "Ĕ",
Ḝ: "Ḝ",
Ě: "Ě",
Ê: "Ê",
Ế: "Ế",
Ề: "Ề",
Ễ: "Ễ",
Ė: "Ė",
Ȩ: "Ȩ",
Ḟ: "Ḟ",
Ǵ: "Ǵ",
Ḡ: "Ḡ",
Ğ: "Ğ",
Ǧ: "Ǧ",
Ĝ: "Ĝ",
Ġ: "Ġ",
Ģ: "Ģ",
Ḧ: "Ḧ",
Ȟ: "Ȟ",
Ĥ: "Ĥ",
Ḣ: "Ḣ",
Ḩ: "Ḩ",
Í: "Í",
Ì: "Ì",
Ï: "Ï",
Ḯ: "Ḯ",
Ĩ: "Ĩ",
Ī: "Ī",
Ĭ: "Ĭ",
Ǐ: "Ǐ",
Î: "Î",
İ: "İ",
Ĵ: "Ĵ",
Ḱ: "Ḱ",
Ǩ: "Ǩ",
Ķ: "Ķ",
Ĺ: "Ĺ",
Ľ: "Ľ",
Ļ: "Ļ",
Ḿ: "Ḿ",
Ṁ: "Ṁ",
Ń: "Ń",
Ǹ: "Ǹ",
Ñ: "Ñ",
Ň: "Ň",
Ṅ: "Ṅ",
Ņ: "Ņ",
Ó: "Ó",
Ò: "Ò",
Ö: "Ö",
Ȫ: "Ȫ",
Õ: "Õ",
Ṍ: "Ṍ",
Ṏ: "Ṏ",
Ȭ: "Ȭ",
Ō: "Ō",
Ṓ: "Ṓ",
Ṑ: "Ṑ",
Ŏ: "Ŏ",
Ǒ: "Ǒ",
Ô: "Ô",
Ố: "Ố",
Ồ: "Ồ",
Ỗ: "Ỗ",
Ȯ: "Ȯ",
Ȱ: "Ȱ",
Ő: "Ő",
Ṕ: "Ṕ",
Ṗ: "Ṗ",
Ŕ: "Ŕ",
Ř: "Ř",
Ṙ: "Ṙ",
Ŗ: "Ŗ",
Ś: "Ś",
Ṥ: "Ṥ",
Š: "Š",
Ṧ: "Ṧ",
Ŝ: "Ŝ",
Ṡ: "Ṡ",
Ş: "Ş",
Ť: "Ť",
Ṫ: "Ṫ",
Ţ: "Ţ",
Ú: "Ú",
Ù: "Ù",
Ü: "Ü",
Ǘ: "Ǘ",
Ǜ: "Ǜ",
Ǖ: "Ǖ",
Ǚ: "Ǚ",
Ũ: "Ũ",
Ṹ: "Ṹ",
Ū: "Ū",
Ṻ: "Ṻ",
Ŭ: "Ŭ",
Ǔ: "Ǔ",
Û: "Û",
Ů: "Ů",
Ű: "Ű",
Ṽ: "Ṽ",
Ẃ: "Ẃ",
Ẁ: "Ẁ",
Ẅ: "Ẅ",
Ŵ: "Ŵ",
Ẇ: "Ẇ",
Ẍ: "Ẍ",
Ẋ: "Ẋ",
Ý: "Ý",
Ỳ: "Ỳ",
Ÿ: "Ÿ",
Ỹ: "Ỹ",
Ȳ: "Ȳ",
Ŷ: "Ŷ",
Ẏ: "Ẏ",
Ź: "Ź",
Ž: "Ž",
Ẑ: "Ẑ",
Ż: "Ż",
ά: "ά",
ὰ: "ὰ",
ᾱ: "ᾱ",
ᾰ: "ᾰ",
έ: "έ",
ὲ: "ὲ",
ή: "ή",
ὴ: "ὴ",
ί: "ί",
ὶ: "ὶ",
ϊ: "ϊ",
ΐ: "ΐ",
ῒ: "ῒ",
ῑ: "ῑ",
ῐ: "ῐ",
ό: "ό",
ὸ: "ὸ",
ύ: "ύ",
ὺ: "ὺ",
ϋ: "ϋ",
ΰ: "ΰ",
ῢ: "ῢ",
ῡ: "ῡ",
ῠ: "ῠ",
ώ: "ώ",
ὼ: "ὼ",
Ύ: "Ύ",
Ὺ: "Ὺ",
Ϋ: "Ϋ",
Ῡ: "Ῡ",
Ῠ: "Ῠ",
Ώ: "Ώ",
Ὼ: "Ὼ",
};
class aI {
constructor(e, t) {
(this.mode = "math"),
(this.gullet = new aA(e, t, this.mode)),
(this.settings = t),
(this.leftrightDepth = 0),
(this.nextToken = null);
}
expect(e, r) {
if ((void 0 === r && (r = !0), this.fetch().text !== e))
throw new t(
"Expected '" + e + "', got '" + this.fetch().text + "'",
this.fetch(),
);
r && this.consume();
}
consume() {
this.nextToken = null;
}
fetch() {
return (
null == this.nextToken &&
(this.nextToken = this.gullet.expandNextToken()),
this.nextToken
);
}
switchMode(e) {
(this.mode = e), this.gullet.switchMode(e);
}
parse() {
this.settings.globalGroup || this.gullet.beginGroup(),
this.settings.colorIsTextColor &&
this.gullet.macros.set("\\color", "\\textcolor");
try {
var e = this.parseExpression(!1);
return (
this.expect("EOF"),
this.settings.globalGroup || this.gullet.endGroup(),
e
);
} finally {
this.gullet.endGroups();
}
}
subparse(e) {
var t = this.nextToken;
this.consume(),
this.gullet.pushToken(new rD("}")),
this.gullet.pushTokens(e);
var r = this.parseExpression(!1);
return this.expect("}"), (this.nextToken = t), r;
}
parseExpression(e, t) {
for (var r = []; ; ) {
"math" === this.mode && this.consumeSpaces();
var a = this.fetch();
if (
aI.endOfExpression.has(a.text) ||
(t && a.text === t) ||
(e && e2[a.text] && e2[a.text].infix)
)
break;
var n = this.parseAtom(t);
if (n) {
if ("internal" === n.type) continue;
} else break;
r.push(n);
}
return (
"text" === this.mode && this.formLigatures(r),
this.handleInfixNodes(r)
);
}
handleInfixNodes(e) {
for (var r = -1, a = 0; a < e.length; a++) {
var n = e[a];
if ("infix" === n.type) {
if (-1 !== r)
throw new t("only one infix operator per group", n.token);
(r = a), (i = n.replaceWith);
}
}
if (-1 === r || !i) return e;
var i,
s,
o,
l = e.slice(0, r),
h = e.slice(r + 1);
return (
(s =
1 === l.length && "ordgroup" === l[0].type
? l[0]
: { type: "ordgroup", mode: this.mode, body: l }),
(o =
1 === h.length && "ordgroup" === h[0].type
? h[0]
: { type: "ordgroup", mode: this.mode, body: h }),
[
"\\\\abovefrac" === i
? this.callFunction(i, [s, e[r], o], [])
: this.callFunction(i, [s, o], []),
]
);
}
handleSupSubscript(e) {
var r,
a = this.fetch(),
n = a.text;
this.consume(), this.consumeSpaces();
do r = this.parseGroup(e);
while ((null == r ? void 0 : r.type) === "internal");
if (!r) throw new t("Expected group after '" + n + "'", a);
return r;
}
formatUnsupportedCmd(e) {
for (var t = [], r = 0; r < e.length; r++)
t.push({ type: "textord", mode: "text", text: e[r] });
var a = { type: "text", mode: this.mode, body: t };
return {
type: "color",
mode: this.mode,
color: this.settings.errorColor,
body: [a],
};
}
parseAtom(e) {
var r,
a,
n = this.parseGroup("atom", e);
if (
(null == n ? void 0 : n.type) === "internal" ||
"text" === this.mode
)
return n;
for (;;) {
this.consumeSpaces();
var i = this.fetch();
if ("\\limits" === i.text || "\\nolimits" === i.text) {
if (n && "op" === n.type)
(n.limits = "\\limits" === i.text), (n.alwaysHandleSupSub = !0);
else if (n && "operatorname" === n.type)
n.alwaysHandleSupSub && (n.limits = "\\limits" === i.text);
else throw new t("Limit controls must follow a math operator", i);
this.consume();
} else if ("^" === i.text) {
if (r) throw new t("Double superscript", i);
r = this.handleSupSubscript("superscript");
} else if ("_" === i.text) {
if (a) throw new t("Double subscript", i);
a = this.handleSupSubscript("subscript");
} else if ("'" === i.text) {
if (r) throw new t("Double superscript", i);
var s = { type: "textord", mode: this.mode, text: "\\prime" },
o = [s];
for (this.consume(); "'" === this.fetch().text; )
o.push(s), this.consume();
"^" === this.fetch().text &&
o.push(this.handleSupSubscript("superscript")),
(r = { type: "ordgroup", mode: this.mode, body: o });
} else if (aB[i.text]) {
var l = aT.test(i.text),
h = [];
for (h.push(new rD(aB[i.text])), this.consume(); ; ) {
var m = this.fetch().text;
if (!aB[m] || aT.test(m) !== l) break;
h.unshift(new rD(aB[m])), this.consume();
}
var c = this.subparse(h);
l
? (a = { type: "ordgroup", mode: "math", body: c })
: (r = { type: "ordgroup", mode: "math", body: c });
} else break;
}
return r || a
? { type: "supsub", mode: this.mode, base: n, sup: r, sub: a }
: n;
}
parseFunction(e, r) {
var a = this.fetch(),
n = a.text,
i = e2[n];
if (!i) return null;
if ((this.consume(), r && "atom" !== r && !i.allowedInArgument))
throw new t(
"Got function '" +
n +
"' with no arguments" +
(r ? " as " + r : ""),
a,
);
if ("text" !== this.mode || i.allowedInText) {
if ("math" === this.mode && !1 === i.allowedInMath)
throw new t("Can't use function '" + n + "' in math mode", a);
} else throw new t("Can't use function '" + n + "' in text mode", a);
var { args: s, optArgs: o } = this.parseArguments(n, i);
return this.callFunction(n, s, o, a, e);
}
callFunction(e, r, a, n, i) {
var s = e2[e];
if (s && s.handler)
return s.handler(
{ funcName: e, parser: this, token: n, breakOnTokenText: i },
r,
a,
);
throw new t("No function handler for " + e);
}
parseArguments(e, r) {
var a = r.numArgs + r.numOptionalArgs;
if (0 === a) return { args: [], optArgs: [] };
for (var n = [], i = [], s = 0; s < a; s++) {
var o = r.argTypes && r.argTypes[s],
l = s < r.numOptionalArgs;
(("primitive" in r && r.primitive && null == o) ||
("sqrt" === r.type && 1 === s && null == i[0])) &&
(o = "primitive");
var h = this.parseGroupOfType("argument to '" + e + "'", o, l);
if (l) i.push(h);
else if (null != h) n.push(h);
else throw new t("Null argument, please report this as a bug");
}
return { args: n, optArgs: i };
}
parseGroupOfType(e, r, a) {
switch (r) {
case "color":
return this.parseColorGroup(a);
case "size":
return this.parseSizeGroup(a);
case "url":
return this.parseUrlGroup(a);
case "math":
case "text":
return this.parseArgumentGroup(a, r);
case "hbox":
var n = this.parseArgumentGroup(a, "text");
return null != n
? { type: "styling", mode: n.mode, body: [n], style: "text" }
: null;
case "raw":
var i = this.parseStringGroup("raw", a);
return null != i
? { type: "raw", mode: "text", string: i.text }
: null;
case "primitive":
if (a) throw new t("A primitive argument cannot be optional");
var s = this.parseGroup(e);
if (null == s) throw new t("Expected group as " + e, this.fetch());
return s;
case "original":
case null:
case void 0:
return this.parseArgumentGroup(a);
default:
throw new t("Unknown group type as " + e, this.fetch());
}
}
consumeSpaces() {
for (; " " === this.fetch().text; ) this.consume();
}
parseStringGroup(e, t) {
var r,
a = this.gullet.scanArgument(t);
if (null == a) return null;
for (var n = ""; "EOF" !== (r = this.fetch()).text; )
(n += r.text), this.consume();
return this.consume(), (a.text = n), a;
}
parseRegexGroup(e, r) {
for (
var a, n = this.fetch(), i = n, s = "";
"EOF" !== (a = this.fetch()).text && e.test(s + a.text);
)
(s += (i = a).text), this.consume();
if ("" === s) throw new t("Invalid " + r + ": '" + n.text + "'", n);
return n.range(i, s);
}
parseColorGroup(e) {
var r = this.parseStringGroup("color", e);
if (null == r) return null;
var a =
/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(
r.text,
);
if (!a) throw new t("Invalid color: '" + r.text + "'", r);
var n = a[0];
return (
/^[0-9a-f]{6}$/i.test(n) && (n = "#" + n),
{ type: "color-token", mode: this.mode, color: n }
);
}
parseSizeGroup(e) {
var r,
a = !1;
if (
(this.gullet.consumeSpaces(),
!(r =
e || "{" === this.gullet.future().text
? this.parseStringGroup("size", e)
: this.parseRegexGroup(
/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,
"size",
)))
)
return null;
e || 0 !== r.text.length || ((r.text = "0pt"), (a = !0));
var n = /([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);
if (!n) throw new t("Invalid size: '" + r.text + "'", r);
var i = { number: +(n[1] + n[2]), unit: n[3] };
if (!R(i)) throw new t("Invalid unit: '" + i.unit + "'", r);
return { type: "size", mode: this.mode, value: i, isBlank: a };
}
parseUrlGroup(e) {
this.gullet.lexer.setCatcode("%", 13),
this.gullet.lexer.setCatcode("~", 12);
var t = this.parseStringGroup("url", e);
if (
(this.gullet.lexer.setCatcode("%", 14),
this.gullet.lexer.setCatcode("~", 13),
null == t)
)
return null;
var r = t.text.replace(/\\([#$%&~_^{}])/g, "$1");
return { type: "url", mode: this.mode, url: r };
}
parseArgumentGroup(e, t) {
var r = this.gullet.scanArgument(e);
if (null == r) return null;
var a = this.mode;
t && this.switchMode(t), this.gullet.beginGroup();
var n = this.parseExpression(!1, "EOF");
this.expect("EOF"), this.gullet.endGroup();
var i = { type: "ordgroup", mode: this.mode, loc: r.loc, body: n };
return t && this.switchMode(a), i;
}
parseGroup(e, r) {
var a,
n = this.fetch(),
i = n.text;
if ("{" === i || "\\begingroup" === i) {
this.consume();
var s = "{" === i ? "}" : "\\endgroup";
this.gullet.beginGroup();
var o = this.parseExpression(!1, s),
l = this.fetch();
this.expect(s),
this.gullet.endGroup(),
(a = {
type: "ordgroup",
mode: this.mode,
loc: rO.range(n, l),
body: o,
semisimple: "\\begingroup" === i || void 0,
});
} else if (
null == (a = this.parseFunction(r, e) || this.parseSymbol()) &&
"\\" === i[0] &&
!aM.hasOwnProperty(i)
) {
if (this.settings.throwOnError)
throw new t("Undefined control sequence: " + i, n);
(a = this.formatUnsupportedCmd(i)), this.consume();
}
return a;
}
formLigatures(e) {
for (var t = e.length - 1, r = 0; r < t; ++r) {
var a = e[r];
if ("textord" === a.type) {
var n = a.text,
i = e[r + 1];
if (i && "textord" === i.type) {
if ("-" === n && "-" === i.text) {
var s = e[r + 2];
r + 1 < t && s && "textord" === s.type && "-" === s.text
? (e.splice(r, 3, {
type: "textord",
mode: "text",
loc: rO.range(a, s),
text: "---",
}),
(t -= 2))
: (e.splice(r, 2, {
type: "textord",
mode: "text",
loc: rO.range(a, i),
text: "--",
}),
(t -= 1));
}
("'" === n || "`" === n) &&
i.text === n &&
(e.splice(r, 2, {
type: "textord",
mode: "text",
loc: rO.range(a, i),
text: n + n,
}),
(t -= 1));
}
}
}
}
parseSymbol() {
var e = this.fetch(),
r = e.text;
if (/^\\verb[^a-zA-Z]/.test(r)) {
this.consume();
var a = r.slice(5),
n = "*" === a.charAt(0);
if (
(n && (a = a.slice(1)), a.length < 2 || a.charAt(0) !== a.slice(-1))
)
throw new t(
"\\verb assertion failed --\n please report what input caused this bug",
);
return {
type: "verb",
mode: "text",
body: (a = a.slice(1, -1)),
star: n,
};
}
aC.hasOwnProperty(r[0]) &&
!ea[this.mode][r[0]] &&
(this.settings.strict &&
"math" === this.mode &&
this.settings.reportNonstrict(
"unicodeTextInMathMode",
'Accented Unicode text character "' +
r[0] +
'" used in math mode',
e,
),
(r = aC[r[0]] + r.slice(1)));
var i = ad.exec(r);
if (
(i &&
("i" === (r = r.substring(0, i.index))
? (r = "ı")
: "j" === r && (r = "ȷ")),
ea[this.mode][r])
) {
this.settings.strict &&
"math" === this.mode &&
eH.includes(r) &&
this.settings.reportNonstrict(
"unicodeTextInMathMode",
'Latin-1/Unicode text character "' + r[0] + '" used in math mode',
e,
);
var s,
o = ea[this.mode][r].group,
l = rO.range(e);
s = et.hasOwnProperty(o)
? { type: "atom", mode: this.mode, family: o, loc: l, text: r }
: { type: o, mode: this.mode, loc: l, text: r };
} else {
if (!(r.charCodeAt(0) >= 128)) return null;
this.settings.strict &&
(M(r.charCodeAt(0))
? "math" === this.mode &&
this.settings.reportNonstrict(
"unicodeTextInMathMode",
'Unicode text character "' + r[0] + '" used in math mode',
e,
)
: this.settings.reportNonstrict(
"unknownSymbol",
'Unrecognized Unicode character "' +
r[0] +
'" (' +
r.charCodeAt(0) +
")",
e,
)),
(s = { type: "textord", mode: "text", loc: rO.range(e), text: r });
}
if ((this.consume(), i))
for (var h = 0; h < i[0].length; h++) {
var m = i[0][h];
if (!aq[m]) throw new t("Unknown accent ' " + m + "'", e);
var c = aq[m][this.mode] || aq[m].text;
if (!c)
throw new t(
"Accent " + m + " unsupported in " + this.mode + " mode",
e,
);
s = {
type: "accent",
mode: this.mode,
loc: rO.range(e),
label: c,
isStretchy: !1,
isShifty: !0,
base: s,
};
}
return s;
}
}
aI.endOfExpression = new Set(["}", "\\endgroup", "\\end", "\\right", "&"]);
var aH = function (e, r) {
if (!("string" == typeof e || e instanceof String))
throw TypeError("KaTeX can only parse string typed expression");
var a = new aI(e, r);
delete a.gullet.macros.current["\\df@tag"];
var n = a.parse();
if (
(delete a.gullet.macros.current["\\current@color"],
delete a.gullet.macros.current["\\color"],
a.gullet.macros.get("\\df@tag"))
) {
if (!r.displayMode)
throw new t("\\tag works only in display equations");
n = [
{
type: "tag",
mode: "text",
body: n,
tag: a.subparse([new rD("\\df@tag")]),
},
];
}
return n;
},
aR = function (e, t, r) {
t.textContent = "";
var a = aN(e, r).toNode();
t.appendChild(a);
};
"u" > typeof document &&
"CSS1Compat" !== document.compatMode &&
("u" > typeof console &&
console.warn(
"Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype.",
),
(aR = function () {
throw new t("KaTeX doesn't work in quirks mode.");
}));
var aE = function (e, t) {
return aN(e, t).toMarkup();
},
aO = function (e, t) {
return aH(e, new p(t));
},
aD = function (e, r, a) {
if (a.throwOnError || !(e instanceof t)) throw e;
var n = eY(["katex-error"], [new X(r)]);
return (
n.setAttribute("title", e.toString()),
n.setAttribute("style", "color:" + a.errorColor),
n
);
},
aN = function (e, t) {
var r = new p(t);
try {
var a = aH(e, r);
return tN(a, e, r);
} catch (t) {
return aD(t, e, r);
}
},
aL = function (e, t) {
var r,
a = new p(t);
try {
return (r = aH(e, a)), tD(eY(["katex"], [tb(r, tO(a))]), a);
} catch (t) {
return aD(t, e, a);
}
},
aP = "0.16.38",
aF = {
Span: V,
Anchor: G,
SymbolNode: X,
SvgNode: j,
PathNode: W,
LineNode: _,
},
aV = {
version: aP,
render: aR,
renderToString: aE,
ParseError: t,
SETTINGS_SCHEMA: u,
__parse: aO,
__renderToDomTree: aN,
__renderToHTMLTree: aL,
__setFontMetrics: J,
__defineSymbol: en,
__defineFunction: tt,
__defineMacro: rE,
__domTree: aF,
};
e.s([
"ParseError",
() => t,
"SETTINGS_SCHEMA",
() => u,
"__defineFunction",
() => tt,
"__defineMacro",
() => rE,
"__defineSymbol",
() => en,
"__domTree",
() => aF,
"__parse",
() => aO,
"__renderToDomTree",
() => aN,
"__renderToHTMLTree",
() => aL,
"__setFontMetrics",
() => J,
"default",
() => aV,
"render",
() => aR,
"renderToString",
() => aE,
"version",
() => aP,
]);
};
export default moduleFactory;