@scbt-ecom/ui 0.10.2 → 0.10.4

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
@@ -1,4 +1,4 @@
1
- import { j as b, u as Mt, S as kh, d as qn, e as Fn, f as hs, h as Ye, k as Ge, l as ms, m as nI, c as O, I as ze, n as Wb, o as rI, D as iI, C as oI, p as sI, q as aI, r as lI, i as cI, s as uI, H as If, a as Dl, b as dI, t as Nl, v as fI, w as bo, x as pI, y as Xb, E as Mc, F as Oc, G as hI, J as mI, K as gI, M as vI, N as bI, O as Yb, P as Zb, z as yI, g as xI, _ as fi, L as CI, B as Mh, A as Jb, R as Ub } from "./Advantages-Ckk1oK9e.js";
1
+ import { j as b, u as Mt, S as kh, d as qn, e as Fn, f as hs, h as Ye, k as Ge, l as ms, m as nI, c as O, I as ze, n as Wb, o as rI, D as iI, C as oI, p as sI, q as aI, r as lI, i as cI, s as uI, H as If, a as Dl, b as dI, t as Nl, v as fI, w as bo, x as pI, y as Xb, E as Mc, F as Oc, G as hI, J as mI, K as gI, M as vI, N as bI, O as Yb, P as Zb, z as yI, g as xI, _ as fi, L as CI, B as Mh, A as Jb, R as Ub } from "./Advantages-BBrxgOvk.js";
2
2
  import * as I from "react";
3
3
  import W, { useCallback as fe, useSyncExternalStore as Zu, createContext as qe, useContext as Me, useId as hn, useEffect as Re, Component as Kb, useLayoutEffect as eo, useRef as de, useInsertionEffect as qb, useMemo as we, forwardRef as pi, Fragment as $t, createElement as Qb, Children as SI, isValidElement as ey, useState as Oe, cloneElement as wI, useReducer as Ef, createRef as II, useDebugValue as ty, useImperativeHandle as EI } from "react";
4
4
  import { queryOptions as AI, keepPreviousData as TI, useQuery as kI } from "@tanstack/react-query";
