@pie-element/matrix 4.1.2-next.25 → 4.1.2-next.28

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.
@@ -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 { i as e, r as t, t as n } from "../rolldown-runtime-CWhphoD1.js";
20
- import { $ as r, A as i, At as a, B as o, C as s, Ct as c, D as l, Dt as u, E as d, Et as f, F as p, G as m, H as h, I as g, J as _, K as v, L as y, M as b, N as x, O as S, Ot as C, P as w, Q as ee, R as te, S as ne, St as T, Tt as re, U as ie, V as E, W as ae, X as oe, Y as se, Z as ce, _ as le, _t as ue, a as de, at as fe, b as pe, bt as me, c as he, ct as ge, dt as _e, et as ve, f as ye, ft as be, g as xe, gt as Se, h as Ce, ht as we, i as Te, it as D, j as Ee, k as De, kt as Oe, l as O, lt as ke, m as Ae, mt as k, n as je, nt as Me, o as Ne, ot as Pe, p as Fe, pt as Ie, q as Le, r as Re, rt as ze, s as Be, st as Ve, t as He, tt as Ue, u as We, ut as Ge, v as Ke, vt as qe, w as Je, wt as Ye, x as Xe, xt as Ze, yt as Qe, z as $e } from "../Radio-C1VDMp7U.js";
20
+ import { $ as r, A as i, At as a, B as o, C as s, Ct as c, D as l, Dt as u, E as d, Et as f, F as p, G as m, H as h, I as g, J as _, K as v, L as y, M as b, N as x, O as S, Ot as C, P as w, Q as ee, R as te, S as ne, St as T, Tt as re, U as ie, V as E, W as ae, X as oe, Y as se, Z as ce, _ as le, _t as ue, a as de, at as fe, b as pe, bt as me, c as he, ct as ge, dt as _e, et as ve, f as ye, ft as be, g as xe, gt as Se, h as Ce, ht as we, i as Te, it as D, j as Ee, k as De, kt as Oe, l as O, lt as ke, m as Ae, mt as k, n as je, nt as Me, o as Ne, ot as Pe, p as Fe, pt as Ie, q as Le, r as Re, rt as ze, s as Be, st as Ve, t as He, tt as Ue, u as We, ut as Ge, v as Ke, vt as qe, w as Je, wt as Ye, x as Xe, xt as Ze, yt as Qe, z as $e } from "../Radio-UrS4l9in.js";
21
21
  import { a as et, c as tt, d as nt, f as rt, i as it, l as at, n as ot, o as st, r as ct, s as lt, t as ut, u as dt } from "../dist-Do2L8-B6.js";
22
22
  import * as A from "react";
23
23
  import ft, { Component as pt, createContext as mt, createElement as ht, createRef as gt, forwardRef as _t, memo as vt, useCallback as yt, useContext as bt, useDebugValue as xt, useEffect as St, useLayoutEffect as Ct, useMemo as wt, useRef as Tt, useState as Et, version as Dt } from "react";
@@ -14944,50 +14944,50 @@ var Hb = D("span")(({ theme: e }) => ({
14944
14944
  "& mjx-mn:has(~ mjx-mfrac), mjx-mfrac ~ mjx-mn": { fontSize: "120% !important" },
14945
14945
  "& mjx-frac": { fontSize: "120% !important" }
14946
14946
  }));
