@pie-element/math-inline 13.0.1-next.20261005184705 → 13.0.1-next.20261005190856

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 (24) hide show
  1. package/dist/browser/author/index.js +33 -33
  2. package/dist/browser/controller/index.js +1 -1
  3. package/dist/browser/delivery/index.js +2 -2
  4. package/dist/browser/{dist-y7zGmIaN.js → dist-BmBt-SS2.js} +19 -24
  5. package/dist/browser/{dist-y7zGmIaN.js.map → dist-BmBt-SS2.js.map} +1 -1
  6. package/dist/browser/{dist-BSMFBCe4.js → dist-BmgaDqwS.js} +721 -225
  7. package/dist/browser/{dist-BSMFBCe4.js.map → dist-BmgaDqwS.js.map} +1 -1
  8. package/dist/browser/editor-runtime/author/index.js +31 -31
  9. package/dist/browser/editor-runtime/controller/index.js +1 -1
  10. package/dist/browser/editor-runtime/delivery/index.js +2 -2
  11. package/dist/browser/editor-runtime/{dist-CtQy-p2t.js → dist-DTtJCOmn.js} +721 -225
  12. package/dist/browser/editor-runtime/{dist-CtQy-p2t.js.map → dist-DTtJCOmn.js.map} +1 -1
  13. package/dist/browser/editor-runtime/{dist-DFdq_uix.js → dist-mXJCMcxk.js} +19 -24
  14. package/dist/browser/editor-runtime/{dist-DFdq_uix.js.map → dist-mXJCMcxk.js.map} +1 -1
  15. package/dist/browser/editor-runtime/{main-DKbNiOUm.js → main-Ds-UIr0E.js} +3 -3
  16. package/dist/browser/editor-runtime/{main-DKbNiOUm.js.map → main-Ds-UIr0E.js.map} +1 -1
  17. package/dist/browser/editor-runtime/print/index.js +3 -3
  18. package/dist/browser/{main-DvE7ImL0.js → main-m6jDQqN-.js} +3 -3
  19. package/dist/browser/{main-DvE7ImL0.js.map → main-m6jDQqN-.js.map} +1 -1
  20. package/dist/browser/print/index.js +3 -3
  21. package/dist/index.iife.js +10 -10
  22. package/module/print.js +6313 -6044
  23. package/module/print.js.map +1 -1
  24. package/package.json +8 -8
@@ -1,6 +1,6 @@
1
1
  import { i as e, o as t, t as n } from "../rolldown-runtime-DY7j01NX.js";
2
- import { c as r, f as i, i as a, l as o, m as s, o as c, p as l, r as u, s as d, t as f, u as p } from "../dist-BSMFBCe4.js";
3
- import { $ as m, A as h, At as g, B as _, Ct as v, D as y, Dt as b, E as x, Et as S, F as C, G as w, H as ee, I as T, J as E, K as D, N as te, O, Ot as ne, P as re, Q as ie, R as ae, St as oe, Tt as k, U as se, V as ce, W as le, X as ue, Y as A, Z as de, _t as fe, a as pe, at as me, b as he, bt as ge, c as _e, ct as ve, d as ye, dt as be, et as xe, g as Se, gt as j, h as Ce, ht as we, i as M, it as Te, j as Ee, k as De, kt as Oe, l as ke, lt as Ae, m as je, n as Me, nt as Ne, o as Pe, ot as Fe, p as Ie, pt as N, q as Le, r as Re, rt as ze, s as Be, st as Ve, t as He, tt as P, u as Ue, ut as We, v as Ge, vt as Ke, wt as qe, x as Je, xt as Ye, y as Xe, yt as Ze, z as Qe } from "../dist-y7zGmIaN.js";
2
+ import { a as r, d as i, f as a, i as o, l as s, m as c, n as l, o as u, p as d, s as f, t as p } from "../dist-BmgaDqwS.js";
3
+ import { $ as m, A as h, At as g, B as _, Ct as v, D as y, Dt as b, E as x, Et as S, F as C, G as w, H as ee, I as T, J as E, K as D, N as te, O, Ot as ne, P as re, Q as ie, R as ae, St as oe, Tt as k, U as se, V as ce, W as le, X as ue, Y as A, Z as de, _t as fe, a as pe, at as me, b as he, bt as ge, c as _e, ct as ve, d as ye, dt as be, et as xe, g as Se, gt as j, h as Ce, ht as we, i as M, it as Te, j as Ee, k as De, kt as Oe, l as ke, lt as Ae, m as je, n as Me, nt as Ne, o as Pe, ot as Fe, p as Ie, pt as N, q as Le, r as Re, rt as ze, s as Be, st as Ve, t as He, tt as P, u as Ue, ut as We, v as Ge, vt as Ke, wt as qe, x as Je, xt as Ye, y as Xe, yt as Ze, z as Qe } from "../dist-BmBt-SS2.js";
4
4
  import * as F from "react";
5
5
  import I, { Component as $e, createContext as et, createElement as tt, createRef as nt, forwardRef as rt, memo as it, useCallback as at, useContext as ot, useDebugValue as st, useEffect as L, useId as ct, useLayoutEffect as lt, useMemo as ut, useRef as dt, useState as ft, version as pt } from "react";
6
6
  import { createRoot as mt } from "react-dom/client";
@@ -159,7 +159,7 @@ var bt = {
159
159
  ...m.style
160
160
  }
161
161
  });
