@fencyai/react 0.1.89 → 0.1.90

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
@@ -2,7 +2,7 @@ import { createChatCompletion as ga, listMemories as Kg, listMemoryTypes as Xg,
2
2
  import * as R from "react";
3
3
  import je, { createContext as Qg, useContext as Jg, useState as ee, useCallback as le, useMemo as rn, useEffect as ke, useRef as We, useLayoutEffect as fa } from "react";
4
4
  import { z as ef } from "zod";
5
- import { jsxs as Ue, jsx as P, Fragment as jr } from "react/jsx-runtime";
5
+ import { jsxs as Fe, jsx as P, Fragment as jr } from "react/jsx-runtime";
6
6
  import './assets/index.css';const vd = Qg(
7
7
  void 0
8
8
  );
@@ -247,7 +247,7 @@ function _d(e, t) {
247
247
  ), [a, i] = ee(
248
248
  null
249
249
  ), o = wt(), s = async (c) => {
250
- const d = await c.fetchClientSecret(), { fetchClientSecret: g, nextPageToken: f, previousPageToken: m, ...y } = c, h = await e({
250
+ const d = await c.fetchClientSecret(), { fetchClientSecret: g, nextPageToken: f, previousPageToken: m, ...y } = c, b = await e({
251
251
  pk: o.fency.publishableKey,
252
252
  clientSecret: d.clientSecret,
253
253
  request: {
@@ -260,17 +260,17 @@ function _d(e, t) {
260
260
  },
261
261
  baseUrl: o.fency.baseUrl
262
262
  });
263
- return h.type === "success" && h.items && h.pagination ? {
263
+ return b.type === "success" && b.items && b.pagination ? {
264
264
  type: "success",
265
265
  page: {
266
- items: h.items,
267
- hasNextPage: h.pagination.nextPageToken != null,
268
- hasPreviousPage: h.pagination.previousPageToken != null,
269
- pagination: h.pagination
266
+ items: b.items,
267
+ hasNextPage: b.pagination.nextPageToken != null,
268
+ hasPreviousPage: b.pagination.previousPageToken != null,
269
+ pagination: b.pagination
270
270
  }
271
271
  } : {
272
272
  type: "error",
273
- error: h.error ?? {
273
+ error: b.error ?? {
274
274
  code: "UNKNOWN_ERROR",
275
275
  message: "An unknown error occurred"
276
276
  }
@@ -677,7 +677,7 @@ const df = (e) => {
677
677
  };
678
678
  return r((y) => [
679
679
  ...y.filter(
680
- (h) => h.streamId !== d.stream.id
680
+ (b) => b.streamId !== d.stream.id
681
681
  ),
682
682
  {
683
683
  triggeredAt: (/* @__PURE__ */ new Date()).toISOString(),
@@ -2077,12 +2077,12 @@ function Yf(e, t) {
2077
2077
  var f = i(), m = u($f);
2078
2078
  if (m) {
2079
2079
  if (c(), !u(zf)) return s("property missing ':'");
2080
- var y = u(Gf), h = f({
2080
+ var y = u(Gf), b = f({
2081
2081
  type: qf,
2082
2082
  property: rc(m[0].replace(ec, yt)),
2083
2083
  value: y ? rc(y[0].replace(ec, yt)) : yt
2084
2084
  });
2085
- return u(Hf), h;
2085
+ return u(Hf), b;
2086
2086
  }
2087
2087
  }
2088
2088
  function g() {
@@ -2776,7 +2776,7 @@ function Hm(e) {
2776
2776
  T = t.events[_][1].end;
2777
2777
  break;
2778
2778
  }
2779
- h(r);
2779
+ b(r);
2780
2780
  let I = v;
2781
2781
  for (; I < t.events.length; )
2782
2782
  t.events[I][1].end = {
@@ -2797,7 +2797,7 @@ function Hm(e) {
2797
2797
  return t.containerState = {}, e.check(cc, p, c)(A);
2798
2798
  }
2799
2799
  function p(A) {
2800
- return a && S(), h(r), d(A);
2800
+ return a && S(), b(r), d(A);
2801
2801
  }
2802
2802
  function c(A) {
2803
2803
  return t.parser.lazy[t.now().line] = r !== n.length, o = t.now().offset, f(A);
@@ -2810,7 +2810,7 @@ function Hm(e) {
2810
2810
  }
2811
2811
  function f(A) {
2812
2812
  if (A === null) {
2813
- a && S(), h(0), e.consume(A);
2813
+ a && S(), b(0), e.consume(A);
2814
2814
  return;
2815
2815
  }
2816
2816
  return a = a || t.parser.flow(t.now()), e.enter("chunkFlow", {
@@ -2821,7 +2821,7 @@ function Hm(e) {
2821
2821
  }
2822
2822
  function m(A) {
2823
2823
  if (A === null) {
2824
- y(e.exit("chunkFlow"), !0), h(0), e.consume(A);
2824
+ y(e.exit("chunkFlow"), !0), b(0), e.consume(A);
2825
2825
  return;
2826
2826
  }
2827
2827
  return H(A) ? (e.consume(A), y(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, s) : (e.consume(A), m);
@@ -2848,14 +2848,14 @@ function Hm(e) {
2848
2848
  }
2849
2849
  M = !0;
2850
2850
  }
2851
- for (h(r), T = I; T < t.events.length; )
2851
+ for (b(r), T = I; T < t.events.length; )
2852
2852
  t.events[T][1].end = {
2853
2853
  ...k
2854
2854
  }, T++;
2855
2855
  Oe(t.events, O + 1, 0, t.events.slice(I)), t.events.length = T;
2856
2856
  }
2857
2857
  }
2858
- function h(A) {
2858
+ function b(A) {
2859
2859
  let v = n.length;
2860
2860
  for (; v-- > A; ) {
2861
2861
  const _ = n[v];
@@ -3134,9 +3134,9 @@ function tb(e, t, n) {
3134
3134
  return e.attempt(a, v, y)(T);
3135
3135
  }
3136
3136
  function y(T) {
3137
- return e.enter("lineEnding"), e.consume(T), e.exit("lineEnding"), h;
3137
+ return e.enter("lineEnding"), e.consume(T), e.exit("lineEnding"), b;
3138
3138
  }
3139
- function h(T) {
3139
+ function b(T) {
3140
3140
  return i > 0 && Y(T) ? J(e, S, "linePrefix", i + 1)(T) : S(T);
3141
3141
  }
3142
3142
  function S(T) {
@@ -3471,8 +3471,8 @@ function db(e, t) {
3471
3471
  // Find a void token that includes a break.
3472
3472
  s[d][0] === "exit" && s[d - 1][0] === "enter" && s[d][1].type === s[d - 1][1].type && s[d][1].start.line !== s[d][1].end.line && (m = d + 1, y.push(m), g._tokenizer = void 0, g.previous = void 0, g = g.next);
3473
3473
  for (o.events = [], g ? (g._tokenizer = void 0, g.previous = void 0) : y.pop(), d = y.length; d--; ) {
3474
- const h = s.slice(y[d], y[d + 1]), S = i.pop();
3475
- u.push([S, S + h.length - 1]), e.splice(S, 2, h);
3474
+ const b = s.slice(y[d], y[d + 1]), S = i.pop();
3475
+ u.push([S, S + b.length - 1]), e.splice(S, 2, b);
3476
3476
  }
3477
3477
  for (u.reverse(), d = -1; ++d < u.length; )
3478
3478
  l[f + u[d][0]] = f + u[d][1], f += u[d][1] - u[d][0] - 1;
@@ -3526,27 +3526,27 @@ function Kd(e, t, n, r, a, i, o, s, u) {
3526
3526
  const l = u || Number.POSITIVE_INFINITY;
3527
3527
  let p = 0;
3528
3528
  return c;
3529
- function c(h) {
3530
- return h === 60 ? (e.enter(r), e.enter(a), e.enter(i), e.consume(h), e.exit(i), d) : h === null || h === 32 || h === 41 || Hn(h) ? n(h) : (e.enter(r), e.enter(o), e.enter(s), e.enter("chunkString", {
3529
+ function c(b) {
3530
+ return b === 60 ? (e.enter(r), e.enter(a), e.enter(i), e.consume(b), e.exit(i), d) : b === null || b === 32 || b === 41 || Hn(b) ? n(b) : (e.enter(r), e.enter(o), e.enter(s), e.enter("chunkString", {
3531
3531
  contentType: "string"
3532
- }), m(h));
3532
+ }), m(b));
3533
3533
  }
3534
- function d(h) {
3535
- return h === 62 ? (e.enter(i), e.consume(h), e.exit(i), e.exit(a), e.exit(r), t) : (e.enter(s), e.enter("chunkString", {
3534
+ function d(b) {
3535
+ return b === 62 ? (e.enter(i), e.consume(b), e.exit(i), e.exit(a), e.exit(r), t) : (e.enter(s), e.enter("chunkString", {
3536
3536
  contentType: "string"
3537
- }), g(h));
3537
+ }), g(b));
3538
3538
  }
3539
- function g(h) {
3540
- return h === 62 ? (e.exit("chunkString"), e.exit(s), d(h)) : h === null || h === 60 || H(h) ? n(h) : (e.consume(h), h === 92 ? f : g);
3539
+ function g(b) {
3540
+ return b === 62 ? (e.exit("chunkString"), e.exit(s), d(b)) : b === null || b === 60 || H(b) ? n(b) : (e.consume(b), b === 92 ? f : g);
3541
3541
  }
3542
- function f(h) {
3543
- return h === 60 || h === 62 || h === 92 ? (e.consume(h), g) : g(h);
3542
+ function f(b) {
3543
+ return b === 60 || b === 62 || b === 92 ? (e.consume(b), g) : g(b);
3544
3544
  }
3545
- function m(h) {
3546
- return !p && (h === null || h === 41 || re(h)) ? (e.exit("chunkString"), e.exit(s), e.exit(o), e.exit(r), t(h)) : p < l && h === 40 ? (e.consume(h), p++, m) : h === 41 ? (e.consume(h), p--, m) : h === null || h === 32 || h === 40 || Hn(h) ? n(h) : (e.consume(h), h === 92 ? y : m);
3545
+ function m(b) {
3546
+ return !p && (b === null || b === 41 || re(b)) ? (e.exit("chunkString"), e.exit(s), e.exit(o), e.exit(r), t(b)) : p < l && b === 40 ? (e.consume(b), p++, m) : b === 41 ? (e.consume(b), p--, m) : b === null || b === 32 || b === 40 || Hn(b) ? n(b) : (e.consume(b), b === 92 ? y : m);
3547
3547
  }
3548
- function y(h) {
3549
- return h === 40 || h === 41 || h === 92 ? (e.consume(h), m) : m(h);
3548
+ function y(b) {
3549
+ return b === 40 || b === 41 || b === 92 ? (e.consume(b), m) : m(b);
3550
3550
  }
3551
3551
  }
3552
3552
  function Xd(e, t, n, r, a, i) {
@@ -3834,11 +3834,11 @@ function xb(e, t, n) {
3834
3834
  function y(w) {
3835
3835
  if (w === null || w === 47 || w === 62 || re(w)) {
3836
3836
  const ue = w === 47, ce = o.toLowerCase();
3837
- return !ue && !i && fc.includes(ce) ? (a = 1, r.interrupt ? t(w) : x(w)) : _b.includes(o.toLowerCase()) ? (a = 6, ue ? (e.consume(w), h) : r.interrupt ? t(w) : x(w)) : (a = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(w) : i ? S(w) : A(w));
3837
+ return !ue && !i && fc.includes(ce) ? (a = 1, r.interrupt ? t(w) : x(w)) : _b.includes(o.toLowerCase()) ? (a = 6, ue ? (e.consume(w), b) : r.interrupt ? t(w) : x(w)) : (a = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(w) : i ? S(w) : A(w));
3838
3838
  }
3839
3839
  return w === 45 || he(w) ? (e.consume(w), o += String.fromCharCode(w), y) : n(w);
3840
3840
  }
3841
- function h(w) {
3841
+ function b(w) {
3842
3842
  return w === 62 ? (e.consume(w), r.interrupt ? t : x) : n(w);
3843
3843
  }
3844
3844
  function S(w) {
@@ -3962,10 +3962,10 @@ function Mb(e, t, n) {
3962
3962
  return E === null ? n(E) : E === 93 ? (e.consume(E), y) : H(E) ? (o = m, z(E)) : (e.consume(E), m);
3963
3963
  }
3964
3964
  function y(E) {
3965
- return E === 93 ? (e.consume(E), h) : m(E);
3965
+ return E === 93 ? (e.consume(E), b) : m(E);
3966
3966
  }
3967
- function h(E) {
3968
- return E === 62 ? G(E) : E === 93 ? (e.consume(E), h) : m(E);
3967
+ function b(E) {
3968
+ return E === 62 ? G(E) : E === 93 ? (e.consume(E), b) : m(E);
3969
3969
  }
3970
3970
  function S(E) {
3971
3971
  return E === null || E === 62 ? G(E) : H(E) ? (o = S, z(E)) : (e.consume(E), S);
@@ -4609,12 +4609,12 @@ function Ah(e, t, n) {
4609
4609
  const x = o[r._index];
4610
4610
  if (typeof x == "string")
4611
4611
  for (C = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === C && r._bufferIndex < x.length; )
4612
- h(x.charCodeAt(r._bufferIndex));
4612
+ b(x.charCodeAt(r._bufferIndex));
4613
4613
  else
4614
- h(x);
4614
+ b(x);
4615
4615
  }
4616
4616
  }
4617
- function h(C) {
4617
+ function b(C) {
4618
4618
  p = p(C);
4619
4619
  }
4620
4620
  function S(C) {
@@ -4864,8 +4864,8 @@ function Oh(e) {
4864
4864
  definitionLabelString: o,
4865
4865
  definitionTitleString: o,
4866
4866
  emphasis: i(Ie),
4867
- hardBreakEscape: i(Fe),
4868
- hardBreakTrailing: i(Fe),
4867
+ hardBreakEscape: i(Pe),
4868
+ hardBreakTrailing: i(Pe),
4869
4869
  htmlFlow: i(Ge, o),
4870
4870
  htmlFlowData: M,
4871
4871
  htmlText: i(Ge, o),
@@ -4903,7 +4903,7 @@ function Oh(e) {
4903
4903
  codeFencedFenceInfo: g,
4904
4904
  codeFencedFenceMeta: f,
4905
4905
  codeFlowValue: k,
4906
- codeIndented: u(h),
4906
+ codeIndented: u(b),
4907
4907
  codeText: u(B),
4908
4908
  codeTextData: k,
4909
4909
  data: k,
@@ -4962,18 +4962,18 @@ function Oh(e) {
4962
4962
  if (N[ne][0] === "enter")
4963
4963
  Q.push(ne);
4964
4964
  else {
4965
- const Pe = Q.pop();
4966
- ne = a(N, Pe, ne);
4965
+ const Ue = Q.pop();
4966
+ ne = a(N, Ue, ne);
4967
4967
  }
4968
4968
  for (ne = -1; ++ne < N.length; ) {
4969
- const Pe = t[N[ne][0]];
4970
- ep.call(Pe, N[ne][1].type) && Pe[N[ne][1].type].call(Object.assign({
4969
+ const Ue = t[N[ne][0]];
4970
+ ep.call(Ue, N[ne][1].type) && Ue[N[ne][1].type].call(Object.assign({
4971
4971
  sliceSerialize: N[ne][2].sliceSerialize
4972
4972
  }, j), N[ne][1]);
4973
4973
  }
4974
4974
  if (j.tokenStack.length > 0) {
4975
- const Pe = j.tokenStack[j.tokenStack.length - 1];
4976
- (Pe[1] || hc).call(j, void 0, Pe[0]);
4975
+ const Ue = j.tokenStack[j.tokenStack.length - 1];
4976
+ (Ue[1] || hc).call(j, void 0, Ue[0]);
4977
4977
  }
4978
4978
  for (F.position = {
4979
4979
  start: ot(N.length > 0 ? N[0][1].start : {
@@ -4991,7 +4991,7 @@ function Oh(e) {
4991
4991
  return F;
4992
4992
  }
4993
4993
  function a(N, F, j) {
4994
- let Q = F - 1, ne = -1, Pe = !1, bt, et, Kt, Xt;
4994
+ let Q = F - 1, ne = -1, Ue = !1, bt, et, Kt, Xt;
4995
4995
  for (; ++Q <= j; ) {
4996
4996
  const Ne = N[Q];
4997
4997
  switch (Ne[1].type) {
@@ -5021,7 +5021,7 @@ function Oh(e) {
5021
5021
  const tt = N[vt];
5022
5022
  if (tt[1].type === "lineEnding" || tt[1].type === "lineEndingBlank") {
5023
5023
  if (tt[0] === "exit") continue;
5024
- et && (N[et][1].type = "lineEndingBlank", Pe = !0), tt[1].type = "lineEnding", et = vt;
5024
+ et && (N[et][1].type = "lineEndingBlank", Ue = !0), tt[1].type = "lineEnding", et = vt;
5025
5025
  } else if (!(tt[1].type === "linePrefix" || tt[1].type === "blockQuotePrefix" || tt[1].type === "blockQuotePrefixWhitespace" || tt[1].type === "blockQuoteMarker" || tt[1].type === "listItemIndent")) break;
5026
5026
  }
5027
5027
  Kt && (!et || Kt < et) && (bt._spread = !0), bt.end = Object.assign({}, et ? N[et][1].start : Ne[1].end), N.splice(et || Q, 0, ["exit", bt, Ne[2]]), Q++, j++;
@@ -5038,7 +5038,7 @@ function Oh(e) {
5038
5038
  }
5039
5039
  }
5040
5040
  }
5041
- return N[F][1]._spread = Pe, j;
5041
+ return N[F][1]._spread = Ue, j;
5042
5042
  }
5043
5043
  function i(N, F) {
5044
5044
  return j;
@@ -5102,7 +5102,7 @@ function Oh(e) {
5102
5102
  const N = this.resume(), F = this.stack[this.stack.length - 1];
5103
5103
  F.value = N.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
5104
5104
  }
5105
- function h() {
5105
+ function b() {
5106
5106
  const N = this.resume(), F = this.stack[this.stack.length - 1];
5107
5107
  F.value = N.replace(/(\r?\n|\r)$/g, "");
5108
5108
  }
@@ -5287,7 +5287,7 @@ function Oh(e) {
5287
5287
  children: []
5288
5288
  };
5289
5289
  }
5290
- function Fe() {
5290
+ function Pe() {
5291
5291
  return {
5292
5292
  type: "break"
5293
5293
  };
@@ -5978,13 +5978,13 @@ function gy(e) {
5978
5978
  S && S.type === "text" ? S.value += " " : y.children.push({ type: "text", value: " " }), y.children.push(...f);
5979
5979
  } else
5980
5980
  p.push(...f);
5981
- const h = {
5981
+ const b = {
5982
5982
  type: "element",
5983
5983
  tagName: "li",
5984
5984
  properties: { id: t + "fn-" + d },
5985
5985
  children: e.wrap(p, !0)
5986
5986
  };
5987
- e.patch(l, h), s.push(h);
5987
+ e.patch(l, b), s.push(b);
5988
5988
  }
5989
5989
  if (s.length !== 0)
5990
5990
  return {
@@ -6131,13 +6131,13 @@ function lp(e, t, n, r) {
6131
6131
  if ((!t || i(u, l, p[p.length - 1] || void 0)) && (g = wy(n(u, p)), g[0] === Zr))
6132
6132
  return g;
6133
6133
  if ("children" in u && u.children) {
6134
- const h = (
6134
+ const b = (
6135
6135
  /** @type {UnistParent} */
6136
6136
  u
6137
6137
  );
6138
- if (h.children && g[0] !== Sy)
6139
- for (m = (r ? h.children.length : -1) + o, y = p.concat(h); m > -1 && m < h.children.length; ) {
6140
- const S = h.children[m];
6138
+ if (b.children && g[0] !== Sy)
6139
+ for (m = (r ? b.children.length : -1) + o, y = p.concat(b); m > -1 && m < b.children.length; ) {
6140
+ const S = b.children[m];
6141
6141
  if (f = s(S, m, y)(), f[0] === Zr)
6142
6142
  return f;
6143
6143
  m = typeof f[1] == "number" ? f[1] : m + o;
@@ -6185,8 +6185,8 @@ function Ty(e, t) {
6185
6185
  return g(s, p, c);
6186
6186
  if (s.options.passThrough && s.options.passThrough.includes(d)) {
6187
6187
  if ("children" in p) {
6188
- const { children: m, ...y } = p, h = Vn(y);
6189
- return h.children = s.all(p), h;
6188
+ const { children: m, ...y } = p, b = Vn(y);
6189
+ return b.children = s.all(p), b;
6190
6190
  }
6191
6191
  return Vn(p);
6192
6192
  }
@@ -7520,7 +7520,7 @@ function tE(e, t) {
7520
7520
  components: a,
7521
7521
  ignoreInvalidStyle: !0,
7522
7522
  jsx: P,
7523
- jsxs: Ue,
7523
+ jsxs: Fe,
7524
7524
  passKeys: !0,
7525
7525
  passNode: !0
7526
7526
  });
@@ -7705,12 +7705,12 @@ function pp(e) {
7705
7705
  className: Bc(s.className)
7706
7706
  });
7707
7707
  else {
7708
- var g = Object.keys(n).reduce(function(h, S) {
7708
+ var g = Object.keys(n).reduce(function(b, S) {
7709
7709
  return S.split(".").forEach(function(A) {
7710
- h.includes(A) || h.push(A);
7711
- }), h;
7712
- }, []), f = s.className && s.className.includes("token") ? ["token"] : [], m = s.className && f.concat(s.className.filter(function(h) {
7713
- return !g.includes(h);
7710
+ b.includes(A) || b.push(A);
7711
+ }), b;
7712
+ }, []), f = s.className && s.className.includes("token") ? ["token"] : [], m = s.className && f.concat(s.className.filter(function(b) {
7713
+ return !g.includes(b);
7714
7714
  }));
7715
7715
  d = xt(xt({}, s), {}, {
7716
7716
  className: Bc(m) || void 0,
@@ -7869,7 +7869,7 @@ function AE(e, t, n, r, a, i, o, s, u) {
7869
7869
  var I = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
7870
7870
  return t || I.length > 0 ? f(_, T, I) : m(_, T);
7871
7871
  }
7872
- for (var h = function() {
7872
+ for (var b = function() {
7873
7873
  var T = p[g], I = T.children[0].value, O = yE(I);
7874
7874
  if (O) {
7875
7875
  var M = I.split(`
@@ -7909,7 +7909,7 @@ function AE(e, t, n, r, a, i, o, s, u) {
7909
7909
  }
7910
7910
  g++;
7911
7911
  }; g < p.length; )
7912
- h();
7912
+ b();
7913
7913
  if (d !== p.length - 1) {
7914
7914
  var S = p.slice(d + 1, p.length);
7915
7915
  if (S && S.length) {
@@ -7959,9 +7959,9 @@ function vE(e, t) {
7959
7959
  var a, i, o = r.language, s = r.children, u = r.style, l = u === void 0 ? t : u, p = r.customStyle, c = p === void 0 ? {} : p, d = r.codeTagProps, g = d === void 0 ? {
7960
7960
  className: o ? "language-".concat(o) : void 0,
7961
7961
  style: lt(lt({}, l['code[class*="language-"]']), l['code[class*="language-'.concat(o, '"]')])
7962
- } : d, f = r.useInlineStyles, m = f === void 0 ? !0 : f, y = r.showLineNumbers, h = y === void 0 ? !1 : y, S = r.showInlineLineNumbers, A = S === void 0 ? !0 : S, v = r.startingLineNumber, _ = v === void 0 ? 1 : v, T = r.lineNumberContainerStyle, I = r.lineNumberStyle, O = I === void 0 ? {} : I, M = r.wrapLines, k = r.wrapLongLines, C = k === void 0 ? !1 : k, x = r.lineProps, L = x === void 0 ? {} : x, U = r.renderer, B = r.PreTag, G = B === void 0 ? "pre" : B, z = r.CodeTag, $ = z === void 0 ? "code" : z, W = r.code, E = W === void 0 ? (Array.isArray(s) ? s[0] : s) || "" : W, K = r.astGenerator, te = aE(r, bE);
7962
+ } : d, f = r.useInlineStyles, m = f === void 0 ? !0 : f, y = r.showLineNumbers, b = y === void 0 ? !1 : y, S = r.showInlineLineNumbers, A = S === void 0 ? !0 : S, v = r.startingLineNumber, _ = v === void 0 ? 1 : v, T = r.lineNumberContainerStyle, I = r.lineNumberStyle, O = I === void 0 ? {} : I, M = r.wrapLines, k = r.wrapLongLines, C = k === void 0 ? !1 : k, x = r.lineProps, L = x === void 0 ? {} : x, U = r.renderer, B = r.PreTag, G = B === void 0 ? "pre" : B, z = r.CodeTag, $ = z === void 0 ? "code" : z, W = r.code, E = W === void 0 ? (Array.isArray(s) ? s[0] : s) || "" : W, K = r.astGenerator, te = aE(r, bE);
7963
7963
  K = K || e;
7964
- var w = h ? /* @__PURE__ */ je.createElement(SE, {
7964
+ var w = b ? /* @__PURE__ */ je.createElement(SE, {
7965
7965
  containerStyle: T,
7966
7966
  codeStyle: g.style || {},
7967
7967
  numberStyle: O,
@@ -7992,7 +7992,7 @@ function vE(e, t) {
7992
7992
  defaultCodeValue: _e
7993
7993
  });
7994
7994
  de.language === null && (de.value = _e);
7995
- var Ae = (a = (i = E.match(/\n/g)) === null || i === void 0 ? void 0 : i.length) !== null && a !== void 0 ? a : 0, V = _ + Ae, Z = AE(de, M, L, h, A, _, V, O, C);
7995
+ var Ae = (a = (i = E.match(/\n/g)) === null || i === void 0 ? void 0 : i.length) !== null && a !== void 0 ? a : 0, V = _ + Ae, Z = AE(de, M, L, b, A, _, V, O, C);
7996
7996
  return /* @__PURE__ */ je.createElement(G, ie, /* @__PURE__ */ je.createElement($, g, !A && w, U({
7997
7997
  rows: Z,
7998
7998
  stylesheet: l,
@@ -8339,14 +8339,14 @@ function UE(e, t) {
8339
8339
  let p = (u ? u.line : 0) || 1, c = (u ? u.column : 0) || 1, d = f(), g;
8340
8340
  for (i--; ++i <= e.length; )
8341
8341
  if (g === 10 && (c = (l ? l[o] : 0) || 1), g = e.charCodeAt(i), g === 38) {
8342
- const h = e.charCodeAt(i + 1);
8343
- if (h === 9 || h === 10 || h === 12 || h === 32 || h === 38 || h === 60 || Number.isNaN(h) || r && h === r) {
8342
+ const b = e.charCodeAt(i + 1);
8343
+ if (b === 9 || b === 10 || b === 12 || b === 32 || b === 38 || b === 60 || Number.isNaN(b) || r && b === r) {
8344
8344
  s += String.fromCharCode(g), c++;
8345
8345
  continue;
8346
8346
  }
8347
8347
  const S = i + 1;
8348
8348
  let A = S, v = S, _;
8349
- if (h === 35) {
8349
+ if (b === 35) {
8350
8350
  v = ++A;
8351
8351
  const L = e.charCodeAt(v);
8352
8352
  L === 88 || L === 120 ? (_ = "hexadecimal", v = ++A) : _ = "decimal";
@@ -8419,13 +8419,13 @@ function UE(e, t) {
8419
8419
  offset: i + ((u ? u.offset : 0) || 0)
8420
8420
  };
8421
8421
  }
8422
- function m(h, S) {
8422
+ function m(b, S) {
8423
8423
  let A;
8424
8424
  n.warning && (A = f(), A.column += S, A.offset += S, n.warning.call(
8425
8425
  n.warningContext || void 0,
8426
- PE[h],
8426
+ PE[b],
8427
8427
  A,
8428
- h
8428
+ b
8429
8429
  ));
8430
8430
  }
8431
8431
  function y() {
@@ -8801,29 +8801,29 @@ function Ep(e, t, n, r, a, i) {
8801
8801
  var f = l.pattern.toString().match(/[imsuy]*$/)[0];
8802
8802
  l.pattern = RegExp(l.pattern.source, f + "g");
8803
8803
  }
8804
- for (var m = l.pattern || l, y = r.next, h = a; y !== t.tail && !(i && h >= i.reach); h += y.value.length, y = y.next) {
8804
+ for (var m = l.pattern || l, y = r.next, b = a; y !== t.tail && !(i && b >= i.reach); b += y.value.length, y = y.next) {
8805
8805
  var S = y.value;
8806
8806
  if (t.length > e.length)
8807
8807
  return;
8808
8808
  if (!(S instanceof nn)) {
8809
8809
  var A = 1, v;
8810
8810
  if (d) {
8811
- if (v = Vc(m, h, e, c), !v || v.index >= e.length)
8811
+ if (v = Vc(m, b, e, c), !v || v.index >= e.length)
8812
8812
  break;
8813
- var O = v.index, _ = v.index + v[0].length, T = h;
8813
+ var O = v.index, _ = v.index + v[0].length, T = b;
8814
8814
  for (T += y.value.length; O >= T; )
8815
8815
  y = y.next, T += y.value.length;
8816
- if (T -= y.value.length, h = T, y.value instanceof nn)
8816
+ if (T -= y.value.length, b = T, y.value instanceof nn)
8817
8817
  continue;
8818
8818
  for (var I = y; I !== t.tail && (T < _ || typeof I.value == "string"); I = I.next)
8819
8819
  A++, T += I.value.length;
8820
- A--, S = e.slice(h, T), v.index -= h;
8820
+ A--, S = e.slice(b, T), v.index -= b;
8821
8821
  } else if (v = Vc(m, 0, S, c), !v)
8822
8822
  continue;
8823
- var O = v.index, M = v[0], k = S.slice(0, O), C = S.slice(O + M.length), x = h + S.length;
8823
+ var O = v.index, M = v[0], k = S.slice(0, O), C = S.slice(O + M.length), x = b + S.length;
8824
8824
  i && x > i.reach && (i.reach = x);
8825
8825
  var L = y.prev;
8826
- k && (L = Un(t, L, k), h += k.length), HE(t, L, A);
8826
+ k && (L = Un(t, L, k), b += k.length), HE(t, L, A);
8827
8827
  var U = new nn(
8828
8828
  o,
8829
8829
  p ? pe.tokenize(M, p) : M,
@@ -8840,7 +8840,7 @@ function Ep(e, t, n, r, a, i) {
8840
8840
  t,
8841
8841
  n,
8842
8842
  y.prev,
8843
- h,
8843
+ b,
8844
8844
  B
8845
8845
  ), i && B.reach > i.reach && (i.reach = B.reach);
8846
8846
  }
@@ -8871,14 +8871,14 @@ const Sp = pe;
8871
8871
  function wp() {
8872
8872
  }
8873
8873
  wp.prototype = Sp;
8874
- const b = new wp();
8875
- b.highlight = VE;
8876
- b.register = WE;
8877
- b.alias = qE;
8878
- b.registered = YE;
8879
- b.listLanguages = KE;
8880
- b.util.encode = XE;
8881
- b.Token.stringify = ia;
8874
+ const h = new wp();
8875
+ h.highlight = VE;
8876
+ h.register = WE;
8877
+ h.alias = qE;
8878
+ h.registered = YE;
8879
+ h.listLanguages = KE;
8880
+ h.util.encode = XE;
8881
+ h.Token.stringify = ia;
8882
8882
  function VE(e, t) {
8883
8883
  if (typeof e != "string")
8884
8884
  throw new TypeError("Expected `string` for `value`, got `" + e + "`");
@@ -8888,24 +8888,24 @@ function VE(e, t) {
8888
8888
  else {
8889
8889
  if (r = t, typeof r != "string")
8890
8890
  throw new TypeError("Expected `string` for `name`, got `" + r + "`");
8891
- if (Object.hasOwn(b.languages, r))
8892
- n = b.languages[r];
8891
+ if (Object.hasOwn(h.languages, r))
8892
+ n = h.languages[r];
8893
8893
  else
8894
8894
  throw new Error("Unknown language: `" + r + "` is not registered");
8895
8895
  }
8896
8896
  return {
8897
8897
  type: "root",
8898
8898
  // @ts-expect-error: we hacked Prism to accept and return the things we want.
8899
- children: Sp.highlight.call(b, e, n, r)
8899
+ children: Sp.highlight.call(h, e, n, r)
8900
8900
  };
8901
8901
  }
8902
8902
  function WE(e) {
8903
8903
  if (typeof e != "function" || !e.displayName)
8904
8904
  throw new Error("Expected `function` for `syntax`, got `" + e + "`");
8905
- Object.hasOwn(b.languages, e.displayName) || e(b);
8905
+ Object.hasOwn(h.languages, e.displayName) || e(h);
8906
8906
  }
8907
8907
  function qE(e, t) {
8908
- const n = b.languages;
8908
+ const n = h.languages;
8909
8909
  let r = {};
8910
8910
  typeof e == "string" ? t && (r[e] = t) : r = e;
8911
8911
  let a;
@@ -8922,10 +8922,10 @@ function YE(e) {
8922
8922
  throw new TypeError(
8923
8923
  "Expected `string` for `aliasOrLanguage`, got `" + e + "`"
8924
8924
  );
8925
- return Object.hasOwn(b.languages, e);
8925
+ return Object.hasOwn(h.languages, e);
8926
8926
  }
8927
8927
  function KE() {
8928
- const e = b.languages, t = [];
8928
+ const e = h.languages, t = [];
8929
8929
  let n;
8930
8930
  for (n in e)
8931
8931
  Object.hasOwn(e, n) && typeof e[n] == "object" && t.push(n);
@@ -8954,7 +8954,7 @@ function ia(e, t) {
8954
8954
  };
8955
8955
  return e.alias && n.classes.push(
8956
8956
  ...typeof e.alias == "string" ? [e.alias] : e.alias
8957
- ), b.hooks.run("wrap", n), LE(
8957
+ ), h.hooks.run("wrap", n), LE(
8958
8958
  n.tag + "." + n.classes.join("."),
8959
8959
  ZE(n.attributes),
8960
8960
  n.content
@@ -11417,7 +11417,7 @@ function Gt(e) {
11417
11417
  ), c = a(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source, 2), d = a(/\((?:[^()]|<<self>>)*\)/.source, 2), g = /@?\b[A-Za-z_]\w*\b/.source, f = n(/<<0>>(?:\s*<<1>>)?/.source, [g, c]), m = n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source, [
11418
11418
  l,
11419
11419
  f
11420
- ]), y = /\[\s*(?:,\s*)*\]/.source, h = n(
11420
+ ]), y = /\[\s*(?:,\s*)*\]/.source, b = n(
11421
11421
  /<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,
11422
11422
  [m, y]
11423
11423
  ), S = n(
@@ -11499,7 +11499,7 @@ function Gt(e) {
11499
11499
  // as Foo<A>, is Bar<B>
11500
11500
  // (things like if(a is Foo b) is covered by variable declaration)
11501
11501
  pattern: r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source, [
11502
- h
11502
+ b
11503
11503
  ]),
11504
11504
  lookbehind: !0,
11505
11505
  inside: _
@@ -14277,13 +14277,13 @@ function Se(e) {
14277
14277
  var c = o[i], d = r.tokenStack[c], g = typeof p == "string" ? p : p.content, f = n(a, c), m = g.indexOf(f);
14278
14278
  if (m > -1) {
14279
14279
  ++i;
14280
- var y = g.substring(0, m), h = new t.Token(
14280
+ var y = g.substring(0, m), b = new t.Token(
14281
14281
  a,
14282
14282
  t.tokenize(d, r.grammar),
14283
14283
  "language-" + a,
14284
14284
  d
14285
14285
  ), S = g.substring(m + f.length), A = [];
14286
- y && A.push.apply(A, s([y])), A.push(h), S && A.push.apply(A, s([S])), typeof p == "string" ? u.splice.apply(u, [l, 1].concat(A)) : p.content = A;
14286
+ y && A.push.apply(A, s([y])), A.push(b), S && A.push.apply(A, s([S])), typeof p == "string" ? u.splice.apply(u, [l, 1].concat(A)) : p.content = A;
14287
14287
  }
14288
14288
  } else p.content && s(p.content);
14289
14289
  }
@@ -16861,30 +16861,30 @@ function Ao(e) {
16861
16861
  function i(y) {
16862
16862
  return r[a + y];
16863
16863
  }
16864
- function o(y, h) {
16865
- h = h || 0;
16864
+ function o(y, b) {
16865
+ b = b || 0;
16866
16866
  for (var S = 0; S < y.length; S++) {
16867
- var A = i(S + h);
16867
+ var A = i(S + b);
16868
16868
  if (!A || A.type !== y[S])
16869
16869
  return !1;
16870
16870
  }
16871
16871
  return !0;
16872
16872
  }
16873
- function s(y, h) {
16873
+ function s(y, b) {
16874
16874
  for (var S = 1, A = a; A < r.length; A++) {
16875
16875
  var v = r[A], _ = v.content;
16876
16876
  if (v.type === "punctuation" && typeof _ == "string") {
16877
16877
  if (y.test(_))
16878
16878
  S++;
16879
- else if (h.test(_) && (S--, S === 0))
16879
+ else if (b.test(_) && (S--, S === 0))
16880
16880
  return A;
16881
16881
  }
16882
16882
  }
16883
16883
  return -1;
16884
16884
  }
16885
- function u(y, h) {
16885
+ function u(y, b) {
16886
16886
  var S = y.alias;
16887
- S ? Array.isArray(S) || (y.alias = S = [S]) : y.alias = S = [], S.push(h);
16887
+ S ? Array.isArray(S) || (y.alias = S = [S]) : y.alias = S = [], S.push(b);
16888
16888
  }
16889
16889
  for (; a < r.length; ) {
16890
16890
  var l = r[a++];
@@ -19396,23 +19396,23 @@ function Qo(e) {
19396
19396
  return "___" + m.toUpperCase() + "_" + f + "___";
19397
19397
  }
19398
19398
  function l(f, m, y) {
19399
- var h = {
19399
+ var b = {
19400
19400
  code: f,
19401
19401
  grammar: m,
19402
19402
  language: y
19403
19403
  };
19404
- return t.hooks.run("before-tokenize", h), h.tokens = t.tokenize(h.code, h.grammar), t.hooks.run("after-tokenize", h), h.tokens;
19404
+ return t.hooks.run("before-tokenize", b), b.tokens = t.tokenize(b.code, b.grammar), t.hooks.run("after-tokenize", b), b.tokens;
19405
19405
  }
19406
19406
  function p(f) {
19407
19407
  var m = {};
19408
19408
  m["interpolation-punctuation"] = i;
19409
19409
  var y = t.tokenize(f, m);
19410
19410
  if (y.length === 3) {
19411
- var h = [1, 1];
19412
- h.push.apply(
19413
- h,
19411
+ var b = [1, 1];
19412
+ b.push.apply(
19413
+ b,
19414
19414
  l(y[1], t.languages.javascript, "javascript")
19415
- ), y.splice.apply(y, h);
19415
+ ), y.splice.apply(y, b);
19416
19416
  }
19417
19417
  return new t.Token(
19418
19418
  "interpolation",
@@ -19422,12 +19422,12 @@ function Qo(e) {
19422
19422
  );
19423
19423
  }
19424
19424
  function c(f, m, y) {
19425
- var h = t.tokenize(f, {
19425
+ var b = t.tokenize(f, {
19426
19426
  interpolation: {
19427
19427
  pattern: RegExp(o),
19428
19428
  lookbehind: !0
19429
19429
  }
19430
- }), S = 0, A = {}, v = h.map(function(O) {
19430
+ }), S = 0, A = {}, v = b.map(function(O) {
19431
19431
  if (typeof O == "string")
19432
19432
  return O;
19433
19433
  for (var M = O.content, k; f.indexOf(
@@ -19483,8 +19483,8 @@ function Qo(e) {
19483
19483
  if (!(f.language in d))
19484
19484
  return;
19485
19485
  function m(y) {
19486
- for (var h = 0, S = y.length; h < S; h++) {
19487
- var A = y[h];
19486
+ for (var b = 0, S = y.length; b < S; b++) {
19487
+ var A = y[b];
19488
19488
  if (typeof A != "string") {
19489
19489
  var v = A.content;
19490
19490
  if (!Array.isArray(v)) {
@@ -24778,7 +24778,7 @@ function vl(e) {
24778
24778
  pattern: /\S[\s\S]*/,
24779
24779
  alias: "language-csharp",
24780
24780
  inside: m
24781
- }, h = {
24781
+ }, b = {
24782
24782
  pattern: RegExp(/(^|[^@])/.source + l),
24783
24783
  lookbehind: !0,
24784
24784
  greedy: !0,
@@ -24794,7 +24794,7 @@ function vl(e) {
24794
24794
  "inside",
24795
24795
  "punctuation",
24796
24796
  {
24797
- value: h
24797
+ value: b
24798
24798
  },
24799
24799
  t.languages.cshtml.tag.inside["attr-value"]
24800
24800
  ), t.languages.insertBefore("cshtml", "prolog", {
@@ -24838,7 +24838,7 @@ function vl(e) {
24838
24838
  csharp: y
24839
24839
  }
24840
24840
  },
24841
- value: h,
24841
+ value: b,
24842
24842
  "delegate-operator": {
24843
24843
  pattern: /(^|[^@])@(?=<)/,
24844
24844
  lookbehind: !0,
@@ -25620,12 +25620,12 @@ function Fl(e) {
25620
25620
  pattern: /(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,
25621
25621
  lookbehind: !0,
25622
25622
  alias: "keyword"
25623
- }, h = /aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source, S = {
25623
+ }, b = /aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source, S = {
25624
25624
  pattern: RegExp(
25625
25625
  /(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(
25626
25626
  /<act>/g,
25627
25627
  function() {
25628
- return h;
25628
+ return b;
25629
25629
  }
25630
25630
  ),
25631
25631
  "i"
@@ -25634,7 +25634,7 @@ function Fl(e) {
25634
25634
  inside: {
25635
25635
  keyword: RegExp(
25636
25636
  /(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g, function() {
25637
- return h;
25637
+ return b;
25638
25638
  }),
25639
25639
  "i"
25640
25640
  ),
@@ -28673,304 +28673,304 @@ function xu(e) {
28673
28673
  });
28674
28674
  })(e);
28675
28675
  }
28676
- b.register(fe);
28677
- b.register(Tt);
28678
- b.register(X);
28679
- b.register(xa);
28680
- b.register(Ee);
28681
- b.register(Oa);
28682
- b.register(La);
28683
- b.register(Da);
28684
- b.register(Ma);
28685
- b.register(Fa);
28686
- b.register(Pa);
28687
- b.register(Ua);
28688
- b.register(Ba);
28689
- b.register(bn);
28690
- b.register($a);
28691
- b.register(za);
28692
- b.register(Ga);
28693
- b.register(Ha);
28694
- b.register(Xe);
28695
- b.register(zt);
28696
- b.register(ja);
28697
- b.register(Va);
28698
- b.register(Wa);
28699
- b.register(ar);
28700
- b.register(ir);
28701
- b.register(qa);
28702
- b.register(Ya);
28703
- b.register(Ka);
28704
- b.register(Gt);
28705
- b.register(Xa);
28706
- b.register(Za);
28707
- b.register(Qa);
28708
- b.register(Ja);
28709
- b.register(ei);
28710
- b.register(ti);
28711
- b.register(ni);
28712
- b.register(ri);
28713
- b.register(or);
28714
- b.register(ai);
28715
- b.register(ii);
28716
- b.register(oi);
28717
- b.register(si);
28718
- b.register(li);
28719
- b.register(ui);
28720
- b.register(ci);
28721
- b.register(di);
28722
- b.register(pi);
28723
- b.register(gi);
28724
- b.register(fi);
28725
- b.register(mi);
28726
- b.register(bi);
28727
- b.register(hi);
28728
- b.register(yi);
28729
- b.register(Ei);
28730
- b.register(Si);
28731
- b.register(wi);
28732
- b.register(Ai);
28733
- b.register(Ti);
28734
- b.register(ki);
28735
- b.register(vi);
28736
- b.register(_i);
28737
- b.register(Ri);
28738
- b.register(Ii);
28739
- b.register(Ht);
28740
- b.register(Ni);
28741
- b.register(Ci);
28742
- b.register(xi);
28743
- b.register(Oi);
28744
- b.register(Li);
28745
- b.register(Di);
28746
- b.register(Mi);
28747
- b.register(Fi);
28748
- b.register(Pi);
28749
- b.register(Ui);
28750
- b.register(Bi);
28751
- b.register(Se);
28752
- b.register($i);
28753
- b.register(zi);
28754
- b.register(Gi);
28755
- b.register(Hi);
28756
- b.register(ji);
28757
- b.register(Vi);
28758
- b.register(Wi);
28759
- b.register(qi);
28760
- b.register(Yi);
28761
- b.register(Ki);
28762
- b.register(sr);
28763
- b.register(Xi);
28764
- b.register(Zi);
28765
- b.register(Qi);
28766
- b.register(Ji);
28767
- b.register(eo);
28768
- b.register(to);
28769
- b.register(no);
28770
- b.register(ro);
28771
- b.register(ao);
28772
- b.register(io);
28773
- b.register(oo);
28774
- b.register(so);
28775
- b.register(lo);
28776
- b.register(uo);
28777
- b.register(co);
28778
- b.register(po);
28779
- b.register(go);
28780
- b.register(fo);
28781
- b.register(mo);
28782
- b.register(bo);
28783
- b.register(ho);
28784
- b.register(yo);
28785
- b.register(Eo);
28786
- b.register(So);
28787
- b.register(wo);
28788
- b.register(Ao);
28789
- b.register(To);
28790
- b.register(ko);
28791
- b.register(vo);
28792
- b.register(_o);
28793
- b.register(Ro);
28794
- b.register(Io);
28795
- b.register(hn);
28796
- b.register(No);
28797
- b.register(Co);
28798
- b.register(xo);
28799
- b.register(Oo);
28800
- b.register(Lo);
28801
- b.register(Do);
28802
- b.register(yn);
28803
- b.register(Mo);
28804
- b.register(Fo);
28805
- b.register(Po);
28806
- b.register(Uo);
28807
- b.register(Bo);
28808
- b.register($o);
28809
- b.register(zo);
28810
- b.register(Go);
28811
- b.register(Ho);
28812
- b.register(jo);
28813
- b.register(Vo);
28814
- b.register(jt);
28815
- b.register(Vt);
28816
- b.register(Wt);
28817
- b.register(Wo);
28818
- b.register(qo);
28819
- b.register(Yo);
28820
- b.register(Ko);
28821
- b.register(Xo);
28822
- b.register(Zo);
28823
- b.register(Qo);
28824
- b.register(En);
28825
- b.register(Jo);
28826
- b.register(es);
28827
- b.register(ts);
28828
- b.register(ns);
28829
- b.register(rs);
28830
- b.register(as);
28831
- b.register(is);
28832
- b.register(os);
28833
- b.register(ss);
28834
- b.register(ls);
28835
- b.register(us);
28836
- b.register(cs);
28837
- b.register(ds);
28838
- b.register(ps);
28839
- b.register(Sn);
28840
- b.register(gs);
28841
- b.register(fs);
28842
- b.register(ms);
28843
- b.register(bs);
28844
- b.register(hs);
28845
- b.register(ys);
28846
- b.register(Es);
28847
- b.register(Ss);
28848
- b.register(ws);
28849
- b.register(lr);
28850
- b.register(As);
28851
- b.register(Ts);
28852
- b.register(ks);
28853
- b.register(vs);
28854
- b.register(_s);
28855
- b.register(Rs);
28856
- b.register(Is);
28857
- b.register(Ns);
28858
- b.register(Cs);
28859
- b.register(xs);
28860
- b.register(Os);
28861
- b.register(Ls);
28862
- b.register(Ds);
28863
- b.register(Ms);
28864
- b.register(Fs);
28865
- b.register(Ps);
28866
- b.register(Us);
28867
- b.register(Bs);
28868
- b.register($s);
28869
- b.register(zs);
28870
- b.register(Gs);
28871
- b.register(Hs);
28872
- b.register(js);
28873
- b.register(Vs);
28874
- b.register(Ws);
28875
- b.register(qs);
28876
- b.register(Ys);
28877
- b.register(Ks);
28878
- b.register(Xs);
28879
- b.register(Zs);
28880
- b.register(Qs);
28881
- b.register(Js);
28882
- b.register(el);
28883
- b.register(tl);
28884
- b.register(nl);
28885
- b.register(rl);
28886
- b.register(al);
28887
- b.register(il);
28888
- b.register(ol);
28889
- b.register(sl);
28890
- b.register(ll);
28891
- b.register(ul);
28892
- b.register(cl);
28893
- b.register(dl);
28894
- b.register(pl);
28895
- b.register(gl);
28896
- b.register(fl);
28897
- b.register(ml);
28898
- b.register(bl);
28899
- b.register(hl);
28900
- b.register(yl);
28901
- b.register(ur);
28902
- b.register(El);
28903
- b.register(Sl);
28904
- b.register(wl);
28905
- b.register(Al);
28906
- b.register(Tl);
28907
- b.register(kl);
28908
- b.register(vl);
28909
- b.register(cr);
28910
- b.register(_l);
28911
- b.register(Rl);
28912
- b.register(Il);
28913
- b.register(Nl);
28914
- b.register(Cl);
28915
- b.register(xl);
28916
- b.register(Ol);
28917
- b.register(Ll);
28918
- b.register(Dl);
28919
- b.register(Ml);
28920
- b.register(Fl);
28921
- b.register(Pl);
28922
- b.register(Ul);
28923
- b.register(Bl);
28924
- b.register($l);
28925
- b.register(zl);
28926
- b.register(Gl);
28927
- b.register(Hl);
28928
- b.register(jl);
28929
- b.register(Vl);
28930
- b.register(dr);
28931
- b.register(Wl);
28932
- b.register(ql);
28933
- b.register(Yl);
28934
- b.register(Kl);
28935
- b.register(Xl);
28936
- b.register(Zl);
28937
- b.register(Ql);
28938
- b.register(Jl);
28939
- b.register(eu);
28940
- b.register(tu);
28941
- b.register(wn);
28942
- b.register(nu);
28943
- b.register(pr);
28944
- b.register(ru);
28945
- b.register(au);
28946
- b.register(iu);
28947
- b.register(ou);
28948
- b.register(su);
28949
- b.register(lu);
28950
- b.register(uu);
28951
- b.register(cu);
28952
- b.register(du);
28953
- b.register(pu);
28954
- b.register(gu);
28955
- b.register(fu);
28956
- b.register(mu);
28957
- b.register(bu);
28958
- b.register(hu);
28959
- b.register(yu);
28960
- b.register(Eu);
28961
- b.register(Su);
28962
- b.register(wu);
28963
- b.register(Au);
28964
- b.register(Tu);
28965
- b.register(ku);
28966
- b.register(vu);
28967
- b.register(_u);
28968
- b.register(Ru);
28969
- b.register(Iu);
28970
- b.register(Nu);
28971
- b.register(Cu);
28972
- b.register(xu);
28973
- var Ap = vE(b, QE);
28676
+ h.register(fe);
28677
+ h.register(Tt);
28678
+ h.register(X);
28679
+ h.register(xa);
28680
+ h.register(Ee);
28681
+ h.register(Oa);
28682
+ h.register(La);
28683
+ h.register(Da);
28684
+ h.register(Ma);
28685
+ h.register(Fa);
28686
+ h.register(Pa);
28687
+ h.register(Ua);
28688
+ h.register(Ba);
28689
+ h.register(bn);
28690
+ h.register($a);
28691
+ h.register(za);
28692
+ h.register(Ga);
28693
+ h.register(Ha);
28694
+ h.register(Xe);
28695
+ h.register(zt);
28696
+ h.register(ja);
28697
+ h.register(Va);
28698
+ h.register(Wa);
28699
+ h.register(ar);
28700
+ h.register(ir);
28701
+ h.register(qa);
28702
+ h.register(Ya);
28703
+ h.register(Ka);
28704
+ h.register(Gt);
28705
+ h.register(Xa);
28706
+ h.register(Za);
28707
+ h.register(Qa);
28708
+ h.register(Ja);
28709
+ h.register(ei);
28710
+ h.register(ti);
28711
+ h.register(ni);
28712
+ h.register(ri);
28713
+ h.register(or);
28714
+ h.register(ai);
28715
+ h.register(ii);
28716
+ h.register(oi);
28717
+ h.register(si);
28718
+ h.register(li);
28719
+ h.register(ui);
28720
+ h.register(ci);
28721
+ h.register(di);
28722
+ h.register(pi);
28723
+ h.register(gi);
28724
+ h.register(fi);
28725
+ h.register(mi);
28726
+ h.register(bi);
28727
+ h.register(hi);
28728
+ h.register(yi);
28729
+ h.register(Ei);
28730
+ h.register(Si);
28731
+ h.register(wi);
28732
+ h.register(Ai);
28733
+ h.register(Ti);
28734
+ h.register(ki);
28735
+ h.register(vi);
28736
+ h.register(_i);
28737
+ h.register(Ri);
28738
+ h.register(Ii);
28739
+ h.register(Ht);
28740
+ h.register(Ni);
28741
+ h.register(Ci);
28742
+ h.register(xi);
28743
+ h.register(Oi);
28744
+ h.register(Li);
28745
+ h.register(Di);
28746
+ h.register(Mi);
28747
+ h.register(Fi);
28748
+ h.register(Pi);
28749
+ h.register(Ui);
28750
+ h.register(Bi);
28751
+ h.register(Se);
28752
+ h.register($i);
28753
+ h.register(zi);
28754
+ h.register(Gi);
28755
+ h.register(Hi);
28756
+ h.register(ji);
28757
+ h.register(Vi);
28758
+ h.register(Wi);
28759
+ h.register(qi);
28760
+ h.register(Yi);
28761
+ h.register(Ki);
28762
+ h.register(sr);
28763
+ h.register(Xi);
28764
+ h.register(Zi);
28765
+ h.register(Qi);
28766
+ h.register(Ji);
28767
+ h.register(eo);
28768
+ h.register(to);
28769
+ h.register(no);
28770
+ h.register(ro);
28771
+ h.register(ao);
28772
+ h.register(io);
28773
+ h.register(oo);
28774
+ h.register(so);
28775
+ h.register(lo);
28776
+ h.register(uo);
28777
+ h.register(co);
28778
+ h.register(po);
28779
+ h.register(go);
28780
+ h.register(fo);
28781
+ h.register(mo);
28782
+ h.register(bo);
28783
+ h.register(ho);
28784
+ h.register(yo);
28785
+ h.register(Eo);
28786
+ h.register(So);
28787
+ h.register(wo);
28788
+ h.register(Ao);
28789
+ h.register(To);
28790
+ h.register(ko);
28791
+ h.register(vo);
28792
+ h.register(_o);
28793
+ h.register(Ro);
28794
+ h.register(Io);
28795
+ h.register(hn);
28796
+ h.register(No);
28797
+ h.register(Co);
28798
+ h.register(xo);
28799
+ h.register(Oo);
28800
+ h.register(Lo);
28801
+ h.register(Do);
28802
+ h.register(yn);
28803
+ h.register(Mo);
28804
+ h.register(Fo);
28805
+ h.register(Po);
28806
+ h.register(Uo);
28807
+ h.register(Bo);
28808
+ h.register($o);
28809
+ h.register(zo);
28810
+ h.register(Go);
28811
+ h.register(Ho);
28812
+ h.register(jo);
28813
+ h.register(Vo);
28814
+ h.register(jt);
28815
+ h.register(Vt);
28816
+ h.register(Wt);
28817
+ h.register(Wo);
28818
+ h.register(qo);
28819
+ h.register(Yo);
28820
+ h.register(Ko);
28821
+ h.register(Xo);
28822
+ h.register(Zo);
28823
+ h.register(Qo);
28824
+ h.register(En);
28825
+ h.register(Jo);
28826
+ h.register(es);
28827
+ h.register(ts);
28828
+ h.register(ns);
28829
+ h.register(rs);
28830
+ h.register(as);
28831
+ h.register(is);
28832
+ h.register(os);
28833
+ h.register(ss);
28834
+ h.register(ls);
28835
+ h.register(us);
28836
+ h.register(cs);
28837
+ h.register(ds);
28838
+ h.register(ps);
28839
+ h.register(Sn);
28840
+ h.register(gs);
28841
+ h.register(fs);
28842
+ h.register(ms);
28843
+ h.register(bs);
28844
+ h.register(hs);
28845
+ h.register(ys);
28846
+ h.register(Es);
28847
+ h.register(Ss);
28848
+ h.register(ws);
28849
+ h.register(lr);
28850
+ h.register(As);
28851
+ h.register(Ts);
28852
+ h.register(ks);
28853
+ h.register(vs);
28854
+ h.register(_s);
28855
+ h.register(Rs);
28856
+ h.register(Is);
28857
+ h.register(Ns);
28858
+ h.register(Cs);
28859
+ h.register(xs);
28860
+ h.register(Os);
28861
+ h.register(Ls);
28862
+ h.register(Ds);
28863
+ h.register(Ms);
28864
+ h.register(Fs);
28865
+ h.register(Ps);
28866
+ h.register(Us);
28867
+ h.register(Bs);
28868
+ h.register($s);
28869
+ h.register(zs);
28870
+ h.register(Gs);
28871
+ h.register(Hs);
28872
+ h.register(js);
28873
+ h.register(Vs);
28874
+ h.register(Ws);
28875
+ h.register(qs);
28876
+ h.register(Ys);
28877
+ h.register(Ks);
28878
+ h.register(Xs);
28879
+ h.register(Zs);
28880
+ h.register(Qs);
28881
+ h.register(Js);
28882
+ h.register(el);
28883
+ h.register(tl);
28884
+ h.register(nl);
28885
+ h.register(rl);
28886
+ h.register(al);
28887
+ h.register(il);
28888
+ h.register(ol);
28889
+ h.register(sl);
28890
+ h.register(ll);
28891
+ h.register(ul);
28892
+ h.register(cl);
28893
+ h.register(dl);
28894
+ h.register(pl);
28895
+ h.register(gl);
28896
+ h.register(fl);
28897
+ h.register(ml);
28898
+ h.register(bl);
28899
+ h.register(hl);
28900
+ h.register(yl);
28901
+ h.register(ur);
28902
+ h.register(El);
28903
+ h.register(Sl);
28904
+ h.register(wl);
28905
+ h.register(Al);
28906
+ h.register(Tl);
28907
+ h.register(kl);
28908
+ h.register(vl);
28909
+ h.register(cr);
28910
+ h.register(_l);
28911
+ h.register(Rl);
28912
+ h.register(Il);
28913
+ h.register(Nl);
28914
+ h.register(Cl);
28915
+ h.register(xl);
28916
+ h.register(Ol);
28917
+ h.register(Ll);
28918
+ h.register(Dl);
28919
+ h.register(Ml);
28920
+ h.register(Fl);
28921
+ h.register(Pl);
28922
+ h.register(Ul);
28923
+ h.register(Bl);
28924
+ h.register($l);
28925
+ h.register(zl);
28926
+ h.register(Gl);
28927
+ h.register(Hl);
28928
+ h.register(jl);
28929
+ h.register(Vl);
28930
+ h.register(dr);
28931
+ h.register(Wl);
28932
+ h.register(ql);
28933
+ h.register(Yl);
28934
+ h.register(Kl);
28935
+ h.register(Xl);
28936
+ h.register(Zl);
28937
+ h.register(Ql);
28938
+ h.register(Jl);
28939
+ h.register(eu);
28940
+ h.register(tu);
28941
+ h.register(wn);
28942
+ h.register(nu);
28943
+ h.register(pr);
28944
+ h.register(ru);
28945
+ h.register(au);
28946
+ h.register(iu);
28947
+ h.register(ou);
28948
+ h.register(su);
28949
+ h.register(lu);
28950
+ h.register(uu);
28951
+ h.register(cu);
28952
+ h.register(du);
28953
+ h.register(pu);
28954
+ h.register(gu);
28955
+ h.register(fu);
28956
+ h.register(mu);
28957
+ h.register(bu);
28958
+ h.register(hu);
28959
+ h.register(yu);
28960
+ h.register(Eu);
28961
+ h.register(Su);
28962
+ h.register(wu);
28963
+ h.register(Au);
28964
+ h.register(Tu);
28965
+ h.register(ku);
28966
+ h.register(vu);
28967
+ h.register(_u);
28968
+ h.register(Ru);
28969
+ h.register(Iu);
28970
+ h.register(Nu);
28971
+ h.register(Cu);
28972
+ h.register(xu);
28973
+ var Ap = vE(h, QE);
28974
28974
  Ap.supportedLanguages = _E;
28975
28975
  const JE = {
28976
28976
  'code[class*="language-"]': {
@@ -29162,7 +29162,7 @@ function tS(e, t, n) {
29162
29162
  const c = p[p.length - 1], d = i[o][0], g = i[o][1];
29163
29163
  let f = 0;
29164
29164
  const y = c.children.indexOf(l);
29165
- let h = !1, S = [];
29165
+ let b = !1, S = [];
29166
29166
  d.lastIndex = 0;
29167
29167
  let A = d.exec(l.value);
29168
29168
  for (; A; ) {
@@ -29175,11 +29175,11 @@ function tS(e, t, n) {
29175
29175
  if (typeof T == "string" && (T = T.length > 0 ? { type: "text", value: T } : void 0), T === !1 ? d.lastIndex = v + 1 : (f !== v && S.push({
29176
29176
  type: "text",
29177
29177
  value: l.value.slice(f, v)
29178
- }), Array.isArray(T) ? S.push(...T) : T && S.push(T), f = v + A[0].length, h = !0), !d.global)
29178
+ }), Array.isArray(T) ? S.push(...T) : T && S.push(T), f = v + A[0].length, b = !0), !d.global)
29179
29179
  break;
29180
29180
  A = d.exec(l.value);
29181
29181
  }
29182
- return h ? (f < l.value.length && S.push({ type: "text", value: l.value.slice(f) }), c.children.splice(y, 1, ...S)) : S = [l], y + S.length;
29182
+ return b ? (f < l.value.length && S.push({ type: "text", value: l.value.slice(f) }), c.children.splice(y, 1, ...S)) : S = [l], y + S.length;
29183
29183
  }
29184
29184
  }
29185
29185
  function nS(e) {
@@ -29467,12 +29467,12 @@ function FS(e, t) {
29467
29467
  let l = 0, p = -1;
29468
29468
  for (; ++p < e.length; ) {
29469
29469
  const m = [], y = [];
29470
- let h = -1;
29471
- for (e[p].length > l && (l = e[p].length); ++h < e[p].length; ) {
29472
- const S = PS(e[p][h]);
29470
+ let b = -1;
29471
+ for (e[p].length > l && (l = e[p].length); ++b < e[p].length; ) {
29472
+ const S = PS(e[p][b]);
29473
29473
  if (n.alignDelimiters !== !1) {
29474
29474
  const A = a(S);
29475
- y[h] = A, (u[h] === void 0 || A > u[h]) && (u[h] = A);
29475
+ y[b] = A, (u[b] === void 0 || A > u[b]) && (u[b] = A);
29476
29476
  }
29477
29477
  m.push(S);
29478
29478
  }
@@ -29491,21 +29491,21 @@ function FS(e, t) {
29491
29491
  const d = [], g = [];
29492
29492
  for (; ++c < l; ) {
29493
29493
  const m = i[c];
29494
- let y = "", h = "";
29495
- m === 99 ? (y = ":", h = ":") : m === 108 ? y = ":" : m === 114 && (h = ":");
29494
+ let y = "", b = "";
29495
+ m === 99 ? (y = ":", b = ":") : m === 108 ? y = ":" : m === 114 && (b = ":");
29496
29496
  let S = n.alignDelimiters === !1 ? 1 : Math.max(
29497
29497
  1,
29498
- u[c] - y.length - h.length
29498
+ u[c] - y.length - b.length
29499
29499
  );
29500
- const A = y + "-".repeat(S) + h;
29501
- n.alignDelimiters !== !1 && (S = y.length + S + h.length, S > u[c] && (u[c] = S), g[c] = S), d[c] = A;
29500
+ const A = y + "-".repeat(S) + b;
29501
+ n.alignDelimiters !== !1 && (S = y.length + S + b.length, S > u[c] && (u[c] = S), g[c] = S), d[c] = A;
29502
29502
  }
29503
29503
  o.splice(1, 0, d), s.splice(1, 0, g), p = -1;
29504
29504
  const f = [];
29505
29505
  for (; ++p < o.length; ) {
29506
29506
  const m = o[p], y = s[p];
29507
29507
  c = -1;
29508
- const h = [];
29508
+ const b = [];
29509
29509
  for (; ++c < l; ) {
29510
29510
  const S = m[c] || "";
29511
29511
  let A = "", v = "";
@@ -29513,12 +29513,12 @@ function FS(e, t) {
29513
29513
  const _ = u[c] - (y[c] || 0), T = i[c];
29514
29514
  T === 114 ? A = " ".repeat(_) : T === 99 ? _ % 2 ? (A = " ".repeat(_ / 2 + 0.5), v = " ".repeat(_ / 2 - 0.5)) : (A = " ".repeat(_ / 2), v = A) : v = " ".repeat(_);
29515
29515
  }
29516
- n.delimiterStart !== !1 && !c && h.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
29516
+ n.delimiterStart !== !1 && !c && b.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
29517
29517
  // empty: there will be a closing space.
29518
- !(n.alignDelimiters === !1 && S === "") && (n.delimiterStart !== !1 || c) && h.push(" "), n.alignDelimiters !== !1 && h.push(A), h.push(S), n.alignDelimiters !== !1 && h.push(v), n.padding !== !1 && h.push(" "), (n.delimiterEnd !== !1 || c !== l - 1) && h.push("|");
29518
+ !(n.alignDelimiters === !1 && S === "") && (n.delimiterStart !== !1 || c) && b.push(" "), n.alignDelimiters !== !1 && b.push(A), b.push(S), n.alignDelimiters !== !1 && b.push(v), n.padding !== !1 && b.push(" "), (n.delimiterEnd !== !1 || c !== l - 1) && b.push("|");
29519
29519
  }
29520
29520
  f.push(
29521
- n.delimiterEnd === !1 ? h.join("").replace(/ +$/, "") : h.join("")
29521
+ n.delimiterEnd === !1 ? b.join("").replace(/ +$/, "") : b.join("")
29522
29522
  );
29523
29523
  }
29524
29524
  return f.join(`
@@ -30211,17 +30211,17 @@ function Aw(e) {
30211
30211
  return l(p(g, m, y), g.align);
30212
30212
  }
30213
30213
  function s(g, f, m, y) {
30214
- const h = c(g, m, y), S = l([h]);
30214
+ const b = c(g, m, y), S = l([b]);
30215
30215
  return S.slice(0, S.indexOf(`
30216
30216
  `));
30217
30217
  }
30218
30218
  function u(g, f, m, y) {
30219
- const h = m.enter("tableCell"), S = m.enter("phrasing"), A = m.containerPhrasing(g, {
30219
+ const b = m.enter("tableCell"), S = m.enter("phrasing"), A = m.containerPhrasing(g, {
30220
30220
  ...y,
30221
30221
  before: i,
30222
30222
  after: i
30223
30223
  });
30224
- return S(), h(), A;
30224
+ return S(), b(), A;
30225
30225
  }
30226
30226
  function l(g, f) {
30227
30227
  return FS(g, {
@@ -30236,18 +30236,18 @@ function Aw(e) {
30236
30236
  }
30237
30237
  function p(g, f, m) {
30238
30238
  const y = g.children;
30239
- let h = -1;
30239
+ let b = -1;
30240
30240
  const S = [], A = f.enter("table");
30241
- for (; ++h < y.length; )
30242
- S[h] = c(y[h], f, m);
30241
+ for (; ++b < y.length; )
30242
+ S[b] = c(y[b], f, m);
30243
30243
  return A(), S;
30244
30244
  }
30245
30245
  function c(g, f, m) {
30246
30246
  const y = g.children;
30247
- let h = -1;
30247
+ let b = -1;
30248
30248
  const S = [], A = f.enter("tableRow");
30249
- for (; ++h < y.length; )
30250
- S[h] = u(y[h], g, f, m);
30249
+ for (; ++b < y.length; )
30250
+ S[b] = u(y[b], g, f, m);
30251
30251
  return A(), S;
30252
30252
  }
30253
30253
  function d(g, f, m) {
@@ -30757,8 +30757,8 @@ function Kw(e) {
30757
30757
  if (f === 126)
30758
30758
  return c > 1 ? u(f) : (o.consume(f), c++, g);
30759
30759
  if (c < 2 && !n) return u(f);
30760
- const y = o.exit("strikethroughSequenceTemporary"), h = Mt(f);
30761
- return y._open = !h || h === 2 && !!m, y._close = !m || m === 2 && !!h, s(f);
30760
+ const y = o.exit("strikethroughSequenceTemporary"), b = Mt(f);
30761
+ return y._open = !b || b === 2 && !!m, y._close = !m || m === 2 && !!b, s(f);
30762
30762
  }
30763
30763
  }
30764
30764
  }
@@ -30901,9 +30901,9 @@ function eA(e, t, n) {
30901
30901
  return Y(k) ? J(e, y, "whitespace")(k) : y(k);
30902
30902
  }
30903
30903
  function y(k) {
30904
- return k === 58 ? (i += 1, o = !0, e.enter("tableDelimiterMarker"), e.consume(k), e.exit("tableDelimiterMarker"), h) : k === 45 ? (i += 1, h(k)) : k === null || H(k) ? v(k) : _(k);
30904
+ return k === 58 ? (i += 1, o = !0, e.enter("tableDelimiterMarker"), e.consume(k), e.exit("tableDelimiterMarker"), b) : k === 45 ? (i += 1, b(k)) : k === null || H(k) ? v(k) : _(k);
30905
30905
  }
30906
- function h(k) {
30906
+ function b(k) {
30907
30907
  return k === 45 ? (e.enter("tableDelimiterFiller"), S(k)) : _(k);
30908
30908
  }
30909
30909
  function S(k) {
@@ -31045,7 +31045,7 @@ function lA(e) {
31045
31045
  ), n = e || sA, r = t.data(), a = r.micromarkExtensions || (r.micromarkExtensions = []), i = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), o = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
31046
31046
  a.push(oA(n)), i.push(Rw()), o.push(Iw(n));
31047
31047
  }
31048
- const uA = ({ markdown: e }) => {
31048
+ const uA = ({ messages: e }) => {
31049
31049
  const t = We(null);
31050
31050
  return ke(() => {
31051
31051
  t.current && (t.current.scrollTop = t.current.scrollHeight);
@@ -31082,7 +31082,8 @@ const uA = ({ markdown: e }) => {
31082
31082
  ) : /* @__PURE__ */ P("code", { ...s, className: a, children: r });
31083
31083
  }
31084
31084
  },
31085
- children: e
31085
+ children: e.map((n) => n.markdown).join(`
31086
+ `)
31086
31087
  }
31087
31088
  ) })
31088
31089
  }
@@ -31099,7 +31100,7 @@ const uA = ({ markdown: e }) => {
31099
31100
  onKeyDown: n,
31100
31101
  isComposingRef: r,
31101
31102
  handleInput: a,
31102
- placeholder: i = "Type @alice and press Enter…"
31103
+ placeholder: i = "Type your question or task and press Enter…"
31103
31104
  }) => {
31104
31105
  const [o, s] = ee(!0);
31105
31106
  return ke(() => {
@@ -31144,7 +31145,7 @@ const uA = ({ markdown: e }) => {
31144
31145
  }) => /* @__PURE__ */ P("div", { className: cn.ghostWrapper, children: /* @__PURE__ */ P("div", { ref: e, className: cn.ghost, children: (() => {
31145
31146
  if (t) {
31146
31147
  const i = n.slice(0, r), o = n.slice(r);
31147
- return /* @__PURE__ */ Ue(jr, { children: [
31148
+ return /* @__PURE__ */ Fe(jr, { children: [
31148
31149
  i,
31149
31150
  /* @__PURE__ */ P("span", { "data-at-marker": !0, children: "@" }),
31150
31151
  o.slice(1),
@@ -31152,7 +31153,7 @@ const uA = ({ markdown: e }) => {
31152
31153
  ] });
31153
31154
  } else {
31154
31155
  const i = n.slice(0, a), o = n.slice(a);
31155
- return /* @__PURE__ */ Ue(jr, { children: [
31156
+ return /* @__PURE__ */ Fe(jr, { children: [
31156
31157
  i,
31157
31158
  /* @__PURE__ */ P("span", { "data-caret": !0, children: "|" }),
31158
31159
  o
@@ -31303,10 +31304,10 @@ function SA({
31303
31304
  html: `<span class="${n}" data-mention="${S.label}">${_[0]}</span>`
31304
31305
  });
31305
31306
  }), m.sort((S, A) => S.start - A.start);
31306
- let h = 0;
31307
+ let b = 0;
31307
31308
  m.forEach((S) => {
31308
- f += o(c.slice(h, S.start)), f += S.html, h = S.end;
31309
- }), f += o(c.slice(h));
31309
+ f += o(c.slice(b, S.start)), f += S.html, b = S.end;
31310
+ }), f += o(c.slice(b));
31310
31311
  } else
31311
31312
  f = o(c);
31312
31313
  e.current.innerHTML = f || "<br>", d && requestAnimationFrame(() => {
@@ -31317,9 +31318,9 @@ function SA({
31317
31318
  if (t.length > 0) {
31318
31319
  const g = [...t].sort((m, y) => y.label.length - m.label.length), f = [];
31319
31320
  g.forEach((m) => {
31320
- const y = m.label.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), h = new RegExp(`@${y}(?=\\s|$)`, "g");
31321
+ const y = m.label.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), b = new RegExp(`@${y}(?=\\s|$)`, "g");
31321
31322
  let S;
31322
- for (; (S = h.exec(c)) !== null; )
31323
+ for (; (S = b.exec(c)) !== null; )
31323
31324
  f.some((A) => Math.abs(A - S.index) < m.label.length) || (d.push(`${S.index}:${S[0]}`), f.push(S.index));
31324
31325
  });
31325
31326
  }
@@ -31393,8 +31394,8 @@ function qp(e, t = []) {
31393
31394
  const s = R.createContext(o), u = n.length;
31394
31395
  n = [...n, o];
31395
31396
  const l = (c) => {
31396
- var h;
31397
- const { scope: d, children: g, ...f } = c, m = ((h = d == null ? void 0 : d[e]) == null ? void 0 : h[u]) || s, y = R.useMemo(() => f, Object.values(f));
31397
+ var b;
31398
+ const { scope: d, children: g, ...f } = c, m = ((b = d == null ? void 0 : d[e]) == null ? void 0 : b[u]) || s, y = R.useMemo(() => f, Object.values(f));
31398
31399
  return /* @__PURE__ */ P(m.Provider, { value: y, children: g });
31399
31400
  };
31400
31401
  l.displayName = i + "Provider";
@@ -31921,7 +31922,7 @@ var DA = "DismissableLayer", la = "dismissableLayer.update", MA = "dismissableLa
31921
31922
  onInteractOutside: o,
31922
31923
  onDismiss: s,
31923
31924
  ...u
31924
- } = e, l = R.useContext(Xp), [p, c] = R.useState(null), d = (p == null ? void 0 : p.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = R.useState({}), f = ft(t, (I) => c(I)), m = Array.from(l.layers), [y] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), h = m.indexOf(y), S = p ? m.indexOf(p) : -1, A = l.layersWithOutsidePointerEventsDisabled.size > 0, v = S >= h, _ = BA((I) => {
31925
+ } = e, l = R.useContext(Xp), [p, c] = R.useState(null), d = (p == null ? void 0 : p.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = R.useState({}), f = ft(t, (I) => c(I)), m = Array.from(l.layers), [y] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), b = m.indexOf(y), S = p ? m.indexOf(p) : -1, A = l.layersWithOutsidePointerEventsDisabled.size > 0, v = S >= b, _ = BA((I) => {
31925
31926
  const O = I.target, M = [...l.branches].some((k) => k.contains(O));
31926
31927
  !v || M || (a == null || a(I), o == null || o(I), I.defaultPrevented || s == null || s());
31927
31928
  }, d), T = $A((I) => {
@@ -32062,13 +32063,13 @@ var Fr = "focusScope.autoFocusOnMount", Pr = "focusScope.autoFocusOnUnmount", id
32062
32063
  if (g.paused || !s) return;
32063
32064
  const v = A.relatedTarget;
32064
32065
  v !== null && (s.contains(v) || st(c.current, { select: !0 }));
32065
- }, h = function(A) {
32066
+ }, b = function(A) {
32066
32067
  if (document.activeElement === document.body)
32067
32068
  for (const _ of A)
32068
32069
  _.removedNodes.length > 0 && st(s);
32069
32070
  };
32070
32071
  document.addEventListener("focusin", m), document.addEventListener("focusout", y);
32071
- const S = new MutationObserver(h);
32072
+ const S = new MutationObserver(b);
32072
32073
  return s && S.observe(s, { childList: !0, subtree: !0 }), () => {
32073
32074
  document.removeEventListener("focusin", m), document.removeEventListener("focusout", y), S.disconnect();
32074
32075
  };
@@ -32078,13 +32079,13 @@ var Fr = "focusScope.autoFocusOnMount", Pr = "focusScope.autoFocusOnUnmount", id
32078
32079
  sd.add(g);
32079
32080
  const m = document.activeElement;
32080
32081
  if (!s.contains(m)) {
32081
- const h = new CustomEvent(Fr, id);
32082
- s.addEventListener(Fr, l), s.dispatchEvent(h), h.defaultPrevented || (HA(YA(eg(s)), { select: !0 }), document.activeElement === m && st(s));
32082
+ const b = new CustomEvent(Fr, id);
32083
+ s.addEventListener(Fr, l), s.dispatchEvent(b), b.defaultPrevented || (HA(YA(eg(s)), { select: !0 }), document.activeElement === m && st(s));
32083
32084
  }
32084
32085
  return () => {
32085
32086
  s.removeEventListener(Fr, l), setTimeout(() => {
32086
- const h = new CustomEvent(Pr, id);
32087
- s.addEventListener(Pr, p), s.dispatchEvent(h), h.defaultPrevented || st(m ?? document.body, { select: !0 }), s.removeEventListener(Pr, p), sd.remove(g);
32087
+ const b = new CustomEvent(Pr, id);
32088
+ s.addEventListener(Pr, p), s.dispatchEvent(b), b.defaultPrevented || st(m ?? document.body, { select: !0 }), s.removeEventListener(Pr, p), sd.remove(g);
32088
32089
  }, 0);
32089
32090
  };
32090
32091
  }
@@ -32092,10 +32093,10 @@ var Fr = "focusScope.autoFocusOnMount", Pr = "focusScope.autoFocusOnUnmount", id
32092
32093
  const f = R.useCallback(
32093
32094
  (m) => {
32094
32095
  if (!n && !r || g.paused) return;
32095
- const y = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, h = document.activeElement;
32096
- if (y && h) {
32096
+ const y = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, b = document.activeElement;
32097
+ if (y && b) {
32097
32098
  const S = m.currentTarget, [A, v] = jA(S);
32098
- A && v ? !m.shiftKey && h === v ? (m.preventDefault(), n && st(A, { select: !0 })) : m.shiftKey && h === A && (m.preventDefault(), n && st(v, { select: !0 })) : h === S && m.preventDefault();
32099
+ A && v ? !m.shiftKey && b === v ? (m.preventDefault(), n && st(A, { select: !0 })) : m.shiftKey && b === A && (m.preventDefault(), n && st(v, { select: !0 })) : b === S && m.preventDefault();
32099
32100
  }
32100
32101
  },
32101
32102
  [n, r, g.paused]
@@ -32346,13 +32347,13 @@ const uT = async (e, t, n) => {
32346
32347
  for (let m = 0; m < s.length; m++) {
32347
32348
  const {
32348
32349
  name: y,
32349
- fn: h
32350
+ fn: b
32350
32351
  } = s[m], {
32351
32352
  x: S,
32352
32353
  y: A,
32353
32354
  data: v,
32354
32355
  reset: _
32355
- } = await h({
32356
+ } = await b({
32356
32357
  x: p,
32357
32358
  y: c,
32358
32359
  initialPlacement: r,
@@ -32405,7 +32406,7 @@ async function dn(e, t) {
32405
32406
  elementContext: c = "floating",
32406
32407
  altBoundary: d = !1,
32407
32408
  padding: g = 0
32408
- } = nt(t, e), f = tg(g), y = s[d ? c === "floating" ? "reference" : "floating" : c], h = Kn(await i.getClippingRect({
32409
+ } = nt(t, e), f = tg(g), y = s[d ? c === "floating" ? "reference" : "floating" : c], b = Kn(await i.getClippingRect({
32409
32410
  element: (n = await (i.isElement == null ? void 0 : i.isElement(y))) == null || n ? y : y.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
32410
32411
  boundary: l,
32411
32412
  rootBoundary: p,
@@ -32428,10 +32429,10 @@ async function dn(e, t) {
32428
32429
  strategy: u
32429
32430
  }) : S);
32430
32431
  return {
32431
- top: (h.top - _.top + f.top) / v.y,
32432
- bottom: (_.bottom - h.bottom + f.bottom) / v.y,
32433
- left: (h.left - _.left + f.left) / v.x,
32434
- right: (_.right - h.right + f.right) / v.x
32432
+ top: (b.top - _.top + f.top) / v.y,
32433
+ bottom: (_.bottom - b.bottom + f.bottom) / v.y,
32434
+ left: (b.left - _.left + f.left) / v.x,
32435
+ right: (_.right - b.right + f.right) / v.x
32435
32436
  };
32436
32437
  }
32437
32438
  const cT = (e) => ({
@@ -32455,10 +32456,10 @@ const cT = (e) => ({
32455
32456
  const c = tg(p), d = {
32456
32457
  x: n,
32457
32458
  y: r
32458
- }, g = Uu(a), f = Pu(g), m = await o.getDimensions(l), y = g === "y", h = y ? "top" : "left", S = y ? "bottom" : "right", A = y ? "clientHeight" : "clientWidth", v = i.reference[f] + i.reference[g] - d[g] - i.floating[f], _ = d[g] - i.reference[g], T = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l));
32459
+ }, g = Uu(a), f = Pu(g), m = await o.getDimensions(l), y = g === "y", b = y ? "top" : "left", S = y ? "bottom" : "right", A = y ? "clientHeight" : "clientWidth", v = i.reference[f] + i.reference[g] - d[g] - i.floating[f], _ = d[g] - i.reference[g], T = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l));
32459
32460
  let I = T ? T[A] : 0;
32460
32461
  (!I || !await (o.isElement == null ? void 0 : o.isElement(T))) && (I = s.floating[A] || i.floating[f]);
32461
- const O = v / 2 - _ / 2, M = I / 2 - m[f] / 2 - 1, k = dt(c[h], M), C = dt(c[S], M), x = k, L = I - m[f] - C, U = I / 2 - m[f] / 2 + O, B = ua(x, U, L), G = !u.arrow && qt(a) != null && U !== B && i.reference[f] / 2 - (U < x ? k : C) - m[f] / 2 < 0, z = G ? U < x ? U - x : U - L : 0;
32462
+ const O = v / 2 - _ / 2, M = I / 2 - m[f] / 2 - 1, k = dt(c[b], M), C = dt(c[S], M), x = k, L = I - m[f] - C, U = I / 2 - m[f] / 2 + O, B = ua(x, U, L), G = !u.arrow && qt(a) != null && U !== B && i.reference[f] / 2 - (U < x ? k : C) - m[f] / 2 < 0, z = G ? U < x ? U - x : U - L : 0;
32462
32463
  return {
32463
32464
  [g]: d[g] + z,
32464
32465
  data: {
@@ -32495,11 +32496,11 @@ const cT = (e) => ({
32495
32496
  } = nt(e, t);
32496
32497
  if ((n = i.arrow) != null && n.alignmentOffset)
32497
32498
  return {};
32498
- const h = rt(a), S = qe(s), A = rt(s) === s, v = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), _ = d || (A || !m ? [Yn(s)] : rT(s)), T = f !== "none";
32499
+ const b = rt(a), S = qe(s), A = rt(s) === s, v = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), _ = d || (A || !m ? [Yn(s)] : rT(s)), T = f !== "none";
32499
32500
  !d && T && _.push(...sT(s, m, f, v));
32500
32501
  const I = [s, ..._], O = await dn(t, y), M = [];
32501
32502
  let k = ((r = i.flip) == null ? void 0 : r.overflows) || [];
32502
- if (p && M.push(O[h]), c) {
32503
+ if (p && M.push(O[b]), c) {
32503
32504
  const U = nT(a, o, v);
32504
32505
  M.push(O[U[0]], O[U[1]]);
32505
32506
  }
@@ -32670,11 +32671,11 @@ const fT = function(e) {
32670
32671
  limiter: s = {
32671
32672
  fn: (y) => {
32672
32673
  let {
32673
- x: h,
32674
+ x: b,
32674
32675
  y: S
32675
32676
  } = y;
32676
32677
  return {
32677
- x: h,
32678
+ x: b,
32678
32679
  y: S
32679
32680
  };
32680
32681
  }
@@ -32686,11 +32687,11 @@ const fT = function(e) {
32686
32687
  }, p = await dn(t, u), c = qe(rt(a)), d = Fu(c);
32687
32688
  let g = l[d], f = l[c];
32688
32689
  if (i) {
32689
- const y = d === "y" ? "top" : "left", h = d === "y" ? "bottom" : "right", S = g + p[y], A = g - p[h];
32690
+ const y = d === "y" ? "top" : "left", b = d === "y" ? "bottom" : "right", S = g + p[y], A = g - p[b];
32690
32691
  g = ua(S, g, A);
32691
32692
  }
32692
32693
  if (o) {
32693
- const y = c === "y" ? "top" : "left", h = c === "y" ? "bottom" : "right", S = f + p[y], A = f - p[h];
32694
+ const y = c === "y" ? "top" : "left", b = c === "y" ? "bottom" : "right", S = f + p[y], A = f - p[b];
32694
32695
  f = ua(S, f, A);
32695
32696
  }
32696
32697
  const m = s.fn({
@@ -32743,8 +32744,8 @@ const fT = function(e) {
32743
32744
  g < v ? g = v : g > _ && (g = _);
32744
32745
  }
32745
32746
  if (l) {
32746
- var h, S;
32747
- const A = d === "y" ? "width" : "height", v = ng.has(rt(a)), _ = i.reference[c] - i.floating[A] + (v && ((h = o.offset) == null ? void 0 : h[c]) || 0) + (v ? 0 : y.crossAxis), T = i.reference[c] + i.reference[A] + (v ? 0 : ((S = o.offset) == null ? void 0 : S[c]) || 0) - (v ? y.crossAxis : 0);
32747
+ var b, S;
32748
+ const A = d === "y" ? "width" : "height", v = ng.has(rt(a)), _ = i.reference[c] - i.floating[A] + (v && ((b = o.offset) == null ? void 0 : b[c]) || 0) + (v ? 0 : y.crossAxis), T = i.reference[c] + i.reference[A] + (v ? 0 : ((S = o.offset) == null ? void 0 : S[c]) || 0) - (v ? y.crossAxis : 0);
32748
32749
  f < _ ? f = _ : f > T && (f = T);
32749
32750
  }
32750
32751
  return {
@@ -32772,9 +32773,9 @@ const fT = function(e) {
32772
32773
  width: f,
32773
32774
  height: m
32774
32775
  } = i.floating;
32775
- let y, h;
32776
- c === "top" || c === "bottom" ? (y = c, h = d === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (h = c, y = d === "end" ? "top" : "bottom");
32777
- const S = m - p.top - p.bottom, A = f - p.left - p.right, v = dt(m - p[y], S), _ = dt(f - p[h], A), T = !t.middlewareData.shift;
32776
+ let y, b;
32777
+ c === "top" || c === "bottom" ? (y = c, b = d === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (b = c, y = d === "end" ? "top" : "bottom");
32778
+ const S = m - p.top - p.bottom, A = f - p.left - p.right, v = dt(m - p[y], S), _ = dt(f - p[b], A), T = !t.middlewareData.shift;
32778
32779
  let I = v, O = _;
32779
32780
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (O = A), (r = t.middlewareData.shift) != null && r.enabled.y && (I = S), T && !d) {
32780
32781
  const k = xe(p.left, 0), C = xe(p.right, 0), x = xe(p.top, 0), L = xe(p.bottom, 0);
@@ -32958,7 +32959,7 @@ function St(e, t, n, r) {
32958
32959
  const d = Le(i), g = r && $e(r) ? Le(r) : r;
32959
32960
  let f = d, m = da(f);
32960
32961
  for (; m && r && g !== f; ) {
32961
- const y = Lt(m), h = m.getBoundingClientRect(), S = ze(m), A = h.left + (m.clientLeft + parseFloat(S.paddingLeft)) * y.x, v = h.top + (m.clientTop + parseFloat(S.paddingTop)) * y.y;
32962
+ const y = Lt(m), b = m.getBoundingClientRect(), S = ze(m), A = b.left + (m.clientLeft + parseFloat(S.paddingLeft)) * y.x, v = b.top + (m.clientTop + parseFloat(S.paddingTop)) * y.y;
32962
32963
  u *= y.x, l *= y.y, p *= y.x, c *= y.y, u += A, l += v, f = Le(m), m = da(f);
32963
32964
  }
32964
32965
  }
@@ -33216,8 +33217,8 @@ function GT(e, t) {
33216
33217
  } = l;
33217
33218
  if (s || t(), !d || !g)
33218
33219
  return;
33219
- const f = Nn(c), m = Nn(a.clientWidth - (p + d)), y = Nn(a.clientHeight - (c + g)), h = Nn(p), A = {
33220
- rootMargin: -f + "px " + -m + "px " + -y + "px " + -h + "px",
33220
+ const f = Nn(c), m = Nn(a.clientWidth - (p + d)), y = Nn(a.clientHeight - (c + g)), b = Nn(p), A = {
33221
+ rootMargin: -f + "px " + -m + "px " + -y + "px " + -b + "px",
33221
33222
  threshold: xe(0, dt(1, u)) || 1
33222
33223
  };
33223
33224
  let v = !0;
@@ -33254,15 +33255,15 @@ function HT(e, t, n, r) {
33254
33255
  layoutShift: s = typeof IntersectionObserver == "function",
33255
33256
  animationFrame: u = !1
33256
33257
  } = r, l = zu(e), p = a || i ? [...l ? pn(l) : [], ...pn(t)] : [];
33257
- p.forEach((h) => {
33258
- a && h.addEventListener("scroll", n, {
33258
+ p.forEach((b) => {
33259
+ a && b.addEventListener("scroll", n, {
33259
33260
  passive: !0
33260
- }), i && h.addEventListener("resize", n);
33261
+ }), i && b.addEventListener("resize", n);
33261
33262
  });
33262
33263
  const c = l && s ? GT(l, n) : null;
33263
33264
  let d = -1, g = null;
33264
- o && (g = new ResizeObserver((h) => {
33265
- let [S] = h;
33265
+ o && (g = new ResizeObserver((b) => {
33266
+ let [S] = b;
33266
33267
  S && S.target === l && g && (g.unobserve(t), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
33267
33268
  var A;
33268
33269
  (A = g) == null || A.observe(t);
@@ -33271,14 +33272,14 @@ function HT(e, t, n, r) {
33271
33272
  let f, m = u ? St(e) : null;
33272
33273
  u && y();
33273
33274
  function y() {
33274
- const h = St(e);
33275
- m && !cg(m, h) && n(), m = h, f = requestAnimationFrame(y);
33275
+ const b = St(e);
33276
+ m && !cg(m, b) && n(), m = b, f = requestAnimationFrame(y);
33276
33277
  }
33277
33278
  return n(), () => {
33278
- var h;
33279
+ var b;
33279
33280
  p.forEach((S) => {
33280
33281
  a && S.removeEventListener("scroll", n), i && S.removeEventListener("resize", n);
33281
- }), c == null || c(), (h = g) == null || h.disconnect(), g = null, u && cancelAnimationFrame(f);
33282
+ }), c == null || c(), (b = g) == null || b.disconnect(), g = null, u && cancelAnimationFrame(f);
33282
33283
  };
33283
33284
  }
33284
33285
  const jT = fT, VT = mT, WT = dT, qT = hT, YT = pT, yd = cT, KT = bT, XT = (e, t, n) => {
@@ -33362,10 +33363,10 @@ function JT(e) {
33362
33363
  isPositioned: !1
33363
33364
  }), [d, g] = R.useState(r);
33364
33365
  Xn(d, r) || g(r);
33365
- const [f, m] = R.useState(null), [y, h] = R.useState(null), S = R.useCallback(($) => {
33366
+ const [f, m] = R.useState(null), [y, b] = R.useState(null), S = R.useCallback(($) => {
33366
33367
  $ !== T.current && (T.current = $, m($));
33367
33368
  }, []), A = R.useCallback(($) => {
33368
- $ !== I.current && (I.current = $, h($));
33369
+ $ !== I.current && (I.current = $, b($));
33369
33370
  }, []), v = i || f, _ = o || y, T = R.useRef(null), I = R.useRef(null), O = R.useRef(p), M = u != null, k = Br(u), C = Br(a), x = Br(l), L = R.useCallback(() => {
33370
33371
  if (!T.current || !I.current)
33371
33372
  return;
@@ -33556,7 +33557,7 @@ var Hu = "PopperContent", [pk, gk] = gg(Hu), Eg = R.forwardRef(
33556
33557
  updatePositionStrategy: g = "optimized",
33557
33558
  onPlaced: f,
33558
33559
  ...m
33559
- } = e, y = mg(Hu, n), [h, S] = R.useState(null), A = ft(t, (oe) => S(oe)), [v, _] = R.useState(null), T = ck(v), I = (T == null ? void 0 : T.width) ?? 0, O = (T == null ? void 0 : T.height) ?? 0, M = r + (i !== "center" ? "-" + i : ""), k = typeof p == "number" ? p : { top: 0, right: 0, bottom: 0, left: 0, ...p }, C = Array.isArray(l) ? l : [l], x = C.length > 0, L = {
33560
+ } = e, y = mg(Hu, n), [b, S] = R.useState(null), A = ft(t, (oe) => S(oe)), [v, _] = R.useState(null), T = ck(v), I = (T == null ? void 0 : T.width) ?? 0, O = (T == null ? void 0 : T.height) ?? 0, M = r + (i !== "center" ? "-" + i : ""), k = typeof p == "number" ? p : { top: 0, right: 0, bottom: 0, left: 0, ...p }, C = Array.isArray(l) ? l : [l], x = C.length > 0, L = {
33560
33561
  padding: k,
33561
33562
  boundary: C.filter(mk),
33562
33563
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -33582,9 +33583,9 @@ var Hu = "PopperContent", [pk, gk] = gg(Hu), Eg = R.forwardRef(
33582
33583
  u && ak({ ...L }),
33583
33584
  ik({
33584
33585
  ...L,
33585
- apply: ({ elements: oe, rects: Ie, availableWidth: Je, availableHeight: Fe }) => {
33586
+ apply: ({ elements: oe, rects: Ie, availableWidth: Je, availableHeight: Pe }) => {
33586
33587
  const { width: Ge, height: kt } = Ie.reference, De = oe.floating.style;
33587
- De.setProperty("--radix-popper-available-width", `${Je}px`), De.setProperty("--radix-popper-available-height", `${Fe}px`), De.setProperty("--radix-popper-anchor-width", `${Ge}px`), De.setProperty("--radix-popper-anchor-height", `${kt}px`);
33588
+ De.setProperty("--radix-popper-available-width", `${Je}px`), De.setProperty("--radix-popper-available-height", `${Pe}px`), De.setProperty("--radix-popper-anchor-width", `${Ge}px`), De.setProperty("--radix-popper-anchor-height", `${kt}px`);
33588
33589
  }
33589
33590
  }),
33590
33591
  v && sk({ element: v, padding: s }),
@@ -33597,8 +33598,8 @@ var Hu = "PopperContent", [pk, gk] = gg(Hu), Eg = R.forwardRef(
33597
33598
  }, [z, K]);
33598
33599
  const te = (_e = $.arrow) == null ? void 0 : _e.x, w = (de = $.arrow) == null ? void 0 : de.y, ue = ((Ae = $.arrow) == null ? void 0 : Ae.centerOffset) !== 0, [ce, ie] = R.useState();
33599
33600
  return ct(() => {
33600
- h && ie(window.getComputedStyle(h).zIndex);
33601
- }, [h]), /* @__PURE__ */ P(
33601
+ b && ie(window.getComputedStyle(b).zIndex);
33602
+ }, [b]), /* @__PURE__ */ P(
33602
33603
  "div",
33603
33604
  {
33604
33605
  ref: U.setFloating,
@@ -33711,8 +33712,8 @@ var bk = (e) => ({
33711
33712
  name: "transformOrigin",
33712
33713
  options: e,
33713
33714
  fn(t) {
33714
- var y, h, S;
33715
- const { placement: n, rects: r, middlewareData: a } = t, o = ((y = a.arrow) == null ? void 0 : y.centerOffset) !== 0, s = o ? 0 : e.arrowWidth, u = o ? 0 : e.arrowHeight, [l, p] = Ag(n), c = { start: "0%", center: "50%", end: "100%" }[p], d = (((h = a.arrow) == null ? void 0 : h.x) ?? 0) + s / 2, g = (((S = a.arrow) == null ? void 0 : S.y) ?? 0) + u / 2;
33715
+ var y, b, S;
33716
+ const { placement: n, rects: r, middlewareData: a } = t, o = ((y = a.arrow) == null ? void 0 : y.centerOffset) !== 0, s = o ? 0 : e.arrowWidth, u = o ? 0 : e.arrowHeight, [l, p] = Ag(n), c = { start: "0%", center: "50%", end: "100%" }[p], d = (((b = a.arrow) == null ? void 0 : b.x) ?? 0) + s / 2, g = (((S = a.arrow) == null ? void 0 : S.y) ?? 0) + u / 2;
33716
33717
  let f = "", m = "";
33717
33718
  return l === "bottom" ? (f = o ? c : `${d}px`, m = `${-u}px`) : l === "top" ? (f = o ? c : `${d}px`, m = `${r.floating.height + u}px`) : l === "right" ? (f = `${-u}px`, m = o ? c : `${g}px`) : l === "left" && (f = `${r.floating.width + u}px`, m = o ? c : `${g}px`), { data: { x: f, y: m } };
33718
33719
  }
@@ -33874,8 +33875,8 @@ var Ik = function(e) {
33874
33875
  try {
33875
33876
  var g = d.getAttribute(r), f = g !== null && g !== "false", m = (Rt.get(d) || 0) + 1, y = (i.get(d) || 0) + 1;
33876
33877
  Rt.set(d, m), i.set(d, y), o.push(d), m === 1 && f && xn.set(d, !0), y === 1 && d.setAttribute(n, "true"), f || d.setAttribute(r, "true");
33877
- } catch (h) {
33878
- console.error("aria-hidden: cannot operate on ", d, h);
33878
+ } catch (b) {
33879
+ console.error("aria-hidden: cannot operate on ", d, b);
33879
33880
  }
33880
33881
  });
33881
33882
  };
@@ -34040,7 +34041,7 @@ var Ig = $k(), Gr = function() {
34040
34041
  onScrollCapture: Gr,
34041
34042
  onWheelCapture: Gr,
34042
34043
  onTouchMoveCapture: Gr
34043
- }), a = r[0], i = r[1], o = e.forwardProps, s = e.children, u = e.className, l = e.removeScrollBar, p = e.enabled, c = e.shards, d = e.sideCar, g = e.noRelative, f = e.noIsolation, m = e.inert, y = e.allowPinchZoom, h = e.as, S = h === void 0 ? "div" : h, A = e.gapMode, v = _g(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), _ = d, T = Pk([n, t]), I = Ve(Ve({}, v), a);
34044
+ }), a = r[0], i = r[1], o = e.forwardProps, s = e.children, u = e.className, l = e.removeScrollBar, p = e.enabled, c = e.shards, d = e.sideCar, g = e.noRelative, f = e.noIsolation, m = e.inert, y = e.allowPinchZoom, b = e.as, S = b === void 0 ? "div" : b, A = e.gapMode, v = _g(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), _ = d, T = Pk([n, t]), I = Ve(Ve({}, v), a);
34044
34045
  return R.createElement(
34045
34046
  R.Fragment,
34046
34047
  null,
@@ -34247,8 +34248,8 @@ var It = pa ? { passive: !1 } : !1, tv = function(e) {
34247
34248
  do {
34248
34249
  if (!s)
34249
34250
  break;
34250
- var g = Og(e, s), f = g[0], m = g[1], y = g[2], h = m - y - i * f;
34251
- (f || h) && xg(e, s) && (c += h, d += f);
34251
+ var g = Og(e, s), f = g[0], m = g[1], y = g[2], b = m - y - i * f;
34252
+ (f || b) && xg(e, s) && (c += b, d += f);
34252
34253
  var S = s.parentNode;
34253
34254
  s = S && S.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? S.host : S;
34254
34255
  } while (
@@ -34291,7 +34292,7 @@ function dv(e) {
34291
34292
  var s = R.useCallback(function(m, y) {
34292
34293
  if ("touches" in m && m.touches.length === 2 || m.type === "wheel" && m.ctrlKey)
34293
34294
  return !o.current.allowPinchZoom;
34294
- var h = Dn(m), S = n.current, A = "deltaX" in m ? m.deltaX : S[0] - h[0], v = "deltaY" in m ? m.deltaY : S[1] - h[1], _, T = m.target, I = Math.abs(A) > Math.abs(v) ? "h" : "v";
34295
+ var b = Dn(m), S = n.current, A = "deltaX" in m ? m.deltaX : S[0] - b[0], v = "deltaY" in m ? m.deltaY : S[1] - b[1], _, T = m.target, I = Math.abs(A) > Math.abs(v) ? "h" : "v";
34295
34296
  if ("touches" in m && I === "h" && T.type === "range")
34296
34297
  return !1;
34297
34298
  var O = window.getSelection(), M = O && O.anchorNode, k = M ? M === T || M.contains(T) : !1;
@@ -34309,8 +34310,8 @@ function dv(e) {
34309
34310
  }, []), u = R.useCallback(function(m) {
34310
34311
  var y = m;
34311
34312
  if (!(!Nt.length || Nt[Nt.length - 1] !== i)) {
34312
- var h = "deltaY" in y ? Td(y) : Dn(y), S = t.current.filter(function(_) {
34313
- return _.name === y.type && (_.target === y.target || y.target === _.shadowParent) && lv(_.delta, h);
34313
+ var b = "deltaY" in y ? Td(y) : Dn(y), S = t.current.filter(function(_) {
34314
+ return _.name === y.type && (_.target === y.target || y.target === _.shadowParent) && lv(_.delta, b);
34314
34315
  })[0];
34315
34316
  if (S && S.should) {
34316
34317
  y.cancelable && y.preventDefault();
@@ -34323,8 +34324,8 @@ function dv(e) {
34323
34324
  v && y.cancelable && y.preventDefault();
34324
34325
  }
34325
34326
  }
34326
- }, []), l = R.useCallback(function(m, y, h, S) {
34327
- var A = { name: m, delta: y, target: h, should: S, shadowParent: pv(h) };
34327
+ }, []), l = R.useCallback(function(m, y, b, S) {
34328
+ var A = { name: m, delta: y, target: b, should: S, shadowParent: pv(b) };
34328
34329
  t.current.push(A), setTimeout(function() {
34329
34330
  t.current = t.current.filter(function(v) {
34330
34331
  return v !== A;
@@ -34578,7 +34579,7 @@ function Hg(e) {
34578
34579
  return e ? "open" : "closed";
34579
34580
  }
34580
34581
  var kv = Mg, vv = Pg, _v = Bg, Rv = $g;
34581
- const Iv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='icon%20icon-tabler%20icons-tabler-outline%20icon-tabler-arrow-right'%3e%3cpath%20stroke='none'%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M5%2012l14%200'%20/%3e%3cpath%20d='M13%2018l6%20-6'%20/%3e%3cpath%20d='M13%206l6%206'%20/%3e%3c/svg%3e", Nv = ({ name: e }) => /* @__PURE__ */ Ue(
34582
+ const Iv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='icon%20icon-tabler%20icons-tabler-outline%20icon-tabler-arrow-right'%3e%3cpath%20stroke='none'%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M5%2012l14%200'%20/%3e%3cpath%20d='M13%2018l6%20-6'%20/%3e%3cpath%20d='M13%206l6%206'%20/%3e%3c/svg%3e", Nv = ({ name: e }) => /* @__PURE__ */ Fe(
34582
34583
  "div",
34583
34584
  {
34584
34585
  style: {
@@ -34641,7 +34642,7 @@ const Iv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
34641
34642
  }
34642
34643
  }, [n]), !e || !a) return null;
34643
34644
  const c = t.filter((g) => g.type === "option"), d = t.filter((g) => g.type === "category");
34644
- return /* @__PURE__ */ Ue(kv, { open: e, children: [
34645
+ return /* @__PURE__ */ Fe(kv, { open: e, children: [
34645
34646
  /* @__PURE__ */ P(vv, { asChild: !0, children: /* @__PURE__ */ P(
34646
34647
  "div",
34647
34648
  {
@@ -34654,7 +34655,7 @@ const Iv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
34654
34655
  }
34655
34656
  }
34656
34657
  ) }),
34657
- /* @__PURE__ */ P(_v, { children: /* @__PURE__ */ Ue(
34658
+ /* @__PURE__ */ P(_v, { children: /* @__PURE__ */ Fe(
34658
34659
  Rv,
34659
34660
  {
34660
34661
  className: ge.popup,
@@ -34671,7 +34672,7 @@ const Iv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
34671
34672
  g.preventDefault();
34672
34673
  },
34673
34674
  children: [
34674
- !o && i !== "" && /* @__PURE__ */ Ue("div", { className: ge.breadcrumb, children: [
34675
+ !o && i !== "" && /* @__PURE__ */ Fe("div", { className: ge.breadcrumb, children: [
34675
34676
  /* @__PURE__ */ P(
34676
34677
  "span",
34677
34678
  {
@@ -34685,7 +34686,7 @@ const Iv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
34685
34686
  /* @__PURE__ */ P("span", { className: ge.breadcrumbSeparator, children: " / " }),
34686
34687
  /* @__PURE__ */ P("span", { className: ge.breadcrumbCurrent, children: "search" })
34687
34688
  ] }),
34688
- o && s && /* @__PURE__ */ Ue("div", { className: ge.breadcrumb, children: [
34689
+ o && s && /* @__PURE__ */ Fe("div", { className: ge.breadcrumb, children: [
34689
34690
  /* @__PURE__ */ P(
34690
34691
  "span",
34691
34692
  {
@@ -34753,7 +34754,7 @@ const Iv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
34753
34754
  memories: o
34754
34755
  }) => {
34755
34756
  var Ae;
34756
- const [s, u] = ee(""), [l, p] = ee(""), [c, d] = ee(""), [g, f] = ee(!1), [m, y] = ee(0), [h, S] = ee(0), [A, v] = ee(null), [_, T] = ee(0), [I, O] = ee(null), M = We(null), k = We(null), C = We(!1), [x, L] = ee([]), U = We(/* @__PURE__ */ new Map()), B = rn(() => {
34757
+ const [s, u] = ee(""), [l, p] = ee(""), [c, d] = ee(""), [g, f] = ee(!1), [m, y] = ee(0), [b, S] = ee(0), [A, v] = ee(null), [_, T] = ee(0), [I, O] = ee(null), M = We(null), k = We(null), C = We(!1), [x, L] = ee([]), U = We(/* @__PURE__ */ new Map()), B = rn(() => {
34757
34758
  const V = /* @__PURE__ */ new Map();
34758
34759
  return U.current.forEach((Z, Re) => {
34759
34760
  V.set(Re, Z);
@@ -34821,9 +34822,9 @@ const Iv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
34821
34822
  O(null);
34822
34823
  const Re = o.find((De) => De.id === Z.id);
34823
34824
  Re && U.current.set(Re.id, Re);
34824
- const oe = s, Ie = oe.slice(0, m), Je = oe.slice(m), Fe = Ie.lastIndexOf("@");
34825
- if (Fe === -1) return;
34826
- const Ge = Ie.slice(0, Fe) + "@" + Z.label + " " + Je, kt = Ie.slice(0, Fe).length + Z.label.length + 2;
34825
+ const oe = s, Ie = oe.slice(0, m), Je = oe.slice(m), Pe = Ie.lastIndexOf("@");
34826
+ if (Pe === -1) return;
34827
+ const Ge = Ie.slice(0, Pe) + "@" + Z.label + " " + Je, kt = Ie.slice(0, Pe).length + Z.label.length + 2;
34827
34828
  u(Ge), e(Ge), z(Ge), W(), ce(Ge), requestAnimationFrame(() => {
34828
34829
  w(Ge, !1), requestAnimationFrame(() => {
34829
34830
  var De;
@@ -34874,7 +34875,7 @@ const Iv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
34874
34875
  }
34875
34876
  const Z = k.current.querySelector("span[data-at-marker]");
34876
34877
  Z instanceof HTMLElement ? v(Z) : v(null);
34877
- }, [m, l, g, s, k, v]), /* @__PURE__ */ Ue("div", { className: cn.wrapper, children: [
34878
+ }, [m, l, g, s, k, v]), /* @__PURE__ */ Fe("div", { className: cn.wrapper, children: [
34878
34879
  /* @__PURE__ */ P(
34879
34880
  mA,
34880
34881
  {
@@ -34893,7 +34894,7 @@ const Iv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
34893
34894
  ghostRef: k,
34894
34895
  isOpen: g,
34895
34896
  value: s,
34896
- atPosition: h,
34897
+ atPosition: b,
34897
34898
  caretPos: m
34898
34899
  }
34899
34900
  ),
@@ -34915,8 +34916,8 @@ const Iv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
34915
34916
  const Ie = V.slice(0, oe + 1) + Re, Je = oe + 1;
34916
34917
  u(Ie), e(Ie), z(Ie), requestAnimationFrame(() => {
34917
34918
  w(Ie, !1), requestAnimationFrame(() => {
34918
- var Fe;
34919
- (Fe = M.current) == null || Fe.focus(), K(Je), y(Je);
34919
+ var Pe;
34920
+ (Pe = M.current) == null || Pe.focus(), K(Je), y(Je);
34920
34921
  });
34921
34922
  });
34922
34923
  }
@@ -34931,12 +34932,12 @@ const Iv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
34931
34932
  }) => {
34932
34933
  const [r, a] = ee(""), [i, o] = ee(null), [s, u] = ee(null), { listFirstPage: l } = cf(), { listFirstPage: p } = uf(), [c, d] = ee(
34933
34934
  null
34934
- ), [g, f] = ee(null);
34935
+ ), [g, f] = ee(null), [m, y] = ee([]);
34935
34936
  return ke(() => {
34936
34937
  l({
34937
34938
  fetchClientSecret: t
34938
- }).then((m) => {
34939
- m.type === "success" && d(m.page.items);
34939
+ }).then((b) => {
34940
+ b.type === "success" && d(b.page.items);
34940
34941
  });
34941
34942
  }, []), ke(() => {
34942
34943
  i === null && r === "" || p({
@@ -34945,10 +34946,10 @@ const Iv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
34945
34946
  memoryIds: s ?? void 0,
34946
34947
  title: r,
34947
34948
  meta: {}
34948
- }).then((m) => {
34949
- m.type === "success" && f(m.page.items);
34949
+ }).then((b) => {
34950
+ b.type === "success" && f(b.page.items);
34950
34951
  });
34951
- }, [i, s, r]), /* @__PURE__ */ Ue(
34952
+ }, [i, s, r]), /* @__PURE__ */ Fe(
34952
34953
  "div",
34953
34954
  {
34954
34955
  style: {
@@ -34959,22 +34960,40 @@ const Iv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
34959
34960
  overflow: "hidden"
34960
34961
  },
34961
34962
  children: [
34962
- /* @__PURE__ */ P(uA, { id: "1", markdown: "1" }, "1"),
34963
+ m.length === 0 && /* @__PURE__ */ P(
34964
+ "div",
34965
+ {
34966
+ style: {
34967
+ flex: 1,
34968
+ display: "flex",
34969
+ justifyContent: "center",
34970
+ alignItems: "center"
34971
+ },
34972
+ children: /* @__PURE__ */ Fe("p", { style: { textAlign: "center" }, children: [
34973
+ "Ask about something. ",
34974
+ /* @__PURE__ */ P("br", {}),
34975
+ " Use ",
34976
+ /* @__PURE__ */ P("b", { children: '"@"' }),
34977
+ " to add context."
34978
+ ] })
34979
+ }
34980
+ ),
34981
+ m.length > 0 && /* @__PURE__ */ P(uA, { messages: m }),
34963
34982
  /* @__PURE__ */ P(
34964
34983
  zv,
34965
34984
  {
34966
34985
  memoryTypes: c ?? [],
34967
34986
  memories: g ?? [],
34968
- onMemoryTypeChange: (m) => {
34969
- o(m);
34987
+ onMemoryTypeChange: (b) => {
34988
+ o(b);
34970
34989
  },
34971
- onTitleQueryChange: (m) => {
34972
- a(m);
34990
+ onTitleQueryChange: (b) => {
34991
+ a(b);
34973
34992
  },
34974
34993
  onChange: () => {
34975
34994
  },
34976
- onMentionChange: (m) => {
34977
- u(m);
34995
+ onMentionChange: (b) => {
34996
+ u(b);
34978
34997
  },
34979
34998
  onChangeMentionPlaceholders: () => {
34980
34999
  }
@@ -35005,17 +35024,17 @@ function Xv({ fency: e, children: t }) {
35005
35024
  const y = (async () => {
35006
35025
  if (!n)
35007
35026
  throw new Error("Fency instance not initialized");
35008
- const h = await Zg({
35027
+ const b = await Zg({
35009
35028
  pk: n.publishableKey,
35010
35029
  baseUrl: n.baseUrl,
35011
35030
  request: g
35012
35031
  });
35013
- if (h.type === "success") {
35032
+ if (b.type === "success") {
35014
35033
  const S = {
35015
- stream: h.stream,
35034
+ stream: b.stream,
35016
35035
  createdAt: Date.now()
35017
35036
  };
35018
- return l(S), p.current = null, h.stream;
35037
+ return l(S), p.current = null, b.stream;
35019
35038
  } else
35020
35039
  throw p.current = null, new Error("Failed to create stream");
35021
35040
  })();
@@ -35024,7 +35043,7 @@ function Xv({ fency: e, children: t }) {
35024
35043
  [n, u]
35025
35044
  );
35026
35045
  if (o)
35027
- return /* @__PURE__ */ Ue("div", { children: [
35046
+ return /* @__PURE__ */ Fe("div", { children: [
35028
35047
  "Fency error: ",
35029
35048
  o.message
35030
35049
  ] });