react-semaphor 0.1.563 → 0.1.564

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/assistant-context/index.js +1 -1
  2. package/dist/briefings/index.js +1 -1
  3. package/dist/chunks/{assistant-chat-iIp02_77.js → assistant-chat-D1BEEHUF.js} +103 -103
  4. package/dist/chunks/{bookmark-impact-D4Kl4amw.js → bookmark-impact-XOsVUAqW.js} +1 -1
  5. package/dist/chunks/{dashboard-CmqeP3QZ.js → dashboard-DfYsASNd.js} +1 -1
  6. package/dist/chunks/{dashboard-briefing-launcher-TYlSW77S.js → dashboard-briefing-launcher-lvYfJoUQ.js} +1429 -1379
  7. package/dist/chunks/{dashboard-controls-B253nJS-.js → dashboard-controls-CJ8Dz50D.js} +58 -58
  8. package/dist/chunks/{dashboard-json-osQuinUZ.js → dashboard-json-D3uZxGO-.js} +1 -1
  9. package/dist/chunks/{dates-DFY7Gfss.js → dates-EvDtT25n.js} +5 -5
  10. package/dist/chunks/{edit-dashboard-visual-CMar-NhA.js → edit-dashboard-visual-CgHJXBQv.js} +8 -8
  11. package/dist/chunks/{filter-reach-copy-CvV7W5dd.js → filter-reach-copy-Cmb05jlE.js} +106 -106
  12. package/dist/chunks/{global-date-filter-utils-N1kcsOFE.js → global-date-filter-utils-ruJYwjgZ.js} +3034 -3023
  13. package/dist/chunks/{index-CNGkfUp4.js → index-CAgf2x4E.js} +2 -2
  14. package/dist/chunks/index-RNaTnE3m.js +585 -0
  15. package/dist/chunks/{report-preferences-dialog-l54wJyYE.js → report-preferences-dialog-DMqxSU4X.js} +7 -7
  16. package/dist/chunks/{resolve-dashboard-input-context-DaDrZGuA.js → resolve-dashboard-input-context-i_jCSYae.js} +370 -370
  17. package/dist/chunks/{saved-dashboard-context-DFYBrE6O.js → saved-dashboard-context-Dg3oDmH_.js} +2 -2
  18. package/dist/chunks/{semaphor-ready-indicator-C3EQEiD9.js → semaphor-ready-indicator-CFeCIuaw.js} +8045 -8041
  19. package/dist/chunks/{shelf-drop-preview-context-BODiBlqT.js → shelf-drop-preview-context-cEyVkKTF.js} +2 -2
  20. package/dist/chunks/{use-create-flow-overlay-state-BXY8-Cyz.js → use-create-flow-overlay-state-Dl6DCxh8.js} +2 -2
  21. package/dist/dashboard/index.js +1 -1
  22. package/dist/dashboard-authoring/index.js +615 -594
  23. package/dist/index.js +13 -13
  24. package/dist/layouts/index.js +1 -1
  25. package/dist/surfboard/index.js +1 -1
  26. package/dist/types/components/activity/activity-bell.d.ts +5 -1
  27. package/dist/types/components/activity/activity-types.d.ts +12 -4
  28. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +6 -1
  29. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +1 -1
  30. package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +8 -1
  31. package/dist/types/shared/dashboard-authoring/measure-calculations/schemas.d.ts +1 -1
  32. package/package.json +1 -1
  33. package/dist/chunks/index-CJW5BdWT.js +0 -583
