@scbt-ecom/ui 0.7.28 → 0.7.30

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,7 +1,7 @@
1
- import { t as Jn, d as ri, e as ZS, f as xh, m as JS, h as Wb, k as US, l as KS, n as qS, o as QS, q as eI, i as tI, r as nI, s as rI, w as iI, v as oI, x as Hu, j as C, y as kt, S as Ch, A as Un, C as Nn, D as ps, E as Ze, F as _e, G as hs, J as sI, c as O, I as Fe, K as $b, M as aI, O as lI, Q as cI, R as uI, T as dI, U as fI, b as pI, u as hI, V as mI, H as gI, W as vI, _ as bI, X as yI, B as xI, a as gf, Y as kl, Z as Sc, $ as co, a0 as CI, a1 as uo, p as wI, g as SI, a2 as di, N as Mo, L as II, a3 as Xb, P as Yb, z as EI, a4 as AI, a5 as Co, a6 as TI, a7 as Zb, a8 as Ic, a9 as Ec, aa as kI, ab as MI, ac as OI, ad as PI, ae as RI } from "./utils-tailwind-D31aoXaK.js";
1
+ import { t as Jn, d as ri, e as ZS, f as xh, m as JS, h as Wb, k as US, l as KS, n as qS, o as QS, q as eI, i as tI, r as nI, s as rI, w as iI, v as oI, x as _u, j as C, y as kt, S as Ch, A as Un, C as Nn, D as ps, E as Ze, F as _e, G as hs, J as sI, c as O, I as Fe, K as $b, M as aI, O as lI, Q as cI, R as uI, T as dI, U as fI, b as pI, u as hI, V as mI, H as gI, W as vI, _ as bI, X as yI, B as xI, a as mf, Y as kl, Z as wc, $ as co, a0 as CI, a1 as uo, p as wI, g as SI, a2 as di, N as Mo, L as II, a3 as Xb, P as Yb, z as EI, a4 as AI, a5 as Co, a6 as TI, a7 as Zb, a8 as Sc, a9 as Ic, aa as kI, ab as MI, ac as OI, ad as PI, ae as RI } from "./utils-tailwind-Bxkz2BJY.js";
2
2
  import * as I from "react";
3
- import $, { useCallback as fe, createContext as qe, useContext as Me, useId as Fn, useEffect as Pe, Component as Jb, useLayoutEffect as Qi, useRef as de, useInsertionEffect as Ub, useMemo as we, forwardRef as fi, Fragment as Ht, createElement as Kb, Children as DI, isValidElement as qb, useState as Oe, useReducer as vf, useImperativeHandle as NI, useDebugValue as Qb, cloneElement as FI, useSyncExternalStore as VI, createRef as BI } from "react";
4
- import * as Wu from "react-dom";
3
+ import $, { useCallback as fe, createContext as qe, useContext as Me, useId as Fn, useEffect as Pe, Component as Jb, useLayoutEffect as Qi, useRef as de, useInsertionEffect as Ub, useMemo as we, forwardRef as fi, Fragment as Ht, createElement as Kb, Children as DI, isValidElement as qb, useState as Oe, useReducer as gf, useImperativeHandle as NI, useDebugValue as Qb, cloneElement as FI, useSyncExternalStore as VI, createRef as BI } from "react";
4
+ import * as Hu from "react-dom";
5
5
  import LI, { createPortal as Ml, flushSync as Gr } from "react-dom";
6
6
  function jI(t, e, n) {
7
7
  const r = Jn(t, n == null ? void 0 : n.in);
@@ -710,7 +710,7 @@ function Ah(t, e, n) {
710
710
  t,
711
711
  e
712
712
  );
713
- return +Hu(r, n) == +Hu(i, n);
713
+ return +_u(r, n) == +_u(i, n);
714
714
  }
715
715
  function nE(t, e, n) {
716
716
  const [r, i] = ms(
@@ -773,7 +773,7 @@ function oE(...t) {
773
773
  };
774
774
  return n.scopeName = e.scopeName, n;
775
775
  }
776
- function bf(t) {
776
+ function vf(t) {
777
777
  const e = t + "CollectionProvider", [n, r] = iE(e), [i, o] = n(
778
778
  e,
779
779
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
@@ -813,7 +813,7 @@ function bf(t) {
813
813
  r
814
814
  ];
815
815
  }
816
- var yf = "Collapsible", [sE, ey] = Un(yf), [aE, xf] = sE(yf), ty = I.forwardRef(
816
+ var bf = "Collapsible", [sE, ey] = Un(bf), [aE, yf] = sE(bf), ty = I.forwardRef(
817
817
  (t, e) => {
818
818
  const {
819
819
  __scopeCollapsible: n,
@@ -838,7 +838,7 @@ var yf = "Collapsible", [sE, ey] = Un(yf), [aE, xf] = sE(yf), ty = I.forwardRef(
838
838
  children: /* @__PURE__ */ C.jsx(
839
839
  Ze.div,
840
840
  {
841
- "data-state": wf(l),
841
+ "data-state": Cf(l),
842
842
  "data-disabled": o ? "" : void 0,
843
843
  ...a,
844
844
  ref: e
@@ -848,17 +848,17 @@ var yf = "Collapsible", [sE, ey] = Un(yf), [aE, xf] = sE(yf), ty = I.forwardRef(
848
848
  );
849
849
  }
850
850
  );
851
- ty.displayName = yf;
851
+ ty.displayName = bf;
852
852
  var ny = "CollapsibleTrigger", ry = I.forwardRef(
853
853
  (t, e) => {
854
- const { __scopeCollapsible: n, ...r } = t, i = xf(ny, n);
854
+ const { __scopeCollapsible: n, ...r } = t, i = yf(ny, n);
855
855
  return /* @__PURE__ */ C.jsx(
856
856
  Ze.button,
857
857
  {
858
858
  type: "button",
859
859
  "aria-controls": i.contentId,
860
860
  "aria-expanded": i.open || !1,
861
- "data-state": wf(i.open),
861
+ "data-state": Cf(i.open),
862
862
  "data-disabled": i.disabled ? "" : void 0,
863
863
  disabled: i.disabled,
864
864
  ...r,
@@ -869,15 +869,15 @@ var ny = "CollapsibleTrigger", ry = I.forwardRef(
869
869
  }
870
870
  );
871
871
  ry.displayName = ny;
872
- var Cf = "CollapsibleContent", iy = I.forwardRef(
872
+ var xf = "CollapsibleContent", iy = I.forwardRef(
873
873
  (t, e) => {
874
- const { forceMount: n, ...r } = t, i = xf(Cf, t.__scopeCollapsible);
874
+ const { forceMount: n, ...r } = t, i = yf(xf, t.__scopeCollapsible);
875
875
  return /* @__PURE__ */ C.jsx(hs, { present: n || i.open, children: ({ present: o }) => /* @__PURE__ */ C.jsx(lE, { ...r, ref: e, present: o }) });
876
876
  }
877
877
  );
878
- iy.displayName = Cf;
878
+ iy.displayName = xf;
879
879
  var lE = I.forwardRef((t, e) => {
880
- const { __scopeCollapsible: n, present: r, children: i, ...o } = t, s = xf(Cf, n), [a, l] = I.useState(r), c = I.useRef(null), u = kt(e, c), d = I.useRef(0), f = d.current, p = I.useRef(0), h = p.current, m = s.open || a, g = I.useRef(m), v = I.useRef();
880
+ const { __scopeCollapsible: n, present: r, children: i, ...o } = t, s = yf(xf, n), [a, l] = I.useState(r), c = I.useRef(null), u = kt(e, c), d = I.useRef(0), f = d.current, p = I.useRef(0), h = p.current, m = s.open || a, g = I.useRef(m), v = I.useRef();
881
881
  return I.useEffect(() => {
882
882
  const b = requestAnimationFrame(() => g.current = !1);
883
883
  return () => cancelAnimationFrame(b);
@@ -894,7 +894,7 @@ var lE = I.forwardRef((t, e) => {
894
894
  }, [s.open, r]), /* @__PURE__ */ C.jsx(
895
895
  Ze.div,
896
896
  {
897
- "data-state": wf(s.open),
897
+ "data-state": Cf(s.open),
898
898
  "data-disabled": s.disabled ? "" : void 0,
899
899
  id: s.contentId,
900
900
  hidden: !m,
@@ -909,7 +909,7 @@ var lE = I.forwardRef((t, e) => {
909
909
  }
910
910
  );
911
911
  });
912
- function wf(t) {
912
+ function Cf(t) {
913
913
  return t ? "open" : "closed";
914
914
  }
915
915
  var cE = ty, uE = ry, dE = iy, fE = I.createContext(void 0);
@@ -917,13 +917,13 @@ function gs(t) {
917
917
  const e = I.useContext(fE);
918
918
  return t || e || "ltr";
919
919
  }
920
- var Kn = "Accordion", pE = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Sf, hE, mE] = bf(Kn), [Ol, Y5] = Un(Kn, [
920
+ var Kn = "Accordion", pE = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [wf, hE, mE] = vf(Kn), [Ol, Y5] = Un(Kn, [
921
921
  mE,
922
922
  ey
923
- ]), If = ey(), oy = $.forwardRef(
923
+ ]), Sf = ey(), oy = $.forwardRef(
924
924
  (t, e) => {
925
925
  const { type: n, ...r } = t, i = r, o = r;
926
- return /* @__PURE__ */ C.jsx(Sf.Provider, { scope: t.__scopeAccordion, children: n === "multiple" ? /* @__PURE__ */ C.jsx(yE, { ...o, ref: e }) : /* @__PURE__ */ C.jsx(bE, { ...i, ref: e }) });
926
+ return /* @__PURE__ */ C.jsx(wf.Provider, { scope: t.__scopeAccordion, children: n === "multiple" ? /* @__PURE__ */ C.jsx(yE, { ...o, ref: e }) : /* @__PURE__ */ C.jsx(bE, { ...i, ref: e }) });
927
927
  }
928
928
  );
929
929
  oy.displayName = Kn;
@@ -1030,7 +1030,7 @@ var [sy, gE] = Ol(Kn), [ay, vE] = Ol(
1030
1030
  disabled: r,
1031
1031
  direction: i,
1032
1032
  orientation: o,
1033
- children: /* @__PURE__ */ C.jsx(Sf.Slot, { scope: n, children: /* @__PURE__ */ C.jsx(
1033
+ children: /* @__PURE__ */ C.jsx(wf.Slot, { scope: n, children: /* @__PURE__ */ C.jsx(
1034
1034
  Ze.div,
1035
1035
  {
1036
1036
  ...s,
@@ -1042,9 +1042,9 @@ var [sy, gE] = Ol(Kn), [ay, vE] = Ol(
1042
1042
  }
1043
1043
  );
1044
1044
  }
1045
- ), ha = "AccordionItem", [CE, Ef] = Ol(ha), cy = $.forwardRef(
1045
+ ), ha = "AccordionItem", [CE, If] = Ol(ha), cy = $.forwardRef(
1046
1046
  (t, e) => {
1047
- const { __scopeAccordion: n, value: r, ...i } = t, o = Pl(ha, n), s = gE(ha, n), a = If(n), l = ps(), c = r && s.value.includes(r) || !1, u = o.disabled || t.disabled;
1047
+ const { __scopeAccordion: n, value: r, ...i } = t, o = Pl(ha, n), s = gE(ha, n), a = Sf(n), l = ps(), c = r && s.value.includes(r) || !1, u = o.disabled || t.disabled;
1048
1048
  return /* @__PURE__ */ C.jsx(
1049
1049
  CE,
1050
1050
  {
@@ -1074,7 +1074,7 @@ var [sy, gE] = Ol(Kn), [ay, vE] = Ol(
1074
1074
  cy.displayName = ha;
1075
1075
  var uy = "AccordionHeader", dy = $.forwardRef(
1076
1076
  (t, e) => {
1077
- const { __scopeAccordion: n, ...r } = t, i = Pl(Kn, n), o = Ef(uy, n);
1077
+ const { __scopeAccordion: n, ...r } = t, i = Pl(Kn, n), o = If(uy, n);
1078
1078
  return /* @__PURE__ */ C.jsx(
1079
1079
  Ze.h3,
1080
1080
  {
@@ -1088,10 +1088,10 @@ var uy = "AccordionHeader", dy = $.forwardRef(
1088
1088
  }
1089
1089
  );
1090
1090
  dy.displayName = uy;
1091
- var $u = "AccordionTrigger", fy = $.forwardRef(
1091
+ var Wu = "AccordionTrigger", fy = $.forwardRef(
1092
1092
  (t, e) => {
1093
- const { __scopeAccordion: n, ...r } = t, i = Pl(Kn, n), o = Ef($u, n), s = vE($u, n), a = If(n);
1094
- return /* @__PURE__ */ C.jsx(Sf.ItemSlot, { scope: n, children: /* @__PURE__ */ C.jsx(
1093
+ const { __scopeAccordion: n, ...r } = t, i = Pl(Kn, n), o = If(Wu, n), s = vE(Wu, n), a = Sf(n);
1094
+ return /* @__PURE__ */ C.jsx(wf.ItemSlot, { scope: n, children: /* @__PURE__ */ C.jsx(
1095
1095
  uE,
1096
1096
  {
1097
1097
  "aria-disabled": o.open && !s.collapsible || void 0,
@@ -1104,10 +1104,10 @@ var $u = "AccordionTrigger", fy = $.forwardRef(
1104
1104
  ) });
1105
1105
  }
1106
1106
  );
1107
- fy.displayName = $u;
1107
+ fy.displayName = Wu;
1108
1108
  var py = "AccordionContent", hy = $.forwardRef(
1109
1109
  (t, e) => {
1110
- const { __scopeAccordion: n, ...r } = t, i = Pl(Kn, n), o = Ef(py, n), s = If(n);
1110
+ const { __scopeAccordion: n, ...r } = t, i = Pl(Kn, n), o = If(py, n), s = Sf(n);
1111
1111
  return /* @__PURE__ */ C.jsx(
1112
1112
  dE,
1113
1113
  {
@@ -1147,7 +1147,10 @@ const gy = I.forwardRef(
1147
1147
  Fe,
1148
1148
  {
1149
1149
  name: "arrows/arrowCircle",
1150
- className: O("size-8 text-icon-blue-grey-800 transition-all group-data-[state=open]:rotate-180", e == null ? void 0 : e.icon)
1150
+ className: O(
1151
+ "size-8 rotate-180 text-icon-blue-grey-800 transition-all group-data-[state=open]:rotate-0",
1152
+ e == null ? void 0 : e.icon
1153
+ )
1151
1154
  }
1152
1155
  )
1153
1156
  ]
@@ -1194,7 +1197,7 @@ var kE = "VisuallyHidden", vy = I.forwardRef(
1194
1197
  vy.displayName = kE;
1195
1198
  var ME = vy, [Rl, Z5] = Un("Tooltip", [
1196
1199
  $b
1197
- ]), Dl = $b(), by = "TooltipProvider", OE = 700, Xu = "tooltip.open", [PE, Af] = Rl(by), yy = (t) => {
1200
+ ]), Dl = $b(), by = "TooltipProvider", OE = 700, $u = "tooltip.open", [PE, Ef] = Rl(by), yy = (t) => {
1198
1201
  const {
1199
1202
  __scopeTooltip: e,
1200
1203
  delayDuration: n = OE,
@@ -1239,11 +1242,11 @@ var Nl = "Tooltip", [RE, Fl] = Rl(Nl), xy = (t) => {
1239
1242
  onOpenChange: o,
1240
1243
  disableHoverableContent: s,
1241
1244
  delayDuration: a
1242
- } = t, l = Af(Nl, t.__scopeTooltip), c = Dl(e), [u, d] = I.useState(null), f = ps(), p = I.useRef(0), h = s ?? l.disableHoverableContent, m = a ?? l.delayDuration, g = I.useRef(!1), [v = !1, b] = Nn({
1245
+ } = t, l = Ef(Nl, t.__scopeTooltip), c = Dl(e), [u, d] = I.useState(null), f = ps(), p = I.useRef(0), h = s ?? l.disableHoverableContent, m = a ?? l.delayDuration, g = I.useRef(!1), [v = !1, b] = Nn({
1243
1246
  prop: r,
1244
1247
  defaultProp: i,
1245
1248
  onChange: (A) => {
1246
- A ? (l.onOpen(), document.dispatchEvent(new CustomEvent(Xu))) : l.onClose(), o == null || o(A);
1249
+ A ? (l.onOpen(), document.dispatchEvent(new CustomEvent($u))) : l.onClose(), o == null || o(A);
1247
1250
  }
1248
1251
  }), x = I.useMemo(() => v ? g.current ? "delayed-open" : "instant-open" : "closed", [v]), w = I.useCallback(() => {
1249
1252
  window.clearTimeout(p.current), p.current = 0, g.current = !1, b(!0);
@@ -1279,9 +1282,9 @@ var Nl = "Tooltip", [RE, Fl] = Rl(Nl), xy = (t) => {
1279
1282
  ) });
1280
1283
  };
1281
1284
  xy.displayName = Nl;
1282
- var Yu = "TooltipTrigger", Cy = I.forwardRef(
1285
+ var Xu = "TooltipTrigger", Cy = I.forwardRef(
1283
1286
  (t, e) => {
1284
- const { __scopeTooltip: n, ...r } = t, i = Fl(Yu, n), o = Af(Yu, n), s = Dl(n), a = I.useRef(null), l = kt(e, a, i.onTriggerChange), c = I.useRef(!1), u = I.useRef(!1), d = I.useCallback(() => c.current = !1, []);
1287
+ const { __scopeTooltip: n, ...r } = t, i = Fl(Xu, n), o = Ef(Xu, n), s = Dl(n), a = I.useRef(null), l = kt(e, a, i.onTriggerChange), c = I.useRef(!1), u = I.useRef(!1), d = I.useCallback(() => c.current = !1, []);
1285
1288
  return I.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ C.jsx(aI, { asChild: !0, ...s, children: /* @__PURE__ */ C.jsx(
1286
1289
  Ze.button,
1287
1290
  {
@@ -1307,7 +1310,7 @@ var Yu = "TooltipTrigger", Cy = I.forwardRef(
1307
1310
  ) });
1308
1311
  }
1309
1312
  );
1310
- Cy.displayName = Yu;
1313
+ Cy.displayName = Xu;
1311
1314
  var DE = "TooltipPortal", [J5, NE] = Rl(DE, {
1312
1315
  forceMount: void 0
1313
1316
  }), zi = "TooltipContent", wy = I.forwardRef(
@@ -1316,7 +1319,7 @@ var DE = "TooltipPortal", [J5, NE] = Rl(DE, {
1316
1319
  return /* @__PURE__ */ C.jsx(hs, { present: r || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ C.jsx(Sy, { side: i, ...o, ref: e }) : /* @__PURE__ */ C.jsx(FE, { side: i, ...o, ref: e }) });
1317
1320
  }
1318
1321
  ), FE = I.forwardRef((t, e) => {
1319
- const n = Fl(zi, t.__scopeTooltip), r = Af(zi, t.__scopeTooltip), i = I.useRef(null), o = kt(e, i), [s, a] = I.useState(null), { trigger: l, onClose: c } = n, u = i.current, { onPointerInTransitChange: d } = r, f = I.useCallback(() => {
1322
+ const n = Fl(zi, t.__scopeTooltip), r = Ef(zi, t.__scopeTooltip), i = I.useRef(null), o = kt(e, i), [s, a] = I.useState(null), { trigger: l, onClose: c } = n, u = i.current, { onPointerInTransitChange: d } = r, f = I.useCallback(() => {
1320
1323
  a(null), d(!1);
1321
1324
  }, [d]), p = I.useCallback(
1322
1325
  (h, m) => {
@@ -1351,7 +1354,7 @@ var DE = "TooltipPortal", [J5, NE] = Rl(DE, {
1351
1354
  onPointerDownOutside: s,
1352
1355
  ...a
1353
1356
  } = t, l = Fl(zi, n), c = Dl(n), { onClose: u } = l;
1354
- return I.useEffect(() => (document.addEventListener(Xu, u), () => document.removeEventListener(Xu, u)), [u]), I.useEffect(() => {
1357
+ return I.useEffect(() => (document.addEventListener($u, u), () => document.removeEventListener($u, u)), [u]), I.useEffect(() => {
1355
1358
  if (l.trigger) {
1356
1359
  const d = (f) => {
1357
1360
  const p = f.target;
@@ -1497,10 +1500,10 @@ function HE(t) {
1497
1500
  return n.pop(), e.length === 1 && n.length === 1 && e[0].x === n[0].x && e[0].y === n[0].y ? e : e.concat(n);
1498
1501
  }
1499
1502
  var WE = yy, $E = xy, XE = Cy, YE = wy, ZE = Ey;
1500
- const Ac = (t = !1) => {
1503
+ const Ec = (t = !1) => {
1501
1504
  const [e, n] = I.useState(t);
1502
1505
  return [e, (i) => n((o) => i ?? !o)];
1503
- }, Tf = (t, e) => {
1506
+ }, Af = (t, e) => {
1504
1507
  const n = (r) => {
1505
1508
  t.current && !t.current.contains(r.target) && e();
1506
1509
  };
@@ -1517,7 +1520,7 @@ const Ay = (t) => typeof t == "object";
1517
1520
  var it = (t) => !Dt(t) && !Array.isArray(t) && Ay(t) && !zr(t), Ty = (t) => it(t) && t.target ? vs(t.target) ? t.target.checked : t.target.value : t, JE = (t) => t.substring(0, t.search(/\.\d+(\.|$)/)) || t, ky = (t, e) => t.has(JE(e)), UE = (t) => {
1518
1521
  const e = t.constructor && t.constructor.prototype;
1519
1522
  return it(e) && e.hasOwnProperty("isPrototypeOf");
1520
- }, kf = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
1523
+ }, Tf = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
1521
1524
  function Bt(t) {
1522
1525
  let e;
1523
1526
  const n = Array.isArray(t);
@@ -1525,7 +1528,7 @@ function Bt(t) {
1525
1528
  e = new Date(t);
1526
1529
  else if (t instanceof Set)
1527
1530
  e = new Set(t);
1528
- else if (!(kf && (t instanceof Blob || t instanceof FileList)) && (n || it(t)))
1531
+ else if (!(Tf && (t instanceof Blob || t instanceof FileList)) && (n || it(t)))
1529
1532
  if (e = n ? [] : {}, !n && !UE(t))
1530
1533
  e = t;
1531
1534
  else
@@ -1540,9 +1543,9 @@ var Vl = (t) => Array.isArray(t) ? t.filter(Boolean) : [], Qe = (t) => t === voi
1540
1543
  return n;
1541
1544
  const r = Vl(e.split(/[,[\].]+?/)).reduce((i, o) => Dt(i) ? i : i[o], t);
1542
1545
  return Qe(r) || r === t ? Qe(t[e]) ? n : t[e] : r;
1543
- }, Qt = (t) => typeof t == "boolean", Mf = (t) => /^\w*$/.test(t), My = (t) => Vl(t.replace(/["|']|\]/g, "").split(/\.|\[/)), Ge = (t, e, n) => {
1546
+ }, Qt = (t) => typeof t == "boolean", kf = (t) => /^\w*$/.test(t), My = (t) => Vl(t.replace(/["|']|\]/g, "").split(/\.|\[/)), Ge = (t, e, n) => {
1544
1547
  let r = -1;
1545
- const i = Mf(e) ? [e] : My(e), o = i.length, s = o - 1;
1548
+ const i = kf(e) ? [e] : My(e), o = i.length, s = o - 1;
1546
1549
  for (; ++r < o; ) {
1547
1550
  const a = i[r];
1548
1551
  let l = n;
@@ -1574,7 +1577,7 @@ const ma = {
1574
1577
  pattern: "pattern",
1575
1578
  required: "required",
1576
1579
  validate: "validate"
1577
- }, KE = $.createContext(null), Bl = () => $.useContext(KE);
1580
+ }, KE = $.createContext(null), Mf = () => $.useContext(KE);
1578
1581
  var Oy = (t, e, n, r = !0) => {
1579
1582
  const i = {
1580
1583
  defaultValues: e._defaultValues
@@ -1604,7 +1607,7 @@ function Of(t) {
1604
1607
  }, [t.disabled]);
1605
1608
  }
1606
1609
  function qE(t) {
1607
- const e = Bl(), { control: n = e.control, disabled: r, name: i, exact: o } = t || {}, [s, a] = $.useState(n._formState), l = $.useRef(!0), c = $.useRef({
1610
+ const e = Mf(), { control: n = e.control, disabled: r, name: i, exact: o } = t || {}, [s, a] = $.useState(n._formState), l = $.useRef(!0), c = $.useRef({
1608
1611
  isDirty: !1,
1609
1612
  isLoading: !1,
1610
1613
  dirtyFields: !1,
@@ -1627,7 +1630,7 @@ function qE(t) {
1627
1630
  }
1628
1631
  var En = (t) => typeof t == "string", Dy = (t, e, n, r, i) => En(t) ? (r && e.watch.add(t), te(n, t, i)) : Array.isArray(t) ? t.map((o) => (r && e.watch.add(o), te(n, o))) : (r && (e.watchAll = !0), n);
1629
1632
  function QE(t) {
1630
- const e = Bl(), { control: n = e.control, name: r, defaultValue: i, disabled: o, exact: s } = t || {}, a = $.useRef(r);
1633
+ const e = Mf(), { control: n = e.control, name: r, defaultValue: i, disabled: o, exact: s } = t || {}, a = $.useRef(r);
1631
1634
  a.current = r, Of({
1632
1635
  disabled: o,
1633
1636
  subject: n._subjects.values,
@@ -1639,7 +1642,7 @@ function QE(t) {
1639
1642
  return $.useEffect(() => n._removeUnmounted()), l;
1640
1643
  }
1641
1644
  function eA(t) {
1642
- const e = Bl(), { name: n, disabled: r, control: i = e.control, shouldUnregister: o } = t, s = ky(i._names.array, n), a = QE({
1645
+ const e = Mf(), { name: n, disabled: r, control: i = e.control, shouldUnregister: o } = t, s = ky(i._names.array, n), a = QE({
1643
1646
  control: i,
1644
1647
  name: n,
1645
1648
  defaultValue: te(i._formValues, n, te(i._defaultValues, n, t.defaultValue)),
@@ -1761,7 +1764,7 @@ var tA = (t, e, n) => {
1761
1764
  const r = Oo(te(t, n));
1762
1765
  return Ge(r, "root", e[n]), Ge(t, n, r), t;
1763
1766
  }, Pf = (t) => t.type === "file", In = (t) => typeof t == "function", ga = (t) => {
1764
- if (!kf)
1767
+ if (!Tf)
1765
1768
  return !1;
1766
1769
  const e = t ? t.ownerDocument : 0;
1767
1770
  return t instanceof (e && e.defaultView ? e.defaultView.HTMLElement : HTMLElement);
@@ -1897,10 +1900,10 @@ function rA(t) {
1897
1900
  return !0;
1898
1901
  }
1899
1902
  function ct(t, e) {
1900
- const n = Array.isArray(e) ? e : Mf(e) ? [e] : My(e), r = n.length === 1 ? t : nA(t, n), i = n.length - 1, o = n[i];
1903
+ const n = Array.isArray(e) ? e : kf(e) ? [e] : My(e), r = n.length === 1 ? t : nA(t, n), i = n.length - 1, o = n[i];
1901
1904
  return r && delete r[o], i !== 0 && (it(r) && Lt(r) || Array.isArray(r) && rA(r)) && ct(t, n.slice(0, -1)), t;
1902
1905
  }
1903
- var Tc = () => {
1906
+ var Ac = () => {
1904
1907
  let t = [];
1905
1908
  return {
1906
1909
  get observers() {
@@ -1919,9 +1922,9 @@ var Tc = () => {
1919
1922
  t = [];
1920
1923
  }
1921
1924
  };
1922
- }, Zu = (t) => Dt(t) || !Ay(t);
1925
+ }, Yu = (t) => Dt(t) || !Ay(t);
1923
1926
  function ar(t, e) {
1924
- if (Zu(t) || Zu(e))
1927
+ if (Yu(t) || Yu(e))
1925
1928
  return t === e;
1926
1929
  if (zr(t) && zr(e))
1927
1930
  return t.getTime() === e.getTime();
@@ -1940,7 +1943,7 @@ function ar(t, e) {
1940
1943
  }
1941
1944
  return !0;
1942
1945
  }
1943
- var By = (t) => t.type === "select-multiple", iA = (t) => Rf(t) || vs(t), kc = (t) => ga(t) && t.isConnected, Ly = (t) => {
1946
+ var By = (t) => t.type === "select-multiple", iA = (t) => Rf(t) || vs(t), Tc = (t) => ga(t) && t.isConnected, Ly = (t) => {
1944
1947
  for (const e in t)
1945
1948
  if (In(t[e]))
1946
1949
  return !0;
@@ -1957,11 +1960,11 @@ function jy(t, e, n) {
1957
1960
  const r = Array.isArray(t);
1958
1961
  if (it(t) || r)
1959
1962
  for (const i in t)
1960
- Array.isArray(t[i]) || it(t[i]) && !Ly(t[i]) ? Qe(e) || Zu(n[i]) ? n[i] = Array.isArray(t[i]) ? ba(t[i], []) : { ...ba(t[i]) } : jy(t[i], Dt(e) ? {} : e[i], n[i]) : n[i] = !ar(t[i], e[i]);
1963
+ Array.isArray(t[i]) || it(t[i]) && !Ly(t[i]) ? Qe(e) || Yu(n[i]) ? n[i] = Array.isArray(t[i]) ? ba(t[i], []) : { ...ba(t[i]) } : jy(t[i], Dt(e) ? {} : e[i], n[i]) : n[i] = !ar(t[i], e[i]);
1961
1964
  return n;
1962
1965
  }
1963
1966
  var fo = (t, e) => jy(t, e, ba(e)), Gy = (t, { valueAsNumber: e, valueAsDate: n, setValueAs: r }) => Qe(t) ? t : e ? t === "" ? NaN : t && +t : n && En(t) ? new Date(t) : r ? r(t) : t;
1964
- function Mc(t) {
1967
+ function kc(t) {
1965
1968
  const e = t.ref;
1966
1969
  if (!(t.refs ? t.refs.every((n) => n.disabled) : e.disabled))
1967
1970
  return Pf(e) ? e.files : Rf(e) ? Vy(t.refs).value : By(e) ? [...e.selectedOptions].map(({ value: n }) => n) : vs(e) ? Fy(t.refs).value : Gy(Qe(e.value) ? t.ref.value : e.value, t);
@@ -1983,7 +1986,7 @@ const Nh = "AsyncFunction";
1983
1986
  var sA = (t) => (!t || !t.validate) && !!(In(t.validate) && t.validate.constructor.name === Nh || it(t.validate) && Object.values(t.validate).find((e) => e.constructor.name === Nh)), aA = (t) => t.mount && (t.required || t.min || t.max || t.maxLength || t.minLength || t.pattern || t.validate);
1984
1987
  function Fh(t, e, n) {
1985
1988
  const r = te(t, n);
1986
- if (r || Mf(n))
1989
+ if (r || kf(n))
1987
1990
  return {
1988
1991
  error: r,
1989
1992
  name: n
@@ -2047,9 +2050,9 @@ function dA(t = {}) {
2047
2050
  isValid: !1,
2048
2051
  errors: !1
2049
2052
  }, d = {
2050
- values: Tc(),
2051
- array: Tc(),
2052
- state: Tc()
2053
+ values: Ac(),
2054
+ array: Ac(),
2055
+ state: Ac()
2053
2056
  }, f = Th(e.mode), p = Th(e.reValidateMode), h = e.criteriaMode === ln.all, m = (S) => (k) => {
2054
2057
  clearTimeout(c), c = setTimeout(S, k);
2055
2058
  }, g = async (S) => {
@@ -2102,7 +2105,7 @@ function dA(t = {}) {
2102
2105
  const W = te(r, S);
2103
2106
  if (W) {
2104
2107
  const j = te(o, S, Qe(M) ? te(i, S) : M);
2105
- Qe(j) || q && q.defaultChecked || k ? Ge(o, S, k ? j : Mc(W._f)) : Y(S, j), s.mount && g();
2108
+ Qe(j) || q && q.defaultChecked || k ? Ge(o, S, k ? j : kc(W._f)) : Y(S, j), s.mount && g();
2106
2109
  }
2107
2110
  }, E = (S, k, M, q, W) => {
2108
2111
  let j = !1, N = !1;
@@ -2173,7 +2176,7 @@ function dA(t = {}) {
2173
2176
  }, X = () => {
2174
2177
  for (const S of a.unMount) {
2175
2178
  const k = te(r, S);
2176
- k && (k._f.refs ? k._f.refs.every((M) => !kc(M)) : !kc(k._f.ref)) && ne(S);
2179
+ k && (k._f.refs ? k._f.refs.every((M) => !Tc(M)) : !Tc(k._f.ref)) && ne(S);
2177
2180
  }
2178
2181
  a.unMount = /* @__PURE__ */ new Set();
2179
2182
  }, z = (S, k) => !e.disabled && (S && k && Ge(o, S, k), !ar(_(), i)), J = (S, k, M) => Dy(S, a, {
@@ -2211,7 +2214,7 @@ function dA(t = {}) {
2211
2214
  s.mount = !0;
2212
2215
  const k = S.target;
2213
2216
  let M = k.name, q = !0;
2214
- const W = te(r, M), j = () => k.type ? Mc(W._f) : Ty(S), N = (U) => {
2217
+ const W = te(r, M), j = () => k.type ? kc(W._f) : Ty(S), N = (U) => {
2215
2218
  q = Number.isNaN(U) || zr(U) && isNaN(U.getTime()) || ar(U, te(o, M, U));
2216
2219
  };
2217
2220
  if (W) {
@@ -2292,7 +2295,7 @@ function dA(t = {}) {
2292
2295
  }), !k.keepIsValid && g();
2293
2296
  }, ie = ({ disabled: S, name: k, field: M, fields: q, value: W }) => {
2294
2297
  if (Qt(S) && s.mount || S) {
2295
- const j = S ? void 0 : Qe(W) ? Mc(M ? M._f : te(q, k)._f) : W;
2298
+ const j = S ? void 0 : Qe(W) ? kc(M ? M._f : te(q, k)._f) : W;
2296
2299
  Ge(o, k, j), E(k, j, !1, !1, !0);
2297
2300
  }
2298
2301
  }, ae = (S, k = {}) => {
@@ -2335,7 +2338,7 @@ function dA(t = {}) {
2335
2338
  ...M._f,
2336
2339
  ...N ? {
2337
2340
  refs: [
2338
- ...U.filter(kc),
2341
+ ...U.filter(Tc),
2339
2342
  j,
2340
2343
  ...Array.isArray(te(i, S)) ? [{}] : []
2341
2344
  ],
@@ -2400,7 +2403,7 @@ function dA(t = {}) {
2400
2403
  for (const U of Array.from(N))
2401
2404
  te(n.dirtyFields, U) ? Ge(j, U, te(o, U)) : B(U, te(j, U));
2402
2405
  } else {
2403
- if (kf && Qe(S))
2406
+ if (Tf && Qe(S))
2404
2407
  for (const N of a.mount) {
2405
2408
  const U = te(r, N);
2406
2409
  if (U && U._f) {
@@ -2670,7 +2673,7 @@ const U5 = ({ schema: t, ...e }) => fA({
2670
2673
  ...l
2671
2674
  }) => {
2672
2675
  const [c, u] = I.useState(!1), d = I.useRef(null), { isMobile: f } = hI();
2673
- return Tf(d, () => u(!1)), /* @__PURE__ */ C.jsx(WE, { children: /* @__PURE__ */ C.jsx($E, { open: c, onOpenChange: u, defaultOpen: s, delayDuration: n, children: /* @__PURE__ */ C.jsxs("div", { onClick: () => u(!!f), children: [
2676
+ return Af(d, () => u(!1)), /* @__PURE__ */ C.jsx(WE, { children: /* @__PURE__ */ C.jsx($E, { open: c, onOpenChange: u, defaultOpen: s, delayDuration: n, children: /* @__PURE__ */ C.jsxs("div", { onClick: () => u(!!f), children: [
2674
2677
  /* @__PURE__ */ C.jsx(XE, { asChild: !0, className: O("cursor-pointer", a == null ? void 0 : a.trigger), children: t }),
2675
2678
  /* @__PURE__ */ C.jsxs(
2676
2679
  YE,
@@ -2740,13 +2743,13 @@ function CA(...t) {
2740
2743
  };
2741
2744
  return n.scopeName = e.scopeName, n;
2742
2745
  }
2743
- var Oc = "rovingFocusGroup.onEntryFocus", wA = { bubbles: !1, cancelable: !0 }, Ll = "RovingFocusGroup", [Ju, Hy, SA] = bf(Ll), [IA, jl] = xA(
2744
- Ll,
2746
+ var Mc = "rovingFocusGroup.onEntryFocus", wA = { bubbles: !1, cancelable: !0 }, Bl = "RovingFocusGroup", [Zu, Hy, SA] = vf(Bl), [IA, Ll] = xA(
2747
+ Bl,
2745
2748
  [SA]
2746
- ), [EA, AA] = IA(Ll), Wy = I.forwardRef(
2747
- (t, e) => /* @__PURE__ */ C.jsx(Ju.Provider, { scope: t.__scopeRovingFocusGroup, children: /* @__PURE__ */ C.jsx(Ju.Slot, { scope: t.__scopeRovingFocusGroup, children: /* @__PURE__ */ C.jsx(TA, { ...t, ref: e }) }) })
2749
+ ), [EA, AA] = IA(Bl), Wy = I.forwardRef(
2750
+ (t, e) => /* @__PURE__ */ C.jsx(Zu.Provider, { scope: t.__scopeRovingFocusGroup, children: /* @__PURE__ */ C.jsx(Zu.Slot, { scope: t.__scopeRovingFocusGroup, children: /* @__PURE__ */ C.jsx(TA, { ...t, ref: e }) }) })
2748
2751
  );
2749
- Wy.displayName = Ll;
2752
+ Wy.displayName = Bl;
2750
2753
  var TA = I.forwardRef((t, e) => {
2751
2754
  const {
2752
2755
  __scopeRovingFocusGroup: n,
@@ -2767,7 +2770,7 @@ var TA = I.forwardRef((t, e) => {
2767
2770
  return I.useEffect(() => {
2768
2771
  const T = f.current;
2769
2772
  if (T)
2770
- return T.addEventListener(Oc, x), () => T.removeEventListener(Oc, x);
2773
+ return T.addEventListener(Mc, x), () => T.removeEventListener(Mc, x);
2771
2774
  }, [x]), /* @__PURE__ */ C.jsx(
2772
2775
  EA,
2773
2776
  {
@@ -2803,7 +2806,7 @@ var TA = I.forwardRef((t, e) => {
2803
2806
  onFocus: _e(t.onFocus, (T) => {
2804
2807
  const R = !y.current;
2805
2808
  if (T.target === T.currentTarget && R && !v) {
2806
- const G = new CustomEvent(Oc, wA);
2809
+ const G = new CustomEvent(Mc, wA);
2807
2810
  if (T.currentTarget.dispatchEvent(G), !G.defaultPrevented) {
2808
2811
  const X = w().filter((F) => F.focusable), z = X.find((F) => F.active), J = X.find((F) => F.id === m), Y = [z, J, ...X].filter(
2809
2812
  Boolean
@@ -2831,7 +2834,7 @@ var TA = I.forwardRef((t, e) => {
2831
2834
  if (r)
2832
2835
  return f(), () => p();
2833
2836
  }, [r, f, p]), /* @__PURE__ */ C.jsx(
2834
- Ju.ItemSlot,
2837
+ Zu.ItemSlot,
2835
2838
  {
2836
2839
  scope: n,
2837
2840
  id: l,
@@ -2902,8 +2905,8 @@ function PA(t, e) {
2902
2905
  return t.map((n, r) => t[(e + r) % t.length]);
2903
2906
  }
2904
2907
  var Zy = Wy, Jy = Xy, Df = "Tabs", [RA, q5] = Un(Df, [
2905
- jl
2906
- ]), Uy = jl(), [DA, Nf] = RA(Df), Ky = I.forwardRef(
2908
+ Ll
2909
+ ]), Uy = Ll(), [DA, Nf] = RA(Df), Ky = I.forwardRef(
2907
2910
  (t, e) => {
2908
2911
  const {
2909
2912
  __scopeTabs: n,
@@ -3070,13 +3073,13 @@ const Q5 = ({ renderContent: t, defaultActiveTabId: e = "1", value: n, onChangeT
3070
3073
  }
3071
3074
  );
3072
3075
  }, Lh = /* @__PURE__ */ new Set();
3073
- function Gl(t, e, n) {
3076
+ function jl(t, e, n) {
3074
3077
  t || Lh.has(e) || (console.warn(e), Lh.add(e));
3075
3078
  }
3076
3079
  function BA(t) {
3077
3080
  if (typeof Proxy > "u")
3078
3081
  return t;
3079
- const e = /* @__PURE__ */ new Map(), n = (...r) => (process.env.NODE_ENV !== "production" && Gl(!1, "motion() is deprecated. Use motion.create() instead."), t(...r));
3082
+ const e = /* @__PURE__ */ new Map(), n = (...r) => (process.env.NODE_ENV !== "production" && jl(!1, "motion() is deprecated. Use motion.create() instead."), t(...r));
3080
3083
  return new Proxy(n, {
3081
3084
  /**
3082
3085
  * Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc.
@@ -3086,10 +3089,10 @@ function BA(t) {
3086
3089
  get: (r, i) => i === "create" ? t : (e.has(i) || e.set(i, t(i)), e.get(i))
3087
3090
  });
3088
3091
  }
3089
- function zl(t) {
3092
+ function Gl(t) {
3090
3093
  return t !== null && typeof t == "object" && typeof t.start == "function";
3091
3094
  }
3092
- const Uu = (t) => Array.isArray(t);
3095
+ const Ju = (t) => Array.isArray(t);
3093
3096
  function s0(t, e) {
3094
3097
  if (!Array.isArray(e))
3095
3098
  return !1;
@@ -3121,7 +3124,7 @@ function Ff(t, e, n, r) {
3121
3124
  }
3122
3125
  return e;
3123
3126
  }
3124
- function _l(t, e, n) {
3127
+ function zl(t, e, n) {
3125
3128
  const r = t.getProps();
3126
3129
  return Ff(r, e, n !== void 0 ? n : r.custom, t);
3127
3130
  }
@@ -3176,7 +3179,7 @@ const HA = {
3176
3179
  skipAnimations: !1,
3177
3180
  useManualTiming: !1
3178
3181
  }, WA = (t) => t !== null;
3179
- function Hl(t, { repeat: e, repeatType: n = "loop" }, r) {
3182
+ function _l(t, { repeat: e, repeatType: n = "loop" }, r) {
3180
3183
  const i = t.filter(WA), o = e && n !== "loop" && e % 2 === 1 ? 0 : i.length - 1;
3181
3184
  return !o || r === void 0 ? i[o] : r;
3182
3185
  }
@@ -3253,7 +3256,7 @@ function a0(t, e) {
3253
3256
  s[Ps[b]].cancel(v);
3254
3257
  }, state: i, steps: s };
3255
3258
  }
3256
- const { schedule: He, cancel: xr, state: gt, steps: Pc } = a0(typeof requestAnimationFrame < "u" ? requestAnimationFrame : xt, !0), l0 = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, YA = 1e-7, ZA = 12;
3259
+ const { schedule: He, cancel: xr, state: gt, steps: Oc } = a0(typeof requestAnimationFrame < "u" ? requestAnimationFrame : xt, !0), l0 = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, YA = 1e-7, ZA = 12;
3257
3260
  function JA(t, e, n, r, i) {
3258
3261
  let o, s, a = 0;
3259
3262
  do
@@ -3367,9 +3370,9 @@ const C0 = (t) => (e) => e.test(t), lT = {
3367
3370
  test: (t) => t === "auto",
3368
3371
  parse: (t) => t
3369
3372
  }, w0 = [to, ve, kn, nr, rT, nT, lT], Wh = (t) => w0.find(C0(t)), Jr = /* @__PURE__ */ new Set();
3370
- let Ku = !1, qu = !1;
3373
+ let Uu = !1, Ku = !1;
3371
3374
  function S0() {
3372
- if (qu) {
3375
+ if (Ku) {
3373
3376
  const t = Array.from(Jr).filter((r) => r.needsMeasurement), e = new Set(t.map((r) => r.element)), n = /* @__PURE__ */ new Map();
3374
3377
  e.forEach((r) => {
3375
3378
  const i = aT(r);
@@ -3385,11 +3388,11 @@ function S0() {
3385
3388
  r.suspendedScrollY !== void 0 && window.scrollTo(0, r.suspendedScrollY);
3386
3389
  });
3387
3390
  }
3388
- qu = !1, Ku = !1, Jr.forEach((t) => t.complete()), Jr.clear();
3391
+ Ku = !1, Uu = !1, Jr.forEach((t) => t.complete()), Jr.clear();
3389
3392
  }
3390
3393
  function I0() {
3391
3394
  Jr.forEach((t) => {
3392
- t.readKeyframes(), t.needsMeasurement && (qu = !0);
3395
+ t.readKeyframes(), t.needsMeasurement && (Ku = !0);
3393
3396
  });
3394
3397
  }
3395
3398
  function cT() {
@@ -3400,7 +3403,7 @@ class _f {
3400
3403
  this.isComplete = !1, this.isAsync = !1, this.needsMeasurement = !1, this.isScheduled = !1, this.unresolvedKeyframes = [...e], this.onComplete = n, this.name = r, this.motionValue = i, this.element = o, this.isAsync = s;
3401
3404
  }
3402
3405
  scheduleResolve() {
3403
- this.isScheduled = !0, this.isAsync ? (Jr.add(this), Ku || (Ku = !0, He.read(I0), He.resolveKeyframes(S0))) : (this.readKeyframes(), this.complete());
3406
+ this.isScheduled = !0, this.isAsync ? (Jr.add(this), Uu || (Uu = !0, He.read(I0), He.resolveKeyframes(S0))) : (this.readKeyframes(), this.complete());
3404
3407
  }
3405
3408
  readKeyframes() {
3406
3409
  const { unresolvedKeyframes: e, name: n, element: r, motionValue: i } = this;
@@ -3450,13 +3453,13 @@ const dT = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
3450
3453
  [n]: parseFloat(s),
3451
3454
  alpha: a !== void 0 ? parseFloat(a) : 1
3452
3455
  };
3453
- }, fT = (t) => Cr(0, 255, t), Rc = {
3456
+ }, fT = (t) => Cr(0, 255, t), Pc = {
3454
3457
  ...to,
3455
3458
  transform: (t) => Math.round(fT(t))
3456
3459
  }, _r = {
3457
3460
  test: /* @__PURE__ */ Wf("rgb", "red"),
3458
3461
  parse: /* @__PURE__ */ E0("red", "green", "blue"),
3459
- transform: ({ red: t, green: e, blue: n, alpha: r = 1 }) => "rgba(" + Rc.transform(t) + ", " + Rc.transform(e) + ", " + Rc.transform(n) + ", " + Ro($o.transform(r)) + ")"
3462
+ transform: ({ red: t, green: e, blue: n, alpha: r = 1 }) => "rgba(" + Pc.transform(t) + ", " + Pc.transform(e) + ", " + Pc.transform(n) + ", " + Ro($o.transform(r)) + ")"
3460
3463
  };
3461
3464
  function pT(t) {
3462
3465
  let e = "", n = "", r = "", i = "";
@@ -3467,7 +3470,7 @@ function pT(t) {
3467
3470
  alpha: i ? parseInt(i, 16) / 255 : 1
3468
3471
  };
3469
3472
  }
3470
- const Qu = {
3473
+ const qu = {
3471
3474
  test: /* @__PURE__ */ Wf("#"),
3472
3475
  parse: pT,
3473
3476
  transform: _r.transform
@@ -3476,8 +3479,8 @@ const Qu = {
3476
3479
  parse: /* @__PURE__ */ E0("hue", "saturation", "lightness"),
3477
3480
  transform: ({ hue: t, saturation: e, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(t) + ", " + kn.transform(Ro(e)) + ", " + kn.transform(Ro(n)) + ", " + Ro($o.transform(r)) + ")"
3478
3481
  }, It = {
3479
- test: (t) => _r.test(t) || Qu.test(t) || Mi.test(t),
3480
- parse: (t) => _r.test(t) ? _r.parse(t) : Mi.test(t) ? Mi.parse(t) : Qu.parse(t),
3482
+ test: (t) => _r.test(t) || qu.test(t) || Mi.test(t),
3483
+ parse: (t) => _r.test(t) ? _r.parse(t) : Mi.test(t) ? Mi.parse(t) : qu.parse(t),
3481
3484
  transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? _r.transform(t) : Mi.transform(t)
3482
3485
  }, hT = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
3483
3486
  function mT(t) {
@@ -3532,7 +3535,7 @@ function wT(t) {
3532
3535
  let o = CT.has(e) ? 1 : 0;
3533
3536
  return r !== n && (o *= 100), e + "(" + o + i + ")";
3534
3537
  }
3535
- const ST = /\b([a-z-]*)\(.*?\)/gu, ed = {
3538
+ const ST = /\b([a-z-]*)\(.*?\)/gu, Qu = {
3536
3539
  ...wr,
3537
3540
  getAnimatableNone: (t) => {
3538
3541
  const e = t.match(ST);
@@ -3625,12 +3628,12 @@ const ST = /\b([a-z-]*)\(.*?\)/gu, ed = {
3625
3628
  borderRightColor: It,
3626
3629
  borderBottomColor: It,
3627
3630
  borderLeftColor: It,
3628
- filter: ed,
3629
- WebkitFilter: ed
3631
+ filter: Qu,
3632
+ WebkitFilter: Qu
3630
3633
  }, Xf = (t) => AT[t];
3631
3634
  function O0(t, e) {
3632
3635
  let n = Xf(t);
3633
- return n !== ed && (n = wr), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
3636
+ return n !== Qu && (n = wr), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
3634
3637
  }
3635
3638
  const TT = /* @__PURE__ */ new Set(["auto", "none", "0"]);
3636
3639
  function kT(t, e, n) {
@@ -3776,7 +3779,7 @@ class R0 {
3776
3779
  if (s)
3777
3780
  this.options.duration = 0;
3778
3781
  else {
3779
- l == null || l(Hl(e, this.options, n)), a == null || a(), this.resolveFinishedPromise();
3782
+ l == null || l(_l(e, this.options, n)), a == null || a(), this.resolveFinishedPromise();
3780
3783
  return;
3781
3784
  }
3782
3785
  const u = this.initPlayback(e, n);
@@ -3813,20 +3816,20 @@ function N0(t, e, n) {
3813
3816
  const r = Math.max(e - DT, 0);
3814
3817
  return D0(n - t(r), e - r);
3815
3818
  }
3816
- const Dc = 1e-3, NT = 0.01, Zh = 10, FT = 0.05, VT = 1;
3819
+ const Rc = 1e-3, NT = 0.01, Zh = 10, FT = 0.05, VT = 1;
3817
3820
  function BT({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: r = 1 }) {
3818
3821
  let i, o;
3819
3822
  eo(t <= Tn(Zh), "Spring duration must be 10 seconds or less");
3820
3823
  let s = 1 - e;
3821
3824
  s = Cr(FT, VT, s), t = Cr(NT, Zh, _n(t)), s < 1 ? (i = (c) => {
3822
- const u = c * s, d = u * t, f = u - n, p = td(c, s), h = Math.exp(-d);
3823
- return Dc - f / p * h;
3825
+ const u = c * s, d = u * t, f = u - n, p = ed(c, s), h = Math.exp(-d);
3826
+ return Rc - f / p * h;
3824
3827
  }, o = (c) => {
3825
- const d = c * s * t, f = d * n + n, p = Math.pow(s, 2) * Math.pow(c, 2) * t, h = Math.exp(-d), m = td(Math.pow(c, 2), s);
3826
- return (-i(c) + Dc > 0 ? -1 : 1) * ((f - p) * h) / m;
3828
+ const d = c * s * t, f = d * n + n, p = Math.pow(s, 2) * Math.pow(c, 2) * t, h = Math.exp(-d), m = ed(Math.pow(c, 2), s);
3829
+ return (-i(c) + Rc > 0 ? -1 : 1) * ((f - p) * h) / m;
3827
3830
  }) : (i = (c) => {
3828
3831
  const u = Math.exp(-c * t), d = (c - n) * t + 1;
3829
- return -Dc + u * d;
3832
+ return -Rc + u * d;
3830
3833
  }, o = (c) => {
3831
3834
  const u = Math.exp(-c * t), d = (n - c) * (t * t);
3832
3835
  return u * d;
@@ -3854,7 +3857,7 @@ function jT(t, e, n) {
3854
3857
  r = r - t(r) / e(r);
3855
3858
  return r;
3856
3859
  }
3857
- function td(t, e) {
3860
+ function ed(t, e) {
3858
3861
  return t * Math.sqrt(1 - e * e);
3859
3862
  }
3860
3863
  const GT = ["duration", "bounce"], zT = ["stiffness", "damping", "mass"];
@@ -3888,7 +3891,7 @@ function F0({ keyframes: t, restDelta: e, restSpeed: n, ...r }) {
3888
3891
  n || (n = v ? 0.01 : 2), e || (e = v ? 5e-3 : 0.5);
3889
3892
  let b;
3890
3893
  if (h < 1) {
3891
- const x = td(g, h);
3894
+ const x = ed(g, h);
3892
3895
  b = (w) => {
3893
3896
  const y = Math.exp(-h * g * w);
3894
3897
  return o - y * ((p + h * g * m) / x * Math.sin(x * w) + m * Math.cos(x * w));
@@ -3974,7 +3977,7 @@ const HT = /* @__PURE__ */ ys(0.42, 0, 1, 1), WT = /* @__PURE__ */ ys(0, 0, 0.58
3974
3977
  const r = e - t;
3975
3978
  return r === 0 ? 1 : (n - t) / r;
3976
3979
  }, Ue = (t, e, n) => t + (e - t) * n;
3977
- function Nc(t, e, n) {
3980
+ function Dc(t, e, n) {
3978
3981
  return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? t + (e - t) * 6 * n : n < 1 / 2 ? e : n < 2 / 3 ? t + (e - t) * (2 / 3 - n) * 6 : t;
3979
3982
  }
3980
3983
  function YT({ hue: t, saturation: e, lightness: n, alpha: r }) {
@@ -3984,7 +3987,7 @@ function YT({ hue: t, saturation: e, lightness: n, alpha: r }) {
3984
3987
  i = o = s = n;
3985
3988
  else {
3986
3989
  const a = n < 0.5 ? n * (1 + e) : n + e - n * e, l = 2 * n - a;
3987
- i = Nc(l, a, t + 1 / 3), o = Nc(l, a, t), s = Nc(l, a, t - 1 / 3);
3990
+ i = Dc(l, a, t + 1 / 3), o = Dc(l, a, t), s = Dc(l, a, t - 1 / 3);
3988
3991
  }
3989
3992
  return {
3990
3993
  red: Math.round(i * 255),
@@ -3996,10 +3999,10 @@ function YT({ hue: t, saturation: e, lightness: n, alpha: r }) {
3996
3999
  function ya(t, e) {
3997
4000
  return (n) => n > 0 ? e : t;
3998
4001
  }
3999
- const Fc = (t, e, n) => {
4002
+ const Nc = (t, e, n) => {
4000
4003
  const r = t * t, i = n * (e * e - r) + r;
4001
4004
  return i < 0 ? 0 : Math.sqrt(i);
4002
- }, ZT = [Qu, _r, Mi], JT = (t) => ZT.find((e) => e.test(t));
4005
+ }, ZT = [qu, _r, Mi], JT = (t) => ZT.find((e) => e.test(t));
4003
4006
  function Qh(t) {
4004
4007
  const e = JT(t);
4005
4008
  if (eo(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
@@ -4012,10 +4015,10 @@ const em = (t, e) => {
4012
4015
  if (!n || !r)
4013
4016
  return ya(t, e);
4014
4017
  const i = { ...n };
4015
- return (o) => (i.red = Fc(n.red, r.red, o), i.green = Fc(n.green, r.green, o), i.blue = Fc(n.blue, r.blue, o), i.alpha = Ue(n.alpha, r.alpha, o), _r.transform(i));
4016
- }, nd = /* @__PURE__ */ new Set(["none", "hidden"]);
4018
+ return (o) => (i.red = Nc(n.red, r.red, o), i.green = Nc(n.green, r.green, o), i.blue = Nc(n.blue, r.blue, o), i.alpha = Ue(n.alpha, r.alpha, o), _r.transform(i));
4019
+ }, td = /* @__PURE__ */ new Set(["none", "hidden"]);
4017
4020
  function UT(t, e) {
4018
- return nd.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
4021
+ return td.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
4019
4022
  }
4020
4023
  function KT(t, e) {
4021
4024
  return (n) => Ue(t, e, n);
@@ -4052,7 +4055,7 @@ function QT(t, e) {
4052
4055
  }
4053
4056
  const ek = (t, e) => {
4054
4057
  const n = wr.createTransformer(e), r = Xo(t), i = Xo(e);
4055
- return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? nd.has(t) && !i.values.length || nd.has(e) && !r.values.length ? UT(t, e) : Hn(B0(QT(r, i), i.values), n) : (eo(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), ya(t, e));
4058
+ return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? td.has(t) && !i.values.length || td.has(e) && !r.values.length ? UT(t, e) : Hn(B0(QT(r, i), i.values), n) : (eo(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), ya(t, e));
4056
4059
  };
4057
4060
  function L0(t, e, n) {
4058
4061
  return typeof t == "number" && typeof e == "number" && typeof n == "number" ? Ue(t, e, n) : Jf(t)(t, e);
@@ -4210,7 +4213,7 @@ class Uf extends R0 {
4210
4213
  let { done: E } = y;
4211
4214
  !b && c !== null && (E = this.speed >= 0 ? this.currentTime >= u : this.currentTime <= 0);
4212
4215
  const A = this.holdTime === null && (this.state === "finished" || this.state === "running" && E);
4213
- return A && i !== void 0 && (y.value = Hl(l, this.options, i)), g && g(y.value), A && this.finish(), y;
4216
+ return A && i !== void 0 && (y.value = _l(l, this.options, i)), g && g(y.value), A && this.finish(), y;
4214
4217
  }
4215
4218
  get duration() {
4216
4219
  const { resolved: e } = this;
@@ -4308,9 +4311,9 @@ const Ca = /* @__PURE__ */ mk(() => {
4308
4311
  return !0;
4309
4312
  }, "linearEasing");
4310
4313
  function j0(t) {
4311
- return !!(typeof t == "function" && Ca() || !t || typeof t == "string" && (t in rd || Ca()) || Zf(t) || Array.isArray(t) && t.every(j0));
4314
+ return !!(typeof t == "function" && Ca() || !t || typeof t == "string" && (t in nd || Ca()) || Zf(t) || Array.isArray(t) && t.every(j0));
4312
4315
  }
4313
- const wo = ([t, e, n, r]) => `cubic-bezier(${t}, ${e}, ${n}, ${r})`, rd = {
4316
+ const wo = ([t, e, n, r]) => `cubic-bezier(${t}, ${e}, ${n}, ${r})`, nd = {
4314
4317
  linear: "linear",
4315
4318
  ease: "ease",
4316
4319
  easeIn: "ease-in",
@@ -4323,7 +4326,7 @@ const wo = ([t, e, n, r]) => `cubic-bezier(${t}, ${e}, ${n}, ${r})`, rd = {
4323
4326
  };
4324
4327
  function G0(t, e) {
4325
4328
  if (t)
4326
- return typeof t == "function" && Ca() ? pk(t, e) : Zf(t) ? wo(t) : Array.isArray(t) ? t.map((n) => G0(n, e) || rd.easeOut) : rd[t];
4329
+ return typeof t == "function" && Ca() ? pk(t, e) : Zf(t) ? wo(t) : Array.isArray(t) ? t.map((n) => G0(n, e) || nd.easeOut) : nd[t];
4327
4330
  }
4328
4331
  function gk(t, e, n, { delay: r = 0, duration: i = 300, repeat: o = 0, repeatType: s = "loop", ease: a = "easeInOut", times: l } = {}) {
4329
4332
  const c = { [e]: n };
@@ -4391,7 +4394,7 @@ class rm extends R0 {
4391
4394
  const d = gk(l.owner.current, c, e, { ...this.options, duration: i, times: o, ease: s });
4392
4395
  return d.startTime = u ?? this.calcStartTime(), this.pendingTimeline ? (nm(d, this.pendingTimeline), this.pendingTimeline = void 0) : d.onfinish = () => {
4393
4396
  const { onComplete: f } = this.options;
4394
- l.set(Hl(e, this.options, n)), f && f(), this.cancel(), this.resolveFinishedPromise();
4397
+ l.set(_l(e, this.options, n)), f && f(), this.cancel(), this.resolveFinishedPromise();
4395
4398
  }, {
4396
4399
  animation: d,
4397
4400
  duration: i,
@@ -4619,14 +4622,14 @@ const qf = (t, e, n, r = {}, i, o) => (s) => {
4619
4622
  }), u.duration && (u.duration = Tn(u.duration)), u.repeatDelay && (u.repeatDelay = Tn(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
4620
4623
  let d = !1;
4621
4624
  if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (u.duration = 0, u.delay === 0 && (d = !0)), d && !o && e.get() !== void 0) {
4622
- const f = Hl(u.keyframes, a);
4625
+ const f = _l(u.keyframes, a);
4623
4626
  if (f !== void 0)
4624
4627
  return He.update(() => {
4625
4628
  u.onUpdate(f), u.onComplete();
4626
4629
  }), new Sk([]);
4627
4630
  }
4628
4631
  return !o && rm.supports(u) ? new rm(u) : new Uf(u);
4629
- }, Ek = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), Ak = (t) => Uu(t) ? t[t.length - 1] || 0 : t;
4632
+ }, Ek = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), Ak = (t) => Ju(t) ? t[t.length - 1] || 0 : t;
4630
4633
  function Qf(t, e) {
4631
4634
  t.indexOf(e) === -1 && t.push(e);
4632
4635
  }
@@ -4722,7 +4725,7 @@ class kk {
4722
4725
  * @deprecated
4723
4726
  */
4724
4727
  onChange(e) {
4725
- return process.env.NODE_ENV !== "production" && Gl(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", e);
4728
+ return process.env.NODE_ENV !== "production" && jl(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", e);
4726
4729
  }
4727
4730
  on(e, n) {
4728
4731
  this.events[e] || (this.events[e] = new tp());
@@ -4861,7 +4864,7 @@ function Mk(t, e, n) {
4861
4864
  t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, Yo(n));
4862
4865
  }
4863
4866
  function Ok(t, e) {
4864
- const n = _l(t, e);
4867
+ const n = zl(t, e);
4865
4868
  let { transitionEnd: r = {}, transition: i = {}, ...o } = n || {};
4866
4869
  o = { ...o, ...r };
4867
4870
  for (const s in o) {
@@ -4877,7 +4880,7 @@ const At = (t) => !!(t && t.getVelocity);
4877
4880
  function Rk(t) {
4878
4881
  return !!(At(t) && t.add);
4879
4882
  }
4880
- function id(t, e) {
4883
+ function rd(t, e) {
4881
4884
  const n = t.getValue("willChange");
4882
4885
  if (Rk(n))
4883
4886
  return n.add(e);
@@ -4907,7 +4910,7 @@ function W0(t, e, { delay: n = 0, transitionOverride: r, type: i } = {}) {
4907
4910
  b !== null && (h.startTime = b, m = !0);
4908
4911
  }
4909
4912
  }
4910
- id(t, d), f.start(qf(d, f, p, t.shouldReduceMotion && pi.has(d) ? { type: !1 } : h, t, m));
4913
+ rd(t, d), f.start(qf(d, f, p, t.shouldReduceMotion && pi.has(d) ? { type: !1 } : h, t, m));
4911
4914
  const g = f.animation;
4912
4915
  g && c.push(g);
4913
4916
  }
@@ -4917,9 +4920,9 @@ function W0(t, e, { delay: n = 0, transitionOverride: r, type: i } = {}) {
4917
4920
  });
4918
4921
  }), c;
4919
4922
  }
4920
- function od(t, e, n = {}) {
4923
+ function id(t, e, n = {}) {
4921
4924
  var r;
4922
- const i = _l(t, e, n.type === "exit" ? (r = t.presenceContext) === null || r === void 0 ? void 0 : r.custom : void 0);
4925
+ const i = zl(t, e, n.type === "exit" ? (r = t.presenceContext) === null || r === void 0 ? void 0 : r.custom : void 0);
4923
4926
  let { transition: o = t.getDefaultTransition() || {} } = i || {};
4924
4927
  n.transitionOverride && (o = n.transitionOverride);
4925
4928
  const s = i ? () => Promise.all(W0(t, i, n)) : () => Promise.resolve(), a = t.variantChildren && t.variantChildren.size ? (c = 0) => {
@@ -4935,7 +4938,7 @@ function od(t, e, n = {}) {
4935
4938
  function Nk(t, e, n = 0, r = 0, i = 1, o) {
4936
4939
  const s = [], a = (t.variantChildren.size - 1) * r, l = i === 1 ? (c = 0) => c * r : (c = 0) => a - c * r;
4937
4940
  return Array.from(t.variantChildren).sort(Fk).forEach((c, u) => {
4938
- c.notify("AnimationStart", e), s.push(od(c, e, {
4941
+ c.notify("AnimationStart", e), s.push(id(c, e, {
4939
4942
  ...o,
4940
4943
  delay: n + l(u)
4941
4944
  }).then(() => c.notify("AnimationComplete", e)));
@@ -4948,12 +4951,12 @@ function Vk(t, e, n = {}) {
4948
4951
  t.notify("AnimationStart", e);
4949
4952
  let r;
4950
4953
  if (Array.isArray(e)) {
4951
- const i = e.map((o) => od(t, o, n));
4954
+ const i = e.map((o) => id(t, o, n));
4952
4955
  r = Promise.all(i);
4953
4956
  } else if (typeof e == "string")
4954
- r = od(t, e, n);
4957
+ r = id(t, e, n);
4955
4958
  else {
4956
- const i = typeof e == "function" ? _l(t, e, n.custom) : e;
4959
+ const i = typeof e == "function" ? zl(t, e, n.custom) : e;
4957
4960
  r = Promise.all(W0(t, i, n));
4958
4961
  }
4959
4962
  return r.then(() => {
@@ -4983,7 +4986,7 @@ function zk(t) {
4983
4986
  let e = Gk(t), n = om(), r = !0;
4984
4987
  const i = (l) => (c, u) => {
4985
4988
  var d;
4986
- const f = _l(t, u, l === "exit" ? (d = t.presenceContext) === null || d === void 0 ? void 0 : d.custom : void 0);
4989
+ const f = zl(t, u, l === "exit" ? (d = t.presenceContext) === null || d === void 0 ? void 0 : d.custom : void 0);
4987
4990
  if (f) {
4988
4991
  const { transition: p, transitionEnd: h, ...m } = f;
4989
4992
  c = { ...c, ...m, ...h };
@@ -5003,7 +5006,7 @@ function zk(t) {
5003
5006
  if (E && r && t.manuallyAnimateOnMount && (E = !1), b.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
5004
5007
  !b.isActive && y === null || // If we didn't and don't have any defined prop for this animation type
5005
5008
  !x && !b.prevProp || // Or if the prop doesn't define an animation
5006
- zl(x) || typeof x == "boolean")
5009
+ Gl(x) || typeof x == "boolean")
5007
5010
  continue;
5008
5011
  const A = _k(b.prevProp, x);
5009
5012
  let T = A || // If we're making this variant active, we want to always make it active
@@ -5025,7 +5028,7 @@ function zk(t) {
5025
5028
  if (p.hasOwnProperty(B))
5026
5029
  continue;
5027
5030
  let P = !1;
5028
- Uu(Q) && Uu(re) ? P = !s0(Q, re) : P = Q !== re, P ? Q != null ? L(B) : f.add(B) : Q !== void 0 && f.has(B) ? L(B) : b.protectedKeys[B] = !0;
5031
+ Ju(Q) && Ju(re) ? P = !s0(Q, re) : P = Q !== re, P ? Q != null ? L(B) : f.add(B) : Q !== void 0 && f.has(B) ? L(B) : b.protectedKeys[B] = !0;
5029
5032
  }
5030
5033
  b.prevProp = x, b.prevResolvedValues = X, b.isActive && (p = { ...p, ...X }), r && t.blockInitialAnimation && (T = !1), T && (!(E && A) || R) && d.push(...G.map((B) => ({
5031
5034
  animation: B,
@@ -5105,7 +5108,7 @@ class Hk extends Ir {
5105
5108
  }
5106
5109
  updateAnimationControlsSubscription() {
5107
5110
  const { animate: e } = this.node.getProps();
5108
- zl(e) && (this.unmountControls = e.subscribe(this.node));
5111
+ Gl(e) && (this.unmountControls = e.subscribe(this.node));
5109
5112
  }
5110
5113
  /**
5111
5114
  * Subscribe any provided AnimationControls to the component's VisualElement
@@ -5151,7 +5154,7 @@ const Xk = {
5151
5154
  Feature: $k
5152
5155
  }
5153
5156
  }, X0 = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1;
5154
- function Wl(t, e = "page") {
5157
+ function Hl(t, e = "page") {
5155
5158
  return {
5156
5159
  point: {
5157
5160
  x: t[`${e}X`],
@@ -5159,7 +5162,7 @@ function Wl(t, e = "page") {
5159
5162
  }
5160
5163
  };
5161
5164
  }
5162
- const Yk = (t) => (e) => X0(e) && t(e, Wl(e));
5165
+ const Yk = (t) => (e) => X0(e) && t(e, Hl(e));
5163
5166
  function zn(t, e, n, r = { passive: !0 }) {
5164
5167
  return t.addEventListener(e, n, r), () => t.removeEventListener(e, n);
5165
5168
  }
@@ -5176,7 +5179,7 @@ class Y0 {
5176
5179
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
5177
5180
  if (!(this.lastMoveEvent && this.lastMoveEventInfo))
5178
5181
  return;
5179
- const d = Bc(this.lastMoveEventInfo, this.history), f = this.startEvent !== null, p = Zk(d.offset, { x: 0, y: 0 }) >= 3;
5182
+ const d = Vc(this.lastMoveEventInfo, this.history), f = this.startEvent !== null, p = Zk(d.offset, { x: 0, y: 0 }) >= 3;
5180
5183
  if (!f && !p)
5181
5184
  return;
5182
5185
  const { point: h } = d, { timestamp: m } = gt;
@@ -5184,21 +5187,21 @@ class Y0 {
5184
5187
  const { onStart: g, onMove: v } = this.handlers;
5185
5188
  f || (g && g(this.lastMoveEvent, d), this.startEvent = this.lastMoveEvent), v && v(this.lastMoveEvent, d);
5186
5189
  }, this.handlePointerMove = (d, f) => {
5187
- this.lastMoveEvent = d, this.lastMoveEventInfo = Vc(f, this.transformPagePoint), He.update(this.updatePoint, !0);
5190
+ this.lastMoveEvent = d, this.lastMoveEventInfo = Fc(f, this.transformPagePoint), He.update(this.updatePoint, !0);
5188
5191
  }, this.handlePointerUp = (d, f) => {
5189
5192
  this.end();
5190
5193
  const { onEnd: p, onSessionEnd: h, resumeAnimation: m } = this.handlers;
5191
5194
  if (this.dragSnapToOrigin && m && m(), !(this.lastMoveEvent && this.lastMoveEventInfo))
5192
5195
  return;
5193
- const g = Bc(d.type === "pointercancel" ? this.lastMoveEventInfo : Vc(f, this.transformPagePoint), this.history);
5196
+ const g = Vc(d.type === "pointercancel" ? this.lastMoveEventInfo : Fc(f, this.transformPagePoint), this.history);
5194
5197
  this.startEvent && p && p(d, g), h && h(d, g);
5195
5198
  }, !X0(e))
5196
5199
  return;
5197
5200
  this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = r, this.contextWindow = i || window;
5198
- const s = Wl(e), a = Vc(s, this.transformPagePoint), { point: l } = a, { timestamp: c } = gt;
5201
+ const s = Hl(e), a = Fc(s, this.transformPagePoint), { point: l } = a, { timestamp: c } = gt;
5199
5202
  this.history = [{ ...l, timestamp: c }];
5200
5203
  const { onSessionStart: u } = n;
5201
- u && u(e, Bc(a, this.history)), this.removeListeners = Hn(Wn(this.contextWindow, "pointermove", this.handlePointerMove), Wn(this.contextWindow, "pointerup", this.handlePointerUp), Wn(this.contextWindow, "pointercancel", this.handlePointerUp));
5204
+ u && u(e, Vc(a, this.history)), this.removeListeners = Hn(Wn(this.contextWindow, "pointermove", this.handlePointerMove), Wn(this.contextWindow, "pointerup", this.handlePointerUp), Wn(this.contextWindow, "pointercancel", this.handlePointerUp));
5202
5205
  }
5203
5206
  updateHandlers(e) {
5204
5207
  this.handlers = e;
@@ -5207,13 +5210,13 @@ class Y0 {
5207
5210
  this.removeListeners && this.removeListeners(), xr(this.updatePoint);
5208
5211
  }
5209
5212
  }
5210
- function Vc(t, e) {
5213
+ function Fc(t, e) {
5211
5214
  return e ? { point: e(t.point) } : t;
5212
5215
  }
5213
5216
  function am(t, e) {
5214
5217
  return { x: t.x - e.x, y: t.y - e.y };
5215
5218
  }
5216
- function Bc({ point: t }, e) {
5219
+ function Vc({ point: t }, e) {
5217
5220
  return {
5218
5221
  point: t,
5219
5222
  delta: am(t, Z0(e)),
@@ -5335,9 +5338,9 @@ function aM(t, e) {
5335
5338
  const n = {};
5336
5339
  return e.min !== void 0 && (n.min = e.min - t.min), e.max !== void 0 && (n.max = e.max - t.min), n;
5337
5340
  }
5338
- const sd = 0.35;
5339
- function lM(t = sd) {
5340
- return t === !1 ? t = 0 : t === !0 && (t = sd), {
5341
+ const od = 0.35;
5342
+ function lM(t = od) {
5343
+ return t === !1 ? t = 0 : t === !0 && (t = od), {
5341
5344
  x: mm(t, "left", "right"),
5342
5345
  y: mm(t, "top", "bottom")
5343
5346
  };
@@ -5386,14 +5389,14 @@ function uM(t, e) {
5386
5389
  right: r.x
5387
5390
  };
5388
5391
  }
5389
- function Lc(t) {
5392
+ function Bc(t) {
5390
5393
  return t === void 0 || t === 1;
5391
5394
  }
5392
- function ad({ scale: t, scaleX: e, scaleY: n }) {
5393
- return !Lc(t) || !Lc(e) || !Lc(n);
5395
+ function sd({ scale: t, scaleX: e, scaleY: n }) {
5396
+ return !Bc(t) || !Bc(e) || !Bc(n);
5394
5397
  }
5395
5398
  function Dr(t) {
5396
- return ad(t) || tx(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
5399
+ return sd(t) || tx(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
5397
5400
  }
5398
5401
  function tx(t) {
5399
5402
  return ym(t.x) || ym(t.y);
@@ -5408,11 +5411,11 @@ function Sa(t, e, n) {
5408
5411
  function xm(t, e, n, r, i) {
5409
5412
  return i !== void 0 && (t = Sa(t, i, r)), Sa(t, n, r) + e;
5410
5413
  }
5411
- function ld(t, e = 0, n = 1, r, i) {
5414
+ function ad(t, e = 0, n = 1, r, i) {
5412
5415
  t.min = xm(t.min, e, n, r, i), t.max = xm(t.max, e, n, r, i);
5413
5416
  }
5414
5417
  function nx(t, { x: e, y: n }) {
5415
- ld(t.x, e.translate, e.scale, e.originPoint), ld(t.y, n.translate, n.scale, n.originPoint);
5418
+ ad(t.x, e.translate, e.scale, e.originPoint), ad(t.y, n.translate, n.scale, n.originPoint);
5416
5419
  }
5417
5420
  const Cm = 0.999999999999, wm = 1.0000000000001;
5418
5421
  function dM(t, e, n, r = !1) {
@@ -5436,7 +5439,7 @@ function Ri(t, e) {
5436
5439
  }
5437
5440
  function Sm(t, e, n, r, i = 0.5) {
5438
5441
  const o = Ue(t.min, t.max, i);
5439
- ld(t, e, n, o, r);
5442
+ ad(t, e, n, o, r);
5440
5443
  }
5441
5444
  function Di(t, e) {
5442
5445
  Sm(t.x, e.x, e.scaleX, e.scale, e.originX), Sm(t.y, e.y, e.scaleY, e.scale, e.originY);
@@ -5459,7 +5462,7 @@ class hM {
5459
5462
  return;
5460
5463
  const i = (u) => {
5461
5464
  const { dragSnapToOrigin: d } = this.getProps();
5462
- d ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(Wl(u, "page").point);
5465
+ d ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(Hl(u, "page").point);
5463
5466
  }, o = (u, d) => {
5464
5467
  const { drag: f, dragPropagation: p, onDragStart: h } = this.getProps();
5465
5468
  if (f && !p && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = U0(f), !this.openGlobalLock))
@@ -5474,7 +5477,7 @@ class hM {
5474
5477
  }
5475
5478
  }
5476
5479
  this.originPoint[g] = v;
5477
- }), h && He.postRender(() => h(u, d)), id(this.visualElement, "transform");
5480
+ }), h && He.postRender(() => h(u, d)), rd(this.visualElement, "transform");
5478
5481
  const { animationState: m } = this.visualElement;
5479
5482
  m && m.setActive("whileDrag", !0);
5480
5483
  }, s = (u, d) => {
@@ -5574,7 +5577,7 @@ class hM {
5574
5577
  }
5575
5578
  startAxisValueAnimation(e, n) {
5576
5579
  const r = this.getAxisMotionValue(e);
5577
- return id(this.visualElement, e), r.start(qf(e, r, 0, n, this.visualElement, !1));
5580
+ return rd(this.visualElement, e), r.start(qf(e, r, 0, n, this.visualElement, !1));
5578
5581
  }
5579
5582
  stopAnimation() {
5580
5583
  qt((e) => this.getAxisMotionValue(e).stop());
@@ -5662,7 +5665,7 @@ class hM {
5662
5665
  };
5663
5666
  }
5664
5667
  getProps() {
5665
- const e = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: r = !1, dragPropagation: i = !1, dragConstraints: o = !1, dragElastic: s = sd, dragMomentum: a = !0 } = e;
5668
+ const e = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: r = !1, dragPropagation: i = !1, dragConstraints: o = !1, dragElastic: s = od, dragMomentum: a = !0 } = e;
5666
5669
  return {
5667
5670
  ...e,
5668
5671
  drag: n,
@@ -5727,9 +5730,9 @@ class vM extends Ir {
5727
5730
  this.removePointerDownListener(), this.session && this.session.end();
5728
5731
  }
5729
5732
  }
5730
- const $l = qe(null);
5733
+ const Wl = qe(null);
5731
5734
  function bM() {
5732
- const t = Me($l);
5735
+ const t = Me(Wl);
5733
5736
  if (t === null)
5734
5737
  return [!0, null];
5735
5738
  const { isPresent: e, onExitComplete: n, register: r } = t, i = Fn();
@@ -6013,9 +6016,9 @@ const Nr = {
6013
6016
  totalNodes: 0,
6014
6017
  resolvedTargetDeltas: 0,
6015
6018
  recalculatedProjection: 0
6016
- }, So = typeof window < "u" && window.MotionDebug !== void 0, jc = ["", "X", "Y", "Z"], LM = { visibility: "hidden" }, jm = 1e3;
6019
+ }, So = typeof window < "u" && window.MotionDebug !== void 0, Lc = ["", "X", "Y", "Z"], LM = { visibility: "hidden" }, jm = 1e3;
6017
6020
  let jM = 0;
6018
- function Gc(t, e, n, r) {
6021
+ function jc(t, e, n, r) {
6019
6022
  const { latestValues: i } = e;
6020
6023
  i[t] && (n[t] = i[t], e.setStaticValue(t, 0), r && (r[t] = 0));
6021
6024
  }
@@ -6140,7 +6143,7 @@ function fx({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
6140
6143
  }
6141
6144
  this.isUpdating || this.nodes.forEach($M), this.isUpdating = !1, this.nodes.forEach(XM), this.nodes.forEach(GM), this.nodes.forEach(zM), this.clearAllSnapshots();
6142
6145
  const a = Mn.now();
6143
- gt.delta = Cr(0, 1e3 / 60, a - gt.timestamp), gt.timestamp = a, gt.isProcessing = !0, Pc.update.process(gt), Pc.preRender.process(gt), Pc.render.process(gt), gt.isProcessing = !1;
6146
+ gt.delta = Cr(0, 1e3 / 60, a - gt.timestamp), gt.timestamp = a, gt.isProcessing = !0, Oc.update.process(gt), Oc.preRender.process(gt), Oc.render.process(gt), gt.isProcessing = !1;
6144
6147
  }
6145
6148
  didUpdate() {
6146
6149
  this.updateScheduled || (this.updateScheduled = !0, ip.read(this.scheduleUpdate));
@@ -6245,7 +6248,7 @@ function fx({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
6245
6248
  const c = this.path[l];
6246
6249
  if (!c.instance || !Dr(c.latestValues))
6247
6250
  continue;
6248
- ad(c.latestValues) && c.updateSnapshot();
6251
+ sd(c.latestValues) && c.updateSnapshot();
6249
6252
  const u = rt(), d = c.measurePageBox();
6250
6253
  Jt(u, d), Dm(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
6251
6254
  }
@@ -6291,7 +6294,7 @@ function fx({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
6291
6294
  }
6292
6295
  }
6293
6296
  getClosestProjectingParent() {
6294
- if (!(!this.parent || ad(this.parent.latestValues) || tx(this.parent.latestValues)))
6297
+ if (!(!this.parent || sd(this.parent.latestValues) || tx(this.parent.latestValues)))
6295
6298
  return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
6296
6299
  }
6297
6300
  isProjecting() {
@@ -6423,9 +6426,9 @@ function fx({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
6423
6426
  if ((l.z || l.rotate || l.rotateX || l.rotateY || l.rotateZ || l.skewX || l.skewY) && (a = !0), !a)
6424
6427
  return;
6425
6428
  const c = {};
6426
- l.z && Gc("z", s, c, this.animationValues);
6427
- for (let u = 0; u < jc.length; u++)
6428
- Gc(`rotate${jc[u]}`, s, c, this.animationValues), Gc(`skew${jc[u]}`, s, c, this.animationValues);
6429
+ l.z && jc("z", s, c, this.animationValues);
6430
+ for (let u = 0; u < Lc.length; u++)
6431
+ jc(`rotate${Lc[u]}`, s, c, this.animationValues), jc(`skew${Lc[u]}`, s, c, this.animationValues);
6429
6432
  s.render();
6430
6433
  for (const u in c)
6431
6434
  s.setStaticValue(u, c[u]), this.animationValues && (this.animationValues[u] = c[u]);
@@ -6593,7 +6596,7 @@ const nO = fx({
6593
6596
  y: document.documentElement.scrollTop || document.body.scrollTop
6594
6597
  }),
6595
6598
  checkIsScrollRoot: () => !0
6596
- }), zc = {
6599
+ }), Gc = {
6597
6600
  current: void 0
6598
6601
  }, hx = fx({
6599
6602
  measureScroll: (t) => ({
@@ -6601,11 +6604,11 @@ const nO = fx({
6601
6604
  y: t.scrollTop
6602
6605
  }),
6603
6606
  defaultParent: () => {
6604
- if (!zc.current) {
6607
+ if (!Gc.current) {
6605
6608
  const t = new nO({});
6606
- t.mount(window), t.setOptions({ layoutScroll: !0 }), zc.current = t;
6609
+ t.mount(window), t.setOptions({ layoutScroll: !0 }), Gc.current = t;
6607
6610
  }
6608
- return zc.current;
6611
+ return Gc.current;
6609
6612
  },
6610
6613
  resetTransform: (t, e) => {
6611
6614
  t.style.transform = e !== void 0 ? e : "none";
@@ -6664,11 +6667,11 @@ class oO extends Ir {
6664
6667
  }
6665
6668
  }
6666
6669
  const mx = (t, e) => e ? t === e ? !0 : mx(t, e.parentElement) : !1;
6667
- function _c(t, e) {
6670
+ function zc(t, e) {
6668
6671
  if (!e)
6669
6672
  return;
6670
6673
  const n = new PointerEvent("pointer" + t);
6671
- e(n, Wl(n));
6674
+ e(n, Hl(n));
6672
6675
  }
6673
6676
  class sO extends Ir {
6674
6677
  constructor() {
@@ -6692,16 +6695,16 @@ class sO extends Ir {
6692
6695
  if (o.key !== "Enter" || this.isPressing)
6693
6696
  return;
6694
6697
  const s = (a) => {
6695
- a.key !== "Enter" || !this.checkPressEnd() || _c("up", (l, c) => {
6698
+ a.key !== "Enter" || !this.checkPressEnd() || zc("up", (l, c) => {
6696
6699
  const { onTap: u } = this.node.getProps();
6697
6700
  u && He.postRender(() => u(l, c));
6698
6701
  });
6699
6702
  };
6700
- this.removeEndListeners(), this.removeEndListeners = zn(this.node.current, "keyup", s), _c("down", (a, l) => {
6703
+ this.removeEndListeners(), this.removeEndListeners = zn(this.node.current, "keyup", s), zc("down", (a, l) => {
6701
6704
  this.startPress(a, l);
6702
6705
  });
6703
6706
  }, n = zn(this.node.current, "keydown", e), r = () => {
6704
- this.isPressing && _c("cancel", (o, s) => this.cancelPress(o, s));
6707
+ this.isPressing && zc("cancel", (o, s) => this.cancelPress(o, s));
6705
6708
  }, i = zn(this.node.current, "blur", r);
6706
6709
  this.removeAccessibleListeners = Hn(n, i);
6707
6710
  };
@@ -6730,22 +6733,22 @@ class sO extends Ir {
6730
6733
  this.removeStartListeners(), this.removeEndListeners(), this.removeAccessibleListeners();
6731
6734
  }
6732
6735
  }
6733
- const cd = /* @__PURE__ */ new WeakMap(), Hc = /* @__PURE__ */ new WeakMap(), aO = (t) => {
6734
- const e = cd.get(t.target);
6736
+ const ld = /* @__PURE__ */ new WeakMap(), _c = /* @__PURE__ */ new WeakMap(), aO = (t) => {
6737
+ const e = ld.get(t.target);
6735
6738
  e && e(t);
6736
6739
  }, lO = (t) => {
6737
6740
  t.forEach(aO);
6738
6741
  };
6739
6742
  function cO({ root: t, ...e }) {
6740
6743
  const n = t || document;
6741
- Hc.has(n) || Hc.set(n, {});
6742
- const r = Hc.get(n), i = JSON.stringify(e);
6744
+ _c.has(n) || _c.set(n, {});
6745
+ const r = _c.get(n), i = JSON.stringify(e);
6743
6746
  return r[i] || (r[i] = new IntersectionObserver(lO, { root: t, ...e })), r[i];
6744
6747
  }
6745
6748
  function uO(t, e, n) {
6746
6749
  const r = cO(e);
6747
- return cd.set(t, n), r.observe(t), () => {
6748
- cd.delete(t), r.unobserve(t);
6750
+ return ld.set(t, n), r.observe(t), () => {
6751
+ ld.delete(t), r.unobserve(t);
6749
6752
  };
6750
6753
  }
6751
6754
  const dO = {
@@ -6809,10 +6812,10 @@ const hO = {
6809
6812
  transformPagePoint: (t) => t,
6810
6813
  isStatic: !1,
6811
6814
  reducedMotion: "never"
6812
- }), Xl = qe({}), sp = typeof window < "u", gx = sp ? Qi : Pe, vx = qe({ strict: !1 });
6815
+ }), $l = qe({}), sp = typeof window < "u", gx = sp ? Qi : Pe, vx = qe({ strict: !1 });
6813
6816
  function gO(t, e, n, r, i) {
6814
6817
  var o, s;
6815
- const { visualElement: a } = Me(Xl), l = Me(vx), c = Me($l), u = Me(op).reducedMotion, d = de();
6818
+ const { visualElement: a } = Me($l), l = Me(vx), c = Me(Wl), u = Me(op).reducedMotion, d = de();
6816
6819
  r = r || l.renderer, !d.current && r && (d.current = r(t, {
6817
6820
  visualState: e,
6818
6821
  parent: a,
@@ -6874,14 +6877,14 @@ function bO(t, e, n) {
6874
6877
  [e]
6875
6878
  );
6876
6879
  }
6877
- function Yl(t) {
6878
- return zl(t.animate) || Bf.some((e) => Wo(t[e]));
6880
+ function Xl(t) {
6881
+ return Gl(t.animate) || Bf.some((e) => Wo(t[e]));
6879
6882
  }
6880
6883
  function yx(t) {
6881
- return !!(Yl(t) || t.variants);
6884
+ return !!(Xl(t) || t.variants);
6882
6885
  }
6883
6886
  function yO(t, e) {
6884
- if (Yl(t)) {
6887
+ if (Xl(t)) {
6885
6888
  const { initial: n, animate: r } = t;
6886
6889
  return {
6887
6890
  initial: n === !1 || Wo(n) ? n : void 0,
@@ -6891,7 +6894,7 @@ function yO(t, e) {
6891
6894
  return t.inherit !== !1 ? e : {};
6892
6895
  }
6893
6896
  function xO(t) {
6894
- const { initial: e, animate: n } = yO(t, Me(Xl));
6897
+ const { initial: e, animate: n } = yO(t, Me($l));
6895
6898
  return we(() => ({ initial: e, animate: n }), [Zm(e), Zm(n)]);
6896
6899
  }
6897
6900
  function Zm(t) {
@@ -6943,7 +6946,7 @@ function SO({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVis
6943
6946
  const h = AO(u);
6944
6947
  c = h.MeasureLayout, f.visualElement = gO(i, p, u, e, h.ProjectionNode);
6945
6948
  }
6946
- return C.jsxs(Xl.Provider, { value: f, children: [c && f.visualElement ? C.jsx(c, { visualElement: f.visualElement, ...u }) : null, n(i, a, bO(p, f.visualElement, l), p, d, f.visualElement)] });
6949
+ return C.jsxs($l.Provider, { value: f, children: [c && f.visualElement ? C.jsx(c, { visualElement: f.visualElement, ...u }) : null, n(i, a, bO(p, f.visualElement, l), p, d, f.visualElement)] });
6947
6950
  }
6948
6951
  const s = fi(o);
6949
6952
  return s[wO] = i, s;
@@ -7082,7 +7085,7 @@ function kO({ scrapeMotionValuesFromProps: t, createRenderState: e, onMount: n }
7082
7085
  return n && (s.mount = (a) => n(r, a, s)), s;
7083
7086
  }
7084
7087
  const Ex = (t) => (e, n) => {
7085
- const r = Me(Xl), i = Me($l), o = () => kO(t, e, r, i);
7088
+ const r = Me($l), i = Me(Wl), o = () => kO(t, e, r, i);
7086
7089
  return n ? o() : cp(o);
7087
7090
  };
7088
7091
  function MO(t, e, n, r) {
@@ -7090,12 +7093,12 @@ function MO(t, e, n, r) {
7090
7093
  for (const f in o)
7091
7094
  i[f] = na(o[f]);
7092
7095
  let { initial: s, animate: a } = t;
7093
- const l = Yl(t), c = yx(t);
7096
+ const l = Xl(t), c = yx(t);
7094
7097
  e && c && !l && t.inherit !== !1 && (s === void 0 && (s = e.initial), a === void 0 && (a = e.animate));
7095
7098
  let u = n ? n.initial === !1 : !1;
7096
7099
  u = u || s === !1;
7097
7100
  const d = u ? a : s;
7098
- if (d && typeof d != "boolean" && !zl(d)) {
7101
+ if (d && typeof d != "boolean" && !Gl(d)) {
7099
7102
  const f = Array.isArray(d) ? d : [d];
7100
7103
  for (let p = 0; p < f.length; p++) {
7101
7104
  const h = Ff(t, f[p]);
@@ -7341,20 +7344,20 @@ function YO(t, e) {
7341
7344
  return SO(s);
7342
7345
  };
7343
7346
  }
7344
- const ud = { current: null }, Ox = { current: !1 };
7347
+ const cd = { current: null }, Ox = { current: !1 };
7345
7348
  function ZO() {
7346
7349
  if (Ox.current = !0, !!sp)
7347
7350
  if (window.matchMedia) {
7348
- const t = window.matchMedia("(prefers-reduced-motion)"), e = () => ud.current = t.matches;
7351
+ const t = window.matchMedia("(prefers-reduced-motion)"), e = () => cd.current = t.matches;
7349
7352
  t.addListener(e), e();
7350
7353
  } else
7351
- ud.current = !1;
7354
+ cd.current = !1;
7352
7355
  }
7353
7356
  function JO(t, e, n) {
7354
7357
  for (const r in e) {
7355
7358
  const i = e[r], o = n[r];
7356
7359
  if (At(i))
7357
- t.addValue(r, i), process.env.NODE_ENV === "development" && Gl(i.version === "11.11.17", `Attempting to mix Motion versions ${i.version} with 11.11.17 may not work as expected.`);
7360
+ t.addValue(r, i), process.env.NODE_ENV === "development" && jl(i.version === "11.11.17", `Attempting to mix Motion versions ${i.version} with 11.11.17 may not work as expected.`);
7358
7361
  else if (At(o))
7359
7362
  t.addValue(r, Yo(i, { owner: t }));
7360
7363
  else if (o !== i)
@@ -7398,7 +7401,7 @@ class qO {
7398
7401
  this.renderScheduledAt < f && (this.renderScheduledAt = f, He.render(this.render, !1, !0));
7399
7402
  };
7400
7403
  const { latestValues: l, renderState: c } = s;
7401
- this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = c, this.parent = e, this.props = n, this.presenceContext = r, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = i, this.options = a, this.blockInitialAnimation = !!o, this.isControllingVariants = Yl(n), this.isVariantNode = yx(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
7404
+ this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = c, this.parent = e, this.props = n, this.presenceContext = r, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = i, this.options = a, this.blockInitialAnimation = !!o, this.isControllingVariants = Xl(n), this.isVariantNode = yx(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
7402
7405
  const { willChange: u, ...d } = this.scrapeMotionValuesFromProps(n, {}, this);
7403
7406
  for (const f in d) {
7404
7407
  const p = d[f];
@@ -7406,7 +7409,7 @@ class qO {
7406
7409
  }
7407
7410
  }
7408
7411
  mount(e) {
7409
- this.current = e, Km.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, r) => this.bindToMotionValue(r, n)), Ox.current || ZO(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : ud.current, process.env.NODE_ENV !== "production" && Gl(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
7412
+ this.current = e, Km.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, r) => this.bindToMotionValue(r, n)), Ox.current || ZO(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : cd.current, process.env.NODE_ENV !== "production" && jl(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
7410
7413
  }
7411
7414
  unmount() {
7412
7415
  Km.delete(this.current), this.projection && this.projection.unmount(), xr(this.notifyUpdate), xr(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
@@ -7653,7 +7656,7 @@ const nP = (t, e) => ap(t) ? new tP(e) : new eP(e, {
7653
7656
  ...hO,
7654
7657
  ...rO,
7655
7658
  ...mO
7656
- }, nP), dd = /* @__PURE__ */ BA(rP);
7659
+ }, nP), ud = /* @__PURE__ */ BA(rP);
7657
7660
  class iP extends I.Component {
7658
7661
  getSnapshotBeforeUpdate(e) {
7659
7662
  const n = this.props.childRef.current;
@@ -7725,7 +7728,7 @@ const sP = ({ children: t, initial: e, isPresent: n, onExitComplete: r, custom:
7725
7728
  a.forEach((d, f) => a.set(f, !1));
7726
7729
  }, [n]), I.useEffect(() => {
7727
7730
  !n && !a.size && r && r();
7728
- }, [n]), s === "popLayout" && (t = C.jsx(oP, { isPresent: n, children: t })), C.jsx($l.Provider, { value: u, children: t });
7731
+ }, [n]), s === "popLayout" && (t = C.jsx(oP, { isPresent: n, children: t })), C.jsx(Wl.Provider, { value: u, children: t });
7729
7732
  };
7730
7733
  function aP() {
7731
7734
  return /* @__PURE__ */ new Map();
@@ -7802,7 +7805,7 @@ const Rx = ({ children: t, exitBeforeEnter: e, custom: n, initial: r = !0, onExi
7802
7805
  classes: s
7803
7806
  }) => {
7804
7807
  const l = /* @__PURE__ */ C.jsx(Rx, { children: n && /* @__PURE__ */ C.jsx(
7805
- dd.div,
7808
+ ud.div,
7806
7809
  {
7807
7810
  tabIndex: -1,
7808
7811
  onClick: o,
@@ -7815,7 +7818,7 @@ const Rx = ({ children: t, exitBeforeEnter: e, custom: n, initial: r = !0, onExi
7815
7818
  },
7816
7819
  ...lP,
7817
7820
  children: /* @__PURE__ */ C.jsxs(
7818
- dd.div,
7821
+ ud.div,
7819
7822
  {
7820
7823
  onClick: (c) => c.stopPropagation(),
7821
7824
  className: O(
@@ -7903,7 +7906,7 @@ const Rx = ({ children: t, exitBeforeEnter: e, custom: n, initial: r = !0, onExi
7903
7906
  ]
7904
7907
  }
7905
7908
  ) }) });
7906
- }, fP = gf("desk-body-regular-m mt-2", {
7909
+ }, fP = mf("desk-body-regular-m mt-2", {
7907
7910
  variants: {
7908
7911
  intent: {
7909
7912
  simple: "text-color-tetriary",
@@ -7943,11 +7946,11 @@ const Rx = ({ children: t, exitBeforeEnter: e, custom: n, initial: r = !0, onExi
7943
7946
  r == null ? void 0 : r.field
7944
7947
  ),
7945
7948
  children: [
7946
- /* @__PURE__ */ C.jsx(Dx, { ...i }),
7949
+ /* @__PURE__ */ C.jsx(Dx, { classes: r, ...i }),
7947
7950
  t
7948
7951
  ]
7949
7952
  }
7950
- ), pP = gf("relative flex flex-col group", {
7953
+ ), pP = mf("relative flex flex-col group", {
7951
7954
  variants: {
7952
7955
  intent: {
7953
7956
  clear: "!w-full min-w-[140px]",
@@ -8194,7 +8197,7 @@ var Lx = mP(function(t, e) {
8194
8197
  function wP(t, e, n) {
8195
8198
  return Math.min(Math.max(t, e), n);
8196
8199
  }
8197
- function Wc(t) {
8200
+ function Hc(t) {
8198
8201
  return Math.max(t.selectionStart, t.selectionEnd);
8199
8202
  }
8200
8203
  function SP() {
@@ -8350,7 +8353,7 @@ function _x(t) {
8350
8353
  S === void 0 && (S = "");
8351
8354
  var k = oe.input, M = oe.source, q = oe.event, W = oe.numAsString, j;
8352
8355
  if (k) {
8353
- var N = oe.inputValue || k.value, U = Wc(k);
8356
+ var N = oe.inputValue || k.value, U = Hc(k);
8354
8357
  k.value = S, j = V(N, S, U), j !== void 0 && _(k, j, S);
8355
8358
  }
8356
8359
  S !== T && J(P(S, W), { event: q, source: M });
@@ -8362,7 +8365,7 @@ function _x(t) {
8362
8365
  source: Zo.props
8363
8366
  });
8364
8367
  }, [T, R]);
8365
- var se = B.current ? Wc(B.current) : void 0, ne = typeof window < "u" ? Qi : Pe;
8368
+ var se = B.current ? Hc(B.current) : void 0, ne = typeof window < "u" ? Qi : Pe;
8366
8369
  ne(function() {
8367
8370
  var oe = B.current;
8368
8371
  if (T !== z.current.formattedValue && oe) {
@@ -8373,7 +8376,7 @@ function _x(t) {
8373
8376
  var ie = function(oe, S, k) {
8374
8377
  var M = S.target, q = X.current ? CP(X.current, M.selectionEnd) : Lx(T, oe), W = Object.assign(Object.assign({}, q), { lastValue: T }), j = a(oe, W), N = re(j);
8375
8378
  if (j = a(N, void 0), d && !d(P(N, j))) {
8376
- var U = S.target, ye = Wc(U), Ie = V(oe, T, ye);
8379
+ var U = S.target, ye = Hc(U), Ie = V(oe, T, ye);
8377
8380
  return U.value = T, _(U, Ie, T), !1;
8378
8381
  }
8379
8382
  return K({
@@ -8456,10 +8459,10 @@ function ng(t, e) {
8456
8459
  var s = e.allowNegative, a = e.thousandsGroupStyle;
8457
8460
  if (a === void 0 && (a = "thousand"), t === "" || t === "-")
8458
8461
  return t;
8459
- var l = Zl(e), c = l.thousandSeparator, u = l.decimalSeparator, d = n !== 0 && t.indexOf(".") !== -1 || n && r, f = mp(t, s), p = f.beforeDecimal, h = f.afterDecimal, m = f.addNegation;
8462
+ var l = Yl(e), c = l.thousandSeparator, u = l.decimalSeparator, d = n !== 0 && t.indexOf(".") !== -1 || n && r, f = mp(t, s), p = f.beforeDecimal, h = f.afterDecimal, m = f.addNegation;
8460
8463
  return n !== void 0 && (h = Vx(h, n, !!r)), c && (p = bP(p, c, a)), i && (p = i + p), o && (h = h + o), m && (p = "-" + p), t = p + (d && u || "") + h, t;
8461
8464
  }
8462
- function Zl(t) {
8465
+ function Yl(t) {
8463
8466
  var e = t.decimalSeparator;
8464
8467
  e === void 0 && (e = ".");
8465
8468
  var n = t.thousandSeparator, r = t.allowedDecimalSeparators;
@@ -8487,7 +8490,7 @@ function RP(t, e, n) {
8487
8490
  o === void 0 && (o = "");
8488
8491
  var s = n.suffix;
8489
8492
  s === void 0 && (s = "");
8490
- var a = n.decimalScale, l = e.from, c = e.to, u = c.start, d = c.end, f = Zl(n), p = f.allowedDecimalSeparators, h = f.decimalSeparator, m = t[d] === h;
8493
+ var a = n.decimalScale, l = e.from, c = e.to, u = c.start, d = c.end, f = Yl(n), p = f.allowedDecimalSeparators, h = f.decimalSeparator, m = t[d] === h;
8491
8494
  if (ii(t) && (t === o || t === s) && e.lastValue === "")
8492
8495
  return t;
8493
8496
  if (d - u === 1 && p.indexOf(t[u]) !== -1) {
@@ -8527,7 +8530,7 @@ function DP(t, e) {
8527
8530
  return i.fill(!1, s - r.length + 1, s + 1), i;
8528
8531
  }
8529
8532
  function NP(t) {
8530
- var e = Zl(t), n = e.thousandSeparator, r = e.decimalSeparator, i = t.prefix;
8533
+ var e = Yl(t), n = e.thousandSeparator, r = e.decimalSeparator, i = t.prefix;
8531
8534
  i === void 0 && (i = "");
8532
8535
  var o = t.allowNegative;
8533
8536
  if (o === void 0 && (o = !0), n === r)
@@ -8550,7 +8553,7 @@ function FP(t) {
8550
8553
  o === void 0 && (o = Gn);
8551
8554
  var s = t.thousandSeparator, a = t.decimalScale, l = t.fixedDecimalScale, c = t.prefix;
8552
8555
  c === void 0 && (c = "");
8553
- var u = t.defaultValue, d = t.value, f = t.valueIsNumericString, p = t.onValueChange, h = hp(t, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), m = Zl(t), g = m.decimalSeparator, v = m.allowedDecimalSeparators, b = function(F) {
8556
+ var u = t.defaultValue, d = t.value, f = t.valueIsNumericString, p = t.onValueChange, h = hp(t, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), m = Yl(t), g = m.decimalSeparator, v = m.allowedDecimalSeparators, b = function(F) {
8554
8557
  return ng(F, t);
8555
8558
  }, x = function(F, B) {
8556
8559
  return RP(F, B, t);
@@ -8807,7 +8810,7 @@ const o$ = ({
8807
8810
  }
8808
8811
  );
8809
8812
  }, s$ = () => /* @__PURE__ */ C.jsx("div", { className: "", children: "Form example" });
8810
- function Jl(t) {
8813
+ function Zl(t) {
8811
8814
  const e = I.useRef({ value: t, previous: t });
8812
8815
  return I.useMemo(() => (e.current.value !== t && (e.current.previous = e.current.value, e.current.value = t), e.current.previous), [t]);
8813
8816
  }
@@ -8893,7 +8896,7 @@ var Xx = "CheckboxIndicator", Yx = I.forwardRef(
8893
8896
  );
8894
8897
  Yx.displayName = Xx;
8895
8898
  var $P = (t) => {
8896
- const { control: e, checked: n, bubbles: r = !0, defaultChecked: i, ...o } = t, s = I.useRef(null), a = Jl(n), l = kl(e);
8899
+ const { control: e, checked: n, bubbles: r = !0, defaultChecked: i, ...o } = t, s = I.useRef(null), a = Zl(n), l = kl(e);
8897
8900
  I.useEffect(() => {
8898
8901
  const u = s.current, d = window.HTMLInputElement.prototype, p = Object.getOwnPropertyDescriptor(d, "checked").set;
8899
8902
  if (a !== n && p) {
@@ -9073,7 +9076,7 @@ var Kx = "RadioIndicator", qx = I.forwardRef(
9073
9076
  );
9074
9077
  qx.displayName = Kx;
9075
9078
  var KP = (t) => {
9076
- const { control: e, checked: n, bubbles: r = !0, ...i } = t, o = I.useRef(null), s = Jl(n), a = kl(e);
9079
+ const { control: e, checked: n, bubbles: r = !0, ...i } = t, o = I.useRef(null), s = Zl(n), a = kl(e);
9077
9080
  return I.useEffect(() => {
9078
9081
  const l = o.current, c = window.HTMLInputElement.prototype, d = Object.getOwnPropertyDescriptor(c, "checked").set;
9079
9082
  if (s !== n && d) {
@@ -9104,9 +9107,9 @@ function Qx(t) {
9104
9107
  return t ? "checked" : "unchecked";
9105
9108
  }
9106
9109
  var qP = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], bp = "RadioGroup", [QP, c$] = Un(bp, [
9107
- jl,
9110
+ Ll,
9108
9111
  Jx
9109
- ]), e1 = jl(), t1 = Jx(), [eR, tR] = QP(bp), n1 = I.forwardRef(
9112
+ ]), e1 = Ll(), t1 = Jx(), [eR, tR] = QP(bp), n1 = I.forwardRef(
9110
9113
  (t, e) => {
9111
9114
  const {
9112
9115
  __scopeRadioGroup: n,
@@ -9211,7 +9214,7 @@ var nR = "RadioGroupIndicator", o1 = I.forwardRef(
9211
9214
  );
9212
9215
  o1.displayName = nR;
9213
9216
  var rR = n1, iR = i1, oR = o1;
9214
- const sR = gf("flex gap-2", {
9217
+ const sR = mf("flex gap-2", {
9215
9218
  variants: {
9216
9219
  orientation: {
9217
9220
  horizontal: "",
@@ -9383,7 +9386,7 @@ var a1 = "SwitchThumb", l1 = I.forwardRef(
9383
9386
  );
9384
9387
  l1.displayName = a1;
9385
9388
  var uR = (t) => {
9386
- const { control: e, checked: n, bubbles: r = !0, ...i } = t, o = I.useRef(null), s = Jl(n), a = kl(e);
9389
+ const { control: e, checked: n, bubbles: r = !0, ...i } = t, o = I.useRef(null), s = Zl(n), a = kl(e);
9387
9390
  return I.useEffect(() => {
9388
9391
  const l = o.current, c = window.HTMLInputElement.prototype, d = Object.getOwnPropertyDescriptor(c, "checked").set;
9389
9392
  if (s !== n && d) {
@@ -9516,9 +9519,9 @@ var d1 = ["PageUp", "PageDown"], f1 = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
9516
9519
  "from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
9517
9520
  "from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
9518
9521
  "from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
9519
- }, io = "Slider", [fd, bR, yR] = bf(io), [h1, p$] = Un(io, [
9522
+ }, io = "Slider", [dd, bR, yR] = vf(io), [h1, p$] = Un(io, [
9520
9523
  yR
9521
- ]), [xR, Ul] = h1(io), xp = I.forwardRef(
9524
+ ]), [xR, Jl] = h1(io), xp = I.forwardRef(
9522
9525
  (t, e) => {
9523
9526
  const {
9524
9527
  name: n,
@@ -9581,7 +9584,7 @@ var d1 = ["PageUp", "PageDown"], f1 = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
9581
9584
  values: w,
9582
9585
  orientation: s,
9583
9586
  form: h,
9584
- children: /* @__PURE__ */ C.jsx(fd.Provider, { scope: t.__scopeSlider, children: /* @__PURE__ */ C.jsx(fd.Slot, { scope: t.__scopeSlider, children: /* @__PURE__ */ C.jsx(
9587
+ children: /* @__PURE__ */ C.jsx(dd.Provider, { scope: t.__scopeSlider, children: /* @__PURE__ */ C.jsx(dd.Slot, { scope: t.__scopeSlider, children: /* @__PURE__ */ C.jsx(
9585
9588
  x,
9586
9589
  {
9587
9590
  "aria-disabled": a,
@@ -9738,7 +9741,7 @@ var [m1, g1] = h1(io, {
9738
9741
  onEndKeyDown: a,
9739
9742
  onStepKeyDown: l,
9740
9743
  ...c
9741
- } = t, u = Ul(io, n);
9744
+ } = t, u = Jl(io, n);
9742
9745
  return /* @__PURE__ */ C.jsx(
9743
9746
  Ze.span,
9744
9747
  {
@@ -9763,7 +9766,7 @@ var [m1, g1] = h1(io, {
9763
9766
  }
9764
9767
  ), b1 = "SliderTrack", y1 = I.forwardRef(
9765
9768
  (t, e) => {
9766
- const { __scopeSlider: n, ...r } = t, i = Ul(b1, n);
9769
+ const { __scopeSlider: n, ...r } = t, i = Jl(b1, n);
9767
9770
  return /* @__PURE__ */ C.jsx(
9768
9771
  Ze.span,
9769
9772
  {
@@ -9776,9 +9779,9 @@ var [m1, g1] = h1(io, {
9776
9779
  }
9777
9780
  );
9778
9781
  y1.displayName = b1;
9779
- var pd = "SliderRange", x1 = I.forwardRef(
9782
+ var fd = "SliderRange", x1 = I.forwardRef(
9780
9783
  (t, e) => {
9781
- const { __scopeSlider: n, ...r } = t, i = Ul(pd, n), o = g1(pd, n), s = I.useRef(null), a = kt(e, s), l = i.values.length, c = i.values.map(
9784
+ const { __scopeSlider: n, ...r } = t, i = Jl(fd, n), o = g1(fd, n), s = I.useRef(null), a = kt(e, s), l = i.values.length, c = i.values.map(
9782
9785
  (f) => w1(f, i.min, i.max)
9783
9786
  ), u = l > 1 ? Math.min(...c) : 0, d = 100 - Math.max(...c);
9784
9787
  return /* @__PURE__ */ C.jsx(
@@ -9797,8 +9800,8 @@ var pd = "SliderRange", x1 = I.forwardRef(
9797
9800
  );
9798
9801
  }
9799
9802
  );
9800
- x1.displayName = pd;
9801
- var hd = "SliderThumb", C1 = I.forwardRef(
9803
+ x1.displayName = fd;
9804
+ var pd = "SliderThumb", C1 = I.forwardRef(
9802
9805
  (t, e) => {
9803
9806
  const n = bR(t.__scopeSlider), [r, i] = I.useState(null), o = kt(e, (a) => i(a)), s = I.useMemo(
9804
9807
  () => r ? n().findIndex((a) => a.ref.current === r) : -1,
@@ -9808,7 +9811,7 @@ var hd = "SliderThumb", C1 = I.forwardRef(
9808
9811
  }
9809
9812
  ), SR = I.forwardRef(
9810
9813
  (t, e) => {
9811
- const { __scopeSlider: n, index: r, name: i, ...o } = t, s = Ul(hd, n), a = g1(hd, n), [l, c] = I.useState(null), u = kt(e, (b) => c(b)), d = l ? s.form || !!l.closest("form") : !0, f = kl(l), p = s.values[r], h = p === void 0 ? 0 : w1(p, s.min, s.max), m = AR(r, s.values.length), g = f == null ? void 0 : f[a.size], v = g ? kR(g, h, a.direction) : 0;
9814
+ const { __scopeSlider: n, index: r, name: i, ...o } = t, s = Jl(pd, n), a = g1(pd, n), [l, c] = I.useState(null), u = kt(e, (b) => c(b)), d = l ? s.form || !!l.closest("form") : !0, f = kl(l), p = s.values[r], h = p === void 0 ? 0 : w1(p, s.min, s.max), m = AR(r, s.values.length), g = f == null ? void 0 : f[a.size], v = g ? kR(g, h, a.direction) : 0;
9812
9815
  return I.useEffect(() => {
9813
9816
  if (l)
9814
9817
  return s.thumbs.add(l), () => {
@@ -9823,7 +9826,7 @@ var hd = "SliderThumb", C1 = I.forwardRef(
9823
9826
  [a.startEdge]: `calc(${h}% + ${v}px)`
9824
9827
  },
9825
9828
  children: [
9826
- /* @__PURE__ */ C.jsx(fd.ItemSlot, { scope: t.__scopeSlider, children: /* @__PURE__ */ C.jsx(
9829
+ /* @__PURE__ */ C.jsx(dd.ItemSlot, { scope: t.__scopeSlider, children: /* @__PURE__ */ C.jsx(
9827
9830
  Ze.span,
9828
9831
  {
9829
9832
  role: "slider",
@@ -9857,9 +9860,9 @@ var hd = "SliderThumb", C1 = I.forwardRef(
9857
9860
  );
9858
9861
  }
9859
9862
  );
9860
- C1.displayName = hd;
9863
+ C1.displayName = pd;
9861
9864
  var IR = (t) => {
9862
- const { value: e, ...n } = t, r = I.useRef(null), i = Jl(e);
9865
+ const { value: e, ...n } = t, r = I.useRef(null), i = Zl(e);
9863
9866
  return I.useEffect(() => {
9864
9867
  const o = r.current, s = window.HTMLInputElement.prototype, l = Object.getOwnPropertyDescriptor(s, "value").set;
9865
9868
  if (i !== e && l) {
@@ -9977,6 +9980,7 @@ const h$ = ({
9977
9980
  "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",
9978
9981
  i == null ? void 0 : i.field
9979
9982
  ),
9983
+ label: O("text-color-dark desk-body-regular-m", i == null ? void 0 : i.label),
9980
9984
  ...i
9981
9985
  },
9982
9986
  disabled: a,
@@ -10140,7 +10144,7 @@ const h$ = ({
10140
10144
  }
10141
10145
  );
10142
10146
  }, BR = () => {
10143
- const [t, e] = Ac(!1), [n, r] = Ac(!1), [i, o] = Ac(!1);
10147
+ const [t, e] = Ec(!1), [n, r] = Ec(!1), [i, o] = Ec(!1);
10144
10148
  return {
10145
10149
  calendarSetter: o,
10146
10150
  toggleCalendar: (c) => {
@@ -10350,15 +10354,15 @@ const LR = {
10350
10354
  }, _R = {
10351
10355
  any: "{{date}}, {{time}}"
10352
10356
  }, HR = {
10353
- date: Sc({
10357
+ date: wc({
10354
10358
  formats: GR,
10355
10359
  defaultWidth: "full"
10356
10360
  }),
10357
- time: Sc({
10361
+ time: wc({
10358
10362
  formats: zR,
10359
10363
  defaultWidth: "full"
10360
10364
  }),
10361
- dateTime: Sc({
10365
+ dateTime: wc({
10362
10366
  formats: _R,
10363
10367
  defaultWidth: "any"
10364
10368
  })
@@ -10713,7 +10717,7 @@ const XR = {
10713
10717
  }
10714
10718
  }, vD = (t) => {
10715
10719
  const [e, n] = Oe(t), [r, i, o] = (e == null ? void 0 : e.split(".")) ?? "", s = sn(new Date(+o, +i - 1, +r), "MMM-yyyy"), a = wI(s, "MMM-yyyy", /* @__PURE__ */ new Date()), l = $I({
10716
- start: Hu(a, { weekStartsOn: 1 }),
10720
+ start: _u(a, { weekStartsOn: 1 }),
10717
10721
  end: YI(HI(a))
10718
10722
  }), c = we(() => l, [l]), u = sn(i, "MMMM", { locale: gD });
10719
10723
  return {
@@ -10769,7 +10773,7 @@ const XR = {
10769
10773
  for (let r = e; r >= t; r--)
10770
10774
  n.push(r);
10771
10775
  return n;
10772
- }, wD = CD(), $c = [
10776
+ }, wD = CD(), Wc = [
10773
10777
  { day: "Пн" },
10774
10778
  { day: "Вт" },
10775
10779
  { day: "Ср" },
@@ -10790,7 +10794,7 @@ const XR = {
10790
10794
  "Октябрь",
10791
10795
  "Ноябрь",
10792
10796
  "Декабрь"
10793
- ], SD = ({ classes: t }) => /* @__PURE__ */ C.jsx("div", { className: O("grid grid-cols-7 pt-2", t == null ? void 0 : t.weekWrapper), children: $c == null ? void 0 : $c.map(({ day: e, isWeekend: n }) => /* @__PURE__ */ C.jsx(
10797
+ ], SD = ({ classes: t }) => /* @__PURE__ */ C.jsx("div", { className: O("grid grid-cols-7 pt-2", t == null ? void 0 : t.weekWrapper), children: Wc == null ? void 0 : Wc.map(({ day: e, isWeekend: n }) => /* @__PURE__ */ C.jsx(
10794
10798
  "span",
10795
10799
  {
10796
10800
  className: O(
@@ -10989,9 +10993,11 @@ const XR = {
10989
10993
  swapPosition: d,
10990
10994
  onClickIcon: f,
10991
10995
  defaultValue: p = kD,
10992
- ...h
10996
+ watch: h,
10997
+ setValue: m,
10998
+ ...g
10993
10999
  }) => {
10994
- const { watch: m, setValue: g } = Bl() ?? {}, v = I.useId(), b = m(h.name), x = I.useRef(null), {
11000
+ const v = I.useId(), b = h(g.name), x = I.useRef(null), {
10995
11001
  memoDaysOfMonth: w,
10996
11002
  firstDayOfMonth: y,
10997
11003
  selectedDay: E,
@@ -11003,14 +11009,14 @@ const XR = {
11003
11009
  onBlurInput: z,
11004
11010
  onChangeMonth: J
11005
11011
  } = vD(p ?? b), { isCalendarOpen: L, toggleCalendar: Y, calendarSetter: F, isMonthOpen: B, toggleMonthDropdown: Q, isYearsOpen: re, toggleYearDropdown: P } = BR();
11006
- return Tf(x, () => F(!1)), /* @__PURE__ */ C.jsx(
11012
+ return Af(x, () => F(!1)), /* @__PURE__ */ C.jsx(
11007
11013
  Xt,
11008
11014
  {
11009
11015
  control: t,
11010
- name: h.name,
11016
+ name: g.name,
11011
11017
  render: ({ field: { onChange: _, value: H }, fieldState: { error: V } }) => /* @__PURE__ */ C.jsxs("div", { className: O("relative w-full", e == null ? void 0 : e.rootWrapper), ref: x, children: [
11012
11018
  /* @__PURE__ */ C.jsx(Rx, { children: L && /* @__PURE__ */ C.jsxs(
11013
- dd.div,
11019
+ ud.div,
11014
11020
  {
11015
11021
  ...xD,
11016
11022
  className: O(
@@ -11082,7 +11088,7 @@ const XR = {
11082
11088
  {
11083
11089
  id: v,
11084
11090
  value: H,
11085
- name: h.name,
11091
+ name: g.name,
11086
11092
  format: i,
11087
11093
  allowEmptyFormatting: o,
11088
11094
  mask: s,
@@ -11092,7 +11098,7 @@ const XR = {
11092
11098
  ),
11093
11099
  onFocus: () => F(!0),
11094
11100
  onBlur: (K) => {
11095
- z(K.target.value, _), K.target.value || g(h.name, "");
11101
+ z(K.target.value, _), K.target.value || m(g.name, "");
11096
11102
  }
11097
11103
  }
11098
11104
  ),
@@ -11134,7 +11140,7 @@ const XR = {
11134
11140
  "image/png": [],
11135
11141
  "application/pdf": []
11136
11142
  }
11137
- }, Xc = {
11143
+ }, $c = {
11138
11144
  FileInvalidType: "file-invalid-type",
11139
11145
  FileTooLarge: "file-too-large",
11140
11146
  FileTooSmall: "file-too-small",
@@ -11174,7 +11180,7 @@ const XR = {
11174
11180
  }
11175
11181
  );
11176
11182
  });
11177
- var md = { exports: {} }, Fs = { exports: {} }, Ve = {};
11183
+ var hd = { exports: {} }, Fs = { exports: {} }, Ve = {};
11178
11184
  /** @license React v16.13.1
11179
11185
  * react-is.production.min.js
11180
11186
  *
@@ -11350,9 +11356,9 @@ object-assign
11350
11356
  (c) Sindre Sorhus
11351
11357
  @license MIT
11352
11358
  */
11353
- var Yc, cg;
11359
+ var Xc, cg;
11354
11360
  function RD() {
11355
- if (cg) return Yc;
11361
+ if (cg) return Xc;
11356
11362
  cg = 1;
11357
11363
  var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
11358
11364
  function r(o) {
@@ -11382,7 +11388,7 @@ function RD() {
11382
11388
  return !1;
11383
11389
  }
11384
11390
  }
11385
- return Yc = i() ? Object.assign : function(o, s) {
11391
+ return Xc = i() ? Object.assign : function(o, s) {
11386
11392
  for (var a, l = r(o), c, u = 1; u < arguments.length; u++) {
11387
11393
  a = Object(arguments[u]);
11388
11394
  for (var d in a)
@@ -11394,22 +11400,22 @@ function RD() {
11394
11400
  }
11395
11401
  }
11396
11402
  return l;
11397
- }, Yc;
11403
+ }, Xc;
11398
11404
  }
11399
- var Zc, ug;
11405
+ var Yc, ug;
11400
11406
  function Sp() {
11401
- if (ug) return Zc;
11407
+ if (ug) return Yc;
11402
11408
  ug = 1;
11403
11409
  var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
11404
- return Zc = t, Zc;
11410
+ return Yc = t, Yc;
11405
11411
  }
11406
- var Jc, dg;
11412
+ var Zc, dg;
11407
11413
  function A1() {
11408
- return dg || (dg = 1, Jc = Function.call.bind(Object.prototype.hasOwnProperty)), Jc;
11414
+ return dg || (dg = 1, Zc = Function.call.bind(Object.prototype.hasOwnProperty)), Zc;
11409
11415
  }
11410
- var Uc, fg;
11416
+ var Jc, fg;
11411
11417
  function DD() {
11412
- if (fg) return Uc;
11418
+ if (fg) return Jc;
11413
11419
  fg = 1;
11414
11420
  var t = function() {
11415
11421
  };
@@ -11454,11 +11460,11 @@ function DD() {
11454
11460
  }
11455
11461
  return i.resetWarningCache = function() {
11456
11462
  process.env.NODE_ENV !== "production" && (n = {});
11457
- }, Uc = i, Uc;
11463
+ }, Jc = i, Jc;
11458
11464
  }
11459
- var Kc, pg;
11465
+ var Uc, pg;
11460
11466
  function ND() {
11461
- if (pg) return Kc;
11467
+ if (pg) return Uc;
11462
11468
  pg = 1;
11463
11469
  var t = E1(), e = RD(), n = Sp(), r = A1(), i = DD(), o = function() {
11464
11470
  };
@@ -11473,7 +11479,7 @@ function ND() {
11473
11479
  function s() {
11474
11480
  return null;
11475
11481
  }
11476
- return Kc = function(a, l) {
11482
+ return Uc = function(a, l) {
11477
11483
  var c = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
11478
11484
  function d(P) {
11479
11485
  var _ = P && (c && P[c] || P[u]);
@@ -11775,18 +11781,18 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " ")
11775
11781
  return !P.constructor || !P.constructor.name ? f : P.constructor.name;
11776
11782
  }
11777
11783
  return p.checkPropTypes = i, p.resetWarningCache = i.resetWarningCache, p.PropTypes = p, p;
11778
- }, Kc;
11784
+ }, Uc;
11779
11785
  }
11780
- var qc, hg;
11786
+ var Kc, hg;
11781
11787
  function FD() {
11782
- if (hg) return qc;
11788
+ if (hg) return Kc;
11783
11789
  hg = 1;
11784
11790
  var t = Sp();
11785
11791
  function e() {
11786
11792
  }
11787
11793
  function n() {
11788
11794
  }
11789
- return n.resetWarningCache = e, qc = function() {
11795
+ return n.resetWarningCache = e, Kc = function() {
11790
11796
  function r(s, a, l, c, u, d) {
11791
11797
  if (d !== t) {
11792
11798
  var f = new Error(
@@ -11823,14 +11829,14 @@ function FD() {
11823
11829
  resetWarningCache: e
11824
11830
  };
11825
11831
  return o.PropTypes = o, o;
11826
- }, qc;
11832
+ }, Kc;
11827
11833
  }
11828
11834
  if (process.env.NODE_ENV !== "production") {
11829
11835
  var VD = E1(), BD = !0;
11830
- md.exports = ND()(VD.isElement, BD);
11836
+ hd.exports = ND()(VD.isElement, BD);
11831
11837
  } else
11832
- md.exports = FD()();
11833
- var LD = md.exports;
11838
+ hd.exports = FD()();
11839
+ var LD = hd.exports;
11834
11840
  const We = /* @__PURE__ */ SI(LD), jD = /* @__PURE__ */ new Map([
11835
11841
  // https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
11836
11842
  ["1km", "application/vnd.1000minds.decision-model+xml"],
@@ -13081,7 +13087,7 @@ function Ta(t) {
13081
13087
  return typeof t == "object" && t !== null;
13082
13088
  }
13083
13089
  function $D(t) {
13084
- return gd(t.target.files).map((e) => $i(e));
13090
+ return md(t.target.files).map((e) => $i(e));
13085
13091
  }
13086
13092
  function XD(t) {
13087
13093
  return di(this, void 0, void 0, function* () {
@@ -13091,19 +13097,19 @@ function XD(t) {
13091
13097
  function YD(t, e) {
13092
13098
  return di(this, void 0, void 0, function* () {
13093
13099
  if (t.items) {
13094
- const n = gd(t.items).filter((i) => i.kind === "file");
13100
+ const n = md(t.items).filter((i) => i.kind === "file");
13095
13101
  if (e !== "drop")
13096
13102
  return n;
13097
13103
  const r = yield Promise.all(n.map(ZD));
13098
13104
  return gg(T1(r));
13099
13105
  }
13100
- return gg(gd(t.files).map((n) => $i(n)));
13106
+ return gg(md(t.files).map((n) => $i(n)));
13101
13107
  });
13102
13108
  }
13103
13109
  function gg(t) {
13104
13110
  return t.filter((e) => zD.indexOf(e.name) === -1);
13105
13111
  }
13106
- function gd(t) {
13112
+ function md(t) {
13107
13113
  if (t === null)
13108
13114
  return [];
13109
13115
  const e = [];
@@ -13183,7 +13189,7 @@ function UD(t) {
13183
13189
  });
13184
13190
  });
13185
13191
  }
13186
- var Qc = function(t, e) {
13192
+ var qc = function(t, e) {
13187
13193
  if (t && e) {
13188
13194
  var n = Array.isArray(e) ? e : e.split(",");
13189
13195
  if (n.length === 0)
@@ -13207,7 +13213,7 @@ function qD(t) {
13207
13213
  if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
13208
13214
  }
13209
13215
  function QD(t) {
13210
- if (Array.isArray(t)) return vd(t);
13216
+ if (Array.isArray(t)) return gd(t);
13211
13217
  }
13212
13218
  function yg(t, e) {
13213
13219
  var n = Object.keys(t);
@@ -13242,13 +13248,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
13242
13248
  }
13243
13249
  function O1(t, e) {
13244
13250
  if (t) {
13245
- if (typeof t == "string") return vd(t, e);
13251
+ if (typeof t == "string") return gd(t, e);
13246
13252
  var n = Object.prototype.toString.call(t).slice(8, -1);
13247
13253
  if (n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set") return Array.from(t);
13248
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return vd(t, e);
13254
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return gd(t, e);
13249
13255
  }
13250
13256
  }
13251
- function vd(t, e) {
13257
+ function gd(t, e) {
13252
13258
  (e == null || e > t.length) && (e = t.length);
13253
13259
  for (var n = 0, r = new Array(e); n < e; n++)
13254
13260
  r[n] = t[n];
@@ -13276,7 +13282,7 @@ function tN(t, e) {
13276
13282
  function nN(t) {
13277
13283
  if (Array.isArray(t)) return t;
13278
13284
  }
13279
- var rN = typeof Qc == "function" ? Qc : Qc.default, iN = "file-invalid-type", oN = "file-too-large", sN = "file-too-small", aN = "too-many-files", lN = function() {
13285
+ var rN = typeof qc == "function" ? qc : qc.default, iN = "file-invalid-type", oN = "file-too-large", sN = "file-too-small", aN = "too-many-files", lN = function() {
13280
13286
  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];
13281
13287
  return {
13282
13288
  code: iN,
@@ -13406,9 +13412,9 @@ function EN(t) {
13406
13412
  if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
13407
13413
  }
13408
13414
  function AN(t) {
13409
- if (Array.isArray(t)) return bd(t);
13415
+ if (Array.isArray(t)) return vd(t);
13410
13416
  }
13411
- function eu(t, e) {
13417
+ function Qc(t, e) {
13412
13418
  return MN(t) || kN(t, e) || F1(t, e) || TN();
13413
13419
  }
13414
13420
  function TN() {
@@ -13417,13 +13423,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
13417
13423
  }
13418
13424
  function F1(t, e) {
13419
13425
  if (t) {
13420
- if (typeof t == "string") return bd(t, e);
13426
+ if (typeof t == "string") return vd(t, e);
13421
13427
  var n = Object.prototype.toString.call(t).slice(8, -1);
13422
13428
  if (n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set") return Array.from(t);
13423
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return bd(t, e);
13429
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return vd(t, e);
13424
13430
  }
13425
13431
  }
13426
- function bd(t, e) {
13432
+ function vd(t, e) {
13427
13433
  (e == null || e > t.length) && (e = t.length);
13428
13434
  for (var n = 0, r = new Array(e); n < e; n++)
13429
13435
  r[n] = t[n];
@@ -13465,14 +13471,14 @@ function Je(t) {
13465
13471
  for (var e = 1; e < arguments.length; e++) {
13466
13472
  var n = arguments[e] != null ? arguments[e] : {};
13467
13473
  e % 2 ? Ig(Object(n), !0).forEach(function(r) {
13468
- yd(t, r, n[r]);
13474
+ bd(t, r, n[r]);
13469
13475
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Ig(Object(n)).forEach(function(r) {
13470
13476
  Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
13471
13477
  });
13472
13478
  }
13473
13479
  return t;
13474
13480
  }
13475
- function yd(t, e, n) {
13481
+ function bd(t, e, n) {
13476
13482
  return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
13477
13483
  }
13478
13484
  function Ma(t, e) {
@@ -13688,7 +13694,7 @@ Ip.propTypes = {
13688
13694
  */
13689
13695
  validator: We.func
13690
13696
  };
13691
- var xd = {
13697
+ var yd = {
13692
13698
  isFocused: !1,
13693
13699
  isFileDialogActive: !1,
13694
13700
  isDragActive: !1,
@@ -13706,7 +13712,7 @@ function B1() {
13706
13712
  return typeof g == "function" ? g : Eg;
13707
13713
  }, [g]), J = we(function() {
13708
13714
  return typeof m == "function" ? m : Eg;
13709
- }, [m]), L = de(null), Y = de(null), F = vf(PN, xd), B = eu(F, 2), Q = B[0], re = B[1], P = Q.isFocused, _ = Q.isFileDialogActive, H = de(typeof window < "u" && window.isSecureContext && v && hN()), V = function() {
13715
+ }, [m]), L = de(null), Y = de(null), F = gf(PN, yd), B = Qc(F, 2), Q = B[0], re = B[1], P = Q.isFocused, _ = Q.isFileDialogActive, H = de(typeof window < "u" && window.isSecureContext && v && hN()), V = function() {
13710
13716
  !H.current && _ && setTimeout(function() {
13711
13717
  if (Y.current) {
13712
13718
  var U = Y.current.files;
@@ -13779,14 +13785,14 @@ function B1() {
13779
13785
  }, [L, u, A]), xe = fe(function(N, U) {
13780
13786
  var ye = [], Ie = [];
13781
13787
  N.forEach(function(nt) {
13782
- var Mr = P1(nt, G), gn = eu(Mr, 2), Or = gn[0], lo = gn[1], gi = R1(nt, s, o), vi = eu(gi, 2), bi = vi[0], xc = vi[1], Cc = R ? R(nt) : null;
13783
- if (Or && bi && !Cc)
13788
+ var Mr = P1(nt, G), gn = Qc(Mr, 2), Or = gn[0], lo = gn[1], gi = R1(nt, s, o), vi = Qc(gi, 2), bi = vi[0], yc = vi[1], xc = R ? R(nt) : null;
13789
+ if (Or && bi && !xc)
13784
13790
  ye.push(nt);
13785
13791
  else {
13786
- var wc = [lo, xc];
13787
- Cc && (wc = wc.concat(Cc)), Ie.push({
13792
+ var Cc = [lo, yc];
13793
+ xc && (Cc = Cc.concat(xc)), Ie.push({
13788
13794
  file: nt,
13789
- errors: wc.filter(function(YS) {
13795
+ errors: Cc.filter(function(YS) {
13790
13796
  return YS;
13791
13797
  })
13792
13798
  });
@@ -13857,8 +13863,8 @@ function B1() {
13857
13863
  A && U.stopPropagation();
13858
13864
  }, q = we(function() {
13859
13865
  return function() {
13860
- var N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, U = N.refKey, ye = U === void 0 ? "ref" : U, Ie = N.role, nt = N.onKeyDown, Mr = N.onFocus, gn = N.onBlur, Or = N.onClick, lo = N.onDragEnter, gi = N.onDragOver, vi = N.onDragLeave, bi = N.onDrop, xc = Ma(N, CN);
13861
- return Je(Je(yd({
13866
+ var N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, U = N.refKey, ye = U === void 0 ? "ref" : U, Ie = N.role, nt = N.onKeyDown, Mr = N.onFocus, gn = N.onBlur, Or = N.onClick, lo = N.onDragEnter, gi = N.onDragOver, vi = N.onDragLeave, bi = N.onDrop, yc = Ma(N, CN);
13867
+ return Je(Je(bd({
13862
13868
  onKeyDown: S(vn(nt, Xe)),
13863
13869
  onFocus: S(vn(Mr, ue)),
13864
13870
  onBlur: S(vn(gn, ke)),
@@ -13870,13 +13876,13 @@ function B1() {
13870
13876
  role: typeof Ie == "string" && Ie !== "" ? Ie : "presentation"
13871
13877
  }, ye, L), !r && !y ? {
13872
13878
  tabIndex: 0
13873
- } : {}), xc);
13879
+ } : {}), yc);
13874
13880
  };
13875
13881
  }, [L, Xe, ue, ke, wt, ie, ae, he, Re, y, E, r]), W = fe(function(N) {
13876
13882
  N.stopPropagation();
13877
13883
  }, []), j = we(function() {
13878
13884
  return function() {
13879
- var N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, U = N.refKey, ye = U === void 0 ? "ref" : U, Ie = N.onChange, nt = N.onClick, Mr = Ma(N, wN), gn = yd({
13885
+ var N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, U = N.refKey, ye = U === void 0 ? "ref" : U, Ie = N.onChange, nt = N.onClick, Mr = Ma(N, wN), gn = bd({
13880
13886
  accept: G,
13881
13887
  multiple: a,
13882
13888
  type: "file",
@@ -13919,7 +13925,7 @@ function PN(t, e) {
13919
13925
  isFocused: !1
13920
13926
  });
13921
13927
  case "openDialog":
13922
- return Je(Je({}, xd), {}, {
13928
+ return Je(Je({}, yd), {}, {
13923
13929
  isFileDialogActive: !0
13924
13930
  });
13925
13931
  case "closeDialog":
@@ -13939,7 +13945,7 @@ function PN(t, e) {
13939
13945
  isDragReject: e.isDragReject
13940
13946
  });
13941
13947
  case "reset":
13942
- return Je({}, xd);
13948
+ return Je({}, yd);
13943
13949
  default:
13944
13950
  return t;
13945
13951
  }
@@ -13959,19 +13965,19 @@ const RN = ({ dropzoneOptions: t, controlledFiles: e, onValueChange: n }) => {
13959
13965
  i((m) => ({ ...m, [p.name]: "success" }));
13960
13966
  }, h.readAsArrayBuffer(p);
13961
13967
  }), (f = (d = c[0]) == null ? void 0 : d.errors[0]) == null ? void 0 : f.code) {
13962
- case Xc.FileInvalidType:
13968
+ case $c.FileInvalidType:
13963
13969
  Mo({
13964
13970
  intent: "error",
13965
13971
  text: "Неверный формат файла. Загрузите в формате jpg/png/pdf"
13966
13972
  });
13967
13973
  break;
13968
- case Xc.FileTooLarge:
13974
+ case $c.FileTooLarge:
13969
13975
  Mo({
13970
13976
  intent: "error",
13971
13977
  text: `Файл слишком большой. Максимальный размер ${t.maxSize} МБ`
13972
13978
  });
13973
13979
  break;
13974
- case Xc.TooManyFiles:
13980
+ case $c.TooManyFiles:
13975
13981
  Mo({
13976
13982
  intent: "error",
13977
13983
  text: `Вы загрузили слишком много файлов. Максимальное количество ${t.maxFiles}`
@@ -14146,16 +14152,16 @@ function jN(t, e) {
14146
14152
  return a;
14147
14153
  }
14148
14154
  }
14149
- function Cd(t, e) {
14155
+ function xd(t, e) {
14150
14156
  (e == null || e > t.length) && (e = t.length);
14151
14157
  for (var n = 0, r = Array(e); n < e; n++) r[n] = t[n];
14152
14158
  return r;
14153
14159
  }
14154
14160
  function j1(t, e) {
14155
14161
  if (t) {
14156
- if (typeof t == "string") return Cd(t, e);
14162
+ if (typeof t == "string") return xd(t, e);
14157
14163
  var n = {}.toString.call(t).slice(8, -1);
14158
- return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Cd(t, e) : void 0;
14164
+ return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? xd(t, e) : void 0;
14159
14165
  }
14160
14166
  }
14161
14167
  function GN() {
@@ -14228,10 +14234,10 @@ function $N(t, e, n) {
14228
14234
  writable: !1
14229
14235
  }), t;
14230
14236
  }
14231
- function wd(t, e) {
14232
- return wd = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
14237
+ function Cd(t, e) {
14238
+ return Cd = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
14233
14239
  return n.__proto__ = r, n;
14234
- }, wd(t, e);
14240
+ }, Cd(t, e);
14235
14241
  }
14236
14242
  function XN(t, e) {
14237
14243
  if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
@@ -14243,7 +14249,7 @@ function XN(t, e) {
14243
14249
  }
14244
14250
  }), Object.defineProperty(t, "prototype", {
14245
14251
  writable: !1
14246
- }), e && wd(t, e);
14252
+ }), e && Cd(t, e);
14247
14253
  }
14248
14254
  function Oa(t) {
14249
14255
  return Oa = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
@@ -14281,7 +14287,7 @@ function JN(t) {
14281
14287
  };
14282
14288
  }
14283
14289
  function UN(t) {
14284
- if (Array.isArray(t)) return Cd(t);
14290
+ if (Array.isArray(t)) return xd(t);
14285
14291
  }
14286
14292
  function KN(t) {
14287
14293
  if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
@@ -14334,7 +14340,7 @@ var n2 = /* @__PURE__ */ function() {
14334
14340
  return (i = r.parentNode) == null ? void 0 : i.removeChild(r);
14335
14341
  }), this.tags = [], this.ctr = 0;
14336
14342
  }, t;
14337
- }(), St = "-ms-", Pa = "-moz-", De = "-webkit-", z1 = "comm", Ap = "rule", Tp = "decl", r2 = "@import", _1 = "@keyframes", i2 = "@layer", o2 = Math.abs, Kl = String.fromCharCode, s2 = Object.assign;
14343
+ }(), St = "-ms-", Pa = "-moz-", De = "-webkit-", z1 = "comm", Ap = "rule", Tp = "decl", r2 = "@import", _1 = "@keyframes", i2 = "@layer", o2 = Math.abs, Ul = String.fromCharCode, s2 = Object.assign;
14338
14344
  function a2(t, e) {
14339
14345
  return vt(t, 0) ^ 45 ? (((e << 2 ^ vt(t, 0)) << 2 ^ vt(t, 1)) << 2 ^ vt(t, 2)) << 2 ^ vt(t, 3) : 0;
14340
14346
  }
@@ -14347,7 +14353,7 @@ function l2(t, e) {
14347
14353
  function Ne(t, e, n) {
14348
14354
  return t.replace(e, n);
14349
14355
  }
14350
- function Sd(t, e) {
14356
+ function wd(t, e) {
14351
14357
  return t.indexOf(e);
14352
14358
  }
14353
14359
  function vt(t, e) {
@@ -14368,21 +14374,21 @@ function Bs(t, e) {
14368
14374
  function c2(t, e) {
14369
14375
  return t.map(e).join("");
14370
14376
  }
14371
- var ql = 1, Xi = 1, W1 = 0, zt = 0, st = 0, oo = "";
14372
- function Ql(t, e, n, r, i, o, s) {
14373
- return { value: t, root: e, parent: n, type: r, props: i, children: o, line: ql, column: Xi, length: s, return: "" };
14377
+ var Kl = 1, Xi = 1, W1 = 0, zt = 0, st = 0, oo = "";
14378
+ function ql(t, e, n, r, i, o, s) {
14379
+ return { value: t, root: e, parent: n, type: r, props: i, children: o, line: Kl, column: Xi, length: s, return: "" };
14374
14380
  }
14375
14381
  function go(t, e) {
14376
- return s2(Ql("", null, null, "", null, null, 0), t, { length: -t.length }, e);
14382
+ return s2(ql("", null, null, "", null, null, 0), t, { length: -t.length }, e);
14377
14383
  }
14378
14384
  function u2() {
14379
14385
  return st;
14380
14386
  }
14381
14387
  function d2() {
14382
- return st = zt > 0 ? vt(oo, --zt) : 0, Xi--, st === 10 && (Xi = 1, ql--), st;
14388
+ return st = zt > 0 ? vt(oo, --zt) : 0, Xi--, st === 10 && (Xi = 1, Kl--), st;
14383
14389
  }
14384
14390
  function Wt() {
14385
- return st = zt < W1 ? vt(oo, zt++) : 0, Xi++, st === 10 && (Xi = 1, ql++), st;
14391
+ return st = zt < W1 ? vt(oo, zt++) : 0, Xi++, st === 10 && (Xi = 1, Kl++), st;
14386
14392
  }
14387
14393
  function On() {
14388
14394
  return vt(oo, zt);
@@ -14426,13 +14432,13 @@ function Ko(t) {
14426
14432
  return 0;
14427
14433
  }
14428
14434
  function $1(t) {
14429
- return ql = Xi = 1, W1 = wn(oo = t), zt = 0, [];
14435
+ return Kl = Xi = 1, W1 = wn(oo = t), zt = 0, [];
14430
14436
  }
14431
14437
  function X1(t) {
14432
14438
  return oo = "", t;
14433
14439
  }
14434
14440
  function ia(t) {
14435
- return H1(Cs(zt - 1, Id(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
14441
+ return H1(Cs(zt - 1, Sd(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
14436
14442
  }
14437
14443
  function f2(t) {
14438
14444
  for (; (st = On()) && st < 33; )
@@ -14444,17 +14450,17 @@ function p2(t, e) {
14444
14450
  ;
14445
14451
  return Cs(t, ra() + (e < 6 && On() == 32 && Wt() == 32));
14446
14452
  }
14447
- function Id(t) {
14453
+ function Sd(t) {
14448
14454
  for (; Wt(); )
14449
14455
  switch (st) {
14450
14456
  case t:
14451
14457
  return zt;
14452
14458
  case 34:
14453
14459
  case 39:
14454
- t !== 34 && t !== 39 && Id(st);
14460
+ t !== 34 && t !== 39 && Sd(st);
14455
14461
  break;
14456
14462
  case 40:
14457
- t === 41 && Id(t);
14463
+ t === 41 && Sd(t);
14458
14464
  break;
14459
14465
  case 92:
14460
14466
  Wt();
@@ -14466,7 +14472,7 @@ function h2(t, e) {
14466
14472
  for (; Wt() && t + st !== 57; )
14467
14473
  if (t + st === 84 && On() === 47)
14468
14474
  break;
14469
- return "/*" + Cs(e, zt - 1) + "*" + Kl(t === 47 ? t : Wt());
14475
+ return "/*" + Cs(e, zt - 1) + "*" + Ul(t === 47 ? t : Wt());
14470
14476
  }
14471
14477
  function m2(t) {
14472
14478
  for (; !Ko(On()); )
@@ -14481,7 +14487,7 @@ function oa(t, e, n, r, i, o, s, a, l) {
14481
14487
  switch (h = b, b = Wt()) {
14482
14488
  case 40:
14483
14489
  if (h != 108 && vt(A, d - 1) == 58) {
14484
- Sd(A += Ne(ia(b), "&", "&\f"), "&\f") != -1 && (v = -1);
14490
+ wd(A += Ne(ia(b), "&", "&\f"), "&\f") != -1 && (v = -1);
14485
14491
  break;
14486
14492
  }
14487
14493
  case 34:
@@ -14549,7 +14555,7 @@ function oa(t, e, n, r, i, o, s, a, l) {
14549
14555
  else if (b == 125 && m++ == 0 && d2() == 125)
14550
14556
  continue;
14551
14557
  }
14552
- switch (A += Kl(b), b * m) {
14558
+ switch (A += Ul(b), b * m) {
14553
14559
  case 38:
14554
14560
  v = u > 0 ? 1 : (A += "\f", -1);
14555
14561
  break;
@@ -14569,13 +14575,13 @@ function kg(t, e, n, r, i, o, s, a, l, c, u) {
14569
14575
  for (var d = i - 1, f = i === 0 ? o : [""], p = kp(f), h = 0, m = 0, g = 0; h < r; ++h)
14570
14576
  for (var v = 0, b = Uo(t, d + 1, d = o2(m = s[h])), x = t; v < p; ++v)
14571
14577
  (x = H1(m > 0 ? f[v] + " " + b : Ne(b, /&\f/g, f[v]))) && (l[g++] = x);
14572
- return Ql(t, e, n, i === 0 ? Ap : a, l, c, u);
14578
+ return ql(t, e, n, i === 0 ? Ap : a, l, c, u);
14573
14579
  }
14574
14580
  function v2(t, e, n) {
14575
- return Ql(t, e, n, z1, Kl(u2()), Uo(t, 2, -2), 0);
14581
+ return ql(t, e, n, z1, Ul(u2()), Uo(t, 2, -2), 0);
14576
14582
  }
14577
14583
  function Mg(t, e, n, r) {
14578
- return Ql(t, e, n, Tp, Uo(t, 0, r), Uo(t, r + 1, -1), r);
14584
+ return ql(t, e, n, Tp, Uo(t, 0, r), Uo(t, r + 1, -1), r);
14579
14585
  }
14580
14586
  function Vi(t, e) {
14581
14587
  for (var n = "", r = kp(t), i = 0; i < r; i++)
@@ -14637,7 +14643,7 @@ var w2 = function(e, n, r) {
14637
14643
  break;
14638
14644
  }
14639
14645
  default:
14640
- e[r] += Kl(i);
14646
+ e[r] += Ul(i);
14641
14647
  }
14642
14648
  while (i = Wt());
14643
14649
  return e;
@@ -14749,13 +14755,13 @@ function Y1(t, e) {
14749
14755
  case 102:
14750
14756
  return Ne(t, /(.+:)(.+)-([^]+)/, "$1" + De + "$2-$3$1" + Pa + (vt(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
14751
14757
  case 115:
14752
- return ~Sd(t, "stretch") ? Y1(Ne(t, "stretch", "fill-available"), e) + t : t;
14758
+ return ~wd(t, "stretch") ? Y1(Ne(t, "stretch", "fill-available"), e) + t : t;
14753
14759
  }
14754
14760
  break;
14755
14761
  case 4949:
14756
14762
  if (vt(t, e + 1) !== 115) break;
14757
14763
  case 6444:
14758
- switch (vt(t, wn(t) - 3 - (~Sd(t, "!important") && 10))) {
14764
+ switch (vt(t, wn(t) - 3 - (~wd(t, "!important") && 10))) {
14759
14765
  case 107:
14760
14766
  return Ne(t, ":", ":" + De) + t;
14761
14767
  case 101:
@@ -14851,7 +14857,7 @@ var T2 = function(e, n, r, i) {
14851
14857
  insert: l
14852
14858
  };
14853
14859
  return h.sheet.hydrate(a), h;
14854
- }, Ed = { exports: {} }, Le = {};
14860
+ }, Id = { exports: {} }, Le = {};
14855
14861
  /** @license React v16.13.1
14856
14862
  * react-is.production.min.js
14857
14863
  *
@@ -15018,8 +15024,8 @@ function P2() {
15018
15024
  je.AsyncMode = y, je.ConcurrentMode = E, je.ContextConsumer = A, je.ContextProvider = T, je.Element = R, je.ForwardRef = G, je.Fragment = X, je.Lazy = z, je.Memo = J, je.Portal = L, je.Profiler = Y, je.StrictMode = F, je.Suspense = B, je.isAsyncMode = re, je.isConcurrentMode = P, je.isContextConsumer = _, je.isContextProvider = H, je.isElement = V, je.isForwardRef = K, je.isFragment = se, je.isLazy = ne, je.isMemo = ie, je.isPortal = ae, je.isProfiler = he, je.isStrictMode = xe, je.isSuspense = Re, je.isValidElementType = x, je.typeOf = w;
15019
15025
  }()), je;
15020
15026
  }
15021
- process.env.NODE_ENV === "production" ? Ed.exports = O2() : Ed.exports = P2();
15022
- var R2 = Ed.exports, Z1 = R2, D2 = {
15027
+ process.env.NODE_ENV === "production" ? Id.exports = O2() : Id.exports = P2();
15028
+ var R2 = Id.exports, Z1 = R2, D2 = {
15023
15029
  $$typeof: !0,
15024
15030
  render: !0,
15025
15031
  defaultProps: !0,
@@ -15136,7 +15142,7 @@ var j2 = {
15136
15142
  return e.charCodeAt(1) === 45;
15137
15143
  }, Dg = function(e) {
15138
15144
  return e != null && typeof e != "boolean";
15139
- }, tu = /* @__PURE__ */ C2(function(t) {
15145
+ }, eu = /* @__PURE__ */ C2(function(t) {
15140
15146
  return K1(t) ? t : t.replace(z2, "-$&").toLowerCase();
15141
15147
  }), Ng = function(e, n) {
15142
15148
  switch (e) {
@@ -15206,19 +15212,19 @@ function W2(t, e, n) {
15206
15212
  var s = n[o];
15207
15213
  if (typeof s != "object") {
15208
15214
  var a = s;
15209
- Dg(a) && (r += tu(o) + ":" + Ng(o, a) + ";");
15215
+ Dg(a) && (r += eu(o) + ":" + Ng(o, a) + ";");
15210
15216
  } else {
15211
15217
  if (o === "NO_COMPONENT_SELECTOR" && G2)
15212
15218
  throw new Error(H2);
15213
15219
  if (Array.isArray(s) && typeof s[0] == "string" && e == null)
15214
15220
  for (var l = 0; l < s.length; l++)
15215
- Dg(s[l]) && (r += tu(o) + ":" + Ng(o, s[l]) + ";");
15221
+ Dg(s[l]) && (r += eu(o) + ":" + Ng(o, s[l]) + ";");
15216
15222
  else {
15217
15223
  var c = qo(t, e, s);
15218
15224
  switch (o) {
15219
15225
  case "animation":
15220
15226
  case "animationName": {
15221
- r += tu(o) + ":" + c + ";";
15227
+ r += eu(o) + ":" + c + ";";
15222
15228
  break;
15223
15229
  }
15224
15230
  default:
@@ -15276,11 +15282,11 @@ var J2 = function(e) {
15276
15282
  var i = Me(Q1);
15277
15283
  return e(n, i, r);
15278
15284
  });
15279
- }, U2 = /* @__PURE__ */ I.createContext({}), Mp = {}.hasOwnProperty, Ad = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", K2 = function(e, n) {
15285
+ }, U2 = /* @__PURE__ */ I.createContext({}), Mp = {}.hasOwnProperty, Ed = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", K2 = function(e, n) {
15280
15286
  var r = {};
15281
15287
  for (var i in n)
15282
15288
  Mp.call(n, i) && (r[i] = n[i]);
15283
- return r[Ad] = e, r;
15289
+ return r[Ed] = e, r;
15284
15290
  }, q2 = function(e) {
15285
15291
  var n = e.cache, r = e.serialized, i = e.isStringTag;
15286
15292
  return U1(n, r, i), Y2(function() {
@@ -15291,13 +15297,13 @@ var J2 = function(e) {
15291
15297
  function(t, e, n) {
15292
15298
  var r = t.css;
15293
15299
  typeof r == "string" && e.registered[r] !== void 0 && (r = e.registered[r]);
15294
- var i = t[Ad], o = [r], s = "";
15300
+ var i = t[Ed], o = [r], s = "";
15295
15301
  typeof t.className == "string" ? s = V2(e.registered, o, t.className) : t.className != null && (s = t.className + " ");
15296
15302
  var a = q1(o, void 0, I.useContext(U2));
15297
15303
  s += e.key + "-" + a.name;
15298
15304
  var l = {};
15299
15305
  for (var c in t)
15300
- Mp.call(t, c) && c !== "css" && c !== Ad && !Z2 && (l[c] = t[c]);
15306
+ Mp.call(t, c) && c !== "css" && c !== Ed && !Z2 && (l[c] = t[c]);
15301
15307
  return l.className = s, n && (l.ref = n), /* @__PURE__ */ I.createElement(I.Fragment, null, /* @__PURE__ */ I.createElement(q2, {
15302
15308
  cache: e,
15303
15309
  serialized: a,
@@ -15337,7 +15343,7 @@ function nF(t, e) {
15337
15343
  }
15338
15344
  }));
15339
15345
  }
15340
- var Td = Qi, rF = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], Ra = function() {
15346
+ var Ad = Qi, rF = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], Ra = function() {
15341
15347
  };
15342
15348
  function iF(t, e) {
15343
15349
  return e ? e[0] === "-" ? t + e : t + "__" + e : t;
@@ -15368,17 +15374,17 @@ var Vg = function(e) {
15368
15374
  className: i(r ?? {}, s(n, e), a)
15369
15375
  };
15370
15376
  };
15371
- function ec(t) {
15377
+ function Ql(t) {
15372
15378
  return [document.documentElement, document.body, window].indexOf(t) > -1;
15373
15379
  }
15374
15380
  function sF(t) {
15375
- return ec(t) ? window.innerHeight : t.clientHeight;
15381
+ return Ql(t) ? window.innerHeight : t.clientHeight;
15376
15382
  }
15377
15383
  function tC(t) {
15378
- return ec(t) ? window.pageYOffset : t.scrollTop;
15384
+ return Ql(t) ? window.pageYOffset : t.scrollTop;
15379
15385
  }
15380
15386
  function Da(t, e) {
15381
- if (ec(t)) {
15387
+ if (Ql(t)) {
15382
15388
  window.scrollTo(0, e);
15383
15389
  return;
15384
15390
  }
@@ -15551,7 +15557,7 @@ var rC = function(e) {
15551
15557
  });
15552
15558
  }, iC = /* @__PURE__ */ qe(null), CF = function(e) {
15553
15559
  var n = e.children, r = e.minMenuHeight, i = e.maxMenuHeight, o = e.menuPlacement, s = e.menuPosition, a = e.menuShouldScrollIntoView, l = e.theme, c = Me(iC) || {}, u = c.setPortalPlacement, d = de(null), f = Oe(i), p = $n(f, 2), h = p[0], m = p[1], g = Oe(null), v = $n(g, 2), b = v[0], x = v[1], w = l.spacing.controlHeight;
15554
- return Td(function() {
15560
+ return Ad(function() {
15555
15561
  var y = d.current;
15556
15562
  if (y) {
15557
15563
  var E = s === "fixed", A = a && !E, T = bF({
@@ -15648,7 +15654,7 @@ var rC = function(e) {
15648
15654
  });
15649
15655
  }
15650
15656
  }, [i, a, f, v == null ? void 0 : v.offset, v == null ? void 0 : v.rect.left, v == null ? void 0 : v.rect.width]);
15651
- Td(function() {
15657
+ Ad(function() {
15652
15658
  x();
15653
15659
  }, [x]);
15654
15660
  var w = fe(function() {
@@ -15656,7 +15662,7 @@ var rC = function(e) {
15656
15662
  elementResize: "ResizeObserver" in window
15657
15663
  }));
15658
15664
  }, [i, x]);
15659
- Td(function() {
15665
+ Ad(function() {
15660
15666
  w();
15661
15667
  }, [w]);
15662
15668
  var y = fe(function(A) {
@@ -15816,7 +15822,7 @@ var zF = process.env.NODE_ENV === "production" ? {
15816
15822
  color: r ? s.neutral60 : s.neutral20,
15817
15823
  padding: a * 2
15818
15824
  });
15819
- }, nu = function(e) {
15825
+ }, tu = function(e) {
15820
15826
  var n = e.delay, r = e.offset;
15821
15827
  return pe("span", {
15822
15828
  css: /* @__PURE__ */ Op({
@@ -15839,13 +15845,13 @@ var zF = process.env.NODE_ENV === "production" ? {
15839
15845
  }), "loadingIndicator", {
15840
15846
  indicator: !0,
15841
15847
  "loading-indicator": !0
15842
- }), n), pe(nu, {
15848
+ }), n), pe(tu, {
15843
15849
  delay: 0,
15844
15850
  offset: r
15845
- }), pe(nu, {
15851
+ }), pe(tu, {
15846
15852
  delay: 160,
15847
15853
  offset: !0
15848
- }), pe(nu, {
15854
+ }), pe(tu, {
15849
15855
  delay: 320,
15850
15856
  offset: !r
15851
15857
  }));
@@ -16117,7 +16123,7 @@ var bV = function(e) {
16117
16123
  "single-value": !0,
16118
16124
  "single-value--is-disabled": r
16119
16125
  }), i), n);
16120
- }, kV = TV, tc = {
16126
+ }, kV = TV, ec = {
16121
16127
  ClearIndicator: $F,
16122
16128
  Control: QF,
16123
16129
  DropdownIndicator: HF,
@@ -16144,7 +16150,7 @@ var bV = function(e) {
16144
16150
  SingleValue: kV,
16145
16151
  ValueContainer: FF
16146
16152
  }, MV = function(e) {
16147
- return me(me({}, tc), e.components);
16153
+ return me(me({}, ec), e.components);
16148
16154
  }, Gg = Number.isNaN || function(e) {
16149
16155
  return typeof e == "number" && e !== e;
16150
16156
  };
@@ -16318,7 +16324,7 @@ var NV = process.env.NODE_ENV === "production" ? {
16318
16324
  "aria-relevant": "additions text",
16319
16325
  role: "log"
16320
16326
  }, s && !z && L));
16321
- }, LV = BV, kd = [{
16327
+ }, LV = BV, Td = [{
16322
16328
  base: "A",
16323
16329
  letters: "AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"
16324
16330
  }, {
@@ -16570,12 +16576,12 @@ var NV = process.env.NODE_ENV === "production" ? {
16570
16576
  }, {
16571
16577
  base: "z",
16572
16578
  letters: "zⓩzźẑżžẓẕƶȥɀⱬꝣ"
16573
- }], jV = new RegExp("[" + kd.map(function(t) {
16579
+ }], jV = new RegExp("[" + Td.map(function(t) {
16574
16580
  return t.letters;
16575
16581
  }).join("") + "]", "g"), dC = {};
16576
- for (var ru = 0; ru < kd.length; ru++)
16577
- for (var iu = kd[ru], ou = 0; ou < iu.letters.length; ou++)
16578
- dC[iu.letters[ou]] = iu.base;
16582
+ for (var nu = 0; nu < Td.length; nu++)
16583
+ for (var ru = Td[nu], iu = 0; iu < ru.letters.length; iu++)
16584
+ dC[ru.letters[iu]] = ru.base;
16579
16585
  var fC = function(e) {
16580
16586
  return e.replace(jV, function(n) {
16581
16587
  return dC[n];
@@ -16852,7 +16858,7 @@ var sB = function(e) {
16852
16858
  baseUnit: hC,
16853
16859
  controlHeight: pB,
16854
16860
  menuGutter: hB
16855
- }, su = {
16861
+ }, ou = {
16856
16862
  borderRadius: fB,
16857
16863
  colors: dB,
16858
16864
  spacing: mB
@@ -16981,7 +16987,7 @@ function yB(t, e) {
16981
16987
  var n = t.focusedOption;
16982
16988
  return n && e.indexOf(n) > -1 ? n : e[0];
16983
16989
  }
16984
- var au = function(e, n) {
16990
+ var su = function(e, n) {
16985
16991
  var r, i = (r = e.find(function(o) {
16986
16992
  return o.data === n;
16987
16993
  })) === null || r === void 0 ? void 0 : r.id;
@@ -17091,7 +17097,7 @@ var xC = function(e) {
17091
17097
  removedValue: u
17092
17098
  });
17093
17099
  }, i.getFocusedOptionId = function(l) {
17094
- return au(i.state.focusableOptionsWithIds, l);
17100
+ return su(i.state.focusableOptionsWithIds, l);
17095
17101
  }, i.getFocusableOptionsWithIds = function() {
17096
17102
  return Kg(sa(i.props, i.state.selectValue), i.getElementId("option"));
17097
17103
  }, i.getValue = function() {
@@ -17151,7 +17157,7 @@ var xC = function(e) {
17151
17157
  return i.focusInput();
17152
17158
  }));
17153
17159
  }, i.onScroll = function(l) {
17154
- typeof i.props.closeMenuOnScroll == "boolean" ? l.target instanceof HTMLElement && ec(l.target) && i.props.onMenuClose() : typeof i.props.closeMenuOnScroll == "function" && i.props.closeMenuOnScroll(l) && i.props.onMenuClose();
17160
+ typeof i.props.closeMenuOnScroll == "boolean" ? l.target instanceof HTMLElement && Ql(l.target) && i.props.onMenuClose() : typeof i.props.closeMenuOnScroll == "function" && i.props.closeMenuOnScroll(l) && i.props.onMenuClose();
17155
17161
  }, i.onCompositionStart = function() {
17156
17162
  i.isComposing = !0;
17157
17163
  }, i.onCompositionEnd = function() {
@@ -17296,7 +17302,7 @@ var xC = function(e) {
17296
17302
  }
17297
17303
  }, i.state.instancePrefix = "react-select-" + (i.props.instanceId || ++xB), i.state.selectValue = Vg(r.value), r.menuIsOpen && i.state.selectValue.length) {
17298
17304
  var o = i.getFocusableOptionsWithIds(), s = i.buildFocusableOptions(), a = s.indexOf(i.state.selectValue[0]);
17299
- i.state.focusableOptionsWithIds = o, i.state.focusedOption = s[a], i.state.focusedOptionId = au(o, s[a]);
17305
+ i.state.focusableOptionsWithIds = o, i.state.focusedOption = s[a], i.state.focusedOptionId = su(o, s[a]);
17300
17306
  }
17301
17307
  return i;
17302
17308
  }
@@ -17421,7 +17427,7 @@ var xC = function(e) {
17421
17427
  // Getters
17422
17428
  // ==============================
17423
17429
  function() {
17424
- return this.props.theme ? typeof this.props.theme == "function" ? this.props.theme(su) : me(me({}, su), this.props.theme) : su;
17430
+ return this.props.theme ? typeof this.props.theme == "function" ? this.props.theme(ou) : me(me({}, ou), this.props.theme) : ou;
17425
17431
  }
17426
17432
  )
17427
17433
  }, {
@@ -17890,7 +17896,7 @@ var xC = function(e) {
17890
17896
  value: function(i, o) {
17891
17897
  var s = o.prevProps, a = o.clearFocusValueOnUpdate, l = o.inputIsHiddenAfterUpdate, c = o.ariaSelection, u = o.isFocused, d = o.prevWasFocused, f = o.instancePrefix, p = i.options, h = i.value, m = i.menuIsOpen, g = i.inputValue, v = i.isMulti, b = Vg(h), x = {};
17892
17898
  if (s && (h !== s.value || p !== s.options || m !== s.menuIsOpen || g !== s.inputValue)) {
17893
- var w = m ? vB(i, b) : [], y = m ? Kg(sa(i, b), "".concat(f, "-option")) : [], E = a ? bB(o, b) : null, A = yB(o, w), T = au(y, A);
17899
+ var w = m ? vB(i, b) : [], y = m ? Kg(sa(i, b), "".concat(f, "-option")) : [], E = a ? bB(o, b) : null, A = yB(o, w), T = su(y, A);
17894
17900
  x = {
17895
17901
  selectValue: b,
17896
17902
  focusedOption: A,
@@ -17984,9 +17990,9 @@ const SB = (t, e, n) => ({
17984
17990
  )
17985
17991
  }
17986
17992
  ),
17987
- /* @__PURE__ */ C.jsx(tc.Option, { isSelected: t, ...n })
17993
+ /* @__PURE__ */ C.jsx(ec.Option, { isSelected: t, ...n })
17988
17994
  ] });
17989
- }, EB = ({ classes: t, ...e }) => /* @__PURE__ */ C.jsx(tc.DropdownIndicator, { ...e, children: /* @__PURE__ */ C.jsx(
17995
+ }, EB = ({ classes: t, ...e }) => /* @__PURE__ */ C.jsx(ec.DropdownIndicator, { ...e, children: /* @__PURE__ */ C.jsx(
17990
17996
  Fe,
17991
17997
  {
17992
17998
  name: "arrows/arrowRight",
@@ -17996,7 +18002,7 @@ const SB = (t, e, n) => ({
17996
18002
  t == null ? void 0 : t.indicatorIcon
17997
18003
  )
17998
18004
  }
17999
- ) }), AB = ({ classes: t, ...e }) => /* @__PURE__ */ C.jsx(tc.MultiValueRemove, { ...e, children: /* @__PURE__ */ C.jsx(Fe, { name: "general/close", className: O("size-4 text-icon-blue-grey-800", t == null ? void 0 : t.multiRemoveIcon) }) }), b$ = ({
18005
+ ) }), AB = ({ classes: t, ...e }) => /* @__PURE__ */ C.jsx(ec.MultiValueRemove, { ...e, children: /* @__PURE__ */ C.jsx(Fe, { name: "general/close", className: O("size-4 text-icon-blue-grey-800", t == null ? void 0 : t.multiRemoveIcon) }) }), b$ = ({
18000
18006
  options: t,
18001
18007
  control: e,
18002
18008
  defaultValue: n,
@@ -18177,7 +18183,7 @@ const SB = (t, e, n) => ({
18177
18183
  ...a
18178
18184
  }) => {
18179
18185
  const l = I.useId(), c = I.useRef(null), { menuIsOpen: u, currentCurrencyOption: d, onSelectOption: f, onToggleMenu: p, onCloseMenu: h } = kB(s);
18180
- return Tf(c, h), /* @__PURE__ */ C.jsx(
18186
+ return Af(c, h), /* @__PURE__ */ C.jsx(
18181
18187
  Xt,
18182
18188
  {
18183
18189
  control: r,
@@ -18633,9 +18639,9 @@ class Z {
18633
18639
  }
18634
18640
  }
18635
18641
  Z.empty = new Z([], 0);
18636
- const lu = { index: 0, offset: 0 };
18642
+ const au = { index: 0, offset: 0 };
18637
18643
  function zs(t, e) {
18638
- return lu.index = t, lu.offset = e, lu;
18644
+ return au.index = t, au.offset = e, au;
18639
18645
  }
18640
18646
  function Fa(t, e) {
18641
18647
  if (t === e)
@@ -18661,7 +18667,7 @@ function Fa(t, e) {
18661
18667
  }
18662
18668
  return !0;
18663
18669
  }
18664
- let $e = class Md {
18670
+ let $e = class kd {
18665
18671
  /**
18666
18672
  @internal
18667
18673
  */
@@ -18759,8 +18765,8 @@ let $e = class Md {
18759
18765
  */
18760
18766
  static setFrom(e) {
18761
18767
  if (!e || Array.isArray(e) && e.length == 0)
18762
- return Md.none;
18763
- if (e instanceof Md)
18768
+ return kd.none;
18769
+ if (e instanceof kd)
18764
18770
  return [e];
18765
18771
  let n = e.slice();
18766
18772
  return n.sort((r, i) => r.type.rank - i.type.rank), n;
@@ -18894,7 +18900,7 @@ function TC(t, e) {
18894
18900
  if (!e.type.compatibleContent(t.type))
18895
18901
  throw new Va("Cannot join " + e.type.name + " onto " + t.type.name);
18896
18902
  }
18897
- function Od(t, e, n) {
18903
+ function Md(t, e, n) {
18898
18904
  let r = t.node(n);
18899
18905
  return TC(r, e.node(n)), r;
18900
18906
  }
@@ -18913,13 +18919,13 @@ function qr(t, e) {
18913
18919
  return t.type.checkContent(e), t.copy(e);
18914
18920
  }
18915
18921
  function kC(t, e, n, r, i) {
18916
- let o = t.depth > i && Od(t, e, i + 1), s = r.depth > i && Od(n, r, i + 1), a = [];
18922
+ let o = t.depth > i && Md(t, e, i + 1), s = r.depth > i && Md(n, r, i + 1), a = [];
18917
18923
  return Fo(null, t, i, a), o && s && e.index(i) == n.index(i) ? (TC(o, s), Kr(qr(o, kC(t, e, n, r, i + 1)), a)) : (o && Kr(qr(o, Ba(t, e, i + 1)), a), Fo(e, n, i, a), s && Kr(qr(s, Ba(n, r, i + 1)), a)), Fo(r, null, i, a), new Z(a);
18918
18924
  }
18919
18925
  function Ba(t, e, n) {
18920
18926
  let r = [];
18921
18927
  if (Fo(null, t, n, r), t.depth > n) {
18922
- let i = Od(t, e, n + 1);
18928
+ let i = Md(t, e, n + 1);
18923
18929
  Kr(qr(i, Ba(t, e, n + 1)), r);
18924
18930
  }
18925
18931
  return Fo(e, null, n, r), new Z(r);
@@ -19227,7 +19233,7 @@ class La {
19227
19233
  }
19228
19234
  }
19229
19235
  const FB = /* @__PURE__ */ Object.create(null);
19230
- let mr = class Pd {
19236
+ let mr = class Od {
19231
19237
  /**
19232
19238
  @internal
19233
19239
  */
@@ -19346,14 +19352,14 @@ let mr = class Pd {
19346
19352
  the given content (or empty, if no content is given).
19347
19353
  */
19348
19354
  copy(e = null) {
19349
- return e == this.content ? this : new Pd(this.type, this.attrs, e, this.marks);
19355
+ return e == this.content ? this : new Od(this.type, this.attrs, e, this.marks);
19350
19356
  }
19351
19357
  /**
19352
19358
  Create a copy of this node, with the given set of marks instead
19353
19359
  of the node's own marks.
19354
19360
  */
19355
19361
  mark(e) {
19356
- return e == this.marks ? this : new Pd(this.type, this.attrs, this.content, e);
19362
+ return e == this.marks ? this : new Od(this.type, this.attrs, this.content, e);
19357
19363
  }
19358
19364
  /**
19359
19365
  Create a copy of this node with only the content between the
@@ -20213,7 +20219,7 @@ class XB {
20213
20219
  return !this.hasDefault;
20214
20220
  }
20215
20221
  }
20216
- class nc {
20222
+ class tc {
20217
20223
  /**
20218
20224
  @internal
20219
20225
  */
@@ -20235,7 +20241,7 @@ class nc {
20235
20241
  */
20236
20242
  static compile(e, n) {
20237
20243
  let r = /* @__PURE__ */ Object.create(null), i = 0;
20238
- return e.forEach((o, s) => r[o] = new nc(o, i++, n, s)), r;
20244
+ return e.forEach((o, s) => r[o] = new tc(o, i++, n, s)), r;
20239
20245
  }
20240
20246
  /**
20241
20247
  When there is a mark of this type in the given set, a new set
@@ -20277,7 +20283,7 @@ class BC {
20277
20283
  let n = this.spec = {};
20278
20284
  for (let i in e)
20279
20285
  n[i] = e[i];
20280
- n.nodes = mt.from(e.nodes), n.marks = mt.from(e.marks || {}), this.nodes = nv.compile(this.spec.nodes, this), this.marks = nc.compile(this.spec.marks, this);
20286
+ n.nodes = mt.from(e.nodes), n.marks = mt.from(e.marks || {}), this.nodes = nv.compile(this.spec.nodes, this), this.marks = tc.compile(this.spec.marks, this);
20281
20287
  let r = /* @__PURE__ */ Object.create(null);
20282
20288
  for (let i in this.nodes) {
20283
20289
  if (i in this.marks)
@@ -20882,7 +20888,7 @@ class hi {
20882
20888
  nodes.
20883
20889
  */
20884
20890
  serializeFragment(e, n = {}, r) {
20885
- r || (r = cu(n).createDocumentFragment());
20891
+ r || (r = lu(n).createDocumentFragment());
20886
20892
  let i = r, o = [];
20887
20893
  return e.forEach((s) => {
20888
20894
  if (o.length || s.marks.length) {
@@ -20911,7 +20917,7 @@ class hi {
20911
20917
  @internal
20912
20918
  */
20913
20919
  serializeNodeInner(e, n) {
20914
- let { dom: r, contentDOM: i } = aa(cu(n), this.nodes[e.type.name](e), null, e.attrs);
20920
+ let { dom: r, contentDOM: i } = aa(lu(n), this.nodes[e.type.name](e), null, e.attrs);
20915
20921
  if (i) {
20916
20922
  if (e.isLeaf)
20917
20923
  throw new RangeError("Content hole not allowed in a leaf node spec");
@@ -20939,7 +20945,7 @@ class hi {
20939
20945
  */
20940
20946
  serializeMark(e, n, r = {}) {
20941
20947
  let i = this.marks[e.type.name];
20942
- return i && aa(cu(r), i(e, n), null, e.attrs);
20948
+ return i && aa(lu(r), i(e, n), null, e.attrs);
20943
20949
  }
20944
20950
  static renderSpec(e, n, r = null, i) {
20945
20951
  return aa(e, n, r, i);
@@ -20974,7 +20980,7 @@ function lv(t) {
20974
20980
  }
20975
20981
  return e;
20976
20982
  }
20977
- function cu(t) {
20983
+ function lu(t) {
20978
20984
  return t.document || window.document;
20979
20985
  }
20980
20986
  const cv = /* @__PURE__ */ new WeakMap();
@@ -21049,7 +21055,7 @@ function tL(t) {
21049
21055
  return (t - (t & GC)) / zC;
21050
21056
  }
21051
21057
  const _C = 1, HC = 2, la = 4, WC = 8;
21052
- class Rd {
21058
+ class Pd {
21053
21059
  /**
21054
21060
  @internal
21055
21061
  */
@@ -21126,11 +21132,11 @@ class _t {
21126
21132
  if (r)
21127
21133
  return p;
21128
21134
  let h = e == (n < 0 ? l : d) ? null : eL(a / 3, e - l), m = e == l ? HC : e == d ? _C : la;
21129
- return (n < 0 ? e != l : e != d) && (m |= WC), new Rd(p, m, h);
21135
+ return (n < 0 ? e != l : e != d) && (m |= WC), new Pd(p, m, h);
21130
21136
  }
21131
21137
  i += u - c;
21132
21138
  }
21133
- return r ? e + i : new Rd(e + i, 0, null);
21139
+ return r ? e + i : new Pd(e + i, 0, null);
21134
21140
  }
21135
21141
  /**
21136
21142
  @internal
@@ -21286,10 +21292,10 @@ class Bi {
21286
21292
  }
21287
21293
  i |= a.delInfo, e = a.pos;
21288
21294
  }
21289
- return r ? e : new Rd(e, i, null);
21295
+ return r ? e : new Pd(e, i, null);
21290
21296
  }
21291
21297
  }
21292
- const uu = /* @__PURE__ */ Object.create(null);
21298
+ const cu = /* @__PURE__ */ Object.create(null);
21293
21299
  class Ot {
21294
21300
  /**
21295
21301
  Get the step map that represents the changes made by this step,
@@ -21314,7 +21320,7 @@ class Ot {
21314
21320
  static fromJSON(e, n) {
21315
21321
  if (!n || !n.stepType)
21316
21322
  throw new RangeError("Invalid input for Step.fromJSON");
21317
- let r = uu[n.stepType];
21323
+ let r = cu[n.stepType];
21318
21324
  if (!r)
21319
21325
  throw new RangeError(`No step type ${n.stepType} defined`);
21320
21326
  return r.fromJSON(e, n);
@@ -21326,9 +21332,9 @@ class Ot {
21326
21332
  that's unlikely to clash with steps from other modules.
21327
21333
  */
21328
21334
  static jsonID(e, n) {
21329
- if (e in uu)
21335
+ if (e in cu)
21330
21336
  throw new RangeError("Duplicate use of step JSON ID " + e);
21331
- return uu[e] = n, n.prototype.jsonID = e, n;
21337
+ return cu[e] = n, n.prototype.jsonID = e, n;
21332
21338
  }
21333
21339
  }
21334
21340
  class at {
@@ -21544,7 +21550,7 @@ class dt extends Ot {
21544
21550
  super(), this.from = e, this.to = n, this.slice = r, this.structure = i;
21545
21551
  }
21546
21552
  apply(e) {
21547
- return this.structure && Dd(e, this.from, this.to) ? at.fail("Structure replace would overwrite content") : at.fromReplace(e, this.from, this.to, this.slice);
21553
+ return this.structure && Rd(e, this.from, this.to) ? at.fail("Structure replace would overwrite content") : at.fromReplace(e, this.from, this.to, this.slice);
21548
21554
  }
21549
21555
  getMap() {
21550
21556
  return new _t([this.from, this.to - this.from, this.slice.size]);
@@ -21593,7 +21599,7 @@ class ft extends Ot {
21593
21599
  super(), this.from = e, this.to = n, this.gapFrom = r, this.gapTo = i, this.slice = o, this.insert = s, this.structure = a;
21594
21600
  }
21595
21601
  apply(e) {
21596
- if (this.structure && (Dd(e, this.from, this.gapFrom) || Dd(e, this.gapTo, this.to)))
21602
+ if (this.structure && (Rd(e, this.from, this.gapFrom) || Rd(e, this.gapTo, this.to)))
21597
21603
  return at.fail("Structure gap-replace would overwrite content");
21598
21604
  let n = e.slice(this.gapFrom, this.gapTo);
21599
21605
  if (n.openStart || n.openEnd)
@@ -21640,7 +21646,7 @@ class ft extends Ot {
21640
21646
  }
21641
21647
  }
21642
21648
  Ot.jsonID("replaceAround", ft);
21643
- function Dd(t, e, n) {
21649
+ function Rd(t, e, n) {
21644
21650
  let r = t.resolve(e), i = n - e, o = r.depth;
21645
21651
  for (; i > 0 && o > 0 && r.indexAfter(o) == r.node(o).childCount; )
21646
21652
  o--, i--;
@@ -21675,7 +21681,7 @@ function rL(t, e, n, r) {
21675
21681
  return;
21676
21682
  o++;
21677
21683
  let l = null;
21678
- if (r instanceof nc) {
21684
+ if (r instanceof tc) {
21679
21685
  let c = s.marks, u;
21680
21686
  for (; u = r.isInSet(c); )
21681
21687
  (l || (l = [])).push(u), c = u.removeFromSet(c);
@@ -21874,7 +21880,7 @@ function pL(t, e) {
21874
21880
  function YC(t, e) {
21875
21881
  return !!(t && e && !t.isLeaf && pL(t, e));
21876
21882
  }
21877
- function rc(t, e, n = -1) {
21883
+ function nc(t, e, n = -1) {
21878
21884
  let r = t.resolve(e);
21879
21885
  for (let i = r.depth; ; i--) {
21880
21886
  let o, s, a = r.index(i);
@@ -21947,7 +21953,7 @@ function ZC(t, e, n) {
21947
21953
  }
21948
21954
  return null;
21949
21955
  }
21950
- function ic(t, e, n = e, r = le.empty) {
21956
+ function rc(t, e, n = e, r = le.empty) {
21951
21957
  if (e == n && !r.size)
21952
21958
  return null;
21953
21959
  let i = t.resolve(e), o = t.resolve(n);
@@ -22002,7 +22008,7 @@ class gL {
22002
22008
  for (let n = 1; n <= 2; n++)
22003
22009
  for (let r = n == 1 ? e : this.unplaced.openStart; r >= 0; r--) {
22004
22010
  let i, o = null;
22005
- r ? (o = du(this.unplaced.content, r - 1).firstChild, i = o.content) : i = this.unplaced.content;
22011
+ r ? (o = uu(this.unplaced.content, r - 1).firstChild, i = o.content) : i = this.unplaced.content;
22006
22012
  let s = i.firstChild;
22007
22013
  for (let a = this.depth; a >= 0; a--) {
22008
22014
  let { type: l, match: c } = this.frontier[a], u, d = null;
@@ -22016,11 +22022,11 @@ class gL {
22016
22022
  }
22017
22023
  }
22018
22024
  openMore() {
22019
- let { content: e, openStart: n, openEnd: r } = this.unplaced, i = du(e, n);
22025
+ let { content: e, openStart: n, openEnd: r } = this.unplaced, i = uu(e, n);
22020
22026
  return !i.childCount || i.firstChild.isLeaf ? !1 : (this.unplaced = new le(e, n + 1, Math.max(r, i.size + n >= e.size - r ? n + 1 : 0)), !0);
22021
22027
  }
22022
22028
  dropNode() {
22023
- let { content: e, openStart: n, openEnd: r } = this.unplaced, i = du(e, n);
22029
+ let { content: e, openStart: n, openEnd: r } = this.unplaced, i = uu(e, n);
22024
22030
  if (i.childCount <= 1 && n > 0) {
22025
22031
  let o = e.size - n <= n + i.size;
22026
22032
  this.unplaced = new le(Ao(e, n - 1, 1), n - 1, o ? n - 1 : r);
@@ -22061,7 +22067,7 @@ class gL {
22061
22067
  if (!this.$to.parent.isTextblock)
22062
22068
  return -1;
22063
22069
  let e = this.frontier[this.depth], n;
22064
- if (!e.type.isTextblock || !fu(this.$to, this.$to.depth, e.type, e.match, !1) || this.$to.depth == this.depth && (n = this.findCloseLevel(this.$to)) && n.depth == this.depth)
22070
+ if (!e.type.isTextblock || !du(this.$to, this.$to.depth, e.type, e.match, !1) || this.$to.depth == this.depth && (n = this.findCloseLevel(this.$to)) && n.depth == this.depth)
22065
22071
  return -1;
22066
22072
  let { depth: r } = this.$to, i = this.$to.after(r);
22067
22073
  for (; r > 1 && i == this.$to.end(--r); )
@@ -22070,10 +22076,10 @@ class gL {
22070
22076
  }
22071
22077
  findCloseLevel(e) {
22072
22078
  e: for (let n = Math.min(this.depth, e.depth); n >= 0; n--) {
22073
- let { match: r, type: i } = this.frontier[n], o = n < e.depth && e.end(n + 1) == e.pos + (e.depth - (n + 1)), s = fu(e, n, i, r, o);
22079
+ let { match: r, type: i } = this.frontier[n], o = n < e.depth && e.end(n + 1) == e.pos + (e.depth - (n + 1)), s = du(e, n, i, r, o);
22074
22080
  if (s) {
22075
22081
  for (let a = n - 1; a >= 0; a--) {
22076
- let { match: l, type: c } = this.frontier[a], u = fu(e, a, c, l, !0);
22082
+ let { match: l, type: c } = this.frontier[a], u = du(e, a, c, l, !0);
22077
22083
  if (!u || u.childCount)
22078
22084
  continue e;
22079
22085
  }
@@ -22109,7 +22115,7 @@ function Ao(t, e, n) {
22109
22115
  function To(t, e, n) {
22110
22116
  return e == 0 ? t.append(n) : t.replaceChild(t.childCount - 1, t.lastChild.copy(To(t.lastChild.content, e - 1, n)));
22111
22117
  }
22112
- function du(t, e) {
22118
+ function uu(t, e) {
22113
22119
  for (let n = 0; n < e; n++)
22114
22120
  t = t.firstChild.content;
22115
22121
  return t;
@@ -22120,7 +22126,7 @@ function UC(t, e, n) {
22120
22126
  let r = t.content;
22121
22127
  return e > 1 && (r = r.replaceChild(0, UC(r.firstChild, e - 1, r.childCount == 1 ? n - 1 : 0))), e > 0 && (r = t.type.contentMatch.fillBefore(r).append(r), n <= 0 && (r = r.append(t.type.contentMatch.matchFragment(r).fillBefore(Z.empty, !0)))), t.copy(r);
22122
22128
  }
22123
- function fu(t, e, n, r, i) {
22129
+ function du(t, e, n, r, i) {
22124
22130
  let o = t.node(e), s = i ? t.indexAfter(e) : t.index(e);
22125
22131
  if (s == o.childCount && !n.compatibleContent(o.type))
22126
22132
  return null;
@@ -22355,7 +22361,7 @@ class QC {
22355
22361
  given `slice`.
22356
22362
  */
22357
22363
  replace(e, n = e, r = le.empty) {
22358
- let i = ic(this.doc, e, n, r);
22364
+ let i = rc(this.doc, e, n, r);
22359
22365
  return i && this.step(i), this;
22360
22366
  }
22361
22367
  /**
@@ -22526,7 +22532,7 @@ class QC {
22526
22532
  return Np(this, e, n, r), this;
22527
22533
  }
22528
22534
  }
22529
- const pu = /* @__PURE__ */ Object.create(null);
22535
+ const fu = /* @__PURE__ */ Object.create(null);
22530
22536
  class Ee {
22531
22537
  /**
22532
22538
  Initialize a selection with the head and anchor and ranges. If no
@@ -22662,7 +22668,7 @@ class Ee {
22662
22668
  static fromJSON(e, n) {
22663
22669
  if (!n || !n.type)
22664
22670
  throw new RangeError("Invalid input for Selection.fromJSON");
22665
- let r = pu[n.type];
22671
+ let r = fu[n.type];
22666
22672
  if (!r)
22667
22673
  throw new RangeError(`No selection type ${n.type} defined`);
22668
22674
  return r.fromJSON(e, n);
@@ -22674,9 +22680,9 @@ class Ee {
22674
22680
  clash with classes from other modules.
22675
22681
  */
22676
22682
  static jsonID(e, n) {
22677
- if (e in pu)
22683
+ if (e in fu)
22678
22684
  throw new RangeError("Duplicate use of selection JSON ID " + e);
22679
- return pu[e] = n, n.prototype.jsonID = e, n;
22685
+ return fu[e] = n, n.prototype.jsonID = e, n;
22680
22686
  }
22681
22687
  /**
22682
22688
  Get a [bookmark](https://prosemirror.net/docs/ref/#state.SelectionBookmark) for this selection,
@@ -22735,7 +22741,7 @@ class Ce extends Ee {
22735
22741
  return e instanceof Ce && e.anchor == this.anchor && e.head == this.head;
22736
22742
  }
22737
22743
  getBookmark() {
22738
- return new oc(this.anchor, this.head);
22744
+ return new ic(this.anchor, this.head);
22739
22745
  }
22740
22746
  toJSON() {
22741
22747
  return { type: "text", anchor: this.anchor, head: this.head };
@@ -22776,12 +22782,12 @@ class Ce extends Ee {
22776
22782
  }
22777
22783
  }
22778
22784
  Ee.jsonID("text", Ce);
22779
- class oc {
22785
+ class ic {
22780
22786
  constructor(e, n) {
22781
22787
  this.anchor = e, this.head = n;
22782
22788
  }
22783
22789
  map(e) {
22784
- return new oc(e.map(this.anchor), e.map(this.head));
22790
+ return new ic(e.map(this.anchor), e.map(this.head));
22785
22791
  }
22786
22792
  resolve(e) {
22787
22793
  return Ce.between(e.resolve(this.anchor), e.resolve(this.head));
@@ -22842,7 +22848,7 @@ class Vp {
22842
22848
  }
22843
22849
  map(e) {
22844
22850
  let { deleted: n, pos: r } = e.mapResult(this.anchor);
22845
- return n ? new oc(r, r) : new Vp(r);
22851
+ return n ? new ic(r, r) : new Vp(r);
22846
22852
  }
22847
22853
  resolve(e) {
22848
22854
  let n = e.resolve(this.anchor), r = n.nodeAfter;
@@ -23115,7 +23121,7 @@ const EL = [
23115
23121
  }
23116
23122
  })
23117
23123
  ];
23118
- class hu {
23124
+ class pu {
23119
23125
  constructor(e, n) {
23120
23126
  this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = EL.slice(), n && n.forEach((r) => {
23121
23127
  if (this.pluginsByKey[r.key])
@@ -23216,7 +23222,7 @@ class Ni {
23216
23222
  Create a new state.
23217
23223
  */
23218
23224
  static create(e) {
23219
- let n = new hu(e.doc ? e.doc.type.schema : e.schema, e.plugins), r = new Ni(n);
23225
+ let n = new pu(e.doc ? e.doc.type.schema : e.schema, e.plugins), r = new Ni(n);
23220
23226
  for (let i = 0; i < n.fields.length; i++)
23221
23227
  r[n.fields[i].name] = n.fields[i].init(e, r);
23222
23228
  return r;
@@ -23230,7 +23236,7 @@ class Ni {
23230
23236
  configuration object..
23231
23237
  */
23232
23238
  reconfigure(e) {
23233
- let n = new hu(this.schema, e.plugins), r = n.fields, i = new Ni(n);
23239
+ let n = new pu(this.schema, e.plugins), r = n.fields, i = new Ni(n);
23234
23240
  for (let o = 0; o < r.length; o++) {
23235
23241
  let s = r[o].name;
23236
23242
  i[s] = this.hasOwnProperty(s) ? this[s] : r[o].init(e, i);
@@ -23267,7 +23273,7 @@ class Ni {
23267
23273
  throw new RangeError("Invalid input for EditorState.fromJSON");
23268
23274
  if (!e.schema)
23269
23275
  throw new RangeError("Required config field 'schema' missing");
23270
- let i = new hu(e.schema, e.plugins), o = new Ni(i);
23276
+ let i = new pu(e.schema, e.plugins), o = new Ni(i);
23271
23277
  return i.fields.forEach((s) => {
23272
23278
  if (s.name == "doc")
23273
23279
  o.doc = mr.fromJSON(e.schema, n.doc);
@@ -23310,9 +23316,9 @@ class Ct {
23310
23316
  return e[this.key];
23311
23317
  }
23312
23318
  }
23313
- const mu = /* @__PURE__ */ Object.create(null);
23319
+ const hu = /* @__PURE__ */ Object.create(null);
23314
23320
  function tw(t) {
23315
- return t in mu ? t + "$" + ++mu[t] : (mu[t] = 0, t + "$");
23321
+ return t in hu ? t + "$" + ++hu[t] : (hu[t] = 0, t + "$");
23316
23322
  }
23317
23323
  class Zt {
23318
23324
  /**
@@ -23343,12 +23349,12 @@ const bt = function(t) {
23343
23349
  let e = t.assignedSlot || t.parentNode;
23344
23350
  return e && e.nodeType == 11 ? e.host : e;
23345
23351
  };
23346
- let Nd = null;
23352
+ let Dd = null;
23347
23353
  const jn = function(t, e, n) {
23348
- let r = Nd || (Nd = document.createRange());
23354
+ let r = Dd || (Dd = document.createRange());
23349
23355
  return r.setEnd(t, n ?? t.nodeValue.length), r.setStart(t, e || 0), r;
23350
23356
  }, AL = function() {
23351
- Nd = null;
23357
+ Dd = null;
23352
23358
  }, ai = function(t, e, n, r) {
23353
23359
  return n && (bv(t, e, n, r, -1) || bv(t, e, n, r, 1));
23354
23360
  }, TL = /^(img|br|input|textarea|hr)$/i;
@@ -23416,7 +23422,7 @@ function ws(t) {
23416
23422
  ;
23417
23423
  return e && e.node && e.node.isBlock && (e.dom == t || e.contentDOM == t);
23418
23424
  }
23419
- const sc = function(t) {
23425
+ const oc = function(t) {
23420
23426
  return t.focusNode && ai(t.focusNode, t.focusOffset, t.anchorNode, t.anchorOffset);
23421
23427
  };
23422
23428
  function Br(t, e) {
@@ -23443,9 +23449,9 @@ function RL(t, e, n) {
23443
23449
  return { node: r.startContainer, offset: Math.min(nn(r.startContainer), r.startOffset) };
23444
23450
  }
23445
23451
  }
23446
- const Pn = typeof navigator < "u" ? navigator : null, yv = typeof document < "u" ? document : null, Tr = Pn && Pn.userAgent || "", Fd = /Edge\/(\d+)/.exec(Tr), nw = /MSIE \d/.exec(Tr), Vd = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Tr), Gt = !!(nw || Vd || Fd), vr = nw ? document.documentMode : Vd ? +Vd[1] : Fd ? +Fd[1] : 0, dn = !Gt && /gecko\/(\d+)/i.test(Tr);
23452
+ const Pn = typeof navigator < "u" ? navigator : null, yv = typeof document < "u" ? document : null, Tr = Pn && Pn.userAgent || "", Nd = /Edge\/(\d+)/.exec(Tr), nw = /MSIE \d/.exec(Tr), Fd = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Tr), Gt = !!(nw || Fd || Nd), vr = nw ? document.documentMode : Fd ? +Fd[1] : Nd ? +Nd[1] : 0, dn = !Gt && /gecko\/(\d+)/i.test(Tr);
23447
23453
  dn && +(/Firefox\/(\d+)/.exec(Tr) || [0, 0])[1];
23448
- const Bd = !Gt && /Chrome\/(\d+)/.exec(Tr), Tt = !!Bd, rw = Bd ? +Bd[1] : 0, Nt = !Gt && !!Pn && /Apple Computer/.test(Pn.vendor), Ji = Nt && (/Mobile\/\w+/.test(Tr) || !!Pn && Pn.maxTouchPoints > 2), en = Ji || (Pn ? /Mac/.test(Pn.platform) : !1), DL = Pn ? /Win/.test(Pn.platform) : !1, an = /Android \d/.test(Tr), Ss = !!yv && "webkitFontSmoothing" in yv.documentElement.style, NL = Ss ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
23454
+ const Vd = !Gt && /Chrome\/(\d+)/.exec(Tr), Tt = !!Vd, rw = Vd ? +Vd[1] : 0, Nt = !Gt && !!Pn && /Apple Computer/.test(Pn.vendor), Ji = Nt && (/Mobile\/\w+/.test(Tr) || !!Pn && Pn.maxTouchPoints > 2), en = Ji || (Pn ? /Mac/.test(Pn.platform) : !1), DL = Pn ? /Win/.test(Pn.platform) : !1, an = /Android \d/.test(Tr), Ss = !!yv && "webkitFontSmoothing" in yv.documentElement.style, NL = Ss ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
23449
23455
  function FL(t) {
23450
23456
  let e = t.defaultView && t.defaultView.visualViewport;
23451
23457
  return e ? {
@@ -23679,14 +23685,14 @@ function lw(t, e, n) {
23679
23685
  if (o == null && i && (n < 0 || i == nn(r))) {
23680
23686
  let l = r.childNodes[i - 1];
23681
23687
  if (l.nodeType == 1)
23682
- return gu(l.getBoundingClientRect(), !1);
23688
+ return mu(l.getBoundingClientRect(), !1);
23683
23689
  }
23684
23690
  if (o == null && i < nn(r)) {
23685
23691
  let l = r.childNodes[i];
23686
23692
  if (l.nodeType == 1)
23687
- return gu(l.getBoundingClientRect(), !0);
23693
+ return mu(l.getBoundingClientRect(), !0);
23688
23694
  }
23689
- return gu(r.getBoundingClientRect(), n >= 0);
23695
+ return mu(r.getBoundingClientRect(), n >= 0);
23690
23696
  }
23691
23697
  if (o == null && i && (n < 0 || i == nn(r))) {
23692
23698
  let l = r.childNodes[i - 1], c = l.nodeType == 3 ? jn(l, nn(l) - (s ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
@@ -23709,7 +23715,7 @@ function bo(t, e) {
23709
23715
  let n = e ? t.left : t.right;
23710
23716
  return { top: t.top, bottom: t.bottom, left: n, right: n };
23711
23717
  }
23712
- function gu(t, e) {
23718
+ function mu(t, e) {
23713
23719
  if (t.height == 0)
23714
23720
  return t;
23715
23721
  let n = e ? t.top : t.bottom;
@@ -24194,7 +24200,7 @@ class li extends Is {
24194
24200
  }
24195
24201
  slice(e, n, r) {
24196
24202
  let i = li.create(this.parent, this.mark, !0, r), o = this.children, s = this.size;
24197
- n < s && (o = jd(o, n, s, r)), e > 0 && (o = jd(o, 0, e, r));
24203
+ n < s && (o = Ld(o, n, s, r)), e > 0 && (o = Ld(o, 0, e, r));
24198
24204
  for (let a = 0; a < o.length; a++)
24199
24205
  o[a].parent = i;
24200
24206
  return i.children = o, i;
@@ -24234,7 +24240,7 @@ class br extends Is {
24234
24240
  } else u || ({ dom: u, contentDOM: d } = hi.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
24235
24241
  !d && !n.isText && u.nodeName != "BR" && (u.hasAttribute("contenteditable") || (u.contentEditable = "false"), n.type.spec.draggable && (u.draggable = !0));
24236
24242
  let f = u;
24237
- return u = hw(u, r, n), c ? l = new KL(e, n, r, i, u, d || null, f, c, o, s + 1) : n.isText ? new ac(e, n, r, i, u, f, o) : new br(e, n, r, i, u, d || null, f, o, s + 1);
24243
+ return u = hw(u, r, n), c ? l = new KL(e, n, r, i, u, d || null, f, c, o, s + 1) : n.isText ? new sc(e, n, r, i, u, f, o) : new br(e, n, r, i, u, d || null, f, o, s + 1);
24238
24244
  }
24239
24245
  parseRule() {
24240
24246
  if (this.node.type.spec.reparseInView)
@@ -24304,7 +24310,7 @@ class br extends Is {
24304
24310
  o.pmViewDesc && (o.pmViewDesc = void 0);
24305
24311
  }
24306
24312
  let s = new UL(this, o, n, i);
24307
- e.input.compositionNodes.push(s), this.children = jd(this.children, r, r + i.length, e, s);
24313
+ e.input.compositionNodes.push(s), this.children = Ld(this.children, r, r + i.length, e, s);
24308
24314
  }
24309
24315
  // If this desc must be updated to match the given node decoration,
24310
24316
  // do so and return true.
@@ -24318,7 +24324,7 @@ class br extends Is {
24318
24324
  if (_a(e, this.outerDeco))
24319
24325
  return;
24320
24326
  let n = this.nodeDOM.nodeType != 1, r = this.dom;
24321
- this.dom = pw(this.dom, this.nodeDOM, Ld(this.outerDeco, this.node, n), Ld(e, this.node, n)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = e;
24327
+ this.dom = pw(this.dom, this.nodeDOM, Bd(this.outerDeco, this.node, n), Bd(e, this.node, n)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = e;
24322
24328
  }
24323
24329
  // Mark this node as being the selected node.
24324
24330
  selectNode() {
@@ -24337,7 +24343,7 @@ function Av(t, e, n, r, i) {
24337
24343
  let o = new br(void 0, t, e, n, r, r, r, i, 0);
24338
24344
  return o.contentDOM && o.updateChildren(i, 0), o;
24339
24345
  }
24340
- class ac extends br {
24346
+ class sc extends br {
24341
24347
  constructor(e, n, r, i, o, s, a) {
24342
24348
  super(e, n, r, i, o, null, s, a, 0);
24343
24349
  }
@@ -24368,7 +24374,7 @@ class ac extends br {
24368
24374
  }
24369
24375
  slice(e, n, r) {
24370
24376
  let i = this.node.cut(e, n), o = document.createTextNode(i.text);
24371
- return new ac(this.parent, i, this.outerDeco, this.innerDeco, o, o, r);
24377
+ return new sc(this.parent, i, this.outerDeco, this.innerDeco, o, o, r);
24372
24378
  }
24373
24379
  markDirty(e, n) {
24374
24380
  super.markDirty(e, n), this.dom != this.nodeDOM && (e == 0 || n == this.nodeDOM.nodeValue.length) && (this.dirty = Rn);
@@ -24452,7 +24458,7 @@ const Bo = function(t) {
24452
24458
  };
24453
24459
  Bo.prototype = /* @__PURE__ */ Object.create(null);
24454
24460
  const Wr = [new Bo()];
24455
- function Ld(t, e, n) {
24461
+ function Bd(t, e, n) {
24456
24462
  if (t.length == 0)
24457
24463
  return Wr;
24458
24464
  let r = n ? Wr[0] : new Bo(), i = [r];
@@ -24505,7 +24511,7 @@ function qL(t, e, n) {
24505
24511
  }
24506
24512
  }
24507
24513
  function hw(t, e, n) {
24508
- return pw(t, t, Wr, Ld(e, n, t.nodeType != 1));
24514
+ return pw(t, t, Wr, Bd(e, n, t.nodeType != 1));
24509
24515
  }
24510
24516
  function _a(t, e) {
24511
24517
  if (t.length != e.length)
@@ -24653,7 +24659,7 @@ class QL {
24653
24659
  for (; e instanceof li; )
24654
24660
  n = e, e = n.children[n.children.length - 1];
24655
24661
  (!e || // Empty textblock
24656
- !(e instanceof ac) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((Nt || Tt) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
24662
+ !(e instanceof sc) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((Nt || Tt) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
24657
24663
  }
24658
24664
  addHackNode(e, n) {
24659
24665
  if (n == this.top && this.index < n.children.length && n.children[this.index].matchesHack(e))
@@ -24777,7 +24783,7 @@ function ij(t, e, n, r) {
24777
24783
  }
24778
24784
  return -1;
24779
24785
  }
24780
- function jd(t, e, n, r, i) {
24786
+ function Ld(t, e, n, r, i) {
24781
24787
  let o = [];
24782
24788
  for (let s = 0, a = 0; s < t.length; s++) {
24783
24789
  let l = t[s], c = a, u = a += l.size;
@@ -24793,7 +24799,7 @@ function Lp(t, e = null) {
24793
24799
  if (s < 0)
24794
24800
  return null;
24795
24801
  let a = r.resolve(s), l, c;
24796
- if (sc(n)) {
24802
+ if (oc(n)) {
24797
24803
  for (l = s; i && !i.node; )
24798
24804
  i = i.parent;
24799
24805
  let d = i.node;
@@ -24849,15 +24855,15 @@ const kv = Nt || Tt && rw < 63;
24849
24855
  function Mv(t, e) {
24850
24856
  let { node: n, offset: r } = t.docView.domFromPos(e, 0), i = r < n.childNodes.length ? n.childNodes[r] : null, o = r ? n.childNodes[r - 1] : null;
24851
24857
  if (Nt && i && i.contentEditable == "false")
24852
- return vu(i);
24858
+ return gu(i);
24853
24859
  if ((!i || i.contentEditable == "false") && (!o || o.contentEditable == "false")) {
24854
24860
  if (i)
24855
- return vu(i);
24861
+ return gu(i);
24856
24862
  if (o)
24857
- return vu(o);
24863
+ return gu(o);
24858
24864
  }
24859
24865
  }
24860
- function vu(t) {
24866
+ function gu(t) {
24861
24867
  return t.contentEditable = "true", Nt && t.draggable && (t.draggable = !1, t.wasDraggable = !0), t;
24862
24868
  }
24863
24869
  function Ov(t) {
@@ -24910,7 +24916,7 @@ function aj(t) {
24910
24916
  let e = t.docView.domFromPos(t.state.selection.anchor, 0), n = t.domSelectionRange();
24911
24917
  return ai(e.node, e.offset, n.anchorNode, n.anchorOffset);
24912
24918
  }
24913
- function Gd(t, e) {
24919
+ function jd(t, e) {
24914
24920
  let { $anchor: n, $head: r } = t.selection, i = e > 0 ? n.max(r) : n.min(r), o = i.parent.inlineContent ? i.depth ? t.doc.resolve(e > 0 ? i.after() : i.before()) : null : i;
24915
24921
  return o && Ee.findFrom(o, e);
24916
24922
  }
@@ -24928,7 +24934,7 @@ function Dv(t, e, n) {
24928
24934
  return ir(t, new Ce(r.$anchor, s));
24929
24935
  } else if (r.empty) {
24930
24936
  if (t.endOfTextblock(e > 0 ? "forward" : "backward")) {
24931
- let i = Gd(t.state, e);
24937
+ let i = jd(t.state, e);
24932
24938
  return i && i instanceof ge ? ir(t, i) : !1;
24933
24939
  } else if (!(en && n.indexOf("m") > -1)) {
24934
24940
  let i = r.$head, o = i.textOffset ? null : e < 0 ? i.nodeBefore : i.nodeAfter, s;
@@ -24942,7 +24948,7 @@ function Dv(t, e, n) {
24942
24948
  if (r instanceof ge && r.node.isInline)
24943
24949
  return ir(t, new Ce(e > 0 ? r.$to : r.$from));
24944
24950
  {
24945
- let i = Gd(t.state, e);
24951
+ let i = jd(t.state, e);
24946
24952
  return i ? ir(t, i) : !1;
24947
24953
  }
24948
24954
  }
@@ -24991,7 +24997,7 @@ function lj(t) {
24991
24997
  }
24992
24998
  }
24993
24999
  }
24994
- s ? zd(t, n, r) : i && zd(t, i, o);
25000
+ s ? Gd(t, n, r) : i && Gd(t, i, o);
24995
25001
  }
24996
25002
  function cj(t) {
24997
25003
  let e = t.domSelectionRange(), n = e.focusNode, r = e.focusOffset;
@@ -25023,7 +25029,7 @@ function cj(t) {
25023
25029
  }
25024
25030
  }
25025
25031
  }
25026
- o && zd(t, o, s);
25032
+ o && Gd(t, o, s);
25027
25033
  }
25028
25034
  function bw(t) {
25029
25035
  let e = t.pmViewDesc;
@@ -25053,7 +25059,7 @@ function dj(t, e) {
25053
25059
  t = n, e = t.childNodes.length;
25054
25060
  }
25055
25061
  }
25056
- function zd(t, e, n) {
25062
+ function Gd(t, e, n) {
25057
25063
  if (e.nodeType != 3) {
25058
25064
  let o, s;
25059
25065
  (s = uj(e, n)) ? (e = s, n = 0) : (o = dj(e, n)) && (e = o, n = o.nodeValue.length);
@@ -25061,7 +25067,7 @@ function zd(t, e, n) {
25061
25067
  let r = t.domSelection();
25062
25068
  if (!r)
25063
25069
  return;
25064
- if (sc(r)) {
25070
+ if (oc(r)) {
25065
25071
  let o = document.createRange();
25066
25072
  o.setEnd(e, n), o.setStart(e, n), r.removeAllRanges(), r.addRange(o);
25067
25073
  } else r.extend && r.extend(e, n);
@@ -25094,7 +25100,7 @@ function Fv(t, e, n) {
25094
25100
  return !1;
25095
25101
  let { $from: i, $to: o } = r;
25096
25102
  if (!i.parent.inlineContent || t.endOfTextblock(e < 0 ? "up" : "down")) {
25097
- let s = Gd(t.state, e);
25103
+ let s = jd(t.state, e);
25098
25104
  if (s && s instanceof ge)
25099
25105
  return ir(t, s);
25100
25106
  }
@@ -25289,12 +25295,12 @@ function Sw(t, e) {
25289
25295
  let n = t.content.replaceChild(t.childCount - 1, Sw(t.lastChild, e - 1)), r = t.contentMatchAt(t.childCount).fillBefore(Z.empty, !0);
25290
25296
  return t.copy(n.append(r));
25291
25297
  }
25292
- function _d(t, e, n, r, i, o) {
25298
+ function zd(t, e, n, r, i, o) {
25293
25299
  let s = e < 0 ? t.firstChild : t.lastChild, a = s.content;
25294
- return t.childCount > 1 && (o = 0), i < r - 1 && (a = _d(a, e, n, r, i + 1, o)), i >= n && (a = e < 0 ? s.contentMatchAt(0).fillBefore(a, o <= i).append(a) : a.append(s.contentMatchAt(s.childCount).fillBefore(Z.empty, !0))), t.replaceChild(e < 0 ? 0 : t.childCount - 1, s.copy(a));
25300
+ return t.childCount > 1 && (o = 0), i < r - 1 && (a = zd(a, e, n, r, i + 1, o)), i >= n && (a = e < 0 ? s.contentMatchAt(0).fillBefore(a, o <= i).append(a) : a.append(s.contentMatchAt(s.childCount).fillBefore(Z.empty, !0))), t.replaceChild(e < 0 ? 0 : t.childCount - 1, s.copy(a));
25295
25301
  }
25296
25302
  function Lv(t, e, n) {
25297
- return e < t.openStart && (t = new le(_d(t.content, -1, e, t.openStart, 0, t.openEnd), e, t.openEnd)), n < t.openEnd && (t = new le(_d(t.content, 1, n, t.openEnd, 0, 0), t.openStart, n)), t;
25303
+ return e < t.openStart && (t = new le(zd(t.content, -1, e, t.openStart, 0, t.openEnd), e, t.openEnd)), n < t.openEnd && (t = new le(zd(t.content, 1, n, t.openEnd, 0, 0), t.openStart, n)), t;
25298
25304
  }
25299
25305
  const Iw = {
25300
25306
  thead: ["table"],
@@ -25311,10 +25317,10 @@ let jv = null;
25311
25317
  function Ew() {
25312
25318
  return jv || (jv = document.implementation.createHTMLDocument("title"));
25313
25319
  }
25314
- let bu = null;
25320
+ let vu = null;
25315
25321
  function vj(t) {
25316
25322
  let e = window.trustedTypes;
25317
- return e ? (bu || (bu = e.createPolicy("ProseMirrorClipboard", { createHTML: (n) => n })), bu.createHTML(t)) : t;
25323
+ return e ? (vu || (vu = e.createPolicy("ProseMirrorClipboard", { createHTML: (n) => n })), vu.createHTML(t)) : t;
25318
25324
  }
25319
25325
  function bj(t) {
25320
25326
  let e = /^(\s*<meta [^>]*>)*/.exec(t);
@@ -25363,7 +25369,7 @@ function Sj(t) {
25363
25369
  Ej(t, r) && !Gp(t, r) && (t.editable || !(r.type in Vt)) && n(t, r);
25364
25370
  }, Cj[e] ? { passive: !0 } : void 0);
25365
25371
  }
25366
- Nt && t.dom.addEventListener("input", () => null), Hd(t);
25372
+ Nt && t.dom.addEventListener("input", () => null), _d(t);
25367
25373
  }
25368
25374
  function pr(t, e) {
25369
25375
  t.input.lastSelectionOrigin = e, t.input.lastSelectionTime = Date.now();
@@ -25374,7 +25380,7 @@ function Ij(t) {
25374
25380
  t.dom.removeEventListener(e, t.input.eventHandlers[e]);
25375
25381
  clearTimeout(t.input.composingTimeout), clearTimeout(t.input.lastIOSEnterFallbackTimeout);
25376
25382
  }
25377
- function Hd(t) {
25383
+ function _d(t) {
25378
25384
  t.someProp("handleDOMEvents", (e) => {
25379
25385
  for (let n in e)
25380
25386
  t.input.eventHandlers[n] || t.dom.addEventListener(n, t.input.eventHandlers[n] = (r) => Gp(t, r));
@@ -25426,7 +25432,7 @@ Vt.keypress = (t, e) => {
25426
25432
  !/[\r\n]/.test(i) && !t.someProp("handleTextInput", (o) => o(t, r.$from.pos, r.$to.pos, i)) && t.dispatch(t.state.tr.insertText(i).scrollIntoView()), n.preventDefault();
25427
25433
  }
25428
25434
  };
25429
- function lc(t) {
25435
+ function ac(t) {
25430
25436
  return { left: t.clientX, top: t.clientY };
25431
25437
  }
25432
25438
  function Tj(t, e) {
@@ -25505,7 +25511,7 @@ Ft.mousedown = (t, e) => {
25505
25511
  t.input.shiftKey = n.shiftKey;
25506
25512
  let r = _p(t), i = Date.now(), o = "singleClick";
25507
25513
  i - t.input.lastClick.time < 500 && Tj(n, t.input.lastClick) && !n[Aw] && (t.input.lastClick.type == "singleClick" ? o = "doubleClick" : t.input.lastClick.type == "doubleClick" && (o = "tripleClick")), t.input.lastClick = { time: i, x: n.clientX, y: n.clientY, type: o };
25508
- let s = t.posAtCoords(lc(n));
25514
+ let s = t.posAtCoords(ac(n));
25509
25515
  s && (o == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new Nj(t, s, n, !!r)) : (o == "doubleClick" ? Pj : Rj)(t, s.pos, s.inside, n) ? n.preventDefault() : pr(t, "pointer"));
25510
25516
  };
25511
25517
  class Nj {
@@ -25537,7 +25543,7 @@ class Nj {
25537
25543
  if (this.done(), !this.view.dom.contains(e.target))
25538
25544
  return;
25539
25545
  let n = this.pos;
25540
- this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(lc(e))), this.updateAllowDefault(e), this.allowDefault || !n ? pr(this.view, "pointer") : Oj(this.view, n.pos, n.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
25546
+ this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(ac(e))), this.updateAllowDefault(e), this.allowDefault || !n ? pr(this.view, "pointer") : Oj(this.view, n.pos, n.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
25541
25547
  Nt && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
25542
25548
  // cursor, but still report that the node is selected
25543
25549
  // when asked through getSelection. You'll then get a
@@ -25695,7 +25701,7 @@ Ft.dragstart = (t, e) => {
25695
25701
  let n = e, r = t.input.mouseDown;
25696
25702
  if (r && r.done(), !n.dataTransfer)
25697
25703
  return;
25698
- let i = t.state.selection, o = i.empty ? null : t.posAtCoords(lc(n)), s;
25704
+ let i = t.state.selection, o = i.empty ? null : t.posAtCoords(ac(n)), s;
25699
25705
  if (!(o && o.pos >= i.from && o.pos <= (i instanceof ge ? i.to - 1 : i.to))) {
25700
25706
  if (r && r.mightDrag)
25701
25707
  s = ge.create(t.state.doc, r.mightDrag.pos);
@@ -25718,7 +25724,7 @@ Vt.drop = (t, e) => {
25718
25724
  let n = e, r = t.dragging;
25719
25725
  if (t.dragging = null, !n.dataTransfer)
25720
25726
  return;
25721
- let i = t.posAtCoords(lc(n));
25727
+ let i = t.posAtCoords(ac(n));
25722
25728
  if (!i)
25723
25729
  return;
25724
25730
  let o = t.state.doc.resolve(i.pos), s = r && r.slice;
@@ -26276,7 +26282,7 @@ function Gv(t, e, n) {
26276
26282
  e++;
26277
26283
  t.splice(e, 0, n);
26278
26284
  }
26279
- function yu(t) {
26285
+ function bu(t) {
26280
26286
  let e = [];
26281
26287
  return t.someProp("decorations", (n) => {
26282
26288
  let r = n(t.state);
@@ -26412,7 +26418,7 @@ class Xj {
26412
26418
  }
26413
26419
  }
26414
26420
  let c = null;
26415
- o < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && sc(r) && (c = Lp(e)) && c.eq(Ee.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, Xn(e), this.currentSelection.set(r), e.scrollToSelection()) : (o > -1 || i) && (o > -1 && (e.docView.markDirty(o, s), Yj(e)), this.handleDOMChange(o, s, a, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || Xn(e), this.currentSelection.set(r));
26421
+ o < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && oc(r) && (c = Lp(e)) && c.eq(Ee.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, Xn(e), this.currentSelection.set(r), e.scrollToSelection()) : (o > -1 || i) && (o > -1 && (e.docView.markDirty(o, s), Yj(e)), this.handleDOMChange(o, s, a, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || Xn(e), this.currentSelection.set(r));
26416
26422
  }
26417
26423
  registerMutation(e, n) {
26418
26424
  if (n.indexOf(e.target) > -1)
@@ -26481,7 +26487,7 @@ function Jj(t, e) {
26481
26487
  }
26482
26488
  function Uj(t, e, n) {
26483
26489
  let { node: r, fromOffset: i, toOffset: o, from: s, to: a } = t.docView.parseRange(e, n), l = t.domSelectionRange(), c, u = l.anchorNode;
26484
- if (u && t.dom.contains(u.nodeType == 1 ? u : u.parentNode) && (c = [{ node: u, offset: l.anchorOffset }], sc(l) || c.push({ node: l.focusNode, offset: l.focusOffset })), Tt && t.input.lastKeyCode === 8)
26490
+ if (u && t.dom.contains(u.nodeType == 1 ? u : u.parentNode) && (c = [{ node: u, offset: l.anchorOffset }], oc(l) || c.push({ node: l.focusNode, offset: l.focusOffset })), Tt && t.input.lastKeyCode === 8)
26485
26491
  for (let g = o; g > i; g--) {
26486
26492
  let v = r.childNodes[g - 1], b = v.pmViewDesc;
26487
26493
  if (v.nodeName == "BR" && !b) {
@@ -26619,7 +26625,7 @@ function t4(t, e, n, r, i) {
26619
26625
  if (
26620
26626
  // The content must have shrunk
26621
26627
  n - e <= i.pos - r.pos || // newEnd must point directly at or after the end of the block that newStart points into
26622
- xu(r, !0, !1) < i.pos
26628
+ yu(r, !0, !1) < i.pos
26623
26629
  )
26624
26630
  return !1;
26625
26631
  let o = t.resolve(e);
@@ -26629,10 +26635,10 @@ function t4(t, e, n, r, i) {
26629
26635
  }
26630
26636
  if (o.parentOffset < o.parent.content.size || !o.parent.isTextblock)
26631
26637
  return !1;
26632
- let s = t.resolve(xu(o, !0, !0));
26633
- return !s.parent.isTextblock || s.pos > n || xu(s, !0, !1) < n ? !1 : r.parent.content.cut(r.parentOffset).eq(s.parent.content);
26638
+ let s = t.resolve(yu(o, !0, !0));
26639
+ return !s.parent.isTextblock || s.pos > n || yu(s, !0, !1) < n ? !1 : r.parent.content.cut(r.parentOffset).eq(s.parent.content);
26634
26640
  }
26635
- function xu(t, e, n) {
26641
+ function yu(t, e, n) {
26636
26642
  let r = t.depth, i = e ? t.end() : t.pos;
26637
26643
  for (; r > 0 && (e || t.indexAfter(r) == t.node(r).childCount); )
26638
26644
  r--, i++, e = !1;
@@ -26676,7 +26682,7 @@ class r4 {
26676
26682
  added to the document.
26677
26683
  */
26678
26684
  constructor(e, n) {
26679
- this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new wj(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(Uv), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = Zv(this), Yv(this), this.nodeViews = Jv(this), this.docView = Av(this.state.doc, Xv(this), yu(this), this.dom, this), this.domObserver = new Xj(this, (r, i, o, s) => Qj(this, r, i, o, s)), this.domObserver.start(), Sj(this), this.updatePluginViews();
26685
+ this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new wj(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(Uv), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = Zv(this), Yv(this), this.nodeViews = Jv(this), this.docView = Av(this.state.doc, Xv(this), bu(this), this.dom, this), this.domObserver = new Xj(this, (r, i, o, s) => Qj(this, r, i, o, s)), this.domObserver.start(), Sj(this), this.updatePluginViews();
26680
26686
  }
26681
26687
  /**
26682
26688
  Holds `true` when a
@@ -26704,7 +26710,7 @@ class r4 {
26704
26710
  the DOM.
26705
26711
  */
26706
26712
  update(e) {
26707
- e.handleDOMEvents != this._props.handleDOMEvents && Hd(this);
26713
+ e.handleDOMEvents != this._props.handleDOMEvents && _d(this);
26708
26714
  let n = this._props;
26709
26715
  this._props = e, e.plugins && (e.plugins.forEach(Uv), this.directPlugins = e.plugins), this.updateStateInner(e.state, n);
26710
26716
  }
@@ -26738,8 +26744,8 @@ class r4 {
26738
26744
  let p = Jv(this);
26739
26745
  o4(p, this.nodeViews) && (this.nodeViews = p, o = !0);
26740
26746
  }
26741
- (a || n.handleDOMEvents != this._props.handleDOMEvents) && Hd(this), this.editable = Zv(this), Yv(this);
26742
- let l = yu(this), c = Xv(this), u = i.plugins != e.plugins && !i.doc.eq(e.doc) ? "reset" : e.scrollToSelection > i.scrollToSelection ? "to selection" : "preserve", d = o || !this.docView.matchesNode(e.doc, c, l);
26747
+ (a || n.handleDOMEvents != this._props.handleDOMEvents) && _d(this), this.editable = Zv(this), Yv(this);
26748
+ let l = bu(this), c = Xv(this), u = i.plugins != e.plugins && !i.doc.eq(e.doc) ? "reset" : e.scrollToSelection > i.scrollToSelection ? "to selection" : "preserve", d = o || !this.docView.matchesNode(e.doc, c, l);
26743
26749
  (d || !e.selection.eq(i.selection)) && (s = !0);
26744
26750
  let f = u == "preserve" && s && this.dom.style.overflowAnchor == null && BL(this);
26745
26751
  if (s) {
@@ -26956,7 +26962,7 @@ class r4 {
26956
26962
  views](https://prosemirror.net/docs/ref/#view.NodeView).
26957
26963
  */
26958
26964
  destroy() {
26959
- this.docView && (Ij(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], yu(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, AL());
26965
+ this.docView && (Ij(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], bu(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, AL());
26960
26966
  }
26961
26967
  /**
26962
26968
  This is true when the view has been
@@ -27127,7 +27133,7 @@ for (var yt = 0; yt < 10; yt++) Sr[48 + yt] = Sr[96 + yt] = String(yt);
27127
27133
  for (var yt = 1; yt <= 24; yt++) Sr[yt + 111] = "F" + yt;
27128
27134
  for (var yt = 65; yt <= 90; yt++)
27129
27135
  Sr[yt] = String.fromCharCode(yt + 32), Ya[yt] = String.fromCharCode(yt);
27130
- for (var Cu in Sr) Ya.hasOwnProperty(Cu) || (Ya[Cu] = Sr[Cu]);
27136
+ for (var xu in Sr) Ya.hasOwnProperty(xu) || (Ya[xu] = Sr[xu]);
27131
27137
  function l4(t) {
27132
27138
  var e = s4 && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || a4 && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ? Ya : Sr)[t.keyCode] || t.key || "Unidentified";
27133
27139
  return n == "Esc" && (n = "Escape"), n == "Del" && (n = "Delete"), n == "Left" && (n = "ArrowLeft"), n == "Up" && (n = "ArrowUp"), n == "Right" && (n = "ArrowRight"), n == "Down" && (n = "ArrowDown"), n;
@@ -27160,7 +27166,7 @@ function d4(t) {
27160
27166
  e[u4(n)] = t[n];
27161
27167
  return e;
27162
27168
  }
27163
- function wu(t, e, n = !0) {
27169
+ function Cu(t, e, n = !0) {
27164
27170
  return e.altKey && (t = "Alt-" + t), e.ctrlKey && (t = "Ctrl-" + t), e.metaKey && (t = "Meta-" + t), n && e.shiftKey && (t = "Shift-" + t), t;
27165
27171
  }
27166
27172
  function f4(t) {
@@ -27169,17 +27175,17 @@ function f4(t) {
27169
27175
  function Vw(t) {
27170
27176
  let e = d4(t);
27171
27177
  return function(n, r) {
27172
- let i = l4(r), o, s = e[wu(i, r)];
27178
+ let i = l4(r), o, s = e[Cu(i, r)];
27173
27179
  if (s && s(n.state, n.dispatch, n))
27174
27180
  return !0;
27175
27181
  if (i.length == 1 && i != " ") {
27176
27182
  if (r.shiftKey) {
27177
- let a = e[wu(i, r, !1)];
27183
+ let a = e[Cu(i, r, !1)];
27178
27184
  if (a && a(n.state, n.dispatch, n))
27179
27185
  return !0;
27180
27186
  }
27181
27187
  if ((r.shiftKey || r.altKey || r.metaKey || i.charCodeAt(0) > 127) && (o = Sr[r.keyCode]) && o != i) {
27182
- let a = e[wu(o, r)];
27188
+ let a = e[Cu(o, r)];
27183
27189
  if (a && a(n.state, n.dispatch, n))
27184
27190
  return !0;
27185
27191
  }
@@ -27206,7 +27212,7 @@ const h4 = (t, e, n) => {
27206
27212
  return !0;
27207
27213
  if (r.parent.content.size == 0 && (Ui(o, "end") || ge.isSelectable(o)))
27208
27214
  for (let s = r.depth; ; s--) {
27209
- let a = ic(t.doc, r.before(s), r.after(s), le.empty);
27215
+ let a = rc(t.doc, r.before(s), r.after(s), le.empty);
27210
27216
  if (a && a.slice.size < a.to - a.from) {
27211
27217
  if (e) {
27212
27218
  let l = t.tr.step(a);
@@ -27250,7 +27256,7 @@ function Lw(t, e, n) {
27250
27256
  return !1;
27251
27257
  a = u;
27252
27258
  }
27253
- let c = ic(t.doc, o, l, le.empty);
27259
+ let c = rc(t.doc, o, l, le.empty);
27254
27260
  if (!c || c.from != o || c instanceof dt && c.slice.size >= l - o)
27255
27261
  return !1;
27256
27262
  if (n) {
@@ -27305,7 +27311,7 @@ const b4 = (t, e, n) => {
27305
27311
  if (zw(t, i, e, 1))
27306
27312
  return !0;
27307
27313
  if (r.parent.content.size == 0 && (Ui(o, "start") || ge.isSelectable(o))) {
27308
- let s = ic(t.doc, r.before(), r.after(), le.empty);
27314
+ let s = rc(t.doc, r.before(), r.after(), le.empty);
27309
27315
  if (s && s.slice.size < s.to - s.from) {
27310
27316
  if (e) {
27311
27317
  let a = t.tr.step(s);
@@ -27344,7 +27350,7 @@ const x4 = (t, e) => {
27344
27350
  if (n.node.isTextblock || !Ar(t.doc, n.from))
27345
27351
  return !1;
27346
27352
  i = n.from;
27347
- } else if (i = rc(t.doc, n.from, -1), i == null)
27353
+ } else if (i = nc(t.doc, n.from, -1), i == null)
27348
27354
  return !1;
27349
27355
  if (e) {
27350
27356
  let o = t.tr.join(i);
@@ -27357,7 +27363,7 @@ const x4 = (t, e) => {
27357
27363
  if (n.node.isTextblock || !Ar(t.doc, n.to))
27358
27364
  return !1;
27359
27365
  r = n.to;
27360
- } else if (r = rc(t.doc, n.to, 1), r == null)
27366
+ } else if (r = nc(t.doc, n.to, 1), r == null)
27361
27367
  return !1;
27362
27368
  return e && e(t.tr.join(r).scrollIntoView()), !0;
27363
27369
  }, w4 = (t, e) => {
@@ -27582,7 +27588,7 @@ function B4(t) {
27582
27588
  return !0;
27583
27589
  };
27584
27590
  }
27585
- function cc(t) {
27591
+ function lc(t) {
27586
27592
  const { state: e, transaction: n } = t;
27587
27593
  let { selection: r } = n, { doc: i } = n, { storedMarks: o } = n;
27588
27594
  return {
@@ -27607,7 +27613,7 @@ function cc(t) {
27607
27613
  }
27608
27614
  };
27609
27615
  }
27610
- class uc {
27616
+ class cc {
27611
27617
  constructor(e) {
27612
27618
  this.editor = e.editor, this.rawCommands = this.editor.extensionManager.commands, this.customState = e.state;
27613
27619
  }
@@ -27652,7 +27658,7 @@ class uc {
27652
27658
  tr: e,
27653
27659
  editor: i,
27654
27660
  view: s,
27655
- state: cc({
27661
+ state: lc({
27656
27662
  state: o,
27657
27663
  transaction: e
27658
27664
  }),
@@ -27698,7 +27704,7 @@ function ce(t, e, n) {
27698
27704
  parent: t.parent ? ce(t.parent, e, n) : null
27699
27705
  }) : t.config[e];
27700
27706
  }
27701
- function dc(t) {
27707
+ function uc(t) {
27702
27708
  const e = t.filter((i) => i.type === "extension"), n = t.filter((i) => i.type === "node"), r = t.filter((i) => i.type === "mark");
27703
27709
  return {
27704
27710
  baseExtensions: e,
@@ -27707,7 +27713,7 @@ function dc(t) {
27707
27713
  };
27708
27714
  }
27709
27715
  function Hw(t) {
27710
- const e = [], { nodeExtensions: n, markExtensions: r } = dc(t), i = [...n, ...r], o = {
27716
+ const e = [], { nodeExtensions: n, markExtensions: r } = uc(t), i = [...n, ...r], o = {
27711
27717
  default: null,
27712
27718
  rendered: !0,
27713
27719
  renderHTML: null,
@@ -27793,7 +27799,7 @@ function lt(...t) {
27793
27799
  }), r;
27794
27800
  }, {});
27795
27801
  }
27796
- function Wd(t, e) {
27802
+ function Hd(t, e) {
27797
27803
  return e.filter((n) => n.type === t.type.name).filter((n) => n.attribute.rendered).map((n) => n.attribute.renderHTML ? n.attribute.renderHTML(t.attrs) || {} : {
27798
27804
  [n.name]: t.attrs[n.name]
27799
27805
  }).reduce((n, r) => lt(n, r), {});
@@ -27836,7 +27842,7 @@ function Qv(t) {
27836
27842
  }
27837
27843
  function z4(t, e) {
27838
27844
  var n;
27839
- const r = Hw(t), { nodeExtensions: i, markExtensions: o } = dc(t), s = (n = i.find((c) => ce(c, "topNode"))) === null || n === void 0 ? void 0 : n.name, a = Object.fromEntries(i.map((c) => {
27845
+ const r = Hw(t), { nodeExtensions: i, markExtensions: o } = uc(t), s = (n = i.find((c) => ce(c, "topNode"))) === null || n === void 0 ? void 0 : n.name, a = Object.fromEntries(i.map((c) => {
27840
27846
  const u = r.filter((v) => v.type === c.name), d = {
27841
27847
  name: c.name,
27842
27848
  options: c.options,
@@ -27871,7 +27877,7 @@ function z4(t, e) {
27871
27877
  const m = ce(c, "renderHTML", d);
27872
27878
  m && (p.toDOM = (v) => m({
27873
27879
  node: v,
27874
- HTMLAttributes: Wd(v, u)
27880
+ HTMLAttributes: Hd(v, u)
27875
27881
  }));
27876
27882
  const g = ce(c, "renderText", d);
27877
27883
  return g && (p.toText = g), [c.name, p];
@@ -27903,7 +27909,7 @@ function z4(t, e) {
27903
27909
  const m = ce(c, "renderHTML", d);
27904
27910
  return m && (p.toDOM = (g) => m({
27905
27911
  mark: g,
27906
- HTMLAttributes: Wd(g, u)
27912
+ HTMLAttributes: Hd(g, u)
27907
27913
  })), [c.name, p];
27908
27914
  }));
27909
27915
  return new BC({
@@ -27912,7 +27918,7 @@ function z4(t, e) {
27912
27918
  marks: l
27913
27919
  });
27914
27920
  }
27915
- function Su(t, e) {
27921
+ function wu(t, e) {
27916
27922
  return e.nodes[t] || e.marks[t] || null;
27917
27923
  }
27918
27924
  function eb(t, e) {
@@ -27939,7 +27945,7 @@ const _4 = (t, e = 500) => {
27939
27945
  function Zp(t) {
27940
27946
  return Object.prototype.toString.call(t) === "[object RegExp]";
27941
27947
  }
27942
- class fc {
27948
+ class dc {
27943
27949
  constructor(e) {
27944
27950
  this.find = e.find, this.handler = e.handler;
27945
27951
  }
@@ -27972,13 +27978,13 @@ function Ws(t) {
27972
27978
  const p = H4(d, f.find);
27973
27979
  if (!p)
27974
27980
  return;
27975
- const h = l.state.tr, m = cc({
27981
+ const h = l.state.tr, m = lc({
27976
27982
  state: l.state,
27977
27983
  transaction: h
27978
27984
  }), g = {
27979
27985
  from: r - (p[0].length - o.length),
27980
27986
  to: i
27981
- }, { commands: v, chain: b, can: x } = new uc({
27987
+ }, { commands: v, chain: b, can: x } = new cc({
27982
27988
  editor: n,
27983
27989
  state: m
27984
27990
  });
@@ -28075,10 +28081,10 @@ function $4(t) {
28075
28081
  function $s(t) {
28076
28082
  return $4(t) !== "Object" ? !1 : t.constructor === Object && Object.getPrototypeOf(t) === Object.prototype;
28077
28083
  }
28078
- function pc(t, e) {
28084
+ function fc(t, e) {
28079
28085
  const n = { ...t };
28080
28086
  return $s(t) && $s(e) && Object.keys(e).forEach((r) => {
28081
- $s(e[r]) && $s(t[r]) ? n[r] = pc(t[r], e[r]) : n[r] = e[r];
28087
+ $s(e[r]) && $s(t[r]) ? n[r] = fc(t[r], e[r]) : n[r] = e[r];
28082
28088
  }), n;
28083
28089
  }
28084
28090
  class fn {
@@ -28102,7 +28108,7 @@ class fn {
28102
28108
  configure(e = {}) {
28103
28109
  const n = this.extend({
28104
28110
  ...this.config,
28105
- addOptions: () => pc(this.options, e)
28111
+ addOptions: () => fc(this.options, e)
28106
28112
  });
28107
28113
  return n.name = this.name, n.parent = this.parent, n;
28108
28114
  }
@@ -28145,7 +28151,7 @@ const Z4 = (t, e, n) => {
28145
28151
  }) : [];
28146
28152
  };
28147
28153
  function J4(t) {
28148
- const { editor: e, state: n, from: r, to: i, rule: o, pasteEvent: s, dropEvent: a } = t, { commands: l, chain: c, can: u } = new uc({
28154
+ const { editor: e, state: n, from: r, to: i, rule: o, pasteEvent: s, dropEvent: a } = t, { commands: l, chain: c, can: u } = new cc({
28149
28155
  editor: e,
28150
28156
  state: n
28151
28157
  }), d = [];
@@ -28189,7 +28195,7 @@ function K4(t) {
28189
28195
  a = null;
28190
28196
  }
28191
28197
  const l = ({ state: u, from: d, to: f, rule: p, pasteEvt: h }) => {
28192
- const m = u.tr, g = cc({
28198
+ const m = u.tr, g = lc({
28193
28199
  state: u,
28194
28200
  transaction: m
28195
28201
  });
@@ -28316,7 +28322,7 @@ class Fi {
28316
28322
  options: n.options,
28317
28323
  storage: n.storage,
28318
28324
  editor: this.editor,
28319
- type: Su(n.name, this.schema)
28325
+ type: wu(n.name, this.schema)
28320
28326
  }, i = ce(n, "addCommands", r);
28321
28327
  return i ? {
28322
28328
  ...e,
@@ -28335,7 +28341,7 @@ class Fi {
28335
28341
  options: s.options,
28336
28342
  storage: s.storage,
28337
28343
  editor: e,
28338
- type: Su(s.name, this.schema)
28344
+ type: wu(s.name, this.schema)
28339
28345
  }, l = [], c = ce(s, "addKeyboardShortcuts", a);
28340
28346
  let u = {};
28341
28347
  if (s.type === "mark" && ce(s, "exitable", a) && (u.ArrowRight = () => fn.handleExit({ editor: e, mark: s })), c) {
@@ -28379,7 +28385,7 @@ class Fi {
28379
28385
  * @returns An object with all node views where the key is the node name and the value is the node view function
28380
28386
  */
28381
28387
  get nodeViews() {
28382
- const { editor: e } = this, { nodeExtensions: n } = dc(this.extensions);
28388
+ const { editor: e } = this, { nodeExtensions: n } = uc(this.extensions);
28383
28389
  return Object.fromEntries(n.filter((r) => !!ce(r, "addNodeView")).map((r) => {
28384
28390
  const i = this.attributes.filter((l) => l.type === r.name), o = {
28385
28391
  name: r.name,
@@ -28391,7 +28397,7 @@ class Fi {
28391
28397
  if (!s)
28392
28398
  return [];
28393
28399
  const a = (l, c, u, d, f) => {
28394
- const p = Wd(l, i);
28400
+ const p = Hd(l, i);
28395
28401
  return s()({
28396
28402
  // pass-through
28397
28403
  node: l,
@@ -28421,7 +28427,7 @@ class Fi {
28421
28427
  options: e.options,
28422
28428
  storage: e.storage,
28423
28429
  editor: this.editor,
28424
- type: Su(e.name, this.schema)
28430
+ type: wu(e.name, this.schema)
28425
28431
  };
28426
28432
  e.type === "mark" && (!((n = Te(ce(e, "keepOnSplit", r))) !== null && n !== void 0) || n) && this.splittableMarks.push(e.name);
28427
28433
  const i = ce(e, "onBeforeCreate", r), o = ce(e, "onCreate", r), s = ce(e, "onUpdate", r), a = ce(e, "onSelectionUpdate", r), l = ce(e, "onTransaction", r), c = ce(e, "onFocus", r), u = ce(e, "onBlur", r), d = ce(e, "onDestroy", r);
@@ -28450,7 +28456,7 @@ class Mt {
28450
28456
  configure(e = {}) {
28451
28457
  const n = this.extend({
28452
28458
  ...this.config,
28453
- addOptions: () => pc(this.options, e)
28459
+ addOptions: () => fc(this.options, e)
28454
28460
  });
28455
28461
  return n.name = this.name, n.parent = this.parent, n;
28456
28462
  }
@@ -28790,14 +28796,14 @@ const b3 = (t) => !("type" in t), y3 = (t, e, n) => ({ tr: r, dispatch: i, edito
28790
28796
  return !0;
28791
28797
  }, x3 = () => ({ state: t, dispatch: e }) => x4(t, e), C3 = () => ({ state: t, dispatch: e }) => C4(t, e), w3 = () => ({ state: t, dispatch: e }) => h4(t, e), S3 = () => ({ state: t, dispatch: e }) => b4(t, e), I3 = () => ({ state: t, dispatch: e, tr: n }) => {
28792
28798
  try {
28793
- const r = rc(t.doc, t.selection.$from.pos, -1);
28799
+ const r = nc(t.doc, t.selection.$from.pos, -1);
28794
28800
  return r == null ? !1 : (n.join(r, 2), e && e(n), !0);
28795
28801
  } catch {
28796
28802
  return !1;
28797
28803
  }
28798
28804
  }, E3 = () => ({ state: t, dispatch: e, tr: n }) => {
28799
28805
  try {
28800
- const r = rc(t.doc, t.selection.$from.pos, 1);
28806
+ const r = nc(t.doc, t.selection.$from.pos, 1);
28801
28807
  return r == null ? !1 : (n.join(r, 2), e && e(n), !0);
28802
28808
  } catch {
28803
28809
  return !1;
@@ -28867,7 +28873,7 @@ const O3 = (t, e = {}) => ({ state: n, dispatch: r }) => {
28867
28873
  const r = ht(t, e.schema);
28868
28874
  return N4(r)(e, n);
28869
28875
  }, D3 = () => ({ state: t, dispatch: e }) => S4(t, e);
28870
- function hc(t, e) {
28876
+ function pc(t, e) {
28871
28877
  return e.nodes[t] ? "node" : e.marks[t] ? "mark" : null;
28872
28878
  }
28873
28879
  function nb(t, e) {
@@ -28876,7 +28882,7 @@ function nb(t, e) {
28876
28882
  }
28877
28883
  const N3 = (t, e) => ({ tr: n, state: r, dispatch: i }) => {
28878
28884
  let o = null, s = null;
28879
- const a = hc(typeof t == "string" ? t : t.name, r.schema);
28885
+ const a = pc(typeof t == "string" ? t : t.name, r.schema);
28880
28886
  return a ? (a === "node" && (o = ht(t, r.schema)), a === "mark" && (s = kr(t, r.schema)), i && n.selection.ranges.forEach((l) => {
28881
28887
  r.doc.nodesBetween(l.$from.pos, l.$to.pos, (c, u) => {
28882
28888
  o && o === c.type && n.setNodeMarkup(u, void 0, nb(c.attrs, e)), s && c.marks.length && c.marks.forEach((d) => {
@@ -28888,7 +28894,7 @@ const N3 = (t, e) => ({ tr: n, state: r, dispatch: i }) => {
28888
28894
  from: 0,
28889
28895
  to: t.doc.content.size
28890
28896
  }), B3 = () => ({ state: t, dispatch: e }) => v4(t, e), L3 = () => ({ state: t, dispatch: e }) => y4(t, e), j3 = () => ({ state: t, dispatch: e }) => T4(t, e), G3 = () => ({ state: t, dispatch: e }) => O4(t, e), z3 = () => ({ state: t, dispatch: e }) => M4(t, e);
28891
- function $d(t, e, n = {}, r = {}) {
28897
+ function Wd(t, e, n = {}, r = {}) {
28892
28898
  return Ja(t, e, {
28893
28899
  slice: !1,
28894
28900
  parseOptions: n,
@@ -28899,7 +28905,7 @@ const _3 = (t, e = !1, n = {}, r = {}) => ({ editor: i, tr: o, dispatch: s, comm
28899
28905
  var l, c;
28900
28906
  const { doc: u } = o;
28901
28907
  if (n.preserveWhitespace !== "full") {
28902
- const d = $d(t, i.schema, n, {
28908
+ const d = Wd(t, i.schema, n, {
28903
28909
  errorOnInvalidContent: (l = r.errorOnInvalidContent) !== null && l !== void 0 ? l : i.options.enableContentCheck
28904
28910
  });
28905
28911
  return s && o.replaceWith(0, u.content.size, d).setMeta("preventUpdate", !e), !0;
@@ -28973,7 +28979,7 @@ function Z3(t, e) {
28973
28979
  return s ? { ...s.attrs } : {};
28974
28980
  }
28975
28981
  function qw(t, e) {
28976
- const n = hc(typeof e == "string" ? e : e.name, t.schema);
28982
+ const n = pc(typeof e == "string" ? e : e.name, t.schema);
28977
28983
  return n === "node" ? Z3(t, e) : n === "mark" ? Kp(t, e) : {};
28978
28984
  }
28979
28985
  function J3(t, e = JSON.stringify) {
@@ -29038,7 +29044,7 @@ function ca(t, e, n) {
29038
29044
  return i ? i.attribute.keepOnSplit : !1;
29039
29045
  }));
29040
29046
  }
29041
- function Xd(t, e, n = {}) {
29047
+ function $d(t, e, n = {}) {
29042
29048
  const { empty: r, ranges: i } = t.selection, o = e ? kr(e, t.schema) : null;
29043
29049
  if (r)
29044
29050
  return !!(t.storedMarks || t.selection.$from.marks()).filter((d) => o ? o.name === d.type.name : !0).find((d) => Za(d.attrs, n, { strict: !1 }));
@@ -29063,12 +29069,12 @@ function Xd(t, e, n = {}) {
29063
29069
  }
29064
29070
  function q3(t, e, n = {}) {
29065
29071
  if (!e)
29066
- return ss(t, null, n) || Xd(t, null, n);
29067
- const r = hc(e, t.schema);
29068
- return r === "node" ? ss(t, e, n) : r === "mark" ? Xd(t, e, n) : !1;
29072
+ return ss(t, null, n) || $d(t, null, n);
29073
+ const r = pc(e, t.schema);
29074
+ return r === "node" ? ss(t, e, n) : r === "mark" ? $d(t, e, n) : !1;
29069
29075
  }
29070
29076
  function rb(t, e) {
29071
- const { nodeExtensions: n } = dc(e), r = n.find((s) => s.name === t);
29077
+ const { nodeExtensions: n } = uc(e), r = n.find((s) => s.name === t);
29072
29078
  if (!r)
29073
29079
  return !1;
29074
29080
  const i = {
@@ -29256,7 +29262,7 @@ const aG = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
29256
29262
  n.ensureMarks(y);
29257
29263
  }
29258
29264
  return !0;
29259
- }, Iu = (t, e) => {
29265
+ }, Su = (t, e) => {
29260
29266
  const n = qp((s) => s.type === e)(t.selection);
29261
29267
  if (!n)
29262
29268
  return !0;
@@ -29265,7 +29271,7 @@ const aG = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
29265
29271
  return !0;
29266
29272
  const i = t.doc.nodeAt(r);
29267
29273
  return n.node.type === (i == null ? void 0 : i.type) && Ar(t.doc, n.pos) && t.join(n.pos), !0;
29268
- }, Eu = (t, e) => {
29274
+ }, Iu = (t, e) => {
29269
29275
  const n = qp((s) => s.type === e)(t.selection);
29270
29276
  if (!n)
29271
29277
  return !0;
@@ -29283,15 +29289,15 @@ const aG = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
29283
29289
  if (y.node.type === p)
29284
29290
  return c.liftListItem(h);
29285
29291
  if (rb(y.node.type.name, d) && p.validContent(y.node.content) && a)
29286
- return l().command(() => (o.setNodeMarkup(y.pos, p), !0)).command(() => Iu(o, p)).command(() => Eu(o, p)).run();
29292
+ return l().command(() => (o.setNodeMarkup(y.pos, p), !0)).command(() => Su(o, p)).command(() => Iu(o, p)).run();
29287
29293
  }
29288
- return !n || !w || !a ? l().command(() => u().wrapInList(p, r) ? !0 : c.clearNodes()).wrapInList(p, r).command(() => Iu(o, p)).command(() => Eu(o, p)).run() : l().command(() => {
29294
+ return !n || !w || !a ? l().command(() => u().wrapInList(p, r) ? !0 : c.clearNodes()).wrapInList(p, r).command(() => Su(o, p)).command(() => Iu(o, p)).run() : l().command(() => {
29289
29295
  const E = u().wrapInList(p, r), A = w.filter((T) => f.includes(T.type.name));
29290
29296
  return o.ensureMarks(A), E ? !0 : c.clearNodes();
29291
- }).wrapInList(p, r).command(() => Iu(o, p)).command(() => Eu(o, p)).run();
29297
+ }).wrapInList(p, r).command(() => Su(o, p)).command(() => Iu(o, p)).run();
29292
29298
  }, uG = (t, e = {}, n = {}) => ({ state: r, commands: i }) => {
29293
29299
  const { extendEmptyMarkRange: o = !1 } = n, s = kr(t, r.schema);
29294
- return Xd(r, s, e) ? i.unsetMark(s, { extendEmptyMarkRange: o }) : i.setMark(s, e);
29300
+ return $d(r, s, e) ? i.unsetMark(s, { extendEmptyMarkRange: o }) : i.setMark(s, e);
29295
29301
  }, dG = (t, e, n = {}) => ({ state: r, commands: i }) => {
29296
29302
  const o = ht(t, r.schema), s = ht(e, r.schema), a = ss(r, o, n);
29297
29303
  let l;
@@ -29340,7 +29346,7 @@ const aG = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
29340
29346
  return n.removeStoredMark(l), !0;
29341
29347
  }, gG = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
29342
29348
  let o = null, s = null;
29343
- const a = hc(typeof t == "string" ? t : t.name, r.schema);
29349
+ const a = pc(typeof t == "string" ? t : t.name, r.schema);
29344
29350
  return a ? (a === "node" && (o = ht(t, r.schema)), a === "mark" && (s = kr(t, r.schema)), i && n.selection.ranges.forEach((l) => {
29345
29351
  const c = l.$from.pos, u = l.$to.pos;
29346
29352
  let d, f, p, h;
@@ -29562,10 +29568,10 @@ const xG = Mt.create({
29562
29568
  const { empty: o, from: s, to: a } = e.selection, l = Ee.atStart(e.doc).from, c = Ee.atEnd(e.doc).to;
29563
29569
  if (o || !(s === l && a === c) || !eh(n.doc))
29564
29570
  return;
29565
- const f = n.tr, p = cc({
29571
+ const f = n.tr, p = lc({
29566
29572
  state: n,
29567
29573
  transaction: f
29568
- }), { commands: h } = new uc({
29574
+ }), { commands: h } = new cc({
29569
29575
  editor: this.editor,
29570
29576
  state: p
29571
29577
  });
@@ -29959,7 +29965,7 @@ let MG = class extends L4 {
29959
29965
  * Creates an command manager.
29960
29966
  */
29961
29967
  createCommandManager() {
29962
- this.commandManager = new uc({
29968
+ this.commandManager = new cc({
29963
29969
  editor: this
29964
29970
  });
29965
29971
  }
@@ -29976,7 +29982,7 @@ let MG = class extends L4 {
29976
29982
  var e;
29977
29983
  let n;
29978
29984
  try {
29979
- n = $d(this.options.content, this.schema, this.options.parseOptions, { errorOnInvalidContent: this.options.enableContentCheck });
29985
+ n = Wd(this.options.content, this.schema, this.options.parseOptions, { errorOnInvalidContent: this.options.enableContentCheck });
29980
29986
  } catch (s) {
29981
29987
  if (!(s instanceof Error) || !["[tiptap error]: Invalid JSON content", "[tiptap error]: Invalid HTML content"].includes(s.message))
29982
29988
  throw s;
@@ -29986,7 +29992,7 @@ let MG = class extends L4 {
29986
29992
  disableCollaboration: () => {
29987
29993
  this.storage.collaboration && (this.storage.collaboration.isDisabled = !0), this.options.extensions = this.options.extensions.filter((a) => a.name !== "collaboration"), this.createExtensionManager();
29988
29994
  }
29989
- }), n = $d(this.options.content, this.schema, this.options.parseOptions, { errorOnInvalidContent: !1 });
29995
+ }), n = Wd(this.options.content, this.schema, this.options.parseOptions, { errorOnInvalidContent: !1 });
29990
29996
  }
29991
29997
  const r = Jw(n, this.options.autofocus);
29992
29998
  this.view = new r4(this.options.element, {
@@ -30158,7 +30164,7 @@ let MG = class extends L4 {
30158
30164
  }
30159
30165
  };
30160
30166
  function Ki(t) {
30161
- return new fc({
30167
+ return new dc({
30162
30168
  find: t.find,
30163
30169
  handler: ({ state: e, range: n, match: r }) => {
30164
30170
  const i = Te(t.getAttributes, void 0, r);
@@ -30177,7 +30183,7 @@ function Ki(t) {
30177
30183
  });
30178
30184
  }
30179
30185
  function OG(t) {
30180
- return new fc({
30186
+ return new dc({
30181
30187
  find: t.find,
30182
30188
  handler: ({ state: e, range: n, match: r }) => {
30183
30189
  const i = Te(t.getAttributes, void 0, r) || {}, { tr: o } = e, s = n.from;
@@ -30197,8 +30203,8 @@ function OG(t) {
30197
30203
  }
30198
30204
  });
30199
30205
  }
30200
- function Yd(t) {
30201
- return new fc({
30206
+ function Xd(t) {
30207
+ return new dc({
30202
30208
  find: t.find,
30203
30209
  handler: ({ state: e, range: n, match: r }) => {
30204
30210
  const i = e.doc.resolve(n.from), o = Te(t.getAttributes, void 0, r) || {};
@@ -30209,7 +30215,7 @@ function Yd(t) {
30209
30215
  });
30210
30216
  }
30211
30217
  function as(t) {
30212
- return new fc({
30218
+ return new dc({
30213
30219
  find: t.find,
30214
30220
  handler: ({ state: e, range: n, match: r, chain: i }) => {
30215
30221
  const o = Te(t.getAttributes, void 0, r) || {}, s = e.tr.delete(n.from, n.to), l = s.doc.resolve(n.from).blockRange(), c = l && Fp(l, t.type, o);
@@ -30231,7 +30237,7 @@ function as(t) {
30231
30237
  }
30232
30238
  });
30233
30239
  }
30234
- let pn = class Zd {
30240
+ let pn = class Yd {
30235
30241
  constructor(e = {}) {
30236
30242
  this.type = "node", this.name = "node", this.parent = null, this.child = null, this.config = {
30237
30243
  name: this.name,
@@ -30247,17 +30253,17 @@ let pn = class Zd {
30247
30253
  })) || {};
30248
30254
  }
30249
30255
  static create(e = {}) {
30250
- return new Zd(e);
30256
+ return new Yd(e);
30251
30257
  }
30252
30258
  configure(e = {}) {
30253
30259
  const n = this.extend({
30254
30260
  ...this.config,
30255
- addOptions: () => pc(this.options, e)
30261
+ addOptions: () => fc(this.options, e)
30256
30262
  });
30257
30263
  return n.name = this.name, n.parent = this.parent, n;
30258
30264
  }
30259
30265
  extend(e = {}) {
30260
- const n = new Zd(e);
30266
+ const n = new Yd(e);
30261
30267
  return n.parent = this, this.child = n, n.name = e.name ? e.name : n.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options = Te(ce(n, "addOptions", {
30262
30268
  name: n.name
30263
30269
  })), n.storage = Te(ce(n, "addStorage", {
@@ -30384,7 +30390,7 @@ const PG = fn.create({
30384
30390
  }), {});
30385
30391
  },
30386
30392
  addInputRules() {
30387
- return this.options.levels.map((t) => Yd({
30393
+ return this.options.levels.map((t) => Xd({
30388
30394
  find: new RegExp(`^(#{1,${t}})\\s$`),
30389
30395
  type: this.type,
30390
30396
  getAttributes: {
@@ -30396,12 +30402,12 @@ const PG = fn.create({
30396
30402
  for (const n in e)
30397
30403
  t[n] = e[n];
30398
30404
  return t;
30399
- }, Jd = "numeric", Ud = "ascii", Kd = "alpha", ua = "asciinumeric", Ys = "alphanumeric", qd = "domain", eS = "emoji", FG = "scheme", VG = "slashscheme", ob = "whitespace";
30405
+ }, Zd = "numeric", Jd = "ascii", Ud = "alpha", ua = "asciinumeric", Ys = "alphanumeric", Kd = "domain", eS = "emoji", FG = "scheme", VG = "slashscheme", ob = "whitespace";
30400
30406
  function BG(t, e) {
30401
30407
  return t in e || (e[t] = []), e[t];
30402
30408
  }
30403
30409
  function Xr(t, e, n) {
30404
- e[Jd] && (e[ua] = !0, e[Ys] = !0), e[Ud] && (e[ua] = !0, e[Kd] = !0), e[ua] && (e[Ys] = !0), e[Kd] && (e[Ys] = !0), e[Ys] && (e[qd] = !0), e[eS] && (e[qd] = !0);
30410
+ e[Zd] && (e[ua] = !0, e[Ys] = !0), e[Jd] && (e[ua] = !0, e[Ud] = !0), e[ua] && (e[Ys] = !0), e[Ud] && (e[Ys] = !0), e[Ys] && (e[Kd] = !0), e[eS] && (e[Kd] = !0);
30405
30411
  for (const r in e) {
30406
30412
  const i = BG(r, n);
30407
30413
  i.indexOf(t) < 0 && i.push(t);
@@ -30537,14 +30543,14 @@ jt.prototype = {
30537
30543
  return i.j[t] = s, s;
30538
30544
  }
30539
30545
  };
30540
- const Ae = (t, e, n, r, i) => t.ta(e, n, r, i), Ut = (t, e, n, r, i) => t.tr(e, n, r, i), sb = (t, e, n, r, i) => t.ts(e, n, r, i), ee = (t, e, n, r, i) => t.tt(e, n, r, i), Ln = "WORD", Qd = "UWORD", ls = "LOCALHOST", ef = "TLD", tf = "UTLD", da = "SCHEME", ki = "SLASH_SCHEME", th = "NUM", tS = "WS", nh = "NL", jo = "OPENBRACE", Go = "CLOSEBRACE", Ua = "OPENBRACKET", Ka = "CLOSEBRACKET", qa = "OPENPAREN", Qa = "CLOSEPAREN", el = "OPENANGLEBRACKET", tl = "CLOSEANGLEBRACKET", nl = "FULLWIDTHLEFTPAREN", rl = "FULLWIDTHRIGHTPAREN", il = "LEFTCORNERBRACKET", ol = "RIGHTCORNERBRACKET", sl = "LEFTWHITECORNERBRACKET", al = "RIGHTWHITECORNERBRACKET", ll = "FULLWIDTHLESSTHAN", cl = "FULLWIDTHGREATERTHAN", ul = "AMPERSAND", dl = "APOSTROPHE", fl = "ASTERISK", or = "AT", pl = "BACKSLASH", hl = "BACKTICK", ml = "CARET", ur = "COLON", rh = "COMMA", gl = "DOLLAR", bn = "DOT", vl = "EQUALS", ih = "EXCLAMATION", yn = "HYPHEN", bl = "PERCENT", yl = "PIPE", xl = "PLUS", Cl = "POUND", wl = "QUERY", oh = "QUOTE", nS = "FULLWIDTHMIDDLEDOT", sh = "SEMI", xn = "SLASH", zo = "TILDE", Sl = "UNDERSCORE", rS = "EMOJI", Il = "SYM";
30546
+ const Ae = (t, e, n, r, i) => t.ta(e, n, r, i), Ut = (t, e, n, r, i) => t.tr(e, n, r, i), sb = (t, e, n, r, i) => t.ts(e, n, r, i), ee = (t, e, n, r, i) => t.tt(e, n, r, i), Ln = "WORD", qd = "UWORD", ls = "LOCALHOST", Qd = "TLD", ef = "UTLD", da = "SCHEME", ki = "SLASH_SCHEME", th = "NUM", tS = "WS", nh = "NL", jo = "OPENBRACE", Go = "CLOSEBRACE", Ua = "OPENBRACKET", Ka = "CLOSEBRACKET", qa = "OPENPAREN", Qa = "CLOSEPAREN", el = "OPENANGLEBRACKET", tl = "CLOSEANGLEBRACKET", nl = "FULLWIDTHLEFTPAREN", rl = "FULLWIDTHRIGHTPAREN", il = "LEFTCORNERBRACKET", ol = "RIGHTCORNERBRACKET", sl = "LEFTWHITECORNERBRACKET", al = "RIGHTWHITECORNERBRACKET", ll = "FULLWIDTHLESSTHAN", cl = "FULLWIDTHGREATERTHAN", ul = "AMPERSAND", dl = "APOSTROPHE", fl = "ASTERISK", or = "AT", pl = "BACKSLASH", hl = "BACKTICK", ml = "CARET", ur = "COLON", rh = "COMMA", gl = "DOLLAR", bn = "DOT", vl = "EQUALS", ih = "EXCLAMATION", yn = "HYPHEN", bl = "PERCENT", yl = "PIPE", xl = "PLUS", Cl = "POUND", wl = "QUERY", oh = "QUOTE", nS = "FULLWIDTHMIDDLEDOT", sh = "SEMI", xn = "SLASH", zo = "TILDE", Sl = "UNDERSCORE", rS = "EMOJI", Il = "SYM";
30541
30547
  var iS = /* @__PURE__ */ Object.freeze({
30542
30548
  __proto__: null,
30543
30549
  WORD: Ln,
30544
- UWORD: Qd,
30550
+ UWORD: qd,
30545
30551
  LOCALHOST: ls,
30546
- TLD: ef,
30547
- UTLD: tf,
30552
+ TLD: Qd,
30553
+ UTLD: ef,
30548
30554
  SCHEME: da,
30549
30555
  SLASH_SCHEME: ki,
30550
30556
  NUM: th,
@@ -30594,7 +30600,7 @@ var iS = /* @__PURE__ */ Object.freeze({
30594
30600
  EMOJI: rS,
30595
30601
  SYM: Il
30596
30602
  });
30597
- const Ii = /[a-z]/, Au = new RegExp("\\p{L}", "u"), Tu = new RegExp("\\p{Emoji}", "u"), ku = /\d/, ab = /\s/, lb = `
30603
+ const Ii = /[a-z]/, Eu = new RegExp("\\p{L}", "u"), Au = new RegExp("\\p{Emoji}", "u"), Tu = /\d/, ab = /\s/, lb = `
30598
30604
  `, jG = "️", GG = "‍";
30599
30605
  let Zs = null, Js = null;
30600
30606
  function zG(t = []) {
@@ -30602,39 +30608,39 @@ function zG(t = []) {
30602
30608
  jt.groups = e;
30603
30609
  const n = new jt();
30604
30610
  Zs == null && (Zs = cb(DG)), Js == null && (Js = cb(NG)), ee(n, "'", dl), ee(n, "{", jo), ee(n, "}", Go), ee(n, "[", Ua), ee(n, "]", Ka), ee(n, "(", qa), ee(n, ")", Qa), ee(n, "<", el), ee(n, ">", tl), ee(n, "(", nl), ee(n, ")", rl), ee(n, "「", il), ee(n, "」", ol), ee(n, "『", sl), ee(n, "』", al), ee(n, "<", ll), ee(n, ">", cl), ee(n, "&", ul), ee(n, "*", fl), ee(n, "@", or), ee(n, "`", hl), ee(n, "^", ml), ee(n, ":", ur), ee(n, ",", rh), ee(n, "$", gl), ee(n, ".", bn), ee(n, "=", vl), ee(n, "!", ih), ee(n, "-", yn), ee(n, "%", bl), ee(n, "|", yl), ee(n, "+", xl), ee(n, "#", Cl), ee(n, "?", wl), ee(n, '"', oh), ee(n, "/", xn), ee(n, ";", sh), ee(n, "~", zo), ee(n, "_", Sl), ee(n, "\\", pl), ee(n, "・", nS);
30605
- const r = Ut(n, ku, th, {
30606
- [Jd]: !0
30611
+ const r = Ut(n, Tu, th, {
30612
+ [Zd]: !0
30607
30613
  });
30608
- Ut(r, ku, r);
30614
+ Ut(r, Tu, r);
30609
30615
  const i = Ut(n, Ii, Ln, {
30610
- [Ud]: !0
30616
+ [Jd]: !0
30611
30617
  });
30612
30618
  Ut(i, Ii, i);
30613
- const o = Ut(n, Au, Qd, {
30614
- [Kd]: !0
30619
+ const o = Ut(n, Eu, qd, {
30620
+ [Ud]: !0
30615
30621
  });
30616
- Ut(o, Ii), Ut(o, Au, o);
30622
+ Ut(o, Ii), Ut(o, Eu, o);
30617
30623
  const s = Ut(n, ab, tS, {
30618
30624
  [ob]: !0
30619
30625
  });
30620
30626
  ee(n, lb, nh, {
30621
30627
  [ob]: !0
30622
30628
  }), ee(s, lb), Ut(s, ab, s);
30623
- const a = Ut(n, Tu, rS, {
30629
+ const a = Ut(n, Au, rS, {
30624
30630
  [eS]: !0
30625
30631
  });
30626
- Ut(a, Tu, a), ee(a, jG, a);
30632
+ Ut(a, Au, a), ee(a, jG, a);
30627
30633
  const l = ee(a, GG);
30628
- Ut(l, Tu, a);
30629
- const c = [[Ii, i]], u = [[Ii, null], [Au, o]];
30634
+ Ut(l, Au, a);
30635
+ const c = [[Ii, i]], u = [[Ii, null], [Eu, o]];
30630
30636
  for (let d = 0; d < Zs.length; d++)
30631
- tr(n, Zs[d], ef, Ln, c);
30637
+ tr(n, Zs[d], Qd, Ln, c);
30632
30638
  for (let d = 0; d < Js.length; d++)
30633
- tr(n, Js[d], tf, Qd, u);
30634
- Xr(ef, {
30639
+ tr(n, Js[d], ef, qd, u);
30640
+ Xr(Qd, {
30635
30641
  tld: !0,
30636
30642
  ascii: !0
30637
- }, e), Xr(tf, {
30643
+ }, e), Xr(ef, {
30638
30644
  utld: !0,
30639
30645
  alpha: !0
30640
30646
  }, e), tr(n, "file", da, Ln, c), tr(n, "mailto", da, Ln, c), tr(n, "http", ki, Ln, c), tr(n, "https", ki, Ln, c), tr(n, "ftp", ki, Ln, c), tr(n, "ftps", ki, Ln, c), Xr(da, {
@@ -30650,7 +30656,7 @@ function zG(t = []) {
30650
30656
  } : {
30651
30657
  [VG]: !0
30652
30658
  };
30653
- f.indexOf("-") >= 0 ? h[qd] = !0 : Ii.test(f) ? ku.test(f) ? h[ua] = !0 : h[Ud] = !0 : h[Jd] = !0, sb(n, f, f, h);
30659
+ f.indexOf("-") >= 0 ? h[Kd] = !0 : Ii.test(f) ? Tu.test(f) ? h[ua] = !0 : h[Jd] = !0 : h[Zd] = !0, sb(n, f, f, h);
30654
30660
  }
30655
30661
  return sb(n, "localhost", ls, {
30656
30662
  ascii: !0
@@ -30912,7 +30918,7 @@ sS.prototype = {
30912
30918
  };
30913
30919
  }
30914
30920
  };
30915
- function mc(t, e) {
30921
+ function hc(t, e) {
30916
30922
  class n extends sS {
30917
30923
  constructor(i, o) {
30918
30924
  super(i, o), this.t = t;
@@ -30922,12 +30928,12 @@ function mc(t, e) {
30922
30928
  n.prototype[r] = e[r];
30923
30929
  return n.t = t, n;
30924
30930
  }
30925
- const db = mc("email", {
30931
+ const db = hc("email", {
30926
30932
  isLink: !0,
30927
30933
  toHref() {
30928
30934
  return "mailto:" + this.toString();
30929
30935
  }
30930
- }), fb = mc("text"), HG = mc("nl"), Us = mc("url", {
30936
+ }), fb = hc("text"), HG = hc("nl"), Us = hc("url", {
30931
30937
  isLink: !0,
30932
30938
  /**
30933
30939
  Lowercases relevant parts of the domain and adds the protocol if
@@ -31021,14 +31027,14 @@ function $G(t, e, n) {
31021
31027
  if (f < 0)
31022
31028
  i -= u, i < r && (s.push(n[i]), i++);
31023
31029
  else {
31024
- s.length > 0 && (o.push(Mu(fb, e, s)), s = []), i -= f, u -= f;
31030
+ s.length > 0 && (o.push(ku(fb, e, s)), s = []), i -= f, u -= f;
31025
31031
  const p = d.t, h = n.slice(i - u, i);
31026
- o.push(Mu(p, e, h));
31032
+ o.push(ku(p, e, h));
31027
31033
  }
31028
31034
  }
31029
- return s.length > 0 && o.push(Mu(fb, e, s)), o;
31035
+ return s.length > 0 && o.push(ku(fb, e, s)), o;
31030
31036
  }
31031
- function Mu(t, e, n) {
31037
+ function ku(t, e, n) {
31032
31038
  const r = n[0].s, i = n[n.length - 1].e, o = e.slice(r, i);
31033
31039
  return new t(o, n);
31034
31040
  }
@@ -31363,7 +31369,7 @@ const tz = fn.create({
31363
31369
  function rz(t) {
31364
31370
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
31365
31371
  }
31366
- var nf = { exports: {} }, Ou = {};
31372
+ var tf = { exports: {} }, Mu = {};
31367
31373
  /**
31368
31374
  * @license React
31369
31375
  * use-sync-external-store-shim.production.min.js
@@ -31375,7 +31381,7 @@ var nf = { exports: {} }, Ou = {};
31375
31381
  */
31376
31382
  var hb;
31377
31383
  function iz() {
31378
- if (hb) return Ou;
31384
+ if (hb) return Mu;
31379
31385
  hb = 1;
31380
31386
  var t = $;
31381
31387
  function e(d, f) {
@@ -31406,9 +31412,9 @@ function iz() {
31406
31412
  return f();
31407
31413
  }
31408
31414
  var u = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? c : a;
31409
- return Ou.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : u, Ou;
31415
+ return Mu.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : u, Mu;
31410
31416
  }
31411
- var Pu = {};
31417
+ var Ou = {};
31412
31418
  /**
31413
31419
  * @license React
31414
31420
  * use-sync-external-store-shim.development.js
@@ -31486,17 +31492,17 @@ function oz() {
31486
31492
  return w();
31487
31493
  }
31488
31494
  var m = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", g = !m, v = g ? h : f, b = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : v;
31489
- Pu.useSyncExternalStore = b, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
31490
- }()), Pu;
31495
+ Ou.useSyncExternalStore = b, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
31496
+ }()), Ou;
31491
31497
  }
31492
- process.env.NODE_ENV === "production" ? nf.exports = iz() : nf.exports = oz();
31493
- var gc = nf.exports;
31498
+ process.env.NODE_ENV === "production" ? tf.exports = iz() : tf.exports = oz();
31499
+ var mc = tf.exports;
31494
31500
  const sz = (...t) => (e) => {
31495
31501
  t.forEach((n) => {
31496
31502
  typeof n == "function" ? n(e) : n && (n.current = e);
31497
31503
  });
31498
31504
  }, az = ({ contentComponent: t }) => {
31499
- const e = gc.useSyncExternalStore(t.subscribe, t.getSnapshot, t.getServerSnapshot);
31505
+ const e = mc.useSyncExternalStore(t.subscribe, t.getSnapshot, t.getServerSnapshot);
31500
31506
  return $.createElement($.Fragment, null, Object.values(e));
31501
31507
  };
31502
31508
  function lz() {
@@ -31637,7 +31643,7 @@ var fz = function t(e, n) {
31637
31643
  return !0;
31638
31644
  }
31639
31645
  return e !== e && n !== n;
31640
- }, pz = /* @__PURE__ */ rz(fz), rf = { exports: {} }, Ru = {};
31646
+ }, pz = /* @__PURE__ */ rz(fz), nf = { exports: {} }, Pu = {};
31641
31647
  /**
31642
31648
  * @license React
31643
31649
  * use-sync-external-store-shim/with-selector.production.min.js
@@ -31649,14 +31655,14 @@ var fz = function t(e, n) {
31649
31655
  */
31650
31656
  var gb;
31651
31657
  function hz() {
31652
- if (gb) return Ru;
31658
+ if (gb) return Pu;
31653
31659
  gb = 1;
31654
- var t = $, e = gc;
31660
+ var t = $, e = mc;
31655
31661
  function n(c, u) {
31656
31662
  return c === u && (c !== 0 || 1 / c === 1 / u) || c !== c && u !== u;
31657
31663
  }
31658
31664
  var r = typeof Object.is == "function" ? Object.is : n, i = e.useSyncExternalStore, o = t.useRef, s = t.useEffect, a = t.useMemo, l = t.useDebugValue;
31659
- return Ru.useSyncExternalStoreWithSelector = function(c, u, d, f, p) {
31665
+ return Pu.useSyncExternalStoreWithSelector = function(c, u, d, f, p) {
31660
31666
  var h = o(null);
31661
31667
  if (h.current === null) {
31662
31668
  var m = { hasValue: !1, value: null };
@@ -31686,9 +31692,9 @@ function hz() {
31686
31692
  return s(function() {
31687
31693
  m.hasValue = !0, m.value = g;
31688
31694
  }, [g]), l(g), g;
31689
- }, Ru;
31695
+ }, Pu;
31690
31696
  }
31691
- var Du = {};
31697
+ var Ru = {};
31692
31698
  /**
31693
31699
  * @license React
31694
31700
  * use-sync-external-store-shim/with-selector.development.js
@@ -31702,7 +31708,7 @@ var vb;
31702
31708
  function mz() {
31703
31709
  return vb || (vb = 1, process.env.NODE_ENV !== "production" && function() {
31704
31710
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
31705
- var t = $, e = gc;
31711
+ var t = $, e = mc;
31706
31712
  function n(u, d) {
31707
31713
  return u === d && (u !== 0 || 1 / u === 1 / d) || u !== u && d !== d;
31708
31714
  }
@@ -31741,11 +31747,11 @@ function mz() {
31741
31747
  g.hasValue = !0, g.value = w;
31742
31748
  }, [w]), l(w), w;
31743
31749
  }
31744
- Du.useSyncExternalStoreWithSelector = c, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
31745
- }()), Du;
31750
+ Ru.useSyncExternalStoreWithSelector = c, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
31751
+ }()), Ru;
31746
31752
  }
31747
- process.env.NODE_ENV === "production" ? rf.exports = hz() : rf.exports = mz();
31748
- var gz = rf.exports;
31753
+ process.env.NODE_ENV === "production" ? nf.exports = hz() : nf.exports = mz();
31754
+ var gz = nf.exports;
31749
31755
  const vz = typeof window < "u" ? Qi : Pe;
31750
31756
  class bz {
31751
31757
  constructor(e) {
@@ -31790,7 +31796,7 @@ function yz(t) {
31790
31796
  const [n] = Oe(() => new bz(t.editor)), r = gz.useSyncExternalStoreWithSelector(n.subscribe, n.getSnapshot, n.getServerSnapshot, t.selector, (e = t.equalityFn) !== null && e !== void 0 ? e : pz);
31791
31797
  return vz(() => n.watch(t.editor), [t.editor, n]), Qb(r), r;
31792
31798
  }
31793
- const bb = process.env.NODE_ENV !== "production", of = typeof window > "u", xz = of || !!(typeof window < "u" && window.next);
31799
+ const bb = process.env.NODE_ENV !== "production", rf = typeof window > "u", xz = rf || !!(typeof window < "u" && window.next);
31794
31800
  class Cz {
31795
31801
  constructor(e) {
31796
31802
  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);
@@ -31800,8 +31806,8 @@ class Cz {
31800
31806
  }
31801
31807
  getInitialEditor() {
31802
31808
  if (this.options.current.immediatelyRender === void 0)
31803
- return of || xz ? (bb && console.warn("Tiptap Error: SSR has been detected, please set `immediatelyRender` explicitly to `false` to avoid hydration mismatches."), null) : this.createEditor();
31804
- if (this.options.current.immediatelyRender && of && bb)
31809
+ return rf || xz ? (bb && console.warn("Tiptap Error: SSR has been detected, please set `immediatelyRender` explicitly to `false` to avoid hydration mismatches."), null) : this.createEditor();
31810
+ if (this.options.current.immediatelyRender && rf && bb)
31805
31811
  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.");
31806
31812
  return this.options.current.immediatelyRender ? this.createEditor() : null;
31807
31813
  }
@@ -31925,7 +31931,7 @@ class Cz {
31925
31931
  function wz(t = {}, e = []) {
31926
31932
  const n = de(t);
31927
31933
  n.current = t;
31928
- const [r] = Oe(() => new Cz(n)), i = gc.useSyncExternalStore(r.subscribe, r.getEditor, r.getServerSnapshot);
31934
+ const [r] = Oe(() => new Cz(n)), i = mc.useSyncExternalStore(r.subscribe, r.getEditor, r.getServerSnapshot);
31929
31935
  return Qb(i), Pe(r.onRender(e)), yz({
31930
31936
  editor: i,
31931
31937
  selector: ({ transactionNumber: o }) => t.shouldRerenderOnTransaction === !1 ? null : t.immediatelyRender && o === 0 ? 0 : o + 1
@@ -32236,14 +32242,14 @@ const Az = /^\s*>\s$/, Tz = pn.create({
32236
32242
  },
32237
32243
  addInputRules() {
32238
32244
  return [
32239
- Yd({
32245
+ Xd({
32240
32246
  find: Lz,
32241
32247
  type: this.type,
32242
32248
  getAttributes: (t) => ({
32243
32249
  language: t[1]
32244
32250
  })
32245
32251
  }),
32246
- Yd({
32252
+ Xd({
32247
32253
  find: jz,
32248
32254
  type: this.type,
32249
32255
  getAttributes: (t) => ({
@@ -32881,9 +32887,9 @@ function i_(t, e, n, r) {
32881
32887
  if (s && s.getMeta(ti))
32882
32888
  return s.getMeta(ti).redo ? new sr(t.done.addTransform(n, void 0, r, fa(e)), t.undone, Cb(n.mapping.maps), t.prevTime, t.prevComposition) : new sr(t.done, t.undone.addTransform(n, void 0, r, fa(e)), null, t.prevTime, t.prevComposition);
32883
32889
  if (n.getMeta("addToHistory") !== !1 && !(s && s.getMeta("addToHistory") === !1)) {
32884
- let a = n.getMeta("composition"), l = t.prevTime == 0 || !s && t.prevComposition != a && (t.prevTime < (n.time || 0) - r.newGroupDelay || !o_(n, t.prevRanges)), c = s ? Nu(t.prevRanges, n.mapping) : Cb(n.mapping.maps);
32890
+ let a = n.getMeta("composition"), l = t.prevTime == 0 || !s && t.prevComposition != a && (t.prevTime < (n.time || 0) - r.newGroupDelay || !o_(n, t.prevRanges)), c = s ? Du(t.prevRanges, n.mapping) : Cb(n.mapping.maps);
32885
32891
  return new sr(t.done.addTransform(n, l ? e.selection.getBookmark() : void 0, r, fa(e)), cn.empty, c, n.time, a ?? t.prevComposition);
32886
- } else return (o = n.getMeta("rebased")) ? new sr(t.done.rebased(n, o), t.undone.rebased(n, o), Nu(t.prevRanges, n.mapping), t.prevTime, t.prevComposition) : new sr(t.done.addMaps(n.mapping.maps), t.undone.addMaps(n.mapping.maps), Nu(t.prevRanges, n.mapping), t.prevTime, t.prevComposition);
32892
+ } else return (o = n.getMeta("rebased")) ? new sr(t.done.rebased(n, o), t.undone.rebased(n, o), Du(t.prevRanges, n.mapping), t.prevTime, t.prevComposition) : new sr(t.done.addMaps(n.mapping.maps), t.undone.addMaps(n.mapping.maps), Du(t.prevRanges, n.mapping), t.prevTime, t.prevComposition);
32887
32893
  }
32888
32894
  function o_(t, e) {
32889
32895
  if (!e)
@@ -32902,7 +32908,7 @@ function Cb(t) {
32902
32908
  t[n].forEach((r, i, o, s) => e.push(o, s));
32903
32909
  return e;
32904
32910
  }
32905
- function Nu(t, e) {
32911
+ function Du(t, e) {
32906
32912
  if (!t)
32907
32913
  return null;
32908
32914
  let n = [];
@@ -32919,18 +32925,18 @@ function s_(t, e, n) {
32919
32925
  let s = o.selection.resolve(o.transform.doc), a = (n ? t.done : t.undone).addTransform(o.transform, e.selection.getBookmark(), i, r), l = new sr(n ? a : o.remaining, n ? o.remaining : a, null, 0, -1);
32920
32926
  return o.transform.setSelection(s).setMeta(ti, { redo: n, historyState: l });
32921
32927
  }
32922
- let Fu = !1, wb = null;
32928
+ let Nu = !1, wb = null;
32923
32929
  function fa(t) {
32924
32930
  let e = t.plugins;
32925
32931
  if (wb != e) {
32926
- Fu = !1, wb = e;
32932
+ Nu = !1, wb = e;
32927
32933
  for (let n = 0; n < e.length; n++)
32928
32934
  if (e[n].spec.historyPreserveItems) {
32929
- Fu = !0;
32935
+ Nu = !0;
32930
32936
  break;
32931
32937
  }
32932
32938
  }
32933
- return Fu;
32939
+ return Nu;
32934
32940
  }
32935
32941
  const ti = new Zt("history"), a_ = new Zt("closeHistory");
32936
32942
  function l_(t = {}) {
@@ -33736,13 +33742,13 @@ function H_(t) {
33736
33742
  }
33737
33743
  };
33738
33744
  }
33739
- let As = null, sf = /* @__PURE__ */ new Set(), _o = /* @__PURE__ */ new Map(), ui = !1, af = !1;
33745
+ let As = null, of = /* @__PURE__ */ new Set(), _o = /* @__PURE__ */ new Map(), ui = !1, sf = !1;
33740
33746
  const W_ = {
33741
33747
  Tab: !0,
33742
33748
  Escape: !0
33743
33749
  };
33744
33750
  function uh(t, e) {
33745
- for (let n of sf) n(t, e);
33751
+ for (let n of of) n(t, e);
33746
33752
  }
33747
33753
  function $_(t) {
33748
33754
  return !(t.metaKey || !j_() && t.altKey || t.ctrlKey || t.key === "Control" || t.key === "Shift" || t.key === "Meta");
@@ -33757,12 +33763,12 @@ function mS(t) {
33757
33763
  z_(t) && (ui = !0, As = "virtual");
33758
33764
  }
33759
33765
  function gS(t) {
33760
- t.target === window || t.target === document || (!ui && !af && (As = "virtual", uh("virtual", t)), ui = !1, af = !1);
33766
+ t.target === window || t.target === document || (!ui && !sf && (As = "virtual", uh("virtual", t)), ui = !1, sf = !1);
33761
33767
  }
33762
33768
  function vS() {
33763
- ui = !1, af = !0;
33769
+ ui = !1, sf = !0;
33764
33770
  }
33765
- function lf(t) {
33771
+ function af(t) {
33766
33772
  if (typeof window > "u" || _o.get(Yr(t))) return;
33767
33773
  const e = Yr(t), n = Es(t);
33768
33774
  let r = e.HTMLElement.prototype.focus;
@@ -33783,8 +33789,8 @@ const bS = (t, e) => {
33783
33789
  function X_(t) {
33784
33790
  const e = Es(t);
33785
33791
  let n;
33786
- return e.readyState !== "loading" ? lf(t) : (n = () => {
33787
- lf(t);
33792
+ return e.readyState !== "loading" ? af(t) : (n = () => {
33793
+ af(t);
33788
33794
  }, e.addEventListener("DOMContentLoaded", n)), () => bS(t, n);
33789
33795
  }
33790
33796
  typeof document < "u" && X_();
@@ -33808,12 +33814,12 @@ function Z_(t, e, n) {
33808
33814
  return t = t || (n == null ? void 0 : n.target) instanceof i && !Y_.has(n == null || (r = n.target) === null || r === void 0 ? void 0 : r.type) || (n == null ? void 0 : n.target) instanceof o || (n == null ? void 0 : n.target) instanceof s && (n == null ? void 0 : n.target.isContentEditable), !(t && e === "keyboard" && n instanceof a && !W_[n.key]);
33809
33815
  }
33810
33816
  function J_(t, e, n) {
33811
- lf(), Pe(() => {
33817
+ af(), Pe(() => {
33812
33818
  let r = (i, o) => {
33813
33819
  Z_(!!(n != null && n.isTextInput), i, o) && t(yS());
33814
33820
  };
33815
- return sf.add(r), () => {
33816
- sf.delete(r);
33821
+ return of.add(r), () => {
33822
+ of.delete(r);
33817
33823
  };
33818
33824
  }, e);
33819
33825
  }
@@ -33846,19 +33852,19 @@ function U_(t) {
33846
33852
  }
33847
33853
  };
33848
33854
  }
33849
- let Tl = !1, Vu = 0;
33850
- function cf() {
33855
+ let Tl = !1, Fu = 0;
33856
+ function lf() {
33851
33857
  Tl = !0, setTimeout(() => {
33852
33858
  Tl = !1;
33853
33859
  }, 50);
33854
33860
  }
33855
33861
  function Eb(t) {
33856
- t.pointerType === "touch" && cf();
33862
+ t.pointerType === "touch" && lf();
33857
33863
  }
33858
33864
  function K_() {
33859
33865
  if (!(typeof document > "u"))
33860
- return typeof PointerEvent < "u" ? document.addEventListener("pointerup", Eb) : document.addEventListener("touchend", cf), Vu++, () => {
33861
- Vu--, !(Vu > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", Eb) : document.removeEventListener("touchend", cf));
33866
+ return typeof PointerEvent < "u" ? document.addEventListener("pointerup", Eb) : document.addEventListener("touchend", lf), Fu++, () => {
33867
+ Fu--, !(Fu > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", Eb) : document.removeEventListener("touchend", lf));
33862
33868
  };
33863
33869
  }
33864
33870
  function xS(t) {
@@ -33948,10 +33954,10 @@ function CS(t = {}) {
33948
33954
  focusProps: r ? f : d
33949
33955
  };
33950
33956
  }
33951
- var q_ = Object.defineProperty, Q_ = (t, e, n) => e in t ? q_(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Bu = (t, e, n) => (Q_(t, typeof e != "symbol" ? e + "" : e, n), n);
33957
+ var q_ = Object.defineProperty, Q_ = (t, e, n) => e in t ? q_(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Vu = (t, e, n) => (Q_(t, typeof e != "symbol" ? e + "" : e, n), n);
33952
33958
  let eH = class {
33953
33959
  constructor() {
33954
- Bu(this, "current", this.detect()), Bu(this, "handoffState", "pending"), Bu(this, "currentId", 0);
33960
+ Vu(this, "current", this.detect()), Vu(this, "handoffState", "pending"), Vu(this, "currentId", 0);
33955
33961
  }
33956
33962
  set(e) {
33957
33963
  this.current !== e && (this.handoffState = "pending", this.currentId = 0, this.current = e);
@@ -34080,7 +34086,7 @@ function Yn(t, e, ...n) {
34080
34086
  let r = new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map((i) => `"${i}"`).join(", ")}.`);
34081
34087
  throw Error.captureStackTrace && Error.captureStackTrace(r, Yn), r;
34082
34088
  }
34083
- var uf = ((t) => (t[t.None = 0] = "None", t[t.RenderStrategy = 1] = "RenderStrategy", t[t.Static = 2] = "Static", t))(uf || {}), oH = ((t) => (t[t.Unmount = 0] = "Unmount", t[t.Hidden = 1] = "Hidden", t))(oH || {});
34089
+ var cf = ((t) => (t[t.None = 0] = "None", t[t.RenderStrategy = 1] = "RenderStrategy", t[t.Static = 2] = "Static", t))(cf || {}), oH = ((t) => (t[t.Unmount = 0] = "Unmount", t[t.Hidden = 1] = "Hidden", t))(oH || {});
34084
34090
  function hn() {
34085
34091
  let t = aH();
34086
34092
  return fe((e) => sH({ mergeRefs: t, ...e }), [t]);
@@ -34105,7 +34111,7 @@ function sH({ ourProps: t, theirProps: e, slot: n, defaultTag: r, features: i, v
34105
34111
  return qs(l, n, r, s, a);
34106
34112
  }
34107
34113
  function qs(t, e = {}, n, r, i) {
34108
- let { as: o = n, children: s, refName: a = "ref", ...l } = Lu(t, ["unmount", "static"]), c = t.ref !== void 0 ? { [a]: t.ref } : {}, u = typeof s == "function" ? s(e) : s;
34114
+ let { as: o = n, children: s, refName: a = "ref", ...l } = Bu(t, ["unmount", "static"]), c = t.ref !== void 0 ? { [a]: t.ref } : {}, u = typeof s == "function" ? s(e) : s;
34109
34115
  "className" in l && l.className && typeof l.className == "function" && (l.className = l.className(e)), l["aria-labelledby"] && l["aria-labelledby"] === l.id && (l["aria-labelledby"] = void 0);
34110
34116
  let d = {};
34111
34117
  if (e) {
@@ -34122,11 +34128,11 @@ function qs(t, e = {}, n, r, i) {
34122
34128
  `)].join(`
34123
34129
  `));
34124
34130
  } else {
34125
- let f = u.props, p = f == null ? void 0 : f.className, h = typeof p == "function" ? (...v) => Ab(p(...v), l.className) : Ab(p, l.className), m = h ? { className: h } : {}, g = SS(u.props, Fr(Lu(l, ["ref"])));
34131
+ let f = u.props, p = f == null ? void 0 : f.className, h = typeof p == "function" ? (...v) => Ab(p(...v), l.className) : Ab(p, l.className), m = h ? { className: h } : {}, g = SS(u.props, Fr(Bu(l, ["ref"])));
34126
34132
  for (let v in d) v in g && delete d[v];
34127
34133
  return FI(u, Object.assign({}, g, d, c, { ref: i(cH(u), c.ref) }, m));
34128
34134
  }
34129
- return Kb(o, Object.assign({}, Lu(l, ["ref"]), o !== Ht && c, o !== Ht && d), u);
34135
+ return Kb(o, Object.assign({}, Bu(l, ["ref"]), o !== Ht && c, o !== Ht && d), u);
34130
34136
  }
34131
34137
  function aH() {
34132
34138
  let t = de([]), e = fe((n) => {
@@ -34179,7 +34185,7 @@ function Fr(t) {
34179
34185
  for (let n in e) e[n] === void 0 && delete e[n];
34180
34186
  return e;
34181
34187
  }
34182
- function Lu(t, e = []) {
34188
+ function Bu(t, e = []) {
34183
34189
  let n = Object.assign({}, t);
34184
34190
  for (let r of e) r in n && delete n[r];
34185
34191
  return n;
@@ -34295,29 +34301,29 @@ function IH(t, e) {
34295
34301
  let EH = mn(IH);
34296
34302
  Object.assign(EH, {});
34297
34303
  var Rt = ((t) => (t.Space = " ", t.Enter = "Enter", t.Escape = "Escape", t.Backspace = "Backspace", t.Delete = "Delete", t.ArrowLeft = "ArrowLeft", t.ArrowUp = "ArrowUp", t.ArrowRight = "ArrowRight", t.ArrowDown = "ArrowDown", t.Home = "Home", t.End = "End", t.PageUp = "PageUp", t.PageDown = "PageDown", t.Tab = "Tab", t))(Rt || {});
34298
- let vc = qe(null);
34299
- vc.displayName = "LabelContext";
34304
+ let gc = qe(null);
34305
+ gc.displayName = "LabelContext";
34300
34306
  function PS() {
34301
- let t = Me(vc);
34307
+ let t = Me(gc);
34302
34308
  if (t === null) {
34303
34309
  let e = new Error("You used a <Label /> component, but it is not inside a relevant parent.");
34304
34310
  throw Error.captureStackTrace && Error.captureStackTrace(e, PS), e;
34305
34311
  }
34306
34312
  return t;
34307
34313
  }
34308
- function bc(t) {
34314
+ function vc(t) {
34309
34315
  var e, n, r;
34310
- let i = (n = (e = Me(vc)) == null ? void 0 : e.value) != null ? n : void 0;
34316
+ let i = (n = (e = Me(gc)) == null ? void 0 : e.value) != null ? n : void 0;
34311
34317
  return ((r = t == null ? void 0 : t.length) != null ? r : 0) > 0 ? [i, ...t].filter(Boolean).join(" ") : i;
34312
34318
  }
34313
34319
  function AH({ inherit: t = !1 } = {}) {
34314
- let e = bc(), [n, r] = Oe([]), i = t ? [e, ...n].filter(Boolean) : n;
34320
+ let e = vc(), [n, r] = Oe([]), i = t ? [e, ...n].filter(Boolean) : n;
34315
34321
  return [i.length > 0 ? i.join(" ") : void 0, we(() => function(o) {
34316
34322
  let s = Se((l) => (r((c) => [...c, l]), () => r((c) => {
34317
34323
  let u = c.slice(), d = u.indexOf(l);
34318
34324
  return d !== -1 && u.splice(d, 1), u;
34319
34325
  }))), a = we(() => ({ register: s, slot: o.slot, name: o.name, props: o.props, value: o.value }), [s, o.slot, o.name, o.props, o.value]);
34320
- return $.createElement(vc.Provider, { value: a }, o.children);
34326
+ return $.createElement(gc.Provider, { value: a }, o.children);
34321
34327
  }, [r])];
34322
34328
  }
34323
34329
  let TH = "label";
@@ -34373,7 +34379,7 @@ function Ei(t, e, n) {
34373
34379
  return (l = n == null ? void 0 : n.onChange) == null || l.call(n, i), i;
34374
34380
  };
34375
34381
  }
34376
- function ju(t, e) {
34382
+ function Lu(t, e) {
34377
34383
  if (t === void 0)
34378
34384
  throw new Error("Unexpected undefined");
34379
34385
  return t;
@@ -34694,11 +34700,11 @@ class GH {
34694
34700
  ), this.getVirtualItemForOffset = (n) => {
34695
34701
  const r = this.getMeasurements();
34696
34702
  if (r.length !== 0)
34697
- return ju(
34703
+ return Lu(
34698
34704
  r[RS(
34699
34705
  0,
34700
34706
  r.length - 1,
34701
- (i) => ju(r[i]).start,
34707
+ (i) => Lu(r[i]).start,
34702
34708
  n
34703
34709
  )]
34704
34710
  );
@@ -34742,7 +34748,7 @@ class GH {
34742
34748
  if (this.scrollToIndexTimeoutId = null, this.elementsCache.has(
34743
34749
  this.options.getItemKey(n)
34744
34750
  )) {
34745
- const [c] = ju(
34751
+ const [c] = Lu(
34746
34752
  this.getOffsetForIndex(n, a)
34747
34753
  );
34748
34754
  PH(c, this.getScrollOffset()) || this.scrollToIndex(n, { align: a, behavior: i });
@@ -34838,7 +34844,7 @@ function YH(t) {
34838
34844
  return { width: e, height: n };
34839
34845
  }
34840
34846
  function kb(t, e = !1) {
34841
- let [n, r] = vf(() => ({}), {}), i = we(() => YH(t), [t, n]);
34847
+ let [n, r] = gf(() => ({}), {}), i = we(() => YH(t), [t, n]);
34842
34848
  return Ke(() => {
34843
34849
  if (!t) return;
34844
34850
  let o = new ResizeObserver(r);
@@ -34886,18 +34892,18 @@ function mh(t, e) {
34886
34892
  let o = i.indexOf(r), s = i.length;
34887
34893
  return o === -1 && (o = s, s += 1), o === s - 1;
34888
34894
  }
34889
- let df = /* @__PURE__ */ new Map(), Ho = /* @__PURE__ */ new Map();
34895
+ let uf = /* @__PURE__ */ new Map(), Ho = /* @__PURE__ */ new Map();
34890
34896
  function Mb(t) {
34891
34897
  var e;
34892
34898
  let n = (e = Ho.get(t)) != null ? e : 0;
34893
- return Ho.set(t, n + 1), n !== 0 ? () => Ob(t) : (df.set(t, { "aria-hidden": t.getAttribute("aria-hidden"), inert: t.inert }), t.setAttribute("aria-hidden", "true"), t.inert = !0, () => Ob(t));
34899
+ return Ho.set(t, n + 1), n !== 0 ? () => Ob(t) : (uf.set(t, { "aria-hidden": t.getAttribute("aria-hidden"), inert: t.inert }), t.setAttribute("aria-hidden", "true"), t.inert = !0, () => Ob(t));
34894
34900
  }
34895
34901
  function Ob(t) {
34896
34902
  var e;
34897
34903
  let n = (e = Ho.get(t)) != null ? e : 1;
34898
34904
  if (n === 1 ? Ho.delete(t) : Ho.set(t, n - 1), n !== 1) return;
34899
- let r = df.get(t);
34900
- r && (r["aria-hidden"] === null ? t.removeAttribute("aria-hidden") : t.setAttribute("aria-hidden", r["aria-hidden"]), t.inert = r.inert, df.delete(t));
34905
+ let r = uf.get(t);
34906
+ r && (r["aria-hidden"] === null ? t.removeAttribute("aria-hidden") : t.setAttribute("aria-hidden", r["aria-hidden"]), t.inert = r.inert, uf.delete(t));
34901
34907
  }
34902
34908
  function UH(t, { allowed: e, disallowed: n } = {}) {
34903
34909
  let r = mh(t, "inert-others");
@@ -34941,16 +34947,16 @@ function KH(t, e, n) {
34941
34947
  return () => o.dispose();
34942
34948
  }, [e, r, t]);
34943
34949
  }
34944
- let ff = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((t) => `${t}:not([tabindex='-1'])`).join(",");
34950
+ let df = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((t) => `${t}:not([tabindex='-1'])`).join(",");
34945
34951
  var qH = ((t) => (t[t.First = 1] = "First", t[t.Previous = 2] = "Previous", t[t.Next = 4] = "Next", t[t.Last = 8] = "Last", t[t.WrapAround = 16] = "WrapAround", t[t.NoScroll = 32] = "NoScroll", t[t.AutoFocus = 64] = "AutoFocus", t))(qH || {}), QH = ((t) => (t[t.Error = 0] = "Error", t[t.Overflow = 1] = "Overflow", t[t.Success = 2] = "Success", t[t.Underflow = 3] = "Underflow", t))(QH || {}), eW = ((t) => (t[t.Previous = -1] = "Previous", t[t.Next = 1] = "Next", t))(eW || {}), FS = ((t) => (t[t.Strict = 0] = "Strict", t[t.Loose = 1] = "Loose", t))(FS || {});
34946
34952
  function tW(t, e = 0) {
34947
34953
  var n;
34948
34954
  return t === ((n = Ts(t)) == null ? void 0 : n.body) ? !1 : Yn(e, { 0() {
34949
- return t.matches(ff);
34955
+ return t.matches(df);
34950
34956
  }, 1() {
34951
34957
  let r = t;
34952
34958
  for (; r !== null; ) {
34953
- if (r.matches(ff)) return !0;
34959
+ if (r.matches(df)) return !0;
34954
34960
  r = r.parentElement;
34955
34961
  }
34956
34962
  return !1;
@@ -35028,7 +35034,7 @@ function sW(t, e, n) {
35028
35034
  if (!(Math.abs(c.x - a.current.x) >= Pb || Math.abs(c.y - a.current.y) >= Pb)) return o(l, () => l.target instanceof HTMLElement ? l.target : null);
35029
35035
  }, !0), oW(r, "blur", (l) => o(l, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
35030
35036
  }
35031
- function yc(...t) {
35037
+ function bc(...t) {
35032
35038
  return we(() => Ts(...t), [...t]);
35033
35039
  }
35034
35040
  function aW(t, e, n, r) {
@@ -35289,7 +35295,7 @@ function GS(t) {
35289
35295
  return e.current == null ? void 0 : e.current(...r);
35290
35296
  }, []);
35291
35297
  }
35292
- var pf = typeof document < "u" ? Qi : Pe;
35298
+ var ff = typeof document < "u" ? Qi : Pe;
35293
35299
  let Vb = !1, TW = 0;
35294
35300
  const Bb = () => (
35295
35301
  // Ensure the id is unique with multiple independent versions of Floating UI
@@ -35298,7 +35304,7 @@ const Bb = () => (
35298
35304
  );
35299
35305
  function kW() {
35300
35306
  const [t, e] = I.useState(() => Vb ? Bb() : void 0);
35301
- return pf(() => {
35307
+ return ff(() => {
35302
35308
  t == null && e(Bb());
35303
35309
  }, []), I.useEffect(() => {
35304
35310
  Vb = !0;
@@ -35391,7 +35397,7 @@ function GW(t) {
35391
35397
  ...t.elements
35392
35398
  }
35393
35399
  }), r = t.rootContext || n, i = r.elements, [o, s] = I.useState(null), [a, l] = I.useState(null), u = (i == null ? void 0 : i.domReference) || o, d = I.useRef(null), f = BW();
35394
- pf(() => {
35400
+ ff(() => {
35395
35401
  u && (d.current = u);
35396
35402
  }, [u]);
35397
35403
  const p = AI({
@@ -35428,7 +35434,7 @@ function GW(t) {
35428
35434
  elements: v,
35429
35435
  nodeId: e
35430
35436
  }), [p, g, v, e, r]);
35431
- return pf(() => {
35437
+ return ff(() => {
35432
35438
  r.dataRef.current.floatingContext = b;
35433
35439
  const x = f == null ? void 0 : f.nodesRef.current.find((w) => w.id === e);
35434
35440
  x && (x.context = b);
@@ -35440,7 +35446,7 @@ function GW(t) {
35440
35446
  }), [p, g, v, b]);
35441
35447
  }
35442
35448
  const Lb = "active", jb = "selected";
35443
- function Gu(t, e, n) {
35449
+ function ju(t, e, n) {
35444
35450
  const r = /* @__PURE__ */ new Map(), i = n === "item";
35445
35451
  let o = t;
35446
35452
  if (i && t) {
@@ -35480,15 +35486,15 @@ function Gu(t, e, n) {
35480
35486
  function zW(t) {
35481
35487
  t === void 0 && (t = []);
35482
35488
  const e = t.map((a) => a == null ? void 0 : a.reference), n = t.map((a) => a == null ? void 0 : a.floating), r = t.map((a) => a == null ? void 0 : a.item), i = I.useCallback(
35483
- (a) => Gu(a, t, "reference"),
35489
+ (a) => ju(a, t, "reference"),
35484
35490
  // eslint-disable-next-line react-hooks/exhaustive-deps
35485
35491
  e
35486
35492
  ), o = I.useCallback(
35487
- (a) => Gu(a, t, "floating"),
35493
+ (a) => ju(a, t, "floating"),
35488
35494
  // eslint-disable-next-line react-hooks/exhaustive-deps
35489
35495
  n
35490
35496
  ), s = I.useCallback(
35491
- (a) => Gu(a, t, "item"),
35497
+ (a) => ju(a, t, "item"),
35492
35498
  // eslint-disable-next-line react-hooks/exhaustive-deps
35493
35499
  r
35494
35500
  );
@@ -35535,15 +35541,15 @@ const _W = (t) => ({
35535
35541
  const x = {
35536
35542
  ...e,
35537
35543
  ...await Zb(-p.offsetTop - f.clientTop - d.reference.height / 2 - p.offsetHeight / 2 - o).fn(e)
35538
- }, w = await Ic(Gb(x, h.scrollHeight + m + f.clientTop), u), y = await Ic(x, {
35544
+ }, w = await Sc(Gb(x, h.scrollHeight + m + f.clientTop), u), y = await Sc(x, {
35539
35545
  ...u,
35540
35546
  elementContext: "reference"
35541
- }), E = Ec(0, w.top), A = x.y + E, G = (h.scrollHeight > h.clientHeight ? (X) => X : MI)(Ec(0, h.scrollHeight + (g && b || v ? m * 2 : 0) - E - Ec(0, w.bottom)));
35547
+ }), E = Ic(0, w.top), A = x.y + E, G = (h.scrollHeight > h.clientHeight ? (X) => X : MI)(Ic(0, h.scrollHeight + (g && b || v ? m * 2 : 0) - E - Ic(0, w.bottom)));
35542
35548
  if (h.style.maxHeight = G + "px", h.scrollTop = E, i) {
35543
35549
  const X = h.offsetHeight < p.offsetHeight * kI(a, n.current.length) - 1 || y.top >= -l || y.bottom >= -l;
35544
- Wu.flushSync(() => i(X));
35550
+ Hu.flushSync(() => i(X));
35545
35551
  }
35546
- return r && (r.current = await Ic(Gb({
35552
+ return r && (r.current = await Sc(Gb({
35547
35553
  ...x,
35548
35554
  y: A
35549
35555
  }, h.offsetHeight + m + f.clientTop), u)), {
@@ -35567,7 +35573,7 @@ function HW(t, e) {
35567
35573
  if (m.ctrlKey || !h || o.current == null)
35568
35574
  return;
35569
35575
  const g = m.deltaY, v = o.current.top >= -0.5, b = o.current.bottom >= -0.5, x = h.scrollHeight - h.clientHeight, w = g < 0 ? -1 : 1, y = g < 0 ? "max" : "min";
35570
- h.scrollHeight <= h.clientHeight || (!v && g > 0 || !b && g < 0 ? (m.preventDefault(), Wu.flushSync(() => {
35576
+ h.scrollHeight <= h.clientHeight || (!v && g > 0 || !b && g < 0 ? (m.preventDefault(), Hu.flushSync(() => {
35571
35577
  l((E) => E + Math[y](g, x * w));
35572
35578
  })) : /firefox/i.test(IW()) && (h.scrollTop += g));
35573
35579
  }
@@ -35596,7 +35602,7 @@ function HW(t, e) {
35596
35602
  if (!(!o.current || !p || !c.current)) {
35597
35603
  if (u.current !== null) {
35598
35604
  const h = p.scrollTop - u.current;
35599
- (o.current.bottom < -0.5 && h < -1 || o.current.top < -0.5 && h > 1) && Wu.flushSync(() => l((m) => m + h));
35605
+ (o.current.bottom < -0.5 && h < -1 || o.current.top < -0.5 && h > 1) && Hu.flushSync(() => l((m) => m + h));
35600
35606
  }
35601
35607
  requestAnimationFrame(() => {
35602
35608
  u.current = p.scrollTop;
@@ -35687,10 +35693,10 @@ function JW(t) {
35687
35693
  }
35688
35694
  function UW(t, e) {
35689
35695
  var n, r, i;
35690
- let o = zu((n = t == null ? void 0 : t.gap) != null ? n : "var(--anchor-gap, 0)", e), s = zu((r = t == null ? void 0 : t.offset) != null ? r : "var(--anchor-offset, 0)", e), a = zu((i = t == null ? void 0 : t.padding) != null ? i : "var(--anchor-padding, 0)", e);
35696
+ let o = Gu((n = t == null ? void 0 : t.gap) != null ? n : "var(--anchor-gap, 0)", e), s = Gu((r = t == null ? void 0 : t.offset) != null ? r : "var(--anchor-offset, 0)", e), a = Gu((i = t == null ? void 0 : t.padding) != null ? i : "var(--anchor-padding, 0)", e);
35691
35697
  return { ...t, gap: o, offset: s, padding: a };
35692
35698
  }
35693
- function zu(t, e, n = void 0) {
35699
+ function Gu(t, e, n = void 0) {
35694
35700
  let r = ks(), i = Se((l, c) => {
35695
35701
  if (l == null) return [n, null];
35696
35702
  if (typeof l == "number") return [l, null];
@@ -35743,10 +35749,10 @@ function _b(t, e) {
35743
35749
  return e.removeChild(n), r;
35744
35750
  }
35745
35751
  function KW({ children: t, freeze: e }) {
35746
- let n = hf(e, t);
35752
+ let n = pf(e, t);
35747
35753
  return $.createElement($.Fragment, null, n);
35748
35754
  }
35749
- function hf(t, e) {
35755
+ function pf(t, e) {
35750
35756
  let [n, r] = Oe(e);
35751
35757
  return !t && n !== e && r(e), t ? n : e;
35752
35758
  }
@@ -35770,7 +35776,7 @@ e5(() => {
35770
35776
  function t(e) {
35771
35777
  if (!(e.target instanceof HTMLElement) || e.target === document.body || jr[0] === e.target) return;
35772
35778
  let n = e.target;
35773
- n = n.closest(ff), jr.unshift(n ?? e.target), jr = jr.filter((r) => r != null && r.isConnected), jr.splice(10);
35779
+ n = n.closest(df), jr.unshift(n ?? e.target), jr = jr.filter((r) => r != null && r.isConnected), jr.splice(10);
35774
35780
  }
35775
35781
  window.addEventListener("click", t, { capture: !0 }), window.addEventListener("mousedown", t, { capture: !0 }), window.addEventListener("focus", t, { capture: !0 }), document.body.addEventListener("click", t, { capture: !0 }), document.body.addEventListener("mousedown", t, { capture: !0 }), document.body.addEventListener("focus", t, { capture: !0 });
35776
35782
  });
@@ -35835,7 +35841,7 @@ function s5() {
35835
35841
  return Me(o5);
35836
35842
  }
35837
35843
  function a5(t) {
35838
- let e = s5(), n = Me(HS), r = yc(t), [i, o] = Oe(() => {
35844
+ let e = s5(), n = Me(HS), r = bc(t), [i, o] = Oe(() => {
35839
35845
  var s;
35840
35846
  if (!e && n !== null) return (s = n.current) != null ? s : null;
35841
35847
  if (ni.isServer) return null;
@@ -35854,7 +35860,7 @@ function a5(t) {
35854
35860
  let _S = Ht, l5 = mn(function(t, e) {
35855
35861
  let n = t, r = de(null), i = Qn(CH((d) => {
35856
35862
  r.current = d;
35857
- }), e), o = yc(r), s = a5(r), [a] = Oe(() => {
35863
+ }), e), o = bc(r), s = a5(r), [a] = Oe(() => {
35858
35864
  var d;
35859
35865
  return ni.isServer ? null : (d = o == null ? void 0 : o.createElement("div")) != null ? d : null;
35860
35866
  }), l = Me(f5), c = i5();
@@ -35880,7 +35886,7 @@ function d5(t, e) {
35880
35886
  }
35881
35887
  let f5 = qe(null), p5 = mn(c5), h5 = mn(d5), m5 = Object.assign(p5, { Group: h5 });
35882
35888
  var g5 = ((t) => (t[t.Open = 0] = "Open", t[t.Closed = 1] = "Closed", t))(g5 || {}), v5 = ((t) => (t[t.Single = 0] = "Single", t[t.Multi = 1] = "Multi", t))(v5 || {}), b5 = ((t) => (t[t.Pointer = 0] = "Pointer", t[t.Focus = 1] = "Focus", t[t.Other = 2] = "Other", t))(b5 || {}), y5 = ((t) => (t[t.OpenCombobox = 0] = "OpenCombobox", t[t.CloseCombobox = 1] = "CloseCombobox", t[t.GoToOption = 2] = "GoToOption", t[t.SetTyping = 3] = "SetTyping", t[t.RegisterOption = 4] = "RegisterOption", t[t.UnregisterOption = 5] = "UnregisterOption", t[t.SetActivationTrigger = 6] = "SetActivationTrigger", t[t.UpdateVirtualConfiguration = 7] = "UpdateVirtualConfiguration", t[t.SetInputElement = 8] = "SetInputElement", t[t.SetButtonElement = 9] = "SetButtonElement", t[t.SetOptionsElement = 10] = "SetOptionsElement", t))(y5 || {});
35883
- function _u(t, e = (n) => n) {
35889
+ function zu(t, e = (n) => n) {
35884
35890
  let n = t.activeOptionIndex !== null ? t.options[t.activeOptionIndex] : null, r = e(t.options.slice()), i = r.length > 0 && r[0].dataRef.current.order !== null ? r.sort((s, a) => s.dataRef.current.order - a.dataRef.current.order) : rW(r, (s) => s.dataRef.current.domRef.current), o = n ? i.indexOf(n) : null;
35885
35891
  return o === -1 && (o = null), { options: i, activeOptionIndex: o };
35886
35892
  }
@@ -35909,7 +35915,7 @@ let x5 = { 1(t) {
35909
35915
  } }), f = (i = e.trigger) != null ? i : 2;
35910
35916
  return t.activeOptionIndex === d && t.activationTrigger === f ? t : { ...t, activeOptionIndex: d, activationTrigger: f, isTyping: !1, __demoMode: !1 };
35911
35917
  }
35912
- let s = _u(t);
35918
+ let s = zu(t);
35913
35919
  if (s.activeOptionIndex === null) {
35914
35920
  let c = s.options.findIndex((u) => !u.dataRef.current.disabled);
35915
35921
  c !== -1 && (s.activeOptionIndex = c);
@@ -35919,14 +35925,14 @@ let x5 = { 1(t) {
35919
35925
  }, 4: (t, e) => {
35920
35926
  var n, r, i;
35921
35927
  if ((n = t.dataRef.current) != null && n.virtual) return { ...t, options: [...t.options, e.payload] };
35922
- let o = e.payload, s = _u(t, (l) => (l.push(o), l));
35928
+ let o = e.payload, s = zu(t, (l) => (l.push(o), l));
35923
35929
  t.activeOptionIndex === null && (r = t.dataRef.current) != null && r.isSelected(e.payload.dataRef.current.value) && (s.activeOptionIndex = s.options.indexOf(o));
35924
35930
  let a = { ...t, ...s, activationTrigger: 2 };
35925
35931
  return (i = t.dataRef.current) != null && i.__demoMode && t.dataRef.current.value === void 0 && (a.activeOptionIndex = 0), a;
35926
35932
  }, 5: (t, e) => {
35927
35933
  var n;
35928
35934
  if ((n = t.dataRef.current) != null && n.virtual) return { ...t, options: t.options.filter((i) => i.id !== e.id) };
35929
- let r = _u(t, (i) => {
35935
+ let r = zu(t, (i) => {
35930
35936
  let o = i.findIndex((s) => s.id === e.id);
35931
35937
  return o !== -1 && i.splice(o, 1), i;
35932
35938
  });
@@ -35990,7 +35996,7 @@ function w5(t, e) {
35990
35996
  let S5 = Ht;
35991
35997
  function I5(t, e) {
35992
35998
  var n, r;
35993
- let i = dh(), { value: o, defaultValue: s, onChange: a, form: l, name: c, by: u, disabled: d = i || !1, onClose: f, __demoMode: p = !1, multiple: h = !1, immediate: m = !1, virtual: g = null, nullable: v, ...b } = t, x = dH(s), [w = h ? [] : void 0, y] = uH(o, a, x), [E, A] = vf(w5, { dataRef: BI(), comboboxState: p ? 0 : 1, isTyping: !1, options: [], virtual: g ? { options: g.options, disabled: (n = g.disabled) != null ? n : () => !1 } : null, activeOptionIndex: null, activationTrigger: 2, inputElement: null, buttonElement: null, optionsElement: null, __demoMode: p }), T = de(!1), R = de({ static: !1, hold: !1 }), G = XH(u), X = Se((ue) => g ? u === null ? g.options.indexOf(ue) : g.options.findIndex((ke) => G(ke, ue)) : E.options.findIndex((ke) => G(ke.dataRef.current.value, ue))), z = fe((ue) => Yn(L.mode, { 1: () => w.some((ke) => G(ke, ue)), 0: () => G(w, ue) }), [w]), J = Se((ue) => E.activeOptionIndex === X(ue)), L = we(() => ({ ...E, immediate: m, optionsPropsRef: R, value: w, defaultValue: x, disabled: d, mode: h ? 1 : 0, virtual: g ? E.virtual : null, get activeOptionIndex() {
35999
+ let i = dh(), { value: o, defaultValue: s, onChange: a, form: l, name: c, by: u, disabled: d = i || !1, onClose: f, __demoMode: p = !1, multiple: h = !1, immediate: m = !1, virtual: g = null, nullable: v, ...b } = t, x = dH(s), [w = h ? [] : void 0, y] = uH(o, a, x), [E, A] = gf(w5, { dataRef: BI(), comboboxState: p ? 0 : 1, isTyping: !1, options: [], virtual: g ? { options: g.options, disabled: (n = g.disabled) != null ? n : () => !1 } : null, activeOptionIndex: null, activationTrigger: 2, inputElement: null, buttonElement: null, optionsElement: null, __demoMode: p }), T = de(!1), R = de({ static: !1, hold: !1 }), G = XH(u), X = Se((ue) => g ? u === null ? g.options.indexOf(ue) : g.options.findIndex((ke) => G(ke, ue)) : E.options.findIndex((ke) => G(ke.dataRef.current.value, ue))), z = fe((ue) => Yn(L.mode, { 1: () => w.some((ke) => G(ke, ue)), 0: () => G(w, ue) }), [w]), J = Se((ue) => E.activeOptionIndex === X(ue)), L = we(() => ({ ...E, immediate: m, optionsPropsRef: R, value: w, defaultValue: x, disabled: d, mode: h ? 1 : 0, virtual: g ? E.virtual : null, get activeOptionIndex() {
35994
36000
  if (T.current && E.activeOptionIndex === null && (g ? g.options.length > 0 : E.options.length > 0)) {
35995
36001
  if (g) {
35996
36002
  let ke = g.options.findIndex((wt) => {
@@ -36053,7 +36059,7 @@ function I5(t, e) {
36053
36059
  let E5 = "input";
36054
36060
  function A5(t, e) {
36055
36061
  var n, r, i, o, s;
36056
- let a = ao("Combobox.Input"), l = Os("Combobox.Input"), c = Fn(), u = kS(), { id: d = u || `headlessui-combobox-input-${c}`, onChange: f, displayValue: p, disabled: h = a.disabled || !1, autoFocus: m = !1, type: g = "text", ...v } = t, b = de(null), x = Qn(b, e, $W(), l.setInputElement), w = yc(a.inputElement), y = ks(), E = Se(() => {
36062
+ let a = ao("Combobox.Input"), l = Os("Combobox.Input"), c = Fn(), u = kS(), { id: d = u || `headlessui-combobox-input-${c}`, onChange: f, displayValue: p, disabled: h = a.disabled || !1, autoFocus: m = !1, type: g = "text", ...v } = t, b = de(null), x = Qn(b, e, $W(), l.setInputElement), w = bc(a.inputElement), y = ks(), E = Se(() => {
36057
36063
  l.onChange(null), a.optionsElement && (a.optionsElement.scrollTop = 0), l.goToOption(ot.Nothing);
36058
36064
  }), A = we(() => {
36059
36065
  var V;
@@ -36127,7 +36133,7 @@ function A5(t, e) {
36127
36133
  (se = a.buttonElement) != null && se.contains(ie) || (ne = a.optionsElement) != null && ne.contains(ie) || a.disabled || a.immediate && a.comboboxState !== 0 && y.microTask(() => {
36128
36134
  Gr(() => l.openCombobox()), l.setActivationTrigger(1);
36129
36135
  });
36130
- }), Y = bc(), F = wH(), { isFocused: B, focusProps: Q } = CS({ autoFocus: m }), { isHovered: re, hoverProps: P } = xS({ isDisabled: h }), _ = we(() => ({ open: a.comboboxState === 0, disabled: h, hover: re, focus: B, autofocus: m }), [a, re, B, m, h]), H = fh({ ref: x, id: d, role: "combobox", type: g, "aria-controls": (n = a.optionsElement) == null ? void 0 : n.id, "aria-expanded": a.comboboxState === 0, "aria-activedescendant": a.activeOptionIndex === null ? void 0 : a.virtual ? (r = a.options.find((V) => !V.dataRef.current.disabled && a.compare(V.dataRef.current.value, a.virtual.options[a.activeOptionIndex]))) == null ? void 0 : r.id : (i = a.options[a.activeOptionIndex]) == null ? void 0 : i.id, "aria-labelledby": Y, "aria-describedby": F, "aria-autocomplete": "list", defaultValue: (s = (o = t.defaultValue) != null ? o : a.defaultValue !== void 0 ? p == null ? void 0 : p(a.defaultValue) : null) != null ? s : a.defaultValue, disabled: h || void 0, autoFocus: m, onCompositionStart: R, onCompositionEnd: G, onKeyDown: X, onChange: z, onFocus: L, onBlur: J }, Q, P);
36136
+ }), Y = vc(), F = wH(), { isFocused: B, focusProps: Q } = CS({ autoFocus: m }), { isHovered: re, hoverProps: P } = xS({ isDisabled: h }), _ = we(() => ({ open: a.comboboxState === 0, disabled: h, hover: re, focus: B, autofocus: m }), [a, re, B, m, h]), H = fh({ ref: x, id: d, role: "combobox", type: g, "aria-controls": (n = a.optionsElement) == null ? void 0 : n.id, "aria-expanded": a.comboboxState === 0, "aria-activedescendant": a.activeOptionIndex === null ? void 0 : a.virtual ? (r = a.options.find((V) => !V.dataRef.current.disabled && a.compare(V.dataRef.current.value, a.virtual.options[a.activeOptionIndex]))) == null ? void 0 : r.id : (i = a.options[a.activeOptionIndex]) == null ? void 0 : i.id, "aria-labelledby": Y, "aria-describedby": F, "aria-autocomplete": "list", defaultValue: (s = (o = t.defaultValue) != null ? o : a.defaultValue !== void 0 ? p == null ? void 0 : p(a.defaultValue) : null) != null ? s : a.defaultValue, disabled: h || void 0, autoFocus: m, onCompositionStart: R, onCompositionEnd: G, onKeyDown: X, onChange: z, onFocus: L, onBlur: J }, Q, P);
36131
36137
  return hn()({ ourProps: H, theirProps: v, slot: _, defaultTag: E5, name: "Combobox.Input" });
36132
36138
  }
36133
36139
  let T5 = "button";
@@ -36154,15 +36160,15 @@ function k5(t, e) {
36154
36160
  }
36155
36161
  }), p = Se((A) => {
36156
36162
  A.preventDefault(), !yH(A.currentTarget) && (A.button === bh.Left && (r.comboboxState === 0 ? i.closeCombobox() : i.openCombobox()), d());
36157
- }), h = bc([a]), { isFocusVisible: m, focusProps: g } = CS({ autoFocus: c }), { isHovered: v, hoverProps: b } = xS({ isDisabled: l }), { pressed: x, pressProps: w } = rH({ disabled: l }), y = we(() => ({ open: r.comboboxState === 0, active: x || r.comboboxState === 0, disabled: l, value: r.value, hover: v, focus: m }), [r, v, m, x, l]), E = fh({ ref: o, id: a, type: lW(t, r.buttonElement), tabIndex: -1, "aria-haspopup": "listbox", "aria-controls": (n = r.optionsElement) == null ? void 0 : n.id, "aria-expanded": r.comboboxState === 0, "aria-labelledby": h, disabled: l || void 0, autoFocus: c, onMouseDown: p, onKeyDown: f }, g, b, w);
36163
+ }), h = vc([a]), { isFocusVisible: m, focusProps: g } = CS({ autoFocus: c }), { isHovered: v, hoverProps: b } = xS({ isDisabled: l }), { pressed: x, pressProps: w } = rH({ disabled: l }), y = we(() => ({ open: r.comboboxState === 0, active: x || r.comboboxState === 0, disabled: l, value: r.value, hover: v, focus: m }), [r, v, m, x, l]), E = fh({ ref: o, id: a, type: lW(t, r.buttonElement), tabIndex: -1, "aria-haspopup": "listbox", "aria-controls": (n = r.optionsElement) == null ? void 0 : n.id, "aria-expanded": r.comboboxState === 0, "aria-labelledby": h, disabled: l || void 0, autoFocus: c, onMouseDown: p, onKeyDown: f }, g, b, w);
36158
36164
  return hn()({ ourProps: E, theirProps: u, slot: y, defaultTag: T5, name: "Combobox.Button" });
36159
36165
  }
36160
- let M5 = "div", O5 = uf.RenderStrategy | uf.Static;
36166
+ let M5 = "div", O5 = cf.RenderStrategy | cf.Static;
36161
36167
  function P5(t, e) {
36162
36168
  var n, r, i;
36163
36169
  let o = Fn(), { id: s = `headlessui-combobox-options-${o}`, hold: a = !1, anchor: l, portal: c = !1, modal: u = !0, transition: d = !1, ...f } = t, p = ao("Combobox.Options"), h = Os("Combobox.Options"), m = WW(l);
36164
36170
  m && (c = !0);
36165
- let [g, v] = YW(m), [b, x] = Oe(null), w = XW(), y = Qn(e, m ? g : null, h.setOptionsElement, x), E = yc(p.optionsElement), A = qW(), [T, R] = yW(d, b, A !== null ? (A & ds.Open) === ds.Open : p.comboboxState === 0);
36171
+ let [g, v] = YW(m), [b, x] = Oe(null), w = XW(), y = Qn(e, m ? g : null, h.setOptionsElement, x), E = bc(p.optionsElement), A = qW(), [T, R] = yW(d, b, A !== null ? (A & ds.Open) === ds.Open : p.comboboxState === 0);
36166
36172
  KH(T, p.inputElement, h.closeCombobox);
36167
36173
  let G = p.__demoMode ? !1 : u && p.comboboxState === 0;
36168
36174
  hW(G, E);
@@ -36177,11 +36183,11 @@ function P5(t, e) {
36177
36183
  }, walk(H) {
36178
36184
  H.setAttribute("role", "none");
36179
36185
  } });
36180
- let z = bc([(n = p.buttonElement) == null ? void 0 : n.id]), J = we(() => ({ open: p.comboboxState === 0, option: void 0 }), [p.comboboxState]), L = Se(() => {
36186
+ let z = vc([(n = p.buttonElement) == null ? void 0 : n.id]), J = we(() => ({ open: p.comboboxState === 0, option: void 0 }), [p.comboboxState]), L = Se(() => {
36181
36187
  h.setActivationTrigger(0);
36182
36188
  }), Y = Se((H) => {
36183
36189
  H.preventDefault(), h.setActivationTrigger(0);
36184
- }), F = fh(m ? w() : {}, { "aria-labelledby": z, role: "listbox", "aria-multiselectable": p.mode === 1 ? !0 : void 0, id: s, ref: y, style: { ...f.style, ...v, "--input-width": kb(p.inputElement, !0).width, "--button-width": kb(p.buttonElement, !0).width }, onWheel: p.activationTrigger === 0 ? void 0 : L, onMouseDown: Y, ...bW(R) }), B = T && p.comboboxState === 1, Q = hf(B, (r = p.virtual) == null ? void 0 : r.options), re = hf(B, p.value), P = Se((H) => p.compare(re, H));
36190
+ }), F = fh(m ? w() : {}, { "aria-labelledby": z, role: "listbox", "aria-multiselectable": p.mode === 1 ? !0 : void 0, id: s, ref: y, style: { ...f.style, ...v, "--input-width": kb(p.inputElement, !0).width, "--button-width": kb(p.buttonElement, !0).width }, onWheel: p.activationTrigger === 0 ? void 0 : L, onMouseDown: Y, ...bW(R) }), B = T && p.comboboxState === 1, Q = pf(B, (r = p.virtual) == null ? void 0 : r.options), re = pf(B, p.value), P = Se((H) => p.compare(re, H));
36185
36191
  if (p.virtual) {
36186
36192
  if (Q === void 0) throw new Error("Missing `options` in virtual mode");
36187
36193
  Object.assign(f, { children: $.createElement(fs.Provider, { value: Q !== p.virtual.options ? { ...p, virtual: { ...p.virtual, options: Q } } : p }, $.createElement(C5, { slot: J }, f.children)) });
@@ -36222,7 +36228,7 @@ function D5(t, e) {
36222
36228
  }), J = we(() => ({ active: m, focus: m, selected: g, disabled: d }), [m, g, d]), L = { id: c, ref: w, role: "option", tabIndex: d === !0 ? void 0 : -1, "aria-disabled": d === !0 ? !0 : void 0, "aria-selected": g, disabled: void 0, onMouseDown: A, onFocus: T, onPointerEnter: G, onMouseEnter: G, onPointerMove: X, onMouseMove: X, onPointerLeave: z, onMouseLeave: z };
36223
36229
  return hn()({ ourProps: L, theirProps: p, slot: J, defaultTag: R5, name: "Combobox.Option" });
36224
36230
  }
36225
- let N5 = mn(I5), F5 = mn(k5), $S = mn(A5), V5 = OH, XS = mn(P5), mf = mn(D5), B5 = Object.assign(N5, { Input: $S, Button: F5, Label: V5, Options: XS, Option: mf });
36231
+ let N5 = mn(I5), F5 = mn(k5), $S = mn(A5), V5 = OH, XS = mn(P5), hf = mn(D5), B5 = Object.assign(N5, { Input: $S, Button: F5, Label: V5, Options: XS, Option: hf });
36226
36232
  const L5 = (t, e) => {
36227
36233
  switch (t) {
36228
36234
  case "country":
@@ -36294,7 +36300,7 @@ const L5 = (t, e) => {
36294
36300
  "scrollHidden absolute top-14 z-10 mt-2 flex w-full flex-col rounded-md border border-solid border-blue-grey-700 bg-color-white p-2 transition-all empty:invisible data-[closed]:scale-95 data-[closed]:opacity-0"
36295
36301
  ),
36296
36302
  children: /* @__PURE__ */ C.jsx("div", { className: "customScrollbar-y !max-h-[246px] overflow-x-hidden p-2", children: t && (t == null ? void 0 : t.length) > 0 ? /* @__PURE__ */ C.jsx(C.Fragment, { children: t == null ? void 0 : t.map(({ value: e, additionalText: n, isDisabled: r }) => /* @__PURE__ */ C.jsx(
36297
- mf,
36303
+ hf,
36298
36304
  {
36299
36305
  disabled: r,
36300
36306
  value: e ?? "",
@@ -36305,7 +36311,7 @@ const L5 = (t, e) => {
36305
36311
  ] })
36306
36312
  },
36307
36313
  e
36308
- )) }) : /* @__PURE__ */ C.jsx(mf, { value: "", className: "desk-body-regular-m text-color-tetriary", children: "Ничего не найдено" }) })
36314
+ )) }) : /* @__PURE__ */ C.jsx(hf, { value: "", className: "desk-body-regular-m text-color-tetriary", children: "Ничего не найдено" }) })
36309
36315
  }
36310
36316
  ), H5 = ({
36311
36317
  control: t,
@@ -36406,8 +36412,8 @@ export {
36406
36412
  Q5 as TabsSwitcher,
36407
36413
  m$ as TextareaControl,
36408
36414
  vA as debounce,
36409
- Ac as useBoolean,
36410
- Tf as useClickOutside,
36415
+ Ec as useBoolean,
36416
+ Af as useClickOutside,
36411
36417
  K5 as useCombineRef,
36412
36418
  U5 as useControlledForm,
36413
36419
  bA as useDebounceCallback,