@pie-element/math-templated 7.1.1-next.15 → 7.1.1-next.17

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.
@@ -1,11 +1,11 @@
1
- import { C as e, g as t, n, o as r, t as i } from "./browser-Bh0vTpLq.js";
2
- import { At as a, J as o, M as s, S as c, a as l, b as u, d, f, ft as p, i as m, it as h, l as g, n as _, q as v, r as y, t as b, u as x, w as S } from "./dist-CEUn2InX.js";
3
- import { t as C } from "./dist-D9ARZhQk.js";
1
+ import { C as e, g as t, n, o as r, t as i } from "./browser-_ggI30Zt.js";
2
+ import { G as a, J as o, K as s, Nt as c, W as l, _ as u, b as d, c as f, it as p, k as m, l as h, n as g, o as _, q as v, s as y, t as b, ut as x, y as S } from "./horizontal-keypad-xHeOxFVV.js";
3
+ import { t as C } from "./dist-DiGNNRzu.js";
4
4
  import w, { useRef as T } from "react";
5
5
  import { jsx as E, jsxs as D } from "react/jsx-runtime";
6
6
  import ee from "react-dom";
7
7
  //#region ../../lib-react/icons/dist/correct-response-icon.js
8
- var O = /* @__PURE__ */ e(a(), 1), te = ({ bgFill: e, fgFill: t }) => /* @__PURE__ */ D("svg", {
8
+ var O = /* @__PURE__ */ e(c(), 1), te = ({ bgFill: e, fgFill: t }) => /* @__PURE__ */ D("svg", {
9
9
  preserveAspectRatio: "xMinYMin meet",
10
10
  version: "1.1",
11
11
  viewBox: "-283 359 34 35",
@@ -31,7 +31,7 @@ te.propTypes = {
31
31
  bgFill: O.default.string.isRequired,
32
32
  fgFill: O.default.string.isRequired
33
33
  };
34
- var k = ({ bgFill: e, fgFill: t, borderFill: n }) => /* @__PURE__ */ D("svg", {
34
+ var ne = ({ bgFill: e, fgFill: t, borderFill: n }) => /* @__PURE__ */ D("svg", {
35
35
  preserveAspectRatio: "xMinYMin meet",
36
36
  version: "1.1",
37
37
  viewBox: "-129.5 127 34 35",
@@ -71,32 +71,32 @@ var k = ({ bgFill: e, fgFill: t, borderFill: n }) => /* @__PURE__ */ D("svg", {
71
71
  })
72
72
  ]
73
73
  });
74
- k.propTypes = {
74
+ ne.propTypes = {
75
75
  bgFill: O.default.string.isRequired,
76
76
  fgFill: O.default.string.isRequired,
77
77
  borderFill: O.default.string.isRequired
78
78
  };
79
- var ne = p("div")(({ size: e }) => ({
79
+ var re = x("div")(({ size: e }) => ({
80
80
  width: e || "25px",
81
81
  height: e || "25px"
82
- })), A = ({ open: e, size: t }) => /* @__PURE__ */ E(ne, {
82
+ })), k = ({ open: e, size: t }) => /* @__PURE__ */ E(re, {
83
83
  size: t,
84
84
  children: e ? /* @__PURE__ */ E(te, {
85
85
  bgFill: "#bce2ff",
86
86
  fgFill: "#1a9cff"
87
- }) : /* @__PURE__ */ E(k, {
87
+ }) : /* @__PURE__ */ E(ne, {
88
88
  bgFill: "white",
89
89
  fgFill: "#1a9cff",
90
90
  borderFill: "#bce2ff"
91
91
  })
92
92
  });
93
- A.propTypes = {
93
+ k.propTypes = {
94
94
  open: O.default.bool,
95
95
  size: O.default.string
96
- }, A.defaultProps = { open: !1 };
96
+ }, k.defaultProps = { open: !1 };
97
97
  //#endregion
98
98
  //#region ../../lib-react/mask-markup/dist/componentize.js
99
- var re = /* @__PURE__ */ e(i(), 1), ie = /\{\{(\d+)\}\}/g, ae = (e, t) => e ? { markup: e.replace(ie, (e, n) => `<span data-component="${t}" data-id="${n}"></span>`) } : { markup: "" }, j = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), M = /* @__PURE__ */ j(((e, t) => {
99
+ var ie = /* @__PURE__ */ e(i(), 1), ae = /\{\{(\d+)\}\}/g, oe = (e, t) => e ? { markup: e.replace(ae, (e, n) => `<span data-component="${t}" data-id="${n}"></span>`) } : { markup: "" }, A = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), j = /* @__PURE__ */ A(((e, t) => {
100
100
  t.exports = {
101
101
  "border-radius": 1,
102
102
  "border-top-left-radius": 1,
@@ -123,10 +123,10 @@ var re = /* @__PURE__ */ e(i(), 1), ie = /\{\{(\d+)\}\}/g, ae = (e, t) => e ? {
123
123
  "box-pack": 1
124
124
  };
125
125
  }));
126
- M();
126
+ j();
127
127
  //#endregion
128
128
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/cssUnitless.js
129
- var N = /* @__PURE__ */ j(((e, t) => {
129
+ var M = /* @__PURE__ */ A(((e, t) => {
130
130
  t.exports = {
131
131
  animation: 1,
132
132
  "column-count": 1,
@@ -146,19 +146,19 @@ var N = /* @__PURE__ */ j(((e, t) => {
146
146
  rowspan: 1
147
147
  };
148
148
  }));
149
- N();
149
+ M();
150
150
  //#endregion
151
151
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/toUpperFirst.js
152
- var P = /* @__PURE__ */ j(((e, t) => {
152
+ var N = /* @__PURE__ */ A(((e, t) => {
153
153
  t.exports = function(e) {
154
154
  return e.length ? e.charAt(0).toUpperCase() + e.substring(1) : e;
155
155
  };
156
156
  }));
157
- P();
157
+ N();
158
158
  //#endregion
159
159
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/prefixInfo.js
160
- var F = /* @__PURE__ */ j(((e, t) => {
161
- var n = P(), r = /^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/, i = typeof document > "u" ? {} : document.documentElement.style;
160
+ var P = /* @__PURE__ */ A(((e, t) => {
161
+ var n = N(), r = /^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/, i = typeof document > "u" ? {} : document.documentElement.style;
162
162
  t.exports = (function() {
163
163
  var e = (function() {
164
164
  for (var e in i) if (r.test(e)) return e.match(r)[0];
@@ -175,54 +175,54 @@ var F = /* @__PURE__ */ j(((e, t) => {
175
175
  };
176
176
  })();
177
177
  }));
178
- F();
178
+ P();
179
179
  //#endregion
180
180
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/hyphenRe.js
181
- var oe = /* @__PURE__ */ j(((e, t) => {
181
+ var se = /* @__PURE__ */ A(((e, t) => {
182
182
  t.exports = /[-\s]+(.)?/g;
183
183
  }));
184
- oe();
184
+ se();
185
185
  //#endregion
186
186
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/camelize.js
187
- var I = /* @__PURE__ */ j(((e, t) => {
187
+ var F = /* @__PURE__ */ A(((e, t) => {
188
188
  var n = function(e, t) {
189
189
  return t ? t.toUpperCase() : "";
190
- }, r = oe();
190
+ }, r = se();
191
191
  t.exports = function(e) {
192
192
  return e ? e.replace(r, n) : "";
193
193
  };
194
194
  }));
195
- I();
195
+ F();
196
196
  //#endregion
197
197
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/separate.js
198
- var se = /* @__PURE__ */ j(((e, t) => {
198
+ var ce = /* @__PURE__ */ A(((e, t) => {
199
199
  var n = /::/g, r = /([A-Z]+)([A-Z][a-z])/g, i = /([a-z\d])([A-Z])/g, a = /_/g;
200
200
  t.exports = function(e, t) {
201
201
  return e ? e.replace(n, "/").replace(r, "$1_$2").replace(i, "$1_$2").replace(a, t || "-") : "";
202
202
  };
203
203
  }));
204
- se();
204
+ ce();
205
205
  //#endregion
206
206
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/hyphenate.js
207
- var L = /* @__PURE__ */ j(((e, t) => {
208
- var n = se();
207
+ var I = /* @__PURE__ */ A(((e, t) => {
208
+ var n = ce();
209
209
  t.exports = function(e) {
210
210
  return n(e).toLowerCase();
211
211
  };
212
212
  }));
213
- L();
213
+ I();
214
214
  //#endregion
215
215
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/toLowerFirst.js
216
- var ce = /* @__PURE__ */ j(((e, t) => {
216
+ var le = /* @__PURE__ */ A(((e, t) => {
217
217
  t.exports = function(e) {
218
218
  return e.length ? e.charAt(0).toLowerCase() + e.substring(1) : e;
219
219
  };
220
220
  }));
221
- ce();
221
+ le();
222
222
  //#endregion
223
223
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/prefixer.js
224
- var le = /* @__PURE__ */ j(((e, t) => {
225
- var n = I(), r = L(), i = ce(), a = P(), o = F(), s = M(), c = typeof document > "u" ? {} : document.documentElement.style;
224
+ var ue = /* @__PURE__ */ A(((e, t) => {
225
+ var n = F(), r = I(), i = le(), a = N(), o = P(), s = j(), c = typeof document > "u" ? {} : document.documentElement.style;
226
226
  t.exports = function(e) {
227
227
  return function(t, l) {
228
228
  l ||= {};
@@ -239,45 +239,45 @@ var le = /* @__PURE__ */ j(((e, t) => {
239
239
  };
240
240
  };
241
241
  }));
242
- le();
242
+ ue();
243
243
  //#endregion
244
244
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/cssPrefix.js
245
- var ue = /* @__PURE__ */ j(((e, t) => {
246
- t.exports = le()();
245
+ var de = /* @__PURE__ */ A(((e, t) => {
246
+ t.exports = ue()();
247
247
  }));
248
- ue();
248
+ de();
249
249
  //#endregion
250
250
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/hasOwn.js
251
- var R = /* @__PURE__ */ j(((e, t) => {
251
+ var L = /* @__PURE__ */ A(((e, t) => {
252
252
  var n = Object.prototype.hasOwnProperty;
253
253
  t.exports = function(e, t) {
254
254
  return n.call(e, t);
255
255
  };
256
256
  }));
257
- R();
257
+ L();
258
258
  //#endregion
259
259
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/isObject.js
260
- var de = /* @__PURE__ */ j(((e, t) => {
260
+ var fe = /* @__PURE__ */ A(((e, t) => {
261
261
  var n = Object.prototype.toString;
262
262
  t.exports = function(e) {
263
263
  return !!e && n.call(e) === "[object Object]";
264
264
  };
265
265
  }));
266
- de();
266
+ fe();
267
267
  //#endregion
268
268
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/isFunction.js
269
- var fe = /* @__PURE__ */ j(((e, t) => {
269
+ var pe = /* @__PURE__ */ A(((e, t) => {
270
270
  var n = Object.prototype.toString;
271
271
  t.exports = function(e) {
272
272
  return n.apply(e) === "[object Function]";
273
273
  };
274
274
  }));
275
- fe();
275
+ pe();
276
276
  //#endregion
277
277
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/toStyleObject.js
278
- var z = /* @__PURE__ */ j(((e, t) => {
279
- F();
280
- var n = ue(), r = L(), i = I(), a = R(), o = de(), s = fe(), c = function(e, t, r, i) {
278
+ var R = /* @__PURE__ */ A(((e, t) => {
279
+ P();
280
+ var n = de(), r = I(), i = F(), a = L(), o = fe(), s = pe(), c = function(e, t, r, i) {
281
281
  n(t).forEach(function(t) {
282
282
  e[i ? i(t) : t] = r;
283
283
  });
@@ -288,7 +288,7 @@ var z = /* @__PURE__ */ j(((e, t) => {
288
288
  var n = e.split(":");
289
289
  n.length == 2 && (t[n[0].trim()] = n[1].trim());
290
290
  }), t;
291
- }, u = { cssUnitless: N() }, d = function(e, t, n, f) {
291
+ }, u = { cssUnitless: M() }, d = function(e, t, n, f) {
292
292
  typeof e == "string" && (e = l(e)), t ||= u, t.cssUnitless = t.cssUnitless || u.cssUnitless, f ||= {};
293
293
  var p = t.scope || {}, m = t.addUnits == null ? p && p.addUnits != null ? p.addUnits : !0 : t.addUnits, h = (t.cssUnitless == null ? p ? p.cssUnitless : null : t.cssUnitless) || {}, g = (t.cssUnit || p ? p.cssUnit : null) || "px", _ = t.prefixProperties || (p ? p.prefixProperties : null) || {}, v = t.camelize ? i : r, y, b, x, S, C, w, T, E;
294
294
  for (x in e) if (a(e, x)) {
@@ -317,11 +317,11 @@ var z = /* @__PURE__ */ j(((e, t) => {
317
317
  };
318
318
  t.exports = d;
319
319
  }));
320
- z();
320
+ R();
321
321
  //#endregion
322
322
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/toStyleString.js
323
- var pe = /* @__PURE__ */ j(((e, t) => {
324
- var n = z(), r = R();
323
+ var me = /* @__PURE__ */ A(((e, t) => {
324
+ var n = R(), r = L();
325
325
  t.exports = function(e, t) {
326
326
  e = n(e, t);
327
327
  var i = [], a;
@@ -329,25 +329,25 @@ var pe = /* @__PURE__ */ j(((e, t) => {
329
329
  return i.join("; ");
330
330
  };
331
331
  }));
332
- pe();
332
+ me();
333
333
  //#endregion
334
334
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/index.js
335
- var me = /* @__PURE__ */ j(((e, t) => {
335
+ var he = /* @__PURE__ */ A(((e, t) => {
336
336
  t.exports = {
337
- prefixProperties: M(),
338
- cssUnitless: N(),
339
- object: z(),
340
- string: pe()
337
+ prefixProperties: j(),
338
+ cssUnitless: M(),
339
+ object: R(),
340
+ string: me()
341
341
  };
342
342
  }));
343
- me();
343
+ he();
344
344
  //#endregion
345
345
  //#region ../../lib-react/mask-markup/dist/serialization.js
346
- var he = me(), ge = (0, re.default)("@pie-lib:mask-markup:serialization"), _e = ["span"], ve = [
346
+ var ge = he(), _e = (0, ie.default)("@pie-lib:mask-markup:serialization"), ve = ["span"], ye = [
347
347
  "em",
348
348
  "strong",
349
349
  "u"
350
- ], ye = 3, be = 8, xe = 1, Se = (e) => {
350
+ ], be = 3, xe = 8, Se = 1, Ce = (e) => {
351
351
  if (!e.attributes || e.attributes.length <= 0) return;
352
352
  let t = {}, n;
353
353
  for (n = 0; n < e.attributes.length; n++) {
@@ -355,44 +355,44 @@ var he = me(), ge = (0, re.default)("@pie-lib:mask-markup:serialization"), _e =
355
355
  t[r.name] = r.value;
356
356
  }
357
357
  return t;
358
- }, Ce = (e) => _e.includes(e) ? "inline" : ve.includes(e) ? "mark" : "block", we = (e) => {
358
+ }, we = (e) => ve.includes(e) ? "inline" : ye.includes(e) ? "mark" : "block", Te = (e) => {
359
359
  let t = /([\w-]*)\s*:\s*([^;]*)/g, n, r = {};
360
360
  for (; n = t.exec(e);) r[n[1]] = n[2].trim();
361
361
  return r;
362
- }, Te = (e) => (0, he.object)(e, {
362
+ }, Ee = (e) => (0, ge.object)(e, {
363
363
  camelize: !0,
364
364
  addUnits: !1
365
- }), Ee = (e, t) => Te(we(e.getAttribute(t))), De = (e, t, n) => {
365
+ }), De = (e, t) => Ee(Te(e.getAttribute(t))), Oe = (e, t, n) => {
366
366
  let r = e.getAttribute(n);
367
367
  return delete t.class, r;
368
- }, Oe = (e) => (t, n) => {
368
+ }, ke = (e) => (t, n) => {
369
369
  if (!e.getAttribute) return t;
370
370
  if (e.getAttribute(n)) switch (n) {
371
371
  case "style":
372
- t.style = Ee(e, n);
372
+ t.style = De(e, n);
373
373
  break;
374
374
  case "class":
375
- t.className = De(e, t, n);
375
+ t.className = Oe(e, t, n);
376
376
  break;
377
377
  default:
378
378
  t[n] = e.getAttribute(n);
379
379
  break;
380
380
  }
381
381
  return t;
382
- }, ke = [
382
+ }, Ae = [
383
383
  "border",
384
384
  "class",
385
385
  "style"
386
- ], B = {
386
+ ], z = {
387
387
  b: "bold",
388
388
  em: "italic",
389
389
  u: "underline",
390
390
  s: "strikethrough",
391
391
  code: "code",
392
392
  strong: "strong"
393
- }, Ae = (e, t = []) => {
394
- if (e.nodeType === be) return null;
395
- if (e.nodeType === ye) {
393
+ }, je = (e, t = []) => {
394
+ if (e.nodeType === xe) return null;
395
+ if (e.nodeType === be) {
396
396
  let n = { text: e.textContent };
397
397
  return t.length > 0 && (n.marks = t.map((e) => ({
398
398
  type: e,
@@ -402,19 +402,19 @@ var he = me(), ge = (0, re.default)("@pie-lib:mask-markup:serialization"), _e =
402
402
  leaves: [n]
403
403
  };
404
404
  }
405
- if (e.nodeType === xe) {
406
- let n = e.tagName.toLowerCase(), r = B[n];
407
- if (r) return ge("[deserialize] mark: ", r), {
405
+ if (e.nodeType === Se) {
406
+ let n = e.tagName.toLowerCase(), r = z[n];
407
+ if (r) return _e("[deserialize] mark: ", r), {
408
408
  _flatten: !0,
409
- nodes: V(e.childNodes, [...t, r])
409
+ nodes: B(e.childNodes, [...t, r])
410
410
  };
411
411
  if (n === "math") return {
412
412
  isMath: !0,
413
413
  nodes: [e]
414
414
  };
415
- let i = Se(e) || {};
415
+ let i = Ce(e) || {};
416
416
  n === "audio" && i.controls === "" && (i.controls = !0);
417
- let a = ke.reduce(Oe(e), { ...i }), o = Ce(n), s = V(e.childNodes, t);
417
+ let a = Ae.reduce(ke(e), { ...i }), o = we(n), s = B(e.childNodes, t);
418
418
  return {
419
419
  object: o,
420
420
  type: n,
@@ -426,14 +426,14 @@ var he = me(), ge = (0, re.default)("@pie-lib:mask-markup:serialization"), _e =
426
426
  };
427
427
  }
428
428
  return null;
429
- }, V = (e, t = []) => {
429
+ }, B = (e, t = []) => {
430
430
  let n = [];
431
431
  for (let r = 0; r < e.length; r++) {
432
- let i = Ae(e[r], t);
432
+ let i = je(e[r], t);
433
433
  i !== null && (i._flatten && i.nodes ? n.push(...i.nodes) : n.push(i));
434
434
  }
435
435
  return n;
436
- }, je = (e) => {
436
+ }, Me = (e) => {
437
437
  if (!e || !e.trim()) return {
438
438
  object: "value",
439
439
  document: {
@@ -448,7 +448,7 @@ var he = me(), ge = (0, re.default)("@pie-lib:mask-markup:serialization"), _e =
448
448
  }]
449
449
  }
450
450
  };
451
- let t = V(new DOMParser().parseFromString(e, "text/html").body.childNodes);
451
+ let t = B(new DOMParser().parseFromString(e, "text/html").body.childNodes);
452
452
  return !t.some((e) => e.object === "block" || e.object === "inline") && t.length > 0 && (t = [{
453
453
  object: "block",
454
454
  type: "span",
@@ -469,19 +469,19 @@ var he = me(), ge = (0, re.default)("@pie-lib:mask-markup:serialization"), _e =
469
469
  nodes: t
470
470
  }
471
471
  };
472
- }, Me = p("div")(({ theme: e }) => ({
472
+ }, Ne = x("div")(({ theme: e }) => ({
473
473
  paddingTop: e.spacing(.5),
474
474
  paddingBottom: e.spacing(.5)
475
- })), H = p("span")(() => ({
475
+ })), V = x("span")(() => ({
476
476
  display: "inline-block",
477
477
  width: ".75em"
478
- })), Ne = ["tbody", "tr"], Pe = (e, t) => {
478
+ })), Pe = ["tbody", "tr"], Fe = (e, t) => {
479
479
  let n = t.trim() === "", r = e && e.type;
480
- if (!(n && Ne.includes(r))) return t;
481
- }, Fe = (e) => {
480
+ if (!(n && Pe.includes(r))) return t;
481
+ }, Ie = (e) => {
482
482
  let n = e.leaves.find((e) => t(e, "marks", []).length);
483
- return n ? n.marks[0] : null;
484
- }, U = (e, t, n, r, i, a) => {
483
+ return n ? n.marks : null;
484
+ }, H = (e, t, n, r, i, a) => {
485
485
  if (!t) return null;
486
486
  let o = [];
487
487
  return (e.nodes || []).forEach((e, s) => {
@@ -491,26 +491,22 @@ var he = me(), ge = (0, re.default)("@pie-lib:mask-markup:serialization"), _e =
491
491
  let i = r(e, t, n);
492
492
  if (i) {
493
493
  let t = e.data?.dataset?.component === "blank";
494
- t && o.push(/* @__PURE__ */ E(H, {}, `spacer-${s}`)), o.push(i), t && o.push(/* @__PURE__ */ E(H, {}, `spacer-${s}`));
494
+ t && o.push(/* @__PURE__ */ E(V, {}, `spacer-${s}`)), o.push(i), t && o.push(/* @__PURE__ */ E(V, {}, `spacer-${s}`));
495
495
  return;
496
496
  }
497
497
  }
498
498
  if (e.object === "text") {
499
499
  let t = e.leaves.reduce((e, t) => {
500
- let n = t.text, r = Pe(i, n);
500
+ let n = t.text, r = Fe(i, n);
501
501
  return r ? e + r : e;
502
- }, ""), n = Fe(e);
503
- if (n) {
504
- let e;
505
- for (e in B) if (B[e] === n.type) {
506
- let n = e;
507
- o.push(/* @__PURE__ */ E(n, { children: t }, c));
508
- break;
509
- }
502
+ }, ""), n = Ie(e);
503
+ if (n?.length > 0) {
504
+ let e = n.map((e) => Object.keys(z).find((t) => z[t] === e.type)).filter(Boolean);
505
+ e.length > 0 ? o.push(e.reduceRight((e, t, n) => /* @__PURE__ */ E(t, { children: e }, `${c}-${t}-${n}`), t)) : o.push(t);
510
506
  } else t.length > 0 && o.push(t);
511
507
  } else {
512
- let i = U(e, t, n, r, e, a);
513
- if (e.type === "p" || e.type === "paragraph") o.push(/* @__PURE__ */ E(Me, { children: i }, c));
508
+ let i = H(e, t, n, r, e, a);
509
+ if (e.type === "p" || e.type === "paragraph") o.push(/* @__PURE__ */ E(Ne, { children: i }, c));
514
510
  else {
515
511
  let t = e.type;
516
512
  e.nodes && e.nodes.length > 0 ? o.push(/* @__PURE__ */ E(t, {
@@ -520,14 +516,14 @@ var he = me(), ge = (0, re.default)("@pie-lib:mask-markup:serialization"), _e =
520
516
  }
521
517
  }
522
518
  }), o;
523
- }, Ie = p("div")(() => ({
519
+ }, Le = x("div")(() => ({
524
520
  display: "initial",
525
521
  "&:not(.MathJax) table": { borderCollapse: "collapse" },
526
522
  "&:not(.MathJax) table td, &:not(.MathJax) table th": {
527
523
  padding: "8px 12px",
528
524
  textAlign: "left"
529
525
  }
530
- })), Le = class extends w.Component {
526
+ })), Re = class extends w.Component {
531
527
  constructor(e) {
532
528
  super(e), this.internalContainerRef = w.createRef();
533
529
  }
@@ -541,7 +537,7 @@ var he = me(), ge = (0, re.default)("@pie-lib:mask-markup:serialization"), _e =
541
537
  };
542
538
  componentDidMount() {
543
539
  let e = this.props.containerRef || this.internalContainerRef;
544
- e.current && typeof S == "function" && S(e.current);
540
+ e.current && typeof d == "function" && d(e.current);
545
541
  }
546
542
  handleChange = (e, t) => {
547
543
  let n = {
@@ -551,16 +547,16 @@ var he = me(), ge = (0, re.default)("@pie-lib:mask-markup:serialization"), _e =
551
547
  this.props.onChange(n);
552
548
  };
553
549
  render() {
554
- let { value: e, layout: t, elementType: n, containerRef: r } = this.props, i = U(t, e, this.handleChange, this.props.renderChildren, null, n);
555
- return /* @__PURE__ */ E(Ie, {
550
+ let { value: e, layout: t, elementType: n, containerRef: r } = this.props, i = H(t, e, this.handleChange, this.props.renderChildren, null, n);
551
+ return /* @__PURE__ */ E(Le, {
556
552
  ref: r || this.internalContainerRef,
557
553
  children: i
558
554
  });
559
555
  }
560
- }, Re = (e, t) => {
561
- let { markup: n } = ae(e, t);
562
- return je(n).document;
563
- }, ze = ((e, t) => class extends w.Component {
556
+ }, ze = (e, t) => {
557
+ let { markup: n } = oe(e, t);
558
+ return Me(n).document;
559
+ }, Be = ((e, t) => class extends w.Component {
564
560
  static propTypes = {
565
561
  markup: O.default.string,
566
562
  layout: O.default.object,
@@ -582,8 +578,8 @@ var he = me(), ge = (0, re.default)("@pie-lib:mask-markup:serialization"), _e =
582
578
  }
583
579
  }
584
580
  render() {
585
- let { markup: n, layout: r, value: i, onChange: a, elementType: o } = this.props, s = r || Re(n, e);
586
- return /* @__PURE__ */ E(Le, {
581
+ let { markup: n, layout: r, value: i, onChange: a, elementType: o } = this.props, s = r || ze(n, e);
582
+ return /* @__PURE__ */ E(Re, {
587
583
  containerRef: this.containerRef,
588
584
  elementType: o,
589
585
  layout: s,
@@ -595,7 +591,7 @@ var he = me(), ge = (0, re.default)("@pie-lib:mask-markup:serialization"), _e =
595
591
  })("input", (e) => (t, n, r) => {
596
592
  let i = t.data && t.data.dataset || {};
597
593
  if (i.component === "input") return e.customMarkMarkupComponent(i.id);
598
- }), W = "height ease-in 300ms, opacity ease-in 300ms", Be = p("div")(() => ({
594
+ }), U = "height ease-in 300ms, opacity ease-in 300ms", Ve = x("div")(() => ({
599
595
  position: "relative",
600
596
  height: 0,
601
597
  overflow: "hidden",
@@ -603,7 +599,7 @@ var he = me(), ge = (0, re.default)("@pie-lib:mask-markup:serialization"), _e =
603
599
  visibility: "hidden",
604
600
  width: 0,
605
601
  "&.enter": {
606
- transition: W,
602
+ transition: U,
607
603
  opacity: 1,
608
604
  height: "auto",
609
605
  width: "auto",
@@ -617,7 +613,7 @@ var he = me(), ge = (0, re.default)("@pie-lib:mask-markup:serialization"), _e =
617
613
  minHeight: "25px"
618
614
  },
619
615
  "&.exit": {
620
- transition: W,
616
+ transition: U,
621
617
  opacity: 0,
622
618
  height: 0,
623
619
  visibility: "visible",
@@ -629,9 +625,9 @@ var he = me(), ge = (0, re.default)("@pie-lib:mask-markup:serialization"), _e =
629
625
  height: 0,
630
626
  width: 0
631
627
  }
632
- })), Ve = (e) => {
628
+ })), He = (e) => {
633
629
  let { show: t, children: n, className: r } = e, i = T(null);
634
- return /* @__PURE__ */ E(h, {
630
+ return /* @__PURE__ */ E(p, {
635
631
  nodeRef: i,
636
632
  in: t,
637
633
  appear: !0,
@@ -643,49 +639,49 @@ var he = me(), ge = (0, re.default)("@pie-lib:mask-markup:serialization"), _e =
643
639
  exit: "exit",
644
640
  exitDone: "exit-done"
645
641
  },
646
- children: /* @__PURE__ */ E(Be, {
642
+ children: /* @__PURE__ */ E(Ve, {
647
643
  ref: i,
648
644
  className: r,
649
645
  children: n
650
646
  })
651
647
  });
652
648
  };
653
- Ve.propTypes = {
649
+ He.propTypes = {
654
650
  show: O.default.bool.isRequired,
655
651
  className: O.default.string,
656
652
  children: O.default.oneOfType([O.default.arrayOf(O.default.node), O.default.node]).isRequired
657
653
  };
658
654
  //#endregion
659
655
  //#region ../../lib-react/correct-answer-toggle/dist/index.js
660
- function G(e) {
656
+ function W(e) {
661
657
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
662
658
  }
663
- function He(e, t) {
664
- return !e || G(e) ? e : G(e.default) ? e.default : t && G(e[t]) ? e[t] : t && G(e[t]?.default) ? e[t].default : e;
659
+ function Ue(e, t) {
660
+ return !e || W(e) ? e : W(e.default) ? e.default : t && W(e[t]) ? e[t] : t && W(e[t]?.default) ? e[t].default : e;
665
661
  }
666
- var Ue = He(d, "Readable") || He(Ge.Readable, "Readable"), We = l, K = We.default, Ge = K && typeof K == "object" ? K : We, { translator: q } = C, Ke = {
662
+ var We = Ue(f, "Readable") || Ue(Ke.Readable, "Readable"), Ge = g, G = Ge.default, Ke = G && typeof G == "object" ? G : Ge, { translator: K } = C, qe = {
667
663
  WebkitTouchCallout: "none",
668
664
  WebkitUserSelect: "none",
669
665
  KhtmlUserSelect: "none",
670
666
  MozUserSelect: "none",
671
667
  msUserSelect: "none",
672
668
  userSelect: "none"
673
- }, qe = p("div")(() => ({
669
+ }, Je = x("div")(() => ({
674
670
  width: "100%",
675
671
  cursor: "pointer"
676
- })), Je = p("div")(() => ({
672
+ })), Ye = x("div")(() => ({
677
673
  margin: "0 auto",
678
674
  textAlign: "center",
679
675
  display: "flex"
680
- })), Ye = p("div")(() => ({
676
+ })), Xe = x("div")(() => ({
681
677
  width: "fit-content",
682
678
  minWidth: "140px",
683
679
  alignSelf: "center",
684
680
  verticalAlign: "middle",
685
- color: `var(--correct-answer-toggle-label-color, ${s.text()})`,
681
+ color: `var(--correct-answer-toggle-label-color, ${m.text()})`,
686
682
  fontWeight: "normal",
687
- ...Ke
688
- })), Xe = p("div")(() => ({
683
+ ...qe
684
+ })), Ze = x("div")(() => ({
689
685
  position: "absolute",
690
686
  width: "25px",
691
687
  "&.enter": { opacity: "0" },
@@ -698,12 +694,12 @@ var Ue = He(d, "Readable") || He(Ge.Readable, "Readable"), We = l, K = We.defaul
698
694
  opacity: "0",
699
695
  transition: "opacity 0.3s ease-in"
700
696
  }
701
- })), Ze = p("div")(() => ({
697
+ })), Qe = x("div")(() => ({
702
698
  width: "25px",
703
699
  marginRight: "5px",
704
700
  display: "flex",
705
701
  alignItems: "center"
706
- })), Qe = class e extends w.Component {
702
+ })), $e = class e extends w.Component {
707
703
  static propTypes = {
708
704
  onToggle: O.default.func,
709
705
  toggled: O.default.bool,
@@ -722,8 +718,8 @@ var Ue = He(d, "Readable") || He(Ge.Readable, "Readable"), We = l, K = We.defaul
722
718
  constructor(t) {
723
719
  super(t), this.state = { show: t.show }, this.openIconRef = w.createRef(), this.closedIconRef = w.createRef(), e.defaultProps = {
724
720
  ...e.defaultProps,
725
- showMessage: q.t("common:showCorrectAnswer", { lng: t.language }),
726
- hideMessage: q.t("common:hideCorrectAnswer", { lng: t.language })
721
+ showMessage: K.t("common:showCorrectAnswer", { lng: t.language }),
722
+ hideMessage: K.t("common:hideCorrectAnswer", { lng: t.language })
727
723
  };
728
724
  }
729
725
  onClick() {
@@ -735,20 +731,20 @@ var Ue = He(d, "Readable") || He(Ge.Readable, "Readable"), We = l, K = We.defaul
735
731
  UNSAFE_componentWillReceiveProps(t) {
736
732
  this.setState({ show: t.show }), t.language !== this.props?.language && (e.defaultProps = {
737
733
  ...e.defaultProps,
738
- showMessage: q.t("common:showCorrectAnswer", { lng: t.language }),
739
- hideMessage: q.t("common:hideCorrectAnswer", { lng: t.language })
734
+ showMessage: K.t("common:showCorrectAnswer", { lng: t.language }),
735
+ hideMessage: K.t("common:hideCorrectAnswer", { lng: t.language })
740
736
  });
741
737
  }
742
738
  render() {
743
739
  let { className: e, toggled: t, hideMessage: n, showMessage: r } = this.props;
744
- return /* @__PURE__ */ E(qe, {
740
+ return /* @__PURE__ */ E(Je, {
745
741
  className: e,
746
- children: /* @__PURE__ */ E(Ve, {
742
+ children: /* @__PURE__ */ E(He, {
747
743
  show: this.state.show,
748
- children: /* @__PURE__ */ D(Je, {
744
+ children: /* @__PURE__ */ D(Ye, {
749
745
  onClick: this.onClick.bind(this),
750
746
  onTouchEnd: this.onTouch.bind(this),
751
- children: [/* @__PURE__ */ D(Ze, { children: [/* @__PURE__ */ E(h, {
747
+ children: [/* @__PURE__ */ D(Qe, { children: [/* @__PURE__ */ E(p, {
752
748
  nodeRef: this.openIconRef,
753
749
  timeout: 400,
754
750
  in: t,
@@ -759,11 +755,11 @@ var Ue = He(d, "Readable") || He(Ge.Readable, "Readable"), We = l, K = We.defaul
759
755
  exit: "exit",
760
756
  exitActive: "exit-active"
761
757
  },
762
- children: /* @__PURE__ */ E(Xe, {
758
+ children: /* @__PURE__ */ E(Ze, {
763
759
  ref: this.openIconRef,
764
- children: /* @__PURE__ */ E(A, { open: t }, "correct-open")
760
+ children: /* @__PURE__ */ E(k, { open: t }, "correct-open")
765
761
  })
766
- }), /* @__PURE__ */ E(h, {
762
+ }), /* @__PURE__ */ E(p, {
767
763
  nodeRef: this.closedIconRef,
768
764
  timeout: 5e3,
769
765
  in: !t,
@@ -774,13 +770,13 @@ var Ue = He(d, "Readable") || He(Ge.Readable, "Readable"), We = l, K = We.defaul
774
770
  exit: "exit",
775
771
  exitActive: "exit-active"
776
772
  },
777
- children: /* @__PURE__ */ E(Xe, {
773
+ children: /* @__PURE__ */ E(Ze, {
778
774
  ref: this.closedIconRef,
779
- children: /* @__PURE__ */ E(A, { open: t }, "correct-closed")
775
+ children: /* @__PURE__ */ E(k, { open: t }, "correct-closed")
780
776
  })
781
- })] }), /* @__PURE__ */ E(Ue, {
777
+ })] }), /* @__PURE__ */ E(We, {
782
778
  false: !0,
783
- children: /* @__PURE__ */ E(Ye, {
779
+ children: /* @__PURE__ */ E(Xe, {
784
780
  "aria-hidden": !this.state.show,
785
781
  children: t ? n : r
786
782
  })
@@ -792,22 +788,22 @@ var Ue = He(d, "Readable") || He(Ge.Readable, "Readable"), We = l, K = We.defaul
792
788
  };
793
789
  //#endregion
794
790
  //#region src/delivery/main.tsx
795
- function J(e) {
791
+ function q(e) {
796
792
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
797
793
  }
798
- function Y(e, t) {
799
- return !e || J(e) ? e : J(e.default) ? e.default : t && J(e[t]) ? e[t] : t && J(e[t]?.default) ? e[t].default : e;
794
+ function J(e, t) {
795
+ return !e || q(e) ? e : q(e.default) ? e.default : t && q(e[t]) ? e[t] : t && q(e[t]?.default) ? e[t].default : e;
800
796
  }
801
- var $e = Y(u, "UiLayout") || Y(Q.UiLayout, "UiLayout"), X = Y(f, "PreviewPrompt") || Y(Q.PreviewPrompt, "PreviewPrompt"), et = Y(d, "Readable") || Y(Q.Readable, "Readable"), tt = Y(c, "Collapsible") || Y(Q.Collapsible, "Collapsible"), nt = l, Z = nt.default, Q = Z && typeof Z == "object" ? Z : nt, rt = p($e)({
802
- color: s.text(),
803
- backgroundColor: s.background(),
797
+ var et = J(u, "UiLayout") || J(Z.UiLayout, "UiLayout"), Y = J(h, "PreviewPrompt") || J(Z.PreviewPrompt, "PreviewPrompt"), tt = J(f, "Readable") || J(Z.Readable, "Readable"), nt = J(S, "Collapsible") || J(Z.Collapsible, "Collapsible"), rt = g, X = rt.default, Z = X && typeof X == "object" ? X : rt, it = x(et)({
798
+ color: m.text(),
799
+ backgroundColor: m.background(),
804
800
  display: "inline-block"
805
- }), it = p("div")({
801
+ }), Q = x("div")({
806
802
  width: "100%",
807
803
  position: "relative",
808
- backgroundColor: s.background(),
809
- color: s.text()
810
- }), at = p("div")(({ theme: e }) => ({ marginBottom: e.spacing(2) })), ot = p("div")(({ theme: e }) => ({ marginBottom: e.spacing(2) })), st = p("div")({
804
+ backgroundColor: m.background(),
805
+ color: m.text()
806
+ }), at = x("div")(({ theme: e }) => ({ marginBottom: e.spacing(2) })), ot = x("div")(({ theme: e }) => ({ marginBottom: e.spacing(2) })), st = x("div")({
811
807
  position: "relative",
812
808
  "& > div > div": {
813
809
  display: "flex",
@@ -842,10 +838,10 @@ var $e = Y(u, "UiLayout") || Y(Q.UiLayout, "UiLayout"), X = Y(f, "PreviewPrompt"
842
838
  paddingTop: "1.5px !important"
843
839
  },
844
840
  "& .mq-parallelogram": { lineHeight: .85 }
845
- }), ct = p("div")(({ theme: e, $incorrect: t, $correct: n, $showCorrectness: r, $correctAnswerShown: i }) => ({
841
+ }), ct = x("div")(({ theme: e, $incorrect: t, $correct: n, $showCorrectness: r, $correctAnswerShown: i }) => ({
846
842
  maxWidth: "fit-content",
847
- ...t && { borderColor: `${s.incorrect()} !important` },
848
- ...n && { borderColor: `${s.correct()} !important` },
843
+ ...t && { borderColor: `${m.incorrect()} !important` },
844
+ ...n && { borderColor: `${m.correct()} !important` },
849
845
  ...r && { border: "2px solid" },
850
846
  ...i && {
851
847
  padding: e.spacing(1),
@@ -858,22 +854,22 @@ var $e = Y(u, "UiLayout") || Y(Q.UiLayout, "UiLayout"), X = Y(f, "PreviewPrompt"
858
854
  } },
859
855
  "& sup": { top: 0 }
860
856
  }
861
- })), lt = p(y.Static)({ "& > .mq-root-block": { "& > .mq-editable-field": { borderColor: s.text() } } }), ut = p("div")(({ theme: e }) => ({
857
+ })), lt = x(l.Static)({ "& > .mq-root-block": { "& > .mq-editable-field": { borderColor: m.text() } } }), ut = x("div")(({ theme: e }) => ({
862
858
  zIndex: 10,
863
859
  minWidth: "400px",
864
860
  marginTop: e.spacing(2)
865
- })), dt = p("div")(({ theme: e }) => ({
861
+ })), dt = x("div")(({ theme: e }) => ({
866
862
  marginBottom: e.spacing(1),
867
863
  pointerEvents: "none"
868
- })), ft = p("h2")({
864
+ })), ft = x("h2")({
869
865
  position: "absolute",
870
866
  left: "-10000px",
871
867
  top: "auto",
872
868
  width: "1px",
873
869
  height: "1px",
874
870
  overflow: "hidden"
875
- }), pt = p("div")(({ theme: e }) => ({ marginBottom: e.spacing(2) })), mt = p(Qe)(({ theme: e }) => ({
876
- color: s.text(),
871
+ }), pt = x("div")(({ theme: e }) => ({ marginBottom: e.spacing(2) })), mt = x($e)(({ theme: e }) => ({
872
+ color: m.text(),
877
873
  marginBottom: e.spacing(2)
878
874
  }));
879
875
  if (typeof document < "u") {
@@ -898,8 +894,8 @@ if (typeof document < "u") {
898
894
  border-right: 2px solid #bdbdbd !important;
899
895
  }
900
896
  .block-math {
901
- color: ${s.text()};
902
- background-color: ${s.background()};
897
+ color: ${m.text()};
898
+ background-color: ${m.background()};
903
899
  padding: 4px !important;
904
900
  display: flex;
905
901
  align-items: center;
@@ -910,10 +906,10 @@ if (typeof document < "u") {
910
906
  display: none;
911
907
  }
912
908
  .correct {
913
- border-color: ${s.correct()} !important;
909
+ border-color: ${m.correct()} !important;
914
910
  }
915
911
  .incorrect {
916
- border-color: ${s.incorrect()} !important;
912
+ border-color: ${m.incorrect()} !important;
917
913
  }
918
914
  `, document.head.appendChild(t);
919
915
  }
@@ -991,7 +987,7 @@ var Ct = {
991
987
  };
992
988
  }
993
989
  UNSAFE_componentWillMount() {
994
- typeof window < "u" && (ht ||= (_("answerBlock", (e) => ({
990
+ typeof window < "u" && (ht ||= (s("answerBlock", (e) => ({
995
991
  htmlString: `<div class="block-container">
996
992
  <div class="block-response" id="${e}Index">R</div>
997
993
  <div class="block-math">
@@ -1007,10 +1003,10 @@ var Ct = {
1007
1003
  this.root && e.disabled && !n && Object.keys(r).forEach((t) => {
1008
1004
  let n = this.root.querySelector(`#${t}`), i = this.root.querySelector(`#${t}Index`);
1009
1005
  if (n) {
1010
- let a = r[t];
1011
- b(n, a && a.value || ""), e.view && (n.parentElement.parentElement.classList.remove("correct"), n.parentElement.parentElement.classList.remove("incorrect")), i.textContent = "R";
1006
+ let o = r[t];
1007
+ a(n, o && o.value || ""), e.view && (n.parentElement.parentElement.classList.remove("correct"), n.parentElement.parentElement.classList.remove("incorrect")), i.textContent = "R";
1012
1008
  }
1013
- }), S(this.root);
1009
+ }), d(this.root);
1014
1010
  };
1015
1011
  UNSAFE_componentWillReceiveProps(t) {
1016
1012
  let { model: r } = this.props, { model: i = {} } = t || {}, { markup: a = "", env: o = {} } = r || {}, { markup: s = "", env: c = {}, alwaysShowCorrect: l = !1 } = i, u = (e) => e && e.mode === "evaluate";
@@ -1037,7 +1033,7 @@ var Ct = {
1037
1033
  return !r || !i;
1038
1034
  }
1039
1035
  componentDidMount() {
1040
- this.handleAnswerBlockDomUpdate(), setTimeout(() => S(this.root), 100);
1036
+ this.handleAnswerBlockDomUpdate(), setTimeout(() => d(this.root), 100);
1041
1037
  }
1042
1038
  componentDidUpdate() {
1043
1039
  this.handleAnswerBlockDomUpdate();
@@ -1139,11 +1135,11 @@ var Ct = {
1139
1135
  }, 1);
1140
1136
  }
1141
1137
  renderTeacherInstructions = () => {
1142
- let { model: e } = this.props, { teacherInstructions: t, animationsDisabled: n } = e || {}, r = t && (x(t) || g(t)), i = /* @__PURE__ */ E(X, {
1138
+ let { model: e } = this.props, { teacherInstructions: t, animationsDisabled: n } = e || {}, r = t && (y(t) || _(t)), i = /* @__PURE__ */ E(Y, {
1143
1139
  defaultClassName: "teacher-instructions",
1144
1140
  prompt: t
1145
1141
  });
1146
- return r && /* @__PURE__ */ E(ot, { children: n ? i : /* @__PURE__ */ E(tt, {
1142
+ return r && /* @__PURE__ */ E(ot, { children: n ? i : /* @__PURE__ */ E(nt, {
1147
1143
  labels: {
1148
1144
  hidden: "Show Teacher Instructions",
1149
1145
  visible: "Hide Teacher Instructions"
@@ -1152,8 +1148,8 @@ var Ct = {
1152
1148
  }) });
1153
1149
  };
1154
1150
  renderRationale = () => {
1155
- let { model: e } = this.props, { rationale: t, animationsDisabled: n } = e || {}, r = /* @__PURE__ */ E(X, { prompt: t });
1156
- return t && (x(t) || g(t)) && /* @__PURE__ */ E(ot, { children: n ? r : /* @__PURE__ */ E(tt, {
1151
+ let { model: e } = this.props, { rationale: t, animationsDisabled: n } = e || {}, r = /* @__PURE__ */ E(Y, { prompt: t });
1152
+ return t && (y(t) || _(t)) && /* @__PURE__ */ E(ot, { children: n ? r : /* @__PURE__ */ E(nt, {
1157
1153
  labels: {
1158
1154
  hidden: "Show Rationale",
1159
1155
  visible: "Hide Rationale"
@@ -1162,17 +1158,17 @@ var Ct = {
1162
1158
  }) });
1163
1159
  };
1164
1160
  renderPlayerContent = () => {
1165
- let { model: e } = this.props, { activeAnswerBlock: t, showCorrect: n, session: i, tooltipContainerRef: a } = this.state, { correctness: s, disabled: c, view: l, responses: u, equationEditor: d, customKeys: f, feedback: p, env: { mode: h } = {}, printMode: g, alwaysShowCorrect: _ } = e || {}, v = r(u), y = yt(f), b = St(e, this.state) || "", x = g && !_;
1166
- return /* @__PURE__ */ E(st, { children: /* @__PURE__ */ E(ze, {
1161
+ let { model: e } = this.props, { activeAnswerBlock: t, showCorrect: n, session: i, tooltipContainerRef: a } = this.state, { correctness: s, disabled: c, view: l, responses: u, equationEditor: d, customKeys: f, feedback: p, env: { mode: m } = {}, printMode: h, alwaysShowCorrect: g } = e || {}, _ = r(u), v = yt(f), y = St(e, this.state) || "", x = h && !g;
1162
+ return /* @__PURE__ */ E(st, { children: /* @__PURE__ */ E(Be, {
1167
1163
  disabled: c,
1168
1164
  markup: e.markup,
1169
1165
  value: {},
1170
1166
  customMarkMarkupComponent: (e) => {
1171
- let r = h === "evaluate" && p && p[e], u = /* @__PURE__ */ E(lt, {
1167
+ let r = m === "evaluate" && p && p[e], u = /* @__PURE__ */ E(lt, {
1172
1168
  ref: (e) => {
1173
1169
  this.mqStatic = e || this.mqStatic;
1174
1170
  },
1175
- latex: b[e],
1171
+ latex: y[e],
1176
1172
  onSubFieldChange: this.subFieldChanged,
1177
1173
  getFieldName: this.getFieldName,
1178
1174
  setInput: this.setInput,
@@ -1181,9 +1177,9 @@ var Ct = {
1181
1177
  });
1182
1178
  return /* @__PURE__ */ E(ct, {
1183
1179
  ref: a,
1184
- $incorrect: !v && !r && !n,
1185
- $correct: !v && (r || n),
1186
- $showCorrectness: !v && c && s && !l,
1180
+ $incorrect: !_ && !r && !n,
1181
+ $correct: !_ && (r || n),
1182
+ $showCorrectness: !_ && c && s && !l,
1187
1183
  $correctAnswerShown: n,
1188
1184
  children: /* @__PURE__ */ E(o, {
1189
1185
  ref: (e) => this.setTooltipRef(e),
@@ -1224,9 +1220,9 @@ var Ct = {
1224
1220
  },
1225
1221
  title: Object.keys(i.answers).map((e) => e === t && !(n || c) && /* @__PURE__ */ E(ut, {
1226
1222
  "data-keypad": !0,
1227
- style: { width: bt(y, d) },
1228
- children: /* @__PURE__ */ E(m, {
1229
- additionalKeys: y,
1223
+ style: { width: bt(v, d) },
1224
+ children: /* @__PURE__ */ E(b, {
1225
+ additionalKeys: v,
1230
1226
  mode: d || gt,
1231
1227
  onClick: this.onClick
1232
1228
  })
@@ -1239,23 +1235,23 @@ var Ct = {
1239
1235
  };
1240
1236
  render() {
1241
1237
  let { model: e } = this.props, { showCorrect: t } = this.state, { prompt: n, env: { mode: i, role: a } = {}, extraCSSRules: o, correctness: s, responses: c, language: l, showNote: u, note: d } = e || {}, f = !r(c) && s && s.correctness !== "correct", p = (t || i === "view" && a === "instructor") && u && d;
1242
- return /* @__PURE__ */ E(rt, {
1238
+ return /* @__PURE__ */ E(it, {
1243
1239
  extraCSSRules: o,
1244
1240
  ref: (e) => {
1245
1241
  let t = ee.findDOMNode(e);
1246
1242
  this.root = t || this.root;
1247
1243
  },
1248
- children: /* @__PURE__ */ D(it, { children: [
1244
+ children: /* @__PURE__ */ D(Q, { children: [
1249
1245
  i === "gather" && /* @__PURE__ */ E(ft, { children: "Math Equation Response Question" }),
1250
- /* @__PURE__ */ E(it, { children: f && /* @__PURE__ */ E(mt, {
1246
+ /* @__PURE__ */ E(Q, { children: f && /* @__PURE__ */ E(mt, {
1251
1247
  language: l,
1252
1248
  show: !0,
1253
1249
  toggled: t,
1254
1250
  onToggle: this.toggleShowCorrect
1255
1251
  }) }),
1256
1252
  this.renderTeacherInstructions(),
1257
- n && /* @__PURE__ */ E(at, { children: /* @__PURE__ */ E(X, { prompt: n }) }),
1258
- /* @__PURE__ */ E(et, {
1253
+ n && /* @__PURE__ */ E(at, { children: /* @__PURE__ */ E(Y, { prompt: n }) }),
1254
+ /* @__PURE__ */ E(tt, {
1259
1255
  false: !0,
1260
1256
  children: this.renderPlayerContent()
1261
1257
  }),
@@ -1271,4 +1267,4 @@ var Ct = {
1271
1267
  //#endregion
1272
1268
  export { wt as t };
1273
1269
 
1274
- //# sourceMappingURL=main-BaKJhgCS.js.map
1270
+ //# sourceMappingURL=main-BLv4ZW26.js.map