@@ -4,9 +4,9 @@ var $r = (e) => {
4
4
  var Or = (e, t, r) => t.has(e) || $r("Cannot " + r);
5
5
  var L = (e, t, r) => (Or(e, t, "read from private field"), r ? r.call(e) : t.get(e)), me = (e, t, r) => t.has(e) ? $r("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), ee = (e, t, r, n) => (Or(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r);
6
6
  import { jsx as p, jsxs as k, Fragment as Le } from "react/jsx-runtime";
7
- import { useCallback as te, useRef as ie, useMemo as it, useEffect as ke, useState as j, useLayoutEffect as Ue, useId as As } from "react";
8
- import { u as X, du as Cs, ba as $s, bu as Os, Y as zs, dv as Ms, dw as Ps, Z as zr, b7 as Rs, dx as Zs, aR as Ds, bp as js, dy as dr, cR as Fs, dz as Ls, dA as Mt, dB as Cn, dC as Us, a$ as Pt, cm as Mr, dD as $n, $ as Bs, cg as On, bx as Vs, c9 as qs, aS as zn, di as Mn, dE as Js, dF as Ks, bD as Ws, dG as Gs, dH as Hs, dI as Ys, cj as Qs, ck as Xs, cS as eo, cl as to, cr as ro, dJ as no, c6 as Lt, cq as ao, cv as so, c8 as Pn, b5 as Rn, b8 as oo, bo as xt, b3 as Zn, dK as io, dL as lo, dM as co, dN as uo, a6 as Dn, dO as po } from "./semaphor-ready-indicator-C3EQEiD9.js";
9
- import { c as qe, B as H, X as lt, j as jn, k as fo, d as mt, L as Be, I as Fn, R as Ln, P as Un, a as Bn, b as Vn } from "./switch-BW4yXSYs.js";
7
+ import { useCallback as te, useRef as ie, useMemo as it, useEffect as ke, useState as D, useLayoutEffect as Ue, useId as As } from "react";
8
+ import { u as X, dv as Cs, ba as $s, bu as Os, Y as zs, dw as Ms, dx as Ps, Z as zr, b7 as Rs, dy as Zs, aR as js, bp as Ds, dz as dr, cR as Fs, dA as Ls, dB as Mt, dC as Cn, dD as Us, a$ as Pt, cm as Mr, dE as $n, $ as Bs, cg as On, bx as Vs, c9 as qs, aS as zn, dj as Mn, dF as Js, dG as Ks, bD as Ws, dH as Gs, dI as Hs, dJ as Ys, cj as Qs, ck as Xs, cS as eo, cl as to, cr as ro, dK as no, c6 as Lt, cq as ao, cv as so, c8 as Pn, b5 as Rn, b8 as oo, bo as xt, b3 as Zn, dL as io, dM as lo, dN as co, dO as uo, a6 as jn, dP as po } from "./semaphor-ready-indicator-CFeCIuaw.js";
9
+ import { c as qe, B as H, X as lt, j as Dn, k as fo, d as mt, L as Be, I as Fn, R as Ln, P as Un, a as Bn, b as Vn } from "./switch-BW4yXSYs.js";
10
10
  import "./index-CuHybtft.js";
11
11
  import "./validators-BIM0FE31.js";
12
12
  import "./matrix-operation-contract-DsLdFdSa.js";
@@ -16,13 +16,13 @@ import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as mo } from "../value-format
16
16
  import { g as ho, c as B } from "./_commonjsHelpers-DimLPMtv.js";
17
17
  import { N as go } from "./bookmark-state-CWeoGbrx.js";
18
18
  import { l as bo, m as ct, c as Xt, A as et, d as qn } from "./context-R31TSL5V.js";
19
- import { p as Pr, a as vo, A as Jn } from "./saved-dashboard-context-DFYBrE6O.js";
20
- import { fF as yo, a$ as xo, eQ as Rr } from "./global-date-filter-utils-N1kcsOFE.js";
21
- import { o as Kn, p as wo } from "./report-preferences-dialog-l54wJyYE.js";
22
- import { q as _o } from "./resolve-dashboard-input-context-DaDrZGuA.js";
19
+ import { p as Pr, a as vo, A as Jn } from "./saved-dashboard-context-Dg3oDmH_.js";
20
+ import { fG as yo, a$ as xo, eR as Rr } from "./global-date-filter-utils-ruJYwjgZ.js";
21
+ import { o as Kn, p as wo } from "./report-preferences-dialog-DMqxSU4X.js";
22
+ import { q as _o } from "./resolve-dashboard-input-context-i_jCSYae.js";
23
23
  import { w as Io, c as Wn } from "./visual-choice-JiJ-_3bi.js";
24
24
  import { m as So, v as Gn, t as No, n as ko, k as ve, d as Eo, b as To, l as pr, w as Ao, h as Co, s as er, f as $o, a as Oo } from "./model-change-T1cRkh3m.js";
25
- import { aK as zo, aL as Mo, aM as Po, aN as wt, aO as Ro, aP as Zr, aQ as Dr, aR as jr, aS as Fr, aT as Lr, aU as Zo, ac as Do, aa as jo } from "./temporal-input-presentation-sk9gqLi6.js";
25
+ import { aK as zo, aL as Mo, aM as Po, aN as wt, aO as Ro, aP as Zr, aQ as jr, aR as Dr, aS as Fr, aT as Lr, aU as Zo, ac as jo, aa as Do } from "./temporal-input-presentation-sk9gqLi6.js";
26
26
  import { L as Fo } from "./list-filter-BoeLBfL3.js";
27
27
  import { L as Ur } from "./layout-grid-BM65viQh.js";
28
28
  function Lo(e, t, r) {
@@ -37,7 +37,7 @@ function Lo(e, t, r) {
37
37
  s > 0 ? (c = wt(t), f = wt(e)) : (c = wt(e), f = wt(t));
38
38
  const i = Ro((r == null ? void 0 : r.roundingMethod) ?? "round"), g = f.getTime() - c.getTime(), u = g / Lr, m = Zr(f) - Zr(c), w = (g - m) / Lr, I = r == null ? void 0 : r.unit;
39
39
  let E;
40
- if (I ? E = I : u < 1 ? E = "second" : u < 60 ? E = "minute" : u < Dr ? E = "hour" : w < jr ? E = "day" : w < Fr ? E = "month" : E = "year", E === "second") {
40
+ if (I ? E = I : u < 1 ? E = "second" : u < 60 ? E = "minute" : u < jr ? E = "hour" : w < Dr ? E = "day" : w < Fr ? E = "month" : E = "year", E === "second") {
41
41
  const _ = i(g / 1e3);
42
42
  return a.formatDistance("xSeconds", _, o);
43
43
  } else if (E === "minute") {
@@ -47,10 +47,10 @@ function Lo(e, t, r) {
47
47
  const _ = i(u / 60);
48
48
  return a.formatDistance("xHours", _, o);
49
49
  } else if (E === "day") {
50
- const _ = i(w / Dr);
50
+ const _ = i(w / jr);
51
51
  return a.formatDistance("xDays", _, o);
52
52
  } else if (E === "month") {
53
- const _ = i(w / jr);
53
+ const _ = i(w / Dr);
54
54
  return _ === 12 && I !== "month" ? a.formatDistance("xYears", 1, o) : a.formatDistance("xMonths", _, o);
55
55
  } else {
56
56
  const _ = i(w / Fr);
@@ -457,7 +457,7 @@ function di(e, t) {
457
457
  const r = (e.toString().split(".")[1] || "").length, n = (t.toString().split(".")[1] || "").length, a = r > n ? r : n, s = Number.parseInt(e.toFixed(a).replace(".", "")), o = Number.parseInt(t.toFixed(a).replace(".", ""));
458
458
  return s % o / 10 ** a;
459
459
  }
460
- function D(e, t, r) {
460
+ function j(e, t, r) {
461
461
  Object.defineProperty(e, t, {
462
462
  get() {
463
463
  {
@@ -757,10 +757,10 @@ const Si = (e) => (t, r, n, a) => {
757
757
  error: new e(s.issues.map((o) => Te(o, a, Ee())))
758
758
  } : { success: !0, data: s.value };
759
759
  }, Ei = /* @__PURE__ */ wa(ya), Ti = /^[cC][^\s-]{8,}$/, Ai = /^[0-9a-z]+$/, Ci = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, $i = /^[0-9a-vA-V]{20}$/, Oi = /^[A-Za-z0-9]{27}$/, zi = /^[a-zA-Z0-9_-]{21}$/, Mi = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Pi = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, Jr = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/, Ri = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Zi = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
760
- function Di() {
760
+ function ji() {
761
761
  return new RegExp(Zi, "u");
762
762
  }
763
- const ji = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Fi = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/, Li = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Ui = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Bi = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, _a = /^[A-Za-z0-9_-]*$/, Vi = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/, qi = /^\+(?:[0-9]){6,14}[0-9]$/, Ia = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Ji = /* @__PURE__ */ new RegExp(`^${Ia}$`);
763
+ const Di = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Fi = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/, Li = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Ui = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Bi = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, _a = /^[A-Za-z0-9_-]*$/, Vi = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/, qi = /^\+(?:[0-9]){6,14}[0-9]$/, Ia = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Ji = /* @__PURE__ */ new RegExp(`^${Ia}$`);
764
764
  function Sa(e) {
765
765
  const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
766
766
  return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
@@ -1211,7 +1211,7 @@ const hl = {
1211
1211
  }
1212
1212
  };
1213
1213
  }), xl = /* @__PURE__ */ S("$ZodEmoji", (e, t) => {
1214
- t.pattern ?? (t.pattern = Di()), V.init(e, t);
1214
+ t.pattern ?? (t.pattern = ji()), V.init(e, t);
1215
1215
  }), wl = /* @__PURE__ */ S("$ZodNanoID", (e, t) => {
1216
1216
  t.pattern ?? (t.pattern = zi), V.init(e, t);
1217
1217
  }), _l = /* @__PURE__ */ S("$ZodCUID", (e, t) => {
@@ -1233,7 +1233,7 @@ const hl = {
1233
1233
  }), Cl = /* @__PURE__ */ S("$ZodISODuration", (e, t) => {
1234
1234
  t.pattern ?? (t.pattern = Mi), V.init(e, t);
1235
1235
  }), $l = /* @__PURE__ */ S("$ZodIPv4", (e, t) => {
1236
- t.pattern ?? (t.pattern = ji), V.init(e, t), e._zod.onattach.push((r) => {
1236
+ t.pattern ?? (t.pattern = Di), V.init(e, t), e._zod.onattach.push((r) => {
1237
1237
  const n = r._zod.bag;
1238
1238
  n.format = "ipv4";
1239
1239
  });
@@ -1321,10 +1321,10 @@ const Zl = /* @__PURE__ */ S("$ZodBase64URL", (e, t) => {
1321
1321
  continue: !t.abort
1322
1322
  });
1323
1323
  };
1324
- }), Dl = /* @__PURE__ */ S("$ZodE164", (e, t) => {
1324
+ }), jl = /* @__PURE__ */ S("$ZodE164", (e, t) => {
1325
1325
  t.pattern ?? (t.pattern = qi), V.init(e, t);
1326
1326
  });
1327
- function jl(e, t = null) {
1327
+ function Dl(e, t = null) {
1328
1328
  try {
1329
1329
  const r = e.split(".");
1330
1330
  if (r.length !== 3)
@@ -1340,7 +1340,7 @@ function jl(e, t = null) {
1340
1340
  }
1341
1341
  const Fl = /* @__PURE__ */ S("$ZodJWT", (e, t) => {
1342
1342
  V.init(e, t), e._zod.check = (r) => {
1343
- jl(r.value, t.alg) || r.issues.push({
1343
+ Dl(r.value, t.alg) || r.issues.push({
1344
1344
  code: "invalid_format",
1345
1345
  format: "jwt",
1346
1346
  input: r.value,
@@ -1451,7 +1451,7 @@ const Kl = /* @__PURE__ */ S("$ZodObject", (e, t) => {
1451
1451
  optionalKeys: new Set(m)
1452
1452
  };
1453
1453
  });
1454
- D(e._zod, "propValues", () => {
1454
+ j(e._zod, "propValues", () => {
1455
1455
  const u = t.shape, m = {};
1456
1456
  for (const w in u) {
1457
1457
  const I = u[w]._zod;
@@ -1568,10 +1568,10 @@ function Gr(e, t, r, n) {
1568
1568
  }), t;
1569
1569
  }
1570
1570
  const Ca = /* @__PURE__ */ S("$ZodUnion", (e, t) => {
1571
- U.init(e, t), D(e._zod, "optin", () => t.options.some((r) => r._zod.optin === "optional") ? "optional" : void 0), D(e._zod, "optout", () => t.options.some((r) => r._zod.optout === "optional") ? "optional" : void 0), D(e._zod, "values", () => {
1571
+ U.init(e, t), j(e._zod, "optin", () => t.options.some((r) => r._zod.optin === "optional") ? "optional" : void 0), j(e._zod, "optout", () => t.options.some((r) => r._zod.optout === "optional") ? "optional" : void 0), j(e._zod, "values", () => {
1572
1572
  if (t.options.every((r) => r._zod.values))
1573
1573
  return new Set(t.options.flatMap((r) => Array.from(r._zod.values)));
1574
- }), D(e._zod, "pattern", () => {
1574
+ }), j(e._zod, "pattern", () => {
1575
1575
  if (t.options.every((r) => r._zod.pattern)) {
1576
1576
  const r = t.options.map((n) => n._zod.pattern);
1577
1577
  return new RegExp(`^(${r.map((n) => hr(n.source)).join("|")})$`);
@@ -1597,7 +1597,7 @@ const Ca = /* @__PURE__ */ S("$ZodUnion", (e, t) => {
1597
1597
  }), Wl = /* @__PURE__ */ S("$ZodDiscriminatedUnion", (e, t) => {
1598
1598
  Ca.init(e, t);
1599
1599
  const r = e._zod.parse;
1600
- D(e._zod, "propValues", () => {
1600
+ j(e._zod, "propValues", () => {
1601
1601
  const a = {};
1602
1602
  for (const s of t.options) {
1603
1603
  const o = s._zod.propValues;
@@ -1782,17 +1782,17 @@ const Hl = /* @__PURE__ */ S("$ZodRecord", (e, t) => {
1782
1782
  return r.value = a, r;
1783
1783
  };
1784
1784
  }), ec = /* @__PURE__ */ S("$ZodOptional", (e, t) => {
1785
- U.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", D(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), D(e._zod, "pattern", () => {
1785
+ U.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", j(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), j(e._zod, "pattern", () => {
1786
1786
  const r = t.innerType._zod.pattern;
1787
1787
  return r ? new RegExp(`^(${hr(r.source)})?$`) : void 0;
1788
1788
  }), e._zod.parse = (r, n) => t.innerType._zod.optin === "optional" ? t.innerType._zod.run(r, n) : r.value === void 0 ? r : t.innerType._zod.run(r, n);
1789
1789
  }), tc = /* @__PURE__ */ S("$ZodNullable", (e, t) => {
1790
- U.init(e, t), D(e._zod, "optin", () => t.innerType._zod.optin), D(e._zod, "optout", () => t.innerType._zod.optout), D(e._zod, "pattern", () => {
1790
+ U.init(e, t), j(e._zod, "optin", () => t.innerType._zod.optin), j(e._zod, "optout", () => t.innerType._zod.optout), j(e._zod, "pattern", () => {
1791
1791
  const r = t.innerType._zod.pattern;
1792
1792
  return r ? new RegExp(`^(${hr(r.source)}|null)$`) : void 0;
1793
- }), D(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (r, n) => r.value === null ? r : t.innerType._zod.run(r, n);
1793
+ }), j(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (r, n) => r.value === null ? r : t.innerType._zod.run(r, n);
1794
1794
  }), rc = /* @__PURE__ */ S("$ZodDefault", (e, t) => {
1795
- U.init(e, t), e._zod.optin = "optional", D(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
1795
+ U.init(e, t), e._zod.optin = "optional", j(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
1796
1796
  if (r.value === void 0)
1797
1797
  return r.value = t.defaultValue, r;
1798
1798
  const a = t.innerType._zod.run(r, n);
@@ -1803,9 +1803,9 @@ function Yr(e, t) {
1803
1803
  return e.value === void 0 && (e.value = t.defaultValue), e;
1804
1804
  }
1805
1805
  const nc = /* @__PURE__ */ S("$ZodPrefault", (e, t) => {
1806
- U.init(e, t), e._zod.optin = "optional", D(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => (r.value === void 0 && (r.value = t.defaultValue), t.innerType._zod.run(r, n));
1806
+ U.init(e, t), e._zod.optin = "optional", j(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => (r.value === void 0 && (r.value = t.defaultValue), t.innerType._zod.run(r, n));
1807
1807
  }), ac = /* @__PURE__ */ S("$ZodNonOptional", (e, t) => {
1808
- U.init(e, t), D(e._zod, "values", () => {
1808
+ U.init(e, t), j(e._zod, "values", () => {
1809
1809
  const r = t.innerType._zod.values;
1810
1810
  return r ? new Set([...r].filter((n) => n !== void 0)) : void 0;
1811
1811
  }), e._zod.parse = (r, n) => {
@@ -1822,7 +1822,7 @@ function Qr(e, t) {
1822
1822
  }), e;
1823
1823
  }
1824
1824
  const sc = /* @__PURE__ */ S("$ZodCatch", (e, t) => {
1825
- U.init(e, t), e._zod.optin = "optional", D(e._zod, "optout", () => t.innerType._zod.optout), D(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
1825
+ U.init(e, t), e._zod.optin = "optional", j(e._zod, "optout", () => t.innerType._zod.optout), j(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
1826
1826
  const a = t.innerType._zod.run(r, n);
1827
1827
  return a instanceof Promise ? a.then((s) => (r.value = s.value, s.issues.length && (r.value = t.catchValue({
1828
1828
  ...r,
@@ -1839,7 +1839,7 @@ const sc = /* @__PURE__ */ S("$ZodCatch", (e, t) => {
1839
1839
  }), r.issues = []), r);
1840
1840
  };
1841
1841
  }), oc = /* @__PURE__ */ S("$ZodPipe", (e, t) => {
1842
- U.init(e, t), D(e._zod, "values", () => t.in._zod.values), D(e._zod, "optin", () => t.in._zod.optin), D(e._zod, "optout", () => t.out._zod.optout), e._zod.parse = (r, n) => {
1842
+ U.init(e, t), j(e._zod, "values", () => t.in._zod.values), j(e._zod, "optin", () => t.in._zod.optin), j(e._zod, "optout", () => t.out._zod.optout), e._zod.parse = (r, n) => {
1843
1843
  const a = t.in._zod.run(r, n);
1844
1844
  return a instanceof Promise ? a.then((s) => Xr(s, t, n)) : Xr(a, t, n);
1845
1845
  };
@@ -1848,7 +1848,7 @@ function Xr(e, t, r) {
1848
1848
  return ot(e) ? e : t.out._zod.run({ value: e.value, issues: e.issues }, r);
1849
1849
  }
1850
1850
  const ic = /* @__PURE__ */ S("$ZodReadonly", (e, t) => {
1851
- U.init(e, t), D(e._zod, "propValues", () => t.innerType._zod.propValues), D(e._zod, "values", () => t.innerType._zod.values), D(e._zod, "optin", () => t.innerType._zod.optin), D(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (r, n) => {
1851
+ U.init(e, t), j(e._zod, "propValues", () => t.innerType._zod.propValues), j(e._zod, "values", () => t.innerType._zod.values), j(e._zod, "optin", () => t.innerType._zod.optin), j(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (r, n) => {
1852
1852
  const a = t.innerType._zod.run(r, n);
1853
1853
  return a instanceof Promise ? a.then(en) : en(a);
1854
1854
  };
@@ -1857,7 +1857,7 @@ function en(e) {
1857
1857
  return e.value = Object.freeze(e.value), e;
1858
1858
  }
1859
1859
  const lc = /* @__PURE__ */ S("$ZodLazy", (e, t) => {
1860
- U.init(e, t), D(e._zod, "innerType", () => t.getter()), D(e._zod, "pattern", () => e._zod.innerType._zod.pattern), D(e._zod, "propValues", () => e._zod.innerType._zod.propValues), D(e._zod, "optin", () => e._zod.innerType._zod.optin), D(e._zod, "optout", () => e._zod.innerType._zod.optout), e._zod.parse = (r, n) => e._zod.innerType._zod.run(r, n);
1860
+ U.init(e, t), j(e._zod, "innerType", () => t.getter()), j(e._zod, "pattern", () => e._zod.innerType._zod.pattern), j(e._zod, "propValues", () => e._zod.innerType._zod.propValues), j(e._zod, "optin", () => e._zod.innerType._zod.optin), j(e._zod, "optout", () => e._zod.innerType._zod.optout), e._zod.parse = (r, n) => e._zod.innerType._zod.run(r, n);
1861
1861
  }), cc = /* @__PURE__ */ S("$ZodCustom", (e, t) => {
1862
1862
  le.init(e, t), U.init(e, t), e._zod.parse = (r, n) => r, e._zod.check = (r) => {
1863
1863
  const n = r.value, a = t.fn(n);
@@ -2167,7 +2167,7 @@ function Zc(e, t) {
2167
2167
  ...$(t)
2168
2168
  });
2169
2169
  }
2170
- function Dc(e, t) {
2170
+ function jc(e, t) {
2171
2171
  return new e({
2172
2172
  type: "number",
2173
2173
  check: "number_format",
@@ -2176,7 +2176,7 @@ function Dc(e, t) {
2176
2176
  ...$(t)
2177
2177
  });
2178
2178
  }
2179
- function jc(e, t) {
2179
+ function Dc(e, t) {
2180
2180
  return new e({
2181
2181
  type: "boolean",
2182
2182
  ...$(t)
@@ -2910,9 +2910,9 @@ const du = (e, t) => {
2910
2910
  // enumerable: false,
2911
2911
  }
2912
2912
  });
2913
- }, Dt = S("ZodError", du, {
2913
+ }, jt = S("ZodError", du, {
2914
2914
  Parent: Error
2915
- }), pu = /* @__PURE__ */ Si(Dt), fu = /* @__PURE__ */ Ni(Dt), mu = /* @__PURE__ */ xa(Dt), Ma = /* @__PURE__ */ wa(Dt), q = /* @__PURE__ */ S("ZodType", (e, t) => (U.init(e, t), e.def = t, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(
2915
+ }), pu = /* @__PURE__ */ Si(jt), fu = /* @__PURE__ */ Ni(jt), mu = /* @__PURE__ */ xa(jt), Ma = /* @__PURE__ */ wa(jt), q = /* @__PURE__ */ S("ZodType", (e, t) => (U.init(e, t), e.def = t, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(
2916
2916
  {
2917
2917
  ...t,
2918
2918
  checks: [
@@ -2921,7 +2921,7 @@ const du = (e, t) => {
2921
2921
  ]
2922
2922
  }
2923
2923
  // { parent: true }
2924
- ), e.clone = (r, n) => Je(e, r, n), e.brand = () => e, e.register = (r, n) => (r.add(e, n), e), e.parse = (r, n) => pu(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => mu(e, r, n), e.parseAsync = async (r, n) => fu(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => Ma(e, r, n), e.spa = e.safeParseAsync, e.refine = (r, n) => e.check(gd(r, n)), e.superRefine = (r) => e.check(bd(r)), e.overwrite = (r) => e.check(gt(r)), e.optional = () => un(e), e.nullable = () => dn(e), e.nullish = () => un(dn(e)), e.nonoptional = (r) => od(e, r), e.array = () => Da(e), e.or = (r) => La([e, r]), e.and = (r) => Wu(e, r), e.transform = (r) => pn(e, ed(r)), e.default = (r) => nd(e, r), e.prefault = (r) => sd(e, r), e.catch = (r) => ld(e, r), e.pipe = (r) => pn(e, r), e.readonly = () => dd(e), e.describe = (r) => {
2924
+ ), e.clone = (r, n) => Je(e, r, n), e.brand = () => e, e.register = (r, n) => (r.add(e, n), e), e.parse = (r, n) => pu(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => mu(e, r, n), e.parseAsync = async (r, n) => fu(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => Ma(e, r, n), e.spa = e.safeParseAsync, e.refine = (r, n) => e.check(gd(r, n)), e.superRefine = (r) => e.check(bd(r)), e.overwrite = (r) => e.check(gt(r)), e.optional = () => un(e), e.nullable = () => dn(e), e.nullish = () => un(dn(e)), e.nonoptional = (r) => od(e, r), e.array = () => ja(e), e.or = (r) => La([e, r]), e.and = (r) => Wu(e, r), e.transform = (r) => pn(e, ed(r)), e.default = (r) => nd(e, r), e.prefault = (r) => sd(e, r), e.catch = (r) => ld(e, r), e.pipe = (r) => pn(e, r), e.readonly = () => dd(e), e.describe = (r) => {
2925
2925
  const n = e.clone();
2926
2926
  return st.add(n, { description: r }), n;
2927
2927
  }, Object.defineProperty(e, "description", {
@@ -2982,7 +2982,7 @@ const J = /* @__PURE__ */ S("ZodStringFormat", (e, t) => {
2982
2982
  }), $u = /* @__PURE__ */ S("ZodBase64URL", (e, t) => {
2983
2983
  Zl.init(e, t), J.init(e, t);
2984
2984
  }), Ou = /* @__PURE__ */ S("ZodE164", (e, t) => {
2985
- Dl.init(e, t), J.init(e, t);
2985
+ jl.init(e, t), J.init(e, t);
2986
2986
  }), zu = /* @__PURE__ */ S("ZodJWT", (e, t) => {
2987
2987
  Fl.init(e, t), J.init(e, t);
2988
2988
  }), Ra = /* @__PURE__ */ S("ZodNumber", (e, t) => {
@@ -2997,19 +2997,19 @@ const Pu = /* @__PURE__ */ S("ZodNumberFormat", (e, t) => {
2997
2997
  Ll.init(e, t), Ra.init(e, t);
2998
2998
  });
2999
2999
  function cn(e) {
3000
- return Dc(Pu, e);
3000
+ return jc(Pu, e);
3001
3001
  }
3002
3002
  const Ru = /* @__PURE__ */ S("ZodBoolean", (e, t) => {
3003
3003
  Ul.init(e, t), q.init(e, t);
3004
3004
  });
3005
3005
  function Zu(e) {
3006
- return jc(Ru, e);
3006
+ return Dc(Ru, e);
3007
3007
  }
3008
- const Du = /* @__PURE__ */ S("ZodNull", (e, t) => {
3008
+ const ju = /* @__PURE__ */ S("ZodNull", (e, t) => {
3009
3009
  Bl.init(e, t), q.init(e, t);
3010
3010
  });
3011
- function ju(e) {
3012
- return Fc(Du, e);
3011
+ function Du(e) {
3012
+ return Fc(ju, e);
3013
3013
  }
3014
3014
  const Fu = /* @__PURE__ */ S("ZodUnknown", (e, t) => {
3015
3015
  Vl.init(e, t), q.init(e, t);
@@ -3026,11 +3026,11 @@ function Za(e) {
3026
3026
  const Uu = /* @__PURE__ */ S("ZodArray", (e, t) => {
3027
3027
  Jl.init(e, t), q.init(e, t), e.element = t.element, e.min = (r, n) => e.check($t(r, n)), e.nonempty = (r) => e.check($t(1, r)), e.max = (r, n) => e.check(Oa(r, n)), e.length = (r, n) => e.check(za(r, n)), e.unwrap = () => e.element;
3028
3028
  });
3029
- function Da(e, t) {
3029
+ function ja(e, t) {
3030
3030
  return Xc(Uu, e, t);
3031
3031
  }
3032
- const ja = /* @__PURE__ */ S("ZodObject", (e, t) => {
3033
- Kl.init(e, t), q.init(e, t), D(e, "shape", () => t.shape), e.keyof = () => Ua(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Ot() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Ot() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Za() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => vi(e, r), e.merge = (r) => yi(e, r), e.pick = (r) => gi(e, r), e.omit = (r) => bi(e, r), e.partial = (...r) => xi(Ba, e, r[0]), e.required = (...r) => wi(Va, e, r[0]);
3032
+ const Da = /* @__PURE__ */ S("ZodObject", (e, t) => {
3033
+ Kl.init(e, t), q.init(e, t), j(e, "shape", () => t.shape), e.keyof = () => Ua(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Ot() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Ot() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Za() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => vi(e, r), e.merge = (r) => yi(e, r), e.pick = (r) => gi(e, r), e.omit = (r) => bi(e, r), e.partial = (...r) => xi(Ba, e, r[0]), e.required = (...r) => wi(Va, e, r[0]);
3034
3034
  });
3035
3035
  function Bu(e, t) {
3036
3036
  const r = {
@@ -3040,10 +3040,10 @@ function Bu(e, t) {
3040
3040
  },
3041
3041
  ...$(t)
3042
3042
  };
3043
- return new ja(r);
3043
+ return new Da(r);
3044
3044
  }
3045
3045
  function Vu(e, t) {
3046
- return new ja({
3046
+ return new Da({
3047
3047
  type: "object",
3048
3048
  get shape() {
3049
3049
  return Rt(this, "shape", { ...e }), this.shape;
@@ -3684,8 +3684,8 @@ function Zd(e) {
3684
3684
  enum: Array.from(e.values)
3685
3685
  };
3686
3686
  }
3687
- const Dd = (e) => "type" in e && e.type === "string" ? !1 : "allOf" in e;
3688
- function jd(e, t) {
3687
+ const jd = (e) => "type" in e && e.type === "string" ? !1 : "allOf" in e;
3688
+ function Dd(e, t) {
3689
3689
  const r = [F(e.left._def, {
3690
3690
  ...t,
3691
3691
  currentPath: [
@@ -3702,7 +3702,7 @@ function jd(e, t) {
3702
3702
  ]
3703
3703
  })].filter((a) => !!a), n = [];
3704
3704
  return r.forEach((a) => {
3705
- if (Dd(a)) n.push(...a.allOf);
3705
+ if (jd(a)) n.push(...a.allOf);
3706
3706
  else {
3707
3707
  let s = a;
3708
3708
  if ("additionalProperties" in a && a.additionalProperties === !1) {
@@ -4249,7 +4249,7 @@ const ip = (e, t) => F(e.innerType._def, t), lp = (e, t, r) => {
4249
4249
  case "ZodDiscriminatedUnion":
4250
4250
  return Kd(e, r);
4251
4251
  case "ZodIntersection":
4252
- return jd(e, r);
4252
+ return Dd(e, r);
4253
4253
  case "ZodTuple":
4254
4254
  return ap(e, r);
4255
4255
  case "ZodRecord":
@@ -4400,7 +4400,7 @@ function mp(e) {
4400
4400
  let t;
4401
4401
  return () => (t == null && (t = e()), t);
4402
4402
  }
4403
- function jt(e, { validate: t } = {}) {
4403
+ function Dt(e, { validate: t } = {}) {
4404
4404
  return {
4405
4405
  [sr]: !0,
4406
4406
  _type: void 0,
@@ -4414,14 +4414,14 @@ function hp(e) {
4414
4414
  return typeof e == "object" && e !== null && sr in e && e[sr] === !0 && "jsonSchema" in e && "validate" in e;
4415
4415
  }
4416
4416
  function gp(e) {
4417
- return e == null ? jt({
4417
+ return e == null ? Dt({
4418
4418
  type: "object",
4419
4419
  properties: {},
4420
4420
  additionalProperties: !1
4421
4421
  }) : hp(e) ? e : "~standard" in e ? e["~standard"].vendor === "zod" ? Ga(e) : bp(e) : e();
4422
4422
  }
4423
4423
  function bp(e) {
4424
- return jt(() => {
4424
+ return Dt(() => {
4425
4425
  if (!vp(e)) throw new Error(`Standard schema vendor '${e["~standard"].vendor}' does not support JSON Schema conversion.`);
4426
4426
  return yr(e["~standard"].jsonSchema.input({ target: "draft-07" }));
4427
4427
  }, { validate: async (t) => {
@@ -4442,7 +4442,7 @@ function vp(e) {
4442
4442
  return e["~standard"].jsonSchema != null;
4443
4443
  }
4444
4444
  function yp(e, t) {
4445
- return jt(() => fp(e, { $refStrategy: "none" }), { validate: async (r) => {
4445
+ return Dt(() => fp(e, { $refStrategy: "none" }), { validate: async (r) => {
4446
4446
  const n = await e.safeParseAsync(r);
4447
4447
  return n.success ? {
4448
4448
  success: !0,
@@ -4454,7 +4454,7 @@ function yp(e, t) {
4454
4454
  } });
4455
4455
  }
4456
4456
  function xp(e, t) {
4457
- return jt(() => yr(ru(e, {
4457
+ return Dt(() => yr(ru(e, {
4458
4458
  target: "draft-7",
4459
4459
  io: "input",
4460
4460
  reused: "inline"
@@ -4595,7 +4595,7 @@ function ts(e, t) {
4595
4595
  return r;
4596
4596
  }
4597
4597
  const l = {
4598
- array: Da,
4598
+ array: ja,
4599
4599
  boolean: Zu,
4600
4600
  custom: hd,
4601
4601
  discriminatedUnion: Ju,
@@ -4605,7 +4605,7 @@ const l = {
4605
4605
  literal: Qu,
4606
4606
  looseObject: Vu,
4607
4607
  never: Za,
4608
- null: ju,
4608
+ null: Du,
4609
4609
  number: Mu,
4610
4610
  object: Bu,
4611
4611
  record: Hu,
@@ -4841,7 +4841,7 @@ l.union([
4841
4841
  Rp,
4842
4842
  Zp
4843
4843
  ]);
4844
- function Dp(e) {
4844
+ function jp(e) {
4845
4845
  const t = ["ROOT"];
4846
4846
  let r = -1, n = null, a = 0;
4847
4847
  function s(g) {
@@ -5042,7 +5042,7 @@ function Dp(e) {
5042
5042
  }
5043
5043
  return i;
5044
5044
  }
5045
- async function jp(e) {
5045
+ async function Dp(e) {
5046
5046
  if (e === void 0) return {
5047
5047
  value: void 0,
5048
5048
  state: "undefined-input"
@@ -5051,7 +5051,7 @@ async function jp(e) {
5051
5051
  return t.success ? {
5052
5052
  value: t.value,
5053
5053
  state: "successful-parse"
5054
- } : (t = await or({ text: Dp(e) }), t.success ? {
5054
+ } : (t = await or({ text: jp(e) }), t.success ? {
5055
5055
  value: t.value,
5056
5056
  state: "repaired-parse"
5057
5057
  } : {
@@ -5558,7 +5558,7 @@ function Bp({ stream: e, messageMetadataSchema: t, dataPartSchemas: r, runUpdate
5558
5558
  message: `Received tool-input-delta for missing tool call with ID "${i.toolCallId}". Ensure a "tool-input-start" chunk is sent before any "tool-input-delta" chunks.`
5559
5559
  });
5560
5560
  d.text += i.inputTextDelta;
5561
- const { value: v } = await jp(d.text);
5561
+ const { value: v } = await Dp(d.text);
5562
5562
  d.dynamic ? y({
5563
5563
  toolCallId: i.toolCallId,
5564
5564
  toolName: d.toolName,
@@ -6408,18 +6408,18 @@ function ef(e, t) {
6408
6408
  function tf(e) {
6409
6409
  return Array.isArray(e) ? [...e] : e != null && typeof e == "object" && (Object.getPrototypeOf(e) === Object.prototype || Object.getPrototypeOf(e) === null) ? { ...e } : e;
6410
6410
  }
6411
- var ce, Qe, Xe, Ze, De, je, Ne, pt, ft, Tn, rf = (Tn = class {
6411
+ var ce, Qe, Xe, Ze, je, De, Ne, pt, ft, Tn, rf = (Tn = class {
6412
6412
  constructor(e = []) {
6413
6413
  me(this, ce);
6414
6414
  me(this, Qe);
6415
6415
  me(this, Xe);
6416
6416
  me(this, Ze);
6417
- me(this, De);
6418
6417
  me(this, je);
6418
+ me(this, De);
6419
6419
  me(this, Ne);
6420
6420
  me(this, pt);
6421
6421
  me(this, ft);
6422
- ee(this, Qe, "ready"), ee(this, Xe, void 0), ee(this, Ze, /* @__PURE__ */ new Set()), ee(this, De, /* @__PURE__ */ new Set()), ee(this, je, /* @__PURE__ */ new Set()), this.pushMessage = (t) => {
6422
+ ee(this, Qe, "ready"), ee(this, Xe, void 0), ee(this, Ze, /* @__PURE__ */ new Set()), ee(this, je, /* @__PURE__ */ new Set()), ee(this, De, /* @__PURE__ */ new Set()), this.pushMessage = (t) => {
6423
6423
  ee(this, ce, L(this, ce).concat(t)), L(this, Ne).call(this);
6424
6424
  }, this.popMessage = () => {
6425
6425
  ee(this, ce, L(this, ce).slice(0, -1)), L(this, Ne).call(this);
@@ -6441,16 +6441,16 @@ var ce, Qe, Xe, Ze, De, je, Ne, pt, ft, Tn, rf = (Tn = class {
6441
6441
  return L(this, Ze).add(n), () => {
6442
6442
  L(this, Ze).delete(n);
6443
6443
  };
6444
- }, this["~registerStatusCallback"] = (t) => (L(this, De).add(t), () => {
6445
- L(this, De).delete(t);
6446
- }), this["~registerErrorCallback"] = (t) => (L(this, je).add(t), () => {
6444
+ }, this["~registerStatusCallback"] = (t) => (L(this, je).add(t), () => {
6447
6445
  L(this, je).delete(t);
6446
+ }), this["~registerErrorCallback"] = (t) => (L(this, De).add(t), () => {
6447
+ L(this, De).delete(t);
6448
6448
  }), ee(this, Ne, () => {
6449
6449
  L(this, Ze).forEach((t) => t());
6450
6450
  }), ee(this, pt, () => {
6451
- L(this, De).forEach((t) => t());
6452
- }), ee(this, ft, () => {
6453
6451
  L(this, je).forEach((t) => t());
6452
+ }), ee(this, ft, () => {
6453
+ L(this, De).forEach((t) => t());
6454
6454
  }), ee(this, ce, e);
6455
6455
  }
6456
6456
  get status() {
@@ -6471,7 +6471,7 @@ var ce, Qe, Xe, Ze, De, je, Ne, pt, ft, Tn, rf = (Tn = class {
6471
6471
  set messages(e) {
6472
6472
  ee(this, ce, [...e]), L(this, Ne).call(this);
6473
6473
  }
6474
- }, ce = new WeakMap(), Qe = new WeakMap(), Xe = new WeakMap(), Ze = new WeakMap(), De = new WeakMap(), je = new WeakMap(), Ne = new WeakMap(), pt = new WeakMap(), ft = new WeakMap(), Tn), Fe, An, is = (An = class extends Hp {
6474
+ }, ce = new WeakMap(), Qe = new WeakMap(), Xe = new WeakMap(), Ze = new WeakMap(), je = new WeakMap(), De = new WeakMap(), Ne = new WeakMap(), pt = new WeakMap(), ft = new WeakMap(), Tn), Fe, An, is = (An = class extends Hp {
6475
6475
  constructor({ messages: t, ...r }) {
6476
6476
  const n = new rf(t);
6477
6477
  super({
@@ -6549,7 +6549,7 @@ function af({ throttle: e, experimental_throttle: t, resume: r = !1, ...n } = {}
6549
6549
  u.stop();
6550
6550
  };
6551
6551
  }, [u, m]);
6552
- const [w, I] = j(() => Nt(u));
6552
+ const [w, I] = D(() => Nt(u));
6553
6553
  w.chat !== u && I(Nt(u)), ke(() => {
6554
6554
  let h = !0;
6555
6555
  const d = () => {
@@ -6657,7 +6657,7 @@ function hf(e) {
6657
6657
  Ue(() => {
6658
6658
  t.current = e;
6659
6659
  });
6660
- const r = ie(void 0), [n, a] = j({}), [s, o] = j({}), [c, f] = j({ chatId: "", count: 0 }), [i, g] = j(), [u] = j(() => {
6660
+ const r = ie(void 0), [n, a] = D({}), [s, o] = D({}), [c, f] = D({ chatId: "", count: 0 }), [i, g] = D(), [u] = D(() => {
6661
6661
  const R = (C, M) => {
6662
6662
  C.pendingApplies += M, r.current === C && f({ chatId: C.chat.id, count: C.pendingApplies });
6663
6663
  };
@@ -6699,13 +6699,13 @@ function hf(e) {
6699
6699
  }).finally(() => R(C, -1));
6700
6700
  }
6701
6701
  };
6702
- }), [m, w] = j(() => Ht(u));
6702
+ }), [m, w] = D(() => Ht(u));
6703
6703
  Ue(() => (r.current = m, () => {
6704
6704
  r.current === m && (r.current = void 0);
6705
6705
  }), [m]);
6706
6706
  const { messages: I, status: E, error: _ } = af({ chat: m.chat });
6707
6707
  ke(() => () => void m.chat.stop(), [m]);
6708
- const [x, y] = j(), [h, d] = j([]), v = ie(void 0), [b, N] = j(!1);
6708
+ const [x, y] = D(), [h, d] = D([]), v = ie(void 0), [b, N] = D(!1);
6709
6709
  ke(() => () => {
6710
6710
  var R;
6711
6711
  return (R = v.current) == null ? void 0 : R.abort();
@@ -6934,7 +6934,7 @@ function Sr() {
6934
6934
  return Rs() ?? mo;
6935
6935
  }
6936
6936
  function fs(e, t) {
6937
- return jo({
6937
+ return Do({
6938
6938
  metadata: e,
6939
6939
  locale: t.locale,
6940
6940
  styles: { dateStyle: t.dateStyle, dateTime: t.dateTime }
@@ -6947,7 +6947,7 @@ function Nr(e, t, r) {
6947
6947
  if (e == null) return "";
6948
6948
  if (t.temporalBucket && typeof e == "string")
6949
6949
  try {
6950
- return Do({
6950
+ return jo({
6951
6951
  value: e,
6952
6952
  metadata: t.temporalBucket,
6953
6953
  format: fs(t.temporalBucket, r).format
@@ -7026,7 +7026,7 @@ function kr({
7026
7026
  testId: r,
7027
7027
  chevron: n = !0
7028
7028
  }) {
7029
- const [a, s] = j(!1);
7029
+ const [a, s] = D(!1);
7030
7030
  return /* @__PURE__ */ k("div", { className: "space-y-1.5", "data-testid": r, children: [
7031
7031
  /* @__PURE__ */ k(
7032
7032
  "button",
@@ -7036,7 +7036,7 @@ function kr({
7036
7036
  onClick: () => s((o) => !o),
7037
7037
  className: "inline-flex items-center gap-1 text-[11.5px] text-muted-foreground hover:text-foreground",
7038
7038
  children: [
7039
- n ? /* @__PURE__ */ p(Ds, { className: B("h-3 w-3 transition-transform", a && "rotate-90") }) : null,
7039
+ n ? /* @__PURE__ */ p(js, { className: B("h-3 w-3 transition-transform", a && "rotate-90") }) : null,
7040
7040
  e
7041
7041
  ]
7042
7042
  }
@@ -7071,7 +7071,7 @@ function Tf({
7071
7071
  ] });
7072
7072
  }
7073
7073
  function Af(e, t, r) {
7074
- const [n, a] = j({ status: "idle" }), s = X(
7074
+ const [n, a] = D({ status: "idle" }), s = X(
7075
7075
  (c) => n.status === "added" ? Qn(c.dashboard, n.frameId) : !1
7076
7076
  );
7077
7077
  if (!r || !e.card) return { action: null, note: null };
@@ -7120,7 +7120,7 @@ function Cf(e, t) {
7120
7120
  return r.length ? /* @__PURE__ */ p("p", { role: "status", className: "text-[11.5px] text-muted-foreground", children: r.join(" ") }) : null;
7121
7121
  }
7122
7122
  function $f({ artifact: e, onClose: t }) {
7123
- const { kind: r, setKind: n, visual: a, chart: s, shown: o } = ms(e, "table"), [c, f] = j(), i = it(() => Mf(e.records, c), [e.records, c]);
7123
+ const { kind: r, setKind: n, visual: a, chart: s, shown: o } = ms(e, "table"), [c, f] = D(), i = it(() => Mf(e.records, c), [e.records, c]);
7124
7124
  return /* @__PURE__ */ k(
7125
7125
  "section",
7126
7126
  {
@@ -7167,7 +7167,7 @@ function $f({ artifact: e, onClose: t }) {
7167
7167
  );
7168
7168
  }
7169
7169
  function ms(e, t) {
7170
- const [r, n] = j(t), a = it(() => Of(e, r), [e, r]), s = X(js((i) => ({ themeStyle: i.themeStyle, theme: i.theme }))), o = Sr(), c = it(
7170
+ const [r, n] = D(t), a = it(() => Of(e, r), [e, r]), s = X(Ds((i) => ({ themeStyle: i.themeStyle, theme: i.theme }))), o = Sr(), c = it(
7171
7171
  () => If(e, a, o, s),
7172
7172
  [e, a, o, s]
7173
7173
  ), f = a.kind === "table" || a.kind !== "number" && !c ? "table" : a.kind;
@@ -7180,7 +7180,7 @@ function Of(e, t) {
7180
7180
  }
7181
7181
  const zf = {
7182
7182
  table: { label: "Table", icon: fo },
7183
- bar: { label: "Bar chart", icon: jn },
7183
+ bar: { label: "Bar chart", icon: Dn },
7184
7184
  stackedBar: { label: "Stacked bar chart", icon: Ls },
7185
7185
  line: { label: "Line chart", icon: Fs },
7186
7186
  number: { label: "Number", icon: dr }
@@ -7330,15 +7330,15 @@ function Zf({ trace: e, stages: t }) {
7330
7330
  e.model
7331
7331
  ] })
7332
7332
  ] }),
7333
- /* @__PURE__ */ p(kr, { label: "Timeline", children: /* @__PURE__ */ p(jf, { trace: e, stages: t }) })
7333
+ /* @__PURE__ */ p(kr, { label: "Timeline", children: /* @__PURE__ */ p(Df, { trace: e, stages: t }) })
7334
7334
  ] });
7335
7335
  }
7336
- const Df = {
7336
+ const jf = {
7337
7337
  check: "bg-amber-400/80",
7338
7338
  model: "bg-primary/70",
7339
7339
  step: "bg-muted-foreground/50"
7340
7340
  };
7341
- function jf({ trace: e, stages: t }) {
7341
+ function Df({ trace: e, stages: t }) {
7342
7342
  const r = new Map(t.map((s) => [s.stageId, s.label])), n = Math.max(e.totalMs, 1), a = e.spans.flatMap(
7343
7343
  (s) => s.kind === "model" && s.firstOutputMs !== void 0 ? [s.firstOutputMs] : []
7344
7344
  );
@@ -7348,7 +7348,7 @@ function jf({ trace: e, stages: t }) {
7348
7348
  /* @__PURE__ */ p("span", { className: "relative h-2 rounded-[2px] bg-muted", children: /* @__PURE__ */ p(
7349
7349
  "span",
7350
7350
  {
7351
- className: B("absolute top-0 h-2 rounded-[2px]", Df[s.kind]),
7351
+ className: B("absolute top-0 h-2 rounded-[2px]", jf[s.kind]),
7352
7352
  style: {
7353
7353
  left: `${s.startMs / n * 100}%`,
7354
7354
  width: `${Math.max(s.durationMs / n * 100, 0.8)}%`
@@ -7428,7 +7428,7 @@ function Lf({
7428
7428
  options: r,
7429
7429
  onPick: n
7430
7430
  }) {
7431
- const [a, s] = j(() => /* @__PURE__ */ new Set()), o = (f) => s((i) => {
7431
+ const [a, s] = D(() => /* @__PURE__ */ new Set()), o = (f) => s((i) => {
7432
7432
  const g = new Set(i);
7433
7433
  return g.has(f) ? g.delete(f) : g.add(f), g;
7434
7434
  }), c = r.filter((f) => a.has(f.optionId));
@@ -7503,7 +7503,7 @@ function Uf(e) {
7503
7503
  `);
7504
7504
  }
7505
7505
  function xs({ onPick: e }) {
7506
- const [t, r] = j(), n = ie(null);
7506
+ const [t, r] = D(), n = ie(null);
7507
7507
  if (t === void 0)
7508
7508
  return /* @__PURE__ */ k(
7509
7509
  "button",
@@ -7979,7 +7979,7 @@ function dm(e) {
7979
7979
  const Is = {
7980
7980
  find: Ws,
7981
7981
  read: Ks,
7982
- analyze: jn,
7982
+ analyze: Dn,
7983
7983
  sql: Js,
7984
7984
  change: Mn,
7985
7985
  retry: Wo
@@ -8035,7 +8035,7 @@ function gm({
8035
8035
  canCopy: n,
8036
8036
  onCopy: a
8037
8037
  }) {
8038
- const [s, o] = j(), c = ie(void 0);
8038
+ const [s, o] = D(), c = ie(void 0);
8039
8039
  ke(() => () => clearTimeout(c.current), []);
8040
8040
  const f = (g) => {
8041
8041
  a(g === "tool_calls").then(
@@ -8126,7 +8126,7 @@ function vm({
8126
8126
  staleTime: 0,
8127
8127
  // A failed read says so at once, whichever client the host mounted.
8128
8128
  retry: !1
8129
- }), f = Rn(), [i, g] = j(), [u, m] = j(() => /* @__PURE__ */ new Set()), [w, I] = j(), E = (y = c.data) == null ? void 0 : y.filter((h) => !u.has(h.conversationId)), _ = async (h) => {
8129
+ }), f = Rn(), [i, g] = D(), [u, m] = D(() => /* @__PURE__ */ new Set()), [w, I] = D(), E = (y = c.data) == null ? void 0 : y.filter((h) => !u.has(h.conversationId)), _ = async (h) => {
8130
8130
  g(h);
8131
8131
  const d = await n(h);
8132
8132
  g((v) => v === h ? void 0 : v), d === "not_opened" && cr(f, lr(e));
@@ -8251,7 +8251,7 @@ function wm({
8251
8251
  disabled: n,
8252
8252
  onAdd: a
8253
8253
  }) {
8254
- const [s, o] = j(!1), [c, f] = j(""), i = Ns(e, t, s || r.length > 0), g = new Set(r.map(ve)), u = (i.data ?? []).filter((I) => !g.has(ve(I.source))), m = c.trim().toLowerCase(), w = m ? u.filter((I) => `${I.label} ${I.domainLabel ?? ""}`.toLowerCase().includes(m)) : u;
8254
+ const [s, o] = D(!1), [c, f] = D(""), i = Ns(e, t, s || r.length > 0), g = new Set(r.map(ve)), u = (i.data ?? []).filter((I) => !g.has(ve(I.source))), m = c.trim().toLowerCase(), w = m ? u.filter((I) => `${I.label} ${I.domainLabel ?? ""}`.toLowerCase().includes(m)) : u;
8255
8255
  return /* @__PURE__ */ k(
8256
8256
  Un,
8257
8257
  {
@@ -8324,7 +8324,7 @@ function _m({ entries: e, onPick: t }) {
8324
8324
  ] }, n)) });
8325
8325
  }
8326
8326
  function Im(e) {
8327
- const [t, r] = j([]), n = e ? t.filter((o) => o.cardId === e).map((o) => o.field) : [], a = n.length >= et.taggedFields, s = (o) => !!e && !a && !n.some((c) => er(c, o));
8327
+ const [t, r] = D([]), n = e ? t.filter((o) => o.cardId === e).map((o) => o.field) : [], a = n.length >= et.taggedFields, s = (o) => !!e && !a && !n.some((c) => er(c, o));
8328
8328
  return {
8329
8329
  shown: n,
8330
8330
  /** Five are tagged: nothing more can be. */
@@ -8365,7 +8365,7 @@ function sh({
8365
8365
  var P;
8366
8366
  return s && A.dashboard ? (P = go(A.dashboard, s.cardId)) == null ? void 0 : P.card : void 0;
8367
8367
  }
8368
- ), w = Cm(n), I = ie(void 0), [E] = j(() => Go(t)), [_, x] = j([]), y = te(
8368
+ ), w = Cm(n), I = ie(void 0), [E] = D(() => Go(t)), [_, x] = D([]), y = te(
8369
8369
  (A) => {
8370
8370
  I.current = A;
8371
8371
  const P = Em(
@@ -8392,7 +8392,7 @@ function sh({
8392
8392
  onFailed: (A) => {
8393
8393
  A instanceof tt && A.code === "context_invalid" && cr(h, ls(e.id));
8394
8394
  }
8395
- }), [O, K] = j(""), Y = ie(null);
8395
+ }), [O, K] = D(""), Y = ie(null);
8396
8396
  ke(() => {
8397
8397
  var A;
8398
8398
  (o || n) && ((A = Y.current) == null || A.focus());
@@ -8404,7 +8404,7 @@ function sh({
8404
8404
  const { focus: A, beside: P } = e.store.getState();
8405
8405
  A && Ke.current(A.cardId, { beside: P });
8406
8406
  }, [c, e]);
8407
- const We = (w == null ? void 0 : w.id) ?? (m == null ? void 0 : m.id), W = Im(We), ye = We ? _ : [], [Ae, Ce] = j(), _e = Ae ? W.available(ye).filter((A) => A.label.toLowerCase().includes(Ae.query.toLowerCase())) : [], xe = Ae && _e.length ? { ...Ae, active: Math.min(Ae.active, _e.length - 1) } : void 0, R = ie(void 0);
8407
+ const We = (w == null ? void 0 : w.id) ?? (m == null ? void 0 : m.id), W = Im(We), ye = We ? _ : [], [Ae, Ce] = D(), _e = Ae ? W.available(ye).filter((A) => A.label.toLowerCase().includes(Ae.query.toLowerCase())) : [], xe = Ae && _e.length ? { ...Ae, active: Math.min(Ae.active, _e.length - 1) } : void 0, R = ie(void 0);
8408
8408
  Ue(() => {
8409
8409
  var A;
8410
8410
  R.current !== void 0 && ((A = Y.current) == null || A.setSelectionRange(R.current, R.current), R.current = void 0);
@@ -8445,7 +8445,7 @@ function sh({
8445
8445
  return;
8446
8446
  }
8447
8447
  A.key === "Enter" && !A.shiftKey && !A.nativeEvent.isComposing && M(A);
8448
- }, Q = T.messages.length === 0, [fe, ae] = j(), $e = (fe == null ? void 0 : fe.sessionKey) === T.sessionKey ? Am(T.messages, fe.artifactId) : void 0, Ie = (A) => {
8448
+ }, Q = T.messages.length === 0, [fe, ae] = D(), $e = (fe == null ? void 0 : fe.sessionKey) === T.sessionKey ? Am(T.messages, fe.artifactId) : void 0, Ie = (A) => {
8449
8449
  ae((P) => ({ sessionKey: T.sessionKey, artifactId: A, opened: ((P == null ? void 0 : P.opened) ?? 0) + 1 })), e.leaveBeside(), i !== "full-page" && e.setLayout("full-page");
8450
8450
  }, Oe = g === "full-page", Er = /* @__PURE__ */ p(
8451
8451
  H,
@@ -8746,7 +8746,7 @@ function En({
8746
8746
  }, [e, t, n, r]), null;
8747
8747
  }
8748
8748
  function Cm(e) {
8749
- const t = X((n) => n.isVisualEditing), r = Dn((n) => n.card);
8749
+ const t = X((n) => n.isVisualEditing), r = jn((n) => n.card);
8750
8750
  return !e && t ? r : void 0;
8751
8751
  }
8752
8752
  function $m(e) {
@@ -8755,7 +8755,7 @@ function $m(e) {
8755
8755
  }
8756
8756
  function Es(e) {
8757
8757
  if (e || !X.getState().isVisualEditing) return;
8758
- const t = Dn.getState();
8758
+ const t = jn.getState();
8759
8759
  return { card: t.card, mode: t.isDevMode ? "sql" : "visual" };
8760
8760
  }
8761
8761
  function Om(e) {
@@ -8784,7 +8784,7 @@ function Mm({
8784
8784
  onPick: s,
8785
8785
  onAskAgain: o
8786
8786
  }) {
8787
- const c = ie(null), [f, i] = j(!0), g = ie(void 0), u = ie(r);
8787
+ const c = ie(null), [f, i] = D(!0), g = ie(void 0), u = ie(r);
8788
8788
  Ue(() => {
8789
8789
  const E = c.current;
8790
8790
  !E || u.current === r || (u.current = r, f ? E.scrollTop = E.scrollHeight : g.current && zm(E, g.current));