teodor-new-chat-ui 1.5.19 → 1.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.
package/dist/index.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as c, jsxs as N, Fragment as Fe } from "react/jsx-runtime";
2
2
  import * as l from "react";
3
- import Qe, { useState as ce, useRef as rt, useCallback as Se, useEffect as ve, useReducer as Uu, useMemo as nt, createContext as ha, useContext as ma, useLayoutEffect as zu } from "react";
4
- import { ChevronUp as Gt, ChevronDown as Tt, Copy as ls, Edit as us, RotateCcw as Kr, GitBranch as ga, ChevronLeft as Hu, ChevronRight as ba, Bot as ds, Wrench as Wu, User as Vu, Image as ju, Check as yo, Circle as Ku, X as Xt, Edit3 as va, Paperclip as fs, Plus as wa, Square as Gu, Send as qu, MessageSquare as Yu, Calendar as Xu, Trash2 as Ju, PanelLeft as Zu, Settings as Qu, Server as ed, EyeOff as td, Eye as nd, Layout as rd, MessageCircle as od, Save as sd } from "lucide-react";
3
+ import Qe, { useState as ce, useRef as rt, useCallback as Se, useEffect as ve, useReducer as Uu, useMemo as nt, createContext as pa, useContext as ha, useLayoutEffect as zu } from "react";
4
+ import { ChevronUp as Gt, ChevronDown as Tt, Copy as is, Edit as cs, RotateCcw as jr, GitBranch as ma, ChevronLeft as Hu, ChevronRight as ga, Bot as ls, Wrench as Wu, User as Vu, Image as ju, Check as wo, Circle as Ku, X as Xt, Edit3 as ba, Paperclip as us, Plus as va, Square as Gu, Send as qu, MessageSquare as Yu, Calendar as Xu, Trash2 as Ju, PanelLeft as Zu, Settings as Qu, Server as ed, EyeOff as td, Eye as nd, Layout as rd, MessageCircle as od, Save as sd } from "lucide-react";
5
5
  import { Slot as Lt, createSlot as It, createSlottable as ad } from "@radix-ui/react-slot";
6
6
  import { cva as an } from "class-variance-authority";
7
7
  import { clsx as id } from "clsx";
@@ -10,28 +10,28 @@ import * as Jn from "react-dom";
10
10
  import ld from "react-dom";
11
11
  import ud from "react-markdown";
12
12
  import dd from "remark-gfm";
