teodor-new-chat-ui 4.0.5 → 4.0.6

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 @@ pt.getAdapter = Kc.getAdapter;
2370
2370
  pt.HttpStatusCode = vi;
2371
2371
  pt.default = pt;
2372
2372
  const {
2373
- Axios: cT,
2374
- AxiosError: uT,
2375
- CanceledError: dT,
2376
- isCancel: fT,
2377
- CancelToken: hT,
2378
- VERSION: pT,
2379
- all: mT,
2380
- Cancel: gT,
2381
- isAxiosError: xT,
2382
- spread: vT,
2383
- toFormData: wT,
2384
- AxiosHeaders: bT,
2385
- HttpStatusCode: yT,
2386
- formToJSON: ST,
2387
- getAdapter: CT,
2388
- mergeConfig: TT
2373
+ Axios: uT,
2374
+ AxiosError: dT,
2375
+ CanceledError: fT,
2376
+ isCancel: hT,
2377
+ CancelToken: pT,
2378
+ VERSION: mT,
2379
+ all: gT,
2380
+ Cancel: xT,
2381
+ isAxiosError: vT,
2382
+ spread: wT,
2383
+ toFormData: bT,
2384
+ AxiosHeaders: yT,
2385
+ HttpStatusCode: ST,
2386
+ formToJSON: CT,
2387
+ getAdapter: TT,
2388
+ mergeConfig: kT
2389
2389
  } = pt, ul = typeof window < "u" ? window.__API_BASE_URL__ : void 0, dl = ul ? ul.replace(/\/+$/, "") : void 0;
2390
2390
  let Mo = null;
2391
2391
  const wi = /* @__PURE__ */ new Set();
@@ -3049,7 +3049,20 @@ function Zg(e) {
3049
3049
  const t = e.seq;
3050
3050
  return typeof t == "number" && Number.isFinite(t) ? t : null;
3051
3051
  }
