@pie-element/fraction-model 7.0.1-next.20261004162038 → 7.0.1-next.20261004173930

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.
@@ -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, B as n, C as r, Ct as i, D as a, E as o, F as s, G as c, H as l, I as u, J as d, K as f, L as p, M as m, N as h, O as g, P as _, Q as v, R as y, S as b, T as x, U as S, V as C, W as ee, X as te, Y as ne, Z as re, _ as ie, _t as ae, a as oe, at as w, b as se, bt as ce, c as le, ct as ue, d as de, dt as fe, et as pe, f as T, ft as me, g as he, gt as ge, h as _e, ht as ve, i as ye, it as be, j as xe, k as Se, l as Ce, lt as we, m as Te, mt as Ee, n as De, nt as E, o as Oe, ot as ke, p as Ae, pt as je, q as Me, r as Ne, rt as Pe, s as Fe, st as D, tt as Ie, u as Le, ut as Re, v as ze, vt as Be, w as Ve, x as He, xt as Ue, y as We, yt as Ge, z as Ke } from "../delivery-CiWF-OC_.js";
19
+ import { $ as e, A as t, B as n, C as r, Ct as i, D as a, E as o, F as s, G as c, H as l, I as u, J as d, K as f, L as p, M as m, N as h, O as g, P as _, Q as v, R as y, S as b, T as x, U as S, V as C, W as ee, X as te, Y as ne, Z as re, _ as ie, _t as ae, a as oe, at as w, b as se, bt as ce, c as le, ct as ue, d as de, dt as fe, et as pe, f as T, ft as me, g as he, gt as ge, h as _e, ht as ve, i as ye, it as be, j as xe, k as Se, l as Ce, lt as we, m as Te, mt as Ee, n as De, nt as E, o as Oe, ot as ke, p as Ae, pt as je, q as Me, r as Ne, rt as Pe, s as Fe, st as D, tt as Ie, u as Le, ut as Re, v as ze, vt as Be, w as Ve, x as He, xt as Ue, y as We, yt as Ge, z as Ke } from "../delivery-DJEKvQF3.js";
20
20
  import { a as qe, c as Je, d as Ye, i as Xe, l as Ze, n as Qe, o as $e, r as et, s as tt, t as nt, u as rt } from "../dist-ClmZaEGT.js";
21
21
  import * as O from "react";
22
22
  import k, { Component as it, createContext as at, createElement as ot, createRef as st, forwardRef as ct, memo as lt, useCallback as ut, useContext as dt, useDebugValue as ft, useEffect as pt, useLayoutEffect as mt, useMemo as ht, useRef as gt, useState as _t, version as vt } from "react";
@@ -23474,7 +23474,7 @@ var Ik = (e) => String(e || "").replace(/-/g, "_"), Lk = (e) => e && e.attrs &&
23474
23474
  height: "28px",
23475
23475
  color: "#00bb00",
23476
23476
  ...e && {
23477
- backgroundColor: T.white(),
23477
+ backgroundColor: T.v("pie")("background", T.defaults.WHITE),
23478
23478
  "&:hover": { backgroundColor: T.backgroundDark() }
23479
23479
  },
