@voxket-ai/voxket-live 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.cjs +35 -35
  2. package/dist/index.js +377 -363
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- var zg = Object.defineProperty;
2
- var Hg = (e, t, n) => t in e ? zg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
1
+ var Ug = Object.defineProperty;
2
+ var Hg = (e, t, n) => t in e ? Ug(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var we = (e, t, n) => Hg(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import * as P from "react";
5
5
  import Me, { createContext as In, useRef as on, useLayoutEffect as jg, useEffect as Nt, useId as qa, useContext as Ct, useInsertionEffect as Tf, useMemo as Qt, useCallback as Xe, Children as Wg, isValidElement as Gg, useState as Se, Fragment as Nf, createElement as Kg, forwardRef as qg, Component as Yg } from "react";
@@ -98,7 +98,7 @@ function _i(e, t, n, r) {
98
98
  const i = (o) => Sb(o, 0, 1, e, n);
99
99
  return (o) => o === 0 || o === 1 ? o : $f(i(o), t, r);
100
100
  }
101
- const Vf = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Uf = (e) => (t) => 1 - e(1 - t), zf = /* @__PURE__ */ _i(0.33, 1.53, 0.69, 0.99), rl = /* @__PURE__ */ Uf(zf), Hf = /* @__PURE__ */ Vf(rl), jf = (e) => (e *= 2) < 1 ? 0.5 * rl(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), il = (e) => 1 - Math.sin(Math.acos(e)), Wf = Uf(il), Gf = Vf(il), kb = /* @__PURE__ */ _i(0.42, 0, 1, 1), _b = /* @__PURE__ */ _i(0, 0, 0.58, 1), Kf = /* @__PURE__ */ _i(0.42, 0, 0.58, 1), Cb = (e) => Array.isArray(e) && typeof e[0] != "number", qf = (e) => Array.isArray(e) && typeof e[0] == "number", Sc = {
101
+ const Vf = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, zf = (e) => (t) => 1 - e(1 - t), Uf = /* @__PURE__ */ _i(0.33, 1.53, 0.69, 0.99), rl = /* @__PURE__ */ zf(Uf), Hf = /* @__PURE__ */ Vf(rl), jf = (e) => (e *= 2) < 1 ? 0.5 * rl(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), il = (e) => 1 - Math.sin(Math.acos(e)), Wf = zf(il), Gf = Vf(il), kb = /* @__PURE__ */ _i(0.42, 0, 1, 1), _b = /* @__PURE__ */ _i(0, 0, 0.58, 1), Kf = /* @__PURE__ */ _i(0.42, 0, 0.58, 1), Cb = (e) => Array.isArray(e) && typeof e[0] != "number", qf = (e) => Array.isArray(e) && typeof e[0] == "number", Sc = {
102
102
  linear: sn,
103
103
  easeIn: kb,
104
104
  easeInOut: Kf,
@@ -108,7 +108,7 @@ const Vf = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Uf
108
108
  circOut: Wf,
109
109
  backIn: rl,
110
110
  backInOut: Hf,
111
- backOut: zf,
111
+ backOut: Uf,
112
112
  anticipate: jf
113
113
  }, Tb = (e) => typeof e == "string", kc = (e) => {
114
114
  if (qf(e)) {
@@ -195,7 +195,7 @@ function Yf(e, t) {
195
195
  s[$i[_]].cancel(w);
196
196
  }, state: i, steps: s };
197
197
  }
198
- const { schedule: lt, cancel: zn, state: Ot, steps: cs } = /* @__PURE__ */ Yf(typeof requestAnimationFrame < "u" ? requestAnimationFrame : sn, !0);
198
+ const { schedule: lt, cancel: Un, state: Ot, steps: cs } = /* @__PURE__ */ Yf(typeof requestAnimationFrame < "u" ? requestAnimationFrame : sn, !0);
199
199
  let ao;
200
200
  function Mb() {
201
201
  ao = void 0;
@@ -275,7 +275,7 @@ function Vb(e) {
275
275
  var t, n;
276
276
  return isNaN(e) && typeof e == "string" && (((t = e.match(al)) == null ? void 0 : t.length) || 0) + (((n = e.match($b)) == null ? void 0 : n.length) || 0) > 0;
277
277
  }
278
- const Qf = "number", Jf = "color", Ub = "var", zb = "var(", Cc = "${}", Hb = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
278
+ const Qf = "number", Jf = "color", zb = "var", Ub = "var(", Cc = "${}", Hb = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
279
279
  function bi(e) {
280
280
  const t = e.toString(), n = [], r = {
281
281
  color: [],
@@ -283,7 +283,7 @@ function bi(e) {
283
283
  var: []
284
284
  }, i = [];
285
285
  let o = 0;
286
- const a = t.replace(Hb, (l) => (wt.test(l) ? (r.color.push(o), i.push(Jf), n.push(wt.parse(l))) : l.startsWith(zb) ? (r.var.push(o), i.push(Ub), n.push(l)) : (r.number.push(o), i.push(Qf), n.push(parseFloat(l))), ++o, Cc)).split(Cc);
286
+ const a = t.replace(Hb, (l) => (wt.test(l) ? (r.color.push(o), i.push(Jf), n.push(wt.parse(l))) : l.startsWith(Ub) ? (r.var.push(o), i.push(zb), n.push(l)) : (r.number.push(o), i.push(Qf), n.push(parseFloat(l))), ++o, Cc)).split(Cc);
287
287
  return { values: n, split: a, indexes: r, types: i };
288
288
  }
289
289
  function eh(e) {
@@ -398,7 +398,7 @@ const ey = (e) => {
398
398
  const t = ({ timestamp: n }) => e(n);
399
399
  return {
400
400
  start: (n = !0) => lt.update(t, n),
401
- stop: () => zn(t),
401
+ stop: () => Un(t),
402
402
  /**
403
403
  * If we're processing this frame we can use the
404
404
  * framelocked timestamp to keep things in sync.
@@ -906,7 +906,7 @@ const wy = (e, t) => {
906
906
  function Ey(e) {
907
907
  return parseFloat(e.trim());
908
908
  }
909
- const Ur = [
909
+ const zr = [
910
910
  "transformPerspective",
911
911
  "x",
912
912
  "y",
@@ -924,7 +924,7 @@ const Ur = [
924
924
  "skew",
925
925
  "skewX",
926
926
  "skewY"
927
- ], zr = new Set(Ur), Oc = (e) => e === Vr || e === Ee, Sy = /* @__PURE__ */ new Set(["x", "y", "z"]), ky = Ur.filter((e) => !Sy.has(e));
927
+ ], Ur = new Set(zr), Oc = (e) => e === Vr || e === Ee, Sy = /* @__PURE__ */ new Set(["x", "y", "z"]), ky = zr.filter((e) => !Sy.has(e));
928
928
  function _y(e) {
929
929
  const t = [];
930
930
  return ky.forEach((n) => {
@@ -1229,14 +1229,14 @@ const Vy = /* @__PURE__ */ new Set([
1229
1229
  "transform"
1230
1230
  // TODO: Could be re-enabled now we have support for linear() easing
1231
1231
  // "background-color"
1232
- ]), Uy = /* @__PURE__ */ el(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1233
- function zy(e) {
1232
+ ]), zy = /* @__PURE__ */ el(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1233
+ function Uy(e) {
1234
1234
  var u;
1235
1235
  const { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: o, type: s } = e;
1236
1236
  if (!(((u = t == null ? void 0 : t.owner) == null ? void 0 : u.current) instanceof HTMLElement))
1237
1237
  return !1;
1238
1238
  const { onUpdate: l, transformTemplate: c } = t.owner.getProps();
1239
- return Uy() && n && Vy.has(n) && (n !== "transform" || !c) && /**
1239
+ return zy() && n && Vy.has(n) && (n !== "transform" || !c) && /**
1240
1240
  * If we're outputting values to onUpdate then we can't use WAAPI as there's
1241
1241
  * no way to read the value from WAAPI every frame.
1242
1242
  */
@@ -1273,7 +1273,7 @@ class jy extends fl {
1273
1273
  finalKeyframe: n,
1274
1274
  ...r,
1275
1275
  keyframes: t
1276
- }, h = !c && zy(f) ? new Fy({
1276
+ }, h = !c && Uy(f) ? new Fy({
1277
1277
  ...f,
1278
1278
  element: f.motionValue.owner.current
1279
1279
  }) : new hl(f);
@@ -1362,7 +1362,7 @@ const ph = /* @__PURE__ */ new Set([
1362
1362
  "left",
1363
1363
  "right",
1364
1364
  "bottom",
1365
- ...Ur
1365
+ ...zr
1366
1366
  ]), qy = {
1367
1367
  test: (e) => e === "auto",
1368
1368
  parse: (e) => e
@@ -1816,7 +1816,7 @@ function u0(e) {
1816
1816
  return c0.has(e.tagName) || e.tabIndex !== -1;
1817
1817
  }
1818
1818
  const lo = /* @__PURE__ */ new WeakSet();
1819
- function Uc(e) {
1819
+ function zc(e) {
1820
1820
  return (t) => {
1821
1821
  t.key === "Enter" && e(t);
1822
1822
  };
@@ -1828,28 +1828,28 @@ const d0 = (e, t) => {
1828
1828
  const n = e.currentTarget;
1829
1829
  if (!n)
1830
1830
  return;
1831
- const r = Uc(() => {
1831
+ const r = zc(() => {
1832
1832
  if (lo.has(n))
1833
1833
  return;
1834
1834
  ps(n, "down");
1835
- const i = Uc(() => {
1835
+ const i = zc(() => {
1836
1836
  ps(n, "up");
1837
1837
  }), o = () => ps(n, "cancel");
1838
1838
  n.addEventListener("keyup", i, t), n.addEventListener("blur", o, t);
1839
1839
  });
1840
1840
  n.addEventListener("keydown", r, t), n.addEventListener("blur", () => n.removeEventListener("keydown", r), t);
1841
1841
  };
1842
- function zc(e) {
1842
+ function Uc(e) {
1843
1843
  return yl(e) && !wh();
1844
1844
  }
1845
1845
  function f0(e, t, n = {}) {
1846
1846
  const [r, i, o] = Eh(e, n), s = (a) => {
1847
1847
  const l = a.currentTarget;
1848
- if (!zc(a))
1848
+ if (!Uc(a))
1849
1849
  return;
1850
1850
  lo.add(l);
1851
1851
  const c = t(l, a), u = (h, g) => {
1852
- window.removeEventListener("pointerup", d), window.removeEventListener("pointercancel", f), lo.has(l) && lo.delete(l), zc(h) && typeof c == "function" && c(h, { success: g });
1852
+ window.removeEventListener("pointerup", d), window.removeEventListener("pointercancel", f), lo.has(l) && lo.delete(l), Uc(h) && typeof c == "function" && c(h, { success: g });
1853
1853
  }, d = (h) => {
1854
1854
  u(h, l === window || l === document || n.useGlobalTarget || Sh(l, h.target));
1855
1855
  }, f = (h) => {
@@ -1957,7 +1957,7 @@ function _h(e = !0) {
1957
1957
  const s = Xe(() => e && r && r(o), [o, r, e]);
1958
1958
  return !n && r ? [!1, s] : [!0];
1959
1959
  }
1960
- const Ui = (e) => e.key || "";
1960
+ const zi = (e) => e.key || "";
1961
1961
  function Hc(e) {
1962
1962
  const t = [];
1963
1963
  return Wg.forEach(e, (n) => {
@@ -1965,11 +1965,11 @@ function Hc(e) {
1965
1965
  }), t;
1966
1966
  }
1967
1967
  const Dr = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: o = "sync", propagate: s = !1, anchorX: a = "left", root: l }) => {
1968
- const [c, u] = _h(s), d = Qt(() => Hc(e), [e]), f = s && !c ? [] : d.map(Ui), h = on(!0), g = on(d), p = Za(() => /* @__PURE__ */ new Map()), [v, y] = Se(d), [E, w] = Se(d);
1968
+ const [c, u] = _h(s), d = Qt(() => Hc(e), [e]), f = s && !c ? [] : d.map(zi), h = on(!0), g = on(d), p = Za(() => /* @__PURE__ */ new Map()), [v, y] = Se(d), [E, w] = Se(d);
1969
1969
  Pf(() => {
1970
1970
  h.current = !1, g.current = d;
1971
1971
  for (let C = 0; C < E.length; C++) {
1972
- const R = Ui(E[C]);
1972
+ const R = zi(E[C]);
1973
1973
  f.includes(R) ? p.delete(R) : p.get(R) !== !0 && p.set(R, !1);
1974
1974
  }
1975
1975
  }, [E, f.length, f.join("-")]);
@@ -1977,7 +1977,7 @@ const Dr = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presen
1977
1977
  if (d !== v) {
1978
1978
  let C = [...d];
1979
1979
  for (let R = 0; R < E.length; R++) {
1980
- const A = E[R], O = Ui(A);
1980
+ const A = E[R], O = zi(A);
1981
1981
  f.includes(O) || (C.splice(R, 0, A), _.push(A));
1982
1982
  }
1983
1983
  return o === "wait" && _.length && (C = _), w(Hc(C)), y(d), null;
@@ -1985,7 +1985,7 @@ const Dr = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presen
1985
1985
  process.env.NODE_ENV !== "production" && o === "wait" && E.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
1986
1986
  const { forceRender: k } = Ct(Ya);
1987
1987
  return m(Tt, { children: E.map((C) => {
1988
- const R = Ui(C), A = s && !c ? !1 : d === E || f.includes(R), O = () => {
1988
+ const R = zi(C), A = s && !c ? !1 : d === E || f.includes(R), O = () => {
1989
1989
  if (p.has(R))
1990
1990
  p.set(R, !0);
1991
1991
  else
@@ -2123,18 +2123,18 @@ function C0(e) {
2123
2123
  xi[t] = e[t], ol(t) && (xi[t].isCSSVariable = !0);
2124
2124
  }
2125
2125
  function Ah(e, { layout: t, layoutId: n }) {
2126
- return zr.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!xi[e] || e === "opacity");
2126
+ return Ur.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!xi[e] || e === "opacity");
2127
2127
  }
2128
2128
  const T0 = {
2129
2129
  x: "translateX",
2130
2130
  y: "translateY",
2131
2131
  z: "translateZ",
2132
2132
  transformPerspective: "perspective"
2133
- }, N0 = Ur.length;
2133
+ }, N0 = zr.length;
2134
2134
  function A0(e, t, n) {
2135
2135
  let r = "", i = !0;
2136
2136
  for (let o = 0; o < N0; o++) {
2137
- const s = Ur[o], a = e[s];
2137
+ const s = zr[o], a = e[s];
2138
2138
  if (a === void 0)
2139
2139
  continue;
2140
2140
  let l = !0;
@@ -2155,7 +2155,7 @@ function El(e, t, n) {
2155
2155
  let s = !1, a = !1;
2156
2156
  for (const l in t) {
2157
2157
  const c = t[l];
2158
- if (zr.has(l)) {
2158
+ if (Ur.has(l)) {
2159
2159
  s = !0;
2160
2160
  continue;
2161
2161
  } else if (ol(l)) {
@@ -2367,7 +2367,7 @@ function Cl(e, t, n) {
2367
2367
  (Dt(r[s]) || t.style && Dt(t.style[s]) || Ah(s, e) || ((o = n == null ? void 0 : n.getValue(s)) == null ? void 0 : o.liveStyle) !== void 0) && (i[s] = r[s]);
2368
2368
  return i;
2369
2369
  }
2370
- const U0 = /* @__PURE__ */ Ph({
2370
+ const z0 = /* @__PURE__ */ Ph({
2371
2371
  scrapeMotionValuesFromProps: Cl,
2372
2372
  createRenderState: Sl
2373
2373
  });
@@ -2375,12 +2375,12 @@ function Dh(e, t, n) {
2375
2375
  const r = Cl(e, t, n);
2376
2376
  for (const i in e)
2377
2377
  if (Dt(e[i]) || Dt(t[i])) {
2378
- const o = Ur.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
2378
+ const o = zr.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
2379
2379
  r[o] = e[i];
2380
2380
  }
2381
2381
  return r;
2382
2382
  }
2383
- const z0 = /* @__PURE__ */ Ph({
2383
+ const U0 = /* @__PURE__ */ Ph({
2384
2384
  scrapeMotionValuesFromProps: Dh,
2385
2385
  createRenderState: Ih
2386
2386
  }), H0 = Symbol.for("motionComponentSymbol");
@@ -2455,7 +2455,7 @@ function Bh(e) {
2455
2455
  }
2456
2456
  function ms(e, { forwardMotionProps: t = !1 } = {}, n, r) {
2457
2457
  n && v0(n);
2458
- const i = kl(e) ? z0 : U0;
2458
+ const i = kl(e) ? U0 : z0;
2459
2459
  function o(a, l) {
2460
2460
  let c;
2461
2461
  const u = {
@@ -2553,7 +2553,7 @@ function qc(e, t, n, r, i) {
2553
2553
  function Sa(e, t = 0, n = 1, r, i) {
2554
2554
  e.min = qc(e.min, t, n, r, i), e.max = qc(e.max, t, n, r, i);
2555
2555
  }
2556
- function Uh(e, { x: t, y: n }) {
2556
+ function zh(e, { x: t, y: n }) {
2557
2557
  Sa(e.x, t.translate, t.scale, t.originPoint), Sa(e.y, n.translate, n.scale, n.originPoint);
2558
2558
  }
2559
2559
  const Yc = 0.999999999999, Zc = 1.0000000000001;
@@ -2569,7 +2569,7 @@ function ex(e, t, n, r = !1) {
2569
2569
  l && l.props.style && l.props.style.display === "contents" || (r && o.options.layoutScroll && o.scroll && o !== o.root && Nr(e, {
2570
2570
  x: -o.scroll.offset.x,
2571
2571
  y: -o.scroll.offset.y
2572
- }), s && (t.x *= s.x.scale, t.y *= s.y.scale, Uh(e, s)), r && er(o.latestValues) && Nr(e, o.latestValues));
2572
+ }), s && (t.x *= s.x.scale, t.y *= s.y.scale, zh(e, s)), r && er(o.latestValues) && Nr(e, o.latestValues));
2573
2573
  }
2574
2574
  t.x < Zc && t.x > Yc && (t.x = 1), t.y < Zc && t.y > Yc && (t.y = 1);
2575
2575
  }
@@ -2583,11 +2583,11 @@ function Xc(e, t, n, r, i = 0.5) {
2583
2583
  function Nr(e, t) {
2584
2584
  Xc(e.x, t.x, t.scaleX, t.scale, t.originX), Xc(e.y, t.y, t.scaleY, t.scale, t.originY);
2585
2585
  }
2586
- function zh(e, t) {
2586
+ function Uh(e, t) {
2587
2587
  return $h(J0(e.getBoundingClientRect(), t));
2588
2588
  }
2589
2589
  function tx(e, t, n) {
2590
- const r = zh(e, n), { scroll: i } = t;
2590
+ const r = Uh(e, n), { scroll: i } = t;
2591
2591
  return i && (Tr(r.x, i.offset.x), Tr(r.y, i.offset.y)), r;
2592
2592
  }
2593
2593
  const Qc = () => ({
@@ -2672,7 +2672,7 @@ class ox {
2672
2672
  }
2673
2673
  unmount() {
2674
2674
  var t;
2675
- this.projection && this.projection.unmount(), zn(this.notifyUpdate), zn(this.render), this.valueSubscriptions.forEach((n) => n()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), (t = this.parent) == null || t.removeChild(this);
2675
+ this.projection && this.projection.unmount(), Un(this.notifyUpdate), Un(this.render), this.valueSubscriptions.forEach((n) => n()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), (t = this.parent) == null || t.removeChild(this);
2676
2676
  for (const n in this.events)
2677
2677
  this.events[n].clear();
2678
2678
  for (const n in this.features) {
@@ -2689,7 +2689,7 @@ class ox {
2689
2689
  }
2690
2690
  bindToMotionValue(t, n) {
2691
2691
  this.valueSubscriptions.has(t) && this.valueSubscriptions.get(t)();
2692
- const r = zr.has(t);
2692
+ const r = Ur.has(t);
2693
2693
  r && this.onBindTransform && this.onBindTransform();
2694
2694
  const i = n.on("change", (s) => {
2695
2695
  this.latestValues[t] = s, this.props.onUpdate && lt.preRender(this.notifyUpdate), r && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
@@ -2884,7 +2884,7 @@ class ax extends jh {
2884
2884
  }
2885
2885
  readValueFromInstance(t, n) {
2886
2886
  var r;
2887
- if (zr.has(n))
2887
+ if (Ur.has(n))
2888
2888
  return (r = this.projection) != null && r.isProjecting ? ma(n) : wy(t, n);
2889
2889
  {
2890
2890
  const i = sx(t), o = (ol(n) ? i.getPropertyValue(n) : i[n]) || 0;
@@ -2892,7 +2892,7 @@ class ax extends jh {
2892
2892
  }
2893
2893
  }
2894
2894
  measureInstanceViewportBox(t, { transformPagePoint: n }) {
2895
- return zh(t, n);
2895
+ return Uh(t, n);
2896
2896
  }
2897
2897
  build(t, n, r) {
2898
2898
  El(t, n, r.transformTemplate);
@@ -2939,7 +2939,7 @@ class cx extends jh {
2939
2939
  return t[n];
2940
2940
  }
2941
2941
  readValueFromInstance(t, n) {
2942
- if (zr.has(n)) {
2942
+ if (Ur.has(n)) {
2943
2943
  const r = bh(n);
2944
2944
  return r && r.default || 0;
2945
2945
  }
@@ -3018,7 +3018,7 @@ const bx = {
3018
3018
  type: "keyframes",
3019
3019
  ease: [0.25, 0.1, 0.35, 1],
3020
3020
  duration: 0.3
3021
- }, wx = (e, { keyframes: t }) => t.length > 2 ? xx : zr.has(e) ? e.startsWith("scale") ? yx(t[1]) : bx : vx;
3021
+ }, wx = (e, { keyframes: t }) => t.length > 2 ? xx : Ur.has(e) ? e.startsWith("scale") ? yx(t[1]) : bx : vx;
3022
3022
  function Ex({ when: e, delay: t, delayChildren: n, staggerChildren: r, staggerDirection: i, repeat: o, repeatType: s, repeatDelay: a, from: l, elapsed: c, ...u }) {
3023
3023
  return !!Object.keys(u).length;
3024
3024
  }
@@ -3207,21 +3207,21 @@ function Mx(e) {
3207
3207
  V && (V.liveStyle = !1);
3208
3208
  };
3209
3209
  for (const X in F) {
3210
- const V = M[X], z = I[X];
3210
+ const V = M[X], U = I[X];
3211
3211
  if (h.hasOwnProperty(X))
3212
3212
  continue;
3213
3213
  let x = !1;
3214
- _a(V) && _a(z) ? x = !Zh(V, z) : x = V !== z, x ? V != null ? D(X) : f.add(X) : V !== void 0 && f.has(X) ? D(X) : E.protectedKeys[X] = !0;
3214
+ _a(V) && _a(U) ? x = !Zh(V, U) : x = V !== U, x ? V != null ? D(X) : f.add(X) : V !== void 0 && f.has(X) ? D(X) : E.protectedKeys[X] = !0;
3215
3215
  }
3216
3216
  E.prevProp = w, E.prevResolvedValues = M, E.isActive && (h = { ...h, ...M }), r && e.blockInitialAnimation && (A = !1);
3217
3217
  const G = C && R;
3218
3218
  A && (!G || O) && d.push(...b.map((X) => {
3219
3219
  const V = { type: y };
3220
3220
  if (typeof X == "string" && r && !G && e.manuallyAnimateOnMount && e.parent) {
3221
- const { parent: z } = e, x = Mr(z, X);
3222
- if (z.enteringChildren && x) {
3221
+ const { parent: U } = e, x = Mr(U, X);
3222
+ if (U.enteringChildren && x) {
3223
3223
  const { delayChildren: $ } = x.transition || {};
3224
- V.delay = Yh(z.enteringChildren, e, $);
3224
+ V.delay = Yh(U.enteringChildren, e, $);
3225
3225
  }
3226
3226
  }
3227
3227
  return {
@@ -3374,7 +3374,7 @@ const Qh = 1e-4, Fx = 1 - Qh, Bx = 1 + Qh, Jh = 0.01, $x = 0 - Jh, Vx = 0 + Jh;
3374
3374
  function Vt(e) {
3375
3375
  return e.max - e.min;
3376
3376
  }
3377
- function Ux(e, t, n) {
3377
+ function zx(e, t, n) {
3378
3378
  return Math.abs(e - t) <= n;
3379
3379
  }
3380
3380
  function nu(e, t, n, r = 0.5) {
@@ -3386,7 +3386,7 @@ function ci(e, t, n, r) {
3386
3386
  function ru(e, t, n) {
3387
3387
  e.min = n.min + t.min, e.max = e.min + Vt(t);
3388
3388
  }
3389
- function zx(e, t, n) {
3389
+ function Ux(e, t, n) {
3390
3390
  ru(e.x, t.x, n.x), ru(e.y, t.y, n.y);
3391
3391
  }
3392
3392
  function iu(e, t, n) {
@@ -3436,7 +3436,7 @@ class tp {
3436
3436
  this.handlers = t;
3437
3437
  }
3438
3438
  end() {
3439
- this.removeListeners && this.removeListeners(), zn(this.updatePoint);
3439
+ this.removeListeners && this.removeListeners(), Un(this.updatePoint);
3440
3440
  }
3441
3441
  }
3442
3442
  function bs(e, t) {
@@ -3610,7 +3610,7 @@ class Jx {
3610
3610
  }
3611
3611
  updateAxis(t, n, r) {
3612
3612
  const { drag: i } = this.getProps();
3613
- if (!r || !zi(t, i, this.currentDirection))
3613
+ if (!r || !Ui(t, i, this.currentDirection))
3614
3614
  return;
3615
3615
  const o = this.getAxisMotionValue(t);
3616
3616
  let s = this.originPoint[t] + r[t];
@@ -3642,7 +3642,7 @@ class Jx {
3642
3642
  }
3643
3643
  startAnimation(t) {
3644
3644
  const { drag: n, dragMomentum: r, dragElastic: i, dragTransition: o, dragSnapToOrigin: s, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, c = tn((u) => {
3645
- if (!zi(u, n, this.currentDirection))
3645
+ if (!Ui(u, n, this.currentDirection))
3646
3646
  return;
3647
3647
  let d = l && l[u] || {};
3648
3648
  s && (d = { min: 0, max: 0 });
@@ -3691,7 +3691,7 @@ class Jx {
3691
3691
  snapToCursor(t) {
3692
3692
  tn((n) => {
3693
3693
  const { drag: r } = this.getProps();
3694
- if (!zi(n, r, this.currentDirection))
3694
+ if (!Ui(n, r, this.currentDirection))
3695
3695
  return;
3696
3696
  const { projection: i } = this.visualElement, o = this.getAxisMotionValue(n);
3697
3697
  if (i && i.layout) {
@@ -3722,7 +3722,7 @@ class Jx {
3722
3722
  });
3723
3723
  const { transformTemplate: o } = this.visualElement.getProps();
3724
3724
  this.visualElement.current.style.transform = o ? o({}, "") : "none", r.root && r.root.updateScroll(), r.updateLayout(), this.resolveConstraints(), tn((s) => {
3725
- if (!zi(s, t, null))
3725
+ if (!Ui(s, t, null))
3726
3726
  return;
3727
3727
  const a = this.getAxisMotionValue(s), { min: l, max: c } = this.constraints[s];
3728
3728
  a.set(ut(l, c, i[s]));
@@ -3763,7 +3763,7 @@ class Jx {
3763
3763
  };
3764
3764
  }
3765
3765
  }
3766
- function zi(e, t, n) {
3766
+ function Ui(e, t, n) {
3767
3767
  return (t === !0 || t === e) && (n === null || n === e);
3768
3768
  }
3769
3769
  function ev(e, t = 10) {
@@ -3937,9 +3937,9 @@ class lv {
3937
3937
  function cv(e, t) {
3938
3938
  const n = jt.now(), r = ({ timestamp: i }) => {
3939
3939
  const o = i - n;
3940
- o >= t && (zn(r), e(o - t));
3940
+ o >= t && (Un(r), e(o - t));
3941
3941
  };
3942
- return lt.setup(r, !0), () => zn(r);
3942
+ return lt.setup(r, !0), () => Un(r);
3943
3943
  }
3944
3944
  const ip = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], uv = ip.length, hu = (e) => typeof e == "string" ? parseFloat(e) : e, pu = (e) => typeof e == "number" || Ee.test(e);
3945
3945
  function dv(e, t, n, r, i, o) {
@@ -4155,7 +4155,7 @@ function cp({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4155
4155
  unmount() {
4156
4156
  this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
4157
4157
  const s = this.getStack();
4158
- s && s.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), zn(this.updateProjection);
4158
+ s && s.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), Un(this.updateProjection);
4159
4159
  }
4160
4160
  // only on the root
4161
4161
  blockUpdate() {
@@ -4347,7 +4347,7 @@ function cp({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4347
4347
  const h = this.getClosestProjectingParent();
4348
4348
  h && h.layout && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget = mt(), this.relativeTargetOrigin = mt(), ui(this.relativeTargetOrigin, this.layout.layoutBox, h.layout.layoutBox), en(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4349
4349
  }
4350
- if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = mt(), this.targetWithTransforms = mt()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), zx(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : en(this.target, this.layout.layoutBox), Uh(this.target, this.targetDelta)) : en(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
4350
+ if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = mt(), this.targetWithTransforms = mt()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Ux(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : en(this.target, this.layout.layoutBox), zh(this.target, this.targetDelta)) : en(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
4351
4351
  this.attemptToResolveRelativeTarget = !1;
4352
4352
  const h = this.getClosestProjectingParent();
4353
4353
  h && !!h.resumingFrom == !!this.resumingFrom && !h.options.layoutScroll && h.target && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget = mt(), this.relativeTargetOrigin = mt(), ui(this.relativeTargetOrigin, this.target, h.target), en(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
@@ -4410,7 +4410,7 @@ function cp({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4410
4410
  }
4411
4411
  startAnimation(s) {
4412
4412
  var a, l, c;
4413
- this.notifyListeners("animationStart"), (a = this.currentAnimation) == null || a.stop(), (c = (l = this.resumingFrom) == null ? void 0 : l.currentAnimation) == null || c.stop(), this.pendingAnimation && (zn(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = lt.update(() => {
4413
+ this.notifyListeners("animationStart"), (a = this.currentAnimation) == null || a.stop(), (c = (l = this.resumingFrom) == null ? void 0 : l.currentAnimation) == null || c.stop(), this.pendingAnimation && (Un(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = lt.update(() => {
4414
4414
  uo.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = Pr(0)), this.currentAnimation = sv(this.motionValue, [0, 1e3], {
4415
4415
  ...s,
4416
4416
  velocity: 0,
@@ -4653,7 +4653,7 @@ function Dv(e) {
4653
4653
  Ou(e.x), Ou(e.y);
4654
4654
  }
4655
4655
  function up(e, t, n) {
4656
- return e === "position" || e === "preserve-aspect" && !Ux(ku(t), ku(n), 0.2);
4656
+ return e === "position" || e === "preserve-aspect" && !zx(ku(t), ku(n), 0.2);
4657
4657
  }
4658
4658
  function Lv(e) {
4659
4659
  var t;
@@ -4738,7 +4738,7 @@ function Du(e, t, n) {
4738
4738
  const i = "onTap" + (n === "End" ? "" : n), o = r[i];
4739
4739
  o && lt.postRender(() => o(t, Ti(t)));
4740
4740
  }
4741
- class Uv extends Gn {
4741
+ class zv extends Gn {
4742
4742
  mount() {
4743
4743
  const { current: t } = this.node;
4744
4744
  t && (this.unmount = f0(t, (n, r) => (Du(this.node, r, "Start"), (i, { success: o }) => Du(this.node, i, o ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
@@ -4746,11 +4746,11 @@ class Uv extends Gn {
4746
4746
  unmount() {
4747
4747
  }
4748
4748
  }
4749
- const Aa = /* @__PURE__ */ new WeakMap(), Ss = /* @__PURE__ */ new WeakMap(), zv = (e) => {
4749
+ const Aa = /* @__PURE__ */ new WeakMap(), Ss = /* @__PURE__ */ new WeakMap(), Uv = (e) => {
4750
4750
  const t = Aa.get(e.target);
4751
4751
  t && t(e);
4752
4752
  }, Hv = (e) => {
4753
- e.forEach(zv);
4753
+ e.forEach(Uv);
4754
4754
  };
4755
4755
  function jv({ root: e, ...t }) {
4756
4756
  const n = e || document;
@@ -4808,7 +4808,7 @@ const Yv = {
4808
4808
  Feature: Kv
4809
4809
  },
4810
4810
  tap: {
4811
- Feature: Uv
4811
+ Feature: zv
4812
4812
  },
4813
4813
  focus: {
4814
4814
  Feature: Vv
@@ -5274,7 +5274,7 @@ const _t = (e) => {
5274
5274
  "left-bottom"
5275
5275
  ], k = () => [..._(), fe, de], C = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", "contain", "none"], A = () => [fe, de, l], O = () => [dr, "full", "auto", ...A()], b = () => [Fn, "none", "subgrid", fe, de], M = () => ["auto", {
5276
5276
  span: ["full", Fn, fe, de]
5277
- }, Fn, fe, de], I = () => [Fn, "auto", fe, de], F = () => ["auto", "min", "max", "fr", fe, de], D = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], G = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], ie = () => ["auto", ...A()], X = () => [dr, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...A()], V = () => [e, fe, de], z = () => [..._(), $u, Bu, {
5277
+ }, Fn, fe, de], I = () => [Fn, "auto", fe, de], F = () => ["auto", "min", "max", "fr", fe, de], D = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], G = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], ie = () => ["auto", ...A()], X = () => [dr, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...A()], V = () => [e, fe, de], U = () => [..._(), $u, Bu, {
5278
5278
  position: [fe, de]
5279
5279
  }], x = () => ["no-repeat", {
5280
5280
  repeat: ["", "x", "y", "space", "round"]
@@ -6247,7 +6247,7 @@ const _t = (e) => {
6247
6247
  * @see https://tailwindcss.com/docs/background-position
6248
6248
  */
6249
6249
  "bg-position": [{
6250
- bg: z()
6250
+ bg: U()
6251
6251
  }],
6252
6252
  /**
6253
6253
  * Background Repeat
@@ -6924,7 +6924,7 @@ const _t = (e) => {
6924
6924
  * @see https://tailwindcss.com/docs/mask-position
6925
6925
  */
6926
6926
  "mask-position": [{
6927
- mask: z()
6927
+ mask: U()
6928
6928
  }],
6929
6929
  /**
6930
6930
  * Mask Repeat
@@ -7884,7 +7884,7 @@ const $w = ({
7884
7884
  ...r
7885
7885
  }
7886
7886
  ) });
7887
- }), Vu = Le.create(Vw), Uw = Le.create(Ep), zw = Le.create($w), _n = {
7887
+ }), Vu = Le.create(Vw), zw = Le.create(Ep), Uw = Le.create($w), _n = {
7888
7888
  initial: {
7889
7889
  opacity: 0,
7890
7890
  scale: 0
@@ -7996,7 +7996,7 @@ function jw({ chatOpen: e, client: t, theme: n = "vox" }) {
7996
7996
  children: /* @__PURE__ */ N("div", { className: "h-full flex items-center justify-center", children: [
7997
7997
  !w && // audio-only agent or default avatar when no video
7998
7998
  /* @__PURE__ */ m(
7999
- Uw,
7999
+ zw,
8000
8000
  {
8001
8001
  layoutId: "agent",
8002
8002
  ..._n,
@@ -8011,7 +8011,7 @@ function jw({ chatOpen: e, client: t, theme: n = "vox" }) {
8011
8011
  ),
8012
8012
  w && a && // avatar agent - only render if we have a valid video track
8013
8013
  /* @__PURE__ */ m(
8014
- zw,
8014
+ Uw,
8015
8015
  {
8016
8016
  layoutId: "avatar",
8017
8017
  ..._n,
@@ -8315,16 +8315,16 @@ const Ww = {
8315
8315
  nameOverlay: "bg-gradient-to-t from-[#161a25] via-[#161a25]/80 to-transparent text-white backdrop-blur-sm font-bold",
8316
8316
  mutedIndicator: "bg-red-600 text-white shadow-xl shadow-red-500/40 font-semibold"
8317
8317
  }
8318
- }, Uu = {
8318
+ }, zu = {
8319
8319
  dark: Ww,
8320
8320
  light: Gw,
8321
8321
  vox: Kw,
8322
8322
  midnight: qw
8323
8323
  };
8324
- function Ut(e) {
8325
- return Uu[e] || Uu.vox;
8324
+ function zt(e) {
8325
+ return zu[e] || zu.vox;
8326
8326
  }
8327
- function zu({ timeout: e }) {
8327
+ function Uu({ timeout: e }) {
8328
8328
  const [t, n] = Se(100), r = on(null), i = on(null);
8329
8329
  return Nt(() => {
8330
8330
  if (!e || e <= 0) return;
@@ -8374,7 +8374,7 @@ function wo({ interaction: e, theme: t, onDismiss: n, client: r, addLocalMessage
8374
8374
  className: "fixed inset-0 z-[9999] bg-black",
8375
8375
  children: [
8376
8376
  /* @__PURE__ */ N("div", { className: "flex flex-col", children: [
8377
- /* @__PURE__ */ m(zu, { timeout: e.timeout }),
8377
+ /* @__PURE__ */ m(Uu, { timeout: e.timeout }),
8378
8378
  /* @__PURE__ */ N("div", { className: "flex items-center justify-between p-4 bg-black/80 text-white border-b border-gray-700", children: [
8379
8379
  /* @__PURE__ */ m("h3", { className: "text-lg font-semibold", children: e.methodName.replace(/_/g, " ").replace(/\b\w/g, (l) => l.toUpperCase()) }),
8380
8380
  /* @__PURE__ */ m(
@@ -8401,7 +8401,7 @@ function wo({ interaction: e, theme: t, onDismiss: n, client: r, addLocalMessage
8401
8401
  exit: { opacity: 0, y: -20 },
8402
8402
  className: "w-fit rounded-lg ",
8403
8403
  children: /* @__PURE__ */ N("div", { children: [
8404
- /* @__PURE__ */ m(zu, { timeout: e.timeout }),
8404
+ /* @__PURE__ */ m(Uu, { timeout: e.timeout }),
8405
8405
  s()
8406
8406
  ] })
8407
8407
  }
@@ -8469,8 +8469,8 @@ function Bo({
8469
8469
  showEndCall: R = !0,
8470
8470
  onEndCall: A
8471
8471
  }) {
8472
- var z;
8473
- const O = Ut(t), [b, M] = Me.useState(""), I = Me.useRef(null), F = () => {
8472
+ var U;
8473
+ const O = zt(t), [b, M] = Me.useState(""), I = Me.useRef(null), F = () => {
8474
8474
  const x = b.trim();
8475
8475
  x && _ && (_(x), M(""));
8476
8476
  }, D = (x) => {
@@ -8549,7 +8549,7 @@ function Bo({
8549
8549
  disabled: n || !b.trim(),
8550
8550
  className: je(
8551
8551
  "p-2 rounded-full transition-all duration-200",
8552
- b.trim() ? ((z = O.video) == null ? void 0 : z.controlEnabled) || "bg-blue-500 text-white hover:bg-blue-600" : t === "light" ? "bg-gray-200 text-gray-400" : "bg-gray-700 text-gray-500",
8552
+ b.trim() ? ((U = O.video) == null ? void 0 : U.controlEnabled) || "bg-blue-500 text-white hover:bg-blue-600" : t === "light" ? "bg-gray-200 text-gray-400" : "bg-gray-700 text-gray-500",
8553
8553
  n && "opacity-50 cursor-not-allowed",
8554
8554
  b.trim() && !n && "hover:scale-105"
8555
8555
  ),
@@ -8730,7 +8730,7 @@ function Jw(e) {
8730
8730
  return parseFloat((e / Math.pow(t, r)).toFixed(2)) + " " + n[r];
8731
8731
  }
8732
8732
  function eE({ message: e, theme: t, isOwn: n }) {
8733
- const r = Ut(t), i = e.metadata, o = (i == null ? void 0 : i.fileName) || "Unknown file", s = (i == null ? void 0 : i.fileSize) || 0, a = (i == null ? void 0 : i.mimeType) || "application/octet-stream", l = i == null ? void 0 : i.downloading, c = i == null ? void 0 : i.uploading, u = (i == null ? void 0 : i.downloadProgress) || 0, d = (i == null ? void 0 : i.uploadProgress) || 0, f = i == null ? void 0 : i.downloadUrl, h = i == null ? void 0 : i.file, g = Qw(a), p = l || c, v = l ? u : d, y = l ? "Downloading..." : c ? "Uploading..." : "Complete", [E, w] = P.useState(null);
8733
+ const r = zt(t), i = e.metadata, o = (i == null ? void 0 : i.fileName) || "Unknown file", s = (i == null ? void 0 : i.fileSize) || 0, a = (i == null ? void 0 : i.mimeType) || "application/octet-stream", l = i == null ? void 0 : i.downloading, c = i == null ? void 0 : i.uploading, u = (i == null ? void 0 : i.downloadProgress) || 0, d = (i == null ? void 0 : i.uploadProgress) || 0, f = i == null ? void 0 : i.downloadUrl, h = i == null ? void 0 : i.file, g = Qw(a), p = l || c, v = l ? u : d, y = l ? "Downloading..." : c ? "Uploading..." : "Complete", [E, w] = P.useState(null);
8734
8734
  P.useEffect(() => {
8735
8735
  if (f)
8736
8736
  w(f);
@@ -10379,7 +10379,7 @@ function OE(e, t) {
10379
10379
  throw new TypeError(
10380
10380
  "Expected `jsxDEV` in options when `development: true`"
10381
10381
  );
10382
- r = UE(n, t.jsxDEV);
10382
+ r = zE(n, t.jsxDEV);
10383
10383
  } else {
10384
10384
  if (typeof t.jsx != "function")
10385
10385
  throw new TypeError("Expected `jsx` in production options");
@@ -10427,7 +10427,7 @@ function PE(e, t, n) {
10427
10427
  const r = e.schema;
10428
10428
  let i = r;
10429
10429
  t.tagName.toLowerCase() === "svg" && r.space === "html" && (i = Dl, e.schema = i), e.ancestors.push(t);
10430
- const o = Lp(e, t.tagName, !1), s = zE(e, t);
10430
+ const o = Lp(e, t.tagName, !1), s = UE(e, t);
10431
10431
  let a = $l(e, t);
10432
10432
  return RE.has(t.tagName) && (a = a.filter(function(l) {
10433
10433
  return typeof l == "string" ? !uE(l) : !0;
@@ -10479,7 +10479,7 @@ function VE(e, t, n) {
10479
10479
  return a ? c(o, s, a) : c(o, s);
10480
10480
  }
10481
10481
  }
10482
- function UE(e, t) {
10482
+ function zE(e, t) {
10483
10483
  return n;
10484
10484
  function n(r, i, o, s) {
10485
10485
  const a = Array.isArray(o.children), l = Ll(r);
@@ -10497,7 +10497,7 @@ function UE(e, t) {
10497
10497
  );
10498
10498
  }
10499
10499
  }
10500
- function zE(e, t) {
10500
+ function UE(e, t) {
10501
10501
  const n = {};
10502
10502
  let r, i;
10503
10503
  for (i in t.properties)
@@ -10705,7 +10705,7 @@ function ZE(e) {
10705
10705
  return !!(e && typeof e == "object");
10706
10706
  }
10707
10707
  const ed = document.createElement("i");
10708
- function Ul(e) {
10708
+ function zl(e) {
10709
10709
  const t = "&" + e + ";";
10710
10710
  ed.innerHTML = t;
10711
10711
  const n = ed.textContent;
@@ -10819,7 +10819,7 @@ function Gr(e) {
10819
10819
  }
10820
10820
  return t.join("") + e.slice(r);
10821
10821
  }
10822
- function Ue(e, t, n, r) {
10822
+ function ze(e, t, n, r) {
10823
10823
  const i = r ? r - 1 : Number.POSITIVE_INFINITY;
10824
10824
  let o = 0;
10825
10825
  return s;
@@ -10842,7 +10842,7 @@ function rS(e) {
10842
10842
  e.consume(a);
10843
10843
  return;
10844
10844
  }
10845
- return e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), Ue(e, t, "linePrefix");
10845
+ return e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), ze(e, t, "linePrefix");
10846
10846
  }
10847
10847
  function i(a) {
10848
10848
  return e.enter("paragraph"), o(a);
@@ -10980,7 +10980,7 @@ function oS(e) {
10980
10980
  }
10981
10981
  }
10982
10982
  function sS(e, t, n) {
10983
- return Ue(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
10983
+ return ze(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
10984
10984
  }
10985
10985
  function Fr(e) {
10986
10986
  if (e === null || tt(e) || ar(e))
@@ -10988,7 +10988,7 @@ function Fr(e) {
10988
10988
  if (Vo(e))
10989
10989
  return 2;
10990
10990
  }
10991
- function Uo(e, t, n) {
10991
+ function zo(e, t, n) {
10992
10992
  const r = [];
10993
10993
  let i = -1;
10994
10994
  for (; ++i < e.length; ) {
@@ -11049,7 +11049,7 @@ function aS(e, t) {
11049
11049
  ...s.start
11050
11050
  }, e[n][1].start = {
11051
11051
  ...a.end
11052
- }, c = [], e[r][1].end.offset - e[r][1].start.offset && (c = nn(c, [["enter", e[r][1], t], ["exit", e[r][1], t]])), c = nn(c, [["enter", i, t], ["enter", s, t], ["exit", s, t], ["enter", o, t]]), c = nn(c, Uo(t.parser.constructs.insideSpan.null, e.slice(r + 1, n), t)), c = nn(c, [["exit", o, t], ["enter", a, t], ["exit", a, t], ["exit", i, t]]), e[n][1].end.offset - e[n][1].start.offset ? (u = 2, c = nn(c, [["enter", e[n][1], t], ["exit", e[n][1], t]])) : u = 0, Zt(e, r - 1, n - r + 3, c), n = r + c.length - u - 2;
11052
+ }, c = [], e[r][1].end.offset - e[r][1].start.offset && (c = nn(c, [["enter", e[r][1], t], ["exit", e[r][1], t]])), c = nn(c, [["enter", i, t], ["enter", s, t], ["exit", s, t], ["enter", o, t]]), c = nn(c, zo(t.parser.constructs.insideSpan.null, e.slice(r + 1, n), t)), c = nn(c, [["exit", o, t], ["enter", a, t], ["exit", a, t], ["exit", i, t]]), e[n][1].end.offset - e[n][1].start.offset ? (u = 2, c = nn(c, [["enter", e[n][1], t], ["exit", e[n][1], t]])) : u = 0, Zt(e, r - 1, n - r + 3, c), n = r + c.length - u - 2;
11053
11053
  break;
11054
11054
  }
11055
11055
  }
@@ -11120,7 +11120,7 @@ const Ai = {
11120
11120
  function dS(e, t, n) {
11121
11121
  return r;
11122
11122
  function r(o) {
11123
- return Fe(o) ? Ue(e, i, "linePrefix")(o) : i(o);
11123
+ return Fe(o) ? ze(e, i, "linePrefix")(o) : i(o);
11124
11124
  }
11125
11125
  function i(o) {
11126
11126
  return o === null || ye(o) ? t(o) : n(o);
@@ -11154,7 +11154,7 @@ function hS(e, t, n) {
11154
11154
  const r = this;
11155
11155
  return i;
11156
11156
  function i(s) {
11157
- return Fe(s) ? Ue(e, o, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(s) : o(s);
11157
+ return Fe(s) ? ze(e, o, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(s) : o(s);
11158
11158
  }
11159
11159
  function o(s) {
11160
11160
  return e.attempt(Vp, t, n)(s);
@@ -11163,7 +11163,7 @@ function hS(e, t, n) {
11163
11163
  function pS(e) {
11164
11164
  e.exit("blockQuote");
11165
11165
  }
11166
- const Up = {
11166
+ const zp = {
11167
11167
  name: "characterEscape",
11168
11168
  tokenize: mS
11169
11169
  };
@@ -11176,7 +11176,7 @@ function mS(e, t, n) {
11176
11176
  return tS(o) ? (e.enter("characterEscapeValue"), e.consume(o), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : n(o);
11177
11177
  }
11178
11178
  }
11179
- const zp = {
11179
+ const Up = {
11180
11180
  name: "characterReference",
11181
11181
  tokenize: gS
11182
11182
  };
@@ -11196,7 +11196,7 @@ function gS(e, t, n) {
11196
11196
  function u(d) {
11197
11197
  if (d === 59 && i) {
11198
11198
  const f = e.exit("characterReferenceValue");
11199
- return s === Lt && !Ul(r.sliceSerialize(f)) ? n(d) : (e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
11199
+ return s === Lt && !zl(r.sliceSerialize(f)) ? n(d) : (e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
11200
11200
  }
11201
11201
  return s(d) && i++ < o ? (e.consume(d), u) : n(d);
11202
11202
  }
@@ -11224,7 +11224,7 @@ function bS(e, t, n) {
11224
11224
  return o = R && R[1].type === "linePrefix" ? R[2].sliceSerialize(R[1], !0).length : 0, a = C, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), u(C);
11225
11225
  }
11226
11226
  function u(C) {
11227
- return C === a ? (s++, e.consume(C), u) : s < 3 ? n(C) : (e.exit("codeFencedFenceSequence"), Fe(C) ? Ue(e, d, "whitespace")(C) : d(C));
11227
+ return C === a ? (s++, e.consume(C), u) : s < 3 ? n(C) : (e.exit("codeFencedFenceSequence"), Fe(C) ? ze(e, d, "whitespace")(C) : d(C));
11228
11228
  }
11229
11229
  function d(C) {
11230
11230
  return C === null || ye(C) ? (e.exit("codeFencedFence"), r.interrupt ? t(C) : e.check(id, p, _)(C)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
@@ -11232,7 +11232,7 @@ function bS(e, t, n) {
11232
11232
  }), f(C));
11233
11233
  }
11234
11234
  function f(C) {
11235
- return C === null || ye(C) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(C)) : Fe(C) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Ue(e, h, "whitespace")(C)) : C === 96 && C === a ? n(C) : (e.consume(C), f);
11235
+ return C === null || ye(C) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(C)) : Fe(C) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), ze(e, h, "whitespace")(C)) : C === 96 && C === a ? n(C) : (e.consume(C), f);
11236
11236
  }
11237
11237
  function h(C) {
11238
11238
  return C === null || ye(C) ? d(C) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
@@ -11249,7 +11249,7 @@ function bS(e, t, n) {
11249
11249
  return e.enter("lineEnding"), e.consume(C), e.exit("lineEnding"), y;
11250
11250
  }
11251
11251
  function y(C) {
11252
- return o > 0 && Fe(C) ? Ue(e, E, "linePrefix", o + 1)(C) : E(C);
11252
+ return o > 0 && Fe(C) ? ze(e, E, "linePrefix", o + 1)(C) : E(C);
11253
11253
  }
11254
11254
  function E(C) {
11255
11255
  return C === null || ye(C) ? e.check(id, p, _)(C) : (e.enter("codeFlowValue"), w(C));
@@ -11267,13 +11267,13 @@ function bS(e, t, n) {
11267
11267
  return C.enter("lineEnding"), C.consume(G), C.exit("lineEnding"), M;
11268
11268
  }
11269
11269
  function M(G) {
11270
- return C.enter("codeFencedFence"), Fe(G) ? Ue(C, I, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(G) : I(G);
11270
+ return C.enter("codeFencedFence"), Fe(G) ? ze(C, I, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(G) : I(G);
11271
11271
  }
11272
11272
  function I(G) {
11273
11273
  return G === a ? (C.enter("codeFencedFenceSequence"), F(G)) : A(G);
11274
11274
  }
11275
11275
  function F(G) {
11276
- return G === a ? (O++, C.consume(G), F) : O >= s ? (C.exit("codeFencedFenceSequence"), Fe(G) ? Ue(C, D, "whitespace")(G) : D(G)) : A(G);
11276
+ return G === a ? (O++, C.consume(G), F) : O >= s ? (C.exit("codeFencedFenceSequence"), Fe(G) ? ze(C, D, "whitespace")(G) : D(G)) : A(G);
11277
11277
  }
11278
11278
  function D(G) {
11279
11279
  return G === null || ye(G) ? (C.exit("codeFencedFence"), R(G)) : A(G);
@@ -11301,7 +11301,7 @@ function vS(e, t, n) {
11301
11301
  const r = this;
11302
11302
  return i;
11303
11303
  function i(c) {
11304
- return e.enter("codeIndented"), Ue(e, o, "linePrefix", 5)(c);
11304
+ return e.enter("codeIndented"), ze(e, o, "linePrefix", 5)(c);
11305
11305
  }
11306
11306
  function o(c) {
11307
11307
  const u = r.events[r.events.length - 1];
@@ -11321,7 +11321,7 @@ function wS(e, t, n) {
11321
11321
  const r = this;
11322
11322
  return i;
11323
11323
  function i(s) {
11324
- return r.parser.lazy[r.now().line] ? n(s) : ye(s) ? (e.enter("lineEnding"), e.consume(s), e.exit("lineEnding"), i) : Ue(e, o, "linePrefix", 5)(s);
11324
+ return r.parser.lazy[r.now().line] ? n(s) : ye(s) ? (e.enter("lineEnding"), e.consume(s), e.exit("lineEnding"), i) : ze(e, o, "linePrefix", 5)(s);
11325
11325
  }
11326
11326
  function o(s) {
11327
11327
  const a = r.events[r.events.length - 1];
@@ -11625,7 +11625,7 @@ function IS(e, t, n) {
11625
11625
  const r = this;
11626
11626
  return i;
11627
11627
  function i(s) {
11628
- return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(s), e.exit("lineEnding"), Ue(e, o, "linePrefix");
11628
+ return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(s), e.exit("lineEnding"), ze(e, o, "linePrefix");
11629
11629
  }
11630
11630
  function o(s) {
11631
11631
  if (s === null || ye(s))
@@ -11695,7 +11695,7 @@ function Gp(e, t, n, r, i, o) {
11695
11695
  return f === s ? (e.enter(i), e.consume(f), e.exit(i), e.exit(r), t) : (e.enter(o), c(f));
11696
11696
  }
11697
11697
  function c(f) {
11698
- return f === s ? (e.exit(o), l(s)) : f === null ? n(f) : ye(f) ? (e.enter("lineEnding"), e.consume(f), e.exit("lineEnding"), Ue(e, c, "linePrefix")) : (e.enter("chunkString", {
11698
+ return f === s ? (e.exit(o), l(s)) : f === null ? n(f) : ye(f) ? (e.enter("lineEnding"), e.consume(f), e.exit("lineEnding"), ze(e, c, "linePrefix")) : (e.enter("chunkString", {
11699
11699
  contentType: "string"
11700
11700
  }), u(f));
11701
11701
  }
@@ -11710,7 +11710,7 @@ function fi(e, t) {
11710
11710
  let n;
11711
11711
  return r;
11712
11712
  function r(i) {
11713
- return ye(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : Fe(i) ? Ue(e, r, n ? "linePrefix" : "lineSuffix")(i) : t(i);
11713
+ return ye(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : Fe(i) ? ze(e, r, n ? "linePrefix" : "lineSuffix")(i) : t(i);
11714
11714
  }
11715
11715
  }
11716
11716
  const OS = {
@@ -11762,7 +11762,7 @@ function DS(e, t, n) {
11762
11762
  return e.attempt(PS, d, d)(h);
11763
11763
  }
11764
11764
  function d(h) {
11765
- return Fe(h) ? Ue(e, f, "whitespace")(h) : f(h);
11765
+ return Fe(h) ? ze(e, f, "whitespace")(h) : f(h);
11766
11766
  }
11767
11767
  function f(h) {
11768
11768
  return h === null || ye(h) ? (e.exit("definition"), r.parser.defined.push(i), t(h)) : n(h);
@@ -11777,7 +11777,7 @@ function LS(e, t, n) {
11777
11777
  return Gp(e, o, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
11778
11778
  }
11779
11779
  function o(a) {
11780
- return Fe(a) ? Ue(e, s, "whitespace")(a) : s(a);
11780
+ return Fe(a) ? ze(e, s, "whitespace")(a) : s(a);
11781
11781
  }
11782
11782
  function s(a) {
11783
11783
  return a === null || ye(a) ? t(a) : n(a);
@@ -11799,7 +11799,7 @@ function BS(e, t, n) {
11799
11799
  const $S = {
11800
11800
  name: "headingAtx",
11801
11801
  resolve: VS,
11802
- tokenize: US
11802
+ tokenize: zS
11803
11803
  };
11804
11804
  function VS(e, t) {
11805
11805
  let n = e.length - 2, r = 3, i, o;
@@ -11814,7 +11814,7 @@ function VS(e, t) {
11814
11814
  contentType: "text"
11815
11815
  }, Zt(e, r, n - r + 1, [["enter", i, t], ["enter", o, t], ["exit", o, t], ["exit", i, t]])), e;
11816
11816
  }
11817
- function US(e, t, n) {
11817
+ function zS(e, t, n) {
11818
11818
  let r = 0;
11819
11819
  return i;
11820
11820
  function i(u) {
@@ -11827,7 +11827,7 @@ function US(e, t, n) {
11827
11827
  return u === 35 && r++ < 6 ? (e.consume(u), s) : u === null || tt(u) ? (e.exit("atxHeadingSequence"), a(u)) : n(u);
11828
11828
  }
11829
11829
  function a(u) {
11830
- return u === 35 ? (e.enter("atxHeadingSequence"), l(u)) : u === null || ye(u) ? (e.exit("atxHeading"), t(u)) : Fe(u) ? Ue(e, a, "whitespace")(u) : (e.enter("atxHeadingText"), c(u));
11830
+ return u === 35 ? (e.enter("atxHeadingSequence"), l(u)) : u === null || ye(u) ? (e.exit("atxHeading"), t(u)) : Fe(u) ? ze(e, a, "whitespace")(u) : (e.enter("atxHeadingText"), c(u));
11831
11831
  }
11832
11832
  function l(u) {
11833
11833
  return u === 35 ? (e.consume(u), l) : (e.exit("atxHeadingSequence"), a(u));
@@ -11836,7 +11836,7 @@ function US(e, t, n) {
11836
11836
  return u === null || u === 35 || tt(u) ? (e.exit("atxHeadingText"), a(u)) : (e.consume(u), c);
11837
11837
  }
11838
11838
  }
11839
- const zS = [
11839
+ const US = [
11840
11840
  "address",
11841
11841
  "article",
11842
11842
  "aside",
@@ -11946,7 +11946,7 @@ function KS(e, t, n) {
11946
11946
  function v(S) {
11947
11947
  if (S === null || S === 47 || S === 62 || tt(S)) {
11948
11948
  const Y = S === 47, te = s.toLowerCase();
11949
- return !Y && !o && sd.includes(te) ? (i = 1, r.interrupt ? t(S) : I(S)) : zS.includes(s.toLowerCase()) ? (i = 6, Y ? (e.consume(S), y) : r.interrupt ? t(S) : I(S)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(S) : o ? E(S) : w(S));
11949
+ return !Y && !o && sd.includes(te) ? (i = 1, r.interrupt ? t(S) : I(S)) : US.includes(s.toLowerCase()) ? (i = 6, Y ? (e.consume(S), y) : r.interrupt ? t(S) : I(S)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(S) : o ? E(S) : w(S));
11950
11950
  }
11951
11951
  return S === 45 || Lt(S) ? (e.consume(S), s += String.fromCharCode(S), v) : n(S);
11952
11952
  }
@@ -11984,7 +11984,7 @@ function KS(e, t, n) {
11984
11984
  return S === null || ye(S) ? I(S) : Fe(S) ? (e.consume(S), M) : n(S);
11985
11985
  }
11986
11986
  function I(S) {
11987
- return S === 45 && i === 2 ? (e.consume(S), ie) : S === 60 && i === 1 ? (e.consume(S), X) : S === 62 && i === 4 ? (e.consume(S), $) : S === 63 && i === 3 ? (e.consume(S), x) : S === 93 && i === 5 ? (e.consume(S), z) : ye(S) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(jS, K, F)(S)) : S === null || ye(S) ? (e.exit("htmlFlowData"), F(S)) : (e.consume(S), I);
11987
+ return S === 45 && i === 2 ? (e.consume(S), ie) : S === 60 && i === 1 ? (e.consume(S), X) : S === 62 && i === 4 ? (e.consume(S), $) : S === 63 && i === 3 ? (e.consume(S), x) : S === 93 && i === 5 ? (e.consume(S), U) : ye(S) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(jS, K, F)(S)) : S === null || ye(S) ? (e.exit("htmlFlowData"), F(S)) : (e.consume(S), I);
11988
11988
  }
11989
11989
  function F(S) {
11990
11990
  return e.check(WS, D, K)(S);
@@ -12008,7 +12008,7 @@ function KS(e, t, n) {
12008
12008
  }
12009
12009
  return $t(S) && s.length < 8 ? (e.consume(S), s += String.fromCharCode(S), V) : I(S);
12010
12010
  }
12011
- function z(S) {
12011
+ function U(S) {
12012
12012
  return S === 93 ? (e.consume(S), x) : I(S);
12013
12013
  }
12014
12014
  function x(S) {
@@ -12128,13 +12128,13 @@ function XS(e, t, n) {
12128
12128
  return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(x), e.exit("lineEnding"), V;
12129
12129
  }
12130
12130
  function V(x) {
12131
- return Fe(x) ? Ue(e, z, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(x) : z(x);
12131
+ return Fe(x) ? ze(e, U, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(x) : U(x);
12132
12132
  }
12133
- function z(x) {
12133
+ function U(x) {
12134
12134
  return e.enter("htmlTextData"), s(x);
12135
12135
  }
12136
12136
  }
12137
- const zl = {
12137
+ const Ul = {
12138
12138
  name: "labelEnd",
12139
12139
  resolveAll: tk,
12140
12140
  resolveTo: nk,
@@ -12196,7 +12196,7 @@ function nk(e, t) {
12196
12196
  ...e[s - 2][1].start
12197
12197
  }
12198
12198
  };
12199
- return a = [["enter", l, t], ["enter", c, t]], a = nn(a, e.slice(o + 1, o + r + 3)), a = nn(a, [["enter", u, t]]), a = nn(a, Uo(t.parser.constructs.insideSpan.null, e.slice(o + r + 4, s - 3), t)), a = nn(a, [["exit", u, t], e[s - 2], e[s - 1], ["exit", c, t]]), a = nn(a, e.slice(s + 1)), a = nn(a, [["exit", l, t]]), Zt(e, o, e.length, a), e;
12199
+ return a = [["enter", l, t], ["enter", c, t]], a = nn(a, e.slice(o + 1, o + r + 3)), a = nn(a, [["enter", u, t]]), a = nn(a, zo(t.parser.constructs.insideSpan.null, e.slice(o + r + 4, s - 3), t)), a = nn(a, [["exit", u, t], e[s - 2], e[s - 1], ["exit", c, t]]), a = nn(a, e.slice(s + 1)), a = nn(a, [["exit", l, t]]), Zt(e, o, e.length, a), e;
12200
12200
  }
12201
12201
  function rk(e, t, n) {
12202
12202
  const r = this;
@@ -12277,7 +12277,7 @@ function sk(e, t, n) {
12277
12277
  }
12278
12278
  const ak = {
12279
12279
  name: "labelStartImage",
12280
- resolveAll: zl.resolveAll,
12280
+ resolveAll: Ul.resolveAll,
12281
12281
  tokenize: lk
12282
12282
  };
12283
12283
  function lk(e, t, n) {
@@ -12295,7 +12295,7 @@ function lk(e, t, n) {
12295
12295
  }
12296
12296
  const ck = {
12297
12297
  name: "labelStartLink",
12298
- resolveAll: zl.resolveAll,
12298
+ resolveAll: Ul.resolveAll,
12299
12299
  tokenize: uk
12300
12300
  };
12301
12301
  function uk(e, t, n) {
@@ -12315,7 +12315,7 @@ const Ms = {
12315
12315
  function dk(e, t) {
12316
12316
  return n;
12317
12317
  function n(r) {
12318
- return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), Ue(e, t, "linePrefix");
12318
+ return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), ze(e, t, "linePrefix");
12319
12319
  }
12320
12320
  }
12321
12321
  const ho = {
@@ -12335,7 +12335,7 @@ function fk(e, t, n) {
12335
12335
  return c === i ? (e.enter("thematicBreakSequence"), l(c)) : r >= 3 && (c === null || ye(c)) ? (e.exit("thematicBreak"), t(c)) : n(c);
12336
12336
  }
12337
12337
  function l(c) {
12338
- return c === i ? (e.consume(c), r++, l) : (e.exit("thematicBreakSequence"), Fe(c) ? Ue(e, a, "whitespace")(c) : a(c));
12338
+ return c === i ? (e.consume(c), r++, l) : (e.exit("thematicBreakSequence"), Fe(c) ? ze(e, a, "whitespace")(c) : a(c));
12339
12339
  }
12340
12340
  }
12341
12341
  const Ht = {
@@ -12393,18 +12393,18 @@ function gk(e, t, n) {
12393
12393
  const r = this;
12394
12394
  return r.containerState._closeFlow = void 0, e.check(Ai, i, o);
12395
12395
  function i(a) {
12396
- return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, Ue(e, t, "listItemIndent", r.containerState.size + 1)(a);
12396
+ return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, ze(e, t, "listItemIndent", r.containerState.size + 1)(a);
12397
12397
  }
12398
12398
  function o(a) {
12399
12399
  return r.containerState.furtherBlankLines || !Fe(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, s(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(pk, t, s)(a));
12400
12400
  }
12401
12401
  function s(a) {
12402
- return r.containerState._closeFlow = !0, r.interrupt = void 0, Ue(e, e.attempt(Ht, t, n), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
12402
+ return r.containerState._closeFlow = !0, r.interrupt = void 0, ze(e, e.attempt(Ht, t, n), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
12403
12403
  }
12404
12404
  }
12405
12405
  function bk(e, t, n) {
12406
12406
  const r = this;
12407
- return Ue(e, i, "listItemIndent", r.containerState.size + 1);
12407
+ return ze(e, i, "listItemIndent", r.containerState.size + 1);
12408
12408
  function i(o) {
12409
12409
  const s = r.events[r.events.length - 1];
12410
12410
  return s && s[1].type === "listItemIndent" && s[2].sliceSerialize(s[1], !0).length === r.containerState.size ? t(o) : n(o);
@@ -12415,7 +12415,7 @@ function yk(e) {
12415
12415
  }
12416
12416
  function xk(e, t, n) {
12417
12417
  const r = this;
12418
- return Ue(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
12418
+ return ze(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
12419
12419
  function i(o) {
12420
12420
  const s = r.events[r.events.length - 1];
12421
12421
  return !Fe(o) && s && s[1].type === "listItemPrefixWhitespace" ? t(o) : n(o);
@@ -12467,7 +12467,7 @@ function wk(e, t, n) {
12467
12467
  return e.enter("setextHeadingLineSequence"), a(c);
12468
12468
  }
12469
12469
  function a(c) {
12470
- return c === i ? (e.consume(c), a) : (e.exit("setextHeadingLineSequence"), Fe(c) ? Ue(e, l, "lineSuffix")(c) : l(c));
12470
+ return c === i ? (e.consume(c), a) : (e.exit("setextHeadingLineSequence"), Fe(c) ? ze(e, l, "lineSuffix")(c) : l(c));
12471
12471
  }
12472
12472
  function l(c) {
12473
12473
  return c === null || ye(c) ? (e.exit("setextHeadingLine"), t(c)) : n(c);
@@ -12482,7 +12482,7 @@ function Sk(e) {
12482
12482
  Ai,
12483
12483
  r,
12484
12484
  // Try to parse initial flow (essentially, only code).
12485
- e.attempt(this.parser.constructs.flowInitial, i, Ue(e, e.attempt(this.parser.constructs.flow, i, e.attempt(NS, i)), "linePrefix"))
12485
+ e.attempt(this.parser.constructs.flowInitial, i, ze(e, e.attempt(this.parser.constructs.flow, i, e.attempt(NS, i)), "linePrefix"))
12486
12486
  );
12487
12487
  return n;
12488
12488
  function r(o) {
@@ -12621,19 +12621,19 @@ const Nk = {
12621
12621
  96: od,
12622
12622
  126: od
12623
12623
  }, Ik = {
12624
- 38: zp,
12625
- 92: Up
12624
+ 38: Up,
12625
+ 92: zp
12626
12626
  }, Ok = {
12627
12627
  [-5]: Ms,
12628
12628
  [-4]: Ms,
12629
12629
  [-3]: Ms,
12630
12630
  33: ak,
12631
- 38: zp,
12631
+ 38: Up,
12632
12632
  42: Ba,
12633
12633
  60: [cS, ZS],
12634
12634
  91: ck,
12635
- 92: [FS, Up],
12636
- 93: zl,
12635
+ 92: [FS, zp],
12636
+ 93: Ul,
12637
12637
  95: Ba,
12638
12638
  96: ES
12639
12639
  }, Pk = {
@@ -12688,7 +12688,7 @@ function Bk(e, t, n) {
12688
12688
  let u = t.tokenize.call(c, l);
12689
12689
  return t.resolveAll && o.push(t), c;
12690
12690
  function d(M) {
12691
- return s = nn(s, M), v(), s[s.length - 1] !== null ? [] : (A(t, 0), c.events = Uo(o, c.events, c), c.events);
12691
+ return s = nn(s, M), v(), s[s.length - 1] !== null ? [] : (A(t, 0), c.events = zo(o, c.events, c), c.events);
12692
12692
  }
12693
12693
  function f(M, I) {
12694
12694
  return Vk(h(M), I);
@@ -12752,7 +12752,7 @@ function Bk(e, t, n) {
12752
12752
  function R(M, I) {
12753
12753
  return F;
12754
12754
  function F(D, G, ie) {
12755
- let X, V, z, x;
12755
+ let X, V, U, x;
12756
12756
  return Array.isArray(D) ? (
12757
12757
  /* c8 ignore next 1 */
12758
12758
  K(D)
@@ -12781,7 +12781,7 @@ function Bk(e, t, n) {
12781
12781
  function S(B) {
12782
12782
  return q;
12783
12783
  function q(W) {
12784
- return x = O(), z = B, B.partial || (c.currentConstruct = B), B.name && c.parser.constructs.disable.null.includes(B.name) ? te() : B.tokenize.call(
12784
+ return x = O(), U = B, B.partial || (c.currentConstruct = B), B.name && c.parser.constructs.disable.null.includes(B.name) ? te() : B.tokenize.call(
12785
12785
  // If we do have fields, create an object w/ `context` as its
12786
12786
  // prototype.
12787
12787
  // This allows a “live binding”, which is needed for `interrupt`.
@@ -12793,7 +12793,7 @@ function Bk(e, t, n) {
12793
12793
  }
12794
12794
  }
12795
12795
  function Y(B) {
12796
- return M(z, x), G;
12796
+ return M(U, x), G;
12797
12797
  }
12798
12798
  function te(B) {
12799
12799
  return x.restore(), ++V < X.length ? S(X[V]) : ie;
@@ -12871,7 +12871,7 @@ function Vk(e, t) {
12871
12871
  }
12872
12872
  return r.join("");
12873
12873
  }
12874
- function Uk(e) {
12874
+ function zk(e) {
12875
12875
  const r = {
12876
12876
  constructs: (
12877
12877
  /** @type {FullNormalizedExtension} */
@@ -12893,7 +12893,7 @@ function Uk(e) {
12893
12893
  }
12894
12894
  }
12895
12895
  }
12896
- function zk(e) {
12896
+ function Uk(e) {
12897
12897
  for (; !Hp(e); )
12898
12898
  ;
12899
12899
  return e;
@@ -12945,11 +12945,11 @@ function Gk(e, t, n) {
12945
12945
  const i = n.charCodeAt(1), o = i === 120 || i === 88;
12946
12946
  return $p(n.slice(o ? 2 : 1), o ? 16 : 10);
12947
12947
  }
12948
- return Ul(n) || e;
12948
+ return zl(n) || e;
12949
12949
  }
12950
12950
  const Yp = {}.hasOwnProperty;
12951
12951
  function Kk(e, t, n) {
12952
- return typeof t != "string" && (n = t, t = void 0), qk(n)(zk(Uk(n).document().write(Hk()(e, t, !0))));
12952
+ return typeof t != "string" && (n = t, t = void 0), qk(n)(Uk(zk(n).document().write(Hk()(e, t, !0))));
12953
12953
  }
12954
12954
  function qk(e) {
12955
12955
  const t = {
@@ -13031,7 +13031,7 @@ function qk(e) {
13031
13031
  htmlText: l(D),
13032
13032
  htmlTextData: b,
13033
13033
  image: l(X),
13034
- label: z,
13034
+ label: U,
13035
13035
  labelText: V,
13036
13036
  lineEnding: M,
13037
13037
  link: l(ie),
@@ -13103,7 +13103,7 @@ function qk(e) {
13103
13103
  return J;
13104
13104
  }
13105
13105
  function i(H, J, ve) {
13106
- let Oe = J - 1, He = -1, Et = !1, zt, Gt, pn, cn;
13106
+ let Oe = J - 1, He = -1, Et = !1, Ut, Gt, pn, cn;
13107
13107
  for (; ++Oe <= ve; ) {
13108
13108
  const St = H[Oe];
13109
13109
  switch (St[1].type) {
@@ -13114,7 +13114,7 @@ function qk(e) {
13114
13114
  break;
13115
13115
  }
13116
13116
  case "lineEndingBlank": {
13117
- St[0] === "enter" && (zt && !cn && !He && !pn && (pn = Oe), cn = void 0);
13117
+ St[0] === "enter" && (Ut && !cn && !He && !pn && (pn = Oe), cn = void 0);
13118
13118
  break;
13119
13119
  }
13120
13120
  case "linePrefix":
@@ -13127,7 +13127,7 @@ function qk(e) {
13127
13127
  cn = void 0;
13128
13128
  }
13129
13129
  if (!He && St[0] === "enter" && St[1].type === "listItemPrefix" || He === -1 && St[0] === "exit" && (St[1].type === "listUnordered" || St[1].type === "listOrdered")) {
13130
- if (zt) {
13130
+ if (Ut) {
13131
13131
  let Jt = Oe;
13132
13132
  for (Gt = void 0; Jt--; ) {
13133
13133
  const Rt = H[Jt];
@@ -13136,7 +13136,7 @@ function qk(e) {
13136
13136
  Gt && (H[Gt][1].type = "lineEndingBlank", Et = !0), Rt[1].type = "lineEnding", Gt = Jt;
13137
13137
  } else if (!(Rt[1].type === "linePrefix" || Rt[1].type === "blockQuotePrefix" || Rt[1].type === "blockQuotePrefixWhitespace" || Rt[1].type === "blockQuoteMarker" || Rt[1].type === "listItemIndent")) break;
13138
13138
  }
13139
- pn && (!Gt || pn < Gt) && (zt._spread = !0), zt.end = Object.assign({}, Gt ? H[Gt][1].start : St[1].end), H.splice(Gt || Oe, 0, ["exit", zt, St[2]]), Oe++, ve++;
13139
+ pn && (!Gt || pn < Gt) && (Ut._spread = !0), Ut.end = Object.assign({}, Gt ? H[Gt][1].start : St[1].end), H.splice(Gt || Oe, 0, ["exit", Ut, St[2]]), Oe++, ve++;
13140
13140
  }
13141
13141
  if (St[1].type === "listItemPrefix") {
13142
13142
  const Jt = {
@@ -13146,7 +13146,7 @@ function qk(e) {
13146
13146
  // @ts-expect-error: we’ll add `end` in a second.
13147
13147
  end: void 0
13148
13148
  };
13149
- zt = Jt, H.splice(Oe, 0, ["enter", Jt, St[2]]), Oe++, ve++, pn = void 0, cn = !0;
13149
+ Ut = Jt, H.splice(Oe, 0, ["enter", Jt, St[2]]), Oe++, ve++, pn = void 0, cn = !0;
13150
13150
  }
13151
13151
  }
13152
13152
  }
@@ -13306,7 +13306,7 @@ function qk(e) {
13306
13306
  const J = this.sliceSerialize(H), ve = this.stack[this.stack.length - 2];
13307
13307
  ve.label = Wk(J), ve.identifier = hn(J).toLowerCase();
13308
13308
  }
13309
- function z() {
13309
+ function U() {
13310
13310
  const H = this.stack[this.stack.length - 1], J = this.resume(), ve = this.stack[this.stack.length - 1];
13311
13311
  if (this.data.inReference = !0, ve.type === "link") {
13312
13312
  const Oe = H.children;
@@ -13338,7 +13338,7 @@ function qk(e) {
13338
13338
  function B(H) {
13339
13339
  const J = this.sliceSerialize(H), ve = this.data.characterReferenceType;
13340
13340
  let Oe;
13341
- ve ? (Oe = $p(J, ve === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : Oe = Ul(J);
13341
+ ve ? (Oe = $p(J, ve === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : Oe = zl(J);
13342
13342
  const He = this.stack[this.stack.length - 1];
13343
13343
  He.value += Oe;
13344
13344
  }
@@ -13881,13 +13881,13 @@ const E1 = {
13881
13881
  };
13882
13882
  function Wi() {
13883
13883
  }
13884
- const Jp = -1, zo = 0, hi = 1, ko = 2, Hl = 3, jl = 4, Wl = 5, Gl = 6, em = 7, tm = 8, hd = typeof self == "object" ? self : globalThis, S1 = (e, t) => {
13884
+ const Jp = -1, Uo = 0, hi = 1, ko = 2, Hl = 3, jl = 4, Wl = 5, Gl = 6, em = 7, tm = 8, hd = typeof self == "object" ? self : globalThis, S1 = (e, t) => {
13885
13885
  const n = (i, o) => (e.set(o, i), i), r = (i) => {
13886
13886
  if (e.has(i))
13887
13887
  return e.get(i);
13888
13888
  const [o, s] = t[i];
13889
13889
  switch (o) {
13890
- case zo:
13890
+ case Uo:
13891
13891
  case Jp:
13892
13892
  return n(s, i);
13893
13893
  case hi: {
@@ -13941,7 +13941,7 @@ const Jp = -1, zo = 0, hi = 1, ko = 2, Hl = 3, jl = 4, Wl = 5, Gl = 6, em = 7, t
13941
13941
  }, pd = (e) => S1(/* @__PURE__ */ new Map(), e)(0), pr = "", { toString: k1 } = {}, { keys: _1 } = Object, ti = (e) => {
13942
13942
  const t = typeof e;
13943
13943
  if (t !== "object" || !e)
13944
- return [zo, t];
13944
+ return [Uo, t];
13945
13945
  const n = k1.call(e).slice(8, -1);
13946
13946
  switch (n) {
13947
13947
  case "Array":
@@ -13960,7 +13960,7 @@ const Jp = -1, zo = 0, hi = 1, ko = 2, Hl = 3, jl = 4, Wl = 5, Gl = 6, em = 7, t
13960
13960
  return [hi, n];
13961
13961
  }
13962
13962
  return n.includes("Array") ? [hi, n] : n.includes("Error") ? [em, n] : [ko, n];
13963
- }, Gi = ([e, t]) => e === zo && (t === "function" || t === "symbol"), C1 = (e, t, n, r) => {
13963
+ }, Gi = ([e, t]) => e === Uo && (t === "function" || t === "symbol"), C1 = (e, t, n, r) => {
13964
13964
  const i = (s, a) => {
13965
13965
  const l = r.push(s) - 1;
13966
13966
  return n.set(a, l), l;
@@ -13969,7 +13969,7 @@ const Jp = -1, zo = 0, hi = 1, ko = 2, Hl = 3, jl = 4, Wl = 5, Gl = 6, em = 7, t
13969
13969
  return n.get(s);
13970
13970
  let [a, l] = ti(s);
13971
13971
  switch (a) {
13972
- case zo: {
13972
+ case Uo: {
13973
13973
  let u = s;
13974
13974
  switch (l) {
13975
13975
  case "bigint":
@@ -14267,7 +14267,7 @@ const Va = {}.hasOwnProperty, B1 = {};
14267
14267
  function $1(e, t) {
14268
14268
  const n = t || B1, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), s = { ...E1, ...n.handlers }, a = {
14269
14269
  all: c,
14270
- applyData: U1,
14270
+ applyData: z1,
14271
14271
  definitionById: r,
14272
14272
  footnoteById: i,
14273
14273
  footnoteCounts: o,
@@ -14295,7 +14295,7 @@ function $1(e, t) {
14295
14295
  }
14296
14296
  return _o(u);
14297
14297
  }
14298
- return (a.options.unknownHandler || z1)(a, u, d);
14298
+ return (a.options.unknownHandler || U1)(a, u, d);
14299
14299
  }
14300
14300
  function c(u) {
14301
14301
  const d = [];
@@ -14319,7 +14319,7 @@ function $1(e, t) {
14319
14319
  function V1(e, t) {
14320
14320
  e.position && (t.position = NE(e));
14321
14321
  }
14322
- function U1(e, t) {
14322
+ function z1(e, t) {
14323
14323
  let n = t;
14324
14324
  if (e && e.data) {
14325
14325
  const r = e.data.hName, i = e.data.hChildren, o = e.data.hProperties;
@@ -14334,7 +14334,7 @@ function U1(e, t) {
14334
14334
  }
14335
14335
  return n;
14336
14336
  }
14337
- function z1(e, t) {
14337
+ function U1(e, t) {
14338
14338
  const n = t.data || {}, r = "value" in t && !(Va.call(n, "hProperties") || Va.call(n, "hChildren")) ? { type: "text", value: t.value } : {
14339
14339
  type: "element",
14340
14340
  tagName: "div",
@@ -14424,7 +14424,7 @@ function W1() {
14424
14424
  }
14425
14425
  var G1 = W1();
14426
14426
  const Is = /* @__PURE__ */ $o(G1);
14427
- function Ua(e) {
14427
+ function za(e) {
14428
14428
  if (typeof e != "object" || e === null)
14429
14429
  return !1;
14430
14430
  const t = Object.getPrototypeOf(e);
@@ -14599,14 +14599,14 @@ const t_ = { cwd: n_ };
14599
14599
  function n_() {
14600
14600
  return "/";
14601
14601
  }
14602
- function za(e) {
14602
+ function Ua(e) {
14603
14603
  return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
14604
14604
  e.auth === void 0);
14605
14605
  }
14606
14606
  function r_(e) {
14607
14607
  if (typeof e == "string")
14608
14608
  e = new URL(e);
14609
- else if (!za(e)) {
14609
+ else if (!Ua(e)) {
14610
14610
  const t = new TypeError(
14611
14611
  'The "path" argument must be of type string or an instance of URL. Received `' + e + "`"
14612
14612
  );
@@ -14675,7 +14675,7 @@ class im {
14675
14675
  */
14676
14676
  constructor(t) {
14677
14677
  let n;
14678
- t ? za(t) ? n = { path: t } : typeof t == "string" || o_(t) ? n = { value: t } : n = t : n = {}, this.cwd = "cwd" in n ? "" : t_.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
14678
+ t ? Ua(t) ? n = { path: t } : typeof t == "string" || o_(t) ? n = { value: t } : n = t : n = {}, this.cwd = "cwd" in n ? "" : t_.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
14679
14679
  let r = -1;
14680
14680
  for (; ++r < Os.length; ) {
14681
14681
  const o = Os[r];
@@ -14783,7 +14783,7 @@ class im {
14783
14783
  * Nothing.
14784
14784
  */
14785
14785
  set path(t) {
14786
- za(t) && (t = r_(t)), Ds(t, "path"), this.path !== t && this.history.push(t);
14786
+ Ua(t) && (t = r_(t)), Ds(t, "path"), this.path !== t && this.history.push(t);
14787
14787
  }
14788
14788
  /**
14789
14789
  * Get the stem (basename w/o extname) (example: `'index.min'`).
@@ -15535,7 +15535,7 @@ class Kl extends s_ {
15535
15535
  else if (u.length > 0) {
15536
15536
  let [h, ...g] = u;
15537
15537
  const p = r[f][1];
15538
- Ua(p) && Ua(h) && (h = Is(!0, p, h)), r[f] = [c, h, ...g];
15538
+ za(p) && za(h) && (h = Is(!0, p, h)), r[f] = [c, h, ...g];
15539
15539
  }
15540
15540
  }
15541
15541
  }
@@ -15556,7 +15556,7 @@ function Bs(e, t) {
15556
15556
  );
15557
15557
  }
15558
15558
  function wd(e) {
15559
- if (!Ua(e) || typeof e.type != "string")
15559
+ if (!za(e) || typeof e.type != "string")
15560
15560
  throw new TypeError("Expected node, got `" + e + "`");
15561
15561
  }
15562
15562
  function Ed(e, t, n) {
@@ -15747,9 +15747,9 @@ function __() {
15747
15747
  transforms: [I_],
15748
15748
  enter: {
15749
15749
  literalAutolink: T_,
15750
- literalAutolinkEmail: Us,
15751
- literalAutolinkHttp: Us,
15752
- literalAutolinkWww: Us
15750
+ literalAutolinkEmail: zs,
15751
+ literalAutolinkHttp: zs,
15752
+ literalAutolinkWww: zs
15753
15753
  },
15754
15754
  exit: {
15755
15755
  literalAutolink: R_,
@@ -15789,7 +15789,7 @@ function C_() {
15789
15789
  function T_(e) {
15790
15790
  this.enter({ type: "link", title: null, url: "", children: [] }, e);
15791
15791
  }
15792
- function Us(e) {
15792
+ function zs(e) {
15793
15793
  this.config.enter.autolinkProtocol.call(this, e);
15794
15794
  }
15795
15795
  function N_(e) {
@@ -15879,13 +15879,13 @@ function V_(e) {
15879
15879
  e
15880
15880
  );
15881
15881
  }
15882
- function U_(e) {
15882
+ function z_(e) {
15883
15883
  const t = this.resume(), n = this.stack[this.stack.length - 1];
15884
15884
  n.type, n.identifier = hn(
15885
15885
  this.sliceSerialize(e)
15886
15886
  ).toLowerCase(), n.label = t;
15887
15887
  }
15888
- function z_(e) {
15888
+ function U_(e) {
15889
15889
  this.exit(e);
15890
15890
  }
15891
15891
  function H_(e) {
@@ -15917,8 +15917,8 @@ function G_() {
15917
15917
  gfmFootnoteDefinition: V_
15918
15918
  },
15919
15919
  exit: {
15920
- gfmFootnoteCallString: U_,
15921
- gfmFootnoteCall: z_,
15920
+ gfmFootnoteCallString: z_,
15921
+ gfmFootnoteCall: U_,
15922
15922
  gfmFootnoteDefinitionLabelString: H_,
15923
15923
  gfmFootnoteDefinition: j_
15924
15924
  }
@@ -16677,9 +16677,9 @@ function LC() {
16677
16677
  exit: {
16678
16678
  codeText: VC,
16679
16679
  table: BC,
16680
- tableData: zs,
16681
- tableHeader: zs,
16682
- tableRow: zs
16680
+ tableData: Us,
16681
+ tableHeader: Us,
16682
+ tableRow: Us
16683
16683
  }
16684
16684
  };
16685
16685
  }
@@ -16702,7 +16702,7 @@ function BC(e) {
16702
16702
  function $C(e) {
16703
16703
  this.enter({ type: "tableRow", children: [] }, e);
16704
16704
  }
16705
- function zs(e) {
16705
+ function Us(e) {
16706
16706
  this.exit(e);
16707
16707
  }
16708
16708
  function Ad(e) {
@@ -16710,14 +16710,14 @@ function Ad(e) {
16710
16710
  }
16711
16711
  function VC(e) {
16712
16712
  let t = this.resume();
16713
- this.data.inTable && (t = t.replace(/\\([\\|])/g, UC));
16713
+ this.data.inTable && (t = t.replace(/\\([\\|])/g, zC));
16714
16714
  const n = this.stack[this.stack.length - 1];
16715
16715
  n.type, n.value = t, this.exit(e);
16716
16716
  }
16717
- function UC(e, t) {
16717
+ function zC(e, t) {
16718
16718
  return t === "|" ? t : e;
16719
16719
  }
16720
- function zC(e) {
16720
+ function UC(e) {
16721
16721
  const t = e || {}, n = t.tableCellPadding, r = t.tablePipeAlign, i = t.stringLength, o = n ? " " : "|";
16722
16722
  return {
16723
16723
  unsafe: [
@@ -16861,7 +16861,7 @@ function qC(e) {
16861
16861
  C_(),
16862
16862
  K_(e),
16863
16863
  X_(),
16864
- zC(e),
16864
+ UC(e),
16865
16865
  jC()
16866
16866
  ]
16867
16867
  };
@@ -17220,7 +17220,7 @@ function dT(e, t, n) {
17220
17220
  return g === 91 || g === 92 || g === 93 ? (e.consume(g), s++, u) : u(g);
17221
17221
  }
17222
17222
  function f(g) {
17223
- return g === 58 ? (e.enter("definitionMarker"), e.consume(g), e.exit("definitionMarker"), i.includes(o) || i.push(o), Ue(e, h, "gfmFootnoteDefinitionWhitespace")) : n(g);
17223
+ return g === 58 ? (e.enter("definitionMarker"), e.consume(g), e.exit("definitionMarker"), i.includes(o) || i.push(o), ze(e, h, "gfmFootnoteDefinitionWhitespace")) : n(g);
17224
17224
  }
17225
17225
  function h(g) {
17226
17226
  return t(g);
@@ -17234,7 +17234,7 @@ function hT(e) {
17234
17234
  }
17235
17235
  function pT(e, t, n) {
17236
17236
  const r = this;
17237
- return Ue(e, i, "gfmFootnoteDefinitionIndent", 5);
17237
+ return ze(e, i, "gfmFootnoteDefinitionIndent", 5);
17238
17238
  function i(o) {
17239
17239
  const s = r.events[r.events.length - 1];
17240
17240
  return s && s[1].type === "gfmFootnoteDefinitionIndent" && s[2].sliceSerialize(s[1], !0).length === 4 ? t(o) : n(o);
@@ -17276,7 +17276,7 @@ function mT(e) {
17276
17276
  start: Object.assign({}, s[c][1].end),
17277
17277
  end: Object.assign({}, s[l][1].start)
17278
17278
  }, f = [["enter", u, a], ["enter", s[c][1], a], ["exit", s[c][1], a], ["enter", d, a]], h = a.parser.constructs.insideSpan.null;
17279
- h && Zt(f, f.length, 0, Uo(h, s.slice(c + 1, l), a)), Zt(f, f.length, 0, [["exit", d, a], ["enter", s[l][1], a], ["exit", s[l][1], a], ["exit", u, a]]), Zt(s, c - 1, l - c + 3, f), l = c + f.length - 2;
17279
+ h && Zt(f, f.length, 0, zo(h, s.slice(c + 1, l), a)), Zt(f, f.length, 0, [["exit", d, a], ["enter", s[l][1], a], ["exit", s[l][1], a], ["exit", u, a]]), Zt(s, c - 1, l - c + 3, f), l = c + f.length - 2;
17280
17280
  break;
17281
17281
  }
17282
17282
  }
@@ -17422,7 +17422,7 @@ function vT(e, t, n) {
17422
17422
  return b === 124 || (s = !0, o += 1), u(b);
17423
17423
  }
17424
17424
  function u(b) {
17425
- return b === null ? n(b) : ye(b) ? o > 1 ? (o = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(b), e.exit("lineEnding"), h) : n(b) : Fe(b) ? Ue(e, u, "whitespace")(b) : (o += 1, s && (s = !1, i += 1), b === 124 ? (e.enter("tableCellDivider"), e.consume(b), e.exit("tableCellDivider"), s = !0, u) : (e.enter("data"), d(b)));
17425
+ return b === null ? n(b) : ye(b) ? o > 1 ? (o = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(b), e.exit("lineEnding"), h) : n(b) : Fe(b) ? ze(e, u, "whitespace")(b) : (o += 1, s && (s = !1, i += 1), b === 124 ? (e.enter("tableCellDivider"), e.consume(b), e.exit("tableCellDivider"), s = !0, u) : (e.enter("data"), d(b)));
17426
17426
  }
17427
17427
  function d(b) {
17428
17428
  return b === null || b === 124 || tt(b) ? (e.exit("data"), u(b)) : (e.consume(b), b === 92 ? f : d);
@@ -17431,13 +17431,13 @@ function vT(e, t, n) {
17431
17431
  return b === 92 || b === 124 ? (e.consume(b), d) : d(b);
17432
17432
  }
17433
17433
  function h(b) {
17434
- return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(b) : (e.enter("tableDelimiterRow"), s = !1, Fe(b) ? Ue(e, g, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(b) : g(b));
17434
+ return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(b) : (e.enter("tableDelimiterRow"), s = !1, Fe(b) ? ze(e, g, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(b) : g(b));
17435
17435
  }
17436
17436
  function g(b) {
17437
17437
  return b === 45 || b === 58 ? v(b) : b === 124 ? (s = !0, e.enter("tableCellDivider"), e.consume(b), e.exit("tableCellDivider"), p) : k(b);
17438
17438
  }
17439
17439
  function p(b) {
17440
- return Fe(b) ? Ue(e, v, "whitespace")(b) : v(b);
17440
+ return Fe(b) ? ze(e, v, "whitespace")(b) : v(b);
17441
17441
  }
17442
17442
  function v(b) {
17443
17443
  return b === 58 ? (o += 1, s = !0, e.enter("tableDelimiterMarker"), e.consume(b), e.exit("tableDelimiterMarker"), y) : b === 45 ? (o += 1, y(b)) : b === null || ye(b) ? _(b) : k(b);
@@ -17449,7 +17449,7 @@ function vT(e, t, n) {
17449
17449
  return b === 45 ? (e.consume(b), E) : b === 58 ? (s = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(b), e.exit("tableDelimiterMarker"), w) : (e.exit("tableDelimiterFiller"), w(b));
17450
17450
  }
17451
17451
  function w(b) {
17452
- return Fe(b) ? Ue(e, _, "whitespace")(b) : _(b);
17452
+ return Fe(b) ? ze(e, _, "whitespace")(b) : _(b);
17453
17453
  }
17454
17454
  function _(b) {
17455
17455
  return b === 124 ? g(b) : b === null || ye(b) ? !s || i !== o ? k(b) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(b)) : k(b);
@@ -17461,7 +17461,7 @@ function vT(e, t, n) {
17461
17461
  return e.enter("tableRow"), R(b);
17462
17462
  }
17463
17463
  function R(b) {
17464
- return b === 124 ? (e.enter("tableCellDivider"), e.consume(b), e.exit("tableCellDivider"), R) : b === null || ye(b) ? (e.exit("tableRow"), t(b)) : Fe(b) ? Ue(e, R, "whitespace")(b) : (e.enter("data"), A(b));
17464
+ return b === 124 ? (e.enter("tableCellDivider"), e.consume(b), e.exit("tableCellDivider"), R) : b === null || ye(b) ? (e.exit("tableRow"), t(b)) : Fe(b) ? ze(e, R, "whitespace")(b) : (e.enter("data"), A(b));
17465
17465
  }
17466
17466
  function A(b) {
17467
17467
  return b === null || b === 124 || tt(b) ? (e.exit("data"), R(b)) : (e.consume(b), b === 92 ? O : A);
@@ -17562,7 +17562,7 @@ function kT(e, t, n) {
17562
17562
  }
17563
17563
  }
17564
17564
  function _T(e, t, n) {
17565
- return Ue(e, r, "whitespace");
17565
+ return ze(e, r, "whitespace");
17566
17566
  function r(i) {
17567
17567
  return i === null ? n(i) : t(i);
17568
17568
  }
@@ -17689,7 +17689,7 @@ const Od = /\n/g, Pd = /[\t ]+/g, ja = ur("br"), Dd = ur(VT), OT = ur("p"), Ld =
17689
17689
  // Hidden attribute.
17690
17690
  $T,
17691
17691
  // From: <https://html.spec.whatwg.org/multipage/rendering.html#flow-content-3>
17692
- UT
17692
+ zT
17693
17693
  ]), Nm = ur([
17694
17694
  "address",
17695
17695
  // Flow content
@@ -17891,10 +17891,10 @@ function $T(e) {
17891
17891
  function VT(e) {
17892
17892
  return e.tagName === "td" || e.tagName === "th";
17893
17893
  }
17894
- function UT(e) {
17894
+ function zT(e) {
17895
17895
  return e.tagName === "dialog" && !(e.properties || {}).open;
17896
17896
  }
17897
- function zT(e) {
17897
+ function UT(e) {
17898
17898
  const t = e.regex, n = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), r = "decltype\\(auto\\)", i = "[a-zA-Z_]\\w*::", s = "(?!struct)(" + r + "|" + t.optional(i) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", a = {
17899
17899
  className: "type",
17900
17900
  begin: "\\b[a-z\\d_]*_t\\b"
@@ -18778,7 +18778,7 @@ function HT(e) {
18778
18778
  "HIGH",
18779
18779
  "LOW"
18780
18780
  ]
18781
- }, n = zT(e), r = (
18781
+ }, n = UT(e), r = (
18782
18782
  /** @type {Record<string,any>} */
18783
18783
  n.keywords
18784
18784
  );
@@ -22012,9 +22012,9 @@ const Bd = "[A-Za-z$_][0-9A-Za-z$_]*", lN = [
22012
22012
  Pm
22013
22013
  );
22014
22014
  function fN(e) {
22015
- const t = e.regex, n = (V, { after: z }) => {
22015
+ const t = e.regex, n = (V, { after: U }) => {
22016
22016
  const x = "</" + V[0].slice(1);
22017
- return V.input.indexOf(x, z) !== -1;
22017
+ return V.input.indexOf(x, U) !== -1;
22018
22018
  }, r = Bd, i = {
22019
22019
  begin: "<>",
22020
22020
  end: "</>"
@@ -22025,7 +22025,7 @@ function fN(e) {
22025
22025
  * @param {RegExpMatchArray} match
22026
22026
  * @param {CallbackResponse} response
22027
22027
  */
22028
- isTrulyOpeningTag: (V, z) => {
22028
+ isTrulyOpeningTag: (V, U) => {
22029
22029
  const x = V[0].length + V.index, $ = V.input[x];
22030
22030
  if (
22031
22031
  // HTML should not include another raw `<` inside a tag
@@ -22035,18 +22035,18 @@ function fN(e) {
22035
22035
  // `<T, A extends keyof T, V>`
22036
22036
  $ === ","
22037
22037
  ) {
22038
- z.ignoreMatch();
22038
+ U.ignoreMatch();
22039
22039
  return;
22040
22040
  }
22041
- $ === ">" && (n(V, { after: x }) || z.ignoreMatch());
22041
+ $ === ">" && (n(V, { after: x }) || U.ignoreMatch());
22042
22042
  let K;
22043
22043
  const S = V.input.substring(x);
22044
22044
  if (K = S.match(/^\s*=/)) {
22045
- z.ignoreMatch();
22045
+ U.ignoreMatch();
22046
22046
  return;
22047
22047
  }
22048
22048
  if ((K = S.match(/^\s+extends\s+/)) && K.index === 0) {
22049
- z.ignoreMatch();
22049
+ U.ignoreMatch();
22050
22050
  return;
22051
22051
  }
22052
22052
  }
@@ -26899,7 +26899,7 @@ const FN = (e) => ({
26899
26899
  ], VN = [
26900
26900
  ...BN,
26901
26901
  ...$N
26902
- ], UN = [
26902
+ ], zN = [
26903
26903
  "any-hover",
26904
26904
  "any-pointer",
26905
26905
  "aspect-ratio",
@@ -26934,7 +26934,7 @@ const FN = (e) => ({
26934
26934
  "max-width",
26935
26935
  "min-height",
26936
26936
  "max-height"
26937
- ].sort().reverse(), zN = [
26937
+ ].sort().reverse(), UN = [
26938
26938
  "active",
26939
26939
  "any-link",
26940
26940
  "blank",
@@ -27541,7 +27541,7 @@ const FN = (e) => ({
27541
27541
  "zoom"
27542
27542
  ].sort().reverse();
27543
27543
  function WN(e) {
27544
- const t = FN(e), n = HN, r = zN, i = "@[a-z-]+", o = "and or not only", a = {
27544
+ const t = FN(e), n = HN, r = UN, i = "@[a-z-]+", o = "and or not only", a = {
27545
27545
  className: "variable",
27546
27546
  begin: "(\\$" + "[a-zA-Z-][a-zA-Z0-9_-]*" + ")\\b",
27547
27547
  relevance: 0
@@ -27626,7 +27626,7 @@ function WN(e) {
27626
27626
  keywords: {
27627
27627
  $pattern: /[a-z-]+/,
27628
27628
  keyword: o,
27629
- attribute: UN.join(" ")
27629
+ attribute: zN.join(" ")
27630
27630
  },
27631
27631
  contains: [
27632
27632
  {
@@ -28481,7 +28481,7 @@ const Ql = (e) => Ze(
28481
28481
  "#selector",
28482
28482
  "#sourceLocation",
28483
28483
  "#warning"
28484
- ], Ud = [
28484
+ ], zd = [
28485
28485
  "abs",
28486
28486
  "all",
28487
28487
  "any",
@@ -28544,7 +28544,7 @@ const Ql = (e) => Ze(
28544
28544
  /[\uFE20-\uFE2F]/
28545
28545
  // TODO: The following characters are also allowed, but the regex isn't supported yet.
28546
28546
  // /[\u{E0100}-\u{E01EF}]/u
28547
- ), js = Ze($m, Vm, "*"), Um = Bt(
28547
+ ), js = Ze($m, Vm, "*"), zm = Bt(
28548
28548
  /[a-zA-Z_]/,
28549
28549
  /[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,
28550
28550
  /[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,
@@ -28563,10 +28563,10 @@ const Ql = (e) => Ze(
28563
28563
  // /[\u{90000}-\u{9FFFD}\u{A0000-\u{AFFFD}\u{B0000}-\u{BFFFD}\u{C0000}-\u{CFFFD}]/u,
28564
28564
  // /[\u{D0000}-\u{DFFFD}\u{E0000-\u{EFFFD}]/u
28565
28565
  ), To = Bt(
28566
- Um,
28566
+ zm,
28567
28567
  /\d/,
28568
28568
  /[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/
28569
- ), yn = Ze(Um, To, "*"), Ji = Ze(/[A-Z]/, To, "*"), JN = [
28569
+ ), yn = Ze(zm, To, "*"), Ji = Ze(/[A-Z]/, To, "*"), JN = [
28570
28570
  "attached",
28571
28571
  "autoclosure",
28572
28572
  Ze(/convention\(/, Bt("swift", "block", "c"), /\)/),
@@ -28655,11 +28655,11 @@ function tA(e) {
28655
28655
  l
28656
28656
  ], d = {
28657
28657
  // Consume .built_in to prevent highlighting properties and methods.
28658
- match: Ze(/\./, Bt(...Ud)),
28658
+ match: Ze(/\./, Bt(...zd)),
28659
28659
  relevance: 0
28660
28660
  }, f = {
28661
28661
  className: "built_in",
28662
- match: Ze(/\b/, Bt(...Ud), /(?=\()/)
28662
+ match: Ze(/\b/, Bt(...zd), /(?=\()/)
28663
28663
  }, h = [
28664
28664
  d,
28665
28665
  f
@@ -28795,7 +28795,7 @@ function tA(e) {
28795
28795
  ]
28796
28796
  }
28797
28797
  ] }
28798
- }, z = {
28798
+ }, U = {
28799
28799
  scope: "keyword",
28800
28800
  match: Ze(/@/, Bt(...JN), ni(Bt(/\(/, /\s+/)))
28801
28801
  }, x = {
@@ -28803,7 +28803,7 @@ function tA(e) {
28803
28803
  match: Ze(/@/, yn)
28804
28804
  }, $ = [
28805
28805
  V,
28806
- z,
28806
+ U,
28807
28807
  x
28808
28808
  ], K = {
28809
28809
  match: ni(/\b[A-Z]/),
@@ -29078,7 +29078,7 @@ function tA(e) {
29078
29078
  ]
29079
29079
  };
29080
29080
  }
29081
- const No = "[A-Za-z$_][0-9A-Za-z$_]*", zm = [
29081
+ const No = "[A-Za-z$_][0-9A-Za-z$_]*", Um = [
29082
29082
  "as",
29083
29083
  // for exports
29084
29084
  "in",
@@ -29225,9 +29225,9 @@ const No = "[A-Za-z$_][0-9A-Za-z$_]*", zm = [
29225
29225
  Wm
29226
29226
  );
29227
29227
  function nA(e) {
29228
- const t = e.regex, n = (V, { after: z }) => {
29228
+ const t = e.regex, n = (V, { after: U }) => {
29229
29229
  const x = "</" + V[0].slice(1);
29230
- return V.input.indexOf(x, z) !== -1;
29230
+ return V.input.indexOf(x, U) !== -1;
29231
29231
  }, r = No, i = {
29232
29232
  begin: "<>",
29233
29233
  end: "</>"
@@ -29238,7 +29238,7 @@ function nA(e) {
29238
29238
  * @param {RegExpMatchArray} match
29239
29239
  * @param {CallbackResponse} response
29240
29240
  */
29241
- isTrulyOpeningTag: (V, z) => {
29241
+ isTrulyOpeningTag: (V, U) => {
29242
29242
  const x = V[0].length + V.index, $ = V.input[x];
29243
29243
  if (
29244
29244
  // HTML should not include another raw `<` inside a tag
@@ -29248,24 +29248,24 @@ function nA(e) {
29248
29248
  // `<T, A extends keyof T, V>`
29249
29249
  $ === ","
29250
29250
  ) {
29251
- z.ignoreMatch();
29251
+ U.ignoreMatch();
29252
29252
  return;
29253
29253
  }
29254
- $ === ">" && (n(V, { after: x }) || z.ignoreMatch());
29254
+ $ === ">" && (n(V, { after: x }) || U.ignoreMatch());
29255
29255
  let K;
29256
29256
  const S = V.input.substring(x);
29257
29257
  if (K = S.match(/^\s*=/)) {
29258
- z.ignoreMatch();
29258
+ U.ignoreMatch();
29259
29259
  return;
29260
29260
  }
29261
29261
  if ((K = S.match(/^\s+extends\s+/)) && K.index === 0) {
29262
- z.ignoreMatch();
29262
+ U.ignoreMatch();
29263
29263
  return;
29264
29264
  }
29265
29265
  }
29266
29266
  }, a = {
29267
29267
  $pattern: No,
29268
- keyword: zm,
29268
+ keyword: Um,
29269
29269
  literal: Hm,
29270
29270
  built_in: qm,
29271
29271
  "variable.language": Km
@@ -29784,7 +29784,7 @@ function rA(e) {
29784
29784
  "satisfies"
29785
29785
  ], c = {
29786
29786
  $pattern: No,
29787
- keyword: zm.concat(l),
29787
+ keyword: Um.concat(l),
29788
29788
  literal: Hm,
29789
29789
  built_in: qm.concat(i),
29790
29790
  "variable.language": Km
@@ -30493,10 +30493,10 @@ const lA = {
30493
30493
  xml: sA,
30494
30494
  yaml: aA
30495
30495
  };
30496
- var Ws, zd;
30496
+ var Ws, Ud;
30497
30497
  function cA() {
30498
- if (zd) return Ws;
30499
- zd = 1;
30498
+ if (Ud) return Ws;
30499
+ Ud = 1;
30500
30500
  function e(T) {
30501
30501
  return T instanceof Map ? T.clear = T.delete = T.set = function() {
30502
30502
  throw new Error("map is read-only");
@@ -30832,7 +30832,7 @@ function cA() {
30832
30832
  // look for 3 words in a row
30833
30833
  }
30834
30834
  ), Ne;
30835
- }, z = V("//", "$"), x = V("/\\*", "\\*/"), $ = V("#", "$"), K = {
30835
+ }, U = V("//", "$"), x = V("/\\*", "\\*/"), $ = V("#", "$"), K = {
30836
30836
  scope: "number",
30837
30837
  begin: O,
30838
30838
  relevance: 0
@@ -30878,7 +30878,7 @@ function cA() {
30878
30878
  BINARY_NUMBER_RE: M,
30879
30879
  COMMENT: V,
30880
30880
  C_BLOCK_COMMENT_MODE: x,
30881
- C_LINE_COMMENT_MODE: z,
30881
+ C_LINE_COMMENT_MODE: U,
30882
30882
  C_NUMBER_MODE: S,
30883
30883
  C_NUMBER_RE: b,
30884
30884
  END_SAME_AS_BEGIN: function(T) {
@@ -31016,7 +31016,7 @@ function cA() {
31016
31016
  function Et(T) {
31017
31017
  T.scope && typeof T.scope == "object" && T.scope !== null && (T.beginScope = T.scope, delete T.scope);
31018
31018
  }
31019
- function zt(T) {
31019
+ function Ut(T) {
31020
31020
  Et(T), typeof T.beginScope == "string" && (T.beginScope = { _wrap: T.beginScope }), typeof T.endScope == "string" && (T.endScope = { _wrap: T.endScope }), Oe(T), He(T);
31021
31021
  }
31022
31022
  function Gt(T) {
@@ -31096,7 +31096,7 @@ function cA() {
31096
31096
  // do this early so compiler extensions generally don't have to worry about
31097
31097
  // the distinction between match/begin
31098
31098
  pe,
31099
- zt,
31099
+ Ut,
31100
31100
  ge
31101
31101
  ].forEach((xt) => xt(he, ue)), T.compilerExtensions.forEach((xt) => xt(he, ue)), he.__beforeBegin = null, [
31102
31102
  se,
@@ -31203,8 +31203,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), kt = ee, nt = be), Ve
31203
31203
  if (It.addText(Pe), Pe = "", kt[Ke] = (kt[Ke] || 0) + 1, kt[Ke] <= ae && (Bi += Vg), Sn.startsWith("_"))
31204
31204
  Pe += me[0];
31205
31205
  else {
31206
- const Ug = gn.classNameAliases[Sn] || Sn;
31207
- mn(me[0], Ug);
31206
+ const zg = gn.classNameAliases[Sn] || Sn;
31207
+ mn(me[0], zg);
31208
31208
  }
31209
31209
  } else
31210
31210
  Pe += me[0];
@@ -31798,7 +31798,7 @@ function bA(e) {
31798
31798
  }
31799
31799
  function yA({ message: e, theme: t, isOwn: n, isStreaming: r = !1 }) {
31800
31800
  var c, u;
31801
- const i = Ut(t), o = e.sender.name ? e.sender.name.split(" ").map((d) => d[0]).join("").toUpperCase().slice(0, 2) : "U", s = P.useMemo(() => {
31801
+ const i = zt(t), o = e.sender.name ? e.sender.name.split(" ").map((d) => d[0]).join("").toUpperCase().slice(0, 2) : "U", s = P.useMemo(() => {
31802
31802
  var d, f;
31803
31803
  return ((d = e == null ? void 0 : e.metadata) == null ? void 0 : d.format) === "markdown" || ((f = e == null ? void 0 : e.metadata) == null ? void 0 : f.markdown) === !0 || rE(e.content);
31804
31804
  }, [e.content, e.metadata]), a = P.useMemo(() => s ? iE(e.content) : e.content, [e.content, s]), l = P.useMemo(() => tE(t), [t]);
@@ -31848,7 +31848,7 @@ function yA({ message: e, theme: t, isOwn: n, isStreaming: r = !1 }) {
31848
31848
  ] }) });
31849
31849
  }
31850
31850
  function xA({ theme: e }) {
31851
- const t = Ut(e);
31851
+ const t = zt(e);
31852
31852
  return /* @__PURE__ */ m("div", { className: "flex w-full justify-start mb-4 px-1", children: /* @__PURE__ */ N("div", { className: "relative group flex-row flex items-end gap-3 max-w-[85%] min-w-0", children: [
31853
31853
  /* @__PURE__ */ m(
31854
31854
  "div",
@@ -32033,7 +32033,7 @@ function Jl({
32033
32033
  smartScrollToBottom: O,
32034
32034
  handleScroll: b,
32035
32035
  scrollToBottom: M
32036
- } = CA(), { isMobile: I, isFullscreen: F, setIsFullscreen: D } = TA(), [G, ie] = P.useState(/* @__PURE__ */ new Set()), [X, V] = P.useState([]), z = Ut(t);
32036
+ } = CA(), { isMobile: I, isFullscreen: F, setIsFullscreen: D } = TA(), [G, ie] = P.useState(/* @__PURE__ */ new Set()), [X, V] = P.useState([]), U = zt(t);
32037
32037
  P.useEffect(() => (F && I && (document.body.style.overflow = "hidden", document.body.style.position = "fixed", document.body.style.width = "100%", document.body.style.height = "100%", document.documentElement.requestFullscreen && document.documentElement.requestFullscreen().catch(console.log)), () => {
32038
32038
  F && I && (document.body.style.overflow = "unset", document.body.style.position = "unset", document.body.style.width = "unset", document.body.style.height = "unset", document.fullscreenElement && document.exitFullscreen().catch(console.log));
32039
32039
  }), [F, I]);
@@ -32286,7 +32286,7 @@ function Jl({
32286
32286
  e.off("suggested.response", L);
32287
32287
  };
32288
32288
  }, [e]);
32289
- const B = F && I ? "fullscreen" : i, q = B === "fullscreen" ? F && I ? "fixed inset-0 z-[9999] flex flex-col h-screen w-screen bg-black" : "flex flex-col h-full w-full max-w-none" : "flex flex-col h-full w-full backdrop-blur-sm max-h-full overflow-hidden contain-layout", W = B === "fullscreen" ? F && I ? "flex items-center w-full justify-between px-3 h-11 bg-black/80 text-white border-b border-gray-700" : `flex items-center w-full justify-between px-5 h-12 border-b ${z.chatHeader.container}` : `flex items-center w-full justify-between px-4 h-12 border-b ${z.chatHeader.container}`, ce = B === "fullscreen" ? F && I ? "flex-1 overflow-y-auto overflow-x-hidden scrollbar-hide p-4 w-full max-w-none chat-scrollable min-h-0" : "flex-1 overflow-y-auto overflow-x-hidden scrollbar-hide p-6 w-full max-w-none chat-scrollable min-h-0" : "flex-1 overflow-y-auto overflow-x-hidden scrollbar-hide w-full p-4 chat-scrollable min-h-0", Q = "flex-shrink-0 !w-full", xe = () => {
32289
+ const B = F && I ? "fullscreen" : i, q = B === "fullscreen" ? F && I ? "fixed inset-0 z-[9999] flex flex-col h-screen w-screen bg-black" : "flex flex-col h-full w-full max-w-none" : "flex flex-col h-full w-full backdrop-blur-sm max-h-full overflow-hidden contain-layout", W = B === "fullscreen" ? F && I ? "flex items-center w-full justify-between px-3 h-11 bg-black/80 text-white border-b border-gray-700" : `flex items-center w-full justify-between px-5 h-12 border-b ${U.chatHeader.container}` : `flex items-center w-full justify-between px-4 h-12 border-b ${U.chatHeader.container}`, ce = B === "fullscreen" ? F && I ? "flex-1 overflow-y-auto overflow-x-hidden scrollbar-hide p-4 w-full max-w-none chat-scrollable min-h-0" : "flex-1 overflow-y-auto overflow-x-hidden scrollbar-hide p-6 w-full max-w-none chat-scrollable min-h-0" : "flex-1 overflow-y-auto overflow-x-hidden scrollbar-hide w-full p-4 chat-scrollable min-h-0", Q = "flex-shrink-0 !w-full", xe = () => {
32290
32290
  D(!1), n && n();
32291
32291
  };
32292
32292
  return /* @__PURE__ */ N("div", { className: `${q} relative`, children: [
@@ -32295,7 +32295,7 @@ function Jl({
32295
32295
  /* @__PURE__ */ m(
32296
32296
  "h3",
32297
32297
  {
32298
- className: `font-semibold text-sm leading-tight ${F && I ? "text-white" : z.text.primary}`,
32298
+ className: `font-semibold text-sm leading-tight ${F && I ? "text-white" : U.text.primary}`,
32299
32299
  children: $
32300
32300
  }
32301
32301
  ),
@@ -32370,11 +32370,11 @@ function Jl({
32370
32370
  children: K
32371
32371
  }
32372
32372
  ),
32373
- /* @__PURE__ */ N("p", { className: `text-base mb-2 ${F && I ? "text-white" : z.text.secondary}`, children: [
32373
+ /* @__PURE__ */ N("p", { className: `text-base mb-2 ${F && I ? "text-white" : U.text.secondary}`, children: [
32374
32374
  $,
32375
32375
  " is joining..."
32376
32376
  ] }),
32377
- /* @__PURE__ */ m("p", { className: `text-xs ${F && I ? "text-gray-300" : z.text.muted}`, children: "Your conversation will begin shortly" })
32377
+ /* @__PURE__ */ m("p", { className: `text-xs ${F && I ? "text-gray-300" : U.text.muted}`, children: "Your conversation will begin shortly" })
32378
32378
  ] }) : /* @__PURE__ */ m("div", { className: "w-full space-y-3 py-4 flex-1 flex flex-col justify-end", children: /* @__PURE__ */ N("div", { className: "space-y-3", children: [
32379
32379
  d.map((L, se) => {
32380
32380
  var ke, pe, ne, ge;
@@ -32389,36 +32389,36 @@ function Jl({
32389
32389
  children: K
32390
32390
  }
32391
32391
  ),
32392
- /* @__PURE__ */ N("div", { className: `flex h-full flex-col justify-between border px-3 py-2 rounded-2xl shadow-lg backdrop-bl-sm message-bubble rounded-br-md message-hover border-gray-200 dark:border-gray-700 ${z.chatMessage.own} min-w-0 max-w-full break-words overflow-hidden`, style: { overflowWrap: "anywhere", wordBreak: "break-word", hyphens: "auto" }, children: [
32392
+ /* @__PURE__ */ N("div", { className: `flex h-full flex-col justify-between border px-3 py-2 rounded-2xl shadow-lg backdrop-bl-sm message-bubble rounded-br-md message-hover border-gray-200 dark:border-gray-700 ${U.chatMessage.own} min-w-0 max-w-full break-words overflow-hidden`, style: { overflowWrap: "anywhere", wordBreak: "break-word", hyphens: "auto" }, children: [
32393
32393
  L.metadata.view,
32394
- /* @__PURE__ */ m("div", { className: `text-xs ${z.text.muted} mt-1 opacity-0 group-hover:opacity-100 transition-opacity duration-200`, children: L.timestamp.toLocaleTimeString([], {
32394
+ /* @__PURE__ */ m("div", { className: `text-xs ${U.text.muted} mt-1 opacity-0 group-hover:opacity-100 transition-opacity duration-200`, children: L.timestamp.toLocaleTimeString([], {
32395
32395
  hour: "2-digit",
32396
32396
  minute: "2-digit"
32397
32397
  }) })
32398
32398
  ] })
32399
32399
  ] }) }) : ((pe = L.metadata) == null ? void 0 : pe.type) === "timeoutView" ? /* @__PURE__ */ m("div", { className: "flex w-full justify-start mb-4 px-1", children: /* @__PURE__ */ N("div", { className: "relative group flex-row flex items-end gap-3 max-w-[85%] min-w-0", children: [
32400
32400
  /* @__PURE__ */ m("div", { className: `w-6 h-6 rounded-full flex items-center justify-center text-white text-xs font-semibold flex-shrink-0 shadow-lg ${t === "light" ? "bg-gradient-to-br from-blue-500 to-purple-600" : "bg-gradient-to-br from-gray-600 to_gray-700"}`, children: K }),
32401
- /* @__PURE__ */ N("div", { className: `flex h-full flex-col justify-between border px-3 py-2 rounded-2xl shadow-lg backdrop-bl-sm message-bubble rounded-bl-md message-hover border-gray-200 dark:border-gray-700 ${z.chatMessage.other} min-w-0 max-w-full break-words overflow-hidden`, style: { overflowWrap: "anywhere", wordBreak: "break-word", hyphens: "auto" }, children: [
32401
+ /* @__PURE__ */ N("div", { className: `flex h-full flex-col justify-between border px-3 py-2 rounded-2xl shadow-lg backdrop-bl-sm message-bubble rounded-bl-md message-hover border-gray-200 dark:border-gray-700 ${U.chatMessage.other} min-w-0 max-w-full break-words overflow-hidden`, style: { overflowWrap: "anywhere", wordBreak: "break-word", hyphens: "auto" }, children: [
32402
32402
  L.metadata.view,
32403
- /* @__PURE__ */ m("div", { className: `text-xs ${z.text.muted} mt-1 opacity-0 group-hover:opacity-100 transition-opacity duration-200`, children: L.timestamp.toLocaleTimeString([], {
32403
+ /* @__PURE__ */ m("div", { className: `text-xs ${U.text.muted} mt-1 opacity-0 group-hover:opacity-100 transition-opacity duration-200`, children: L.timestamp.toLocaleTimeString([], {
32404
32404
  hour: "2-digit",
32405
32405
  minute: "2-digit"
32406
32406
  }) })
32407
32407
  ] })
32408
32408
  ] }) }) : ((ne = L.metadata) == null ? void 0 : ne.type) === "visualization" ? /* @__PURE__ */ m("div", { className: "flex w-full justify-start mb-4 px-1", children: /* @__PURE__ */ N("div", { className: "relative group flex-row flex items-end gap-3 max-w-[85%] min-w-0", children: [
32409
32409
  /* @__PURE__ */ m("div", { className: `w-6 h-6 rounded-full flex items-center justify-center text-white text-xs font-semibold flex-shrink-0 shadow-lg ${t === "light" ? "bg-gradient-to-br from-blue-500 to-purple-600" : "bg-gradient-to-br from-gray-600 to_gray-700"}`, children: K }),
32410
- /* @__PURE__ */ N("div", { className: `flex h-full flex-col justify-between border px-3 py-2 rounded-2xl shadow-lg backdrop-bl-sm message-bubble rounded-bl-md message-hover border-gray-200 dark:border-gray-700 ${z.chatMessage.other} min-w-0 max-w-full break-words overflow-hidden`, style: { overflowWrap: "anywhere", wordBreak: "break-word", hyphens: "auto" }, children: [
32410
+ /* @__PURE__ */ N("div", { className: `flex h-full flex-col justify-between border px-3 py-2 rounded-2xl shadow-lg backdrop-bl-sm message-bubble rounded-bl-md message-hover border-gray-200 dark:border-gray-700 ${U.chatMessage.other} min-w-0 max-w-full break-words overflow-hidden`, style: { overflowWrap: "anywhere", wordBreak: "break-word", hyphens: "auto" }, children: [
32411
32411
  L.metadata.view,
32412
- /* @__PURE__ */ m("div", { className: `text-xs ${z.text.muted} mt-1 opacity-70 transition-opacity duration-200`, children: L.timestamp.toLocaleTimeString([], {
32412
+ /* @__PURE__ */ m("div", { className: `text-xs ${U.text.muted} mt-1 opacity-70 transition-opacity duration-200`, children: L.timestamp.toLocaleTimeString([], {
32413
32413
  hour: "2-digit",
32414
32414
  minute: "2-digit"
32415
32415
  }) })
32416
32416
  ] })
32417
32417
  ] }) }) : ((ge = L.metadata) == null ? void 0 : ge.type) === "toolExecution" ? /* @__PURE__ */ m("div", { className: "flex w-full justify-start mb-4 px-1", children: /* @__PURE__ */ N("div", { className: "relative group flex-row flex items-end gap-3 max-w-[85%] min-w-0", children: [
32418
32418
  /* @__PURE__ */ m("div", { className: `w-6 h-6 rounded-full flex items-center justify-center text-white text-xs font-semibold flex-shrink-0 shadow-lg ${t === "light" ? "bg-gradient-to-br from-blue-500 to-purple-600" : "bg-gradient-to-br from-gray-600 to_gray-700"}`, children: K }),
32419
- /* @__PURE__ */ N("div", { className: `flex h-full flex-col justify-between border px-3 py-2 rounded-2xl shadow-lg backdrop-bl-sm message-bubble rounded-bl-md message-hover border-gray-200 dark:border-gray-700 ${z.chatMessage.other} min-w-0 max-w-full break-words overflow-hidden`, style: { overflowWrap: "anywhere", wordBreak: "break-word", hyphens: "auto" }, children: [
32419
+ /* @__PURE__ */ N("div", { className: `flex h-full flex-col justify-between border px-3 py-2 rounded-2xl shadow-lg backdrop-bl-sm message-bubble rounded-bl-md message-hover border-gray-200 dark:border-gray-700 ${U.chatMessage.other} min-w-0 max-w-full break-words overflow-hidden`, style: { overflowWrap: "anywhere", wordBreak: "break-word", hyphens: "auto" }, children: [
32420
32420
  L.metadata.view,
32421
- /* @__PURE__ */ m("div", { className: `text-xs ${z.text.muted} mt-1 opacity-70 transition-opacity duration-200`, children: L.timestamp.toLocaleTimeString([], {
32421
+ /* @__PURE__ */ m("div", { className: `text-xs ${U.text.muted} mt-1 opacity-70 transition-opacity duration-200`, children: L.timestamp.toLocaleTimeString([], {
32422
32422
  hour: "2-digit",
32423
32423
  minute: "2-digit"
32424
32424
  }) })
@@ -32454,7 +32454,7 @@ function Jl({
32454
32454
  children: K
32455
32455
  }
32456
32456
  ),
32457
- /* @__PURE__ */ N("div", { className: `flex h-full flex-col justify-between border px-3 py-2 rounded-2xl shadow-lg backdrop-bl-sm message-bubble rounded-bl-md message-hover border-gray-200 dark:border-gray-700 ${z.chatMessage.other} min-w-0 max-w-full break-words overflow-hidden`, style: { overflowWrap: "anywhere", wordBreak: "break-word", hyphens: "auto" }, children: [
32457
+ /* @__PURE__ */ N("div", { className: `flex h-full flex-col justify-between border px-3 py-2 rounded-2xl shadow-lg backdrop-bl-sm message-bubble rounded-bl-md message-hover border-gray-200 dark:border-gray-700 ${U.chatMessage.other} min-w-0 max-w-full break-words overflow-hidden`, style: { overflowWrap: "anywhere", wordBreak: "break-word", hyphens: "auto" }, children: [
32458
32458
  /* @__PURE__ */ m(
32459
32459
  wo,
32460
32460
  {
@@ -32472,7 +32472,7 @@ function Jl({
32472
32472
  initial: { opacity: 0 },
32473
32473
  animate: { opacity: 1 },
32474
32474
  transition: { delay: 0.2 },
32475
- className: `text-xs ${z.text.muted} mt-1 opacity-0 group-hover:opacity-100 transition-opacity duration-200`,
32475
+ className: `text-xs ${U.text.muted} mt-1 opacity-0 group-hover:opacity-100 transition-opacity duration-200`,
32476
32476
  children: (/* @__PURE__ */ new Date()).toLocaleTimeString([], {
32477
32477
  hour: "2-digit",
32478
32478
  minute: "2-digit"
@@ -32504,7 +32504,7 @@ function Jl({
32504
32504
  "button",
32505
32505
  {
32506
32506
  className: `whitespace-nowrap px-3 py-1 rounded-full border shadow-sm flex-shrink-0 transition-all duration-150 font-medium text-sm focus:outline-none focus:ring-2 focus:ring-blue-400/40
32507
- ${t === "light" ? "bg-white text-blue-700 border-blue-200 hover:bg-blue-50 hover:text-blue-900" : t === "dark" ? "bg-gray-800 text-blue-300 border-gray-700 hover:bg-gray-700 hover:text-white" : ((ke = z.suggestedResponse) == null ? void 0 : ke.container) || "bg-gradient-to-br from-blue-500 to-purple-600 text-white border-blue-400 hover:from-blue-600 hover:to-purple-700"}
32507
+ ${t === "light" ? "bg-white text-blue-700 border-blue-200 hover:bg-blue-50 hover:text-blue-900" : t === "dark" ? "bg-gray-800 text-blue-300 border-gray-700 hover:bg-gray-700 hover:text-white" : ((ke = U.suggestedResponse) == null ? void 0 : ke.container) || "bg-gradient-to-br from-blue-500 to-purple-600 text-white border-blue-400 hover:from-blue-600 hover:to-purple-700"}
32508
32508
  `,
32509
32509
  style: {
32510
32510
  boxShadow: t === "vox" ? "0 2px 8px 0 rgba(80,60,200,0.10)" : void 0,
@@ -32592,7 +32592,7 @@ const Ym = Me.forwardRef(({
32592
32592
  W.disconnect(), window.removeEventListener("resize", q);
32593
32593
  };
32594
32594
  }, []), Yw();
32595
- const { agent: { isActive: O = !1 } = {} } = o ? Al(o) : { agent: { isActive: !1 } }, b = fo(o, "microphone"), M = Ut(i), I = Me.useMemo(() => o != null && o.getCurrentSession ? !!o.getCurrentSession() : !1, [o]), F = Me.useMemo(() => o != null && o.getIsAgentConnected && o.getIsAgentConnected() || h, [o, h]), D = O || F;
32595
+ const { agent: { isActive: O = !1 } = {} } = o ? Al(o) : { agent: { isActive: !1 } }, b = fo(o, "microphone"), M = zt(i), I = Me.useMemo(() => o != null && o.getCurrentSession ? !!o.getCurrentSession() : !1, [o]), F = Me.useMemo(() => o != null && o.getIsAgentConnected && o.getIsAgentConnected() || h, [o, h]), D = O || F;
32596
32596
  Me.useEffect(() => {
32597
32597
  D && y && E(!1);
32598
32598
  }, [D, y]), Me.useEffect(() => {
@@ -32656,7 +32656,7 @@ const Ym = Me.forwardRef(({
32656
32656
  M.main,
32657
32657
  s === "fullscreen" ? "max-w-none" : "",
32658
32658
  "overflow-hidden h-full"
32659
- ), V = a && (s === "popup" || s === "fullscreen"), z = Me.useMemo(() => d ? "Agent is taking longer than expected..." : I ? "Room connected. Waiting for agent..." : r, [d, I, r]), x = Me.useMemo(() => d ? "Please check your connection or try again." : I ? "The agent will join shortly." : "Agent is connecting... This may take a moment.", [d, I]);
32659
+ ), V = a && (s === "popup" || s === "fullscreen"), U = Me.useMemo(() => d ? "Agent is taking longer than expected..." : I ? "Room connected. Waiting for agent..." : r, [d, I, r]), x = Me.useMemo(() => d ? "Please check your connection or try again." : I ? "The agent will join shortly." : "Agent is connecting... This may take a moment.", [d, I]);
32660
32660
  return y ? /* @__PURE__ */ m("main", { ref: l, className: je(X, "relative", e && "pointer-events-none opacity-50"), children: (V || k) && /* @__PURE__ */ N("div", { className: `flex items-center justify-between w-full p-4 border-b ${(($ = M.chatHeader) == null ? void 0 : $.container) || "border-gray-200"}`, children: [
32661
32661
  /* @__PURE__ */ m("div", { children: /* @__PURE__ */ m("h3", { className: `font-semibold ${M.text.primary}`, children: "Voice Session" }) }),
32662
32662
  k && /* @__PURE__ */ m(
@@ -32686,7 +32686,7 @@ const Ym = Me.forwardRef(({
32686
32686
  /* @__PURE__ */ N("div", { className: "w-full flex-1 flex flex-col items-center px-0 min-h-0 overflow-hidden", children: [
32687
32687
  !D && /* @__PURE__ */ N("div", { className: "flex flex-col items-center justify-center w-full h-full min-h-[180px]", children: [
32688
32688
  /* @__PURE__ */ m(Le.div, { animate: { rotate: 360, scale: [1, 1.1, 1] }, transition: { rotate: { duration: 2, repeat: 1 / 0, ease: "linear" }, scale: { duration: 1, repeat: 1 / 0, ease: "easeInOut" } }, className: "w-12 h-12 mb-4", children: /* @__PURE__ */ m(Ol, { className: M.spinner, weight: "bold" }) }),
32689
- /* @__PURE__ */ m(Le.span, { initial: { opacity: 0, y: 10 }, animate: { opacity: 1, y: 0 }, className: `text-sm opacity-80 ${M.text.muted} text-center max-w-xs`, children: z }),
32689
+ /* @__PURE__ */ m(Le.span, { initial: { opacity: 0, y: 10 }, animate: { opacity: 1, y: 0 }, className: `text-sm opacity-80 ${M.text.muted} text-center max-w-xs`, children: U }),
32690
32690
  /* @__PURE__ */ m(Le.p, { initial: { opacity: 0 }, animate: { opacity: 1 }, transition: { delay: 2 }, className: `text-xs ${M.text.muted} mt-2 text-center opacity-60`, children: x }),
32691
32691
  d && a && /* @__PURE__ */ m(Le.button, { initial: { opacity: 0, scale: 0.9 }, animate: { opacity: 1, scale: 1 }, transition: { delay: 0.5 }, onClick: a, className: `mt-4 px-4 py-2 rounded-lg ${((S = M.chatHeader) == null ? void 0 : S.backButton) || "bg-gray-100 hover:bg-gray-200"} transition-colors`, children: "Go Back" })
32692
32692
  ] }),
@@ -32739,7 +32739,7 @@ const Ym = Me.forwardRef(({
32739
32739
  Ym.displayName = "SessionView";
32740
32740
  function jd({ trackRef: e, participant: t, isLocal: n = !1, className: r = "", theme: i }) {
32741
32741
  var l;
32742
- const o = Ut(i), s = (t == null ? void 0 : t.name) || (t == null ? void 0 : t.identity) || (n ? "You" : "Participant"), a = (e == null ? void 0 : e.publication) && !e.publication.isMuted;
32742
+ const o = zt(i), s = (t == null ? void 0 : t.name) || (t == null ? void 0 : t.identity) || (n ? "You" : "Participant"), a = (e == null ? void 0 : e.publication) && !e.publication.isMuted;
32743
32743
  return /* @__PURE__ */ N("div", { className: `relative rounded-lg overflow-hidden ${o.video.tile} ${r}`, children: [
32744
32744
  a ? /* @__PURE__ */ m(
32745
32745
  Oo,
@@ -32761,7 +32761,7 @@ function NA({
32761
32761
  onEndCall: o
32762
32762
  }) {
32763
32763
  var Y;
32764
- const s = Ut(t), [a, l] = P.useState(!1), [c, u] = P.useState(!1), d = P.useMemo(() => {
32764
+ const s = zt(t), [a, l] = P.useState(!1), [c, u] = P.useState(!1), d = P.useMemo(() => {
32765
32765
  const te = e.getCurrentAgentInfo();
32766
32766
  return Rl(te);
32767
32767
  }, [e]), { userVideoEnabled: f, agentAvatarEnabled: h, screenshareEnabled: g } = P.useMemo(
@@ -32818,9 +32818,9 @@ function NA({
32818
32818
  };
32819
32819
  }
32820
32820
  }, [A]);
32821
- const z = k == null ? void 0 : k.localParticipant, x = P.useMemo(() => (e ? e.getCameraTrackRefs() : []).find((te) => te.participant === z), [e, z]), K = C.filter(
32822
- (te) => te.participant !== z
32823
- )[0], S = P.useMemo(() => (R || []).find((te) => te.participant === z), [R, z]);
32821
+ const U = k == null ? void 0 : k.localParticipant, x = P.useMemo(() => (e ? e.getCameraTrackRefs() : []).find((te) => te.participant === U), [e, U]), K = C.filter(
32822
+ (te) => te.participant !== U
32823
+ )[0], S = P.useMemo(() => (R || []).find((te) => te.participant === U), [R, U]);
32824
32824
  return /* @__PURE__ */ N("div", { className: `flex flex-col h-full ${s.video.container} relative`, children: [
32825
32825
  /* @__PURE__ */ N("div", { className: `flex items-center justify-between p-4 border-b ${s.video.header}`, children: [
32826
32826
  /* @__PURE__ */ N("div", { className: "flex items-center gap-3", children: [
@@ -32940,7 +32940,7 @@ function NA({
32940
32940
  jd,
32941
32941
  {
32942
32942
  trackRef: x,
32943
- participant: z || void 0,
32943
+ participant: U || void 0,
32944
32944
  isLocal: !0,
32945
32945
  theme: t,
32946
32946
  className: "w-full h-full"
@@ -33148,7 +33148,7 @@ function IA() {
33148
33148
  }
33149
33149
  }
33150
33150
  var k = l, C = c, R = a, A = s, O = t, b = u, M = r, I = g, F = h, D = n, G = o, ie = i, X = d, V = !1;
33151
- function z(L) {
33151
+ function U(L) {
33152
33152
  return V || (V = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), x(L) || _(L) === l;
33153
33153
  }
33154
33154
  function x(L) {
@@ -33187,7 +33187,7 @@ function IA() {
33187
33187
  function xe(L) {
33188
33188
  return _(L) === d;
33189
33189
  }
33190
- Ge.AsyncMode = k, Ge.ConcurrentMode = C, Ge.ContextConsumer = R, Ge.ContextProvider = A, Ge.Element = O, Ge.ForwardRef = b, Ge.Fragment = M, Ge.Lazy = I, Ge.Memo = F, Ge.Portal = D, Ge.Profiler = G, Ge.StrictMode = ie, Ge.Suspense = X, Ge.isAsyncMode = z, Ge.isConcurrentMode = x, Ge.isContextConsumer = $, Ge.isContextProvider = K, Ge.isElement = S, Ge.isForwardRef = Y, Ge.isFragment = te, Ge.isLazy = B, Ge.isMemo = q, Ge.isPortal = W, Ge.isProfiler = ce, Ge.isStrictMode = Q, Ge.isSuspense = xe, Ge.isValidElementType = w, Ge.typeOf = _;
33190
+ Ge.AsyncMode = k, Ge.ConcurrentMode = C, Ge.ContextConsumer = R, Ge.ContextProvider = A, Ge.Element = O, Ge.ForwardRef = b, Ge.Fragment = M, Ge.Lazy = I, Ge.Memo = F, Ge.Portal = D, Ge.Profiler = G, Ge.StrictMode = ie, Ge.Suspense = X, Ge.isAsyncMode = U, Ge.isConcurrentMode = x, Ge.isContextConsumer = $, Ge.isContextProvider = K, Ge.isElement = S, Ge.isForwardRef = Y, Ge.isFragment = te, Ge.isLazy = B, Ge.isMemo = q, Ge.isPortal = W, Ge.isProfiler = ce, Ge.isStrictMode = Q, Ge.isSuspense = xe, Ge.isValidElementType = w, Ge.typeOf = _;
33191
33191
  }()), Ge;
33192
33192
  }
33193
33193
  var qd;
@@ -33440,7 +33440,7 @@ function DA() {
33440
33440
  function C(x) {
33441
33441
  function $(K, S, Y, te, B) {
33442
33442
  if (!(K[S] instanceof x)) {
33443
- var q = x.name || f, W = z(K[S]);
33443
+ var q = x.name || f, W = U(K[S]);
33444
33444
  return new p("Invalid " + te + " `" + B + "` of type " + ("`" + W + "` supplied to `" + Y + "`, expected ") + ("instance of `" + q + "`."));
33445
33445
  }
33446
33446
  return null;
@@ -33620,7 +33620,7 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
33620
33620
  return $;
33621
33621
  }
33622
33622
  }
33623
- function z(x) {
33623
+ function U(x) {
33624
33624
  return !x.constructor || !x.constructor.name ? f : x.constructor.name;
33625
33625
  }
33626
33626
  return h.checkPropTypes = i, h.resetWarningCache = i.resetWarningCache, h.PropTypes = h, h;
@@ -33685,7 +33685,7 @@ function FA() {
33685
33685
  return eo.exports;
33686
33686
  }
33687
33687
  var BA = /* @__PURE__ */ FA();
33688
- const ze = /* @__PURE__ */ $o(BA);
33688
+ const Ue = /* @__PURE__ */ $o(BA);
33689
33689
  function $A(e, t, n = void 0) {
33690
33690
  const r = {};
33691
33691
  for (const i in e) {
@@ -33784,7 +33784,7 @@ var Ye = {};
33784
33784
  * LICENSE file in the root directory of this source tree.
33785
33785
  */
33786
33786
  var rf;
33787
- function UA() {
33787
+ function zA() {
33788
33788
  return rf || (rf = 1, process.env.NODE_ENV !== "production" && function() {
33789
33789
  function e(p) {
33790
33790
  if (typeof p == "object" && p !== null) {
@@ -33848,10 +33848,10 @@ function UA() {
33848
33848
  }()), Ye;
33849
33849
  }
33850
33850
  var of;
33851
- function zA() {
33852
- return of || (of = 1, process.env.NODE_ENV === "production" ? no.exports = /* @__PURE__ */ VA() : no.exports = /* @__PURE__ */ UA()), no.exports;
33851
+ function UA() {
33852
+ return of || (of = 1, process.env.NODE_ENV === "production" ? no.exports = /* @__PURE__ */ VA() : no.exports = /* @__PURE__ */ zA()), no.exports;
33853
33853
  }
33854
- var Ao = /* @__PURE__ */ zA();
33854
+ var Ao = /* @__PURE__ */ UA();
33855
33855
  function Tn(e) {
33856
33856
  if (typeof e != "object" || e === null)
33857
33857
  return !1;
@@ -33883,7 +33883,7 @@ function pi(e, t) {
33883
33883
  // No need to clone deep, it's way faster.
33884
33884
  }) : e;
33885
33885
  }
33886
- const qn = process.env.NODE_ENV !== "production" ? ze.oneOfType([ze.number, ze.string, ze.object, ze.array]) : {};
33886
+ const qn = process.env.NODE_ENV !== "production" ? Ue.oneOfType([Ue.number, Ue.string, Ue.object, Ue.array]) : {};
33887
33887
  function sf(e, t) {
33888
33888
  if (!e.containerQueries)
33889
33889
  return t;
@@ -34715,10 +34715,10 @@ var FM = /[A-Z]|^ms/g, BM = /_EMO_([^_]+?)_([^]*?)_EMO_/g, eg = function(t) {
34715
34715
  case "animationName":
34716
34716
  if (typeof n == "string")
34717
34717
  return n.replace(BM, function(r, i, o) {
34718
- return Un = {
34718
+ return zn = {
34719
34719
  name: i,
34720
34720
  styles: o,
34721
- next: Un
34721
+ next: zn
34722
34722
  }, i;
34723
34723
  });
34724
34724
  }
@@ -34736,20 +34736,20 @@ function Ro(e, t, n) {
34736
34736
  case "object": {
34737
34737
  var i = n;
34738
34738
  if (i.anim === 1)
34739
- return Un = {
34739
+ return zn = {
34740
34740
  name: i.name,
34741
34741
  styles: i.styles,
34742
- next: Un
34742
+ next: zn
34743
34743
  }, i.name;
34744
34744
  var o = n;
34745
34745
  if (o.styles !== void 0) {
34746
34746
  var s = o.next;
34747
34747
  if (s !== void 0)
34748
34748
  for (; s !== void 0; )
34749
- Un = {
34749
+ zn = {
34750
34750
  name: s.name,
34751
34751
  styles: s.styles,
34752
- next: Un
34752
+ next: zn
34753
34753
  }, s = s.next;
34754
34754
  var a = o.styles + ";";
34755
34755
  return a;
@@ -34789,12 +34789,12 @@ function $M(e, t, n) {
34789
34789
  }
34790
34790
  return r;
34791
34791
  }
34792
- var ff = /label:\s*([^\s;{]+)\s*(;|$)/g, Un;
34792
+ var ff = /label:\s*([^\s;{]+)\s*(;|$)/g, zn;
34793
34793
  function VM(e, t, n) {
34794
34794
  if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
34795
34795
  return e[0];
34796
34796
  var r = !0, i = "";
34797
- Un = void 0;
34797
+ zn = void 0;
34798
34798
  var o = e[0];
34799
34799
  if (o == null || o.raw === void 0)
34800
34800
  r = !1, i += Ro(n, t, o);
@@ -34814,7 +34814,7 @@ function VM(e, t, n) {
34814
34814
  return {
34815
34815
  name: d,
34816
34816
  styles: i,
34817
- next: Un
34817
+ next: zn
34818
34818
  };
34819
34819
  }
34820
34820
  /**
@@ -34824,7 +34824,7 @@ function VM(e, t, n) {
34824
34824
  * This source code is licensed under the MIT license found in the
34825
34825
  * LICENSE file in the root directory of this source tree.
34826
34826
  */
34827
- function UM(e, t) {
34827
+ function zM(e, t) {
34828
34828
  const n = yb(e, t);
34829
34829
  return process.env.NODE_ENV !== "production" ? (...r) => {
34830
34830
  const i = typeof e == "string" ? `"${e}"` : "component";
@@ -34832,7 +34832,7 @@ function UM(e, t) {
34832
34832
  `)) : r.some((o) => o === void 0) && console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`), n(...r);
34833
34833
  } : n;
34834
34834
  }
34835
- function zM(e, t) {
34835
+ function UM(e, t) {
34836
34836
  Array.isArray(e.__emotion_styles) && (e.__emotion_styles = t(e.__emotion_styles));
34837
34837
  }
34838
34838
  const hf = [];
@@ -35086,7 +35086,7 @@ function JM(e = {}) {
35086
35086
  QM(a, t, n);
35087
35087
  }
35088
35088
  return (a, l = {}) => {
35089
- zM(a, (C) => C.filter((R) => R !== Br));
35089
+ UM(a, (C) => C.filter((R) => R !== Br));
35090
35090
  const {
35091
35091
  name: c,
35092
35092
  slot: u,
@@ -35103,7 +35103,7 @@ function JM(e = {}) {
35103
35103
  ), y = f || !1;
35104
35104
  let E = Js;
35105
35105
  u === "Root" || u === "root" ? E = r : u ? E = i : rR(a) && (E = void 0);
35106
- const w = UM(a, {
35106
+ const w = zM(a, {
35107
35107
  shouldForwardProp: E,
35108
35108
  label: tR(c, u),
35109
35109
  ...g
@@ -35129,8 +35129,8 @@ function JM(e = {}) {
35129
35129
  if (!G)
35130
35130
  return null;
35131
35131
  const ie = {};
35132
- for (const z in G)
35133
- ie[z] = po(F, G[z], F.theme.modularCssLayers ? "theme" : void 0);
35132
+ for (const U in G)
35133
+ ie[U] = po(F, G[U], F.theme.modularCssLayers ? "theme" : void 0);
35134
35134
  return h(F, ie);
35135
35135
  }), c && !v && O.push(function(F) {
35136
35136
  var ie, X;
@@ -35332,7 +35332,7 @@ function io(e, t, n) {
35332
35332
  }
35333
35333
  }
35334
35334
  const cR = /* @__PURE__ */ P.createContext(void 0);
35335
- process.env.NODE_ENV !== "production" && (ze.node, ze.object);
35335
+ process.env.NODE_ENV !== "production" && (Ue.node, Ue.object);
35336
35336
  function uR(e) {
35337
35337
  const {
35338
35338
  theme: t,
@@ -36098,7 +36098,7 @@ function VR(e) {
36098
36098
  let t;
36099
36099
  return e < 1 ? t = 5.11916 * e ** 2 : t = 4.5 * Math.log(e + 1) + 2, Math.round(t * 10) / 1e3;
36100
36100
  }
36101
- const UR = [...Array(25)].map((e, t) => {
36101
+ const zR = [...Array(25)].map((e, t) => {
36102
36102
  if (t === 0)
36103
36103
  return "none";
36104
36104
  const n = VR(t);
@@ -36113,9 +36113,9 @@ function dg(e) {
36113
36113
  };
36114
36114
  }
36115
36115
  function fg(e) {
36116
- return e === "dark" ? UR : [];
36116
+ return e === "dark" ? zR : [];
36117
36117
  }
36118
- function zR(e) {
36118
+ function UR(e) {
36119
36119
  const {
36120
36120
  palette: t = {
36121
36121
  mode: "light"
@@ -36182,7 +36182,7 @@ function GR(e, t) {
36182
36182
  e[n] || (e[n] = {});
36183
36183
  });
36184
36184
  }
36185
- function U(e, t, n) {
36185
+ function z(e, t, n) {
36186
36186
  !e[t] && n && (e[t] = n);
36187
36187
  }
36188
36188
  function si(e) {
@@ -36207,7 +36207,7 @@ function ta(e, t, n, r) {
36207
36207
  t = t === !0 ? {} : t;
36208
36208
  const i = r === "dark" ? "dark" : "light";
36209
36209
  if (!n) {
36210
- e[r] = zR({
36210
+ e[r] = UR({
36211
36211
  ...t,
36212
36212
  palette: {
36213
36213
  mode: i,
@@ -36280,19 +36280,19 @@ function YR(e = {}, ...t) {
36280
36280
  const F = I.split("-"), D = F[1], G = F[2];
36281
36281
  return f(I, b[D][G]);
36282
36282
  };
36283
- if (b.mode === "light" && (U(b.common, "background", "#fff"), U(b.common, "onBackground", "#000")), b.mode === "dark" && (U(b.common, "background", "#000"), U(b.common, "onBackground", "#fff")), GR(b, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), b.mode === "light") {
36284
- U(b.Alert, "errorColor", Je(b.error.light, 0.6)), U(b.Alert, "infoColor", Je(b.info.light, 0.6)), U(b.Alert, "successColor", Je(b.success.light, 0.6)), U(b.Alert, "warningColor", Je(b.warning.light, 0.6)), U(b.Alert, "errorFilledBg", M("palette-error-main")), U(b.Alert, "infoFilledBg", M("palette-info-main")), U(b.Alert, "successFilledBg", M("palette-success-main")), U(b.Alert, "warningFilledBg", M("palette-warning-main")), U(b.Alert, "errorFilledColor", bn(() => b.getContrastText(b.error.main))), U(b.Alert, "infoFilledColor", bn(() => b.getContrastText(b.info.main))), U(b.Alert, "successFilledColor", bn(() => b.getContrastText(b.success.main))), U(b.Alert, "warningFilledColor", bn(() => b.getContrastText(b.warning.main))), U(b.Alert, "errorStandardBg", et(b.error.light, 0.9)), U(b.Alert, "infoStandardBg", et(b.info.light, 0.9)), U(b.Alert, "successStandardBg", et(b.success.light, 0.9)), U(b.Alert, "warningStandardBg", et(b.warning.light, 0.9)), U(b.Alert, "errorIconColor", M("palette-error-main")), U(b.Alert, "infoIconColor", M("palette-info-main")), U(b.Alert, "successIconColor", M("palette-success-main")), U(b.Alert, "warningIconColor", M("palette-warning-main")), U(b.AppBar, "defaultBg", M("palette-grey-100")), U(b.Avatar, "defaultBg", M("palette-grey-400")), U(b.Button, "inheritContainedBg", M("palette-grey-300")), U(b.Button, "inheritContainedHoverBg", M("palette-grey-A100")), U(b.Chip, "defaultBorder", M("palette-grey-400")), U(b.Chip, "defaultAvatarColor", M("palette-grey-700")), U(b.Chip, "defaultIconColor", M("palette-grey-700")), U(b.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), U(b.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), U(b.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), U(b.LinearProgress, "primaryBg", et(b.primary.main, 0.62)), U(b.LinearProgress, "secondaryBg", et(b.secondary.main, 0.62)), U(b.LinearProgress, "errorBg", et(b.error.main, 0.62)), U(b.LinearProgress, "infoBg", et(b.info.main, 0.62)), U(b.LinearProgress, "successBg", et(b.success.main, 0.62)), U(b.LinearProgress, "warningBg", et(b.warning.main, 0.62)), U(b.Skeleton, "bg", `rgba(${M("palette-text-primaryChannel")} / 0.11)`), U(b.Slider, "primaryTrack", et(b.primary.main, 0.62)), U(b.Slider, "secondaryTrack", et(b.secondary.main, 0.62)), U(b.Slider, "errorTrack", et(b.error.main, 0.62)), U(b.Slider, "infoTrack", et(b.info.main, 0.62)), U(b.Slider, "successTrack", et(b.success.main, 0.62)), U(b.Slider, "warningTrack", et(b.warning.main, 0.62));
36283
+ if (b.mode === "light" && (z(b.common, "background", "#fff"), z(b.common, "onBackground", "#000")), b.mode === "dark" && (z(b.common, "background", "#000"), z(b.common, "onBackground", "#fff")), GR(b, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), b.mode === "light") {
36284
+ z(b.Alert, "errorColor", Je(b.error.light, 0.6)), z(b.Alert, "infoColor", Je(b.info.light, 0.6)), z(b.Alert, "successColor", Je(b.success.light, 0.6)), z(b.Alert, "warningColor", Je(b.warning.light, 0.6)), z(b.Alert, "errorFilledBg", M("palette-error-main")), z(b.Alert, "infoFilledBg", M("palette-info-main")), z(b.Alert, "successFilledBg", M("palette-success-main")), z(b.Alert, "warningFilledBg", M("palette-warning-main")), z(b.Alert, "errorFilledColor", bn(() => b.getContrastText(b.error.main))), z(b.Alert, "infoFilledColor", bn(() => b.getContrastText(b.info.main))), z(b.Alert, "successFilledColor", bn(() => b.getContrastText(b.success.main))), z(b.Alert, "warningFilledColor", bn(() => b.getContrastText(b.warning.main))), z(b.Alert, "errorStandardBg", et(b.error.light, 0.9)), z(b.Alert, "infoStandardBg", et(b.info.light, 0.9)), z(b.Alert, "successStandardBg", et(b.success.light, 0.9)), z(b.Alert, "warningStandardBg", et(b.warning.light, 0.9)), z(b.Alert, "errorIconColor", M("palette-error-main")), z(b.Alert, "infoIconColor", M("palette-info-main")), z(b.Alert, "successIconColor", M("palette-success-main")), z(b.Alert, "warningIconColor", M("palette-warning-main")), z(b.AppBar, "defaultBg", M("palette-grey-100")), z(b.Avatar, "defaultBg", M("palette-grey-400")), z(b.Button, "inheritContainedBg", M("palette-grey-300")), z(b.Button, "inheritContainedHoverBg", M("palette-grey-A100")), z(b.Chip, "defaultBorder", M("palette-grey-400")), z(b.Chip, "defaultAvatarColor", M("palette-grey-700")), z(b.Chip, "defaultIconColor", M("palette-grey-700")), z(b.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), z(b.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), z(b.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), z(b.LinearProgress, "primaryBg", et(b.primary.main, 0.62)), z(b.LinearProgress, "secondaryBg", et(b.secondary.main, 0.62)), z(b.LinearProgress, "errorBg", et(b.error.main, 0.62)), z(b.LinearProgress, "infoBg", et(b.info.main, 0.62)), z(b.LinearProgress, "successBg", et(b.success.main, 0.62)), z(b.LinearProgress, "warningBg", et(b.warning.main, 0.62)), z(b.Skeleton, "bg", `rgba(${M("palette-text-primaryChannel")} / 0.11)`), z(b.Slider, "primaryTrack", et(b.primary.main, 0.62)), z(b.Slider, "secondaryTrack", et(b.secondary.main, 0.62)), z(b.Slider, "errorTrack", et(b.error.main, 0.62)), z(b.Slider, "infoTrack", et(b.info.main, 0.62)), z(b.Slider, "successTrack", et(b.success.main, 0.62)), z(b.Slider, "warningTrack", et(b.warning.main, 0.62));
36285
36285
  const I = io(b.background.default, 0.8);
36286
- U(b.SnackbarContent, "bg", I), U(b.SnackbarContent, "color", bn(() => b.getContrastText(I))), U(b.SpeedDialAction, "fabHoverBg", io(b.background.paper, 0.15)), U(b.StepConnector, "border", M("palette-grey-400")), U(b.StepContent, "border", M("palette-grey-400")), U(b.Switch, "defaultColor", M("palette-common-white")), U(b.Switch, "defaultDisabledColor", M("palette-grey-100")), U(b.Switch, "primaryDisabledColor", et(b.primary.main, 0.62)), U(b.Switch, "secondaryDisabledColor", et(b.secondary.main, 0.62)), U(b.Switch, "errorDisabledColor", et(b.error.main, 0.62)), U(b.Switch, "infoDisabledColor", et(b.info.main, 0.62)), U(b.Switch, "successDisabledColor", et(b.success.main, 0.62)), U(b.Switch, "warningDisabledColor", et(b.warning.main, 0.62)), U(b.TableCell, "border", et(ro(b.divider, 1), 0.88)), U(b.Tooltip, "bg", ro(b.grey[700], 0.92));
36286
+ z(b.SnackbarContent, "bg", I), z(b.SnackbarContent, "color", bn(() => b.getContrastText(I))), z(b.SpeedDialAction, "fabHoverBg", io(b.background.paper, 0.15)), z(b.StepConnector, "border", M("palette-grey-400")), z(b.StepContent, "border", M("palette-grey-400")), z(b.Switch, "defaultColor", M("palette-common-white")), z(b.Switch, "defaultDisabledColor", M("palette-grey-100")), z(b.Switch, "primaryDisabledColor", et(b.primary.main, 0.62)), z(b.Switch, "secondaryDisabledColor", et(b.secondary.main, 0.62)), z(b.Switch, "errorDisabledColor", et(b.error.main, 0.62)), z(b.Switch, "infoDisabledColor", et(b.info.main, 0.62)), z(b.Switch, "successDisabledColor", et(b.success.main, 0.62)), z(b.Switch, "warningDisabledColor", et(b.warning.main, 0.62)), z(b.TableCell, "border", et(ro(b.divider, 1), 0.88)), z(b.Tooltip, "bg", ro(b.grey[700], 0.92));
36287
36287
  }
36288
36288
  if (b.mode === "dark") {
36289
- U(b.Alert, "errorColor", et(b.error.light, 0.6)), U(b.Alert, "infoColor", et(b.info.light, 0.6)), U(b.Alert, "successColor", et(b.success.light, 0.6)), U(b.Alert, "warningColor", et(b.warning.light, 0.6)), U(b.Alert, "errorFilledBg", M("palette-error-dark")), U(b.Alert, "infoFilledBg", M("palette-info-dark")), U(b.Alert, "successFilledBg", M("palette-success-dark")), U(b.Alert, "warningFilledBg", M("palette-warning-dark")), U(b.Alert, "errorFilledColor", bn(() => b.getContrastText(b.error.dark))), U(b.Alert, "infoFilledColor", bn(() => b.getContrastText(b.info.dark))), U(b.Alert, "successFilledColor", bn(() => b.getContrastText(b.success.dark))), U(b.Alert, "warningFilledColor", bn(() => b.getContrastText(b.warning.dark))), U(b.Alert, "errorStandardBg", Je(b.error.light, 0.9)), U(b.Alert, "infoStandardBg", Je(b.info.light, 0.9)), U(b.Alert, "successStandardBg", Je(b.success.light, 0.9)), U(b.Alert, "warningStandardBg", Je(b.warning.light, 0.9)), U(b.Alert, "errorIconColor", M("palette-error-main")), U(b.Alert, "infoIconColor", M("palette-info-main")), U(b.Alert, "successIconColor", M("palette-success-main")), U(b.Alert, "warningIconColor", M("palette-warning-main")), U(b.AppBar, "defaultBg", M("palette-grey-900")), U(b.AppBar, "darkBg", M("palette-background-paper")), U(b.AppBar, "darkColor", M("palette-text-primary")), U(b.Avatar, "defaultBg", M("palette-grey-600")), U(b.Button, "inheritContainedBg", M("palette-grey-800")), U(b.Button, "inheritContainedHoverBg", M("palette-grey-700")), U(b.Chip, "defaultBorder", M("palette-grey-700")), U(b.Chip, "defaultAvatarColor", M("palette-grey-300")), U(b.Chip, "defaultIconColor", M("palette-grey-300")), U(b.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), U(b.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), U(b.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), U(b.LinearProgress, "primaryBg", Je(b.primary.main, 0.5)), U(b.LinearProgress, "secondaryBg", Je(b.secondary.main, 0.5)), U(b.LinearProgress, "errorBg", Je(b.error.main, 0.5)), U(b.LinearProgress, "infoBg", Je(b.info.main, 0.5)), U(b.LinearProgress, "successBg", Je(b.success.main, 0.5)), U(b.LinearProgress, "warningBg", Je(b.warning.main, 0.5)), U(b.Skeleton, "bg", `rgba(${M("palette-text-primaryChannel")} / 0.13)`), U(b.Slider, "primaryTrack", Je(b.primary.main, 0.5)), U(b.Slider, "secondaryTrack", Je(b.secondary.main, 0.5)), U(b.Slider, "errorTrack", Je(b.error.main, 0.5)), U(b.Slider, "infoTrack", Je(b.info.main, 0.5)), U(b.Slider, "successTrack", Je(b.success.main, 0.5)), U(b.Slider, "warningTrack", Je(b.warning.main, 0.5));
36289
+ z(b.Alert, "errorColor", et(b.error.light, 0.6)), z(b.Alert, "infoColor", et(b.info.light, 0.6)), z(b.Alert, "successColor", et(b.success.light, 0.6)), z(b.Alert, "warningColor", et(b.warning.light, 0.6)), z(b.Alert, "errorFilledBg", M("palette-error-dark")), z(b.Alert, "infoFilledBg", M("palette-info-dark")), z(b.Alert, "successFilledBg", M("palette-success-dark")), z(b.Alert, "warningFilledBg", M("palette-warning-dark")), z(b.Alert, "errorFilledColor", bn(() => b.getContrastText(b.error.dark))), z(b.Alert, "infoFilledColor", bn(() => b.getContrastText(b.info.dark))), z(b.Alert, "successFilledColor", bn(() => b.getContrastText(b.success.dark))), z(b.Alert, "warningFilledColor", bn(() => b.getContrastText(b.warning.dark))), z(b.Alert, "errorStandardBg", Je(b.error.light, 0.9)), z(b.Alert, "infoStandardBg", Je(b.info.light, 0.9)), z(b.Alert, "successStandardBg", Je(b.success.light, 0.9)), z(b.Alert, "warningStandardBg", Je(b.warning.light, 0.9)), z(b.Alert, "errorIconColor", M("palette-error-main")), z(b.Alert, "infoIconColor", M("palette-info-main")), z(b.Alert, "successIconColor", M("palette-success-main")), z(b.Alert, "warningIconColor", M("palette-warning-main")), z(b.AppBar, "defaultBg", M("palette-grey-900")), z(b.AppBar, "darkBg", M("palette-background-paper")), z(b.AppBar, "darkColor", M("palette-text-primary")), z(b.Avatar, "defaultBg", M("palette-grey-600")), z(b.Button, "inheritContainedBg", M("palette-grey-800")), z(b.Button, "inheritContainedHoverBg", M("palette-grey-700")), z(b.Chip, "defaultBorder", M("palette-grey-700")), z(b.Chip, "defaultAvatarColor", M("palette-grey-300")), z(b.Chip, "defaultIconColor", M("palette-grey-300")), z(b.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), z(b.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), z(b.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), z(b.LinearProgress, "primaryBg", Je(b.primary.main, 0.5)), z(b.LinearProgress, "secondaryBg", Je(b.secondary.main, 0.5)), z(b.LinearProgress, "errorBg", Je(b.error.main, 0.5)), z(b.LinearProgress, "infoBg", Je(b.info.main, 0.5)), z(b.LinearProgress, "successBg", Je(b.success.main, 0.5)), z(b.LinearProgress, "warningBg", Je(b.warning.main, 0.5)), z(b.Skeleton, "bg", `rgba(${M("palette-text-primaryChannel")} / 0.13)`), z(b.Slider, "primaryTrack", Je(b.primary.main, 0.5)), z(b.Slider, "secondaryTrack", Je(b.secondary.main, 0.5)), z(b.Slider, "errorTrack", Je(b.error.main, 0.5)), z(b.Slider, "infoTrack", Je(b.info.main, 0.5)), z(b.Slider, "successTrack", Je(b.success.main, 0.5)), z(b.Slider, "warningTrack", Je(b.warning.main, 0.5));
36290
36290
  const I = io(b.background.default, 0.98);
36291
- U(b.SnackbarContent, "bg", I), U(b.SnackbarContent, "color", bn(() => b.getContrastText(I))), U(b.SpeedDialAction, "fabHoverBg", io(b.background.paper, 0.15)), U(b.StepConnector, "border", M("palette-grey-600")), U(b.StepContent, "border", M("palette-grey-600")), U(b.Switch, "defaultColor", M("palette-grey-300")), U(b.Switch, "defaultDisabledColor", M("palette-grey-600")), U(b.Switch, "primaryDisabledColor", Je(b.primary.main, 0.55)), U(b.Switch, "secondaryDisabledColor", Je(b.secondary.main, 0.55)), U(b.Switch, "errorDisabledColor", Je(b.error.main, 0.55)), U(b.Switch, "infoDisabledColor", Je(b.info.main, 0.55)), U(b.Switch, "successDisabledColor", Je(b.success.main, 0.55)), U(b.Switch, "warningDisabledColor", Je(b.warning.main, 0.55)), U(b.TableCell, "border", Je(ro(b.divider, 1), 0.68)), U(b.Tooltip, "bg", ro(b.grey[700], 0.92));
36291
+ z(b.SnackbarContent, "bg", I), z(b.SnackbarContent, "color", bn(() => b.getContrastText(I))), z(b.SpeedDialAction, "fabHoverBg", io(b.background.paper, 0.15)), z(b.StepConnector, "border", M("palette-grey-600")), z(b.StepContent, "border", M("palette-grey-600")), z(b.Switch, "defaultColor", M("palette-grey-300")), z(b.Switch, "defaultDisabledColor", M("palette-grey-600")), z(b.Switch, "primaryDisabledColor", Je(b.primary.main, 0.55)), z(b.Switch, "secondaryDisabledColor", Je(b.secondary.main, 0.55)), z(b.Switch, "errorDisabledColor", Je(b.error.main, 0.55)), z(b.Switch, "infoDisabledColor", Je(b.info.main, 0.55)), z(b.Switch, "successDisabledColor", Je(b.success.main, 0.55)), z(b.Switch, "warningDisabledColor", Je(b.warning.main, 0.55)), z(b.TableCell, "border", Je(ro(b.divider, 1), 0.68)), z(b.Tooltip, "bg", ro(b.grey[700], 0.92));
36292
36292
  }
36293
36293
  Cn(b.background, "default"), Cn(b.background, "paper"), Cn(b.common, "background"), Cn(b.common, "onBackground"), Cn(b, "divider"), Object.keys(b).forEach((I) => {
36294
36294
  const F = b[I];
36295
- I !== "tonalOffset" && F && typeof F == "object" && (F.main && U(b[I], "mainChannel", oi(si(F.main))), F.light && U(b[I], "lightChannel", oi(si(F.light))), F.dark && U(b[I], "darkChannel", oi(si(F.dark))), F.contrastText && U(b[I], "contrastTextChannel", oi(si(F.contrastText))), I === "text" && (Cn(b[I], "primary"), Cn(b[I], "secondary")), I === "action" && (F.active && Cn(b[I], "active"), F.selected && Cn(b[I], "selected")));
36295
+ I !== "tonalOffset" && F && typeof F == "object" && (F.main && z(b[I], "mainChannel", oi(si(F.main))), F.light && z(b[I], "lightChannel", oi(si(F.light))), F.dark && z(b[I], "darkChannel", oi(si(F.dark))), F.contrastText && z(b[I], "contrastTextChannel", oi(si(F.contrastText))), I === "text" && (Cn(b[I], "primary"), Cn(b[I], "secondary")), I === "action" && (F.active && Cn(b[I], "active"), F.selected && Cn(b[I], "selected")));
36296
36296
  });
36297
36297
  }), _ = t.reduce((O, b) => Xt(O, b), _);
36298
36298
  const k = {
@@ -36382,7 +36382,7 @@ const eI = (e) => JR(e) && e !== "classes", tI = JM({
36382
36382
  defaultTheme: XR,
36383
36383
  rootShouldForwardProp: eI
36384
36384
  }), nI = fR;
36385
- process.env.NODE_ENV !== "production" && (ze.node, ze.object.isRequired);
36385
+ process.env.NODE_ENV !== "production" && (Ue.node, Ue.object.isRequired);
36386
36386
  function rI(e) {
36387
36387
  return dR(e);
36388
36388
  }
@@ -36552,15 +36552,15 @@ process.env.NODE_ENV !== "production" && (Io.propTypes = {
36552
36552
  /**
36553
36553
  * Node passed into the SVG element.
36554
36554
  */
36555
- children: ze.node,
36555
+ children: Ue.node,
36556
36556
  /**
36557
36557
  * Override or extend the styles applied to the component.
36558
36558
  */
36559
- classes: ze.object,
36559
+ classes: Ue.object,
36560
36560
  /**
36561
36561
  * @ignore
36562
36562
  */
36563
- className: ze.string,
36563
+ className: Ue.string,
36564
36564
  /**
36565
36565
  * The color of the component.
36566
36566
  * It supports both default and custom theme colors, which can be added as shown in the
@@ -36568,21 +36568,21 @@ process.env.NODE_ENV !== "production" && (Io.propTypes = {
36568
36568
  * You can use the `htmlColor` prop to apply a color attribute to the SVG element.
36569
36569
  * @default 'inherit'
36570
36570
  */
36571
- color: ze.oneOfType([ze.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), ze.string]),
36571
+ color: Ue.oneOfType([Ue.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), Ue.string]),
36572
36572
  /**
36573
36573
  * The component used for the root node.
36574
36574
  * Either a string to use a HTML element or a component.
36575
36575
  */
36576
- component: ze.elementType,
36576
+ component: Ue.elementType,
36577
36577
  /**
36578
36578
  * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
36579
36579
  * @default 'medium'
36580
36580
  */
36581
- fontSize: ze.oneOfType([ze.oneOf(["inherit", "large", "medium", "small"]), ze.string]),
36581
+ fontSize: Ue.oneOfType([Ue.oneOf(["inherit", "large", "medium", "small"]), Ue.string]),
36582
36582
  /**
36583
36583
  * Applies a color attribute to the SVG element.
36584
36584
  */
36585
- htmlColor: ze.string,
36585
+ htmlColor: Ue.string,
36586
36586
  /**
36587
36587
  * If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
36588
36588
  * prop will be ignored.
@@ -36590,22 +36590,22 @@ process.env.NODE_ENV !== "production" && (Io.propTypes = {
36590
36590
  * `component`'s viewBox to the root node.
36591
36591
  * @default false
36592
36592
  */
36593
- inheritViewBox: ze.bool,
36593
+ inheritViewBox: Ue.bool,
36594
36594
  /**
36595
36595
  * The shape-rendering attribute. The behavior of the different options is described on the
36596
36596
  * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/shape-rendering).
36597
36597
  * If you are having issues with blurry icons you should investigate this prop.
36598
36598
  */
36599
- shapeRendering: ze.string,
36599
+ shapeRendering: Ue.string,
36600
36600
  /**
36601
36601
  * The system prop that allows defining system overrides as well as additional CSS styles.
36602
36602
  */
36603
- sx: ze.oneOfType([ze.arrayOf(ze.oneOfType([ze.func, ze.object, ze.bool])), ze.func, ze.object]),
36603
+ sx: Ue.oneOfType([Ue.arrayOf(Ue.oneOfType([Ue.func, Ue.object, Ue.bool])), Ue.func, Ue.object]),
36604
36604
  /**
36605
36605
  * Provides a human-readable title for the element that contains it.
36606
36606
  * https://www.w3.org/TR/SVG-access/#Equivalent
36607
36607
  */
36608
- titleAccess: ze.string,
36608
+ titleAccess: Ue.string,
36609
36609
  /**
36610
36610
  * Allows you to redefine what the coordinates without units mean inside an SVG element.
36611
36611
  * For example, if the SVG element is 500 (width) by 200 (height),
@@ -36614,7 +36614,7 @@ process.env.NODE_ENV !== "production" && (Io.propTypes = {
36614
36614
  * to bottom right (50,20) and each unit will be worth 10px.
36615
36615
  * @default '0 0 24 24'
36616
36616
  */
36617
- viewBox: ze.string
36617
+ viewBox: Ue.string
36618
36618
  });
36619
36619
  Io.muiName = "SvgIcon";
36620
36620
  function lc(e, t) {
@@ -36636,7 +36636,7 @@ const aI = lc(/* @__PURE__ */ m("path", {
36636
36636
  d: "M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11z"
36637
36637
  }), "Videocam");
36638
36638
  function oo({ onClick: e, disabled: t, theme: n }) {
36639
- const r = Ut(n);
36639
+ const r = zt(n);
36640
36640
  return /* @__PURE__ */ m(
36641
36641
  "button",
36642
36642
  {
@@ -36650,7 +36650,7 @@ function oo({ onClick: e, disabled: t, theme: n }) {
36650
36650
  );
36651
36651
  }
36652
36652
  function na({ onClick: e, disabled: t, theme: n }) {
36653
- const r = Ut(n);
36653
+ const r = zt(n);
36654
36654
  return /* @__PURE__ */ m(
36655
36655
  "button",
36656
36656
  {
@@ -36664,7 +36664,7 @@ function na({ onClick: e, disabled: t, theme: n }) {
36664
36664
  );
36665
36665
  }
36666
36666
  function ra({ onClick: e, disabled: t, theme: n }) {
36667
- const r = Ut(n);
36667
+ const r = zt(n);
36668
36668
  return /* @__PURE__ */ m(
36669
36669
  "button",
36670
36670
  {
@@ -36678,7 +36678,7 @@ function ra({ onClick: e, disabled: t, theme: n }) {
36678
36678
  );
36679
36679
  }
36680
36680
  function uI({ prompts: e, theme: t }) {
36681
- const n = Ut(t), [r, i] = Se(0);
36681
+ const n = zt(t), [r, i] = Se(0);
36682
36682
  return Nt(() => {
36683
36683
  const o = setInterval(() => {
36684
36684
  i((s) => (s + 1) % e.length);
@@ -36721,7 +36721,7 @@ const hg = Me.forwardRef(({
36721
36721
  theme: l = "vox",
36722
36722
  modalities: c = ["voice", "chat", "video"]
36723
36723
  }, u) => {
36724
- const d = Ut(l), f = c.includes("voice"), h = c.includes("chat"), g = c.includes("video"), p = [f, h, g].filter(Boolean).length;
36724
+ const d = zt(l), f = c.includes("voice"), h = c.includes("chat"), g = c.includes("video"), p = [f, h, g].filter(Boolean).length;
36725
36725
  return /* @__PURE__ */ N("div", { className: "flex flex-col items-center h-full justify-center w-full relative px-8 py-16", "aria-disabled": e, style: { background: "transparent" }, children: [
36726
36726
  /* @__PURE__ */ m(
36727
36727
  "div",
@@ -38500,14 +38500,28 @@ class yI {
38500
38500
  console.warn("StreamHandlerManager: Initial JSON parse failed:", o);
38501
38501
  let s = r;
38502
38502
  try {
38503
- s = s.replace(/\bTrue\b/g, "true"), s = s.replace(/\bFalse\b/g, "false"), s = s.replace(/\bNone\b/g, "null"), s = s.replace(/,(\s*[}\]])/g, "$1"), s = s.replace(/:\s+/g, ": "), s = s.replace(/,(?!\s)/g, ", ");
38504
- const a = s.replace(/\\"/g, "___ESCAPED_QUOTE___");
38505
- let l = "", c = !1;
38506
- for (let u = 0; u < a.length; u++) {
38507
- const d = a[u], f = u > 0 ? a[u - 1] : "";
38508
- d === '"' && f !== "\\" ? (c = !c, l += d) : d === "'" && f !== "\\" && !c ? l += '"' : l += d;
38503
+ s = s.replace(/\bTrue\b/g, "true"), s = s.replace(/\bFalse\b/g, "false"), s = s.replace(/\bNone\b/g, "null"), s = s.replace(/,(\s*[}\]])/g, "$1");
38504
+ let a = "", l = !1, c = "", u = 0;
38505
+ for (let d = 0; d < s.length; d++) {
38506
+ const f = s[d];
38507
+ if ((d > 0 ? s[d - 1] : "") === "\\") {
38508
+ a += f;
38509
+ continue;
38510
+ }
38511
+ if ((f === '"' || f === "'") && !l) {
38512
+ l = !0, c = f, a += '"';
38513
+ continue;
38514
+ }
38515
+ if (f === c && l) {
38516
+ const g = d < s.length - 1 ? s[d + 1] : "";
38517
+ if (g === ":" || g === "," || g === "}" || g === "]" || g === "" || /\s/.test(g)) {
38518
+ l = !1, a += '"';
38519
+ continue;
38520
+ }
38521
+ }
38522
+ l && f === '"' ? a += '\\"' : a += f;
38509
38523
  }
38510
- s = l.replace(/___ESCAPED_QUOTE___/g, '\\"'), i = JSON.parse(s);
38524
+ s = a, console.log("StreamHandlerManager: After quote conversion (first 500 chars):", s.substring(0, 500)), i = JSON.parse(s), console.log("StreamHandlerManager: Successfully parsed with enhanced logic");
38511
38525
  } catch (a) {
38512
38526
  console.warn("StreamHandlerManager: Enhanced parsing also failed:", a), console.warn("Problematic JSON string (first 500 chars):", s == null ? void 0 : s.substring(0, 500)), console.warn("Full data:", r);
38513
38527
  try {
@@ -38719,14 +38733,14 @@ function ia({
38719
38733
  }) {
38720
38734
  const [i, o] = Se(null), [s, a] = Se(!1), [l, c] = Se(!1), [u, d] = Se(null), [f, h] = Se(null), [g, p] = Se("idle"), [v, y] = Se(null), [E, w] = Se([]), [_, k] = Se([]), [C, R] = Se([]);
38721
38735
  Nt(() => {
38722
- const z = r || new cc(e);
38723
- o(z);
38724
- const x = A(z);
38725
- return n && !r && O(z), () => {
38726
- x(), r || z.disconnect().catch(console.error);
38736
+ const U = r || new cc(e);
38737
+ o(U);
38738
+ const x = A(U);
38739
+ return n && !r && O(U), () => {
38740
+ x(), r || U.disconnect().catch(console.error);
38727
38741
  };
38728
38742
  }, [e, n, r]);
38729
- const A = (z) => {
38743
+ const A = (U) => {
38730
38744
  const x = () => {
38731
38745
  c(!0), d(null);
38732
38746
  }, $ = () => {
@@ -38754,11 +38768,11 @@ function ia({
38754
38768
  }, L = () => {
38755
38769
  console.log("🧹 VoxketProvider: Clearing chat messages and transcriptions"), k([]), R([]);
38756
38770
  };
38757
- return z.on("connection.connecting", x), z.on("connection.connected", $), z.on("connection.disconnected", K), z.on("connection.error", S), z.on("session.created", Y), z.on("session.state.changed", te), z.on("session.ended", B), z.on("participant.joined", q), z.on("participant.left", W), z.on("chat.message.received", ce), z.on("chat.message.sent", Q), z.on("transcription.received", xe), z.on("chat.history.cleared", L), () => {
38758
- console.log("📝 VoxketProvider: Cleaning up event listeners"), z.off("connection.connecting", x), z.off("connection.connected", $), z.off("connection.disconnected", K), z.off("connection.error", S), z.off("session.created", Y), z.off("session.state.changed", te), z.off("session.ended", B), z.off("participant.joined", q), z.off("participant.left", W), z.off("chat.message.received", ce), z.off("chat.message.sent", Q), z.off("chat.history.cleared", L), z.off("transcription.received", xe);
38771
+ return U.on("connection.connecting", x), U.on("connection.connected", $), U.on("connection.disconnected", K), U.on("connection.error", S), U.on("session.created", Y), U.on("session.state.changed", te), U.on("session.ended", B), U.on("participant.joined", q), U.on("participant.left", W), U.on("chat.message.received", ce), U.on("chat.message.sent", Q), U.on("transcription.received", xe), U.on("chat.history.cleared", L), () => {
38772
+ console.log("📝 VoxketProvider: Cleaning up event listeners"), U.off("connection.connecting", x), U.off("connection.connected", $), U.off("connection.disconnected", K), U.off("connection.error", S), U.off("session.created", Y), U.off("session.state.changed", te), U.off("session.ended", B), U.off("participant.joined", q), U.off("participant.left", W), U.off("chat.message.received", ce), U.off("chat.message.sent", Q), U.off("chat.history.cleared", L), U.off("transcription.received", xe);
38759
38773
  };
38760
- }, O = async (z) => {
38761
- const x = z || i;
38774
+ }, O = async (U) => {
38775
+ const x = U || i;
38762
38776
  if (x)
38763
38777
  try {
38764
38778
  await x.connect();
@@ -38781,15 +38795,15 @@ function ia({
38781
38795
  if (i)
38782
38796
  try {
38783
38797
  await i.disconnect();
38784
- } catch (z) {
38785
- console.error("Failed to disconnect:", z);
38798
+ } catch (U) {
38799
+ console.error("Failed to disconnect:", U);
38786
38800
  }
38787
38801
  },
38788
- createSession: async (z, x = {}) => {
38802
+ createSession: async (U, x = {}) => {
38789
38803
  if (!i)
38790
38804
  throw new Error("Client not initialized");
38791
38805
  const $ = {
38792
- agentId: z,
38806
+ agentId: U,
38793
38807
  participantName: x.participantName || "User",
38794
38808
  metadata: x.metadata,
38795
38809
  modalities: x.modalities || ["voice"]
@@ -38797,20 +38811,20 @@ function ia({
38797
38811
  return await i.createSession($);
38798
38812
  },
38799
38813
  endSession: async () => i ? await i.endSession() : null,
38800
- sendChatMessage: async (z) => {
38814
+ sendChatMessage: async (U) => {
38801
38815
  if (!i)
38802
38816
  throw new Error("Client not initialized");
38803
- await i.sendChatMessage(z);
38817
+ await i.sendChatMessage(U);
38804
38818
  },
38805
- setMicrophoneEnabled: async (z) => {
38819
+ setMicrophoneEnabled: async (U) => {
38806
38820
  if (!i)
38807
38821
  throw new Error("Client not initialized");
38808
- await i.setMicrophoneEnabled(z);
38822
+ await i.setMicrophoneEnabled(U);
38809
38823
  },
38810
- setCameraEnabled: async (z) => {
38824
+ setCameraEnabled: async (U) => {
38811
38825
  if (!i)
38812
38826
  throw new Error("Client not initialized");
38813
- await i.setCameraEnabled(z);
38827
+ await i.setCameraEnabled(U);
38814
38828
  },
38815
38829
  startScreenShare: async () => {
38816
38830
  if (!i)
@@ -39586,7 +39600,7 @@ function _I({
39586
39600
  mode: t,
39587
39601
  loadingText: n
39588
39602
  }) {
39589
- const r = Ut(e), i = () => {
39603
+ const r = zt(e), i = () => {
39590
39604
  switch (t) {
39591
39605
  case "voice":
39592
39606
  return n || "Connecting to voice agent...";
@@ -39619,7 +39633,7 @@ function kf({
39619
39633
  popupPosition: i = "bottom-right",
39620
39634
  onExpand: o
39621
39635
  }) {
39622
- const s = Ut(t);
39636
+ const s = zt(t);
39623
39637
  return n === "fullscreen" ? /* @__PURE__ */ m(
39624
39638
  "div",
39625
39639
  {
@@ -39776,7 +39790,7 @@ function TI(e) {
39776
39790
  onDisplayTypeChange: F,
39777
39791
  participantMetadata: D,
39778
39792
  popupModalityMode: G = "all"
39779
- } = e, [ie, X] = P.useState(!1), [V, z] = P.useState(null), [x, $] = P.useState(() => {
39793
+ } = e, [ie, X] = P.useState(!1), [V, U] = P.useState(null), [x, $] = P.useState(() => {
39780
39794
  try {
39781
39795
  if (I)
39782
39796
  return !!I.getCurrentSession();
@@ -39822,7 +39836,7 @@ function TI(e) {
39822
39836
  return console.log("🔄 Using existing VoxketClient to preserve session state"), I;
39823
39837
  if (!o || !i || !r) {
39824
39838
  const ot = `Missing required props: ${o ? "" : "appId "}${i ? "" : "appSecret "}${r ? "" : "baseUrl"}`;
39825
- return console.error("❌ VoxketClient creation failed:", ot), z(new Error(ot)), X(!0), null;
39839
+ return console.error("❌ VoxketClient creation failed:", ot), U(new Error(ot)), X(!0), null;
39826
39840
  }
39827
39841
  const ae = {
39828
39842
  appId: o,
@@ -39842,7 +39856,7 @@ function TI(e) {
39842
39856
  modalities: R
39843
39857
  }), new cc(ae);
39844
39858
  } catch (ae) {
39845
- return console.error("❌ Failed to create VoxketClient:", ae), z(ae), X(!0), null;
39859
+ return console.error("❌ Failed to create VoxketClient:", ae), U(ae), X(!0), null;
39846
39860
  }
39847
39861
  }, [I, o, i, r, Y, B, R]), At = P.useMemo(() => A === "popup" ? ne ? [ne] : ["voice", "chat", "video"] : R, [A, ne, R]), Re = P.useMemo(() => {
39848
39862
  try {
@@ -39936,7 +39950,7 @@ function TI(e) {
39936
39950
  const ve = async () => {
39937
39951
  try {
39938
39952
  if (!le) {
39939
- console.error("❌ VoxketClient not available"), z(new Error("VoxketClient not initialized")), X(!0);
39953
+ console.error("❌ VoxketClient not available"), U(new Error("VoxketClient not initialized")), X(!0);
39940
39954
  return;
39941
39955
  }
39942
39956
  S(!0), xe("voice"), console.log("🎤 Starting voice session...", { agentId: Y, participantName: B }), console.log("🎤 Pre-start state:", { currentMode: "voice", sessionStarted: !1, loading: !0 }), ln("USER_STARTED_VOICE_SESSION", { agentId: Y, participantName: B });
@@ -39953,7 +39967,7 @@ function TI(e) {
39953
39967
  }, Oe = async () => {
39954
39968
  try {
39955
39969
  if (!le) {
39956
- console.error("❌ VoxketClient not available"), z(new Error("VoxketClient not initialized")), X(!0);
39970
+ console.error("❌ VoxketClient not available"), U(new Error("VoxketClient not initialized")), X(!0);
39957
39971
  return;
39958
39972
  }
39959
39973
  S(!0), xe("chat"), console.log("💬 Starting chat session...", { agentId: Y, participantName: B }), ln("USER_STARTED_CHAT_SESSION", { agentId: Y, participantName: B });
@@ -39970,7 +39984,7 @@ function TI(e) {
39970
39984
  }, He = async () => {
39971
39985
  try {
39972
39986
  if (!le) {
39973
- console.error("❌ VoxketClient not available"), z(new Error("VoxketClient not initialized")), X(!0);
39987
+ console.error("❌ VoxketClient not available"), U(new Error("VoxketClient not initialized")), X(!0);
39974
39988
  return;
39975
39989
  }
39976
39990
  S(!0), xe("video"), console.log("📺 Starting video session...", { agentId: Y, participantName: B }), console.log("📺 Pre-start state:", { currentMode: "video", sessionStarted: !1, loading: !0 }), ln("USER_STARTED_VIDEO_SESSION", { agentId: Y, participantName: B });
@@ -39994,7 +40008,7 @@ function TI(e) {
39994
40008
  newLoading: !1,
39995
40009
  newSessionStarted: !1
39996
40010
  });
39997
- }, zt = () => {
40011
+ }, Ut = () => {
39998
40012
  const ae = !L;
39999
40013
  se(ae), M && M(ae), !ae && !(W && x) && (xe("welcome"), $(!1), ce(null));
40000
40014
  }, Gt = () => {
@@ -40119,7 +40133,7 @@ function TI(e) {
40119
40133
  "button",
40120
40134
  {
40121
40135
  onClick: () => {
40122
- X(!1), z(null), window.location.reload();
40136
+ X(!1), U(null), window.location.reload();
40123
40137
  },
40124
40138
  className: "px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700 transition-colors",
40125
40139
  children: "Retry"
@@ -40184,7 +40198,7 @@ function TI(e) {
40184
40198
  theme: y,
40185
40199
  client: le,
40186
40200
  displayType: A,
40187
- onBack: A === "popup" ? zt : Et,
40201
+ onBack: A === "popup" ? Ut : Et,
40188
40202
  initial: { opacity: 0, y: 40 },
40189
40203
  animate: { opacity: 1, y: 0 },
40190
40204
  exit: { opacity: 0, y: -40 },
@@ -40202,7 +40216,7 @@ function TI(e) {
40202
40216
  client: le,
40203
40217
  theme: y,
40204
40218
  displayType: A,
40205
- onBack: A === "popup" ? zt : Et,
40219
+ onBack: A === "popup" ? Ut : Et,
40206
40220
  onEndChat: Et,
40207
40221
  disabled: !1,
40208
40222
  initial: { opacity: 0, y: 40 },
@@ -40224,7 +40238,7 @@ function TI(e) {
40224
40238
  client: le,
40225
40239
  theme: y,
40226
40240
  displayType: A,
40227
- onBack: A === "popup" ? zt : Et,
40241
+ onBack: A === "popup" ? Ut : Et,
40228
40242
  onEndCall: Et,
40229
40243
  disabled: !1,
40230
40244
  initial: { opacity: 0, y: 40 },
@@ -40245,7 +40259,7 @@ function TI(e) {
40245
40259
  theme: y,
40246
40260
  displayType: A,
40247
40261
  popupPosition: O,
40248
- onClose: A === "fullscreen" ? Gt : zt,
40262
+ onClose: A === "fullscreen" ? Gt : Ut,
40249
40263
  children: qr
40250
40264
  }
40251
40265
  ) : /* @__PURE__ */ m("div", { className: Rt, style: Yn, children: /* @__PURE__ */ m(
@@ -41164,7 +41178,7 @@ function SO({
41164
41178
  Nt(() => {
41165
41179
  if (r && typeof document < "u") {
41166
41180
  const f = document.documentElement;
41167
- Object.entries(UI(o)).forEach(([h, g]) => {
41181
+ Object.entries(zI(o)).forEach(([h, g]) => {
41168
41182
  f.style.setProperty(`--voxket-${h}`, g);
41169
41183
  });
41170
41184
  }
@@ -41177,7 +41191,7 @@ function SO({
41177
41191
  };
41178
41192
  return /* @__PURE__ */ m(Sg.Provider, { value: d, children: /* @__PURE__ */ m("div", { className: `voxket-theme voxket-theme--${o.name} ${i}`, children: n }) });
41179
41193
  }
41180
- function UI(e) {
41194
+ function zI(e) {
41181
41195
  const t = {}, n = (r, i = "") => {
41182
41196
  for (const [o, s] of Object.entries(r)) {
41183
41197
  const a = i ? `${i}-${o}` : o;
@@ -41208,7 +41222,7 @@ const CO = gg(
41208
41222
  {
41209
41223
  onActivate: async (e) => {
41210
41224
  const t = e.config;
41211
- t.enableTranscription && zI(e), t.enableVoiceActivation && HI(e, t), console.log("Voice modality activated", t);
41225
+ t.enableTranscription && UI(e), t.enableVoiceActivation && HI(e, t), console.log("Voice modality activated", t);
41212
41226
  },
41213
41227
  onDeactivate: async (e) => {
41214
41228
  console.log("Voice modality deactivated");
@@ -41218,7 +41232,7 @@ const CO = gg(
41218
41232
  }
41219
41233
  }
41220
41234
  );
41221
- function zI(e, t) {
41235
+ function UI(e, t) {
41222
41236
  e.on("participant.speaking.started", (n) => {
41223
41237
  console.log("Transcription: Started for", n.name);
41224
41238
  }), e.on("participant.speaking.stopped", (n) => {
@@ -42147,7 +42161,7 @@ export {
42147
42161
  IO as default,
42148
42162
  Or as defaultTheme,
42149
42163
  Cf as enterpriseTheme,
42150
- UI as flattenTheme,
42164
+ zI as flattenTheme,
42151
42165
  Bw as formatSessionTimer,
42152
42166
  Lw as getChatCapabilities,
42153
42167
  Il as getSessionTimer,