@pie-element/multiple-choice 13.4.0-next.23 → 13.4.0-next.26

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 (26) hide show
  1. package/dist/browser/{Radio-B2U4_d6P.js → Radio-B1gq3UPx.js} +1107 -1111
  2. package/dist/browser/{Radio-B2U4_d6P.js.map → Radio-B1gq3UPx.js.map} +1 -1
  3. package/dist/browser/author/index.js +19 -13
  4. package/dist/browser/author/index.js.map +1 -1
  5. package/dist/browser/delivery/index.js +3 -3
  6. package/dist/browser/delivery/index.js.map +1 -1
  7. package/dist/browser/editor-runtime/{Radio-BgBOc0mf.js → Radio-DK_R3lHB.js} +345 -349
  8. package/dist/browser/editor-runtime/{Radio-BgBOc0mf.js.map → Radio-DK_R3lHB.js.map} +1 -1
  9. package/dist/browser/editor-runtime/author/index.js +21 -15
  10. package/dist/browser/editor-runtime/author/index.js.map +1 -1
  11. package/dist/browser/editor-runtime/delivery/index.js +3 -3
  12. package/dist/browser/editor-runtime/delivery/index.js.map +1 -1
  13. package/dist/browser/editor-runtime/{main-DZhu4lI6.js → main-D8_COXAc.js} +2 -2
  14. package/dist/browser/editor-runtime/{main-DZhu4lI6.js.map → main-D8_COXAc.js.map} +1 -1
  15. package/dist/browser/editor-runtime/print/index.js +6 -4
  16. package/dist/browser/editor-runtime/print/index.js.map +1 -1
  17. package/dist/browser/{main-BGGKN46Q.js → main-CFBHoJYr.js} +2 -2
  18. package/dist/browser/{main-BGGKN46Q.js.map → main-CFBHoJYr.js.map} +1 -1
  19. package/dist/browser/print/index.js +6 -4
  20. package/dist/browser/print/index.js.map +1 -1
  21. package/dist/delivery/index.js +1 -1
  22. package/dist/index.iife.js +21 -21
  23. package/dist/print/index.js +4 -2
  24. package/module/print.js +602 -604
  25. package/module/print.js.map +1 -1
  26. package/package.json +12 -12
@@ -16,7 +16,7 @@
16
16
  (document.head || document.documentElement).appendChild(style);
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
- import { $ as e, A as t, At as n, B as r, Bt as i, C as a, Ct as o, D as s, Dt as c, E as l, Et as u, F as d, Ft as f, G as p, H as m, Ht as h, I as g, It as _, J as v, K as y, L as b, Lt as x, M as S, Mt as C, N as w, Nt as ee, O as T, Ot as E, P as te, Pt as D, Q as O, R as ne, Rt as k, S as A, St as re, T as ie, Tt as ae, U as j, Ut as oe, V as se, Vt as M, W as ce, X as N, Y as le, Z as ue, _ as de, a as fe, at as pe, b as me, bt as he, c as ge, ct as _e, d as ve, dt as ye, et as be, f as xe, ft as Se, i as P, it as Ce, jt as we, k as Te, kt as F, l as Ee, lt as De, mt as Oe, n as ke, nt as Ae, o as je, ot as Me, pt as Ne, q as Pe, r as Fe, rt as Ie, s as Le, st as Re, t as ze, tt as Be, u as Ve, ut as He, v as Ue, vt as We, wt as Ge, x as Ke, xt as qe, y as Je, yt as I, z as Ye, zt as Xe } from "../Radio-BgBOc0mf.js";
19
+ import { $ as e, A as t, At as n, B as r, Bt as i, C as a, Ct as o, D as s, Dt as c, E as l, Et as u, F as d, Ft as f, G as p, H as m, Ht as h, I as g, It as _, J as v, K as y, L as b, Lt as x, M as S, Mt as C, N as w, Nt as ee, O as T, Ot as E, P as te, Pt as D, Q as O, R as ne, Rt as k, S as A, St as re, T as ie, Tt as ae, U as j, Ut as oe, V as se, Vt as M, W as ce, X as N, Y as le, Z as ue, _ as de, a as fe, at as pe, b as me, bt as he, c as ge, ct as _e, d as ve, dt as ye, et as be, f as xe, ft as Se, i as P, it as Ce, jt as we, k as Te, kt as F, l as Ee, lt as De, mt as Oe, n as ke, nt as Ae, o as je, ot as Me, pt as Ne, q as Pe, r as Fe, rt as Ie, s as Le, st as Re, t as ze, tt as Be, u as Ve, ut as He, v as Ue, vt as We, wt as Ge, x as Ke, xt as qe, y as Je, yt as I, z as Ye, zt as Xe } from "../Radio-DK_R3lHB.js";
20
20
  import { a as Ze, c as Qe, d as $e, f as et, h as tt, i as nt, m as rt, n as it, o as at, p as ot, r as st, s as ct, t as lt, u as ut } from "../dist-CHbLnyuX.js";
21
21
  import * as L from "react";
22
22
  import R, { Component as dt, createContext as ft, createElement as pt, createRef as mt, forwardRef as ht, memo as gt, useCallback as _t, useContext as vt, useDebugValue as yt, useEffect as bt, useLayoutEffect as xt, useMemo as St, useRef as Ct, useState as wt, version as Tt } from "react";