23480
23480
  "& .MuiIconButton-label": {
@@ -26908,7 +26908,7 @@ nN.propTypes = {
26908
26908
  };
26909
26909
  //#endregion
26910
26910
  //#region ../../../node_modules/.bun/@mui+icons-material@7.3.11+44ccb211c00abd9d/node_modules/@mui/icons-material/esm/FormatBold.js
26911
- var rN = E(/*#__PURE__*/ A("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"), iN = E(/*#__PURE__*/ A("path", { d: "M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z" }), "FormatItalic"), aN = E(/*#__PURE__*/ A("path", { d: "M10 19h4v-3h-4zM5 4v3h5v3h4V7h5V4zM3 14h18v-2H3z" }), "FormatStrikethrough"), oN = E(/*#__PURE__*/ A("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"), sN = E(/*#__PURE__*/ A("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"), cN = E(/*#__PURE__*/ A("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"), lN = E(/*#__PURE__*/ A("path", { d: "M2 17h2v.5H3v1h1v.5H2v1h3v-4H2zm1-9h1V4H2v1h1zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2zm5-6v2h14V5zm0 14h14v-2H7zm0-6h14v-2H7z" }), "FormatListNumbered"), uN = E(/*#__PURE__*/ A("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"), dN = E(/*#__PURE__*/ A("path", { d: "M18 4H6v2l6.5 6L6 18v2h12v-3h-7l5-5-5-5h7z" }), "Functions"), fN = E(/*#__PURE__*/ A("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"), pN = E(/*#__PURE__*/ A("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"), mN = E(/*#__PURE__*/ A("path", { d: "M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z" }), "FormatQuote"), hN = E(/*#__PURE__*/ A("path", { d: "M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3zM8 17H6v-2h2zm0-4H6v-2h2zm0-4H6V7h2zm10 8h-2v-2h2zm0-4h-2v-2h2zm0-4h-2V7h2z" }), "Theaters"), gN = E(/*#__PURE__*/ A("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"), _N = E(/*#__PURE__*/ A("path", { d: "M3 3v18h18V3zm8 16H5v-6h6zm0-8H5V5h6zm8 8h-6v-6h6zm0-8h-6V5h6z" }), "BorderAll"), vN = () => /* @__PURE__ */ A("svg", {
26911
+ var rN = E(/*#__PURE__*/ A("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"), iN = E(/*#__PURE__*/ A("path", { d: "M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z" }), "FormatItalic"), aN = E(/*#__PURE__*/ A("path", { d: "M10 19h4v-3h-4zM5 4v3h5v3h4V7h5V4zM3 14h18v-2H3z" }), "FormatStrikethrough"), oN = E(/*#__PURE__*/ A("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"), sN = E(/*#__PURE__*/ A("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"), cN = E(/*#__PURE__*/ A("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"), lN = E(/*#__PURE__*/ A("path", { d: "M2 17h2v.5H3v1h1v.5H2v1h3v-4H2zm1-9h1V4H2v1h1zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2zm5-6v2h14V5zm0 14h14v-2H7zm0-6h14v-2H7z" }), "FormatListNumbered"), uN = E(/*#__PURE__*/ A("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"), dN = E(/*#__PURE__*/ A("path", { d: "M18 4H6v2l6.5 6L6 18v2h12v-3h-7l5-5-5-5h7z" }), "Functions"), fN = E(/*#__PURE__*/ A("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"), pN = E(/*#__PURE__*/ A("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"), mN = E(/*#__PURE__*/ A("path", { d: "M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z" }), "FormatQuote"), hN = E(/*#__PURE__*/ A("path", { d: "M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3zM8 17H6v-2h2zm0-4H6v-2h2zm0-4H6V7h2zm10 8h-2v-2h2zm0-4h-2v-2h2zm0-4h-2V7h2z" }), "Theaters"), gN = E(/*#__PURE__*/ A("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"), _N = E(/*#__PURE__*/ A("path", { d: "M3 3v18h18V3zm8 16H5v-6h6zm0-8H5V5h6zm8 8h-6v-6h6zm0-8h-6V5h6z" }), "BorderAll"), { translator: vN } = Oe, yN = () => /* @__PURE__ */ A("svg", {
26912
26912
  xmlns: "http://www.w3.org/2000/svg",
26913
26913
  height: "24px",
26914
26914
  viewBox: "0 0 24 24",
@@ -26920,7 +26920,7 @@ var rN = E(/*#__PURE__*/ A("path", { d: "M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79
26920
26920
  d: "M22,7h-2v1h3v1h-4V7c0-0.55,0.45-1,1-1h2V5h-3V4h3c0.55,0,1,0.45,1,1v1C23,6.55,22.55,7,22,7z M5.88,20h2.66l3.4-5.42h0.12 l3.4,5.42h2.66l-4.65-7.27L17.81,6h-2.68l-3.07,4.99h-0.12L8.85,6H6.19l4.32,6.73L5.88,20z",
26921
26921
  fill: "currentColor"
26922
26922
  })
26923
- }), yN = () => /* @__PURE__ */ A("svg", {
26923
+ }), bN = () => /* @__PURE__ */ A("svg", {
26924
26924
  xmlns: "http://www.w3.org/2000/svg",
26925
26925
  height: "24px",
26926
26926
  viewBox: "0 0 24 24",
@@ -26932,7 +26932,7 @@ var rN = E(/*#__PURE__*/ A("path", { d: "M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79
26932
26932
  d: "M22,18h-2v1h3v1h-4v-2c0-0.55,0.45-1,1-1h2v-1h-3v-1h3c0.55,0,1,0.45,1,1v1C23,17.55,22.55,18,22,18z M5.88,18h2.66 l3.4-5.42h0.12l3.4,5.42h2.66l-4.65-7.27L17.81,4h-2.68l-3.07,4.99h-0.12L8.85,4H6.19l4.32,6.73L5.88,18z",
26933
26933
  fill: "currentColor"
26934
26934
  })
26935
- }), bN = () => /* @__PURE__ */ A("svg", {
26935
+ }), xN = () => /* @__PURE__ */ A("svg", {
26936
26936
  width: "30",
26937
26937
  height: "28",
26938
26938
  viewBox: "0 0 30 28",
@@ -26949,8 +26949,8 @@ var rN = E(/*#__PURE__*/ A("path", { d: "M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79
26949
26949
  fill: "currentColor"
26950
26950
  })
26951
26951
  });
26952
- function xN({ editor: e, classes: t, activePlugins: n, toolbarOpts: r, responseAreaProps: i, onChange: a, autoWidthToolbar: o }) {
26953
- let [s, c] = _t(!1), l = r ?? {}, u = PS({
26952
+ function SN({ editor: e, classes: t, activePlugins: n, toolbarOpts: r, responseAreaProps: i, onChange: a, autoWidthToolbar: o, hasFocus: s, language: c }) {
26953
+ let [l, u] = _t(!1), d = gt(null), f = r ?? {}, p = PS({
26954
26954
  editor: e,
26955
26955
  selector: (e) => {
26956
26956
  let { selection: t } = e.editor?.state || {}, n;
@@ -26961,7 +26961,6 @@ function xN({ editor: e, classes: t, activePlugins: n, toolbarOpts: r, responseA
26961
26961
  currentNode: n,
26962
26962
  hideDefaultToolbar: r,
26963
26963
  hasTextSelectionInTable: i,
26964
- isFocused: e.editor?.isFocused,
26965
26964
  toolbarOpened: e.editor?._toolbarOpened ?? !1,
26966
26965
  isBold: e.editor.isActive("bold") ?? !1,
26967
26966
  canBold: e.editor.can().chain().toggleBold().run() ?? !1,
@@ -26994,17 +26993,21 @@ function xN({ editor: e, classes: t, activePlugins: n, toolbarOpts: r, responseA
26994
26993
  canRedo: e.editor.can().chain().redo().run() ?? !1
26995
26994
  };
26996
26995
  }
26997
- }), d = !!o, f = lC(t.toolbar, gx, {
26996
+ }), m = !!o, h = p.hideDefaultToolbar && p.currentNode?.type?.name === "drag_in_the_blank", g = f.alwaysVisible || s && !p.toolbarOpened && (!p.hideDefaultToolbar || h);
26997
+ mt(() => {
26998
+ d.current?.toggleAttribute("inert", !g);
26999
+ }, [g]);
27000
+ let _ = lC(t.toolbar, gx, {
26998
27001
  [t.toolbarWithNoDone]: !0,
26999
- [t.toolbarTop]: l.position === "top",
27000
- [t.toolbarRight]: l.alignment === "right",
27001
- [t.focused]: l.alwaysVisible || u.isFocused && !u.toolbarOpened && !u.hideDefaultToolbar,
27002
- [t.autoWidth]: d,
27003
- [t.fullWidth]: !d,
27004
- [t.hidden]: l.isHidden === !0
27005
- }), p = l.minWidth === void 0 ? {} : { minWidth: l.minWidth }, m = (e) => {
27002
+ [t.toolbarTop]: f.position === "top",
27003
+ [t.toolbarRight]: f.alignment === "right",
27004
+ [t.focused]: g,
27005
+ [t.autoWidth]: m,
27006
+ [t.fullWidth]: !m,
27007
+ [t.hidden]: f.isHidden === !0
27008
+ }), v = f.minWidth === void 0 ? {} : { minWidth: f.minWidth }, y = (e) => {
27006
27009
  e.preventDefault();
27007
- }, h = ht(() => [
27010
+ }, b = ht(() => [
27008
27011
  {
27009
27012
  icon: /* @__PURE__ */ A(sN, {}),
27010
27013
  label: "Insert table",
@@ -27117,7 +27120,7 @@ function xN({ editor: e, classes: t, activePlugins: n, toolbarOpts: r, responseA
27117
27120
  isActive: (e) => e.isUnderline
27118
27121
  },
27119
27122
  {
27120
- icon: /* @__PURE__ */ A(yN, {}),
27123
+ icon: /* @__PURE__ */ A(bN, {}),
27121
27124
  label: "Subscript",
27122
27125
  toggle: !0,
27123
27126
  onClick: (e) => e.chain().focus().toggleSubscript().run(),
@@ -27125,7 +27128,7 @@ function xN({ editor: e, classes: t, activePlugins: n, toolbarOpts: r, responseA
27125
27128
  isActive: (e) => e.isSubScript
27126
27129
  },
27127
27130
  {
27128
- icon: /* @__PURE__ */ A(vN, {}),
27131
+ icon: /* @__PURE__ */ A(yN, {}),
27129
27132
  label: "Superscript",
27130
27133
  toggle: !0,
27131
27134
  onClick: (e) => e.chain().focus().toggleSuperscript().run(),
@@ -27168,7 +27171,7 @@ function xN({ editor: e, classes: t, activePlugins: n, toolbarOpts: r, responseA
27168
27171
  isActive: (e) => e.isBlockquote
27169
27172
  },
27170
27173
  {
27171
- icon: /* @__PURE__ */ A(bN, {}),
27174
+ icon: /* @__PURE__ */ A(xN, {}),
27172
27175
  label: "Heading",
27173
27176
  toggle: !0,
27174
27177
  hidden: () => !n?.includes("h3"),
@@ -27185,13 +27188,13 @@ function xN({ editor: e, classes: t, activePlugins: n, toolbarOpts: r, responseA
27185
27188
  icon: /* @__PURE__ */ A(tN, { letter: "ñ" }),
27186
27189
  label: "Spanish characters (ñ)",
27187
27190
  hidden: () => !n?.includes("languageCharacters"),
27188
- onClick: () => c(IM)
27191
+ onClick: () => u(IM)
27189
27192
  },
27190
27193
  {
27191
27194
  icon: /* @__PURE__ */ A(tN, { letter: "€" }),
27192
27195
  label: "Special characters (€)",
27193
27196
  hidden: () => n?.filter((e) => e === "languageCharacters").length !== 2,
27194
- onClick: () => c(LM)
27197
+ onClick: () => u(LM)
27195
27198
  },
27196
27199
  {
27197
27200
  icon: /* @__PURE__ */ A(HM, { editor: e }),
@@ -27229,15 +27232,18 @@ function xN({ editor: e, classes: t, activePlugins: n, toolbarOpts: r, responseA
27229
27232
  onClick: (e) => e.chain().focus().redo().run(),
27230
27233
  isDisabled: (e) => !e.canRedo
27231
27234
  }
27232
- ], [n, e]), g = u.hideDefaultToolbar && u.currentNode?.type?.name === "drag_in_the_blank";
27235
+ ], [n, e]);
27233
27236
  return /* @__PURE__ */ j("div", {
27234
- className: f,
27235
- style: { ...p },
27236
- onMouseDown: m,
27237
+ ref: d,
27238
+ className: _,
27239
+ style: { ...v },
27240
+ onMouseDown: y,
27237
27241
  children: [
27238
- g && /* @__PURE__ */ A("div", {
27242
+ h && /* @__PURE__ */ A("div", {
27239
27243
  className: t.defaultToolbar,
27240
- tabIndex: "1",
27244
+ role: "toolbar",
27245
+ tabIndex: -1,
27246
+ "aria-label": vN.t("editableHtml.responseAreaToolbar", { lng: c }),
27241
27247
  children: /* @__PURE__ */ A("div", {
27242
27248
  className: t.buttonsContainer,
27243
27249
  children: /* @__PURE__ */ A("button", {
@@ -27252,14 +27258,16 @@ function xN({ editor: e, classes: t, activePlugins: n, toolbarOpts: r, responseA
27252
27258
  })
27253
27259
  })
27254
27260
  }),
27255
- !u.hideDefaultToolbar && /* @__PURE__ */ j("div", {
27261
+ !p.hideDefaultToolbar && /* @__PURE__ */ j("div", {
27256
27262
  className: t.defaultToolbar,
27257
- tabIndex: "1",
27263
+ role: "toolbar",
27264
+ tabIndex: -1,
27265
+ "aria-label": vN.t("editableHtml.toolbar", { lng: c }),
27258
27266
  children: [
27259
27267
  /* @__PURE__ */ A("div", {
27260
27268
  className: t.buttonsContainer,
27261
- children: h.filter((e) => !e.hidden?.(u)).map((n, r) => {
27262
- let i = n.isDisabled?.(u), a = n.isActive?.(u);
27269
+ children: b.filter((e) => !e.hidden?.(p)).map((n, r) => {
27270
+ let i = n.isDisabled?.(p), a = n.isActive?.(p);
27263
27271
  return /* @__PURE__ */ A("button", {
27264
27272
  type: "button",
27265
27273
  disabled: i,
@@ -27284,24 +27292,24 @@ function xN({ editor: e, classes: t, activePlugins: n, toolbarOpts: r, responseA
27284
27292
  className: t.button,
27285
27293
  children: /* @__PURE__ */ A(FM, {})
27286
27294
  }),
27287
- l.showDone && /* @__PURE__ */ A(bx, { onClick: () => {
27295
+ f.showDone && /* @__PURE__ */ A(bx, { onClick: () => {
27288
27296
  a?.(e.getHTML()), e.commands.blur();
27289
27297
  } })
27290
27298
  ]
27291
27299
  }),
27292
- s && /* @__PURE__ */ A(nN, {
27300
+ l && /* @__PURE__ */ A(nN, {
27293
27301
  editor: e,
27294
27302
  opts: {
27295
- ...s,
27303
+ ...l,
27296
27304
  renderPopOver: (e, t) => console.log("Show popover", t),
27297
27305
  closePopOver: () => console.log("Close popover")
27298
27306
  },
27299
- onClose: () => c(!1)
27307
+ onClose: () => u(!1)
27300
27308
  })
27301
27309
  ]
27302
27310
  });
27303
27311
  }
27304
- var SN = (e) => {
27312
+ var CN = (e) => {
27305
27313
  we();
27306
27314
  let t = {
27307
27315
  defaultToolbar: "defaultToolbar",
@@ -27322,11 +27330,11 @@ var SN = (e) => {
27322
27330
  label: "label",
27323
27331
  shared: "shared"
27324
27332
  };
27325
- return /* @__PURE__ */ A(CN, { children: /* @__PURE__ */ A(xN, {
27333
+ return /* @__PURE__ */ A(wN, { children: /* @__PURE__ */ A(SN, {
27326
27334
  ...e,
27327
27335
  classes: t
27328
27336
  }) });
27329
- }, CN = D("div")(() => ({
27337
+ }, wN = D("div")(() => ({
27330
27338
  height: 0,
27331
27339
  overflow: "visible",
27332
27340
  "& .defaultToolbar": {
@@ -27403,7 +27411,7 @@ var SN = (e) => {
27403
27411
  },
27404
27412
  "& .label": { color: "var(--editable-html-toolbar-check, #00bb00)" },
27405
27413
  "& .shared": { display: "flex" }
27406
- })), wN = D("div", { shouldForwardProp: (e) => !["noBorder", "error"].includes(e) })(({ theme: e, noBorder: t, error: n }) => ({
27414
+ })), TN = D("div", { shouldForwardProp: (e) => !["noBorder", "error"].includes(e) })(({ theme: e, noBorder: t, error: n }) => ({
27407
27415
  position: "relative",
27408
27416
  padding: "0px",
27409
27417
  border: t ? "none" : "1px solid #ccc",
@@ -27479,7 +27487,7 @@ var SN = (e) => {
27479
27487
  },
27480
27488
  "& table:not([border=\"1\"]) td, th": { border: `1px solid ${T.tableGridLight()}` },
27481
27489
  ...n && { border: `2px solid ${e.palette.error.main} !important` }
27482
- })), TN = D("div", { shouldForwardProp: (e) => !["disableScrollbar", "highlightShape"].includes(e) })(({ theme: e, disableScrollbar: t, highlightShape: n }) => ({
27490
+ })), EN = D("div", { shouldForwardProp: (e) => !["disableScrollbar", "highlightShape"].includes(e) })(({ theme: e, disableScrollbar: t, highlightShape: n }) => ({
27483
27491
  position: "relative",
27484
27492
  padding: "0px",
27485
27493
  overflowY: "auto",
@@ -27490,20 +27498,20 @@ var SN = (e) => {
27490
27498
  scrollbarWidth: "none",
27491
27499
  "-ms-overflow-style": "none"
27492
27500
  }
27493
- })), EN = D("div", { shouldForwardProp: (e) => e !== "noPadding" })(({ noPadding: e }) => ({ padding: e ? 0 : "10px 8px" }));
27494
- function DN(e) {
27495
- let [t, n] = _t(null), r = gt(null), { editor: i, disabled: a, children: o, disableScrollbar: s, activePlugins: c, toolbarOpts: l, responseAreaProps: u, autoFocus: d, minWidth: f, width: p, maxWidth: m, minHeight: h, height: g, maxHeight: _, highlightShape: v, ref: y } = e;
27501
+ })), DN = D("div", { shouldForwardProp: (e) => e !== "noPadding" })(({ noPadding: e }) => ({ padding: e ? 0 : "10px 8px" }));
27502
+ function ON(e) {
27503
+ let [t, n] = _t(null), [r, i] = _t(!1), a = gt(null), { editor: o, disabled: s, children: c, disableScrollbar: l, activePlugins: u, toolbarOpts: d, responseAreaProps: f, autoFocus: p, minWidth: m, width: h, maxWidth: g, minHeight: _, height: v, maxHeight: y, highlightShape: b, ref: x } = e;
27496
27504
  pt(() => {
27497
- i && r.current && (i._tiptapContainerEl = r.current);
27498
- }, [i, r.current]), pt(() => {
27499
- i && d && Promise.resolve().then(() => {
27500
- i.commands.focus("end");
27505
+ o && a.current && (o._tiptapContainerEl = a.current);
27506
+ }, [o, a.current]), pt(() => {
27507
+ o && p && Promise.resolve().then(() => {
27508
+ o.commands.focus("end");
27501
27509
  });
27502
- }, [i, d]), pt(() => {
27510
+ }, [o, p]), pt(() => {
27503
27511
  if (e.adjustWidthForLimit) {
27504
27512
  let t = document.createElement("p");
27505
27513
  t.style.visibility = "hidden", t.style.position = "absolute", t.style.whiteSpace = "nowrap", t.textContent = "W".repeat(e.charactersLimit);
27506
- let i = window.getComputedStyle(r.current);
27514
+ let r = window.getComputedStyle(a.current);
27507
27515
  [
27508
27516
  "fontFamily",
27509
27517
  "fontSize",
@@ -27514,95 +27522,103 @@ function DN(e) {
27514
27522
  "textTransform",
27515
27523
  "lineHeight"
27516
27524
  ].forEach((e) => {
27517
- t.style[e] = i[e];
27525
+ t.style[e] = r[e];
27518
27526
  }), document.body.appendChild(t), n(`${t.offsetWidth + 27}px`), t.remove();
27519
27527
  }
27520
27528
  }, [e.adjustWidthForLimit, e.charactersLimit]);
27521
- let b = ht(() => ({
27522
- width: NM(t || p),
27523
- minWidth: NM(f),
27524
- maxWidth: NM(m),
27525
- height: NM(g),
27526
- minHeight: NM(h),
27527
- maxHeight: NM(_)
27529
+ let S = ht(() => ({
27530
+ width: NM(t || h),
27531
+ minWidth: NM(m),
27532
+ maxWidth: NM(g),
27533
+ height: NM(v),
27534
+ minHeight: NM(_),
27535
+ maxHeight: NM(y)
27528
27536
  }), [
27529
27537
  t,
27530
- f,
27531
- p,
27532
27538
  m,
27533
27539
  h,
27534
27540
  g,
27535
- _
27541
+ _,
27542
+ v,
27543
+ y
27536
27544
  ]);
27537
- return /* @__PURE__ */ j(wN, {
27538
- noBorder: l && l.noBorder,
27539
- error: l && l.error,
27545
+ return /* @__PURE__ */ j(TN, {
27546
+ noBorder: d && d.noBorder,
27547
+ error: d && d.error,
27540
27548
  className: e.className,
27541
27549
  style: {
27542
- width: b.width,
27543
- minWidth: b.minWidth,
27544
- maxWidth: b.maxWidth
27550
+ width: S.width,
27551
+ minWidth: S.minWidth,
27552
+ maxWidth: S.maxWidth
27545
27553
  },
27546
- ref: r,
27547
- children: [/* @__PURE__ */ A(TN, {
27548
- disableScrollbar: s,
27549
- highlightShape: v,
27550
- children: /* @__PURE__ */ A(EN, {
27551
- noPadding: l && l.noPadding,
27552
- children: o
27554
+ ref: a,
27555
+ onFocus: (e) => {
27556
+ e.currentTarget.contains(e.target) && i(!0);
27557
+ },
27558
+ onBlur: (e) => {
27559
+ e.currentTarget.contains(e.relatedTarget) || i(!1);
27560
+ },
27561
+ children: [/* @__PURE__ */ A(EN, {
27562
+ disableScrollbar: l,
27563
+ highlightShape: b,
27564
+ children: /* @__PURE__ */ A(DN, {
27565
+ noPadding: d && d.noPadding,
27566
+ children: c
27553
27567
  })
27554
- }), i && /* @__PURE__ */ A(SN, {
27555
- editor: i,
27556
- responseAreaProps: u,
27557
- toolbarOpts: l,
27558
- activePlugins: c,
27568
+ }), o && /* @__PURE__ */ A(CN, {
27569
+ editor: o,
27570
+ responseAreaProps: f,
27571
+ toolbarOpts: d,
27572
+ activePlugins: u,
27559
27573
  onChange: e.onChange,
27560
- autoWidthToolbar: e.autoWidthToolbar
27574
+ autoWidthToolbar: e.autoWidthToolbar,
27575
+ hasFocus: r,
27576
+ language: e.language
27561
27577
  })]
27562
27578
  });
27563
27579
  }
27564
27580
  //#endregion
27565
27581
  //#region ../../../node_modules/.bun/@tiptap+core@3.31.3+ef29727eaaf819d3/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js
27566
- var ON = /* @__PURE__ */ new WeakSet(), kN = /* @__PURE__ */ new WeakSet();
27567
- function AN(e) {
27568
- let t = e;
27569
- return ON.add(t), t;
27570
- }
27582
+ var kN = /* @__PURE__ */ new WeakSet(), AN = /* @__PURE__ */ new WeakSet();
27571
27583
  function jN(e) {
27572
- return Array.isArray(e) && ON.has(e);
27584
+ let t = e;
27585
+ return kN.add(t), t;
27573
27586
  }
27574
27587
  function MN(e) {
27575
- return e.flatMap((e) => e == null ? [] : Array.isArray(e) && kN.has(e) && !jN(e) ? MN(e) : [e]);
27588
+ return Array.isArray(e) && kN.has(e);
27589
+ }
27590
+ function NN(e) {
27591
+ return e.flatMap((e) => e == null ? [] : Array.isArray(e) && AN.has(e) && !MN(e) ? NN(e) : [e]);
27576
27592
  }
27577
- function NN(e, t) {
27593
+ function PN(e, t) {
27578
27594
  if (e === "slot") return 0;
27579
27595
  if (e instanceof Function) {
27580
27596
  let n = e(t);
27581
- return Array.isArray(n) && !jN(n) && !kN.has(n) ? AN(n) : n;
27597
+ return Array.isArray(n) && !MN(n) && !AN.has(n) ? jN(n) : n;
27582
27598
  }
27583
27599
  let { children: n, ...r } = t ?? {};
27584
27600
  if (e === "svg") throw Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");
27585
27601
  if (Array.isArray(n)) {
27586
- if (jN(n)) return AN([
27602
+ if (MN(n)) return jN([
27587
27603
  e,
27588
27604
  r,
27589
27605
  n
27590
27606
  ]);
27591
- if (n.length === 0) return AN([e, r]);
27592
- let t = MN(n);
27593
- return t.length === 0 ? AN([e, r]) : AN([
27607
+ if (n.length === 0) return jN([e, r]);
27608
+ let t = NN(n);
27609
+ return t.length === 0 ? jN([e, r]) : jN([
27594
27610
  e,
27595
27611
  r,
27596
27612
  ...t
27597
27613
  ]);
27598
27614
  }
27599
- return AN(n == null ? [e, r] : [
27615
+ return jN(n == null ? [e, r] : [
27600
27616
  e,
27601
27617
  r,
27602
27618
  n
27603
27619
  ]);
27604
27620
  }
27605
- var PN = (e, t) => NN(e, t), FN = (e, t) => {
27621
+ var FN = (e, t) => PN(e, t), IN = (e, t) => {
27606
27622
  let { state: n } = e, { selection: r } = n;
27607
27623
  if (!r.empty) return !1;
27608
27624
  let { $from: i } = r;
@@ -27620,7 +27636,7 @@ var PN = (e, t) => NN(e, t), FN = (e, t) => {
27620
27636
  let n = i.parent.content, r = new N(n, 0, 0);
27621
27637
  return e.replace(l, i.after(), r), e.setSelection(F.create(e.doc, l + n.size)), e.scrollIntoView(), t(e), !0;
27622
27638
  });
27623
- }, IN = /^\s*>\s$/, LN = Mv.create({
27639
+ }, LN = /^\s*>\s$/, RN = Mv.create({
27624
27640
  name: "blockquote",
27625
27641
  addOptions() {
27626
27642
  return { HTMLAttributes: {} };
@@ -27632,9 +27648,9 @@ var PN = (e, t) => NN(e, t), FN = (e, t) => {
27632
27648
  return [{ tag: "blockquote" }];
27633
27649
  },
27634
27650
  renderHTML({ HTMLAttributes: e }) {
27635
- return /* @__PURE__ */ PN("blockquote", {
27651
+ return /* @__PURE__ */ FN("blockquote", {
27636
27652
  ...rg(this.options.HTMLAttributes, e),
27637
- children: /* @__PURE__ */ PN("slot", {})
27653
+ children: /* @__PURE__ */ FN("slot", {})
27638
27654
  });
27639
27655
  },
27640
27656
  parseMarkdown: (e, t) => {
@@ -27659,16 +27675,16 @@ var PN = (e, t) => NN(e, t), FN = (e, t) => {
27659
27675
  addKeyboardShortcuts() {
27660
27676
  return {
27661
27677
  "Mod-Shift-b": () => this.editor.commands.toggleBlockquote(),
27662
- Backspace: () => FN(this.editor, this.type)
27678
+ Backspace: () => IN(this.editor, this.type)
27663
27679
  };
27664
27680
  },
27665
27681
  addInputRules() {
27666
27682
  return [kv({
27667
- find: IN,
27683
+ find: LN,
27668
27684
  type: this.type
27669
27685
  })];
27670
27686
  }
27671
- }), RN = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, zN = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, BN = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, VN = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, HN = tv.create({
27687
+ }), zN = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, BN = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, VN = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, HN = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, UN = tv.create({
27672
27688
  name: "bold",
27673
27689
  addOptions() {
27674
27690
  return { HTMLAttributes: {} };
@@ -27691,9 +27707,9 @@ var PN = (e, t) => NN(e, t), FN = (e, t) => {
27691
27707
  ];
27692
27708
  },
27693
27709
  renderHTML({ HTMLAttributes: e }) {
27694
- return /* @__PURE__ */ PN("strong", {
27710
+ return /* @__PURE__ */ FN("strong", {
27695
27711
  ...rg(this.options.HTMLAttributes, e),
27696
- children: /* @__PURE__ */ PN("slot", {})
27712
+ children: /* @__PURE__ */ FN("slot", {})
27697
27713
  });
27698
27714
  },
27699
27715
  markdownTokenName: "strong",
@@ -27718,30 +27734,30 @@ var PN = (e, t) => NN(e, t), FN = (e, t) => {
27718
27734
  },
27719
27735
  addInputRules() {
27720
27736
  return [Ev({
27721
- find: RN,
27737
+ find: zN,
27722
27738
  type: this.type
27723
27739
  }), Ev({
27724
- find: BN,
27740
+ find: VN,
27725
27741
  type: this.type
27726
27742
  })];
27727
27743
  },
27728
27744
  addPasteRules() {
27729
27745
  return [Pv({
27730
- find: zN,
27746
+ find: BN,
27731
27747
  type: this.type
27732
27748
  }), Pv({
27733
- find: VN,
27749
+ find: HN,
27734
27750
  type: this.type
27735
27751
  })];
27736
27752
  }
27737
- }), UN = (e) => {
27753
+ }), WN = (e) => {
27738
27754
  let t = /`([^`]+)`(?!`)$/.exec(e);
27739
27755
  return !t || t.index > 0 && e[t.index - 1] === "`" ? null : {
27740
27756
  index: t.index,
27741
27757
  text: t[0],
27742
27758
  replaceWith: t[1]
27743
27759
  };
27744
- }, WN = (e) => {
27760
+ }, GN = (e) => {
27745
27761
  let t = /`([^`]+)`(?!`)/g, n = [], r;
27746
27762
  for (; (r = t.exec(e)) !== null;) r.index > 0 && e[r.index - 1] === "`" || n.push({
27747
27763
  index: r.index,
@@ -27749,7 +27765,7 @@ var PN = (e, t) => NN(e, t), FN = (e, t) => {
27749
27765
  replaceWith: r[1]
27750
27766
  });
27751
27767
  return n;
27752
- }, GN = tv.create({
27768
+ }, KN = tv.create({
27753
27769
  name: "code",
27754
27770
  addOptions() {
27755
27771
  return { HTMLAttributes: {} };
@@ -27785,17 +27801,17 @@ var PN = (e, t) => NN(e, t), FN = (e, t) => {
27785
27801
  },
27786
27802
  addInputRules() {
27787
27803
  return [Ev({
27788
- find: UN,
27804
+ find: WN,
27789
27805
  type: this.type
27790
27806
  })];
27791
27807
  },
27792
27808
  addPasteRules() {
27793
27809
  return [Pv({
27794
- find: WN,
27810
+ find: GN,
27795
27811
  type: this.type
27796
27812
  })];
27797
27813
  }
27798
- }), KN = 4, qN = /^```([a-z]+)?[\s\n]$/, JN = /^~~~([a-z]+)?[\s\n]$/, YN = Mv.create({
27814
+ }), qN = 4, JN = /^```([a-z]+)?[\s\n]$/, YN = /^~~~([a-z]+)?[\s\n]$/, XN = Mv.create({
27799
27815
  name: "codeBlock",
27800
27816
  addOptions() {
27801
27817
  return {
@@ -27805,7 +27821,7 @@ var PN = (e, t) => NN(e, t), FN = (e, t) => {
27805
27821
  exitOnArrowUp: !0,
27806
27822
  defaultLanguage: null,
27807
27823
  enableTabIndentation: !1,
27808
- tabSize: KN,
27824
+ tabSize: qN,
27809
27825
  HTMLAttributes: {}
27810
27826
  };
27811
27827
  },
@@ -27866,7 +27882,7 @@ var PN = (e, t) => NN(e, t), FN = (e, t) => {
27866
27882
  },
27867
27883
  Tab: ({ editor: e }) => {
27868
27884
  if (!this.options.enableTabIndentation) return !1;
27869
- let t = this.options.tabSize ?? KN, { state: n } = e, { selection: r } = n, { $from: i, empty: a } = r;
27885
+ let t = this.options.tabSize ?? qN, { state: n } = e, { selection: r } = n, { $from: i, empty: a } = r;
27870
27886
  if (i.parent.type !== this.type) return !1;
27871
27887
  let o = " ".repeat(t);
27872
27888
  return a ? e.commands.insertContent(o) : e.commands.command(({ tr: e }) => {
@@ -27876,7 +27892,7 @@ var PN = (e, t) => NN(e, t), FN = (e, t) => {
27876
27892
  },
27877
27893
  "Shift-Tab": ({ editor: e }) => {
27878
27894
  if (!this.options.enableTabIndentation) return !1;
27879
- let t = this.options.tabSize ?? KN, { state: n } = e, { selection: r } = n, { $from: i, empty: a } = r;
27895
+ let t = this.options.tabSize ?? qN, { state: n } = e, { selection: r } = n, { $from: i, empty: a } = r;
27880
27896
  return i.parent.type === this.type ? a ? e.commands.command(({ tr: e }) => {
27881
27897
  let { pos: r } = i, a = i.start(), o = i.end(), s = n.doc.textBetween(a, o, "\n", "\n").split("\n"), c = 0, l = 0, u = r - a;
27882
27898
  for (let e = 0; e < s.length; e += 1) {
@@ -27924,11 +27940,11 @@ var PN = (e, t) => NN(e, t), FN = (e, t) => {
27924
27940
  },
27925
27941
  addInputRules() {
27926
27942
  return [Ov({
27927
- find: qN,
27943
+ find: JN,
27928
27944
  type: this.type,
27929
27945
  getAttributes: (e) => ({ language: e[1] })
27930
27946
  }), Ov({
27931
- find: JN,
27947
+ find: YN,
27932
27948
  type: this.type,
27933
27949
  getAttributes: (e) => ({ language: e[1] })
27934
27950
  })];
@@ -27945,12 +27961,12 @@ var PN = (e, t) => NN(e, t), FN = (e, t) => {
27945
27961
  } }
27946
27962
  })];
27947
27963
  }
27948
- }), XN = Mv.create({
27964
+ }), ZN = Mv.create({
27949
27965
  name: "doc",
27950
27966
  topNode: !0,
27951
27967
  content: "block+",
27952
27968
  renderMarkdown: (e, t) => e.content ? t.renderChildren(e.content, "\n\n") : ""
27953
- }), ZN = Mv.create({
27969
+ }), QN = Mv.create({
27954
27970
  name: "hardBreak",
27955
27971
  markdownTokenName: "br",
27956
27972
  addOptions() {
@@ -27994,7 +28010,7 @@ var PN = (e, t) => NN(e, t), FN = (e, t) => {
27994
28010
  "Shift-Enter": () => this.editor.commands.setHardBreak()
27995
28011
  };
27996
28012
  }
27997
- }), QN = Mv.create({
28013
+ }), $N = Mv.create({
27998
28014
  name: "heading",
27999
28015
  addOptions() {
28000
28016
  return {
@@ -28055,7 +28071,7 @@ var PN = (e, t) => NN(e, t), FN = (e, t) => {
28055
28071
  getAttributes: { level: e }
28056
28072
  }));
28057
28073
  }
28058
- }), $N = Mv.create({
28074
+ }), eP = Mv.create({
28059
28075
  name: "horizontalRule",
28060
28076
  addOptions() {
28061
28077
  return {
@@ -28097,7 +28113,7 @@ var PN = (e, t) => NN(e, t), FN = (e, t) => {
28097
28113
  type: this.type
28098
28114
  })];
28099
28115
  }
28100
- }), eP = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, tP = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, nP = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, rP = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, iP = tv.create({
28116
+ }), tP = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, nP = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, rP = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, iP = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, aP = tv.create({
28101
28117
  name: "italic",
28102
28118
  addOptions() {
28103
28119
  return { HTMLAttributes: {} };
@@ -28145,42 +28161,42 @@ var PN = (e, t) => NN(e, t), FN = (e, t) => {
28145
28161
  },
28146
28162
  addInputRules() {
28147
28163
  return [Ev({
28148
- find: eP,
28164
+ find: tP,
28149
28165
  type: this.type
28150
28166
  }), Ev({
28151
- find: nP,
28167
+ find: rP,
28152
28168
  type: this.type
28153
28169
  })];
28154
28170
  },
28155
28171
  addPasteRules() {
28156
28172
  return [Pv({
28157
- find: tP,
28173
+ find: nP,
28158
28174
  type: this.type
28159
28175
  }), Pv({
28160
- find: rP,
28176
+ find: iP,
28161
28177
  type: this.type
28162
28178
  })];
28163
28179
  }
28164
- }), aP = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", oP = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", sP = "numeric", cP = "ascii", lP = "alpha", uP = "asciinumeric", dP = "alphanumeric", fP = "domain", pP = "emoji", mP = "scheme", hP = "slashscheme", gP = "whitespace";
28165
- function _P(e, t) {
28180
+ }), oP = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", sP = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", cP = "numeric", lP = "ascii", uP = "alpha", dP = "asciinumeric", fP = "alphanumeric", pP = "domain", mP = "emoji", hP = "scheme", gP = "slashscheme", _P = "whitespace";
28181
+ function vP(e, t) {
28166
28182
  return e in t || (t[e] = []), t[e];
28167
28183
  }
28168
- function vP(e, t, n) {
28169
- t[sP] && (t[uP] = !0, t[dP] = !0), t[cP] && (t[uP] = !0, t[lP] = !0), t[uP] && (t[dP] = !0), t[lP] && (t[dP] = !0), t[dP] && (t[fP] = !0), t[pP] && (t[fP] = !0);
28184
+ function yP(e, t, n) {
28185
+ t[cP] && (t[dP] = !0, t[fP] = !0), t[lP] && (t[dP] = !0, t[uP] = !0), t[dP] && (t[fP] = !0), t[uP] && (t[fP] = !0), t[fP] && (t[pP] = !0), t[mP] && (t[pP] = !0);
28170
28186
  for (let r in t) {
28171
- let t = _P(r, n);
28187
+ let t = vP(r, n);
28172
28188
  t.indexOf(e) < 0 && t.push(e);
28173
28189
  }
28174
28190
  }
28175
- function yP(e, t) {
28191
+ function bP(e, t) {
28176
28192
  let n = {};
28177
28193
  for (let r in t) t[r].indexOf(e) >= 0 && (n[r] = !0);
28178
28194
  return n;
28179
28195
  }
28180
- function bP(e = null) {
28196
+ function xP(e = null) {
28181
28197
  this.j = {}, this.jr = [], this.jd = null, this.t = e;
28182
28198
  }
28183
- bP.groups = {}, bP.prototype = {
28199
+ xP.groups = {}, xP.prototype = {
28184
28200
  accepts() {
28185
28201
  return !!this.t;
28186
28202
  },
@@ -28200,9 +28216,9 @@ bP.groups = {}, bP.prototype = {
28200
28216
  for (let i = 0; i < e.length; i++) this.tt(e[i], t, n, r);
28201
28217
  },
28202
28218
  tr(e, t, n, r) {
28203
- r ||= bP.groups;
28219
+ r ||= xP.groups;
28204
28220
  let i;
28205
- return t && t.j ? i = t : (i = new bP(t), n && r && vP(t, n, r)), this.jr.push([e, i]), i;
28221
+ return t && t.j ? i = t : (i = new xP(t), n && r && yP(t, n, r)), this.jr.push([e, i]), i;
28206
28222
  },
28207
28223
  ts(e, t, n, r) {
28208
28224
  let i = this, a = e.length;
@@ -28211,119 +28227,119 @@ bP.groups = {}, bP.prototype = {
28211
28227
  return i.tt(e[a - 1], t, n, r);
28212
28228
  },
28213
28229
  tt(e, t, n, r) {
28214
- r ||= bP.groups;
28230
+ r ||= xP.groups;
28215
28231
  let i = this;
28216
28232
  if (t && t.j) return i.j[e] = t, t;
28217
28233
  let a = t, o, s = i.go(e);
28218
- return s ? (o = new bP(), Object.assign(o.j, s.j), o.jr.push.apply(o.jr, s.jr), o.jd = s.jd, o.t = s.t) : o = new bP(), a && (r && (o.t && typeof o.t == "string" ? vP(a, Object.assign(yP(o.t, r), n), r) : n && vP(a, n, r)), o.t = a), i.j[e] = o, o;
28234
+ return s ? (o = new xP(), Object.assign(o.j, s.j), o.jr.push.apply(o.jr, s.jr), o.jd = s.jd, o.t = s.t) : o = new xP(), a && (r && (o.t && typeof o.t == "string" ? yP(a, Object.assign(bP(o.t, r), n), r) : n && yP(a, n, r)), o.t = a), i.j[e] = o, o;
28219
28235
  }
28220
28236
  };
28221
- var Q = (e, t, n, r, i) => e.ta(t, n, r, i), xP = (e, t, n, r, i) => e.tr(t, n, r, i), SP = (e, t, n, r, i) => e.ts(t, n, r, i), $ = (e, t, n, r, i) => e.tt(t, n, r, i), CP = "WORD", wP = "UWORD", TP = "ASCIINUMERICAL", EP = "ALPHANUMERICAL", DP = "LOCALHOST", OP = "TLD", kP = "UTLD", AP = "SCHEME", jP = "SLASH_SCHEME", MP = "NUM", NP = "WS", PP = "NL", FP = "OPENBRACE", IP = "CLOSEBRACE", LP = "OPENBRACKET", RP = "CLOSEBRACKET", zP = "OPENPAREN", BP = "CLOSEPAREN", VP = "OPENANGLEBRACKET", HP = "CLOSEANGLEBRACKET", UP = "FULLWIDTHLEFTPAREN", WP = "FULLWIDTHRIGHTPAREN", GP = "LEFTCORNERBRACKET", KP = "RIGHTCORNERBRACKET", qP = "LEFTWHITECORNERBRACKET", JP = "RIGHTWHITECORNERBRACKET", YP = "FULLWIDTHLESSTHAN", XP = "FULLWIDTHGREATERTHAN", ZP = "AMPERSAND", QP = "APOSTROPHE", $P = "ASTERISK", eF = "AT", tF = "BACKSLASH", nF = "BACKTICK", rF = "CARET", iF = "COLON", aF = "COMMA", oF = "DOLLAR", sF = "DOT", cF = "EQUALS", lF = "EXCLAMATION", uF = "HYPHEN", dF = "PERCENT", fF = "PIPE", pF = "PLUS", mF = "POUND", hF = "QUERY", gF = "QUOTE", _F = "FULLWIDTHMIDDLEDOT", vF = "SEMI", yF = "SLASH", bF = "TILDE", xF = "UNDERSCORE", SF = "EMOJI", CF = "SYM", wF = /*#__PURE__*/ Object.freeze({
28237
+ var Q = (e, t, n, r, i) => e.ta(t, n, r, i), SP = (e, t, n, r, i) => e.tr(t, n, r, i), CP = (e, t, n, r, i) => e.ts(t, n, r, i), $ = (e, t, n, r, i) => e.tt(t, n, r, i), wP = "WORD", TP = "UWORD", EP = "ASCIINUMERICAL", DP = "ALPHANUMERICAL", OP = "LOCALHOST", kP = "TLD", AP = "UTLD", jP = "SCHEME", MP = "SLASH_SCHEME", NP = "NUM", PP = "WS", FP = "NL", IP = "OPENBRACE", LP = "CLOSEBRACE", RP = "OPENBRACKET", zP = "CLOSEBRACKET", BP = "OPENPAREN", VP = "CLOSEPAREN", HP = "OPENANGLEBRACKET", UP = "CLOSEANGLEBRACKET", WP = "FULLWIDTHLEFTPAREN", GP = "FULLWIDTHRIGHTPAREN", KP = "LEFTCORNERBRACKET", qP = "RIGHTCORNERBRACKET", JP = "LEFTWHITECORNERBRACKET", YP = "RIGHTWHITECORNERBRACKET", XP = "FULLWIDTHLESSTHAN", ZP = "FULLWIDTHGREATERTHAN", QP = "AMPERSAND", $P = "APOSTROPHE", eF = "ASTERISK", tF = "AT", nF = "BACKSLASH", rF = "BACKTICK", iF = "CARET", aF = "COLON", oF = "COMMA", sF = "DOLLAR", cF = "DOT", lF = "EQUALS", uF = "EXCLAMATION", dF = "HYPHEN", fF = "PERCENT", pF = "PIPE", mF = "PLUS", hF = "POUND", gF = "QUERY", _F = "QUOTE", vF = "FULLWIDTHMIDDLEDOT", yF = "SEMI", bF = "SLASH", xF = "TILDE", SF = "UNDERSCORE", CF = "EMOJI", wF = "SYM", TF = /*#__PURE__*/ Object.freeze({
28222
28238
  __proto__: null,
28223
- ALPHANUMERICAL: EP,
28224
- AMPERSAND: ZP,
28225
- APOSTROPHE: QP,
28226
- ASCIINUMERICAL: TP,
28227
- ASTERISK: $P,
28228
- AT: eF,
28229
- BACKSLASH: tF,
28230
- BACKTICK: nF,
28231
- CARET: rF,
28232
- CLOSEANGLEBRACKET: HP,
28233
- CLOSEBRACE: IP,
28234
- CLOSEBRACKET: RP,
28235
- CLOSEPAREN: BP,
28236
- COLON: iF,
28237
- COMMA: aF,
28238
- DOLLAR: oF,
28239
- DOT: sF,
28240
- EMOJI: SF,
28241
- EQUALS: cF,
28242
- EXCLAMATION: lF,
28243
- FULLWIDTHGREATERTHAN: XP,
28244
- FULLWIDTHLEFTPAREN: UP,
28245
- FULLWIDTHLESSTHAN: YP,
28246
- FULLWIDTHMIDDLEDOT: _F,
28247
- FULLWIDTHRIGHTPAREN: WP,
28248
- HYPHEN: uF,
28249
- LEFTCORNERBRACKET: GP,
28250
- LEFTWHITECORNERBRACKET: qP,
28251
- LOCALHOST: DP,
28252
- NL: PP,
28253
- NUM: MP,
28254
- OPENANGLEBRACKET: VP,
28255
- OPENBRACE: FP,
28256
- OPENBRACKET: LP,
28257
- OPENPAREN: zP,
28258
- PERCENT: dF,
28259
- PIPE: fF,
28260
- PLUS: pF,
28261
- POUND: mF,
28262
- QUERY: hF,
28263
- QUOTE: gF,
28264
- RIGHTCORNERBRACKET: KP,
28265
- RIGHTWHITECORNERBRACKET: JP,
28266
- SCHEME: AP,
28267
- SEMI: vF,
28268
- SLASH: yF,
28269
- SLASH_SCHEME: jP,
28270
- SYM: CF,
28271
- TILDE: bF,
28272
- TLD: OP,
28273
- UNDERSCORE: xF,
28274
- UTLD: kP,
28275
- UWORD: wP,
28276
- WORD: CP,
28277
- WS: NP
28278
- }), TF = /[a-z]/, EF = /\p{L}/u, DF = /\p{Emoji}/u, OF = /\d/, kF = /\s/, AF = "\r", jF = "\n", MF = "️", NF = "‍", PF = "", FF = null, IF = null;
28279
- function LF(e = []) {
28239
+ ALPHANUMERICAL: DP,
28240
+ AMPERSAND: QP,
28241
+ APOSTROPHE: $P,
28242
+ ASCIINUMERICAL: EP,
28243
+ ASTERISK: eF,
28244
+ AT: tF,
28245
+ BACKSLASH: nF,
28246
+ BACKTICK: rF,
28247
+ CARET: iF,
28248
+ CLOSEANGLEBRACKET: UP,
28249
+ CLOSEBRACE: LP,
28250
+ CLOSEBRACKET: zP,
28251
+ CLOSEPAREN: VP,
28252
+ COLON: aF,
28253
+ COMMA: oF,
28254
+ DOLLAR: sF,
28255
+ DOT: cF,
28256
+ EMOJI: CF,
28257
+ EQUALS: lF,
28258
+ EXCLAMATION: uF,
28259
+ FULLWIDTHGREATERTHAN: ZP,
28260
+ FULLWIDTHLEFTPAREN: WP,
28261
+ FULLWIDTHLESSTHAN: XP,
28262
+ FULLWIDTHMIDDLEDOT: vF,
28263
+ FULLWIDTHRIGHTPAREN: GP,
28264
+ HYPHEN: dF,
28265
+ LEFTCORNERBRACKET: KP,
28266
+ LEFTWHITECORNERBRACKET: JP,
28267
+ LOCALHOST: OP,
28268
+ NL: FP,
28269
+ NUM: NP,
28270
+ OPENANGLEBRACKET: HP,
28271
+ OPENBRACE: IP,
28272
+ OPENBRACKET: RP,
28273
+ OPENPAREN: BP,
28274
+ PERCENT: fF,
28275
+ PIPE: pF,
28276
+ PLUS: mF,
28277
+ POUND: hF,
28278
+ QUERY: gF,
28279
+ QUOTE: _F,
28280
+ RIGHTCORNERBRACKET: qP,
28281
+ RIGHTWHITECORNERBRACKET: YP,
28282
+ SCHEME: jP,
28283
+ SEMI: yF,
28284
+ SLASH: bF,
28285
+ SLASH_SCHEME: MP,
28286
+ SYM: wF,
28287
+ TILDE: xF,
28288
+ TLD: kP,
28289
+ UNDERSCORE: SF,
28290
+ UTLD: AP,
28291
+ UWORD: TP,
28292
+ WORD: wP,
28293
+ WS: PP
28294
+ }), EF = /[a-z]/, DF = /\p{L}/u, OF = /\p{Emoji}/u, kF = /\d/, AF = /\s/, jF = "\r", MF = "\n", NF = "️", PF = "‍", FF = "", IF = null, LF = null;
28295
+ function RF(e = []) {
28280
28296
  let t = {};
28281
- bP.groups = t;
28282
- let n = new bP();
28283
- FF ??= VF(aP), IF ??= VF(oP), $(n, "'", QP), $(n, "{", FP), $(n, "}", IP), $(n, "[", LP), $(n, "]", RP), $(n, "(", zP), $(n, ")", BP), $(n, "<", VP), $(n, ">", HP), $(n, "(", UP), $(n, ")", WP), $(n, "「", GP), $(n, "」", KP), $(n, "『", qP), $(n, "』", JP), $(n, "<", YP), $(n, ">", XP), $(n, "&", ZP), $(n, "*", $P), $(n, "@", eF), $(n, "`", nF), $(n, "^", rF), $(n, ":", iF), $(n, ",", aF), $(n, "$", oF), $(n, ".", sF), $(n, "=", cF), $(n, "!", lF), $(n, "-", uF), $(n, "%", dF), $(n, "|", fF), $(n, "+", pF), $(n, "#", mF), $(n, "?", hF), $(n, "\"", gF), $(n, "/", yF), $(n, ";", vF), $(n, "~", bF), $(n, "_", xF), $(n, "\\", tF), $(n, "・", _F);
28284
- let r = xP(n, OF, MP, { [sP]: !0 });
28285
- xP(r, OF, r);
28286
- let i = xP(r, TF, TP, { [uP]: !0 }), a = xP(r, EF, EP, { [dP]: !0 }), o = xP(n, TF, CP, { [cP]: !0 });
28287
- xP(o, OF, i), xP(o, TF, o), xP(i, OF, i), xP(i, TF, i);
28288
- let s = xP(n, EF, wP, { [lP]: !0 });
28289
- xP(s, TF), xP(s, OF, a), xP(s, EF, s), xP(a, OF, a), xP(a, TF), xP(a, EF, a);
28290
- let c = $(n, jF, PP, { [gP]: !0 }), l = $(n, AF, NP, { [gP]: !0 }), u = xP(n, kF, NP, { [gP]: !0 });
28291
- $(n, PF, u), $(l, jF, c), $(l, PF, u), xP(l, kF, u), $(u, AF), $(u, jF), xP(u, kF, u), $(u, PF, u);
28292
- let d = xP(n, DF, SF, { [pP]: !0 });
28293
- $(d, "#"), xP(d, DF, d), $(d, MF, d);
28294
- let f = $(d, NF);
28295
- $(f, "#"), xP(f, DF, d);
28296
- let p = [[TF, o], [OF, i]], m = [
28297
- [TF, null],
28298
- [EF, s],
28299
- [OF, a]
28297
+ xP.groups = t;
28298
+ let n = new xP();
28299
+ IF ??= HF(oP), LF ??= HF(sP), $(n, "'", $P), $(n, "{", IP), $(n, "}", LP), $(n, "[", RP), $(n, "]", zP), $(n, "(", BP), $(n, ")", VP), $(n, "<", HP), $(n, ">", UP), $(n, "(", WP), $(n, ")", GP), $(n, "「", KP), $(n, "」", qP), $(n, "『", JP), $(n, "』", YP), $(n, "<", XP), $(n, ">", ZP), $(n, "&", QP), $(n, "*", eF), $(n, "@", tF), $(n, "`", rF), $(n, "^", iF), $(n, ":", aF), $(n, ",", oF), $(n, "$", sF), $(n, ".", cF), $(n, "=", lF), $(n, "!", uF), $(n, "-", dF), $(n, "%", fF), $(n, "|", pF), $(n, "+", mF), $(n, "#", hF), $(n, "?", gF), $(n, "\"", _F), $(n, "/", bF), $(n, ";", yF), $(n, "~", xF), $(n, "_", SF), $(n, "\\", nF), $(n, "・", vF);
28300
+ let r = SP(n, kF, NP, { [cP]: !0 });
28301
+ SP(r, kF, r);
28302
+ let i = SP(r, EF, EP, { [dP]: !0 }), a = SP(r, DF, DP, { [fP]: !0 }), o = SP(n, EF, wP, { [lP]: !0 });
28303
+ SP(o, kF, i), SP(o, EF, o), SP(i, kF, i), SP(i, EF, i);
28304
+ let s = SP(n, DF, TP, { [uP]: !0 });
28305
+ SP(s, EF), SP(s, kF, a), SP(s, DF, s), SP(a, kF, a), SP(a, EF), SP(a, DF, a);
28306
+ let c = $(n, MF, FP, { [_P]: !0 }), l = $(n, jF, PP, { [_P]: !0 }), u = SP(n, AF, PP, { [_P]: !0 });
28307
+ $(n, FF, u), $(l, MF, c), $(l, FF, u), SP(l, AF, u), $(u, jF), $(u, MF), SP(u, AF, u), $(u, FF, u);
28308
+ let d = SP(n, OF, CF, { [mP]: !0 });
28309
+ $(d, "#"), SP(d, OF, d), $(d, NF, d);
28310
+ let f = $(d, PF);
28311
+ $(f, "#"), SP(f, OF, d);
28312
+ let p = [[EF, o], [kF, i]], m = [
28313
+ [EF, null],
28314
+ [DF, s],
28315
+ [kF, a]
28300
28316
  ];
28301
- for (let e = 0; e < FF.length; e++) BF(n, FF[e], OP, CP, p);
28302
- for (let e = 0; e < IF.length; e++) BF(n, IF[e], kP, wP, m);
28303
- vP(OP, {
28317
+ for (let e = 0; e < IF.length; e++) VF(n, IF[e], kP, wP, p);
28318
+ for (let e = 0; e < LF.length; e++) VF(n, LF[e], AP, TP, m);
28319
+ yP(kP, {
28304
28320
  tld: !0,
28305
28321
  ascii: !0
28306
- }, t), vP(kP, {
28322
+ }, t), yP(AP, {
28307
28323
  utld: !0,
28308
28324
  alpha: !0
28309
- }, t), BF(n, "file", AP, CP, p), BF(n, "mailto", AP, CP, p), BF(n, "http", jP, CP, p), BF(n, "https", jP, CP, p), BF(n, "ftp", jP, CP, p), BF(n, "ftps", jP, CP, p), vP(AP, {
28325
+ }, t), VF(n, "file", jP, wP, p), VF(n, "mailto", jP, wP, p), VF(n, "http", MP, wP, p), VF(n, "https", MP, wP, p), VF(n, "ftp", MP, wP, p), VF(n, "ftps", MP, wP, p), yP(jP, {
28310
28326
  scheme: !0,
28311
28327
  ascii: !0
28312
- }, t), vP(jP, {
28328
+ }, t), yP(MP, {
28313
28329
  slashscheme: !0,
28314
28330
  ascii: !0
28315
28331
  }, t), e = e.sort((e, t) => e[0] > t[0] ? 1 : -1);
28316
28332
  for (let t = 0; t < e.length; t++) {
28317
- let r = e[t][0], i = e[t][1] ? { [mP]: !0 } : { [hP]: !0 };
28318
- r.indexOf("-") >= 0 ? i[fP] = !0 : TF.test(r) ? OF.test(r) ? i[uP] = !0 : i[cP] = !0 : i[sP] = !0, SP(n, r, r, i);
28333
+ let r = e[t][0], i = e[t][1] ? { [hP]: !0 } : { [gP]: !0 };
28334
+ r.indexOf("-") >= 0 ? i[pP] = !0 : EF.test(r) ? kF.test(r) ? i[dP] = !0 : i[lP] = !0 : i[cP] = !0, CP(n, r, r, i);
28319
28335
  }
28320
- return SP(n, "localhost", DP, { ascii: !0 }), n.jd = new bP(CF), {
28336
+ return CP(n, "localhost", OP, { ascii: !0 }), n.jd = new xP(wF), {
28321
28337
  start: n,
28322
- tokens: Object.assign({ groups: t }, wF)
28338
+ tokens: Object.assign({ groups: t }, TF)
28323
28339
  };
28324
28340
  }
28325
- function RF(e, t) {
28326
- let n = zF(t.replace(/[A-Z]/g, (e) => e.toLowerCase())), r = n.length, i = [], a = 0, o = 0;
28341
+ function zF(e, t) {
28342
+ let n = BF(t.replace(/[A-Z]/g, (e) => e.toLowerCase())), r = n.length, i = [], a = 0, o = 0;
28327
28343
  for (; o < r;) {
28328
28344
  let s = e, c = null, l = 0, u = null, d = -1, f = -1;
28329
28345
  for (; o < r && (c = s.go(n[o]));) s = c, s.accepts() ? (d = 0, f = 0, u = s) : d >= 0 && (d += n[o].length, f++), l += n[o].length, a += n[o].length, o++;
@@ -28336,7 +28352,7 @@ function RF(e, t) {
28336
28352
  }
28337
28353
  return i;
28338
28354
  }
28339
- function zF(e) {
28355
+ function BF(e) {
28340
28356
  let t = [], n = e.length, r = 0;
28341
28357
  for (; r < n;) {
28342
28358
  let i = e.charCodeAt(r), a, o = i < 55296 || i > 56319 || r + 1 === n || (a = e.charCodeAt(r + 1)) < 56320 || a > 57343 ? e[r] : e.slice(r, r + 2);
@@ -28344,15 +28360,15 @@ function zF(e) {
28344
28360
  }
28345
28361
  return t;
28346
28362
  }
28347
- function BF(e, t, n, r, i) {
28363
+ function VF(e, t, n, r, i) {
28348
28364
  let a, o = t.length;
28349
28365
  for (let n = 0; n < o - 1; n++) {
28350
28366
  let o = t[n];
28351
- e.j[o] ? a = e.j[o] : (a = new bP(r), a.jr = i.slice(), e.j[o] = a), e = a;
28367
+ e.j[o] ? a = e.j[o] : (a = new xP(r), a.jr = i.slice(), e.j[o] = a), e = a;
28352
28368
  }
28353
- return a = new bP(n), a.jr = i.slice(), e.j[t[o - 1]] = a, a;
28369
+ return a = new xP(n), a.jr = i.slice(), e.j[t[o - 1]] = a, a;
28354
28370
  }
28355
- function VF(e) {
28371
+ function HF(e) {
28356
28372
  let t = [], n = [], r = 0;
28357
28373
  for (; r < e.length;) {
28358
28374
  let i = 0;
@@ -28365,11 +28381,11 @@ function VF(e) {
28365
28381
  }
28366
28382
  return t;
28367
28383
  }
28368
- var HF = {
28384
+ var UF = {
28369
28385
  defaultProtocol: "http",
28370
28386
  events: null,
28371
- format: WF,
28372
- formatHref: WF,
28387
+ format: GF,
28388
+ formatHref: GF,
28373
28389
  nl2br: !1,
28374
28390
  tagName: "a",
28375
28391
  target: null,
@@ -28381,15 +28397,15 @@ var HF = {
28381
28397
  ignoreTags: [],
28382
28398
  render: null
28383
28399
  };
28384
- function UF(e, t = null) {
28385
- let n = Object.assign({}, HF);
28386
- e && (n = Object.assign(n, e instanceof UF ? e.o : e));
28400
+ function WF(e, t = null) {
28401
+ let n = Object.assign({}, UF);
28402
+ e && (n = Object.assign(n, e instanceof WF ? e.o : e));
28387
28403
  let r = n.ignoreTags, i = [];
28388
28404
  for (let e = 0; e < r.length; e++) i.push(r[e].toUpperCase());
28389
28405
  this.o = n, t && (this.defaultRender = t), this.ignoreTags = i;
28390
28406
  }
28391
- UF.prototype = {
28392
- o: HF,
28407
+ WF.prototype = {
28408
+ o: UF,
28393
28409
  ignoreTags: [],
28394
28410
  defaultRender(e) {
28395
28411
  return e;
@@ -28399,7 +28415,7 @@ UF.prototype = {
28399
28415
  },
28400
28416
  get(e, t, n) {
28401
28417
  let r = t != null, i = this.o[e];
28402
- return i && (typeof i == "object" ? (i = n.t in i ? i[n.t] : HF[e], typeof i == "function" && r && (i = i(t, n))) : typeof i == "function" && r && (i = i(t, n.t, n)), i);
28418
+ return i && (typeof i == "object" ? (i = n.t in i ? i[n.t] : UF[e], typeof i == "function" && r && (i = i(t, n))) : typeof i == "function" && r && (i = i(t, n.t, n)), i);
28403
28419
  },
28404
28420
  getObj(e, t, n) {
28405
28421
  let r = this.o[e];
@@ -28410,13 +28426,13 @@ UF.prototype = {
28410
28426
  return (this.get("render", null, e) || this.defaultRender)(t, e.t, e);
28411
28427
  }
28412
28428
  };
28413
- function WF(e) {
28429
+ function GF(e) {
28414
28430
  return e;
28415
28431
  }
28416
- function GF(e, t) {
28432
+ function KF(e, t) {
28417
28433
  this.t = "token", this.v = e, this.tk = t;
28418
28434
  }
28419
- GF.prototype = {
28435
+ KF.prototype = {
28420
28436
  isLink: !1,
28421
28437
  toString() {
28422
28438
  return this.v;
@@ -28437,7 +28453,7 @@ GF.prototype = {
28437
28453
  endIndex() {
28438
28454
  return this.tk[this.tk.length - 1].e;
28439
28455
  },
28440
- toObject(e = HF.defaultProtocol) {
28456
+ toObject(e = UF.defaultProtocol) {
28441
28457
  return {
28442
28458
  type: this.t,
28443
28459
  value: this.toString(),
@@ -28470,8 +28486,8 @@ GF.prototype = {
28470
28486
  };
28471
28487
  }
28472
28488
  };
28473
- function KF(e, t) {
28474
- class n extends GF {
28489
+ function qF(e, t) {
28490
+ class n extends KF {
28475
28491
  constructor(t, n) {
28476
28492
  super(t, n), this.t = e;
28477
28493
  }
@@ -28479,138 +28495,138 @@ function KF(e, t) {
28479
28495
  for (let e in t) n.prototype[e] = t[e];
28480
28496
  return n.t = e, n;
28481
28497
  }
28482
- var qF = KF("email", {
28498
+ var JF = qF("email", {
28483
28499
  isLink: !0,
28484
28500
  toHref() {
28485
28501
  return "mailto:" + this.toString();
28486
28502
  }
28487
- }), JF = KF("text"), YF = KF("nl"), XF = KF("url", {
28503
+ }), YF = qF("text"), XF = qF("nl"), ZF = qF("url", {
28488
28504
  isLink: !0,
28489
- toHref(e = HF.defaultProtocol) {
28505
+ toHref(e = UF.defaultProtocol) {
28490
28506
  return this.hasProtocol() ? this.v : `${e}://${this.v}`;
28491
28507
  },
28492
28508
  hasProtocol() {
28493
28509
  let e = this.tk;
28494
- return e.length >= 2 && e[0].t !== DP && e[1].t === iF;
28510
+ return e.length >= 2 && e[0].t !== OP && e[1].t === aF;
28495
28511
  }
28496
- }), ZF = (e) => new bP(e);
28497
- function QF({ groups: e }) {
28512
+ }), QF = (e) => new xP(e);
28513
+ function $F({ groups: e }) {
28498
28514
  let t = e.domain.concat([
28499
- ZP,
28500
- $P,
28515
+ QP,
28501
28516
  eF,
28502
28517
  tF,
28503
28518
  nF,
28504
28519
  rF,
28505
- oF,
28506
- cF,
28507
- uF,
28508
- MP,
28520
+ iF,
28521
+ sF,
28522
+ lF,
28509
28523
  dF,
28524
+ NP,
28510
28525
  fF,
28511
28526
  pF,
28512
28527
  mF,
28513
- yF,
28514
- CF,
28528
+ hF,
28515
28529
  bF,
28516
- xF
28530
+ wF,
28531
+ xF,
28532
+ SF
28517
28533
  ]), n = [
28518
- QP,
28519
- iF,
28534
+ $P,
28520
28535
  aF,
28521
- sF,
28522
- lF,
28523
- dF,
28524
- hF,
28536
+ oF,
28537
+ cF,
28538
+ uF,
28539
+ fF,
28525
28540
  gF,
28526
- vF,
28527
- VP,
28541
+ _F,
28542
+ yF,
28528
28543
  HP,
28529
- FP,
28544
+ UP,
28530
28545
  IP,
28531
- RP,
28532
28546
  LP,
28533
28547
  zP,
28548
+ RP,
28534
28549
  BP,
28535
- UP,
28550
+ VP,
28536
28551
  WP,
28537
28552
  GP,
28538
28553
  KP,
28539
28554
  qP,
28540
28555
  JP,
28541
28556
  YP,
28542
- XP
28557
+ XP,
28558
+ ZP
28543
28559
  ], r = [
28544
- ZP,
28545
28560
  QP,
28546
28561
  $P,
28547
- tF,
28562
+ eF,
28548
28563
  nF,
28549
28564
  rF,
28550
- oF,
28551
- cF,
28552
- uF,
28553
- FP,
28554
- IP,
28565
+ iF,
28566
+ sF,
28567
+ lF,
28555
28568
  dF,
28569
+ IP,
28570
+ LP,
28556
28571
  fF,
28557
28572
  pF,
28558
28573
  mF,
28559
28574
  hF,
28560
- yF,
28561
- CF,
28575
+ gF,
28562
28576
  bF,
28563
- xF
28564
- ], i = ZF(), a = $(i, bF);
28577
+ wF,
28578
+ xF,
28579
+ SF
28580
+ ], i = QF(), a = $(i, xF);
28565
28581
  Q(a, r, a), Q(a, e.domain, a);
28566
- let o = ZF(), s = ZF(), c = ZF();
28582
+ let o = QF(), s = QF(), c = QF();
28567
28583
  Q(i, e.domain, o), Q(i, e.scheme, s), Q(i, e.slashscheme, c), Q(o, r, a), Q(o, e.domain, o);
28568
- let l = $(o, eF);
28569
- $(a, eF, l), $(s, eF, l), $(c, eF, l);
28570
- let u = $(a, sF);
28584
+ let l = $(o, tF);
28585
+ $(a, tF, l), $(s, tF, l), $(c, tF, l);
28586
+ let u = $(a, cF);
28571
28587
  Q(u, r, a), Q(u, e.domain, a);
28572
- let d = ZF();
28588
+ let d = QF();
28573
28589
  Q(l, e.domain, d), Q(d, e.domain, d);
28574
- let f = $(d, sF);
28590
+ let f = $(d, cF);
28575
28591
  Q(f, e.domain, d);
28576
- let p = ZF(qF);
28577
- Q(f, e.tld, p), Q(f, e.utld, p), $(l, DP, p);
28578
- let m = $(d, uF);
28579
- $(m, uF, m), Q(m, e.domain, d), Q(p, e.domain, d), $(p, sF, f), $(p, uF, m);
28580
- let h = $(o, uF), g = $(o, sF);
28581
- $(h, uF, h), Q(h, e.domain, o), Q(g, r, a), Q(g, e.domain, o);
28582
- let _ = ZF(XF);
28583
- Q(g, e.tld, _), Q(g, e.utld, _), Q(_, e.domain, o), Q(_, r, a), $(_, sF, g), $(_, uF, h), $(_, eF, l);
28584
- let v = $(_, iF), y = ZF(XF);
28592
+ let p = QF(JF);
28593
+ Q(f, e.tld, p), Q(f, e.utld, p), $(l, OP, p);
28594
+ let m = $(d, dF);
28595
+ $(m, dF, m), Q(m, e.domain, d), Q(p, e.domain, d), $(p, cF, f), $(p, dF, m);
28596
+ let h = $(o, dF), g = $(o, cF);
28597
+ $(h, dF, h), Q(h, e.domain, o), Q(g, r, a), Q(g, e.domain, o);
28598
+ let _ = QF(ZF);
28599
+ Q(g, e.tld, _), Q(g, e.utld, _), Q(_, e.domain, o), Q(_, r, a), $(_, cF, g), $(_, dF, h), $(_, tF, l);
28600
+ let v = $(_, aF), y = QF(ZF);
28585
28601
  Q(v, e.numeric, y);
28586
- let b = ZF(XF), x = ZF();
28587
- Q(b, t, b), Q(b, n, x), Q(x, t, b), Q(x, n, x), $(_, yF, b), $(y, yF, b);
28588
- let S = $(s, iF), C = $($($(c, iF), yF), yF);
28589
- Q(s, e.domain, o), $(s, sF, g), $(s, uF, h), Q(c, e.domain, o), $(c, sF, g), $(c, uF, h), Q(S, e.domain, b), $(S, yF, b), $(S, hF, b), Q(C, e.domain, b), Q(C, t, b), $(C, yF, b);
28602
+ let b = QF(ZF), x = QF();
28603
+ Q(b, t, b), Q(b, n, x), Q(x, t, b), Q(x, n, x), $(_, bF, b), $(y, bF, b);
28604
+ let S = $(s, aF), C = $($($(c, aF), bF), bF);
28605
+ Q(s, e.domain, o), $(s, cF, g), $(s, dF, h), Q(c, e.domain, o), $(c, cF, g), $(c, dF, h), Q(S, e.domain, b), $(S, bF, b), $(S, gF, b), Q(C, e.domain, b), Q(C, t, b), $(C, bF, b);
28590
28606
  let ee = [
28591
- [FP, IP],
28592
- [LP, RP],
28593
- [zP, BP],
28594
- [VP, HP],
28595
- [UP, WP],
28596
- [GP, KP],
28597
- [qP, JP],
28598
- [YP, XP]
28607
+ [IP, LP],
28608
+ [RP, zP],
28609
+ [BP, VP],
28610
+ [HP, UP],
28611
+ [WP, GP],
28612
+ [KP, qP],
28613
+ [JP, YP],
28614
+ [XP, ZP]
28599
28615
  ];
28600
28616
  for (let e = 0; e < ee.length; e++) {
28601
28617
  let [r, i] = ee[e], a = $(b, r);
28602
28618
  $(x, r, a);
28603
- let o = ZF(XF);
28619
+ let o = QF(ZF);
28604
28620
  Q(a, t, o);
28605
- let s = ZF();
28621
+ let s = QF();
28606
28622
  Q(a, n, s), $(a, i, b), Q(o, t, o), Q(o, n, s), Q(s, t, o), Q(s, n, s), $(o, i, b), $(s, i, b);
28607
28623
  }
28608
- return $(i, DP, _), $(i, PP, YF), {
28624
+ return $(i, OP, _), $(i, FP, XF), {
28609
28625
  start: i,
28610
- tokens: wF
28626
+ tokens: TF
28611
28627
  };
28612
28628
  }
28613
- function $F(e, t, n) {
28629
+ function eI(e, t, n) {
28614
28630
  let r = n.length, i = 0, a = [], o = [];
28615
28631
  for (; i < r;) {
28616
28632
  let s = e, c = null, l = null, u = 0, d = null, f = -1;
@@ -28618,18 +28634,18 @@ function $F(e, t, n) {
28618
28634
  for (; i < r && (l = c || s.go(n[i].t));) c = null, s = l, s.accepts() ? (f = 0, d = s) : f >= 0 && f++, i++, u++;
28619
28635
  if (f < 0) i -= u, i < r && (o.push(n[i]), i++);
28620
28636
  else {
28621
- o.length > 0 && (a.push(eI(JF, t, o)), o = []), i -= f, u -= f;
28637
+ o.length > 0 && (a.push(tI(YF, t, o)), o = []), i -= f, u -= f;
28622
28638
  let e = d.t, r = n.slice(i - u, i);
28623
- a.push(eI(e, t, r));
28639
+ a.push(tI(e, t, r));
28624
28640
  }
28625
28641
  }
28626
- return o.length > 0 && a.push(eI(JF, t, o)), a;
28642
+ return o.length > 0 && a.push(tI(YF, t, o)), a;
28627
28643
  }
28628
- function eI(e, t, n) {
28644
+ function tI(e, t, n) {
28629
28645
  let r = n[0].s, i = n[n.length - 1].e;
28630
28646
  return new e(t.slice(r, i), n);
28631
28647
  }
28632
- var tI = typeof console < "u" && console && console.warn || (() => {}), nI = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", rI = {
28648
+ var nI = typeof console < "u" && console && console.warn || (() => {}), rI = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", iI = {
28633
28649
  scanner: null,
28634
28650
  parser: null,
28635
28651
  tokenQueue: [],
@@ -28637,33 +28653,33 @@ var tI = typeof console < "u" && console && console.warn || (() => {}), nI = "un
28637
28653
  customSchemes: [],
28638
28654
  initialized: !1
28639
28655
  };
28640
- function iI() {
28641
- return bP.groups = {}, rI.scanner = null, rI.parser = null, rI.tokenQueue = [], rI.pluginQueue = [], rI.customSchemes = [], rI.initialized = !1, rI;
28642
- }
28643
- function aI(e, t = !1) {
28644
- if (rI.initialized && tI(`linkifyjs: already initialized - will not register custom scheme "${e}" ${nI}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e)) throw Error("linkifyjs: incorrect scheme format.\n1. Must only contain digits, lowercase ASCII letters or \"-\"\n2. Cannot start or end with \"-\"\n3. \"-\" cannot repeat");
28645
- rI.customSchemes.push([e, t]);
28646
- }
28647
- function oI() {
28648
- rI.scanner = LF(rI.customSchemes);
28649
- for (let e = 0; e < rI.tokenQueue.length; e++) rI.tokenQueue[e][1]({ scanner: rI.scanner });
28650
- rI.parser = QF(rI.scanner.tokens);
28651
- for (let e = 0; e < rI.pluginQueue.length; e++) rI.pluginQueue[e][1]({
28652
- scanner: rI.scanner,
28653
- parser: rI.parser
28656
+ function aI() {
28657
+ return xP.groups = {}, iI.scanner = null, iI.parser = null, iI.tokenQueue = [], iI.pluginQueue = [], iI.customSchemes = [], iI.initialized = !1, iI;
28658
+ }
28659
+ function oI(e, t = !1) {
28660
+ if (iI.initialized && nI(`linkifyjs: already initialized - will not register custom scheme "${e}" ${rI}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e)) throw Error("linkifyjs: incorrect scheme format.\n1. Must only contain digits, lowercase ASCII letters or \"-\"\n2. Cannot start or end with \"-\"\n3. \"-\" cannot repeat");
28661
+ iI.customSchemes.push([e, t]);
28662
+ }
28663
+ function sI() {
28664
+ iI.scanner = RF(iI.customSchemes);
28665
+ for (let e = 0; e < iI.tokenQueue.length; e++) iI.tokenQueue[e][1]({ scanner: iI.scanner });
28666
+ iI.parser = $F(iI.scanner.tokens);
28667
+ for (let e = 0; e < iI.pluginQueue.length; e++) iI.pluginQueue[e][1]({
28668
+ scanner: iI.scanner,
28669
+ parser: iI.parser
28654
28670
  });
28655
- return rI.initialized = !0, rI;
28671
+ return iI.initialized = !0, iI;
28656
28672
  }
28657
- function sI(e) {
28658
- return rI.initialized || oI(), $F(rI.parser.start, e, RF(rI.scanner.start, e));
28673
+ function cI(e) {
28674
+ return iI.initialized || sI(), eI(iI.parser.start, e, zF(iI.scanner.start, e));
28659
28675
  }
28660
- sI.scan = RF;
28661
- function cI(e, t = null, n = null) {
28676
+ cI.scan = zF;
28677
+ function lI(e, t = null, n = null) {
28662
28678
  if (t && typeof t == "object") {
28663
28679
  if (n) throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);
28664
28680
  n = t, t = null;
28665
28681
  }
28666
- let r = new UF(n), i = sI(e), a = [];
28682
+ let r = new WF(n), i = cI(e), a = [];
28667
28683
  for (let e = 0; e < i.length; e++) {
28668
28684
  let n = i[e];
28669
28685
  n.isLink && (!t || n.t === t) && r.check(n) && a.push(n.toFormattedObject(r));
@@ -28672,11 +28688,11 @@ function cI(e, t = null, n = null) {
28672
28688
  }
28673
28689
  //#endregion
28674
28690
  //#region ../../../node_modules/.bun/@tiptap+extension-link@3.31.3+9ea2bbe04937c6bd/node_modules/@tiptap/extension-link/dist/index.js
28675
- var lI = "[\0- \xA0 ᠎ -\u2029  ]", uI = new RegExp(lI), dI = RegExp(`${lI}$`), fI = new RegExp(lI, "g");
28676
- function pI(e) {
28691
+ var uI = "[\0- \xA0 ᠎ -\u2029  ]", dI = new RegExp(uI), fI = RegExp(`${uI}$`), pI = new RegExp(uI, "g");
28692
+ function mI(e) {
28677
28693
  return e.length === 1 ? e[0].isLink : e.length === 3 && e[1].isLink ? ["()", "[]"].includes(e[0].value + e[2].value) : !1;
28678
28694
  }
28679
- function mI(e) {
28695
+ function hI(e) {
28680
28696
  return new Gc({
28681
28697
  key: new Jc("autolink"),
28682
28698
  appendTransaction: (t, n, r) => {
@@ -28688,16 +28704,16 @@ function mI(e) {
28688
28704
  if (n.length > 1) i = n[0], a = r.doc.textBetween(i.pos, i.pos + i.node.nodeSize, void 0, " ");
28689
28705
  else if (n.length) {
28690
28706
  let e = r.doc.textBetween(t.from, t.to, " ", " ");
28691
- if (!dI.test(e)) return;
28707
+ if (!fI.test(e)) return;
28692
28708
  i = n[0], a = r.doc.textBetween(i.pos, t.to, void 0, " ");
28693
28709
  }
28694
28710
  if (i && a) {
28695
- let t = a.split(uI).filter(Boolean);
28711
+ let t = a.split(dI).filter(Boolean);
28696
28712
  if (t.length <= 0) return !1;
28697
28713
  let n = t[t.length - 1], s = i.pos + a.lastIndexOf(n);
28698
28714
  if (!n) return !1;
28699
- let c = sI(n).map((t) => t.toObject(e.defaultProtocol));
28700
- if (!pI(c)) return !1;
28715
+ let c = cI(n).map((t) => t.toObject(e.defaultProtocol));
28716
+ if (!mI(c)) return !1;
28701
28717
  c.filter((e) => e.isLink).map((e) => ({
28702
28718
  ...e,
28703
28719
  from: s + e.start + 1,
@@ -28710,7 +28726,7 @@ function mI(e) {
28710
28726
  }
28711
28727
  });
28712
28728
  }
28713
- function hI(e) {
28729
+ function gI(e) {
28714
28730
  return new Gc({
28715
28731
  key: new Jc("handleClickLink"),
28716
28732
  props: { handleClick: (t, n, r) => {
@@ -28733,20 +28749,20 @@ function hI(e) {
28733
28749
  } }
28734
28750
  });
28735
28751
  }
28736
- var gI = /\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)$/, _I = /\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)/g;
28737
- function vI(e, t) {
28752
+ var _I = /\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)$/, vI = /\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)/g;
28753
+ function yI(e, t) {
28738
28754
  let n = 0;
28739
28755
  for (let r = t - 1; r >= 0 && e[r] === "\\"; --r) n += 1;
28740
28756
  return n % 2 == 1;
28741
28757
  }
28742
- function yI(e, t) {
28758
+ function bI(e, t) {
28743
28759
  let n = 0, r = 0;
28744
28760
  for (; r < t;) {
28745
28761
  if (e[r] !== "`") {
28746
28762
  r += 1;
28747
28763
  continue;
28748
28764
  }
28749
- if (n === 0 && vI(e, r)) {
28765
+ if (n === 0 && yI(e, r)) {
28750
28766
  r += 1;
28751
28767
  continue;
28752
28768
  }
@@ -28756,11 +28772,11 @@ function yI(e, t) {
28756
28772
  }
28757
28773
  return n > 0;
28758
28774
  }
28759
- function bI(e, t, n) {
28775
+ function xI(e, t, n) {
28760
28776
  let [, r, i] = t;
28761
- return (t.index ? e[t.index - 1] : void 0) === "!" || vI(e, t.index ?? 0) || yI(e, t.index ?? 0) ? !1 : !!r.trim() && n(i);
28777
+ return (t.index ? e[t.index - 1] : void 0) === "!" || yI(e, t.index ?? 0) || bI(e, t.index ?? 0) ? !1 : !!r.trim() && n(i);
28762
28778
  }
28763
- function xI(e) {
28779
+ function SI(e) {
28764
28780
  let [t, n, r, , i, a, o] = e, s = i ?? a ?? o;
28765
28781
  return {
28766
28782
  index: e.index ?? 0,
@@ -28773,23 +28789,23 @@ function xI(e) {
28773
28789
  }
28774
28790
  };
28775
28791
  }
28776
- function SI(e, t) {
28792
+ function CI(e, t) {
28777
28793
  return e.index < t.index + t.text.length && t.index < e.index + e.text.length;
28778
28794
  }
28779
- function CI(e) {
28795
+ function wI(e) {
28780
28796
  return {
28781
28797
  href: e.data?.href,
28782
28798
  title: e.data?.title ?? null
28783
28799
  };
28784
28800
  }
28785
- function wI(e) {
28801
+ function TI(e) {
28786
28802
  let t = Ev({
28787
28803
  find: (t) => {
28788
- let n = gI.exec(t);
28789
- return !n || !bI(t, n, e.isAllowedHref) ? null : xI(n);
28804
+ let n = _I.exec(t);
28805
+ return !n || !xI(t, n, e.isAllowedHref) ? null : SI(n);
28790
28806
  },
28791
28807
  type: e.type,
28792
- getAttributes: CI
28808
+ getAttributes: wI
28793
28809
  });
28794
28810
  return new X_({
28795
28811
  find: t.find,
@@ -28799,16 +28815,16 @@ function wI(e) {
28799
28815
  }
28800
28816
  });
28801
28817
  }
28802
- function TI(e) {
28818
+ function EI(e) {
28803
28819
  let t = Pv({
28804
28820
  find: (t) => {
28805
28821
  let n = [];
28806
- for (let r of t.matchAll(_I)) bI(t, r, e.isAllowedHref) && n.push(xI(r));
28807
- let r = (e.findPlainUrls?.call(e, t) ?? []).filter((e) => !n.some((t) => SI(t, e)));
28822
+ for (let r of t.matchAll(vI)) xI(t, r, e.isAllowedHref) && n.push(SI(r));
28823
+ let r = (e.findPlainUrls?.call(e, t) ?? []).filter((e) => !n.some((t) => CI(t, e)));
28808
28824
  return [...n, ...r];
28809
28825
  },
28810
28826
  type: e.type,
28811
- getAttributes: CI
28827
+ getAttributes: wI
28812
28828
  });
28813
28829
  return new nv({
28814
28830
  find: t.find,
@@ -28818,7 +28834,7 @@ function TI(e) {
28818
28834
  }
28819
28835
  });
28820
28836
  }
28821
- function EI(e) {
28837
+ function DI(e) {
28822
28838
  return new Gc({
28823
28839
  key: new Jc("handlePasteLink"),
28824
28840
  props: { handlePaste: (t, n, r) => {
@@ -28828,12 +28844,12 @@ function EI(e) {
28828
28844
  r.content.forEach((e) => {
28829
28845
  c += e.textContent;
28830
28846
  });
28831
- let l = cI(c, { defaultProtocol: e.defaultProtocol }).find((e) => e.isLink && e.value === c);
28847
+ let l = lI(c, { defaultProtocol: e.defaultProtocol }).find((e) => e.isLink && e.value === c);
28832
28848
  return !c || !l || i !== void 0 && !i(l.value) ? !1 : e.editor.commands.setMark(e.type, { href: l.href });
28833
28849
  } }
28834
28850
  });
28835
28851
  }
28836
- function DI(e, t) {
28852
+ function OI(e, t) {
28837
28853
  let n = [
28838
28854
  "http",
28839
28855
  "https",
@@ -28849,9 +28865,9 @@ function DI(e, t) {
28849
28865
  return t && t.forEach((e) => {
28850
28866
  let t = typeof e == "string" ? e : e.scheme;
28851
28867
  t && n.push(t);
28852
- }), !e || e.replace(fI, "").match(RegExp(`^(?:(?:${n.map((e) => e.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&")).join("|")}):|[^a-z]|[a-z0-9+.\\-]+(?:[^a-z+.\\-:]|$))`, "i"));
28868
+ }), !e || e.replace(pI, "").match(RegExp(`^(?:(?:${n.map((e) => e.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&")).join("|")}):|[^a-z]|[a-z0-9+.\\-]+(?:[^a-z+.\\-:]|$))`, "i"));
28853
28869
  }
28854
- var OI = tv.create({
28870
+ var kI = tv.create({
28855
28871
  name: "link",
28856
28872
  priority: 1e3,
28857
28873
  keepOnSplit: !1,
@@ -28859,14 +28875,14 @@ var OI = tv.create({
28859
28875
  onCreate() {
28860
28876
  this.options.validate && !this.options.shouldAutoLink && (this.options.shouldAutoLink = this.options.validate, console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")), this.options.protocols.forEach((e) => {
28861
28877
  if (typeof e == "string") {
28862
- aI(e);
28878
+ oI(e);
28863
28879
  return;
28864
28880
  }
28865
- aI(e.scheme, e.optionalSlashes);
28881
+ oI(e.scheme, e.optionalSlashes);
28866
28882
  });
28867
28883
  },
28868
28884
  onDestroy() {
28869
- iI();
28885
+ aI();
28870
28886
  },
28871
28887
  inclusive() {
28872
28888
  return this.options.autolink;
@@ -28885,7 +28901,7 @@ var OI = tv.create({
28885
28901
  rel: "noopener noreferrer nofollow",
28886
28902
  class: null
28887
28903
  },
28888
- isAllowedUri: (e, t) => !!DI(e, t.protocols),
28904
+ isAllowedUri: (e, t) => !!OI(e, t.protocols),
28889
28905
  validate: (e) => !!e,
28890
28906
  shouldAutoLink: (e) => {
28891
28907
  let t = /^[a-z][a-z0-9+.-]*:\/\//i.test(e), n = /^[a-z][a-z0-9+.-]*:/i.test(e);
@@ -28915,7 +28931,7 @@ var OI = tv.create({
28915
28931
  getAttrs: (e) => {
28916
28932
  let t = e.getAttribute("href");
28917
28933
  return !t || !this.options.isAllowedUri(t, {
28918
- defaultValidate: (e) => !!DI(e, this.options.protocols),
28934
+ defaultValidate: (e) => !!OI(e, this.options.protocols),
28919
28935
  protocols: this.options.protocols,
28920
28936
  defaultProtocol: this.options.defaultProtocol
28921
28937
  }) ? !1 : null;
@@ -28924,7 +28940,7 @@ var OI = tv.create({
28924
28940
  },
28925
28941
  renderHTML({ HTMLAttributes: e }) {
28926
28942
  return this.options.isAllowedUri(e.href, {
28927
- defaultValidate: (e) => !!DI(e, this.options.protocols),
28943
+ defaultValidate: (e) => !!OI(e, this.options.protocols),
28928
28944
  protocols: this.options.protocols,
28929
28945
  defaultProtocol: this.options.defaultProtocol
28930
28946
  }) ? [
@@ -28954,7 +28970,7 @@ var OI = tv.create({
28954
28970
  setLink: (e) => ({ chain: t }) => {
28955
28971
  let { href: n } = e;
28956
28972
  return this.options.isAllowedUri(n, {
28957
- defaultValidate: (e) => !!DI(e, this.options.protocols),
28973
+ defaultValidate: (e) => !!OI(e, this.options.protocols),
28958
28974
  protocols: this.options.protocols,
28959
28975
  defaultProtocol: this.options.defaultProtocol
28960
28976
  }) ? t().setMark(this.name, e).setMeta("preventAutolink", !0).run() : !1;
@@ -28962,7 +28978,7 @@ var OI = tv.create({
28962
28978
  toggleLink: (e) => ({ chain: t }) => {
28963
28979
  let { href: n } = e || {};
28964
28980
  return n && !this.options.isAllowedUri(n, {
28965
- defaultValidate: (e) => !!DI(e, this.options.protocols),
28981
+ defaultValidate: (e) => !!OI(e, this.options.protocols),
28966
28982
  protocols: this.options.protocols,
28967
28983
  defaultProtocol: this.options.defaultProtocol
28968
28984
  }) ? !1 : t().toggleMark(this.name, e, { extendEmptyMarkRange: !0 }).setMeta("preventAutolink", !0).run();
@@ -28971,10 +28987,10 @@ var OI = tv.create({
28971
28987
  };
28972
28988
  },
28973
28989
  addInputRules() {
28974
- return this.options.markdownLinks ? [wI({
28990
+ return this.options.markdownLinks ? [TI({
28975
28991
  type: this.type,
28976
28992
  isAllowedHref: (e) => this.options.isAllowedUri(e, {
28977
- defaultValidate: (e) => !!DI(e, this.options.protocols),
28993
+ defaultValidate: (e) => !!OI(e, this.options.protocols),
28978
28994
  protocols: this.options.protocols,
28979
28995
  defaultProtocol: this.options.defaultProtocol
28980
28996
  })
@@ -28985,8 +29001,8 @@ var OI = tv.create({
28985
29001
  let t = [];
28986
29002
  if (e) {
28987
29003
  let { protocols: n, defaultProtocol: r } = this.options;
28988
- cI(e).filter((e) => e.isLink && this.options.isAllowedUri(e.value, {
28989
- defaultValidate: (e) => !!DI(e, n),
29004
+ lI(e).filter((e) => e.isLink && this.options.isAllowedUri(e.value, {
29005
+ defaultValidate: (e) => !!OI(e, n),
28990
29006
  protocols: n,
28991
29007
  defaultProtocol: r
28992
29008
  })).forEach((e) => {
@@ -28999,10 +29015,10 @@ var OI = tv.create({
28999
29015
  }
29000
29016
  return t;
29001
29017
  };
29002
- return this.options.markdownLinks ? [TI({
29018
+ return this.options.markdownLinks ? [EI({
29003
29019
  type: this.type,
29004
29020
  isAllowedHref: (e) => this.options.isAllowedUri(e, {
29005
- defaultValidate: (e) => !!DI(e, this.options.protocols),
29021
+ defaultValidate: (e) => !!OI(e, this.options.protocols),
29006
29022
  protocols: this.options.protocols,
29007
29023
  defaultProtocol: this.options.defaultProtocol
29008
29024
  }),
@@ -29015,28 +29031,28 @@ var OI = tv.create({
29015
29031
  },
29016
29032
  addProseMirrorPlugins() {
29017
29033
  let e = [], { protocols: t, defaultProtocol: n } = this.options;
29018
- return this.options.autolink && e.push(mI({
29034
+ return this.options.autolink && e.push(hI({
29019
29035
  type: this.type,
29020
29036
  defaultProtocol: this.options.defaultProtocol,
29021
29037
  validate: (e) => this.options.isAllowedUri(e, {
29022
- defaultValidate: (e) => !!DI(e, t),
29038
+ defaultValidate: (e) => !!OI(e, t),
29023
29039
  protocols: t,
29024
29040
  defaultProtocol: n
29025
29041
  }),
29026
29042
  shouldAutoLink: this.options.shouldAutoLink
29027
- })), e.push(hI({
29043
+ })), e.push(gI({
29028
29044
  type: this.type,
29029
29045
  editor: this.editor,
29030
29046
  openOnClick: this.options.openOnClick === "whenNotEditable" || this.options.openOnClick,
29031
29047
  enableClickSelection: this.options.enableClickSelection
29032
- })), this.options.linkOnPaste && e.push(EI({
29048
+ })), this.options.linkOnPaste && e.push(DI({
29033
29049
  editor: this.editor,
29034
29050
  defaultProtocol: this.options.defaultProtocol,
29035
29051
  type: this.type,
29036
29052
  shouldAutoLink: this.options.shouldAutoLink
29037
29053
  })), e;
29038
29054
  }
29039
- }), kI = "&nbsp;", AI = "\xA0", jI = Mv.create({
29055
+ }), AI = "&nbsp;", jI = "\xA0", MI = Mv.create({
29040
29056
  name: "paragraph",
29041
29057
  priority: 1e3,
29042
29058
  addOptions() {
@@ -29058,7 +29074,7 @@ var OI = tv.create({
29058
29074
  let n = e.tokens || [];
29059
29075
  if (n.length === 1 && n[0].type === "image") return t.parseChildren([n[0]]);
29060
29076
  let r = t.parseInline(n);
29061
- return n.length === 1 && n[0].type === "text" && (n[0].raw === kI || n[0].text === kI || n[0].raw === AI || n[0].text === AI) && r.length === 1 && r[0].type === "text" && (r[0].text === kI || r[0].text === AI) ? t.createNode("paragraph", void 0, []) : t.createNode("paragraph", void 0, r);
29077
+ return n.length === 1 && n[0].type === "text" && (n[0].raw === AI || n[0].text === AI || n[0].raw === jI || n[0].text === jI) && r.length === 1 && r[0].type === "text" && (r[0].text === AI || r[0].text === jI) ? t.createNode("paragraph", void 0, []) : t.createNode("paragraph", void 0, r);
29062
29078
  },
29063
29079
  renderMarkdown: (e, t, n) => {
29064
29080
  if (!e) return "";
@@ -29066,7 +29082,7 @@ var OI = tv.create({
29066
29082
  if (r.length === 0) {
29067
29083
  var i, a;
29068
29084
  let e = Array.isArray(n == null || (i = n.previousNode) == null ? void 0 : i.content) ? n.previousNode.content : [];
29069
- return (n == null || (a = n.previousNode) == null ? void 0 : a.type) === "paragraph" && e.length === 0 ? kI : "";
29085
+ return (n == null || (a = n.previousNode) == null ? void 0 : a.type) === "paragraph" && e.length === 0 ? AI : "";
29070
29086
  }
29071
29087
  return t.renderChildren(r);
29072
29088
  },
@@ -29076,7 +29092,7 @@ var OI = tv.create({
29076
29092
  addKeyboardShortcuts() {
29077
29093
  return { "Mod-Alt-0": () => this.editor.commands.setParagraph() };
29078
29094
  }
29079
- }), MI = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, NI = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, PI = tv.create({
29095
+ }), NI = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, PI = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, FI = tv.create({
29080
29096
  name: "strike",
29081
29097
  addOptions() {
29082
29098
  return { HTMLAttributes: {} };
@@ -29115,17 +29131,17 @@ var OI = tv.create({
29115
29131
  },
29116
29132
  addInputRules() {
29117
29133
  return [Ev({
29118
- find: MI,
29134
+ find: NI,
29119
29135
  type: this.type
29120
29136
  })];
29121
29137
  },
29122
29138
  addPasteRules() {
29123
29139
  return [Pv({
29124
- find: NI,
29140
+ find: PI,
29125
29141
  type: this.type
29126
29142
  })];
29127
29143
  }
29128
- }), FI = Mv.create({
29144
+ }), II = Mv.create({
29129
29145
  name: "text",
29130
29146
  group: "inline",
29131
29147
  parseMarkdown: (e) => ({
@@ -29133,7 +29149,7 @@ var OI = tv.create({
29133
29149
  text: e.text || ""
29134
29150
  }),
29135
29151
  renderMarkdown: (e) => e.text || ""
29136
- }), II = tv.create({
29152
+ }), LI = tv.create({
29137
29153
  name: "underline",
29138
29154
  addOptions() {
29139
29155
  return { HTMLAttributes: {} };
@@ -29192,12 +29208,12 @@ var OI = tv.create({
29192
29208
  });
29193
29209
  //#endregion
29194
29210
  //#region ../../../node_modules/.bun/prosemirror-dropcursor@1.8.4/node_modules/prosemirror-dropcursor/dist/index.js
29195
- function LI(e = {}) {
29211
+ function RI(e = {}) {
29196
29212
  return new Gc({ view(t) {
29197
- return new RI(t, e);
29213
+ return new zI(t, e);
29198
29214
  } });
29199
29215
  }
29200
- var RI = class {
29216
+ var zI = class {
29201
29217
  constructor(e, t) {
29202
29218
  this.editorView = e, this.cursorPos = null, this.element = null, this.timeout = -1, this.lastDragEvent = null, this.width = t.width ?? 1, this.color = t.color === !1 ? void 0 : t.color || "black", this.class = t.class, this.handlers = [
29203
29219
  "dragover",
@@ -29295,7 +29311,7 @@ var RI = class {
29295
29311
  dragleave(e) {
29296
29312
  this.editorView.dom.contains(e.relatedTarget) || this.setCursor(null);
29297
29313
  }
29298
- }, zI = class e extends P {
29314
+ }, BI = class e extends P {
29299
29315
  constructor(e) {
29300
29316
  super(e, e);
29301
29317
  }
@@ -29320,11 +29336,11 @@ var RI = class {
29320
29336
  return new e(t.resolve(n.pos));
29321
29337
  }
29322
29338
  getBookmark() {
29323
- return new BI(this.anchor);
29339
+ return new VI(this.anchor);
29324
29340
  }
29325
29341
  static valid(e) {
29326
29342
  let t = e.parent;
29327
- if (t.inlineContent || !HI(e) || !UI(e)) return !1;
29343
+ if (t.inlineContent || !UI(e) || !WI(e)) return !1;
29328
29344
  let n = t.type.spec.allowGapCursor;
29329
29345
  if (n != null) return n;
29330
29346
  let r = t.contentMatchAt(e.index()).defaultType;
@@ -29361,8 +29377,8 @@ var RI = class {
29361
29377
  }
29362
29378
  }
29363
29379
  };
29364
- zI.prototype.visible = !1, zI.findFrom = zI.findGapCursorFrom, P.jsonID("gapcursor", zI);
29365
- var BI = class e {
29380
+ BI.prototype.visible = !1, BI.findFrom = BI.findGapCursorFrom, P.jsonID("gapcursor", BI);
29381
+ var VI = class e {
29366
29382
  constructor(e) {
29367
29383
  this.pos = e;
29368
29384
  }
@@ -29371,13 +29387,13 @@ var BI = class e {
29371
29387
  }
29372
29388
  resolve(e) {
29373
29389
  let t = e.resolve(this.pos);
29374
- return zI.valid(t) ? new zI(t) : P.near(t);
29390
+ return BI.valid(t) ? new BI(t) : P.near(t);
29375
29391
  }
29376
29392
  };
29377
- function VI(e) {
29393
+ function HI(e) {
29378
29394
  return e.isAtom || e.spec.isolating || e.spec.createGapCursor;
29379
29395
  }
29380
- function HI(e) {
29396
+ function UI(e) {
29381
29397
  for (let t = e.depth; t >= 0; t--) {
29382
29398
  let n = e.index(t), r = e.node(t);
29383
29399
  if (n == 0) {
@@ -29385,13 +29401,13 @@ function HI(e) {
29385
29401
  continue;
29386
29402
  }
29387
29403
  for (let e = r.child(n - 1);; e = e.lastChild) {
29388
- if (e.childCount == 0 && !e.inlineContent || VI(e.type)) return !0;
29404
+ if (e.childCount == 0 && !e.inlineContent || HI(e.type)) return !0;
29389
29405
  if (e.inlineContent) return !1;
29390
29406
  }
29391
29407
  }
29392
29408
  return !0;
29393
29409
  }
29394
- function UI(e) {
29410
+ function WI(e) {
29395
29411
  for (let t = e.depth; t >= 0; t--) {
29396
29412
  let n = e.indexAfter(t), r = e.node(t);
29397
29413
  if (n == r.childCount) {
@@ -29399,30 +29415,30 @@ function UI(e) {
29399
29415
  continue;
29400
29416
  }
29401
29417
  for (let e = r.child(n);; e = e.firstChild) {
29402
- if (e.childCount == 0 && !e.inlineContent || VI(e.type)) return !0;
29418
+ if (e.childCount == 0 && !e.inlineContent || HI(e.type)) return !0;
29403
29419
  if (e.inlineContent) return !1;
29404
29420
  }
29405
29421
  }
29406
29422
  return !0;
29407
29423
  }
29408
- function WI() {
29424
+ function GI() {
29409
29425
  return new Gc({ props: {
29410
- decorations: YI,
29426
+ decorations: XI,
29411
29427
  createSelectionBetween(e, t, n) {
29412
- return t.pos == n.pos && zI.valid(n) ? new zI(n) : null;
29428
+ return t.pos == n.pos && BI.valid(n) ? new BI(n) : null;
29413
29429
  },
29414
- handleClick: qI,
29415
- handleKeyDown: GI,
29416
- handleDOMEvents: { beforeinput: JI }
29430
+ handleClick: JI,
29431
+ handleKeyDown: KI,
29432
+ handleDOMEvents: { beforeinput: YI }
29417
29433
  } });
29418
29434
  }
29419
- var GI = wm({
29420
- ArrowLeft: KI("horiz", -1),
29421
- ArrowRight: KI("horiz", 1),
29422
- ArrowUp: KI("vert", -1),
29423
- ArrowDown: KI("vert", 1)
29435
+ var KI = wm({
29436
+ ArrowLeft: qI("horiz", -1),
29437
+ ArrowRight: qI("horiz", 1),
29438
+ ArrowUp: qI("vert", -1),
29439
+ ArrowDown: qI("vert", 1)
29424
29440
  });
29425
- function KI(e, t) {
29441
+ function qI(e, t) {
29426
29442
  let n = e == "vert" ? t > 0 ? "down" : "up" : t > 0 ? "right" : "left";
29427
29443
  return function(e, r, i) {
29428
29444
  let a = e.selection, o = t > 0 ? a.$to : a.$from, s = a.empty;
@@ -29430,22 +29446,22 @@ function KI(e, t) {
29430
29446
  if (!i.endOfTextblock(n) || o.depth == 0) return !1;
29431
29447
  s = !1, o = e.doc.resolve(t > 0 ? o.after() : o.before());
29432
29448
  }
29433
- let c = zI.findGapCursorFrom(o, t, s);
29434
- return c ? (r && r(e.tr.setSelection(new zI(c))), !0) : !1;
29449
+ let c = BI.findGapCursorFrom(o, t, s);
29450
+ return c ? (r && r(e.tr.setSelection(new BI(c))), !0) : !1;
29435
29451
  };
29436
29452
  }
29437
- function qI(e, t, n) {
29453
+ function JI(e, t, n) {
29438
29454
  if (!e || !e.editable) return !1;
29439
29455
  let r = e.state.doc.resolve(t);
29440
- if (!zI.valid(r)) return !1;
29456
+ if (!BI.valid(r)) return !1;
29441
29457
  let i = e.posAtCoords({
29442
29458
  left: n.clientX,
29443
29459
  top: n.clientY
29444
29460
  });
29445
- return i && i.inside > -1 && I.isSelectable(e.state.doc.nodeAt(i.inside)) ? !1 : (e.dispatch(e.state.tr.setSelection(new zI(r))), !0);
29461
+ return i && i.inside > -1 && I.isSelectable(e.state.doc.nodeAt(i.inside)) ? !1 : (e.dispatch(e.state.tr.setSelection(new BI(r))), !0);
29446
29462
  }
29447
- function JI(e, t) {
29448
- if (t.inputType != "insertCompositionText" || !(e.state.selection instanceof zI)) return !1;
29463
+ function YI(e, t) {
29464
+ if (t.inputType != "insertCompositionText" || !(e.state.selection instanceof BI)) return !1;
29449
29465
  let { $from: n } = e.state.selection, r = n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);
29450
29466
  if (!r) return !1;
29451
29467
  let i = M.empty;
@@ -29453,36 +29469,36 @@ function JI(e, t) {
29453
29469
  let a = e.state.tr.replace(n.pos, n.pos, new N(i, 0, 0));
29454
29470
  return a.setSelection(F.near(a.doc.resolve(n.pos + 1))), e.dispatch(a), !1;
29455
29471
  }
29456
- function YI(e) {
29457
- if (!(e.selection instanceof zI)) return null;
29472
+ function XI(e) {
29473
+ if (!(e.selection instanceof BI)) return null;
29458
29474
  let t = document.createElement("div");
29459
29475
  return t.className = "ProseMirror-gapcursor", Cp.create(e.doc, [bp.widget(e.selection.head, t, { key: "gapcursor" })]);
29460
29476
  }
29461
29477
  //#endregion
29462
29478
  //#region ../../../node_modules/.bun/rope-sequence@1.3.4/node_modules/rope-sequence/dist/index.js
29463
- var XI = 200, ZI = function() {};
29464
- ZI.prototype.append = function(e) {
29465
- return e.length ? (e = ZI.from(e), !this.length && e || e.length < XI && this.leafAppend(e) || this.length < XI && e.leafPrepend(this) || this.appendInner(e)) : this;
29466
- }, ZI.prototype.prepend = function(e) {
29467
- return e.length ? ZI.from(e).append(this) : this;
29468
- }, ZI.prototype.appendInner = function(e) {
29469
- return new $I(this, e);
29470
- }, ZI.prototype.slice = function(e, t) {
29471
- return e === void 0 && (e = 0), t === void 0 && (t = this.length), e >= t ? ZI.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, t));
29472
- }, ZI.prototype.get = function(e) {
29479
+ var ZI = 200, QI = function() {};
29480
+ QI.prototype.append = function(e) {
29481
+ return e.length ? (e = QI.from(e), !this.length && e || e.length < ZI && this.leafAppend(e) || this.length < ZI && e.leafPrepend(this) || this.appendInner(e)) : this;
29482
+ }, QI.prototype.prepend = function(e) {
29483
+ return e.length ? QI.from(e).append(this) : this;
29484
+ }, QI.prototype.appendInner = function(e) {
29485
+ return new eL(this, e);
29486
+ }, QI.prototype.slice = function(e, t) {
29487
+ return e === void 0 && (e = 0), t === void 0 && (t = this.length), e >= t ? QI.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, t));
29488
+ }, QI.prototype.get = function(e) {
29473
29489
  if (!(e < 0 || e >= this.length)) return this.getInner(e);
29474
- }, ZI.prototype.forEach = function(e, t, n) {
29490
+ }, QI.prototype.forEach = function(e, t, n) {
29475
29491
  t === void 0 && (t = 0), n === void 0 && (n = this.length), t <= n ? this.forEachInner(e, t, n, 0) : this.forEachInvertedInner(e, t, n, 0);
29476
- }, ZI.prototype.map = function(e, t, n) {
29492
+ }, QI.prototype.map = function(e, t, n) {
29477
29493
  t === void 0 && (t = 0), n === void 0 && (n = this.length);
29478
29494
  var r = [];
29479
29495
  return this.forEach(function(t, n) {
29480
29496
  return r.push(e(t, n));
29481
29497
  }, t, n), r;
29482
- }, ZI.from = function(e) {
29483
- return e instanceof ZI ? e : e && e.length ? new QI(e) : ZI.empty;
29498
+ }, QI.from = function(e) {
29499
+ return e instanceof QI ? e : e && e.length ? new $I(e) : QI.empty;
29484
29500
  };
29485
- var QI = /* @__PURE__ */ function(e) {
29501
+ var $I = /* @__PURE__ */ function(e) {
29486
29502
  function t(t) {
29487
29503
  e.call(this), this.values = t;
29488
29504
  }
@@ -29502,17 +29518,17 @@ var QI = /* @__PURE__ */ function(e) {
29502
29518
  }, t.prototype.forEachInvertedInner = function(e, t, n, r) {
29503
29519
  for (var i = t - 1; i >= n; i--) if (e(this.values[i], r + i) === !1) return !1;
29504
29520
  }, t.prototype.leafAppend = function(e) {
29505
- if (this.length + e.length <= XI) return new t(this.values.concat(e.flatten()));
29521
+ if (this.length + e.length <= ZI) return new t(this.values.concat(e.flatten()));
29506
29522
  }, t.prototype.leafPrepend = function(e) {
29507
- if (this.length + e.length <= XI) return new t(e.flatten().concat(this.values));
29523
+ if (this.length + e.length <= ZI) return new t(e.flatten().concat(this.values));
29508
29524
  }, n.length.get = function() {
29509
29525
  return this.values.length;
29510
29526
  }, n.depth.get = function() {
29511
29527
  return 0;
29512
29528
  }, Object.defineProperties(t.prototype, n), t;
29513
- }(ZI);
29514
- ZI.empty = new QI([]);
29515
- var $I = /* @__PURE__ */ function(e) {
29529
+ }(QI);
29530
+ QI.empty = new $I([]);
29531
+ var eL = /* @__PURE__ */ function(e) {
29516
29532
  function t(t, n) {
29517
29533
  e.call(this), this.left = t, this.right = n, this.length = t.length + n.length, this.depth = Math.max(t.depth, n.depth) + 1;
29518
29534
  }
@@ -29539,7 +29555,7 @@ var $I = /* @__PURE__ */ function(e) {
29539
29555
  }, t.prototype.appendInner = function(e) {
29540
29556
  return this.left.depth >= Math.max(this.right.depth, e.depth) + 1 ? new t(this.left, new t(this.right, e)) : new t(this, e);
29541
29557
  }, t;
29542
- }(ZI), eL = 500, tL = class e {
29558
+ }(QI), tL = 500, nL = class e {
29543
29559
  constructor(e, t) {
29544
29560
  this.items = e, this.eventCount = t;
29545
29561
  }
@@ -29559,9 +29575,9 @@ var $I = /* @__PURE__ */ function(e) {
29559
29575
  return;
29560
29576
  }
29561
29577
  if (i) {
29562
- u.push(new rL(t.map));
29578
+ u.push(new iL(t.map));
29563
29579
  let e = t.step.map(i.slice(a)), n;
29564
- e && o.maybeStep(e).doc && (n = o.mapping.maps[o.mapping.maps.length - 1], l.push(new rL(n, void 0, void 0, l.length + u.length))), a--, n && i.appendMap(n, a);
29580
+ e && o.maybeStep(e).doc && (n = o.mapping.maps[o.mapping.maps.length - 1], l.push(new iL(n, void 0, void 0, l.length + u.length))), a--, n && i.appendMap(n, a);
29565
29581
  } else o.maybeStep(t.step);
29566
29582
  if (t.selection) return s = i ? t.selection.map(i.slice(a)) : t.selection, c = new e(this.items.slice(0, r).append(u.reverse().concat(l)), this.eventCount - 1), !1;
29567
29583
  }, this.items.length, 0), {
@@ -29573,11 +29589,11 @@ var $I = /* @__PURE__ */ function(e) {
29573
29589
  addTransform(t, n, r, i) {
29574
29590
  let a = [], o = this.eventCount, s = this.items, c = !i && s.length ? s.get(s.length - 1) : null;
29575
29591
  for (let e = 0; e < t.steps.length; e++) {
29576
- let r = t.steps[e].invert(t.docs[e]), l = new rL(t.mapping.maps[e], r, n), u;
29592
+ let r = t.steps[e].invert(t.docs[e]), l = new iL(t.mapping.maps[e], r, n), u;
29577
29593
  (u = c && c.merge(l)) && (l = u, e ? a.pop() : s = s.slice(0, s.length - 1)), a.push(l), n &&= (o++, void 0), i || (c = l);
29578
29594
  }
29579
29595
  let l = o - r.depth;
29580
- return l > aL && (s = nL(s, l), o -= l), new e(s.append(a), o);
29596
+ return l > oL && (s = rL(s, l), o -= l), new e(s.append(a), o);
29581
29597
  }
29582
29598
  remapping(e, t) {
29583
29599
  let n = new Ss();
@@ -29587,7 +29603,7 @@ var $I = /* @__PURE__ */ function(e) {
29587
29603
  }, e, t), n;
29588
29604
  }
29589
29605
  addMaps(t) {
29590
- return this.eventCount == 0 ? this : new e(this.items.append(t.map((e) => new rL(e))), this.eventCount);
29606
+ return this.eventCount == 0 ? this : new e(this.items.append(t.map((e) => new iL(e))), this.eventCount);
29591
29607
  }
29592
29608
  rebased(t, n) {
29593
29609
  if (!this.eventCount) return this;
@@ -29603,13 +29619,13 @@ var $I = /* @__PURE__ */ function(e) {
29603
29619
  let i = a.maps[n];
29604
29620
  if (e.step) {
29605
29621
  let o = t.steps[n].invert(t.docs[n]), l = e.selection && e.selection.map(a.slice(c + 1, n));
29606
- l && s++, r.push(new rL(i, o, l));
29607
- } else r.push(new rL(i));
29622
+ l && s++, r.push(new iL(i, o, l));
29623
+ } else r.push(new iL(i));
29608
29624
  }, i);
29609
29625
  let l = [];
29610
- for (let e = n; e < o; e++) l.push(new rL(a.maps[e]));
29626
+ for (let e = n; e < o; e++) l.push(new iL(a.maps[e]));
29611
29627
  let u = this.items.slice(0, i).append(l).append(r), d = new e(u, s);
29612
- return d.emptyItemCount() > eL && (d = d.compress(this.items.length - r.length)), d;
29628
+ return d.emptyItemCount() > tL && (d = d.compress(this.items.length - r.length)), d;
29613
29629
  }
29614
29630
  emptyItemCount() {
29615
29631
  let e = 0;
@@ -29626,21 +29642,21 @@ var $I = /* @__PURE__ */ function(e) {
29626
29642
  if (r--, o && n.appendMap(o, r), t) {
29627
29643
  let s = e.selection && e.selection.map(n.slice(r));
29628
29644
  s && a++;
29629
- let c = new rL(o.invert(), t, s), l, u = i.length - 1;
29645
+ let c = new iL(o.invert(), t, s), l, u = i.length - 1;
29630
29646
  (l = i.length && i[u].merge(c)) ? i[u] = l : i.push(c);
29631
29647
  }
29632
29648
  } else e.map && r--;
29633
- }, this.items.length, 0), new e(ZI.from(i.reverse()), a);
29649
+ }, this.items.length, 0), new e(QI.from(i.reverse()), a);
29634
29650
  }
29635
29651
  };
29636
- tL.empty = new tL(ZI.empty, 0);
29637
- function nL(e, t) {
29652
+ nL.empty = new nL(QI.empty, 0);
29653
+ function rL(e, t) {
29638
29654
  let n;
29639
29655
  return e.forEach((e, r) => {
29640
29656
  if (e.selection && t-- == 0) return n = r, !1;
29641
29657
  }), e.slice(n);
29642
29658
  }
29643
- var rL = class e {
29659
+ var iL = class e {
29644
29660
  constructor(e, t, n, r) {
29645
29661
  this.map = e, this.step = t, this.selection = n, this.mirrorOffset = r;
29646
29662
  }
@@ -29650,25 +29666,25 @@ var rL = class e {
29650
29666
  if (n) return new e(n.getMap().invert(), n, this.selection);
29651
29667
  }
29652
29668
  }
29653
- }, iL = class {
29669
+ }, aL = class {
29654
29670
  constructor(e, t, n, r, i) {
29655
29671
  this.done = e, this.undone = t, this.prevRanges = n, this.prevTime = r, this.prevComposition = i;
29656
29672
  }
29657
- }, aL = 20;
29658
- function oL(e, t, n, r) {
29659
- let i = n.getMeta(mL), a;
29673
+ }, oL = 20;
29674
+ function sL(e, t, n, r) {
29675
+ let i = n.getMeta(hL), a;
29660
29676
  if (i) return i.historyState;
29661
- n.getMeta(hL) && (e = new iL(e.done, e.undone, null, 0, -1));
29677
+ n.getMeta(gL) && (e = new aL(e.done, e.undone, null, 0, -1));
29662
29678
  let o = n.getMeta("appendedTransaction");
29663
29679
  if (n.steps.length == 0) return e;
29664
- if (o && o.getMeta(mL)) return o.getMeta(mL).redo ? new iL(e.done.addTransform(n, void 0, r, pL(t)), e.undone, cL(n.mapping.maps), e.prevTime, e.prevComposition) : new iL(e.done, e.undone.addTransform(n, void 0, r, pL(t)), null, e.prevTime, e.prevComposition);
29680
+ if (o && o.getMeta(hL)) return o.getMeta(hL).redo ? new aL(e.done.addTransform(n, void 0, r, mL(t)), e.undone, lL(n.mapping.maps), e.prevTime, e.prevComposition) : new aL(e.done, e.undone.addTransform(n, void 0, r, mL(t)), null, e.prevTime, e.prevComposition);
29665
29681
  if (n.getMeta("addToHistory") !== !1 && !(o && o.getMeta("addToHistory") === !1)) {
29666
- let i = n.getMeta("composition"), a = e.prevTime == 0 || !o && e.prevComposition != i && (e.prevTime < (n.time || 0) - r.newGroupDelay || !sL(n, e.prevRanges)), s = o ? lL(e.prevRanges, n.mapping) : cL(n.mapping.maps);
29667
- return new iL(e.done.addTransform(n, a ? t.selection.getBookmark() : void 0, r, pL(t)), tL.empty, s, n.time, i ?? e.prevComposition);
29668
- } else if (a = n.getMeta("rebased")) return new iL(e.done.rebased(n, a), e.undone.rebased(n, a), lL(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
29669
- else return new iL(e.done.addMaps(n.mapping.maps), e.undone.addMaps(n.mapping.maps), lL(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
29682
+ let i = n.getMeta("composition"), a = e.prevTime == 0 || !o && e.prevComposition != i && (e.prevTime < (n.time || 0) - r.newGroupDelay || !cL(n, e.prevRanges)), s = o ? uL(e.prevRanges, n.mapping) : lL(n.mapping.maps);
29683
+ return new aL(e.done.addTransform(n, a ? t.selection.getBookmark() : void 0, r, mL(t)), nL.empty, s, n.time, i ?? e.prevComposition);
29684
+ } else if (a = n.getMeta("rebased")) return new aL(e.done.rebased(n, a), e.undone.rebased(n, a), uL(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
29685
+ else return new aL(e.done.addMaps(n.mapping.maps), e.undone.addMaps(n.mapping.maps), uL(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
29670
29686
  }
29671
- function sL(e, t) {
29687
+ function cL(e, t) {
29672
29688
  if (!t) return !1;
29673
29689
  if (!e.docChanged) return !0;
29674
29690
  let n = !1;
@@ -29676,12 +29692,12 @@ function sL(e, t) {
29676
29692
  for (let i = 0; i < t.length; i += 2) e <= t[i + 1] && r >= t[i] && (n = !0);
29677
29693
  }), n;
29678
29694
  }
29679
- function cL(e) {
29695
+ function lL(e) {
29680
29696
  let t = [];
29681
29697
  for (let n = e.length - 1; n >= 0 && t.length == 0; n--) e[n].forEach((e, n, r, i) => t.push(r, i));
29682
29698
  return t;
29683
29699
  }
29684
- function lL(e, t) {
29700
+ function uL(e, t) {
29685
29701
  if (!e) return null;
29686
29702
  let n = [];
29687
29703
  for (let r = 0; r < e.length; r += 2) {
@@ -29690,61 +29706,61 @@ function lL(e, t) {
29690
29706
  }
29691
29707
  return n;
29692
29708
  }
29693
- function uL(e, t, n) {
29694
- let r = pL(t), i = mL.get(t).spec.config, a = (n ? e.undone : e.done).popEvent(t, r);
29709
+ function dL(e, t, n) {
29710
+ let r = mL(t), i = hL.get(t).spec.config, a = (n ? e.undone : e.done).popEvent(t, r);
29695
29711
  if (!a) return null;
29696
- let o = a.selection.resolve(a.transform.doc), s = (n ? e.done : e.undone).addTransform(a.transform, t.selection.getBookmark(), i, r), c = new iL(n ? s : a.remaining, n ? a.remaining : s, null, 0, -1);
29697
- return a.transform.setSelection(o).setMeta(mL, {
29712
+ let o = a.selection.resolve(a.transform.doc), s = (n ? e.done : e.undone).addTransform(a.transform, t.selection.getBookmark(), i, r), c = new aL(n ? s : a.remaining, n ? a.remaining : s, null, 0, -1);
29713
+ return a.transform.setSelection(o).setMeta(hL, {
29698
29714
  redo: n,
29699
29715
  historyState: c
29700
29716
  });
29701
29717
  }
29702
- var dL = !1, fL = null;
29703
- function pL(e) {
29718
+ var fL = !1, pL = null;
29719
+ function mL(e) {
29704
29720
  let t = e.plugins;
29705
- if (fL != t) {
29706
- dL = !1, fL = t;
29721
+ if (pL != t) {
29722
+ fL = !1, pL = t;
29707
29723
  for (let e = 0; e < t.length; e++) if (t[e].spec.historyPreserveItems) {
29708
- dL = !0;
29724
+ fL = !0;
29709
29725
  break;
29710
29726
  }
29711
29727
  }
29712
- return dL;
29728
+ return fL;
29713
29729
  }
29714
- var mL = new Jc("history"), hL = new Jc("closeHistory");
29715
- function gL(e = {}) {
29730
+ var hL = new Jc("history"), gL = new Jc("closeHistory");
29731
+ function _L(e = {}) {
29716
29732
  return e = {
29717
29733
  depth: e.depth || 100,
29718
29734
  newGroupDelay: e.newGroupDelay || 500
29719
29735
  }, new Gc({
29720
- key: mL,
29736
+ key: hL,
29721
29737
  state: {
29722
29738
  init() {
29723
- return new iL(tL.empty, tL.empty, null, 0, -1);
29739
+ return new aL(nL.empty, nL.empty, null, 0, -1);
29724
29740
  },
29725
29741
  apply(t, n, r) {
29726
- return oL(n, r, t, e);
29742
+ return sL(n, r, t, e);
29727
29743
  }
29728
29744
  },
29729
29745
  config: e,
29730
29746
  props: { handleDOMEvents: { beforeinput(e, t) {
29731
- let n = t.inputType, r = n == "historyUndo" ? vL : n == "historyRedo" ? yL : null;
29747
+ let n = t.inputType, r = n == "historyUndo" ? yL : n == "historyRedo" ? bL : null;
29732
29748
  return !r || !e.editable ? !1 : (t.preventDefault(), r(e.state, e.dispatch));
29733
29749
  } } }
29734
29750
  });
29735
29751
  }
29736
- function _L(e, t) {
29752
+ function vL(e, t) {
29737
29753
  return (n, r) => {
29738
- let i = mL.getState(n);
29754
+ let i = hL.getState(n);
29739
29755
  if (!i || (e ? i.undone : i.done).eventCount == 0) return !1;
29740
29756
  if (r) {
29741
- let a = uL(i, n, e);
29757
+ let a = dL(i, n, e);
29742
29758
  a && r(t ? a.scrollIntoView() : a);
29743
29759
  }
29744
29760
  return !0;
29745
29761
  };
29746
29762
  }
29747
- var vL = _L(!1, !0), yL = _L(!0, !0), bL = lv.create({
29763
+ var yL = vL(!1, !0), bL = vL(!0, !0), xL = lv.create({
29748
29764
  name: "characterCount",
29749
29765
  addOptions() {
29750
29766
  return {
@@ -29805,7 +29821,7 @@ var vL = _L(!1, !0), yL = _L(!0, !0), bL = lv.create({
29805
29821
  }
29806
29822
  })];
29807
29823
  }
29808
- }), xL = lv.create({
29824
+ }), SL = lv.create({
29809
29825
  name: "dropCursor",
29810
29826
  addOptions() {
29811
29827
  return {
@@ -29815,7 +29831,7 @@ var vL = _L(!1, !0), yL = _L(!0, !0), bL = lv.create({
29815
29831
  };
29816
29832
  },
29817
29833
  addProseMirrorPlugins() {
29818
- return [LI(this.options)];
29834
+ return [RI(this.options)];
29819
29835
  }
29820
29836
  });
29821
29837
  lv.create({
@@ -29849,10 +29865,10 @@ lv.create({
29849
29865
  })];
29850
29866
  }
29851
29867
  });
29852
- var SL = lv.create({
29868
+ var CL = lv.create({
29853
29869
  name: "gapCursor",
29854
29870
  addProseMirrorPlugins() {
29855
- return [WI()];
29871
+ return [GI()];
29856
29872
  },
29857
29873
  extendNodeSchema(e) {
29858
29874
  return { allowGapCursor: Zh(R(e, "allowGapCursor", {
@@ -29861,8 +29877,8 @@ var SL = lv.create({
29861
29877
  storage: e.storage
29862
29878
  })) ?? null };
29863
29879
  }
29864
- }), CL = "placeholder", wL = new Jc("tiptap__placeholder");
29865
- function TL(e) {
29880
+ }), wL = "placeholder", TL = new Jc("tiptap__placeholder");
29881
+ function EL(e) {
29866
29882
  let { editor: t, placeholder: n, dataAttribute: r, pos: i, node: a, isEmptyDoc: o, hasAnchor: s, classes: { emptyNode: c, emptyEditor: l } } = e, u = [c];
29867
29883
  return o && u.push(l), bp.node(i, i + a.nodeSize, {
29868
29884
  class: u.join(" "),
@@ -29874,14 +29890,14 @@ function TL(e) {
29874
29890
  }) : n
29875
29891
  });
29876
29892
  }
29877
- function EL(e, t) {
29893
+ function DL(e, t) {
29878
29894
  return typeof e == "function" ? e(t) : e;
29879
29895
  }
29880
- function DL({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, from: a, to: o }) {
29896
+ function OL({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, from: a, to: o }) {
29881
29897
  let { anchor: s } = i, c = [], l = e.isEmpty;
29882
29898
  return r.nodesBetween(a, o, (r, i) => {
29883
29899
  let a = s >= i && s <= i + r.nodeSize, o = !r.isLeaf && Ng(r);
29884
- return r.type.isTextblock && (a || !t.showOnlyCurrent) && o && c.push(TL({
29900
+ return r.type.isTextblock && (a || !t.showOnlyCurrent) && o && c.push(EL({
29885
29901
  editor: e,
29886
29902
  isEmptyDoc: l,
29887
29903
  dataAttribute: n,
@@ -29889,7 +29905,7 @@ function DL({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, fro
29889
29905
  placeholder: t.placeholder,
29890
29906
  classes: {
29891
29907
  emptyEditor: t.emptyEditorClass,
29892
- emptyNode: EL(t.emptyNodeClass, {
29908
+ emptyNode: DL(t.emptyNodeClass, {
29893
29909
  editor: e,
29894
29910
  node: r,
29895
29911
  pos: i,
@@ -29901,14 +29917,14 @@ function DL({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, fro
29901
29917
  })), t.includeChildren;
29902
29918
  }), c;
29903
29919
  }
29904
- function OL({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
29920
+ function kL({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
29905
29921
  if (!(e.isEditable || !t.showOnlyWhenEditable)) return null;
29906
29922
  let { anchor: a } = i, o = [], s = e.isEmpty;
29907
29923
  if (t.showOnlyCurrent && !t.includeChildren) {
29908
29924
  let i = r.resolve(a), c = i.depth > 0 ? i.node(1) : i.nodeAfter, l = i.depth > 0 ? i.before(1) : a;
29909
29925
  if (c && c.type.isTextblock && Ng(c)) {
29910
29926
  let r = a >= l && a <= l + c.nodeSize;
29911
- o.push(TL({
29927
+ o.push(EL({
29912
29928
  editor: e,
29913
29929
  isEmptyDoc: s,
29914
29930
  dataAttribute: n,
@@ -29916,7 +29932,7 @@ function OL({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
29916
29932
  placeholder: t.placeholder,
29917
29933
  classes: {
29918
29934
  emptyEditor: t.emptyEditorClass,
29919
- emptyNode: EL(t.emptyNodeClass, {
29935
+ emptyNode: DL(t.emptyNodeClass, {
29920
29936
  editor: e,
29921
29937
  node: c,
29922
29938
  pos: l,
@@ -29927,7 +29943,7 @@ function OL({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
29927
29943
  pos: l
29928
29944
  }));
29929
29945
  }
29930
- } else o.push(...DL({
29946
+ } else o.push(...OL({
29931
29947
  editor: e,
29932
29948
  options: t,
29933
29949
  dataAttribute: n,
@@ -29938,7 +29954,7 @@ function OL({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
29938
29954
  }));
29939
29955
  return Cp.create(r, o);
29940
29956
  }
29941
- function kL(e, t) {
29957
+ function AL(e, t) {
29942
29958
  let n = e.resolve(t);
29943
29959
  if (n.depth === 0) {
29944
29960
  let e = n.nodeAfter ?? n.nodeBefore;
@@ -29958,13 +29974,13 @@ function kL(e, t) {
29958
29974
  to: r + n.node(1).nodeSize
29959
29975
  };
29960
29976
  }
29961
- function AL(e, t) {
29977
+ function jL(e, t) {
29962
29978
  return {
29963
29979
  from: Math.max(0, t.from - 1),
29964
29980
  to: Math.min(e.content.size, t.to - 1)
29965
29981
  };
29966
29982
  }
29967
- function jL(e, t, n) {
29983
+ function ML(e, t, n) {
29968
29984
  let r = [];
29969
29985
  return e.forEach((e, i) => {
29970
29986
  let a = i, o = a + e.nodeSize, s = a + 1, c = o + 1;
@@ -29974,7 +29990,7 @@ function jL(e, t, n) {
29974
29990
  });
29975
29991
  }), r;
29976
29992
  }
29977
- function ML(e) {
29993
+ function NL(e) {
29978
29994
  if (e.length === 0) return [];
29979
29995
  let t = [...e].sort((e, t) => e.from - t.from), n = [{ ...t[0] }];
29980
29996
  for (let e = 1; e < t.length; e += 1) {
@@ -29983,31 +29999,31 @@ function ML(e) {
29983
29999
  }
29984
30000
  return n;
29985
30001
  }
29986
- function NL(e, t) {
29987
- let n = jL(e, t.from, t.to);
29988
- return n.push(AL(e, kL(e, t.from))), t.to > t.from ? n.push(AL(e, kL(e, Math.min(t.to, e.content.size + 1) - 1))) : t.from < e.content.size + 1 && n.push(AL(e, kL(e, Math.min(t.from + 1, e.content.size)))), n;
30002
+ function PL(e, t) {
30003
+ let n = ML(e, t.from, t.to);
30004
+ return n.push(jL(e, AL(e, t.from))), t.to > t.from ? n.push(jL(e, AL(e, Math.min(t.to, e.content.size + 1) - 1))) : t.from < e.content.size + 1 && n.push(jL(e, AL(e, Math.min(t.from + 1, e.content.size)))), n;
29989
30005
  }
29990
- function PL(e, t, n) {
30006
+ function FL(e, t, n) {
29991
30007
  let r = [];
29992
30008
  if (e.docChanged) {
29993
30009
  let t = bg(e);
29994
- for (let e of t) r.push(...NL(n.doc, e.newRange));
30010
+ for (let e of t) r.push(...PL(n.doc, e.newRange));
29995
30011
  }
29996
- return e.selectionSet && (r.push(AL(n.doc, kL(n.doc, e.mapping.map(t.selection.anchor)))), r.push(AL(n.doc, kL(n.doc, n.selection.anchor)))), ML(r);
30012
+ return e.selectionSet && (r.push(jL(n.doc, AL(n.doc, e.mapping.map(t.selection.anchor)))), r.push(jL(n.doc, AL(n.doc, n.selection.anchor)))), NL(r);
29997
30013
  }
29998
- function FL(e, t, n) {
30014
+ function IL(e, t, n) {
29999
30015
  let r = Math.max(0, Math.min(e, n.content.size));
30000
30016
  return {
30001
30017
  from: r,
30002
30018
  to: Math.max(r, Math.min(t, n.content.size))
30003
30019
  };
30004
30020
  }
30005
- function IL({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i, doc: a, selection: o }) {
30021
+ function LL({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i, doc: a, selection: o }) {
30006
30022
  let s = e;
30007
30023
  for (let e of t) {
30008
- let { from: t, to: c } = FL(e.from, e.to, a), l = s.find(t, c).filter((e) => e.from >= t && e.to <= c);
30024
+ let { from: t, to: c } = IL(e.from, e.to, a), l = s.find(t, c).filter((e) => e.from >= t && e.to <= c);
30009
30025
  l.length && (s = s.remove(l));
30010
- let u = DL({
30026
+ let u = OL({
30011
30027
  editor: n,
30012
30028
  options: r,
30013
30029
  dataAttribute: i,
@@ -30020,10 +30036,10 @@ function IL({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i
30020
30036
  }
30021
30037
  return s;
30022
30038
  }
30023
- function LL({ editor: e, options: t, dataAttribute: n }) {
30039
+ function RL({ editor: e, options: t, dataAttribute: n }) {
30024
30040
  return {
30025
30041
  init(r, i) {
30026
- return OL({
30042
+ return kL({
30027
30043
  editor: e,
30028
30044
  options: t,
30029
30045
  dataAttribute: n,
@@ -30032,9 +30048,9 @@ function LL({ editor: e, options: t, dataAttribute: n }) {
30032
30048
  }) ?? Cp.empty;
30033
30049
  },
30034
30050
  apply(r, i, a, o) {
30035
- return !r.docChanged && !r.selectionSet ? i : IL({
30051
+ return !r.docChanged && !r.selectionSet ? i : LL({
30036
30052
  decorations: i.map(r.mapping, r.doc),
30037
- ranges: PL(r, a, o),
30053
+ ranges: FL(r, a, o),
30038
30054
  editor: e,
30039
30055
  options: t,
30040
30056
  dataAttribute: n,
@@ -30044,34 +30060,34 @@ function LL({ editor: e, options: t, dataAttribute: n }) {
30044
30060
  }
30045
30061
  };
30046
30062
  }
30047
- function RL(e) {
30063
+ function zL(e) {
30048
30064
  return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
30049
30065
  }
30050
- function zL({ editor: e, options: t }) {
30051
- let n = t.dataAttribute ? `data-${RL(t.dataAttribute)}` : `data-${CL}`, r = t.showOnlyCurrent && !t.includeChildren;
30066
+ function BL({ editor: e, options: t }) {
30067
+ let n = t.dataAttribute ? `data-${zL(t.dataAttribute)}` : `data-${wL}`, r = t.showOnlyCurrent && !t.includeChildren;
30052
30068
  return new Gc({
30053
- key: wL,
30054
- ...r ? {} : { state: LL({
30069
+ key: TL,
30070
+ ...r ? {} : { state: RL({
30055
30071
  editor: e,
30056
30072
  options: t,
30057
30073
  dataAttribute: n
30058
30074
  }) },
30059
- props: { decorations: r ? ({ doc: r, selection: i }) => OL({
30075
+ props: { decorations: r ? ({ doc: r, selection: i }) => kL({
30060
30076
  editor: e,
30061
30077
  options: t,
30062
30078
  dataAttribute: n,
30063
30079
  doc: r,
30064
30080
  selection: i
30065
- }) : (n) => t.showOnlyWhenEditable && !e.isEditable ? Cp.empty : wL.getState(n) ?? Cp.empty }
30081
+ }) : (n) => t.showOnlyWhenEditable && !e.isEditable ? Cp.empty : TL.getState(n) ?? Cp.empty }
30066
30082
  });
30067
30083
  }
30068
- var BL = lv.create({
30084
+ var VL = lv.create({
30069
30085
  name: "placeholder",
30070
30086
  addOptions() {
30071
30087
  return {
30072
30088
  emptyEditorClass: "is-editor-empty",
30073
30089
  emptyNodeClass: "is-empty",
30074
- dataAttribute: CL,
30090
+ dataAttribute: wL,
30075
30091
  placeholder: "Write something …",
30076
30092
  showOnlyWhenEditable: !0,
30077
30093
  showOnlyCurrent: !0,
@@ -30079,23 +30095,23 @@ var BL = lv.create({
30079
30095
  };
30080
30096
  },
30081
30097
  addProseMirrorPlugins() {
30082
- return [zL({
30098
+ return [BL({
30083
30099
  editor: this.editor,
30084
30100
  options: this.options
30085
30101
  })];
30086
30102
  }
30087
30103
  });
30088
- function VL(e, t) {
30104
+ function HL(e, t) {
30089
30105
  return !e.selection.empty && !Pg(e.selection) && t.isEditable;
30090
30106
  }
30091
- function HL(e, t) {
30092
- return VL(e, t) && !t.isFocused && !t.view.dragging;
30107
+ function UL(e, t) {
30108
+ return HL(e, t) && !t.isFocused && !t.view.dragging;
30093
30109
  }
30094
- function UL() {
30110
+ function WL() {
30095
30111
  var e;
30096
30112
  (e = window.getSelection()) == null || e.removeAllRanges();
30097
30113
  }
30098
- function WL(e) {
30114
+ function GL(e) {
30099
30115
  e.focus();
30100
30116
  }
30101
30117
  lv.create({
@@ -30109,15 +30125,15 @@ lv.create({
30109
30125
  key: new Jc("selection"),
30110
30126
  props: {
30111
30127
  decorations(n) {
30112
- return HL(n, e) ? Cp.create(n.doc, [bp.inline(n.selection.from, n.selection.to, { class: t.className })]) : null;
30128
+ return UL(n, e) ? Cp.create(n.doc, [bp.inline(n.selection.from, n.selection.to, { class: t.className })]) : null;
30113
30129
  },
30114
30130
  handleDOMEvents: {
30115
30131
  blur(t) {
30116
- return VL(t.state, e) && UL(), !1;
30132
+ return HL(t.state, e) && WL(), !1;
30117
30133
  },
30118
30134
  focus(t) {
30119
- return VL(t.state, e) && requestAnimationFrame(() => {
30120
- !e.isDestroyed && t.hasFocus() && WL(t);
30135
+ return HL(t.state, e) && requestAnimationFrame(() => {
30136
+ !e.isDestroyed && t.hasFocus() && GL(t);
30121
30137
  }), !1;
30122
30138
  }
30123
30139
  }
@@ -30125,10 +30141,10 @@ lv.create({
30125
30141
  })];
30126
30142
  }
30127
30143
  });
30128
- function GL({ types: e, node: t }) {
30144
+ function KL({ types: e, node: t }) {
30129
30145
  return t && Array.isArray(e) && e.includes(t.type) || t?.type === e;
30130
30146
  }
30131
- var KL = lv.create({
30147
+ var qL = lv.create({
30132
30148
  name: "trailingNode",
30133
30149
  addOptions() {
30134
30150
  return {
@@ -30147,7 +30163,7 @@ var KL = lv.create({
30147
30163
  state: {
30148
30164
  init: (e, t) => {
30149
30165
  let r = t.tr.doc.lastChild;
30150
- return !GL({
30166
+ return !KL({
30151
30167
  node: r,
30152
30168
  types: n
30153
30169
  });
@@ -30155,7 +30171,7 @@ var KL = lv.create({
30155
30171
  apply: (e, t) => {
30156
30172
  if (!e.docChanged || e.getMeta("__uniqueIDTransaction")) return t;
30157
30173
  let r = e.doc.lastChild;
30158
- return !GL({
30174
+ return !KL({
30159
30175
  node: r,
30160
30176
  types: n
30161
30177
  });
@@ -30163,7 +30179,7 @@ var KL = lv.create({
30163
30179
  }
30164
30180
  })];
30165
30181
  }
30166
- }), qL = lv.create({
30182
+ }), JL = lv.create({
30167
30183
  name: "undoRedo",
30168
30184
  addOptions() {
30169
30185
  return {
@@ -30173,12 +30189,12 @@ var KL = lv.create({
30173
30189
  },
30174
30190
  addCommands() {
30175
30191
  return {
30176
- undo: () => ({ state: e, dispatch: t }) => vL(e, t),
30177
- redo: () => ({ state: e, dispatch: t }) => yL(e, t)
30192
+ undo: () => ({ state: e, dispatch: t }) => yL(e, t),
30193
+ redo: () => ({ state: e, dispatch: t }) => bL(e, t)
30178
30194
  };
30179
30195
  },
30180
30196
  addProseMirrorPlugins() {
30181
- return [gL(this.options)];
30197
+ return [_L(this.options)];
30182
30198
  },
30183
30199
  addKeyboardShortcuts() {
30184
30200
  return {
@@ -30189,26 +30205,26 @@ var KL = lv.create({
30189
30205
  "Shift-Mod-я": () => this.editor.commands.redo()
30190
30206
  };
30191
30207
  }
30192
- }), JL = lv.create({
30208
+ }), YL = lv.create({
30193
30209
  name: "starterKit",
30194
30210
  addExtensions() {
30195
30211
  let e = [];
30196
- return this.options.bold !== !1 && e.push(HN.configure(this.options.bold)), this.options.blockquote !== !1 && e.push(LN.configure(this.options.blockquote)), this.options.bulletList !== !1 && e.push(Aj.configure(this.options.bulletList)), this.options.code !== !1 && e.push(GN.configure(this.options.code)), this.options.codeBlock !== !1 && e.push(YN.configure(this.options.codeBlock)), this.options.document !== !1 && e.push(XN.configure(this.options.document)), this.options.dropcursor !== !1 && e.push(xL.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && e.push(SL.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && e.push(ZN.configure(this.options.hardBreak)), this.options.heading !== !1 && e.push(QN.configure(this.options.heading)), this.options.undoRedo !== !1 && e.push(qL.configure(this.options.undoRedo)), this.options.horizontalRule !== !1 && e.push($N.configure(this.options.horizontalRule)), this.options.italic !== !1 && e.push(iP.configure(this.options.italic)), this.options.listItem !== !1 && e.push($j.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push(cM.configure(this.options?.listKeymap)), this.options.link !== !1 && e.push(OI.configure(this.options?.link)), this.options.orderedList !== !1 && e.push(TM.configure(this.options.orderedList)), this.options.paragraph !== !1 && e.push(jI.configure(this.options.paragraph)), this.options.strike !== !1 && e.push(PI.configure(this.options.strike)), this.options.text !== !1 && e.push(FI.configure(this.options.text)), this.options.underline !== !1 && e.push(II.configure(this.options?.underline)), this.options.trailingNode !== !1 && e.push(KL.configure(this.options?.trailingNode)), e;
30212
+ return this.options.bold !== !1 && e.push(UN.configure(this.options.bold)), this.options.blockquote !== !1 && e.push(RN.configure(this.options.blockquote)), this.options.bulletList !== !1 && e.push(Aj.configure(this.options.bulletList)), this.options.code !== !1 && e.push(KN.configure(this.options.code)), this.options.codeBlock !== !1 && e.push(XN.configure(this.options.codeBlock)), this.options.document !== !1 && e.push(ZN.configure(this.options.document)), this.options.dropcursor !== !1 && e.push(SL.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && e.push(CL.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && e.push(QN.configure(this.options.hardBreak)), this.options.heading !== !1 && e.push($N.configure(this.options.heading)), this.options.undoRedo !== !1 && e.push(JL.configure(this.options.undoRedo)), this.options.horizontalRule !== !1 && e.push(eP.configure(this.options.horizontalRule)), this.options.italic !== !1 && e.push(aP.configure(this.options.italic)), this.options.listItem !== !1 && e.push($j.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push(cM.configure(this.options?.listKeymap)), this.options.link !== !1 && e.push(kI.configure(this.options?.link)), this.options.orderedList !== !1 && e.push(TM.configure(this.options.orderedList)), this.options.paragraph !== !1 && e.push(MI.configure(this.options.paragraph)), this.options.strike !== !1 && e.push(FI.configure(this.options.strike)), this.options.text !== !1 && e.push(II.configure(this.options.text)), this.options.underline !== !1 && e.push(LI.configure(this.options?.underline)), this.options.trailingNode !== !1 && e.push(qL.configure(this.options?.trailingNode)), e;
30197
30213
  }
30198
- }), YL = 20, XL = (e, t = 0) => {
30214
+ }), XL = 20, ZL = (e, t = 0) => {
30199
30215
  let n = [];
30200
- return !e.children.length || t > YL || Array.from(e.children).forEach((e) => {
30201
- e.tagName === "SPAN" ? n.push(e) : e.children.length && n.push(...XL(e, t + 1));
30216
+ return !e.children.length || t > XL || Array.from(e.children).forEach((e) => {
30217
+ e.tagName === "SPAN" ? n.push(e) : e.children.length && n.push(...ZL(e, t + 1));
30202
30218
  }), n;
30203
- }, ZL = (e) => {
30219
+ }, QL = (e) => {
30204
30220
  if (!e.children.length) return;
30205
- let t = XL(e);
30221
+ let t = ZL(e);
30206
30222
  t && t.forEach((e) => {
30207
30223
  var t;
30208
30224
  let n = e.getAttribute("style"), r = (t = e.parentElement) == null || (t = t.closest("span")) == null ? void 0 : t.getAttribute("style");
30209
30225
  e.setAttribute("style", `${r};${n}`);
30210
30226
  });
30211
- }, QL = tv.create({
30227
+ }, $L = tv.create({
30212
30228
  name: "textStyle",
30213
30229
  priority: 101,
30214
30230
  addOptions() {
@@ -30221,7 +30237,7 @@ var KL = lv.create({
30221
30237
  return [{
30222
30238
  tag: "span",
30223
30239
  consuming: !1,
30224
- getAttrs: (e) => e.hasAttribute("style") ? (this.options.mergeNestedSpanStyles && ZL(e), {}) : !1
30240
+ getAttrs: (e) => e.hasAttribute("style") ? (this.options.mergeNestedSpanStyles && QL(e), {}) : !1
30225
30241
  }];
30226
30242
  },
30227
30243
  renderHTML({ HTMLAttributes: e }) {
@@ -30243,7 +30259,7 @@ var KL = lv.create({
30243
30259
  }
30244
30260
  };
30245
30261
  }
30246
- }), $L = lv.create({
30262
+ }), eR = lv.create({
30247
30263
  name: "backgroundColor",
30248
30264
  addOptions() {
30249
30265
  return { types: ["textStyle"] };
@@ -30264,7 +30280,7 @@ var KL = lv.create({
30264
30280
  unsetBackgroundColor: () => ({ chain: e }) => e().setMark("textStyle", { backgroundColor: null }).removeEmptyTextStyle().run()
30265
30281
  };
30266
30282
  }
30267
- }), eR = lv.create({
30283
+ }), tR = lv.create({
30268
30284
  name: "color",
30269
30285
  addOptions() {
30270
30286
  return { types: ["textStyle"] };
@@ -30285,7 +30301,7 @@ var KL = lv.create({
30285
30301
  unsetColor: () => ({ chain: e }) => e().setMark("textStyle", { color: null }).removeEmptyTextStyle().run()
30286
30302
  };
30287
30303
  }
30288
- }), tR = lv.create({
30304
+ }), nR = lv.create({
30289
30305
  name: "fontFamily",
30290
30306
  addOptions() {
30291
30307
  return { types: ["textStyle"] };
@@ -30306,7 +30322,7 @@ var KL = lv.create({
30306
30322
  unsetFontFamily: () => ({ chain: e }) => e().setMark("textStyle", { fontFamily: null }).removeEmptyTextStyle().run()
30307
30323
  };
30308
30324
  }
30309
- }), nR = lv.create({
30325
+ }), rR = lv.create({
30310
30326
  name: "fontSize",
30311
30327
  addOptions() {
30312
30328
  return { types: ["textStyle"] };
@@ -30327,7 +30343,7 @@ var KL = lv.create({
30327
30343
  unsetFontSize: () => ({ chain: e }) => e().setMark("textStyle", { fontSize: null }).removeEmptyTextStyle().run()
30328
30344
  };
30329
30345
  }
30330
- }), rR = lv.create({
30346
+ }), iR = lv.create({
30331
30347
  name: "lineHeight",
30332
30348
  addOptions() {
30333
30349
  return { types: ["textStyle"] };
@@ -30348,13 +30364,13 @@ var KL = lv.create({
30348
30364
  unsetLineHeight: () => ({ chain: e }) => e().setMark("textStyle", { lineHeight: null }).removeEmptyTextStyle().run()
30349
30365
  };
30350
30366
  }
30351
- }), iR = lv.create({
30367
+ }), aR = lv.create({
30352
30368
  name: "textStyleKit",
30353
30369
  addExtensions() {
30354
30370
  let e = [];
30355
- return this.options.backgroundColor !== !1 && e.push($L.configure(this.options.backgroundColor)), this.options.color !== !1 && e.push(eR.configure(this.options.color)), this.options.fontFamily !== !1 && e.push(tR.configure(this.options.fontFamily)), this.options.fontSize !== !1 && e.push(nR.configure(this.options.fontSize)), this.options.lineHeight !== !1 && e.push(rR.configure(this.options.lineHeight)), this.options.textStyle !== !1 && e.push(QL.configure(this.options.textStyle)), e;
30371
+ return this.options.backgroundColor !== !1 && e.push(eR.configure(this.options.backgroundColor)), this.options.color !== !1 && e.push(tR.configure(this.options.color)), this.options.fontFamily !== !1 && e.push(nR.configure(this.options.fontFamily)), this.options.fontSize !== !1 && e.push(rR.configure(this.options.fontSize)), this.options.lineHeight !== !1 && e.push(iR.configure(this.options.lineHeight)), this.options.textStyle !== !1 && e.push($L.configure(this.options.textStyle)), e;
30356
30372
  }
30357
- }), aR = tv.create({
30373
+ }), oR = tv.create({
30358
30374
  name: "superscript",
30359
30375
  addOptions() {
30360
30376
  return { HTMLAttributes: {} };
@@ -30384,7 +30400,7 @@ var KL = lv.create({
30384
30400
  addKeyboardShortcuts() {
30385
30401
  return { "Mod-.": () => this.editor.commands.toggleSuperscript() };
30386
30402
  }
30387
- }), oR = tv.create({
30403
+ }), sR = tv.create({
30388
30404
  name: "subscript",
30389
30405
  addOptions() {
30390
30406
  return { HTMLAttributes: {} };
@@ -30414,7 +30430,7 @@ var KL = lv.create({
30414
30430
  addKeyboardShortcuts() {
30415
30431
  return { "Mod-,": () => this.editor.commands.toggleSubscript() };
30416
30432
  }
30417
- }), sR = lv.create({
30433
+ }), cR = lv.create({
30418
30434
  name: "textAlign",
30419
30435
  addOptions() {
30420
30436
  return {
@@ -30456,7 +30472,7 @@ var KL = lv.create({
30456
30472
  "Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
30457
30473
  };
30458
30474
  }
30459
- }), cR = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, lR = Mv.create({
30475
+ }), lR = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, uR = Mv.create({
30460
30476
  name: "image",
30461
30477
  addOptions() {
30462
30478
  return {
@@ -30570,7 +30586,7 @@ var KL = lv.create({
30570
30586
  },
30571
30587
  addInputRules() {
30572
30588
  return [Dv({
30573
- find: cR,
30589
+ find: lR,
30574
30590
  type: this.type,
30575
30591
  getAttributes: (e) => {
30576
30592
  let [, , t, n, r] = e;
@@ -30582,17 +30598,17 @@ var KL = lv.create({
30582
30598
  }
30583
30599
  })];
30584
30600
  }
30585
- }), uR = BL, dR = {
30601
+ }), dR = VL, fR = {
30586
30602
  position: "bottom",
30587
30603
  alignment: "left",
30588
30604
  alwaysVisible: !1,
30589
30605
  showDone: !0,
30590
30606
  doneOn: "blur"
30591
- }, fR = {
30607
+ }, pR = {
30592
30608
  options: {},
30593
30609
  respAreaToolbar: () => {},
30594
30610
  onHandleAreaChange: () => {}
30595
- }, pR = [
30611
+ }, mR = [
30596
30612
  "bold",
30597
30613
  "italic",
30598
30614
  "underline",
@@ -30614,7 +30630,7 @@ var KL = lv.create({
30614
30630
  "h3",
30615
30631
  "undo",
30616
30632
  "redo"
30617
- ], mR = {
30633
+ ], hR = {
30618
30634
  "--white": "#fff",
30619
30635
  "--black": "#2e2b29",
30620
30636
  "--black-contrast": "#110f0e",
@@ -30633,7 +30649,7 @@ var KL = lv.create({
30633
30649
  "--red": "#ff5c33",
30634
30650
  "--red-light": "#ffebe5",
30635
30651
  "--shadow": "0px 12px 33px 0px rgba(0, 0, 0, .06),\n 0px 3.618px 9.949px 0px rgba(0, 0, 0, .04)"
30636
- }, hR = (e, t, n) => ({
30652
+ }, gR = (e, t, n) => ({
30637
30653
  role: "textbox",
30638
30654
  "data-pie-editor": "true",
30639
30655
  class: "mathjax_ignore",
@@ -30642,14 +30658,14 @@ var KL = lv.create({
30642
30658
  autocapitalize: e ? "on" : "off",
30643
30659
  ...t && { "aria-label": t },
30644
30660
  ...n && { "aria-labelledby": n }
30645
- }), gR = ["aria-label", "aria-labelledby"], _R = (e) => {
30661
+ }), _R = ["aria-label", "aria-labelledby"], vR = (e) => {
30646
30662
  let { showParagraphs: t, separateParagraphs: n } = e.pluginProps || {}, [r, i] = _t([]), [a, o] = _t(!1), { toolbarOpts: s } = e, c = ut((e) => {
30647
30663
  i((t) => {
30648
30664
  let n = t.filter((t) => t.pos !== e);
30649
30665
  return n.length === 0 && o(!1), n;
30650
30666
  });
30651
30667
  }, [i]), l = {
30652
- ...dR,
30668
+ ...fR,
30653
30669
  ...s
30654
30670
  }, u = ut((t) => {
30655
30671
  let n = t.getHTML();
@@ -30660,13 +30676,13 @@ var KL = lv.create({
30660
30676
  e.onDone,
30661
30677
  l.doneOn
30662
30678
  ]), d = ht(() => ({
30663
- ...fR,
30679
+ ...pR,
30664
30680
  ...e.responseAreaProps,
30665
30681
  onInlineDropdownToolbarClose: u
30666
30682
  }), [e.responseAreaProps, u]), f = ht(() => {
30667
30683
  let { customPlugins: t, ...n } = e.pluginProps || {};
30668
30684
  t ||= [];
30669
- let r = (e.activePlugins || pR)?.filter((e) => {
30685
+ let r = (e.activePlugins || mR)?.filter((e) => {
30670
30686
  let t = Pa[e] || e, r = n[t] || {};
30671
30687
  return !r || !r.disabled;
30672
30688
  });
@@ -30685,7 +30701,7 @@ var KL = lv.create({
30685
30701
  media: {}
30686
30702
  });
30687
30703
  }, [e, d.type]), p = [
30688
- sR.configure({
30704
+ cR.configure({
30689
30705
  types: [
30690
30706
  "heading",
30691
30707
  "paragraph",
@@ -30707,10 +30723,10 @@ var KL = lv.create({
30707
30723
  "justify"
30708
30724
  ]
30709
30725
  }),
30710
- iR,
30726
+ aR,
30711
30727
  Gv,
30712
- bL.configure({ limit: e.charactersLimit || 1e6 }),
30713
- JL.configure({
30728
+ xL.configure({ limit: e.charactersLimit || 1e6 }),
30729
+ YL.configure({
30714
30730
  trailingNode: {
30715
30731
  node: "paragraph",
30716
30732
  notAfter: ["paragraph", "div"]
@@ -30725,7 +30741,7 @@ var KL = lv.create({
30725
30741
  MM,
30726
30742
  mx,
30727
30743
  hx,
30728
- uR.configure({
30744
+ dR.configure({
30729
30745
  placeholder: e.placeholder,
30730
30746
  showOnlyWhenEditable: !0,
30731
30747
  showOnlyCurrent: !1,
@@ -30744,9 +30760,9 @@ var KL = lv.create({
30744
30760
  toolbarOpts: l,
30745
30761
  math: e.pluginProps?.math || {}
30746
30762
  }),
30763
+ sR,
30747
30764
  oR,
30748
- aR,
30749
- lR,
30765
+ uR,
30750
30766
  $A.configure({
30751
30767
  toolbarOpts: l,
30752
30768
  imageHandling: {
@@ -30786,7 +30802,7 @@ var KL = lv.create({
30786
30802
  extensions: p,
30787
30803
  immediatelyRender: !1,
30788
30804
  editorProps: {
30789
- attributes: hR(m, h, g),
30805
+ attributes: gR(m, h, g),
30790
30806
  handleKeyDown(t, n) {
30791
30807
  return e.onKeyDown ? e.onKeyDown(n) : !1;
30792
30808
  }
@@ -30806,9 +30822,9 @@ var KL = lv.create({
30806
30822
  _?.setEditable(!e.disabled);
30807
30823
  }, [e.disabled, _]), pt(() => {
30808
30824
  if (!_) return;
30809
- let e = _.options?.editorProps, t = e?.attributes || {}, n = hR(m, h, g);
30810
- if (["spellcheck", ...gR].every((e) => t[e] === n[e])) return;
30811
- let r = Object.fromEntries(Object.entries(t).filter(([e]) => !gR.includes(e)));
30825
+ let e = _.options?.editorProps, t = e?.attributes || {}, n = gR(m, h, g);
30826
+ if (["spellcheck", ..._R].every((e) => t[e] === n[e])) return;
30827
+ let r = Object.fromEntries(Object.entries(t).filter(([e]) => !_R.includes(e)));
30812
30828
  _.setOptions({ editorProps: {
30813
30829
  ...e,
30814
30830
  attributes: {
@@ -30826,7 +30842,7 @@ var KL = lv.create({
30826
30842
  let t = Jv(e.markup);
30827
30843
  t !== _.getHTML() && _.commands.setContent(t, { emitUpdate: !1 });
30828
30844
  }, [e.markup, _]), pt(() => {
30829
- Object.entries(mR).forEach(([e, t]) => {
30845
+ Object.entries(hR).forEach(([e, t]) => {
30830
30846
  document.documentElement.style.setProperty(e, t);
30831
30847
  });
30832
30848
  }, []);
@@ -30844,13 +30860,13 @@ var KL = lv.create({
30844
30860
  maxHeight: NM(o)
30845
30861
  };
30846
30862
  }, [e]);
30847
- return /* @__PURE__ */ A(DN, {
30863
+ return /* @__PURE__ */ A(ON, {
30848
30864
  ...e,
30849
30865
  activePlugins: f,
30850
30866
  toolbarOpts: l,
30851
30867
  editorState: v,
30852
30868
  editor: _,
30853
- children: _ && /* @__PURE__ */ A(vR, {
30869
+ children: _ && /* @__PURE__ */ A(yR, {
30854
30870
  style: {
30855
30871
  minHeight: y.minHeight,
30856
30872
  height: y.height,
@@ -30861,7 +30877,7 @@ var KL = lv.create({
30861
30877
  editor: _
30862
30878
  })
30863
30879
  });
30864
- }, vR = D(jS, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
30880
+ }, yR = D(jS, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
30865
30881
  display: "flex",
30866
30882
  outline: "none !important",
30867
30883
  "& .ProseMirror": {
@@ -30889,7 +30905,7 @@ var KL = lv.create({
30889
30905
  } },
30890
30906
  ...t && { "& > p:has(+ p)": { marginBottom: "1em" } }
30891
30907
  }
30892
- })), yR = _R, bR = D(oa)(() => ({})), xR = class extends k.Component {
30908
+ })), bR = vR, xR = D(oa)(() => ({})), SR = class extends k.Component {
30893
30909
  static propTypes = {
30894
30910
  className: z.default.string,
30895
30911
  contentClassName: z.default.string,
@@ -30910,7 +30926,7 @@ var KL = lv.create({
30910
30926
  indicatorColor: "primary",
30911
30927
  value: e,
30912
30928
  onChange: this.handleChange,
30913
- children: k.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ A(bR, { label: e.props.title }, t) : null)
30929
+ children: k.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ A(xR, { label: e.props.title }, t) : null)
30914
30930
  }), /* @__PURE__ */ A("div", {
30915
30931
  className: r,
30916
30932
  style: i,
@@ -30918,7 +30934,7 @@ var KL = lv.create({
30918
30934
  })]
30919
30935
  });
30920
30936
  }
30921
- }, SR = D(ti)(({ theme: e, mini: t }) => ({
30937
+ }, CR = D(ti)(({ theme: e, mini: t }) => ({
30922
30938
  margin: 0,
30923
30939
  marginLeft: 0,
30924
30940
  padding: 0,
@@ -30932,7 +30948,7 @@ var KL = lv.create({
30932
30948
  fontSize: e.typography.fontSize - 3
30933
30949
  }
30934
30950
  }
30935
- })), CR = D(Jr)(({ theme: e, mini: t, error: n }) => ({
30951
+ })), wR = D(Jr)(({ theme: e, mini: t, error: n }) => ({
30936
30952
  color: `${T.tertiary()} !important`,
30937
30953
  ...t && {
30938
30954
  margin: 0,
@@ -30941,9 +30957,9 @@ var KL = lv.create({
30941
30957
  height: e.spacing(3)
30942
30958
  },
30943
30959
  ...n && { color: `${e.palette.error.main} !important` }
30944
- })), wR = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ A(SR, {
30960
+ })), TR = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ A(CR, {
30945
30961
  mini: e,
30946
- control: /* @__PURE__ */ A(CR, {
30962
+ control: /* @__PURE__ */ A(wR, {
30947
30963
  checked: t,
30948
30964
  onChange: n,
30949
30965
  value: r,
@@ -30952,32 +30968,32 @@ var KL = lv.create({
30952
30968
  }),
30953
30969
  label: i
30954
30970
  });
30955
- wR.propTypes = {
30971
+ TR.propTypes = {
30956
30972
  mini: z.default.bool,
30957
30973
  checked: z.default.bool.isRequired,
30958
30974
  onChange: z.default.func.isRequired,
30959
30975
  value: z.default.string,
30960
30976
  label: z.default.string.isRequired,
30961
30977
  error: z.default.bool
30962
- }, wR.defaultProps = {
30978
+ }, TR.defaultProps = {
30963
30979
  value: "",
30964
30980
  mini: !1,
30965
30981
  error: !1
30966
30982
  };
30967
30983
  //#endregion
30968
30984
  //#region ../../lib-react/config-ui/dist/form-section.js
30969
- var TR = D("div")(({ theme: e }) => ({
30985
+ var ER = D("div")(({ theme: e }) => ({
30970
30986
  marginTop: e.spacing(2),
30971
30987
  marginBottom: e.spacing(2)
30972
- })), ER = D(_)(({ theme: e }) => ({ marginBottom: e.spacing(1) })), DR = ({ className: e, label: t, children: n, labelExtraStyle: r }) => /* @__PURE__ */ j(TR, {
30988
+ })), DR = D(_)(({ theme: e }) => ({ marginBottom: e.spacing(1) })), OR = ({ className: e, label: t, children: n, labelExtraStyle: r }) => /* @__PURE__ */ j(ER, {
30973
30989
  className: e,
30974
- children: [/* @__PURE__ */ A(ER, {
30990
+ children: [/* @__PURE__ */ A(DR, {
30975
30991
  variant: "subtitle1",
30976
30992
  style: r,
30977
30993
  children: t
30978
30994
  }), n]
30979
30995
  });
30980
- DR.propTypes = {
30996
+ OR.propTypes = {
30981
30997
  className: z.default.string,
30982
30998
  label: z.default.string,
30983
30999
  children: z.default.node,
@@ -30985,7 +31001,7 @@ DR.propTypes = {
30985
31001
  };
30986
31002
  //#endregion
30987
31003
  //#region ../../lib-react/config-ui/dist/number-text-field.js
30988
- var OR = (0, ja.default)("@pie-lib:config-ui:number-text-field"), kR = D(Ae)(({ theme: e }) => ({
31004
+ var kR = (0, ja.default)("@pie-lib:config-ui:number-text-field"), AR = D(Ae)(({ theme: e }) => ({
30989
31005
  marginRight: e.spacing(1),
30990
31006
  "& .MuiInputLabel-root": {
30991
31007
  width: "auto",
@@ -31007,11 +31023,11 @@ var OR = (0, ja.default)("@pie-lib:config-ui:number-text-field"), kR = D(Ae)(({
31007
31023
  minHeight: "auto",
31008
31024
  padding: "6px 0 7px"
31009
31025
  }
31010
- })), AR = (e, t) => {
31026
+ })), jR = (e, t) => {
31011
31027
  if (!Qe(e) && !Qe(t)) return 0;
31012
31028
  if (!Qe(e) && Qe(t)) return t;
31013
31029
  if (Qe(e)) return e;
31014
- }, jR = class extends k.Component {
31030
+ }, MR = class extends k.Component {
31015
31031
  static propTypes = {
31016
31032
  disabled: z.default.bool,
31017
31033
  className: z.default.string,
@@ -31037,13 +31053,13 @@ var OR = (0, ja.default)("@pie-lib:config-ui:number-text-field"), kR = D(Ae)(({
31037
31053
  this.setState({ value: t });
31038
31054
  }
31039
31055
  clamp(e, t = this.props.min, n = this.props.max) {
31040
- return Qe(e) ? (Qe(n) && (e = Math.min(e, n)), Qe(t) && (e = Math.max(e, t)), e) : AR(t, n);
31056
+ return Qe(e) ? (Qe(n) && (e = Math.min(e, n)), Qe(t) && (e = Math.max(e, t)), e) : jR(t, n);
31041
31057
  }
31042
31058
  onBlur = (e) => {
31043
31059
  let t = e.target.value, n = parseFloat(t);
31044
- OR("rawNumber: ", n);
31060
+ kR("rawNumber: ", n);
31045
31061
  let r = this.clamp(n);
31046
- OR("number: ", r), r !== this.state.value && (OR("trigger update..."), this.setState({ value: r.toString() }, () => {
31062
+ kR("number: ", r), r !== this.state.value && (kR("trigger update..."), this.setState({ value: r.toString() }, () => {
31047
31063
  this.props.onChange(e, r);
31048
31064
  }));
31049
31065
  };
@@ -31063,7 +31079,7 @@ var OR = (0, ja.default)("@pie-lib:config-ui:number-text-field"), kR = D(Ae)(({
31063
31079
  };
31064
31080
  render() {
31065
31081
  let { className: e, label: t, disabled: n, suffix: r, min: i, max: a, inputClassName: o, disableUnderline: s, showErrorWhenOutsideRange: c, variant: l } = this.props, u = c && this.getError();
31066
- return /* @__PURE__ */ A(kR, {
31082
+ return /* @__PURE__ */ A(AR, {
31067
31083
  variant: s ? "filled" : l || "standard",
31068
31084
  inputRef: (e) => {
31069
31085
  this.inputRef = e;
@@ -31095,21 +31111,21 @@ var OR = (0, ja.default)("@pie-lib:config-ui:number-text-field"), kR = D(Ae)(({
31095
31111
  margin: "normal"
31096
31112
  });
31097
31113
  }
31098
- }, MR = Object.defineProperty, NR = (e, t) => {
31114
+ }, NR = Object.defineProperty, PR = (e, t) => {
31099
31115
  let n = {};
31100
- for (var r in e) MR(n, r, {
31116
+ for (var r in e) NR(n, r, {
31101
31117
  get: e[r],
31102
31118
  enumerable: !0
31103
31119
  });
31104
- return t || MR(n, Symbol.toStringTag, { value: "Module" }), n;
31105
- }, PR = D("div")(() => ({
31120
+ return t || NR(n, Symbol.toStringTag, { value: "Module" }), n;
31121
+ }, FR = D("div")(() => ({
31106
31122
  display: "flex",
31107
31123
  flexDirection: "column",
31108
31124
  position: "relative"
31109
- })), FR = D("div")(() => ({
31125
+ })), IR = D("div")(() => ({
31110
31126
  display: "flex",
31111
31127
  justifyContent: "space-between"
31112
- })), IR = D("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), LR = D("div")(() => ({ flex: "1" })), RR = D("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), zR = class extends k.Component {
31128
+ })), LR = D("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), RR = D("div")(() => ({ flex: "1" })), zR = D("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), BR = class extends k.Component {
31113
31129
  static propTypes = {
31114
31130
  mode: z.default.oneOf(["tabbed", "inline"]),
31115
31131
  secondary: z.default.oneOfType([z.default.arrayOf(z.default.node), z.default.node]),
@@ -31127,7 +31143,7 @@ var OR = (0, ja.default)("@pie-lib:config-ui:number-text-field"), kR = D(Ae)(({
31127
31143
  } catch (e) {
31128
31144
  console.log(e.toString());
31129
31145
  }
31130
- return /* @__PURE__ */ j(PR, {
31146
+ return /* @__PURE__ */ j(FR, {
31131
31147
  style: {
31132
31148
  minHeight: i,
31133
31149
  minWidth: a,
@@ -31135,28 +31151,28 @@ var OR = (0, ja.default)("@pie-lib:config-ui:number-text-field"), kR = D(Ae)(({
31135
31151
  maxWidth: s
31136
31152
  },
31137
31153
  children: [
31138
- e === "inline" && /* @__PURE__ */ j(FR, { children: [/* @__PURE__ */ A(LR, {
31154
+ e === "inline" && /* @__PURE__ */ j(IR, { children: [/* @__PURE__ */ A(RR, {
31139
31155
  className: "design-container",
31140
31156
  children: n
31141
- }), l && /* @__PURE__ */ A(RR, {
31157
+ }), l && /* @__PURE__ */ A(zR, {
31142
31158
  className: "settings-container",
31143
31159
  children: t
31144
31160
  })] }),
31145
- e === "tabbed" && l && /* @__PURE__ */ j(xR, {
31161
+ e === "tabbed" && l && /* @__PURE__ */ j(SR, {
31146
31162
  onChange: this.onTabsChange,
31147
31163
  contentClassName: "content-container",
31148
31164
  indicatorColor: "primary",
31149
- children: [/* @__PURE__ */ A(IR, {
31165
+ children: [/* @__PURE__ */ A(LR, {
31150
31166
  title: "Design",
31151
31167
  className: "design-container",
31152
31168
  children: n
31153
- }), /* @__PURE__ */ A(IR, {
31169
+ }), /* @__PURE__ */ A(LR, {
31154
31170
  title: "Settings",
31155
31171
  className: "settings-container",
31156
31172
  children: t
31157
31173
  })]
31158
31174
  }),
31159
- e === "tabbed" && !l && /* @__PURE__ */ A(IR, {
31175
+ e === "tabbed" && !l && /* @__PURE__ */ A(LR, {
31160
31176
  className: "design-container",
31161
31177
  children: n
31162
31178
  })
@@ -31166,18 +31182,18 @@ var OR = (0, ja.default)("@pie-lib:config-ui:number-text-field"), kR = D(Ae)(({
31166
31182
  };
31167
31183
  //#endregion
31168
31184
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
31169
- function BR() {
31170
- return BR = Object.assign ? Object.assign.bind() : function(e) {
31185
+ function VR() {
31186
+ return VR = Object.assign ? Object.assign.bind() : function(e) {
31171
31187
  for (var t = 1; t < arguments.length; t++) {
31172
31188
  var n = arguments[t];
31173
31189
  for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
31174
31190
  }
31175
31191
  return e;
31176
- }, BR.apply(null, arguments);
31192
+ }, VR.apply(null, arguments);
31177
31193
  }
31178
31194
  //#endregion
31179
31195
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
31180
- function VR(e, t) {
31196
+ function HR(e, t) {
31181
31197
  if (e == null) return {};
31182
31198
  var n = {};
31183
31199
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -31188,19 +31204,19 @@ function VR(e, t) {
31188
31204
  }
31189
31205
  //#endregion
31190
31206
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
31191
- function HR(e, t) {
31192
- return HR = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
31207
+ function UR(e, t) {
31208
+ return UR = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
31193
31209
  return e.__proto__ = t, e;
31194
- }, HR(e, t);
31210
+ }, UR(e, t);
31195
31211
  }
31196
31212
  //#endregion
31197
31213
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
31198
- function UR(e, t) {
31199
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, HR(e, t);
31214
+ function WR(e, t) {
31215
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, UR(e, t);
31200
31216
  }
31201
31217
  //#endregion
31202
31218
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
31203
- var WR = (function() {
31219
+ var GR = (function() {
31204
31220
  if (typeof Map < "u") return Map;
31205
31221
  function e(e, t) {
31206
31222
  var n = -1;
@@ -31239,34 +31255,34 @@ var WR = (function() {
31239
31255
  }
31240
31256
  }, t;
31241
31257
  }();
31242
- })(), GR = typeof window < "u" && typeof document < "u" && window.document === document, KR = (function() {
31258
+ })(), KR = typeof window < "u" && typeof document < "u" && window.document === document, qR = (function() {
31243
31259
  return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
31244
- })(), qR = (function() {
31245
- return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(KR) : function(e) {
31260
+ })(), JR = (function() {
31261
+ return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(qR) : function(e) {
31246
31262
  return setTimeout(function() {
31247
31263
  return e(Date.now());
31248
31264
  }, 1e3 / 60);
31249
31265
  };
31250
- })(), JR = 2;
31251
- function YR(e, t) {
31266
+ })(), YR = 2;
31267
+ function XR(e, t) {
31252
31268
  var n = !1, r = !1, i = 0;
31253
31269
  function a() {
31254
31270
  n && (n = !1, e()), r && s();
31255
31271
  }
31256
31272
  function o() {
31257
- qR(a);
31273
+ JR(a);
31258
31274
  }
31259
31275
  function s() {
31260
31276
  var e = Date.now();
31261
31277
  if (n) {
31262
- if (e - i < JR) return;
31278
+ if (e - i < YR) return;
31263
31279
  r = !0;
31264
31280
  } else n = !0, r = !1, setTimeout(o, t);
31265
31281
  i = e;
31266
31282
  }
31267
31283
  return s;
31268
31284
  }
31269
- var XR = 20, ZR = [
31285
+ var ZR = 20, QR = [
31270
31286
  "top",
31271
31287
  "right",
31272
31288
  "bottom",
@@ -31275,9 +31291,9 @@ var XR = 20, ZR = [
31275
31291
  "height",
31276
31292
  "size",
31277
31293
  "weight"
31278
- ], QR = typeof MutationObserver < "u", $R = function() {
31294
+ ], $R = typeof MutationObserver < "u", ez = function() {
31279
31295
  function e() {
31280
- this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = YR(this.refresh.bind(this), XR);
31296
+ this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = XR(this.refresh.bind(this), ZR);
31281
31297
  }
31282
31298
  return e.prototype.addObserver = function(e) {
31283
31299
  ~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
@@ -31294,23 +31310,23 @@ var XR = 20, ZR = [
31294
31310
  return e.broadcastActive();
31295
31311
  }), e.length > 0;
31296
31312
  }, e.prototype.connect_ = function() {
31297
- !GR || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), QR ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
31313
+ !KR || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), $R ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
31298
31314
  attributes: !0,
31299
31315
  childList: !0,
31300
31316
  characterData: !0,
31301
31317
  subtree: !0
31302
31318
  })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
31303
31319
  }, e.prototype.disconnect_ = function() {
31304
- !GR || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
31320
+ !KR || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
31305
31321
  }, e.prototype.onTransitionEnd_ = function(e) {
31306
31322
  var t = e.propertyName, n = t === void 0 ? "" : t;
31307
- ZR.some(function(e) {
31323
+ QR.some(function(e) {
31308
31324
  return !!~n.indexOf(e);
31309
31325
  }) && this.refresh();
31310
31326
  }, e.getInstance = function() {
31311
31327
  return this.instance_ ||= new e(), this.instance_;
31312
31328
  }, e.instance_ = null, e;
31313
- }(), ez = (function(e, t) {
31329
+ }(), tz = (function(e, t) {
31314
31330
  for (var n = 0, r = Object.keys(t); n < r.length; n++) {
31315
31331
  var i = r[n];
31316
31332
  Object.defineProperty(e, i, {
@@ -31321,19 +31337,19 @@ var XR = 20, ZR = [
31321
31337
  });
31322
31338
  }
31323
31339
  return e;
31324
- }), tz = (function(e) {
31325
- return e && e.ownerDocument && e.ownerDocument.defaultView || KR;
31326
- }), nz = fz(0, 0, 0, 0);
31327
- function rz(e) {
31340
+ }), nz = (function(e) {
31341
+ return e && e.ownerDocument && e.ownerDocument.defaultView || qR;
31342
+ }), rz = pz(0, 0, 0, 0);
31343
+ function iz(e) {
31328
31344
  return parseFloat(e) || 0;
31329
31345
  }
31330
- function iz(e) {
31346
+ function az(e) {
31331
31347
  return [...arguments].slice(1).reduce(function(t, n) {
31332
31348
  var r = e["border-" + n + "-width"];
31333
- return t + rz(r);
31349
+ return t + iz(r);
31334
31350
  }, 0);
31335
31351
  }
31336
- function az(e) {
31352
+ function oz(e) {
31337
31353
  for (var t = [
31338
31354
  "top",
31339
31355
  "right",
@@ -31341,40 +31357,40 @@ function az(e) {
31341
31357
  "left"
31342
31358
  ], n = {}, r = 0, i = t; r < i.length; r++) {
31343
31359
  var a = i[r], o = e["padding-" + a];
31344
- n[a] = rz(o);
31360
+ n[a] = iz(o);
31345
31361
  }
31346
31362
  return n;
31347
31363
  }
31348
- function oz(e) {
31364
+ function sz(e) {
31349
31365
  var t = e.getBBox();
31350
- return fz(0, 0, t.width, t.height);
31366
+ return pz(0, 0, t.width, t.height);
31351
31367
  }
31352
- function sz(e) {
31368
+ function cz(e) {
31353
31369
  var t = e.clientWidth, n = e.clientHeight;
31354
- if (!t && !n) return nz;
31355
- var r = tz(e).getComputedStyle(e), i = az(r), a = i.left + i.right, o = i.top + i.bottom, s = rz(r.width), c = rz(r.height);
31356
- if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= iz(r, "left", "right") + a), Math.round(c + o) !== n && (c -= iz(r, "top", "bottom") + o)), !lz(e)) {
31370
+ if (!t && !n) return rz;
31371
+ var r = nz(e).getComputedStyle(e), i = oz(r), a = i.left + i.right, o = i.top + i.bottom, s = iz(r.width), c = iz(r.height);
31372
+ if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= az(r, "left", "right") + a), Math.round(c + o) !== n && (c -= az(r, "top", "bottom") + o)), !uz(e)) {
31357
31373
  var l = Math.round(s + a) - t, u = Math.round(c + o) - n;
31358
31374
  Math.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);
31359
31375
  }
31360
- return fz(i.left, i.top, s, c);
31376
+ return pz(i.left, i.top, s, c);
31361
31377
  }
31362
- var cz = (function() {
31378
+ var lz = (function() {
31363
31379
  return typeof SVGGraphicsElement < "u" ? function(e) {
31364
- return e instanceof tz(e).SVGGraphicsElement;
31380
+ return e instanceof nz(e).SVGGraphicsElement;
31365
31381
  } : function(e) {
31366
- return e instanceof tz(e).SVGElement && typeof e.getBBox == "function";
31382
+ return e instanceof nz(e).SVGElement && typeof e.getBBox == "function";
31367
31383
  };
31368
31384
  })();
31369
- function lz(e) {
31370
- return e === tz(e).document.documentElement;
31371
- }
31372
31385
  function uz(e) {
31373
- return GR ? cz(e) ? oz(e) : sz(e) : nz;
31386
+ return e === nz(e).document.documentElement;
31374
31387
  }
31375
31388
  function dz(e) {
31389
+ return KR ? lz(e) ? sz(e) : cz(e) : rz;
31390
+ }
31391
+ function fz(e) {
31376
31392
  var t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
31377
- return ez(a, {
31393
+ return tz(a, {
31378
31394
  x: t,
31379
31395
  y: n,
31380
31396
  width: r,
@@ -31385,7 +31401,7 @@ function dz(e) {
31385
31401
  left: t
31386
31402
  }), a;
31387
31403
  }
31388
- function fz(e, t, n, r) {
31404
+ function pz(e, t, n, r) {
31389
31405
  return {
31390
31406
  x: e,
31391
31407
  y: t,
@@ -31393,42 +31409,42 @@ function fz(e, t, n, r) {
31393
31409
  height: r
31394
31410
  };
31395
31411
  }
31396
- var pz = function() {
31412
+ var mz = function() {
31397
31413
  function e(e) {
31398
- this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = fz(0, 0, 0, 0), this.target = e;
31414
+ this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = pz(0, 0, 0, 0), this.target = e;
31399
31415
  }
31400
31416
  return e.prototype.isActive = function() {
31401
- var e = uz(this.target);
31417
+ var e = dz(this.target);
31402
31418
  return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
31403
31419
  }, e.prototype.broadcastRect = function() {
31404
31420
  var e = this.contentRect_;
31405
31421
  return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
31406
31422
  }, e;
31407
- }(), mz = function() {
31423
+ }(), hz = function() {
31408
31424
  function e(e, t) {
31409
- var n = dz(t);
31410
- ez(this, {
31425
+ var n = fz(t);
31426
+ tz(this, {
31411
31427
  target: e,
31412
31428
  contentRect: n
31413
31429
  });
31414
31430
  }
31415
31431
  return e;
31416
- }(), hz = function() {
31432
+ }(), gz = function() {
31417
31433
  function e(e, t, n) {
31418
- if (this.activeObservations_ = [], this.observations_ = new WR(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
31434
+ if (this.activeObservations_ = [], this.observations_ = new GR(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
31419
31435
  this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
31420
31436
  }
31421
31437
  return e.prototype.observe = function(e) {
31422
31438
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
31423
31439
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
31424
- if (!(e instanceof tz(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
31440
+ if (!(e instanceof nz(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
31425
31441
  var t = this.observations_;
31426
- t.has(e) || (t.set(e, new pz(e)), this.controller_.addObserver(this), this.controller_.refresh());
31442
+ t.has(e) || (t.set(e, new mz(e)), this.controller_.addObserver(this), this.controller_.refresh());
31427
31443
  }
31428
31444
  }, e.prototype.unobserve = function(e) {
31429
31445
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
31430
31446
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
31431
- if (!(e instanceof tz(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
31447
+ if (!(e instanceof nz(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
31432
31448
  var t = this.observations_;
31433
31449
  t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
31434
31450
  }
@@ -31442,7 +31458,7 @@ var pz = function() {
31442
31458
  }, e.prototype.broadcastActive = function() {
31443
31459
  if (this.hasActive()) {
31444
31460
  var e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {
31445
- return new mz(e.target, e.broadcastRect());
31461
+ return new hz(e.target, e.broadcastRect());
31446
31462
  });
31447
31463
  this.callback_.call(e, t, e), this.clearActive();
31448
31464
  }
@@ -31451,12 +31467,12 @@ var pz = function() {
31451
31467
  }, e.prototype.hasActive = function() {
31452
31468
  return this.activeObservations_.length > 0;
31453
31469
  }, e;
31454
- }(), gz = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new WR(), _z = function() {
31470
+ }(), _z = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new GR(), vz = function() {
31455
31471
  function e(t) {
31456
31472
  if (!(this instanceof e)) throw TypeError("Cannot call a class as a function.");
31457
31473
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
31458
- var n = new hz(t, $R.getInstance(), this);
31459
- gz.set(this, n);
31474
+ var n = new gz(t, ez.getInstance(), this);
31475
+ _z.set(this, n);
31460
31476
  }
31461
31477
  return e;
31462
31478
  }();
@@ -31465,27 +31481,27 @@ var pz = function() {
31465
31481
  "unobserve",
31466
31482
  "disconnect"
31467
31483
  ].forEach(function(e) {
31468
- _z.prototype[e] = function() {
31484
+ vz.prototype[e] = function() {
31469
31485
  var t;
31470
- return (t = gz.get(this))[e].apply(t, arguments);
31486
+ return (t = _z.get(this))[e].apply(t, arguments);
31471
31487
  };
31472
31488
  });
31473
- var vz = (function() {
31474
- return KR.ResizeObserver === void 0 ? _z : KR.ResizeObserver;
31475
- })(), yz = [
31489
+ var yz = (function() {
31490
+ return qR.ResizeObserver === void 0 ? vz : qR.ResizeObserver;
31491
+ })(), bz = [
31476
31492
  "client",
31477
31493
  "offset",
31478
31494
  "scroll",
31479
31495
  "bounds",
31480
31496
  "margin"
31481
31497
  ];
31482
- function bz(e) {
31498
+ function xz(e) {
31483
31499
  var t = [];
31484
- return yz.forEach(function(n) {
31500
+ return bz.forEach(function(n) {
31485
31501
  e[n] && t.push(n);
31486
31502
  }), t;
31487
31503
  }
31488
- function xz(e, t) {
31504
+ function Sz(e, t) {
31489
31505
  var n = {};
31490
31506
  if (t.indexOf("client") > -1 && (n.client = {
31491
31507
  top: e.clientTop,
@@ -31524,14 +31540,14 @@ function xz(e, t) {
31524
31540
  }
31525
31541
  return n;
31526
31542
  }
31527
- function Sz(e) {
31543
+ function Cz(e) {
31528
31544
  return e && e.ownerDocument && e.ownerDocument.defaultView || window;
31529
31545
  }
31530
- function Cz(e) {
31546
+ function wz(e) {
31531
31547
  return function(t) {
31532
31548
  var n, r;
31533
31549
  return r = n = /*#__PURE__*/ function(n) {
31534
- UR(r, n);
31550
+ WR(r, n);
31535
31551
  function r() {
31536
31552
  var t, r = [...arguments];
31537
31553
  return t = n.call.apply(n, [this].concat(r)) || this, t.state = { contentRect: {
@@ -31542,24 +31558,24 @@ function Cz(e) {
31542
31558
  bounds: {},
31543
31559
  margin: {}
31544
31560
  } }, t._animationFrameID = null, t._resizeObserver = null, t._node = null, t._window = null, t.measure = function(n) {
31545
- var r = xz(t._node, e || bz(t.props));
31561
+ var r = Sz(t._node, e || xz(t.props));
31546
31562
  n && (r.entry = n[0].contentRect), t._animationFrameID = t._window.requestAnimationFrame(function() {
31547
31563
  t._resizeObserver !== null && (t.setState({ contentRect: r }), typeof t.props.onResize == "function" && t.props.onResize(r));
31548
31564
  });
31549
31565
  }, t._handleRef = function(e) {
31550
- t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = Sz(t._node);
31566
+ t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = Cz(t._node);
31551
31567
  var n = t.props.innerRef;
31552
31568
  n && (typeof n == "function" ? n(t._node) : n.current = t._node), t._resizeObserver !== null && t._node !== null && t._resizeObserver.observe(t._node);
31553
31569
  }, t;
31554
31570
  }
31555
31571
  var i = r.prototype;
31556
31572
  return i.componentDidMount = function() {
31557
- this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new vz(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(xz(this._node, e || bz(this.props))));
31573
+ this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new yz(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(Sz(this._node, e || xz(this.props))));
31558
31574
  }, i.componentWillUnmount = function() {
31559
31575
  this._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);
31560
31576
  }, i.render = function() {
31561
31577
  var e = this.props;
31562
- return e.innerRef, e.onResize, ot(t, BR({}, VR(e, ["innerRef", "onResize"]), {
31578
+ return e.innerRef, e.onResize, ot(t, VR({}, HR(e, ["innerRef", "onResize"]), {
31563
31579
  measureRef: this._handleRef,
31564
31580
  measure: this.measure,
31565
31581
  contentRect: this.state.contentRect
@@ -31576,7 +31592,7 @@ function Cz(e) {
31576
31592
  }, r;
31577
31593
  };
31578
31594
  }
31579
- var wz = Cz()(function(e) {
31595
+ var Tz = wz()(function(e) {
31580
31596
  var t = e.measure, n = e.measureRef, r = e.contentRect, i = e.children;
31581
31597
  return i({
31582
31598
  measure: t,
@@ -31584,10 +31600,10 @@ var wz = Cz()(function(e) {
31584
31600
  contentRect: r
31585
31601
  });
31586
31602
  });
31587
- wz.displayName = "Measure", wz.propTypes.children = z.default.func;
31603
+ Tz.displayName = "Measure", Tz.propTypes.children = z.default.func;
31588
31604
  //#endregion
31589
31605
  //#region ../../lib-react/config-ui/dist/layout/settings-box.js
31590
- var Tz = D("div")(() => ({
31606
+ var Ez = D("div")(() => ({
31591
31607
  backgroundColor: T.white(),
31592
31608
  border: `2px solid ${T.border()}`,
31593
31609
  display: "flex",
@@ -31597,7 +31613,7 @@ var Tz = D("div")(() => ({
31597
31613
  maxWidth: "300px",
31598
31614
  padding: "20px 4px 4px 20px",
31599
31615
  zIndex: 99
31600
- })), Ez = class extends k.Component {
31616
+ })), Dz = class extends k.Component {
31601
31617
  static propTypes = {
31602
31618
  className: z.default.string,
31603
31619
  children: z.default.oneOfType([z.default.arrayOf(z.default.node), z.default.node]).isRequired
@@ -31605,19 +31621,19 @@ var Tz = D("div")(() => ({
31605
31621
  static defaultProps = {};
31606
31622
  render() {
31607
31623
  let { className: e, children: t } = this.props;
31608
- return /* @__PURE__ */ A(Tz, {
31624
+ return /* @__PURE__ */ A(Ez, {
31609
31625
  className: e,
31610
31626
  children: t
31611
31627
  });
31612
31628
  }
31613
- }, Dz = Re({
31629
+ }, Oz = Re({
31614
31630
  typography: { fontFamily: "inherit" },
31615
31631
  components: { MuiButton: { styleOverrides: { contained: {
31616
31632
  backgroundColor: "#e0e0e0",
31617
31633
  color: "#000000",
31618
31634
  "&:hover": { backgroundColor: "#bdbdbd" }
31619
31635
  } } } }
31620
- }), Oz = class extends k.Component {
31636
+ }), kz = class extends k.Component {
31621
31637
  static propTypes = {
31622
31638
  children: z.default.oneOfType([
31623
31639
  z.default.string,
@@ -31650,19 +31666,19 @@ var Tz = D("div")(() => ({
31650
31666
  return /* @__PURE__ */ A(Be, {
31651
31667
  injectFirst: !0,
31652
31668
  children: /* @__PURE__ */ A(ke, {
31653
- theme: Dz,
31654
- children: /* @__PURE__ */ A(wz, {
31669
+ theme: Oz,
31670
+ children: /* @__PURE__ */ A(Tz, {
31655
31671
  bounds: !0,
31656
31672
  onResize: this.onResize,
31657
31673
  children: ({ measureRef: e }) => {
31658
- let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ A(Ez, {
31674
+ let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ A(Dz, {
31659
31675
  className: "settings-box",
31660
31676
  children: n
31661
31677
  }) : n;
31662
31678
  return /* @__PURE__ */ j("div", {
31663
31679
  ref: e,
31664
31680
  className: "main-container extraCSSRules",
31665
- children: [a?.rules ? /* @__PURE__ */ A("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ A(zR, {
31681
+ children: [a?.rules ? /* @__PURE__ */ A("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ A(BR, {
31666
31682
  mode: o,
31667
31683
  secondary: s,
31668
31684
  dimensions: i,
@@ -31674,41 +31690,41 @@ var Tz = D("div")(() => ({
31674
31690
  })
31675
31691
  });
31676
31692
  }
31677
- }, kz = Cz("bounds")(Oz), Az = /* @__PURE__ */ NR({
31678
- ConfigLayout: () => kz,
31679
- LayoutContents: () => zR
31680
- }), jz = E(/*#__PURE__*/ A("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z" }), "Info"), Mz = E(/*#__PURE__*/ A("path", { d: "M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4" }), "HelpOutline"), Nz = D("div")({
31693
+ }, Az = wz("bounds")(kz), jz = /* @__PURE__ */ PR({
31694
+ ConfigLayout: () => Az,
31695
+ LayoutContents: () => BR
31696
+ }), Mz = E(/*#__PURE__*/ A("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z" }), "Info"), Nz = E(/*#__PURE__*/ A("path", { d: "M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4" }), "HelpOutline"), Pz = D("div")({
31681
31697
  display: "flex",
31682
31698
  justifyContent: "space-between"
31683
- }), Pz = D("div")({
31699
+ }), Fz = D("div")({
31684
31700
  display: "flex",
31685
31701
  alignItems: "center"
31686
- }), Fz = D(Ot)({
31702
+ }), Iz = D(Ot)({
31687
31703
  margin: 0,
31688
31704
  padding: 0
31689
- }), Iz = D(ta)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": { fontSize: e.typography.fontSize - 2 } })), Lz = (e) => {
31705
+ }), Lz = D(ta)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": { fontSize: e.typography.fontSize - 2 } })), Rz = (e) => {
31690
31706
  let { header: t, children: n, mini: r, info: i } = e;
31691
- return /* @__PURE__ */ j(Nz, { children: [/* @__PURE__ */ j(Pz, { children: [/* @__PURE__ */ A(_, {
31707
+ return /* @__PURE__ */ j(Pz, { children: [/* @__PURE__ */ j(Fz, { children: [/* @__PURE__ */ A(_, {
31692
31708
  variant: r ? "h6" : "h5",
31693
31709
  children: t
31694
- }), i] }), n && /* @__PURE__ */ A(Iz, {
31710
+ }), i] }), n && /* @__PURE__ */ A(Lz, {
31695
31711
  title: n,
31696
- children: /* @__PURE__ */ A(Fz, {
31712
+ children: /* @__PURE__ */ A(Iz, {
31697
31713
  "aria-label": "Delete",
31698
31714
  size: "large",
31699
- children: /* @__PURE__ */ A(Mz, {})
31715
+ children: /* @__PURE__ */ A(Nz, {})
31700
31716
  })
31701
31717
  })] });
31702
31718
  };
31703
- Lz.propTypes = {
31719
+ Rz.propTypes = {
31704
31720
  mini: z.default.bool,
31705
31721
  header: z.default.string,
31706
31722
  children: z.default.node,
31707
31723
  info: z.default.any
31708
- }, D(jR)(({ theme: e }) => ({ marginLeft: e.spacing(1) }));
31724
+ }, D(MR)(({ theme: e }) => ({ marginLeft: e.spacing(1) }));
31709
31725
  //#endregion
31710
31726
  //#region src/author/number-text-field.tsx
31711
- var Rz = D(jR)({
31727
+ var zz = D(MR)({
31712
31728
  maxWidth: "120px",
31713
31729
  width: "120px",
31714
31730
  marginTop: "0",
@@ -31719,25 +31735,25 @@ var Rz = D(jR)({
31719
31735
  "& [class^=\"MuiInputBase-input\"]": { padding: "18.5px 14px" }
31720
31736
  });
31721
31737
  k.Component;
31722
- var zz = k.forwardRef((e, t) => /* @__PURE__ */ A(Rz, {
31738
+ var Bz = k.forwardRef((e, t) => /* @__PURE__ */ A(zz, {
31723
31739
  ...e,
31724
31740
  ref: t,
31725
31741
  variant: "outlined"
31726
- })), Bz = D("div")({
31742
+ })), Vz = D("div")({
31727
31743
  alignItems: "center",
31728
31744
  display: "flex",
31729
31745
  gap: "20px"
31730
- }), Vz = D("div")({ margin: "12px 0" }), Hz = D("label")({
31746
+ }), Hz = D("div")({ margin: "12px 0" }), Uz = D("label")({
31731
31747
  display: "block",
31732
31748
  marginBottom: "4px"
31733
- }), Uz = D(Te)({
31749
+ }), Wz = D(Te)({
31734
31750
  width: "80px",
31735
31751
  alignItems: "center",
31736
31752
  height: "40px",
31737
31753
  verticalAlign: "top",
31738
31754
  marginBottom: "8px",
31739
31755
  "& .MuiSelect-select": { paddingLeft: "10px" }
31740
- }), Wz = D("div")({ marginLeft: "-15px" }), Gz = D("span")({ verticalAlign: "middle" }), Kz = class extends k.Component {
31756
+ }), Gz = D("div")({ marginLeft: "-15px" }), Kz = D("span")({ verticalAlign: "middle" }), qz = class extends k.Component {
31741
31757
  static propTypes = {
31742
31758
  model: z.default.object.isRequired,
31743
31759
  onChange: z.default.func,
@@ -31757,10 +31773,10 @@ var zz = k.forwardRef((e, t) => /* @__PURE__ */ A(Rz, {
31757
31773
  render() {
31758
31774
  let { model: e, modelOptions: t } = this.props, { maxOfModel: n, partsPerModel: r, modelTypeChoices: i } = t;
31759
31775
  return /* @__PURE__ */ j("div", { children: [
31760
- /* @__PURE__ */ A(Lz, { header: "Configure Fraction Model" }),
31776
+ /* @__PURE__ */ A(Rz, { header: "Configure Fraction Model" }),
31761
31777
  /* @__PURE__ */ A("br", {}),
31762
- /* @__PURE__ */ j(Bz, { children: [
31763
- /* @__PURE__ */ j(Vz, { children: [/* @__PURE__ */ A(Hz, { children: "Model Type" }), /* @__PURE__ */ A(Uz, {
31778
+ /* @__PURE__ */ j(Vz, { children: [
31779
+ /* @__PURE__ */ j(Hz, { children: [/* @__PURE__ */ A(Uz, { children: "Model Type" }), /* @__PURE__ */ A(Wz, {
31764
31780
  onChange: this.handleSelect,
31765
31781
  value: e.modelTypeSelected,
31766
31782
  MenuProps: { transitionDuration: {
@@ -31772,14 +31788,14 @@ var zz = k.forwardRef((e, t) => /* @__PURE__ */ A(Rz, {
31772
31788
  children: e.label
31773
31789
  }, "item_" + t))
31774
31790
  })] }),
31775
- /* @__PURE__ */ j(Vz, { children: [/* @__PURE__ */ A(Hz, { children: "Max # of Models" }), /* @__PURE__ */ A(zz, {
31791
+ /* @__PURE__ */ j(Hz, { children: [/* @__PURE__ */ A(Uz, { children: "Max # of Models" }), /* @__PURE__ */ A(Bz, {
31776
31792
  min: n.min,
31777
31793
  max: n.max,
31778
31794
  value: e.maxModelSelected,
31779
31795
  name: "max-model",
31780
31796
  onChange: this.changeMaxModel
31781
31797
  })] }),
31782
- /* @__PURE__ */ j(Vz, { children: [/* @__PURE__ */ A(Hz, { children: "Parts per Model" }), /* @__PURE__ */ A(zz, {
31798
+ /* @__PURE__ */ j(Hz, { children: [/* @__PURE__ */ A(Uz, { children: "Parts per Model" }), /* @__PURE__ */ A(Bz, {
31783
31799
  min: r.min,
31784
31800
  max: r.max,
31785
31801
  value: e.partsPerModel,
@@ -31787,22 +31803,22 @@ var zz = k.forwardRef((e, t) => /* @__PURE__ */ A(Rz, {
31787
31803
  onChange: this.changePartModel
31788
31804
  })] })
31789
31805
  ] }),
31790
- /* @__PURE__ */ j(Wz, { children: [/* @__PURE__ */ A(wR, {
31806
+ /* @__PURE__ */ j(Gz, { children: [/* @__PURE__ */ A(TR, {
31791
31807
  onChange: this.studentConfig,
31792
31808
  checked: e.allowedStudentConfig,
31793
31809
  label: ""
31794
- }), /* @__PURE__ */ A(Gz, { children: "Allow student to configure number of models and parts per model" })] })
31810
+ }), /* @__PURE__ */ A(Kz, { children: "Allow student to configure number of models and parts per model" })] })
31795
31811
  ] });
31796
31812
  }
31797
- }, qz = D(DR)(({ theme: e }) => ({ marginBottom: e.spacing(4) })), Jz = D(ta)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
31813
+ }, Jz = D(OR)(({ theme: e }) => ({ marginBottom: e.spacing(4) })), Yz = D(ta)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
31798
31814
  fontSize: e.typography.fontSize - 2,
31799
31815
  whiteSpace: "pre",
31800
31816
  maxWidth: "500px"
31801
- } })), Yz = D("div")(({ theme: e }) => ({
31817
+ } })), Xz = D("div")(({ theme: e }) => ({
31802
31818
  fontSize: e.typography.fontSize - 2,
31803
31819
  color: e.palette.error.main,
31804
31820
  marginTop: e.spacing(1)
31805
- })), Xz = D("div")(({ theme: e, hasError: t }) => ({ ...t && { border: `2px solid ${e.palette.error.main}` } })), Zz = D("label")(({ theme: e }) => ({ marginBottom: e.spacing(4) })), Qz = class extends k.Component {
31821
+ })), Zz = D("div")(({ theme: e, hasError: t }) => ({ ...t && { border: `2px solid ${e.palette.error.main}` } })), Qz = D("label")(({ theme: e }) => ({ marginBottom: e.spacing(4) })), $z = class extends k.Component {
31806
31822
  static propTypes = {
31807
31823
  model: z.default.object.isRequired,
31808
31824
  configuration: z.default.object.isRequired,
@@ -31835,15 +31851,15 @@ var zz = k.forwardRef((e, t) => /* @__PURE__ */ A(Rz, {
31835
31851
  ...a,
31836
31852
  ...e
31837
31853
  }), v = this.generateRandomKey();
31838
- return /* @__PURE__ */ j(Az.ConfigLayout, {
31854
+ return /* @__PURE__ */ j(jz.ConfigLayout, {
31839
31855
  extraCSSRules: f,
31840
31856
  dimensions: o,
31841
31857
  hideSettings: !0,
31842
31858
  children: [
31843
- /* @__PURE__ */ A(Lz, { header: "Set Up" }),
31844
- /* @__PURE__ */ A(qz, {
31859
+ /* @__PURE__ */ A(Rz, { header: "Set Up" }),
31860
+ /* @__PURE__ */ A(Jz, {
31845
31861
  label: s?.label || "Title",
31846
- children: /* @__PURE__ */ A(yR, {
31862
+ children: /* @__PURE__ */ A(bR, {
31847
31863
  markup: e.title || "",
31848
31864
  onChange: (e) => t({ title: e }),
31849
31865
  toolbarOpts: g,
@@ -31865,9 +31881,9 @@ var zz = k.forwardRef((e, t) => /* @__PURE__ */ A(Rz, {
31865
31881
  mathMlOptions: u
31866
31882
  })
31867
31883
  }),
31868
- /* @__PURE__ */ A(qz, {
31884
+ /* @__PURE__ */ A(Jz, {
31869
31885
  label: c?.label || "Question",
31870
- children: /* @__PURE__ */ A(yR, {
31886
+ children: /* @__PURE__ */ A(bR, {
31871
31887
  markup: e.prompt || "",
31872
31888
  minHeight: 60,
31873
31889
  onChange: (e) => t({ prompt: e }),
@@ -31880,21 +31896,21 @@ var zz = k.forwardRef((e, t) => /* @__PURE__ */ A(Rz, {
31880
31896
  mathMlOptions: u
31881
31897
  })
31882
31898
  }),
31883
- /* @__PURE__ */ A(DR, { children: /* @__PURE__ */ A(Kz, {
31899
+ /* @__PURE__ */ A(OR, { children: /* @__PURE__ */ A(qz, {
31884
31900
  model: e,
31885
31901
  onChange: this.onModelOptionsChange,
31886
31902
  modelOptions: l
31887
31903
  }) }),
31888
- /* @__PURE__ */ j(DR, { children: [
31904
+ /* @__PURE__ */ j(OR, { children: [
31889
31905
  " ",
31890
- /* @__PURE__ */ A(Lz, {
31906
+ /* @__PURE__ */ A(Rz, {
31891
31907
  header: "Correct Answer",
31892
- info: /* @__PURE__ */ A(Jz, {
31908
+ info: /* @__PURE__ */ A(Yz, {
31893
31909
  disableFocusListener: !0,
31894
31910
  disableTouchListener: !0,
31895
31911
  placement: "right",
31896
31912
  title: "The correct answer should include no more than one partially-filled model",
31897
- children: /* @__PURE__ */ A(jz, {
31913
+ children: /* @__PURE__ */ A(Mz, {
31898
31914
  fontSize: "small",
31899
31915
  color: "primary",
31900
31916
  style: { marginLeft: "8px" }
@@ -31902,9 +31918,9 @@ var zz = k.forwardRef((e, t) => /* @__PURE__ */ A(Rz, {
31902
31918
  })
31903
31919
  }),
31904
31920
  /* @__PURE__ */ A("br", {}),
31905
- /* @__PURE__ */ A(Zz, { children: "Click/touch the number of parts to represent the correct fraction model" }),
31921
+ /* @__PURE__ */ A(Qz, { children: "Click/touch the number of parts to represent the correct fraction model" }),
31906
31922
  /* @__PURE__ */ A("br", {}),
31907
- /* @__PURE__ */ A(Xz, {
31923
+ /* @__PURE__ */ A(Zz, {
31908
31924
  hasError: !!d.correctResponse,
31909
31925
  children: /* @__PURE__ */ A(Ne, {
31910
31926
  value: e.correctResponse,
@@ -31915,7 +31931,7 @@ var zz = k.forwardRef((e, t) => /* @__PURE__ */ A(Rz, {
31915
31931
  onChange: this.onCorrectAnswerChange
31916
31932
  }, v)
31917
31933
  }),
31918
- d.correctResponse && /* @__PURE__ */ A(Yz, { children: d.correctResponse })
31934
+ d.correctResponse && /* @__PURE__ */ A(Xz, { children: d.correctResponse })
31919
31935
  ] }),
31920
31936
  /* @__PURE__ */ A(De, {
31921
31937
  open: h.open,
@@ -31935,7 +31951,7 @@ var zz = k.forwardRef((e, t) => /* @__PURE__ */ A(Rz, {
31935
31951
  ]
31936
31952
  });
31937
31953
  }
31938
- }, $z = class e extends CustomEvent {
31954
+ }, eB = class e extends CustomEvent {
31939
31955
  static {
31940
31956
  this.TYPE = "model.updated";
31941
31957
  }
@@ -31948,7 +31964,7 @@ var zz = k.forwardRef((e, t) => /* @__PURE__ */ A(Rz, {
31948
31964
  }
31949
31965
  }), this.update = t, this.reset = n;
31950
31966
  }
31951
- }, eB = class e extends CustomEvent {
31967
+ }, tB = class e extends CustomEvent {
31952
31968
  static {
31953
31969
  this.TYPE = "delete.image";
31954
31970
  }
@@ -31961,7 +31977,7 @@ var zz = k.forwardRef((e, t) => /* @__PURE__ */ A(Rz, {
31961
31977
  }
31962
31978
  }), this.src = t, this.done = n;
31963
31979
  }
31964
- }, tB = class e extends CustomEvent {
31980
+ }, nB = class e extends CustomEvent {
31965
31981
  static {
31966
31982
  this.TYPE = "insert.image";
31967
31983
  }
@@ -31971,7 +31987,7 @@ var zz = k.forwardRef((e, t) => /* @__PURE__ */ A(Rz, {
31971
31987
  detail: t
31972
31988
  }), this.handler = t;
31973
31989
  }
31974
- }, nB = class e extends CustomEvent {
31990
+ }, rB = class e extends CustomEvent {
31975
31991
  static {
31976
31992
  this.TYPE = "delete.sound";
31977
31993
  }
@@ -31984,7 +32000,7 @@ var zz = k.forwardRef((e, t) => /* @__PURE__ */ A(Rz, {
31984
32000
  }
31985
32001
  }), this.src = t, this.done = n;
31986
32002
  }
31987
- }, rB = class e extends CustomEvent {
32003
+ }, iB = class e extends CustomEvent {
31988
32004
  static {
31989
32005
  this.TYPE = "insert.sound";
31990
32006
  }
@@ -31994,7 +32010,7 @@ var zz = k.forwardRef((e, t) => /* @__PURE__ */ A(Rz, {
31994
32010
  detail: t
31995
32011
  }), this.handler = t;
31996
32012
  }
31997
- }, iB = {
32013
+ }, aB = {
31998
32014
  model: {
31999
32015
  correctResponse: [],
32000
32016
  title: "",
@@ -32074,24 +32090,24 @@ var zz = k.forwardRef((e, t) => /* @__PURE__ */ A(Rz, {
32074
32090
  },
32075
32091
  settingsPanelDisabled: !0
32076
32092
  }
32077
- }, aB = class e extends HTMLElement {
32093
+ }, oB = class e extends HTMLElement {
32078
32094
  static createDefaultModel = (e = {}) => {
32079
- let t = iB.configuration, n = e.language || "";
32095
+ let t = aB.configuration, n = e.language || "";
32080
32096
  return !n && t.language && t.language.enabled && t.languageChoices?.options?.length && (n = t.languageChoices.options[0].value), {
32081
- ...iB.model,
32097
+ ...aB.model,
32082
32098
  ...e,
32083
32099
  language: n
32084
32100
  };
32085
32101
  };
32086
32102
  constructor() {
32087
- super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = iB.configuration;
32103
+ super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = aB.configuration;
32088
32104
  }
32089
32105
  set model(t) {
32090
32106
  this._model = e.createDefaultModel(t), this.render();
32091
32107
  }
32092
32108
  set configuration(e) {
32093
32109
  let t = {
32094
- ...iB.configuration,
32110
+ ...aB.configuration,
32095
32111
  ...e
32096
32112
  };
32097
32113
  this._configuration = t, this.resetModelAfterConfigurationIsSet(), t?.language?.enabled ? t?.languageChoices?.options?.length && (this._model.language = t?.languageChoices.options[0].value) : t.language.settings && this._model.language ? (this._configuration.language.enabled = !0, (!this._configuration.languageChoices.options || !this._configuration.languageChoices.options.length) && (this._configuration.languageChoices.options = []), this._configuration.languageChoices.options.find((e) => e.value === this._model.language) || this._configuration.languageChoices.options.push({
@@ -32107,32 +32123,32 @@ var zz = k.forwardRef((e, t) => /* @__PURE__ */ A(Rz, {
32107
32123
  this.render();
32108
32124
  }
32109
32125
  modelChanged(e) {
32110
- this._model = e, this.dispatchEvent(new $z(this._model), !0), this.render();
32126
+ this._model = e, this.dispatchEvent(new eB(this._model), !0), this.render();
32111
32127
  }
32112
32128
  onChange = (e) => {
32113
32129
  this._model = {
32114
32130
  ...this._model,
32115
32131
  ...e
32116
- }, this.dispatchEvent(new $z(this._model)), this.render();
32132
+ }, this.dispatchEvent(new eB(this._model)), this.render();
32117
32133
  };
32118
32134
  onConfigurationChanged(e) {
32119
32135
  this._configuration = e, this.render();
32120
32136
  }
32121
32137
  insertImage(e) {
32122
- this.dispatchEvent(new tB(e));
32138
+ this.dispatchEvent(new nB(e));
32123
32139
  }
32124
32140
  onDeleteImage(e, t) {
32125
- this.dispatchEvent(new eB(e, t));
32141
+ this.dispatchEvent(new tB(e, t));
32126
32142
  }
32127
32143
  insertSound(e) {
32128
- this.dispatchEvent(new rB(e));
32144
+ this.dispatchEvent(new iB(e));
32129
32145
  }
32130
32146
  onDeleteSound(e, t) {
32131
- this.dispatchEvent(new nB(e, t));
32147
+ this.dispatchEvent(new rB(e, t));
32132
32148
  }
32133
32149
  render() {
32134
32150
  if (this._model) {
32135
- let e = k.createElement(Qz, {
32151
+ let e = k.createElement($z, {
32136
32152
  classes: {},
32137
32153
  model: this._model,
32138
32154
  configuration: this._configuration,
@@ -32155,6 +32171,6 @@ var zz = k.forwardRef((e, t) => /* @__PURE__ */ A(Rz, {
32155
32171
  }
32156
32172
  };
32157
32173
  //#endregion
32158
- export { aB as default };
32174
+ export { oB as default };
32159
32175
 
32160
32176
  //# sourceMappingURL=index.js.map