13
- function ya(e, t) {
13
+ function wa(e, t) {
14
14
  return function() {
15
15
  return e.apply(t, arguments);
16
16
  };
17
17
  }
18
- const { toString: fd } = Object.prototype, { getPrototypeOf: xo } = Object, { iterator: Zn, toStringTag: xa } = Symbol, Qn = /* @__PURE__ */ ((e) => (t) => {
18
+ const { toString: fd } = Object.prototype, { getPrototypeOf: yo } = Object, { iterator: Zn, toStringTag: ya } = Symbol, Qn = /* @__PURE__ */ ((e) => (t) => {
19
19
  const n = fd.call(t);
20
20
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
21
21
  })(/* @__PURE__ */ Object.create(null)), ze = (e) => (e = e.toLowerCase(), (t) => Qn(t) === e), er = (e) => (t) => typeof t === e, { isArray: Ft } = Array, Ot = er("undefined");
22
22
  function cn(e) {
23
23
  return e !== null && !Ot(e) && e.constructor !== null && !Ot(e.constructor) && Te(e.constructor.isBuffer) && e.constructor.isBuffer(e);
24
24
  }
25
- const Sa = ze("ArrayBuffer");
25
+ const xa = ze("ArrayBuffer");
26
26
  function pd(e) {
27
27
  let t;
28
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Sa(e.buffer), t;
28
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && xa(e.buffer), t;
29
29
  }
30
- const hd = er("string"), Te = er("function"), Ca = er("number"), ln = (e) => e !== null && typeof e == "object", md = (e) => e === !0 || e === !1, Rn = (e) => {
30
+ const hd = er("string"), Te = er("function"), Sa = er("number"), ln = (e) => e !== null && typeof e == "object", md = (e) => e === !0 || e === !1, Rn = (e) => {
31
31
  if (Qn(e) !== "object")
32
32
  return !1;
33
- const t = xo(e);
34
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(xa in e) && !(Zn in e);
33
+ const t = yo(e);
34
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ya in e) && !(Zn in e);
35
35
  }, gd = (e) => {
36
36
  if (!ln(e) || cn(e))
37
37
  return !1;
@@ -61,7 +61,7 @@ function un(e, t, { allOwnKeys: n = !1 } = {}) {
61
61
  i = s[r], t.call(null, e[i], i, e);
62
62
  }
63
63
  }
64
- function Ea(e, t) {
64
+ function Ca(e, t) {
65
65
  if (cn(e))
66
66
  return null;
67
67
  t = t.toLowerCase();
@@ -72,18 +72,18 @@ function Ea(e, t) {
72
72
  return o;
73
73
  return null;
74
74
  }
75
- const dt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ra = (e) => !Ot(e) && e !== dt;
76
- function Gr() {
77
- const { caseless: e, skipUndefined: t } = Ra(this) && this || {}, n = {}, r = (o, s) => {
78
- const a = e && Ea(n, s) || s;
79
- Rn(n[a]) && Rn(o) ? n[a] = Gr(n[a], o) : Rn(o) ? n[a] = Gr({}, o) : Ft(o) ? n[a] = o.slice() : (!t || !Ot(o)) && (n[a] = o);
75
+ const dt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ea = (e) => !Ot(e) && e !== dt;
76
+ function Kr() {
77
+ const { caseless: e, skipUndefined: t } = Ea(this) && this || {}, n = {}, r = (o, s) => {
78
+ const a = e && Ca(n, s) || s;
79
+ Rn(n[a]) && Rn(o) ? n[a] = Kr(n[a], o) : Rn(o) ? n[a] = Kr({}, o) : Ft(o) ? n[a] = o.slice() : (!t || !Ot(o)) && (n[a] = o);
80
80
  };
81
81
  for (let o = 0, s = arguments.length; o < s; o++)
82
82
  arguments[o] && un(arguments[o], r);
83
83
  return n;
84
84
  }
85
85
  const Pd = (e, t, n, { allOwnKeys: r } = {}) => (un(t, (o, s) => {
86
- n && Te(o) ? e[s] = ya(o, n) : e[s] = o;
86
+ n && Te(o) ? e[s] = wa(o, n) : e[s] = o;
87
87
  }, { allOwnKeys: r }), e), _d = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Id = (e, t, n, r) => {
88
88
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
89
89
  value: t.prototype
@@ -95,7 +95,7 @@ const Pd = (e, t, n, { allOwnKeys: r } = {}) => (un(t, (o, s) => {
95
95
  do {
96
96
  for (o = Object.getOwnPropertyNames(e), s = o.length; s-- > 0; )
97
97
  a = o[s], (!r || r(a, e, t)) && !i[a] && (t[a] = e[a], i[a] = !0);
98
- e = n !== !1 && xo(e);
98
+ e = n !== !1 && yo(e);
99
99
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
100
100
  return t;
101
101
  }, Md = (e, t, n) => {
@@ -106,12 +106,12 @@ const Pd = (e, t, n, { allOwnKeys: r } = {}) => (un(t, (o, s) => {
106
106
  if (!e) return null;
107
107
  if (Ft(e)) return e;
108
108
  let t = e.length;
109
- if (!Ca(t)) return null;
109
+ if (!Sa(t)) return null;
110
110
  const n = new Array(t);
111
111
  for (; t-- > 0; )
112
112
  n[t] = e[t];
113
113
  return n;
114
- }, Dd = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && xo(Uint8Array)), Ld = (e, t) => {
114
+ }, Dd = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && yo(Uint8Array)), Ld = (e, t) => {
115
115
  const r = (e && e[Zn]).call(e);
116
116
  let o;
117
117
  for (; (o = r.next()) && !o.done; ) {
@@ -129,14 +129,14 @@ const Pd = (e, t, n, { allOwnKeys: r } = {}) => (un(t, (o, s) => {
129
129
  function(n, r, o) {
130
130
  return r.toUpperCase() + o;
131
131
  }
132
- ), ps = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Ud = ze("RegExp"), Na = (e, t) => {
132
+ ), ds = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Ud = ze("RegExp"), Ra = (e, t) => {
133
133
  const n = Object.getOwnPropertyDescriptors(e), r = {};
134
134
  un(n, (o, s) => {
135
135
  let a;
136
136
  (a = t(o, s, e)) !== !1 && (r[s] = a || o);
137
137
  }), Object.defineProperties(e, r);
138
138
  }, zd = (e) => {
139
- Na(e, (t, n) => {
139
+ Ra(e, (t, n) => {
140
140
  if (Te(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
141
141
  return !1;
142
142
  const r = e[n];
@@ -160,7 +160,7 @@ const Pd = (e, t, n, { allOwnKeys: r } = {}) => (un(t, (o, s) => {
160
160
  }, Wd = () => {
161
161
  }, Vd = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
162
162
  function jd(e) {
163
- return !!(e && Te(e.append) && e[xa] === "FormData" && e[Zn]);
163
+ return !!(e && Te(e.append) && e[ya] === "FormData" && e[Zn]);
164
164
  }
165
165
  const Kd = (e) => {
166
166
  const t = new Array(10), n = (r, o) => {
@@ -181,21 +181,21 @@ const Kd = (e) => {
181
181
  return r;
182
182
  };
183
183
  return n(e, 0);
184
- }, Gd = ze("AsyncFunction"), qd = (e) => e && (ln(e) || Te(e)) && Te(e.then) && Te(e.catch), Ta = ((e, t) => e ? setImmediate : t ? ((n, r) => (dt.addEventListener("message", ({ source: o, data: s }) => {
184
+ }, Gd = ze("AsyncFunction"), qd = (e) => e && (ln(e) || Te(e)) && Te(e.then) && Te(e.catch), Na = ((e, t) => e ? setImmediate : t ? ((n, r) => (dt.addEventListener("message", ({ source: o, data: s }) => {
185
185
  o === dt && s === n && r.length && r.shift()();
186
186
  }, !1), (o) => {
187
187
  r.push(o), dt.postMessage(n, "*");
188
188
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
189
189
  typeof setImmediate == "function",
190
190
  Te(dt.postMessage)
191
- ), Yd = typeof queueMicrotask < "u" ? queueMicrotask.bind(dt) : typeof process < "u" && process.nextTick || Ta, Xd = (e) => e != null && Te(e[Zn]), S = {
191
+ ), Yd = typeof queueMicrotask < "u" ? queueMicrotask.bind(dt) : typeof process < "u" && process.nextTick || Na, Xd = (e) => e != null && Te(e[Zn]), S = {
192
192
  isArray: Ft,
193
- isArrayBuffer: Sa,
193
+ isArrayBuffer: xa,
194
194
  isBuffer: cn,
195
195
  isFormData: Sd,
196
196
  isArrayBufferView: pd,
197
197
  isString: hd,
198
- isNumber: Ca,
198
+ isNumber: Sa,
199
199
  isBoolean: md,
200
200
  isObject: ln,
201
201
  isPlainObject: Rn,
@@ -215,7 +215,7 @@ const Kd = (e) => {
215
215
  isTypedArray: Dd,
216
216
  isFileList: yd,
217
217
  forEach: un,
218
- merge: Gr,
218
+ merge: Kr,
219
219
  extend: Pd,
220
220
  trim: Ad,
221
221
  stripBOM: _d,
@@ -228,23 +228,23 @@ const Kd = (e) => {
228
228
  forEachEntry: Ld,
229
229
  matchAll: Fd,
230
230
  isHTMLForm: $d,
231
- hasOwnProperty: ps,
232
- hasOwnProp: ps,
231
+ hasOwnProperty: ds,
232
+ hasOwnProp: ds,
233
233
  // an alias to avoid ESLint no-prototype-builtins detection
234
- reduceDescriptors: Na,
234
+ reduceDescriptors: Ra,
235
235
  freezeMethods: zd,
236
236
  toObjectSet: Hd,
237
237
  toCamelCase: Bd,
238
238
  noop: Wd,
239
239
  toFiniteNumber: Vd,
240
- findKey: Ea,
240
+ findKey: Ca,
241
241
  global: dt,
242
- isContextDefined: Ra,
242
+ isContextDefined: Ea,
243
243
  isSpecCompliantForm: jd,
244
244
  toJSONObject: Kd,
245
245
  isAsyncFn: Gd,
246
246
  isThenable: qd,
247
- setImmediate: Ta,
247
+ setImmediate: Na,
248
248
  asap: Yd,
249
249
  isIterable: Xd
250
250
  };
@@ -272,7 +272,7 @@ S.inherits(ee, Error, {
272
272
  };
273
273
  }
274
274
  });
275
- const Aa = ee.prototype, Pa = {};
275
+ const Ta = ee.prototype, Aa = {};
276
276
  [
277
277
  "ERR_BAD_OPTION_VALUE",
278
278
  "ERR_BAD_OPTION",
@@ -288,12 +288,12 @@ const Aa = ee.prototype, Pa = {};
288
288
  "ERR_INVALID_URL"
289
289
  // eslint-disable-next-line func-names
290
290
  ].forEach((e) => {
291
- Pa[e] = { value: e };
291
+ Aa[e] = { value: e };
292
292
  });
293
- Object.defineProperties(ee, Pa);
294
- Object.defineProperty(Aa, "isAxiosError", { value: !0 });
293
+ Object.defineProperties(ee, Aa);
294
+ Object.defineProperty(Ta, "isAxiosError", { value: !0 });
295
295
  ee.from = (e, t, n, r, o, s) => {
296
- const a = Object.create(Aa);
296
+ const a = Object.create(Ta);
297
297
  S.toFlatObject(e, a, function(d) {
298
298
  return d !== Error.prototype;
299
299
  }, (f) => f !== "isAxiosError");
@@ -301,19 +301,19 @@ ee.from = (e, t, n, r, o, s) => {
301
301
  return ee.call(a, i, u, n, r, o), e && a.cause == null && Object.defineProperty(a, "cause", { value: e, configurable: !0 }), a.name = e && e.name || "Error", s && Object.assign(a, s), a;
302
302
  };
303
303
  const Jd = null;
304
- function qr(e) {
304
+ function Gr(e) {
305
305
  return S.isPlainObject(e) || S.isArray(e);
306
306
  }
307
- function _a(e) {
307
+ function Pa(e) {
308
308
  return S.endsWith(e, "[]") ? e.slice(0, -2) : e;
309
309
  }
310
- function hs(e, t, n) {
310
+ function fs(e, t, n) {
311
311
  return e ? e.concat(t).map(function(o, s) {
312
- return o = _a(o), !n && s ? "[" + o + "]" : o;
312
+ return o = Pa(o), !n && s ? "[" + o + "]" : o;
313
313
  }).join(n ? "." : "") : t;
314
314
  }
315
315
  function Zd(e) {
316
- return S.isArray(e) && !e.some(qr);
316
+ return S.isArray(e) && !e.some(Gr);
317
317
  }
318
318
  const Qd = S.toFlatObject(S, {}, null, function(t) {
319
319
  return /^is[A-Z]/.test(t);
@@ -347,20 +347,20 @@ function tr(e, t, n) {
347
347
  if (S.endsWith(g, "{}"))
348
348
  g = r ? g : g.slice(0, -2), h = JSON.stringify(h);
349
349
  else if (S.isArray(h) && Zd(h) || (S.isFileList(h) || S.endsWith(g, "[]")) && (w = S.toArray(h)))
350
- return g = _a(g), w.forEach(function(x, E) {
350
+ return g = Pa(g), w.forEach(function(x, E) {
351
351
  !(S.isUndefined(x) || x === null) && t.append(
352
352
  // eslint-disable-next-line no-nested-ternary
353
- a === !0 ? hs([g], E, s) : a === null ? g : g + "[]",
353
+ a === !0 ? fs([g], E, s) : a === null ? g : g + "[]",
354
354
  f(x)
355
355
  );
356
356
  }), !1;
357
357
  }
358
- return qr(h) ? !0 : (t.append(hs(b, g, s), f(h)), !1);
358
+ return Gr(h) ? !0 : (t.append(fs(b, g, s), f(h)), !1);
359
359
  }
360
360
  const p = [], m = Object.assign(Qd, {
361
361
  defaultVisitor: d,
362
362
  convertValue: f,
363
- isVisitable: qr
363
+ isVisitable: Gr
364
364
  });
365
365
  function v(h, g) {
366
366
  if (!S.isUndefined(h)) {
@@ -381,7 +381,7 @@ function tr(e, t, n) {
381
381
  throw new TypeError("data must be an object");
382
382
  return v(e), t;
383
383
  }
384
- function ms(e) {
384
+ function ps(e) {
385
385
  const t = {
386
386
  "!": "%21",
387
387
  "'": "%27",
@@ -395,17 +395,17 @@ function ms(e) {
395
395
  return t[r];
396
396
  });
397
397
  }
398
- function So(e, t) {
398
+ function xo(e, t) {
399
399
  this._pairs = [], e && tr(e, this, t);
400
400
  }
401
- const Ia = So.prototype;
402
- Ia.append = function(t, n) {
401
+ const _a = xo.prototype;
402
+ _a.append = function(t, n) {
403
403
  this._pairs.push([t, n]);
404
404
  };
405
- Ia.toString = function(t) {
405
+ _a.toString = function(t) {
406
406
  const n = t ? function(r) {
407
- return t.call(this, r, ms);
408
- } : ms;
407
+ return t.call(this, r, ps);
408
+ } : ps;
409
409
  return this._pairs.map(function(o) {
410
410
  return n(o[0]) + "=" + n(o[1]);
411
411
  }, "").join("&");
@@ -413,7 +413,7 @@ Ia.toString = function(t) {
413
413
  function ef(e) {
414
414
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
415
415
  }
416
- function Oa(e, t, n) {
416
+ function Ia(e, t, n) {
417
417
  if (!t)
418
418
  return e;
419
419
  const r = n && n.encode || ef;
@@ -422,13 +422,13 @@ function Oa(e, t, n) {
422
422
  });
423
423
  const o = n && n.serialize;
424
424
  let s;
425
- if (o ? s = o(t, n) : s = S.isURLSearchParams(t) ? t.toString() : new So(t, n).toString(r), s) {
425
+ if (o ? s = o(t, n) : s = S.isURLSearchParams(t) ? t.toString() : new xo(t, n).toString(r), s) {
426
426
  const a = e.indexOf("#");
427
427
  a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
428
428
  }
429
429
  return e;
430
430
  }
431
- class gs {
431
+ class hs {
432
432
  constructor() {
433
433
  this.handlers = [];
434
434
  }
@@ -482,11 +482,11 @@ class gs {
482
482
  });
483
483
  }
484
484
  }
485
- const Ma = {
485
+ const Oa = {
486
486
  silentJSONParsing: !0,
487
487
  forcedJSONParsing: !0,
488
488
  clarifyTimeoutError: !1
489
- }, tf = typeof URLSearchParams < "u" ? URLSearchParams : So, nf = typeof FormData < "u" ? FormData : null, rf = typeof Blob < "u" ? Blob : null, of = {
489
+ }, tf = typeof URLSearchParams < "u" ? URLSearchParams : xo, nf = typeof FormData < "u" ? FormData : null, rf = typeof Blob < "u" ? Blob : null, of = {
490
490
  isBrowser: !0,
491
491
  classes: {
492
492
  URLSearchParams: tf,
@@ -494,13 +494,13 @@ const Ma = {
494
494
  Blob: rf
495
495
  },
496
496
  protocols: ["http", "https", "file", "blob", "url", "data"]
497
- }, Co = typeof window < "u" && typeof document < "u", Yr = typeof navigator == "object" && navigator || void 0, sf = Co && (!Yr || ["ReactNative", "NativeScript", "NS"].indexOf(Yr.product) < 0), af = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
498
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", cf = Co && window.location.href || "http://localhost", lf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
497
+ }, So = typeof window < "u" && typeof document < "u", qr = typeof navigator == "object" && navigator || void 0, sf = So && (!qr || ["ReactNative", "NativeScript", "NS"].indexOf(qr.product) < 0), af = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
498
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", cf = So && window.location.href || "http://localhost", lf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
499
499
  __proto__: null,
500
- hasBrowserEnv: Co,
500
+ hasBrowserEnv: So,
501
501
  hasStandardBrowserEnv: sf,
502
502
  hasStandardBrowserWebWorkerEnv: af,
503
- navigator: Yr,
503
+ navigator: qr,
504
504
  origin: cf
505
505
  }, Symbol.toStringTag, { value: "Module" })), ye = {
506
506
  ...lf,
@@ -526,7 +526,7 @@ function ff(e) {
526
526
  s = n[r], t[s] = e[s];
527
527
  return t;
528
528
  }
529
- function ka(e) {
529
+ function Ma(e) {
530
530
  function t(n, r, o, s) {
531
531
  let a = n[s++];
532
532
  if (a === "__proto__") return !0;
@@ -552,12 +552,12 @@ function pf(e, t, n) {
552
552
  return (n || JSON.stringify)(e);
553
553
  }
554
554
  const dn = {
555
- transitional: Ma,
555
+ transitional: Oa,
556
556
  adapter: ["xhr", "http", "fetch"],
557
557
  transformRequest: [function(t, n) {
558
558
  const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = S.isObject(t);
559
559
  if (s && S.isHTMLForm(t) && (t = new FormData(t)), S.isFormData(t))
560
- return o ? JSON.stringify(ka(t)) : t;
560
+ return o ? JSON.stringify(Ma(t)) : t;
561
561
  if (S.isArrayBuffer(t) || S.isBuffer(t) || S.isStream(t) || S.isFile(t) || S.isBlob(t) || S.isReadableStream(t))
562
562
  return t;
563
563
  if (S.isArrayBufferView(t))
@@ -645,7 +645,7 @@ const hf = S.toObjectSet([
645
645
  `).forEach(function(a) {
646
646
  o = a.indexOf(":"), n = a.substring(0, o).trim().toLowerCase(), r = a.substring(o + 1).trim(), !(!n || t[n] && hf[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
647
647
  }), t;
648
- }, bs = Symbol("internals");
648
+ }, ms = Symbol("internals");
649
649
  function Wt(e) {
650
650
  return e && String(e).trim().toLowerCase();
651
651
  }
@@ -800,7 +800,7 @@ let Ae = class {
800
800
  return n.forEach((o) => r.set(o)), r;
801
801
  }
802
802
  static accessor(t) {
803
- const r = (this[bs] = this[bs] = {
803
+ const r = (this[ms] = this[ms] = {
804
804
  accessors: {}
805
805
  }).accessors, o = this.prototype;
806
806
  function s(a) {
@@ -828,7 +828,7 @@ function Ar(e, t) {
828
828
  s = i.call(n, s, o.normalize(), t ? t.status : void 0);
829
829
  }), o.normalize(), s;
830
830
  }
831
- function Da(e) {
831
+ function ka(e) {
832
832
  return !!(e && e.__CANCEL__);
833
833
  }
834
834
  function $t(e, t, n) {
@@ -837,7 +837,7 @@ function $t(e, t, n) {
837
837
  S.inherits($t, ee, {
838
838
  __CANCEL__: !0
839
839
  });
840
- function La(e, t, n) {
840
+ function Da(e, t, n) {
841
841
  const r = n.config.validateStatus;
842
842
  !n.status || !r || r(n.status) ? e(n) : t(new ee(
843
843
  "Request failed with status code " + n.status,
@@ -898,14 +898,14 @@ const Bn = (e, t, n = 3) => {
898
898
  };
899
899
  e(p);
900
900
  }, n);
901
- }, vs = (e, t) => {
901
+ }, gs = (e, t) => {
902
902
  const n = e != null;
903
903
  return [(r) => t[0]({
904
904
  lengthComputable: n,
905
905
  total: e,
906
906
  loaded: r
907
907
  }), t[1]];
908
- }, ws = (e) => (...t) => S.asap(() => e(...t)), Cf = ye.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, ye.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
908
+ }, bs = (e) => (...t) => S.asap(() => e(...t)), Cf = ye.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, ye.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
909
909
  new URL(ye.origin),
910
910
  ye.navigator && /(msie|trident)/i.test(ye.navigator.userAgent)
911
911
  ) : () => !0, Ef = ye.hasStandardBrowserEnv ? (
@@ -941,11 +941,11 @@ function Rf(e) {
941
941
  function Nf(e, t) {
942
942
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
943
943
  }
944
- function Fa(e, t, n) {
944
+ function La(e, t, n) {
945
945
  let r = !Rf(t);
946
946
  return e && (r || n == !1) ? Nf(e, t) : t;
947
947
  }
948
- const ys = (e) => e instanceof Ae ? { ...e } : e;
948
+ const vs = (e) => e instanceof Ae ? { ...e } : e;
949
949
  function ht(e, t) {
950
950
  t = t || {};
951
951
  const n = {};
@@ -1003,17 +1003,17 @@ function ht(e, t) {
1003
1003
  socketPath: a,
1004
1004
  responseEncoding: a,
1005
1005
  validateStatus: i,
1006
- headers: (f, d, p) => o(ys(f), ys(d), p, !0)
1006
+ headers: (f, d, p) => o(vs(f), vs(d), p, !0)
1007
1007
  };
1008
1008
  return S.forEach(Object.keys({ ...e, ...t }), function(d) {
1009
1009
  const p = u[d] || o, m = p(e[d], t[d], d);
1010
1010
  S.isUndefined(m) && p !== i || (n[d] = m);
1011
1011
  }), n;
1012
1012
  }
1013
- const $a = (e) => {
1013
+ const Fa = (e) => {
1014
1014
  const t = ht({}, e);
1015
1015
  let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: s, headers: a, auth: i } = t;
1016
- if (t.headers = a = Ae.from(a), t.url = Oa(Fa(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), i && a.set(
1016
+ if (t.headers = a = Ae.from(a), t.url = Ia(La(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), i && a.set(
1017
1017
  "Authorization",
1018
1018
  "Basic " + btoa((i.username || "") + ":" + (i.password ? unescape(encodeURIComponent(i.password)) : ""))
1019
1019
  ), S.isFormData(n)) {
@@ -1033,7 +1033,7 @@ const $a = (e) => {
1033
1033
  return t;
1034
1034
  }, Tf = typeof XMLHttpRequest < "u", Af = Tf && function(e) {
1035
1035
  return new Promise(function(n, r) {
1036
- const o = $a(e);
1036
+ const o = Fa(e);
1037
1037
  let s = o.data;
1038
1038
  const a = Ae.from(o.headers).normalize();
1039
1039
  let { responseType: i, onUploadProgress: u, onDownloadProgress: f } = o, d, p, m, v, h;
@@ -1055,7 +1055,7 @@ const $a = (e) => {
1055
1055
  config: e,
1056
1056
  request: b
1057
1057
  };
1058
- La(function(R) {
1058
+ Da(function(R) {
1059
1059
  n(R), g();
1060
1060
  }, function(R) {
1061
1061
  r(R), g();
@@ -1070,7 +1070,7 @@ const $a = (e) => {
1070
1070
  I.event = E || null, r(I), b = null;
1071
1071
  }, b.ontimeout = function() {
1072
1072
  let E = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1073
- const C = o.transitional || Ma;
1073
+ const C = o.transitional || Oa;
1074
1074
  o.timeoutErrorMessage && (E = o.timeoutErrorMessage), r(new ee(
1075
1075
  E,
1076
1076
  C.clarifyTimeoutError ? ee.ETIMEDOUT : ee.ECONNABORTED,
@@ -1140,7 +1140,7 @@ const $a = (e) => {
1140
1140
  } finally {
1141
1141
  await t.cancel();
1142
1142
  }
1143
- }, xs = (e, t, n, r) => {
1143
+ }, ws = (e, t, n, r) => {
1144
1144
  const o = If(e, t);
1145
1145
  let s = 0, a, i = (u) => {
1146
1146
  a || (a = !0, r && r(u));
@@ -1169,13 +1169,13 @@ const $a = (e) => {
1169
1169
  }, {
1170
1170
  highWaterMark: 2
1171
1171
  });
1172
- }, Ss = 64 * 1024, { isFunction: bn } = S, Mf = (({ Request: e, Response: t }) => ({
1172
+ }, ys = 64 * 1024, { isFunction: bn } = S, Mf = (({ Request: e, Response: t }) => ({
1173
1173
  Request: e,
1174
1174
  Response: t
1175
1175
  }))(S.global), {
1176
- ReadableStream: Cs,
1177
- TextEncoder: Es
1178
- } = S.global, Rs = (e, ...t) => {
1176
+ ReadableStream: xs,
1177
+ TextEncoder: Ss
1178
+ } = S.global, Cs = (e, ...t) => {
1179
1179
  try {
1180
1180
  return !!e(...t);
1181
1181
  } catch {
@@ -1188,17 +1188,17 @@ const $a = (e) => {
1188
1188
  const { fetch: t, Request: n, Response: r } = e, o = t ? bn(t) : typeof fetch == "function", s = bn(n), a = bn(r);
1189
1189
  if (!o)
1190
1190
  return !1;
1191
- const i = o && bn(Cs), u = o && (typeof Es == "function" ? /* @__PURE__ */ ((h) => (g) => h.encode(g))(new Es()) : async (h) => new Uint8Array(await new n(h).arrayBuffer())), f = s && i && Rs(() => {
1191
+ const i = o && bn(xs), u = o && (typeof Ss == "function" ? /* @__PURE__ */ ((h) => (g) => h.encode(g))(new Ss()) : async (h) => new Uint8Array(await new n(h).arrayBuffer())), f = s && i && Cs(() => {
1192
1192
  let h = !1;
1193
1193
  const g = new n(ye.origin, {
1194
- body: new Cs(),
1194
+ body: new xs(),
1195
1195
  method: "POST",
1196
1196
  get duplex() {
1197
1197
  return h = !0, "half";
1198
1198
  }
1199
1199
  }).headers.has("Content-Type");
1200
1200
  return h && !g;
1201
- }), d = a && i && Rs(() => S.isReadableStream(new r("").body)), p = {
1201
+ }), d = a && i && Cs(() => S.isReadableStream(new r("").body)), p = {
1202
1202
  stream: d && ((h) => h.body)
1203
1203
  };
1204
1204
  o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((h) => {
@@ -1241,7 +1241,7 @@ const $a = (e) => {
1241
1241
  headers: D,
1242
1242
  withCredentials: M = "same-origin",
1243
1243
  fetchOptions: k
1244
- } = $a(h), j = t || fetch;
1244
+ } = Fa(h), j = t || fetch;
1245
1245
  R = R ? (R + "").toLowerCase() : "text";
1246
1246
  let K = Pf([y, x && x.toAbortSignal()], E), W = null;
1247
1247
  const B = K && K.unsubscribe && (() => {
@@ -1256,11 +1256,11 @@ const $a = (e) => {
1256
1256
  duplex: "half"
1257
1257
  }), Y;
1258
1258
  if (S.isFormData(w) && (Y = O.headers.get("content-type")) && D.setContentType(Y), O.body) {
1259
- const [$, z] = vs(
1259
+ const [$, z] = gs(
1260
1260
  q,
1261
- Bn(ws(I))
1261
+ Bn(bs(I))
1262
1262
  );
1263
- w = xs(O.body, Ss, $, z);
1263
+ w = ws(O.body, ys, $, z);
1264
1264
  }
1265
1265
  }
1266
1266
  S.isString(M) || (M = M ? "include" : "omit");
@@ -1281,12 +1281,12 @@ const $a = (e) => {
1281
1281
  ["status", "statusText", "headers"].forEach((le) => {
1282
1282
  O[le] = T[le];
1283
1283
  });
1284
- const Y = S.toFiniteNumber(T.headers.get("content-length")), [$, z] = C && vs(
1284
+ const Y = S.toFiniteNumber(T.headers.get("content-length")), [$, z] = C && gs(
1285
1285
  Y,
1286
- Bn(ws(C), !0)
1286
+ Bn(bs(C), !0)
1287
1287
  ) || [];
1288
1288
  T = new r(
1289
- xs(T.body, Ss, $, () => {
1289
+ ws(T.body, ys, $, () => {
1290
1290
  z && z(), B && B();
1291
1291
  }),
1292
1292
  O
@@ -1295,7 +1295,7 @@ const $a = (e) => {
1295
1295
  R = R || "text";
1296
1296
  let _ = await p[S.findKey(p, R) || "text"](T, h);
1297
1297
  return !P && B && B(), await new Promise((O, Y) => {
1298
- La(O, Y, {
1298
+ Da(O, Y, {
1299
1299
  data: _,
1300
1300
  headers: Ae.from(T.headers),
1301
1301
  status: T.status,
@@ -1313,7 +1313,7 @@ const $a = (e) => {
1313
1313
  ) : ee.from(L, L && L.code, h, W);
1314
1314
  }
1315
1315
  };
1316
- }, Df = /* @__PURE__ */ new Map(), Ba = (e) => {
1316
+ }, Df = /* @__PURE__ */ new Map(), $a = (e) => {
1317
1317
  let t = e ? e.env : {};
1318
1318
  const { fetch: n, Request: r, Response: o } = t, s = [
1319
1319
  r,
@@ -1325,15 +1325,15 @@ const $a = (e) => {
1325
1325
  u = s[i], f = d.get(u), f === void 0 && d.set(u, f = i ? /* @__PURE__ */ new Map() : kf(t)), d = f;
1326
1326
  return f;
1327
1327
  };
1328
- Ba();
1329
- const Xr = {
1328
+ $a();
1329
+ const Yr = {
1330
1330
  http: Jd,
1331
1331
  xhr: Af,
1332
1332
  fetch: {
1333
- get: Ba
1333
+ get: $a
1334
1334
  }
1335
1335
  };
1336
- S.forEach(Xr, (e, t) => {
1336
+ S.forEach(Yr, (e, t) => {
1337
1337
  if (e) {
1338
1338
  try {
1339
1339
  Object.defineProperty(e, "name", { value: t });
@@ -1342,7 +1342,7 @@ S.forEach(Xr, (e, t) => {
1342
1342
  Object.defineProperty(e, "adapterName", { value: t });
1343
1343
  }
1344
1344
  });
1345
- const Ns = (e) => `- ${e}`, Lf = (e) => S.isFunction(e) || e === null || e === !1, Ua = {
1345
+ const Es = (e) => `- ${e}`, Lf = (e) => S.isFunction(e) || e === null || e === !1, Ba = {
1346
1346
  getAdapter: (e, t) => {
1347
1347
  e = S.isArray(e) ? e : [e];
1348
1348
  const { length: n } = e;
@@ -1351,7 +1351,7 @@ const Ns = (e) => `- ${e}`, Lf = (e) => S.isFunction(e) || e === null || e === !
1351
1351
  for (let a = 0; a < n; a++) {
1352
1352
  r = e[a];
1353
1353
  let i;
1354
- if (o = r, !Lf(r) && (o = Xr[(i = String(r)).toLowerCase()], o === void 0))
1354
+ if (o = r, !Lf(r) && (o = Yr[(i = String(r)).toLowerCase()], o === void 0))
1355
1355
  throw new ee(`Unknown adapter '${i}'`);
1356
1356
  if (o && (S.isFunction(o) || (o = o.get(t))))
1357
1357
  break;
@@ -1362,8 +1362,8 @@ const Ns = (e) => `- ${e}`, Lf = (e) => S.isFunction(e) || e === null || e === !
1362
1362
  ([u, f]) => `adapter ${u} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1363
1363
  );
1364
1364
  let i = n ? a.length > 1 ? `since :
1365
- ` + a.map(Ns).join(`
1366
- `) : " " + Ns(a[0]) : "as no adapter specified";
1365
+ ` + a.map(Es).join(`
1366
+ `) : " " + Es(a[0]) : "as no adapter specified";
1367
1367
  throw new ee(
1368
1368
  "There is no suitable adapter to dispatch the request " + i,
1369
1369
  "ERR_NOT_SUPPORT"
@@ -1371,40 +1371,40 @@ const Ns = (e) => `- ${e}`, Lf = (e) => S.isFunction(e) || e === null || e === !
1371
1371
  }
1372
1372
  return o;
1373
1373
  },
1374
- adapters: Xr
1374
+ adapters: Yr
1375
1375
  };
1376
1376
  function Pr(e) {
1377
1377
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1378
1378
  throw new $t(null, e);
1379
1379
  }
1380
- function Ts(e) {
1380
+ function Rs(e) {
1381
1381
  return Pr(e), e.headers = Ae.from(e.headers), e.data = Ar.call(
1382
1382
  e,
1383
1383
  e.transformRequest
1384
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ua.getAdapter(e.adapter || dn.adapter, e)(e).then(function(r) {
1384
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ba.getAdapter(e.adapter || dn.adapter, e)(e).then(function(r) {
1385
1385
  return Pr(e), r.data = Ar.call(
1386
1386
  e,
1387
1387
  e.transformResponse,
1388
1388
  r
1389
1389
  ), r.headers = Ae.from(r.headers), r;
1390
1390
  }, function(r) {
1391
- return Da(r) || (Pr(e), r && r.response && (r.response.data = Ar.call(
1391
+ return ka(r) || (Pr(e), r && r.response && (r.response.data = Ar.call(
1392
1392
  e,
1393
1393
  e.transformResponse,
1394
1394
  r.response
1395
1395
  ), r.response.headers = Ae.from(r.response.headers))), Promise.reject(r);
1396
1396
  });
1397
1397
  }
1398
- const za = "1.12.2", nr = {};
1398
+ const Ua = "1.12.2", nr = {};
1399
1399
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1400
1400
  nr[e] = function(r) {
1401
1401
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1402
1402
  };
1403
1403
  });
1404
- const As = {};
1404
+ const Ns = {};
1405
1405
  nr.transitional = function(t, n, r) {
1406
1406
  function o(s, a) {
1407
- return "[Axios v" + za + "] Transitional option '" + s + "'" + a + (r ? ". " + r : "");
1407
+ return "[Axios v" + Ua + "] Transitional option '" + s + "'" + a + (r ? ". " + r : "");
1408
1408
  }
1409
1409
  return (s, a, i) => {
1410
1410
  if (t === !1)
@@ -1412,7 +1412,7 @@ nr.transitional = function(t, n, r) {
1412
1412
  o(a, " has been removed" + (n ? " in " + n : "")),
1413
1413
  ee.ERR_DEPRECATED
1414
1414
  );
1415
- return n && !As[a] && (As[a] = !0, console.warn(
1415
+ return n && !Ns[a] && (Ns[a] = !0, console.warn(
1416
1416
  o(
1417
1417
  a,
1418
1418
  " has been deprecated since v" + n + " and will be removed in the near future"
@@ -1447,8 +1447,8 @@ const Tn = {
1447
1447
  let pt = class {
1448
1448
  constructor(t) {
1449
1449
  this.defaults = t || {}, this.interceptors = {
1450
- request: new gs(),
1451
- response: new gs()
1450
+ request: new hs(),
1451
+ response: new hs()
1452
1452
  };
1453
1453
  }
1454
1454
  /**
@@ -1513,7 +1513,7 @@ let pt = class {
1513
1513
  });
1514
1514
  let d, p = 0, m;
1515
1515
  if (!u) {
1516
- const h = [Ts.bind(this), void 0];
1516
+ const h = [Rs.bind(this), void 0];
1517
1517
  for (h.unshift(...i), h.push(...f), m = h.length, d = Promise.resolve(n); p < m; )
1518
1518
  d = d.then(h[p++], h[p++]);
1519
1519
  return d;
@@ -1530,7 +1530,7 @@ let pt = class {
1530
1530
  }
1531
1531
  }
1532
1532
  try {
1533
- d = Ts.call(this, v);
1533
+ d = Rs.call(this, v);
1534
1534
  } catch (h) {
1535
1535
  return Promise.reject(h);
1536
1536
  }
@@ -1540,8 +1540,8 @@ let pt = class {
1540
1540
  }
1541
1541
  getUri(t) {
1542
1542
  t = ht(this.defaults, t);
1543
- const n = Fa(t.baseURL, t.url, t.allowAbsoluteUrls);
1544
- return Oa(n, t.params, t.paramsSerializer);
1543
+ const n = La(t.baseURL, t.url, t.allowAbsoluteUrls);
1544
+ return Ia(n, t.params, t.paramsSerializer);
1545
1545
  }
1546
1546
  };
1547
1547
  S.forEach(["delete", "get", "head", "options"], function(t) {
@@ -1568,7 +1568,7 @@ S.forEach(["post", "put", "patch"], function(t) {
1568
1568
  }
1569
1569
  pt.prototype[t] = n(), pt.prototype[t + "Form"] = n(!0);
1570
1570
  });
1571
- let $f = class Ha {
1571
+ let $f = class za {
1572
1572
  constructor(t) {
1573
1573
  if (typeof t != "function")
1574
1574
  throw new TypeError("executor must be a function.");
@@ -1634,7 +1634,7 @@ let $f = class Ha {
1634
1634
  static source() {
1635
1635
  let t;
1636
1636
  return {
1637
- token: new Ha(function(o) {
1637
+ token: new za(function(o) {
1638
1638
  t = o;
1639
1639
  }),
1640
1640
  cancel: t
@@ -1649,7 +1649,7 @@ function Bf(e) {
1649
1649
  function Uf(e) {
1650
1650
  return S.isObject(e) && e.isAxiosError === !0;
1651
1651
  }
1652
- const Jr = {
1652
+ const Xr = {
1653
1653
  Continue: 100,
1654
1654
  SwitchingProtocols: 101,
1655
1655
  Processing: 102,
@@ -1714,21 +1714,21 @@ const Jr = {
1714
1714
  NotExtended: 510,
1715
1715
  NetworkAuthenticationRequired: 511
1716
1716
  };
1717
- Object.entries(Jr).forEach(([e, t]) => {
1718
- Jr[t] = e;
1717
+ Object.entries(Xr).forEach(([e, t]) => {
1718
+ Xr[t] = e;
1719
1719
  });
1720
- function Wa(e) {
1721
- const t = new pt(e), n = ya(pt.prototype.request, t);
1720
+ function Ha(e) {
1721
+ const t = new pt(e), n = wa(pt.prototype.request, t);
1722
1722
  return S.extend(n, pt.prototype, t, { allOwnKeys: !0 }), S.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
1723
- return Wa(ht(e, o));
1723
+ return Ha(ht(e, o));
1724
1724
  }, n;
1725
1725
  }
1726
- const he = Wa(dn);
1726
+ const he = Ha(dn);
1727
1727
  he.Axios = pt;
1728
1728
  he.CanceledError = $t;
1729
1729
  he.CancelToken = $f;
1730
- he.isCancel = Da;
1731
- he.VERSION = za;
1730
+ he.isCancel = ka;
1731
+ he.VERSION = Ua;
1732
1732
  he.toFormData = tr;
1733
1733
  he.AxiosError = ee;
1734
1734
  he.Cancel = he.CanceledError;
@@ -1739,9 +1739,9 @@ he.spread = Bf;
1739
1739
  he.isAxiosError = Uf;
1740
1740
  he.mergeConfig = ht;
1741
1741
  he.AxiosHeaders = Ae;
1742
- he.formToJSON = (e) => ka(S.isHTMLForm(e) ? new FormData(e) : e);
1743
- he.getAdapter = Ua.getAdapter;
1744
- he.HttpStatusCode = Jr;
1742
+ he.formToJSON = (e) => Ma(S.isHTMLForm(e) ? new FormData(e) : e);
1743
+ he.getAdapter = Ba.getAdapter;
1744
+ he.HttpStatusCode = Xr;
1745
1745
  he.default = he;
1746
1746
  const {
1747
1747
  Axios: ay,
@@ -1769,54 +1769,54 @@ function ft() {
1769
1769
  return !1;
1770
1770
  }
1771
1771
  }
1772
- const _r = At == null ? void 0 : At.VITE_API_BASE_URL, Eo = _r == null ? void 0 : _r.replace(/\/+$|$/g, "").replace(/\/+$/, ""), Ps = At == null ? void 0 : At.VITE_AUTH_TOKEN;
1773
- !Eo && typeof window < "u" && console.warn("VITE_API_BASE_URL is not set. The API client will need to be configured via apiConfig prop.");
1774
- const Zr = "auth_token";
1772
+ const Ts = At == null ? void 0 : At.VITE_API_BASE_URL, Wa = Ts ? Ts.replace(/\/+$/, "") : void 0, As = At == null ? void 0 : At.VITE_AUTH_TOKEN;
1773
+ !Wa && typeof window < "u" && console.warn("VITE_API_BASE_URL is not set. The API client will need to be configured via apiConfig prop.");
1774
+ const Jr = "auth_token";
1775
1775
  let Un = (() => {
1776
1776
  try {
1777
- return (typeof localStorage < "u" ? localStorage.getItem(Zr) : null) || Ps || null;
1777
+ return (typeof localStorage < "u" ? localStorage.getItem(Jr) : null) || As || null;
1778
1778
  } catch {
1779
- return Ps || null;
1779
+ return As || null;
1780
1780
  }
1781
1781
  })();
1782
- const Qr = /* @__PURE__ */ new Set();
1782
+ const Zr = /* @__PURE__ */ new Set();
1783
1783
  function Va() {
1784
1784
  return Un;
1785
1785
  }
1786
- function eo(e) {
1786
+ function Qr(e) {
1787
1787
  Un = e;
1788
1788
  try {
1789
- typeof localStorage < "u" && (e ? localStorage.setItem(Zr, e) : localStorage.removeItem(Zr));
1789
+ typeof localStorage < "u" && (e ? localStorage.setItem(Jr, e) : localStorage.removeItem(Jr));
1790
1790
  } catch {
1791
1791
  }
1792
- Qr.forEach((t) => t(e));
1792
+ Zr.forEach((t) => t(e));
1793
1793
  }
1794
1794
  function zf(e) {
1795
- return Qr.add(e), () => Qr.delete(e);
1795
+ return Zr.add(e), () => Zr.delete(e);
1796
1796
  }
1797
1797
  const ke = he.create({
1798
- baseURL: Eo || "http://localhost:8000",
1798
+ baseURL: Wa || "http://localhost:8000",
1799
1799
  // Fallback base URL
1800
1800
  timeout: 3e4,
1801
1801
  withCredentials: !0
1802
1802
  });
1803
1803
  ke.interceptors.request.use((e) => (Un && (e.headers.Authorization = `Bearer ${Un}`), e));
1804
- let Ir = !1, Vt = [];
1804
+ let _r = !1, Vt = [];
1805
1805
  async function Hf() {
1806
- if (Ir)
1806
+ if (_r)
1807
1807
  return new Promise((e) => Vt.push(e));
1808
- Ir = !0;
1808
+ _r = !0;
1809
1809
  try {
1810
- const { data: e } = await he.post(
1811
- `${Eo || ke.defaults.baseURL}/auth/refresh`,
1810
+ const { data: e } = await ke.post(
1811
+ "/auth/refresh",
1812
1812
  {},
1813
- { withCredentials: !0, timeout: 3e4 }
1813
+ { timeout: 3e4 }
1814
1814
  ), t = (e == null ? void 0 : e.accessToken) ?? null;
1815
- return eo(t), Vt.forEach((n) => n(t)), Vt = [], t;
1815
+ return Qr(t), Vt.forEach((n) => n(t)), Vt = [], t;
1816
1816
  } catch {
1817
- return eo(null), Vt.forEach((t) => t(null)), Vt = [], null;
1817
+ return Qr(null), Vt.forEach((t) => t(null)), Vt = [], null;
1818
1818
  } finally {
1819
- Ir = !1;
1819
+ _r = !1;
1820
1820
  }
1821
1821
  }
1822
1822
  ke.interceptors.response.use(
@@ -1883,7 +1883,7 @@ async function jf(e, t) {
1883
1883
  function Ne(e) {
1884
1884
  return e && typeof e == "object" && "data" in e ? e.data : e;
1885
1885
  }
1886
- class Ro {
1886
+ class Co {
1887
1887
  // ---- Configuration ----
1888
1888
  get baseUrl() {
1889
1889
  return ke.defaults.baseURL || "";
@@ -1896,7 +1896,7 @@ class Ro {
1896
1896
  return Va();
1897
1897
  }
1898
1898
  setAuthToken(t) {
1899
- eo(t);
1899
+ Qr(t);
1900
1900
  }
1901
1901
  onTokenChange(t) {
1902
1902
  return zf(t);
@@ -2026,7 +2026,7 @@ class Ro {
2026
2026
  }
2027
2027
  }
2028
2028
  }
2029
- const mt = new Ro(), Sy = Ro, Cy = Ro;
2029
+ const mt = new Co(), Sy = Co, Cy = Co;
2030
2030
  function Kf(e = {}) {
2031
2031
  const t = e.baseUrl ?? "/api", n = e.streamPath ?? "/stream", [r, o] = ce(e.token ?? null), s = rt(e.headers ?? {}), [a, i] = ce(!1), [u, f] = ce(null), [d, p] = ce(""), [m, v] = ce(null), h = rt(null), g = Se((x) => {
2032
2032
  o(x);
@@ -2173,13 +2173,13 @@ function Xf(e, t) {
2173
2173
  switch (t.type) {
2174
2174
  case "reset":
2175
2175
  return {
2176
- messages: _s(((n = t.payload) == null ? void 0 : n.messages) ?? []),
2176
+ messages: Ps(((n = t.payload) == null ? void 0 : n.messages) ?? []),
2177
2177
  assemblingId: null,
2178
2178
  lastCheckpointId: null,
2179
2179
  toolIndex: {}
2180
2180
  };
2181
2181
  case "seed":
2182
- return { ...e, messages: _s(t.payload.messages) };
2182
+ return { ...e, messages: Ps(t.payload.messages) };
2183
2183
  case "user_message": {
2184
2184
  const o = t.payload.message;
2185
2185
  if (e.assemblingId) {
@@ -2205,15 +2205,15 @@ function Xf(e, t) {
2205
2205
  return { ...e, assemblingId: s, messages: [...e.messages, i] };
2206
2206
  }
2207
2207
  if (o.type === "token") {
2208
- const s = e.assemblingId ?? Or(e.messages);
2208
+ const s = e.assemblingId ?? Ir(e.messages);
2209
2209
  return s ? { ...e, messages: Zf(e.messages, s, o.content) } : e;
2210
2210
  }
2211
2211
  if (o.type === "message_delta") {
2212
- const s = e.assemblingId ?? Or(e.messages);
2213
- return s ? { ...e, messages: Is(e.messages, s, o.delta) } : e;
2212
+ const s = e.assemblingId ?? Ir(e.messages);
2213
+ return s ? { ...e, messages: _s(e.messages, s, o.delta) } : e;
2214
2214
  }
2215
2215
  if (o.type === "message_end") {
2216
- const s = e.assemblingId ?? Or(e.messages);
2216
+ const s = e.assemblingId ?? Ir(e.messages);
2217
2217
  if (!s) return { ...e, assemblingId: null };
2218
2218
  const a = e.messages, i = a.findIndex((u) => u.id === s && u.role === "assistant");
2219
2219
  if (i >= 0 && !((r = a[i].content) == null ? void 0 : r.some((d) => {
@@ -2240,7 +2240,7 @@ function Xf(e, t) {
2240
2240
  };
2241
2241
  }
2242
2242
  if (o.type === "tool_result") {
2243
- const s = e.toolIndex[o.id] ?? `tool-${o.id}`, a = { type: "tool_result", toolCallId: o.id, output: o.output, error: o.error }, i = e.messages.find((d) => d.id === s), u = { id: s, role: "tool", content: [a], createdAt: (/* @__PURE__ */ new Date()).toISOString() }, f = i ? Is(e.messages, s, [a]) : [...e.messages, u];
2243
+ const s = e.toolIndex[o.id] ?? `tool-${o.id}`, a = { type: "tool_result", toolCallId: o.id, output: o.output, error: o.error }, i = e.messages.find((d) => d.id === s), u = { id: s, role: "tool", content: [a], createdAt: (/* @__PURE__ */ new Date()).toISOString() }, f = i ? _s(e.messages, s, [a]) : [...e.messages, u];
2244
2244
  return { ...e, messages: f };
2245
2245
  }
2246
2246
  if (o.type === "checkpoint") {
@@ -2273,7 +2273,7 @@ function Jf(e = []) {
2273
2273
  }), [r]);
2274
2274
  return { state: t, dispatch: n, ...o };
2275
2275
  }
2276
- function _s(e) {
2276
+ function Ps(e) {
2277
2277
  return e.filter((t) => {
2278
2278
  if (t.role !== "assistant") return !0;
2279
2279
  const n = (t.content || []).some(
@@ -2285,7 +2285,7 @@ function _s(e) {
2285
2285
  return !!(n || r);
2286
2286
  });
2287
2287
  }
2288
- function Or(e) {
2288
+ function Ir(e) {
2289
2289
  for (let t = e.length - 1; t >= 0; t--)
2290
2290
  if (e[t].role === "assistant") return e[t].id;
2291
2291
  return null;
@@ -2297,7 +2297,7 @@ function Zf(e, t, n) {
2297
2297
  return s && s.type === "text" ? s.text += n : o.push({ type: "text", text: n }), { ...r, content: o };
2298
2298
  });
2299
2299
  }
2300
- function Is(e, t, n) {
2300
+ function _s(e, t, n) {
2301
2301
  return e.map((r) => r.id === t ? { ...r, content: Qf(r.content, n) } : r);
2302
2302
  }
2303
2303
  function Qf(e, t) {
@@ -2323,7 +2323,7 @@ function tp(e) {
2323
2323
  const t = e.split("/");
2324
2324
  return t[t.length - 1] || null;
2325
2325
  }
2326
- const ja = ha(null);
2326
+ const ja = pa(null);
2327
2327
  function An({ children: e, apiConfig: t, onError: n, onThreadChange: r, initialThreadId: o = null }) {
2328
2328
  const s = mt;
2329
2329
  ve(() => {
@@ -2515,7 +2515,7 @@ function An({ children: e, apiConfig: t, onError: n, onThreadChange: r, initialT
2515
2515
  return /* @__PURE__ */ c(ja.Provider, { value: P, children: e });
2516
2516
  }
2517
2517
  function Ka() {
2518
- const e = ma(ja);
2518
+ const e = ha(ja);
2519
2519
  if (!e) throw new Error("useChat must be used within ChatProvider");
2520
2520
  return e;
2521
2521
  }
@@ -2710,29 +2710,29 @@ function ip({
2710
2710
  function cp(e) {
2711
2711
  return typeof e == "function";
2712
2712
  }
2713
- function Os(e, t) {
2713
+ function Is(e, t) {
2714
2714
  if (typeof e == "function")
2715
2715
  return e(t);
2716
2716
  e != null && (e.current = t);
2717
2717
  }
2718
- function No(...e) {
2718
+ function Eo(...e) {
2719
2719
  return (t) => {
2720
2720
  let n = !1;
2721
2721
  const r = e.map((o) => {
2722
- const s = Os(o, t);
2722
+ const s = Is(o, t);
2723
2723
  return !n && typeof s == "function" && (n = !0), s;
2724
2724
  });
2725
2725
  if (n)
2726
2726
  return () => {
2727
2727
  for (let o = 0; o < r.length; o++) {
2728
2728
  const s = r[o];
2729
- typeof s == "function" ? s() : Os(e[o], null);
2729
+ typeof s == "function" ? s() : Is(e[o], null);
2730
2730
  }
2731
2731
  };
2732
2732
  };
2733
2733
  }
2734
2734
  function te(...e) {
2735
- return l.useCallback(No(...e), e);
2735
+ return l.useCallback(Eo(...e), e);
2736
2736
  }
2737
2737
  var lp = [
2738
2738
  "a",
@@ -2835,7 +2835,7 @@ function $e(e) {
2835
2835
  n((r) => r ?? String(hp++));
2836
2836
  }, [e]), t ? `radix-${t}` : "";
2837
2837
  }
2838
- var rr = "Collapsible", [mp, Ey] = He(rr), [gp, To] = mp(rr), Xa = l.forwardRef(
2838
+ var rr = "Collapsible", [mp, Ey] = He(rr), [gp, Ro] = mp(rr), Xa = l.forwardRef(
2839
2839
  (e, t) => {
2840
2840
  const {
2841
2841
  __scopeCollapsible: n,
@@ -2861,7 +2861,7 @@ var rr = "Collapsible", [mp, Ey] = He(rr), [gp, To] = mp(rr), Xa = l.forwardRef(
2861
2861
  children: /* @__PURE__ */ c(
2862
2862
  J.div,
2863
2863
  {
2864
- "data-state": Po(u),
2864
+ "data-state": To(u),
2865
2865
  "data-disabled": s ? "" : void 0,
2866
2866
  ...i,
2867
2867
  ref: t
@@ -2874,14 +2874,14 @@ var rr = "Collapsible", [mp, Ey] = He(rr), [gp, To] = mp(rr), Xa = l.forwardRef(
2874
2874
  Xa.displayName = rr;
2875
2875
  var Ja = "CollapsibleTrigger", Za = l.forwardRef(
2876
2876
  (e, t) => {
2877
- const { __scopeCollapsible: n, ...r } = e, o = To(Ja, n);
2877
+ const { __scopeCollapsible: n, ...r } = e, o = Ro(Ja, n);
2878
2878
  return /* @__PURE__ */ c(
2879
2879
  J.button,
2880
2880
  {
2881
2881
  type: "button",
2882
2882
  "aria-controls": o.contentId,
2883
2883
  "aria-expanded": o.open || !1,
2884
- "data-state": Po(o.open),
2884
+ "data-state": To(o.open),
2885
2885
  "data-disabled": o.disabled ? "" : void 0,
2886
2886
  disabled: o.disabled,
2887
2887
  ...r,
@@ -2892,15 +2892,15 @@ var Ja = "CollapsibleTrigger", Za = l.forwardRef(
2892
2892
  }
2893
2893
  );
2894
2894
  Za.displayName = Ja;
2895
- var Ao = "CollapsibleContent", bp = l.forwardRef(
2895
+ var No = "CollapsibleContent", bp = l.forwardRef(
2896
2896
  (e, t) => {
2897
- const { forceMount: n, ...r } = e, o = To(Ao, e.__scopeCollapsible);
2897
+ const { forceMount: n, ...r } = e, o = Ro(No, e.__scopeCollapsible);
2898
2898
  return /* @__PURE__ */ c(Pe, { present: n || o.open, children: ({ present: s }) => /* @__PURE__ */ c(vp, { ...r, ref: t, present: s }) });
2899
2899
  }
2900
2900
  );
2901
- bp.displayName = Ao;
2901
+ bp.displayName = No;
2902
2902
  var vp = l.forwardRef((e, t) => {
2903
- const { __scopeCollapsible: n, present: r, children: o, ...s } = e, a = To(Ao, n), [i, u] = l.useState(r), f = l.useRef(null), d = te(t, f), p = l.useRef(0), m = p.current, v = l.useRef(0), h = v.current, g = a.open || i, b = l.useRef(g), w = l.useRef(void 0);
2903
+ const { __scopeCollapsible: n, present: r, children: o, ...s } = e, a = Ro(No, n), [i, u] = l.useState(r), f = l.useRef(null), d = te(t, f), p = l.useRef(0), m = p.current, v = l.useRef(0), h = v.current, g = a.open || i, b = l.useRef(g), w = l.useRef(void 0);
2904
2904
  return l.useEffect(() => {
2905
2905
  const y = requestAnimationFrame(() => b.current = !1);
2906
2906
  return () => cancelAnimationFrame(y);
@@ -2917,7 +2917,7 @@ var vp = l.forwardRef((e, t) => {
2917
2917
  }, [a.open, r]), /* @__PURE__ */ c(
2918
2918
  J.div,
2919
2919
  {
2920
- "data-state": Po(a.open),
2920
+ "data-state": To(a.open),
2921
2921
  "data-disabled": a.disabled ? "" : void 0,
2922
2922
  id: a.contentId,
2923
2923
  hidden: !g,
@@ -2932,11 +2932,11 @@ var vp = l.forwardRef((e, t) => {
2932
2932
  }
2933
2933
  );
2934
2934
  });
2935
- function Po(e) {
2935
+ function To(e) {
2936
2936
  return e ? "open" : "closed";
2937
2937
  }
2938
2938
  var wp = Xa;
2939
- const Ms = wp, ks = Za;
2939
+ const Os = wp, Ms = Za;
2940
2940
  function wn({ content: e, className: t = "" }) {
2941
2941
  return /* @__PURE__ */ c("div", { className: `prose prose-sm max-w-none dark:prose-invert prose-pre:rounded prose-pre:border prose-pre:bg-background/50 prose-code:bg-background/50 prose-code:px-1 prose-code:py-0.5 prose-code:rounded prose-table:my-4 prose-th:px-2 prose-td:px-2 leading-relaxed ${t}`, children: /* @__PURE__ */ c(
2942
2942
  ud,
@@ -3002,11 +3002,11 @@ function yp({
3002
3002
  case "user":
3003
3003
  return /* @__PURE__ */ c(Vu, { className: ge });
3004
3004
  case "assistant":
3005
- return /* @__PURE__ */ c(ds, { className: ge });
3005
+ return /* @__PURE__ */ c(ls, { className: ge });
3006
3006
  case "tool":
3007
3007
  return /* @__PURE__ */ c(Wu, { className: ge });
3008
3008
  default:
3009
- return /* @__PURE__ */ c(ds, { className: ge });
3009
+ return /* @__PURE__ */ c(ls, { className: ge });
3010
3010
  }
3011
3011
  }, oe = () => {
3012
3012
  const X = "group relative mb-4 max-w-full";
@@ -3054,9 +3054,9 @@ function yp({
3054
3054
  }
3055
3055
  if (_ && f) {
3056
3056
  const ae = Kt(e.content), me = ae.length > d;
3057
- return /* @__PURE__ */ c(Ms, { open: K, onOpenChange: W, children: /* @__PURE__ */ N("div", { className: "font-mono text-sm", children: [
3057
+ return /* @__PURE__ */ c(Os, { open: K, onOpenChange: W, children: /* @__PURE__ */ N("div", { className: "font-mono text-sm", children: [
3058
3058
  /* @__PURE__ */ c("pre", { className: A("whitespace-pre-wrap break-words", T && "text-xs"), children: me && !K ? ae.substring(0, d) + "..." : ae }),
3059
- me && /* @__PURE__ */ c(ks, { asChild: !0, children: /* @__PURE__ */ c(fe, { variant: "ghost", size: "sm", className: "h-6 text-xs", children: K ? /* @__PURE__ */ N(Fe, { children: [
3059
+ me && /* @__PURE__ */ c(Ms, { asChild: !0, children: /* @__PURE__ */ c(fe, { variant: "ghost", size: "sm", className: "h-6 text-xs", children: K ? /* @__PURE__ */ N(Fe, { children: [
3060
3060
  /* @__PURE__ */ c(Gt, { className: "h-3 w-3 mr-1" }),
3061
3061
  "Show less"
3062
3062
  ] }) : /* @__PURE__ */ N(Fe, { children: [
@@ -3078,22 +3078,22 @@ function yp({
3078
3078
  return /* @__PURE__ */ N("div", { children: [
3079
3079
  n ? /* @__PURE__ */ N("div", { className: "relative", children: [
3080
3080
  (() => {
3081
- const ae = Ds(le);
3082
- return ae !== null ? /* @__PURE__ */ c(Ls, { data: ae }) : /* @__PURE__ */ c(wn, { content: Ep(Cp(le)) });
3081
+ const ae = ks(le);
3082
+ return ae !== null ? /* @__PURE__ */ c(Ds, { data: ae }) : /* @__PURE__ */ c(wn, { content: Ep(Cp(le)) });
3083
3083
  })(),
3084
3084
  /* @__PURE__ */ c("span", { className: "inline-block w-[6px] h-[14px] align-baseline ml-0.5 bg-foreground/40 animate-pulse", style: { verticalAlign: "text-bottom" } })
3085
3085
  ] }) : (() => {
3086
- const ae = Ds(O.trim());
3087
- if (ae !== null) return /* @__PURE__ */ c(Ls, { data: ae });
3086
+ const ae = ks(O.trim());
3087
+ if (ae !== null) return /* @__PURE__ */ c(Ds, { data: ae });
3088
3088
  if (P === "user" && p) {
3089
3089
  const me = O.trim();
3090
3090
  if (me.length > m)
3091
- return /* @__PURE__ */ N(Ms, { open: L, onOpenChange: G, children: [
3091
+ return /* @__PURE__ */ N(Os, { open: L, onOpenChange: G, children: [
3092
3092
  /* @__PURE__ */ c("div", { className: A("text-sm", T && "text-xs"), children: L ? /* @__PURE__ */ c(wn, { content: me }) : /* @__PURE__ */ N("pre", { className: A("font-sans whitespace-pre-wrap break-words bg-transparent p-0 m-0", T && "text-xs"), children: [
3093
3093
  me.substring(0, m),
3094
3094
  "..."
3095
3095
  ] }) }),
3096
- /* @__PURE__ */ c(ks, { asChild: !0, children: /* @__PURE__ */ c(fe, { variant: "ghost", size: "sm", className: "h-6 text-xs", children: L ? /* @__PURE__ */ N(Fe, { children: [
3096
+ /* @__PURE__ */ c(Ms, { asChild: !0, children: /* @__PURE__ */ c(fe, { variant: "ghost", size: "sm", className: "h-6 text-xs", children: L ? /* @__PURE__ */ N(Fe, { children: [
3097
3097
  /* @__PURE__ */ c(Gt, { className: "h-3 w-3 mr-1" }),
3098
3098
  " Show less"
3099
3099
  ] }) : /* @__PURE__ */ N(Fe, { children: [
@@ -3182,7 +3182,7 @@ function yp({
3182
3182
  size: "sm",
3183
3183
  onClick: se,
3184
3184
  className: A("h-6 w-6 p-0 hover:bg-background/50", T && "h-5 w-5"),
3185
- children: /* @__PURE__ */ c(ls, { className: A(k ? "text-success" : "", T ? "h-3 w-3" : "h-4 w-4") })
3185
+ children: /* @__PURE__ */ c(is, { className: A(k ? "text-success" : "", T ? "h-3 w-3" : "h-4 w-4") })
3186
3186
  }
3187
3187
  ),
3188
3188
  P === "user" && C && /* @__PURE__ */ c(
@@ -3192,7 +3192,7 @@ function yp({
3192
3192
  size: "sm",
3193
3193
  onClick: V,
3194
3194
  className: A("h-6 w-6 p-0 hover:bg-background/50", T && "h-5 w-5"),
3195
- children: /* @__PURE__ */ c(us, { className: A(T ? "h-3 w-3" : "h-4 w-4") })
3195
+ children: /* @__PURE__ */ c(cs, { className: A(T ? "h-3 w-3" : "h-4 w-4") })
3196
3196
  }
3197
3197
  ),
3198
3198
  P === "assistant" && I && /* @__PURE__ */ c(
@@ -3202,7 +3202,7 @@ function yp({
3202
3202
  size: "sm",
3203
3203
  onClick: re,
3204
3204
  className: A("h-6 w-6 p-0 hover:bg-background/50", T && "h-5 w-5"),
3205
- children: /* @__PURE__ */ c(Kr, { className: A(T ? "h-3 w-3" : "h-4 w-4") })
3205
+ children: /* @__PURE__ */ c(jr, { className: A(T ? "h-3 w-3" : "h-4 w-4") })
3206
3206
  }
3207
3207
  )
3208
3208
  ]
@@ -3224,7 +3224,7 @@ function yp({
3224
3224
  ] })
3225
3225
  ] }),
3226
3226
  s && P === "user" && y && y.totalBranches > 1 && /* @__PURE__ */ N("div", { className: "flex items-center gap-2 mt-2 p-2 bg-muted/30 rounded border", children: [
3227
- /* @__PURE__ */ c(ga, { className: "h-3 w-3 text-muted-foreground" }),
3227
+ /* @__PURE__ */ c(ma, { className: "h-3 w-3 text-muted-foreground" }),
3228
3228
  /* @__PURE__ */ N("span", { className: "text-xs text-muted-foreground", children: [
3229
3229
  "Branch ",
3230
3230
  y.currentIndex + 1,
@@ -3253,7 +3253,7 @@ function yp({
3253
3253
  disabled: !y.canGoForward,
3254
3254
  onClick: () => E == null ? void 0 : E(),
3255
3255
  title: "Go forward to next branch",
3256
- children: /* @__PURE__ */ c(ba, { className: "h-3 w-3" })
3256
+ children: /* @__PURE__ */ c(ga, { className: "h-3 w-3" })
3257
3257
  }
3258
3258
  )
3259
3259
  ] })
@@ -3274,7 +3274,7 @@ function yp({
3274
3274
  size: "sm",
3275
3275
  onClick: se,
3276
3276
  className: A("h-6 w-6 p-0 hover:bg-background/50", T && "h-5 w-5"),
3277
- children: /* @__PURE__ */ c(ls, { className: A(k ? "text-success" : "", T ? "h-3 w-3" : "h-4 w-4") })
3277
+ children: /* @__PURE__ */ c(is, { className: A(k ? "text-success" : "", T ? "h-3 w-3" : "h-4 w-4") })
3278
3278
  }
3279
3279
  ),
3280
3280
  P === "user" && C && /* @__PURE__ */ c(
@@ -3284,7 +3284,7 @@ function yp({
3284
3284
  size: "sm",
3285
3285
  onClick: V,
3286
3286
  className: A("h-6 w-6 p-0 hover:bg-background/50", T && "h-5 w-5"),
3287
- children: /* @__PURE__ */ c(us, { className: A(T ? "h-3 w-3" : "h-4 w-4") })
3287
+ children: /* @__PURE__ */ c(cs, { className: A(T ? "h-3 w-3" : "h-4 w-4") })
3288
3288
  }
3289
3289
  ),
3290
3290
  P === "assistant" && I && /* @__PURE__ */ c(
@@ -3294,7 +3294,7 @@ function yp({
3294
3294
  size: "sm",
3295
3295
  onClick: re,
3296
3296
  className: A("h-6 w-6 p-0 hover:bg-background/50", T && "h-5 w-5"),
3297
- children: /* @__PURE__ */ c(Kr, { className: A(T ? "h-3 w-3" : "h-4 w-4") })
3297
+ children: /* @__PURE__ */ c(jr, { className: A(T ? "h-3 w-3" : "h-4 w-4") })
3298
3298
  }
3299
3299
  )
3300
3300
  ]
@@ -3328,7 +3328,7 @@ function Ep(e) {
3328
3328
  }
3329
3329
  return t;
3330
3330
  }
3331
- function Ds(e) {
3331
+ function ks(e) {
3332
3332
  const t = e == null ? void 0 : e.trim();
3333
3333
  if (!t || !(t.startsWith("{") || t.startsWith("["))) return null;
3334
3334
  try {
@@ -3337,7 +3337,7 @@ function Ds(e) {
3337
3337
  return null;
3338
3338
  }
3339
3339
  }
3340
- function Ls({ data: e }) {
3340
+ function Ds({ data: e }) {
3341
3341
  if (Array.isArray(e))
3342
3342
  return e.every((n) => n === null || ["string", "number", "boolean"].includes(typeof n)) ? /* @__PURE__ */ c("div", { className: "prose prose-sm max-w-none dark:prose-invert", children: /* @__PURE__ */ c("ul", { className: "list-disc pl-5", children: e.map((n, r) => /* @__PURE__ */ c("li", { children: String(n) }, r)) }) }) : /* @__PURE__ */ c("pre", { className: "font-mono text-xs bg-background/50 rounded border p-2 overflow-x-auto whitespace-pre-wrap break-words", children: Jt(e) });
3343
3343
  if (e && typeof e == "object") {
@@ -3467,7 +3467,7 @@ function Mp(e) {
3467
3467
  let t;
3468
3468
  return typeof e == "string" ? t = e : typeof e == "object" && e !== null ? t = JSON.stringify(e) : t = String(e), Op(t), Ip(t);
3469
3469
  }
3470
- function _o(e) {
3470
+ function Ao(e) {
3471
3471
  const t = e + "CollectionProvider", [n, r] = He(t), [o, s] = n(
3472
3472
  t,
3473
3473
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
@@ -3530,7 +3530,7 @@ function Dp(e, t = globalThis == null ? void 0 : globalThis.document) {
3530
3530
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
3531
3531
  }, [n, t]);
3532
3532
  }
3533
- var Lp = "DismissableLayer", to = "dismissableLayer.update", Fp = "dismissableLayer.pointerDownOutside", $p = "dismissableLayer.focusOutside", Fs, Qa = l.createContext({
3533
+ var Lp = "DismissableLayer", eo = "dismissableLayer.update", Fp = "dismissableLayer.pointerDownOutside", $p = "dismissableLayer.focusOutside", Ls, Qa = l.createContext({
3534
3534
  layers: /* @__PURE__ */ new Set(),
3535
3535
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
3536
3536
  branches: /* @__PURE__ */ new Set()
@@ -3555,14 +3555,14 @@ var Lp = "DismissableLayer", to = "dismissableLayer.update", Fp = "dismissableLa
3555
3555
  y === f.layers.size - 1 && (r == null || r(R), !R.defaultPrevented && i && (R.preventDefault(), i()));
3556
3556
  }, m), l.useEffect(() => {
3557
3557
  if (d)
3558
- return n && (f.layersWithOutsidePointerEventsDisabled.size === 0 && (Fs = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), f.layersWithOutsidePointerEventsDisabled.add(d)), f.layers.add(d), $s(), () => {
3559
- n && f.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = Fs);
3558
+ return n && (f.layersWithOutsidePointerEventsDisabled.size === 0 && (Ls = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), f.layersWithOutsidePointerEventsDisabled.add(d)), f.layers.add(d), Fs(), () => {
3559
+ n && f.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = Ls);
3560
3560
  };
3561
3561
  }, [d, m, n, f]), l.useEffect(() => () => {
3562
- d && (f.layers.delete(d), f.layersWithOutsidePointerEventsDisabled.delete(d), $s());
3562
+ d && (f.layers.delete(d), f.layersWithOutsidePointerEventsDisabled.delete(d), Fs());
3563
3563
  }, [d, f]), l.useEffect(() => {
3564
3564
  const R = () => v({});
3565
- return document.addEventListener(to, R), () => document.removeEventListener(to, R);
3565
+ return document.addEventListener(eo, R), () => document.removeEventListener(eo, R);
3566
3566
  }, []), /* @__PURE__ */ c(
3567
3567
  J.div,
3568
3568
  {
@@ -3638,28 +3638,28 @@ function Hp(e, t = globalThis == null ? void 0 : globalThis.document) {
3638
3638
  onBlurCapture: () => r.current = !1
3639
3639
  };
3640
3640
  }
3641
- function $s() {
3642
- const e = new CustomEvent(to);
3641
+ function Fs() {
3642
+ const e = new CustomEvent(eo);
3643
3643
  document.dispatchEvent(e);
3644
3644
  }
3645
3645
  function ei(e, t, n, { discrete: r }) {
3646
3646
  const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
3647
3647
  t && o.addEventListener(e, t, { once: !0 }), r ? Ya(o, s) : o.dispatchEvent(s);
3648
3648
  }
3649
- var Mr = 0;
3650
- function Io() {
3649
+ var Or = 0;
3650
+ function Po() {
3651
3651
  l.useEffect(() => {
3652
3652
  const e = document.querySelectorAll("[data-radix-focus-guard]");
3653
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? Bs()), document.body.insertAdjacentElement("beforeend", e[1] ?? Bs()), Mr++, () => {
3654
- Mr === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Mr--;
3653
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? $s()), document.body.insertAdjacentElement("beforeend", e[1] ?? $s()), Or++, () => {
3654
+ Or === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Or--;
3655
3655
  };
3656
3656
  }, []);
3657
3657
  }
3658
- function Bs() {
3658
+ function $s() {
3659
3659
  const e = document.createElement("span");
3660
3660
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
3661
3661
  }
3662
- var kr = "focusScope.autoFocusOnMount", Dr = "focusScope.autoFocusOnUnmount", Us = { bubbles: !1, cancelable: !0 }, Wp = "FocusScope", sr = l.forwardRef((e, t) => {
3662
+ var Mr = "focusScope.autoFocusOnMount", kr = "focusScope.autoFocusOnUnmount", Bs = { bubbles: !1, cancelable: !0 }, Wp = "FocusScope", sr = l.forwardRef((e, t) => {
3663
3663
  const {
3664
3664
  loop: n = !1,
3665
3665
  trapped: r = !1,
@@ -3698,16 +3698,16 @@ var kr = "focusScope.autoFocusOnMount", Dr = "focusScope.autoFocusOnUnmount", Us
3698
3698
  }
3699
3699
  }, [r, i, v.paused]), l.useEffect(() => {
3700
3700
  if (i) {
3701
- Hs.add(v);
3701
+ zs.add(v);
3702
3702
  const g = document.activeElement;
3703
3703
  if (!i.contains(g)) {
3704
- const w = new CustomEvent(kr, Us);
3705
- i.addEventListener(kr, f), i.dispatchEvent(w), w.defaultPrevented || (Vp(Yp(ti(i)), { select: !0 }), document.activeElement === g && et(i));
3704
+ const w = new CustomEvent(Mr, Bs);
3705
+ i.addEventListener(Mr, f), i.dispatchEvent(w), w.defaultPrevented || (Vp(Yp(ti(i)), { select: !0 }), document.activeElement === g && et(i));
3706
3706
  }
3707
3707
  return () => {
3708
- i.removeEventListener(kr, f), setTimeout(() => {
3709
- const w = new CustomEvent(Dr, Us);
3710
- i.addEventListener(Dr, d), i.dispatchEvent(w), w.defaultPrevented || et(g ?? document.body, { select: !0 }), i.removeEventListener(Dr, d), Hs.remove(v);
3708
+ i.removeEventListener(Mr, f), setTimeout(() => {
3709
+ const w = new CustomEvent(kr, Bs);
3710
+ i.addEventListener(kr, d), i.dispatchEvent(w), w.defaultPrevented || et(g ?? document.body, { select: !0 }), i.removeEventListener(kr, d), zs.remove(v);
3711
3711
  }, 0);
3712
3712
  };
3713
3713
  }
@@ -3732,7 +3732,7 @@ function Vp(e, { select: t = !1 } = {}) {
3732
3732
  if (et(r, { select: t }), document.activeElement !== n) return;
3733
3733
  }
3734
3734
  function jp(e) {
3735
- const t = ti(e), n = zs(t, e), r = zs(t.reverse(), e);
3735
+ const t = ti(e), n = Us(t, e), r = Us(t.reverse(), e);
3736
3736
  return [n, r];
3737
3737
  }
3738
3738
  function ti(e) {
@@ -3745,7 +3745,7 @@ function ti(e) {
3745
3745
  for (; n.nextNode(); ) t.push(n.currentNode);
3746
3746
  return t;
3747
3747
  }
3748
- function zs(e, t) {
3748
+ function Us(e, t) {
3749
3749
  for (const n of e)
3750
3750
  if (!Kp(n, { upTo: t })) return n;
3751
3751
  }
@@ -3767,21 +3767,21 @@ function et(e, { select: t = !1 } = {}) {
3767
3767
  e.focus({ preventScroll: !0 }), e !== n && Gp(e) && t && e.select();
3768
3768
  }
3769
3769
  }
3770
- var Hs = qp();
3770
+ var zs = qp();
3771
3771
  function qp() {
3772
3772
  let e = [];
3773
3773
  return {
3774
3774
  add(t) {
3775
3775
  const n = e[0];
3776
- t !== n && (n == null || n.pause()), e = Ws(e, t), e.unshift(t);
3776
+ t !== n && (n == null || n.pause()), e = Hs(e, t), e.unshift(t);
3777
3777
  },
3778
3778
  remove(t) {
3779
3779
  var n;
3780
- e = Ws(e, t), (n = e[0]) == null || n.resume();
3780
+ e = Hs(e, t), (n = e[0]) == null || n.resume();
3781
3781
  }
3782
3782
  };
3783
3783
  }
3784
- function Ws(e, t) {
3784
+ function Hs(e, t) {
3785
3785
  const n = [...e], r = n.indexOf(t);
3786
3786
  return r !== -1 && n.splice(r, 1), n;
3787
3787
  }
@@ -3800,7 +3800,7 @@ const Xp = ["top", "right", "bottom", "left"], st = Math.min, _e = Math.max, zn
3800
3800
  start: "end",
3801
3801
  end: "start"
3802
3802
  };
3803
- function no(e, t, n) {
3803
+ function to(e, t, n) {
3804
3804
  return _e(e, st(t, n));
3805
3805
  }
3806
3806
  function Je(e, t) {
@@ -3812,38 +3812,38 @@ function Ze(e) {
3812
3812
  function Bt(e) {
3813
3813
  return e.split("-")[1];
3814
3814
  }
3815
- function Oo(e) {
3815
+ function _o(e) {
3816
3816
  return e === "x" ? "y" : "x";
3817
3817
  }
3818
- function Mo(e) {
3818
+ function Io(e) {
3819
3819
  return e === "y" ? "height" : "width";
3820
3820
  }
3821
3821
  const Qp = /* @__PURE__ */ new Set(["top", "bottom"]);
3822
3822
  function Ke(e) {
3823
3823
  return Qp.has(Ze(e)) ? "y" : "x";
3824
3824
  }
3825
- function ko(e) {
3826
- return Oo(Ke(e));
3825
+ function Oo(e) {
3826
+ return _o(Ke(e));
3827
3827
  }
3828
3828
  function eh(e, t, n) {
3829
3829
  n === void 0 && (n = !1);
3830
- const r = Bt(e), o = ko(e), s = Mo(o);
3830
+ const r = Bt(e), o = Oo(e), s = Io(o);
3831
3831
  let a = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
3832
3832
  return t.reference[s] > t.floating[s] && (a = Hn(a)), [a, Hn(a)];
3833
3833
  }
3834
3834
  function th(e) {
3835
3835
  const t = Hn(e);
3836
- return [ro(e), t, ro(t)];
3836
+ return [no(e), t, no(t)];
3837
3837
  }
3838
- function ro(e) {
3838
+ function no(e) {
3839
3839
  return e.replace(/start|end/g, (t) => Zp[t]);
3840
3840
  }
3841
- const Vs = ["left", "right"], js = ["right", "left"], nh = ["top", "bottom"], rh = ["bottom", "top"];
3841
+ const Ws = ["left", "right"], Vs = ["right", "left"], nh = ["top", "bottom"], rh = ["bottom", "top"];
3842
3842
  function oh(e, t, n) {
3843
3843
  switch (e) {
3844
3844
  case "top":
3845
3845
  case "bottom":
3846
- return n ? t ? js : Vs : t ? Vs : js;
3846
+ return n ? t ? Vs : Ws : t ? Ws : Vs;
3847
3847
  case "left":
3848
3848
  case "right":
3849
3849
  return t ? nh : rh;
@@ -3854,7 +3854,7 @@ function oh(e, t, n) {
3854
3854
  function sh(e, t, n, r) {
3855
3855
  const o = Bt(e);
3856
3856
  let s = oh(Ze(e), n === "start", r);
3857
- return o && (s = s.map((a) => a + "-" + o), t && (s = s.concat(s.map(ro)))), s;
3857
+ return o && (s = s.map((a) => a + "-" + o), t && (s = s.concat(s.map(no)))), s;
3858
3858
  }
3859
3859
  function Hn(e) {
3860
3860
  return e.replace(/left|right|bottom|top/g, (t) => Jp[t]);
@@ -3894,12 +3894,12 @@ function Wn(e) {
3894
3894
  y: n
3895
3895
  };
3896
3896
  }
3897
- function Ks(e, t, n) {
3897
+ function js(e, t, n) {
3898
3898
  let {
3899
3899
  reference: r,
3900
3900
  floating: o
3901
3901
  } = e;
3902
- const s = Ke(t), a = ko(t), i = Mo(a), u = Ze(t), f = s === "y", d = r.x + r.width / 2 - o.width / 2, p = r.y + r.height / 2 - o.height / 2, m = r[i] / 2 - o[i] / 2;
3902
+ const s = Ke(t), a = Oo(t), i = Io(a), u = Ze(t), f = s === "y", d = r.x + r.width / 2 - o.width / 2, p = r.y + r.height / 2 - o.height / 2, m = r[i] / 2 - o[i] / 2;
3903
3903
  let v;
3904
3904
  switch (u) {
3905
3905
  case "top":
@@ -3956,7 +3956,7 @@ const ih = async (e, t, n) => {
3956
3956
  }), {
3957
3957
  x: d,
3958
3958
  y: p
3959
- } = Ks(f, r, u), m = r, v = {}, h = 0;
3959
+ } = js(f, r, u), m = r, v = {}, h = 0;
3960
3960
  for (let g = 0; g < i.length; g++) {
3961
3961
  const {
3962
3962
  name: b,
@@ -3993,7 +3993,7 @@ const ih = async (e, t, n) => {
3993
3993
  }) : C.rects), {
3994
3994
  x: d,
3995
3995
  y: p
3996
- } = Ks(f, m, u)), g = -1);
3996
+ } = js(f, m, u)), g = -1);
3997
3997
  }
3998
3998
  return {
3999
3999
  x: d,
@@ -4069,10 +4069,10 @@ const ch = (e) => ({
4069
4069
  const p = ni(d), m = {
4070
4070
  x: n,
4071
4071
  y: r
4072
- }, v = ko(o), h = Mo(v), g = await a.getDimensions(f), b = v === "y", w = b ? "top" : "left", y = b ? "bottom" : "right", x = b ? "clientHeight" : "clientWidth", E = s.reference[h] + s.reference[v] - m[v] - s.floating[h], C = m[v] - s.reference[v], I = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(f));
4072
+ }, v = Oo(o), h = Io(v), g = await a.getDimensions(f), b = v === "y", w = b ? "top" : "left", y = b ? "bottom" : "right", x = b ? "clientHeight" : "clientWidth", E = s.reference[h] + s.reference[v] - m[v] - s.floating[h], C = m[v] - s.reference[v], I = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(f));
4073
4073
  let R = I ? I[x] : 0;
4074
4074
  (!R || !await (a.isElement == null ? void 0 : a.isElement(I))) && (R = i.floating[x] || s.floating[h]);
4075
- const D = E / 2 - C / 2, M = R / 2 - g[h] / 2 - 1, k = st(p[w], M), j = st(p[y], M), K = k, W = R - g[h] - j, B = R / 2 - g[h] / 2 + D, q = no(K, B, W), L = !u.arrow && Bt(o) != null && B !== q && s.reference[h] / 2 - (B < K ? k : j) - g[h] / 2 < 0, G = L ? B < K ? B - K : B - W : 0;
4075
+ const D = E / 2 - C / 2, M = R / 2 - g[h] / 2 - 1, k = st(p[w], M), j = st(p[y], M), K = k, W = R - g[h] - j, B = R / 2 - g[h] / 2 + D, q = to(K, B, W), L = !u.arrow && Bt(o) != null && B !== q && s.reference[h] / 2 - (B < K ? k : j) - g[h] / 2 < 0, G = L ? B < K ? B - K : B - W : 0;
4076
4076
  return {
4077
4077
  [v]: m[v] + G,
4078
4078
  data: {
@@ -4167,7 +4167,7 @@ const ch = (e) => ({
4167
4167
  }
4168
4168
  };
4169
4169
  };
4170
- function Gs(e, t) {
4170
+ function Ks(e, t) {
4171
4171
  return {
4172
4172
  top: e.top - t.height,
4173
4173
  right: e.right - t.width,
@@ -4175,7 +4175,7 @@ function Gs(e, t) {
4175
4175
  left: e.left - t.width
4176
4176
  };
4177
4177
  }
4178
- function qs(e) {
4178
+ function Gs(e) {
4179
4179
  return Xp.some((t) => e[t] >= 0);
4180
4180
  }
4181
4181
  const uh = function(e) {
@@ -4194,11 +4194,11 @@ const uh = function(e) {
4194
4194
  const s = await en(t, {
4195
4195
  ...o,
4196
4196
  elementContext: "reference"
4197
- }), a = Gs(s, n.reference);
4197
+ }), a = Ks(s, n.reference);
4198
4198
  return {
4199
4199
  data: {
4200
4200
  referenceHiddenOffsets: a,
4201
- referenceHidden: qs(a)
4201
+ referenceHidden: Gs(a)
4202
4202
  }
4203
4203
  };
4204
4204
  }
@@ -4206,11 +4206,11 @@ const uh = function(e) {
4206
4206
  const s = await en(t, {
4207
4207
  ...o,
4208
4208
  altBoundary: !0
4209
- }), a = Gs(s, n.floating);
4209
+ }), a = Ks(s, n.floating);
4210
4210
  return {
4211
4211
  data: {
4212
4212
  escapedOffsets: a,
4213
- escaped: qs(a)
4213
+ escaped: Gs(a)
4214
4214
  }
4215
4215
  };
4216
4216
  }
@@ -4297,15 +4297,15 @@ const fh = function(e) {
4297
4297
  } = Je(e, t), f = {
4298
4298
  x: n,
4299
4299
  y: r
4300
- }, d = await en(t, u), p = Ke(Ze(o)), m = Oo(p);
4300
+ }, d = await en(t, u), p = Ke(Ze(o)), m = _o(p);
4301
4301
  let v = f[m], h = f[p];
4302
4302
  if (s) {
4303
4303
  const b = m === "y" ? "top" : "left", w = m === "y" ? "bottom" : "right", y = v + d[b], x = v - d[w];
4304
- v = no(y, v, x);
4304
+ v = to(y, v, x);
4305
4305
  }
4306
4306
  if (a) {
4307
4307
  const b = p === "y" ? "top" : "left", w = p === "y" ? "bottom" : "right", y = h + d[b], x = h - d[w];
4308
- h = no(y, h, x);
4308
+ h = to(y, h, x);
4309
4309
  }
4310
4310
  const g = i.fn({
4311
4311
  ...t,
@@ -4342,7 +4342,7 @@ const fh = function(e) {
4342
4342
  } = Je(e, t), d = {
4343
4343
  x: n,
4344
4344
  y: r
4345
- }, p = Ke(o), m = Oo(p);
4345
+ }, p = Ke(o), m = _o(p);
4346
4346
  let v = d[m], h = d[p];
4347
4347
  const g = Je(i, t), b = typeof g == "number" ? {
4348
4348
  mainAxis: g,
@@ -4431,7 +4431,7 @@ function Be(e) {
4431
4431
  function qe(e) {
4432
4432
  return ar() ? e instanceof HTMLElement || e instanceof Ie(e).HTMLElement : !1;
4433
4433
  }
4434
- function Ys(e) {
4434
+ function qs(e) {
4435
4435
  return !ar() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Ie(e).ShadowRoot;
4436
4436
  }
4437
4437
  const gh = /* @__PURE__ */ new Set(["inline", "contents"]);
@@ -4459,14 +4459,14 @@ function ir(e) {
4459
4459
  });
4460
4460
  }
4461
4461
  const yh = ["transform", "translate", "scale", "rotate", "perspective"], xh = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Sh = ["paint", "layout", "strict", "content"];
4462
- function Do(e) {
4463
- const t = Lo(), n = Be(e) ? Ue(e) : e;
4462
+ function Mo(e) {
4463
+ const t = ko(), n = Be(e) ? Ue(e) : e;
4464
4464
  return yh.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || xh.some((r) => (n.willChange || "").includes(r)) || Sh.some((r) => (n.contain || "").includes(r));
4465
4465
  }
4466
4466
  function Ch(e) {
4467
4467
  let t = at(e);
4468
4468
  for (; qe(t) && !Mt(t); ) {
4469
- if (Do(t))
4469
+ if (Mo(t))
4470
4470
  return t;
4471
4471
  if (ir(t))
4472
4472
  return null;
@@ -4474,7 +4474,7 @@ function Ch(e) {
4474
4474
  }
4475
4475
  return null;
4476
4476
  }
4477
- function Lo() {
4477
+ function ko() {
4478
4478
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
4479
4479
  }
4480
4480
  const Eh = /* @__PURE__ */ new Set(["html", "body", "#document"]);
@@ -4500,10 +4500,10 @@ function at(e) {
4500
4500
  // Step into the shadow DOM of the parent of a slotted node.
4501
4501
  e.assignedSlot || // DOM Element detected.
4502
4502
  e.parentNode || // ShadowRoot detected.
4503
- Ys(e) && e.host || // Fallback.
4503
+ qs(e) && e.host || // Fallback.
4504
4504
  Ye(e)
4505
4505
  );
4506
- return Ys(t) ? t.host : t;
4506
+ return qs(t) ? t.host : t;
4507
4507
  }
4508
4508
  function si(e) {
4509
4509
  const t = at(e);
@@ -4514,12 +4514,12 @@ function tn(e, t, n) {
4514
4514
  t === void 0 && (t = []), n === void 0 && (n = !0);
4515
4515
  const o = si(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), a = Ie(o);
4516
4516
  if (s) {
4517
- const i = oo(a);
4517
+ const i = ro(a);
4518
4518
  return t.concat(a, a.visualViewport || [], pn(o) ? o : [], i && n ? tn(i) : []);
4519
4519
  }
4520
4520
  return t.concat(o, tn(o, [], n));
4521
4521
  }
4522
- function oo(e) {
4522
+ function ro(e) {
4523
4523
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
4524
4524
  }
4525
4525
  function ai(e) {
@@ -4532,11 +4532,11 @@ function ai(e) {
4532
4532
  $: i
4533
4533
  };
4534
4534
  }
4535
- function Fo(e) {
4535
+ function Do(e) {
4536
4536
  return Be(e) ? e : e.contextElement;
4537
4537
  }
4538
4538
  function Pt(e) {
4539
- const t = Fo(e);
4539
+ const t = Do(e);
4540
4540
  if (!qe(t))
4541
4541
  return Ge(1);
4542
4542
  const n = t.getBoundingClientRect(), {
@@ -4553,7 +4553,7 @@ function Pt(e) {
4553
4553
  const Rh = /* @__PURE__ */ Ge(0);
4554
4554
  function ii(e) {
4555
4555
  const t = Ie(e);
4556
- return !Lo() || !t.visualViewport ? Rh : {
4556
+ return !ko() || !t.visualViewport ? Rh : {
4557
4557
  x: t.visualViewport.offsetLeft,
4558
4558
  y: t.visualViewport.offsetTop
4559
4559
  };
@@ -4563,17 +4563,17 @@ function Nh(e, t, n) {
4563
4563
  }
4564
4564
  function gt(e, t, n, r) {
4565
4565
  t === void 0 && (t = !1), n === void 0 && (n = !1);
4566
- const o = e.getBoundingClientRect(), s = Fo(e);
4566
+ const o = e.getBoundingClientRect(), s = Do(e);
4567
4567
  let a = Ge(1);
4568
4568
  t && (r ? Be(r) && (a = Pt(r)) : a = Pt(e));
4569
4569
  const i = Nh(s, n, r) ? ii(s) : Ge(0);
4570
4570
  let u = (o.left + i.x) / a.x, f = (o.top + i.y) / a.y, d = o.width / a.x, p = o.height / a.y;
4571
4571
  if (s) {
4572
4572
  const m = Ie(s), v = r && Be(r) ? Ie(r) : r;
4573
- let h = m, g = oo(h);
4573
+ let h = m, g = ro(h);
4574
4574
  for (; g && r && v !== h; ) {
4575
4575
  const b = Pt(g), w = g.getBoundingClientRect(), y = Ue(g), x = w.left + (g.clientLeft + parseFloat(y.paddingLeft)) * b.x, E = w.top + (g.clientTop + parseFloat(y.paddingTop)) * b.y;
4576
- u *= b.x, f *= b.y, d *= b.x, p *= b.y, u += x, f += E, h = Ie(g), g = oo(h);
4576
+ u *= b.x, f *= b.y, d *= b.x, p *= b.y, u += x, f += E, h = Ie(g), g = ro(h);
4577
4577
  }
4578
4578
  }
4579
4579
  return Wn({
@@ -4635,20 +4635,20 @@ function Ph(e) {
4635
4635
  y: i
4636
4636
  };
4637
4637
  }
4638
- const Xs = 25;
4638
+ const Ys = 25;
4639
4639
  function _h(e, t) {
4640
4640
  const n = Ie(e), r = Ye(e), o = n.visualViewport;
4641
4641
  let s = r.clientWidth, a = r.clientHeight, i = 0, u = 0;
4642
4642
  if (o) {
4643
4643
  s = o.width, a = o.height;
4644
- const d = Lo();
4644
+ const d = ko();
4645
4645
  (!d || d && t === "fixed") && (i = o.offsetLeft, u = o.offsetTop);
4646
4646
  }
4647
4647
  const f = lr(r);
4648
4648
  if (f <= 0) {
4649
4649
  const d = r.ownerDocument, p = d.body, m = getComputedStyle(p), v = d.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, h = Math.abs(r.clientWidth - p.clientWidth - v);
4650
- h <= Xs && (s -= h);
4651
- } else f <= Xs && (s += f);
4650
+ h <= Ys && (s -= h);
4651
+ } else f <= Ys && (s += f);
4652
4652
  return {
4653
4653
  width: s,
4654
4654
  height: a,
@@ -4666,7 +4666,7 @@ function Oh(e, t) {
4666
4666
  y: f
4667
4667
  };
4668
4668
  }
4669
- function Js(e, t, n) {
4669
+ function Xs(e, t, n) {
4670
4670
  let r;
4671
4671
  if (t === "viewport")
4672
4672
  r = _h(e, n);
@@ -4697,7 +4697,7 @@ function Mh(e, t) {
4697
4697
  const s = Ue(e).position === "fixed";
4698
4698
  let a = s ? at(e) : e;
4699
4699
  for (; Be(a) && !Mt(a); ) {
4700
- const i = Ue(a), u = Do(a);
4700
+ const i = Ue(a), u = Mo(a);
4701
4701
  !u && i.position === "fixed" && (o = null), (s ? !u && !o : !u && i.position === "static" && !!o && Ih.has(o.position) || pn(a) && !u && li(e, a)) ? r = r.filter((d) => d !== a) : o = i, a = at(a);
4702
4702
  }
4703
4703
  return t.set(e, r), r;
@@ -4710,9 +4710,9 @@ function kh(e) {
4710
4710
  strategy: o
4711
4711
  } = e;
4712
4712
  const a = [...n === "clippingAncestors" ? ir(t) ? [] : Mh(t, this._c) : [].concat(n), r], i = a[0], u = a.reduce((f, d) => {
4713
- const p = Js(t, d, o);
4713
+ const p = Xs(t, d, o);
4714
4714
  return f.top = _e(p.top, f.top), f.right = st(p.right, f.right), f.bottom = st(p.bottom, f.bottom), f.left = _e(p.left, f.left), f;
4715
- }, Js(t, i, o));
4715
+ }, Xs(t, i, o));
4716
4716
  return {
4717
4717
  width: u.right - u.left,
4718
4718
  height: u.bottom - u.top,
@@ -4754,10 +4754,10 @@ function Lh(e, t, n) {
4754
4754
  height: a.height
4755
4755
  };
4756
4756
  }
4757
- function Lr(e) {
4757
+ function Dr(e) {
4758
4758
  return Ue(e).position === "static";
4759
4759
  }
4760
- function Zs(e, t) {
4760
+ function Js(e, t) {
4761
4761
  if (!qe(e) || Ue(e).position === "fixed")
4762
4762
  return null;
4763
4763
  if (t)
@@ -4772,16 +4772,16 @@ function ui(e, t) {
4772
4772
  if (!qe(e)) {
4773
4773
  let o = at(e);
4774
4774
  for (; o && !Mt(o); ) {
4775
- if (Be(o) && !Lr(o))
4775
+ if (Be(o) && !Dr(o))
4776
4776
  return o;
4777
4777
  o = at(o);
4778
4778
  }
4779
4779
  return n;
4780
4780
  }
4781
- let r = Zs(e, t);
4782
- for (; r && vh(r) && Lr(r); )
4783
- r = Zs(r, t);
4784
- return r && Mt(r) && Lr(r) && !Do(r) ? n : r || Ch(e) || n;
4781
+ let r = Js(e, t);
4782
+ for (; r && vh(r) && Dr(r); )
4783
+ r = Js(r, t);
4784
+ return r && Mt(r) && Dr(r) && !Mo(r) ? n : r || Ch(e) || n;
4785
4785
  }
4786
4786
  const Fh = async function(e) {
4787
4787
  const t = this.getOffsetParent || ui, n = this.getDimensions, r = await n(e.floating);
@@ -4867,7 +4867,7 @@ function zh(e, t, n, r) {
4867
4867
  elementResize: a = typeof ResizeObserver == "function",
4868
4868
  layoutShift: i = typeof IntersectionObserver == "function",
4869
4869
  animationFrame: u = !1
4870
- } = r, f = Fo(e), d = o || s ? [...f ? tn(f) : [], ...tn(t)] : [];
4870
+ } = r, f = Do(e), d = o || s ? [...f ? tn(f) : [], ...tn(t)] : [];
4871
4871
  d.forEach((w) => {
4872
4872
  o && w.addEventListener("scroll", n, {
4873
4873
  passive: !0
@@ -4895,7 +4895,7 @@ function zh(e, t, n, r) {
4895
4895
  }), p == null || p(), (w = v) == null || w.disconnect(), v = null, u && cancelAnimationFrame(h);
4896
4896
  };
4897
4897
  }
4898
- const Hh = fh, Wh = ph, Vh = lh, jh = mh, Kh = uh, Qs = ch, Gh = hh, qh = (e, t, n) => {
4898
+ const Hh = fh, Wh = ph, Vh = lh, jh = mh, Kh = uh, Zs = ch, Gh = hh, qh = (e, t, n) => {
4899
4899
  const r = /* @__PURE__ */ new Map(), o = {
4900
4900
  platform: Bh,
4901
4901
  ...n
@@ -4943,11 +4943,11 @@ function Vn(e, t) {
4943
4943
  function fi(e) {
4944
4944
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
4945
4945
  }
4946
- function ea(e, t) {
4946
+ function Qs(e, t) {
4947
4947
  const n = fi(e);
4948
4948
  return Math.round(t * n) / n;
4949
4949
  }
4950
- function Fr(e) {
4950
+ function Lr(e) {
4951
4951
  const t = l.useRef(e);
4952
4952
  return Pn(() => {
4953
4953
  t.current = e;
@@ -4980,7 +4980,7 @@ function Jh(e) {
4980
4980
  T !== I.current && (I.current = T, g(T));
4981
4981
  }, []), x = l.useCallback((T) => {
4982
4982
  T !== R.current && (R.current = T, w(T));
4983
- }, []), E = s || h, C = a || b, I = l.useRef(null), R = l.useRef(null), D = l.useRef(d), M = u != null, k = Fr(u), j = Fr(o), K = Fr(f), W = l.useCallback(() => {
4983
+ }, []), E = s || h, C = a || b, I = l.useRef(null), R = l.useRef(null), D = l.useRef(d), M = u != null, k = Lr(u), j = Lr(o), K = Lr(f), W = l.useCallback(() => {
4984
4984
  if (!I.current || !R.current)
4985
4985
  return;
4986
4986
  const T = {
@@ -5034,7 +5034,7 @@ function Jh(e) {
5034
5034
  };
5035
5035
  if (!L.floating)
5036
5036
  return T;
5037
- const P = ea(L.floating, d.x), _ = ea(L.floating, d.y);
5037
+ const P = Qs(L.floating, d.x), _ = Qs(L.floating, d.y);
5038
5038
  return i ? {
5039
5039
  ...T,
5040
5040
  transform: "translate(" + P + "px, " + _ + "px)",
@@ -5067,10 +5067,10 @@ const Zh = (e) => {
5067
5067
  element: r,
5068
5068
  padding: o
5069
5069
  } = typeof e == "function" ? e(n) : e;
5070
- return r && t(r) ? r.current != null ? Qs({
5070
+ return r && t(r) ? r.current != null ? Zs({
5071
5071
  element: r.current,
5072
5072
  padding: o
5073
- }).fn(n) : {} : r ? Qs({
5073
+ }).fn(n) : {} : r ? Zs({
5074
5074
  element: r,
5075
5075
  padding: o
5076
5076
  }).fn(n) : {};
@@ -5137,11 +5137,11 @@ function hi(e) {
5137
5137
  n(void 0);
5138
5138
  }, [e]), t;
5139
5139
  }
5140
- var $o = "Popper", [mi, zt] = He($o), [cm, gi] = mi($o), bi = (e) => {
5140
+ var Lo = "Popper", [mi, zt] = He(Lo), [cm, gi] = mi(Lo), bi = (e) => {
5141
5141
  const { __scopePopper: t, children: n } = e, [r, o] = l.useState(null);
5142
5142
  return /* @__PURE__ */ c(cm, { scope: t, anchor: r, onAnchorChange: o, children: n });
5143
5143
  };
5144
- bi.displayName = $o;
5144
+ bi.displayName = Lo;
5145
5145
  var vi = "PopperAnchor", wi = l.forwardRef(
5146
5146
  (e, t) => {
5147
5147
  const { __scopePopper: n, virtualRef: r, ...o } = e, s = gi(vi, n), a = l.useRef(null), i = te(t, a), u = l.useRef(null);
@@ -5152,7 +5152,7 @@ var vi = "PopperAnchor", wi = l.forwardRef(
5152
5152
  }
5153
5153
  );
5154
5154
  wi.displayName = vi;
5155
- var Bo = "PopperContent", [lm, um] = mi(Bo), yi = l.forwardRef(
5155
+ var Fo = "PopperContent", [lm, um] = mi(Fo), yi = l.forwardRef(
5156
5156
  (e, t) => {
5157
5157
  var V, re, ie, oe, H, Z;
5158
5158
  const {
@@ -5170,7 +5170,7 @@ var Bo = "PopperContent", [lm, um] = mi(Bo), yi = l.forwardRef(
5170
5170
  updatePositionStrategy: v = "optimized",
5171
5171
  onPlaced: h,
5172
5172
  ...g
5173
- } = e, b = gi(Bo, n), [w, y] = l.useState(null), x = te(t, (de) => y(de)), [E, C] = l.useState(null), I = hi(E), R = (I == null ? void 0 : I.width) ?? 0, D = (I == null ? void 0 : I.height) ?? 0, M = r + (s !== "center" ? "-" + s : ""), k = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, j = Array.isArray(f) ? f : [f], K = j.length > 0, W = {
5173
+ } = e, b = gi(Fo, n), [w, y] = l.useState(null), x = te(t, (de) => y(de)), [E, C] = l.useState(null), I = hi(E), R = (I == null ? void 0 : I.width) ?? 0, D = (I == null ? void 0 : I.height) ?? 0, M = r + (s !== "center" ? "-" + s : ""), k = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, j = Array.isArray(f) ? f : [f], K = j.length > 0, W = {
5174
5174
  padding: k,
5175
5175
  boundary: j.filter(fm),
5176
5176
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -5266,7 +5266,7 @@ var Bo = "PopperContent", [lm, um] = mi(Bo), yi = l.forwardRef(
5266
5266
  );
5267
5267
  }
5268
5268
  );
5269
- yi.displayName = Bo;
5269
+ yi.displayName = Fo;
5270
5270
  var xi = "PopperArrow", dm = {
5271
5271
  top: "bottom",
5272
5272
  right: "left",
@@ -5335,7 +5335,7 @@ function Ci(e) {
5335
5335
  const [t, n = "center"] = e.split("-");
5336
5336
  return [t, n];
5337
5337
  }
5338
- var Uo = bi, zo = wi, Ho = yi, Wo = Si, hm = "Portal", ur = l.forwardRef((e, t) => {
5338
+ var $o = bi, Bo = wi, Uo = yi, zo = Si, hm = "Portal", ur = l.forwardRef((e, t) => {
5339
5339
  var i;
5340
5340
  const { container: n, ...r } = e, [o, s] = l.useState(!1);
5341
5341
  be(() => s(!0), []);
@@ -5343,11 +5343,11 @@ var Uo = bi, zo = wi, Ho = yi, Wo = Si, hm = "Portal", ur = l.forwardRef((e, t)
5343
5343
  return a ? ld.createPortal(/* @__PURE__ */ c(J.div, { ...r, ref: t }), a) : null;
5344
5344
  });
5345
5345
  ur.displayName = hm;
5346
- var $r = "rovingFocusGroup.onEntryFocus", mm = { bubbles: !1, cancelable: !0 }, hn = "RovingFocusGroup", [so, Ei, gm] = _o(hn), [bm, Ri] = He(
5346
+ var Fr = "rovingFocusGroup.onEntryFocus", mm = { bubbles: !1, cancelable: !0 }, hn = "RovingFocusGroup", [oo, Ei, gm] = Ao(hn), [bm, Ri] = He(
5347
5347
  hn,
5348
5348
  [gm]
5349
5349
  ), [vm, wm] = bm(hn), Ni = l.forwardRef(
5350
- (e, t) => /* @__PURE__ */ c(so.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(so.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(ym, { ...e, ref: t }) }) })
5350
+ (e, t) => /* @__PURE__ */ c(oo.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(oo.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(ym, { ...e, ref: t }) }) })
5351
5351
  );
5352
5352
  Ni.displayName = hn;
5353
5353
  var ym = l.forwardRef((e, t) => {
@@ -5371,7 +5371,7 @@ var ym = l.forwardRef((e, t) => {
5371
5371
  return l.useEffect(() => {
5372
5372
  const D = m.current;
5373
5373
  if (D)
5374
- return D.addEventListener($r, x), () => D.removeEventListener($r, x);
5374
+ return D.addEventListener(Fr, x), () => D.removeEventListener(Fr, x);
5375
5375
  }, [x]), /* @__PURE__ */ c(
5376
5376
  vm,
5377
5377
  {
@@ -5407,7 +5407,7 @@ var ym = l.forwardRef((e, t) => {
5407
5407
  onFocus: U(e.onFocus, (D) => {
5408
5408
  const M = !C.current;
5409
5409
  if (D.target === D.currentTarget && M && !w) {
5410
- const k = new CustomEvent($r, mm);
5410
+ const k = new CustomEvent(Fr, mm);
5411
5411
  if (D.currentTarget.dispatchEvent(k), !k.defaultPrevented) {
5412
5412
  const j = E().filter((L) => L.focusable), K = j.find((L) => L.active), W = j.find((L) => L.id === g), q = [K, W, ...j].filter(
5413
5413
  Boolean
@@ -5436,7 +5436,7 @@ var ym = l.forwardRef((e, t) => {
5436
5436
  if (r)
5437
5437
  return v(), () => h();
5438
5438
  }, [r, v, h]), /* @__PURE__ */ c(
5439
- so.ItemSlot,
5439
+ oo.ItemSlot,
5440
5440
  {
5441
5441
  scope: n,
5442
5442
  id: f,
@@ -5512,7 +5512,7 @@ var Rm = Ni, Nm = Ai, Tm = function(e) {
5512
5512
  return null;
5513
5513
  var t = Array.isArray(e) ? e[0] : e;
5514
5514
  return t.ownerDocument.body;
5515
- }, Ct = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), Sn = {}, Br = 0, _i = function(e) {
5515
+ }, Ct = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), Sn = {}, $r = 0, _i = function(e) {
5516
5516
  return e && (e.host || _i(e.parentNode));
5517
5517
  }, Am = function(e, t) {
5518
5518
  return t.map(function(n) {
@@ -5543,13 +5543,13 @@ var Rm = Ni, Nm = Ai, Tm = function(e) {
5543
5543
  }
5544
5544
  });
5545
5545
  };
5546
- return d(t), i.clear(), Br++, function() {
5546
+ return d(t), i.clear(), $r++, function() {
5547
5547
  a.forEach(function(p) {
5548
5548
  var m = Ct.get(p) - 1, v = s.get(p) - 1;
5549
5549
  Ct.set(p, m), s.set(p, v), m || (xn.has(p) || p.removeAttribute(r), xn.delete(p)), v || p.removeAttribute(n);
5550
- }), Br--, Br || (Ct = /* @__PURE__ */ new WeakMap(), Ct = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), Sn = {});
5550
+ }), $r--, $r || (Ct = /* @__PURE__ */ new WeakMap(), Ct = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), Sn = {});
5551
5551
  };
5552
- }, Vo = function(e, t, n) {
5552
+ }, Ho = function(e, t, n) {
5553
5553
  n === void 0 && (n = "data-aria-hidden");
5554
5554
  var r = Array.from(Array.isArray(e) ? e : [e]), o = Tm(e);
5555
5555
  return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Pm(r, o, n, "aria-hidden")) : function() {
@@ -5578,7 +5578,7 @@ function _m(e, t, n) {
5578
5578
  return e.concat(s || Array.prototype.slice.call(t));
5579
5579
  }
5580
5580
  var _n = "right-scroll-bar-position", In = "width-before-scroll-bar", Im = "with-scroll-bars-hidden", Om = "--removed-body-scroll-bar-size";
5581
- function Ur(e, t) {
5581
+ function Br(e, t) {
5582
5582
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
5583
5583
  }
5584
5584
  function Mm(e, t) {
@@ -5602,24 +5602,24 @@ function Mm(e, t) {
5602
5602
  })[0];
5603
5603
  return n.callback = t, n.facade;
5604
5604
  }
5605
- var km = typeof window < "u" ? l.useLayoutEffect : l.useEffect, ta = /* @__PURE__ */ new WeakMap();
5605
+ var km = typeof window < "u" ? l.useLayoutEffect : l.useEffect, ea = /* @__PURE__ */ new WeakMap();
5606
5606
  function Dm(e, t) {
5607
5607
  var n = Mm(null, function(r) {
5608
5608
  return e.forEach(function(o) {
5609
- return Ur(o, r);
5609
+ return Br(o, r);
5610
5610
  });
5611
5611
  });
5612
5612
  return km(function() {
5613
- var r = ta.get(n);
5613
+ var r = ea.get(n);
5614
5614
  if (r) {
5615
5615
  var o = new Set(r), s = new Set(e), a = n.current;
5616
5616
  o.forEach(function(i) {
5617
- s.has(i) || Ur(i, null);
5617
+ s.has(i) || Br(i, null);
5618
5618
  }), s.forEach(function(i) {
5619
- o.has(i) || Ur(i, a);
5619
+ o.has(i) || Br(i, a);
5620
5620
  });
5621
5621
  }
5622
- ta.set(n, e);
5622
+ ea.set(n, e);
5623
5623
  }, [e]), n;
5624
5624
  }
5625
5625
  function Lm(e) {
@@ -5698,12 +5698,12 @@ Oi.isSideCarExport = !0;
5698
5698
  function Bm(e, t) {
5699
5699
  return e.useMedium(t), Oi;
5700
5700
  }
5701
- var Mi = $m(), zr = function() {
5701
+ var Mi = $m(), Ur = function() {
5702
5702
  }, dr = l.forwardRef(function(e, t) {
5703
5703
  var n = l.useRef(null), r = l.useState({
5704
- onScrollCapture: zr,
5705
- onWheelCapture: zr,
5706
- onTouchMoveCapture: zr
5704
+ onScrollCapture: Ur,
5705
+ onWheelCapture: Ur,
5706
+ onTouchMoveCapture: Ur
5707
5707
  }), o = r[0], s = r[1], a = e.forwardProps, i = e.children, u = e.className, f = e.removeScrollBar, d = e.enabled, p = e.shards, m = e.sideCar, v = e.noRelative, h = e.noIsolation, g = e.inert, b = e.allowPinchZoom, w = e.as, y = w === void 0 ? "div" : w, x = e.gapMode, E = Ii(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = m, I = Dm([n, t]), R = je(je({}, E), o);
5708
5708
  return l.createElement(
5709
5709
  l.Fragment,
@@ -5770,11 +5770,11 @@ var Vm = function() {
5770
5770
  top: 0,
5771
5771
  right: 0,
5772
5772
  gap: 0
5773
- }, Hr = function(e) {
5773
+ }, zr = function(e) {
5774
5774
  return parseInt(e || "", 10) || 0;
5775
5775
  }, Gm = function(e) {
5776
5776
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
5777
- return [Hr(n), Hr(r), Hr(o)];
5777
+ return [zr(n), zr(r), zr(o)];
5778
5778
  }, qm = function(e) {
5779
5779
  if (e === void 0 && (e = "margin"), typeof window > "u")
5780
5780
  return Km;
@@ -5829,13 +5829,13 @@ var Vm = function() {
5829
5829
  `).concat(Om, ": ").concat(i, `px;
5830
5830
  }
5831
5831
  `);
5832
- }, na = function() {
5832
+ }, ta = function() {
5833
5833
  var e = parseInt(document.body.getAttribute(_t) || "0", 10);
5834
5834
  return isFinite(e) ? e : 0;
5835
5835
  }, Jm = function() {
5836
5836
  l.useEffect(function() {
5837
- return document.body.setAttribute(_t, (na() + 1).toString()), function() {
5838
- var e = na() - 1;
5837
+ return document.body.setAttribute(_t, (ta() + 1).toString()), function() {
5838
+ var e = ta() - 1;
5839
5839
  e <= 0 ? document.body.removeAttribute(_t) : document.body.setAttribute(_t, e.toString());
5840
5840
  };
5841
5841
  }, []);
@@ -5846,19 +5846,19 @@ var Vm = function() {
5846
5846
  return qm(o);
5847
5847
  }, [o]);
5848
5848
  return l.createElement(Ym, { styles: Xm(s, !t, o, n ? "" : "!important") });
5849
- }, ao = !1;
5849
+ }, so = !1;
5850
5850
  if (typeof window < "u")
5851
5851
  try {
5852
5852
  var Cn = Object.defineProperty({}, "passive", {
5853
5853
  get: function() {
5854
- return ao = !0, !0;
5854
+ return so = !0, !0;
5855
5855
  }
5856
5856
  });
5857
5857
  window.addEventListener("test", Cn, Cn), window.removeEventListener("test", Cn, Cn);
5858
5858
  } catch {
5859
- ao = !1;
5859
+ so = !1;
5860
5860
  }
5861
- var Et = ao ? { passive: !1 } : !1, Qm = function(e) {
5861
+ var Et = so ? { passive: !1 } : !1, Qm = function(e) {
5862
5862
  return e.tagName === "TEXTAREA";
5863
5863
  }, Di = function(e, t) {
5864
5864
  if (!(e instanceof Element))
@@ -5873,7 +5873,7 @@ var Et = ao ? { passive: !1 } : !1, Qm = function(e) {
5873
5873
  return Di(e, "overflowY");
5874
5874
  }, tg = function(e) {
5875
5875
  return Di(e, "overflowX");
5876
- }, ra = function(e, t) {
5876
+ }, na = function(e, t) {
5877
5877
  var n = t.ownerDocument, r = t;
5878
5878
  do {
5879
5879
  typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
@@ -5923,9 +5923,9 @@ var Et = ao ? { passive: !1 } : !1, Qm = function(e) {
5923
5923
  return (d && Math.abs(p) < 1 || !d && Math.abs(m) < 1) && (f = !0), f;
5924
5924
  }, En = function(e) {
5925
5925
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
5926
- }, oa = function(e) {
5926
+ }, ra = function(e) {
5927
5927
  return [e.deltaX, e.deltaY];
5928
- }, sa = function(e) {
5928
+ }, oa = function(e) {
5929
5929
  return e && "current" in e ? e.current : e;
5930
5930
  }, ag = function(e, t) {
5931
5931
  return e[0] === t[0] && e[1] === t[1];
@@ -5942,7 +5942,7 @@ function lg(e) {
5942
5942
  }, [e]), l.useEffect(function() {
5943
5943
  if (e.inert) {
5944
5944
  document.body.classList.add("block-interactivity-".concat(o));
5945
- var g = _m([e.lockRef.current], (e.shards || []).map(sa), !0).filter(Boolean);
5945
+ var g = _m([e.lockRef.current], (e.shards || []).map(oa), !0).filter(Boolean);
5946
5946
  return g.forEach(function(b) {
5947
5947
  return b.classList.add("allow-interactivity-".concat(o));
5948
5948
  }), function() {
@@ -5958,10 +5958,10 @@ function lg(e) {
5958
5958
  var w = En(g), y = n.current, x = "deltaX" in g ? g.deltaX : y[0] - w[0], E = "deltaY" in g ? g.deltaY : y[1] - w[1], C, I = g.target, R = Math.abs(x) > Math.abs(E) ? "h" : "v";
5959
5959
  if ("touches" in g && R === "h" && I.type === "range")
5960
5960
  return !1;
5961
- var D = ra(R, I);
5961
+ var D = na(R, I);
5962
5962
  if (!D)
5963
5963
  return !0;
5964
- if (D ? C = R : (C = R === "v" ? "h" : "v", D = ra(R, I)), !D)
5964
+ if (D ? C = R : (C = R === "v" ? "h" : "v", D = na(R, I)), !D)
5965
5965
  return !1;
5966
5966
  if (!r.current && "changedTouches" in g && (x || E) && (r.current = C), !C)
5967
5967
  return !0;
@@ -5970,7 +5970,7 @@ function lg(e) {
5970
5970
  }, []), u = l.useCallback(function(g) {
5971
5971
  var b = g;
5972
5972
  if (!(!Rt.length || Rt[Rt.length - 1] !== s)) {
5973
- var w = "deltaY" in b ? oa(b) : En(b), y = t.current.filter(function(C) {
5973
+ var w = "deltaY" in b ? ra(b) : En(b), y = t.current.filter(function(C) {
5974
5974
  return C.name === b.type && (C.target === b.target || b.target === C.shadowParent) && ag(C.delta, w);
5975
5975
  })[0];
5976
5976
  if (y && y.should) {
@@ -5978,7 +5978,7 @@ function lg(e) {
5978
5978
  return;
5979
5979
  }
5980
5980
  if (!y) {
5981
- var x = (a.current.shards || []).map(sa).filter(Boolean).filter(function(C) {
5981
+ var x = (a.current.shards || []).map(oa).filter(Boolean).filter(function(C) {
5982
5982
  return C.contains(b.target);
5983
5983
  }), E = x.length > 0 ? i(b, x[0]) : !a.current.noIsolation;
5984
5984
  E && b.cancelable && b.preventDefault();
@@ -5994,7 +5994,7 @@ function lg(e) {
5994
5994
  }, []), d = l.useCallback(function(g) {
5995
5995
  n.current = En(g), r.current = void 0;
5996
5996
  }, []), p = l.useCallback(function(g) {
5997
- f(g.type, oa(g), g.target, i(g, e.lockRef.current));
5997
+ f(g.type, ra(g), g.target, i(g, e.lockRef.current));
5998
5998
  }, []), m = l.useCallback(function(g) {
5999
5999
  f(g.type, En(g), g.target, i(g, e.lockRef.current));
6000
6000
  }, []);
@@ -6027,13 +6027,13 @@ var fr = l.forwardRef(function(e, t) {
6027
6027
  return l.createElement(dr, je({}, e, { ref: t, sideCar: dg }));
6028
6028
  });
6029
6029
  fr.classNames = dr.classNames;
6030
- var io = ["Enter", " "], fg = ["ArrowDown", "PageUp", "Home"], $i = ["ArrowUp", "PageDown", "End"], pg = [...fg, ...$i], hg = {
6031
- ltr: [...io, "ArrowRight"],
6032
- rtl: [...io, "ArrowLeft"]
6030
+ var ao = ["Enter", " "], fg = ["ArrowDown", "PageUp", "Home"], $i = ["ArrowUp", "PageDown", "End"], pg = [...fg, ...$i], hg = {
6031
+ ltr: [...ao, "ArrowRight"],
6032
+ rtl: [...ao, "ArrowLeft"]
6033
6033
  }, mg = {
6034
6034
  ltr: ["ArrowLeft"],
6035
6035
  rtl: ["ArrowRight"]
6036
- }, mn = "Menu", [nn, gg, bg] = _o(mn), [yt, Bi] = He(mn, [
6036
+ }, mn = "Menu", [nn, gg, bg] = Ao(mn), [yt, Bi] = He(mn, [
6037
6037
  bg,
6038
6038
  zt,
6039
6039
  Ri
@@ -6046,7 +6046,7 @@ var io = ["Enter", " "], fg = ["ArrowDown", "PageUp", "Home"], $i = ["ArrowUp",
6046
6046
  return document.addEventListener("keydown", v, { capture: !0 }), () => {
6047
6047
  document.removeEventListener("keydown", v, { capture: !0 }), document.removeEventListener("pointerdown", h, { capture: !0 }), document.removeEventListener("pointermove", h, { capture: !0 });
6048
6048
  };
6049
- }, []), /* @__PURE__ */ c(Uo, { ...i, children: /* @__PURE__ */ c(
6049
+ }, []), /* @__PURE__ */ c($o, { ...i, children: /* @__PURE__ */ c(
6050
6050
  vg,
6051
6051
  {
6052
6052
  scope: t,
@@ -6069,21 +6069,21 @@ var io = ["Enter", " "], fg = ["ArrowDown", "PageUp", "Home"], $i = ["ArrowUp",
6069
6069
  ) });
6070
6070
  };
6071
6071
  zi.displayName = mn;
6072
- var yg = "MenuAnchor", jo = l.forwardRef(
6072
+ var yg = "MenuAnchor", Wo = l.forwardRef(
6073
6073
  (e, t) => {
6074
6074
  const { __scopeMenu: n, ...r } = e, o = pr(n);
6075
- return /* @__PURE__ */ c(zo, { ...o, ...r, ref: t });
6075
+ return /* @__PURE__ */ c(Bo, { ...o, ...r, ref: t });
6076
6076
  }
6077
6077
  );
6078
- jo.displayName = yg;
6079
- var Ko = "MenuPortal", [xg, Hi] = yt(Ko, {
6078
+ Wo.displayName = yg;
6079
+ var Vo = "MenuPortal", [xg, Hi] = yt(Vo, {
6080
6080
  forceMount: void 0
6081
6081
  }), Wi = (e) => {
6082
- const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = xt(Ko, t);
6082
+ const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = xt(Vo, t);
6083
6083
  return /* @__PURE__ */ c(xg, { scope: t, forceMount: n, children: /* @__PURE__ */ c(Pe, { present: n || s.open, children: /* @__PURE__ */ c(ur, { asChild: !0, container: o, children: r }) }) });
6084
6084
  };
6085
- Wi.displayName = Ko;
6086
- var Me = "MenuContent", [Sg, Go] = yt(Me), Vi = l.forwardRef(
6085
+ Wi.displayName = Vo;
6086
+ var Me = "MenuContent", [Sg, jo] = yt(Me), Vi = l.forwardRef(
6087
6087
  (e, t) => {
6088
6088
  const n = Hi(Me, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = xt(Me, e.__scopeMenu), a = gn(Me, e.__scopeMenu);
6089
6089
  return /* @__PURE__ */ c(nn.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ c(Pe, { present: r || s.open, children: /* @__PURE__ */ c(nn.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ c(Cg, { ...o, ref: t }) : /* @__PURE__ */ c(Eg, { ...o, ref: t }) }) }) });
@@ -6093,9 +6093,9 @@ var Me = "MenuContent", [Sg, Go] = yt(Me), Vi = l.forwardRef(
6093
6093
  const n = xt(Me, e.__scopeMenu), r = l.useRef(null), o = te(t, r);
6094
6094
  return l.useEffect(() => {
6095
6095
  const s = r.current;
6096
- if (s) return Vo(s);
6096
+ if (s) return Ho(s);
6097
6097
  }, []), /* @__PURE__ */ c(
6098
- qo,
6098
+ Ko,
6099
6099
  {
6100
6100
  ...e,
6101
6101
  ref: o,
@@ -6114,7 +6114,7 @@ var Me = "MenuContent", [Sg, Go] = yt(Me), Vi = l.forwardRef(
6114
6114
  ), Eg = l.forwardRef((e, t) => {
6115
6115
  const n = xt(Me, e.__scopeMenu);
6116
6116
  return /* @__PURE__ */ c(
6117
- qo,
6117
+ Ko,
6118
6118
  {
6119
6119
  ...e,
6120
6120
  ref: t,
@@ -6124,7 +6124,7 @@ var Me = "MenuContent", [Sg, Go] = yt(Me), Vi = l.forwardRef(
6124
6124
  onDismiss: () => n.onOpenChange(!1)
6125
6125
  }
6126
6126
  );
6127
- }), Rg = It("MenuContent.ScrollLock"), qo = l.forwardRef(
6127
+ }), Rg = It("MenuContent.ScrollLock"), Ko = l.forwardRef(
6128
6128
  (e, t) => {
6129
6129
  const {
6130
6130
  __scopeMenu: n,
@@ -6148,7 +6148,7 @@ var Me = "MenuContent", [Sg, Go] = yt(Me), Vi = l.forwardRef(
6148
6148
  k.current = oe, window.clearTimeout(M.current), oe !== "" && (M.current = window.setTimeout(() => ie(""), 1e3));
6149
6149
  })(_), se && setTimeout(() => se.focus());
6150
6150
  };
6151
- l.useEffect(() => () => window.clearTimeout(M.current), []), Io();
6151
+ l.useEffect(() => () => window.clearTimeout(M.current), []), Po();
6152
6152
  const T = l.useCallback((P) => {
6153
6153
  var O, Y;
6154
6154
  return W.current === ((O = K.current) == null ? void 0 : O.side) && Bg(P, (Y = K.current) == null ? void 0 : Y.area);
@@ -6216,7 +6216,7 @@ var Me = "MenuContent", [Sg, Go] = yt(Me), Vi = l.forwardRef(
6216
6216
  }),
6217
6217
  preventScrollOnEntryFocus: !0,
6218
6218
  children: /* @__PURE__ */ c(
6219
- Ho,
6219
+ Uo,
6220
6220
  {
6221
6221
  role: "menu",
6222
6222
  "aria-orientation": "vertical",
@@ -6262,13 +6262,13 @@ var Me = "MenuContent", [Sg, Go] = yt(Me), Vi = l.forwardRef(
6262
6262
  }
6263
6263
  );
6264
6264
  Vi.displayName = Me;
6265
- var Ng = "MenuGroup", Yo = l.forwardRef(
6265
+ var Ng = "MenuGroup", Go = l.forwardRef(
6266
6266
  (e, t) => {
6267
6267
  const { __scopeMenu: n, ...r } = e;
6268
6268
  return /* @__PURE__ */ c(J.div, { role: "group", ...r, ref: t });
6269
6269
  }
6270
6270
  );
6271
- Yo.displayName = Ng;
6271
+ Go.displayName = Ng;
6272
6272
  var Tg = "MenuLabel", ji = l.forwardRef(
6273
6273
  (e, t) => {
6274
6274
  const { __scopeMenu: n, ...r } = e;
@@ -6276,13 +6276,13 @@ var Tg = "MenuLabel", ji = l.forwardRef(
6276
6276
  }
6277
6277
  );
6278
6278
  ji.displayName = Tg;
6279
- var jn = "MenuItem", aa = "menu.itemSelect", hr = l.forwardRef(
6279
+ var jn = "MenuItem", sa = "menu.itemSelect", hr = l.forwardRef(
6280
6280
  (e, t) => {
6281
- const { disabled: n = !1, onSelect: r, ...o } = e, s = l.useRef(null), a = gn(jn, e.__scopeMenu), i = Go(jn, e.__scopeMenu), u = te(t, s), f = l.useRef(!1), d = () => {
6281
+ const { disabled: n = !1, onSelect: r, ...o } = e, s = l.useRef(null), a = gn(jn, e.__scopeMenu), i = jo(jn, e.__scopeMenu), u = te(t, s), f = l.useRef(!1), d = () => {
6282
6282
  const p = s.current;
6283
6283
  if (!n && p) {
6284
- const m = new CustomEvent(aa, { bubbles: !0, cancelable: !0 });
6285
- p.addEventListener(aa, (v) => r == null ? void 0 : r(v), { once: !0 }), Ya(p, m), m.defaultPrevented ? f.current = !1 : a.onClose();
6284
+ const m = new CustomEvent(sa, { bubbles: !0, cancelable: !0 });
6285
+ p.addEventListener(sa, (v) => r == null ? void 0 : r(v), { once: !0 }), Ya(p, m), m.defaultPrevented ? f.current = !1 : a.onClose();
6286
6286
  }
6287
6287
  };
6288
6288
  return /* @__PURE__ */ c(
@@ -6302,7 +6302,7 @@ var jn = "MenuItem", aa = "menu.itemSelect", hr = l.forwardRef(
6302
6302
  }),
6303
6303
  onKeyDown: U(e.onKeyDown, (p) => {
6304
6304
  const m = i.searchRef.current !== "";
6305
- n || m && p.key === " " || io.includes(p.key) && (p.currentTarget.click(), p.preventDefault());
6305
+ n || m && p.key === " " || ao.includes(p.key) && (p.currentTarget.click(), p.preventDefault());
6306
6306
  })
6307
6307
  }
6308
6308
  );
@@ -6311,7 +6311,7 @@ var jn = "MenuItem", aa = "menu.itemSelect", hr = l.forwardRef(
6311
6311
  hr.displayName = jn;
6312
6312
  var Ki = l.forwardRef(
6313
6313
  (e, t) => {
6314
- const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, a = Go(jn, n), i = Ui(n), u = l.useRef(null), f = te(t, u), [d, p] = l.useState(!1), [m, v] = l.useState("");
6314
+ const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, a = jo(jn, n), i = Ui(n), u = l.useRef(null), f = te(t, u), [d, p] = l.useState(!1), [m, v] = l.useState("");
6315
6315
  return l.useEffect(() => {
6316
6316
  const h = u.current;
6317
6317
  h && v((h.textContent ?? "").trim());
@@ -6357,7 +6357,7 @@ var Ki = l.forwardRef(
6357
6357
  "aria-checked": Kn(n) ? "mixed" : n,
6358
6358
  ...o,
6359
6359
  ref: t,
6360
- "data-state": Jo(n),
6360
+ "data-state": Yo(n),
6361
6361
  onSelect: U(
6362
6362
  o.onSelect,
6363
6363
  () => r == null ? void 0 : r(Kn(n) ? !0 : !n),
@@ -6375,7 +6375,7 @@ var qi = "MenuRadioGroup", [Pg, _g] = yt(
6375
6375
  ), Yi = l.forwardRef(
6376
6376
  (e, t) => {
6377
6377
  const { value: n, onValueChange: r, ...o } = e, s = we(r);
6378
- return /* @__PURE__ */ c(Pg, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ c(Yo, { ...o, ref: t }) });
6378
+ return /* @__PURE__ */ c(Pg, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ c(Go, { ...o, ref: t }) });
6379
6379
  }
6380
6380
  );
6381
6381
  Yi.displayName = qi;
@@ -6389,7 +6389,7 @@ var Xi = "MenuRadioItem", Ji = l.forwardRef(
6389
6389
  "aria-checked": s,
6390
6390
  ...r,
6391
6391
  ref: t,
6392
- "data-state": Jo(s),
6392
+ "data-state": Yo(s),
6393
6393
  onSelect: U(
6394
6394
  r.onSelect,
6395
6395
  () => {
@@ -6403,12 +6403,12 @@ var Xi = "MenuRadioItem", Ji = l.forwardRef(
6403
6403
  }
6404
6404
  );
6405
6405
  Ji.displayName = Xi;
6406
- var Xo = "MenuItemIndicator", [Zi, Ig] = yt(
6407
- Xo,
6406
+ var qo = "MenuItemIndicator", [Zi, Ig] = yt(
6407
+ qo,
6408
6408
  { checked: !1 }
6409
6409
  ), Qi = l.forwardRef(
6410
6410
  (e, t) => {
6411
- const { __scopeMenu: n, forceMount: r, ...o } = e, s = Ig(Xo, n);
6411
+ const { __scopeMenu: n, forceMount: r, ...o } = e, s = Ig(qo, n);
6412
6412
  return /* @__PURE__ */ c(
6413
6413
  Pe,
6414
6414
  {
@@ -6418,14 +6418,14 @@ var Xo = "MenuItemIndicator", [Zi, Ig] = yt(
6418
6418
  {
6419
6419
  ...o,
6420
6420
  ref: t,
6421
- "data-state": Jo(s.checked)
6421
+ "data-state": Yo(s.checked)
6422
6422
  }
6423
6423
  )
6424
6424
  }
6425
6425
  );
6426
6426
  }
6427
6427
  );
6428
- Qi.displayName = Xo;
6428
+ Qi.displayName = qo;
6429
6429
  var Og = "MenuSeparator", ec = l.forwardRef(
6430
6430
  (e, t) => {
6431
6431
  const { __scopeMenu: n, ...r } = e;
@@ -6444,13 +6444,13 @@ ec.displayName = Og;
6444
6444
  var Mg = "MenuArrow", tc = l.forwardRef(
6445
6445
  (e, t) => {
6446
6446
  const { __scopeMenu: n, ...r } = e, o = pr(n);
6447
- return /* @__PURE__ */ c(Wo, { ...o, ...r, ref: t });
6447
+ return /* @__PURE__ */ c(zo, { ...o, ...r, ref: t });
6448
6448
  }
6449
6449
  );
6450
6450
  tc.displayName = Mg;
6451
6451
  var kg = "MenuSub", [Ry, nc] = yt(kg), qt = "MenuSubTrigger", rc = l.forwardRef(
6452
6452
  (e, t) => {
6453
- const n = xt(qt, e.__scopeMenu), r = gn(qt, e.__scopeMenu), o = nc(qt, e.__scopeMenu), s = Go(qt, e.__scopeMenu), a = l.useRef(null), { pointerGraceTimerRef: i, onPointerGraceIntentChange: u } = s, f = { __scopeMenu: e.__scopeMenu }, d = l.useCallback(() => {
6453
+ const n = xt(qt, e.__scopeMenu), r = gn(qt, e.__scopeMenu), o = nc(qt, e.__scopeMenu), s = jo(qt, e.__scopeMenu), a = l.useRef(null), { pointerGraceTimerRef: i, onPointerGraceIntentChange: u } = s, f = { __scopeMenu: e.__scopeMenu }, d = l.useCallback(() => {
6454
6454
  a.current && window.clearTimeout(a.current), a.current = null;
6455
6455
  }, []);
6456
6456
  return l.useEffect(() => d, [d]), l.useEffect(() => {
@@ -6458,7 +6458,7 @@ var kg = "MenuSub", [Ry, nc] = yt(kg), qt = "MenuSubTrigger", rc = l.forwardRef(
6458
6458
  return () => {
6459
6459
  window.clearTimeout(p), u(null);
6460
6460
  };
6461
- }, [i, u]), /* @__PURE__ */ c(jo, { asChild: !0, ...f, children: /* @__PURE__ */ c(
6461
+ }, [i, u]), /* @__PURE__ */ c(Wo, { asChild: !0, ...f, children: /* @__PURE__ */ c(
6462
6462
  Ki,
6463
6463
  {
6464
6464
  id: o.triggerId,
@@ -6467,7 +6467,7 @@ var kg = "MenuSub", [Ry, nc] = yt(kg), qt = "MenuSubTrigger", rc = l.forwardRef(
6467
6467
  "aria-controls": o.contentId,
6468
6468
  "data-state": ac(n.open),
6469
6469
  ...e,
6470
- ref: No(t, o.onTriggerChange),
6470
+ ref: Eo(t, o.onTriggerChange),
6471
6471
  onClick: (p) => {
6472
6472
  var m;
6473
6473
  (m = e.onClick) == null || m.call(e, p), !(e.disabled || p.defaultPrevented) && (p.currentTarget.focus(), n.open || n.onOpenChange(!0));
@@ -6523,7 +6523,7 @@ var oc = "MenuSubContent", sc = l.forwardRef(
6523
6523
  (e, t) => {
6524
6524
  const n = Hi(Me, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = xt(Me, e.__scopeMenu), a = gn(Me, e.__scopeMenu), i = nc(oc, e.__scopeMenu), u = l.useRef(null), f = te(t, u);
6525
6525
  return /* @__PURE__ */ c(nn.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ c(Pe, { present: r || s.open, children: /* @__PURE__ */ c(nn.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ c(
6526
- qo,
6526
+ Ko,
6527
6527
  {
6528
6528
  id: i.contentId,
6529
6529
  "aria-labelledby": i.triggerId,
@@ -6561,7 +6561,7 @@ function ac(e) {
6561
6561
  function Kn(e) {
6562
6562
  return e === "indeterminate";
6563
6563
  }
6564
- function Jo(e) {
6564
+ function Yo(e) {
6565
6565
  return Kn(e) ? "indeterminate" : e ? "checked" : "unchecked";
6566
6566
  }
6567
6567
  function Dg(e) {
@@ -6598,7 +6598,7 @@ function Bg(e, t) {
6598
6598
  function rn(e) {
6599
6599
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
6600
6600
  }
6601
- var Ug = zi, zg = jo, Hg = Wi, Wg = Vi, Vg = Yo, jg = ji, Kg = hr, Gg = Gi, qg = Yi, Yg = Ji, Xg = Qi, Jg = ec, Zg = tc, Qg = rc, eb = sc, mr = "DropdownMenu", [tb, Ny] = He(
6601
+ var Ug = zi, zg = Wo, Hg = Wi, Wg = Vi, Vg = Go, jg = ji, Kg = hr, Gg = Gi, qg = Yi, Yg = Ji, Xg = Qi, Jg = ec, Zg = tc, Qg = rc, eb = sc, mr = "DropdownMenu", [tb, Ny] = He(
6602
6602
  mr,
6603
6603
  [Bi]
6604
6604
  ), Ce = Bi(), [nb, ic] = tb(mr), cc = (e) => {
@@ -6647,7 +6647,7 @@ var lc = "DropdownMenuTrigger", uc = l.forwardRef(
6647
6647
  "data-disabled": r ? "" : void 0,
6648
6648
  disabled: r,
6649
6649
  ...o,
6650
- ref: No(t, s.triggerRef),
6650
+ ref: Eo(t, s.triggerRef),
6651
6651
  onPointerDown: U(e.onPointerDown, (i) => {
6652
6652
  !r && i.button === 0 && i.ctrlKey === !1 && (s.onOpenToggle(), s.open || i.preventDefault());
6653
6653
  }),
@@ -6787,7 +6787,7 @@ const xb = vb, Sb = wb, Cb = l.forwardRef(({ className: e, inset: t, children: n
6787
6787
  ...r,
6788
6788
  children: [
6789
6789
  n,
6790
- /* @__PURE__ */ c(ba, { className: "ml-auto h-4 w-4" })
6790
+ /* @__PURE__ */ c(ga, { className: "ml-auto h-4 w-4" })
6791
6791
  ]
6792
6792
  }
6793
6793
  ));
@@ -6841,7 +6841,7 @@ const Rb = l.forwardRef(({ className: e, children: t, checked: n, ...r }, o) =>
6841
6841
  checked: n,
6842
6842
  ...r,
6843
6843
  children: [
6844
- /* @__PURE__ */ c("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ c(Tc, { children: /* @__PURE__ */ c(yo, { className: "h-4 w-4" }) }) }),
6844
+ /* @__PURE__ */ c("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ c(Tc, { children: /* @__PURE__ */ c(wo, { className: "h-4 w-4" }) }) }),
6845
6845
  t
6846
6846
  ]
6847
6847
  }
@@ -7041,7 +7041,7 @@ function On({
7041
7041
  )
7042
7042
  ] }),
7043
7043
  d && q.length > 0 && /* @__PURE__ */ N("div", { className: "flex items-center gap-2 px-4 py-2 border-b bg-background/50 text-xs", children: [
7044
- /* @__PURE__ */ c(ga, { className: "h-4 w-4 opacity-70" }),
7044
+ /* @__PURE__ */ c(ma, { className: "h-4 w-4 opacity-70" }),
7045
7045
  /* @__PURE__ */ c("span", { className: "opacity-70", children: "Checkpoint:" }),
7046
7046
  /* @__PURE__ */ N(
7047
7047
  "select",
@@ -7105,7 +7105,7 @@ function On({
7105
7105
  /* @__PURE__ */ N("div", { className: Ee, children: [
7106
7106
  R && /* @__PURE__ */ c("div", { className: "mb-3 p-3 bg-blue-50 border border-blue-200 rounded-lg", children: /* @__PURE__ */ N("div", { className: "flex items-center justify-between", children: [
7107
7107
  /* @__PURE__ */ N("div", { className: "flex items-center gap-2", children: [
7108
- /* @__PURE__ */ c(va, { size: 16, className: "text-blue-600" }),
7108
+ /* @__PURE__ */ c(ba, { size: 16, className: "text-blue-600" }),
7109
7109
  /* @__PURE__ */ c("span", { className: "text-sm font-medium text-blue-800", children: "Editing message" })
7110
7110
  ] }),
7111
7111
  /* @__PURE__ */ c(
@@ -7131,7 +7131,7 @@ function On({
7131
7131
  }
7132
7132
  ),
7133
7133
  j.length > 0 && /* @__PURE__ */ c("div", { className: "mb-3 flex flex-wrap gap-2", children: j.map((F, Q) => /* @__PURE__ */ N("div", { className: "flex items-center gap-2 bg-gray-100 rounded-lg px-3 py-2 text-sm", children: [
7134
- /* @__PURE__ */ c(fs, { size: 14 }),
7134
+ /* @__PURE__ */ c(us, { size: 14 }),
7135
7135
  /* @__PURE__ */ c("span", { className: "truncate max-w-[150px]", children: F.name }),
7136
7136
  /* @__PURE__ */ c(
7137
7137
  fe,
@@ -7158,14 +7158,14 @@ function On({
7158
7158
  disabled: m,
7159
7159
  title: "More input actions",
7160
7160
  className: i.moreButton || "",
7161
- children: /* @__PURE__ */ c(wa, { size: 16 })
7161
+ children: /* @__PURE__ */ c(va, { size: 16 })
7162
7162
  }
7163
7163
  ) }),
7164
7164
  /* @__PURE__ */ c(Ic, { align: "start", sideOffset: 6, className: "w-52", children: /* @__PURE__ */ N(Oc, { onClick: () => {
7165
7165
  var F;
7166
7166
  return (F = O.current) == null ? void 0 : F.click();
7167
7167
  }, className: "cursor-pointer", children: [
7168
- /* @__PURE__ */ c(fs, { className: "h-4 w-4 mr-2" }),
7168
+ /* @__PURE__ */ c(us, { className: "h-4 w-4 mr-2" }),
7169
7169
  " Attach files or images"
7170
7170
  ] }) })
7171
7171
  ] }),
@@ -7232,13 +7232,13 @@ const on = l.forwardRef(
7232
7232
  )
7233
7233
  );
7234
7234
  on.displayName = "Input";
7235
- function co(e, [t, n]) {
7235
+ function io(e, [t, n]) {
7236
7236
  return Math.min(n, Math.max(t, e));
7237
7237
  }
7238
7238
  function Pb(e, t) {
7239
7239
  return l.useReducer((n, r) => t[n][r] ?? n, e);
7240
7240
  }
7241
- var Zo = "ScrollArea", [Mc, Ty] = He(Zo), [_b, De] = Mc(Zo), kc = l.forwardRef(
7241
+ var Xo = "ScrollArea", [Mc, Ty] = He(Xo), [_b, De] = Mc(Xo), kc = l.forwardRef(
7242
7242
  (e, t) => {
7243
7243
  const {
7244
7244
  __scopeScrollArea: n,
@@ -7288,7 +7288,7 @@ var Zo = "ScrollArea", [Mc, Ty] = He(Zo), [_b, De] = Mc(Zo), kc = l.forwardRef(
7288
7288
  );
7289
7289
  }
7290
7290
  );
7291
- kc.displayName = Zo;
7291
+ kc.displayName = Xo;
7292
7292
  var Dc = "ScrollAreaViewport", Lc = l.forwardRef(
7293
7293
  (e, t) => {
7294
7294
  const { __scopeScrollArea: n, children: r, nonce: o, ...s } = e, a = De(Dc, n), i = l.useRef(null), u = te(t, i, a.onViewportChange);
@@ -7331,15 +7331,15 @@ var Dc = "ScrollAreaViewport", Lc = l.forwardRef(
7331
7331
  }
7332
7332
  );
7333
7333
  Lc.displayName = Dc;
7334
- var Xe = "ScrollAreaScrollbar", Qo = l.forwardRef(
7334
+ var Xe = "ScrollAreaScrollbar", Jo = l.forwardRef(
7335
7335
  (e, t) => {
7336
7336
  const { forceMount: n, ...r } = e, o = De(Xe, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: a } = o, i = e.orientation === "horizontal";
7337
7337
  return l.useEffect(() => (i ? s(!0) : a(!0), () => {
7338
7338
  i ? s(!1) : a(!1);
7339
- }), [i, s, a]), o.type === "hover" ? /* @__PURE__ */ c(Ib, { ...r, ref: t, forceMount: n }) : o.type === "scroll" ? /* @__PURE__ */ c(Ob, { ...r, ref: t, forceMount: n }) : o.type === "auto" ? /* @__PURE__ */ c(Fc, { ...r, ref: t, forceMount: n }) : o.type === "always" ? /* @__PURE__ */ c(es, { ...r, ref: t }) : null;
7339
+ }), [i, s, a]), o.type === "hover" ? /* @__PURE__ */ c(Ib, { ...r, ref: t, forceMount: n }) : o.type === "scroll" ? /* @__PURE__ */ c(Ob, { ...r, ref: t, forceMount: n }) : o.type === "auto" ? /* @__PURE__ */ c(Fc, { ...r, ref: t, forceMount: n }) : o.type === "always" ? /* @__PURE__ */ c(Zo, { ...r, ref: t }) : null;
7340
7340
  }
7341
7341
  );
7342
- Qo.displayName = Xe;
7342
+ Jo.displayName = Xe;
7343
7343
  var Ib = l.forwardRef((e, t) => {
7344
7344
  const { forceMount: n, ...r } = e, o = De(Xe, e.__scopeScrollArea), [s, a] = l.useState(!1);
7345
7345
  return l.useEffect(() => {
@@ -7398,7 +7398,7 @@ var Ib = l.forwardRef((e, t) => {
7398
7398
  return f.addEventListener("scroll", m), () => f.removeEventListener("scroll", m);
7399
7399
  }
7400
7400
  }, [o.viewport, s, u, a]), /* @__PURE__ */ c(Pe, { present: n || i !== "hidden", children: /* @__PURE__ */ c(
7401
- es,
7401
+ Zo,
7402
7402
  {
7403
7403
  "data-state": i === "hidden" ? "hidden" : "visible",
7404
7404
  ...r,
@@ -7415,14 +7415,14 @@ var Ib = l.forwardRef((e, t) => {
7415
7415
  }
7416
7416
  }, 10);
7417
7417
  return kt(n.viewport, u), kt(n.content, u), /* @__PURE__ */ c(Pe, { present: r || s, children: /* @__PURE__ */ c(
7418
- es,
7418
+ Zo,
7419
7419
  {
7420
7420
  "data-state": s ? "visible" : "hidden",
7421
7421
  ...o,
7422
7422
  ref: t
7423
7423
  }
7424
7424
  ) });
7425
- }), es = l.forwardRef((e, t) => {
7425
+ }), Zo = l.forwardRef((e, t) => {
7426
7426
  const { orientation: n = "vertical", ...r } = e, o = De(Xe, e.__scopeScrollArea), s = l.useRef(null), a = l.useRef(0), [i, u] = l.useState({
7427
7427
  content: 0,
7428
7428
  viewport: 0,
@@ -7446,7 +7446,7 @@ var Ib = l.forwardRef((e, t) => {
7446
7446
  ref: t,
7447
7447
  onThumbPositionChange: () => {
7448
7448
  if (o.viewport && s.current) {
7449
- const m = o.viewport.scrollLeft, v = ia(m, i, o.dir);
7449
+ const m = o.viewport.scrollLeft, v = aa(m, i, o.dir);
7450
7450
  s.current.style.transform = `translate3d(${v}px, 0, 0)`;
7451
7451
  }
7452
7452
  },
@@ -7464,7 +7464,7 @@ var Ib = l.forwardRef((e, t) => {
7464
7464
  ref: t,
7465
7465
  onThumbPositionChange: () => {
7466
7466
  if (o.viewport && s.current) {
7467
- const m = o.viewport.scrollTop, v = ia(m, i);
7467
+ const m = o.viewport.scrollTop, v = aa(m, i);
7468
7468
  s.current.style.transform = `translate3d(0, ${v}px, 0)`;
7469
7469
  }
7470
7470
  },
@@ -7654,15 +7654,15 @@ var Ib = l.forwardRef((e, t) => {
7654
7654
  }
7655
7655
  );
7656
7656
  Uc.displayName = Gn;
7657
- var ts = "ScrollAreaCorner", zc = l.forwardRef(
7657
+ var Qo = "ScrollAreaCorner", zc = l.forwardRef(
7658
7658
  (e, t) => {
7659
- const n = De(ts, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY);
7659
+ const n = De(Qo, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY);
7660
7660
  return n.type !== "scroll" && r ? /* @__PURE__ */ c(Fb, { ...e, ref: t }) : null;
7661
7661
  }
7662
7662
  );
7663
- zc.displayName = ts;
7663
+ zc.displayName = Qo;
7664
7664
  var Fb = l.forwardRef((e, t) => {
7665
- const { __scopeScrollArea: n, ...r } = e, o = De(ts, n), [s, a] = l.useState(0), [i, u] = l.useState(0), f = !!(s && i);
7665
+ const { __scopeScrollArea: n, ...r } = e, o = De(Qo, n), [s, a] = l.useState(0), [i, u] = l.useState(0), f = !!(s && i);
7666
7666
  return kt(o.scrollbarX, () => {
7667
7667
  var p;
7668
7668
  const d = ((p = o.scrollbarX) == null ? void 0 : p.offsetHeight) || 0;
@@ -7703,8 +7703,8 @@ function $b(e, t, n, r = "ltr") {
7703
7703
  const o = gr(n), s = o / 2, a = t || s, i = o - a, u = n.scrollbar.paddingStart + a, f = n.scrollbar.size - n.scrollbar.paddingEnd - i, d = n.content - n.viewport, p = r === "ltr" ? [0, d] : [d * -1, 0];
7704
7704
  return Wc([u, f], p)(e);
7705
7705
  }
7706
- function ia(e, t, n = "ltr") {
7707
- const r = gr(t), o = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - o, a = t.content - t.viewport, i = s - r, u = n === "ltr" ? [0, a] : [a * -1, 0], f = co(e, u);
7706
+ function aa(e, t, n = "ltr") {
7707
+ const r = gr(t), o = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - o, a = t.content - t.viewport, i = s - r, u = n === "ltr" ? [0, a] : [a * -1, 0], f = io(e, u);
7708
7708
  return Wc([0, a], [0, i])(f);
7709
7709
  }
7710
7710
  function Wc(e, t) {
@@ -7761,7 +7761,7 @@ const Kc = l.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
7761
7761
  ));
7762
7762
  Kc.displayName = jc.displayName;
7763
7763
  const Gc = l.forwardRef(({ className: e, orientation: t = "vertical", ...n }, r) => /* @__PURE__ */ c(
7764
- Qo,
7764
+ Jo,
7765
7765
  {
7766
7766
  ref: r,
7767
7767
  orientation: t,
@@ -7775,8 +7775,8 @@ const Gc = l.forwardRef(({ className: e, orientation: t = "vertical", ...n }, r)
7775
7775
  children: /* @__PURE__ */ c(Uc, { className: "relative flex-1 rounded-full bg-border" })
7776
7776
  }
7777
7777
  ));
7778
- Gc.displayName = Qo.displayName;
7779
- function lo({
7778
+ Gc.displayName = Jo.displayName;
7779
+ function co({
7780
7780
  className: e = "",
7781
7781
  showCreateButton: t = !0,
7782
7782
  showDeleteButton: n = !0,
@@ -7848,7 +7848,7 @@ function lo({
7848
7848
  }, Y = ($) => $.title || `Thread ${$.threadId.slice(0, 8)}`;
7849
7849
  return /* @__PURE__ */ N("div", { className: `flex flex-col h-full ${e} ${s.container || ""}`, children: [
7850
7850
  t && /* @__PURE__ */ c("div", { className: s.header || "flex-shrink-0 p-4 border-b bg-slate-800 border-slate-700 text-slate-100", children: /* @__PURE__ */ N(fe, { onClick: q, disabled: K || E, className: s.createButton || "w-full !bg-slate-700 hover:!bg-slate-600 !text-slate-100 !border-slate-600", size: "sm", children: [
7851
- /* @__PURE__ */ c(wa, { size: 16, className: "mr-2" }),
7851
+ /* @__PURE__ */ c(va, { size: 16, className: "mr-2" }),
7852
7852
  K ? "Creating..." : "New Conversation"
7853
7853
  ] }) }),
7854
7854
  /* @__PURE__ */ c(Kc, { className: `flex-1 ${s.threadList || ""}`, style: { maxHeight: o }, children: /* @__PURE__ */ c("div", { className: "p-2 space-y-1 pb-4", children: E ? /* @__PURE__ */ c("div", { className: "text-center py-8 text-slate-400", children: "Loading…" }) : y.length === 0 ? /* @__PURE__ */ N("div", { className: "text-center py-8 text-slate-400", children: [
@@ -7863,7 +7863,7 @@ function lo({
7863
7863
  /* @__PURE__ */ N("div", { className: "flex items-center justify-between", children: [
7864
7864
  /* @__PURE__ */ c("div", { className: "flex-1 min-w-0", children: D === $.threadId ? /* @__PURE__ */ N("div", { className: "flex items-center gap-2", onClick: (z) => z.stopPropagation(), children: [
7865
7865
  /* @__PURE__ */ c(on, { value: k, onChange: (z) => j(z.target.value), onKeyDown: (z) => _(z, $.threadId), className: "h-6 text-sm", autoFocus: !0 }),
7866
- /* @__PURE__ */ c(fe, { variant: "ghost", size: "sm", onClick: () => T($.threadId), className: "h-6 w-6 p-0", children: /* @__PURE__ */ c(yo, { size: 12 }) }),
7866
+ /* @__PURE__ */ c(fe, { variant: "ghost", size: "sm", onClick: () => T($.threadId), className: "h-6 w-6 p-0", children: /* @__PURE__ */ c(wo, { size: 12 }) }),
7867
7867
  /* @__PURE__ */ c(fe, { variant: "ghost", size: "sm", onClick: P, className: "h-6 w-6 p-0", children: /* @__PURE__ */ c(Xt, { size: 12 }) })
7868
7868
  ] }) : /* @__PURE__ */ N(Fe, { children: [
7869
7869
  /* @__PURE__ */ c("div", { className: "font-medium text-sm truncate text-slate-100", children: Y($) }),
@@ -7873,7 +7873,7 @@ function lo({
7873
7873
  ] })
7874
7874
  ] }) }),
7875
7875
  /* @__PURE__ */ N("div", { className: "flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity ml-2", children: [
7876
- r && D !== $.threadId && /* @__PURE__ */ c(fe, { variant: "ghost", size: "sm", onClick: (z) => G($, z), className: "h-6 w-6 p-0", title: "Edit title", children: /* @__PURE__ */ c(va, { size: 12 }) }),
7876
+ r && D !== $.threadId && /* @__PURE__ */ c(fe, { variant: "ghost", size: "sm", onClick: (z) => G($, z), className: "h-6 w-6 p-0", title: "Edit title", children: /* @__PURE__ */ c(ba, { size: 12 }) }),
7877
7877
  n && /* @__PURE__ */ c(
7878
7878
  fe,
7879
7879
  {
@@ -7894,7 +7894,7 @@ function lo({
7894
7894
  )) }) })
7895
7895
  ] });
7896
7896
  }
7897
- const qc = ha(null);
7897
+ const qc = pa(null);
7898
7898
  function Ay({ children: e, basePath: t = "/chat" }) {
7899
7899
  const n = nt(() => t ? t === "/" ? "" : t.endsWith("/") ? t.slice(0, -1) : t : "/chat", [t]), r = {
7900
7900
  basePath: n,
@@ -7904,17 +7904,17 @@ function Ay({ children: e, basePath: t = "/chat" }) {
7904
7904
  return /* @__PURE__ */ c(qc.Provider, { value: r, children: e });
7905
7905
  }
7906
7906
  function Py() {
7907
- const e = ma(qc);
7907
+ const e = ha(qc);
7908
7908
  return e || {
7909
7909
  basePath: "/chat",
7910
7910
  buildThreadPath: (t) => `/chat/${t}`,
7911
7911
  buildBasePath: () => "/chat"
7912
7912
  };
7913
7913
  }
7914
- const ca = { BASE_URL: "/", DEV: !1, MODE: "library", PROD: !0, SSR: !1 };
7914
+ const ia = { BASE_URL: "/", DEV: !1, MODE: "library", PROD: !0, SSR: !1 };
7915
7915
  function Zt(e) {
7916
7916
  var o;
7917
- const t = typeof import.meta < "u" && ca ? ca[e] : void 0, n = (o = globalThis == null ? void 0 : globalThis.process) == null ? void 0 : o.env, r = n ? n[e] : void 0;
7917
+ const t = typeof import.meta < "u" && ia ? ia[e] : void 0, n = (o = globalThis == null ? void 0 : globalThis.process) == null ? void 0 : o.env, r = n ? n[e] : void 0;
7918
7918
  return (t ?? r) || void 0;
7919
7919
  }
7920
7920
  function Hb() {
@@ -7975,18 +7975,18 @@ function _y() {
7975
7975
  function Iy(e) {
7976
7976
  e.apiKey && mt.setAuthToken(e.apiKey), Gb(e);
7977
7977
  }
7978
- const Wr = 768;
7978
+ const Hr = 768;
7979
7979
  function qb() {
7980
7980
  const [e, t] = l.useState(void 0);
7981
7981
  return l.useEffect(() => {
7982
- const n = window.matchMedia(`(max-width: ${Wr - 1}px)`), r = () => {
7983
- t(window.innerWidth < Wr);
7982
+ const n = window.matchMedia(`(max-width: ${Hr - 1}px)`), r = () => {
7983
+ t(window.innerWidth < Hr);
7984
7984
  };
7985
- return n.addEventListener("change", r), t(window.innerWidth < Wr), () => n.removeEventListener("change", r);
7985
+ return n.addEventListener("change", r), t(window.innerWidth < Hr), () => n.removeEventListener("change", r);
7986
7986
  }, []), !!e;
7987
7987
  }
7988
- var Yb = "Separator", la = "horizontal", Xb = ["horizontal", "vertical"], Xc = l.forwardRef((e, t) => {
7989
- const { decorative: n, orientation: r = la, ...o } = e, s = Jb(r) ? r : la, i = n ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
7988
+ var Yb = "Separator", ca = "horizontal", Xb = ["horizontal", "vertical"], Xc = l.forwardRef((e, t) => {
7989
+ const { decorative: n, orientation: r = ca, ...o } = e, s = Jb(r) ? r : ca, i = n ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
7990
7990
  return /* @__PURE__ */ c(
7991
7991
  J.div,
7992
7992
  {
@@ -8002,7 +8002,7 @@ function Jb(e) {
8002
8002
  return Xb.includes(e);
8003
8003
  }
8004
8004
  var Jc = Xc;
8005
- const ns = l.forwardRef(
8005
+ const es = l.forwardRef(
8006
8006
  ({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }, o) => /* @__PURE__ */ c(
8007
8007
  Jc,
8008
8008
  {
@@ -8018,7 +8018,7 @@ const ns = l.forwardRef(
8018
8018
  }
8019
8019
  )
8020
8020
  );
8021
- ns.displayName = Jc.displayName;
8021
+ es.displayName = Jc.displayName;
8022
8022
  var vr = "Dialog", [Zc, Oy] = He(vr), [Zb, We] = Zc(vr), Qc = (e) => {
8023
8023
  const {
8024
8024
  __scopeDialog: t,
@@ -8061,7 +8061,7 @@ var el = "DialogTrigger", tl = l.forwardRef(
8061
8061
  "aria-haspopup": "dialog",
8062
8062
  "aria-expanded": o.open,
8063
8063
  "aria-controls": o.contentId,
8064
- "data-state": ss(o.open),
8064
+ "data-state": rs(o.open),
8065
8065
  ...r,
8066
8066
  ref: s,
8067
8067
  onClick: U(e.onClick, o.onOpenToggle)
@@ -8070,13 +8070,13 @@ var el = "DialogTrigger", tl = l.forwardRef(
8070
8070
  }
8071
8071
  );
8072
8072
  tl.displayName = el;
8073
- var rs = "DialogPortal", [Qb, nl] = Zc(rs, {
8073
+ var ts = "DialogPortal", [Qb, nl] = Zc(ts, {
8074
8074
  forceMount: void 0
8075
8075
  }), rl = (e) => {
8076
- const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = We(rs, t);
8076
+ const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = We(ts, t);
8077
8077
  return /* @__PURE__ */ c(Qb, { scope: t, forceMount: n, children: l.Children.map(r, (a) => /* @__PURE__ */ c(Pe, { present: n || s.open, children: /* @__PURE__ */ c(ur, { asChild: !0, container: o, children: a }) })) });
8078
8078
  };
8079
- rl.displayName = rs;
8079
+ rl.displayName = ts;
8080
8080
  var Yn = "DialogOverlay", ol = l.forwardRef(
8081
8081
  (e, t) => {
8082
8082
  const n = nl(Yn, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = We(Yn, e.__scopeDialog);
@@ -8093,7 +8093,7 @@ var ev = It("DialogOverlay.RemoveScroll"), tv = l.forwardRef(
8093
8093
  /* @__PURE__ */ c(fr, { as: ev, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ c(
8094
8094
  J.div,
8095
8095
  {
8096
- "data-state": ss(o.open),
8096
+ "data-state": rs(o.open),
8097
8097
  ...r,
8098
8098
  ref: t,
8099
8099
  style: { pointerEvents: "auto", ...r.style }
@@ -8113,7 +8113,7 @@ var nv = l.forwardRef(
8113
8113
  const n = We(bt, e.__scopeDialog), r = l.useRef(null), o = te(t, n.contentRef, r);
8114
8114
  return l.useEffect(() => {
8115
8115
  const s = r.current;
8116
- if (s) return Vo(s);
8116
+ if (s) return Ho(s);
8117
8117
  }, []), /* @__PURE__ */ c(
8118
8118
  al,
8119
8119
  {
@@ -8162,7 +8162,7 @@ var nv = l.forwardRef(
8162
8162
  ), al = l.forwardRef(
8163
8163
  (e, t) => {
8164
8164
  const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...a } = e, i = We(bt, n), u = l.useRef(null), f = te(t, u);
8165
- return Io(), /* @__PURE__ */ N(Fe, { children: [
8165
+ return Po(), /* @__PURE__ */ N(Fe, { children: [
8166
8166
  /* @__PURE__ */ c(
8167
8167
  sr,
8168
8168
  {
@@ -8178,7 +8178,7 @@ var nv = l.forwardRef(
8178
8178
  id: i.contentId,
8179
8179
  "aria-describedby": i.descriptionId,
8180
8180
  "aria-labelledby": i.titleId,
8181
- "data-state": ss(i.open),
8181
+ "data-state": rs(i.open),
8182
8182
  ...a,
8183
8183
  ref: f,
8184
8184
  onDismiss: () => i.onOpenChange(!1)
@@ -8192,13 +8192,13 @@ var nv = l.forwardRef(
8192
8192
  ] })
8193
8193
  ] });
8194
8194
  }
8195
- ), os = "DialogTitle", il = l.forwardRef(
8195
+ ), ns = "DialogTitle", il = l.forwardRef(
8196
8196
  (e, t) => {
8197
- const { __scopeDialog: n, ...r } = e, o = We(os, n);
8197
+ const { __scopeDialog: n, ...r } = e, o = We(ns, n);
8198
8198
  return /* @__PURE__ */ c(J.h2, { id: o.titleId, ...r, ref: t });
8199
8199
  }
8200
8200
  );
8201
- il.displayName = os;
8201
+ il.displayName = ns;
8202
8202
  var cl = "DialogDescription", ll = l.forwardRef(
8203
8203
  (e, t) => {
8204
8204
  const { __scopeDialog: n, ...r } = e, o = We(cl, n);
@@ -8221,12 +8221,12 @@ var ul = "DialogClose", dl = l.forwardRef(
8221
8221
  }
8222
8222
  );
8223
8223
  dl.displayName = ul;
8224
- function ss(e) {
8224
+ function rs(e) {
8225
8225
  return e ? "open" : "closed";
8226
8226
  }
8227
8227
  var fl = "DialogTitleWarning", [My, pl] = op(fl, {
8228
8228
  contentName: bt,
8229
- titleName: os,
8229
+ titleName: ns,
8230
8230
  docsSlug: "dialog"
8231
8231
  }), ov = ({ titleId: e }) => {
8232
8232
  const t = pl(fl), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
@@ -8272,7 +8272,7 @@ const pv = an(
8272
8272
  side: "right"
8273
8273
  }
8274
8274
  }
8275
- ), as = l.forwardRef(({ side: e = "right", className: t, children: n, ...r }, o) => /* @__PURE__ */ N(fv, { children: [
8275
+ ), os = l.forwardRef(({ side: e = "right", className: t, children: n, ...r }, o) => /* @__PURE__ */ N(fv, { children: [
8276
8276
  /* @__PURE__ */ c(wl, {}),
8277
8277
  /* @__PURE__ */ N(
8278
8278
  ml,
@@ -8290,7 +8290,7 @@ const pv = an(
8290
8290
  }
8291
8291
  )
8292
8292
  ] }));
8293
- as.displayName = ml.displayName;
8293
+ os.displayName = ml.displayName;
8294
8294
  const yl = ({
8295
8295
  className: e,
8296
8296
  ...t
@@ -8323,7 +8323,7 @@ const Sl = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
8323
8323
  }
8324
8324
  ));
8325
8325
  Sl.displayName = bl.displayName;
8326
- function ua({
8326
+ function la({
8327
8327
  className: e,
8328
8328
  ...t
8329
8329
  }) {
@@ -8360,7 +8360,7 @@ var Cl = Object.freeze({
8360
8360
  El.displayName = hv;
8361
8361
  var mv = El, [wr, ky] = He("Tooltip", [
8362
8362
  zt
8363
- ]), yr = zt(), Rl = "TooltipProvider", gv = 700, uo = "tooltip.open", [bv, is] = wr(Rl), Nl = (e) => {
8363
+ ]), yr = zt(), Rl = "TooltipProvider", gv = 700, lo = "tooltip.open", [bv, ss] = wr(Rl), Nl = (e) => {
8364
8364
  const {
8365
8365
  __scopeTooltip: t,
8366
8366
  delayDuration: n = gv,
@@ -8405,11 +8405,11 @@ var sn = "Tooltip", [vv, xr] = wr(sn), Tl = (e) => {
8405
8405
  onOpenChange: s,
8406
8406
  disableHoverableContent: a,
8407
8407
  delayDuration: i
8408
- } = e, u = is(sn, e.__scopeTooltip), f = yr(t), [d, p] = l.useState(null), m = $e(), v = l.useRef(0), h = a ?? u.disableHoverableContent, g = i ?? u.delayDuration, b = l.useRef(!1), [w, y] = ot({
8408
+ } = e, u = ss(sn, e.__scopeTooltip), f = yr(t), [d, p] = l.useState(null), m = $e(), v = l.useRef(0), h = a ?? u.disableHoverableContent, g = i ?? u.delayDuration, b = l.useRef(!1), [w, y] = ot({
8409
8409
  prop: r,
8410
8410
  defaultProp: o ?? !1,
8411
8411
  onChange: (R) => {
8412
- R ? (u.onOpen(), document.dispatchEvent(new CustomEvent(uo))) : u.onClose(), s == null || s(R);
8412
+ R ? (u.onOpen(), document.dispatchEvent(new CustomEvent(lo))) : u.onClose(), s == null || s(R);
8413
8413
  },
8414
8414
  caller: sn
8415
8415
  }), x = l.useMemo(() => w ? b.current ? "delayed-open" : "instant-open" : "closed", [w]), E = l.useCallback(() => {
@@ -8423,7 +8423,7 @@ var sn = "Tooltip", [vv, xr] = wr(sn), Tl = (e) => {
8423
8423
  }, [g, y]);
8424
8424
  return l.useEffect(() => () => {
8425
8425
  v.current && (window.clearTimeout(v.current), v.current = 0);
8426
- }, []), /* @__PURE__ */ c(Uo, { ...f, children: /* @__PURE__ */ c(
8426
+ }, []), /* @__PURE__ */ c($o, { ...f, children: /* @__PURE__ */ c(
8427
8427
  vv,
8428
8428
  {
8429
8429
  scope: t,
@@ -8446,10 +8446,10 @@ var sn = "Tooltip", [vv, xr] = wr(sn), Tl = (e) => {
8446
8446
  ) });
8447
8447
  };
8448
8448
  Tl.displayName = sn;
8449
- var fo = "TooltipTrigger", Al = l.forwardRef(
8449
+ var uo = "TooltipTrigger", Al = l.forwardRef(
8450
8450
  (e, t) => {
8451
- const { __scopeTooltip: n, ...r } = e, o = xr(fo, n), s = is(fo, n), a = yr(n), i = l.useRef(null), u = te(t, i, o.onTriggerChange), f = l.useRef(!1), d = l.useRef(!1), p = l.useCallback(() => f.current = !1, []);
8452
- return l.useEffect(() => () => document.removeEventListener("pointerup", p), [p]), /* @__PURE__ */ c(zo, { asChild: !0, ...a, children: /* @__PURE__ */ c(
8451
+ const { __scopeTooltip: n, ...r } = e, o = xr(uo, n), s = ss(uo, n), a = yr(n), i = l.useRef(null), u = te(t, i, o.onTriggerChange), f = l.useRef(!1), d = l.useRef(!1), p = l.useCallback(() => f.current = !1, []);
8452
+ return l.useEffect(() => () => document.removeEventListener("pointerup", p), [p]), /* @__PURE__ */ c(Bo, { asChild: !0, ...a, children: /* @__PURE__ */ c(
8453
8453
  J.button,
8454
8454
  {
8455
8455
  "aria-describedby": o.open ? o.contentId : void 0,
@@ -8474,7 +8474,7 @@ var fo = "TooltipTrigger", Al = l.forwardRef(
8474
8474
  ) });
8475
8475
  }
8476
8476
  );
8477
- Al.displayName = fo;
8477
+ Al.displayName = uo;
8478
8478
  var wv = "TooltipPortal", [Dy, yv] = wr(wv, {
8479
8479
  forceMount: void 0
8480
8480
  }), Dt = "TooltipContent", Pl = l.forwardRef(
@@ -8483,7 +8483,7 @@ var wv = "TooltipPortal", [Dy, yv] = wr(wv, {
8483
8483
  return /* @__PURE__ */ c(Pe, { present: r || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ c(_l, { side: o, ...s, ref: t }) : /* @__PURE__ */ c(xv, { side: o, ...s, ref: t }) });
8484
8484
  }
8485
8485
  ), xv = l.forwardRef((e, t) => {
8486
- const n = xr(Dt, e.__scopeTooltip), r = is(Dt, e.__scopeTooltip), o = l.useRef(null), s = te(t, o), [a, i] = l.useState(null), { trigger: u, onClose: f } = n, d = o.current, { onPointerInTransitChange: p } = r, m = l.useCallback(() => {
8486
+ const n = xr(Dt, e.__scopeTooltip), r = ss(Dt, e.__scopeTooltip), o = l.useRef(null), s = te(t, o), [a, i] = l.useState(null), { trigger: u, onClose: f } = n, d = o.current, { onPointerInTransitChange: p } = r, m = l.useCallback(() => {
8487
8487
  i(null), p(!1);
8488
8488
  }, [p]), v = l.useCallback(
8489
8489
  (h, g) => {
@@ -8518,7 +8518,7 @@ var wv = "TooltipPortal", [Dy, yv] = wr(wv, {
8518
8518
  onPointerDownOutside: a,
8519
8519
  ...i
8520
8520
  } = e, u = xr(Dt, n), f = yr(n), { onClose: d } = u;
8521
- return l.useEffect(() => (document.addEventListener(uo, d), () => document.removeEventListener(uo, d)), [d]), l.useEffect(() => {
8521
+ return l.useEffect(() => (document.addEventListener(lo, d), () => document.removeEventListener(lo, d)), [d]), l.useEffect(() => {
8522
8522
  if (u.trigger) {
8523
8523
  const p = (m) => {
8524
8524
  const v = m.target;
@@ -8536,7 +8536,7 @@ var wv = "TooltipPortal", [Dy, yv] = wr(wv, {
8536
8536
  onFocusOutside: (p) => p.preventDefault(),
8537
8537
  onDismiss: d,
8538
8538
  children: /* @__PURE__ */ N(
8539
- Ho,
8539
+ Uo,
8540
8540
  {
8541
8541
  "data-state": u.stateAttribute,
8542
8542
  ...f,
@@ -8567,7 +8567,7 @@ var Il = "TooltipArrow", Rv = l.forwardRef(
8567
8567
  return Cv(
8568
8568
  Il,
8569
8569
  n
8570
- ).isInside ? null : /* @__PURE__ */ c(Wo, { ...o, ...r, ref: t });
8570
+ ).isInside ? null : /* @__PURE__ */ c(zo, { ...o, ...r, ref: t });
8571
8571
  }
8572
8572
  );
8573
8573
  Rv.displayName = Il;
@@ -8761,7 +8761,7 @@ const Ll = l.forwardRef(
8761
8761
  children: o
8762
8762
  }
8763
8763
  ) : i ? /* @__PURE__ */ c(vl, { open: f, onOpenChange: d, ...s, children: /* @__PURE__ */ c(
8764
- as,
8764
+ os,
8765
8765
  {
8766
8766
  "data-sidebar": "sidebar",
8767
8767
  "data-mobile": "true",
@@ -8914,7 +8914,7 @@ const Kv = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
8914
8914
  ));
8915
8915
  Kv.displayName = "SidebarFooter";
8916
8916
  const Gv = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
8917
- ns,
8917
+ es,
8918
8918
  {
8919
8919
  ref: n,
8920
8920
  "data-sidebar": "separator",
@@ -9112,14 +9112,14 @@ const Zv = l.forwardRef(({ className: e, showIcon: t = !1, ...n }, r) => {
9112
9112
  ...n,
9113
9113
  children: [
9114
9114
  t && /* @__PURE__ */ c(
9115
- ua,
9115
+ la,
9116
9116
  {
9117
9117
  className: "size-4 rounded-md",
9118
9118
  "data-sidebar": "menu-skeleton-icon"
9119
9119
  }
9120
9120
  ),
9121
9121
  /* @__PURE__ */ c(
9122
- ua,
9122
+ la,
9123
9123
  {
9124
9124
  className: "h-4 flex-1 max-w-[--skeleton-width]",
9125
9125
  "data-sidebar": "menu-skeleton-text",
@@ -9183,7 +9183,7 @@ function Ly({
9183
9183
  /* @__PURE__ */ c(Ul, { children: n && /* @__PURE__ */ N(zl, { children: [
9184
9184
  /* @__PURE__ */ c(Hl, { children: "Conversations" }),
9185
9185
  /* @__PURE__ */ c(Wl, { children: /* @__PURE__ */ c("div", { className: "px-2 py-1", children: /* @__PURE__ */ c(
9186
- lo,
9186
+ co,
9187
9187
  {
9188
9188
  showCreateButton: !0,
9189
9189
  showDeleteButton: !0,
@@ -9368,7 +9368,7 @@ const tt = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
9368
9368
  }
9369
9369
  ));
9370
9370
  tt.displayName = tu.displayName;
9371
- var lw = [" ", "Enter", "ArrowUp", "ArrowDown"], uw = [" ", "Enter"], vt = "Select", [Er, Rr, dw] = _o(vt), [Ht, $y] = He(vt, [
9371
+ var lw = [" ", "Enter", "ArrowUp", "ArrowDown"], uw = [" ", "Enter"], vt = "Select", [Er, Rr, dw] = Ao(vt), [Ht, $y] = He(vt, [
9372
9372
  dw,
9373
9373
  zt
9374
9374
  ]), Nr = zt(), [fw, it] = Ht(vt), [pw, hw] = Ht(vt), nu = (e) => {
@@ -9398,7 +9398,7 @@ var lw = [" ", "Enter", "ArrowUp", "ArrowDown"], uw = [" ", "Enter"], vt = "Sele
9398
9398
  onChange: u,
9399
9399
  caller: vt
9400
9400
  }), j = l.useRef(null), K = b ? h || !!b.closest("form") : !0, [W, B] = l.useState(/* @__PURE__ */ new Set()), q = Array.from(W).map((L) => L.props.value).join(";");
9401
- return /* @__PURE__ */ c(Uo, { ...g, children: /* @__PURE__ */ N(
9401
+ return /* @__PURE__ */ c($o, { ...g, children: /* @__PURE__ */ N(
9402
9402
  fw,
9403
9403
  {
9404
9404
  required: v,
@@ -9469,7 +9469,7 @@ var ru = "SelectTrigger", ou = l.forwardRef(
9469
9469
  y: Math.round(g.pageY)
9470
9470
  });
9471
9471
  };
9472
- return /* @__PURE__ */ c(zo, { asChild: !0, ...s, children: /* @__PURE__ */ c(
9472
+ return /* @__PURE__ */ c(Bo, { asChild: !0, ...s, children: /* @__PURE__ */ c(
9473
9473
  J.button,
9474
9474
  {
9475
9475
  type: "button",
@@ -9570,8 +9570,8 @@ var Le = 10, [uu, ct] = Ht(wt), bw = "SelectContentImpl", vw = It("SelectContent
9570
9570
  null
9571
9571
  ), K = Rr(n), [W, B] = l.useState(!1), q = l.useRef(!1);
9572
9572
  l.useEffect(() => {
9573
- if (x) return Vo(x);
9574
- }, [x]), Io();
9573
+ if (x) return Ho(x);
9574
+ }, [x]), Po();
9575
9575
  const L = l.useCallback(
9576
9576
  (V) => {
9577
9577
  const [re, ...ie] = K().map((Z) => Z.ref.current), [oe] = ie.slice(-1), H = document.activeElement;
@@ -9624,7 +9624,7 @@ var Le = 10, [uu, ct] = Ht(wt), bw = "SelectContentImpl", vw = It("SelectContent
9624
9624
  (y.value !== void 0 && y.value === re || oe) && j(V);
9625
9625
  },
9626
9626
  [y.value]
9627
- ), le = r === "popper" ? po : fu, se = le === po ? {
9627
+ ), le = r === "popper" ? fo : fu, se = le === fo ? {
9628
9628
  side: i,
9629
9629
  sideOffset: u,
9630
9630
  align: f,
@@ -9720,7 +9720,7 @@ var ww = "SelectItemAlignedPosition", fu = l.forwardRef((e, t) => {
9720
9720
  if (s.trigger && s.valueNode && i && f && g && b && w) {
9721
9721
  const R = s.trigger.getBoundingClientRect(), D = f.getBoundingClientRect(), M = s.valueNode.getBoundingClientRect(), k = w.getBoundingClientRect();
9722
9722
  if (s.dir !== "rtl") {
9723
- const H = k.left - D.left, Z = M.left - H, de = R.left - Z, pe = R.width + de, X = Math.max(pe, D.width), ge = window.innerWidth - Le, ae = co(Z, [
9723
+ const H = k.left - D.left, Z = M.left - H, de = R.left - Z, pe = R.width + de, X = Math.max(pe, D.width), ge = window.innerWidth - Le, ae = io(Z, [
9724
9724
  Le,
9725
9725
  // Prevents the content from going off the starting edge of the
9726
9726
  // viewport. It may still go off the ending edge, but this can be
@@ -9731,7 +9731,7 @@ var ww = "SelectItemAlignedPosition", fu = l.forwardRef((e, t) => {
9731
9731
  ]);
9732
9732
  i.style.minWidth = pe + "px", i.style.left = ae + "px";
9733
9733
  } else {
9734
- const H = D.right - k.right, Z = window.innerWidth - M.right - H, de = window.innerWidth - R.right - Z, pe = R.width + de, X = Math.max(pe, D.width), ge = window.innerWidth - Le, ae = co(Z, [
9734
+ const H = D.right - k.right, Z = window.innerWidth - M.right - H, de = window.innerWidth - R.right - Z, pe = R.width + de, X = Math.max(pe, D.width), ge = window.innerWidth - Le, ae = io(Z, [
9735
9735
  Le,
9736
9736
  Math.max(Le, ge - X)
9737
9737
  ]);
@@ -9820,7 +9820,7 @@ var ww = "SelectItemAlignedPosition", fu = l.forwardRef((e, t) => {
9820
9820
  );
9821
9821
  });
9822
9822
  fu.displayName = ww;
9823
- var yw = "SelectPopperPosition", po = l.forwardRef((e, t) => {
9823
+ var yw = "SelectPopperPosition", fo = l.forwardRef((e, t) => {
9824
9824
  const {
9825
9825
  __scopeSelect: n,
9826
9826
  align: r = "start",
@@ -9828,7 +9828,7 @@ var yw = "SelectPopperPosition", po = l.forwardRef((e, t) => {
9828
9828
  ...s
9829
9829
  } = e, a = Nr(n);
9830
9830
  return /* @__PURE__ */ c(
9831
- Ho,
9831
+ Uo,
9832
9832
  {
9833
9833
  ...a,
9834
9834
  ...s,
@@ -9848,10 +9848,10 @@ var yw = "SelectPopperPosition", po = l.forwardRef((e, t) => {
9848
9848
  }
9849
9849
  );
9850
9850
  });
9851
- po.displayName = yw;
9852
- var [xw, cs] = Ht(wt, {}), ho = "SelectViewport", pu = l.forwardRef(
9851
+ fo.displayName = yw;
9852
+ var [xw, as] = Ht(wt, {}), po = "SelectViewport", pu = l.forwardRef(
9853
9853
  (e, t) => {
9854
- const { __scopeSelect: n, nonce: r, ...o } = e, s = ct(ho, n), a = cs(ho, n), i = te(t, s.onViewportChange), u = l.useRef(0);
9854
+ const { __scopeSelect: n, nonce: r, ...o } = e, s = ct(po, n), a = as(po, n), i = te(t, s.onViewportChange), u = l.useRef(0);
9855
9855
  return /* @__PURE__ */ N(Fe, { children: [
9856
9856
  /* @__PURE__ */ c(
9857
9857
  "style",
@@ -9901,7 +9901,7 @@ var [xw, cs] = Ht(wt, {}), ho = "SelectViewport", pu = l.forwardRef(
9901
9901
  ] });
9902
9902
  }
9903
9903
  );
9904
- pu.displayName = ho;
9904
+ pu.displayName = po;
9905
9905
  var hu = "SelectGroup", [Sw, Cw] = Ht(hu), Ew = l.forwardRef(
9906
9906
  (e, t) => {
9907
9907
  const { __scopeSelect: n, ...r } = e, o = $e();
@@ -10028,8 +10028,8 @@ var yu = "SelectItemIndicator", xu = l.forwardRef(
10028
10028
  }
10029
10029
  );
10030
10030
  xu.displayName = yu;
10031
- var mo = "SelectScrollUpButton", Su = l.forwardRef((e, t) => {
10032
- const n = ct(mo, e.__scopeSelect), r = cs(mo, e.__scopeSelect), [o, s] = l.useState(!1), a = te(t, r.onScrollButtonChange);
10031
+ var ho = "SelectScrollUpButton", Su = l.forwardRef((e, t) => {
10032
+ const n = ct(ho, e.__scopeSelect), r = as(ho, e.__scopeSelect), [o, s] = l.useState(!1), a = te(t, r.onScrollButtonChange);
10033
10033
  return be(() => {
10034
10034
  if (n.viewport && n.isPositioned) {
10035
10035
  let i = function() {
@@ -10051,9 +10051,9 @@ var mo = "SelectScrollUpButton", Su = l.forwardRef((e, t) => {
10051
10051
  }
10052
10052
  ) : null;
10053
10053
  });
10054
- Su.displayName = mo;
10055
- var go = "SelectScrollDownButton", Cu = l.forwardRef((e, t) => {
10056
- const n = ct(go, e.__scopeSelect), r = cs(go, e.__scopeSelect), [o, s] = l.useState(!1), a = te(t, r.onScrollButtonChange);
10054
+ Su.displayName = ho;
10055
+ var mo = "SelectScrollDownButton", Cu = l.forwardRef((e, t) => {
10056
+ const n = ct(mo, e.__scopeSelect), r = as(mo, e.__scopeSelect), [o, s] = l.useState(!1), a = te(t, r.onScrollButtonChange);
10057
10057
  return be(() => {
10058
10058
  if (n.viewport && n.isPositioned) {
10059
10059
  let i = function() {
@@ -10075,7 +10075,7 @@ var go = "SelectScrollDownButton", Cu = l.forwardRef((e, t) => {
10075
10075
  }
10076
10076
  ) : null;
10077
10077
  });
10078
- Cu.displayName = go;
10078
+ Cu.displayName = mo;
10079
10079
  var Eu = l.forwardRef((e, t) => {
10080
10080
  const { __scopeSelect: n, onAutoScroll: r, ...o } = e, s = ct("SelectScrollButton", n), a = l.useRef(null), i = Rr(n), u = l.useCallback(() => {
10081
10081
  a.current !== null && (window.clearInterval(a.current), a.current = null);
@@ -10110,13 +10110,13 @@ var Eu = l.forwardRef((e, t) => {
10110
10110
  }
10111
10111
  );
10112
10112
  Ru.displayName = Nw;
10113
- var bo = "SelectArrow", Tw = l.forwardRef(
10113
+ var go = "SelectArrow", Tw = l.forwardRef(
10114
10114
  (e, t) => {
10115
- const { __scopeSelect: n, ...r } = e, o = Nr(n), s = it(bo, n), a = ct(bo, n);
10116
- return s.open && a.position === "popper" ? /* @__PURE__ */ c(Wo, { ...o, ...r, ref: t }) : null;
10115
+ const { __scopeSelect: n, ...r } = e, o = Nr(n), s = it(go, n), a = ct(go, n);
10116
+ return s.open && a.position === "popper" ? /* @__PURE__ */ c(zo, { ...o, ...r, ref: t }) : null;
10117
10117
  }
10118
10118
  );
10119
- Tw.displayName = bo;
10119
+ Tw.displayName = go;
10120
10120
  var Aw = "SelectBubbleInput", Nu = l.forwardRef(
10121
10121
  ({ __scopeSelect: e, value: t, ...n }, r) => {
10122
10122
  const o = l.useRef(null), s = te(r, o), a = Yl(t);
@@ -10173,7 +10173,7 @@ function Pw(e, t) {
10173
10173
  return e.map((n, r) => e[(t + r) % e.length]);
10174
10174
  }
10175
10175
  var _w = nu, _u = ou, Iw = au, Ow = iu, Mw = cu, Iu = lu, kw = pu, Ou = gu, Mu = vu, Dw = wu, Lw = xu, ku = Su, Du = Cu, Lu = Ru;
10176
- const da = _w, fa = Iw, vo = l.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ N(
10176
+ const ua = _w, da = Iw, bo = l.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ N(
10177
10177
  _u,
10178
10178
  {
10179
10179
  ref: r,
@@ -10188,7 +10188,7 @@ const da = _w, fa = Iw, vo = l.forwardRef(({ className: e, children: t, ...n },
10188
10188
  ]
10189
10189
  }
10190
10190
  ));
10191
- vo.displayName = _u.displayName;
10191
+ bo.displayName = _u.displayName;
10192
10192
  const Fu = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
10193
10193
  ku,
10194
10194
  {
@@ -10215,7 +10215,7 @@ const $u = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
10215
10215
  }
10216
10216
  ));
10217
10217
  $u.displayName = Du.displayName;
10218
- const wo = l.forwardRef(({ className: e, children: t, position: n = "popper", ...r }, o) => /* @__PURE__ */ c(Mw, { children: /* @__PURE__ */ N(
10218
+ const vo = l.forwardRef(({ className: e, children: t, position: n = "popper", ...r }, o) => /* @__PURE__ */ c(Mw, { children: /* @__PURE__ */ N(
10219
10219
  Iu,
10220
10220
  {
10221
10221
  ref: o,
@@ -10242,7 +10242,7 @@ const wo = l.forwardRef(({ className: e, children: t, position: n = "popper", ..
10242
10242
  ]
10243
10243
  }
10244
10244
  ) }));
10245
- wo.displayName = Iu.displayName;
10245
+ vo.displayName = Iu.displayName;
10246
10246
  const Fw = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
10247
10247
  Ou,
10248
10248
  {
@@ -10262,7 +10262,7 @@ const ut = l.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
10262
10262
  ),
10263
10263
  ...n,
10264
10264
  children: [
10265
- /* @__PURE__ */ c("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ c(Lw, { children: /* @__PURE__ */ c(yo, { className: "h-4 w-4" }) }) }),
10265
+ /* @__PURE__ */ c("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ c(Lw, { children: /* @__PURE__ */ c(wo, { className: "h-4 w-4" }) }) }),
10266
10266
  /* @__PURE__ */ c(Dw, { children: t })
10267
10267
  ]
10268
10268
  }
@@ -10331,20 +10331,20 @@ const Uw = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c(
10331
10331
  ));
10332
10332
  Uw.displayName = "CardFooter";
10333
10333
  const zw = 1, Hw = 1e6;
10334
- let Vr = 0;
10334
+ let Wr = 0;
10335
10335
  function Ww() {
10336
- return Vr = (Vr + 1) % Number.MAX_SAFE_INTEGER, Vr.toString();
10336
+ return Wr = (Wr + 1) % Number.MAX_SAFE_INTEGER, Wr.toString();
10337
10337
  }
10338
- const jr = /* @__PURE__ */ new Map(), pa = (e) => {
10339
- if (jr.has(e))
10338
+ const Vr = /* @__PURE__ */ new Map(), fa = (e) => {
10339
+ if (Vr.has(e))
10340
10340
  return;
10341
10341
  const t = setTimeout(() => {
10342
- jr.delete(e), Qt({
10342
+ Vr.delete(e), Qt({
10343
10343
  type: "REMOVE_TOAST",
10344
10344
  toastId: e
10345
10345
  });
10346
10346
  }, Hw);
10347
- jr.set(e, t);
10347
+ Vr.set(e, t);
10348
10348
  }, Vw = (e, t) => {
10349
10349
  switch (t.type) {
10350
10350
  case "ADD_TOAST":
@@ -10361,8 +10361,8 @@ const jr = /* @__PURE__ */ new Map(), pa = (e) => {
10361
10361
  };
10362
10362
  case "DISMISS_TOAST": {
10363
10363
  const { toastId: n } = t;
10364
- return n ? pa(n) : e.toasts.forEach((r) => {
10365
- pa(r.id);
10364
+ return n ? fa(n) : e.toasts.forEach((r) => {
10365
+ fa(r.id);
10366
10366
  }), {
10367
10367
  ...e,
10368
10368
  toasts: e.toasts.map(
@@ -10481,7 +10481,7 @@ function By({ settings: e, onSettingsChange: t, className: n = "" }) {
10481
10481
  "Settings",
10482
10482
  f && /* @__PURE__ */ c(qa, { variant: "destructive", className: "ml-2 h-4 w-4 p-0" })
10483
10483
  ] }) }),
10484
- /* @__PURE__ */ N(as, { className: "w-[500px] sm:w-[600px] overflow-y-auto", children: [
10484
+ /* @__PURE__ */ N(os, { className: "w-[500px] sm:w-[600px] overflow-y-auto", children: [
10485
10485
  /* @__PURE__ */ N(yl, { children: [
10486
10486
  /* @__PURE__ */ c(xl, { children: "Chat Settings" }),
10487
10487
  /* @__PURE__ */ c(Sl, { children: "Configure your chat interface, API connection, and behavior preferences." })
@@ -10563,7 +10563,7 @@ function By({ settings: e, onSettingsChange: t, className: n = "" }) {
10563
10563
  /* @__PURE__ */ N("div", { className: "space-y-2", children: [
10564
10564
  /* @__PURE__ */ c(Oe, { htmlFor: "layout", children: "Layout Style" }),
10565
10565
  /* @__PURE__ */ N(
10566
- da,
10566
+ ua,
10567
10567
  {
10568
10568
  value: i.ui.layout,
10569
10569
  onValueChange: (b) => u((w) => ({
@@ -10571,8 +10571,8 @@ function By({ settings: e, onSettingsChange: t, className: n = "" }) {
10571
10571
  ui: { ...w.ui, layout: b }
10572
10572
  })),
10573
10573
  children: [
10574
- /* @__PURE__ */ c(vo, { children: /* @__PURE__ */ c(fa, {}) }),
10575
- /* @__PURE__ */ N(wo, { children: [
10574
+ /* @__PURE__ */ c(bo, { children: /* @__PURE__ */ c(da, {}) }),
10575
+ /* @__PURE__ */ N(vo, { children: [
10576
10576
  /* @__PURE__ */ c(ut, { value: "sidebar", children: "Sidebar Layout" }),
10577
10577
  /* @__PURE__ */ c(ut, { value: "fullscreen", children: "Fullscreen" }),
10578
10578
  /* @__PURE__ */ c(ut, { value: "tabs", children: "Tabbed Interface" })
@@ -10584,7 +10584,7 @@ function By({ settings: e, onSettingsChange: t, className: n = "" }) {
10584
10584
  /* @__PURE__ */ N("div", { className: "space-y-2", children: [
10585
10585
  /* @__PURE__ */ c(Oe, { htmlFor: "theme", children: "Theme" }),
10586
10586
  /* @__PURE__ */ N(
10587
- da,
10587
+ ua,
10588
10588
  {
10589
10589
  value: i.ui.theme,
10590
10590
  onValueChange: (b) => u((w) => ({
@@ -10592,8 +10592,8 @@ function By({ settings: e, onSettingsChange: t, className: n = "" }) {
10592
10592
  ui: { ...w.ui, theme: b }
10593
10593
  })),
10594
10594
  children: [
10595
- /* @__PURE__ */ c(vo, { children: /* @__PURE__ */ c(fa, {}) }),
10596
- /* @__PURE__ */ N(wo, { children: [
10595
+ /* @__PURE__ */ c(bo, { children: /* @__PURE__ */ c(da, {}) }),
10596
+ /* @__PURE__ */ N(vo, { children: [
10597
10597
  /* @__PURE__ */ c(ut, { value: "light", children: "Light" }),
10598
10598
  /* @__PURE__ */ c(ut, { value: "dark", children: "Dark" }),
10599
10599
  /* @__PURE__ */ c(ut, { value: "system", children: "System" })
@@ -10602,7 +10602,7 @@ function By({ settings: e, onSettingsChange: t, className: n = "" }) {
10602
10602
  }
10603
10603
  )
10604
10604
  ] }),
10605
- /* @__PURE__ */ c(ns, {}),
10605
+ /* @__PURE__ */ c(es, {}),
10606
10606
  /* @__PURE__ */ N("div", { className: "space-y-3", children: [
10607
10607
  /* @__PURE__ */ N("div", { className: "flex items-center justify-between", children: [
10608
10608
  /* @__PURE__ */ c(Oe, { htmlFor: "show-timestamps", children: "Show Timestamps" }),
@@ -10711,7 +10711,7 @@ function By({ settings: e, onSettingsChange: t, className: n = "" }) {
10711
10711
  ] }),
10712
10712
  /* @__PURE__ */ N("div", { className: "flex items-center justify-between pt-6 border-t", children: [
10713
10713
  /* @__PURE__ */ N(fe, { variant: "outline", onClick: v, children: [
10714
- /* @__PURE__ */ c(Kr, { className: "h-4 w-4 mr-2" }),
10714
+ /* @__PURE__ */ c(jr, { className: "h-4 w-4 mr-2" }),
10715
10715
  "Reset"
10716
10716
  ] }),
10717
10717
  /* @__PURE__ */ N("div", { className: "flex gap-2", children: [
@@ -10768,7 +10768,7 @@ function Uy({
10768
10768
  style: i(t),
10769
10769
  children: /* @__PURE__ */ N("div", { className: "flex-1 flex min-h-0 overflow-hidden", children: [
10770
10770
  n && /* @__PURE__ */ c("div", { className: `w-80 border-r flex-shrink-0 overflow-hidden ${o.sidebar || ""}`, children: /* @__PURE__ */ c(
10771
- lo,
10771
+ co,
10772
10772
  {
10773
10773
  showCreateButton: !0,
10774
10774
  showDeleteButton: !0,
@@ -10786,7 +10786,7 @@ function Uy({
10786
10786
  style: i(t),
10787
10787
  children: [
10788
10788
  n && /* @__PURE__ */ c("div", { className: `w-80 border-r bg-gray-50 flex-shrink-0 overflow-hidden ${o.sidebar || ""}`, children: /* @__PURE__ */ c(
10789
- lo,
10789
+ co,
10790
10790
  {
10791
10791
  showCreateButton: !0,
10792
10792
  showDeleteButton: !0,
@@ -10800,7 +10800,7 @@ function Uy({
10800
10800
  ) });
10801
10801
  }
10802
10802
  export {
10803
- Ro as Api,
10803
+ Co as Api,
10804
10804
  Cy as AuthApi,
10805
10805
  Sy as ChatApi,
10806
10806
  On as ChatInterface,
@@ -10810,7 +10810,7 @@ export {
10810
10810
  By as ChatSettings,
10811
10811
  wn as MarkdownContent,
10812
10812
  yp as MessageComponent,
10813
- lo as ThreadManager,
10813
+ co as ThreadManager,
10814
10814
  mt as apiClient,
10815
10815
  Iy as applySettings,
10816
10816
  Uy as default,
@@ -10823,7 +10823,7 @@ export {
10823
10823
  zf as onAuthTokenChanged,
10824
10824
  jt as post,
10825
10825
  Wf as put,
10826
- eo as setAuthToken,
10826
+ Qr as setAuthToken,
10827
10827
  jf as stream,
10828
10828
  Ka as useChat,
10829
10829
  Py as useChatRouting,