@factorialco/f0-react 7.22.0 → 7.24.0

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.
Files changed (33) hide show
  1. package/dist/{ChatPdfThumbnail-qvQdSurw.js → ChatPdfThumbnail-2_8sBW1U.js} +1 -1
  2. package/dist/{ChatPostComposerDialog-s3q1HVc4.js → ChatPostComposerDialog-BGEl20rM.js} +3 -3
  3. package/dist/{DocumentToolbar-B3gh97Ay.js → DocumentToolbar-BDDt63-g.js} +2 -2
  4. package/dist/{DocxViewer-CSS81Mh3.js → DocxViewer-Dt2nHTXV.js} +2 -2
  5. package/dist/{F0AiProcessingOverlay-D06B5o3I.js → F0AiProcessingOverlay-nojpvoxK.js} +285 -285
  6. package/dist/{F0CanvasPanel-A9QPf6uH.js → F0CanvasPanel-DnlpQoxW.js} +9046 -9030
  7. package/dist/F0Map-C7hMGlk_.js +2499 -0
  8. package/dist/{F0VideoPlayer-BqEMPz3U.js → F0VideoPlayer-DKPfOJBp.js} +79 -79
  9. package/dist/{MapProvider-DklrZcSf.js → MapProvider-DNpgap--.js} +15668 -15614
  10. package/dist/{SheetViewer-BtjAYR_w.js → SheetViewer-Wd4Fmg4a.js} +2 -2
  11. package/dist/{TextViewer-BOPO0hDJ.js → TextViewer-C3OMcE58.js} +2 -2
  12. package/dist/ai.d.ts +10 -0
  13. package/dist/ai.js +2 -2
  14. package/dist/component-status.js +2 -2
  15. package/dist/{experimental-B8jn4Q2z.js → experimental-DZvuUsDE.js} +11859 -13903
  16. package/dist/experimental.d.ts +375 -80
  17. package/dist/experimental.js +291 -284
  18. package/dist/f0.d.ts +182 -0
  19. package/dist/f0.js +6005 -6007
  20. package/dist/i18n-provider-defaults.d.ts +10 -0
  21. package/dist/i18n-provider-defaults.js +11 -1
  22. package/dist/index-B1UwLgNv.js +256 -0
  23. package/dist/index-BUqW79F1.js +4 -0
  24. package/dist/{index-d7fjuIpD.js → index-CCea6fTM.js} +1 -1
  25. package/dist/index-eeXQJkem.js +410 -0
  26. package/dist/{index-C331dySn.js → index-ekx-EJga.js} +31 -31
  27. package/dist/{pdfWorker-B7y75nkc.js → pdfWorker-CK4gerrz.js} +3 -3
  28. package/dist/styles.css +1 -1
  29. package/dist/{tooltip-BElsa4MF.js → tooltip-CrXp1Uaz.js} +2 -2
  30. package/package.json +1 -1
  31. package/dist/index-DaBdqaNW.js +0 -4
  32. package/dist/index-DvEXSMtC.js +0 -255
  33. /package/dist/{experimental.css → maplibre-gl.css} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { jsxs as l, jsx as t, Fragment as M1 } from "react/jsx-runtime";
2
- import { useInsertionEffect as Wr, forwardRef as g, useState as I, useRef as E, useCallback as j, useEffect as W, useLayoutEffect as ae, useMemo as X, useId as U1, createContext as G1, useContext as $1, createElement as qr, memo as Xr } from "react";
3
- import { _ as Yr, $ as Kr, a0 as Qr, a1 as gt, a2 as Jr, a3 as en, a4 as tn, a5 as rn, a6 as nn, a7 as on, a8 as wt, a9 as sn, aa as an, ab as ie, ac as ln, ad as cn, ae as dn, af as un, ag as fn, ah as hn, ai as Cn, aj as pn, ak as mn, A as vt, al as gn, am as wn, an as vn, r as le, ao as xt, ap as I1, q as Lt, aq as xn, ar as Ln, as as bn, at as kn, au as yn, av as Mn, aw as R1, ax as Rn, ay as bt, az as Fn, aA as Nn, aB as Sn, l as y1, aC as Vn, aD as Tn, aE as kt, aF as An, aG as En, aH as Hn, aI as $n, aJ as In, aK as Bn, aL as yt, aM as Pn, aN as Dn, aO as _n, aP as jn, aQ as On, aR as Zn, aS as Un, aT as zn, aU as Gn, aV as Wn, aW as qn, aX as Xn, aY as Yn, aZ as Kn, J as Qn, a_ as Jn, a$ as eo, b0 as to, b1 as ro, b2 as no, b3 as oo, b4 as so, b5 as ao, b6 as io, b7 as lo, b8 as co, b9 as uo, ba as fo, bb as ho, bc as Co, bd as po, be as mo, bf as go, bg as wo, X as Mt, bh as vo, bi as xo, bj as Lo, bk as bo, bl as Rt, bm as ko, W as Ft, bn as yo, i as Mo, bo as Ro, bp as Fo, bq as No, br as So, bs as Vo, bt as Nt, bu as To, bv as Ao, bw as Eo, bx as Ho, by as $o, bz as Io, bA as Bo, j as Po, bB as St, bC as Vt, bD as Do, bE as Tt, bF as _o, bG as ce, s as jo, bH as de, bI as Oo, G as Zo, bJ as Uo, bK as ue, U as zo, V as Go, bL as At, bM as Wo, bN as qo, bO as Xo, bP as Yo, bQ as Ko, bR as Qo, bS as Jo, bT as es, bU as ts, bV as rs, bW as Et, bX as ns, bY as os, bZ as ss, b_ as as, b$ as is, u as z, x as W1, y as fe, z as q1, Y as o1, c0 as s1, c1 as ls, S as u1, c2 as Ht, c3 as cs, o as p1, c4 as ds, c5 as a1, c6 as f1, c7 as w1, c8 as K, c9 as $t, ca as us, b as v1, cb as fs, cc as hs, cd as Cs, d as It, ce as ps, cf as ms, cg as gs, ch as ws, ci as vs, cj as $e, ck as xs, cl as Bt, cm as he, cn as Pt, co as Ls, cp as bs, cq as ks, cr as ys, cs as Ms, ct as Dt, m as Rs, cu as Fs, cv as Ns, cw as H1, cx as _t, cy as jt, cz as Ot, c as oe, cA as Ie, cB as Zt, cC as Ss, cD as Vs, cE as B1, cF as Ts, cG as As, cH as Es, cI as Ce, cJ as Hs, cK as $s, cL as Is, cM as Bs, cN as Ps, cO as Ds, w as _s, v as js, cP as J1, cQ as Be, cR as Ut, cS as zt, cT as Os, cU as Zs, cV as Us, cW as zs, cX as Gs, cY as Ws } from "./F0CanvasPanel-A9QPf6uH.js";
4
- import { d as b, f as i1, u as qs } from "./tooltip-BElsa4MF.js";
2
+ import { useInsertionEffect as Wr, forwardRef as g, useState as I, useRef as E, useCallback as O, useEffect as W, useLayoutEffect as ae, useMemo as X, useId as U1, createContext as G1, useContext as $1, createElement as qr, memo as Xr } from "react";
3
+ import { a7 as Yr, ak as Kr, al as Qr, am as gt, an as Jr, ao as en, ap as tn, aq as rn, ar as nn, as as on, at as wt, au as sn, av as an, aw as ie, ax as ln, ay as cn, az as dn, aA as un, aB as fn, aC as hn, aD as Cn, aE as pn, aF as mn, L as vt, aG as gn, aH as wn, aI as vn, w as le, aJ as xt, aK as I1, z as Lt, aL as xn, aM as Ln, aN as bn, aO as kn, aP as yn, aQ as Mn, ai as R1, aR as Rn, aS as bt, aT as Fn, aU as Nn, aV as Sn, l as y1, aW as Tn, aX as Vn, aY as kt, aZ as An, a_ as En, a$ as Hn, b0 as $n, b1 as In, b2 as Bn, b3 as yt, b4 as Pn, b5 as Dn, b6 as _n, b7 as On, b8 as jn, b9 as Zn, ba as Un, bb as zn, bc as Gn, bd as Wn, be as qn, a5 as Xn, bf as Yn, bg as Kn, R as Qn, bh as Jn, bi as eo, bj as to, bk as ro, bl as no, bm as oo, bn as so, bo as ao, bp as io, bq as lo, br as co, bs as uo, bt as fo, bu as ho, bv as Co, bw as po, bx as mo, by as go, bz as wo, a2 as Mt, bA as vo, bB as xo, bC as Lo, bD as bo, bE as Rt, bF as ko, a1 as Ft, bG as yo, i as Mo, bH as Ro, bI as Fo, ac as No, bJ as So, bK as To, bL as Nt, bM as Vo, bN as Ao, bO as Eo, bP as Ho, bQ as $o, bR as Io, bS as Bo, j as Po, bT as St, bU as Tt, bV as Do, bW as Vt, bX as _o, bY as ce, A as Oo, bZ as de, b_ as jo, O as Zo, b$ as Uo, c0 as ue, $ as zo, a0 as Go, c1 as At, c2 as Wo, c3 as qo, c4 as Xo, c5 as Yo, c6 as Ko, c7 as Qo, a6 as Jo, c8 as es, c9 as ts, ca as rs, cb as Et, cc as ns, cd as os, ce as ss, cf as as, cg as is, u as z, H as W1, J as fe, K as q1, v as o1, ch as s1, ci as ls, S as u1, cj as Ht, ck as cs, y as p1, cl as ds, cm as a1, ad as f1, aa as w1, ab as K, cn as $t, co as us, b as v1, cp as fs, cq as hs, cr as Cs, d as It, cs as ps, ct as ms, cu as gs, cv as ws, cw as vs, cx as $e, cy as xs, cz as Bt, cA as he, cB as Pt, cC as Ls, cD as bs, cE as ks, cF as ys, cG as Ms, cH as Dt, m as Rs, cI as Fs, cJ as Ns, ah as H1, s as _t, t as Ot, x as jt, c as oe, cK as Ie, cL as Zt, cM as Ss, cN as Ts, cO as B1, cP as Vs, q as As, cQ as Es, cR as Ce, cS as Hs, cT as $s, cU as Is, cV as Bs, cW as Ps, cX as Ds, B as _s, G as Os, a3 as J1, cY as Be, cZ as Ut, c_ as zt, c$ as js, d0 as Zs, d1 as Us, d2 as zs, d3 as Gs, d4 as Ws } from "./F0CanvasPanel-DnlpQoxW.js";
4
+ import { d as b, f as i1, g as qs } from "./tooltip-CrXp1Uaz.js";
5
5
  import { createPortal as Gt } from "react-dom";
6
6
  import { defaultTranslations as Xs } from "./i18n-provider-defaults.js";
7
7
  import { useTrackVolume as Ys } from "@livekit/components-react";
@@ -383,7 +383,7 @@ const ra = (e, r) => /* @__PURE__ */ l(
383
383
  )
384
384
  ]
385
385
  }
386
- ), Sa = g(Na), Va = (e, r) => /* @__PURE__ */ l(
386
+ ), Sa = g(Na), Ta = (e, r) => /* @__PURE__ */ l(
387
387
  "svg",
388
388
  {
389
389
  xmlns: "http://www.w3.org/2000/svg",
@@ -421,7 +421,7 @@ const ra = (e, r) => /* @__PURE__ */ l(
421
421
  )
422
422
  ]
423
423
  }
424
- ), Ta = g(Va), Aa = (e, r) => /* @__PURE__ */ l(
424
+ ), Va = g(Ta), Aa = (e, r) => /* @__PURE__ */ l(
425
425
  "svg",
426
426
  {
427
427
  xmlns: "http://www.w3.org/2000/svg",
@@ -550,7 +550,7 @@ const ra = (e, r) => /* @__PURE__ */ l(
550
550
  }
551
551
  )
552
552
  }
553
- ), ja = g(_a), Oa = (e, r) => /* @__PURE__ */ t(
553
+ ), Oa = g(_a), ja = (e, r) => /* @__PURE__ */ t(
554
554
  "svg",
555
555
  {
556
556
  xmlns: "http://www.w3.org/2000/svg",
@@ -566,7 +566,7 @@ const ra = (e, r) => /* @__PURE__ */ l(
566
566
  }
567
567
  )
568
568
  }
569
- ), Za = g(Oa), Ua = (e, r) => /* @__PURE__ */ t(
569
+ ), Za = g(ja), Ua = (e, r) => /* @__PURE__ */ t(
570
570
  "svg",
571
571
  {
572
572
  xmlns: "http://www.w3.org/2000/svg",
@@ -1062,7 +1062,7 @@ const ra = (e, r) => /* @__PURE__ */ l(
1062
1062
  )
1063
1063
  ]
1064
1064
  }
1065
- ), Si = g(Ni), Vi = (e, r) => /* @__PURE__ */ l(
1065
+ ), Si = g(Ni), Ti = (e, r) => /* @__PURE__ */ l(
1066
1066
  "svg",
1067
1067
  {
1068
1068
  xmlns: "http://www.w3.org/2000/svg",
@@ -1091,7 +1091,7 @@ const ra = (e, r) => /* @__PURE__ */ l(
1091
1091
  )
1092
1092
  ]
1093
1093
  }
1094
- ), Ti = g(Vi), Ai = (e, r) => /* @__PURE__ */ l(
1094
+ ), Vi = g(Ti), Ai = (e, r) => /* @__PURE__ */ l(
1095
1095
  "svg",
1096
1096
  {
1097
1097
  xmlns: "http://www.w3.org/2000/svg",
@@ -1201,7 +1201,7 @@ const ra = (e, r) => /* @__PURE__ */ l(
1201
1201
  }
1202
1202
  )
1203
1203
  }
