@scbt-ecom/ui 0.10.1 → 0.10.3

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.
package/dist/client.js CHANGED
@@ -195,7 +195,7 @@ function gs(t) {
195
195
  const e = I.useContext(LI);
196
196
  return t || e || "ltr";
197
197
  }
198
- var Qn = "Accordion", jI = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Rf, GI, zI] = Af(Qn), [Vl, S$] = qn(Qn, [
198
+ var Qn = "Accordion", jI = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Rf, GI, zI] = Af(Qn), [Vl, w$] = qn(Qn, [
199
199
  zI,
200
200
  ny
201
201
  ]), Pf = ny(), ay = W.forwardRef(
@@ -473,7 +473,7 @@ var eE = "VisuallyHidden", yy = I.forwardRef(
473
473
  )
474
474
  );
475
475
  yy.displayName = eE;
476
- var tE = yy, [Ll, w$] = qn("Tooltip", [
476
+ var tE = yy, [Ll, I$] = qn("Tooltip", [
477
477
  Wb
478
478
  ]), jl = Wb(), xy = "TooltipProvider", nE = 700, Ku = "tooltip.open", [rE, Nf] = Ll(xy), Cy = (t) => {
479
479
  const {
@@ -589,7 +589,7 @@ var qu = "TooltipTrigger", wy = I.forwardRef(
589
589
  }
590
590
  );
591
591
  wy.displayName = qu;
592
- var oE = "TooltipPortal", [I$, sE] = Ll(oE, {
592
+ var oE = "TooltipPortal", [E$, sE] = Ll(oE, {
593
593
  forceMount: void 0
594
594
  }), _i = "TooltipContent", Iy = I.forwardRef(
595
595
  (t, e) => {
@@ -800,7 +800,7 @@ const Oh = () => !1, Ff = () => {
800
800
  isMobile: Zu(n, i, Oh),
801
801
  isDesktop: Zu(r, o, Oh)
802
802
  };
803
- }, E$ = (t = !1) => {
803
+ }, A$ = (t = !1) => {
804
804
  const [e, n] = I.useState(t);
805
805
  return [e, (i) => n((o) => i ?? !o)];
806
806
  }, ky = (t, e) => {
@@ -1941,7 +1941,7 @@ var zE = function(t, e) {
1941
1941
  }
1942
1942
  };
1943
1943
  };
1944
- const A$ = ({ schema: t, ...e }) => LE({
1944
+ const T$ = ({ schema: t, ...e }) => LE({
1945
1945
  ...e,
1946
1946
  resolver: _E(t)
1947
1947
  }), HE = (t, e) => {
@@ -1954,7 +1954,7 @@ const A$ = ({ schema: t, ...e }) => LE({
1954
1954
  return I.useEffect(() => {
1955
1955
  n.current !== t && (o(t), n.current = t);
1956
1956
  }, [t]), r;
1957
- }, T$ = (...t) => fe(
1957
+ }, k$ = (...t) => fe(
1958
1958
  (n) => {
1959
1959
  t.forEach((r) => {
1960
1960
  r && (typeof r == "function" ? r(n) : r.current = n);
@@ -2204,7 +2204,7 @@ function Uy(t, e = !1) {
2204
2204
  function rA(t, e) {
2205
2205
  return t.map((n, r) => t[(e + r) % t.length]);
2206
2206
  }
2207
- var Ky = Yy, qy = Jy, zf = "Tabs", [iA, k$] = qn(zf, [
2207
+ var Ky = Yy, qy = Jy, zf = "Tabs", [iA, M$] = qn(zf, [
2208
2208
  Wl
2209
2209
  ]), Qy = Wl(), [oA, _f] = iA(zf), e0 = I.forwardRef(
2210
2210
  (t, e) => {
@@ -2346,7 +2346,7 @@ function l0(t, e) {
2346
2346
  return `${t}-content-${e}`;
2347
2347
  }
2348
2348
  var sA = e0, aA = n0, lA = i0, zh = s0;
2349
- const M$ = ({ renderContent: t, defaultActiveTabId: e = "1", value: n, onChangeTab: r, classes: i }) => {
2349
+ const O$ = ({ renderContent: t, defaultActiveTabId: e = "1", value: n, onChangeTab: r, classes: i }) => {
2350
2350
  var o, s;
2351
2351
  return /* @__PURE__ */ b.jsxs(
2352
2352
  sA,
@@ -5151,7 +5151,7 @@ const uo = {
5151
5151
  function Hk(t) {
5152
5152
  Object.assign(Oa, t);
5153
5153
  }
5154
- const { schedule: fp, cancel: O$ } = u0(queueMicrotask, !1);
5154
+ const { schedule: fp, cancel: R$ } = u0(queueMicrotask, !1);
5155
5155
  class $k extends Kb {
5156
5156
  /**
5157
5157
  * This only mounts projection nodes for components that
@@ -7159,7 +7159,7 @@ const RO = ({ children: t, exitBeforeEnter: e, custom: n, initial: r = !0, onExi
7159
7159
  className: O("size-8 cursor-pointer text-icon-dark-hover", n == null ? void 0 : n.icon)
7160
7160
  }
7161
7161
  )
7162
- ] }), P$ = ({
7162
+ ] }), D$ = ({
7163
7163
  title: t,
7164
7164
  children: e,
7165
7165
  isModalOpen: n,
@@ -7610,7 +7610,7 @@ const IR = Dl(
7610
7610
  default:
7611
7611
  return null;
7612
7612
  }
7613
- }, Po = (t) => ER(t), D$ = ({ maxToastViewLimit: t = 2, toastDuration: e = 5e3 }) => {
7613
+ }, Po = (t) => ER(t), N$ = ({ maxToastViewLimit: t = 2, toastDuration: e = 5e3 }) => {
7614
7614
  const { toasts: n } = Lx();
7615
7615
  return Re(() => {
7616
7616
  n.filter((r) => r.visible).filter((r, i) => i >= t).forEach((r) => Da.dismiss(r.id));
@@ -7729,7 +7729,7 @@ const IR = Dl(
7729
7729
  defaultVariants: {
7730
7730
  intent: "simple"
7731
7731
  }
7732
- }), sn = ({ intent: t, as: e = "p", disabled: n, text: r, className: i, ...o }) => r ? /* @__PURE__ */ b.jsx(e, { className: O(OR({ intent: t, disabled: n }), i), ...o, children: r }) : null, N$ = ({
7732
+ }), sn = ({ intent: t, as: e = "p", disabled: n, text: r, className: i, ...o }) => r ? /* @__PURE__ */ b.jsx(e, { className: O(OR({ intent: t, disabled: n }), i), ...o, children: r }) : null, F$ = ({
7733
7733
  label: t,
7734
7734
  helperText: e,
7735
7735
  control: n,
@@ -8499,7 +8499,7 @@ const oP = (t, e) => ({ onValueChange: ({ inputValue: s, onChange: a, source: l
8499
8499
  a(!0), t != null && t.customFocus && (t == null || t.customFocus(s));
8500
8500
  }, onBlur: ({ event: s, setShowMask: a, hookFormBlur: l }) => {
8501
8501
  l(), a(!1), t != null && t.customFocus && (t == null || t.customFocus(s));
8502
- } }), F$ = ({
8502
+ } }), V$ = ({
8503
8503
  format: t,
8504
8504
  allowEmptyFormatting: e = !1,
8505
8505
  mask: n,
@@ -8589,7 +8589,7 @@ function tc(t) {
8589
8589
  const e = I.useRef({ value: t, previous: t });
8590
8590
  return I.useMemo(() => (e.current.value !== t && (e.current.previous = e.current.value, e.current.value = t), e.current.previous), [t]);
8591
8591
  }
8592
- var Ip = "Checkbox", [sP, V$] = qn(Ip), [aP, lP] = sP(Ip), Ux = I.forwardRef(
8592
+ var Ip = "Checkbox", [sP, B$] = qn(Ip), [aP, lP] = sP(Ip), Ux = I.forwardRef(
8593
8593
  (t, e) => {
8594
8594
  const {
8595
8595
  __scopeCheckbox: n,
@@ -8707,7 +8707,7 @@ function Qx(t) {
8707
8707
  return br(t) ? "indeterminate" : t ? "checked" : "unchecked";
8708
8708
  }
8709
8709
  var uP = Ux, dP = qx;
8710
- const B$ = ({
8710
+ const L$ = ({
8711
8711
  control: t,
8712
8712
  label: e,
8713
8713
  helperText: n,
@@ -8784,7 +8784,7 @@ const B$ = ({
8784
8784
  }
8785
8785
  );
8786
8786
  };
8787
- var Ep = "Switch", [fP, L$] = qn(Ep), [pP, hP] = fP(Ep), e1 = I.forwardRef(
8787
+ var Ep = "Switch", [fP, j$] = qn(Ep), [pP, hP] = fP(Ep), e1 = I.forwardRef(
8788
8788
  (t, e) => {
8789
8789
  const {
8790
8790
  __scopeSwitch: n,
@@ -8886,7 +8886,7 @@ function r1(t) {
8886
8886
  return t ? "checked" : "unchecked";
8887
8887
  }
8888
8888
  var gP = e1, vP = n1;
8889
- const j$ = ({
8889
+ const G$ = ({
8890
8890
  disabled: t,
8891
8891
  classes: e,
8892
8892
  control: n,
@@ -8950,7 +8950,7 @@ const j$ = ({
8950
8950
  ] })
8951
8951
  }
8952
8952
  );
8953
- }, G$ = ({
8953
+ }, z$ = ({
8954
8954
  label: t,
8955
8955
  helperText: e,
8956
8956
  control: n,
@@ -11840,7 +11840,7 @@ const x2 = (t, e) => {
11840
11840
  ) })
11841
11841
  }
11842
11842
  );
11843
- }, H$ = ({ ...t }) => /* @__PURE__ */ b.jsx(Rs, { dadataType: "fio", ...t }), $$ = ({ ...t }) => /* @__PURE__ */ b.jsx(Rs, { dadataType: "auto", ...t }), W$ = ({ ...t }) => /* @__PURE__ */ b.jsx(Rs, { dadataType: "country", ...t }), X$ = ({ ...t }) => /* @__PURE__ */ b.jsx(Rs, { dadataType: "address", ...t }), Y$ = ({ ...t }) => /* @__PURE__ */ b.jsx(Rs, { dadataType: "party", ...t });
11843
+ }, $$ = ({ ...t }) => /* @__PURE__ */ b.jsx(Rs, { dadataType: "fio", ...t }), W$ = ({ ...t }) => /* @__PURE__ */ b.jsx(Rs, { dadataType: "auto", ...t }), X$ = ({ ...t }) => /* @__PURE__ */ b.jsx(Rs, { dadataType: "country", ...t }), Y$ = ({ ...t }) => /* @__PURE__ */ b.jsx(Rs, { dadataType: "address", ...t }), Z$ = ({ ...t }) => /* @__PURE__ */ b.jsx(Rs, { dadataType: "party", ...t });
11844
11844
  function ai(t) {
11845
11845
  "@babel/helpers - typeof";
11846
11846
  return ai = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
@@ -15764,7 +15764,7 @@ const dL = (t, e, n) => ({
15764
15764
  t == null ? void 0 : t.indicatorIcon
15765
15765
  )
15766
15766
  }
15767
- ) }), hL = ({ classes: t, ...e }) => /* @__PURE__ */ b.jsx(cc.MultiValueRemove, { ...e, children: /* @__PURE__ */ b.jsx(ze, { name: "general/close", className: O("size-4 text-icon-blue-grey-800", t == null ? void 0 : t.multiRemoveIcon) }) }), Z$ = ({
15767
+ ) }), hL = ({ classes: t, ...e }) => /* @__PURE__ */ b.jsx(cc.MultiValueRemove, { ...e, children: /* @__PURE__ */ b.jsx(ze, { name: "general/close", className: O("size-4 text-icon-blue-grey-800", t == null ? void 0 : t.multiRemoveIcon) }) }), J$ = ({
15768
15768
  options: t,
15769
15769
  control: e,
15770
15770
  defaultValue: n,
@@ -15880,7 +15880,7 @@ var EC = ["PageUp", "PageDown"], AC = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
15880
15880
  "from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
15881
15881
  "from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
15882
15882
  "from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
15883
- }, oo = "Slider", [Bd, xL, CL] = Af(oo), [kC, J$] = qn(oo, [
15883
+ }, oo = "Slider", [Bd, xL, CL] = Af(oo), [kC, U$] = qn(oo, [
15884
15884
  CL
15885
15885
  ]), [SL, uc] = kC(oo), $p = I.forwardRef(
15886
15886
  (t, e) => {
@@ -16311,7 +16311,7 @@ const LL = I.forwardRef(
16311
16311
  ) })
16312
16312
  );
16313
16313
  $p.displayName = BC.displayName;
16314
- const U$ = ({
16314
+ const K$ = ({
16315
16315
  label: t,
16316
16316
  size: e = "full",
16317
16317
  helperText: n,
@@ -25720,20 +25720,25 @@ function qv(t, e = null) {
25720
25720
  typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : typeof os < "u" && os.platform && os.platform() == "darwin";
25721
25721
  function G4(t, e = null) {
25722
25722
  return function(n, r) {
25723
- let { $from: i, $to: o } = n.selection, s = i.blockRange(o), a = !1, l = s;
25723
+ let { $from: i, $to: o } = n.selection, s = i.blockRange(o);
25724
25724
  if (!s)
25725
25725
  return !1;
25726
- if (s.depth >= 2 && i.node(s.depth - 1).type.compatibleContent(t) && s.startIndex == 0) {
25727
- if (i.index(s.depth - 1) == 0)
25728
- return !1;
25729
- let u = n.doc.resolve(s.start - 2);
25730
- l = new Wa(u, u, s.depth), s.endIndex < s.parent.childCount && (s = new Wa(i, n.doc.resolve(o.end(s.depth)), s.depth)), a = !0;
25731
- }
25732
- let c = Zp(l, t, e, s);
25733
- return c ? (r && r(z4(n.tr, s, c, a, t).scrollIntoView()), !0) : !1;
25726
+ let a = r ? n.tr : null;
25727
+ return z4(a, s, t, e) ? (r && r(a.scrollIntoView()), !0) : !1;
25734
25728
  };
25735
25729
  }
25736
- function z4(t, e, n, r, i) {
25730
+ function z4(t, e, n, r = null) {
25731
+ let i = !1, o = e, s = e.$from.doc;
25732
+ if (e.depth >= 2 && e.$from.node(e.depth - 1).type.compatibleContent(n) && e.startIndex == 0) {
25733
+ if (e.$from.index(e.depth - 1) == 0)
25734
+ return !1;
25735
+ let l = s.resolve(e.start - 2);
25736
+ o = new Wa(l, l, e.depth), e.endIndex < e.parent.childCount && (e = new Wa(e.$from, s.resolve(e.$to.end(e.depth)), e.depth)), i = !0;
25737
+ }
25738
+ let a = Zp(o, n, r, e);
25739
+ return a ? (t && _4(t, e, a, i, n), !0) : !1;
25740
+ }
25741
+ function _4(t, e, n, r, i) {
25737
25742
  let o = J.empty;
25738
25743
  for (let u = n.length - 1; u >= 0; u--)
25739
25744
  o = J.from(n[u].type.create(n[u].attrs, o));
@@ -25746,13 +25751,13 @@ function z4(t, e, n, r, i) {
25746
25751
  !f && ji(t.doc, l, a) && (t.split(l, a), l += 2 * a), l += c.child(u).nodeSize;
25747
25752
  return t;
25748
25753
  }
25749
- function _4(t) {
25754
+ function H4(t) {
25750
25755
  return function(e, n) {
25751
25756
  let { $from: r, $to: i } = e.selection, o = r.blockRange(i, (s) => s.childCount > 0 && s.firstChild.type == t);
25752
- return o ? n ? r.node(o.depth - 1).type == t ? H4(e, n, t, o) : $4(e, n, o) : !0 : !1;
25757
+ return o ? n ? r.node(o.depth - 1).type == t ? $4(e, n, t, o) : W4(e, n, o) : !0 : !1;
25753
25758
  };
25754
25759
  }
25755
- function H4(t, e, n, r) {
25760
+ function $4(t, e, n, r) {
25756
25761
  let i = t.tr, o = r.end, s = r.$to.end(r.depth);
25757
25762
  o < s && (i.step(new pt(o - 1, s, o, s, new le(J.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Wa(i.doc.resolve(r.$from.pos), i.doc.resolve(s), r.depth));
25758
25763
  const a = so(r);
@@ -25762,7 +25767,7 @@ function H4(t, e, n, r) {
25762
25767
  let l = i.mapping.map(o, -1) - 1;
25763
25768
  return Mr(i.doc, l) && i.join(l), e(i.scrollIntoView()), !0;
25764
25769
  }
25765
- function $4(t, e, n) {
25770
+ function W4(t, e, n) {
25766
25771
  let r = t.tr, i = n.parent;
25767
25772
  for (let p = n.end, h = n.endIndex - 1, m = n.startIndex; h > m; h--)
25768
25773
  p -= i.child(h).nodeSize, r.delete(p - 1, p + 1);
@@ -25775,7 +25780,7 @@ function $4(t, e, n) {
25775
25780
  let d = o.pos, f = d + s.nodeSize;
25776
25781
  return r.step(new pt(d - (a ? 1 : 0), f + (l ? 1 : 0), d + 1, f - 1, new le((a ? J.empty : J.from(i.copy(J.empty))).append(l ? J.empty : J.from(i.copy(J.empty))), a ? 0 : 1, l ? 0 : 1), a ? 0 : 1)), e(r.scrollIntoView()), !0;
25777
25782
  }
25778
- function W4(t) {
25783
+ function X4(t) {
25779
25784
  return function(e, n) {
25780
25785
  let { $from: r, $to: i } = e.selection, o = r.blockRange(i, (c) => c.childCount > 0 && c.firstChild.type == t);
25781
25786
  if (!o)
@@ -25878,7 +25883,7 @@ class yc {
25878
25883
  return a;
25879
25884
  }
25880
25885
  }
25881
- class X4 {
25886
+ class Y4 {
25882
25887
  constructor() {
25883
25888
  this.callbacks = {};
25884
25889
  }
@@ -26015,10 +26020,10 @@ function sw(t) {
26015
26020
  function Te(t, e = void 0, ...n) {
26016
26021
  return sw(t) ? e ? t.bind(e)(...n) : t(...n) : t;
26017
26022
  }
26018
- function Y4(t = {}) {
26023
+ function Z4(t = {}) {
26019
26024
  return Object.keys(t).length === 0 && t.constructor === Object;
26020
26025
  }
26021
- function Z4(t) {
26026
+ function J4(t) {
26022
26027
  return typeof t != "string" ? t : t.match(/^[+-]?(?:\d*\.)?\d+$/) ? Number(t) : t === "true" ? !0 : t === "false" ? !1 : t;
26023
26028
  }
26024
26029
  function Qv(t, e) {
@@ -26029,7 +26034,7 @@ function Qv(t, e) {
26029
26034
  if (r === !1)
26030
26035
  return !1;
26031
26036
  const i = e.reduce((o, s) => {
26032
- const a = s.attribute.parseHTML ? s.attribute.parseHTML(n) : Z4(n.getAttribute(s.name));
26037
+ const a = s.attribute.parseHTML ? s.attribute.parseHTML(n) : J4(n.getAttribute(s.name));
26033
26038
  return a == null ? o : {
26034
26039
  ...o,
26035
26040
  [s.name]: a
@@ -26042,10 +26047,10 @@ function Qv(t, e) {
26042
26047
  function eb(t) {
26043
26048
  return Object.fromEntries(
26044
26049
  // @ts-ignore
26045
- Object.entries(t).filter(([e, n]) => e === "attrs" && Y4(n) ? !1 : n != null)
26050
+ Object.entries(t).filter(([e, n]) => e === "attrs" && Z4(n) ? !1 : n != null)
26046
26051
  );
26047
26052
  }
26048
- function J4(t, e) {
26053
+ function U4(t, e) {
26049
26054
  var n;
26050
26055
  const r = ow(t), { nodeExtensions: i, markExtensions: o } = xc(t), s = (n = i.find((c) => ce(c, "topNode"))) === null || n === void 0 ? void 0 : n.name, a = Object.fromEntries(i.map((c) => {
26051
26056
  const u = r.filter((v) => v.type === c.name), d = {
@@ -26133,7 +26138,7 @@ function sh(t, e) {
26133
26138
  const n = bi.fromSchema(e).serializeFragment(t), i = document.implementation.createHTMLDocument().createElement("div");
26134
26139
  return i.appendChild(n), i.innerHTML;
26135
26140
  }
26136
- const U4 = (t, e = 500) => {
26141
+ const K4 = (t, e = 500) => {
26137
26142
  let n = "";
26138
26143
  const r = t.parentOffset;
26139
26144
  return t.parent.nodesBetween(Math.max(0, r - e), r, (i, o, s, a) => {
@@ -26155,7 +26160,7 @@ class Cc {
26155
26160
  this.find = e.find, this.handler = e.handler;
26156
26161
  }
26157
26162
  }
26158
- const K4 = (t, e) => {
26163
+ const q4 = (t, e) => {
26159
26164
  if (ah(e))
26160
26165
  return e.exec(t);
26161
26166
  const n = e(t);
@@ -26176,11 +26181,11 @@ function Js(t) {
26176
26181
  )
26177
26182
  return !1;
26178
26183
  let u = !1;
26179
- const d = U4(c) + o;
26184
+ const d = K4(c) + o;
26180
26185
  return s.forEach((f) => {
26181
26186
  if (u)
26182
26187
  return;
26183
- const p = K4(d, f.find);
26188
+ const p = q4(d, f.find);
26184
26189
  if (!p)
26185
26190
  return;
26186
26191
  const h = l.state.tr, m = bc({
@@ -26208,7 +26213,7 @@ function Js(t) {
26208
26213
  }), l.dispatch(h), u = !0);
26209
26214
  }), u;
26210
26215
  }
26211
- function q4(t) {
26216
+ function Q4(t) {
26212
26217
  const { editor: e, rules: n } = t, r = new St({
26213
26218
  state: {
26214
26219
  init() {
@@ -26280,11 +26285,11 @@ function q4(t) {
26280
26285
  });
26281
26286
  return r;
26282
26287
  }
26283
- function Q4(t) {
26288
+ function eG(t) {
26284
26289
  return Object.prototype.toString.call(t).slice(8, -1);
26285
26290
  }
26286
26291
  function Us(t) {
26287
- return Q4(t) !== "Object" ? !1 : t.constructor === Object && Object.getPrototypeOf(t) === Object.prototype;
26292
+ return eG(t) !== "Object" ? !1 : t.constructor === Object && Object.getPrototypeOf(t) === Object.prototype;
26288
26293
  }
26289
26294
  function Sc(t, e) {
26290
26295
  const n = { ...t };
@@ -26338,15 +26343,15 @@ class pn {
26338
26343
  return !1;
26339
26344
  }
26340
26345
  }
26341
- function eG(t) {
26346
+ function tG(t) {
26342
26347
  return typeof t == "number";
26343
26348
  }
26344
- class tG {
26349
+ class nG {
26345
26350
  constructor(e) {
26346
26351
  this.find = e.find, this.handler = e.handler;
26347
26352
  }
26348
26353
  }
26349
- const nG = (t, e, n) => {
26354
+ const rG = (t, e, n) => {
26350
26355
  if (ah(e))
26351
26356
  return [...t.matchAll(e)];
26352
26357
  const r = e(t, n);
@@ -26355,7 +26360,7 @@ const nG = (t, e, n) => {
26355
26360
  return o.index = i.index, o.input = t, o.data = i.data, i.replaceWith && (i.text.includes(i.replaceWith) || console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'), o.push(i.replaceWith)), o;
26356
26361
  }) : [];
26357
26362
  };
26358
- function rG(t) {
26363
+ function iG(t) {
26359
26364
  const { editor: e, state: n, from: r, to: i, rule: o, pasteEvent: s, dropEvent: a } = t, { commands: l, chain: c, can: u } = new yc({
26360
26365
  editor: e,
26361
26366
  state: n
@@ -26364,7 +26369,7 @@ function rG(t) {
26364
26369
  if (!p.isTextblock || p.type.spec.code)
26365
26370
  return;
26366
26371
  const m = Math.max(r, h), g = Math.min(i, h + p.content.size), v = p.textBetween(m - h, g - h, void 0, "");
26367
- nG(v, o.find, s).forEach((C) => {
26372
+ rG(v, o.find, s).forEach((C) => {
26368
26373
  if (C.index === void 0)
26369
26374
  return;
26370
26375
  const S = m + C.index + 1, x = S + C[0].length, E = {
@@ -26384,14 +26389,14 @@ function rG(t) {
26384
26389
  });
26385
26390
  }), d.every((p) => p !== null);
26386
26391
  }
26387
- const iG = (t) => {
26392
+ const oG = (t) => {
26388
26393
  var e;
26389
26394
  const n = new ClipboardEvent("paste", {
26390
26395
  clipboardData: new DataTransfer()
26391
26396
  });
26392
26397
  return (e = n.clipboardData) === null || e === void 0 || e.setData("text/html", t), n;
26393
26398
  };
26394
- function oG(t) {
26399
+ function sG(t) {
26395
26400
  const { editor: e, rules: n } = t;
26396
26401
  let r = null, i = !1, o = !1, s = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, a;
26397
26402
  try {
@@ -26404,7 +26409,7 @@ function oG(t) {
26404
26409
  state: u,
26405
26410
  transaction: m
26406
26411
  });
26407
- if (!(!rG({
26412
+ if (!(!iG({
26408
26413
  editor: e,
26409
26414
  state: g,
26410
26415
  from: Math.max(d - 1, 0),
@@ -26451,7 +26456,7 @@ function oG(t) {
26451
26456
  if (y) {
26452
26457
  let { text: x } = v;
26453
26458
  typeof x == "string" ? x = x : x = sh(J.from(x), p.schema);
26454
- const { from: E } = v, T = E + x.length, A = iG(x);
26459
+ const { from: E } = v, T = E + x.length, A = oG(x);
26455
26460
  return l({
26456
26461
  rule: u,
26457
26462
  state: p,
@@ -26461,7 +26466,7 @@ function oG(t) {
26461
26466
  });
26462
26467
  }
26463
26468
  const C = f.doc.content.findDiffStart(p.doc.content), S = f.doc.content.findDiffEnd(p.doc.content);
26464
- if (!(!eG(C) || !S || C === S.b))
26469
+ if (!(!tG(C) || !S || C === S.b))
26465
26470
  return l({
26466
26471
  rule: u,
26467
26472
  state: p,
@@ -26472,13 +26477,13 @@ function oG(t) {
26472
26477
  }
26473
26478
  }));
26474
26479
  }
26475
- function sG(t) {
26480
+ function aG(t) {
26476
26481
  const e = t.filter((n, r) => t.indexOf(n) !== r);
26477
26482
  return Array.from(new Set(e));
26478
26483
  }
26479
26484
  class Vi {
26480
26485
  constructor(e, n) {
26481
- this.splittableMarks = [], this.editor = n, this.extensions = Vi.resolve(e), this.schema = J4(this.extensions, n), this.setupExtensions();
26486
+ this.splittableMarks = [], this.editor = n, this.extensions = Vi.resolve(e), this.schema = U4(this.extensions, n), this.setupExtensions();
26482
26487
  }
26483
26488
  /**
26484
26489
  * Returns a flattened and sorted extension list while
@@ -26487,7 +26492,7 @@ class Vi {
26487
26492
  * @returns An flattened and sorted array of Tiptap extensions
26488
26493
  */
26489
26494
  static resolve(e) {
26490
- const n = Vi.sort(Vi.flatten(e)), r = sG(n.map((i) => i.name));
26495
+ const n = Vi.sort(Vi.flatten(e)), r = aG(n.map((i) => i.name));
26491
26496
  return r.length && console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map((i) => `'${i}'`).join(", ")}]. This can lead to issues.`), n;
26492
26497
  }
26493
26498
  /**
@@ -26567,11 +26572,11 @@ class Vi {
26567
26572
  return l;
26568
26573
  }).flat();
26569
26574
  return [
26570
- q4({
26575
+ Q4({
26571
26576
  editor: e,
26572
26577
  rules: r
26573
26578
  }),
26574
- ...oG({
26579
+ ...sG({
26575
26580
  editor: e,
26576
26581
  rules: i
26577
26582
  }),
@@ -26698,7 +26703,7 @@ function aw(t, e, n) {
26698
26703
  function lw(t) {
26699
26704
  return Object.fromEntries(Object.entries(t.nodes).filter(([, e]) => e.spec.toText).map(([e, n]) => [e, n.spec.toText]));
26700
26705
  }
26701
- const aG = Ot.create({
26706
+ const lG = Ot.create({
26702
26707
  name: "clipboardTextSerializer",
26703
26708
  addOptions() {
26704
26709
  return {
@@ -26721,10 +26726,10 @@ const aG = Ot.create({
26721
26726
  })
26722
26727
  ];
26723
26728
  }
26724
- }), lG = () => ({ editor: t, view: e }) => (requestAnimationFrame(() => {
26729
+ }), cG = () => ({ editor: t, view: e }) => (requestAnimationFrame(() => {
26725
26730
  var n;
26726
26731
  t.isDestroyed || (e.dom.blur(), (n = window == null ? void 0 : window.getSelection()) === null || n === void 0 || n.removeAllRanges());
26727
- }), !0), cG = (t = !1) => ({ commands: e }) => e.setContent("", t), uG = () => ({ state: t, tr: e, dispatch: n }) => {
26732
+ }), !0), uG = (t = !1) => ({ commands: e }) => e.setContent("", t), dG = () => ({ state: t, tr: e, dispatch: n }) => {
26728
26733
  const { selection: r } = e, { ranges: i } = r;
26729
26734
  return n && i.forEach(({ $from: o, $to: s }) => {
26730
26735
  t.doc.nodesBetween(o.pos, s.pos, (a, l) => {
@@ -26741,12 +26746,12 @@ const aG = Ot.create({
26741
26746
  (h || h === 0) && e.lift(p, h);
26742
26747
  });
26743
26748
  }), !0;
26744
- }, dG = (t) => (e) => t(e), fG = () => ({ state: t, dispatch: e }) => D4(t, e), pG = (t, e) => ({ editor: n, tr: r }) => {
26749
+ }, fG = (t) => (e) => t(e), pG = () => ({ state: t, dispatch: e }) => D4(t, e), hG = (t, e) => ({ editor: n, tr: r }) => {
26745
26750
  const { state: i } = n, o = i.doc.slice(t.from, t.to);
26746
26751
  r.deleteRange(t.from, t.to);
26747
26752
  const s = r.mapping.map(e);
26748
26753
  return r.insert(s, o.content), r.setSelection(new Ce(r.doc.resolve(s - 1))), !0;
26749
- }, hG = () => ({ tr: t, dispatch: e }) => {
26754
+ }, mG = () => ({ tr: t, dispatch: e }) => {
26750
26755
  const { selection: n } = t, r = n.$anchor.node();
26751
26756
  if (r.content.size > 0)
26752
26757
  return !1;
@@ -26760,7 +26765,7 @@ const aG = Ot.create({
26760
26765
  return !0;
26761
26766
  }
26762
26767
  return !1;
26763
- }, mG = (t) => ({ tr: e, state: n, dispatch: r }) => {
26768
+ }, gG = (t) => ({ tr: e, state: n, dispatch: r }) => {
26764
26769
  const i = mt(t, n.schema), o = e.selection.$anchor;
26765
26770
  for (let s = o.depth; s > 0; s -= 1)
26766
26771
  if (o.node(s).type === i) {
@@ -26771,10 +26776,10 @@ const aG = Ot.create({
26771
26776
  return !0;
26772
26777
  }
26773
26778
  return !1;
26774
- }, gG = (t) => ({ tr: e, dispatch: n }) => {
26779
+ }, vG = (t) => ({ tr: e, dispatch: n }) => {
26775
26780
  const { from: r, to: i } = t;
26776
26781
  return n && e.delete(r, i), !0;
26777
- }, vG = () => ({ state: t, dispatch: e }) => C4(t, e), bG = () => ({ commands: t }) => t.keyboardShortcut("Enter"), yG = () => ({ state: t, dispatch: e }) => P4(t, e);
26782
+ }, bG = () => ({ state: t, dispatch: e }) => C4(t, e), yG = () => ({ commands: t }) => t.keyboardShortcut("Enter"), xG = () => ({ state: t, dispatch: e }) => P4(t, e);
26778
26783
  function tl(t, e, n = { strict: !0 }) {
26779
26784
  const r = Object.keys(e);
26780
26785
  return r.length ? r.every((i) => n.strict ? e[i] === t[i] : ah(e[i]) ? e[i].test(t[i]) : e[i] === t[i]) : !0;
@@ -26814,7 +26819,7 @@ function Rr(t, e) {
26814
26819
  }
26815
26820
  return t;
26816
26821
  }
26817
- const xG = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
26822
+ const CG = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
26818
26823
  const o = Rr(t, r.schema), { doc: s, selection: a } = n, { $from: l, from: c, to: u } = a;
26819
26824
  if (i) {
26820
26825
  const d = lh(l, o, e);
@@ -26824,7 +26829,7 @@ const xG = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
26824
26829
  }
26825
26830
  }
26826
26831
  return !0;
26827
- }, CG = (t) => (e) => {
26832
+ }, SG = (t) => (e) => {
26828
26833
  const n = typeof t == "function" ? t(e) : t;
26829
26834
  for (let r = 0; r < n.length; r += 1)
26830
26835
  if (n[r](e))
@@ -26858,7 +26863,7 @@ function ch() {
26858
26863
  "iPod"
26859
26864
  ].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document;
26860
26865
  }
26861
- const SG = (t = null, e = {}) => ({ editor: n, view: r, tr: i, dispatch: o }) => {
26866
+ const wG = (t = null, e = {}) => ({ editor: n, view: r, tr: i, dispatch: o }) => {
26862
26867
  e = {
26863
26868
  scrollIntoView: !0,
26864
26869
  ...e
@@ -26874,7 +26879,7 @@ const SG = (t = null, e = {}) => ({ editor: n, view: r, tr: i, dispatch: o }) =>
26874
26879
  return s(), !0;
26875
26880
  const a = dw(i.doc, t) || n.state.selection, l = n.state.selection.eq(a);
26876
26881
  return o && (l || i.setSelection(a), l && i.storedMarks && i.setStoredMarks(i.storedMarks), s()), !0;
26877
- }, wG = (t, e) => (n) => t.every((r, i) => e(r, { ...n, index: i })), IG = (t, e) => ({ tr: n, commands: r }) => r.insertContentAt({ from: n.selection.from, to: n.selection.to }, t, e), fw = (t) => {
26882
+ }, IG = (t, e) => (n) => t.every((r, i) => e(r, { ...n, index: i })), EG = (t, e) => ({ tr: n, commands: r }) => r.insertContentAt({ from: n.selection.from, to: n.selection.to }, t, e), fw = (t) => {
26878
26883
  const e = t.childNodes;
26879
26884
  for (let n = e.length - 1; n >= 0; n -= 1) {
26880
26885
  const r = e[n];
@@ -26935,7 +26940,7 @@ function nl(t, e, n) {
26935
26940
  }
26936
26941
  return nl("", e, n);
26937
26942
  }
26938
- function EG(t, e, n) {
26943
+ function AG(t, e, n) {
26939
26944
  const r = t.steps.length - 1;
26940
26945
  if (r < e)
26941
26946
  return;
@@ -26948,7 +26953,7 @@ function EG(t, e, n) {
26948
26953
  s === 0 && (s = u);
26949
26954
  }), t.setSelection(Ee.near(t.doc.resolve(s), n));
26950
26955
  }
26951
- const AG = (t) => !("type" in t), TG = (t, e, n) => ({ tr: r, dispatch: i, editor: o }) => {
26956
+ const TG = (t) => !("type" in t), kG = (t, e, n) => ({ tr: r, dispatch: i, editor: o }) => {
26952
26957
  var s;
26953
26958
  if (i) {
26954
26959
  n = {
@@ -26977,7 +26982,7 @@ const AG = (t) => !("type" in t), TG = (t, e, n) => ({ tr: r, dispatch: i, edito
26977
26982
  }), !1;
26978
26983
  }
26979
26984
  let { from: l, to: c } = typeof t == "number" ? { from: t, to: t } : { from: t.from, to: t.to }, u = !0, d = !0;
26980
- if ((AG(a) ? a : [a]).forEach((h) => {
26985
+ if ((TG(a) ? a : [a]).forEach((h) => {
26981
26986
  h.check(), u = u ? h.isText && h.marks.length === 0 : !1, d = d ? h.isBlock : !1;
26982
26987
  }), l === c && d) {
26983
26988
  const { parent: h } = r.doc.resolve(l);
@@ -26996,28 +27001,28 @@ const AG = (t) => !("type" in t), TG = (t, e, n) => ({ tr: r, dispatch: i, edito
26996
27001
  r.insertText(p, l, c);
26997
27002
  } else
26998
27003
  p = a, r.replaceWith(l, c, p);
26999
- n.updateSelection && EG(r, r.steps.length - 1, -1), n.applyInputRules && r.setMeta("applyInputRules", { from: l, text: p }), n.applyPasteRules && r.setMeta("applyPasteRules", { from: l, text: p });
27004
+ n.updateSelection && AG(r, r.steps.length - 1, -1), n.applyInputRules && r.setMeta("applyInputRules", { from: l, text: p }), n.applyPasteRules && r.setMeta("applyPasteRules", { from: l, text: p });
27000
27005
  }
27001
27006
  return !0;
27002
- }, kG = () => ({ state: t, dispatch: e }) => k4(t, e), MG = () => ({ state: t, dispatch: e }) => M4(t, e), OG = () => ({ state: t, dispatch: e }) => S4(t, e), RG = () => ({ state: t, dispatch: e }) => A4(t, e), PG = () => ({ state: t, dispatch: e, tr: n }) => {
27007
+ }, MG = () => ({ state: t, dispatch: e }) => k4(t, e), OG = () => ({ state: t, dispatch: e }) => M4(t, e), RG = () => ({ state: t, dispatch: e }) => S4(t, e), PG = () => ({ state: t, dispatch: e }) => A4(t, e), DG = () => ({ state: t, dispatch: e, tr: n }) => {
27003
27008
  try {
27004
27009
  const r = fc(t.doc, t.selection.$from.pos, -1);
27005
27010
  return r == null ? !1 : (n.join(r, 2), e && e(n), !0);
27006
27011
  } catch {
27007
27012
  return !1;
27008
27013
  }
27009
- }, DG = () => ({ state: t, dispatch: e, tr: n }) => {
27014
+ }, NG = () => ({ state: t, dispatch: e, tr: n }) => {
27010
27015
  try {
27011
27016
  const r = fc(t.doc, t.selection.$from.pos, 1);
27012
27017
  return r == null ? !1 : (n.join(r, 2), e && e(n), !0);
27013
27018
  } catch {
27014
27019
  return !1;
27015
27020
  }
27016
- }, NG = () => ({ state: t, dispatch: e }) => w4(t, e), FG = () => ({ state: t, dispatch: e }) => I4(t, e);
27021
+ }, FG = () => ({ state: t, dispatch: e }) => w4(t, e), VG = () => ({ state: t, dispatch: e }) => I4(t, e);
27017
27022
  function pw() {
27018
27023
  return typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1;
27019
27024
  }
27020
- function VG(t) {
27025
+ function BG(t) {
27021
27026
  const e = t.split(/-(?!$)/);
27022
27027
  let n = e[e.length - 1];
27023
27028
  n === "Space" && (n = " ");
@@ -27039,8 +27044,8 @@ function VG(t) {
27039
27044
  }
27040
27045
  return r && (n = `Alt-${n}`), i && (n = `Ctrl-${n}`), s && (n = `Meta-${n}`), o && (n = `Shift-${n}`), n;
27041
27046
  }
27042
- const BG = (t) => ({ editor: e, view: n, tr: r, dispatch: i }) => {
27043
- const o = VG(t).split(/-(?!$)/), s = o.find((c) => !["Alt", "Ctrl", "Meta", "Shift"].includes(c)), a = new KeyboardEvent("keydown", {
27047
+ const LG = (t) => ({ editor: e, view: n, tr: r, dispatch: i }) => {
27048
+ const o = BG(t).split(/-(?!$)/), s = o.find((c) => !["Alt", "Ctrl", "Meta", "Shift"].includes(c)), a = new KeyboardEvent("keydown", {
27044
27049
  key: s === "Space" ? " " : s,
27045
27050
  altKey: o.includes("Alt"),
27046
27051
  ctrlKey: o.includes("Ctrl"),
@@ -27071,13 +27076,13 @@ function cs(t, e, n = {}) {
27071
27076
  const l = i - r, c = a.filter((d) => s ? s.name === d.node.type.name : !0).filter((d) => tl(d.node.attrs, n, { strict: !1 }));
27072
27077
  return o ? !!c.length : c.reduce((d, f) => d + f.to - f.from, 0) >= l;
27073
27078
  }
27074
- const LG = (t, e = {}) => ({ state: n, dispatch: r }) => {
27079
+ const jG = (t, e = {}) => ({ state: n, dispatch: r }) => {
27075
27080
  const i = mt(t, n.schema);
27076
27081
  return cs(n, i, e) ? O4(n, r) : !1;
27077
- }, jG = () => ({ state: t, dispatch: e }) => N4(t, e), GG = (t) => ({ state: e, dispatch: n }) => {
27082
+ }, GG = () => ({ state: t, dispatch: e }) => N4(t, e), zG = (t) => ({ state: e, dispatch: n }) => {
27078
27083
  const r = mt(t, e.schema);
27079
- return _4(r)(e, n);
27080
- }, zG = () => ({ state: t, dispatch: e }) => R4(t, e);
27084
+ return H4(r)(e, n);
27085
+ }, _G = () => ({ state: t, dispatch: e }) => R4(t, e);
27081
27086
  function wc(t, e) {
27082
27087
  return e.nodes[t] ? "node" : e.marks[t] ? "mark" : null;
27083
27088
  }
@@ -27085,7 +27090,7 @@ function rb(t, e) {
27085
27090
  const n = typeof e == "string" ? [e] : e;
27086
27091
  return Object.keys(t).reduce((r, i) => (n.includes(i) || (r[i] = t[i]), r), {});
27087
27092
  }
27088
- const _G = (t, e) => ({ tr: n, state: r, dispatch: i }) => {
27093
+ const HG = (t, e) => ({ tr: n, state: r, dispatch: i }) => {
27089
27094
  let o = null, s = null;
27090
27095
  const a = wc(typeof t == "string" ? t : t.name, r.schema);
27091
27096
  return a ? (a === "node" && (o = mt(t, r.schema)), a === "mark" && (s = Rr(t, r.schema)), i && n.selection.ranges.forEach((l) => {
@@ -27095,10 +27100,10 @@ const _G = (t, e) => ({ tr: n, state: r, dispatch: i }) => {
27095
27100
  });
27096
27101
  });
27097
27102
  }), !0) : !1;
27098
- }, HG = () => ({ tr: t, dispatch: e }) => (e && t.scrollIntoView(), !0), $G = () => ({ tr: t, commands: e }) => e.setTextSelection({
27103
+ }, $G = () => ({ tr: t, dispatch: e }) => (e && t.scrollIntoView(), !0), WG = () => ({ tr: t, commands: e }) => e.setTextSelection({
27099
27104
  from: 0,
27100
27105
  to: t.doc.content.size
27101
- }), WG = () => ({ state: t, dispatch: e }) => E4(t, e), XG = () => ({ state: t, dispatch: e }) => T4(t, e), YG = () => ({ state: t, dispatch: e }) => F4(t, e), ZG = () => ({ state: t, dispatch: e }) => L4(t, e), JG = () => ({ state: t, dispatch: e }) => B4(t, e);
27106
+ }), XG = () => ({ state: t, dispatch: e }) => E4(t, e), YG = () => ({ state: t, dispatch: e }) => T4(t, e), ZG = () => ({ state: t, dispatch: e }) => F4(t, e), JG = () => ({ state: t, dispatch: e }) => L4(t, e), UG = () => ({ state: t, dispatch: e }) => B4(t, e);
27102
27107
  function nf(t, e, n = {}, r = {}) {
27103
27108
  return nl(t, e, {
27104
27109
  slice: !1,
@@ -27106,7 +27111,7 @@ function nf(t, e, n = {}, r = {}) {
27106
27111
  errorOnInvalidContent: r.errorOnInvalidContent
27107
27112
  });
27108
27113
  }
27109
- const UG = (t, e = !1, n = {}, r = {}) => ({ editor: i, tr: o, dispatch: s, commands: a }) => {
27114
+ const KG = (t, e = !1, n = {}, r = {}) => ({ editor: i, tr: o, dispatch: s, commands: a }) => {
27110
27115
  var l, c;
27111
27116
  const { doc: u } = o;
27112
27117
  if (n.preserveWhitespace !== "full") {
@@ -27128,7 +27133,7 @@ function uh(t, e) {
27128
27133
  const a = s.find((l) => l.type.name === n.name);
27129
27134
  return a ? { ...a.attrs } : {};
27130
27135
  }
27131
- function KG(t, e) {
27136
+ function qG(t, e) {
27132
27137
  const n = new mS(t);
27133
27138
  return e.forEach((r) => {
27134
27139
  r.steps.forEach((i) => {
@@ -27136,7 +27141,7 @@ function KG(t, e) {
27136
27141
  });
27137
27142
  }), n;
27138
27143
  }
27139
- function qG(t) {
27144
+ function QG(t) {
27140
27145
  for (let e = 0; e < t.edgeCount; e += 1) {
27141
27146
  const { type: n } = t.edge(e);
27142
27147
  if (n.isTextblock && !n.hasRequiredAttrs())
@@ -27144,7 +27149,7 @@ function qG(t) {
27144
27149
  }
27145
27150
  return null;
27146
27151
  }
27147
- function QG(t, e, n) {
27152
+ function ez(t, e, n) {
27148
27153
  const r = [];
27149
27154
  return t.nodesBetween(e.from, e.to, (i, o) => {
27150
27155
  n(i) && r.push({
@@ -27153,7 +27158,7 @@ function QG(t, e, n) {
27153
27158
  });
27154
27159
  }), r;
27155
27160
  }
27156
- function ez(t, e) {
27161
+ function tz(t, e) {
27157
27162
  for (let n = t.depth; n > 0; n -= 1) {
27158
27163
  const r = t.node(n);
27159
27164
  if (e(r))
@@ -27166,16 +27171,16 @@ function ez(t, e) {
27166
27171
  }
27167
27172
  }
27168
27173
  function dh(t) {
27169
- return (e) => ez(e.$from, t);
27174
+ return (e) => tz(e.$from, t);
27170
27175
  }
27171
- function tz(t, e) {
27176
+ function nz(t, e) {
27172
27177
  const n = {
27173
27178
  from: 0,
27174
27179
  to: t.content.size
27175
27180
  };
27176
27181
  return aw(t, n, e);
27177
27182
  }
27178
- function nz(t, e) {
27183
+ function rz(t, e) {
27179
27184
  const n = mt(e, t.schema), { from: r, to: i } = t.selection, o = [];
27180
27185
  t.doc.nodesBetween(r, i, (a) => {
27181
27186
  o.push(a);
@@ -27185,20 +27190,20 @@ function nz(t, e) {
27185
27190
  }
27186
27191
  function hw(t, e) {
27187
27192
  const n = wc(typeof e == "string" ? e : e.name, t.schema);
27188
- return n === "node" ? nz(t, e) : n === "mark" ? uh(t, e) : {};
27193
+ return n === "node" ? rz(t, e) : n === "mark" ? uh(t, e) : {};
27189
27194
  }
27190
- function rz(t, e = JSON.stringify) {
27195
+ function iz(t, e = JSON.stringify) {
27191
27196
  const n = {};
27192
27197
  return t.filter((r) => {
27193
27198
  const i = e(r);
27194
27199
  return Object.prototype.hasOwnProperty.call(n, i) ? !1 : n[i] = !0;
27195
27200
  });
27196
27201
  }
27197
- function iz(t) {
27198
- const e = rz(t);
27202
+ function oz(t) {
27203
+ const e = iz(t);
27199
27204
  return e.length === 1 ? e : e.filter((n, r) => !e.filter((o, s) => s !== r).some((o) => n.oldRange.from >= o.oldRange.from && n.oldRange.to <= o.oldRange.to && n.newRange.from >= o.newRange.from && n.newRange.to <= o.newRange.to));
27200
27205
  }
27201
- function oz(t) {
27206
+ function sz(t) {
27202
27207
  const { mapping: e, steps: n } = t, r = [];
27203
27208
  return e.maps.forEach((i, o) => {
27204
27209
  const s = [];
@@ -27225,7 +27230,7 @@ function oz(t) {
27225
27230
  }
27226
27231
  });
27227
27232
  });
27228
- }), iz(r);
27233
+ }), oz(r);
27229
27234
  }
27230
27235
  function fh(t, e, n) {
27231
27236
  const r = [];
@@ -27272,7 +27277,7 @@ function rf(t, e, n = {}) {
27272
27277
  const l = a.filter((d) => o ? o.name === d.mark.type.name : !0).filter((d) => tl(d.mark.attrs, n, { strict: !1 })).reduce((d, f) => d + f.to - f.from, 0), c = a.filter((d) => o ? d.mark.type !== o && d.mark.type.excludes(o) : !0).reduce((d, f) => d + f.to - f.from, 0);
27273
27278
  return (l > 0 ? l + c : l) >= s;
27274
27279
  }
27275
- function sz(t, e, n = {}) {
27280
+ function az(t, e, n = {}) {
27276
27281
  if (!e)
27277
27282
  return cs(t, null, n) || rf(t, null, n);
27278
27283
  const r = wc(e, t.schema);
@@ -27311,10 +27316,10 @@ function ph(t, { checkChildren: e = !0, ignoreWhitespace: n = !1 } = {}) {
27311
27316
  }
27312
27317
  return !1;
27313
27318
  }
27314
- function az(t) {
27319
+ function lz(t) {
27315
27320
  return t instanceof ge;
27316
27321
  }
27317
- function lz(t, e, n) {
27322
+ function cz(t, e, n) {
27318
27323
  var r;
27319
27324
  const { selection: i } = e;
27320
27325
  let o = null;
@@ -27336,7 +27341,7 @@ function lz(t, e, n) {
27336
27341
  }), c;
27337
27342
  });
27338
27343
  }
27339
- const cz = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
27344
+ const uz = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
27340
27345
  const { selection: o } = n, { empty: s, ranges: a } = o, l = Rr(t, r.schema);
27341
27346
  if (i)
27342
27347
  if (s) {
@@ -27358,26 +27363,26 @@ const cz = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
27358
27363
  }) : n.addMark(h, m, l.create(e));
27359
27364
  });
27360
27365
  });
27361
- return lz(r, n, l);
27362
- }, uz = (t, e) => ({ tr: n }) => (n.setMeta(t, e), !0), dz = (t, e = {}) => ({ state: n, dispatch: r, chain: i }) => {
27366
+ return cz(r, n, l);
27367
+ }, dz = (t, e) => ({ tr: n }) => (n.setMeta(t, e), !0), fz = (t, e = {}) => ({ state: n, dispatch: r, chain: i }) => {
27363
27368
  const o = mt(t, n.schema);
27364
27369
  let s;
27365
27370
  return n.selection.$anchor.sameParent(n.selection.$head) && (s = n.selection.$anchor.parent.attrs), o.isTextblock ? i().command(({ commands: a }) => qv(o, { ...s, ...e })(n) ? !0 : a.clearNodes()).command(({ state: a }) => qv(o, { ...s, ...e })(a, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
27366
- }, fz = (t) => ({ tr: e, dispatch: n }) => {
27371
+ }, pz = (t) => ({ tr: e, dispatch: n }) => {
27367
27372
  if (n) {
27368
27373
  const { doc: r } = e, i = Jr(t, 0, r.content.size), o = ge.create(r, i);
27369
27374
  e.setSelection(o);
27370
27375
  }
27371
27376
  return !0;
27372
- }, pz = (t) => ({ tr: e, dispatch: n }) => {
27377
+ }, hz = (t) => ({ tr: e, dispatch: n }) => {
27373
27378
  if (n) {
27374
27379
  const { doc: r } = e, { from: i, to: o } = typeof t == "number" ? { from: t, to: t } : t, s = Ce.atStart(r).from, a = Ce.atEnd(r).to, l = Jr(i, s, a), c = Jr(o, s, a), u = Ce.create(r, l, c);
27375
27380
  e.setSelection(u);
27376
27381
  }
27377
27382
  return !0;
27378
- }, hz = (t) => ({ state: e, dispatch: n }) => {
27383
+ }, mz = (t) => ({ state: e, dispatch: n }) => {
27379
27384
  const r = mt(t, e.schema);
27380
- return W4(r)(e, n);
27385
+ return X4(r)(e, n);
27381
27386
  };
27382
27387
  function ob(t, e) {
27383
27388
  const n = t.storedMarks || t.selection.$to.parentOffset && t.selection.$from.marks();
@@ -27386,13 +27391,13 @@ function ob(t, e) {
27386
27391
  t.tr.ensureMarks(r);
27387
27392
  }
27388
27393
  }
27389
- const mz = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor: i }) => {
27394
+ const gz = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor: i }) => {
27390
27395
  const { selection: o, doc: s } = e, { $from: a, $to: l } = o, c = i.extensionManager.attributes, u = va(c, a.node().type.name, a.node().attrs);
27391
27396
  if (o instanceof ge && o.node.isBlock)
27392
27397
  return !a.parentOffset || !ji(s, a.pos) ? !1 : (r && (t && ob(n, i.extensionManager.splittableMarks), e.split(a.pos).scrollIntoView()), !0);
27393
27398
  if (!a.parent.isBlock)
27394
27399
  return !1;
27395
- const d = l.parentOffset === l.parent.content.size, f = a.depth === 0 ? void 0 : qG(a.node(-1).contentMatchAt(a.indexAfter(-1)));
27400
+ const d = l.parentOffset === l.parent.content.size, f = a.depth === 0 ? void 0 : QG(a.node(-1).contentMatchAt(a.indexAfter(-1)));
27396
27401
  let p = d && f ? [
27397
27402
  {
27398
27403
  type: f,
@@ -27412,7 +27417,7 @@ const mz = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
27412
27417
  t && ob(n, i.extensionManager.splittableMarks), e.scrollIntoView();
27413
27418
  }
27414
27419
  return h;
27415
- }, gz = (t, e = {}) => ({ tr: n, state: r, dispatch: i, editor: o }) => {
27420
+ }, vz = (t, e = {}) => ({ tr: n, state: r, dispatch: i, editor: o }) => {
27416
27421
  var s;
27417
27422
  const a = mt(t, r.schema), { $from: l, $to: c } = r.selection, u = r.selection.node;
27418
27423
  if (u && u.isBlock || l.depth < 2 || !l.sameParent(c))
@@ -27485,7 +27490,7 @@ const mz = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
27485
27490
  return !0;
27486
27491
  const i = t.doc.nodeAt(r);
27487
27492
  return n.node.type === (i == null ? void 0 : i.type) && Mr(t.doc, r) && t.join(r), !0;
27488
- }, vz = (t, e, n, r = {}) => ({ editor: i, tr: o, state: s, dispatch: a, chain: l, commands: c, can: u }) => {
27493
+ }, bz = (t, e, n, r = {}) => ({ editor: i, tr: o, state: s, dispatch: a, chain: l, commands: c, can: u }) => {
27489
27494
  const { extensions: d, splittableMarks: f } = i.extensionManager, p = mt(t, s.schema), h = mt(e, s.schema), { selection: m, storedMarks: g } = s, { $from: v, $to: y } = m, C = v.blockRange(y), S = g || m.$to.parentOffset && m.$from.marks();
27490
27495
  if (!C)
27491
27496
  return !1;
@@ -27500,17 +27505,17 @@ const mz = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
27500
27505
  const E = u().wrapInList(p, r), T = S.filter((A) => f.includes(A.type.name));
27501
27506
  return o.ensureMarks(T), E ? !0 : c.clearNodes();
27502
27507
  }).wrapInList(p, r).command(() => Eu(o, p)).command(() => Au(o, p)).run();
27503
- }, bz = (t, e = {}, n = {}) => ({ state: r, commands: i }) => {
27508
+ }, yz = (t, e = {}, n = {}) => ({ state: r, commands: i }) => {
27504
27509
  const { extendEmptyMarkRange: o = !1 } = n, s = Rr(t, r.schema);
27505
27510
  return rf(r, s, e) ? i.unsetMark(s, { extendEmptyMarkRange: o }) : i.setMark(s, e);
27506
- }, yz = (t, e, n = {}) => ({ state: r, commands: i }) => {
27511
+ }, xz = (t, e, n = {}) => ({ state: r, commands: i }) => {
27507
27512
  const o = mt(t, r.schema), s = mt(e, r.schema), a = cs(r, o, n);
27508
27513
  let l;
27509
27514
  return r.selection.$anchor.sameParent(r.selection.$head) && (l = r.selection.$anchor.parent.attrs), a ? i.setNode(s, l) : i.setNode(o, { ...l, ...n });
27510
- }, xz = (t, e = {}) => ({ state: n, commands: r }) => {
27515
+ }, Cz = (t, e = {}) => ({ state: n, commands: r }) => {
27511
27516
  const i = mt(t, n.schema);
27512
27517
  return cs(n, i, e) ? r.lift(i) : r.wrapIn(i, e);
27513
- }, Cz = () => ({ state: t, dispatch: e }) => {
27518
+ }, Sz = () => ({ state: t, dispatch: e }) => {
27514
27519
  const n = t.plugins;
27515
27520
  for (let r = 0; r < n.length; r += 1) {
27516
27521
  const i = n[r];
@@ -27530,12 +27535,12 @@ const mz = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
27530
27535
  }
27531
27536
  }
27532
27537
  return !1;
27533
- }, Sz = () => ({ tr: t, dispatch: e }) => {
27538
+ }, wz = () => ({ tr: t, dispatch: e }) => {
27534
27539
  const { selection: n } = t, { empty: r, ranges: i } = n;
27535
27540
  return r || e && i.forEach((o) => {
27536
27541
  t.removeMark(o.$from.pos, o.$to.pos);
27537
27542
  }), !0;
27538
- }, wz = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
27543
+ }, Iz = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
27539
27544
  var o;
27540
27545
  const { extendEmptyMarkRange: s = !1 } = e, { selection: a } = n, l = Rr(t, r.schema), { $from: c, empty: u, ranges: d } = a;
27541
27546
  if (!i)
@@ -27549,7 +27554,7 @@ const mz = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
27549
27554
  n.removeMark(f.$from.pos, f.$to.pos, l);
27550
27555
  });
27551
27556
  return n.removeStoredMark(l), !0;
27552
- }, Iz = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
27557
+ }, Ez = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
27553
27558
  let o = null, s = null;
27554
27559
  const a = wc(typeof t == "string" ? t : t.name, r.schema);
27555
27560
  return a ? (a === "node" && (o = mt(t, r.schema)), a === "mark" && (s = Rr(t, r.schema)), i && n.selection.ranges.forEach((l) => {
@@ -27580,82 +27585,82 @@ const mz = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
27580
27585
  }));
27581
27586
  }));
27582
27587
  }), !0) : !1;
27583
- }, Ez = (t, e = {}) => ({ state: n, dispatch: r }) => {
27588
+ }, Az = (t, e = {}) => ({ state: n, dispatch: r }) => {
27584
27589
  const i = mt(t, n.schema);
27585
27590
  return j4(i, e)(n, r);
27586
- }, Az = (t, e = {}) => ({ state: n, dispatch: r }) => {
27591
+ }, Tz = (t, e = {}) => ({ state: n, dispatch: r }) => {
27587
27592
  const i = mt(t, n.schema);
27588
27593
  return G4(i, e)(n, r);
27589
27594
  };
27590
- var Tz = /* @__PURE__ */ Object.freeze({
27595
+ var kz = /* @__PURE__ */ Object.freeze({
27591
27596
  __proto__: null,
27592
- blur: lG,
27593
- clearContent: cG,
27594
- clearNodes: uG,
27595
- command: dG,
27596
- createParagraphNear: fG,
27597
- cut: pG,
27598
- deleteCurrentNode: hG,
27599
- deleteNode: mG,
27600
- deleteRange: gG,
27601
- deleteSelection: vG,
27602
- enter: bG,
27603
- exitCode: yG,
27604
- extendMarkRange: xG,
27605
- first: CG,
27606
- focus: SG,
27607
- forEach: wG,
27608
- insertContent: IG,
27609
- insertContentAt: TG,
27610
- joinBackward: OG,
27611
- joinDown: MG,
27612
- joinForward: RG,
27613
- joinItemBackward: PG,
27614
- joinItemForward: DG,
27615
- joinTextblockBackward: NG,
27616
- joinTextblockForward: FG,
27617
- joinUp: kG,
27618
- keyboardShortcut: BG,
27619
- lift: LG,
27620
- liftEmptyBlock: jG,
27621
- liftListItem: GG,
27622
- newlineInCode: zG,
27623
- resetAttributes: _G,
27624
- scrollIntoView: HG,
27625
- selectAll: $G,
27626
- selectNodeBackward: WG,
27627
- selectNodeForward: XG,
27628
- selectParentNode: YG,
27629
- selectTextblockEnd: ZG,
27630
- selectTextblockStart: JG,
27631
- setContent: UG,
27632
- setMark: cz,
27633
- setMeta: uz,
27634
- setNode: dz,
27635
- setNodeSelection: fz,
27636
- setTextSelection: pz,
27637
- sinkListItem: hz,
27638
- splitBlock: mz,
27639
- splitListItem: gz,
27640
- toggleList: vz,
27641
- toggleMark: bz,
27642
- toggleNode: yz,
27643
- toggleWrap: xz,
27644
- undoInputRule: Cz,
27645
- unsetAllMarks: Sz,
27646
- unsetMark: wz,
27647
- updateAttributes: Iz,
27648
- wrapIn: Ez,
27649
- wrapInList: Az
27597
+ blur: cG,
27598
+ clearContent: uG,
27599
+ clearNodes: dG,
27600
+ command: fG,
27601
+ createParagraphNear: pG,
27602
+ cut: hG,
27603
+ deleteCurrentNode: mG,
27604
+ deleteNode: gG,
27605
+ deleteRange: vG,
27606
+ deleteSelection: bG,
27607
+ enter: yG,
27608
+ exitCode: xG,
27609
+ extendMarkRange: CG,
27610
+ first: SG,
27611
+ focus: wG,
27612
+ forEach: IG,
27613
+ insertContent: EG,
27614
+ insertContentAt: kG,
27615
+ joinBackward: RG,
27616
+ joinDown: OG,
27617
+ joinForward: PG,
27618
+ joinItemBackward: DG,
27619
+ joinItemForward: NG,
27620
+ joinTextblockBackward: FG,
27621
+ joinTextblockForward: VG,
27622
+ joinUp: MG,
27623
+ keyboardShortcut: LG,
27624
+ lift: jG,
27625
+ liftEmptyBlock: GG,
27626
+ liftListItem: zG,
27627
+ newlineInCode: _G,
27628
+ resetAttributes: HG,
27629
+ scrollIntoView: $G,
27630
+ selectAll: WG,
27631
+ selectNodeBackward: XG,
27632
+ selectNodeForward: YG,
27633
+ selectParentNode: ZG,
27634
+ selectTextblockEnd: JG,
27635
+ selectTextblockStart: UG,
27636
+ setContent: KG,
27637
+ setMark: uz,
27638
+ setMeta: dz,
27639
+ setNode: fz,
27640
+ setNodeSelection: pz,
27641
+ setTextSelection: hz,
27642
+ sinkListItem: mz,
27643
+ splitBlock: gz,
27644
+ splitListItem: vz,
27645
+ toggleList: bz,
27646
+ toggleMark: yz,
27647
+ toggleNode: xz,
27648
+ toggleWrap: Cz,
27649
+ undoInputRule: Sz,
27650
+ unsetAllMarks: wz,
27651
+ unsetMark: Iz,
27652
+ updateAttributes: Ez,
27653
+ wrapIn: Az,
27654
+ wrapInList: Tz
27650
27655
  });
27651
- const kz = Ot.create({
27656
+ const Mz = Ot.create({
27652
27657
  name: "commands",
27653
27658
  addCommands() {
27654
27659
  return {
27655
- ...Tz
27660
+ ...kz
27656
27661
  };
27657
27662
  }
27658
- }), Mz = Ot.create({
27663
+ }), Oz = Ot.create({
27659
27664
  name: "drop",
27660
27665
  addProseMirrorPlugins() {
27661
27666
  return [
@@ -27674,7 +27679,7 @@ const kz = Ot.create({
27674
27679
  })
27675
27680
  ];
27676
27681
  }
27677
- }), Oz = Ot.create({
27682
+ }), Rz = Ot.create({
27678
27683
  name: "editable",
27679
27684
  addProseMirrorPlugins() {
27680
27685
  return [
@@ -27686,7 +27691,7 @@ const kz = Ot.create({
27686
27691
  })
27687
27692
  ];
27688
27693
  }
27689
- }), Rz = Ot.create({
27694
+ }), Pz = Ot.create({
27690
27695
  name: "focusEvents",
27691
27696
  addProseMirrorPlugins() {
27692
27697
  const { editor: t } = this;
@@ -27710,7 +27715,7 @@ const kz = Ot.create({
27710
27715
  })
27711
27716
  ];
27712
27717
  }
27713
- }), Pz = Ot.create({
27718
+ }), Dz = Ot.create({
27714
27719
  name: "keymap",
27715
27720
  addKeyboardShortcuts() {
27716
27721
  const t = () => this.editor.commands.first(({ commands: s }) => [
@@ -27786,7 +27791,7 @@ const kz = Ot.create({
27786
27791
  })
27787
27792
  ];
27788
27793
  }
27789
- }), Dz = Ot.create({
27794
+ }), Nz = Ot.create({
27790
27795
  name: "paste",
27791
27796
  addProseMirrorPlugins() {
27792
27797
  return [
@@ -27804,7 +27809,7 @@ const kz = Ot.create({
27804
27809
  })
27805
27810
  ];
27806
27811
  }
27807
- }), Nz = Ot.create({
27812
+ }), Fz = Ot.create({
27808
27813
  name: "tabindex",
27809
27814
  addProseMirrorPlugins() {
27810
27815
  return [
@@ -27940,7 +27945,7 @@ class Gr {
27940
27945
  }), this.editor.view.dispatch(n);
27941
27946
  }
27942
27947
  }
27943
- const Fz = `.ProseMirror {
27948
+ const Vz = `.ProseMirror {
27944
27949
  position: relative;
27945
27950
  }
27946
27951
 
@@ -28015,14 +28020,14 @@ img.ProseMirror-separator {
28015
28020
  .tippy-box[data-animation=fade][data-state=hidden] {
28016
28021
  opacity: 0
28017
28022
  }`;
28018
- function Vz(t, e, n) {
28023
+ function Bz(t, e, n) {
28019
28024
  const r = document.querySelector("style[data-tiptap-style]");
28020
28025
  if (r !== null)
28021
28026
  return r;
28022
28027
  const i = document.createElement("style");
28023
28028
  return e && i.setAttribute("nonce", e), i.setAttribute("data-tiptap-style", ""), i.innerHTML = t, document.getElementsByTagName("head")[0].appendChild(i), i;
28024
28029
  }
28025
- let Bz = class extends X4 {
28030
+ let Lz = class extends Y4 {
28026
28031
  constructor(e = {}) {
28027
28032
  super(), this.isFocused = !1, this.isInitialized = !1, this.extensionStorage = {}, this.options = {
28028
28033
  element: document.createElement("div"),
@@ -28084,7 +28089,7 @@ let Bz = class extends X4 {
28084
28089
  * Inject CSS styles.
28085
28090
  */
28086
28091
  injectCSS() {
28087
- this.options.injectCSS && document && (this.css = Vz(Fz, this.options.injectNonce));
28092
+ this.options.injectCSS && document && (this.css = Bz(Vz, this.options.injectNonce));
28088
28093
  }
28089
28094
  /**
28090
28095
  * Update editor options.
@@ -28153,16 +28158,16 @@ let Bz = class extends X4 {
28153
28158
  createExtensionManager() {
28154
28159
  var e, n;
28155
28160
  const i = [...this.options.enableCoreExtensions ? [
28156
- Oz,
28157
- aG.configure({
28161
+ Rz,
28162
+ lG.configure({
28158
28163
  blockSeparator: (n = (e = this.options.coreExtensionOptions) === null || e === void 0 ? void 0 : e.clipboardTextSerializer) === null || n === void 0 ? void 0 : n.blockSeparator
28159
28164
  }),
28160
- kz,
28161
- Rz,
28162
- Pz,
28163
- Nz,
28164
28165
  Mz,
28165
- Dz
28166
+ Pz,
28167
+ Dz,
28168
+ Fz,
28169
+ Oz,
28170
+ Nz
28166
28171
  ].filter((o) => typeof this.options.enableCoreExtensions == "object" ? this.options.enableCoreExtensions[o.name] !== !1 : !0) : [], ...this.options.extensions].filter((o) => ["extension", "node", "mark"].includes(o == null ? void 0 : o.type));
28167
28172
  this.extensionManager = new Vi(i, this);
28168
28173
  }
@@ -28292,7 +28297,7 @@ let Bz = class extends X4 {
28292
28297
  }
28293
28298
  isActive(e, n) {
28294
28299
  const r = typeof e == "string" ? e : null, i = typeof e == "string" ? n : e;
28295
- return sz(this.state, r, i);
28300
+ return az(this.state, r, i);
28296
28301
  }
28297
28302
  /**
28298
28303
  * Get the document as JSON.
@@ -28313,7 +28318,7 @@ let Bz = class extends X4 {
28313
28318
  const { blockSeparator: n = `
28314
28319
 
28315
28320
  `, textSerializers: r = {} } = e || {};
28316
- return tz(this.state.doc, {
28321
+ return nz(this.state.doc, {
28317
28322
  blockSeparator: n,
28318
28323
  textSerializers: {
28319
28324
  ...lw(this.schema),
@@ -28387,7 +28392,7 @@ function Ki(t) {
28387
28392
  }
28388
28393
  });
28389
28394
  }
28390
- function Lz(t) {
28395
+ function jz(t) {
28391
28396
  return new Cc({
28392
28397
  find: t.find,
28393
28398
  handler: ({ state: e, range: n, match: r }) => {
@@ -28478,7 +28483,7 @@ let vn = class sf {
28478
28483
  }
28479
28484
  };
28480
28485
  function di(t) {
28481
- return new tG({
28486
+ return new nG({
28482
28487
  find: t.find,
28483
28488
  handler: ({ state: e, range: n, match: r, pasteEvent: i }) => {
28484
28489
  const o = Te(t.getAttributes, void 0, r, i);
@@ -28495,7 +28500,7 @@ function di(t) {
28495
28500
  }
28496
28501
  });
28497
28502
  }
28498
- function jz(t) {
28503
+ function Gz(t) {
28499
28504
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
28500
28505
  }
28501
28506
  var af = { exports: {} }, Tu = {};
@@ -28509,7 +28514,7 @@ var af = { exports: {} }, Tu = {};
28509
28514
  * LICENSE file in the root directory of this source tree.
28510
28515
  */
28511
28516
  var sb;
28512
- function Gz() {
28517
+ function zz() {
28513
28518
  if (sb) return Tu;
28514
28519
  sb = 1;
28515
28520
  var t = W;
@@ -28554,7 +28559,7 @@ var ku = {};
28554
28559
  * LICENSE file in the root directory of this source tree.
28555
28560
  */
28556
28561
  var ab;
28557
- function zz() {
28562
+ function _z() {
28558
28563
  return ab || (ab = 1, process.env.NODE_ENV !== "production" && function() {
28559
28564
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
28560
28565
  var t = W, e = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -28624,17 +28629,17 @@ function zz() {
28624
28629
  ku.useSyncExternalStore = y, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
28625
28630
  }()), ku;
28626
28631
  }
28627
- process.env.NODE_ENV === "production" ? af.exports = Gz() : af.exports = zz();
28632
+ process.env.NODE_ENV === "production" ? af.exports = zz() : af.exports = _z();
28628
28633
  var Ic = af.exports;
28629
- const _z = (...t) => (e) => {
28634
+ const Hz = (...t) => (e) => {
28630
28635
  t.forEach((n) => {
28631
28636
  typeof n == "function" ? n(e) : n && (n.current = e);
28632
28637
  });
28633
- }, Hz = ({ contentComponent: t }) => {
28638
+ }, $z = ({ contentComponent: t }) => {
28634
28639
  const e = Ic.useSyncExternalStore(t.subscribe, t.getSnapshot, t.getServerSnapshot);
28635
28640
  return W.createElement(W.Fragment, null, Object.values(e));
28636
28641
  };
28637
- function $z() {
28642
+ function Wz() {
28638
28643
  const t = /* @__PURE__ */ new Set();
28639
28644
  let e = {};
28640
28645
  return {
@@ -28670,7 +28675,7 @@ function $z() {
28670
28675
  }
28671
28676
  };
28672
28677
  }
28673
- class Wz extends W.Component {
28678
+ class Xz extends W.Component {
28674
28679
  constructor(e) {
28675
28680
  var n;
28676
28681
  super(e), this.editorContentRef = W.createRef(), this.initialized = !1, this.state = {
@@ -28691,7 +28696,7 @@ class Wz extends W.Component {
28691
28696
  const n = this.editorContentRef.current;
28692
28697
  n.append(...e.options.element.childNodes), e.setOptions({
28693
28698
  element: n
28694
- }), e.contentComponent = $z(), this.state.hasContentComponentInitialized || (this.unsubscribeToContentComponent = e.contentComponent.subscribe(() => {
28699
+ }), e.contentComponent = Wz(), this.state.hasContentComponentInitialized || (this.unsubscribeToContentComponent = e.contentComponent.subscribe(() => {
28695
28700
  this.setState((r) => r.hasContentComponentInitialized ? r : {
28696
28701
  hasContentComponentInitialized: !0
28697
28702
  }), this.unsubscribeToContentComponent && this.unsubscribeToContentComponent();
@@ -28714,20 +28719,20 @@ class Wz extends W.Component {
28714
28719
  return W.createElement(
28715
28720
  W.Fragment,
28716
28721
  null,
28717
- W.createElement("div", { ref: _z(n, this.editorContentRef), ...r }),
28718
- (e == null ? void 0 : e.contentComponent) && W.createElement(Hz, { contentComponent: e.contentComponent })
28722
+ W.createElement("div", { ref: Hz(n, this.editorContentRef), ...r }),
28723
+ (e == null ? void 0 : e.contentComponent) && W.createElement($z, { contentComponent: e.contentComponent })
28719
28724
  );
28720
28725
  }
28721
28726
  }
28722
- const Xz = pi((t, e) => {
28727
+ const Yz = pi((t, e) => {
28723
28728
  const n = W.useMemo(() => Math.floor(Math.random() * 4294967295).toString(), [t.editor]);
28724
- return W.createElement(Wz, {
28729
+ return W.createElement(Xz, {
28725
28730
  key: n,
28726
28731
  innerRef: e,
28727
28732
  ...t
28728
28733
  });
28729
- }), Yz = W.memo(Xz);
28730
- var Zz = function t(e, n) {
28734
+ }), Zz = W.memo(Yz);
28735
+ var Jz = function t(e, n) {
28731
28736
  if (e === n) return !0;
28732
28737
  if (e && n && typeof e == "object" && typeof n == "object") {
28733
28738
  if (e.constructor !== n.constructor) return !1;
@@ -28772,7 +28777,7 @@ var Zz = function t(e, n) {
28772
28777
  return !0;
28773
28778
  }
28774
28779
  return e !== e && n !== n;
28775
- }, Jz = /* @__PURE__ */ jz(Zz), lf = { exports: {} }, Mu = {};
28780
+ }, Uz = /* @__PURE__ */ Gz(Jz), lf = { exports: {} }, Mu = {};
28776
28781
  /**
28777
28782
  * @license React
28778
28783
  * use-sync-external-store-shim/with-selector.production.min.js
@@ -28783,7 +28788,7 @@ var Zz = function t(e, n) {
28783
28788
  * LICENSE file in the root directory of this source tree.
28784
28789
  */
28785
28790
  var lb;
28786
- function Uz() {
28791
+ function Kz() {
28787
28792
  if (lb) return Mu;
28788
28793
  lb = 1;
28789
28794
  var t = W, e = Ic;
@@ -28834,7 +28839,7 @@ var Ou = {};
28834
28839
  * LICENSE file in the root directory of this source tree.
28835
28840
  */
28836
28841
  var cb;
28837
- function Kz() {
28842
+ function qz() {
28838
28843
  return cb || (cb = 1, process.env.NODE_ENV !== "production" && function() {
28839
28844
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
28840
28845
  var t = W, e = Ic;
@@ -28879,10 +28884,10 @@ function Kz() {
28879
28884
  Ou.useSyncExternalStoreWithSelector = c, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
28880
28885
  }()), Ou;
28881
28886
  }
28882
- process.env.NODE_ENV === "production" ? lf.exports = Uz() : lf.exports = Kz();
28883
- var qz = lf.exports;
28884
- const Qz = typeof window < "u" ? eo : Re;
28885
- class e_ {
28887
+ process.env.NODE_ENV === "production" ? lf.exports = Kz() : lf.exports = qz();
28888
+ var Qz = lf.exports;
28889
+ const e_ = typeof window < "u" ? eo : Re;
28890
+ class t_ {
28886
28891
  constructor(e) {
28887
28892
  this.transactionNumber = 0, this.lastTransactionNumber = 0, this.subscribers = /* @__PURE__ */ new Set(), this.editor = e, this.lastSnapshot = { editor: e, transactionNumber: 0 }, this.getSnapshot = this.getSnapshot.bind(this), this.getServerSnapshot = this.getServerSnapshot.bind(this), this.watch = this.watch.bind(this), this.subscribe = this.subscribe.bind(this);
28888
28893
  }
@@ -28920,13 +28925,13 @@ class e_ {
28920
28925
  }
28921
28926
  }
28922
28927
  }
28923
- function t_(t) {
28928
+ function n_(t) {
28924
28929
  var e;
28925
- const [n] = Oe(() => new e_(t.editor)), r = qz.useSyncExternalStoreWithSelector(n.subscribe, n.getSnapshot, n.getServerSnapshot, t.selector, (e = t.equalityFn) !== null && e !== void 0 ? e : Jz);
28926
- return Qz(() => n.watch(t.editor), [t.editor, n]), ty(r), r;
28930
+ const [n] = Oe(() => new t_(t.editor)), r = Qz.useSyncExternalStoreWithSelector(n.subscribe, n.getSnapshot, n.getServerSnapshot, t.selector, (e = t.equalityFn) !== null && e !== void 0 ? e : Uz);
28931
+ return e_(() => n.watch(t.editor), [t.editor, n]), ty(r), r;
28927
28932
  }
28928
- const ub = process.env.NODE_ENV !== "production", cf = typeof window > "u", n_ = cf || !!(typeof window < "u" && window.next);
28929
- class r_ {
28933
+ const ub = process.env.NODE_ENV !== "production", cf = typeof window > "u", r_ = cf || !!(typeof window < "u" && window.next);
28934
+ class i_ {
28930
28935
  constructor(e) {
28931
28936
  this.editor = null, this.subscriptions = /* @__PURE__ */ new Set(), this.isComponentMounted = !1, this.previousDeps = null, this.instanceId = "", this.options = e, this.subscriptions = /* @__PURE__ */ new Set(), this.setEditor(this.getInitialEditor()), this.scheduleDestroy(), this.getEditor = this.getEditor.bind(this), this.getServerSnapshot = this.getServerSnapshot.bind(this), this.subscribe = this.subscribe.bind(this), this.refreshEditorInstance = this.refreshEditorInstance.bind(this), this.scheduleDestroy = this.scheduleDestroy.bind(this), this.onRender = this.onRender.bind(this), this.createEditor = this.createEditor.bind(this);
28932
28937
  }
@@ -28935,7 +28940,7 @@ class r_ {
28935
28940
  }
28936
28941
  getInitialEditor() {
28937
28942
  if (this.options.current.immediatelyRender === void 0)
28938
- return cf || n_ ? (ub && console.warn("Tiptap Error: SSR has been detected, please set `immediatelyRender` explicitly to `false` to avoid hydration mismatches."), null) : this.createEditor();
28943
+ return cf || r_ ? (ub && console.warn("Tiptap Error: SSR has been detected, please set `immediatelyRender` explicitly to `false` to avoid hydration mismatches."), null) : this.createEditor();
28939
28944
  if (this.options.current.immediatelyRender && cf && ub)
28940
28945
  throw new Error("Tiptap Error: SSR has been detected, and `immediatelyRender` has been set to `true` this is an unsupported configuration that may result in errors, explicitly set `immediatelyRender` to `false` to avoid hydration mismatches.");
28941
28946
  return this.options.current.immediatelyRender ? this.createEditor() : null;
@@ -28992,7 +28997,7 @@ class r_ {
28992
28997
  return (o = (i = this.options.current).onPaste) === null || o === void 0 ? void 0 : o.call(i, ...r);
28993
28998
  }
28994
28999
  };
28995
- return new Bz(e);
29000
+ return new Lz(e);
28996
29001
  }
28997
29002
  /**
28998
29003
  * Get the current editor instance.
@@ -29057,24 +29062,24 @@ class r_ {
29057
29062
  }, 1);
29058
29063
  }
29059
29064
  }
29060
- function i_(t = {}, e = []) {
29065
+ function o_(t = {}, e = []) {
29061
29066
  const n = de(t);
29062
29067
  n.current = t;
29063
- const [r] = Oe(() => new r_(n)), i = Ic.useSyncExternalStore(r.subscribe, r.getEditor, r.getServerSnapshot);
29064
- return ty(i), Re(r.onRender(e)), t_({
29068
+ const [r] = Oe(() => new i_(n)), i = Ic.useSyncExternalStore(r.subscribe, r.getEditor, r.getServerSnapshot);
29069
+ return ty(i), Re(r.onRender(e)), n_({
29065
29070
  editor: i,
29066
29071
  selector: ({ transactionNumber: o }) => t.shouldRerenderOnTransaction === !1 ? null : t.immediatelyRender && o === 0 ? 0 : o + 1
29067
29072
  }), i;
29068
29073
  }
29069
- const o_ = qe({
29074
+ const s_ = qe({
29070
29075
  editor: null
29071
29076
  });
29072
- o_.Consumer;
29073
- const s_ = qe({
29077
+ s_.Consumer;
29078
+ const a_ = qe({
29074
29079
  onDragStart: void 0
29075
- }), a_ = () => Me(s_);
29080
+ }), l_ = () => Me(a_);
29076
29081
  W.forwardRef((t, e) => {
29077
- const { onDragStart: n } = a_(), r = t.as || "div";
29082
+ const { onDragStart: n } = l_(), r = t.as || "div";
29078
29083
  return (
29079
29084
  // @ts-ignore
29080
29085
  W.createElement(r, { ...t, ref: e, "data-node-view-wrapper": "", onDragStart: n, style: {
@@ -29083,7 +29088,7 @@ W.forwardRef((t, e) => {
29083
29088
  } })
29084
29089
  );
29085
29090
  });
29086
- const l_ = pn.create({
29091
+ const c_ = pn.create({
29087
29092
  name: "textStyle",
29088
29093
  priority: 101,
29089
29094
  addOptions() {
@@ -29110,7 +29115,7 @@ const l_ = pn.create({
29110
29115
  }
29111
29116
  };
29112
29117
  }
29113
- }), c_ = Ot.create({
29118
+ }), u_ = Ot.create({
29114
29119
  name: "color",
29115
29120
  addOptions() {
29116
29121
  return {
@@ -29191,22 +29196,22 @@ const l_ = pn.create({
29191
29196
  }
29192
29197
  }));
29193
29198
  }
29194
- }), u_ = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", d_ = "ελ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", qi = (t, e) => {
29199
+ }), d_ = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", f_ = "ελ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", qi = (t, e) => {
29195
29200
  for (const n in e)
29196
29201
  t[n] = e[n];
29197
29202
  return t;
29198
- }, uf = "numeric", df = "ascii", ff = "alpha", jo = "asciinumeric", Eo = "alphanumeric", pf = "domain", gw = "emoji", f_ = "scheme", p_ = "slashscheme", Ru = "whitespace";
29199
- function h_(t, e) {
29203
+ }, uf = "numeric", df = "ascii", ff = "alpha", jo = "asciinumeric", Eo = "alphanumeric", pf = "domain", gw = "emoji", p_ = "scheme", h_ = "slashscheme", Ru = "whitespace";
29204
+ function m_(t, e) {
29200
29205
  return t in e || (e[t] = []), e[t];
29201
29206
  }
29202
29207
  function Ur(t, e, n) {
29203
29208
  e[uf] && (e[jo] = !0, e[Eo] = !0), e[df] && (e[jo] = !0, e[ff] = !0), e[jo] && (e[Eo] = !0), e[ff] && (e[Eo] = !0), e[Eo] && (e[pf] = !0), e[gw] && (e[pf] = !0);
29204
29209
  for (const r in e) {
29205
- const i = h_(r, n);
29210
+ const i = m_(r, n);
29206
29211
  i.indexOf(t) < 0 && i.push(t);
29207
29212
  }
29208
29213
  }
29209
- function m_(t, e) {
29214
+ function g_(t, e) {
29210
29215
  const n = {};
29211
29216
  for (const r in e)
29212
29217
  e[r].indexOf(t) >= 0 && (n[r] = !0);
@@ -29328,7 +29333,7 @@ jt.prototype = {
29328
29333
  if (a ? (s = new jt(), qi(s.j, a.j), s.jr.push.apply(s.jr, a.jr), s.jd = a.jd, s.t = a.t) : s = new jt(), o) {
29329
29334
  if (r)
29330
29335
  if (s.t && typeof s.t == "string") {
29331
- const l = qi(m_(s.t, r), n);
29336
+ const l = qi(g_(s.t, r), n);
29332
29337
  Ur(o, l, r);
29333
29338
  } else n && Ur(o, n, r);
29334
29339
  s.t = o;
@@ -29396,13 +29401,13 @@ var Cw = /* @__PURE__ */ Object.freeze({
29396
29401
  SYM: kl
29397
29402
  });
29398
29403
  const jn = /[a-z]/, go = new RegExp("\\p{L}", "u"), Pu = new RegExp("\\p{Emoji}", "u"), Gn = /\d/, Du = /\s/, fb = "\r", Nu = `
29399
- `, g_ = "️", v_ = "‍", Fu = "";
29404
+ `, v_ = "️", b_ = "‍", Fu = "";
29400
29405
  let qs = null, Qs = null;
29401
- function b_(t = []) {
29406
+ function y_(t = []) {
29402
29407
  const e = {};
29403
29408
  jt.groups = e;
29404
29409
  const n = new jt();
29405
- qs == null && (qs = pb(u_)), Qs == null && (Qs = pb(d_)), K(n, "'", gh), K(n, "{", Go), K(n, "}", zo), K(n, "[", rl), K(n, "]", il), K(n, "(", ol), K(n, ")", sl), K(n, "<", al), K(n, ">", ll), K(n, "(", cl), K(n, ")", ul), K(n, "「", dl), K(n, "」", fl), K(n, "『", pl), K(n, "』", hl), K(n, "<", ml), K(n, ">", gl), K(n, "&", vl), K(n, "*", bl), K(n, "@", sr), K(n, "`", xl), K(n, "^", Cl), K(n, ":", fr), K(n, ",", vh), K(n, "$", Sl), K(n, ".", xn), K(n, "=", wl), K(n, "!", bh), K(n, "-", Kt), K(n, "%", _o), K(n, "|", Il), K(n, "+", El), K(n, "#", Al), K(n, "?", Ho), K(n, '"', yh), K(n, "/", Cn), K(n, ";", xh), K(n, "~", $o), K(n, "_", Tl), K(n, "\\", yl), K(n, "・", yw);
29410
+ qs == null && (qs = pb(d_)), Qs == null && (Qs = pb(f_)), K(n, "'", gh), K(n, "{", Go), K(n, "}", zo), K(n, "[", rl), K(n, "]", il), K(n, "(", ol), K(n, ")", sl), K(n, "<", al), K(n, ">", ll), K(n, "(", cl), K(n, ")", ul), K(n, "「", dl), K(n, "」", fl), K(n, "『", pl), K(n, "』", hl), K(n, "<", ml), K(n, ">", gl), K(n, "&", vl), K(n, "*", bl), K(n, "@", sr), K(n, "`", xl), K(n, "^", Cl), K(n, ":", fr), K(n, ",", vh), K(n, "$", Sl), K(n, ".", xn), K(n, "=", wl), K(n, "!", bh), K(n, "-", Kt), K(n, "%", _o), K(n, "|", Il), K(n, "+", El), K(n, "#", Al), K(n, "?", Ho), K(n, '"', yh), K(n, "/", Cn), K(n, ";", xh), K(n, "~", $o), K(n, "_", Tl), K(n, "\\", yl), K(n, "・", yw);
29406
29411
  const r = Qe(n, Gn, hh, {
29407
29412
  [uf]: !0
29408
29413
  });
@@ -29430,8 +29435,8 @@ function b_(t = []) {
29430
29435
  const d = Qe(n, Pu, xw, {
29431
29436
  [gw]: !0
29432
29437
  });
29433
- K(d, "#"), Qe(d, Pu, d), K(d, g_, d);
29434
- const f = K(d, v_);
29438
+ K(d, "#"), Qe(d, Pu, d), K(d, v_, d);
29439
+ const f = K(d, b_);
29435
29440
  K(f, "#"), Qe(f, Pu, d);
29436
29441
  const p = [[jn, s], [Gn, i]], h = [[jn, null], [go, a], [Gn, o]];
29437
29442
  for (let m = 0; m < qs.length; m++)
@@ -29453,9 +29458,9 @@ function b_(t = []) {
29453
29458
  }, e), t = t.sort((m, g) => m[0] > g[0] ? 1 : -1);
29454
29459
  for (let m = 0; m < t.length; m++) {
29455
29460
  const g = t[m][0], y = t[m][1] ? {
29456
- [f_]: !0
29457
- } : {
29458
29461
  [p_]: !0
29462
+ } : {
29463
+ [h_]: !0
29459
29464
  };
29460
29465
  g.indexOf("-") >= 0 ? y[pf] = !0 : jn.test(g) ? Gn.test(g) ? y[jo] = !0 : y[df] = !0 : y[uf] = !0, db(n, g, g, y);
29461
29466
  }
@@ -29469,7 +29474,7 @@ function b_(t = []) {
29469
29474
  };
29470
29475
  }
29471
29476
  function Sw(t, e) {
29472
- const n = y_(e.replace(/[A-Z]/g, (a) => a.toLowerCase())), r = n.length, i = [];
29477
+ const n = x_(e.replace(/[A-Z]/g, (a) => a.toLowerCase())), r = n.length, i = [];
29473
29478
  let o = 0, s = 0;
29474
29479
  for (; s < r; ) {
29475
29480
  let a = t, l = null, c = 0, u = null, d = -1, f = -1;
@@ -29488,7 +29493,7 @@ function Sw(t, e) {
29488
29493
  }
29489
29494
  return i;
29490
29495
  }
29491
- function y_(t) {
29496
+ function x_(t) {
29492
29497
  const e = [], n = t.length;
29493
29498
  let r = 0;
29494
29499
  for (; r < n; ) {
@@ -29734,7 +29739,7 @@ const mb = Ec("email", {
29734
29739
  toHref() {
29735
29740
  return "mailto:" + this.toString();
29736
29741
  }
29737
- }), gb = Ec("text"), x_ = Ec("nl"), ea = Ec("url", {
29742
+ }), gb = Ec("text"), C_ = Ec("nl"), ea = Ec("url", {
29738
29743
  isLink: !0,
29739
29744
  /**
29740
29745
  Lowercases relevant parts of the domain and adds the protocol if
@@ -29755,7 +29760,7 @@ const mb = Ec("email", {
29755
29760
  return t.length >= 2 && t[0].t !== ds && t[1].t === fr;
29756
29761
  }
29757
29762
  }), Jt = (t) => new jt(t);
29758
- function C_({
29763
+ function S_({
29759
29764
  groups: t
29760
29765
  }) {
29761
29766
  const e = t.domain.concat([vl, bl, sr, yl, xl, Cl, Sl, wl, Kt, hh, _o, Il, El, Al, Cn, kl, $o, Tl]), n = [fr, vh, xn, bh, _o, Ho, yh, xh, al, ll, Go, zo, il, rl, ol, sl, cl, ul, dl, fl, pl, hl, ml, gl], r = [vl, gh, bl, yl, xl, Cl, Sl, wl, Kt, Go, zo, _o, Il, El, Al, Ho, Cn, kl, $o, Tl], i = Jt(), o = K(i, $o);
@@ -29812,12 +29817,12 @@ function C_({
29812
29817
  const B = Jt();
29813
29818
  Ae(Z, n), Ae(N, e, N), Ae(N, n, B), Ae(B, e, N), Ae(B, n, B), K(N, j, x), K(B, j, x);
29814
29819
  }
29815
- return K(i, ds, y), K(i, mh, x_), {
29820
+ return K(i, ds, y), K(i, mh, C_), {
29816
29821
  start: i,
29817
29822
  tokens: Cw
29818
29823
  };
29819
29824
  }
29820
- function S_(t, e, n) {
29825
+ function w_(t, e, n) {
29821
29826
  let r = n.length, i = 0, o = [], s = [];
29822
29827
  for (; i < r; ) {
29823
29828
  let a = t, l = null, c = null, u = 0, d = null, f = -1;
@@ -29839,8 +29844,8 @@ function Vu(t, e, n) {
29839
29844
  const r = n[0].s, i = n[n.length - 1].e, o = e.slice(r, i);
29840
29845
  return new t(o, n);
29841
29846
  }
29842
- const w_ = typeof console < "u" && console && console.warn || (() => {
29843
- }), I_ = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", Xe = {
29847
+ const I_ = typeof console < "u" && console && console.warn || (() => {
29848
+ }), E_ = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", Xe = {
29844
29849
  scanner: null,
29845
29850
  parser: null,
29846
29851
  tokenQueue: [],
@@ -29848,24 +29853,24 @@ const w_ = typeof console < "u" && console && console.warn || (() => {
29848
29853
  customSchemes: [],
29849
29854
  initialized: !1
29850
29855
  };
29851
- function E_() {
29856
+ function A_() {
29852
29857
  return jt.groups = {}, Xe.scanner = null, Xe.parser = null, Xe.tokenQueue = [], Xe.pluginQueue = [], Xe.customSchemes = [], Xe.initialized = !1, Xe;
29853
29858
  }
29854
29859
  function vb(t, e = !1) {
29855
- if (Xe.initialized && w_(`linkifyjs: already initialized - will not register custom scheme "${t}" ${I_}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))
29860
+ if (Xe.initialized && I_(`linkifyjs: already initialized - will not register custom scheme "${t}" ${E_}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))
29856
29861
  throw new Error(`linkifyjs: incorrect scheme format.
29857
29862
  1. Must only contain digits, lowercase ASCII letters or "-"
29858
29863
  2. Cannot start or end with "-"
29859
29864
  3. "-" cannot repeat`);
29860
29865
  Xe.customSchemes.push([t, e]);
29861
29866
  }
29862
- function A_() {
29863
- Xe.scanner = b_(Xe.customSchemes);
29867
+ function T_() {
29868
+ Xe.scanner = y_(Xe.customSchemes);
29864
29869
  for (let t = 0; t < Xe.tokenQueue.length; t++)
29865
29870
  Xe.tokenQueue[t][1]({
29866
29871
  scanner: Xe.scanner
29867
29872
  });
29868
- Xe.parser = C_(Xe.scanner.tokens);
29873
+ Xe.parser = S_(Xe.scanner.tokens);
29869
29874
  for (let t = 0; t < Xe.pluginQueue.length; t++)
29870
29875
  Xe.pluginQueue[t][1]({
29871
29876
  scanner: Xe.scanner,
@@ -29874,7 +29879,7 @@ function A_() {
29874
29879
  return Xe.initialized = !0, Xe;
29875
29880
  }
29876
29881
  function Sh(t) {
29877
- return Xe.initialized || A_(), S_(Xe.parser.start, t, Sw(Xe.scanner.start, t));
29882
+ return Xe.initialized || T_(), w_(Xe.parser.start, t, Sw(Xe.scanner.start, t));
29878
29883
  }
29879
29884
  Sh.scan = Sw;
29880
29885
  function Iw(t, e = null, n = null) {
@@ -29890,19 +29895,19 @@ function Iw(t, e = null, n = null) {
29890
29895
  }
29891
29896
  return o;
29892
29897
  }
29893
- function T_(t) {
29898
+ function k_(t) {
29894
29899
  return t.length === 1 ? t[0].isLink : t.length === 3 && t[1].isLink ? ["()", "[]"].includes(t[0].value + t[2].value) : !1;
29895
29900
  }
29896
- function k_(t) {
29901
+ function M_(t) {
29897
29902
  return new St({
29898
29903
  key: new Yt("autolink"),
29899
29904
  appendTransaction: (e, n, r) => {
29900
29905
  const i = e.some((c) => c.docChanged) && !n.doc.eq(r.doc), o = e.some((c) => c.getMeta("preventAutolink"));
29901
29906
  if (!i || o)
29902
29907
  return;
29903
- const { tr: s } = r, a = KG(n.doc, [...e]);
29904
- if (oz(a).forEach(({ newRange: c }) => {
29905
- const u = QG(r.doc, c, (p) => p.isTextblock);
29908
+ const { tr: s } = r, a = qG(n.doc, [...e]);
29909
+ if (sz(a).forEach(({ newRange: c }) => {
29910
+ const u = ez(r.doc, c, (p) => p.isTextblock);
29906
29911
  let d, f;
29907
29912
  if (u.length > 1 ? (d = u[0], f = r.doc.textBetween(d.pos, d.pos + d.node.nodeSize, void 0, " ")) : u.length && r.doc.textBetween(c.from, c.to, " ", " ").endsWith(" ") && (d = u[0], f = r.doc.textBetween(d.pos, c.to, void 0, " ")), d && f) {
29908
29913
  const p = f.split(" ").filter((v) => v !== "");
@@ -29912,7 +29917,7 @@ function k_(t) {
29912
29917
  if (!h)
29913
29918
  return !1;
29914
29919
  const g = Sh(h).map((v) => v.toObject(t.defaultProtocol));
29915
- if (!T_(g))
29920
+ if (!k_(g))
29916
29921
  return !1;
29917
29922
  g.filter((v) => v.isLink).map((v) => ({
29918
29923
  ...v,
@@ -29929,7 +29934,7 @@ function k_(t) {
29929
29934
  }
29930
29935
  });
29931
29936
  }
29932
- function M_(t) {
29937
+ function O_(t) {
29933
29938
  return new St({
29934
29939
  key: new Yt("handleClickLink"),
29935
29940
  props: {
@@ -29949,7 +29954,7 @@ function M_(t) {
29949
29954
  }
29950
29955
  });
29951
29956
  }
29952
- function O_(t) {
29957
+ function R_(t) {
29953
29958
  return new St({
29954
29959
  key: new Yt("handlePasteLink"),
29955
29960
  props: {
@@ -29969,7 +29974,7 @@ function O_(t) {
29969
29974
  }
29970
29975
  });
29971
29976
  }
29972
- const R_ = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;
29977
+ const P_ = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;
29973
29978
  function vo(t, e) {
29974
29979
  const n = [
29975
29980
  "http",
@@ -29986,13 +29991,13 @@ function vo(t, e) {
29986
29991
  return e && e.forEach((r) => {
29987
29992
  const i = typeof r == "string" ? r : r.scheme;
29988
29993
  i && n.push(i);
29989
- }), !t || t.replace(R_, "").match(new RegExp(
29994
+ }), !t || t.replace(P_, "").match(new RegExp(
29990
29995
  // eslint-disable-next-line no-useless-escape
29991
29996
  `^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`,
29992
29997
  "i"
29993
29998
  ));
29994
29999
  }
29995
- const P_ = pn.create({
30000
+ const D_ = pn.create({
29996
30001
  name: "link",
29997
30002
  priority: 1e3,
29998
30003
  keepOnSplit: !1,
@@ -30007,7 +30012,7 @@ const P_ = pn.create({
30007
30012
  });
30008
30013
  },
30009
30014
  onDestroy() {
30010
- E_();
30015
+ A_();
30011
30016
  },
30012
30017
  inclusive() {
30013
30018
  return this.options.autolink;
@@ -30114,7 +30119,7 @@ const P_ = pn.create({
30114
30119
  },
30115
30120
  addProseMirrorPlugins() {
30116
30121
  const t = [], { protocols: e, defaultProtocol: n } = this.options;
30117
- return this.options.autolink && t.push(k_({
30122
+ return this.options.autolink && t.push(M_({
30118
30123
  type: this.type,
30119
30124
  defaultProtocol: this.options.defaultProtocol,
30120
30125
  validate: (r) => this.options.isAllowedUri(r, {
@@ -30123,15 +30128,15 @@ const P_ = pn.create({
30123
30128
  defaultProtocol: n
30124
30129
  }),
30125
30130
  shouldAutoLink: this.options.shouldAutoLink
30126
- })), this.options.openOnClick === !0 && t.push(M_({
30131
+ })), this.options.openOnClick === !0 && t.push(O_({
30127
30132
  type: this.type
30128
- })), this.options.linkOnPaste && t.push(O_({
30133
+ })), this.options.linkOnPaste && t.push(R_({
30129
30134
  editor: this.editor,
30130
30135
  defaultProtocol: this.options.defaultProtocol,
30131
30136
  type: this.type
30132
30137
  })), t;
30133
30138
  }
30134
- }), D_ = pn.create({
30139
+ }), N_ = pn.create({
30135
30140
  name: "underline",
30136
30141
  addOptions() {
30137
30142
  return {
@@ -30166,7 +30171,7 @@ const P_ = pn.create({
30166
30171
  "Mod-U": () => this.editor.commands.toggleUnderline()
30167
30172
  };
30168
30173
  }
30169
- }), N_ = /^\s*>\s$/, F_ = vn.create({
30174
+ }), F_ = /^\s*>\s$/, V_ = vn.create({
30170
30175
  name: "blockquote",
30171
30176
  addOptions() {
30172
30177
  return {
@@ -30199,12 +30204,12 @@ const P_ = pn.create({
30199
30204
  addInputRules() {
30200
30205
  return [
30201
30206
  us({
30202
- find: N_,
30207
+ find: F_,
30203
30208
  type: this.type
30204
30209
  })
30205
30210
  ];
30206
30211
  }
30207
- }), V_ = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, B_ = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, L_ = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, j_ = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, G_ = pn.create({
30212
+ }), B_ = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, L_ = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, j_ = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, G_ = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, z_ = pn.create({
30208
30213
  name: "bold",
30209
30214
  addOptions() {
30210
30215
  return {
@@ -30249,11 +30254,11 @@ const P_ = pn.create({
30249
30254
  addInputRules() {
30250
30255
  return [
30251
30256
  Ki({
30252
- find: V_,
30257
+ find: B_,
30253
30258
  type: this.type
30254
30259
  }),
30255
30260
  Ki({
30256
- find: L_,
30261
+ find: j_,
30257
30262
  type: this.type
30258
30263
  })
30259
30264
  ];
@@ -30261,16 +30266,16 @@ const P_ = pn.create({
30261
30266
  addPasteRules() {
30262
30267
  return [
30263
30268
  di({
30264
- find: B_,
30269
+ find: L_,
30265
30270
  type: this.type
30266
30271
  }),
30267
30272
  di({
30268
- find: j_,
30273
+ find: G_,
30269
30274
  type: this.type
30270
30275
  })
30271
30276
  ];
30272
30277
  }
30273
- }), z_ = "listItem", bb = "textStyle", yb = /^\s*([-+*])\s$/, __ = vn.create({
30278
+ }), __ = "listItem", bb = "textStyle", yb = /^\s*([-+*])\s$/, H_ = vn.create({
30274
30279
  name: "bulletList",
30275
30280
  addOptions() {
30276
30281
  return {
@@ -30294,7 +30299,7 @@ const P_ = pn.create({
30294
30299
  },
30295
30300
  addCommands() {
30296
30301
  return {
30297
- toggleBulletList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(z_, this.editor.getAttributes(bb)).run() : t.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
30302
+ toggleBulletList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(__, this.editor.getAttributes(bb)).run() : t.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
30298
30303
  };
30299
30304
  },
30300
30305
  addKeyboardShortcuts() {
@@ -30318,7 +30323,7 @@ const P_ = pn.create({
30318
30323
  t
30319
30324
  ];
30320
30325
  }
30321
- }), H_ = new RegExp("(?<!`)`([^`]+)`(?!`)"), $_ = new RegExp("(?<!`)`([^`]+)`(?!`)", "g"), W_ = pn.create({
30326
+ }), $_ = new RegExp("(?<!`)`([^`]+)`(?!`)"), W_ = new RegExp("(?<!`)`([^`]+)`(?!`)", "g"), X_ = pn.create({
30322
30327
  name: "code",
30323
30328
  addOptions() {
30324
30329
  return {
@@ -30351,7 +30356,7 @@ const P_ = pn.create({
30351
30356
  addInputRules() {
30352
30357
  return [
30353
30358
  Ki({
30354
- find: H_,
30359
+ find: $_,
30355
30360
  type: this.type
30356
30361
  })
30357
30362
  ];
@@ -30359,12 +30364,12 @@ const P_ = pn.create({
30359
30364
  addPasteRules() {
30360
30365
  return [
30361
30366
  di({
30362
- find: $_,
30367
+ find: W_,
30363
30368
  type: this.type
30364
30369
  })
30365
30370
  ];
30366
30371
  }
30367
- }), X_ = /^```([a-z]+)?[\s\n]$/, Y_ = /^~~~([a-z]+)?[\s\n]$/, Z_ = vn.create({
30372
+ }), Y_ = /^```([a-z]+)?[\s\n]$/, Z_ = /^~~~([a-z]+)?[\s\n]$/, J_ = vn.create({
30368
30373
  name: "codeBlock",
30369
30374
  addOptions() {
30370
30375
  return {
@@ -30455,14 +30460,14 @@ const P_ = pn.create({
30455
30460
  addInputRules() {
30456
30461
  return [
30457
30462
  of({
30458
- find: X_,
30463
+ find: Y_,
30459
30464
  type: this.type,
30460
30465
  getAttributes: (t) => ({
30461
30466
  language: t[1]
30462
30467
  })
30463
30468
  }),
30464
30469
  of({
30465
- find: Y_,
30470
+ find: Z_,
30466
30471
  type: this.type,
30467
30472
  getAttributes: (t) => ({
30468
30473
  language: t[1]
@@ -30491,19 +30496,19 @@ const P_ = pn.create({
30491
30496
  })
30492
30497
  ];
30493
30498
  }
30494
- }), J_ = vn.create({
30499
+ }), U_ = vn.create({
30495
30500
  name: "doc",
30496
30501
  topNode: !0,
30497
30502
  content: "block+"
30498
30503
  });
30499
- function U_(t = {}) {
30504
+ function K_(t = {}) {
30500
30505
  return new St({
30501
30506
  view(e) {
30502
- return new K_(e, t);
30507
+ return new q_(e, t);
30503
30508
  }
30504
30509
  });
30505
30510
  }
30506
- class K_ {
30511
+ class q_ {
30507
30512
  constructor(e, n) {
30508
30513
  var r;
30509
30514
  this.editorView = e, this.cursorPos = null, this.element = null, this.timeout = -1, this.width = (r = n.width) !== null && r !== void 0 ? r : 1, this.color = n.color === !1 ? void 0 : n.color || "black", this.class = n.class, this.handlers = ["dragover", "dragend", "drop", "dragleave"].map((i) => {
@@ -30575,7 +30580,7 @@ class K_ {
30575
30580
  (e.target == this.editorView.dom || !this.editorView.dom.contains(e.relatedTarget)) && this.setCursor(null);
30576
30581
  }
30577
30582
  }
30578
- const q_ = Ot.create({
30583
+ const Q_ = Ot.create({
30579
30584
  name: "dropCursor",
30580
30585
  addOptions() {
30581
30586
  return {
@@ -30586,7 +30591,7 @@ const q_ = Ot.create({
30586
30591
  },
30587
30592
  addProseMirrorPlugins() {
30588
30593
  return [
30589
- U_(this.options)
30594
+ K_(this.options)
30590
30595
  ];
30591
30596
  }
30592
30597
  });
@@ -30629,7 +30634,7 @@ class tt extends Ee {
30629
30634
  */
30630
30635
  static valid(e) {
30631
30636
  let n = e.parent;
30632
- if (n.isTextblock || !Q_(e) || !eH(e))
30637
+ if (n.isTextblock || !eH(e) || !tH(e))
30633
30638
  return !1;
30634
30639
  let r = n.type.spec.allowGapCursor;
30635
30640
  if (r != null)
@@ -30690,7 +30695,7 @@ class wh {
30690
30695
  return tt.valid(n) ? new tt(n) : Ee.near(n);
30691
30696
  }
30692
30697
  }
30693
- function Q_(t) {
30698
+ function eH(t) {
30694
30699
  for (let e = t.depth; e >= 0; e--) {
30695
30700
  let n = t.index(e), r = t.node(e);
30696
30701
  if (n == 0) {
@@ -30707,7 +30712,7 @@ function Q_(t) {
30707
30712
  }
30708
30713
  return !0;
30709
30714
  }
30710
- function eH(t) {
30715
+ function tH(t) {
30711
30716
  for (let e = t.depth; e >= 0; e--) {
30712
30717
  let n = t.indexAfter(e), r = t.node(e);
30713
30718
  if (n == r.childCount) {
@@ -30724,20 +30729,20 @@ function eH(t) {
30724
30729
  }
30725
30730
  return !0;
30726
30731
  }
30727
- function tH() {
30732
+ function nH() {
30728
30733
  return new St({
30729
30734
  props: {
30730
- decorations: oH,
30735
+ decorations: sH,
30731
30736
  createSelectionBetween(t, e, n) {
30732
30737
  return e.pos == n.pos && tt.valid(n) ? new tt(n) : null;
30733
30738
  },
30734
- handleClick: rH,
30735
- handleKeyDown: nH,
30736
- handleDOMEvents: { beforeinput: iH }
30739
+ handleClick: iH,
30740
+ handleKeyDown: rH,
30741
+ handleDOMEvents: { beforeinput: oH }
30737
30742
  }
30738
30743
  });
30739
30744
  }
30740
- const nH = qS({
30745
+ const rH = qS({
30741
30746
  ArrowLeft: ta("horiz", -1),
30742
30747
  ArrowRight: ta("horiz", 1),
30743
30748
  ArrowUp: ta("vert", -1),
@@ -30756,7 +30761,7 @@ function ta(t, e) {
30756
30761
  return c ? (i && i(r.tr.setSelection(new tt(c))), !0) : !1;
30757
30762
  };
30758
30763
  }
30759
- function rH(t, e, n) {
30764
+ function iH(t, e, n) {
30760
30765
  if (!t || !t.editable)
30761
30766
  return !1;
30762
30767
  let r = t.state.doc.resolve(e);
@@ -30765,7 +30770,7 @@ function rH(t, e, n) {
30765
30770
  let i = t.posAtCoords({ left: n.clientX, top: n.clientY });
30766
30771
  return i && i.inside > -1 && ge.isSelectable(t.state.doc.nodeAt(i.inside)) ? !1 : (t.dispatch(t.state.tr.setSelection(new tt(r))), !0);
30767
30772
  }
30768
- function iH(t, e) {
30773
+ function oH(t, e) {
30769
30774
  if (e.inputType != "insertCompositionText" || !(t.state.selection instanceof tt))
30770
30775
  return !1;
30771
30776
  let { $from: n } = t.state.selection, r = n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);
@@ -30777,17 +30782,17 @@ function iH(t, e) {
30777
30782
  let o = t.state.tr.replace(n.pos, n.pos, new le(i, 0, 0));
30778
30783
  return o.setSelection(Ce.near(o.doc.resolve(n.pos + 1))), t.dispatch(o), !1;
30779
30784
  }
30780
- function oH(t) {
30785
+ function sH(t) {
30781
30786
  if (!(t.selection instanceof tt))
30782
30787
  return null;
30783
30788
  let e = document.createElement("div");
30784
30789
  return e.className = "ProseMirror-gapcursor", dt.create(t.doc, [nn.widget(t.selection.head, e, { key: "gapcursor" })]);
30785
30790
  }
30786
- const sH = Ot.create({
30791
+ const aH = Ot.create({
30787
30792
  name: "gapCursor",
30788
30793
  addProseMirrorPlugins() {
30789
30794
  return [
30790
- tH()
30795
+ nH()
30791
30796
  ];
30792
30797
  },
30793
30798
  extendNodeSchema(t) {
@@ -30801,7 +30806,7 @@ const sH = Ot.create({
30801
30806
  allowGapCursor: (e = Te(ce(t, "allowGapCursor", n))) !== null && e !== void 0 ? e : null
30802
30807
  };
30803
30808
  }
30804
- }), aH = vn.create({
30809
+ }), lH = vn.create({
30805
30810
  name: "hardBreak",
30806
30811
  addOptions() {
30807
30812
  return {
@@ -30861,7 +30866,7 @@ ht.prototype.prepend = function(e) {
30861
30866
  return e.length ? ht.from(e).append(this) : this;
30862
30867
  };
30863
30868
  ht.prototype.appendInner = function(e) {
30864
- return new lH(this, e);
30869
+ return new cH(this, e);
30865
30870
  };
30866
30871
  ht.prototype.slice = function(e, n) {
30867
30872
  return e === void 0 && (e = 0), n === void 0 && (n = this.length), e >= n ? ht.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, n));
@@ -30916,7 +30921,7 @@ var Ew = /* @__PURE__ */ function(t) {
30916
30921
  }, Object.defineProperties(e.prototype, n), e;
30917
30922
  }(ht);
30918
30923
  ht.empty = new Ew([]);
30919
- var lH = /* @__PURE__ */ function(t) {
30924
+ var cH = /* @__PURE__ */ function(t) {
30920
30925
  function e(n, r) {
30921
30926
  t.call(this), this.left = n, this.right = r, this.length = n.length + r.length, this.depth = Math.max(n.depth, r.depth) + 1;
30922
30927
  }
@@ -30949,7 +30954,7 @@ var lH = /* @__PURE__ */ function(t) {
30949
30954
  return this.left.depth >= Math.max(this.right.depth, r.depth) + 1 ? new e(this.left, new e(this.right, r)) : new e(this, r);
30950
30955
  }, e;
30951
30956
  }(ht);
30952
- const cH = 500;
30957
+ const uH = 500;
30953
30958
  class un {
30954
30959
  constructor(e, n) {
30955
30960
  this.items = e, this.eventCount = n;
@@ -30991,7 +30996,7 @@ class un {
30991
30996
  (p = l && l.merge(f)) && (f = p, u ? o.pop() : a = a.slice(0, a.length - 1)), o.push(f), n && (s++, n = void 0), i || (l = f);
30992
30997
  }
30993
30998
  let c = s - r.depth;
30994
- return c > dH && (a = uH(a, c), s -= c), new un(a.append(o), s);
30999
+ return c > fH && (a = dH(a, c), s -= c), new un(a.append(o), s);
30995
31000
  }
30996
31001
  remapping(e, n) {
30997
31002
  let r = new Li();
@@ -31031,7 +31036,7 @@ class un {
31031
31036
  for (let f = n; f < s; f++)
31032
31037
  c.push(new Sn(o.maps[f]));
31033
31038
  let u = this.items.slice(0, i).append(c).append(r), d = new un(u, a);
31034
- return d.emptyItemCount() > cH && (d = d.compress(this.items.length - r.length)), d;
31039
+ return d.emptyItemCount() > uH && (d = d.compress(this.items.length - r.length)), d;
31035
31040
  }
31036
31041
  emptyItemCount() {
31037
31042
  let e = 0;
@@ -31063,7 +31068,7 @@ class un {
31063
31068
  }
31064
31069
  }
31065
31070
  un.empty = new un(ht.empty, 0);
31066
- function uH(t, e) {
31071
+ function dH(t, e) {
31067
31072
  let n;
31068
31073
  return t.forEach((r, i) => {
31069
31074
  if (r.selection && e-- == 0)
@@ -31087,23 +31092,23 @@ class ar {
31087
31092
  this.done = e, this.undone = n, this.prevRanges = r, this.prevTime = i, this.prevComposition = o;
31088
31093
  }
31089
31094
  }
31090
- const dH = 20;
31091
- function fH(t, e, n, r) {
31095
+ const fH = 20;
31096
+ function pH(t, e, n, r) {
31092
31097
  let i = n.getMeta(ii), o;
31093
31098
  if (i)
31094
31099
  return i.historyState;
31095
- n.getMeta(mH) && (t = new ar(t.done, t.undone, null, 0, -1));
31100
+ n.getMeta(gH) && (t = new ar(t.done, t.undone, null, 0, -1));
31096
31101
  let s = n.getMeta("appendedTransaction");
31097
31102
  if (n.steps.length == 0)
31098
31103
  return t;
31099
31104
  if (s && s.getMeta(ii))
31100
31105
  return s.getMeta(ii).redo ? new ar(t.done.addTransform(n, void 0, r, ya(e)), t.undone, xb(n.mapping.maps), t.prevTime, t.prevComposition) : new ar(t.done, t.undone.addTransform(n, void 0, r, ya(e)), null, t.prevTime, t.prevComposition);
31101
31106
  if (n.getMeta("addToHistory") !== !1 && !(s && s.getMeta("addToHistory") === !1)) {
31102
- let a = n.getMeta("composition"), l = t.prevTime == 0 || !s && t.prevComposition != a && (t.prevTime < (n.time || 0) - r.newGroupDelay || !pH(n, t.prevRanges)), c = s ? Bu(t.prevRanges, n.mapping) : xb(n.mapping.maps);
31107
+ let a = n.getMeta("composition"), l = t.prevTime == 0 || !s && t.prevComposition != a && (t.prevTime < (n.time || 0) - r.newGroupDelay || !hH(n, t.prevRanges)), c = s ? Bu(t.prevRanges, n.mapping) : xb(n.mapping.maps);
31103
31108
  return new ar(t.done.addTransform(n, l ? e.selection.getBookmark() : void 0, r, ya(e)), un.empty, c, n.time, a ?? t.prevComposition);
31104
31109
  } else return (o = n.getMeta("rebased")) ? new ar(t.done.rebased(n, o), t.undone.rebased(n, o), Bu(t.prevRanges, n.mapping), t.prevTime, t.prevComposition) : new ar(t.done.addMaps(n.mapping.maps), t.undone.addMaps(n.mapping.maps), Bu(t.prevRanges, n.mapping), t.prevTime, t.prevComposition);
31105
31110
  }
31106
- function pH(t, e) {
31111
+ function hH(t, e) {
31107
31112
  if (!e)
31108
31113
  return !1;
31109
31114
  if (!t.docChanged)
@@ -31130,7 +31135,7 @@ function Bu(t, e) {
31130
31135
  }
31131
31136
  return n;
31132
31137
  }
31133
- function hH(t, e, n) {
31138
+ function mH(t, e, n) {
31134
31139
  let r = ya(e), i = ii.get(e).spec.config, o = (n ? t.undone : t.done).popEvent(e, r);
31135
31140
  if (!o)
31136
31141
  return null;
@@ -31150,8 +31155,8 @@ function ya(t) {
31150
31155
  }
31151
31156
  return Lu;
31152
31157
  }
31153
- const ii = new Yt("history"), mH = new Yt("closeHistory");
31154
- function gH(t = {}) {
31158
+ const ii = new Yt("history"), gH = new Yt("closeHistory");
31159
+ function vH(t = {}) {
31155
31160
  return t = {
31156
31161
  depth: t.depth || 100,
31157
31162
  newGroupDelay: t.newGroupDelay || 500
@@ -31162,7 +31167,7 @@ function gH(t = {}) {
31162
31167
  return new ar(un.empty, un.empty, null, 0, -1);
31163
31168
  },
31164
31169
  apply(e, n, r) {
31165
- return fH(n, r, e, t);
31170
+ return pH(n, r, e, t);
31166
31171
  }
31167
31172
  },
31168
31173
  config: t,
@@ -31182,13 +31187,13 @@ function Aw(t, e) {
31182
31187
  if (!i || (t ? i.undone : i.done).eventCount == 0)
31183
31188
  return !1;
31184
31189
  if (r) {
31185
- let o = hH(i, n, t);
31190
+ let o = mH(i, n, t);
31186
31191
  o && r(e ? o.scrollIntoView() : o);
31187
31192
  }
31188
31193
  return !0;
31189
31194
  };
31190
31195
  }
31191
- const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31196
+ const Tw = Aw(!1, !0), kw = Aw(!0, !0), bH = Ot.create({
31192
31197
  name: "history",
31193
31198
  addOptions() {
31194
31199
  return {
@@ -31204,7 +31209,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31204
31209
  },
31205
31210
  addProseMirrorPlugins() {
31206
31211
  return [
31207
- gH(this.options)
31212
+ vH(this.options)
31208
31213
  ];
31209
31214
  },
31210
31215
  addKeyboardShortcuts() {
@@ -31217,7 +31222,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31217
31222
  "Shift-Mod-я": () => this.editor.commands.redo()
31218
31223
  };
31219
31224
  }
31220
- }), bH = vn.create({
31225
+ }), yH = vn.create({
31221
31226
  name: "horizontalRule",
31222
31227
  addOptions() {
31223
31228
  return {
@@ -31240,7 +31245,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31240
31245
  to: i.pos
31241
31246
  }, {
31242
31247
  type: this.name
31243
- }) : az(n) ? o.insertContentAt(i.pos, {
31248
+ }) : lz(n) ? o.insertContentAt(i.pos, {
31244
31249
  type: this.name
31245
31250
  }) : o.insertContent({ type: this.name }), o.command(({ tr: s, dispatch: a }) => {
31246
31251
  var l;
@@ -31261,13 +31266,13 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31261
31266
  },
31262
31267
  addInputRules() {
31263
31268
  return [
31264
- Lz({
31269
+ jz({
31265
31270
  find: /^(?:---|—-|___\s|\*\*\*\s)$/,
31266
31271
  type: this.type
31267
31272
  })
31268
31273
  ];
31269
31274
  }
31270
- }), yH = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, xH = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, CH = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, SH = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, wH = pn.create({
31275
+ }), xH = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, CH = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, SH = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, wH = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, IH = pn.create({
31271
31276
  name: "italic",
31272
31277
  addOptions() {
31273
31278
  return {
@@ -31311,11 +31316,11 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31311
31316
  addInputRules() {
31312
31317
  return [
31313
31318
  Ki({
31314
- find: yH,
31319
+ find: xH,
31315
31320
  type: this.type
31316
31321
  }),
31317
31322
  Ki({
31318
- find: CH,
31323
+ find: SH,
31319
31324
  type: this.type
31320
31325
  })
31321
31326
  ];
@@ -31323,16 +31328,16 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31323
31328
  addPasteRules() {
31324
31329
  return [
31325
31330
  di({
31326
- find: xH,
31331
+ find: CH,
31327
31332
  type: this.type
31328
31333
  }),
31329
31334
  di({
31330
- find: SH,
31335
+ find: wH,
31331
31336
  type: this.type
31332
31337
  })
31333
31338
  ];
31334
31339
  }
31335
- }), IH = vn.create({
31340
+ }), EH = vn.create({
31336
31341
  name: "listItem",
31337
31342
  addOptions() {
31338
31343
  return {
@@ -31360,7 +31365,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31360
31365
  "Shift-Tab": () => this.editor.commands.liftListItem(this.name)
31361
31366
  };
31362
31367
  }
31363
- }), EH = "listItem", Sb = "textStyle", wb = /^(\d+)\.\s$/, AH = vn.create({
31368
+ }), AH = "listItem", Sb = "textStyle", wb = /^(\d+)\.\s$/, TH = vn.create({
31364
31369
  name: "orderedList",
31365
31370
  addOptions() {
31366
31371
  return {
@@ -31399,7 +31404,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31399
31404
  },
31400
31405
  addCommands() {
31401
31406
  return {
31402
- toggleOrderedList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(EH, this.editor.getAttributes(Sb)).run() : t.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
31407
+ toggleOrderedList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(AH, this.editor.getAttributes(Sb)).run() : t.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
31403
31408
  };
31404
31409
  },
31405
31410
  addKeyboardShortcuts() {
@@ -31426,7 +31431,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31426
31431
  t
31427
31432
  ];
31428
31433
  }
31429
- }), TH = vn.create({
31434
+ }), kH = vn.create({
31430
31435
  name: "paragraph",
31431
31436
  priority: 1e3,
31432
31437
  addOptions() {
@@ -31454,7 +31459,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31454
31459
  "Mod-Alt-0": () => this.editor.commands.setParagraph()
31455
31460
  };
31456
31461
  }
31457
- }), kH = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, MH = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, OH = pn.create({
31462
+ }), MH = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, OH = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, RH = pn.create({
31458
31463
  name: "strike",
31459
31464
  addOptions() {
31460
31465
  return {
@@ -31497,7 +31502,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31497
31502
  addInputRules() {
31498
31503
  return [
31499
31504
  Ki({
31500
- find: kH,
31505
+ find: MH,
31501
31506
  type: this.type
31502
31507
  })
31503
31508
  ];
@@ -31505,35 +31510,35 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31505
31510
  addPasteRules() {
31506
31511
  return [
31507
31512
  di({
31508
- find: MH,
31513
+ find: OH,
31509
31514
  type: this.type
31510
31515
  })
31511
31516
  ];
31512
31517
  }
31513
- }), RH = vn.create({
31518
+ }), PH = vn.create({
31514
31519
  name: "text",
31515
31520
  group: "inline"
31516
- }), PH = Ot.create({
31521
+ }), DH = Ot.create({
31517
31522
  name: "starterKit",
31518
31523
  addExtensions() {
31519
31524
  var t, e, n, r, i, o, s, a, l, c, u, d, f, p, h, m, g, v;
31520
31525
  const y = [];
31521
- return this.options.bold !== !1 && y.push(G_.configure((t = this.options) === null || t === void 0 ? void 0 : t.bold)), this.options.blockquote !== !1 && y.push(F_.configure((e = this.options) === null || e === void 0 ? void 0 : e.blockquote)), this.options.bulletList !== !1 && y.push(__.configure((n = this.options) === null || n === void 0 ? void 0 : n.bulletList)), this.options.code !== !1 && y.push(W_.configure((r = this.options) === null || r === void 0 ? void 0 : r.code)), this.options.codeBlock !== !1 && y.push(Z_.configure((i = this.options) === null || i === void 0 ? void 0 : i.codeBlock)), this.options.document !== !1 && y.push(J_.configure((o = this.options) === null || o === void 0 ? void 0 : o.document)), this.options.dropcursor !== !1 && y.push(q_.configure((s = this.options) === null || s === void 0 ? void 0 : s.dropcursor)), this.options.gapcursor !== !1 && y.push(sH.configure((a = this.options) === null || a === void 0 ? void 0 : a.gapcursor)), this.options.hardBreak !== !1 && y.push(aH.configure((l = this.options) === null || l === void 0 ? void 0 : l.hardBreak)), this.options.heading !== !1 && y.push(mw.configure((c = this.options) === null || c === void 0 ? void 0 : c.heading)), this.options.history !== !1 && y.push(vH.configure((u = this.options) === null || u === void 0 ? void 0 : u.history)), this.options.horizontalRule !== !1 && y.push(bH.configure((d = this.options) === null || d === void 0 ? void 0 : d.horizontalRule)), this.options.italic !== !1 && y.push(wH.configure((f = this.options) === null || f === void 0 ? void 0 : f.italic)), this.options.listItem !== !1 && y.push(IH.configure((p = this.options) === null || p === void 0 ? void 0 : p.listItem)), this.options.orderedList !== !1 && y.push(AH.configure((h = this.options) === null || h === void 0 ? void 0 : h.orderedList)), this.options.paragraph !== !1 && y.push(TH.configure((m = this.options) === null || m === void 0 ? void 0 : m.paragraph)), this.options.strike !== !1 && y.push(OH.configure((g = this.options) === null || g === void 0 ? void 0 : g.strike)), this.options.text !== !1 && y.push(RH.configure((v = this.options) === null || v === void 0 ? void 0 : v.text)), y;
31526
+ return this.options.bold !== !1 && y.push(z_.configure((t = this.options) === null || t === void 0 ? void 0 : t.bold)), this.options.blockquote !== !1 && y.push(V_.configure((e = this.options) === null || e === void 0 ? void 0 : e.blockquote)), this.options.bulletList !== !1 && y.push(H_.configure((n = this.options) === null || n === void 0 ? void 0 : n.bulletList)), this.options.code !== !1 && y.push(X_.configure((r = this.options) === null || r === void 0 ? void 0 : r.code)), this.options.codeBlock !== !1 && y.push(J_.configure((i = this.options) === null || i === void 0 ? void 0 : i.codeBlock)), this.options.document !== !1 && y.push(U_.configure((o = this.options) === null || o === void 0 ? void 0 : o.document)), this.options.dropcursor !== !1 && y.push(Q_.configure((s = this.options) === null || s === void 0 ? void 0 : s.dropcursor)), this.options.gapcursor !== !1 && y.push(aH.configure((a = this.options) === null || a === void 0 ? void 0 : a.gapcursor)), this.options.hardBreak !== !1 && y.push(lH.configure((l = this.options) === null || l === void 0 ? void 0 : l.hardBreak)), this.options.heading !== !1 && y.push(mw.configure((c = this.options) === null || c === void 0 ? void 0 : c.heading)), this.options.history !== !1 && y.push(bH.configure((u = this.options) === null || u === void 0 ? void 0 : u.history)), this.options.horizontalRule !== !1 && y.push(yH.configure((d = this.options) === null || d === void 0 ? void 0 : d.horizontalRule)), this.options.italic !== !1 && y.push(IH.configure((f = this.options) === null || f === void 0 ? void 0 : f.italic)), this.options.listItem !== !1 && y.push(EH.configure((p = this.options) === null || p === void 0 ? void 0 : p.listItem)), this.options.orderedList !== !1 && y.push(TH.configure((h = this.options) === null || h === void 0 ? void 0 : h.orderedList)), this.options.paragraph !== !1 && y.push(kH.configure((m = this.options) === null || m === void 0 ? void 0 : m.paragraph)), this.options.strike !== !1 && y.push(RH.configure((g = this.options) === null || g === void 0 ? void 0 : g.strike)), this.options.text !== !1 && y.push(PH.configure((v = this.options) === null || v === void 0 ? void 0 : v.text)), y;
31522
31527
  }
31523
- }), DH = [
31528
+ }), NH = [
31524
31529
  { shortcuts: ["ctrl", "alt", "1"], level: 1 },
31525
31530
  { shortcuts: ["ctrl", "alt", "2"], level: 2 },
31526
31531
  { shortcuts: ["ctrl", "alt", "3"], level: 3 },
31527
31532
  { shortcuts: ["ctrl", "alt", "4"], level: 4 }
31528
31533
  // {shortcuts: ['ctrl', 'alt', '5'],level: 5},
31529
31534
  // {shortcuts: ['ctrl', 'alt', '6'],level: 6}
31530
- ], NH = {
31535
+ ], FH = {
31531
31536
  1: "mob-headline-bold-m desktop:desk-headline-bold-l",
31532
31537
  2: "mob-headline-bold-s desktop:desk-headline-bold-m",
31533
31538
  3: "mob-title-bold-l desktop:desk-title-bold-l",
31534
31539
  4: "mob-title-bold-m desktop:desk-title-bold-s"
31535
31540
  //TODO: Добавить h5/h6 для компонента heading , после добавить сюда
31536
- }, FH = [
31541
+ }, VH = [
31537
31542
  { name: "Черный", color: "#292929" },
31538
31543
  { name: "Белый", color: "#FFFFFF" },
31539
31544
  { name: "Темный-серый", color: "#40465A" },
@@ -31546,7 +31551,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31546
31551
  { name: "Зеленый", color: "#76BC21" },
31547
31552
  { name: "Оранжевый", color: "#F49F00" },
31548
31553
  { name: "Красный", color: "#F42500" }
31549
- ], VH = (t) => [
31554
+ ], BH = (t) => [
31550
31555
  {
31551
31556
  label: "Жирный текст",
31552
31557
  icon: /* @__PURE__ */ b.jsx(ze, { name: "editor/bold", className: "size-4" }),
@@ -31607,8 +31612,8 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31607
31612
  icon: /* @__PURE__ */ b.jsx(ze, { name: "general/close", className: "size-4" }),
31608
31613
  onClick: () => t.commands.clearContent()
31609
31614
  }
31610
- ], BH = [
31611
- PH.configure({
31615
+ ], LH = [
31616
+ DH.configure({
31612
31617
  heading: !1,
31613
31618
  bold: {
31614
31619
  HTMLAttributes: {
@@ -31626,9 +31631,9 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31626
31631
  }
31627
31632
  }
31628
31633
  }),
31629
- D_,
31630
- l_,
31634
+ N_,
31631
31635
  c_,
31636
+ u_,
31632
31637
  mw.configure({
31633
31638
  levels: [1, 2, 3, 4, 5, 6]
31634
31639
  }).extend({
@@ -31637,21 +31642,21 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31637
31642
  return [
31638
31643
  `h${r}`,
31639
31644
  ct(this.options.HTMLAttributes, e, {
31640
- class: `${NH[r]}`
31645
+ class: `${FH[r]}`
31641
31646
  }),
31642
31647
  0
31643
31648
  ];
31644
31649
  }
31645
31650
  }),
31646
- P_.configure({
31651
+ D_.configure({
31647
31652
  openOnClick: !0,
31648
31653
  HTMLAttributes: {
31649
31654
  class: "text-color-primary-default underline underline-offset-4"
31650
31655
  }
31651
31656
  })
31652
- ], LH = ({ editor: t }) => {
31657
+ ], jH = ({ editor: t }) => {
31653
31658
  var e;
31654
- return /* @__PURE__ */ b.jsx("div", { className: "flex items-center gap-3", children: (e = VH(t)) == null ? void 0 : e.map(({ label: n, icon: r, onClick: i, isActive: o }) => /* @__PURE__ */ b.jsx(
31659
+ return /* @__PURE__ */ b.jsx("div", { className: "flex items-center gap-3", children: (e = BH(t)) == null ? void 0 : e.map(({ label: n, icon: r, onClick: i, isActive: o }) => /* @__PURE__ */ b.jsx(
31655
31660
  Wy,
31656
31661
  {
31657
31662
  sideOffset: 12,
@@ -31674,7 +31679,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31674
31679
  },
31675
31680
  n
31676
31681
  )) });
31677
- }, jH = ({ editor: t }) => /* @__PURE__ */ b.jsx(
31682
+ }, GH = ({ editor: t }) => /* @__PURE__ */ b.jsx(
31678
31683
  Zb,
31679
31684
  {
31680
31685
  classes: { content: "w-full" },
@@ -31686,7 +31691,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31686
31691
  children: /* @__PURE__ */ b.jsx(ze, { name: "editor/heading", className: "size-4" })
31687
31692
  }
31688
31693
  ),
31689
- children: /* @__PURE__ */ b.jsx("div", { className: "flex w-full flex-1 flex-col gap-2", children: DH.map(({ level: e, shortcuts: n }) => /* @__PURE__ */ b.jsxs("div", { className: "flex items-center gap-4 border-b border-solid border-warm-grey-200 pb-4 last:border-none", children: [
31694
+ children: /* @__PURE__ */ b.jsx("div", { className: "flex w-full flex-1 flex-col gap-2", children: NH.map(({ level: e, shortcuts: n }) => /* @__PURE__ */ b.jsxs("div", { className: "flex items-center gap-4 border-b border-solid border-warm-grey-200 pb-4 last:border-none", children: [
31690
31695
  /* @__PURE__ */ b.jsx(
31691
31696
  "button",
31692
31697
  {
@@ -31702,12 +31707,12 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31702
31707
  /* @__PURE__ */ b.jsx(AR, { keyList: n })
31703
31708
  ] }, e)) })
31704
31709
  }
31705
- ), GH = yI.string().url(), zH = ({ editor: t }) => {
31710
+ ), zH = yI.string().url(), _H = ({ editor: t }) => {
31706
31711
  const e = fe(() => {
31707
31712
  const n = t == null ? void 0 : t.getAttributes("link").href, r = window == null ? void 0 : window.prompt("URL", n);
31708
31713
  if (r === null)
31709
31714
  return;
31710
- if (GH.safeParse(r).success)
31715
+ if (zH.safeParse(r).success)
31711
31716
  Po({ intent: "info", text: "Ссылка успешно вставлена" });
31712
31717
  else {
31713
31718
  Po({ intent: "error", text: "Невалидная ссылка" });
@@ -31731,7 +31736,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31731
31736
  children: /* @__PURE__ */ b.jsx(ze, { name: "editor/link", className: "size-4" })
31732
31737
  }
31733
31738
  );
31734
- }, _H = ({ editor: t }) => /* @__PURE__ */ b.jsx(
31739
+ }, HH = ({ editor: t }) => /* @__PURE__ */ b.jsx(
31735
31740
  Zb,
31736
31741
  {
31737
31742
  classes: {
@@ -31746,7 +31751,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31746
31751
  children: /* @__PURE__ */ b.jsx(ze, { name: "editor/palette", className: "size-4" })
31747
31752
  }
31748
31753
  ),
31749
- children: /* @__PURE__ */ b.jsx("div", { className: "grid grid-cols-2 gap-3", children: FH.map(({ name: e, color: n }) => /* @__PURE__ */ b.jsx(
31754
+ children: /* @__PURE__ */ b.jsx("div", { className: "grid grid-cols-2 gap-3", children: VH.map(({ name: e, color: n }) => /* @__PURE__ */ b.jsx(
31750
31755
  "button",
31751
31756
  {
31752
31757
  type: "button",
@@ -31761,16 +31766,16 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31761
31766
  e
31762
31767
  )) })
31763
31768
  }
31764
- ), HH = ({ editor: t }) => /* @__PURE__ */ b.jsxs("div", { className: "flex items-center gap-12 bg-color-blue-grey-200 px-4 py-3", children: [
31765
- /* @__PURE__ */ b.jsx(LH, { editor: t }),
31769
+ ), $H = ({ editor: t }) => /* @__PURE__ */ b.jsxs("div", { className: "flex items-center gap-12 bg-color-blue-grey-200 px-4 py-3", children: [
31770
+ /* @__PURE__ */ b.jsx(jH, { editor: t }),
31766
31771
  /* @__PURE__ */ b.jsxs("div", { className: "flex items-center gap-2", children: [
31767
- /* @__PURE__ */ b.jsx(_H, { editor: t }),
31768
- /* @__PURE__ */ b.jsx(jH, { editor: t }),
31769
- /* @__PURE__ */ b.jsx(zH, { editor: t })
31772
+ /* @__PURE__ */ b.jsx(HH, { editor: t }),
31773
+ /* @__PURE__ */ b.jsx(GH, { editor: t }),
31774
+ /* @__PURE__ */ b.jsx(_H, { editor: t })
31770
31775
  ] })
31771
- ] }), $H = ({ onChange: t, value: e, label: n, error: r, classes: i, editable: o, helperText: s, ...a }) => {
31772
- const l = i_({
31773
- extensions: BH,
31776
+ ] }), WH = ({ onChange: t, value: e, label: n, error: r, classes: i, editable: o, helperText: s, ...a }) => {
31777
+ const l = o_({
31778
+ extensions: LH,
31774
31779
  editable: o,
31775
31780
  content: e,
31776
31781
  onUpdate: ({ editor: c }) => {
@@ -31792,9 +31797,9 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31792
31797
  });
31793
31798
  return l ? /* @__PURE__ */ b.jsxs("div", { className: O("flex flex-col", i == null ? void 0 : i.root), children: [
31794
31799
  /* @__PURE__ */ b.jsxs("div", { className: O("relative flex w-full flex-col rounded-md border border-solid border-warm-grey-200", i == null ? void 0 : i.wrapper), children: [
31795
- /* @__PURE__ */ b.jsx(HH, { editor: l }),
31800
+ /* @__PURE__ */ b.jsx($H, { editor: l }),
31796
31801
  !e && /* @__PURE__ */ b.jsx("p", { className: O("absolute left-4 top-16 text-color-disabled", i == null ? void 0 : i.label), children: n }),
31797
- /* @__PURE__ */ b.jsx(Yz, { editor: l })
31802
+ /* @__PURE__ */ b.jsx(Zz, { editor: l })
31798
31803
  ] }),
31799
31804
  /* @__PURE__ */ b.jsx(
31800
31805
  sn,
@@ -31806,7 +31811,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31806
31811
  }
31807
31812
  )
31808
31813
  ] }) : null;
31809
- }, q$ = ({
31814
+ }, Q$ = ({
31810
31815
  control: t,
31811
31816
  label: e,
31812
31817
  helperText: n,
@@ -31819,7 +31824,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31819
31824
  name: o.name,
31820
31825
  control: t,
31821
31826
  render: ({ field: { onChange: s, value: a }, fieldState: { error: l } }) => /* @__PURE__ */ b.jsx(
31822
- $H,
31827
+ WH,
31823
31828
  {
31824
31829
  onChange: s,
31825
31830
  value: a ?? "",
@@ -31845,7 +31850,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31845
31850
  FileTooLarge: "file-too-large",
31846
31851
  FileTooSmall: "file-too-small",
31847
31852
  TooManyFiles: "too-many-files"
31848
- }, WH = pi(function({ dropzoneState: e, classes: n, disabled: r, error: i, name: o }, s) {
31853
+ }, XH = pi(function({ dropzoneState: e, classes: n, disabled: r, error: i, name: o }, s) {
31849
31854
  const a = e.getRootProps();
31850
31855
  return /* @__PURE__ */ b.jsxs(
31851
31856
  "div",
@@ -31890,7 +31895,7 @@ var bf = { exports: {} }, na = { exports: {} }, Be = {};
31890
31895
  * LICENSE file in the root directory of this source tree.
31891
31896
  */
31892
31897
  var Ib;
31893
- function XH() {
31898
+ function YH() {
31894
31899
  if (Ib) return Be;
31895
31900
  Ib = 1;
31896
31901
  var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, a = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, g = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, y = t ? Symbol.for("react.scope") : 60119;
@@ -31965,7 +31970,7 @@ var Le = {};
31965
31970
  * LICENSE file in the root directory of this source tree.
31966
31971
  */
31967
31972
  var Eb;
31968
- function YH() {
31973
+ function ZH() {
31969
31974
  return Eb || (Eb = 1, process.env.NODE_ENV !== "production" && function() {
31970
31975
  var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, a = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, g = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, y = t ? Symbol.for("react.scope") : 60119;
31971
31976
  function C(D) {
@@ -32049,7 +32054,7 @@ function YH() {
32049
32054
  }
32050
32055
  var Ab;
32051
32056
  function Ow() {
32052
- return Ab || (Ab = 1, process.env.NODE_ENV === "production" ? na.exports = XH() : na.exports = YH()), na.exports;
32057
+ return Ab || (Ab = 1, process.env.NODE_ENV === "production" ? na.exports = YH() : na.exports = ZH()), na.exports;
32053
32058
  }
32054
32059
  /*
32055
32060
  object-assign
@@ -32057,7 +32062,7 @@ object-assign
32057
32062
  @license MIT
32058
32063
  */
32059
32064
  var Gu, Tb;
32060
- function ZH() {
32065
+ function JH() {
32061
32066
  if (Tb) return Gu;
32062
32067
  Tb = 1;
32063
32068
  var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
@@ -32114,7 +32119,7 @@ function Rw() {
32114
32119
  return Mb || (Mb = 1, _u = Function.call.bind(Object.prototype.hasOwnProperty)), _u;
32115
32120
  }
32116
32121
  var Hu, Ob;
32117
- function JH() {
32122
+ function UH() {
32118
32123
  if (Ob) return Hu;
32119
32124
  Ob = 1;
32120
32125
  var t = function() {
@@ -32163,10 +32168,10 @@ function JH() {
32163
32168
  }, Hu = i, Hu;
32164
32169
  }
32165
32170
  var $u, Rb;
32166
- function UH() {
32171
+ function KH() {
32167
32172
  if (Rb) return $u;
32168
32173
  Rb = 1;
32169
- var t = Ow(), e = ZH(), n = Ih(), r = Rw(), i = JH(), o = function() {
32174
+ var t = Ow(), e = JH(), n = Ih(), r = Rw(), i = UH(), o = function() {
32170
32175
  };
32171
32176
  process.env.NODE_ENV !== "production" && (o = function(a) {
32172
32177
  var l = "Warning: " + a;
@@ -32484,7 +32489,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " ")
32484
32489
  }, $u;
32485
32490
  }
32486
32491
  var Wu, Pb;
32487
- function KH() {
32492
+ function qH() {
32488
32493
  if (Pb) return Wu;
32489
32494
  Pb = 1;
32490
32495
  var t = Ih();
@@ -32532,12 +32537,12 @@ function KH() {
32532
32537
  }, Wu;
32533
32538
  }
32534
32539
  if (process.env.NODE_ENV !== "production") {
32535
- var qH = Ow(), QH = !0;
32536
- bf.exports = UH()(qH.isElement, QH);
32540
+ var QH = Ow(), e5 = !0;
32541
+ bf.exports = KH()(QH.isElement, e5);
32537
32542
  } else
32538
- bf.exports = KH()();
32539
- var e5 = bf.exports;
32540
- const He = /* @__PURE__ */ xI(e5), t5 = /* @__PURE__ */ new Map([
32543
+ bf.exports = qH()();
32544
+ var t5 = bf.exports;
32545
+ const He = /* @__PURE__ */ xI(t5), n5 = /* @__PURE__ */ new Map([
32541
32546
  // https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
32542
32547
  ["1km", "application/vnd.1000minds.decision-model+xml"],
32543
32548
  ["3dml", "text/vnd.in3d.3dml"],
@@ -33741,13 +33746,13 @@ const He = /* @__PURE__ */ xI(e5), t5 = /* @__PURE__ */ new Map([
33741
33746
  ["zsh", "text/x-scriptzsh"]
33742
33747
  ]);
33743
33748
  function Qi(t, e, n) {
33744
- const r = n5(t), { webkitRelativePath: i } = t, o = typeof e == "string" ? e : typeof i == "string" && i.length > 0 ? i : `./${t.name}`;
33749
+ const r = r5(t), { webkitRelativePath: i } = t, o = typeof e == "string" ? e : typeof i == "string" && i.length > 0 ? i : `./${t.name}`;
33745
33750
  return typeof r.path != "string" && Db(r, "path", o), Db(r, "relativePath", o), r;
33746
33751
  }
33747
- function n5(t) {
33752
+ function r5(t) {
33748
33753
  const { name: e } = t;
33749
33754
  if (e && e.lastIndexOf(".") !== -1 && !t.type) {
33750
- const r = e.split(".").pop().toLowerCase(), i = t5.get(r);
33755
+ const r = e.split(".").pop().toLowerCase(), i = n5.get(r);
33751
33756
  i && Object.defineProperty(t, "type", {
33752
33757
  value: i,
33753
33758
  writable: !1,
@@ -33765,49 +33770,49 @@ function Db(t, e, n) {
33765
33770
  enumerable: !0
33766
33771
  });
33767
33772
  }
33768
- const r5 = [
33773
+ const i5 = [
33769
33774
  // Thumbnail cache files for macOS and Windows
33770
33775
  ".DS_Store",
33771
33776
  // macOs
33772
33777
  "Thumbs.db"
33773
33778
  // Windows
33774
33779
  ];
33775
- function i5(t) {
33780
+ function o5(t) {
33776
33781
  return fi(this, void 0, void 0, function* () {
33777
- return Ol(t) && o5(t.dataTransfer) ? c5(t.dataTransfer, t.type) : s5(t) ? a5(t) : Array.isArray(t) && t.every((e) => "getFile" in e && typeof e.getFile == "function") ? l5(t) : [];
33782
+ return Ol(t) && s5(t.dataTransfer) ? u5(t.dataTransfer, t.type) : a5(t) ? l5(t) : Array.isArray(t) && t.every((e) => "getFile" in e && typeof e.getFile == "function") ? c5(t) : [];
33778
33783
  });
33779
33784
  }
33780
- function o5(t) {
33785
+ function s5(t) {
33781
33786
  return Ol(t);
33782
33787
  }
33783
- function s5(t) {
33788
+ function a5(t) {
33784
33789
  return Ol(t) && Ol(t.target);
33785
33790
  }
33786
33791
  function Ol(t) {
33787
33792
  return typeof t == "object" && t !== null;
33788
33793
  }
33789
- function a5(t) {
33794
+ function l5(t) {
33790
33795
  return yf(t.target.files).map((e) => Qi(e));
33791
33796
  }
33792
- function l5(t) {
33797
+ function c5(t) {
33793
33798
  return fi(this, void 0, void 0, function* () {
33794
33799
  return (yield Promise.all(t.map((n) => n.getFile()))).map((n) => Qi(n));
33795
33800
  });
33796
33801
  }
33797
- function c5(t, e) {
33802
+ function u5(t, e) {
33798
33803
  return fi(this, void 0, void 0, function* () {
33799
33804
  if (t.items) {
33800
33805
  const n = yf(t.items).filter((i) => i.kind === "file");
33801
33806
  if (e !== "drop")
33802
33807
  return n;
33803
- const r = yield Promise.all(n.map(u5));
33808
+ const r = yield Promise.all(n.map(d5));
33804
33809
  return Nb(Pw(r));
33805
33810
  }
33806
33811
  return Nb(yf(t.files).map((n) => Qi(n)));
33807
33812
  });
33808
33813
  }
33809
33814
  function Nb(t) {
33810
- return t.filter((e) => r5.indexOf(e.name) === -1);
33815
+ return t.filter((e) => i5.indexOf(e.name) === -1);
33811
33816
  }
33812
33817
  function yf(t) {
33813
33818
  if (t === null)
@@ -33819,7 +33824,7 @@ function yf(t) {
33819
33824
  }
33820
33825
  return e;
33821
33826
  }
33822
- function u5(t) {
33827
+ function d5(t) {
33823
33828
  if (typeof t.webkitGetAsEntry != "function")
33824
33829
  return Fb(t);
33825
33830
  const e = t.webkitGetAsEntry();
@@ -33849,9 +33854,9 @@ function Fb(t, e) {
33849
33854
  return Qi(r, (n = e == null ? void 0 : e.fullPath) !== null && n !== void 0 ? n : void 0);
33850
33855
  });
33851
33856
  }
33852
- function d5(t) {
33857
+ function f5(t) {
33853
33858
  return fi(this, void 0, void 0, function* () {
33854
- return t.isDirectory ? Dw(t) : f5(t);
33859
+ return t.isDirectory ? Dw(t) : p5(t);
33855
33860
  });
33856
33861
  }
33857
33862
  function Dw(t) {
@@ -33861,7 +33866,7 @@ function Dw(t) {
33861
33866
  function o() {
33862
33867
  e.readEntries((s) => fi(this, void 0, void 0, function* () {
33863
33868
  if (s.length) {
33864
- const a = Promise.all(s.map(d5));
33869
+ const a = Promise.all(s.map(f5));
33865
33870
  i.push(a), o();
33866
33871
  } else
33867
33872
  try {
@@ -33877,7 +33882,7 @@ function Dw(t) {
33877
33882
  o();
33878
33883
  });
33879
33884
  }
33880
- function f5(t) {
33885
+ function p5(t) {
33881
33886
  return fi(this, void 0, void 0, function* () {
33882
33887
  return new Promise((e, n) => {
33883
33888
  t.file((r) => {
@@ -33903,16 +33908,16 @@ var Xu = function(t, e) {
33903
33908
  return !0;
33904
33909
  };
33905
33910
  function Vb(t) {
33906
- return m5(t) || h5(t) || Fw(t) || p5();
33911
+ return g5(t) || m5(t) || Fw(t) || h5();
33907
33912
  }
33908
- function p5() {
33913
+ function h5() {
33909
33914
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
33910
33915
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
33911
33916
  }
33912
- function h5(t) {
33917
+ function m5(t) {
33913
33918
  if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
33914
33919
  }
33915
- function m5(t) {
33920
+ function g5(t) {
33916
33921
  if (Array.isArray(t)) return xf(t);
33917
33922
  }
33918
33923
  function Bb(t, e) {
@@ -33940,9 +33945,9 @@ function Nw(t, e, n) {
33940
33945
  return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
33941
33946
  }
33942
33947
  function ps(t, e) {
33943
- return b5(t) || v5(t, e) || Fw(t, e) || g5();
33948
+ return y5(t) || b5(t, e) || Fw(t, e) || v5();
33944
33949
  }
33945
- function g5() {
33950
+ function v5() {
33946
33951
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
33947
33952
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
33948
33953
  }
@@ -33960,7 +33965,7 @@ function xf(t, e) {
33960
33965
  r[n] = t[n];
33961
33966
  return r;
33962
33967
  }
33963
- function v5(t, e) {
33968
+ function b5(t, e) {
33964
33969
  var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
33965
33970
  if (n != null) {
33966
33971
  var r = [], i = !0, o = !1, s, a;
@@ -33979,32 +33984,32 @@ function v5(t, e) {
33979
33984
  return r;
33980
33985
  }
33981
33986
  }
33982
- function b5(t) {
33987
+ function y5(t) {
33983
33988
  if (Array.isArray(t)) return t;
33984
33989
  }
33985
- var y5 = typeof Xu == "function" ? Xu : Xu.default, x5 = "file-invalid-type", C5 = "file-too-large", S5 = "file-too-small", w5 = "too-many-files", I5 = function() {
33990
+ var x5 = typeof Xu == "function" ? Xu : Xu.default, C5 = "file-invalid-type", S5 = "file-too-large", w5 = "file-too-small", I5 = "too-many-files", E5 = function() {
33986
33991
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", n = e.split(","), r = n.length > 1 ? "one of ".concat(n.join(", ")) : n[0];
33987
33992
  return {
33988
- code: x5,
33993
+ code: C5,
33989
33994
  message: "File type must be ".concat(r)
33990
33995
  };
33991
33996
  }, jb = function(e) {
33992
33997
  return {
33993
- code: C5,
33998
+ code: S5,
33994
33999
  message: "File is larger than ".concat(e, " ").concat(e === 1 ? "byte" : "bytes")
33995
34000
  };
33996
34001
  }, Gb = function(e) {
33997
34002
  return {
33998
- code: S5,
34003
+ code: w5,
33999
34004
  message: "File is smaller than ".concat(e, " ").concat(e === 1 ? "byte" : "bytes")
34000
34005
  };
34001
- }, E5 = {
34002
- code: w5,
34006
+ }, A5 = {
34007
+ code: I5,
34003
34008
  message: "Too many files"
34004
34009
  };
34005
34010
  function Vw(t, e) {
34006
- var n = t.type === "application/x-moz-file" || y5(t, e);
34007
- return [n, n ? null : I5(e)];
34011
+ var n = t.type === "application/x-moz-file" || x5(t, e);
34012
+ return [n, n ? null : E5(e)];
34008
34013
  }
34009
34014
  function Bw(t, e, n) {
34010
34015
  if (zr(t.size))
@@ -34020,7 +34025,7 @@ function Bw(t, e, n) {
34020
34025
  function zr(t) {
34021
34026
  return t != null;
34022
34027
  }
34023
- function A5(t) {
34028
+ function T5(t) {
34024
34029
  var e = t.files, n = t.accept, r = t.minSize, i = t.maxSize, o = t.multiple, s = t.maxFiles, a = t.validator;
34025
34030
  return !o && e.length > 1 || o && s >= 1 && e.length > s ? !1 : e.every(function(l) {
34026
34031
  var c = Vw(l, n), u = ps(c, 1), d = u[0], f = Bw(l, r, i), p = ps(f, 1), h = p[0], m = a ? a(l) : null;
@@ -34038,15 +34043,15 @@ function ra(t) {
34038
34043
  function zb(t) {
34039
34044
  t.preventDefault();
34040
34045
  }
34041
- function T5(t) {
34046
+ function k5(t) {
34042
34047
  return t.indexOf("MSIE") !== -1 || t.indexOf("Trident/") !== -1;
34043
34048
  }
34044
- function k5(t) {
34049
+ function M5(t) {
34045
34050
  return t.indexOf("Edge/") !== -1;
34046
34051
  }
34047
- function M5() {
34052
+ function O5() {
34048
34053
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
34049
- return T5(t) || k5(t);
34054
+ return k5(t) || M5(t);
34050
34055
  }
34051
34056
  function yn() {
34052
34057
  for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
@@ -34059,10 +34064,10 @@ function yn() {
34059
34064
  });
34060
34065
  };
34061
34066
  }
34062
- function O5() {
34067
+ function R5() {
34063
34068
  return "showOpenFilePicker" in window;
34064
34069
  }
34065
- function R5(t) {
34070
+ function P5(t) {
34066
34071
  if (zr(t)) {
34067
34072
  var e = Object.entries(t).filter(function(n) {
34068
34073
  var r = ps(n, 2), i = r[0], o = r[1], s = !0;
@@ -34079,7 +34084,7 @@ function R5(t) {
34079
34084
  }
34080
34085
  return t;
34081
34086
  }
34082
- function P5(t) {
34087
+ function D5(t) {
34083
34088
  if (zr(t))
34084
34089
  return Object.entries(t).reduce(function(e, n) {
34085
34090
  var r = ps(n, 2), i = r[0], o = r[1];
@@ -34088,10 +34093,10 @@ function P5(t) {
34088
34093
  return Lw(e) || jw(e);
34089
34094
  }).join(",");
34090
34095
  }
34091
- function D5(t) {
34096
+ function N5(t) {
34092
34097
  return t instanceof DOMException && (t.name === "AbortError" || t.code === t.ABORT_ERR);
34093
34098
  }
34094
- function N5(t) {
34099
+ function F5(t) {
34095
34100
  return t instanceof DOMException && (t.name === "SecurityError" || t.code === t.SECURITY_ERR);
34096
34101
  }
34097
34102
  function Lw(t) {
@@ -34100,24 +34105,24 @@ function Lw(t) {
34100
34105
  function jw(t) {
34101
34106
  return /^.*\.[\w]+$/.test(t);
34102
34107
  }
34103
- var F5 = ["children"], V5 = ["open"], B5 = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], L5 = ["refKey", "onChange", "onClick"];
34104
- function j5(t) {
34105
- return _5(t) || z5(t) || Gw(t) || G5();
34108
+ var V5 = ["children"], B5 = ["open"], L5 = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], j5 = ["refKey", "onChange", "onClick"];
34109
+ function G5(t) {
34110
+ return H5(t) || _5(t) || Gw(t) || z5();
34106
34111
  }
34107
- function G5() {
34112
+ function z5() {
34108
34113
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
34109
34114
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
34110
34115
  }
34111
- function z5(t) {
34116
+ function _5(t) {
34112
34117
  if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
34113
34118
  }
34114
- function _5(t) {
34119
+ function H5(t) {
34115
34120
  if (Array.isArray(t)) return Cf(t);
34116
34121
  }
34117
34122
  function Yu(t, e) {
34118
- return W5(t) || $5(t, e) || Gw(t, e) || H5();
34123
+ return X5(t) || W5(t, e) || Gw(t, e) || $5();
34119
34124
  }
34120
- function H5() {
34125
+ function $5() {
34121
34126
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
34122
34127
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
34123
34128
  }
@@ -34135,7 +34140,7 @@ function Cf(t, e) {
34135
34140
  r[n] = t[n];
34136
34141
  return r;
34137
34142
  }
34138
- function $5(t, e) {
34143
+ function W5(t, e) {
34139
34144
  var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
34140
34145
  if (n != null) {
34141
34146
  var r = [], i = !0, o = !1, s, a;
@@ -34154,7 +34159,7 @@ function $5(t, e) {
34154
34159
  return r;
34155
34160
  }
34156
34161
  }
34157
- function W5(t) {
34162
+ function X5(t) {
34158
34163
  if (Array.isArray(t)) return t;
34159
34164
  }
34160
34165
  function _b(t, e) {
@@ -34183,7 +34188,7 @@ function Sf(t, e, n) {
34183
34188
  }
34184
34189
  function Pl(t, e) {
34185
34190
  if (t == null) return {};
34186
- var n = X5(t, e), r, i;
34191
+ var n = Y5(t, e), r, i;
34187
34192
  if (Object.getOwnPropertySymbols) {
34188
34193
  var o = Object.getOwnPropertySymbols(t);
34189
34194
  for (i = 0; i < o.length; i++)
@@ -34191,7 +34196,7 @@ function Pl(t, e) {
34191
34196
  }
34192
34197
  return n;
34193
34198
  }
34194
- function X5(t, e) {
34199
+ function Y5(t, e) {
34195
34200
  if (t == null) return {};
34196
34201
  var n = {}, r = Object.keys(t), i, o;
34197
34202
  for (o = 0; o < r.length; o++)
@@ -34199,7 +34204,7 @@ function X5(t, e) {
34199
34204
  return n;
34200
34205
  }
34201
34206
  var Eh = /* @__PURE__ */ pi(function(t, e) {
34202
- var n = t.children, r = Pl(t, F5), i = _w(r), o = i.open, s = Pl(i, V5);
34207
+ var n = t.children, r = Pl(t, V5), i = _w(r), o = i.open, s = Pl(i, B5);
34203
34208
  return EI(e, function() {
34204
34209
  return {
34205
34210
  open: o
@@ -34211,7 +34216,7 @@ var Eh = /* @__PURE__ */ pi(function(t, e) {
34211
34216
  Eh.displayName = "Dropzone";
34212
34217
  var zw = {
34213
34218
  disabled: !1,
34214
- getFilesFromEvent: i5,
34219
+ getFilesFromEvent: o5,
34215
34220
  maxSize: 1 / 0,
34216
34221
  minSize: 0,
34217
34222
  multiple: !0,
@@ -34405,14 +34410,14 @@ var wf = {
34405
34410
  };
34406
34411
  function _w() {
34407
34412
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = Ze(Ze({}, zw), t), n = e.accept, r = e.disabled, i = e.getFilesFromEvent, o = e.maxSize, s = e.minSize, a = e.multiple, l = e.maxFiles, c = e.onDragEnter, u = e.onDragLeave, d = e.onDragOver, f = e.onDrop, p = e.onDropAccepted, h = e.onDropRejected, m = e.onFileDialogCancel, g = e.onFileDialogOpen, v = e.useFsAccessApi, y = e.autoFocus, C = e.preventDropOnDocument, S = e.noClick, x = e.noKeyboard, E = e.noDrag, T = e.noDragEventsBubbling, A = e.onError, M = e.validator, L = we(function() {
34408
- return P5(n);
34413
+ return D5(n);
34409
34414
  }, [n]), X = we(function() {
34410
- return R5(n);
34415
+ return P5(n);
34411
34416
  }, [n]), V = we(function() {
34412
34417
  return typeof g == "function" ? g : Hb;
34413
34418
  }, [g]), _ = we(function() {
34414
34419
  return typeof m == "function" ? m : Hb;
34415
- }, [m]), j = de(null), Z = de(null), N = Ef(Y5, wf), B = Yu(N, 2), Q = B[0], ie = B[1], P = Q.isFocused, H = Q.isFileDialogActive, Y = de(typeof window < "u" && window.isSecureContext && v && O5()), z = function() {
34420
+ }, [m]), j = de(null), Z = de(null), N = Ef(Z5, wf), B = Yu(N, 2), Q = B[0], ie = B[1], P = Q.isFocused, H = Q.isFileDialogActive, Y = de(typeof window < "u" && window.isSecureContext && v && R5()), z = function() {
34416
34421
  !Y.current && H && setTimeout(function() {
34417
34422
  if (Z.current) {
34418
34423
  var U = Z.current.files;
@@ -34441,9 +34446,9 @@ function _w() {
34441
34446
  var te = fe(function(F) {
34442
34447
  A ? A(F) : console.error(F);
34443
34448
  }, [A]), re = fe(function(F) {
34444
- F.preventDefault(), F.persist(), R(F), ne.current = [].concat(j5(ne.current), [F.target]), ra(F) && Promise.resolve(i(F)).then(function(U) {
34449
+ F.preventDefault(), F.persist(), R(F), ne.current = [].concat(G5(ne.current), [F.target]), ra(F) && Promise.resolve(i(F)).then(function(U) {
34445
34450
  if (!(Rl(F) && !T)) {
34446
- var ye = U.length, Ie = ye > 0 && A5({
34451
+ var ye = U.length, Ie = ye > 0 && T5({
34447
34452
  files: U,
34448
34453
  accept: L,
34449
34454
  minSize: s,
@@ -34500,7 +34505,7 @@ function _w() {
34500
34505
  }), (!a && ye.length > 1 || a && l >= 1 && ye.length > l) && (ye.forEach(function(rt) {
34501
34506
  Ie.push({
34502
34507
  file: rt,
34503
- errors: [E5]
34508
+ errors: [A5]
34504
34509
  });
34505
34510
  }), ye.splice(0)), ie({
34506
34511
  acceptedFiles: ye,
@@ -34532,9 +34537,9 @@ function _w() {
34532
34537
  type: "closeDialog"
34533
34538
  });
34534
34539
  }).catch(function(U) {
34535
- D5(U) ? (_(U), ie({
34540
+ N5(U) ? (_(U), ie({
34536
34541
  type: "closeDialog"
34537
- })) : N5(U) ? (Y.current = !1, Z.current ? (Z.current.value = null, Z.current.click()) : te(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : te(U);
34542
+ })) : F5(U) ? (Y.current = !1, Z.current ? (Z.current.value = null, Z.current.click()) : te(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : te(U);
34538
34543
  });
34539
34544
  return;
34540
34545
  }
@@ -34552,7 +34557,7 @@ function _w() {
34552
34557
  type: "blur"
34553
34558
  });
34554
34559
  }, []), wt = fe(function() {
34555
- S || (M5() ? setTimeout(D, 0) : D());
34560
+ S || (O5() ? setTimeout(D, 0) : D());
34556
34561
  }, [S, D]), oe = function(U) {
34557
34562
  return r ? null : U;
34558
34563
  }, w = function(U) {
@@ -34563,7 +34568,7 @@ function _w() {
34563
34568
  T && U.stopPropagation();
34564
34569
  }, q = we(function() {
34565
34570
  return function() {
34566
- var F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, U = F.refKey, ye = U === void 0 ? "ref" : U, Ie = F.role, rt = F.onKeyDown, Pr = F.onFocus, bn = F.onBlur, Dr = F.onClick, ao = F.onDragEnter, yi = F.onDragOver, xi = F.onDragLeave, Ci = F.onDrop, Ac = Pl(F, B5);
34571
+ var F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, U = F.refKey, ye = U === void 0 ? "ref" : U, Ie = F.role, rt = F.onKeyDown, Pr = F.onFocus, bn = F.onBlur, Dr = F.onClick, ao = F.onDragEnter, yi = F.onDragOver, xi = F.onDragLeave, Ci = F.onDrop, Ac = Pl(F, L5);
34567
34572
  return Ze(Ze(Sf({
34568
34573
  onKeyDown: w(yn(rt, We)),
34569
34574
  onFocus: w(yn(Pr, ue)),
@@ -34582,7 +34587,7 @@ function _w() {
34582
34587
  F.stopPropagation();
34583
34588
  }, []), G = we(function() {
34584
34589
  return function() {
34585
- var F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, U = F.refKey, ye = U === void 0 ? "ref" : U, Ie = F.onChange, rt = F.onClick, Pr = Pl(F, L5), bn = Sf({
34590
+ var F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, U = F.refKey, ye = U === void 0 ? "ref" : U, Ie = F.onChange, rt = F.onClick, Pr = Pl(F, j5), bn = Sf({
34586
34591
  accept: L,
34587
34592
  multiple: a,
34588
34593
  type: "file",
@@ -34614,7 +34619,7 @@ function _w() {
34614
34619
  open: oe(D)
34615
34620
  });
34616
34621
  }
34617
- function Y5(t, e) {
34622
+ function Z5(t, e) {
34618
34623
  switch (e.type) {
34619
34624
  case "focus":
34620
34625
  return Ze(Ze({}, t), {}, {
@@ -34652,7 +34657,7 @@ function Y5(t, e) {
34652
34657
  }
34653
34658
  function Hb() {
34654
34659
  }
34655
- const Z5 = ({ dropzoneOptions: t, controlledFiles: e, onValueChange: n }) => {
34660
+ const J5 = ({ dropzoneOptions: t, controlledFiles: e, onValueChange: n }) => {
34656
34661
  const [r, i] = Oe({}), o = (l) => {
34657
34662
  const c = e.filter((u, d) => d !== l);
34658
34663
  n(c);
@@ -34690,7 +34695,7 @@ const Z5 = ({ dropzoneOptions: t, controlledFiles: e, onValueChange: n }) => {
34690
34695
  ...t
34691
34696
  });
34692
34697
  return { filesStatus: r, removeFile: o, dropzoneState: a };
34693
- }, J5 = ({ file: t, classes: e }) => {
34698
+ }, U5 = ({ file: t, classes: e }) => {
34694
34699
  const n = de(null), [r, i] = Oe(!1);
34695
34700
  return Re(() => {
34696
34701
  n.current && i(n.current.clientWidth > 300);
@@ -34701,20 +34706,20 @@ const Z5 = ({ dropzoneOptions: t, controlledFiles: e, onValueChange: n }) => {
34701
34706
  children: t.name
34702
34707
  }
34703
34708
  ) : /* @__PURE__ */ b.jsx("p", { ref: n, className: O("desk-body-regular-m text-color-dark", e == null ? void 0 : e.fileText), children: t.name }) });
34704
- }, U5 = ({ filesStatus: t, removeFile: e, classes: n, file: r, index: i }) => {
34709
+ }, K5 = ({ filesStatus: t, removeFile: e, classes: n, file: r, index: i }) => {
34705
34710
  const o = r.size / 1024 / 1024;
34706
34711
  return /* @__PURE__ */ b.jsxs("li", { className: O("flex h-6 items-center justify-between p-1", n == null ? void 0 : n.fileWrapperContent), children: [
34707
34712
  /* @__PURE__ */ b.jsxs("div", { className: O("flex items-center gap-2", n == null ? void 0 : n.fileContent), children: [
34708
34713
  t[r.name] === "loading" && /* @__PURE__ */ b.jsx(CI, { size: "sm" }),
34709
34714
  t[r.name] === "success" && /* @__PURE__ */ b.jsx(ze, { name: "general/check", className: "text-icon-positive-default" }),
34710
- /* @__PURE__ */ b.jsx(J5, { file: r, classes: n })
34715
+ /* @__PURE__ */ b.jsx(U5, { file: r, classes: n })
34711
34716
  ] }),
34712
34717
  /* @__PURE__ */ b.jsxs("div", { className: O("flex items-center gap-2", n == null ? void 0 : n.fileButtonDeleteWrapper), children: [
34713
34718
  /* @__PURE__ */ b.jsx("p", { className: "desk-body-regular-m text-color-blue-grey-600", children: `${o.toFixed(1)} MB` }),
34714
34719
  /* @__PURE__ */ b.jsx("button", { className: O("cursor-pointer", n == null ? void 0 : n.fileButtonDelete), onClick: () => e(i), children: /* @__PURE__ */ b.jsx(ze, { name: "general/close", className: O("text-icon-blue-grey-600", n == null ? void 0 : n.fileDeleteIcon) }) })
34715
34720
  ] })
34716
34721
  ] }, r.name);
34717
- }, K5 = ({ controlledFiles: t, filesStatus: e, classes: n, removeFile: r }) => t && t.length > 0 ? /* @__PURE__ */ b.jsx("ul", { className: O("flex max-w-[476px] flex-col gap-1 px-1", n == null ? void 0 : n.filesWrapperContent), children: t.map((o, s) => /* @__PURE__ */ b.jsx(U5, { file: o, index: s, filesStatus: e, removeFile: r, classes: n }, s)) }) : null, q5 = I.forwardRef(function({
34722
+ }, q5 = ({ controlledFiles: t, filesStatus: e, classes: n, removeFile: r }) => t && t.length > 0 ? /* @__PURE__ */ b.jsx("ul", { className: O("flex max-w-[476px] flex-col gap-1 px-1", n == null ? void 0 : n.filesWrapperContent), children: t.map((o, s) => /* @__PURE__ */ b.jsx(K5, { file: o, index: s, filesStatus: e, removeFile: r, classes: n }, s)) }) : null, Q5 = I.forwardRef(function({
34718
34723
  dropzoneOptions: e = Mw,
34719
34724
  controlledFiles: n,
34720
34725
  onValueChange: r,
@@ -34724,14 +34729,14 @@ const Z5 = ({ dropzoneOptions: t, controlledFiles: e, onValueChange: n }) => {
34724
34729
  classes: a,
34725
34730
  name: l
34726
34731
  }, c) {
34727
- const { filesStatus: u, removeFile: d, dropzoneState: f } = Z5({
34732
+ const { filesStatus: u, removeFile: d, dropzoneState: f } = J5({
34728
34733
  dropzoneOptions: e,
34729
34734
  controlledFiles: n,
34730
34735
  onValueChange: r
34731
34736
  });
34732
34737
  return /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
34733
34738
  /* @__PURE__ */ b.jsxs("div", { className: O("relative mb-3 w-[476px]", a == null ? void 0 : a.wrapperMainContent), children: [
34734
- /* @__PURE__ */ b.jsx(WH, { ref: c, name: l, classes: a, error: s, disabled: o, dropzoneState: f }),
34739
+ /* @__PURE__ */ b.jsx(XH, { ref: c, name: l, classes: a, error: s, disabled: o, dropzoneState: f }),
34735
34740
  /* @__PURE__ */ b.jsx(
34736
34741
  sn,
34737
34742
  {
@@ -34742,9 +34747,9 @@ const Z5 = ({ dropzoneOptions: t, controlledFiles: e, onValueChange: n }) => {
34742
34747
  }
34743
34748
  )
34744
34749
  ] }),
34745
- /* @__PURE__ */ b.jsx(K5, { filesStatus: u, removeFile: d, controlledFiles: n })
34750
+ /* @__PURE__ */ b.jsx(q5, { filesStatus: u, removeFile: d, controlledFiles: n })
34746
34751
  ] });
34747
- }), Q$ = ({
34752
+ }), eW = ({
34748
34753
  control: t,
34749
34754
  disabled: e,
34750
34755
  helperText: n,
@@ -34757,7 +34762,7 @@ const Z5 = ({ dropzoneOptions: t, controlledFiles: e, onValueChange: n }) => {
34757
34762
  control: t,
34758
34763
  name: o.name,
34759
34764
  render: ({ field: { onChange: s, ref: a, value: l }, fieldState: { error: c } }) => /* @__PURE__ */ b.jsx(
34760
- q5,
34765
+ Q5,
34761
34766
  {
34762
34767
  error: c,
34763
34768
  helperText: n,
@@ -34774,7 +34779,7 @@ const Z5 = ({ dropzoneOptions: t, controlledFiles: e, onValueChange: n }) => {
34774
34779
  )
34775
34780
  }
34776
34781
  );
34777
- var Ah = "Radio", [Q5, Hw] = qn(Ah), [e$, t$] = Q5(Ah), $w = I.forwardRef(
34782
+ var Ah = "Radio", [e$, Hw] = qn(Ah), [t$, n$] = e$(Ah), $w = I.forwardRef(
34778
34783
  (t, e) => {
34779
34784
  const {
34780
34785
  __scopeRadio: n,
@@ -34787,7 +34792,7 @@ var Ah = "Radio", [Q5, Hw] = qn(Ah), [e$, t$] = Q5(Ah), $w = I.forwardRef(
34787
34792
  form: c,
34788
34793
  ...u
34789
34794
  } = t, [d, f] = I.useState(null), p = Mt(e, (g) => f(g)), h = I.useRef(!1), m = d ? c || !!d.closest("form") : !0;
34790
- return /* @__PURE__ */ b.jsxs(e$, { scope: n, checked: i, disabled: s, children: [
34795
+ return /* @__PURE__ */ b.jsxs(t$, { scope: n, checked: i, disabled: s, children: [
34791
34796
  /* @__PURE__ */ b.jsx(
34792
34797
  Ye.button,
34793
34798
  {
@@ -34806,7 +34811,7 @@ var Ah = "Radio", [Q5, Hw] = qn(Ah), [e$, t$] = Q5(Ah), $w = I.forwardRef(
34806
34811
  }
34807
34812
  ),
34808
34813
  m && /* @__PURE__ */ b.jsx(
34809
- n$,
34814
+ r$,
34810
34815
  {
34811
34816
  control: d,
34812
34817
  bubbles: !h.current,
@@ -34825,7 +34830,7 @@ var Ah = "Radio", [Q5, Hw] = qn(Ah), [e$, t$] = Q5(Ah), $w = I.forwardRef(
34825
34830
  $w.displayName = Ah;
34826
34831
  var Ww = "RadioIndicator", Xw = I.forwardRef(
34827
34832
  (t, e) => {
34828
- const { __scopeRadio: n, forceMount: r, ...i } = t, o = t$(Ww, n);
34833
+ const { __scopeRadio: n, forceMount: r, ...i } = t, o = n$(Ww, n);
34829
34834
  return /* @__PURE__ */ b.jsx(ms, { present: r || o.checked, children: /* @__PURE__ */ b.jsx(
34830
34835
  Ye.span,
34831
34836
  {
@@ -34838,7 +34843,7 @@ var Ww = "RadioIndicator", Xw = I.forwardRef(
34838
34843
  }
34839
34844
  );
34840
34845
  Xw.displayName = Ww;
34841
- var n$ = (t) => {
34846
+ var r$ = (t) => {
34842
34847
  const { control: e, checked: n, bubbles: r = !0, ...i } = t, o = I.useRef(null), s = tc(n), a = Nl(e);
34843
34848
  return I.useEffect(() => {
34844
34849
  const l = o.current, c = window.HTMLInputElement.prototype, d = Object.getOwnPropertyDescriptor(c, "checked").set;
@@ -34869,10 +34874,10 @@ var n$ = (t) => {
34869
34874
  function Yw(t) {
34870
34875
  return t ? "checked" : "unchecked";
34871
34876
  }
34872
- var r$ = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Th = "RadioGroup", [i$, eW] = qn(Th, [
34877
+ var i$ = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Th = "RadioGroup", [o$, tW] = qn(Th, [
34873
34878
  Wl,
34874
34879
  Hw
34875
- ]), Zw = Wl(), Jw = Hw(), [o$, s$] = i$(Th), Uw = I.forwardRef(
34880
+ ]), Zw = Wl(), Jw = Hw(), [s$, a$] = o$(Th), Uw = I.forwardRef(
34876
34881
  (t, e) => {
34877
34882
  const {
34878
34883
  __scopeRadioGroup: n,
@@ -34892,7 +34897,7 @@ var r$ = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Th = "RadioGroup",
34892
34897
  onChange: d
34893
34898
  });
34894
34899
  return /* @__PURE__ */ b.jsx(
34895
- o$,
34900
+ s$,
34896
34901
  {
34897
34902
  scope: n,
34898
34903
  name: r,
@@ -34929,10 +34934,10 @@ var r$ = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Th = "RadioGroup",
34929
34934
  Uw.displayName = Th;
34930
34935
  var Kw = "RadioGroupItem", qw = I.forwardRef(
34931
34936
  (t, e) => {
34932
- const { __scopeRadioGroup: n, disabled: r, ...i } = t, o = s$(Kw, n), s = o.disabled || r, a = Zw(n), l = Jw(n), c = I.useRef(null), u = Mt(e, c), d = o.value === i.value, f = I.useRef(!1);
34937
+ const { __scopeRadioGroup: n, disabled: r, ...i } = t, o = a$(Kw, n), s = o.disabled || r, a = Zw(n), l = Jw(n), c = I.useRef(null), u = Mt(e, c), d = o.value === i.value, f = I.useRef(!1);
34933
34938
  return I.useEffect(() => {
34934
34939
  const p = (m) => {
34935
- r$.includes(m.key) && (f.current = !0);
34940
+ i$.includes(m.key) && (f.current = !0);
34936
34941
  }, h = () => f.current = !1;
34937
34942
  return document.addEventListener("keydown", p), document.addEventListener("keyup", h), () => {
34938
34943
  document.removeEventListener("keydown", p), document.removeEventListener("keyup", h);
@@ -34969,15 +34974,15 @@ var Kw = "RadioGroupItem", qw = I.forwardRef(
34969
34974
  }
34970
34975
  );
34971
34976
  qw.displayName = Kw;
34972
- var a$ = "RadioGroupIndicator", Qw = I.forwardRef(
34977
+ var l$ = "RadioGroupIndicator", Qw = I.forwardRef(
34973
34978
  (t, e) => {
34974
34979
  const { __scopeRadioGroup: n, ...r } = t, i = Jw(n);
34975
34980
  return /* @__PURE__ */ b.jsx(Xw, { ...i, ...r, ref: e });
34976
34981
  }
34977
34982
  );
34978
- Qw.displayName = a$;
34979
- var l$ = Uw, c$ = qw, u$ = Qw;
34980
- const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.jsx(b.Fragment, { children: t == null ? void 0 : t.map(({ label: r, value: i, isDisabled: o }) => /* @__PURE__ */ b.jsxs("div", { className: O("flex items-center gap-2", e == null ? void 0 : e.radioOption), children: [
34983
+ Qw.displayName = l$;
34984
+ var c$ = Uw, u$ = qw, d$ = Qw;
34985
+ const f$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.jsx(b.Fragment, { children: t == null ? void 0 : t.map(({ label: r, value: i, isDisabled: o }) => /* @__PURE__ */ b.jsxs("div", { className: O("flex items-center gap-2", e == null ? void 0 : e.radioOption), children: [
34981
34986
  /* @__PURE__ */ b.jsx(
34982
34987
  "div",
34983
34988
  {
@@ -34987,7 +34992,7 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
34987
34992
  { "!bg-color-transparent": o }
34988
34993
  ),
34989
34994
  children: /* @__PURE__ */ b.jsx(
34990
- c$,
34995
+ u$,
34991
34996
  {
34992
34997
  disabled: o,
34993
34998
  className: O(
@@ -35001,7 +35006,7 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35001
35006
  value: i,
35002
35007
  id: i,
35003
35008
  children: /* @__PURE__ */ b.jsx(
35004
- u$,
35009
+ d$,
35005
35010
  {
35006
35011
  className: O(
35007
35012
  'after:content-[" "] relative flex h-full w-full items-center justify-center after:block after:size-3 after:rounded-full after:bg-color-primary-default',
@@ -35026,7 +35031,7 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35026
35031
  children: r
35027
35032
  }
35028
35033
  )
35029
- ] }, i)) }), f$ = Dl("flex gap-2", {
35034
+ ] }, i)) }), p$ = Dl("flex gap-2", {
35030
35035
  variants: {
35031
35036
  orientation: {
35032
35037
  horizontal: "flex-row",
@@ -35036,7 +35041,7 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35036
35041
  defaultVariants: {
35037
35042
  orientation: "vertical"
35038
35043
  }
35039
- }), tW = ({
35044
+ }), nW = ({
35040
35045
  radioItemsGroup: t,
35041
35046
  control: e,
35042
35047
  groupName: n,
@@ -35054,15 +35059,15 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35054
35059
  n && /* @__PURE__ */ b.jsx("span", { className: O("desk-body-regular-l text-color-dark", o == null ? void 0 : o.groupName), children: n }),
35055
35060
  /* @__PURE__ */ b.jsxs("div", { className: O("flex flex-col", o == null ? void 0 : o.field), children: [
35056
35061
  /* @__PURE__ */ b.jsx(
35057
- l$,
35062
+ c$,
35058
35063
  {
35059
35064
  onValueChange: l,
35060
35065
  value: c,
35061
35066
  defaultValue: c,
35062
- className: O(f$({ orientation: s }), o == null ? void 0 : o.radioGroup),
35067
+ className: O(p$({ orientation: s }), o == null ? void 0 : o.radioGroup),
35063
35068
  ...u,
35064
35069
  ...a,
35065
- children: /* @__PURE__ */ b.jsx(d$, { radioItemsGroup: t, error: !!(d != null && d.message), classes: o })
35070
+ children: /* @__PURE__ */ b.jsx(f$, { radioItemsGroup: t, error: !!(d != null && d.message), classes: o })
35066
35071
  }
35067
35072
  ),
35068
35073
  /* @__PURE__ */ b.jsx(
@@ -35077,7 +35082,7 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35077
35082
  ] })
35078
35083
  ] })
35079
35084
  }
35080
- ), p$ = (t) => {
35085
+ ), h$ = (t) => {
35081
35086
  switch (t) {
35082
35087
  case "euro":
35083
35088
  return "€ ";
@@ -35118,7 +35123,7 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35118
35123
  engName: "AED",
35119
35124
  currency: "dirhams"
35120
35125
  }
35121
- ], h$ = (t) => {
35126
+ ], m$ = (t) => {
35122
35127
  const [e, n] = W.useState(!1), [r, i] = W.useState(
35123
35128
  () => (Ao == null ? void 0 : Ao.find((l) => (l == null ? void 0 : l.currency) === t)) || Ao[0]
35124
35129
  );
@@ -35131,7 +35136,7 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35131
35136
  onToggleMenu: () => n((l) => !l),
35132
35137
  onCloseMenu: () => n(!1)
35133
35138
  };
35134
- }, m$ = ({ onToggleMenu: t, currentCurrencyOption: e }) => /* @__PURE__ */ b.jsxs(
35139
+ }, g$ = ({ onToggleMenu: t, currentCurrencyOption: e }) => /* @__PURE__ */ b.jsxs(
35135
35140
  "button",
35136
35141
  {
35137
35142
  type: "button",
@@ -35142,7 +35147,7 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35142
35147
  /* @__PURE__ */ b.jsx(ze, { name: "arrows/arrowRight", className: "rotate-90 text-icon-blue-grey-700" })
35143
35148
  ]
35144
35149
  }
35145
- ), g$ = ({ optionsList: t, menuIsOpen: e, onSelectOption: n }) => /* @__PURE__ */ b.jsx(
35150
+ ), v$ = ({ optionsList: t, menuIsOpen: e, onSelectOption: n }) => /* @__PURE__ */ b.jsx(
35146
35151
  "div",
35147
35152
  {
35148
35153
  className: O(
@@ -35167,7 +35172,7 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35167
35172
  r.engName
35168
35173
  ))
35169
35174
  }
35170
- ), nW = ({
35175
+ ), rW = ({
35171
35176
  label: t,
35172
35177
  size: e = "full",
35173
35178
  helperText: n,
@@ -35177,7 +35182,7 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35177
35182
  defaultCurrency: s = "rubles",
35178
35183
  ...a
35179
35184
  }) => {
35180
- const l = I.useId(), c = I.useRef(null), { menuIsOpen: u, currentCurrencyOption: d, onSelectOption: f, onToggleMenu: p, onCloseMenu: h } = h$(s);
35185
+ const l = I.useId(), c = I.useRef(null), { menuIsOpen: u, currentCurrencyOption: d, onSelectOption: f, onToggleMenu: p, onCloseMenu: h } = m$(s);
35181
35186
  return ky(c, h), /* @__PURE__ */ b.jsx(
35182
35187
  on,
35183
35188
  {
@@ -35201,7 +35206,7 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35201
35206
  "aria-invalid": y != null && y.message ? "true" : "false",
35202
35207
  thousandsGroupStyle: "wan",
35203
35208
  thousandSeparator: " ",
35204
- prefix: p$(d.currency),
35209
+ prefix: h$(d.currency),
35205
35210
  getInputRef: m,
35206
35211
  allowNegative: !1,
35207
35212
  disabled: o,
@@ -35214,8 +35219,8 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35214
35219
  ...a
35215
35220
  }
35216
35221
  ),
35217
- /* @__PURE__ */ b.jsx(m$, { onToggleMenu: p, currentCurrencyOption: d }),
35218
- /* @__PURE__ */ b.jsx(g$, { menuIsOpen: u, optionsList: Ao, onSelectOption: f })
35222
+ /* @__PURE__ */ b.jsx(g$, { onToggleMenu: p, currentCurrencyOption: d }),
35223
+ /* @__PURE__ */ b.jsx(v$, { menuIsOpen: u, optionsList: Ao, onSelectOption: f })
35219
35224
  ] })
35220
35225
  }
35221
35226
  ),
@@ -35231,7 +35236,7 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35231
35236
  ] })
35232
35237
  }
35233
35238
  );
35234
- }, rW = () => /* @__PURE__ */ b.jsx("div", { className: "", children: "Form example" }), eI = ({ buttonsConfig: t, classes: e, className: n }) => {
35239
+ }, iW = () => /* @__PURE__ */ b.jsx("div", { className: "", children: "Form example" }), eI = ({ buttonsConfig: t, classes: e, className: n }) => {
35235
35240
  var i;
35236
35241
  const r = (t == null ? void 0 : t.secondary) && t.secondary.children;
35237
35242
  return /* @__PURE__ */ b.jsxs(
@@ -35259,7 +35264,7 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35259
35264
  ]
35260
35265
  }
35261
35266
  );
35262
- }, v$ = ({
35267
+ }, b$ = ({
35263
35268
  headTitle: t,
35264
35269
  subtitle: e,
35265
35270
  buttonsConfig: n,
@@ -35287,8 +35292,8 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35287
35292
  "data-id": "banner-img-wrapper",
35288
35293
  className: "absolute bottom-0 left-0 right-0 top-0 z-[-1] mx-auto h-full max-w-[1920px] desktop:h-[456px]",
35289
35294
  children: /* @__PURE__ */ b.jsxs("picture", { children: [
35290
- /* @__PURE__ */ b.jsx("source", { media: "(min-width: 1128px)", srcSet: s == null ? void 0 : s.large, type: "image/avif" }),
35291
- /* @__PURE__ */ b.jsx("source", { media: "(max-width: 1127px)", srcSet: s == null ? void 0 : s.mob, type: (s == null ? void 0 : s.type) ?? "image/avif" }),
35295
+ /* @__PURE__ */ b.jsx("source", { media: "(min-width: 1128px)", srcSet: s == null ? void 0 : s.large }),
35296
+ /* @__PURE__ */ b.jsx("source", { media: "(max-width: 1127px)", srcSet: s == null ? void 0 : s.mob }),
35292
35297
  /* @__PURE__ */ b.jsx(
35293
35298
  "img",
35294
35299
  {
@@ -35384,47 +35389,47 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35384
35389
  ] }) }),
35385
35390
  l && c
35386
35391
  ] });
35387
- }, iW = ({ bannerVariant: t, ...e }) => {
35392
+ }, oW = ({ bannerVariant: t, ...e }) => {
35388
35393
  switch (t) {
35389
35394
  case "separateImg":
35390
35395
  return /* @__PURE__ */ b.jsx($b, { ...e });
35391
35396
  case "fullImg":
35392
- return /* @__PURE__ */ b.jsx(v$, { ...e });
35397
+ return /* @__PURE__ */ b.jsx(b$, { ...e });
35393
35398
  default:
35394
35399
  return /* @__PURE__ */ b.jsx($b, { ...e });
35395
35400
  }
35396
35401
  };
35397
35402
  export {
35398
35403
  QI as Accordion,
35399
- iW as Banner,
35404
+ oW as Banner,
35400
35405
  $b as BannerWithSeparateImg,
35401
- B$ as CheckboxControl,
35402
- Z$ as ComboboxControl,
35403
- X$ as DadataAddress,
35404
- $$ as DadataAuto,
35405
- W$ as DadataCountry,
35406
- H$ as DadataFio,
35407
- Y$ as DadataOrganization,
35408
- q$ as EditorControl,
35409
- rW as FormControl,
35410
- N$ as InputControl,
35411
- F$ as InputControlMask,
35412
- nW as InputCurrencyControl,
35413
- P$ as Modal,
35406
+ L$ as CheckboxControl,
35407
+ J$ as ComboboxControl,
35408
+ Y$ as DadataAddress,
35409
+ W$ as DadataAuto,
35410
+ X$ as DadataCountry,
35411
+ $$ as DadataFio,
35412
+ Z$ as DadataOrganization,
35413
+ Q$ as EditorControl,
35414
+ iW as FormControl,
35415
+ F$ as InputControl,
35416
+ V$ as InputControlMask,
35417
+ rW as InputCurrencyControl,
35418
+ D$ as Modal,
35414
35419
  Po as Notification,
35415
- D$ as NotificationProvider,
35420
+ N$ as NotificationProvider,
35416
35421
  Zb as Popover,
35417
- tW as RadioControl,
35418
- U$ as SliderControl,
35419
- j$ as SwitchControl,
35420
- M$ as TabsSwitcher,
35421
- G$ as TextareaControl,
35422
- Q$ as UploaderControl,
35422
+ nW as RadioControl,
35423
+ K$ as SliderControl,
35424
+ G$ as SwitchControl,
35425
+ O$ as TabsSwitcher,
35426
+ z$ as TextareaControl,
35427
+ eW as UploaderControl,
35423
35428
  HE as debounce,
35424
- E$ as useBoolean,
35429
+ A$ as useBoolean,
35425
35430
  ky as useClickOutside,
35426
- T$ as useCombineRef,
35427
- A$ as useControlledForm,
35431
+ k$ as useCombineRef,
35432
+ T$ as useControlledForm,
35428
35433
  $E as useDebounceCallback,
35429
35434
  WE as useDebounceValue,
35430
35435
  Ff as useDevice