@pie-element/shared-math-rendering-mathjax 0.1.2-next.20261003064518 → 0.1.2-next.20261003161149

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/adapter.d.ts +85 -0
  2. package/dist/browser/PUA-tLuTiQ7-.js +4368 -0
  3. package/dist/browser/accents-BTUYmhn9.js +1506 -0
  4. package/dist/browser/accents-b-i-CngHZsLL.js +2845 -0
  5. package/dist/browser/arabic-BzEHMVZD.js +783 -0
  6. package/dist/browser/arrows-VjxlU-jv.js +2653 -0
  7. package/dist/browser/braille-BeWC_Ruq.js +1285 -0
  8. package/dist/browser/braille-d-Dk6J96GO.js +1285 -0
  9. package/dist/browser/calligraphic-Cew9cU3x.js +321 -0
  10. package/dist/browser/cherokee-Cny3FYho.js +2027 -0
  11. package/dist/browser/chtml-CbqemTOM.js +20349 -0
  12. package/dist/browser/cyrillic-CfCDulXU.js +5615 -0
  13. package/dist/browser/cyrillic-ss-lU7bNGG9.js +5604 -0
  14. package/dist/browser/devanagari-CDIz2h-r.js +690 -0
  15. package/dist/browser/double-struck-BpJEQk8y.js +436 -0
  16. package/dist/browser/fraktur-rLEq9DEH.js +692 -0
  17. package/dist/browser/greek-BlraJTyL.js +9333 -0
  18. package/dist/browser/greek-ss-D-EN2PK0.js +6765 -0
  19. package/dist/browser/hebrew-GiQZeybp.js +3216 -0
  20. package/dist/browser/index.js +690 -0
  21. package/dist/browser/latin-b-BhEnC7R2.js +3132 -0
  22. package/dist/browser/latin-bi-DqiIKv3U.js +3635 -0
  23. package/dist/browser/latin-i-B1xtwaE1.js +3632 -0
  24. package/dist/browser/latin-xfWFlLkD.js +3264 -0
  25. package/dist/browser/marrows-DD1NgMQi.js +759 -0
  26. package/dist/browser/math-DpWn1mbG.js +2032 -0
  27. package/dist/browser/mathjax-D2JHb_R_.js +37049 -0
  28. package/dist/browser/monospace-D116QD2a.js +1110 -0
  29. package/dist/browser/monospace-ex-DcXpouKS.js +6012 -0
  30. package/dist/browser/monospace-l-Ct5wkMDs.js +3112 -0
  31. package/dist/browser/mshapes-DCp86WSX.js +522 -0
  32. package/dist/browser/phonetics-BwOCw2Y9.js +2494 -0
  33. package/dist/browser/phonetics-ss-CRtMn02f.js +2982 -0
  34. package/dist/browser/sans-serif-BYPZKlE9.js +5244 -0
  35. package/dist/browser/sans-serif-b-B0kRKiC-.js +3174 -0
  36. package/dist/browser/sans-serif-bi-DXWul6mu.js +3686 -0
  37. package/dist/browser/sans-serif-ex-Boux1kMP.js +10031 -0
  38. package/dist/browser/sans-serif-i-676RFaSO.js +3633 -0
  39. package/dist/browser/sans-serif-r-DrN9xdZt.js +3157 -0
  40. package/dist/browser/script-0ohehnXc.js +647 -0
  41. package/dist/browser/shapes-BG47NodJ.js +1930 -0
  42. package/dist/browser/symbols-BqnUxf_t.js +1831 -0
  43. package/dist/browser/symbols-b-i-eg9k5hmF.js +1151 -0
  44. package/dist/browser/variants-2LRNhOUP.js +229 -0
  45. package/dist/engine/page.d.ts +21 -0
  46. package/dist/index.js +237 -232
  47. package/dist/types.d.ts +1 -0
  48. package/package.json +3 -2