1204
- ), ji = g(_i), Oi = (e, r) => /* @__PURE__ */ t(
1204
+ ), Oi = g(_i), ji = (e, r) => /* @__PURE__ */ t(
1205
1205
  "svg",
1206
1206
  {
1207
1207
  xmlns: "http://www.w3.org/2000/svg",
@@ -1219,7 +1219,7 @@ const ra = (e, r) => /* @__PURE__ */ l(
1219
1219
  }
1220
1220
  )
1221
1221
  }
1222
- ), Zi = g(Oi), Ui = (e, r) => /* @__PURE__ */ l(
1222
+ ), Zi = g(ji), Ui = (e, r) => /* @__PURE__ */ l(
1223
1223
  "svg",
1224
1224
  {
1225
1225
  xmlns: "http://www.w3.org/2000/svg",
@@ -1887,7 +1887,7 @@ const ra = (e, r) => /* @__PURE__ */ l(
1887
1887
  )
1888
1888
  ]
1889
1889
  }
1890
- ), V5 = g(S5), T5 = (e, r) => /* @__PURE__ */ l(
1890
+ ), T5 = g(S5), V5 = (e, r) => /* @__PURE__ */ l(
1891
1891
  "svg",
1892
1892
  {
1893
1893
  xmlns: "http://www.w3.org/2000/svg",
@@ -1914,7 +1914,7 @@ const ra = (e, r) => /* @__PURE__ */ l(
1914
1914
  )
1915
1915
  ]
1916
1916
  }
1917
- ), A5 = g(T5), E5 = (e, r) => /* @__PURE__ */ l(
1917
+ ), A5 = g(V5), E5 = (e, r) => /* @__PURE__ */ l(
1918
1918
  "svg",
1919
1919
  {
1920
1920
  xmlns: "http://www.w3.org/2000/svg",
@@ -2082,7 +2082,7 @@ const ra = (e, r) => /* @__PURE__ */ l(
2082
2082
  )
2083
2083
  ]
2084
2084
  }
2085
- ), j5 = g(_5), O5 = (e, r) => /* @__PURE__ */ t(
2085
+ ), O5 = g(_5), j5 = (e, r) => /* @__PURE__ */ t(
2086
2086
  "svg",
2087
2087
  {
2088
2088
  xmlns: "http://www.w3.org/2000/svg",
@@ -2100,7 +2100,7 @@ const ra = (e, r) => /* @__PURE__ */ l(
2100
2100
  }
2101
2101
  )
2102
2102
  }
2103
- ), Z5 = g(O5), U5 = (e, r) => /* @__PURE__ */ l(
2103
+ ), Z5 = g(j5), U5 = (e, r) => /* @__PURE__ */ l(
2104
2104
  "svg",
2105
2105
  {
2106
2106
  xmlns: "http://www.w3.org/2000/svg",
@@ -2743,7 +2743,7 @@ const ra = (e, r) => /* @__PURE__ */ l(
2743
2743
  }
2744
2744
  )
2745
2745
  }
2746
- ), V0 = g(S0), T0 = (e, r) => /* @__PURE__ */ l(
2746
+ ), T0 = g(S0), V0 = (e, r) => /* @__PURE__ */ l(
2747
2747
  "svg",
2748
2748
  {
2749
2749
  xmlns: "http://www.w3.org/2000/svg",
@@ -2790,7 +2790,7 @@ const ra = (e, r) => /* @__PURE__ */ l(
2790
2790
  )
2791
2791
  ]
2792
2792
  }
2793
- ), A0 = g(T0), E0 = (e, r) => /* @__PURE__ */ l(
2793
+ ), A0 = g(V0), E0 = (e, r) => /* @__PURE__ */ l(
2794
2794
  "svg",
2795
2795
  {
2796
2796
  xmlns: "http://www.w3.org/2000/svg",
@@ -2911,7 +2911,7 @@ const ra = (e, r) => /* @__PURE__ */ l(
2911
2911
  )
2912
2912
  ]
2913
2913
  }
2914
- ), _0 = g(D0), j0 = (e, r) => /* @__PURE__ */ t(
2914
+ ), _0 = g(D0), O0 = (e, r) => /* @__PURE__ */ t(
2915
2915
  "svg",
2916
2916
  {
2917
2917
  xmlns: "http://www.w3.org/2000/svg",
@@ -2928,7 +2928,7 @@ const ra = (e, r) => /* @__PURE__ */ l(
2928
2928
  }
2929
2929
  )
2930
2930
  }
