@algorisys/yappydraw 0.8.278 → 0.8.283

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 (46) hide show
  1. package/README.md +2 -2
  2. package/chunks/{AllPackages-DytsA6Gg.js → AllPackages-NXu9X6xl.js} +5 -5
  3. package/chunks/{BaseConfiguration-B0Un-ANd.js → BaseConfiguration-Cn1Beeg_.js} +3 -3
  4. package/chunks/{Entities-XwxJEcR3.js → Entities-DNDwR9nR.js} +1 -1
  5. package/chunks/{Factory-B4kWsy6c.js → Factory-hCmMrRZd.js} +8 -8
  6. package/chunks/{InputJax-DQpRzuU2.js → InputJax-BnvzjXPP.js} +1 -1
  7. package/chunks/PrioritizedList-CopFulOu.js +35 -0
  8. package/chunks/{TeXAtom-COgv6VHH.js → TeXAtom-i5HZ7jSY.js} +25 -25
  9. package/chunks/__vite-browser-external-BsdCVVos.js +110 -0
  10. package/chunks/_commonjsHelpers-DaMA6jEr.js +8 -0
  11. package/chunks/{canva-ai-7n8RQQlp.js → canva-ai-6uxuZ0PT.js} +8 -8
  12. package/chunks/{choice-dialog-state-DzWAU-Fv.js → choice-dialog-state-CTLAD7og.js} +1 -1
  13. package/chunks/{design-generator-AHGi1XTI.js → design-generator-l8Wo9SER.js} +1 -1
  14. package/chunks/{drawing-engine-DfKBHdTi.js → drawing-engine-BTqPTS30.js} +1 -1
  15. package/chunks/{drawings-store-Cyv-1e1L.js → drawings-store-B0h0XeLH.js} +19 -19
  16. package/chunks/{ds-operations-C9fmILbu.js → ds-operations-CvCIeybe.js} +1 -1
  17. package/chunks/{export-game-C1SNNfRf.js → export-game-CQ9VCQV9.js} +1 -1
  18. package/chunks/{game-runtime-ztkqHa3o.js → game-runtime-DGFlcZcF.js} +76 -76
  19. package/chunks/{html-CEj6ZeJc.js → html-BBKfobGE.js} +56 -55
  20. package/chunks/html2canvas.esm-BWVIUcAF.js +4802 -0
  21. package/chunks/{index-vjDu6_KH.js → index-D1ifHWAi.js} +15983 -12966
  22. package/chunks/index.es-Cmz4JyRm.js +6665 -0
  23. package/chunks/jspdf.es.min-rJE95jGX.js +9859 -0
  24. package/chunks/lcms-Car3bVu8.js +949 -0
  25. package/chunks/lcms-tShoQ1hy.js +4 -0
  26. package/chunks/{liteAdaptor-BZby1Qz2.js → liteAdaptor-DFCyQb98.js} +2 -2
  27. package/chunks/{lucide-solid-UJTMB-sy.js → lucide-solid-PB_pG8LH.js} +1 -1
  28. package/chunks/{markdown-to-slides-CKGVwM_7.js → markdown-to-slides-Ci06cYoT.js} +16 -16
  29. package/chunks/{mathjax-CnUrFnFS.js → mathjax-BPYOiwki.js} +1 -1
  30. package/chunks/{mathjax-D6cR72fZ.js → mathjax-BYK64638.js} +2 -2
  31. package/chunks/{morph-animator-D7JpZIyR.js → morph-animator-nKcVAyGw.js} +1 -1
  32. package/chunks/{onboarding-tour-DsN4nEFc.js → onboarding-tour-F8YlLQgf.js} +32 -32
  33. package/chunks/pdf-cmyk-CqVZV2FF.js +339 -0
  34. package/chunks/pdf-vector-hLlPZeLt.js +200 -0
  35. package/chunks/pdf-x-DBYFVbAz.js +220 -0
  36. package/chunks/purify.es-C2Qa7b4C.js +906 -0
  37. package/chunks/{search-qTCHUaUH.js → search-Nvw1qYCe.js} +2 -2
  38. package/chunks/{slide-generator-CoHxujzf.js → slide-generator-BwaWABSo.js} +8 -8
  39. package/chunks/{svg-B2urwbCV.js → svg-CGqKTjgw.js} +3 -3
  40. package/chunks/svg2pdf.es.min-BVaMJ-wC.js +2452 -0
  41. package/chunks/{tex-BTCIQDRb.js → tex-Cc_XKudY.js} +4 -4
  42. package/chunks/{turntable-ai-BEZd382K.js → turntable-ai-DyxE4d5_.js} +1 -1
  43. package/chunks/{yappy-NspTXSPk.css → yappy-FCQs01wv.css} +1 -1
  44. package/package.json +1 -1
  45. package/yappy.js +5 -5
  46. package/chunks/PrioritizedList-TjDg4i-s.js +0 -39
