@factorialco/f0-react 1.457.1 → 1.458.1

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.
@@ -1,5 +1,5 @@
1
1
  import * as W from "react";
2
- import he, { useContext as qt, createContext as Tn, useRef as Le, useImperativeHandle as ef, useEffect as Ve, useState as de, useCallback as Pe, forwardRef as U, memo as fx, useLayoutEffect as la, useId as Pa, useInsertionEffect as fSe, useMemo as _e, Children as Y9, isValidElement as T3, Fragment as V3, createElement as Ul, Component as uee, useReducer as A4t, PureComponent as N7, cloneElement as A1, useDeferredValue as F4t, useDebugValue as dSe, createRef as D4t, version as G4e, useSyncExternalStore as U4e } from "react";
2
+ import he, { useContext as qt, createContext as Tn, useRef as Le, useImperativeHandle as ef, useEffect as Fe, useState as de, useCallback as Pe, forwardRef as U, memo as fx, useLayoutEffect as la, useId as Pa, useInsertionEffect as fSe, useMemo as _e, Children as Y9, isValidElement as T3, Fragment as V3, createElement as Ul, Component as uee, useReducer as A4t, PureComponent as N7, cloneElement as A1, useDeferredValue as F4t, useDebugValue as dSe, createRef as D4t, version as G4e, useSyncExternalStore as U4e } from "react";
3
3
  import { jsxs as A, jsx as f, Fragment as _t } from "react/jsx-runtime";
4
4
  import { useCopilotAction as a5, useLazyToolRenderer as V4t, useCopilotContext as dx, useFrontendTool as hSe, useCoAgent as fee, useCopilotChatInternal as I7, CopilotKit as O4t } from "@copilotkit/react-core";
5
5
  import { Markdown as pSe, useChatContext as H4t, CopilotSidebar as N4t } from "@copilotkit/react-ui";
@@ -83,7 +83,7 @@ const q4e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, I4t = (e)
83
83
  },
84
84
  [i, n]
85
85
  ), o = Pe(() => n(!1), [n]);