2931
- ), O0 = g(j0), Z0 = (e, r) => /* @__PURE__ */ l(
2931
+ ), j0 = g(O0), Z0 = (e, r) => /* @__PURE__ */ l(
2932
2932
  "svg",
2933
2933
  {
2934
2934
  xmlns: "http://www.w3.org/2000/svg",
@@ -3541,13 +3541,13 @@ const U0 = (e, r) => /* @__PURE__ */ l(
3541
3541
  Bullet: hn,
3542
3542
  Calculator: Cn,
3543
3543
  Calendar: pn,
3544
- CalendarArrowDown: Ta,
3544
+ CalendarArrowDown: Va,
3545
3545
  CalendarArrowLeft: Ea,
3546
3546
  CalendarArrowRight: $a,
3547
3547
  CameraPlus: mn,
3548
3548
  CardPin: Ba,
3549
3549
  ChartFunnel: Da,
3550
- ChartHorizontalBars: ja,
3550
+ ChartHorizontalBars: Oa,
3551
3551
  ChartLine: Za,
3552
3552
  ChartPie: za,
3553
3553
  ChartVerticalBars: Wa,
@@ -3586,8 +3586,8 @@ const U0 = (e, r) => /* @__PURE__ */ l(
3586
3586
  DollarReset: Li,
3587
3587
  DottedCircle: Sn,
3588
3588
  Download: y1,
3589
- DropdownDefault: Vn,
3590
- DropdownOpen: Tn,
3589
+ DropdownDefault: Tn,
3590
+ DropdownOpen: Vn,
3591
3591
  Ellipsis: kt,
3592
3592
  EllipsisHorizontal: An,
3593
3593
  Envelope: En,
@@ -3601,8 +3601,8 @@ const U0 = (e, r) => /* @__PURE__ */ l(
3601
3601
  EyeInvisible: Pn,
3602
3602
  EyeVisible: Dn,
3603
3603
  FaceNegative: _n,
3604
- FaceNeutral: jn,
3605
- FacePositive: On,
3604
+ FaceNeutral: On,
3605
+ FacePositive: jn,
3606
3606
  FaceSuperNegative: Zn,
3607
3607
  FaceSuperPositive: Un,
3608
3608
  Feed: Fi,
@@ -3612,7 +3612,7 @@ const U0 = (e, r) => /* @__PURE__ */ l(
3612
3612
  Files: Wn,
3613
3613
  Filter: qn,
3614
3614
  FitView: Xn,
3615
- Flag: Ti,
3615
+ Flag: Vi,
3616
3616
  Flask: Ei,
3617
3617
  Floating: Yn,
3618
3618
  Folder: Kn,
@@ -3621,7 +3621,7 @@ const U0 = (e, r) => /* @__PURE__ */ l(
3621
3621
  Globe: Qn,
3622
3622
  Graph: Di,
3623
3623
  Greater: Jn,
3624
- Group: ji,
3624
+ Group: Oi,
3625
3625
  GroupBy: Zi,
3626
3626
  Handle: eo,
3627
3627
  Handshake: to,
@@ -3665,7 +3665,7 @@ const U0 = (e, r) => /* @__PURE__ */ l(
3665
3665
  Megaphone: xo,
3666
3666
  Menu: Lo,
3667
3667
  MessageFilled: N5,
3668
- MessageFrown: V5,
3668
+ MessageFrown: T5,
3669
3669
  MessageHeart: A5,
3670
3670
  Messages: bo,
3671
3671
  Microphone: Rt,
@@ -3677,7 +3677,7 @@ const U0 = (e, r) => /* @__PURE__ */ l(
3677
3677
  Money: qt,
3678
3678
  MoneyBag: B5,
3679
3679
  MonitorDot: D5,
3680
- MonitorSmartphone: j5,
3680
+ MonitorSmartphone: O5,
3681
3681
  Moon: Z5,
3682
3682
  Mouse: z5,
3683
3683
  MoveDown: Ro,
@@ -3688,13 +3688,13 @@ const U0 = (e, r) => /* @__PURE__ */ l(
3688
3688
  Numbers: Q5,
3689
3689
  Office: No,
3690
3690
  OlList: So,
3691
- Organization: Vo,
3691
+ Organization: To,
3692
3692
  PalmTree: e0,
3693
3693
  Paperclip: Nt,
3694
3694
  PartiallyCompleted: r0,
3695
3695
  Password: o0,
3696
3696
  PauseCircle: a0,
3697
- Pencil: To,
3697
+ Pencil: Vo,
3698
3698
  People: Ao,
3699
3699
  Person: Eo,
3700
3700
  PersonMinus: l0,
@@ -3712,26 +3712,26 @@ const U0 = (e, r) => /* @__PURE__ */ l(
3712
3712
  Printer: Ks,
3713
3713
  Proyector: b0,
3714
3714
  PushPin: St,
3715
- PushPinSolid: Vt,
3715
+ PushPinSolid: Tt,
3716
3716
  Question: Do,
3717
3717
  QuestionCircle: y0,
3718
- Quote: Tt,
3718
+ Quote: Vt,
3719
3719
  Reaction: _o,
3720
3720
  Receipt: R0,
3721
3721
  Record: N0,
3722
- RemoveFavorite: V0,
3722
+ RemoveFavorite: T0,
3723
3723
  Replace: A0,
3724
3724
  Reply: ce,
3725
- Reset: jo,
3725
+ Reset: Oo,
3726
3726
  Rocket: H0,
3727
3727
  Salad: I0,
3728
3728
  Save: P0,
3729
3729
  Schedule: _0,
3730
3730
  Search: de,
3731
- SearchPerson: Oo,
3731
+ SearchPerson: jo,
3732
3732
  Settings: Zo,
3733
3733
  Share: Uo,
3734
- Shield: O0,
3734
+ Shield: j0,
3735
3735
  ShoppingCart: Xt,
3736
3736
  SignPost: z0,
3737
3737
  Sleep: W0,
@@ -3877,7 +3877,7 @@ const U0 = (e, r) => /* @__PURE__ */ l(
3877
3877
  trigger: o,
3878
3878
  side: s = "top"
3879
3879
  }) => {
3880
- const a = z(), [i, d] = I(!1), c = E(null), f = j(
3880
+ const a = z(), [i, d] = I(!1), c = E(null), f = O(
3881
3881
  (S) => {
3882
3882
  d(S), n?.(S);
3883
3883
  },
@@ -4212,7 +4212,7 @@ const S2 = {
4212
4212
  fontColor: "text-f1-foreground-secondary",
4213
4213
  formBorder: "[&_form]:border-f1-border"
4214
4214
  }
4215
- }, V2 = ({
4215
+ }, T2 = ({
4216
4216
  creditWarning: e,
4217
4217
  children: r
4218
4218
  }) => {
@@ -4266,7 +4266,7 @@ const S2 = {
4266
4266
  }
4267
4267
  );
4268
4268
  };
4269
- function T2({
4269
+ function V2({
4270
4270
  isOpen: e,
4271
4271
  results: r,
4272
4272
  isLoading: n,
@@ -4415,12 +4415,12 @@ const A2 = ({
4415
4415
  };
4416
4416
  u(!0), i("");
4417
4417
  let p = 0;
4418
- const L = 50, S = 30, $ = 2e3, T = 1e3, F = () => {
4418
+ const L = 50, S = 30, $ = 2e3, V = 1e3, F = () => {
4419
4419
  h.current = setInterval(() => {
4420
4420
  p > 0 ? (p--, i(w.slice(0, p))) : (h.current && (clearInterval(h.current), h.current = null), C.current = setTimeout(() => {
4421
4421
  const x = (d + 1) % Math.max(e.length, 1);
4422
4422
  c(x);
4423
- }, T));
4423
+ }, V));
4424
4424
  }, S);
4425
4425
  };
4426
4426
  return m.current = setInterval(() => {
@@ -4634,7 +4634,7 @@ function P2(e = B2) {
4634
4634
  }, [o, e]);
4635
4635
  return { ref: n, style: a };
4636
4636
  }
4637
- const D2 = 5, _2 = 46, j2 = 400, O2 = 16, Z2 = 16;
4637
+ const D2 = 5, _2 = 46, O2 = 400, j2 = 16, Z2 = 16;
4638
4638
  function U2(e, r = D2) {
4639
4639
  return e.length <= r ? e : [...e].sort(() => 0.5 - Math.random()).slice(0, r);
4640
4640
  }
@@ -4759,11 +4759,11 @@ const z2 = ({
4759
4759
  );
4760
4760
  };
4761
4761
  function G2({ item: e, onSelect: r, onHover: n }) {
4762
- const o = E(null), s = E(null), a = E(null), i = f1(), d = j(() => {
4762
+ const o = E(null), s = E(null), a = E(null), i = f1(), d = O(() => {
4763
4763
  a.current != null && (clearTimeout(a.current), a.current = null);
4764
4764
  const C = s.current, m = o.current;
4765
4765
  C && (C.style.transition = "none", C.style.transform = "translateX(0)", C.style.overflow = ""), m && (m.style.removeProperty("mask-image"), m.style.removeProperty("-webkit-mask-image"));
4766
- }, []), c = j(() => {
4766
+ }, []), c = O(() => {
4767
4767
  i || (a.current = window.setTimeout(() => {
4768
4768
  const C = s.current, m = o.current;
4769
4769
  if (!C || !m)
@@ -4771,14 +4771,14 @@ function G2({ item: e, onSelect: r, onHover: n }) {
4771
4771
  const h = C.scrollWidth - C.clientWidth;
4772
4772
  if (h <= 0)
4773
4773
  return;
4774
- const w = h + O2, v = w / _2 * 1e3;
4774
+ const w = h + j2, v = w / _2 * 1e3;
4775
4775
  C.style.overflow = "visible";
4776
4776
  const p = `linear-gradient(90deg, transparent 0, #000 ${Z2}px)`;
4777
4777
  m.style.setProperty("mask-image", p), m.style.setProperty("-webkit-mask-image", p), C.style.transition = `transform ${v}ms linear`, C.style.transform = `translateX(-${w}px)`;
4778
- }, j2));
4779
- }, [i]), f = j(() => {
4778
+ }, O2));
4779
+ }, [i]), f = O(() => {
4780
4780
  n?.(e), c();
4781
- }, [e, n, c]), u = j(() => {
4781
+ }, [e, n, c]), u = O(() => {
4782
4782
  n?.(null), d();
4783
4783
  }, [n, d]);
4784
4784
  return W(
@@ -4870,7 +4870,7 @@ function K2(e) {
4870
4870
  W(() => {
4871
4871
  h.current = r.length;
4872
4872
  }, [r]);
4873
- const w = j(($) => {
4873
+ const w = O(($) => {
4874
4874
  a.current && clearTimeout(a.current), s($), a.current = setTimeout(() => {
4875
4875
  s(null), a.current = null;
4876
4876
  }, Y2);
@@ -4881,14 +4881,14 @@ function K2(e) {
4881
4881
  },
4882
4882
  []
4883
4883
  );
4884
- const v = j(
4884
+ const v = O(
4885
4885
  async ($) => {
4886
4886
  if ($.length === 0 || !c)
4887
4887
  return;
4888
- const T = X2($, f);
4889
- if (T.length === 0)
4888
+ const V = X2($, f);
4889
+ if (V.length === 0)
4890
4890
  return;
4891
- if (u !== void 0 && h.current + T.length > u) {
4891
+ if (u !== void 0 && h.current + V.length > u) {
4892
4892
  w(
4893
4893
  d.ai.tooManyFilesError.replace(
4894
4894
  "{{maxFiles}}",
@@ -4897,7 +4897,7 @@ function K2(e) {
4897
4897
  );
4898
4898
  return;
4899
4899
  }
4900
- const F = T.map((N) => ({
4900
+ const F = V.map((N) => ({
4901
4901
  id: crypto.randomUUID(),
4902
4902
  file: N,
4903
4903
  status: "uploading"
@@ -4909,8 +4909,8 @@ function K2(e) {
4909
4909
  )
4910
4910
  );
4911
4911
  try {
4912
- const N = await c(T);
4913
- if (!Array.isArray(N) || N.length !== T.length) {
4912
+ const N = await c(V);
4913
+ if (!Array.isArray(N) || N.length !== V.length) {
4914
4914
  P(d.ai.fileUploadError);
4915
4915
  return;
4916
4916
  }
@@ -4941,14 +4941,14 @@ function K2(e) {
4941
4941
  d.ai.fileUploadError,
4942
4942
  w
4943
4943
  ]
4944
- ), p = j(
4944
+ ), p = O(
4945
4945
  async ($) => {
4946
4946
  await v(Array.from($.target.files ?? [])), $.target.value = "";
4947
4947
  },
4948
4948
  [v]
4949
- ), L = j(($) => {
4950
- n((T) => T.filter((F) => F.id !== $));
4951
- }, []), S = j(() => {
4949
+ ), L = O(($) => {
4950
+ n((V) => V.filter((F) => F.id !== $));
4951
+ }, []), S = O(() => {
4952
4952
  n([]);
4953
4953
  }, []);
4954
4954
  return {
@@ -5046,7 +5046,7 @@ function rl({
5046
5046
  searchPersons: o,
5047
5047
  textareaRef: s
5048
5048
  }) {
5049
- const [a, i] = I(!1), [d, c] = I(""), [f, u] = I([]), [C, m] = I(!1), [h, w] = I(0), [v, p] = I([]), L = E(-1), S = E(null), $ = E(0), T = E(-1);
5049
+ const [a, i] = I(!1), [d, c] = I(""), [f, u] = I([]), [C, m] = I(!1), [h, w] = I(0), [v, p] = I([]), L = E(-1), S = E(null), $ = E(0), V = E(-1);
5050
5050
  W(() => {
5051
5051
  if (!o) {
5052
5052
  i(!1);
@@ -5054,16 +5054,16 @@ function rl({
5054
5054
  }
5055
5055
  const A = Q2(e, n, v);
5056
5056
  if (!A) {
5057
- i(!1), c(""), u([]), w(0), L.current = -1, T.current = -1;
5057
+ i(!1), c(""), u([]), w(0), L.current = -1, V.current = -1;
5058
5058
  return;
5059
5059
  }
5060
- if (A.atIndex === T.current)
5060
+ if (A.atIndex === V.current)
5061
5061
  return;
5062
5062
  L.current = A.atIndex, c(A.query), i(!0), w(0), m(!0), S.current && clearTimeout(S.current);
5063
5063
  const H = ++$.current;
5064
5064
  return S.current = setTimeout(() => {
5065
5065
  o(A.query).then((Z) => {
5066
- H === $.current && (u(Z), w(0), Z.length === 0 && A.query.length > 0 && (T.current = A.atIndex, i(!1)));
5066
+ H === $.current && (u(Z), w(0), Z.length === 0 && A.query.length > 0 && (V.current = A.atIndex, i(!1)));
5067
5067
  }).catch(() => {
5068
5068
  H === $.current && u([]);
5069
5069
  }).finally(() => {
@@ -5073,21 +5073,21 @@ function rl({
5073
5073
  S.current && clearTimeout(S.current);
5074
5074
  };
5075
5075
  }, [e, n, o, v]);
5076
- const F = j(() => {
5076
+ const F = O(() => {
5077
5077
  i(!1), c(""), u([]), w(0), L.current = -1;
5078
- }, []), x = j(
5078
+ }, []), x = O(
5079
5079
  (A) => {
5080
5080
  const H = L.current;
5081
5081
  if (H === -1)
5082
5082
  return;
5083
- const Z = `${A.firstName} ${A.lastName}`.trim(), O = String(A.id), q = e.slice(0, H), e1 = e.slice(n), t1 = `@${Z} `, Y = q + t1 + e1, Q = q.length + t1.length;
5084
- r(Y), p((r1) => [...r1.filter((n1) => !(n1.id === O && n1.name === Z)), { id: O, name: Z }]), F(), requestAnimationFrame(() => {
5083
+ const Z = `${A.firstName} ${A.lastName}`.trim(), j = String(A.id), q = e.slice(0, H), e1 = e.slice(n), t1 = `@${Z} `, Y = q + t1 + e1, Q = q.length + t1.length;
5084
+ r(Y), p((r1) => [...r1.filter((n1) => !(n1.id === j && n1.name === Z)), { id: j, name: Z }]), F(), requestAnimationFrame(() => {
5085
5085
  const r1 = s.current;
5086
5086
  r1 && (r1.focus(), r1.setSelectionRange(Q, Q));
5087
5087
  });
5088
5088
  },
5089
5089
  [e, n, r, s, F]
5090
- ), P = j(
5090
+ ), P = O(
5091
5091
  (A) => {
5092
5092
  if (!a)
5093
5093
  return !1;
@@ -5118,14 +5118,14 @@ function rl({
5118
5118
  }
5119
5119
  },
5120
5120
  [a, f, h, d, x, F]
5121
- ), N = j(
5121
+ ), N = O(
5122
5122
  (A) => {
5123
5123
  if (v.length === 0)
5124
5124
  return A;
5125
5125
  let H = A;
5126
- const Z = [...v].sort((O, q) => q.name.length - O.name.length);
5127
- for (const O of Z) {
5128
- const q = `@${O.name}`, e1 = `<entity-ref type="person" id="${_e(O.id)}">${_e(O.name)}</entity-ref>`;
5126
+ const Z = [...v].sort((j, q) => q.name.length - j.name.length);
5127
+ for (const j of Z) {
5128
+ const q = `@${j.name}`, e1 = `<entity-ref type="person" id="${_e(j.id)}">${_e(j.name)}</entity-ref>`;
5129
5129
  for (; H.includes(q); )
5130
5130
  H = H.replace(q, e1);
5131
5131
  }
@@ -5136,10 +5136,10 @@ function rl({
5136
5136
  W(() => {
5137
5137
  p(
5138
5138
  (A) => A.filter((H) => {
5139
- const Z = `@${H.name}`, O = e.indexOf(Z);
5140
- if (O === -1)
5139
+ const Z = `@${H.name}`, j = e.indexOf(Z);
5140
+ if (j === -1)
5141
5141
  return !1;
5142
- const q = e[O + Z.length];
5142
+ const q = e[j + Z.length];
5143
5143
  return q === " " || q === `
5144
5144
  ` || q === " ";
5145
5145
  })
@@ -5198,7 +5198,7 @@ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, ol = (e) => e.split(/(<entity-ref\b[^>]*>
5198
5198
  usageLimits: L,
5199
5199
  footer: S,
5200
5200
  isWelcomeScreen: $ = !1,
5201
- fullscreen: T = !1,
5201
+ fullscreen: V = !1,
5202
5202
  welcomeScreenSuggestions: F,
5203
5203
  onSuggestionClick: x,
5204
5204
  welcomeScreenSuggestionsPlacement: P = "above",
@@ -5207,14 +5207,14 @@ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, ol = (e) => e.split(/(<entity-ref\b[^>]*>
5207
5207
  padding: R = "default",
5208
5208
  ref: A
5209
5209
  }) => {
5210
- const H = z(), Z = f1(), [O, q] = I(""), [e1, t1] = I(0), [Y, Q] = I(!1), [r1, m1] = I(!1), [n1, F1] = I(null), [b1, k1] = I(!1), U = E(null), J = E(null), l1 = E(null), k = E(null);
5210
+ const H = z(), Z = f1(), [j, q] = I(""), [e1, t1] = I(0), [Y, Q] = I(!1), [r1, m1] = I(!1), [n1, F1] = I(null), [b1, k1] = I(!1), U = E(null), J = E(null), l1 = E(null), k = E(null);
5211
5211
  W(
5212
5212
  () => () => {
5213
5213
  k.current && clearTimeout(k.current);
5214
5214
  },
5215
5215
  []
5216
5216
  );
5217
- const y = i != null, { tracking: M, setFocusChatInputFunction: B } = v1(), V = j(
5217
+ const y = i != null, { tracking: M, setFocusChatInputFunction: B } = v1(), T = O(
5218
5218
  (G, g1) => {
5219
5219
  M?.onWelcomeSuggestionClick?.({
5220
5220
  item: G,
@@ -5228,23 +5228,23 @@ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, ol = (e) => e.split(/(<entity-ref\b[^>]*>
5228
5228
  fileInputRef: c1,
5229
5229
  onUploadFiles: x1,
5230
5230
  acceptValue: N1,
5231
- isAtMaxFiles: V1,
5231
+ isAtMaxFiles: T1,
5232
5232
  maxFiles: X1,
5233
5233
  processFiles: P1,
5234
5234
  handleFileSelect: Sr,
5235
- handleRemoveFile: Vr,
5236
- clearFiles: Tr,
5235
+ handleRemoveFile: Tr,
5236
+ clearFiles: Vr,
5237
5237
  transientError: ge,
5238
5238
  showTransientError: Y1
5239
5239
  } = K2(C), d1 = rl({
5240
- inputValue: O,
5240
+ inputValue: j,
5241
5241
  setInputValue: q,
5242
5242
  cursorPosition: e1,
5243
5243
  searchPersons: w,
5244
5244
  textareaRef: J
5245
- }), we = E(""), ve = j((G) => {
5246
- const g1 = we.current, Q1 = g1 && !/\s$/.test(g1) ? " " : "", O1 = `${g1}${Q1}${G}`;
5247
- q(O1), t1(O1.length);
5245
+ }), we = E(""), ve = O((G) => {
5246
+ const g1 = we.current, Q1 = g1 && !/\s$/.test(g1) ? " " : "", j1 = `${g1}${Q1}${G}`;
5247
+ q(j1), t1(j1.length);
5248
5248
  }, []), Ar = {
5249
5249
  "permission-denied": H.ai.micPermissionDenied,
5250
5250
  "device-error": H.ai.micError,
@@ -5256,9 +5256,9 @@ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, ol = (e) => e.split(/(<entity-ref\b[^>]*>
5256
5256
  ve(G), J.current?.focus();
5257
5257
  },
5258
5258
  onError: (G) => Y1(Ar[G])
5259
- }), xe = !!h && C1.isSupported, Le = j(() => {
5260
- M?.onDictationStart?.(), we.current = O, C1.start();
5261
- }, [O, C1, M]), Er = j(() => {
5259
+ }), xe = !!h && C1.isSupported, Le = O(() => {
5260
+ M?.onDictationStart?.(), we.current = j, C1.start();
5261
+ }, [j, C1, M]), Er = O(() => {
5262
5262
  M?.onDictationCancel?.(), C1.cancel();
5263
5263
  }, [C1, M]);
5264
5264
  W(() => {
@@ -5279,7 +5279,7 @@ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, ol = (e) => e.split(/(<entity-ref\b[^>]*>
5279
5279
  v(null);
5280
5280
  };
5281
5281
  }, [v, P1]);
5282
- const be = C1.status === "recording", Hr = be ? H.ai.listening : H.ai.inputPlaceholder, ke = _.filter((G) => G.status === "uploaded"), D1 = _.some((G) => G.status === "uploading"), ye = _.some((G) => G.status === "error"), _1 = O.trim().length > 0 || ke.length > 0;
5282
+ const be = C1.status === "recording", Hr = be ? H.ai.listening : H.ai.inputPlaceholder, ke = _.filter((G) => G.status === "uploaded"), D1 = _.some((G) => G.status === "uploading"), ye = _.some((G) => G.status === "error"), _1 = j.trim().length > 0 || ke.length > 0;
5283
5283
  W(() => {
5284
5284
  if (!(!r1 || D1)) {
5285
5285
  if (m1(!1), ye) {
@@ -5315,15 +5315,15 @@ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, ol = (e) => e.split(/(<entity-ref\b[^>]*>
5315
5315
  Q(!1);
5316
5316
  }
5317
5317
  }
5318
- const g1 = d1.transformMentions(O.trim()), Q1 = ol(g1), O1 = ke.flatMap(
5318
+ const g1 = d1.transformMentions(j.trim()), Q1 = ol(g1), j1 = ke.flatMap(
5319
5319
  (He) => He.uploadedFile ? [He.uploadedFile] : []
5320
5320
  ), Ae = d, Ee = f;
5321
5321
  Ae && c?.(null), Ee && u?.(null), await e({
5322
5322
  text: Q1,
5323
- files: O1,
5323
+ files: j1,
5324
5324
  context: Ae,
5325
5325
  quote: Ee
5326
- }), q(""), Tr();
5326
+ }), q(""), Vr();
5327
5327
  }
5328
5328
  J.current?.focus();
5329
5329
  }
@@ -5333,24 +5333,24 @@ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, ol = (e) => e.split(/(<entity-ref\b[^>]*>
5333
5333
  t1(J.current?.selectionStart ?? 0);
5334
5334
  }, Pr = () => {
5335
5335
  l1.current && J.current && (l1.current.scrollTop = J.current.scrollTop);
5336
- }, Me = n1 ? n1.prompt ?? n1.title : null, Re = be ? [H.ai.listening] : Me ? [Me] : s ?? [], Dr = Re.length > 1, _r = X(() => W2(O, d1.mentions, {
5336
+ }, Me = n1 ? n1.prompt ?? n1.title : null, Re = be ? [H.ai.listening] : Me ? [Me] : s ?? [], Dr = Re.length > 1, _r = X(() => W2(j, d1.mentions, {
5337
5337
  cursorPosition: e1,
5338
5338
  inlineCompletion: d1.inlineCompletion
5339
- }), [O, d1.mentions, e1, d1.inlineCompletion]), jr = d1.mentions.length > 0 || d1.inlineCompletion !== null, T1 = P === "inside", A1 = $ && !!F && F.length > 0 && !!x ? /* @__PURE__ */ t(
5339
+ }), [j, d1.mentions, e1, d1.inlineCompletion]), Or = d1.mentions.length > 0 || d1.inlineCompletion !== null, V1 = P === "inside", A1 = $ && !!F && F.length > 0 && !!x ? /* @__PURE__ */ t(
5340
5340
  z2,
5341
5341
  {
5342
5342
  suggestions: F,
5343
- onItemClick: V,
5343
+ onItemClick: T,
5344
5344
  onItemHover: F1,
5345
- side: T1 ? "bottom" : "top",
5346
- reserveTwoRows: !T1,
5347
- overflow: T1 ? "scroll" : "wrap"
5345
+ side: V1 ? "bottom" : "top",
5346
+ reserveTwoRows: !V1,
5347
+ overflow: V1 ? "scroll" : "wrap"
5348
5348
  }
5349
- ) : null, Fe = !N || b1 || _1 || C1.status !== "idle", Or = (G) => G instanceof Node ? U.current?.contains(G) ? !0 : G instanceof Element && G.closest("[data-radix-popper-content-wrapper]") !== null : !1, Zr = () => {
5349
+ ) : null, Fe = !N || b1 || _1 || C1.status !== "idle", jr = (G) => G instanceof Node ? U.current?.contains(G) ? !0 : G instanceof Element && G.closest("[data-radix-popper-content-wrapper]") !== null : !1, Zr = () => {
5350
5350
  k.current && clearTimeout(k.current), k.current = setTimeout(() => {
5351
- Or(document.activeElement) || k1(!1);
5351
+ jr(document.activeElement) || k1(!1);
5352
5352
  }, 0);
5353
- }, j1 = T1, Ne = j1 && N, K1 = Ne && !Fe, Ur = j1 && A1 ? (
5353
+ }, O1 = V1, Ne = O1 && N, K1 = Ne && !Fe, Ur = O1 && A1 ? (
5354
5354
  // Clicks are STOPPED here rather than bubbling to the form, whose onClick
5355
5355
  // focuses the textarea — the same guard `toolbarStart` takes. Without it,
5356
5356
  // pressing a chip would pull focus off the trigger and break the popover's
@@ -5359,13 +5359,13 @@ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, ol = (e) => e.split(/(<entity-ref\b[^>]*>
5359
5359
  ) : void 0, Se = {
5360
5360
  duration: Z ? 0 : 0.32,
5361
5361
  ease: [0.4, 0, 0.2, 1]
5362
- }, Ve = /* @__PURE__ */ t(
5362
+ }, Te = /* @__PURE__ */ t(
5363
5363
  R2,
5364
5364
  {
5365
5365
  onUploadFiles: x1,
5366
5366
  toolbarStart: m,
5367
5367
  center: Ur,
5368
- isAtMaxFiles: V1,
5368
+ isAtMaxFiles: T1,
5369
5369
  maxFiles: X1,
5370
5370
  acceptValue: N1,
5371
5371
  fileInputRef: c1,
@@ -5380,7 +5380,7 @@ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, ol = (e) => e.split(/(<entity-ref\b[^>]*>
5380
5380
  onStopRecording: C1.stop,
5381
5381
  onCancelRecording: Er
5382
5382
  }
5383
- ), zr = $ && T && !!D && D.length > 0, Te = T && $, { motionProps: Gr } = hs(
5383
+ ), zr = $ && V && !!D && D.length > 0, Ve = V && $, { motionProps: Gr } = hs(
5384
5384
  $,
5385
5385
  160,
5386
5386
  0.5
@@ -5394,12 +5394,12 @@ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, ol = (e) => e.split(/(<entity-ref\b[^>]*>
5394
5394
  // The chat window's gutter. `padding="none"` hands it to the host —
5395
5395
  // see the prop's doc for what the host takes on with it.
5396
5396
  R === "default" && "px-4 pb-3 pt-2",
5397
- Te && "min-h-0 flex-1 justify-start -mt-20"
5397
+ Ve && "min-h-0 flex-1 justify-start -mt-20"
5398
5398
  ),
5399
- ...T ? Gr : {},
5399
+ ...V ? Gr : {},
5400
5400
  children: [
5401
5401
  /* @__PURE__ */ l("div", { className: "flex w-full max-w-content flex-col gap-2", children: [
5402
- A1 && !T1 ? /* @__PURE__ */ t("div", { children: N ? /* @__PURE__ */ t(w1, { initial: !1, children: Fe ? /* @__PURE__ */ t(
5402
+ A1 && !V1 ? /* @__PURE__ */ t("div", { children: N ? /* @__PURE__ */ t(w1, { initial: !1, children: Fe ? /* @__PURE__ */ t(
5403
5403
  K.div,
5404
5404
  {
5405
5405
  className: "overflow-hidden",
@@ -5411,7 +5411,7 @@ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, ol = (e) => e.split(/(<entity-ref\b[^>]*>
5411
5411
  },
5412
5412
  "welcome-suggestions"
5413
5413
  ) : null }) : A1 }) : null,
5414
- /* @__PURE__ */ t(V2, { creditWarning: a, children: /* @__PURE__ */ l(
5414
+ /* @__PURE__ */ t(T2, { creditWarning: a, children: /* @__PURE__ */ l(
5415
5415
  "form",
5416
5416
  {
5417
5417
  "aria-busy": n,
@@ -5453,7 +5453,7 @@ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, ol = (e) => e.split(/(<entity-ref\b[^>]*>
5453
5453
  onSubmit: $r,
5454
5454
  children: [
5455
5455
  /* @__PURE__ */ t(
5456
- T2,
5456
+ V2,
5457
5457
  {
5458
5458
  isOpen: d1.isOpen,
5459
5459
  results: d1.results,
@@ -5544,7 +5544,7 @@ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, ol = (e) => e.split(/(<entity-ref\b[^>]*>
5544
5544
  {
5545
5545
  attachedFiles: _,
5546
5546
  isUploading: D1,
5547
- onRemove: Vr,
5547
+ onRemove: Tr,
5548
5548
  removeLabel: H.ai.removeFile
5549
5549
  }
5550
5550
  ),
@@ -5552,17 +5552,17 @@ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, ol = (e) => e.split(/(<entity-ref\b[^>]*>
5552
5552
  "div",
5553
5553
  {
5554
5554
  className: b(
5555
- j1 && "flex items-end",
5555
+ O1 && "flex items-end",
5556
5556
  K1 && "pr-3"
5557
5557
  ),
5558
5558
  children: [
5559
- j1 ? /* @__PURE__ */ t("div", { className: "flex shrink-0 self-center pl-3", children: /* @__PURE__ */ t(It, { size: "sm", spin: n }) }) : null,
5559
+ O1 ? /* @__PURE__ */ t("div", { className: "flex shrink-0 self-center pl-3", children: /* @__PURE__ */ t(It, { size: "sm", spin: n }) }) : null,
5560
5560
  /* @__PURE__ */ t(
5561
5561
  H2,
5562
5562
  {
5563
5563
  textareaRef: J,
5564
5564
  highlightRef: l1,
5565
- inputValue: O,
5565
+ inputValue: j,
5566
5566
  onInputChange: (G, g1) => {
5567
5567
  q(G), t1(g1);
5568
5568
  },
@@ -5570,7 +5570,7 @@ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, ol = (e) => e.split(/(<entity-ref\b[^>]*>
5570
5570
  onCursorUpdate: Br,
5571
5571
  onScroll: Pr,
5572
5572
  highlightSegments: _r,
5573
- hasOverlay: jr,
5573
+ hasOverlay: Or,
5574
5574
  multiplePlaceholders: Dr,
5575
5575
  placeholders: Re,
5576
5576
  resolvedDefaultPlaceholder: Hr,
@@ -5632,10 +5632,10 @@ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, ol = (e) => e.split(/(<entity-ref\b[^>]*>
5632
5632
  animate: { opacity: 1, height: "auto" },
5633
5633
  exit: { opacity: 0, height: 0 },
5634
5634
  transition: Se,
5635
- children: Ve
5635
+ children: Te
5636
5636
  },
5637
5637
  "action-row"
5638
- ) }) : Ve
5638
+ ) }) : Te
5639
5639
  ]
5640
5640
  },
5641
5641
  "input"
@@ -5645,7 +5645,7 @@ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, ol = (e) => e.split(/(<entity-ref\b[^>]*>
5645
5645
  ) })
5646
5646
  ] }),
5647
5647
  zr ? /* @__PURE__ */ t("div", { className: "w-full max-w-content pt-2", children: /* @__PURE__ */ t(I2, { cards: D }) }) : null,
5648
- S && $ && T ? /* @__PURE__ */ t("div", { className: "w-full py-4 mx-auto flex max-w-content justify-center", children: S }) : null,
5648
+ S && $ && V ? /* @__PURE__ */ t("div", { className: "w-full py-4 mx-auto flex max-w-content justify-center", children: S }) : null,
5649
5649
  /* @__PURE__ */ t(w1, { mode: "wait", initial: !1, children: y ? /* @__PURE__ */ l(
5650
5650
  K.div,
5651
5651
  {
@@ -5673,7 +5673,7 @@ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, ol = (e) => e.split(/(<entity-ref\b[^>]*>
5673
5673
  ]
5674
5674
  },
5675
5675
  "clarifying-nav-hint"
5676
- ) : (p?.text || L) && !Te && /* @__PURE__ */ l(
5676
+ ) : (p?.text || L) && !Ve && /* @__PURE__ */ l(
5677
5677
  K.div,
5678
5678
  {
5679
5679
  className: b(
@@ -5883,7 +5883,7 @@ function S1({
5883
5883
  W(() => () => {
5884
5884
  m.current = !1;
5885
5885
  }, []);
5886
- const h = j(() => {
5886
+ const h = O(() => {
5887
5887
  if (i || c)
5888
5888
  return;
5889
5889
  const v = a.current.get(e);
@@ -6353,7 +6353,7 @@ function Ml({
6353
6353
  title: r,
6354
6354
  ...n
6355
6355
  }) {
6356
- const o = z(), s = E(null), a = j(
6356
+ const o = z(), s = E(null), a = O(
6357
6357
  (i) => {
6358
6358
  if (!s.current)
6359
6359
  return;
@@ -6466,7 +6466,7 @@ function Sl({
6466
6466
  }
6467
6467
  );
6468
6468
  }
6469
- function Vl({
6469
+ function Tl({
6470
6470
  children: e,
6471
6471
  ...r
6472
6472
  }) {
@@ -6482,7 +6482,7 @@ function Vl({
6482
6482
  }
6483
6483
  );
6484
6484
  }
6485
- function Tl({
6485
+ function Vl({
6486
6486
  children: e,
6487
6487
  ...r
6488
6488
  }) {
@@ -6513,8 +6513,8 @@ function El({
6513
6513
  const Q4 = {
6514
6514
  p: Nl,
6515
6515
  h1: Sl,
6516
- h2: Vl,
6517
- h3: Tl,
6516
+ h2: Tl,
6517
+ h3: Vl,
6518
6518
  a: dl,
6519
6519
  strong: Al,
6520
6520
  em: El,
@@ -6592,7 +6592,7 @@ const me = G1(null);
6592
6592
  function J4({
6593
6593
  children: e
6594
6594
  }) {
6595
- const [r, n] = I(0), o = E([]), s = j(
6595
+ const [r, n] = I(0), o = E([]), s = O(
6596
6596
  (i) => {
6597
6597
  const d = o.current, c = d.findIndex(
6598
6598
  (u) => u.formName === i.formName && u.customFieldName === i.customFieldName
@@ -6633,7 +6633,7 @@ function e9() {
6633
6633
  );
6634
6634
  return e.setFormCardValueFormatter;
6635
6635
  }
6636
- const je = 7, Bl = 625, Oe = /* @__PURE__ */ new Set();
6636
+ const Oe = 7, Bl = 625, je = /* @__PURE__ */ new Set();
6637
6637
  function Pl(e) {
6638
6638
  return typeof DOMParser < "u" ? new DOMParser().parseFromString(e, "text/html").body.textContent?.replace(/\s+/g, " ").trim() ?? "" : e.replace(/<[^>]*>/g, " ").replace(/\s+/g, " ").trim();
6639
6639
  }
@@ -6706,7 +6706,7 @@ function dr({
6706
6706
  formModule: n
6707
6707
  });
6708
6708
  h.current = L, W(() => {
6709
- typeof window > "u" || window.innerWidth < Bl || Oe.has(e) || (Oe.add(e), h.current());
6709
+ typeof window > "u" || window.innerWidth < Bl || je.has(e) || (je.add(e), h.current());
6710
6710
  }, [e]);
6711
6711
  const S = a && i ? Object.entries(a).map(([F, x]) => {
6712
6712
  const P = i[F], N = m?.(F, P, {
@@ -6726,7 +6726,7 @@ function dr({
6726
6726
  return !1;
6727
6727
  const x = Array.isArray(F.content) ? F.content[0] : F.content;
6728
6728
  return !(x?.type === "item" && x.text === "—");
6729
- }) : [], $ = S.slice(0, je), T = S.length > je;
6729
+ }) : [], $ = S.slice(0, Oe), V = S.length > Oe;
6730
6730
  return /* @__PURE__ */ t(
6731
6731
  lr,
6732
6732
  {
@@ -6748,7 +6748,7 @@ function dr({
6748
6748
  content: F.content,
6749
6749
  ...F.verticalLayout && { verticalLayout: !0 }
6750
6750
  })),
6751
- showSeeMore: T,
6751
+ showSeeMore: V,
6752
6752
  onClickSeeMore: L,
6753
6753
  tableView: !0
6754
6754
  }
@@ -6757,7 +6757,7 @@ function dr({
6757
6757
  );
6758
6758
  }
6759
6759
  dr.displayName = "FormCard";
6760
- function jl() {
6760
+ function Ol() {
6761
6761
  const e = Ms(), r = e?.activeForm;
6762
6762
  if (!r)
6763
6763
  return null;
@@ -6775,7 +6775,7 @@ function jl() {
6775
6775
  }
6776
6776
  ) });
6777
6777
  }
6778
- const Ol = 2;
6778
+ const jl = 2;
6779
6779
  function Zl(e, r) {
6780
6780
  if (!e.intersectsNode(r))
6781
6781
  return null;
@@ -6784,7 +6784,7 @@ function Zl(e, r) {
6784
6784
  const o = e.cloneRange();
6785
6785
  o.compareBoundaryPoints(Range.START_TO_START, n) < 0 && o.setStart(n.startContainer, n.startOffset), o.compareBoundaryPoints(Range.END_TO_END, n) > 0 && o.setEnd(n.endContainer, n.endOffset);
6786
6786
  const s = o.toString().trim();
6787
- if (s.length < Ol)
6787
+ if (s.length < jl)
6788
6788
  return null;
6789
6789
  const a = o.getBoundingClientRect();
6790
6790
  return { rect: a.width > 0 || a.height > 0 ? a : r.getBoundingClientRect(), text: s };
@@ -6793,7 +6793,7 @@ function ur({
6793
6793
  containerRef: e,
6794
6794
  enabled: r = !0
6795
6795
  }) {
6796
- const [n, o] = I(null), s = j(() => o(null), []);
6796
+ const [n, o] = I(null), s = O(() => o(null), []);
6797
6797
  return W(() => {
6798
6798
  if (!r || typeof window > "u")
6799
6799
  return;
@@ -6866,7 +6866,7 @@ function fr({ anchor: e, onReply: r }) {
6866
6866
  type: "button",
6867
6867
  variant: "ghost",
6868
6868
  label: i,
6869
- icon: Tt,
6869
+ icon: Vt,
6870
6870
  onClick: () => {
6871
6871
  r(e.text);
6872
6872
  }
@@ -6918,7 +6918,7 @@ const hr = G1(void 0), t9 = () => $1(hr), Ul = (e) => /* @__PURE__ */ t(Dt, { co
6918
6918
  reactionType: n,
6919
6919
  message: o
6920
6920
  }) => {
6921
- const [s, a] = I(""), i = z(), { title: d, label: c, placeholder: f } = n === "like" ? i.ai.feedbackModal.positive : i.ai.feedbackModal.negative, u = j(() => {
6921
+ const [s, a] = I(""), i = z(), { title: d, label: c, placeholder: f } = n === "like" ? i.ai.feedbackModal.positive : i.ai.feedbackModal.negative, u = O(() => {
6922
6922
  r(o, s);
6923
6923
  }, [s, o, r]), C = () => {
6924
6924
  e(o);
@@ -7073,7 +7073,7 @@ const Xl = ({
7073
7073
  },
7074
7074
  children: [
7075
7075
  /* @__PURE__ */ l(
7076
- jt,
7076
+ Ot,
7077
7077
  {
7078
7078
  disabled: i,
7079
7079
  className: b(
@@ -7087,7 +7087,7 @@ const Xl = ({
7087
7087
  ]
7088
7088
  }
7089
7089
  ),
7090
- /* @__PURE__ */ t(Ot, { forceMount: !0, className: "data-[state=open]:mt-3", children: /* @__PURE__ */ t(
7090
+ /* @__PURE__ */ t(jt, { forceMount: !0, className: "data-[state=open]:mt-3", children: /* @__PURE__ */ t(
7091
7091
  K.div,
7092
7092
  {
7093
7093
  initial: !1,
@@ -7369,7 +7369,7 @@ function f6({
7369
7369
  }) {
7370
7370
  const [i, d] = I(0), [c, f] = I(!1), u = E(s), C = E(a);
7371
7371
  C.current = a;
7372
- const m = j(
7372
+ const m = O(
7373
7373
  (w = "smooth") => {
7374
7374
  n.current?.scrollIntoView({ behavior: w });
7375
7375
  },
@@ -7387,7 +7387,7 @@ function f6({
7387
7387
  });
7388
7388
  return p.observe(w), p.observe(v), () => p.disconnect();
7389
7389
  }, [e, r]);
7390
- const h = j(() => {
7390
+ const h = O(() => {
7391
7391
  const w = e.current;
7392
7392
  if (!w)
7393
7393
  return;
@@ -7437,7 +7437,7 @@ const h6 = {
7437
7437
  children: L,
7438
7438
  AssistantMessage: S,
7439
7439
  UserMessage: $,
7440
- onRegenerate: T,
7440
+ onRegenerate: V,
7441
7441
  onCopy: F
7442
7442
  }) => {
7443
7443
  const { modal: x, handleSubmit: P, handleClose: N } = ql(
@@ -7445,8 +7445,8 @@ const h6 = {
7445
7445
  ), D = z(), R = S ?? zl, A = $ ?? n6, H = X(() => {
7446
7446
  const U = o ?? D.ai.defaultInitialMessage;
7447
7447
  return (Array.isArray(U) ? U : [U]).filter((l1) => typeof l1 == "string" && l1.length > 0);
7448
- }, [o, D.ai.defaultInitialMessage]), Z = !r && e.length === 0 && H.length > 0, O = E(null), q = E(null), e1 = E(null), t1 = E(null), Y = E(null), { showScrollBtn: Q, turnMinHeight: r1, scrollToBottom: m1 } = f6({
7449
- viewportRef: O,
7448
+ }, [o, D.ai.defaultInitialMessage]), Z = !r && e.length === 0 && H.length > 0, j = E(null), q = E(null), e1 = E(null), t1 = E(null), Y = E(null), { showScrollBtn: Q, turnMinHeight: r1, scrollToBottom: m1 } = f6({
7449
+ viewportRef: j,
7450
7450
  contentRef: q,
7451
7451
  endRef: e1,
7452
7452
  lastTurnRef: Y,
@@ -7462,15 +7462,15 @@ const h6 = {
7462
7462
  onRendered: u,
7463
7463
  autoScrollIntoView: C,
7464
7464
  renderMarkdown: m
7465
- }, y = (B, V) => {
7465
+ }, y = (B, T) => {
7466
7466
  const _ = {
7467
7467
  message: B,
7468
7468
  inProgress: U.isInProgress,
7469
- index: V,
7469
+ index: T,
7470
7470
  isCurrentMessage: !1,
7471
7471
  AssistantMessage: R,
7472
7472
  UserMessage: A,
7473
- onRegenerate: T,
7473
+ onRegenerate: V,
7474
7474
  onCopy: F,
7475
7475
  rawData: B.rawData || {},
7476
7476
  ...k
@@ -7480,17 +7480,17 @@ const h6 = {
7480
7480
  {
7481
7481
  ..._
7482
7482
  },
7483
- `${J}-u-${V}`
7483
+ `${J}-u-${T}`
7484
7484
  );
7485
- }, M = (B, V) => {
7486
- const _ = l1 && V === U.assistantMessages.length - 1, c1 = U.userMessages.length + V, x1 = {
7485
+ }, M = (B, T) => {
7486
+ const _ = l1 && T === U.assistantMessages.length - 1, c1 = U.userMessages.length + T, x1 = {
7487
7487
  message: B,
7488
7488
  inProgress: U.isInProgress,
7489
7489
  index: c1,
7490
7490
  isCurrentMessage: _,
7491
7491
  AssistantMessage: R,
7492
7492
  UserMessage: A,
7493
- onRegenerate: T,
7493
+ onRegenerate: V,
7494
7494
  onCopy: F,
7495
7495
  rawData: B.rawData || {},
7496
7496
  ...k
@@ -7502,7 +7502,7 @@ const h6 = {
7502
7502
  isGenerating: U.isInProgress && _,
7503
7503
  isLoading: U.isInProgress && _ && !B.content
7504
7504
  },
7505
- `${J}-a-${V}`
7505
+ `${J}-a-${T}`
7506
7506
  );
7507
7507
  };
7508
7508
  return /* @__PURE__ */ l(
@@ -7518,7 +7518,7 @@ const h6 = {
7518
7518
  },
7519
7519
  children: [
7520
7520
  U.userMessages.map(
7521
- (B, V) => y(B, V)
7521
+ (B, T) => y(B, T)
7522
7522
  ),
7523
7523
  U.thinking && U.thinking.titles.length > 0 ? /* @__PURE__ */ t(
7524
7524
  Jl,
@@ -7531,7 +7531,7 @@ const h6 = {
7531
7531
  }
7532
7532
  ) : null,
7533
7533
  U.assistantMessages.map(
7534
- (B, V) => M(B, V)
7534
+ (B, T) => M(B, T)
7535
7535
  ),
7536
7536
  U.endIndicator === "thinking" ? /* @__PURE__ */ t(
7537
7537
  oe,
@@ -7550,7 +7550,7 @@ const h6 = {
7550
7550
  onCopy: F
7551
7551
  }
7552
7552
  ) : null,
7553
- l1 ? /* @__PURE__ */ t(jl, {}) : null
7553
+ l1 ? /* @__PURE__ */ t(Ol, {}) : null
7554
7554
  ]
7555
7555
  },
7556
7556
  `turn-${J}`
@@ -7561,7 +7561,7 @@ const h6 = {
7561
7561
  /* @__PURE__ */ t(
7562
7562
  "div",
7563
7563
  {
7564
- ref: O,
7564
+ ref: j,
7565
7565
  className: b(
7566
7566
  "flex-1 overflow-y-scroll",
7567
7567
  "[scrollbar-width:thin] [scrollbar-color:transparent_transparent]",
@@ -7852,7 +7852,7 @@ const v6 = [0.23, 1, 0.32, 1], x6 = 0.2, L6 = 0.03, b6 = 4, k6 = ({
7852
7852
  return 0;
7853
7853
  const N = n.findIndex((D) => o.includes(D.id));
7854
7854
  return N >= 0 ? N : 0;
7855
- })(), [$, T] = I(S), F = E([]);
7855
+ })(), [$, V] = I(S), F = E([]);
7856
7856
  W(() => {
7857
7857
  C && e === "single" && F.current[$]?.focus();
7858
7858
  }, []);
@@ -7881,7 +7881,7 @@ const v6 = [0.23, 1, 0.32, 1], x6 = 0.2, L6 = 0.03, b6 = 4, k6 = ({
7881
7881
  default:
7882
7882
  return;
7883
7883
  }
7884
- N.preventDefault(), T(R), F.current[R]?.focus();
7884
+ N.preventDefault(), V(R), F.current[R]?.focus();
7885
7885
  }, P = (N) => ({
7886
7886
  initial: L ? !1 : { opacity: 0, y: b6 },
7887
7887
  animate: { opacity: 1, y: 0 },
@@ -8024,20 +8024,20 @@ const v6 = [0.23, 1, 0.32, 1], x6 = 0.2, L6 = 0.03, b6 = 4, k6 = ({
8024
8024
  selectedOptionIds: L,
8025
8025
  selectionMode: S,
8026
8026
  optional: $,
8027
- allowCustomAnswer: T,
8027
+ allowCustomAnswer: V,
8028
8028
  customAnswerText: F,
8029
8029
  isCustomAnswerActive: x
8030
8030
  } = s, P = E(null), N = S ?? "single", D = i > 1, R = a === 0, A = a === i - 1, H = D ? n.t("ai.clarifyingQuestion.stepOf", {
8031
8031
  current: String(a + 1),
8032
8032
  total: String(i)
8033
- }) : void 0, Z = L.length > 0, O = (F ?? "").trim().length > 0, q = Z || x && O || $ === !0, e1 = r === !0 && A, t1 = () => {
8033
+ }) : void 0, Z = L.length > 0, j = (F ?? "").trim().length > 0, q = Z || x && j || $ === !0, e1 = r === !0 && A, t1 = () => {
8034
8034
  e1 || c();
8035
8035
  }, Y = () => {
8036
8036
  e1 || f();
8037
8037
  }, Q = (U) => {
8038
8038
  const J = N === "single" && L.includes(U);
8039
8039
  d(U), N === "single" && !A && !J && Promise.resolve().then(c);
8040
- }, r1 = A ? n.ai.clarifyingQuestion.submit : n.ai.clarifyingQuestion.next, m1 = $ === !0 && !Z && !(x && O), n1 = () => {
8040
+ }, r1 = A ? n.ai.clarifyingQuestion.submit : n.ai.clarifyingQuestion.next, m1 = $ === !0 && !Z && !(x && j), n1 = () => {
8041
8041
  w(), requestAnimationFrame(() => {
8042
8042
  P.current?.focus();
8043
8043
  });
@@ -8076,9 +8076,9 @@ const v6 = [0.23, 1, 0.32, 1], x6 = 0.2, L6 = 0.03, b6 = 4, k6 = ({
8076
8076
  question: v,
8077
8077
  options: p,
8078
8078
  selectedOptionIds: L,
8079
- allowCustomAnswer: T,
8079
+ allowCustomAnswer: V,
8080
8080
  hasSelection: Z,
8081
- hasCustomText: O,
8081
+ hasCustomText: j,
8082
8082
  customAnswerText: F,
8083
8083
  isCustomAnswerActive: x,
8084
8084
  canProceed: q,
@@ -8108,41 +8108,41 @@ const v6 = [0.23, 1, 0.32, 1], x6 = 0.2, L6 = 0.03, b6 = 4, k6 = ({
8108
8108
  ] });
8109
8109
  };
8110
8110
  function Xe(e, r, n, o) {
8111
- const s = Math.max(1, Math.min(e, r)), a = Math.min(n, 20), d = Math.min(a + o, s), c = Math.min(d, Math.floor(e / 2)), f = Math.min(d, Math.floor(r / 2)), u = (n1) => n1 / e * 2 - 1, C = (n1) => n1 / r * 2 - 1, m = 0, h = e, w = 0, v = r, p = c, L = e - c, S = f, $ = r - f, T = u(m), F = u(h), x = C(w), P = C(v), N = u(p), D = u(L), R = C(S), A = C($), H = 0, Z = 0, O = 1, q = 1, e1 = c / e, t1 = 1 - c / e, Y = f / r, Q = 1 - f / r, r1 = new Float32Array([
8111
+ const s = Math.max(1, Math.min(e, r)), a = Math.min(n, 20), d = Math.min(a + o, s), c = Math.min(d, Math.floor(e / 2)), f = Math.min(d, Math.floor(r / 2)), u = (n1) => n1 / e * 2 - 1, C = (n1) => n1 / r * 2 - 1, m = 0, h = e, w = 0, v = r, p = c, L = e - c, S = f, $ = r - f, V = u(m), F = u(h), x = C(w), P = C(v), N = u(p), D = u(L), R = C(S), A = C($), H = 0, Z = 0, j = 1, q = 1, e1 = c / e, t1 = 1 - c / e, Y = f / r, Q = 1 - f / r, r1 = new Float32Array([
8112
8112
  // Top strip
8113
- T,
8113
+ V,
8114
8114
  x,
8115
8115
  F,
8116
8116
  x,
8117
- T,
8117
+ V,
8118
8118
  R,
8119
- T,
8119
+ V,
8120
8120
  R,
8121
8121
  F,
8122
8122
  x,
8123
8123
  F,
8124
8124
  R,
8125
8125
  // Bottom strip
8126
- T,
8126
+ V,
8127
8127
  A,
8128
8128
  F,
8129
8129
  A,
8130
- T,
8130
+ V,
8131
8131
  P,
8132
- T,
8132
+ V,
8133
8133
  P,
8134
8134
  F,
8135
8135
  A,
8136
8136
  F,
8137
8137
  P,
8138
8138
  // Left strip
8139
- T,
8139
+ V,
8140
8140
  R,
8141
8141
  N,
8142
8142
  R,
8143
- T,
8143
+ V,
8144
8144
  A,
8145
- T,
8145
+ V,
8146
8146
  A,
8147
8147
  N,
8148
8148
  R,
@@ -8165,28 +8165,28 @@ function Xe(e, r, n, o) {
8165
8165
  // Top strip
8166
8166
  H,
8167
8167
  Z,
8168
- O,
8168
+ j,
8169
8169
  Z,
8170
8170
  H,
8171
8171
  Y,
8172
8172
  H,
8173
8173
  Y,
8174
- O,
8174
+ j,
8175
8175
  Z,
8176
- O,
8176
+ j,
8177
8177
  Y,
8178
8178
  // Bottom strip
8179
8179
  H,
8180
8180
  Q,
8181
- O,
8181
+ j,
8182
8182
  Q,
8183
8183
  H,
8184
8184
  q,
8185
8185
  H,
8186
8186
  q,
8187
- O,
8187
+ j,
8188
8188
  Q,
8189
- O,
8189
+ j,
8190
8190
  q,
8191
8191
  // Left strip
8192
8192
  H,
@@ -8204,15 +8204,15 @@ function Xe(e, r, n, o) {
8204
8204
  // Right strip
8205
8205
  t1,
8206
8206
  Y,
8207
- O,
8207
+ j,
8208
8208
  Y,
8209
8209
  t1,
8210
8210
  Q,
8211
8211
  t1,
8212
8212
  Q,
8213
- O,
8213
+ j,
8214
8214
  Y,
8215
- O,
8215
+ j,
8216
8216
  Q
8217
8217
  ]);
8218
8218
  return { positions: r1, uvs: m1 };
@@ -8444,7 +8444,7 @@ void main() {
8444
8444
 
8445
8445
  outColor = vec4(color, alpha);
8446
8446
  }
8447
- `, V6 = `#version 300 es
8447
+ `, T6 = `#version 300 es
8448
8448
 
8449
8449
  in vec2 aPosition;
8450
8450
  in vec2 aUV;
@@ -8453,7 +8453,7 @@ void main() {
8453
8453
  vUV = aUV;
8454
8454
  gl_Position = vec4(aPosition, 0.0, 1.0);
8455
8455
  }
8456
- `, T6 = [
8456
+ `, V6 = [
8457
8457
  "rgb(229, 25, 67)",
8458
8458
  // #E51943 red
8459
8459
  "rgb(229, 86, 25)",
@@ -8630,7 +8630,7 @@ class l9 {
8630
8630
  });
8631
8631
  if (!r)
8632
8632
  throw new Error("WebGL2 is required but not available.");
8633
- const n = N6(r, V6, S6);
8633
+ const n = N6(r, T6, S6);
8634
8634
  this.checkGLError(r, "setupGL: after createProgram");
8635
8635
  const o = r.createVertexArray();
8636
8636
  r.bindVertexArray(o), this.checkGLError(r, "setupGL: after VAO creation");
@@ -8649,11 +8649,11 @@ class l9 {
8649
8649
  r.enableVertexAttribArray(C), r.vertexAttribPointer(C, 2, r.FLOAT, !1, 0, 0), this.checkGLError(r, "setupGL: after UV buffer setup");
8650
8650
  const m = r.getUniformLocation(n, "uResolution"), h = r.getUniformLocation(n, "uTime"), w = r.getUniformLocation(n, "uBorderWidth"), v = r.getUniformLocation(n, "uGlowWidth"), p = r.getUniformLocation(n, "uBorderRadius"), L = r.getUniformLocation(n, "uColors"), S = r.getUniformLocation(n, "uGlowExponent"), $ = r.getUniformLocation(n, "uGlowFactor");
8651
8651
  r.useProgram(n), r.uniform1f(w, this.options.borderWidth), r.uniform1f(v, this.options.glowWidth), r.uniform1f(p, this.options.borderRadius), this.options.mode === "dark" ? (r.uniform1f(S, 2), r.uniform1f($, 1.8)) : (r.uniform1f(S, 1), r.uniform1f($, 1));
8652
- const T = (this.options.colors || T6).map(A6);
8653
- for (let F = 0; F < T.length; F++)
8652
+ const V = (this.options.colors || V6).map(A6);
8653
+ for (let F = 0; F < V.length; F++)
8654
8654
  r.uniform3f(
8655
8655
  r.getUniformLocation(n, `uColors[${F}]`),
8656
- ...T[F]
8656
+ ...V[F]
8657
8657
  );
8658
8658
  this.checkGLError(r, "setupGL: after uniform setup"), r.bindVertexArray(null), r.bindBuffer(r.ARRAY_BUFFER, null), this.glr = {
8659
8659
  gl: r,
@@ -8688,9 +8688,9 @@ const E6 = 10, H6 = 2, $6 = 0.5, I6 = 0.2, B6 = 1.5, h1 = {
8688
8688
  function Z1(e) {
8689
8689
  const [r, n] = I(e), o = Ss(e), s = E(null);
8690
8690
  ta(o, "change", (i) => n(i));
8691
- const a = j(
8691
+ const a = O(
8692
8692
  (i, d) => {
8693
- s.current = Vs(o, i, d);
8693
+ s.current = Ts(o, i, d);
8694
8694
  },
8695
8695
  [o]
8696
8696
  );
@@ -8761,15 +8761,15 @@ void main(void){
8761
8761
  }`, Je = `attribute vec3 aVertexPosition;
8762
8762
  void main(void) {
8763
8763
  gl_Position = vec4(aVertexPosition, 1.0);
8764
- }`, et = "iTime", tt = "iTimeDelta", rt = "iDate", nt = "iFrame", ot = "iMouse", st = "iResolution", j6 = "iChannel", at = "iChannelResolution", it = "iDeviceOrientation";
8765
- function O6(e, r) {
8764
+ }`, et = "iTime", tt = "iTimeDelta", rt = "iDate", nt = "iFrame", ot = "iMouse", st = "iResolution", O6 = "iChannel", at = "iChannelResolution", it = "iDeviceOrientation";
8765
+ function j6(e, r) {
8766
8766
  return e.includes("Matrix") && Array.isArray(r);
8767
8767
  }
8768
8768
  function Z6(e, r) {
8769
8769
  return e.includes("v") && Array.isArray(r) && r.length > Number.parseInt(e.charAt(0), 10);
8770
8770
  }
8771
8771
  function U6(e, r) {
8772
- if (O6(e, r)) {
8772
+ if (j6(e, r)) {
8773
8773
  const n = Number.parseInt(e.charAt(e.length - 3), 10);
8774
8774
  return r.length > n * n ? `[${Math.floor(r.length / (n * n))}]` : void 0;
8775
8775
  }
@@ -8974,7 +8974,7 @@ class X6 {
8974
8974
  const P = this.setupVideo(o);
8975
8975
  return n.texParameteri(n.TEXTURE_2D, n.TEXTURE_WRAP_S, n.CLAMP_TO_EDGE), n.texParameteri(n.TEXTURE_2D, n.TEXTURE_WRAP_T, n.CLAMP_TO_EDGE), n.texParameteri(n.TEXTURE_2D, n.TEXTURE_MIN_FILTER, n.LINEAR), this._webglTexture = $, this.source = P, this.isVideo = !0, P.play().then(() => this);
8976
8976
  }
8977
- async function T() {
8977
+ async function V() {
8978
8978
  return new Promise((P, N) => {
8979
8979
  const D = new Image();
8980
8980
  D.crossOrigin = "anonymous", D.onload = () => {
@@ -8984,7 +8984,7 @@ class X6 {
8984
8984
  }, D.src = o ?? "";
8985
8985
  });
8986
8986
  }
8987
- let F = await T(), x = (F.width & F.width - 1) === 0 && (F.height & F.height - 1) === 0;
8987
+ let F = await V(), x = (F.width & F.width - 1) === 0 && (F.height & F.height - 1) === 0;
8988
8988
  return (r.wrapS !== ct || r.wrapT !== ct || r.minFilter !== lt && r.minFilter !== re) && !x && (F = this.makePowerOf2(F), x = !0), n.bindTexture(n.TEXTURE_2D, $), n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL, c), n.texImage2D(
8989
8989
  n.TEXTURE_2D,
8990
8990
  C,
@@ -9033,7 +9033,7 @@ function K6({
9033
9033
  onError: C = console.error,
9034
9034
  onWarning: m = console.warn
9035
9035
  }) {
9036
- const h = E(null), w = E(null), v = E(null), p = E(null), L = E(void 0), S = E(void 0), $ = E(!1), T = E(void 0), F = E(0), x = E([0, 0]), P = E([]), N = E(0), D = E(void 0), R = E({
9036
+ const h = E(null), w = E(null), v = E(null), p = E(null), L = E(void 0), S = E(void 0), $ = E(!1), V = E(void 0), F = E(0), x = E([0, 0]), P = E([]), N = E(0), D = E(void 0), R = E({
9037
9037
  [et]: { type: "float", isNeeded: !1, value: 0 },
9038
9038
  [tt]: { type: "float", isNeeded: !1, value: 0 },
9039
9039
  [rt]: { type: "vec4", isNeeded: !1, value: [0, 0, 0, 0] },
@@ -9046,18 +9046,18 @@ function K6({
9046
9046
  value: [0, 0, 0, 0]
9047
9047
  }
9048
9048
  }), A = E(o), H = (k, y) => {
9049
- const M = "width" in k ? k.width ?? 0 : 0, B = "height" in k ? k.height ?? 0 : 0, V = R.current.iChannelResolution;
9050
- if (!V)
9049
+ const M = "width" in k ? k.width ?? 0 : 0, B = "height" in k ? k.height ?? 0 : 0, T = R.current.iChannelResolution;
9050
+ if (!T)
9051
9051
  return;
9052
- Array.isArray(V.value) || (V.value = []);
9053
- const _ = V.value;
9052
+ Array.isArray(T.value) || (T.value = []);
9053
+ const _ = T.value;
9054
9054
  _[y * 3] = M * f, _[y * 3 + 1] = B * f, _[y * 3 + 2] = 0;
9055
9055
  }, Z = () => {
9056
9056
  h.current && (w.current = h.current.getContext("webgl", d) || h.current.getContext(
9057
9057
  "experimental-webgl",
9058
9058
  d
9059
9059
  ), w.current?.getExtension("OES_standard_derivatives"), w.current?.getExtension("EXT_shader_texture_lod"));
9060
- }, O = () => {
9060
+ }, j = () => {
9061
9061
  const k = w.current;
9062
9062
  v.current = k?.createBuffer() ?? null, k?.bindBuffer(k.ARRAY_BUFFER, v.current);
9063
9063
  const y = [
@@ -9087,18 +9087,18 @@ function K6({
9087
9087
  window.orientation ?? 0
9088
9088
  ];
9089
9089
  }, e1 = (k) => {
9090
- const [y = 0, M = 0] = ut(k), B = y - (T.current?.left ?? 0) - window.pageXOffset, V = (T.current?.height ?? 0) - M - (T.current?.top ?? 0) - window.pageYOffset;
9090
+ const [y = 0, M = 0] = ut(k), B = y - (V.current?.left ?? 0) - window.pageXOffset, T = (V.current?.height ?? 0) - M - (V.current?.top ?? 0) - window.pageYOffset;
9091
9091
  $.current = !0;
9092
9092
  const _ = Array.isArray(R.current.iMouse?.value) ? R.current.iMouse.value : void 0;
9093
- _ && (_[2] = B, _[3] = V), x.current[0] = B, x.current[1] = V;
9093
+ _ && (_[2] = B, _[3] = T), x.current[0] = B, x.current[1] = T;
9094
9094
  }, t1 = (k) => {
9095
- T.current = h.current?.getBoundingClientRect();
9096
- const [y = 0, M = 0] = ut(k), B = y - (T.current?.left ?? 0), V = (T.current?.height ?? 0) - M - (T.current?.top ?? 0);
9095
+ V.current = h.current?.getBoundingClientRect();
9096
+ const [y = 0, M = 0] = ut(k), B = y - (V.current?.left ?? 0), T = (V.current?.height ?? 0) - M - (V.current?.top ?? 0);
9097
9097
  if (c !== 1)
9098
- x.current[0] = B, x.current[1] = V;
9098
+ x.current[0] = B, x.current[1] = T;
9099
9099
  else {
9100
9100
  const _ = Array.isArray(R.current.iMouse?.value) ? R.current.iMouse.value : void 0;
9101
- _ && (_[0] = B, _[1] = V);
9101
+ _ && (_[0] = B, _[1] = T);
9102
9102
  }
9103
9103
  }, Y = () => {
9104
9104
  const k = Array.isArray(R.current.iMouse?.value) ? R.current.iMouse.value : void 0;
@@ -9107,18 +9107,18 @@ function K6({
9107
9107
  const k = w.current;
9108
9108
  if (!k)
9109
9109
  return;
9110
- T.current = h.current?.getBoundingClientRect();
9110
+ V.current = h.current?.getBoundingClientRect();
9111
9111
  const y = f, M = Math.floor(
9112
- (T.current?.width ?? 1) * y
9112
+ (V.current?.width ?? 1) * y
9113
9113
  ), B = Math.floor(
9114
- (T.current?.height ?? 1) * y
9114
+ (V.current?.height ?? 1) * y
9115
9115
  );
9116
9116
  if (k.canvas.width = M, k.canvas.height = B, R.current.iResolution?.isNeeded && p.current) {
9117
- const V = k.getUniformLocation(
9117
+ const T = k.getUniformLocation(
9118
9118
  p.current,
9119
9119
  st
9120
9120
  );
9121
- k.uniform2fv(V, [k.canvas.width, k.canvas.height]);
9121
+ k.uniform2fv(T, [k.canvas.width, k.canvas.height]);
9122
9122
  }
9123
9123
  }, r1 = (k, y) => {
9124
9124
  const M = w.current;
@@ -9130,17 +9130,17 @@ function K6({
9130
9130
  if (M.shaderSource(B, y), M.compileShader(B), !M.getShaderParameter(B, M.COMPILE_STATUS)) {
9131
9131
  m?.(L1(`Error compiling the shader:
9132
9132
  ${y}`));
9133
- const V = M.getShaderInfoLog(B);
9134
- M.deleteShader(B), C?.(L1(`Shader compiler log: ${V}`));
9133
+ const T = M.getShaderInfoLog(B);
9134
+ M.deleteShader(B), C?.(L1(`Shader compiler log: ${T}`));
9135
9135
  }
9136
9136
  return B;
9137
9137
  }, m1 = (k, y) => {
9138
9138
  const M = w.current;
9139
9139
  if (!M)
9140
9140
  return;
9141
- const B = r1(M.FRAGMENT_SHADER, k), V = r1(M.VERTEX_SHADER, y);
9142
- if (p.current = M.createProgram(), !(!p.current || !V || !B)) {
9143
- if (M.attachShader(p.current, V), M.attachShader(p.current, B), M.linkProgram(p.current), !M.getProgramParameter(p.current, M.LINK_STATUS)) {
9141
+ const B = r1(M.FRAGMENT_SHADER, k), T = r1(M.VERTEX_SHADER, y);
9142
+ if (p.current = M.createProgram(), !(!p.current || !T || !B)) {
9143
+ if (M.attachShader(p.current, T), M.attachShader(p.current, B), M.linkProgram(p.current), !M.getProgramParameter(p.current, M.LINK_STATUS)) {
9144
9144
  C?.(
9145
9145
  L1(
9146
9146
  `Unable to initialize the shader program: ${M.getProgramInfoLog(
@@ -9161,12 +9161,12 @@ ${y}`));
9161
9161
  const y = o[k];
9162
9162
  if (!y)
9163
9163
  continue;
9164
- const { value: M, type: B } = y, V = W6(B);
9165
- if (!V)
9164
+ const { value: M, type: B } = y, T = W6(B);
9165
+ if (!T)
9166
9166
  continue;
9167
9167
  const _ = U6(B, M);
9168
9168
  R.current[k] = {
9169
- type: V,
9169
+ type: T,
9170
9170
  isNeeded: !1,
9171
9171
  value: M,
9172
9172
  ..._ ? { arraySize: _ } : {}
@@ -9183,10 +9183,10 @@ ${y}`));
9183
9183
  value: []
9184
9184
  };
9185
9185
  const y = n.map(
9186
- (M, B) => (R.current[`${j6}${B}`] = {
9186
+ (M, B) => (R.current[`${O6}${B}`] = {
9187
9187
  type: "sampler2D",
9188
9188
  isNeeded: !1
9189
- }, H(M, B), P.current[B] = new X6(k), P.current[B]?.load(M).then((V) => H(V, B)))
9189
+ }, H(M, B), P.current[B] = new X6(k), P.current[B]?.load(M).then((T) => H(T, B)))
9190
9190
  );
9191
9191
  Promise.all(y).then(() => {
9192
9192
  u && u();
@@ -9225,14 +9225,14 @@ ${y}`));
9225
9225
  N.current = k;
9226
9226
  const B = A.current;
9227
9227
  if (B)
9228
- for (const V of Object.keys(B)) {
9229
- const _ = B[V];
9230
- if (_ && R.current[V]?.isNeeded) {
9228
+ for (const T of Object.keys(B)) {
9229
+ const _ = B[T];
9230
+ if (_ && R.current[T]?.isNeeded) {
9231
9231
  if (!p.current)
9232
9232
  return;
9233
9233
  const c1 = y.getUniformLocation(
9234
9234
  p.current,
9235
- V
9235
+ T
9236
9236
  );
9237
9237
  if (!c1)
9238
9238
  return;
@@ -9245,79 +9245,79 @@ ${y}`));
9245
9245
  }
9246
9246
  }
9247
9247
  if (R.current.iMouse?.isNeeded) {
9248
- const V = y.getUniformLocation(
9248
+ const T = y.getUniformLocation(
9249
9249
  p.current,
9250
9250
  ot
9251
9251
  );
9252
- y.uniform4fv(V, R.current.iMouse.value);
9252
+ y.uniform4fv(T, R.current.iMouse.value);
9253
9253
  }
9254
9254
  if (R.current.iChannelResolution?.isNeeded) {
9255
- const V = y.getUniformLocation(
9255
+ const T = y.getUniformLocation(
9256
9256
  p.current,
9257
9257
  at
9258
9258
  );
9259
9259
  y.uniform3fv(
9260
- V,
9260
+ T,
9261
9261
  R.current.iChannelResolution.value
9262
9262
  );
9263
9263
  }
9264
9264
  if (R.current.iDeviceOrientation?.isNeeded) {
9265
- const V = y.getUniformLocation(
9265
+ const T = y.getUniformLocation(
9266
9266
  p.current,
9267
9267
  it
9268
9268
  );
9269
9269
  y.uniform4fv(
9270
- V,
9270
+ T,
9271
9271
  R.current.iDeviceOrientation.value
9272
9272
  );
9273
9273
  }
9274
9274
  if (R.current.iTime?.isNeeded) {
9275
- const V = y.getUniformLocation(
9275
+ const T = y.getUniformLocation(
9276
9276
  p.current,
9277
9277
  et
9278
9278
  );
9279
- F.current += M, y.uniform1f(V, F.current);
9279
+ F.current += M, y.uniform1f(T, F.current);
9280
9280
  }
9281
9281
  if (R.current.iTimeDelta?.isNeeded) {
9282
- const V = y.getUniformLocation(
9282
+ const T = y.getUniformLocation(
9283
9283
  p.current,
9284
9284
  tt
9285
9285
  );
9286
- y.uniform1f(V, M);
9286
+ y.uniform1f(T, M);
9287
9287
  }
9288
9288
  if (R.current.iDate?.isNeeded) {
9289
- const V = /* @__PURE__ */ new Date(), _ = V.getMonth() + 1, c1 = V.getDate(), x1 = V.getFullYear(), N1 = V.getHours() * 60 * 60 + V.getMinutes() * 60 + V.getSeconds() + V.getMilliseconds() * 1e-3, V1 = y.getUniformLocation(
9289
+ const T = /* @__PURE__ */ new Date(), _ = T.getMonth() + 1, c1 = T.getDate(), x1 = T.getFullYear(), N1 = T.getHours() * 60 * 60 + T.getMinutes() * 60 + T.getSeconds() + T.getMilliseconds() * 1e-3, T1 = y.getUniformLocation(
9290
9290
  p.current,
9291
9291
  rt
9292
9292
  );
9293
- y.uniform4fv(V1, [x1, _, c1, N1]);
9293
+ y.uniform4fv(T1, [x1, _, c1, N1]);
9294
9294
  }
9295
9295
  if (R.current.iFrame?.isNeeded) {
9296
- const V = y.getUniformLocation(
9296
+ const T = y.getUniformLocation(
9297
9297
  p.current,
9298
9298
  nt
9299
9299
  ), _ = R.current.iFrame.value;
9300
- y.uniform1i(V, _), R.current.iFrame.value = _ + 1;
9300
+ y.uniform1i(T, _), R.current.iFrame.value = _ + 1;
9301
9301
  }
9302
9302
  if (P.current.length > 0)
9303
- for (let V = 0; V < P.current.length; V++) {
9304
- const _ = P.current[V];
9303
+ for (let T = 0; T < P.current.length; T++) {
9304
+ const _ = P.current[T];
9305
9305
  if (!_)
9306
9306
  return;
9307
- const { isVideo: c1, _webglTexture: x1, source: N1, flipY: V1, isLoaded: X1 } = _;
9307
+ const { isVideo: c1, _webglTexture: x1, source: N1, flipY: T1, isLoaded: X1 } = _;
9308
9308
  if (!X1 || !x1 || !N1)
9309
9309
  return;
9310
- if (R.current[`iChannel${V}`]?.isNeeded) {
9310
+ if (R.current[`iChannel${T}`]?.isNeeded) {
9311
9311
  if (!p.current)
9312
9312
  return;
9313
9313
  const P1 = y.getUniformLocation(
9314
9314
  p.current,
9315
- `iChannel${V}`
9315
+ `iChannel${T}`
9316
9316
  );
9317
- y.activeTexture(y.TEXTURE0 + V), y.bindTexture(y.TEXTURE_2D, x1), y.uniform1i(P1, V), c1 && _.updateTexture(
9317
+ y.activeTexture(y.TEXTURE0 + T), y.bindTexture(y.TEXTURE_2D, x1), y.uniform1i(P1, T), c1 && _.updateTexture(
9318
9318
  x1,
9319
9319
  N1,
9320
- V1
9320
+ T1
9321
9321
  );
9322
9322
  }
9323
9323
  }
@@ -9335,8 +9335,8 @@ ${y}`));
9335
9335
  ), k1(k), y.drawArrays(y.TRIANGLE_STRIP, 0, 4);
9336
9336
  const M = R.current.iMouse?.value;
9337
9337
  if (R.current.iMouse?.isNeeded && c !== 1 && Array.isArray(M)) {
9338
- const B = M[0] ?? 0, V = M[1] ?? 0;
9339
- M[0] = ft(B, x.current[0] ?? 0, c), M[1] = ft(V, x.current[1] ?? 0, c);
9338
+ const B = M[0] ?? 0, T = M[1] ?? 0;
9339
+ M[0] = ft(B, x.current[0] ?? 0, c), M[1] = ft(T, x.current[1] ?? 0, c);
9340
9340
  }
9341
9341
  S.current = requestAnimationFrame(U);
9342
9342
  }, J = () => {
@@ -9361,7 +9361,7 @@ ${y}`));
9361
9361
  function y() {
9362
9362
  Z();
9363
9363
  const M = w.current;
9364
- M && h.current && (M.clearColor(...s), M.clearDepth(1), M.enable(M.DEPTH_TEST), M.depthFunc(M.LEQUAL), M.viewport(0, 0, h.current.width, h.current.height), h.current.height = h.current.clientHeight, h.current.width = h.current.clientWidth, n1(), F1(), m1(b1(e || _6), r || Je), O(), requestAnimationFrame(U), J(), Q());
9364
+ M && h.current && (M.clearColor(...s), M.clearDepth(1), M.enable(M.DEPTH_TEST), M.depthFunc(M.LEQUAL), M.viewport(0, 0, h.current.width, h.current.height), h.current.height = h.current.clientHeight, h.current.width = h.current.clientWidth, n1(), F1(), m1(b1(e || _6), r || Je), j(), requestAnimationFrame(U), J(), Q());
9365
9365
  }
9366
9366
  return requestAnimationFrame(y), () => {
9367
9367
  const M = w.current;
@@ -9735,7 +9735,7 @@ const d9 = ({
9735
9735
  ease: [0.33, 1, 0.68, 1]
9736
9736
  },
9737
9737
  children: /* @__PURE__ */ t(
9738
- Ts,
9738
+ Vs,
9739
9739
  {
9740
9740
  size: "md",
9741
9741
  label: o.ai.ask,
@@ -9940,8 +9940,8 @@ const c4 = ({
9940
9940
  ease: [0.33, 1, 0.68, 1]
9941
9941
  }, S = () => {
9942
9942
  i?.();
9943
- }, $ = (T) => {
9944
- T.currentTarget === T.target && (T.key === "Enter" || T.key === " ") && (T.preventDefault(), i?.());
9943
+ }, $ = (V) => {
9944
+ V.currentTarget === V.target && (V.key === "Enter" || V.key === " ") && (V.preventDefault(), i?.());
9945
9945
  };
9946
9946
  return /* @__PURE__ */ l("div", { className: "relative", children: [
9947
9947
  a ? /* @__PURE__ */ l(M1, { children: [
@@ -10062,7 +10062,7 @@ const h4 = () => /* @__PURE__ */ l(
10062
10062
  ]
10063
10063
  }
10064
10064
  ), u9 = _s(
10065
- js(Rr, h4)
10065
+ Os(Rr, h4)
10066
10066
  ), f9 = [
10067
10067
  "text",
10068
10068
  "person",
@@ -10165,7 +10165,7 @@ const v4 = ({
10165
10165
  open: o,
10166
10166
  onOpenChange: s,
10167
10167
  children: [
10168
- /* @__PURE__ */ l(jt, { className: "flex w-full items-center text-base text-f1-foreground-secondary transition-colors duration-150 hover:text-f1-foreground [&[data-state=open]>svg]:rotate-90", children: [
10168
+ /* @__PURE__ */ l(Ot, { className: "flex w-full items-center text-base text-f1-foreground-secondary transition-colors duration-150 hover:text-f1-foreground [&[data-state=open]>svg]:rotate-90", children: [
10169
10169
  /* @__PURE__ */ t("span", { className: "mr-2 *:block", children: /* @__PURE__ */ t(o1, { icon: e, className: "block" }) }),
10170
10170
  /* @__PURE__ */ t("span", { className: "mr-[2px]", children: r }),
10171
10171
  /* @__PURE__ */ t(
@@ -10176,7 +10176,7 @@ const v4 = ({
10176
10176
  }
10177
10177
  )
10178
10178
  ] }),
10179
- /* @__PURE__ */ t(Ot, { forceMount: !0, className: "data-[state=open]:mt-3", children: /* @__PURE__ */ t(
10179
+ /* @__PURE__ */ t(jt, { forceMount: !0, className: "data-[state=open]:mt-3", children: /* @__PURE__ */ t(
10180
10180
  K.div,
10181
10181
  {
10182
10182
  initial: !1,
@@ -10244,7 +10244,7 @@ function y4({
10244
10244
  title: r,
10245
10245
  filename: n
10246
10246
  }) {
10247
- const o = z(), s = E(null), a = r ?? o.ai.aiTable.title, i = j(
10247
+ const o = z(), s = E(null), a = r ?? o.ai.aiTable.title, i = O(
10248
10248
  (d) => {
10249
10249
  if (!s.current)
10250
10250
  return;
@@ -10343,7 +10343,7 @@ function y4({
10343
10343
  }
10344
10344
  y4.displayName = "F0AiTableCard";
10345
10345
  function M4({ credits: e, trigger: r }) {
10346
- const n = z(), [o, s] = I(!1), [a, i] = I(!1), [d, c] = I(!1), [f, u] = I(null), C = j(
10346
+ const n = z(), [o, s] = I(!1), [a, i] = I(!1), [d, c] = I(!1), [f, u] = I(null), C = O(
10347
10347
  (w) => {
10348
10348
  s(w), w && e?.fetchUsage && (i(!0), c(!1), e.fetchUsage().then((v) => {
10349
10349
  u(v), c(!1);
@@ -10531,7 +10531,7 @@ function N4({
10531
10531
  employeeCredits: e,
10532
10532
  trigger: r
10533
10533
  }) {
10534
- const n = z(), [o, s] = I(!1), [a, i] = I(!1), [d, c] = I(!1), [f, u] = I(null), C = j(
10534
+ const n = z(), [o, s] = I(!1), [a, i] = I(!1), [d, c] = I(!1), [f, u] = I(null), C = O(
10535
10535
  (h) => {
10536
10536
  s(h), h && e?.fetchUsage && (i(!0), c(!1), e.fetchUsage().then((w) => {
10537
10537
  u(w), c(!1);
@@ -10638,17 +10638,17 @@ const se = ({
10638
10638
  icon: R1,
10639
10639
  onClick: i
10640
10640
  }
10641
- ), $ = h?.map((T) => /* @__PURE__ */ t(
10641
+ ), $ = h?.map((V) => /* @__PURE__ */ t(
10642
10642
  s1,
10643
10643
  {
10644
10644
  variant: "ghost",
10645
10645
  hideLabel: !0,
10646
- label: T.label,
10647
- icon: T.icon,
10646
+ label: V.label,
10647
+ icon: V.icon,
10648
10648
  type: "button",
10649
- onClick: T.onClick
10649
+ onClick: V.onClick
10650
10650
  },
10651
- T.id
10651
+ V.id
10652
10652
  ));
10653
10653
  return m ? /* @__PURE__ */ l(
10654
10654
  "header",
@@ -10770,18 +10770,18 @@ function S4(e) {
10770
10770
  const r = new Date(e), n = /* @__PURE__ */ new Date();
10771
10771
  return Ut(r) ? "today" : zt(r) ? "yesterday" : Zs(r, n) ? "thisMonth" : "older";
10772
10772
  }
10773
- function V4(e, r, n) {
10773
+ function T4(e, r, n) {
10774
10774
  const o = new Date(e), s = Be(o, "p", { locale: n });
10775
10775
  if (Ut(o))
10776
10776
  return `${r.today}, ${s}`;
10777
10777
  if (zt(o))
10778
10778
  return `${r.yesterday}, ${s}`;
10779
- const a = !Os(o, /* @__PURE__ */ new Date());
10779
+ const a = !js(o, /* @__PURE__ */ new Date());
10780
10780
  return `${Be(o, a ? "MMM d yyyy" : "MMM d", {
10781
10781
  locale: n
10782
10782
  })}, ${s}`;
10783
10783
  }
10784
- function T4(e) {
10784
+ function V4(e) {
10785
10785
  const r = {
10786
10786
  today: [],
10787
10787
  yesterday: [],
@@ -10809,7 +10809,7 @@ function A4({
10809
10809
  () => [
10810
10810
  {
10811
10811
  label: r ? f.ai.unpinChat : f.ai.pinChat,
10812
- icon: r ? Vt : St,
10812
+ icon: r ? Tt : St,
10813
10813
  onClick: () => r ? i(e.id) : a(e.id)
10814
10814
  },
10815
10815
  {
@@ -10821,7 +10821,7 @@ function A4({
10821
10821
  ],
10822
10822
  [r, e.id, a, i, d]
10823
10823
  ), m = X(
10824
- () => V4(
10824
+ () => T4(
10825
10825
  e.updatedAt,
10826
10826
  {
10827
10827
  today: f.ai.today,
@@ -10916,9 +10916,9 @@ function ht({
10916
10916
  onUnpin: a,
10917
10917
  onDelete: i
10918
10918
  }) {
10919
- const [d, c] = I(!0), f = j(() => {
10919
+ const [d, c] = I(!0), f = O(() => {
10920
10920
  c((C) => !C);
10921
- }, []), u = j(
10921
+ }, []), u = O(
10922
10922
  (C) => {
10923
10923
  (C.key === "Enter" || C.key === " ") && (C.preventDefault(), f());
10924
10924
  },
@@ -11020,16 +11020,16 @@ const p9 = ({
11020
11020
  () => w.filter((x) => !i.has(x.id)),
11021
11021
  [w, i]
11022
11022
  ), L = X(
11023
- () => T4(p),
11023
+ () => V4(p),
11024
11024
  [p]
11025
- ), S = j(
11025
+ ), S = O(
11026
11026
  (x, P) => {
11027
11027
  r(x, P), e();
11028
11028
  },
11029
11029
  [r, e]
11030
- ), $ = j(() => {
11030
+ ), $ = O(() => {
11031
11031
  n(), e();
11032
- }, [n, e]), T = j(
11032
+ }, [n, e]), V = O(
11033
11033
  (x) => {
11034
11034
  f(x);
11035
11035
  },
@@ -11109,7 +11109,7 @@ const p9 = ({
11109
11109
  onSelect: S,
11110
11110
  onPin: d,
11111
11111
  onUnpin: c,
11112
- onDelete: T
11112
+ onDelete: V
11113
11113
  }
11114
11114
  ) : null,
11115
11115
  !s && !a ? L.map((x) => /* @__PURE__ */ t(
@@ -11121,7 +11121,7 @@ const p9 = ({
11121
11121
  onSelect: S,
11122
11122
  onPin: d,
11123
11123
  onUnpin: c,
11124
- onDelete: T
11124
+ onDelete: V
11125
11125
  },
11126
11126
  x.key
11127
11127
  )) : null
@@ -11149,7 +11149,7 @@ function m9({
11149
11149
  pinThread: o,
11150
11150
  unpinThread: s
11151
11151
  }) {
11152
- const [a, i] = I([]), [d, c] = I(!1), [f, u] = I(null), [C, m] = I($4), [h, w] = I(() => /* @__PURE__ */ new Set()), v = j(async () => {
11152
+ const [a, i] = I([]), [d, c] = I(!1), [f, u] = I(null), [C, m] = I($4), [h, w] = I(() => /* @__PURE__ */ new Set()), v = O(async () => {
11153
11153
  c(!0), u(null);
11154
11154
  try {
11155
11155
  const x = await r();
@@ -11164,30 +11164,30 @@ function m9({
11164
11164
  W(() => {
11165
11165
  e && v();
11166
11166
  }, [e, v]);
11167
- const p = j((x, P) => {
11167
+ const p = O((x, P) => {
11168
11168
  m((N) => {
11169
11169
  if (P === N.has(x))
11170
11170
  return N;
11171
11171
  const D = new Set(N);
11172
11172
  return P ? D.add(x) : D.delete(x), mt(D), D;
11173
11173
  });
11174
- }, []), L = j((x, P) => {
11174
+ }, []), L = O((x, P) => {
11175
11175
  w((N) => {
11176
11176
  if (P === N.has(x))
11177
11177
  return N;
11178
11178
  const D = new Set(N);
11179
11179
  return P ? D.add(x) : D.delete(x), D;
11180
11180
  });
11181
- }, []), S = j(
11181
+ }, []), S = O(
11182
11182
  (x, P) => {
11183
11183
  const N = P ? o : s;
11184
11184
  p(x, P), N && (L(x, !0), N(x).catch(() => p(x, !P)).finally(() => L(x, !1)));
11185
11185
  },
11186
11186
  [o, s, p, L]
11187
- ), $ = j((x) => S(x, !0), [S]), T = j(
11187
+ ), $ = O((x) => S(x, !0), [S]), V = O(
11188
11188
  (x) => S(x, !1),
11189
11189
  [S]
11190
- ), F = j(
11190
+ ), F = O(
11191
11191
  async (x) => {
11192
11192
  L(x, !0);
11193
11193
  try {
@@ -11213,7 +11213,7 @@ function m9({
11213
11213
  pinnedIds: C,
11214
11214
  pendingIds: h,
11215
11215
  pinThread: $,
11216
- unpinThread: T,
11216
+ unpinThread: V,
11217
11217
  deleteThread: F
11218
11218
  };
11219
11219
  }
@@ -11325,7 +11325,7 @@ export {
11325
11325
  na as I,
11326
11326
  n5 as J,
11327
11327
  Wa as K,
11328
- ja as L,
11328
+ Oa as L,
11329
11329
  Za as M,
11330
11330
  Da as N,
11331
11331
  za as O,