@@ -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));
@@ -7654,6 +7654,7 @@ const IR = Dl(
7654
7654
  ] }), MR = ({ onClickIcon: t, onKeyDownIcon: e, icon: n, classes: r }) => {
7655
7655
  const i = (t || e) && {
7656
7656
  role: "button",
7657
+ "aria-label": "edit",
7657
7658
  tabIndex: 0,
7658
7659
  onClick: t,
7659
7660
  onKeyDown: e
@@ -7688,8 +7689,8 @@ const IR = Dl(
7688
7689
  {
7689
7690
  htmlFor: e,
7690
7691
  className: O(
7691
- "desk-body-regular-l pointer-events-none absolute left-4 top-2/4 -translate-y-1/2 text-color-tetriary transition-all duration-15 group-focus-within:desk-body-regular-s group-focus-within:top-2 group-focus-within:translate-y-0 group-focus-within:bg-color-transparent",
7692
- { "!top-2 translate-y-0 !bg-color-transparent [&&]:desk-body-regular-s": r },
7692
+ "desk-body-regular-l pointer-events-none absolute left-4 top-2/4 -translate-y-1/2 text-color-blue-grey-600 transition-all duration-15 group-focus-within:desk-body-regular-s group-focus-within:top-2 group-focus-within:translate-y-0 group-focus-within:bg-color-transparent group-focus-within:text-color-tetriary",
7693
+ { "!top-2 translate-y-0 !bg-color-transparent text-color-tetriary [&&]:desk-body-regular-s": r },
7693
7694
  { "text-color-disabled": t },
7694
7695
  i == null ? void 0 : i.fieldLabel
7695
7696
  // && !isTextarea
@@ -7729,7 +7730,7 @@ const IR = Dl(
7729
7730
  defaultVariants: {
7730
7731
  intent: "simple"
7731
7732
  }
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$ = ({
7733
+ }), 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
7734
  label: t,
7734
7735
  helperText: e,
7735
7736
  control: n,
@@ -8499,7 +8500,7 @@ const oP = (t, e) => ({ onValueChange: ({ inputValue: s, onChange: a, source: l
8499
8500
  a(!0), t != null && t.customFocus && (t == null || t.customFocus(s));
8500
8501
  }, onBlur: ({ event: s, setShowMask: a, hookFormBlur: l }) => {
8501
8502
  l(), a(!1), t != null && t.customFocus && (t == null || t.customFocus(s));
8502
- } }), F$ = ({
8503
+ } }), V$ = ({
8503
8504
  format: t,
8504
8505
  allowEmptyFormatting: e = !1,
8505
8506
  mask: n,
@@ -8541,6 +8542,7 @@ const oP = (t, e) => ({ onValueChange: ({ inputValue: s, onChange: a, source: l
8541
8542
  id: v,
8542
8543
  "aria-invalid": _ != null && _.message ? "true" : "false",
8543
8544
  value: L ?? "",
8545
+ autoComplete: m === "phone" ? "off" : "on",
8544
8546
  format: t,
8545
8547
  allowEmptyFormatting: S,
8546
8548
  mask: n,
@@ -8589,7 +8591,7 @@ function tc(t) {
8589
8591
  const e = I.useRef({ value: t, previous: t });
8590
8592
  return I.useMemo(() => (e.current.value !== t && (e.current.previous = e.current.value, e.current.value = t), e.current.previous), [t]);
8591
8593
  }
8592
- var Ip = "Checkbox", [sP, V$] = qn(Ip), [aP, lP] = sP(Ip), Ux = I.forwardRef(
8594
+ var Ip = "Checkbox", [sP, B$] = qn(Ip), [aP, lP] = sP(Ip), Ux = I.forwardRef(
8593
8595
  (t, e) => {
8594
8596
  const {
8595
8597
  __scopeCheckbox: n,
@@ -8707,7 +8709,7 @@ function Qx(t) {
8707
8709
  return br(t) ? "indeterminate" : t ? "checked" : "unchecked";
8708
8710
  }
8709
8711
  var uP = Ux, dP = qx;
8710
- const B$ = ({
8712
+ const L$ = ({
8711
8713
  control: t,
8712
8714
  label: e,
8713
8715
  helperText: n,
@@ -8784,7 +8786,7 @@ const B$ = ({
8784
8786
  }
8785
8787
  );
8786
8788
  };
8787
- var Ep = "Switch", [fP, L$] = qn(Ep), [pP, hP] = fP(Ep), e1 = I.forwardRef(
8789
+ var Ep = "Switch", [fP, j$] = qn(Ep), [pP, hP] = fP(Ep), e1 = I.forwardRef(
8788
8790
  (t, e) => {
8789
8791
  const {
8790
8792
  __scopeSwitch: n,
@@ -8886,7 +8888,7 @@ function r1(t) {
8886
8888
  return t ? "checked" : "unchecked";
8887
8889
  }
8888
8890
  var gP = e1, vP = n1;
8889
- const j$ = ({
8891
+ const G$ = ({
8890
8892
  disabled: t,
8891
8893
  classes: e,
8892
8894
  control: n,
@@ -8950,7 +8952,7 @@ const j$ = ({
8950
8952
  ] })
8951
8953
  }
8952
8954
  );
8953
- }, G$ = ({
8955
+ }, z$ = ({
8954
8956
  label: t,
8955
8957
  helperText: e,
8956
8958
  control: n,
@@ -11805,6 +11807,7 @@ const x2 = (t, e) => {
11805
11807
  "desk-body-regular-l z-10 h-[56px] w-full rounded-md bg-color-transparent px-4 pt-5 text-color-dark outline-none transition-all",
11806
11808
  a == null ? void 0 : a.input
11807
11809
  ),
11810
+ id: y,
11808
11811
  ...x,
11809
11812
  ...m
11810
11813
  }
@@ -11840,7 +11843,7 @@ const x2 = (t, e) => {
11840
11843
  ) })
11841
11844
  }
11842
11845
  );
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 });
11846
+ }, $$ = ({ ...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
11847
  function ai(t) {
11845
11848
  "@babel/helpers - typeof";
11846
11849
  return ai = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
@@ -15764,7 +15767,7 @@ const dL = (t, e, n) => ({
15764
15767
  t == null ? void 0 : t.indicatorIcon
15765
15768
  )
15766
15769
  }
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$ = ({
15770
+ ) }), 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
15771
  options: t,
15769
15772
  control: e,
15770
15773
  defaultValue: n,
@@ -15880,7 +15883,7 @@ var EC = ["PageUp", "PageDown"], AC = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
15880
15883
  "from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
15881
15884
  "from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
15882
15885
  "from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
15883
- }, oo = "Slider", [Bd, xL, CL] = Af(oo), [kC, J$] = qn(oo, [
15886
+ }, oo = "Slider", [Bd, xL, CL] = Af(oo), [kC, U$] = qn(oo, [
15884
15887
  CL
15885
15888
  ]), [SL, uc] = kC(oo), $p = I.forwardRef(
15886
15889
  (t, e) => {
@@ -16300,6 +16303,7 @@ const LL = I.forwardRef(
16300
16303
  /* @__PURE__ */ b.jsx(
16301
16304
  BL,
16302
16305
  {
16306
+ "aria-label": "slider-thumb",
16303
16307
  className: O(
16304
16308
  'ring-offset-background block h-4 w-4 cursor-pointer rounded-full bg-color-primary-default transition-colors hover:before:absolute hover:before:left-1/2 hover:before:top-1/2 hover:before:h-8 hover:before:w-8 hover:before:-translate-x-1/2 hover:before:-translate-y-1/2 hover:before:rounded-full hover:before:bg-color-primary-tr-hover hover:before:content-[""] focus:outline-none focus:before:bg-color-primary-tr-pressed disabled:pointer-events-none disabled:opacity-50',
16305
16309
  n == null ? void 0 : n.sliderThumb
@@ -16311,7 +16315,7 @@ const LL = I.forwardRef(
16311
16315
  ) })
16312
16316
  );
16313
16317
  $p.displayName = BC.displayName;
16314
- const U$ = ({
16318
+ const K$ = ({
16315
16319
  label: t,
16316
16320
  size: e = "full",
16317
16321
  helperText: n,
@@ -16361,7 +16365,6 @@ const U$ = ({
16361
16365
  "bg-color-white hover:bg-color-blue-grey-200 focus-within:bg-color-blue-grey-200 focus:bg-color-blue-grey-200 border-blue-grey-500",
16362
16366
  i == null ? void 0 : i.fieldWrapperRoot
16363
16367
  ),
16364
- fieldLabel: O("text-color-dark desk-body-regular-m", i == null ? void 0 : i.fieldLabel),
16365
16368
  ...i
16366
16369
  },
16367
16370
  children: /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
@@ -25720,20 +25723,25 @@ function qv(t, e = null) {
25720
25723
  typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : typeof os < "u" && os.platform && os.platform() == "darwin";
25721
25724
  function G4(t, e = null) {
25722
25725
  return function(n, r) {
25723
- let { $from: i, $to: o } = n.selection, s = i.blockRange(o), a = !1, l = s;
25726
+ let { $from: i, $to: o } = n.selection, s = i.blockRange(o);
25724
25727
  if (!s)
25725
25728
  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;
25729
+ let a = r ? n.tr : null;
25730
+ return z4(a, s, t, e) ? (r && r(a.scrollIntoView()), !0) : !1;
25734
25731
  };
25735
25732
  }
25736
- function z4(t, e, n, r, i) {
25733
+ function z4(t, e, n, r = null) {
25734
+ let i = !1, o = e, s = e.$from.doc;
25735
+ if (e.depth >= 2 && e.$from.node(e.depth - 1).type.compatibleContent(n) && e.startIndex == 0) {
25736
+ if (e.$from.index(e.depth - 1) == 0)
25737
+ return !1;
25738
+ let l = s.resolve(e.start - 2);
25739
+ 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;
25740
+ }
25741
+ let a = Zp(o, n, r, e);
25742
+ return a ? (t && _4(t, e, a, i, n), !0) : !1;
25743
+ }
25744
+ function _4(t, e, n, r, i) {
25737
25745
  let o = J.empty;
25738
25746
  for (let u = n.length - 1; u >= 0; u--)
25739
25747
  o = J.from(n[u].type.create(n[u].attrs, o));
@@ -25746,13 +25754,13 @@ function z4(t, e, n, r, i) {
25746
25754
  !f && ji(t.doc, l, a) && (t.split(l, a), l += 2 * a), l += c.child(u).nodeSize;
25747
25755
  return t;
25748
25756
  }
25749
- function _4(t) {
25757
+ function H4(t) {
25750
25758
  return function(e, n) {
25751
25759
  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;
25760
+ return o ? n ? r.node(o.depth - 1).type == t ? $4(e, n, t, o) : W4(e, n, o) : !0 : !1;
25753
25761
  };
25754
25762
  }
25755
- function H4(t, e, n, r) {
25763
+ function $4(t, e, n, r) {
25756
25764
  let i = t.tr, o = r.end, s = r.$to.end(r.depth);
25757
25765
  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
25766
  const a = so(r);
@@ -25762,7 +25770,7 @@ function H4(t, e, n, r) {
25762
25770
  let l = i.mapping.map(o, -1) - 1;
25763
25771
  return Mr(i.doc, l) && i.join(l), e(i.scrollIntoView()), !0;
25764
25772
  }
25765
- function $4(t, e, n) {
25773
+ function W4(t, e, n) {
25766
25774
  let r = t.tr, i = n.parent;
25767
25775
  for (let p = n.end, h = n.endIndex - 1, m = n.startIndex; h > m; h--)
25768
25776
  p -= i.child(h).nodeSize, r.delete(p - 1, p + 1);
@@ -25775,7 +25783,7 @@ function $4(t, e, n) {
25775
25783
  let d = o.pos, f = d + s.nodeSize;
25776
25784
  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
25785
  }
25778
- function W4(t) {
25786
+ function X4(t) {
25779
25787
  return function(e, n) {
25780
25788
  let { $from: r, $to: i } = e.selection, o = r.blockRange(i, (c) => c.childCount > 0 && c.firstChild.type == t);
25781
25789
  if (!o)
@@ -25878,7 +25886,7 @@ class yc {
25878
25886
  return a;
25879
25887
  }
25880
25888
  }
25881
- class X4 {
25889
+ class Y4 {
25882
25890
  constructor() {
25883
25891
  this.callbacks = {};
25884
25892
  }
@@ -26015,10 +26023,10 @@ function sw(t) {
26015
26023
  function Te(t, e = void 0, ...n) {
26016
26024
  return sw(t) ? e ? t.bind(e)(...n) : t(...n) : t;
26017
26025
  }
26018
- function Y4(t = {}) {
26026
+ function Z4(t = {}) {
26019
26027
  return Object.keys(t).length === 0 && t.constructor === Object;
26020
26028
  }
26021
- function Z4(t) {
26029
+ function J4(t) {
26022
26030
  return typeof t != "string" ? t : t.match(/^[+-]?(?:\d*\.)?\d+$/) ? Number(t) : t === "true" ? !0 : t === "false" ? !1 : t;
26023
26031
  }
26024
26032
  function Qv(t, e) {
@@ -26029,7 +26037,7 @@ function Qv(t, e) {
26029
26037
  if (r === !1)
26030
26038
  return !1;
26031
26039
  const i = e.reduce((o, s) => {
26032
- const a = s.attribute.parseHTML ? s.attribute.parseHTML(n) : Z4(n.getAttribute(s.name));
26040
+ const a = s.attribute.parseHTML ? s.attribute.parseHTML(n) : J4(n.getAttribute(s.name));
26033
26041
  return a == null ? o : {
26034
26042
  ...o,
26035
26043
  [s.name]: a
@@ -26042,10 +26050,10 @@ function Qv(t, e) {
26042
26050
  function eb(t) {
26043
26051
  return Object.fromEntries(
26044
26052
  // @ts-ignore
26045
- Object.entries(t).filter(([e, n]) => e === "attrs" && Y4(n) ? !1 : n != null)
26053
+ Object.entries(t).filter(([e, n]) => e === "attrs" && Z4(n) ? !1 : n != null)
26046
26054
  );
26047
26055
  }
26048
- function J4(t, e) {
26056
+ function U4(t, e) {
26049
26057
  var n;
26050
26058
  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
26059
  const u = r.filter((v) => v.type === c.name), d = {
@@ -26133,7 +26141,7 @@ function sh(t, e) {
26133
26141
  const n = bi.fromSchema(e).serializeFragment(t), i = document.implementation.createHTMLDocument().createElement("div");
26134
26142
  return i.appendChild(n), i.innerHTML;
26135
26143
  }
26136
- const U4 = (t, e = 500) => {
26144
+ const K4 = (t, e = 500) => {
26137
26145
  let n = "";
26138
26146
  const r = t.parentOffset;
26139
26147
  return t.parent.nodesBetween(Math.max(0, r - e), r, (i, o, s, a) => {
@@ -26155,7 +26163,7 @@ class Cc {
26155
26163
  this.find = e.find, this.handler = e.handler;
26156
26164
  }
26157
26165
  }
26158
- const K4 = (t, e) => {
26166
+ const q4 = (t, e) => {
26159
26167
  if (ah(e))
26160
26168
  return e.exec(t);
26161
26169
  const n = e(t);
@@ -26176,11 +26184,11 @@ function Js(t) {
26176
26184
  )
26177
26185
  return !1;
26178
26186
  let u = !1;
26179
- const d = U4(c) + o;
26187
+ const d = K4(c) + o;
26180
26188
  return s.forEach((f) => {
26181
26189
  if (u)
26182
26190
  return;
26183
- const p = K4(d, f.find);
26191
+ const p = q4(d, f.find);
26184
26192
  if (!p)
26185
26193
  return;
26186
26194
  const h = l.state.tr, m = bc({
@@ -26208,7 +26216,7 @@ function Js(t) {
26208
26216
  }), l.dispatch(h), u = !0);
26209
26217
  }), u;
26210
26218
  }
26211
- function q4(t) {
26219
+ function Q4(t) {
26212
26220
  const { editor: e, rules: n } = t, r = new St({
26213
26221
  state: {
26214
26222
  init() {
@@ -26280,11 +26288,11 @@ function q4(t) {
26280
26288
  });
26281
26289
  return r;
26282
26290
  }
26283
- function Q4(t) {
26291
+ function eG(t) {
26284
26292
  return Object.prototype.toString.call(t).slice(8, -1);
26285
26293
  }
26286
26294
  function Us(t) {
26287
- return Q4(t) !== "Object" ? !1 : t.constructor === Object && Object.getPrototypeOf(t) === Object.prototype;
26295
+ return eG(t) !== "Object" ? !1 : t.constructor === Object && Object.getPrototypeOf(t) === Object.prototype;
26288
26296
  }
26289
26297
  function Sc(t, e) {
26290
26298
  const n = { ...t };
@@ -26338,15 +26346,15 @@ class pn {
26338
26346
  return !1;
26339
26347
  }
26340
26348
  }
26341
- function eG(t) {
26349
+ function tG(t) {
26342
26350
  return typeof t == "number";
26343
26351
  }
26344
- class tG {
26352
+ class nG {
26345
26353
  constructor(e) {
26346
26354
  this.find = e.find, this.handler = e.handler;
26347
26355
  }
26348
26356
  }
26349
- const nG = (t, e, n) => {
26357
+ const rG = (t, e, n) => {
26350
26358
  if (ah(e))
26351
26359
  return [...t.matchAll(e)];
26352
26360
  const r = e(t, n);
@@ -26355,7 +26363,7 @@ const nG = (t, e, n) => {
26355
26363
  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
26364
  }) : [];
26357
26365
  };
26358
- function rG(t) {
26366
+ function iG(t) {
26359
26367
  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
26368
  editor: e,
26361
26369
  state: n
@@ -26364,7 +26372,7 @@ function rG(t) {
26364
26372
  if (!p.isTextblock || p.type.spec.code)
26365
26373
  return;
26366
26374
  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) => {
26375
+ rG(v, o.find, s).forEach((C) => {
26368
26376
  if (C.index === void 0)
26369
26377
  return;
26370
26378
  const S = m + C.index + 1, x = S + C[0].length, E = {
@@ -26384,14 +26392,14 @@ function rG(t) {
26384
26392
  });
26385
26393
  }), d.every((p) => p !== null);
26386
26394
  }
26387
- const iG = (t) => {
26395
+ const oG = (t) => {
26388
26396
  var e;
26389
26397
  const n = new ClipboardEvent("paste", {
26390
26398
  clipboardData: new DataTransfer()
26391
26399
  });
26392
26400
  return (e = n.clipboardData) === null || e === void 0 || e.setData("text/html", t), n;
26393
26401
  };
26394
- function oG(t) {
26402
+ function sG(t) {
26395
26403
  const { editor: e, rules: n } = t;
26396
26404
  let r = null, i = !1, o = !1, s = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, a;
26397
26405
  try {
@@ -26404,7 +26412,7 @@ function oG(t) {
26404
26412
  state: u,
26405
26413
  transaction: m
26406
26414
  });
26407
- if (!(!rG({
26415
+ if (!(!iG({
26408
26416
  editor: e,
26409
26417
  state: g,
26410
26418
  from: Math.max(d - 1, 0),
@@ -26451,7 +26459,7 @@ function oG(t) {
26451
26459
  if (y) {
26452
26460
  let { text: x } = v;
26453
26461
  typeof x == "string" ? x = x : x = sh(J.from(x), p.schema);
26454
- const { from: E } = v, T = E + x.length, A = iG(x);
26462
+ const { from: E } = v, T = E + x.length, A = oG(x);
26455
26463
  return l({
26456
26464
  rule: u,
26457
26465
  state: p,
@@ -26461,7 +26469,7 @@ function oG(t) {
26461
26469
  });
26462
26470
  }
26463
26471
  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))
26472
+ if (!(!tG(C) || !S || C === S.b))
26465
26473
  return l({
26466
26474
  rule: u,
26467
26475
  state: p,
@@ -26472,13 +26480,13 @@ function oG(t) {
26472
26480
  }
26473
26481
  }));
26474
26482
  }
26475
- function sG(t) {
26483
+ function aG(t) {
26476
26484
  const e = t.filter((n, r) => t.indexOf(n) !== r);
26477
26485
  return Array.from(new Set(e));
26478
26486
  }
26479
26487
  class Vi {
26480
26488
  constructor(e, n) {
26481
- this.splittableMarks = [], this.editor = n, this.extensions = Vi.resolve(e), this.schema = J4(this.extensions, n), this.setupExtensions();
26489
+ this.splittableMarks = [], this.editor = n, this.extensions = Vi.resolve(e), this.schema = U4(this.extensions, n), this.setupExtensions();
26482
26490
  }
26483
26491
  /**
26484
26492
  * Returns a flattened and sorted extension list while
@@ -26487,7 +26495,7 @@ class Vi {
26487
26495
  * @returns An flattened and sorted array of Tiptap extensions
26488
26496
  */
26489
26497
  static resolve(e) {
26490
- const n = Vi.sort(Vi.flatten(e)), r = sG(n.map((i) => i.name));
26498
+ const n = Vi.sort(Vi.flatten(e)), r = aG(n.map((i) => i.name));
26491
26499
  return r.length && console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map((i) => `'${i}'`).join(", ")}]. This can lead to issues.`), n;
26492
26500
  }
26493
26501
  /**
@@ -26567,11 +26575,11 @@ class Vi {
26567
26575
  return l;
26568
26576
  }).flat();
26569
26577
  return [
26570
- q4({
26578
+ Q4({
26571
26579
  editor: e,
26572
26580
  rules: r
26573
26581
  }),
26574
- ...oG({
26582
+ ...sG({
26575
26583
  editor: e,
26576
26584
  rules: i
26577
26585
  }),
@@ -26698,7 +26706,7 @@ function aw(t, e, n) {
26698
26706
  function lw(t) {
26699
26707
  return Object.fromEntries(Object.entries(t.nodes).filter(([, e]) => e.spec.toText).map(([e, n]) => [e, n.spec.toText]));
26700
26708
  }
26701
- const aG = Ot.create({
26709
+ const lG = Ot.create({
26702
26710
  name: "clipboardTextSerializer",
26703
26711
  addOptions() {
26704
26712
  return {
@@ -26721,10 +26729,10 @@ const aG = Ot.create({
26721
26729
  })
26722
26730
  ];
26723
26731
  }
26724
- }), lG = () => ({ editor: t, view: e }) => (requestAnimationFrame(() => {
26732
+ }), cG = () => ({ editor: t, view: e }) => (requestAnimationFrame(() => {
26725
26733
  var n;
26726
26734
  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 }) => {
26735
+ }), !0), uG = (t = !1) => ({ commands: e }) => e.setContent("", t), dG = () => ({ state: t, tr: e, dispatch: n }) => {
26728
26736
  const { selection: r } = e, { ranges: i } = r;
26729
26737
  return n && i.forEach(({ $from: o, $to: s }) => {
26730
26738
  t.doc.nodesBetween(o.pos, s.pos, (a, l) => {
@@ -26741,12 +26749,12 @@ const aG = Ot.create({
26741
26749
  (h || h === 0) && e.lift(p, h);
26742
26750
  });
26743
26751
  }), !0;
26744
- }, dG = (t) => (e) => t(e), fG = () => ({ state: t, dispatch: e }) => D4(t, e), pG = (t, e) => ({ editor: n, tr: r }) => {
26752
+ }, fG = (t) => (e) => t(e), pG = () => ({ state: t, dispatch: e }) => D4(t, e), hG = (t, e) => ({ editor: n, tr: r }) => {
26745
26753
  const { state: i } = n, o = i.doc.slice(t.from, t.to);
26746
26754
  r.deleteRange(t.from, t.to);
26747
26755
  const s = r.mapping.map(e);
26748
26756
  return r.insert(s, o.content), r.setSelection(new Ce(r.doc.resolve(s - 1))), !0;
26749
- }, hG = () => ({ tr: t, dispatch: e }) => {
26757
+ }, mG = () => ({ tr: t, dispatch: e }) => {
26750
26758
  const { selection: n } = t, r = n.$anchor.node();
26751
26759
  if (r.content.size > 0)
26752
26760
  return !1;
@@ -26760,7 +26768,7 @@ const aG = Ot.create({
26760
26768
  return !0;
26761
26769
  }
26762
26770
  return !1;
26763
- }, mG = (t) => ({ tr: e, state: n, dispatch: r }) => {
26771
+ }, gG = (t) => ({ tr: e, state: n, dispatch: r }) => {
26764
26772
  const i = mt(t, n.schema), o = e.selection.$anchor;
26765
26773
  for (let s = o.depth; s > 0; s -= 1)
26766
26774
  if (o.node(s).type === i) {
@@ -26771,10 +26779,10 @@ const aG = Ot.create({
26771
26779
  return !0;
26772
26780
  }
26773
26781
  return !1;
26774
- }, gG = (t) => ({ tr: e, dispatch: n }) => {
26782
+ }, vG = (t) => ({ tr: e, dispatch: n }) => {
26775
26783
  const { from: r, to: i } = t;
26776
26784
  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);
26785
+ }, bG = () => ({ state: t, dispatch: e }) => C4(t, e), yG = () => ({ commands: t }) => t.keyboardShortcut("Enter"), xG = () => ({ state: t, dispatch: e }) => P4(t, e);
26778
26786
  function tl(t, e, n = { strict: !0 }) {
26779
26787
  const r = Object.keys(e);
26780
26788
  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 +26822,7 @@ function Rr(t, e) {
26814
26822
  }
26815
26823
  return t;
26816
26824
  }
26817
- const xG = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
26825
+ const CG = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
26818
26826
  const o = Rr(t, r.schema), { doc: s, selection: a } = n, { $from: l, from: c, to: u } = a;
26819
26827
  if (i) {
26820
26828
  const d = lh(l, o, e);
@@ -26824,7 +26832,7 @@ const xG = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
26824
26832
  }
26825
26833
  }
26826
26834
  return !0;
26827
- }, CG = (t) => (e) => {
26835
+ }, SG = (t) => (e) => {
26828
26836
  const n = typeof t == "function" ? t(e) : t;
26829
26837
  for (let r = 0; r < n.length; r += 1)
26830
26838
  if (n[r](e))
@@ -26858,7 +26866,7 @@ function ch() {
26858
26866
  "iPod"
26859
26867
  ].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document;
26860
26868
  }
26861
- const SG = (t = null, e = {}) => ({ editor: n, view: r, tr: i, dispatch: o }) => {
26869
+ const wG = (t = null, e = {}) => ({ editor: n, view: r, tr: i, dispatch: o }) => {
26862
26870
  e = {
26863
26871
  scrollIntoView: !0,
26864
26872
  ...e
@@ -26874,7 +26882,7 @@ const SG = (t = null, e = {}) => ({ editor: n, view: r, tr: i, dispatch: o }) =>
26874
26882
  return s(), !0;
26875
26883
  const a = dw(i.doc, t) || n.state.selection, l = n.state.selection.eq(a);
26876
26884
  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) => {
26885
+ }, 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
26886
  const e = t.childNodes;
26879
26887
  for (let n = e.length - 1; n >= 0; n -= 1) {
26880
26888
  const r = e[n];
@@ -26935,7 +26943,7 @@ function nl(t, e, n) {
26935
26943
  }
26936
26944
  return nl("", e, n);
26937
26945
  }
26938
- function EG(t, e, n) {
26946
+ function AG(t, e, n) {
26939
26947
  const r = t.steps.length - 1;
26940
26948
  if (r < e)
26941
26949
  return;
@@ -26948,7 +26956,7 @@ function EG(t, e, n) {
26948
26956
  s === 0 && (s = u);
26949
26957
  }), t.setSelection(Ee.near(t.doc.resolve(s), n));
26950
26958
  }
26951
- const AG = (t) => !("type" in t), TG = (t, e, n) => ({ tr: r, dispatch: i, editor: o }) => {
26959
+ const TG = (t) => !("type" in t), kG = (t, e, n) => ({ tr: r, dispatch: i, editor: o }) => {
26952
26960
  var s;
26953
26961
  if (i) {
26954
26962
  n = {
@@ -26977,7 +26985,7 @@ const AG = (t) => !("type" in t), TG = (t, e, n) => ({ tr: r, dispatch: i, edito
26977
26985
  }), !1;
26978
26986
  }
26979
26987
  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) => {
26988
+ if ((TG(a) ? a : [a]).forEach((h) => {
26981
26989
  h.check(), u = u ? h.isText && h.marks.length === 0 : !1, d = d ? h.isBlock : !1;
26982
26990
  }), l === c && d) {
26983
26991
  const { parent: h } = r.doc.resolve(l);
@@ -26996,28 +27004,28 @@ const AG = (t) => !("type" in t), TG = (t, e, n) => ({ tr: r, dispatch: i, edito
26996
27004
  r.insertText(p, l, c);
26997
27005
  } else
26998
27006
  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 });
27007
+ 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
27008
  }
27001
27009
  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 }) => {
27010
+ }, 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
27011
  try {
27004
27012
  const r = fc(t.doc, t.selection.$from.pos, -1);
27005
27013
  return r == null ? !1 : (n.join(r, 2), e && e(n), !0);
27006
27014
  } catch {
27007
27015
  return !1;
27008
27016
  }
27009
- }, DG = () => ({ state: t, dispatch: e, tr: n }) => {
27017
+ }, NG = () => ({ state: t, dispatch: e, tr: n }) => {
27010
27018
  try {
27011
27019
  const r = fc(t.doc, t.selection.$from.pos, 1);
27012
27020
  return r == null ? !1 : (n.join(r, 2), e && e(n), !0);
27013
27021
  } catch {
27014
27022
  return !1;
27015
27023
  }
27016
- }, NG = () => ({ state: t, dispatch: e }) => w4(t, e), FG = () => ({ state: t, dispatch: e }) => I4(t, e);
27024
+ }, FG = () => ({ state: t, dispatch: e }) => w4(t, e), VG = () => ({ state: t, dispatch: e }) => I4(t, e);
27017
27025
  function pw() {
27018
27026
  return typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1;
27019
27027
  }
27020
- function VG(t) {
27028
+ function BG(t) {
27021
27029
  const e = t.split(/-(?!$)/);
27022
27030
  let n = e[e.length - 1];
27023
27031
  n === "Space" && (n = " ");
@@ -27039,8 +27047,8 @@ function VG(t) {
27039
27047
  }
27040
27048
  return r && (n = `Alt-${n}`), i && (n = `Ctrl-${n}`), s && (n = `Meta-${n}`), o && (n = `Shift-${n}`), n;
27041
27049
  }
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", {
27050
+ const LG = (t) => ({ editor: e, view: n, tr: r, dispatch: i }) => {
27051
+ const o = BG(t).split(/-(?!$)/), s = o.find((c) => !["Alt", "Ctrl", "Meta", "Shift"].includes(c)), a = new KeyboardEvent("keydown", {
27044
27052
  key: s === "Space" ? " " : s,
27045
27053
  altKey: o.includes("Alt"),
27046
27054
  ctrlKey: o.includes("Ctrl"),
@@ -27071,13 +27079,13 @@ function cs(t, e, n = {}) {
27071
27079
  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
27080
  return o ? !!c.length : c.reduce((d, f) => d + f.to - f.from, 0) >= l;
27073
27081
  }
27074
- const LG = (t, e = {}) => ({ state: n, dispatch: r }) => {
27082
+ const jG = (t, e = {}) => ({ state: n, dispatch: r }) => {
27075
27083
  const i = mt(t, n.schema);
27076
27084
  return cs(n, i, e) ? O4(n, r) : !1;
27077
- }, jG = () => ({ state: t, dispatch: e }) => N4(t, e), GG = (t) => ({ state: e, dispatch: n }) => {
27085
+ }, GG = () => ({ state: t, dispatch: e }) => N4(t, e), zG = (t) => ({ state: e, dispatch: n }) => {
27078
27086
  const r = mt(t, e.schema);
27079
- return _4(r)(e, n);
27080
- }, zG = () => ({ state: t, dispatch: e }) => R4(t, e);
27087
+ return H4(r)(e, n);
27088
+ }, _G = () => ({ state: t, dispatch: e }) => R4(t, e);
27081
27089
  function wc(t, e) {
27082
27090
  return e.nodes[t] ? "node" : e.marks[t] ? "mark" : null;
27083
27091
  }
@@ -27085,7 +27093,7 @@ function rb(t, e) {
27085
27093
  const n = typeof e == "string" ? [e] : e;
27086
27094
  return Object.keys(t).reduce((r, i) => (n.includes(i) || (r[i] = t[i]), r), {});
27087
27095
  }
27088
- const _G = (t, e) => ({ tr: n, state: r, dispatch: i }) => {
27096
+ const HG = (t, e) => ({ tr: n, state: r, dispatch: i }) => {
27089
27097
  let o = null, s = null;
27090
27098
  const a = wc(typeof t == "string" ? t : t.name, r.schema);
27091
27099
  return a ? (a === "node" && (o = mt(t, r.schema)), a === "mark" && (s = Rr(t, r.schema)), i && n.selection.ranges.forEach((l) => {
@@ -27095,10 +27103,10 @@ const _G = (t, e) => ({ tr: n, state: r, dispatch: i }) => {
27095
27103
  });
27096
27104
  });
27097
27105
  }), !0) : !1;
27098
- }, HG = () => ({ tr: t, dispatch: e }) => (e && t.scrollIntoView(), !0), $G = () => ({ tr: t, commands: e }) => e.setTextSelection({
27106
+ }, $G = () => ({ tr: t, dispatch: e }) => (e && t.scrollIntoView(), !0), WG = () => ({ tr: t, commands: e }) => e.setTextSelection({
27099
27107
  from: 0,
27100
27108
  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);
27109
+ }), 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
27110
  function nf(t, e, n = {}, r = {}) {
27103
27111
  return nl(t, e, {
27104
27112
  slice: !1,
@@ -27106,7 +27114,7 @@ function nf(t, e, n = {}, r = {}) {
27106
27114
  errorOnInvalidContent: r.errorOnInvalidContent
27107
27115
  });
27108
27116
  }
27109
- const UG = (t, e = !1, n = {}, r = {}) => ({ editor: i, tr: o, dispatch: s, commands: a }) => {
27117
+ const KG = (t, e = !1, n = {}, r = {}) => ({ editor: i, tr: o, dispatch: s, commands: a }) => {
27110
27118
  var l, c;
27111
27119
  const { doc: u } = o;
27112
27120
  if (n.preserveWhitespace !== "full") {
@@ -27128,7 +27136,7 @@ function uh(t, e) {
27128
27136
  const a = s.find((l) => l.type.name === n.name);
27129
27137
  return a ? { ...a.attrs } : {};
27130
27138
  }
27131
- function KG(t, e) {
27139
+ function qG(t, e) {
27132
27140
  const n = new mS(t);
27133
27141
  return e.forEach((r) => {
27134
27142
  r.steps.forEach((i) => {
@@ -27136,7 +27144,7 @@ function KG(t, e) {
27136
27144
  });
27137
27145
  }), n;
27138
27146
  }
27139
- function qG(t) {
27147
+ function QG(t) {
27140
27148
  for (let e = 0; e < t.edgeCount; e += 1) {
27141
27149
  const { type: n } = t.edge(e);
27142
27150
  if (n.isTextblock && !n.hasRequiredAttrs())
@@ -27144,7 +27152,7 @@ function qG(t) {
27144
27152
  }
27145
27153
  return null;
27146
27154
  }
27147
- function QG(t, e, n) {
27155
+ function ez(t, e, n) {
27148
27156
  const r = [];
27149
27157
  return t.nodesBetween(e.from, e.to, (i, o) => {
27150
27158
  n(i) && r.push({
@@ -27153,7 +27161,7 @@ function QG(t, e, n) {
27153
27161
  });
27154
27162
  }), r;
27155
27163
  }
27156
- function ez(t, e) {
27164
+ function tz(t, e) {
27157
27165
  for (let n = t.depth; n > 0; n -= 1) {
27158
27166
  const r = t.node(n);
27159
27167
  if (e(r))
@@ -27166,16 +27174,16 @@ function ez(t, e) {
27166
27174
  }
27167
27175
  }
27168
27176
  function dh(t) {
27169
- return (e) => ez(e.$from, t);
27177
+ return (e) => tz(e.$from, t);
27170
27178
  }
27171
- function tz(t, e) {
27179
+ function nz(t, e) {
27172
27180
  const n = {
27173
27181
  from: 0,
27174
27182
  to: t.content.size
27175
27183
  };
27176
27184
  return aw(t, n, e);
27177
27185
  }
27178
- function nz(t, e) {
27186
+ function rz(t, e) {
27179
27187
  const n = mt(e, t.schema), { from: r, to: i } = t.selection, o = [];
27180
27188
  t.doc.nodesBetween(r, i, (a) => {
27181
27189
  o.push(a);
@@ -27185,20 +27193,20 @@ function nz(t, e) {
27185
27193
  }
27186
27194
  function hw(t, e) {
27187
27195
  const n = wc(typeof e == "string" ? e : e.name, t.schema);
27188
- return n === "node" ? nz(t, e) : n === "mark" ? uh(t, e) : {};
27196
+ return n === "node" ? rz(t, e) : n === "mark" ? uh(t, e) : {};
27189
27197
  }
27190
- function rz(t, e = JSON.stringify) {
27198
+ function iz(t, e = JSON.stringify) {
27191
27199
  const n = {};
27192
27200
  return t.filter((r) => {
27193
27201
  const i = e(r);
27194
27202
  return Object.prototype.hasOwnProperty.call(n, i) ? !1 : n[i] = !0;
27195
27203
  });
27196
27204
  }
27197
- function iz(t) {
27198
- const e = rz(t);
27205
+ function oz(t) {
27206
+ const e = iz(t);
27199
27207
  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
27208
  }
27201
- function oz(t) {
27209
+ function sz(t) {
27202
27210
  const { mapping: e, steps: n } = t, r = [];
27203
27211
  return e.maps.forEach((i, o) => {
27204
27212
  const s = [];
@@ -27225,7 +27233,7 @@ function oz(t) {
27225
27233
  }
27226
27234
  });
27227
27235
  });
27228
- }), iz(r);
27236
+ }), oz(r);
27229
27237
  }
27230
27238
  function fh(t, e, n) {
27231
27239
  const r = [];
@@ -27272,7 +27280,7 @@ function rf(t, e, n = {}) {
27272
27280
  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
27281
  return (l > 0 ? l + c : l) >= s;
27274
27282
  }
27275
- function sz(t, e, n = {}) {
27283
+ function az(t, e, n = {}) {
27276
27284
  if (!e)
27277
27285
  return cs(t, null, n) || rf(t, null, n);
27278
27286
  const r = wc(e, t.schema);
@@ -27311,10 +27319,10 @@ function ph(t, { checkChildren: e = !0, ignoreWhitespace: n = !1 } = {}) {
27311
27319
  }
27312
27320
  return !1;
27313
27321
  }
27314
- function az(t) {
27322
+ function lz(t) {
27315
27323
  return t instanceof ge;
27316
27324
  }
27317
- function lz(t, e, n) {
27325
+ function cz(t, e, n) {
27318
27326
  var r;
27319
27327
  const { selection: i } = e;
27320
27328
  let o = null;
@@ -27336,7 +27344,7 @@ function lz(t, e, n) {
27336
27344
  }), c;
27337
27345
  });
27338
27346
  }
27339
- const cz = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
27347
+ const uz = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
27340
27348
  const { selection: o } = n, { empty: s, ranges: a } = o, l = Rr(t, r.schema);
27341
27349
  if (i)
27342
27350
  if (s) {
@@ -27358,26 +27366,26 @@ const cz = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
27358
27366
  }) : n.addMark(h, m, l.create(e));
27359
27367
  });
27360
27368
  });
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 }) => {
27369
+ return cz(r, n, l);
27370
+ }, dz = (t, e) => ({ tr: n }) => (n.setMeta(t, e), !0), fz = (t, e = {}) => ({ state: n, dispatch: r, chain: i }) => {
27363
27371
  const o = mt(t, n.schema);
27364
27372
  let s;
27365
27373
  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 }) => {
27374
+ }, pz = (t) => ({ tr: e, dispatch: n }) => {
27367
27375
  if (n) {
27368
27376
  const { doc: r } = e, i = Jr(t, 0, r.content.size), o = ge.create(r, i);
27369
27377
  e.setSelection(o);
27370
27378
  }
27371
27379
  return !0;
27372
- }, pz = (t) => ({ tr: e, dispatch: n }) => {
27380
+ }, hz = (t) => ({ tr: e, dispatch: n }) => {
27373
27381
  if (n) {
27374
27382
  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
27383
  e.setSelection(u);
27376
27384
  }
27377
27385
  return !0;
27378
- }, hz = (t) => ({ state: e, dispatch: n }) => {
27386
+ }, mz = (t) => ({ state: e, dispatch: n }) => {
27379
27387
  const r = mt(t, e.schema);
27380
- return W4(r)(e, n);
27388
+ return X4(r)(e, n);
27381
27389
  };
27382
27390
  function ob(t, e) {
27383
27391
  const n = t.storedMarks || t.selection.$to.parentOffset && t.selection.$from.marks();
@@ -27386,13 +27394,13 @@ function ob(t, e) {
27386
27394
  t.tr.ensureMarks(r);
27387
27395
  }
27388
27396
  }
27389
- const mz = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor: i }) => {
27397
+ const gz = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor: i }) => {
27390
27398
  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
27399
  if (o instanceof ge && o.node.isBlock)
27392
27400
  return !a.parentOffset || !ji(s, a.pos) ? !1 : (r && (t && ob(n, i.extensionManager.splittableMarks), e.split(a.pos).scrollIntoView()), !0);
27393
27401
  if (!a.parent.isBlock)
27394
27402
  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)));
27403
+ const d = l.parentOffset === l.parent.content.size, f = a.depth === 0 ? void 0 : QG(a.node(-1).contentMatchAt(a.indexAfter(-1)));
27396
27404
  let p = d && f ? [
27397
27405
  {
27398
27406
  type: f,
@@ -27412,7 +27420,7 @@ const mz = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
27412
27420
  t && ob(n, i.extensionManager.splittableMarks), e.scrollIntoView();
27413
27421
  }
27414
27422
  return h;
27415
- }, gz = (t, e = {}) => ({ tr: n, state: r, dispatch: i, editor: o }) => {
27423
+ }, vz = (t, e = {}) => ({ tr: n, state: r, dispatch: i, editor: o }) => {
27416
27424
  var s;
27417
27425
  const a = mt(t, r.schema), { $from: l, $to: c } = r.selection, u = r.selection.node;
27418
27426
  if (u && u.isBlock || l.depth < 2 || !l.sameParent(c))
@@ -27485,7 +27493,7 @@ const mz = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
27485
27493
  return !0;
27486
27494
  const i = t.doc.nodeAt(r);
27487
27495
  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 }) => {
27496
+ }, bz = (t, e, n, r = {}) => ({ editor: i, tr: o, state: s, dispatch: a, chain: l, commands: c, can: u }) => {
27489
27497
  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
27498
  if (!C)
27491
27499
  return !1;
@@ -27500,17 +27508,17 @@ const mz = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
27500
27508
  const E = u().wrapInList(p, r), T = S.filter((A) => f.includes(A.type.name));
27501
27509
  return o.ensureMarks(T), E ? !0 : c.clearNodes();
27502
27510
  }).wrapInList(p, r).command(() => Eu(o, p)).command(() => Au(o, p)).run();
27503
- }, bz = (t, e = {}, n = {}) => ({ state: r, commands: i }) => {
27511
+ }, yz = (t, e = {}, n = {}) => ({ state: r, commands: i }) => {
27504
27512
  const { extendEmptyMarkRange: o = !1 } = n, s = Rr(t, r.schema);
27505
27513
  return rf(r, s, e) ? i.unsetMark(s, { extendEmptyMarkRange: o }) : i.setMark(s, e);
27506
- }, yz = (t, e, n = {}) => ({ state: r, commands: i }) => {
27514
+ }, xz = (t, e, n = {}) => ({ state: r, commands: i }) => {
27507
27515
  const o = mt(t, r.schema), s = mt(e, r.schema), a = cs(r, o, n);
27508
27516
  let l;
27509
27517
  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 }) => {
27518
+ }, Cz = (t, e = {}) => ({ state: n, commands: r }) => {
27511
27519
  const i = mt(t, n.schema);
27512
27520
  return cs(n, i, e) ? r.lift(i) : r.wrapIn(i, e);
27513
- }, Cz = () => ({ state: t, dispatch: e }) => {
27521
+ }, Sz = () => ({ state: t, dispatch: e }) => {
27514
27522
  const n = t.plugins;
27515
27523
  for (let r = 0; r < n.length; r += 1) {
27516
27524
  const i = n[r];
@@ -27530,12 +27538,12 @@ const mz = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
27530
27538
  }
27531
27539
  }
27532
27540
  return !1;
27533
- }, Sz = () => ({ tr: t, dispatch: e }) => {
27541
+ }, wz = () => ({ tr: t, dispatch: e }) => {
27534
27542
  const { selection: n } = t, { empty: r, ranges: i } = n;
27535
27543
  return r || e && i.forEach((o) => {
27536
27544
  t.removeMark(o.$from.pos, o.$to.pos);
27537
27545
  }), !0;
27538
- }, wz = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
27546
+ }, Iz = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
27539
27547
  var o;
27540
27548
  const { extendEmptyMarkRange: s = !1 } = e, { selection: a } = n, l = Rr(t, r.schema), { $from: c, empty: u, ranges: d } = a;
27541
27549
  if (!i)
@@ -27549,7 +27557,7 @@ const mz = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
27549
27557
  n.removeMark(f.$from.pos, f.$to.pos, l);
27550
27558
  });
27551
27559
  return n.removeStoredMark(l), !0;
27552
- }, Iz = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
27560
+ }, Ez = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
27553
27561
  let o = null, s = null;
27554
27562
  const a = wc(typeof t == "string" ? t : t.name, r.schema);
27555
27563
  return a ? (a === "node" && (o = mt(t, r.schema)), a === "mark" && (s = Rr(t, r.schema)), i && n.selection.ranges.forEach((l) => {
@@ -27580,82 +27588,82 @@ const mz = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
27580
27588
  }));
27581
27589
  }));
27582
27590
  }), !0) : !1;
27583
- }, Ez = (t, e = {}) => ({ state: n, dispatch: r }) => {
27591
+ }, Az = (t, e = {}) => ({ state: n, dispatch: r }) => {
27584
27592
  const i = mt(t, n.schema);
27585
27593
  return j4(i, e)(n, r);
27586
- }, Az = (t, e = {}) => ({ state: n, dispatch: r }) => {
27594
+ }, Tz = (t, e = {}) => ({ state: n, dispatch: r }) => {
27587
27595
  const i = mt(t, n.schema);
27588
27596
  return G4(i, e)(n, r);
27589
27597
  };
27590
- var Tz = /* @__PURE__ */ Object.freeze({
27598
+ var kz = /* @__PURE__ */ Object.freeze({
27591
27599
  __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
27600
+ blur: cG,
27601
+ clearContent: uG,
27602
+ clearNodes: dG,
27603
+ command: fG,
27604
+ createParagraphNear: pG,
27605
+ cut: hG,
27606
+ deleteCurrentNode: mG,
27607
+ deleteNode: gG,
27608
+ deleteRange: vG,
27609
+ deleteSelection: bG,
27610
+ enter: yG,
27611
+ exitCode: xG,
27612
+ extendMarkRange: CG,
27613
+ first: SG,
27614
+ focus: wG,
27615
+ forEach: IG,
27616
+ insertContent: EG,
27617
+ insertContentAt: kG,
27618
+ joinBackward: RG,
27619
+ joinDown: OG,
27620
+ joinForward: PG,
27621
+ joinItemBackward: DG,
27622
+ joinItemForward: NG,
27623
+ joinTextblockBackward: FG,
27624
+ joinTextblockForward: VG,
27625
+ joinUp: MG,
27626
+ keyboardShortcut: LG,
27627
+ lift: jG,
27628
+ liftEmptyBlock: GG,
27629
+ liftListItem: zG,
27630
+ newlineInCode: _G,
27631
+ resetAttributes: HG,
27632
+ scrollIntoView: $G,
27633
+ selectAll: WG,
27634
+ selectNodeBackward: XG,
27635
+ selectNodeForward: YG,
27636
+ selectParentNode: ZG,
27637
+ selectTextblockEnd: JG,
27638
+ selectTextblockStart: UG,
27639
+ setContent: KG,
27640
+ setMark: uz,
27641
+ setMeta: dz,
27642
+ setNode: fz,
27643
+ setNodeSelection: pz,
27644
+ setTextSelection: hz,
27645
+ sinkListItem: mz,
27646
+ splitBlock: gz,
27647
+ splitListItem: vz,
27648
+ toggleList: bz,
27649
+ toggleMark: yz,
27650
+ toggleNode: xz,
27651
+ toggleWrap: Cz,
27652
+ undoInputRule: Sz,
27653
+ unsetAllMarks: wz,
27654
+ unsetMark: Iz,
27655
+ updateAttributes: Ez,
27656
+ wrapIn: Az,
27657
+ wrapInList: Tz
27650
27658
  });
27651
- const kz = Ot.create({
27659
+ const Mz = Ot.create({
27652
27660
  name: "commands",
27653
27661
  addCommands() {
27654
27662
  return {
27655
- ...Tz
27663
+ ...kz
27656
27664
  };
27657
27665
  }
27658
- }), Mz = Ot.create({
27666
+ }), Oz = Ot.create({
27659
27667
  name: "drop",
27660
27668
  addProseMirrorPlugins() {
27661
27669
  return [
@@ -27674,7 +27682,7 @@ const kz = Ot.create({
27674
27682
  })
27675
27683
  ];
27676
27684
  }
27677
- }), Oz = Ot.create({
27685
+ }), Rz = Ot.create({
27678
27686
  name: "editable",
27679
27687
  addProseMirrorPlugins() {
27680
27688
  return [
@@ -27686,7 +27694,7 @@ const kz = Ot.create({
27686
27694
  })
27687
27695
  ];
27688
27696
  }
27689
- }), Rz = Ot.create({
27697
+ }), Pz = Ot.create({
27690
27698
  name: "focusEvents",
27691
27699
  addProseMirrorPlugins() {
27692
27700
  const { editor: t } = this;
@@ -27710,7 +27718,7 @@ const kz = Ot.create({
27710
27718
  })
27711
27719
  ];
27712
27720
  }
27713
- }), Pz = Ot.create({
27721
+ }), Dz = Ot.create({
27714
27722
  name: "keymap",
27715
27723
  addKeyboardShortcuts() {
27716
27724
  const t = () => this.editor.commands.first(({ commands: s }) => [
@@ -27786,7 +27794,7 @@ const kz = Ot.create({
27786
27794
  })
27787
27795
  ];
27788
27796
  }
27789
- }), Dz = Ot.create({
27797
+ }), Nz = Ot.create({
27790
27798
  name: "paste",
27791
27799
  addProseMirrorPlugins() {
27792
27800
  return [
@@ -27804,7 +27812,7 @@ const kz = Ot.create({
27804
27812
  })
27805
27813
  ];
27806
27814
  }
27807
- }), Nz = Ot.create({
27815
+ }), Fz = Ot.create({
27808
27816
  name: "tabindex",
27809
27817
  addProseMirrorPlugins() {
27810
27818
  return [
@@ -27940,7 +27948,7 @@ class Gr {
27940
27948
  }), this.editor.view.dispatch(n);
27941
27949
  }
27942
27950
  }
27943
- const Fz = `.ProseMirror {
27951
+ const Vz = `.ProseMirror {
27944
27952
  position: relative;
27945
27953
  }
27946
27954
 
@@ -28015,14 +28023,14 @@ img.ProseMirror-separator {
28015
28023
  .tippy-box[data-animation=fade][data-state=hidden] {
28016
28024
  opacity: 0
28017
28025
  }`;
28018
- function Vz(t, e, n) {
28026
+ function Bz(t, e, n) {
28019
28027
  const r = document.querySelector("style[data-tiptap-style]");
28020
28028
  if (r !== null)
28021
28029
  return r;
28022
28030
  const i = document.createElement("style");
28023
28031
  return e && i.setAttribute("nonce", e), i.setAttribute("data-tiptap-style", ""), i.innerHTML = t, document.getElementsByTagName("head")[0].appendChild(i), i;
28024
28032
  }
28025
- let Bz = class extends X4 {
28033
+ let Lz = class extends Y4 {
28026
28034
  constructor(e = {}) {
28027
28035
  super(), this.isFocused = !1, this.isInitialized = !1, this.extensionStorage = {}, this.options = {
28028
28036
  element: document.createElement("div"),
@@ -28084,7 +28092,7 @@ let Bz = class extends X4 {
28084
28092
  * Inject CSS styles.
28085
28093
  */
28086
28094
  injectCSS() {
28087
- this.options.injectCSS && document && (this.css = Vz(Fz, this.options.injectNonce));
28095
+ this.options.injectCSS && document && (this.css = Bz(Vz, this.options.injectNonce));
28088
28096
  }
28089
28097
  /**
28090
28098
  * Update editor options.
@@ -28153,16 +28161,16 @@ let Bz = class extends X4 {
28153
28161
  createExtensionManager() {
28154
28162
  var e, n;
28155
28163
  const i = [...this.options.enableCoreExtensions ? [
28156
- Oz,
28157
- aG.configure({
28164
+ Rz,
28165
+ lG.configure({
28158
28166
  blockSeparator: (n = (e = this.options.coreExtensionOptions) === null || e === void 0 ? void 0 : e.clipboardTextSerializer) === null || n === void 0 ? void 0 : n.blockSeparator
28159
28167
  }),
28160
- kz,
28161
- Rz,
28162
- Pz,
28163
- Nz,
28164
28168
  Mz,
28165
- Dz
28169
+ Pz,
28170
+ Dz,
28171
+ Fz,
28172
+ Oz,
28173
+ Nz
28166
28174
  ].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
28175
  this.extensionManager = new Vi(i, this);
28168
28176
  }
@@ -28292,7 +28300,7 @@ let Bz = class extends X4 {
28292
28300
  }
28293
28301
  isActive(e, n) {
28294
28302
  const r = typeof e == "string" ? e : null, i = typeof e == "string" ? n : e;
28295
- return sz(this.state, r, i);
28303
+ return az(this.state, r, i);
28296
28304
  }
28297
28305
  /**
28298
28306
  * Get the document as JSON.
@@ -28313,7 +28321,7 @@ let Bz = class extends X4 {
28313
28321
  const { blockSeparator: n = `
28314
28322
 
28315
28323
  `, textSerializers: r = {} } = e || {};
28316
- return tz(this.state.doc, {
28324
+ return nz(this.state.doc, {
28317
28325
  blockSeparator: n,
28318
28326
  textSerializers: {
28319
28327
  ...lw(this.schema),
@@ -28387,7 +28395,7 @@ function Ki(t) {
28387
28395
  }
28388
28396
  });
28389
28397
  }
28390
- function Lz(t) {
28398
+ function jz(t) {
28391
28399
  return new Cc({
28392
28400
  find: t.find,
28393
28401
  handler: ({ state: e, range: n, match: r }) => {
@@ -28478,7 +28486,7 @@ let vn = class sf {
28478
28486
  }
28479
28487
  };
28480
28488
  function di(t) {
28481
- return new tG({
28489
+ return new nG({
28482
28490
  find: t.find,
28483
28491
  handler: ({ state: e, range: n, match: r, pasteEvent: i }) => {
28484
28492
  const o = Te(t.getAttributes, void 0, r, i);
@@ -28495,7 +28503,7 @@ function di(t) {
28495
28503
  }
28496
28504
  });
28497
28505
  }
28498
- function jz(t) {
28506
+ function Gz(t) {
28499
28507
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
28500
28508
  }
28501
28509
  var af = { exports: {} }, Tu = {};
@@ -28509,7 +28517,7 @@ var af = { exports: {} }, Tu = {};
28509
28517
  * LICENSE file in the root directory of this source tree.
28510
28518
  */
28511
28519
  var sb;
28512
- function Gz() {
28520
+ function zz() {
28513
28521
  if (sb) return Tu;
28514
28522
  sb = 1;
28515
28523
  var t = W;
@@ -28554,7 +28562,7 @@ var ku = {};
28554
28562
  * LICENSE file in the root directory of this source tree.
28555
28563
  */
28556
28564
  var ab;
28557
- function zz() {
28565
+ function _z() {
28558
28566
  return ab || (ab = 1, process.env.NODE_ENV !== "production" && function() {
28559
28567
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
28560
28568
  var t = W, e = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -28624,17 +28632,17 @@ function zz() {
28624
28632
  ku.useSyncExternalStore = y, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
28625
28633
  }()), ku;
28626
28634
  }
28627
- process.env.NODE_ENV === "production" ? af.exports = Gz() : af.exports = zz();
28635
+ process.env.NODE_ENV === "production" ? af.exports = zz() : af.exports = _z();
28628
28636
  var Ic = af.exports;
28629
- const _z = (...t) => (e) => {
28637
+ const Hz = (...t) => (e) => {
28630
28638
  t.forEach((n) => {
28631
28639
  typeof n == "function" ? n(e) : n && (n.current = e);
28632
28640
  });
28633
- }, Hz = ({ contentComponent: t }) => {
28641
+ }, $z = ({ contentComponent: t }) => {
28634
28642
  const e = Ic.useSyncExternalStore(t.subscribe, t.getSnapshot, t.getServerSnapshot);
28635
28643
  return W.createElement(W.Fragment, null, Object.values(e));
28636
28644
  };
28637
- function $z() {
28645
+ function Wz() {
28638
28646
  const t = /* @__PURE__ */ new Set();
28639
28647
  let e = {};
28640
28648
  return {
@@ -28670,7 +28678,7 @@ function $z() {
28670
28678
  }
28671
28679
  };
28672
28680
  }
28673
- class Wz extends W.Component {
28681
+ class Xz extends W.Component {
28674
28682
  constructor(e) {
28675
28683
  var n;
28676
28684
  super(e), this.editorContentRef = W.createRef(), this.initialized = !1, this.state = {
@@ -28691,7 +28699,7 @@ class Wz extends W.Component {
28691
28699
  const n = this.editorContentRef.current;
28692
28700
  n.append(...e.options.element.childNodes), e.setOptions({
28693
28701
  element: n
28694
- }), e.contentComponent = $z(), this.state.hasContentComponentInitialized || (this.unsubscribeToContentComponent = e.contentComponent.subscribe(() => {
28702
+ }), e.contentComponent = Wz(), this.state.hasContentComponentInitialized || (this.unsubscribeToContentComponent = e.contentComponent.subscribe(() => {
28695
28703
  this.setState((r) => r.hasContentComponentInitialized ? r : {
28696
28704
  hasContentComponentInitialized: !0
28697
28705
  }), this.unsubscribeToContentComponent && this.unsubscribeToContentComponent();
@@ -28714,20 +28722,20 @@ class Wz extends W.Component {
28714
28722
  return W.createElement(
28715
28723
  W.Fragment,
28716
28724
  null,
28717
- W.createElement("div", { ref: _z(n, this.editorContentRef), ...r }),
28718
- (e == null ? void 0 : e.contentComponent) && W.createElement(Hz, { contentComponent: e.contentComponent })
28725
+ W.createElement("div", { ref: Hz(n, this.editorContentRef), ...r }),
28726
+ (e == null ? void 0 : e.contentComponent) && W.createElement($z, { contentComponent: e.contentComponent })
28719
28727
  );
28720
28728
  }
28721
28729
  }
28722
- const Xz = pi((t, e) => {
28730
+ const Yz = pi((t, e) => {
28723
28731
  const n = W.useMemo(() => Math.floor(Math.random() * 4294967295).toString(), [t.editor]);
28724
- return W.createElement(Wz, {
28732
+ return W.createElement(Xz, {
28725
28733
  key: n,
28726
28734
  innerRef: e,
28727
28735
  ...t
28728
28736
  });
28729
- }), Yz = W.memo(Xz);
28730
- var Zz = function t(e, n) {
28737
+ }), Zz = W.memo(Yz);
28738
+ var Jz = function t(e, n) {
28731
28739
  if (e === n) return !0;
28732
28740
  if (e && n && typeof e == "object" && typeof n == "object") {
28733
28741
  if (e.constructor !== n.constructor) return !1;
@@ -28772,7 +28780,7 @@ var Zz = function t(e, n) {
28772
28780
  return !0;
28773
28781
  }
28774
28782
  return e !== e && n !== n;
28775
- }, Jz = /* @__PURE__ */ jz(Zz), lf = { exports: {} }, Mu = {};
28783
+ }, Uz = /* @__PURE__ */ Gz(Jz), lf = { exports: {} }, Mu = {};
28776
28784
  /**
28777
28785
  * @license React
28778
28786
  * use-sync-external-store-shim/with-selector.production.min.js
@@ -28783,7 +28791,7 @@ var Zz = function t(e, n) {
28783
28791
  * LICENSE file in the root directory of this source tree.
28784
28792
  */
28785
28793
  var lb;
28786
- function Uz() {
28794
+ function Kz() {
28787
28795
  if (lb) return Mu;
28788
28796
  lb = 1;
28789
28797
  var t = W, e = Ic;
@@ -28834,7 +28842,7 @@ var Ou = {};
28834
28842
  * LICENSE file in the root directory of this source tree.
28835
28843
  */
28836
28844
  var cb;
28837
- function Kz() {
28845
+ function qz() {
28838
28846
  return cb || (cb = 1, process.env.NODE_ENV !== "production" && function() {
28839
28847
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
28840
28848
  var t = W, e = Ic;
@@ -28879,10 +28887,10 @@ function Kz() {
28879
28887
  Ou.useSyncExternalStoreWithSelector = c, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
28880
28888
  }()), Ou;
28881
28889
  }
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_ {
28890
+ process.env.NODE_ENV === "production" ? lf.exports = Kz() : lf.exports = qz();
28891
+ var Qz = lf.exports;
28892
+ const e_ = typeof window < "u" ? eo : Re;
28893
+ class t_ {
28886
28894
  constructor(e) {
28887
28895
  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
28896
  }
@@ -28920,13 +28928,13 @@ class e_ {
28920
28928
  }
28921
28929
  }
28922
28930
  }
28923
- function t_(t) {
28931
+ function n_(t) {
28924
28932
  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;
28933
+ 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);
28934
+ return e_(() => n.watch(t.editor), [t.editor, n]), ty(r), r;
28927
28935
  }
28928
- const ub = process.env.NODE_ENV !== "production", cf = typeof window > "u", n_ = cf || !!(typeof window < "u" && window.next);
28929
- class r_ {
28936
+ const ub = process.env.NODE_ENV !== "production", cf = typeof window > "u", r_ = cf || !!(typeof window < "u" && window.next);
28937
+ class i_ {
28930
28938
  constructor(e) {
28931
28939
  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
28940
  }
@@ -28935,7 +28943,7 @@ class r_ {
28935
28943
  }
28936
28944
  getInitialEditor() {
28937
28945
  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();
28946
+ 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
28947
  if (this.options.current.immediatelyRender && cf && ub)
28940
28948
  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
28949
  return this.options.current.immediatelyRender ? this.createEditor() : null;
@@ -28992,7 +29000,7 @@ class r_ {
28992
29000
  return (o = (i = this.options.current).onPaste) === null || o === void 0 ? void 0 : o.call(i, ...r);
28993
29001
  }
28994
29002
  };
28995
- return new Bz(e);
29003
+ return new Lz(e);
28996
29004
  }
28997
29005
  /**
28998
29006
  * Get the current editor instance.
@@ -29057,24 +29065,24 @@ class r_ {
29057
29065
  }, 1);
29058
29066
  }
29059
29067
  }
29060
- function i_(t = {}, e = []) {
29068
+ function o_(t = {}, e = []) {
29061
29069
  const n = de(t);
29062
29070
  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_({
29071
+ const [r] = Oe(() => new i_(n)), i = Ic.useSyncExternalStore(r.subscribe, r.getEditor, r.getServerSnapshot);
29072
+ return ty(i), Re(r.onRender(e)), n_({
29065
29073
  editor: i,
29066
29074
  selector: ({ transactionNumber: o }) => t.shouldRerenderOnTransaction === !1 ? null : t.immediatelyRender && o === 0 ? 0 : o + 1
29067
29075
  }), i;
29068
29076
  }
29069
- const o_ = qe({
29077
+ const s_ = qe({
29070
29078
  editor: null
29071
29079
  });
29072
- o_.Consumer;
29073
- const s_ = qe({
29080
+ s_.Consumer;
29081
+ const a_ = qe({
29074
29082
  onDragStart: void 0
29075
- }), a_ = () => Me(s_);
29083
+ }), l_ = () => Me(a_);
29076
29084
  W.forwardRef((t, e) => {
29077
- const { onDragStart: n } = a_(), r = t.as || "div";
29085
+ const { onDragStart: n } = l_(), r = t.as || "div";
29078
29086
  return (
29079
29087
  // @ts-ignore
29080
29088
  W.createElement(r, { ...t, ref: e, "data-node-view-wrapper": "", onDragStart: n, style: {
@@ -29083,7 +29091,7 @@ W.forwardRef((t, e) => {
29083
29091
  } })
29084
29092
  );
29085
29093
  });
29086
- const l_ = pn.create({
29094
+ const c_ = pn.create({
29087
29095
  name: "textStyle",
29088
29096
  priority: 101,
29089
29097
  addOptions() {
@@ -29110,7 +29118,7 @@ const l_ = pn.create({
29110
29118
  }
29111
29119
  };
29112
29120
  }
29113
- }), c_ = Ot.create({
29121
+ }), u_ = Ot.create({
29114
29122
  name: "color",
29115
29123
  addOptions() {
29116
29124
  return {
@@ -29191,22 +29199,22 @@ const l_ = pn.create({
29191
29199
  }
29192
29200
  }));
29193
29201
  }
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) => {
29202
+ }), 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
29203
  for (const n in e)
29196
29204
  t[n] = e[n];
29197
29205
  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) {
29206
+ }, uf = "numeric", df = "ascii", ff = "alpha", jo = "asciinumeric", Eo = "alphanumeric", pf = "domain", gw = "emoji", p_ = "scheme", h_ = "slashscheme", Ru = "whitespace";
29207
+ function m_(t, e) {
29200
29208
  return t in e || (e[t] = []), e[t];
29201
29209
  }
29202
29210
  function Ur(t, e, n) {
29203
29211
  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
29212
  for (const r in e) {
29205
- const i = h_(r, n);
29213
+ const i = m_(r, n);
29206
29214
  i.indexOf(t) < 0 && i.push(t);
29207
29215
  }
29208
29216
  }
29209
- function m_(t, e) {
29217
+ function g_(t, e) {
29210
29218
  const n = {};
29211
29219
  for (const r in e)
29212
29220
  e[r].indexOf(t) >= 0 && (n[r] = !0);
@@ -29328,7 +29336,7 @@ jt.prototype = {
29328
29336
  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
29337
  if (r)
29330
29338
  if (s.t && typeof s.t == "string") {
29331
- const l = qi(m_(s.t, r), n);
29339
+ const l = qi(g_(s.t, r), n);
29332
29340
  Ur(o, l, r);
29333
29341
  } else n && Ur(o, n, r);
29334
29342
  s.t = o;
@@ -29396,13 +29404,13 @@ var Cw = /* @__PURE__ */ Object.freeze({
29396
29404
  SYM: kl
29397
29405
  });
29398
29406
  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 = "";
29407
+ `, v_ = "️", b_ = "‍", Fu = "";
29400
29408
  let qs = null, Qs = null;
29401
- function b_(t = []) {
29409
+ function y_(t = []) {
29402
29410
  const e = {};
29403
29411
  jt.groups = e;
29404
29412
  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);
29413
+ 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
29414
  const r = Qe(n, Gn, hh, {
29407
29415
  [uf]: !0
29408
29416
  });
@@ -29430,8 +29438,8 @@ function b_(t = []) {
29430
29438
  const d = Qe(n, Pu, xw, {
29431
29439
  [gw]: !0
29432
29440
  });
29433
- K(d, "#"), Qe(d, Pu, d), K(d, g_, d);
29434
- const f = K(d, v_);
29441
+ K(d, "#"), Qe(d, Pu, d), K(d, v_, d);
29442
+ const f = K(d, b_);
29435
29443
  K(f, "#"), Qe(f, Pu, d);
29436
29444
  const p = [[jn, s], [Gn, i]], h = [[jn, null], [go, a], [Gn, o]];
29437
29445
  for (let m = 0; m < qs.length; m++)
@@ -29453,9 +29461,9 @@ function b_(t = []) {
29453
29461
  }, e), t = t.sort((m, g) => m[0] > g[0] ? 1 : -1);
29454
29462
  for (let m = 0; m < t.length; m++) {
29455
29463
  const g = t[m][0], y = t[m][1] ? {
29456
- [f_]: !0
29457
- } : {
29458
29464
  [p_]: !0
29465
+ } : {
29466
+ [h_]: !0
29459
29467
  };
29460
29468
  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
29469
  }
@@ -29469,7 +29477,7 @@ function b_(t = []) {
29469
29477
  };
29470
29478
  }
29471
29479
  function Sw(t, e) {
29472
- const n = y_(e.replace(/[A-Z]/g, (a) => a.toLowerCase())), r = n.length, i = [];
29480
+ const n = x_(e.replace(/[A-Z]/g, (a) => a.toLowerCase())), r = n.length, i = [];
29473
29481
  let o = 0, s = 0;
29474
29482
  for (; s < r; ) {
29475
29483
  let a = t, l = null, c = 0, u = null, d = -1, f = -1;
@@ -29488,7 +29496,7 @@ function Sw(t, e) {
29488
29496
  }
29489
29497
  return i;
29490
29498
  }
29491
- function y_(t) {
29499
+ function x_(t) {
29492
29500
  const e = [], n = t.length;
29493
29501
  let r = 0;
29494
29502
  for (; r < n; ) {
@@ -29734,7 +29742,7 @@ const mb = Ec("email", {
29734
29742
  toHref() {
29735
29743
  return "mailto:" + this.toString();
29736
29744
  }
29737
- }), gb = Ec("text"), x_ = Ec("nl"), ea = Ec("url", {
29745
+ }), gb = Ec("text"), C_ = Ec("nl"), ea = Ec("url", {
29738
29746
  isLink: !0,
29739
29747
  /**
29740
29748
  Lowercases relevant parts of the domain and adds the protocol if
@@ -29755,7 +29763,7 @@ const mb = Ec("email", {
29755
29763
  return t.length >= 2 && t[0].t !== ds && t[1].t === fr;
29756
29764
  }
29757
29765
  }), Jt = (t) => new jt(t);
29758
- function C_({
29766
+ function S_({
29759
29767
  groups: t
29760
29768
  }) {
29761
29769
  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 +29820,12 @@ function C_({
29812
29820
  const B = Jt();
29813
29821
  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
29822
  }
29815
- return K(i, ds, y), K(i, mh, x_), {
29823
+ return K(i, ds, y), K(i, mh, C_), {
29816
29824
  start: i,
29817
29825
  tokens: Cw
29818
29826
  };
29819
29827
  }
29820
- function S_(t, e, n) {
29828
+ function w_(t, e, n) {
29821
29829
  let r = n.length, i = 0, o = [], s = [];
29822
29830
  for (; i < r; ) {
29823
29831
  let a = t, l = null, c = null, u = 0, d = null, f = -1;
@@ -29839,8 +29847,8 @@ function Vu(t, e, n) {
29839
29847
  const r = n[0].s, i = n[n.length - 1].e, o = e.slice(r, i);
29840
29848
  return new t(o, n);
29841
29849
  }
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 = {
29850
+ const I_ = typeof console < "u" && console && console.warn || (() => {
29851
+ }), E_ = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", Xe = {
29844
29852
  scanner: null,
29845
29853
  parser: null,
29846
29854
  tokenQueue: [],
@@ -29848,24 +29856,24 @@ const w_ = typeof console < "u" && console && console.warn || (() => {
29848
29856
  customSchemes: [],
29849
29857
  initialized: !1
29850
29858
  };
29851
- function E_() {
29859
+ function A_() {
29852
29860
  return jt.groups = {}, Xe.scanner = null, Xe.parser = null, Xe.tokenQueue = [], Xe.pluginQueue = [], Xe.customSchemes = [], Xe.initialized = !1, Xe;
29853
29861
  }
29854
29862
  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))
29863
+ if (Xe.initialized && I_(`linkifyjs: already initialized - will not register custom scheme "${t}" ${E_}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))
29856
29864
  throw new Error(`linkifyjs: incorrect scheme format.
29857
29865
  1. Must only contain digits, lowercase ASCII letters or "-"
29858
29866
  2. Cannot start or end with "-"
29859
29867
  3. "-" cannot repeat`);
29860
29868
  Xe.customSchemes.push([t, e]);
29861
29869
  }
29862
- function A_() {
29863
- Xe.scanner = b_(Xe.customSchemes);
29870
+ function T_() {
29871
+ Xe.scanner = y_(Xe.customSchemes);
29864
29872
  for (let t = 0; t < Xe.tokenQueue.length; t++)
29865
29873
  Xe.tokenQueue[t][1]({
29866
29874
  scanner: Xe.scanner
29867
29875
  });
29868
- Xe.parser = C_(Xe.scanner.tokens);
29876
+ Xe.parser = S_(Xe.scanner.tokens);
29869
29877
  for (let t = 0; t < Xe.pluginQueue.length; t++)
29870
29878
  Xe.pluginQueue[t][1]({
29871
29879
  scanner: Xe.scanner,
@@ -29874,7 +29882,7 @@ function A_() {
29874
29882
  return Xe.initialized = !0, Xe;
29875
29883
  }
29876
29884
  function Sh(t) {
29877
- return Xe.initialized || A_(), S_(Xe.parser.start, t, Sw(Xe.scanner.start, t));
29885
+ return Xe.initialized || T_(), w_(Xe.parser.start, t, Sw(Xe.scanner.start, t));
29878
29886
  }
29879
29887
  Sh.scan = Sw;
29880
29888
  function Iw(t, e = null, n = null) {
@@ -29890,19 +29898,19 @@ function Iw(t, e = null, n = null) {
29890
29898
  }
29891
29899
  return o;
29892
29900
  }
29893
- function T_(t) {
29901
+ function k_(t) {
29894
29902
  return t.length === 1 ? t[0].isLink : t.length === 3 && t[1].isLink ? ["()", "[]"].includes(t[0].value + t[2].value) : !1;
29895
29903
  }
29896
- function k_(t) {
29904
+ function M_(t) {
29897
29905
  return new St({
29898
29906
  key: new Yt("autolink"),
29899
29907
  appendTransaction: (e, n, r) => {
29900
29908
  const i = e.some((c) => c.docChanged) && !n.doc.eq(r.doc), o = e.some((c) => c.getMeta("preventAutolink"));
29901
29909
  if (!i || o)
29902
29910
  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);
29911
+ const { tr: s } = r, a = qG(n.doc, [...e]);
29912
+ if (sz(a).forEach(({ newRange: c }) => {
29913
+ const u = ez(r.doc, c, (p) => p.isTextblock);
29906
29914
  let d, f;
29907
29915
  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
29916
  const p = f.split(" ").filter((v) => v !== "");
@@ -29912,7 +29920,7 @@ function k_(t) {
29912
29920
  if (!h)
29913
29921
  return !1;
29914
29922
  const g = Sh(h).map((v) => v.toObject(t.defaultProtocol));
29915
- if (!T_(g))
29923
+ if (!k_(g))
29916
29924
  return !1;
29917
29925
  g.filter((v) => v.isLink).map((v) => ({
29918
29926
  ...v,
@@ -29929,7 +29937,7 @@ function k_(t) {
29929
29937
  }
29930
29938
  });
29931
29939
  }
29932
- function M_(t) {
29940
+ function O_(t) {
29933
29941
  return new St({
29934
29942
  key: new Yt("handleClickLink"),
29935
29943
  props: {
@@ -29949,7 +29957,7 @@ function M_(t) {
29949
29957
  }
29950
29958
  });
29951
29959
  }
29952
- function O_(t) {
29960
+ function R_(t) {
29953
29961
  return new St({
29954
29962
  key: new Yt("handlePasteLink"),
29955
29963
  props: {
@@ -29969,7 +29977,7 @@ function O_(t) {
29969
29977
  }
29970
29978
  });
29971
29979
  }
29972
- const R_ = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;
29980
+ const P_ = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;
29973
29981
  function vo(t, e) {
29974
29982
  const n = [
29975
29983
  "http",
@@ -29986,13 +29994,13 @@ function vo(t, e) {
29986
29994
  return e && e.forEach((r) => {
29987
29995
  const i = typeof r == "string" ? r : r.scheme;
29988
29996
  i && n.push(i);
29989
- }), !t || t.replace(R_, "").match(new RegExp(
29997
+ }), !t || t.replace(P_, "").match(new RegExp(
29990
29998
  // eslint-disable-next-line no-useless-escape
29991
29999
  `^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`,
29992
30000
  "i"
29993
30001
  ));
29994
30002
  }
29995
- const P_ = pn.create({
30003
+ const D_ = pn.create({
29996
30004
  name: "link",
29997
30005
  priority: 1e3,
29998
30006
  keepOnSplit: !1,
@@ -30007,7 +30015,7 @@ const P_ = pn.create({
30007
30015
  });
30008
30016
  },
30009
30017
  onDestroy() {
30010
- E_();
30018
+ A_();
30011
30019
  },
30012
30020
  inclusive() {
30013
30021
  return this.options.autolink;
@@ -30114,7 +30122,7 @@ const P_ = pn.create({
30114
30122
  },
30115
30123
  addProseMirrorPlugins() {
30116
30124
  const t = [], { protocols: e, defaultProtocol: n } = this.options;
30117
- return this.options.autolink && t.push(k_({
30125
+ return this.options.autolink && t.push(M_({
30118
30126
  type: this.type,
30119
30127
  defaultProtocol: this.options.defaultProtocol,
30120
30128
  validate: (r) => this.options.isAllowedUri(r, {
@@ -30123,15 +30131,15 @@ const P_ = pn.create({
30123
30131
  defaultProtocol: n
30124
30132
  }),
30125
30133
  shouldAutoLink: this.options.shouldAutoLink
30126
- })), this.options.openOnClick === !0 && t.push(M_({
30134
+ })), this.options.openOnClick === !0 && t.push(O_({
30127
30135
  type: this.type
30128
- })), this.options.linkOnPaste && t.push(O_({
30136
+ })), this.options.linkOnPaste && t.push(R_({
30129
30137
  editor: this.editor,
30130
30138
  defaultProtocol: this.options.defaultProtocol,
30131
30139
  type: this.type
30132
30140
  })), t;
30133
30141
  }
30134
- }), D_ = pn.create({
30142
+ }), N_ = pn.create({
30135
30143
  name: "underline",
30136
30144
  addOptions() {
30137
30145
  return {
@@ -30166,7 +30174,7 @@ const P_ = pn.create({
30166
30174
  "Mod-U": () => this.editor.commands.toggleUnderline()
30167
30175
  };
30168
30176
  }
30169
- }), N_ = /^\s*>\s$/, F_ = vn.create({
30177
+ }), F_ = /^\s*>\s$/, V_ = vn.create({
30170
30178
  name: "blockquote",
30171
30179
  addOptions() {
30172
30180
  return {
@@ -30199,12 +30207,12 @@ const P_ = pn.create({
30199
30207
  addInputRules() {
30200
30208
  return [
30201
30209
  us({
30202
- find: N_,
30210
+ find: F_,
30203
30211
  type: this.type
30204
30212
  })
30205
30213
  ];
30206
30214
  }
30207
- }), V_ = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, B_ = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, L_ = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, j_ = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, G_ = pn.create({
30215
+ }), B_ = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, L_ = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, j_ = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, G_ = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, z_ = pn.create({
30208
30216
  name: "bold",
30209
30217
  addOptions() {
30210
30218
  return {
@@ -30249,11 +30257,11 @@ const P_ = pn.create({
30249
30257
  addInputRules() {
30250
30258
  return [
30251
30259
  Ki({
30252
- find: V_,
30260
+ find: B_,
30253
30261
  type: this.type
30254
30262
  }),
30255
30263
  Ki({
30256
- find: L_,
30264
+ find: j_,
30257
30265
  type: this.type
30258
30266
  })
30259
30267
  ];
@@ -30261,16 +30269,16 @@ const P_ = pn.create({
30261
30269
  addPasteRules() {
30262
30270
  return [
30263
30271
  di({
30264
- find: B_,
30272
+ find: L_,
30265
30273
  type: this.type
30266
30274
  }),
30267
30275
  di({
30268
- find: j_,
30276
+ find: G_,
30269
30277
  type: this.type
30270
30278
  })
30271
30279
  ];
30272
30280
  }
30273
- }), z_ = "listItem", bb = "textStyle", yb = /^\s*([-+*])\s$/, __ = vn.create({
30281
+ }), __ = "listItem", bb = "textStyle", yb = /^\s*([-+*])\s$/, H_ = vn.create({
30274
30282
  name: "bulletList",
30275
30283
  addOptions() {
30276
30284
  return {
@@ -30294,7 +30302,7 @@ const P_ = pn.create({
30294
30302
  },
30295
30303
  addCommands() {
30296
30304
  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)
30305
+ 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
30306
  };
30299
30307
  },
30300
30308
  addKeyboardShortcuts() {
@@ -30318,7 +30326,7 @@ const P_ = pn.create({
30318
30326
  t
30319
30327
  ];
30320
30328
  }
30321
- }), H_ = new RegExp("(?<!`)`([^`]+)`(?!`)"), $_ = new RegExp("(?<!`)`([^`]+)`(?!`)", "g"), W_ = pn.create({
30329
+ }), $_ = new RegExp("(?<!`)`([^`]+)`(?!`)"), W_ = new RegExp("(?<!`)`([^`]+)`(?!`)", "g"), X_ = pn.create({
30322
30330
  name: "code",
30323
30331
  addOptions() {
30324
30332
  return {
@@ -30351,7 +30359,7 @@ const P_ = pn.create({
30351
30359
  addInputRules() {
30352
30360
  return [
30353
30361
  Ki({
30354
- find: H_,
30362
+ find: $_,
30355
30363
  type: this.type
30356
30364
  })
30357
30365
  ];
@@ -30359,12 +30367,12 @@ const P_ = pn.create({
30359
30367
  addPasteRules() {
30360
30368
  return [
30361
30369
  di({
30362
- find: $_,
30370
+ find: W_,
30363
30371
  type: this.type
30364
30372
  })
30365
30373
  ];
30366
30374
  }
30367
- }), X_ = /^```([a-z]+)?[\s\n]$/, Y_ = /^~~~([a-z]+)?[\s\n]$/, Z_ = vn.create({
30375
+ }), Y_ = /^```([a-z]+)?[\s\n]$/, Z_ = /^~~~([a-z]+)?[\s\n]$/, J_ = vn.create({
30368
30376
  name: "codeBlock",
30369
30377
  addOptions() {
30370
30378
  return {
@@ -30455,14 +30463,14 @@ const P_ = pn.create({
30455
30463
  addInputRules() {
30456
30464
  return [
30457
30465
  of({
30458
- find: X_,
30466
+ find: Y_,
30459
30467
  type: this.type,
30460
30468
  getAttributes: (t) => ({
30461
30469
  language: t[1]
30462
30470
  })
30463
30471
  }),
30464
30472
  of({
30465
- find: Y_,
30473
+ find: Z_,
30466
30474
  type: this.type,
30467
30475
  getAttributes: (t) => ({
30468
30476
  language: t[1]
@@ -30491,19 +30499,19 @@ const P_ = pn.create({
30491
30499
  })
30492
30500
  ];
30493
30501
  }
30494
- }), J_ = vn.create({
30502
+ }), U_ = vn.create({
30495
30503
  name: "doc",
30496
30504
  topNode: !0,
30497
30505
  content: "block+"
30498
30506
  });
30499
- function U_(t = {}) {
30507
+ function K_(t = {}) {
30500
30508
  return new St({
30501
30509
  view(e) {
30502
- return new K_(e, t);
30510
+ return new q_(e, t);
30503
30511
  }
30504
30512
  });
30505
30513
  }
30506
- class K_ {
30514
+ class q_ {
30507
30515
  constructor(e, n) {
30508
30516
  var r;
30509
30517
  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 +30583,7 @@ class K_ {
30575
30583
  (e.target == this.editorView.dom || !this.editorView.dom.contains(e.relatedTarget)) && this.setCursor(null);
30576
30584
  }
30577
30585
  }
30578
- const q_ = Ot.create({
30586
+ const Q_ = Ot.create({
30579
30587
  name: "dropCursor",
30580
30588
  addOptions() {
30581
30589
  return {
@@ -30586,7 +30594,7 @@ const q_ = Ot.create({
30586
30594
  },
30587
30595
  addProseMirrorPlugins() {
30588
30596
  return [
30589
- U_(this.options)
30597
+ K_(this.options)
30590
30598
  ];
30591
30599
  }
30592
30600
  });
@@ -30629,7 +30637,7 @@ class tt extends Ee {
30629
30637
  */
30630
30638
  static valid(e) {
30631
30639
  let n = e.parent;
30632
- if (n.isTextblock || !Q_(e) || !eH(e))
30640
+ if (n.isTextblock || !eH(e) || !tH(e))
30633
30641
  return !1;
30634
30642
  let r = n.type.spec.allowGapCursor;
30635
30643
  if (r != null)
@@ -30690,7 +30698,7 @@ class wh {
30690
30698
  return tt.valid(n) ? new tt(n) : Ee.near(n);
30691
30699
  }
30692
30700
  }
30693
- function Q_(t) {
30701
+ function eH(t) {
30694
30702
  for (let e = t.depth; e >= 0; e--) {
30695
30703
  let n = t.index(e), r = t.node(e);
30696
30704
  if (n == 0) {
@@ -30707,7 +30715,7 @@ function Q_(t) {
30707
30715
  }
30708
30716
  return !0;
30709
30717
  }
30710
- function eH(t) {
30718
+ function tH(t) {
30711
30719
  for (let e = t.depth; e >= 0; e--) {
30712
30720
  let n = t.indexAfter(e), r = t.node(e);
30713
30721
  if (n == r.childCount) {
@@ -30724,20 +30732,20 @@ function eH(t) {
30724
30732
  }
30725
30733
  return !0;
30726
30734
  }
30727
- function tH() {
30735
+ function nH() {
30728
30736
  return new St({
30729
30737
  props: {
30730
- decorations: oH,
30738
+ decorations: sH,
30731
30739
  createSelectionBetween(t, e, n) {
30732
30740
  return e.pos == n.pos && tt.valid(n) ? new tt(n) : null;
30733
30741
  },
30734
- handleClick: rH,
30735
- handleKeyDown: nH,
30736
- handleDOMEvents: { beforeinput: iH }
30742
+ handleClick: iH,
30743
+ handleKeyDown: rH,
30744
+ handleDOMEvents: { beforeinput: oH }
30737
30745
  }
30738
30746
  });
30739
30747
  }
30740
- const nH = qS({
30748
+ const rH = qS({
30741
30749
  ArrowLeft: ta("horiz", -1),
30742
30750
  ArrowRight: ta("horiz", 1),
30743
30751
  ArrowUp: ta("vert", -1),
@@ -30756,7 +30764,7 @@ function ta(t, e) {
30756
30764
  return c ? (i && i(r.tr.setSelection(new tt(c))), !0) : !1;
30757
30765
  };
30758
30766
  }
30759
- function rH(t, e, n) {
30767
+ function iH(t, e, n) {
30760
30768
  if (!t || !t.editable)
30761
30769
  return !1;
30762
30770
  let r = t.state.doc.resolve(e);
@@ -30765,7 +30773,7 @@ function rH(t, e, n) {
30765
30773
  let i = t.posAtCoords({ left: n.clientX, top: n.clientY });
30766
30774
  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
30775
  }
30768
- function iH(t, e) {
30776
+ function oH(t, e) {
30769
30777
  if (e.inputType != "insertCompositionText" || !(t.state.selection instanceof tt))
30770
30778
  return !1;
30771
30779
  let { $from: n } = t.state.selection, r = n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);
@@ -30777,17 +30785,17 @@ function iH(t, e) {
30777
30785
  let o = t.state.tr.replace(n.pos, n.pos, new le(i, 0, 0));
30778
30786
  return o.setSelection(Ce.near(o.doc.resolve(n.pos + 1))), t.dispatch(o), !1;
30779
30787
  }
30780
- function oH(t) {
30788
+ function sH(t) {
30781
30789
  if (!(t.selection instanceof tt))
30782
30790
  return null;
30783
30791
  let e = document.createElement("div");
30784
30792
  return e.className = "ProseMirror-gapcursor", dt.create(t.doc, [nn.widget(t.selection.head, e, { key: "gapcursor" })]);
30785
30793
  }
30786
- const sH = Ot.create({
30794
+ const aH = Ot.create({
30787
30795
  name: "gapCursor",
30788
30796
  addProseMirrorPlugins() {
30789
30797
  return [
30790
- tH()
30798
+ nH()
30791
30799
  ];
30792
30800
  },
30793
30801
  extendNodeSchema(t) {
@@ -30801,7 +30809,7 @@ const sH = Ot.create({
30801
30809
  allowGapCursor: (e = Te(ce(t, "allowGapCursor", n))) !== null && e !== void 0 ? e : null
30802
30810
  };
30803
30811
  }
30804
- }), aH = vn.create({
30812
+ }), lH = vn.create({
30805
30813
  name: "hardBreak",
30806
30814
  addOptions() {
30807
30815
  return {
@@ -30861,7 +30869,7 @@ ht.prototype.prepend = function(e) {
30861
30869
  return e.length ? ht.from(e).append(this) : this;
30862
30870
  };
30863
30871
  ht.prototype.appendInner = function(e) {
30864
- return new lH(this, e);
30872
+ return new cH(this, e);
30865
30873
  };
30866
30874
  ht.prototype.slice = function(e, n) {
30867
30875
  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 +30924,7 @@ var Ew = /* @__PURE__ */ function(t) {
30916
30924
  }, Object.defineProperties(e.prototype, n), e;
30917
30925
  }(ht);
30918
30926
  ht.empty = new Ew([]);
30919
- var lH = /* @__PURE__ */ function(t) {
30927
+ var cH = /* @__PURE__ */ function(t) {
30920
30928
  function e(n, r) {
30921
30929
  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
30930
  }
@@ -30949,7 +30957,7 @@ var lH = /* @__PURE__ */ function(t) {
30949
30957
  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
30958
  }, e;
30951
30959
  }(ht);
30952
- const cH = 500;
30960
+ const uH = 500;
30953
30961
  class un {
30954
30962
  constructor(e, n) {
30955
30963
  this.items = e, this.eventCount = n;
@@ -30991,7 +30999,7 @@ class un {
30991
30999
  (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
31000
  }
30993
31001
  let c = s - r.depth;
30994
- return c > dH && (a = uH(a, c), s -= c), new un(a.append(o), s);
31002
+ return c > fH && (a = dH(a, c), s -= c), new un(a.append(o), s);
30995
31003
  }
30996
31004
  remapping(e, n) {
30997
31005
  let r = new Li();
@@ -31031,7 +31039,7 @@ class un {
31031
31039
  for (let f = n; f < s; f++)
31032
31040
  c.push(new Sn(o.maps[f]));
31033
31041
  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;
31042
+ return d.emptyItemCount() > uH && (d = d.compress(this.items.length - r.length)), d;
31035
31043
  }
31036
31044
  emptyItemCount() {
31037
31045
  let e = 0;
@@ -31063,7 +31071,7 @@ class un {
31063
31071
  }
31064
31072
  }
31065
31073
  un.empty = new un(ht.empty, 0);
31066
- function uH(t, e) {
31074
+ function dH(t, e) {
31067
31075
  let n;
31068
31076
  return t.forEach((r, i) => {
31069
31077
  if (r.selection && e-- == 0)
@@ -31087,23 +31095,23 @@ class ar {
31087
31095
  this.done = e, this.undone = n, this.prevRanges = r, this.prevTime = i, this.prevComposition = o;
31088
31096
  }
31089
31097
  }
31090
- const dH = 20;
31091
- function fH(t, e, n, r) {
31098
+ const fH = 20;
31099
+ function pH(t, e, n, r) {
31092
31100
  let i = n.getMeta(ii), o;
31093
31101
  if (i)
31094
31102
  return i.historyState;
31095
- n.getMeta(mH) && (t = new ar(t.done, t.undone, null, 0, -1));
31103
+ n.getMeta(gH) && (t = new ar(t.done, t.undone, null, 0, -1));
31096
31104
  let s = n.getMeta("appendedTransaction");
31097
31105
  if (n.steps.length == 0)
31098
31106
  return t;
31099
31107
  if (s && s.getMeta(ii))
31100
31108
  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
31109
  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);
31110
+ 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
31111
  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
31112
  } 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
31113
  }
31106
- function pH(t, e) {
31114
+ function hH(t, e) {
31107
31115
  if (!e)
31108
31116
  return !1;
31109
31117
  if (!t.docChanged)
@@ -31130,7 +31138,7 @@ function Bu(t, e) {
31130
31138
  }
31131
31139
  return n;
31132
31140
  }
31133
- function hH(t, e, n) {
31141
+ function mH(t, e, n) {
31134
31142
  let r = ya(e), i = ii.get(e).spec.config, o = (n ? t.undone : t.done).popEvent(e, r);
31135
31143
  if (!o)
31136
31144
  return null;
@@ -31150,8 +31158,8 @@ function ya(t) {
31150
31158
  }
31151
31159
  return Lu;
31152
31160
  }
31153
- const ii = new Yt("history"), mH = new Yt("closeHistory");
31154
- function gH(t = {}) {
31161
+ const ii = new Yt("history"), gH = new Yt("closeHistory");
31162
+ function vH(t = {}) {
31155
31163
  return t = {
31156
31164
  depth: t.depth || 100,
31157
31165
  newGroupDelay: t.newGroupDelay || 500
@@ -31162,7 +31170,7 @@ function gH(t = {}) {
31162
31170
  return new ar(un.empty, un.empty, null, 0, -1);
31163
31171
  },
31164
31172
  apply(e, n, r) {
31165
- return fH(n, r, e, t);
31173
+ return pH(n, r, e, t);
31166
31174
  }
31167
31175
  },
31168
31176
  config: t,
@@ -31182,13 +31190,13 @@ function Aw(t, e) {
31182
31190
  if (!i || (t ? i.undone : i.done).eventCount == 0)
31183
31191
  return !1;
31184
31192
  if (r) {
31185
- let o = hH(i, n, t);
31193
+ let o = mH(i, n, t);
31186
31194
  o && r(e ? o.scrollIntoView() : o);
31187
31195
  }
31188
31196
  return !0;
31189
31197
  };
31190
31198
  }
31191
- const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31199
+ const Tw = Aw(!1, !0), kw = Aw(!0, !0), bH = Ot.create({
31192
31200
  name: "history",
31193
31201
  addOptions() {
31194
31202
  return {
@@ -31204,7 +31212,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31204
31212
  },
31205
31213
  addProseMirrorPlugins() {
31206
31214
  return [
31207
- gH(this.options)
31215
+ vH(this.options)
31208
31216
  ];
31209
31217
  },
31210
31218
  addKeyboardShortcuts() {
@@ -31217,7 +31225,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31217
31225
  "Shift-Mod-я": () => this.editor.commands.redo()
31218
31226
  };
31219
31227
  }
31220
- }), bH = vn.create({
31228
+ }), yH = vn.create({
31221
31229
  name: "horizontalRule",
31222
31230
  addOptions() {
31223
31231
  return {
@@ -31240,7 +31248,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31240
31248
  to: i.pos
31241
31249
  }, {
31242
31250
  type: this.name
31243
- }) : az(n) ? o.insertContentAt(i.pos, {
31251
+ }) : lz(n) ? o.insertContentAt(i.pos, {
31244
31252
  type: this.name
31245
31253
  }) : o.insertContent({ type: this.name }), o.command(({ tr: s, dispatch: a }) => {
31246
31254
  var l;
@@ -31261,13 +31269,13 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31261
31269
  },
31262
31270
  addInputRules() {
31263
31271
  return [
31264
- Lz({
31272
+ jz({
31265
31273
  find: /^(?:---|—-|___\s|\*\*\*\s)$/,
31266
31274
  type: this.type
31267
31275
  })
31268
31276
  ];
31269
31277
  }
31270
- }), yH = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, xH = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, CH = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, SH = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, wH = pn.create({
31278
+ }), xH = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, CH = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, SH = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, wH = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, IH = pn.create({
31271
31279
  name: "italic",
31272
31280
  addOptions() {
31273
31281
  return {
@@ -31311,11 +31319,11 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31311
31319
  addInputRules() {
31312
31320
  return [
31313
31321
  Ki({
31314
- find: yH,
31322
+ find: xH,
31315
31323
  type: this.type
31316
31324
  }),
31317
31325
  Ki({
31318
- find: CH,
31326
+ find: SH,
31319
31327
  type: this.type
31320
31328
  })
31321
31329
  ];
@@ -31323,16 +31331,16 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31323
31331
  addPasteRules() {
31324
31332
  return [
31325
31333
  di({
31326
- find: xH,
31334
+ find: CH,
31327
31335
  type: this.type
31328
31336
  }),
31329
31337
  di({
31330
- find: SH,
31338
+ find: wH,
31331
31339
  type: this.type
31332
31340
  })
31333
31341
  ];
31334
31342
  }
31335
- }), IH = vn.create({
31343
+ }), EH = vn.create({
31336
31344
  name: "listItem",
31337
31345
  addOptions() {
31338
31346
  return {
@@ -31360,7 +31368,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31360
31368
  "Shift-Tab": () => this.editor.commands.liftListItem(this.name)
31361
31369
  };
31362
31370
  }
31363
- }), EH = "listItem", Sb = "textStyle", wb = /^(\d+)\.\s$/, AH = vn.create({
31371
+ }), AH = "listItem", Sb = "textStyle", wb = /^(\d+)\.\s$/, TH = vn.create({
31364
31372
  name: "orderedList",
31365
31373
  addOptions() {
31366
31374
  return {
@@ -31399,7 +31407,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31399
31407
  },
31400
31408
  addCommands() {
31401
31409
  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)
31410
+ 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
31411
  };
31404
31412
  },
31405
31413
  addKeyboardShortcuts() {
@@ -31426,7 +31434,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31426
31434
  t
31427
31435
  ];
31428
31436
  }
31429
- }), TH = vn.create({
31437
+ }), kH = vn.create({
31430
31438
  name: "paragraph",
31431
31439
  priority: 1e3,
31432
31440
  addOptions() {
@@ -31454,7 +31462,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31454
31462
  "Mod-Alt-0": () => this.editor.commands.setParagraph()
31455
31463
  };
31456
31464
  }
31457
- }), kH = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, MH = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, OH = pn.create({
31465
+ }), MH = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, OH = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, RH = pn.create({
31458
31466
  name: "strike",
31459
31467
  addOptions() {
31460
31468
  return {
@@ -31497,7 +31505,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31497
31505
  addInputRules() {
31498
31506
  return [
31499
31507
  Ki({
31500
- find: kH,
31508
+ find: MH,
31501
31509
  type: this.type
31502
31510
  })
31503
31511
  ];
@@ -31505,35 +31513,35 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31505
31513
  addPasteRules() {
31506
31514
  return [
31507
31515
  di({
31508
- find: MH,
31516
+ find: OH,
31509
31517
  type: this.type
31510
31518
  })
31511
31519
  ];
31512
31520
  }
31513
- }), RH = vn.create({
31521
+ }), PH = vn.create({
31514
31522
  name: "text",
31515
31523
  group: "inline"
31516
- }), PH = Ot.create({
31524
+ }), DH = Ot.create({
31517
31525
  name: "starterKit",
31518
31526
  addExtensions() {
31519
31527
  var t, e, n, r, i, o, s, a, l, c, u, d, f, p, h, m, g, v;
31520
31528
  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;
31529
+ 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
31530
  }
31523
- }), DH = [
31531
+ }), NH = [
31524
31532
  { shortcuts: ["ctrl", "alt", "1"], level: 1 },
31525
31533
  { shortcuts: ["ctrl", "alt", "2"], level: 2 },
31526
31534
  { shortcuts: ["ctrl", "alt", "3"], level: 3 },
31527
31535
  { shortcuts: ["ctrl", "alt", "4"], level: 4 }
31528
31536
  // {shortcuts: ['ctrl', 'alt', '5'],level: 5},
31529
31537
  // {shortcuts: ['ctrl', 'alt', '6'],level: 6}
31530
- ], NH = {
31538
+ ], FH = {
31531
31539
  1: "mob-headline-bold-m desktop:desk-headline-bold-l",
31532
31540
  2: "mob-headline-bold-s desktop:desk-headline-bold-m",
31533
31541
  3: "mob-title-bold-l desktop:desk-title-bold-l",
31534
31542
  4: "mob-title-bold-m desktop:desk-title-bold-s"
31535
31543
  //TODO: Добавить h5/h6 для компонента heading , после добавить сюда
31536
- }, FH = [
31544
+ }, VH = [
31537
31545
  { name: "Черный", color: "#292929" },
31538
31546
  { name: "Белый", color: "#FFFFFF" },
31539
31547
  { name: "Темный-серый", color: "#40465A" },
@@ -31546,7 +31554,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31546
31554
  { name: "Зеленый", color: "#76BC21" },
31547
31555
  { name: "Оранжевый", color: "#F49F00" },
31548
31556
  { name: "Красный", color: "#F42500" }
31549
- ], VH = (t) => [
31557
+ ], BH = (t) => [
31550
31558
  {
31551
31559
  label: "Жирный текст",
31552
31560
  icon: /* @__PURE__ */ b.jsx(ze, { name: "editor/bold", className: "size-4" }),
@@ -31607,8 +31615,8 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31607
31615
  icon: /* @__PURE__ */ b.jsx(ze, { name: "general/close", className: "size-4" }),
31608
31616
  onClick: () => t.commands.clearContent()
31609
31617
  }
31610
- ], BH = [
31611
- PH.configure({
31618
+ ], LH = [
31619
+ DH.configure({
31612
31620
  heading: !1,
31613
31621
  bold: {
31614
31622
  HTMLAttributes: {
@@ -31626,9 +31634,9 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31626
31634
  }
31627
31635
  }
31628
31636
  }),
31629
- D_,
31630
- l_,
31637
+ N_,
31631
31638
  c_,
31639
+ u_,
31632
31640
  mw.configure({
31633
31641
  levels: [1, 2, 3, 4, 5, 6]
31634
31642
  }).extend({
@@ -31637,21 +31645,21 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31637
31645
  return [
31638
31646
  `h${r}`,
31639
31647
  ct(this.options.HTMLAttributes, e, {
31640
- class: `${NH[r]}`
31648
+ class: `${FH[r]}`
31641
31649
  }),
31642
31650
  0
31643
31651
  ];
31644
31652
  }
31645
31653
  }),
31646
- P_.configure({
31654
+ D_.configure({
31647
31655
  openOnClick: !0,
31648
31656
  HTMLAttributes: {
31649
31657
  class: "text-color-primary-default underline underline-offset-4"
31650
31658
  }
31651
31659
  })
31652
- ], LH = ({ editor: t }) => {
31660
+ ], jH = ({ editor: t }) => {
31653
31661
  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(
31662
+ 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
31663
  Wy,
31656
31664
  {
31657
31665
  sideOffset: 12,
@@ -31674,7 +31682,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31674
31682
  },
31675
31683
  n
31676
31684
  )) });
31677
- }, jH = ({ editor: t }) => /* @__PURE__ */ b.jsx(
31685
+ }, GH = ({ editor: t }) => /* @__PURE__ */ b.jsx(
31678
31686
  Zb,
31679
31687
  {
31680
31688
  classes: { content: "w-full" },
@@ -31686,7 +31694,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31686
31694
  children: /* @__PURE__ */ b.jsx(ze, { name: "editor/heading", className: "size-4" })
31687
31695
  }
31688
31696
  ),
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: [
31697
+ 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
31698
  /* @__PURE__ */ b.jsx(
31691
31699
  "button",
31692
31700
  {
@@ -31702,12 +31710,12 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31702
31710
  /* @__PURE__ */ b.jsx(AR, { keyList: n })
31703
31711
  ] }, e)) })
31704
31712
  }
31705
- ), GH = yI.string().url(), zH = ({ editor: t }) => {
31713
+ ), zH = yI.string().url(), _H = ({ editor: t }) => {
31706
31714
  const e = fe(() => {
31707
31715
  const n = t == null ? void 0 : t.getAttributes("link").href, r = window == null ? void 0 : window.prompt("URL", n);
31708
31716
  if (r === null)
31709
31717
  return;
31710
- if (GH.safeParse(r).success)
31718
+ if (zH.safeParse(r).success)
31711
31719
  Po({ intent: "info", text: "Ссылка успешно вставлена" });
31712
31720
  else {
31713
31721
  Po({ intent: "error", text: "Невалидная ссылка" });
@@ -31731,7 +31739,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31731
31739
  children: /* @__PURE__ */ b.jsx(ze, { name: "editor/link", className: "size-4" })
31732
31740
  }
31733
31741
  );
31734
- }, _H = ({ editor: t }) => /* @__PURE__ */ b.jsx(
31742
+ }, HH = ({ editor: t }) => /* @__PURE__ */ b.jsx(
31735
31743
  Zb,
31736
31744
  {
31737
31745
  classes: {
@@ -31746,7 +31754,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31746
31754
  children: /* @__PURE__ */ b.jsx(ze, { name: "editor/palette", className: "size-4" })
31747
31755
  }
31748
31756
  ),
31749
- children: /* @__PURE__ */ b.jsx("div", { className: "grid grid-cols-2 gap-3", children: FH.map(({ name: e, color: n }) => /* @__PURE__ */ b.jsx(
31757
+ children: /* @__PURE__ */ b.jsx("div", { className: "grid grid-cols-2 gap-3", children: VH.map(({ name: e, color: n }) => /* @__PURE__ */ b.jsx(
31750
31758
  "button",
31751
31759
  {
31752
31760
  type: "button",
@@ -31761,16 +31769,16 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31761
31769
  e
31762
31770
  )) })
31763
31771
  }
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 }),
31772
+ ), $H = ({ editor: t }) => /* @__PURE__ */ b.jsxs("div", { className: "flex items-center gap-12 bg-color-blue-grey-200 px-4 py-3", children: [
31773
+ /* @__PURE__ */ b.jsx(jH, { editor: t }),
31766
31774
  /* @__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 })
31775
+ /* @__PURE__ */ b.jsx(HH, { editor: t }),
31776
+ /* @__PURE__ */ b.jsx(GH, { editor: t }),
31777
+ /* @__PURE__ */ b.jsx(_H, { editor: t })
31770
31778
  ] })
31771
- ] }), $H = ({ onChange: t, value: e, label: n, error: r, classes: i, editable: o, helperText: s, ...a }) => {
31772
- const l = i_({
31773
- extensions: BH,
31779
+ ] }), WH = ({ onChange: t, value: e, label: n, error: r, classes: i, editable: o, helperText: s, ...a }) => {
31780
+ const l = o_({
31781
+ extensions: LH,
31774
31782
  editable: o,
31775
31783
  content: e,
31776
31784
  onUpdate: ({ editor: c }) => {
@@ -31792,9 +31800,9 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31792
31800
  });
31793
31801
  return l ? /* @__PURE__ */ b.jsxs("div", { className: O("flex flex-col", i == null ? void 0 : i.root), children: [
31794
31802
  /* @__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 }),
31803
+ /* @__PURE__ */ b.jsx($H, { editor: l }),
31796
31804
  !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 })
31805
+ /* @__PURE__ */ b.jsx(Zz, { editor: l })
31798
31806
  ] }),
31799
31807
  /* @__PURE__ */ b.jsx(
31800
31808
  sn,
@@ -31806,7 +31814,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31806
31814
  }
31807
31815
  )
31808
31816
  ] }) : null;
31809
- }, q$ = ({
31817
+ }, Q$ = ({
31810
31818
  control: t,
31811
31819
  label: e,
31812
31820
  helperText: n,
@@ -31819,7 +31827,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31819
31827
  name: o.name,
31820
31828
  control: t,
31821
31829
  render: ({ field: { onChange: s, value: a }, fieldState: { error: l } }) => /* @__PURE__ */ b.jsx(
31822
- $H,
31830
+ WH,
31823
31831
  {
31824
31832
  onChange: s,
31825
31833
  value: a ?? "",
@@ -31845,7 +31853,7 @@ const Tw = Aw(!1, !0), kw = Aw(!0, !0), vH = Ot.create({
31845
31853
  FileTooLarge: "file-too-large",
31846
31854
  FileTooSmall: "file-too-small",
31847
31855
  TooManyFiles: "too-many-files"
31848
- }, WH = pi(function({ dropzoneState: e, classes: n, disabled: r, error: i, name: o }, s) {
31856
+ }, XH = pi(function({ dropzoneState: e, classes: n, disabled: r, error: i, name: o }, s) {
31849
31857
  const a = e.getRootProps();
31850
31858
  return /* @__PURE__ */ b.jsxs(
31851
31859
  "div",
@@ -31890,7 +31898,7 @@ var bf = { exports: {} }, na = { exports: {} }, Be = {};
31890
31898
  * LICENSE file in the root directory of this source tree.
31891
31899
  */
31892
31900
  var Ib;
31893
- function XH() {
31901
+ function YH() {
31894
31902
  if (Ib) return Be;
31895
31903
  Ib = 1;
31896
31904
  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 +31973,7 @@ var Le = {};
31965
31973
  * LICENSE file in the root directory of this source tree.
31966
31974
  */
31967
31975
  var Eb;
31968
- function YH() {
31976
+ function ZH() {
31969
31977
  return Eb || (Eb = 1, process.env.NODE_ENV !== "production" && function() {
31970
31978
  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
31979
  function C(D) {
@@ -32049,7 +32057,7 @@ function YH() {
32049
32057
  }
32050
32058
  var Ab;
32051
32059
  function Ow() {
32052
- return Ab || (Ab = 1, process.env.NODE_ENV === "production" ? na.exports = XH() : na.exports = YH()), na.exports;
32060
+ return Ab || (Ab = 1, process.env.NODE_ENV === "production" ? na.exports = YH() : na.exports = ZH()), na.exports;
32053
32061
  }
32054
32062
  /*
32055
32063
  object-assign
@@ -32057,7 +32065,7 @@ object-assign
32057
32065
  @license MIT
32058
32066
  */
32059
32067
  var Gu, Tb;
32060
- function ZH() {
32068
+ function JH() {
32061
32069
  if (Tb) return Gu;
32062
32070
  Tb = 1;
32063
32071
  var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
@@ -32114,7 +32122,7 @@ function Rw() {
32114
32122
  return Mb || (Mb = 1, _u = Function.call.bind(Object.prototype.hasOwnProperty)), _u;
32115
32123
  }
32116
32124
  var Hu, Ob;
32117
- function JH() {
32125
+ function UH() {
32118
32126
  if (Ob) return Hu;
32119
32127
  Ob = 1;
32120
32128
  var t = function() {
@@ -32163,10 +32171,10 @@ function JH() {
32163
32171
  }, Hu = i, Hu;
32164
32172
  }
32165
32173
  var $u, Rb;
32166
- function UH() {
32174
+ function KH() {
32167
32175
  if (Rb) return $u;
32168
32176
  Rb = 1;
32169
- var t = Ow(), e = ZH(), n = Ih(), r = Rw(), i = JH(), o = function() {
32177
+ var t = Ow(), e = JH(), n = Ih(), r = Rw(), i = UH(), o = function() {
32170
32178
  };
32171
32179
  process.env.NODE_ENV !== "production" && (o = function(a) {
32172
32180
  var l = "Warning: " + a;
@@ -32484,7 +32492,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " ")
32484
32492
  }, $u;
32485
32493
  }
32486
32494
  var Wu, Pb;
32487
- function KH() {
32495
+ function qH() {
32488
32496
  if (Pb) return Wu;
32489
32497
  Pb = 1;
32490
32498
  var t = Ih();
@@ -32532,12 +32540,12 @@ function KH() {
32532
32540
  }, Wu;
32533
32541
  }
32534
32542
  if (process.env.NODE_ENV !== "production") {
32535
- var qH = Ow(), QH = !0;
32536
- bf.exports = UH()(qH.isElement, QH);
32543
+ var QH = Ow(), e5 = !0;
32544
+ bf.exports = KH()(QH.isElement, e5);
32537
32545
  } else
32538
- bf.exports = KH()();
32539
- var e5 = bf.exports;
32540
- const He = /* @__PURE__ */ xI(e5), t5 = /* @__PURE__ */ new Map([
32546
+ bf.exports = qH()();
32547
+ var t5 = bf.exports;
32548
+ const He = /* @__PURE__ */ xI(t5), n5 = /* @__PURE__ */ new Map([
32541
32549
  // https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
32542
32550
  ["1km", "application/vnd.1000minds.decision-model+xml"],
32543
32551
  ["3dml", "text/vnd.in3d.3dml"],
@@ -33741,13 +33749,13 @@ const He = /* @__PURE__ */ xI(e5), t5 = /* @__PURE__ */ new Map([
33741
33749
  ["zsh", "text/x-scriptzsh"]
33742
33750
  ]);
33743
33751
  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}`;
33752
+ const r = r5(t), { webkitRelativePath: i } = t, o = typeof e == "string" ? e : typeof i == "string" && i.length > 0 ? i : `./${t.name}`;
33745
33753
  return typeof r.path != "string" && Db(r, "path", o), Db(r, "relativePath", o), r;
33746
33754
  }
33747
- function n5(t) {
33755
+ function r5(t) {
33748
33756
  const { name: e } = t;
33749
33757
  if (e && e.lastIndexOf(".") !== -1 && !t.type) {
33750
- const r = e.split(".").pop().toLowerCase(), i = t5.get(r);
33758
+ const r = e.split(".").pop().toLowerCase(), i = n5.get(r);
33751
33759
  i && Object.defineProperty(t, "type", {
33752
33760
  value: i,
33753
33761
  writable: !1,
@@ -33765,49 +33773,49 @@ function Db(t, e, n) {
33765
33773
  enumerable: !0
33766
33774
  });
33767
33775
  }
33768
- const r5 = [
33776
+ const i5 = [
33769
33777
  // Thumbnail cache files for macOS and Windows
33770
33778
  ".DS_Store",
33771
33779
  // macOs
33772
33780
  "Thumbs.db"
33773
33781
  // Windows
33774
33782
  ];
33775
- function i5(t) {
33783
+ function o5(t) {
33776
33784
  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) : [];
33785
+ 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
33786
  });
33779
33787
  }
33780
- function o5(t) {
33788
+ function s5(t) {
33781
33789
  return Ol(t);
33782
33790
  }
33783
- function s5(t) {
33791
+ function a5(t) {
33784
33792
  return Ol(t) && Ol(t.target);
33785
33793
  }
33786
33794
  function Ol(t) {
33787
33795
  return typeof t == "object" && t !== null;
33788
33796
  }
33789
- function a5(t) {
33797
+ function l5(t) {
33790
33798
  return yf(t.target.files).map((e) => Qi(e));
33791
33799
  }
33792
- function l5(t) {
33800
+ function c5(t) {
33793
33801
  return fi(this, void 0, void 0, function* () {
33794
33802
  return (yield Promise.all(t.map((n) => n.getFile()))).map((n) => Qi(n));
33795
33803
  });
33796
33804
  }
33797
- function c5(t, e) {
33805
+ function u5(t, e) {
33798
33806
  return fi(this, void 0, void 0, function* () {
33799
33807
  if (t.items) {
33800
33808
  const n = yf(t.items).filter((i) => i.kind === "file");
33801
33809
  if (e !== "drop")
33802
33810
  return n;
33803
- const r = yield Promise.all(n.map(u5));
33811
+ const r = yield Promise.all(n.map(d5));
33804
33812
  return Nb(Pw(r));
33805
33813
  }
33806
33814
  return Nb(yf(t.files).map((n) => Qi(n)));
33807
33815
  });
33808
33816
  }
33809
33817
  function Nb(t) {
33810
- return t.filter((e) => r5.indexOf(e.name) === -1);
33818
+ return t.filter((e) => i5.indexOf(e.name) === -1);
33811
33819
  }
33812
33820
  function yf(t) {
33813
33821
  if (t === null)
@@ -33819,7 +33827,7 @@ function yf(t) {
33819
33827
  }
33820
33828
  return e;
33821
33829
  }
33822
- function u5(t) {
33830
+ function d5(t) {
33823
33831
  if (typeof t.webkitGetAsEntry != "function")
33824
33832
  return Fb(t);
33825
33833
  const e = t.webkitGetAsEntry();
@@ -33849,9 +33857,9 @@ function Fb(t, e) {
33849
33857
  return Qi(r, (n = e == null ? void 0 : e.fullPath) !== null && n !== void 0 ? n : void 0);
33850
33858
  });
33851
33859
  }
33852
- function d5(t) {
33860
+ function f5(t) {
33853
33861
  return fi(this, void 0, void 0, function* () {
33854
- return t.isDirectory ? Dw(t) : f5(t);
33862
+ return t.isDirectory ? Dw(t) : p5(t);
33855
33863
  });
33856
33864
  }
33857
33865
  function Dw(t) {
@@ -33861,7 +33869,7 @@ function Dw(t) {
33861
33869
  function o() {
33862
33870
  e.readEntries((s) => fi(this, void 0, void 0, function* () {
33863
33871
  if (s.length) {
33864
- const a = Promise.all(s.map(d5));
33872
+ const a = Promise.all(s.map(f5));
33865
33873
  i.push(a), o();
33866
33874
  } else
33867
33875
  try {
@@ -33877,7 +33885,7 @@ function Dw(t) {
33877
33885
  o();
33878
33886
  });
33879
33887
  }
33880
- function f5(t) {
33888
+ function p5(t) {
33881
33889
  return fi(this, void 0, void 0, function* () {
33882
33890
  return new Promise((e, n) => {
33883
33891
  t.file((r) => {
@@ -33903,16 +33911,16 @@ var Xu = function(t, e) {
33903
33911
  return !0;
33904
33912
  };
33905
33913
  function Vb(t) {
33906
- return m5(t) || h5(t) || Fw(t) || p5();
33914
+ return g5(t) || m5(t) || Fw(t) || h5();
33907
33915
  }
33908
- function p5() {
33916
+ function h5() {
33909
33917
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
33910
33918
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
33911
33919
  }
33912
- function h5(t) {
33920
+ function m5(t) {
33913
33921
  if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
33914
33922
  }
33915
- function m5(t) {
33923
+ function g5(t) {
33916
33924
  if (Array.isArray(t)) return xf(t);
33917
33925
  }
33918
33926
  function Bb(t, e) {
@@ -33940,9 +33948,9 @@ function Nw(t, e, n) {
33940
33948
  return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
33941
33949
  }
33942
33950
  function ps(t, e) {
33943
- return b5(t) || v5(t, e) || Fw(t, e) || g5();
33951
+ return y5(t) || b5(t, e) || Fw(t, e) || v5();
33944
33952
  }
33945
- function g5() {
33953
+ function v5() {
33946
33954
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
33947
33955
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
33948
33956
  }
@@ -33960,7 +33968,7 @@ function xf(t, e) {
33960
33968
  r[n] = t[n];
33961
33969
  return r;
33962
33970
  }
33963
- function v5(t, e) {
33971
+ function b5(t, e) {
33964
33972
  var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
33965
33973
  if (n != null) {
33966
33974
  var r = [], i = !0, o = !1, s, a;
@@ -33979,32 +33987,32 @@ function v5(t, e) {
33979
33987
  return r;
33980
33988
  }
33981
33989
  }
33982
- function b5(t) {
33990
+ function y5(t) {
33983
33991
  if (Array.isArray(t)) return t;
33984
33992
  }
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() {
33993
+ 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
33994
  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
33995
  return {
33988
- code: x5,
33996
+ code: C5,
33989
33997
  message: "File type must be ".concat(r)
33990
33998
  };
33991
33999
  }, jb = function(e) {
33992
34000
  return {
33993
- code: C5,
34001
+ code: S5,
33994
34002
  message: "File is larger than ".concat(e, " ").concat(e === 1 ? "byte" : "bytes")
33995
34003
  };
33996
34004
  }, Gb = function(e) {
33997
34005
  return {
33998
- code: S5,
34006
+ code: w5,
33999
34007
  message: "File is smaller than ".concat(e, " ").concat(e === 1 ? "byte" : "bytes")
34000
34008
  };
34001
- }, E5 = {
34002
- code: w5,
34009
+ }, A5 = {
34010
+ code: I5,
34003
34011
  message: "Too many files"
34004
34012
  };
34005
34013
  function Vw(t, e) {
34006
- var n = t.type === "application/x-moz-file" || y5(t, e);
34007
- return [n, n ? null : I5(e)];
34014
+ var n = t.type === "application/x-moz-file" || x5(t, e);
34015
+ return [n, n ? null : E5(e)];
34008
34016
  }
34009
34017
  function Bw(t, e, n) {
34010
34018
  if (zr(t.size))
@@ -34020,7 +34028,7 @@ function Bw(t, e, n) {
34020
34028
  function zr(t) {
34021
34029
  return t != null;
34022
34030
  }
34023
- function A5(t) {
34031
+ function T5(t) {
34024
34032
  var e = t.files, n = t.accept, r = t.minSize, i = t.maxSize, o = t.multiple, s = t.maxFiles, a = t.validator;
34025
34033
  return !o && e.length > 1 || o && s >= 1 && e.length > s ? !1 : e.every(function(l) {
34026
34034
  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 +34046,15 @@ function ra(t) {
34038
34046
  function zb(t) {
34039
34047
  t.preventDefault();
34040
34048
  }
34041
- function T5(t) {
34049
+ function k5(t) {
34042
34050
  return t.indexOf("MSIE") !== -1 || t.indexOf("Trident/") !== -1;
34043
34051
  }
34044
- function k5(t) {
34052
+ function M5(t) {
34045
34053
  return t.indexOf("Edge/") !== -1;
34046
34054
  }
34047
- function M5() {
34055
+ function O5() {
34048
34056
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
34049
- return T5(t) || k5(t);
34057
+ return k5(t) || M5(t);
34050
34058
  }
34051
34059
  function yn() {
34052
34060
  for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
@@ -34059,10 +34067,10 @@ function yn() {
34059
34067
  });
34060
34068
  };
34061
34069
  }
34062
- function O5() {
34070
+ function R5() {
34063
34071
  return "showOpenFilePicker" in window;
34064
34072
  }
34065
- function R5(t) {
34073
+ function P5(t) {
34066
34074
  if (zr(t)) {
34067
34075
  var e = Object.entries(t).filter(function(n) {
34068
34076
  var r = ps(n, 2), i = r[0], o = r[1], s = !0;
@@ -34079,7 +34087,7 @@ function R5(t) {
34079
34087
  }
34080
34088
  return t;
34081
34089
  }
34082
- function P5(t) {
34090
+ function D5(t) {
34083
34091
  if (zr(t))
34084
34092
  return Object.entries(t).reduce(function(e, n) {
34085
34093
  var r = ps(n, 2), i = r[0], o = r[1];
@@ -34088,10 +34096,10 @@ function P5(t) {
34088
34096
  return Lw(e) || jw(e);
34089
34097
  }).join(",");
34090
34098
  }
34091
- function D5(t) {
34099
+ function N5(t) {
34092
34100
  return t instanceof DOMException && (t.name === "AbortError" || t.code === t.ABORT_ERR);
34093
34101
  }
34094
- function N5(t) {
34102
+ function F5(t) {
34095
34103
  return t instanceof DOMException && (t.name === "SecurityError" || t.code === t.SECURITY_ERR);
34096
34104
  }
34097
34105
  function Lw(t) {
@@ -34100,24 +34108,24 @@ function Lw(t) {
34100
34108
  function jw(t) {
34101
34109
  return /^.*\.[\w]+$/.test(t);
34102
34110
  }
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();
34111
+ var V5 = ["children"], B5 = ["open"], L5 = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], j5 = ["refKey", "onChange", "onClick"];
34112
+ function G5(t) {
34113
+ return H5(t) || _5(t) || Gw(t) || z5();
34106
34114
  }
34107
- function G5() {
34115
+ function z5() {
34108
34116
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
34109
34117
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
34110
34118
  }
34111
- function z5(t) {
34119
+ function _5(t) {
34112
34120
  if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
34113
34121
  }
34114
- function _5(t) {
34122
+ function H5(t) {
34115
34123
  if (Array.isArray(t)) return Cf(t);
34116
34124
  }
34117
34125
  function Yu(t, e) {
34118
- return W5(t) || $5(t, e) || Gw(t, e) || H5();
34126
+ return X5(t) || W5(t, e) || Gw(t, e) || $5();
34119
34127
  }
34120
- function H5() {
34128
+ function $5() {
34121
34129
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
34122
34130
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
34123
34131
  }
@@ -34135,7 +34143,7 @@ function Cf(t, e) {
34135
34143
  r[n] = t[n];
34136
34144
  return r;
34137
34145
  }
34138
- function $5(t, e) {
34146
+ function W5(t, e) {
34139
34147
  var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
34140
34148
  if (n != null) {
34141
34149
  var r = [], i = !0, o = !1, s, a;
@@ -34154,7 +34162,7 @@ function $5(t, e) {
34154
34162
  return r;
34155
34163
  }
34156
34164
  }
34157
- function W5(t) {
34165
+ function X5(t) {
34158
34166
  if (Array.isArray(t)) return t;
34159
34167
  }
34160
34168
  function _b(t, e) {
@@ -34183,7 +34191,7 @@ function Sf(t, e, n) {
34183
34191
  }
34184
34192
  function Pl(t, e) {
34185
34193
  if (t == null) return {};
34186
- var n = X5(t, e), r, i;
34194
+ var n = Y5(t, e), r, i;
34187
34195
  if (Object.getOwnPropertySymbols) {
34188
34196
  var o = Object.getOwnPropertySymbols(t);
34189
34197
  for (i = 0; i < o.length; i++)
@@ -34191,7 +34199,7 @@ function Pl(t, e) {
34191
34199
  }
34192
34200
  return n;
34193
34201
  }
34194
- function X5(t, e) {
34202
+ function Y5(t, e) {
34195
34203
  if (t == null) return {};
34196
34204
  var n = {}, r = Object.keys(t), i, o;
34197
34205
  for (o = 0; o < r.length; o++)
@@ -34199,7 +34207,7 @@ function X5(t, e) {
34199
34207
  return n;
34200
34208
  }
34201
34209
  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);
34210
+ var n = t.children, r = Pl(t, V5), i = _w(r), o = i.open, s = Pl(i, B5);
34203
34211
  return EI(e, function() {
34204
34212
  return {
34205
34213
  open: o
@@ -34211,7 +34219,7 @@ var Eh = /* @__PURE__ */ pi(function(t, e) {
34211
34219
  Eh.displayName = "Dropzone";
34212
34220
  var zw = {
34213
34221
  disabled: !1,
34214
- getFilesFromEvent: i5,
34222
+ getFilesFromEvent: o5,
34215
34223
  maxSize: 1 / 0,
34216
34224
  minSize: 0,
34217
34225
  multiple: !0,
@@ -34405,14 +34413,14 @@ var wf = {
34405
34413
  };
34406
34414
  function _w() {
34407
34415
  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);
34416
+ return D5(n);
34409
34417
  }, [n]), X = we(function() {
34410
- return R5(n);
34418
+ return P5(n);
34411
34419
  }, [n]), V = we(function() {
34412
34420
  return typeof g == "function" ? g : Hb;
34413
34421
  }, [g]), _ = we(function() {
34414
34422
  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() {
34423
+ }, [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
34424
  !Y.current && H && setTimeout(function() {
34417
34425
  if (Z.current) {
34418
34426
  var U = Z.current.files;
@@ -34441,9 +34449,9 @@ function _w() {
34441
34449
  var te = fe(function(F) {
34442
34450
  A ? A(F) : console.error(F);
34443
34451
  }, [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) {
34452
+ F.preventDefault(), F.persist(), R(F), ne.current = [].concat(G5(ne.current), [F.target]), ra(F) && Promise.resolve(i(F)).then(function(U) {
34445
34453
  if (!(Rl(F) && !T)) {
34446
- var ye = U.length, Ie = ye > 0 && A5({
34454
+ var ye = U.length, Ie = ye > 0 && T5({
34447
34455
  files: U,
34448
34456
  accept: L,
34449
34457
  minSize: s,
@@ -34500,7 +34508,7 @@ function _w() {
34500
34508
  }), (!a && ye.length > 1 || a && l >= 1 && ye.length > l) && (ye.forEach(function(rt) {
34501
34509
  Ie.push({
34502
34510
  file: rt,
34503
- errors: [E5]
34511
+ errors: [A5]
34504
34512
  });
34505
34513
  }), ye.splice(0)), ie({
34506
34514
  acceptedFiles: ye,
@@ -34532,9 +34540,9 @@ function _w() {
34532
34540
  type: "closeDialog"
34533
34541
  });
34534
34542
  }).catch(function(U) {
34535
- D5(U) ? (_(U), ie({
34543
+ N5(U) ? (_(U), ie({
34536
34544
  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);
34545
+ })) : 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
34546
  });
34539
34547
  return;
34540
34548
  }
@@ -34552,7 +34560,7 @@ function _w() {
34552
34560
  type: "blur"
34553
34561
  });
34554
34562
  }, []), wt = fe(function() {
34555
- S || (M5() ? setTimeout(D, 0) : D());
34563
+ S || (O5() ? setTimeout(D, 0) : D());
34556
34564
  }, [S, D]), oe = function(U) {
34557
34565
  return r ? null : U;
34558
34566
  }, w = function(U) {
@@ -34563,7 +34571,7 @@ function _w() {
34563
34571
  T && U.stopPropagation();
34564
34572
  }, q = we(function() {
34565
34573
  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);
34574
+ 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
34575
  return Ze(Ze(Sf({
34568
34576
  onKeyDown: w(yn(rt, We)),
34569
34577
  onFocus: w(yn(Pr, ue)),
@@ -34582,7 +34590,7 @@ function _w() {
34582
34590
  F.stopPropagation();
34583
34591
  }, []), G = we(function() {
34584
34592
  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({
34593
+ 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
34594
  accept: L,
34587
34595
  multiple: a,
34588
34596
  type: "file",
@@ -34614,7 +34622,7 @@ function _w() {
34614
34622
  open: oe(D)
34615
34623
  });
34616
34624
  }
34617
- function Y5(t, e) {
34625
+ function Z5(t, e) {
34618
34626
  switch (e.type) {
34619
34627
  case "focus":
34620
34628
  return Ze(Ze({}, t), {}, {
@@ -34652,7 +34660,7 @@ function Y5(t, e) {
34652
34660
  }
34653
34661
  function Hb() {
34654
34662
  }
34655
- const Z5 = ({ dropzoneOptions: t, controlledFiles: e, onValueChange: n }) => {
34663
+ const J5 = ({ dropzoneOptions: t, controlledFiles: e, onValueChange: n }) => {
34656
34664
  const [r, i] = Oe({}), o = (l) => {
34657
34665
  const c = e.filter((u, d) => d !== l);
34658
34666
  n(c);
@@ -34690,7 +34698,7 @@ const Z5 = ({ dropzoneOptions: t, controlledFiles: e, onValueChange: n }) => {
34690
34698
  ...t
34691
34699
  });
34692
34700
  return { filesStatus: r, removeFile: o, dropzoneState: a };
34693
- }, J5 = ({ file: t, classes: e }) => {
34701
+ }, U5 = ({ file: t, classes: e }) => {
34694
34702
  const n = de(null), [r, i] = Oe(!1);
34695
34703
  return Re(() => {
34696
34704
  n.current && i(n.current.clientWidth > 300);
@@ -34701,20 +34709,20 @@ const Z5 = ({ dropzoneOptions: t, controlledFiles: e, onValueChange: n }) => {
34701
34709
  children: t.name
34702
34710
  }
34703
34711
  ) : /* @__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 }) => {
34712
+ }, K5 = ({ filesStatus: t, removeFile: e, classes: n, file: r, index: i }) => {
34705
34713
  const o = r.size / 1024 / 1024;
34706
34714
  return /* @__PURE__ */ b.jsxs("li", { className: O("flex h-6 items-center justify-between p-1", n == null ? void 0 : n.fileWrapperContent), children: [
34707
34715
  /* @__PURE__ */ b.jsxs("div", { className: O("flex items-center gap-2", n == null ? void 0 : n.fileContent), children: [
34708
34716
  t[r.name] === "loading" && /* @__PURE__ */ b.jsx(CI, { size: "sm" }),
34709
34717
  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 })
34718
+ /* @__PURE__ */ b.jsx(U5, { file: r, classes: n })
34711
34719
  ] }),
34712
34720
  /* @__PURE__ */ b.jsxs("div", { className: O("flex items-center gap-2", n == null ? void 0 : n.fileButtonDeleteWrapper), children: [
34713
34721
  /* @__PURE__ */ b.jsx("p", { className: "desk-body-regular-m text-color-blue-grey-600", children: `${o.toFixed(1)} MB` }),
34714
34722
  /* @__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
34723
  ] })
34716
34724
  ] }, 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({
34725
+ }, 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
34726
  dropzoneOptions: e = Mw,
34719
34727
  controlledFiles: n,
34720
34728
  onValueChange: r,
@@ -34724,14 +34732,14 @@ const Z5 = ({ dropzoneOptions: t, controlledFiles: e, onValueChange: n }) => {
34724
34732
  classes: a,
34725
34733
  name: l
34726
34734
  }, c) {
34727
- const { filesStatus: u, removeFile: d, dropzoneState: f } = Z5({
34735
+ const { filesStatus: u, removeFile: d, dropzoneState: f } = J5({
34728
34736
  dropzoneOptions: e,
34729
34737
  controlledFiles: n,
34730
34738
  onValueChange: r
34731
34739
  });
34732
34740
  return /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
34733
34741
  /* @__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 }),
34742
+ /* @__PURE__ */ b.jsx(XH, { ref: c, name: l, classes: a, error: s, disabled: o, dropzoneState: f }),
34735
34743
  /* @__PURE__ */ b.jsx(
34736
34744
  sn,
34737
34745
  {
@@ -34742,9 +34750,9 @@ const Z5 = ({ dropzoneOptions: t, controlledFiles: e, onValueChange: n }) => {
34742
34750
  }
34743
34751
  )
34744
34752
  ] }),
34745
- /* @__PURE__ */ b.jsx(K5, { filesStatus: u, removeFile: d, controlledFiles: n })
34753
+ /* @__PURE__ */ b.jsx(q5, { filesStatus: u, removeFile: d, controlledFiles: n })
34746
34754
  ] });
34747
- }), Q$ = ({
34755
+ }), eW = ({
34748
34756
  control: t,
34749
34757
  disabled: e,
34750
34758
  helperText: n,
@@ -34757,7 +34765,7 @@ const Z5 = ({ dropzoneOptions: t, controlledFiles: e, onValueChange: n }) => {
34757
34765
  control: t,
34758
34766
  name: o.name,
34759
34767
  render: ({ field: { onChange: s, ref: a, value: l }, fieldState: { error: c } }) => /* @__PURE__ */ b.jsx(
34760
- q5,
34768
+ Q5,
34761
34769
  {
34762
34770
  error: c,
34763
34771
  helperText: n,
@@ -34774,7 +34782,7 @@ const Z5 = ({ dropzoneOptions: t, controlledFiles: e, onValueChange: n }) => {
34774
34782
  )
34775
34783
  }
34776
34784
  );
34777
- var Ah = "Radio", [Q5, Hw] = qn(Ah), [e$, t$] = Q5(Ah), $w = I.forwardRef(
34785
+ var Ah = "Radio", [e$, Hw] = qn(Ah), [t$, n$] = e$(Ah), $w = I.forwardRef(
34778
34786
  (t, e) => {
34779
34787
  const {
34780
34788
  __scopeRadio: n,
@@ -34787,7 +34795,7 @@ var Ah = "Radio", [Q5, Hw] = qn(Ah), [e$, t$] = Q5(Ah), $w = I.forwardRef(
34787
34795
  form: c,
34788
34796
  ...u
34789
34797
  } = 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: [
34798
+ return /* @__PURE__ */ b.jsxs(t$, { scope: n, checked: i, disabled: s, children: [
34791
34799
  /* @__PURE__ */ b.jsx(
34792
34800
  Ye.button,
34793
34801
  {
@@ -34806,7 +34814,7 @@ var Ah = "Radio", [Q5, Hw] = qn(Ah), [e$, t$] = Q5(Ah), $w = I.forwardRef(
34806
34814
  }
34807
34815
  ),
34808
34816
  m && /* @__PURE__ */ b.jsx(
34809
- n$,
34817
+ r$,
34810
34818
  {
34811
34819
  control: d,
34812
34820
  bubbles: !h.current,
@@ -34825,7 +34833,7 @@ var Ah = "Radio", [Q5, Hw] = qn(Ah), [e$, t$] = Q5(Ah), $w = I.forwardRef(
34825
34833
  $w.displayName = Ah;
34826
34834
  var Ww = "RadioIndicator", Xw = I.forwardRef(
34827
34835
  (t, e) => {
34828
- const { __scopeRadio: n, forceMount: r, ...i } = t, o = t$(Ww, n);
34836
+ const { __scopeRadio: n, forceMount: r, ...i } = t, o = n$(Ww, n);
34829
34837
  return /* @__PURE__ */ b.jsx(ms, { present: r || o.checked, children: /* @__PURE__ */ b.jsx(
34830
34838
  Ye.span,
34831
34839
  {
@@ -34838,7 +34846,7 @@ var Ww = "RadioIndicator", Xw = I.forwardRef(
34838
34846
  }
34839
34847
  );
34840
34848
  Xw.displayName = Ww;
34841
- var n$ = (t) => {
34849
+ var r$ = (t) => {
34842
34850
  const { control: e, checked: n, bubbles: r = !0, ...i } = t, o = I.useRef(null), s = tc(n), a = Nl(e);
34843
34851
  return I.useEffect(() => {
34844
34852
  const l = o.current, c = window.HTMLInputElement.prototype, d = Object.getOwnPropertyDescriptor(c, "checked").set;
@@ -34869,10 +34877,10 @@ var n$ = (t) => {
34869
34877
  function Yw(t) {
34870
34878
  return t ? "checked" : "unchecked";
34871
34879
  }
34872
- var r$ = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Th = "RadioGroup", [i$, eW] = qn(Th, [
34880
+ var i$ = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Th = "RadioGroup", [o$, tW] = qn(Th, [
34873
34881
  Wl,
34874
34882
  Hw
34875
- ]), Zw = Wl(), Jw = Hw(), [o$, s$] = i$(Th), Uw = I.forwardRef(
34883
+ ]), Zw = Wl(), Jw = Hw(), [s$, a$] = o$(Th), Uw = I.forwardRef(
34876
34884
  (t, e) => {
34877
34885
  const {
34878
34886
  __scopeRadioGroup: n,
@@ -34892,7 +34900,7 @@ var r$ = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Th = "RadioGroup",
34892
34900
  onChange: d
34893
34901
  });
34894
34902
  return /* @__PURE__ */ b.jsx(
34895
- o$,
34903
+ s$,
34896
34904
  {
34897
34905
  scope: n,
34898
34906
  name: r,
@@ -34929,10 +34937,10 @@ var r$ = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Th = "RadioGroup",
34929
34937
  Uw.displayName = Th;
34930
34938
  var Kw = "RadioGroupItem", qw = I.forwardRef(
34931
34939
  (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);
34940
+ 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
34941
  return I.useEffect(() => {
34934
34942
  const p = (m) => {
34935
- r$.includes(m.key) && (f.current = !0);
34943
+ i$.includes(m.key) && (f.current = !0);
34936
34944
  }, h = () => f.current = !1;
34937
34945
  return document.addEventListener("keydown", p), document.addEventListener("keyup", h), () => {
34938
34946
  document.removeEventListener("keydown", p), document.removeEventListener("keyup", h);
@@ -34969,15 +34977,15 @@ var Kw = "RadioGroupItem", qw = I.forwardRef(
34969
34977
  }
34970
34978
  );
34971
34979
  qw.displayName = Kw;
34972
- var a$ = "RadioGroupIndicator", Qw = I.forwardRef(
34980
+ var l$ = "RadioGroupIndicator", Qw = I.forwardRef(
34973
34981
  (t, e) => {
34974
34982
  const { __scopeRadioGroup: n, ...r } = t, i = Jw(n);
34975
34983
  return /* @__PURE__ */ b.jsx(Xw, { ...i, ...r, ref: e });
34976
34984
  }
34977
34985
  );
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: [
34986
+ Qw.displayName = l$;
34987
+ var c$ = Uw, u$ = qw, d$ = Qw;
34988
+ 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
34989
  /* @__PURE__ */ b.jsx(
34982
34990
  "div",
34983
34991
  {
@@ -34987,7 +34995,7 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
34987
34995
  { "!bg-color-transparent": o }
34988
34996
  ),
34989
34997
  children: /* @__PURE__ */ b.jsx(
34990
- c$,
34998
+ u$,
34991
34999
  {
34992
35000
  disabled: o,
34993
35001
  className: O(
@@ -35001,7 +35009,7 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35001
35009
  value: i,
35002
35010
  id: i,
35003
35011
  children: /* @__PURE__ */ b.jsx(
35004
- u$,
35012
+ d$,
35005
35013
  {
35006
35014
  className: O(
35007
35015
  '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 +35034,7 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35026
35034
  children: r
35027
35035
  }
35028
35036
  )
35029
- ] }, i)) }), f$ = Dl("flex gap-2", {
35037
+ ] }, i)) }), p$ = Dl("flex gap-2", {
35030
35038
  variants: {
35031
35039
  orientation: {
35032
35040
  horizontal: "flex-row",
@@ -35036,7 +35044,7 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35036
35044
  defaultVariants: {
35037
35045
  orientation: "vertical"
35038
35046
  }
35039
- }), tW = ({
35047
+ }), nW = ({
35040
35048
  radioItemsGroup: t,
35041
35049
  control: e,
35042
35050
  groupName: n,
@@ -35054,15 +35062,15 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35054
35062
  n && /* @__PURE__ */ b.jsx("span", { className: O("desk-body-regular-l text-color-dark", o == null ? void 0 : o.groupName), children: n }),
35055
35063
  /* @__PURE__ */ b.jsxs("div", { className: O("flex flex-col", o == null ? void 0 : o.field), children: [
35056
35064
  /* @__PURE__ */ b.jsx(
35057
- l$,
35065
+ c$,
35058
35066
  {
35059
35067
  onValueChange: l,
35060
35068
  value: c,
35061
35069
  defaultValue: c,
35062
- className: O(f$({ orientation: s }), o == null ? void 0 : o.radioGroup),
35070
+ className: O(p$({ orientation: s }), o == null ? void 0 : o.radioGroup),
35063
35071
  ...u,
35064
35072
  ...a,
35065
- children: /* @__PURE__ */ b.jsx(d$, { radioItemsGroup: t, error: !!(d != null && d.message), classes: o })
35073
+ children: /* @__PURE__ */ b.jsx(f$, { radioItemsGroup: t, error: !!(d != null && d.message), classes: o })
35066
35074
  }
35067
35075
  ),
35068
35076
  /* @__PURE__ */ b.jsx(
@@ -35077,7 +35085,7 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35077
35085
  ] })
35078
35086
  ] })
35079
35087
  }
35080
- ), p$ = (t) => {
35088
+ ), h$ = (t) => {
35081
35089
  switch (t) {
35082
35090
  case "euro":
35083
35091
  return "€ ";
@@ -35118,7 +35126,7 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35118
35126
  engName: "AED",
35119
35127
  currency: "dirhams"
35120
35128
  }
35121
- ], h$ = (t) => {
35129
+ ], m$ = (t) => {
35122
35130
  const [e, n] = W.useState(!1), [r, i] = W.useState(
35123
35131
  () => (Ao == null ? void 0 : Ao.find((l) => (l == null ? void 0 : l.currency) === t)) || Ao[0]
35124
35132
  );
@@ -35131,7 +35139,7 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35131
35139
  onToggleMenu: () => n((l) => !l),
35132
35140
  onCloseMenu: () => n(!1)
35133
35141
  };
35134
- }, m$ = ({ onToggleMenu: t, currentCurrencyOption: e }) => /* @__PURE__ */ b.jsxs(
35142
+ }, g$ = ({ onToggleMenu: t, currentCurrencyOption: e }) => /* @__PURE__ */ b.jsxs(
35135
35143
  "button",
35136
35144
  {
35137
35145
  type: "button",
@@ -35142,7 +35150,7 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35142
35150
  /* @__PURE__ */ b.jsx(ze, { name: "arrows/arrowRight", className: "rotate-90 text-icon-blue-grey-700" })
35143
35151
  ]
35144
35152
  }
35145
- ), g$ = ({ optionsList: t, menuIsOpen: e, onSelectOption: n }) => /* @__PURE__ */ b.jsx(
35153
+ ), v$ = ({ optionsList: t, menuIsOpen: e, onSelectOption: n }) => /* @__PURE__ */ b.jsx(
35146
35154
  "div",
35147
35155
  {
35148
35156
  className: O(
@@ -35167,7 +35175,7 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35167
35175
  r.engName
35168
35176
  ))
35169
35177
  }
35170
- ), nW = ({
35178
+ ), rW = ({
35171
35179
  label: t,
35172
35180
  size: e = "full",
35173
35181
  helperText: n,
@@ -35177,7 +35185,7 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35177
35185
  defaultCurrency: s = "rubles",
35178
35186
  ...a
35179
35187
  }) => {
35180
- const l = I.useId(), c = I.useRef(null), { menuIsOpen: u, currentCurrencyOption: d, onSelectOption: f, onToggleMenu: p, onCloseMenu: h } = h$(s);
35188
+ const l = I.useId(), c = I.useRef(null), { menuIsOpen: u, currentCurrencyOption: d, onSelectOption: f, onToggleMenu: p, onCloseMenu: h } = m$(s);
35181
35189
  return ky(c, h), /* @__PURE__ */ b.jsx(
35182
35190
  on,
35183
35191
  {
@@ -35201,7 +35209,7 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35201
35209
  "aria-invalid": y != null && y.message ? "true" : "false",
35202
35210
  thousandsGroupStyle: "wan",
35203
35211
  thousandSeparator: " ",
35204
- prefix: p$(d.currency),
35212
+ prefix: h$(d.currency),
35205
35213
  getInputRef: m,
35206
35214
  allowNegative: !1,
35207
35215
  disabled: o,
@@ -35214,8 +35222,8 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35214
35222
  ...a
35215
35223
  }
35216
35224
  ),
35217
- /* @__PURE__ */ b.jsx(m$, { onToggleMenu: p, currentCurrencyOption: d }),
35218
- /* @__PURE__ */ b.jsx(g$, { menuIsOpen: u, optionsList: Ao, onSelectOption: f })
35225
+ /* @__PURE__ */ b.jsx(g$, { onToggleMenu: p, currentCurrencyOption: d }),
35226
+ /* @__PURE__ */ b.jsx(v$, { menuIsOpen: u, optionsList: Ao, onSelectOption: f })
35219
35227
  ] })
35220
35228
  }
35221
35229
  ),
@@ -35231,7 +35239,7 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35231
35239
  ] })
35232
35240
  }
35233
35241
  );
35234
- }, rW = () => /* @__PURE__ */ b.jsx("div", { className: "", children: "Form example" }), eI = ({ buttonsConfig: t, classes: e, className: n }) => {
35242
+ }, iW = () => /* @__PURE__ */ b.jsx("div", { className: "", children: "Form example" }), eI = ({ buttonsConfig: t, classes: e, className: n }) => {
35235
35243
  var i;
35236
35244
  const r = (t == null ? void 0 : t.secondary) && t.secondary.children;
35237
35245
  return /* @__PURE__ */ b.jsxs(
@@ -35259,7 +35267,7 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35259
35267
  ]
35260
35268
  }
35261
35269
  );
35262
- }, v$ = ({
35270
+ }, b$ = ({
35263
35271
  headTitle: t,
35264
35272
  subtitle: e,
35265
35273
  buttonsConfig: n,
@@ -35384,47 +35392,47 @@ const d$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
35384
35392
  ] }) }),
35385
35393
  l && c
35386
35394
  ] });
35387
- }, iW = ({ bannerVariant: t, ...e }) => {
35395
+ }, oW = ({ bannerVariant: t, ...e }) => {
35388
35396
  switch (t) {
35389
35397
  case "separateImg":
35390
35398
  return /* @__PURE__ */ b.jsx($b, { ...e });
35391
35399
  case "fullImg":
35392
- return /* @__PURE__ */ b.jsx(v$, { ...e });
35400
+ return /* @__PURE__ */ b.jsx(b$, { ...e });
35393
35401
  default:
35394
35402
  return /* @__PURE__ */ b.jsx($b, { ...e });
35395
35403
  }
35396
35404
  };
35397
35405
  export {
35398
35406
  QI as Accordion,
35399
- iW as Banner,
35407
+ oW as Banner,
35400
35408
  $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,
35409
+ L$ as CheckboxControl,
35410
+ J$ as ComboboxControl,
35411
+ Y$ as DadataAddress,
35412
+ W$ as DadataAuto,
35413
+ X$ as DadataCountry,
35414
+ $$ as DadataFio,
35415
+ Z$ as DadataOrganization,
35416
+ Q$ as EditorControl,
35417
+ iW as FormControl,
35418
+ F$ as InputControl,
35419
+ V$ as InputControlMask,
35420
+ rW as InputCurrencyControl,
35421
+ D$ as Modal,
35414
35422
  Po as Notification,
35415
- D$ as NotificationProvider,
35423
+ N$ as NotificationProvider,
35416
35424
  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,
35425
+ nW as RadioControl,
35426
+ K$ as SliderControl,
35427
+ G$ as SwitchControl,
35428
+ O$ as TabsSwitcher,
35429
+ z$ as TextareaControl,
35430
+ eW as UploaderControl,
35423
35431
  HE as debounce,
35424
- E$ as useBoolean,
35432
+ A$ as useBoolean,
35425
35433
  ky as useClickOutside,
35426
- T$ as useCombineRef,
35427
- A$ as useControlledForm,
35434
+ k$ as useCombineRef,
35435
+ T$ as useControlledForm,
35428
35436
  $E as useDebounceCallback,
35429
35437
  WE as useDebounceValue,
35430
35438
  Ff as useDevice