3052
- function Qg({
3052
+ function Qg(e) {
3053
+ if (e.type !== "tool_start" && e.type !== "tool_result")
3054
+ return e;
3055
+ const t = "id" in e && typeof e.id == "string" && e.id ? e.id : "call_id" in e && typeof e.call_id == "string" && e.call_id ? e.call_id : null;
3056
+ if (!t)
3057
+ return e;
3058
+ const n = "id" in e && e.id ? e.id : t, r = "call_id" in e && e.call_id ? e.call_id : t;
3059
+ return n === e.id && "call_id" in e && r === e.call_id ? e : {
3060
+ ...e,
3061
+ id: n,
3062
+ call_id: r
3063
+ };
3064
+ }
3065
+ function ex({
3053
3066
  onThreadInfo: e,
3054
3067
  onMessageEvent: t,
3055
3068
  onUnhandledEvent: n,
@@ -3057,30 +3070,30 @@ function Qg({
3057
3070
  }) {
3058
3071
  const o = Je(null), s = ze(
3059
3072
  (a) => {
3060
- const c = Zg(a);
3061
- if (c !== null) {
3062
- const u = o.current;
3063
- if (u !== null) {
3064
- if (c <= u) {
3073
+ const c = Qg(a), u = Zg(c);
3074
+ if (u !== null) {
3075
+ const d = o.current;
3076
+ if (d !== null) {
3077
+ if (u <= d) {
3065
3078
  bi() && console.debug(
3066
3079
  "[StreamEventCoordinator] drop out-of-order seq",
3067
- { prev: u, seq: c, type: a.type }
3080
+ { prev: d, seq: u, type: c.type }
3068
3081
  );
3069
3082
  return;
3070
3083
  }
3071
- c > u + 1 && (r == null || r({ from: u, to: c }));
3084
+ u > d + 1 && (r == null || r({ from: d, to: u }));
3072
3085
  }
3073
- o.current = c;
3086
+ o.current = u;
3074
3087
  }
3075
- if (a.type === "thread_info") {
3076
- e == null || e(a);
3088
+ if (c.type === "thread_info") {
3089
+ e == null || e(c);
3077
3090
  return;
3078
3091
  }
3079
- if (Lg(a)) {
3080
- t(a);
3092
+ if (Lg(c)) {
3093
+ t(c);
3081
3094
  return;
3082
3095
  }
3083
- n == null || n(a);
3096
+ n == null || n(c);
3084
3097
  },
3085
3098
  [t, r, e, n]
3086
3099
  ), i = ze(() => {
@@ -3312,7 +3325,7 @@ function Us({ children: e, apiConfig: t, onError: n, onThreadChange: r, initialT
3312
3325
  }));
3313
3326
  },
3314
3327
  [Y]
3315
- ), { handleEvent: he, reset: Ue } = Qg({
3328
+ ), { handleEvent: he, reset: Ue } = ex({
3316
3329
  onThreadInfo: He,
3317
3330
  onMessageEvent: R,
3318
3331
  onUnhandledEvent: (M) => {
@@ -3528,7 +3541,7 @@ function Do() {
3528
3541
  function Q(...e) {
3529
3542
  return Zp(Jp(e));
3530
3543
  }
3531
- const ex = es(
3544
+ const tx = es(
3532
3545
  "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",
3533
3546
  {
3534
3547
  variants: {
@@ -3558,7 +3571,7 @@ const ex = es(
3558
3571
  return /* @__PURE__ */ l.jsx(
3559
3572
  i,
3560
3573
  {
3561
- className: Q(ex({ variant: t, size: n, className: e })),
3574
+ className: Q(tx({ variant: t, size: n, className: e })),
3562
3575
  ref: s,
3563
3576
  ...o
3564
3577
  }
@@ -3580,7 +3593,7 @@ const Jc = p.forwardRef(
3580
3593
  )
3581
3594
  );
3582
3595
  Jc.displayName = "Textarea";
3583
- function tx({
3596
+ function nx({
3584
3597
  initialValue: e = "",
3585
3598
  editingMessageId: t = null,
3586
3599
  placeholder: n = "Type your message...",
@@ -3673,11 +3686,11 @@ function tx({
3673
3686
  ) })
3674
3687
  ] }) });
3675
3688
  }
3676
- const nx = F.memo(tx), as = 0, jn = 1, Cr = 2, Zc = 4;
3689
+ const rx = F.memo(nx), as = 0, jn = 1, Cr = 2, Zc = 4;
3677
3690
  function ml(e) {
3678
3691
  return () => e;
3679
3692
  }
3680
- function rx(e) {
3693
+ function ox(e) {
3681
3694
  e();
3682
3695
  }
3683
3696
  function Qc(e, t) {
@@ -3686,15 +3699,15 @@ function Qc(e, t) {
3686
3699
  function gl(e, t) {
3687
3700
  return () => e(t);
3688
3701
  }
3689
- function ox(e, t) {
3702
+ function sx(e, t) {
3690
3703
  return (n) => e(t, n);
3691
3704
  }
3692
3705
  function Yi(e) {
3693
3706
  return e !== void 0;
3694
3707
  }
3695
- function sx(...e) {
3708
+ function ix(...e) {
3696
3709
  return () => {
3697
- e.map(rx);
3710
+ e.map(ox);
3698
3711
  };
3699
3712
  }
3700
3713
  function Tr() {
@@ -3702,7 +3715,7 @@ function Tr() {
3702
3715
  function ls(e, t) {
3703
3716
  return t(e), e;
3704
3717
  }
3705
- function ix(e, t) {
3718
+ function ax(e, t) {
3706
3719
  return t(e);
3707
3720
  }
3708
3721
  function ot(...e) {
@@ -3721,7 +3734,7 @@ function ht(e) {
3721
3734
  return e(Zc);
3722
3735
  }
3723
3736
  function de(e, t) {
3724
- return Ke(e, ox(t, as));
3737
+ return Ke(e, sx(t, as));
3725
3738
  }
3726
3739
  function en(e, t) {
3727
3740
  const n = e(jn, (r) => {
@@ -3760,7 +3773,7 @@ function cn(e) {
3760
3773
  };
3761
3774
  }
3762
3775
  function $(e, ...t) {
3763
- const n = ax(...t);
3776
+ const n = lx(...t);
3764
3777
  return (r, o) => {
3765
3778
  switch (r) {
3766
3779
  case Cr:
@@ -3806,10 +3819,10 @@ function je(...e) {
3806
3819
  n === o ? a() : r = a;
3807
3820
  };
3808
3821
  }
3809
- function ax(...e) {
3810
- return (t) => e.reduceRight(ix, t);
3822
+ function lx(...e) {
3823
+ return (t) => e.reduceRight(ax, t);
3811
3824
  }
3812
- function lx(e) {
3825
+ function cx(e) {
3813
3826
  let t, n;
3814
3827
  const r = () => t == null ? void 0 : t();
3815
3828
  return function(o, s) {
@@ -3870,12 +3883,12 @@ function We(e, t = [], { singleton: n } = { singleton: !0 }) {
3870
3883
  return {
3871
3884
  constructor: e,
3872
3885
  dependencies: t,
3873
- id: cx(),
3886
+ id: ux(),
3874
3887
  singleton: n
3875
3888
  };
3876
3889
  }
3877
- const cx = () => Symbol();
3878
- function ux(e) {
3890
+ const ux = () => Symbol();
3891
+ function dx(e) {
3879
3892
  const t = /* @__PURE__ */ new Map(), n = ({ constructor: r, dependencies: o, id: s, singleton: i }) => {
3880
3893
  if (i && t.has(s))
3881
3894
  return t.get(s);
@@ -3913,17 +3926,17 @@ function yi(...e) {
3913
3926
  case Cr:
3914
3927
  return;
3915
3928
  case jn:
3916
- return sx(...e.map((r) => Ke(r, n)));
3929
+ return ix(...e.map((r) => Ke(r, n)));
3917
3930
  }
3918
3931
  };
3919
3932
  }
3920
3933
  var Mt = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(Mt || {});
3921
- const dx = {
3934
+ const fx = {
3922
3935
  0: "debug",
3923
3936
  3: "error",
3924
3937
  1: "log",
3925
3938
  2: "warn"
3926
- }, fx = () => typeof globalThis > "u" ? window : globalThis, Pn = We(
3939
+ }, hx = () => typeof globalThis > "u" ? window : globalThis, Pn = We(
3927
3940
  () => {
3928
3941
  const e = G(
3929
3942
  3
@@ -3932,8 +3945,8 @@ const dx = {
3932
3945
  return {
3933
3946
  log: G((t, n, r = 1) => {
3934
3947
  var o;
3935
- const s = (o = fx().VIRTUOSO_LOG_LEVEL) != null ? o : ht(e);
3936
- r >= s && console[dx[r]](
3948
+ const s = (o = hx().VIRTUOSO_LOG_LEVEL) != null ? o : ht(e);
3949
+ r >= s && console[fx[r]](
3937
3950
  "%creact-virtuoso: %c%s %o",
3938
3951
  "color: #0253b3; font-weight: bold",
3939
3952
  "color: initial",
@@ -3965,10 +3978,10 @@ function Ji(e, t, n) {
3965
3978
  i && t ? (s == null || s.observe(i), r.current = i) : (r.current && (s == null || s.unobserve(r.current)), r.current = null);
3966
3979
  }, { callbackRef: o, ref: r };
3967
3980
  }
3968
- function hx(e, t, n, r, o, s, i, a, c) {
3981
+ function px(e, t, n, r, o, s, i, a, c) {
3969
3982
  const u = F.useCallback(
3970
3983
  (d) => {
3971
- const f = px(d.children, t, a ? "offsetWidth" : "offsetHeight", o);
3984
+ const f = mx(d.children, t, a ? "offsetWidth" : "offsetHeight", o);
3972
3985
  let h = d.parentElement;
3973
3986
  for (; !h.dataset.virtuosoScroller; )
3974
3987
  h = h.parentElement;
@@ -3988,7 +4001,7 @@ function hx(e, t, n, r, o, s, i, a, c) {
3988
4001
  );
3989
4002
  return Ji(u, n, c);
3990
4003
  }
3991
- function px(e, t, n, r) {
4004
+ function mx(e, t, n, r) {
3992
4005
  const o = e.length;
3993
4006
  if (o === 0)
3994
4007
  return null;
@@ -4131,7 +4144,7 @@ function cs(e, t, n) {
4131
4144
  if (tt(e))
4132
4145
  return [];
4133
4146
  const r = tn(e, t)[0];
4134
- return mx(Ci(e, r, n));
4147
+ return gx(Ci(e, r, n));
4135
4148
  }
4136
4149
  function Si(e, t) {
4137
4150
  if (tt(e)) return Br;
@@ -4223,7 +4236,7 @@ function Ti(e) {
4223
4236
  const { lvl: t, r: n } = e;
4224
4237
  return !tt(n) && !tt(n.r) && n.lvl === t && n.r.lvl === t ? yt(n, { l: yt(e, { r: n.l }), lvl: t + 1 }) : e;
4225
4238
  }
4226
- function mx(e) {
4239
+ function gx(e) {
4227
4240
  return nu(e, ({ k: t, v: n }) => ({ index: t, value: n }));
4228
4241
  }
4229
4242
  function au(e, t) {
@@ -4258,7 +4271,7 @@ function Lo(e, t, n, r = 0) {
4258
4271
  }
4259
4272
  throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`);
4260
4273
  }
4261
- function gx(e, t, n, r) {
4274
+ function xx(e, t, n, r) {
4262
4275
  const o = Lo(e, t, r), s = Lo(e, n, r, o);
4263
4276
  return e.slice(o, s + 1);
4264
4277
  }
@@ -4271,7 +4284,7 @@ function us(e) {
4271
4284
  function Qi({ index: e }, t) {
4272
4285
  return t === e ? 0 : t < e ? -1 : 1;
4273
4286
  }
4274
- function xx() {
4287
+ function vx() {
4275
4288
  return {
4276
4289
  groupIndices: [],
4277
4290
  groupOffsetTree: hr(),
@@ -4282,7 +4295,7 @@ function xx() {
4282
4295
  sizeTree: hr()
4283
4296
  };
4284
4297
  }
4285
- function vx(e, t) {
4298
+ function wx(e, t) {
4286
4299
  let n = tt(e) ? 0 : 1 / 0;
4287
4300
  for (const r of t) {
4288
4301
  const { endIndex: o, size: s, startIndex: i } = r;
@@ -4291,7 +4304,7 @@ function vx(e, t) {
4291
4304
  continue;
4292
4305
  }
4293
4306
  const a = cs(e, i - 1, o + 1);
4294
- if (a.some(kx(r)))
4307
+ if (a.some(Rx(r)))
4295
4308
  continue;
4296
4309
  let c = !1, u = !1;
4297
4310
  for (const { end: d, start: f, value: h } of a)
@@ -4300,10 +4313,10 @@ function vx(e, t) {
4300
4313
  }
4301
4314
  return [e, n];
4302
4315
  }
4303
- function wx(e) {
4316
+ function bx(e) {
4304
4317
  return typeof e.groupIndex < "u";
4305
4318
  }
4306
- function bx({ offset: e }, t) {
4319
+ function yx({ offset: e }, t) {
4307
4320
  return t === e ? 0 : t < e ? -1 : 1;
4308
4321
  }
4309
4322
  function Wr(e, t, n) {
@@ -4321,7 +4334,7 @@ function cu(e, t) {
4321
4334
  return e + n;
4322
4335
  }
4323
4336
  function uu(e, t, n) {
4324
- if (wx(e))
4337
+ if (bx(e))
4325
4338
  return t.groupIndices[e.groupIndex] + 1;
4326
4339
  {
4327
4340
  const r = e.index === "LAST" ? n : e.index;
@@ -4329,10 +4342,10 @@ function uu(e, t, n) {
4329
4342
  return o = Math.max(0, o, Math.min(n, o)), o;
4330
4343
  }
4331
4344
  }
4332
- function yx(e, t, n, r = 0) {
4333
- return r > 0 && (t = Math.max(t, lu(e, r, Qi).offset)), nu(gx(e, t, n, bx), Tx);
4345
+ function Sx(e, t, n, r = 0) {
4346
+ return r > 0 && (t = Math.max(t, lu(e, r, Qi).offset)), nu(xx(e, t, n, yx), kx);
4334
4347
  }
4335
- function Sx(e, [t, n, r, o]) {
4348
+ function Cx(e, [t, n, r, o]) {
4336
4349
  t.length > 0 && r("received item sizes", t, Mt.DEBUG);
4337
4350
  const s = e.sizeTree;
4338
4351
  let i = s, a = 0;
@@ -4340,7 +4353,7 @@ function Sx(e, [t, n, r, o]) {
4340
4353
  const h = t[0].size, m = t[1].size;
4341
4354
  i = n.reduce((b, w) => Ft(Ft(b, w, h), w + 1, m), i);
4342
4355
  } else
4343
- [i, a] = vx(i, t);
4356
+ [i, a] = wx(i, t);
4344
4357
  if (i === s)
4345
4358
  return e;
4346
4359
  const { lastIndex: c, lastOffset: u, lastSize: d, offsetTree: f } = ki(e.offsetTree, a, i, o);
@@ -4354,7 +4367,7 @@ function Sx(e, [t, n, r, o]) {
4354
4367
  sizeTree: i
4355
4368
  };
4356
4369
  }
4357
- function Cx(e) {
4370
+ function Tx(e) {
4358
4371
  return Un(e).map(({ k: t, v: n }, r, o) => {
4359
4372
  const s = o[r + 1];
4360
4373
  return { endIndex: s ? s.k - 1 : 1 / 0, size: n, startIndex: t };
@@ -4389,20 +4402,20 @@ function ki(e, t, n, r) {
4389
4402
  offsetTree: o
4390
4403
  };
4391
4404
  }
4392
- function Tx(e) {
4405
+ function kx(e) {
4393
4406
  return { index: e.index, value: e };
4394
4407
  }
4395
- function kx(e) {
4408
+ function Rx(e) {
4396
4409
  const { endIndex: t, size: n, startIndex: r } = e;
4397
4410
  return (o) => o.start === r && (o.end === t || o.end === 1 / 0) && o.value === n;
4398
4411
  }
4399
- const Rx = {
4412
+ const Ex = {
4400
4413
  offsetHeight: "height",
4401
4414
  offsetWidth: "width"
4402
4415
  }, gn = We(
4403
4416
  ([{ log: e }, { recalcInProgress: t }]) => {
4404
- const n = Le(), r = Le(), o = It(r, 0), s = Le(), i = Le(), a = G(0), c = G([]), u = G(void 0), d = G(void 0), f = G((S, C) => En(S, Rx[C])), h = G(void 0), m = G(0), b = xx(), w = It(
4405
- $(n, je(c, e, m), dn(Sx, b), rt()),
4417
+ const n = Le(), r = Le(), o = It(r, 0), s = Le(), i = Le(), a = G(0), c = G([]), u = G(void 0), d = G(void 0), f = G((S, C) => En(S, Ex[C])), h = G(void 0), m = G(0), b = vx(), w = It(
4418
+ $(n, je(c, e, m), dn(Cx, b), rt()),
4406
4419
  b
4407
4420
  ), g = It(
4408
4421
  $(
@@ -4635,7 +4648,7 @@ const Rx = {
4635
4648
  ot(Pn, Zi),
4636
4649
  { singleton: !0 }
4637
4650
  );
4638
- function Ex(e) {
4651
+ function Ix(e) {
4639
4652
  return e.reduce(
4640
4653
  (t, n) => (t.groupIndices.push(t.totalCount), t.totalCount += n + 1, t),
4641
4654
  {
@@ -4646,7 +4659,7 @@ function Ex(e) {
4646
4659
  }
4647
4660
  const du = We(
4648
4661
  ([{ groupIndices: e, sizes: t, totalCount: n }, { headerHeight: r, scrollTop: o }]) => {
4649
- const s = Le(), i = Le(), a = zt($(s, se(Ex)));
4662
+ const s = Le(), i = Le(), a = zt($(s, se(Ix)));
4650
4663
  return de(
4651
4664
  $(
4652
4665
  a,
@@ -4686,10 +4699,10 @@ const du = We(
4686
4699
  },
4687
4700
  ot(Pn),
4688
4701
  { singleton: !0 }
4689
- ), Ix = typeof document < "u" && "scrollBehavior" in document.documentElement.style;
4702
+ ), Nx = typeof document < "u" && "scrollBehavior" in document.documentElement.style;
4690
4703
  function fu(e) {
4691
4704
  const t = typeof e == "number" ? { index: e } : e;
4692
- return t.align || (t.align = "start"), (!t.behavior || !Ix) && (t.behavior = "auto"), t.offset || (t.offset = 0), t;
4705
+ return t.align || (t.align = "start"), (!t.behavior || !Nx) && (t.behavior = "auto"), t.offset || (t.offset = 0), t;
4693
4706
  }
4694
4707
  const to = We(
4695
4708
  ([
@@ -4737,7 +4750,7 @@ const to = We(
4737
4750
  oe(te);
4738
4751
  });
4739
4752
  } else
4740
- g = en($(t, Nx(150)), oe);
4753
+ g = en($(t, Ax(150)), oe);
4741
4754
  return x = setTimeout(() => {
4742
4755
  y();
4743
4756
  }, 1200), Ne(c, !0), _("scrolling from index to", { behavior: V, index: K, top: J }, Mt.DEBUG), { behavior: V, top: J };
@@ -4754,7 +4767,7 @@ const to = We(
4754
4767
  ot(gn, At, Pn),
4755
4768
  { singleton: !0 }
4756
4769
  );
4757
- function Nx(e) {
4770
+ function Ax(e) {
4758
4771
  return (t) => {
4759
4772
  const n = setTimeout(() => {
4760
4773
  t(!1);
@@ -4820,7 +4833,7 @@ const no = We(
4820
4833
  function hu(e, t) {
4821
4834
  return Math.abs(e - t) < 1.01;
4822
4835
  }
4823
- const Vr = "up", Mr = "down", Ax = "none", _x = {
4836
+ const Vr = "up", Mr = "down", _x = "none", jx = {
4824
4837
  atBottom: !1,
4825
4838
  notAtBottomBecause: "NOT_SHOWING_LAST_ITEM",
4826
4839
  state: {
@@ -4829,8 +4842,8 @@ const Vr = "up", Mr = "down", Ax = "none", _x = {
4829
4842
  scrollTop: 0,
4830
4843
  viewportHeight: 0
4831
4844
  }
4832
- }, jx = 0, ro = We(([{ footerHeight: e, headerHeight: t, scrollBy: n, scrollContainerState: r, scrollTop: o, viewportHeight: s }]) => {
4833
- const i = G(!1), a = G(!0), c = Le(), u = Le(), d = G(4), f = G(jx), h = It(
4845
+ }, Px = 0, ro = We(([{ footerHeight: e, headerHeight: t, scrollBy: n, scrollContainerState: r, scrollTop: o, viewportHeight: s }]) => {
4846
+ const i = G(!1), a = G(!0), c = Le(), u = Le(), d = G(4), f = G(Px), h = It(
4834
4847
  $(
4835
4848
  yi($(xe(o), Gn(1), cn(!0)), $(xe(o), Gn(1), cn(!1), xl(100))),
4836
4849
  rt()
@@ -4872,7 +4885,7 @@ const Vr = "up", Mr = "down", Ax = "none", _x = {
4872
4885
  notAtBottomBecause: _,
4873
4886
  state: P
4874
4887
  };
4875
- }, _x),
4888
+ }, jx),
4876
4889
  rt((v, y) => v && v.atBottom === y.atBottom)
4877
4890
  )
4878
4891
  ), w = It(
@@ -4929,7 +4942,7 @@ const Vr = "up", Mr = "down", Ax = "none", _x = {
4929
4942
  se((v) => v.direction)
4930
4943
  ),
4931
4944
  g
4932
- ), de($(r, yn(50), cn(Ax)), g);
4945
+ ), de($(r, yn(50), cn(_x)), g);
4933
4946
  const x = G(0);
4934
4947
  return de(
4935
4948
  $(
@@ -5023,7 +5036,7 @@ const na = We(
5023
5036
  ot(At),
5024
5037
  { singleton: !0 }
5025
5038
  );
5026
- function Px(e, t, n) {
5039
+ function Ox(e, t, n) {
5027
5040
  if (us(t)) {
5028
5041
  const r = cu(e, t);
5029
5042
  return [
@@ -5160,7 +5173,7 @@ const tr = We(
5160
5173
  return I === 0 ? { ...Vs, totalCount: E } : pu(I, P, A, q, O, W || []);
5161
5174
  if (tt(D))
5162
5175
  return I > 0 ? null : To(
5163
- Px(ta(P, E), U, W),
5176
+ Ox(ta(P, E), U, W),
5164
5177
  [],
5165
5178
  E,
5166
5179
  O,
@@ -5179,7 +5192,7 @@ const tr = We(
5179
5192
  }
5180
5193
  if (!_)
5181
5194
  return To([], K, E, O, U, q);
5182
- const J = L.length > 0 ? L[L.length - 1] + 1 : 0, oe = yx(V, C, R, J);
5195
+ const J = L.length > 0 ? L[L.length - 1] + 1 : 0, oe = Sx(V, C, R, J);
5183
5196
  if (oe.length === 0)
5184
5197
  return null;
5185
5198
  const te = E - 1, pe = ls([], (ke) => {
@@ -5295,7 +5308,7 @@ const tr = We(
5295
5308
  },
5296
5309
  ot(At, tr),
5297
5310
  { singleton: !0 }
5298
- ), Ox = We(
5311
+ ), Mx = We(
5299
5312
  ([{ viewportHeight: e }, { totalListHeight: t }]) => {
5300
5313
  const n = G(!1), r = It(
5301
5314
  $(
@@ -5313,7 +5326,7 @@ const tr = We(
5313
5326
  { singleton: !0 }
5314
5327
  ), gu = We(() => ({
5315
5328
  context: G(null)
5316
- })), Mx = ({
5329
+ })), Dx = ({
5317
5330
  itemBottom: e,
5318
5331
  itemTop: t,
5319
5332
  locationParams: { align: n, behavior: r, ...o },
@@ -5332,7 +5345,7 @@ const tr = We(
5332
5345
  je(t, c, n, s, o, r, a),
5333
5346
  je(e),
5334
5347
  se(([[f, h, m, b, w, g, x, v], y]) => {
5335
- const { align: k, behavior: S, calculateViewLocation: C = Mx, done: R, ...E } = f, A = uu(f, h, b - 1), P = Wr(A, h.offsetTree, y) + w + g, _ = P + tn(h.sizeTree, A)[1], L = v + g, q = v + m - x, O = C({
5348
+ const { align: k, behavior: S, calculateViewLocation: C = Dx, done: R, ...E } = f, A = uu(f, h, b - 1), P = Wr(A, h.offsetTree, y) + w + g, _ = P + tn(h.sizeTree, A)[1], L = v + g, q = v + m - x, O = C({
5336
5349
  itemBottom: _,
5337
5350
  itemTop: P,
5338
5351
  locationParams: { align: k, behavior: S, ...E },
@@ -5363,7 +5376,7 @@ const tr = We(
5363
5376
  function kl(e) {
5364
5377
  return e ? e === "smooth" ? "smooth" : "auto" : !1;
5365
5378
  }
5366
- const Dx = (e, t) => typeof e == "function" ? kl(e(t)) : t && kl(e), Lx = We(
5379
+ const Lx = (e, t) => typeof e == "function" ? kl(e(t)) : t && kl(e), $x = We(
5367
5380
  ([
5368
5381
  { listRefresh: e, totalCount: t, fixedItemSize: n, data: r },
5369
5382
  { atBottomState: o, isAtBottom: s },
@@ -5390,7 +5403,7 @@ const Dx = (e, t) => typeof e == "function" ? kl(e(t)) : t && kl(e), Lx = We(
5390
5403
  je(xe(b), s, a, f),
5391
5404
  se(([[S, C], R, E, A, P]) => {
5392
5405
  let _ = C && A, L = "auto";
5393
- return _ && (L = Dx(R, E || P), _ = _ && !!L), { followOutputBehavior: L, shouldFollow: _, totalCount: S };
5406
+ return _ && (L = Lx(R, E || P), _ = _ && !!L), { followOutputBehavior: L, shouldFollow: _, totalCount: S };
5394
5407
  }),
5395
5408
  ve(({ shouldFollow: S }) => S)
5396
5409
  ),
@@ -5468,7 +5481,7 @@ const Dx = (e, t) => typeof e == "function" ? kl(e(t)) : t && kl(e), Lx = We(
5468
5481
  gu,
5469
5482
  xu
5470
5483
  )
5471
- ), $x = We(
5484
+ ), Fx = We(
5472
5485
  ([{ data: e, firstItemIndex: t, gap: n, sizes: r }, { initialTopMostItemIndex: o }, { initialItemCount: s, listState: i }, { didMount: a }]) => (de(
5473
5486
  $(
5474
5487
  a,
@@ -5481,7 +5494,7 @@ const Dx = (e, t) => typeof e == "function" ? kl(e(t)) : t && kl(e), Lx = We(
5481
5494
  ), {}),
5482
5495
  ot(gn, no, tr, On),
5483
5496
  { singleton: !0 }
5484
- ), Fx = We(
5497
+ ), zx = We(
5485
5498
  ([{ didMount: e }, { scrollTo: t }, { listState: n }]) => {
5486
5499
  const r = G(0);
5487
5500
  return Ke(
@@ -5572,7 +5585,7 @@ const Dx = (e, t) => typeof e == "function" ? kl(e(t)) : t && kl(e), Lx = We(
5572
5585
  windowScrollTo: o,
5573
5586
  windowViewportRect: r
5574
5587
  };
5575
- }, ot(At)), zx = We(
5588
+ }, ot(At)), Bx = We(
5576
5589
  ([
5577
5590
  { sizeRanges: e, sizes: t },
5578
5591
  { headerHeight: n, scrollTop: r },
@@ -5587,10 +5600,10 @@ const Dx = (e, t) => typeof e == "function" ? kl(e(t)) : t && kl(e), Lx = We(
5587
5600
  je(t, r, i, f, h, n)
5588
5601
  ),
5589
5602
  ([m, b, w, g, x, v, y]) => {
5590
- const k = Cx(b.sizeTree);
5603
+ const k = Tx(b.sizeTree);
5591
5604
  g && x !== null && v !== null && (w = x.scrollTop - v.offsetTop), w -= y, m({ ranges: k, scrollTop: w });
5592
5605
  }
5593
- ), de($(d, ve(Yi), se(Bx)), o), de(
5606
+ ), de($(d, ve(Yi), se(Hx)), o), de(
5594
5607
  $(
5595
5608
  s,
5596
5609
  je(d),
@@ -5606,10 +5619,10 @@ const Dx = (e, t) => typeof e == "function" ? kl(e(t)) : t && kl(e), Lx = We(
5606
5619
  },
5607
5620
  ot(gn, At, no, On, ra)
5608
5621
  );
5609
- function Bx(e) {
5622
+ function Hx(e) {
5610
5623
  return { align: "start", index: 0, offset: e.scrollTop };
5611
5624
  }
5612
- const Hx = We(([{ topItemsIndexes: e }]) => {
5625
+ const Ux = We(([{ topItemsIndexes: e }]) => {
5613
5626
  const t = G(0);
5614
5627
  return de(
5615
5628
  $(
@@ -5624,7 +5637,7 @@ function wu(e) {
5624
5637
  let t = !1, n;
5625
5638
  return () => (t || (t = !0, n = e()), n);
5626
5639
  }
5627
- const Ux = wu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), Wx = We(
5640
+ const Wx = wu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), Vx = We(
5628
5641
  ([
5629
5642
  { deviation: e, scrollBy: t, scrollingInProgress: n, scrollTop: r },
5630
5643
  { isAtBottom: o, isScrolling: s, lastJumpDueToItemResize: i, scrollDirection: a },
@@ -5655,7 +5668,7 @@ const Ux = wu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
5655
5668
  x > 0 ? (Ne(t, { behavior: "auto", top: -x }), Ne(e, 0)) : (Ne(e, 0), Ne(t, { behavior: "auto", top: -x }));
5656
5669
  }
5657
5670
  return Ke($(w, je(e, s)), ([x, v, y]) => {
5658
- y && Ux() ? Ne(e, v - x) : g(-x);
5671
+ y && Wx() ? Ne(e, v - x) : g(-x);
5659
5672
  }), Ke(
5660
5673
  $(
5661
5674
  vt(It(s, !1), e, b),
@@ -5703,7 +5716,7 @@ const Ux = wu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
5703
5716
  ), { deviation: e };
5704
5717
  },
5705
5718
  ot(At, ro, tr, gn, Pn, Zi)
5706
- ), Vx = We(
5719
+ ), Kx = We(
5707
5720
  ([
5708
5721
  e,
5709
5722
  t,
@@ -5731,12 +5744,12 @@ const Ux = wu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
5731
5744
  }),
5732
5745
  ot(
5733
5746
  na,
5734
- $x,
5747
+ Fx,
5735
5748
  On,
5736
5749
  vu,
5737
5750
  mu,
5738
- Fx,
5739
- Ox,
5751
+ zx,
5752
+ Mx,
5740
5753
  ra,
5741
5754
  xu,
5742
5755
  Pn,
@@ -5809,17 +5822,17 @@ const Ux = wu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
5809
5822
  gn,
5810
5823
  no,
5811
5824
  At,
5812
- zx,
5813
- Lx,
5825
+ Bx,
5826
+ $x,
5814
5827
  tr,
5815
5828
  to,
5816
- Wx,
5817
- Hx,
5829
+ Vx,
5830
+ Ux,
5818
5831
  du,
5819
- Vx
5832
+ Kx
5820
5833
  )
5821
5834
  );
5822
- function Kx(e, t) {
5835
+ function qx(e, t) {
5823
5836
  const n = {}, r = {};
5824
5837
  let o = 0;
5825
5838
  const s = e.length;
@@ -5852,10 +5865,10 @@ function yu(e, t, n) {
5852
5865
  }, x), {});
5853
5866
  }
5854
5867
  function d(g) {
5855
- return i.reduce((x, v) => (x[v] = lx(g[t.events[v]]), x), {});
5868
+ return i.reduce((x, v) => (x[v] = cx(g[t.events[v]]), x), {});
5856
5869
  }
5857
5870
  const f = F.forwardRef((g, x) => {
5858
- const { children: v, ...y } = g, [k] = F.useState(() => ls(ux(e), (R) => {
5871
+ const { children: v, ...y } = g, [k] = F.useState(() => ls(dx(e), (R) => {
5859
5872
  c(R, y);
5860
5873
  })), [S] = F.useState(gl(d, k));
5861
5874
  co(() => {
@@ -5868,7 +5881,7 @@ function yu(e, t, n) {
5868
5881
  c(k, y);
5869
5882
  }), F.useImperativeHandle(x, ml(u(k)));
5870
5883
  const C = n;
5871
- return /* @__PURE__ */ l.jsx(a.Provider, { value: k, children: n ? /* @__PURE__ */ l.jsx(C, { ...Kx([...r, ...o, ...i], y), children: v }) : v });
5884
+ return /* @__PURE__ */ l.jsx(a.Provider, { value: k, children: n ? /* @__PURE__ */ l.jsx(C, { ...qx([...r, ...o, ...i], y), children: v }) : v });
5872
5885
  }), h = (g) => {
5873
5886
  const x = F.useContext(a);
5874
5887
  return F.useCallback(
@@ -5910,7 +5923,7 @@ const Su = F.createContext(void 0), Cu = F.createContext(void 0), Tu = typeof do
5910
5923
  function Ks(e) {
5911
5924
  return "self" in e;
5912
5925
  }
5913
- function qx(e) {
5926
+ function Gx(e) {
5914
5927
  return "body" in e;
5915
5928
  }
5916
5929
  function ku(e, t, n, r = Tr, o, s) {
@@ -5918,7 +5931,7 @@ function ku(e, t, n, r = Tr, o, s) {
5918
5931
  (h) => {
5919
5932
  let m, b, w;
5920
5933
  const g = h.target;
5921
- if (qx(g) || Ks(g)) {
5934
+ if (Gx(g) || Ks(g)) {
5922
5935
  const v = Ks(g) ? g : g.defaultView;
5923
5936
  w = s ? v.scrollX : v.scrollY, m = s ? v.document.documentElement.scrollWidth : v.document.documentElement.scrollHeight, b = s ? v.innerWidth : v.innerHeight;
5924
5937
  } else
@@ -5973,7 +5986,7 @@ const qs = "-webkit-sticky", Rl = "sticky", oa = wu(() => {
5973
5986
  function sa(e) {
5974
5987
  return e;
5975
5988
  }
5976
- const Gx = /* @__PURE__ */ We(() => {
5989
+ const Yx = /* @__PURE__ */ We(() => {
5977
5990
  const e = G((a) => `Item ${a}`), t = G((a) => `Group ${a}`), n = G({}), r = G(sa), o = G("div"), s = G(Tr), i = (a, c = null) => It(
5978
5991
  $(
5979
5992
  n,
@@ -5999,11 +6012,11 @@ const Gx = /* @__PURE__ */ We(() => {
5999
6012
  ScrollSeekPlaceholder: i("ScrollSeekPlaceholder"),
6000
6013
  TopItemListComponent: i("TopItemList")
6001
6014
  };
6002
- }), Yx = /* @__PURE__ */ We(
6015
+ }), Xx = /* @__PURE__ */ We(
6003
6016
  ([e, t]) => ({ ...e, ...t }),
6004
- ot(bu, Gx)
6005
- ), Xx = ({ height: e }) => /* @__PURE__ */ l.jsx("div", { style: { height: e } }), Jx = { overflowAnchor: "none", position: oa(), zIndex: 1 }, Ru = { overflowAnchor: "none" }, Zx = { ...Ru, display: "inline-block", height: "100%" }, El = /* @__PURE__ */ F.memo(function({ showTopList: e = !1 }) {
6006
- const t = Te("listState"), n = Gt("sizeRanges"), r = Te("useWindowScroll"), o = Te("customScrollParent"), s = Gt("windowScrollContainerState"), i = Gt("scrollContainerState"), a = o || r ? s : i, c = Te("itemContent"), u = Te("context"), d = Te("groupContent"), f = Te("trackItemSizes"), h = Te("itemSize"), m = Te("log"), b = Gt("gap"), w = Te("horizontalDirection"), { callbackRef: g } = hx(
6017
+ ot(bu, Yx)
6018
+ ), Jx = ({ height: e }) => /* @__PURE__ */ l.jsx("div", { style: { height: e } }), Zx = { overflowAnchor: "none", position: oa(), zIndex: 1 }, Ru = { overflowAnchor: "none" }, Qx = { ...Ru, display: "inline-block", height: "100%" }, El = /* @__PURE__ */ F.memo(function({ showTopList: e = !1 }) {
6019
+ const t = Te("listState"), n = Gt("sizeRanges"), r = Te("useWindowScroll"), o = Te("customScrollParent"), s = Gt("windowScrollContainerState"), i = Gt("scrollContainerState"), a = o || r ? s : i, c = Te("itemContent"), u = Te("context"), d = Te("groupContent"), f = Te("trackItemSizes"), h = Te("itemSize"), m = Te("log"), b = Gt("gap"), w = Te("horizontalDirection"), { callbackRef: g } = px(
6007
6020
  n,
6008
6021
  h,
6009
6022
  f,
@@ -6017,7 +6030,7 @@ const Gx = /* @__PURE__ */ We(() => {
6017
6030
  ia("deviation", (O) => {
6018
6031
  x !== O && v(O);
6019
6032
  });
6020
- const y = Te("EmptyPlaceholder"), k = Te("ScrollSeekPlaceholder") || Xx, S = Te("ListComponent"), C = Te("ItemComponent"), R = Te("GroupComponent"), E = Te("computeItemKey"), A = Te("isSeeking"), P = Te("groupIndices").length > 0, _ = Te("alignToBottom"), L = Te("initialItemFinalLocationReached"), q = e ? {} : {
6033
+ const y = Te("EmptyPlaceholder"), k = Te("ScrollSeekPlaceholder") || Jx, S = Te("ListComponent"), C = Te("ItemComponent"), R = Te("GroupComponent"), E = Te("computeItemKey"), A = Te("isSeeking"), P = Te("groupIndices").length > 0, _ = Te("alignToBottom"), L = Te("initialItemFinalLocationReached"), q = e ? {} : {
6021
6034
  boxSizing: "border-box",
6022
6035
  ...w ? {
6023
6036
  display: "inline-block",
@@ -6060,33 +6073,33 @@ const Gx = /* @__PURE__ */ We(() => {
6060
6073
  "data-item-index": O.index,
6061
6074
  "data-known-size": O.size,
6062
6075
  key: U,
6063
- style: Jx
6076
+ style: Zx
6064
6077
  },
6065
6078
  d(O.index, u)
6066
6079
  ) : /* @__PURE__ */ wo(
6067
6080
  C,
6068
6081
  {
6069
6082
  ...Et(C, u),
6070
- ...nv(C, O.data),
6083
+ ...rv(C, O.data),
6071
6084
  "data-index": W,
6072
6085
  "data-item-group-index": O.groupIndex,
6073
6086
  "data-item-index": O.index,
6074
6087
  "data-known-size": O.size,
6075
6088
  key: U,
6076
- style: w ? Zx : Ru
6089
+ style: w ? Qx : Ru
6077
6090
  },
6078
6091
  P ? c(O.index, O.groupIndex, O.data, u) : c(O.index, O.data, u)
6079
6092
  );
6080
6093
  })
6081
6094
  }
6082
6095
  );
6083
- }), Qx = {
6096
+ }), ev = {
6084
6097
  height: "100%",
6085
6098
  outline: "none",
6086
6099
  overflowY: "auto",
6087
6100
  position: "relative",
6088
6101
  WebkitOverflowScrolling: "touch"
6089
- }, ev = {
6102
+ }, tv = {
6090
6103
  outline: "none",
6091
6104
  overflowX: "auto",
6092
6105
  position: "relative"
@@ -6096,7 +6109,7 @@ const Gx = /* @__PURE__ */ We(() => {
6096
6109
  top: 0,
6097
6110
  width: "100%",
6098
6111
  ...e ? { display: "flex", flexDirection: "column" } : {}
6099
- }), tv = {
6112
+ }), nv = {
6100
6113
  position: oa(),
6101
6114
  top: 0,
6102
6115
  width: "100%",
@@ -6106,10 +6119,10 @@ function Et(e, t) {
6106
6119
  if (typeof e != "string")
6107
6120
  return { context: t };
6108
6121
  }
6109
- function nv(e, t) {
6122
+ function rv(e, t) {
6110
6123
  return { item: typeof e == "string" ? void 0 : t };
6111
6124
  }
6112
- const rv = /* @__PURE__ */ F.memo(function() {
6125
+ const ov = /* @__PURE__ */ F.memo(function() {
6113
6126
  const e = Te("HeaderComponent"), t = Gt("headerHeight"), n = Te("HeaderFooterTag"), r = er(
6114
6127
  F.useMemo(
6115
6128
  () => (s) => {
@@ -6121,7 +6134,7 @@ const rv = /* @__PURE__ */ F.memo(function() {
6121
6134
  Te("skipAnimationFrameInResizeObserver")
6122
6135
  ), o = Te("context");
6123
6136
  return e ? /* @__PURE__ */ l.jsx(n, { ref: r, children: /* @__PURE__ */ l.jsx(e, { ...Et(e, o) }) }) : null;
6124
- }), ov = /* @__PURE__ */ F.memo(function() {
6137
+ }), sv = /* @__PURE__ */ F.memo(function() {
6125
6138
  const e = Te("FooterComponent"), t = Gt("footerHeight"), n = Te("HeaderFooterTag"), r = er(
6126
6139
  F.useMemo(
6127
6140
  () => (s) => {
@@ -6150,7 +6163,7 @@ function Eu({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
6150
6163
  "data-testid": "virtuoso-scroller",
6151
6164
  "data-virtuoso-scroller": !0,
6152
6165
  ref: m,
6153
- style: { ...f ? ev : Qx, ...o },
6166
+ style: { ...f ? tv : ev, ...o },
6154
6167
  tabIndex: 0,
6155
6168
  ...i,
6156
6169
  ...Et(c, s),
@@ -6186,7 +6199,7 @@ function Iu({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
6186
6199
  );
6187
6200
  });
6188
6201
  }
6189
- const sv = ({ children: e }) => {
6202
+ const iv = ({ children: e }) => {
6190
6203
  const t = F.useContext(Su), n = Gt("viewportHeight"), r = Gt("fixedItemHeight"), o = Te("alignToBottom"), s = Te("horizontalDirection"), i = F.useMemo(
6191
6204
  () => Qc(n, (c) => En(c, s ? "width" : "height")),
6192
6205
  [n, s]
@@ -6194,7 +6207,7 @@ const sv = ({ children: e }) => {
6194
6207
  return F.useEffect(() => {
6195
6208
  t && (n(t.viewportHeight), r(t.itemHeight));
6196
6209
  }, [t, n, r]), /* @__PURE__ */ l.jsx("div", { "data-viewport-type": "element", ref: a, style: ds(o), children: e });
6197
- }, iv = ({ children: e }) => {
6210
+ }, av = ({ children: e }) => {
6198
6211
  const t = F.useContext(Su), n = Gt("windowViewportRect"), r = Gt("fixedItemHeight"), o = Te("customScrollParent"), s = tu(
6199
6212
  n,
6200
6213
  o,
@@ -6203,26 +6216,26 @@ const sv = ({ children: e }) => {
6203
6216
  return F.useEffect(() => {
6204
6217
  t && (r(t.itemHeight), n({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: 100 }));
6205
6218
  }, [t, n, r]), /* @__PURE__ */ l.jsx("div", { "data-viewport-type": "window", ref: s, style: ds(i), children: e });
6206
- }, av = ({ children: e }) => {
6207
- const t = Te("TopItemListComponent") || "div", n = Te("headerHeight"), r = { ...tv, marginTop: `${n}px` }, o = Te("context");
6219
+ }, lv = ({ children: e }) => {
6220
+ const t = Te("TopItemListComponent") || "div", n = Te("headerHeight"), r = { ...nv, marginTop: `${n}px` }, o = Te("context");
6208
6221
  return /* @__PURE__ */ l.jsx(t, { style: r, ...Et(t, o), children: e });
6209
- }, lv = /* @__PURE__ */ F.memo(function(e) {
6222
+ }, cv = /* @__PURE__ */ F.memo(function(e) {
6210
6223
  const t = Te("useWindowScroll"), n = Te("topItemsIndexes").length > 0, r = Te("customScrollParent"), o = Te("context");
6211
- return /* @__PURE__ */ l.jsxs(r || t ? dv : uv, { ...e, context: o, children: [
6212
- n && /* @__PURE__ */ l.jsx(av, { children: /* @__PURE__ */ l.jsx(El, { showTopList: !0 }) }),
6213
- /* @__PURE__ */ l.jsxs(r || t ? iv : sv, { children: [
6214
- /* @__PURE__ */ l.jsx(rv, {}),
6224
+ return /* @__PURE__ */ l.jsxs(r || t ? fv : dv, { ...e, context: o, children: [
6225
+ n && /* @__PURE__ */ l.jsx(lv, { children: /* @__PURE__ */ l.jsx(El, { showTopList: !0 }) }),
6226
+ /* @__PURE__ */ l.jsxs(r || t ? av : iv, { children: [
6227
+ /* @__PURE__ */ l.jsx(ov, {}),
6215
6228
  /* @__PURE__ */ l.jsx(El, {}),
6216
- /* @__PURE__ */ l.jsx(ov, {})
6229
+ /* @__PURE__ */ l.jsx(sv, {})
6217
6230
  ] })
6218
6231
  ] });
6219
6232
  }), {
6220
- Component: cv,
6233
+ Component: uv,
6221
6234
  useEmitter: ia,
6222
6235
  useEmitterValue: Te,
6223
6236
  usePublisher: Gt
6224
6237
  } = /* @__PURE__ */ yu(
6225
- Yx,
6238
+ Xx,
6226
6239
  {
6227
6240
  required: {},
6228
6241
  optional: {
@@ -6279,8 +6292,8 @@ const sv = ({ children: e }) => {
6279
6292
  groupIndices: "groupIndices"
6280
6293
  }
6281
6294
  },
6282
- lv
6283
- ), uv = /* @__PURE__ */ Eu({ useEmitter: ia, useEmitterValue: Te, usePublisher: Gt }), dv = /* @__PURE__ */ Iu({ useEmitter: ia, useEmitterValue: Te, usePublisher: Gt }), fv = cv, hv = /* @__PURE__ */ We(() => {
6295
+ cv
6296
+ ), dv = /* @__PURE__ */ Eu({ useEmitter: ia, useEmitterValue: Te, usePublisher: Gt }), fv = /* @__PURE__ */ Iu({ useEmitter: ia, useEmitterValue: Te, usePublisher: Gt }), hv = uv, pv = /* @__PURE__ */ We(() => {
6284
6297
  const e = G((u) => /* @__PURE__ */ l.jsxs("td", { children: [
6285
6298
  "Item $",
6286
6299
  u
@@ -6316,7 +6329,7 @@ const sv = ({ children: e }) => {
6316
6329
  GroupComponent: c("Group", "tr")
6317
6330
  };
6318
6331
  });
6319
- ot(bu, hv);
6332
+ ot(bu, pv);
6320
6333
  oa();
6321
6334
  const Il = {
6322
6335
  bottom: 0,
@@ -6326,7 +6339,7 @@ const Il = {
6326
6339
  offsetBottom: 0,
6327
6340
  offsetTop: 0,
6328
6341
  top: 0
6329
- }, pv = {
6342
+ }, mv = {
6330
6343
  bottom: 0,
6331
6344
  itemHeight: 0,
6332
6345
  items: [{ index: 0 }],
@@ -6338,19 +6351,19 @@ const Il = {
6338
6351
  function _l(e, t, n) {
6339
6352
  return Array.from({ length: t - e + 1 }).map((r, o) => ({ data: n === null ? null : n[o + e], index: o + e }));
6340
6353
  }
6341
- function mv(e) {
6354
+ function gv(e) {
6342
6355
  return {
6343
- ...pv,
6356
+ ...mv,
6344
6357
  items: e
6345
6358
  };
6346
6359
  }
6347
6360
  function uo(e, t) {
6348
6361
  return e && e.width === t.width && e.height === t.height;
6349
6362
  }
6350
- function gv(e, t) {
6363
+ function xv(e, t) {
6351
6364
  return e && e.column === t.column && e.row === t.row;
6352
6365
  }
6353
- const xv = /* @__PURE__ */ We(
6366
+ const vv = /* @__PURE__ */ We(
6354
6367
  ([
6355
6368
  { increaseViewportBy: e, listBoundary: t, overscan: n, visibleRange: r },
6356
6369
  { footerHeight: o, headerHeight: s, scrollBy: i, scrollContainerState: a, scrollTo: c, scrollTop: u, smoothScrollTargetReached: d, viewportHeight: f },
@@ -6427,7 +6440,7 @@ const xv = /* @__PURE__ */ We(
6427
6440
  vt(
6428
6441
  xe(C),
6429
6442
  r,
6430
- xe(W, gv),
6443
+ xe(W, xv),
6431
6444
  xe(P, uo),
6432
6445
  xe(A, uo),
6433
6446
  xe(O),
@@ -6455,7 +6468,7 @@ const xv = /* @__PURE__ */ We(
6455
6468
  return Il;
6456
6469
  if (mt === 0) {
6457
6470
  const Ze = ta(He, N), St = Ze + Math.max(Ce - 1, 0);
6458
- return mv(_l(Ze, St, Ge));
6471
+ return gv(_l(Ze, St, Ge));
6459
6472
  }
6460
6473
  const dt = Nu(at, mt, Ye);
6461
6474
  let lt, $e;
@@ -6611,7 +6624,7 @@ function Ri(e, t, n, r) {
6611
6624
  const o = Nu(e.width, n.width, t.column), s = zo(r / o), i = s * n.height + Dr(0, s - 1) * t.row;
6612
6625
  return i > 0 ? i + t.row : i;
6613
6626
  }
6614
- const vv = /* @__PURE__ */ We(() => {
6627
+ const wv = /* @__PURE__ */ We(() => {
6615
6628
  const e = G((f) => `Item ${f}`), t = G({}), n = G(null), r = G("virtuoso-grid-item"), o = G("virtuoso-grid-list"), s = G(sa), i = G("div"), a = G(Tr), c = (f, h = null) => It(
6616
6629
  $(
6617
6630
  t,
@@ -6638,10 +6651,10 @@ const vv = /* @__PURE__ */ We(() => {
6638
6651
  scrollerRef: a,
6639
6652
  ScrollSeekPlaceholder: c("ScrollSeekPlaceholder", "div")
6640
6653
  };
6641
- }), wv = /* @__PURE__ */ We(
6654
+ }), bv = /* @__PURE__ */ We(
6642
6655
  ([e, t]) => ({ ...e, ...t }),
6643
- ot(xv, vv)
6644
- ), bv = /* @__PURE__ */ F.memo(function() {
6656
+ ot(vv, wv)
6657
+ ), yv = /* @__PURE__ */ F.memo(function() {
6645
6658
  const e = st("gridState"), t = st("listClassName"), n = st("itemClassName"), r = st("itemContent"), o = st("computeItemKey"), s = st("isSeeking"), i = Yt("scrollHeight"), a = st("ItemComponent"), c = st("ListComponent"), u = st("ScrollSeekPlaceholder"), d = st("context"), f = Yt("itemDimensions"), h = Yt("gap"), m = st("log"), b = st("stateRestoreInProgress"), w = Yt("reportReadyState"), g = er(
6646
6659
  F.useMemo(
6647
6660
  () => (x) => {
@@ -6696,7 +6709,7 @@ const vv = /* @__PURE__ */ We(() => {
6696
6709
  })
6697
6710
  }
6698
6711
  );
6699
- }), yv = F.memo(function() {
6712
+ }), Sv = F.memo(function() {
6700
6713
  const e = st("HeaderComponent"), t = Yt("headerHeight"), n = st("headerFooterTag"), r = er(
6701
6714
  F.useMemo(
6702
6715
  () => (s) => {
@@ -6708,7 +6721,7 @@ const vv = /* @__PURE__ */ We(() => {
6708
6721
  !1
6709
6722
  ), o = st("context");
6710
6723
  return e ? /* @__PURE__ */ l.jsx(n, { ref: r, children: /* @__PURE__ */ l.jsx(e, { ...Et(e, o) }) }) : null;
6711
- }), Sv = F.memo(function() {
6724
+ }), Cv = F.memo(function() {
6712
6725
  const e = st("FooterComponent"), t = Yt("footerHeight"), n = st("headerFooterTag"), r = er(
6713
6726
  F.useMemo(
6714
6727
  () => (s) => {
@@ -6720,7 +6733,7 @@ const vv = /* @__PURE__ */ We(() => {
6720
6733
  !1
6721
6734
  ), o = st("context");
6722
6735
  return e ? /* @__PURE__ */ l.jsx(n, { ref: r, children: /* @__PURE__ */ l.jsx(e, { ...Et(e, o) }) }) : null;
6723
- }), Cv = ({ children: e }) => {
6736
+ }), Tv = ({ children: e }) => {
6724
6737
  const t = F.useContext(Cu), n = Yt("itemDimensions"), r = Yt("viewportDimensions"), o = er(
6725
6738
  F.useMemo(
6726
6739
  () => (s) => {
@@ -6734,24 +6747,24 @@ const vv = /* @__PURE__ */ We(() => {
6734
6747
  return F.useEffect(() => {
6735
6748
  t && (r({ height: t.viewportHeight, width: t.viewportWidth }), n({ height: t.itemHeight, width: t.itemWidth }));
6736
6749
  }, [t, r, n]), /* @__PURE__ */ l.jsx("div", { ref: o, style: ds(!1), children: e });
6737
- }, Tv = ({ children: e }) => {
6750
+ }, kv = ({ children: e }) => {
6738
6751
  const t = F.useContext(Cu), n = Yt("windowViewportRect"), r = Yt("itemDimensions"), o = st("customScrollParent"), s = tu(n, o, !1);
6739
6752
  return F.useEffect(() => {
6740
6753
  t && (r({ height: t.itemHeight, width: t.itemWidth }), n({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: t.viewportWidth }));
6741
6754
  }, [t, n, r]), /* @__PURE__ */ l.jsx("div", { ref: s, style: ds(!1), children: e });
6742
- }, kv = /* @__PURE__ */ F.memo(function({ ...e }) {
6743
- const t = st("useWindowScroll"), n = st("customScrollParent"), r = n || t ? Ev : Rv, o = n || t ? Tv : Cv, s = st("context");
6755
+ }, Rv = /* @__PURE__ */ F.memo(function({ ...e }) {
6756
+ const t = st("useWindowScroll"), n = st("customScrollParent"), r = n || t ? Iv : Ev, o = n || t ? kv : Tv, s = st("context");
6744
6757
  return /* @__PURE__ */ l.jsx(r, { ...e, ...Et(r, s), children: /* @__PURE__ */ l.jsxs(o, { children: [
6758
+ /* @__PURE__ */ l.jsx(Sv, {}),
6745
6759
  /* @__PURE__ */ l.jsx(yv, {}),
6746
- /* @__PURE__ */ l.jsx(bv, {}),
6747
- /* @__PURE__ */ l.jsx(Sv, {})
6760
+ /* @__PURE__ */ l.jsx(Cv, {})
6748
6761
  ] }) });
6749
6762
  }), {
6750
6763
  useEmitter: Au,
6751
6764
  useEmitterValue: st,
6752
6765
  usePublisher: Yt
6753
6766
  } = /* @__PURE__ */ yu(
6754
- wv,
6767
+ bv,
6755
6768
  {
6756
6769
  optional: {
6757
6770
  context: "context",
@@ -6790,12 +6803,12 @@ const vv = /* @__PURE__ */ We(() => {
6790
6803
  readyStateChanged: "readyStateChanged"
6791
6804
  }
6792
6805
  },
6793
- kv
6794
- ), Rv = /* @__PURE__ */ Eu({ useEmitter: Au, useEmitterValue: st, usePublisher: Yt }), Ev = /* @__PURE__ */ Iu({ useEmitter: Au, useEmitterValue: st, usePublisher: Yt });
6806
+ Rv
6807
+ ), Ev = /* @__PURE__ */ Eu({ useEmitter: Au, useEmitterValue: st, usePublisher: Yt }), Iv = /* @__PURE__ */ Iu({ useEmitter: Au, useEmitterValue: st, usePublisher: Yt });
6795
6808
  function Pl(e, t, n) {
6796
6809
  return t !== "normal" && !(t != null && t.endsWith("px")) && n(`${e} was not resolved to pixel value correctly`, t, Mt.WARN), t === "normal" ? 0 : parseInt(t ?? "0", 10);
6797
6810
  }
6798
- const Iv = es(
6811
+ const Nv = es(
6799
6812
  "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",
6800
6813
  {
6801
6814
  variants: {
@@ -6812,7 +6825,7 @@ const Iv = es(
6812
6825
  }
6813
6826
  );
6814
6827
  function Ei({ className: e, variant: t, ...n }) {
6815
- return /* @__PURE__ */ l.jsx("div", { className: Q(Iv({ variant: t }), e), ...n });
6828
+ return /* @__PURE__ */ l.jsx("div", { className: Q(Nv({ variant: t }), e), ...n });
6816
6829
  }
6817
6830
  function ae(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
6818
6831
  return function(o) {
@@ -6820,7 +6833,7 @@ function ae(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
6820
6833
  return t == null ? void 0 : t(o);
6821
6834
  };
6822
6835
  }
6823
- function Nv(e, t) {
6836
+ function Av(e, t) {
6824
6837
  const n = p.createContext(t), r = (s) => {
6825
6838
  const { children: i, ...a } = s, c = p.useMemo(() => a, Object.values(a));
6826
6839
  return /* @__PURE__ */ l.jsx(n.Provider, { value: c, children: i });
@@ -6864,9 +6877,9 @@ function xn(e, t = []) {
6864
6877
  );
6865
6878
  };
6866
6879
  };
6867
- return o.scopeName = e, [r, Av(o, ...t)];
6880
+ return o.scopeName = e, [r, _v(o, ...t)];
6868
6881
  }
6869
- function Av(...e) {
6882
+ function _v(...e) {
6870
6883
  const t = e[0];
6871
6884
  if (e.length === 1) return t;
6872
6885
  const n = () => {
@@ -6885,7 +6898,7 @@ function Av(...e) {
6885
6898
  return n.scopeName = t.scopeName, n;
6886
6899
  }
6887
6900
  var Ct = globalThis != null && globalThis.document ? p.useLayoutEffect : () => {
6888
- }, _v = p[" useInsertionEffect ".trim().toString()] || Ct;
6901
+ }, jv = p[" useInsertionEffect ".trim().toString()] || Ct;
6889
6902
  function Yn({
6890
6903
  prop: e,
6891
6904
  defaultProp: t,
@@ -6893,7 +6906,7 @@ function Yn({
6893
6906
  },
6894
6907
  caller: r
6895
6908
  }) {
6896
- const [o, s, i] = jv({
6909
+ const [o, s, i] = Pv({
6897
6910
  defaultProp: t,
6898
6911
  onChange: n
6899
6912
  }), a = e !== void 0, c = a ? e : o;
@@ -6910,7 +6923,7 @@ function Yn({
6910
6923
  (d) => {
6911
6924
  var f;
6912
6925
  if (a) {
6913
- const h = Pv(d) ? d(e) : d;
6926
+ const h = Ov(d) ? d(e) : d;
6914
6927
  h !== e && ((f = i.current) == null || f.call(i, h));
6915
6928
  } else
6916
6929
  s(d);
@@ -6919,19 +6932,19 @@ function Yn({
6919
6932
  );
6920
6933
  return [c, u];
6921
6934
  }
6922
- function jv({
6935
+ function Pv({
6923
6936
  defaultProp: e,
6924
6937
  onChange: t
6925
6938
  }) {
6926
6939
  const [n, r] = p.useState(e), o = p.useRef(n), s = p.useRef(t);
6927
- return _v(() => {
6940
+ return jv(() => {
6928
6941
  s.current = t;
6929
6942
  }, [t]), p.useEffect(() => {
6930
6943
  var i;
6931
6944
  o.current !== n && ((i = s.current) == null || i.call(s, n), o.current = n);
6932
6945
  }, [n, o]), [n, r, s];
6933
6946
  }
6934
- function Pv(e) {
6947
+ function Ov(e) {
6935
6948
  return typeof e == "function";
6936
6949
  }
6937
6950
  function Ol(e, t) {
@@ -6958,7 +6971,7 @@ function aa(...e) {
6958
6971
  function Me(...e) {
6959
6972
  return p.useCallback(aa(...e), e);
6960
6973
  }
6961
- var Ov = [
6974
+ var Mv = [
6962
6975
  "a",
6963
6976
  "button",
6964
6977
  "div",
@@ -6976,7 +6989,7 @@ var Ov = [
6976
6989
  "span",
6977
6990
  "svg",
6978
6991
  "ul"
6979
- ], Se = Ov.reduce((e, t) => {
6992
+ ], Se = Mv.reduce((e, t) => {
6980
6993
  const n = xr(`Primitive.${t}`), r = p.forwardRef((o, s) => {
6981
6994
  const { asChild: i, ...a } = o, c = i ? n : t;
6982
6995
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l.jsx(c, { ...a, ref: s });
@@ -6986,16 +6999,16 @@ var Ov = [
6986
6999
  function _u(e, t) {
6987
7000
  e && ts.flushSync(() => e.dispatchEvent(t));
6988
7001
  }
6989
- function Mv(e, t) {
7002
+ function Dv(e, t) {
6990
7003
  return p.useReducer((n, r) => t[n][r] ?? n, e);
6991
7004
  }
6992
7005
  var Ht = (e) => {
6993
- const { present: t, children: n } = e, r = Dv(t), o = typeof n == "function" ? n({ present: r.isPresent }) : p.Children.only(n), s = Me(r.ref, Lv(o));
7006
+ const { present: t, children: n } = e, r = Lv(t), o = typeof n == "function" ? n({ present: r.isPresent }) : p.Children.only(n), s = Me(r.ref, $v(o));
6994
7007
  return typeof n == "function" || r.isPresent ? p.cloneElement(o, { ref: s }) : null;
6995
7008
  };
6996
7009
  Ht.displayName = "Presence";
6997
- function Dv(e) {
6998
- const [t, n] = p.useState(), r = p.useRef(null), o = p.useRef(e), s = p.useRef("none"), i = e ? "mounted" : "unmounted", [a, c] = Mv(i, {
7010
+ function Lv(e) {
7011
+ const [t, n] = p.useState(), r = p.useRef(null), o = p.useRef(e), s = p.useRef("none"), i = e ? "mounted" : "unmounted", [a, c] = Dv(i, {
6999
7012
  mounted: {
7000
7013
  UNMOUNT: "unmounted",
7001
7014
  ANIMATION_OUT: "unmountSuspended"
@@ -7046,20 +7059,20 @@ function Dv(e) {
7046
7059
  function fo(e) {
7047
7060
  return (e == null ? void 0 : e.animationName) || "none";
7048
7061
  }
7049
- function Lv(e) {
7062
+ function $v(e) {
7050
7063
  var r, o;
7051
7064
  let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
7052
7065
  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);
7053
7066
  }
7054
- var $v = p[" useId ".trim().toString()] || (() => {
7055
- }), Fv = 0;
7067
+ var Fv = p[" useId ".trim().toString()] || (() => {
7068
+ }), zv = 0;
7056
7069
  function hn(e) {
7057
- const [t, n] = p.useState($v());
7070
+ const [t, n] = p.useState(Fv());
7058
7071
  return Ct(() => {
7059
- n((r) => r ?? String(Fv++));
7072
+ n((r) => r ?? String(zv++));
7060
7073
  }, [e]), e || (t ? `radix-${t}` : "");
7061
7074
  }
7062
- var fs = "Collapsible", [zv, kT] = xn(fs), [Bv, la] = zv(fs), ju = p.forwardRef(
7075
+ var fs = "Collapsible", [Bv, RT] = xn(fs), [Hv, la] = Bv(fs), ju = p.forwardRef(
7063
7076
  (e, t) => {
7064
7077
  const {
7065
7078
  __scopeCollapsible: n,
@@ -7075,7 +7088,7 @@ var fs = "Collapsible", [zv, kT] = xn(fs), [Bv, la] = zv(fs), ju = p.forwardRef(
7075
7088
  caller: fs
7076
7089
  });
7077
7090
  return /* @__PURE__ */ l.jsx(
7078
- Bv,
7091
+ Hv,
7079
7092
  {
7080
7093
  scope: n,
7081
7094
  disabled: s,
@@ -7116,14 +7129,14 @@ var Pu = "CollapsibleTrigger", Ou = p.forwardRef(
7116
7129
  }
7117
7130
  );
7118
7131
  Ou.displayName = Pu;
7119
- var ca = "CollapsibleContent", Hv = p.forwardRef(
7132
+ var ca = "CollapsibleContent", Uv = p.forwardRef(
7120
7133
  (e, t) => {
7121
7134
  const { forceMount: n, ...r } = e, o = la(ca, e.__scopeCollapsible);
7122
- return /* @__PURE__ */ l.jsx(Ht, { present: n || o.open, children: ({ present: s }) => /* @__PURE__ */ l.jsx(Uv, { ...r, ref: t, present: s }) });
7135
+ return /* @__PURE__ */ l.jsx(Ht, { present: n || o.open, children: ({ present: s }) => /* @__PURE__ */ l.jsx(Wv, { ...r, ref: t, present: s }) });
7123
7136
  }
7124
7137
  );
7125
- Hv.displayName = ca;
7126
- var Uv = p.forwardRef((e, t) => {
7138
+ Uv.displayName = ca;
7139
+ var Wv = p.forwardRef((e, t) => {
7127
7140
  const { __scopeCollapsible: n, present: r, children: o, ...s } = e, i = la(ca, n), [a, c] = p.useState(r), u = p.useRef(null), d = Me(t, u), f = p.useRef(0), h = f.current, m = p.useRef(0), b = m.current, w = i.open || a, g = p.useRef(w), x = p.useRef(void 0);
7128
7141
  return p.useEffect(() => {
7129
7142
  const v = requestAnimationFrame(() => g.current = !1);
@@ -7159,8 +7172,8 @@ var Uv = p.forwardRef((e, t) => {
7159
7172
  function ua(e) {
7160
7173
  return e ? "open" : "closed";
7161
7174
  }
7162
- var Wv = ju;
7163
- const Ml = Wv, Dl = Ou, Lr = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
7175
+ var Vv = ju;
7176
+ const Ml = Vv, Dl = Ou, Lr = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
7164
7177
  "div",
7165
7178
  {
7166
7179
  ref: n,
@@ -7238,50 +7251,50 @@ function Lu() {
7238
7251
  };
7239
7252
  }
7240
7253
  let nr = Lu();
7241
- function Vv(e) {
7254
+ function Kv(e) {
7242
7255
  nr = e;
7243
7256
  }
7244
- const $u = /[&<>"']/, Kv = new RegExp($u.source, "g"), Fu = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, qv = new RegExp(Fu.source, "g"), Gv = {
7257
+ const $u = /[&<>"']/, qv = new RegExp($u.source, "g"), Fu = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, Gv = new RegExp(Fu.source, "g"), Yv = {
7245
7258
  "&": "&amp;",
7246
7259
  "<": "&lt;",
7247
7260
  ">": "&gt;",
7248
7261
  '"': "&quot;",
7249
7262
  "'": "&#39;"
7250
- }, Ll = (e) => Gv[e];
7263
+ }, Ll = (e) => Yv[e];
7251
7264
  function kt(e, t) {
7252
7265
  if (t) {
7253
7266
  if ($u.test(e))
7254
- return e.replace(Kv, Ll);
7267
+ return e.replace(qv, Ll);
7255
7268
  } else if (Fu.test(e))
7256
- return e.replace(qv, Ll);
7269
+ return e.replace(Gv, Ll);
7257
7270
  return e;
7258
7271
  }
7259
- const Yv = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
7272
+ const Xv = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
7260
7273
  function zu(e) {
7261
- return e.replace(Yv, (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)) : ""));
7274
+ return e.replace(Xv, (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)) : ""));
7262
7275
  }
7263
- const Xv = /(^|[^\[])\^/g;
7276
+ const Jv = /(^|[^\[])\^/g;
7264
7277
  function nt(e, t) {
7265
7278
  e = typeof e == "string" ? e : e.source, t = t || "";
7266
7279
  const n = {
7267
- replace: (r, o) => (o = o.source || o, o = o.replace(Xv, "$1"), e = e.replace(r, o), n),
7280
+ replace: (r, o) => (o = o.source || o, o = o.replace(Jv, "$1"), e = e.replace(r, o), n),
7268
7281
  getRegex: () => new RegExp(e, t)
7269
7282
  };
7270
7283
  return n;
7271
7284
  }
7272
- const Jv = /[^\w:]/g, Zv = /^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;
7285
+ const Zv = /[^\w:]/g, Qv = /^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;
7273
7286
  function $l(e, t, n) {
7274
7287
  if (e) {
7275
7288
  let r;
7276
7289
  try {
7277
- r = decodeURIComponent(zu(n)).replace(Jv, "").toLowerCase();
7290
+ r = decodeURIComponent(zu(n)).replace(Zv, "").toLowerCase();
7278
7291
  } catch {
7279
7292
  return null;
7280
7293
  }
7281
7294
  if (r.indexOf("javascript:") === 0 || r.indexOf("vbscript:") === 0 || r.indexOf("data:") === 0)
7282
7295
  return null;
7283
7296
  }
7284
- t && !Zv.test(n) && (n = nw(t, n));
7297
+ t && !Qv.test(n) && (n = rw(t, n));
7285
7298
  try {
7286
7299
  n = encodeURI(n).replace(/%25/g, "%");
7287
7300
  } catch {
@@ -7289,11 +7302,11 @@ function $l(e, t, n) {
7289
7302
  }
7290
7303
  return n;
7291
7304
  }
7292
- const ho = {}, Qv = /^[^:]+:\/*[^/]*$/, ew = /^([^:]+:)[\s\S]*$/, tw = /^([^:]+:\/*[^/]*)[\s\S]*$/;
7293
- function nw(e, t) {
7294
- ho[" " + e] || (Qv.test(e) ? ho[" " + e] = e + "/" : ho[" " + e] = Ro(e, "/", !0)), e = ho[" " + e];
7305
+ const ho = {}, ew = /^[^:]+:\/*[^/]*$/, tw = /^([^:]+:)[\s\S]*$/, nw = /^([^:]+:\/*[^/]*)[\s\S]*$/;
7306
+ function rw(e, t) {
7307
+ ho[" " + e] || (ew.test(e) ? ho[" " + e] = e + "/" : ho[" " + e] = Ro(e, "/", !0)), e = ho[" " + e];
7295
7308
  const n = e.indexOf(":") === -1;
7296
- return t.substring(0, 2) === "//" ? n ? t : e.replace(ew, "$1") + t : t.charAt(0) === "/" ? n ? t : e.replace(tw, "$1") + t : e + t;
7309
+ return t.substring(0, 2) === "//" ? n ? t : e.replace(tw, "$1") + t : t.charAt(0) === "/" ? n ? t : e.replace(nw, "$1") + t : e + t;
7297
7310
  }
7298
7311
  const Bo = { exec: function() {
7299
7312
  } };
@@ -7328,7 +7341,7 @@ function Ro(e, t, n) {
7328
7341
  }
7329
7342
  return e.slice(0, r - o);
7330
7343
  }
7331
- function rw(e, t) {
7344
+ function ow(e, t) {
7332
7345
  if (e.indexOf(t[1]) === -1)
7333
7346
  return -1;
7334
7347
  const n = e.length;
@@ -7342,7 +7355,7 @@ function rw(e, t) {
7342
7355
  return o;
7343
7356
  return -1;
7344
7357
  }
7345
- function ow(e) {
7358
+ function sw(e) {
7346
7359
  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");
7347
7360
  }
7348
7361
  function zl(e, t) {
@@ -7375,7 +7388,7 @@ function Bl(e, t, n, r) {
7375
7388
  text: kt(i)
7376
7389
  };
7377
7390
  }
7378
- function sw(e, t) {
7391
+ function iw(e, t) {
7379
7392
  const n = e.match(/^(\s+)(?:```)/);
7380
7393
  if (n === null)
7381
7394
  return t;
@@ -7418,7 +7431,7 @@ class da {
7418
7431
  fences(t) {
7419
7432
  const n = this.rules.block.fences.exec(t);
7420
7433
  if (n) {
7421
- const r = n[0], o = sw(r, n[3] || "");
7434
+ const r = n[0], o = iw(r, n[3] || "");
7422
7435
  return {
7423
7436
  type: "code",
7424
7437
  raw: r,
@@ -7643,7 +7656,7 @@ class da {
7643
7656
  if ((r.length - i.length) % 2 === 0)
7644
7657
  return;
7645
7658
  } else {
7646
- const i = rw(n[2], "()");
7659
+ const i = ow(n[2], "()");
7647
7660
  if (i > -1) {
7648
7661
  const c = (n[0].indexOf("!") === 0 ? 5 : 4) + n[1].length + i;
7649
7662
  n[2] = n[2].substring(0, i), n[0] = n[0].substring(0, c).trim(), n[3] = "";
@@ -7931,7 +7944,7 @@ ie.breaks = {
7931
7944
  br: nt(ie.br).replace("{2,}", "*").getRegex(),
7932
7945
  text: nt(ie.gfm.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
7933
7946
  };
7934
- function iw(e) {
7947
+ function aw(e) {
7935
7948
  return e.replace(/---/g, "—").replace(/--/g, "–").replace(/(^|[-\u2014/(\[{"\s])'/g, "$1‘").replace(/'/g, "’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g, "$1“").replace(/"/g, "”").replace(/\.{3}/g, "…");
7936
7949
  }
7937
7950
  function Hl(e) {
@@ -8145,7 +8158,7 @@ class In {
8145
8158
  h = m.call({ lexer: this }, f), typeof h == "number" && h >= 0 && (d = Math.min(d, h));
8146
8159
  }), d < 1 / 0 && d >= 0 && (s = t.substring(0, d + 1));
8147
8160
  }
8148
- if (r = this.tokenizer.inlineText(s, iw)) {
8161
+ if (r = this.tokenizer.inlineText(s, aw)) {
8149
8162
  t = t.substring(r.raw.length), r.raw.slice(-1) !== "_" && (u = r.raw.slice(-1)), c = !0, o = n[n.length - 1], o && o.type === "text" ? (o.raw += r.raw, o.text += r.text) : n.push(r);
8150
8163
  continue;
8151
8164
  }
@@ -8569,7 +8582,7 @@ Ba(Ho, "passThroughHooks", /* @__PURE__ */ new Set([
8569
8582
  "preprocess",
8570
8583
  "postprocess"
8571
8584
  ]));
8572
- function aw(e, t, n) {
8585
+ function lw(e, t, n) {
8573
8586
  return (r) => {
8574
8587
  if (r.message += `
8575
8588
  Please report this to https://github.com/markedjs/marked.`, e) {
@@ -8596,12 +8609,12 @@ function Uu(e, t) {
8596
8609
  typeof r == "function" && (o = r, r = null);
8597
8610
  const s = { ...r };
8598
8611
  r = { ...me.defaults, ...s };
8599
- const i = aw(r.silent, r.async, o);
8612
+ const i = lw(r.silent, r.async, o);
8600
8613
  if (typeof n > "u" || n === null)
8601
8614
  return i(new Error("marked(): input parameter is undefined or null"));
8602
8615
  if (typeof n != "string")
8603
8616
  return i(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
8604
- if (ow(r), r.hooks && (r.hooks.options = r), o) {
8617
+ if (sw(r), r.hooks && (r.hooks.options = r), o) {
8605
8618
  const a = r.highlight;
8606
8619
  let c;
8607
8620
  try {
@@ -8649,7 +8662,7 @@ function me(e, t, n) {
8649
8662
  return Uu(In.lex, Nn.parse)(e, t, n);
8650
8663
  }
8651
8664
  me.options = me.setOptions = function(e) {
8652
- return me.defaults = { ...me.defaults, ...e }, Vv(me.defaults), me;
8665
+ return me.defaults = { ...me.defaults, ...e }, Kv(me.defaults), me;
8653
8666
  };
8654
8667
  me.getDefaults = Lu;
8655
8668
  me.defaults = nr;
@@ -8802,7 +8815,7 @@ async function Wu(e, t) {
8802
8815
  async function Ul(e, t) {
8803
8816
  return await (await Wu(`/chat/files/${e}/view`, t)).text();
8804
8817
  }
8805
- async function lw(e, t) {
8818
+ async function cw(e, t) {
8806
8819
  const n = await Wu(`/chat/files/${e}/download`, t), r = URL.createObjectURL(n);
8807
8820
  let o = `file_${e}`;
8808
8821
  try {
@@ -8813,13 +8826,13 @@ async function lw(e, t) {
8813
8826
  const s = document.createElement("a");
8814
8827
  s.href = r, s.download = o, document.body.appendChild(s), s.click(), s.remove(), setTimeout(() => URL.revokeObjectURL(r), 6e4);
8815
8828
  }
8816
- async function cw(e, t = 50, n = 0) {
8829
+ async function uw(e, t = 50, n = 0) {
8817
8830
  const r = { limit: t, offset: n };
8818
8831
  return e && (r.thread_id = e), await qt("/chat/files", { params: r });
8819
8832
  }
8820
- const uw = 1, dw = 1e6;
8833
+ const dw = 1, fw = 1e6;
8821
8834
  let Xs = 0;
8822
- function fw() {
8835
+ function hw() {
8823
8836
  return Xs = (Xs + 1) % Number.MAX_SAFE_INTEGER, Xs.toString();
8824
8837
  }
8825
8838
  const Js = /* @__PURE__ */ new Map(), Wl = (e) => {
@@ -8830,14 +8843,14 @@ const Js = /* @__PURE__ */ new Map(), Wl = (e) => {
8830
8843
  type: "REMOVE_TOAST",
8831
8844
  toastId: e
8832
8845
  });
8833
- }, dw);
8846
+ }, fw);
8834
8847
  Js.set(e, t);
8835
- }, hw = (e, t) => {
8848
+ }, pw = (e, t) => {
8836
8849
  switch (t.type) {
8837
8850
  case "ADD_TOAST":
8838
8851
  return {
8839
8852
  ...e,
8840
- toasts: [t.toast, ...e.toasts].slice(0, uw)
8853
+ toasts: [t.toast, ...e.toasts].slice(0, dw)
8841
8854
  };
8842
8855
  case "UPDATE_TOAST":
8843
8856
  return {
@@ -8872,12 +8885,12 @@ const Js = /* @__PURE__ */ new Map(), Wl = (e) => {
8872
8885
  }, Eo = [];
8873
8886
  let Io = { toasts: [] };
8874
8887
  function zr(e) {
8875
- Io = hw(Io, e), Eo.forEach((t) => {
8888
+ Io = pw(Io, e), Eo.forEach((t) => {
8876
8889
  t(Io);
8877
8890
  });
8878
8891
  }
8879
- function pw({ ...e }) {
8880
- const t = fw(), n = (o) => zr({
8892
+ function mw({ ...e }) {
8893
+ const t = hw(), n = (o) => zr({
8881
8894
  type: "UPDATE_TOAST",
8882
8895
  toast: { ...o, id: t }
8883
8896
  }), r = () => zr({ type: "DISMISS_TOAST", toastId: t });
@@ -8904,7 +8917,7 @@ function ha() {
8904
8917
  n > -1 && Eo.splice(n, 1);
8905
8918
  }), [e]), {
8906
8919
  ...e,
8907
- toast: pw,
8920
+ toast: mw,
8908
8921
  dismiss: (n) => zr({ type: "DISMISS_TOAST", toastId: n })
8909
8922
  };
8910
8923
  }
@@ -8917,7 +8930,7 @@ function Tt(e) {
8917
8930
  return (r = t.current) == null ? void 0 : r.call(t, ...n);
8918
8931
  }, []);
8919
8932
  }
8920
- function mw(e, t = globalThis == null ? void 0 : globalThis.document) {
8933
+ function gw(e, t = globalThis == null ? void 0 : globalThis.document) {
8921
8934
  const n = Tt(e);
8922
8935
  p.useEffect(() => {
8923
8936
  const r = (o) => {
@@ -8926,7 +8939,7 @@ function mw(e, t = globalThis == null ? void 0 : globalThis.document) {
8926
8939
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
8927
8940
  }, [n, t]);
8928
8941
  }
8929
- var gw = "DismissableLayer", Ii = "dismissableLayer.update", xw = "dismissableLayer.pointerDownOutside", vw = "dismissableLayer.focusOutside", Vl, Vu = p.createContext({
8942
+ var xw = "DismissableLayer", Ii = "dismissableLayer.update", vw = "dismissableLayer.pointerDownOutside", ww = "dismissableLayer.focusOutside", Vl, Vu = p.createContext({
8930
8943
  layers: /* @__PURE__ */ new Set(),
8931
8944
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
8932
8945
  branches: /* @__PURE__ */ new Set()
@@ -8940,14 +8953,14 @@ var gw = "DismissableLayer", Ii = "dismissableLayer.update", xw = "dismissableLa
8940
8953
  onInteractOutside: i,
8941
8954
  onDismiss: a,
8942
8955
  ...c
8943
- } = e, u = p.useContext(Vu), [d, f] = p.useState(null), h = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = p.useState({}), b = Me(t, (R) => f(R)), w = Array.from(u.layers), [g] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), x = w.indexOf(g), v = d ? w.indexOf(d) : -1, y = u.layersWithOutsidePointerEventsDisabled.size > 0, k = v >= x, S = yw((R) => {
8956
+ } = e, u = p.useContext(Vu), [d, f] = p.useState(null), h = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = p.useState({}), b = Me(t, (R) => f(R)), w = Array.from(u.layers), [g] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), x = w.indexOf(g), v = d ? w.indexOf(d) : -1, y = u.layersWithOutsidePointerEventsDisabled.size > 0, k = v >= x, S = Sw((R) => {
8944
8957
  const E = R.target, A = [...u.branches].some((P) => P.contains(E));
8945
8958
  !k || A || (o == null || o(R), i == null || i(R), R.defaultPrevented || a == null || a());
8946
- }, h), C = Sw((R) => {
8959
+ }, h), C = Cw((R) => {
8947
8960
  const E = R.target;
8948
8961
  [...u.branches].some((P) => P.contains(E)) || (s == null || s(R), i == null || i(R), R.defaultPrevented || a == null || a());
8949
8962
  }, h);
8950
- return mw((R) => {
8963
+ return gw((R) => {
8951
8964
  v === u.layers.size - 1 && (r == null || r(R), !R.defaultPrevented && a && (R.preventDefault(), a()));
8952
8965
  }, h), p.useEffect(() => {
8953
8966
  if (d)
@@ -8978,8 +8991,8 @@ var gw = "DismissableLayer", Ii = "dismissableLayer.update", xw = "dismissableLa
8978
8991
  );
8979
8992
  }
8980
8993
  );
8981
- hs.displayName = gw;
8982
- var ww = "DismissableLayerBranch", bw = p.forwardRef((e, t) => {
8994
+ hs.displayName = xw;
8995
+ var bw = "DismissableLayerBranch", yw = p.forwardRef((e, t) => {
8983
8996
  const n = p.useContext(Vu), r = p.useRef(null), o = Me(t, r);
8984
8997
  return p.useEffect(() => {
8985
8998
  const s = r.current;
@@ -8989,8 +9002,8 @@ var ww = "DismissableLayerBranch", bw = p.forwardRef((e, t) => {
8989
9002
  };
8990
9003
  }, [n.branches]), /* @__PURE__ */ l.jsx(Se.div, { ...e, ref: o });
8991
9004
  });
8992
- bw.displayName = ww;
8993
- function yw(e, t = globalThis == null ? void 0 : globalThis.document) {
9005
+ yw.displayName = bw;
9006
+ function Sw(e, t = globalThis == null ? void 0 : globalThis.document) {
8994
9007
  const n = Tt(e), r = p.useRef(!1), o = p.useRef(() => {
8995
9008
  });
8996
9009
  return p.useEffect(() => {
@@ -8998,7 +9011,7 @@ function yw(e, t = globalThis == null ? void 0 : globalThis.document) {
8998
9011
  if (a.target && !r.current) {
8999
9012
  let c = function() {
9000
9013
  Ku(
9001
- xw,
9014
+ vw,
9002
9015
  n,
9003
9016
  u,
9004
9017
  { discrete: !0 }
@@ -9020,11 +9033,11 @@ function yw(e, t = globalThis == null ? void 0 : globalThis.document) {
9020
9033
  onPointerDownCapture: () => r.current = !0
9021
9034
  };
9022
9035
  }
9023
- function Sw(e, t = globalThis == null ? void 0 : globalThis.document) {
9036
+ function Cw(e, t = globalThis == null ? void 0 : globalThis.document) {
9024
9037
  const n = Tt(e), r = p.useRef(!1);
9025
9038
  return p.useEffect(() => {
9026
9039
  const o = (s) => {
9027
- s.target && !r.current && Ku(vw, n, { originalEvent: s }, {
9040
+ s.target && !r.current && Ku(ww, n, { originalEvent: s }, {
9028
9041
  discrete: !1
9029
9042
  });
9030
9043
  };
@@ -9042,7 +9055,7 @@ function Ku(e, t, n, { discrete: r }) {
9042
9055
  const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
9043
9056
  t && o.addEventListener(e, t, { once: !0 }), r ? _u(o, s) : o.dispatchEvent(s);
9044
9057
  }
9045
- var Zs = "focusScope.autoFocusOnMount", Qs = "focusScope.autoFocusOnUnmount", ql = { bubbles: !1, cancelable: !0 }, Cw = "FocusScope", ps = p.forwardRef((e, t) => {
9058
+ var Zs = "focusScope.autoFocusOnMount", Qs = "focusScope.autoFocusOnUnmount", ql = { bubbles: !1, cancelable: !0 }, Tw = "FocusScope", ps = p.forwardRef((e, t) => {
9046
9059
  const {
9047
9060
  loop: n = !1,
9048
9061
  trapped: r = !1,
@@ -9085,7 +9098,7 @@ var Zs = "focusScope.autoFocusOnMount", Qs = "focusScope.autoFocusOnUnmount", ql
9085
9098
  const w = document.activeElement;
9086
9099
  if (!a.contains(w)) {
9087
9100
  const x = new CustomEvent(Zs, ql);
9088
- a.addEventListener(Zs, u), a.dispatchEvent(x), x.defaultPrevented || (Tw(Nw(qu(a)), { select: !0 }), document.activeElement === w && kn(a));
9101
+ a.addEventListener(Zs, u), a.dispatchEvent(x), x.defaultPrevented || (kw(Aw(qu(a)), { select: !0 }), document.activeElement === w && kn(a));
9089
9102
  }
9090
9103
  return () => {
9091
9104
  a.removeEventListener(Zs, u), setTimeout(() => {
@@ -9100,7 +9113,7 @@ var Zs = "focusScope.autoFocusOnMount", Qs = "focusScope.autoFocusOnUnmount", ql
9100
9113
  if (!n && !r || m.paused) return;
9101
9114
  const g = w.key === "Tab" && !w.altKey && !w.ctrlKey && !w.metaKey, x = document.activeElement;
9102
9115
  if (g && x) {
9103
- const v = w.currentTarget, [y, k] = kw(v);
9116
+ const v = w.currentTarget, [y, k] = Rw(v);
9104
9117
  y && k ? !w.shiftKey && x === k ? (w.preventDefault(), n && kn(y, { select: !0 })) : w.shiftKey && x === y && (w.preventDefault(), n && kn(k, { select: !0 })) : x === v && w.preventDefault();
9105
9118
  }
9106
9119
  },
@@ -9108,13 +9121,13 @@ var Zs = "focusScope.autoFocusOnMount", Qs = "focusScope.autoFocusOnUnmount", ql
9108
9121
  );
9109
9122
  return /* @__PURE__ */ l.jsx(Se.div, { tabIndex: -1, ...i, ref: h, onKeyDown: b });
9110
9123
  });
9111
- ps.displayName = Cw;
9112
- function Tw(e, { select: t = !1 } = {}) {
9124
+ ps.displayName = Tw;
9125
+ function kw(e, { select: t = !1 } = {}) {
9113
9126
  const n = document.activeElement;
9114
9127
  for (const r of e)
9115
9128
  if (kn(r, { select: t }), document.activeElement !== n) return;
9116
9129
  }
9117
- function kw(e) {
9130
+ function Rw(e) {
9118
9131
  const t = qu(e), n = Gl(t, e), r = Gl(t.reverse(), e);
9119
9132
  return [n, r];
9120
9133
  }
@@ -9130,9 +9143,9 @@ function qu(e) {
9130
9143
  }
9131
9144
  function Gl(e, t) {
9132
9145
  for (const n of e)
9133
- if (!Rw(n, { upTo: t })) return n;
9146
+ if (!Ew(n, { upTo: t })) return n;
9134
9147
  }
9135
- function Rw(e, { upTo: t }) {
9148
+ function Ew(e, { upTo: t }) {
9136
9149
  if (getComputedStyle(e).visibility === "hidden") return !0;
9137
9150
  for (; e; ) {
9138
9151
  if (t !== void 0 && e === t) return !1;
@@ -9141,17 +9154,17 @@ function Rw(e, { upTo: t }) {
9141
9154
  }
9142
9155
  return !1;
9143
9156
  }
9144
- function Ew(e) {
9157
+ function Iw(e) {
9145
9158
  return e instanceof HTMLInputElement && "select" in e;
9146
9159
  }
9147
9160
  function kn(e, { select: t = !1 } = {}) {
9148
9161
  if (e && e.focus) {
9149
9162
  const n = document.activeElement;
9150
- e.focus({ preventScroll: !0 }), e !== n && Ew(e) && t && e.select();
9163
+ e.focus({ preventScroll: !0 }), e !== n && Iw(e) && t && e.select();
9151
9164
  }
9152
9165
  }
9153
- var Yl = Iw();
9154
- function Iw() {
9166
+ var Yl = Nw();
9167
+ function Nw() {
9155
9168
  let e = [];
9156
9169
  return {
9157
9170
  add(t) {
@@ -9168,17 +9181,17 @@ function Xl(e, t) {
9168
9181
  const n = [...e], r = n.indexOf(t);
9169
9182
  return r !== -1 && n.splice(r, 1), n;
9170
9183
  }
9171
- function Nw(e) {
9184
+ function Aw(e) {
9172
9185
  return e.filter((t) => t.tagName !== "A");
9173
9186
  }
9174
- var Aw = "Portal", ms = p.forwardRef((e, t) => {
9187
+ var _w = "Portal", ms = p.forwardRef((e, t) => {
9175
9188
  var a;
9176
9189
  const { container: n, ...r } = e, [o, s] = p.useState(!1);
9177
9190
  Ct(() => s(!0), []);
9178
9191
  const i = n || o && ((a = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : a.body);
9179
9192
  return i ? kc.createPortal(/* @__PURE__ */ l.jsx(Se.div, { ...r, ref: t }), i) : null;
9180
9193
  });
9181
- ms.displayName = Aw;
9194
+ ms.displayName = _w;
9182
9195
  var ei = 0;
9183
9196
  function pa() {
9184
9197
  p.useEffect(() => {
@@ -9209,16 +9222,16 @@ function Gu(e, t) {
9209
9222
  t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
9210
9223
  return n;
9211
9224
  }
9212
- function _w(e, t, n) {
9225
+ function jw(e, t, n) {
9213
9226
  if (n || arguments.length === 2) for (var r = 0, o = t.length, s; r < o; r++)
9214
9227
  (s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
9215
9228
  return e.concat(s || Array.prototype.slice.call(t));
9216
9229
  }
9217
- var No = "right-scroll-bar-position", Ao = "width-before-scroll-bar", jw = "with-scroll-bars-hidden", Pw = "--removed-body-scroll-bar-size";
9230
+ var No = "right-scroll-bar-position", Ao = "width-before-scroll-bar", Pw = "with-scroll-bars-hidden", Ow = "--removed-body-scroll-bar-size";
9218
9231
  function ti(e, t) {
9219
9232
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
9220
9233
  }
9221
- function Ow(e, t) {
9234
+ function Mw(e, t) {
9222
9235
  var n = fe(function() {
9223
9236
  return {
9224
9237
  // value
@@ -9239,14 +9252,14 @@ function Ow(e, t) {
9239
9252
  })[0];
9240
9253
  return n.callback = t, n.facade;
9241
9254
  }
9242
- var Mw = typeof window < "u" ? p.useLayoutEffect : p.useEffect, Zl = /* @__PURE__ */ new WeakMap();
9243
- function Dw(e, t) {
9244
- var n = Ow(null, function(r) {
9255
+ var Dw = typeof window < "u" ? p.useLayoutEffect : p.useEffect, Zl = /* @__PURE__ */ new WeakMap();
9256
+ function Lw(e, t) {
9257
+ var n = Mw(null, function(r) {
9245
9258
  return e.forEach(function(o) {
9246
9259
  return ti(o, r);
9247
9260
  });
9248
9261
  });
9249
- return Mw(function() {
9262
+ return Dw(function() {
9250
9263
  var r = Zl.get(n);
9251
9264
  if (r) {
9252
9265
  var o = new Set(r), s = new Set(e), i = n.current;
@@ -9259,11 +9272,11 @@ function Dw(e, t) {
9259
9272
  Zl.set(n, e);
9260
9273
  }, [e]), n;
9261
9274
  }
9262
- function Lw(e) {
9275
+ function $w(e) {
9263
9276
  return e;
9264
9277
  }
9265
- function $w(e, t) {
9266
- t === void 0 && (t = Lw);
9278
+ function Fw(e, t) {
9279
+ t === void 0 && (t = $w);
9267
9280
  var n = [], r = !1, o = {
9268
9281
  read: function() {
9269
9282
  if (r)
@@ -9317,9 +9330,9 @@ function $w(e, t) {
9317
9330
  };
9318
9331
  return o;
9319
9332
  }
9320
- function Fw(e) {
9333
+ function zw(e) {
9321
9334
  e === void 0 && (e = {});
9322
- var t = $w(null);
9335
+ var t = Fw(null);
9323
9336
  return t.options = un({ async: !0, ssr: !1 }, e), t;
9324
9337
  }
9325
9338
  var Yu = function(e) {
@@ -9332,16 +9345,16 @@ var Yu = function(e) {
9332
9345
  return p.createElement(r, un({}, n));
9333
9346
  };
9334
9347
  Yu.isSideCarExport = !0;
9335
- function zw(e, t) {
9348
+ function Bw(e, t) {
9336
9349
  return e.useMedium(t), Yu;
9337
9350
  }
9338
- var Xu = Fw(), ni = function() {
9351
+ var Xu = zw(), ni = function() {
9339
9352
  }, gs = p.forwardRef(function(e, t) {
9340
9353
  var n = p.useRef(null), r = p.useState({
9341
9354
  onScrollCapture: ni,
9342
9355
  onWheelCapture: ni,
9343
9356
  onTouchMoveCapture: ni
9344
- }), o = r[0], s = r[1], i = e.forwardProps, a = e.children, c = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards, h = e.sideCar, m = e.noRelative, b = e.noIsolation, w = e.inert, g = e.allowPinchZoom, x = e.as, v = x === void 0 ? "div" : x, y = e.gapMode, k = Gu(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = h, C = Dw([n, t]), R = un(un({}, k), o);
9357
+ }), o = r[0], s = r[1], i = e.forwardProps, a = e.children, c = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards, h = e.sideCar, m = e.noRelative, b = e.noIsolation, w = e.inert, g = e.allowPinchZoom, x = e.as, v = x === void 0 ? "div" : x, y = e.gapMode, k = Gu(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = h, C = Lw([n, t]), R = un(un({}, k), o);
9345
9358
  return p.createElement(
9346
9359
  p.Fragment,
9347
9360
  null,
@@ -9358,37 +9371,37 @@ gs.classNames = {
9358
9371
  fullWidth: Ao,
9359
9372
  zeroRight: No
9360
9373
  };
9361
- var Bw = function() {
9374
+ var Hw = function() {
9362
9375
  if (typeof __webpack_nonce__ < "u")
9363
9376
  return __webpack_nonce__;
9364
9377
  };
9365
- function Hw() {
9378
+ function Uw() {
9366
9379
  if (!document)
9367
9380
  return null;
9368
9381
  var e = document.createElement("style");
9369
9382
  e.type = "text/css";
9370
- var t = Bw();
9383
+ var t = Hw();
9371
9384
  return t && e.setAttribute("nonce", t), e;
9372
9385
  }
9373
- function Uw(e, t) {
9386
+ function Ww(e, t) {
9374
9387
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
9375
9388
  }
9376
- function Ww(e) {
9389
+ function Vw(e) {
9377
9390
  var t = document.head || document.getElementsByTagName("head")[0];
9378
9391
  t.appendChild(e);
9379
9392
  }
9380
- var Vw = function() {
9393
+ var Kw = function() {
9381
9394
  var e = 0, t = null;
9382
9395
  return {
9383
9396
  add: function(n) {
9384
- e == 0 && (t = Hw()) && (Uw(t, n), Ww(t)), e++;
9397
+ e == 0 && (t = Uw()) && (Ww(t, n), Vw(t)), e++;
9385
9398
  },
9386
9399
  remove: function() {
9387
9400
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
9388
9401
  }
9389
9402
  };
9390
- }, Kw = function() {
9391
- var e = Vw();
9403
+ }, qw = function() {
9404
+ var e = Kw();
9392
9405
  return function(t, n) {
9393
9406
  p.useEffect(function() {
9394
9407
  return e.add(t), function() {
@@ -9397,35 +9410,35 @@ var Vw = function() {
9397
9410
  }, [t && n]);
9398
9411
  };
9399
9412
  }, Ju = function() {
9400
- var e = Kw(), t = function(n) {
9413
+ var e = qw(), t = function(n) {
9401
9414
  var r = n.styles, o = n.dynamic;
9402
9415
  return e(r, o), null;
9403
9416
  };
9404
9417
  return t;
9405
- }, qw = {
9418
+ }, Gw = {
9406
9419
  left: 0,
9407
9420
  top: 0,
9408
9421
  right: 0,
9409
9422
  gap: 0
9410
9423
  }, ri = function(e) {
9411
9424
  return parseInt(e || "", 10) || 0;
9412
- }, Gw = function(e) {
9425
+ }, Yw = function(e) {
9413
9426
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
9414
9427
  return [ri(n), ri(r), ri(o)];
9415
- }, Yw = function(e) {
9428
+ }, Xw = function(e) {
9416
9429
  if (e === void 0 && (e = "margin"), typeof window > "u")
9417
- return qw;
9418
- var t = Gw(e), n = document.documentElement.clientWidth, r = window.innerWidth;
9430
+ return Gw;
9431
+ var t = Yw(e), n = document.documentElement.clientWidth, r = window.innerWidth;
9419
9432
  return {
9420
9433
  left: t[0],
9421
9434
  top: t[1],
9422
9435
  right: t[2],
9423
9436
  gap: Math.max(0, r - n + t[2] - t[0])
9424
9437
  };
9425
- }, Xw = Ju(), pr = "data-scroll-locked", Jw = function(e, t, n, r) {
9438
+ }, Jw = Ju(), pr = "data-scroll-locked", Zw = function(e, t, n, r) {
9426
9439
  var o = e.left, s = e.top, i = e.right, a = e.gap;
9427
9440
  return n === void 0 && (n = "margin"), `
9428
- .`.concat(jw, ` {
9441
+ .`.concat(Pw, ` {
9429
9442
  overflow: hidden `).concat(r, `;
9430
9443
  padding-right: `).concat(a, "px ").concat(r, `;
9431
9444
  }
@@ -9463,26 +9476,26 @@ var Vw = function() {
9463
9476
  }
9464
9477
 
9465
9478
  body[`).concat(pr, `] {
9466
- `).concat(Pw, ": ").concat(a, `px;
9479
+ `).concat(Ow, ": ").concat(a, `px;
9467
9480
  }
9468
9481
  `);
9469
9482
  }, Ql = function() {
9470
9483
  var e = parseInt(document.body.getAttribute(pr) || "0", 10);
9471
9484
  return isFinite(e) ? e : 0;
9472
- }, Zw = function() {
9485
+ }, Qw = function() {
9473
9486
  p.useEffect(function() {
9474
9487
  return document.body.setAttribute(pr, (Ql() + 1).toString()), function() {
9475
9488
  var e = Ql() - 1;
9476
9489
  e <= 0 ? document.body.removeAttribute(pr) : document.body.setAttribute(pr, e.toString());
9477
9490
  };
9478
9491
  }, []);
9479
- }, Qw = function(e) {
9492
+ }, eb = function(e) {
9480
9493
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
9481
- Zw();
9494
+ Qw();
9482
9495
  var s = p.useMemo(function() {
9483
- return Yw(o);
9496
+ return Xw(o);
9484
9497
  }, [o]);
9485
- return p.createElement(Xw, { styles: Jw(s, !t, o, n ? "" : "!important") });
9498
+ return p.createElement(Jw, { styles: Zw(s, !t, o, n ? "" : "!important") });
9486
9499
  }, Ni = !1;
9487
9500
  if (typeof window < "u")
9488
9501
  try {
@@ -9495,7 +9508,7 @@ if (typeof window < "u")
9495
9508
  } catch {
9496
9509
  Ni = !1;
9497
9510
  }
9498
- var lr = Ni ? { passive: !1 } : !1, eb = function(e) {
9511
+ var lr = Ni ? { passive: !1 } : !1, tb = function(e) {
9499
9512
  return e.tagName === "TEXTAREA";
9500
9513
  }, Zu = function(e, t) {
9501
9514
  if (!(e instanceof Element))
@@ -9504,11 +9517,11 @@ var lr = Ni ? { passive: !1 } : !1, eb = function(e) {
9504
9517
  return (
9505
9518
  // not-not-scrollable
9506
9519
  n[t] !== "hidden" && // contains scroll inside self
9507
- !(n.overflowY === n.overflowX && !eb(e) && n[t] === "visible")
9520
+ !(n.overflowY === n.overflowX && !tb(e) && n[t] === "visible")
9508
9521
  );
9509
- }, tb = function(e) {
9510
- return Zu(e, "overflowY");
9511
9522
  }, nb = function(e) {
9523
+ return Zu(e, "overflowY");
9524
+ }, rb = function(e) {
9512
9525
  return Zu(e, "overflowX");
9513
9526
  }, ec = function(e, t) {
9514
9527
  var n = t.ownerDocument, r = t;
@@ -9523,14 +9536,14 @@ var lr = Ni ? { passive: !1 } : !1, eb = function(e) {
9523
9536
  r = r.parentNode;
9524
9537
  } while (r && r !== n.body);
9525
9538
  return !1;
9526
- }, rb = function(e) {
9539
+ }, ob = function(e) {
9527
9540
  var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
9528
9541
  return [
9529
9542
  t,
9530
9543
  n,
9531
9544
  r
9532
9545
  ];
9533
- }, ob = function(e) {
9546
+ }, sb = function(e) {
9534
9547
  var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
9535
9548
  return [
9536
9549
  t,
@@ -9538,13 +9551,13 @@ var lr = Ni ? { passive: !1 } : !1, eb = function(e) {
9538
9551
  r
9539
9552
  ];
9540
9553
  }, Qu = function(e, t) {
9541
- return e === "v" ? tb(t) : nb(t);
9554
+ return e === "v" ? nb(t) : rb(t);
9542
9555
  }, ed = function(e, t) {
9543
- return e === "v" ? rb(t) : ob(t);
9544
- }, sb = function(e, t) {
9556
+ return e === "v" ? ob(t) : sb(t);
9557
+ }, ib = function(e, t) {
9545
9558
  return e === "h" && t === "rtl" ? -1 : 1;
9546
- }, ib = function(e, t, n, r, o) {
9547
- var s = sb(e, window.getComputedStyle(t).direction), i = s * r, a = n.target, c = t.contains(a), u = !1, d = i > 0, f = 0, h = 0;
9559
+ }, ab = function(e, t, n, r, o) {
9560
+ var s = ib(e, window.getComputedStyle(t).direction), i = s * r, a = n.target, c = t.contains(a), u = !1, d = i > 0, f = 0, h = 0;
9548
9561
  do {
9549
9562
  if (!a)
9550
9563
  break;
@@ -9564,22 +9577,22 @@ var lr = Ni ? { passive: !1 } : !1, eb = function(e) {
9564
9577
  return [e.deltaX, e.deltaY];
9565
9578
  }, nc = function(e) {
9566
9579
  return e && "current" in e ? e.current : e;
9567
- }, ab = function(e, t) {
9580
+ }, lb = function(e, t) {
9568
9581
  return e[0] === t[0] && e[1] === t[1];
9569
- }, lb = function(e) {
9582
+ }, cb = function(e) {
9570
9583
  return `
9571
9584
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
9572
9585
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
9573
9586
  `);
9574
- }, cb = 0, cr = [];
9575
- function ub(e) {
9576
- var t = p.useRef([]), n = p.useRef([0, 0]), r = p.useRef(), o = p.useState(cb++)[0], s = p.useState(Ju)[0], i = p.useRef(e);
9587
+ }, ub = 0, cr = [];
9588
+ function db(e) {
9589
+ var t = p.useRef([]), n = p.useRef([0, 0]), r = p.useRef(), o = p.useState(ub++)[0], s = p.useState(Ju)[0], i = p.useRef(e);
9577
9590
  p.useEffect(function() {
9578
9591
  i.current = e;
9579
9592
  }, [e]), p.useEffect(function() {
9580
9593
  if (e.inert) {
9581
9594
  document.body.classList.add("block-interactivity-".concat(o));
9582
- var w = _w([e.lockRef.current], (e.shards || []).map(nc), !0).filter(Boolean);
9595
+ var w = jw([e.lockRef.current], (e.shards || []).map(nc), !0).filter(Boolean);
9583
9596
  return w.forEach(function(g) {
9584
9597
  return g.classList.add("allow-interactivity-".concat(o));
9585
9598
  }), function() {
@@ -9603,12 +9616,12 @@ function ub(e) {
9603
9616
  if (!r.current && "changedTouches" in w && (y || k) && (r.current = S), !S)
9604
9617
  return !0;
9605
9618
  var A = r.current || S;
9606
- return ib(A, g, w, A === "h" ? y : k);
9619
+ return ab(A, g, w, A === "h" ? y : k);
9607
9620
  }, []), c = p.useCallback(function(w) {
9608
9621
  var g = w;
9609
9622
  if (!(!cr.length || cr[cr.length - 1] !== s)) {
9610
9623
  var x = "deltaY" in g ? tc(g) : mo(g), v = t.current.filter(function(S) {
9611
- return S.name === g.type && (S.target === g.target || g.target === S.shadowParent) && ab(S.delta, x);
9624
+ return S.name === g.type && (S.target === g.target || g.target === S.shadowParent) && lb(S.delta, x);
9612
9625
  })[0];
9613
9626
  if (v && v.should) {
9614
9627
  g.cancelable && g.preventDefault();
@@ -9622,7 +9635,7 @@ function ub(e) {
9622
9635
  }
9623
9636
  }
9624
9637
  }, []), u = p.useCallback(function(w, g, x, v) {
9625
- var y = { name: w, delta: g, target: x, should: v, shadowParent: db(x) };
9638
+ var y = { name: w, delta: g, target: x, should: v, shadowParent: fb(x) };
9626
9639
  t.current.push(y), setTimeout(function() {
9627
9640
  t.current = t.current.filter(function(k) {
9628
9641
  return k !== y;
@@ -9650,28 +9663,28 @@ function ub(e) {
9650
9663
  return p.createElement(
9651
9664
  p.Fragment,
9652
9665
  null,
9653
- b ? p.createElement(s, { styles: lb(o) }) : null,
9654
- m ? p.createElement(Qw, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
9666
+ b ? p.createElement(s, { styles: cb(o) }) : null,
9667
+ m ? p.createElement(eb, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
9655
9668
  );
9656
9669
  }
9657
- function db(e) {
9670
+ function fb(e) {
9658
9671
  for (var t = null; e !== null; )
9659
9672
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
9660
9673
  return t;
9661
9674
  }
9662
- const fb = zw(Xu, ub);
9675
+ const hb = Bw(Xu, db);
9663
9676
  var xs = p.forwardRef(function(e, t) {
9664
- return p.createElement(gs, un({}, e, { ref: t, sideCar: fb }));
9677
+ return p.createElement(gs, un({}, e, { ref: t, sideCar: hb }));
9665
9678
  });
9666
9679
  xs.classNames = gs.classNames;
9667
- var hb = function(e) {
9680
+ var pb = function(e) {
9668
9681
  if (typeof document > "u")
9669
9682
  return null;
9670
9683
  var t = Array.isArray(e) ? e[0] : e;
9671
9684
  return t.ownerDocument.body;
9672
9685
  }, ur = /* @__PURE__ */ new WeakMap(), go = /* @__PURE__ */ new WeakMap(), xo = {}, oi = 0, td = function(e) {
9673
9686
  return e && (e.host || td(e.parentNode));
9674
- }, pb = function(e, t) {
9687
+ }, mb = function(e, t) {
9675
9688
  return t.map(function(n) {
9676
9689
  if (e.contains(n))
9677
9690
  return n;
@@ -9680,8 +9693,8 @@ var hb = function(e) {
9680
9693
  }).filter(function(n) {
9681
9694
  return !!n;
9682
9695
  });
9683
- }, mb = function(e, t, n, r) {
9684
- var o = pb(t, Array.isArray(e) ? e : [e]);
9696
+ }, gb = function(e, t, n, r) {
9697
+ var o = mb(t, Array.isArray(e) ? e : [e]);
9685
9698
  xo[n] || (xo[n] = /* @__PURE__ */ new WeakMap());
9686
9699
  var s = xo[n], i = [], a = /* @__PURE__ */ new Set(), c = new Set(o), u = function(f) {
9687
9700
  !f || a.has(f) || (a.add(f), u(f.parentNode));
@@ -9708,11 +9721,11 @@ var hb = function(e) {
9708
9721
  };
9709
9722
  }, ma = function(e, t, n) {
9710
9723
  n === void 0 && (n = "data-aria-hidden");
9711
- var r = Array.from(Array.isArray(e) ? e : [e]), o = hb(e);
9712
- return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), mb(r, o, n, "aria-hidden")) : function() {
9724
+ var r = Array.from(Array.isArray(e) ? e : [e]), o = pb(e);
9725
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), gb(r, o, n, "aria-hidden")) : function() {
9713
9726
  return null;
9714
9727
  };
9715
- }, vs = "Dialog", [nd, RT] = xn(vs), [gb, sn] = nd(vs), rd = (e) => {
9728
+ }, vs = "Dialog", [nd, ET] = xn(vs), [xb, sn] = nd(vs), rd = (e) => {
9716
9729
  const {
9717
9730
  __scopeDialog: t,
9718
9731
  children: n,
@@ -9727,7 +9740,7 @@ var hb = function(e) {
9727
9740
  caller: vs
9728
9741
  });
9729
9742
  return /* @__PURE__ */ l.jsx(
9730
- gb,
9743
+ xb,
9731
9744
  {
9732
9745
  scope: t,
9733
9746
  triggerRef: a,
@@ -9763,27 +9776,27 @@ var od = "DialogTrigger", sd = p.forwardRef(
9763
9776
  }
9764
9777
  );
9765
9778
  sd.displayName = od;
9766
- var ga = "DialogPortal", [xb, id] = nd(ga, {
9779
+ var ga = "DialogPortal", [vb, id] = nd(ga, {
9767
9780
  forceMount: void 0
9768
9781
  }), ad = (e) => {
9769
9782
  const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = sn(ga, t);
9770
- return /* @__PURE__ */ l.jsx(xb, { scope: t, forceMount: n, children: p.Children.map(r, (i) => /* @__PURE__ */ l.jsx(Ht, { present: n || s.open, children: /* @__PURE__ */ l.jsx(ms, { asChild: !0, container: o, children: i }) })) });
9783
+ return /* @__PURE__ */ l.jsx(vb, { scope: t, forceMount: n, children: p.Children.map(r, (i) => /* @__PURE__ */ l.jsx(Ht, { present: n || s.open, children: /* @__PURE__ */ l.jsx(ms, { asChild: !0, container: o, children: i }) })) });
9771
9784
  };
9772
9785
  ad.displayName = ga;
9773
9786
  var Uo = "DialogOverlay", ld = p.forwardRef(
9774
9787
  (e, t) => {
9775
9788
  const n = id(Uo, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = sn(Uo, e.__scopeDialog);
9776
- return s.modal ? /* @__PURE__ */ l.jsx(Ht, { present: r || s.open, children: /* @__PURE__ */ l.jsx(wb, { ...o, ref: t }) }) : null;
9789
+ return s.modal ? /* @__PURE__ */ l.jsx(Ht, { present: r || s.open, children: /* @__PURE__ */ l.jsx(bb, { ...o, ref: t }) }) : null;
9777
9790
  }
9778
9791
  );
9779
9792
  ld.displayName = Uo;
9780
- var vb = xr("DialogOverlay.RemoveScroll"), wb = p.forwardRef(
9793
+ var wb = xr("DialogOverlay.RemoveScroll"), bb = p.forwardRef(
9781
9794
  (e, t) => {
9782
9795
  const { __scopeDialog: n, ...r } = e, o = sn(Uo, n);
9783
9796
  return (
9784
9797
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
9785
9798
  // ie. when `Overlay` and `Content` are siblings
9786
- /* @__PURE__ */ l.jsx(xs, { as: vb, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ l.jsx(
9799
+ /* @__PURE__ */ l.jsx(xs, { as: wb, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ l.jsx(
9787
9800
  Se.div,
9788
9801
  {
9789
9802
  "data-state": va(o.open),
@@ -9797,11 +9810,11 @@ var vb = xr("DialogOverlay.RemoveScroll"), wb = p.forwardRef(
9797
9810
  ), Xn = "DialogContent", cd = p.forwardRef(
9798
9811
  (e, t) => {
9799
9812
  const n = id(Xn, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = sn(Xn, e.__scopeDialog);
9800
- return /* @__PURE__ */ l.jsx(Ht, { present: r || s.open, children: s.modal ? /* @__PURE__ */ l.jsx(bb, { ...o, ref: t }) : /* @__PURE__ */ l.jsx(yb, { ...o, ref: t }) });
9813
+ return /* @__PURE__ */ l.jsx(Ht, { present: r || s.open, children: s.modal ? /* @__PURE__ */ l.jsx(yb, { ...o, ref: t }) : /* @__PURE__ */ l.jsx(Sb, { ...o, ref: t }) });
9801
9814
  }
9802
9815
  );
9803
9816
  cd.displayName = Xn;
9804
- var bb = p.forwardRef(
9817
+ var yb = p.forwardRef(
9805
9818
  (e, t) => {
9806
9819
  const n = sn(Xn, e.__scopeDialog), r = p.useRef(null), o = Me(t, n.contentRef, r);
9807
9820
  return p.useEffect(() => {
@@ -9829,7 +9842,7 @@ var bb = p.forwardRef(
9829
9842
  }
9830
9843
  );
9831
9844
  }
9832
- ), yb = p.forwardRef(
9845
+ ), Sb = p.forwardRef(
9833
9846
  (e, t) => {
9834
9847
  const n = sn(Xn, e.__scopeDialog), r = p.useRef(!1), o = p.useRef(!1);
9835
9848
  return /* @__PURE__ */ l.jsx(
@@ -9880,8 +9893,8 @@ var bb = p.forwardRef(
9880
9893
  }
9881
9894
  ),
9882
9895
  /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
9883
- /* @__PURE__ */ l.jsx(Sb, { titleId: a.titleId }),
9884
- /* @__PURE__ */ l.jsx(Tb, { contentRef: c, descriptionId: a.descriptionId })
9896
+ /* @__PURE__ */ l.jsx(Cb, { titleId: a.titleId }),
9897
+ /* @__PURE__ */ l.jsx(kb, { contentRef: c, descriptionId: a.descriptionId })
9885
9898
  ] })
9886
9899
  ] });
9887
9900
  }
@@ -9917,11 +9930,11 @@ md.displayName = pd;
9917
9930
  function va(e) {
9918
9931
  return e ? "open" : "closed";
9919
9932
  }
9920
- var gd = "DialogTitleWarning", [ET, xd] = Nv(gd, {
9933
+ var gd = "DialogTitleWarning", [IT, xd] = Av(gd, {
9921
9934
  contentName: Xn,
9922
9935
  titleName: xa,
9923
9936
  docsSlug: "dialog"
9924
- }), Sb = ({ titleId: e }) => {
9937
+ }), Cb = ({ titleId: e }) => {
9925
9938
  const t = xd(gd), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
9926
9939
 
9927
9940
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
@@ -9930,15 +9943,15 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
9930
9943
  return p.useEffect(() => {
9931
9944
  e && (document.getElementById(e) || console.error(n));
9932
9945
  }, [n, e]), null;
9933
- }, Cb = "DialogDescriptionWarning", Tb = ({ contentRef: e, descriptionId: t }) => {
9934
- const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${xd(Cb).contentName}}.`;
9946
+ }, Tb = "DialogDescriptionWarning", kb = ({ contentRef: e, descriptionId: t }) => {
9947
+ const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${xd(Tb).contentName}}.`;
9935
9948
  return p.useEffect(() => {
9936
9949
  var s;
9937
9950
  const o = (s = e.current) == null ? void 0 : s.getAttribute("aria-describedby");
9938
9951
  t && o && (document.getElementById(t) || console.warn(r));
9939
9952
  }, [r, e, t]), null;
9940
- }, vd = rd, kb = sd, wd = ad, ws = ld, bs = cd, Vn = dd, ys = hd, bd = md;
9941
- const Rb = vd, Eb = wd, yd = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
9953
+ }, vd = rd, Rb = sd, wd = ad, ws = ld, bs = cd, Vn = dd, ys = hd, bd = md;
9954
+ const Eb = vd, Ib = wd, yd = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
9942
9955
  ws,
9943
9956
  {
9944
9957
  ref: n,
@@ -9966,7 +9979,7 @@ const Sd = p.forwardRef(({ className: e, children: t, ...n }, r) => {
9966
9979
  }
9967
9980
  return i(t), s;
9968
9981
  }, [t]);
9969
- return /* @__PURE__ */ l.jsxs(Eb, { children: [
9982
+ return /* @__PURE__ */ l.jsxs(Ib, { children: [
9970
9983
  /* @__PURE__ */ l.jsx(yd, {}),
9971
9984
  /* @__PURE__ */ l.jsxs(
9972
9985
  bs,
@@ -10016,7 +10029,7 @@ const Td = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
10016
10029
  }
10017
10030
  ));
10018
10031
  Td.displayName = Vn.displayName;
10019
- const Ib = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
10032
+ const Nb = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
10020
10033
  ys,
10021
10034
  {
10022
10035
  ref: n,
@@ -10024,8 +10037,8 @@ const Ib = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
10024
10037
  ...t
10025
10038
  }
10026
10039
  ));
10027
- Ib.displayName = ys.displayName;
10028
- function Nb({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
10040
+ Nb.displayName = ys.displayName;
10041
+ function Ab({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
10029
10042
  const [s, i] = fe(!1), [a, c] = fe(null), [u, d] = fe(null), { toast: f } = ha(), h = F.useCallback(async () => {
10030
10043
  if (n) {
10031
10044
  i(!0), d(null), c(null);
@@ -10045,7 +10058,7 @@ function Nb({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
10045
10058
  const m = async () => {
10046
10059
  if (n)
10047
10060
  try {
10048
- await lw(n), f({ title: "Download started", description: `Downloading ${r}` });
10061
+ await cw(n), f({ title: "Download started", description: `Downloading ${r}` });
10049
10062
  } catch (x) {
10050
10063
  console.error("Failed to download file:", x), f({ title: "Download failed", description: String(x), variant: "destructive" });
10051
10064
  }
@@ -10089,7 +10102,7 @@ function Nb({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
10089
10102
  ] }),
10090
10103
  /* @__PURE__ */ l.jsx("p", { className: "text-sm text-muted-foreground", children: "This file type cannot be previewed. Use download or external view." })
10091
10104
  ] }) : /* @__PURE__ */ l.jsx("div", { className: "flex items-center justify-center py-12", children: /* @__PURE__ */ l.jsx("p", { className: "text-muted-foreground", children: "No content to display" }) }), g = () => o.startsWith("image/") ? /* @__PURE__ */ l.jsx(jp, { className: "h-5 w-5" }) : /* @__PURE__ */ l.jsx(Ha, { className: "h-5 w-5" });
10092
- return /* @__PURE__ */ l.jsx(Rb, { open: e, onOpenChange: t, children: /* @__PURE__ */ l.jsxs(Sd, { className: "max-w-4xl max-h-[90vh] overflow-hidden", children: [
10105
+ return /* @__PURE__ */ l.jsx(Eb, { open: e, onOpenChange: t, children: /* @__PURE__ */ l.jsxs(Sd, { className: "max-w-4xl max-h-[90vh] overflow-hidden", children: [
10093
10106
  /* @__PURE__ */ l.jsx(Cd, { children: /* @__PURE__ */ l.jsxs("div", { className: "flex items-center justify-between", children: [
10094
10107
  /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-3", children: [
10095
10108
  g(),
@@ -10146,7 +10159,7 @@ function rc(e, t) {
10146
10159
  const n = t == null ? void 0 : t.trim();
10147
10160
  return n ? !!(e === "tool" || n.startsWith("```json") || n.length < 5e3 && (n.startsWith("{") || n.startsWith("["))) : !1;
10148
10161
  }
10149
- function Ab(e) {
10162
+ function _b(e) {
10150
10163
  let t = e;
10151
10164
  try {
10152
10165
  (t.match(/```/g) || []).length % 2 === 1 && (t += "\n```"), (t.replace(/```[\s\S]*?```/g, "").match(new RegExp("(?<!`)`(?!`)", "g")) || []).length % 2 === 1 && (t += "`");
@@ -10154,7 +10167,7 @@ function Ab(e) {
10154
10167
  }
10155
10168
  return t;
10156
10169
  }
10157
- function _b(e) {
10170
+ function jb(e) {
10158
10171
  try {
10159
10172
  const t = [], n = [], r = "\0F", o = "\0I";
10160
10173
  let s = e.replace(/```[\s\S]*?```/g, (i) => (t.push(i), `${r}${t.length - 1}\0`));
@@ -10241,17 +10254,17 @@ function Rd(e) {
10241
10254
  return Object.values(n).some((i) => i.length > 0) ? n : null;
10242
10255
  }
10243
10256
  const _o = "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", zn = 1e5;
10244
- function jb(e) {
10257
+ function Pb(e) {
10245
10258
  return e.filter((t) => t.type === "text").map((t) => t.text).join("");
10246
10259
  }
10247
- function Pb(e) {
10260
+ function Ob(e) {
10248
10261
  const t = e.find((r) => r.type === "tool_call"), n = e.find((r) => r.type === "tool_result");
10249
10262
  return {
10250
10263
  name: t == null ? void 0 : t.name,
10251
10264
  toolCallId: (n == null ? void 0 : n.toolCallId) ?? (t == null ? void 0 : t.id)
10252
10265
  };
10253
10266
  }
10254
- function Ob(e) {
10267
+ function Mb(e) {
10255
10268
  const t = e.filter((r) => r.type === "tool_call");
10256
10269
  return e.filter((r) => r.type === "tool_result").map((r) => {
10257
10270
  var o;
@@ -10262,7 +10275,7 @@ function Ob(e) {
10262
10275
  };
10263
10276
  });
10264
10277
  }
10265
- function Mb(e) {
10278
+ function Db(e) {
10266
10279
  const t = (r, o = zn) => {
10267
10280
  try {
10268
10281
  const s = Kr(r), i = typeof s == "string" ? s : JSON.stringify(s ?? "");
@@ -10279,13 +10292,13 @@ function Mb(e) {
10279
10292
  }
10280
10293
  return t(e);
10281
10294
  }
10282
- function Db(e) {
10295
+ function Lb(e) {
10283
10296
  const t = e.find((r) => r.type === "tool_result");
10284
10297
  if (!t) return null;
10285
10298
  const n = t.output;
10286
10299
  return typeof n == "string" ? n : null;
10287
10300
  }
10288
- function Lb(e) {
10301
+ function $b(e) {
10289
10302
  return e.name && e.name.trim() ? e.name : e.model && e.model.includes("/") ? e.model.split("/").pop() || null : e.model || null;
10290
10303
  }
10291
10304
  function oc(e) {
@@ -10307,7 +10320,7 @@ function oc(e) {
10307
10320
  }).join("|") : "";
10308
10321
  return `${e.id}:${t}:${n}`;
10309
10322
  }
10310
- function $b(e, t, n = 16) {
10323
+ function Fb(e, t, n = 16) {
10311
10324
  const [r, o] = fe(e), s = Je(e), i = Je(null), a = Je(null);
10312
10325
  return ut(() => {
10313
10326
  if (s.current = e, !t) {
@@ -10321,7 +10334,7 @@ function $b(e, t, n = 16) {
10321
10334
  };
10322
10335
  }, [e, t, n]), r;
10323
10336
  }
10324
- function Fb({ className: e }) {
10337
+ function zb({ className: e }) {
10325
10338
  const [t, n] = fe(0);
10326
10339
  return ut(() => {
10327
10340
  const r = setInterval(() => n((o) => (o + 1) % 4), 500);
@@ -10338,7 +10351,7 @@ function Fb({ className: e }) {
10338
10351
  }
10339
10352
  );
10340
10353
  }
10341
- const zb = F.memo(function({
10354
+ const Bb = F.memo(function({
10342
10355
  message: t,
10343
10356
  messageIndex: n,
10344
10357
  isStreamingMessage: r = !1,
@@ -10372,7 +10385,7 @@ const zb = F.memo(function({
10372
10385
  default:
10373
10386
  return "text-[hsl(var(--chat-bubble-ai-text))]";
10374
10387
  }
10375
- }, [D]), oe = Lt(() => jb(t.content), [t.content]), te = Lt(() => Pb(t.content), [t.content]), pe = Lt(
10388
+ }, [D]), oe = Lt(() => Pb(t.content), [t.content]), te = Lt(() => Ob(t.content), [t.content]), pe = Lt(
10376
10389
  () => t.content.filter((Y) => Y.type === "image_url"),
10377
10390
  [t.content]
10378
10391
  ), ke = Lt(
@@ -10381,10 +10394,10 @@ const zb = F.memo(function({
10381
10394
  ), Re = Lt(
10382
10395
  () => t.content.filter((Y) => Y.type === "interrupt"),
10383
10396
  [t.content]
10384
- ), B = Lt(() => Mb(t.content), [t.content]);
10385
- Lt(() => Db(t.content), [t.content]);
10397
+ ), B = Lt(() => Db(t.content), [t.content]);
10398
+ Lt(() => Lb(t.content), [t.content]);
10386
10399
  const N = Lt(() => B.length <= zn ? B : `${B.slice(0, zn)}
10387
- … [truncated ${B.length - zn} chars]`, [B]), H = $b(oe, r, o), ee = F.useCallback(async (Y = "all") => {
10400
+ … [truncated ${B.length - zn} chars]`, [B]), H = Fb(oe, r, o), ee = F.useCallback(async (Y = "all") => {
10388
10401
  const he = Y === "visible" && I ? N : I ? B : oe;
10389
10402
  async function Ue(Xe) {
10390
10403
  try {
@@ -10430,7 +10443,7 @@ const zb = F.memo(function({
10430
10443
  Y.preventDefault(), L((ct) => ({ ...ct, [he]: !0 }));
10431
10444
  const Ze = `${re.name}_${re.size}_${Date.now()}`, St = P({ title: "Fetching file...", description: "", open: !0 });
10432
10445
  try {
10433
- const ct = await cw(A ?? void 0);
10446
+ const ct = await uw(A ?? void 0);
10434
10447
  if (!ct || !Array.isArray(ct))
10435
10448
  throw new Error("Invalid file list response");
10436
10449
  const gt = ct.find((Ut) => !Ut || typeof Ut != "object" || !((Ut.filename ?? "") === (re.name ?? "")) ? !1 : typeof re.size == "number" && typeof Ut.size == "number" ? Ut.size === re.size : !0);
@@ -10564,7 +10577,7 @@ const zb = F.memo(function({
10564
10577
  );
10565
10578
  }
10566
10579
  return Y.type === "interrupt" ? /* @__PURE__ */ l.jsx(
10567
- Hb,
10580
+ Ub,
10568
10581
  {
10569
10582
  interruptPart: Y,
10570
10583
  onApprove: Ye,
@@ -10579,7 +10592,7 @@ const zb = F.memo(function({
10579
10592
  const re = rc(D, H) ? si(H) : null;
10580
10593
  if (re !== null)
10581
10594
  return /* @__PURE__ */ l.jsx(sc, { data: re });
10582
- const he = _b(Ab(H)), Ue = H.trim().length === 0;
10595
+ const he = jb(_b(H)), Ue = H.trim().length === 0;
10583
10596
  return /* @__PURE__ */ l.jsx(l.Fragment, { children: Ue ? /* @__PURE__ */ l.jsx("div", { className: "w-full", children: /* @__PURE__ */ l.jsxs("div", { className: "animate-pulse space-y-2", children: [
10584
10597
  /* @__PURE__ */ l.jsx("div", { className: "h-3 bg-slate-200 dark:bg-slate-700 rounded w-3/4" }),
10585
10598
  /* @__PURE__ */ l.jsx("div", { className: "h-3 bg-slate-200 dark:bg-slate-700 rounded w-5/6" }),
@@ -10631,14 +10644,14 @@ const zb = F.memo(function({
10631
10644
  if (t.model === "reflection") {
10632
10645
  const re = oe.trim(), he = si(re);
10633
10646
  if (he && typeof he == "object")
10634
- return /* @__PURE__ */ l.jsx(Ub, { data: he });
10647
+ return /* @__PURE__ */ l.jsx(Wb, { data: he });
10635
10648
  }
10636
10649
  if (I && te.name === "get_issues") {
10637
10650
  const re = t.content.find((Xe) => Xe.type === "tool_result"), he = (re == null ? void 0 : re.output) ?? B, Ue = Rd(he);
10638
- if (Ue) return /* @__PURE__ */ l.jsx(Wb, { issues: Ue });
10651
+ if (Ue) return /* @__PURE__ */ l.jsx(Vb, { issues: Ue });
10639
10652
  }
10640
10653
  if (I) {
10641
- const re = Ob(t.content);
10654
+ const re = Mb(t.content);
10642
10655
  if (re.length > 0)
10643
10656
  return /* @__PURE__ */ l.jsx("div", { className: "space-y-2", children: re.map((he, Ue) => {
10644
10657
  const Xe = typeof he.output == "string" ? he.output : Ai(he.output), Ze = Xe.length > zn ? `${Xe.slice(0, zn)}
@@ -10660,7 +10673,7 @@ const zb = F.memo(function({
10660
10673
  if (!I)
10661
10674
  return r ? /* @__PURE__ */ l.jsxs("div", { "aria-busy": "true", role: "status", children: [
10662
10675
  at(),
10663
- r && /* @__PURE__ */ l.jsx(Fb, { className: J })
10676
+ r && /* @__PURE__ */ l.jsx(zb, { className: J })
10664
10677
  ] }) : /* @__PURE__ */ l.jsx("div", { className: "space-y-2", children: t.content.map((re, he) => /* @__PURE__ */ l.jsx(it, { part: re, i: he }, he)) });
10665
10678
  }, [
10666
10679
  oe,
@@ -10677,7 +10690,7 @@ const zb = F.memo(function({
10677
10690
  at,
10678
10691
  dt,
10679
10692
  J
10680
- ]), $e = Lt(() => Lb(t), [t]);
10693
+ ]), $e = Lt(() => $b(t), [t]);
10681
10694
  return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
10682
10695
  /* @__PURE__ */ l.jsx("div", { className: Q(Ce(), b.container), children: /* @__PURE__ */ l.jsxs("div", { className: Q(we(), b.content), children: [
10683
10696
  (a || c || I) && /* @__PURE__ */ l.jsxs(
@@ -10859,7 +10872,7 @@ const zb = F.memo(function({
10859
10872
  )
10860
10873
  ] }) }),
10861
10874
  W && /* @__PURE__ */ l.jsx(
10862
- Nb,
10875
+ Ab,
10863
10876
  {
10864
10877
  isOpen: q,
10865
10878
  onClose: () => {
@@ -10914,12 +10927,12 @@ function sc({ data: e }) {
10914
10927
  s,
10915
10928
  ":"
10916
10929
  ] }),
10917
- /* @__PURE__ */ l.jsx("dd", { className: "inline", children: Bb(i) })
10930
+ /* @__PURE__ */ l.jsx("dd", { className: "inline", children: Hb(i) })
10918
10931
  ] }, s)) }) });
10919
10932
  }
10920
10933
  return /* @__PURE__ */ l.jsx("pre", { className: "font-mono text-xs bg-background/50 rounded border p-2 whitespace-pre-wrap break-words", children: Ai(e) });
10921
10934
  }
10922
- function Bb(e) {
10935
+ function Hb(e) {
10923
10936
  if (e == null) return String(e);
10924
10937
  const t = typeof e;
10925
10938
  if (t === "string" || t === "number" || t === "boolean") return String(e);
@@ -10931,7 +10944,7 @@ function Bb(e) {
10931
10944
  return String(e);
10932
10945
  }
10933
10946
  }
10934
- function Hb({
10947
+ function Ub({
10935
10948
  interruptPart: e,
10936
10949
  onApprove: t,
10937
10950
  onReject: n
@@ -10965,7 +10978,7 @@ function Hb({
10965
10978
  ] }) })
10966
10979
  ] });
10967
10980
  }
10968
- function Ub({ data: e }) {
10981
+ function Wb({ data: e }) {
10969
10982
  return /* @__PURE__ */ l.jsx("dl", { className: "grid grid-cols-1 gap-y-2", children: Object.entries(e).map(([t, n]) => /* @__PURE__ */ l.jsxs("div", { className: "flex", children: [
10970
10983
  /* @__PURE__ */ l.jsxs("dt", { className: "font-semibold mr-2", children: [
10971
10984
  t,
@@ -10977,7 +10990,7 @@ function Ub({ data: e }) {
10977
10990
  ] }, o)) : String(n) })
10978
10991
  ] }, t)) });
10979
10992
  }
10980
- function Wb({ issues: e }) {
10993
+ function Vb({ issues: e }) {
10981
10994
  const t = [
10982
10995
  { key: "desirability", title: "Desirability" },
10983
10996
  { key: "feasibility", title: "Feasibility" },
@@ -11036,7 +11049,7 @@ const ic = (e, t) => (e == null ? void 0 : e.id) ?? `message-${t}`, Ed = F.forwa
11036
11049
  };
11037
11050
  }, [a]), P = Lt(() => !b || w ? !1 : C ? "auto" : !1, [C, b, w]);
11038
11051
  return e.length === 0 ? /* @__PURE__ */ l.jsx("div", { className: f, style: h, children: /* @__PURE__ */ l.jsx("div", { className: "flex items-center justify-center py-8 text-muted-foreground text-center max-w-md mx-auto", children: m || "No messages yet. Start a conversation!" }) }) : /* @__PURE__ */ l.jsx("div", { className: f, style: h, children: /* @__PURE__ */ l.jsx(
11039
- fv,
11052
+ hv,
11040
11053
  {
11041
11054
  ref: (_) => {
11042
11055
  y.current = _;
@@ -11069,7 +11082,7 @@ const ic = (e, t) => (e == null ? void 0 : e.id) ?? `message-${t}`, Ed = F.forwa
11069
11082
  containIntrinsicSize: "auto 120px"
11070
11083
  },
11071
11084
  children: /* @__PURE__ */ l.jsx(
11072
- zb,
11085
+ Bb,
11073
11086
  {
11074
11087
  message: L,
11075
11088
  messageIndex: _,
@@ -11095,7 +11108,7 @@ const ic = (e, t) => (e == null ? void 0 : e.id) ?? `message-${t}`, Ed = F.forwa
11095
11108
  });
11096
11109
  Ed.displayName = "MessageList";
11097
11110
  const jo = 1e4;
11098
- function Vb(e) {
11111
+ function Kb(e) {
11099
11112
  if (typeof e != "string")
11100
11113
  return String(e);
11101
11114
  const t = [
@@ -11122,16 +11135,16 @@ function Vb(e) {
11122
11135
  `).replace(/<li>(.*?)<\/li>/gi, `- $1
11123
11136
  `).trim() : n.replace(/</g, "&lt;").replace(/>/g, "&gt;").trim();
11124
11137
  }
11125
- function Kb(e, t = jo) {
11138
+ function qb(e, t = jo) {
11126
11139
  if (!e || typeof e != "string")
11127
11140
  throw new Error("Invalid content: must be a non-empty string");
11128
11141
  if (e.length > t)
11129
11142
  throw new Error(`Message exceeds maximum length of ${t} characters`);
11130
11143
  return e;
11131
11144
  }
11132
- function qb(e) {
11145
+ function Gb(e) {
11133
11146
  let t;
11134
- return typeof e == "string" ? t = e : typeof e == "object" && e !== null ? t = JSON.stringify(e) : t = String(e), Kb(t), Vb(t);
11147
+ return typeof e == "string" ? t = e : typeof e == "object" && e !== null ? t = JSON.stringify(e) : t = String(e), qb(t), Kb(t);
11135
11148
  }
11136
11149
  function wa(e) {
11137
11150
  const t = e + "CollectionProvider", [n, r] = xn(t), [o, s] = n(
@@ -11173,20 +11186,20 @@ function wa(e) {
11173
11186
  r
11174
11187
  ];
11175
11188
  }
11176
- var Gb = p.createContext(void 0);
11189
+ var Yb = p.createContext(void 0);
11177
11190
  function Ss(e) {
11178
- const t = p.useContext(Gb);
11191
+ const t = p.useContext(Yb);
11179
11192
  return e || t || "ltr";
11180
11193
  }
11181
- const Yb = ["top", "right", "bottom", "left"], An = Math.min, $t = Math.max, Wo = Math.round, vo = Math.floor, pn = (e) => ({
11194
+ const Xb = ["top", "right", "bottom", "left"], An = Math.min, $t = Math.max, Wo = Math.round, vo = Math.floor, pn = (e) => ({
11182
11195
  x: e,
11183
11196
  y: e
11184
- }), Xb = {
11197
+ }), Jb = {
11185
11198
  left: "right",
11186
11199
  right: "left",
11187
11200
  bottom: "top",
11188
11201
  top: "bottom"
11189
- }, Jb = {
11202
+ }, Zb = {
11190
11203
  start: "end",
11191
11204
  end: "start"
11192
11205
  };
@@ -11208,48 +11221,48 @@ function ba(e) {
11208
11221
  function ya(e) {
11209
11222
  return e === "y" ? "height" : "width";
11210
11223
  }
11211
- const Zb = /* @__PURE__ */ new Set(["top", "bottom"]);
11224
+ const Qb = /* @__PURE__ */ new Set(["top", "bottom"]);
11212
11225
  function fn(e) {
11213
- return Zb.has(Cn(e)) ? "y" : "x";
11226
+ return Qb.has(Cn(e)) ? "y" : "x";
11214
11227
  }
11215
11228
  function Sa(e) {
11216
11229
  return ba(fn(e));
11217
11230
  }
11218
- function Qb(e, t, n) {
11231
+ function ey(e, t, n) {
11219
11232
  n === void 0 && (n = !1);
11220
11233
  const r = kr(e), o = Sa(e), s = ya(o);
11221
11234
  let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
11222
11235
  return t.reference[s] > t.floating[s] && (i = Vo(i)), [i, Vo(i)];
11223
11236
  }
11224
- function ey(e) {
11237
+ function ty(e) {
11225
11238
  const t = Vo(e);
11226
11239
  return [ji(e), t, ji(t)];
11227
11240
  }
11228
11241
  function ji(e) {
11229
- return e.replace(/start|end/g, (t) => Jb[t]);
11242
+ return e.replace(/start|end/g, (t) => Zb[t]);
11230
11243
  }
11231
- const ac = ["left", "right"], lc = ["right", "left"], ty = ["top", "bottom"], ny = ["bottom", "top"];
11232
- function ry(e, t, n) {
11244
+ const ac = ["left", "right"], lc = ["right", "left"], ny = ["top", "bottom"], ry = ["bottom", "top"];
11245
+ function oy(e, t, n) {
11233
11246
  switch (e) {
11234
11247
  case "top":
11235
11248
  case "bottom":
11236
11249
  return n ? t ? lc : ac : t ? ac : lc;
11237
11250
  case "left":
11238
11251
  case "right":
11239
- return t ? ty : ny;
11252
+ return t ? ny : ry;
11240
11253
  default:
11241
11254
  return [];
11242
11255
  }
11243
11256
  }
11244
- function oy(e, t, n, r) {
11257
+ function sy(e, t, n, r) {
11245
11258
  const o = kr(e);
11246
- let s = ry(Cn(e), n === "start", r);
11259
+ let s = oy(Cn(e), n === "start", r);
11247
11260
  return o && (s = s.map((i) => i + "-" + o), t && (s = s.concat(s.map(ji)))), s;
11248
11261
  }
11249
11262
  function Vo(e) {
11250
- return e.replace(/left|right|bottom|top/g, (t) => Xb[t]);
11263
+ return e.replace(/left|right|bottom|top/g, (t) => Jb[t]);
11251
11264
  }
11252
- function sy(e) {
11265
+ function iy(e) {
11253
11266
  return {
11254
11267
  top: 0,
11255
11268
  right: 0,
@@ -11259,7 +11272,7 @@ function sy(e) {
11259
11272
  };
11260
11273
  }
11261
11274
  function Id(e) {
11262
- return typeof e != "number" ? sy(e) : {
11275
+ return typeof e != "number" ? iy(e) : {
11263
11276
  top: e,
11264
11277
  right: e,
11265
11278
  bottom: e,
@@ -11332,7 +11345,7 @@ function cc(e, t, n) {
11332
11345
  }
11333
11346
  return m;
11334
11347
  }
11335
- const iy = async (e, t, n) => {
11348
+ const ay = async (e, t, n) => {
11336
11349
  const {
11337
11350
  placement: r = "bottom",
11338
11351
  strategy: o = "absolute",
@@ -11438,7 +11451,7 @@ async function qr(e, t) {
11438
11451
  right: (S.right - x.right + b.right) / k.x
11439
11452
  };
11440
11453
  }
11441
- const ay = (e) => ({
11454
+ const ly = (e) => ({
11442
11455
  name: "arrow",
11443
11456
  options: e,
11444
11457
  async fn(t) {
@@ -11475,7 +11488,7 @@ const ay = (e) => ({
11475
11488
  reset: U
11476
11489
  };
11477
11490
  }
11478
- }), ly = function(e) {
11491
+ }), cy = function(e) {
11479
11492
  return e === void 0 && (e = {}), {
11480
11493
  name: "flip",
11481
11494
  options: e,
@@ -11499,12 +11512,12 @@ const ay = (e) => ({
11499
11512
  } = Sn(e, t);
11500
11513
  if ((n = s.arrow) != null && n.alignmentOffset)
11501
11514
  return {};
11502
- const x = Cn(o), v = fn(a), y = Cn(a) === a, k = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), S = h || (y || !w ? [Vo(a)] : ey(a)), C = b !== "none";
11503
- !h && C && S.push(...oy(a, w, b, k));
11515
+ const x = Cn(o), v = fn(a), y = Cn(a) === a, k = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), S = h || (y || !w ? [Vo(a)] : ty(a)), C = b !== "none";
11516
+ !h && C && S.push(...sy(a, w, b, k));
11504
11517
  const R = [a, ...S], E = await qr(t, g), A = [];
11505
11518
  let P = ((r = s.flip) == null ? void 0 : r.overflows) || [];
11506
11519
  if (d && A.push(E[x]), f) {
11507
- const O = Qb(o, i, k);
11520
+ const O = ey(o, i, k);
11508
11521
  A.push(E[O[0]], E[O[1]]);
11509
11522
  }
11510
11523
  if (P = [...P, {
@@ -11566,9 +11579,9 @@ function uc(e, t) {
11566
11579
  };
11567
11580
  }
11568
11581
  function dc(e) {
11569
- return Yb.some((t) => e[t] >= 0);
11582
+ return Xb.some((t) => e[t] >= 0);
11570
11583
  }
11571
- const cy = function(e) {
11584
+ const uy = function(e) {
11572
11585
  return e === void 0 && (e = {}), {
11573
11586
  name: "hide",
11574
11587
  options: e,
@@ -11610,7 +11623,7 @@ const cy = function(e) {
11610
11623
  }
11611
11624
  };
11612
11625
  }, Nd = /* @__PURE__ */ new Set(["left", "top"]);
11613
- async function uy(e, t) {
11626
+ async function dy(e, t) {
11614
11627
  const {
11615
11628
  placement: n,
11616
11629
  platform: r,
@@ -11637,7 +11650,7 @@ async function uy(e, t) {
11637
11650
  y: m * d
11638
11651
  };
11639
11652
  }
11640
- const dy = function(e) {
11653
+ const fy = function(e) {
11641
11654
  return e === void 0 && (e = 0), {
11642
11655
  name: "offset",
11643
11656
  options: e,
@@ -11648,7 +11661,7 @@ const dy = function(e) {
11648
11661
  y: s,
11649
11662
  placement: i,
11650
11663
  middlewareData: a
11651
- } = t, c = await uy(t, e);
11664
+ } = t, c = await dy(t, e);
11652
11665
  return i === ((n = a.offset) == null ? void 0 : n.placement) && (r = a.arrow) != null && r.alignmentOffset ? {} : {
11653
11666
  x: o + c.x,
11654
11667
  y: s + c.y,
@@ -11659,7 +11672,7 @@ const dy = function(e) {
11659
11672
  };
11660
11673
  }
11661
11674
  };
11662
- }, fy = function(e) {
11675
+ }, hy = function(e) {
11663
11676
  return e === void 0 && (e = {}), {
11664
11677
  name: "shift",
11665
11678
  options: e,
@@ -11715,7 +11728,7 @@ const dy = function(e) {
11715
11728
  };
11716
11729
  }
11717
11730
  };
11718
- }, hy = function(e) {
11731
+ }, py = function(e) {
11719
11732
  return e === void 0 && (e = {}), {
11720
11733
  options: e,
11721
11734
  fn(t) {
@@ -11757,7 +11770,7 @@ const dy = function(e) {
11757
11770
  };
11758
11771
  }
11759
11772
  };
11760
- }, py = function(e) {
11773
+ }, my = function(e) {
11761
11774
  return e === void 0 && (e = {}), {
11762
11775
  name: "size",
11763
11776
  options: e,
@@ -11824,7 +11837,7 @@ function mn(e) {
11824
11837
  function fc(e) {
11825
11838
  return !Cs() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Bt(e).ShadowRoot;
11826
11839
  }
11827
- const my = /* @__PURE__ */ new Set(["inline", "contents"]);
11840
+ const gy = /* @__PURE__ */ new Set(["inline", "contents"]);
11828
11841
  function oo(e) {
11829
11842
  const {
11830
11843
  overflow: t,
@@ -11832,15 +11845,15 @@ function oo(e) {
11832
11845
  overflowY: r,
11833
11846
  display: o
11834
11847
  } = rn(e);
11835
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !my.has(o);
11848
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !gy.has(o);
11836
11849
  }
11837
- const gy = /* @__PURE__ */ new Set(["table", "td", "th"]);
11838
- function xy(e) {
11839
- return gy.has(Rr(e));
11850
+ const xy = /* @__PURE__ */ new Set(["table", "td", "th"]);
11851
+ function vy(e) {
11852
+ return xy.has(Rr(e));
11840
11853
  }
11841
- const vy = [":popover-open", ":modal"];
11854
+ const wy = [":popover-open", ":modal"];
11842
11855
  function Ts(e) {
11843
- return vy.some((t) => {
11856
+ return wy.some((t) => {
11844
11857
  try {
11845
11858
  return e.matches(t);
11846
11859
  } catch {
@@ -11848,12 +11861,12 @@ function Ts(e) {
11848
11861
  }
11849
11862
  });
11850
11863
  }
11851
- const wy = ["transform", "translate", "scale", "rotate", "perspective"], by = ["transform", "translate", "scale", "rotate", "perspective", "filter"], yy = ["paint", "layout", "strict", "content"];
11864
+ const by = ["transform", "translate", "scale", "rotate", "perspective"], yy = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Sy = ["paint", "layout", "strict", "content"];
11852
11865
  function Ca(e) {
11853
11866
  const t = Ta(), n = nn(e) ? rn(e) : e;
11854
- return wy.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) || by.some((r) => (n.willChange || "").includes(r)) || yy.some((r) => (n.contain || "").includes(r));
11867
+ return by.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) || yy.some((r) => (n.willChange || "").includes(r)) || Sy.some((r) => (n.contain || "").includes(r));
11855
11868
  }
11856
- function Sy(e) {
11869
+ function Cy(e) {
11857
11870
  let t = _n(e);
11858
11871
  for (; mn(t) && !wr(t); ) {
11859
11872
  if (Ca(t))
@@ -11867,9 +11880,9 @@ function Sy(e) {
11867
11880
  function Ta() {
11868
11881
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
11869
11882
  }
11870
- const Cy = /* @__PURE__ */ new Set(["html", "body", "#document"]);
11883
+ const Ty = /* @__PURE__ */ new Set(["html", "body", "#document"]);
11871
11884
  function wr(e) {
11872
- return Cy.has(Rr(e));
11885
+ return Ty.has(Rr(e));
11873
11886
  }
11874
11887
  function rn(e) {
11875
11888
  return Bt(e).getComputedStyle(e);
@@ -11940,15 +11953,15 @@ function mr(e) {
11940
11953
  y: a
11941
11954
  };
11942
11955
  }
11943
- const Ty = /* @__PURE__ */ pn(0);
11956
+ const ky = /* @__PURE__ */ pn(0);
11944
11957
  function Pd(e) {
11945
11958
  const t = Bt(e);
11946
- return !Ta() || !t.visualViewport ? Ty : {
11959
+ return !Ta() || !t.visualViewport ? ky : {
11947
11960
  x: t.visualViewport.offsetLeft,
11948
11961
  y: t.visualViewport.offsetTop
11949
11962
  };
11950
11963
  }
11951
- function ky(e, t, n) {
11964
+ function Ry(e, t, n) {
11952
11965
  return t === void 0 && (t = !1), !n || t && n !== Bt(e) ? !1 : t;
11953
11966
  }
11954
11967
  function Jn(e, t, n, r) {
@@ -11956,7 +11969,7 @@ function Jn(e, t, n, r) {
11956
11969
  const o = e.getBoundingClientRect(), s = ka(e);
11957
11970
  let i = pn(1);
11958
11971
  t && (r ? nn(r) && (i = mr(r)) : i = mr(e));
11959
- const a = ky(s, n, r) ? Pd(s) : pn(0);
11972
+ const a = Ry(s, n, r) ? Pd(s) : pn(0);
11960
11973
  let c = (o.left + a.x) / i.x, u = (o.top + a.y) / i.y, d = o.width / i.x, f = o.height / i.y;
11961
11974
  if (s) {
11962
11975
  const h = Bt(s), m = r && nn(r) ? Bt(r) : r;
@@ -11988,7 +12001,7 @@ function Od(e, t, n) {
11988
12001
  y: s
11989
12002
  };
11990
12003
  }
11991
- function Ry(e) {
12004
+ function Ey(e) {
11992
12005
  let {
11993
12006
  elements: t,
11994
12007
  rect: n,
@@ -12015,10 +12028,10 @@ function Ry(e) {
12015
12028
  y: n.y * u.y - c.scrollTop * u.y + d.y + h.y
12016
12029
  };
12017
12030
  }
12018
- function Ey(e) {
12031
+ function Iy(e) {
12019
12032
  return Array.from(e.getClientRects());
12020
12033
  }
12021
- function Iy(e) {
12034
+ function Ny(e) {
12022
12035
  const t = vn(e), n = ks(e), r = e.ownerDocument.body, o = $t(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = $t(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
12023
12036
  let i = -n.scrollLeft + Ra(e);
12024
12037
  const a = -n.scrollTop;
@@ -12029,7 +12042,7 @@ function Iy(e) {
12029
12042
  y: a
12030
12043
  };
12031
12044
  }
12032
- function Ny(e, t) {
12045
+ function Ay(e, t) {
12033
12046
  const n = Bt(e), r = vn(e), o = n.visualViewport;
12034
12047
  let s = r.clientWidth, i = r.clientHeight, a = 0, c = 0;
12035
12048
  if (o) {
@@ -12044,8 +12057,8 @@ function Ny(e, t) {
12044
12057
  y: c
12045
12058
  };
12046
12059
  }
12047
- const Ay = /* @__PURE__ */ new Set(["absolute", "fixed"]);
12048
- function _y(e, t) {
12060
+ const _y = /* @__PURE__ */ new Set(["absolute", "fixed"]);
12061
+ function jy(e, t) {
12049
12062
  const n = Jn(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = mn(e) ? mr(e) : pn(1), i = e.clientWidth * s.x, a = e.clientHeight * s.y, c = o * s.x, u = r * s.y;
12050
12063
  return {
12051
12064
  width: i,
@@ -12057,11 +12070,11 @@ function _y(e, t) {
12057
12070
  function hc(e, t, n) {
12058
12071
  let r;
12059
12072
  if (t === "viewport")
12060
- r = Ny(e, n);
12073
+ r = Ay(e, n);
12061
12074
  else if (t === "document")
12062
- r = Iy(vn(e));
12075
+ r = Ny(vn(e));
12063
12076
  else if (nn(t))
12064
- r = _y(t, n);
12077
+ r = jy(t, n);
12065
12078
  else {
12066
12079
  const o = Pd(e);
12067
12080
  r = {
@@ -12077,7 +12090,7 @@ function Md(e, t) {
12077
12090
  const n = _n(e);
12078
12091
  return n === t || !nn(n) || wr(n) ? !1 : rn(n).position === "fixed" || Md(n, t);
12079
12092
  }
12080
- function jy(e, t) {
12093
+ function Py(e, t) {
12081
12094
  const n = t.get(e);
12082
12095
  if (n)
12083
12096
  return n;
@@ -12086,18 +12099,18 @@ function jy(e, t) {
12086
12099
  let i = s ? _n(e) : e;
12087
12100
  for (; nn(i) && !wr(i); ) {
12088
12101
  const a = rn(i), c = Ca(i);
12089
- !c && a.position === "fixed" && (o = null), (s ? !c && !o : !c && a.position === "static" && !!o && Ay.has(o.position) || oo(i) && !c && Md(e, i)) ? r = r.filter((d) => d !== i) : o = a, i = _n(i);
12102
+ !c && a.position === "fixed" && (o = null), (s ? !c && !o : !c && a.position === "static" && !!o && _y.has(o.position) || oo(i) && !c && Md(e, i)) ? r = r.filter((d) => d !== i) : o = a, i = _n(i);
12090
12103
  }
12091
12104
  return t.set(e, r), r;
12092
12105
  }
12093
- function Py(e) {
12106
+ function Oy(e) {
12094
12107
  let {
12095
12108
  element: t,
12096
12109
  boundary: n,
12097
12110
  rootBoundary: r,
12098
12111
  strategy: o
12099
12112
  } = e;
12100
- const i = [...n === "clippingAncestors" ? Ts(t) ? [] : jy(t, this._c) : [].concat(n), r], a = i[0], c = i.reduce((u, d) => {
12113
+ const i = [...n === "clippingAncestors" ? Ts(t) ? [] : Py(t, this._c) : [].concat(n), r], a = i[0], c = i.reduce((u, d) => {
12101
12114
  const f = hc(t, d, o);
12102
12115
  return u.top = $t(f.top, u.top), u.right = An(f.right, u.right), u.bottom = An(f.bottom, u.bottom), u.left = $t(f.left, u.left), u;
12103
12116
  }, hc(t, a, o));
@@ -12108,7 +12121,7 @@ function Py(e) {
12108
12121
  y: c.top
12109
12122
  };
12110
12123
  }
12111
- function Oy(e) {
12124
+ function My(e) {
12112
12125
  const {
12113
12126
  width: t,
12114
12127
  height: n
@@ -12118,7 +12131,7 @@ function Oy(e) {
12118
12131
  height: n
12119
12132
  };
12120
12133
  }
12121
- function My(e, t, n) {
12134
+ function Dy(e, t, n) {
12122
12135
  const r = mn(t), o = vn(t), s = n === "fixed", i = Jn(e, !0, s, t);
12123
12136
  let a = {
12124
12137
  scrollLeft: 0,
@@ -12167,14 +12180,14 @@ function Dd(e, t) {
12167
12180
  return n;
12168
12181
  }
12169
12182
  let r = pc(e, t);
12170
- for (; r && xy(r) && ii(r); )
12183
+ for (; r && vy(r) && ii(r); )
12171
12184
  r = pc(r, t);
12172
- return r && wr(r) && ii(r) && !Ca(r) ? n : r || Sy(e) || n;
12185
+ return r && wr(r) && ii(r) && !Ca(r) ? n : r || Cy(e) || n;
12173
12186
  }
12174
- const Dy = async function(e) {
12187
+ const Ly = async function(e) {
12175
12188
  const t = this.getOffsetParent || Dd, n = this.getDimensions, r = await n(e.floating);
12176
12189
  return {
12177
- reference: My(e.reference, await t(e.floating), e.strategy),
12190
+ reference: Dy(e.reference, await t(e.floating), e.strategy),
12178
12191
  floating: {
12179
12192
  x: 0,
12180
12193
  y: 0,
@@ -12183,25 +12196,25 @@ const Dy = async function(e) {
12183
12196
  }
12184
12197
  };
12185
12198
  };
12186
- function Ly(e) {
12199
+ function $y(e) {
12187
12200
  return rn(e).direction === "rtl";
12188
12201
  }
12189
- const $y = {
12190
- convertOffsetParentRelativeRectToViewportRelativeRect: Ry,
12202
+ const Fy = {
12203
+ convertOffsetParentRelativeRectToViewportRelativeRect: Ey,
12191
12204
  getDocumentElement: vn,
12192
- getClippingRect: Py,
12205
+ getClippingRect: Oy,
12193
12206
  getOffsetParent: Dd,
12194
- getElementRects: Dy,
12195
- getClientRects: Ey,
12196
- getDimensions: Oy,
12207
+ getElementRects: Ly,
12208
+ getClientRects: Iy,
12209
+ getDimensions: My,
12197
12210
  getScale: mr,
12198
12211
  isElement: nn,
12199
- isRTL: Ly
12212
+ isRTL: $y
12200
12213
  };
12201
12214
  function Ld(e, t) {
12202
12215
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
12203
12216
  }
12204
- function Fy(e, t) {
12217
+ function zy(e, t) {
12205
12218
  let n = null, r;
12206
12219
  const o = vn(e);
12207
12220
  function s() {
@@ -12247,7 +12260,7 @@ function Fy(e, t) {
12247
12260
  }
12248
12261
  return i(!0), s;
12249
12262
  }
12250
- function zy(e, t, n, r) {
12263
+ function By(e, t, n, r) {
12251
12264
  r === void 0 && (r = {});
12252
12265
  const {
12253
12266
  ancestorScroll: o = !0,
@@ -12261,7 +12274,7 @@ function zy(e, t, n, r) {
12261
12274
  passive: !0
12262
12275
  }), s && x.addEventListener("resize", n);
12263
12276
  });
12264
- const f = u && a ? Fy(u, n) : null;
12277
+ const f = u && a ? zy(u, n) : null;
12265
12278
  let h = -1, m = null;
12266
12279
  i && (m = new ResizeObserver((x) => {
12267
12280
  let [v] = x;
@@ -12283,21 +12296,21 @@ function zy(e, t, n, r) {
12283
12296
  }), f == null || f(), (x = m) == null || x.disconnect(), m = null, c && cancelAnimationFrame(b);
12284
12297
  };
12285
12298
  }
12286
- const By = dy, Hy = fy, Uy = ly, Wy = py, Vy = cy, mc = ay, Ky = hy, qy = (e, t, n) => {
12299
+ const Hy = fy, Uy = hy, Wy = cy, Vy = my, Ky = uy, mc = ly, qy = py, Gy = (e, t, n) => {
12287
12300
  const r = /* @__PURE__ */ new Map(), o = {
12288
- platform: $y,
12301
+ platform: Fy,
12289
12302
  ...n
12290
12303
  }, s = {
12291
12304
  ...o.platform,
12292
12305
  _c: r
12293
12306
  };
12294
- return iy(e, t, {
12307
+ return ay(e, t, {
12295
12308
  ...o,
12296
12309
  platform: s
12297
12310
  });
12298
12311
  };
12299
- var Gy = typeof document < "u", Yy = function() {
12300
- }, Po = Gy ? Ep : Yy;
12312
+ var Yy = typeof document < "u", Xy = function() {
12313
+ }, Po = Yy ? Ep : Xy;
12301
12314
  function qo(e, t) {
12302
12315
  if (e === t)
12303
12316
  return !0;
@@ -12341,7 +12354,7 @@ function ai(e) {
12341
12354
  t.current = e;
12342
12355
  }), t;
12343
12356
  }
12344
- function Xy(e) {
12357
+ function Jy(e) {
12345
12358
  e === void 0 && (e = {});
12346
12359
  const {
12347
12360
  placement: t = "bottom",
@@ -12376,7 +12389,7 @@ function Xy(e) {
12376
12389
  strategy: n,
12377
12390
  middleware: h
12378
12391
  };
12379
- _.current && (D.platform = _.current), qy(C.current, R.current, D).then((I) => {
12392
+ _.current && (D.platform = _.current), Gy(C.current, R.current, D).then((I) => {
12380
12393
  const K = {
12381
12394
  ...I,
12382
12395
  // The floating element's position may be recomputed while it's closed
@@ -12443,7 +12456,7 @@ function Xy(e) {
12443
12456
  floatingStyles: V
12444
12457
  }), [d, q, W, U, V]);
12445
12458
  }
12446
- const Jy = (e) => {
12459
+ const Zy = (e) => {
12447
12460
  function t(n) {
12448
12461
  return {}.hasOwnProperty.call(n, "current");
12449
12462
  }
@@ -12464,17 +12477,14 @@ const Jy = (e) => {
12464
12477
  }).fn(n) : {};
12465
12478
  }
12466
12479
  };
12467
- }, Zy = (e, t) => ({
12468
- ...By(e),
12469
- options: [e, t]
12470
- }), Qy = (e, t) => ({
12480
+ }, Qy = (e, t) => ({
12471
12481
  ...Hy(e),
12472
12482
  options: [e, t]
12473
12483
  }), e0 = (e, t) => ({
12474
- ...Ky(e),
12484
+ ...Uy(e),
12475
12485
  options: [e, t]
12476
12486
  }), t0 = (e, t) => ({
12477
- ...Uy(e),
12487
+ ...qy(e),
12478
12488
  options: [e, t]
12479
12489
  }), n0 = (e, t) => ({
12480
12490
  ...Wy(e),
@@ -12483,10 +12493,13 @@ const Jy = (e) => {
12483
12493
  ...Vy(e),
12484
12494
  options: [e, t]
12485
12495
  }), o0 = (e, t) => ({
12486
- ...Jy(e),
12496
+ ...Ky(e),
12497
+ options: [e, t]
12498
+ }), s0 = (e, t) => ({
12499
+ ...Zy(e),
12487
12500
  options: [e, t]
12488
12501
  });
12489
- var s0 = "Arrow", Fd = p.forwardRef((e, t) => {
12502
+ var i0 = "Arrow", Fd = p.forwardRef((e, t) => {
12490
12503
  const { children: n, width: r = 10, height: o = 5, ...s } = e;
12491
12504
  return /* @__PURE__ */ l.jsx(
12492
12505
  Se.svg,
@@ -12501,8 +12514,8 @@ var s0 = "Arrow", Fd = p.forwardRef((e, t) => {
12501
12514
  }
12502
12515
  );
12503
12516
  });
12504
- Fd.displayName = s0;
12505
- var i0 = Fd;
12517
+ Fd.displayName = i0;
12518
+ var a0 = Fd;
12506
12519
  function zd(e) {
12507
12520
  const [t, n] = p.useState(void 0);
12508
12521
  return Ct(() => {
@@ -12525,9 +12538,9 @@ function zd(e) {
12525
12538
  n(void 0);
12526
12539
  }, [e]), t;
12527
12540
  }
12528
- var Ea = "Popper", [Bd, Rs] = xn(Ea), [a0, Hd] = Bd(Ea), Ud = (e) => {
12541
+ var Ea = "Popper", [Bd, Rs] = xn(Ea), [l0, Hd] = Bd(Ea), Ud = (e) => {
12529
12542
  const { __scopePopper: t, children: n } = e, [r, o] = p.useState(null);
12530
- return /* @__PURE__ */ l.jsx(a0, { scope: t, anchor: r, onAnchorChange: o, children: n });
12543
+ return /* @__PURE__ */ l.jsx(l0, { scope: t, anchor: r, onAnchorChange: o, children: n });
12531
12544
  };
12532
12545
  Ud.displayName = Ea;
12533
12546
  var Wd = "PopperAnchor", Vd = p.forwardRef(
@@ -12540,7 +12553,7 @@ var Wd = "PopperAnchor", Vd = p.forwardRef(
12540
12553
  }
12541
12554
  );
12542
12555
  Vd.displayName = Wd;
12543
- var Ia = "PopperContent", [l0, c0] = Bd(Ia), Kd = p.forwardRef(
12556
+ var Ia = "PopperContent", [c0, u0] = Bd(Ia), Kd = p.forwardRef(
12544
12557
  (e, t) => {
12545
12558
  var B, N, H, ee, ce, le;
12546
12559
  const {
@@ -12560,38 +12573,38 @@ var Ia = "PopperContent", [l0, c0] = Bd(Ia), Kd = p.forwardRef(
12560
12573
  ...w
12561
12574
  } = e, g = Hd(Ia, n), [x, v] = p.useState(null), y = Me(t, (Pe) => v(Pe)), [k, S] = p.useState(null), C = zd(k), R = (C == null ? void 0 : C.width) ?? 0, E = (C == null ? void 0 : C.height) ?? 0, A = r + (s !== "center" ? "-" + s : ""), P = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, _ = Array.isArray(u) ? u : [u], L = _.length > 0, q = {
12562
12575
  padding: P,
12563
- boundary: _.filter(d0),
12576
+ boundary: _.filter(f0),
12564
12577
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
12565
12578
  altBoundary: L
12566
- }, { refs: O, floatingStyles: W, placement: U, isPositioned: V, middlewareData: D } = Xy({
12579
+ }, { refs: O, floatingStyles: W, placement: U, isPositioned: V, middlewareData: D } = Jy({
12567
12580
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
12568
12581
  strategy: "fixed",
12569
12582
  placement: A,
12570
- whileElementsMounted: (...Pe) => zy(...Pe, {
12583
+ whileElementsMounted: (...Pe) => By(...Pe, {
12571
12584
  animationFrame: m === "always"
12572
12585
  }),
12573
12586
  elements: {
12574
12587
  reference: g.anchor
12575
12588
  },
12576
12589
  middleware: [
12577
- Zy({ mainAxis: o + E, alignmentAxis: i }),
12578
- c && Qy({
12590
+ Qy({ mainAxis: o + E, alignmentAxis: i }),
12591
+ c && e0({
12579
12592
  mainAxis: !0,
12580
12593
  crossAxis: !1,
12581
- limiter: f === "partial" ? e0() : void 0,
12594
+ limiter: f === "partial" ? t0() : void 0,
12582
12595
  ...q
12583
12596
  }),
12584
- c && t0({ ...q }),
12585
- n0({
12597
+ c && n0({ ...q }),
12598
+ r0({
12586
12599
  ...q,
12587
12600
  apply: ({ elements: Pe, rects: Ge, availableWidth: Ce, availableHeight: we }) => {
12588
12601
  const { width: He, height: Ye } = Ge.reference, De = Pe.floating.style;
12589
12602
  De.setProperty("--radix-popper-available-width", `${Ce}px`), De.setProperty("--radix-popper-available-height", `${we}px`), De.setProperty("--radix-popper-anchor-width", `${He}px`), De.setProperty("--radix-popper-anchor-height", `${Ye}px`);
12590
12603
  }
12591
12604
  }),
12592
- k && o0({ element: k, padding: a }),
12593
- f0({ arrowWidth: R, arrowHeight: E }),
12594
- h && r0({ strategy: "referenceHidden", ...q })
12605
+ k && s0({ element: k, padding: a }),
12606
+ h0({ arrowWidth: R, arrowHeight: E }),
12607
+ h && o0({ strategy: "referenceHidden", ...q })
12595
12608
  ]
12596
12609
  }), [I, K] = Yd(U), J = Tt(b);
12597
12610
  Ct(() => {
@@ -12625,7 +12638,7 @@ var Ia = "PopperContent", [l0, c0] = Bd(Ia), Kd = p.forwardRef(
12625
12638
  },
12626
12639
  dir: e.dir,
12627
12640
  children: /* @__PURE__ */ l.jsx(
12628
- l0,
12641
+ c0,
12629
12642
  {
12630
12643
  scope: n,
12631
12644
  placedSide: I,
@@ -12655,13 +12668,13 @@ var Ia = "PopperContent", [l0, c0] = Bd(Ia), Kd = p.forwardRef(
12655
12668
  }
12656
12669
  );
12657
12670
  Kd.displayName = Ia;
12658
- var qd = "PopperArrow", u0 = {
12671
+ var qd = "PopperArrow", d0 = {
12659
12672
  top: "bottom",
12660
12673
  right: "left",
12661
12674
  bottom: "top",
12662
12675
  left: "right"
12663
12676
  }, Gd = p.forwardRef(function(t, n) {
12664
- const { __scopePopper: r, ...o } = t, s = c0(qd, r), i = u0[s.placedSide];
12677
+ const { __scopePopper: r, ...o } = t, s = u0(qd, r), i = d0[s.placedSide];
12665
12678
  return (
12666
12679
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
12667
12680
  // doesn't report size as we'd expect on SVG elements.
@@ -12690,7 +12703,7 @@ var qd = "PopperArrow", u0 = {
12690
12703
  visibility: s.shouldHideArrow ? "hidden" : void 0
12691
12704
  },
12692
12705
  children: /* @__PURE__ */ l.jsx(
12693
- i0,
12706
+ a0,
12694
12707
  {
12695
12708
  ...o,
12696
12709
  ref: n,
@@ -12706,10 +12719,10 @@ var qd = "PopperArrow", u0 = {
12706
12719
  );
12707
12720
  });
12708
12721
  Gd.displayName = qd;
12709
- function d0(e) {
12722
+ function f0(e) {
12710
12723
  return e !== null;
12711
12724
  }
12712
- var f0 = (e) => ({
12725
+ var h0 = (e) => ({
12713
12726
  name: "transformOrigin",
12714
12727
  options: e,
12715
12728
  fn(t) {
@@ -12723,14 +12736,14 @@ function Yd(e) {
12723
12736
  const [t, n = "center"] = e.split("-");
12724
12737
  return [t, n];
12725
12738
  }
12726
- var Xd = Ud, Jd = Vd, Zd = Kd, Qd = Gd, li = "rovingFocusGroup.onEntryFocus", h0 = { bubbles: !1, cancelable: !0 }, so = "RovingFocusGroup", [Oi, ef, p0] = wa(so), [m0, tf] = xn(
12739
+ var Xd = Ud, Jd = Vd, Zd = Kd, Qd = Gd, li = "rovingFocusGroup.onEntryFocus", p0 = { bubbles: !1, cancelable: !0 }, so = "RovingFocusGroup", [Oi, ef, m0] = wa(so), [g0, tf] = xn(
12727
12740
  so,
12728
- [p0]
12729
- ), [g0, x0] = m0(so), nf = p.forwardRef(
12730
- (e, t) => /* @__PURE__ */ l.jsx(Oi.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ l.jsx(Oi.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ l.jsx(v0, { ...e, ref: t }) }) })
12741
+ [m0]
12742
+ ), [x0, v0] = g0(so), nf = p.forwardRef(
12743
+ (e, t) => /* @__PURE__ */ l.jsx(Oi.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ l.jsx(Oi.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ l.jsx(w0, { ...e, ref: t }) }) })
12731
12744
  );
12732
12745
  nf.displayName = so;
12733
- var v0 = p.forwardRef((e, t) => {
12746
+ var w0 = p.forwardRef((e, t) => {
12734
12747
  const {
12735
12748
  __scopeRovingFocusGroup: n,
12736
12749
  orientation: r,
@@ -12753,7 +12766,7 @@ var v0 = p.forwardRef((e, t) => {
12753
12766
  if (E)
12754
12767
  return E.addEventListener(li, y), () => E.removeEventListener(li, y);
12755
12768
  }, [y]), /* @__PURE__ */ l.jsx(
12756
- g0,
12769
+ x0,
12757
12770
  {
12758
12771
  scope: n,
12759
12772
  orientation: r,
@@ -12787,7 +12800,7 @@ var v0 = p.forwardRef((e, t) => {
12787
12800
  onFocus: ae(e.onFocus, (E) => {
12788
12801
  const A = !S.current;
12789
12802
  if (E.target === E.currentTarget && A && !x) {
12790
- const P = new CustomEvent(li, h0);
12803
+ const P = new CustomEvent(li, p0);
12791
12804
  if (E.currentTarget.dispatchEvent(P), !P.defaultPrevented) {
12792
12805
  const _ = k().filter((U) => U.focusable), L = _.find((U) => U.active), q = _.find((U) => U.id === w), W = [L, q, ..._].filter(
12793
12806
  Boolean
@@ -12811,7 +12824,7 @@ var v0 = p.forwardRef((e, t) => {
12811
12824
  tabStopId: s,
12812
12825
  children: i,
12813
12826
  ...a
12814
- } = e, c = hn(), u = s || c, d = x0(rf, n), f = d.currentTabStopId === u, h = ef(n), { onFocusableItemAdd: m, onFocusableItemRemove: b, currentTabStopId: w } = d;
12827
+ } = e, c = hn(), u = s || c, d = v0(rf, n), f = d.currentTabStopId === u, h = ef(n), { onFocusableItemAdd: m, onFocusableItemRemove: b, currentTabStopId: w } = d;
12815
12828
  return p.useEffect(() => {
12816
12829
  if (r)
12817
12830
  return m(), () => b();
@@ -12839,7 +12852,7 @@ var v0 = p.forwardRef((e, t) => {
12839
12852
  return;
12840
12853
  }
12841
12854
  if (g.target !== g.currentTarget) return;
12842
- const x = y0(g, d.orientation, d.dir);
12855
+ const x = S0(g, d.orientation, d.dir);
12843
12856
  if (x !== void 0) {
12844
12857
  if (g.metaKey || g.ctrlKey || g.altKey || g.shiftKey) return;
12845
12858
  g.preventDefault();
@@ -12848,7 +12861,7 @@ var v0 = p.forwardRef((e, t) => {
12848
12861
  else if (x === "prev" || x === "next") {
12849
12862
  x === "prev" && y.reverse();
12850
12863
  const k = y.indexOf(g.currentTarget);
12851
- y = d.loop ? S0(y, k + 1) : y.slice(k + 1);
12864
+ y = d.loop ? C0(y, k + 1) : y.slice(k + 1);
12852
12865
  }
12853
12866
  setTimeout(() => sf(y));
12854
12867
  }
@@ -12861,7 +12874,7 @@ var v0 = p.forwardRef((e, t) => {
12861
12874
  }
12862
12875
  );
12863
12876
  of.displayName = rf;
12864
- var w0 = {
12877
+ var b0 = {
12865
12878
  ArrowLeft: "prev",
12866
12879
  ArrowUp: "prev",
12867
12880
  ArrowRight: "next",
@@ -12871,33 +12884,33 @@ var w0 = {
12871
12884
  PageDown: "last",
12872
12885
  End: "last"
12873
12886
  };
12874
- function b0(e, t) {
12887
+ function y0(e, t) {
12875
12888
  return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
12876
12889
  }
12877
- function y0(e, t, n) {
12878
- const r = b0(e.key, n);
12890
+ function S0(e, t, n) {
12891
+ const r = y0(e.key, n);
12879
12892
  if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
12880
- return w0[r];
12893
+ return b0[r];
12881
12894
  }
12882
12895
  function sf(e, t = !1) {
12883
12896
  const n = document.activeElement;
12884
12897
  for (const r of e)
12885
12898
  if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
12886
12899
  }
12887
- function S0(e, t) {
12900
+ function C0(e, t) {
12888
12901
  return e.map((n, r) => e[(t + r) % e.length]);
12889
12902
  }
12890
- var C0 = nf, T0 = of, Mi = ["Enter", " "], k0 = ["ArrowDown", "PageUp", "Home"], af = ["ArrowUp", "PageDown", "End"], R0 = [...k0, ...af], E0 = {
12903
+ var T0 = nf, k0 = of, Mi = ["Enter", " "], R0 = ["ArrowDown", "PageUp", "Home"], af = ["ArrowUp", "PageDown", "End"], E0 = [...R0, ...af], I0 = {
12891
12904
  ltr: [...Mi, "ArrowRight"],
12892
12905
  rtl: [...Mi, "ArrowLeft"]
12893
- }, I0 = {
12906
+ }, N0 = {
12894
12907
  ltr: ["ArrowLeft"],
12895
12908
  rtl: ["ArrowRight"]
12896
- }, io = "Menu", [Yr, N0, A0] = wa(io), [rr, lf] = xn(io, [
12897
- A0,
12909
+ }, io = "Menu", [Yr, A0, _0] = wa(io), [rr, lf] = xn(io, [
12910
+ _0,
12898
12911
  Rs,
12899
12912
  tf
12900
- ]), Es = Rs(), cf = tf(), [_0, or] = rr(io), [j0, ao] = rr(io), uf = (e) => {
12913
+ ]), Es = Rs(), cf = tf(), [j0, or] = rr(io), [P0, ao] = rr(io), uf = (e) => {
12901
12914
  const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, a = Es(t), [c, u] = p.useState(null), d = p.useRef(!1), f = Tt(s), h = Ss(o);
12902
12915
  return p.useEffect(() => {
12903
12916
  const m = () => {
@@ -12907,7 +12920,7 @@ var C0 = nf, T0 = of, Mi = ["Enter", " "], k0 = ["ArrowDown", "PageUp", "Home"],
12907
12920
  document.removeEventListener("keydown", m, { capture: !0 }), document.removeEventListener("pointerdown", b, { capture: !0 }), document.removeEventListener("pointermove", b, { capture: !0 });
12908
12921
  };
12909
12922
  }, []), /* @__PURE__ */ l.jsx(Xd, { ...a, children: /* @__PURE__ */ l.jsx(
12910
- _0,
12923
+ j0,
12911
12924
  {
12912
12925
  scope: t,
12913
12926
  open: n,
@@ -12915,7 +12928,7 @@ var C0 = nf, T0 = of, Mi = ["Enter", " "], k0 = ["ArrowDown", "PageUp", "Home"],
12915
12928
  content: c,
12916
12929
  onContentChange: u,
12917
12930
  children: /* @__PURE__ */ l.jsx(
12918
- j0,
12931
+ P0,
12919
12932
  {
12920
12933
  scope: t,
12921
12934
  onClose: p.useCallback(() => f(!1), [f]),
@@ -12929,26 +12942,26 @@ var C0 = nf, T0 = of, Mi = ["Enter", " "], k0 = ["ArrowDown", "PageUp", "Home"],
12929
12942
  ) });
12930
12943
  };
12931
12944
  uf.displayName = io;
12932
- var P0 = "MenuAnchor", Na = p.forwardRef(
12945
+ var O0 = "MenuAnchor", Na = p.forwardRef(
12933
12946
  (e, t) => {
12934
12947
  const { __scopeMenu: n, ...r } = e, o = Es(n);
12935
12948
  return /* @__PURE__ */ l.jsx(Jd, { ...o, ...r, ref: t });
12936
12949
  }
12937
12950
  );
12938
- Na.displayName = P0;
12939
- var Aa = "MenuPortal", [O0, df] = rr(Aa, {
12951
+ Na.displayName = O0;
12952
+ var Aa = "MenuPortal", [M0, df] = rr(Aa, {
12940
12953
  forceMount: void 0
12941
12954
  }), ff = (e) => {
12942
12955
  const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = or(Aa, t);
12943
- return /* @__PURE__ */ l.jsx(O0, { scope: t, forceMount: n, children: /* @__PURE__ */ l.jsx(Ht, { present: n || s.open, children: /* @__PURE__ */ l.jsx(ms, { asChild: !0, container: o, children: r }) }) });
12956
+ return /* @__PURE__ */ l.jsx(M0, { scope: t, forceMount: n, children: /* @__PURE__ */ l.jsx(Ht, { present: n || s.open, children: /* @__PURE__ */ l.jsx(ms, { asChild: !0, container: o, children: r }) }) });
12944
12957
  };
12945
12958
  ff.displayName = Aa;
12946
- var Xt = "MenuContent", [M0, _a] = rr(Xt), hf = p.forwardRef(
12959
+ var Xt = "MenuContent", [D0, _a] = rr(Xt), hf = p.forwardRef(
12947
12960
  (e, t) => {
12948
12961
  const n = df(Xt, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = or(Xt, e.__scopeMenu), i = ao(Xt, e.__scopeMenu);
12949
- return /* @__PURE__ */ l.jsx(Yr.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ l.jsx(Ht, { present: r || s.open, children: /* @__PURE__ */ l.jsx(Yr.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ l.jsx(D0, { ...o, ref: t }) : /* @__PURE__ */ l.jsx(L0, { ...o, ref: t }) }) }) });
12962
+ return /* @__PURE__ */ l.jsx(Yr.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ l.jsx(Ht, { present: r || s.open, children: /* @__PURE__ */ l.jsx(Yr.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ l.jsx(L0, { ...o, ref: t }) : /* @__PURE__ */ l.jsx($0, { ...o, ref: t }) }) }) });
12950
12963
  }
12951
- ), D0 = p.forwardRef(
12964
+ ), L0 = p.forwardRef(
12952
12965
  (e, t) => {
12953
12966
  const n = or(Xt, e.__scopeMenu), r = p.useRef(null), o = Me(t, r);
12954
12967
  return p.useEffect(() => {
@@ -12971,7 +12984,7 @@ var Xt = "MenuContent", [M0, _a] = rr(Xt), hf = p.forwardRef(
12971
12984
  }
12972
12985
  );
12973
12986
  }
12974
- ), L0 = p.forwardRef((e, t) => {
12987
+ ), $0 = p.forwardRef((e, t) => {
12975
12988
  const n = or(Xt, e.__scopeMenu);
12976
12989
  return /* @__PURE__ */ l.jsx(
12977
12990
  ja,
@@ -12984,7 +12997,7 @@ var Xt = "MenuContent", [M0, _a] = rr(Xt), hf = p.forwardRef(
12984
12997
  onDismiss: () => n.onOpenChange(!1)
12985
12998
  }
12986
12999
  );
12987
- }), $0 = xr("MenuContent.ScrollLock"), ja = p.forwardRef(
13000
+ }), F0 = xr("MenuContent.ScrollLock"), ja = p.forwardRef(
12988
13001
  (e, t) => {
12989
13002
  const {
12990
13003
  __scopeMenu: n,
@@ -13001,9 +13014,9 @@ var Xt = "MenuContent", [M0, _a] = rr(Xt), hf = p.forwardRef(
13001
13014
  onDismiss: m,
13002
13015
  disableOutsideScroll: b,
13003
13016
  ...w
13004
- } = e, g = or(Xt, n), x = ao(Xt, n), v = Es(n), y = cf(n), k = N0(n), [S, C] = p.useState(null), R = p.useRef(null), E = Me(t, R, g.onContentChange), A = p.useRef(0), P = p.useRef(""), _ = p.useRef(0), L = p.useRef(null), q = p.useRef("right"), O = p.useRef(0), W = b ? xs : p.Fragment, U = b ? { as: $0, allowPinchZoom: !0 } : void 0, V = (I) => {
13017
+ } = e, g = or(Xt, n), x = ao(Xt, n), v = Es(n), y = cf(n), k = A0(n), [S, C] = p.useState(null), R = p.useRef(null), E = Me(t, R, g.onContentChange), A = p.useRef(0), P = p.useRef(""), _ = p.useRef(0), L = p.useRef(null), q = p.useRef("right"), O = p.useRef(0), W = b ? xs : p.Fragment, U = b ? { as: F0, allowPinchZoom: !0 } : void 0, V = (I) => {
13005
13018
  var B, N;
13006
- const K = P.current + I, J = k().filter((H) => !H.disabled), oe = document.activeElement, te = (B = J.find((H) => H.ref.current === oe)) == null ? void 0 : B.textValue, pe = J.map((H) => H.textValue), ke = X0(pe, K, te), Re = (N = J.find((H) => H.textValue === ke)) == null ? void 0 : N.ref.current;
13019
+ const K = P.current + I, J = k().filter((H) => !H.disabled), oe = document.activeElement, te = (B = J.find((H) => H.ref.current === oe)) == null ? void 0 : B.textValue, pe = J.map((H) => H.textValue), ke = J0(pe, K, te), Re = (N = J.find((H) => H.textValue === ke)) == null ? void 0 : N.ref.current;
13007
13020
  (function H(ee) {
13008
13021
  P.current = ee, window.clearTimeout(A.current), ee !== "" && (A.current = window.setTimeout(() => H(""), 1e3));
13009
13022
  })(K), Re && setTimeout(() => Re.focus());
@@ -13011,10 +13024,10 @@ var Xt = "MenuContent", [M0, _a] = rr(Xt), hf = p.forwardRef(
13011
13024
  p.useEffect(() => () => window.clearTimeout(A.current), []), pa();
13012
13025
  const D = p.useCallback((I) => {
13013
13026
  var J, oe;
13014
- return q.current === ((J = L.current) == null ? void 0 : J.side) && Z0(I, (oe = L.current) == null ? void 0 : oe.area);
13027
+ return q.current === ((J = L.current) == null ? void 0 : J.side) && Q0(I, (oe = L.current) == null ? void 0 : oe.area);
13015
13028
  }, []);
13016
13029
  return /* @__PURE__ */ l.jsx(
13017
- M0,
13030
+ D0,
13018
13031
  {
13019
13032
  scope: n,
13020
13033
  searchRef: P,
@@ -13062,7 +13075,7 @@ var Xt = "MenuContent", [M0, _a] = rr(Xt), hf = p.forwardRef(
13062
13075
  onInteractOutside: h,
13063
13076
  onDismiss: m,
13064
13077
  children: /* @__PURE__ */ l.jsx(
13065
- C0,
13078
+ T0,
13066
13079
  {
13067
13080
  asChild: !0,
13068
13081
  ...y,
@@ -13091,10 +13104,10 @@ var Xt = "MenuContent", [M0, _a] = rr(Xt), hf = p.forwardRef(
13091
13104
  const J = I.target.closest("[data-radix-menu-content]") === I.currentTarget, oe = I.ctrlKey || I.altKey || I.metaKey, te = I.key.length === 1;
13092
13105
  J && (I.key === "Tab" && I.preventDefault(), !oe && te && V(I.key));
13093
13106
  const pe = R.current;
13094
- if (I.target !== pe || !R0.includes(I.key)) return;
13107
+ if (I.target !== pe || !E0.includes(I.key)) return;
13095
13108
  I.preventDefault();
13096
13109
  const Re = k().filter((B) => !B.disabled).map((B) => B.ref.current);
13097
- af.includes(I.key) && Re.reverse(), G0(Re);
13110
+ af.includes(I.key) && Re.reverse(), Y0(Re);
13098
13111
  }),
13099
13112
  onBlur: ae(e.onBlur, (I) => {
13100
13113
  I.currentTarget.contains(I.target) || (window.clearTimeout(A.current), P.current = "");
@@ -13122,20 +13135,20 @@ var Xt = "MenuContent", [M0, _a] = rr(Xt), hf = p.forwardRef(
13122
13135
  }
13123
13136
  );
13124
13137
  hf.displayName = Xt;
13125
- var F0 = "MenuGroup", Pa = p.forwardRef(
13138
+ var z0 = "MenuGroup", Pa = p.forwardRef(
13126
13139
  (e, t) => {
13127
13140
  const { __scopeMenu: n, ...r } = e;
13128
13141
  return /* @__PURE__ */ l.jsx(Se.div, { role: "group", ...r, ref: t });
13129
13142
  }
13130
13143
  );
13131
- Pa.displayName = F0;
13132
- var z0 = "MenuLabel", pf = p.forwardRef(
13144
+ Pa.displayName = z0;
13145
+ var B0 = "MenuLabel", pf = p.forwardRef(
13133
13146
  (e, t) => {
13134
13147
  const { __scopeMenu: n, ...r } = e;
13135
13148
  return /* @__PURE__ */ l.jsx(Se.div, { ...r, ref: t });
13136
13149
  }
13137
13150
  );
13138
- pf.displayName = z0;
13151
+ pf.displayName = B0;
13139
13152
  var Go = "MenuItem", xc = "menu.itemSelect", Is = p.forwardRef(
13140
13153
  (e, t) => {
13141
13154
  const { disabled: n = !1, onSelect: r, ...o } = e, s = p.useRef(null), i = ao(Go, e.__scopeMenu), a = _a(Go, e.__scopeMenu), c = Me(t, s), u = p.useRef(!1), d = () => {
@@ -13181,7 +13194,7 @@ var mf = p.forwardRef(
13181
13194
  scope: n,
13182
13195
  disabled: r,
13183
13196
  textValue: o ?? h,
13184
- children: /* @__PURE__ */ l.jsx(T0, { asChild: !0, ...a, focusable: !r, children: /* @__PURE__ */ l.jsx(
13197
+ children: /* @__PURE__ */ l.jsx(k0, { asChild: !0, ...a, focusable: !r, children: /* @__PURE__ */ l.jsx(
13185
13198
  Se.div,
13186
13199
  {
13187
13200
  role: "menuitem",
@@ -13207,7 +13220,7 @@ var mf = p.forwardRef(
13207
13220
  }
13208
13221
  );
13209
13222
  }
13210
- ), B0 = "MenuCheckboxItem", gf = p.forwardRef(
13223
+ ), H0 = "MenuCheckboxItem", gf = p.forwardRef(
13211
13224
  (e, t) => {
13212
13225
  const { checked: n = !1, onCheckedChange: r, ...o } = e;
13213
13226
  return /* @__PURE__ */ l.jsx(yf, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ l.jsx(
@@ -13227,21 +13240,21 @@ var mf = p.forwardRef(
13227
13240
  ) });
13228
13241
  }
13229
13242
  );
13230
- gf.displayName = B0;
13231
- var xf = "MenuRadioGroup", [H0, U0] = rr(
13243
+ gf.displayName = H0;
13244
+ var xf = "MenuRadioGroup", [U0, W0] = rr(
13232
13245
  xf,
13233
13246
  { value: void 0, onValueChange: () => {
13234
13247
  } }
13235
13248
  ), vf = p.forwardRef(
13236
13249
  (e, t) => {
13237
13250
  const { value: n, onValueChange: r, ...o } = e, s = Tt(r);
13238
- return /* @__PURE__ */ l.jsx(H0, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ l.jsx(Pa, { ...o, ref: t }) });
13251
+ return /* @__PURE__ */ l.jsx(U0, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ l.jsx(Pa, { ...o, ref: t }) });
13239
13252
  }
13240
13253
  );
13241
13254
  vf.displayName = xf;
13242
13255
  var wf = "MenuRadioItem", bf = p.forwardRef(
13243
13256
  (e, t) => {
13244
- const { value: n, ...r } = e, o = U0(wf, e.__scopeMenu), s = n === o.value;
13257
+ const { value: n, ...r } = e, o = W0(wf, e.__scopeMenu), s = n === o.value;
13245
13258
  return /* @__PURE__ */ l.jsx(yf, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ l.jsx(
13246
13259
  Is,
13247
13260
  {
@@ -13263,12 +13276,12 @@ var wf = "MenuRadioItem", bf = p.forwardRef(
13263
13276
  }
13264
13277
  );
13265
13278
  bf.displayName = wf;
13266
- var Oa = "MenuItemIndicator", [yf, W0] = rr(
13279
+ var Oa = "MenuItemIndicator", [yf, V0] = rr(
13267
13280
  Oa,
13268
13281
  { checked: !1 }
13269
13282
  ), Sf = p.forwardRef(
13270
13283
  (e, t) => {
13271
- const { __scopeMenu: n, forceMount: r, ...o } = e, s = W0(Oa, n);
13284
+ const { __scopeMenu: n, forceMount: r, ...o } = e, s = V0(Oa, n);
13272
13285
  return /* @__PURE__ */ l.jsx(
13273
13286
  Ht,
13274
13287
  {
@@ -13286,7 +13299,7 @@ var Oa = "MenuItemIndicator", [yf, W0] = rr(
13286
13299
  }
13287
13300
  );
13288
13301
  Sf.displayName = Oa;
13289
- var V0 = "MenuSeparator", Cf = p.forwardRef(
13302
+ var K0 = "MenuSeparator", Cf = p.forwardRef(
13290
13303
  (e, t) => {
13291
13304
  const { __scopeMenu: n, ...r } = e;
13292
13305
  return /* @__PURE__ */ l.jsx(
@@ -13300,15 +13313,15 @@ var V0 = "MenuSeparator", Cf = p.forwardRef(
13300
13313
  );
13301
13314
  }
13302
13315
  );
13303
- Cf.displayName = V0;
13304
- var K0 = "MenuArrow", Tf = p.forwardRef(
13316
+ Cf.displayName = K0;
13317
+ var q0 = "MenuArrow", Tf = p.forwardRef(
13305
13318
  (e, t) => {
13306
13319
  const { __scopeMenu: n, ...r } = e, o = Es(n);
13307
13320
  return /* @__PURE__ */ l.jsx(Qd, { ...o, ...r, ref: t });
13308
13321
  }
13309
13322
  );
13310
- Tf.displayName = K0;
13311
- var q0 = "MenuSub", [IT, kf] = rr(q0), Pr = "MenuSubTrigger", Rf = p.forwardRef(
13323
+ Tf.displayName = q0;
13324
+ var G0 = "MenuSub", [NT, kf] = rr(G0), Pr = "MenuSubTrigger", Rf = p.forwardRef(
13312
13325
  (e, t) => {
13313
13326
  const n = or(Pr, e.__scopeMenu), r = ao(Pr, e.__scopeMenu), o = kf(Pr, e.__scopeMenu), s = _a(Pr, e.__scopeMenu), i = p.useRef(null), { pointerGraceTimerRef: a, onPointerGraceIntentChange: c } = s, u = { __scopeMenu: e.__scopeMenu }, d = p.useCallback(() => {
13314
13327
  i.current && window.clearTimeout(i.current), i.current = null;
@@ -13372,7 +13385,7 @@ var q0 = "MenuSub", [IT, kf] = rr(q0), Pr = "MenuSubTrigger", Rf = p.forwardRef(
13372
13385
  onKeyDown: ae(e.onKeyDown, (f) => {
13373
13386
  var m;
13374
13387
  const h = s.searchRef.current !== "";
13375
- e.disabled || h && f.key === " " || E0[r.dir].includes(f.key) && (n.onOpenChange(!0), (m = n.content) == null || m.focus(), f.preventDefault());
13388
+ e.disabled || h && f.key === " " || I0[r.dir].includes(f.key) && (n.onOpenChange(!0), (m = n.content) == null || m.focus(), f.preventDefault());
13376
13389
  })
13377
13390
  }
13378
13391
  ) });
@@ -13407,7 +13420,7 @@ var Ef = "MenuSubContent", If = p.forwardRef(
13407
13420
  }),
13408
13421
  onKeyDown: ae(e.onKeyDown, (d) => {
13409
13422
  var m;
13410
- const f = d.currentTarget.contains(d.target), h = I0[i.dir].includes(d.key);
13423
+ const f = d.currentTarget.contains(d.target), h = N0[i.dir].includes(d.key);
13411
13424
  f && h && (s.onOpenChange(!1), (m = a.trigger) == null || m.focus(), d.preventDefault());
13412
13425
  })
13413
13426
  }
@@ -13424,24 +13437,24 @@ function Yo(e) {
13424
13437
  function Ma(e) {
13425
13438
  return Yo(e) ? "indeterminate" : e ? "checked" : "unchecked";
13426
13439
  }
13427
- function G0(e) {
13440
+ function Y0(e) {
13428
13441
  const t = document.activeElement;
13429
13442
  for (const n of e)
13430
13443
  if (n === t || (n.focus(), document.activeElement !== t)) return;
13431
13444
  }
13432
- function Y0(e, t) {
13445
+ function X0(e, t) {
13433
13446
  return e.map((n, r) => e[(t + r) % e.length]);
13434
13447
  }
13435
- function X0(e, t, n) {
13448
+ function J0(e, t, n) {
13436
13449
  const o = t.length > 1 && Array.from(t).every((u) => u === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
13437
- let i = Y0(e, Math.max(s, 0));
13450
+ let i = X0(e, Math.max(s, 0));
13438
13451
  o.length === 1 && (i = i.filter((u) => u !== n));
13439
13452
  const c = i.find(
13440
13453
  (u) => u.toLowerCase().startsWith(o.toLowerCase())
13441
13454
  );
13442
13455
  return c !== n ? c : void 0;
13443
13456
  }
13444
- function J0(e, t) {
13457
+ function Z0(e, t) {
13445
13458
  const { x: n, y: r } = e;
13446
13459
  let o = !1;
13447
13460
  for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
@@ -13450,18 +13463,18 @@ function J0(e, t) {
13450
13463
  }
13451
13464
  return o;
13452
13465
  }
13453
- function Z0(e, t) {
13466
+ function Q0(e, t) {
13454
13467
  if (!t) return !1;
13455
13468
  const n = { x: e.clientX, y: e.clientY };
13456
- return J0(n, t);
13469
+ return Z0(n, t);
13457
13470
  }
13458
13471
  function Xr(e) {
13459
13472
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
13460
13473
  }
13461
- var Q0 = uf, eS = Na, tS = ff, nS = hf, rS = Pa, oS = pf, sS = Is, iS = gf, aS = vf, lS = bf, cS = Sf, uS = Cf, dS = Tf, fS = Rf, hS = If, Ns = "DropdownMenu", [pS, NT] = xn(
13474
+ var eS = uf, tS = Na, nS = ff, rS = hf, oS = Pa, sS = pf, iS = Is, aS = gf, lS = vf, cS = bf, uS = Sf, dS = Cf, fS = Tf, hS = Rf, pS = If, Ns = "DropdownMenu", [mS, AT] = xn(
13462
13475
  Ns,
13463
13476
  [lf]
13464
- ), _t = lf(), [mS, Af] = pS(Ns), _f = (e) => {
13477
+ ), _t = lf(), [gS, Af] = mS(Ns), _f = (e) => {
13465
13478
  const {
13466
13479
  __scopeDropdownMenu: t,
13467
13480
  children: n,
@@ -13477,7 +13490,7 @@ var Q0 = uf, eS = Na, tS = ff, nS = hf, rS = Pa, oS = pf, sS = Is, iS = gf, aS =
13477
13490
  caller: Ns
13478
13491
  });
13479
13492
  return /* @__PURE__ */ l.jsx(
13480
- mS,
13493
+ gS,
13481
13494
  {
13482
13495
  scope: t,
13483
13496
  triggerId: hn(),
@@ -13487,7 +13500,7 @@ var Q0 = uf, eS = Na, tS = ff, nS = hf, rS = Pa, oS = pf, sS = Is, iS = gf, aS =
13487
13500
  onOpenChange: f,
13488
13501
  onOpenToggle: p.useCallback(() => f((h) => !h), [f]),
13489
13502
  modal: a,
13490
- children: /* @__PURE__ */ l.jsx(Q0, { ...c, open: d, onOpenChange: f, dir: r, modal: a, children: n })
13503
+ children: /* @__PURE__ */ l.jsx(eS, { ...c, open: d, onOpenChange: f, dir: r, modal: a, children: n })
13491
13504
  }
13492
13505
  );
13493
13506
  };
@@ -13495,7 +13508,7 @@ _f.displayName = Ns;
13495
13508
  var jf = "DropdownMenuTrigger", Pf = p.forwardRef(
13496
13509
  (e, t) => {
13497
13510
  const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = Af(jf, n), i = _t(n);
13498
- return /* @__PURE__ */ l.jsx(eS, { asChild: !0, ...i, children: /* @__PURE__ */ l.jsx(
13511
+ return /* @__PURE__ */ l.jsx(tS, { asChild: !0, ...i, children: /* @__PURE__ */ l.jsx(
13499
13512
  Se.button,
13500
13513
  {
13501
13514
  type: "button",
@@ -13519,16 +13532,16 @@ var jf = "DropdownMenuTrigger", Pf = p.forwardRef(
13519
13532
  }
13520
13533
  );
13521
13534
  Pf.displayName = jf;
13522
- var gS = "DropdownMenuPortal", Of = (e) => {
13535
+ var xS = "DropdownMenuPortal", Of = (e) => {
13523
13536
  const { __scopeDropdownMenu: t, ...n } = e, r = _t(t);
13524
- return /* @__PURE__ */ l.jsx(tS, { ...r, ...n });
13537
+ return /* @__PURE__ */ l.jsx(nS, { ...r, ...n });
13525
13538
  };
13526
- Of.displayName = gS;
13539
+ Of.displayName = xS;
13527
13540
  var Mf = "DropdownMenuContent", Df = p.forwardRef(
13528
13541
  (e, t) => {
13529
13542
  const { __scopeDropdownMenu: n, ...r } = e, o = Af(Mf, n), s = _t(n), i = p.useRef(!1);
13530
13543
  return /* @__PURE__ */ l.jsx(
13531
- nS,
13544
+ rS,
13532
13545
  {
13533
13546
  id: o.contentId,
13534
13547
  "aria-labelledby": o.triggerId,
@@ -13556,68 +13569,68 @@ var Mf = "DropdownMenuContent", Df = p.forwardRef(
13556
13569
  }
13557
13570
  );
13558
13571
  Df.displayName = Mf;
13559
- var xS = "DropdownMenuGroup", vS = p.forwardRef(
13572
+ var vS = "DropdownMenuGroup", wS = p.forwardRef(
13560
13573
  (e, t) => {
13561
13574
  const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
13562
- return /* @__PURE__ */ l.jsx(rS, { ...o, ...r, ref: t });
13575
+ return /* @__PURE__ */ l.jsx(oS, { ...o, ...r, ref: t });
13563
13576
  }
13564
13577
  );
13565
- vS.displayName = xS;
13566
- var wS = "DropdownMenuLabel", Lf = p.forwardRef(
13578
+ wS.displayName = vS;
13579
+ var bS = "DropdownMenuLabel", Lf = p.forwardRef(
13567
13580
  (e, t) => {
13568
13581
  const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
13569
- return /* @__PURE__ */ l.jsx(oS, { ...o, ...r, ref: t });
13582
+ return /* @__PURE__ */ l.jsx(sS, { ...o, ...r, ref: t });
13570
13583
  }
13571
13584
  );
13572
- Lf.displayName = wS;
13573
- var bS = "DropdownMenuItem", $f = p.forwardRef(
13585
+ Lf.displayName = bS;
13586
+ var yS = "DropdownMenuItem", $f = p.forwardRef(
13574
13587
  (e, t) => {
13575
13588
  const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
13576
- return /* @__PURE__ */ l.jsx(sS, { ...o, ...r, ref: t });
13589
+ return /* @__PURE__ */ l.jsx(iS, { ...o, ...r, ref: t });
13577
13590
  }
13578
13591
  );
13579
- $f.displayName = bS;
13580
- var yS = "DropdownMenuCheckboxItem", Ff = p.forwardRef((e, t) => {
13581
- const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
13582
- return /* @__PURE__ */ l.jsx(iS, { ...o, ...r, ref: t });
13583
- });
13584
- Ff.displayName = yS;
13585
- var SS = "DropdownMenuRadioGroup", CS = p.forwardRef((e, t) => {
13592
+ $f.displayName = yS;
13593
+ var SS = "DropdownMenuCheckboxItem", Ff = p.forwardRef((e, t) => {
13586
13594
  const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
13587
13595
  return /* @__PURE__ */ l.jsx(aS, { ...o, ...r, ref: t });
13588
13596
  });
13589
- CS.displayName = SS;
13590
- var TS = "DropdownMenuRadioItem", zf = p.forwardRef((e, t) => {
13597
+ Ff.displayName = SS;
13598
+ var CS = "DropdownMenuRadioGroup", TS = p.forwardRef((e, t) => {
13591
13599
  const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
13592
13600
  return /* @__PURE__ */ l.jsx(lS, { ...o, ...r, ref: t });
13593
13601
  });
13594
- zf.displayName = TS;
13595
- var kS = "DropdownMenuItemIndicator", Bf = p.forwardRef((e, t) => {
13602
+ TS.displayName = CS;
13603
+ var kS = "DropdownMenuRadioItem", zf = p.forwardRef((e, t) => {
13596
13604
  const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
13597
13605
  return /* @__PURE__ */ l.jsx(cS, { ...o, ...r, ref: t });
13598
13606
  });
13599
- Bf.displayName = kS;
13600
- var RS = "DropdownMenuSeparator", Hf = p.forwardRef((e, t) => {
13607
+ zf.displayName = kS;
13608
+ var RS = "DropdownMenuItemIndicator", Bf = p.forwardRef((e, t) => {
13601
13609
  const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
13602
13610
  return /* @__PURE__ */ l.jsx(uS, { ...o, ...r, ref: t });
13603
13611
  });
13604
- Hf.displayName = RS;
13605
- var ES = "DropdownMenuArrow", IS = p.forwardRef(
13612
+ Bf.displayName = RS;
13613
+ var ES = "DropdownMenuSeparator", Hf = p.forwardRef((e, t) => {
13614
+ const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
13615
+ return /* @__PURE__ */ l.jsx(dS, { ...o, ...r, ref: t });
13616
+ });
13617
+ Hf.displayName = ES;
13618
+ var IS = "DropdownMenuArrow", NS = p.forwardRef(
13606
13619
  (e, t) => {
13607
13620
  const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
13608
- return /* @__PURE__ */ l.jsx(dS, { ...o, ...r, ref: t });
13621
+ return /* @__PURE__ */ l.jsx(fS, { ...o, ...r, ref: t });
13609
13622
  }
13610
13623
  );
13611
- IS.displayName = ES;
13612
- var NS = "DropdownMenuSubTrigger", Uf = p.forwardRef((e, t) => {
13624
+ NS.displayName = IS;
13625
+ var AS = "DropdownMenuSubTrigger", Uf = p.forwardRef((e, t) => {
13613
13626
  const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
13614
- return /* @__PURE__ */ l.jsx(fS, { ...o, ...r, ref: t });
13627
+ return /* @__PURE__ */ l.jsx(hS, { ...o, ...r, ref: t });
13615
13628
  });
13616
- Uf.displayName = NS;
13617
- var AS = "DropdownMenuSubContent", Wf = p.forwardRef((e, t) => {
13629
+ Uf.displayName = AS;
13630
+ var _S = "DropdownMenuSubContent", Wf = p.forwardRef((e, t) => {
13618
13631
  const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
13619
13632
  return /* @__PURE__ */ l.jsx(
13620
- hS,
13633
+ pS,
13621
13634
  {
13622
13635
  ...o,
13623
13636
  ...r,
@@ -13633,9 +13646,9 @@ var AS = "DropdownMenuSubContent", Wf = p.forwardRef((e, t) => {
13633
13646
  }
13634
13647
  );
13635
13648
  });
13636
- Wf.displayName = AS;
13637
- var _S = _f, jS = Pf, PS = Of, Vf = Df, Kf = Lf, qf = $f, Gf = Ff, Yf = zf, Xf = Bf, Jf = Hf, Zf = Uf, Qf = Wf;
13638
- const OS = _S, MS = jS, DS = p.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ l.jsxs(
13649
+ Wf.displayName = _S;
13650
+ var jS = _f, PS = Pf, OS = Of, Vf = Df, Kf = Lf, qf = $f, Gf = Ff, Yf = zf, Xf = Bf, Jf = Hf, Zf = Uf, Qf = Wf;
13651
+ const MS = jS, DS = PS, LS = p.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ l.jsxs(
13639
13652
  Zf,
13640
13653
  {
13641
13654
  ref: o,
@@ -13651,8 +13664,8 @@ const OS = _S, MS = jS, DS = p.forwardRef(({ className: e, inset: t, children: n
13651
13664
  ]
13652
13665
  }
13653
13666
  ));
13654
- DS.displayName = Zf.displayName;
13655
- const LS = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
13667
+ LS.displayName = Zf.displayName;
13668
+ const $S = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
13656
13669
  Qf,
13657
13670
  {
13658
13671
  ref: n,
@@ -13663,8 +13676,8 @@ const LS = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
13663
13676
  ...t
13664
13677
  }
13665
13678
  ));
13666
- LS.displayName = Qf.displayName;
13667
- const eh = p.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ l.jsx(PS, { children: /* @__PURE__ */ l.jsx(
13679
+ $S.displayName = Qf.displayName;
13680
+ const eh = p.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ l.jsx(OS, { children: /* @__PURE__ */ l.jsx(
13668
13681
  Vf,
13669
13682
  {
13670
13683
  ref: r,
@@ -13690,7 +13703,7 @@ const Di = p.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
13690
13703
  }
13691
13704
  ));
13692
13705
  Di.displayName = qf.displayName;
13693
- const $S = p.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ l.jsxs(
13706
+ const FS = p.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ l.jsxs(
13694
13707
  Gf,
13695
13708
  {
13696
13709
  ref: o,
@@ -13706,8 +13719,8 @@ const $S = p.forwardRef(({ className: e, children: t, checked: n, ...r }, o) =>
13706
13719
  ]
13707
13720
  }
13708
13721
  ));
13709
- $S.displayName = Gf.displayName;
13710
- const FS = p.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ l.jsxs(
13722
+ FS.displayName = Gf.displayName;
13723
+ const zS = p.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ l.jsxs(
13711
13724
  Yf,
13712
13725
  {
13713
13726
  ref: r,
@@ -13722,8 +13735,8 @@ const FS = p.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
13722
13735
  ]
13723
13736
  }
13724
13737
  ));
13725
- FS.displayName = Yf.displayName;
13726
- const zS = p.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ l.jsx(
13738
+ zS.displayName = Yf.displayName;
13739
+ const BS = p.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ l.jsx(
13727
13740
  Kf,
13728
13741
  {
13729
13742
  ref: r,
@@ -13735,8 +13748,8 @@ const zS = p.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
13735
13748
  ...n
13736
13749
  }
13737
13750
  ));
13738
- zS.displayName = Kf.displayName;
13739
- const BS = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
13751
+ BS.displayName = Kf.displayName;
13752
+ const HS = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
13740
13753
  Jf,
13741
13754
  {
13742
13755
  ref: n,
@@ -13744,7 +13757,7 @@ const BS = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
13744
13757
  ...t
13745
13758
  }
13746
13759
  ));
13747
- BS.displayName = Jf.displayName;
13760
+ HS.displayName = Jf.displayName;
13748
13761
  function ci({
13749
13762
  className: e = "",
13750
13763
  placeholder: t = "Type your message...",
@@ -13852,7 +13865,7 @@ function ci({
13852
13865
  if (X.length > jo)
13853
13866
  return `Message too long (${X.length}/${jo} characters)`;
13854
13867
  try {
13855
- return qb(X), null;
13868
+ return Gb(X), null;
13856
13869
  } catch (ue) {
13857
13870
  return (ue == null ? void 0 : ue.message) || "Invalid message";
13858
13871
  }
@@ -14089,8 +14102,8 @@ function ci({
14089
14102
  ] }),
14090
14103
  I && /* @__PURE__ */ l.jsx("div", { className: "mb-3 text-sm text-red-600 bg-red-50 border border-red-200 rounded px-3 py-2", children: I }),
14091
14104
  /* @__PURE__ */ l.jsxs("div", { className: "flex items-end gap-2", children: [
14092
- (a || c) && /* @__PURE__ */ l.jsxs(OS, { children: [
14093
- /* @__PURE__ */ l.jsx(MS, { asChild: !0, children: /* @__PURE__ */ l.jsx(
14105
+ (a || c) && /* @__PURE__ */ l.jsxs(MS, { children: [
14106
+ /* @__PURE__ */ l.jsx(DS, { asChild: !0, children: /* @__PURE__ */ l.jsx(
14094
14107
  Be,
14095
14108
  {
14096
14109
  type: "button",
@@ -14127,7 +14140,7 @@ function ci({
14127
14140
  ] })
14128
14141
  ] }),
14129
14142
  /* @__PURE__ */ l.jsx("div", { className: "flex-1", children: /* @__PURE__ */ l.jsx(
14130
- nx,
14143
+ rx,
14131
14144
  {
14132
14145
  initialValue: V,
14133
14146
  editingMessageId: W,
@@ -14164,10 +14177,10 @@ Xo.displayName = "Input";
14164
14177
  function Li(e, [t, n]) {
14165
14178
  return Math.min(n, Math.max(t, e));
14166
14179
  }
14167
- function HS(e, t) {
14180
+ function US(e, t) {
14168
14181
  return p.useReducer((n, r) => t[n][r] ?? n, e);
14169
14182
  }
14170
- var Da = "ScrollArea", [th, AT] = xn(Da), [US, Zt] = th(Da), nh = p.forwardRef(
14183
+ var Da = "ScrollArea", [th, _T] = xn(Da), [WS, Zt] = th(Da), nh = p.forwardRef(
14171
14184
  (e, t) => {
14172
14185
  const {
14173
14186
  __scopeScrollArea: n,
@@ -14177,7 +14190,7 @@ var Da = "ScrollArea", [th, AT] = xn(Da), [US, Zt] = th(Da), nh = p.forwardRef(
14177
14190
  ...i
14178
14191
  } = e, [a, c] = p.useState(null), [u, d] = p.useState(null), [f, h] = p.useState(null), [m, b] = p.useState(null), [w, g] = p.useState(null), [x, v] = p.useState(0), [y, k] = p.useState(0), [S, C] = p.useState(!1), [R, E] = p.useState(!1), A = Me(t, (_) => c(_)), P = Ss(o);
14179
14192
  return /* @__PURE__ */ l.jsx(
14180
- US,
14193
+ WS,
14181
14194
  {
14182
14195
  scope: n,
14183
14196
  type: r,
@@ -14265,11 +14278,11 @@ var wn = "ScrollAreaScrollbar", La = p.forwardRef(
14265
14278
  const { forceMount: n, ...r } = e, o = Zt(wn, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: i } = o, a = e.orientation === "horizontal";
14266
14279
  return p.useEffect(() => (a ? s(!0) : i(!0), () => {
14267
14280
  a ? s(!1) : i(!1);
14268
- }), [a, s, i]), o.type === "hover" ? /* @__PURE__ */ l.jsx(WS, { ...r, ref: t, forceMount: n }) : o.type === "scroll" ? /* @__PURE__ */ l.jsx(VS, { ...r, ref: t, forceMount: n }) : o.type === "auto" ? /* @__PURE__ */ l.jsx(sh, { ...r, ref: t, forceMount: n }) : o.type === "always" ? /* @__PURE__ */ l.jsx($a, { ...r, ref: t }) : null;
14281
+ }), [a, s, i]), o.type === "hover" ? /* @__PURE__ */ l.jsx(VS, { ...r, ref: t, forceMount: n }) : o.type === "scroll" ? /* @__PURE__ */ l.jsx(KS, { ...r, ref: t, forceMount: n }) : o.type === "auto" ? /* @__PURE__ */ l.jsx(sh, { ...r, ref: t, forceMount: n }) : o.type === "always" ? /* @__PURE__ */ l.jsx($a, { ...r, ref: t }) : null;
14269
14282
  }
14270
14283
  );
14271
14284
  La.displayName = wn;
14272
- var WS = p.forwardRef((e, t) => {
14285
+ var VS = p.forwardRef((e, t) => {
14273
14286
  const { forceMount: n, ...r } = e, o = Zt(wn, e.__scopeScrollArea), [s, i] = p.useState(!1);
14274
14287
  return p.useEffect(() => {
14275
14288
  const a = o.scrollArea;
@@ -14292,8 +14305,8 @@ var WS = p.forwardRef((e, t) => {
14292
14305
  ref: t
14293
14306
  }
14294
14307
  ) });
14295
- }), VS = p.forwardRef((e, t) => {
14296
- const { forceMount: n, ...r } = e, o = Zt(wn, e.__scopeScrollArea), s = e.orientation === "horizontal", i = _s(() => c("SCROLL_END"), 100), [a, c] = HS("hidden", {
14308
+ }), KS = p.forwardRef((e, t) => {
14309
+ const { forceMount: n, ...r } = e, o = Zt(wn, e.__scopeScrollArea), s = e.orientation === "horizontal", i = _s(() => c("SCROLL_END"), 100), [a, c] = US("hidden", {
14297
14310
  hidden: {
14298
14311
  SCROLL: "scrolling"
14299
14312
  },
@@ -14366,10 +14379,10 @@ var WS = p.forwardRef((e, t) => {
14366
14379
  onThumbPointerDown: (h) => i.current = h
14367
14380
  };
14368
14381
  function f(h, m) {
14369
- return JS(h, i.current, a, m);
14382
+ return ZS(h, i.current, a, m);
14370
14383
  }
14371
14384
  return n === "horizontal" ? /* @__PURE__ */ l.jsx(
14372
- KS,
14385
+ qS,
14373
14386
  {
14374
14387
  ...d,
14375
14388
  ref: t,
@@ -14387,7 +14400,7 @@ var WS = p.forwardRef((e, t) => {
14387
14400
  }
14388
14401
  }
14389
14402
  ) : n === "vertical" ? /* @__PURE__ */ l.jsx(
14390
- qS,
14403
+ GS,
14391
14404
  {
14392
14405
  ...d,
14393
14406
  ref: t,
@@ -14405,7 +14418,7 @@ var WS = p.forwardRef((e, t) => {
14405
14418
  }
14406
14419
  }
14407
14420
  ) : null;
14408
- }), KS = p.forwardRef((e, t) => {
14421
+ }), qS = p.forwardRef((e, t) => {
14409
14422
  const { sizes: n, onSizesChange: r, ...o } = e, s = Zt(wn, e.__scopeScrollArea), [i, a] = p.useState(), c = p.useRef(null), u = Me(t, c, s.onScrollbarXChange);
14410
14423
  return p.useEffect(() => {
14411
14424
  c.current && a(getComputedStyle(c.current));
@@ -14444,7 +14457,7 @@ var WS = p.forwardRef((e, t) => {
14444
14457
  }
14445
14458
  }
14446
14459
  );
14447
- }), qS = p.forwardRef((e, t) => {
14460
+ }), GS = p.forwardRef((e, t) => {
14448
14461
  const { sizes: n, onSizesChange: r, ...o } = e, s = Zt(wn, e.__scopeScrollArea), [i, a] = p.useState(), c = p.useRef(null), u = Me(t, c, s.onScrollbarYChange);
14449
14462
  return p.useEffect(() => {
14450
14463
  c.current && a(getComputedStyle(c.current));
@@ -14484,7 +14497,7 @@ var WS = p.forwardRef((e, t) => {
14484
14497
  }
14485
14498
  }
14486
14499
  );
14487
- }), [GS, ih] = th(wn), ah = p.forwardRef((e, t) => {
14500
+ }), [YS, ih] = th(wn), ah = p.forwardRef((e, t) => {
14488
14501
  const {
14489
14502
  __scopeScrollArea: n,
14490
14503
  sizes: r,
@@ -14511,7 +14524,7 @@ var WS = p.forwardRef((e, t) => {
14511
14524
  };
14512
14525
  return document.addEventListener("wheel", A, { passive: !1 }), () => document.removeEventListener("wheel", A, { passive: !1 });
14513
14526
  }, [y, b, k, S]), p.useEffect(C, [r, C]), br(b, R), br(m.content, R), /* @__PURE__ */ l.jsx(
14514
- GS,
14527
+ YS,
14515
14528
  {
14516
14529
  scope: n,
14517
14530
  scrollbar: b,
@@ -14541,9 +14554,9 @@ var WS = p.forwardRef((e, t) => {
14541
14554
  }), Jo = "ScrollAreaThumb", lh = p.forwardRef(
14542
14555
  (e, t) => {
14543
14556
  const { forceMount: n, ...r } = e, o = ih(Jo, e.__scopeScrollArea);
14544
- return /* @__PURE__ */ l.jsx(Ht, { present: n || o.hasThumb, children: /* @__PURE__ */ l.jsx(YS, { ref: t, ...r }) });
14557
+ return /* @__PURE__ */ l.jsx(Ht, { present: n || o.hasThumb, children: /* @__PURE__ */ l.jsx(XS, { ref: t, ...r }) });
14545
14558
  }
14546
- ), YS = p.forwardRef(
14559
+ ), XS = p.forwardRef(
14547
14560
  (e, t) => {
14548
14561
  const { __scopeScrollArea: n, style: r, ...o } = e, s = Zt(Jo, n), i = ih(Jo, n), { onThumbPositionChange: a } = i, c = Me(
14549
14562
  t,
@@ -14556,7 +14569,7 @@ var WS = p.forwardRef((e, t) => {
14556
14569
  if (f) {
14557
14570
  const h = () => {
14558
14571
  if (d(), !u.current) {
14559
- const m = ZS(f, a);
14572
+ const m = QS(f, a);
14560
14573
  u.current = m, a();
14561
14574
  }
14562
14575
  };
@@ -14586,11 +14599,11 @@ lh.displayName = Jo;
14586
14599
  var Fa = "ScrollAreaCorner", ch = p.forwardRef(
14587
14600
  (e, t) => {
14588
14601
  const n = Zt(Fa, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY);
14589
- return n.type !== "scroll" && r ? /* @__PURE__ */ l.jsx(XS, { ...e, ref: t }) : null;
14602
+ return n.type !== "scroll" && r ? /* @__PURE__ */ l.jsx(JS, { ...e, ref: t }) : null;
14590
14603
  }
14591
14604
  );
14592
14605
  ch.displayName = Fa;
14593
- var XS = p.forwardRef((e, t) => {
14606
+ var JS = p.forwardRef((e, t) => {
14594
14607
  const { __scopeScrollArea: n, ...r } = e, o = Zt(Fa, n), [s, i] = p.useState(0), [a, c] = p.useState(0), u = !!(s && a);
14595
14608
  return br(o.scrollbarX, () => {
14596
14609
  var f;
@@ -14628,7 +14641,7 @@ function As(e) {
14628
14641
  const t = uh(e.viewport, e.content), n = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - n) * t;
14629
14642
  return Math.max(r, 18);
14630
14643
  }
14631
- function JS(e, t, n, r = "ltr") {
14644
+ function ZS(e, t, n, r = "ltr") {
14632
14645
  const o = As(n), s = o / 2, i = t || s, a = o - i, c = n.scrollbar.paddingStart + i, u = n.scrollbar.size - n.scrollbar.paddingEnd - a, d = n.content - n.viewport, f = r === "ltr" ? [0, d] : [d * -1, 0];
14633
14646
  return dh([c, u], f)(e);
14634
14647
  }
@@ -14646,7 +14659,7 @@ function dh(e, t) {
14646
14659
  function fh(e, t) {
14647
14660
  return e > 0 && e < t;
14648
14661
  }
14649
- var ZS = (e, t = () => {
14662
+ var QS = (e, t = () => {
14650
14663
  }) => {
14651
14664
  let n = { left: e.scrollLeft, top: e.scrollTop }, r = 0;
14652
14665
  return function o() {
@@ -14674,7 +14687,7 @@ function br(e, t) {
14674
14687
  }
14675
14688
  }, [e, n]);
14676
14689
  }
14677
- var hh = nh, QS = oh, eC = ch;
14690
+ var hh = nh, eC = oh, tC = ch;
14678
14691
  const ph = p.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ l.jsxs(
14679
14692
  hh,
14680
14693
  {
@@ -14682,9 +14695,9 @@ const ph = p.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
14682
14695
  className: Q("relative overflow-hidden", e),
14683
14696
  ...n,
14684
14697
  children: [
14685
- /* @__PURE__ */ l.jsx(QS, { className: "h-full w-full rounded-[inherit] overflow-auto", children: t }),
14698
+ /* @__PURE__ */ l.jsx(eC, { className: "h-full w-full rounded-[inherit] overflow-auto", children: t }),
14686
14699
  /* @__PURE__ */ l.jsx(mh, {}),
14687
- /* @__PURE__ */ l.jsx(eC, {})
14700
+ /* @__PURE__ */ l.jsx(tC, {})
14688
14701
  ]
14689
14702
  }
14690
14703
  ));
@@ -14845,7 +14858,7 @@ function gr(e) {
14845
14858
  if (!(typeof globalThis > "u"))
14846
14859
  return globalThis[e];
14847
14860
  }
14848
- function tC(e) {
14861
+ function nC(e) {
14849
14862
  if (typeof e != "string") return;
14850
14863
  const t = e.trim();
14851
14864
  if (t)
@@ -14858,7 +14871,7 @@ function gh() {
14858
14871
  gr("__CHAT_API_URL__")
14859
14872
  ];
14860
14873
  for (const t of e) {
14861
- const n = tC(t);
14874
+ const n = nC(t);
14862
14875
  if (n) return n;
14863
14876
  }
14864
14877
  }
@@ -14872,12 +14885,12 @@ function xh() {
14872
14885
  if (typeof t == "string" && t.trim())
14873
14886
  return t.trim();
14874
14887
  }
14875
- function nC() {
14888
+ function rC() {
14876
14889
  const e = {}, t = gh(), n = xh();
14877
14890
  return t && (e.baseUrl = t), n && (e.apiKey = n), e;
14878
14891
  }
14879
- function rC() {
14880
- const e = nC(), t = qn.getAuthToken(), n = gh();
14892
+ function oC() {
14893
+ const e = rC(), t = qn.getAuthToken(), n = gh();
14881
14894
  return {
14882
14895
  apiBaseUrl: e.baseUrl || qn.baseUrl || n || "http://localhost:8000",
14883
14896
  apiKey: t || e.apiKey || xh() || "",
@@ -14895,7 +14908,7 @@ function rC() {
14895
14908
  };
14896
14909
  }
14897
14910
  const vh = "chat-settings";
14898
- function oC() {
14911
+ function sC() {
14899
14912
  try {
14900
14913
  const e = localStorage.getItem(vh);
14901
14914
  return e ? JSON.parse(e) : {};
@@ -14903,15 +14916,15 @@ function oC() {
14903
14916
  return console.error("Failed to parse stored settings:", e), {};
14904
14917
  }
14905
14918
  }
14906
- function sC(e) {
14919
+ function iC(e) {
14907
14920
  try {
14908
14921
  localStorage.setItem(vh, JSON.stringify(e)), e.apiKey && qn.setAuthToken(e.apiKey);
14909
14922
  } catch (t) {
14910
14923
  console.error("Failed to save settings:", t);
14911
14924
  }
14912
14925
  }
14913
- function _T() {
14914
- const e = rC(), t = oC(), n = qn.getAuthToken();
14926
+ function jT() {
14927
+ const e = oC(), t = sC(), n = qn.getAuthToken();
14915
14928
  return {
14916
14929
  ...e,
14917
14930
  ...t,
@@ -14921,10 +14934,10 @@ function _T() {
14921
14934
  apiBaseUrl: qn.baseUrl || t.apiBaseUrl || e.apiBaseUrl
14922
14935
  };
14923
14936
  }
14924
- function jT(e) {
14925
- e.apiKey && qn.setAuthToken(e.apiKey), sC(e);
14937
+ function PT(e) {
14938
+ e.apiKey && qn.setAuthToken(e.apiKey), iC(e);
14926
14939
  }
14927
- var iC = "Label", wh = p.forwardRef((e, t) => /* @__PURE__ */ l.jsx(
14940
+ var aC = "Label", wh = p.forwardRef((e, t) => /* @__PURE__ */ l.jsx(
14928
14941
  Se.label,
14929
14942
  {
14930
14943
  ...e,
@@ -14935,15 +14948,15 @@ var iC = "Label", wh = p.forwardRef((e, t) => /* @__PURE__ */ l.jsx(
14935
14948
  }
14936
14949
  }
14937
14950
  ));
14938
- wh.displayName = iC;
14951
+ wh.displayName = aC;
14939
14952
  var bh = wh;
14940
- const aC = es(
14953
+ const lC = es(
14941
14954
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
14942
14955
  ), Kt = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
14943
14956
  bh,
14944
14957
  {
14945
14958
  ref: n,
14946
- className: Q(aC(), e),
14959
+ className: Q(lC(), e),
14947
14960
  ...t
14948
14961
  }
14949
14962
  ));
@@ -14952,7 +14965,7 @@ function yh(e) {
14952
14965
  const t = p.useRef({ value: e, previous: e });
14953
14966
  return p.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
14954
14967
  }
14955
- var js = "Switch", [lC, PT] = xn(js), [cC, uC] = lC(js), Sh = p.forwardRef(
14968
+ var js = "Switch", [cC, OT] = xn(js), [uC, dC] = cC(js), Sh = p.forwardRef(
14956
14969
  (e, t) => {
14957
14970
  const {
14958
14971
  __scopeSwitch: n,
@@ -14971,7 +14984,7 @@ var js = "Switch", [lC, PT] = xn(js), [cC, uC] = lC(js), Sh = p.forwardRef(
14971
14984
  onChange: u,
14972
14985
  caller: js
14973
14986
  });
14974
- return /* @__PURE__ */ l.jsxs(cC, { scope: n, checked: x, disabled: a, children: [
14987
+ return /* @__PURE__ */ l.jsxs(uC, { scope: n, checked: x, disabled: a, children: [
14975
14988
  /* @__PURE__ */ l.jsx(
14976
14989
  Se.button,
14977
14990
  {
@@ -15010,7 +15023,7 @@ var js = "Switch", [lC, PT] = xn(js), [cC, uC] = lC(js), Sh = p.forwardRef(
15010
15023
  Sh.displayName = js;
15011
15024
  var Ch = "SwitchThumb", Th = p.forwardRef(
15012
15025
  (e, t) => {
15013
- const { __scopeSwitch: n, ...r } = e, o = uC(Ch, n);
15026
+ const { __scopeSwitch: n, ...r } = e, o = dC(Ch, n);
15014
15027
  return /* @__PURE__ */ l.jsx(
15015
15028
  Se.span,
15016
15029
  {
@@ -15023,7 +15036,7 @@ var Ch = "SwitchThumb", Th = p.forwardRef(
15023
15036
  }
15024
15037
  );
15025
15038
  Th.displayName = Ch;
15026
- var dC = "SwitchBubbleInput", kh = p.forwardRef(
15039
+ var fC = "SwitchBubbleInput", kh = p.forwardRef(
15027
15040
  ({
15028
15041
  __scopeSwitch: e,
15029
15042
  control: t,
@@ -15064,11 +15077,11 @@ var dC = "SwitchBubbleInput", kh = p.forwardRef(
15064
15077
  );
15065
15078
  }
15066
15079
  );
15067
- kh.displayName = dC;
15080
+ kh.displayName = fC;
15068
15081
  function Rh(e) {
15069
15082
  return e ? "checked" : "unchecked";
15070
15083
  }
15071
- var Eh = Sh, fC = Th;
15084
+ var Eh = Sh, hC = Th;
15072
15085
  const Rn = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
15073
15086
  Eh,
15074
15087
  {
@@ -15079,7 +15092,7 @@ const Rn = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
15079
15092
  ...t,
15080
15093
  ref: n,
15081
15094
  children: /* @__PURE__ */ l.jsx(
15082
- fC,
15095
+ hC,
15083
15096
  {
15084
15097
  className: Q(
15085
15098
  "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"
@@ -15101,7 +15114,7 @@ var Ih = Object.freeze({
15101
15114
  clip: "rect(0, 0, 0, 0)",
15102
15115
  whiteSpace: "nowrap",
15103
15116
  wordWrap: "normal"
15104
- }), hC = "VisuallyHidden", pC = p.forwardRef(
15117
+ }), pC = "VisuallyHidden", mC = p.forwardRef(
15105
15118
  (e, t) => /* @__PURE__ */ l.jsx(
15106
15119
  Se.span,
15107
15120
  {
@@ -15111,11 +15124,11 @@ var Ih = Object.freeze({
15111
15124
  }
15112
15125
  )
15113
15126
  );
15114
- pC.displayName = hC;
15115
- var mC = [" ", "Enter", "ArrowUp", "ArrowDown"], gC = [" ", "Enter"], Zn = "Select", [Ps, Os, xC] = wa(Zn), [Er, OT] = xn(Zn, [
15116
- xC,
15127
+ mC.displayName = pC;
15128
+ var gC = [" ", "Enter", "ArrowUp", "ArrowDown"], xC = [" ", "Enter"], Zn = "Select", [Ps, Os, vC] = wa(Zn), [Er, MT] = xn(Zn, [
15129
+ vC,
15117
15130
  Rs
15118
- ]), Ms = Rs(), [vC, Mn] = Er(Zn), [wC, bC] = Er(Zn), Nh = (e) => {
15131
+ ]), Ms = Rs(), [wC, Mn] = Er(Zn), [bC, yC] = Er(Zn), Nh = (e) => {
15119
15132
  const {
15120
15133
  __scopeSelect: t,
15121
15134
  children: n,
@@ -15143,7 +15156,7 @@ var mC = [" ", "Enter", "ArrowUp", "ArrowDown"], gC = [" ", "Enter"], Zn = "Sele
15143
15156
  caller: Zn
15144
15157
  }), _ = p.useRef(null), L = g ? b || !!g.closest("form") : !0, [q, O] = p.useState(/* @__PURE__ */ new Set()), W = Array.from(q).map((U) => U.props.value).join(";");
15145
15158
  return /* @__PURE__ */ l.jsx(Xd, { ...w, children: /* @__PURE__ */ l.jsxs(
15146
- vC,
15159
+ wC,
15147
15160
  {
15148
15161
  required: m,
15149
15162
  scope: t,
@@ -15163,7 +15176,7 @@ var mC = [" ", "Enter", "ArrowUp", "ArrowDown"], gC = [" ", "Enter"], Zn = "Sele
15163
15176
  disabled: h,
15164
15177
  children: [
15165
15178
  /* @__PURE__ */ l.jsx(Ps.Provider, { scope: t, children: /* @__PURE__ */ l.jsx(
15166
- wC,
15179
+ bC,
15167
15180
  {
15168
15181
  scope: e.__scopeSelect,
15169
15182
  onNativeOptionAdd: p.useCallback((U) => {
@@ -15239,7 +15252,7 @@ var Ah = "SelectTrigger", _h = p.forwardRef(
15239
15252
  }),
15240
15253
  onKeyDown: ae(o.onKeyDown, (w) => {
15241
15254
  const g = f.current !== "";
15242
- !(w.ctrlKey || w.altKey || w.metaKey) && w.key.length === 1 && h(w.key), !(g && w.key === " ") && mC.includes(w.key) && (b(), w.preventDefault());
15255
+ !(w.ctrlKey || w.altKey || w.metaKey) && w.key.length === 1 && h(w.key), !(g && w.key === " ") && gC.includes(w.key) && (b(), w.preventDefault());
15243
15256
  })
15244
15257
  }
15245
15258
  ) });
@@ -15263,15 +15276,15 @@ var jh = "SelectValue", Ph = p.forwardRef(
15263
15276
  }
15264
15277
  );
15265
15278
  Ph.displayName = jh;
15266
- var yC = "SelectIcon", Oh = p.forwardRef(
15279
+ var SC = "SelectIcon", Oh = p.forwardRef(
15267
15280
  (e, t) => {
15268
15281
  const { __scopeSelect: n, children: r, ...o } = e;
15269
15282
  return /* @__PURE__ */ l.jsx(Se.span, { "aria-hidden": !0, ...o, ref: t, children: r || "▼" });
15270
15283
  }
15271
15284
  );
15272
- Oh.displayName = yC;
15273
- var SC = "SelectPortal", Mh = (e) => /* @__PURE__ */ l.jsx(ms, { asChild: !0, ...e });
15274
- Mh.displayName = SC;
15285
+ Oh.displayName = SC;
15286
+ var CC = "SelectPortal", Mh = (e) => /* @__PURE__ */ l.jsx(ms, { asChild: !0, ...e });
15287
+ Mh.displayName = CC;
15275
15288
  var Qn = "SelectContent", Dh = p.forwardRef(
15276
15289
  (e, t) => {
15277
15290
  const n = Mn(Qn, e.__scopeSelect), [r, o] = p.useState();
@@ -15288,7 +15301,7 @@ var Qn = "SelectContent", Dh = p.forwardRef(
15288
15301
  }
15289
15302
  );
15290
15303
  Dh.displayName = Qn;
15291
- var Qt = 10, [Lh, Dn] = Er(Qn), CC = "SelectContentImpl", TC = xr("SelectContent.RemoveScroll"), $h = p.forwardRef(
15304
+ var Qt = 10, [Lh, Dn] = Er(Qn), TC = "SelectContentImpl", kC = xr("SelectContent.RemoveScroll"), $h = p.forwardRef(
15292
15305
  (e, t) => {
15293
15306
  const {
15294
15307
  __scopeSelect: n,
@@ -15396,7 +15409,7 @@ var Qt = 10, [Lh, Dn] = Er(Qn), CC = "SelectContentImpl", TC = xr("SelectContent
15396
15409
  position: r,
15397
15410
  isPositioned: q,
15398
15411
  searchRef: K,
15399
- children: /* @__PURE__ */ l.jsx(xs, { as: TC, allowPinchZoom: !0, children: /* @__PURE__ */ l.jsx(
15412
+ children: /* @__PURE__ */ l.jsx(xs, { as: kC, allowPinchZoom: !0, children: /* @__PURE__ */ l.jsx(
15400
15413
  ps,
15401
15414
  {
15402
15415
  asChild: !0,
@@ -15458,8 +15471,8 @@ var Qt = 10, [Lh, Dn] = Er(Qn), CC = "SelectContentImpl", TC = xr("SelectContent
15458
15471
  );
15459
15472
  }
15460
15473
  );
15461
- $h.displayName = CC;
15462
- var kC = "SelectItemAlignedPosition", Fh = p.forwardRef((e, t) => {
15474
+ $h.displayName = TC;
15475
+ var RC = "SelectItemAlignedPosition", Fh = p.forwardRef((e, t) => {
15463
15476
  const { __scopeSelect: n, onPlaced: r, ...o } = e, s = Mn(Qn, n), i = Dn(Qn, n), [a, c] = p.useState(null), [u, d] = p.useState(null), f = Me(t, (R) => d(R)), h = Os(n), m = p.useRef(!1), b = p.useRef(!0), { viewport: w, selectedItem: g, selectedItemText: x, focusSelectedItem: v } = i, y = p.useCallback(() => {
15464
15477
  if (s.trigger && s.valueNode && a && u && w && g && x) {
15465
15478
  const R = s.trigger.getBoundingClientRect(), E = u.getBoundingClientRect(), A = s.valueNode.getBoundingClientRect(), P = x.getBoundingClientRect();
@@ -15527,7 +15540,7 @@ var kC = "SelectItemAlignedPosition", Fh = p.forwardRef((e, t) => {
15527
15540
  [y, v]
15528
15541
  );
15529
15542
  return /* @__PURE__ */ l.jsx(
15530
- EC,
15543
+ IC,
15531
15544
  {
15532
15545
  scope: n,
15533
15546
  contentWrapper: a,
@@ -15563,8 +15576,8 @@ var kC = "SelectItemAlignedPosition", Fh = p.forwardRef((e, t) => {
15563
15576
  }
15564
15577
  );
15565
15578
  });
15566
- Fh.displayName = kC;
15567
- var RC = "SelectPopperPosition", $i = p.forwardRef((e, t) => {
15579
+ Fh.displayName = RC;
15580
+ var EC = "SelectPopperPosition", $i = p.forwardRef((e, t) => {
15568
15581
  const {
15569
15582
  __scopeSelect: n,
15570
15583
  align: r = "start",
@@ -15592,8 +15605,8 @@ var RC = "SelectPopperPosition", $i = p.forwardRef((e, t) => {
15592
15605
  }
15593
15606
  );
15594
15607
  });
15595
- $i.displayName = RC;
15596
- var [EC, za] = Er(Qn, {}), Fi = "SelectViewport", zh = p.forwardRef(
15608
+ $i.displayName = EC;
15609
+ var [IC, za] = Er(Qn, {}), Fi = "SelectViewport", zh = p.forwardRef(
15597
15610
  (e, t) => {
15598
15611
  const { __scopeSelect: n, nonce: r, ...o } = e, s = Dn(Fi, n), i = za(Fi, n), a = Me(t, s.onViewportChange), c = p.useRef(0);
15599
15612
  return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
@@ -15646,21 +15659,21 @@ var [EC, za] = Er(Qn, {}), Fi = "SelectViewport", zh = p.forwardRef(
15646
15659
  }
15647
15660
  );
15648
15661
  zh.displayName = Fi;
15649
- var Bh = "SelectGroup", [IC, NC] = Er(Bh), AC = p.forwardRef(
15662
+ var Bh = "SelectGroup", [NC, AC] = Er(Bh), _C = p.forwardRef(
15650
15663
  (e, t) => {
15651
15664
  const { __scopeSelect: n, ...r } = e, o = hn();
15652
- return /* @__PURE__ */ l.jsx(IC, { scope: n, id: o, children: /* @__PURE__ */ l.jsx(Se.div, { role: "group", "aria-labelledby": o, ...r, ref: t }) });
15665
+ return /* @__PURE__ */ l.jsx(NC, { scope: n, id: o, children: /* @__PURE__ */ l.jsx(Se.div, { role: "group", "aria-labelledby": o, ...r, ref: t }) });
15653
15666
  }
15654
15667
  );
15655
- AC.displayName = Bh;
15668
+ _C.displayName = Bh;
15656
15669
  var Hh = "SelectLabel", Uh = p.forwardRef(
15657
15670
  (e, t) => {
15658
- const { __scopeSelect: n, ...r } = e, o = NC(Hh, n);
15671
+ const { __scopeSelect: n, ...r } = e, o = AC(Hh, n);
15659
15672
  return /* @__PURE__ */ l.jsx(Se.div, { id: o.id, ...r, ref: t });
15660
15673
  }
15661
15674
  );
15662
15675
  Uh.displayName = Hh;
15663
- var Qo = "SelectItem", [_C, Wh] = Er(Qo), Vh = p.forwardRef(
15676
+ var Qo = "SelectItem", [jC, Wh] = Er(Qo), Vh = p.forwardRef(
15664
15677
  (e, t) => {
15665
15678
  const {
15666
15679
  __scopeSelect: n,
@@ -15682,7 +15695,7 @@ var Qo = "SelectItem", [_C, Wh] = Er(Qo), Vh = p.forwardRef(
15682
15695
  "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."
15683
15696
  );
15684
15697
  return /* @__PURE__ */ l.jsx(
15685
- _C,
15698
+ jC,
15686
15699
  {
15687
15700
  scope: n,
15688
15701
  value: r,
@@ -15733,7 +15746,7 @@ var Qo = "SelectItem", [_C, Wh] = Er(Qo), Vh = p.forwardRef(
15733
15746
  }),
15734
15747
  onKeyDown: ae(i.onKeyDown, (v) => {
15735
15748
  var k;
15736
- ((k = c.searchRef) == null ? void 0 : k.current) !== "" && v.key === " " || (gC.includes(v.key) && x(), v.key === " " && v.preventDefault());
15749
+ ((k = c.searchRef) == null ? void 0 : k.current) !== "" && v.key === " " || (xC.includes(v.key) && x(), v.key === " " && v.preventDefault());
15737
15750
  })
15738
15751
  }
15739
15752
  )
@@ -15746,7 +15759,7 @@ var Qo = "SelectItem", [_C, Wh] = Er(Qo), Vh = p.forwardRef(
15746
15759
  Vh.displayName = Qo;
15747
15760
  var Or = "SelectItemText", Kh = p.forwardRef(
15748
15761
  (e, t) => {
15749
- const { __scopeSelect: n, className: r, style: o, ...s } = e, i = Mn(Or, n), a = Dn(Or, n), c = Wh(Or, n), u = bC(Or, n), [d, f] = p.useState(null), h = Me(
15762
+ const { __scopeSelect: n, className: r, style: o, ...s } = e, i = Mn(Or, n), a = Dn(Or, n), c = Wh(Or, n), u = yC(Or, n), [d, f] = p.useState(null), h = Me(
15750
15763
  t,
15751
15764
  (x) => f(x),
15752
15765
  c.onItemTextChange,
@@ -15847,21 +15860,21 @@ var Jh = p.forwardRef((e, t) => {
15847
15860
  })
15848
15861
  }
15849
15862
  );
15850
- }), jC = "SelectSeparator", Zh = p.forwardRef(
15863
+ }), PC = "SelectSeparator", Zh = p.forwardRef(
15851
15864
  (e, t) => {
15852
15865
  const { __scopeSelect: n, ...r } = e;
15853
15866
  return /* @__PURE__ */ l.jsx(Se.div, { "aria-hidden": !0, ...r, ref: t });
15854
15867
  }
15855
15868
  );
15856
- Zh.displayName = jC;
15857
- var Hi = "SelectArrow", PC = p.forwardRef(
15869
+ Zh.displayName = PC;
15870
+ var Hi = "SelectArrow", OC = p.forwardRef(
15858
15871
  (e, t) => {
15859
15872
  const { __scopeSelect: n, ...r } = e, o = Ms(n), s = Mn(Hi, n), i = Dn(Hi, n);
15860
15873
  return s.open && i.position === "popper" ? /* @__PURE__ */ l.jsx(Qd, { ...o, ...r, ref: t }) : null;
15861
15874
  }
15862
15875
  );
15863
- PC.displayName = Hi;
15864
- var OC = "SelectBubbleInput", Qh = p.forwardRef(
15876
+ OC.displayName = Hi;
15877
+ var MC = "SelectBubbleInput", Qh = p.forwardRef(
15865
15878
  ({ __scopeSelect: e, value: t, ...n }, r) => {
15866
15879
  const o = p.useRef(null), s = Me(r, o), i = yh(t);
15867
15880
  return p.useEffect(() => {
@@ -15886,7 +15899,7 @@ var OC = "SelectBubbleInput", Qh = p.forwardRef(
15886
15899
  );
15887
15900
  }
15888
15901
  );
15889
- Qh.displayName = OC;
15902
+ Qh.displayName = MC;
15890
15903
  function ep(e) {
15891
15904
  return e === "" || e === void 0;
15892
15905
  }
@@ -15906,18 +15919,18 @@ function tp(e) {
15906
15919
  }
15907
15920
  function np(e, t, n) {
15908
15921
  const o = t.length > 1 && Array.from(t).every((u) => u === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
15909
- let i = MC(e, Math.max(s, 0));
15922
+ let i = DC(e, Math.max(s, 0));
15910
15923
  o.length === 1 && (i = i.filter((u) => u !== n));
15911
15924
  const c = i.find(
15912
15925
  (u) => u.textValue.toLowerCase().startsWith(o.toLowerCase())
15913
15926
  );
15914
15927
  return c !== n ? c : void 0;
15915
15928
  }
15916
- function MC(e, t) {
15929
+ function DC(e, t) {
15917
15930
  return e.map((n, r) => e[(t + r) % e.length]);
15918
15931
  }
15919
- var DC = Nh, rp = _h, LC = Ph, $C = Oh, FC = Mh, op = Dh, zC = zh, sp = Uh, ip = Vh, BC = Kh, HC = Gh, ap = Yh, lp = Xh, cp = Zh;
15920
- const bc = DC, yc = LC, Ui = p.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ l.jsxs(
15932
+ var LC = Nh, rp = _h, $C = Ph, FC = Oh, zC = Mh, op = Dh, BC = zh, sp = Uh, ip = Vh, HC = Kh, UC = Gh, ap = Yh, lp = Xh, cp = Zh;
15933
+ const bc = LC, yc = $C, Ui = p.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ l.jsxs(
15921
15934
  rp,
15922
15935
  {
15923
15936
  ref: r,
@@ -15928,7 +15941,7 @@ const bc = DC, yc = LC, Ui = p.forwardRef(({ className: e, children: t, ...n },
15928
15941
  ...n,
15929
15942
  children: [
15930
15943
  t,
15931
- /* @__PURE__ */ l.jsx($C, { asChild: !0, children: /* @__PURE__ */ l.jsx(dr, { className: "h-4 w-4 opacity-50" }) })
15944
+ /* @__PURE__ */ l.jsx(FC, { asChild: !0, children: /* @__PURE__ */ l.jsx(dr, { className: "h-4 w-4 opacity-50" }) })
15932
15945
  ]
15933
15946
  }
15934
15947
  ));
@@ -15959,7 +15972,7 @@ const dp = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
15959
15972
  }
15960
15973
  ));
15961
15974
  dp.displayName = lp.displayName;
15962
- const Wi = p.forwardRef(({ className: e, children: t, position: n = "popper", ...r }, o) => /* @__PURE__ */ l.jsx(FC, { children: /* @__PURE__ */ l.jsxs(
15975
+ const Wi = p.forwardRef(({ className: e, children: t, position: n = "popper", ...r }, o) => /* @__PURE__ */ l.jsx(zC, { children: /* @__PURE__ */ l.jsxs(
15963
15976
  op,
15964
15977
  {
15965
15978
  ref: o,
@@ -15973,7 +15986,7 @@ const Wi = p.forwardRef(({ className: e, children: t, position: n = "popper", ..
15973
15986
  children: [
15974
15987
  /* @__PURE__ */ l.jsx(up, {}),
15975
15988
  /* @__PURE__ */ l.jsx(
15976
- zC,
15989
+ BC,
15977
15990
  {
15978
15991
  className: Q(
15979
15992
  "p-1",
@@ -15987,7 +16000,7 @@ const Wi = p.forwardRef(({ className: e, children: t, position: n = "popper", ..
15987
16000
  }
15988
16001
  ) }));
15989
16002
  Wi.displayName = op.displayName;
15990
- const UC = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
16003
+ const WC = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
15991
16004
  sp,
15992
16005
  {
15993
16006
  ref: n,
@@ -15995,7 +16008,7 @@ const UC = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
15995
16008
  ...t
15996
16009
  }
15997
16010
  ));
15998
- UC.displayName = sp.displayName;
16011
+ WC.displayName = sp.displayName;
15999
16012
  const Bn = p.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ l.jsxs(
16000
16013
  ip,
16001
16014
  {
@@ -16006,13 +16019,13 @@ const Bn = p.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
16006
16019
  ),
16007
16020
  ...n,
16008
16021
  children: [
16009
- /* @__PURE__ */ l.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ l.jsx(HC, { children: /* @__PURE__ */ l.jsx(Vi, { className: "h-4 w-4" }) }) }),
16010
- /* @__PURE__ */ l.jsx(BC, { children: t })
16022
+ /* @__PURE__ */ l.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ l.jsx(UC, { children: /* @__PURE__ */ l.jsx(Vi, { className: "h-4 w-4" }) }) }),
16023
+ /* @__PURE__ */ l.jsx(HC, { children: t })
16011
16024
  ]
16012
16025
  }
16013
16026
  ));
16014
16027
  Bn.displayName = ip.displayName;
16015
- const WC = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
16028
+ const VC = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
16016
16029
  cp,
16017
16030
  {
16018
16031
  ref: n,
@@ -16020,9 +16033,9 @@ const WC = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
16020
16033
  ...t
16021
16034
  }
16022
16035
  ));
16023
- WC.displayName = cp.displayName;
16024
- var VC = "Separator", Sc = "horizontal", KC = ["horizontal", "vertical"], fp = p.forwardRef((e, t) => {
16025
- const { decorative: n, orientation: r = Sc, ...o } = e, s = qC(r) ? r : Sc, a = n ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
16036
+ VC.displayName = cp.displayName;
16037
+ var KC = "Separator", Sc = "horizontal", qC = ["horizontal", "vertical"], fp = p.forwardRef((e, t) => {
16038
+ const { decorative: n, orientation: r = Sc, ...o } = e, s = GC(r) ? r : Sc, a = n ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
16026
16039
  return /* @__PURE__ */ l.jsx(
16027
16040
  Se.div,
16028
16041
  {
@@ -16033,9 +16046,9 @@ var VC = "Separator", Sc = "horizontal", KC = ["horizontal", "vertical"], fp = p
16033
16046
  }
16034
16047
  );
16035
16048
  });
16036
- fp.displayName = VC;
16037
- function qC(e) {
16038
- return KC.includes(e);
16049
+ fp.displayName = KC;
16050
+ function GC(e) {
16051
+ return qC.includes(e);
16039
16052
  }
16040
16053
  var hp = fp;
16041
16054
  const pp = p.forwardRef(
@@ -16055,7 +16068,7 @@ const pp = p.forwardRef(
16055
16068
  )
16056
16069
  );
16057
16070
  pp.displayName = hp.displayName;
16058
- const GC = vd, YC = kb, XC = wd, mp = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
16071
+ const YC = vd, XC = Rb, JC = wd, mp = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
16059
16072
  ws,
16060
16073
  {
16061
16074
  className: Q(
@@ -16067,7 +16080,7 @@ const GC = vd, YC = kb, XC = wd, mp = p.forwardRef(({ className: e, ...t }, n) =
16067
16080
  }
16068
16081
  ));
16069
16082
  mp.displayName = ws.displayName;
16070
- const JC = es(
16083
+ const ZC = es(
16071
16084
  "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",
16072
16085
  {
16073
16086
  variants: {
@@ -16082,13 +16095,13 @@ const JC = es(
16082
16095
  side: "right"
16083
16096
  }
16084
16097
  }
16085
- ), gp = p.forwardRef(({ side: e = "right", className: t, children: n, ...r }, o) => /* @__PURE__ */ l.jsxs(XC, { children: [
16098
+ ), gp = p.forwardRef(({ side: e = "right", className: t, children: n, ...r }, o) => /* @__PURE__ */ l.jsxs(JC, { children: [
16086
16099
  /* @__PURE__ */ l.jsx(mp, {}),
16087
16100
  /* @__PURE__ */ l.jsxs(
16088
16101
  bs,
16089
16102
  {
16090
16103
  ref: o,
16091
- className: Q(JC({ side: e }), t),
16104
+ className: Q(ZC({ side: e }), t),
16092
16105
  ...r,
16093
16106
  children: [
16094
16107
  n,
@@ -16133,7 +16146,7 @@ const wp = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
16133
16146
  }
16134
16147
  ));
16135
16148
  wp.displayName = ys.displayName;
16136
- const ZC = {
16149
+ const QC = {
16137
16150
  api: {
16138
16151
  baseUrl: "http://localhost:8000/api",
16139
16152
  authToken: "",
@@ -16152,7 +16165,7 @@ const ZC = {
16152
16165
  showTypingIndicator: !0
16153
16166
  }
16154
16167
  };
16155
- function MT({ settings: e, onSettingsChange: t, className: n = "" }) {
16168
+ function DT({ settings: e, onSettingsChange: t, className: n = "" }) {
16156
16169
  const [r, o] = fe(!1), [s, i] = fe(!1), [a, c] = fe(e), [u, d] = fe(!1), { toast: f } = ha();
16157
16170
  ut(() => {
16158
16171
  const g = JSON.stringify(a) !== JSON.stringify(e);
@@ -16166,7 +16179,7 @@ function MT({ settings: e, onSettingsChange: t, className: n = "" }) {
16166
16179
  description: "Your chat configuration has been updated successfully."
16167
16180
  });
16168
16181
  }, m = () => {
16169
- c(ZC), d(!0), f({
16182
+ c(QC), d(!0), f({
16170
16183
  title: "Settings reset",
16171
16184
  description: "Configuration has been reset to defaults."
16172
16185
  });
@@ -16187,8 +16200,8 @@ function MT({ settings: e, onSettingsChange: t, className: n = "" }) {
16187
16200
  });
16188
16201
  }
16189
16202
  };
16190
- return /* @__PURE__ */ l.jsxs(GC, { open: r, onOpenChange: o, children: [
16191
- /* @__PURE__ */ l.jsx(YC, { asChild: !0, children: /* @__PURE__ */ l.jsxs(Be, { variant: "outline", size: "sm", className: n, children: [
16203
+ return /* @__PURE__ */ l.jsxs(YC, { open: r, onOpenChange: o, children: [
16204
+ /* @__PURE__ */ l.jsx(XC, { asChild: !0, children: /* @__PURE__ */ l.jsxs(Be, { variant: "outline", size: "sm", className: n, children: [
16192
16205
  /* @__PURE__ */ l.jsx(Up, { className: "h-4 w-4 mr-2" }),
16193
16206
  "Settings",
16194
16207
  u && /* @__PURE__ */ l.jsx(Ei, { variant: "destructive", className: "ml-2 h-4 w-4 p-0" })
@@ -16437,7 +16450,7 @@ function MT({ settings: e, onSettingsChange: t, className: n = "" }) {
16437
16450
  ] })
16438
16451
  ] });
16439
16452
  }
16440
- function DT({
16453
+ function LT({
16441
16454
  layout: e = "sidebar",
16442
16455
  layoutSize: t = "desktop",
16443
16456
  showThreads: n = !0,
@@ -16515,20 +16528,20 @@ export {
16515
16528
  Pg as ChatApi,
16516
16529
  ci as ChatInterface,
16517
16530
  Us as ChatProvider,
16518
- MT as ChatSettings,
16531
+ DT as ChatSettings,
16519
16532
  Ys as MarkdownContent,
16520
- zb as MessageComponent,
16533
+ Bb as MessageComponent,
16521
16534
  Ed as MessageList,
16522
16535
  wc as ThreadManager,
16523
- jT as applySettings,
16536
+ PT as applySettings,
16524
16537
  qn as chatApiClient,
16525
- DT as default,
16538
+ LT as default,
16526
16539
  jg as del,
16527
16540
  qt as get,
16528
16541
  Ng as getChatToken,
16529
- _T as getCurrentSettings,
16530
- nC as getDefaultApiConfig,
16531
- rC as getDefaultChatSettings,
16542
+ jT as getCurrentSettings,
16543
+ rC as getDefaultApiConfig,
16544
+ oC as getDefaultChatSettings,
16532
16545
  Ag as onChatTokenChanged,
16533
16546
  hl as post,
16534
16547
  _g as put,