teodor-new-chat-ui 4.3.344 → 4.3.345

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -2370,22 +2370,22 @@ St.getAdapter = cu.getAdapter;
2370
2370
  St.HttpStatusCode = Ni;
2371
2371
  St.default = St;
2372
2372
  const {
2373
- Axios: vI,
2374
- AxiosError: wI,
2375
- CanceledError: bI,
2376
- isCancel: SI,
2377
- CancelToken: CI,
2378
- VERSION: TI,
2379
- all: II,
2380
- Cancel: kI,
2381
- isAxiosError: RI,
2382
- spread: EI,
2383
- toFormData: AI,
2384
- AxiosHeaders: NI,
2385
- HttpStatusCode: _I,
2386
- formToJSON: jI,
2387
- getAdapter: PI,
2388
- mergeConfig: MI
2373
+ Axios: xI,
2374
+ AxiosError: yI,
2375
+ CanceledError: vI,
2376
+ isCancel: wI,
2377
+ CancelToken: bI,
2378
+ VERSION: SI,
2379
+ all: CI,
2380
+ Cancel: TI,
2381
+ isAxiosError: II,
2382
+ spread: kI,
2383
+ toFormData: RI,
2384
+ AxiosHeaders: EI,
2385
+ HttpStatusCode: AI,
2386
+ formToJSON: NI,
2387
+ getAdapter: _I,
2388
+ mergeConfig: jI
2389
2389
  } = St, Sl = typeof window < "u" ? window.__API_BASE_URL__ : void 0, Cl = Sl ? Rn(Sl) : void 0;
