@fencyai/react 0.1.202 → 0.1.204

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.js CHANGED
@@ -16,7 +16,7 @@ function Rn({
16
16
  }) {
17
17
  const [n, i] = w(
18
18
  null
19
- ), [a, s] = w(!0), [p, d] = w(null), [u, g] = w([]), h = A(null), x = A(null);
19
+ ), [a, s] = w(!0), [u, d] = w(null), [p, g] = w([]), h = A(null), x = A(null);
20
20
  $(() => {
21
21
  e.then((c) => {
22
22
  i(c), s(!1);
@@ -48,18 +48,18 @@ function Rn({
48
48
  },
49
49
  []
50
50
  );
51
- if (p)
51
+ if (u)
52
52
  return /* @__PURE__ */ m("div", { children: [
53
53
  "Fency error: ",
54
- p.message
54
+ u.message
55
55
  ] });
56
56
  if (!n)
57
57
  return null;
58
- const f = u.length > 0 ? u[u.length - 1] : null, l = {
58
+ const f = p.length > 0 ? p[p.length - 1] : null, l = {
59
59
  fency: n,
60
60
  loading: a,
61
- error: p,
62
- activeStreams: u,
61
+ error: u,
62
+ activeStreams: p,
63
63
  latestStream: f,
64
64
  eventManager: x.current,
65
65
  getOrCreateStream: T
@@ -79,7 +79,7 @@ const je = (e) => {
79
79
  return $(() => {
80
80
  if (!o.eventManager) return;
81
81
  const s = {
82
- onMessage: (d, u) => {
82
+ onMessage: (d, p) => {
83
83
  var h, x, T;
84
84
  const g = Ie(d);
85
85
  if (g)
@@ -95,13 +95,13 @@ const je = (e) => {
95
95
  break;
96
96
  }
97
97
  },
98
- onError: (d, u) => {
98
+ onError: (d, p) => {
99
99
  var g;
100
100
  (g = e == null ? void 0 : e.onStreamError) == null || g.call(e, {
101
101
  streamId: d,
102
102
  error: {
103
103
  code: "UnknownError",
104
- message: u ?? "Unknown error in useStream"
104
+ message: p ?? "Unknown error in useStream"
105
105
  }
106
106
  });
107
107
  }
@@ -144,7 +144,7 @@ function Ke(e) {
144
144
  return e instanceof Error ? e.message : typeof e == "string" ? e : "Unknown error during agent task creation";
145
145
  }
146
146
  const In = (e) => {
147
- const o = xe(), [t, n] = Oe(Fe, ze), i = A(/* @__PURE__ */ new Set()), a = A(/* @__PURE__ */ new Map()), s = A(/* @__PURE__ */ new Map()), p = L(
147
+ const o = xe(), [t, n] = Oe(Fe, ze), i = A(/* @__PURE__ */ new Set()), a = A(/* @__PURE__ */ new Map()), s = A(/* @__PURE__ */ new Map()), u = L(
148
148
  (f) => {
149
149
  if (f)
150
150
  return async (l) => {
@@ -177,7 +177,7 @@ const In = (e) => {
177
177
  }
178
178
  },
179
179
  [t.tasks]
180
- ), u = L(
180
+ ), p = L(
181
181
  (f) => {
182
182
  var c;
183
183
  if (!i.current.has(f.agentTaskId)) return;
@@ -221,7 +221,7 @@ const In = (e) => {
221
221
  },
222
222
  [e]
223
223
  ), { createStream: g } = je({
224
- onAgentTaskProgressItemUpdated: u,
224
+ onAgentTaskProgressItemUpdated: p,
225
225
  onStreamError: (f) => {
226
226
  var l;
227
227
  (l = e == null ? void 0 : e.onStreamError) == null || l.call(e, f), d(f.streamId, f.error);
@@ -263,7 +263,7 @@ const In = (e) => {
263
263
  };
264
264
  n({ type: "TASK_PENDING", task: B }), (D = l == null ? void 0 : l.onTaskRegistered) == null || D.call(l, {
265
265
  ...B,
266
- downloadFile: p(
266
+ downloadFile: u(
267
267
  S
268
268
  )
269
269
  });
@@ -279,12 +279,12 @@ const In = (e) => {
279
279
  i.current.add(
280
280
  I.agentTask.id
281
281
  );
282
- const H = p(
282
+ const G = u(
283
283
  S
284
284
  );
285
- return H && s.current.set(
285
+ return G && s.current.set(
286
286
  I.agentTask.id,
287
- H
287
+ G
288
288
  ), n({
289
289
  type: "TASK_CONFIRMED",
290
290
  taskKey: c,
@@ -309,17 +309,17 @@ const In = (e) => {
309
309
  error: I.error
310
310
  };
311
311
  {
312
- const H = {
312
+ const G = {
313
313
  message: "No response received",
314
314
  code: "UnknownError"
315
315
  };
316
316
  return n({
317
317
  type: "TASK_API_ERROR",
318
318
  taskKey: c,
319
- error: H
319
+ error: G
320
320
  }), {
321
321
  type: "error",
322
- error: H
322
+ error: G
323
323
  };
324
324
  }
325
325
  }
@@ -342,7 +342,7 @@ const In = (e) => {
342
342
  },
343
343
  [
344
344
  o,
345
- p,
345
+ u,
346
346
  g,
347
347
  e.fetchCreateAgentTaskClientToken,
348
348
  e.fetchAgentTaskFileDownloadClientToken
@@ -370,10 +370,10 @@ function Ve(e) {
370
370
  const n = e.progressItems[t + 1], i = n != null;
371
371
  let a;
372
372
  if (n != null && n.createdAt) {
373
- const s = new Date(o.createdAt).getTime(), p = new Date(n.createdAt).getTime();
373
+ const s = new Date(o.createdAt).getTime(), u = new Date(n.createdAt).getTime();
374
374
  a = Math.max(
375
375
  0,
376
- Math.round((p - s) / 1e3)
376
+ Math.round((u - s) / 1e3)
377
377
  );
378
378
  }
379
379
  return {
@@ -1094,16 +1094,16 @@ function b() {
1094
1094
  function be(e) {
1095
1095
  return e === "dark" ? Xe : Ye;
1096
1096
  }
1097
- const U = ({
1097
+ const H = ({
1098
1098
  text: e,
1099
1099
  onFileDownload: o,
1100
1100
  onMemoryClick: t
1101
1101
  }) => {
1102
1102
  const { theme: n } = b(), i = be(n), [a, s] = w(
1103
1103
  null
1104
- ), [p, d] = w(
1104
+ ), [u, d] = w(
1105
1105
  null
1106
- ), [u, g] = w(!1), [h, x] = w(!1), T = L(
1106
+ ), [p, g] = w(!1), [h, x] = w(!1), T = L(
1107
1107
  (y) => {
1108
1108
  o && (s(null), g(!0), (async () => {
1109
1109
  try {
@@ -1155,7 +1155,7 @@ const U = ({
1155
1155
  {
1156
1156
  type: "button",
1157
1157
  className: "fency-file-download-button",
1158
- disabled: u,
1158
+ disabled: p,
1159
1159
  onClick: () => T(W),
1160
1160
  children: S
1161
1161
  }
@@ -1164,7 +1164,7 @@ const U = ({
1164
1164
  {
1165
1165
  type: "button",
1166
1166
  className: "fency-file-download-button",
1167
- disabled: u,
1167
+ disabled: p,
1168
1168
  onClick: () => {
1169
1169
  console.error(
1170
1170
  "[fency] File download link clicked but no onFileDownload handler is configured. Pass fetchAgentTaskFileDownloadClientToken to useAgentTasks."
@@ -1202,14 +1202,14 @@ const U = ({
1202
1202
  );
1203
1203
  }
1204
1204
  }), [
1205
- u,
1205
+ p,
1206
1206
  h,
1207
1207
  T,
1208
1208
  f,
1209
1209
  o,
1210
1210
  t,
1211
1211
  i
1212
- ]), c = a ?? p;
1212
+ ]), c = a ?? u;
1213
1213
  return /* @__PURE__ */ m("div", { style: { paddingBlock: "16px" }, children: [
1214
1214
  c ? /* @__PURE__ */ r(
1215
1215
  "p",
@@ -1444,8 +1444,8 @@ const U = ({
1444
1444
  googleResultFound: "1 Google-resultat funnet",
1445
1445
  scrapingPages: "Skraper {n} sider for '{query}'",
1446
1446
  scrapingPage: "Skraper 1 side for '{query}'",
1447
- scrapedPages: "Skrapet {n} sider",
1448
- scrapedPage: "Skrapet 1 side",
1447
+ scrapedPages: "Leste {n} sider",
1448
+ scrapedPage: "Leste 1 side",
1449
1449
  scrapeFailedSuffix: " — {n} feilet",
1450
1450
  scrapeOkCount: "{n} ok",
1451
1451
  scrapeFailedCount: "{n} feilet",
@@ -1462,27 +1462,27 @@ const U = ({
1462
1462
  generateReportAssembling: "Setter sammen rapport '{title}'...",
1463
1463
  generateReportCompleted: "Rapport '{title}' fullført",
1464
1464
  exploreExporting: "Laster {n} minnefiler...",
1465
- exploreExportingOne: "Laster minedata...",
1465
+ exploreExportingOne: "Laster data...",
1466
1466
  exploreRunCode: "Analyserer: {title}",
1467
1467
  exploreSetupSandbox: "Setter opp miljø...",
1468
1468
  exploreSetupSandboxPhrases: [
1469
1469
  "Spelunker...",
1470
1470
  "Bootstrapper...",
1471
- "Koker i kokekassen...",
1471
+ "Koker opp...",
1472
1472
  "Grubler...",
1473
1473
  "Filosoferer...",
1474
1474
  "Roter i data...",
1475
- "Slinger i maskineriet...",
1476
- "Forvirrer...",
1475
+ "Sjonglerer...",
1476
+ "Surrer...",
1477
1477
  "Retikulerer...",
1478
1478
  "Discombobulerer...",
1479
1479
  "Tuller...",
1480
1480
  "Vandrer...",
1481
1481
  "Pusler...",
1482
1482
  "Spirer...",
1483
- "Mumler...",
1484
- "Pusler rundt...",
1485
- "Skramler...",
1483
+ "Tygger drøv...",
1484
+ "Fikler...",
1485
+ "Tripper rundt...",
1486
1486
  "Svever...",
1487
1487
  "Nudler...",
1488
1488
  "Brygger...",
@@ -1490,7 +1490,7 @@ const U = ({
1490
1490
  "Orkestrerer...",
1491
1491
  "Manifesterer...",
1492
1492
  "Flibbertigibbeter...",
1493
- "Huller i vannet...",
1493
+ "Bråker...",
1494
1494
  "Sleper...",
1495
1495
  "Kwisatz-haderacher..."
1496
1496
  ],
@@ -1527,14 +1527,14 @@ function C({
1527
1527
  repeatDelay: i = 0.5,
1528
1528
  className: a,
1529
1529
  startOnView: s = !1,
1530
- once: p = !1,
1530
+ once: u = !1,
1531
1531
  inViewMargin: d,
1532
- spread: u = 2,
1532
+ spread: p = 2,
1533
1533
  color: g,
1534
1534
  shimmerColor: h,
1535
1535
  direction: x = "fromBottom"
1536
1536
  }) {
1537
- const { colors: T } = b(), f = g ?? T.shimmerBase, l = h ?? T.shimmerHighlight, c = A(null), y = _e(c, { once: p, margin: d }), S = F(() => e.length * u, [e, u]), M = !s || y, D = x === "fromBottom" ? "100% center" : "-100% center", W = x === "fromBottom" ? "0% center" : "200% center";
1537
+ const { colors: T } = b(), f = g ?? T.shimmerBase, l = h ?? T.shimmerHighlight, c = A(null), y = _e(c, { once: u, margin: d }), S = F(() => e.length * p, [e, p]), M = !s || y, D = x === "fromBottom" ? "100% center" : "-100% center", W = x === "fromBottom" ? "0% center" : "200% center";
1538
1538
  return /* @__PURE__ */ r(
1539
1539
  v.span,
1540
1540
  {
@@ -1580,8 +1580,8 @@ function C({
1580
1580
  }
1581
1581
  );
1582
1582
  }
1583
- const V = 5, _ = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n, compactBelow: i = !1 }) => {
1584
- const { colors: a } = b(), [s, p] = w(!1), u = (e.memories ?? []).map((S) => S.memoryTitle), g = u.length > 0, h = g && u.length > V, x = h && !s ? u.slice(0, V) : u, T = u.length - V, f = !h || s, l = `${n.searchingFor}'${e.queryDescription}'`, c = g ? `${n.searchingIn}${K(
1583
+ const V = 5, q = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n, compactBelow: i = !1 }) => {
1584
+ const { colors: a } = b(), [s, u] = w(!1), p = (e.memories ?? []).map((S) => S.memoryTitle), g = p.length > 0, h = g && p.length > V, x = h && !s ? p.slice(0, V) : p, T = p.length - V, f = !h || s, l = `${n.searchingFor}'${e.queryDescription}'`, c = g ? `${n.searchingIn}${K(
1585
1585
  x,
1586
1586
  f ? n.and : void 0
1587
1587
  )}` : "", y = g ? `${l}${c}` : `${n.searchingPrefix}${e.queryDescription}`;
@@ -1613,7 +1613,7 @@ const V = 5, _ = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n, compact
1613
1613
  "button",
1614
1614
  {
1615
1615
  type: "button",
1616
- onClick: () => p(!0),
1616
+ onClick: () => u(!0),
1617
1617
  style: {
1618
1618
  background: "none",
1619
1619
  border: "none",
@@ -1637,7 +1637,7 @@ const V = 5, _ = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n, compact
1637
1637
  "button",
1638
1638
  {
1639
1639
  type: "button",
1640
- onClick: () => p(!1),
1640
+ onClick: () => u(!1),
1641
1641
  style: {
1642
1642
  background: "none",
1643
1643
  border: "none",
@@ -1789,24 +1789,24 @@ function lr({
1789
1789
  paddingTop: 8,
1790
1790
  borderTop: `1px solid ${n.borderDivider}`
1791
1791
  },
1792
- children: e.map((p, d) => {
1793
- const u = re(
1794
- p.chunks
1792
+ children: e.map((u, d) => {
1793
+ const p = re(
1794
+ u.chunks
1795
1795
  ), g = [
1796
- ne(p),
1796
+ ne(u),
1797
1797
  k(t.scoreLabel, {
1798
- n: p.matchingChunkScore.toFixed(2)
1798
+ n: u.matchingChunkScore.toFixed(2)
1799
1799
  }),
1800
- u.length > 0 ? ee(u, t) : t.pagesNotAvailable
1800
+ p.length > 0 ? ee(p, t) : t.pagesNotAvailable
1801
1801
  ].filter(
1802
1802
  (f) => f != null && f !== ""
1803
1803
  ), h = {
1804
- memoryId: p.memoryId,
1805
- memoryTitle: p.memoryTitle,
1806
- memoryTypeId: p.memoryTypeId,
1807
- memoryTypeName: p.memoryTypeName,
1808
- pageNumbers: u
1809
- }, x = `${p.memoryId}-${d}`, T = i === x;
1804
+ memoryId: u.memoryId,
1805
+ memoryTitle: u.memoryTitle,
1806
+ memoryTypeId: u.memoryTypeId,
1807
+ memoryTypeName: u.memoryTypeName,
1808
+ pageNumbers: p
1809
+ }, x = `${u.memoryId}-${d}`, T = i === x;
1810
1810
  return /* @__PURE__ */ m(
1811
1811
  "div",
1812
1812
  {
@@ -1842,7 +1842,7 @@ function lr({
1842
1842
  whiteSpace: "pre-wrap",
1843
1843
  wordBreak: "break-word"
1844
1844
  },
1845
- children: Z(p.chunks)
1845
+ children: Z(u.chunks)
1846
1846
  }
1847
1847
  ),
1848
1848
  /* @__PURE__ */ r(
@@ -1919,7 +1919,7 @@ function sr({
1919
1919
  onToggle: n,
1920
1920
  onSearchResultClick: i
1921
1921
  }) {
1922
- const { colors: a } = b(), s = e.items.map((d) => d.item), p = s.some((d) => d.chunks.length > 0);
1922
+ const { colors: a } = b(), s = e.items.map((d) => d.item), u = s.some((d) => d.chunks.length > 0);
1923
1923
  return /* @__PURE__ */ m(
1924
1924
  v.div,
1925
1925
  {
@@ -1997,7 +1997,7 @@ function sr({
1997
1997
  children: ir(s, o)
1998
1998
  }
1999
1999
  ),
2000
- p && /* @__PURE__ */ r(
2000
+ u && /* @__PURE__ */ r(
2001
2001
  "button",
2002
2002
  {
2003
2003
  type: "button",
@@ -2018,7 +2018,7 @@ function sr({
2018
2018
  ]
2019
2019
  }
2020
2020
  ),
2021
- t && p && /* @__PURE__ */ r(
2021
+ t && u && /* @__PURE__ */ r(
2022
2022
  lr,
2023
2023
  {
2024
2024
  items: s,
@@ -2045,13 +2045,13 @@ const oe = ({
2045
2045
  const { colors: i } = b(), a = e.items, s = a.reduce(
2046
2046
  (l, c) => l + Te(c),
2047
2047
  0
2048
- ), p = new Set(a.map((l) => l.memoryId)).size, [d, u] = w({}), g = L((l) => {
2049
- u((c) => ({
2048
+ ), u = new Set(a.map((l) => l.memoryId)).size, [d, p] = w({}), g = L((l) => {
2049
+ p((c) => ({
2050
2050
  ...c,
2051
2051
  [l]: !c[l]
2052
2052
  }));
2053
- }, []), h = F(() => ar(a), [a]), x = p === 1 ? t.memoryChatChunkResultsInOneMemory : k(t.memoryChatChunkResultsInMemories, {
2054
- n: p
2053
+ }, []), h = F(() => ar(a), [a]), x = u === 1 ? t.memoryChatChunkResultsInOneMemory : k(t.memoryChatChunkResultsInMemories, {
2054
+ n: u
2055
2055
  }), T = `${cr(s, t)} ${x}`, f = n ? { paddingBottom: "10px" } : { paddingBlock: "10px" };
2056
2056
  return a.length === 0 ? /* @__PURE__ */ r("div", { style: f, children: /* @__PURE__ */ r(
2057
2057
  "div",
@@ -2106,7 +2106,7 @@ const pr = ({
2106
2106
  }) => {
2107
2107
  const a = dr(e);
2108
2108
  return e.items === void 0 ? /* @__PURE__ */ r(
2109
- _,
2109
+ q,
2110
2110
  {
2111
2111
  data: a,
2112
2112
  isLatest: o,
@@ -2115,7 +2115,7 @@ const pr = ({
2115
2115
  }
2116
2116
  ) : /* @__PURE__ */ m(R, { children: [
2117
2117
  /* @__PURE__ */ r(
2118
- _,
2118
+ q,
2119
2119
  {
2120
2120
  data: a,
2121
2121
  isLatest: !1,
@@ -2139,7 +2139,7 @@ const pr = ({
2139
2139
  )
2140
2140
  ] });
2141
2141
  }, X = 5, ur = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
2142
- const { colors: i } = b(), [a, s] = w(!1), p = e.titles, d = p.length > 0, u = d && p.length > X, g = u && !a ? p.slice(0, X) : p, h = p.length - X, x = !u || a, T = d ? `${n.findingMemoriesIn}${K(
2142
+ const { colors: i } = b(), [a, s] = w(!1), u = e.titles, d = u.length > 0, p = d && u.length > X, g = p && !a ? u.slice(0, X) : u, h = u.length - X, x = !p || a, T = d ? `${n.findingMemoriesIn}${K(
2143
2143
  g,
2144
2144
  x ? n.and : void 0
2145
2145
  )}` : n.findingMemories;
@@ -2153,9 +2153,9 @@ const pr = ({
2153
2153
  initial: { opacity: 0, y: -10 },
2154
2154
  animate: { opacity: 1, y: 0 },
2155
2155
  transition: { duration: 0.3, delay: 0 },
2156
- children: o && !t && !u ? /* @__PURE__ */ r(C, { text: T, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ m(R, { children: [
2156
+ children: o && !t && !p ? /* @__PURE__ */ r(C, { text: T, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ m(R, { children: [
2157
2157
  /* @__PURE__ */ r("span", { style: { color: i.textSecondary }, children: T }),
2158
- u && !a && /* @__PURE__ */ m(R, { children: [
2158
+ p && !a && /* @__PURE__ */ m(R, { children: [
2159
2159
  " ",
2160
2160
  /* @__PURE__ */ r(
2161
2161
  "button",
@@ -2179,7 +2179,7 @@ const pr = ({
2179
2179
  }
2180
2180
  )
2181
2181
  ] }),
2182
- u && a && /* @__PURE__ */ m(R, { children: [
2182
+ p && a && /* @__PURE__ */ m(R, { children: [
2183
2183
  " ",
2184
2184
  /* @__PURE__ */ r(
2185
2185
  "button",
@@ -2218,8 +2218,8 @@ const pr = ({
2218
2218
  )
2219
2219
  ] });
2220
2220
  }, Y = 5, mr = ({ data: e, t: o }) => {
2221
- const { colors: t } = b(), [n, i] = w(!1), s = e.memories.map((f) => f.memoryTitle), p = s.length > 0, d = p && s.length > Y, u = d && !n ? s.slice(0, Y) : s, g = s.length - Y, h = !d || n, x = s.length === 1 ? o.memoryFound : o.memoriesFoundPrefix, T = p ? `${x}${K(
2222
- u,
2221
+ const { colors: t } = b(), [n, i] = w(!1), s = e.memories.map((f) => f.memoryTitle), u = s.length > 0, d = u && s.length > Y, p = d && !n ? s.slice(0, Y) : s, g = s.length - Y, h = !d || n, x = s.length === 1 ? o.memoryFound : o.memoriesFoundPrefix, T = u ? `${x}${K(
2222
+ p,
2223
2223
  h ? o.and : void 0
2224
2224
  )}` : o.memoriesFound;
2225
2225
  return /* @__PURE__ */ r("div", { style: { paddingBlock: "16px" }, children: /* @__PURE__ */ r(
@@ -2344,11 +2344,11 @@ const ve = ({ data: e, onSourceClick: o, t }) => {
2344
2344
  children: t.sources
2345
2345
  }
2346
2346
  ),
2347
- /* @__PURE__ */ r("div", { style: { display: "flex", flexWrap: "wrap", gap: "8px" }, children: e.sources.length === 0 ? /* @__PURE__ */ r("span", { style: { fontSize: "13px", color: n.textTertiary }, children: t.noSources }) : e.sources.map((s, p) => /* @__PURE__ */ r(
2347
+ /* @__PURE__ */ r("div", { style: { display: "flex", flexWrap: "wrap", gap: "8px" }, children: e.sources.length === 0 ? /* @__PURE__ */ r("span", { style: { fontSize: "13px", color: n.textTertiary }, children: t.noSources }) : e.sources.map((s, u) => /* @__PURE__ */ r(
2348
2348
  hr,
2349
2349
  {
2350
2350
  source: s,
2351
- index: p,
2351
+ index: u,
2352
2352
  loadingMemoryId: i,
2353
2353
  setLoadingMemoryId: a,
2354
2354
  onSourceClick: o,
@@ -2365,7 +2365,7 @@ const ve = ({ data: e, onSourceClick: o, t }) => {
2365
2365
  onSourceClick: i,
2366
2366
  t: a
2367
2367
  }) => {
2368
- const { colors: s } = b(), [p, d] = w(!1), u = !!i, g = t === e.memoryId, h = e.pageNumbers ?? [], x = gr(h, a);
2368
+ const { colors: s } = b(), [u, d] = w(!1), p = !!i, g = t === e.memoryId, h = e.pageNumbers ?? [], x = gr(h, a);
2369
2369
  return /* @__PURE__ */ m(
2370
2370
  v.div,
2371
2371
  {
@@ -2373,7 +2373,7 @@ const ve = ({ data: e, onSourceClick: o, t }) => {
2373
2373
  initial: { opacity: 0, scale: 0.9 },
2374
2374
  animate: { opacity: 1, scale: 1 },
2375
2375
  transition: { duration: 0.25, delay: o * 0.05 },
2376
- onClick: u && !g ? async () => {
2376
+ onClick: p && !g ? async () => {
2377
2377
  n(e.memoryId);
2378
2378
  try {
2379
2379
  await i({
@@ -2387,8 +2387,8 @@ const ve = ({ data: e, onSourceClick: o, t }) => {
2387
2387
  n(null);
2388
2388
  }
2389
2389
  } : void 0,
2390
- onMouseEnter: u && !g ? () => d(!0) : void 0,
2391
- onMouseLeave: u && !g ? () => d(!1) : void 0,
2390
+ onMouseEnter: p && !g ? () => d(!0) : void 0,
2391
+ onMouseLeave: p && !g ? () => d(!1) : void 0,
2392
2392
  style: {
2393
2393
  display: "inline-flex",
2394
2394
  flexDirection: "column",
@@ -2396,8 +2396,8 @@ const ve = ({ data: e, onSourceClick: o, t }) => {
2396
2396
  padding: "8px 12px",
2397
2397
  borderRadius: "6px",
2398
2398
  border: `1px solid ${s.borderStrong}`,
2399
- backgroundColor: p ? s.sourcesBadgeBg : s.transparent,
2400
- cursor: u && !g ? "pointer" : g ? "wait" : "default",
2399
+ backgroundColor: u ? s.sourcesBadgeBg : s.transparent,
2400
+ cursor: p && !g ? "pointer" : g ? "wait" : "default",
2401
2401
  transition: "background-color 0.15s ease",
2402
2402
  userSelect: "none",
2403
2403
  pointerEvents: g ? "none" : void 0
@@ -2430,15 +2430,15 @@ const ve = ({ data: e, onSourceClick: o, t }) => {
2430
2430
  ]
2431
2431
  }
2432
2432
  );
2433
- }, O = ({
2433
+ }, _ = ({
2434
2434
  color: e,
2435
2435
  size: o = 32,
2436
2436
  lineWidth: t = 2
2437
2437
  }) => {
2438
- const { colors: n } = b(), i = e ?? n.xmarkColor, a = o + 1, s = (o - t) / 2, p = (o - a) / 2, d = {
2438
+ const { colors: n } = b(), i = e ?? n.xmarkColor, a = o + 1, s = (o - t) / 2, u = (o - a) / 2, d = {
2439
2439
  position: "absolute",
2440
2440
  left: s,
2441
- top: p,
2441
+ top: u,
2442
2442
  width: t,
2443
2443
  height: a,
2444
2444
  backgroundColor: i
@@ -2479,7 +2479,7 @@ function yr({
2479
2479
  memory: e,
2480
2480
  completed: o
2481
2481
  }) {
2482
- return e.error != null ? /* @__PURE__ */ r(O, { size: 15, lineWidth: 2 }) : e.result != null ? /* @__PURE__ */ r(z, { size: 15, borderWidth: 2 }) : o ? /* @__PURE__ */ r(z, { size: 15, borderWidth: 2 }) : /* @__PURE__ */ r("span", { className: "explore-memory-loader" });
2482
+ return e.error != null ? /* @__PURE__ */ r(_, { size: 15, lineWidth: 2 }) : e.result != null ? /* @__PURE__ */ r(z, { size: 15, borderWidth: 2 }) : o ? /* @__PURE__ */ r(z, { size: 15, borderWidth: 2 }) : /* @__PURE__ */ r("span", { className: "explore-memory-loader" });
2483
2483
  }
2484
2484
  const se = 80;
2485
2485
  function fr({
@@ -2487,14 +2487,14 @@ function fr({
2487
2487
  completed: o,
2488
2488
  t
2489
2489
  }) {
2490
- const { colors: n } = b(), [i, a] = w(!1), s = e.result ?? e.error, p = s != null && s.length > se, d = s != null ? i || !p ? s : `${s.slice(0, se)}...` : void 0, u = p, g = e.error != null;
2490
+ const { colors: n } = b(), [i, a] = w(!1), s = e.result ?? e.error, u = s != null && s.length > se, d = s != null ? i || !u ? s : `${s.slice(0, se)}...` : void 0, p = u, g = e.error != null;
2491
2491
  return /* @__PURE__ */ m(
2492
2492
  v.div,
2493
2493
  {
2494
2494
  initial: { opacity: 0 },
2495
2495
  animate: { opacity: 1 },
2496
2496
  transition: { duration: 0.25 },
2497
- onClick: u ? () => a((h) => !h) : void 0,
2497
+ onClick: p ? () => a((h) => !h) : void 0,
2498
2498
  style: {
2499
2499
  paddingTop: "12px",
2500
2500
  paddingBottom: "12px",
@@ -2504,7 +2504,7 @@ function fr({
2504
2504
  alignItems: "center",
2505
2505
  gap: "10px",
2506
2506
  minWidth: 0,
2507
- cursor: u ? "pointer" : "default"
2507
+ cursor: p ? "pointer" : "default"
2508
2508
  },
2509
2509
  children: [
2510
2510
  /* @__PURE__ */ r(
@@ -2549,7 +2549,7 @@ function fr({
2549
2549
  children: d
2550
2550
  }
2551
2551
  ),
2552
- u && /* @__PURE__ */ r(
2552
+ p && /* @__PURE__ */ r(
2553
2553
  "span",
2554
2554
  {
2555
2555
  style: {
@@ -2587,7 +2587,7 @@ function Sr({
2587
2587
  item: e,
2588
2588
  t: o
2589
2589
  }) {
2590
- const { colors: t } = b(), [n, i] = w(!1), a = e.description ?? "", s = a.length > ce, p = a.length === 0 ? void 0 : n || !s ? a : `${a.slice(0, ce)}...`;
2590
+ const { colors: t } = b(), [n, i] = w(!1), a = e.description ?? "", s = a.length > ce, u = a.length === 0 ? void 0 : n || !s ? a : `${a.slice(0, ce)}...`;
2591
2591
  return /* @__PURE__ */ m(
2592
2592
  "div",
2593
2593
  {
@@ -2635,7 +2635,7 @@ function Sr({
2635
2635
  ]
2636
2636
  }
2637
2637
  ),
2638
- p != null && /* @__PURE__ */ m(R, { children: [
2638
+ u != null && /* @__PURE__ */ m(R, { children: [
2639
2639
  /* @__PURE__ */ r(
2640
2640
  "span",
2641
2641
  {
@@ -2648,7 +2648,7 @@ function Sr({
2648
2648
  wordBreak: "break-word",
2649
2649
  cursor: s ? "pointer" : "default"
2650
2650
  },
2651
- children: p
2651
+ children: u
2652
2652
  }
2653
2653
  ),
2654
2654
  s && /* @__PURE__ */ r(
@@ -2712,7 +2712,7 @@ function Tr({
2712
2712
  data: e,
2713
2713
  t: o
2714
2714
  }) {
2715
- const { colors: t } = b(), [n, i] = w(!1), a = F(() => [...e.results ?? []].sort((g, h) => g.rank - h.rank), [e.results]), s = a.length, p = s === 1 ? o.googleResultFound : k(o.googleResultsFound, { n: s }), d = we(e, o);
2715
+ const { colors: t } = b(), [n, i] = w(!1), a = F(() => [...e.results ?? []].sort((g, h) => g.rank - h.rank), [e.results]), s = a.length, u = s === 1 ? o.googleResultFound : k(o.googleResultsFound, { n: s }), d = we(e, o);
2716
2716
  return s === 0 ? /* @__PURE__ */ m("div", { style: { paddingBlock: "16px" }, children: [
2717
2717
  /* @__PURE__ */ r("span", { style: { color: t.textSecondary }, children: d }),
2718
2718
  /* @__PURE__ */ r(
@@ -2752,14 +2752,14 @@ function Tr({
2752
2752
  color: t.textSecondary,
2753
2753
  whiteSpace: "nowrap"
2754
2754
  },
2755
- children: p
2755
+ children: u
2756
2756
  }
2757
2757
  ),
2758
2758
  /* @__PURE__ */ r(
2759
2759
  "button",
2760
2760
  {
2761
2761
  type: "button",
2762
- onClick: () => i((u) => !u),
2762
+ onClick: () => i((p) => !p),
2763
2763
  style: {
2764
2764
  border: "none",
2765
2765
  background: "none",
@@ -2787,7 +2787,7 @@ function Tr({
2787
2787
  paddingTop: 8,
2788
2788
  borderTop: `1px solid ${t.borderDivider}`
2789
2789
  },
2790
- children: a.map((u, g) => /* @__PURE__ */ r(
2790
+ children: a.map((p, g) => /* @__PURE__ */ r(
2791
2791
  "div",
2792
2792
  {
2793
2793
  style: {
@@ -2796,9 +2796,9 @@ function Tr({
2796
2796
  borderBottom: g < a.length - 1 ? `1px solid ${t.border}` : void 0,
2797
2797
  minWidth: 0
2798
2798
  },
2799
- children: /* @__PURE__ */ r(Sr, { item: u, t: o })
2799
+ children: /* @__PURE__ */ r(Sr, { item: p, t: o })
2800
2800
  },
2801
- `${u.link}-${u.rank}-${g}`
2801
+ `${p.link}-${p.rank}-${g}`
2802
2802
  ))
2803
2803
  }
2804
2804
  )
@@ -2852,19 +2852,19 @@ function Me(e, o = 48) {
2852
2852
  }
2853
2853
  }
2854
2854
  function Er({ item: e }) {
2855
- return e.error != null ? /* @__PURE__ */ r(O, { size: 15, lineWidth: 2 }) : e.summary != null && e.summary !== "" ? /* @__PURE__ */ r(z, { size: 15, borderWidth: 2 }) : e.status != null ? /* @__PURE__ */ r("span", { className: "explore-memory-loader" }) : /* @__PURE__ */ r(z, { size: 15, borderWidth: 2 });
2855
+ return e.error != null ? /* @__PURE__ */ r(_, { size: 15, lineWidth: 2 }) : e.summary != null && e.summary !== "" ? /* @__PURE__ */ r(z, { size: 15, borderWidth: 2 }) : e.status != null ? /* @__PURE__ */ r("span", { className: "explore-memory-loader" }) : /* @__PURE__ */ r(z, { size: 15, borderWidth: 2 });
2856
2856
  }
2857
2857
  function Rr({ item: e }) {
2858
- return e.error != null ? /* @__PURE__ */ r(O, { size: 15, lineWidth: 2 }) : e.summary != null && e.summary !== "" ? /* @__PURE__ */ r(z, { size: 15, borderWidth: 2 }) : e.status != null ? /* @__PURE__ */ r("span", { className: "explore-memory-loader" }) : /* @__PURE__ */ r("span", { className: "explore-memory-loader" });
2858
+ return e.error != null ? /* @__PURE__ */ r(_, { size: 15, lineWidth: 2 }) : e.summary != null && e.summary !== "" ? /* @__PURE__ */ r(z, { size: 15, borderWidth: 2 }) : e.status != null ? /* @__PURE__ */ r("span", { className: "explore-memory-loader" }) : /* @__PURE__ */ r("span", { className: "explore-memory-loader" });
2859
2859
  }
2860
2860
  function Ir({
2861
2861
  item: e,
2862
2862
  t: o,
2863
2863
  isLatest: t = !1
2864
2864
  }) {
2865
- const { colors: n } = b(), i = e.error ?? e.summary ?? "", a = i.length > 0, s = e.error != null, p = A(null), d = e.summary != null && e.summary !== "", u = Ce(e, o), g = s || d || !a && u != null, h = e.error == null && (e.summary == null || e.summary === "");
2865
+ const { colors: n } = b(), i = e.error ?? e.summary ?? "", a = i.length > 0, s = e.error != null, u = A(null), d = e.summary != null && e.summary !== "", p = Ce(e, o), g = s || d || !a && p != null, h = e.error == null && (e.summary == null || e.summary === "");
2866
2866
  return $(() => {
2867
- const x = p.current;
2867
+ const x = u.current;
2868
2868
  x != null && a && (x.scrollTop = x.scrollHeight);
2869
2869
  }, [i, a]), /* @__PURE__ */ m(
2870
2870
  v.div,
@@ -2927,7 +2927,7 @@ function Ir({
2927
2927
  children: Me(e.url)
2928
2928
  }
2929
2929
  ),
2930
- !a && u != null && /* @__PURE__ */ r("div", { style: { fontSize: 12, color: n.textTertiary, minHeight: 18 }, children: t ? /* @__PURE__ */ r(C, { text: u, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ r("span", { style: { color: n.textTertiary }, children: u }) }),
2930
+ !a && p != null && /* @__PURE__ */ r("div", { style: { fontSize: 12, color: n.textTertiary, minHeight: 18 }, children: t ? /* @__PURE__ */ r(C, { text: p, duration: 2.5, repeat: !0 }) : /* @__PURE__ */ r("span", { style: { color: n.textTertiary }, children: p }) }),
2931
2931
  a && /* @__PURE__ */ r(
2932
2932
  "div",
2933
2933
  {
@@ -2940,7 +2940,7 @@ function Ir({
2940
2940
  children: /* @__PURE__ */ r(
2941
2941
  "div",
2942
2942
  {
2943
- ref: p,
2943
+ ref: u,
2944
2944
  style: {
2945
2945
  minHeight: Cr,
2946
2946
  maxHeight: Mr,
@@ -2969,7 +2969,7 @@ function Fr({
2969
2969
  item: e,
2970
2970
  t: o
2971
2971
  }) {
2972
- const { colors: t } = b(), [n, i] = w(!1), a = e.error ?? e.summary ?? "", s = e.error != null, p = a.length > de, d = a.length === 0 ? void 0 : n || !p ? a : `${a.slice(0, de)}...`, u = Ce(e, o), g = e.error == null && (e.summary == null || e.summary === "") && e.status != null;
2972
+ const { colors: t } = b(), [n, i] = w(!1), a = e.error ?? e.summary ?? "", s = e.error != null, u = a.length > de, d = a.length === 0 ? void 0 : n || !u ? a : `${a.slice(0, de)}...`, p = Ce(e, o), g = e.error == null && (e.summary == null || e.summary === "") && e.status != null;
2973
2973
  return /* @__PURE__ */ m(
2974
2974
  v.div,
2975
2975
  {
@@ -3031,7 +3031,7 @@ function Fr({
3031
3031
  children: Me(e.url)
3032
3032
  }
3033
3033
  ),
3034
- d == null && u != null && /* @__PURE__ */ r(
3034
+ d == null && p != null && /* @__PURE__ */ r(
3035
3035
  "span",
3036
3036
  {
3037
3037
  style: {
@@ -3039,26 +3039,26 @@ function Fr({
3039
3039
  color: t.textTertiary,
3040
3040
  lineHeight: 1.4
3041
3041
  },
3042
- children: u
3042
+ children: p
3043
3043
  }
3044
3044
  ),
3045
3045
  d != null && /* @__PURE__ */ m(R, { children: [
3046
3046
  /* @__PURE__ */ r(
3047
3047
  "span",
3048
3048
  {
3049
- onClick: p ? () => i((h) => !h) : void 0,
3049
+ onClick: u ? () => i((h) => !h) : void 0,
3050
3050
  style: {
3051
3051
  fontSize: 12,
3052
3052
  color: s ? t.textError : t.textSecondary,
3053
3053
  lineHeight: 1.4,
3054
3054
  whiteSpace: n ? "pre-wrap" : void 0,
3055
3055
  wordBreak: "break-word",
3056
- cursor: p ? "pointer" : "default"
3056
+ cursor: u ? "pointer" : "default"
3057
3057
  },
3058
3058
  children: d
3059
3059
  }
3060
3060
  ),
3061
- p && /* @__PURE__ */ r(
3061
+ u && /* @__PURE__ */ r(
3062
3062
  "span",
3063
3063
  {
3064
3064
  style: {
@@ -3111,7 +3111,7 @@ function zr({
3111
3111
  durationSeconds: t,
3112
3112
  t: n
3113
3113
  }) {
3114
- const { colors: i } = b(), a = e.input.urls, s = e.input.query, p = a.length, d = p === 1 ? k(n.scrapingPage, { query: s }) : k(n.scrapingPages, { n: p, query: s });
3114
+ const { colors: i } = b(), a = e.input.urls, s = e.input.query, u = a.length, d = u === 1 ? k(n.scrapingPage, { query: s }) : k(n.scrapingPages, { n: u, query: s });
3115
3115
  return /* @__PURE__ */ m("div", { style: { paddingBlock: "16px" }, children: [
3116
3116
  /* @__PURE__ */ r(
3117
3117
  v.div,
@@ -3142,13 +3142,13 @@ function Br({
3142
3142
  isLatest: o = !1,
3143
3143
  t
3144
3144
  }) {
3145
- const { colors: n } = b(), [i, a] = w(!1), s = e.results ?? [], { successCount: p, errorCount: d } = F(() => {
3145
+ const { colors: n } = b(), [i, a] = w(!1), s = e.results ?? [], { successCount: u, errorCount: d } = F(() => {
3146
3146
  let l = 0, c = 0;
3147
3147
  for (const y of s)
3148
3148
  y.error != null ? c += 1 : l += 1;
3149
3149
  return { successCount: l, errorCount: c };
3150
- }, [s]), u = s.length, g = e.input.query, h = s.length > 0 && s.every((l) => wr(l)), x = o && !h ? u === 1 ? k(t.scrapingPage, { query: g }) : k(t.scrapingPages, { n: u, query: g }) : u === 1 ? t.scrapedPage : k(t.scrapedPages, { n: u }), T = k(t.scrapeOkCount, { n: p }), f = d > 0 ? `${x} - ${T}, ${k(t.scrapeFailedCount, { n: d })}` : `${x} - ${T}`;
3151
- return u === 0 ? /* @__PURE__ */ r("div", { style: { paddingBlock: "10px" }, children: /* @__PURE__ */ r(
3150
+ }, [s]), p = s.length, g = e.input.query, h = s.length > 0 && s.every((l) => wr(l)), x = o && !h ? p === 1 ? k(t.scrapingPage, { query: g }) : k(t.scrapingPages, { n: p, query: g }) : p === 1 ? t.scrapedPage : k(t.scrapedPages, { n: p }), T = k(t.scrapeOkCount, { n: u }), f = d > 0 ? `${x} - ${T}, ${k(t.scrapeFailedCount, { n: d })}` : `${x} - ${T}`;
3151
+ return p === 0 ? /* @__PURE__ */ r("div", { style: { paddingBlock: "10px" }, children: /* @__PURE__ */ r(
3152
3152
  "div",
3153
3153
  {
3154
3154
  style: {
@@ -3580,7 +3580,7 @@ const Gr = ({ isLatest: e = !1, durationSeconds: o, t }) => {
3580
3580
  }
3581
3581
  ),
3582
3582
  /* @__PURE__ */ r(
3583
- U,
3583
+ H,
3584
3584
  {
3585
3585
  text: e.text,
3586
3586
  onMemoryClick: i
@@ -3654,7 +3654,7 @@ const Gr = ({ isLatest: e = !1, durationSeconds: o, t }) => {
3654
3654
  )
3655
3655
  ] });
3656
3656
  }, J = 5, Ur = ({ data: e, t: o }) => {
3657
- const { colors: t } = b(), [n, i] = w(!1), a = e.memories.map((T) => T.memoryTitle), s = a.length > 0, p = s && a.length > J, d = p && !n ? a.slice(0, J) : a, u = a.length - J, g = !p || n, h = a.length === 1 ? o.memoryFound : o.memoriesFoundPrefix, x = s ? `${h}${K(
3657
+ const { colors: t } = b(), [n, i] = w(!1), a = e.memories.map((T) => T.memoryTitle), s = a.length > 0, u = s && a.length > J, d = u && !n ? a.slice(0, J) : a, p = a.length - J, g = !u || n, h = a.length === 1 ? o.memoryFound : o.memoriesFoundPrefix, x = s ? `${h}${K(
3658
3658
  d,
3659
3659
  g ? o.and : void 0
3660
3660
  )}` : o.memoriesFound;
@@ -3667,7 +3667,7 @@ const Gr = ({ isLatest: e = !1, durationSeconds: o, t }) => {
3667
3667
  transition: { duration: 0.3, delay: 0 },
3668
3668
  children: [
3669
3669
  /* @__PURE__ */ r("span", { style: { color: t.textSecondary }, children: x }),
3670
- p && !n && /* @__PURE__ */ m(R, { children: [
3670
+ u && !n && /* @__PURE__ */ m(R, { children: [
3671
3671
  " ",
3672
3672
  /* @__PURE__ */ r(
3673
3673
  "button",
@@ -3686,12 +3686,12 @@ const Gr = ({ isLatest: e = !1, durationSeconds: o, t }) => {
3686
3686
  fontFamily: "inherit"
3687
3687
  },
3688
3688
  children: k(o.moreMemories, {
3689
- n: u
3689
+ n: p
3690
3690
  })
3691
3691
  }
3692
3692
  )
3693
3693
  ] }),
3694
- p && n && /* @__PURE__ */ m(R, { children: [
3694
+ u && n && /* @__PURE__ */ m(R, { children: [
3695
3695
  " ",
3696
3696
  /* @__PURE__ */ r(
3697
3697
  "button",
@@ -3728,7 +3728,7 @@ function Qr(e) {
3728
3728
  const jr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n, onSearchResultClick: i }) => {
3729
3729
  const a = Qr(e);
3730
3730
  return e.items === void 0 ? /* @__PURE__ */ r(
3731
- _,
3731
+ q,
3732
3732
  {
3733
3733
  data: a,
3734
3734
  isLatest: o,
@@ -3737,7 +3737,7 @@ const jr = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n, onSearchResul
3737
3737
  }
3738
3738
  ) : /* @__PURE__ */ m(R, { children: [
3739
3739
  /* @__PURE__ */ r(
3740
- _,
3740
+ q,
3741
3741
  {
3742
3742
  data: a,
3743
3743
  isLatest: !1,
@@ -3765,7 +3765,7 @@ function Kr({
3765
3765
  memory: e,
3766
3766
  completed: o
3767
3767
  }) {
3768
- return e.error != null ? /* @__PURE__ */ r(O, { size: 15, lineWidth: 2 }) : e.summary != null ? /* @__PURE__ */ r(z, { size: 15, borderWidth: 2 }) : o ? /* @__PURE__ */ r(z, { size: 15, borderWidth: 2 }) : /* @__PURE__ */ r("span", { className: "explore-memory-loader" });
3768
+ return e.error != null ? /* @__PURE__ */ r(_, { size: 15, lineWidth: 2 }) : e.summary != null ? /* @__PURE__ */ r(z, { size: 15, borderWidth: 2 }) : o ? /* @__PURE__ */ r(z, { size: 15, borderWidth: 2 }) : /* @__PURE__ */ r("span", { className: "explore-memory-loader" });
3769
3769
  }
3770
3770
  const me = 80;
3771
3771
  function Vr({
@@ -3773,14 +3773,14 @@ function Vr({
3773
3773
  completed: o,
3774
3774
  t
3775
3775
  }) {
3776
- const { colors: n } = b(), [i, a] = w(!1), s = e.summary ?? e.error, p = s != null && s.length > me, d = s != null ? i || !p ? s : `${s.slice(0, me)}...` : void 0, u = p, g = e.error != null;
3776
+ const { colors: n } = b(), [i, a] = w(!1), s = e.summary ?? e.error, u = s != null && s.length > me, d = s != null ? i || !u ? s : `${s.slice(0, me)}...` : void 0, p = u, g = e.error != null;
3777
3777
  return /* @__PURE__ */ m(
3778
3778
  v.div,
3779
3779
  {
3780
3780
  initial: { opacity: 0 },
3781
3781
  animate: { opacity: 1 },
3782
3782
  transition: { duration: 0.25 },
3783
- onClick: u ? () => a((h) => !h) : void 0,
3783
+ onClick: p ? () => a((h) => !h) : void 0,
3784
3784
  style: {
3785
3785
  paddingTop: "12px",
3786
3786
  paddingBottom: "12px",
@@ -3790,7 +3790,7 @@ function Vr({
3790
3790
  alignItems: "center",
3791
3791
  gap: "10px",
3792
3792
  minWidth: 0,
3793
- cursor: u ? "pointer" : "default"
3793
+ cursor: p ? "pointer" : "default"
3794
3794
  },
3795
3795
  children: [
3796
3796
  /* @__PURE__ */ r(
@@ -3839,7 +3839,7 @@ function Vr({
3839
3839
  children: d
3840
3840
  }
3841
3841
  ),
3842
- u && /* @__PURE__ */ r(
3842
+ p && /* @__PURE__ */ r(
3843
3843
  "span",
3844
3844
  {
3845
3845
  style: {
@@ -3931,7 +3931,7 @@ const Xr = ({ data: e, completed: o, t }) => {
3931
3931
  }
3932
3932
  );
3933
3933
  function Zr({ item: e }) {
3934
- return e.error != null ? /* @__PURE__ */ r(O, { size: 15, lineWidth: 2 }) : e.result != null ? /* @__PURE__ */ r(z, { size: 15, borderWidth: 2 }) : /* @__PURE__ */ r("span", { className: "explore-memory-loader" });
3934
+ return e.error != null ? /* @__PURE__ */ r(_, { size: 15, lineWidth: 2 }) : e.result != null ? /* @__PURE__ */ r(z, { size: 15, borderWidth: 2 }) : /* @__PURE__ */ r("span", { className: "explore-memory-loader" });
3935
3935
  }
3936
3936
  function en(e, o) {
3937
3937
  return k(o.searchingInMemoriesOfType, {
@@ -4013,17 +4013,17 @@ function rn({
4013
4013
  const nn = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
4014
4014
  const { colors: i } = b(), a = F(() => {
4015
4015
  let s = -1;
4016
- return e.memoryTypes.forEach((p, d) => {
4017
- p.result == null && p.error == null && (s = d);
4016
+ return e.memoryTypes.forEach((u, d) => {
4017
+ u.result == null && u.error == null && (s = d);
4018
4018
  }), s;
4019
4019
  }, [e.memoryTypes]);
4020
4020
  return /* @__PURE__ */ m("div", { style: { paddingBlock: "10px" }, children: [
4021
- o && !t && e.memoryTypes.length === 0 ? /* @__PURE__ */ r(C, { text: n.searchingMemoryTypes, duration: 2.5, repeat: !0 }) : e.memoryTypes.map((s, p) => /* @__PURE__ */ r(
4021
+ o && !t && e.memoryTypes.length === 0 ? /* @__PURE__ */ r(C, { text: n.searchingMemoryTypes, duration: 2.5, repeat: !0 }) : e.memoryTypes.map((s, u) => /* @__PURE__ */ r(
4022
4022
  rn,
4023
4023
  {
4024
4024
  item: s,
4025
4025
  t: n,
4026
- showShimmerForPrimary: p === a && o
4026
+ showShimmerForPrimary: u === a && o
4027
4027
  },
4028
4028
  s.memoryTypeId
4029
4029
  )),
@@ -4045,15 +4045,15 @@ const nn = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
4045
4045
  ), tn = Math.ceil(
4046
4046
  5 * Q * j
4047
4047
  );
4048
- function q(e) {
4048
+ function U(e) {
4049
4049
  return e.queries != null && e.queries.length > 0;
4050
4050
  }
4051
4051
  function an(e) {
4052
4052
  const o = e.reasoning;
4053
- return (o == null || o === "") && !q(e);
4053
+ return (o == null || o === "") && !U(e);
4054
4054
  }
4055
4055
  function ln(e) {
4056
- if (q(e)) return 3;
4056
+ if (U(e)) return 3;
4057
4057
  const o = e.reasoning;
4058
4058
  return o == null || o === "" ? 1 : e.reasoningCompleted === !0 ? 2 : 1;
4059
4059
  }
@@ -4065,11 +4065,11 @@ function cn({
4065
4065
  t: o,
4066
4066
  isActiveRow: t
4067
4067
  }) {
4068
- const { colors: n } = b(), i = an(e), a = ln(e), s = e.reasoning, p = s != null && s.length > 0, d = A(null), [u, g] = w(!1), h = i && t, x = a === 2 && t && !q(e);
4068
+ const { colors: n } = b(), i = an(e), a = ln(e), s = e.reasoning, u = s != null && s.length > 0, d = A(null), [p, g] = w(!1), h = i && t, x = a === 2 && t && !U(e);
4069
4069
  $(() => {
4070
4070
  const l = d.current;
4071
- l != null && a === 1 && p && (l.scrollTop = l.scrollHeight);
4072
- }, [s, a, p]);
4071
+ l != null && a === 1 && u && (l.scrollTop = l.scrollHeight);
4072
+ }, [s, a, u]);
4073
4073
  const T = k(o.searchingInMemoriesOfType, {
4074
4074
  name: e.memoryTypeName
4075
4075
  }), f = !i && a === 3;
@@ -4116,7 +4116,7 @@ function cn({
4116
4116
  },
4117
4117
  children: [
4118
4118
  /* @__PURE__ */ r("span", { style: { fontSize: 13, fontWeight: 500, color: n.textPrimary }, children: h ? /* @__PURE__ */ r(C, { text: T, duration: 2.5, repeat: !0 }) : e.memoryTypeName }),
4119
- a === 1 && p && !q(e) && /* @__PURE__ */ m("div", { style: { minWidth: 0 }, children: [
4119
+ a === 1 && u && !U(e) && /* @__PURE__ */ m("div", { style: { minWidth: 0 }, children: [
4120
4120
  /* @__PURE__ */ r(
4121
4121
  "span",
4122
4122
  {
@@ -4209,7 +4209,7 @@ function cn({
4209
4209
  }
4210
4210
  )
4211
4211
  ] }),
4212
- p && /* @__PURE__ */ m(R, { children: [
4212
+ u && /* @__PURE__ */ m(R, { children: [
4213
4213
  /* @__PURE__ */ r(
4214
4214
  "button",
4215
4215
  {
@@ -4225,10 +4225,10 @@ function cn({
4225
4225
  color: n.textSecondary,
4226
4226
  textDecoration: "underline"
4227
4227
  },
4228
- children: u ? o.memorySearchHideReasoning : o.memorySearchViewReasoning
4228
+ children: p ? o.memorySearchHideReasoning : o.memorySearchViewReasoning
4229
4229
  }
4230
4230
  ),
4231
- u && /* @__PURE__ */ r(
4231
+ p && /* @__PURE__ */ r(
4232
4232
  "div",
4233
4233
  {
4234
4234
  style: {
@@ -4256,17 +4256,17 @@ function cn({
4256
4256
  const dn = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
4257
4257
  const { colors: i } = b(), a = F(() => {
4258
4258
  let s = -1;
4259
- return e.memoryTypes.forEach((p, d) => {
4260
- q(p) || (s = d);
4259
+ return e.memoryTypes.forEach((u, d) => {
4260
+ U(u) || (s = d);
4261
4261
  }), s;
4262
4262
  }, [e.memoryTypes]);
4263
4263
  return /* @__PURE__ */ m("div", { style: { paddingBlock: "10px" }, children: [
4264
- o && !t && e.memoryTypes.length === 0 ? /* @__PURE__ */ r(C, { text: n.memorySearchGeneratingQueries, duration: 2.5, repeat: !0 }) : e.memoryTypes.map((s, p) => /* @__PURE__ */ r(
4264
+ o && !t && e.memoryTypes.length === 0 ? /* @__PURE__ */ r(C, { text: n.memorySearchGeneratingQueries, duration: 2.5, repeat: !0 }) : e.memoryTypes.map((s, u) => /* @__PURE__ */ r(
4265
4265
  cn,
4266
4266
  {
4267
4267
  item: s,
4268
4268
  t: n,
4269
- isActiveRow: p === a && o
4269
+ isActiveRow: u === a && o
4270
4270
  },
4271
4271
  s.memoryTypeId
4272
4272
  )),
@@ -4285,7 +4285,7 @@ const dn = ({ data: e, isLatest: o = !1, durationSeconds: t, t: n }) => {
4285
4285
  ] });
4286
4286
  };
4287
4287
  function pn(e) {
4288
- return e.some((n) => n.result == null && n.error == null) ? /* @__PURE__ */ r("span", { className: "explore-memory-loader" }) : e.some((n) => n.error != null) ? /* @__PURE__ */ r(O, { size: 15, lineWidth: 2 }) : /* @__PURE__ */ r(z, { size: 15, borderWidth: 2 });
4288
+ return e.some((n) => n.result == null && n.error == null) ? /* @__PURE__ */ r("span", { className: "explore-memory-loader" }) : e.some((n) => n.error != null) ? /* @__PURE__ */ r(_, { size: 15, lineWidth: 2 }) : /* @__PURE__ */ r(z, { size: 15, borderWidth: 2 });
4289
4289
  }
4290
4290
  function un({
4291
4291
  item: e,
@@ -4324,7 +4324,7 @@ function mn({
4324
4324
  children: n.memorySearchExploreNoResults
4325
4325
  }
4326
4326
  );
4327
- const p = !!t;
4327
+ const u = !!t;
4328
4328
  return /* @__PURE__ */ r(
4329
4329
  "div",
4330
4330
  {
@@ -4336,7 +4336,7 @@ function mn({
4336
4336
  paddingTop: 8,
4337
4337
  borderTop: `1px solid ${i.borderDivider}`
4338
4338
  },
4339
- children: e.map((d, u) => {
4339
+ children: e.map((d, p) => {
4340
4340
  const g = d.memoryTitle !== "" ? d.memoryTitle : d.memoryId, h = re(
4341
4341
  d.chunks
4342
4342
  ), x = [
@@ -4354,7 +4354,7 @@ function mn({
4354
4354
  memoryTypeId: o.memoryTypeId,
4355
4355
  memoryTypeName: o.memoryTypeName,
4356
4356
  query: o.query
4357
- }, f = `${o.query}::${d.memoryId}::${u}`, l = a === f;
4357
+ }, f = `${o.query}::${d.memoryId}::${p}`, l = a === f;
4358
4358
  return /* @__PURE__ */ m(
4359
4359
  "div",
4360
4360
  {
@@ -4363,9 +4363,9 @@ function mn({
4363
4363
  flexDirection: "row",
4364
4364
  alignItems: "flex-start",
4365
4365
  gap: "12px",
4366
- paddingTop: u > 0 ? 12 : 0,
4367
- paddingBottom: u < e.length - 1 ? 12 : 0,
4368
- borderBottom: u < e.length - 1 ? `1px solid ${i.border}` : void 0,
4366
+ paddingTop: p > 0 ? 12 : 0,
4367
+ paddingBottom: p < e.length - 1 ? 12 : 0,
4368
+ borderBottom: p < e.length - 1 ? `1px solid ${i.border}` : void 0,
4369
4369
  minWidth: 0
4370
4370
  },
4371
4371
  children: [
@@ -4421,7 +4421,7 @@ function mn({
4421
4421
  ]
4422
4422
  }
4423
4423
  ),
4424
- p && /* @__PURE__ */ m(
4424
+ u && /* @__PURE__ */ m(
4425
4425
  "button",
4426
4426
  {
4427
4427
  type: "button",
@@ -4467,7 +4467,7 @@ function mn({
4467
4467
  )
4468
4468
  ]
4469
4469
  },
4470
- `${d.memoryId}-${u}`
4470
+ `${d.memoryId}-${p}`
4471
4471
  );
4472
4472
  })
4473
4473
  }
@@ -4492,8 +4492,8 @@ function hn({
4492
4492
  toggleExpanded: i,
4493
4493
  onExploreQueryResultClick: a
4494
4494
  }) {
4495
- const { colors: s } = b(), p = e.items.map((u) => u.item), d = p.some(
4496
- (u) => u.result == null && u.error == null
4495
+ const { colors: s } = b(), u = e.items.map((p) => p.item), d = u.some(
4496
+ (p) => p.result == null && p.error == null
4497
4497
  );
4498
4498
  return /* @__PURE__ */ m(
4499
4499
  v.div,
@@ -4523,7 +4523,7 @@ function hn({
4523
4523
  width: 32,
4524
4524
  ...d ? {} : { paddingTop: 2 }
4525
4525
  },
4526
- children: pn(p)
4526
+ children: pn(u)
4527
4527
  }
4528
4528
  ),
4529
4529
  /* @__PURE__ */ m(
@@ -4549,9 +4549,9 @@ function hn({
4549
4549
  })
4550
4550
  }
4551
4551
  ),
4552
- e.items.map(({ item: u, flatIndex: g }) => {
4552
+ e.items.map(({ item: p, flatIndex: g }) => {
4553
4553
  var c;
4554
- const h = u.result != null, x = u.error != null, T = t && !h && !x, f = n[g] === !0, l = ((c = u.result) == null ? void 0 : c.items) ?? [];
4554
+ const h = p.result != null, x = p.error != null, T = t && !h && !x, f = n[g] === !0, l = ((c = p.result) == null ? void 0 : c.items) ?? [];
4555
4555
  return /* @__PURE__ */ m(
4556
4556
  "div",
4557
4557
  {
@@ -4588,11 +4588,11 @@ function hn({
4588
4588
  children: T ? /* @__PURE__ */ r(
4589
4589
  C,
4590
4590
  {
4591
- text: u.query,
4591
+ text: p.query,
4592
4592
  duration: 2.5,
4593
4593
  repeat: !0
4594
4594
  }
4595
- ) : u.query
4595
+ ) : p.query
4596
4596
  }
4597
4597
  ),
4598
4598
  /* @__PURE__ */ m(
@@ -4606,7 +4606,7 @@ function hn({
4606
4606
  flexShrink: 0
4607
4607
  },
4608
4608
  children: [
4609
- /* @__PURE__ */ r(un, { item: u, t: o }),
4609
+ /* @__PURE__ */ r(un, { item: p, t: o }),
4610
4610
  h && /* @__PURE__ */ r(
4611
4611
  "button",
4612
4612
  {
@@ -4635,14 +4635,14 @@ function hn({
4635
4635
  mn,
4636
4636
  {
4637
4637
  items: l,
4638
- queryRow: u,
4638
+ queryRow: p,
4639
4639
  onExploreQueryResultClick: a,
4640
4640
  t: o
4641
4641
  }
4642
4642
  )
4643
4643
  ]
4644
4644
  },
4645
- `${e.memoryTypeId}-${g}-${u.query}`
4645
+ `${e.memoryTypeId}-${g}-${p.query}`
4646
4646
  );
4647
4647
  })
4648
4648
  ]
@@ -4659,14 +4659,14 @@ const yn = ({
4659
4659
  onExploreQueryResultClick: n,
4660
4660
  t: i
4661
4661
  }) => {
4662
- const { colors: a } = b(), [s, p] = w(
4662
+ const { colors: a } = b(), [s, u] = w(
4663
4663
  {}
4664
4664
  ), d = L((g) => {
4665
- p((h) => ({
4665
+ u((h) => ({
4666
4666
  ...h,
4667
4667
  [g]: !h[g]
4668
4668
  }));
4669
- }, []), u = F(
4669
+ }, []), p = F(
4670
4670
  () => gn(e.queries),
4671
4671
  [e.queries]
4672
4672
  );
@@ -4678,7 +4678,7 @@ const yn = ({
4678
4678
  duration: 2.5,
4679
4679
  repeat: !0
4680
4680
  }
4681
- ) : u.map((g) => /* @__PURE__ */ r(
4681
+ ) : p.map((g) => /* @__PURE__ */ r(
4682
4682
  hn,
4683
4683
  {
4684
4684
  group: g,
@@ -4704,7 +4704,7 @@ const yn = ({
4704
4704
  )
4705
4705
  ] });
4706
4706
  }, fn = ({ data: e, onSearchResultClick: o, t }) => {
4707
- const { colors: n } = b(), i = e.response.items, a = !!o, [s, p] = w(null);
4707
+ const { colors: n } = b(), i = e.response.items, a = !!o, [s, u] = w(null);
4708
4708
  return /* @__PURE__ */ m("div", { style: { paddingBlock: "16px" }, children: [
4709
4709
  /* @__PURE__ */ r(
4710
4710
  v.div,
@@ -4729,7 +4729,7 @@ const yn = ({
4729
4729
  flexDirection: "column",
4730
4730
  gap: 0
4731
4731
  },
4732
- children: i.map((d, u) => {
4732
+ children: i.map((d, p) => {
4733
4733
  const g = d.memoryTitle !== "" ? d.memoryTitle : d.memoryId, h = re(
4734
4734
  d.chunks
4735
4735
  ), x = [
@@ -4746,13 +4746,13 @@ const yn = ({
4746
4746
  memoryTypeId: d.memoryTypeId,
4747
4747
  memoryTypeName: d.memoryTypeName,
4748
4748
  pageNumbers: h
4749
- }, f = `${d.memoryId}-${u}`, l = s === f;
4749
+ }, f = `${d.memoryId}-${p}`, l = s === f;
4750
4750
  return /* @__PURE__ */ m(
4751
4751
  v.div,
4752
4752
  {
4753
4753
  initial: { opacity: 0 },
4754
4754
  animate: { opacity: 1 },
4755
- transition: { duration: 0.2, delay: u * 0.04 },
4755
+ transition: { duration: 0.2, delay: p * 0.04 },
4756
4756
  style: {
4757
4757
  display: "flex",
4758
4758
  flexDirection: "row",
@@ -4760,7 +4760,7 @@ const yn = ({
4760
4760
  gap: "12px",
4761
4761
  paddingTop: "12px",
4762
4762
  paddingBottom: "12px",
4763
- borderBottom: u < i.length - 1 ? `1px solid ${n.border}` : void 0,
4763
+ borderBottom: p < i.length - 1 ? `1px solid ${n.border}` : void 0,
4764
4764
  minWidth: 0
4765
4765
  },
4766
4766
  children: [
@@ -4821,11 +4821,11 @@ const yn = ({
4821
4821
  "aria-busy": l,
4822
4822
  disabled: l,
4823
4823
  onClick: async () => {
4824
- p(f);
4824
+ u(f);
4825
4825
  try {
4826
4826
  await o(T);
4827
4827
  } finally {
4828
- p(null);
4828
+ u(null);
4829
4829
  }
4830
4830
  },
4831
4831
  style: {
@@ -4858,13 +4858,13 @@ const yn = ({
4858
4858
  )
4859
4859
  ]
4860
4860
  },
4861
- `${d.memoryId}-${u}`
4861
+ `${d.memoryId}-${p}`
4862
4862
  );
4863
4863
  })
4864
4864
  }
4865
4865
  )
4866
4866
  ] });
4867
- }, G = ({ message: e }) => {
4867
+ }, O = ({ message: e }) => {
4868
4868
  const { colors: o } = b();
4869
4869
  return /* @__PURE__ */ r("div", { style: { paddingBlock: "16px" }, children: /* @__PURE__ */ r(
4870
4870
  v.div,
@@ -4918,9 +4918,9 @@ const kn = ({
4918
4918
  t: i,
4919
4919
  onMemoryClick: a,
4920
4920
  onSourceClick: s,
4921
- onSearchResultClick: p,
4921
+ onSearchResultClick: u,
4922
4922
  onExploreQueryResultClick: d,
4923
- downloadFile: u
4923
+ downloadFile: p
4924
4924
  }) => {
4925
4925
  const { theme: g, colors: h } = b(), x = A(null);
4926
4926
  $(() => {
@@ -4930,7 +4930,7 @@ const kn = ({
4930
4930
  const c = l.item.data;
4931
4931
  if (c.taskType === "StreamingChatCompletion" && c.eventType === "Text")
4932
4932
  return /* @__PURE__ */ r(
4933
- U,
4933
+ H,
4934
4934
  {
4935
4935
  text: c.text,
4936
4936
  onMemoryClick: a
@@ -4942,10 +4942,10 @@ const kn = ({
4942
4942
  switch (c.eventType) {
4943
4943
  case "Text":
4944
4944
  return /* @__PURE__ */ r(
4945
- U,
4945
+ H,
4946
4946
  {
4947
4947
  text: c.text,
4948
- onFileDownload: u,
4948
+ onFileDownload: p,
4949
4949
  onMemoryClick: a
4950
4950
  }
4951
4951
  );
@@ -5031,7 +5031,7 @@ const kn = ({
5031
5031
  );
5032
5032
  case "Search":
5033
5033
  return /* @__PURE__ */ r(
5034
- _,
5034
+ q,
5035
5035
  {
5036
5036
  data: c,
5037
5037
  isLatest: l.isLatest,
@@ -5047,7 +5047,7 @@ const kn = ({
5047
5047
  isLatest: l.isLatest,
5048
5048
  durationSeconds: l.durationSeconds,
5049
5049
  t: i,
5050
- onSearchResultClick: p
5050
+ onSearchResultClick: u
5051
5051
  }
5052
5052
  );
5053
5053
  case "FindSources":
@@ -5084,7 +5084,7 @@ const kn = ({
5084
5084
  oe,
5085
5085
  {
5086
5086
  data: c,
5087
- onSearchResultClick: p,
5087
+ onSearchResultClick: u,
5088
5088
  t: i
5089
5089
  }
5090
5090
  );
@@ -5109,10 +5109,17 @@ const kn = ({
5109
5109
  }
5110
5110
  );
5111
5111
  case "Completed":
5112
- return null;
5112
+ return /* @__PURE__ */ r(
5113
+ H,
5114
+ {
5115
+ text: c.response.textResponse,
5116
+ onFileDownload: p,
5117
+ onMemoryClick: a
5118
+ }
5119
+ );
5113
5120
  default: {
5114
5121
  const y = c;
5115
- return y.eventType === "Error" && "message" in y ? /* @__PURE__ */ r(G, { message: y.message }) : (console.warn(
5122
+ return y.eventType === "Error" && "message" in y ? /* @__PURE__ */ r(O, { message: y.message }) : (console.warn(
5116
5123
  "[fency] Unknown MemoryChat eventType (no UI):",
5117
5124
  y.eventType,
5118
5125
  y
@@ -5157,13 +5164,13 @@ const kn = ({
5157
5164
  fn,
5158
5165
  {
5159
5166
  data: c,
5160
- onSearchResultClick: p,
5167
+ onSearchResultClick: u,
5161
5168
  t: i
5162
5169
  }
5163
5170
  );
5164
5171
  default: {
5165
5172
  const y = c;
5166
- return y.eventType === "Error" && "message" in y ? /* @__PURE__ */ r(G, { message: y.message }) : (console.warn(
5173
+ return y.eventType === "Error" && "message" in y ? /* @__PURE__ */ r(O, { message: y.message }) : (console.warn(
5167
5174
  "[fency] Unknown MemorySearch eventType (no UI):",
5168
5175
  y.eventType,
5169
5176
  y
@@ -5174,10 +5181,10 @@ const kn = ({
5174
5181
  switch (c.eventType) {
5175
5182
  case "Text":
5176
5183
  return /* @__PURE__ */ r(
5177
- U,
5184
+ H,
5178
5185
  {
5179
5186
  text: c.text,
5180
- onFileDownload: u,
5187
+ onFileDownload: p,
5181
5188
  onMemoryClick: a
5182
5189
  }
5183
5190
  );
@@ -5242,7 +5249,7 @@ const kn = ({
5242
5249
  isLatest: l.isLatest,
5243
5250
  durationSeconds: l.durationSeconds,
5244
5251
  t: i,
5245
- onSearchResultClick: p
5252
+ onSearchResultClick: u
5246
5253
  }
5247
5254
  );
5248
5255
  case "SemanticSearchForEach":
@@ -5285,20 +5292,33 @@ const kn = ({
5285
5292
  }
5286
5293
  );
5287
5294
  case "Completed":
5288
- return null;
5295
+ return /* @__PURE__ */ r(
5296
+ H,
5297
+ {
5298
+ text: c.response.textResponse,
5299
+ onFileDownload: p,
5300
+ onMemoryClick: a
5301
+ }
5302
+ );
5289
5303
  default: {
5290
5304
  const y = c;
5291
- return y.eventType === "Error" && "message" in y ? /* @__PURE__ */ r(G, { message: y.message }) : (console.warn(
5305
+ return y.eventType === "Error" && "message" in y ? /* @__PURE__ */ r(O, { message: y.message }) : (console.warn(
5292
5306
  "[fency] Unknown ExploreMemories eventType (no UI):",
5293
5307
  y.eventType,
5294
5308
  y
5295
5309
  ), null);
5296
5310
  }
5297
5311
  }
5298
- return c.taskType === "StreamingChatCompletion" && c.eventType === "Completed" ? null : c.eventType === "Error" && "message" in c ? /* @__PURE__ */ r(G, { message: c.message }) : null;
5312
+ return c.taskType === "StreamingChatCompletion" && c.eventType === "Completed" ? /* @__PURE__ */ r(
5313
+ H,
5314
+ {
5315
+ text: c.response.textResponse,
5316
+ onMemoryClick: a
5317
+ }
5318
+ ) : c.eventType === "Error" && "message" in c ? /* @__PURE__ */ r(O, { message: c.message }) : null;
5299
5319
  };
5300
5320
  if (e.length === 0)
5301
- return t ? /* @__PURE__ */ r("div", { style: { width: "fit-content" }, children: /* @__PURE__ */ r(G, { message: t.message }) }) : o ? /* @__PURE__ */ r("div", { style: { width: "fit-content", paddingBlock: "16px" }, children: /* @__PURE__ */ r(
5321
+ return t ? /* @__PURE__ */ r("div", { style: { width: "fit-content" }, children: /* @__PURE__ */ r(O, { message: t.message }) }) : o ? /* @__PURE__ */ r("div", { style: { width: "fit-content", paddingBlock: "16px" }, children: /* @__PURE__ */ r(
5302
5322
  C,
5303
5323
  {
5304
5324
  text: n ?? i.processingYourTask,
@@ -5375,7 +5395,7 @@ const kn = ({
5375
5395
  },
5376
5396
  l.item.progressItemId
5377
5397
  )) }),
5378
- t ? /* @__PURE__ */ r("div", { style: { marginTop: 8 }, children: /* @__PURE__ */ r(G, { message: t.message }) }) : null
5398
+ t ? /* @__PURE__ */ r("div", { style: { marginTop: 8 }, children: /* @__PURE__ */ r(O, { message: t.message }) }) : null
5379
5399
  ]
5380
5400
  }
5381
5401
  );
@@ -5383,8 +5403,8 @@ const kn = ({
5383
5403
  const { colors: n } = b(), [i, a] = w(!1);
5384
5404
  $(() => {
5385
5405
  if (!i) return;
5386
- const p = window.setTimeout(() => a(!1), 1500);
5387
- return () => window.clearTimeout(p);
5406
+ const u = window.setTimeout(() => a(!1), 1500);
5407
+ return () => window.clearTimeout(u);
5388
5408
  }, [i]);
5389
5409
  const s = L(async () => {
5390
5410
  try {
@@ -5423,7 +5443,7 @@ const kn = ({
5423
5443
  onExploreQueryResultClick: s
5424
5444
  }) => {
5425
5445
  var h;
5426
- const p = Ve(e), d = (e.params.type === "MemoryChat" || e.params.type === "MemorySearch") && "language" in e.params ? e.params.language ?? "en" : t ?? "en", u = nr(d), g = (h = e.confirmedData) == null ? void 0 : h.taskId;
5446
+ const u = Ve(e), d = (e.params.type === "MemoryChat" || e.params.type === "MemorySearch") && "language" in e.params ? e.params.language ?? "en" : t ?? "en", p = nr(d), g = (h = e.confirmedData) == null ? void 0 : h.taskId;
5427
5447
  return /* @__PURE__ */ r(Ze, { theme: o, children: /* @__PURE__ */ m("div", { style: { position: "relative" }, children: [
5428
5448
  g ? /* @__PURE__ */ r(
5429
5449
  "div",
@@ -5438,8 +5458,8 @@ const kn = ({
5438
5458
  Sn,
5439
5459
  {
5440
5460
  taskId: g,
5441
- label: u.copyId,
5442
- copiedLabel: u.copiedId
5461
+ label: p.copyId,
5462
+ copiedLabel: p.copiedId
5443
5463
  }
5444
5464
  )
5445
5465
  }
@@ -5447,11 +5467,11 @@ const kn = ({
5447
5467
  /* @__PURE__ */ r(
5448
5468
  kn,
5449
5469
  {
5450
- progressViewItems: p,
5470
+ progressViewItems: u,
5451
5471
  loading: e.loading,
5452
5472
  error: e.error,
5453
5473
  loadingText: e.loadingText,
5454
- t: u,
5474
+ t: p,
5455
5475
  onMemoryClick: n,
5456
5476
  onSourceClick: i,
5457
5477
  onSearchResultClick: a,
@@ -5468,7 +5488,7 @@ export {
5468
5488
  Rn as FencyProvider,
5469
5489
  fn as MemorySearchCompletedResults,
5470
5490
  Pn as StreamEventManager,
5471
- O as XMark,
5491
+ _ as XMark,
5472
5492
  Je as darkAgentTaskThemeColors,
5473
5493
  be as getAgentTaskPrismStyle,
5474
5494
  ke as lightAgentTaskThemeColors,