@@ -2437,7 +2437,7 @@ function xo({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: a
2437
2437
  bt(() => (document.addEventListener("click", u), () => {
2438
2438
  document.removeEventListener("click", u);
2439
2439
  }), []), bt(() => {
2440
- l.current && typeof w == "function" && w(l.current);
2440
+ l.current && typeof S == "function" && S(l.current);
2441
2441
  }, [
2442
2442
  a?.value,
2443
2443
  r,
@@ -2629,21 +2629,21 @@ var Eo = (e) => {
2629
2629
  left: 0
2630
2630
  }), b = () => {
2631
2631
  h() || (_(!1), i.onInlineDropdownToolbarClose?.(t));
2632
- }, x = i.respAreaToolbar([n, u], t, b), S = () => {
2632
+ }, x = i.respAreaToolbar([n, u], t, b), C = () => {
2633
2633
  let { tr: e } = t.state, n = e.doc.nodeAt(u);
2634
2634
  if (!n) return;
2635
2635
  let { selection: r } = e;
2636
2636
  r.from === u && r.to === u + n.nodeSize || (e.setSelection(Kt.create(e.doc, u)), t.view.dispatch(e));
2637
- }, C = () => {
2637
+ }, w = () => {
2638
2638
  p.current || (i.onToolbarCloseRequest ? (p.current = !0, i.onToolbarCloseRequest([n, u], t, () => {
2639
2639
  p.current = !1, delete t._holdInlineDropdownToolbarIndex, b();
2640
2640
  }, () => {
2641
- p.current = !1, delete t._holdInlineDropdownToolbarIndex, _(!0), setTimeout(S, 0);
2641
+ p.current = !1, delete t._holdInlineDropdownToolbarIndex, _(!0), setTimeout(C, 0);
2642
2642
  })) : b());
2643
2643
  };
2644
2644
  bt(() => {
2645
2645
  let { selection: e } = t.state, r = e.from + n.nodeSize === e.to;
2646
- a ? r && _(!0) : g && C();
2646
+ a ? r && _(!0) : g && w();
2647
2647
  }, [
2648
2648
  t,
2649
2649
  n,
@@ -2651,7 +2651,7 @@ var Eo = (e) => {
2651
2651
  ]);
2652
2652
  let ee = (e) => e.clientX > document.documentElement.clientWidth || e.clientY > document.documentElement.clientHeight || e.target === document.documentElement;
2653
2653
  return bt(() => {
2654
- m.current && typeof w == "function" && w(m.current);
2654
+ m.current && typeof S == "function" && S(m.current);
2655
2655
  }, [s]), bt(() => {
2656
2656
  let e = document.body.getBoundingClientRect(), { from: n } = t.state.selection, r = t.view.coordsAtPos(n);
2657
2657
  y({
@@ -2661,7 +2661,7 @@ var Eo = (e) => {
2661
2661
  let i = (e) => {
2662
2662
  if (ee(e)) return;
2663
2663
  let n = e.target.closest("[data-toolbar-for]");
2664
- !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();
2664
+ !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]") && w();
2665
2665
  };
2666
2666
  return g ? document.addEventListener("mousedown", i) : document.removeEventListener("mousedown", i), () => document.removeEventListener("mousedown", i);
2667
2667
  }, [g, n]), /* @__PURE__ */ B(yi, {
@@ -9096,7 +9096,12 @@ var tp = (e, t) => {
9096
9096
  };
9097
9097
  }
9098
9098
  componentDidMount() {
9099
- this.input && this.props.autoFocus && setTimeout(() => this.input.focus(), 0);
9099
+ this.input && this.props.autoFocus && (this.focusTimeout = setTimeout(() => {
9100
+ this.focusTimeout = void 0, this.input?.focus();
9101
+ }, 0));
9102
+ }
9103
+ componentWillUnmount() {
9104
+ this.focusTimeout && clearTimeout(this.focusTimeout);
9100
9105
  }
9101
9106
  onClick = (e) => {
9102
9107
  let { noDecimal: t, noLatexHandling: n, onChange: r } = this.props, i = bp(e);
@@ -9632,7 +9637,7 @@ var wp = Cp, { commonMqFontStyles: Tp, longdivStyles: Ep, supsubStyles: Dp } = i
9632
9637
  "data-latex": "",
9633
9638
  "data-raw": e.latex
9634
9639
  },
9635
- S(e.latex, e.wrapper)
9640
+ w(e.latex, e.wrapper)
9636
9641
  ];
9637
9642
  },
9638
9643
  addNodeView() {
@@ -9694,15 +9699,16 @@ var wp = Cp, { commonMqFontStyles: Tp, longdivStyles: Ep, supsubStyles: Dp } = i
9694
9699
  t !== null && cancelAnimationFrame(t), window.removeEventListener("scroll", n, !0), window.removeEventListener("resize", n);
9695
9700
  };
9696
9701
  }, [r, s]), bt(() => {
9697
- let e = (e) => {
9698
- 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}`);
9699
- if (l.current && !l.current.contains(n) && !n?.closest?.("[data-inline-node]") && !i && !a && !o) {
9702
+ let e = performance.now(), n = (n) => {
9703
+ if (n?.timeStamp < e) return;
9704
+ 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}`);
9705
+ if (l.current && !l.current.contains(i) && !i?.closest?.("[data-inline-node]") && !a && !o && !s) {
9700
9706
  c(!1);
9701
- let e = !!r?.view?.dom?.contains(n);
9707
+ let e = !!r?.view?.dom?.contains(i);
9702
9708
  S(t.attrs.latex, { moveCursorAfterNode: !e });
9703
9709
  }
9704
9710
  };
9705
- return s ? document.addEventListener("click", e) : document.removeEventListener("click", e), () => document.removeEventListener("click", e);
9711
+ return s ? document.addEventListener("click", n) : document.removeEventListener("click", n), () => document.removeEventListener("click", n);
9706
9712
  }, [
9707
9713
  r,
9708
9714
  s,