86
- return Ve(() => {
86
+ return Fe(() => {
87
87
  window.XRay = {
88
88
  enable: a,
89
89
  disable: o
@@ -133,7 +133,7 @@ const q4e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, I4t = (e)
133
133
  const { enabled: n, filter: r } = W.useContext(hee), i = Le(null);
134
134
  ef(t, () => i.current);
135
135
  const a = n && !e.internal, o = typeof document < "u" ? document.body : null;
136
- return Ve(() => {
136
+ return Fe(() => {
137
137
  if (!a || !i.current || !r.includes(e.type)) return;
138
138
  const s = i.current;
139
139
  s.dataset.componentName = e.name;
@@ -196,7 +196,7 @@ const q4e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, I4t = (e)
196
196
  const [a, o] = de(
197
197
  t ?? "unknown"
198
198
  );
199
- return Ve(() => {
199
+ return Fe(() => {
200
200
  t === void 0 && z4t().then(o);
201
201
  }, [t]), /* @__PURE__ */ f(
202
202
  px.Provider,
@@ -363,7 +363,7 @@ function b6(e) {
363
363
  const t = Le(null);
364
364
  return t.current === null && (t.current = e()), t.current;
365
365
  }
366
- const mee = typeof window < "u", YF = mee ? la : Ve, KF = /* @__PURE__ */ Tn(null), rp = Tn({
366
+ const mee = typeof window < "u", YF = mee ? la : Fe, KF = /* @__PURE__ */ Tn(null), rp = Tn({
367
367
  transformPagePoint: (e) => e,
368
368
  isStatic: !1,
369
369
  reducedMotion: "never"
@@ -450,7 +450,7 @@ function CSe(e = !0) {
450
450
  if (t === null)
451
451
  return [!0, null];
452
452
  const { isPresent: n, onExitComplete: r, register: i } = t, a = Pa();
453
- Ve(() => {
453
+ Fe(() => {
454
454
  if (e)
455
455
  return i(a);
456
456
  }, [e]);
@@ -794,7 +794,7 @@ function m5t(e, t, n, r, i) {
794
794
  const p = n[MSe], m = Le(!!p && !window.MotionHandoffIsComplete?.(p) && window.MotionHasOptimisedAnimation?.(p));
795
795
  return YF(() => {
796
796
  u && (h.current = !0, window.MotionIsMounted = !0, u.updateFeatures(), xee.render(u.render), m.current && u.animationState && u.animationState.animateChanges());
797
- }), Ve(() => {
797
+ }), Fe(() => {
798
798
  u && (!m.current && u.animationState && u.animationState.animateChanges(), m.current && (queueMicrotask(() => {
799
799
  window.MotionHandoffMarkAsComplete?.(p);
800
800
  }), m.current = !1));
@@ -5133,7 +5133,7 @@ function YEe(e) {
5133
5133
  const t = b6(() => Lu(e)), { isStatic: n } = qt(rp);
5134
5134
  if (n) {
5135
5135
  const [, r] = de(e);
5136
- Ve(() => t.on("change", r), []);
5136
+ Fe(() => t.on("change", r), []);
5137
5137
  }
5138
5138
  return t;
5139
5139
  }
@@ -5237,7 +5237,7 @@ function z9t({ children: e, as: t = "ul", axis: n = "y", onReorder: r, values: i
5237
5237
  l !== m && (c.current = !0, r(m.map(W9t).filter((v) => i.indexOf(v) !== -1)));
5238
5238
  }
5239
5239
  };
5240
- return Ve(() => {
5240
+ return Fe(() => {
5241
5241
  c.current = !1;
5242
5242
  }), f(s, { ...a, ref: o, ignoreStrict: !0, children: f(JEe.Provider, { value: u, children: e }) });
5243
5243
  }
@@ -7820,8 +7820,8 @@ var Xee = {};
7820
7820
  } else if (j.shape === "circle")
7821
7821
  O.ellipse ? O.ellipse(j.x, j.y, Math.abs(Y - I) * j.ovalScalar, Math.abs(ae - q) * j.ovalScalar, Math.PI / 10 * j.wobble, 0, 2 * Math.PI) : T(O, j.x, j.y, Math.abs(Y - I) * j.ovalScalar, Math.abs(ae - q) * j.ovalScalar, Math.PI / 10 * j.wobble, 0, 2 * Math.PI);
7822
7822
  else if (j.shape === "star")
7823
- for (var se = Math.PI / 2 * 3, Ae = 4 * j.scalar, Ie = 8 * j.scalar, Fe = j.x, pe = j.y, ke = 5, Se = Math.PI / ke; ke--; )
7824
- Fe = j.x + Math.cos(se) * Ie, pe = j.y + Math.sin(se) * Ie, O.lineTo(Fe, pe), se += Se, Fe = j.x + Math.cos(se) * Ae, pe = j.y + Math.sin(se) * Ae, O.lineTo(Fe, pe), se += Se;
7823
+ for (var se = Math.PI / 2 * 3, Ae = 4 * j.scalar, Ie = 8 * j.scalar, De = j.x, pe = j.y, ke = 5, Se = Math.PI / ke; ke--; )
7824
+ De = j.x + Math.cos(se) * Ie, pe = j.y + Math.sin(se) * Ie, O.lineTo(De, pe), se += Se, De = j.x + Math.cos(se) * Ae, pe = j.y + Math.sin(se) * Ae, O.lineTo(De, pe), se += Se;
7825
7825
  else
7826
7826
  O.moveTo(Math.floor(j.x), Math.floor(j.y)), O.lineTo(Math.floor(j.wobbleX), Math.floor(q)), O.lineTo(Math.floor(Y), Math.floor(ae)), O.lineTo(Math.floor(I), Math.floor(j.wobbleY));
7827
7827
  return O.closePath(), O.fill(), j.tick < j.totalTicks;
@@ -7852,7 +7852,7 @@ var Xee = {};
7852
7852
  function H(O, j) {
7853
7853
  var B = !O, I = !!g(j || {}, "resize"), q = !1, Y = g(j, "disableForReducedMotion", Boolean), ae = a && !!g(j || {}, "useWorker"), le = ae ? h() : null, ce = B ? _ : M, ie = O && le ? !!O.__confetti_initialized : !1, oe = typeof matchMedia == "function" && matchMedia("(prefers-reduced-motion)").matches, Ce;
7854
7854
  function Q(se, Ae, Ie) {
7855
- for (var Fe = g(se, "particleCount", C), pe = g(se, "angle", Number), ke = g(se, "spread", Number), Se = g(se, "startVelocity", Number), $e = g(se, "decay", Number), Ye = g(se, "gravity", Number), Ke = g(se, "drift", Number), Ze = g(se, "colors", w), Xe = g(se, "ticks", Number), Ee = g(se, "shapes"), De = g(se, "scalar"), tt = !!g(se, "flat"), yt = k(se), We = Fe, ft = [], Zt = O.width * yt.x, Ht = O.height * yt.y; We--; )
7855
+ for (var De = g(se, "particleCount", C), pe = g(se, "angle", Number), ke = g(se, "spread", Number), Se = g(se, "startVelocity", Number), $e = g(se, "decay", Number), Ye = g(se, "gravity", Number), Ke = g(se, "drift", Number), Ze = g(se, "colors", w), Xe = g(se, "ticks", Number), Ee = g(se, "shapes"), Ve = g(se, "scalar"), tt = !!g(se, "flat"), yt = k(se), We = De, ft = [], Zt = O.width * yt.x, Ht = O.height * yt.y; We--; )
7856
7856
  ft.push(
7857
7857
  P({
7858
7858
  x: Zt,
@@ -7866,7 +7866,7 @@ var Xee = {};
7866
7866
  decay: $e,
7867
7867
  gravity: Ye,
7868
7868
  drift: Ke,
7869
- scalar: De,
7869
+ scalar: Ve,
7870
7870
  flat: tt
7871
7871
  })
7872
7872
  );
@@ -7879,7 +7879,7 @@ var Xee = {};
7879
7879
  Se();
7880
7880
  });
7881
7881
  B && Ce ? O = Ce.canvas : B && !O && (O = S(Ie), document.body.appendChild(O)), I && !ie && ce(O);
7882
- var Fe = {
7882
+ var De = {
7883
7883
  width: O.width,
7884
7884
  height: O.height
7885
7885
  };
@@ -7900,12 +7900,12 @@ var Xee = {};
7900
7900
  });
7901
7901
  return;
7902
7902
  }
7903
- Fe.width = Fe.height = null;
7903
+ De.width = De.height = null;
7904
7904
  }
7905
7905
  function ke() {
7906
7906
  Ce = null, I && (q = !1, t.removeEventListener("resize", pe)), B && O && (document.body.contains(O) && document.body.removeChild(O), O = null, ie = !1);
7907
7907
  }
7908
- return I && !q && (q = !0, t.addEventListener("resize", pe, !1)), le ? le.fire(se, Fe, ke) : Q(se, Fe, ke);
7908
+ return I && !q && (q = !0, t.addEventListener("resize", pe, !1)), le ? le.fire(se, De, ke) : Q(se, De, ke);
7909
7909
  }
7910
7910
  return Me.reset = function() {
7911
7911
  le && le.reset(), Ce && Ce.reset();
@@ -8112,12 +8112,12 @@ function T7t() {
8112
8112
  }
8113
8113
  var P7t = T7t();
8114
8114
  const C0e = /* @__PURE__ */ L2(P7t);
8115
- var Yee = typeof window < "u" ? la : Ve;
8115
+ var Yee = typeof window < "u" ? la : Fe;
8116
8116
  function A7t(e, t, n, r) {
8117
8117
  const i = Le(t);
8118
8118
  Yee(() => {
8119
8119
  i.current = t;
8120
- }, [t]), Ve(() => {
8120
+ }, [t]), Fe(() => {
8121
8121
  const a = window;
8122
8122
  if (!(a && a.addEventListener))
8123
8123
  return;
@@ -8147,7 +8147,7 @@ function Om(e, {
8147
8147
  }
8148
8148
  function D7t(e) {
8149
8149
  const t = Le(e);
8150
- t.current = e, Ve(
8150
+ t.current = e, Fe(
8151
8151
  () => () => {
8152
8152
  t.current();
8153
8153
  },
@@ -8165,7 +8165,7 @@ function Kee(e, t = 500, n) {
8165
8165
  a.cancel();
8166
8166
  }, o.isPending = () => !!r.current, o.flush = () => a.flush(), o;
8167
8167
  }, [e, t, n]);
8168
- return Ve(() => {
8168
+ return Fe(() => {
8169
8169
  r.current = C0e(e, t, n);
8170
8170
  }, [e, t, n]), i;
8171
8171
  }
@@ -8192,7 +8192,7 @@ function BYr({
8192
8192
  })), d = Le();
8193
8193
  d.current = a;
8194
8194
  const h = ((o = c.entry) == null ? void 0 : o.isIntersecting) && r;
8195
- Ve(() => {
8195
+ Fe(() => {
8196
8196
  if (!s || !("IntersectionObserver" in window) || h)
8197
8197
  return;
8198
8198
  const v = new IntersectionObserver(
@@ -8218,7 +8218,7 @@ function BYr({
8218
8218
  r
8219
8219
  ]);
8220
8220
  const p = Le(null);
8221
- Ve(() => {
8221
+ Fe(() => {
8222
8222
  var v;
8223
8223
  !s && ((v = c.entry) != null && v.target) && !r && !h && p.current !== c.entry.target && (p.current = c.entry.target, u({ isIntersecting: i, entry: void 0 }));
8224
8224
  }, [s, c.entry, r, h, i]);
@@ -8231,7 +8231,7 @@ function BYr({
8231
8231
  }
8232
8232
  function O7t() {
8233
8233
  const e = Le(!1);
8234
- return Ve(() => (e.current = !0, () => {
8234
+ return Fe(() => (e.current = !0, () => {
8235
8235
  e.current = !1;
8236
8236
  }), []), Pe(() => e.current, []);
8237
8237
  }
@@ -8254,7 +8254,7 @@ var y0e = {
8254
8254
  };
8255
8255
  function N7t(e) {
8256
8256
  const { ref: t, box: n = "content-box" } = e, [{ width: r, height: i }, a] = de(y0e), o = O7t(), s = Le({ ...y0e }), l = Le(void 0);
8257
- return l.current = e.onResize, Ve(() => {
8257
+ return l.current = e.onResize, Fe(() => {
8258
8258
  if (!t.current || typeof window > "u" || !("ResizeObserver" in window))
8259
8259
  return;
8260
8260
  const c = new ResizeObserver(([u]) => {
@@ -8382,7 +8382,7 @@ const zYr = () => {
8382
8382
  warn: void 0,
8383
8383
  componentName: ""
8384
8384
  }) => {
8385
- Ve(() => {
8385
+ Fe(() => {
8386
8386
  if (e !== void 0 && t) {
8387
8387
  const r = n.warn ?? !0;
8388
8388
  B7t(e, t, r, n.componentName);
@@ -9809,7 +9809,7 @@ const K8t = x8t, J8t = k8t, Q8t = y8t, ect = _8t, tct = b8t, D0e = C8t, nct = L8
9809
9809
  platform: a
9810
9810
  });
9811
9811
  };
9812
- var NS = typeof document < "u" ? la : Ve;
9812
+ var NS = typeof document < "u" ? la : Fe;
9813
9813
  function IE(e, t) {
9814
9814
  if (e === t)
9815
9815
  return !0;
@@ -19586,7 +19586,7 @@ function UPe({
19586
19586
  }, [u]), h = Pe(() => {
19587
19587
  u(), l.current = setTimeout(() => s(!0), c);
19588
19588
  }, [u, c]);
19589
- Ve(() => d, [d]);
19589
+ Fe(() => d, [d]);
19590
19590
  const p = Pe((m) => {
19591
19591
  try {
19592
19592
  return m.matches(":focus-visible");
@@ -20352,9 +20352,9 @@ function tAe() {
20352
20352
  value: null
20353
20353
  }
20354
20354
  }));
20355
- let ie = !0, oe = !0, Ce = !1, Q = !0, Me = !1, se = !0, Ae = !1, Ie = !1, Fe = !1, pe = !1, ke = !1, Se = !1, $e = !0, Ye = !1;
20355
+ let ie = !0, oe = !0, Ce = !1, Q = !0, Me = !1, se = !0, Ae = !1, Ie = !1, De = !1, pe = !1, ke = !1, Se = !1, $e = !0, Ye = !1;
20356
20356
  const Ke = "user-content-";
20357
- let Ze = !0, Xe = !1, Ee = {}, De = null;
20357
+ let Ze = !0, Xe = !1, Ee = {}, Ve = null;
20358
20358
  const tt = yr({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
20359
20359
  let yt = null;
20360
20360
  const We = yr({}, ["audio", "video", "img", "source", "image", "track"]);
@@ -20373,7 +20373,7 @@ function tAe() {
20373
20373
  let ye = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
20374
20374
  if (!(ar && ar === ye)) {
20375
20375
  if ((!ye || typeof ye != "object") && (ye = {}), ye = _5(ye), Pn = // eslint-disable-next-line unicorn/prefer-includes
20376
- $r.indexOf(ye.PARSER_MEDIA_TYPE) === -1 ? mn : ye.PARSER_MEDIA_TYPE, Mn = Pn === "application/xhtml+xml" ? eI : $S, j = f3(ye, "ALLOWED_TAGS") ? yr({}, ye.ALLOWED_TAGS, Mn) : B, I = f3(ye, "ALLOWED_ATTR") ? yr({}, ye.ALLOWED_ATTR, Mn) : q, Et = f3(ye, "ALLOWED_NAMESPACES") ? yr({}, ye.ALLOWED_NAMESPACES, eI) : Lt, ft = f3(ye, "ADD_URI_SAFE_ATTR") ? yr(_5(Zt), ye.ADD_URI_SAFE_ATTR, Mn) : Zt, yt = f3(ye, "ADD_DATA_URI_TAGS") ? yr(_5(We), ye.ADD_DATA_URI_TAGS, Mn) : We, De = f3(ye, "FORBID_CONTENTS") ? yr({}, ye.FORBID_CONTENTS, Mn) : tt, ae = f3(ye, "FORBID_TAGS") ? yr({}, ye.FORBID_TAGS, Mn) : _5({}), le = f3(ye, "FORBID_ATTR") ? yr({}, ye.FORBID_ATTR, Mn) : _5({}), Ee = f3(ye, "USE_PROFILES") ? ye.USE_PROFILES : !1, ie = ye.ALLOW_ARIA_ATTR !== !1, oe = ye.ALLOW_DATA_ATTR !== !1, Ce = ye.ALLOW_UNKNOWN_PROTOCOLS || !1, Q = ye.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Me = ye.SAFE_FOR_TEMPLATES || !1, se = ye.SAFE_FOR_XML !== !1, Ae = ye.WHOLE_DOCUMENT || !1, pe = ye.RETURN_DOM || !1, ke = ye.RETURN_DOM_FRAGMENT || !1, Se = ye.RETURN_TRUSTED_TYPE || !1, Fe = ye.FORCE_BODY || !1, $e = ye.SANITIZE_DOM !== !1, Ye = ye.SANITIZE_NAMED_PROPS || !1, Ze = ye.KEEP_CONTENT !== !1, Xe = ye.IN_PLACE || !1, O = ye.ALLOWED_URI_REGEXP || QPe, Ge = ye.NAMESPACE || gt, fn = ye.MATHML_TEXT_INTEGRATION_POINTS || fn, _n = ye.HTML_INTEGRATION_POINTS || _n, Y = ye.CUSTOM_ELEMENT_HANDLING || {}, ye.CUSTOM_ELEMENT_HANDLING && l2(ye.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Y.tagNameCheck = ye.CUSTOM_ELEMENT_HANDLING.tagNameCheck), ye.CUSTOM_ELEMENT_HANDLING && l2(ye.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Y.attributeNameCheck = ye.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), ye.CUSTOM_ELEMENT_HANDLING && typeof ye.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Y.allowCustomizedBuiltInElements = ye.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Me && (oe = !1), ke && (pe = !0), Ee && (j = yr({}, $0e), I = RS(null), Ee.html === !0 && (yr(j, R0e), yr(I, B0e)), Ee.svg === !0 && (yr(j, nI), yr(I, aI), yr(I, qL)), Ee.svgFilters === !0 && (yr(j, rI), yr(I, aI), yr(I, qL)), Ee.mathMl === !0 && (yr(j, iI), yr(I, Z0e), yr(I, qL))), f3(ye, "ADD_TAGS") || (ce.tagCheck = null), f3(ye, "ADD_ATTR") || (ce.attributeCheck = null), ye.ADD_TAGS && (typeof ye.ADD_TAGS == "function" ? ce.tagCheck = ye.ADD_TAGS : (j === B && (j = _5(j)), yr(j, ye.ADD_TAGS, Mn))), ye.ADD_ATTR && (typeof ye.ADD_ATTR == "function" ? ce.attributeCheck = ye.ADD_ATTR : (I === q && (I = _5(I)), yr(I, ye.ADD_ATTR, Mn))), ye.ADD_URI_SAFE_ATTR && yr(ft, ye.ADD_URI_SAFE_ATTR, Mn), ye.FORBID_CONTENTS && (De === tt && (De = _5(De)), yr(De, ye.FORBID_CONTENTS, Mn)), ye.ADD_FORBID_CONTENTS && (De === tt && (De = _5(De)), yr(De, ye.ADD_FORBID_CONTENTS, Mn)), Ze && (j["#text"] = !0), Ae && yr(j, ["html", "head", "body"]), j.table && (yr(j, ["tbody"]), delete ae.tbody), ye.TRUSTED_TYPES_POLICY) {
20376
+ $r.indexOf(ye.PARSER_MEDIA_TYPE) === -1 ? mn : ye.PARSER_MEDIA_TYPE, Mn = Pn === "application/xhtml+xml" ? eI : $S, j = f3(ye, "ALLOWED_TAGS") ? yr({}, ye.ALLOWED_TAGS, Mn) : B, I = f3(ye, "ALLOWED_ATTR") ? yr({}, ye.ALLOWED_ATTR, Mn) : q, Et = f3(ye, "ALLOWED_NAMESPACES") ? yr({}, ye.ALLOWED_NAMESPACES, eI) : Lt, ft = f3(ye, "ADD_URI_SAFE_ATTR") ? yr(_5(Zt), ye.ADD_URI_SAFE_ATTR, Mn) : Zt, yt = f3(ye, "ADD_DATA_URI_TAGS") ? yr(_5(We), ye.ADD_DATA_URI_TAGS, Mn) : We, Ve = f3(ye, "FORBID_CONTENTS") ? yr({}, ye.FORBID_CONTENTS, Mn) : tt, ae = f3(ye, "FORBID_TAGS") ? yr({}, ye.FORBID_TAGS, Mn) : _5({}), le = f3(ye, "FORBID_ATTR") ? yr({}, ye.FORBID_ATTR, Mn) : _5({}), Ee = f3(ye, "USE_PROFILES") ? ye.USE_PROFILES : !1, ie = ye.ALLOW_ARIA_ATTR !== !1, oe = ye.ALLOW_DATA_ATTR !== !1, Ce = ye.ALLOW_UNKNOWN_PROTOCOLS || !1, Q = ye.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Me = ye.SAFE_FOR_TEMPLATES || !1, se = ye.SAFE_FOR_XML !== !1, Ae = ye.WHOLE_DOCUMENT || !1, pe = ye.RETURN_DOM || !1, ke = ye.RETURN_DOM_FRAGMENT || !1, Se = ye.RETURN_TRUSTED_TYPE || !1, De = ye.FORCE_BODY || !1, $e = ye.SANITIZE_DOM !== !1, Ye = ye.SANITIZE_NAMED_PROPS || !1, Ze = ye.KEEP_CONTENT !== !1, Xe = ye.IN_PLACE || !1, O = ye.ALLOWED_URI_REGEXP || QPe, Ge = ye.NAMESPACE || gt, fn = ye.MATHML_TEXT_INTEGRATION_POINTS || fn, _n = ye.HTML_INTEGRATION_POINTS || _n, Y = ye.CUSTOM_ELEMENT_HANDLING || {}, ye.CUSTOM_ELEMENT_HANDLING && l2(ye.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Y.tagNameCheck = ye.CUSTOM_ELEMENT_HANDLING.tagNameCheck), ye.CUSTOM_ELEMENT_HANDLING && l2(ye.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Y.attributeNameCheck = ye.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), ye.CUSTOM_ELEMENT_HANDLING && typeof ye.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Y.allowCustomizedBuiltInElements = ye.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Me && (oe = !1), ke && (pe = !0), Ee && (j = yr({}, $0e), I = RS(null), Ee.html === !0 && (yr(j, R0e), yr(I, B0e)), Ee.svg === !0 && (yr(j, nI), yr(I, aI), yr(I, qL)), Ee.svgFilters === !0 && (yr(j, rI), yr(I, aI), yr(I, qL)), Ee.mathMl === !0 && (yr(j, iI), yr(I, Z0e), yr(I, qL))), f3(ye, "ADD_TAGS") || (ce.tagCheck = null), f3(ye, "ADD_ATTR") || (ce.attributeCheck = null), ye.ADD_TAGS && (typeof ye.ADD_TAGS == "function" ? ce.tagCheck = ye.ADD_TAGS : (j === B && (j = _5(j)), yr(j, ye.ADD_TAGS, Mn))), ye.ADD_ATTR && (typeof ye.ADD_ATTR == "function" ? ce.attributeCheck = ye.ADD_ATTR : (I === q && (I = _5(I)), yr(I, ye.ADD_ATTR, Mn))), ye.ADD_URI_SAFE_ATTR && yr(ft, ye.ADD_URI_SAFE_ATTR, Mn), ye.FORBID_CONTENTS && (Ve === tt && (Ve = _5(Ve)), yr(Ve, ye.FORBID_CONTENTS, Mn)), ye.ADD_FORBID_CONTENTS && (Ve === tt && (Ve = _5(Ve)), yr(Ve, ye.ADD_FORBID_CONTENTS, Mn)), Ze && (j["#text"] = !0), Ae && yr(j, ["html", "head", "body"]), j.table && (yr(j, ["tbody"]), delete ae.tbody), ye.TRUSTED_TYPES_POLICY) {
20377
20377
  if (typeof ye.TRUSTED_TYPES_POLICY.createHTML != "function")
20378
20378
  throw og('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
20379
20379
  if (typeof ye.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -20425,7 +20425,7 @@ function tAe() {
20425
20425
  }
20426
20426
  }, ee = function(ye) {
20427
20427
  let Ue = null, ot = null;
20428
- if (Fe)
20428
+ if (De)
20429
20429
  ye = "<remove></remove>" + ye;
20430
20430
  else {
20431
20431
  const dn = tI(ye, /^[\r\n\t ]+/);
@@ -20478,7 +20478,7 @@ function tAe() {
20478
20478
  if (!(ce.tagCheck instanceof Function && ce.tagCheck(ot)) && (!j[ot] || ae[ot])) {
20479
20479
  if (!ae[ot] && lt(ot) && (Y.tagNameCheck instanceof RegExp && Na(Y.tagNameCheck, ot) || Y.tagNameCheck instanceof Function && Y.tagNameCheck(ot)))
20480
20480
  return !1;
20481
- if (Ze && !De[ot]) {
20481
+ if (Ze && !Ve[ot]) {
20482
20482
  const mt = b(ye) || ye.parentNode, Ft = y(ye) || ye.childNodes;
20483
20483
  if (Ft && mt) {
20484
20484
  const dn = Ft.length;
@@ -20625,7 +20625,7 @@ function tAe() {
20625
20625
  if (Ue = ee(Ne), !Ue)
20626
20626
  return pe ? null : Se ? x : "";
20627
20627
  }
20628
- Ue && Fe && li(Ue.firstChild);
20628
+ Ue && De && li(Ue.firstChild);
20629
20629
  const dn = me(Xe ? Ne : Ue);
20630
20630
  for (; mt = dn.nextNode(); )
20631
20631
  we(mt), Je(mt), mt.content instanceof a && et(mt.content);
@@ -24953,9 +24953,9 @@ function ywt(e) {
24953
24953
  emphasis: a(se),
24954
24954
  hardBreakEscape: a(Ie),
24955
24955
  hardBreakTrailing: a(Ie),
24956
- htmlFlow: a(Fe, o),
24956
+ htmlFlow: a(De, o),
24957
24957
  htmlFlowData: S,
24958
- htmlText: a(Fe, o),
24958
+ htmlText: a(De, o),
24959
24959
  htmlTextData: S,
24960
24960
  image: a(pe),
24961
24961
  label: o,
@@ -25029,12 +25029,12 @@ function ywt(e) {
25029
25029
  const n = {};
25030
25030
  return r;
25031
25031
  function r(Ee) {
25032
- let De = {
25032
+ let Ve = {
25033
25033
  type: "root",
25034
25034
  children: []
25035
25035
  };
25036
25036
  const tt = {
25037
- stack: [De],
25037
+ stack: [Ve],
25038
25038
  tokenStack: [],
25039
25039
  config: t,
25040
25040
  enter: s,
@@ -25062,7 +25062,7 @@ function ywt(e) {
25062
25062
  const ft = tt.tokenStack[tt.tokenStack.length - 1];
25063
25063
  (ft[1] || ule).call(tt, void 0, ft[0]);
25064
25064
  }
25065
- for (De.position = {
25065
+ for (Ve.position = {
25066
25066
  start: q6(Ee.length > 0 ? Ee[0][1].start : {
25067
25067
  line: 1,
25068
25068
  column: 1,
@@ -25074,11 +25074,11 @@ function ywt(e) {
25074
25074
  offset: 0
25075
25075
  })
25076
25076
  }, We = -1; ++We < t.transforms.length; )
25077
- De = t.transforms[We](De) || De;
25078
- return De;
25077
+ Ve = t.transforms[We](Ve) || Ve;
25078
+ return Ve;
25079
25079
  }
25080
- function i(Ee, De, tt) {
25081
- let yt = De - 1, We = -1, ft = !1, Zt, Ht, ze, gt;
25080
+ function i(Ee, Ve, tt) {
25081
+ let yt = Ve - 1, We = -1, ft = !1, Zt, Ht, ze, gt;
25082
25082
  for (; ++yt <= tt; ) {
25083
25083
  const Ge = Ee[yt];
25084
25084
  switch (Ge[1].type) {
@@ -25125,12 +25125,12 @@ function ywt(e) {
25125
25125
  }
25126
25126
  }
25127
25127
  }
25128
- return Ee[De][1]._spread = ft, tt;
25128
+ return Ee[Ve][1]._spread = ft, tt;
25129
25129
  }
25130
- function a(Ee, De) {
25130
+ function a(Ee, Ve) {
25131
25131
  return tt;
25132
25132
  function tt(yt) {
25133
- s.call(this, Ee(yt), yt), De && De.call(this, yt);
25133
+ s.call(this, Ee(yt), yt), Ve && Ve.call(this, yt);
25134
25134
  }
25135
25135
  }
25136
25136
  function o() {
@@ -25139,23 +25139,23 @@ function ywt(e) {
25139
25139
  children: []
25140
25140
  });
25141
25141
  }
25142
- function s(Ee, De, tt) {
25143
- this.stack[this.stack.length - 1].children.push(Ee), this.stack.push(Ee), this.tokenStack.push([De, tt || void 0]), Ee.position = {
25144
- start: q6(De.start),
25142
+ function s(Ee, Ve, tt) {
25143
+ this.stack[this.stack.length - 1].children.push(Ee), this.stack.push(Ee), this.tokenStack.push([Ve, tt || void 0]), Ee.position = {
25144
+ start: q6(Ve.start),
25145
25145
  // @ts-expect-error: `end` will be patched later.
25146
25146
  end: void 0
25147
25147
  };
25148
25148
  }
25149
25149
  function l(Ee) {
25150
- return De;
25151
- function De(tt) {
25150
+ return Ve;
25151
+ function Ve(tt) {
25152
25152
  Ee && Ee.call(this, tt), c.call(this, tt);
25153
25153
  }
25154
25154
  }
25155
- function c(Ee, De) {
25155
+ function c(Ee, Ve) {
25156
25156
  const tt = this.stack.pop(), yt = this.tokenStack.pop();
25157
25157
  if (yt)
25158
- yt[0].type !== Ee.type && (De ? De.call(this, Ee, yt[0]) : (yt[1] || ule).call(this, Ee, yt[0]));
25158
+ yt[0].type !== Ee.type && (Ve ? Ve.call(this, Ee, yt[0]) : (yt[1] || ule).call(this, Ee, yt[0]));
25159
25159
  else throw new Error("Cannot close `" + Ee.type + "` (" + ay({
25160
25160
  start: Ee.start,
25161
25161
  end: Ee.end
@@ -25170,54 +25170,54 @@ function ywt(e) {
25170
25170
  }
25171
25171
  function h(Ee) {
25172
25172
  if (this.data.expectingFirstListItemValue) {
25173
- const De = this.stack[this.stack.length - 2];
25174
- De.start = Number.parseInt(this.sliceSerialize(Ee), 10), this.data.expectingFirstListItemValue = void 0;
25173
+ const Ve = this.stack[this.stack.length - 2];
25174
+ Ve.start = Number.parseInt(this.sliceSerialize(Ee), 10), this.data.expectingFirstListItemValue = void 0;
25175
25175
  }
25176
25176
  }
25177
25177
  function p() {
25178
- const Ee = this.resume(), De = this.stack[this.stack.length - 1];
25179
- De.lang = Ee;
25178
+ const Ee = this.resume(), Ve = this.stack[this.stack.length - 1];
25179
+ Ve.lang = Ee;
25180
25180
  }
25181
25181
  function m() {
25182
- const Ee = this.resume(), De = this.stack[this.stack.length - 1];
25183
- De.meta = Ee;
25182
+ const Ee = this.resume(), Ve = this.stack[this.stack.length - 1];
25183
+ Ve.meta = Ee;
25184
25184
  }
25185
25185
  function v() {
25186
25186
  this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
25187
25187
  }
25188
25188
  function g() {
25189
- const Ee = this.resume(), De = this.stack[this.stack.length - 1];
25190
- De.value = Ee.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
25189
+ const Ee = this.resume(), Ve = this.stack[this.stack.length - 1];
25190
+ Ve.value = Ee.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
25191
25191
  }
25192
25192
  function C() {
25193
- const Ee = this.resume(), De = this.stack[this.stack.length - 1];
25194
- De.value = Ee.replace(/(\r?\n|\r)$/g, "");
25193
+ const Ee = this.resume(), Ve = this.stack[this.stack.length - 1];
25194
+ Ve.value = Ee.replace(/(\r?\n|\r)$/g, "");
25195
25195
  }
25196
25196
  function y(Ee) {
25197
- const De = this.resume(), tt = this.stack[this.stack.length - 1];
25198
- tt.label = De, tt.identifier = $4(this.sliceSerialize(Ee)).toLowerCase();
25197
+ const Ve = this.resume(), tt = this.stack[this.stack.length - 1];
25198
+ tt.label = Ve, tt.identifier = $4(this.sliceSerialize(Ee)).toLowerCase();
25199
25199
  }
25200
25200
  function b() {
25201
- const Ee = this.resume(), De = this.stack[this.stack.length - 1];
25202
- De.title = Ee;
25201
+ const Ee = this.resume(), Ve = this.stack[this.stack.length - 1];
25202
+ Ve.title = Ee;
25203
25203
  }
25204
25204
  function w() {
25205
- const Ee = this.resume(), De = this.stack[this.stack.length - 1];
25206
- De.url = Ee;
25205
+ const Ee = this.resume(), Ve = this.stack[this.stack.length - 1];
25206
+ Ve.url = Ee;
25207
25207
  }
25208
25208
  function x(Ee) {
25209
- const De = this.stack[this.stack.length - 1];
25210
- if (!De.depth) {
25209
+ const Ve = this.stack[this.stack.length - 1];
25210
+ if (!Ve.depth) {
25211
25211
  const tt = this.sliceSerialize(Ee).length;
25212
- De.depth = tt;
25212
+ Ve.depth = tt;
25213
25213
  }
25214
25214
  }
25215
25215
  function k() {
25216
25216
  this.data.setextHeadingSlurpLineEnding = !0;
25217
25217
  }
25218
25218
  function _(Ee) {
25219
- const De = this.stack[this.stack.length - 1];
25220
- De.depth = this.sliceSerialize(Ee).codePointAt(0) === 61 ? 1 : 2;
25219
+ const Ve = this.stack[this.stack.length - 1];
25220
+ Ve.depth = this.sliceSerialize(Ee).codePointAt(0) === 61 ? 1 : 2;
25221
25221
  }
25222
25222
  function M() {
25223
25223
  this.data.setextHeadingSlurpLineEnding = void 0;
@@ -25232,38 +25232,38 @@ function ywt(e) {
25232
25232
  }, tt.push(yt)), this.stack.push(yt);
25233
25233
  }
25234
25234
  function T(Ee) {
25235
- const De = this.stack.pop();
25236
- De.value += this.sliceSerialize(Ee), De.position.end = q6(Ee.end);
25235
+ const Ve = this.stack.pop();
25236
+ Ve.value += this.sliceSerialize(Ee), Ve.position.end = q6(Ee.end);
25237
25237
  }
25238
25238
  function P(Ee) {
25239
- const De = this.stack[this.stack.length - 1];
25239
+ const Ve = this.stack[this.stack.length - 1];
25240
25240
  if (this.data.atHardBreak) {
25241
- const tt = De.children[De.children.length - 1];
25241
+ const tt = Ve.children[Ve.children.length - 1];
25242
25242
  tt.position.end = q6(Ee.end), this.data.atHardBreak = void 0;
25243
25243
  return;
25244
25244
  }
25245
- !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(De.type) && (S.call(this, Ee), T.call(this, Ee));
25245
+ !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(Ve.type) && (S.call(this, Ee), T.call(this, Ee));
25246
25246
  }
25247
25247
  function F() {
25248
25248
  this.data.atHardBreak = !0;
25249
25249
  }
25250
25250
  function D() {
25251
- const Ee = this.resume(), De = this.stack[this.stack.length - 1];
25252
- De.value = Ee;
25251
+ const Ee = this.resume(), Ve = this.stack[this.stack.length - 1];
25252
+ Ve.value = Ee;
25253
25253
  }
25254
25254
  function H() {
25255
- const Ee = this.resume(), De = this.stack[this.stack.length - 1];
25256
- De.value = Ee;
25255
+ const Ee = this.resume(), Ve = this.stack[this.stack.length - 1];
25256
+ Ve.value = Ee;
25257
25257
  }
25258
25258
  function N() {
25259
- const Ee = this.resume(), De = this.stack[this.stack.length - 1];
25260
- De.value = Ee;
25259
+ const Ee = this.resume(), Ve = this.stack[this.stack.length - 1];
25260
+ Ve.value = Ee;
25261
25261
  }
25262
25262
  function R() {
25263
25263
  const Ee = this.stack[this.stack.length - 1];
25264
25264
  if (this.data.inReference) {
25265
- const De = this.data.referenceType || "shortcut";
25266
- Ee.type += "Reference", Ee.referenceType = De, delete Ee.url, delete Ee.title;
25265
+ const Ve = this.data.referenceType || "shortcut";
25266
+ Ee.type += "Reference", Ee.referenceType = Ve, delete Ee.url, delete Ee.title;
25267
25267
  } else
25268
25268
  delete Ee.identifier, delete Ee.label;
25269
25269
  this.data.referenceType = void 0;
@@ -25271,31 +25271,31 @@ function ywt(e) {
25271
25271
  function z() {
25272
25272
  const Ee = this.stack[this.stack.length - 1];
25273
25273
  if (this.data.inReference) {
25274
- const De = this.data.referenceType || "shortcut";
25275
- Ee.type += "Reference", Ee.referenceType = De, delete Ee.url, delete Ee.title;
25274
+ const Ve = this.data.referenceType || "shortcut";
25275
+ Ee.type += "Reference", Ee.referenceType = Ve, delete Ee.url, delete Ee.title;
25276
25276
  } else
25277
25277
  delete Ee.identifier, delete Ee.label;
25278
25278
  this.data.referenceType = void 0;
25279
25279
  }
25280
25280
  function Z(Ee) {
25281
- const De = this.sliceSerialize(Ee), tt = this.stack[this.stack.length - 2];
25282
- tt.label = vwt(De), tt.identifier = $4(De).toLowerCase();
25281
+ const Ve = this.sliceSerialize(Ee), tt = this.stack[this.stack.length - 2];
25282
+ tt.label = vwt(Ve), tt.identifier = $4(Ve).toLowerCase();
25283
25283
  }
25284
25284
  function G() {
25285
- const Ee = this.stack[this.stack.length - 1], De = this.resume(), tt = this.stack[this.stack.length - 1];
25285
+ const Ee = this.stack[this.stack.length - 1], Ve = this.resume(), tt = this.stack[this.stack.length - 1];
25286
25286
  if (this.data.inReference = !0, tt.type === "link") {
25287
25287
  const yt = Ee.children;
25288
25288
  tt.children = yt;
25289
25289
  } else
25290
- tt.alt = De;
25290
+ tt.alt = Ve;
25291
25291
  }
25292
25292
  function O() {
25293
- const Ee = this.resume(), De = this.stack[this.stack.length - 1];
25294
- De.url = Ee;
25293
+ const Ee = this.resume(), Ve = this.stack[this.stack.length - 1];
25294
+ Ve.url = Ee;
25295
25295
  }
25296
25296
  function j() {
25297
- const Ee = this.resume(), De = this.stack[this.stack.length - 1];
25298
- De.title = Ee;
25297
+ const Ee = this.resume(), Ve = this.stack[this.stack.length - 1];
25298
+ Ve.title = Ee;
25299
25299
  }
25300
25300
  function B() {
25301
25301
  this.data.inReference = void 0;
@@ -25304,32 +25304,32 @@ function ywt(e) {
25304
25304
  this.data.referenceType = "collapsed";
25305
25305
  }
25306
25306
  function q(Ee) {
25307
- const De = this.resume(), tt = this.stack[this.stack.length - 1];
25308
- tt.label = De, tt.identifier = $4(this.sliceSerialize(Ee)).toLowerCase(), this.data.referenceType = "full";
25307
+ const Ve = this.resume(), tt = this.stack[this.stack.length - 1];
25308
+ tt.label = Ve, tt.identifier = $4(this.sliceSerialize(Ee)).toLowerCase(), this.data.referenceType = "full";
25309
25309
  }
25310
25310
  function Y(Ee) {
25311
25311
  this.data.characterReferenceType = Ee.type;
25312
25312
  }
25313
25313
  function ae(Ee) {
25314
- const De = this.sliceSerialize(Ee), tt = this.data.characterReferenceType;
25314
+ const Ve = this.sliceSerialize(Ee), tt = this.data.characterReferenceType;
25315
25315
  let yt;
25316
- tt ? (yt = yAe(De, tt === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : yt = Pte(De);
25316
+ tt ? (yt = yAe(Ve, tt === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : yt = Pte(Ve);
25317
25317
  const We = this.stack[this.stack.length - 1];
25318
25318
  We.value += yt;
25319
25319
  }
25320
25320
  function le(Ee) {
25321
- const De = this.stack.pop();
25322
- De.position.end = q6(Ee.end);
25321
+ const Ve = this.stack.pop();
25322
+ Ve.position.end = q6(Ee.end);
25323
25323
  }
25324
25324
  function ce(Ee) {
25325
25325
  T.call(this, Ee);
25326
- const De = this.stack[this.stack.length - 1];
25327
- De.url = this.sliceSerialize(Ee);
25326
+ const Ve = this.stack[this.stack.length - 1];
25327
+ Ve.url = this.sliceSerialize(Ee);
25328
25328
  }
25329
25329
  function ie(Ee) {
25330
25330
  T.call(this, Ee);
25331
- const De = this.stack[this.stack.length - 1];
25332
- De.url = "mailto:" + this.sliceSerialize(Ee);
25331
+ const Ve = this.stack[this.stack.length - 1];
25332
+ Ve.url = "mailto:" + this.sliceSerialize(Ee);
25333
25333
  }
25334
25334
  function oe() {
25335
25335
  return {
@@ -25379,7 +25379,7 @@ function ywt(e) {
25379
25379
  type: "break"
25380
25380
  };
25381
25381
  }
25382
- function Fe() {
25382
+ function De() {
25383
25383
  return {
25384
25384
  type: "html",
25385
25385
  value: ""
@@ -27688,7 +27688,7 @@ const Rxt = (e, t) => {
27688
27688
  ...l
27689
27689
  }, c) => {
27690
27690
  const [u, d] = de(!1);
27691
- Ve(() => {
27691
+ Fe(() => {
27692
27692
  if (!c || typeof c != "object" || o) return;
27693
27693
  const p = c.current;
27694
27694
  if (!p) return;
@@ -28767,7 +28767,7 @@ var Ule, qle;
28767
28767
  process.env.NODE_ENV === "development" || process.env.NODE_ENV;
28768
28768
  const oFe = typeof window < "u", N_t = typeof navigator < "u";
28769
28769
  oFe && (!((qle = window) == null || (Ule = qle.navigator) == null) && Ule.userAgent) && /iP(?:ad|hone|od)/.test(window.navigator.userAgent);
28770
- const I_t = oFe ? la : Ve, R_t = (e) => (e + 1) % 1e6;
28770
+ const I_t = oFe ? la : Fe, R_t = (e) => (e + 1) % 1e6;
28771
28771
  function $_t() {
28772
28772
  const [, e] = A4t(R_t, 0);
28773
28773
  return e;
@@ -28777,7 +28777,7 @@ const B_t = (e, t, n) => {
28777
28777
  const r = Le(void 0), i = $_t();
28778
28778
  r.current || (r.current = t), I_t(() => {
28779
28779
  n(t, r.current) || (r.current = t, i());
28780
- }), Ve(e, r.current);
28780
+ }), Fe(e, r.current);
28781
28781
  }, J9 = (e, t) => {
28782
28782
  process.env.NODE_ENV !== "production" && (!Array.isArray(t) || !t.length) && console.warn("`useDeepCompareEffect` should not be used with no dependencies. Use React.useEffect instead."), B_t(e, t, A_t);
28783
28783
  }, r_ = N_t ? navigator : void 0;
@@ -61241,7 +61241,7 @@ function TVe() {
61241
61241
  function Sne(e) {
61242
61242
  return typeof window < "u" && window.navigator != null ? e.test(window.navigator.platform) : void 0;
61243
61243
  }
61244
- const yjt = 24, bjt = typeof window < "u" ? la : Ve;
61244
+ const yjt = 24, bjt = typeof window < "u" ? la : Fe;
61245
61245
  function c7e(...e) {
61246
61246
  return (...t) => {
61247
61247
  for (let n of e)
@@ -61722,13 +61722,13 @@ function Njt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, s
61722
61722
  defaultProp: x,
61723
61723
  prop: e,
61724
61724
  onChange: (Lt) => {
61725
- t?.(Lt), !Lt && !y && De(), setTimeout(() => {
61725
+ t?.(Lt), !Lt && !y && Ve(), setTimeout(() => {
61726
61726
  T?.(Lt);
61727
61727
  }, l1.DURATION * 1e3), Lt && !g && typeof window < "u" && window.requestAnimationFrame(() => {
61728
61728
  document.body.style.pointerEvents = "auto";
61729
61729
  }), Lt || (document.body.style.pointerEvents = "auto");
61730
61730
  }
61731
- }), [z, Z] = he.useState(!1), [G, O] = he.useState(!1), [j, B] = he.useState(!1), I = he.useRef(null), q = he.useRef(null), Y = he.useRef(null), ae = he.useRef(null), le = he.useRef(null), ce = he.useRef(!1), ie = he.useRef(null), oe = he.useRef(0), Ce = he.useRef(!1), Q = he.useRef(!x), Me = he.useRef(0), se = he.useRef(null), Ae = he.useRef(((D = se.current) == null ? void 0 : D.getBoundingClientRect().height) || 0), Ie = he.useRef(((H = se.current) == null ? void 0 : H.getBoundingClientRect().width) || 0), Fe = he.useRef(0), pe = he.useCallback((Lt) => {
61731
+ }), [z, Z] = he.useState(!1), [G, O] = he.useState(!1), [j, B] = he.useState(!1), I = he.useRef(null), q = he.useRef(null), Y = he.useRef(null), ae = he.useRef(null), le = he.useRef(null), ce = he.useRef(!1), ie = he.useRef(null), oe = he.useRef(0), Ce = he.useRef(!1), Q = he.useRef(!x), Me = he.useRef(0), se = he.useRef(null), Ae = he.useRef(((D = se.current) == null ? void 0 : D.getBoundingClientRect().height) || 0), Ie = he.useRef(((H = se.current) == null ? void 0 : H.getBoundingClientRect().width) || 0), De = he.useRef(0), pe = he.useCallback((Lt) => {
61732
61732
  a && Lt === Ke.length - 1 && (q.current = /* @__PURE__ */ new Date());
61733
61733
  }, []), { activeSnapPoint: ke, activeSnapPointIndex: Se, setActiveSnapPoint: $e, onRelease: Ye, snapPointsOffset: Ke, onDrag: Ze, shouldFade: Xe, getPercentageDragged: Ee } = Djt({
61734
61734
  snapPoints: a,
@@ -61745,7 +61745,7 @@ function Njt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, s
61745
61745
  xjt({
61746
61746
  isDisabled: !N || G || !g || j || !z || !S || !k
61747
61747
  });
61748
- const { restorePositionSetting: De } = Hjt({
61748
+ const { restorePositionSetting: Ve } = Hjt({
61749
61749
  isOpen: N,
61750
61750
  modal: g,
61751
61751
  nested: y ?? !1,
@@ -61844,7 +61844,7 @@ function Njt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, s
61844
61844
  const Pn = ((Fn = window.visualViewport) == null ? void 0 : Fn.height) || 0, $r = window.innerHeight;
61845
61845
  let mn = $r - Pn;
61846
61846
  const Mn = se.current.getBoundingClientRect().height || 0, ar = Mn > $r * 0.8;
61847
- Fe.current || (Fe.current = Mn);
61847
+ De.current || (De.current = Mn);
61848
61848
  const s2 = se.current.getBoundingClientRect().top;
61849
61849
  if (Math.abs(Me.current - mn) > 60 && (Ce.current = !Ce.current), a && a.length > 0 && Ke && Se) {
61850
61850
  const l2 = Ke[Se] || 0;
@@ -61854,7 +61854,7 @@ function Njt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, s
61854
61854
  const l2 = se.current.getBoundingClientRect().height;
61855
61855
  let V2 = l2;
61856
61856
  l2 > Pn && (V2 = Pn - (ar ? s2 : Sq)), v ? se.current.style.height = `${l2 - Math.max(mn, 0)}px` : se.current.style.height = `${Math.max(V2, Pn - s2)}px`;
61857
- } else mjt() || (se.current.style.height = `${Fe.current}px`);
61857
+ } else mjt() || (se.current.style.height = `${De.current}px`);
61858
61858
  a && a.length > 0 && !Ce.current ? se.current.style.bottom = "0px" : se.current.style.bottom = `${Math.max(mn, 0)}px`;
61859
61859
  }
61860
61860
  }
@@ -65910,11 +65910,11 @@ function AUt(e, t, n) {
65910
65910
  overflowItems: M
65911
65911
  });
65912
65912
  }, [e, t, h, p, n?.max]);
65913
- return Ve(() => {
65913
+ return Fe(() => {
65914
65914
  s.current = null;
65915
- }, [e.length]), Ve(() => {
65915
+ }, [e.length]), Fe(() => {
65916
65916
  m();
65917
- }, [m]), Ve(() => {
65917
+ }, [m]), Fe(() => {
65918
65918
  d(!0);
65919
65919
  }, []), {
65920
65920
  containerRef: r,
@@ -66756,7 +66756,7 @@ const Wo = U(
66756
66756
  ...s
66757
66757
  }, l) => {
66758
66758
  const c = Le(null), u = r ?? c;
66759
- return Ve(() => {
66759
+ return Fe(() => {
66760
66760
  const d = (p) => {
66761
66761
  const m = p.target, { scrollTop: v, scrollHeight: g, clientHeight: C } = m;
66762
66762
  v - o <= 0 && i && i(), v + C + o >= g && a && a();
@@ -67266,15 +67266,15 @@ function Cqt() {
67266
67266
  case u:
67267
67267
  return Ie;
67268
67268
  default:
67269
- var Fe = Ie && Ie.$$typeof;
67270
- switch (Fe) {
67269
+ var De = Ie && Ie.$$typeof;
67270
+ switch (De) {
67271
67271
  case s:
67272
67272
  case o:
67273
67273
  case l:
67274
67274
  case h:
67275
67275
  case d:
67276
67276
  case a:
67277
- return Fe;
67277
+ return De;
67278
67278
  default:
67279
67279
  return Ae;
67280
67280
  }
@@ -70879,7 +70879,7 @@ var tKr = /* @__PURE__ */ U(function(e, t) {
70879
70879
  };
70880
70880
  });
70881
70881
  }, []);
70882
- Ve(function() {
70882
+ Fe(function() {
70883
70883
  var D = function(G) {
70884
70884
  var O, j = G[0].contentRect, B = j.width, I = j.height;
70885
70885
  P(B, I), (O = k.current) === null || O === void 0 || O.call(k, B, I);
@@ -72949,9 +72949,9 @@ function $Qt(e) {
72949
72949
  b.x = k(n, b), b.X = k(r, b), b.c = k(t, b), w.x = k(n, w), w.X = k(r, w), w.c = k(t, w);
72950
72950
  function k(ie, oe) {
72951
72951
  return function(Ce) {
72952
- var Q = [], Me = -1, se = 0, Ae = ie.length, Ie, Fe, pe;
72952
+ var Q = [], Me = -1, se = 0, Ae = ie.length, Ie, De, pe;
72953
72953
  for (Ce instanceof Date || (Ce = /* @__PURE__ */ new Date(+Ce)); ++Me < Ae; )
72954
- ie.charCodeAt(Me) === 37 && (Q.push(ie.slice(se, Me)), (Fe = iue[Ie = ie.charAt(++Me)]) != null ? Ie = ie.charAt(++Me) : Fe = Ie === "e" ? " " : "0", (pe = oe[Ie]) && (Ie = pe(Ce, Fe)), Q.push(Ie), se = Me + 1);
72954
+ ie.charCodeAt(Me) === 37 && (Q.push(ie.slice(se, Me)), (De = iue[Ie = ie.charAt(++Me)]) != null ? Ie = ie.charAt(++Me) : De = Ie === "e" ? " " : "0", (pe = oe[Ie]) && (Ie = pe(Ce, De)), Q.push(Ie), se = Me + 1);
72955
72955
  return Q.push(ie.slice(se, Me)), Q.join("");
72956
72956
  };
72957
72957
  }
@@ -72969,10 +72969,10 @@ function $Qt(e) {
72969
72969
  };
72970
72970
  }
72971
72971
  function M(ie, oe, Ce, Q) {
72972
- for (var Me = 0, se = oe.length, Ae = Ce.length, Ie, Fe; Me < se; ) {
72972
+ for (var Me = 0, se = oe.length, Ae = Ce.length, Ie, De; Me < se; ) {
72973
72973
  if (Q >= Ae) return -1;
72974
72974
  if (Ie = oe.charCodeAt(Me++), Ie === 37) {
72975
- if (Ie = oe.charAt(Me++), Fe = x[Ie in iue ? oe.charAt(Me++) : Ie], !Fe || (Q = Fe(ie, Ce, Q)) < 0) return -1;
72975
+ if (Ie = oe.charAt(Me++), De = x[Ie in iue ? oe.charAt(Me++) : Ie], !De || (Q = De(ie, Ce, Q)) < 0) return -1;
72976
72976
  } else if (Ie != Ce.charCodeAt(Q++))
72977
72977
  return -1;
72978
72978
  }
@@ -78078,7 +78078,7 @@ var _fe = function(t, n, r, i, a) {
78078
78078
  animationEasing: "ease"
78079
78079
  }, Nre = function(t) {
78080
78080
  var n = Lfe(Lfe({}, C1n), t), r = Le(), i = de(-1), a = c1n(i, 2), o = a[0], s = a[1];
78081
- Ve(function() {
78081
+ Fe(function() {
78082
78082
  if (r.current && r.current.getTotalLength)
78083
78083
  try {
78084
78084
  var w = r.current.getTotalLength();
@@ -78388,7 +78388,7 @@ var Dfe = function(t, n, r, i, a) {
78388
78388
  animationEasing: "ease"
78389
78389
  }, j1n = function(t) {
78390
78390
  var n = Ffe(Ffe({}, z1n), t), r = Le(), i = de(-1), a = O1n(i, 2), o = a[0], s = a[1];
78391
- Ve(function() {
78391
+ Fe(function() {
78392
78392
  if (r.current && r.current.getTotalLength)
78393
78393
  try {
78394
78394
  var b = r.current.getTotalLength();
@@ -82795,15 +82795,15 @@ var GX = function(t, n, r, i) {
82795
82795
  Ye.axisType,
82796
82796
  "Id on the targeted graphical component "
82797
82797
  ).concat((Ke = G == null || (Ze = G.type) === null || Ze === void 0 ? void 0 : Ze.displayName) !== null && Ke !== void 0 ? Ke : "")) : Io());
82798
- var De = Xe[Ee];
82799
- return ct(ct({}, $e), {}, Rn(Rn({}, Ye.axisType, De), "".concat(Ye.axisType, "Ticks"), Ic(De)));
82798
+ var Ve = Xe[Ee];
82799
+ return ct(ct({}, $e), {}, Rn(Rn({}, Ye.axisType, Ve), "".concat(Ye.axisType, "Ticks"), Ic(Ve)));
82800
82800
  }, le), ie = ce[R], oe = ce["".concat(R, "Ticks")], Ce = w && w[Y] && w[Y].hasStack && gnn(G, w[Y].stackGroups), Q = Dl(G.type).indexOf("Bar") >= 0, Me = TT(ie, oe), se = [], Ae = z && inn({
82801
82801
  barSize: S,
82802
82802
  stackGroups: w,
82803
82803
  totalSize: R3n(ce, R)
82804
82804
  });
82805
82805
  if (Q) {
82806
- var Ie, Fe, pe = Fr(q) ? D : q, ke = (Ie = (Fe = TT(ie, oe, !0)) !== null && Fe !== void 0 ? Fe : pe) !== null && Ie !== void 0 ? Ie : 0;
82806
+ var Ie, De, pe = Fr(q) ? D : q, ke = (Ie = (De = TT(ie, oe, !0)) !== null && De !== void 0 ? De : pe) !== null && Ie !== void 0 ? Ie : 0;
82807
82807
  se = ann({
82808
82808
  barGap: P,
82809
82809
  barCategoryGap: F,
@@ -83208,7 +83208,7 @@ var GX = function(t, n, r, i) {
83208
83208
  } else {
83209
83209
  var Ae, Ie = (Ae = x.getItemByXY(x.state.activeCoordinate)) !== null && Ae !== void 0 ? Ae : {
83210
83210
  graphicalItem: ie
83211
- }, Fe = Ie.graphicalItem, pe = Fe.item, ke = pe === void 0 ? k : pe, Se = Fe.childIndex, $e = ct(ct(ct({}, S.props), ce), {}, {
83211
+ }, De = Ie.graphicalItem, pe = De.item, ke = pe === void 0 ? k : pe, Se = De.childIndex, $e = ct(ct(ct({}, S.props), ce), {}, {
83212
83212
  activeIndex: Se
83213
83213
  });
83214
83214
  return [/* @__PURE__ */ A1(ke, $e), null, null];
@@ -83839,7 +83839,7 @@ function Y3n() {
83839
83839
  ["partial", x],
83840
83840
  ["partialRight", k],
83841
83841
  ["rearg", M]
83842
- ], Y = "[object Arguments]", ae = "[object Array]", le = "[object AsyncFunction]", ce = "[object Boolean]", ie = "[object Date]", oe = "[object DOMException]", Ce = "[object Error]", Q = "[object Function]", Me = "[object GeneratorFunction]", se = "[object Map]", Ae = "[object Number]", Ie = "[object Null]", Fe = "[object Object]", pe = "[object Promise]", ke = "[object Proxy]", Se = "[object RegExp]", $e = "[object Set]", Ye = "[object String]", Ke = "[object Symbol]", Ze = "[object Undefined]", Xe = "[object WeakMap]", Ee = "[object WeakSet]", De = "[object ArrayBuffer]", tt = "[object DataView]", yt = "[object Float32Array]", We = "[object Float64Array]", ft = "[object Int8Array]", Zt = "[object Int16Array]", Ht = "[object Int32Array]", ze = "[object Uint8Array]", gt = "[object Uint8ClampedArray]", Ge = "[object Uint16Array]", At = "[object Uint32Array]", Et = /\b__p \+= '';/g, Lt = /\b(__p \+=) '' \+/g, fn = /(__e\(.*?\)|\b__t\)) \+\n'';/g, _n = /&(?:amp|lt|gt|quot|#39);/g, Fn = /[&<>"']/g, Pn = RegExp(_n.source), $r = RegExp(Fn.source), mn = /<%-([\s\S]+?)%>/g, Mn = /<%([\s\S]+?)%>/g, ar = /<%=([\s\S]+?)%>/g, s2 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, l2 = /^\w*$/, V2 = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, o1 = /[\\^$.*+?()[\]{}|]/g, S1 = RegExp(o1.source), Bi = /^\s+/, li = /\s/, Gt = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, ee = /\{\n\/\* \[wrapped with (.+)\] \*/, me = /,? & /, ue = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, ge = /[()=,{}\[\]\/\s]/, be = /\\(\\)?/g, we = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, qe = /\w*$/, lt = /^[-+]0x[0-9a-f]+$/i, Je = /^0b[01]+$/i, et = /^\[object .+?Constructor\]$/, Ne = /^0o[0-7]+$/i, ye = /^(?:0|[1-9]\d*)$/, Ue = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, ot = /($^)/, mt = /['\n\r\u2028\u2029\\]/g, Ft = "\\ud800-\\udfff", dn = "\\u0300-\\u036f", dr = "\\ufe20-\\ufe2f", Dr = "\\u20d0-\\u20ff", O2 = dn + dr + Dr, G3 = "\\u2700-\\u27bf", H2 = "a-z\\xdf-\\xf6\\xf8-\\xff", d5 = "\\xac\\xb1\\xd7\\xf7", U3 = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Rv = "\\u2000-\\u206f", c4 = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", L3e = "A-Z\\xc0-\\xd6\\xd8-\\xde", _3e = "\\ufe0e\\ufe0f", M3e = d5 + U3 + Rv + c4, LH = "['’]", A2t = "[" + Ft + "]", S3e = "[" + M3e + "]", Jk = "[" + O2 + "]", E3e = "\\d+", F2t = "[" + G3 + "]", T3e = "[" + H2 + "]", P3e = "[^" + Ft + M3e + E3e + G3 + H2 + L3e + "]", _H = "\\ud83c[\\udffb-\\udfff]", D2t = "(?:" + Jk + "|" + _H + ")", A3e = "[^" + Ft + "]", MH = "(?:\\ud83c[\\udde6-\\uddff]){2}", SH = "[\\ud800-\\udbff][\\udc00-\\udfff]", Zf = "[" + L3e + "]", F3e = "\\u200d", D3e = "(?:" + T3e + "|" + P3e + ")", V2t = "(?:" + Zf + "|" + P3e + ")", V3e = "(?:" + LH + "(?:d|ll|m|re|s|t|ve))?", O3e = "(?:" + LH + "(?:D|LL|M|RE|S|T|VE))?", H3e = D2t + "?", N3e = "[" + _3e + "]?", O2t = "(?:" + F3e + "(?:" + [A3e, MH, SH].join("|") + ")" + N3e + H3e + ")*", H2t = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", N2t = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", I3e = N3e + H3e + O2t, I2t = "(?:" + [F2t, MH, SH].join("|") + ")" + I3e, R2t = "(?:" + [A3e + Jk + "?", Jk, MH, SH, A2t].join("|") + ")", $2t = RegExp(LH, "g"), B2t = RegExp(Jk, "g"), EH = RegExp(_H + "(?=" + _H + ")|" + R2t + I3e, "g"), Z2t = RegExp([
83842
+ ], Y = "[object Arguments]", ae = "[object Array]", le = "[object AsyncFunction]", ce = "[object Boolean]", ie = "[object Date]", oe = "[object DOMException]", Ce = "[object Error]", Q = "[object Function]", Me = "[object GeneratorFunction]", se = "[object Map]", Ae = "[object Number]", Ie = "[object Null]", De = "[object Object]", pe = "[object Promise]", ke = "[object Proxy]", Se = "[object RegExp]", $e = "[object Set]", Ye = "[object String]", Ke = "[object Symbol]", Ze = "[object Undefined]", Xe = "[object WeakMap]", Ee = "[object WeakSet]", Ve = "[object ArrayBuffer]", tt = "[object DataView]", yt = "[object Float32Array]", We = "[object Float64Array]", ft = "[object Int8Array]", Zt = "[object Int16Array]", Ht = "[object Int32Array]", ze = "[object Uint8Array]", gt = "[object Uint8ClampedArray]", Ge = "[object Uint16Array]", At = "[object Uint32Array]", Et = /\b__p \+= '';/g, Lt = /\b(__p \+=) '' \+/g, fn = /(__e\(.*?\)|\b__t\)) \+\n'';/g, _n = /&(?:amp|lt|gt|quot|#39);/g, Fn = /[&<>"']/g, Pn = RegExp(_n.source), $r = RegExp(Fn.source), mn = /<%-([\s\S]+?)%>/g, Mn = /<%([\s\S]+?)%>/g, ar = /<%=([\s\S]+?)%>/g, s2 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, l2 = /^\w*$/, V2 = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, o1 = /[\\^$.*+?()[\]{}|]/g, S1 = RegExp(o1.source), Bi = /^\s+/, li = /\s/, Gt = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, ee = /\{\n\/\* \[wrapped with (.+)\] \*/, me = /,? & /, ue = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, ge = /[()=,{}\[\]\/\s]/, be = /\\(\\)?/g, we = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, qe = /\w*$/, lt = /^[-+]0x[0-9a-f]+$/i, Je = /^0b[01]+$/i, et = /^\[object .+?Constructor\]$/, Ne = /^0o[0-7]+$/i, ye = /^(?:0|[1-9]\d*)$/, Ue = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, ot = /($^)/, mt = /['\n\r\u2028\u2029\\]/g, Ft = "\\ud800-\\udfff", dn = "\\u0300-\\u036f", dr = "\\ufe20-\\ufe2f", Dr = "\\u20d0-\\u20ff", O2 = dn + dr + Dr, G3 = "\\u2700-\\u27bf", H2 = "a-z\\xdf-\\xf6\\xf8-\\xff", d5 = "\\xac\\xb1\\xd7\\xf7", U3 = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Rv = "\\u2000-\\u206f", c4 = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", L3e = "A-Z\\xc0-\\xd6\\xd8-\\xde", _3e = "\\ufe0e\\ufe0f", M3e = d5 + U3 + Rv + c4, LH = "['’]", A2t = "[" + Ft + "]", S3e = "[" + M3e + "]", Jk = "[" + O2 + "]", E3e = "\\d+", F2t = "[" + G3 + "]", T3e = "[" + H2 + "]", P3e = "[^" + Ft + M3e + E3e + G3 + H2 + L3e + "]", _H = "\\ud83c[\\udffb-\\udfff]", D2t = "(?:" + Jk + "|" + _H + ")", A3e = "[^" + Ft + "]", MH = "(?:\\ud83c[\\udde6-\\uddff]){2}", SH = "[\\ud800-\\udbff][\\udc00-\\udfff]", Zf = "[" + L3e + "]", F3e = "\\u200d", D3e = "(?:" + T3e + "|" + P3e + ")", V2t = "(?:" + Zf + "|" + P3e + ")", V3e = "(?:" + LH + "(?:d|ll|m|re|s|t|ve))?", O3e = "(?:" + LH + "(?:D|LL|M|RE|S|T|VE))?", H3e = D2t + "?", N3e = "[" + _3e + "]?", O2t = "(?:" + F3e + "(?:" + [A3e, MH, SH].join("|") + ")" + N3e + H3e + ")*", H2t = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", N2t = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", I3e = N3e + H3e + O2t, I2t = "(?:" + [F2t, MH, SH].join("|") + ")" + I3e, R2t = "(?:" + [A3e + Jk + "?", Jk, MH, SH, A2t].join("|") + ")", $2t = RegExp(LH, "g"), B2t = RegExp(Jk, "g"), EH = RegExp(_H + "(?=" + _H + ")|" + R2t + I3e, "g"), Z2t = RegExp([
83843
83843
  Zf + "?" + T3e + "+" + V3e + "(?=" + [S3e, Zf, "$"].join("|") + ")",
83844
83844
  V2t + "+" + O3e + "(?=" + [S3e, Zf + D3e, "$"].join("|") + ")",
83845
83845
  Zf + "?" + D3e + "+" + V3e,
@@ -83880,9 +83880,9 @@ function Y3n() {
83880
83880
  "parseInt",
83881
83881
  "setTimeout"
83882
83882
  ], G2t = -1, W2 = {};
83883
- W2[yt] = W2[We] = W2[ft] = W2[Zt] = W2[Ht] = W2[ze] = W2[gt] = W2[Ge] = W2[At] = !0, W2[Y] = W2[ae] = W2[De] = W2[ce] = W2[tt] = W2[ie] = W2[Ce] = W2[Q] = W2[se] = W2[Ae] = W2[Fe] = W2[Se] = W2[$e] = W2[Ye] = W2[Xe] = !1;
83883
+ W2[yt] = W2[We] = W2[ft] = W2[Zt] = W2[Ht] = W2[ze] = W2[gt] = W2[Ge] = W2[At] = !0, W2[Y] = W2[ae] = W2[Ve] = W2[ce] = W2[tt] = W2[ie] = W2[Ce] = W2[Q] = W2[se] = W2[Ae] = W2[De] = W2[Se] = W2[$e] = W2[Ye] = W2[Xe] = !1;
83884
83884
  var N2 = {};
83885
- N2[Y] = N2[ae] = N2[De] = N2[tt] = N2[ce] = N2[ie] = N2[yt] = N2[We] = N2[ft] = N2[Zt] = N2[Ht] = N2[se] = N2[Ae] = N2[Fe] = N2[Se] = N2[$e] = N2[Ye] = N2[Ke] = N2[ze] = N2[gt] = N2[Ge] = N2[At] = !0, N2[Ce] = N2[Q] = N2[Xe] = !1;
83885
+ N2[Y] = N2[ae] = N2[Ve] = N2[tt] = N2[ce] = N2[ie] = N2[yt] = N2[We] = N2[ft] = N2[Zt] = N2[Ht] = N2[se] = N2[Ae] = N2[De] = N2[Se] = N2[$e] = N2[Ye] = N2[Ke] = N2[ze] = N2[gt] = N2[Ge] = N2[At] = !0, N2[Ce] = N2[Q] = N2[Xe] = !1;
83886
83886
  var U2t = {
83887
83887
  // Latin-1 Supplement block.
83888
83888
  À: "A",
@@ -84698,7 +84698,7 @@ function Y3n() {
84698
84698
  var xt = da(L), Kt = xt == Q || xt == Me;
84699
84699
  if (W6(L))
84700
84700
  return Nse(L, He);
84701
- if (xt == Fe || xt == Y || Kt && !re) {
84701
+ if (xt == De || xt == Y || Kt && !re) {
84702
84702
  if (Te = je || Kt ? {} : n4e(L), !He)
84703
84703
  return je ? Xit(L, Cit(Te, L)) : qit(L, hse(Te, L));
84704
84704
  } else {
@@ -84869,7 +84869,7 @@ function Y3n() {
84869
84869
  return h1(L) && Va(L) == Y;
84870
84870
  }
84871
84871
  function Mit(L) {
84872
- return h1(L) && Va(L) == De;
84872
+ return h1(L) && Va(L) == Ve;
84873
84873
  }
84874
84874
  function Sit(L) {
84875
84875
  return h1(L) && Va(L) == ie;
@@ -84879,8 +84879,8 @@ function Y3n() {
84879
84879
  }
84880
84880
  function Eit(L, E, V, X, re, ve) {
84881
84881
  var Te = er(L), He = er(E), je = Te ? ae : da(L), pt = He ? ae : da(E);
84882
- je = je == Y ? Fe : je, pt = pt == Y ? Fe : pt;
84883
- var vt = je == Fe, xt = pt == Fe, Kt = je == pt;
84882
+ je = je == Y ? De : je, pt = pt == Y ? De : pt;
84883
+ var vt = je == De, xt = pt == De, Kt = je == pt;
84884
84884
  if (Kt && W6(L)) {
84885
84885
  if (!W6(E))
84886
84886
  return !1;
@@ -85675,7 +85675,7 @@ function Y3n() {
85675
85675
  if (L.byteLength != E.byteLength || L.byteOffset != E.byteOffset)
85676
85676
  return !1;
85677
85677
  L = L.buffer, E = E.buffer;
85678
- case De:
85678
+ case Ve:
85679
85679
  return !(L.byteLength != E.byteLength || !ve(new sL(L), new sL(E)));
85680
85680
  case ce:
85681
85681
  case ie:
@@ -85798,7 +85798,7 @@ function Y3n() {
85798
85798
  return E;
85799
85799
  } : FN, da = Va;
85800
85800
  (ZH && da(new ZH(new ArrayBuffer(1))) != tt || Zv && da(new Zv()) != se || zH && da(zH.resolve()) != pe || qf && da(new qf()) != $e || zv && da(new zv()) != Xe) && (da = function(L) {
85801
- var E = Va(L), V = E == Fe ? L.constructor : n, X = V ? _8(V) : "";
85801
+ var E = Va(L), V = E == De ? L.constructor : n, X = V ? _8(V) : "";
85802
85802
  if (X)
85803
85803
  switch (X) {
85804
85804
  case R1t:
@@ -85858,7 +85858,7 @@ function Y3n() {
85858
85858
  function sat(L, E, V) {
85859
85859
  var X = L.constructor;
85860
85860
  switch (E) {
85861
- case De:
85861
+ case Ve:
85862
85862
  return sN(L);
85863
85863
  case ce:
85864
85864
  case ie:
@@ -86792,7 +86792,7 @@ function Y3n() {
86792
86792
  return typeof L == "number" || h1(L) && Va(L) == Ae;
86793
86793
  }
86794
86794
  function eg(L) {
86795
- if (!h1(L) || Va(L) != Fe)
86795
+ if (!h1(L) || Va(L) != De)
86796
86796
  return !1;
86797
86797
  var E = lL(L);
86798
86798
  if (E === null)
@@ -87509,7 +87509,7 @@ function tsn(e, t, n, r) {
87509
87509
  return Math.max(a, o) > t - esn;
87510
87510
  }
87511
87511
  function Xre(e, t, n) {
87512
- Ve(() => {
87512
+ Fe(() => {
87513
87513
  const r = e.current, i = t.current;
87514
87514
  if (!r || !i) return;
87515
87515
  const a = `${n.textStyle.fontWeight} ${n.textStyle.fontSize}px ${n.textStyle.fontFamily}`, o = `${n.textStyle.fontWeight} ${n.textStyle.fontSize}px sans-serif`;
@@ -87912,7 +87912,7 @@ function I0(e) {
87912
87912
  ), r = Pe(() => {
87913
87913
  n(tz(e.current));
87914
87914
  }, [e]);
87915
- return Ve(() => {
87915
+ return Fe(() => {
87916
87916
  const i = e.current;
87917
87917
  if (!i) return;
87918
87918
  n(tz(i));
@@ -87927,7 +87927,7 @@ function I0(e) {
87927
87927
  }
87928
87928
  function i4(e) {
87929
87929
  const [t, n] = de({ width: 0, height: 0 });
87930
- return Ve(() => {
87930
+ return Fe(() => {
87931
87931
  const r = e.current;
87932
87932
  if (!r) return;
87933
87933
  n({ width: r.clientWidth, height: r.clientHeight });
@@ -105296,8 +105296,8 @@ function nO(e, t, n, r) {
105296
105296
  if (se.needsAnimate()) {
105297
105297
  var Ae = se.keyframes, Ie = se.propName;
105298
105298
  if (oe && (Ie = oe(Ie)), Ie)
105299
- for (var Fe = 0; Fe < Ae.length; Fe++) {
105300
- var pe = Ae[Fe], ke = Math.round(pe.time / Q * 100) + "%", Se = $me(pe.easing), $e = pe.rawValue;
105299
+ for (var De = 0; De < Ae.length; De++) {
105300
+ var pe = Ae[De], ke = Math.round(pe.time / Q * 100) + "%", Se = $me(pe.easing), $e = pe.rawValue;
105301
105301
  (Mt($e) || rr($e)) && (ie[ke] = ie[ke] || {}, ie[ke][Ie] = pe.rawValue, Se && (ie[ke][M] = Se));
105302
105302
  }
105303
105303
  }
@@ -108450,15 +108450,15 @@ function Eun(e) {
108450
108450
  }
108451
108451
  le = ce ? "center" : N === "edge" ? B > 0 ? "right" : "left" : B > 0 ? "left" : "right";
108452
108452
  }
108453
- var Ae = Math.PI, Ie = 0, Fe = F.get("rotate");
108454
- if (rr(Fe))
108455
- Ie = Fe * (Ae / 180);
108453
+ var Ae = Math.PI, Ie = 0, De = F.get("rotate");
108454
+ if (rr(De))
108455
+ Ie = De * (Ae / 180);
108456
108456
  else if (D === "center")
108457
108457
  Ie = 0;
108458
- else if (Fe === "radial" || Fe === !0) {
108458
+ else if (De === "radial" || De === !0) {
108459
108459
  var pe = B < 0 ? -j + Ae : -j;
108460
108460
  Ie = pe;
108461
- } else if (Fe === "tangential" && D !== "outside" && D !== "outer") {
108461
+ } else if (De === "tangential" && D !== "outside" && D !== "outer") {
108462
108462
  var ke = Math.atan2(B, I);
108463
108463
  ke < 0 && (ke = Ae * 2 + ke);
108464
108464
  var Se = I > 0;
@@ -114837,8 +114837,8 @@ function khn(e, t, n, r, i, a, o, s, l, c) {
114837
114837
  Ae.fill = _.get("borderColor");
114838
114838
  var Ie = vc(M);
114839
114839
  Ie.fill = M.get("borderColor");
114840
- var Fe = vc(S);
114841
- if (Fe.fill = S.get("borderColor"), oe) {
114840
+ var De = vc(S);
114841
+ if (De.fill = S.get("borderColor"), oe) {
114842
114842
  var pe = p - 2 * v;
114843
114843
  I(
114844
114844
  // PENDING: convert ZRColor to ColorString for text.
@@ -114854,7 +114854,7 @@ function khn(e, t, n, r, i, a, o, s, l, c) {
114854
114854
  );
114855
114855
  } else
114856
114856
  ie.removeTextContent();
114857
- ie.setStyle(se), ie.ensureState("emphasis").style = Ae, ie.ensureState("blur").style = Ie, ie.ensureState("select").style = Fe, Ou(ie);
114857
+ ie.setStyle(se), ie.ensureState("emphasis").style = Ae, ie.ensureState("blur").style = Ie, ie.ensureState("select").style = De, Ou(ie);
114858
114858
  }
114859
114859
  ce.add(ie);
114860
114860
  }
@@ -114874,8 +114874,8 @@ function khn(e, t, n, r, i, a, o, s, l, c) {
114874
114874
  ie.invisible = !1;
114875
114875
  var Me = o.getVisual("style"), se = Me.fill, Ae = hge(k);
114876
114876
  Ae.fill = se, Ae.decal = Me.decal;
114877
- var Ie = vc(_), Fe = vc(M), pe = vc(S);
114878
- I(ie, se, Me.opacity, null), ie.setStyle(Ae), ie.ensureState("emphasis").style = Ie, ie.ensureState("blur").style = Fe, ie.ensureState("select").style = pe, Ou(ie);
114877
+ var Ie = vc(_), De = vc(M), pe = vc(S);
114878
+ I(ie, se, Me.opacity, null), ie.setStyle(Ae), ie.ensureState("emphasis").style = Ie, ie.ensureState("blur").style = De, ie.ensureState("select").style = pe, Ou(ie);
114879
114879
  }
114880
114880
  ce.add(ie);
114881
114881
  }
@@ -114893,11 +114893,11 @@ function khn(e, t, n, r, i, a, o, s, l, c) {
114893
114893
  });
114894
114894
  var Ae = ce.getTextContent();
114895
114895
  if (Ae) {
114896
- var Ie = Ae.style, Fe = _V(Ie.padding || 0);
114896
+ var Ie = Ae.style, De = _V(Ie.padding || 0);
114897
114897
  Ce && (ce.setTextConfig({
114898
114898
  layoutRect: Ce
114899
114899
  }), Ae.disableLabelLayout = !0), Ae.beforeUpdate = function() {
114900
- var ke = Math.max((Ce ? Ce.width : ce.shape.width) - Fe[1] - Fe[3], 0), Se = Math.max((Ce ? Ce.height : ce.shape.height) - Fe[0] - Fe[2], 0);
114900
+ var ke = Math.max((Ce ? Ce.width : ce.shape.width) - De[1] - De[3], 0), Se = Math.max((Ce ? Ce.height : ce.shape.height) - De[0] - De[2], 0);
114901
114901
  (Ie.width !== ke || Ie.height !== Se) && Ae.setStyle({
114902
114902
  width: ke,
114903
114903
  height: Se
@@ -135470,7 +135470,7 @@ En(Nfn);
135470
135470
  En(uGe);
135471
135471
  function Df(e, t) {
135472
135472
  const n = Le(null);
135473
- return Ve(() => {
135473
+ return Fe(() => {
135474
135474
  if (e.current) {
135475
135475
  n.current = w7n(e.current);
135476
135476
  const r = e.current, i = new ResizeObserver(() => {
@@ -135480,13 +135480,13 @@ function Df(e, t) {
135480
135480
  i.disconnect(), n.current?.dispose();
135481
135481
  };
135482
135482
  }
135483
- }, [e]), Ve(() => {
135483
+ }, [e]), Fe(() => {
135484
135484
  n.current?.setOption(t, !0);
135485
135485
  }, [t]), n;
135486
135486
  }
135487
135487
  function wk(e) {
135488
135488
  const t = Le(null);
135489
- Ve(() => {
135489
+ Fe(() => {
135490
135490
  const n = e.current;
135491
135491
  if (!n || typeof n.on != "function") return;
135492
135492
  function r(i) {
@@ -138382,7 +138382,7 @@ const m_n = (e) => Array.isArray(e) ? e.every((t) => p_n(t)) ? e : [
138382
138382
  ...o
138383
138383
  }, s) => {
138384
138384
  const l = Le(null), c = Le(null), [u, d] = de(null);
138385
- Ve(() => {
138385
+ Fe(() => {
138386
138386
  const M = document.getElementById("content");
138387
138387
  if (!M) return;
138388
138388
  const S = () => {
@@ -138392,7 +138392,7 @@ const m_n = (e) => Array.isArray(e) ? e.every((t) => p_n(t)) ? e : [
138392
138392
  S();
138393
138393
  const T = new ResizeObserver(S);
138394
138394
  return T.observe(M), () => T.disconnect();
138395
- }, []), Ve(() => () => {
138395
+ }, []), Fe(() => () => {
138396
138396
  c.current && clearTimeout(c.current);
138397
138397
  }, []), ef(s, () => ({
138398
138398
  wiggle(M) {
@@ -138405,7 +138405,7 @@ const m_n = (e) => Array.isArray(e) ? e.every((t) => p_n(t)) ? e : [
138405
138405
  }
138406
138406
  }));
138407
138407
  const [h, p] = de(!1);
138408
- Ve(() => {
138408
+ Fe(() => {
138409
138409
  if (a === "error") {
138410
138410
  const M = l.current;
138411
138411
  if (!M) return;
@@ -175917,7 +175917,7 @@ function ydr(e, t) {
175917
175917
  }
175918
175918
  function bdr(e, t, n) {
175919
175919
  var r, i, a, o = j2(), s = $ie(), l = ddr(e, t), c = mdr(e, l), u = vdr(), d = !!(o.onDayClick || o.mode !== "default");
175920
- Ve(function() {
175920
+ Fe(function() {
175921
175921
  var k;
175922
175922
  l.outside || s.focusedDay && d && ro(s.focusedDay, e) && ((k = n.current) === null || k === void 0 || k.focus());
175923
175923
  }, [
@@ -176001,7 +176001,7 @@ function _dr(e) {
176001
176001
  function Mdr() {
176002
176002
  return !!(typeof window < "u" && window.document && window.document.createElement);
176003
176003
  }
176004
- var Sdr = Mdr() ? la : Ve, zW = !1, Edr = 0;
176004
+ var Sdr = Mdr() ? la : Fe, zW = !1, Edr = 0;
176005
176005
  function Cwe() {
176006
176006
  return "react-day-picker-".concat(++Edr);
176007
176007
  }
@@ -176009,7 +176009,7 @@ function Tdr(e) {
176009
176009
  var t, n = e ?? (zW ? Cwe() : null), r = de(n), i = r[0], a = r[1];
176010
176010
  return Sdr(function() {
176011
176011
  i === null && a(Cwe());
176012
- }, []), Ve(function() {
176012
+ }, []), Fe(function() {
176013
176013
  zW === !1 && (zW = !0);
176014
176014
  }, []), (t = e ?? i) !== null && t !== void 0 ? t : void 0;
176015
176015
  }
@@ -176025,7 +176025,7 @@ function Adr(e) {
176025
176025
  }
176026
176026
  function Fdr(e) {
176027
176027
  var t, n, r = e.initialProps, i = j2(), a = $ie(), o = Sk(), s = de(!1), l = s[0], c = s[1];
176028
- Ve(function() {
176028
+ Fe(function() {
176029
176029
  i.initialFocus && a.focusTarget && (l || (a.focus(a.focusTarget), c(!0)));
176030
176030
  }, [
176031
176031
  i.initialFocus,
@@ -178202,7 +178202,7 @@ const Shr = ({ text: e }) => /* @__PURE__ */ f(
178202
178202
  message: typeof l == "string" ? l : void 0
178203
178203
  }), r || console.error(
178204
178204
  "InputField: label is required for accessibility reasons. If you don't want to show a label, set hideLabel to true."
178205
- ), Ve(() => {
178205
+ ), Fe(() => {
178206
178206
  ae(
178207
178207
  k && m && x(m) > k ? m?.substring(0, k) : m
178208
178208
  );
@@ -178225,16 +178225,16 @@ const Shr = ({ text: e }) => /* @__PURE__ */ f(
178225
178225
  t || T?.();
178226
178226
  }, [Q, Me] = de(!1), se = (ke) => {
178227
178227
  ke.animationName === "autofill" && Me(!0);
178228
- }, Ae = Le(null), Ie = Le(null), Fe = _e(
178228
+ }, Ae = Le(null), Ie = Le(null), De = _e(
178229
178229
  () => j.inputRef ?? Ie,
178230
178230
  [j.inputRef, Ie]
178231
178231
  );
178232
- Ve(() => (Q && !Ae.current && (Ae.current = setInterval(() => {
178233
- const ke = typeof Fe == "object" && Fe?.current ? Fe.current : null;
178232
+ Fe(() => (Q && !Ae.current && (Ae.current = setInterval(() => {
178233
+ const ke = typeof De == "object" && De?.current ? De.current : null;
178234
178234
  ke && (ke.matches(":-webkit-autofill") || ke.matches(":autofill") || (Me(!1), Ae.current && (clearInterval(Ae.current), Ae.current = null)));
178235
178235
  }, 100)), () => {
178236
178236
  Ae.current && (clearInterval(Ae.current), Ae.current = null);
178237
- }), [Q, Fe]);
178237
+ }), [Q, De]);
178238
178238
  const pe = M || N || G;
178239
178239
  return /* @__PURE__ */ A(
178240
178240
  "div",
@@ -178343,7 +178343,7 @@ const Shr = ({ text: e }) => /* @__PURE__ */ f(
178343
178343
  disabled: q,
178344
178344
  readOnly: n,
178345
178345
  role: H,
178346
- ref: Fe,
178346
+ ref: De,
178347
178347
  "aria-controls": z,
178348
178348
  "aria-expanded": Z,
178349
178349
  id: I,
@@ -178601,7 +178601,7 @@ const Dhr = ["compact"], Vhr = (e) => {
178601
178601
  // eslint-disable-next-line react-hooks/exhaustive-deps -- only needs to be rebuilt when the granularity changes
178602
178602
  [w]
178603
178603
  );
178604
- Ve(() => {
178604
+ Fe(() => {
178605
178605
  x(i);
178606
178606
  }, [i]);
178607
178607
  const k = (z) => {
@@ -178630,7 +178630,7 @@ const Dhr = ["compact"], Vhr = (e) => {
178630
178630
  [z]: O
178631
178631
  })), O || M(G);
178632
178632
  };
178633
- Ve(
178633
+ Fe(
178634
178634
  () => {
178635
178635
  const z = pA(g);
178636
178636
  if (!z) return;
@@ -178639,7 +178639,7 @@ const Dhr = ["compact"], Vhr = (e) => {
178639
178639
  },
178640
178640
  // eslint-disable-next-line react-hooks/exhaustive-deps -- we dont want to re-render when the granularity changes
178641
178641
  [w]
178642
- ), Ve(() => {
178642
+ ), Fe(() => {
178643
178643
  const z = pA(g), { from: Z, to: G } = w.toRangeString(
178644
178644
  z || { from: /* @__PURE__ */ new Date(), to: void 0 },
178645
178645
  d
@@ -178782,7 +178782,7 @@ const Nhr = SVe, qie = U(
178782
178782
  ...a
178783
178783
  }, o) => {
178784
178784
  const [s, l] = de();
178785
- return Ve(() => {
178785
+ return Fe(() => {
178786
178786
  l(i !== void 0 ? i : document.getElementById("content"));
178787
178787
  }, [i]), s === void 0 ? null : /* @__PURE__ */ A(Nhr, { container: s, children: [
178788
178788
  /* @__PURE__ */ f(jUe, {}),
@@ -178898,7 +178898,7 @@ const qUe = MVe, LO = Tn({
178898
178898
  const { scrollTop: u, scrollHeight: d, clientHeight: h } = c;
178899
178899
  a(u <= 0), s(u + h >= d - 1);
178900
178900
  }, []);
178901
- return Ve(() => {
178901
+ return Fe(() => {
178902
178902
  const c = r.current;
178903
178903
  if (!c) return;
178904
178904
  c.addEventListener("scroll", l, { passive: !0 }), l();
@@ -179266,24 +179266,24 @@ const uqe = Tn(null), fqe = "ONE-ai-chat-width", Uhr = () => {
179266
179266
  ), [N, R] = de(s !== "fullscreen"), [z, Z] = de(n), [G, O] = de(i), j = dt(), [B, I] = de([
179267
179267
  j.t("ai.inputPlaceholder")
179268
179268
  ]), [q, Y] = de(r), [ae, le] = de(() => Uhr());
179269
- Ve(() => {
179269
+ Fe(() => {
179270
179270
  S && b?.onVisibility?.();
179271
179271
  }, [S]);
179272
179272
  const [ce, ie] = de(!1), oe = Pe((mn) => {
179273
179273
  ie(mn);
179274
179274
  }, []), [Ce, Q] = de(null), Me = Le("sidepanel"), [se, Ae] = de(
179275
179275
  null
179276
- ), [Ie, Fe] = de(null), [pe, ke] = de(!1), [Se, $e] = de(
179276
+ ), [Ie, De] = de(null), [pe, ke] = de(!1), [Se, $e] = de(
179277
179277
  null
179278
179278
  );
179279
- Ve(() => {
179279
+ Fe(() => {
179280
179280
  typeof window > "u" || cqe(fqe, ae);
179281
179281
  }, [ae]);
179282
179282
  const Ye = Le(null), Ke = Le(
179283
179283
  null
179284
179284
  ), Ze = Le(
179285
179285
  null
179286
- ), Xe = Le(null), Ee = Le(null), [De, tt] = de(
179286
+ ), Xe = Le(null), Ee = Le(null), [Ve, tt] = de(
179287
179287
  null
179288
179288
  ), [yt, We] = de(!1), ft = (mn) => {
179289
179289
  Z(mn);
@@ -179318,9 +179318,9 @@ const uqe = Tn(null), fqe = "ONE-ai-chat-width", Uhr = () => {
179318
179318
  } : mn;
179319
179319
  Ze.current?.(Mn);
179320
179320
  };
179321
- Ve(() => {
179321
+ Fe(() => {
179322
179322
  M(t);
179323
- }, [t]), Ve(() => {
179323
+ }, [t]), Fe(() => {
179324
179324
  if (!S) {
179325
179325
  Q(null), H("sidepanel");
179326
179326
  const mn = window.matchMedia(
@@ -179328,7 +179328,7 @@ const uqe = Tn(null), fqe = "ONE-ai-chat-width", Uhr = () => {
179328
179328
  ).matches;
179329
179329
  R(!mn);
179330
179330
  }
179331
- }, [S]), Ve(() => {
179331
+ }, [S]), Fe(() => {
179332
179332
  D === "fullscreen" && !S && T(!0);
179333
179333
  }, [D, S]);
179334
179334
  const Pn = Pe(
@@ -179369,7 +179369,7 @@ const uqe = Tn(null), fqe = "ONE-ai-chat-width", Uhr = () => {
179369
179369
  onThumbsDown: C,
179370
179370
  clear: Lt,
179371
179371
  setClearFunction: Zt,
179372
- currentThreadTitle: De,
179372
+ currentThreadTitle: Ve,
179373
179373
  loadThread: fn,
179374
179374
  setLoadThreadFunction: Ht,
179375
179375
  isLoadingThread: yt,
@@ -179401,7 +179401,7 @@ const uqe = Tn(null), fqe = "ONE-ai-chat-width", Uhr = () => {
179401
179401
  activeToolHint: se,
179402
179402
  setActiveToolHint: Ae,
179403
179403
  clarifyingQuestion: Ie,
179404
- setClarifyingQuestion: Fe,
179404
+ setClarifyingQuestion: De,
179405
179405
  fileDragOver: pe,
179406
179406
  setFileDragOver: ke,
179407
179407
  pendingContext: Se,
@@ -179650,13 +179650,13 @@ const Xhr = xr({
179650
179650
  onToggle: a
179651
179651
  }) => {
179652
179652
  const { enabled: o, setOpen: s, open: l } = Or(), c = dt(), [u, d] = de(!1), [h, p] = de(!1), [m, v] = de(i), g = t && r?.whenDisabled ? r?.whenDisabled : r?.whenEnabled ?? c.ai.welcome, C = i ? m : h;
179653
- return Ve(() => {
179653
+ return Fe(() => {
179654
179654
  i && v(!0);
179655
- }, [i]), Ve(() => {
179655
+ }, [i]), Fe(() => {
179656
179656
  if (!i) return;
179657
179657
  const y = setTimeout(() => v(!1), 3e3);
179658
179658
  return () => clearTimeout(y);
179659
- }, [i]), Ve(() => {
179659
+ }, [i]), Fe(() => {
179660
179660
  n?.();
179661
179661
  }, [n]), o ? /* @__PURE__ */ f("div", { className: "flex items-center", children: /* @__PURE__ */ f(tf, { children: /* @__PURE__ */ A(
179662
179662
  nf,
@@ -180557,7 +180557,7 @@ const Lpr = xr({
180557
180557
  const a = e[0], [o, s] = de(
180558
180558
  t ?? ("id" in a ? a.id : void 0)
180559
180559
  );
180560
- Ve(() => {
180560
+ Fe(() => {
180561
180561
  o && n?.(o);
180562
180562
  }, [n, o]);
180563
180563
  const { isActive: l } = YPe(), c = i ? [e[0]] : e, d = [...c].sort(
@@ -181347,7 +181347,7 @@ function SO(e, {
181347
181347
  error: _,
181348
181348
  setError: M
181349
181349
  } = zpr(), [S, T] = de(0), { paginationInfo: P, setPaginationInfo: F } = jpr();
181350
- Ve(() => {
181350
+ Fe(() => {
181351
181351
  C && k((oe) => {
181352
181352
  const Ce = oe.length, Q = oe.filter(C), Me = Q.length, se = Ce - Me;
181353
181353
  return T(se), F(
@@ -181359,11 +181359,11 @@ function SO(e, {
181359
181359
  });
181360
181360
  }, [C, k, F]);
181361
181361
  const D = Le(P);
181362
- Ve(() => {
181362
+ Fe(() => {
181363
181363
  D.current = P;
181364
181364
  }, [P]);
181365
181365
  const [H, N] = de(void 0), [R, z] = de(!1), Z = Le(!1), G = _e(() => ({ ...s, ...t }), [s, t]), O = F4t(u), j = Le(void 0);
181366
- Ve(() => {
181366
+ Fe(() => {
181367
181367
  j.current = c?.enabled ? c?.sync ? u : O || u : void 0;
181368
181368
  }, [u, O, c?.enabled, c?.sync]);
181369
181369
  const B = (oe, Ce, Q) => {
@@ -181479,7 +181479,7 @@ function SO(e, {
181479
181479
  N(void 0);
181480
181480
  const Ye = "perPage" in o && o.perPage !== void 0 ? o.perPage : 20;
181481
181481
  return o.fetchData({
181482
- ...Fe,
181482
+ ...De,
181483
181483
  pagination: {
181484
181484
  ...o.paginationType === "pages" ? {
181485
181485
  currentPage: Ce,
@@ -181505,7 +181505,7 @@ function SO(e, {
181505
181505
  order: m.order ?? "asc"
181506
181506
  }
181507
181507
  ] : []
181508
- ], Fe = r(
181508
+ ], De = r(
181509
181509
  {
181510
181510
  filters: oe,
181511
181511
  search: Q,
@@ -181594,7 +181594,7 @@ function SO(e, {
181594
181594
  ...a
181595
181595
  ]
181596
181596
  );
181597
- Ve(
181597
+ Fe(
181598
181598
  () => {
181599
181599
  if (!Z.current) {
181600
181600
  p(!0);
@@ -181618,7 +181618,7 @@ function SO(e, {
181618
181618
  // eslint-disable-next-line react-hooks/exhaustive-deps -- deps are handled by the caller
181619
181619
  ...a
181620
181620
  ]
181621
- ), Ve(() => () => {
181621
+ ), Fe(() => () => {
181622
181622
  y.current?.();
181623
181623
  }, []);
181624
181624
  const ie = H ? H - S : 0;
@@ -181682,7 +181682,7 @@ function cae({
181682
181682
  sync: !1,
181683
181683
  ...a
181684
181684
  }, [y, b] = de(), [w, x] = V7t(y, 200);
181685
- Ve(() => {
181685
+ Fe(() => {
181686
181686
  C.sync || x(y);
181687
181687
  }, [y, C.sync, x]);
181688
181688
  const k = _e(() => i, d), [_, M] = de(!1), S = _e(() => l, d), T = _e(
@@ -181695,7 +181695,7 @@ function cae({
181695
181695
  // eslint-disable-next-line react-hooks/exhaustive-deps
181696
181696
  [JSON.stringify(c)]
181697
181697
  ), [P, F] = de(r ?? n ?? T);
181698
- return Ve(() => {
181698
+ return Fe(() => {
181699
181699
  c?.mandatory && !P?.field && F(
181700
181700
  r ?? n ?? T
181701
181701
  );
@@ -181728,7 +181728,7 @@ function cae({
181728
181728
  }
181729
181729
  const EO = (e, t = []) => {
181730
181730
  const [n, r] = de({});
181731
- return Ve(() => {
181731
+ return Fe(() => {
181732
181732
  const a = e.reduce(
181733
181733
  (o, s) => (o[s.key] = typeof t == "boolean" ? t : t.includes(s.key), o),
181734
181734
  {}
@@ -181787,8 +181787,8 @@ function Tk({
181787
181787
  void 0
181788
181788
  ), R = _e(() => p ? e.records?.length || 0 : t ? t.total : e.records?.length, [t, e.records?.length, p]), z = _e(() => t ? "type" in t && t.type === "pages" ? t.currentPage : "cursor" in t ? t.cursor : null : null, [t]), [Z, G] = _e(() => {
181789
181789
  const Ze = /* @__PURE__ */ new Map(), Xe = /* @__PURE__ */ new Map();
181790
- for (const [Ee, De] of m.items?.entries() || [])
181791
- De.checked ? Ze.set(Ee, De.item) : Xe.set(Ee, De.item);
181790
+ for (const [Ee, Ve] of m.items?.entries() || [])
181791
+ Ve.checked ? Ze.set(Ee, Ve.item) : Xe.set(Ee, Ve.item);
181792
181792
  return [Ze, Xe];
181793
181793
  }, [m.items]), O = Z.size, j = G.size, B = _e(
181794
181794
  () => O === R && R > 0,
@@ -181809,14 +181809,14 @@ function Tk({
181809
181809
  const Ze = {};
181810
181810
  for (const Xe of e.groups) {
181811
181811
  const Ee = Xe.records.map((Zt) => h?.(Zt)).filter((Zt) => Zt !== void 0);
181812
- let De = 0, tt = 0;
181812
+ let Ve = 0, tt = 0;
181813
181813
  for (const Zt of Ee)
181814
- m.items?.get(Zt)?.checked ? De++ : tt++;
181815
- const yt = Ee.length, We = De === yt && yt > 0, ft = De > 0 && De < yt;
181814
+ m.items?.get(Zt)?.checked ? Ve++ : tt++;
181815
+ const yt = Ee.length, We = Ve === yt && yt > 0, ft = Ve > 0 && Ve < yt;
181816
181816
  Ze[Xe.key] = {
181817
181817
  checked: We || ft,
181818
181818
  indeterminate: ft,
181819
- selectedCount: De,
181819
+ selectedCount: Ve,
181820
181820
  unselectedCount: tt
181821
181821
  };
181822
181822
  }
@@ -181834,8 +181834,8 @@ function Tk({
181834
181834
  ]), { itemsStatus: ie, selectedIds: oe } = _e(() => {
181835
181835
  const Ze = m.items || /* @__PURE__ */ new Map(), Xe = p ? new Set(
181836
181836
  e.records.map((tt) => h?.(tt)).filter((tt) => tt !== void 0)
181837
- ) : null, Ee = Array.from(Ze.values()).filter((tt) => tt.item === void 0 ? !1 : p && Xe ? Xe.has(tt.id) : !0).map(({ item: tt, checked: yt }) => ({ item: tt, checked: yt })), De = Array.from(Ze.entries()).filter(([tt, yt]) => yt.checked ? p && Xe ? Xe.has(tt) : !0 : !1).map(([tt]) => tt);
181838
- return { itemsStatus: Ee, selectedIds: De };
181837
+ ) : null, Ee = Array.from(Ze.values()).filter((tt) => tt.item === void 0 ? !1 : p && Xe ? Xe.has(tt.id) : !0).map(({ item: tt, checked: yt }) => ({ item: tt, checked: yt })), Ve = Array.from(Ze.entries()).filter(([tt, yt]) => yt.checked ? p && Xe ? Xe.has(tt) : !0 : !1).map(([tt]) => tt);
181838
+ return { itemsStatus: Ee, selectedIds: Ve };
181839
181839
  }, [
181840
181840
  m.items,
181841
181841
  p,
@@ -181883,26 +181883,26 @@ function Tk({
181883
181883
  ), Ae = Pe(() => e.type === "grouped" ? e.groups.flatMap((Ze) => Ze.records) : e.records, [e]), Ie = Pe(
181884
181884
  (Ze) => {
181885
181885
  if (!Ze) return "";
181886
- const Xe = Array.from(Ze.items?.entries() || []).map(([De, tt]) => `${De}:${tt.checked}`).sort().join(","), Ee = Array.from(Ze.groups?.entries() || []).map(([De, tt]) => `${De}:${tt.checked}`).sort().join(",");
181886
+ const Xe = Array.from(Ze.items?.entries() || []).map(([Ve, tt]) => `${Ve}:${tt.checked}`).sort().join(","), Ee = Array.from(Ze.groups?.entries() || []).map(([Ve, tt]) => `${Ve}:${tt.checked}`).sort().join(",");
181887
181887
  return `${Ze.allSelected}|${Xe}|${Ee}`;
181888
181888
  },
181889
181889
  []
181890
- ), Fe = Pe(
181890
+ ), De = Pe(
181891
181891
  (Ze) => {
181892
181892
  const Xe = Hwe(Ze);
181893
181893
  v((Ee) => {
181894
- const De = /* @__PURE__ */ new Map();
181894
+ const Ve = /* @__PURE__ */ new Map();
181895
181895
  for (const [yt, We] of Ee.items?.entries() || [])
181896
- De.set(yt, We);
181896
+ Ve.set(yt, We);
181897
181897
  for (const [
181898
181898
  yt,
181899
181899
  We
181900
181900
  ] of Xe.items?.entries() || []) {
181901
- const ft = De.get(yt), Zt = se(yt);
181902
- ft ? ft.item === void 0 && Zt !== void 0 && De.set(yt, {
181901
+ const ft = Ve.get(yt), Zt = se(yt);
181902
+ ft ? ft.item === void 0 && Zt !== void 0 && Ve.set(yt, {
181903
181903
  ...ft,
181904
181904
  item: Zt
181905
- }) : De.set(yt, {
181905
+ }) : Ve.set(yt, {
181906
181906
  id: yt,
181907
181907
  checked: We.checked,
181908
181908
  item: Zt
@@ -181910,7 +181910,7 @@ function Tk({
181910
181910
  }
181911
181911
  for (const yt of e.records) {
181912
181912
  const We = h?.(yt);
181913
- We && !De.has(We) && De.set(We, {
181913
+ We && !Ve.has(We) && Ve.set(We, {
181914
181914
  id: We,
181915
181915
  checked: y,
181916
181916
  item: yt
@@ -181927,18 +181927,18 @@ function Tk({
181927
181927
  });
181928
181928
  return {
181929
181929
  allSelected: Ee.allSelected,
181930
- items: De,
181930
+ items: Ve,
181931
181931
  groups: tt
181932
181932
  };
181933
181933
  });
181934
181934
  },
181935
181935
  [e.records, h, y, se]
181936
181936
  ), pe = Pe(
181937
- (Ze, Xe, Ee = !1, De) => {
181937
+ (Ze, Xe, Ee = !1, Ve) => {
181938
181938
  const tt = (Array.isArray(Ze) ? Ze : [Ze]).slice(
181939
181939
  0,
181940
181940
  d ? void 0 : 1
181941
- ), yt = Array.isArray(De) ? De : De !== void 0 ? [De] : [];
181941
+ ), yt = Array.isArray(Ve) ? Ve : Ve !== void 0 ? [Ve] : [];
181942
181942
  v((We) => {
181943
181943
  const ft = !d && Xe ? /* @__PURE__ */ new Map() : new Map(We.items);
181944
181944
  let Zt = 0;
@@ -181965,14 +181965,14 @@ function Tk({
181965
181965
  ), ke = Pe(
181966
181966
  (Ze, Xe) => {
181967
181967
  if (!u || e.type !== "grouped") return;
181968
- const Ee = Xpr(Ze) ? [Ze.key] : Array.isArray(Ze) ? [...Ze] : [Ze], De = e.groups.filter((yt) => Ee.includes(yt.key));
181969
- if (De.length === 0) return;
181970
- const tt = De.flatMap(
181968
+ const Ee = Xpr(Ze) ? [Ze.key] : Array.isArray(Ze) ? [...Ze] : [Ze], Ve = e.groups.filter((yt) => Ee.includes(yt.key));
181969
+ if (Ve.length === 0) return;
181970
+ const tt = Ve.flatMap(
181971
181971
  (yt) => yt.records.map((We) => h?.(We)).filter((We) => We !== void 0)
181972
181972
  );
181973
181973
  tt.length > 0 && pe(tt, Xe), C((yt) => {
181974
181974
  const We = new Map(yt);
181975
- for (const ft of De)
181975
+ for (const ft of Ve)
181976
181976
  We.set(ft.key, { group: ft, checked: Xe });
181977
181977
  return We;
181978
181978
  });
@@ -182001,10 +182001,10 @@ function Tk({
182001
182001
  }
182002
182002
  const Xe = e.records?.length || 0;
182003
182003
  if (Ze && x((Ee) => Ee !== null ? Ee : Xe), u && e.type === "grouped") {
182004
- const Ee = e.groups.map((De) => De.key);
182004
+ const Ee = e.groups.map((Ve) => Ve.key);
182005
182005
  Ee.length > 0 && ke(Ee, Ze);
182006
182006
  } else {
182007
- const Ee = e.records.map((De) => h?.(De)).filter((De) => De !== void 0);
182007
+ const Ee = e.records.map((Ve) => h?.(Ve)).filter((Ve) => Ve !== void 0);
182008
182008
  Ee.length > 0 && pe(Ee, Ze);
182009
182009
  }
182010
182010
  Ze || (b(!1), k.current = !1, x(null));
@@ -182027,14 +182027,14 @@ function Tk({
182027
182027
  } else {
182028
182028
  const Xe = e.records.map((Ee) => h?.(Ee)).filter((Ee) => Ee !== void 0);
182029
182029
  Xe.length > 0 && pe(Xe, Ze), v((Ee) => {
182030
- const De = new Map(Ee.items);
182030
+ const Ve = new Map(Ee.items);
182031
182031
  let tt = !1;
182032
- for (const [yt, We] of De.entries())
182033
- We.checked !== Ze && (De.set(yt, { ...We, checked: Ze }), tt = !0);
182032
+ for (const [yt, We] of Ve.entries())
182033
+ We.checked !== Ze && (Ve.set(yt, { ...We, checked: Ze }), tt = !0);
182034
182034
  return tt ? {
182035
182035
  ...Ee,
182036
182036
  allSelected: !!Ze,
182037
- items: De
182037
+ items: Ve
182038
182038
  } : Ee;
182039
182039
  });
182040
182040
  }
@@ -182055,26 +182055,26 @@ function Tk({
182055
182055
  groups: /* @__PURE__ */ new Map()
182056
182056
  }));
182057
182057
  }, []);
182058
- return Ve(() => {
182058
+ return Fe(() => {
182059
182059
  v((Ze) => ({
182060
182060
  ...Ze,
182061
182061
  allSelected: q
182062
182062
  }));
182063
- }, [q]), Ve(() => {
182063
+ }, [q]), Fe(() => {
182064
182064
  const Ze = Ie(i);
182065
182065
  if (!M.current) {
182066
182066
  M.current = !0, _.current = Ze;
182067
182067
  return;
182068
182068
  }
182069
- Ze !== _.current && (_.current = Ze, Fe(i));
182070
- }, [i, Ie, Fe]), Ve(() => {
182069
+ Ze !== _.current && (_.current = Ze, De(i));
182070
+ }, [i, Ie, De]), Fe(() => {
182071
182071
  if (S.current) {
182072
182072
  S.current = !1, T.current = n.currentFilters;
182073
182073
  return;
182074
182074
  }
182075
182075
  const Ze = JSON.stringify(n.currentFilters), Xe = JSON.stringify(T.current);
182076
182076
  Ze !== Xe && (o || (H.current = !0, Ke()), T.current = n.currentFilters);
182077
- }, [n.currentFilters, Ke, o]), Ve(() => {
182077
+ }, [n.currentFilters, Ke, o]), Fe(() => {
182078
182078
  if (!c) return;
182079
182079
  const Ze = N.current;
182080
182080
  if (Ze === void 0) {
@@ -182087,22 +182087,22 @@ function Tk({
182087
182087
  y,
182088
182088
  Ke,
182089
182089
  c
182090
- ]), Ve(() => {
182090
+ ]), Fe(() => {
182091
182091
  D.current = I;
182092
- }, [I]), Ve(() => {
182092
+ }, [I]), Fe(() => {
182093
182093
  const Ze = Ae();
182094
182094
  if (Ze.length === 0) return;
182095
- const Xe = Ze.map((De) => h?.(De)).filter((De) => De !== void 0), Ee = Xe.join(",");
182095
+ const Xe = Ze.map((Ve) => h?.(Ve)).filter((Ve) => Ve !== void 0), Ee = Xe.join(",");
182096
182096
  if (Ee !== P.current) {
182097
182097
  if (P.current = Ee, H.current) {
182098
182098
  H.current = !1;
182099
182099
  return;
182100
182100
  }
182101
182101
  if (u)
182102
- for (const De of Ze) {
182103
- const tt = h?.(De);
182102
+ for (const Ve of Ze) {
182103
+ const tt = h?.(Ve);
182104
182104
  if (tt === void 0) continue;
182105
- const yt = De[MJ];
182105
+ const yt = Ve[MJ];
182106
182106
  yt && g.get(yt)?.checked && pe(tt, !0, !0);
182107
182107
  }
182108
182108
  else
@@ -182111,9 +182111,9 @@ function Tk({
182111
182111
  D.current,
182112
182112
  !0
182113
182113
  );
182114
- v((De) => {
182114
+ v((Ve) => {
182115
182115
  let tt = !1;
182116
- const yt = new Map(De.items);
182116
+ const yt = new Map(Ve.items);
182117
182117
  for (const [We, ft] of yt.entries())
182118
182118
  if (ft.item === void 0) {
182119
182119
  const Zt = Ze.find((Ht) => {
@@ -182126,9 +182126,9 @@ function Tk({
182126
182126
  }), tt = !0);
182127
182127
  }
182128
182128
  return tt ? {
182129
- ...De,
182129
+ ...Ve,
182130
182130
  items: yt
182131
- } : De;
182131
+ } : Ve;
182132
182132
  });
182133
182133
  }
182134
182134
  }, [
@@ -182141,9 +182141,9 @@ function Tk({
182141
182141
  d,
182142
182142
  pe,
182143
182143
  p
182144
- ]), Ve(() => {
182144
+ ]), Fe(() => {
182145
182145
  O === 0 && (b(!1), k.current = !1);
182146
- }, [O]), Ve(() => {
182146
+ }, [O]), Fe(() => {
182147
182147
  const Ze = JSON.stringify({
182148
182148
  allSelectedCheck: y,
182149
182149
  allSelectedState: q,
@@ -182200,7 +182200,7 @@ const B5 = (e) => e === void 0 ? [] : Array.isArray(e) ? e : [e], Kpr = ({
182200
182200
  dataTestId: i
182201
182201
  }) => {
182202
182202
  const [a, o] = de(null), [s, l] = de(null), [c, u] = de(!1);
182203
- return Ve(() => {
182203
+ return Fe(() => {
182204
182204
  e instanceof Promise ? (u(!0), e.then((d) => {
182205
182205
  o(d);
182206
182206
  }).catch((d) => {
@@ -182240,7 +182240,7 @@ const B5 = (e) => e === void 0 ? [] : Array.isArray(e) ? e : [e], Kpr = ({
182240
182240
  className: l
182241
182241
  }) => {
182242
182242
  const [c, u] = de(n);
182243
- Ve(() => {
182243
+ Fe(() => {
182244
182244
  u(n);
182245
182245
  }, [n]);
182246
182246
  const d = () => {
@@ -182742,7 +182742,7 @@ const mmr = "SelectItemAlignedPosition", qqe = W.forwardRef((e, t) => {
182742
182742
  if (a.trigger && a.valueNode && s && c && v && g && C) {
182743
182743
  const _ = a.trigger.getBoundingClientRect(), M = c.getBoundingClientRect(), S = a.valueNode.getBoundingClientRect(), T = C.getBoundingClientRect();
182744
182744
  if (a.dir !== "rtl") {
182745
- const Ce = T.left - M.left, Q = S.left - Ce, Me = _.left - Q, se = _.width + Me, Ae = Math.max(se, M.width), Ie = window.innerWidth - _4, Fe = Nwe(Q, [
182745
+ const Ce = T.left - M.left, Q = S.left - Ce, Me = _.left - Q, se = _.width + Me, Ae = Math.max(se, M.width), Ie = window.innerWidth - _4, De = Nwe(Q, [
182746
182746
  _4,
182747
182747
  // Prevents the content from going off the starting edge of the
182748
182748
  // viewport. It may still go off the ending edge, but this can be
@@ -182751,13 +182751,13 @@ const mmr = "SelectItemAlignedPosition", qqe = W.forwardRef((e, t) => {
182751
182751
  // https://github.com/radix-ui/primitives/issues/2049
182752
182752
  Math.max(_4, Ie - Ae)
182753
182753
  ]);
182754
- s.style.minWidth = se + "px", s.style.left = Fe + "px";
182754
+ s.style.minWidth = se + "px", s.style.left = De + "px";
182755
182755
  } else {
182756
- const Ce = M.right - T.right, Q = window.innerWidth - S.right - Ce, Me = window.innerWidth - _.right - Q, se = _.width + Me, Ae = Math.max(se, M.width), Ie = window.innerWidth - _4, Fe = Nwe(Q, [
182756
+ const Ce = M.right - T.right, Q = window.innerWidth - S.right - Ce, Me = window.innerWidth - _.right - Q, se = _.width + Me, Ae = Math.max(se, M.width), Ie = window.innerWidth - _4, De = Nwe(Q, [
182757
182757
  _4,
182758
182758
  Math.max(_4, Ie - Ae)
182759
182759
  ]);
182760
- s.style.minWidth = se + "px", s.style.right = Fe + "px";
182760
+ s.style.minWidth = se + "px", s.style.right = De + "px";
182761
182761
  }
182762
182762
  const P = h(), F = window.innerHeight - _4 * 2, D = v.scrollHeight, H = window.getComputedStyle(c), N = parseInt(H.borderTopWidth, 10), R = parseInt(H.paddingTop, 10), z = parseInt(
182763
182763
  H.borderBottomWidth,
@@ -183291,7 +183291,7 @@ const lXe = $qe, cXe = Zqe, Pmr = jqe, uXe = Wqe, Amr = Xqe, fXe = Qqe, Fmr = eX
183291
183291
  const [t, n] = de(e.as === "list"), r = e.as === "list" ? !0 : e.open !== void 0 ? e.open : t, i = (d) => {
183292
183292
  e.open === void 0 && n(d), e.onOpenChange?.(d);
183293
183293
  }, [a, o] = de(B5(e.value));
183294
- Ve(
183294
+ Fe(
183295
183295
  () => {
183296
183296
  o(B5(e.value));
183297
183297
  },
@@ -183912,11 +183912,11 @@ const Gmr = 8, DO = U(
183912
183912
  // If the content is a list, we need to check if the animation is enabled
183913
183913
  enabled: F || w || _
183914
183914
  });
183915
- Ve(() => {
183915
+ Fe(() => {
183916
183916
  T || (M(!1), k(!0));
183917
- }, [T]), Ve(() => {
183917
+ }, [T]), Fe(() => {
183918
183918
  F || N.measure();
183919
- }, [N, _, F]), Ve(() => {
183919
+ }, [N, _, F]), Fe(() => {
183920
183920
  N.scrollToIndex(H);
183921
183921
  }, [N, H]);
183922
183922
  const R = N.getVirtualItems(), z = b ? /* @__PURE__ */ f("div", { className: "flex h-full w-full items-center justify-center p-2", children: /* @__PURE__ */ f("p", { className: "text-center", children: a || "-" }) }) : y ? /* @__PURE__ */ f(
@@ -184340,7 +184340,7 @@ function tvr({
184340
184340
  const a = dt(), o = Le(null), s = (n === !0 || n === "indeterminate") && !!r, l = e.length === 0, c = () => {
184341
184341
  s && !i && r?.();
184342
184342
  };
184343
- return Ve(() => {
184343
+ return Fe(() => {
184344
184344
  const u = o.current;
184345
184345
  if (!u) return;
184346
184346
  const d = (h) => h.stopPropagation();
@@ -184559,7 +184559,7 @@ const avr = (e, t) => !e || "from" in e && !e.from && t.schema.options.mode ===
184559
184559
  ...l
184560
184560
  }, c) => {
184561
184561
  const u = Le(null), d = Le(null);
184562
- ef(c, () => u.current), Ve(() => {
184562
+ ef(c, () => u.current), Fe(() => {
184563
184563
  if (!l.autoFocus) {
184564
184564
  d.current && clearInterval(d.current);
184565
184565
  return;
@@ -184703,7 +184703,7 @@ function uvr({
184703
184703
  // eslint-disable-next-line react-hooks/exhaustive-deps -- we are checking the schema values
184704
184704
  [JSON.stringify(e), n]
184705
184705
  );
184706
- return Ve(() => {
184706
+ return Fe(() => {
184707
184707
  if ("source" in e.options && e.options.mapOptions)
184708
184708
  try {
184709
184709
  o(!1), l(null);
@@ -184714,7 +184714,7 @@ function uvr({
184714
184714
  b instanceof Error ? b : new Error("Failed to map options from source")
184715
184715
  );
184716
184716
  }
184717
- }, [h.records, e.options]), Ve(() => {
184717
+ }, [h.records, e.options]), Fe(() => {
184718
184718
  u || C();
184719
184719
  }, [C, u]), {
184720
184720
  options: r,
@@ -184854,7 +184854,7 @@ function fvr({
184854
184854
  },
184855
184855
  search: s
184856
184856
  }), v = gae(e);
184857
- Ve(() => {
184857
+ Fe(() => {
184858
184858
  if (!a || !u.length) return;
184859
184859
  const Z = (G) => {
184860
184860
  for (const O of G)
@@ -184870,14 +184870,14 @@ function fvr({
184870
184870
  }
184871
184871
  };
184872
184872
  Z(u);
184873
- }, [u, a, v]), Ve(() => {
184873
+ }, [u, a, v]), Fe(() => {
184874
184874
  let Z;
184875
184875
  return d ? c.current = !1 : Z = setTimeout(() => {
184876
184876
  c.current = !0;
184877
184877
  }, 1e3), () => clearTimeout(Z);
184878
184878
  }, [d]);
184879
184879
  const g = "source" in e.options;
184880
- Ve(() => {
184880
+ Fe(() => {
184881
184881
  l("");
184882
184882
  }, [e]);
184883
184883
  const C = s.toLowerCase(), y = _e(
@@ -185160,7 +185160,7 @@ const nS = (e, t, n) => new Intl.NumberFormat(t, {
185160
185160
  const b = y === "increase" ? n + i : n - i;
185161
185161
  a != null && b < a || o != null && b > o || g(nS(b, t, r));
185162
185162
  };
185163
- return Ve(() => {
185163
+ return Fe(() => {
185164
185164
  const y = tS(h, { maxDecimals: r });
185165
185165
  n === void 0 || n == y?.value || p(n != null ? nS(n, t, r) : "");
185166
185166
  }, [h, r, n, t]), /* @__PURE__ */ f("div", { className: "group relative", children: /* @__PURE__ */ f(
@@ -185548,7 +185548,7 @@ function xvr({
185548
185548
  const [a, o] = de(!0), s = T7(e.type), l = dt(), [c, u] = de({
185549
185549
  label: ""
185550
185550
  });
185551
- return Ve(() => {
185551
+ return Fe(() => {
185552
185552
  (async () => {
185553
185553
  if (n === void 0)
185554
185554
  return;
@@ -185818,7 +185818,7 @@ function Lvr({
185818
185818
  defaultProp: !1,
185819
185819
  onChange: i
185820
185820
  }), C = Le(v);
185821
- Ve(() => {
185821
+ Fe(() => {
185822
185822
  C.current = v;
185823
185823
  }, [v]);
185824
185824
  const y = Le(!1), w = (z) => {
@@ -185833,7 +185833,7 @@ function Lvr({
185833
185833
  g(z);
185834
185834
  }
185835
185835
  }, [x, k] = de(t);
185836
- Ve(() => {
185836
+ Fe(() => {
185837
185837
  k(t);
185838
185838
  }, [t]);
185839
185839
  const _ = (z, Z) => {
@@ -185850,7 +185850,7 @@ function Lvr({
185850
185850
  }, P = () => {
185851
185851
  S();
185852
185852
  };
185853
- Ve(() => {
185853
+ Fe(() => {
185854
185854
  const z = () => Object.entries(x || {}).find(([Z, G]) => e[Z] ? !T7(e[Z].type).isEmpty(G, {
185855
185855
  schema: e[Z],
185856
185856
  i18n: d
@@ -186271,11 +186271,11 @@ const _vr = ({ label: e, number: t, onClick: n, selected: r }) => /* @__PURE__ *
186271
186271
  const s = Le(t), { emitFilterChange: l, emitPresetClick: c } = CXe({
186272
186272
  defaultFilters: s.current
186273
186273
  }), [u, d] = de(!1);
186274
- Ve(() => {
186274
+ Fe(() => {
186275
186275
  a?.(u);
186276
186276
  }, [u, a]);
186277
186277
  const [h, p] = de(t);
186278
- Ve(() => {
186278
+ Fe(() => {
186279
186279
  p(t ?? {});
186280
186280
  }, [JSON.stringify(e), JSON.stringify(t)]);
186281
186281
  const m = (g) => {
@@ -186463,7 +186463,7 @@ const Cae = DXe, eG = "__no-grouping__", VXe = ({
186463
186463
  onFiltersChange: n
186464
186464
  }) => {
186465
186465
  const [r, i] = de([]), a = dt();
186466
- if (Ve(() => {
186466
+ if (Fe(() => {
186467
186467
  (async () => {
186468
186468
  const l = Object.entries(t).filter(([, u]) => u == null ? !1 : Array.isArray(u) ? u.length > 0 : u !== ""), c = await Promise.all(
186469
186469
  l.map(async ([u, d]) => {
@@ -186662,7 +186662,7 @@ const Pvr = ({
186662
186662
  () => ce.map((Gt) => String(Gt.value)),
186663
186663
  [ce]
186664
186664
  ), [oe, Ce] = de(() => (B5(i) ?? ie ?? []).map(String));
186665
- Ve(() => {
186665
+ Fe(() => {
186666
186666
  const Gt = (B5(i) ?? []).map(String);
186667
186667
  if (!eRe.isEqual(Gt, oe ?? [])) {
186668
186668
  const ee = B5(i) ?? ie ?? [];
@@ -186721,7 +186721,7 @@ const Pvr = ({
186721
186721
  ), {
186722
186722
  data: Ae,
186723
186723
  isInitialLoading: Ie,
186724
- loadMore: Fe,
186724
+ loadMore: De,
186725
186725
  isLoadingMore: pe,
186726
186726
  isLoading: ke,
186727
186727
  paginationInfo: Se
@@ -186755,7 +186755,7 @@ const Pvr = ({
186755
186755
  };
186756
186756
  }, [i, ie, Ze]), {
186757
186757
  handleSelectAllItems: Ee,
186758
- handleSelectItemChange: De,
186758
+ handleSelectItemChange: Ve,
186759
186759
  selectedState: tt,
186760
186760
  clearSelection: yt,
186761
186761
  selectionMeta: We
@@ -186795,14 +186795,14 @@ const Pvr = ({
186795
186795
  (Gt, ee) => {
186796
186796
  if (!D && !k && !ee && oe[0] === Gt)
186797
186797
  return;
186798
- Ht.current = !0, De(Gt, ee);
186798
+ Ht.current = !0, Ve(Gt, ee);
186799
186799
  const me = Ze[String(Gt)];
186800
186800
  me && (ee ? Ke.current.set(String(Gt), me.option) : Ke.current.delete(String(Gt)), r?.(me.option, ee));
186801
186801
  },
186802
186802
  [
186803
186803
  r,
186804
186804
  Ze,
186805
- De,
186805
+ Ve,
186806
186806
  D,
186807
186807
  k,
186808
186808
  oe
@@ -186848,7 +186848,7 @@ const Pvr = ({
186848
186848
  }, Lt = D && !N, fn = Pe(() => {
186849
186849
  Et(!1);
186850
186850
  }, []), [_n, Fn] = de(!1), Pn = Le(Me.currentFilters);
186851
- Ve(() => {
186851
+ Fe(() => {
186852
186852
  const Gt = JSON.stringify(Pn.current), ee = JSON.stringify(Me.currentFilters);
186853
186853
  Gt !== ee && (Pn.current = Me.currentFilters, Y || (Ke.current.clear(), Ce([]), Ht.current = !0));
186854
186854
  }, [Me.currentFilters, Y]);
@@ -186902,7 +186902,7 @@ const Pvr = ({
186902
186902
  }
186903
186903
  return ar(Ae.records);
186904
186904
  }, [Ae.records, Ae.type, Ae.groups, ar, mn, Mn]), l2 = () => {
186905
- Fe();
186905
+ De();
186906
186906
  }, V2 = dt(), o1 = _e(() => Array.from(tt.items.values()).filter((Gt) => Gt.checked).map((Gt) => String(Gt.id)), [tt.items]), S1 = {
186907
186907
  ...Z,
186908
186908
  onItemCheckChange: gt,
@@ -186972,7 +186972,7 @@ const Pvr = ({
186972
186972
  items: ft,
186973
186973
  onDeselect: (Gt) => gt(Gt, !1),
186974
186974
  allSelected: tt.allSelected,
186975
- onLoadMore: Fe,
186975
+ onLoadMore: De,
186976
186976
  isLoadingMore: pe
186977
186977
  }
186978
186978
  ) : null,
@@ -187114,7 +187114,7 @@ const qwe = "__custom__", Ivr = (e, t) => {
187114
187114
  return e.granularity !== t.granularity ? !1 : YE(e.value.from, n.from) && (!e.value.to || !n.to || YE(e.value.to, n.to));
187115
187115
  }, Rvr = ({ presets: e, ...t }) => {
187116
187116
  const [n, r] = de();
187117
- return Ve(() => {
187117
+ return Fe(() => {
187118
187118
  if (t.date) {
187119
187119
  const a = Object.entries(e).find(
187120
187120
  ([o, s]) => Ivr(t.date, s)
@@ -187147,7 +187147,7 @@ function HXe({
187147
187147
  const p = dt(), m = $0(), [v, g] = de(
187148
187148
  c || t
187149
187149
  ), C = d ?? m.date?.weekStartsOn ?? yi.Monday;
187150
- Ve(() => {
187150
+ Fe(() => {
187151
187151
  Xh(c, v) || g(c || t);
187152
187152
  }, [c, t]);
187153
187153
  const y = _e(
@@ -187212,13 +187212,13 @@ function HXe({
187212
187212
  ...O
187213
187213
  ];
187214
187214
  }, [a, v, b, y]);
187215
- Ve(() => {
187215
+ Fe(() => {
187216
187216
  N(o || "0");
187217
187217
  }, [y, o]);
187218
187218
  const z = (Z) => {
187219
187219
  N(Z);
187220
187220
  };
187221
- return Ve(() => {
187221
+ return Fe(() => {
187222
187222
  s?.(
187223
187223
  H ? R[+H]?.dateValue : void 0
187224
187224
  );
@@ -187303,7 +187303,7 @@ const NXe = U(
187303
187303
  ...c
187304
187304
  }, u) => {
187305
187305
  const [d, h] = de(""), [p, m] = de(!1), v = dt();
187306
- Ve(() => {
187306
+ Fe(() => {
187307
187307
  h(
187308
187308
  n.toString(e?.value, v, l ?? "long")
187309
187309
  );
@@ -187369,7 +187369,7 @@ function $vr({
187369
187369
  ...c
187370
187370
  }) {
187371
187371
  const [u, d] = de(), [h, p] = de(o);
187372
- Ve(() => {
187372
+ Fe(() => {
187373
187373
  p(o);
187374
187374
  }, [o]);
187375
187375
  const m = dt(), v = _e(() => r[0] ?? "day", [r]), g = Pe(
@@ -187394,7 +187394,7 @@ function $vr({
187394
187394
  },
187395
187395
  [g]
187396
187396
  ), y = _e(() => g(u?.granularity), [u?.granularity, g]);
187397
- Ve(() => {
187397
+ Fe(() => {
187398
187398
  const M = C(t);
187399
187399
  Xh(u, M) || d(M);
187400
187400
  }, [t]);
@@ -187412,7 +187412,7 @@ function $vr({
187412
187412
  }, k = _e(() => n.filter(
187413
187413
  (M) => r.includes(M.granularity)
187414
187414
  ), [n, r]), _ = Le(null);
187415
- return Ve(() => {
187415
+ return Fe(() => {
187416
187416
  h && _.current && requestAnimationFrame(() => {
187417
187417
  _.current?.focus();
187418
187418
  });
@@ -187726,7 +187726,7 @@ const qvr = {
187726
187726
  },
187727
187727
  []
187728
187728
  ), G = (a && a.trim().length > 0 ? a : void 0) || i || void 0;
187729
- Ve(() => {
187729
+ Fe(() => {
187730
187730
  process.env.NODE_ENV !== "production" && !G && !w.current && (w.current = !0, console.warn(
187731
187731
  "F0DurationInput: provide a non-empty label or ariaLabel for accessibility."
187732
187732
  ));
@@ -188448,12 +188448,12 @@ function vgr(e = {}) {
188448
188448
  const Ee = !!(Ut(r, pe) && Ut(r, pe)._f && Ut(r, pe)._f.disabled);
188449
188449
  if (!Se || $e) {
188450
188450
  u.isDirty && (Ze = n.isDirty, n.isDirty = Xe.isDirty = F(), Ke = Ze !== Xe.isDirty);
188451
- const De = Ee || M9(Ut(i, pe), ke);
188452
- Ze = !!(!Ee && Ut(n.dirtyFields, pe)), De || Ee ? di(n.dirtyFields, pe) : i2(n.dirtyFields, pe, !0), Xe.dirtyFields = n.dirtyFields, Ke = Ke || u.dirtyFields && Ze !== !De;
188451
+ const Ve = Ee || M9(Ut(i, pe), ke);
188452
+ Ze = !!(!Ee && Ut(n.dirtyFields, pe)), Ve || Ee ? di(n.dirtyFields, pe) : i2(n.dirtyFields, pe, !0), Xe.dirtyFields = n.dirtyFields, Ke = Ke || u.dirtyFields && Ze !== !Ve;
188453
188453
  }
188454
188454
  if (Se) {
188455
- const De = Ut(n.touchedFields, pe);
188456
- De || (i2(n.touchedFields, pe, Se), Xe.touchedFields = n.touchedFields, Ke = Ke || u.touchedFields && De !== Se);
188455
+ const Ve = Ut(n.touchedFields, pe);
188456
+ Ve || (i2(n.touchedFields, pe, Se), Xe.touchedFields = n.touchedFields, Ke = Ke || u.touchedFields && Ve !== Se);
188457
188457
  }
188458
188458
  Ke && Ye && d.state.next(Xe);
188459
188459
  }
@@ -188496,10 +188496,10 @@ function vgr(e = {}) {
188496
188496
  if (Ke) {
188497
188497
  const Xe = s.array.has(Ke.name), Ee = Ye._f && fgr(Ye._f);
188498
188498
  Ee && u.validatingFields && C([$e], !0);
188499
- const De = await ixe(Ye, s.disabled, a, m, t.shouldUseNativeValidation && !ke, Xe);
188500
- if (Ee && u.validatingFields && C([$e]), De[Ke.name] && (Se.valid = !1, ke))
188499
+ const Ve = await ixe(Ye, s.disabled, a, m, t.shouldUseNativeValidation && !ke, Xe);
188500
+ if (Ee && u.validatingFields && C([$e]), Ve[Ke.name] && (Se.valid = !1, ke))
188501
188501
  break;
188502
- !ke && (Ut(De, Ke.name) ? Xe ? ogr(n.errors, De, Ke.name) : i2(n.errors, Ke.name, De[Ke.name]) : di(n.errors, Ke.name));
188502
+ !ke && (Ut(Ve, Ke.name) ? Xe ? ogr(n.errors, Ve, Ke.name) : i2(n.errors, Ke.name, Ve[Ke.name]) : di(n.errors, Ke.name));
188503
188503
  }
188504
188504
  !To(Ze) && await T(Ze, ke, Se);
188505
188505
  }
@@ -188551,9 +188551,9 @@ function vgr(e = {}) {
188551
188551
  };
188552
188552
  if (Ye) {
188553
188553
  let Xe, Ee;
188554
- const De = Ke(), tt = pe.type === MA.BLUR || pe.type === MA.FOCUS_OUT, yt = !dgr(Ye._f) && !t.resolver && !Ut(n.errors, Se) && !Ye._f.deps || hgr(tt, Ut(n.touchedFields, Se), n.isSubmitted, p, h), We = Qwe(Se, s, tt);
188555
- i2(a, Se, De), tt ? (Ye._f.onBlur && Ye._f.onBlur(pe), l && l(0)) : Ye._f.onChange && Ye._f.onChange(pe);
188556
- const ft = k(Se, De, tt, !1), Zt = !To(ft) || We;
188554
+ const Ve = Ke(), tt = pe.type === MA.BLUR || pe.type === MA.FOCUS_OUT, yt = !dgr(Ye._f) && !t.resolver && !Ut(n.errors, Se) && !Ye._f.deps || hgr(tt, Ut(n.touchedFields, Se), n.isSubmitted, p, h), We = Qwe(Se, s, tt);
188555
+ i2(a, Se, Ve), tt ? (Ye._f.onBlur && Ye._f.onBlur(pe), l && l(0)) : Ye._f.onChange && Ye._f.onChange(pe);
188556
+ const ft = k(Se, Ve, tt, !1), Zt = !To(ft) || We;
188557
188557
  if (!tt && d.values.next({
188558
188558
  name: Se,
188559
188559
  type: pe.type,
@@ -188562,12 +188562,12 @@ function vgr(e = {}) {
188562
188562
  return u.isValid && (t.mode === "onBlur" && tt ? g() : tt || g()), Zt && d.state.next({ name: Se, ...We ? {} : ft });
188563
188563
  if (!tt && We && d.state.next({ ...n }), t.resolver) {
188564
188564
  const { errors: Ht } = await M([Se]);
188565
- if (Ze(De), $e) {
188565
+ if (Ze(Ve), $e) {
188566
188566
  const ze = oxe(n.errors, r, Se), gt = oxe(Ht, r, ze.name || Se);
188567
188567
  Xe = gt.error, Se = gt.name, Ee = To(Ht);
188568
188568
  }
188569
188569
  } else
188570
- C([Se], !0), Xe = (await ixe(Ye, s.disabled, a, m, t.shouldUseNativeValidation))[Se], C([Se]), Ze(De), $e && (Xe ? Ee = !1 : u.isValid && (Ee = await T(r, !0)));
188570
+ C([Se], !0), Xe = (await ixe(Ye, s.disabled, a, m, t.shouldUseNativeValidation))[Se], C([Se]), Ze(Ve), $e && (Xe ? Ee = !1 : u.isValid && (Ee = await T(r, !0)));
188571
188571
  $e && (Ye._f.deps && O(Ye._f.deps), _(Se, Ee, Xe, ft));
188572
188572
  }
188573
188573
  }, G = (pe, ke) => {
@@ -188737,9 +188737,9 @@ function vgr(e = {}) {
188737
188737
  if (Xe && Xe._f) {
188738
188738
  const Ee = Array.isArray(Xe._f.refs) ? Xe._f.refs[0] : Xe._f.ref;
188739
188739
  if (SA(Ee)) {
188740
- const De = Ee.closest("form");
188741
- if (De) {
188742
- De.reset();
188740
+ const Ve = Ee.closest("form");
188741
+ if (Ve) {
188742
+ Ve.reset();
188743
188743
  break;
188744
188744
  }
188745
188745
  }
@@ -190381,7 +190381,7 @@ function mYe({
190381
190381
  }
190382
190382
  function vYe(e) {
190383
190383
  const t = Tae(), { ref: n, payload: r, disabled: i, handleRef: a } = e, o = r.data, s = r.id + "|" + (o?.currentParentId ?? "null");
190384
- Ve(() => {
190384
+ Fe(() => {
190385
190385
  if (n.current && !(!t || i))
190386
190386
  return t.driver.registerDraggable(n.current, {
190387
190387
  payload: r,
@@ -190392,14 +190392,14 @@ function vYe(e) {
190392
190392
  }
190393
190393
  function cCr(e) {
190394
190394
  const t = Tae(), n = e?.ref, r = e?.id, i = e?.accepts;
190395
- Ve(() => {
190395
+ Fe(() => {
190396
190396
  if (n?.current && !(!t || !r || !i))
190397
190397
  return t.driver.registerDroppable(n.current, { id: r, accepts: i });
190398
190398
  }, [t, n, r, i]);
190399
190399
  }
190400
190400
  function Pae(e) {
190401
190401
  const t = Tae();
190402
- Ve(
190402
+ Fe(
190403
190403
  () => t ? t.driver.subscribe(e) : void 0,
190404
190404
  [t, e]
190405
190405
  );
@@ -190676,7 +190676,7 @@ function Fy({
190676
190676
  ref: y,
190677
190677
  payload: M,
190678
190678
  disabled: !o
190679
- }), Ve(() => {
190679
+ }), Fe(() => {
190680
190680
  if (!(!y.current || !o))
190681
190681
  return am({
190682
190682
  element: y.current,
@@ -191247,7 +191247,7 @@ function _xe({
191247
191247
  visible: a
191248
191248
  }) {
191249
191249
  const o = Le(null);
191250
- return Ve(() => {
191250
+ return Fe(() => {
191251
191251
  if (o.current)
191252
191252
  return am({
191253
191253
  element: o.current,
@@ -191297,7 +191297,7 @@ function xCr({
191297
191297
  }, v = _e(() => Lxe(t, h), [t, h]), [g, C] = de(
191298
191298
  yCr(t, r)
191299
191299
  ), [y, b] = de(t);
191300
- Ve(() => {
191300
+ Fe(() => {
191301
191301
  b(t);
191302
191302
  }, [t]);
191303
191303
  const w = Le(null), x = Pe(
@@ -191331,22 +191331,22 @@ function xCr({
191331
191331
  const Ae = C3(y, Q);
191332
191332
  if (!Ae) return;
191333
191333
  const Ie = Ae.item;
191334
- let Fe = kYe(y, Q);
191334
+ let De = kYe(y, Q);
191335
191335
  const pe = wCr(
191336
191336
  y,
191337
191337
  Q,
191338
191338
  Me,
191339
191339
  se
191340
191340
  );
191341
- Fe = bCr(
191342
- Fe,
191341
+ De = bCr(
191342
+ De,
191343
191343
  Ie,
191344
191344
  Me,
191345
191345
  pe
191346
- ), b(Fe), Me !== null && C((ke) => {
191346
+ ), b(De), Me !== null && C((ke) => {
191347
191347
  const Se = new Set(ke);
191348
191348
  return Se.add(Me), Se;
191349
- }), l && l(ah(Fe));
191349
+ }), l && l(ah(De));
191350
191350
  },
191351
191351
  [y, l, ah]
191352
191352
  ), S = _e(() => Lxe(y, h), [y, h]), [T, P] = de(null), [F, D] = de(null), [H, N] = de(null), [R, z] = de(
@@ -191356,8 +191356,8 @@ function xCr({
191356
191356
  B.current && (clearTimeout(B.current), B.current = null);
191357
191357
  const Ae = (a ? S : v).findIndex((Se) => Se.id === Q), Ie = q.current !== null && Ae < q.current;
191358
191358
  q.current = Ae;
191359
- const Fe = `${Q}-${Me}`, pe = F && H ? `${F}-${H}` : null;
191360
- if (Fe === pe)
191359
+ const De = `${Q}-${Me}`, pe = F && H ? `${F}-${H}` : null;
191360
+ if (De === pe)
191361
191361
  return;
191362
191362
  I.current = { itemId: Q, position: Me };
191363
191363
  const ke = Ie ? 50 : 30;
@@ -191381,7 +191381,7 @@ function xCr({
191381
191381
  v
191382
191382
  ]
191383
191383
  );
191384
- Ve(() => () => {
191384
+ Fe(() => () => {
191385
191385
  B.current && clearTimeout(B.current);
191386
191386
  }, []);
191387
191387
  const oe = Pe(() => {
@@ -191399,8 +191399,8 @@ function xCr({
191399
191399
  B.current = null;
191400
191400
  return;
191401
191401
  }
191402
- const Fe = le.current ? 800 : 500;
191403
- if (se < Fe) {
191402
+ const De = le.current ? 800 : 500;
191403
+ if (se < De) {
191404
191404
  B.current = null;
191405
191405
  return;
191406
191406
  }
@@ -191433,21 +191433,21 @@ function xCr({
191433
191433
  }
191434
191434
  const Ae = C3(y, Q), Ie = C3(y, se);
191435
191435
  if (Ae && Ie) {
191436
- let Fe = null, pe = 0;
191436
+ let De = null, pe = 0;
191437
191437
  if (Me === "inside")
191438
- Fe = Q, pe = Ae.item.children?.length ?? 0;
191438
+ De = Q, pe = Ae.item.children?.length ?? 0;
191439
191439
  else if (Me === "before")
191440
- if (Ae.parentPath.length > 0 ? Fe = Ae.parentPath[Ae.parentPath.length - 1] : Fe = null, Fe === null)
191440
+ if (Ae.parentPath.length > 0 ? De = Ae.parentPath[Ae.parentPath.length - 1] : De = null, De === null)
191441
191441
  pe = y.findIndex(($e) => $e.id === Q);
191442
191442
  else {
191443
- const $e = C3(y, Fe);
191443
+ const $e = C3(y, De);
191444
191444
  $e && (pe = $e.item.children?.findIndex((Ye) => Ye.id === Q) ?? 0);
191445
191445
  }
191446
191446
  else if (Me === "after")
191447
- if (Ae.parentPath.length > 0 ? Fe = Ae.parentPath[Ae.parentPath.length - 1] : Fe = null, Fe === null)
191447
+ if (Ae.parentPath.length > 0 ? De = Ae.parentPath[Ae.parentPath.length - 1] : De = null, De === null)
191448
191448
  pe = y.findIndex(($e) => $e.id === Q) + 1;
191449
191449
  else {
191450
- const $e = C3(y, Fe);
191450
+ const $e = C3(y, De);
191451
191451
  $e && (pe = ($e.item.children?.findIndex(
191452
191452
  (Ye) => Ye.id === Q
191453
191453
  ) ?? 0) + 1);
@@ -191464,7 +191464,7 @@ function xCr({
191464
191464
  (Ye) => Ye.id === se
191465
191465
  ) ?? -1);
191466
191466
  }
191467
- (Fe !== ke || Fe === ke && Se !== pe) && (z(se), M(se, Fe, pe), setTimeout(() => {
191467
+ (De !== ke || De === ke && Se !== pe) && (z(se), M(se, De, pe), setTimeout(() => {
191468
191468
  z(null);
191469
191469
  }, 300));
191470
191470
  }
@@ -191487,8 +191487,8 @@ function xCr({
191487
191487
  !G.current && Me && se && Z.current && Z.current !== Me && requestAnimationFrame(() => {
191488
191488
  requestAnimationFrame(() => {
191489
191489
  if (!G.current) {
191490
- const Ie = O.current || I.current?.itemId, Fe = j.current || I.current?.position;
191491
- Ie && Fe && Ce(Ie, Fe);
191490
+ const Ie = O.current || I.current?.itemId, De = j.current || I.current?.position;
191491
+ Ie && De && Ce(Ie, De);
191492
191492
  }
191493
191493
  });
191494
191494
  }), ce.current && (clearTimeout(ce.current), ce.current = null);
@@ -191541,8 +191541,8 @@ function xCr({
191541
191541
  }
191542
191542
  ),
191543
191543
  Q.map(
191544
- (Fe) => MYe(
191545
- Fe,
191544
+ (De) => MYe(
191545
+ De,
191546
191546
  a,
191547
191547
  0,
191548
191548
  r,
@@ -195027,7 +195027,7 @@ function wyr({
195027
195027
  i,
195028
195028
  o
195029
195029
  ]);
195030
- Ve(() => {
195030
+ Fe(() => {
195031
195031
  s && g();
195032
195032
  }, [s, g]);
195033
195033
  const C = Pe(() => {
@@ -208374,7 +208374,7 @@ function y_r(e) {
208374
208374
  k[w] = Ie, F[w] = Ie - z;
208375
208375
  }
208376
208376
  if (s) {
208377
- var Fe, pe = w === "x" ? Bo : Zo, ke = w === "x" ? Js : Qs, Se = k[x], $e = x === "y" ? "height" : "width", Ye = Se + g[pe], Ke = Se - g[ke], Ze = [Bo, Zo].indexOf(C) !== -1, Xe = (Fe = P?.[x]) != null ? Fe : 0, Ee = Ze ? Ye : Se - _[$e] - M[$e] - Xe + T.altAxis, De = Ze ? Se + _[$e] + M[$e] - Xe - T.altAxis : Ke, tt = p && Ze ? zLr(Ee, Se, De) : Iy(p ? Ee : Ye, Se, p ? De : Ke);
208377
+ var De, pe = w === "x" ? Bo : Zo, ke = w === "x" ? Js : Qs, Se = k[x], $e = x === "y" ? "height" : "width", Ye = Se + g[pe], Ke = Se - g[ke], Ze = [Bo, Zo].indexOf(C) !== -1, Xe = (De = P?.[x]) != null ? De : 0, Ee = Ze ? Ye : Se - _[$e] - M[$e] - Xe + T.altAxis, Ve = Ze ? Se + _[$e] + M[$e] - Xe - T.altAxis : Ke, tt = p && Ze ? zLr(Ee, Se, Ve) : Iy(p ? Ee : Ye, Se, p ? Ve : Ke);
208378
208378
  k[x] = tt, F[x] = tt - Se;
208379
208379
  }
208380
208380
  t.modifiersData[r] = F;
@@ -208964,7 +208964,7 @@ function aMr(e, t) {
208964
208964
  plugins: y,
208965
208965
  // methods
208966
208966
  clearDelayTimeouts: Ee,
208967
- setProps: De,
208967
+ setProps: Ve,
208968
208968
  setContent: tt,
208969
208969
  show: yt,
208970
208970
  hide: We,
@@ -209137,7 +209137,7 @@ function aMr(e, t) {
209137
209137
  }
209138
209138
  function Me(ze) {
209139
209139
  var gt, Ge = !1;
209140
- if (!(!w.state.isEnabled || Fe(ze) || s)) {
209140
+ if (!(!w.state.isEnabled || De(ze) || s)) {
209141
209141
  var At = ((gt = u) == null ? void 0 : gt.type) === "focus";
209142
209142
  u = ze, v = ze.currentTarget, O(), !w.state.isVisible && $_r(ze) && dS.forEach(function(Et) {
209143
209143
  return Et(ze);
@@ -209159,7 +209159,7 @@ function aMr(e, t) {
209159
209159
  }
209160
209160
  }
209161
209161
  function Ae(ze) {
209162
- var gt = Fe(ze) || w.props.trigger.indexOf("click") >= 0 && o;
209162
+ var gt = De(ze) || w.props.trigger.indexOf("click") >= 0 && o;
209163
209163
  if (!gt) {
209164
209164
  if (w.props.interactive) {
209165
209165
  w.hideWithInteractivity(ze);
@@ -209171,7 +209171,7 @@ function aMr(e, t) {
209171
209171
  function Ie(ze) {
209172
209172
  w.props.trigger.indexOf("focusin") < 0 && ze.target !== D() || w.props.interactive && ze.relatedTarget && k.contains(ze.relatedTarget) || Ke(ze);
209173
209173
  }
209174
- function Fe(ze) {
209174
+ function De(ze) {
209175
209175
  return V5.isTouch ? P() !== ze.type.indexOf("touch") >= 0 : !1;
209176
209176
  }
209177
209177
  function pe() {
@@ -209277,7 +209277,7 @@ function aMr(e, t) {
209277
209277
  function Ee() {
209278
209278
  clearTimeout(r), clearTimeout(i), cancelAnimationFrame(a);
209279
209279
  }
209280
- function De(ze) {
209280
+ function Ve(ze) {
209281
209281
  if (process.env.NODE_ENV !== "production" && wl(w.state.isDestroyed, jd("setProps")), !w.state.isDestroyed) {
209282
209282
  Z("onBeforeUpdate", [w, ze]), Q();
209283
209283
  var gt = w.props, Ge = uLe(e, Object.assign({}, gt, aLe(ze), {
@@ -209859,7 +209859,7 @@ function yMr() {
209859
209859
  }
209860
209860
  process.env.NODE_ENV === "production" ? SQ.exports = CMr() : SQ.exports = yMr();
209861
209861
  var bMr = SQ.exports;
209862
- const wMr = typeof window < "u" ? la : Ve;
209862
+ const wMr = typeof window < "u" ? la : Fe;
209863
209863
  class xMr {
209864
209864
  constructor(t) {
209865
209865
  this.transactionNumber = 0, this.lastTransactionNumber = 0, this.subscribers = /* @__PURE__ */ new Set(), this.editor = t, this.lastSnapshot = { editor: t, transactionNumber: 0 }, this.getSnapshot = this.getSnapshot.bind(this), this.getServerSnapshot = this.getServerSnapshot.bind(this), this.watch = this.watch.bind(this), this.subscribe = this.subscribe.bind(this);
@@ -210045,7 +210045,7 @@ function _Mr(e = {}, t = []) {
210045
210045
  const n = Le(e);
210046
210046
  n.current = e;
210047
210047
  const [r] = de(() => new Coe(n)), i = iH.useSyncExternalStore(r.subscribe, r.getEditor, r.getServerSnapshot);
210048
- return dSe(i), Ve(r.onRender(t)), kMr({
210048
+ return dSe(i), Fe(r.onRender(t)), kMr({
210049
210049
  editor: i,
210050
210050
  selector: ({ transactionNumber: a }) => e.shouldRerenderOnTransaction === !1 ? null : e.immediatelyRender && a === 0 ? 0 : a + 1
210051
210051
  }), i;
@@ -210056,7 +210056,7 @@ const aQe = Tn({
210056
210056
  aQe.Consumer;
210057
210057
  const MMr = () => qt(aQe), SMr = (e) => {
210058
210058
  const [t, n] = de(null), { editor: r } = MMr();
210059
- return Ve(() => {
210059
+ return Fe(() => {
210060
210060
  var i;
210061
210061
  if (!t || !((i = e.editor) === null || i === void 0) && i.isDestroyed || r?.isDestroyed)
210062
210062
  return;
@@ -210374,7 +210374,7 @@ const TQ = ({ option: e, onClick: t, isSelected: n = !1 }) => /* @__PURE__ */ f(
210374
210374
  inputPlaceholder: r
210375
210375
  }) => {
210376
210376
  const [i, a] = de(null), [o, s] = de(""), l = Le(null);
210377
- Ve(() => {
210377
+ Fe(() => {
210378
210378
  l.current && l.current.focus();
210379
210379
  }, []);
210380
210380
  const c = (p) => {
@@ -213453,7 +213453,7 @@ button {
213453
213453
  `;
213454
213454
  function _Sr(e) {
213455
213455
  const t = Le(null), n = Le(null);
213456
- return n.current && n.current.update(e), Ve(() => (n.current = new boe({
213456
+ return n.current && n.current.update(e), Fe(() => (n.current = new boe({
213457
213457
  ...e,
213458
213458
  ref: t
213459
213459
  }), () => {
@@ -217360,7 +217360,7 @@ const sPr = ({ item: e, selected: t }) => /* @__PURE__ */ A(
217360
217360
  }, [e.length]), c = Pe(() => {
217361
217361
  o(i);
217362
217362
  }, [i, o]);
217363
- return Ve(() => {
217363
+ return Fe(() => {
217364
217364
  a(0);
217365
217365
  }, [e]), ef(
217366
217366
  r,
@@ -220126,7 +220126,7 @@ const Ooe = Hn(bet), ds = {
220126
220126
  plainHtmlMode: v
220127
220127
  }) => {
220128
220128
  const [g, C] = de(!1), y = Le(null), [b, w] = de(0);
220129
- Ve(() => {
220129
+ Fe(() => {
220130
220130
  y.current && w(y.current.offsetWidth);
220131
220131
  const S = () => {
220132
220132
  y.current && w(y.current.offsetWidth);
@@ -220502,9 +220502,9 @@ const QFr = ({
220502
220502
  html: s?.content || "",
220503
220503
  json: null
220504
220504
  });
220505
- Ve(() => (Z ? (document.body.style.overflow = "hidden", Y(!0)) : (document.body.style.overflow = "", Y(!1)), () => {
220505
+ Fe(() => (Z ? (document.body.style.overflow = "hidden", Y(!0)) : (document.body.style.overflow = "", Y(!1)), () => {
220506
220506
  document.body.style.overflow = "";
220507
- }), [Z]), Ve(() => {
220507
+ }), [Z]), Fe(() => {
220508
220508
  const ke = Z ? window.innerHeight : tDr(d);
220509
220509
  return rDr({
220510
220510
  containerRef: S,
@@ -220536,7 +220536,7 @@ const QFr = ({
220536
220536
  y?.();
220537
220537
  }
220538
220538
  });
220539
- Ve(() => {
220539
+ Fe(() => {
220540
220540
  (B || v) && Ie ? Ie.setEditable(!1) : Ie && !B && !v && Ie.setEditable(!0);
220541
220541
  }, [B, v, Ie]), ef(w, () => ({
220542
220542
  clear: () => Ie?.commands.clearContent(),
@@ -220551,7 +220551,7 @@ const QFr = ({
220551
220551
  Ie && aDr({ editor: Ie, content: ke });
220552
220552
  }
220553
220553
  }));
220554
- const Fe = async (ke, Se) => {
220554
+ const De = async (ke, Se) => {
220555
220555
  n && Ie && await JFr({
220556
220556
  editor: Ie,
220557
220557
  enhanceText: n.onEnhanceText,
@@ -220695,7 +220695,7 @@ const QFr = ({
220695
220695
  setLastIntent: le,
220696
220696
  setIsAcceptChangesOpen: j,
220697
220697
  editor: Ie,
220698
- handleEnhanceWithAI: Fe,
220698
+ handleEnhanceWithAI: De,
220699
220699
  lastIntent: ae
220700
220700
  }
220701
220701
  ),
@@ -220728,7 +220728,7 @@ const QFr = ({
220728
220728
  disabled: v,
220729
220729
  enhanceConfig: n,
220730
220730
  isFullscreen: Z,
220731
- onEnhanceWithAI: Fe,
220731
+ onEnhanceWithAI: De,
220732
220732
  setLastIntent: le,
220733
220733
  setIsToolbarOpen: Y,
220734
220734
  isToolbarOpen: q,
@@ -220745,7 +220745,7 @@ const QFr = ({
220745
220745
  isFullscreen: Z,
220746
220746
  plainHtmlMode: h,
220747
220747
  enhanceConfig: n,
220748
- onEnhanceWithAI: Fe,
220748
+ onEnhanceWithAI: De,
220749
220749
  isLoadingEnhance: H,
220750
220750
  setLastIntent: le,
220751
220751
  isAcceptChangesOpen: O,
@@ -220791,11 +220791,19 @@ function cDr({
220791
220791
  error: n,
220792
220792
  loading: r
220793
220793
  }) {
220794
- const i = t.value;
220795
- return /* @__PURE__ */ f(
220794
+ const { ref: i, ...a } = t, o = Le(null), s = Le(""), l = Pe(
220795
+ (d) => {
220796
+ o.current = d, typeof i == "function" && i(d);
220797
+ },
220798
+ [i]
220799
+ ), c = t.value, u = typeof c == "string" ? c : c?.value ?? "";
220800
+ return Fe(() => {
220801
+ u !== s.current && o.current?.setContent(u);
220802
+ }, [u]), /* @__PURE__ */ f(
220796
220803
  lDr,
220797
220804
  {
220798
- ...t,
220805
+ ref: l,
220806
+ ...a,
220799
220807
  title: e.label,
220800
220808
  placeholder: e.placeholder ?? "",
220801
220809
  maxCharacters: e.maxCharacters,
@@ -220806,12 +220814,12 @@ function cDr({
220806
220814
  error: n,
220807
220815
  loading: r,
220808
220816
  initialEditorState: {
220809
- content: i?.value ?? ""
220817
+ content: u
220810
220818
  },
220811
- onChange: (a) => {
220812
- t.onChange({
220813
- value: a.value,
220814
- mentionIds: a.mentionIds
220819
+ onChange: (d) => {
220820
+ s.current = d.value ?? "", t.onChange({
220821
+ value: d.value,
220822
+ mentionIds: d.mentionIds
220815
220823
  });
220816
220824
  }
220817
220825
  }
@@ -221407,7 +221415,7 @@ function G4({ field: e, sectionId: t }) {
221407
221415
  isLoading: o,
221408
221416
  renderCustomField: s
221409
221417
  } = Bae(), { forms: l } = dt(), c = Rae(e.disabled, r), u = Le(c);
221410
- Ve(() => {
221418
+ Fe(() => {
221411
221419
  const g = u.current;
221412
221420
  if (u.current = c, !g && c && e.resetOnDisable) {
221413
221421
  const C = n.formState.defaultValues?.[e.id];
@@ -222070,7 +222078,7 @@ function Ioe({
222070
222078
  ),
222071
222079
  [u, l, c]
222072
222080
  ), h = Le({});
222073
- Ve(() => {
222081
+ Fe(() => {
222074
222082
  const w = h.current, x = i.formState.defaultValues ?? {};
222075
222083
  for (const k of u) {
222076
222084
  if (!(k.id in w))
@@ -222248,7 +222256,7 @@ function ADr({
222248
222256
  mode: x,
222249
222257
  defaultValues: i
222250
222258
  }), M = Le(p);
222251
- Ve(() => {
222259
+ Fe(() => {
222252
222260
  M.current && !p && i && _.reset(i), M.current = p;
222253
222261
  }, [p, i, _]);
222254
222262
  const S = _.formState.errors.root, { isSubmitting: T, isDirty: P } = _.formState, F = Object.keys(_.formState.errors).filter((G) => G !== "root").length > 0, D = Le(null), H = Pe(
@@ -222263,7 +222271,7 @@ function ADr({
222263
222271
  },
222264
222272
  [a, _]
222265
222273
  );
222266
- Ve(() => {
222274
+ Fe(() => {
222267
222275
  if (u) {
222268
222276
  const G = {
222269
222277
  submit: () => new Promise((O, j) => {
@@ -222317,7 +222325,7 @@ function ADr({
222317
222325
  return () => {
222318
222326
  u && (u.current = null);
222319
222327
  };
222320
- }, [u, _, H]), Ve(() => {
222328
+ }, [u, _, H]), Fe(() => {
222321
222329
  D.current && D.current({ isSubmitting: T, hasErrors: F });
222322
222330
  }, [T, F]);
222323
222331
  const N = Noe(v), R = _e(
@@ -223673,7 +223681,7 @@ function $Kr({
223673
223681
  }, []), x = Pe((S) => {
223674
223682
  i.current.delete(S);
223675
223683
  }, []), k = Pe((S) => i.current.get(S) ?? 0, []), _ = Le(/* @__PURE__ */ new Set());
223676
- Ve(() => {
223684
+ Fe(() => {
223677
223685
  const S = t ?? [], T = /* @__PURE__ */ new Set();
223678
223686
  for (const P of S) {
223679
223687
  T.add(P.name);
@@ -223780,7 +223788,7 @@ function bVr({
223780
223788
  const y = c.current.indexOf(C);
223781
223789
  return y === -1 ? 0 : y;
223782
223790
  }, []), h = Le([]);
223783
- Ve(() => {
223791
+ Fe(() => {
223784
223792
  const C = r, y = h.current, b = C.find(
223785
223793
  (w) => !y.includes(w)
223786
223794
  );
@@ -224101,10 +224109,10 @@ function Oet(e) {
224101
224109
  mode: Y,
224102
224110
  defaultValues: o
224103
224111
  }), ce = Le(p);
224104
- Ve(() => {
224112
+ Fe(() => {
224105
224113
  ce.current && !p && o && le.reset(o), ce.current = p;
224106
224114
  }, [p, o, le]);
224107
- const ie = le.formState.errors.root, { isDirty: oe, isSubmitting: Ce, errors: Q } = le.formState, [Me, se] = de("idle"), [Ae, Ie] = de(), Fe = Le(null), pe = Le(null), {
224115
+ const ie = le.formState.errors.root, { isDirty: oe, isSubmitting: Ce, errors: Q } = le.formState, [Me, se] = de("idle"), [Ae, Ie] = de(), De = Le(null), pe = Le(null), {
224108
224116
  hasErrors: ke,
224109
224117
  errorCount: Se,
224110
224118
  goToPreviousError: $e,
@@ -224117,25 +224125,25 @@ function Oet(e) {
224117
224125
  if (!ke)
224118
224126
  return Me === "loading" ? N : Me === "success" ? Ae ?? n.actionBar.saved : H;
224119
224127
  })(), Xe = async (Ge) => {
224120
- Fe.current && (clearTimeout(Fe.current), Fe.current = null), mSe(() => {
224128
+ De.current && (clearTimeout(De.current), De.current = null), mSe(() => {
224121
224129
  se("loading");
224122
224130
  });
224123
224131
  const At = { ...Ge };
224124
224132
  for (const Lt of Object.keys(At))
224125
224133
  At[Lt] === null && (At[Lt] = void 0);
224126
224134
  const Et = await s(At);
224127
- Et.success ? (le.reset(Ge), Ke(), Ie(Et.message), se("success"), Fe.current = setTimeout(() => {
224128
- se("idle"), Ie(void 0), Fe.current = null;
224135
+ Et.success ? (le.reset(Ge), Ke(), Ie(Et.message), se("success"), De.current = setTimeout(() => {
224136
+ se("idle"), Ie(void 0), De.current = null;
224129
224137
  }, R ?? 2e3)) : (se("idle"), Et.errors && Object.entries(Et.errors).forEach(([Lt, fn]) => {
224130
224138
  le.setError(Lt, { message: fn });
224131
224139
  }), Et.rootMessage && le.setError("root", { message: Et.rootMessage }));
224132
224140
  };
224133
- Ve(() => () => {
224134
- Fe.current && clearTimeout(Fe.current);
224141
+ Fe(() => () => {
224142
+ De.current && clearTimeout(De.current);
224135
224143
  }, []);
224136
224144
  const Ee = () => {
224137
- le.reset(), Ke(), se("idle"), Ie(void 0), Fe.current && (clearTimeout(Fe.current), Fe.current = null);
224138
- }, De = Le(null), tt = Le(Xe);
224145
+ le.reset(), Ke(), se("idle"), Ie(void 0), De.current && (clearTimeout(De.current), De.current = null);
224146
+ }, Ve = Le(null), tt = Le(Xe);
224139
224147
  tt.current = Xe;
224140
224148
  const yt = Pe(
224141
224149
  (Ge) => ({
@@ -224182,13 +224190,13 @@ function Oet(e) {
224182
224190
  }
224183
224191
  },
224184
224192
  _setStateCallback: Ge?.stateCallback ? (At) => {
224185
- De.current = At;
224193
+ Ve.current = At;
224186
224194
  } : () => {
224187
224195
  }
224188
224196
  }),
224189
224197
  [le, Ke]
224190
224198
  ), We = Av(), ft = Le(null), Zt = h ?? ft;
224191
- Ve(() => {
224199
+ Fe(() => {
224192
224200
  if (We)
224193
224201
  return h || (ft.current = yt()), We.register(
224194
224202
  r,
@@ -224213,10 +224221,10 @@ function Oet(e) {
224213
224221
  Zt,
224214
224222
  yt,
224215
224223
  m
224216
- ]), Ve(() => (h && (h.current = yt({ stateCallback: !0 })), () => {
224224
+ ]), Fe(() => (h && (h.current = yt({ stateCallback: !0 })), () => {
224217
224225
  h && (h.current = null);
224218
- }), [h, yt]), Ve(() => {
224219
- De.current && De.current({
224226
+ }), [h, yt]), Fe(() => {
224227
+ Ve.current && Ve.current({
224220
224228
  isSubmitting: Ce,
224221
224229
  hasErrors: ke
224222
224230
  });
@@ -224414,7 +224422,7 @@ function TVr(e, t) {
224414
224422
  const n = typeof e == "function", [r, i] = de(
224415
224423
  n ? void 0 : e
224416
224424
  ), [a, o] = de(n), s = Le(e);
224417
- return s.current = e, Ve(() => {
224425
+ return s.current = e, Fe(() => {
224418
224426
  if (typeof s.current != "function") return;
224419
224427
  const l = new AbortController();
224420
224428
  o(!0);
@@ -224496,7 +224504,7 @@ const AVr = {
224496
224504
  ...o
224497
224505
  }, s) => {
224498
224506
  const [l, c] = de(!1), u = dt(), d = n ?? u.actions.copy, p = l ? r ?? "Copied" : d;
224499
- return Ve(() => {
224507
+ return Fe(() => {
224500
224508
  let v = null;
224501
224509
  return l && (v = setTimeout(() => c(!1), 1e3)), () => {
224502
224510
  v && clearTimeout(v);
@@ -225492,7 +225500,7 @@ function oOr({
225492
225500
  steps: e
225493
225501
  }) {
225494
225502
  const t = dt(), { sendMessage: n, setClarifyingQuestion: r } = Or(), [i, a] = de(0), [o, s] = de({}), l = Le(!1), c = Le("");
225495
- Ve(() => {
225503
+ Fe(() => {
225496
225504
  const b = JSON.stringify(e);
225497
225505
  b !== c.current && (c.current = b, l.current = !1, a(0), s({}));
225498
225506
  }, [e]);
@@ -225542,7 +225550,7 @@ function oOr({
225542
225550
  }, y = () => {
225543
225551
  a((b) => Math.max(0, b - 1));
225544
225552
  };
225545
- return Ve(() => {
225553
+ return Fe(() => {
225546
225554
  if (l.current) return;
225547
225555
  const b = e[i];
225548
225556
  if (!b) {
@@ -225566,7 +225574,7 @@ function oOr({
225566
225574
  activateCustomAnswer: g
225567
225575
  };
225568
225576
  r(x);
225569
- }), Ve(() => () => {
225577
+ }), Fe(() => () => {
225570
225578
  r(null);
225571
225579
  }, [r]), null;
225572
225580
  }
@@ -225950,7 +225958,7 @@ function Bk({
225950
225958
  const a = Le(/* @__PURE__ */ new Map()), [o, s] = de(
225951
225959
  () => a.current.get(e) ?? null
225952
225960
  ), [l, c] = de(!1), [u, d] = de(!1), h = Le(!0);
225953
- Ve(() => () => {
225961
+ Fe(() => () => {
225954
225962
  h.current = !1;
225955
225963
  }, []);
225956
225964
  const p = Pe(() => {
@@ -226326,7 +226334,7 @@ const Uet = {
226326
226334
  messages: i
226327
226335
  }) => {
226328
226336
  const a = r?.content || "", o = V4t(), l = (r ? o(r, i ?? []) : null)?.() ?? r?.generativeUI?.() ?? null, c = r?.toolCalls?.[0]?.id, u = !a && !l, { tracking: d } = Or();
226329
- return Ve(() => {
226337
+ return Fe(() => {
226330
226338
  r?.id && !t && !e && d?.onMessage?.(r);
226331
226339
  }, [r, t, e, d]), !t && !e && u ? null : /* @__PURE__ */ f(qet.Provider, { value: c, children: /* @__PURE__ */ A("div", { className: "relative isolate flex w-full flex-col items-start justify-center", children: [
226332
226340
  r && a && /* @__PURE__ */ f("div", { className: "w-fit max-w-full [&>div]:flex [&>div]:flex-col [&>div]:gap-1", children: /* @__PURE__ */ f(
@@ -226341,7 +226349,7 @@ const Uet = {
226341
226349
  }, S_e = /* @__PURE__ */ new Set();
226342
226350
  function Roe(e, t) {
226343
226351
  const n = Le(t);
226344
- n.current = t, Ve(() => {
226352
+ n.current = t, Fe(() => {
226345
226353
  e && (S_e.has(e) || window.innerWidth <= 624 || (S_e.add(e), n.current()));
226346
226354
  }, [e]);
226347
226355
  }
@@ -226900,9 +226908,9 @@ const ROr = () => {
226900
226908
  const e = Av(), { agent: t } = Or(), { setState: n, running: r } = fee({
226901
226909
  name: t || "one-workflow"
226902
226910
  }), [i, a] = de(!1);
226903
- Ve(() => {
226911
+ Fe(() => {
226904
226912
  r && !i && a(!0);
226905
- }, [r, i]), Ve(() => {
226913
+ }, [r, i]), Fe(() => {
226906
226914
  if (!i) return;
226907
226915
  const o = e?.formsOnCurrentPage || [], s = e?.availableForms || [], l = e?.activeForm || null;
226908
226916
  n((c) => ({
@@ -227665,7 +227673,7 @@ function dHr({
227665
227673
  onSelect: a
227666
227674
  }) {
227667
227675
  const o = Le(null), s = Le(null);
227668
- Ve(() => {
227676
+ Fe(() => {
227669
227677
  s.current?.scrollIntoView({ block: "nearest" });
227670
227678
  }, [r]), la(() => {
227671
227679
  const u = o.current, d = u?.offsetParent;
@@ -227851,7 +227859,7 @@ function CHr({
227851
227859
  textareaRef: i
227852
227860
  }) {
227853
227861
  const [a, o] = de(!1), [s, l] = de(""), [c, u] = de([]), [d, h] = de(!1), [p, m] = de(0), [v, g] = de([]), C = Le(-1), y = Le(null), b = Le(0), w = Le(-1);
227854
- Ve(() => {
227862
+ Fe(() => {
227855
227863
  if (!r) {
227856
227864
  o(!1);
227857
227865
  return;
@@ -227933,7 +227941,7 @@ function CHr({
227933
227941
  },
227934
227942
  [v]
227935
227943
  );
227936
- Ve(() => {
227944
+ Fe(() => {
227937
227945
  g(
227938
227946
  (P) => P.filter((F) => {
227939
227947
  const D = `@${F.name}`, H = e.indexOf(D);
@@ -228314,7 +228322,7 @@ const kHr = {
228314
228322
  inProgress: r
228315
228323
  }) => {
228316
228324
  const i = o5(), [a, o] = de(""), [s, l] = de(0), [c, u] = de(!1), d = Le(null), h = Le(null), p = Le(null), m = e[s] ?? t;
228317
- return Ve(() => {
228325
+ return Fe(() => {
228318
228326
  const v = () => {
228319
228327
  h.current && (clearInterval(h.current), h.current = null), p.current && (clearInterval(p.current), p.current = null), d.current && (clearTimeout(d.current), d.current = null);
228320
228328
  };
@@ -228629,7 +228637,7 @@ const ott = ({
228629
228637
  searchPersons: o?.resolvers?.searchPersons,
228630
228638
  textareaRef: T
228631
228639
  });
228632
- Ve(() => {
228640
+ Fe(() => {
228633
228641
  typeof window < "u" && window.location.hash.length === 0 && T.current?.focus();
228634
228642
  }, []);
228635
228643
  const I = Pe(async () => {
@@ -228646,7 +228654,7 @@ const ott = ({
228646
228654
  if (B.close(), t)
228647
228655
  I();
228648
228656
  else if (le && !ae) {
228649
- const Ie = B.transformMentions(x.trim()), Fe = l ? `<tool-context tool="${l.id}">${l.prompt}</tool-context>
228657
+ const Ie = B.transformMentions(x.trim()), De = l ? `<tool-context tool="${l.id}">${l.prompt}</tool-context>
228650
228658
 
228651
228659
  ${Ie}` : Ie, pe = Y.flatMap(
228652
228660
  (ke) => ke.uploadedFile ? [ke.uploadedFile] : []
@@ -228665,7 +228673,7 @@ ${Ie}` : Ie, pe = Y.flatMap(
228665
228673
  filename: Se.filename,
228666
228674
  mimeType: Se.mimetype
228667
228675
  })),
228668
- { type: "text", text: Fe }
228676
+ { type: "text", text: De }
228669
228677
  ];
228670
228678
  m && v(null), d({
228671
228679
  id: crypto.randomUUID(),
@@ -228673,7 +228681,7 @@ ${Ie}` : Ie, pe = Y.flatMap(
228673
228681
  content: ke
228674
228682
  });
228675
228683
  } else
228676
- n(Fe);
228684
+ n(De);
228677
228685
  k(""), j();
228678
228686
  }
228679
228687
  T.current?.focus();
@@ -228832,7 +228840,7 @@ ${Ie}` : Ie, pe = Y.flatMap(
228832
228840
  () => $oe(o),
228833
228841
  [o]
228834
228842
  ).length === 0 && !i, u = r === "fullscreen", d = u && c;
228835
- return Ve(() => {
228843
+ return Fe(() => {
228836
228844
  s.current?.querySelector("textarea")?.focus();
228837
228845
  }, [r]), /* @__PURE__ */ A(
228838
228846
  "div",
@@ -229056,7 +229064,7 @@ function OHr({
229056
229064
  o(!1);
229057
229065
  }
229058
229066
  }, [n, t.headers]);
229059
- Ve(() => {
229067
+ Fe(() => {
229060
229068
  e && d();
229061
229069
  }, [e, d]);
229062
229070
  const h = Pe((v) => {
@@ -229136,7 +229144,7 @@ const IHr = ({
229136
229144
  unpinThread: c,
229137
229145
  deleteThread: u
229138
229146
  } = OHr({ enabled: !0 }), [d, h] = de("");
229139
- Ve(() => {
229147
+ Fe(() => {
229140
229148
  const k = (_) => {
229141
229149
  _.key === "Escape" && e();
229142
229150
  };
@@ -229557,7 +229565,7 @@ const $Hr = (e) => {
229557
229565
  ), o = Pe(async () => {
229558
229566
  r(!0), await t(), r(!1);
229559
229567
  }, [t, r]);
229560
- return Ve(() => {
229568
+ return Fe(() => {
229561
229569
  if (!n) return;
229562
229570
  const s = (c) => {
229563
229571
  const u = i.current - c.clientX;
@@ -229690,7 +229698,7 @@ function jHr({
229690
229698
  },
229691
229699
  [n]
229692
229700
  );
229693
- Ve(() => {
229701
+ Fe(() => {
229694
229702
  const h = e.current, p = t.current;
229695
229703
  if (!h || !p) return;
229696
229704
  const m = new ResizeObserver(() => {
@@ -229705,11 +229713,11 @@ function jHr({
229705
229713
  const { scrollTop: p, scrollHeight: m, clientHeight: v } = h, g = m - p - v;
229706
229714
  l(g > v);
229707
229715
  }, [e]);
229708
- return Ve(() => {
229716
+ return Fe(() => {
229709
229717
  const h = e.current;
229710
229718
  if (h)
229711
229719
  return h.addEventListener("scroll", d, { passive: !0 }), () => h.removeEventListener("scroll", d);
229712
- }, [d, e]), Ve(() => {
229720
+ }, [d, e]), Fe(() => {
229713
229721
  i > c.current && requestAnimationFrame(() => {
229714
229722
  r.current?.scrollIntoView({
229715
229723
  behavior: "smooth",
@@ -229724,7 +229732,7 @@ const ltt = Tn(null), WHr = ({
229724
229732
  const { agent: t } = I7(), n = Le(/* @__PURE__ */ new Map()), r = Le(null), [i, a] = de(0), o = Pe(() => {
229725
229733
  a((l) => l + 1);
229726
229734
  }, []);
229727
- Ve(() => {
229735
+ Fe(() => {
229728
229736
  if (!t) return;
229729
229737
  const l = (d) => {
229730
229738
  let h = n.current.get(d);
@@ -229912,7 +229920,7 @@ const QHr = ({
229912
229920
  }, [i, r, t]), d = () => {
229913
229921
  e(r);
229914
229922
  };
229915
- return Ve(() => {
229923
+ return Fe(() => {
229916
229924
  const h = (p) => {
229917
229925
  p.key === "Enter" && (p.preventDefault(), u());
229918
229926
  };
@@ -230422,7 +230430,7 @@ const bNr = [
230422
230430
  }
230423
230431
  ), xNr = 750, kNr = ({ text: e, children: t }) => {
230424
230432
  const [n, r] = de(!1);
230425
- Ve(() => {
230433
+ Fe(() => {
230426
230434
  if (n) {
230427
230435
  const a = setTimeout(() => r(!1), xNr);
230428
230436
  return () => clearTimeout(a);
@@ -231053,7 +231061,7 @@ function QNr(e, t) {
231053
231061
  }
231054
231062
  const eIr = /<tool-context\s+tool="[^"]*">[\s\S]*?<\/tool-context>\s*/g, tIr = /<pending-context>[\s\S]*?<\/pending-context>\s*/g, ztt = ({ message: e }) => {
231055
231063
  const t = Le(null), { visualizationMode: n } = Or(), r = n === "fullscreen";
231056
- Ve(() => {
231064
+ Fe(() => {
231057
231065
  !t.current || r || t.current.scrollIntoView({
231058
231066
  behavior: "smooth"
231059
231067
  });
@@ -231113,18 +231121,18 @@ const lIr = ({ onClose: e }) => {
231113
231121
  vx: 0,
231114
231122
  vy: 0,
231115
231123
  speed: Pc
231116
- }), d = Le(0), h = Le(0), p = Le(0), m = Le({ player: 0, ai: 0 }), v = Le("countdown"), g = Le(0), C = Le(0), y = Le([]), b = Le(0), w = Le(0), x = Le({ width: 0, height: 0 }), k = Le(0), _ = Le(0), M = Le(u3), S = Le(0), T = Le(0), P = Le(0), F = Le(0), D = Le(null), [H, N] = de({ x: 0, y: 0 }), [R, z] = de(0), [Z, G] = de(0), [O, j] = de({ player: 0, ai: 0 }), [B, I] = de(u3), [q, Y] = de("countdown"), [ae, le] = de(3), [ce, ie] = de([]), [oe, Ce] = de(0), [Q, Me] = de(0), [se, Ae] = de(null), [Ie, Fe] = de(null), pe = Pe(() => {
231117
- const { width: Xe, height: Ee } = x.current, De = Pc + S.current;
231124
+ }), d = Le(0), h = Le(0), p = Le(0), m = Le({ player: 0, ai: 0 }), v = Le("countdown"), g = Le(0), C = Le(0), y = Le([]), b = Le(0), w = Le(0), x = Le({ width: 0, height: 0 }), k = Le(0), _ = Le(0), M = Le(u3), S = Le(0), T = Le(0), P = Le(0), F = Le(0), D = Le(null), [H, N] = de({ x: 0, y: 0 }), [R, z] = de(0), [Z, G] = de(0), [O, j] = de({ player: 0, ai: 0 }), [B, I] = de(u3), [q, Y] = de("countdown"), [ae, le] = de(3), [ce, ie] = de([]), [oe, Ce] = de(0), [Q, Me] = de(0), [se, Ae] = de(null), [Ie, De] = de(null), pe = Pe(() => {
231125
+ const { width: Xe, height: Ee } = x.current, Ve = Pc + S.current;
231118
231126
  u.current = {
231119
231127
  x: Xe / 2,
231120
231128
  y: Ee / 2,
231121
231129
  vx: 0,
231122
231130
  vy: 0,
231123
- speed: De
231131
+ speed: Ve
231124
231132
  }, y.current = [], C.current = 0;
231125
231133
  }, []), ke = Pe(() => {
231126
- const Xe = Pc + S.current, { vx: Ee, vy: De } = sIr(), tt = Xe / Pc;
231127
- u.current.vx = Ee * tt, u.current.vy = De * tt, u.current.speed = Xe, v.current = "playing", Y("playing"), D.current = null, Fe(null);
231134
+ const Xe = Pc + S.current, { vx: Ee, vy: Ve } = sIr(), tt = Xe / Pc;
231135
+ u.current.vx = Ee * tt, u.current.vy = Ve * tt, u.current.speed = Xe, v.current = "playing", Y("playing"), D.current = null, De(null);
231128
231136
  }, []), Se = Pe(() => {
231129
231137
  pe(), v.current = "countdown", Y("countdown"), le(3);
231130
231138
  let Xe = 3;
@@ -231143,7 +231151,7 @@ const lIr = ({ onClose: e }) => {
231143
231151
  }, [n]), Ye = Pe(
231144
231152
  (Xe) => {
231145
231153
  const Ee = { ...m.current };
231146
- if (Xe === "player" ? Ee.player++ : Ee.ai++, m.current = Ee, j(Ee), k.current = 8, D.current = Xe, Fe(Xe), S.current = Math.min(
231154
+ if (Xe === "player" ? Ee.player++ : Ee.ai++, m.current = Ee, j(Ee), k.current = 8, D.current = Xe, De(Xe), S.current = Math.min(
231147
231155
  xS - Pc,
231148
231156
  S.current + rIr
231149
231157
  ), Xe === "player" && $e(), Ee.player >= 3 || Ee.ai >= 3) {
@@ -231158,32 +231166,32 @@ const lIr = ({ onClose: e }) => {
231158
231166
  },
231159
231167
  [pe, Se, $e, t]
231160
231168
  );
231161
- if (Ve(() => {
231169
+ if (Fe(() => {
231162
231170
  if (r.current) {
231163
231171
  const Xe = r.current.closest("[aria-hidden]");
231164
231172
  Xe && l(Xe);
231165
231173
  }
231166
- }, []), Ve(() => (a.current && (o.current = zU.create(a.current, {
231174
+ }, []), Fe(() => (a.current && (o.current = zU.create(a.current, {
231167
231175
  resize: !0,
231168
231176
  useWorker: !1
231169
231177
  })), () => {
231170
231178
  o.current?.reset();
231171
- }), [s]), Ve(() => {
231172
- const Xe = (De) => {
231173
- De.key === "Escape" && e(), (De.key === "ArrowLeft" || De.key === "ArrowRight") && (De.preventDefault(), c.current.add(De.key));
231174
- }, Ee = (De) => {
231175
- c.current.delete(De.key);
231179
+ }), [s]), Fe(() => {
231180
+ const Xe = (Ve) => {
231181
+ Ve.key === "Escape" && e(), (Ve.key === "ArrowLeft" || Ve.key === "ArrowRight") && (Ve.preventDefault(), c.current.add(Ve.key));
231182
+ }, Ee = (Ve) => {
231183
+ c.current.delete(Ve.key);
231176
231184
  };
231177
231185
  return window.addEventListener("keydown", Xe), window.addEventListener("keyup", Ee), () => {
231178
231186
  window.removeEventListener("keydown", Xe), window.removeEventListener("keyup", Ee);
231179
231187
  };
231180
- }, [e]), Ve(() => {
231188
+ }, [e]), Fe(() => {
231181
231189
  const Xe = i.current;
231182
231190
  if (!Xe) return;
231183
231191
  const Ee = Xe.getBoundingClientRect();
231184
231192
  x.current = { width: Ee.width, height: Ee.height };
231185
- const De = Ee.width / 2;
231186
- d.current = De, h.current = De, p.current = De, m.current = { player: 0, ai: 0 }, j({ player: 0, ai: 0 }), _.current = 0, M.current = u3, I(u3), S.current = 0, T.current = 0;
231193
+ const Ve = Ee.width / 2;
231194
+ d.current = Ve, h.current = Ve, p.current = Ve, m.current = { player: 0, ai: 0 }, j({ player: 0, ai: 0 }), _.current = 0, M.current = u3, I(u3), S.current = 0, T.current = 0;
231187
231195
  const tt = Se(), yt = (ft) => {
231188
231196
  const Zt = Xe.getBoundingClientRect(), Ht = M.current;
231189
231197
  d.current = cc(
@@ -231292,7 +231300,7 @@ const lIr = ({ onClose: e }) => {
231292
231300
  children: [
231293
231301
  /* @__PURE__ */ f("div", { className: "pointer-events-none absolute left-0 right-0 top-1/2 h-px translate-y-1/2 bg-f1-border" }),
231294
231302
  ce.map((Xe, Ee) => {
231295
- const De = (Ee + 1) / ce.length, tt = hl * (0.15 + De * 0.25);
231303
+ const Ve = (Ee + 1) / ce.length, tt = hl * (0.15 + Ve * 0.25);
231296
231304
  return /* @__PURE__ */ f(
231297
231305
  "div",
231298
231306
  {
@@ -231300,7 +231308,7 @@ const lIr = ({ onClose: e }) => {
231300
231308
  style: {
231301
231309
  width: tt,
231302
231310
  height: tt,
231303
- opacity: De * oIr,
231311
+ opacity: Ve * oIr,
231304
231312
  transform: `translate(${Xe.x - tt / 2}px, ${Xe.y - tt / 2}px)`
231305
231313
  }
231306
231314
  },
@@ -231585,7 +231593,7 @@ const fIr = ({
231585
231593
  isLoadingThread: x,
231586
231594
  setInProgress: k
231587
231595
  } = Or(), _ = e ?? d;
231588
- Ve(() => {
231596
+ Fe(() => {
231589
231597
  k(_);
231590
231598
  }, [_, k]);
231591
231599
  const M = r ?? Yet, S = i ?? ztt, T = _e(
@@ -231621,7 +231629,7 @@ const fIr = ({
231621
231629
  _
231622
231630
  ), { thinkingGroup: le, restMessages: ce } = KHr(I), ie = q === D.length - 1, oe = (Ce, Q) => {
231623
231631
  const Me = ie && Q === ce.length - 1, se = ce.findIndex(
231624
- (Fe) => Fe.role === "assistant"
231632
+ (De) => De.role === "assistant"
231625
231633
  ), Ae = le && !(ie && !Y) && Q === se, Ie = {
231626
231634
  message: Ce,
231627
231635
  messages: P,
@@ -231935,11 +231943,11 @@ const gIr = () => {
231935
231943
  } = Or(), { reset: o, messages: s, setMessages: l, sendMessage: c, threadId: u } = I7(), { setThreadId: d, copilotApiConfig: h, actions: p } = dx(), m = Le(s);
231936
231944
  m.current = s;
231937
231945
  const v = Le(u);
231938
- return v.current = u, Ve(() => (e(() => {
231946
+ return v.current = u, Fe(() => (e(() => {
231939
231947
  o(), d(Qc());
231940
231948
  }), () => {
231941
231949
  e(null);
231942
- }), [e, o, d]), Ve(() => (t((g) => {
231950
+ }), [e, o, d]), Fe(() => (t((g) => {
231943
231951
  l([]), n(!0), d(g), vIr(
231944
231952
  h.chatApiEndpoint,
231945
231953
  h.headers,
@@ -231960,9 +231968,9 @@ const gIr = () => {
231960
231968
  n,
231961
231969
  h,
231962
231970
  p
231963
- ]), Ve(() => (c && r(c), () => {
231971
+ ]), Fe(() => (c && r(c), () => {
231964
231972
  r(null);
231965
- }), [r, c]), Ve(() => (i((g, C) => {
231973
+ }), [r, c]), Fe(() => (i((g, C) => {
231966
231974
  const y = g.map(U_e), b = m.current;
231967
231975
  if (b.length === 0)
231968
231976
  l(y);
@@ -231986,7 +231994,7 @@ const gIr = () => {
231986
231994
  );
231987
231995
  }), () => {
231988
231996
  i(null);
231989
- }), [i, l, h]), Ve(() => (a((g) => {
231997
+ }), [i, l, h]), Fe(() => (a((g) => {
231990
231998
  const C = g.map(U_e);
231991
231999
  l(C);
231992
232000
  const y = v.current, b = q_e(C);
@@ -232039,7 +232047,7 @@ const gIr = () => {
232039
232047
  if (d.maxDate)
232040
232048
  return c?.toRange(d.maxDate)?.to;
232041
232049
  }, [d.maxDate, c]), [w, x] = de(null);
232042
- Ve(() => {
232050
+ Fe(() => {
232043
232051
  x(c?.toRange(/* @__PURE__ */ new Date()) ?? null);
232044
232052
  const M = () => {
232045
232053
  const T = c?.toRange(/* @__PURE__ */ new Date()) ?? null;
@@ -232152,7 +232160,7 @@ function CIr({
232152
232160
  const [h, p] = de(
232153
232161
  t ?? c
232154
232162
  );
232155
- Ve(() => {
232163
+ Fe(() => {
232156
232164
  Xh(c, h) || p(c || t);
232157
232165
  }, [c, t]);
232158
232166
  const [m, v] = de(), [g, C] = de(!1), y = $0(), b = d.weekStartsOn ?? y.date?.weekStartsOn ?? yi.Monday, w = _e(() => {
@@ -232271,7 +232279,7 @@ const wIr = (e) => "date" in e, xIr = {
232271
232279
  delay: t
232272
232280
  }) => {
232273
232281
  const [n, r] = de(!1);
232274
- return Ve(() => {
232282
+ return Fe(() => {
232275
232283
  let i;
232276
232284
  return e ? i = setTimeout(() => {
232277
232285
  r(e);
@@ -232751,12 +232759,12 @@ const PIr = (e) => Array.isArray(e) ? e.every((t) => TIr(t)) ? e : [
232751
232759
  // eslint-disable-next-line react-hooks/exhaustive-deps -- This is intentional
232752
232760
  [JSON.stringify(t)]
232753
232761
  ), l = _e(() => !r && !!e, [r, e]);
232754
- Ve(() => {
232762
+ Fe(() => {
232755
232763
  if (!l) {
232756
232764
  a(!0);
232757
232765
  return;
232758
232766
  }
232759
- o.get(e).then((d) => {
232767
+ a(!1), o.get(e).then((d) => {
232760
232768
  Object.entries(n).forEach(
232761
232769
  ([h, p]) => {
232762
232770
  if (s.includes(
@@ -232796,13 +232804,17 @@ const PIr = (e) => Array.isArray(e) ? e.every((t) => TIr(t)) ? e : [
232796
232804
  },
232797
232805
  200
232798
232806
  );
232799
- return Ve(() => {
232800
- u(n);
232807
+ return Fe(() => {
232808
+ if (!(!l || !i))
232809
+ return u(n), () => {
232810
+ u.cancel();
232811
+ };
232801
232812
  }, [
232802
232813
  e,
232803
232814
  s,
232804
232815
  o,
232805
232816
  i,
232817
+ l,
232806
232818
  c
232807
232819
  ]), {
232808
232820
  storageReady: i
@@ -233236,7 +233248,7 @@ const zIr = Hn(
233236
233248
  }
233237
233249
  }
233238
233250
  );
233239
- Ve(() => {
233251
+ Fe(() => {
233240
233252
  h({
233241
233253
  totalItems: C?.total || g.records.length,
233242
233254
  filters: u.currentFilters,
@@ -233950,7 +233962,7 @@ const pnt = 40, E4 = U(
233950
233962
  E4.displayName = "TableRow";
233951
233963
  function cRr({ children: e, loading: t = !1 }) {
233952
233964
  const [n, r] = de(!1), [i, a] = de(!1), o = Le(null);
233953
- return Ve(() => {
233965
+ return Fe(() => {
233954
233966
  const s = o.current;
233955
233967
  if (!s) return;
233956
233968
  const l = () => {
@@ -234030,7 +234042,7 @@ function fRr({ children: e }) {
234030
234042
  }
234031
234043
  const qoe = (e, t, n, r) => {
234032
234044
  const i = Le(null);
234033
- return Ve(() => {
234045
+ return Fe(() => {
234034
234046
  if (!Pw(e) || !e.hasMore)
234035
234047
  return;
234036
234048
  const a = i.current;
@@ -234392,7 +234404,7 @@ const hRr = (e) => e ? e.indeterminate || e.selectedCount !== void 0 && e.select
234392
234404
  ), [c, u] = de(i?.[e]?.paginationInfo), [d, h] = de(!1), [p, m] = de(
234393
234405
  oMe(i?.[e])
234394
234406
  ), v = Le(n.currentFilters), g = Le(n.currentSortings), C = Le(n.currentNavigationFilters);
234395
- Ve(() => {
234407
+ Fe(() => {
234396
234408
  const x = v.current !== n.currentFilters, k = g.current !== n.currentSortings, _ = C.current !== n.currentNavigationFilters;
234397
234409
  (x || k || _) && (l([]), u(void 0), m("basic"), o(), r(), v.current = n.currentFilters, g.current = n.currentSortings, C.current = n.currentNavigationFilters);
234398
234410
  }, [
@@ -234442,7 +234454,7 @@ const hRr = (e) => e ? e.indeterminate || e.selectedCount !== void 0 && e.select
234442
234454
  }
234443
234455
  }), [];
234444
234456
  }, [s, t, n, c, b]);
234445
- return Ve(() => () => {
234457
+ return Fe(() => () => {
234446
234458
  y.current?.unsubscribe();
234447
234459
  }, []), {
234448
234460
  children: s,
@@ -235032,9 +235044,9 @@ const _Rr = (e, t) => /* @__PURE__ */ f(
235032
235044
  }, [o, s] = de(a()), [l, c] = de(
235033
235045
  (r && n?.order !== void 0 ? n.order : void 0) ?? IRr(e)
235034
235046
  );
235035
- Ve(() => {
235047
+ Fe(() => {
235036
235048
  i && n?.hidden !== void 0 && s(a());
235037
- }, [JSON.stringify(n?.hidden), i]), Ve(() => {
235049
+ }, [JSON.stringify(n?.hidden), i]), Fe(() => {
235038
235050
  r && n?.order !== void 0 && c(n.order);
235039
235051
  }, [JSON.stringify(n?.order), r]);
235040
235052
  const u = _e(() => {
@@ -235320,7 +235332,7 @@ const _Rr = (e, t) => /* @__PURE__ */ f(
235320
235332
  T,
235321
235333
  P
235322
235334
  );
235323
- Ve(() => {
235335
+ Fe(() => {
235324
235336
  i({
235325
235337
  totalItems: _?.total || k.records.length,
235326
235338
  filters: t.currentFilters,
@@ -235359,7 +235371,7 @@ const _Rr = (e, t) => /* @__PURE__ */ f(
235359
235371
  field: We,
235360
235372
  order: "desc"
235361
235373
  } : null);
235362
- }, Ae = t.grouping?.collapsible, Ie = t.grouping?.defaultOpenGroups, { openGroups: Fe, setGroupOpen: pe } = EO(
235374
+ }, Ae = t.grouping?.collapsible, Ie = t.grouping?.defaultOpenGroups, { openGroups: De, setGroupOpen: pe } = EO(
235363
235375
  k?.type === "grouped" ? k.groups : [],
235364
235376
  Ie
235365
235377
  ), ke = x.length + (R ? 1 : 0) + (t.selectable ? 1 : 0), { getStickyPosition: Se, checkColumnWidth: $e } = wnt(
@@ -235376,7 +235388,7 @@ const _Rr = (e, t) => /* @__PURE__ */ f(
235376
235388
  "Sorting is defined on a column but no sortings are provided in the data source"
235377
235389
  );
235378
235390
  });
235379
- const Ze = q.selectedCount > 0 || q.checked, Xe = !q.checked && q.unselectedCount === 0 && q.selectedCount > 0, Ee = !!t.allPagesSelection && !q.checked && _?.total !== void 0 && _.total > q.selectedCount, De = x.length + (R ? Z : 0), tt = q.selectedCount === 1 ? C.status.selected.singular : C.status.selected.plural;
235391
+ const Ze = q.selectedCount > 0 || q.checked, Xe = !q.checked && q.unselectedCount === 0 && q.selectedCount > 0, Ee = !!t.allPagesSelection && !q.checked && _?.total !== void 0 && _.total > q.selectedCount, Ve = x.length + (R ? Z : 0), tt = q.selectedCount === 1 ? C.status.selected.singular : C.status.selected.plural;
235380
235392
  return /* @__PURE__ */ f("div", { className: "flex h-full min-h-0 flex-col gap-4", children: /* @__PURE__ */ A(Ke ? yRr : V3, { children: [
235381
235393
  /* @__PURE__ */ A(rMe, { loading: N, children: [
235382
235394
  /* @__PURE__ */ f(hnt, { sticky: !0, children: Ze && t.selectable ? /* @__PURE__ */ A(E4, { children: [
@@ -235401,7 +235413,7 @@ const _Rr = (e, t) => /* @__PURE__ */ f(
235401
235413
  /* @__PURE__ */ f(
235402
235414
  "th",
235403
235415
  {
235404
- colSpan: De,
235416
+ colSpan: Ve,
235405
235417
  className: "h-11 border-0 border-t border-solid border-f1-border-secondary bg-f1-background px-3",
235406
235418
  children: /* @__PURE__ */ A("div", { className: "flex items-center gap-3", children: [
235407
235419
  /* @__PURE__ */ f(
@@ -235591,7 +235603,7 @@ const _Rr = (e, t) => /* @__PURE__ */ f(
235591
235603
  showOpenChange: Ae,
235592
235604
  label: We.label,
235593
235605
  itemCount: Zt,
235594
- open: Fe[We.key],
235606
+ open: De[We.key],
235595
235607
  onOpenChange: (Ht) => pe(We.key, Ht)
235596
235608
  }
235597
235609
  )
@@ -235605,7 +235617,7 @@ const _Rr = (e, t) => /* @__PURE__ */ f(
235605
235617
  }
235606
235618
  )
235607
235619
  ] }, `group-header-${We.key}`),
235608
- /* @__PURE__ */ f(Ln, { children: b && (!Ae || Fe[We.key]) && We.records.map((Ht, ze) => {
235620
+ /* @__PURE__ */ f(Ln, { children: b && (!Ae || De[We.key]) && We.records.map((Ht, ze) => {
235609
235621
  const gt = `row-${ft}-${B(Ht, ze)}`, Ge = /* @__PURE__ */ f(
235610
235622
  b,
235611
235623
  {
@@ -236204,7 +236216,7 @@ function r$r({
236204
236216
  children: n
236205
236217
  }) {
236206
236218
  const [r, i] = de(e), [a, o] = de({}), [s, l] = de({}), { t: c } = dt(), u = Le(r);
236207
- u.current = r, Ve(() => {
236219
+ u.current = r, Fe(() => {
236208
236220
  i(e);
236209
236221
  }, [e]);
236210
236222
  const d = Pe(
@@ -236381,7 +236393,7 @@ const l$r = ({
236381
236393
  mergedFilters: C,
236382
236394
  summaries: y
236383
236395
  } = a;
236384
- return Ve(() => {
236396
+ return Fe(() => {
236385
236397
  r?.({
236386
236398
  data: o,
236387
236399
  search: s,
@@ -236508,14 +236520,14 @@ const u$r = (e) => {
236508
236520
  onSelectItems: e.onSelectItems,
236509
236521
  selectedState: e.source.defaultSelectedItems
236510
236522
  });
236511
- return Ve(() => {
236523
+ return Fe(() => {
236512
236524
  e.onHookUpdate(t);
236513
236525
  }, [t]), null;
236514
236526
  }, d$r = (e, t, n) => {
236515
236527
  const [r, i] = de(/* @__PURE__ */ new Map()), [a, o] = de({ selectItemsStatus: /* @__PURE__ */ new Map(), clearCallback: /* @__PURE__ */ new Map() }), s = Pe(() => {
236516
236528
  a.clearCallback.forEach((c) => c());
236517
236529
  }, [a.clearCallback]);
236518
- Ve(() => {
236530
+ Fe(() => {
236519
236531
  const c = Object.fromEntries(
236520
236532
  a.selectItemsStatus
236521
236533
  );
@@ -236667,7 +236679,7 @@ function _$r({
236667
236679
  vYe({
236668
236680
  ref: u,
236669
236681
  payload: { kind: e.type ?? "list-card", id: e.id, data: e.data }
236670
- }), Ve(() => {
236682
+ }), Fe(() => {
236671
236683
  if (u.current)
236672
236684
  return am({
236673
236685
  element: u.current,
@@ -236963,7 +236975,7 @@ function D$r({
236963
236975
  id: e,
236964
236976
  accepts: ["list-card"]
236965
236977
  } : void 0
236966
- ), Ve(() => {
236978
+ ), Fe(() => {
236967
236979
  const P = () => {
236968
236980
  const F = performance.now(), D = g.current ?? F, H = (F - D) / 1e3;
236969
236981
  g.current = F;
@@ -236977,7 +236989,7 @@ function D$r({
236977
236989
  return m.current == null && C && v.current !== 0 && (g.current = null, m.current = window.requestAnimationFrame(P)), () => {
236978
236990
  m.current != null && (window.cancelAnimationFrame(m.current), m.current = null), g.current = null, v.current = 0;
236979
236991
  };
236980
- }, [C]), Ve(() => {
236992
+ }, [C]), Fe(() => {
236981
236993
  if (!e) return;
236982
236994
  const P = () => {
236983
236995
  m.current == null && v.current !== 0 && (g.current = null, m.current = window.requestAnimationFrame(() => {
@@ -237135,7 +237147,7 @@ function D$r({
237135
237147
  r.getKey,
237136
237148
  b,
237137
237149
  x
237138
- ]), Ve(() => {
237150
+ ]), Fe(() => {
237139
237151
  const P = () => {
237140
237152
  const H = i.current;
237141
237153
  return H ? (p.current = H.querySelector(
@@ -237151,7 +237163,7 @@ function D$r({
237151
237163
  return D.observe(F, { subtree: !0, childList: !0 }), () => D.disconnect();
237152
237164
  }, [e]), Pae(({ phase: P }) => {
237153
237165
  P === "start" && y(!0), (P === "drop" || P === "cancel") && (y(!1), M(!1), w(null), k(null), T(-1));
237154
- }), Ve(() => {
237166
+ }), Fe(() => {
237155
237167
  const P = (F) => {
237156
237168
  if (!e) return;
237157
237169
  const D = F.detail;
@@ -237243,7 +237255,7 @@ function fMe(e) {
237243
237255
  const { lanes: t, renderCard: n, getKey: r, className: i, dnd: a, loading: o, onCreate: s } = e, [l, c] = de(
237244
237256
  () => t
237245
237257
  ), u = Le(""), d = Le(null);
237246
- Ve(() => {
237258
+ Fe(() => {
237247
237259
  const k = t.map(
237248
237260
  (_) => `${_.id}:[${_.items.map((M, S) => r(M, S, _.id)).join(",")}]`
237249
237261
  ).join("|");
@@ -237257,7 +237269,7 @@ function fMe(e) {
237257
237269
  const [h, p] = de(!1), m = Le(null), v = Le(null), g = Le(null), C = Le(null), y = Le(0), b = Le(null);
237258
237270
  Pae(({ phase: k }) => {
237259
237271
  k === "start" && p(!0), (k === "drop" || k === "cancel") && p(!1);
237260
- }), Ve(() => {
237272
+ }), Fe(() => {
237261
237273
  const k = () => {
237262
237274
  const T = performance.now(), P = b.current ?? T, F = (T - P) / 1e3;
237263
237275
  b.current = T;
@@ -237524,7 +237536,7 @@ const V$r = ({
237524
237536
  const F = Object.values(h);
237525
237537
  return F.length === 0 ? !0 : F.some((D) => D.isInitialLoading);
237526
237538
  }, [h]);
237527
- Ve(() => {
237539
+ Fe(() => {
237528
237540
  u({
237529
237541
  totalItems: x,
237530
237542
  filters: s.currentFilters,
@@ -237785,7 +237797,7 @@ const V$r = ({
237785
237797
  a(S);
237786
237798
  }
237787
237799
  });
237788
- Ve(() => {
237800
+ Fe(() => {
237789
237801
  i({
237790
237802
  totalItems: l?.total || s.records.length,
237791
237803
  filters: n.currentFilters,
@@ -238493,7 +238505,7 @@ const Y$r = (e) => e.some(
238493
238505
  value: l
238494
238506
  }))
238495
238507
  ], [a, o] = de(e);
238496
- Ve(() => {
238508
+ Fe(() => {
238497
238509
  o(e || {
238498
238510
  field: LS,
238499
238511
  order: "asc"
@@ -238780,7 +238792,7 @@ const Y$r = (e) => e.some(
238780
238792
  defaultSorting: le.current,
238781
238793
  currentVisualization: Y ? z : void 0
238782
238794
  });
238783
- Ve(() => {
238795
+ Fe(() => {
238784
238796
  ce(H);
238785
238797
  }, [ce, H]);
238786
238798
  const ie = _e(
@@ -238819,7 +238831,7 @@ const Y$r = (e) => e.some(
238819
238831
  Q.loading,
238820
238832
  Q.disabled,
238821
238833
  Q.onClick
238822
- ]), Ie = ie?.length > 0 || oe?.length > 0 || !!u, [Fe, pe] = de(void 0), ke = UAe(), [Se, $e] = de(void 0), Ye = Pe((ee) => {
238834
+ ]), Ie = ie?.length > 0 || oe?.length > 0 || !!u, [De, pe] = de(void 0), ke = UAe(), [Se, $e] = de(void 0), Ye = Pe((ee) => {
238823
238835
  if (!ee)
238824
238836
  return [];
238825
238837
  const me = [];
@@ -238837,10 +238849,10 @@ const Y$r = (e) => e.some(
238837
238849
  (ee) => !("type" in ee && ee.type === "separator")
238838
238850
  )
238839
238851
  };
238840
- }, [Se, Ye]), [Ze, Xe] = de(!1), [Ee, De] = de(0), [tt, yt] = de(!1), We = dt(), ft = _e(() => T === !0 ? (ee) => ee !== void 0 ? `${ee} ${We.collections.itemsCount}` : null : T || void 0, [T, We]), Zt = (ee, me, ue) => {
238852
+ }, [Se, Ye]), [Ze, Xe] = de(!1), [Ee, Ve] = de(0), [tt, yt] = de(!1), We = dt(), ft = _e(() => T === !0 ? (ee) => ee !== void 0 ? `${ee} ${We.collections.itemsCount}` : null : T || void 0, [T, We]), Zt = (ee, me, ue) => {
238841
238853
  n?.(ee, me, ue), Xe(
238842
238854
  !!ee.allSelected || ee.itemsStatus.some((we) => we.checked)
238843
- ), De(ee.selectedCount), pe(() => me), yt(ee.allSelected === !0);
238855
+ ), Ve(ee.selectedCount), pe(() => me), yt(ee.allSelected === !0);
238844
238856
  const ge = e.bulkActions ? e.bulkActions(ee) : void 0, be = (we) => {
238845
238857
  if ("type" in we && we.type === "separator")
238846
238858
  return { type: "separator" };
@@ -238882,7 +238894,7 @@ const Y$r = (e) => e.some(
238882
238894
  value: !!v,
238883
238895
  delay: 100
238884
238896
  });
238885
- Ve(() => {
238897
+ Fe(() => {
238886
238898
  Lt(!1);
238887
238899
  }, [
238888
238900
  j,
@@ -239110,7 +239122,7 @@ const Y$r = (e) => e.some(
239110
239122
  primaryActions: Ke && "primary" in Ke ? Ke.primary : [],
239111
239123
  secondaryActions: Ke && "secondary" in Ke ? Ke.secondary : [],
239112
239124
  warningMessage: "warningMessage" in Se ? Se.warningMessage : void 0,
239113
- onUnselect: () => Fe?.(),
239125
+ onUnselect: () => De?.(),
239114
239126
  allPagesSelection: !!e.allPagesSelection,
239115
239127
  isAllItemsSelected: tt,
239116
239128
  totalItems: Ht
@@ -241092,7 +241104,7 @@ var iZr = /* @__PURE__ */ (function() {
241092
241104
  var ue = me & 7, ge = me >>> 3;
241093
241105
  return (ee[ge] | (ue <= 3 ? 0 : ee[ge + 1] << 8)) >>> ue & 31;
241094
241106
  }
241095
- function Fe(ee, me) {
241107
+ function De(ee, me) {
241096
241108
  var ue = me & 7, ge = me >>> 3;
241097
241109
  return (ee[ge] | (ue <= 1 ? 0 : ee[ge + 1] << 8)) >>> ue & 127;
241098
241110
  }
@@ -241154,14 +241166,14 @@ var iZr = /* @__PURE__ */ (function() {
241154
241166
  me[lt | qe << ye] = ye & 15 | we << 4;
241155
241167
  return ge;
241156
241168
  }
241157
- var Ee = ie ? new Uint16Array(512) : Ze(512), De = ie ? new Uint16Array(32) : Ze(32);
241169
+ var Ee = ie ? new Uint16Array(512) : Ze(512), Ve = ie ? new Uint16Array(32) : Ze(32);
241158
241170
  if (!ie) {
241159
241171
  for (var tt = 0; tt < 512; ++tt) Ee[tt] = 0;
241160
- for (tt = 0; tt < 32; ++tt) De[tt] = 0;
241172
+ for (tt = 0; tt < 32; ++tt) Ve[tt] = 0;
241161
241173
  }
241162
241174
  (function() {
241163
241175
  for (var ee = [], me = 0; me < 32; me++) ee.push(5);
241164
- Xe(ee, De, 32);
241176
+ Xe(ee, Ve, 32);
241165
241177
  var ue = [];
241166
241178
  for (me = 0; me <= 143; me++) ue.push(8);
241167
241179
  for (; me <= 255; me++) ue.push(9);
@@ -241246,7 +241258,7 @@ var iZr = /* @__PURE__ */ (function() {
241246
241258
  }
241247
241259
  var dn = [];
241248
241260
  for (Je = 1; dn.length < ue + ge; )
241249
- switch (ot = Ht[Fe(ee, me)], me += ot & 7, ot >>>= 3) {
241261
+ switch (ot = Ht[De(ee, me)], me += ot & 7, ot >>>= 3) {
241250
241262
  case 16:
241251
241263
  for (we = 3 + Me(ee, me), me += 2, ot = dn[dn.length - 1]; we-- > 0; ) dn.push(ot);
241252
241264
  break;
@@ -241254,7 +241266,7 @@ var iZr = /* @__PURE__ */ (function() {
241254
241266
  for (we = 3 + se(ee, me), me += 3; we-- > 0; ) dn.push(0);
241255
241267
  break;
241256
241268
  case 18:
241257
- for (we = 11 + Fe(ee, me), me += 7; we-- > 0; ) dn.push(0);
241269
+ for (we = 11 + De(ee, me), me += 7; we-- > 0; ) dn.push(0);
241258
241270
  break;
241259
241271
  default:
241260
241272
  dn.push(ot), Je < ot && (Je = ot);
@@ -241289,7 +241301,7 @@ var iZr = /* @__PURE__ */ (function() {
241289
241301
  var Ue = ye < 8 ? 0 : ye - 4 >> 2;
241290
241302
  Ue > 5 && (Ue = 0);
241291
241303
  var ot = we + ae[ye];
241292
- Ue > 0 && (ot += pe(ee, ue, Ue), ue += Ue), Ne = pe(ee, ue, Je), ye = ge >>> 1 == 1 ? De[Ne] : Zt[Ne], ue += ye & 15, ye >>>= 4;
241304
+ Ue > 0 && (ot += pe(ee, ue, Ue), ue += Ue), Ne = pe(ee, ue, Je), ye = ge >>> 1 == 1 ? Ve[Ne] : Zt[Ne], ue += ye & 15, ye >>>= 4;
241293
241305
  var mt = ye < 4 ? 0 : ye - 2 >> 1, Ft = le[ye];
241294
241306
  for (mt > 0 && (Ft += pe(ee, ue, mt), ue += mt), !me && qe < ot && (be = Ke(be, ot + 100), qe = be.length); we < ot; )
241295
241307
  be[we] = be[we - Ft], ++we;
@@ -244728,52 +244740,52 @@ var Nzr = /* @__PURE__ */ (function() {
244728
244740
  if (B[2] == 0 && (B[3] == 8 || B[3] == 9) && B.length >= 16 && B[14] == 5 && B[15] === 108)
244729
244741
  throw new Error("Unsupported Works 3 for Mac file");
244730
244742
  if (B[2] == 2)
244731
- q.Enum = O, e(B, function(Fe, pe, ke) {
244743
+ q.Enum = O, e(B, function(De, pe, ke) {
244732
244744
  switch (ke) {
244733
244745
  case 0:
244734
- q.vers = Fe, Fe >= 4096 && (q.qpro = !0);
244746
+ q.vers = De, De >= 4096 && (q.qpro = !0);
244735
244747
  break;
244736
244748
  case 6:
244737
- Q = Fe;
244749
+ Q = De;
244738
244750
  break;
244739
244751
  /* RANGE */
244740
244752
  case 204:
244741
- Fe && (le = Fe);
244753
+ De && (le = De);
244742
244754
  break;
244743
244755
  /* SHEETNAMECS */
244744
244756
  case 222:
244745
- le = Fe;
244757
+ le = De;
244746
244758
  break;
244747
244759
  /* SHEETNAMELP */
244748
244760
  case 15:
244749
244761
  /* LABEL */
244750
244762
  case 51:
244751
- q.qpro || (Fe[1].v = Fe[1].v.slice(1));
244763
+ q.qpro || (De[1].v = De[1].v.slice(1));
244752
244764
  /* falls through */
244753
244765
  case 13:
244754
244766
  /* INTEGER */
244755
244767
  case 14:
244756
244768
  /* NUMBER */
244757
244769
  case 16:
244758
- ke == 14 && (Fe[2] & 112) == 112 && (Fe[2] & 15) > 1 && (Fe[2] & 15) < 15 && (Fe[1].z = q.dateNF || k1[14], q.cellDates && (Fe[1].t = "d", Fe[1].v = Qnt(Fe[1].v))), q.qpro && Fe[3] > ce && (Y["!ref"] = ni(Q), ie[ae] = Y, oe.push(ae), Y = q.dense ? [] : {}, Q = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } }, ce = Fe[3], ae = le || "Sheet" + (ce + 1), le = "");
244759
- var Se = q.dense ? (Y[Fe[0].r] || [])[Fe[0].c] : Y[g2(Fe[0])];
244770
+ ke == 14 && (De[2] & 112) == 112 && (De[2] & 15) > 1 && (De[2] & 15) < 15 && (De[1].z = q.dateNF || k1[14], q.cellDates && (De[1].t = "d", De[1].v = Qnt(De[1].v))), q.qpro && De[3] > ce && (Y["!ref"] = ni(Q), ie[ae] = Y, oe.push(ae), Y = q.dense ? [] : {}, Q = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } }, ce = De[3], ae = le || "Sheet" + (ce + 1), le = "");
244771
+ var Se = q.dense ? (Y[De[0].r] || [])[De[0].c] : Y[g2(De[0])];
244760
244772
  if (Se) {
244761
- Se.t = Fe[1].t, Se.v = Fe[1].v, Fe[1].z != null && (Se.z = Fe[1].z), Fe[1].f != null && (Se.f = Fe[1].f);
244773
+ Se.t = De[1].t, Se.v = De[1].v, De[1].z != null && (Se.z = De[1].z), De[1].f != null && (Se.f = De[1].f);
244762
244774
  break;
244763
244775
  }
244764
- q.dense ? (Y[Fe[0].r] || (Y[Fe[0].r] = []), Y[Fe[0].r][Fe[0].c] = Fe[1]) : Y[g2(Fe[0])] = Fe[1];
244776
+ q.dense ? (Y[De[0].r] || (Y[De[0].r] = []), Y[De[0].r][De[0].c] = De[1]) : Y[g2(De[0])] = De[1];
244765
244777
  break;
244766
244778
  }
244767
244779
  }, q);
244768
244780
  else if (B[2] == 26 || B[2] == 14)
244769
- q.Enum = j, B[2] == 14 && (q.qpro = !0, B.l = 0), e(B, function(Fe, pe, ke) {
244781
+ q.Enum = j, B[2] == 14 && (q.qpro = !0, B.l = 0), e(B, function(De, pe, ke) {
244770
244782
  switch (ke) {
244771
244783
  case 204:
244772
- ae = Fe;
244784
+ ae = De;
244773
244785
  break;
244774
244786
  /* SHEETNAMECS */
244775
244787
  case 22:
244776
- Fe[1].v = Fe[1].v.slice(1);
244788
+ De[1].v = De[1].v.slice(1);
244777
244789
  /* falls through */
244778
244790
  case 23:
244779
244791
  /* NUMBER17 */
@@ -244786,14 +244798,14 @@ var Nzr = /* @__PURE__ */ (function() {
244786
244798
  case 39:
244787
244799
  /* NUMBER27 */
244788
244800
  case 40:
244789
- if (Fe[3] > ce && (Y["!ref"] = ni(Q), ie[ae] = Y, oe.push(ae), Y = q.dense ? [] : {}, Q = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } }, ce = Fe[3], ae = "Sheet" + (ce + 1)), Me > 0 && Fe[0].r >= Me) break;
244790
- q.dense ? (Y[Fe[0].r] || (Y[Fe[0].r] = []), Y[Fe[0].r][Fe[0].c] = Fe[1]) : Y[g2(Fe[0])] = Fe[1], Q.e.c < Fe[0].c && (Q.e.c = Fe[0].c), Q.e.r < Fe[0].r && (Q.e.r = Fe[0].r);
244801
+ if (De[3] > ce && (Y["!ref"] = ni(Q), ie[ae] = Y, oe.push(ae), Y = q.dense ? [] : {}, Q = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } }, ce = De[3], ae = "Sheet" + (ce + 1)), Me > 0 && De[0].r >= Me) break;
244802
+ q.dense ? (Y[De[0].r] || (Y[De[0].r] = []), Y[De[0].r][De[0].c] = De[1]) : Y[g2(De[0])] = De[1], Q.e.c < De[0].c && (Q.e.c = De[0].c), Q.e.r < De[0].r && (Q.e.r = De[0].r);
244791
244803
  break;
244792
244804
  case 27:
244793
- Fe[14e3] && (Ce[Fe[14e3][0]] = Fe[14e3][1]);
244805
+ De[14e3] && (Ce[De[14e3][0]] = De[14e3][1]);
244794
244806
  break;
244795
244807
  case 1537:
244796
- Ce[Fe[0]] = Fe[1], Fe[0] == ce && (ae = Fe[1]);
244808
+ Ce[De[0]] = De[1], De[0] == ce && (ae = De[1]);
244797
244809
  break;
244798
244810
  }
244799
244811
  }, q);
@@ -244834,7 +244846,7 @@ var Nzr = /* @__PURE__ */ (function() {
244834
244846
  for (var oe = J2(ie["!ref"]), Ce = Array.isArray(ie), Q = [], Me = Math.min(oe.e.r, 8191), se = oe.s.r; se <= Me; ++se)
244835
244847
  for (var Ae = sa(se), Ie = oe.s.c; Ie <= oe.e.c; ++Ie) {
244836
244848
  se === oe.s.r && (Q[Ie] = ka(Ie));
244837
- var Fe = Q[Ie] + Ae, pe = Ce ? (ie[se] || [])[Ie] : ie[Fe];
244849
+ var De = Q[Ie] + Ae, pe = Ce ? (ie[se] || [])[Ie] : ie[De];
244838
244850
  if (!(!pe || pe.t == "z"))
244839
244851
  if (pe.t == "n")
244840
244852
  zt(Y, 23, T(se, Ie, ce, pe.v));
@@ -255129,7 +255141,7 @@ function C2t(e, t, n) {
255129
255141
  v === c.current && (l(C instanceof Error ? C : new Error(String(C))), o(!1));
255130
255142
  });
255131
255143
  }, [n]), p = n ? JSON.stringify(t) : "disabled";
255132
- Ve(() => {
255144
+ Fe(() => {
255133
255145
  h();
255134
255146
  }, [p, h]);
255135
255147
  const m = Pe(() => {
@@ -255150,13 +255162,13 @@ const wXr = (e) => {
255150
255162
  withBorder: c = !0,
255151
255163
  fullWidth: u = !1
255152
255164
  } = e, [d, h] = de(a);
255153
- Ve(() => {
255165
+ Fe(() => {
255154
255166
  d !== a && h(a);
255155
255167
  }, [a]);
255156
255168
  const p = (C) => {
255157
255169
  i && (r && C.length === 0 || !C) || h(C);
255158
255170
  };
255159
- Ve(() => {
255171
+ Fe(() => {
255160
255172
  o?.(d);
255161
255173
  }, [d, r]);
255162
255174
  const m = _e(() => t.map((C) => ({
@@ -255876,7 +255888,7 @@ function IXr({
255876
255888
  onTransformChart: a
255877
255889
  }) {
255878
255890
  const o = Le(null), [s, l] = de(!1), [c, u] = de(null), [d, h] = de(0);
255879
- Ve(() => {
255891
+ Fe(() => {
255880
255892
  if (!c || !o.current) return;
255881
255893
  const R = () => {
255882
255894
  const z = o.current?.getBoundingClientRect();
@@ -255889,14 +255901,14 @@ function IXr({
255889
255901
  for (const z of e) R.set(z.id, z);
255890
255902
  return R;
255891
255903
  }, [e]), [m, v] = de(() => wU(e)), g = Le(e.map((R) => R.id).join(","));
255892
- Ve(() => {
255904
+ Fe(() => {
255893
255905
  const R = e.map((z) => z.id).join(",");
255894
255906
  R !== g.current && (g.current = R, v(wU(e)));
255895
255907
  }, [e]);
255896
255908
  const C = Le(i);
255897
- Ve(() => {
255909
+ Fe(() => {
255898
255910
  i !== void 0 && i !== C.current && (C.current = i, v(wU(e)));
255899
- }, [i, e]), Ve(() => {
255911
+ }, [i, e]), Fe(() => {
255900
255912
  const R = o.current;
255901
255913
  if (!R) return;
255902
255914
  const z = new ResizeObserver((Z) => {
@@ -255904,7 +255916,7 @@ function IXr({
255904
255916
  l(G.contentRect.width < OXr);
255905
255917
  });
255906
255918
  return z.observe(R), () => z.disconnect();
255907
- }, []), Ve(() => {
255919
+ }, []), Fe(() => {
255908
255920
  c && !p.has(c) && u(null);
255909
255921
  }, [c, p]);
255910
255922
  const y = Pe(
@@ -256464,7 +256476,7 @@ const b2t = ({
256464
256476
  filters: m,
256465
256477
  filename: s
256466
256478
  });
256467
- return Ve(() => (l?.(b), () => l?.(void 0)), [b, l]), /* @__PURE__ */ A("div", { className: "flex flex-col gap-5 py-4", children: [
256479
+ return Fe(() => (l?.(b), () => l?.(void 0)), [b, l]), /* @__PURE__ */ A("div", { className: "flex flex-col gap-5 py-4", children: [
256468
256480
  (e || h || o || d) && /* @__PURE__ */ A("div", { className: "flex items-center justify-between gap-4 px-5", children: [
256469
256481
  /* @__PURE__ */ f("div", { className: "w-full", children: e ? /* @__PURE__ */ f(
256470
256482
  jXr,
@@ -256742,7 +256754,7 @@ function JXr({
256742
256754
  defaultDescription: i = ""
256743
256755
  }) {
256744
256756
  const { t: a } = dt(), [o, s] = de(r), [l, c] = de(i), [u, d] = de(!1);
256745
- Ve(() => {
256757
+ Fe(() => {
256746
256758
  e && (s(r), c(i));
256747
256759
  }, [e, r, i]);
256748
256760
  const h = Pe(async () => {
@@ -256893,9 +256905,9 @@ function k2t({
256893
256905
  t,
256894
256906
  n
256895
256907
  ), [d, h] = de(), p = Le(!1);
256896
- Ve(() => {
256908
+ Fe(() => {
256897
256909
  p.current = !1;
256898
- }, [n]), Ve(() => {
256910
+ }, [n]), Fe(() => {
256899
256911
  if (p.current) return;
256900
256912
  const w = setInterval(() => {
256901
256913
  const x = u();
@@ -257461,13 +257473,13 @@ function vYr({
257461
257473
  }
257462
257474
  function gYr() {
257463
257475
  const { formRef: e } = SVr(), { agent: t, closeCanvas: n } = Or(), r = Av(), [i, a] = de(!1), o = Le();
257464
- Ve(() => () => {
257476
+ Fe(() => () => {
257465
257477
  o.current && clearTimeout(o.current);
257466
257478
  }, []);
257467
257479
  const { state: s } = fee({
257468
257480
  name: t || "one-workflow"
257469
257481
  }), l = s?.activeForm, c = l?.formName ?? "", u = c ? r?.get(c) : void 0, d = u?.ref.current, h = l?.formValues ?? {};
257470
- Ve(() => {
257482
+ Fe(() => {
257471
257483
  d?.setValues(h, { shouldDirty: !0, shouldValidate: !1 });
257472
257484
  }, [c, JSON.stringify(h)]);
257473
257485
  const p = Pe(() => {
@@ -257793,7 +257805,7 @@ function SYr(e) {
257793
257805
  }
257794
257806
  function P2t() {
257795
257807
  const { canvasContent: e, closeCanvas: t } = Or(), n = o5(), [r, i] = de(0), a = Le(e);
257796
- Ve(() => {
257808
+ Fe(() => {
257797
257809
  e && a.current && e !== a.current && i((l) => l + 1), a.current = e;
257798
257810
  }, [e]);
257799
257811
  const o = e ? SYr(e.type) : void 0, s = () => {
@@ -258349,7 +258361,7 @@ export {
258349
258361
  kn as ey,
258350
258362
  EKe as ez,
258351
258363
  BKr as f,
258352
- Omt as f$,
258364
+ Lmt as f$,
258353
258365
  APe as f0,
258354
258366
  FPe as f1,
258355
258367
  vte as f2,
@@ -258377,16 +258389,16 @@ export {
258377
258389
  IO as fO,
258378
258390
  KJ as fP,
258379
258391
  xet as fQ,
258380
- _Vr as fR,
258381
- p_e as fS,
258382
- xO as fT,
258383
- Dpr as fU,
258384
- SVr as fV,
258385
- ADr as fW,
258386
- ZYe as fX,
258387
- rVe as fY,
258388
- Lmt as fZ,
258389
- TO as f_,
258392
+ RO as fR,
258393
+ ayr as fS,
258394
+ _Vr as fT,
258395
+ p_e as fU,
258396
+ xO as fV,
258397
+ Dpr as fW,
258398
+ SVr as fX,
258399
+ ADr as fY,
258400
+ ZYe as fZ,
258401
+ rVe as f_,
258390
258402
  nPr as fa,
258391
258403
  lQe as fb,
258392
258404
  oPr as fc,
@@ -258414,112 +258426,113 @@ export {
258414
258426
  UYr as fy,
258415
258427
  J9 as fz,
258416
258428
  SYr as g,
258417
- tG as g$,
258418
- Mut as g0,
258419
- Sw as g1,
258420
- Gne as g2,
258421
- Une as g3,
258422
- UD as g4,
258423
- zPe as g5,
258424
- Smt as g6,
258425
- $E as g7,
258426
- Lte as g8,
258427
- lte as g9,
258428
- NVr as gA,
258429
- PYe as gB,
258430
- RVr as gC,
258431
- CD as gD,
258432
- b2t as gE,
258433
- Cae as gF,
258434
- ff as gG,
258435
- n_n as gH,
258436
- fKr as gI,
258437
- ULn as gJ,
258438
- KLn as gK,
258439
- e_n as gL,
258440
- t_n as gM,
258441
- YLn as gN,
258442
- JLn as gO,
258443
- QLn as gP,
258444
- gO as gQ,
258445
- gKr as gR,
258446
- mKr as gS,
258447
- vKr as gT,
258448
- Ew as gU,
258449
- yae as gV,
258450
- bae as gW,
258451
- Mwe as gX,
258452
- XUe as gY,
258453
- Jvr as gZ,
258454
- Gvr as g_,
258455
- _ft as ga,
258456
- HDe as gb,
258457
- ane as gc,
258458
- one as gd,
258459
- sne as ge,
258460
- ly as gf,
258461
- fPe as gg,
258462
- mte as gh,
258463
- v7 as gi,
258464
- bpt as gj,
258465
- Hae as gk,
258466
- Go as gl,
258467
- _Sr as gm,
258468
- IMr as gn,
258469
- Tdt as go,
258470
- PKr as gp,
258471
- EKr as gq,
258472
- MKr as gr,
258473
- TKr as gs,
258474
- LKr as gt,
258475
- _Kr as gu,
258476
- SKr as gv,
258477
- Mx as gw,
258478
- _x as gx,
258479
- Dqe as gy,
258480
- yMn as gz,
258429
+ Jvr as g$,
258430
+ TO as g0,
258431
+ Omt as g1,
258432
+ Mut as g2,
258433
+ Sw as g3,
258434
+ Gne as g4,
258435
+ Une as g5,
258436
+ UD as g6,
258437
+ zPe as g7,
258438
+ Smt as g8,
258439
+ $E as g9,
258440
+ Dqe as gA,
258441
+ yMn as gB,
258442
+ NVr as gC,
258443
+ PYe as gD,
258444
+ RVr as gE,
258445
+ CD as gF,
258446
+ b2t as gG,
258447
+ Cae as gH,
258448
+ ff as gI,
258449
+ n_n as gJ,
258450
+ fKr as gK,
258451
+ ULn as gL,
258452
+ KLn as gM,
258453
+ e_n as gN,
258454
+ t_n as gO,
258455
+ YLn as gP,
258456
+ JLn as gQ,
258457
+ QLn as gR,
258458
+ gO as gS,
258459
+ gKr as gT,
258460
+ mKr as gU,
258461
+ vKr as gV,
258462
+ Ew as gW,
258463
+ yae as gX,
258464
+ bae as gY,
258465
+ Mwe as gZ,
258466
+ XUe as g_,
258467
+ Lte as ga,
258468
+ lte as gb,
258469
+ _ft as gc,
258470
+ HDe as gd,
258471
+ ane as ge,
258472
+ one as gf,
258473
+ sne as gg,
258474
+ ly as gh,
258475
+ fPe as gi,
258476
+ mte as gj,
258477
+ v7 as gk,
258478
+ bpt as gl,
258479
+ Hae as gm,
258480
+ Go as gn,
258481
+ _Sr as go,
258482
+ IMr as gp,
258483
+ Tdt as gq,
258484
+ PKr as gr,
258485
+ EKr as gs,
258486
+ MKr as gt,
258487
+ TKr as gu,
258488
+ LKr as gv,
258489
+ _Kr as gw,
258490
+ SKr as gx,
258491
+ Mx as gy,
258492
+ _x as gz,
258481
258493
  itt as h,
258482
- Kwe as h0,
258483
- Wvr as h1,
258484
- kKr as h2,
258485
- AKr as h3,
258486
- S2 as h4,
258487
- vo as h5,
258488
- Let as h6,
258489
- IKr as h7,
258490
- RO as h8,
258491
- ju as h9,
258492
- cCr as hA,
258493
- B3n as hB,
258494
- xKr as hC,
258495
- jYr as hD,
258496
- RYr as hE,
258497
- $Kr as ha,
258498
- Av as hb,
258499
- RKr as hc,
258500
- PVr as hd,
258501
- gLn as he,
258502
- jGe as hf,
258503
- ZGe as hg,
258504
- EGe as hh,
258505
- yLn as hi,
258506
- Aw as hj,
258507
- MJ as hk,
258508
- SO as hl,
258509
- Iqe as hm,
258510
- Pw as hn,
258511
- Upr as ho,
258512
- wKr as hp,
258513
- cae as hq,
258514
- EO as hr,
258515
- Rqe as hs,
258516
- Tk as ht,
258517
- ZKr as hu,
258518
- hYr as hv,
258519
- hYe as hw,
258520
- mYe as hx,
258521
- Pae as hy,
258522
- vYe as hz,
258494
+ Gvr as h0,
258495
+ tG as h1,
258496
+ Kwe as h2,
258497
+ Wvr as h3,
258498
+ kKr as h4,
258499
+ AKr as h5,
258500
+ S2 as h6,
258501
+ vo as h7,
258502
+ Let as h8,
258503
+ IKr as h9,
258504
+ vYe as hA,
258505
+ cCr as hB,
258506
+ B3n as hC,
258507
+ xKr as hD,
258508
+ jYr as hE,
258509
+ RYr as hF,
258510
+ ju as ha,
258511
+ $Kr as hb,
258512
+ Av as hc,
258513
+ RKr as hd,
258514
+ PVr as he,
258515
+ gLn as hf,
258516
+ jGe as hg,
258517
+ ZGe as hh,
258518
+ EGe as hi,
258519
+ yLn as hj,
258520
+ Aw as hk,
258521
+ MJ as hl,
258522
+ SO as hm,
258523
+ Iqe as hn,
258524
+ Pw as ho,
258525
+ Upr as hp,
258526
+ wKr as hq,
258527
+ cae as hr,
258528
+ EO as hs,
258529
+ Rqe as ht,
258530
+ Tk as hu,
258531
+ ZKr as hv,
258532
+ hYr as hw,
258533
+ hYe as hx,
258534
+ mYe as hy,
258535
+ Pae as hz,
258523
258536
  eHr as i,
258524
258537
  UOr as j,
258525
258538
  AF as k,