14947
- function Ub({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: o, selected: s }) {
14948
- let [c, l] = Et(null), u = Tt(null), d = (e) => {
14949
- u.current && (u.current.contains(e.target) ? u.current.classList.add("selected") : u.current.classList.remove("selected"));
14947
+ function Ub({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: a, selected: o }) {
14948
+ let [s, c] = Et(null), l = Tt(null), u = (e) => {
14949
+ l.current && (l.current.contains(e.target) ? l.current.classList.add("selected") : l.current.classList.remove("selected"));
14950
14950
  };
14951
- St(() => (document.addEventListener("click", d), () => {
14952
- document.removeEventListener("click", d);
14951
+ St(() => (document.addEventListener("click", u), () => {
14952
+ document.removeEventListener("click", u);
14953
14953
  }), []), St(() => {
14954
- u.current && typeof a == "function" && a(u.current);
14954
+ l.current && typeof Oe == "function" && Oe(l.current);
14955
14955
  }, [
14956
- o?.value,
14956
+ a?.value,
14957
14957
  r,
14958
14958
  i?.value?.value
14959
14959
  ]), St(() => {
14960
- if (r && u.current && !c) {
14961
- let e = u.current;
14962
- l({
14960
+ if (r && l.current && !s) {
14961
+ let e = l.current;
14962
+ c({
14963
14963
  width: e.offsetWidth,
14964
14964
  height: e.offsetHeight
14965
14965
  });
14966
- } else !r && c && l(null);
14967
- }, [r, c]);
14968
- let p = i && r ? i.value.value : o.value || "\xA0", m = n ? "\xA0" : p, h = m !== "\xA0", g = i && r, _ = s ? `2px solid ${f.primaryDark()}` : g ? `1px solid ${f.defaults.BORDER_DARK}` : `1px solid ${f.defaults.BORDER_LIGHT}`;
14966
+ } else !r && s && c(null);
14967
+ }, [r, s]);
14968
+ let d = i && r ? i.value.value : a.value || "\xA0", p = n ? "\xA0" : d, m = p !== "\xA0", h = i && r, g = o ? `2px solid ${f.primaryDark()}` : h ? `1px solid ${f.defaults.BORDER_DARK}` : `1px solid ${f.defaults.BORDER_LIGHT}`;
14969
14969
  return /* @__PURE__ */ M("div", {
14970
- ref: u,
14971
- className: s ? "selected" : void 0,
14970
+ ref: l,
14971
+ className: o ? "selected" : void 0,
14972
14972
  style: {
14973
14973
  display: "inline-flex",
14974
14974
  minWidth: "178px",
14975
14975
  minHeight: "36px",
14976
- background: g ? `${f.defaults.BORDER_LIGHT}` : `${f.defaults.WHITE}`,
14977
- border: _,
14976
+ background: h ? `${f.defaults.BORDER_LIGHT}` : `${f.defaults.WHITE}`,
14977
+ border: g,
14978
14978
  boxSizing: "border-box",
14979
14979
  borderRadius: "3px",
14980
14980
  overflow: "hidden",
14981
14981
  position: "relative",
14982
14982
  padding: "8px 8px 8px 35px",
14983
- width: c ? c.width : void 0,
14984
- height: c ? c.height : void 0,
14983
+ width: s ? s.width : void 0,
14984
+ height: s ? s.height : void 0,
14985
14985
  touchAction: "none"
14986
14986
  },
14987
14987
  "data-key": e.index,
14988
14988
  contentEditable: !1,
14989
14989
  children: [
14990
- h && /* @__PURE__ */ j(Sy, {
14990
+ m && /* @__PURE__ */ j(Sy, {
14991
14991
  style: {
14992
14992
  position: "absolute",
14993
14993
  top: "6px",
@@ -14996,7 +14996,7 @@ function Ub({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: o
14996
14996
  },
14997
14997
  contentEditable: !1
14998
14998
  }),
14999
- /* @__PURE__ */ j("span", { dangerouslySetInnerHTML: { __html: m } }),
14999
+ /* @__PURE__ */ j("span", { dangerouslySetInnerHTML: { __html: p } }),
15000
15000
  t
15001
15001
  ]
15002
15002
  });
@@ -15138,56 +15138,56 @@ qb.propTypes = {
15138
15138
  //#endregion
15139
15139
  //#region ../../lib-react/editable-html-tip-tap/dist/components/respArea/InlineDropdown.js
15140
15140
  var Jb = (e) => {
15141
- let { editor: t, node: n, getPos: r, options: i, selected: o } = e, { attrs: s } = n, { value: c, error: l } = s, u = c || "<div>&nbsp</div>", d = r(), f = Tt(null), p = Tt(null), m = Tt(!1), h = Tt(null), g = () => t._holdInlineDropdownToolbarIndex != null && String(t._holdInlineDropdownToolbarIndex) === String(n.attrs.index), [_, v] = Et(!1), [y, b] = Et({
15141
+ let { editor: t, node: n, getPos: r, options: i, selected: a } = e, { attrs: o } = n, { value: s, error: c } = o, l = s || "<div>&nbsp</div>", u = r(), d = Tt(null), f = Tt(null), p = Tt(!1), m = Tt(null), h = () => t._holdInlineDropdownToolbarIndex != null && String(t._holdInlineDropdownToolbarIndex) === String(n.attrs.index), [g, _] = Et(!1), [v, y] = Et({
15142
15142
  top: 0,
15143
15143
  left: 0
15144
- }), x = () => {
15145
- g() || (v(!1), i.onInlineDropdownToolbarClose?.(t));
15146
- }, S = i.respAreaToolbar([n, d], t, x), C = () => {
15147
- let { tr: e } = t.state, n = e.doc.nodeAt(d);
15144
+ }), b = () => {
15145
+ h() || (_(!1), i.onInlineDropdownToolbarClose?.(t));
15146
+ }, x = i.respAreaToolbar([n, u], t, b), S = () => {
15147
+ let { tr: e } = t.state, n = e.doc.nodeAt(u);
15148
15148
  if (!n) return;
15149
15149
  let { selection: r } = e;
15150
- r.from === d && r.to === d + n.nodeSize || (e.setSelection(L.create(e.doc, d)), t.view.dispatch(e));
15151
- }, w = () => {
15152
- m.current || (i.onToolbarCloseRequest ? (m.current = !0, i.onToolbarCloseRequest([n, d], t, () => {
15153
- m.current = !1, delete t._holdInlineDropdownToolbarIndex, x();
15150
+ r.from === u && r.to === u + n.nodeSize || (e.setSelection(L.create(e.doc, u)), t.view.dispatch(e));
15151
+ }, C = () => {
15152
+ p.current || (i.onToolbarCloseRequest ? (p.current = !0, i.onToolbarCloseRequest([n, u], t, () => {
15153
+ p.current = !1, delete t._holdInlineDropdownToolbarIndex, b();
15154
15154
  }, () => {
15155
- m.current = !1, delete t._holdInlineDropdownToolbarIndex, v(!0), setTimeout(C, 0);
15156
- })) : x());
15155
+ p.current = !1, delete t._holdInlineDropdownToolbarIndex, _(!0), setTimeout(S, 0);
15156
+ })) : b());
15157
15157
  };
15158
15158
  St(() => {
15159
15159
  let { selection: e } = t.state, r = e.from + n.nodeSize === e.to;
15160
- o ? r && v(!0) : _ && w();
15160
+ a ? r && _(!0) : g && C();
15161
15161
  }, [
15162
15162
  t,
15163
15163
  n,
15164
- o
15164
+ a
15165
15165
  ]);
15166
- let ee = (e) => e.clientX > document.documentElement.clientWidth || e.clientY > document.documentElement.clientHeight || e.target === document.documentElement;
15166
+ let w = (e) => e.clientX > document.documentElement.clientWidth || e.clientY > document.documentElement.clientHeight || e.target === document.documentElement;
15167
15167
  return St(() => {
15168
- h.current && typeof a == "function" && a(h.current);
15169
- }, [c]), St(() => {
15168
+ m.current && typeof Oe == "function" && Oe(m.current);
15169
+ }, [s]), St(() => {
15170
15170
  let e = document.body.getBoundingClientRect(), { from: n } = t.state.selection, r = t.view.coordsAtPos(n);
15171
- b({
15171
+ y({
15172
15172
  top: r.top + Math.abs(e.top) + 40,
15173
15173
  left: r.left
15174
15174
  });
15175
15175
  let i = (e) => {
15176
- if (ee(e)) return;
15176
+ if (w(e)) return;
15177
15177
  let n = e.target.closest("[data-toolbar-for]");
15178
- !e.target.closest("[data-inline-dropdown-toolbar]") && (!n || n.dataset.toolbarFor !== p.current?.instanceId) && !t._toolbarOpened && f.current && !f.current.contains(e.target) && !e.target.closest("[data-inline-node]") && w();
15178
+ !e.target.closest("[data-inline-dropdown-toolbar]") && (!n || n.dataset.toolbarFor !== f.current?.instanceId) && !t._toolbarOpened && d.current && !d.current.contains(e.target) && !e.target.closest("[data-inline-node]") && C();
15179
15179
  };
15180
- return _ ? document.addEventListener("mousedown", i) : document.removeEventListener("mousedown", i), () => document.removeEventListener("mousedown", i);
15181
- }, [_, n]), /* @__PURE__ */ M(Xv, {
15180
+ return g ? document.addEventListener("mousedown", i) : document.removeEventListener("mousedown", i), () => document.removeEventListener("mousedown", i);
15181
+ }, [g, n]), /* @__PURE__ */ M(Xv, {
15182
15182
  className: "inline-dropdown",
15183
- "data-selected": o,
15183
+ "data-selected": a,
15184
15184
  style: {
15185
15185
  display: "inline-flex",
15186
15186
  height: "50px",
15187
15187
  cursor: "pointer"
15188
15188
  },
15189
15189
  children: [/* @__PURE__ */ M("div", {
15190
- ref: h,
15190
+ ref: m,
15191
15191
  style: {
15192
15192
  display: "inline-flex",
15193
15193
  minWidth: "178px",
@@ -15200,7 +15200,7 @@ var Jb = (e) => {
15200
15200
  position: "relative",
15201
15201
  alignItems: "center"
15202
15202
  },
15203
- onClick: () => v(!0),
15203
+ onClick: () => _(!0),
15204
15204
  children: [/* @__PURE__ */ j("div", {
15205
15205
  style: {
15206
15206
  flex: 1,
@@ -15214,7 +15214,7 @@ var Jb = (e) => {
15214
15214
  display: "inline-block",
15215
15215
  verticalAlign: "middle"
15216
15216
  },
15217
- dangerouslySetInnerHTML: { __html: u }
15217
+ dangerouslySetInnerHTML: { __html: l }
15218
15218
  })
15219
15219
  }), /* @__PURE__ */ j(xy, {
15220
15220
  direction: "down",
@@ -15224,10 +15224,10 @@ var Jb = (e) => {
15224
15224
  right: "5px"
15225
15225
  }
15226
15226
  })]
15227
- }), _ && /* @__PURE__ */ M(ft.Fragment, { children: [At.createPortal(/* @__PURE__ */ j("div", {
15228
- ref: f,
15229
- children: /* @__PURE__ */ j(S, { editorCallback: (e) => {
15230
- p.current = e;
15227
+ }), g && /* @__PURE__ */ M(ft.Fragment, { children: [At.createPortal(/* @__PURE__ */ j("div", {
15228
+ ref: d,
15229
+ children: /* @__PURE__ */ j(x, { editorCallback: (e) => {
15230
+ f.current = e;
15231
15231
  } })
15232
15232
  }), t?._tiptapContainerEl || document.body), t._tiptapContainerEl && At.createPortal(/* @__PURE__ */ j(A_, {
15233
15233
  deletable: !0,
@@ -15240,7 +15240,7 @@ var Jb = (e) => {
15240
15240
  },
15241
15241
  onDelete: () => {
15242
15242
  let { tr: e } = t.state;
15243
- e.delete(d, d + n.nodeSize), j_(t, !1), delete t._holdInlineDropdownToolbarIndex, t.view.dispatch(e), v(!1), t.commands.focus();
15243
+ e.delete(u, u + n.nodeSize), j_(t, !1), delete t._holdInlineDropdownToolbarIndex, t.view.dispatch(e), _(!1), t.commands.focus();
15244
15244
  },
15245
15245
  showDone: !1
15246
15246
  }), t._tiptapContainerEl)] })]
@@ -21762,7 +21762,12 @@ var kD = (e, t) => {
21762
21762
  };
21763
21763
  }
21764
21764
  componentDidMount() {
21765
- this.input && this.props.autoFocus && setTimeout(() => this.input.focus(), 0);
21765
+ this.input && this.props.autoFocus && (this.focusTimeout = setTimeout(() => {
21766
+ this.focusTimeout = void 0, this.input?.focus();
21767
+ }, 0));
21768
+ }
21769
+ componentWillUnmount() {
21770
+ this.focusTimeout && clearTimeout(this.focusTimeout);
21766
21771
  }
21767
21772
  onClick = (e) => {
21768
21773
  let { noDecimal: t, noLatexHandling: n, onChange: r } = this.props, i = JD(e);
@@ -22298,7 +22303,7 @@ var QD = ZD, { commonMqFontStyles: $D, longdivStyles: eO, supsubStyles: tO } = E
22298
22303
  "data-latex": "",
22299
22304
  "data-raw": e.latex
22300
22305
  },
22301
- Oe(e.latex, e.wrapper)
22306
+ a(e.latex, e.wrapper)
22302
22307
  ];
22303
22308
  },
22304
22309
  addNodeView() {
@@ -22360,15 +22365,16 @@ var QD = ZD, { commonMqFontStyles: $D, longdivStyles: eO, supsubStyles: tO } = E
22360
22365
  t !== null && cancelAnimationFrame(t), window.removeEventListener("scroll", n, !0), window.removeEventListener("resize", n);
22361
22366
  };
22362
22367
  }, [r, s]), St(() => {
22363
- let e = (e) => {
22364
- let n = e?.target, i = (document.querySelectorAll?.("[id^=\"equation-editor-select\"][id*=\"listbox\"], [aria-labelledby=\"equation-editor-label\"][role=\"listbox\"]") || []).length > 0, a = !!(n?.id && n.id.includes("equation-editor-select")) || !!n?.closest?.("[id*=\"equation-editor-select\"]"), o = !!n?.closest?.(`.math-node-${d.current}`);
22365
- if (l.current && !l.current.contains(n) && !n?.closest?.("[data-inline-node]") && !i && !a && !o) {
22368
+ let e = performance.now(), n = (n) => {
22369
+ if (n?.timeStamp < e) return;
22370
+ let i = n?.target, a = (document.querySelectorAll?.("[id^=\"equation-editor-select\"][id*=\"listbox\"], [aria-labelledby=\"equation-editor-label\"][role=\"listbox\"]") || []).length > 0, o = !!(i?.id && i.id.includes("equation-editor-select")) || !!i?.closest?.("[id*=\"equation-editor-select\"]"), s = !!i?.closest?.(`.math-node-${d.current}`);
22371
+ if (l.current && !l.current.contains(i) && !i?.closest?.("[data-inline-node]") && !a && !o && !s) {
22366
22372
  c(!1);
22367
- let e = !!r?.view?.dom?.contains(n);
22373
+ let e = !!r?.view?.dom?.contains(i);
22368
22374
  S(t.attrs.latex, { moveCursorAfterNode: !e });
22369
22375
  }
22370
22376
  };
22371
- return s ? document.addEventListener("click", e) : document.removeEventListener("click", e), () => document.removeEventListener("click", e);
22377
+ return s ? document.addEventListener("click", n) : document.removeEventListener("click", n), () => document.removeEventListener("click", n);
22372
22378
  }, [
22373
22379
  r,
22374
22380
  s,