@versini/sassysaint 5.5.19 → 5.5.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import { jsxs as v, jsx as l, Fragment as Y } from "react/jsx-runtime";
2
- import { g as ue, ACTION_RESTORE as At, ACTION_MESSAGE as q, ROLE_ASSISTANT as K, ACTION_RESET as qe, ACTION_MODEL as Ke, ACTION_ENGINE as Je, ACTION_STREAMING as Qe, ACTION_SORT as Lt, ACTION_SEARCH as zt, ACTION_SET_TAGS as Xe, ACTION_RESET_TAGS as Ye, ACTION_TOGGLE_TAG as Ze, DEFAULT_AI_ENGINE as U, P as et, un as Z, ROLE_SYSTEM as Mt, ROLE_INTERNAL as he, ROLE_HIDDEN as Ot, STATS_SEPARATOR as Be, CLIPBOARD_TAG as Ae, TYPE_QUESTION as Ut, C as tt, SEND as Dt, ERROR_MESSAGE as Vt, ROLE_USER as le, L as Pt, j as Ht, isLastMessageFromRole as Gt, getMessageContaintWrapperClass as Ft, Logo as Wt, getMainPaddingClass as Le, r as jt, LOCAL_STORAGE_PREFIX as ze, LOCAL_STORAGE_SEARCH as qt, LOCAL_STORAGE_SORT as Kt } from "./index.DaKlCgCU.js";
2
+ import { g as ge, ACTION_RESTORE as At, ACTION_MESSAGE as q, ROLE_ASSISTANT as K, ACTION_RESET as qe, ACTION_MODEL as Ke, ACTION_ENGINE as Je, ACTION_STREAMING as Qe, ACTION_SORT as Lt, ACTION_SEARCH as Mt, ACTION_SET_PROMPTS as Xe, ACTION_RESET_PROMPTS as Ye, ACTION_TOGGLE_PROMPT as Ze, DEFAULT_AI_ENGINE as U, P as et, un as Z, ROLE_SYSTEM as zt, ROLE_INTERNAL as he, ROLE_HIDDEN as Ot, STATS_SEPARATOR as Be, CLIPBOARD_PROMPT as Ae, TYPE_QUESTION as Ut, C as tt, SEND as Pt, ERROR_MESSAGE as Dt, ROLE_USER as le, L as Vt, j as Ht, isLastMessageFromRole as Ft, getMessageContaintWrapperClass as Gt, Logo as Wt, getMainPaddingClass as Le, r as jt, LOCAL_STORAGE_PREFIX as Me, LOCAL_STORAGE_SEARCH as qt, LOCAL_STORAGE_SORT as Kt } from "./index.D4jSn1Cz.js";
3
3
  import s from "clsx";