@@ -1,4 +1,4 @@
1
- import { s as o, b as m, d as b, z as W, w as z, g as a, x as U, y as B } from "./index-vjDu6_KH.js";
1
+ import { s as o, b as m, d as b, z as W, h as z, g as a, i as U, j as B } from "./index-D1ifHWAi.js";
2
2
  const h = /* @__PURE__ */ new Set(), x = [], G = {
3
3
  ArrowLeft: "left",
4
4
  a: "left",
@@ -19,27 +19,27 @@ const h = /* @__PURE__ */ new Set(), x = [], G = {
19
19
  x: "b",
20
20
  X: "b",
21
21
  Shift: "b"
22
- }, q = (e) => {
23
- h.has(e) || (h.add(e), I(e));
24
22
  }, Q = (e) => {
23
+ h.has(e) || (h.add(e), I(e));
24
+ }, q = (e) => {
25
25
  h.delete(e);
26
26
  }, I = (e) => {
27
- for (const r of x) r.button === e && L(r.fn);
28
- }, u = { x: 0, y: 0, down: !1 }, v = [], ee = (e, r) => {
29
- u.x = e, u.y = r;
30
- }, te = (e, r) => {
31
- u.x = e, u.y = r, u.down = !0;
32
- for (const s of v) L(() => s(e, r));
27
+ for (const i of x) i.button === e && L(i.fn);
28
+ }, u = { x: 0, y: 0, down: !1 }, v = [], ee = (e, i) => {
29
+ u.x = e, u.y = i;
30
+ }, te = (e, i) => {
31
+ u.x = e, u.y = i, u.down = !0;
32
+ for (const s of v) L(() => s(e, i));
33
33
  }, ne = () => {
34
34
  u.down = !1;
35
35
  };
36
36
  class A {
37
37
  id;
38
- constructor(r) {
39
- this.id = r;
38
+ constructor(i) {
39
+ this.id = i;
40
40
  }
41
41
  el() {
42
- return o.elements.find((r) => r.id === this.id);
42
+ return o.elements.find((i) => i.id === this.id);
43
43
  }
44
44
  get alive() {
45
45
  return !!this.el();
@@ -64,33 +64,33 @@ class A {
64
64
  }
65
65
  /** Center coordinates. */
66
66
  get cx() {
67
- const r = this.el();
68
- return r ? r.x + r.width / 2 : 0;
67
+ const i = this.el();
68
+ return i ? i.x + i.width / 2 : 0;
69
69
  }
70
70
  get cy() {
71
- const r = this.el();
72
- return r ? r.y + r.height / 2 : 0;
71
+ const i = this.el();
72
+ return i ? i.y + i.height / 2 : 0;
73
73
  }
74
- set(r) {
75
- return C(this.id, r), this;
74
+ set(i) {
75
+ return C(this.id, i), this;
76
76
  }
77
- moveTo(r, s) {
78
- return this.set({ x: r, y: s });
77
+ moveTo(i, s) {
78
+ return this.set({ x: i, y: s });
79
79
  }
80
- moveBy(r, s) {
81
- return this.set({ x: this.x + r, y: this.y + s });
80
+ moveBy(i, s) {
81
+ return this.set({ x: this.x + i, y: this.y + s });
82
82
  }
83
- centerAt(r, s) {
84
- return this.set({ x: r - this.width / 2, y: s - this.height / 2 });
83
+ centerAt(i, s) {
84
+ return this.set({ x: i - this.width / 2, y: s - this.height / 2 });
85
85
  }
86
- rotateBy(r) {
87
- return this.set({ angle: this.angle + r * Math.PI / 180 });
86
+ rotateBy(i) {
87
+ return this.set({ angle: this.angle + i * Math.PI / 180 });
88
88
  }
89
- color(r) {
90
- return this.set({ backgroundColor: r, fillStyle: "solid" });
89
+ color(i) {
90
+ return this.set({ backgroundColor: i, fillStyle: "solid" });
91
91
  }
92
- setText(r) {
93
- return this.set({ text: r });
92
+ setText(i) {
93
+ return this.set({ text: i });
94
94
  }
95
95
  hide() {
96
96
  return this.set({ opacity: 0 });
@@ -102,16 +102,16 @@ class A {
102
102
  H(this.id);
103
103
  }
104
104
  }
105
- const C = (e, r) => {
106
- a("elements", (s) => s.id === e, r);
105
+ const C = (e, i) => {
106
+ a("elements", (s) => s.id === e, i);
107
107
  }, H = (e) => {
108
- a("elements", (r) => r.filter((s) => s.id !== e));
108
+ a("elements", (i) => i.filter((s) => s.id !== e));
109
109
  };
110
110
  let g = null, y = null, w = [], k = 0, M = 0, c = null, T = !1, F = "", f = 0;
111
111
  const N = "SCORE ";
112
112
  let $ = null, V = !1, E = () => {
113
113
  };
114
- const re = (e) => {
114
+ const ie = (e) => {
115
115
  E = e;
116
116
  }, J = (e) => {
117
117
  $ = e, E();
@@ -120,27 +120,27 @@ const re = (e) => {
120
120
  }, L = (e) => {
121
121
  try {
122
122
  e();
123
- } catch (r) {
124
- console.error("[arcade] script error:", r), m(`Game error: ${r?.message || r}`, "error"), p();
123
+ } catch (i) {
124
+ console.error("[arcade] script error:", i), m(`Game error: ${i?.message || i}`, "error"), p();
125
125
  }
126
126
  }, K = (e) => {
127
127
  if (e.key === "Escape") {
128
128
  p();
129
129
  return;
130
130
  }
131
- const r = G[e.key];
132
- r && (e.preventDefault(), h.has(r) || (h.add(r), I(r)));
131
+ const i = G[e.key];
132
+ i && (e.preventDefault(), h.has(i) || (h.add(i), I(i)));
133
133
  }, O = (e) => {
134
- const r = G[e.key];
135
- r && h.delete(r);
134
+ const i = G[e.key];
135
+ i && h.delete(i);
136
136
  };
137
- let X = 0;
138
- function Y() {
137
+ let j = 0;
138
+ function X() {
139
139
  const e = o.slides[o.activeSlideIndex] || o.slides[0];
140
140
  return e ? { x: e.spatialPosition.x, y: e.spatialPosition.y, width: e.dimensions.width, height: e.dimensions.height } : { x: 0, y: 0, width: 800, height: 600 };
141
141
  }
142
- function Z() {
143
- const e = Y(), r = {
142
+ function Y() {
143
+ const e = X(), i = {
144
144
  strokeColor: "transparent",
145
145
  strokeWidth: 0,
146
146
  strokeStyle: "solid",
@@ -152,17 +152,17 @@ function Z() {
152
152
  locked: !1,
153
153
  layerId: o.activeLayerId || "default-layer",
154
154
  roundness: null
155
- }, s = (n, t, i, d, l, S) => {
155
+ }, s = (n, t, r, d, l, S) => {
156
156
  const D = {
157
- id: `game-${Date.now()}-${++X}`,
157
+ id: `game-${Date.now()}-${++j}`,
158
158
  type: n,
159
159
  x: t,
160
- y: i,
160
+ y: r,
161
161
  width: d,
162
162
  height: l,
163
163
  backgroundColor: "#3b82f6",
164
164
  seed: 1,
165
- ...r,
165
+ ...i,
166
166
  ...S
167
167
  };
168
168
  return a("elements", (R) => [...R, D]), new A(D.id);
@@ -184,12 +184,12 @@ function Z() {
184
184
  v.push(n);
185
185
  },
186
186
  find: (n) => {
187
- const t = o.elements.find((i) => i.id === n || i.tag === n || i.text === n);
187
+ const t = o.elements.find((r) => r.id === n || r.tag === n || r.text === n);
188
188
  return t ? new A(t.id) : null;
189
189
  },
190
190
  findAll: (n) => o.elements.filter((t) => t.id === n || t.tag === n || t.text === n).map((t) => new A(t.id)),
191
- spawn: (n, t, i, d, l, S) => s(n, t, i, d, l, S),
192
- spawnText: (n, t, i, d = 32, l) => s("text", t, i, Math.max(60, n.length * d * 0.6), d * 1.4, {
191
+ spawn: (n, t, r, d, l, S) => s(n, t, r, d, l, S),
192
+ spawnText: (n, t, r, d = 32, l) => s("text", t, r, Math.max(60, n.length * d * 0.6), d * 1.4, {
193
193
  text: n,
194
194
  fontSize: d,
195
195
  textColor: "#111827",
@@ -218,13 +218,13 @@ function Z() {
218
218
  score: (n) => {
219
219
  f += n;
220
220
  const t = N + f;
221
- if (c && o.elements.some((i) => i.id === c))
221
+ if (c && o.elements.some((r) => r.id === c))
222
222
  C(c, { text: t });
223
223
  else {
224
- const i = Math.round(e.width / 18);
225
- c = s("text", e.x + e.width * 0.1, e.y + 16, e.width * 0.8, i * 1.5, {
224
+ const r = Math.round(e.width / 18);
225
+ c = s("text", e.x + e.width * 0.1, e.y + 16, e.width * 0.8, r * 1.5, {
226
226
  text: t,
227
- fontSize: i,
227
+ fontSize: r,
228
228
  textColor: "#111827",
229
229
  textAlign: "center",
230
230
  backgroundColor: "transparent",
@@ -236,21 +236,21 @@ function Z() {
236
236
  },
237
237
  getScore: () => f,
238
238
  goToState: (n) => {
239
- const t = o.states.find((i) => i.name === n || i.id === n);
239
+ const t = o.states.find((r) => r.name === n || r.id === n);
240
240
  t && B(t.id);
241
241
  },
242
242
  playAnim: (n, t) => {
243
- n?.alive && import("./index-vjDu6_KH.js").then((i) => i.aq).then((i) => i.sequenceAnimator.playAnimation(n.id, { id: `bhv-${Date.now()}`, type: "preset", name: t, trigger: "programmatic" }, () => {
243
+ n?.alive && import("./index-D1ifHWAi.js").then((r) => r.at).then((r) => r.sequenceAnimator.playAnimation(n.id, { id: `bhv-${Date.now()}`, type: "preset", name: t, trigger: "programmatic" }, () => {
244
244
  }));
245
245
  },
246
246
  goToPage: (n) => {
247
247
  n >= 0 && n < o.slides.length && U(n);
248
248
  },
249
249
  sound: (n) => {
250
- import("./index-vjDu6_KH.js").then((t) => t.ar).then((t) => t.playSfx(n));
250
+ import("./index-D1ifHWAi.js").then((t) => t.au).then((t) => t.playSfx(n));
251
251
  },
252
252
  music: (n) => {
253
- import("./index-vjDu6_KH.js").then((t) => t.ar).then((t) => n ? t.startMusic() : t.stopMusic());
253
+ import("./index-D1ifHWAi.js").then((t) => t.au).then((t) => n ? t.startMusic() : t.stopMusic());
254
254
  },
255
255
  end: (n) => {
256
256
  if (P(!0), n) {
@@ -268,14 +268,14 @@ function Z() {
268
268
  },
269
269
  pad: (n) => J(n),
270
270
  random: (n, t) => n + Math.random() * (t - n),
271
- clamp: (n, t, i) => Math.max(t, Math.min(i, n))
271
+ clamp: (n, t, r) => Math.max(t, Math.min(r, n))
272
272
  };
273
273
  }
274
- const ie = () => o.gameActive;
275
- function _(e) {
274
+ const re = () => o.gameActive;
275
+ function Z(e) {
276
276
  o.gameActive && p();
277
- const r = e ?? o.gameScript;
278
- if (!r?.trim())
277
+ const i = e ?? o.gameScript;
278
+ if (!i?.trim())
279
279
  return m("No game script yet — open Menu → Game Script…", "info"), !1;
280
280
  g = {
281
281
  elements: JSON.stringify(o.elements),
@@ -283,11 +283,11 @@ function _(e) {
283
283
  activeSlideIndex: o.activeSlideIndex,
284
284
  appMode: o.appMode,
285
285
  viewState: { ...o.viewState }
286
- }, F = r, w = [], x.length = 0, v.length = 0, h.clear(), c = null, f = 0, P(!1), $ = null;
286
+ }, F = i, w = [], x.length = 0, v.length = 0, h.clear(), c = null, f = 0, P(!1), $ = null;
287
287
  let s;
288
288
  try {
289
289
  s = new Function("game", `'use strict';
290
- ${r}`);
290
+ ${i}`);
291
291
  } catch (t) {
292
292
  return m(`Game script error: ${t?.message || t}`, "error"), g = null, !1;
293
293
  }
@@ -295,19 +295,19 @@ ${r}`);
295
295
  a("selection", []), a("gameActive", !0), a("appMode", "presentation");
296
296
  }), W();
297
297
  try {
298
- s(Z());
298
+ s(Y());
299
299
  } catch (t) {
300
300
  return m(`Game error: ${t?.message || t}`, "error"), p(), !1;
301
301
  }
302
302
  window.addEventListener("keydown", K, !0), window.addEventListener("keyup", O, !0), k = performance.now(), M = k;
303
303
  const n = (t) => {
304
304
  y = requestAnimationFrame(n);
305
- const i = Math.min(0.05, (t - M) / 1e3);
305
+ const r = Math.min(0.05, (t - M) / 1e3);
306
306
  if (M = t, T) return;
307
307
  const d = (t - k) / 1e3;
308
308
  try {
309
309
  b(() => {
310
- for (const l of w) l(i, d);
310
+ for (const l of w) l(r, d);
311
311
  });
312
312
  } catch (l) {
313
313
  console.error("[arcade] tick error:", l), m(`Game error: ${l?.message || l}`, "error"), p();
@@ -316,7 +316,7 @@ ${r}`);
316
316
  return y = requestAnimationFrame(n), !0;
317
317
  }
318
318
  function p() {
319
- if (y !== null && (cancelAnimationFrame(y), y = null), window.removeEventListener("keydown", K, !0), window.removeEventListener("keyup", O, !0), import("./index-vjDu6_KH.js").then((e) => e.ar).then((e) => e.stopMusic()), h.clear(), w = [], x.length = 0, v.length = 0, g) {
319
+ if (y !== null && (cancelAnimationFrame(y), y = null), window.removeEventListener("keydown", K, !0), window.removeEventListener("keyup", O, !0), import("./index-D1ifHWAi.js").then((e) => e.au).then((e) => e.stopMusic()), h.clear(), w = [], x.length = 0, v.length = 0, g) {
320
320
  const e = g;
321
321
  g = null, b(() => {
322
322
  a("elements", JSON.parse(e.elements)), a("selection", e.selection), a("activeSlideIndex", e.activeSlideIndex), a("appMode", e.appMode), a("gameActive", !1);
@@ -327,7 +327,7 @@ function p() {
327
327
  }
328
328
  function se() {
329
329
  const e = F;
330
- p(), e && _(e);
330
+ p(), e && Z(e);
331
331
  }
332
332
  export {
333
333
  A as Sprite,
@@ -335,12 +335,12 @@ export {
335
335
  te as gamePointerDown,
336
336
  ee as gamePointerMove,
337
337
  ne as gamePointerUp,
338
- ie as isGameRunning,
339
- re as onGameUiSignal,
340
- q as padPress,
341
- Q as padRelease,
338
+ re as isGameRunning,
339
+ ie as onGameUiSignal,
340
+ Q as padPress,
341
+ q as padRelease,
342
342
  $ as padVisibleOverride,
343
343
  se as restartGame,
344
- _ as startGame,
344
+ Z as startGame,
345
345
  p as stopGame
346
346
  };
@@ -1,10 +1,11 @@
1
- import { r as bt, g as Et } from "./PrioritizedList-TjDg4i-s.js";
2
- import { r as Dt } from "./mathjax-CnUrFnFS.js";
1
+ import { g as Lt } from "./_commonjsHelpers-DaMA6jEr.js";
2
+ import { r as Et } from "./mathjax-BPYOiwki.js";
3
3
  import { r as it } from "./Options-BStFr0zv.js";
4
- import { r as Pt } from "./InputJax-DQpRzuU2.js";
5
- import { a as Ht, c as kt, d as It, f as qt, h as Nt, e as Rt, b as Ct, k as Ft, l as Jt, m as Bt, g as $t, i as Xt, j as zt, n as Wt, w as Yt, v as Kt, o as Ut, p as Gt, q as Qt, s as Vt, t as Zt, u as te, y as ee, x as re, z as ne, r as ie } from "./TeXAtom-COgv6VHH.js";
4
+ import { r as Dt } from "./InputJax-BnvzjXPP.js";
5
+ import { r as Pt, a as Ht, b as kt, c as It, d as qt, e as Nt, f as Rt, g as Ct, h as Ft, i as Jt, j as Bt, k as $t, l as Xt, m as zt, n as Wt, o as Yt, p as Kt, q as Ut, s as Gt, t as Qt, u as Vt, v as Zt, w as te, x as ee, y as re, z as ne } from "./TeXAtom-i5HZ7jSY.js";
6
6
  import { r as ot } from "./MathItem-DD5NNBjZ.js";
7
- import { d as oe, a as rt, f as jt, c as ae } from "./Factory-B4kWsy6c.js";
7
+ import { c as ie, b as rt, d as jt, e as oe } from "./Factory-hCmMrRZd.js";
8
+ import { r as ae } from "./PrioritizedList-CopFulOu.js";
8
9
  function se(f, O) {
9
10
  for (var w = 0; w < O.length; w++) {
10
11
  const h = O[w];
@@ -180,8 +181,8 @@ function ue() {
180
181
  var x = _.value;
181
182
  c.set(x, !0);
182
183
  }
183
- } catch (b) {
184
- e = { error: b };
184
+ } catch (L) {
185
+ e = { error: L };
185
186
  } finally {
186
187
  try {
187
188
  _ && !_.done && (i = p.return) && i.call(p);
@@ -319,7 +320,7 @@ function le() {
319
320
  };
320
321
  })();
321
322
  Object.defineProperty(U, "__esModule", { value: !0 }), U.AbstractNodeFactory = void 0;
322
- var O = oe(), w = (function(h) {
323
+ var O = ie(), w = (function(h) {
323
324
  f(o, h);
324
325
  function o() {
325
326
  return h !== null && h.apply(this, arguments) || this;
@@ -568,8 +569,8 @@ function de() {
568
569
  ht = 1;
569
570
  var f;
570
571
  Object.defineProperty(et, "__esModule", { value: !0 }), et.MML = void 0;
571
- var O = rt(), w = Ht(), h = kt(), o = It(), n = ae(), t = qt(), r = Nt(), e = Rt(), i = Ct(), y = Ft(), u = Jt(), c = Bt(), p = ce(), _ = $t(), x = Xt(), d = zt(), T = Wt(), b = Yt(), v = Kt(), a = Ut(), l = Gt(), s = Qt(), m = Vt(), M = Zt(), g = te(), j = fe(), S = pe(), A = ee(), L = re(), D = ne(), E = he();
572
- return et.MML = (f = {}, f[w.MmlMath.prototype.kind] = w.MmlMath, f[h.MmlMi.prototype.kind] = h.MmlMi, f[o.MmlMn.prototype.kind] = o.MmlMn, f[n.MmlMo.prototype.kind] = n.MmlMo, f[t.MmlMtext.prototype.kind] = t.MmlMtext, f[r.MmlMspace.prototype.kind] = r.MmlMspace, f[e.MmlMs.prototype.kind] = e.MmlMs, f[i.MmlMrow.prototype.kind] = i.MmlMrow, f[i.MmlInferredMrow.prototype.kind] = i.MmlInferredMrow, f[y.MmlMfrac.prototype.kind] = y.MmlMfrac, f[u.MmlMsqrt.prototype.kind] = u.MmlMsqrt, f[c.MmlMroot.prototype.kind] = c.MmlMroot, f[p.MmlMstyle.prototype.kind] = p.MmlMstyle, f[_.MmlMerror.prototype.kind] = _.MmlMerror, f[x.MmlMpadded.prototype.kind] = x.MmlMpadded, f[d.MmlMphantom.prototype.kind] = d.MmlMphantom, f[T.MmlMfenced.prototype.kind] = T.MmlMfenced, f[b.MmlMenclose.prototype.kind] = b.MmlMenclose, f[v.MmlMaction.prototype.kind] = v.MmlMaction, f[a.MmlMsub.prototype.kind] = a.MmlMsub, f[a.MmlMsup.prototype.kind] = a.MmlMsup, f[a.MmlMsubsup.prototype.kind] = a.MmlMsubsup, f[l.MmlMunder.prototype.kind] = l.MmlMunder, f[l.MmlMover.prototype.kind] = l.MmlMover, f[l.MmlMunderover.prototype.kind] = l.MmlMunderover, f[s.MmlMmultiscripts.prototype.kind] = s.MmlMmultiscripts, f[s.MmlMprescripts.prototype.kind] = s.MmlMprescripts, f[s.MmlNone.prototype.kind] = s.MmlNone, f[m.MmlMtable.prototype.kind] = m.MmlMtable, f[M.MmlMlabeledtr.prototype.kind] = M.MmlMlabeledtr, f[M.MmlMtr.prototype.kind] = M.MmlMtr, f[g.MmlMtd.prototype.kind] = g.MmlMtd, f[j.MmlMaligngroup.prototype.kind] = j.MmlMaligngroup, f[S.MmlMalignmark.prototype.kind] = S.MmlMalignmark, f[A.MmlMglyph.prototype.kind] = A.MmlMglyph, f[L.MmlSemantics.prototype.kind] = L.MmlSemantics, f[L.MmlAnnotation.prototype.kind] = L.MmlAnnotation, f[L.MmlAnnotationXML.prototype.kind] = L.MmlAnnotationXML, f[D.TeXAtom.prototype.kind] = D.TeXAtom, f[E.MathChoice.prototype.kind] = E.MathChoice, f[O.TextNode.prototype.kind] = O.TextNode, f[O.XMLNode.prototype.kind] = O.XMLNode, f), et;
572
+ var O = rt(), w = Pt(), h = Ht(), o = kt(), n = oe(), t = It(), r = qt(), e = Nt(), i = Rt(), y = Ct(), u = Ft(), c = Jt(), p = ce(), _ = Bt(), x = $t(), d = Xt(), T = zt(), L = Wt(), v = Yt(), a = Kt(), l = Ut(), s = Gt(), m = Qt(), M = Vt(), g = Zt(), j = fe(), S = pe(), A = te(), b = ee(), D = re(), E = he();
573
+ return et.MML = (f = {}, f[w.MmlMath.prototype.kind] = w.MmlMath, f[h.MmlMi.prototype.kind] = h.MmlMi, f[o.MmlMn.prototype.kind] = o.MmlMn, f[n.MmlMo.prototype.kind] = n.MmlMo, f[t.MmlMtext.prototype.kind] = t.MmlMtext, f[r.MmlMspace.prototype.kind] = r.MmlMspace, f[e.MmlMs.prototype.kind] = e.MmlMs, f[i.MmlMrow.prototype.kind] = i.MmlMrow, f[i.MmlInferredMrow.prototype.kind] = i.MmlInferredMrow, f[y.MmlMfrac.prototype.kind] = y.MmlMfrac, f[u.MmlMsqrt.prototype.kind] = u.MmlMsqrt, f[c.MmlMroot.prototype.kind] = c.MmlMroot, f[p.MmlMstyle.prototype.kind] = p.MmlMstyle, f[_.MmlMerror.prototype.kind] = _.MmlMerror, f[x.MmlMpadded.prototype.kind] = x.MmlMpadded, f[d.MmlMphantom.prototype.kind] = d.MmlMphantom, f[T.MmlMfenced.prototype.kind] = T.MmlMfenced, f[L.MmlMenclose.prototype.kind] = L.MmlMenclose, f[v.MmlMaction.prototype.kind] = v.MmlMaction, f[a.MmlMsub.prototype.kind] = a.MmlMsub, f[a.MmlMsup.prototype.kind] = a.MmlMsup, f[a.MmlMsubsup.prototype.kind] = a.MmlMsubsup, f[l.MmlMunder.prototype.kind] = l.MmlMunder, f[l.MmlMover.prototype.kind] = l.MmlMover, f[l.MmlMunderover.prototype.kind] = l.MmlMunderover, f[s.MmlMmultiscripts.prototype.kind] = s.MmlMmultiscripts, f[s.MmlMprescripts.prototype.kind] = s.MmlMprescripts, f[s.MmlNone.prototype.kind] = s.MmlNone, f[m.MmlMtable.prototype.kind] = m.MmlMtable, f[M.MmlMlabeledtr.prototype.kind] = M.MmlMlabeledtr, f[M.MmlMtr.prototype.kind] = M.MmlMtr, f[g.MmlMtd.prototype.kind] = g.MmlMtd, f[j.MmlMaligngroup.prototype.kind] = j.MmlMaligngroup, f[S.MmlMalignmark.prototype.kind] = S.MmlMalignmark, f[A.MmlMglyph.prototype.kind] = A.MmlMglyph, f[b.MmlSemantics.prototype.kind] = b.MmlSemantics, f[b.MmlAnnotation.prototype.kind] = b.MmlAnnotation, f[b.MmlAnnotationXML.prototype.kind] = b.MmlAnnotationXML, f[D.TeXAtom.prototype.kind] = D.TeXAtom, f[E.MathChoice.prototype.kind] = E.MathChoice, f[O.TextNode.prototype.kind] = O.TextNode, f[O.XMLNode.prototype.kind] = O.XMLNode, f), et;
573
574
  }
574
575
  var dt;
575
576
  function ye() {
@@ -769,7 +770,7 @@ function Tt() {
769
770
  return v.concat(M || Array.prototype.slice.call(a));
770
771
  };
771
772
  Object.defineProperty(f, "__esModule", { value: !0 }), f.AbstractMathDocument = f.resetAllOptions = f.resetOptions = f.RenderList = void 0;
772
- var n = it(), t = Pt(), r = ie(), e = St(), i = ot(), y = ye(), u = ve(), c = bt(), p = (function(v) {
773
+ var n = it(), t = Dt(), r = ne(), e = St(), i = ot(), y = ye(), u = ve(), c = ae(), p = (function(v) {
773
774
  O(a, v);
774
775
  function a() {
775
776
  return v !== null && v.apply(this, arguments) || this;
@@ -778,8 +779,8 @@ function Tt() {
778
779
  var s, m, M = new this();
779
780
  try {
780
781
  for (var g = w(Object.keys(l)), j = g.next(); !j.done; j = g.next()) {
781
- var S = j.value, A = h(this.action(S, l[S]), 2), L = A[0], D = A[1];
782
- D && M.add(L, D);
782
+ var S = j.value, A = h(this.action(S, l[S]), 2), b = A[0], D = A[1];
783
+ D && M.add(b, D);
783
784
  }
784
785
  } catch (E) {
785
786
  s = { error: E };
@@ -792,19 +793,19 @@ function Tt() {
792
793
  }
793
794
  return M;
794
795
  }, a.action = function(l, s) {
795
- var m, M, g, j, S, A, L = !0, D = s[0];
796
+ var m, M, g, j, S, A, b = !0, D = s[0];
796
797
  if (s.length === 1 || typeof s[1] == "boolean")
797
- s.length === 2 && (L = s[1]), m = h(this.methodActions(l), 2), S = m[0], A = m[1];
798
+ s.length === 2 && (b = s[1]), m = h(this.methodActions(l), 2), S = m[0], A = m[1];
798
799
  else if (typeof s[1] == "string")
799
800
  if (typeof s[2] == "string") {
800
- s.length === 4 && (L = s[3]);
801
+ s.length === 4 && (b = s[3]);
801
802
  var E = h(s.slice(1), 2), k = E[0], P = E[1];
802
803
  M = h(this.methodActions(k, P), 2), S = M[0], A = M[1];
803
804
  } else
804
- s.length === 3 && (L = s[2]), g = h(this.methodActions(s[1]), 2), S = g[0], A = g[1];
805
+ s.length === 3 && (b = s[2]), g = h(this.methodActions(s[1]), 2), S = g[0], A = g[1];
805
806
  else
806
- s.length === 4 && (L = s[3]), j = h(s.slice(1), 2), S = j[0], A = j[1];
807
- return [{ id: l, renderDoc: S, renderMath: A, convert: L }, D];
807
+ s.length === 4 && (b = s[3]), j = h(s.slice(1), 2), S = j[0], A = j[1];
808
+ return [{ id: l, renderDoc: S, renderMath: A, convert: b }, D];
808
809
  }, a.methodActions = function(l, s) {
809
810
  return s === void 0 && (s = l), [
810
811
  function(m) {
@@ -841,8 +842,8 @@ function Tt() {
841
842
  if (A.priority >= m && A.item.renderMath(l, s))
842
843
  return;
843
844
  }
844
- } catch (L) {
845
- M = { error: L };
845
+ } catch (b) {
846
+ M = { error: b };
846
847
  } finally {
847
848
  try {
848
849
  S && !S.done && (g = j.return) && g.call(j);
@@ -859,8 +860,8 @@ function Tt() {
859
860
  if (A.priority > m || A.item.convert && A.item.renderMath(l, s))
860
861
  return;
861
862
  }
862
- } catch (L) {
863
- M = { error: L };
863
+ } catch (b) {
864
+ M = { error: b };
864
865
  } finally {
865
866
  try {
866
867
  S && !S.done && (g = j.return) && g.call(j);
@@ -929,7 +930,7 @@ function Tt() {
929
930
  return v !== null && v.apply(this, arguments) || this;
930
931
  }
931
932
  return a;
932
- })(i.AbstractMathItem), b = (function() {
933
+ })(i.AbstractMathItem), L = (function() {
933
934
  function v(a, l, s) {
934
935
  var m = this, M = this.constructor;
935
936
  this.document = a, this.options = (0, n.userOptions)((0, n.defaultOptions)({}, M.OPTIONS), s), this.math = new (this.options.MathList || d)(), this.renderActions = p.create(this.options.renderActions), this.processed = new v.ProcessBits(), this.outputJax = this.options.OutputJax || new x();
@@ -972,12 +973,12 @@ function Tt() {
972
973
  lineWidth: 1e6,
973
974
  scale: 1,
974
975
  family: ""
975
- }, l), m = s.format, M = s.display, g = s.end, j = s.ex, S = s.em, A = s.containerWidth, L = s.lineWidth, D = s.scale, E = s.family;
976
+ }, l), m = s.format, M = s.display, g = s.end, j = s.ex, S = s.em, A = s.containerWidth, b = s.lineWidth, D = s.scale, E = s.family;
976
977
  A === null && (A = 80 * j);
977
978
  var k = this.inputJax.reduce(function(q, C) {
978
979
  return C.name === m ? C : q;
979
980
  }, null), P = new this.options.MathItem(a, k, M);
980
- return P.start.node = this.adaptor.body(this.document), P.setMetrics(S, j, A, L, D), this.outputJax.options.mtextInheritFont && (P.outputData.mtextFamily = E), this.outputJax.options.merrorInheritFont && (P.outputData.merrorFamily = E), P.convert(this, g), P.typesetRoot || P.root;
981
+ return P.start.node = this.adaptor.body(this.document), P.setMetrics(S, j, A, b, D), this.outputJax.options.mtextInheritFont && (P.outputData.mtextFamily = E), this.outputJax.options.merrorInheritFont && (P.outputData.merrorFamily = E), P.convert(this, g), P.typesetRoot || P.root;
981
982
  }, v.prototype.findMath = function(a) {
982
983
  return this.processed.set("findMath"), this;
983
984
  }, v.prototype.compile = function() {
@@ -999,15 +1000,15 @@ function Tt() {
999
1000
  }
1000
1001
  }
1001
1002
  try {
1002
- for (var A = w(M), L = A.next(); !L.done; L = A.next()) {
1003
- var S = L.value, D = S.inputData.recompile;
1003
+ for (var A = w(M), b = A.next(); !b.done; b = A.next()) {
1004
+ var S = b.value, D = S.inputData.recompile;
1004
1005
  S.state(D.state), S.inputData.recompile = D, this.compileMath(S);
1005
1006
  }
1006
1007
  } catch (E) {
1007
1008
  s = { error: E };
1008
1009
  } finally {
1009
1010
  try {
1010
- L && !L.done && (m = A.return) && m.call(A);
1011
+ b && !b.done && (m = A.return) && m.call(A);
1011
1012
  } finally {
1012
1013
  if (s) throw s.error;
1013
1014
  }
@@ -1139,8 +1140,8 @@ function Tt() {
1139
1140
  Array.isArray(a) || (a = [a]);
1140
1141
  var g = this.adaptor, j = [], S = g.getElements(a, this.document);
1141
1142
  try {
1142
- t: for (var A = w(this.math), L = A.next(); !L.done; L = A.next()) {
1143
- var D = L.value;
1143
+ t: for (var A = w(this.math), b = A.next(); !b.done; b = A.next()) {
1144
+ var D = b.value;
1144
1145
  try {
1145
1146
  for (var E = (m = void 0, w(S)), k = E.next(); !k.done; k = E.next()) {
1146
1147
  var P = k.value;
@@ -1163,7 +1164,7 @@ function Tt() {
1163
1164
  l = { error: q };
1164
1165
  } finally {
1165
1166
  try {
1166
- L && !L.done && (s = A.return) && s.call(A);
1167
+ b && !b.done && (s = A.return) && s.call(A);
1167
1168
  } finally {
1168
1169
  if (l) throw l.error;
1169
1170
  }
@@ -1190,7 +1191,7 @@ function Tt() {
1190
1191
  })
1191
1192
  }, v.ProcessBits = (0, u.BitFieldClass)("findMath", "compile", "getMetrics", "typeset", "updateDocument"), v;
1192
1193
  })();
1193
- f.AbstractMathDocument = b;
1194
+ f.AbstractMathDocument = L;
1194
1195
  })(N)), N;
1195
1196
  }
1196
1197
  var mt;
@@ -1449,8 +1450,8 @@ function xe() {
1449
1450
  var _ = p.call(u), x, d = [], T;
1450
1451
  try {
1451
1452
  for (; (c === void 0 || c-- > 0) && !(x = _.next()).done; ) d.push(x.value);
1452
- } catch (b) {
1453
- T = { error: b };
1453
+ } catch (L) {
1454
+ T = { error: L };
1454
1455
  } finally {
1455
1456
  try {
1456
1457
  x && !x.done && (p = _.return) && p.call(_);
@@ -1473,11 +1474,11 @@ function xe() {
1473
1474
  var o = Tt(), n = it(), t = Me(), r = _e(), e = ge(), i = ot(), y = (function(u) {
1474
1475
  f(c, u);
1475
1476
  function c(p, _, x) {
1476
- var d = this, T = w((0, n.separateOptions)(x, e.HTMLDomStrings.OPTIONS), 2), b = T[0], v = T[1];
1477
- return d = u.call(this, p, _, b) || this, d.domStrings = d.options.DomStrings || new e.HTMLDomStrings(v), d.domStrings.adaptor = _, d.styles = [], d;
1477
+ var d = this, T = w((0, n.separateOptions)(x, e.HTMLDomStrings.OPTIONS), 2), L = T[0], v = T[1];
1478
+ return d = u.call(this, p, _, L) || this, d.domStrings = d.options.DomStrings || new e.HTMLDomStrings(v), d.domStrings.adaptor = _, d.styles = [], d;
1478
1479
  }
1479
1480
  return c.prototype.findPosition = function(p, _, x, d) {
1480
- var T, b, v = this.adaptor;
1481
+ var T, L, v = this.adaptor;
1481
1482
  try {
1482
1483
  for (var a = h(d[p]), l = a.next(); !l.done; l = a.next()) {
1483
1484
  var s = l.value, m = w(s, 2), M = m[0], g = m[1];
@@ -1489,27 +1490,27 @@ function xe() {
1489
1490
  T = { error: j };
1490
1491
  } finally {
1491
1492
  try {
1492
- l && !l.done && (b = a.return) && b.call(a);
1493
+ l && !l.done && (L = a.return) && L.call(a);
1493
1494
  } finally {
1494
1495
  if (T) throw T.error;
1495
1496
  }
1496
1497
  }
1497
1498
  return { node: null, n: 0, delim: x };
1498
1499
  }, c.prototype.mathItem = function(p, _, x) {
1499
- var d = p.math, T = this.findPosition(p.n, p.start.n, p.open, x), b = this.findPosition(p.n, p.end.n, p.close, x);
1500
- return new this.options.MathItem(d, _, p.display, T, b);
1500
+ var d = p.math, T = this.findPosition(p.n, p.start.n, p.open, x), L = this.findPosition(p.n, p.end.n, p.close, x);
1501
+ return new this.options.MathItem(d, _, p.display, T, L);
1501
1502
  }, c.prototype.findMath = function(p) {
1502
- var _, x, d, T, b, v, a, l, s;
1503
+ var _, x, d, T, L, v, a, l, s;
1503
1504
  if (!this.processed.isSet("findMath")) {
1504
1505
  this.adaptor.document = this.document, p = (0, n.userOptions)({ elements: this.options.elements || [this.adaptor.body(this.document)] }, p);
1505
1506
  try {
1506
1507
  for (var m = h(this.adaptor.getElements(p.elements, this.document)), M = m.next(); !M.done; M = m.next()) {
1507
1508
  var g = M.value, j = w([null, null], 2), S = j[0], A = j[1];
1508
1509
  try {
1509
- for (var L = (d = void 0, h(this.inputJax)), D = L.next(); !D.done; D = L.next()) {
1510
+ for (var b = (d = void 0, h(this.inputJax)), D = b.next(); !D.done; D = b.next()) {
1510
1511
  var E = D.value, k = new this.options.MathList();
1511
1512
  if (E.processStrings) {
1512
- S === null && (b = w(this.domStrings.find(g), 2), S = b[0], A = b[1]);
1513
+ S === null && (L = w(this.domStrings.find(g), 2), S = L[0], A = L[1]);
1513
1514
  try {
1514
1515
  for (var P = (v = void 0, h(E.findMath(S))), q = P.next(); !q.done; q = P.next()) {
1515
1516
  var C = q.value;
@@ -1527,8 +1528,8 @@ function xe() {
1527
1528
  } else
1528
1529
  try {
1529
1530
  for (var nt = (l = void 0, h(E.findMath(g))), Z = nt.next(); !Z.done; Z = nt.next()) {
1530
- var C = Z.value, Lt = new this.options.MathItem(C.math, E, C.display, C.start, C.end);
1531
- k.push(Lt);
1531
+ var C = Z.value, bt = new this.options.MathItem(C.math, E, C.display, C.start, C.end);
1532
+ k.push(bt);
1532
1533
  }
1533
1534
  } catch (X) {
1534
1535
  l = { error: X };
@@ -1545,7 +1546,7 @@ function xe() {
1545
1546
  d = { error: X };
1546
1547
  } finally {
1547
1548
  try {
1548
- D && !D.done && (T = L.return) && T.call(L);
1549
+ D && !D.done && (T = b.return) && T.call(b);
1549
1550
  } finally {
1550
1551
  if (d) throw d.error;
1551
1552
  }
@@ -1578,8 +1579,8 @@ function xe() {
1578
1579
  var x, d;
1579
1580
  if (_)
1580
1581
  try {
1581
- for (var T = h(this.adaptor.tags(p, "style")), b = T.next(); !b.done; b = T.next()) {
1582
- var v = b.value;
1582
+ for (var T = h(this.adaptor.tags(p, "style")), L = T.next(); !L.done; L = T.next()) {
1583
+ var v = L.value;
1583
1584
  if (this.adaptor.getAttribute(v, "id") === _)
1584
1585
  return v;
1585
1586
  }
@@ -1587,7 +1588,7 @@ function xe() {
1587
1588
  x = { error: a };
1588
1589
  } finally {
1589
1590
  try {
1590
- b && !b.done && (d = T.return) && d.call(T);
1591
+ L && !L.done && (d = T.return) && d.call(T);
1591
1592
  } finally {
1592
1593
  if (x) throw x.error;
1593
1594
  }
@@ -1598,8 +1599,8 @@ function xe() {
1598
1599
  if (p === void 0 && (p = !1), this.processed.isSet("updateDocument"))
1599
1600
  try {
1600
1601
  for (var d = h(this.math), T = d.next(); !T.done; T = d.next()) {
1601
- var b = T.value;
1602
- b.state() >= i.STATE.INSERTED && b.state(i.STATE.TYPESET, p);
1602
+ var L = T.value;
1603
+ L.state() >= i.STATE.INSERTED && L.state(i.STATE.TYPESET, p);
1603
1604
  }
1604
1605
  } catch (v) {
1605
1606
  _ = { error: v };
@@ -1677,7 +1678,7 @@ var wt;
1677
1678
  function we() {
1678
1679
  if (wt) return tt;
1679
1680
  wt = 1, Object.defineProperty(tt, "__esModule", { value: !0 }), tt.RegisterHTMLHandler = void 0;
1680
- var f = Dt(), O = Oe();
1681
+ var f = Et(), O = Oe();
1681
1682
  function w(h) {
1682
1683
  var o = new O.HTMLHandler(h);
1683
1684
  return f.mathjax.handlers.register(o), o;
@@ -1685,10 +1686,10 @@ function we() {
1685
1686
  return tt.RegisterHTMLHandler = w, tt;
1686
1687
  }
1687
1688
  var At = we();
1688
- const je = /* @__PURE__ */ Et(At), Pe = /* @__PURE__ */ se({
1689
+ const je = /* @__PURE__ */ Lt(At), He = /* @__PURE__ */ se({
1689
1690
  __proto__: null,
1690
1691
  default: je
1691
1692
  }, [At]);
1692
1693
  export {
1693
- Pe as h
1694
+ He as h
1694
1695
  };