2390
2390
  function Rn(e) {
2391
2391
  const n = (e != null && e.trim() ? e.trim() : "/api/chat").replace(/\/+$/, "");
@@ -3029,7 +3029,7 @@ function Ox(e) {
3029
3029
  function yu(e) {
3030
3030
  return Ox(e.content) || "";
3031
3031
  }
3032
- function OI(e) {
3032
+ function PI(e) {
3033
3033
  const t = /* @__PURE__ */ new Map();
3034
3034
  for (const n of e) {
3035
3035
  if (!n.id || n.role !== "user") continue;
@@ -3411,7 +3411,7 @@ function Ux(e = []) {
3411
3411
  function El(e, t) {
3412
3412
  var n, r, o, s, i;
3413
3413
  if (t.type === "message_start" && t.role === "assistant") {
3414
- const a = t.id, l = Xx(t.model);
3414
+ const a = t.id, l = Gx(t.model);
3415
3415
  if (e.messages.some((f) => f.id === a)) {
3416
3416
  const f = e.messagesStreamMeta ?? {}, p = {
3417
3417
  ...f,
@@ -3437,7 +3437,7 @@ function El(e, t) {
3437
3437
  const d = l[c], f = e.messagesStreamMeta ?? {}, p = f[a] ?? { lastSeq: null, lastText: wu(d.content) }, h = t.seq ?? null;
3438
3438
  if (h !== null && typeof h == "number" && typeof p.lastSeq == "number" && h <= p.lastSeq)
3439
3439
  return console.debug("[MessageReducer] skipping delta - seq <= lastSeq", { seq: h, lastSeq: p.lastSeq }), e;
3440
- const { newParts: m, newMeta: g, changed: y } = qx(d.content, t.delta, p, h);
3440
+ const { newParts: m, newMeta: g, changed: y } = Vx(d.content, t.delta, p, h);
3441
3441
  if (!y) return e;
3442
3442
  const x = { ...d, content: m }, w = Lr(l, c, x), S = { ...f, [a]: g };
3443
3443
  return { ...e, messages: w, messagesStreamMeta: S };
@@ -3533,24 +3533,29 @@ function El(e, t) {
3533
3533
  };
3534
3534
  }
3535
3535
  if (t.type === "progress") {
3536
- const a = Vx(t);
3536
+ const a = e.toolStreamingMessageId ?? Wx(e);
3537
3537
  if (!a)
3538
3538
  return e;
3539
- const l = e.toolStreamingMessageId ?? Wx(e);
3540
- if (!l)
3539
+ const l = e.messages.findIndex((g) => g.id === a && g.role === "tool");
3540
+ if (l === -1)
3541
3541
  return e;
3542
- const c = e.messages.findIndex((h) => h.id === l && h.role === "tool");
3543
- if (c === -1)
3544
- return e;
3545
- const d = e.messages[c], f = {
3546
- ...d,
3547
- content: Kx(d.content ?? [], a),
3548
- additionalKwargs: { ...d.additionalKwargs ?? {}, toolStreaming: !0 }
3549
- }, p = Lr(e.messages, c, f);
3550
- return { ...e, messages: p };
3542
+ const c = e.messages[l], d = {
3543
+ step: t.step ?? null,
3544
+ title: t.title ?? null,
3545
+ content: t.content ?? null,
3546
+ factsFound: typeof t.facts_found == "number" ? t.facts_found : null,
3547
+ isSufficient: typeof t.is_sufficient == "boolean" ? t.is_sufficient : null,
3548
+ timestamp: (/* @__PURE__ */ new Date()).toISOString()
3549
+ }, f = { ...c.additionalKwargs ?? {} }, p = Array.isArray(f.toolProgress) ? [...f.toolProgress] : [];
3550
+ p.push(d), f.toolProgress = p.slice(-6), f.toolStreaming = !0;
3551
+ const h = {
3552
+ ...c,
3553
+ additionalKwargs: f
3554
+ }, m = Lr(e.messages, l, h);
3555
+ return { ...e, messages: m };
3551
3556
  }
3552
3557
  if (t.type === "checkpoint") {
3553
- const a = t.checkpointNs ?? e.lastCheckpointNs ?? null, l = Yx(e.messages, t.checkpointId, a);
3558
+ const a = t.checkpointNs ?? e.lastCheckpointNs ?? null, l = qx(e.messages, t.checkpointId, a);
3554
3559
  return { ...e, lastCheckpointId: t.checkpointId, lastCheckpointNs: a, messages: l };
3555
3560
  }
3556
3561
  if (t.type === "branch") {
@@ -3707,41 +3712,10 @@ function Wx(e) {
3707
3712
  }
3708
3713
  return null;
3709
3714
  }
3710
- function Vx(e) {
3711
- const t = [];
3712
- e.step && t.push(String(e.step)), e.title && t.push(String(e.title));
3713
- const n = [];
3714
- if (e.content && n.push(String(e.content)), typeof e.facts_found == "number" && n.push(`Facts found: ${e.facts_found}`), typeof e.is_sufficient == "boolean" && n.push(`Research ${e.is_sufficient ? "sufficient" : "needs more data"}`), !t.length && !n.length)
3715
- return null;
3716
- const r = t.filter(Boolean).join(" ").trim(), o = r ? [r, ...n] : n;
3717
- if (!o.length)
3718
- return null;
3719
- const s = o.join(`
3720
- `);
3721
- return s.endsWith(`
3722
- `) ? `${s}
3723
- ` : `${s}
3724
-
3725
- `;
3726
- }
3727
- function Kx(e, t) {
3728
- if (!t)
3729
- return e;
3730
- const n = [...e], r = n.findIndex((a) => a.type === "text"), o = (a) => a ?? "";
3731
- if (r >= 0) {
3732
- const a = n[r];
3733
- return n[r] = {
3734
- ...a,
3735
- text: o(a.text) + t
3736
- }, n;
3737
- }
3738
- const s = n.findIndex((a) => a.type !== "tool_call"), i = { type: "text", text: t };
3739
- return s >= 0 ? n.splice(s, 0, i) : n.push(i), n;
3740
- }
3741
3715
  function wu(e) {
3742
3716
  return !e || !e.length ? "" : e.filter((t) => t.type === "text").map((t) => t.text ?? "").join("");
3743
3717
  }
3744
- function qx(e, t, n, r) {
3718
+ function Vx(e, t, n, r) {
3745
3719
  const o = { ...n };
3746
3720
  if (r !== null && typeof r == "number") {
3747
3721
  if (typeof o.lastSeq == "number" && r <= o.lastSeq)
@@ -3751,7 +3725,7 @@ function qx(e, t, n, r) {
3751
3725
  const s = t.filter((f) => f.type === "text").map((f) => f.text ?? "").join(""), i = t.filter((f) => f.type !== "text"), a = o.lastText ?? wu(e);
3752
3726
  let l = "", c = e.slice();
3753
3727
  if (s) {
3754
- const f = Gx(a, s);
3728
+ const f = Kx(a, s);
3755
3729
  if (f === "" ? l = "" : f === s ? l = s : l = f, l) {
3756
3730
  const p = c[c.length - 1];
3757
3731
  if ((p == null ? void 0 : p.type) === "text") {
@@ -3770,7 +3744,7 @@ function qx(e, t, n, r) {
3770
3744
  function jl(e) {
3771
3745
  return e.replace(/\s+/g, " ").trim();
3772
3746
  }
3773
- function Gx(e, t) {
3747
+ function Kx(e, t) {
3774
3748
  if (!t) return "";
3775
3749
  if (!e) return t;
3776
3750
  if (e === t) return "";
@@ -3786,7 +3760,7 @@ function Gx(e, t) {
3786
3760
  return t;
3787
3761
  return t;
3788
3762
  }
3789
- function Yx(e, t, n) {
3763
+ function qx(e, t, n) {
3790
3764
  for (let r = e.length - 1; r >= 0; r--)
3791
3765
  if (e[r].role === "assistant") {
3792
3766
  const s = { ...e[r], checkpointId: t, checkpointNs: n ?? void 0 };
@@ -3794,13 +3768,13 @@ function Yx(e, t, n) {
3794
3768
  }
3795
3769
  return e;
3796
3770
  }
3797
- function Xx(e) {
3771
+ function Gx(e) {
3798
3772
  if (!e) return null;
3799
3773
  const t = e.split("/");
3800
3774
  return t[t.length - 1] || null;
3801
3775
  }
3802
3776
  const Pl = 200;
3803
- function Jx({
3777
+ function Yx({
3804
3778
  baseUrl: e,
3805
3779
  onThreadInfo: t,
3806
3780
  onMessageEvent: n,
@@ -4007,7 +3981,7 @@ function Jx({
4007
3981
  }
4008
3982
  const bu = so(null), Su = so(null), Cu = so(null);
4009
3983
  so(!1);
4010
- function Zx({
3984
+ function Xx({
4011
3985
  children: e,
4012
3986
  initialThreadId: t = null,
4013
3987
  initialCheckpointId: n = null,
@@ -4069,7 +4043,7 @@ function Zx({
4069
4043
  [A]
4070
4044
  ), Je = ve((H) => {
4071
4045
  console.log("[ChatSessionProvider] 🎯 Received thread_info:", H.threadId), xe(H), z.current !== H.threadId && ((H.created ?? !z.current) && (L.current = H.threadId), K.current = H.threadId, console.log("[ChatSessionProvider] thread_info: marking to skip auto-load for new thread"), g(H.threadId));
4072
- }, [xe]), { startStream: ot, stop: Ze, isStreaming: Ge, error: it, setAuthToken: Qe } = Jx({
4046
+ }, [xe]), { startStream: ot, stop: Ze, isStreaming: Ge, error: it, setAuthToken: Qe } = Yx({
4073
4047
  baseUrl: f,
4074
4048
  onThreadInfo: Je,
4075
4049
  onMessageEvent: M,
@@ -4432,7 +4406,7 @@ function ca() {
4432
4406
  if (!e) throw new Error("useThreadState must be used within ChatSessionProvider");
4433
4407
  return e;
4434
4408
  }
4435
- function Qx() {
4409
+ function Jx() {
4436
4410
  const e = fs(Cu);
4437
4411
  if (!e) throw new Error("useStream must be used within ChatSessionProvider");
4438
4412
  return e;
@@ -4450,7 +4424,7 @@ function oi({
4450
4424
  onThreadChange: c
4451
4425
  }) {
4452
4426
  return /* @__PURE__ */ u.jsx(ux, { apiConfig: t, children: /* @__PURE__ */ u.jsx(
4453
- Zx,
4427
+ Xx,
4454
4428
  {
4455
4429
  initialThreadId: n,
4456
4430
  initialCheckpointId: r,
@@ -4467,7 +4441,7 @@ function oi({
4467
4441
  function te(...e) {
4468
4442
  return km(Im(e));
4469
4443
  }
4470
- const ey = ms(
4444
+ const Zx = ms(
4471
4445
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
4472
4446
  {
4473
4447
  variants: {
@@ -4497,7 +4471,7 @@ const ey = ms(
4497
4471
  return /* @__PURE__ */ u.jsx(
4498
4472
  i,
4499
4473
  {
4500
- className: te(ey({ variant: t, size: n, className: e })),
4474
+ className: te(Zx({ variant: t, size: n, className: e })),
4501
4475
  ref: s,
4502
4476
  ...o
4503
4477
  }
@@ -4519,7 +4493,7 @@ const Tu = v.forwardRef(
4519
4493
  )
4520
4494
  );
4521
4495
  Tu.displayName = "Textarea";
4522
- function ty({
4496
+ function Qx({
4523
4497
  initialValue: e = "",
4524
4498
  editingMessageId: t = null,
4525
4499
  placeholder: n = "Type your message...",
@@ -4631,7 +4605,7 @@ function ty({
4631
4605
  ) })
4632
4606
  ] }) });
4633
4607
  }
4634
- const ny = Q.memo(ty);
4608
+ const ey = Q.memo(Qx);
4635
4609
  function de(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
4636
4610
  return function(o) {
4637
4611
  if (e == null || e(o), n === !1 || !o.defaultPrevented)
@@ -4662,7 +4636,7 @@ function ua(...e) {
4662
4636
  function We(...e) {
4663
4637
  return v.useCallback(ua(...e), e);
4664
4638
  }
4665
- function ry(e, t) {
4639
+ function ty(e, t) {
4666
4640
  const n = v.createContext(t), r = (s) => {
4667
4641
  const { children: i, ...a } = s, l = v.useMemo(() => a, Object.values(a));
4668
4642
  return /* @__PURE__ */ u.jsx(n.Provider, { value: l, children: i });
@@ -4706,9 +4680,9 @@ function Nn(e, t = []) {
4706
4680
  );
4707
4681
  };
4708
4682
  };
4709
- return o.scopeName = e, [r, oy(o, ...t)];
4683
+ return o.scopeName = e, [r, ny(o, ...t)];
4710
4684
  }
4711
- function oy(...e) {
4685
+ function ny(...e) {
4712
4686
  const t = e[0];
4713
4687
  if (e.length === 1) return t;
4714
4688
  const n = () => {
@@ -4727,7 +4701,7 @@ function oy(...e) {
4727
4701
  return n.scopeName = t.scopeName, n;
4728
4702
  }
4729
4703
  var Et = globalThis != null && globalThis.document ? v.useLayoutEffect : () => {
4730
- }, sy = v[" useInsertionEffect ".trim().toString()] || Et;
4704
+ }, ry = v[" useInsertionEffect ".trim().toString()] || Et;
4731
4705
  function Sr({
4732
4706
  prop: e,
4733
4707
  defaultProp: t,
@@ -4735,7 +4709,7 @@ function Sr({
4735
4709
  },
4736
4710
  caller: r
4737
4711
  }) {
4738
- const [o, s, i] = iy({
4712
+ const [o, s, i] = oy({
4739
4713
  defaultProp: t,
4740
4714
  onChange: n
4741
4715
  }), a = e !== void 0, l = a ? e : o;
@@ -4752,7 +4726,7 @@ function Sr({
4752
4726
  (d) => {
4753
4727
  var f;
4754
4728
  if (a) {
4755
- const p = ay(d) ? d(e) : d;
4729
+ const p = sy(d) ? d(e) : d;
4756
4730
  p !== e && ((f = i.current) == null || f.call(i, p));
4757
4731
  } else
4758
4732
  s(d);
@@ -4761,22 +4735,22 @@ function Sr({
4761
4735
  );
4762
4736
  return [l, c];
4763
4737
  }
4764
- function iy({
4738
+ function oy({
4765
4739
  defaultProp: e,
4766
4740
  onChange: t
4767
4741
  }) {
4768
4742
  const [n, r] = v.useState(e), o = v.useRef(n), s = v.useRef(t);
4769
- return sy(() => {
4743
+ return ry(() => {
4770
4744
  s.current = t;
4771
4745
  }, [t]), v.useEffect(() => {
4772
4746
  var i;
4773
4747
  o.current !== n && ((i = s.current) == null || i.call(s, n), o.current = n);
4774
4748
  }, [n, o]), [n, r, s];
4775
4749
  }
4776
- function ay(e) {
4750
+ function sy(e) {
4777
4751
  return typeof e == "function";
4778
4752
  }
4779
- var ly = [
4753
+ var iy = [
4780
4754
  "a",
4781
4755
  "button",
4782
4756
  "div",
@@ -4794,7 +4768,7 @@ var ly = [
4794
4768
  "span",
4795
4769
  "svg",
4796
4770
  "ul"
4797
- ], _e = ly.reduce((e, t) => {
4771
+ ], _e = iy.reduce((e, t) => {
4798
4772
  const n = wr(`Primitive.${t}`), r = v.forwardRef((o, s) => {
4799
4773
  const { asChild: i, ...a } = o, l = i ? n : t;
4800
4774
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u.jsx(l, { ...a, ref: s });
@@ -4844,9 +4818,9 @@ function da(e) {
4844
4818
  r
4845
4819
  ];
4846
4820
  }
4847
- var cy = v.createContext(void 0);
4821
+ var ay = v.createContext(void 0);
4848
4822
  function Ss(e) {
4849
- const t = v.useContext(cy);
4823
+ const t = v.useContext(ay);
4850
4824
  return e || t || "ltr";
4851
4825
  }
4852
4826
  function Rt(e) {
@@ -4858,7 +4832,7 @@ function Rt(e) {
4858
4832
  return (r = t.current) == null ? void 0 : r.call(t, ...n);
4859
4833
  }, []);
4860
4834
  }
4861
- function uy(e, t = globalThis == null ? void 0 : globalThis.document) {
4835
+ function ly(e, t = globalThis == null ? void 0 : globalThis.document) {
4862
4836
  const n = Rt(e);
4863
4837
  v.useEffect(() => {
4864
4838
  const r = (o) => {
@@ -4867,7 +4841,7 @@ function uy(e, t = globalThis == null ? void 0 : globalThis.document) {
4867
4841
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
4868
4842
  }, [n, t]);
4869
4843
  }
4870
- var dy = "DismissableLayer", Pi = "dismissableLayer.update", fy = "dismissableLayer.pointerDownOutside", py = "dismissableLayer.focusOutside", Ol, ku = v.createContext({
4844
+ var cy = "DismissableLayer", Pi = "dismissableLayer.update", uy = "dismissableLayer.pointerDownOutside", dy = "dismissableLayer.focusOutside", Ol, ku = v.createContext({
4871
4845
  layers: /* @__PURE__ */ new Set(),
4872
4846
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
4873
4847
  branches: /* @__PURE__ */ new Set()
@@ -4881,14 +4855,14 @@ var dy = "DismissableLayer", Pi = "dismissableLayer.update", fy = "dismissableLa
4881
4855
  onInteractOutside: i,
4882
4856
  onDismiss: a,
4883
4857
  ...l
4884
- } = e, c = v.useContext(ku), [d, f] = v.useState(null), p = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = v.useState({}), m = We(t, (I) => f(I)), g = Array.from(c.layers), [y] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), x = g.indexOf(y), w = d ? g.indexOf(d) : -1, S = c.layersWithOutsidePointerEventsDisabled.size > 0, T = w >= x, b = gy((I) => {
4858
+ } = e, c = v.useContext(ku), [d, f] = v.useState(null), p = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = v.useState({}), m = We(t, (I) => f(I)), g = Array.from(c.layers), [y] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), x = g.indexOf(y), w = d ? g.indexOf(d) : -1, S = c.layersWithOutsidePointerEventsDisabled.size > 0, T = w >= x, b = hy((I) => {
4885
4859
  const R = I.target, A = [...c.branches].some((D) => D.contains(R));
4886
4860
  !T || A || (o == null || o(I), i == null || i(I), I.defaultPrevented || a == null || a());
4887
- }, p), C = xy((I) => {
4861
+ }, p), C = my((I) => {
4888
4862
  const R = I.target;
4889
4863
  [...c.branches].some((D) => D.contains(R)) || (s == null || s(I), i == null || i(I), I.defaultPrevented || a == null || a());
4890
4864
  }, p);
4891
- return uy((I) => {
4865
+ return ly((I) => {
4892
4866
  w === c.layers.size - 1 && (r == null || r(I), !I.defaultPrevented && a && (I.preventDefault(), a()));
4893
4867
  }, p), v.useEffect(() => {
4894
4868
  if (d)
@@ -4919,8 +4893,8 @@ var dy = "DismissableLayer", Pi = "dismissableLayer.update", fy = "dismissableLa
4919
4893
  );
4920
4894
  }
4921
4895
  );
4922
- Cs.displayName = dy;
4923
- var hy = "DismissableLayerBranch", my = v.forwardRef((e, t) => {
4896
+ Cs.displayName = cy;
4897
+ var fy = "DismissableLayerBranch", py = v.forwardRef((e, t) => {
4924
4898
  const n = v.useContext(ku), r = v.useRef(null), o = We(t, r);
4925
4899
  return v.useEffect(() => {
4926
4900
  const s = r.current;
@@ -4930,8 +4904,8 @@ var hy = "DismissableLayerBranch", my = v.forwardRef((e, t) => {
4930
4904
  };
4931
4905
  }, [n.branches]), /* @__PURE__ */ u.jsx(_e.div, { ...e, ref: o });
4932
4906
  });
4933
- my.displayName = hy;
4934
- function gy(e, t = globalThis == null ? void 0 : globalThis.document) {
4907
+ py.displayName = fy;
4908
+ function hy(e, t = globalThis == null ? void 0 : globalThis.document) {
4935
4909
  const n = Rt(e), r = v.useRef(!1), o = v.useRef(() => {
4936
4910
  });
4937
4911
  return v.useEffect(() => {
@@ -4939,7 +4913,7 @@ function gy(e, t = globalThis == null ? void 0 : globalThis.document) {
4939
4913
  if (a.target && !r.current) {
4940
4914
  let l = function() {
4941
4915
  Ru(
4942
- fy,
4916
+ uy,
4943
4917
  n,
4944
4918
  c,
4945
4919
  { discrete: !0 }
@@ -4961,11 +4935,11 @@ function gy(e, t = globalThis == null ? void 0 : globalThis.document) {
4961
4935
  onPointerDownCapture: () => r.current = !0
4962
4936
  };
4963
4937
  }
4964
- function xy(e, t = globalThis == null ? void 0 : globalThis.document) {
4938
+ function my(e, t = globalThis == null ? void 0 : globalThis.document) {
4965
4939
  const n = Rt(e), r = v.useRef(!1);
4966
4940
  return v.useEffect(() => {
4967
4941
  const o = (s) => {
4968
- s.target && !r.current && Ru(py, n, { originalEvent: s }, {
4942
+ s.target && !r.current && Ru(dy, n, { originalEvent: s }, {
4969
4943
  discrete: !1
4970
4944
  });
4971
4945
  };
@@ -4996,7 +4970,7 @@ function Ll() {
4996
4970
  const e = document.createElement("span");
4997
4971
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
4998
4972
  }
4999
- var ii = "focusScope.autoFocusOnMount", ai = "focusScope.autoFocusOnUnmount", $l = { bubbles: !1, cancelable: !0 }, yy = "FocusScope", Ts = v.forwardRef((e, t) => {
4973
+ var ii = "focusScope.autoFocusOnMount", ai = "focusScope.autoFocusOnUnmount", $l = { bubbles: !1, cancelable: !0 }, gy = "FocusScope", Ts = v.forwardRef((e, t) => {
5000
4974
  const {
5001
4975
  loop: n = !1,
5002
4976
  trapped: r = !1,
@@ -5039,7 +5013,7 @@ var ii = "focusScope.autoFocusOnMount", ai = "focusScope.autoFocusOnUnmount", $l
5039
5013
  const g = document.activeElement;
5040
5014
  if (!a.contains(g)) {
5041
5015
  const x = new CustomEvent(ii, $l);
5042
- a.addEventListener(ii, c), a.dispatchEvent(x), x.defaultPrevented || (vy(Ty(Eu(a)), { select: !0 }), document.activeElement === g && Pn(a));
5016
+ a.addEventListener(ii, c), a.dispatchEvent(x), x.defaultPrevented || (xy(Sy(Eu(a)), { select: !0 }), document.activeElement === g && Pn(a));
5043
5017
  }
5044
5018
  return () => {
5045
5019
  a.removeEventListener(ii, c), setTimeout(() => {
@@ -5054,7 +5028,7 @@ var ii = "focusScope.autoFocusOnMount", ai = "focusScope.autoFocusOnUnmount", $l
5054
5028
  if (!n && !r || h.paused) return;
5055
5029
  const y = g.key === "Tab" && !g.altKey && !g.ctrlKey && !g.metaKey, x = document.activeElement;
5056
5030
  if (y && x) {
5057
- const w = g.currentTarget, [S, T] = wy(w);
5031
+ const w = g.currentTarget, [S, T] = yy(w);
5058
5032
  S && T ? !g.shiftKey && x === T ? (g.preventDefault(), n && Pn(S, { select: !0 })) : g.shiftKey && x === S && (g.preventDefault(), n && Pn(T, { select: !0 })) : x === w && g.preventDefault();
5059
5033
  }
5060
5034
  },
@@ -5062,13 +5036,13 @@ var ii = "focusScope.autoFocusOnMount", ai = "focusScope.autoFocusOnUnmount", $l
5062
5036
  );
5063
5037
  return /* @__PURE__ */ u.jsx(_e.div, { tabIndex: -1, ...i, ref: p, onKeyDown: m });
5064
5038
  });
5065
- Ts.displayName = yy;
5066
- function vy(e, { select: t = !1 } = {}) {
5039
+ Ts.displayName = gy;
5040
+ function xy(e, { select: t = !1 } = {}) {
5067
5041
  const n = document.activeElement;
5068
5042
  for (const r of e)
5069
5043
  if (Pn(r, { select: t }), document.activeElement !== n) return;
5070
5044
  }
5071
- function wy(e) {
5045
+ function yy(e) {
5072
5046
  const t = Eu(e), n = Fl(t, e), r = Fl(t.reverse(), e);
5073
5047
  return [n, r];
5074
5048
  }
@@ -5084,9 +5058,9 @@ function Eu(e) {
5084
5058
  }
5085
5059
  function Fl(e, t) {
5086
5060
  for (const n of e)
5087
- if (!by(n, { upTo: t })) return n;
5061
+ if (!vy(n, { upTo: t })) return n;
5088
5062
  }
5089
- function by(e, { upTo: t }) {
5063
+ function vy(e, { upTo: t }) {
5090
5064
  if (getComputedStyle(e).visibility === "hidden") return !0;
5091
5065
  for (; e; ) {
5092
5066
  if (t !== void 0 && e === t) return !1;
@@ -5095,17 +5069,17 @@ function by(e, { upTo: t }) {
5095
5069
  }
5096
5070
  return !1;
5097
5071
  }
5098
- function Sy(e) {
5072
+ function wy(e) {
5099
5073
  return e instanceof HTMLInputElement && "select" in e;
5100
5074
  }
5101
5075
  function Pn(e, { select: t = !1 } = {}) {
5102
5076
  if (e && e.focus) {
5103
5077
  const n = document.activeElement;
5104
- e.focus({ preventScroll: !0 }), e !== n && Sy(e) && t && e.select();
5078
+ e.focus({ preventScroll: !0 }), e !== n && wy(e) && t && e.select();
5105
5079
  }
5106
5080
  }
5107
- var Bl = Cy();
5108
- function Cy() {
5081
+ var Bl = by();
5082
+ function by() {
5109
5083
  let e = [];
5110
5084
  return {
5111
5085
  add(t) {
@@ -5122,26 +5096,26 @@ function zl(e, t) {
5122
5096
  const n = [...e], r = n.indexOf(t);
5123
5097
  return r !== -1 && n.splice(r, 1), n;
5124
5098
  }
5125
- function Ty(e) {
5099
+ function Sy(e) {
5126
5100
  return e.filter((t) => t.tagName !== "A");
5127
5101
  }
5128
- var Iy = v[" useId ".trim().toString()] || (() => {
5129
- }), ky = 0;
5102
+ var Cy = v[" useId ".trim().toString()] || (() => {
5103
+ }), Ty = 0;
5130
5104
  function kn(e) {
5131
- const [t, n] = v.useState(Iy());
5105
+ const [t, n] = v.useState(Cy());
5132
5106
  return Et(() => {
5133
- n((r) => r ?? String(ky++));
5107
+ n((r) => r ?? String(Ty++));
5134
5108
  }, [e]), t ? `radix-${t}` : "";
5135
5109
  }
5136
- const Ry = ["top", "right", "bottom", "left"], On = Math.min, Vt = Math.max, qo = Math.round, bo = Math.floor, vn = (e) => ({
5110
+ const Iy = ["top", "right", "bottom", "left"], On = Math.min, Vt = Math.max, qo = Math.round, bo = Math.floor, vn = (e) => ({
5137
5111
  x: e,
5138
5112
  y: e
5139
- }), Ey = {
5113
+ }), ky = {
5140
5114
  left: "right",
5141
5115
  right: "left",
5142
5116
  bottom: "top",
5143
5117
  top: "bottom"
5144
- }, Ay = {
5118
+ }, Ry = {
5145
5119
  start: "end",
5146
5120
  end: "start"
5147
5121
  };
@@ -5163,48 +5137,48 @@ function pa(e) {
5163
5137
  function ha(e) {
5164
5138
  return e === "y" ? "height" : "width";
5165
5139
  }
5166
- const Ny = /* @__PURE__ */ new Set(["top", "bottom"]);
5140
+ const Ey = /* @__PURE__ */ new Set(["top", "bottom"]);
5167
5141
  function xn(e) {
5168
- return Ny.has(An(e)) ? "y" : "x";
5142
+ return Ey.has(An(e)) ? "y" : "x";
5169
5143
  }
5170
5144
  function ma(e) {
5171
5145
  return pa(xn(e));
5172
5146
  }
5173
- function _y(e, t, n) {
5147
+ function Ay(e, t, n) {
5174
5148
  n === void 0 && (n = !1);
5175
5149
  const r = Rr(e), o = ma(e), s = ha(o);
5176
5150
  let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
5177
5151
  return t.reference[s] > t.floating[s] && (i = Go(i)), [i, Go(i)];
5178
5152
  }
5179
- function jy(e) {
5153
+ function Ny(e) {
5180
5154
  const t = Go(e);
5181
5155
  return [Oi(e), t, Oi(t)];
5182
5156
  }
5183
5157
  function Oi(e) {
5184
- return e.replace(/start|end/g, (t) => Ay[t]);
5158
+ return e.replace(/start|end/g, (t) => Ry[t]);
5185
5159
  }
5186
- const Hl = ["left", "right"], Ul = ["right", "left"], Py = ["top", "bottom"], My = ["bottom", "top"];
5187
- function Oy(e, t, n) {
5160
+ const Hl = ["left", "right"], Ul = ["right", "left"], _y = ["top", "bottom"], jy = ["bottom", "top"];
5161
+ function Py(e, t, n) {
5188
5162
  switch (e) {
5189
5163
  case "top":
5190
5164
  case "bottom":
5191
5165
  return n ? t ? Ul : Hl : t ? Hl : Ul;
5192
5166
  case "left":
5193
5167
  case "right":
5194
- return t ? Py : My;
5168
+ return t ? _y : jy;
5195
5169
  default:
5196
5170
  return [];
5197
5171
  }
5198
5172
  }
5199
- function Dy(e, t, n, r) {
5173
+ function My(e, t, n, r) {
5200
5174
  const o = Rr(e);
5201
- let s = Oy(An(e), n === "start", r);
5175
+ let s = Py(An(e), n === "start", r);
5202
5176
  return o && (s = s.map((i) => i + "-" + o), t && (s = s.concat(s.map(Oi)))), s;
5203
5177
  }
5204
5178
  function Go(e) {
5205
- return e.replace(/left|right|bottom|top/g, (t) => Ey[t]);
5179
+ return e.replace(/left|right|bottom|top/g, (t) => ky[t]);
5206
5180
  }
5207
- function Ly(e) {
5181
+ function Oy(e) {
5208
5182
  return {
5209
5183
  top: 0,
5210
5184
  right: 0,
@@ -5214,7 +5188,7 @@ function Ly(e) {
5214
5188
  };
5215
5189
  }
5216
5190
  function Au(e) {
5217
- return typeof e != "number" ? Ly(e) : {
5191
+ return typeof e != "number" ? Oy(e) : {
5218
5192
  top: e,
5219
5193
  right: e,
5220
5194
  bottom: e,
@@ -5287,7 +5261,7 @@ function Wl(e, t, n) {
5287
5261
  }
5288
5262
  return h;
5289
5263
  }
5290
- const $y = async (e, t, n) => {
5264
+ const Dy = async (e, t, n) => {
5291
5265
  const {
5292
5266
  placement: r = "bottom",
5293
5267
  strategy: o = "absolute",
@@ -5393,7 +5367,7 @@ async function Gr(e, t) {
5393
5367
  right: (b.right - x.right + m.right) / T.x
5394
5368
  };
5395
5369
  }
5396
- const Fy = (e) => ({
5370
+ const Ly = (e) => ({
5397
5371
  name: "arrow",
5398
5372
  options: e,
5399
5373
  async fn(t) {
@@ -5430,7 +5404,7 @@ const Fy = (e) => ({
5430
5404
  reset: N
5431
5405
  };
5432
5406
  }
5433
- }), By = function(e) {
5407
+ }), $y = function(e) {
5434
5408
  return e === void 0 && (e = {}), {
5435
5409
  name: "flip",
5436
5410
  options: e,
@@ -5454,12 +5428,12 @@ const Fy = (e) => ({
5454
5428
  } = En(e, t);
5455
5429
  if ((n = s.arrow) != null && n.alignmentOffset)
5456
5430
  return {};
5457
- const x = An(o), w = xn(a), S = An(a) === a, T = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), b = p || (S || !g ? [Go(a)] : jy(a)), C = m !== "none";
5458
- !p && C && b.push(...Dy(a, g, m, T));
5431
+ const x = An(o), w = xn(a), S = An(a) === a, T = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), b = p || (S || !g ? [Go(a)] : Ny(a)), C = m !== "none";
5432
+ !p && C && b.push(...My(a, g, m, T));
5459
5433
  const I = [a, ...b], R = await Gr(t, y), A = [];
5460
5434
  let D = ((r = s.flip) == null ? void 0 : r.overflows) || [];
5461
5435
  if (d && A.push(R[x]), f) {
5462
- const E = _y(o, i, T);
5436
+ const E = Ay(o, i, T);
5463
5437
  A.push(R[E[0]], R[E[1]]);
5464
5438
  }
5465
5439
  if (D = [...D, {
@@ -5521,9 +5495,9 @@ function Vl(e, t) {
5521
5495
  };
5522
5496
  }
5523
5497
  function Kl(e) {
5524
- return Ry.some((t) => e[t] >= 0);
5498
+ return Iy.some((t) => e[t] >= 0);
5525
5499
  }
5526
- const zy = function(e) {
5500
+ const Fy = function(e) {
5527
5501
  return e === void 0 && (e = {}), {
5528
5502
  name: "hide",
5529
5503
  options: e,
@@ -5565,7 +5539,7 @@ const zy = function(e) {
5565
5539
  }
5566
5540
  };
5567
5541
  }, Nu = /* @__PURE__ */ new Set(["left", "top"]);
5568
- async function Hy(e, t) {
5542
+ async function By(e, t) {
5569
5543
  const {
5570
5544
  placement: n,
5571
5545
  platform: r,
@@ -5592,7 +5566,7 @@ async function Hy(e, t) {
5592
5566
  y: h * d
5593
5567
  };
5594
5568
  }
5595
- const Uy = function(e) {
5569
+ const zy = function(e) {
5596
5570
  return e === void 0 && (e = 0), {
5597
5571
  name: "offset",
5598
5572
  options: e,
@@ -5603,7 +5577,7 @@ const Uy = function(e) {
5603
5577
  y: s,
5604
5578
  placement: i,
5605
5579
  middlewareData: a
5606
- } = t, l = await Hy(t, e);
5580
+ } = t, l = await By(t, e);
5607
5581
  return i === ((n = a.offset) == null ? void 0 : n.placement) && (r = a.arrow) != null && r.alignmentOffset ? {} : {
5608
5582
  x: o + l.x,
5609
5583
  y: s + l.y,
@@ -5614,7 +5588,7 @@ const Uy = function(e) {
5614
5588
  };
5615
5589
  }
5616
5590
  };
5617
- }, Wy = function(e) {
5591
+ }, Hy = function(e) {
5618
5592
  return e === void 0 && (e = {}), {
5619
5593
  name: "shift",
5620
5594
  options: e,
@@ -5670,7 +5644,7 @@ const Uy = function(e) {
5670
5644
  };
5671
5645
  }
5672
5646
  };
5673
- }, Vy = function(e) {
5647
+ }, Uy = function(e) {
5674
5648
  return e === void 0 && (e = {}), {
5675
5649
  options: e,
5676
5650
  fn(t) {
@@ -5712,7 +5686,7 @@ const Uy = function(e) {
5712
5686
  };
5713
5687
  }
5714
5688
  };
5715
- }, Ky = function(e) {
5689
+ }, Wy = function(e) {
5716
5690
  return e === void 0 && (e = {}), {
5717
5691
  name: "size",
5718
5692
  options: e,
@@ -5779,7 +5753,7 @@ function wn(e) {
5779
5753
  function ql(e) {
5780
5754
  return !Is() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof qt(e).ShadowRoot;
5781
5755
  }
5782
- const qy = /* @__PURE__ */ new Set(["inline", "contents"]);
5756
+ const Vy = /* @__PURE__ */ new Set(["inline", "contents"]);
5783
5757
  function uo(e) {
5784
5758
  const {
5785
5759
  overflow: t,
@@ -5787,15 +5761,15 @@ function uo(e) {
5787
5761
  overflowY: r,
5788
5762
  display: o
5789
5763
  } = un(e);
5790
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !qy.has(o);
5764
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !Vy.has(o);
5791
5765
  }
5792
- const Gy = /* @__PURE__ */ new Set(["table", "td", "th"]);
5793
- function Yy(e) {
5794
- return Gy.has(Er(e));
5766
+ const Ky = /* @__PURE__ */ new Set(["table", "td", "th"]);
5767
+ function qy(e) {
5768
+ return Ky.has(Er(e));
5795
5769
  }
5796
- const Xy = [":popover-open", ":modal"];
5770
+ const Gy = [":popover-open", ":modal"];
5797
5771
  function ks(e) {
5798
- return Xy.some((t) => {
5772
+ return Gy.some((t) => {
5799
5773
  try {
5800
5774
  return e.matches(t);
5801
5775
  } catch {
@@ -5803,12 +5777,12 @@ function ks(e) {
5803
5777
  }
5804
5778
  });
5805
5779
  }
5806
- const Jy = ["transform", "translate", "scale", "rotate", "perspective"], Zy = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Qy = ["paint", "layout", "strict", "content"];
5780
+ const Yy = ["transform", "translate", "scale", "rotate", "perspective"], Xy = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Jy = ["paint", "layout", "strict", "content"];
5807
5781
  function ga(e) {
5808
5782
  const t = xa(), n = cn(e) ? un(e) : e;
5809
- return Jy.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || Zy.some((r) => (n.willChange || "").includes(r)) || Qy.some((r) => (n.contain || "").includes(r));
5783
+ return Yy.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || Xy.some((r) => (n.willChange || "").includes(r)) || Jy.some((r) => (n.contain || "").includes(r));
5810
5784
  }
5811
- function ev(e) {
5785
+ function Zy(e) {
5812
5786
  let t = Dn(e);
5813
5787
  for (; wn(t) && !Cr(t); ) {
5814
5788
  if (ga(t))
@@ -5822,9 +5796,9 @@ function ev(e) {
5822
5796
  function xa() {
5823
5797
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
5824
5798
  }
5825
- const tv = /* @__PURE__ */ new Set(["html", "body", "#document"]);
5799
+ const Qy = /* @__PURE__ */ new Set(["html", "body", "#document"]);
5826
5800
  function Cr(e) {
5827
- return tv.has(Er(e));
5801
+ return Qy.has(Er(e));
5828
5802
  }
5829
5803
  function un(e) {
5830
5804
  return qt(e).getComputedStyle(e);
@@ -5895,15 +5869,15 @@ function gr(e) {
5895
5869
  y: a
5896
5870
  };
5897
5871
  }
5898
- const nv = /* @__PURE__ */ vn(0);
5872
+ const ev = /* @__PURE__ */ vn(0);
5899
5873
  function Mu(e) {
5900
5874
  const t = qt(e);
5901
- return !xa() || !t.visualViewport ? nv : {
5875
+ return !xa() || !t.visualViewport ? ev : {
5902
5876
  x: t.visualViewport.offsetLeft,
5903
5877
  y: t.visualViewport.offsetTop
5904
5878
  };
5905
5879
  }
5906
- function rv(e, t, n) {
5880
+ function tv(e, t, n) {
5907
5881
  return t === void 0 && (t = !1), !n || t && n !== qt(e) ? !1 : t;
5908
5882
  }
5909
5883
  function er(e, t, n, r) {
@@ -5911,7 +5885,7 @@ function er(e, t, n, r) {
5911
5885
  const o = e.getBoundingClientRect(), s = ya(e);
5912
5886
  let i = vn(1);
5913
5887
  t && (r ? cn(r) && (i = gr(r)) : i = gr(e));
5914
- const a = rv(s, n, r) ? Mu(s) : vn(0);
5888
+ const a = tv(s, n, r) ? Mu(s) : vn(0);
5915
5889
  let l = (o.left + a.x) / i.x, c = (o.top + a.y) / i.y, d = o.width / i.x, f = o.height / i.y;
5916
5890
  if (s) {
5917
5891
  const p = qt(s), h = r && cn(r) ? qt(r) : r;
@@ -5939,7 +5913,7 @@ function Ou(e, t) {
5939
5913
  y: o
5940
5914
  };
5941
5915
  }
5942
- function ov(e) {
5916
+ function nv(e) {
5943
5917
  let {
5944
5918
  elements: t,
5945
5919
  rect: n,
@@ -5966,10 +5940,10 @@ function ov(e) {
5966
5940
  y: n.y * c.y - l.scrollTop * c.y + d.y + p.y
5967
5941
  };
5968
5942
  }
5969
- function sv(e) {
5943
+ function rv(e) {
5970
5944
  return Array.from(e.getClientRects());
5971
5945
  }
5972
- function iv(e) {
5946
+ function ov(e) {
5973
5947
  const t = bn(e), n = Rs(e), r = e.ownerDocument.body, o = Vt(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = Vt(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
5974
5948
  let i = -n.scrollLeft + Es(e);
5975
5949
  const a = -n.scrollTop;
@@ -5981,7 +5955,7 @@ function iv(e) {
5981
5955
  };
5982
5956
  }
5983
5957
  const Gl = 25;
5984
- function av(e, t) {
5958
+ function sv(e, t) {
5985
5959
  const n = qt(e), r = bn(e), o = n.visualViewport;
5986
5960
  let s = r.clientWidth, i = r.clientHeight, a = 0, l = 0;
5987
5961
  if (o) {
@@ -6001,8 +5975,8 @@ function av(e, t) {
6001
5975
  y: l
6002
5976
  };
6003
5977
  }
6004
- const lv = /* @__PURE__ */ new Set(["absolute", "fixed"]);
6005
- function cv(e, t) {
5978
+ const iv = /* @__PURE__ */ new Set(["absolute", "fixed"]);
5979
+ function av(e, t) {
6006
5980
  const n = er(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = wn(e) ? gr(e) : vn(1), i = e.clientWidth * s.x, a = e.clientHeight * s.y, l = o * s.x, c = r * s.y;
6007
5981
  return {
6008
5982
  width: i,
@@ -6014,11 +5988,11 @@ function cv(e, t) {
6014
5988
  function Yl(e, t, n) {
6015
5989
  let r;
6016
5990
  if (t === "viewport")
6017
- r = av(e, n);
5991
+ r = sv(e, n);
6018
5992
  else if (t === "document")
6019
- r = iv(bn(e));
5993
+ r = ov(bn(e));
6020
5994
  else if (cn(t))
6021
- r = cv(t, n);
5995
+ r = av(t, n);
6022
5996
  else {
6023
5997
  const o = Mu(e);
6024
5998
  r = {
@@ -6034,7 +6008,7 @@ function Du(e, t) {
6034
6008
  const n = Dn(e);
6035
6009
  return n === t || !cn(n) || Cr(n) ? !1 : un(n).position === "fixed" || Du(n, t);
6036
6010
  }
6037
- function uv(e, t) {
6011
+ function lv(e, t) {
6038
6012
  const n = t.get(e);
6039
6013
  if (n)
6040
6014
  return n;
@@ -6043,18 +6017,18 @@ function uv(e, t) {
6043
6017
  let i = s ? Dn(e) : e;
6044
6018
  for (; cn(i) && !Cr(i); ) {
6045
6019
  const a = un(i), l = ga(i);
6046
- !l && a.position === "fixed" && (o = null), (s ? !l && !o : !l && a.position === "static" && !!o && lv.has(o.position) || uo(i) && !l && Du(e, i)) ? r = r.filter((d) => d !== i) : o = a, i = Dn(i);
6020
+ !l && a.position === "fixed" && (o = null), (s ? !l && !o : !l && a.position === "static" && !!o && iv.has(o.position) || uo(i) && !l && Du(e, i)) ? r = r.filter((d) => d !== i) : o = a, i = Dn(i);
6047
6021
  }
6048
6022
  return t.set(e, r), r;
6049
6023
  }
6050
- function dv(e) {
6024
+ function cv(e) {
6051
6025
  let {
6052
6026
  element: t,
6053
6027
  boundary: n,
6054
6028
  rootBoundary: r,
6055
6029
  strategy: o
6056
6030
  } = e;
6057
- const i = [...n === "clippingAncestors" ? ks(t) ? [] : uv(t, this._c) : [].concat(n), r], a = i[0], l = i.reduce((c, d) => {
6031
+ const i = [...n === "clippingAncestors" ? ks(t) ? [] : lv(t, this._c) : [].concat(n), r], a = i[0], l = i.reduce((c, d) => {
6058
6032
  const f = Yl(t, d, o);
6059
6033
  return c.top = Vt(f.top, c.top), c.right = On(f.right, c.right), c.bottom = On(f.bottom, c.bottom), c.left = Vt(f.left, c.left), c;
6060
6034
  }, Yl(t, a, o));
@@ -6065,7 +6039,7 @@ function dv(e) {
6065
6039
  y: l.top
6066
6040
  };
6067
6041
  }
6068
- function fv(e) {
6042
+ function uv(e) {
6069
6043
  const {
6070
6044
  width: t,
6071
6045
  height: n
@@ -6075,7 +6049,7 @@ function fv(e) {
6075
6049
  height: n
6076
6050
  };
6077
6051
  }
6078
- function pv(e, t, n) {
6052
+ function dv(e, t, n) {
6079
6053
  const r = wn(t), o = bn(t), s = n === "fixed", i = er(e, !0, s, t);
6080
6054
  let a = {
6081
6055
  scrollLeft: 0,
@@ -6124,14 +6098,14 @@ function Lu(e, t) {
6124
6098
  return n;
6125
6099
  }
6126
6100
  let r = Xl(e, t);
6127
- for (; r && Yy(r) && li(r); )
6101
+ for (; r && qy(r) && li(r); )
6128
6102
  r = Xl(r, t);
6129
- return r && Cr(r) && li(r) && !ga(r) ? n : r || ev(e) || n;
6103
+ return r && Cr(r) && li(r) && !ga(r) ? n : r || Zy(e) || n;
6130
6104
  }
6131
- const hv = async function(e) {
6105
+ const fv = async function(e) {
6132
6106
  const t = this.getOffsetParent || Lu, n = this.getDimensions, r = await n(e.floating);
6133
6107
  return {
6134
- reference: pv(e.reference, await t(e.floating), e.strategy),
6108
+ reference: dv(e.reference, await t(e.floating), e.strategy),
6135
6109
  floating: {
6136
6110
  x: 0,
6137
6111
  y: 0,
@@ -6140,25 +6114,25 @@ const hv = async function(e) {
6140
6114
  }
6141
6115
  };
6142
6116
  };
6143
- function mv(e) {
6117
+ function pv(e) {
6144
6118
  return un(e).direction === "rtl";
6145
6119
  }
6146
- const gv = {
6147
- convertOffsetParentRelativeRectToViewportRelativeRect: ov,
6120
+ const hv = {
6121
+ convertOffsetParentRelativeRectToViewportRelativeRect: nv,
6148
6122
  getDocumentElement: bn,
6149
- getClippingRect: dv,
6123
+ getClippingRect: cv,
6150
6124
  getOffsetParent: Lu,
6151
- getElementRects: hv,
6152
- getClientRects: sv,
6153
- getDimensions: fv,
6125
+ getElementRects: fv,
6126
+ getClientRects: rv,
6127
+ getDimensions: uv,
6154
6128
  getScale: gr,
6155
6129
  isElement: cn,
6156
- isRTL: mv
6130
+ isRTL: pv
6157
6131
  };
6158
6132
  function $u(e, t) {
6159
6133
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
6160
6134
  }
6161
- function xv(e, t) {
6135
+ function mv(e, t) {
6162
6136
  let n = null, r;
6163
6137
  const o = bn(e);
6164
6138
  function s() {
@@ -6204,7 +6178,7 @@ function xv(e, t) {
6204
6178
  }
6205
6179
  return i(!0), s;
6206
6180
  }
6207
- function yv(e, t, n, r) {
6181
+ function gv(e, t, n, r) {
6208
6182
  r === void 0 && (r = {});
6209
6183
  const {
6210
6184
  ancestorScroll: o = !0,
@@ -6218,7 +6192,7 @@ function yv(e, t, n, r) {
6218
6192
  passive: !0
6219
6193
  }), s && x.addEventListener("resize", n);
6220
6194
  });
6221
- const f = c && a ? xv(c, n) : null;
6195
+ const f = c && a ? mv(c, n) : null;
6222
6196
  let p = -1, h = null;
6223
6197
  i && (h = new ResizeObserver((x) => {
6224
6198
  let [w] = x;
@@ -6240,21 +6214,21 @@ function yv(e, t, n, r) {
6240
6214
  }), f == null || f(), (x = h) == null || x.disconnect(), h = null, l && cancelAnimationFrame(m);
6241
6215
  };
6242
6216
  }
6243
- const vv = Uy, wv = Wy, bv = By, Sv = Ky, Cv = zy, Jl = Fy, Tv = Vy, Iv = (e, t, n) => {
6217
+ const xv = zy, yv = Hy, vv = $y, wv = Wy, bv = Fy, Jl = Ly, Sv = Uy, Cv = (e, t, n) => {
6244
6218
  const r = /* @__PURE__ */ new Map(), o = {
6245
- platform: gv,
6219
+ platform: hv,
6246
6220
  ...n
6247
6221
  }, s = {
6248
6222
  ...o.platform,
6249
6223
  _c: r
6250
6224
  };
6251
- return $y(e, t, {
6225
+ return Dy(e, t, {
6252
6226
  ...o,
6253
6227
  platform: s
6254
6228
  });
6255
6229
  };
6256
- var kv = typeof document < "u", Rv = function() {
6257
- }, Oo = kv ? Qh : Rv;
6230
+ var Tv = typeof document < "u", Iv = function() {
6231
+ }, Oo = Tv ? Qh : Iv;
6258
6232
  function Xo(e, t) {
6259
6233
  if (e === t)
6260
6234
  return !0;
@@ -6298,7 +6272,7 @@ function ci(e) {
6298
6272
  t.current = e;
6299
6273
  }), t;
6300
6274
  }
6301
- function Ev(e) {
6275
+ function kv(e) {
6302
6276
  e === void 0 && (e = {});
6303
6277
  const {
6304
6278
  placement: t = "bottom",
@@ -6333,7 +6307,7 @@ function Ev(e) {
6333
6307
  strategy: n,
6334
6308
  middleware: p
6335
6309
  };
6336
- j.current && (B.platform = j.current), Iv(C.current, I.current, B).then((_) => {
6310
+ j.current && (B.platform = j.current), Cv(C.current, I.current, B).then((_) => {
6337
6311
  const q = {
6338
6312
  ..._,
6339
6313
  // The floating element's position may be recomputed while it's closed
@@ -6400,7 +6374,7 @@ function Ev(e) {
6400
6374
  floatingStyles: V
6401
6375
  }), [d, $, F, N, V]);
6402
6376
  }
6403
- const Av = (e) => {
6377
+ const Rv = (e) => {
6404
6378
  function t(n) {
6405
6379
  return {}.hasOwnProperty.call(n, "current");
6406
6380
  }
@@ -6421,29 +6395,29 @@ const Av = (e) => {
6421
6395
  }).fn(n) : {};
6422
6396
  }
6423
6397
  };
6424
- }, Nv = (e, t) => ({
6425
- ...vv(e),
6398
+ }, Ev = (e, t) => ({
6399
+ ...xv(e),
6400
+ options: [e, t]
6401
+ }), Av = (e, t) => ({
6402
+ ...yv(e),
6403
+ options: [e, t]
6404
+ }), Nv = (e, t) => ({
6405
+ ...Sv(e),
6426
6406
  options: [e, t]
6427
6407
  }), _v = (e, t) => ({
6428
- ...wv(e),
6408
+ ...vv(e),
6429
6409
  options: [e, t]
6430
6410
  }), jv = (e, t) => ({
6431
- ...Tv(e),
6411
+ ...wv(e),
6432
6412
  options: [e, t]
6433
6413
  }), Pv = (e, t) => ({
6434
6414
  ...bv(e),
6435
6415
  options: [e, t]
6436
6416
  }), Mv = (e, t) => ({
6437
- ...Sv(e),
6438
- options: [e, t]
6439
- }), Ov = (e, t) => ({
6440
- ...Cv(e),
6441
- options: [e, t]
6442
- }), Dv = (e, t) => ({
6443
- ...Av(e),
6417
+ ...Rv(e),
6444
6418
  options: [e, t]
6445
6419
  });
6446
- var Lv = "Arrow", Bu = v.forwardRef((e, t) => {
6420
+ var Ov = "Arrow", Bu = v.forwardRef((e, t) => {
6447
6421
  const { children: n, width: r = 10, height: o = 5, ...s } = e;
6448
6422
  return /* @__PURE__ */ u.jsx(
6449
6423
  _e.svg,
@@ -6458,8 +6432,8 @@ var Lv = "Arrow", Bu = v.forwardRef((e, t) => {
6458
6432
  }
6459
6433
  );
6460
6434
  });
6461
- Bu.displayName = Lv;
6462
- var $v = Bu;
6435
+ Bu.displayName = Ov;
6436
+ var Dv = Bu;
6463
6437
  function zu(e) {
6464
6438
  const [t, n] = v.useState(void 0);
6465
6439
  return Et(() => {
@@ -6482,9 +6456,9 @@ function zu(e) {
6482
6456
  n(void 0);
6483
6457
  }, [e]), t;
6484
6458
  }
6485
- var va = "Popper", [Hu, As] = Nn(va), [Fv, Uu] = Hu(va), Wu = (e) => {
6459
+ var va = "Popper", [Hu, As] = Nn(va), [Lv, Uu] = Hu(va), Wu = (e) => {
6486
6460
  const { __scopePopper: t, children: n } = e, [r, o] = v.useState(null);
6487
- return /* @__PURE__ */ u.jsx(Fv, { scope: t, anchor: r, onAnchorChange: o, children: n });
6461
+ return /* @__PURE__ */ u.jsx(Lv, { scope: t, anchor: r, onAnchorChange: o, children: n });
6488
6462
  };
6489
6463
  Wu.displayName = va;
6490
6464
  var Vu = "PopperAnchor", Ku = v.forwardRef(
@@ -6497,7 +6471,7 @@ var Vu = "PopperAnchor", Ku = v.forwardRef(
6497
6471
  }
6498
6472
  );
6499
6473
  Ku.displayName = Vu;
6500
- var wa = "PopperContent", [Bv, zv] = Hu(wa), qu = v.forwardRef(
6474
+ var wa = "PopperContent", [$v, Fv] = Hu(wa), qu = v.forwardRef(
6501
6475
  (e, t) => {
6502
6476
  var X, L, K, J, le, ie;
6503
6477
  const {
@@ -6517,38 +6491,38 @@ var wa = "PopperContent", [Bv, zv] = Hu(wa), qu = v.forwardRef(
6517
6491
  ...g
6518
6492
  } = e, y = Uu(wa, n), [x, w] = v.useState(null), S = We(t, (Ae) => w(Ae)), [T, b] = v.useState(null), C = zu(T), I = (C == null ? void 0 : C.width) ?? 0, R = (C == null ? void 0 : C.height) ?? 0, A = r + (s !== "center" ? "-" + s : ""), D = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, j = Array.isArray(c) ? c : [c], M = j.length > 0, $ = {
6519
6493
  padding: D,
6520
- boundary: j.filter(Uv),
6494
+ boundary: j.filter(zv),
6521
6495
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
6522
6496
  altBoundary: M
6523
- }, { refs: E, floatingStyles: F, placement: N, isPositioned: V, middlewareData: B } = Ev({
6497
+ }, { refs: E, floatingStyles: F, placement: N, isPositioned: V, middlewareData: B } = kv({
6524
6498
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
6525
6499
  strategy: "fixed",
6526
6500
  placement: A,
6527
- whileElementsMounted: (...Ae) => yv(...Ae, {
6501
+ whileElementsMounted: (...Ae) => gv(...Ae, {
6528
6502
  animationFrame: h === "always"
6529
6503
  }),
6530
6504
  elements: {
6531
6505
  reference: y.anchor
6532
6506
  },
6533
6507
  middleware: [
6534
- Nv({ mainAxis: o + R, alignmentAxis: i }),
6535
- l && _v({
6508
+ Ev({ mainAxis: o + R, alignmentAxis: i }),
6509
+ l && Av({
6536
6510
  mainAxis: !0,
6537
6511
  crossAxis: !1,
6538
- limiter: f === "partial" ? jv() : void 0,
6512
+ limiter: f === "partial" ? Nv() : void 0,
6539
6513
  ...$
6540
6514
  }),
6541
- l && Pv({ ...$ }),
6542
- Mv({
6515
+ l && _v({ ...$ }),
6516
+ jv({
6543
6517
  ...$,
6544
6518
  apply: ({ elements: Ae, rects: Ve, availableWidth: oe, availableHeight: xe }) => {
6545
6519
  const { width: Oe, height: Je } = Ve.reference, ot = Ae.floating.style;
6546
6520
  ot.setProperty("--radix-popper-available-width", `${oe}px`), ot.setProperty("--radix-popper-available-height", `${xe}px`), ot.setProperty("--radix-popper-anchor-width", `${Oe}px`), ot.setProperty("--radix-popper-anchor-height", `${Je}px`);
6547
6521
  }
6548
6522
  }),
6549
- T && Dv({ element: T, padding: a }),
6550
- Wv({ arrowWidth: I, arrowHeight: R }),
6551
- p && Ov({ strategy: "referenceHidden", ...$ })
6523
+ T && Mv({ element: T, padding: a }),
6524
+ Hv({ arrowWidth: I, arrowHeight: R }),
6525
+ p && Pv({ strategy: "referenceHidden", ...$ })
6552
6526
  ]
6553
6527
  }), [_, q] = Xu(N), Y = Rt(m);
6554
6528
  Et(() => {
@@ -6582,7 +6556,7 @@ var wa = "PopperContent", [Bv, zv] = Hu(wa), qu = v.forwardRef(
6582
6556
  },
6583
6557
  dir: e.dir,
6584
6558
  children: /* @__PURE__ */ u.jsx(
6585
- Bv,
6559
+ $v,
6586
6560
  {
6587
6561
  scope: n,
6588
6562
  placedSide: _,
@@ -6612,13 +6586,13 @@ var wa = "PopperContent", [Bv, zv] = Hu(wa), qu = v.forwardRef(
6612
6586
  }
6613
6587
  );
6614
6588
  qu.displayName = wa;
6615
- var Gu = "PopperArrow", Hv = {
6589
+ var Gu = "PopperArrow", Bv = {
6616
6590
  top: "bottom",
6617
6591
  right: "left",
6618
6592
  bottom: "top",
6619
6593
  left: "right"
6620
6594
  }, Yu = v.forwardRef(function(t, n) {
6621
- const { __scopePopper: r, ...o } = t, s = zv(Gu, r), i = Hv[s.placedSide];
6595
+ const { __scopePopper: r, ...o } = t, s = Fv(Gu, r), i = Bv[s.placedSide];
6622
6596
  return (
6623
6597
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
6624
6598
  // doesn't report size as we'd expect on SVG elements.
@@ -6647,7 +6621,7 @@ var Gu = "PopperArrow", Hv = {
6647
6621
  visibility: s.shouldHideArrow ? "hidden" : void 0
6648
6622
  },
6649
6623
  children: /* @__PURE__ */ u.jsx(
6650
- $v,
6624
+ Dv,
6651
6625
  {
6652
6626
  ...o,
6653
6627
  ref: n,
@@ -6663,10 +6637,10 @@ var Gu = "PopperArrow", Hv = {
6663
6637
  );
6664
6638
  });
6665
6639
  Yu.displayName = Gu;
6666
- function Uv(e) {
6640
+ function zv(e) {
6667
6641
  return e !== null;
6668
6642
  }
6669
- var Wv = (e) => ({
6643
+ var Hv = (e) => ({
6670
6644
  name: "transformOrigin",
6671
6645
  options: e,
6672
6646
  fn(t) {
@@ -6680,24 +6654,24 @@ function Xu(e) {
6680
6654
  const [t, n = "center"] = e.split("-");
6681
6655
  return [t, n];
6682
6656
  }
6683
- var Ju = Wu, Zu = Ku, Qu = qu, ed = Yu, Vv = "Portal", Ns = v.forwardRef((e, t) => {
6657
+ var Ju = Wu, Zu = Ku, Qu = qu, ed = Yu, Uv = "Portal", Ns = v.forwardRef((e, t) => {
6684
6658
  var a;
6685
6659
  const { container: n, ...r } = e, [o, s] = v.useState(!1);
6686
6660
  Et(() => s(!0), []);
6687
6661
  const i = n || o && ((a = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : a.body);
6688
6662
  return i ? Hc.createPortal(/* @__PURE__ */ u.jsx(_e.div, { ...r, ref: t }), i) : null;
6689
6663
  });
6690
- Ns.displayName = Vv;
6691
- function Kv(e, t) {
6664
+ Ns.displayName = Uv;
6665
+ function Wv(e, t) {
6692
6666
  return v.useReducer((n, r) => t[n][r] ?? n, e);
6693
6667
  }
6694
6668
  var nn = (e) => {
6695
- const { present: t, children: n } = e, r = qv(t), o = typeof n == "function" ? n({ present: r.isPresent }) : v.Children.only(n), s = We(r.ref, Gv(o));
6669
+ const { present: t, children: n } = e, r = Vv(t), o = typeof n == "function" ? n({ present: r.isPresent }) : v.Children.only(n), s = We(r.ref, Kv(o));
6696
6670
  return typeof n == "function" || r.isPresent ? v.cloneElement(o, { ref: s }) : null;
6697
6671
  };
6698
6672
  nn.displayName = "Presence";
6699
- function qv(e) {
6700
- const [t, n] = v.useState(), r = v.useRef(null), o = v.useRef(e), s = v.useRef("none"), i = e ? "mounted" : "unmounted", [a, l] = Kv(i, {
6673
+ function Vv(e) {
6674
+ const [t, n] = v.useState(), r = v.useRef(null), o = v.useRef(e), s = v.useRef("none"), i = e ? "mounted" : "unmounted", [a, l] = Wv(i, {
6701
6675
  mounted: {
6702
6676
  UNMOUNT: "unmounted",
6703
6677
  ANIMATION_OUT: "unmountSuspended"
@@ -6748,19 +6722,19 @@ function qv(e) {
6748
6722
  function So(e) {
6749
6723
  return (e == null ? void 0 : e.animationName) || "none";
6750
6724
  }
6751
- function Gv(e) {
6725
+ function Kv(e) {
6752
6726
  var r, o;
6753
6727
  let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
6754
6728
  return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
6755
6729
  }
6756
- var ui = "rovingFocusGroup.onEntryFocus", Yv = { bubbles: !1, cancelable: !0 }, fo = "RovingFocusGroup", [Li, td, Xv] = da(fo), [Jv, nd] = Nn(
6730
+ var ui = "rovingFocusGroup.onEntryFocus", qv = { bubbles: !1, cancelable: !0 }, fo = "RovingFocusGroup", [Li, td, Gv] = da(fo), [Yv, nd] = Nn(
6757
6731
  fo,
6758
- [Xv]
6759
- ), [Zv, Qv] = Jv(fo), rd = v.forwardRef(
6760
- (e, t) => /* @__PURE__ */ u.jsx(Li.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ u.jsx(Li.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ u.jsx(ew, { ...e, ref: t }) }) })
6732
+ [Gv]
6733
+ ), [Xv, Jv] = Yv(fo), rd = v.forwardRef(
6734
+ (e, t) => /* @__PURE__ */ u.jsx(Li.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ u.jsx(Li.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ u.jsx(Zv, { ...e, ref: t }) }) })
6761
6735
  );
6762
6736
  rd.displayName = fo;
6763
- var ew = v.forwardRef((e, t) => {
6737
+ var Zv = v.forwardRef((e, t) => {
6764
6738
  const {
6765
6739
  __scopeRovingFocusGroup: n,
6766
6740
  orientation: r,
@@ -6783,7 +6757,7 @@ var ew = v.forwardRef((e, t) => {
6783
6757
  if (R)
6784
6758
  return R.addEventListener(ui, S), () => R.removeEventListener(ui, S);
6785
6759
  }, [S]), /* @__PURE__ */ u.jsx(
6786
- Zv,
6760
+ Xv,
6787
6761
  {
6788
6762
  scope: n,
6789
6763
  orientation: r,
@@ -6817,7 +6791,7 @@ var ew = v.forwardRef((e, t) => {
6817
6791
  onFocus: de(e.onFocus, (R) => {
6818
6792
  const A = !b.current;
6819
6793
  if (R.target === R.currentTarget && A && !x) {
6820
- const D = new CustomEvent(ui, Yv);
6794
+ const D = new CustomEvent(ui, qv);
6821
6795
  if (R.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
6822
6796
  const j = T().filter((N) => N.focusable), M = j.find((N) => N.active), $ = j.find((N) => N.id === g), F = [M, $, ...j].filter(
6823
6797
  Boolean
@@ -6841,7 +6815,7 @@ var ew = v.forwardRef((e, t) => {
6841
6815
  tabStopId: s,
6842
6816
  children: i,
6843
6817
  ...a
6844
- } = e, l = kn(), c = s || l, d = Qv(od, n), f = d.currentTabStopId === c, p = td(n), { onFocusableItemAdd: h, onFocusableItemRemove: m, currentTabStopId: g } = d;
6818
+ } = e, l = kn(), c = s || l, d = Jv(od, n), f = d.currentTabStopId === c, p = td(n), { onFocusableItemAdd: h, onFocusableItemRemove: m, currentTabStopId: g } = d;
6845
6819
  return v.useEffect(() => {
6846
6820
  if (r)
6847
6821
  return h(), () => m();
@@ -6869,7 +6843,7 @@ var ew = v.forwardRef((e, t) => {
6869
6843
  return;
6870
6844
  }
6871
6845
  if (y.target !== y.currentTarget) return;
6872
- const x = rw(y, d.orientation, d.dir);
6846
+ const x = tw(y, d.orientation, d.dir);
6873
6847
  if (x !== void 0) {
6874
6848
  if (y.metaKey || y.ctrlKey || y.altKey || y.shiftKey) return;
6875
6849
  y.preventDefault();
@@ -6878,7 +6852,7 @@ var ew = v.forwardRef((e, t) => {
6878
6852
  else if (x === "prev" || x === "next") {
6879
6853
  x === "prev" && S.reverse();
6880
6854
  const T = S.indexOf(y.currentTarget);
6881
- S = d.loop ? ow(S, T + 1) : S.slice(T + 1);
6855
+ S = d.loop ? nw(S, T + 1) : S.slice(T + 1);
6882
6856
  }
6883
6857
  setTimeout(() => id(S));
6884
6858
  }
@@ -6891,7 +6865,7 @@ var ew = v.forwardRef((e, t) => {
6891
6865
  }
6892
6866
  );
6893
6867
  sd.displayName = od;
6894
- var tw = {
6868
+ var Qv = {
6895
6869
  ArrowLeft: "prev",
6896
6870
  ArrowUp: "prev",
6897
6871
  ArrowRight: "next",
@@ -6901,30 +6875,30 @@ var tw = {
6901
6875
  PageDown: "last",
6902
6876
  End: "last"
6903
6877
  };
6904
- function nw(e, t) {
6878
+ function ew(e, t) {
6905
6879
  return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
6906
6880
  }
6907
- function rw(e, t, n) {
6908
- const r = nw(e.key, n);
6881
+ function tw(e, t, n) {
6882
+ const r = ew(e.key, n);
6909
6883
  if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
6910
- return tw[r];
6884
+ return Qv[r];
6911
6885
  }
6912
6886
  function id(e, t = !1) {
6913
6887
  const n = document.activeElement;
6914
6888
  for (const r of e)
6915
6889
  if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
6916
6890
  }
6917
- function ow(e, t) {
6891
+ function nw(e, t) {
6918
6892
  return e.map((n, r) => e[(t + r) % e.length]);
6919
6893
  }
6920
- var sw = rd, iw = sd, aw = function(e) {
6894
+ var rw = rd, ow = sd, sw = function(e) {
6921
6895
  if (typeof document > "u")
6922
6896
  return null;
6923
6897
  var t = Array.isArray(e) ? e[0] : e;
6924
6898
  return t.ownerDocument.body;
6925
6899
  }, dr = /* @__PURE__ */ new WeakMap(), Co = /* @__PURE__ */ new WeakMap(), To = {}, di = 0, ad = function(e) {
6926
6900
  return e && (e.host || ad(e.parentNode));
6927
- }, lw = function(e, t) {
6901
+ }, iw = function(e, t) {
6928
6902
  return t.map(function(n) {
6929
6903
  if (e.contains(n))
6930
6904
  return n;
@@ -6933,8 +6907,8 @@ var sw = rd, iw = sd, aw = function(e) {
6933
6907
  }).filter(function(n) {
6934
6908
  return !!n;
6935
6909
  });
6936
- }, cw = function(e, t, n, r) {
6937
- var o = lw(t, Array.isArray(e) ? e : [e]);
6910
+ }, aw = function(e, t, n, r) {
6911
+ var o = iw(t, Array.isArray(e) ? e : [e]);
6938
6912
  To[n] || (To[n] = /* @__PURE__ */ new WeakMap());
6939
6913
  var s = To[n], i = [], a = /* @__PURE__ */ new Set(), l = new Set(o), c = function(f) {
6940
6914
  !f || a.has(f) || (a.add(f), c(f.parentNode));
@@ -6961,8 +6935,8 @@ var sw = rd, iw = sd, aw = function(e) {
6961
6935
  };
6962
6936
  }, ba = function(e, t, n) {
6963
6937
  n === void 0 && (n = "data-aria-hidden");
6964
- var r = Array.from(Array.isArray(e) ? e : [e]), o = aw(e);
6965
- return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), cw(r, o, n, "aria-hidden")) : function() {
6938
+ var r = Array.from(Array.isArray(e) ? e : [e]), o = sw(e);
6939
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), aw(r, o, n, "aria-hidden")) : function() {
6966
6940
  return null;
6967
6941
  };
6968
6942
  }, gn = function() {
@@ -6982,16 +6956,16 @@ function ld(e, t) {
6982
6956
  t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
6983
6957
  return n;
6984
6958
  }
6985
- function uw(e, t, n) {
6959
+ function lw(e, t, n) {
6986
6960
  if (n || arguments.length === 2) for (var r = 0, o = t.length, s; r < o; r++)
6987
6961
  (s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
6988
6962
  return e.concat(s || Array.prototype.slice.call(t));
6989
6963
  }
6990
- var Do = "right-scroll-bar-position", Lo = "width-before-scroll-bar", dw = "with-scroll-bars-hidden", fw = "--removed-body-scroll-bar-size";
6964
+ var Do = "right-scroll-bar-position", Lo = "width-before-scroll-bar", cw = "with-scroll-bars-hidden", uw = "--removed-body-scroll-bar-size";
6991
6965
  function fi(e, t) {
6992
6966
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
6993
6967
  }
6994
- function pw(e, t) {
6968
+ function dw(e, t) {
6995
6969
  var n = ye(function() {
6996
6970
  return {
6997
6971
  // value
@@ -7012,14 +6986,14 @@ function pw(e, t) {
7012
6986
  })[0];
7013
6987
  return n.callback = t, n.facade;
7014
6988
  }
7015
- var hw = typeof window < "u" ? v.useLayoutEffect : v.useEffect, Ql = /* @__PURE__ */ new WeakMap();
7016
- function mw(e, t) {
7017
- var n = pw(null, function(r) {
6989
+ var fw = typeof window < "u" ? v.useLayoutEffect : v.useEffect, Ql = /* @__PURE__ */ new WeakMap();
6990
+ function pw(e, t) {
6991
+ var n = dw(null, function(r) {
7018
6992
  return e.forEach(function(o) {
7019
6993
  return fi(o, r);
7020
6994
  });
7021
6995
  });
7022
- return hw(function() {
6996
+ return fw(function() {
7023
6997
  var r = Ql.get(n);
7024
6998
  if (r) {
7025
6999
  var o = new Set(r), s = new Set(e), i = n.current;
@@ -7032,11 +7006,11 @@ function mw(e, t) {
7032
7006
  Ql.set(n, e);
7033
7007
  }, [e]), n;
7034
7008
  }
7035
- function gw(e) {
7009
+ function hw(e) {
7036
7010
  return e;
7037
7011
  }
7038
- function xw(e, t) {
7039
- t === void 0 && (t = gw);
7012
+ function mw(e, t) {
7013
+ t === void 0 && (t = hw);
7040
7014
  var n = [], r = !1, o = {
7041
7015
  read: function() {
7042
7016
  if (r)
@@ -7090,9 +7064,9 @@ function xw(e, t) {
7090
7064
  };
7091
7065
  return o;
7092
7066
  }
7093
- function yw(e) {
7067
+ function gw(e) {
7094
7068
  e === void 0 && (e = {});
7095
- var t = xw(null);
7069
+ var t = mw(null);
7096
7070
  return t.options = gn({ async: !0, ssr: !1 }, e), t;
7097
7071
  }
7098
7072
  var cd = function(e) {
@@ -7105,16 +7079,16 @@ var cd = function(e) {
7105
7079
  return v.createElement(r, gn({}, n));
7106
7080
  };
7107
7081
  cd.isSideCarExport = !0;
7108
- function vw(e, t) {
7082
+ function xw(e, t) {
7109
7083
  return e.useMedium(t), cd;
7110
7084
  }
7111
- var ud = yw(), pi = function() {
7085
+ var ud = gw(), pi = function() {
7112
7086
  }, _s = v.forwardRef(function(e, t) {
7113
7087
  var n = v.useRef(null), r = v.useState({
7114
7088
  onScrollCapture: pi,
7115
7089
  onWheelCapture: pi,
7116
7090
  onTouchMoveCapture: pi
7117
- }), o = r[0], s = r[1], i = e.forwardProps, a = e.children, l = e.className, c = e.removeScrollBar, d = e.enabled, f = e.shards, p = e.sideCar, h = e.noRelative, m = e.noIsolation, g = e.inert, y = e.allowPinchZoom, x = e.as, w = x === void 0 ? "div" : x, S = e.gapMode, T = ld(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), b = p, C = mw([n, t]), I = gn(gn({}, T), o);
7091
+ }), o = r[0], s = r[1], i = e.forwardProps, a = e.children, l = e.className, c = e.removeScrollBar, d = e.enabled, f = e.shards, p = e.sideCar, h = e.noRelative, m = e.noIsolation, g = e.inert, y = e.allowPinchZoom, x = e.as, w = x === void 0 ? "div" : x, S = e.gapMode, T = ld(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), b = p, C = pw([n, t]), I = gn(gn({}, T), o);
7118
7092
  return v.createElement(
7119
7093
  v.Fragment,
7120
7094
  null,
@@ -7131,37 +7105,37 @@ _s.classNames = {
7131
7105
  fullWidth: Lo,
7132
7106
  zeroRight: Do
7133
7107
  };
7134
- var ww = function() {
7108
+ var yw = function() {
7135
7109
  if (typeof __webpack_nonce__ < "u")
7136
7110
  return __webpack_nonce__;
7137
7111
  };
7138
- function bw() {
7112
+ function vw() {
7139
7113
  if (!document)
7140
7114
  return null;
7141
7115
  var e = document.createElement("style");
7142
7116
  e.type = "text/css";
7143
- var t = ww();
7117
+ var t = yw();
7144
7118
  return t && e.setAttribute("nonce", t), e;
7145
7119
  }
7146
- function Sw(e, t) {
7120
+ function ww(e, t) {
7147
7121
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
7148
7122
  }
7149
- function Cw(e) {
7123
+ function bw(e) {
7150
7124
  var t = document.head || document.getElementsByTagName("head")[0];
7151
7125
  t.appendChild(e);
7152
7126
  }
7153
- var Tw = function() {
7127
+ var Sw = function() {
7154
7128
  var e = 0, t = null;
7155
7129
  return {
7156
7130
  add: function(n) {
7157
- e == 0 && (t = bw()) && (Sw(t, n), Cw(t)), e++;
7131
+ e == 0 && (t = vw()) && (ww(t, n), bw(t)), e++;
7158
7132
  },
7159
7133
  remove: function() {
7160
7134
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
7161
7135
  }
7162
7136
  };
7163
- }, Iw = function() {
7164
- var e = Tw();
7137
+ }, Cw = function() {
7138
+ var e = Sw();
7165
7139
  return function(t, n) {
7166
7140
  v.useEffect(function() {
7167
7141
  return e.add(t), function() {
@@ -7170,35 +7144,35 @@ var Tw = function() {
7170
7144
  }, [t && n]);
7171
7145
  };
7172
7146
  }, dd = function() {
7173
- var e = Iw(), t = function(n) {
7147
+ var e = Cw(), t = function(n) {
7174
7148
  var r = n.styles, o = n.dynamic;
7175
7149
  return e(r, o), null;
7176
7150
  };
7177
7151
  return t;
7178
- }, kw = {
7152
+ }, Tw = {
7179
7153
  left: 0,
7180
7154
  top: 0,
7181
7155
  right: 0,
7182
7156
  gap: 0
7183
7157
  }, hi = function(e) {
7184
7158
  return parseInt(e || "", 10) || 0;
7185
- }, Rw = function(e) {
7159
+ }, Iw = function(e) {
7186
7160
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
7187
7161
  return [hi(n), hi(r), hi(o)];
7188
- }, Ew = function(e) {
7162
+ }, kw = function(e) {
7189
7163
  if (e === void 0 && (e = "margin"), typeof window > "u")
7190
- return kw;
7191
- var t = Rw(e), n = document.documentElement.clientWidth, r = window.innerWidth;
7164
+ return Tw;
7165
+ var t = Iw(e), n = document.documentElement.clientWidth, r = window.innerWidth;
7192
7166
  return {
7193
7167
  left: t[0],
7194
7168
  top: t[1],
7195
7169
  right: t[2],
7196
7170
  gap: Math.max(0, r - n + t[2] - t[0])
7197
7171
  };
7198
- }, Aw = dd(), xr = "data-scroll-locked", Nw = function(e, t, n, r) {
7172
+ }, Rw = dd(), xr = "data-scroll-locked", Ew = function(e, t, n, r) {
7199
7173
  var o = e.left, s = e.top, i = e.right, a = e.gap;
7200
7174
  return n === void 0 && (n = "margin"), `
7201
- .`.concat(dw, ` {
7175
+ .`.concat(cw, ` {
7202
7176
  overflow: hidden `).concat(r, `;
7203
7177
  padding-right: `).concat(a, "px ").concat(r, `;
7204
7178
  }
@@ -7236,26 +7210,26 @@ var Tw = function() {
7236
7210
  }
7237
7211
 
7238
7212
  body[`).concat(xr, `] {
7239
- `).concat(fw, ": ").concat(a, `px;
7213
+ `).concat(uw, ": ").concat(a, `px;
7240
7214
  }
7241
7215
  `);
7242
7216
  }, ec = function() {
7243
7217
  var e = parseInt(document.body.getAttribute(xr) || "0", 10);
7244
7218
  return isFinite(e) ? e : 0;
7245
- }, _w = function() {
7219
+ }, Aw = function() {
7246
7220
  v.useEffect(function() {
7247
7221
  return document.body.setAttribute(xr, (ec() + 1).toString()), function() {
7248
7222
  var e = ec() - 1;
7249
7223
  e <= 0 ? document.body.removeAttribute(xr) : document.body.setAttribute(xr, e.toString());
7250
7224
  };
7251
7225
  }, []);
7252
- }, jw = function(e) {
7226
+ }, Nw = function(e) {
7253
7227
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
7254
- _w();
7228
+ Aw();
7255
7229
  var s = v.useMemo(function() {
7256
- return Ew(o);
7230
+ return kw(o);
7257
7231
  }, [o]);
7258
- return v.createElement(Aw, { styles: Nw(s, !t, o, n ? "" : "!important") });
7232
+ return v.createElement(Rw, { styles: Ew(s, !t, o, n ? "" : "!important") });
7259
7233
  }, $i = !1;
7260
7234
  if (typeof window < "u")
7261
7235
  try {
@@ -7268,7 +7242,7 @@ if (typeof window < "u")
7268
7242
  } catch {
7269
7243
  $i = !1;
7270
7244
  }
7271
- var fr = $i ? { passive: !1 } : !1, Pw = function(e) {
7245
+ var fr = $i ? { passive: !1 } : !1, _w = function(e) {
7272
7246
  return e.tagName === "TEXTAREA";
7273
7247
  }, fd = function(e, t) {
7274
7248
  if (!(e instanceof Element))
@@ -7277,11 +7251,11 @@ var fr = $i ? { passive: !1 } : !1, Pw = function(e) {
7277
7251
  return (
7278
7252
  // not-not-scrollable
7279
7253
  n[t] !== "hidden" && // contains scroll inside self
7280
- !(n.overflowY === n.overflowX && !Pw(e) && n[t] === "visible")
7254
+ !(n.overflowY === n.overflowX && !_w(e) && n[t] === "visible")
7281
7255
  );
7282
- }, Mw = function(e) {
7256
+ }, jw = function(e) {
7283
7257
  return fd(e, "overflowY");
7284
- }, Ow = function(e) {
7258
+ }, Pw = function(e) {
7285
7259
  return fd(e, "overflowX");
7286
7260
  }, tc = function(e, t) {
7287
7261
  var n = t.ownerDocument, r = t;
@@ -7296,14 +7270,14 @@ var fr = $i ? { passive: !1 } : !1, Pw = function(e) {
7296
7270
  r = r.parentNode;
7297
7271
  } while (r && r !== n.body);
7298
7272
  return !1;
7299
- }, Dw = function(e) {
7273
+ }, Mw = function(e) {
7300
7274
  var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
7301
7275
  return [
7302
7276
  t,
7303
7277
  n,
7304
7278
  r
7305
7279
  ];
7306
- }, Lw = function(e) {
7280
+ }, Ow = function(e) {
7307
7281
  var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
7308
7282
  return [
7309
7283
  t,
@@ -7311,13 +7285,13 @@ var fr = $i ? { passive: !1 } : !1, Pw = function(e) {
7311
7285
  r
7312
7286
  ];
7313
7287
  }, pd = function(e, t) {
7314
- return e === "v" ? Mw(t) : Ow(t);
7288
+ return e === "v" ? jw(t) : Pw(t);
7315
7289
  }, hd = function(e, t) {
7316
- return e === "v" ? Dw(t) : Lw(t);
7317
- }, $w = function(e, t) {
7290
+ return e === "v" ? Mw(t) : Ow(t);
7291
+ }, Dw = function(e, t) {
7318
7292
  return e === "h" && t === "rtl" ? -1 : 1;
7319
- }, Fw = function(e, t, n, r, o) {
7320
- var s = $w(e, window.getComputedStyle(t).direction), i = s * r, a = n.target, l = t.contains(a), c = !1, d = i > 0, f = 0, p = 0;
7293
+ }, Lw = function(e, t, n, r, o) {
7294
+ var s = Dw(e, window.getComputedStyle(t).direction), i = s * r, a = n.target, l = t.contains(a), c = !1, d = i > 0, f = 0, p = 0;
7321
7295
  do {
7322
7296
  if (!a)
7323
7297
  break;
@@ -7337,22 +7311,22 @@ var fr = $i ? { passive: !1 } : !1, Pw = function(e) {
7337
7311
  return [e.deltaX, e.deltaY];
7338
7312
  }, rc = function(e) {
7339
7313
  return e && "current" in e ? e.current : e;
7340
- }, Bw = function(e, t) {
7314
+ }, $w = function(e, t) {
7341
7315
  return e[0] === t[0] && e[1] === t[1];
7342
- }, zw = function(e) {
7316
+ }, Fw = function(e) {
7343
7317
  return `
7344
7318
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
7345
7319
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
7346
7320
  `);
7347
- }, Hw = 0, pr = [];
7348
- function Uw(e) {
7349
- var t = v.useRef([]), n = v.useRef([0, 0]), r = v.useRef(), o = v.useState(Hw++)[0], s = v.useState(dd)[0], i = v.useRef(e);
7321
+ }, Bw = 0, pr = [];
7322
+ function zw(e) {
7323
+ var t = v.useRef([]), n = v.useRef([0, 0]), r = v.useRef(), o = v.useState(Bw++)[0], s = v.useState(dd)[0], i = v.useRef(e);
7350
7324
  v.useEffect(function() {
7351
7325
  i.current = e;
7352
7326
  }, [e]), v.useEffect(function() {
7353
7327
  if (e.inert) {
7354
7328
  document.body.classList.add("block-interactivity-".concat(o));
7355
- var g = uw([e.lockRef.current], (e.shards || []).map(rc), !0).filter(Boolean);
7329
+ var g = lw([e.lockRef.current], (e.shards || []).map(rc), !0).filter(Boolean);
7356
7330
  return g.forEach(function(y) {
7357
7331
  return y.classList.add("allow-interactivity-".concat(o));
7358
7332
  }), function() {
@@ -7376,12 +7350,12 @@ function Uw(e) {
7376
7350
  if (!r.current && "changedTouches" in g && (S || T) && (r.current = b), !b)
7377
7351
  return !0;
7378
7352
  var A = r.current || b;
7379
- return Fw(A, y, g, A === "h" ? S : T);
7353
+ return Lw(A, y, g, A === "h" ? S : T);
7380
7354
  }, []), l = v.useCallback(function(g) {
7381
7355
  var y = g;
7382
7356
  if (!(!pr.length || pr[pr.length - 1] !== s)) {
7383
7357
  var x = "deltaY" in y ? nc(y) : ko(y), w = t.current.filter(function(b) {
7384
- return b.name === y.type && (b.target === y.target || y.target === b.shadowParent) && Bw(b.delta, x);
7358
+ return b.name === y.type && (b.target === y.target || y.target === b.shadowParent) && $w(b.delta, x);
7385
7359
  })[0];
7386
7360
  if (w && w.should) {
7387
7361
  y.cancelable && y.preventDefault();
@@ -7395,7 +7369,7 @@ function Uw(e) {
7395
7369
  }
7396
7370
  }
7397
7371
  }, []), c = v.useCallback(function(g, y, x, w) {
7398
- var S = { name: g, delta: y, target: x, should: w, shadowParent: Ww(x) };
7372
+ var S = { name: g, delta: y, target: x, should: w, shadowParent: Hw(x) };
7399
7373
  t.current.push(S), setTimeout(function() {
7400
7374
  t.current = t.current.filter(function(T) {
7401
7375
  return T !== S;
@@ -7423,31 +7397,31 @@ function Uw(e) {
7423
7397
  return v.createElement(
7424
7398
  v.Fragment,
7425
7399
  null,
7426
- m ? v.createElement(s, { styles: zw(o) }) : null,
7427
- h ? v.createElement(jw, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
7400
+ m ? v.createElement(s, { styles: Fw(o) }) : null,
7401
+ h ? v.createElement(Nw, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
7428
7402
  );
7429
7403
  }
7430
- function Ww(e) {
7404
+ function Hw(e) {
7431
7405
  for (var t = null; e !== null; )
7432
7406
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
7433
7407
  return t;
7434
7408
  }
7435
- const Vw = vw(ud, Uw);
7409
+ const Uw = xw(ud, zw);
7436
7410
  var js = v.forwardRef(function(e, t) {
7437
- return v.createElement(_s, gn({}, e, { ref: t, sideCar: Vw }));
7411
+ return v.createElement(_s, gn({}, e, { ref: t, sideCar: Uw }));
7438
7412
  });
7439
7413
  js.classNames = _s.classNames;
7440
- var Fi = ["Enter", " "], Kw = ["ArrowDown", "PageUp", "Home"], md = ["ArrowUp", "PageDown", "End"], qw = [...Kw, ...md], Gw = {
7414
+ var Fi = ["Enter", " "], Ww = ["ArrowDown", "PageUp", "Home"], md = ["ArrowUp", "PageDown", "End"], Vw = [...Ww, ...md], Kw = {
7441
7415
  ltr: [...Fi, "ArrowRight"],
7442
7416
  rtl: [...Fi, "ArrowLeft"]
7443
- }, Yw = {
7417
+ }, qw = {
7444
7418
  ltr: ["ArrowLeft"],
7445
7419
  rtl: ["ArrowRight"]
7446
- }, po = "Menu", [Xr, Xw, Jw] = da(po), [sr, gd] = Nn(po, [
7447
- Jw,
7420
+ }, po = "Menu", [Xr, Gw, Yw] = da(po), [sr, gd] = Nn(po, [
7421
+ Yw,
7448
7422
  As,
7449
7423
  nd
7450
- ]), Ps = As(), xd = nd(), [Zw, ir] = sr(po), [Qw, ho] = sr(po), yd = (e) => {
7424
+ ]), Ps = As(), xd = nd(), [Xw, ir] = sr(po), [Jw, ho] = sr(po), yd = (e) => {
7451
7425
  const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, a = Ps(t), [l, c] = v.useState(null), d = v.useRef(!1), f = Rt(s), p = Ss(o);
7452
7426
  return v.useEffect(() => {
7453
7427
  const h = () => {
@@ -7457,7 +7431,7 @@ var Fi = ["Enter", " "], Kw = ["ArrowDown", "PageUp", "Home"], md = ["ArrowUp",
7457
7431
  document.removeEventListener("keydown", h, { capture: !0 }), document.removeEventListener("pointerdown", m, { capture: !0 }), document.removeEventListener("pointermove", m, { capture: !0 });
7458
7432
  };
7459
7433
  }, []), /* @__PURE__ */ u.jsx(Ju, { ...a, children: /* @__PURE__ */ u.jsx(
7460
- Zw,
7434
+ Xw,
7461
7435
  {
7462
7436
  scope: t,
7463
7437
  open: n,
@@ -7465,7 +7439,7 @@ var Fi = ["Enter", " "], Kw = ["ArrowDown", "PageUp", "Home"], md = ["ArrowUp",
7465
7439
  content: l,
7466
7440
  onContentChange: c,
7467
7441
  children: /* @__PURE__ */ u.jsx(
7468
- Qw,
7442
+ Jw,
7469
7443
  {
7470
7444
  scope: t,
7471
7445
  onClose: v.useCallback(() => f(!1), [f]),
@@ -7479,26 +7453,26 @@ var Fi = ["Enter", " "], Kw = ["ArrowDown", "PageUp", "Home"], md = ["ArrowUp",
7479
7453
  ) });
7480
7454
  };
7481
7455
  yd.displayName = po;
7482
- var eb = "MenuAnchor", Sa = v.forwardRef(
7456
+ var Zw = "MenuAnchor", Sa = v.forwardRef(
7483
7457
  (e, t) => {
7484
7458
  const { __scopeMenu: n, ...r } = e, o = Ps(n);
7485
7459
  return /* @__PURE__ */ u.jsx(Zu, { ...o, ...r, ref: t });
7486
7460
  }
7487
7461
  );
7488
- Sa.displayName = eb;
7489
- var Ca = "MenuPortal", [tb, vd] = sr(Ca, {
7462
+ Sa.displayName = Zw;
7463
+ var Ca = "MenuPortal", [Qw, vd] = sr(Ca, {
7490
7464
  forceMount: void 0
7491
7465
  }), wd = (e) => {
7492
7466
  const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = ir(Ca, t);
7493
- return /* @__PURE__ */ u.jsx(tb, { scope: t, forceMount: n, children: /* @__PURE__ */ u.jsx(nn, { present: n || s.open, children: /* @__PURE__ */ u.jsx(Ns, { asChild: !0, container: o, children: r }) }) });
7467
+ return /* @__PURE__ */ u.jsx(Qw, { scope: t, forceMount: n, children: /* @__PURE__ */ u.jsx(nn, { present: n || s.open, children: /* @__PURE__ */ u.jsx(Ns, { asChild: !0, container: o, children: r }) }) });
7494
7468
  };
7495
7469
  wd.displayName = Ca;
7496
- var en = "MenuContent", [nb, Ta] = sr(en), bd = v.forwardRef(
7470
+ var en = "MenuContent", [eb, Ta] = sr(en), bd = v.forwardRef(
7497
7471
  (e, t) => {
7498
7472
  const n = vd(en, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = ir(en, e.__scopeMenu), i = ho(en, e.__scopeMenu);
7499
- return /* @__PURE__ */ u.jsx(Xr.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ u.jsx(nn, { present: r || s.open, children: /* @__PURE__ */ u.jsx(Xr.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ u.jsx(rb, { ...o, ref: t }) : /* @__PURE__ */ u.jsx(ob, { ...o, ref: t }) }) }) });
7473
+ return /* @__PURE__ */ u.jsx(Xr.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ u.jsx(nn, { present: r || s.open, children: /* @__PURE__ */ u.jsx(Xr.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ u.jsx(tb, { ...o, ref: t }) : /* @__PURE__ */ u.jsx(nb, { ...o, ref: t }) }) }) });
7500
7474
  }
7501
- ), rb = v.forwardRef(
7475
+ ), tb = v.forwardRef(
7502
7476
  (e, t) => {
7503
7477
  const n = ir(en, e.__scopeMenu), r = v.useRef(null), o = We(t, r);
7504
7478
  return v.useEffect(() => {
@@ -7521,7 +7495,7 @@ var en = "MenuContent", [nb, Ta] = sr(en), bd = v.forwardRef(
7521
7495
  }
7522
7496
  );
7523
7497
  }
7524
- ), ob = v.forwardRef((e, t) => {
7498
+ ), nb = v.forwardRef((e, t) => {
7525
7499
  const n = ir(en, e.__scopeMenu);
7526
7500
  return /* @__PURE__ */ u.jsx(
7527
7501
  Ia,
@@ -7534,7 +7508,7 @@ var en = "MenuContent", [nb, Ta] = sr(en), bd = v.forwardRef(
7534
7508
  onDismiss: () => n.onOpenChange(!1)
7535
7509
  }
7536
7510
  );
7537
- }), sb = wr("MenuContent.ScrollLock"), Ia = v.forwardRef(
7511
+ }), rb = wr("MenuContent.ScrollLock"), Ia = v.forwardRef(
7538
7512
  (e, t) => {
7539
7513
  const {
7540
7514
  __scopeMenu: n,
@@ -7551,9 +7525,9 @@ var en = "MenuContent", [nb, Ta] = sr(en), bd = v.forwardRef(
7551
7525
  onDismiss: h,
7552
7526
  disableOutsideScroll: m,
7553
7527
  ...g
7554
- } = e, y = ir(en, n), x = ho(en, n), w = Ps(n), S = xd(n), T = Xw(n), [b, C] = v.useState(null), I = v.useRef(null), R = We(t, I, y.onContentChange), A = v.useRef(0), D = v.useRef(""), j = v.useRef(0), M = v.useRef(null), $ = v.useRef("right"), E = v.useRef(0), F = m ? js : v.Fragment, N = m ? { as: sb, allowPinchZoom: !0 } : void 0, V = (_) => {
7528
+ } = e, y = ir(en, n), x = ho(en, n), w = Ps(n), S = xd(n), T = Gw(n), [b, C] = v.useState(null), I = v.useRef(null), R = We(t, I, y.onContentChange), A = v.useRef(0), D = v.useRef(""), j = v.useRef(0), M = v.useRef(null), $ = v.useRef("right"), E = v.useRef(0), F = m ? js : v.Fragment, N = m ? { as: rb, allowPinchZoom: !0 } : void 0, V = (_) => {
7555
7529
  var X, L;
7556
- const q = D.current + _, Y = T().filter((K) => !K.disabled), se = document.activeElement, we = (X = Y.find((K) => K.ref.current === se)) == null ? void 0 : X.textValue, ke = Y.map((K) => K.textValue), G = xb(ke, q, we), z = (L = Y.find((K) => K.textValue === G)) == null ? void 0 : L.ref.current;
7530
+ const q = D.current + _, Y = T().filter((K) => !K.disabled), se = document.activeElement, we = (X = Y.find((K) => K.ref.current === se)) == null ? void 0 : X.textValue, ke = Y.map((K) => K.textValue), G = mb(ke, q, we), z = (L = Y.find((K) => K.textValue === G)) == null ? void 0 : L.ref.current;
7557
7531
  (function K(J) {
7558
7532
  D.current = J, window.clearTimeout(A.current), J !== "" && (A.current = window.setTimeout(() => K(""), 1e3));
7559
7533
  })(q), z && setTimeout(() => z.focus());
@@ -7561,10 +7535,10 @@ var en = "MenuContent", [nb, Ta] = sr(en), bd = v.forwardRef(
7561
7535
  v.useEffect(() => () => window.clearTimeout(A.current), []), fa();
7562
7536
  const B = v.useCallback((_) => {
7563
7537
  var Y, se;
7564
- return $.current === ((Y = M.current) == null ? void 0 : Y.side) && vb(_, (se = M.current) == null ? void 0 : se.area);
7538
+ return $.current === ((Y = M.current) == null ? void 0 : Y.side) && xb(_, (se = M.current) == null ? void 0 : se.area);
7565
7539
  }, []);
7566
7540
  return /* @__PURE__ */ u.jsx(
7567
- nb,
7541
+ eb,
7568
7542
  {
7569
7543
  scope: n,
7570
7544
  searchRef: D,
@@ -7612,7 +7586,7 @@ var en = "MenuContent", [nb, Ta] = sr(en), bd = v.forwardRef(
7612
7586
  onInteractOutside: p,
7613
7587
  onDismiss: h,
7614
7588
  children: /* @__PURE__ */ u.jsx(
7615
- sw,
7589
+ rw,
7616
7590
  {
7617
7591
  asChild: !0,
7618
7592
  ...S,
@@ -7641,10 +7615,10 @@ var en = "MenuContent", [nb, Ta] = sr(en), bd = v.forwardRef(
7641
7615
  const Y = _.target.closest("[data-radix-menu-content]") === _.currentTarget, se = _.ctrlKey || _.altKey || _.metaKey, we = _.key.length === 1;
7642
7616
  Y && (_.key === "Tab" && _.preventDefault(), !se && we && V(_.key));
7643
7617
  const ke = I.current;
7644
- if (_.target !== ke || !qw.includes(_.key)) return;
7618
+ if (_.target !== ke || !Vw.includes(_.key)) return;
7645
7619
  _.preventDefault();
7646
7620
  const z = T().filter((X) => !X.disabled).map((X) => X.ref.current);
7647
- md.includes(_.key) && z.reverse(), mb(z);
7621
+ md.includes(_.key) && z.reverse(), pb(z);
7648
7622
  }),
7649
7623
  onBlur: de(e.onBlur, (_) => {
7650
7624
  _.currentTarget.contains(_.target) || (window.clearTimeout(A.current), D.current = "");
@@ -7672,20 +7646,20 @@ var en = "MenuContent", [nb, Ta] = sr(en), bd = v.forwardRef(
7672
7646
  }
7673
7647
  );
7674
7648
  bd.displayName = en;
7675
- var ib = "MenuGroup", ka = v.forwardRef(
7649
+ var ob = "MenuGroup", ka = v.forwardRef(
7676
7650
  (e, t) => {
7677
7651
  const { __scopeMenu: n, ...r } = e;
7678
7652
  return /* @__PURE__ */ u.jsx(_e.div, { role: "group", ...r, ref: t });
7679
7653
  }
7680
7654
  );
7681
- ka.displayName = ib;
7682
- var ab = "MenuLabel", Sd = v.forwardRef(
7655
+ ka.displayName = ob;
7656
+ var sb = "MenuLabel", Sd = v.forwardRef(
7683
7657
  (e, t) => {
7684
7658
  const { __scopeMenu: n, ...r } = e;
7685
7659
  return /* @__PURE__ */ u.jsx(_e.div, { ...r, ref: t });
7686
7660
  }
7687
7661
  );
7688
- Sd.displayName = ab;
7662
+ Sd.displayName = sb;
7689
7663
  var Jo = "MenuItem", oc = "menu.itemSelect", Ms = v.forwardRef(
7690
7664
  (e, t) => {
7691
7665
  const { disabled: n = !1, onSelect: r, ...o } = e, s = v.useRef(null), i = ho(Jo, e.__scopeMenu), a = Ta(Jo, e.__scopeMenu), l = We(t, s), c = v.useRef(!1), d = () => {
@@ -7731,7 +7705,7 @@ var Cd = v.forwardRef(
7731
7705
  scope: n,
7732
7706
  disabled: r,
7733
7707
  textValue: o ?? p,
7734
- children: /* @__PURE__ */ u.jsx(iw, { asChild: !0, ...a, focusable: !r, children: /* @__PURE__ */ u.jsx(
7708
+ children: /* @__PURE__ */ u.jsx(ow, { asChild: !0, ...a, focusable: !r, children: /* @__PURE__ */ u.jsx(
7735
7709
  _e.div,
7736
7710
  {
7737
7711
  role: "menuitem",
@@ -7757,7 +7731,7 @@ var Cd = v.forwardRef(
7757
7731
  }
7758
7732
  );
7759
7733
  }
7760
- ), lb = "MenuCheckboxItem", Td = v.forwardRef(
7734
+ ), ib = "MenuCheckboxItem", Td = v.forwardRef(
7761
7735
  (e, t) => {
7762
7736
  const { checked: n = !1, onCheckedChange: r, ...o } = e;
7763
7737
  return /* @__PURE__ */ u.jsx(Ad, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ u.jsx(
@@ -7777,21 +7751,21 @@ var Cd = v.forwardRef(
7777
7751
  ) });
7778
7752
  }
7779
7753
  );
7780
- Td.displayName = lb;
7781
- var Id = "MenuRadioGroup", [cb, ub] = sr(
7754
+ Td.displayName = ib;
7755
+ var Id = "MenuRadioGroup", [ab, lb] = sr(
7782
7756
  Id,
7783
7757
  { value: void 0, onValueChange: () => {
7784
7758
  } }
7785
7759
  ), kd = v.forwardRef(
7786
7760
  (e, t) => {
7787
7761
  const { value: n, onValueChange: r, ...o } = e, s = Rt(r);
7788
- return /* @__PURE__ */ u.jsx(cb, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ u.jsx(ka, { ...o, ref: t }) });
7762
+ return /* @__PURE__ */ u.jsx(ab, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ u.jsx(ka, { ...o, ref: t }) });
7789
7763
  }
7790
7764
  );
7791
7765
  kd.displayName = Id;
7792
7766
  var Rd = "MenuRadioItem", Ed = v.forwardRef(
7793
7767
  (e, t) => {
7794
- const { value: n, ...r } = e, o = ub(Rd, e.__scopeMenu), s = n === o.value;
7768
+ const { value: n, ...r } = e, o = lb(Rd, e.__scopeMenu), s = n === o.value;
7795
7769
  return /* @__PURE__ */ u.jsx(Ad, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ u.jsx(
7796
7770
  Ms,
7797
7771
  {
@@ -7813,12 +7787,12 @@ var Rd = "MenuRadioItem", Ed = v.forwardRef(
7813
7787
  }
7814
7788
  );
7815
7789
  Ed.displayName = Rd;
7816
- var Ra = "MenuItemIndicator", [Ad, db] = sr(
7790
+ var Ra = "MenuItemIndicator", [Ad, cb] = sr(
7817
7791
  Ra,
7818
7792
  { checked: !1 }
7819
7793
  ), Nd = v.forwardRef(
7820
7794
  (e, t) => {
7821
- const { __scopeMenu: n, forceMount: r, ...o } = e, s = db(Ra, n);
7795
+ const { __scopeMenu: n, forceMount: r, ...o } = e, s = cb(Ra, n);
7822
7796
  return /* @__PURE__ */ u.jsx(
7823
7797
  nn,
7824
7798
  {
@@ -7836,7 +7810,7 @@ var Ra = "MenuItemIndicator", [Ad, db] = sr(
7836
7810
  }
7837
7811
  );
7838
7812
  Nd.displayName = Ra;
7839
- var fb = "MenuSeparator", _d = v.forwardRef(
7813
+ var ub = "MenuSeparator", _d = v.forwardRef(
7840
7814
  (e, t) => {
7841
7815
  const { __scopeMenu: n, ...r } = e;
7842
7816
  return /* @__PURE__ */ u.jsx(
@@ -7850,15 +7824,15 @@ var fb = "MenuSeparator", _d = v.forwardRef(
7850
7824
  );
7851
7825
  }
7852
7826
  );
7853
- _d.displayName = fb;
7854
- var pb = "MenuArrow", jd = v.forwardRef(
7827
+ _d.displayName = ub;
7828
+ var db = "MenuArrow", jd = v.forwardRef(
7855
7829
  (e, t) => {
7856
7830
  const { __scopeMenu: n, ...r } = e, o = Ps(n);
7857
7831
  return /* @__PURE__ */ u.jsx(ed, { ...o, ...r, ref: t });
7858
7832
  }
7859
7833
  );
7860
- jd.displayName = pb;
7861
- var hb = "MenuSub", [DI, Pd] = sr(hb), $r = "MenuSubTrigger", Md = v.forwardRef(
7834
+ jd.displayName = db;
7835
+ var fb = "MenuSub", [MI, Pd] = sr(fb), $r = "MenuSubTrigger", Md = v.forwardRef(
7862
7836
  (e, t) => {
7863
7837
  const n = ir($r, e.__scopeMenu), r = ho($r, e.__scopeMenu), o = Pd($r, e.__scopeMenu), s = Ta($r, e.__scopeMenu), i = v.useRef(null), { pointerGraceTimerRef: a, onPointerGraceIntentChange: l } = s, c = { __scopeMenu: e.__scopeMenu }, d = v.useCallback(() => {
7864
7838
  i.current && window.clearTimeout(i.current), i.current = null;
@@ -7922,7 +7896,7 @@ var hb = "MenuSub", [DI, Pd] = sr(hb), $r = "MenuSubTrigger", Md = v.forwardRef(
7922
7896
  onKeyDown: de(e.onKeyDown, (f) => {
7923
7897
  var h;
7924
7898
  const p = s.searchRef.current !== "";
7925
- e.disabled || p && f.key === " " || Gw[r.dir].includes(f.key) && (n.onOpenChange(!0), (h = n.content) == null || h.focus(), f.preventDefault());
7899
+ e.disabled || p && f.key === " " || Kw[r.dir].includes(f.key) && (n.onOpenChange(!0), (h = n.content) == null || h.focus(), f.preventDefault());
7926
7900
  })
7927
7901
  }
7928
7902
  ) });
@@ -7957,7 +7931,7 @@ var Od = "MenuSubContent", Dd = v.forwardRef(
7957
7931
  }),
7958
7932
  onKeyDown: de(e.onKeyDown, (d) => {
7959
7933
  var h;
7960
- const f = d.currentTarget.contains(d.target), p = Yw[i.dir].includes(d.key);
7934
+ const f = d.currentTarget.contains(d.target), p = qw[i.dir].includes(d.key);
7961
7935
  f && p && (s.onOpenChange(!1), (h = a.trigger) == null || h.focus(), d.preventDefault());
7962
7936
  })
7963
7937
  }
@@ -7974,24 +7948,24 @@ function Zo(e) {
7974
7948
  function Ea(e) {
7975
7949
  return Zo(e) ? "indeterminate" : e ? "checked" : "unchecked";
7976
7950
  }
7977
- function mb(e) {
7951
+ function pb(e) {
7978
7952
  const t = document.activeElement;
7979
7953
  for (const n of e)
7980
7954
  if (n === t || (n.focus(), document.activeElement !== t)) return;
7981
7955
  }
7982
- function gb(e, t) {
7956
+ function hb(e, t) {
7983
7957
  return e.map((n, r) => e[(t + r) % e.length]);
7984
7958
  }
7985
- function xb(e, t, n) {
7959
+ function mb(e, t, n) {
7986
7960
  const o = t.length > 1 && Array.from(t).every((c) => c === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
7987
- let i = gb(e, Math.max(s, 0));
7961
+ let i = hb(e, Math.max(s, 0));
7988
7962
  o.length === 1 && (i = i.filter((c) => c !== n));
7989
7963
  const l = i.find(
7990
7964
  (c) => c.toLowerCase().startsWith(o.toLowerCase())
7991
7965
  );
7992
7966
  return l !== n ? l : void 0;
7993
7967
  }
7994
- function yb(e, t) {
7968
+ function gb(e, t) {
7995
7969
  const { x: n, y: r } = e;
7996
7970
  let o = !1;
7997
7971
  for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
@@ -8000,18 +7974,18 @@ function yb(e, t) {
8000
7974
  }
8001
7975
  return o;
8002
7976
  }
8003
- function vb(e, t) {
7977
+ function xb(e, t) {
8004
7978
  if (!t) return !1;
8005
7979
  const n = { x: e.clientX, y: e.clientY };
8006
- return yb(n, t);
7980
+ return gb(n, t);
8007
7981
  }
8008
7982
  function Jr(e) {
8009
7983
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
8010
7984
  }
8011
- var wb = yd, bb = Sa, Sb = wd, Cb = bd, Tb = ka, Ib = Sd, kb = Ms, Rb = Td, Eb = kd, Ab = Ed, Nb = Nd, _b = _d, jb = jd, Pb = Md, Mb = Dd, Os = "DropdownMenu", [Ob, LI] = Nn(
7985
+ var yb = yd, vb = Sa, wb = wd, bb = bd, Sb = ka, Cb = Sd, Tb = Ms, Ib = Td, kb = kd, Rb = Ed, Eb = Nd, Ab = _d, Nb = jd, _b = Md, jb = Dd, Os = "DropdownMenu", [Pb, OI] = Nn(
8012
7986
  Os,
8013
7987
  [gd]
8014
- ), $t = gd(), [Db, $d] = Ob(Os), Fd = (e) => {
7988
+ ), $t = gd(), [Mb, $d] = Pb(Os), Fd = (e) => {
8015
7989
  const {
8016
7990
  __scopeDropdownMenu: t,
8017
7991
  children: n,
@@ -8027,7 +8001,7 @@ var wb = yd, bb = Sa, Sb = wd, Cb = bd, Tb = ka, Ib = Sd, kb = Ms, Rb = Td, Eb =
8027
8001
  caller: Os
8028
8002
  });
8029
8003
  return /* @__PURE__ */ u.jsx(
8030
- Db,
8004
+ Mb,
8031
8005
  {
8032
8006
  scope: t,
8033
8007
  triggerId: kn(),
@@ -8037,7 +8011,7 @@ var wb = yd, bb = Sa, Sb = wd, Cb = bd, Tb = ka, Ib = Sd, kb = Ms, Rb = Td, Eb =
8037
8011
  onOpenChange: f,
8038
8012
  onOpenToggle: v.useCallback(() => f((p) => !p), [f]),
8039
8013
  modal: a,
8040
- children: /* @__PURE__ */ u.jsx(wb, { ...l, open: d, onOpenChange: f, dir: r, modal: a, children: n })
8014
+ children: /* @__PURE__ */ u.jsx(yb, { ...l, open: d, onOpenChange: f, dir: r, modal: a, children: n })
8041
8015
  }
8042
8016
  );
8043
8017
  };
@@ -8045,7 +8019,7 @@ Fd.displayName = Os;
8045
8019
  var Bd = "DropdownMenuTrigger", zd = v.forwardRef(
8046
8020
  (e, t) => {
8047
8021
  const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = $d(Bd, n), i = $t(n);
8048
- return /* @__PURE__ */ u.jsx(bb, { asChild: !0, ...i, children: /* @__PURE__ */ u.jsx(
8022
+ return /* @__PURE__ */ u.jsx(vb, { asChild: !0, ...i, children: /* @__PURE__ */ u.jsx(
8049
8023
  _e.button,
8050
8024
  {
8051
8025
  type: "button",
@@ -8069,16 +8043,16 @@ var Bd = "DropdownMenuTrigger", zd = v.forwardRef(
8069
8043
  }
8070
8044
  );
8071
8045
  zd.displayName = Bd;
8072
- var Lb = "DropdownMenuPortal", Hd = (e) => {
8046
+ var Ob = "DropdownMenuPortal", Hd = (e) => {
8073
8047
  const { __scopeDropdownMenu: t, ...n } = e, r = $t(t);
8074
- return /* @__PURE__ */ u.jsx(Sb, { ...r, ...n });
8048
+ return /* @__PURE__ */ u.jsx(wb, { ...r, ...n });
8075
8049
  };
8076
- Hd.displayName = Lb;
8050
+ Hd.displayName = Ob;
8077
8051
  var Ud = "DropdownMenuContent", Wd = v.forwardRef(
8078
8052
  (e, t) => {
8079
8053
  const { __scopeDropdownMenu: n, ...r } = e, o = $d(Ud, n), s = $t(n), i = v.useRef(!1);
8080
8054
  return /* @__PURE__ */ u.jsx(
8081
- Cb,
8055
+ bb,
8082
8056
  {
8083
8057
  id: o.contentId,
8084
8058
  "aria-labelledby": o.triggerId,
@@ -8106,68 +8080,68 @@ var Ud = "DropdownMenuContent", Wd = v.forwardRef(
8106
8080
  }
8107
8081
  );
8108
8082
  Wd.displayName = Ud;
8109
- var $b = "DropdownMenuGroup", Fb = v.forwardRef(
8083
+ var Db = "DropdownMenuGroup", Lb = v.forwardRef(
8110
8084
  (e, t) => {
8111
8085
  const { __scopeDropdownMenu: n, ...r } = e, o = $t(n);
8112
- return /* @__PURE__ */ u.jsx(Tb, { ...o, ...r, ref: t });
8086
+ return /* @__PURE__ */ u.jsx(Sb, { ...o, ...r, ref: t });
8113
8087
  }
8114
8088
  );
8115
- Fb.displayName = $b;
8116
- var Bb = "DropdownMenuLabel", Vd = v.forwardRef(
8089
+ Lb.displayName = Db;
8090
+ var $b = "DropdownMenuLabel", Vd = v.forwardRef(
8117
8091
  (e, t) => {
8118
8092
  const { __scopeDropdownMenu: n, ...r } = e, o = $t(n);
8119
- return /* @__PURE__ */ u.jsx(Ib, { ...o, ...r, ref: t });
8093
+ return /* @__PURE__ */ u.jsx(Cb, { ...o, ...r, ref: t });
8120
8094
  }
8121
8095
  );
8122
- Vd.displayName = Bb;
8123
- var zb = "DropdownMenuItem", Kd = v.forwardRef(
8096
+ Vd.displayName = $b;
8097
+ var Fb = "DropdownMenuItem", Kd = v.forwardRef(
8124
8098
  (e, t) => {
8125
8099
  const { __scopeDropdownMenu: n, ...r } = e, o = $t(n);
8126
- return /* @__PURE__ */ u.jsx(kb, { ...o, ...r, ref: t });
8100
+ return /* @__PURE__ */ u.jsx(Tb, { ...o, ...r, ref: t });
8127
8101
  }
8128
8102
  );
8129
- Kd.displayName = zb;
8130
- var Hb = "DropdownMenuCheckboxItem", qd = v.forwardRef((e, t) => {
8103
+ Kd.displayName = Fb;
8104
+ var Bb = "DropdownMenuCheckboxItem", qd = v.forwardRef((e, t) => {
8131
8105
  const { __scopeDropdownMenu: n, ...r } = e, o = $t(n);
8132
- return /* @__PURE__ */ u.jsx(Rb, { ...o, ...r, ref: t });
8106
+ return /* @__PURE__ */ u.jsx(Ib, { ...o, ...r, ref: t });
8133
8107
  });
8134
- qd.displayName = Hb;
8135
- var Ub = "DropdownMenuRadioGroup", Wb = v.forwardRef((e, t) => {
8108
+ qd.displayName = Bb;
8109
+ var zb = "DropdownMenuRadioGroup", Hb = v.forwardRef((e, t) => {
8136
8110
  const { __scopeDropdownMenu: n, ...r } = e, o = $t(n);
8137
- return /* @__PURE__ */ u.jsx(Eb, { ...o, ...r, ref: t });
8111
+ return /* @__PURE__ */ u.jsx(kb, { ...o, ...r, ref: t });
8138
8112
  });
8139
- Wb.displayName = Ub;
8140
- var Vb = "DropdownMenuRadioItem", Gd = v.forwardRef((e, t) => {
8113
+ Hb.displayName = zb;
8114
+ var Ub = "DropdownMenuRadioItem", Gd = v.forwardRef((e, t) => {
8141
8115
  const { __scopeDropdownMenu: n, ...r } = e, o = $t(n);
8142
- return /* @__PURE__ */ u.jsx(Ab, { ...o, ...r, ref: t });
8116
+ return /* @__PURE__ */ u.jsx(Rb, { ...o, ...r, ref: t });
8143
8117
  });
8144
- Gd.displayName = Vb;
8145
- var Kb = "DropdownMenuItemIndicator", Yd = v.forwardRef((e, t) => {
8118
+ Gd.displayName = Ub;
8119
+ var Wb = "DropdownMenuItemIndicator", Yd = v.forwardRef((e, t) => {
8146
8120
  const { __scopeDropdownMenu: n, ...r } = e, o = $t(n);
8147
- return /* @__PURE__ */ u.jsx(Nb, { ...o, ...r, ref: t });
8121
+ return /* @__PURE__ */ u.jsx(Eb, { ...o, ...r, ref: t });
8148
8122
  });
8149
- Yd.displayName = Kb;
8150
- var qb = "DropdownMenuSeparator", Xd = v.forwardRef((e, t) => {
8123
+ Yd.displayName = Wb;
8124
+ var Vb = "DropdownMenuSeparator", Xd = v.forwardRef((e, t) => {
8151
8125
  const { __scopeDropdownMenu: n, ...r } = e, o = $t(n);
8152
- return /* @__PURE__ */ u.jsx(_b, { ...o, ...r, ref: t });
8126
+ return /* @__PURE__ */ u.jsx(Ab, { ...o, ...r, ref: t });
8153
8127
  });
8154
- Xd.displayName = qb;
8155
- var Gb = "DropdownMenuArrow", Yb = v.forwardRef(
8128
+ Xd.displayName = Vb;
8129
+ var Kb = "DropdownMenuArrow", qb = v.forwardRef(
8156
8130
  (e, t) => {
8157
8131
  const { __scopeDropdownMenu: n, ...r } = e, o = $t(n);
8158
- return /* @__PURE__ */ u.jsx(jb, { ...o, ...r, ref: t });
8132
+ return /* @__PURE__ */ u.jsx(Nb, { ...o, ...r, ref: t });
8159
8133
  }
8160
8134
  );
8161
- Yb.displayName = Gb;
8162
- var Xb = "DropdownMenuSubTrigger", Jd = v.forwardRef((e, t) => {
8135
+ qb.displayName = Kb;
8136
+ var Gb = "DropdownMenuSubTrigger", Jd = v.forwardRef((e, t) => {
8163
8137
  const { __scopeDropdownMenu: n, ...r } = e, o = $t(n);
8164
- return /* @__PURE__ */ u.jsx(Pb, { ...o, ...r, ref: t });
8138
+ return /* @__PURE__ */ u.jsx(_b, { ...o, ...r, ref: t });
8165
8139
  });
8166
- Jd.displayName = Xb;
8167
- var Jb = "DropdownMenuSubContent", Zd = v.forwardRef((e, t) => {
8140
+ Jd.displayName = Gb;
8141
+ var Yb = "DropdownMenuSubContent", Zd = v.forwardRef((e, t) => {
8168
8142
  const { __scopeDropdownMenu: n, ...r } = e, o = $t(n);
8169
8143
  return /* @__PURE__ */ u.jsx(
8170
- Mb,
8144
+ jb,
8171
8145
  {
8172
8146
  ...o,
8173
8147
  ...r,
@@ -8183,9 +8157,9 @@ var Jb = "DropdownMenuSubContent", Zd = v.forwardRef((e, t) => {
8183
8157
  }
8184
8158
  );
8185
8159
  });
8186
- Zd.displayName = Jb;
8187
- var Zb = Fd, Qb = zd, e0 = Hd, Qd = Wd, ef = Vd, tf = Kd, nf = qd, rf = Gd, of = Yd, sf = Xd, af = Jd, lf = Zd;
8188
- const t0 = Zb, n0 = Qb, r0 = v.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ u.jsxs(
8160
+ Zd.displayName = Yb;
8161
+ var Xb = Fd, Jb = zd, Zb = Hd, Qd = Wd, ef = Vd, tf = Kd, nf = qd, rf = Gd, of = Yd, sf = Xd, af = Jd, lf = Zd;
8162
+ const Qb = Xb, e0 = Jb, t0 = v.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ u.jsxs(
8189
8163
  af,
8190
8164
  {
8191
8165
  ref: o,
@@ -8201,8 +8175,8 @@ const t0 = Zb, n0 = Qb, r0 = v.forwardRef(({ className: e, inset: t, children: n
8201
8175
  ]
8202
8176
  }
8203
8177
  ));
8204
- r0.displayName = af.displayName;
8205
- const o0 = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
8178
+ t0.displayName = af.displayName;
8179
+ const n0 = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
8206
8180
  lf,
8207
8181
  {
8208
8182
  ref: n,
@@ -8213,8 +8187,8 @@ const o0 = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
8213
8187
  ...t
8214
8188
  }
8215
8189
  ));
8216
- o0.displayName = lf.displayName;
8217
- const cf = v.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ u.jsx(e0, { children: /* @__PURE__ */ u.jsx(
8190
+ n0.displayName = lf.displayName;
8191
+ const cf = v.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ u.jsx(Zb, { children: /* @__PURE__ */ u.jsx(
8218
8192
  Qd,
8219
8193
  {
8220
8194
  ref: r,
@@ -8240,7 +8214,7 @@ const Bi = v.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
8240
8214
  }
8241
8215
  ));
8242
8216
  Bi.displayName = tf.displayName;
8243
- const s0 = v.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ u.jsxs(
8217
+ const r0 = v.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ u.jsxs(
8244
8218
  nf,
8245
8219
  {
8246
8220
  ref: o,
@@ -8256,8 +8230,8 @@ const s0 = v.forwardRef(({ className: e, children: t, checked: n, ...r }, o) =>
8256
8230
  ]
8257
8231
  }
8258
8232
  ));
8259
- s0.displayName = nf.displayName;
8260
- const i0 = v.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ u.jsxs(
8233
+ r0.displayName = nf.displayName;
8234
+ const o0 = v.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ u.jsxs(
8261
8235
  rf,
8262
8236
  {
8263
8237
  ref: r,
@@ -8272,8 +8246,8 @@ const i0 = v.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
8272
8246
  ]
8273
8247
  }
8274
8248
  ));
8275
- i0.displayName = rf.displayName;
8276
- const a0 = v.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ u.jsx(
8249
+ o0.displayName = rf.displayName;
8250
+ const s0 = v.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ u.jsx(
8277
8251
  ef,
8278
8252
  {
8279
8253
  ref: r,
@@ -8285,8 +8259,8 @@ const a0 = v.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
8285
8259
  ...n
8286
8260
  }
8287
8261
  ));
8288
- a0.displayName = ef.displayName;
8289
- const l0 = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
8262
+ s0.displayName = ef.displayName;
8263
+ const i0 = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
8290
8264
  sf,
8291
8265
  {
8292
8266
  ref: n,
@@ -8294,8 +8268,8 @@ const l0 = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
8294
8268
  ...t
8295
8269
  }
8296
8270
  ));
8297
- l0.displayName = sf.displayName;
8298
- function c0(e) {
8271
+ i0.displayName = sf.displayName;
8272
+ function a0(e) {
8299
8273
  const t = /* @__PURE__ */ new Map();
8300
8274
  console.log("[attemptDetection] groupCheckpointsByLastUserMessageId processing", e.length, "checkpoints");
8301
8275
  for (const n of e) {
@@ -8314,9 +8288,9 @@ function c0(e) {
8314
8288
  }))
8315
8289
  }), t;
8316
8290
  }
8317
- function u0(e) {
8291
+ function l0(e) {
8318
8292
  console.log("[attemptDetection] buildAttemptMetadataMap called with", e.length, "checkpoints");
8319
- const t = /* @__PURE__ */ new Map(), n = c0(e);
8293
+ const t = /* @__PURE__ */ new Map(), n = a0(e);
8320
8294
  console.log("[attemptDetection] Grouped into", n.size, "unique user message IDs");
8321
8295
  for (const [r, o] of n.entries())
8322
8296
  o.length > 1 && console.log(`[attemptDetection] User message "${r}" found in ${o.length} checkpoints (EDITS DETECTED)`, {
@@ -8357,7 +8331,7 @@ function u0(e) {
8357
8331
  }))
8358
8332
  }), t;
8359
8333
  }
8360
- function d0(e) {
8334
+ function c0(e) {
8361
8335
  const t = /* @__PURE__ */ new Map();
8362
8336
  for (const [n, r] of e.entries())
8363
8337
  if (r.baseUserMessageId && r.attemptCount > 1) {
@@ -8376,12 +8350,12 @@ function $o(e, t) {
8376
8350
  const n = e[t];
8377
8351
  return typeof n == "number" ? n : null;
8378
8352
  }
8379
- function f0(e, t) {
8353
+ function u0(e, t) {
8380
8354
  if (!e || typeof e != "object") return null;
8381
8355
  const n = e[t];
8382
8356
  return typeof n == "string" && n.trim() ? n : null;
8383
8357
  }
8384
- function p0(e) {
8358
+ function d0(e) {
8385
8359
  if (!Array.isArray(e) || e.length === 0)
8386
8360
  return null;
8387
8361
  const t = e.map((n) => {
@@ -8396,9 +8370,9 @@ function p0(e) {
8396
8370
  }).filter((n) => !!(n && n.length));
8397
8371
  return t.length ? t.join(", ") : null;
8398
8372
  }
8399
- function h0(e) {
8373
+ function f0(e) {
8400
8374
  const t = Array.isArray(e) ? e.map((r) => {
8401
- const o = p0(r.next);
8375
+ const o = d0(r.next);
8402
8376
  return o ? {
8403
8377
  ...r,
8404
8378
  metadata: {
@@ -8415,9 +8389,9 @@ function h0(e) {
8415
8389
  return Number.isNaN(a) || Number.isNaN(l) ? 0 : l - a;
8416
8390
  }), t;
8417
8391
  }
8418
- function m0(e) {
8392
+ function p0(e) {
8419
8393
  const t = Le(
8420
- () => h0(e),
8394
+ () => f0(e),
8421
8395
  [e]
8422
8396
  ), { checkpointMetaById: n, checkpointIndexByKey: r, attemptMetaById: o, userMessageIdToAttempts: s } = Le(
8423
8397
  () => {
@@ -8425,7 +8399,7 @@ function m0(e) {
8425
8399
  for (const f of t) {
8426
8400
  const p = f.checkpointId ?? null;
8427
8401
  if (!p) continue;
8428
- const h = $o(f.metadata, "step"), m = f0(f.metadata, "source"), g = {
8402
+ const h = $o(f.metadata, "step"), m = u0(f.metadata, "source"), g = {
8429
8403
  id: p,
8430
8404
  step: h,
8431
8405
  source: m,
@@ -8443,7 +8417,7 @@ function m0(e) {
8443
8417
  t.length,
8444
8418
  "checkpoints"
8445
8419
  );
8446
- const c = u0(t);
8420
+ const c = l0(t);
8447
8421
  for (const [f, p] of i.entries()) {
8448
8422
  const h = c.get(f);
8449
8423
  h ? l.set(f, {
@@ -8469,7 +8443,7 @@ function m0(e) {
8469
8443
  attemptCount: p.attemptCount
8470
8444
  }))
8471
8445
  });
8472
- const d = d0(l);
8446
+ const d = c0(l);
8473
8447
  return console.log(
8474
8448
  "[useCheckpointMetadata] userMessageIdToAttempts map built with",
8475
8449
  d.size,
@@ -8486,7 +8460,7 @@ function m0(e) {
8486
8460
  };
8487
8461
  }
8488
8462
  const Fo = 1e4;
8489
- function g0(e) {
8463
+ function h0(e) {
8490
8464
  if (typeof e != "string")
8491
8465
  return String(e);
8492
8466
  const t = [
@@ -8513,22 +8487,22 @@ function g0(e) {
8513
8487
  `).replace(/<li>(.*?)<\/li>/gi, `- $1
8514
8488
  `).trim() : n.replace(/</g, "&lt;").replace(/>/g, "&gt;").trim();
8515
8489
  }
8516
- function x0(e, t = Fo) {
8490
+ function m0(e, t = Fo) {
8517
8491
  if (!e || typeof e != "string")
8518
8492
  throw new Error("Invalid content: must be a non-empty string");
8519
8493
  if (e.length > t)
8520
8494
  throw new Error(`Message exceeds maximum length of ${t} characters`);
8521
8495
  return e;
8522
8496
  }
8523
- function y0(e) {
8497
+ function g0(e) {
8524
8498
  let t;
8525
- return typeof e == "string" ? t = e : typeof e == "object" && e !== null ? t = JSON.stringify(e) : t = String(e), x0(t), g0(t);
8499
+ return typeof e == "string" ? t = e : typeof e == "object" && e !== null ? t = JSON.stringify(e) : t = String(e), m0(t), h0(t);
8526
8500
  }
8527
8501
  const Ds = 0, Bn = 1, Ar = 2, uf = 4;
8528
8502
  function sc(e) {
8529
8503
  return () => e;
8530
8504
  }
8531
- function v0(e) {
8505
+ function x0(e) {
8532
8506
  e();
8533
8507
  }
8534
8508
  function df(e, t) {
@@ -8537,15 +8511,15 @@ function df(e, t) {
8537
8511
  function ic(e, t) {
8538
8512
  return () => e(t);
8539
8513
  }
8540
- function w0(e, t) {
8514
+ function y0(e, t) {
8541
8515
  return (n) => e(t, n);
8542
8516
  }
8543
8517
  function Aa(e) {
8544
8518
  return e !== void 0;
8545
8519
  }
8546
- function b0(...e) {
8520
+ function v0(...e) {
8547
8521
  return () => {
8548
- e.map(v0);
8522
+ e.map(x0);
8549
8523
  };
8550
8524
  }
8551
8525
  function Nr() {
@@ -8553,7 +8527,7 @@ function Nr() {
8553
8527
  function Ls(e, t) {
8554
8528
  return t(e), e;
8555
8529
  }
8556
- function S0(e, t) {
8530
+ function w0(e, t) {
8557
8531
  return t(e);
8558
8532
  }
8559
8533
  function dt(...e) {
@@ -8572,7 +8546,7 @@ function bt(e) {
8572
8546
  return e(uf);
8573
8547
  }
8574
8548
  function he(e, t) {
8575
- return nt(e, w0(t, Ds));
8549
+ return nt(e, y0(t, Ds));
8576
8550
  }
8577
8551
  function ln(e, t) {
8578
8552
  const n = e(Bn, (r) => {
@@ -8611,7 +8585,7 @@ function mn(e) {
8611
8585
  };
8612
8586
  }
8613
8587
  function W(e, ...t) {
8614
- const n = C0(...t);
8588
+ const n = b0(...t);
8615
8589
  return (r, o) => {
8616
8590
  switch (r) {
8617
8591
  case Ar:
@@ -8657,10 +8631,10 @@ function Fe(...e) {
8657
8631
  n === o ? a() : r = a;
8658
8632
  };
8659
8633
  }
8660
- function C0(...e) {
8661
- return (t) => e.reduceRight(S0, t);
8634
+ function b0(...e) {
8635
+ return (t) => e.reduceRight(w0, t);
8662
8636
  }
8663
- function T0(e) {
8637
+ function S0(e) {
8664
8638
  let t, n;
8665
8639
  const r = () => t == null ? void 0 : t();
8666
8640
  return function(o, s) {
@@ -8721,12 +8695,12 @@ function Xe(e, t = [], { singleton: n } = { singleton: !0 }) {
8721
8695
  return {
8722
8696
  constructor: e,
8723
8697
  dependencies: t,
8724
- id: I0(),
8698
+ id: C0(),
8725
8699
  singleton: n
8726
8700
  };
8727
8701
  }
8728
- const I0 = () => Symbol();
8729
- function k0(e) {
8702
+ const C0 = () => Symbol();
8703
+ function T0(e) {
8730
8704
  const t = /* @__PURE__ */ new Map(), n = ({ constructor: r, dependencies: o, id: s, singleton: i }) => {
8731
8705
  if (i && t.has(s))
8732
8706
  return t.get(s);
@@ -8764,17 +8738,17 @@ function zi(...e) {
8764
8738
  case Ar:
8765
8739
  return;
8766
8740
  case Bn:
8767
- return b0(...e.map((r) => nt(r, n)));
8741
+ return v0(...e.map((r) => nt(r, n)));
8768
8742
  }
8769
8743
  };
8770
8744
  }
8771
8745
  var Ht = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(Ht || {});
8772
- const R0 = {
8746
+ const I0 = {
8773
8747
  0: "debug",
8774
8748
  3: "error",
8775
8749
  1: "log",
8776
8750
  2: "warn"
8777
- }, E0 = () => typeof globalThis > "u" ? window : globalThis, zn = Xe(
8751
+ }, k0 = () => typeof globalThis > "u" ? window : globalThis, zn = Xe(
8778
8752
  () => {
8779
8753
  const e = ee(
8780
8754
  3
@@ -8783,8 +8757,8 @@ const R0 = {
8783
8757
  return {
8784
8758
  log: ee((t, n, r = 1) => {
8785
8759
  var o;
8786
- const s = (o = E0().VIRTUOSO_LOG_LEVEL) != null ? o : bt(e);
8787
- r >= s && console[R0[r]](
8760
+ const s = (o = k0().VIRTUOSO_LOG_LEVEL) != null ? o : bt(e);
8761
+ r >= s && console[I0[r]](
8788
8762
  "%creact-virtuoso: %c%s %o",
8789
8763
  "color: #0253b3; font-weight: bold",
8790
8764
  "color: initial",
@@ -8816,10 +8790,10 @@ function _a(e, t, n) {
8816
8790
  i && t ? (s == null || s.observe(i), r.current = i) : (r.current && (s == null || s.unobserve(r.current)), r.current = null);
8817
8791
  }, { callbackRef: o, ref: r };
8818
8792
  }
8819
- function A0(e, t, n, r, o, s, i, a, l) {
8793
+ function R0(e, t, n, r, o, s, i, a, l) {
8820
8794
  const c = Q.useCallback(
8821
8795
  (d) => {
8822
- const f = N0(d.children, t, a ? "offsetWidth" : "offsetHeight", o);
8796
+ const f = E0(d.children, t, a ? "offsetWidth" : "offsetHeight", o);
8823
8797
  let p = d.parentElement;
8824
8798
  for (; !p.dataset.virtuosoScroller; )
8825
8799
  p = p.parentElement;
@@ -8839,7 +8813,7 @@ function A0(e, t, n, r, o, s, i, a, l) {
8839
8813
  );
8840
8814
  return _a(c, n, l);
8841
8815
  }
8842
- function N0(e, t, n, r) {
8816
+ function E0(e, t, n, r) {
8843
8817
  const o = e.length;
8844
8818
  if (o === 0)
8845
8819
  return null;
@@ -8982,7 +8956,7 @@ function $s(e, t, n) {
8982
8956
  if (at(e))
8983
8957
  return [];
8984
8958
  const r = dn(e, t)[0];
8985
- return _0(Ui(e, r, n));
8959
+ return A0(Ui(e, r, n));
8986
8960
  }
8987
8961
  function Hi(e, t) {
8988
8962
  if (at(e)) return Zr;
@@ -9074,7 +9048,7 @@ function Wi(e) {
9074
9048
  const { lvl: t, r: n } = e;
9075
9049
  return !at(n) && !at(n.r) && n.lvl === t && n.r.lvl === t ? It(n, { l: It(e, { r: n.l }), lvl: t + 1 }) : e;
9076
9050
  }
9077
- function _0(e) {
9051
+ function A0(e) {
9078
9052
  return hf(e, ({ k: t, v: n }) => ({ index: t, value: n }));
9079
9053
  }
9080
9054
  function vf(e, t) {
@@ -9109,7 +9083,7 @@ function Qo(e, t, n, r = 0) {
9109
9083
  }
9110
9084
  throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`);
9111
9085
  }
9112
- function j0(e, t, n, r) {
9086
+ function N0(e, t, n, r) {
9113
9087
  const o = Qo(e, t, r), s = Qo(e, n, r, o);
9114
9088
  return e.slice(o, s + 1);
9115
9089
  }
@@ -9122,7 +9096,7 @@ function Fs(e) {
9122
9096
  function Pa({ index: e }, t) {
9123
9097
  return t === e ? 0 : t < e ? -1 : 1;
9124
9098
  }
9125
- function P0() {
9099
+ function _0() {
9126
9100
  return {
9127
9101
  groupIndices: [],
9128
9102
  groupOffsetTree: yr(),
@@ -9133,7 +9107,7 @@ function P0() {
9133
9107
  sizeTree: yr()
9134
9108
  };
9135
9109
  }
9136
- function M0(e, t) {
9110
+ function j0(e, t) {
9137
9111
  let n = at(e) ? 0 : 1 / 0;
9138
9112
  for (const r of t) {
9139
9113
  const { endIndex: o, size: s, startIndex: i } = r;
@@ -9142,7 +9116,7 @@ function M0(e, t) {
9142
9116
  continue;
9143
9117
  }
9144
9118
  const a = $s(e, i - 1, o + 1);
9145
- if (a.some(z0(r)))
9119
+ if (a.some(F0(r)))
9146
9120
  continue;
9147
9121
  let l = !1, c = !1;
9148
9122
  for (const { end: d, start: f, value: p } of a)
@@ -9151,10 +9125,10 @@ function M0(e, t) {
9151
9125
  }
9152
9126
  return [e, n];
9153
9127
  }
9154
- function O0(e) {
9128
+ function P0(e) {
9155
9129
  return typeof e.groupIndex < "u";
9156
9130
  }
9157
- function D0({ offset: e }, t) {
9131
+ function M0({ offset: e }, t) {
9158
9132
  return t === e ? 0 : t < e ? -1 : 1;
9159
9133
  }
9160
9134
  function to(e, t, n) {
@@ -9172,7 +9146,7 @@ function bf(e, t) {
9172
9146
  return e + n;
9173
9147
  }
9174
9148
  function Sf(e, t, n) {
9175
- if (O0(e))
9149
+ if (P0(e))
9176
9150
  return t.groupIndices[e.groupIndex] + 1;
9177
9151
  {
9178
9152
  const r = e.index === "LAST" ? n : e.index;
@@ -9180,10 +9154,10 @@ function Sf(e, t, n) {
9180
9154
  return o = Math.max(0, o, Math.min(n, o)), o;
9181
9155
  }
9182
9156
  }
9183
- function L0(e, t, n, r = 0) {
9184
- return r > 0 && (t = Math.max(t, wf(e, r, Pa).offset)), hf(j0(e, t, n, D0), B0);
9157
+ function O0(e, t, n, r = 0) {
9158
+ return r > 0 && (t = Math.max(t, wf(e, r, Pa).offset)), hf(N0(e, t, n, M0), $0);
9185
9159
  }
9186
- function $0(e, [t, n, r, o]) {
9160
+ function D0(e, [t, n, r, o]) {
9187
9161
  t.length > 0 && r("received item sizes", t, Ht.DEBUG);
9188
9162
  const s = e.sizeTree;
9189
9163
  let i = s, a = 0;
@@ -9191,7 +9165,7 @@ function $0(e, [t, n, r, o]) {
9191
9165
  const p = t[0].size, h = t[1].size;
9192
9166
  i = n.reduce((m, g) => Kt(Kt(m, g, p), g + 1, h), i);
9193
9167
  } else
9194
- [i, a] = M0(i, t);
9168
+ [i, a] = j0(i, t);
9195
9169
  if (i === s)
9196
9170
  return e;
9197
9171
  const { lastIndex: l, lastOffset: c, lastSize: d, offsetTree: f } = Vi(e.offsetTree, a, i, o);
@@ -9205,7 +9179,7 @@ function $0(e, [t, n, r, o]) {
9205
9179
  sizeTree: i
9206
9180
  };
9207
9181
  }
9208
- function F0(e) {
9182
+ function L0(e) {
9209
9183
  return Yn(e).map(({ k: t, v: n }, r, o) => {
9210
9184
  const s = o[r + 1];
9211
9185
  return { endIndex: s ? s.k - 1 : 1 / 0, size: n, startIndex: t };
@@ -9240,20 +9214,20 @@ function Vi(e, t, n, r) {
9240
9214
  offsetTree: o
9241
9215
  };
9242
9216
  }
9243
- function B0(e) {
9217
+ function $0(e) {
9244
9218
  return { index: e.index, value: e };
9245
9219
  }
9246
- function z0(e) {
9220
+ function F0(e) {
9247
9221
  const { endIndex: t, size: n, startIndex: r } = e;
9248
9222
  return (o) => o.start === r && (o.end === t || o.end === 1 / 0) && o.value === n;
9249
9223
  }
9250
- const H0 = {
9224
+ const B0 = {
9251
9225
  offsetHeight: "height",
9252
9226
  offsetWidth: "width"
9253
9227
  }, Sn = Xe(
9254
9228
  ([{ log: e }, { recalcInProgress: t }]) => {
9255
- const n = Ue(), r = Ue(), o = Ot(r, 0), s = Ue(), i = Ue(), a = ee(0), l = ee([]), c = ee(void 0), d = ee(void 0), f = ee((b, C) => Ln(b, H0[C])), p = ee(void 0), h = ee(0), m = P0(), g = Ot(
9256
- W(n, Fe(l, e, h), yn($0, m), ut()),
9229
+ const n = Ue(), r = Ue(), o = Ot(r, 0), s = Ue(), i = Ue(), a = ee(0), l = ee([]), c = ee(void 0), d = ee(void 0), f = ee((b, C) => Ln(b, B0[C])), p = ee(void 0), h = ee(0), m = _0(), g = Ot(
9230
+ W(n, Fe(l, e, h), yn(D0, m), ut()),
9257
9231
  m
9258
9232
  ), y = Ot(
9259
9233
  W(
@@ -9486,7 +9460,7 @@ const H0 = {
9486
9460
  dt(zn, ja),
9487
9461
  { singleton: !0 }
9488
9462
  );
9489
- function U0(e) {
9463
+ function z0(e) {
9490
9464
  return e.reduce(
9491
9465
  (t, n) => (t.groupIndices.push(t.totalCount), t.totalCount += n + 1, t),
9492
9466
  {
@@ -9497,7 +9471,7 @@ function U0(e) {
9497
9471
  }
9498
9472
  const Cf = Xe(
9499
9473
  ([{ groupIndices: e, sizes: t, totalCount: n }, { headerHeight: r, scrollTop: o }]) => {
9500
- const s = Ue(), i = Ue(), a = Gt(W(s, ce(U0)));
9474
+ const s = Ue(), i = Ue(), a = Gt(W(s, ce(z0)));
9501
9475
  return he(
9502
9476
  W(
9503
9477
  a,
@@ -9537,10 +9511,10 @@ const Cf = Xe(
9537
9511
  },
9538
9512
  dt(zn),
9539
9513
  { singleton: !0 }
9540
- ), W0 = typeof document < "u" && "scrollBehavior" in document.documentElement.style;
9514
+ ), H0 = typeof document < "u" && "scrollBehavior" in document.documentElement.style;
9541
9515
  function Tf(e) {
9542
9516
  const t = typeof e == "number" ? { index: e } : e;
9543
- return t.align || (t.align = "start"), (!t.behavior || !W0) && (t.behavior = "auto"), t.offset || (t.offset = 0), t;
9517
+ return t.align || (t.align = "start"), (!t.behavior || !H0) && (t.behavior = "auto"), t.offset || (t.offset = 0), t;
9544
9518
  }
9545
9519
  const mo = Xe(
9546
9520
  ([
@@ -9588,7 +9562,7 @@ const mo = Xe(
9588
9562
  se(we);
9589
9563
  });
9590
9564
  } else
9591
- y = ln(W(t, V0(150)), se);
9565
+ y = ln(W(t, U0(150)), se);
9592
9566
  return x = setTimeout(() => {
9593
9567
  S();
9594
9568
  }, 1200), Me(l, !0), j("scrolling from index to", { behavior: V, index: q, top: Y }, Ht.DEBUG), { behavior: V, top: Y };
@@ -9605,7 +9579,7 @@ const mo = Xe(
9605
9579
  dt(Sn, Ft, zn),
9606
9580
  { singleton: !0 }
9607
9581
  );
9608
- function V0(e) {
9582
+ function U0(e) {
9609
9583
  return (t) => {
9610
9584
  const n = setTimeout(() => {
9611
9585
  t(!1);
@@ -9671,7 +9645,7 @@ const go = Xe(
9671
9645
  function If(e, t) {
9672
9646
  return Math.abs(e - t) < 1.01;
9673
9647
  }
9674
- const no = "up", zr = "down", K0 = "none", q0 = {
9648
+ const no = "up", zr = "down", W0 = "none", V0 = {
9675
9649
  atBottom: !1,
9676
9650
  notAtBottomBecause: "NOT_SHOWING_LAST_ITEM",
9677
9651
  state: {
@@ -9680,8 +9654,8 @@ const no = "up", zr = "down", K0 = "none", q0 = {
9680
9654
  scrollTop: 0,
9681
9655
  viewportHeight: 0
9682
9656
  }
9683
- }, G0 = 0, xo = Xe(([{ footerHeight: e, headerHeight: t, scrollBy: n, scrollContainerState: r, scrollTop: o, viewportHeight: s }]) => {
9684
- const i = ee(!1), a = ee(!0), l = Ue(), c = Ue(), d = ee(4), f = ee(G0), p = Ot(
9657
+ }, K0 = 0, xo = Xe(([{ footerHeight: e, headerHeight: t, scrollBy: n, scrollContainerState: r, scrollTop: o, viewportHeight: s }]) => {
9658
+ const i = ee(!1), a = ee(!0), l = Ue(), c = Ue(), d = ee(4), f = ee(K0), p = Ot(
9685
9659
  W(
9686
9660
  zi(W(Te(o), tr(1), mn(!0)), W(Te(o), tr(1), mn(!1), ac(100))),
9687
9661
  ut()
@@ -9723,7 +9697,7 @@ const no = "up", zr = "down", K0 = "none", q0 = {
9723
9697
  notAtBottomBecause: j,
9724
9698
  state: D
9725
9699
  };
9726
- }, q0),
9700
+ }, V0),
9727
9701
  ut((w, S) => w && w.atBottom === S.atBottom)
9728
9702
  )
9729
9703
  ), g = Ot(
@@ -9780,7 +9754,7 @@ const no = "up", zr = "down", K0 = "none", q0 = {
9780
9754
  ce((w) => w.direction)
9781
9755
  ),
9782
9756
  y
9783
- ), he(W(r, In(50), mn(K0)), y);
9757
+ ), he(W(r, In(50), mn(W0)), y);
9784
9758
  const x = ee(0);
9785
9759
  return he(
9786
9760
  W(
@@ -9874,7 +9848,7 @@ const Da = Xe(
9874
9848
  dt(Ft),
9875
9849
  { singleton: !0 }
9876
9850
  );
9877
- function Y0(e, t, n) {
9851
+ function q0(e, t, n) {
9878
9852
  if (Fs(t)) {
9879
9853
  const r = bf(e, t);
9880
9854
  return [
@@ -10011,7 +9985,7 @@ const lr = Xe(
10011
9985
  return _ === 0 ? { ...gi, totalCount: R } : kf(_, D, A, $, E, F || []);
10012
9986
  if (at(B))
10013
9987
  return _ > 0 ? null : zo(
10014
- Y0(Oa(D, R), N, F),
9988
+ q0(Oa(D, R), N, F),
10015
9989
  [],
10016
9990
  R,
10017
9991
  E,
@@ -10030,7 +10004,7 @@ const lr = Xe(
10030
10004
  }
10031
10005
  if (!j)
10032
10006
  return zo([], q, R, E, N, $);
10033
- const Y = M.length > 0 ? M[M.length - 1] + 1 : 0, se = L0(V, C, I, Y);
10007
+ const Y = M.length > 0 ? M[M.length - 1] + 1 : 0, se = O0(V, C, I, Y);
10034
10008
  if (se.length === 0)
10035
10009
  return null;
10036
10010
  const we = R - 1, ke = Ls([], (G) => {
@@ -10146,7 +10120,7 @@ const lr = Xe(
10146
10120
  },
10147
10121
  dt(Ft, lr),
10148
10122
  { singleton: !0 }
10149
- ), X0 = Xe(
10123
+ ), G0 = Xe(
10150
10124
  ([{ viewportHeight: e }, { totalListHeight: t }]) => {
10151
10125
  const n = ee(!1), r = Ot(
10152
10126
  W(
@@ -10164,7 +10138,7 @@ const lr = Xe(
10164
10138
  { singleton: !0 }
10165
10139
  ), Ef = Xe(() => ({
10166
10140
  context: ee(null)
10167
- })), J0 = ({
10141
+ })), Y0 = ({
10168
10142
  itemBottom: e,
10169
10143
  itemTop: t,
10170
10144
  locationParams: { align: n, behavior: r, ...o },
@@ -10183,7 +10157,7 @@ const lr = Xe(
10183
10157
  Fe(t, l, n, s, o, r, a),
10184
10158
  Fe(e),
10185
10159
  ce(([[f, p, h, m, g, y, x, w], S]) => {
10186
- const { align: T, behavior: b, calculateViewLocation: C = J0, done: I, ...R } = f, A = Sf(f, p, m - 1), D = to(A, p.offsetTree, S) + g + y, j = D + dn(p.sizeTree, A)[1], M = w + y, $ = w + h - x, E = C({
10160
+ const { align: T, behavior: b, calculateViewLocation: C = Y0, done: I, ...R } = f, A = Sf(f, p, m - 1), D = to(A, p.offsetTree, S) + g + y, j = D + dn(p.sizeTree, A)[1], M = w + y, $ = w + h - x, E = C({
10187
10161
  itemBottom: j,
10188
10162
  itemTop: D,
10189
10163
  locationParams: { align: T, behavior: b, ...R },
@@ -10214,7 +10188,7 @@ const lr = Xe(
10214
10188
  function mc(e) {
10215
10189
  return e ? e === "smooth" ? "smooth" : "auto" : !1;
10216
10190
  }
10217
- const Z0 = (e, t) => typeof e == "function" ? mc(e(t)) : t && mc(e), Q0 = Xe(
10191
+ const X0 = (e, t) => typeof e == "function" ? mc(e(t)) : t && mc(e), J0 = Xe(
10218
10192
  ([
10219
10193
  { listRefresh: e, totalCount: t, fixedItemSize: n, data: r },
10220
10194
  { atBottomState: o, isAtBottom: s },
@@ -10241,7 +10215,7 @@ const Z0 = (e, t) => typeof e == "function" ? mc(e(t)) : t && mc(e), Q0 = Xe(
10241
10215
  Fe(Te(m), s, a, f),
10242
10216
  ce(([[b, C], I, R, A, D]) => {
10243
10217
  let j = C && A, M = "auto";
10244
- return j && (M = Z0(I, R || D), j = j && !!M), { followOutputBehavior: M, shouldFollow: j, totalCount: b };
10218
+ return j && (M = X0(I, R || D), j = j && !!M), { followOutputBehavior: M, shouldFollow: j, totalCount: b };
10245
10219
  }),
10246
10220
  Ie(({ shouldFollow: b }) => b)
10247
10221
  ),
@@ -10319,7 +10293,7 @@ const Z0 = (e, t) => typeof e == "function" ? mc(e(t)) : t && mc(e), Q0 = Xe(
10319
10293
  Ef,
10320
10294
  Af
10321
10295
  )
10322
- ), eS = Xe(
10296
+ ), Z0 = Xe(
10323
10297
  ([{ data: e, firstItemIndex: t, gap: n, sizes: r }, { initialTopMostItemIndex: o }, { initialItemCount: s, listState: i }, { didMount: a }]) => (he(
10324
10298
  W(
10325
10299
  a,
@@ -10332,7 +10306,7 @@ const Z0 = (e, t) => typeof e == "function" ? mc(e(t)) : t && mc(e), Q0 = Xe(
10332
10306
  ), {}),
10333
10307
  dt(Sn, go, lr, Hn),
10334
10308
  { singleton: !0 }
10335
- ), tS = Xe(
10309
+ ), Q0 = Xe(
10336
10310
  ([{ didMount: e }, { scrollTo: t }, { listState: n }]) => {
10337
10311
  const r = ee(0);
10338
10312
  return nt(
@@ -10423,7 +10397,7 @@ const Z0 = (e, t) => typeof e == "function" ? mc(e(t)) : t && mc(e), Q0 = Xe(
10423
10397
  windowScrollTo: o,
10424
10398
  windowViewportRect: r
10425
10399
  };
10426
- }, dt(Ft)), nS = Xe(
10400
+ }, dt(Ft)), eS = Xe(
10427
10401
  ([
10428
10402
  { sizeRanges: e, sizes: t },
10429
10403
  { headerHeight: n, scrollTop: r },
@@ -10438,10 +10412,10 @@ const Z0 = (e, t) => typeof e == "function" ? mc(e(t)) : t && mc(e), Q0 = Xe(
10438
10412
  Fe(t, r, i, f, p, n)
10439
10413
  ),
10440
10414
  ([h, m, g, y, x, w, S]) => {
10441
- const T = F0(m.sizeTree);
10415
+ const T = L0(m.sizeTree);
10442
10416
  y && x !== null && w !== null && (g = x.scrollTop - w.offsetTop), g -= S, h({ ranges: T, scrollTop: g });
10443
10417
  }
10444
- ), he(W(d, Ie(Aa), ce(rS)), o), he(
10418
+ ), he(W(d, Ie(Aa), ce(tS)), o), he(
10445
10419
  W(
10446
10420
  s,
10447
10421
  Fe(d),
@@ -10457,10 +10431,10 @@ const Z0 = (e, t) => typeof e == "function" ? mc(e(t)) : t && mc(e), Q0 = Xe(
10457
10431
  },
10458
10432
  dt(Sn, Ft, go, Hn, La)
10459
10433
  );
10460
- function rS(e) {
10434
+ function tS(e) {
10461
10435
  return { align: "start", index: 0, offset: e.scrollTop };
10462
10436
  }
10463
- const oS = Xe(([{ topItemsIndexes: e }]) => {
10437
+ const nS = Xe(([{ topItemsIndexes: e }]) => {
10464
10438
  const t = ee(0);
10465
10439
  return he(
10466
10440
  W(
@@ -10475,7 +10449,7 @@ function _f(e) {
10475
10449
  let t = !1, n;
10476
10450
  return () => (t || (t = !0, n = e()), n);
10477
10451
  }
10478
- const sS = _f(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), iS = Xe(
10452
+ const rS = _f(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), oS = Xe(
10479
10453
  ([
10480
10454
  { deviation: e, scrollBy: t, scrollingInProgress: n, scrollTop: r },
10481
10455
  { isAtBottom: o, isScrolling: s, lastJumpDueToItemResize: i, scrollDirection: a },
@@ -10506,7 +10480,7 @@ const sS = _f(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
10506
10480
  x > 0 ? (Me(t, { behavior: "auto", top: -x }), Me(e, 0)) : (Me(e, 0), Me(t, { behavior: "auto", top: -x }));
10507
10481
  }
10508
10482
  return nt(W(g, Fe(e, s)), ([x, w, S]) => {
10509
- S && sS() ? Me(e, w - x) : y(-x);
10483
+ S && rS() ? Me(e, w - x) : y(-x);
10510
10484
  }), nt(
10511
10485
  W(
10512
10486
  Ct(Ot(s, !1), e, m),
@@ -10554,7 +10528,7 @@ const sS = _f(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
10554
10528
  ), { deviation: e };
10555
10529
  },
10556
10530
  dt(Ft, xo, lr, Sn, zn, ja)
10557
- ), aS = Xe(
10531
+ ), sS = Xe(
10558
10532
  ([
10559
10533
  e,
10560
10534
  t,
@@ -10582,12 +10556,12 @@ const sS = _f(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
10582
10556
  }),
10583
10557
  dt(
10584
10558
  Da,
10585
- eS,
10559
+ Z0,
10586
10560
  Hn,
10587
10561
  Nf,
10588
10562
  Rf,
10589
- tS,
10590
- X0,
10563
+ Q0,
10564
+ G0,
10591
10565
  La,
10592
10566
  Af,
10593
10567
  zn,
@@ -10660,17 +10634,17 @@ const sS = _f(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
10660
10634
  Sn,
10661
10635
  go,
10662
10636
  Ft,
10663
- nS,
10664
- Q0,
10637
+ eS,
10638
+ J0,
10665
10639
  lr,
10666
10640
  mo,
10667
- iS,
10668
10641
  oS,
10642
+ nS,
10669
10643
  Cf,
10670
- aS
10644
+ sS
10671
10645
  )
10672
10646
  );
10673
- function lS(e, t) {
10647
+ function iS(e, t) {
10674
10648
  const n = {}, r = {};
10675
10649
  let o = 0;
10676
10650
  const s = e.length;
@@ -10703,10 +10677,10 @@ function Pf(e, t, n) {
10703
10677
  }, x), {});
10704
10678
  }
10705
10679
  function d(y) {
10706
- return i.reduce((x, w) => (x[w] = T0(y[t.events[w]]), x), {});
10680
+ return i.reduce((x, w) => (x[w] = S0(y[t.events[w]]), x), {});
10707
10681
  }
10708
10682
  const f = Q.forwardRef((y, x) => {
10709
- const { children: w, ...S } = y, [T] = Q.useState(() => Ls(k0(e), (I) => {
10683
+ const { children: w, ...S } = y, [T] = Q.useState(() => Ls(T0(e), (I) => {
10710
10684
  l(I, S);
10711
10685
  })), [b] = Q.useState(ic(d, T));
10712
10686
  Ro(() => {
@@ -10719,7 +10693,7 @@ function Pf(e, t, n) {
10719
10693
  l(T, S);
10720
10694
  }), Q.useImperativeHandle(x, sc(c(T)));
10721
10695
  const C = n;
10722
- return /* @__PURE__ */ u.jsx(a.Provider, { value: T, children: n ? /* @__PURE__ */ u.jsx(C, { ...lS([...r, ...o, ...i], S), children: w }) : w });
10696
+ return /* @__PURE__ */ u.jsx(a.Provider, { value: T, children: n ? /* @__PURE__ */ u.jsx(C, { ...iS([...r, ...o, ...i], S), children: w }) : w });
10723
10697
  }), p = (y) => {
10724
10698
  const x = Q.useContext(a);
10725
10699
  return Q.useCallback(
@@ -10761,7 +10735,7 @@ const Mf = Q.createContext(void 0), Of = Q.createContext(void 0), Df = typeof do
10761
10735
  function xi(e) {
10762
10736
  return "self" in e;
10763
10737
  }
10764
- function cS(e) {
10738
+ function aS(e) {
10765
10739
  return "body" in e;
10766
10740
  }
10767
10741
  function Lf(e, t, n, r = Nr, o, s) {
@@ -10769,7 +10743,7 @@ function Lf(e, t, n, r = Nr, o, s) {
10769
10743
  (p) => {
10770
10744
  let h, m, g;
10771
10745
  const y = p.target;
10772
- if (cS(y) || xi(y)) {
10746
+ if (aS(y) || xi(y)) {
10773
10747
  const w = xi(y) ? y : y.defaultView;
10774
10748
  g = s ? w.scrollX : w.scrollY, h = s ? w.document.documentElement.scrollWidth : w.document.documentElement.scrollHeight, m = s ? w.innerWidth : w.innerHeight;
10775
10749
  } else
@@ -10824,7 +10798,7 @@ const yi = "-webkit-sticky", gc = "sticky", $a = _f(() => {
10824
10798
  function Fa(e) {
10825
10799
  return e;
10826
10800
  }
10827
- const uS = /* @__PURE__ */ Xe(() => {
10801
+ const lS = /* @__PURE__ */ Xe(() => {
10828
10802
  const e = ee((a) => `Item ${a}`), t = ee((a) => `Group ${a}`), n = ee({}), r = ee(Fa), o = ee("div"), s = ee(Nr), i = (a, l = null) => Ot(
10829
10803
  W(
10830
10804
  n,
@@ -10850,11 +10824,11 @@ const uS = /* @__PURE__ */ Xe(() => {
10850
10824
  ScrollSeekPlaceholder: i("ScrollSeekPlaceholder"),
10851
10825
  TopItemListComponent: i("TopItemList")
10852
10826
  };
10853
- }), dS = /* @__PURE__ */ Xe(
10827
+ }), cS = /* @__PURE__ */ Xe(
10854
10828
  ([e, t]) => ({ ...e, ...t }),
10855
- dt(jf, uS)
10856
- ), fS = ({ height: e }) => /* @__PURE__ */ u.jsx("div", { style: { height: e } }), pS = { overflowAnchor: "none", position: $a(), zIndex: 1 }, $f = { overflowAnchor: "none" }, hS = { ...$f, display: "inline-block", height: "100%" }, xc = /* @__PURE__ */ Q.memo(function({ showTopList: e = !1 }) {
10857
- const t = Ee("listState"), n = Zt("sizeRanges"), r = Ee("useWindowScroll"), o = Ee("customScrollParent"), s = Zt("windowScrollContainerState"), i = Zt("scrollContainerState"), a = o || r ? s : i, l = Ee("itemContent"), c = Ee("context"), d = Ee("groupContent"), f = Ee("trackItemSizes"), p = Ee("itemSize"), h = Ee("log"), m = Zt("gap"), g = Ee("horizontalDirection"), { callbackRef: y } = A0(
10829
+ dt(jf, lS)
10830
+ ), uS = ({ height: e }) => /* @__PURE__ */ u.jsx("div", { style: { height: e } }), dS = { overflowAnchor: "none", position: $a(), zIndex: 1 }, $f = { overflowAnchor: "none" }, fS = { ...$f, display: "inline-block", height: "100%" }, xc = /* @__PURE__ */ Q.memo(function({ showTopList: e = !1 }) {
10831
+ const t = Ee("listState"), n = Zt("sizeRanges"), r = Ee("useWindowScroll"), o = Ee("customScrollParent"), s = Zt("windowScrollContainerState"), i = Zt("scrollContainerState"), a = o || r ? s : i, l = Ee("itemContent"), c = Ee("context"), d = Ee("groupContent"), f = Ee("trackItemSizes"), p = Ee("itemSize"), h = Ee("log"), m = Zt("gap"), g = Ee("horizontalDirection"), { callbackRef: y } = R0(
10858
10832
  n,
10859
10833
  p,
10860
10834
  f,
@@ -10868,7 +10842,7 @@ const uS = /* @__PURE__ */ Xe(() => {
10868
10842
  Ba("deviation", (E) => {
10869
10843
  x !== E && w(E);
10870
10844
  });
10871
- const S = Ee("EmptyPlaceholder"), T = Ee("ScrollSeekPlaceholder") || fS, b = Ee("ListComponent"), C = Ee("ItemComponent"), I = Ee("GroupComponent"), R = Ee("computeItemKey"), A = Ee("isSeeking"), D = Ee("groupIndices").length > 0, j = Ee("alignToBottom"), M = Ee("initialItemFinalLocationReached"), $ = e ? {} : {
10845
+ const S = Ee("EmptyPlaceholder"), T = Ee("ScrollSeekPlaceholder") || uS, b = Ee("ListComponent"), C = Ee("ItemComponent"), I = Ee("GroupComponent"), R = Ee("computeItemKey"), A = Ee("isSeeking"), D = Ee("groupIndices").length > 0, j = Ee("alignToBottom"), M = Ee("initialItemFinalLocationReached"), $ = e ? {} : {
10872
10846
  boxSizing: "border-box",
10873
10847
  ...g ? {
10874
10848
  display: "inline-block",
@@ -10911,33 +10885,33 @@ const uS = /* @__PURE__ */ Xe(() => {
10911
10885
  "data-item-index": E.index,
10912
10886
  "data-known-size": E.size,
10913
10887
  key: N,
10914
- style: pS
10888
+ style: dS
10915
10889
  },
10916
10890
  d(E.index, c)
10917
10891
  ) : /* @__PURE__ */ _o(
10918
10892
  C,
10919
10893
  {
10920
10894
  ...Mt(C, c),
10921
- ...yS(C, E.data),
10895
+ ...gS(C, E.data),
10922
10896
  "data-index": F,
10923
10897
  "data-item-group-index": E.groupIndex,
10924
10898
  "data-item-index": E.index,
10925
10899
  "data-known-size": E.size,
10926
10900
  key: N,
10927
- style: g ? hS : $f
10901
+ style: g ? fS : $f
10928
10902
  },
10929
10903
  D ? l(E.index, E.groupIndex, E.data, c) : l(E.index, E.data, c)
10930
10904
  );
10931
10905
  })
10932
10906
  }
10933
10907
  );
10934
- }), mS = {
10908
+ }), pS = {
10935
10909
  height: "100%",
10936
10910
  outline: "none",
10937
10911
  overflowY: "auto",
10938
10912
  position: "relative",
10939
10913
  WebkitOverflowScrolling: "touch"
10940
- }, gS = {
10914
+ }, hS = {
10941
10915
  outline: "none",
10942
10916
  overflowX: "auto",
10943
10917
  position: "relative"
@@ -10947,7 +10921,7 @@ const uS = /* @__PURE__ */ Xe(() => {
10947
10921
  top: 0,
10948
10922
  width: "100%",
10949
10923
  ...e ? { display: "flex", flexDirection: "column" } : {}
10950
- }), xS = {
10924
+ }), mS = {
10951
10925
  position: $a(),
10952
10926
  top: 0,
10953
10927
  width: "100%",
@@ -10957,10 +10931,10 @@ function Mt(e, t) {
10957
10931
  if (typeof e != "string")
10958
10932
  return { context: t };
10959
10933
  }
10960
- function yS(e, t) {
10934
+ function gS(e, t) {
10961
10935
  return { item: typeof e == "string" ? void 0 : t };
10962
10936
  }
10963
- const vS = /* @__PURE__ */ Q.memo(function() {
10937
+ const xS = /* @__PURE__ */ Q.memo(function() {
10964
10938
  const e = Ee("HeaderComponent"), t = Zt("headerHeight"), n = Ee("HeaderFooterTag"), r = ar(
10965
10939
  Q.useMemo(
10966
10940
  () => (s) => {
@@ -10972,7 +10946,7 @@ const vS = /* @__PURE__ */ Q.memo(function() {
10972
10946
  Ee("skipAnimationFrameInResizeObserver")
10973
10947
  ), o = Ee("context");
10974
10948
  return e ? /* @__PURE__ */ u.jsx(n, { ref: r, children: /* @__PURE__ */ u.jsx(e, { ...Mt(e, o) }) }) : null;
10975
- }), wS = /* @__PURE__ */ Q.memo(function() {
10949
+ }), yS = /* @__PURE__ */ Q.memo(function() {
10976
10950
  const e = Ee("FooterComponent"), t = Zt("footerHeight"), n = Ee("HeaderFooterTag"), r = ar(
10977
10951
  Q.useMemo(
10978
10952
  () => (s) => {
@@ -11001,7 +10975,7 @@ function Ff({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
11001
10975
  "data-testid": "virtuoso-scroller",
11002
10976
  "data-virtuoso-scroller": !0,
11003
10977
  ref: h,
11004
- style: { ...f ? gS : mS, ...o },
10978
+ style: { ...f ? hS : pS, ...o },
11005
10979
  tabIndex: 0,
11006
10980
  ...i,
11007
10981
  ...Mt(l, s),
@@ -11037,7 +11011,7 @@ function Bf({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
11037
11011
  );
11038
11012
  });
11039
11013
  }
11040
- const bS = ({ children: e }) => {
11014
+ const vS = ({ children: e }) => {
11041
11015
  const t = Q.useContext(Mf), n = Zt("viewportHeight"), r = Zt("fixedItemHeight"), o = Ee("alignToBottom"), s = Ee("horizontalDirection"), i = Q.useMemo(
11042
11016
  () => df(n, (l) => Ln(l, s ? "width" : "height")),
11043
11017
  [n, s]
@@ -11045,7 +11019,7 @@ const bS = ({ children: e }) => {
11045
11019
  return Q.useEffect(() => {
11046
11020
  t && (n(t.viewportHeight), r(t.itemHeight));
11047
11021
  }, [t, n, r]), /* @__PURE__ */ u.jsx("div", { "data-viewport-type": "element", ref: a, style: Bs(o), children: e });
11048
- }, SS = ({ children: e }) => {
11022
+ }, wS = ({ children: e }) => {
11049
11023
  const t = Q.useContext(Mf), n = Zt("windowViewportRect"), r = Zt("fixedItemHeight"), o = Ee("customScrollParent"), s = pf(
11050
11024
  n,
11051
11025
  o,
@@ -11054,26 +11028,26 @@ const bS = ({ children: e }) => {
11054
11028
  return Q.useEffect(() => {
11055
11029
  t && (r(t.itemHeight), n({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: 100 }));
11056
11030
  }, [t, n, r]), /* @__PURE__ */ u.jsx("div", { "data-viewport-type": "window", ref: s, style: Bs(i), children: e });
11057
- }, CS = ({ children: e }) => {
11058
- const t = Ee("TopItemListComponent") || "div", n = Ee("headerHeight"), r = { ...xS, marginTop: `${n}px` }, o = Ee("context");
11031
+ }, bS = ({ children: e }) => {
11032
+ const t = Ee("TopItemListComponent") || "div", n = Ee("headerHeight"), r = { ...mS, marginTop: `${n}px` }, o = Ee("context");
11059
11033
  return /* @__PURE__ */ u.jsx(t, { style: r, ...Mt(t, o), children: e });
11060
- }, TS = /* @__PURE__ */ Q.memo(function(e) {
11034
+ }, SS = /* @__PURE__ */ Q.memo(function(e) {
11061
11035
  const t = Ee("useWindowScroll"), n = Ee("topItemsIndexes").length > 0, r = Ee("customScrollParent"), o = Ee("context");
11062
- return /* @__PURE__ */ u.jsxs(r || t ? RS : kS, { ...e, context: o, children: [
11063
- n && /* @__PURE__ */ u.jsx(CS, { children: /* @__PURE__ */ u.jsx(xc, { showTopList: !0 }) }),
11064
- /* @__PURE__ */ u.jsxs(r || t ? SS : bS, { children: [
11065
- /* @__PURE__ */ u.jsx(vS, {}),
11036
+ return /* @__PURE__ */ u.jsxs(r || t ? IS : TS, { ...e, context: o, children: [
11037
+ n && /* @__PURE__ */ u.jsx(bS, { children: /* @__PURE__ */ u.jsx(xc, { showTopList: !0 }) }),
11038
+ /* @__PURE__ */ u.jsxs(r || t ? wS : vS, { children: [
11039
+ /* @__PURE__ */ u.jsx(xS, {}),
11066
11040
  /* @__PURE__ */ u.jsx(xc, {}),
11067
- /* @__PURE__ */ u.jsx(wS, {})
11041
+ /* @__PURE__ */ u.jsx(yS, {})
11068
11042
  ] })
11069
11043
  ] });
11070
11044
  }), {
11071
- Component: IS,
11045
+ Component: CS,
11072
11046
  useEmitter: Ba,
11073
11047
  useEmitterValue: Ee,
11074
11048
  usePublisher: Zt
11075
11049
  } = /* @__PURE__ */ Pf(
11076
- dS,
11050
+ cS,
11077
11051
  {
11078
11052
  required: {},
11079
11053
  optional: {
@@ -11130,8 +11104,8 @@ const bS = ({ children: e }) => {
11130
11104
  groupIndices: "groupIndices"
11131
11105
  }
11132
11106
  },
11133
- TS
11134
- ), kS = /* @__PURE__ */ Ff({ useEmitter: Ba, useEmitterValue: Ee, usePublisher: Zt }), RS = /* @__PURE__ */ Bf({ useEmitter: Ba, useEmitterValue: Ee, usePublisher: Zt }), ES = IS, AS = /* @__PURE__ */ Xe(() => {
11107
+ SS
11108
+ ), TS = /* @__PURE__ */ Ff({ useEmitter: Ba, useEmitterValue: Ee, usePublisher: Zt }), IS = /* @__PURE__ */ Bf({ useEmitter: Ba, useEmitterValue: Ee, usePublisher: Zt }), kS = CS, RS = /* @__PURE__ */ Xe(() => {
11135
11109
  const e = ee((c) => /* @__PURE__ */ u.jsxs("td", { children: [
11136
11110
  "Item $",
11137
11111
  c
@@ -11167,7 +11141,7 @@ const bS = ({ children: e }) => {
11167
11141
  GroupComponent: l("Group", "tr")
11168
11142
  };
11169
11143
  });
11170
- dt(jf, AS);
11144
+ dt(jf, RS);
11171
11145
  $a();
11172
11146
  const yc = {
11173
11147
  bottom: 0,
@@ -11177,7 +11151,7 @@ const yc = {
11177
11151
  offsetBottom: 0,
11178
11152
  offsetTop: 0,
11179
11153
  top: 0
11180
- }, NS = {
11154
+ }, ES = {
11181
11155
  bottom: 0,
11182
11156
  itemHeight: 0,
11183
11157
  items: [{ index: 0 }],
@@ -11189,19 +11163,19 @@ const yc = {
11189
11163
  function bc(e, t, n) {
11190
11164
  return Array.from({ length: t - e + 1 }).map((r, o) => ({ data: n === null ? null : n[o + e], index: o + e }));
11191
11165
  }
11192
- function _S(e) {
11166
+ function AS(e) {
11193
11167
  return {
11194
- ...NS,
11168
+ ...ES,
11195
11169
  items: e
11196
11170
  };
11197
11171
  }
11198
11172
  function Eo(e, t) {
11199
11173
  return e && e.width === t.width && e.height === t.height;
11200
11174
  }
11201
- function jS(e, t) {
11175
+ function NS(e, t) {
11202
11176
  return e && e.column === t.column && e.row === t.row;
11203
11177
  }
11204
- const PS = /* @__PURE__ */ Xe(
11178
+ const _S = /* @__PURE__ */ Xe(
11205
11179
  ([
11206
11180
  { increaseViewportBy: e, listBoundary: t, overscan: n, visibleRange: r },
11207
11181
  { footerHeight: o, headerHeight: s, scrollBy: i, scrollContainerState: a, scrollTo: l, scrollTop: c, smoothScrollTargetReached: d, viewportHeight: f },
@@ -11278,7 +11252,7 @@ const PS = /* @__PURE__ */ Xe(
11278
11252
  Ct(
11279
11253
  Te(C),
11280
11254
  r,
11281
- Te(F, jS),
11255
+ Te(F, NS),
11282
11256
  Te(D, Eo),
11283
11257
  Te(A, Eo),
11284
11258
  Te(E),
@@ -11306,7 +11280,7 @@ const PS = /* @__PURE__ */ Xe(
11306
11280
  return yc;
11307
11281
  if (Ge === 0) {
11308
11282
  const Nt = Oa(Oe, L), Dt = Nt + Math.max(oe - 1, 0);
11309
- return _S(bc(Nt, Dt, Ve));
11283
+ return AS(bc(Nt, Dt, Ve));
11310
11284
  }
11311
11285
  const Qe = zf(it, Ge, Je);
11312
11286
  let et, ct;
@@ -11462,7 +11436,7 @@ function Ki(e, t, n, r) {
11462
11436
  const o = zf(e.width, n.width, t.column), s = ns(r / o), i = s * n.height + Hr(0, s - 1) * t.row;
11463
11437
  return i > 0 ? i + t.row : i;
11464
11438
  }
11465
- const MS = /* @__PURE__ */ Xe(() => {
11439
+ const jS = /* @__PURE__ */ Xe(() => {
11466
11440
  const e = ee((f) => `Item ${f}`), t = ee({}), n = ee(null), r = ee("virtuoso-grid-item"), o = ee("virtuoso-grid-list"), s = ee(Fa), i = ee("div"), a = ee(Nr), l = (f, p = null) => Ot(
11467
11441
  W(
11468
11442
  t,
@@ -11489,10 +11463,10 @@ const MS = /* @__PURE__ */ Xe(() => {
11489
11463
  scrollerRef: a,
11490
11464
  ScrollSeekPlaceholder: l("ScrollSeekPlaceholder", "div")
11491
11465
  };
11492
- }), OS = /* @__PURE__ */ Xe(
11466
+ }), PS = /* @__PURE__ */ Xe(
11493
11467
  ([e, t]) => ({ ...e, ...t }),
11494
- dt(PS, MS)
11495
- ), DS = /* @__PURE__ */ Q.memo(function() {
11468
+ dt(_S, jS)
11469
+ ), MS = /* @__PURE__ */ Q.memo(function() {
11496
11470
  const e = ft("gridState"), t = ft("listClassName"), n = ft("itemClassName"), r = ft("itemContent"), o = ft("computeItemKey"), s = ft("isSeeking"), i = Qt("scrollHeight"), a = ft("ItemComponent"), l = ft("ListComponent"), c = ft("ScrollSeekPlaceholder"), d = ft("context"), f = Qt("itemDimensions"), p = Qt("gap"), h = ft("log"), m = ft("stateRestoreInProgress"), g = Qt("reportReadyState"), y = ar(
11497
11471
  Q.useMemo(
11498
11472
  () => (x) => {
@@ -11547,7 +11521,7 @@ const MS = /* @__PURE__ */ Xe(() => {
11547
11521
  })
11548
11522
  }
11549
11523
  );
11550
- }), LS = Q.memo(function() {
11524
+ }), OS = Q.memo(function() {
11551
11525
  const e = ft("HeaderComponent"), t = Qt("headerHeight"), n = ft("headerFooterTag"), r = ar(
11552
11526
  Q.useMemo(
11553
11527
  () => (s) => {
@@ -11559,7 +11533,7 @@ const MS = /* @__PURE__ */ Xe(() => {
11559
11533
  !1
11560
11534
  ), o = ft("context");
11561
11535
  return e ? /* @__PURE__ */ u.jsx(n, { ref: r, children: /* @__PURE__ */ u.jsx(e, { ...Mt(e, o) }) }) : null;
11562
- }), $S = Q.memo(function() {
11536
+ }), DS = Q.memo(function() {
11563
11537
  const e = ft("FooterComponent"), t = Qt("footerHeight"), n = ft("headerFooterTag"), r = ar(
11564
11538
  Q.useMemo(
11565
11539
  () => (s) => {
@@ -11571,7 +11545,7 @@ const MS = /* @__PURE__ */ Xe(() => {
11571
11545
  !1
11572
11546
  ), o = ft("context");
11573
11547
  return e ? /* @__PURE__ */ u.jsx(n, { ref: r, children: /* @__PURE__ */ u.jsx(e, { ...Mt(e, o) }) }) : null;
11574
- }), FS = ({ children: e }) => {
11548
+ }), LS = ({ children: e }) => {
11575
11549
  const t = Q.useContext(Of), n = Qt("itemDimensions"), r = Qt("viewportDimensions"), o = ar(
11576
11550
  Q.useMemo(
11577
11551
  () => (s) => {
@@ -11585,24 +11559,24 @@ const MS = /* @__PURE__ */ Xe(() => {
11585
11559
  return Q.useEffect(() => {
11586
11560
  t && (r({ height: t.viewportHeight, width: t.viewportWidth }), n({ height: t.itemHeight, width: t.itemWidth }));
11587
11561
  }, [t, r, n]), /* @__PURE__ */ u.jsx("div", { ref: o, style: Bs(!1), children: e });
11588
- }, BS = ({ children: e }) => {
11562
+ }, $S = ({ children: e }) => {
11589
11563
  const t = Q.useContext(Of), n = Qt("windowViewportRect"), r = Qt("itemDimensions"), o = ft("customScrollParent"), s = pf(n, o, !1);
11590
11564
  return Q.useEffect(() => {
11591
11565
  t && (r({ height: t.itemHeight, width: t.itemWidth }), n({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: t.viewportWidth }));
11592
11566
  }, [t, n, r]), /* @__PURE__ */ u.jsx("div", { ref: s, style: Bs(!1), children: e });
11593
- }, zS = /* @__PURE__ */ Q.memo(function({ ...e }) {
11594
- const t = ft("useWindowScroll"), n = ft("customScrollParent"), r = n || t ? US : HS, o = n || t ? BS : FS, s = ft("context");
11567
+ }, FS = /* @__PURE__ */ Q.memo(function({ ...e }) {
11568
+ const t = ft("useWindowScroll"), n = ft("customScrollParent"), r = n || t ? zS : BS, o = n || t ? $S : LS, s = ft("context");
11595
11569
  return /* @__PURE__ */ u.jsx(r, { ...e, ...Mt(r, s), children: /* @__PURE__ */ u.jsxs(o, { children: [
11596
- /* @__PURE__ */ u.jsx(LS, {}),
11597
- /* @__PURE__ */ u.jsx(DS, {}),
11598
- /* @__PURE__ */ u.jsx($S, {})
11570
+ /* @__PURE__ */ u.jsx(OS, {}),
11571
+ /* @__PURE__ */ u.jsx(MS, {}),
11572
+ /* @__PURE__ */ u.jsx(DS, {})
11599
11573
  ] }) });
11600
11574
  }), {
11601
11575
  useEmitter: Hf,
11602
11576
  useEmitterValue: ft,
11603
11577
  usePublisher: Qt
11604
11578
  } = /* @__PURE__ */ Pf(
11605
- OS,
11579
+ PS,
11606
11580
  {
11607
11581
  optional: {
11608
11582
  context: "context",
@@ -11641,12 +11615,12 @@ const MS = /* @__PURE__ */ Xe(() => {
11641
11615
  readyStateChanged: "readyStateChanged"
11642
11616
  }
11643
11617
  },
11644
- zS
11645
- ), HS = /* @__PURE__ */ Ff({ useEmitter: Hf, useEmitterValue: ft, usePublisher: Qt }), US = /* @__PURE__ */ Bf({ useEmitter: Hf, useEmitterValue: ft, usePublisher: Qt });
11618
+ FS
11619
+ ), BS = /* @__PURE__ */ Ff({ useEmitter: Hf, useEmitterValue: ft, usePublisher: Qt }), zS = /* @__PURE__ */ Bf({ useEmitter: Hf, useEmitterValue: ft, usePublisher: Qt });
11646
11620
  function Cc(e, t, n) {
11647
11621
  return t !== "normal" && !(t != null && t.endsWith("px")) && n(`${e} was not resolved to pixel value correctly`, t, Ht.WARN), t === "normal" ? 0 : parseInt(t ?? "0", 10);
11648
11622
  }
11649
- const WS = ms(
11623
+ const HS = ms(
11650
11624
  "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
11651
11625
  {
11652
11626
  variants: {
@@ -11663,7 +11637,7 @@ const WS = ms(
11663
11637
  }
11664
11638
  );
11665
11639
  function Uf({ className: e, variant: t, ...n }) {
11666
- return /* @__PURE__ */ u.jsx("div", { className: te(WS({ variant: t }), e), ...n });
11640
+ return /* @__PURE__ */ u.jsx("div", { className: te(HS({ variant: t }), e), ...n });
11667
11641
  }
11668
11642
  function za(e) {
11669
11643
  const t = e == null ? void 0 : e.trim();
@@ -11731,12 +11705,12 @@ function oo(e) {
11731
11705
  return "";
11732
11706
  }
11733
11707
  }
11734
- function VS(e) {
11708
+ function US(e) {
11735
11709
  return typeof e != "string" ? !1 : /^[\s\n]*[-*]\s|^[\s\n]*#+\s|```|^\s*\[.*\]\(|^>\s/.test(e);
11736
11710
  }
11737
- function KS(e) {
11711
+ function WS(e) {
11738
11712
  const t = oo(e);
11739
- return typeof e == "string" && VS(e) ? { content: e, isMarkdown: !0 } : { content: t, isMarkdown: !1 };
11713
+ return typeof e == "string" && US(e) ? { content: e, isMarkdown: !0 } : { content: t, isMarkdown: !1 };
11740
11714
  }
11741
11715
  function rs(e) {
11742
11716
  if (e == null) return e;
@@ -11751,7 +11725,7 @@ function rs(e) {
11751
11725
  }
11752
11726
  return typeof e == "object" && !Array.isArray(e) && e.content !== void 0 ? rs(e.content) : e;
11753
11727
  }
11754
- function qS(e) {
11728
+ function VS(e) {
11755
11729
  return e.filter((t) => t.type === "text").map((t) => t.text).join("");
11756
11730
  }
11757
11731
  function Vf(e) {
@@ -11766,7 +11740,7 @@ function Ao(e) {
11766
11740
  const t = String(e).trim();
11767
11741
  return t.length > 0 ? t : null;
11768
11742
  }
11769
- function GS(e) {
11743
+ function KS(e) {
11770
11744
  const t = (r) => {
11771
11745
  try {
11772
11746
  const o = ro(r);
@@ -11778,7 +11752,7 @@ function GS(e) {
11778
11752
  return n.length ? t(n.map((r) => r.text).join(`
11779
11753
  `)) : t(e);
11780
11754
  }
11781
- function YS(e) {
11755
+ function qS(e) {
11782
11756
  return e.name && e.name.trim() ? e.name : e.model && e.model.includes("/") ? e.model.split("/").pop() || null : e.model || null;
11783
11757
  }
11784
11758
  function Tc(e) {
@@ -11802,31 +11776,31 @@ function Tc(e) {
11802
11776
  }).join("|") : "";
11803
11777
  return `${e.id}:${t}:${n}`;
11804
11778
  }
11805
- function XS(e) {
11779
+ function GS(e) {
11806
11780
  if (!e)
11807
11781
  return "image/png";
11808
11782
  const t = e.trim();
11809
11783
  return t ? t.includes("/") ? t : `image/${t}` : "image/png";
11810
11784
  }
11811
- function JS(e) {
11785
+ function YS(e) {
11812
11786
  const t = [], n = (r) => {
11813
11787
  r && r.trim() && t.push(r.trim());
11814
11788
  };
11815
11789
  return e && (n(e.plotId), n(e.artifactId)), t;
11816
11790
  }
11817
- function ZS({
11791
+ function XS({
11818
11792
  base64: e,
11819
11793
  url: t,
11820
11794
  formatHint: n,
11821
11795
  extras: r
11822
11796
  }) {
11823
- const o = typeof e == "string" && e.length > 0, s = XS(n), i = o ? `data:${s};base64,${e}` : t, a = JS(r), l = a.length ? a.join(" / ") : void 0, c = l ? `${l} artifact` : "artifact image";
11797
+ const o = typeof e == "string" && e.length > 0, s = GS(n), i = o ? `data:${s};base64,${e}` : t, a = YS(r), l = a.length ? a.join(" / ") : void 0, c = l ? `${l} artifact` : "artifact image";
11824
11798
  return { src: i, alt: c, label: l };
11825
11799
  }
11826
- function QS(e) {
11800
+ function JS(e) {
11827
11801
  var o, s;
11828
11802
  const t = ((o = e.content_base64) == null ? void 0 : o.trim()) || void 0, n = ((s = e.url) == null ? void 0 : s.trim()) || void 0, r = e.format || e.mimeType || e.mime_type;
11829
- return ZS({
11803
+ return XS({
11830
11804
  base64: t,
11831
11805
  url: n,
11832
11806
  formatHint: r,
@@ -11852,7 +11826,7 @@ async function Kf(e, t) {
11852
11826
  async function Ic(e, t) {
11853
11827
  return await (await Kf(`/files/${e}/view`, t)).text();
11854
11828
  }
11855
- async function eC(e, t) {
11829
+ async function ZS(e, t) {
11856
11830
  const n = await Kf(`/files/${e}/download`, t), r = URL.createObjectURL(n);
11857
11831
  let o = `file_${e}`;
11858
11832
  try {
@@ -11863,11 +11837,11 @@ async function eC(e, t) {
11863
11837
  const s = document.createElement("a");
11864
11838
  s.href = r, s.download = o, document.body.appendChild(s), s.click(), s.remove(), setTimeout(() => URL.revokeObjectURL(r), 6e4);
11865
11839
  }
11866
- async function tC(e, t = 50, n = 0) {
11840
+ async function QS(e, t = 50, n = 0) {
11867
11841
  const r = { limit: t, offset: n };
11868
11842
  return e && (r.thread_id = e), await an("/files", { params: r });
11869
11843
  }
11870
- var zs = "Dialog", [qf, $I] = Nn(zs), [nC, pn] = qf(zs), Gf = (e) => {
11844
+ var zs = "Dialog", [qf, DI] = Nn(zs), [eC, pn] = qf(zs), Gf = (e) => {
11871
11845
  const {
11872
11846
  __scopeDialog: t,
11873
11847
  children: n,
@@ -11882,7 +11856,7 @@ var zs = "Dialog", [qf, $I] = Nn(zs), [nC, pn] = qf(zs), Gf = (e) => {
11882
11856
  caller: zs
11883
11857
  });
11884
11858
  return /* @__PURE__ */ u.jsx(
11885
- nC,
11859
+ eC,
11886
11860
  {
11887
11861
  scope: t,
11888
11862
  triggerRef: a,
@@ -11918,27 +11892,27 @@ var Yf = "DialogTrigger", Xf = v.forwardRef(
11918
11892
  }
11919
11893
  );
11920
11894
  Xf.displayName = Yf;
11921
- var Ha = "DialogPortal", [rC, Jf] = qf(Ha, {
11895
+ var Ha = "DialogPortal", [tC, Jf] = qf(Ha, {
11922
11896
  forceMount: void 0
11923
11897
  }), Zf = (e) => {
11924
11898
  const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = pn(Ha, t);
11925
- return /* @__PURE__ */ u.jsx(rC, { scope: t, forceMount: n, children: v.Children.map(r, (i) => /* @__PURE__ */ u.jsx(nn, { present: n || s.open, children: /* @__PURE__ */ u.jsx(Ns, { asChild: !0, container: o, children: i }) })) });
11899
+ return /* @__PURE__ */ u.jsx(tC, { scope: t, forceMount: n, children: v.Children.map(r, (i) => /* @__PURE__ */ u.jsx(nn, { present: n || s.open, children: /* @__PURE__ */ u.jsx(Ns, { asChild: !0, container: o, children: i }) })) });
11926
11900
  };
11927
11901
  Zf.displayName = Ha;
11928
11902
  var os = "DialogOverlay", Qf = v.forwardRef(
11929
11903
  (e, t) => {
11930
11904
  const n = Jf(os, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = pn(os, e.__scopeDialog);
11931
- return s.modal ? /* @__PURE__ */ u.jsx(nn, { present: r || s.open, children: /* @__PURE__ */ u.jsx(sC, { ...o, ref: t }) }) : null;
11905
+ return s.modal ? /* @__PURE__ */ u.jsx(nn, { present: r || s.open, children: /* @__PURE__ */ u.jsx(rC, { ...o, ref: t }) }) : null;
11932
11906
  }
11933
11907
  );
11934
11908
  Qf.displayName = os;
11935
- var oC = wr("DialogOverlay.RemoveScroll"), sC = v.forwardRef(
11909
+ var nC = wr("DialogOverlay.RemoveScroll"), rC = v.forwardRef(
11936
11910
  (e, t) => {
11937
11911
  const { __scopeDialog: n, ...r } = e, o = pn(os, n);
11938
11912
  return (
11939
11913
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
11940
11914
  // ie. when `Overlay` and `Content` are siblings
11941
- /* @__PURE__ */ u.jsx(js, { as: oC, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ u.jsx(
11915
+ /* @__PURE__ */ u.jsx(js, { as: nC, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ u.jsx(
11942
11916
  _e.div,
11943
11917
  {
11944
11918
  "data-state": Wa(o.open),
@@ -11952,11 +11926,11 @@ var oC = wr("DialogOverlay.RemoveScroll"), sC = v.forwardRef(
11952
11926
  ), nr = "DialogContent", ep = v.forwardRef(
11953
11927
  (e, t) => {
11954
11928
  const n = Jf(nr, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = pn(nr, e.__scopeDialog);
11955
- return /* @__PURE__ */ u.jsx(nn, { present: r || s.open, children: s.modal ? /* @__PURE__ */ u.jsx(iC, { ...o, ref: t }) : /* @__PURE__ */ u.jsx(aC, { ...o, ref: t }) });
11929
+ return /* @__PURE__ */ u.jsx(nn, { present: r || s.open, children: s.modal ? /* @__PURE__ */ u.jsx(oC, { ...o, ref: t }) : /* @__PURE__ */ u.jsx(sC, { ...o, ref: t }) });
11956
11930
  }
11957
11931
  );
11958
11932
  ep.displayName = nr;
11959
- var iC = v.forwardRef(
11933
+ var oC = v.forwardRef(
11960
11934
  (e, t) => {
11961
11935
  const n = pn(nr, e.__scopeDialog), r = v.useRef(null), o = We(t, n.contentRef, r);
11962
11936
  return v.useEffect(() => {
@@ -11984,7 +11958,7 @@ var iC = v.forwardRef(
11984
11958
  }
11985
11959
  );
11986
11960
  }
11987
- ), aC = v.forwardRef(
11961
+ ), sC = v.forwardRef(
11988
11962
  (e, t) => {
11989
11963
  const n = pn(nr, e.__scopeDialog), r = v.useRef(!1), o = v.useRef(!1);
11990
11964
  return /* @__PURE__ */ u.jsx(
@@ -12035,8 +12009,8 @@ var iC = v.forwardRef(
12035
12009
  }
12036
12010
  ),
12037
12011
  /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
12038
- /* @__PURE__ */ u.jsx(lC, { titleId: a.titleId }),
12039
- /* @__PURE__ */ u.jsx(uC, { contentRef: l, descriptionId: a.descriptionId })
12012
+ /* @__PURE__ */ u.jsx(iC, { titleId: a.titleId }),
12013
+ /* @__PURE__ */ u.jsx(lC, { contentRef: l, descriptionId: a.descriptionId })
12040
12014
  ] })
12041
12015
  ] });
12042
12016
  }
@@ -12072,11 +12046,11 @@ ip.displayName = sp;
12072
12046
  function Wa(e) {
12073
12047
  return e ? "open" : "closed";
12074
12048
  }
12075
- var ap = "DialogTitleWarning", [FI, lp] = ry(ap, {
12049
+ var ap = "DialogTitleWarning", [LI, lp] = ty(ap, {
12076
12050
  contentName: nr,
12077
12051
  titleName: Ua,
12078
12052
  docsSlug: "dialog"
12079
- }), lC = ({ titleId: e }) => {
12053
+ }), iC = ({ titleId: e }) => {
12080
12054
  const t = lp(ap), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
12081
12055
 
12082
12056
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
@@ -12085,15 +12059,15 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
12085
12059
  return v.useEffect(() => {
12086
12060
  e && (document.getElementById(e) || console.error(n));
12087
12061
  }, [n, e]), null;
12088
- }, cC = "DialogDescriptionWarning", uC = ({ contentRef: e, descriptionId: t }) => {
12089
- const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${lp(cC).contentName}}.`;
12062
+ }, aC = "DialogDescriptionWarning", lC = ({ contentRef: e, descriptionId: t }) => {
12063
+ const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${lp(aC).contentName}}.`;
12090
12064
  return v.useEffect(() => {
12091
12065
  var s;
12092
12066
  const o = (s = e.current) == null ? void 0 : s.getAttribute("aria-describedby");
12093
12067
  t && o && (document.getElementById(t) || console.warn(r));
12094
12068
  }, [r, e, t]), null;
12095
- }, cp = Gf, dC = Xf, up = Zf, Hs = Qf, Us = ep, Jn = np, Ws = op, dp = ip;
12096
- const fC = cp, pC = up, fp = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
12069
+ }, cp = Gf, cC = Xf, up = Zf, Hs = Qf, Us = ep, Jn = np, Ws = op, dp = ip;
12070
+ const uC = cp, dC = up, fp = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
12097
12071
  Hs,
12098
12072
  {
12099
12073
  ref: n,
@@ -12121,7 +12095,7 @@ const pp = v.forwardRef(({ className: e, children: t, ...n }, r) => {
12121
12095
  }
12122
12096
  return i(t), s;
12123
12097
  }, [t]);
12124
- return /* @__PURE__ */ u.jsxs(pC, { children: [
12098
+ return /* @__PURE__ */ u.jsxs(dC, { children: [
12125
12099
  /* @__PURE__ */ u.jsx(fp, {}),
12126
12100
  /* @__PURE__ */ u.jsxs(
12127
12101
  Us,
@@ -12171,7 +12145,7 @@ const mp = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
12171
12145
  }
12172
12146
  ));
12173
12147
  mp.displayName = Jn.displayName;
12174
- const hC = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
12148
+ const fC = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
12175
12149
  Ws,
12176
12150
  {
12177
12151
  ref: n,
@@ -12179,10 +12153,10 @@ const hC = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
12179
12153
  ...t
12180
12154
  }
12181
12155
  ));
12182
- hC.displayName = Ws.displayName;
12183
- const mC = 1, gC = 1e6;
12156
+ fC.displayName = Ws.displayName;
12157
+ const pC = 1, hC = 1e6;
12184
12158
  let wi = 0;
12185
- function xC() {
12159
+ function mC() {
12186
12160
  return wi = (wi + 1) % Number.MAX_SAFE_INTEGER, wi.toString();
12187
12161
  }
12188
12162
  const bi = /* @__PURE__ */ new Map(), kc = (e) => {
@@ -12193,14 +12167,14 @@ const bi = /* @__PURE__ */ new Map(), kc = (e) => {
12193
12167
  type: "REMOVE_TOAST",
12194
12168
  toastId: e
12195
12169
  });
12196
- }, gC);
12170
+ }, hC);
12197
12171
  bi.set(e, t);
12198
- }, yC = (e, t) => {
12172
+ }, gC = (e, t) => {
12199
12173
  switch (t.type) {
12200
12174
  case "ADD_TOAST":
12201
12175
  return {
12202
12176
  ...e,
12203
- toasts: [t.toast, ...e.toasts].slice(0, mC)
12177
+ toasts: [t.toast, ...e.toasts].slice(0, pC)
12204
12178
  };
12205
12179
  case "UPDATE_TOAST":
12206
12180
  return {
@@ -12235,12 +12209,12 @@ const bi = /* @__PURE__ */ new Map(), kc = (e) => {
12235
12209
  }, Ho = [];
12236
12210
  let Uo = { toasts: [] };
12237
12211
  function Ur(e) {
12238
- Uo = yC(Uo, e), Ho.forEach((t) => {
12212
+ Uo = gC(Uo, e), Ho.forEach((t) => {
12239
12213
  t(Uo);
12240
12214
  });
12241
12215
  }
12242
- function vC({ ...e }) {
12243
- const t = xC(), n = (o) => Ur({
12216
+ function xC({ ...e }) {
12217
+ const t = mC(), n = (o) => Ur({
12244
12218
  type: "UPDATE_TOAST",
12245
12219
  toast: { ...o, id: t }
12246
12220
  }), r = () => Ur({ type: "DISMISS_TOAST", toastId: t });
@@ -12267,11 +12241,11 @@ function Va() {
12267
12241
  n > -1 && Ho.splice(n, 1);
12268
12242
  }), [e]), {
12269
12243
  ...e,
12270
- toast: vC,
12244
+ toast: xC,
12271
12245
  dismiss: (n) => Ur({ type: "DISMISS_TOAST", toastId: n })
12272
12246
  };
12273
12247
  }
12274
- function wC({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
12248
+ function yC({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
12275
12249
  const [s, i] = ye(!1), [a, l] = ye(null), [c, d] = ye(null), { toast: f } = Va(), p = Q.useCallback(async () => {
12276
12250
  if (n) {
12277
12251
  i(!0), d(null), l(null);
@@ -12291,7 +12265,7 @@ function wC({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
12291
12265
  const h = async () => {
12292
12266
  if (n)
12293
12267
  try {
12294
- await eC(n), f({ title: "Download started", description: `Downloading ${r}` });
12268
+ await ZS(n), f({ title: "Download started", description: `Downloading ${r}` });
12295
12269
  } catch (x) {
12296
12270
  console.error("Failed to download file:", x), f({ title: "Download failed", description: String(x), variant: "destructive" });
12297
12271
  }
@@ -12335,7 +12309,7 @@ function wC({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
12335
12309
  ] }),
12336
12310
  /* @__PURE__ */ u.jsx("p", { className: "text-sm text-muted-foreground", children: "This file type cannot be previewed. Use download or external view." })
12337
12311
  ] }) : /* @__PURE__ */ u.jsx("div", { className: "flex items-center justify-center py-12", children: /* @__PURE__ */ u.jsx("p", { className: "text-muted-foreground", children: "No content to display" }) }), y = () => o.startsWith("image/") ? /* @__PURE__ */ u.jsx(am, { className: "h-5 w-5" }) : /* @__PURE__ */ u.jsx(tl, { className: "h-5 w-5" });
12338
- return /* @__PURE__ */ u.jsx(fC, { open: e, onOpenChange: t, children: /* @__PURE__ */ u.jsxs(pp, { className: "max-w-4xl max-h-[90vh] overflow-hidden", children: [
12312
+ return /* @__PURE__ */ u.jsx(uC, { open: e, onOpenChange: t, children: /* @__PURE__ */ u.jsxs(pp, { className: "max-w-4xl max-h-[90vh] overflow-hidden", children: [
12339
12313
  /* @__PURE__ */ u.jsx(hp, { children: /* @__PURE__ */ u.jsxs("div", { className: "flex items-center justify-between", children: [
12340
12314
  /* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-3", children: [
12341
12315
  y(),
@@ -12404,50 +12378,50 @@ function gp() {
12404
12378
  };
12405
12379
  }
12406
12380
  let cr = gp();
12407
- function bC(e) {
12381
+ function vC(e) {
12408
12382
  cr = e;
12409
12383
  }
12410
- const xp = /[&<>"']/, SC = new RegExp(xp.source, "g"), yp = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, CC = new RegExp(yp.source, "g"), TC = {
12384
+ const xp = /[&<>"']/, wC = new RegExp(xp.source, "g"), yp = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, bC = new RegExp(yp.source, "g"), SC = {
12411
12385
  "&": "&amp;",
12412
12386
  "<": "&lt;",
12413
12387
  ">": "&gt;",
12414
12388
  '"': "&quot;",
12415
12389
  "'": "&#39;"
12416
- }, Rc = (e) => TC[e];
12390
+ }, Rc = (e) => SC[e];
12417
12391
  function jt(e, t) {
12418
12392
  if (t) {
12419
12393
  if (xp.test(e))
12420
- return e.replace(SC, Rc);
12394
+ return e.replace(wC, Rc);
12421
12395
  } else if (yp.test(e))
12422
- return e.replace(CC, Rc);
12396
+ return e.replace(bC, Rc);
12423
12397
  return e;
12424
12398
  }
12425
- const IC = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
12399
+ const CC = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
12426
12400
  function vp(e) {
12427
- return e.replace(IC, (t, n) => (n = n.toLowerCase(), n === "colon" ? ":" : n.charAt(0) === "#" ? n.charAt(1) === "x" ? String.fromCharCode(parseInt(n.substring(2), 16)) : String.fromCharCode(+n.substring(1)) : ""));
12401
+ return e.replace(CC, (t, n) => (n = n.toLowerCase(), n === "colon" ? ":" : n.charAt(0) === "#" ? n.charAt(1) === "x" ? String.fromCharCode(parseInt(n.substring(2), 16)) : String.fromCharCode(+n.substring(1)) : ""));
12428
12402
  }
12429
- const kC = /(^|[^\[])\^/g;
12403
+ const TC = /(^|[^\[])\^/g;
12430
12404
  function lt(e, t) {
12431
12405
  e = typeof e == "string" ? e : e.source, t = t || "";
12432
12406
  const n = {
12433
- replace: (r, o) => (o = o.source || o, o = o.replace(kC, "$1"), e = e.replace(r, o), n),
12407
+ replace: (r, o) => (o = o.source || o, o = o.replace(TC, "$1"), e = e.replace(r, o), n),
12434
12408
  getRegex: () => new RegExp(e, t)
12435
12409
  };
12436
12410
  return n;
12437
12411
  }
12438
- const RC = /[^\w:]/g, EC = /^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;
12412
+ const IC = /[^\w:]/g, kC = /^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;
12439
12413
  function Ec(e, t, n) {
12440
12414
  if (e) {
12441
12415
  let r;
12442
12416
  try {
12443
- r = decodeURIComponent(vp(n)).replace(RC, "").toLowerCase();
12417
+ r = decodeURIComponent(vp(n)).replace(IC, "").toLowerCase();
12444
12418
  } catch {
12445
12419
  return null;
12446
12420
  }
12447
12421
  if (r.indexOf("javascript:") === 0 || r.indexOf("vbscript:") === 0 || r.indexOf("data:") === 0)
12448
12422
  return null;
12449
12423
  }
12450
- t && !EC.test(n) && (n = jC(t, n));
12424
+ t && !kC.test(n) && (n = NC(t, n));
12451
12425
  try {
12452
12426
  n = encodeURI(n).replace(/%25/g, "%");
12453
12427
  } catch {
@@ -12455,11 +12429,11 @@ function Ec(e, t, n) {
12455
12429
  }
12456
12430
  return n;
12457
12431
  }
12458
- const No = {}, AC = /^[^:]+:\/*[^/]*$/, NC = /^([^:]+:)[\s\S]*$/, _C = /^([^:]+:\/*[^/]*)[\s\S]*$/;
12459
- function jC(e, t) {
12460
- No[" " + e] || (AC.test(e) ? No[" " + e] = e + "/" : No[" " + e] = Wo(e, "/", !0)), e = No[" " + e];
12432
+ const No = {}, RC = /^[^:]+:\/*[^/]*$/, EC = /^([^:]+:)[\s\S]*$/, AC = /^([^:]+:\/*[^/]*)[\s\S]*$/;
12433
+ function NC(e, t) {
12434
+ No[" " + e] || (RC.test(e) ? No[" " + e] = e + "/" : No[" " + e] = Wo(e, "/", !0)), e = No[" " + e];
12461
12435
  const n = e.indexOf(":") === -1;
12462
- return t.substring(0, 2) === "//" ? n ? t : e.replace(NC, "$1") + t : t.charAt(0) === "/" ? n ? t : e.replace(_C, "$1") + t : e + t;
12436
+ return t.substring(0, 2) === "//" ? n ? t : e.replace(EC, "$1") + t : t.charAt(0) === "/" ? n ? t : e.replace(AC, "$1") + t : e + t;
12463
12437
  }
12464
12438
  const ss = { exec: function() {
12465
12439
  } };
@@ -12494,7 +12468,7 @@ function Wo(e, t, n) {
12494
12468
  }
12495
12469
  return e.slice(0, r - o);
12496
12470
  }
12497
- function PC(e, t) {
12471
+ function _C(e, t) {
12498
12472
  if (e.indexOf(t[1]) === -1)
12499
12473
  return -1;
12500
12474
  const n = e.length;
@@ -12508,7 +12482,7 @@ function PC(e, t) {
12508
12482
  return o;
12509
12483
  return -1;
12510
12484
  }
12511
- function MC(e) {
12485
+ function jC(e) {
12512
12486
  e && e.sanitize && !e.silent && console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options");
12513
12487
  }
12514
12488
  function Nc(e, t) {
@@ -12541,7 +12515,7 @@ function _c(e, t, n, r) {
12541
12515
  text: jt(i)
12542
12516
  };
12543
12517
  }
12544
- function OC(e, t) {
12518
+ function PC(e, t) {
12545
12519
  const n = e.match(/^(\s+)(?:```)/);
12546
12520
  if (n === null)
12547
12521
  return t;
@@ -12584,7 +12558,7 @@ class Ka {
12584
12558
  fences(t) {
12585
12559
  const n = this.rules.block.fences.exec(t);
12586
12560
  if (n) {
12587
- const r = n[0], o = OC(r, n[3] || "");
12561
+ const r = n[0], o = PC(r, n[3] || "");
12588
12562
  return {
12589
12563
  type: "code",
12590
12564
  raw: r,
@@ -12809,7 +12783,7 @@ class Ka {
12809
12783
  if ((r.length - i.length) % 2 === 0)
12810
12784
  return;
12811
12785
  } else {
12812
- const i = PC(n[2], "()");
12786
+ const i = _C(n[2], "()");
12813
12787
  if (i > -1) {
12814
12788
  const l = (n[0].indexOf("!") === 0 ? 5 : 4) + n[1].length + i;
12815
12789
  n[2] = n[2].substring(0, i), n[0] = n[0].substring(0, l).trim(), n[3] = "";
@@ -13097,7 +13071,7 @@ ue.breaks = {
13097
13071
  br: lt(ue.br).replace("{2,}", "*").getRegex(),
13098
13072
  text: lt(ue.gfm.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
13099
13073
  };
13100
- function DC(e) {
13074
+ function MC(e) {
13101
13075
  return e.replace(/---/g, "—").replace(/--/g, "–").replace(/(^|[-\u2014/(\[{"\s])'/g, "$1‘").replace(/'/g, "’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g, "$1“").replace(/"/g, "”").replace(/\.{3}/g, "…");
13102
13076
  }
13103
13077
  function jc(e) {
@@ -13311,7 +13285,7 @@ class $n {
13311
13285
  p = h.call({ lexer: this }, f), typeof p == "number" && p >= 0 && (d = Math.min(d, p));
13312
13286
  }), d < 1 / 0 && d >= 0 && (s = t.substring(0, d + 1));
13313
13287
  }
13314
- if (r = this.tokenizer.inlineText(s, DC)) {
13288
+ if (r = this.tokenizer.inlineText(s, MC)) {
13315
13289
  t = t.substring(r.raw.length), r.raw.slice(-1) !== "_" && (c = r.raw.slice(-1)), l = !0, o = n[n.length - 1], o && o.type === "text" ? (o.raw += r.raw, o.text += r.text) : n.push(r);
13316
13290
  continue;
13317
13291
  }
@@ -13735,7 +13709,7 @@ el(is, "passThroughHooks", /* @__PURE__ */ new Set([
13735
13709
  "preprocess",
13736
13710
  "postprocess"
13737
13711
  ]));
13738
- function LC(e, t, n) {
13712
+ function OC(e, t, n) {
13739
13713
  return (r) => {
13740
13714
  if (r.message += `
13741
13715
  Please report this to https://github.com/markedjs/marked.`, e) {
@@ -13762,12 +13736,12 @@ function Sp(e, t) {
13762
13736
  typeof r == "function" && (o = r, r = null);
13763
13737
  const s = { ...r };
13764
13738
  r = { ...ge.defaults, ...s };
13765
- const i = LC(r.silent, r.async, o);
13739
+ const i = OC(r.silent, r.async, o);
13766
13740
  if (typeof n > "u" || n === null)
13767
13741
  return i(new Error("marked(): input parameter is undefined or null"));
13768
13742
  if (typeof n != "string")
13769
13743
  return i(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
13770
- if (MC(r), r.hooks && (r.hooks.options = r), o) {
13744
+ if (jC(r), r.hooks && (r.hooks.options = r), o) {
13771
13745
  const a = r.highlight;
13772
13746
  let l;
13773
13747
  try {
@@ -13815,7 +13789,7 @@ function ge(e, t, n) {
13815
13789
  return Sp($n.lex, Fn.parse)(e, t, n);
13816
13790
  }
13817
13791
  ge.options = ge.setOptions = function(e) {
13818
- return ge.defaults = { ...ge.defaults, ...e }, bC(ge.defaults), ge;
13792
+ return ge.defaults = { ...ge.defaults, ...e }, vC(ge.defaults), ge;
13819
13793
  };
13820
13794
  ge.getDefaults = gp;
13821
13795
  ge.defaults = cr;
@@ -13992,27 +13966,27 @@ function as({
13992
13966
  }
13993
13967
  );
13994
13968
  }
13995
- const $C = { MODE: "library" };
13996
- function FC() {
13969
+ const DC = { MODE: "library" };
13970
+ function LC() {
13997
13971
  var i;
13998
13972
  const e = typeof globalThis < "u" ? globalThis.process : void 0, t = typeof ((i = e == null ? void 0 : e.env) == null ? void 0 : i.NODE_ENV) == "string" ? e.env.NODE_ENV : void 0;
13999
13973
  if (t)
14000
13974
  return t === "production";
14001
- const n = typeof import.meta < "u" ? $C : void 0, r = typeof (n == null ? void 0 : n.MODE) == "string" ? n.MODE : void 0, o = typeof (n == null ? void 0 : n.NODE_ENV) == "string" ? n.NODE_ENV : void 0;
13975
+ const n = typeof import.meta < "u" ? DC : void 0, r = typeof (n == null ? void 0 : n.MODE) == "string" ? n.MODE : void 0, o = typeof (n == null ? void 0 : n.NODE_ENV) == "string" ? n.NODE_ENV : void 0;
14002
13976
  return (r ?? o) === "production";
14003
13977
  }
14004
- function BC() {
14005
- return !FC();
13978
+ function $C() {
13979
+ return !LC();
14006
13980
  }
14007
- function zC() {
13981
+ function FC() {
14008
13982
  return typeof window > "u" ? !1 : window.__ARTIFACT_DEBUG__ === !0;
14009
13983
  }
14010
- function HC() {
14011
- return BC() || zC();
13984
+ function BC() {
13985
+ return $C() || FC();
14012
13986
  }
14013
- function UC({ preview: e, idx: t }) {
13987
+ function zC({ preview: e, idx: t }) {
14014
13988
  return wt(() => {
14015
- HC() && console.debug(`[MessageComponent] Preview ${t} mounted:`, {
13989
+ BC() && console.debug(`[MessageComponent] Preview ${t} mounted:`, {
14016
13990
  src: e.src.substring(0, 100),
14017
13991
  alt: e.alt,
14018
13992
  label: e.label
@@ -14096,7 +14070,7 @@ const Tp = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
14096
14070
  }
14097
14071
  ));
14098
14072
  Tp.displayName = "CardFooter";
14099
- function WC({
14073
+ function HC({
14100
14074
  interruptPart: e,
14101
14075
  onApprove: t,
14102
14076
  onReject: n,
@@ -14154,11 +14128,11 @@ function WC({
14154
14128
  }
14155
14129
  );
14156
14130
  }
14157
- const VC = "prose prose-sm max-w-none break-words dark:prose-invert prose-headings:break-words prose-p:break-words prose-li:break-words prose-td:break-words prose-th:break-words prose-a:break-all prose-code:break-words prose-blockquote:break-words";
14131
+ const UC = "prose prose-sm max-w-none break-words dark:prose-invert prose-headings:break-words prose-p:break-words prose-li:break-words prose-td:break-words prose-th:break-words prose-a:break-all prose-code:break-words prose-blockquote:break-words";
14158
14132
  function Ip({ data: e }) {
14159
- return Array.isArray(e) ? e.every((n) => n === null || ["string", "number", "boolean"].includes(typeof n)) ? /* @__PURE__ */ u.jsx("div", { className: VC, children: /* @__PURE__ */ u.jsx("ul", { className: "list-disc pl-5", children: e.map((n, r) => /* @__PURE__ */ u.jsx("li", { children: String(n) }, r)) }) }) : /* @__PURE__ */ u.jsx("pre", { className: "font-mono text-xs bg-background/50 rounded border p-2 whitespace-pre-wrap break-words", children: oo(e) }) : /* @__PURE__ */ u.jsx("pre", { className: "font-mono text-xs bg-background/50 rounded border p-2 whitespace-pre-wrap break-words", children: oo(e) });
14133
+ return Array.isArray(e) ? e.every((n) => n === null || ["string", "number", "boolean"].includes(typeof n)) ? /* @__PURE__ */ u.jsx("div", { className: UC, children: /* @__PURE__ */ u.jsx("ul", { className: "list-disc pl-5", children: e.map((n, r) => /* @__PURE__ */ u.jsx("li", { children: String(n) }, r)) }) }) : /* @__PURE__ */ u.jsx("pre", { className: "font-mono text-xs bg-background/50 rounded border p-2 whitespace-pre-wrap break-words", children: oo(e) }) : /* @__PURE__ */ u.jsx("pre", { className: "font-mono text-xs bg-background/50 rounded border p-2 whitespace-pre-wrap break-words", children: oo(e) });
14160
14134
  }
14161
- function KC({ message: e, viewMode: t }) {
14135
+ function WC({ message: e, viewMode: t }) {
14162
14136
  const r = Vf(e).name || "tool", o = (c) => {
14163
14137
  if (c == null) return null;
14164
14138
  const d = typeof c == "string" ? za(c) ?? c : c;
@@ -14174,7 +14148,7 @@ function KC({ message: e, viewMode: t }) {
14174
14148
  return /* @__PURE__ */ u.jsx("pre", { className: "whitespace-pre-wrap break-words font-sans text-sm text-foreground/90", children: f });
14175
14149
  }, s = (c) => {
14176
14150
  if (c == null) return null;
14177
- const { content: d, isMarkdown: f } = KS(c);
14151
+ const { content: d, isMarkdown: f } = WS(c);
14178
14152
  return f ? /* @__PURE__ */ u.jsx(as, { content: d, className: "text-current" }) : o(c);
14179
14153
  };
14180
14154
  if (t === "preview")
@@ -14199,21 +14173,44 @@ function KC({ message: e, viewMode: t }) {
14199
14173
  const a = ro(i), l = rs(a);
14200
14174
  return s(l);
14201
14175
  }
14202
- function qC({ message: e, viewMode: t, isStreaming: n = !1 }) {
14203
- const r = e.name ?? "tool";
14176
+ function VC({ message: e, viewMode: t, isStreaming: n = !1 }) {
14177
+ var a;
14178
+ const r = e.name ?? "tool", o = Le(() => {
14179
+ const l = e.additionalKwargs ?? {};
14180
+ return (Array.isArray(l.toolProgress) ? [...l.toolProgress] : []).slice(-6);
14181
+ }, [e]), s = (a = o[o.length - 1]) == null ? void 0 : a.title, i = n || o.length > 0;
14204
14182
  return /* @__PURE__ */ u.jsxs("div", { className: "space-y-2", children: [
14205
- n && /* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-2 text-xs uppercase tracking-wide text-muted-foreground", children: [
14206
- /* @__PURE__ */ u.jsx(ps, { className: "h-3 w-3 animate-spin" }),
14207
- /* @__PURE__ */ u.jsxs("span", { children: [
14208
- "Running ",
14209
- r,
14210
- ""
14211
- ] })
14183
+ i && /* @__PURE__ */ u.jsxs("div", { className: "space-y-2", children: [
14184
+ /* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-2 text-xs uppercase tracking-wide text-muted-foreground", children: [
14185
+ n && /* @__PURE__ */ u.jsx(ps, { className: "h-3 w-3 animate-spin" }),
14186
+ /* @__PURE__ */ u.jsx("span", { children: s ?? `Running ${r}…` })
14187
+ ] }),
14188
+ o.length > 0 && /* @__PURE__ */ u.jsx("div", { className: "space-y-2 text-xs text-muted-foreground", children: o.map((l, c) => /* @__PURE__ */ u.jsxs(
14189
+ "div",
14190
+ {
14191
+ className: "rounded border border-current/10 bg-muted/60 p-2 text-[11px] leading-snug",
14192
+ children: [
14193
+ /* @__PURE__ */ u.jsx("div", { className: "font-semibold text-[11px] uppercase opacity-70", children: l.title ?? l.step ?? `Step ${c + 1}` }),
14194
+ l.content && /* @__PURE__ */ u.jsx("p", { className: "mt-1 text-[12px] text-foreground/90", children: l.content }),
14195
+ /* @__PURE__ */ u.jsxs("div", { className: "mt-1 flex flex-wrap gap-2 text-[10px] opacity-70", children: [
14196
+ typeof l.factsFound == "number" && /* @__PURE__ */ u.jsxs("span", { children: [
14197
+ "Facts found: ",
14198
+ l.factsFound
14199
+ ] }),
14200
+ typeof l.isSufficient == "boolean" && /* @__PURE__ */ u.jsxs("span", { children: [
14201
+ "Research ",
14202
+ l.isSufficient ? "sufficient" : "needs more data"
14203
+ ] })
14204
+ ] })
14205
+ ]
14206
+ },
14207
+ `progress-${r}-${c}`
14208
+ )) })
14212
14209
  ] }),
14213
- /* @__PURE__ */ u.jsx(KC, { message: e, viewMode: t })
14210
+ /* @__PURE__ */ u.jsx(WC, { message: e, viewMode: t })
14214
14211
  ] });
14215
14212
  }
14216
- function GC(e) {
14213
+ function KC(e) {
14217
14214
  const { allowFileOpen: t, currentThreadId: n } = e, { toast: r } = Va(), [o, s] = ye({}), [i, a] = ye(null), [l, c] = ye(!1), d = ve(() => {
14218
14215
  c(!1), a(null);
14219
14216
  }, []), f = ve((h) => {
@@ -14241,7 +14238,7 @@ function GC(e) {
14241
14238
  h.preventDefault(), s((b) => ({ ...b, [g]: !0 }));
14242
14239
  const T = r({ title: "Fetching file...", description: "", open: !0 });
14243
14240
  try {
14244
- const b = await tC(n ?? void 0);
14241
+ const b = await QS(n ?? void 0);
14245
14242
  if (!b || !Array.isArray(b))
14246
14243
  throw new Error("Invalid file list response");
14247
14244
  const C = b.find((I) => !I || typeof I != "object" || !((I.filename ?? "") === (m.name ?? "")) ? !1 : typeof m.size == "number" && typeof I.size == "number" ? I.size === m.size : !0);
@@ -14285,7 +14282,7 @@ function GC(e) {
14285
14282
  closeFileViewer: d
14286
14283
  };
14287
14284
  }
14288
- function YC({
14285
+ function qC({
14289
14286
  text: e,
14290
14287
  expanded: t,
14291
14288
  onExpandedChange: n,
@@ -14328,7 +14325,7 @@ function YC({
14328
14325
  )
14329
14326
  ] });
14330
14327
  }
14331
- function XC({ className: e }) {
14328
+ function GC({ className: e }) {
14332
14329
  const [t, n] = ye(0);
14333
14330
  return wt(() => {
14334
14331
  const r = setInterval(() => n((o) => (o + 1) % 4), 500);
@@ -14379,7 +14376,7 @@ const Ga = em(function({
14379
14376
  fileViewerOpen: X,
14380
14377
  currentFileInfo: L,
14381
14378
  closeFileViewer: K
14382
- } = GC({ allowFileOpen: ke, currentThreadId: V }), J = Le(() => {
14379
+ } = KC({ allowFileOpen: ke, currentThreadId: V }), J = Le(() => {
14383
14380
  switch (q) {
14384
14381
  case "user":
14385
14382
  return "text-[hsl(var(--chat-bubble-user-text))]";
@@ -14396,7 +14393,7 @@ const Ga = em(function({
14396
14393
  if (se)
14397
14394
  return "";
14398
14395
  const O = t.content;
14399
- return Array.isArray(O) ? qS(O) : "";
14396
+ return Array.isArray(O) ? VS(O) : "";
14400
14397
  }, [se, t]), ie = Le(() => {
14401
14398
  if (se)
14402
14399
  return {};
@@ -14430,7 +14427,7 @@ const Ga = em(function({
14430
14427
  if (se)
14431
14428
  return "";
14432
14429
  const O = t.content;
14433
- return Array.isArray(O) ? GS(O) : "";
14430
+ return Array.isArray(O) ? KS(O) : "";
14434
14431
  }, [se, t]), Ge = Le(() => {
14435
14432
  if (se || !p) return [];
14436
14433
  const Z = t.artifact;
@@ -14439,7 +14436,7 @@ const Ga = em(function({
14439
14436
  ...Array.isArray(Z.plots) ? Z.plots : []
14440
14437
  ];
14441
14438
  for (const me of pe) {
14442
- const De = QS(me);
14439
+ const De = JS(me);
14443
14440
  De && ne.push(De);
14444
14441
  }
14445
14442
  return ne;
@@ -14576,7 +14573,7 @@ const Ga = em(function({
14576
14573
  if (O.type === "text") {
14577
14574
  const ne = O.text ?? "", pe = ne.trim(), me = za(pe);
14578
14575
  return me && q !== "tool" ? /* @__PURE__ */ u.jsx(Ip, { data: me }, Z) : q === "user" && c && pe.length > d ? /* @__PURE__ */ u.jsx(
14579
- YC,
14576
+ qC,
14580
14577
  {
14581
14578
  text: pe,
14582
14579
  expanded: F,
@@ -14624,7 +14621,7 @@ const Ga = em(function({
14624
14621
  (ne == null ? void 0 : ne.id) ?? (ne == null ? void 0 : ne.interrupt_id)
14625
14622
  ), me = !!(Je && pe && pe === Je), De = me ? ot ?? (ne == null ? void 0 : ne.value) : ne == null ? void 0 : ne.value, je = pe ? { ...ne, id: pe, interrupt_id: pe } : ne;
14626
14623
  return /* @__PURE__ */ u.jsx(
14627
- WC,
14624
+ HC,
14628
14625
  {
14629
14626
  interruptPart: je,
14630
14627
  onApprove: ht,
@@ -14663,7 +14660,7 @@ const Ga = em(function({
14663
14660
  return null;
14664
14661
  if (Y)
14665
14662
  return !f && Ge.length > 0 ? null : f ? /* @__PURE__ */ u.jsx(
14666
- qC,
14663
+ VC,
14667
14664
  {
14668
14665
  message: t,
14669
14666
  viewMode: $,
@@ -14675,7 +14672,7 @@ const Ga = em(function({
14675
14672
  const Z = t, ne = /* @__PURE__ */ u.jsx("div", { className: "space-y-2", children: Z.content.map((pe, me) => /* @__PURE__ */ u.jsx(Tt, { part: pe, i: me }, me)) });
14676
14673
  return r ? /* @__PURE__ */ u.jsxs("div", { "aria-busy": "true", role: "status", children: [
14677
14674
  ne,
14678
- /* @__PURE__ */ u.jsx(XC, { className: J })
14675
+ /* @__PURE__ */ u.jsx(GC, { className: J })
14679
14676
  ] }) : ne;
14680
14677
  }
14681
14678
  }, [
@@ -14690,7 +14687,7 @@ const Ga = em(function({
14690
14687
  Ge.length,
14691
14688
  Nt,
14692
14689
  J
14693
- ]), Ut = Le(() => se ? "Assistant" : YS(t), [se, t]), He = Le(() => se ? [] : Array.isArray(C) ? C : [], [C, se]), on = Le(() => {
14690
+ ]), Ut = Le(() => se ? "Assistant" : qS(t), [se, t]), He = Le(() => se ? [] : Array.isArray(C) ? C : [], [C, se]), on = Le(() => {
14694
14691
  var O;
14695
14692
  return He.length ? A && He.some((Z) => Z.id === A) ? A : ((O = He[0]) == null ? void 0 : O.id) ?? null : null;
14696
14693
  }, [A, He]), Ke = Le(() => !He.length || !I ? null : He.some((O) => O.id === I) ? I : null, [I, He]) ?? on, yt = q === "user" && He.length > 0 && typeof R == "function", _t = ve(
@@ -14862,7 +14859,7 @@ const Ga = em(function({
14862
14859
  ),
14863
14860
  /* @__PURE__ */ u.jsxs("div", { className: "relative", children: [
14864
14861
  Dt(),
14865
- p && Ge.length > 0 && /* @__PURE__ */ u.jsx("div", { className: "mt-3 space-y-4", children: Ge.map((O, Z) => /* @__PURE__ */ u.jsx(UC, { preview: O, idx: Z }, `artifact-${Z}`)) })
14862
+ p && Ge.length > 0 && /* @__PURE__ */ u.jsx("div", { className: "mt-3 space-y-4", children: Ge.map((O, Z) => /* @__PURE__ */ u.jsx(zC, { preview: O, idx: Z }, `artifact-${Z}`)) })
14866
14863
  ] }),
14867
14864
  Y && $ === "expanded" && (ie.toolCallId || ie.name) && /* @__PURE__ */ u.jsxs("div", { className: te("mt-2 pt-2 border-t border-current/10 text-xs opacity-60", _ && "text-xs"), children: [
14868
14865
  ie.name && /* @__PURE__ */ u.jsxs("div", { children: [
@@ -14918,7 +14915,7 @@ const Ga = em(function({
14918
14915
  )
14919
14916
  ] }) }),
14920
14917
  L && /* @__PURE__ */ u.jsx(
14921
- wC,
14918
+ yC,
14922
14919
  {
14923
14920
  isOpen: X,
14924
14921
  onClose: K,
@@ -14945,7 +14942,7 @@ const Ga = em(function({
14945
14942
  return o && s;
14946
14943
  });
14947
14944
  Ga.displayName = "MessageComponent";
14948
- function JC(e, t) {
14945
+ function YC(e, t) {
14949
14946
  return Le(() => {
14950
14947
  var d, f, p, h, m;
14951
14948
  const n = e && "type" in e && e.type === "default_message";
@@ -15037,7 +15034,7 @@ const kp = (e, t) => (e == null ? void 0 : e.id) ?? `message-${t}`, Rp = Q.memo(
15037
15034
  activeCheckpointId: C,
15038
15035
  onSelectCheckpoint: I
15039
15036
  }) {
15040
- const R = kp(t, n), A = "type" in t && t.type === "default_message", { checkpointCandidates: D, defaultCheckpointId: j, attemptMeta: M } = JC(t, {
15037
+ const R = kp(t, n), A = "type" in t && t.type === "default_message", { checkpointCandidates: D, defaultCheckpointId: j, attemptMeta: M } = YC(t, {
15041
15038
  checkpointMetaById: w,
15042
15039
  checkpointIndexByKey: S,
15043
15040
  attemptMetaById: T,
@@ -15235,7 +15232,7 @@ const Ep = Q.forwardRef(({
15235
15232
  }),
15236
15233
  [z]
15237
15234
  ), /* @__PURE__ */ u.jsx("div", { className: le, style: p, children: /* @__PURE__ */ u.jsx("div", { className: "relative flex-1 min-h-0", children: Ve ? /* @__PURE__ */ u.jsx(
15238
- ES,
15235
+ kS,
15239
15236
  {
15240
15237
  ref: (oe) => {
15241
15238
  N.current = oe;
@@ -15321,7 +15318,7 @@ function Si({
15321
15318
  metadata: j,
15322
15319
  timelineCheckpoints: M,
15323
15320
  messagePreviews: $
15324
- } = ca(), { isStreaming: E, error: F, connectionState: N, submit: V, stop: B } = Qx(), _ = w ?? x ?? null, q = (R == null ? void 0 : R.id) ?? null, Y = (R == null ? void 0 : R.namespace) ?? null, se = (j == null ? void 0 : j.assemblingMessageId) ?? null, we = D, [ke, G] = ye(!1);
15321
+ } = ca(), { isStreaming: E, error: F, connectionState: N, submit: V, stop: B } = Jx(), _ = w ?? x ?? null, q = (R == null ? void 0 : R.id) ?? null, Y = (R == null ? void 0 : R.namespace) ?? null, se = (j == null ? void 0 : j.assemblingMessageId) ?? null, we = D, [ke, G] = ye(!1);
15325
15322
  wt(() => {
15326
15323
  we || G(!1);
15327
15324
  }, [we]);
@@ -15331,7 +15328,7 @@ function Si({
15331
15328
  G(!1);
15332
15329
  }, []), L = !!we || ke, [K, J] = ye(null), [le, ie] = ye(""), [Ae, Ve] = ye(null), [oe, xe] = ye(null), [Oe, Je] = ye([]), [ot, Ze] = ye(0), [Ge, it] = ye(0), [Qe, et] = ye(!1), [ct, At] = ye(null), [gt, ht] = ye(null), [xt, Tt] = ye(!1), [Nt, Dt] = ye(null), Ut = $e(!1), [He, on] = ye(() => Pc.value), st = $e(He), Ke = $e(null), yt = ve((fe) => {
15333
15330
  Pc.value = fe, on(fe);
15334
- }, []), [_t, H] = ye(!1), re = $e(null), { checkpointMetaById: O, checkpointIndexByKey: Z, attemptMetaById: ne, userMessageIdToAttempts: pe } = m0(A), me = M ?? [], De = $e(null), je = $e(null), Ne = ve(() => {
15331
+ }, []), [_t, H] = ye(!1), re = $e(null), { checkpointMetaById: O, checkpointIndexByKey: Z, attemptMetaById: ne, userMessageIdToAttempts: pe } = p0(A), me = M ?? [], De = $e(null), je = $e(null), Ne = ve(() => {
15335
15332
  De.current && (De.current.value = ""), je.current && (je.current.value = ""), Ze((fe) => fe + 1), it((fe) => fe + 1);
15336
15333
  }, []), Wt = ve(
15337
15334
  (fe) => {
@@ -15379,7 +15376,7 @@ function Si({
15379
15376
  if (fe.length > Fo)
15380
15377
  return `Message too long (${fe.length}/${Fo} characters)`;
15381
15378
  try {
15382
- return y0(fe), null;
15379
+ return g0(fe), null;
15383
15380
  } catch (Ce) {
15384
15381
  return (Ce == null ? void 0 : Ce.message) || "Invalid message";
15385
15382
  }
@@ -15646,8 +15643,8 @@ function Si({
15646
15643
  ] }),
15647
15644
  oe && /* @__PURE__ */ u.jsx("div", { className: "mb-3 text-sm text-red-600 bg-red-50 border border-red-200 rounded px-3 py-2", children: oe }),
15648
15645
  /* @__PURE__ */ u.jsxs("div", { className: "flex items-end gap-2", children: [
15649
- (a || l) && /* @__PURE__ */ u.jsxs(t0, { children: [
15650
- /* @__PURE__ */ u.jsx(n0, { asChild: !0, children: /* @__PURE__ */ u.jsx(
15646
+ (a || l) && /* @__PURE__ */ u.jsxs(Qb, { children: [
15647
+ /* @__PURE__ */ u.jsx(e0, { asChild: !0, children: /* @__PURE__ */ u.jsx(
15651
15648
  tt,
15652
15649
  {
15653
15650
  type: "button",
@@ -15684,7 +15681,7 @@ function Si({
15684
15681
  ] })
15685
15682
  ] }),
15686
15683
  /* @__PURE__ */ u.jsx("div", { className: "flex-1", children: /* @__PURE__ */ u.jsx(
15687
- ny,
15684
+ ey,
15688
15685
  {
15689
15686
  initialValue: le,
15690
15687
  editingMessageId: K,
@@ -15723,10 +15720,10 @@ ls.displayName = "Input";
15723
15720
  function qi(e, [t, n]) {
15724
15721
  return Math.min(n, Math.max(t, e));
15725
15722
  }
15726
- function ZC(e, t) {
15723
+ function XC(e, t) {
15727
15724
  return v.useReducer((n, r) => t[n][r] ?? n, e);
15728
15725
  }
15729
- var Ya = "ScrollArea", [Ap, BI] = Nn(Ya), [QC, rn] = Ap(Ya), Np = v.forwardRef(
15726
+ var Ya = "ScrollArea", [Ap, $I] = Nn(Ya), [JC, rn] = Ap(Ya), Np = v.forwardRef(
15730
15727
  (e, t) => {
15731
15728
  const {
15732
15729
  __scopeScrollArea: n,
@@ -15736,7 +15733,7 @@ var Ya = "ScrollArea", [Ap, BI] = Nn(Ya), [QC, rn] = Ap(Ya), Np = v.forwardRef(
15736
15733
  ...i
15737
15734
  } = e, [a, l] = v.useState(null), [c, d] = v.useState(null), [f, p] = v.useState(null), [h, m] = v.useState(null), [g, y] = v.useState(null), [x, w] = v.useState(0), [S, T] = v.useState(0), [b, C] = v.useState(!1), [I, R] = v.useState(!1), A = We(t, (j) => l(j)), D = Ss(o);
15738
15735
  return /* @__PURE__ */ u.jsx(
15739
- QC,
15736
+ JC,
15740
15737
  {
15741
15738
  scope: n,
15742
15739
  type: r,
@@ -15824,11 +15821,11 @@ var Cn = "ScrollAreaScrollbar", Xa = v.forwardRef(
15824
15821
  const { forceMount: n, ...r } = e, o = rn(Cn, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: i } = o, a = e.orientation === "horizontal";
15825
15822
  return v.useEffect(() => (a ? s(!0) : i(!0), () => {
15826
15823
  a ? s(!1) : i(!1);
15827
- }), [a, s, i]), o.type === "hover" ? /* @__PURE__ */ u.jsx(eT, { ...r, ref: t, forceMount: n }) : o.type === "scroll" ? /* @__PURE__ */ u.jsx(tT, { ...r, ref: t, forceMount: n }) : o.type === "auto" ? /* @__PURE__ */ u.jsx(Pp, { ...r, ref: t, forceMount: n }) : o.type === "always" ? /* @__PURE__ */ u.jsx(Ja, { ...r, ref: t }) : null;
15824
+ }), [a, s, i]), o.type === "hover" ? /* @__PURE__ */ u.jsx(ZC, { ...r, ref: t, forceMount: n }) : o.type === "scroll" ? /* @__PURE__ */ u.jsx(QC, { ...r, ref: t, forceMount: n }) : o.type === "auto" ? /* @__PURE__ */ u.jsx(Pp, { ...r, ref: t, forceMount: n }) : o.type === "always" ? /* @__PURE__ */ u.jsx(Ja, { ...r, ref: t }) : null;
15828
15825
  }
15829
15826
  );
15830
15827
  Xa.displayName = Cn;
15831
- var eT = v.forwardRef((e, t) => {
15828
+ var ZC = v.forwardRef((e, t) => {
15832
15829
  const { forceMount: n, ...r } = e, o = rn(Cn, e.__scopeScrollArea), [s, i] = v.useState(!1);
15833
15830
  return v.useEffect(() => {
15834
15831
  const a = o.scrollArea;
@@ -15851,8 +15848,8 @@ var eT = v.forwardRef((e, t) => {
15851
15848
  ref: t
15852
15849
  }
15853
15850
  ) });
15854
- }), tT = v.forwardRef((e, t) => {
15855
- const { forceMount: n, ...r } = e, o = rn(Cn, e.__scopeScrollArea), s = e.orientation === "horizontal", i = Ks(() => l("SCROLL_END"), 100), [a, l] = ZC("hidden", {
15851
+ }), QC = v.forwardRef((e, t) => {
15852
+ const { forceMount: n, ...r } = e, o = rn(Cn, e.__scopeScrollArea), s = e.orientation === "horizontal", i = Ks(() => l("SCROLL_END"), 100), [a, l] = XC("hidden", {
15856
15853
  hidden: {
15857
15854
  SCROLL: "scrolling"
15858
15855
  },
@@ -15925,10 +15922,10 @@ var eT = v.forwardRef((e, t) => {
15925
15922
  onThumbPointerDown: (p) => i.current = p
15926
15923
  };
15927
15924
  function f(p, h) {
15928
- return aT(p, i.current, a, h);
15925
+ return sT(p, i.current, a, h);
15929
15926
  }
15930
15927
  return n === "horizontal" ? /* @__PURE__ */ u.jsx(
15931
- nT,
15928
+ eT,
15932
15929
  {
15933
15930
  ...d,
15934
15931
  ref: t,
@@ -15946,7 +15943,7 @@ var eT = v.forwardRef((e, t) => {
15946
15943
  }
15947
15944
  }
15948
15945
  ) : n === "vertical" ? /* @__PURE__ */ u.jsx(
15949
- rT,
15946
+ tT,
15950
15947
  {
15951
15948
  ...d,
15952
15949
  ref: t,
@@ -15964,7 +15961,7 @@ var eT = v.forwardRef((e, t) => {
15964
15961
  }
15965
15962
  }
15966
15963
  ) : null;
15967
- }), nT = v.forwardRef((e, t) => {
15964
+ }), eT = v.forwardRef((e, t) => {
15968
15965
  const { sizes: n, onSizesChange: r, ...o } = e, s = rn(Cn, e.__scopeScrollArea), [i, a] = v.useState(), l = v.useRef(null), c = We(t, l, s.onScrollbarXChange);
15969
15966
  return v.useEffect(() => {
15970
15967
  l.current && a(getComputedStyle(l.current));
@@ -16003,7 +16000,7 @@ var eT = v.forwardRef((e, t) => {
16003
16000
  }
16004
16001
  }
16005
16002
  );
16006
- }), rT = v.forwardRef((e, t) => {
16003
+ }), tT = v.forwardRef((e, t) => {
16007
16004
  const { sizes: n, onSizesChange: r, ...o } = e, s = rn(Cn, e.__scopeScrollArea), [i, a] = v.useState(), l = v.useRef(null), c = We(t, l, s.onScrollbarYChange);
16008
16005
  return v.useEffect(() => {
16009
16006
  l.current && a(getComputedStyle(l.current));
@@ -16043,7 +16040,7 @@ var eT = v.forwardRef((e, t) => {
16043
16040
  }
16044
16041
  }
16045
16042
  );
16046
- }), [oT, Mp] = Ap(Cn), Op = v.forwardRef((e, t) => {
16043
+ }), [nT, Mp] = Ap(Cn), Op = v.forwardRef((e, t) => {
16047
16044
  const {
16048
16045
  __scopeScrollArea: n,
16049
16046
  sizes: r,
@@ -16070,7 +16067,7 @@ var eT = v.forwardRef((e, t) => {
16070
16067
  };
16071
16068
  return document.addEventListener("wheel", A, { passive: !1 }), () => document.removeEventListener("wheel", A, { passive: !1 });
16072
16069
  }, [S, m, T, b]), v.useEffect(C, [r, C]), Tr(m, I), Tr(h.content, I), /* @__PURE__ */ u.jsx(
16073
- oT,
16070
+ nT,
16074
16071
  {
16075
16072
  scope: n,
16076
16073
  scrollbar: m,
@@ -16100,9 +16097,9 @@ var eT = v.forwardRef((e, t) => {
16100
16097
  }), cs = "ScrollAreaThumb", Dp = v.forwardRef(
16101
16098
  (e, t) => {
16102
16099
  const { forceMount: n, ...r } = e, o = Mp(cs, e.__scopeScrollArea);
16103
- return /* @__PURE__ */ u.jsx(nn, { present: n || o.hasThumb, children: /* @__PURE__ */ u.jsx(sT, { ref: t, ...r }) });
16100
+ return /* @__PURE__ */ u.jsx(nn, { present: n || o.hasThumb, children: /* @__PURE__ */ u.jsx(rT, { ref: t, ...r }) });
16104
16101
  }
16105
- ), sT = v.forwardRef(
16102
+ ), rT = v.forwardRef(
16106
16103
  (e, t) => {
16107
16104
  const { __scopeScrollArea: n, style: r, ...o } = e, s = rn(cs, n), i = Mp(cs, n), { onThumbPositionChange: a } = i, l = We(
16108
16105
  t,
@@ -16115,7 +16112,7 @@ var eT = v.forwardRef((e, t) => {
16115
16112
  if (f) {
16116
16113
  const p = () => {
16117
16114
  if (d(), !c.current) {
16118
- const h = lT(f, a);
16115
+ const h = iT(f, a);
16119
16116
  c.current = h, a();
16120
16117
  }
16121
16118
  };
@@ -16145,11 +16142,11 @@ Dp.displayName = cs;
16145
16142
  var Za = "ScrollAreaCorner", Lp = v.forwardRef(
16146
16143
  (e, t) => {
16147
16144
  const n = rn(Za, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY);
16148
- return n.type !== "scroll" && r ? /* @__PURE__ */ u.jsx(iT, { ...e, ref: t }) : null;
16145
+ return n.type !== "scroll" && r ? /* @__PURE__ */ u.jsx(oT, { ...e, ref: t }) : null;
16149
16146
  }
16150
16147
  );
16151
16148
  Lp.displayName = Za;
16152
- var iT = v.forwardRef((e, t) => {
16149
+ var oT = v.forwardRef((e, t) => {
16153
16150
  const { __scopeScrollArea: n, ...r } = e, o = rn(Za, n), [s, i] = v.useState(0), [a, l] = v.useState(0), c = !!(s && a);
16154
16151
  return Tr(o.scrollbarX, () => {
16155
16152
  var f;
@@ -16187,7 +16184,7 @@ function Vs(e) {
16187
16184
  const t = $p(e.viewport, e.content), n = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - n) * t;
16188
16185
  return Math.max(r, 18);
16189
16186
  }
16190
- function aT(e, t, n, r = "ltr") {
16187
+ function sT(e, t, n, r = "ltr") {
16191
16188
  const o = Vs(n), s = o / 2, i = t || s, a = o - i, l = n.scrollbar.paddingStart + i, c = n.scrollbar.size - n.scrollbar.paddingEnd - a, d = n.content - n.viewport, f = r === "ltr" ? [0, d] : [d * -1, 0];
16192
16189
  return Fp([l, c], f)(e);
16193
16190
  }
@@ -16205,7 +16202,7 @@ function Fp(e, t) {
16205
16202
  function Bp(e, t) {
16206
16203
  return e > 0 && e < t;
16207
16204
  }
16208
- var lT = (e, t = () => {
16205
+ var iT = (e, t = () => {
16209
16206
  }) => {
16210
16207
  let n = { left: e.scrollLeft, top: e.scrollTop }, r = 0;
16211
16208
  return function o() {
@@ -16233,7 +16230,7 @@ function Tr(e, t) {
16233
16230
  }
16234
16231
  }, [e, n]);
16235
16232
  }
16236
- var zp = Np, cT = jp, uT = Lp;
16233
+ var zp = Np, aT = jp, lT = Lp;
16237
16234
  const Hp = v.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ u.jsxs(
16238
16235
  zp,
16239
16236
  {
@@ -16241,9 +16238,9 @@ const Hp = v.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
16241
16238
  className: te("relative overflow-hidden", e),
16242
16239
  ...n,
16243
16240
  children: [
16244
- /* @__PURE__ */ u.jsx(cT, { className: "h-full w-full rounded-[inherit] overflow-auto", children: t }),
16241
+ /* @__PURE__ */ u.jsx(aT, { className: "h-full w-full rounded-[inherit] overflow-auto", children: t }),
16245
16242
  /* @__PURE__ */ u.jsx(Up, {}),
16246
- /* @__PURE__ */ u.jsx(uT, {})
16243
+ /* @__PURE__ */ u.jsx(lT, {})
16247
16244
  ]
16248
16245
  }
16249
16246
  ));
@@ -16427,7 +16424,7 @@ function Dc({
16427
16424
  )
16428
16425
  ] });
16429
16426
  }
16430
- const zI = ({
16427
+ const FI = ({
16431
16428
  timelineEntries: e,
16432
16429
  activeCheckpointId: t,
16433
16430
  onSelectCheckpoint: n,
@@ -16505,7 +16502,7 @@ function vr(e) {
16505
16502
  if (!(typeof globalThis > "u"))
16506
16503
  return globalThis[e];
16507
16504
  }
16508
- function dT(e) {
16505
+ function cT(e) {
16509
16506
  if (typeof e != "string") return;
16510
16507
  const t = e.trim();
16511
16508
  if (t)
@@ -16518,7 +16515,7 @@ function Wp() {
16518
16515
  vr("__CHAT_API_URL__")
16519
16516
  ];
16520
16517
  for (const t of e) {
16521
- const n = dT(t);
16518
+ const n = cT(t);
16522
16519
  if (n) return n;
16523
16520
  }
16524
16521
  }
@@ -16538,12 +16535,12 @@ function Kp(...e) {
16538
16535
  return Rn(t);
16539
16536
  return Rn();
16540
16537
  }
16541
- function fT() {
16538
+ function uT() {
16542
16539
  const e = {}, t = Wp(), n = Vp();
16543
16540
  return t && (e.baseUrl = t), n && (e.apiKey = n), e;
16544
16541
  }
16545
- function pT() {
16546
- const e = fT(), t = Qn.getAuthToken(), n = Wp();
16542
+ function dT() {
16543
+ const e = uT(), t = Qn.getAuthToken(), n = Wp();
16547
16544
  return {
16548
16545
  apiBaseUrl: Kp(
16549
16546
  e.baseUrl,
@@ -16563,7 +16560,7 @@ function pT() {
16563
16560
  };
16564
16561
  }
16565
16562
  const qp = "chat-settings";
16566
- function hT() {
16563
+ function fT() {
16567
16564
  try {
16568
16565
  const e = localStorage.getItem(qp);
16569
16566
  return e ? JSON.parse(e) : {};
@@ -16571,7 +16568,7 @@ function hT() {
16571
16568
  return console.error("Failed to parse stored settings:", e), {};
16572
16569
  }
16573
16570
  }
16574
- function mT(e) {
16571
+ function pT(e) {
16575
16572
  try {
16576
16573
  const t = {
16577
16574
  ...e,
@@ -16582,8 +16579,8 @@ function mT(e) {
16582
16579
  console.error("Failed to save settings:", t);
16583
16580
  }
16584
16581
  }
16585
- function HI() {
16586
- const e = pT(), t = hT(), n = Qn.getAuthToken(), r = typeof t.apiBaseUrl == "string" ? t.apiBaseUrl : void 0;
16582
+ function BI() {
16583
+ const e = dT(), t = fT(), n = Qn.getAuthToken(), r = typeof t.apiBaseUrl == "string" ? t.apiBaseUrl : void 0;
16587
16584
  return {
16588
16585
  ...e,
16589
16586
  ...t,
@@ -16597,13 +16594,13 @@ function HI() {
16597
16594
  )
16598
16595
  };
16599
16596
  }
16600
- function UI(e) {
16597
+ function zI(e) {
16601
16598
  Qn.updateConfig({
16602
16599
  baseUrl: e.apiBaseUrl,
16603
16600
  authToken: e.apiKey ?? void 0
16604
- }), mT(e);
16601
+ }), pT(e);
16605
16602
  }
16606
- var gT = "Label", Gp = v.forwardRef((e, t) => /* @__PURE__ */ u.jsx(
16603
+ var hT = "Label", Gp = v.forwardRef((e, t) => /* @__PURE__ */ u.jsx(
16607
16604
  _e.label,
16608
16605
  {
16609
16606
  ...e,
@@ -16614,15 +16611,15 @@ var gT = "Label", Gp = v.forwardRef((e, t) => /* @__PURE__ */ u.jsx(
16614
16611
  }
16615
16612
  }
16616
16613
  ));
16617
- Gp.displayName = gT;
16614
+ Gp.displayName = hT;
16618
16615
  var Yp = Gp;
16619
- const xT = ms(
16616
+ const mT = ms(
16620
16617
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
16621
16618
  ), Jt = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
16622
16619
  Yp,
16623
16620
  {
16624
16621
  ref: n,
16625
- className: te(xT(), e),
16622
+ className: te(mT(), e),
16626
16623
  ...t
16627
16624
  }
16628
16625
  ));
@@ -16643,7 +16640,7 @@ var Jp = Object.freeze({
16643
16640
  clip: "rect(0, 0, 0, 0)",
16644
16641
  whiteSpace: "nowrap",
16645
16642
  wordWrap: "normal"
16646
- }), yT = "VisuallyHidden", vT = v.forwardRef(
16643
+ }), gT = "VisuallyHidden", xT = v.forwardRef(
16647
16644
  (e, t) => /* @__PURE__ */ u.jsx(
16648
16645
  _e.span,
16649
16646
  {
@@ -16653,11 +16650,11 @@ var Jp = Object.freeze({
16653
16650
  }
16654
16651
  )
16655
16652
  );
16656
- vT.displayName = yT;
16657
- var wT = [" ", "Enter", "ArrowUp", "ArrowDown"], bT = [" ", "Enter"], rr = "Select", [qs, Gs, ST] = da(rr), [_r, WI] = Nn(rr, [
16658
- ST,
16653
+ xT.displayName = gT;
16654
+ var yT = [" ", "Enter", "ArrowUp", "ArrowDown"], vT = [" ", "Enter"], rr = "Select", [qs, Gs, wT] = da(rr), [_r, HI] = Nn(rr, [
16655
+ wT,
16659
16656
  As
16660
- ]), Ys = As(), [CT, Un] = _r(rr), [TT, IT] = _r(rr), Zp = (e) => {
16657
+ ]), Ys = As(), [bT, Un] = _r(rr), [ST, CT] = _r(rr), Zp = (e) => {
16661
16658
  const {
16662
16659
  __scopeSelect: t,
16663
16660
  children: n,
@@ -16685,7 +16682,7 @@ var wT = [" ", "Enter", "ArrowUp", "ArrowDown"], bT = [" ", "Enter"], rr = "Sele
16685
16682
  caller: rr
16686
16683
  }), j = v.useRef(null), M = y ? m || !!y.closest("form") : !0, [$, E] = v.useState(/* @__PURE__ */ new Set()), F = Array.from($).map((N) => N.props.value).join(";");
16687
16684
  return /* @__PURE__ */ u.jsx(Ju, { ...g, children: /* @__PURE__ */ u.jsxs(
16688
- CT,
16685
+ bT,
16689
16686
  {
16690
16687
  required: h,
16691
16688
  scope: t,
@@ -16705,7 +16702,7 @@ var wT = [" ", "Enter", "ArrowUp", "ArrowDown"], bT = [" ", "Enter"], rr = "Sele
16705
16702
  disabled: p,
16706
16703
  children: [
16707
16704
  /* @__PURE__ */ u.jsx(qs.Provider, { scope: t, children: /* @__PURE__ */ u.jsx(
16708
- TT,
16705
+ ST,
16709
16706
  {
16710
16707
  scope: e.__scopeSelect,
16711
16708
  onNativeOptionAdd: v.useCallback((N) => {
@@ -16781,7 +16778,7 @@ var Qp = "SelectTrigger", eh = v.forwardRef(
16781
16778
  }),
16782
16779
  onKeyDown: de(o.onKeyDown, (g) => {
16783
16780
  const y = f.current !== "";
16784
- !(g.ctrlKey || g.altKey || g.metaKey) && g.key.length === 1 && p(g.key), !(y && g.key === " ") && wT.includes(g.key) && (m(), g.preventDefault());
16781
+ !(g.ctrlKey || g.altKey || g.metaKey) && g.key.length === 1 && p(g.key), !(y && g.key === " ") && yT.includes(g.key) && (m(), g.preventDefault());
16785
16782
  })
16786
16783
  }
16787
16784
  ) });
@@ -16805,15 +16802,15 @@ var th = "SelectValue", nh = v.forwardRef(
16805
16802
  }
16806
16803
  );
16807
16804
  nh.displayName = th;
16808
- var kT = "SelectIcon", rh = v.forwardRef(
16805
+ var TT = "SelectIcon", rh = v.forwardRef(
16809
16806
  (e, t) => {
16810
16807
  const { __scopeSelect: n, children: r, ...o } = e;
16811
16808
  return /* @__PURE__ */ u.jsx(_e.span, { "aria-hidden": !0, ...o, ref: t, children: r || "▼" });
16812
16809
  }
16813
16810
  );
16814
- rh.displayName = kT;
16815
- var RT = "SelectPortal", oh = (e) => /* @__PURE__ */ u.jsx(Ns, { asChild: !0, ...e });
16816
- oh.displayName = RT;
16811
+ rh.displayName = TT;
16812
+ var IT = "SelectPortal", oh = (e) => /* @__PURE__ */ u.jsx(Ns, { asChild: !0, ...e });
16813
+ oh.displayName = IT;
16817
16814
  var or = "SelectContent", sh = v.forwardRef(
16818
16815
  (e, t) => {
16819
16816
  const n = Un(or, e.__scopeSelect), [r, o] = v.useState();
@@ -16830,7 +16827,7 @@ var or = "SelectContent", sh = v.forwardRef(
16830
16827
  }
16831
16828
  );
16832
16829
  sh.displayName = or;
16833
- var sn = 10, [ih, Wn] = _r(or), ET = "SelectContentImpl", AT = wr("SelectContent.RemoveScroll"), ah = v.forwardRef(
16830
+ var sn = 10, [ih, Wn] = _r(or), kT = "SelectContentImpl", RT = wr("SelectContent.RemoveScroll"), ah = v.forwardRef(
16834
16831
  (e, t) => {
16835
16832
  const {
16836
16833
  __scopeSelect: n,
@@ -16938,7 +16935,7 @@ var sn = 10, [ih, Wn] = _r(or), ET = "SelectContentImpl", AT = wr("SelectContent
16938
16935
  position: r,
16939
16936
  isPositioned: $,
16940
16937
  searchRef: q,
16941
- children: /* @__PURE__ */ u.jsx(js, { as: AT, allowPinchZoom: !0, children: /* @__PURE__ */ u.jsx(
16938
+ children: /* @__PURE__ */ u.jsx(js, { as: RT, allowPinchZoom: !0, children: /* @__PURE__ */ u.jsx(
16942
16939
  Ts,
16943
16940
  {
16944
16941
  asChild: !0,
@@ -17000,8 +16997,8 @@ var sn = 10, [ih, Wn] = _r(or), ET = "SelectContentImpl", AT = wr("SelectContent
17000
16997
  );
17001
16998
  }
17002
16999
  );
17003
- ah.displayName = ET;
17004
- var NT = "SelectItemAlignedPosition", lh = v.forwardRef((e, t) => {
17000
+ ah.displayName = kT;
17001
+ var ET = "SelectItemAlignedPosition", lh = v.forwardRef((e, t) => {
17005
17002
  const { __scopeSelect: n, onPlaced: r, ...o } = e, s = Un(or, n), i = Wn(or, n), [a, l] = v.useState(null), [c, d] = v.useState(null), f = We(t, (I) => d(I)), p = Gs(n), h = v.useRef(!1), m = v.useRef(!0), { viewport: g, selectedItem: y, selectedItemText: x, focusSelectedItem: w } = i, S = v.useCallback(() => {
17006
17003
  if (s.trigger && s.valueNode && a && c && g && y && x) {
17007
17004
  const I = s.trigger.getBoundingClientRect(), R = c.getBoundingClientRect(), A = s.valueNode.getBoundingClientRect(), D = x.getBoundingClientRect();
@@ -17069,7 +17066,7 @@ var NT = "SelectItemAlignedPosition", lh = v.forwardRef((e, t) => {
17069
17066
  [S, w]
17070
17067
  );
17071
17068
  return /* @__PURE__ */ u.jsx(
17072
- jT,
17069
+ NT,
17073
17070
  {
17074
17071
  scope: n,
17075
17072
  contentWrapper: a,
@@ -17105,8 +17102,8 @@ var NT = "SelectItemAlignedPosition", lh = v.forwardRef((e, t) => {
17105
17102
  }
17106
17103
  );
17107
17104
  });
17108
- lh.displayName = NT;
17109
- var _T = "SelectPopperPosition", Gi = v.forwardRef((e, t) => {
17105
+ lh.displayName = ET;
17106
+ var AT = "SelectPopperPosition", Gi = v.forwardRef((e, t) => {
17110
17107
  const {
17111
17108
  __scopeSelect: n,
17112
17109
  align: r = "start",
@@ -17134,8 +17131,8 @@ var _T = "SelectPopperPosition", Gi = v.forwardRef((e, t) => {
17134
17131
  }
17135
17132
  );
17136
17133
  });
17137
- Gi.displayName = _T;
17138
- var [jT, Qa] = _r(or, {}), Yi = "SelectViewport", ch = v.forwardRef(
17134
+ Gi.displayName = AT;
17135
+ var [NT, Qa] = _r(or, {}), Yi = "SelectViewport", ch = v.forwardRef(
17139
17136
  (e, t) => {
17140
17137
  const { __scopeSelect: n, nonce: r, ...o } = e, s = Wn(Yi, n), i = Qa(Yi, n), a = We(t, s.onViewportChange), l = v.useRef(0);
17141
17138
  return /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
@@ -17188,21 +17185,21 @@ var [jT, Qa] = _r(or, {}), Yi = "SelectViewport", ch = v.forwardRef(
17188
17185
  }
17189
17186
  );
17190
17187
  ch.displayName = Yi;
17191
- var uh = "SelectGroup", [PT, MT] = _r(uh), OT = v.forwardRef(
17188
+ var uh = "SelectGroup", [_T, jT] = _r(uh), PT = v.forwardRef(
17192
17189
  (e, t) => {
17193
17190
  const { __scopeSelect: n, ...r } = e, o = kn();
17194
- return /* @__PURE__ */ u.jsx(PT, { scope: n, id: o, children: /* @__PURE__ */ u.jsx(_e.div, { role: "group", "aria-labelledby": o, ...r, ref: t }) });
17191
+ return /* @__PURE__ */ u.jsx(_T, { scope: n, id: o, children: /* @__PURE__ */ u.jsx(_e.div, { role: "group", "aria-labelledby": o, ...r, ref: t }) });
17195
17192
  }
17196
17193
  );
17197
- OT.displayName = uh;
17194
+ PT.displayName = uh;
17198
17195
  var dh = "SelectLabel", fh = v.forwardRef(
17199
17196
  (e, t) => {
17200
- const { __scopeSelect: n, ...r } = e, o = MT(dh, n);
17197
+ const { __scopeSelect: n, ...r } = e, o = jT(dh, n);
17201
17198
  return /* @__PURE__ */ u.jsx(_e.div, { id: o.id, ...r, ref: t });
17202
17199
  }
17203
17200
  );
17204
17201
  fh.displayName = dh;
17205
- var ds = "SelectItem", [DT, ph] = _r(ds), hh = v.forwardRef(
17202
+ var ds = "SelectItem", [MT, ph] = _r(ds), hh = v.forwardRef(
17206
17203
  (e, t) => {
17207
17204
  const {
17208
17205
  __scopeSelect: n,
@@ -17224,7 +17221,7 @@ var ds = "SelectItem", [DT, ph] = _r(ds), hh = v.forwardRef(
17224
17221
  "A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
17225
17222
  );
17226
17223
  return /* @__PURE__ */ u.jsx(
17227
- DT,
17224
+ MT,
17228
17225
  {
17229
17226
  scope: n,
17230
17227
  value: r,
@@ -17275,7 +17272,7 @@ var ds = "SelectItem", [DT, ph] = _r(ds), hh = v.forwardRef(
17275
17272
  }),
17276
17273
  onKeyDown: de(i.onKeyDown, (w) => {
17277
17274
  var T;
17278
- ((T = l.searchRef) == null ? void 0 : T.current) !== "" && w.key === " " || (bT.includes(w.key) && x(), w.key === " " && w.preventDefault());
17275
+ ((T = l.searchRef) == null ? void 0 : T.current) !== "" && w.key === " " || (vT.includes(w.key) && x(), w.key === " " && w.preventDefault());
17279
17276
  })
17280
17277
  }
17281
17278
  )
@@ -17288,7 +17285,7 @@ var ds = "SelectItem", [DT, ph] = _r(ds), hh = v.forwardRef(
17288
17285
  hh.displayName = ds;
17289
17286
  var Fr = "SelectItemText", mh = v.forwardRef(
17290
17287
  (e, t) => {
17291
- const { __scopeSelect: n, className: r, style: o, ...s } = e, i = Un(Fr, n), a = Wn(Fr, n), l = ph(Fr, n), c = IT(Fr, n), [d, f] = v.useState(null), p = We(
17288
+ const { __scopeSelect: n, className: r, style: o, ...s } = e, i = Un(Fr, n), a = Wn(Fr, n), l = ph(Fr, n), c = CT(Fr, n), [d, f] = v.useState(null), p = We(
17292
17289
  t,
17293
17290
  (x) => f(x),
17294
17291
  l.onItemTextChange,
@@ -17389,21 +17386,21 @@ var wh = v.forwardRef((e, t) => {
17389
17386
  })
17390
17387
  }
17391
17388
  );
17392
- }), LT = "SelectSeparator", bh = v.forwardRef(
17389
+ }), OT = "SelectSeparator", bh = v.forwardRef(
17393
17390
  (e, t) => {
17394
17391
  const { __scopeSelect: n, ...r } = e;
17395
17392
  return /* @__PURE__ */ u.jsx(_e.div, { "aria-hidden": !0, ...r, ref: t });
17396
17393
  }
17397
17394
  );
17398
- bh.displayName = LT;
17399
- var Zi = "SelectArrow", $T = v.forwardRef(
17395
+ bh.displayName = OT;
17396
+ var Zi = "SelectArrow", DT = v.forwardRef(
17400
17397
  (e, t) => {
17401
17398
  const { __scopeSelect: n, ...r } = e, o = Ys(n), s = Un(Zi, n), i = Wn(Zi, n);
17402
17399
  return s.open && i.position === "popper" ? /* @__PURE__ */ u.jsx(ed, { ...o, ...r, ref: t }) : null;
17403
17400
  }
17404
17401
  );
17405
- $T.displayName = Zi;
17406
- var FT = "SelectBubbleInput", Sh = v.forwardRef(
17402
+ DT.displayName = Zi;
17403
+ var LT = "SelectBubbleInput", Sh = v.forwardRef(
17407
17404
  ({ __scopeSelect: e, value: t, ...n }, r) => {
17408
17405
  const o = v.useRef(null), s = We(r, o), i = Xp(t);
17409
17406
  return v.useEffect(() => {
@@ -17428,7 +17425,7 @@ var FT = "SelectBubbleInput", Sh = v.forwardRef(
17428
17425
  );
17429
17426
  }
17430
17427
  );
17431
- Sh.displayName = FT;
17428
+ Sh.displayName = LT;
17432
17429
  function Ch(e) {
17433
17430
  return e === "" || e === void 0;
17434
17431
  }
@@ -17448,18 +17445,18 @@ function Th(e) {
17448
17445
  }
17449
17446
  function Ih(e, t, n) {
17450
17447
  const o = t.length > 1 && Array.from(t).every((c) => c === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
17451
- let i = BT(e, Math.max(s, 0));
17448
+ let i = $T(e, Math.max(s, 0));
17452
17449
  o.length === 1 && (i = i.filter((c) => c !== n));
17453
17450
  const l = i.find(
17454
17451
  (c) => c.textValue.toLowerCase().startsWith(o.toLowerCase())
17455
17452
  );
17456
17453
  return l !== n ? l : void 0;
17457
17454
  }
17458
- function BT(e, t) {
17455
+ function $T(e, t) {
17459
17456
  return e.map((n, r) => e[(t + r) % e.length]);
17460
17457
  }
17461
- var zT = Zp, kh = eh, HT = nh, UT = rh, WT = oh, Rh = sh, VT = ch, Eh = fh, Ah = hh, KT = mh, qT = xh, Nh = yh, _h = vh, jh = bh;
17462
- const Lc = zT, $c = HT, Qi = v.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ u.jsxs(
17458
+ var FT = Zp, kh = eh, BT = nh, zT = rh, HT = oh, Rh = sh, UT = ch, Eh = fh, Ah = hh, WT = mh, VT = xh, Nh = yh, _h = vh, jh = bh;
17459
+ const Lc = FT, $c = BT, Qi = v.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ u.jsxs(
17463
17460
  kh,
17464
17461
  {
17465
17462
  ref: r,
@@ -17470,7 +17467,7 @@ const Lc = zT, $c = HT, Qi = v.forwardRef(({ className: e, children: t, ...n },
17470
17467
  ...n,
17471
17468
  children: [
17472
17469
  t,
17473
- /* @__PURE__ */ u.jsx(UT, { asChild: !0, children: /* @__PURE__ */ u.jsx(hs, { className: "h-4 w-4 opacity-50" }) })
17470
+ /* @__PURE__ */ u.jsx(zT, { asChild: !0, children: /* @__PURE__ */ u.jsx(hs, { className: "h-4 w-4 opacity-50" }) })
17474
17471
  ]
17475
17472
  }
17476
17473
  ));
@@ -17501,7 +17498,7 @@ const Mh = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
17501
17498
  }
17502
17499
  ));
17503
17500
  Mh.displayName = _h.displayName;
17504
- const ea = v.forwardRef(({ className: e, children: t, position: n = "popper", ...r }, o) => /* @__PURE__ */ u.jsx(WT, { children: /* @__PURE__ */ u.jsxs(
17501
+ const ea = v.forwardRef(({ className: e, children: t, position: n = "popper", ...r }, o) => /* @__PURE__ */ u.jsx(HT, { children: /* @__PURE__ */ u.jsxs(
17505
17502
  Rh,
17506
17503
  {
17507
17504
  ref: o,
@@ -17515,7 +17512,7 @@ const ea = v.forwardRef(({ className: e, children: t, position: n = "popper", ..
17515
17512
  children: [
17516
17513
  /* @__PURE__ */ u.jsx(Ph, {}),
17517
17514
  /* @__PURE__ */ u.jsx(
17518
- VT,
17515
+ UT,
17519
17516
  {
17520
17517
  className: te(
17521
17518
  "p-1",
@@ -17529,7 +17526,7 @@ const ea = v.forwardRef(({ className: e, children: t, position: n = "popper", ..
17529
17526
  }
17530
17527
  ) }));
17531
17528
  ea.displayName = Rh.displayName;
17532
- const GT = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
17529
+ const KT = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
17533
17530
  Eh,
17534
17531
  {
17535
17532
  ref: n,
@@ -17537,7 +17534,7 @@ const GT = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
17537
17534
  ...t
17538
17535
  }
17539
17536
  ));
17540
- GT.displayName = Eh.displayName;
17537
+ KT.displayName = Eh.displayName;
17541
17538
  const qn = v.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ u.jsxs(
17542
17539
  Ah,
17543
17540
  {
@@ -17548,13 +17545,13 @@ const qn = v.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
17548
17545
  ),
17549
17546
  ...n,
17550
17547
  children: [
17551
- /* @__PURE__ */ u.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ u.jsx(qT, { children: /* @__PURE__ */ u.jsx(ta, { className: "h-4 w-4" }) }) }),
17552
- /* @__PURE__ */ u.jsx(KT, { children: t })
17548
+ /* @__PURE__ */ u.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ u.jsx(VT, { children: /* @__PURE__ */ u.jsx(ta, { className: "h-4 w-4" }) }) }),
17549
+ /* @__PURE__ */ u.jsx(WT, { children: t })
17553
17550
  ]
17554
17551
  }
17555
17552
  ));
17556
17553
  qn.displayName = Ah.displayName;
17557
- const YT = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
17554
+ const qT = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
17558
17555
  jh,
17559
17556
  {
17560
17557
  ref: n,
@@ -17562,9 +17559,9 @@ const YT = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
17562
17559
  ...t
17563
17560
  }
17564
17561
  ));
17565
- YT.displayName = jh.displayName;
17566
- var XT = "Separator", Fc = "horizontal", JT = ["horizontal", "vertical"], Oh = v.forwardRef((e, t) => {
17567
- const { decorative: n, orientation: r = Fc, ...o } = e, s = ZT(r) ? r : Fc, a = n ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
17562
+ qT.displayName = jh.displayName;
17563
+ var GT = "Separator", Fc = "horizontal", YT = ["horizontal", "vertical"], Oh = v.forwardRef((e, t) => {
17564
+ const { decorative: n, orientation: r = Fc, ...o } = e, s = XT(r) ? r : Fc, a = n ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
17568
17565
  return /* @__PURE__ */ u.jsx(
17569
17566
  _e.div,
17570
17567
  {
@@ -17575,9 +17572,9 @@ var XT = "Separator", Fc = "horizontal", JT = ["horizontal", "vertical"], Oh = v
17575
17572
  }
17576
17573
  );
17577
17574
  });
17578
- Oh.displayName = XT;
17579
- function ZT(e) {
17580
- return JT.includes(e);
17575
+ Oh.displayName = GT;
17576
+ function XT(e) {
17577
+ return YT.includes(e);
17581
17578
  }
17582
17579
  var Dh = Oh;
17583
17580
  const Lh = v.forwardRef(
@@ -17597,7 +17594,7 @@ const Lh = v.forwardRef(
17597
17594
  )
17598
17595
  );
17599
17596
  Lh.displayName = Dh.displayName;
17600
- const QT = cp, eI = dC, tI = up, $h = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
17597
+ const JT = cp, ZT = cC, QT = up, $h = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
17601
17598
  Hs,
17602
17599
  {
17603
17600
  className: te(
@@ -17609,7 +17606,7 @@ const QT = cp, eI = dC, tI = up, $h = v.forwardRef(({ className: e, ...t }, n) =
17609
17606
  }
17610
17607
  ));
17611
17608
  $h.displayName = Hs.displayName;
17612
- const nI = ms(
17609
+ const eI = ms(
17613
17610
  "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
17614
17611
  {
17615
17612
  variants: {
@@ -17624,13 +17621,13 @@ const nI = ms(
17624
17621
  side: "right"
17625
17622
  }
17626
17623
  }
17627
- ), Fh = v.forwardRef(({ side: e = "right", className: t, children: n, ...r }, o) => /* @__PURE__ */ u.jsxs(tI, { children: [
17624
+ ), Fh = v.forwardRef(({ side: e = "right", className: t, children: n, ...r }, o) => /* @__PURE__ */ u.jsxs(QT, { children: [
17628
17625
  /* @__PURE__ */ u.jsx($h, {}),
17629
17626
  /* @__PURE__ */ u.jsxs(
17630
17627
  Us,
17631
17628
  {
17632
17629
  ref: o,
17633
- className: te(nI({ side: e }), t),
17630
+ className: te(eI({ side: e }), t),
17634
17631
  ...r,
17635
17632
  children: [
17636
17633
  n,
@@ -17675,7 +17672,7 @@ const Hh = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
17675
17672
  }
17676
17673
  ));
17677
17674
  Hh.displayName = Ws.displayName;
17678
- var Xs = "Switch", [rI, VI] = Nn(Xs), [oI, sI] = rI(Xs), Uh = v.forwardRef(
17675
+ var Xs = "Switch", [tI, UI] = Nn(Xs), [nI, rI] = tI(Xs), Uh = v.forwardRef(
17679
17676
  (e, t) => {
17680
17677
  const {
17681
17678
  __scopeSwitch: n,
@@ -17694,7 +17691,7 @@ var Xs = "Switch", [rI, VI] = Nn(Xs), [oI, sI] = rI(Xs), Uh = v.forwardRef(
17694
17691
  onChange: c,
17695
17692
  caller: Xs
17696
17693
  });
17697
- return /* @__PURE__ */ u.jsxs(oI, { scope: n, checked: x, disabled: a, children: [
17694
+ return /* @__PURE__ */ u.jsxs(nI, { scope: n, checked: x, disabled: a, children: [
17698
17695
  /* @__PURE__ */ u.jsx(
17699
17696
  _e.button,
17700
17697
  {
@@ -17733,7 +17730,7 @@ var Xs = "Switch", [rI, VI] = Nn(Xs), [oI, sI] = rI(Xs), Uh = v.forwardRef(
17733
17730
  Uh.displayName = Xs;
17734
17731
  var Wh = "SwitchThumb", Vh = v.forwardRef(
17735
17732
  (e, t) => {
17736
- const { __scopeSwitch: n, ...r } = e, o = sI(Wh, n);
17733
+ const { __scopeSwitch: n, ...r } = e, o = rI(Wh, n);
17737
17734
  return /* @__PURE__ */ u.jsx(
17738
17735
  _e.span,
17739
17736
  {
@@ -17746,7 +17743,7 @@ var Wh = "SwitchThumb", Vh = v.forwardRef(
17746
17743
  }
17747
17744
  );
17748
17745
  Vh.displayName = Wh;
17749
- var iI = "SwitchBubbleInput", Kh = v.forwardRef(
17746
+ var oI = "SwitchBubbleInput", Kh = v.forwardRef(
17750
17747
  ({
17751
17748
  __scopeSwitch: e,
17752
17749
  control: t,
@@ -17787,11 +17784,11 @@ var iI = "SwitchBubbleInput", Kh = v.forwardRef(
17787
17784
  );
17788
17785
  }
17789
17786
  );
17790
- Kh.displayName = iI;
17787
+ Kh.displayName = oI;
17791
17788
  function qh(e) {
17792
17789
  return e ? "checked" : "unchecked";
17793
17790
  }
17794
- var Gh = Uh, aI = Vh;
17791
+ var Gh = Uh, sI = Vh;
17795
17792
  const Mn = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
17796
17793
  Gh,
17797
17794
  {
@@ -17802,7 +17799,7 @@ const Mn = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
17802
17799
  ...t,
17803
17800
  ref: n,
17804
17801
  children: /* @__PURE__ */ u.jsx(
17805
- aI,
17802
+ sI,
17806
17803
  {
17807
17804
  className: te(
17808
17805
  "pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
@@ -17812,7 +17809,7 @@ const Mn = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
17812
17809
  }
17813
17810
  ));
17814
17811
  Mn.displayName = Gh.displayName;
17815
- const lI = {
17812
+ const iI = {
17816
17813
  api: {
17817
17814
  baseUrl: "http://localhost:8000/api",
17818
17815
  authToken: "",
@@ -17831,7 +17828,7 @@ const lI = {
17831
17828
  showTypingIndicator: !0
17832
17829
  }
17833
17830
  };
17834
- function KI({ settings: e, onSettingsChange: t, className: n = "" }) {
17831
+ function WI({ settings: e, onSettingsChange: t, className: n = "" }) {
17835
17832
  const [r, o] = ye(!1), [s, i] = ye(!1), [a, l] = ye(e), [c, d] = ye(!1), { toast: f } = Va();
17836
17833
  wt(() => {
17837
17834
  const y = JSON.stringify(a) !== JSON.stringify(e);
@@ -17845,7 +17842,7 @@ function KI({ settings: e, onSettingsChange: t, className: n = "" }) {
17845
17842
  description: "Your chat configuration has been updated successfully."
17846
17843
  });
17847
17844
  }, h = () => {
17848
- l(lI), d(!0), f({
17845
+ l(iI), d(!0), f({
17849
17846
  title: "Settings reset",
17850
17847
  description: "Configuration has been reset to defaults."
17851
17848
  });
@@ -17866,8 +17863,8 @@ function KI({ settings: e, onSettingsChange: t, className: n = "" }) {
17866
17863
  });
17867
17864
  }
17868
17865
  };
17869
- return /* @__PURE__ */ u.jsxs(QT, { open: r, onOpenChange: o, children: [
17870
- /* @__PURE__ */ u.jsx(eI, { asChild: !0, children: /* @__PURE__ */ u.jsxs(tt, { variant: "outline", size: "sm", className: n, children: [
17866
+ return /* @__PURE__ */ u.jsxs(JT, { open: r, onOpenChange: o, children: [
17867
+ /* @__PURE__ */ u.jsx(ZT, { asChild: !0, children: /* @__PURE__ */ u.jsxs(tt, { variant: "outline", size: "sm", className: n, children: [
17871
17868
  /* @__PURE__ */ u.jsx(xm, { className: "h-4 w-4 mr-2" }),
17872
17869
  "Settings",
17873
17870
  c && /* @__PURE__ */ u.jsx(Uf, { variant: "destructive", className: "ml-2 h-4 w-4 p-0" })
@@ -18116,7 +18113,7 @@ function KI({ settings: e, onSettingsChange: t, className: n = "" }) {
18116
18113
  ] })
18117
18114
  ] });
18118
18115
  }
18119
- function qI({
18116
+ function VI({
18120
18117
  layout: e = "sidebar",
18121
18118
  layoutSize: t = "desktop",
18122
18119
  showThreads: n = !0,
@@ -18192,25 +18189,25 @@ function qI({
18192
18189
  }
18193
18190
  export {
18194
18191
  cx as ChatApi,
18195
- ty as ChatInput,
18192
+ Qx as ChatInput,
18196
18193
  Si as ChatInterface,
18197
18194
  oi as ChatProviders,
18198
- KI as ChatSettings,
18195
+ WI as ChatSettings,
18199
18196
  as as MarkdownContent,
18200
18197
  Ga as MessageComponent,
18201
18198
  Ep as MessageList,
18202
18199
  Dc as ThreadManager,
18203
- zI as TimelineColumn,
18204
- UI as applySettings,
18205
- OI as buildMessagePreviewMap,
18200
+ FI as TimelineColumn,
18201
+ zI as applySettings,
18202
+ PI as buildMessagePreviewMap,
18206
18203
  Qn as chatApiClient,
18207
- qI as default,
18204
+ VI as default,
18208
18205
  lx as del,
18209
18206
  an as get,
18210
18207
  rx as getChatToken,
18211
- HI as getCurrentSettings,
18212
- fT as getDefaultApiConfig,
18213
- pT as getDefaultChatSettings,
18208
+ BI as getCurrentSettings,
18209
+ uT as getDefaultApiConfig,
18210
+ dT as getDefaultChatSettings,
18214
18211
  ox as onChatTokenChanged,
18215
18212
  Tl as post,
18216
18213
  ax as put,
@@ -18218,7 +18215,7 @@ export {
18218
18215
  hu as useApi,
18219
18216
  Lx as useChatStream,
18220
18217
  Ux as useMessagesReducer,
18221
- Qx as useStream,
18218
+ Jx as useStream,
18222
18219
  ca as useThreadState,
18223
18220
  la as useThreads
18224
18221
  };