4
- import I, { useRef as k, useEffect as x, useCallback as D, useSyncExternalStore as Jt, useState as S, useMemo as pe, useContext as $, useLayoutEffect as P, useId as Qt, useReducer as Q, lazy as rt, Suspense as ce } from "react";
4
+ import I, { useRef as k, useEffect as x, useCallback as P, useSyncExternalStore as Jt, useState as S, useMemo as pe, useContext as $, useLayoutEffect as V, useId as Qt, useReducer as Q, lazy as rt, Suspense as ce } from "react";
5
5
  const Xt = ({
6
6
  className: e,
7
7
  viewBox: t,
@@ -9,7 +9,7 @@ const Xt = ({
9
9
  monotone: a,
10
10
  ...o
11
11
  }) => /* @__PURE__ */ v(
12
- ue,
12
+ ge,
13
13
  {
14
14
  defaultViewBox: "0 0 448 512",
15
15
  size: "size-5",
@@ -35,7 +35,7 @@ const Xt = ({
35
35
  monotone: a,
36
36
  ...o
37
37
  }) => /* @__PURE__ */ l(
38
- ue,
38
+ ge,
39
39
  {
40
40
  defaultViewBox: "0 0 384 512",
41
41
  size: "size-5",
@@ -52,7 +52,7 @@ const Xt = ({
52
52
  monotone: a,
53
53
  ...o
54
54
  }) => /* @__PURE__ */ l(
55
- ue,
55
+ ge,
56
56
  {
57
57
  defaultViewBox: "0 0 384 512",
58
58
  size: "size-5",
@@ -87,7 +87,7 @@ const er = "av-header", tr = ({
87
87
  noMargin: c = !1,
88
88
  noPadding: d = !1
89
89
  }) => {
90
- const g = s(
90
+ const m = s(
91
91
  er,
92
92
  {
93
93
  "border-border-accent": a === "dark" && !r && !o && !i,
@@ -103,12 +103,12 @@ const er = "av-header", tr = ({
103
103
  "sticky top-0 z-50": n
104
104
  },
105
105
  t
106
- ), m = s({
106
+ ), u = s({
107
107
  "mt-0": !c,
108
108
  "p-2": !d,
109
109
  "flex flex-col w-full md:mx-auto md:max-w-4xl": !r
110
110
  });
111
- return /* @__PURE__ */ l("header", { className: g, children: /* @__PURE__ */ l("div", { className: m, children: e }) });
111
+ return /* @__PURE__ */ l("header", { className: m, children: /* @__PURE__ */ l("div", { className: u, children: e }) });
112
112
  };
113
113
  function rr(e) {
114
114
  const t = e.toLowerCase().split("+").map((n) => n.trim()), r = {
@@ -124,15 +124,15 @@ function rr(e) {
124
124
  };
125
125
  }
126
126
  function ar(e, t) {
127
- const { alt: r, ctrl: a, meta: o, mod: n, shift: i, key: c } = e, { altKey: d, ctrlKey: g, metaKey: m, shiftKey: h, key: u } = t;
127
+ const { alt: r, ctrl: a, meta: o, mod: n, shift: i, key: c } = e, { altKey: d, ctrlKey: m, metaKey: u, shiftKey: h, key: g } = t;
128
128
  if (r !== d)
129
129
  return !1;
130
130
  if (n) {
131
- if (!g && !m)
131
+ if (!m && !u)
132
132
  return !1;
133
- } else if (a !== g || o !== m)
133
+ } else if (a !== m || o !== u)
134
134
  return !1;
135
- return i !== h ? !1 : !!(c && (u.toLowerCase() === c.toLowerCase() || t.code.replace("Key", "").toLowerCase() === c.toLowerCase()));
135
+ return i !== h ? !1 : !!(c && (g.toLowerCase() === c.toLowerCase() || t.code.replace("Key", "").toLowerCase() === c.toLowerCase()));
136
136
  }
137
137
  function or(e) {
138
138
  return (t) => ar(rr(e), t);
@@ -149,12 +149,12 @@ function sr() {
149
149
  const e = k(!1);
150
150
  return x(() => (e.current = !0, () => {
151
151
  e.current = !1;
152
- }), []), D(() => e.current, []);
152
+ }), []), P(() => e.current, []);
153
153
  }
154
154
  function at(e, t) {
155
155
  window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
156
156
  }
157
- const Me = (e, t) => {
157
+ const ze = (e, t) => {
158
158
  const r = JSON.stringify(
159
159
  typeof t == "function" ? t() : t
160
160
  );
@@ -166,24 +166,24 @@ function Ue({
166
166
  key: e,
167
167
  initialValue: t
168
168
  }) {
169
- const r = Jt(lr, () => Oe(e)), a = D(
169
+ const r = Jt(lr, () => Oe(e)), a = P(
170
170
  (i) => {
171
171
  try {
172
172
  const c = typeof i == "function" ? i(JSON.parse(r)) : i;
173
- c == null ? ir(e) : Me(e, c);
173
+ c == null ? ir(e) : ze(e, c);
174
174
  } catch (c) {
175
175
  console.warn(c);
176
176
  }
177
177
  },
178
178
  [e, r]
179
- ), o = D(() => {
179
+ ), o = P(() => {
180
180
  a(t);
181
- }, [t, a]), n = D(() => {
181
+ }, [t, a]), n = P(() => {
182
182
  a(null);
183
183
  }, [a]);
184
184
  return x(() => {
185
185
  try {
186
- Oe(e) === null && typeof t < "u" && Me(e, t);
186
+ Oe(e) === null && typeof t < "u" && ze(e, t);
187
187
  } catch (i) {
188
188
  console.warn(i);
189
189
  }
@@ -226,7 +226,7 @@ try {
226
226
  const ee = "thead", be = "tfoot", H = "tbody", j = {
227
227
  ASC: "asc",
228
228
  DESC: "desc"
229
- }, gr = ({
229
+ }, mr = ({
230
230
  mode: e,
231
231
  className: t,
232
232
  wrapperClassName: r,
@@ -261,7 +261,7 @@ const ee = "thead", be = "tfoot", H = "tbody", j = {
261
261
  "text-copy-light dark:text-copy-dark": e === "system",
262
262
  "text-copy-dark dark:text-copy-light": e === "alt-system"
263
263
  })
264
- }), mr = ({
264
+ }), ur = ({
265
265
  className: e,
266
266
  stickyHeader: t,
267
267
  mode: r
@@ -274,7 +274,7 @@ const ee = "thead", be = "tfoot", H = "tbody", j = {
274
274
  "shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": t && r === "alt-system"
275
275
  },
276
276
  e
277
- ), ur = ({
277
+ ), gr = ({
278
278
  className: e,
279
279
  stickyFooter: t,
280
280
  mode: r
@@ -338,7 +338,7 @@ const ee = "thead", be = "tfoot", H = "tbody", j = {
338
338
  )
339
339
  }), br = ({
340
340
  buttonClassName: e
341
- }) => s("rounded-none text-sm", e), De = "av-button", ye = "icon", ot = "button", de = "link", yr = ({
341
+ }) => s("rounded-none text-sm", e), Pe = "av-button", ye = "icon", ot = "button", de = "link", yr = ({
342
342
  type: e,
343
343
  size: t,
344
344
  labelRight: r,
@@ -569,35 +569,35 @@ const ee = "thead", be = "tfoot", H = "tbody", j = {
569
569
  fullWidth: i,
570
570
  size: c,
571
571
  noBorder: d,
572
- labelRight: g,
573
- labelLeft: m,
572
+ labelRight: m,
573
+ labelLeft: u,
574
574
  noBackground: h,
575
- variant: u,
575
+ variant: g,
576
576
  noTruncate: p,
577
577
  align: b,
578
578
  radius: f
579
- }) => (u || (u = "primary"), r ? s(De, t) : s(
580
- De,
579
+ }) => (g || (g = "primary"), r ? s(Pe, t) : s(
580
+ Pe,
581
581
  kr({
582
582
  mode: a,
583
- variant: u,
583
+ variant: g,
584
584
  noBackground: h,
585
585
  noTruncate: p
586
586
  }),
587
- vr({ mode: a, noBackground: h, variant: u }),
587
+ vr({ mode: a, noBackground: h, variant: g }),
588
588
  xr({ radius: f }),
589
589
  yr({
590
590
  type: e,
591
591
  size: c,
592
- labelRight: g,
593
- labelLeft: m,
592
+ labelRight: m,
593
+ labelLeft: u,
594
594
  align: b
595
595
  }),
596
- fr({ type: e, size: c, labelRight: g, labelLeft: m }),
597
- Nr({ mode: a, variant: u, noBorder: d }),
596
+ fr({ type: e, size: c, labelRight: m, labelLeft: u }),
597
+ Nr({ mode: a, variant: g, noBorder: d }),
598
598
  Tr({ focusMode: o }),
599
- _r({ mode: a, variant: u, disabled: n }),
600
- wr({ mode: a, variant: u, disabled: n }),
599
+ _r({ mode: a, variant: g, disabled: n }),
600
+ wr({ mode: a, variant: g, disabled: n }),
601
601
  {
602
602
  "w-full": i,
603
603
  "disabled:cursor-not-allowed disabled:opacity-50": n
@@ -644,10 +644,10 @@ const st = I.forwardRef(
644
644
  type: i = "button",
645
645
  raw: c = !1,
646
646
  noBorder: d = !1,
647
- "aria-label": g,
648
- label: m,
647
+ "aria-label": m,
648
+ label: u,
649
649
  size: h = "medium",
650
- labelRight: u,
650
+ labelRight: g,
651
651
  labelLeft: p,
652
652
  noBackground: b = !1,
653
653
  align: f = "center",
@@ -665,7 +665,7 @@ const st = I.forwardRef(
665
665
  className: n,
666
666
  noBorder: d,
667
667
  size: h,
668
- labelRight: u,
668
+ labelRight: g,
669
669
  labelLeft: p,
670
670
  noBackground: b,
671
671
  align: f,
@@ -675,7 +675,7 @@ const st = I.forwardRef(
675
675
  "text-copy-light": r === "dark" && !c,
676
676
  "text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !c,
677
677
  "text-copy-light dark:text-copy-accent-dark": r === "system" && !c
678
- }), z = y ? s(
678
+ }), M = y ? s(
679
679
  "relative",
680
680
  "focus-within:static",
681
681
  "focus-within:after:border-transparent",
@@ -692,19 +692,19 @@ const st = I.forwardRef(
692
692
  "after:border-table-light dark:after:border-table-dark": r === "alt-system"
693
693
  }
694
694
  ) : "";
695
- return /* @__PURE__ */ l("div", { className: z, children: /* @__PURE__ */ v(
695
+ return /* @__PURE__ */ l("div", { className: M, children: /* @__PURE__ */ v(
696
696
  nt,
697
697
  {
698
698
  ref: T,
699
699
  className: R,
700
700
  disabled: t,
701
701
  type: i,
702
- "aria-label": g || m,
702
+ "aria-label": m || u,
703
703
  ...N,
704
704
  children: [
705
705
  p && /* @__PURE__ */ l("span", { className: "pr-2", children: p }),
706
706
  /* @__PURE__ */ l("div", { className: E, children: e }),
707
- u && /* @__PURE__ */ l("span", { className: "pl-2", children: u })
707
+ g && /* @__PURE__ */ l("span", { className: "pl-2", children: g })
708
708
  ]
709
709
  }
710
710
  ) });
@@ -722,13 +722,13 @@ const fe = ({
722
722
  semantic: c = !1,
723
723
  ...d
724
724
  }) => {
725
- const g = s(n, a);
725
+ const m = s(n, a);
726
726
  return /* @__PURE__ */ v(Y, { children: [
727
727
  /* @__PURE__ */ l(
728
728
  "svg",
729
729
  {
730
730
  xmlns: "http://www.w3.org/2000/svg",
731
- className: g,
731
+ className: m,
732
732
  viewBox: r || o,
733
733
  fill: t || "currentColor",
734
734
  role: "img",
@@ -867,7 +867,7 @@ try {
867
867
  });
868
868
  } catch {
869
869
  }
870
- const G = I.createContext({
870
+ const F = I.createContext({
871
871
  mode: "light",
872
872
  cellWrapper: "thead",
873
873
  stickyHeader: !1,
@@ -883,20 +883,20 @@ const G = I.createContext({
883
883
  wrapperClassName: i,
884
884
  maxHeight: c,
885
885
  stickyHeader: d,
886
- stickyFooter: g,
887
- ...m
886
+ stickyFooter: m,
887
+ ...u
888
888
  }) => {
889
- const h = gr({
889
+ const h = mr({
890
890
  mode: t,
891
891
  className: n,
892
892
  wrapperClassName: i,
893
893
  stickyHeader: d,
894
- stickyFooter: g
894
+ stickyFooter: m
895
895
  });
896
896
  return /* @__PURE__ */ l(
897
- G.Provider,
897
+ F.Provider,
898
898
  {
899
- value: { mode: t, stickyHeader: d, stickyFooter: g, compact: a },
899
+ value: { mode: t, stickyHeader: d, stickyFooter: m, compact: a },
900
900
  children: /* @__PURE__ */ l(
901
901
  "div",
902
902
  {
@@ -904,7 +904,7 @@ const G = I.createContext({
904
904
  ...c && {
905
905
  style: { maxHeight: c }
906
906
  },
907
- children: /* @__PURE__ */ v("table", { className: h.table, summary: o, ...m, children: [
907
+ children: /* @__PURE__ */ v("table", { className: h.table, summary: o, ...u, children: [
908
908
  r && /* @__PURE__ */ l("caption", { className: h.caption, children: r }),
909
909
  e
910
910
  ] })
@@ -917,9 +917,9 @@ const G = I.createContext({
917
917
  className: t,
918
918
  ...r
919
919
  }) => {
920
- const a = $(G);
920
+ const a = $(F);
921
921
  a.cellWrapper = ee;
922
- const o = mr({
922
+ const o = ur({
923
923
  className: t,
924
924
  mode: a.mode,
925
925
  stickyHeader: a.stickyHeader
@@ -930,23 +930,23 @@ const G = I.createContext({
930
930
  className: t,
931
931
  ...r
932
932
  }) => {
933
- const a = $(G);
933
+ const a = $(F);
934
934
  a.cellWrapper = be;
935
- const o = ur({
935
+ const o = gr({
936
936
  className: t,
937
937
  mode: a.mode,
938
938
  stickyFooter: a.stickyFooter
939
939
  });
940
940
  return /* @__PURE__ */ l("tfoot", { className: o, ...r, children: e });
941
941
  }, ao = ({ children: e, ...t }) => {
942
- const r = $(G);
942
+ const r = $(F);
943
943
  return r.cellWrapper = H, /* @__PURE__ */ l("tbody", { ...t, children: e });
944
944
  }, oo = ({
945
945
  children: e,
946
946
  className: t,
947
947
  ...r
948
948
  }) => {
949
- const a = $(G), o = hr({
949
+ const a = $(F), o = hr({
950
950
  mode: a.mode,
951
951
  cellWrapper: a.cellWrapper,
952
952
  className: t
@@ -959,7 +959,7 @@ const G = I.createContext({
959
959
  align: a,
960
960
  ...o
961
961
  }) => {
962
- const n = $(G), i = t || (n.cellWrapper === ee ? "th" : "td"), { mainClasses: c, alignClasses: d } = pr({
962
+ const n = $(F), i = t || (n.cellWrapper === ee ? "th" : "td"), { mainClasses: c, alignClasses: d } = pr({
963
963
  cellWrapper: n.cellWrapper,
964
964
  className: r,
965
965
  mode: n.mode,
@@ -977,24 +977,24 @@ const G = I.createContext({
977
977
  mode: i = "alt-system",
978
978
  onClick: c,
979
979
  sortDirection: d,
980
- sortedCell: g,
981
- cellId: m,
980
+ sortedCell: m,
981
+ cellId: u,
982
982
  ...h
983
983
  }) => {
984
- const u = br({ buttonClassName: r });
984
+ const g = br({ buttonClassName: r });
985
985
  return /* @__PURE__ */ l(
986
986
  $r,
987
987
  {
988
988
  component: o,
989
989
  className: a,
990
990
  role: "columnheader",
991
- "aria-sort": d === j.ASC && g === m ? "ascending" : d === j.DESC && g === m ? "descending" : "other",
991
+ "aria-sort": d === j.ASC && m === u ? "ascending" : d === j.DESC && m === u ? "descending" : "other",
992
992
  ...h,
993
993
  children: /* @__PURE__ */ l(
994
994
  st,
995
995
  {
996
- active: g === m,
997
- className: u,
996
+ active: m === u,
997
+ className: g,
998
998
  onClick: c,
999
999
  align: e,
1000
1000
  noBorder: !0,
@@ -1002,7 +1002,7 @@ const G = I.createContext({
1002
1002
  mode: i,
1003
1003
  fullWidth: !0,
1004
1004
  labelRight: t,
1005
- children: d === j.ASC && g === m ? /* @__PURE__ */ l(Rr, { className: "size-4", monotone: !0 }) : d === j.DESC && g === m ? /* @__PURE__ */ l(Ir, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ l(Cr, { className: "size-4", monotone: !0 })
1005
+ children: d === j.ASC && m === u ? /* @__PURE__ */ l(Rr, { className: "size-4", monotone: !0 }) : d === j.DESC && m === u ? /* @__PURE__ */ l(Ir, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ l(Cr, { className: "size-4", monotone: !0 })
1006
1006
  }
1007
1007
  )
1008
1008
  }
@@ -1023,15 +1023,15 @@ function Lr() {
1023
1023
  }
1024
1024
  return se(Ar);
1025
1025
  }
1026
- const zr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ve = { randomUUID: zr };
1026
+ const Mr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), De = { randomUUID: Mr };
1027
1027
  function ke(e, t, r) {
1028
- if (Ve.randomUUID && !t && !e)
1029
- return Ve.randomUUID();
1028
+ if (De.randomUUID && !t && !e)
1029
+ return De.randomUUID();
1030
1030
  e = e || {};
1031
1031
  const a = e.random || (e.rng || Lr)();
1032
1032
  return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Br(a);
1033
1033
  }
1034
- const Mr = (e, t) => {
1034
+ const zr = (e, t) => {
1035
1035
  if ((t == null ? void 0 : t.type) === At) {
1036
1036
  const r = t.payload.messages.map((a) => ({
1037
1037
  message: {
@@ -1048,7 +1048,7 @@ const Mr = (e, t) => {
1048
1048
  isComponent: e.isComponent,
1049
1049
  messages: r,
1050
1050
  engine: e.engine,
1051
- tags: e.tags
1051
+ prompts: e.prompts
1052
1052
  };
1053
1053
  }
1054
1054
  if ((t == null ? void 0 : t.type) === q) {
@@ -1063,25 +1063,25 @@ const Mr = (e, t) => {
1063
1063
  };
1064
1064
  if (r === K) {
1065
1065
  const d = e.messages.findIndex(
1066
- (g) => g.message.messageId === i
1066
+ (m) => m.message.messageId === i
1067
1067
  );
1068
1068
  if (d !== -1) {
1069
- const g = e.messages.map((m, h) => h === d ? {
1069
+ const m = e.messages.map((u, h) => h === d ? {
1070
1070
  message: {
1071
- ...m.message,
1072
- content: `${m.message.content}${a}`,
1071
+ ...u.message,
1072
+ content: `${u.message.content}${a}`,
1073
1073
  processingTime: n,
1074
1074
  name: o
1075
1075
  }
1076
- } : m);
1076
+ } : u);
1077
1077
  return {
1078
1078
  id: e.id,
1079
1079
  model: e.model,
1080
1080
  usage: e.usage,
1081
1081
  isComponent: e.isComponent,
1082
- messages: g,
1082
+ messages: m,
1083
1083
  engine: e.engine,
1084
- tags: e.tags
1084
+ prompts: e.prompts
1085
1085
  };
1086
1086
  }
1087
1087
  }
@@ -1089,7 +1089,7 @@ const Mr = (e, t) => {
1089
1089
  id: e.id,
1090
1090
  model: e.model,
1091
1091
  engine: e.engine,
1092
- tags: e.tags,
1092
+ prompts: e.prompts,
1093
1093
  usage: e.usage,
1094
1094
  isComponent: e.isComponent,
1095
1095
  messages: [
@@ -1108,12 +1108,12 @@ const Mr = (e, t) => {
1108
1108
  usage: 0,
1109
1109
  messages: [],
1110
1110
  isComponent: e.isComponent,
1111
- tags: e.tags
1111
+ prompts: e.prompts
1112
1112
  } : (t == null ? void 0 : t.type) === Ke ? {
1113
1113
  id: e.id,
1114
1114
  model: t.payload.model,
1115
1115
  engine: e.engine,
1116
- tags: e.tags,
1116
+ prompts: e.prompts,
1117
1117
  usage: t.payload.usage,
1118
1118
  messages: e.messages,
1119
1119
  isComponent: e.isComponent
@@ -1126,7 +1126,7 @@ const Mr = (e, t) => {
1126
1126
  } : e;
1127
1127
  }, Or = (e, t) => {
1128
1128
  switch (t == null ? void 0 : t.type) {
1129
- case zt:
1129
+ case Mt:
1130
1130
  return {
1131
1131
  searchString: t.payload.searchString,
1132
1132
  sortedCell: e.sortedCell,
@@ -1145,18 +1145,18 @@ const Mr = (e, t) => {
1145
1145
  switch (t == null ? void 0 : t.type) {
1146
1146
  case Ze:
1147
1147
  return {
1148
- tags: e.tags,
1149
- tag: t.payload.tag
1148
+ prompts: e.prompts,
1149
+ prompt: t.payload.prompt
1150
1150
  };
1151
1151
  case Ye:
1152
1152
  return {
1153
- tags: e.tags,
1154
- tag: ""
1153
+ prompts: e.prompts,
1154
+ prompt: ""
1155
1155
  };
1156
1156
  case Xe:
1157
1157
  return {
1158
- tags: t.payload.tags,
1159
- tag: ""
1158
+ prompts: t.payload.prompts,
1159
+ prompt: ""
1160
1160
  };
1161
1161
  default:
1162
1162
  return e;
@@ -1298,7 +1298,7 @@ const Mr = (e, t) => {
1298
1298
  schema: L.SET_USER_PREFERENCES,
1299
1299
  method: "setUserPreferences"
1300
1300
  }
1301
- }, lt = process.env.PUBLIC_SASSY_API_SERVER_URL, Dr = async ({
1301
+ }, lt = process.env.PUBLIC_SASSY_API_SERVER_URL, Pr = async ({
1302
1302
  query: e,
1303
1303
  data: t,
1304
1304
  headers: r = {}
@@ -1321,7 +1321,7 @@ const Mr = (e, t) => {
1321
1321
  }) => {
1322
1322
  const a = t != null && t.data ? t.data(r) : r;
1323
1323
  try {
1324
- const o = `Bearer ${e}`, n = await Dr({
1324
+ const o = `Bearer ${e}`, n = await Pr({
1325
1325
  headers: {
1326
1326
  authorization: o
1327
1327
  },
@@ -1339,7 +1339,7 @@ const Mr = (e, t) => {
1339
1339
  } catch (o) {
1340
1340
  return console.error(o), { status: 500, data: [] };
1341
1341
  }
1342
- }, Vr = async ({
1342
+ }, Dr = async ({
1343
1343
  accessToken: e,
1344
1344
  name: t,
1345
1345
  data: r,
@@ -1355,7 +1355,7 @@ const Mr = (e, t) => {
1355
1355
  },
1356
1356
  body: JSON.stringify(r)
1357
1357
  });
1358
- }, F = I.createContext({
1358
+ }, G = I.createContext({
1359
1359
  state: {
1360
1360
  id: "",
1361
1361
  model: U,
@@ -1363,7 +1363,7 @@ const Mr = (e, t) => {
1363
1363
  usage: 0,
1364
1364
  messages: [],
1365
1365
  isComponent: !1,
1366
- tags: []
1366
+ prompts: []
1367
1367
  },
1368
1368
  dispatch: () => {
1369
1369
  },
@@ -1374,12 +1374,12 @@ const Mr = (e, t) => {
1374
1374
  engine: U,
1375
1375
  engines: []
1376
1376
  }
1377
- }), Pr = I.createContext({
1377
+ }), Vr = I.createContext({
1378
1378
  state: { searchString: "", sortedCell: "", sortDirection: "" },
1379
1379
  dispatch: () => {
1380
1380
  }
1381
1381
  }), ve = I.createContext({
1382
- state: { tag: "" },
1382
+ state: { prompt: "" },
1383
1383
  dispatch: () => {
1384
1384
  }
1385
1385
  });
@@ -1396,12 +1396,12 @@ try {
1396
1396
  });
1397
1397
  } catch {
1398
1398
  }
1399
- const dt = "av-text-area", Hr = "av-text-area-wrapper", ie = "av-text-area-helper-text", Gr = "av-text-area__control--right", Fr = "av-text-area__control--left";
1399
+ const dt = "av-text-area", Hr = "av-text-area-wrapper", ie = "av-text-area-helper-text", Fr = "av-text-area__control--right", Gr = "av-text-area__control--left";
1400
1400
  function Wr() {
1401
1401
  const e = k(!1);
1402
1402
  return x(() => (e.current = !0, () => {
1403
1403
  e.current = !1;
1404
- }), []), D(() => e.current, []);
1404
+ }), []), P(() => e.current, []);
1405
1405
  }
1406
1406
  function jr(e) {
1407
1407
  return pe(() => e.every((t) => t == null) ? () => {
@@ -1421,7 +1421,7 @@ const qr = {
1421
1421
  bottom: 0,
1422
1422
  right: 0
1423
1423
  };
1424
- function Pe(e) {
1424
+ function Ve(e) {
1425
1425
  const t = Wr(), r = k(0), a = k(null), [o, n] = S(qr), i = pe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
1426
1426
  const d = c[0];
1427
1427
  d && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
@@ -1442,14 +1442,14 @@ function Kr({
1442
1442
  }) {
1443
1443
  const [n, i] = S(!1), [c, d] = S(
1444
1444
  t !== void 0 ? t : r
1445
- ), g = (m) => {
1446
- d(m), a == null || a(m);
1445
+ ), m = (u) => {
1446
+ d(u), a == null || a(u);
1447
1447
  };
1448
1448
  return x(() => {
1449
1449
  (async () => e !== void 0 && !n && o > 0 && (await new Promise(
1450
- (m) => setTimeout(m, o)
1450
+ (u) => setTimeout(u, o)
1451
1451
  ), i(!0)))();
1452
- }, [e, o, n]), e !== void 0 ? !n && o > 0 ? ["", a, !0] : [e, a, !0] : [c, g, !1];
1452
+ }, [e, o, n]), e !== void 0 ? !n && o > 0 ? ["", a, !0] : [e, a, !0] : [c, m, !1];
1453
1453
  }
1454
1454
  function Jr(e) {
1455
1455
  const t = Qt();
@@ -1462,7 +1462,7 @@ function Jr(e) {
1462
1462
  return typeof r == "number" || typeof r == "string" ? `${a}${r}` : `${a}${t}`;
1463
1463
  }
1464
1464
  }
1465
- const gt = "SET_ANNOUNCEMENT", mt = "CLEAR_ANNOUNCEMENT", Qr = {
1465
+ const mt = "SET_ANNOUNCEMENT", ut = "CLEAR_ANNOUNCEMENT", Qr = {
1466
1466
  alert: null,
1467
1467
  alertdialog: null,
1468
1468
  log: "polite",
@@ -1472,12 +1472,12 @@ const gt = "SET_ANNOUNCEMENT", mt = "CLEAR_ANNOUNCEMENT", Qr = {
1472
1472
  timer: "assertive"
1473
1473
  }, Xr = (e, t) => {
1474
1474
  switch (t == null ? void 0 : t.type) {
1475
- case gt:
1475
+ case mt:
1476
1476
  return {
1477
1477
  ...e,
1478
1478
  announcement: t.payload
1479
1479
  };
1480
- case mt:
1480
+ case ut:
1481
1481
  return {
1482
1482
  ...e,
1483
1483
  announcement: null
@@ -1490,7 +1490,7 @@ const gt = "SET_ANNOUNCEMENT", mt = "CLEAR_ANNOUNCEMENT", Qr = {
1490
1490
  dispatch: t
1491
1491
  }) => {
1492
1492
  t({
1493
- type: mt
1493
+ type: ut
1494
1494
  }), typeof e == "function" && e();
1495
1495
  }, He = ({
1496
1496
  children: e,
@@ -1500,7 +1500,7 @@ const gt = "SET_ANNOUNCEMENT", mt = "CLEAR_ANNOUNCEMENT", Qr = {
1500
1500
  dispatch: o
1501
1501
  }) => {
1502
1502
  clearTimeout(r.current), e !== null && o({
1503
- type: gt,
1503
+ type: mt,
1504
1504
  payload: e
1505
1505
  }), t && (r.current = setTimeout(
1506
1506
  () => Yr({
@@ -1543,19 +1543,19 @@ function ea({
1543
1543
  visible: c,
1544
1544
  ...d
1545
1545
  }) {
1546
- const g = k(null), m = k(null), [h, u] = Q(Xr, {
1546
+ const m = k(null), u = k(null), [h, g] = Q(Xr, {
1547
1547
  announcement: null
1548
1548
  });
1549
1549
  let p = r;
1550
1550
  typeof p > "u" && (p = a ? Qr[a] : "assertive"), x(() => {
1551
1551
  Zr({
1552
- announcementTimeoutRef: g,
1552
+ announcementTimeoutRef: m,
1553
1553
  announcementDelay: o,
1554
1554
  children: e,
1555
1555
  clearAnnouncementDelay: n,
1556
- clearAnnouncementTimeoutRef: m,
1556
+ clearAnnouncementTimeoutRef: u,
1557
1557
  onAnnouncementClear: i,
1558
- dispatch: u
1558
+ dispatch: g
1559
1559
  });
1560
1560
  }, [
1561
1561
  e,
@@ -1686,9 +1686,9 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1686
1686
  error: i,
1687
1687
  mode: c,
1688
1688
  leftElement: d,
1689
- rightElement: g
1689
+ rightElement: m
1690
1690
  }) => {
1691
- const m = r ? e : s(
1691
+ const u = r ? e : s(
1692
1692
  "relative flex w-full flex-col justify-center",
1693
1693
  Hr,
1694
1694
  e
@@ -1705,23 +1705,23 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1705
1705
  {
1706
1706
  "disabled:cursor-not-allowed disabled:opacity-50": o
1707
1707
  }
1708
- ), u = r ? void 0 : "sr-only", p = na({
1708
+ ), g = r ? void 0 : "sr-only", p = na({
1709
1709
  disabled: o,
1710
1710
  raw: r,
1711
1711
  error: i,
1712
1712
  mode: c,
1713
- rightElement: g,
1713
+ rightElement: m,
1714
1714
  leftElement: d
1715
1715
  }), b = sa({
1716
1716
  error: i,
1717
1717
  raw: r,
1718
1718
  mode: c,
1719
1719
  disabled: o
1720
- }), f = r ? void 0 : s(Gr, "absolute"), y = r ? void 0 : s(Fr, "absolute");
1720
+ }), f = r ? void 0 : s(Fr, "absolute"), y = r ? void 0 : s(Gr, "absolute");
1721
1721
  return {
1722
- wrapper: m,
1722
+ wrapper: u,
1723
1723
  textArea: h,
1724
- accessibleLabel: u,
1724
+ accessibleLabel: g,
1725
1725
  visibleLabel: p,
1726
1726
  helperText: b,
1727
1727
  rightElement: f,
@@ -1743,7 +1743,7 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1743
1743
  helperTextOffset: n,
1744
1744
  scrollHeight: e
1745
1745
  };
1746
- }, ut = I.forwardRef(
1746
+ }, gt = I.forwardRef(
1747
1747
  ({
1748
1748
  id: e,
1749
1749
  name: t,
@@ -1754,10 +1754,10 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1754
1754
  textAreaClassName: i,
1755
1755
  mode: c = "system",
1756
1756
  focusMode: d = "system",
1757
- value: g,
1758
- defaultValue: m,
1757
+ value: m,
1758
+ defaultValue: u,
1759
1759
  disabled: h = !1,
1760
- noBorder: u = !1,
1760
+ noBorder: g = !1,
1761
1761
  labelId: p,
1762
1762
  helperText: b = "",
1763
1763
  helperTextOnFocus: f = !1,
@@ -1767,9 +1767,9 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1767
1767
  onFocus: T,
1768
1768
  onBlur: R,
1769
1769
  ...E
1770
- }, z) => {
1770
+ }, M) => {
1771
1771
  var Te;
1772
- const B = k(null), xt = jr([z, B]), [_t, J] = Pe(), [wt, V] = Pe(), re = k(80), Ee = k(-25), M = k(null), Se = k(30), ae = k(null), W = Jr({ id: e, prefix: `${dt}-` }), [Ce, Nt] = S(0), [Ie, Tt] = S(0), [Et, Re] = S(
1772
+ const B = k(null), xt = jr([M, B]), [_t, J] = Ve(), [wt, D] = Ve(), re = k(80), Ee = k(-25), z = k(null), Se = k(30), ae = k(null), W = Jr({ id: e, prefix: `${dt}-` }), [Ce, Nt] = S(0), [Ie, Tt] = S(0), [Et, Re] = S(
1773
1773
  !!(!f && b)
1774
1774
  ), St = `${t} error, ${b}`, O = ia({
1775
1775
  className: n,
@@ -1778,14 +1778,14 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1778
1778
  raw: o,
1779
1779
  focusMode: d,
1780
1780
  disabled: h,
1781
- noBorder: u,
1781
+ noBorder: g,
1782
1782
  mode: c,
1783
1783
  rightElement: !!y,
1784
1784
  leftElement: !!_
1785
1785
  }), [A, Ct] = Kr({
1786
- value: g,
1786
+ value: m,
1787
1787
  initialControlledDelay: 20,
1788
- defaultValue: m,
1788
+ defaultValue: u,
1789
1789
  onChange: (C) => {
1790
1790
  N && N({
1791
1791
  target: {
@@ -1800,21 +1800,21 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1800
1800
  }, $t = (C) => {
1801
1801
  f && b && !A && Re(!1), R && R(C);
1802
1802
  };
1803
- return P(() => {
1803
+ return V(() => {
1804
1804
  J && J.width && Nt(J.width + 18 + 10);
1805
- }, [J]), P(() => {
1806
- V && V.width && Tt(V.width + 18 + 10);
1807
- }, [V]), P(() => {
1805
+ }, [J]), V(() => {
1806
+ D && D.width && Tt(D.width + 18 + 10);
1807
+ }, [D]), V(() => {
1808
1808
  o || B && B.current && A !== void 0 && (B.current.style.height = "inherit", B.current.style.height = B.current.scrollHeight + "px");
1809
- }, [A, o]), P(() => {
1809
+ }, [A, o]), V(() => {
1810
1810
  o || setTimeout(() => {
1811
1811
  var C;
1812
- (C = M == null ? void 0 : M.current) == null || C.style.setProperty(
1812
+ (C = z == null ? void 0 : z.current) == null || C.style.setProperty(
1813
1813
  "--av-text-area-wrapper-transition",
1814
1814
  A ? "none" : "all 0.2s ease-out"
1815
1815
  );
1816
1816
  }, 0);
1817
- }, [A, o]), P(() => {
1817
+ }, [A, o]), V(() => {
1818
1818
  var C, $e;
1819
1819
  if (!o && B && B.current && A !== void 0) {
1820
1820
  const { labelOffset: oe, helperTextOffset: ne, scrollHeight: Bt } = la({
@@ -1823,7 +1823,7 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1823
1823
  currentLabelOffset: Ee.current,
1824
1824
  currentHelperTextOffset: Se.current
1825
1825
  });
1826
- oe && (Ee.current = oe, (C = M == null ? void 0 : M.current) == null || C.style.setProperty(
1826
+ oe && (Ee.current = oe, (C = z == null ? void 0 : z.current) == null || C.style.setProperty(
1827
1827
  "--av-text-area-label",
1828
1828
  `${oe}px`
1829
1829
  )), ne && (Se.current = ne, ($e = ae == null ? void 0 : ae.current) == null || $e.style.setProperty(
@@ -1831,9 +1831,9 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1831
1831
  `${ne}px`
1832
1832
  )), re.current = Bt || re.current;
1833
1833
  }
1834
- }, [A, o]), V.width > 0 && ((Te = M == null ? void 0 : M.current) == null || Te.style.setProperty(
1834
+ }, [A, o]), D.width > 0 && ((Te = z == null ? void 0 : z.current) == null || Te.style.setProperty(
1835
1835
  "--tw-translate-x",
1836
- `${12 + V.width + 5}px`
1836
+ `${12 + D.width + 5}px`
1837
1837
  )), /* @__PURE__ */ v("div", { className: O.wrapper, children: [
1838
1838
  /* @__PURE__ */ l(
1839
1839
  "label",
@@ -1882,7 +1882,7 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1882
1882
  !o && /* @__PURE__ */ l(
1883
1883
  "label",
1884
1884
  {
1885
- ref: M,
1885
+ ref: z,
1886
1886
  "aria-hidden": !0,
1887
1887
  htmlFor: W,
1888
1888
  className: `${O.visibleLabel}`,
@@ -1910,13 +1910,13 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1910
1910
  ] });
1911
1911
  }
1912
1912
  );
1913
- ut.displayName = "TextArea";
1913
+ gt.displayName = "TextArea";
1914
1914
  const ca = ({
1915
1915
  mode: e = "light",
1916
1916
  focusMode: t = "light",
1917
1917
  radius: r = "small"
1918
1918
  }) => {
1919
- const { state: a, dispatch: o } = $(F), n = k(null), i = k(!1), c = (d) => {
1919
+ const { state: a, dispatch: o } = $(G), n = k(null), i = k(!1), c = (d) => {
1920
1920
  d.preventDefault(), o({
1921
1921
  type: qe
1922
1922
  });
@@ -1943,31 +1943,31 @@ const ca = ({
1943
1943
  streaming: t
1944
1944
  }
1945
1945
  });
1946
- }, Ge = (e) => {
1946
+ }, Fe = (e) => {
1947
1947
  X(e, !1), e({
1948
1948
  type: q,
1949
1949
  payload: {
1950
1950
  message: {
1951
1951
  role: he,
1952
- content: Vt
1952
+ content: Dt
1953
1953
  }
1954
1954
  }
1955
1955
  });
1956
1956
  }, da = () => {
1957
- const { state: e, dispatch: t } = $(F), { state: r, dispatch: a } = $(ve), [o, n] = S(""), { getAccessToken: i, user: c } = Z(), d = k(null), g = k(
1957
+ const { state: e, dispatch: t } = $(G), { state: r, dispatch: a } = $(ve), [o, n] = S(""), { getAccessToken: i, user: c } = Z(), d = k(null), m = k(
1958
1958
  null
1959
1959
  );
1960
1960
  x(() => {
1961
1961
  (async () => {
1962
- var u;
1962
+ var g;
1963
1963
  if (!e || e.messages.length === 0) {
1964
- (u = g == null ? void 0 : g.current) == null || u.cancel();
1964
+ (g = m == null ? void 0 : m.current) == null || g.cancel();
1965
1965
  return;
1966
1966
  }
1967
1967
  const h = e.messages[e.messages.length - 1];
1968
- if (!(e.messages.length === 0 || h.message.role === K || h.message.role === Mt || h.message.role === he || h.message.role === Ot))
1968
+ if (!(e.messages.length === 0 || h.message.role === K || h.message.role === zt || h.message.role === he || h.message.role === Ot))
1969
1969
  try {
1970
- const p = await Vr({
1970
+ const p = await Dr({
1971
1971
  accessToken: await i(),
1972
1972
  name: "generate",
1973
1973
  data: {
@@ -1980,11 +1980,11 @@ const ca = ({
1980
1980
  });
1981
1981
  if (p && p.ok) {
1982
1982
  const b = ke();
1983
- g.current = p.body.getReader();
1983
+ m.current = p.body.getReader();
1984
1984
  const f = new TextDecoder();
1985
1985
  for (; ; ) {
1986
1986
  X(t, !0);
1987
- const { done: y, value: _ } = await g.current.read();
1987
+ const { done: y, value: _ } = await m.current.read();
1988
1988
  if (y) {
1989
1989
  X(t, !1);
1990
1990
  break;
@@ -2026,13 +2026,13 @@ const ca = ({
2026
2026
  });
2027
2027
  }
2028
2028
  } else
2029
- Ge(t);
2029
+ Fe(t);
2030
2030
  } catch (p) {
2031
- console.error(p), Ge(t);
2031
+ console.error(p), Fe(t);
2032
2032
  }
2033
2033
  })();
2034
2034
  }, [e == null ? void 0 : e.messages]);
2035
- const m = async (h) => {
2035
+ const u = async (h) => {
2036
2036
  h.preventDefault(), t({
2037
2037
  type: q,
2038
2038
  payload: {
@@ -2044,8 +2044,8 @@ const ca = ({
2044
2044
  }), n("");
2045
2045
  };
2046
2046
  return x(() => {
2047
- if (r.tag !== "") {
2048
- const h = r.tag.endsWith(":") && !r.tag.endsWith(": ") ? r.tag + " " : r.tag;
2047
+ if (r.prompt !== "") {
2048
+ const h = r.prompt.endsWith(":") && !r.prompt.endsWith(": ") ? r.prompt + " " : r.prompt;
2049
2049
  h.indexOf(Ae) !== -1 ? navigator.clipboard.readText().then((p) => {
2050
2050
  n(h.replace(Ae, p));
2051
2051
  }) : n(h), d.current && d.current.focus(), a({
@@ -2054,8 +2054,8 @@ const ca = ({
2054
2054
  }
2055
2055
  }, [r, a]), x(() => {
2056
2056
  e && e.usage === 0 && e.messages.length === 0 && d.current && d.current.focus();
2057
- }, [e]), /* @__PURE__ */ l(Y, { children: /* @__PURE__ */ l("form", { className: "mt-2", onSubmit: m, children: /* @__PURE__ */ l(
2058
- ut,
2057
+ }, [e]), /* @__PURE__ */ l(Y, { children: /* @__PURE__ */ l("form", { className: "mt-2", onSubmit: u, children: /* @__PURE__ */ l(
2058
+ gt,
2059
2059
  {
2060
2060
  mode: "dark",
2061
2061
  focusMode: "light",
@@ -2067,7 +2067,7 @@ const ca = ({
2067
2067
  required: !0,
2068
2068
  value: o,
2069
2069
  onChange: (h) => n(h.target.value),
2070
- onKeyDown: nr([["mod+Enter", m]]),
2070
+ onKeyDown: nr([["mod+Enter", u]]),
2071
2071
  leftElement: /* @__PURE__ */ l(ca, {}),
2072
2072
  rightElement: /* @__PURE__ */ l(
2073
2073
  tt,
@@ -2077,19 +2077,19 @@ const ca = ({
2077
2077
  type: "submit",
2078
2078
  mode: "light",
2079
2079
  focusMode: "light",
2080
- children: Dt
2080
+ children: Pt
2081
2081
  }
2082
2082
  )
2083
2083
  }
2084
2084
  ) }) });
2085
- }, ga = () => {
2085
+ }, ma = () => {
2086
2086
  const { dispatch: e, state: t } = $(ve), { getAccessToken: r, user: a } = Z(), [o, n] = S({
2087
2087
  loaded: !1
2088
- }), i = "mt-2 flex justify-center rounded-md", c = (d, g) => {
2088
+ }), i = "mt-2 flex justify-center rounded-md", c = (d, m) => {
2089
2089
  d.preventDefault(), e({
2090
2090
  type: Ze,
2091
2091
  payload: {
2092
- tag: g
2092
+ prompt: m
2093
2093
  }
2094
2094
  });
2095
2095
  };
@@ -2112,7 +2112,7 @@ const ca = ({
2112
2112
  d.status === 200 && (e({
2113
2113
  type: Xe,
2114
2114
  payload: {
2115
- tags: d.data.tags || []
2115
+ prompts: d.data.tags || []
2116
2116
  }
2117
2117
  }), n({
2118
2118
  loaded: !0
@@ -2120,19 +2120,19 @@ const ca = ({
2120
2120
  } catch {
2121
2121
  }
2122
2122
  })();
2123
- }, [a]), /* @__PURE__ */ l(Y, { children: /* @__PURE__ */ l(Pt, { alignHorizontal: "center", columnGap: 2, children: o && o.loaded && t.tags && t.tags.map((d) => d.enabled && d.label && d.content && /* @__PURE__ */ l(Ht, { children: /* @__PURE__ */ l("div", { className: i, children: /* @__PURE__ */ l(
2123
+ }, [a]), /* @__PURE__ */ l(Y, { children: /* @__PURE__ */ l(Vt, { alignHorizontal: "center", columnGap: 2, children: o && o.loaded && t.prompts && t.prompts.map((d) => d.enabled && d.label && d.content && /* @__PURE__ */ l(Ht, { children: /* @__PURE__ */ l("div", { className: i, children: /* @__PURE__ */ l(
2124
2124
  tt,
2125
2125
  {
2126
2126
  noBorder: !0,
2127
2127
  mode: "dark",
2128
2128
  focusMode: "light",
2129
2129
  size: "small",
2130
- onClick: (g) => c(g, d.content),
2130
+ onClick: (m) => c(m, d.content),
2131
2131
  children: d.label
2132
2132
  }
2133
- ) }) }, `tag-button-${d.slot}`)) }) });
2134
- }, ma = () => {
2135
- const { state: e } = $(F), t = k(!1), r = window.innerWidth < 403, [a, o] = S(
2133
+ ) }) }, `prompt-button-${d.slot}`)) }) });
2134
+ }, ua = () => {
2135
+ const { state: e } = $(G), t = k(!1), r = window.innerWidth < 403, [a, o] = S(
2136
2136
  r ? "bottom-10" : "top-[245px]"
2137
2137
  );
2138
2138
  return x(() => {
@@ -2147,7 +2147,7 @@ const ca = ({
2147
2147
  a
2148
2148
  ),
2149
2149
  children: [
2150
- /* @__PURE__ */ l(ga, {}),
2150
+ /* @__PURE__ */ l(ma, {}),
2151
2151
  /* @__PURE__ */ l(da, {})
2152
2152
  ]
2153
2153
  }
@@ -2166,7 +2166,7 @@ try {
2166
2166
  });
2167
2167
  } catch {
2168
2168
  }
2169
- const ua = "av-bubble", Fe = "av-button", te = "icon", ht = "button", ge = "link", ha = ({
2169
+ const ga = "av-bubble", Ge = "av-button", te = "icon", ht = "button", me = "link", ha = ({
2170
2170
  type: e,
2171
2171
  size: t,
2172
2172
  labelRight: r,
@@ -2176,7 +2176,7 @@ const ua = "av-bubble", Fe = "av-button", te = "icon", ht = "button", ge = "link
2176
2176
  const n = "max-h-8 py-0 px-2", i = "max-h-9 py-1 px-3", c = "max-h-12 py-2 px-4";
2177
2177
  switch (e) {
2178
2178
  case ht:
2179
- case ge:
2179
+ case me:
2180
2180
  return s({
2181
2181
  [n]: t === "small",
2182
2182
  [i]: t === "medium",
@@ -2204,9 +2204,9 @@ const ua = "av-bubble", Fe = "av-button", te = "icon", ht = "button", ge = "link
2204
2204
  const o = "text-sm font-medium", n = "text-base font-medium", i = "text-lg font-medium";
2205
2205
  switch (e) {
2206
2206
  case ht:
2207
- case ge:
2207
+ case me:
2208
2208
  return s({
2209
- "text-center": e === ge,
2209
+ "text-center": e === me,
2210
2210
  [o]: t === "small",
2211
2211
  [n]: t === "medium",
2212
2212
  [i]: t === "large"
@@ -2397,35 +2397,35 @@ const ua = "av-bubble", Fe = "av-button", te = "icon", ht = "button", ge = "link
2397
2397
  fullWidth: i,
2398
2398
  size: c,
2399
2399
  noBorder: d,
2400
- labelRight: g,
2401
- labelLeft: m,
2400
+ labelRight: m,
2401
+ labelLeft: u,
2402
2402
  noBackground: h,
2403
- variant: u,
2403
+ variant: g,
2404
2404
  noTruncate: p,
2405
2405
  align: b,
2406
2406
  radius: f
2407
- }) => (u || (u = "primary"), r ? s(Fe, t) : s(
2408
- Fe,
2407
+ }) => (g || (g = "primary"), r ? s(Ge, t) : s(
2408
+ Ge,
2409
2409
  ba({
2410
2410
  mode: a,
2411
- variant: u,
2411
+ variant: g,
2412
2412
  noBackground: h,
2413
2413
  noTruncate: p
2414
2414
  }),
2415
- ya({ mode: a, noBackground: h, variant: u }),
2415
+ ya({ mode: a, noBackground: h, variant: g }),
2416
2416
  fa({ radius: f }),
2417
2417
  ha({
2418
2418
  type: e,
2419
2419
  size: c,
2420
- labelRight: g,
2421
- labelLeft: m,
2420
+ labelRight: m,
2421
+ labelLeft: u,
2422
2422
  align: b
2423
2423
  }),
2424
- pa({ type: e, size: c, labelRight: g, labelLeft: m }),
2425
- xa({ mode: a, variant: u, noBorder: d }),
2424
+ pa({ type: e, size: c, labelRight: m, labelLeft: u }),
2425
+ xa({ mode: a, variant: g, noBorder: d }),
2426
2426
  _a({ focusMode: o }),
2427
- ka({ mode: a, variant: u, disabled: n }),
2428
- va({ mode: a, variant: u, disabled: n }),
2427
+ ka({ mode: a, variant: g, disabled: n }),
2428
+ va({ mode: a, variant: g, disabled: n }),
2429
2429
  {
2430
2430
  "w-full": i,
2431
2431
  "disabled:cursor-not-allowed disabled:opacity-50": n
@@ -2459,10 +2459,10 @@ const bt = I.forwardRef(
2459
2459
  type: i = "button",
2460
2460
  raw: c = !1,
2461
2461
  noBorder: d = !1,
2462
- "aria-label": g,
2463
- label: m,
2462
+ "aria-label": m,
2463
+ label: u,
2464
2464
  size: h = "medium",
2465
- labelRight: u,
2465
+ labelRight: g,
2466
2466
  labelLeft: p,
2467
2467
  noBackground: b = !1,
2468
2468
  align: f = "center",
@@ -2480,7 +2480,7 @@ const bt = I.forwardRef(
2480
2480
  className: n,
2481
2481
  noBorder: d,
2482
2482
  size: h,
2483
- labelRight: u,
2483
+ labelRight: g,
2484
2484
  labelLeft: p,
2485
2485
  noBackground: b,
2486
2486
  align: f,
@@ -2499,12 +2499,12 @@ const bt = I.forwardRef(
2499
2499
  className: R,
2500
2500
  disabled: t,
2501
2501
  type: i,
2502
- "aria-label": g || m,
2502
+ "aria-label": m || u,
2503
2503
  ...N,
2504
2504
  children: [
2505
2505
  p && /* @__PURE__ */ l("span", { className: "pr-2", children: p }),
2506
2506
  /* @__PURE__ */ l("div", { className: E, children: e }),
2507
- u && /* @__PURE__ */ l("span", { className: "pl-2", children: u })
2507
+ g && /* @__PURE__ */ l("span", { className: "pl-2", children: g })
2508
2508
  ]
2509
2509
  }
2510
2510
  );
@@ -2535,10 +2535,10 @@ const Na = I.forwardRef(
2535
2535
  type: i = "button",
2536
2536
  raw: c = !1,
2537
2537
  noBorder: d = !1,
2538
- "aria-label": g,
2539
- label: m,
2538
+ "aria-label": m,
2539
+ label: u,
2540
2540
  size: h = "medium",
2541
- labelRight: u,
2541
+ labelRight: g,
2542
2542
  labelLeft: p,
2543
2543
  noBackground: b = !1,
2544
2544
  align: f = "center",
@@ -2556,7 +2556,7 @@ const Na = I.forwardRef(
2556
2556
  className: n,
2557
2557
  noBorder: d,
2558
2558
  size: h,
2559
- labelRight: u,
2559
+ labelRight: g,
2560
2560
  labelLeft: p,
2561
2561
  noBackground: b,
2562
2562
  align: f,
@@ -2566,7 +2566,7 @@ const Na = I.forwardRef(
2566
2566
  "text-copy-light": r === "dark" && !c,
2567
2567
  "text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !c,
2568
2568
  "text-copy-light dark:text-copy-accent-dark": r === "system" && !c
2569
- }), z = y ? s(
2569
+ }), M = y ? s(
2570
2570
  "relative",
2571
2571
  "focus-within:static",
2572
2572
  "focus-within:after:border-transparent",
@@ -2583,19 +2583,19 @@ const Na = I.forwardRef(
2583
2583
  "after:border-table-light dark:after:border-table-dark": r === "alt-system"
2584
2584
  }
2585
2585
  ) : "";
2586
- return /* @__PURE__ */ l("div", { className: z, children: /* @__PURE__ */ v(
2586
+ return /* @__PURE__ */ l("div", { className: M, children: /* @__PURE__ */ v(
2587
2587
  xe,
2588
2588
  {
2589
2589
  ref: T,
2590
2590
  className: R,
2591
2591
  disabled: t,
2592
2592
  type: i,
2593
- "aria-label": g || m,
2593
+ "aria-label": m || u,
2594
2594
  ...N,
2595
2595
  children: [
2596
2596
  p && /* @__PURE__ */ l("span", { className: "pr-2", children: p }),
2597
2597
  /* @__PURE__ */ l("div", { className: E, children: e }),
2598
- u && /* @__PURE__ */ l("span", { className: "pl-2", children: u })
2598
+ g && /* @__PURE__ */ l("span", { className: "pl-2", children: g })
2599
2599
  ]
2600
2600
  }
2601
2601
  ) });
@@ -2613,13 +2613,13 @@ const yt = ({
2613
2613
  semantic: c = !1,
2614
2614
  ...d
2615
2615
  }) => {
2616
- const g = s(n, a);
2616
+ const m = s(n, a);
2617
2617
  return /* @__PURE__ */ v(Y, { children: [
2618
2618
  /* @__PURE__ */ l(
2619
2619
  "svg",
2620
2620
  {
2621
2621
  xmlns: "http://www.w3.org/2000/svg",
2622
- className: g,
2622
+ className: m,
2623
2623
  viewBox: r || o,
2624
2624
  fill: t || "currentColor",
2625
2625
  role: "img",
@@ -2725,7 +2725,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
2725
2725
  className: t
2726
2726
  }) => {
2727
2727
  const r = s(
2728
- ua,
2728
+ ga,
2729
2729
  "flex items-start",
2730
2730
  {
2731
2731
  "flex-row-reverse": e === "right"
@@ -2757,27 +2757,27 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
2757
2757
  copyToClipboardFocusMode: i = "system",
2758
2758
  copyToClipboardMode: c = "system"
2759
2759
  }) => {
2760
- const [d, g] = S(!1), m = $a({ kind: t, className: r }), h = !!n && (typeof n == "function" || typeof n == "string" || typeof e == "string"), u = () => {
2761
- g(!0), typeof n == "function" ? n(e) : typeof n == "string" ? navigator.clipboard.writeText(n) : typeof e == "string" && navigator.clipboard.writeText(e);
2760
+ const [d, m] = S(!1), u = $a({ kind: t, className: r }), h = !!n && (typeof n == "function" || typeof n == "string" || typeof e == "string"), g = () => {
2761
+ m(!0), typeof n == "function" ? n(e) : typeof n == "string" ? navigator.clipboard.writeText(n) : typeof e == "string" && navigator.clipboard.writeText(e);
2762
2762
  };
2763
2763
  return x(() => {
2764
2764
  let p;
2765
2765
  return d && (p = window.setTimeout(() => {
2766
- g(!1);
2766
+ m(!1);
2767
2767
  }, 3e3)), () => {
2768
2768
  clearTimeout(p);
2769
2769
  };
2770
- }, [d]), /* @__PURE__ */ v("div", { className: m.wrapper, children: [
2770
+ }, [d]), /* @__PURE__ */ v("div", { className: u.wrapper, children: [
2771
2771
  /* @__PURE__ */ v("div", { children: [
2772
- /* @__PURE__ */ l("div", { className: m.main, children: e }),
2773
- a && Object.keys(a).map((p) => a[p] ? /* @__PURE__ */ l("div", { className: "prose-p:m-0", children: /* @__PURE__ */ v("p", { className: m.footer, children: [
2772
+ /* @__PURE__ */ l("div", { className: u.main, children: e }),
2773
+ a && Object.keys(a).map((p) => a[p] ? /* @__PURE__ */ l("div", { className: "prose-p:m-0", children: /* @__PURE__ */ v("p", { className: u.footer, children: [
2774
2774
  p,
2775
2775
  ": ",
2776
2776
  a[p]
2777
2777
  ] }) }, `-${p}`) : null),
2778
2778
  o && o
2779
2779
  ] }),
2780
- h && /* @__PURE__ */ l("div", { className: m.copyButton, children: /* @__PURE__ */ l(
2780
+ h && /* @__PURE__ */ l("div", { className: u.copyButton, children: /* @__PURE__ */ l(
2781
2781
  bt,
2782
2782
  {
2783
2783
  noBorder: !0,
@@ -2786,13 +2786,13 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
2786
2786
  mode: c,
2787
2787
  focusMode: i,
2788
2788
  label: d ? "Copied to clipboard" : "Copy to clipboard",
2789
- onClick: u,
2789
+ onClick: g,
2790
2790
  disabled: d,
2791
2791
  children: d ? /* @__PURE__ */ l(Ta, { size: "size-3" }) : /* @__PURE__ */ l(Ea, { size: "size-3" })
2792
2792
  }
2793
2793
  ) })
2794
2794
  ] });
2795
- }, We = "av-button", _e = "icon", we = "button", me = "link", Aa = ({
2795
+ }, We = "av-button", _e = "icon", we = "button", ue = "link", Aa = ({
2796
2796
  type: e,
2797
2797
  size: t,
2798
2798
  labelRight: r,
@@ -2802,7 +2802,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
2802
2802
  const n = "max-h-8 py-0 px-2", i = "max-h-9 py-1 px-3", c = "max-h-12 py-2 px-4";
2803
2803
  switch (e) {
2804
2804
  case we:
2805
- case me:
2805
+ case ue:
2806
2806
  return s({
2807
2807
  [n]: t === "small",
2808
2808
  [i]: t === "medium",
@@ -2830,9 +2830,9 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
2830
2830
  const o = "text-sm font-medium", n = "text-base font-medium", i = "text-lg font-medium";
2831
2831
  switch (e) {
2832
2832
  case we:
2833
- case me:
2833
+ case ue:
2834
2834
  return s({
2835
- "text-center": e === me,
2835
+ "text-center": e === ue,
2836
2836
  [o]: t === "small",
2837
2837
  [n]: t === "medium",
2838
2838
  [i]: t === "large"
@@ -2844,7 +2844,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
2844
2844
  [i]: t === "large" && (r || a)
2845
2845
  });
2846
2846
  }
2847
- }, za = ({
2847
+ }, Ma = ({
2848
2848
  mode: e,
2849
2849
  noBackground: t,
2850
2850
  noTruncate: r,
@@ -2880,7 +2880,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
2880
2880
  return s("not-prose text-copy-lighter", {
2881
2881
  truncate: !r
2882
2882
  });
2883
- }, Ma = ({
2883
+ }, za = ({
2884
2884
  mode: e,
2885
2885
  noBackground: t,
2886
2886
  variant: r
@@ -2946,7 +2946,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
2946
2946
  });
2947
2947
  if (r === "selected")
2948
2948
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
2949
- }, Da = ({
2949
+ }, Pa = ({
2950
2950
  mode: e,
2951
2951
  disabled: t,
2952
2952
  variant: r
@@ -2976,7 +2976,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
2976
2976
  });
2977
2977
  if (r === "selected")
2978
2978
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
2979
- }, Va = ({
2979
+ }, Da = ({
2980
2980
  mode: e,
2981
2981
  noBorder: t,
2982
2982
  variant: r
@@ -3006,7 +3006,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
3006
3006
  });
3007
3007
  if (r === "selected")
3008
3008
  return "border border-border-selected-dark";
3009
- }, Pa = ({
3009
+ }, Va = ({
3010
3010
  focusMode: e
3011
3011
  }) => s("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
3012
3012
  "focus:outline-focus-dark": e === "dark",
@@ -3023,35 +3023,35 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
3023
3023
  fullWidth: i,
3024
3024
  size: c,
3025
3025
  noBorder: d,
3026
- labelRight: g,
3027
- labelLeft: m,
3026
+ labelRight: m,
3027
+ labelLeft: u,
3028
3028
  noBackground: h,
3029
- variant: u,
3029
+ variant: g,
3030
3030
  noTruncate: p,
3031
3031
  align: b,
3032
3032
  radius: f
3033
- }) => (u || (u = "primary"), r ? s(We, t) : s(
3033
+ }) => (g || (g = "primary"), r ? s(We, t) : s(
3034
3034
  We,
3035
- za({
3035
+ Ma({
3036
3036
  mode: a,
3037
- variant: u,
3037
+ variant: g,
3038
3038
  noBackground: h,
3039
3039
  noTruncate: p
3040
3040
  }),
3041
- Ma({ mode: a, noBackground: h, variant: u }),
3041
+ za({ mode: a, noBackground: h, variant: g }),
3042
3042
  Oa({ radius: f }),
3043
3043
  Aa({
3044
3044
  type: e,
3045
3045
  size: c,
3046
- labelRight: g,
3047
- labelLeft: m,
3046
+ labelRight: m,
3047
+ labelLeft: u,
3048
3048
  align: b
3049
3049
  }),
3050
- La({ type: e, size: c, labelRight: g, labelLeft: m }),
3051
- Va({ mode: a, variant: u, noBorder: d }),
3052
- Pa({ focusMode: o }),
3053
- Ua({ mode: a, variant: u, disabled: n }),
3054
- Da({ mode: a, variant: u, disabled: n }),
3050
+ La({ type: e, size: c, labelRight: m, labelLeft: u }),
3051
+ Da({ mode: a, variant: g, noBorder: d }),
3052
+ Va({ focusMode: o }),
3053
+ Ua({ mode: a, variant: g, disabled: n }),
3054
+ Pa({ mode: a, variant: g, disabled: n }),
3055
3055
  {
3056
3056
  "w-full": i,
3057
3057
  "disabled:cursor-not-allowed disabled:opacity-50": n
@@ -3085,10 +3085,10 @@ const kt = I.forwardRef(
3085
3085
  size: i = "medium",
3086
3086
  raw: c = !1,
3087
3087
  noBorder: d = !1,
3088
- variant: g = "primary",
3089
- noTruncate: m = !1,
3088
+ variant: m = "primary",
3089
+ noTruncate: u = !1,
3090
3090
  radius: h = "large",
3091
- ...u
3091
+ ...g
3092
3092
  }, p) => {
3093
3093
  const b = ft({
3094
3094
  type: we,
@@ -3100,8 +3100,8 @@ const kt = I.forwardRef(
3100
3100
  className: n,
3101
3101
  size: i,
3102
3102
  noBorder: d,
3103
- variant: g,
3104
- noTruncate: m,
3103
+ variant: m,
3104
+ noTruncate: u,
3105
3105
  radius: h
3106
3106
  });
3107
3107
  return /* @__PURE__ */ l(
@@ -3110,7 +3110,7 @@ const kt = I.forwardRef(
3110
3110
  ref: p,
3111
3111
  className: b,
3112
3112
  disabled: t,
3113
- ...u,
3113
+ ...g,
3114
3114
  children: e
3115
3115
  }
3116
3116
  );
@@ -3130,7 +3130,7 @@ try {
3130
3130
  });
3131
3131
  } catch {
3132
3132
  }
3133
- const Ga = I.forwardRef(
3133
+ const Fa = I.forwardRef(
3134
3134
  ({
3135
3135
  children: e,
3136
3136
  disabled: t = !1,
@@ -3141,10 +3141,10 @@ const Ga = I.forwardRef(
3141
3141
  type: i = "button",
3142
3142
  raw: c = !1,
3143
3143
  noBorder: d = !1,
3144
- "aria-label": g,
3145
- label: m,
3144
+ "aria-label": m,
3145
+ label: u,
3146
3146
  size: h = "medium",
3147
- labelRight: u,
3147
+ labelRight: g,
3148
3148
  labelLeft: p,
3149
3149
  noBackground: b = !1,
3150
3150
  align: f = "center",
@@ -3162,7 +3162,7 @@ const Ga = I.forwardRef(
3162
3162
  className: n,
3163
3163
  noBorder: d,
3164
3164
  size: h,
3165
- labelRight: u,
3165
+ labelRight: g,
3166
3166
  labelLeft: p,
3167
3167
  noBackground: b,
3168
3168
  align: f,
@@ -3172,7 +3172,7 @@ const Ga = I.forwardRef(
3172
3172
  "text-copy-light": r === "dark" && !c,
3173
3173
  "text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !c,
3174
3174
  "text-copy-light dark:text-copy-accent-dark": r === "system" && !c
3175
- }), z = y ? s(
3175
+ }), M = y ? s(
3176
3176
  "relative",
3177
3177
  "focus-within:static",
3178
3178
  "focus-within:after:border-transparent",
@@ -3189,28 +3189,28 @@ const Ga = I.forwardRef(
3189
3189
  "after:border-table-light dark:after:border-table-dark": r === "alt-system"
3190
3190
  }
3191
3191
  ) : "";
3192
- return /* @__PURE__ */ l("div", { className: z, children: /* @__PURE__ */ v(
3192
+ return /* @__PURE__ */ l("div", { className: M, children: /* @__PURE__ */ v(
3193
3193
  Ne,
3194
3194
  {
3195
3195
  ref: T,
3196
3196
  className: R,
3197
3197
  disabled: t,
3198
3198
  type: i,
3199
- "aria-label": g || m,
3199
+ "aria-label": m || u,
3200
3200
  ...N,
3201
3201
  children: [
3202
3202
  p && /* @__PURE__ */ l("span", { className: "pr-2", children: p }),
3203
3203
  /* @__PURE__ */ l("div", { className: E, children: e }),
3204
- u && /* @__PURE__ */ l("span", { className: "pl-2", children: u })
3204
+ g && /* @__PURE__ */ l("span", { className: "pl-2", children: g })
3205
3205
  ]
3206
3206
  }
3207
3207
  ) });
3208
3208
  }
3209
3209
  );
3210
- Ga.displayName = "ButtonSort";
3211
- const Fa = 200, Wa = ({
3210
+ Fa.displayName = "ButtonSort";
3211
+ const Ga = 200, Wa = ({
3212
3212
  string: e,
3213
- idealLength: t = Fa
3213
+ idealLength: t = Ga
3214
3214
  }) => {
3215
3215
  if (e.length <= t)
3216
3216
  return { string: e, isTruncated: !1 };
@@ -3267,10 +3267,10 @@ try {
3267
3267
  const je = rt(
3268
3268
  () => import(
3269
3269
  /* webpackChunkName: "LazyMessageAssistant" */
3270
- "./MessageAssistant.DpLJVr9t.js"
3270
+ "./MessageAssistant.PRne9DXL.js"
3271
3271
  ).then((e) => e.MessageAssistant)
3272
3272
  ), qa = () => {
3273
- const { state: e } = $(F);
3273
+ const { state: e } = $(G);
3274
3274
  return /* @__PURE__ */ v("div", { className: "space-y-6 mt-2", children: [
3275
3275
  e && e.messages.length > 0 && e.messages.map((t, r) => {
3276
3276
  const { role: a, content: o, name: n, processingTime: i } = t.message;
@@ -3285,37 +3285,37 @@ const je = rt(
3285
3285
  `${r}-${a}`
3286
3286
  ) : null;
3287
3287
  }),
3288
- Gt(le, e) && /* @__PURE__ */ l(ce, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(je, { loading: !0 }) })
3288
+ Ft(le, e) && /* @__PURE__ */ l(ce, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(je, { loading: !0 }) })
3289
3289
  ] });
3290
3290
  }, Ka = () => {
3291
- const { isAuthenticated: e } = Z(), { state: t } = $(F), [r, a] = S(!1), [o, n] = dr(), i = Ft({
3291
+ const { isAuthenticated: e } = Z(), { state: t } = $(G), [r, a] = S(!1), [o, n] = dr(), i = Gt({
3292
3292
  isAuthenticated: e,
3293
3293
  extraClass: "rounded-b-md"
3294
- }), c = k(!1), d = D(() => {
3295
- const m = o.current;
3296
- if (m) {
3297
- const { scrollHeight: h, clientHeight: u, scrollTop: p } = m, b = h - u - p;
3298
- m.scrollBy({
3294
+ }), c = k(!1), d = P(() => {
3295
+ const u = o.current;
3296
+ if (u) {
3297
+ const { scrollHeight: h, clientHeight: g, scrollTop: p } = u, b = h - g - p;
3298
+ u.scrollBy({
3299
3299
  top: b,
3300
3300
  behavior: "smooth"
3301
3301
  });
3302
3302
  }
3303
- }, [o]), g = D(() => {
3304
- const m = o.current;
3305
- if (m) {
3306
- const { scrollTop: h, scrollHeight: u, clientHeight: p } = m, b = u > p, f = h + p >= u - 1;
3303
+ }, [o]), m = P(() => {
3304
+ const u = o.current;
3305
+ if (u) {
3306
+ const { scrollTop: h, scrollHeight: g, clientHeight: p } = u, b = g > p, f = h + p >= g - 1;
3307
3307
  a(b && !f);
3308
3308
  }
3309
3309
  }, [o]);
3310
- return P(() => {
3311
- n && n.width && t && !t.streaming && g();
3312
- }, [n, t, g]), x(() => {
3313
- const m = o.current;
3314
- if (m)
3315
- return m.addEventListener("scroll", g), () => m.removeEventListener("scroll", g);
3316
- }, [g, o]), x(() => {
3317
- t && t.streaming && g();
3318
- }, [t, g]), x(() => {
3310
+ return V(() => {
3311
+ n && n.width && t && !t.streaming && m();
3312
+ }, [n, t, m]), x(() => {
3313
+ const u = o.current;
3314
+ if (u)
3315
+ return u.addEventListener("scroll", m), () => u.removeEventListener("scroll", m);
3316
+ }, [m, o]), x(() => {
3317
+ t && t.streaming && m();
3318
+ }, [t, m]), x(() => {
3319
3319
  t && (!c.current && t.streaming && d(), c.current = !!t.streaming);
3320
3320
  }, [t, d]), /* @__PURE__ */ v("div", { className: i, ref: o, children: [
3321
3321
  r && /* @__PURE__ */ l("div", { className: "bottom-44 z-40 fixed left-1/2 transform -translate-x-1/2", children: /* @__PURE__ */ l(
@@ -3345,31 +3345,31 @@ const je = rt(
3345
3345
  }, Ja = rt(
3346
3346
  () => import(
3347
3347
  /* webpackChunkName: "LazyHeader" */
3348
- "./HeaderToolbar.RG5VcCoN.js"
3348
+ "./HeaderToolbar.Dcsv3jhf.js"
3349
3349
  )
3350
3350
  );
3351
3351
  function vt({ isComponent: e = !1 }) {
3352
3352
  const t = k(!1), { getAccessToken: r, user: a, isAuthenticated: o } = Z(), [n] = Ue({
3353
- key: ze + qt,
3353
+ key: Me + qt,
3354
3354
  initialValue: ""
3355
3355
  }), [i] = Ue({
3356
- key: ze + Kt,
3356
+ key: Me + Kt,
3357
3357
  initialValue: j.ASC
3358
- }), [c, d] = Q(Mr, {
3358
+ }), [c, d] = Q(zr, {
3359
3359
  id: ke(),
3360
3360
  model: U,
3361
3361
  engine: U,
3362
3362
  usage: 0,
3363
3363
  messages: [],
3364
- tags: [],
3364
+ prompts: [],
3365
3365
  isComponent: e
3366
- }), [g, m] = Q(Or, {
3366
+ }), [m, u] = Q(Or, {
3367
3367
  searchString: n,
3368
3368
  sortedCell: "timestamp",
3369
3369
  sortDirection: i
3370
- }), [h, u] = Q(Ur, {
3371
- tag: "",
3372
- tags: []
3370
+ }), [h, g] = Q(Ur, {
3371
+ prompt: "",
3372
+ prompts: []
3373
3373
  }), [p, b] = S({
3374
3374
  version: "",
3375
3375
  models: [],
@@ -3403,17 +3403,17 @@ function vt({ isComponent: e = !1 }) {
3403
3403
  var _;
3404
3404
  (_ = document.getElementById("root")) == null || _.classList.replace("app-hidden", "fadeIn");
3405
3405
  }, 500);
3406
- }), /* @__PURE__ */ l(F.Provider, { value: { state: c, dispatch: d, serverStats: p }, children: /* @__PURE__ */ l(
3407
- Pr.Provider,
3406
+ }), /* @__PURE__ */ l(G.Provider, { value: { state: c, dispatch: d, serverStats: p }, children: /* @__PURE__ */ l(
3407
+ Vr.Provider,
3408
3408
  {
3409
3409
  value: {
3410
- state: g,
3411
- dispatch: m
3410
+ state: m,
3411
+ dispatch: u
3412
3412
  },
3413
3413
  children: /* @__PURE__ */ v(
3414
3414
  ve.Provider,
3415
3415
  {
3416
- value: { state: h, dispatch: u },
3416
+ value: { state: h, dispatch: g },
3417
3417
  children: [
3418
3418
  /* @__PURE__ */ l(
3419
3419
  tr,
@@ -3439,7 +3439,7 @@ function vt({ isComponent: e = !1 }) {
3439
3439
  children: /* @__PURE__ */ l(Ka, {})
3440
3440
  }
3441
3441
  ),
3442
- /* @__PURE__ */ l(ma, {})
3442
+ /* @__PURE__ */ l(ua, {})
3443
3443
  ]
3444
3444
  }
3445
3445
  )
@@ -3450,13 +3450,13 @@ vt.displayName = "App";
3450
3450
  const so = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: vt }, Symbol.toStringTag, { value: "Module" }));
3451
3451
  export {
3452
3452
  so as App,
3453
- F as AppContext,
3453
+ G as AppContext,
3454
3454
  Ue as E,
3455
- Pr as HistoryContext,
3455
+ Vr as HistoryContext,
3456
3456
  ca as NewChatButton,
3457
- ut as Pe,
3457
+ gt as Pe,
3458
+ ve as PromptsContext,
3458
3459
  it as SERVICE_TYPES,
3459
- ve as TagsContext,
3460
3460
  ro as be,
3461
3461
  j as f,
3462
3462
  eo as ge,