@algorisys/yappydraw 0.8.253

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 (43) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +45 -0
  3. package/chunks/AllPackages-DNX4gUvL.js +6879 -0
  4. package/chunks/BaseConfiguration-iE_YypNt.js +4401 -0
  5. package/chunks/Entities-XwxJEcR3.js +467 -0
  6. package/chunks/Factory--zguTNZ7.js +2768 -0
  7. package/chunks/InputJax-BYq2tqUz.js +42 -0
  8. package/chunks/MathItem-DD5NNBjZ.js +76 -0
  9. package/chunks/Options-BStFr0zv.js +199 -0
  10. package/chunks/PrioritizedList-TjDg4i-s.js +39 -0
  11. package/chunks/Styles-DdTYCumM.js +397 -0
  12. package/chunks/TeXAtom-Bp5xoo7F.js +2175 -0
  13. package/chunks/ai-providers-CycU8sO1.js +229 -0
  14. package/chunks/canva-ai-BREIRXSl.js +285 -0
  15. package/chunks/design-generator-C89SKTqv.js +149 -0
  16. package/chunks/drawing-engine-DLFI-cNg.js +903 -0
  17. package/chunks/drawings-store-C-PoHakg.js +109 -0
  18. package/chunks/ds-operations-D5B9Z5vO.js +253 -0
  19. package/chunks/export-game-DOlM1w0F.js +104 -0
  20. package/chunks/game-runtime-Hn9umSvi.js +346 -0
  21. package/chunks/gifenc.esm-48qFK9lH.js +278 -0
  22. package/chunks/html-DxnOvKy4.js +1694 -0
  23. package/chunks/image-utils-CJQBaGoQ.js +37 -0
  24. package/chunks/index-Bm3Inzn8.js +62744 -0
  25. package/chunks/lengths-DNFHULBn.js +70 -0
  26. package/chunks/liteAdaptor-BZby1Qz2.js +919 -0
  27. package/chunks/lucide-solid-D_6t_rbY.js +35452 -0
  28. package/chunks/markdown-to-slides-_1GIcD8M.js +96 -0
  29. package/chunks/mathjax-CnUrFnFS.js +117 -0
  30. package/chunks/mathjax-D6cR72fZ.js +26 -0
  31. package/chunks/morph-animator-7qX2s9j_.js +25 -0
  32. package/chunks/onboarding-tour-CthiVc3W.js +192 -0
  33. package/chunks/rocket-settings-CU8w9S9I.js +100 -0
  34. package/chunks/search-CnWoMV6A.js +384 -0
  35. package/chunks/slide-generator-BG0Oacui.js +553 -0
  36. package/chunks/svg-BvVc02XL.js +12498 -0
  37. package/chunks/tex-Cfi4Kfun.js +442 -0
  38. package/chunks/tinyfly-engine-Wfa50sVI.js +1804 -0
  39. package/chunks/turntable-ai-Bfq-oSsD.js +120 -0
  40. package/chunks/yappy-NspTXSPk.css +1 -0
  41. package/package.json +21 -0
  42. package/yappy.d.ts +34 -0
  43. package/yappy.js +9 -0
