react-semaphor 0.1.549 → 0.1.550

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/brand-studio/index.js +1 -1
  2. package/dist/chunks/{assistant-chat-CUSvuESS.js → assistant-chat-ClAvjeNe.js} +104 -104
  3. package/dist/chunks/{dashboard-Cm7WkARH.js → dashboard-DDQgKoss.js} +1 -1
  4. package/dist/chunks/{dashboard-briefing-launcher-X0HzNpS8.js → dashboard-briefing-launcher-CCYs8E4j.js} +1440 -1328
  5. package/dist/chunks/{dashboard-controls-BuX6TMNK.js → dashboard-controls-DfSkQBsk.js} +976 -929
  6. package/dist/chunks/{dashboard-json-Cc4u2xvy.js → dashboard-json-BPhyn9pl.js} +2 -2
  7. package/dist/chunks/{edit-dashboard-visual-DX2CzibK.js → edit-dashboard-visual-G7EmLuR0.js} +355 -355
  8. package/dist/chunks/{filter-reach-copy-Bc-Gei83.js → filter-reach-copy-8vnDYToV.js} +94 -92
  9. package/dist/chunks/{report-preferences-dialog-B9oYQ6OJ.js → report-preferences-dialog-D_fEDaS4.js} +849 -768
  10. package/dist/chunks/{semaphor-ready-indicator-wWkPH4ue.js → semaphor-ready-indicator-Bz5BxITW.js} +25706 -25429
  11. package/dist/chunks/{shelf-drop-preview-context-B86d8IZO.js → shelf-drop-preview-context-B8kNwpWQ.js} +2 -2
  12. package/dist/chunks/{switch-CEBOR4n7.js → switch-wJP6O7ZT.js} +2 -2
  13. package/dist/chunks/{use-create-flow-overlay-state-DPNjYyi3.js → use-create-flow-overlay-state-RzJa7G8S.js} +2 -2
  14. package/dist/dashboard/index.js +1 -1
  15. package/dist/dashboard-authoring/index.js +2 -2
  16. package/dist/index.js +184 -169
  17. package/dist/style.css +1 -1
  18. package/dist/surfboard/index.js +1 -1
  19. package/dist/types/components/assistant/assistant-entry-points.d.ts +4 -1
  20. package/dist/types/components/dashboard/favorites/dashboard-favorite-toggle.d.ts +11 -0
  21. package/dist/types/components/dashboard/favorites/favorite-star-button.d.ts +16 -0
  22. package/dist/types/components/index.d.ts +8 -0
  23. package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +16 -0
  24. package/dist/types/components/surfboard/toolbar/toolbar-context.d.ts +86 -0
  25. package/dist/types/components/surfboard/toolbar/toolbar-overflow.d.ts +14 -0
  26. package/dist/types/lib/dashboard-viewer/viewer-store-state.d.ts +7 -0
  27. package/dist/types/lib/hooks/use-dashboard-favorite.d.ts +24 -0
  28. package/dist/types/lib/hooks/use-dashboard-query.d.ts +2 -0
  29. package/dist/types/lib/hooks/use-default-dashboard-toggle.d.ts +12 -0
  30. package/dist/types/shared/dashboard-viewer/viewer-contract.d.ts +18 -0
  31. package/package.json +1 -1
@@ -3,11 +3,11 @@ var Nr = (e) => {
3
3
  };
4
4
  var Er = (e, t, r) => t.has(e) || Nr("Cannot " + r);
5
5
  var F = (e, t, r) => (Er(e, t, "read from private field"), r ? r.call(e) : t.get(e)), pe = (e, t, r) => t.has(e) ? Nr("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), H = (e, t, r, n) => (Er(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r);
6
- import { jsx as f, jsxs as T, Fragment as Qe } from "react/jsx-runtime";
6
+ import { jsx as f, jsxs as T, Fragment as Xe } from "react/jsx-runtime";
7
7
  import { useCallback as ie, useRef as ue, useMemo as et, useEffect as Oe, useState as U, useLayoutEffect as ze, useId as So } from "react";
8
- import { u as Y, dq as ko, b4 as No, bu as Eo, T as To, dr as Ao, ds as Co, W as Tr, b1 as $o, dt as Oo, bp as zo, du as nr, cP as Mo, dv as Po, dw as ar, dx as kn, dy as Ro, aX as or, cl as Ar, dz as Nn, Y as Zo, bx as Do, aO as En, de as Tn, dA as jo, dB as Fo, dC as Lo, dD as Uo, dE as Bo, c6 as An, b0 as Cn, b2 as Vo, bo as pt, dF as qo, dG as Jo, dH as Ko, dI as Wo, a3 as $n, ci as Go, cj as Yo, ck as Ho, co as Xo, dJ as Qo, dK as es, dL as ts } from "./semaphor-ready-indicator-wWkPH4ue.js";
8
+ import { u as Y, dt as ko, b7 as No, bx as Eo, Y as To, du as Ao, dv as Co, Z as Tr, b4 as $o, dw as Oo, bs as zo, dx as nr, cQ as Mo, dy as Po, dz as ar, dA as kn, dB as Ro, a_ as or, cl as Ar, dC as Nn, $ as Zo, bA as Do, aR as En, dh as Tn, dD as jo, dE as Fo, dF as Lo, dG as Uo, dH as Bo, c9 as An, b3 as Cn, b5 as Vo, br as pt, dI as qo, dJ as Jo, dK as Ko, dL as Wo, a6 as $n, ci as Go, cj as Yo, ck as Ho, cp as Qo, dM as Xo, dN as es, dO as ts } from "./semaphor-ready-indicator-Bz5BxITW.js";
9
9
  import { i as rs } from "./conversation-sQiWYUOb.js";
10
- import { B as ne, i as On, j as ns, c as zn, L as qe, I as as, R as os, P as Mn, a as Pn, b as Rn } from "./switch-CEBOR4n7.js";
10
+ import { B as ne, i as On, j as ns, c as zn, L as qe, I as as, R as os, P as Mn, a as Pn, b as Rn } from "./switch-wJP6O7ZT.js";
11
11
  import "./index-CuHybtft.js";
12
12
  import "./validators-C-aOQlTB.js";
13
13
  import "./matrix-operation-contract-D6vYkZK4.js";
@@ -20,7 +20,7 @@ import { H as ls } from "./table-settings-WysCBj62.js";
20
20
  import { l as cs, m as tt, c as qt, A as Je, d as Dn } from "./context-BerEBuFR.js";
21
21
  import { p as Cr, a as us, A as jn } from "./saved-dashboard-context-BMqMzNAo.js";
22
22
  import { dY as ds, as as ps, v as $r } from "./global-date-filter-utils-CnumW4j2.js";
23
- import { u as Fn, i as fs } from "./report-preferences-dialog-B9oYQ6OJ.js";
23
+ import { o as Fn, p as fs } from "./report-preferences-dialog-D_fEDaS4.js";
24
24
  import { d as ms } from "./document-dashboard-inputs-DPQ_wUGD.js";
25
25
  import { w as hs, c as Ln } from "./visual-choice-JiJ-_3bi.js";
26
26
  import { A as gs, v as Un, t as vs, g as ge, d as ys, b as bs, h as sr, w as xs, s as Jt, a as ws } from "./add-to-dashboard-BQRAAnc3.js";
@@ -240,7 +240,7 @@ function Bs(e, t, r, n) {
240
240
  );
241
241
  }