package/dist/index.js CHANGED
@@ -1,73 +1,107 @@
1
- //#region src/mathml.ts
2
- var e = "http://www.w3.org/1998/Math/MathML", t = /^([a-z_][\w.-]*):math$/, n = /^[a-z][a-z0-9-]*$/;
3
- function r(e) {
4
- for (let n of e.querySelectorAll("*")) {
5
- let r = t.exec(n.tagName.toLowerCase())?.[1];
6
- !r || !e.contains(n) || n.closest("mjx-container") || n.replaceWith(i(n, `${r}:`));
1
+ //#region src/unsupported-page.ts
2
+ var e = "https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page", t = "pie-mathjax-version-conflict", n = Symbol.for("@pie-element/shared-math-rendering-mathjax/unsupported-page");
3
+ function r(r, i) {
4
+ if (typeof window > "u") return;
5
+ let a = globalThis;
6
+ a[n] ??= {
7
+ logged: !1,
8
+ conditions: []
9
+ };
10
+ let o = a[n];
11
+ if (o.conditions.includes(r)) return;
12
+ o.conditions.push(r);
13
+ let s = `[math-rendering] Unsupported page (${r}): ${i}. PIE supports one MathJax major version per page; with MathJax 3 and 4 on one page, math rendering is best effort and may break. See ${e}`;
14
+ o.logged || (o.logged = !0, console.error(s)), window.dispatchEvent(new CustomEvent(t, { detail: {
15
+ condition: r,
16
+ message: s,
17
+ docsUrl: e
18
+ } }));
19
+ }
20
+ function i() {
21
+ let e = window.MathJax?.version;
22
+ return typeof e == "string" && e.startsWith("3.") ? e : void 0;
23
+ }
24
+ //#endregion
25
+ //#region src/engine/page.ts
26
+ function a() {
27
+ return window.MathJax;
28
+ }
29
+ function o(e, t) {
30
+ return new Promise((n, r) => {
31
+ window.MathJax = e;
32
+ let i = document.createElement("script");
33
+ i.src = t, i.async = !0, i.onload = () => n(), i.onerror = () => r(/* @__PURE__ */ Error("Failed to load MathJax")), document.head.appendChild(i);
34
+ });
35
+ }
36
+ var s = globalThis, c = "PIE-MJX-CHTML-styles", l = ["MJX-CHTML-styles", "MJX-SVG-styles"], u = i, d = "http://www.w3.org/1998/Math/MathML", f = /^([a-z_][\w.-]*):math$/, p = /^[a-z][a-z0-9-]*$/;
37
+ function m(e) {
38
+ for (let t of e.querySelectorAll("*")) {
39
+ let n = f.exec(t.tagName.toLowerCase())?.[1];
40
+ !n || !e.contains(t) || t.closest("mjx-container") || t.replaceWith(h(t, `${n}:`));
7
41
  }
8
42
  }
9
- function i(t, r) {
10
- let a = t.tagName.toLowerCase().slice(r.length);
11
- if (!n.test(a)) return t;
12
- let o = t.ownerDocument.createElementNS(e, a);
13
- for (let e of t.attributes) o.setAttribute(e.name, e.value);
14
- for (let e of [...t.childNodes]) {
15
- let t = e instanceof Element && e.tagName.toLowerCase().startsWith(r);
16
- o.appendChild(t ? i(e, r) : e);
43
+ function h(e, t) {
44
+ let n = e.tagName.toLowerCase().slice(t.length);
45
+ if (!p.test(n)) return e;
46
+ let r = e.ownerDocument.createElementNS(d, n);
47
+ for (let t of e.attributes) r.setAttribute(t.name, t.value);
48
+ for (let n of [...e.childNodes]) {
49
+ let e = n instanceof Element && n.tagName.toLowerCase().startsWith(t);
50
+ r.appendChild(e ? h(n, t) : n);
17
51
  }
18
- return o;
52
+ return r;
19
53
  }
20
54
  //#endregion
21
55
  //#region src/elementary-math.ts
22
- var a = /* @__PURE__ */ new Set([
56
+ var g = /* @__PURE__ */ new Set([
23
57
  "updiagonalstrike",
24
58
  "downdiagonalstrike",
25
59
  "verticalstrike",
26
60
  "horizontalstrike"
27
- ]), o = {
61
+ ]), _ = {
28
62
  thin: "0.035em",
29
63
  medium: "0.07em",
30
64
  thick: "0.14em"
31
- }, s = {
65
+ }, v = {
32
66
  tight: "0em",
33
67
  medium: "0.1em",
34
68
  loose: "0.2em"
35
- }, c = /^(\d+(\.\d*)?|\.\d+)(em|ex|px|pt|pc|in|cm|mm)$/, l = /^(#[0-9a-f]{3,8}|[a-z]+)$/i, u = /^(\d+(\.\d*)?|\.\d+)$/, d = /* @__PURE__ */ new Set([
69
+ }, y = /^(\d+(\.\d*)?|\.\d+)(em|ex|px|pt|pc|in|cm|mm)$/, ee = /^(#[0-9a-f]{3,8}|[a-z]+)$/i, te = /^(\d+(\.\d*)?|\.\d+)$/, ne = /* @__PURE__ */ new Set([
36
70
  "mn",
37
71
  "mo",
38
72
  "mi",
39
73
  "mtext"
40
- ]), f = /* @__PURE__ */ new Set([
74
+ ]), re = /* @__PURE__ */ new Set([
41
75
  "stackalign",
42
76
  "charalign",
43
77
  "charspacing",
44
78
  "longdivstyle"
45
79
  ]);
46
- function p(t, n, r = [], i = {}) {
47
- let a = t.createElementNS(e, n);
48
- for (let [e, t] of Object.entries(i)) a.setAttribute(e, t);
49
- for (let e of r) e && a.appendChild(e);
50
- return a;
51
- }
52
- function m(e, t) {
53
- let n = p(e.document, "mo");
80
+ function b(e, t, n = [], r = {}) {
81
+ let i = e.createElementNS(d, t);
82
+ for (let [e, t] of Object.entries(r)) i.setAttribute(e, t);
83
+ for (let e of n) e && i.appendChild(e);
84
+ return i;
85
+ }
86
+ function x(e, t) {
87
+ let n = b(e.document, "mo");
54
88
  return n.textContent = t, n;
55
89
  }
56
- function h(e) {
57
- let t = p(e.document, "mn");
58
- return t.textContent = "0", p(e.document, "mphantom", [t]);
90
+ function S(e) {
91
+ let t = b(e.document, "mn");
92
+ return t.textContent = "0", b(e.document, "mphantom", [t]);
59
93
  }
60
- function g(e, t) {
94
+ function C(e, t) {
61
95
  return e.getAttribute(t)?.trim().toLowerCase() || void 0;
62
96
  }
63
- function _(e, t) {
97
+ function w(e, t) {
64
98
  let n = Number.parseInt(e.getAttribute(t) ?? "", 10);
65
99
  return Number.isFinite(n) ? n : 0;
66
100
  }
67
- function v(e) {
101
+ function T(e) {
68
102
  return e.localName === "none" || e.localName === "mrow" && e.children.length === 0 && !e.textContent?.trim();
69
103
  }
70
- function y(e, t, n = e) {
104
+ function E(e, t, n = e) {
71
105
  switch (t) {
72
106
  case "left": return 0;
73
107
  case "center": return Math.floor(e / 2);
@@ -75,14 +109,14 @@ function y(e, t, n = e) {
75
109
  default: return n;
76
110
  }
77
111
  }
78
- function b(e, t, n) {
112
+ function D(e, t, n) {
79
113
  let r = [], i, a, o = (e, t) => {
80
114
  let s = (e) => t.reduceRight((e, t) => {
81
115
  let n = t.cloneNode(!1);
82
116
  return n.appendChild(e), n;
83
117
  }, e);
84
118
  if (e.localName === "mstyle") for (let n of [...e.children]) o(n, [...t, e]);
85
- else if (v(e)) r.push(null);
119
+ else if (T(e)) r.push(null);
86
120
  else if (e.localName === "mn" && e.children.length === 0) {
87
121
  let t = [...(e.textContent ?? "").trim()];
88
122
  for (let a of t) {
@@ -91,28 +125,28 @@ function b(e, t, n) {
91
125
  t.textContent = a, r.push(s(t));
92
126
  }
93
127
  t.length && (a ??= r.length);
94
- } else d.has(e.localName) && e.textContent?.trim() === n.decimalPoint && (i ??= r.length), r.push(s(e));
128
+ } else ne.has(e.localName) && e.textContent?.trim() === n.decimalPoint && (i ??= r.length), r.push(s(e));
95
129
  };
96
130
  for (let t of e) o(t, []);
97
131
  return {
98
132
  kind: "digits",
99
133
  cells: r,
100
- anchor: y(r.length, n.stackAlign, i ?? a),
134
+ anchor: E(r.length, n.stackAlign, i ?? a),
101
135
  position: t
102
136
  };
103
137
  }
104
- function x(e) {
105
- return (e ?? "").toLowerCase().split(/\s+/).filter((e) => a.has(e));
138
+ function O(e) {
139
+ return (e ?? "").toLowerCase().split(/\s+/).filter((e) => g.has(e));
106
140
  }
107
- function S(e, t) {
108
- let n = [...e.children].filter((e) => !v(e));
109
- return n.length <= 1 ? n[0] ?? null : p(t.document, "mrow", n);
141
+ function ie(e, t) {
142
+ let n = [...e.children].filter((e) => !T(e));
143
+ return n.length <= 1 ? n[0] ?? null : b(t.document, "mrow", n);
110
144
  }
111
- function ee(e, t, n) {
112
- let r = g(e, "location") ?? "n", i = x(e.getAttribute("crossout")), a = [...e.children].map((e) => v(e) ? null : e.localName === "mscarry" ? {
113
- content: S(e, n),
114
- location: g(e, "location") ?? r,
115
- crossout: e.hasAttribute("crossout") ? x(e.getAttribute("crossout")) : i
145
+ function ae(e, t, n) {
146
+ let r = C(e, "location") ?? "n", i = O(e.getAttribute("crossout")), a = [...e.children].map((e) => T(e) ? null : e.localName === "mscarry" ? {
147
+ content: ie(e, n),
148
+ location: C(e, "location") ?? r,
149
+ crossout: e.hasAttribute("crossout") ? O(e.getAttribute("crossout")) : i
116
150
  } : {
117
151
  content: e,
118
152
  location: r,
@@ -121,60 +155,60 @@ function ee(e, t, n) {
121
155
  return {
122
156
  kind: "carries",
123
157
  carries: a,
124
- anchor: y(a.length, n.stackAlign),
158
+ anchor: E(a.length, n.stackAlign),
125
159
  position: t,
126
- scale: u.test(o) ? o : "0.6"
160
+ scale: te.test(o) ? o : "0.6"
127
161
  };
128
162
  }
129
- function C(e) {
130
- let t = g(e, "mslinethickness") ?? "medium", n = o[t] ?? (c.test(t) ? t : "0.07em"), r = e.getAttribute("mathcolor")?.trim() ?? "";
131
- return `${n} solid ${l.test(r) ? r : "currentColor"}`;
163
+ function k(e) {
164
+ let t = C(e, "mslinethickness") ?? "medium", n = _[t] ?? (y.test(t) ? t : "0.07em"), r = e.getAttribute("mathcolor")?.trim() ?? "";
165
+ return `${n} solid ${ee.test(r) ? r : "currentColor"}`;
132
166
  }
133
- function te(e, t, n) {
134
- let r = Math.max(0, _(e, "length"));
167
+ function oe(e, t, n) {
168
+ let r = Math.max(0, w(e, "length"));
135
169
  return {
136
170
  kind: "line",
137
171
  length: r,
138
- anchor: y(r, n.stackAlign),
172
+ anchor: E(r, n.stackAlign),
139
173
  position: t,
140
- border: C(e)
174
+ border: k(e)
141
175
  };
142
176
  }
143
- function w(e, t, n, r, i) {
177
+ function A(e, t, n, r, i) {
144
178
  e.forEach((e, a) => {
145
- let o = t + a * n + _(e, "position");
179
+ let o = t + a * n + w(e, "position");
146
180
  switch (e.localName) {
147
181
  case "msgroup":
148
- w([...e.children], o, _(e, "shift"), r, i);
182
+ A([...e.children], o, w(e, "shift"), r, i);
149
183
  break;
150
184
  case "msline":
151
- i.push(te(e, o, r));
185
+ i.push(oe(e, o, r));
152
186
  break;
153
187
  case "mscarries":
154
- i.push(ee(e, o, r));
188
+ i.push(ae(e, o, r));
155
189
  break;
156
190
  case "msrow":
157
191
  case "mrow":
158
- i.push(b([...e.children], o, r));
192
+ i.push(D([...e.children], o, r));
159
193
  break;
160
- default: i.push(b([e], o, r));
194
+ default: i.push(D([e], o, r));
161
195
  }
162
196
  });
163
197
  }
164
- function T(e) {
198
+ function j(e) {
165
199
  return -e.anchor - e.position;
166
200
  }
167
- function E(e) {
201
+ function M(e) {
168
202
  return e.kind === "digits" ? e.cells.length : e.kind === "carries" ? e.carries.length : e.length;
169
203
  }
170
- function D(e) {
171
- return T(e) + E(e) - 1;
204
+ function N(e) {
205
+ return j(e) + M(e) - 1;
172
206
  }
173
- function ne(e, t, n, r) {
174
- let i = (e) => p(r.document, "mpadded", [t], {
207
+ function se(e, t, n, r) {
208
+ let i = (e) => b(r.document, "mpadded", [t], {
175
209
  width: "0",
176
210
  ...e ? { lspace: e } : {}
177
- }), a = (e, t) => p(r.document, e, t);
211
+ }), a = (e, t) => b(r.document, e, t);
178
212
  switch (n) {
179
213
  case "s": return a("munder", [e, i("-0.5width")]);
180
214
  case "ne": return a("msup", [e, i()]);
@@ -196,49 +230,49 @@ function ne(e, t, n, r) {
196
230
  default: return a("mover", [e, i("-0.5width")]);
197
231
  }
198
232
  }
199
- function re(e, t, n) {
200
- let r = p(n.document, "menclose", [e], {
233
+ function ce(e, t, n) {
234
+ let r = b(n.document, "menclose", [e], {
201
235
  notation: t.join(" "),
202
236
  "data-padding": "0.1em",
203
237
  "data-thickness": "0.067em"
204
238
  }), i = t.some((e) => e.endsWith("diagonalstrike")) ? .167 : t.includes("horizontalstrike") ? .1 : 0;
205
- return i ? p(n.document, "mpadded", [r], {
239
+ return i ? b(n.document, "mpadded", [r], {
206
240
  lspace: `-${i}em`,
207
241
  width: `-${2 * i}em`
208
242
  }) : r;
209
243
  }
210
- function ie(e, t, n, r, i) {
211
- let a = e && t.crossout.length ? re(e, t.crossout, i) : e;
244
+ function le(e, t, n, r, i) {
245
+ let a = e && t.crossout.length ? ce(e, t.crossout, i) : e;
212
246
  if (!t.content) return a;
213
- let o = p(i.document, "mstyle", [t.content], { scriptsizemultiplier: r });
214
- return ne(a ?? h(i), o, n, i);
247
+ let o = b(i.document, "mstyle", [t.content], { scriptsizemultiplier: r });
248
+ return se(a ?? S(i), o, n, i);
215
249
  }
216
- function O(e, t) {
217
- return e.carries[t - T(e)] ?? null;
250
+ function P(e, t) {
251
+ return e.carries[t - j(e)] ?? null;
218
252
  }
219
- function ae(e, t, n, r) {
253
+ function ue(e, t, n, r) {
220
254
  let i = e.content;
221
255
  n.forEach((e, a) => {
222
- let o = n.length - 1 - a, s = n[o], c = O(s, t), l = n.slice(0, o).some((e) => O(e, t));
256
+ let o = n.length - 1 - a, s = n[o], c = P(s, t), l = n.slice(0, o).some((e) => P(e, t));
223
257
  if (!c && !l) return;
224
258
  let u = c ?? {
225
- content: h(r),
259
+ content: S(r),
226
260
  location: "n",
227
261
  crossout: []
228
262
  }, d = a === 0 ? u.location : "n";
229
- i = ie(i, u, d, s.scale, r);
263
+ i = le(i, u, d, s.scale, r);
230
264
  }), e.content = i;
231
265
  }
232
- function k(e, t) {
233
- let n = e.filter((e) => E(e) > 0), r = Math.min(0, ...n.map(T)), i = Math.max(r, ...n.map(D)) - r + 1, a = -r, o = [], s = /* @__PURE__ */ new Map(), c = () => Array.from({ length: i }, () => ({
266
+ function F(e, t) {
267
+ let n = e.filter((e) => M(e) > 0), r = Math.min(0, ...n.map(j)), i = Math.max(r, ...n.map(N)) - r + 1, a = -r, o = [], s = /* @__PURE__ */ new Map(), c = () => Array.from({ length: i }, () => ({
234
268
  content: null,
235
269
  borders: {}
236
- })), l = (e) => e.length === 0 ? Array.from({ length: i }, (e, t) => t) : Array.from({ length: e.length }, (t, n) => a + T(e) + n), u = [], d = [], f = (e) => {
270
+ })), l = (e) => e.length === 0 ? Array.from({ length: i }, (e, t) => t) : Array.from({ length: e.length }, (t, n) => a + j(e) + n), u = [], d = [], f = (e) => {
237
271
  let n = c();
238
272
  e.cells.forEach((t, r) => {
239
- n[a + T(e) + r].content = t;
273
+ n[a + j(e) + r].content = t;
240
274
  }), u.length && n.forEach((e, n) => {
241
- ae(e, n - a, u, t);
275
+ ue(e, n - a, u, t);
242
276
  });
243
277
  for (let e of d) for (let t of l(e)) n[t].borders.top = e.border;
244
278
  u = [], d = [], s.set(e, o.length), o.push(n);
@@ -258,44 +292,44 @@ function k(e, t) {
258
292
  origin: a
259
293
  };
260
294
  }
261
- function A(e, { rows: t }, n) {
262
- let r = p(n.document, "mtable", t.map((e) => p(n.document, "mtr", e.map((e) => {
295
+ function I(e, { rows: t }, n) {
296
+ let r = b(n.document, "mtable", t.map((e) => b(n.document, "mtr", e.map((e) => {
263
297
  let t = Object.entries(e.borders).map(([e, t]) => `border-${e}:${t}`).join(";");
264
- return p(n.document, "mtd", [e.content], {
298
+ return b(n.document, "mtd", [e.content], {
265
299
  ...t ? { style: t } : {},
266
300
  ...e.align ? { columnalign: e.align } : {}
267
301
  });
268
302
  }))));
269
- for (let { name: t, value: n } of [...e.attributes]) f.has(t) || r.setAttribute(t, n);
270
- let i = g(e, "charspacing") ?? "medium", a = g(e, "charalign");
271
- return r.setAttribute("columnspacing", s[i] ?? (c.test(i) ? i : s.medium)), r.setAttribute("columnalign", a === "left" || a === "center" ? a : "right"), r.setAttribute("rowspacing", "0"), r.setAttribute("align", e.getAttribute("align") ?? "baseline"), r;
303
+ for (let { name: t, value: n } of [...e.attributes]) re.has(t) || r.setAttribute(t, n);
304
+ let i = C(e, "charspacing") ?? "medium", a = C(e, "charalign");
305
+ return r.setAttribute("columnspacing", v[i] ?? (y.test(i) ? i : v.medium)), r.setAttribute("columnalign", a === "left" || a === "center" ? a : "right"), r.setAttribute("rowspacing", "0"), r.setAttribute("align", e.getAttribute("align") ?? "baseline"), r;
272
306
  }
273
- function j(e) {
307
+ function L(e) {
274
308
  return {
275
309
  document: e.ownerDocument,
276
- stackAlign: g(e, "stackalign") ?? "decimalpoint",
310
+ stackAlign: C(e, "stackalign") ?? "decimalpoint",
277
311
  decimalPoint: e.closest("[decimalpoint]")?.getAttribute("decimalpoint")?.trim().charAt(0) || "."
278
312
  };
279
313
  }
280
- function oe(e) {
281
- let t = j(e), n = [];
282
- return w([...e.children], 0, 0, t, n), A(e, k(n, t), t);
314
+ function de(e) {
315
+ let t = L(e), n = [];
316
+ return A([...e.children], 0, 0, t, n), I(e, F(n, t), t);
283
317
  }
284
- function M(e, t, n, r, i, a) {
318
+ function R(e, t, n, r, i, a) {
285
319
  for (let o = n; o <= r; o++) e[t][o].borders[i] = a;
286
320
  }
287
- function se(e, t) {
288
- let n = m(t, ")");
289
- return n.setAttribute("minsize", "1.2em"), [p(t.document, "mrow", [e, p(t.document, "mspace", [], { width: "0.2em" })]), p(t.document, "mpadded", [n], {
321
+ function fe(e, t) {
322
+ let n = x(t, ")");
323
+ return n.setAttribute("minsize", "1.2em"), [b(t.document, "mrow", [e, b(t.document, "mspace", [], { width: "0.2em" })]), b(t.document, "mpadded", [n], {
290
324
  voffset: "0.1em",
291
325
  lspace: "-0.15em",
292
326
  depth: "-0.2em",
293
327
  height: "-0.2em"
294
328
  })];
295
329
  }
296
- function ce(e) {
297
- let t = j(e), [n, r, ...i] = [...e.children], a = n && !v(n) ? n : null, o = r && !v(r) ? r : null, s = g(e, "longdivstyle") ?? "lefttop", c = C(e), l = [];
298
- w(i, 0, 0, t, l);
330
+ function pe(e) {
331
+ let t = L(e), [n, r, ...i] = [...e.children], a = n && !T(n) ? n : null, o = r && !T(r) ? r : null, s = C(e, "longdivstyle") ?? "lefttop", c = k(e), l = [];
332
+ A(i, 0, 0, t, l);
299
333
  let u = l.find((e) => e.kind === "digits");
300
334
  u || (u = {
301
335
  kind: "digits",
@@ -307,51 +341,51 @@ function ce(e) {
307
341
  u.cells.unshift(...e), u.anchor += e.length;
308
342
  }, p = (...e) => {
309
343
  let n = e.flatMap((e) => e ? e.localName === "mrow" ? [...e.children] : [e] : []);
310
- u.cells.push(...b(n, 0, t).cells);
344
+ u.cells.push(...D(n, 0, t).cells);
311
345
  };
312
346
  switch (s) {
313
347
  case "left/\\right":
314
- f(a, m(t, "/")), p(m(t, "\\"), o);
348
+ f(a, x(t, "/")), p(x(t, "\\"), o);
315
349
  break;
316
350
  case "left)(right":
317
- f(a, m(t, ")")), p(m(t, "("), o);
351
+ f(a, x(t, ")")), p(x(t, "("), o);
318
352
  break;
319
353
  case ":right=right":
320
- p(m(t, ":"), a, m(t, "="), o);
354
+ p(x(t, ":"), a, x(t, "="), o);
321
355
  break;
322
356
  case "righttop":
323
357
  case "stackedleftlinetop":
324
358
  case "lefttop":
325
- o && w([o], 0, 0, t, d), l.splice(l.indexOf(u), 0, ...d), s === "righttop" ? p(a) : s === "stackedleftlinetop" ? f(a) : f(...se(a, t));
359
+ o && A([o], 0, 0, t, d), l.splice(l.indexOf(u), 0, ...d), s === "righttop" ? p(a) : s === "stackedleftlinetop" ? f(a) : f(...fe(a, t));
326
360
  break;
327
361
  }
328
- let h = k(l, t), _ = h.rows, y = h.rowOf.get(u) ?? 0, x = (e) => h.origin + T(u) + e, S = Math.max(x(u.cells.length - 1), ...d.map((e) => h.origin + D(e)));
362
+ let m = F(l, t), h = m.rows, g = m.rowOf.get(u) ?? 0, _ = (e) => m.origin + j(u) + e, v = Math.max(_(u.cells.length - 1), ...d.map((e) => m.origin + N(e)));
329
363
  switch (s) {
330
364
  case "left/\\right":
331
365
  case "left)(right":
332
366
  case ":right=right": break;
333
367
  case "righttop": {
334
- let e = _[y][x(u.cells.length - 1)];
335
- e.borders.left = c, e.borders.bottom = c, M(_, y, x(0), x(u.cells.length - 1), "top", c);
368
+ let e = h[g][_(u.cells.length - 1)];
369
+ e.borders.left = c, e.borders.bottom = c, R(h, g, _(0), _(u.cells.length - 1), "top", c);
336
370
  break;
337
371
  }
338
372
  case "stackedleftlinetop": {
339
- let e = _[y][x(0)];
340
- e.borders.right = c, e.borders.bottom = c, M(_, y, x(1), S, "top", c);
373
+ let e = h[g][_(0)];
374
+ e.borders.right = c, e.borders.bottom = c, R(h, g, _(1), v, "top", c);
341
375
  break;
342
376
  }
343
377
  case "stackedrightright":
344
378
  case "mediumstackedrightright":
345
379
  case "shortstackedrightright":
346
380
  case "stackedleftleft":
347
- le(_, y, s, a, o, c, t);
381
+ me(h, g, s, a, o, c, t);
348
382
  break;
349
- default: M(_, y, x(1), S, "top", c);
383
+ default: R(h, g, _(1), v, "top", c);
350
384
  }
351
- return A(e, h, t);
385
+ return I(e, m, t);
352
386
  }
353
- function le(e, t, n, r, i, a, o) {
354
- let s = n === "stackedleftleft", c = s ? "right" : "left", l = (e) => e && p(o.document, "mpadded", [e], {
387
+ function me(e, t, n, r, i, a, o) {
388
+ let s = n === "stackedleftleft", c = s ? "right" : "left", l = (e) => e && b(o.document, "mpadded", [e], {
355
389
  lspace: "0.2em",
356
390
  width: "+0.4em"
357
391
  });
@@ -370,102 +404,75 @@ function le(e, t, n, r, i, a, o) {
370
404
  }) : o === t + 1 ? (u.content = l(i), n !== "shortstackedrightright" && (u.borders[c] = a)) : o > t + 1 && (n === "stackedrightright" || s) && (u.borders[c] = a), s ? e.unshift(u) : e.push(u);
371
405
  });
372
406
  }
373
- function ue(e) {
374
- for (let t of [...e.querySelectorAll("mstack, mlongdiv")]) !t.closest("math") || t.closest("mjx-container") || t.replaceWith(t.localName === "mstack" ? oe(t) : ce(t));
375
- }
376
- //#endregion
377
- //#region src/unsupported-page.ts
378
- var N = "https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page", P = "pie-mathjax-version-conflict", F = Symbol.for("@pie-element/shared-math-rendering-mathjax/unsupported-page");
379
- function I(e, t) {
380
- if (typeof window > "u") return;
381
- let n = globalThis;
382
- n[F] ??= {
383
- logged: !1,
384
- conditions: []
385
- };
386
- let r = n[F];
387
- if (r.conditions.includes(e)) return;
388
- r.conditions.push(e);
389
- let i = `[math-rendering] Unsupported page (${e}): ${t}. PIE supports one MathJax major version per page; with MathJax 3 and 4 on one page, math rendering is best effort and may break. See ${N}`;
390
- r.logged || (r.logged = !0, console.error(i)), window.dispatchEvent(new CustomEvent(P, { detail: {
391
- condition: e,
392
- message: i,
393
- docsUrl: N
394
- } }));
395
- }
396
- function de() {
397
- let e = window.MathJax?.version;
398
- return typeof e == "string" && e.startsWith("3.") ? e : void 0;
407
+ function he(e) {
408
+ for (let t of [...e.querySelectorAll("mstack, mlongdiv")]) !t.closest("math") || t.closest("mjx-container") || t.replaceWith(t.localName === "mstack" ? de(t) : pe(t));
399
409
  }
400
410
  //#endregion
401
411
  //#region src/adapter.ts
402
- var fe = "https://cdn.jsdelivr.net/npm/mathjax@4.1.3/tex-mml-chtml.js", pe = {
412
+ var ge = "https://cdn.jsdelivr.net/npm/mathjax@4.1.3/tex-mml-chtml.js", _e = {
403
413
  parallelogram: "\\lower.2em{\\Huge\\unicode{x25B1}}",
404
414
  overarc: "\\overparen",
405
415
  napprox: "\\not\\approx",
406
416
  longdiv: "\\enclose{longdiv}",
407
417
  abs: ["\\left|#1\\right|", 1]
408
- }, me = "[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)", he = /\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/, ge = /\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/, _e = /\\embed\{newLine\}\[\]/g, ve = [
418
+ }, ve = "[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)", ye = /\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/, be = /\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/, xe = /\\embed\{newLine\}\[\]/g, Se = [
409
419
  ["$$", "$$"],
410
420
  ["$", "$"],
411
421
  ["\\[", "\\]"],
412
422
  ["\\(", "\\)"]
413
- ], L = Symbol.for("@pie-element/shared-math-rendering-mathjax/loading"), R = "PIE-MJX-CHTML-styles", z = "MJX-CHTML-styles", ye = "PIE-MJX-SVG-styles", be = "MJX-SVG-styles", B = "PIE-MathJax-Menu-Settings", xe = [z, be], Se = { "mjx-container[overflow=\"linebreak\"][display]": {
423
+ ], z = Symbol.for("@pie-element/shared-math-rendering-mathjax/loading"), Ce = "MJX-CHTML-styles", we = "PIE-MJX-SVG-styles", B = "PIE-MathJax-Menu-Settings", Te = { "mjx-container[overflow=\"linebreak\"][display]": {
414
424
  overflow: "auto clip",
415
425
  "min-width": "initial !important"
416
- } }, Ce = 200, we = 201;
426
+ } }, Ee = 200, De = 201;
417
427
  function V(e) {
418
428
  let t = [...e.matches("mjx-container") ? [e] : [], ...e.querySelectorAll("mjx-container")];
419
429
  for (let e of t) for (let t of [e, ...e.querySelectorAll("[data-latex],[data-latex-item]")]) t.removeAttribute("data-latex"), t.removeAttribute("data-latex-item");
420
430
  }
421
- function H() {
422
- return window.MathJax;
423
- }
424
- function U(e) {
425
- for (let [t, n] of ve) if (e.startsWith(t) && e.endsWith(n)) return e.substring(t.length, e.length - n.length);
431
+ function H(e) {
432
+ for (let [t, n] of Se) if (e.startsWith(t) && e.endsWith(n)) return e.substring(t.length, e.length - n.length);
426
433
  return e;
427
434
  }
428
- function Te(e) {
429
- return U(e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e);
435
+ function Oe(e) {
436
+ return H(e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e);
430
437
  }
431
- var Ee = "mathjax_ignore", W = "mathjax_process";
432
- function De(e, t) {
433
- let n = e.closest(`.${Ee}, .${W}`);
434
- return n !== null && t.contains(n) && !n.classList.contains(W);
438
+ var ke = "mathjax_ignore", U = "mathjax_process";
439
+ function Ae(e, t) {
440
+ let n = e.closest(`.${ke}, .${U}`);
441
+ return n !== null && t.contains(n) && !n.classList.contains(U);
435
442
  }
436
- function Oe(e) {
443
+ function je(e) {
437
444
  for (let t of e.querySelectorAll("[data-latex]")) {
438
- if (t.dataset.mathHandled || t.closest("mjx-container") || De(t, e)) continue;
445
+ if (t.dataset.mathHandled || t.closest("mjx-container") || Ae(t, e)) continue;
439
446
  let n = t.textContent;
440
- n && (t.textContent = `\\(${Te(n)}\\)`.replace(_e, "\\newline "), t.dataset.mathHandled = "true");
447
+ n && (t.textContent = `\\(${Oe(n)}\\)`.replace(xe, "\\newline "), t.dataset.mathHandled = "true");
441
448
  }
442
449
  }
443
- function ke(e) {
450
+ function Me(e) {
444
451
  for (let t of e.querySelectorAll("math")) t.closest("mjx-container") || t.setAttribute("displaystyle", "true");
445
452
  }
446
- function Ae(e, t) {
453
+ function W(e, t) {
447
454
  for (let t of e.querySelectorAll("math")) if (!t.closest("mjx-assistive-mml")) return !0;
448
- return (t ? ge : he).test(e.textContent ?? "");
455
+ return (t ? be : ye).test(e.textContent ?? "");
449
456
  }
450
- function je(e) {
457
+ function Ne(e) {
451
458
  return new Promise((t, n) => {
452
- let { useSingleDollar: r = !1, accessibility: i = !0, loadFonts: a = !0, srcUrl: o } = e, s = {
459
+ let { useSingleDollar: r = !1, accessibility: i = !0, loadFonts: s = !0, srcUrl: c } = e, l = {
453
460
  loader: {
454
461
  load: i ? ["a11y/assistive-mml"] : [],
455
462
  failed: (e) => n(e),
456
463
  "output/svg": { ready: (e) => {
457
- let t = H();
464
+ let t = a();
458
465
  return G(t) && K(t), e;
459
466
  } }
460
467
  },
461
468
  startup: {
462
469
  typeset: !1,
463
470
  ready: () => {
464
- let e = H(), r = e?.startup, i = G(e);
465
- i && (K(e), Me(e)), r?.defaultReady?.(), i && (Ne(r?.document), r?.document?.addStyles?.(Se)), Promise.resolve(r?.promise).then(() => t(), n);
471
+ let e = a(), r = e?.startup, i = G(e);
472
+ i && (K(e), Pe(e)), r?.defaultReady?.(), i && (Fe(r?.document), r?.document?.addStyles?.(Te)), Promise.resolve(r?.promise).then(() => t(), n);
466
473
  }
467
474
  },
468
- tex: { macros: { ...pe } },
475
+ tex: { macros: { ..._e } },
469
476
  output: { displayOverflow: "linebreak" },
470
477
  options: {
471
478
  enableMenu: i,
@@ -477,9 +484,7 @@ function je(e) {
477
484
  a11y: { inTabOrder: !1 }
478
485
  }
479
486
  };
480
- r && s.tex && (console.warn(me), s.tex.inlineMath = [["$", "$"], ["\\(", "\\)"]], s.tex.processEscapes = !0), a || (s.chtml = { fontURL: "" }), window.MathJax = s;
481
- let c = document.createElement("script");
482
- c.src = o || fe, c.async = !0, c.onerror = () => n(/* @__PURE__ */ Error("Failed to load MathJax")), document.head.appendChild(c);
487
+ r && l.tex && (console.warn(ve), l.tex.inlineMath = [["$", "$"], ["\\(", "\\)"]], l.tex.processEscapes = !0), s || (l.chtml = { fontURL: "" }), o(l, c || ge).catch(n);
483
488
  });
484
489
  }
485
490
  function G(e) {
@@ -487,11 +492,11 @@ function G(e) {
487
492
  }
488
493
  function K(e) {
489
494
  let t = e?._?.output, n = t?.chtml_ts?.CHTML;
490
- n && (n.STYLESHEETID = R);
495
+ n && (n.STYLESHEETID = c);
491
496
  let r = t?.svg_ts?.SVG;
492
- r && (r.STYLESHEETID = ye);
497
+ r && (r.STYLESHEETID = we);
493
498
  }
494
- function Me(e) {
499
+ function Pe(e) {
495
500
  let t = e?._?.ui?.menu?.Menu?.Menu;
496
501
  if (t) {
497
502
  t.MENU_STORAGE = B;
@@ -504,13 +509,13 @@ function Me(e) {
504
509
  } catch {}
505
510
  }
506
511
  }
507
- function Ne(e) {
512
+ function Fe(e) {
508
513
  if (!e) return;
509
514
  let t = /* @__PURE__ */ new WeakSet(), n = (e) => {
510
515
  let n = e.typesetRoot;
511
516
  !n || t.has(n) || (V(n), t.add(n));
512
517
  };
513
- e.addRenderAction?.("pie-strip-latex", we, (e) => {
518
+ e.addRenderAction?.("pie-strip-latex", De, (e) => {
514
519
  for (let t of e.math ?? []) n(t);
515
520
  return !1;
516
521
  }, (e) => {
@@ -518,15 +523,15 @@ function Ne(e) {
518
523
  return t && V(t), !1;
519
524
  });
520
525
  let r = e.outputJax?.chtmlStyles;
521
- r?.id === z && (r.id = R), Pe();
526
+ r?.id === Ce && (r.id = c), Ie();
522
527
  }
523
528
  function q(e) {
524
- return e instanceof HTMLStyleElement && xe.includes(e.id);
529
+ return e instanceof HTMLStyleElement && l.includes(e.id);
525
530
  }
526
531
  function J(e) {
527
- I("foreign-output-stylesheet", `another MathJax added <style id="${e.id}"> to <head>`);
532
+ r("foreign-output-stylesheet", `another MathJax added <style id="${e.id}"> to <head>`);
528
533
  }
529
- function Pe() {
534
+ function Ie() {
530
535
  let e = document.head, t = [...e.children].find(q);
531
536
  if (t) {
532
537
  J(t);
@@ -543,84 +548,84 @@ function Pe() {
543
548
  });
544
549
  n.observe(e, { childList: !0 });
545
550
  }
546
- function Fe(e) {
551
+ function Le(e) {
547
552
  let t = e?.math;
548
553
  if (!t?.remove) return;
549
- let n = [...t].filter((e) => (e.state?.() ?? 0) >= Ce && e.typesetRoot?.isConnected === !1);
554
+ let n = [...t].filter((e) => (e.state?.() ?? 0) >= Ee && e.typesetRoot?.isConnected === !1);
550
555
  if (n.length !== 0) {
551
556
  for (let e of [...n].reverse()) e.clear?.();
552
557
  t.remove(...n);
553
558
  }
554
559
  }
555
- function Ie(e) {
560
+ function Re(e) {
556
561
  return new Promise((t, n) => {
557
562
  let r = e.startup ?? {};
558
563
  e.startup = r;
559
564
  let i = r.ready;
560
565
  r.ready = () => {
561
- let e = H()?.startup;
566
+ let e = a()?.startup;
562
567
  i ? i.call(r) : e?.defaultReady?.(), Promise.resolve(e?.promise).then(() => t(), n);
563
568
  };
564
569
  });
565
570
  }
566
- function Le(e) {
567
- let t = H();
568
- return t ? t.version ? t.startup?.promise ? Promise.resolve(t.startup.promise).then(() => void 0) : Promise.resolve() : Ie(t) : je(e);
571
+ function ze(e) {
572
+ let t = a();
573
+ return t ? t.version ? t.startup?.promise ? Promise.resolve(t.startup.promise).then(() => void 0) : Promise.resolve() : Re(t) : Ne(e);
569
574
  }
570
- function Re(e) {
571
- return Le(e).then(() => {
572
- typeof H()?.typesetPromise != "function" && console.warn("[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.");
575
+ function Be(e) {
576
+ return ze(e).then(() => {
577
+ typeof a()?.typesetPromise != "function" && console.warn("[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.");
573
578
  });
574
579
  }
575
- function ze(e) {
576
- let t = globalThis, n = t[L];
577
- return n || (n = Re(e), t[L] = n), n;
580
+ function Ve(e) {
581
+ let t = s, n = t[z];
582
+ return n || (n = Be(e), t[z] = n), n;
578
583
  }
579
584
  function Y(e = {}) {
580
585
  let t = e.useSingleDollar ?? !1;
581
586
  return async (n) => {
582
587
  if (typeof window > "u") return;
583
- let i = de();
584
- i && I("mathjax-3-global", `window.MathJax is MathJax ${i}`), Oe(n), r(n), ke(n), ue(n);
585
- let a = ze(e);
586
- if (!Ae(n, t)) {
587
- a.catch(() => {});
588
+ let i = u();
589
+ i && r("mathjax-3-global", `window.MathJax is MathJax ${i}`), je(n), m(n), Me(n), he(n);
590
+ let o = Ve(e);
591
+ if (!W(n, t)) {
592
+ o.catch(() => {});
588
593
  return;
589
594
  }
590
- await a;
591
- let o = H();
592
- if (await o?.startup?.promise, typeof o?.typesetPromise == "function") {
593
- Fe(o.startup?.document);
595
+ await o;
596
+ let s = a();
597
+ if (await s?.startup?.promise, typeof s?.typesetPromise == "function") {
598
+ Le(s.startup?.document);
594
599
  try {
595
- await o.typesetPromise([n]);
600
+ await s.typesetPromise([n]);
596
601
  } catch (e) {
597
- throw o.typesetClear?.([n]), e;
602
+ throw s.typesetClear?.([n]), e;
598
603
  }
599
604
  V(n);
600
605
  }
601
606
  };
602
607
  }
603
- function Be() {
608
+ function He() {
604
609
  return [];
605
610
  }
606
611
  //#endregion
607
612
  //#region src/render-math.ts
608
- var Ve = "@pie-lib/math-rendering", He = "@pie-lib/math-rendering@2", Ue = "pie-print", We = 50, Ge = 1e4, X = null;
609
- function Ke() {
610
- return !!window[He]?.opts?.useSingleDollar;
613
+ var Ue = "@pie-lib/math-rendering", We = "@pie-lib/math-rendering@2", Ge = "pie-print", Ke = 50, qe = 1e4, X = null;
614
+ function Je() {
615
+ return !!window[We]?.opts?.useSingleDollar;
611
616
  }
612
- function qe() {
613
- return X ||= Y({ useSingleDollar: Ke() }), X;
617
+ function Ye() {
618
+ return X ||= Y({ useSingleDollar: Je() }), X;
614
619
  }
615
620
  function Z() {
616
621
  if (typeof window > "u") return null;
617
- let e = window[Ve];
622
+ let e = window[Ue];
618
623
  return typeof e?.renderMath == "function" && e.renderMath !== $ ? e : null;
619
624
  }
620
- function Je(e) {
625
+ function Xe(e) {
621
626
  let t = e;
622
627
  for (; t;) {
623
- if (t instanceof Element && t.localName === Ue) return t;
628
+ if (t instanceof Element && t.localName === Ge) return t;
624
629
  t = t instanceof ShadowRoot ? t.host : t.parentNode;
625
630
  }
626
631
  return null;
@@ -629,14 +634,14 @@ function Q() {
629
634
  let e = window.renderMath;
630
635
  return typeof e == "function" ? e : null;
631
636
  }
632
- async function Ye(e) {
633
- let t = Je(e);
637
+ async function Ze(e) {
638
+ let t = Xe(e);
634
639
  if (!t) return null;
635
640
  let n = Q();
636
641
  if (n || t.mathRenderingModuleUrlImported !== !0) return n;
637
- let r = Date.now() + Ge;
642
+ let r = Date.now() + qe;
638
643
  for (; Date.now() < r;) {
639
- await new Promise((e) => setTimeout(e, We));
644
+ await new Promise((e) => setTimeout(e, Ke));
640
645
  let e = Q();
641
646
  if (e) return e;
642
647
  }
@@ -646,14 +651,14 @@ var $ = async (e) => {
646
651
  if (typeof window > "u") return;
647
652
  let t = typeof e == "string", n;
648
653
  t ? (n = document.createElement("div"), n.innerHTML = e) : n = e || document.body;
649
- let r = Z(), i = r || t ? null : await Ye(n);
650
- return r ? await r.renderMath?.(n) : i && i !== $ ? await i(n) : await qe()(n), t ? n.innerHTML : void 0;
651
- }, Xe = (e, t) => {
654
+ let r = Z(), i = r || t ? null : await Ze(n);
655
+ return r ? await r.renderMath?.(n) : i && i !== $ ? await i(n) : await Ye()(n), t ? n.innerHTML : void 0;
656
+ }, Qe = (e, t) => {
652
657
  let n = Z()?.wrapMath?.(e, t);
653
658
  if (n != null) return n;
654
659
  let [r, i] = t === "dollar" || t === "double_dollar" ? ["$", "$"] : ["\\(", "\\)"];
655
- return `${r}${U(e)}${i}`;
656
- }, Ze = (e) => {
660
+ return `${r}${H(e)}${i}`;
661
+ }, $e = (e) => {
657
662
  let t = e.trim();
658
663
  return t.startsWith("\\[") && t.endsWith("\\]") ? {
659
664
  unwrapped: t.slice(2, -2).trim(),
@@ -680,6 +685,6 @@ var $ = async (e) => {
680
685
  close: "$"
681
686
  }
682
687
  } : { unwrapped: t };
683
- }, Qe = (e) => Z()?.mmlToLatex?.(e) ?? e;
688
+ }, et = (e) => Z()?.mmlToLatex?.(e) ?? e;
684
689
  //#endregion
685
- export { P as MATHJAX_CONFLICT_EVENT, N as UNSUPPORTED_PAGE_DOCS_URL, Y as createMathjaxRenderer, Be as getMathjaxCssUrls, Qe as mmlToLatex, $ as renderMath, Ze as unWrapMath, Xe as wrapMath };
690
+ export { t as MATHJAX_CONFLICT_EVENT, e as UNSUPPORTED_PAGE_DOCS_URL, Y as createMathjaxRenderer, He as getMathjaxCssUrls, et as mmlToLatex, $ as renderMath, $e as unWrapMath, Qe as wrapMath };