@@ -0,0 +1,2175 @@
1
+ import { r as wt } from "./Options-BStFr0zv.js";
2
+ import { d as Nt, a as g, r as xt, f as Pt, c as At } from "./Factory--zguTNZ7.js";
3
+ var V = {}, Y;
4
+ function Et() {
5
+ if (Y) return V;
6
+ Y = 1, Object.defineProperty(V, "__esModule", { value: !0 }), V.AbstractOutputJax = void 0;
7
+ var y = wt(), s = Nt(), c = (function() {
8
+ function f(i) {
9
+ i === void 0 && (i = {}), this.adaptor = null;
10
+ var n = this.constructor;
11
+ this.options = (0, y.userOptions)((0, y.defaultOptions)({}, n.OPTIONS), i), this.postFilters = new s.FunctionList();
12
+ }
13
+ return Object.defineProperty(f.prototype, "name", {
14
+ get: function() {
15
+ return this.constructor.NAME;
16
+ },
17
+ enumerable: !1,
18
+ configurable: !0
19
+ }), f.prototype.setAdaptor = function(i) {
20
+ this.adaptor = i;
21
+ }, f.prototype.initialize = function() {
22
+ }, f.prototype.reset = function() {
23
+ }, f.prototype.getMetrics = function(i) {
24
+ }, f.prototype.styleSheet = function(i) {
25
+ return null;
26
+ }, f.prototype.pageElements = function(i) {
27
+ return null;
28
+ }, f.prototype.executeFilters = function(i, n, t, e) {
29
+ var r = { math: n, document: t, data: e };
30
+ return i.execute(r), r.data;
31
+ }, f.NAME = "generic", f.OPTIONS = {}, f;
32
+ })();
33
+ return V.AbstractOutputJax = c, V;
34
+ }
35
+ var C = {}, Z;
36
+ function kt() {
37
+ if (Z) return C;
38
+ Z = 1;
39
+ var y = C && C.__extends || /* @__PURE__ */ (function() {
40
+ var i = function(n, t) {
41
+ return i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
42
+ e.__proto__ = r;
43
+ } || function(e, r) {
44
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
45
+ }, i(n, t);
46
+ };
47
+ return function(n, t) {
48
+ if (typeof t != "function" && t !== null)
49
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
50
+ i(n, t);
51
+ function e() {
52
+ this.constructor = n;
53
+ }
54
+ n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
55
+ };
56
+ })(), s = C && C.__assign || function() {
57
+ return s = Object.assign || function(i) {
58
+ for (var n, t = 1, e = arguments.length; t < e; t++) {
59
+ n = arguments[t];
60
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (i[r] = n[r]);
61
+ }
62
+ return i;
63
+ }, s.apply(this, arguments);
64
+ };
65
+ Object.defineProperty(C, "__esModule", { value: !0 }), C.MmlMath = void 0;
66
+ var c = g(), f = (function(i) {
67
+ y(n, i);
68
+ function n() {
69
+ return i !== null && i.apply(this, arguments) || this;
70
+ }
71
+ return Object.defineProperty(n.prototype, "kind", {
72
+ get: function() {
73
+ return "math";
74
+ },
75
+ enumerable: !1,
76
+ configurable: !0
77
+ }), Object.defineProperty(n.prototype, "linebreakContainer", {
78
+ get: function() {
79
+ return !0;
80
+ },
81
+ enumerable: !1,
82
+ configurable: !0
83
+ }), n.prototype.setChildInheritedAttributes = function(t, e, r, o) {
84
+ this.attributes.get("mode") === "display" && this.attributes.setInherited("display", "block"), t = this.addInheritedAttributes(t, this.attributes.getAllAttributes()), e = !!this.attributes.get("displaystyle") || !this.attributes.get("displaystyle") && this.attributes.get("display") === "block", this.attributes.setInherited("displaystyle", e), r = this.attributes.get("scriptlevel") || this.constructor.defaults.scriptlevel, i.prototype.setChildInheritedAttributes.call(this, t, e, r, o);
85
+ }, n.defaults = s(s({}, c.AbstractMmlLayoutNode.defaults), { mathvariant: "normal", mathsize: "normal", mathcolor: "", mathbackground: "transparent", dir: "ltr", scriptlevel: 0, displaystyle: !1, display: "inline", maxwidth: "", overflow: "linebreak", altimg: "", "altimg-width": "", "altimg-height": "", "altimg-valign": "", alttext: "", cdgroup: "", scriptsizemultiplier: 1 / Math.sqrt(2), scriptminsize: "8px", infixlinebreakstyle: "before", lineleading: "1ex", linebreakmultchar: "⁢", indentshift: "auto", indentalign: "auto", indenttarget: "", indentalignfirst: "indentalign", indentshiftfirst: "indentshift", indentalignlast: "indentalign", indentshiftlast: "indentshift" }), n;
86
+ })(c.AbstractMmlLayoutNode);
87
+ return C.MmlMath = f, C;
88
+ }
89
+ var M = {}, tt;
90
+ function qt() {
91
+ if (tt) return M;
92
+ tt = 1;
93
+ var y = M && M.__extends || /* @__PURE__ */ (function() {
94
+ var t = function(e, r) {
95
+ return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(o, a) {
96
+ o.__proto__ = a;
97
+ } || function(o, a) {
98
+ for (var u in a) Object.prototype.hasOwnProperty.call(a, u) && (o[u] = a[u]);
99
+ }, t(e, r);
100
+ };
101
+ return function(e, r) {
102
+ if (typeof r != "function" && r !== null)
103
+ throw new TypeError("Class extends value " + String(r) + " is not a constructor or null");
104
+ t(e, r);
105
+ function o() {
106
+ this.constructor = e;
107
+ }
108
+ e.prototype = r === null ? Object.create(r) : (o.prototype = r.prototype, new o());
109
+ };
110
+ })(), s = M && M.__assign || function() {
111
+ return s = Object.assign || function(t) {
112
+ for (var e, r = 1, o = arguments.length; r < o; r++) {
113
+ e = arguments[r];
114
+ for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && (t[a] = e[a]);
115
+ }
116
+ return t;
117
+ }, s.apply(this, arguments);
118
+ }, c = M && M.__values || function(t) {
119
+ var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], o = 0;
120
+ if (r) return r.call(t);
121
+ if (t && typeof t.length == "number") return {
122
+ next: function() {
123
+ return t && o >= t.length && (t = void 0), { value: t && t[o++], done: !t };
124
+ }
125
+ };
126
+ throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
127
+ };
128
+ Object.defineProperty(M, "__esModule", { value: !0 }), M.MmlInferredMrow = M.MmlMrow = void 0;
129
+ var f = g(), i = (function(t) {
130
+ y(e, t);
131
+ function e() {
132
+ var r = t !== null && t.apply(this, arguments) || this;
133
+ return r._core = null, r;
134
+ }
135
+ return Object.defineProperty(e.prototype, "kind", {
136
+ get: function() {
137
+ return "mrow";
138
+ },
139
+ enumerable: !1,
140
+ configurable: !0
141
+ }), Object.defineProperty(e.prototype, "isSpacelike", {
142
+ get: function() {
143
+ var r, o;
144
+ try {
145
+ for (var a = c(this.childNodes), u = a.next(); !u.done; u = a.next()) {
146
+ var l = u.value;
147
+ if (!l.isSpacelike)
148
+ return !1;
149
+ }
150
+ } catch (p) {
151
+ r = { error: p };
152
+ } finally {
153
+ try {
154
+ u && !u.done && (o = a.return) && o.call(a);
155
+ } finally {
156
+ if (r) throw r.error;
157
+ }
158
+ }
159
+ return !0;
160
+ },
161
+ enumerable: !1,
162
+ configurable: !0
163
+ }), Object.defineProperty(e.prototype, "isEmbellished", {
164
+ get: function() {
165
+ var r, o, a = !1, u = 0;
166
+ try {
167
+ for (var l = c(this.childNodes), p = l.next(); !p.done; p = l.next()) {
168
+ var d = p.value;
169
+ if (d) {
170
+ if (d.isEmbellished) {
171
+ if (a)
172
+ return !1;
173
+ a = !0, this._core = u;
174
+ } else if (!d.isSpacelike)
175
+ return !1;
176
+ }
177
+ u++;
178
+ }
179
+ } catch (h) {
180
+ r = { error: h };
181
+ } finally {
182
+ try {
183
+ p && !p.done && (o = l.return) && o.call(l);
184
+ } finally {
185
+ if (r) throw r.error;
186
+ }
187
+ }
188
+ return a;
189
+ },
190
+ enumerable: !1,
191
+ configurable: !0
192
+ }), e.prototype.core = function() {
193
+ return !this.isEmbellished || this._core == null ? this : this.childNodes[this._core];
194
+ }, e.prototype.coreMO = function() {
195
+ return !this.isEmbellished || this._core == null ? this : this.childNodes[this._core].coreMO();
196
+ }, e.prototype.nonSpaceLength = function() {
197
+ var r, o, a = 0;
198
+ try {
199
+ for (var u = c(this.childNodes), l = u.next(); !l.done; l = u.next()) {
200
+ var p = l.value;
201
+ p && !p.isSpacelike && a++;
202
+ }
203
+ } catch (d) {
204
+ r = { error: d };
205
+ } finally {
206
+ try {
207
+ l && !l.done && (o = u.return) && o.call(u);
208
+ } finally {
209
+ if (r) throw r.error;
210
+ }
211
+ }
212
+ return a;
213
+ }, e.prototype.firstNonSpace = function() {
214
+ var r, o;
215
+ try {
216
+ for (var a = c(this.childNodes), u = a.next(); !u.done; u = a.next()) {
217
+ var l = u.value;
218
+ if (l && !l.isSpacelike)
219
+ return l;
220
+ }
221
+ } catch (p) {
222
+ r = { error: p };
223
+ } finally {
224
+ try {
225
+ u && !u.done && (o = a.return) && o.call(a);
226
+ } finally {
227
+ if (r) throw r.error;
228
+ }
229
+ }
230
+ return null;
231
+ }, e.prototype.lastNonSpace = function() {
232
+ for (var r = this.childNodes.length; --r >= 0; ) {
233
+ var o = this.childNodes[r];
234
+ if (o && !o.isSpacelike)
235
+ return o;
236
+ }
237
+ return null;
238
+ }, e.prototype.setTeXclass = function(r) {
239
+ var o, a, u, l;
240
+ if (this.getProperty("open") != null || this.getProperty("close") != null) {
241
+ this.getPrevClass(r), r = null;
242
+ try {
243
+ for (var p = c(this.childNodes), d = p.next(); !d.done; d = p.next()) {
244
+ var h = d.value;
245
+ r = h.setTeXclass(r);
246
+ }
247
+ } catch (_) {
248
+ o = { error: _ };
249
+ } finally {
250
+ try {
251
+ d && !d.done && (a = p.return) && a.call(p);
252
+ } finally {
253
+ if (o) throw o.error;
254
+ }
255
+ }
256
+ this.texClass == null && (this.texClass = f.TEXCLASS.INNER);
257
+ } else {
258
+ try {
259
+ for (var m = c(this.childNodes), v = m.next(); !v.done; v = m.next()) {
260
+ var h = v.value;
261
+ r = h.setTeXclass(r);
262
+ }
263
+ } catch (_) {
264
+ u = { error: _ };
265
+ } finally {
266
+ try {
267
+ v && !v.done && (l = m.return) && l.call(m);
268
+ } finally {
269
+ if (u) throw u.error;
270
+ }
271
+ }
272
+ this.childNodes[0] && this.updateTeXclass(this.childNodes[0]);
273
+ }
274
+ return r;
275
+ }, e.defaults = s({}, f.AbstractMmlNode.defaults), e;
276
+ })(f.AbstractMmlNode);
277
+ M.MmlMrow = i;
278
+ var n = (function(t) {
279
+ y(e, t);
280
+ function e() {
281
+ return t !== null && t.apply(this, arguments) || this;
282
+ }
283
+ return Object.defineProperty(e.prototype, "kind", {
284
+ get: function() {
285
+ return "inferredMrow";
286
+ },
287
+ enumerable: !1,
288
+ configurable: !0
289
+ }), Object.defineProperty(e.prototype, "isInferred", {
290
+ get: function() {
291
+ return !0;
292
+ },
293
+ enumerable: !1,
294
+ configurable: !0
295
+ }), Object.defineProperty(e.prototype, "notParent", {
296
+ get: function() {
297
+ return !0;
298
+ },
299
+ enumerable: !1,
300
+ configurable: !0
301
+ }), e.prototype.toString = function() {
302
+ return "[" + this.childNodes.join(",") + "]";
303
+ }, e.defaults = i.defaults, e;
304
+ })(i);
305
+ return M.MmlInferredMrow = n, M;
306
+ }
307
+ var E = {}, et;
308
+ function Xt() {
309
+ if (et) return E;
310
+ et = 1;
311
+ var y = E && E.__extends || /* @__PURE__ */ (function() {
312
+ var i = function(n, t) {
313
+ return i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
314
+ e.__proto__ = r;
315
+ } || function(e, r) {
316
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
317
+ }, i(n, t);
318
+ };
319
+ return function(n, t) {
320
+ if (typeof t != "function" && t !== null)
321
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
322
+ i(n, t);
323
+ function e() {
324
+ this.constructor = n;
325
+ }
326
+ n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
327
+ };
328
+ })(), s = E && E.__assign || function() {
329
+ return s = Object.assign || function(i) {
330
+ for (var n, t = 1, e = arguments.length; t < e; t++) {
331
+ n = arguments[t];
332
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (i[r] = n[r]);
333
+ }
334
+ return i;
335
+ }, s.apply(this, arguments);
336
+ };
337
+ Object.defineProperty(E, "__esModule", { value: !0 }), E.MmlMi = void 0;
338
+ var c = g(), f = (function(i) {
339
+ y(n, i);
340
+ function n() {
341
+ var t = i !== null && i.apply(this, arguments) || this;
342
+ return t.texclass = c.TEXCLASS.ORD, t;
343
+ }
344
+ return Object.defineProperty(n.prototype, "kind", {
345
+ get: function() {
346
+ return "mi";
347
+ },
348
+ enumerable: !1,
349
+ configurable: !0
350
+ }), n.prototype.setInheritedAttributes = function(t, e, r, o) {
351
+ t === void 0 && (t = {}), e === void 0 && (e = !1), r === void 0 && (r = 0), o === void 0 && (o = !1), i.prototype.setInheritedAttributes.call(this, t, e, r, o);
352
+ var a = this.getText();
353
+ a.match(n.singleCharacter) && !t.mathvariant && this.attributes.setInherited("mathvariant", "italic");
354
+ }, n.prototype.setTeXclass = function(t) {
355
+ this.getPrevClass(t);
356
+ var e = this.getText();
357
+ return e.length > 1 && e.match(n.operatorName) && this.attributes.get("mathvariant") === "normal" && this.getProperty("autoOP") === void 0 && this.getProperty("texClass") === void 0 && (this.texClass = c.TEXCLASS.OP, this.setProperty("autoOP", !0)), this;
358
+ }, n.defaults = s({}, c.AbstractMmlTokenNode.defaults), n.operatorName = /^[a-z][a-z0-9]*$/i, n.singleCharacter = /^[\uD800-\uDBFF]?.[\u0300-\u036F\u1AB0-\u1ABE\u1DC0-\u1DFF\u20D0-\u20EF]*$/, n;
359
+ })(c.AbstractMmlTokenNode);
360
+ return E.MmlMi = f, E;
361
+ }
362
+ var k = {}, rt;
363
+ function It() {
364
+ if (rt) return k;
365
+ rt = 1;
366
+ var y = k && k.__extends || /* @__PURE__ */ (function() {
367
+ var i = function(n, t) {
368
+ return i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
369
+ e.__proto__ = r;
370
+ } || function(e, r) {
371
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
372
+ }, i(n, t);
373
+ };
374
+ return function(n, t) {
375
+ if (typeof t != "function" && t !== null)
376
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
377
+ i(n, t);
378
+ function e() {
379
+ this.constructor = n;
380
+ }
381
+ n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
382
+ };
383
+ })(), s = k && k.__assign || function() {
384
+ return s = Object.assign || function(i) {
385
+ for (var n, t = 1, e = arguments.length; t < e; t++) {
386
+ n = arguments[t];
387
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (i[r] = n[r]);
388
+ }
389
+ return i;
390
+ }, s.apply(this, arguments);
391
+ };
392
+ Object.defineProperty(k, "__esModule", { value: !0 }), k.MmlMn = void 0;
393
+ var c = g(), f = (function(i) {
394
+ y(n, i);
395
+ function n() {
396
+ var t = i !== null && i.apply(this, arguments) || this;
397
+ return t.texclass = c.TEXCLASS.ORD, t;
398
+ }
399
+ return Object.defineProperty(n.prototype, "kind", {
400
+ get: function() {
401
+ return "mn";
402
+ },
403
+ enumerable: !1,
404
+ configurable: !0
405
+ }), n.defaults = s({}, c.AbstractMmlTokenNode.defaults), n;
406
+ })(c.AbstractMmlTokenNode);
407
+ return k.MmlMn = f, k;
408
+ }
409
+ var q = {}, nt;
410
+ function Rt() {
411
+ if (nt) return q;
412
+ nt = 1;
413
+ var y = q && q.__extends || /* @__PURE__ */ (function() {
414
+ var i = function(n, t) {
415
+ return i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
416
+ e.__proto__ = r;
417
+ } || function(e, r) {
418
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
419
+ }, i(n, t);
420
+ };
421
+ return function(n, t) {
422
+ if (typeof t != "function" && t !== null)
423
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
424
+ i(n, t);
425
+ function e() {
426
+ this.constructor = n;
427
+ }
428
+ n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
429
+ };
430
+ })(), s = q && q.__assign || function() {
431
+ return s = Object.assign || function(i) {
432
+ for (var n, t = 1, e = arguments.length; t < e; t++) {
433
+ n = arguments[t];
434
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (i[r] = n[r]);
435
+ }
436
+ return i;
437
+ }, s.apply(this, arguments);
438
+ };
439
+ Object.defineProperty(q, "__esModule", { value: !0 }), q.MmlMs = void 0;
440
+ var c = g(), f = (function(i) {
441
+ y(n, i);
442
+ function n() {
443
+ var t = i !== null && i.apply(this, arguments) || this;
444
+ return t.texclass = c.TEXCLASS.ORD, t;
445
+ }
446
+ return Object.defineProperty(n.prototype, "kind", {
447
+ get: function() {
448
+ return "ms";
449
+ },
450
+ enumerable: !1,
451
+ configurable: !0
452
+ }), n.defaults = s(s({}, c.AbstractMmlTokenNode.defaults), { lquote: '"', rquote: '"' }), n;
453
+ })(c.AbstractMmlTokenNode);
454
+ return q.MmlMs = f, q;
455
+ }
456
+ var X = {}, ot;
457
+ function Lt() {
458
+ if (ot) return X;
459
+ ot = 1;
460
+ var y = X && X.__extends || /* @__PURE__ */ (function() {
461
+ var i = function(n, t) {
462
+ return i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
463
+ e.__proto__ = r;
464
+ } || function(e, r) {
465
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
466
+ }, i(n, t);
467
+ };
468
+ return function(n, t) {
469
+ if (typeof t != "function" && t !== null)
470
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
471
+ i(n, t);
472
+ function e() {
473
+ this.constructor = n;
474
+ }
475
+ n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
476
+ };
477
+ })(), s = X && X.__assign || function() {
478
+ return s = Object.assign || function(i) {
479
+ for (var n, t = 1, e = arguments.length; t < e; t++) {
480
+ n = arguments[t];
481
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (i[r] = n[r]);
482
+ }
483
+ return i;
484
+ }, s.apply(this, arguments);
485
+ };
486
+ Object.defineProperty(X, "__esModule", { value: !0 }), X.MmlMtext = void 0;
487
+ var c = g(), f = (function(i) {
488
+ y(n, i);
489
+ function n() {
490
+ var t = i !== null && i.apply(this, arguments) || this;
491
+ return t.texclass = c.TEXCLASS.ORD, t;
492
+ }
493
+ return Object.defineProperty(n.prototype, "kind", {
494
+ get: function() {
495
+ return "mtext";
496
+ },
497
+ enumerable: !1,
498
+ configurable: !0
499
+ }), Object.defineProperty(n.prototype, "isSpacelike", {
500
+ get: function() {
501
+ return !0;
502
+ },
503
+ enumerable: !1,
504
+ configurable: !0
505
+ }), n.defaults = s({}, c.AbstractMmlTokenNode.defaults), n;
506
+ })(c.AbstractMmlTokenNode);
507
+ return X.MmlMtext = f, X;
508
+ }
509
+ var I = {}, it;
510
+ function Dt() {
511
+ if (it) return I;
512
+ it = 1;
513
+ var y = I && I.__extends || /* @__PURE__ */ (function() {
514
+ var i = function(n, t) {
515
+ return i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
516
+ e.__proto__ = r;
517
+ } || function(e, r) {
518
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
519
+ }, i(n, t);
520
+ };
521
+ return function(n, t) {
522
+ if (typeof t != "function" && t !== null)
523
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
524
+ i(n, t);
525
+ function e() {
526
+ this.constructor = n;
527
+ }
528
+ n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
529
+ };
530
+ })(), s = I && I.__assign || function() {
531
+ return s = Object.assign || function(i) {
532
+ for (var n, t = 1, e = arguments.length; t < e; t++) {
533
+ n = arguments[t];
534
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (i[r] = n[r]);
535
+ }
536
+ return i;
537
+ }, s.apply(this, arguments);
538
+ };
539
+ Object.defineProperty(I, "__esModule", { value: !0 }), I.MmlMerror = void 0;
540
+ var c = g(), f = (function(i) {
541
+ y(n, i);
542
+ function n() {
543
+ var t = i !== null && i.apply(this, arguments) || this;
544
+ return t.texclass = c.TEXCLASS.ORD, t;
545
+ }
546
+ return Object.defineProperty(n.prototype, "kind", {
547
+ get: function() {
548
+ return "merror";
549
+ },
550
+ enumerable: !1,
551
+ configurable: !0
552
+ }), Object.defineProperty(n.prototype, "arity", {
553
+ get: function() {
554
+ return -1;
555
+ },
556
+ enumerable: !1,
557
+ configurable: !0
558
+ }), Object.defineProperty(n.prototype, "linebreakContainer", {
559
+ get: function() {
560
+ return !0;
561
+ },
562
+ enumerable: !1,
563
+ configurable: !0
564
+ }), n.defaults = s({}, c.AbstractMmlNode.defaults), n;
565
+ })(c.AbstractMmlNode);
566
+ return I.MmlMerror = f, I;
567
+ }
568
+ var R = {}, at;
569
+ function Bt() {
570
+ if (at) return R;
571
+ at = 1;
572
+ var y = R && R.__extends || /* @__PURE__ */ (function() {
573
+ var i = function(n, t) {
574
+ return i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
575
+ e.__proto__ = r;
576
+ } || function(e, r) {
577
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
578
+ }, i(n, t);
579
+ };
580
+ return function(n, t) {
581
+ if (typeof t != "function" && t !== null)
582
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
583
+ i(n, t);
584
+ function e() {
585
+ this.constructor = n;
586
+ }
587
+ n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
588
+ };
589
+ })(), s = R && R.__assign || function() {
590
+ return s = Object.assign || function(i) {
591
+ for (var n, t = 1, e = arguments.length; t < e; t++) {
592
+ n = arguments[t];
593
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (i[r] = n[r]);
594
+ }
595
+ return i;
596
+ }, s.apply(this, arguments);
597
+ };
598
+ Object.defineProperty(R, "__esModule", { value: !0 }), R.MmlMspace = void 0;
599
+ var c = g(), f = (function(i) {
600
+ y(n, i);
601
+ function n() {
602
+ var t = i !== null && i.apply(this, arguments) || this;
603
+ return t.texclass = c.TEXCLASS.NONE, t;
604
+ }
605
+ return n.prototype.setTeXclass = function(t) {
606
+ return t;
607
+ }, Object.defineProperty(n.prototype, "kind", {
608
+ get: function() {
609
+ return "mspace";
610
+ },
611
+ enumerable: !1,
612
+ configurable: !0
613
+ }), Object.defineProperty(n.prototype, "arity", {
614
+ get: function() {
615
+ return 0;
616
+ },
617
+ enumerable: !1,
618
+ configurable: !0
619
+ }), Object.defineProperty(n.prototype, "isSpacelike", {
620
+ get: function() {
621
+ return !0;
622
+ },
623
+ enumerable: !1,
624
+ configurable: !0
625
+ }), Object.defineProperty(n.prototype, "hasNewline", {
626
+ get: function() {
627
+ var t = this.attributes;
628
+ return t.getExplicit("width") == null && t.getExplicit("height") == null && t.getExplicit("depth") == null && t.get("linebreak") === "newline";
629
+ },
630
+ enumerable: !1,
631
+ configurable: !0
632
+ }), n.defaults = s(s({}, c.AbstractMmlTokenNode.defaults), { width: "0em", height: "0ex", depth: "0ex", linebreak: "auto" }), n;
633
+ })(c.AbstractMmlTokenNode);
634
+ return R.MmlMspace = f, R;
635
+ }
636
+ var L = {}, ut;
637
+ function Ft() {
638
+ if (ut) return L;
639
+ ut = 1;
640
+ var y = L && L.__extends || /* @__PURE__ */ (function() {
641
+ var i = function(n, t) {
642
+ return i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
643
+ e.__proto__ = r;
644
+ } || function(e, r) {
645
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
646
+ }, i(n, t);
647
+ };
648
+ return function(n, t) {
649
+ if (typeof t != "function" && t !== null)
650
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
651
+ i(n, t);
652
+ function e() {
653
+ this.constructor = n;
654
+ }
655
+ n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
656
+ };
657
+ })(), s = L && L.__assign || function() {
658
+ return s = Object.assign || function(i) {
659
+ for (var n, t = 1, e = arguments.length; t < e; t++) {
660
+ n = arguments[t];
661
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (i[r] = n[r]);
662
+ }
663
+ return i;
664
+ }, s.apply(this, arguments);
665
+ };
666
+ Object.defineProperty(L, "__esModule", { value: !0 }), L.MmlMpadded = void 0;
667
+ var c = g(), f = (function(i) {
668
+ y(n, i);
669
+ function n() {
670
+ return i !== null && i.apply(this, arguments) || this;
671
+ }
672
+ return Object.defineProperty(n.prototype, "kind", {
673
+ get: function() {
674
+ return "mpadded";
675
+ },
676
+ enumerable: !1,
677
+ configurable: !0
678
+ }), n.defaults = s(s({}, c.AbstractMmlLayoutNode.defaults), { width: "", height: "", depth: "", lspace: 0, voffset: 0 }), n;
679
+ })(c.AbstractMmlLayoutNode);
680
+ return L.MmlMpadded = f, L;
681
+ }
682
+ var D = {}, st;
683
+ function Kt() {
684
+ if (st) return D;
685
+ st = 1;
686
+ var y = D && D.__extends || /* @__PURE__ */ (function() {
687
+ var i = function(n, t) {
688
+ return i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
689
+ e.__proto__ = r;
690
+ } || function(e, r) {
691
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
692
+ }, i(n, t);
693
+ };
694
+ return function(n, t) {
695
+ if (typeof t != "function" && t !== null)
696
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
697
+ i(n, t);
698
+ function e() {
699
+ this.constructor = n;
700
+ }
701
+ n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
702
+ };
703
+ })(), s = D && D.__assign || function() {
704
+ return s = Object.assign || function(i) {
705
+ for (var n, t = 1, e = arguments.length; t < e; t++) {
706
+ n = arguments[t];
707
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (i[r] = n[r]);
708
+ }
709
+ return i;
710
+ }, s.apply(this, arguments);
711
+ };
712
+ Object.defineProperty(D, "__esModule", { value: !0 }), D.MmlMphantom = void 0;
713
+ var c = g(), f = (function(i) {
714
+ y(n, i);
715
+ function n() {
716
+ var t = i !== null && i.apply(this, arguments) || this;
717
+ return t.texclass = c.TEXCLASS.ORD, t;
718
+ }
719
+ return Object.defineProperty(n.prototype, "kind", {
720
+ get: function() {
721
+ return "mphantom";
722
+ },
723
+ enumerable: !1,
724
+ configurable: !0
725
+ }), n.defaults = s({}, c.AbstractMmlLayoutNode.defaults), n;
726
+ })(c.AbstractMmlLayoutNode);
727
+ return D.MmlMphantom = f, D;
728
+ }
729
+ var w = {}, lt;
730
+ function zt() {
731
+ if (lt) return w;
732
+ lt = 1;
733
+ var y = w && w.__extends || /* @__PURE__ */ (function() {
734
+ var n = function(t, e) {
735
+ return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
736
+ r.__proto__ = o;
737
+ } || function(r, o) {
738
+ for (var a in o) Object.prototype.hasOwnProperty.call(o, a) && (r[a] = o[a]);
739
+ }, n(t, e);
740
+ };
741
+ return function(t, e) {
742
+ if (typeof e != "function" && e !== null)
743
+ throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
744
+ n(t, e);
745
+ function r() {
746
+ this.constructor = t;
747
+ }
748
+ t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
749
+ };
750
+ })(), s = w && w.__assign || function() {
751
+ return s = Object.assign || function(n) {
752
+ for (var t, e = 1, r = arguments.length; e < r; e++) {
753
+ t = arguments[e];
754
+ for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (n[o] = t[o]);
755
+ }
756
+ return n;
757
+ }, s.apply(this, arguments);
758
+ }, c = w && w.__values || function(n) {
759
+ var t = typeof Symbol == "function" && Symbol.iterator, e = t && n[t], r = 0;
760
+ if (e) return e.call(n);
761
+ if (n && typeof n.length == "number") return {
762
+ next: function() {
763
+ return n && r >= n.length && (n = void 0), { value: n && n[r++], done: !n };
764
+ }
765
+ };
766
+ throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
767
+ };
768
+ Object.defineProperty(w, "__esModule", { value: !0 }), w.MmlMfrac = void 0;
769
+ var f = g(), i = (function(n) {
770
+ y(t, n);
771
+ function t() {
772
+ return n !== null && n.apply(this, arguments) || this;
773
+ }
774
+ return Object.defineProperty(t.prototype, "kind", {
775
+ get: function() {
776
+ return "mfrac";
777
+ },
778
+ enumerable: !1,
779
+ configurable: !0
780
+ }), Object.defineProperty(t.prototype, "arity", {
781
+ get: function() {
782
+ return 2;
783
+ },
784
+ enumerable: !1,
785
+ configurable: !0
786
+ }), Object.defineProperty(t.prototype, "linebreakContainer", {
787
+ get: function() {
788
+ return !0;
789
+ },
790
+ enumerable: !1,
791
+ configurable: !0
792
+ }), t.prototype.setTeXclass = function(e) {
793
+ var r, o;
794
+ this.getPrevClass(e);
795
+ try {
796
+ for (var a = c(this.childNodes), u = a.next(); !u.done; u = a.next()) {
797
+ var l = u.value;
798
+ l.setTeXclass(null);
799
+ }
800
+ } catch (p) {
801
+ r = { error: p };
802
+ } finally {
803
+ try {
804
+ u && !u.done && (o = a.return) && o.call(a);
805
+ } finally {
806
+ if (r) throw r.error;
807
+ }
808
+ }
809
+ return this;
810
+ }, t.prototype.setChildInheritedAttributes = function(e, r, o, a) {
811
+ (!r || o > 0) && o++, this.childNodes[0].setInheritedAttributes(e, !1, o, a), this.childNodes[1].setInheritedAttributes(e, !1, o, !0);
812
+ }, t.defaults = s(s({}, f.AbstractMmlBaseNode.defaults), { linethickness: "medium", numalign: "center", denomalign: "center", bevelled: !1 }), t;
813
+ })(f.AbstractMmlBaseNode);
814
+ return w.MmlMfrac = i, w;
815
+ }
816
+ var B = {}, ct;
817
+ function Ht() {
818
+ if (ct) return B;
819
+ ct = 1;
820
+ var y = B && B.__extends || /* @__PURE__ */ (function() {
821
+ var i = function(n, t) {
822
+ return i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
823
+ e.__proto__ = r;
824
+ } || function(e, r) {
825
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
826
+ }, i(n, t);
827
+ };
828
+ return function(n, t) {
829
+ if (typeof t != "function" && t !== null)
830
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
831
+ i(n, t);
832
+ function e() {
833
+ this.constructor = n;
834
+ }
835
+ n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
836
+ };
837
+ })(), s = B && B.__assign || function() {
838
+ return s = Object.assign || function(i) {
839
+ for (var n, t = 1, e = arguments.length; t < e; t++) {
840
+ n = arguments[t];
841
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (i[r] = n[r]);
842
+ }
843
+ return i;
844
+ }, s.apply(this, arguments);
845
+ };
846
+ Object.defineProperty(B, "__esModule", { value: !0 }), B.MmlMsqrt = void 0;
847
+ var c = g(), f = (function(i) {
848
+ y(n, i);
849
+ function n() {
850
+ var t = i !== null && i.apply(this, arguments) || this;
851
+ return t.texclass = c.TEXCLASS.ORD, t;
852
+ }
853
+ return Object.defineProperty(n.prototype, "kind", {
854
+ get: function() {
855
+ return "msqrt";
856
+ },
857
+ enumerable: !1,
858
+ configurable: !0
859
+ }), Object.defineProperty(n.prototype, "arity", {
860
+ get: function() {
861
+ return -1;
862
+ },
863
+ enumerable: !1,
864
+ configurable: !0
865
+ }), Object.defineProperty(n.prototype, "linebreakContainer", {
866
+ get: function() {
867
+ return !0;
868
+ },
869
+ enumerable: !1,
870
+ configurable: !0
871
+ }), n.prototype.setTeXclass = function(t) {
872
+ return this.getPrevClass(t), this.childNodes[0].setTeXclass(null), this;
873
+ }, n.prototype.setChildInheritedAttributes = function(t, e, r, o) {
874
+ this.childNodes[0].setInheritedAttributes(t, e, r, !0);
875
+ }, n.defaults = s({}, c.AbstractMmlNode.defaults), n;
876
+ })(c.AbstractMmlNode);
877
+ return B.MmlMsqrt = f, B;
878
+ }
879
+ var F = {}, ft;
880
+ function Jt() {
881
+ if (ft) return F;
882
+ ft = 1;
883
+ var y = F && F.__extends || /* @__PURE__ */ (function() {
884
+ var i = function(n, t) {
885
+ return i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
886
+ e.__proto__ = r;
887
+ } || function(e, r) {
888
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
889
+ }, i(n, t);
890
+ };
891
+ return function(n, t) {
892
+ if (typeof t != "function" && t !== null)
893
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
894
+ i(n, t);
895
+ function e() {
896
+ this.constructor = n;
897
+ }
898
+ n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
899
+ };
900
+ })(), s = F && F.__assign || function() {
901
+ return s = Object.assign || function(i) {
902
+ for (var n, t = 1, e = arguments.length; t < e; t++) {
903
+ n = arguments[t];
904
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (i[r] = n[r]);
905
+ }
906
+ return i;
907
+ }, s.apply(this, arguments);
908
+ };
909
+ Object.defineProperty(F, "__esModule", { value: !0 }), F.MmlMroot = void 0;
910
+ var c = g(), f = (function(i) {
911
+ y(n, i);
912
+ function n() {
913
+ var t = i !== null && i.apply(this, arguments) || this;
914
+ return t.texclass = c.TEXCLASS.ORD, t;
915
+ }
916
+ return Object.defineProperty(n.prototype, "kind", {
917
+ get: function() {
918
+ return "mroot";
919
+ },
920
+ enumerable: !1,
921
+ configurable: !0
922
+ }), Object.defineProperty(n.prototype, "arity", {
923
+ get: function() {
924
+ return 2;
925
+ },
926
+ enumerable: !1,
927
+ configurable: !0
928
+ }), n.prototype.setTeXclass = function(t) {
929
+ return this.getPrevClass(t), this.childNodes[0].setTeXclass(null), this.childNodes[1].setTeXclass(null), this;
930
+ }, n.prototype.setChildInheritedAttributes = function(t, e, r, o) {
931
+ this.childNodes[0].setInheritedAttributes(t, e, r, !0), this.childNodes[1].setInheritedAttributes(t, !1, r + 2, o);
932
+ }, n.defaults = s({}, c.AbstractMmlNode.defaults), n;
933
+ })(c.AbstractMmlNode);
934
+ return F.MmlMroot = f, F;
935
+ }
936
+ var N = {}, pt;
937
+ function $t() {
938
+ if (pt) return N;
939
+ pt = 1;
940
+ var y = N && N.__extends || /* @__PURE__ */ (function() {
941
+ var n = function(t, e) {
942
+ return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
943
+ r.__proto__ = o;
944
+ } || function(r, o) {
945
+ for (var a in o) Object.prototype.hasOwnProperty.call(o, a) && (r[a] = o[a]);
946
+ }, n(t, e);
947
+ };
948
+ return function(t, e) {
949
+ if (typeof e != "function" && e !== null)
950
+ throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
951
+ n(t, e);
952
+ function r() {
953
+ this.constructor = t;
954
+ }
955
+ t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
956
+ };
957
+ })(), s = N && N.__assign || function() {
958
+ return s = Object.assign || function(n) {
959
+ for (var t, e = 1, r = arguments.length; e < r; e++) {
960
+ t = arguments[e];
961
+ for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (n[o] = t[o]);
962
+ }
963
+ return n;
964
+ }, s.apply(this, arguments);
965
+ }, c = N && N.__values || function(n) {
966
+ var t = typeof Symbol == "function" && Symbol.iterator, e = t && n[t], r = 0;
967
+ if (e) return e.call(n);
968
+ if (n && typeof n.length == "number") return {
969
+ next: function() {
970
+ return n && r >= n.length && (n = void 0), { value: n && n[r++], done: !n };
971
+ }
972
+ };
973
+ throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
974
+ };
975
+ Object.defineProperty(N, "__esModule", { value: !0 }), N.MmlMfenced = void 0;
976
+ var f = g(), i = (function(n) {
977
+ y(t, n);
978
+ function t() {
979
+ var e = n !== null && n.apply(this, arguments) || this;
980
+ return e.texclass = f.TEXCLASS.INNER, e.separators = [], e.open = null, e.close = null, e;
981
+ }
982
+ return Object.defineProperty(t.prototype, "kind", {
983
+ get: function() {
984
+ return "mfenced";
985
+ },
986
+ enumerable: !1,
987
+ configurable: !0
988
+ }), t.prototype.setTeXclass = function(e) {
989
+ this.getPrevClass(e), this.open && (e = this.open.setTeXclass(e)), this.childNodes[0] && (e = this.childNodes[0].setTeXclass(e));
990
+ for (var r = 1, o = this.childNodes.length; r < o; r++)
991
+ this.separators[r - 1] && (e = this.separators[r - 1].setTeXclass(e)), this.childNodes[r] && (e = this.childNodes[r].setTeXclass(e));
992
+ return this.close && (e = this.close.setTeXclass(e)), this.updateTeXclass(this.open), e;
993
+ }, t.prototype.setChildInheritedAttributes = function(e, r, o, a) {
994
+ var u, l;
995
+ this.addFakeNodes();
996
+ try {
997
+ for (var p = c([this.open, this.close].concat(this.separators)), d = p.next(); !d.done; d = p.next()) {
998
+ var h = d.value;
999
+ h && h.setInheritedAttributes(e, r, o, a);
1000
+ }
1001
+ } catch (m) {
1002
+ u = { error: m };
1003
+ } finally {
1004
+ try {
1005
+ d && !d.done && (l = p.return) && l.call(p);
1006
+ } finally {
1007
+ if (u) throw u.error;
1008
+ }
1009
+ }
1010
+ n.prototype.setChildInheritedAttributes.call(this, e, r, o, a);
1011
+ }, t.prototype.addFakeNodes = function() {
1012
+ var e, r, o = this.attributes.getList("open", "close", "separators"), a = o.open, u = o.close, l = o.separators;
1013
+ if (a = a.replace(/[ \t\n\r]/g, ""), u = u.replace(/[ \t\n\r]/g, ""), l = l.replace(/[ \t\n\r]/g, ""), a && (this.open = this.fakeNode(a, { fence: !0, form: "prefix" }, f.TEXCLASS.OPEN)), l) {
1014
+ for (; l.length < this.childNodes.length - 1; )
1015
+ l += l.charAt(l.length - 1);
1016
+ var p = 0;
1017
+ try {
1018
+ for (var d = c(this.childNodes.slice(1)), h = d.next(); !h.done; h = d.next()) {
1019
+ var m = h.value;
1020
+ m && this.separators.push(this.fakeNode(l.charAt(p++)));
1021
+ }
1022
+ } catch (v) {
1023
+ e = { error: v };
1024
+ } finally {
1025
+ try {
1026
+ h && !h.done && (r = d.return) && r.call(d);
1027
+ } finally {
1028
+ if (e) throw e.error;
1029
+ }
1030
+ }
1031
+ }
1032
+ u && (this.close = this.fakeNode(u, { fence: !0, form: "postfix" }, f.TEXCLASS.CLOSE));
1033
+ }, t.prototype.fakeNode = function(e, r, o) {
1034
+ r === void 0 && (r = {}), o === void 0 && (o = null);
1035
+ var a = this.factory.create("text").setText(e), u = this.factory.create("mo", r, [a]);
1036
+ return u.texClass = o, u.parent = this, u;
1037
+ }, t.defaults = s(s({}, f.AbstractMmlNode.defaults), { open: "(", close: ")", separators: "," }), t;
1038
+ })(f.AbstractMmlNode);
1039
+ return N.MmlMfenced = i, N;
1040
+ }
1041
+ var b = {}, dt;
1042
+ function St() {
1043
+ if (dt) return b;
1044
+ dt = 1;
1045
+ var y = b && b.__extends || /* @__PURE__ */ (function() {
1046
+ var t = function(e, r) {
1047
+ return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(o, a) {
1048
+ o.__proto__ = a;
1049
+ } || function(o, a) {
1050
+ for (var u in a) Object.prototype.hasOwnProperty.call(a, u) && (o[u] = a[u]);
1051
+ }, t(e, r);
1052
+ };
1053
+ return function(e, r) {
1054
+ if (typeof r != "function" && r !== null)
1055
+ throw new TypeError("Class extends value " + String(r) + " is not a constructor or null");
1056
+ t(e, r);
1057
+ function o() {
1058
+ this.constructor = e;
1059
+ }
1060
+ e.prototype = r === null ? Object.create(r) : (o.prototype = r.prototype, new o());
1061
+ };
1062
+ })(), s = b && b.__assign || function() {
1063
+ return s = Object.assign || function(t) {
1064
+ for (var e, r = 1, o = arguments.length; r < o; r++) {
1065
+ e = arguments[r];
1066
+ for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && (t[a] = e[a]);
1067
+ }
1068
+ return t;
1069
+ }, s.apply(this, arguments);
1070
+ };
1071
+ Object.defineProperty(b, "__esModule", { value: !0 }), b.MmlMsup = b.MmlMsub = b.MmlMsubsup = void 0;
1072
+ var c = g(), f = (function(t) {
1073
+ y(e, t);
1074
+ function e() {
1075
+ return t !== null && t.apply(this, arguments) || this;
1076
+ }
1077
+ return Object.defineProperty(e.prototype, "kind", {
1078
+ get: function() {
1079
+ return "msubsup";
1080
+ },
1081
+ enumerable: !1,
1082
+ configurable: !0
1083
+ }), Object.defineProperty(e.prototype, "arity", {
1084
+ get: function() {
1085
+ return 3;
1086
+ },
1087
+ enumerable: !1,
1088
+ configurable: !0
1089
+ }), Object.defineProperty(e.prototype, "base", {
1090
+ get: function() {
1091
+ return 0;
1092
+ },
1093
+ enumerable: !1,
1094
+ configurable: !0
1095
+ }), Object.defineProperty(e.prototype, "sub", {
1096
+ get: function() {
1097
+ return 1;
1098
+ },
1099
+ enumerable: !1,
1100
+ configurable: !0
1101
+ }), Object.defineProperty(e.prototype, "sup", {
1102
+ get: function() {
1103
+ return 2;
1104
+ },
1105
+ enumerable: !1,
1106
+ configurable: !0
1107
+ }), e.prototype.setChildInheritedAttributes = function(r, o, a, u) {
1108
+ var l = this.childNodes;
1109
+ l[0].setInheritedAttributes(r, o, a, u), l[1].setInheritedAttributes(r, !1, a + 1, u || this.sub === 1), l[2] && l[2].setInheritedAttributes(r, !1, a + 1, u || this.sub === 2);
1110
+ }, e.defaults = s(s({}, c.AbstractMmlBaseNode.defaults), { subscriptshift: "", superscriptshift: "" }), e;
1111
+ })(c.AbstractMmlBaseNode);
1112
+ b.MmlMsubsup = f;
1113
+ var i = (function(t) {
1114
+ y(e, t);
1115
+ function e() {
1116
+ return t !== null && t.apply(this, arguments) || this;
1117
+ }
1118
+ return Object.defineProperty(e.prototype, "kind", {
1119
+ get: function() {
1120
+ return "msub";
1121
+ },
1122
+ enumerable: !1,
1123
+ configurable: !0
1124
+ }), Object.defineProperty(e.prototype, "arity", {
1125
+ get: function() {
1126
+ return 2;
1127
+ },
1128
+ enumerable: !1,
1129
+ configurable: !0
1130
+ }), e.defaults = s({}, f.defaults), e;
1131
+ })(f);
1132
+ b.MmlMsub = i;
1133
+ var n = (function(t) {
1134
+ y(e, t);
1135
+ function e() {
1136
+ return t !== null && t.apply(this, arguments) || this;
1137
+ }
1138
+ return Object.defineProperty(e.prototype, "kind", {
1139
+ get: function() {
1140
+ return "msup";
1141
+ },
1142
+ enumerable: !1,
1143
+ configurable: !0
1144
+ }), Object.defineProperty(e.prototype, "arity", {
1145
+ get: function() {
1146
+ return 2;
1147
+ },
1148
+ enumerable: !1,
1149
+ configurable: !0
1150
+ }), Object.defineProperty(e.prototype, "sup", {
1151
+ get: function() {
1152
+ return 1;
1153
+ },
1154
+ enumerable: !1,
1155
+ configurable: !0
1156
+ }), Object.defineProperty(e.prototype, "sub", {
1157
+ get: function() {
1158
+ return 2;
1159
+ },
1160
+ enumerable: !1,
1161
+ configurable: !0
1162
+ }), e.defaults = s({}, f.defaults), e;
1163
+ })(f);
1164
+ return b.MmlMsup = n, b;
1165
+ }
1166
+ var O = {}, yt;
1167
+ function Ut() {
1168
+ if (yt) return O;
1169
+ yt = 1;
1170
+ var y = O && O.__extends || /* @__PURE__ */ (function() {
1171
+ var t = function(e, r) {
1172
+ return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(o, a) {
1173
+ o.__proto__ = a;
1174
+ } || function(o, a) {
1175
+ for (var u in a) Object.prototype.hasOwnProperty.call(a, u) && (o[u] = a[u]);
1176
+ }, t(e, r);
1177
+ };
1178
+ return function(e, r) {
1179
+ if (typeof r != "function" && r !== null)
1180
+ throw new TypeError("Class extends value " + String(r) + " is not a constructor or null");
1181
+ t(e, r);
1182
+ function o() {
1183
+ this.constructor = e;
1184
+ }
1185
+ e.prototype = r === null ? Object.create(r) : (o.prototype = r.prototype, new o());
1186
+ };
1187
+ })(), s = O && O.__assign || function() {
1188
+ return s = Object.assign || function(t) {
1189
+ for (var e, r = 1, o = arguments.length; r < o; r++) {
1190
+ e = arguments[r];
1191
+ for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && (t[a] = e[a]);
1192
+ }
1193
+ return t;
1194
+ }, s.apply(this, arguments);
1195
+ };
1196
+ Object.defineProperty(O, "__esModule", { value: !0 }), O.MmlMover = O.MmlMunder = O.MmlMunderover = void 0;
1197
+ var c = g(), f = (function(t) {
1198
+ y(e, t);
1199
+ function e() {
1200
+ return t !== null && t.apply(this, arguments) || this;
1201
+ }
1202
+ return Object.defineProperty(e.prototype, "kind", {
1203
+ get: function() {
1204
+ return "munderover";
1205
+ },
1206
+ enumerable: !1,
1207
+ configurable: !0
1208
+ }), Object.defineProperty(e.prototype, "arity", {
1209
+ get: function() {
1210
+ return 3;
1211
+ },
1212
+ enumerable: !1,
1213
+ configurable: !0
1214
+ }), Object.defineProperty(e.prototype, "base", {
1215
+ get: function() {
1216
+ return 0;
1217
+ },
1218
+ enumerable: !1,
1219
+ configurable: !0
1220
+ }), Object.defineProperty(e.prototype, "under", {
1221
+ get: function() {
1222
+ return 1;
1223
+ },
1224
+ enumerable: !1,
1225
+ configurable: !0
1226
+ }), Object.defineProperty(e.prototype, "over", {
1227
+ get: function() {
1228
+ return 2;
1229
+ },
1230
+ enumerable: !1,
1231
+ configurable: !0
1232
+ }), Object.defineProperty(e.prototype, "linebreakContainer", {
1233
+ get: function() {
1234
+ return !0;
1235
+ },
1236
+ enumerable: !1,
1237
+ configurable: !0
1238
+ }), e.prototype.setChildInheritedAttributes = function(r, o, a, u) {
1239
+ var l = this.childNodes;
1240
+ l[0].setInheritedAttributes(r, o, a, u || !!l[this.over]);
1241
+ var p = !!(!o && l[0].coreMO().attributes.get("movablelimits")), d = this.constructor.ACCENTS;
1242
+ l[1].setInheritedAttributes(r, !1, this.getScriptlevel(d[1], p, a), u || this.under === 1), this.setInheritedAccent(1, d[1], o, a, u, p), l[2] && (l[2].setInheritedAttributes(r, !1, this.getScriptlevel(d[2], p, a), u || this.under === 2), this.setInheritedAccent(2, d[2], o, a, u, p));
1243
+ }, e.prototype.getScriptlevel = function(r, o, a) {
1244
+ return (o || !this.attributes.get(r)) && a++, a;
1245
+ }, e.prototype.setInheritedAccent = function(r, o, a, u, l, p) {
1246
+ var d = this.childNodes[r];
1247
+ if (this.attributes.getExplicit(o) == null && d.isEmbellished) {
1248
+ var h = d.coreMO().attributes.get("accent");
1249
+ this.attributes.setInherited(o, h), h !== this.attributes.getDefault(o) && d.setInheritedAttributes({}, a, this.getScriptlevel(o, p, u), l);
1250
+ }
1251
+ }, e.defaults = s(s({}, c.AbstractMmlBaseNode.defaults), { accent: !1, accentunder: !1, align: "center" }), e.ACCENTS = ["", "accentunder", "accent"], e;
1252
+ })(c.AbstractMmlBaseNode);
1253
+ O.MmlMunderover = f;
1254
+ var i = (function(t) {
1255
+ y(e, t);
1256
+ function e() {
1257
+ return t !== null && t.apply(this, arguments) || this;
1258
+ }
1259
+ return Object.defineProperty(e.prototype, "kind", {
1260
+ get: function() {
1261
+ return "munder";
1262
+ },
1263
+ enumerable: !1,
1264
+ configurable: !0
1265
+ }), Object.defineProperty(e.prototype, "arity", {
1266
+ get: function() {
1267
+ return 2;
1268
+ },
1269
+ enumerable: !1,
1270
+ configurable: !0
1271
+ }), e.defaults = s({}, f.defaults), e;
1272
+ })(f);
1273
+ O.MmlMunder = i;
1274
+ var n = (function(t) {
1275
+ y(e, t);
1276
+ function e() {
1277
+ return t !== null && t.apply(this, arguments) || this;
1278
+ }
1279
+ return Object.defineProperty(e.prototype, "kind", {
1280
+ get: function() {
1281
+ return "mover";
1282
+ },
1283
+ enumerable: !1,
1284
+ configurable: !0
1285
+ }), Object.defineProperty(e.prototype, "arity", {
1286
+ get: function() {
1287
+ return 2;
1288
+ },
1289
+ enumerable: !1,
1290
+ configurable: !0
1291
+ }), Object.defineProperty(e.prototype, "over", {
1292
+ get: function() {
1293
+ return 1;
1294
+ },
1295
+ enumerable: !1,
1296
+ configurable: !0
1297
+ }), Object.defineProperty(e.prototype, "under", {
1298
+ get: function() {
1299
+ return 2;
1300
+ },
1301
+ enumerable: !1,
1302
+ configurable: !0
1303
+ }), e.defaults = s({}, f.defaults), e.ACCENTS = ["", "accent", "accentunder"], e;
1304
+ })(f);
1305
+ return O.MmlMover = n, O;
1306
+ }
1307
+ var j = {}, ht;
1308
+ function Gt() {
1309
+ if (ht) return j;
1310
+ ht = 1;
1311
+ var y = j && j.__extends || /* @__PURE__ */ (function() {
1312
+ var e = function(r, o) {
1313
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(a, u) {
1314
+ a.__proto__ = u;
1315
+ } || function(a, u) {
1316
+ for (var l in u) Object.prototype.hasOwnProperty.call(u, l) && (a[l] = u[l]);
1317
+ }, e(r, o);
1318
+ };
1319
+ return function(r, o) {
1320
+ if (typeof o != "function" && o !== null)
1321
+ throw new TypeError("Class extends value " + String(o) + " is not a constructor or null");
1322
+ e(r, o);
1323
+ function a() {
1324
+ this.constructor = r;
1325
+ }
1326
+ r.prototype = o === null ? Object.create(o) : (a.prototype = o.prototype, new a());
1327
+ };
1328
+ })(), s = j && j.__assign || function() {
1329
+ return s = Object.assign || function(e) {
1330
+ for (var r, o = 1, a = arguments.length; o < a; o++) {
1331
+ r = arguments[o];
1332
+ for (var u in r) Object.prototype.hasOwnProperty.call(r, u) && (e[u] = r[u]);
1333
+ }
1334
+ return e;
1335
+ }, s.apply(this, arguments);
1336
+ };
1337
+ Object.defineProperty(j, "__esModule", { value: !0 }), j.MmlNone = j.MmlMprescripts = j.MmlMmultiscripts = void 0;
1338
+ var c = g(), f = St(), i = (function(e) {
1339
+ y(r, e);
1340
+ function r() {
1341
+ return e !== null && e.apply(this, arguments) || this;
1342
+ }
1343
+ return Object.defineProperty(r.prototype, "kind", {
1344
+ get: function() {
1345
+ return "mmultiscripts";
1346
+ },
1347
+ enumerable: !1,
1348
+ configurable: !0
1349
+ }), Object.defineProperty(r.prototype, "arity", {
1350
+ get: function() {
1351
+ return 1;
1352
+ },
1353
+ enumerable: !1,
1354
+ configurable: !0
1355
+ }), r.prototype.setChildInheritedAttributes = function(o, a, u, l) {
1356
+ this.childNodes[0].setInheritedAttributes(o, a, u, l);
1357
+ for (var p = !1, d = 1, h = 0; d < this.childNodes.length; d++) {
1358
+ var m = this.childNodes[d];
1359
+ if (m.isKind("mprescripts")) {
1360
+ if (!p && (p = !0, d % 2 === 0)) {
1361
+ var v = this.factory.create("mrow");
1362
+ this.childNodes.splice(d, 0, v), v.parent = this, d++;
1363
+ }
1364
+ } else {
1365
+ var _ = l || h % 2 === 0;
1366
+ m.setInheritedAttributes(o, !1, u + 1, _), h++;
1367
+ }
1368
+ }
1369
+ this.childNodes.length % 2 === (p ? 1 : 0) && (this.appendChild(this.factory.create("mrow")), this.childNodes[this.childNodes.length - 1].setInheritedAttributes(o, !1, u + 1, l));
1370
+ }, r.prototype.verifyChildren = function(o) {
1371
+ for (var a = !1, u = o.fixMmultiscripts, l = 0; l < this.childNodes.length; l++) {
1372
+ var p = this.childNodes[l];
1373
+ p.isKind("mprescripts") && (a ? p.mError(p.kind + " can only appear once in " + this.kind, o, !0) : (a = !0, l % 2 === 0 && !u && this.mError("There must be an equal number of prescripts of each type", o)));
1374
+ }
1375
+ this.childNodes.length % 2 === (a ? 1 : 0) && !u && this.mError("There must be an equal number of scripts of each type", o), e.prototype.verifyChildren.call(this, o);
1376
+ }, r.defaults = s({}, f.MmlMsubsup.defaults), r;
1377
+ })(f.MmlMsubsup);
1378
+ j.MmlMmultiscripts = i;
1379
+ var n = (function(e) {
1380
+ y(r, e);
1381
+ function r() {
1382
+ return e !== null && e.apply(this, arguments) || this;
1383
+ }
1384
+ return Object.defineProperty(r.prototype, "kind", {
1385
+ get: function() {
1386
+ return "mprescripts";
1387
+ },
1388
+ enumerable: !1,
1389
+ configurable: !0
1390
+ }), Object.defineProperty(r.prototype, "arity", {
1391
+ get: function() {
1392
+ return 0;
1393
+ },
1394
+ enumerable: !1,
1395
+ configurable: !0
1396
+ }), r.prototype.verifyTree = function(o) {
1397
+ e.prototype.verifyTree.call(this, o), this.parent && !this.parent.isKind("mmultiscripts") && this.mError(this.kind + " must be a child of mmultiscripts", o, !0);
1398
+ }, r.defaults = s({}, c.AbstractMmlNode.defaults), r;
1399
+ })(c.AbstractMmlNode);
1400
+ j.MmlMprescripts = n;
1401
+ var t = (function(e) {
1402
+ y(r, e);
1403
+ function r() {
1404
+ return e !== null && e.apply(this, arguments) || this;
1405
+ }
1406
+ return Object.defineProperty(r.prototype, "kind", {
1407
+ get: function() {
1408
+ return "none";
1409
+ },
1410
+ enumerable: !1,
1411
+ configurable: !0
1412
+ }), Object.defineProperty(r.prototype, "arity", {
1413
+ get: function() {
1414
+ return 0;
1415
+ },
1416
+ enumerable: !1,
1417
+ configurable: !0
1418
+ }), r.prototype.verifyTree = function(o) {
1419
+ e.prototype.verifyTree.call(this, o), this.parent && !this.parent.isKind("mmultiscripts") && this.mError(this.kind + " must be a child of mmultiscripts", o, !0);
1420
+ }, r.defaults = s({}, c.AbstractMmlNode.defaults), r;
1421
+ })(c.AbstractMmlNode);
1422
+ return j.MmlNone = t, j;
1423
+ }
1424
+ var A = {}, mt;
1425
+ function Qt() {
1426
+ if (mt) return A;
1427
+ mt = 1;
1428
+ var y = A && A.__extends || /* @__PURE__ */ (function() {
1429
+ var t = function(e, r) {
1430
+ return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(o, a) {
1431
+ o.__proto__ = a;
1432
+ } || function(o, a) {
1433
+ for (var u in a) Object.prototype.hasOwnProperty.call(a, u) && (o[u] = a[u]);
1434
+ }, t(e, r);
1435
+ };
1436
+ return function(e, r) {
1437
+ if (typeof r != "function" && r !== null)
1438
+ throw new TypeError("Class extends value " + String(r) + " is not a constructor or null");
1439
+ t(e, r);
1440
+ function o() {
1441
+ this.constructor = e;
1442
+ }
1443
+ e.prototype = r === null ? Object.create(r) : (o.prototype = r.prototype, new o());
1444
+ };
1445
+ })(), s = A && A.__assign || function() {
1446
+ return s = Object.assign || function(t) {
1447
+ for (var e, r = 1, o = arguments.length; r < o; r++) {
1448
+ e = arguments[r];
1449
+ for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && (t[a] = e[a]);
1450
+ }
1451
+ return t;
1452
+ }, s.apply(this, arguments);
1453
+ }, c = A && A.__values || function(t) {
1454
+ var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], o = 0;
1455
+ if (r) return r.call(t);
1456
+ if (t && typeof t.length == "number") return {
1457
+ next: function() {
1458
+ return t && o >= t.length && (t = void 0), { value: t && t[o++], done: !t };
1459
+ }
1460
+ };
1461
+ throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
1462
+ };
1463
+ Object.defineProperty(A, "__esModule", { value: !0 }), A.MmlMtable = void 0;
1464
+ var f = g(), i = xt(), n = (function(t) {
1465
+ y(e, t);
1466
+ function e() {
1467
+ var r = t !== null && t.apply(this, arguments) || this;
1468
+ return r.properties = {
1469
+ useHeight: !0
1470
+ }, r.texclass = f.TEXCLASS.ORD, r;
1471
+ }
1472
+ return Object.defineProperty(e.prototype, "kind", {
1473
+ get: function() {
1474
+ return "mtable";
1475
+ },
1476
+ enumerable: !1,
1477
+ configurable: !0
1478
+ }), Object.defineProperty(e.prototype, "linebreakContainer", {
1479
+ get: function() {
1480
+ return !0;
1481
+ },
1482
+ enumerable: !1,
1483
+ configurable: !0
1484
+ }), e.prototype.setInheritedAttributes = function(r, o, a, u) {
1485
+ var l, p;
1486
+ try {
1487
+ for (var d = c(f.indentAttributes), h = d.next(); !h.done; h = d.next()) {
1488
+ var m = h.value;
1489
+ r[m] && this.attributes.setInherited(m, r[m][1]), this.attributes.getExplicit(m) !== void 0 && delete this.attributes.getAllAttributes()[m];
1490
+ }
1491
+ } catch (v) {
1492
+ l = { error: v };
1493
+ } finally {
1494
+ try {
1495
+ h && !h.done && (p = d.return) && p.call(d);
1496
+ } finally {
1497
+ if (l) throw l.error;
1498
+ }
1499
+ }
1500
+ t.prototype.setInheritedAttributes.call(this, r, o, a, u);
1501
+ }, e.prototype.setChildInheritedAttributes = function(r, o, a, u) {
1502
+ var l, p, d, h;
1503
+ try {
1504
+ for (var m = c(this.childNodes), v = m.next(); !v.done; v = m.next()) {
1505
+ var _ = v.value;
1506
+ _.isKind("mtr") || this.replaceChild(this.factory.create("mtr"), _).appendChild(_);
1507
+ }
1508
+ } catch (T) {
1509
+ l = { error: T };
1510
+ } finally {
1511
+ try {
1512
+ v && !v.done && (p = m.return) && p.call(m);
1513
+ } finally {
1514
+ if (l) throw l.error;
1515
+ }
1516
+ }
1517
+ a = this.getProperty("scriptlevel") || a, o = !!(this.attributes.getExplicit("displaystyle") || this.attributes.getDefault("displaystyle")), r = this.addInheritedAttributes(r, {
1518
+ columnalign: this.attributes.get("columnalign"),
1519
+ rowalign: "center"
1520
+ });
1521
+ var U = this.attributes.getExplicit("data-cramped"), G = (0, i.split)(this.attributes.get("rowalign"));
1522
+ try {
1523
+ for (var Q = c(this.childNodes), S = Q.next(); !S.done; S = Q.next()) {
1524
+ var _ = S.value;
1525
+ r.rowalign[1] = G.shift() || r.rowalign[1], _.setInheritedAttributes(r, o, a, !!U);
1526
+ }
1527
+ } catch (T) {
1528
+ d = { error: T };
1529
+ } finally {
1530
+ try {
1531
+ S && !S.done && (h = Q.return) && h.call(Q);
1532
+ } finally {
1533
+ if (d) throw d.error;
1534
+ }
1535
+ }
1536
+ }, e.prototype.verifyChildren = function(r) {
1537
+ for (var o = null, a = this.factory, u = 0; u < this.childNodes.length; u++) {
1538
+ var l = this.childNodes[u];
1539
+ if (l.isKind("mtr"))
1540
+ o = null;
1541
+ else {
1542
+ var p = l.isKind("mtd");
1543
+ if (o ? (this.removeChild(l), u--) : o = this.replaceChild(a.create("mtr"), l), o.appendChild(p ? l : a.create("mtd", {}, [l])), !r.fixMtables) {
1544
+ l.parent.removeChild(l), l.parent = this, p && o.appendChild(a.create("mtd"));
1545
+ var d = l.mError("Children of " + this.kind + " must be mtr or mlabeledtr", r, p);
1546
+ o.childNodes[o.childNodes.length - 1].appendChild(d);
1547
+ }
1548
+ }
1549
+ }
1550
+ t.prototype.verifyChildren.call(this, r);
1551
+ }, e.prototype.setTeXclass = function(r) {
1552
+ var o, a;
1553
+ this.getPrevClass(r);
1554
+ try {
1555
+ for (var u = c(this.childNodes), l = u.next(); !l.done; l = u.next()) {
1556
+ var p = l.value;
1557
+ p.setTeXclass(null);
1558
+ }
1559
+ } catch (d) {
1560
+ o = { error: d };
1561
+ } finally {
1562
+ try {
1563
+ l && !l.done && (a = u.return) && a.call(u);
1564
+ } finally {
1565
+ if (o) throw o.error;
1566
+ }
1567
+ }
1568
+ return this;
1569
+ }, e.defaults = s(s({}, f.AbstractMmlNode.defaults), { align: "axis", rowalign: "baseline", columnalign: "center", groupalign: "{left}", alignmentscope: !0, columnwidth: "auto", width: "auto", rowspacing: "1ex", columnspacing: ".8em", rowlines: "none", columnlines: "none", frame: "none", framespacing: "0.4em 0.5ex", equalrows: !1, equalcolumns: !1, displaystyle: !1, side: "right", minlabelspacing: "0.8em" }), e;
1570
+ })(f.AbstractMmlNode);
1571
+ return A.MmlMtable = n, A;
1572
+ }
1573
+ var x = {}, gt;
1574
+ function Vt() {
1575
+ if (gt) return x;
1576
+ gt = 1;
1577
+ var y = x && x.__extends || /* @__PURE__ */ (function() {
1578
+ var r = function(o, a) {
1579
+ return r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(u, l) {
1580
+ u.__proto__ = l;
1581
+ } || function(u, l) {
1582
+ for (var p in l) Object.prototype.hasOwnProperty.call(l, p) && (u[p] = l[p]);
1583
+ }, r(o, a);
1584
+ };
1585
+ return function(o, a) {
1586
+ if (typeof a != "function" && a !== null)
1587
+ throw new TypeError("Class extends value " + String(a) + " is not a constructor or null");
1588
+ r(o, a);
1589
+ function u() {
1590
+ this.constructor = o;
1591
+ }
1592
+ o.prototype = a === null ? Object.create(a) : (u.prototype = a.prototype, new u());
1593
+ };
1594
+ })(), s = x && x.__assign || function() {
1595
+ return s = Object.assign || function(r) {
1596
+ for (var o, a = 1, u = arguments.length; a < u; a++) {
1597
+ o = arguments[a];
1598
+ for (var l in o) Object.prototype.hasOwnProperty.call(o, l) && (r[l] = o[l]);
1599
+ }
1600
+ return r;
1601
+ }, s.apply(this, arguments);
1602
+ }, c = x && x.__values || function(r) {
1603
+ var o = typeof Symbol == "function" && Symbol.iterator, a = o && r[o], u = 0;
1604
+ if (a) return a.call(r);
1605
+ if (r && typeof r.length == "number") return {
1606
+ next: function() {
1607
+ return r && u >= r.length && (r = void 0), { value: r && r[u++], done: !r };
1608
+ }
1609
+ };
1610
+ throw new TypeError(o ? "Object is not iterable." : "Symbol.iterator is not defined.");
1611
+ };
1612
+ Object.defineProperty(x, "__esModule", { value: !0 }), x.MmlMlabeledtr = x.MmlMtr = void 0;
1613
+ var f = g(), i = Pt(), n = xt(), t = (function(r) {
1614
+ y(o, r);
1615
+ function o() {
1616
+ return r !== null && r.apply(this, arguments) || this;
1617
+ }
1618
+ return Object.defineProperty(o.prototype, "kind", {
1619
+ get: function() {
1620
+ return "mtr";
1621
+ },
1622
+ enumerable: !1,
1623
+ configurable: !0
1624
+ }), Object.defineProperty(o.prototype, "linebreakContainer", {
1625
+ get: function() {
1626
+ return !0;
1627
+ },
1628
+ enumerable: !1,
1629
+ configurable: !0
1630
+ }), o.prototype.setChildInheritedAttributes = function(a, u, l, p) {
1631
+ var d, h, m, v;
1632
+ try {
1633
+ for (var _ = c(this.childNodes), U = _.next(); !U.done; U = _.next()) {
1634
+ var G = U.value;
1635
+ G.isKind("mtd") || this.replaceChild(this.factory.create("mtd"), G).appendChild(G);
1636
+ }
1637
+ } catch (W) {
1638
+ d = { error: W };
1639
+ } finally {
1640
+ try {
1641
+ U && !U.done && (h = _.return) && h.call(_);
1642
+ } finally {
1643
+ if (d) throw d.error;
1644
+ }
1645
+ }
1646
+ var Q = (0, n.split)(this.attributes.get("columnalign"));
1647
+ this.arity === 1 && Q.unshift(this.parent.attributes.get("side")), a = this.addInheritedAttributes(a, {
1648
+ rowalign: this.attributes.get("rowalign"),
1649
+ columnalign: "center"
1650
+ });
1651
+ try {
1652
+ for (var S = c(this.childNodes), T = S.next(); !T.done; T = S.next()) {
1653
+ var G = T.value;
1654
+ a.columnalign[1] = Q.shift() || a.columnalign[1], G.setInheritedAttributes(a, u, l, p);
1655
+ }
1656
+ } catch (W) {
1657
+ m = { error: W };
1658
+ } finally {
1659
+ try {
1660
+ T && !T.done && (v = S.return) && v.call(S);
1661
+ } finally {
1662
+ if (m) throw m.error;
1663
+ }
1664
+ }
1665
+ }, o.prototype.verifyChildren = function(a) {
1666
+ var u, l;
1667
+ if (this.parent && !this.parent.isKind("mtable")) {
1668
+ this.mError(this.kind + " can only be a child of an mtable", a, !0);
1669
+ return;
1670
+ }
1671
+ try {
1672
+ for (var p = c(this.childNodes), d = p.next(); !d.done; d = p.next()) {
1673
+ var h = d.value;
1674
+ if (!h.isKind("mtd")) {
1675
+ var m = this.replaceChild(this.factory.create("mtd"), h);
1676
+ m.appendChild(h), a.fixMtables || h.mError("Children of " + this.kind + " must be mtd", a);
1677
+ }
1678
+ }
1679
+ } catch (v) {
1680
+ u = { error: v };
1681
+ } finally {
1682
+ try {
1683
+ d && !d.done && (l = p.return) && l.call(p);
1684
+ } finally {
1685
+ if (u) throw u.error;
1686
+ }
1687
+ }
1688
+ r.prototype.verifyChildren.call(this, a);
1689
+ }, o.prototype.setTeXclass = function(a) {
1690
+ var u, l;
1691
+ this.getPrevClass(a);
1692
+ try {
1693
+ for (var p = c(this.childNodes), d = p.next(); !d.done; d = p.next()) {
1694
+ var h = d.value;
1695
+ h.setTeXclass(null);
1696
+ }
1697
+ } catch (m) {
1698
+ u = { error: m };
1699
+ } finally {
1700
+ try {
1701
+ d && !d.done && (l = p.return) && l.call(p);
1702
+ } finally {
1703
+ if (u) throw u.error;
1704
+ }
1705
+ }
1706
+ return this;
1707
+ }, o.defaults = s(s({}, f.AbstractMmlNode.defaults), { rowalign: i.INHERIT, columnalign: i.INHERIT, groupalign: i.INHERIT }), o;
1708
+ })(f.AbstractMmlNode);
1709
+ x.MmlMtr = t;
1710
+ var e = (function(r) {
1711
+ y(o, r);
1712
+ function o() {
1713
+ return r !== null && r.apply(this, arguments) || this;
1714
+ }
1715
+ return Object.defineProperty(o.prototype, "kind", {
1716
+ get: function() {
1717
+ return "mlabeledtr";
1718
+ },
1719
+ enumerable: !1,
1720
+ configurable: !0
1721
+ }), Object.defineProperty(o.prototype, "arity", {
1722
+ get: function() {
1723
+ return 1;
1724
+ },
1725
+ enumerable: !1,
1726
+ configurable: !0
1727
+ }), o;
1728
+ })(t);
1729
+ return x.MmlMlabeledtr = e, x;
1730
+ }
1731
+ var K = {}, vt;
1732
+ function Wt() {
1733
+ if (vt) return K;
1734
+ vt = 1;
1735
+ var y = K && K.__extends || /* @__PURE__ */ (function() {
1736
+ var n = function(t, e) {
1737
+ return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
1738
+ r.__proto__ = o;
1739
+ } || function(r, o) {
1740
+ for (var a in o) Object.prototype.hasOwnProperty.call(o, a) && (r[a] = o[a]);
1741
+ }, n(t, e);
1742
+ };
1743
+ return function(t, e) {
1744
+ if (typeof e != "function" && e !== null)
1745
+ throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
1746
+ n(t, e);
1747
+ function r() {
1748
+ this.constructor = t;
1749
+ }
1750
+ t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
1751
+ };
1752
+ })(), s = K && K.__assign || function() {
1753
+ return s = Object.assign || function(n) {
1754
+ for (var t, e = 1, r = arguments.length; e < r; e++) {
1755
+ t = arguments[e];
1756
+ for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (n[o] = t[o]);
1757
+ }
1758
+ return n;
1759
+ }, s.apply(this, arguments);
1760
+ };
1761
+ Object.defineProperty(K, "__esModule", { value: !0 }), K.MmlMtd = void 0;
1762
+ var c = g(), f = Pt(), i = (function(n) {
1763
+ y(t, n);
1764
+ function t() {
1765
+ return n !== null && n.apply(this, arguments) || this;
1766
+ }
1767
+ return Object.defineProperty(t.prototype, "kind", {
1768
+ get: function() {
1769
+ return "mtd";
1770
+ },
1771
+ enumerable: !1,
1772
+ configurable: !0
1773
+ }), Object.defineProperty(t.prototype, "arity", {
1774
+ get: function() {
1775
+ return -1;
1776
+ },
1777
+ enumerable: !1,
1778
+ configurable: !0
1779
+ }), Object.defineProperty(t.prototype, "linebreakContainer", {
1780
+ get: function() {
1781
+ return !0;
1782
+ },
1783
+ enumerable: !1,
1784
+ configurable: !0
1785
+ }), t.prototype.verifyChildren = function(e) {
1786
+ if (this.parent && !this.parent.isKind("mtr")) {
1787
+ this.mError(this.kind + " can only be a child of an mtr or mlabeledtr", e, !0);
1788
+ return;
1789
+ }
1790
+ n.prototype.verifyChildren.call(this, e);
1791
+ }, t.prototype.setTeXclass = function(e) {
1792
+ return this.getPrevClass(e), this.childNodes[0].setTeXclass(null), this;
1793
+ }, t.defaults = s(s({}, c.AbstractMmlBaseNode.defaults), { rowspan: 1, columnspan: 1, rowalign: f.INHERIT, columnalign: f.INHERIT, groupalign: f.INHERIT }), t;
1794
+ })(c.AbstractMmlBaseNode);
1795
+ return K.MmlMtd = i, K;
1796
+ }
1797
+ var z = {}, _t;
1798
+ function Yt() {
1799
+ if (_t) return z;
1800
+ _t = 1;
1801
+ var y = z && z.__extends || /* @__PURE__ */ (function() {
1802
+ var i = function(n, t) {
1803
+ return i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
1804
+ e.__proto__ = r;
1805
+ } || function(e, r) {
1806
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
1807
+ }, i(n, t);
1808
+ };
1809
+ return function(n, t) {
1810
+ if (typeof t != "function" && t !== null)
1811
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1812
+ i(n, t);
1813
+ function e() {
1814
+ this.constructor = n;
1815
+ }
1816
+ n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
1817
+ };
1818
+ })(), s = z && z.__assign || function() {
1819
+ return s = Object.assign || function(i) {
1820
+ for (var n, t = 1, e = arguments.length; t < e; t++) {
1821
+ n = arguments[t];
1822
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (i[r] = n[r]);
1823
+ }
1824
+ return i;
1825
+ }, s.apply(this, arguments);
1826
+ };
1827
+ Object.defineProperty(z, "__esModule", { value: !0 }), z.MmlMaction = void 0;
1828
+ var c = g(), f = (function(i) {
1829
+ y(n, i);
1830
+ function n() {
1831
+ return i !== null && i.apply(this, arguments) || this;
1832
+ }
1833
+ return Object.defineProperty(n.prototype, "kind", {
1834
+ get: function() {
1835
+ return "maction";
1836
+ },
1837
+ enumerable: !1,
1838
+ configurable: !0
1839
+ }), Object.defineProperty(n.prototype, "arity", {
1840
+ get: function() {
1841
+ return 1;
1842
+ },
1843
+ enumerable: !1,
1844
+ configurable: !0
1845
+ }), Object.defineProperty(n.prototype, "selected", {
1846
+ get: function() {
1847
+ var t = this.attributes.get("selection"), e = Math.max(1, Math.min(this.childNodes.length, t)) - 1;
1848
+ return this.childNodes[e] || this.factory.create("mrow");
1849
+ },
1850
+ enumerable: !1,
1851
+ configurable: !0
1852
+ }), Object.defineProperty(n.prototype, "isEmbellished", {
1853
+ get: function() {
1854
+ return this.selected.isEmbellished;
1855
+ },
1856
+ enumerable: !1,
1857
+ configurable: !0
1858
+ }), Object.defineProperty(n.prototype, "isSpacelike", {
1859
+ get: function() {
1860
+ return this.selected.isSpacelike;
1861
+ },
1862
+ enumerable: !1,
1863
+ configurable: !0
1864
+ }), n.prototype.core = function() {
1865
+ return this.selected.core();
1866
+ }, n.prototype.coreMO = function() {
1867
+ return this.selected.coreMO();
1868
+ }, n.prototype.verifyAttributes = function(t) {
1869
+ if (i.prototype.verifyAttributes.call(this, t), this.attributes.get("actiontype") !== "toggle" && this.attributes.getExplicit("selection") !== void 0) {
1870
+ var e = this.attributes.getAllAttributes();
1871
+ delete e.selection;
1872
+ }
1873
+ }, n.prototype.setTeXclass = function(t) {
1874
+ this.attributes.get("actiontype") === "tooltip" && this.childNodes[1] && this.childNodes[1].setTeXclass(null);
1875
+ var e = this.selected;
1876
+ return t = e.setTeXclass(t), this.updateTeXclass(e), t;
1877
+ }, n.prototype.nextToggleSelection = function() {
1878
+ var t = Math.max(1, this.attributes.get("selection") + 1);
1879
+ t > this.childNodes.length && (t = 1), this.attributes.set("selection", t);
1880
+ }, n.defaults = s(s({}, c.AbstractMmlNode.defaults), { actiontype: "toggle", selection: 1 }), n;
1881
+ })(c.AbstractMmlNode);
1882
+ return z.MmlMaction = f, z;
1883
+ }
1884
+ var H = {}, Mt;
1885
+ function Zt() {
1886
+ if (Mt) return H;
1887
+ Mt = 1;
1888
+ var y = H && H.__extends || /* @__PURE__ */ (function() {
1889
+ var i = function(n, t) {
1890
+ return i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
1891
+ e.__proto__ = r;
1892
+ } || function(e, r) {
1893
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
1894
+ }, i(n, t);
1895
+ };
1896
+ return function(n, t) {
1897
+ if (typeof t != "function" && t !== null)
1898
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1899
+ i(n, t);
1900
+ function e() {
1901
+ this.constructor = n;
1902
+ }
1903
+ n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
1904
+ };
1905
+ })(), s = H && H.__assign || function() {
1906
+ return s = Object.assign || function(i) {
1907
+ for (var n, t = 1, e = arguments.length; t < e; t++) {
1908
+ n = arguments[t];
1909
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (i[r] = n[r]);
1910
+ }
1911
+ return i;
1912
+ }, s.apply(this, arguments);
1913
+ };
1914
+ Object.defineProperty(H, "__esModule", { value: !0 }), H.MmlMenclose = void 0;
1915
+ var c = g(), f = (function(i) {
1916
+ y(n, i);
1917
+ function n() {
1918
+ var t = i !== null && i.apply(this, arguments) || this;
1919
+ return t.texclass = c.TEXCLASS.ORD, t;
1920
+ }
1921
+ return Object.defineProperty(n.prototype, "kind", {
1922
+ get: function() {
1923
+ return "menclose";
1924
+ },
1925
+ enumerable: !1,
1926
+ configurable: !0
1927
+ }), Object.defineProperty(n.prototype, "arity", {
1928
+ get: function() {
1929
+ return -1;
1930
+ },
1931
+ enumerable: !1,
1932
+ configurable: !0
1933
+ }), Object.defineProperty(n.prototype, "linebreakContininer", {
1934
+ get: function() {
1935
+ return !0;
1936
+ },
1937
+ enumerable: !1,
1938
+ configurable: !0
1939
+ }), n.prototype.setTeXclass = function(t) {
1940
+ return t = this.childNodes[0].setTeXclass(t), this.updateTeXclass(this.childNodes[0]), t;
1941
+ }, n.defaults = s(s({}, c.AbstractMmlNode.defaults), { notation: "longdiv" }), n;
1942
+ })(c.AbstractMmlNode);
1943
+ return H.MmlMenclose = f, H;
1944
+ }
1945
+ var P = {}, bt;
1946
+ function te() {
1947
+ if (bt) return P;
1948
+ bt = 1;
1949
+ var y = P && P.__extends || /* @__PURE__ */ (function() {
1950
+ var t = function(e, r) {
1951
+ return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(o, a) {
1952
+ o.__proto__ = a;
1953
+ } || function(o, a) {
1954
+ for (var u in a) Object.prototype.hasOwnProperty.call(a, u) && (o[u] = a[u]);
1955
+ }, t(e, r);
1956
+ };
1957
+ return function(e, r) {
1958
+ if (typeof r != "function" && r !== null)
1959
+ throw new TypeError("Class extends value " + String(r) + " is not a constructor or null");
1960
+ t(e, r);
1961
+ function o() {
1962
+ this.constructor = e;
1963
+ }
1964
+ e.prototype = r === null ? Object.create(r) : (o.prototype = r.prototype, new o());
1965
+ };
1966
+ })(), s = P && P.__assign || function() {
1967
+ return s = Object.assign || function(t) {
1968
+ for (var e, r = 1, o = arguments.length; r < o; r++) {
1969
+ e = arguments[r];
1970
+ for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && (t[a] = e[a]);
1971
+ }
1972
+ return t;
1973
+ }, s.apply(this, arguments);
1974
+ };
1975
+ Object.defineProperty(P, "__esModule", { value: !0 }), P.MmlAnnotation = P.MmlAnnotationXML = P.MmlSemantics = void 0;
1976
+ var c = g(), f = (function(t) {
1977
+ y(e, t);
1978
+ function e() {
1979
+ return t !== null && t.apply(this, arguments) || this;
1980
+ }
1981
+ return Object.defineProperty(e.prototype, "kind", {
1982
+ get: function() {
1983
+ return "semantics";
1984
+ },
1985
+ enumerable: !1,
1986
+ configurable: !0
1987
+ }), Object.defineProperty(e.prototype, "arity", {
1988
+ get: function() {
1989
+ return 1;
1990
+ },
1991
+ enumerable: !1,
1992
+ configurable: !0
1993
+ }), Object.defineProperty(e.prototype, "notParent", {
1994
+ get: function() {
1995
+ return !0;
1996
+ },
1997
+ enumerable: !1,
1998
+ configurable: !0
1999
+ }), e.defaults = s(s({}, c.AbstractMmlBaseNode.defaults), { definitionUrl: null, encoding: null }), e;
2000
+ })(c.AbstractMmlBaseNode);
2001
+ P.MmlSemantics = f;
2002
+ var i = (function(t) {
2003
+ y(e, t);
2004
+ function e() {
2005
+ return t !== null && t.apply(this, arguments) || this;
2006
+ }
2007
+ return Object.defineProperty(e.prototype, "kind", {
2008
+ get: function() {
2009
+ return "annotation-xml";
2010
+ },
2011
+ enumerable: !1,
2012
+ configurable: !0
2013
+ }), e.prototype.setChildInheritedAttributes = function() {
2014
+ }, e.defaults = s(s({}, c.AbstractMmlNode.defaults), { definitionUrl: null, encoding: null, cd: "mathmlkeys", name: "", src: null }), e;
2015
+ })(c.AbstractMmlNode);
2016
+ P.MmlAnnotationXML = i;
2017
+ var n = (function(t) {
2018
+ y(e, t);
2019
+ function e() {
2020
+ var r = t !== null && t.apply(this, arguments) || this;
2021
+ return r.properties = {
2022
+ isChars: !0
2023
+ }, r;
2024
+ }
2025
+ return Object.defineProperty(e.prototype, "kind", {
2026
+ get: function() {
2027
+ return "annotation";
2028
+ },
2029
+ enumerable: !1,
2030
+ configurable: !0
2031
+ }), e.defaults = s({}, i.defaults), e;
2032
+ })(i);
2033
+ return P.MmlAnnotation = n, P;
2034
+ }
2035
+ var J = {}, Ot;
2036
+ function ee() {
2037
+ if (Ot) return J;
2038
+ Ot = 1;
2039
+ var y = J && J.__extends || /* @__PURE__ */ (function() {
2040
+ var i = function(n, t) {
2041
+ return i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
2042
+ e.__proto__ = r;
2043
+ } || function(e, r) {
2044
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
2045
+ }, i(n, t);
2046
+ };
2047
+ return function(n, t) {
2048
+ if (typeof t != "function" && t !== null)
2049
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
2050
+ i(n, t);
2051
+ function e() {
2052
+ this.constructor = n;
2053
+ }
2054
+ n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
2055
+ };
2056
+ })(), s = J && J.__assign || function() {
2057
+ return s = Object.assign || function(i) {
2058
+ for (var n, t = 1, e = arguments.length; t < e; t++) {
2059
+ n = arguments[t];
2060
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (i[r] = n[r]);
2061
+ }
2062
+ return i;
2063
+ }, s.apply(this, arguments);
2064
+ };
2065
+ Object.defineProperty(J, "__esModule", { value: !0 }), J.MmlMglyph = void 0;
2066
+ var c = g(), f = (function(i) {
2067
+ y(n, i);
2068
+ function n() {
2069
+ var t = i !== null && i.apply(this, arguments) || this;
2070
+ return t.texclass = c.TEXCLASS.ORD, t;
2071
+ }
2072
+ return Object.defineProperty(n.prototype, "kind", {
2073
+ get: function() {
2074
+ return "mglyph";
2075
+ },
2076
+ enumerable: !1,
2077
+ configurable: !0
2078
+ }), n.prototype.verifyAttributes = function(t) {
2079
+ var e = this.attributes.getList("src", "fontfamily", "index"), r = e.src, o = e.fontfamily, a = e.index;
2080
+ r === "" && (o === "" || a === "") ? this.mError("mglyph must have either src or fontfamily and index attributes", t, !0) : i.prototype.verifyAttributes.call(this, t);
2081
+ }, n.defaults = s(s({}, c.AbstractMmlTokenNode.defaults), { alt: "", src: "", index: "", width: "auto", height: "auto", valign: "0em" }), n;
2082
+ })(c.AbstractMmlTokenNode);
2083
+ return J.MmlMglyph = f, J;
2084
+ }
2085
+ var $ = {}, jt;
2086
+ function re() {
2087
+ if (jt) return $;
2088
+ jt = 1;
2089
+ var y = $ && $.__extends || /* @__PURE__ */ (function() {
2090
+ var n = function(t, e) {
2091
+ return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
2092
+ r.__proto__ = o;
2093
+ } || function(r, o) {
2094
+ for (var a in o) Object.prototype.hasOwnProperty.call(o, a) && (r[a] = o[a]);
2095
+ }, n(t, e);
2096
+ };
2097
+ return function(t, e) {
2098
+ if (typeof e != "function" && e !== null)
2099
+ throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
2100
+ n(t, e);
2101
+ function r() {
2102
+ this.constructor = t;
2103
+ }
2104
+ t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
2105
+ };
2106
+ })(), s = $ && $.__assign || function() {
2107
+ return s = Object.assign || function(n) {
2108
+ for (var t, e = 1, r = arguments.length; e < r; e++) {
2109
+ t = arguments[e];
2110
+ for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (n[o] = t[o]);
2111
+ }
2112
+ return n;
2113
+ }, s.apply(this, arguments);
2114
+ };
2115
+ Object.defineProperty($, "__esModule", { value: !0 }), $.TeXAtom = void 0;
2116
+ var c = g(), f = At(), i = (function(n) {
2117
+ y(t, n);
2118
+ function t(e, r, o) {
2119
+ var a = n.call(this, e, r, o) || this;
2120
+ return a.texclass = c.TEXCLASS.ORD, a.setProperty("texClass", a.texClass), a;
2121
+ }
2122
+ return Object.defineProperty(t.prototype, "kind", {
2123
+ get: function() {
2124
+ return "TeXAtom";
2125
+ },
2126
+ enumerable: !1,
2127
+ configurable: !0
2128
+ }), Object.defineProperty(t.prototype, "arity", {
2129
+ get: function() {
2130
+ return -1;
2131
+ },
2132
+ enumerable: !1,
2133
+ configurable: !0
2134
+ }), Object.defineProperty(t.prototype, "notParent", {
2135
+ get: function() {
2136
+ return this.childNodes[0] && this.childNodes[0].childNodes.length === 1;
2137
+ },
2138
+ enumerable: !1,
2139
+ configurable: !0
2140
+ }), t.prototype.setTeXclass = function(e) {
2141
+ return this.childNodes[0].setTeXclass(null), this.adjustTeXclass(e);
2142
+ }, t.prototype.adjustTeXclass = function(e) {
2143
+ return e;
2144
+ }, t.defaults = s({}, c.AbstractMmlBaseNode.defaults), t;
2145
+ })(c.AbstractMmlBaseNode);
2146
+ return $.TeXAtom = i, i.prototype.adjustTeXclass = f.MmlMo.prototype.adjustTeXclass, $;
2147
+ }
2148
+ export {
2149
+ kt as a,
2150
+ qt as b,
2151
+ Xt as c,
2152
+ It as d,
2153
+ Rt as e,
2154
+ Lt as f,
2155
+ Dt as g,
2156
+ Bt as h,
2157
+ Ft as i,
2158
+ Kt as j,
2159
+ zt as k,
2160
+ Ht as l,
2161
+ Jt as m,
2162
+ $t as n,
2163
+ St as o,
2164
+ Ut as p,
2165
+ Gt as q,
2166
+ Et as r,
2167
+ Qt as s,
2168
+ Vt as t,
2169
+ Wt as u,
2170
+ Yt as v,
2171
+ Zt as w,
2172
+ te as x,
2173
+ ee as y,
2174
+ re as z
2175
+ };