242
242
  const Jn = "vercel.ai.error", Vs = Symbol.for(Jn);
243
- var X = class Kn extends Error {
243
+ var Q = class Kn extends Error {
244
244
  /**
245
245
  * Creates an AI SDK Error.
246
246
  *
@@ -266,7 +266,7 @@ var X = class Kn extends Error {
266
266
  }
267
267
  };
268
268
  const Wn = "AI_APICallError", Gn = `vercel.ai.error.${Wn}`, qs = Symbol.for(Gn);
269
- var Js = class extends X {
269
+ var Js = class extends Q {
270
270
  constructor({ message: e, url: t, requestBodyValues: r, statusCode: n, responseHeaders: a, responseBody: s, cause: o, isRetryable: c = n != null && (n === 408 || n === 409 || n === 429 || n >= 500), data: p }) {
271
271
  super({
272
272
  name: Wn,
@@ -275,11 +275,11 @@ var Js = class extends X {
275
275
  }), this[qs] = !0, this.url = t, this.requestBodyValues = r, this.statusCode = n, this.responseHeaders = a, this.responseBody = s, this.isRetryable = c, this.data = p;
276
276
  }
277
277
  static isInstance(e) {
278
- return X.hasMarker(e, Gn);
278
+ return Q.hasMarker(e, Gn);
279
279
  }
280
280
  };
281
281
  const Yn = "AI_EmptyResponseBodyError", Hn = `vercel.ai.error.${Yn}`, Ks = Symbol.for(Hn);
282
- var jr = class extends X {
282
+ var jr = class extends Q {
283
283
  constructor({ message: e = "Empty response body" } = {}) {
284
284
  super({
285
285
  name: Yn,
@@ -287,41 +287,41 @@ var jr = class extends X {
287
287
  }), this[Ks] = !0;
288
288
  }
289
289
  static isInstance(e) {
290
- return X.hasMarker(e, Hn);
290
+ return Q.hasMarker(e, Hn);
291
291
  }
292
292
  };
293
- function Xn(e) {
293
+ function Qn(e) {
294
294
  return e == null ? "unknown error" : typeof e == "string" ? e : e instanceof Error ? e.toString() : JSON.stringify(e);
295
295
  }
296
- const Qn = "AI_InvalidArgumentError", ea = `vercel.ai.error.${Qn}`, Ws = Symbol.for(ea);
297
- var Gs = class extends X {
296
+ const Xn = "AI_InvalidArgumentError", ea = `vercel.ai.error.${Xn}`, Ws = Symbol.for(ea);
297
+ var Gs = class extends Q {
298
298
  constructor({ message: t, cause: r, argument: n }) {
299
299
  super({
300
- name: Qn,
300
+ name: Xn,
301
301
  message: t,
302
302
  cause: r
303
303
  }), this[Ws] = !0, this.argument = n;
304
304
  }
305
305
  static isInstance(t) {
306
- return X.hasMarker(t, ea);
306
+ return Q.hasMarker(t, ea);
307
307
  }
308
308
  };
309
309
  const ta = "AI_JSONParseError", ra = `vercel.ai.error.${ta}`, Ys = Symbol.for(ra);
310
- var Fr = class extends X {
310
+ var Fr = class extends Q {
311
311
  constructor({ text: e, cause: t }) {
312
312
  super({
313
313
  name: ta,
314
314
  message: `JSON parsing failed: Text: ${e}.
315
- Error message: ${Xn(t)}`,
315
+ Error message: ${Qn(t)}`,
316
316
  cause: t
317
317
  }), this[Ys] = !0, this.text = e;
318
318
  }
319
319
  static isInstance(e) {
320
- return X.hasMarker(e, ra);
320
+ return Q.hasMarker(e, ra);
321
321
  }
322
322
  };
323
323
  const na = "AI_TypeValidationError", aa = `vercel.ai.error.${na}`, Hs = Symbol.for(aa);
324
- var xt = class Kt extends X {
324
+ var xt = class Kt extends Q {
325
325
  constructor({ value: t, cause: r, context: n }) {
326
326
  let a = "Type validation failed";
327
327
  if (n != null && n.field && (a += ` for ${n.field}`), n != null && n.entityName || n != null && n.entityId) {
@@ -332,12 +332,12 @@ var xt = class Kt extends X {
332
332
  super({
333
333
  name: na,
334
334
  message: `${a}: Value: ${JSON.stringify(t)}.
335
- Error message: ${Xn(r)}`,
335
+ Error message: ${Qn(r)}`,
336
336
  cause: r
337
337
  }), this[Hs] = !0, this.value = t, this.context = n;
338
338
  }
339
339
  static isInstance(t) {
340
- return X.hasMarker(t, aa);
340
+ return Q.hasMarker(t, aa);
341
341
  }
342
342
  /**
343
343
  * Wraps an error into a TypeValidationError.
@@ -359,16 +359,16 @@ Error message: ${Xn(r)}`,
359
359
  });
360
360
  }
361
361
  };
362
- const oa = "AI_UnsupportedFunctionalityError", sa = `vercel.ai.error.${oa}`, Xs = Symbol.for(sa);
363
- var Qs = class extends X {
362
+ const oa = "AI_UnsupportedFunctionalityError", sa = `vercel.ai.error.${oa}`, Qs = Symbol.for(sa);
363
+ var Xs = class extends Q {
364
364
  constructor({ functionality: e, message: t = `'${e}' functionality not supported.` }) {
365
365
  super({
366
366
  name: oa,
367
367
  message: t
368
- }), this[Xs] = !0, this.functionality = e;
368
+ }), this[Qs] = !0, this.functionality = e;
369
369
  }
370
370
  static isInstance(e) {
371
- return X.hasMarker(e, sa);
371
+ return Q.hasMarker(e, sa);
372
372
  }
373
373
  };
374
374
  function k(e, t, r) {
@@ -621,7 +621,7 @@ function di(e, t, r) {
621
621
  checks: []
622
622
  });
623
623
  }
624
- function Xe(e, t = 0) {
624
+ function Qe(e, t = 0) {
625
625
  var r;
626
626
  for (let n = t; n < e.issues.length; n++)
627
627
  if (((r = e.issues[n]) == null ? void 0 : r.continue) !== !0)
@@ -970,9 +970,9 @@ const ji = (e) => {
970
970
  continue: !t.abort
971
971
  });
972
972
  };
973
- }), Xi = /* @__PURE__ */ k("$ZodCheckLowerCase", (e, t) => {
973
+ }), Qi = /* @__PURE__ */ k("$ZodCheckLowerCase", (e, t) => {
974
974
  t.pattern ?? (t.pattern = Vi), Et.init(e, t);
975
- }), Qi = /* @__PURE__ */ k("$ZodCheckUpperCase", (e, t) => {
975
+ }), Xi = /* @__PURE__ */ k("$ZodCheckUpperCase", (e, t) => {
976
976
  t.pattern ?? (t.pattern = qi), Et.init(e, t);
977
977
  }), el = /* @__PURE__ */ k("$ZodCheckIncludes", (e, t) => {
978
978
  le.init(e, t);
@@ -1072,7 +1072,7 @@ const ol = {
1072
1072
  });
1073
1073
  else {
1074
1074
  const s = (o, c, p) => {
1075
- let i = Xe(o), g;
1075
+ let i = Qe(o), g;
1076
1076
  for (const u of c) {
1077
1077
  if (u._zod.def.when) {
1078
1078
  if (!u._zod.def.when(o))
@@ -1084,12 +1084,12 @@ const ol = {
1084
1084
  throw new nt();
1085
1085
  if (g || I instanceof Promise)
1086
1086
  g = (g ?? Promise.resolve()).then(async () => {
1087
- await I, o.issues.length !== v && (i || (i = Xe(o, v)));
1087
+ await I, o.issues.length !== v && (i || (i = Qe(o, v)));
1088
1088
  });
1089
1089
  else {
1090
1090
  if (o.issues.length === v)
1091
1091
  continue;
1092
- i || (i = Xe(o, v));
1092
+ i || (i = Qe(o, v));
1093
1093
  }
1094
1094
  }
1095
1095
  return g ? g.then(() => o) : o;
@@ -1667,7 +1667,7 @@ function Wt(e, t) {
1667
1667
  return { valid: !1, mergeErrorPath: [] };
1668
1668
  }
1669
1669
  function qr(e, t, r) {
1670
- if (t.issues.length && e.issues.push(...t.issues), r.issues.length && e.issues.push(...r.issues), Xe(e))
1670
+ if (t.issues.length && e.issues.push(...t.issues), r.issues.length && e.issues.push(...r.issues), Qe(e))
1671
1671
  return e;
1672
1672
  const n = Wt(t.value, r.value);
1673
1673
  if (!n.valid)
@@ -1826,7 +1826,7 @@ const Gl = /* @__PURE__ */ k("$ZodCatch", (e, t) => {
1826
1826
  };
1827
1827
  });
1828
1828
  function Wr(e, t, r) {
1829
- return Xe(e) ? e : t.out._zod.run({ value: e.value, issues: e.issues }, r);
1829
+ return Qe(e) ? e : t.out._zod.run({ value: e.value, issues: e.issues }, r);
1830
1830
  }
1831
1831
  const Hl = /* @__PURE__ */ k("$ZodReadonly", (e, t) => {
1832
1832
  L.init(e, t), Z(e._zod, "propValues", () => t.innerType._zod.propValues), Z(e._zod, "values", () => t.innerType._zod.values), Z(e._zod, "optin", () => t.innerType._zod.optin), Z(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (r, n) => {
@@ -1837,9 +1837,9 @@ const Hl = /* @__PURE__ */ k("$ZodReadonly", (e, t) => {
1837
1837
  function Gr(e) {
1838
1838
  return e.value = Object.freeze(e.value), e;
1839
1839
  }
1840
- const Xl = /* @__PURE__ */ k("$ZodLazy", (e, t) => {
1840
+ const Ql = /* @__PURE__ */ k("$ZodLazy", (e, t) => {
1841
1841
  L.init(e, t), Z(e._zod, "innerType", () => t.getter()), Z(e._zod, "pattern", () => e._zod.innerType._zod.pattern), Z(e._zod, "propValues", () => e._zod.innerType._zod.propValues), Z(e._zod, "optin", () => e._zod.innerType._zod.optin), Z(e._zod, "optout", () => e._zod.innerType._zod.optout), e._zod.parse = (r, n) => e._zod.innerType._zod.run(r, n);
1842
- }), Ql = /* @__PURE__ */ k("$ZodCustom", (e, t) => {
1842
+ }), Xl = /* @__PURE__ */ k("$ZodCustom", (e, t) => {
1843
1843
  le.init(e, t), L.init(e, t), e._zod.parse = (r, n) => r, e._zod.check = (r) => {
1844
1844
  const n = r.value, a = t.fn(n);
1845
1845
  if (a instanceof Promise)
@@ -2180,7 +2180,7 @@ function Oc(e, t) {
2180
2180
  ...C(t)
2181
2181
  });
2182
2182
  }
2183
- function Xr(e, t) {
2183
+ function Qr(e, t) {
2184
2184
  return new ba({
2185
2185
  check: "less_than",
2186
2186
  ...C(t),
@@ -2196,7 +2196,7 @@ function zt(e, t) {
2196
2196
  inclusive: !0
2197
2197
  });
2198
2198
  }
2199
- function Qr(e, t) {
2199
+ function Xr(e, t) {
2200
2200
  return new xa({
2201
2201
  check: "greater_than",
2202
2202
  ...C(t),
@@ -2249,14 +2249,14 @@ function zc(e, t) {
2249
2249
  });
2250
2250
  }
2251
2251
  function Mc(e) {
2252
- return new Xi({
2252
+ return new Qi({
2253
2253
  check: "string_format",
2254
2254
  format: "lowercase",
2255
2255
  ...C(e)
2256
2256
  });
2257
2257
  }
2258
2258
  function Pc(e) {
2259
- return new Qi({
2259
+ return new Xi({
2260
2260
  check: "string_format",
2261
2261
  format: "uppercase",
2262
2262
  ...C(e)
@@ -2857,14 +2857,14 @@ function Yc(e) {
2857
2857
  const Hc = /* @__PURE__ */ k("ZodISOTime", (e, t) => {
2858
2858
  bl.init(e, t), q.init(e, t);
2859
2859
  });
2860
- function Xc(e) {
2860
+ function Qc(e) {
2861
2861
  return kc(Hc, e);
2862
2862
  }
2863
- const Qc = /* @__PURE__ */ k("ZodISODuration", (e, t) => {
2863
+ const Xc = /* @__PURE__ */ k("ZodISODuration", (e, t) => {
2864
2864
  xl.init(e, t), q.init(e, t);
2865
2865
  });
2866
2866
  function eu(e) {
2867
- return Nc(Qc, e);
2867
+ return Nc(Xc, e);
2868
2868
  }
2869
2869
  const tu = (e, t) => {
2870
2870
  da.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
@@ -2902,7 +2902,7 @@ const tu = (e, t) => {
2902
2902
  ]
2903
2903
  }
2904
2904
  // { parent: true }
2905
- ), e.clone = (r, n) => Pe(e, r, n), e.brand = () => e, e.register = (r, n) => (r.add(e, n), e), e.parse = (r, n) => ru(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => au(e, r, n), e.parseAsync = async (r, n) => nu(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => Ea(e, r, n), e.spa = e.safeParseAsync, e.refine = (r, n) => e.check(sd(r, n)), e.superRefine = (r) => e.check(id(r)), e.overwrite = (r) => e.check(ct(r)), e.optional = () => an(e), e.nullable = () => on(e), e.nullish = () => an(on(e)), e.nonoptional = (r) => Yu(e, r), e.array = () => $a(e), e.or = (r) => Ma([e, r]), e.and = (r) => Du(e, r), e.transform = (r) => sn(e, Vu(r)), e.default = (r) => Ku(e, r), e.prefault = (r) => Gu(e, r), e.catch = (r) => Xu(e, r), e.pipe = (r) => sn(e, r), e.readonly = () => td(e), e.describe = (r) => {
2905
+ ), e.clone = (r, n) => Pe(e, r, n), e.brand = () => e, e.register = (r, n) => (r.add(e, n), e), e.parse = (r, n) => ru(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => au(e, r, n), e.parseAsync = async (r, n) => nu(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => Ea(e, r, n), e.spa = e.safeParseAsync, e.refine = (r, n) => e.check(sd(r, n)), e.superRefine = (r) => e.check(id(r)), e.overwrite = (r) => e.check(ct(r)), e.optional = () => an(e), e.nullable = () => on(e), e.nullish = () => an(on(e)), e.nonoptional = (r) => Yu(e, r), e.array = () => $a(e), e.or = (r) => Ma([e, r]), e.and = (r) => Du(e, r), e.transform = (r) => sn(e, Vu(r)), e.default = (r) => Ku(e, r), e.prefault = (r) => Gu(e, r), e.catch = (r) => Qu(e, r), e.pipe = (r) => sn(e, r), e.readonly = () => td(e), e.describe = (r) => {
2906
2906
  const n = e.clone();
2907
2907
  return He.add(n, { description: r }), n;
2908
2908
  }, Object.defineProperty(e, "description", {
@@ -2921,7 +2921,7 @@ const tu = (e, t) => {
2921
2921
  const r = e._zod.bag;
2922
2922
  e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(zc(...n)), e.includes = (...n) => e.check(Rc(...n)), e.startsWith = (...n) => e.check(Zc(...n)), e.endsWith = (...n) => e.check(Dc(...n)), e.min = (...n) => e.check(It(...n)), e.max = (...n) => e.check(ka(...n)), e.length = (...n) => e.check(Na(...n)), e.nonempty = (...n) => e.check(It(1, ...n)), e.lowercase = (n) => e.check(Mc(n)), e.uppercase = (n) => e.check(Pc(n)), e.trim = () => e.check(Fc()), e.normalize = (...n) => e.check(jc(...n)), e.toLowerCase = () => e.check(Lc()), e.toUpperCase = () => e.check(Uc());
2923
2923
  }), ou = /* @__PURE__ */ k("ZodString", (e, t) => {
2924
- dr.init(e, t), Ta.init(e, t), e.email = (r) => e.check(rc(iu, r)), e.url = (r) => e.check(ic(lu, r)), e.jwt = (r) => e.check(_c(Iu, r)), e.emoji = (r) => e.check(lc(cu, r)), e.guid = (r) => e.check(Hr(rn, r)), e.uuid = (r) => e.check(nc(gt, r)), e.uuidv4 = (r) => e.check(ac(gt, r)), e.uuidv6 = (r) => e.check(oc(gt, r)), e.uuidv7 = (r) => e.check(sc(gt, r)), e.nanoid = (r) => e.check(cc(uu, r)), e.guid = (r) => e.check(Hr(rn, r)), e.cuid = (r) => e.check(uc(du, r)), e.cuid2 = (r) => e.check(dc(pu, r)), e.ulid = (r) => e.check(pc(fu, r)), e.base64 = (r) => e.check(bc(xu, r)), e.base64url = (r) => e.check(xc(wu, r)), e.xid = (r) => e.check(fc(mu, r)), e.ksuid = (r) => e.check(mc(hu, r)), e.ipv4 = (r) => e.check(hc(gu, r)), e.ipv6 = (r) => e.check(gc(vu, r)), e.cidrv4 = (r) => e.check(vc(yu, r)), e.cidrv6 = (r) => e.check(yc(bu, r)), e.e164 = (r) => e.check(wc(_u, r)), e.datetime = (r) => e.check(Wc(r)), e.date = (r) => e.check(Yc(r)), e.time = (r) => e.check(Xc(r)), e.duration = (r) => e.check(eu(r));
2924
+ dr.init(e, t), Ta.init(e, t), e.email = (r) => e.check(rc(iu, r)), e.url = (r) => e.check(ic(lu, r)), e.jwt = (r) => e.check(_c(Iu, r)), e.emoji = (r) => e.check(lc(cu, r)), e.guid = (r) => e.check(Hr(rn, r)), e.uuid = (r) => e.check(nc(gt, r)), e.uuidv4 = (r) => e.check(ac(gt, r)), e.uuidv6 = (r) => e.check(oc(gt, r)), e.uuidv7 = (r) => e.check(sc(gt, r)), e.nanoid = (r) => e.check(cc(uu, r)), e.guid = (r) => e.check(Hr(rn, r)), e.cuid = (r) => e.check(uc(du, r)), e.cuid2 = (r) => e.check(dc(pu, r)), e.ulid = (r) => e.check(pc(fu, r)), e.base64 = (r) => e.check(bc(xu, r)), e.base64url = (r) => e.check(xc(wu, r)), e.xid = (r) => e.check(fc(mu, r)), e.ksuid = (r) => e.check(mc(hu, r)), e.ipv4 = (r) => e.check(hc(gu, r)), e.ipv6 = (r) => e.check(gc(vu, r)), e.cidrv4 = (r) => e.check(vc(yu, r)), e.cidrv6 = (r) => e.check(yc(bu, r)), e.e164 = (r) => e.check(wc(_u, r)), e.datetime = (r) => e.check(Wc(r)), e.date = (r) => e.check(Yc(r)), e.time = (r) => e.check(Qc(r)), e.duration = (r) => e.check(eu(r));
2925
2925
  });
2926
2926
  function su(e) {
2927
2927
  return tc(ou, e);
@@ -2967,7 +2967,7 @@ const q = /* @__PURE__ */ k("ZodStringFormat", (e, t) => {
2967
2967
  }), Iu = /* @__PURE__ */ k("ZodJWT", (e, t) => {
2968
2968
  Cl.init(e, t), q.init(e, t);
2969
2969
  }), Aa = /* @__PURE__ */ k("ZodNumber", (e, t) => {
2970
- _a.init(e, t), V.init(e, t), e.gt = (n, a) => e.check(Qr(n, a)), e.gte = (n, a) => e.check(Mt(n, a)), e.min = (n, a) => e.check(Mt(n, a)), e.lt = (n, a) => e.check(Xr(n, a)), e.lte = (n, a) => e.check(zt(n, a)), e.max = (n, a) => e.check(zt(n, a)), e.int = (n) => e.check(nn(n)), e.safe = (n) => e.check(nn(n)), e.positive = (n) => e.check(Qr(0, n)), e.nonnegative = (n) => e.check(Mt(0, n)), e.negative = (n) => e.check(Xr(0, n)), e.nonpositive = (n) => e.check(zt(0, n)), e.multipleOf = (n, a) => e.check(en(n, a)), e.step = (n, a) => e.check(en(n, a)), e.finite = () => e;
2970
+ _a.init(e, t), V.init(e, t), e.gt = (n, a) => e.check(Xr(n, a)), e.gte = (n, a) => e.check(Mt(n, a)), e.min = (n, a) => e.check(Mt(n, a)), e.lt = (n, a) => e.check(Qr(n, a)), e.lte = (n, a) => e.check(zt(n, a)), e.max = (n, a) => e.check(zt(n, a)), e.int = (n) => e.check(nn(n)), e.safe = (n) => e.check(nn(n)), e.positive = (n) => e.check(Xr(0, n)), e.nonnegative = (n) => e.check(Mt(0, n)), e.negative = (n) => e.check(Qr(0, n)), e.nonpositive = (n) => e.check(zt(0, n)), e.multipleOf = (n, a) => e.check(en(n, a)), e.step = (n, a) => e.check(en(n, a)), e.finite = () => e;
2971
2971
  const r = e._zod.bag;
2972
2972
  e.minValue = Math.max(r.minimum ?? Number.NEGATIVE_INFINITY, r.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(r.maximum ?? Number.POSITIVE_INFINITY, r.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (r.format ?? "").includes("int") || Number.isSafeInteger(r.multipleOf ?? 0.5), e.isFinite = !0, e.format = r.format ?? null;
2973
2973
  });
@@ -3205,18 +3205,18 @@ function Yu(e, t) {
3205
3205
  const Hu = /* @__PURE__ */ k("ZodCatch", (e, t) => {
3206
3206
  Gl.init(e, t), V.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
3207
3207
  });
3208
- function Xu(e, t) {
3208
+ function Qu(e, t) {
3209
3209
  return new Hu({
3210
3210
  type: "catch",
3211
3211
  innerType: e,
3212
3212
  catchValue: typeof t == "function" ? t : () => t
3213
3213
  });
3214
3214
  }
3215
- const Qu = /* @__PURE__ */ k("ZodPipe", (e, t) => {
3215
+ const Xu = /* @__PURE__ */ k("ZodPipe", (e, t) => {
3216
3216
  Yl.init(e, t), V.init(e, t), e.in = t.in, e.out = t.out;
3217
3217
  });
3218
3218
  function sn(e, t) {
3219
- return new Qu({
3219
+ return new Xu({
3220
3220
  type: "pipe",
3221
3221
  in: e,
3222
3222
  out: t
@@ -3233,7 +3233,7 @@ function td(e) {
3233
3233
  });
3234
3234
  }
3235
3235
  const rd = /* @__PURE__ */ k("ZodLazy", (e, t) => {
3236
- Xl.init(e, t), V.init(e, t), e.unwrap = () => e._zod.def.getter();
3236
+ Ql.init(e, t), V.init(e, t), e.unwrap = () => e._zod.def.getter();
3237
3237
  });
3238
3238
  function nd(e) {
3239
3239
  return new rd({
@@ -3242,7 +3242,7 @@ function nd(e) {
3242
3242
  });
3243
3243
  }
3244
3244
  const pr = /* @__PURE__ */ k("ZodCustom", (e, t) => {
3245
- Ql.init(e, t), V.init(e, t);
3245
+ Xl.init(e, t), V.init(e, t);
3246
3246
  });
3247
3247
  function ad(e) {
3248
3248
  const t = new le({
@@ -3488,7 +3488,7 @@ function Fe(e) {
3488
3488
  }
3489
3489
  return t;
3490
3490
  }
3491
- const Q = ({ prefix: e, size: t = 16, alphabet: r = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", separator: n = "-" } = {}) => {
3491
+ const X = ({ prefix: e, size: t = 16, alphabet: r = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", separator: n = "-" } = {}) => {
3492
3492
  const a = () => {
3493
3493
  const s = r.length, o = new Array(t);
3494
3494
  for (let c = 0; c < t; c++) o[c] = r[Math.random() * s | 0];
@@ -3500,7 +3500,7 @@ const Q = ({ prefix: e, size: t = 16, alphabet: r = "0123456789ABCDEFGHIJKLMNOPQ
3500
3500
  message: `The separator "${n}" must not be part of the alphabet "${r}".`
3501
3501
  });
3502
3502
  return () => `${e}${n}${a()}`;
3503
- }, pd = Q();
3503
+ }, pd = X();
3504
3504
  function fd(e) {
3505
3505
  var t;
3506
3506
  return ((t = globalThis.Buffer) == null ? void 0 : t.isBuffer(e)) ?? !1;
@@ -4206,7 +4206,7 @@ function Gd() {
4206
4206
  function Yd() {
4207
4207
  return de();
4208
4208
  }
4209
- const Hd = (e, t) => D(e.innerType._def, t), Xd = (e, t, r) => {
4209
+ const Hd = (e, t) => D(e.innerType._def, t), Qd = (e, t, r) => {
4210
4210
  switch (t) {
4211
4211
  case "ZodString":
4212
4212
  return Fa(e, r);
@@ -4280,7 +4280,7 @@ const Hd = (e, t) => D(e.innerType._def, t), Xd = (e, t, r) => {
4280
4280
  return /* @__PURE__ */ ((n) => {
4281
4281
  })();
4282
4282
  }
4283
- }, Qd = (e, t) => {
4283
+ }, Xd = (e, t) => {
4284
4284
  let r = 0;
4285
4285
  for (; r < e.length && r < t.length && e[r] === t[r]; r++) ;
4286
4286
  return [(e.length - r).toString(), ...t.slice(r)].join("/");
@@ -4302,7 +4302,7 @@ function D(e, t, r = !1) {
4302
4302
  jsonSchema: void 0
4303
4303
  };
4304
4304
  t.seen.set(e, a);
4305
- const s = Xd(e, e.typeName, t), o = typeof s == "function" ? D(s(), t) : s;
4305
+ const s = Qd(e, e.typeName, t), o = typeof s == "function" ? D(s(), t) : s;
4306
4306
  if (o && tp(e, t, o), t.postProcess) {
4307
4307
  const p = t.postProcess(o, e, t);
4308
4308
  return a.jsonSchema = o, p;
@@ -4314,7 +4314,7 @@ const ep = (e, t) => {
4314
4314
  case "root":
4315
4315
  return { $ref: e.path.join("/") };
4316
4316
  case "relative":
4317
- return { $ref: Qd(t.currentPath, e.path) };
4317
+ return { $ref: Xd(t.currentPath, e.path) };
4318
4318
  case "none":
4319
4319
  case "seen":
4320
4320
  return e.path.length < t.currentPath.length && e.path.every((r, n) => t.currentPath[n] === r) ? (console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`), de()) : t.$refStrategy === "seen" ? de() : void 0;
@@ -4503,7 +4503,7 @@ async function Ba({ value: e, schema: t, context: r }) {
4503
4503
  };
4504
4504
  }
4505
4505
  }
4506
- async function Xt({ text: e, schema: t }) {
4506
+ async function Qt({ text: e, schema: t }) {
4507
4507
  try {
4508
4508
  const r = vd(e);
4509
4509
  return t == null ? {
@@ -4527,7 +4527,7 @@ async function Xt({ text: e, schema: t }) {
4527
4527
  }
4528
4528
  function pp({ stream: e, schema: t }) {
4529
4529
  return e.pipeThrough(new TextDecoderStream()).pipeThrough(new dd()).pipeThrough(new TransformStream({ async transform({ data: r }, n) {
4530
- r !== "[DONE]" && n.enqueue(await Xt({
4530
+ r !== "[DONE]" && n.enqueue(await Qt({
4531
4531
  text: r,
4532
4532
  schema: t
4533
4533
  }));
@@ -4538,7 +4538,7 @@ async function Le(e) {
4538
4538
  }
4539
4539
  new TextDecoder();
4540
4540
  const Va = "AI_InvalidArgumentError", qa = `vercel.ai.error.${Va}`, fp = Symbol.for(qa);
4541
- var bt = class extends X {
4541
+ var bt = class extends Q {
4542
4542
  constructor({ parameter: e, value: t, message: r }) {
4543
4543
  super({
4544
4544
  name: Va,
@@ -4546,11 +4546,11 @@ var bt = class extends X {
4546
4546
  }), this[fp] = !0, this.parameter = e, this.value = t;
4547
4547
  }
4548
4548
  static isInstance(e) {
4549
- return X.hasMarker(e, qa);
4549
+ return Q.hasMarker(e, qa);
4550
4550
  }
4551
4551
  };
4552
4552
  const Ja = "AI_UIMessageStreamError", Ka = `vercel.ai.error.${Ja}`, mp = Symbol.for(Ka);
4553
- var Ne = class extends X {
4553
+ var Ne = class extends Q {
4554
4554
  constructor({ chunkType: e, chunkId: t, message: r }) {
4555
4555
  super({
4556
4556
  name: Ja,
@@ -4558,7 +4558,7 @@ var Ne = class extends X {
4558
4558
  }), this[mp] = !0, this.chunkType = e, this.chunkId = t;
4559
4559
  }
4560
4560
  static isInstance(e) {
4561
- return X.hasMarker(e, Ka);
4561
+ return Q.hasMarker(e, Ka);
4562
4562
  }
4563
4563
  };
4564
4564
  function Wa(e, t) {
@@ -4767,7 +4767,7 @@ const l = {
4767
4767
  })
4768
4768
  ]))
4769
4769
  })
4770
- ]), Xa = l.object({
4770
+ ]), Qa = l.object({
4771
4771
  type: l.literal("tool-result"),
4772
4772
  toolCallId: l.string(),
4773
4773
  toolName: l.string(),
@@ -4807,13 +4807,13 @@ const l = {
4807
4807
  vp,
4808
4808
  bp,
4809
4809
  xp,
4810
- Xa,
4810
+ Qa,
4811
4811
  _p
4812
4812
  ]))]),
4813
4813
  providerOptions: M.optional()
4814
4814
  }), Ep = l.object({
4815
4815
  role: l.literal("tool"),
4816
- content: l.array(l.union([Xa, Ip])),
4816
+ content: l.array(l.union([Qa, Ip])),
4817
4817
  providerOptions: M.optional()
4818
4818
  });
4819
4819
  l.union([
@@ -5028,11 +5028,11 @@ async function Ap(e) {
5028
5028
  value: void 0,
5029
5029
  state: "undefined-input"
5030
5030
  };
5031
- let t = await Xt({ text: e });
5031
+ let t = await Qt({ text: e });
5032
5032
  return t.success ? {
5033
5033
  value: t.value,
5034
5034
  state: "successful-parse"
5035
- } : (t = await Xt({ text: Tp(e) }), t.success ? {
5035
+ } : (t = await Qt({ text: Tp(e) }), t.success ? {
5036
5036
  value: t.value,
5037
5037
  state: "repaired-parse"
5038
5038
  } : {
@@ -5042,11 +5042,11 @@ async function Ap(e) {
5042
5042
  }
5043
5043
  new TextEncoder();
5044
5044
  new TextEncoder();
5045
- Q({
5045
+ X({
5046
5046
  prefix: "aitxt",
5047
5047
  size: 24
5048
5048
  });
5049
- Q({
5049
+ X({
5050
5050
  prefix: "call",
5051
5051
  size: 24
5052
5052
  });
@@ -5264,10 +5264,10 @@ function Op(e) {
5264
5264
  function he(e) {
5265
5265
  return kt(e) || Op(e);
5266
5266
  }
5267
- function Qt(e) {
5267
+ function Xt(e) {
5268
5268
  return e.type.split("-").slice(1).join("-");
5269
5269
  }
5270
- function Qa({ lastMessage: e, messageId: t }) {
5270
+ function Xa({ lastMessage: e, messageId: t }) {
5271
5271
  const r = (e == null ? void 0 : e.role) === "assistant" ? e : {
5272
5272
  id: t,
5273
5273
  metadata: void 0,
@@ -5281,7 +5281,7 @@ function Qa({ lastMessage: e, messageId: t }) {
5281
5281
  kt(o) && s++, o.state === "input-streaming" && (n[o.toolCallId] = {
5282
5282
  text: o.rawInput ?? "",
5283
5283
  index: c,
5284
- toolName: o.type === "dynamic-tool" ? o.toolName : Qt(o),
5284
+ toolName: o.type === "dynamic-tool" ? o.toolName : Xt(o),
5285
5285
  dynamic: o.type === "dynamic-tool",
5286
5286
  title: o.title,
5287
5287
  toolMetadata: o.toolMetadata
@@ -5645,7 +5645,7 @@ function zp({ stream: e, messageMetadataSchema: t, dataPartSchemas: r, runUpdate
5645
5645
  toolMetadata: i.toolMetadata ?? d.toolMetadata
5646
5646
  }, d) : b({
5647
5647
  toolCallId: i.toolCallId,
5648
- toolName: Qt(d),
5648
+ toolName: Xt(d),
5649
5649
  state: "output-available",
5650
5650
  input: d.input,
5651
5651
  output: i.output,
@@ -5671,7 +5671,7 @@ function zp({ stream: e, messageMetadataSchema: t, dataPartSchemas: r, runUpdate
5671
5671
  toolMetadata: i.toolMetadata ?? d.toolMetadata
5672
5672
  }, d) : b({
5673
5673
  toolCallId: i.toolCallId,
5674
- toolName: Qt(d),
5674
+ toolName: Xt(d),
5675
5675
  state: "output-error",
5676
5676
  input: d.input,
5677
5677
  rawInput: d.rawInput,
@@ -5694,7 +5694,7 @@ function zp({ stream: e, messageMetadataSchema: t, dataPartSchemas: r, runUpdate
5694
5694
  break;
5695
5695
  }
5696
5696
  case "start":
5697
- i.messageId != null && (p || c && i.messageId !== u.message.id) && Object.assign(u, Qa({
5697
+ i.messageId != null && (p || c && i.messageId !== u.message.id) && Object.assign(u, Xa({
5698
5698
  lastMessage: void 0,
5699
5699
  messageId: i.messageId
5700
5700
  }), { finishReason: void 0 }), i.messageId != null && (u.message.id = i.messageId), await h(i.messageMetadata), (i.messageId != null || i.messageMetadata != null) && v({ updateStatus: !1 });
@@ -5762,38 +5762,38 @@ function Pp() {
5762
5762
  reject: t
5763
5763
  };
5764
5764
  }
5765
- Q({
5765
+ X({
5766
5766
  prefix: "aitxt",
5767
5767
  size: 24
5768
5768
  });
5769
- Q({
5769
+ X({
5770
5770
  prefix: "call",
5771
5771
  size: 24
5772
5772
  });
5773
- Q({
5773
+ X({
5774
5774
  prefix: "aitxt",
5775
5775
  size: 24
5776
5776
  });
5777
- Q({
5777
+ X({
5778
5778
  prefix: "call",
5779
5779
  size: 24
5780
5780
  });
5781
5781
  l.record(l.string(), Me.optional());
5782
5782
  l.record(l.string(), l.string());
5783
- Q({
5783
+ X({
5784
5784
  prefix: "call",
5785
5785
  size: 24
5786
5786
  });
5787
- Q({
5787
+ X({
5788
5788
  prefix: "call",
5789
5789
  size: 24
5790
5790
  });
5791
5791
  new TextEncoder();
5792
- Q({
5792
+ X({
5793
5793
  prefix: "call",
5794
5794
  size: 24
5795
5795
  });
5796
- Q({
5796
+ X({
5797
5797
  prefix: "aiobj",
5798
5798
  size: 24
5799
5799
  });
@@ -5830,11 +5830,11 @@ var Rp = class {
5830
5830
  });
5831
5831
  }
5832
5832
  };
5833
- Q({
5833
+ X({
5834
5834
  prefix: "aiobj",
5835
5835
  size: 24
5836
5836
  });
5837
- Q({
5837
+ X({
5838
5838
  prefix: "call",
5839
5839
  size: 24
5840
5840
  });
@@ -5856,15 +5856,15 @@ l.object({
5856
5856
  parameters: l.record(l.string(), l.unknown())
5857
5857
  })).optional()
5858
5858
  });
5859
- Q({
5859
+ X({
5860
5860
  prefix: "call",
5861
5861
  size: 24
5862
5862
  });
5863
- Q({
5863
+ X({
5864
5864
  prefix: "call",
5865
5865
  size: 24
5866
5866
  });
5867
- Q({
5867
+ X({
5868
5868
  prefix: "call",
5869
5869
  size: 24
5870
5870
  });
@@ -5880,7 +5880,7 @@ async function hn({ response: e, url: t, fallbackMessage: r }) {
5880
5880
  }
5881
5881
  async function Zp(e) {
5882
5882
  if (e == null) return [];
5883
- if (!globalThis.FileList || !(e instanceof globalThis.FileList)) throw new Qs({
5883
+ if (!globalThis.FileList || !(e instanceof globalThis.FileList)) throw new Xs({
5884
5884
  functionality: "FileList",
5885
5885
  message: "FileList is not supported in the current environment"
5886
5886
  });
@@ -6282,7 +6282,7 @@ var jp = class {
6282
6282
  let x = !1, b = !1, _ = !1, h;
6283
6283
  try {
6284
6284
  const m = {
6285
- state: e === "resume-stream" && this.resumableStreamState != null ? this.resumableStreamState : Qa({
6285
+ state: e === "resume-stream" && this.resumableStreamState != null ? this.resumableStreamState : Xa({
6286
6286
  lastMessage: e === "resume-stream" ? S : e === "regenerate-message" ? void 0 : this.state.snapshot(I),
6287
6287
  messageId: this.generateId()
6288
6288
  }),
@@ -6600,7 +6600,7 @@ async function Yp(e, t) {
6600
6600
  function Hp(e, t, r) {
6601
6601
  return vr(e, `conversations/${encodeURIComponent(t)}`, r);
6602
6602
  }
6603
- async function Xp(e, t) {
6603
+ async function Qp(e, t) {
6604
6604
  try {
6605
6605
  await gr(`${e.apiServiceUrl}/v1/assistant/conversations/${encodeURIComponent(t)}`, {
6606
6606
  method: "DELETE",
@@ -6617,7 +6617,7 @@ async function vr(e, t, r) {
6617
6617
  ...r ? { signal: r } : {}
6618
6618
  })).json();
6619
6619
  }
6620
- const Qp = {}, ef = "something went wrong while applying it.";
6620
+ const Xp = {}, ef = "something went wrong while applying it.";
6621
6621
  function Ft(e, t, r, n) {
6622
6622
  return { chatId: t, byId: { ...e.chatId === t ? e.byId : {}, [r]: n } };
6623
6623
  }
@@ -6767,7 +6767,7 @@ function nf(e) {
6767
6767
  /** Answering, or applying an answer's change to the dashboard. */
6768
6768
  busy: Ut(u) || s.chatId === p.chat.id && s.count > 0,
6769
6769
  /** Where this session's proposals stand on the dashboard; none for a reopened conversation. */
6770
- proposalStates: n.chatId === p.chat.id ? n.byId : Qp,
6770
+ proposalStates: n.chatId === p.chat.id ? n.byId : Xp,
6771
6771
  undoProposal: N,
6772
6772
  /** A stored conversation is loading; sending waits. */
6773
6773
  loading: _,
@@ -7002,10 +7002,10 @@ function vf({
7002
7002
  p.action
7003
7003
  ] })
7004
7004
  ] }),
7005
- c === "table" ? /* @__PURE__ */ T(Qe, { children: [
7005
+ c === "table" ? /* @__PURE__ */ T(Xe, { children: [
7006
7006
  /* @__PURE__ */ f(po, { columns: e.columns, records: i, className: "mb-0" }),
7007
7007
  /* @__PURE__ */ f(rr, { artifact: e, shown: i.length, onShowAll: () => t(e.artifactId) })
7008
- ] }) : /* @__PURE__ */ T(Qe, { children: [
7008
+ ] }) : /* @__PURE__ */ T(Xe, { children: [
7009
7009
  c === "number" ? /* @__PURE__ */ f(uo, { artifact: e, visual: s }) : /* @__PURE__ */ f(co, { cfg: o, className: "h-[220px]" }),
7010
7010
  /* @__PURE__ */ f(rr, { artifact: e, shown: e.records.length })
7011
7011
  ] }),
@@ -7245,7 +7245,7 @@ function ve(e) {
7245
7245
  return e < 1e3 ? `${Math.round(e)} ms` : `${(e / 1e3).toFixed(1)}s`;
7246
7246
  }
7247
7247
  function kf({ trace: e }) {
7248
- return /* @__PURE__ */ T(Qe, { children: [
7248
+ return /* @__PURE__ */ T(Xe, { children: [
7249
7249
  " · ",
7250
7250
  ve(e.totalMs)
7251
7251
  ] });
@@ -7596,7 +7596,7 @@ function Lf({
7596
7596
  ), I = t ? [...g].reverse().find((w) => w.state === "live") : void 0;
7597
7597
  return /* @__PURE__ */ T("div", { className: "space-y-2", "data-testid": "assistant-answer", "data-message-id": e.id, children: [
7598
7598
  v.map(
7599
- (w, x) => w.type === "text" ? /* @__PURE__ */ f(Qf, { text: w.text }, x) : w.type === "data-refusal" ? /* @__PURE__ */ f("p", { className: "text-[12.5px] leading-[1.6] text-muted-foreground", children: w.data.message }, x) : w.type === "data-artifact" ? /* @__PURE__ */ f(
7599
+ (w, x) => w.type === "text" ? /* @__PURE__ */ f(Xf, { text: w.text }, x) : w.type === "data-refusal" ? /* @__PURE__ */ f("p", { className: "text-[12.5px] leading-[1.6] text-muted-foreground", children: w.data.message }, x) : w.type === "data-artifact" ? /* @__PURE__ */ f(
7600
7600
  vf,
7601
7601
  {
7602
7602
  artifact: w.data.artifact,
@@ -7678,7 +7678,7 @@ function Gf({
7678
7678
  {
7679
7679
  testId: "assistant-answer-details",
7680
7680
  chevron: !1,
7681
- label: /* @__PURE__ */ T(Qe, { children: [
7681
+ label: /* @__PURE__ */ T(Xe, { children: [
7682
7682
  a,
7683
7683
  r ? /* @__PURE__ */ f(kf, { trace: r }) : null
7684
7684
  ] }),
@@ -7727,11 +7727,11 @@ function vo({ step: e }) {
7727
7727
  const t = (e == null ? void 0 : e.label) ?? "Thinking", r = e != null && e.activity ? go[e.activity] : void 0;
7728
7728
  return /* @__PURE__ */ f("div", { className: "flex h-5 min-w-0 items-center", "data-testid": "assistant-working-line", children: /* @__PURE__ */ T("p", { role: "status", "aria-label": t, className: "flex min-w-0 items-center gap-1.5 text-[12px] text-muted-foreground", children: [
7729
7729
  r ? /* @__PURE__ */ f(r, { className: "h-3 w-3 shrink-0", "aria-hidden": "true" }) : null,
7730
- /* @__PURE__ */ f("span", { className: K("min-w-0 truncate", Xf), children: t })
7730
+ /* @__PURE__ */ f("span", { className: K("min-w-0 truncate", Qf), children: t })
7731
7731
  ] }) });
7732
7732
  }
7733
- const Xf = "motion-safe:bg-[linear-gradient(90deg,hsl(var(--semaphor-muted-foreground))_40%,hsl(var(--semaphor-foreground))_50%,hsl(var(--semaphor-muted-foreground))_60%)] motion-safe:bg-[length:200%_100%] motion-safe:bg-clip-text motion-safe:text-transparent motion-safe:animate-assistant-shimmer";
7734
- function Qf({ text: e }) {
7733
+ const Qf = "motion-safe:bg-[linear-gradient(90deg,hsl(var(--semaphor-muted-foreground))_40%,hsl(var(--semaphor-foreground))_50%,hsl(var(--semaphor-muted-foreground))_60%)] motion-safe:bg-[length:200%_100%] motion-safe:bg-clip-text motion-safe:text-transparent motion-safe:animate-assistant-shimmer";
7734
+ function Xf({ text: e }) {
7735
7735
  return /* @__PURE__ */ f("div", { className: "break-words text-[13px] leading-[1.6] text-foreground", children: /* @__PURE__ */ f(
7736
7736
  Lo,
7737
7737
  {
@@ -7777,7 +7777,7 @@ function em({
7777
7777
  }, b = async (h) => {
7778
7778
  S(void 0), v((d) => new Set(d).add(h)), a(h);
7779
7779
  try {
7780
- await Xp(t(), h);
7780
+ await Qp(t(), h);
7781
7781
  } catch (d) {
7782
7782
  v((y) => {
7783
7783
  const m = new Set(y);
@@ -7920,7 +7920,7 @@ function nm({
7920
7920
  /* @__PURE__ */ f(Rn, { align: "start", className: "w-72 p-1.5", children: i.isPending ? /* @__PURE__ */ T("p", { className: "flex items-center gap-1.5 px-1.5 py-1 text-[12px] text-muted-foreground", role: "status", children: [
7921
7921
  /* @__PURE__ */ f(qe, { className: "h-3 w-3 animate-spin" }),
7922
7922
  "Loading"
7923
- ] }) : i.isError ? /* @__PURE__ */ f("p", { className: "px-1.5 py-1 text-[12px] text-muted-foreground", children: "Could not load sources." }) : u.length === 0 ? /* @__PURE__ */ f("p", { className: "px-1.5 py-1 text-[12px] text-muted-foreground", children: "Nothing more to add." }) : /* @__PURE__ */ T(Qe, { children: [
7923
+ ] }) : i.isError ? /* @__PURE__ */ f("p", { className: "px-1.5 py-1 text-[12px] text-muted-foreground", children: "Could not load sources." }) : u.length === 0 ? /* @__PURE__ */ f("p", { className: "px-1.5 py-1 text-[12px] text-muted-foreground", children: "Nothing more to add." }) : /* @__PURE__ */ T(Xe, { children: [
7924
7924
  u.length > tm ? /* @__PURE__ */ f(
7925
7925
  "input",
7926
7926
  {
@@ -8390,9 +8390,9 @@ function wn({ layout: e, onChange: t }) {
8390
8390
  }
8391
8391
  ) }),
8392
8392
  /* @__PURE__ */ T(Ho, { align: "end", className: "w-40", children: [
8393
- /* @__PURE__ */ f(Xo, { className: "text-[11px] font-medium text-muted-foreground", children: "Layout" }),
8393
+ /* @__PURE__ */ f(Qo, { className: "text-[11px] font-medium text-muted-foreground", children: "Layout" }),
8394
8394
  /* @__PURE__ */ f(
8395
- Qo,
8395
+ Xo,
8396
8396
  {
8397
8397
  value: e,
8398
8398
  onValueChange: (a) => {