162
- }), B = /* @__PURE__ */ t(g(), 1), Et = /* @__PURE__ */ t(s(), 1), { commonMqFontStyles: Dt, longdivStyles: Ot, supsubStyles: kt } = je.CommonMqStyles, At = (0, Et.default)("@pie-lib:math-toolbar:math-preview"), jt = j("div")(({ theme: e, isSelected: t }) => ({
162
+ }), B = /* @__PURE__ */ t(g(), 1), Et = /* @__PURE__ */ t(c(), 1), { commonMqFontStyles: Dt, longdivStyles: Ot, supsubStyles: kt } = je.CommonMqStyles, At = (0, Et.default)("@pie-lib:math-toolbar:math-preview"), jt = j("div")(({ theme: e, isSelected: t }) => ({
163
163
  display: "inline-flex",
164
164
  alignItems: "center",
165
165
  position: "relative",
@@ -3599,8 +3599,8 @@ var Qi = (0, Et.default)("@pie-lib:editable-html:plugins"), $i = [
3599
3599
  "blockquote"
3600
3600
  ].includes(e)), na = (e, t, n) => {
3601
3601
  Qi("[buildPlugins] opts: ", n), e ||= ta;
3602
- let r = (t, n = !0) => e.includes(t) && n && t, i = n.image && n.image.delete, a = n.math, o = n.responseArea && n.responseArea.type, s = !u(n.extraCSSRules), c = n?.languageCharacters || [];
3603
- return p([
3602
+ let r = (t, n = !0) => e.includes(t) && n && t, i = n.image && n.image.delete, a = n.math, o = n.responseArea && n.responseArea.type, s = !p(n.extraCSSRules), c = n?.languageCharacters || [];
3603
+ return f([
3604
3604
  r("table"),
3605
3605
  r("bold"),
3606
3606
  r("italic"),
@@ -16676,7 +16676,7 @@ var $b = (e, t) => {
16676
16676
  }
16677
16677
  })];
16678
16678
  }
16679
- }), cx = "pie-toolbar", lx = `var(--editable-html-toolbar-bg, ${N.editorToolbar()})`, { translator: ux } = l, dx = j(Ie)({
16679
+ }), cx = "pie-toolbar", lx = `var(--editable-html-toolbar-bg, ${N.editorToolbar()})`, { translator: ux } = d, dx = j(Ie)({
16680
16680
  verticalAlign: "top",
16681
16681
  width: "28px",
16682
16682
  height: "28px",
@@ -18667,7 +18667,7 @@ var Nw = (e, t, n, r) => {
18667
18667
  }), i.isDone = !0, e.view.dispatch(i);
18668
18668
  }, Pw = (e, t, n) => {
18669
18669
  let { tr: r } = e.state;
18670
- r.setNodeMarkup(n.pos, void 0, o(t.attrs, ["value", "id"])), r.isDone = !0, e.view.dispatch(r);
18670
+ r.setNodeMarkup(n.pos, void 0, a(t.attrs, ["value", "id"])), r.isDone = !0, e.view.dispatch(r);
18671
18671
  }, Fw = (e) => {
18672
18672
  let { editor: t, node: n, getPos: r, options: i, selected: a } = e, { attrs: o } = n, { inTable: s } = o, c = r();
18673
18673
  return /* @__PURE__ */ R(RS, {
@@ -19667,7 +19667,7 @@ var bT = j(kr, { shouldForwardProp: (e) => e !== "hideProgress" })(({ hideProgre
19667
19667
  display: "none"
19668
19668
  })), TT = (e) => e ? `${e}px` : "calc(20px)";
19669
19669
  function ET(e) {
19670
- let { node: t, editor: n, attributes: r, onFocus: i, getPos: o, selected: s, options: c, maxImageWidth: l = 700, maxImageHeight: u = 900 } = e, { alt: d } = t.attrs, f = o(), p = n.state.selection.from, m = n.state.selection.to, h = ut(() => p + t.nodeSize === m, [
19670
+ let { node: t, editor: n, attributes: r, onFocus: a, getPos: o, selected: s, options: c, maxImageWidth: l = 700, maxImageHeight: u = 900 } = e, { alt: d } = t.attrs, f = o(), p = n.state.selection.from, m = n.state.selection.to, h = ut(() => p + t.nodeSize === m, [
19671
19671
  p,
19672
19672
  m,
19673
19673
  t.nodeSize
@@ -19720,14 +19720,14 @@ function ET(e) {
19720
19720
  if (e && (!e.style.width || e.style.width === "calc(20px)")) {
19721
19721
  let n = Math.min(e.naturalWidth, l), r = Math.min(e.naturalHeight, u);
19722
19722
  e.style.width = `${n}px`, e.style.height = `${r}px`;
19723
- let i = {
19723
+ let a = {
19724
19724
  width: n,
19725
19725
  height: r
19726
19726
  };
19727
- a(i, {
19727
+ i(a, {
19728
19728
  width: t.attrs.width,
19729
19729
  height: t.attrs.height
19730
- }) || w(i);
19730
+ }) || w(a);
19731
19731
  }
19732
19732
  }, [
19733
19733
  t.attrs.width,
@@ -19777,7 +19777,7 @@ function ET(e) {
19777
19777
  right: "flex-end"
19778
19778
  }[t.attrs.alignment] || "flex-start";
19779
19779
  return /* @__PURE__ */ z(RS, { children: [/* @__PURE__ */ z(xT, {
19780
- onFocus: i,
19780
+ onFocus: a,
19781
19781
  loading: !t.attrs.loaded,
19782
19782
  pendingDelete: t.attrs.deleteStatus === "pending",
19783
19783
  style: { justifyContent: ie },
@@ -22205,7 +22205,7 @@ function AD({ editor: e, opts: t, onClose: n }) {
22205
22205
  case t.language === "special": return dD;
22206
22206
  default: return t;
22207
22207
  }
22208
- }, [t]), u = ut(() => l.characters.reduce((e, t) => (t.length >= e.columns && (e.columns = t.length), e), {
22208
+ }, [t]), d = ut(() => l.characters.reduce((e, t) => (t.length >= e.columns && (e.columns = t.length), e), {
22209
22209
  rows: l.characters.length,
22210
22210
  columns: 0
22211
22211
  }), [l]), f = () => c(null);
@@ -22261,11 +22261,11 @@ function AD({ editor: e, opts: t, onClose: n }) {
22261
22261
  hideInput: !0,
22262
22262
  noLatexHandling: !0,
22263
22263
  hideDoneButtonBackground: !0,
22264
- layoutForKeyPad: u,
22264
+ layoutForKeyPad: d,
22265
22265
  additionalKeys: l.characters.reduce((e, t) => (e = [...e, ...t.map((e) => ({
22266
- name: d(e, "name") || e,
22267
- write: d(e, "write") || e,
22268
- label: d(e, "label") || e,
22266
+ name: u(e, "name") || e,
22267
+ write: u(e, "write") || e,
22268
+ label: u(e, "label") || e,
22269
22269
  category: "character",
22270
22270
  extraClass: "character",
22271
22271
  extraProps: {
@@ -22315,7 +22315,7 @@ AD.propTypes = {
22315
22315
  };
22316
22316
  //#endregion
22317
22317
  //#region ../../../node_modules/.bun/@mui+icons-material@7.3.11+44ccb211c00abd9d/node_modules/@mui/icons-material/esm/FormatBold.js
22318
- var jD = E(/*#__PURE__*/ R("path", { d: "M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42M10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5" }), "FormatBold"), MD = E(/*#__PURE__*/ R("path", { d: "M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z" }), "FormatItalic"), ND = E(/*#__PURE__*/ R("path", { d: "M10 19h4v-3h-4zM5 4v3h5v3h4V7h5V4zM3 14h18v-2H3z" }), "FormatStrikethrough"), PD = E(/*#__PURE__*/ R("path", { d: "M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z" }), "Code"), FD = E(/*#__PURE__*/ R("path", { d: "M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M8 20H4v-4h4zm0-6H4v-4h4zm0-6H4V4h4zm6 12h-4v-4h4zm0-6h-4v-4h4zm0-6h-4V4h4zm6 12h-4v-4h4zm0-6h-4v-4h4zm0-6h-4V4h4z" }), "GridOn"), ID = E(/*#__PURE__*/ R("path", { d: "M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5m0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5m0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5M7 19h14v-2H7zm0-6h14v-2H7zm0-8v2h14V5z" }), "FormatListBulleted"), LD = E(/*#__PURE__*/ R("path", { d: "M2 17h2v.5H3v1h1v.5H2v1h3v-4H2zm1-9h1V4H2v1h1zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2zm5-6v2h14V5zm0 14h14v-2H7zm0-6h14v-2H7z" }), "FormatListNumbered"), RD = E(/*#__PURE__*/ R("path", { d: "M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6m-7 2v2h14v-2z" }), "FormatUnderlined"), zD = E(/*#__PURE__*/ R("path", { d: "M18 4H6v2l6.5 6L6 18v2h12v-3h-7l5-5-5-5h7z" }), "Functions"), BD = E(/*#__PURE__*/ R("path", { d: "M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z" }), "Image"), VD = E(/*#__PURE__*/ R("path", { d: "M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7z" }), "Redo"), HD = E(/*#__PURE__*/ R("path", { d: "M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z" }), "FormatQuote"), UD = E(/*#__PURE__*/ R("path", { d: "M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3zM8 17H6v-2h2zm0-4H6v-2h2zm0-4H6V7h2zm10 8h-2v-2h2zm0-4h-2v-2h2zm0-4h-2V7h2z" }), "Theaters"), WD = E(/*#__PURE__*/ R("path", { d: "M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77" }), "VolumeUp"), GD = E(/*#__PURE__*/ R("path", { d: "M3 3v18h18V3zm8 16H5v-6h6zm0-8H5V5h6zm8 8h-6v-6h6zm0-8h-6V5h6z" }), "BorderAll"), { translator: KD } = l, qD = () => /* @__PURE__ */ R("svg", {
22318
+ var jD = E(/*#__PURE__*/ R("path", { d: "M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42M10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5" }), "FormatBold"), MD = E(/*#__PURE__*/ R("path", { d: "M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z" }), "FormatItalic"), ND = E(/*#__PURE__*/ R("path", { d: "M10 19h4v-3h-4zM5 4v3h5v3h4V7h5V4zM3 14h18v-2H3z" }), "FormatStrikethrough"), PD = E(/*#__PURE__*/ R("path", { d: "M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z" }), "Code"), FD = E(/*#__PURE__*/ R("path", { d: "M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M8 20H4v-4h4zm0-6H4v-4h4zm0-6H4V4h4zm6 12h-4v-4h4zm0-6h-4v-4h4zm0-6h-4V4h4zm6 12h-4v-4h4zm0-6h-4v-4h4zm0-6h-4V4h4z" }), "GridOn"), ID = E(/*#__PURE__*/ R("path", { d: "M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5m0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5m0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5M7 19h14v-2H7zm0-6h14v-2H7zm0-8v2h14V5z" }), "FormatListBulleted"), LD = E(/*#__PURE__*/ R("path", { d: "M2 17h2v.5H3v1h1v.5H2v1h3v-4H2zm1-9h1V4H2v1h1zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2zm5-6v2h14V5zm0 14h14v-2H7zm0-6h14v-2H7z" }), "FormatListNumbered"), RD = E(/*#__PURE__*/ R("path", { d: "M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6m-7 2v2h14v-2z" }), "FormatUnderlined"), zD = E(/*#__PURE__*/ R("path", { d: "M18 4H6v2l6.5 6L6 18v2h12v-3h-7l5-5-5-5h7z" }), "Functions"), BD = E(/*#__PURE__*/ R("path", { d: "M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z" }), "Image"), VD = E(/*#__PURE__*/ R("path", { d: "M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7z" }), "Redo"), HD = E(/*#__PURE__*/ R("path", { d: "M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z" }), "FormatQuote"), UD = E(/*#__PURE__*/ R("path", { d: "M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3zM8 17H6v-2h2zm0-4H6v-2h2zm0-4H6V7h2zm10 8h-2v-2h2zm0-4h-2v-2h2zm0-4h-2V7h2z" }), "Theaters"), WD = E(/*#__PURE__*/ R("path", { d: "M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77" }), "VolumeUp"), GD = E(/*#__PURE__*/ R("path", { d: "M3 3v18h18V3zm8 16H5v-6h6zm0-8H5V5h6zm8 8h-6v-6h6zm0-8h-6V5h6z" }), "BorderAll"), { translator: KD } = d, qD = () => /* @__PURE__ */ R("svg", {
22319
22319
  xmlns: "http://www.w3.org/2000/svg",
22320
22320
  height: "24px",
22321
22321
  viewBox: "0 0 24 24",
@@ -26083,7 +26083,7 @@ var xM = Z.create({
26083
26083
  ...t && { "aria-label": t },
26084
26084
  ...n && { "aria-labelledby": n }
26085
26085
  }), KM = ["aria-label", "aria-labelledby"], qM = (e) => {
26086
- let { showParagraphs: t, separateParagraphs: n } = e.pluginProps || {}, [r, a] = ft([]), [o, s] = ft(!1), { toolbarOpts: c } = e, l = at((e) => {
26086
+ let { showParagraphs: t, separateParagraphs: n } = e.pluginProps || {}, [i, a] = ft([]), [o, s] = ft(!1), { toolbarOpts: c } = e, l = at((e) => {
26087
26087
  a((t) => {
26088
26088
  let n = t.filter((t) => t.pos !== e);
26089
26089
  return n.length === 0 && s(!1), n;
@@ -26203,13 +26203,13 @@ var xM = Z.create({
26203
26203
  l(t.pos);
26204
26204
  });
26205
26205
  }),
26206
- insertImageRequested: e.imageSupport && ((t, n, r) => {
26206
+ insertImageRequested: e.imageSupport && ((t, n, i) => {
26207
26207
  let [s, c] = n, u = (n) => {
26208
26208
  let r;
26209
26209
  o && n && (r = e.onChange), l(c), r?.(t.getHTML());
26210
26210
  };
26211
26211
  t._insertingImage = !0, a((e) => [...e, s]), (() => {
26212
- let n = r(u), a = i(() => {
26212
+ let n = i(u), a = r(() => {
26213
26213
  let e = () => window.removeEventListener("focus", a);
26214
26214
  if (!t._insertingImage) {
26215
26215
  e();
@@ -26424,7 +26424,7 @@ var QM = ZM(x, "InputContainer") || ZM(tN.InputContainer, "InputContainer"), $M
26424
26424
  })), pN = j(Gt)(() => ({
26425
26425
  paddingTop: 0,
26426
26426
  paddingBottom: 0
26427
- })), mN = (e) => c({}, {
26427
+ })), mN = (e) => o({}, {
26428
26428
  correct: {
26429
26429
  type: "default",
26430
26430
  default: "Correct"
@@ -26598,9 +26598,9 @@ var xN = (0, Et.default)("@pie-lib:config-ui:number-text-field"), SN = j(Wi)(({
26598
26598
  padding: "6px 0 7px"
26599
26599
  }
26600
26600
  })), CN = (e, t) => {
26601
- if (!f(e) && !f(t)) return 0;
26602
- if (!f(e) && f(t)) return t;
26603
- if (f(e)) return e;
26601
+ if (!l(e) && !l(t)) return 0;
26602
+ if (!l(e) && l(t)) return t;
26603
+ if (l(e)) return e;
26604
26604
  }, wN = class extends I.Component {
26605
26605
  static propTypes = {
26606
26606
  disabled: B.default.bool,
@@ -26627,7 +26627,7 @@ var xN = (0, Et.default)("@pie-lib:config-ui:number-text-field"), SN = j(Wi)(({
26627
26627
  this.setState({ value: t });
26628
26628
  }
26629
26629
  clamp(e, t = this.props.min, n = this.props.max) {
26630
- return f(e) ? (f(n) && (e = Math.min(e, n)), f(t) && (e = Math.max(e, t)), e) : CN(t, n);
26630
+ return l(e) ? (l(n) && (e = Math.min(e, n)), l(t) && (e = Math.max(e, t)), e) : CN(t, n);
26631
26631
  }
26632
26632
  onBlur = (e) => {
26633
26633
  let t = e.target.value, n = parseFloat(t);
@@ -27526,12 +27526,12 @@ var tF = {
27526
27526
  marginBottom: 0
27527
27527
  })), aF = (e) => {
27528
27528
  let { model: t, label: n, group: r, configuration: i, onChange: a } = e, o = (e, n, r) => {
27529
- let { isConfigProperty: o, ...s } = d(e, r || n), c = d(o ? i : t, n), l = {
27529
+ let { isConfigProperty: o, ...s } = u(e, r || n), c = u(o ? i : t, n), l = {
27530
27530
  ...s,
27531
27531
  key: n,
27532
27532
  value: c
27533
- }, u = tF[l.type];
27534
- return /* @__PURE__ */ R(u, {
27533
+ }, d = tF[l.type];
27534
+ return /* @__PURE__ */ R(d, {
27535
27535
  ...l,
27536
27536
  onChange: (e) => a(n, e, o)
27537
27537
  }, n);
@@ -27565,8 +27565,8 @@ var oF = class extends I.Component {
27565
27565
  };
27566
27566
  change = (e, t, n = !1) => {
27567
27567
  BP("[changeModel]", e, t);
27568
- let { onChangeModel: i, onChangeConfiguration: a } = this.props, o = { ...this.props.model }, s = { ...this.props.configuration };
27569
- n ? (r(s, e, t), a(s, e)) : (r(o, e, t), i(o, e));
27568
+ let { onChangeModel: r, onChangeConfiguration: i } = this.props, a = { ...this.props.model }, o = { ...this.props.configuration };
27569
+ n ? (s(o, e, t), i(o, e)) : (s(a, e, t), r(a, e));
27570
27570
  };
27571
27571
  render() {
27572
27572
  let { groups: e, model: t, configuration: n, modal: r } = this.props;
@@ -28002,7 +28002,7 @@ var iI = class extends F.Component {
28002
28002
  t[`r${n++}`] = { value: "" };
28003
28003
  });
28004
28004
  }
28005
- a(t, this.state.responseAreas) || this.setState({ responseAreas: t }, () => {
28005
+ i(t, this.state.responseAreas) || this.setState({ responseAreas: t }, () => {
28006
28006
  this.root && Object.keys(t).length && Object.keys(t).forEach((e, t) => {
28007
28007
  let n = this.root.querySelector(`[data-answer-block="${e}"]`), r = this.root.querySelector(`[data-answer-block-index="${e}"]`);
28008
28008
  n && (Ce(n), r.textContent = `R${t + 1}`);
@@ -28542,7 +28542,7 @@ var iI = class extends F.Component {
28542
28542
  }
28543
28543
  }
28544
28544
  }, yI = (0, Et.default)("pie-elements:math-inline:configure"), bI = class e extends HTMLElement {
28545
- static createDefaultModel = (e = {}) => (u(e.responses) || (e.responses = e.responses.map((e) => ({
28545
+ static createDefaultModel = (e = {}) => (p(e.responses) || (e.responses = e.responses.map((e) => ({
28546
28546
  ...e,
28547
28547
  validation: e.validation || vI.model.validationDefault,
28548
28548
  allowTrailingZeros: e.allowTrailingZeros || vI.model.allowTrailingZerosDefault,
@@ -1,5 +1,5 @@
1
1
  import { a as e, n as t, o as n, r, t as i } from "../rolldown-runtime-DY7j01NX.js";
2
- import { m as a, p as o, r as s } from "../dist-BSMFBCe4.js";
2
+ import { m as a, p as o, t as s } from "../dist-BmgaDqwS.js";
3
3
  //#region ../../shared/feedback/dist/index.js
4
4
  var c = /* @__PURE__ */ n(a(), 1), l = {
5
5
  correct: {
@@ -1,6 +1,6 @@
1
1
  import { o as e } from "../rolldown-runtime-DY7j01NX.js";
2
- import { m as t, p as n } from "../dist-BSMFBCe4.js";
3
- import { t as r } from "../main-DvE7ImL0.js";
2
+ import { m as t, p as n } from "../dist-BmgaDqwS.js";
3
+ import { t as r } from "../main-m6jDQqN-.js";
4
4
  import i from "react";
5
5
  import { createRoot as a } from "react-dom/client";
6
6
  //#region ../../shared/player-events/dist/index.js
@@ -17,7 +17,7 @@
17
17
  }
18
18
  })([["cb0f0518b022d739", (url) => "@font-face{font-family:Symbola;src:local(Symbola Regular),local(Symbola),url(\"" + url(() => new URL("./assets/Symbola-4c507403.woff2", import.meta.url)) + "\")format(\"woff2\")}.mq-editable-field{display:inline-block}.mq-editable-field .mq-cursor{z-index:1;border-left:1px solid #000;margin-left:-1px;padding:0;display:inline-block;position:relative}.mq-editable-field .mq-cursor.mq-blink{visibility:hidden}.mq-editable-field,.mq-math-mode .mq-editable-field{border:1px solid gray}.mq-editable-field.mq-focused,.mq-math-mode .mq-editable-field.mq-focused{border-color:#709ac0;border-radius:1px;box-shadow:0 0 1px 2px #8bd,inset 0 0 2px #6ae}.mq-math-mode .mq-editable-field{margin:1px}.mq-editable-field .mq-latex-command-input{color:inherit;border:1px solid gray;margin-left:2px;margin-right:1px;padding-right:1px;font-family:Courier New,monospace}.mq-editable-field .mq-latex-command-input.mq-empty{background:0 0}.mq-editable-field .mq-latex-command-input.mq-hasCursor{border-color:activeborder}.mq-editable-field.mq-empty:after,.mq-editable-field.mq-text-mode:after,.mq-math-mode .mq-empty:after,.mq-editable-field .mq-cursor:only-child:after,.mq-editable-field .mq-textarea+.mq-cursor:last-child:after{visibility:hidden;content:\"c\"}.mq-editable-field .mq-text-mode .mq-cursor:only-child:after{content:\"\"}.mq-editable-field.mq-text-mode{overflow:auto hidden}.mq-root-block,.mq-math-mode .mq-root-block{box-sizing:border-box;white-space:nowrap;vertical-align:middle;width:100%;padding:2px;display:inline-block;overflow:hidden}.mq-math-mode{font-variant:normal;font-size:115%;font-style:normal;font-weight:400;line-height:1;display:inline-block}.mq-math-mode .mq-non-leaf,.mq-math-mode .mq-scaled{display:inline-block}.mq-math-mode var,.mq-math-mode .mq-text-mode,.mq-math-mode .mq-nonSymbola{font-family:Times New Roman,Symbola,serif;line-height:.9}.mq-math-mode *{font-size:inherit;line-height:inherit;-webkit-user-select:none;user-select:none;box-sizing:border-box;border-color:#000;margin:0;padding:0}.mq-math-mode .mq-empty,.mq-math-mode.mq-empty{background:0 0}.mq-math-mode .mq-text-mode{white-space:pre;display:inline-block}.mq-math-mode .mq-text-mode.mq-hasCursor{min-width:1ex;margin:0 -.1em;padding:0 .1em;box-shadow:inset 0 .1em .2em #a9a9a9}.mq-math-mode .mq-font{font:1em Times New Roman,Symbola,serif}.mq-math-mode .mq-font *{font-family:inherit;font-style:inherit}.mq-math-mode b,.mq-math-mode b.mq-font{font-weight:bolder}.mq-math-mode var,.mq-math-mode i,.mq-math-mode i.mq-font{font-style:italic}.mq-math-mode var.mq-f{margin-left:.1em;margin-right:.2em}.mq-math-mode .mq-roman var.mq-f{margin:0}.mq-math-mode big{font-size:200%}.mq-math-mode .mq-int>big{vertical-align:-.16em;display:inline-block;transform:scaleX(.7)}.mq-math-mode .mq-int>.mq-supsub{vertical-align:-1.1em;padding-right:.2em;font-size:80%}.mq-math-mode .mq-int>.mq-supsub>.mq-sup>.mq-sup-inner{vertical-align:1.3em}.mq-math-mode .mq-int>.mq-supsub>.mq-sub{margin-left:-.35em}.mq-math-mode .mq-roman{font-style:normal}.mq-math-mode .mq-sans-serif{font-family:sans-serif,Symbola,serif}.mq-math-mode .mq-monospace{font-family:monospace,Symbola,serif}.mq-math-mode .mq-overleftrightarrow{margin-top:.35em;position:relative}.mq-math-mode .mq-overleftrightarrow .mq-overleftrightarrow-inner{text-align:center;border-top:.14em solid #4d4d4d;min-width:1em;margin:0 .1em;padding-top:.35em;display:inline-block;position:relative}.mq-math-mode .mq-overleftrightarrow .mq-overleftrightarrow-inner .mq-empty{min-width:1em;margin-top:.1em;display:inline-block}.mq-math-mode .mq-overleftrightarrow .mq-overleftrightarrow-inner .mq-overleftrightarrow-inner-right{text-align:right;font-family:LearnosityIconsRegular;font-size:.75em;line-height:1em;display:block;position:absolute;top:-.562em;right:-.4em}.mq-math-mode .mq-overleftrightarrow .mq-overleftrightarrow-inner .mq-overleftrightarrow-inner-left{text-align:left;font-family:LearnosityIconsRegular;font-size:.75em;line-height:1em;display:block;position:absolute;top:-.562em;left:-.4em}.mq-math-mode .mq-overline .mq-overline-inner{text-align:center;border-top:.14em solid #4d4d4d;margin-left:.1em;padding-top:.2em;padding-right:.1em;display:inline-block}.mq-math-mode .mq-overline .mq-overline-inner .mq-empty{min-width:1em;margin-top:.1em;display:inline-block}.mq-math-mode .mq-overline .mq-overline-inner .mq-overline-inner-right,.mq-math-mode .mq-overline .mq-overline-inner .mq-overline-inner-left{display:none}.mq-math-mode .mq-longdiv{padding-top:.2em}.mq-math-mode .mq-longdiv .mq-longdiv-curve-border{border-top-right-radius:100em;border-bottom-right-radius:100em;width:2px;max-width:2px;margin-right:-.12em;padding-top:.2em;font-size:1.4em;display:inline}.mq-math-mode .mq-longdiv .mq-longdiv-inner{text-align:center;border-top:1px solid gray;border-radius:0 0 0 10px;min-width:1em;margin-left:-.2em;margin-right:.15em;padding-top:.19em;padding-left:.44em;font-size:1em;display:inline}.mq-math-mode .mq-longdiv .mq-longdiv-inner .mq-empty{min-width:1.5em;display:inline-block}.mq-math-mode .mq-underline{border-bottom:1px solid #000;margin-bottom:1px}.mq-math-mode .mq-underline.mq-empty{min-width:1em}.mq-math-mode .mq-overarc{-moz-border-radius-topright:50% .3em;-moz-border-radius-topleft:50% .3em;border-top:1px solid #000;border-top-left-radius:50% .3em;border-top-right-radius:50% .3em;margin-top:1px;padding-top:.15em}.mq-math-mode .mq-overarrow{margin-top:.35em;position:relative}.mq-math-mode .mq-overarrow .mq-overarrow-inner{text-align:center;border-top:.14em solid #4d4d4d;min-width:1em;margin:0 .1em;padding-top:.35em;display:inline-block;position:relative}.mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-empty{min-width:1em;margin-top:.1em;display:inline-block}.mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-overarrow-inner-right{text-align:right;font-family:LearnosityIconsRegular;font-size:.75em;line-height:1em;display:block;position:absolute;top:-.562em;right:-.4em}.mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-overarrow-inner-left{text-align:left;font-family:LearnosityIconsRegular;font-size:.75em;line-height:1em;display:none;position:absolute;top:-.562em;left:-.4em}.mq-math-mode .mq-overarrow.mq-arrow-left .mq-overarrow-inner .mq-overarrow-inner-right{display:none}.mq-math-mode .mq-overarrow.mq-arrow-left .mq-overarrow-inner .mq-overarrow-inner-left{display:block}.mq-math-mode .mq-overarrow.mq-arrow-both{vertical-align:text-bottom}.mq-math-mode .mq-overarrow.mq-arrow-both.mq-empty{min-height:1.23em}.mq-math-mode .mq-overarrow.mq-arrow-both.mq-empty:after{top:-.34em}.mq-math-mode .mq-overarrow.mq-arrow-both:before{filter:FlipH;-ms-filter:\"FlipH\";transform:scaleX(-1)}.mq-math-mode .mq-overarrow.mq-arrow-both:after{content:\"➤\";visibility:visible;text-align:right;font-size:.5em;line-height:0;display:block;position:relative;top:-2.3em}.mq-math-mode .mq-xarrow{text-align:center;vertical-align:.9em;padding:0 .2em;font-size:70%;position:relative}.mq-math-mode .mq-xarrow .mq-xarrow-over{border-bottom:1px solid #000;padding:.1em .1em .2em;display:block;position:relative}.mq-math-mode .mq-xarrow .mq-xarrow-under{float:left;margin-bottom:.2em;padding:0 .1em .2em;position:relative;top:.2em}.mq-math-mode .mq-xarrow .mq-xarrow-over:before{content:\"➤\";height:1em;font-size:.6em;display:block;position:absolute;bottom:-.62em;right:-.3em}.mq-math-mode .mq-xarrow.mq-arrow-left .mq-xarrow-over:before{filter:FlipH;-ms-filter:\"FlipH\";left:-.3em;right:auto;transform:scaleX(-1)}.mq-math-mode .mq-binary-operator{padding:0 .2em;display:inline-block}.mq-math-mode .mq-supsub{text-align:left;vertical-align:-.5em;font-size:90%}.mq-math-mode .mq-supsub.mq-sup-only{vertical-align:.5em}.mq-math-mode .mq-supsub.mq-sup-only .mq-sup{vertical-align:text-bottom;display:inline-block}.mq-math-mode .mq-supsub .mq-sup{display:block}.mq-math-mode .mq-supsub .mq-sub{float:left;display:block}.mq-math-mode .mq-supsub .mq-binary-operator{padding:0 .1em}.mq-math-mode .mq-supsub .mq-fraction{font-size:70%}.mq-math-mode sup.mq-nthroot{vertical-align:.8em;min-width:.5em;margin-left:.2em;margin-right:-.6em;font-size:80%}.mq-math-mode .mq-paren{vertical-align:top;transform-origin:50% .06em;padding:0 .1em}.mq-math-mode .mq-paren.mq-ghost{color:silver}.mq-math-mode .mq-paren+span{margin-top:.1em;margin-bottom:.1em}.mq-math-mode .mq-array{vertical-align:middle;text-align:center}.mq-math-mode .mq-array>span{display:block}.mq-math-mode .mq-operator-name{font-family:Symbola,Times New Roman,serif;font-style:normal;line-height:.9}.mq-math-mode var.mq-operator-name.mq-first{padding-left:.2em}.mq-math-mode var.mq-operator-name.mq-last,.mq-math-mode .mq-supsub.mq-after-operator-name{padding-right:.2em}.mq-math-mode .mq-fraction{text-align:center;vertical-align:-.4em;padding:0 .2em;font-size:90%}.mq-math-mode .mq-fraction,.mq-math-mode .mq-large-operator{display:-moz-groupbox}.mq-math-mode x:-moz-any-link{display:-moz-groupbox}.mq-math-mode .mq-fraction,.mq-math-mode .mq-large-operator,.mq-math-mode x:default{display:inline-block}.mq-math-mode x:-moz-any-link{display:inline-block}.mq-math-mode .mq-underset.mq-tilde-vector .mq-under{line-height:.6em}.mq-math-mode .mq-numerator,.mq-math-mode .mq-denominator,.mq-math-mode .mq-dot-recurring,.mq-math-mode .mq-over,.mq-math-mode .mq-under{display:block}.mq-math-mode .mq-numerator,.mq-math-mode .mq-over{margin-bottom:.2em;padding:0 .1em}.mq-math-mode .mq-denominator{float:right;border-top:1px solid;width:100%;padding:.3em .1em .1em}.mq-math-mode .mq-dot-recurring{text-align:center;height:.6em}.mq-math-mode .mq-overunder{text-align:center;position:relative;top:.01em}.mq-math-mode .mq-overunder .mq-font{font-family:inherit}.mq-math-mode .mq-overunder.mq-underset{vertical-align:text-top}.mq-math-mode .mq-overunder.mq-underset .mq-under,.mq-math-mode .mq-overunder.mq-overset .mq-over{font-size:.7em;display:block}.mq-math-mode .mq-sqrt-prefix{vertical-align:top;transform-origin:top;padding-top:0;position:relative;top:.1em}.mq-math-mode .mq-sqrt-stem{border-top:1px solid;margin-top:1px;margin-right:.1em;padding-top:1px;padding-left:.15em;padding-right:.2em}.mq-math-mode .mq-diacritic-above{text-align:center;line-height:.4em;display:block}.mq-math-mode .mq-diacritic-stem{text-align:center;display:block}.mq-math-mode .mq-hat-prefix{text-align:center;margin-bottom:-.7em;line-height:.95em;display:block;transform:scaleX(1.5)}.mq-math-mode .mq-hat-stem{display:block}.mq-math-mode .mq-large-operator{vertical-align:-.2em;text-align:center;vertical-align:middle;padding:.2em}.mq-math-mode .mq-large-operator .mq-from,.mq-math-mode .mq-large-operator big,.mq-math-mode .mq-large-operator .mq-to{display:block}.mq-math-mode .mq-large-operator .mq-from,.mq-math-mode .mq-large-operator .mq-to{font-size:80%}.mq-math-mode .mq-large-operator .mq-from{float:right;width:100%}.mq-math-mode .mq-lim{text-align:center}.mq-math-mode .mq-lim span{display:block}.mq-math-mode .mq-lim .mq-approaches{float:right;width:100%;font-size:80%}.mq-math-mode .mq-lim .mq-approaches span>span{display:inline}.mq-math-mode .mq-matrix{vertical-align:middle;margin-left:.1em;margin-right:.1em}.mq-math-mode .mq-matrix table{border-spacing:3px;border-collapse:separate;border-bottom:none;width:auto}.mq-math-mode .mq-matrix table.mq-rows-1{vertical-align:middle;margin-bottom:1px}.mq-math-mode .mq-matrix td{vertical-align:baseline;border:1px dotted #fff;width:auto;padding:.1em .3em}.mq-math-mode .mq-matrix td.mq-empty{border:1px dotted #000}.mq-math-mode .mq-abs{border-left:1px solid #000;border-right:1px solid #000;margin-left:.1em;margin-right:.1em;padding-left:.2em;padding-right:.2em}.mq-math-mode .mq-lrnplaceholder{margin-left:.05em;margin-right:.05em}.mq-math-mode .mq-parallelogram{margin-top:-.5em;line-height:1em;position:relative;overflow:hidden}.mq-math-mode .mq-parallelogram .mq-parallelogram-inner{font-size:2em;position:relative;top:.23em}.mq-math-mode,.mq-math-mode .mq-editable-field{cursor:text;font-family:Symbola,Times New Roman,serif}.mq-math-mode .mq-longdiv .mq-longdiv-curve-border,.mq-math-mode .mq-editable-field .mq-longdiv .mq-longdiv-curve-border{font-size:1.33em}.mq-overarrow{text-align:center;border-top:1px solid #000;min-width:.5em;margin-top:1px;padding-top:.2em}.mq-overarrow:before{content:\"➤\";text-align:right;font-size:.5em;line-height:0;display:block;position:relative;top:-.34em}.mq-overarrow.mq-arrow-left:before{filter:FlipH;-ms-filter:\"FlipH\";transform:scaleX(-1)}.mq-overarrow.mq-arrow-both{vertical-align:text-bottom}.mq-overarrow.mq-arrow-both.mq-empty{min-height:1.23em}.mq-overarrow.mq-arrow-both.mq-empty:after{top:-.34em}.mq-overarrow.mq-arrow-both:before{filter:FlipH;-ms-filter:\"FlipH\";transform:scaleX(-1)}.mq-overarrow.mq-arrow-both:after{content:\"➤\";visibility:visible;text-align:right;font-size:.5em;line-height:0;display:block;position:relative;top:-2.3em}.mq-math-mode .mq-selection,.mq-editable-field .mq-selection,.mq-math-mode .mq-selection .mq-non-leaf,.mq-editable-field .mq-selection .mq-non-leaf,.mq-math-mode .mq-selection .mq-scaled,.mq-editable-field .mq-selection .mq-scaled{color:highlighttext;border-color:highlighttext;background:highlight!important}.mq-math-mode .mq-selection .mq-matrixed,.mq-editable-field .mq-selection .mq-matrixed{background:#39f!important}.mq-math-mode .mq-selection .mq-matrixed-container,.mq-editable-field .mq-selection .mq-matrixed-container{filter:progid:DXImageTransform.Microsoft.Chroma(color=\"#3399FF\")!important}.mq-math-mode .mq-selection.mq-blur,.mq-editable-field .mq-selection.mq-blur,.mq-math-mode .mq-selection.mq-blur .mq-non-leaf,.mq-editable-field .mq-selection.mq-blur .mq-non-leaf,.mq-math-mode .mq-selection.mq-blur .mq-scaled,.mq-editable-field .mq-selection.mq-blur .mq-scaled,.mq-math-mode .mq-selection.mq-blur .mq-matrixed,.mq-editable-field .mq-selection.mq-blur .mq-matrixed{color:#000;border-color:#000;background:#d4d4d4!important}.mq-math-mode .mq-selection.mq-blur .mq-matrixed-container,.mq-editable-field .mq-selection.mq-blur .mq-matrixed-container{filter:progid:DXImageTransform.Microsoft.Chroma(color=\"#D4D4D4\")!important}.mq-editable-field .mq-textarea,.mq-math-mode .mq-textarea{-webkit-user-select:text;user-select:text;position:relative}.mq-editable-field .mq-textarea>textarea,.mq-math-mode .mq-textarea>textarea{opacity:0;overflow:hidden}.mq-editable-field .mq-textarea *,.mq-math-mode .mq-textarea *,.mq-editable-field .mq-selectable,.mq-math-mode .mq-selectable{-webkit-user-select:text;user-select:text;clip:rect(1em 1em 1em 1em);resize:none;box-sizing:content-box;width:1px;height:1px;position:absolute;transform:scale(0)}.mq-math-mode .mq-matrixed{background:#fff;display:inline-block}.mq-math-mode .mq-matrixed-container{filter:progid:DXImageTransform.Microsoft.Chroma(color=\"white\");margin-top:-.1em}.mq-math-mode .mq-matrix table{border-spacing:2px}button .mq-math-mode .mq-matrix table.mq-rows-2 td,button .mq-math-mode .mq-matrix table.mq-rows-3 td{width:.9em;font-size:.3em}button .mq-math-mode .mq-matrix table.mq-rows-2{margin-bottom:-2px}button .mq-math-mode .mq-matrix table.mq-rows-1{margin-bottom:3px}button .mq-math-mode .mq-matrix table.mq-rows-1 td{width:1.1em;margin-bottom:3px;font-size:.6em}button .mq-math-mode .mq-matrix .matrix-edit-content-row{text-align:center;vertical-align:middle;display:inline-block}button .mq-math-mode .mq-matrix .matrix-edit-content-row p{font-size:.7em}button .mq-math-mode .mq-matrix .matrix-edit-content-col{text-align:center;vertical-align:middle;display:inline-block}button .mq-math-mode .mq-matrix .matrix-edit-content-col p{padding:0 .15em;font-size:.7em}button .mq-math-mode .mq-matrix .mq-paren{padding:0;display:inline-block;transform:scale(1.13,1.77)}button .matrix-edit .mq-empty{width:.8em;margin:.1em;padding:.1em;font-size:.4em}\n"]]);
19
19
  import { o as e, r as t, t as n } from "./rolldown-runtime-DY7j01NX.js";
20
- import { a as r, d as i, i as a, m as o, n as s, p as c } from "./dist-BSMFBCe4.js";
20
+ import { c as r, d as i, m as a, p as o, r as s, u as c } from "./dist-BmgaDqwS.js";
21
21
  import * as l from "react";
22
22
  import u, { Children as d, Component as f, cloneElement as p, forwardRef as m, isValidElement as h, useContext as g } from "react";
23
23
  import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
@@ -4363,7 +4363,7 @@ js.propTypes = {
4363
4363
  };
4364
4364
  //#endregion
4365
4365
  //#region ../../lib-react/render-ui/dist/_virtual/_rolldown/runtime.js
4366
- var Ms = /* @__PURE__ */ e(o(), 1), Ns = Object.defineProperty, Ps = (e, t) => {
4366
+ var Ms = /* @__PURE__ */ e(a(), 1), Ns = Object.defineProperty, Ps = (e, t) => {
4367
4367
  let n = {};
4368
4368
  for (var r in e) Ns(n, r, {
4369
4369
  get: e[r],
@@ -6985,7 +6985,7 @@ var dp = async (e) => {
6985
6985
  close: "$"
6986
6986
  }
6987
6987
  } : { unwrapped: t };
6988
- }, { translator: mp } = c, hp = L("button")({
6988
+ }, { translator: mp } = o, hp = L("button")({
6989
6989
  display: "inline-block",
6990
6990
  minHeight: "24px",
6991
6991
  padding: 0,
@@ -8768,7 +8768,7 @@ Km.propTypes = {
8768
8768
  };
8769
8769
  //#endregion
8770
8770
  //#region ../../lib-react/render-ui/dist/preview-prompt.js
8771
- var { translator: qm } = c, Jm = "pie-prompt-audio-player", Ym = "play-audio-button", Xm = L("div")(({ theme: e, tagName: t }) => ({
8771
+ var { translator: qm } = o, Jm = "pie-prompt-audio-player", Ym = "play-audio-button", Xm = L("div")(({ theme: e, tagName: t }) => ({
8772
8772
  [`& .${Ym}:focus-visible`]: {
8773
8773
  outline: `2px solid ${kc()}`,
8774
8774
  outlineOffset: "2px"
@@ -9268,23 +9268,18 @@ var Ch = {
9268
9268
  }), Ah = ({ slotProps: e, ...t }) => /* @__PURE__ */ v(kh, {
9269
9269
  ...t,
9270
9270
  disableScrollLock: !0,
9271
- hideBackdrop: !0,
9272
9271
  slotProps: {
9273
9272
  ...e,
9274
9273
  root: {
9275
9274
  ...e?.root,
9276
9275
  style: {
9277
9276
  backgroundColor: "transparent",
9278
- pointerEvents: "none",
9279
9277
  ...e?.root?.style
9280
9278
  }
9281
9279
  },
9282
- paper: {
9283
- ...e?.paper,
9284
- style: {
9285
- pointerEvents: "auto",
9286
- ...e?.paper?.style
9287
- }
9280
+ backdrop: {
9281
+ invisible: !0,
9282
+ ...e?.backdrop
9288
9283
  }
9289
9284
  }
9290
9285
  }), jh = /* @__PURE__ */ t({
@@ -9346,17 +9341,17 @@ var Ch = {
9346
9341
  category: e
9347
9342
  }), Vh = (e = []) => {
9348
9343
  let t = [];
9349
- i(5, () => t.push([]));
9350
- let n = e.length, r = 0, a = 0;
9351
- for (; a < n;) t[r++].push(e[a++]), r === 5 && (r = 0);
9344
+ s(5, () => t.push([]));
9345
+ let n = e.length, r = 0, i = 0;
9346
+ for (; i < n;) t[r++].push(e[i++]), r === 5 && (r = 0);
9352
9347
  return t;
9353
9348
  }, Hh = (e) => (t) => {
9354
- let n = s(e), r = n.some((e) => e.latex === t.latex), i = n.some((e) => e.name === t.name);
9355
- return !r && !i;
9349
+ let n = r(e), i = n.some((e) => e.latex === t.latex), a = n.some((e) => e.name === t.name);
9350
+ return !i && !a;
9356
9351
  }, Uh = (e = [], t = []) => {
9357
9352
  t = t.filter(Hh(e));
9358
9353
  let n = [];
9359
- i(5 - e.length, () => e.push([])), i(5, () => n.push([]));
9354
+ s(5 - e.length, () => e.push([])), s(5, () => n.push([]));
9360
9355
  let r = Vh(t);
9361
9356
  for (let t = 0; t < 5; t++) n[t] = [...e[t], ...r[t]];
9362
9357
  return n;
@@ -9774,7 +9769,7 @@ var Ch = {
9774
9769
  7: "seven",
9775
9770
  8: "eight",
9776
9771
  9: "nine"
9777
- }, H = i(10, String).map((e) => ({
9772
+ }, H = s(10, String).map((e) => ({
9778
9773
  name: M_[e],
9779
9774
  write: e,
9780
9775
  label: e,
@@ -12843,7 +12838,7 @@ function Xy(e, t, n) {
12843
12838
  }
12844
12839
  //#endregion
12845
12840
  //#region ../../lib-react/math-input/dist/mq/field-label.js
12846
- var { translator: Zy } = c;
12841
+ var { translator: Zy } = o;
12847
12842
  function Qy(e, t) {
12848
12843
  if (!e) return;
12849
12844
  let n = Zy.t("mathInput.enterAnswer", { lng: t });
@@ -13123,7 +13118,7 @@ var sb = class extends u.Component {
13123
13118
  CommonMqStyles: () => fb,
13124
13119
  Input: () => tb,
13125
13120
  Static: () => sb
13126
- }), mb = (e) => (i(5 - e.length, () => e.push([])), r.apply(null, e));
13121
+ }), mb = (e) => (s(5 - e.length, () => e.push([])), c.apply(null, e));
13127
13122
  //#endregion
13128
13123
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/IconButton/iconButtonClasses.js
13129
13124
  function hb(e) {
@@ -13494,7 +13489,7 @@ var Cb = (e) => e ? {
13494
13489
  let { onPress: t } = this.props;
13495
13490
  t(e);
13496
13491
  };
13497
- flowKeys = (e, t) => s([...mb(e), ...mb(t)]);
13492
+ flowKeys = (e, t) => r([...mb(e), ...mb(t)]);
13498
13493
  keyIsNotAllowed = (e) => {
13499
13494
  let { noDecimal: t } = this.props;
13500
13495
  return !!((e.write === "." && e.label === "." || e.write === "," && e.label === ",") && t);
@@ -17121,7 +17116,7 @@ var mw = (e, t) => {
17121
17116
  };
17122
17117
  shouldComponentUpdate(e, t) {
17123
17118
  let n = this.input.mathField.latex() !== e.latex;
17124
- return Sw("[shouldComponentUpdate] ", "inputIsDifferent: ", n), !a(this.props.error, e.error) || !n && this.props.keypadMode !== e.keypadMode || !n && this.props.noDecimal !== e.noDecimal || !n && this.state.equationEditor !== t.equationEditor ? !0 : !n && this.props.controlledKeypad ? this.props.showKeypad !== e.showKeypad : n;
17119
+ return Sw("[shouldComponentUpdate] ", "inputIsDifferent: ", n), !i(this.props.error, e.error) || !n && this.props.keypadMode !== e.keypadMode || !n && this.props.noDecimal !== e.noDecimal || !n && this.state.equationEditor !== t.equationEditor ? !0 : !n && this.props.controlledKeypad ? this.props.showKeypad !== e.showKeypad : n;
17125
17120
  }
17126
17121
  onEditorTypeChange = (e) => {
17127
17122
  this.setState({ equationEditor: e.target.value });
@@ -17420,4 +17415,4 @@ var Rw = Lw, zw = L("div")({
17420
17415
  //#endregion
17421
17416
  export { lu as $, Tm as A, w as At, pp as B, ah as C, ji as Ct, Um as D, rn as Dt, Km as E, F as Et, Bp as F, Iu as G, id as H, Ip as I, ju as J, Nu as K, vp as L, bm as M, fm as N, Im as O, Vt as Ot, um as P, du as Q, dp as R, sh as S, zi as St, eh as T, Wr as Tt, zu as U, dd as V, Lu as W, Tu as X, V as Y, xu as Z, q_ as _, Do as _t, fw as a, yl as at, dh as b, ha as bt, UC as c, nl as ct, NS as d, Xc as dt, au as et, Ab as f, Yc as ft, Yy as g, L as gt, Xy as h, Po as ht, _w as i, Ll as it, wm as j, Em as k, Ht as kt, KS as l, el as lt, pb as m, es as mt, Bw as n, Xl as nt, ow as o, ol as ot, bb as p, Ls as pt, Mu as q, Fw as r, Rl as rt, YC as s, il as st, Vw as t, nu as tt, GS as u, $c as ut, jh as v, To as vt, th as w, Gr as wt, uh as x, fa as xt, hh as y, Co as yt, fp as z };
17422
17417
 
17423
- //# sourceMappingURL=dist-y7zGmIaN.js.map
17418
+ //# sourceMappingURL=dist-BmBt-SS2.js.map