@anam-ai/agent-widget 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
- var Ue, k, ei, ti, pe, Dt, ii, ni, ri, mt, lt, ct, ke = {}, oi = [], Ki = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Je = Array.isArray;
1
+ var Ue, k, ei, ti, pe, Dt, ii, ni, ri, Et, lt, ct, ke = {}, oi = [], Ki = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Je = Array.isArray;
2
2
  function ee(t, e) {
3
3
  for (var n in e) t[n] = e[n];
4
4
  return t;
5
5
  }
6
- function Et(t) {
6
+ function mt(t) {
7
7
  t && t.parentNode && t.parentNode.removeChild(t);
8
8
  }
9
9
  function Se(t, e, n) {
@@ -44,14 +44,14 @@ function He() {
44
44
  for (var t, e, n, o, l, s, u, c = 1; pe.length; ) pe.length > c && pe.sort(ni), t = pe.shift(), c = pe.length, t.__d && (n = void 0, o = void 0, l = (o = (e = t).__v).__e, s = [], u = [], e.__P && ((n = ee({}, o)).__v = o.__v + 1, k.vnode && k.vnode(n), gt(e.__P, n, o, e.__n, e.__P.namespaceURI, 32 & o.__u ? [l] : null, s, l ?? Ie(o), !!(32 & o.__u), u), n.__v = o.__v, n.__.__k[n.__i] = n, ci(s, n, u), o.__e = o.__ = null, n.__e != l && si(n)));
45
45
  He.__r = 0;
46
46
  }
47
- function ai(t, e, n, o, l, s, u, c, E, p, _) {
47
+ function ai(t, e, n, o, l, s, u, c, m, p, _) {
48
48
  var d, S, g, y, C, A, I, b = o && o.__k || oi, R = e.length;
49
- for (E = Ji(n, e, b, E, R), d = 0; d < R; d++) (g = n.__k[d]) != null && (S = g.__i == -1 ? ke : b[g.__i] || ke, g.__i = d, A = gt(t, g, S, l, s, u, c, E, p, _), y = g.__e, g.ref && S.ref != g.ref && (S.ref && vt(S.ref, null, g), _.push(g.ref, g.__c || y, g)), C == null && y != null && (C = y), (I = !!(4 & g.__u)) || S.__k === g.__k ? E = li(g, E, t, I) : typeof g.type == "function" && A !== void 0 ? E = A : y && (E = y.nextSibling), g.__u &= -7);
50
- return n.__e = C, E;
49
+ for (m = Ji(n, e, b, m, R), d = 0; d < R; d++) (g = n.__k[d]) != null && (S = g.__i == -1 ? ke : b[g.__i] || ke, g.__i = d, A = gt(t, g, S, l, s, u, c, m, p, _), y = g.__e, g.ref && S.ref != g.ref && (S.ref && vt(S.ref, null, g), _.push(g.ref, g.__c || y, g)), C == null && y != null && (C = y), (I = !!(4 & g.__u)) || S.__k === g.__k ? m = li(g, m, t, I) : typeof g.type == "function" && A !== void 0 ? m = A : y && (m = y.nextSibling), g.__u &= -7);
50
+ return n.__e = C, m;
51
51
  }
52
52
  function Ji(t, e, n, o, l) {
53
- var s, u, c, E, p, _ = n.length, d = _, S = 0;
54
- for (t.__k = new Array(l), s = 0; s < l; s++) (u = e[s]) != null && typeof u != "boolean" && typeof u != "function" ? (typeof u == "string" || typeof u == "number" || typeof u == "bigint" || u.constructor == String ? u = t.__k[s] = Ne(null, u, null, null, null) : Je(u) ? u = t.__k[s] = Ne(fe, { children: u }, null, null, null) : u.constructor === void 0 && u.__b > 0 ? u = t.__k[s] = Ne(u.type, u.props, u.key, u.ref ? u.ref : null, u.__v) : t.__k[s] = u, E = s + S, u.__ = t, u.__b = t.__b + 1, c = null, (p = u.__i = Xi(u, n, E, d)) != -1 && (d--, (c = n[p]) && (c.__u |= 2)), c == null || c.__v == null ? (p == -1 && (l > _ ? S-- : l < _ && S++), typeof u.type != "function" && (u.__u |= 4)) : p != E && (p == E - 1 ? S-- : p == E + 1 ? S++ : (p > E ? S-- : S++, u.__u |= 4))) : t.__k[s] = null;
53
+ var s, u, c, m, p, _ = n.length, d = _, S = 0;
54
+ for (t.__k = new Array(l), s = 0; s < l; s++) (u = e[s]) != null && typeof u != "boolean" && typeof u != "function" ? (typeof u == "string" || typeof u == "number" || typeof u == "bigint" || u.constructor == String ? u = t.__k[s] = Ne(null, u, null, null, null) : Je(u) ? u = t.__k[s] = Ne(fe, { children: u }, null, null, null) : u.constructor === void 0 && u.__b > 0 ? u = t.__k[s] = Ne(u.type, u.props, u.key, u.ref ? u.ref : null, u.__v) : t.__k[s] = u, m = s + S, u.__ = t, u.__b = t.__b + 1, c = null, (p = u.__i = Xi(u, n, m, d)) != -1 && (d--, (c = n[p]) && (c.__u |= 2)), c == null || c.__v == null ? (p == -1 && (l > _ ? S-- : l < _ && S++), typeof u.type != "function" && (u.__u |= 4)) : p != m && (p == m - 1 ? S-- : p == m + 1 ? S++ : (p > m ? S-- : S++, u.__u |= 4))) : t.__k[s] = null;
55
55
  if (d) for (s = 0; s < _; s++) (c = n[s]) != null && (2 & c.__u) == 0 && (c.__e == o && (o = Ie(c)), di(c, c));
56
56
  return o;
57
57
  }
@@ -68,10 +68,10 @@ function li(t, e, n, o) {
68
68
  return e;
69
69
  }
70
70
  function Xi(t, e, n, o) {
71
- var l, s, u, c = t.key, E = t.type, p = e[n], _ = p != null && (2 & p.__u) == 0;
72
- if (p === null && c == null || _ && c == p.key && E == p.type) return n;
71
+ var l, s, u, c = t.key, m = t.type, p = e[n], _ = p != null && (2 & p.__u) == 0;
72
+ if (p === null && c == null || _ && c == p.key && m == p.type) return n;
73
73
  if (o > (_ ? 1 : 0)) {
74
- for (l = n - 1, s = n + 1; l >= 0 || s < e.length; ) if ((p = e[u = l >= 0 ? l-- : s++]) != null && (2 & p.__u) == 0 && c == p.key && E == p.type) return u;
74
+ for (l = n - 1, s = n + 1; l >= 0 || s < e.length; ) if ((p = e[u = l >= 0 ? l-- : s++]) != null && (2 & p.__u) == 0 && c == p.key && m == p.type) return u;
75
75
  }
76
76
  return -1;
77
77
  }
@@ -85,7 +85,7 @@ function Pe(t, e, n, o, l) {
85
85
  if (typeof o == "string" && (t.style.cssText = o = ""), o) for (e in o) n && e in n || Ut(t.style, e, "");
86
86
  if (n) for (e in n) o && n[e] == o[e] || Ut(t.style, e, n[e]);
87
87
  }
88
- else if (e[0] == "o" && e[1] == "n") s = e != (e = e.replace(ri, "$1")), u = e.toLowerCase(), e = u in t || e == "onFocusOut" || e == "onFocusIn" ? u.slice(2) : e.slice(2), t.l || (t.l = {}), t.l[e + s] = n, n ? o ? n.u = o.u : (n.u = mt, t.addEventListener(e, s ? ct : lt, s)) : t.removeEventListener(e, s ? ct : lt, s);
88
+ else if (e[0] == "o" && e[1] == "n") s = e != (e = e.replace(ri, "$1")), u = e.toLowerCase(), e = u in t || e == "onFocusOut" || e == "onFocusIn" ? u.slice(2) : e.slice(2), t.l || (t.l = {}), t.l[e + s] = n, n ? o ? n.u = o.u : (n.u = Et, t.addEventListener(e, s ? ct : lt, s)) : t.removeEventListener(e, s ? ct : lt, s);
89
89
  else {
90
90
  if (l == "http://www.w3.org/2000/svg") e = e.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
91
91
  else if (e != "width" && e != "height" && e != "href" && e != "list" && e != "form" && e != "tabIndex" && e != "download" && e != "rowSpan" && e != "colSpan" && e != "role" && e != "popover" && e in t) try {
@@ -100,16 +100,16 @@ function Lt(t) {
100
100
  return function(e) {
101
101
  if (this.l) {
102
102
  var n = this.l[e.type + t];
103
- if (e.t == null) e.t = mt++;
103
+ if (e.t == null) e.t = Et++;
104
104
  else if (e.t < n.u) return;
105
105
  return n(k.event ? k.event(e) : e);
106
106
  }
107
107
  };
108
108
  }
109
- function gt(t, e, n, o, l, s, u, c, E, p) {
109
+ function gt(t, e, n, o, l, s, u, c, m, p) {
110
110
  var _, d, S, g, y, C, A, I, b, R, M, x, Y, te, $, ie, ne, Z = e.type;
111
111
  if (e.constructor !== void 0) return null;
112
- 128 & n.__u && (E = !!(32 & n.__u), s = [c = e.__e = n.__e]), (_ = k.__b) && _(e);
112
+ 128 & n.__u && (m = !!(32 & n.__u), s = [c = e.__e = n.__e]), (_ = k.__b) && _(e);
113
113
  e: if (typeof Z == "function") try {
114
114
  if (I = e.props, b = "prototype" in Z && Z.prototype.render, R = (_ = Z.contextType) && o[_.__c], M = _ ? R ? R.props.value : _.__ : o, n.__c ? A = (d = e.__c = n.__c).__ = d.__E : (b ? e.__c = d = new Z(I, M) : (e.__c = d = new we(I, M), d.constructor = Z, d.render = Qi), R && R.sub(d), d.state || (d.state = {}), d.__n = o, S = d.__d = !0, d.__h = [], d._sb = []), b && d.__s == null && (d.__s = d.state), b && Z.getDerivedStateFromProps != null && (d.__s == d.state && (d.__s = ee({}, d.__s)), ee(d.__s, Z.getDerivedStateFromProps(I, d.__s))), g = d.props, y = d.state, d.__v = e, S) b && Z.getDerivedStateFromProps == null && d.componentWillMount != null && d.componentWillMount(), b && d.componentDidMount != null && d.__h.push(d.componentDidMount);
115
115
  else {
@@ -130,19 +130,19 @@ function gt(t, e, n, o, l, s, u, c, E, p) {
130
130
  } else do
131
131
  d.__d = !1, Y && Y(e), _ = d.render(d.props, d.state, d.context), d.state = d.__s;
132
132
  while (d.__d && ++te < 25);
133
- d.state = d.__s, d.getChildContext != null && (o = ee(ee({}, o), d.getChildContext())), b && !S && d.getSnapshotBeforeUpdate != null && (C = d.getSnapshotBeforeUpdate(g, y)), ie = _, _ != null && _.type === fe && _.key == null && (ie = ui(_.props.children)), c = ai(t, Je(ie) ? ie : [ie], e, n, o, l, s, u, c, E, p), d.base = e.__e, e.__u &= -161, d.__h.length && u.push(d), A && (d.__E = d.__ = null);
133
+ d.state = d.__s, d.getChildContext != null && (o = ee(ee({}, o), d.getChildContext())), b && !S && d.getSnapshotBeforeUpdate != null && (C = d.getSnapshotBeforeUpdate(g, y)), ie = _, _ != null && _.type === fe && _.key == null && (ie = ui(_.props.children)), c = ai(t, Je(ie) ? ie : [ie], e, n, o, l, s, u, c, m, p), d.base = e.__e, e.__u &= -161, d.__h.length && u.push(d), A && (d.__E = d.__ = null);
134
134
  } catch (oe) {
135
- if (e.__v = null, E || s != null) if (oe.then) {
136
- for (e.__u |= E ? 160 : 128; c && c.nodeType == 8 && c.nextSibling; ) c = c.nextSibling;
135
+ if (e.__v = null, m || s != null) if (oe.then) {
136
+ for (e.__u |= m ? 160 : 128; c && c.nodeType == 8 && c.nextSibling; ) c = c.nextSibling;
137
137
  s[s.indexOf(c)] = null, e.__e = c;
138
138
  } else {
139
- for (ne = s.length; ne--; ) Et(s[ne]);
139
+ for (ne = s.length; ne--; ) mt(s[ne]);
140
140
  ut(e);
141
141
  }
142
142
  else e.__e = n.__e, e.__k = n.__k, oe.then || ut(e);
143
143
  k.__e(oe, e, n);
144
144
  }
145
- else s == null && e.__v == n.__v ? (e.__k = n.__k, e.__e = n.__e) : c = e.__e = Zi(n.__e, e, n, o, l, s, u, E, p);
145
+ else s == null && e.__v == n.__v ? (e.__k = n.__k, e.__e = n.__e) : c = e.__e = Zi(n.__e, e, n, o, l, s, u, m, p);
146
146
  return (_ = k.diffed) && _(e), 128 & e.__u ? void 0 : c;
147
147
  }
148
148
  function ut(t) {
@@ -163,7 +163,7 @@ function ci(t, e, n) {
163
163
  function ui(t) {
164
164
  return typeof t != "object" || t == null || t.__b && t.__b > 0 ? t : Je(t) ? t.map(ui) : ee({}, t);
165
165
  }
166
- function Zi(t, e, n, o, l, s, u, c, E) {
166
+ function Zi(t, e, n, o, l, s, u, c, m) {
167
167
  var p, _, d, S, g, y, C, A = n.props || ke, I = e.props, b = e.type;
168
168
  if (b == "svg" ? l = "http://www.w3.org/2000/svg" : b == "math" ? l = "http://www.w3.org/1998/Math/MathML" : l || (l = "http://www.w3.org/1999/xhtml"), s != null) {
169
169
  for (p = 0; p < s.length; p++) if ((g = s[p]) && "setAttribute" in g == !!b && (b ? g.localName == b : g.nodeType == 3)) {
@@ -187,7 +187,7 @@ function Zi(t, e, n, o, l, s, u, c, E) {
187
187
  }
188
188
  for (p in I) g = I[p], p == "children" ? S = g : p == "dangerouslySetInnerHTML" ? _ = g : p == "value" ? y = g : p == "checked" ? C = g : c && typeof g != "function" || A[p] === g || Pe(t, p, g, A[p], l);
189
189
  if (_) c || d && (_.__html == d.__html || _.__html == t.innerHTML) || (t.innerHTML = _.__html), e.__k = [];
190
- else if (d && (t.innerHTML = ""), ai(e.type == "template" ? t.content : t, Je(S) ? S : [S], e, n, o, b == "foreignObject" ? "http://www.w3.org/1999/xhtml" : l, s, u, s ? s[0] : n.__k && Ie(n, 0), c, E), s != null) for (p = s.length; p--; ) Et(s[p]);
190
+ else if (d && (t.innerHTML = ""), ai(e.type == "template" ? t.content : t, Je(S) ? S : [S], e, n, o, b == "foreignObject" ? "http://www.w3.org/1999/xhtml" : l, s, u, s ? s[0] : n.__k && Ie(n, 0), c, m), s != null) for (p = s.length; p--; ) mt(s[p]);
191
191
  c || (p = "value", b == "progress" && y == null ? t.removeAttribute("value") : y != null && (y !== t[p] || b == "progress" && !y || b == "option" && y != A[p]) && Pe(t, p, y, A[p], l), p = "checked", C != null && C != t[p] && Pe(t, p, C, A[p], l));
192
192
  }
193
193
  return t;
@@ -213,7 +213,7 @@ function di(t, e, n) {
213
213
  o.base = o.__P = null;
214
214
  }
215
215
  if (o = t.__k) for (l = 0; l < o.length; l++) o[l] && di(o[l], e, n || typeof t.type != "function");
216
- n || Et(t.__e), t.__c = t.__ = t.__e = void 0;
216
+ n || mt(t.__e), t.__c = t.__ = t.__e = void 0;
217
217
  }
218
218
  function Qi(t, e, n) {
219
219
  return this.constructor(t, n);
@@ -246,7 +246,7 @@ Ue = oi.slice, k = { __e: function(t, e, n, o) {
246
246
  this.__v && (this.__e = !0, t && this.__h.push(t), Mt(this));
247
247
  }, we.prototype.render = fe, pe = [], ii = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, ni = function(t, e) {
248
248
  return t.__v.__b - e.__v.__b;
249
- }, He.__r = 0, ri = /(PointerCapture)$|Capture$/i, mt = 0, lt = Lt(!1), ct = Lt(!0);
249
+ }, He.__r = 0, ri = /(PointerCapture)$|Capture$/i, Et = 0, lt = Lt(!1), ct = Lt(!0);
250
250
  function We() {
251
251
  return We = Object.assign ? Object.assign.bind() : function(t) {
252
252
  for (var e = 1; e < arguments.length; e++) {
@@ -289,7 +289,7 @@ function rn(t) {
289
289
  }
290
290
  function on(t) {
291
291
  var e = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
292
- this.dispatchEvent(e), this._vdom = Se(rn, We({}, this._props, { context: e.detail.context }), mi(this, this._vdomComponent, t)), (this.hasAttribute("hydrate") ? hi : Xe)(this._vdom, this._root);
292
+ this.dispatchEvent(e), this._vdom = Se(rn, We({}, this._props, { context: e.detail.context }), Ei(this, this._vdomComponent, t)), (this.hasAttribute("hydrate") ? hi : Xe)(this._vdom, this._root);
293
293
  }
294
294
  function _i(t) {
295
295
  return t.replace(/-(\w)/g, function(e, n) {
@@ -313,14 +313,14 @@ function Bt(t, e) {
313
313
  }, s.addEventListener("_preact", n._listener))) : n.ref.removeEventListener("_preact", n._listener);
314
314
  } }));
315
315
  }
316
- function mi(t, e, n) {
316
+ function Ei(t, e, n) {
317
317
  if (t.nodeType === 3) return t.data;
318
318
  if (t.nodeType !== 1) return null;
319
319
  var o = [], l = {}, s = 0, u = t.attributes, c = t.childNodes;
320
320
  for (s = u.length; s--; ) u[s].name !== "slot" && (l[u[s].name] = u[s].value, l[_i(u[s].name)] = u[s].value);
321
321
  for (s = c.length; s--; ) {
322
- var E = mi(c[s], null, n), p = c[s].slot;
323
- p ? l[p] = Se(Bt, { name: p }, E) : o[s] = E;
322
+ var m = Ei(c[s], null, n), p = c[s].slot;
323
+ p ? l[p] = Se(Bt, { name: p }, m) : o[s] = m;
324
324
  }
325
325
  var _ = !(!n || !n.shadow), d = e ? Se(Bt, { useFragment: !_ }, o) : o;
326
326
  return !_ && e && (t.innerHTML = ""), Se(e || t.nodeName.toLowerCase(), l, d);
@@ -328,13 +328,13 @@ function mi(t, e, n) {
328
328
  var ln = 0;
329
329
  function w(t, e, n, o, l, s) {
330
330
  e || (e = {});
331
- var u, c, E = e;
332
- if ("ref" in E) for (c in E = {}, e) c == "ref" ? u = e[c] : E[c] = e[c];
333
- var p = { type: t, props: E, key: n, ref: u, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --ln, __i: -1, __u: 0, __source: l, __self: s };
334
- if (typeof t == "function" && (u = t.defaultProps)) for (c in u) E[c] === void 0 && (E[c] = u[c]);
331
+ var u, c, m = e;
332
+ if ("ref" in m) for (c in m = {}, e) c == "ref" ? u = e[c] : m[c] = e[c];
333
+ var p = { type: t, props: m, key: n, ref: u, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --ln, __i: -1, __u: 0, __source: l, __self: s };
334
+ if (typeof t == "function" && (u = t.defaultProps)) for (c in u) m[c] === void 0 && (m[c] = u[c]);
335
335
  return k.vnode && k.vnode(p), p;
336
336
  }
337
- var De, P, it, Pt, Me = 0, Ei = [], F = k, Ft = F.__b, $t = F.__r, Vt = F.diffed, Gt = F.__c, jt = F.unmount, Ht = F.__;
337
+ var De, P, it, Pt, Me = 0, mi = [], F = k, Ft = F.__b, $t = F.__r, Vt = F.diffed, Gt = F.__c, jt = F.unmount, Ht = F.__;
338
338
  function yt(t, e) {
339
339
  F.__h && F.__h(P, t, Me || e), Me = 0;
340
340
  var n = P.__H || (P.__H = { __: [], __h: [] });
@@ -346,33 +346,33 @@ function Ve(t) {
346
346
  function cn(t, e, n) {
347
347
  var o = yt(De++, 2);
348
348
  if (o.t = t, !o.__c && (o.__ = [vi(void 0, e), function(c) {
349
- var E = o.__N ? o.__N[0] : o.__[0], p = o.t(E, c);
350
- E !== p && (o.__N = [p, o.__[1]], o.__c.setState({}));
349
+ var m = o.__N ? o.__N[0] : o.__[0], p = o.t(m, c);
350
+ m !== p && (o.__N = [p, o.__[1]], o.__c.setState({}));
351
351
  }], o.__c = P, !P.__f)) {
352
- var l = function(c, E, p) {
352
+ var l = function(c, m, p) {
353
353
  if (!o.__c.__H) return !0;
354
354
  var _ = o.__c.__H.__.filter(function(S) {
355
355
  return !!S.__c;
356
356
  });
357
357
  if (_.every(function(S) {
358
358
  return !S.__N;
359
- })) return !s || s.call(this, c, E, p);
359
+ })) return !s || s.call(this, c, m, p);
360
360
  var d = o.__c.props !== c;
361
361
  return _.forEach(function(S) {
362
362
  if (S.__N) {
363
363
  var g = S.__[0];
364
364
  S.__ = S.__N, S.__N = void 0, g !== S.__[0] && (d = !0);
365
365
  }
366
- }), s && s.call(this, c, E, p) || d;
366
+ }), s && s.call(this, c, m, p) || d;
367
367
  };
368
368
  P.__f = !0;
369
369
  var s = P.shouldComponentUpdate, u = P.componentWillUpdate;
370
- P.componentWillUpdate = function(c, E, p) {
370
+ P.componentWillUpdate = function(c, m, p) {
371
371
  if (this.__e) {
372
372
  var _ = s;
373
- s = void 0, l(c, E, p), s = _;
373
+ s = void 0, l(c, m, p), s = _;
374
374
  }
375
- u && u.call(this, c, E, p);
375
+ u && u.call(this, c, m, p);
376
376
  }, P.shouldComponentUpdate = l;
377
377
  }
378
378
  return o.__N || o.__;
@@ -396,7 +396,7 @@ function nt(t, e) {
396
396
  }, e);
397
397
  }
398
398
  function un() {
399
- for (var t; t = Ei.shift(); ) if (t.__P && t.__H) try {
399
+ for (var t; t = mi.shift(); ) if (t.__P && t.__H) try {
400
400
  t.__H.__h.forEach(je), t.__H.__h.forEach(dt), t.__H.__h = [];
401
401
  } catch (e) {
402
402
  t.__H.__h = [], F.__e(e, t.__v);
@@ -415,7 +415,7 @@ F.__b = function(t) {
415
415
  }, F.diffed = function(t) {
416
416
  Vt && Vt(t);
417
417
  var e = t.__c;
418
- e && e.__H && (e.__H.__h.length && (Ei.push(e) !== 1 && Pt === F.requestAnimationFrame || ((Pt = F.requestAnimationFrame) || dn)(un)), e.__H.__.forEach(function(n) {
418
+ e && e.__H && (e.__H.__h.length && (mi.push(e) !== 1 && Pt === F.requestAnimationFrame || ((Pt = F.requestAnimationFrame) || dn)(un)), e.__H.__.forEach(function(n) {
419
419
  n.u && (n.__H = n.u), n.u = void 0;
420
420
  })), it = P = null;
421
421
  }, F.__c = function(t, e) {
@@ -604,11 +604,11 @@ function Ii(t) {
604
604
  }
605
605
  t.s = n;
606
606
  }
607
- function me(t, e) {
607
+ function Ee(t, e) {
608
608
  H.call(this, void 0), this.x = t, this.s = void 0, this.g = qe - 1, this.f = 4, this.W = e?.watched, this.Z = e?.unwatched, this.name = e?.name;
609
609
  }
610
- me.prototype = new H();
611
- me.prototype.h = function() {
610
+ Ee.prototype = new H();
611
+ Ee.prototype.h = function() {
612
612
  if (this.f &= -3, 1 & this.f) return !1;
613
613
  if ((36 & this.f) == 32 || (this.f &= -5, this.g === qe)) return !0;
614
614
  if (this.g = qe, this.f |= 1, this.i > 0 && !wi(this))
@@ -623,33 +623,33 @@ me.prototype.h = function() {
623
623
  }
624
624
  return O = t, Ii(this), this.f &= -2, !0;
625
625
  };
626
- me.prototype.S = function(t) {
626
+ Ee.prototype.S = function(t) {
627
627
  if (this.t === void 0) {
628
628
  this.f |= 36;
629
629
  for (var e = this.s; e !== void 0; e = e.n) e.S.S(e);
630
630
  }
631
631
  H.prototype.S.call(this, t);
632
632
  };
633
- me.prototype.U = function(t) {
633
+ Ee.prototype.U = function(t) {
634
634
  if (this.t !== void 0 && (H.prototype.U.call(this, t), this.t === void 0)) {
635
635
  this.f &= -33;
636
636
  for (var e = this.s; e !== void 0; e = e.n) e.S.U(e);
637
637
  }
638
638
  };
639
- me.prototype.N = function() {
639
+ Ee.prototype.N = function() {
640
640
  if (!(2 & this.f)) {
641
641
  this.f |= 6;
642
642
  for (var t = this.t; t !== void 0; t = t.x) t.t.N();
643
643
  }
644
644
  };
645
- Object.defineProperty(me.prototype, "value", { get: function() {
645
+ Object.defineProperty(Ee.prototype, "value", { get: function() {
646
646
  if (1 & this.f) throw new Error("Cycle detected");
647
647
  var t = Si(this);
648
648
  if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f) throw this.v;
649
649
  return this.v;
650
650
  } });
651
651
  function zt(t, e) {
652
- return new me(t, e);
652
+ return new Ee(t, e);
653
653
  }
654
654
  function bi(t) {
655
655
  var e = t.u;
@@ -727,8 +727,8 @@ function Ri(t) {
727
727
  var e = this, n = t.data, o = Ni(n);
728
728
  o.value = n;
729
729
  var l = Ce(function() {
730
- for (var c = e, E = e.__v; E = E.__; ) if (E.__c) {
731
- E.__c.__$f |= 4;
730
+ for (var c = e, m = e.__v; m = m.__; ) if (m.__c) {
731
+ m.__c.__$f |= 4;
732
732
  break;
733
733
  }
734
734
  var p = zt(function() {
@@ -794,15 +794,15 @@ Ae("diffed", function(t, e) {
794
794
  }
795
795
  else
796
796
  s = {}, n.U = s;
797
- for (var E in o) {
798
- var p = s[E], _ = o[E];
799
- p === void 0 ? (p = mn(n, E, _, l), s[E] = p) : p.o(_, l);
797
+ for (var m in o) {
798
+ var p = s[m], _ = o[m];
799
+ p === void 0 ? (p = En(n, m, _, l), s[m] = p) : p.o(_, l);
800
800
  }
801
801
  }
802
802
  }
803
803
  t(e);
804
804
  });
805
- function mn(t, e, n, o) {
805
+ function En(t, e, n, o) {
806
806
  var l = e in t && t.ownerSVGElement === void 0, s = z(n);
807
807
  return { o: function(u, c) {
808
808
  s.value = u, o = c;
@@ -854,7 +854,7 @@ function Ni(t, e) {
854
854
  return z(t, e);
855
855
  })[0];
856
856
  }
857
- var En = function(t) {
857
+ var mn = function(t) {
858
858
  queueMicrotask(function() {
859
859
  queueMicrotask(t);
860
860
  });
@@ -865,7 +865,7 @@ function gn() {
865
865
  });
866
866
  }
867
867
  function xi() {
868
- Ti.push(this) === 1 && (k.requestAnimationFrame || En)(gn);
868
+ Ti.push(this) === 1 && (k.requestAnimationFrame || mn)(gn);
869
869
  }
870
870
  const qt = {
871
871
  layout: "floating",
@@ -928,11 +928,11 @@ function Sn() {
928
928
  var y = u(g), C = y[0], A = y[1];
929
929
  return (C + A) * 3 / 4 - A;
930
930
  }
931
- function E(g, y, C) {
931
+ function m(g, y, C) {
932
932
  return (y + C) * 3 / 4 - C;
933
933
  }
934
934
  function p(g) {
935
- var y, C = u(g), A = C[0], I = C[1], b = new n(E(g, A, I)), R = 0, M = I > 0 ? A - 4 : A, x;
935
+ var y, C = u(g), A = C[0], I = C[1], b = new n(m(g, A, I)), R = 0, M = I > 0 ? A - 4 : A, x;
936
936
  for (x = 0; x < M; x += 4)
937
937
  y = e[g.charCodeAt(x)] << 18 | e[g.charCodeAt(x + 1)] << 12 | e[g.charCodeAt(x + 2)] << 6 | e[g.charCodeAt(x + 3)], b[R++] = y >> 16 & 255, b[R++] = y >> 8 & 255, b[R++] = y & 255;
938
938
  return I === 2 && (y = e[g.charCodeAt(x)] << 2 | e[g.charCodeAt(x + 1)] >> 4, b[R++] = y & 255), I === 1 && (y = e[g.charCodeAt(x)] << 10 | e[g.charCodeAt(x + 1)] << 4 | e[g.charCodeAt(x + 2)] >> 2, b[R++] = y >> 8 & 255, b[R++] = y & 255), b;
@@ -960,7 +960,7 @@ var $e = {};
960
960
  var Kt;
961
961
  function wn() {
962
962
  return Kt || (Kt = 1, $e.read = function(t, e, n, o, l) {
963
- var s, u, c = l * 8 - o - 1, E = (1 << c) - 1, p = E >> 1, _ = -7, d = n ? l - 1 : 0, S = n ? -1 : 1, g = t[e + d];
963
+ var s, u, c = l * 8 - o - 1, m = (1 << c) - 1, p = m >> 1, _ = -7, d = n ? l - 1 : 0, S = n ? -1 : 1, g = t[e + d];
964
964
  for (d += S, s = g & (1 << -_) - 1, g >>= -_, _ += c; _ > 0; s = s * 256 + t[e + d], d += S, _ -= 8)
965
965
  ;
966
966
  for (u = s & (1 << -_) - 1, s >>= -_, _ += o; _ > 0; u = u * 256 + t[e + d], d += S, _ -= 8)
@@ -968,14 +968,14 @@ function wn() {
968
968
  if (s === 0)
969
969
  s = 1 - p;
970
970
  else {
971
- if (s === E)
971
+ if (s === m)
972
972
  return u ? NaN : (g ? -1 : 1) * (1 / 0);
973
973
  u = u + Math.pow(2, o), s = s - p;
974
974
  }
975
975
  return (g ? -1 : 1) * u * Math.pow(2, s - o);
976
976
  }, $e.write = function(t, e, n, o, l, s) {
977
- var u, c, E, p = s * 8 - l - 1, _ = (1 << p) - 1, d = _ >> 1, S = l === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, g = o ? 0 : s - 1, y = o ? 1 : -1, C = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
978
- for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (c = isNaN(e) ? 1 : 0, u = _) : (u = Math.floor(Math.log(e) / Math.LN2), e * (E = Math.pow(2, -u)) < 1 && (u--, E *= 2), u + d >= 1 ? e += S / E : e += S * Math.pow(2, 1 - d), e * E >= 2 && (u++, E /= 2), u + d >= _ ? (c = 0, u = _) : u + d >= 1 ? (c = (e * E - 1) * Math.pow(2, l), u = u + d) : (c = e * Math.pow(2, d - 1) * Math.pow(2, l), u = 0)); l >= 8; t[n + g] = c & 255, g += y, c /= 256, l -= 8)
977
+ var u, c, m, p = s * 8 - l - 1, _ = (1 << p) - 1, d = _ >> 1, S = l === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, g = o ? 0 : s - 1, y = o ? 1 : -1, C = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
978
+ for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (c = isNaN(e) ? 1 : 0, u = _) : (u = Math.floor(Math.log(e) / Math.LN2), e * (m = Math.pow(2, -u)) < 1 && (u--, m *= 2), u + d >= 1 ? e += S / m : e += S * Math.pow(2, 1 - d), e * m >= 2 && (u++, m /= 2), u + d >= _ ? (c = 0, u = _) : u + d >= 1 ? (c = (e * m - 1) * Math.pow(2, l), u = u + d) : (c = e * Math.pow(2, d - 1) * Math.pow(2, l), u = 0)); l >= 8; t[n + g] = c & 255, g += y, c /= 256, l -= 8)
979
979
  ;
980
980
  for (u = u << l | c, p += l; p > 0; t[n + g] = u & 255, g += y, u /= 256, p -= 8)
981
981
  ;
@@ -1028,10 +1028,10 @@ function Cn() {
1028
1028
  );
1029
1029
  return d(a);
1030
1030
  }
1031
- return E(a, i, r);
1031
+ return m(a, i, r);
1032
1032
  }
1033
1033
  c.poolSize = 8192;
1034
- function E(a, i, r) {
1034
+ function m(a, i, r) {
1035
1035
  if (typeof a == "string")
1036
1036
  return S(a, i);
1037
1037
  if (ArrayBuffer.isView(a))
@@ -1058,7 +1058,7 @@ function Cn() {
1058
1058
  );
1059
1059
  }
1060
1060
  c.from = function(a, i, r) {
1061
- return E(a, i, r);
1061
+ return m(a, i, r);
1062
1062
  }, Object.setPrototypeOf(c.prototype, Uint8Array.prototype), Object.setPrototypeOf(c, Uint8Array);
1063
1063
  function p(a) {
1064
1064
  if (typeof a != "number")
@@ -1136,9 +1136,9 @@ function Cn() {
1136
1136
  );
1137
1137
  if (i === r) return 0;
1138
1138
  let h = i.length, f = r.length;
1139
- for (let m = 0, v = Math.min(h, f); m < v; ++m)
1140
- if (i[m] !== r[m]) {
1141
- h = i[m], f = r[m];
1139
+ for (let E = 0, v = Math.min(h, f); E < v; ++E)
1140
+ if (i[E] !== r[E]) {
1141
+ h = i[E], f = r[E];
1142
1142
  break;
1143
1143
  }
1144
1144
  return h < f ? -1 : f < h ? 1 : 0;
@@ -1169,20 +1169,20 @@ function Cn() {
1169
1169
  for (r = 0, h = 0; h < i.length; ++h)
1170
1170
  r += i[h].length;
1171
1171
  const f = c.allocUnsafe(r);
1172
- let m = 0;
1172
+ let E = 0;
1173
1173
  for (h = 0; h < i.length; ++h) {
1174
1174
  let v = i[h];
1175
1175
  if (Q(v, Uint8Array))
1176
- m + v.length > f.length ? (c.isBuffer(v) || (v = c.from(v)), v.copy(f, m)) : Uint8Array.prototype.set.call(
1176
+ E + v.length > f.length ? (c.isBuffer(v) || (v = c.from(v)), v.copy(f, E)) : Uint8Array.prototype.set.call(
1177
1177
  f,
1178
1178
  v,
1179
- m
1179
+ E
1180
1180
  );
1181
1181
  else if (c.isBuffer(v))
1182
- v.copy(f, m);
1182
+ v.copy(f, E);
1183
1183
  else
1184
1184
  throw new TypeError('"list" argument must be an Array of Buffers');
1185
- m += v.length;
1185
+ E += v.length;
1186
1186
  }
1187
1187
  return f;
1188
1188
  };
@@ -1287,22 +1287,22 @@ function Cn() {
1287
1287
  let i = "";
1288
1288
  const r = t.INSPECT_MAX_BYTES;
1289
1289
  return i = this.toString("hex", 0, r).replace(/(.{2})/g, "$1 ").trim(), this.length > r && (i += " ... "), "<Buffer " + i + ">";
1290
- }, o && (c.prototype[o] = c.prototype.inspect), c.prototype.compare = function(i, r, h, f, m) {
1290
+ }, o && (c.prototype[o] = c.prototype.inspect), c.prototype.compare = function(i, r, h, f, E) {
1291
1291
  if (Q(i, Uint8Array) && (i = c.from(i, i.offset, i.byteLength)), !c.isBuffer(i))
1292
1292
  throw new TypeError(
1293
1293
  'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof i
1294
1294
  );
1295
- if (r === void 0 && (r = 0), h === void 0 && (h = i ? i.length : 0), f === void 0 && (f = 0), m === void 0 && (m = this.length), r < 0 || h > i.length || f < 0 || m > this.length)
1295
+ if (r === void 0 && (r = 0), h === void 0 && (h = i ? i.length : 0), f === void 0 && (f = 0), E === void 0 && (E = this.length), r < 0 || h > i.length || f < 0 || E > this.length)
1296
1296
  throw new RangeError("out of range index");
1297
- if (f >= m && r >= h)
1297
+ if (f >= E && r >= h)
1298
1298
  return 0;
1299
- if (f >= m)
1299
+ if (f >= E)
1300
1300
  return -1;
1301
1301
  if (r >= h)
1302
1302
  return 1;
1303
- if (r >>>= 0, h >>>= 0, f >>>= 0, m >>>= 0, this === i) return 0;
1304
- let v = m - f, T = h - r;
1305
- const L = Math.min(v, T), U = this.slice(f, m), B = i.slice(r, h);
1303
+ if (r >>>= 0, h >>>= 0, f >>>= 0, E >>>= 0, this === i) return 0;
1304
+ let v = E - f, T = h - r;
1305
+ const L = Math.min(v, T), U = this.slice(f, E), B = i.slice(r, h);
1306
1306
  for (let D = 0; D < L; ++D)
1307
1307
  if (U[D] !== B[D]) {
1308
1308
  v = U[D], T = B[D];
@@ -1325,21 +1325,21 @@ function Cn() {
1325
1325
  throw new TypeError("val must be string, number or Buffer");
1326
1326
  }
1327
1327
  function te(a, i, r, h, f) {
1328
- let m = 1, v = a.length, T = i.length;
1328
+ let E = 1, v = a.length, T = i.length;
1329
1329
  if (h !== void 0 && (h = String(h).toLowerCase(), h === "ucs2" || h === "ucs-2" || h === "utf16le" || h === "utf-16le")) {
1330
1330
  if (a.length < 2 || i.length < 2)
1331
1331
  return -1;
1332
- m = 2, v /= 2, T /= 2, r /= 2;
1332
+ E = 2, v /= 2, T /= 2, r /= 2;
1333
1333
  }
1334
1334
  function L(B, D) {
1335
- return m === 1 ? B[D] : B.readUInt16BE(D * m);
1335
+ return E === 1 ? B[D] : B.readUInt16BE(D * E);
1336
1336
  }
1337
1337
  let U;
1338
1338
  if (f) {
1339
1339
  let B = -1;
1340
1340
  for (U = r; U < v; U++)
1341
1341
  if (L(a, U) === L(i, B === -1 ? 0 : U - B)) {
1342
- if (B === -1 && (B = U), U - B + 1 === T) return B * m;
1342
+ if (B === -1 && (B = U), U - B + 1 === T) return B * E;
1343
1343
  } else
1344
1344
  B !== -1 && (U -= U - B), B = -1;
1345
1345
  } else
@@ -1365,8 +1365,8 @@ function Cn() {
1365
1365
  r = Number(r) || 0;
1366
1366
  const f = a.length - r;
1367
1367
  h ? (h = Number(h), h > f && (h = f)) : h = f;
1368
- const m = i.length;
1369
- h > m / 2 && (h = m / 2);
1368
+ const E = i.length;
1369
+ h > E / 2 && (h = E / 2);
1370
1370
  let v;
1371
1371
  for (v = 0; v < h; ++v) {
1372
1372
  const T = parseInt(i.substr(v * 2, 2), 16);
@@ -1398,8 +1398,8 @@ function Cn() {
1398
1398
  throw new Error(
1399
1399
  "Buffer.write(string, encoding, offset[, length]) is no longer supported"
1400
1400
  );
1401
- const m = this.length - r;
1402
- if ((h === void 0 || h > m) && (h = m), i.length > 0 && (h < 0 || r < 0) || r > this.length)
1401
+ const E = this.length - r;
1402
+ if ((h === void 0 || h > E) && (h = E), i.length > 0 && (h < 0 || r < 0) || r > this.length)
1403
1403
  throw new RangeError("Attempt to write outside buffer bounds");
1404
1404
  f || (f = "utf8");
1405
1405
  let v = !1;
@@ -1439,22 +1439,22 @@ function Cn() {
1439
1439
  const h = [];
1440
1440
  let f = i;
1441
1441
  for (; f < r; ) {
1442
- const m = a[f];
1443
- let v = null, T = m > 239 ? 4 : m > 223 ? 3 : m > 191 ? 2 : 1;
1442
+ const E = a[f];
1443
+ let v = null, T = E > 239 ? 4 : E > 223 ? 3 : E > 191 ? 2 : 1;
1444
1444
  if (f + T <= r) {
1445
1445
  let L, U, B, D;
1446
1446
  switch (T) {
1447
1447
  case 1:
1448
- m < 128 && (v = m);
1448
+ E < 128 && (v = E);
1449
1449
  break;
1450
1450
  case 2:
1451
- L = a[f + 1], (L & 192) === 128 && (D = (m & 31) << 6 | L & 63, D > 127 && (v = D));
1451
+ L = a[f + 1], (L & 192) === 128 && (D = (E & 31) << 6 | L & 63, D > 127 && (v = D));
1452
1452
  break;
1453
1453
  case 3:
1454
- L = a[f + 1], U = a[f + 2], (L & 192) === 128 && (U & 192) === 128 && (D = (m & 15) << 12 | (L & 63) << 6 | U & 63, D > 2047 && (D < 55296 || D > 57343) && (v = D));
1454
+ L = a[f + 1], U = a[f + 2], (L & 192) === 128 && (U & 192) === 128 && (D = (E & 15) << 12 | (L & 63) << 6 | U & 63, D > 2047 && (D < 55296 || D > 57343) && (v = D));
1455
1455
  break;
1456
1456
  case 4:
1457
- L = a[f + 1], U = a[f + 2], B = a[f + 3], (L & 192) === 128 && (U & 192) === 128 && (B & 192) === 128 && (D = (m & 15) << 18 | (L & 63) << 12 | (U & 63) << 6 | B & 63, D > 65535 && D < 1114112 && (v = D));
1457
+ L = a[f + 1], U = a[f + 2], B = a[f + 3], (L & 192) === 128 && (U & 192) === 128 && (B & 192) === 128 && (D = (E & 15) << 18 | (L & 63) << 12 | (U & 63) << 6 | B & 63, D > 65535 && D < 1114112 && (v = D));
1458
1458
  }
1459
1459
  }
1460
1460
  v === null ? (v = 65533, T = 1) : v > 65535 && (v -= 65536, h.push(v >>> 10 & 1023 | 55296), v = 56320 | v & 1023), h.push(v), f += T;
@@ -1492,15 +1492,15 @@ function Cn() {
1492
1492
  const h = a.length;
1493
1493
  (!i || i < 0) && (i = 0), (!r || r < 0 || r > h) && (r = h);
1494
1494
  let f = "";
1495
- for (let m = i; m < r; ++m)
1496
- f += qi[a[m]];
1495
+ for (let E = i; E < r; ++E)
1496
+ f += qi[a[E]];
1497
1497
  return f;
1498
1498
  }
1499
1499
  function Vi(a, i, r) {
1500
1500
  const h = a.slice(i, r);
1501
1501
  let f = "";
1502
- for (let m = 0; m < h.length - 1; m += 2)
1503
- f += String.fromCharCode(h[m] + h[m + 1] * 256);
1502
+ for (let E = 0; E < h.length - 1; E += 2)
1503
+ f += String.fromCharCode(h[E] + h[E + 1] * 256);
1504
1504
  return f;
1505
1505
  }
1506
1506
  c.prototype.slice = function(i, r) {
@@ -1515,15 +1515,15 @@ function Cn() {
1515
1515
  }
1516
1516
  c.prototype.readUintLE = c.prototype.readUIntLE = function(i, r, h) {
1517
1517
  i = i >>> 0, r = r >>> 0, h || G(i, r, this.length);
1518
- let f = this[i], m = 1, v = 0;
1519
- for (; ++v < r && (m *= 256); )
1520
- f += this[i + v] * m;
1518
+ let f = this[i], E = 1, v = 0;
1519
+ for (; ++v < r && (E *= 256); )
1520
+ f += this[i + v] * E;
1521
1521
  return f;
1522
1522
  }, c.prototype.readUintBE = c.prototype.readUIntBE = function(i, r, h) {
1523
1523
  i = i >>> 0, r = r >>> 0, h || G(i, r, this.length);
1524
- let f = this[i + --r], m = 1;
1525
- for (; r > 0 && (m *= 256); )
1526
- f += this[i + --r] * m;
1524
+ let f = this[i + --r], E = 1;
1525
+ for (; r > 0 && (E *= 256); )
1526
+ f += this[i + --r] * E;
1527
1527
  return f;
1528
1528
  }, c.prototype.readUint8 = c.prototype.readUInt8 = function(i, r) {
1529
1529
  return i = i >>> 0, r || G(i, 1, this.length), this[i];
@@ -1539,26 +1539,26 @@ function Cn() {
1539
1539
  i = i >>> 0, ge(i, "offset");
1540
1540
  const r = this[i], h = this[i + 7];
1541
1541
  (r === void 0 || h === void 0) && Te(i, this.length - 8);
1542
- const f = r + this[++i] * 2 ** 8 + this[++i] * 2 ** 16 + this[++i] * 2 ** 24, m = this[++i] + this[++i] * 2 ** 8 + this[++i] * 2 ** 16 + h * 2 ** 24;
1543
- return BigInt(f) + (BigInt(m) << BigInt(32));
1542
+ const f = r + this[++i] * 2 ** 8 + this[++i] * 2 ** 16 + this[++i] * 2 ** 24, E = this[++i] + this[++i] * 2 ** 8 + this[++i] * 2 ** 16 + h * 2 ** 24;
1543
+ return BigInt(f) + (BigInt(E) << BigInt(32));
1544
1544
  }), c.prototype.readBigUInt64BE = se(function(i) {
1545
1545
  i = i >>> 0, ge(i, "offset");
1546
1546
  const r = this[i], h = this[i + 7];
1547
1547
  (r === void 0 || h === void 0) && Te(i, this.length - 8);
1548
- const f = r * 2 ** 24 + this[++i] * 2 ** 16 + this[++i] * 2 ** 8 + this[++i], m = this[++i] * 2 ** 24 + this[++i] * 2 ** 16 + this[++i] * 2 ** 8 + h;
1549
- return (BigInt(f) << BigInt(32)) + BigInt(m);
1548
+ const f = r * 2 ** 24 + this[++i] * 2 ** 16 + this[++i] * 2 ** 8 + this[++i], E = this[++i] * 2 ** 24 + this[++i] * 2 ** 16 + this[++i] * 2 ** 8 + h;
1549
+ return (BigInt(f) << BigInt(32)) + BigInt(E);
1550
1550
  }), c.prototype.readIntLE = function(i, r, h) {
1551
1551
  i = i >>> 0, r = r >>> 0, h || G(i, r, this.length);
1552
- let f = this[i], m = 1, v = 0;
1553
- for (; ++v < r && (m *= 256); )
1554
- f += this[i + v] * m;
1555
- return m *= 128, f >= m && (f -= Math.pow(2, 8 * r)), f;
1552
+ let f = this[i], E = 1, v = 0;
1553
+ for (; ++v < r && (E *= 256); )
1554
+ f += this[i + v] * E;
1555
+ return E *= 128, f >= E && (f -= Math.pow(2, 8 * r)), f;
1556
1556
  }, c.prototype.readIntBE = function(i, r, h) {
1557
1557
  i = i >>> 0, r = r >>> 0, h || G(i, r, this.length);
1558
- let f = r, m = 1, v = this[i + --f];
1559
- for (; f > 0 && (m *= 256); )
1560
- v += this[i + --f] * m;
1561
- return m *= 128, v >= m && (v -= Math.pow(2, 8 * r)), v;
1558
+ let f = r, E = 1, v = this[i + --f];
1559
+ for (; f > 0 && (E *= 256); )
1560
+ v += this[i + --f] * E;
1561
+ return E *= 128, v >= E && (v -= Math.pow(2, 8 * r)), v;
1562
1562
  }, c.prototype.readInt8 = function(i, r) {
1563
1563
  return i = i >>> 0, r || G(i, 1, this.length), this[i] & 128 ? (255 - this[i] + 1) * -1 : this[i];
1564
1564
  }, c.prototype.readInt16LE = function(i, r) {
@@ -1595,9 +1595,9 @@ function Cn() {
1595
1595
  }, c.prototype.readDoubleBE = function(i, r) {
1596
1596
  return i = i >>> 0, r || G(i, 8, this.length), n.read(this, i, !1, 52, 8);
1597
1597
  };
1598
- function K(a, i, r, h, f, m) {
1598
+ function K(a, i, r, h, f, E) {
1599
1599
  if (!c.isBuffer(a)) throw new TypeError('"buffer" argument must be a Buffer instance');
1600
- if (i > f || i < m) throw new RangeError('"value" argument is out of bounds');
1600
+ if (i > f || i < E) throw new RangeError('"value" argument is out of bounds');
1601
1601
  if (r + h > a.length) throw new RangeError("Index out of range");
1602
1602
  }
1603
1603
  c.prototype.writeUintLE = c.prototype.writeUIntLE = function(i, r, h, f) {
@@ -1605,18 +1605,18 @@ function Cn() {
1605
1605
  const T = Math.pow(2, 8 * h) - 1;
1606
1606
  K(this, i, r, h, T, 0);
1607
1607
  }
1608
- let m = 1, v = 0;
1609
- for (this[r] = i & 255; ++v < h && (m *= 256); )
1610
- this[r + v] = i / m & 255;
1608
+ let E = 1, v = 0;
1609
+ for (this[r] = i & 255; ++v < h && (E *= 256); )
1610
+ this[r + v] = i / E & 255;
1611
1611
  return r + h;
1612
1612
  }, c.prototype.writeUintBE = c.prototype.writeUIntBE = function(i, r, h, f) {
1613
1613
  if (i = +i, r = r >>> 0, h = h >>> 0, !f) {
1614
1614
  const T = Math.pow(2, 8 * h) - 1;
1615
1615
  K(this, i, r, h, T, 0);
1616
1616
  }
1617
- let m = h - 1, v = 1;
1618
- for (this[r + m] = i & 255; --m >= 0 && (v *= 256); )
1619
- this[r + m] = i / v & 255;
1617
+ let E = h - 1, v = 1;
1618
+ for (this[r + E] = i & 255; --E >= 0 && (v *= 256); )
1619
+ this[r + E] = i / v & 255;
1620
1620
  return r + h;
1621
1621
  }, c.prototype.writeUint8 = c.prototype.writeUInt8 = function(i, r, h) {
1622
1622
  return i = +i, r = r >>> 0, h || K(this, i, r, 1, 255, 0), this[r] = i & 255, r + 1;
@@ -1631,15 +1631,15 @@ function Cn() {
1631
1631
  };
1632
1632
  function bt(a, i, r, h, f) {
1633
1633
  Ot(i, h, f, a, r, 7);
1634
- let m = Number(i & BigInt(4294967295));
1635
- a[r++] = m, m = m >> 8, a[r++] = m, m = m >> 8, a[r++] = m, m = m >> 8, a[r++] = m;
1634
+ let E = Number(i & BigInt(4294967295));
1635
+ a[r++] = E, E = E >> 8, a[r++] = E, E = E >> 8, a[r++] = E, E = E >> 8, a[r++] = E;
1636
1636
  let v = Number(i >> BigInt(32) & BigInt(4294967295));
1637
1637
  return a[r++] = v, v = v >> 8, a[r++] = v, v = v >> 8, a[r++] = v, v = v >> 8, a[r++] = v, r;
1638
1638
  }
1639
1639
  function At(a, i, r, h, f) {
1640
1640
  Ot(i, h, f, a, r, 7);
1641
- let m = Number(i & BigInt(4294967295));
1642
- a[r + 7] = m, m = m >> 8, a[r + 6] = m, m = m >> 8, a[r + 5] = m, m = m >> 8, a[r + 4] = m;
1641
+ let E = Number(i & BigInt(4294967295));
1642
+ a[r + 7] = E, E = E >> 8, a[r + 6] = E, E = E >> 8, a[r + 5] = E, E = E >> 8, a[r + 4] = E;
1643
1643
  let v = Number(i >> BigInt(32) & BigInt(4294967295));
1644
1644
  return a[r + 3] = v, v = v >> 8, a[r + 2] = v, v = v >> 8, a[r + 1] = v, v = v >> 8, a[r] = v, r + 8;
1645
1645
  }
@@ -1652,18 +1652,18 @@ function Cn() {
1652
1652
  const L = Math.pow(2, 8 * h - 1);
1653
1653
  K(this, i, r, h, L - 1, -L);
1654
1654
  }
1655
- let m = 0, v = 1, T = 0;
1656
- for (this[r] = i & 255; ++m < h && (v *= 256); )
1657
- i < 0 && T === 0 && this[r + m - 1] !== 0 && (T = 1), this[r + m] = (i / v >> 0) - T & 255;
1655
+ let E = 0, v = 1, T = 0;
1656
+ for (this[r] = i & 255; ++E < h && (v *= 256); )
1657
+ i < 0 && T === 0 && this[r + E - 1] !== 0 && (T = 1), this[r + E] = (i / v >> 0) - T & 255;
1658
1658
  return r + h;
1659
1659
  }, c.prototype.writeIntBE = function(i, r, h, f) {
1660
1660
  if (i = +i, r = r >>> 0, !f) {
1661
1661
  const L = Math.pow(2, 8 * h - 1);
1662
1662
  K(this, i, r, h, L - 1, -L);
1663
1663
  }
1664
- let m = h - 1, v = 1, T = 0;
1665
- for (this[r + m] = i & 255; --m >= 0 && (v *= 256); )
1666
- i < 0 && T === 0 && this[r + m + 1] !== 0 && (T = 1), this[r + m] = (i / v >> 0) - T & 255;
1664
+ let E = h - 1, v = 1, T = 0;
1665
+ for (this[r + E] = i & 255; --E >= 0 && (v *= 256); )
1666
+ i < 0 && T === 0 && this[r + E + 1] !== 0 && (T = 1), this[r + E] = (i / v >> 0) - T & 255;
1667
1667
  return r + h;
1668
1668
  }, c.prototype.writeInt8 = function(i, r, h) {
1669
1669
  return i = +i, r = r >>> 0, h || K(this, i, r, 1, 127, -128), i < 0 && (i = 255 + i + 1), this[r] = i & 255, r + 1;
@@ -1680,7 +1680,7 @@ function Cn() {
1680
1680
  }), c.prototype.writeBigInt64BE = se(function(i, r = 0) {
1681
1681
  return At(this, i, r, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1682
1682
  });
1683
- function Tt(a, i, r, h, f, m) {
1683
+ function Tt(a, i, r, h, f, E) {
1684
1684
  if (r + h > a.length) throw new RangeError("Index out of range");
1685
1685
  if (r < 0) throw new RangeError("Index out of range");
1686
1686
  }
@@ -1707,12 +1707,12 @@ function Cn() {
1707
1707
  if (h < 0 || h >= this.length) throw new RangeError("Index out of range");
1708
1708
  if (f < 0) throw new RangeError("sourceEnd out of bounds");
1709
1709
  f > this.length && (f = this.length), i.length - r < f - h && (f = i.length - r + h);
1710
- const m = f - h;
1710
+ const E = f - h;
1711
1711
  return this === i && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(r, h, f) : Uint8Array.prototype.set.call(
1712
1712
  i,
1713
1713
  this.subarray(h, f),
1714
1714
  r
1715
- ), m;
1715
+ ), E;
1716
1716
  }, c.prototype.fill = function(i, r, h, f) {
1717
1717
  if (typeof i == "string") {
1718
1718
  if (typeof r == "string" ? (f = r, r = 0, h = this.length) : typeof h == "string" && (f = h, h = this.length), f !== void 0 && typeof f != "string")
@@ -1729,22 +1729,22 @@ function Cn() {
1729
1729
  if (h <= r)
1730
1730
  return this;
1731
1731
  r = r >>> 0, h = h === void 0 ? this.length : h >>> 0, i || (i = 0);
1732
- let m;
1732
+ let E;
1733
1733
  if (typeof i == "number")
1734
- for (m = r; m < h; ++m)
1735
- this[m] = i;
1734
+ for (E = r; E < h; ++E)
1735
+ this[E] = i;
1736
1736
  else {
1737
1737
  const v = c.isBuffer(i) ? i : c.from(i, f), T = v.length;
1738
1738
  if (T === 0)
1739
1739
  throw new TypeError('The value "' + i + '" is invalid for argument "value"');
1740
- for (m = 0; m < h - r; ++m)
1741
- this[m + r] = v[m % T];
1740
+ for (E = 0; E < h - r; ++E)
1741
+ this[E + r] = v[E % T];
1742
1742
  }
1743
1743
  return this;
1744
1744
  };
1745
- const Ee = {};
1745
+ const me = {};
1746
1746
  function Qe(a, i, r) {
1747
- Ee[a] = class extends r {
1747
+ me[a] = class extends r {
1748
1748
  constructor() {
1749
1749
  super(), Object.defineProperty(this, "message", {
1750
1750
  value: i.apply(this, arguments),
@@ -1798,20 +1798,20 @@ function Cn() {
1798
1798
  function Gi(a, i, r) {
1799
1799
  ge(i, "offset"), (a[i] === void 0 || a[i + r] === void 0) && Te(i, a.length - (r + 1));
1800
1800
  }
1801
- function Ot(a, i, r, h, f, m) {
1801
+ function Ot(a, i, r, h, f, E) {
1802
1802
  if (a > r || a < i) {
1803
1803
  const v = typeof i == "bigint" ? "n" : "";
1804
1804
  let T;
1805
- throw i === 0 || i === BigInt(0) ? T = `>= 0${v} and < 2${v} ** ${(m + 1) * 8}${v}` : T = `>= -(2${v} ** ${(m + 1) * 8 - 1}${v}) and < 2 ** ${(m + 1) * 8 - 1}${v}`, new Ee.ERR_OUT_OF_RANGE("value", T, a);
1805
+ throw i === 0 || i === BigInt(0) ? T = `>= 0${v} and < 2${v} ** ${(E + 1) * 8}${v}` : T = `>= -(2${v} ** ${(E + 1) * 8 - 1}${v}) and < 2 ** ${(E + 1) * 8 - 1}${v}`, new me.ERR_OUT_OF_RANGE("value", T, a);
1806
1806
  }
1807
- Gi(h, f, m);
1807
+ Gi(h, f, E);
1808
1808
  }
1809
1809
  function ge(a, i) {
1810
1810
  if (typeof a != "number")
1811
- throw new Ee.ERR_INVALID_ARG_TYPE(i, "number", a);
1811
+ throw new me.ERR_INVALID_ARG_TYPE(i, "number", a);
1812
1812
  }
1813
1813
  function Te(a, i, r) {
1814
- throw Math.floor(a) !== a ? (ge(a, r), new Ee.ERR_OUT_OF_RANGE("offset", "an integer", a)) : i < 0 ? new Ee.ERR_BUFFER_OUT_OF_BOUNDS() : new Ee.ERR_OUT_OF_RANGE(
1814
+ throw Math.floor(a) !== a ? (ge(a, r), new me.ERR_OUT_OF_RANGE("offset", "an integer", a)) : i < 0 ? new me.ERR_BUFFER_OUT_OF_BOUNDS() : new me.ERR_OUT_OF_RANGE(
1815
1815
  "offset",
1816
1816
  `>= 0 and <= ${i}`,
1817
1817
  a
@@ -1829,45 +1829,45 @@ function Cn() {
1829
1829
  let r;
1830
1830
  const h = a.length;
1831
1831
  let f = null;
1832
- const m = [];
1832
+ const E = [];
1833
1833
  for (let v = 0; v < h; ++v) {
1834
1834
  if (r = a.charCodeAt(v), r > 55295 && r < 57344) {
1835
1835
  if (!f) {
1836
1836
  if (r > 56319) {
1837
- (i -= 3) > -1 && m.push(239, 191, 189);
1837
+ (i -= 3) > -1 && E.push(239, 191, 189);
1838
1838
  continue;
1839
1839
  } else if (v + 1 === h) {
1840
- (i -= 3) > -1 && m.push(239, 191, 189);
1840
+ (i -= 3) > -1 && E.push(239, 191, 189);
1841
1841
  continue;
1842
1842
  }
1843
1843
  f = r;
1844
1844
  continue;
1845
1845
  }
1846
1846
  if (r < 56320) {
1847
- (i -= 3) > -1 && m.push(239, 191, 189), f = r;
1847
+ (i -= 3) > -1 && E.push(239, 191, 189), f = r;
1848
1848
  continue;
1849
1849
  }
1850
1850
  r = (f - 55296 << 10 | r - 56320) + 65536;
1851
- } else f && (i -= 3) > -1 && m.push(239, 191, 189);
1851
+ } else f && (i -= 3) > -1 && E.push(239, 191, 189);
1852
1852
  if (f = null, r < 128) {
1853
1853
  if ((i -= 1) < 0) break;
1854
- m.push(r);
1854
+ E.push(r);
1855
1855
  } else if (r < 2048) {
1856
1856
  if ((i -= 2) < 0) break;
1857
- m.push(
1857
+ E.push(
1858
1858
  r >> 6 | 192,
1859
1859
  r & 63 | 128
1860
1860
  );
1861
1861
  } else if (r < 65536) {
1862
1862
  if ((i -= 3) < 0) break;
1863
- m.push(
1863
+ E.push(
1864
1864
  r >> 12 | 224,
1865
1865
  r >> 6 & 63 | 128,
1866
1866
  r & 63 | 128
1867
1867
  );
1868
1868
  } else if (r < 1114112) {
1869
1869
  if ((i -= 4) < 0) break;
1870
- m.push(
1870
+ E.push(
1871
1871
  r >> 18 | 240,
1872
1872
  r >> 12 & 63 | 128,
1873
1873
  r >> 6 & 63 | 128,
@@ -1876,7 +1876,7 @@ function Cn() {
1876
1876
  } else
1877
1877
  throw new Error("Invalid code point");
1878
1878
  }
1879
- return m;
1879
+ return E;
1880
1880
  }
1881
1881
  function Wi(a) {
1882
1882
  const i = [];
@@ -1886,10 +1886,10 @@ function Cn() {
1886
1886
  }
1887
1887
  function zi(a, i) {
1888
1888
  let r, h, f;
1889
- const m = [];
1889
+ const E = [];
1890
1890
  for (let v = 0; v < a.length && !((i -= 2) < 0); ++v)
1891
- r = a.charCodeAt(v), h = r >> 8, f = r % 256, m.push(f), m.push(h);
1892
- return m;
1891
+ r = a.charCodeAt(v), h = r >> 8, f = r % 256, E.push(f), E.push(h);
1892
+ return E;
1893
1893
  }
1894
1894
  function kt(a) {
1895
1895
  return e.toByteArray(Hi(a));
@@ -1942,7 +1942,7 @@ var Tn = function(t, e, n, o) {
1942
1942
  u(d);
1943
1943
  }
1944
1944
  }
1945
- function E(_) {
1945
+ function m(_) {
1946
1946
  try {
1947
1947
  p(o.throw(_));
1948
1948
  } catch (d) {
@@ -1950,7 +1950,7 @@ var Tn = function(t, e, n, o) {
1950
1950
  }
1951
1951
  }
1952
1952
  function p(_) {
1953
- _.done ? s(_.value) : l(_.value).then(c, E);
1953
+ _.done ? s(_.value) : l(_.value).then(c, m);
1954
1954
  }
1955
1955
  p((o = o.apply(t, e || [])).next());
1956
1956
  });
@@ -2018,8 +2018,8 @@ const ve = (t) => {
2018
2018
  };
2019
2019
  u.personaVideoStream.push(I);
2020
2020
  }));
2021
- const E = ((o = s["inbound-rtp"]) === null || o === void 0 ? void 0 : o.filter((d) => d.kind === "audio")) || [];
2022
- E.length > 0 && (u.personaAudioStream = [], E.forEach((d) => {
2021
+ const m = ((o = s["inbound-rtp"]) === null || o === void 0 ? void 0 : o.filter((d) => d.kind === "audio")) || [];
2022
+ m.length > 0 && (u.personaAudioStream = [], m.forEach((d) => {
2023
2023
  var S, g, y;
2024
2024
  const C = {
2025
2025
  packetsReceived: (S = d.packetsReceived) !== null && S !== void 0 ? S : "unknown",
@@ -2060,7 +2060,7 @@ const ve = (t) => {
2060
2060
  const _ = [];
2061
2061
  if (c.forEach((d) => {
2062
2062
  typeof d.framesDropped == "number" && d.framesDropped > 0 && _.push(`Video: ${d.framesDropped} frames dropped`), typeof d.packetsLost == "number" && d.packetsLost > 0 && _.push(`Video: ${d.packetsLost} packets lost`), typeof d.framesPerSecond == "number" && d.framesPerSecond < 23 && _.push(`Video: Low frame rate (${d.framesPerSecond} fps)`);
2063
- }), E.forEach((d) => {
2063
+ }), m.forEach((d) => {
2064
2064
  typeof d.packetsLost == "number" && d.packetsLost > 0 && _.push(`Audio: ${d.packetsLost} packets lost`), typeof d.jitter == "number" && d.jitter > 0.1 && _.push(`Audio: High jitter (${(d.jitter * 1e3).toFixed(1)}ms)`);
2065
2065
  }), u.issues = _, e === "json")
2066
2066
  return u;
@@ -2190,7 +2190,7 @@ var ye = function(t, e, n, o) {
2190
2190
  u(d);
2191
2191
  }
2192
2192
  }
2193
- function E(_) {
2193
+ function m(_) {
2194
2194
  try {
2195
2195
  p(o.throw(_));
2196
2196
  } catch (d) {
@@ -2198,7 +2198,7 @@ var ye = function(t, e, n, o) {
2198
2198
  }
2199
2199
  }
2200
2200
  function p(_) {
2201
- _.done ? s(_.value) : l(_.value).then(c, E);
2201
+ _.done ? s(_.value) : l(_.value).then(c, m);
2202
2202
  }
2203
2203
  p((o = o.apply(t, e || [])).next());
2204
2204
  });
@@ -2206,7 +2206,7 @@ var ye = function(t, e, n, o) {
2206
2206
  const Mn = 5, Un = 5;
2207
2207
  class Ln {
2208
2208
  constructor(e, n, o, l, s) {
2209
- var u, c, E, p, _;
2209
+ var u, c, m, p, _;
2210
2210
  if (this.stopSignal = !1, this.sendingBuffer = [], this.wsConnectionAttempts = 0, this.socket = null, this.heartBeatIntervalRef = null, this.publicEventEmitter = o, this.internalEventEmitter = l, this.apiGatewayConfig = s, !e)
2211
2211
  throw new Error("Signalling Client: sessionId is required");
2212
2212
  this.sessionId = e;
@@ -2214,7 +2214,7 @@ class Ln {
2214
2214
  if (this.heartbeatIntervalSeconds = d || Mn, this.maxWsReconnectionAttempts = S || Un, !g.baseUrl)
2215
2215
  throw new Error("Signalling Client: baseUrl is required");
2216
2216
  if (!((u = this.apiGatewayConfig) === null || u === void 0) && u.enabled && (!((c = this.apiGatewayConfig) === null || c === void 0) && c.baseUrl)) {
2217
- const y = new URL(this.apiGatewayConfig.baseUrl), C = (E = this.apiGatewayConfig.wsPath) !== null && E !== void 0 ? E : "/ws";
2217
+ const y = new URL(this.apiGatewayConfig.baseUrl), C = (m = this.apiGatewayConfig.wsPath) !== null && m !== void 0 ? m : "/ws";
2218
2218
  y.protocol = y.protocol.replace("http", "ws"), y.pathname = C, this.url = y;
2219
2219
  const A = g.protocol || "https", I = A === "http" ? "ws" : "wss", b = `${A}://${g.baseUrl}`, R = (p = g.signallingPath) !== null && p !== void 0 ? p : "/ws", M = new URL(b);
2220
2220
  M.protocol = I === "ws" ? "ws:" : "wss:", g.port && (M.port = g.port), M.pathname = R, M.searchParams.append("session_id", e), this.url.searchParams.append("target_url", M.href);
@@ -2359,7 +2359,7 @@ var Zt = function(t, e, n, o) {
2359
2359
  u(d);
2360
2360
  }
2361
2361
  }
2362
- function E(_) {
2362
+ function m(_) {
2363
2363
  try {
2364
2364
  p(o.throw(_));
2365
2365
  } catch (d) {
@@ -2367,7 +2367,7 @@ var Zt = function(t, e, n, o) {
2367
2367
  }
2368
2368
  }
2369
2369
  function p(_) {
2370
- _.done ? s(_.value) : l(_.value).then(c, E);
2370
+ _.done ? s(_.value) : l(_.value).then(c, m);
2371
2371
  }
2372
2372
  p((o = o.apply(t, e || [])).next());
2373
2373
  });
@@ -2412,7 +2412,7 @@ class Pn {
2412
2412
  sessionOptions: n,
2413
2413
  clientMetadata: Oi
2414
2414
  })
2415
- }), c = yield u.json(), E = c.error;
2415
+ }), c = yield u.json(), m = c.error;
2416
2416
  switch (u.status) {
2417
2417
  case 200:
2418
2418
  case 201:
@@ -2426,7 +2426,7 @@ class Pn {
2426
2426
  case 403:
2427
2427
  throw new V("Authentication failed when starting session", j.CLIENT_ERROR_CODE_AUTHENTICATION_ERROR, 403, { cause: c.message });
2428
2428
  case 429:
2429
- throw E === "Concurrent session limit reached" ? new V("Concurrency limit reached, please upgrade your plan", j.CLIENT_ERROR_CODE_MAX_CONCURRENT_SESSIONS_REACHED, 429, { cause: c.message }) : E === "Spend cap reached" ? new V("Spend cap reached, please upgrade your plan", j.CLIENT_ERROR_CODE_SPEND_CAP_REACHED, 429, { cause: c.message }) : new V("Usage limit reached, please upgrade your plan", j.CLIENT_ERROR_CODE_USAGE_LIMIT_REACHED, 429, { cause: c.message });
2429
+ throw m === "Concurrent session limit reached" ? new V("Concurrency limit reached, please upgrade your plan", j.CLIENT_ERROR_CODE_MAX_CONCURRENT_SESSIONS_REACHED, 429, { cause: c.message }) : m === "Spend cap reached" ? new V("Spend cap reached, please upgrade your plan", j.CLIENT_ERROR_CODE_SPEND_CAP_REACHED, 429, { cause: c.message }) : new V("Usage limit reached, please upgrade your plan", j.CLIENT_ERROR_CODE_USAGE_LIMIT_REACHED, 429, { cause: c.message });
2430
2430
  case 503:
2431
2431
  throw new V("There are no available personas, please try again later", j.CLIENT_ERROR_CODE_SERVICE_BUSY, 503, { cause: c.message });
2432
2432
  default:
@@ -2479,7 +2479,7 @@ var Fn = function(t, e, n, o) {
2479
2479
  u(d);
2480
2480
  }
2481
2481
  }
2482
- function E(_) {
2482
+ function m(_) {
2483
2483
  try {
2484
2484
  p(o.throw(_));
2485
2485
  } catch (d) {
@@ -2487,7 +2487,7 @@ var Fn = function(t, e, n, o) {
2487
2487
  }
2488
2488
  }
2489
2489
  function p(_) {
2490
- _.done ? s(_.value) : l(_.value).then(c, E);
2490
+ _.done ? s(_.value) : l(_.value).then(c, m);
2491
2491
  }
2492
2492
  p((o = o.apply(t, e || [])).next());
2493
2493
  });
@@ -2510,15 +2510,15 @@ class $n {
2510
2510
  s["X-Anam-Target-Url"] = p.href;
2511
2511
  } else
2512
2512
  l = `${this.baseUrl}${u}${c}`;
2513
- const E = yield fetch(l, {
2513
+ const m = yield fetch(l, {
2514
2514
  method: "POST",
2515
2515
  headers: s,
2516
2516
  body: JSON.stringify({
2517
2517
  content: e
2518
2518
  })
2519
2519
  });
2520
- if (!E.ok)
2521
- throw new Error(`Failed to send talk command: ${E.status} ${E.statusText}`);
2520
+ if (!m.ok)
2521
+ throw new Error(`Failed to send talk command: ${m.status} ${m.statusText}`);
2522
2522
  } catch (l) {
2523
2523
  throw console.error(l), new Error("EngineApiRestClient - sendTalkCommand: Failed to send talk command");
2524
2524
  }
@@ -2627,7 +2627,7 @@ var st = function(t, e, n, o) {
2627
2627
  u(d);
2628
2628
  }
2629
2629
  }
2630
- function E(_) {
2630
+ function m(_) {
2631
2631
  try {
2632
2632
  p(o.throw(_));
2633
2633
  } catch (d) {
@@ -2635,7 +2635,7 @@ var st = function(t, e, n, o) {
2635
2635
  }
2636
2636
  }
2637
2637
  function p(_) {
2638
- _.done ? s(_.value) : l(_.value).then(c, E);
2638
+ _.done ? s(_.value) : l(_.value).then(c, m);
2639
2639
  }
2640
2640
  p((o = o.apply(t, e || [])).next());
2641
2641
  });
@@ -2708,7 +2708,7 @@ var J = function(t, e, n, o) {
2708
2708
  u(d);
2709
2709
  }
2710
2710
  }
2711
- function E(_) {
2711
+ function m(_) {
2712
2712
  try {
2713
2713
  p(o.throw(_));
2714
2714
  } catch (d) {
@@ -2716,7 +2716,7 @@ var J = function(t, e, n, o) {
2716
2716
  }
2717
2717
  }
2718
2718
  function p(_) {
2719
- _.done ? s(_.value) : l(_.value).then(c, E);
2719
+ _.done ? s(_.value) : l(_.value).then(c, m);
2720
2720
  }
2721
2721
  p((o = o.apply(t, e || [])).next());
2722
2722
  });
@@ -2724,13 +2724,13 @@ var J = function(t, e, n, o) {
2724
2724
  const Wn = 15e3, zn = 5e3, qn = 2;
2725
2725
  class Yn {
2726
2726
  constructor(e, n, o, l) {
2727
- var s, u, c, E;
2727
+ var s, u, c, m;
2728
2728
  this.peerConnection = null, this.connectionReceivedAnswer = !1, this.remoteIceCandidateBuffer = [], this.inputAudioStream = null, this.dataChannel = null, this.videoElement = null, this.videoStream = null, this.audioStream = null, this.inputAudioState = {
2729
2729
  isMuted: !1,
2730
2730
  permissionState: ue.NOT_REQUESTED
2731
2731
  }, this.successMetricPoller = null, this.successMetricFired = !1, this.showPeerConnectionStatsReport = !1, this.peerConnectionStatsReportOutputFormat = "console", this.statsCollectionInterval = null, this.agentAudioInputStream = null, this.publicEventEmitter = o, this.internalEventEmitter = l, this.apiGatewayConfig = n.apiGateway;
2732
2732
  const { inputAudio: p } = n;
2733
- this.inputAudioState = p.inputAudioState, n.inputAudio.userProvidedMediaStream && (this.inputAudioStream = n.inputAudio.userProvidedMediaStream), this.disableInputAudio = n.inputAudio.disableInputAudio === !0, this.internalEventEmitter.addListener(X.WEB_SOCKET_OPEN, this.onSignallingClientConnected.bind(this)), this.internalEventEmitter.addListener(X.SIGNAL_MESSAGE_RECEIVED, this.onSignalMessage.bind(this)), this.iceServers = n.iceServers, this.signallingClient = new Ln(e, n.signalling, this.publicEventEmitter, this.internalEventEmitter, this.apiGatewayConfig), this.engineApiRestClient = new $n(n.engine.baseUrl, e, this.apiGatewayConfig), this.audioDeviceId = n.inputAudio.audioDeviceId, this.showPeerConnectionStatsReport = (u = (s = n.metrics) === null || s === void 0 ? void 0 : s.showPeerConnectionStatsReport) !== null && u !== void 0 ? u : !1, this.peerConnectionStatsReportOutputFormat = (E = (c = n.metrics) === null || c === void 0 ? void 0 : c.peerConnectionStatsReportOutputFormat) !== null && E !== void 0 ? E : "console";
2733
+ this.inputAudioState = p.inputAudioState, n.inputAudio.userProvidedMediaStream && (this.inputAudioStream = n.inputAudio.userProvidedMediaStream), this.disableInputAudio = n.inputAudio.disableInputAudio === !0, this.internalEventEmitter.addListener(X.WEB_SOCKET_OPEN, this.onSignallingClientConnected.bind(this)), this.internalEventEmitter.addListener(X.SIGNAL_MESSAGE_RECEIVED, this.onSignalMessage.bind(this)), this.iceServers = n.iceServers, this.signallingClient = new Ln(e, n.signalling, this.publicEventEmitter, this.internalEventEmitter, this.apiGatewayConfig), this.engineApiRestClient = new $n(n.engine.baseUrl, e, this.apiGatewayConfig), this.audioDeviceId = n.inputAudio.audioDeviceId, this.showPeerConnectionStatsReport = (u = (s = n.metrics) === null || s === void 0 ? void 0 : s.showPeerConnectionStatsReport) !== null && u !== void 0 ? u : !1, this.peerConnectionStatsReportOutputFormat = (m = (c = n.metrics) === null || c === void 0 ? void 0 : c.peerConnectionStatsReportOutputFormat) !== null && m !== void 0 ? m : "console";
2734
2734
  }
2735
2735
  onInputAudioStateChange(e, n) {
2736
2736
  e.isMuted !== n.isMuted && (n.isMuted ? this.muteAllAudioTracks() : this.unmuteAllAudioTracks());
@@ -2920,8 +2920,8 @@ class Yn {
2920
2920
  this.publicEventEmitter.emit(N.TALK_STREAM_INTERRUPTED, c.correlationId);
2921
2921
  break;
2922
2922
  case W.SESSION_READY:
2923
- const E = e.sessionId;
2924
- this.publicEventEmitter.emit(N.SESSION_READY, E);
2923
+ const m = e.sessionId;
2924
+ this.publicEventEmitter.emit(N.SESSION_READY, m);
2925
2925
  break;
2926
2926
  case W.HEARTBEAT:
2927
2927
  break;
@@ -3181,7 +3181,7 @@ var ae = function(t, e, n, o) {
3181
3181
  u(d);
3182
3182
  }
3183
3183
  }
3184
- function E(_) {
3184
+ function m(_) {
3185
3185
  try {
3186
3186
  p(o.throw(_));
3187
3187
  } catch (d) {
@@ -3189,14 +3189,14 @@ var ae = function(t, e, n, o) {
3189
3189
  }
3190
3190
  }
3191
3191
  function p(_) {
3192
- _.done ? s(_.value) : l(_.value).then(c, E);
3192
+ _.done ? s(_.value) : l(_.value).then(c, m);
3193
3193
  }
3194
3194
  p((o = o.apply(t, e || [])).next());
3195
3195
  });
3196
3196
  };
3197
3197
  class Xn {
3198
3198
  constructor(e, n, o) {
3199
- var l, s, u, c, E;
3199
+ var l, s, u, c, m;
3200
3200
  this.inputAudioState = {
3201
3201
  isMuted: !1,
3202
3202
  permissionState: ue.NOT_REQUESTED
@@ -3204,7 +3204,7 @@ class Xn {
3204
3204
  const p = this.validateClientConfig(e, n, o);
3205
3205
  if (p)
3206
3206
  throw new V(p, j.CLIENT_ERROR_CODE_CONFIGURATION_ERROR, 400);
3207
- this.personaConfig = n, this.clientOptions = o, (!((l = o?.api) === null || l === void 0) && l.baseUrl || !((s = o?.api) === null || s === void 0) && s.apiVersion) && Rn(o.api.baseUrl || ki, o.api.apiVersion || wt), !((c = (u = o?.api) === null || u === void 0 ? void 0 : u.apiGateway) === null || c === void 0) && c.enabled && Nn(o.api.apiGateway), !((E = o?.metrics) === null || E === void 0) && E.disableClientMetrics && xn(!0), this.publicEventEmitter = new jn(), this.internalEventEmitter = new Vn(), this.apiClient = new Pn(e, o?.apiKey, o?.api), this.messageHistoryClient = new Gn(this.publicEventEmitter, this.internalEventEmitter), this.reasoningHistoryClient = new Jn(this.publicEventEmitter, this.internalEventEmitter);
3207
+ this.personaConfig = n, this.clientOptions = o, (!((l = o?.api) === null || l === void 0) && l.baseUrl || !((s = o?.api) === null || s === void 0) && s.apiVersion) && Rn(o.api.baseUrl || ki, o.api.apiVersion || wt), !((c = (u = o?.api) === null || u === void 0 ? void 0 : u.apiGateway) === null || c === void 0) && c.enabled && Nn(o.api.apiGateway), !((m = o?.metrics) === null || m === void 0) && m.disableClientMetrics && xn(!0), this.publicEventEmitter = new jn(), this.internalEventEmitter = new Vn(), this.apiClient = new Pn(e, o?.apiKey, o?.api), this.messageHistoryClient = new Gn(this.publicEventEmitter, this.internalEventEmitter), this.reasoningHistoryClient = new Jn(this.publicEventEmitter, this.internalEventEmitter);
3208
3208
  }
3209
3209
  decodeJwt(e) {
3210
3210
  try {
@@ -3228,10 +3228,10 @@ class Xn {
3228
3228
  this.organizationId = c.accountId, ve({
3229
3229
  organizationId: this.organizationId
3230
3230
  });
3231
- const E = (s = c.type) === null || s === void 0 ? void 0 : s.toLowerCase();
3232
- if (E === "legacy")
3231
+ const m = (s = c.type) === null || s === void 0 ? void 0 : s.toLowerCase();
3232
+ if (m === "legacy")
3233
3233
  return "Legacy session tokens are no longer supported. Please define your persona when creating your session token. See https://docs.anam.ai/resources/migrating-legacy for more information.";
3234
- if ((E === "ephemeral" || E === "stateful") && n)
3234
+ if ((m === "ephemeral" || m === "stateful") && n)
3235
3235
  return "This session token already contains a persona configuration. Please remove the personaConfig parameter.";
3236
3236
  } else if (!n)
3237
3237
  return "Missing persona config. Persona configuration must be provided when using apiKey";
@@ -3254,7 +3254,7 @@ class Xn {
3254
3254
  }
3255
3255
  startSession(e) {
3256
3256
  return ae(this, void 0, void 0, function* () {
3257
- var n, o, l, s, u, c, E, p, _, d, S, g;
3257
+ var n, o, l, s, u, c, m, p, _, d, S, g;
3258
3258
  const y = this.personaConfig, C = this.buildStartSessionOptionsForClient(), A = yield this.apiClient.startSession(y, C), { sessionId: I, clientConfig: b, engineHost: R, engineProtocol: M, signallingEndpoint: x } = A, { heartbeatIntervalSeconds: Y, maxWsReconnectionAttempts: te, iceServers: $ } = b;
3259
3259
  this.sessionId = I, ve({
3260
3260
  sessionId: this.sessionId
@@ -3283,7 +3283,7 @@ class Xn {
3283
3283
  },
3284
3284
  apiGateway: (c = (u = this.clientOptions) === null || u === void 0 ? void 0 : u.api) === null || c === void 0 ? void 0 : c.apiGateway,
3285
3285
  metrics: {
3286
- showPeerConnectionStatsReport: (_ = (p = (E = this.clientOptions) === null || E === void 0 ? void 0 : E.metrics) === null || p === void 0 ? void 0 : p.showPeerConnectionStatsReport) !== null && _ !== void 0 ? _ : !1,
3286
+ showPeerConnectionStatsReport: (_ = (p = (m = this.clientOptions) === null || m === void 0 ? void 0 : m.metrics) === null || p === void 0 ? void 0 : p.showPeerConnectionStatsReport) !== null && _ !== void 0 ? _ : !1,
3287
3287
  peerConnectionStatsReportOutputFormat: (g = (S = (d = this.clientOptions) === null || d === void 0 ? void 0 : d.metrics) === null || S === void 0 ? void 0 : S.peerConnectionStatsReportOutputFormat) !== null && g !== void 0 ? g : "console"
3288
3288
  }
3289
3289
  }, this.publicEventEmitter, this.internalEventEmitter);
@@ -3319,11 +3319,11 @@ class Xn {
3319
3319
  }), _e(re.CLIENT_METRIC_MEASUREMENT_SESSION_ATTEMPT, "1"), !((n = this.clientOptions) === null || n === void 0) && n.disableInputAudio && e && console.warn("AnamClient:Input audio is disabled. User provided audio stream will be ignored."), yield this.startSessionIfNeeded(e), this._isStreaming = !0, new Promise((l) => {
3320
3320
  var s;
3321
3321
  const u = [];
3322
- let c = !1, E = !1;
3322
+ let c = !1, m = !1;
3323
3323
  this.publicEventEmitter.addListener(N.VIDEO_STREAM_STARTED, (p) => {
3324
- u.push(p), c = !0, E && l(u);
3324
+ u.push(p), c = !0, m && l(u);
3325
3325
  }), this.publicEventEmitter.addListener(N.AUDIO_STREAM_STARTED, (p) => {
3326
- u.push(p), E = !0, c && l(u);
3326
+ u.push(p), m = !0, c && l(u);
3327
3327
  }), (s = this.streamingClient) === null || s === void 0 || s.startConnection();
3328
3328
  });
3329
3329
  });
@@ -3566,32 +3566,32 @@ async function rr(t, e, n, o, l) {
3566
3566
  }), c = d.sessionToken;
3567
3567
  }
3568
3568
  if (s !== t.generation) return;
3569
- const E = Zn(c, {
3569
+ const m = Zn(c, {
3570
3570
  api: n ? { baseUrl: n } : void 0,
3571
3571
  metrics: { disableClientMetrics: !0 }
3572
3572
  });
3573
- E.addListener(N.CONNECTION_ESTABLISHED, () => {
3573
+ m.addListener(N.CONNECTION_ESTABLISHED, () => {
3574
3574
  s === t.generation && (console.log("[AnamWidget] Connection established"), t.connectionStatus.value = "connected");
3575
- }), E.addListener(N.VIDEO_STREAM_STARTED, () => {
3575
+ }), m.addListener(N.VIDEO_STREAM_STARTED, () => {
3576
3576
  s === t.generation && (console.log("[AnamWidget] Video stream started"), t.isStreaming.value = !0);
3577
- }), E.addListener(N.AUDIO_STREAM_STARTED, () => {
3577
+ }), m.addListener(N.AUDIO_STREAM_STARTED, () => {
3578
3578
  console.log("[AnamWidget] Audio stream started");
3579
- }), E.addListener(N.MESSAGE_HISTORY_UPDATED, (_) => {
3579
+ }), m.addListener(N.MESSAGE_HISTORY_UPDATED, (_) => {
3580
3580
  s === t.generation && (t.messages.value = [..._]);
3581
- }), E.addListener(N.CONNECTION_CLOSED, (_, d) => {
3581
+ }), m.addListener(N.CONNECTION_CLOSED, (_, d) => {
3582
3582
  s === t.generation && (console.log("[AnamWidget] Connection closed:", _, d), t.connectionStatus.value = "idle", t.isStreaming.value = !1, t.sessionId.value = null);
3583
- }), E.addListener(N.SESSION_READY, (_) => {
3583
+ }), m.addListener(N.SESSION_READY, (_) => {
3584
3584
  s === t.generation && (console.log("[AnamWidget] Session ready:", _), t.sessionId.value = _);
3585
3585
  });
3586
- const p = await E.stream();
3586
+ const p = await m.stream();
3587
3587
  if (s !== t.generation) {
3588
3588
  try {
3589
- await E.stopStreaming();
3589
+ await m.stopStreaming();
3590
3590
  } catch {
3591
3591
  }
3592
3592
  return;
3593
3593
  }
3594
- if (t.client.value = E, o && p.length > 0) {
3594
+ if (t.client.value = m, o && p.length > 0) {
3595
3595
  const _ = p.find((d) => d.getVideoTracks().length > 0);
3596
3596
  _ && (o.srcObject = _);
3597
3597
  }
@@ -3644,14 +3644,14 @@ function cr(t, e, n) {
3644
3644
  }
3645
3645
  nr(l, s, c);
3646
3646
  },
3647
- startSession: (E) => !s && !n ? (l.error.value = "No agent ID or session token configured", Promise.resolve()) : rr(l, s || "", c, E, n),
3647
+ startSession: (m) => !s && !n ? (l.error.value = "No agent ID or session token configured", Promise.resolve()) : rr(l, s || "", c, m, n),
3648
3648
  stopSession: () => or(l),
3649
- sendMessage: (E) => sr(l, E),
3649
+ sendMessage: (m) => sr(l, m),
3650
3650
  toggleMute: () => ar(l),
3651
3651
  cleanup: () => lr(l)
3652
3652
  };
3653
3653
  }
3654
- const ur = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-outline-style:solid}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.block{display:block}.flex{display:flex}.inline{display:inline}.flex-shrink{flex-shrink:1}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.border{border-style:var(--tw-border-style);border-width:1px}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}:host{--anam-trigger-size:80px;--anam-sheet-width:400px;--anam-sheet-height:640px;all:initial;color:#18181b;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:DM Sans,system-ui,-apple-system,sans-serif;font-size:15px;line-height:1.5}@media(max-width:640px){:host{--anam-trigger-size:72px;--anam-sheet-width: calc(100vw - 24px) ;--anam-sheet-height: calc(100dvh - 100px) }}.anam-widget{z-index:9999;font-family:inherit}.anam-widget[data-layout=floating]{position:fixed}.anam-widget[data-layout=inline]{position:relative}.anam-trigger{width:var(--anam-trigger-size);height:var(--anam-trigger-size);cursor:pointer;background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;padding:0;transition:all .25s cubic-bezier(.4,0,.2,1);display:flex;overflow:hidden;box-shadow:0 2px 8px #00000014,0 8px 24px -4px #0000002e}.anam-trigger:hover{transform:scale(1.06);box-shadow:0 4px 12px #0000001a,0 12px 32px -4px #00000040}.anam-trigger:active{transform:scale(.97)}.anam-trigger img{object-fit:cover;width:100%;height:100%;display:block}.anam-sheet{width:var(--anam-sheet-width);aspect-ratio:16/10;max-height:var(--anam-sheet-height);border-radius:8px;animation:.25s cubic-bezier(.16,1,.3,1) sheetIn;position:relative;overflow:hidden;box-shadow:0 32px 64px -16px #00000040,0 0 0 1px #00000014}.anam-widget[data-layout=inline] .anam-sheet{aspect-ratio:3/2;border-radius:8px;width:100%;max-height:none;animation:none}@keyframes sheetIn{0%{opacity:0;transform:translateY(8px)scale(.97)}to{opacity:1;transform:translateY(0)scale(1)}}.anam-video{object-fit:cover;background:#000;width:100%;height:100%;display:block;position:absolute;inset:0}.anam-video[data-hidden=true]{visibility:hidden}.anam-overlay-idle{z-index:2;position:absolute;inset:0}.anam-overlay-idle img{object-fit:cover;width:100%;height:100%;display:block}.anam-preview-video{object-fit:cover;z-index:1;width:100%;height:100%;display:block;position:absolute;inset:0}.anam-preview-fallback{z-index:0;position:absolute;inset:0}.anam-cta-pill{z-index:2;-webkit-backdrop-filter:blur(8px);color:#fff;letter-spacing:-.01em;cursor:pointer;white-space:nowrap;background:#ffffff24;border:1px solid #ffffff38;border-radius:999px;align-items:center;gap:12px;min-width:200px;padding:12px 26px;font-family:inherit;font-size:16px;font-weight:600;transition:all .2s;display:flex;position:absolute;bottom:20px;left:50%;transform:translate(-50%)}.anam-cta-pill:hover{background:#ffffff38;transform:translate(-50%)scale(1.03)}.anam-cta-pill:active{transform:translate(-50%)scale(.98)}.anam-cta-pill svg{flex-shrink:0}.anam-overlay-unconfigured{z-index:2;background:#111;flex-direction:column;justify-content:center;align-items:center;gap:16px;display:flex;position:absolute;inset:0}.anam-overlay-unconfigured span{color:#ffffff59;letter-spacing:-.01em;font-size:14px;font-weight:400}.anam-overlay-loading{z-index:3;background:#000;flex-direction:column;justify-content:center;align-items:center;gap:20px;display:flex;position:absolute;inset:0}.anam-overlay-loading span{color:#fffc;letter-spacing:-.01em;font-size:15px;font-weight:400}.anam-overlay-error{z-index:3;background:#000;flex-direction:column;justify-content:center;align-items:center;gap:16px;display:flex;position:absolute;inset:0}.anam-overlay-error-text{color:#fff9;text-align:center;max-width:260px;font-size:14px;line-height:1.5}.anam-overlay-error .anam-retry-btn{-webkit-backdrop-filter:blur(8px);color:#fff;cursor:pointer;background:#ffffff1f;border:1px solid #ffffff1a;border-radius:999px;padding:10px 24px;font-family:inherit;font-size:14px;font-weight:500;transition:background .15s}.anam-overlay-error .anam-retry-btn:hover{background:#fff3}.anam-spinner{border:2.5px solid #ffffff1f;border-top-color:#fff;border-radius:50%;width:32px;height:32px;animation:.75s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.anam-close-btn{z-index:10;-webkit-backdrop-filter:blur(8px);color:#fff;cursor:pointer;background:#00000073;border:1px solid #ffffff38;border-radius:50%;justify-content:center;align-items:center;width:44px;height:44px;padding:0;transition:background .15s;display:flex;position:absolute;top:12px;right:12px}.anam-close-btn:hover{background:#0009}.anam-toast{z-index:10;-webkit-backdrop-filter:blur(16px);color:#fff;letter-spacing:-.01em;white-space:nowrap;text-overflow:ellipsis;pointer-events:none;background:#0009;border:1px solid #ffffff0f;border-radius:999px;max-width:85%;padding:10px 22px;font-size:14px;font-weight:400;animation:.25s cubic-bezier(.16,1,.3,1) toastIn;position:absolute;bottom:80px;left:50%;overflow:hidden;transform:translate(-50%)}.anam-toast-out{animation:.4s forwards toastOut}@keyframes toastIn{0%{opacity:0;transform:translate(-50%)translateY(6px)}to{opacity:1;transform:translate(-50%)translateY(0)}}@keyframes toastOut{0%{opacity:1}to{opacity:0}}.anam-control-bar{z-index:10;background:linear-gradient(#0000,#00000040 40%,#0000008c);justify-content:center;align-items:center;gap:8px;padding:48px 16px 16px;display:flex;position:absolute;bottom:0;left:0;right:0}.anam-ctl-btn{-webkit-backdrop-filter:blur(8px);color:#fff;cursor:pointer;background:#ffffff24;border:1px solid #ffffff38;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;padding:0;transition:background .15s;display:flex}.anam-ctl-btn:hover{background:#ffffff38}.anam-ctl-btn:disabled{opacity:.35;cursor:not-allowed}.anam-ctl-input-wrap{flex:1;align-items:center;min-width:0;margin-right:56px;display:flex;position:relative}.anam-ctl-input{-webkit-backdrop-filter:blur(8px);color:#fff;background:#ffffff1a;border:1px solid #ffffff38;border-radius:999px;outline:none;width:100%;padding:11px 44px 11px 18px;font-family:inherit;font-size:14px;transition:background .15s,border-color .15s}.anam-ctl-input::placeholder{color:#fff6}.anam-ctl-input:focus{background:#ffffff26;border-color:#ffffff2e}.anam-ctl-input:disabled{opacity:.35;cursor:not-allowed}.anam-ctl-send{color:#ffffff80;cursor:pointer;background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;padding:0;transition:color .15s;display:flex;position:absolute;right:6px}.anam-ctl-send:hover{color:#fff}.anam-ctl-send:disabled{opacity:.35;cursor:not-allowed}.anam-watermark{z-index:11;opacity:.5;line-height:0;text-decoration:none;transition:opacity .15s;position:absolute;top:16px;left:16px}.anam-watermark:hover{opacity:.8}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}';
3654
+ const ur = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-outline-style:solid}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.block{display:block}.flex{display:flex}.inline{display:inline}.flex-shrink{flex-shrink:1}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.border{border-style:var(--tw-border-style);border-width:1px}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}:host{--anam-trigger-size:80px;--anam-sheet-width:400px;--anam-sheet-height:640px;all:initial;color:#18181b;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:DM Sans,system-ui,-apple-system,sans-serif;font-size:15px;line-height:1.5}@media(max-width:640px){:host{--anam-trigger-size:72px;--anam-sheet-width: calc(100vw - 24px) ;--anam-sheet-height: calc(100dvh - 100px) }}.anam-widget{z-index:9999;font-family:inherit}.anam-widget[data-layout=floating]{position:fixed}.anam-widget[data-layout=inline]{position:relative}.anam-trigger{width:var(--anam-trigger-size);height:var(--anam-trigger-size);cursor:pointer;background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;padding:0;transition:all .25s cubic-bezier(.4,0,.2,1);display:flex;overflow:hidden;box-shadow:0 2px 8px #00000014,0 8px 24px -4px #0000002e}.anam-trigger:hover{transform:scale(1.06);box-shadow:0 4px 12px #0000001a,0 12px 32px -4px #00000040}.anam-trigger:active{transform:scale(.97)}.anam-trigger img{object-fit:cover;width:100%;height:100%;display:block}.anam-sheet{width:var(--anam-sheet-width);aspect-ratio:16/10;max-height:var(--anam-sheet-height);border-radius:8px;animation:.25s cubic-bezier(.16,1,.3,1) sheetIn;position:relative;overflow:hidden;box-shadow:0 32px 64px -16px #00000040,0 0 0 1px #00000014}.anam-widget[data-layout=inline] .anam-sheet{aspect-ratio:3/2;border-radius:8px;width:100%;max-height:none;animation:none}@keyframes sheetIn{0%{opacity:0;transform:translateY(8px)scale(.97)}to{opacity:1;transform:translateY(0)scale(1)}}.anam-video{object-fit:cover;background:#000;width:100%;height:100%;display:block;position:absolute;inset:0}.anam-video[data-hidden=true]{visibility:hidden}.anam-overlay-idle{z-index:2;position:absolute;inset:0}.anam-overlay-idle img{object-fit:cover;width:100%;height:100%;display:block}.anam-preview-video{object-fit:cover;z-index:1;width:100%;height:100%;display:block;position:absolute;inset:0}.anam-preview-fallback{z-index:0;position:absolute;inset:0}.anam-cta-pill{z-index:2;-webkit-backdrop-filter:blur(12px);color:#2a2220;letter-spacing:-.01em;cursor:pointer;white-space:nowrap;background:#ffffff8c;border:none;border-radius:999px;justify-content:center;align-items:center;gap:10px;padding:14px 28px;font-family:inherit;font-size:18px;font-weight:600;transition:all .2s;display:flex;position:absolute;bottom:20px;left:50%;transform:translate(-50%)}.anam-cta-pill:hover{background:#ffffffb3;transform:translate(-50%)scale(1.03)}.anam-cta-pill:active{transform:translate(-50%)scale(.98)}.anam-cta-pill svg{flex-shrink:0;transform:translateY(-1px)}.anam-overlay-unconfigured{z-index:2;background:#111;flex-direction:column;justify-content:center;align-items:center;gap:16px;display:flex;position:absolute;inset:0}.anam-overlay-unconfigured span{color:#ffffff59;letter-spacing:-.01em;font-size:14px;font-weight:400}.anam-overlay-loading{z-index:3;background:#000;flex-direction:column;justify-content:center;align-items:center;gap:20px;display:flex;position:absolute;inset:0}.anam-overlay-loading span{color:#fffc;letter-spacing:-.01em;font-size:15px;font-weight:400}.anam-overlay-error{z-index:3;background:#000;flex-direction:column;justify-content:center;align-items:center;gap:16px;display:flex;position:absolute;inset:0}.anam-overlay-error-text{color:#fff9;text-align:center;max-width:260px;font-size:14px;line-height:1.5}.anam-overlay-error .anam-retry-btn{-webkit-backdrop-filter:blur(8px);color:#fff;cursor:pointer;background:#ffffff1f;border:1px solid #ffffff1a;border-radius:999px;padding:10px 24px;font-family:inherit;font-size:14px;font-weight:500;transition:background .15s}.anam-overlay-error .anam-retry-btn:hover{background:#fff3}.anam-spinner{border:2.5px solid #ffffff1f;border-top-color:#fff;border-radius:50%;width:32px;height:32px;animation:.75s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.anam-close-btn{z-index:10;-webkit-backdrop-filter:blur(12px);color:#2a2220;cursor:pointer;background:#ffffff8c;border:none;border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;padding:0;transition:background .15s;display:flex;position:absolute;top:12px;right:12px}.anam-close-btn:hover{background:#ffffffb3}.anam-toast{z-index:10;-webkit-backdrop-filter:blur(16px);color:#18181b;letter-spacing:-.01em;white-space:nowrap;text-overflow:ellipsis;pointer-events:none;background:#ffffffeb;border:1px solid #00000014;border-radius:999px;max-width:85%;padding:10px 22px;font-size:14px;font-weight:400;animation:.25s cubic-bezier(.16,1,.3,1) toastIn;position:absolute;bottom:80px;left:50%;overflow:hidden;transform:translate(-50%)}.anam-toast-out{animation:.4s forwards toastOut}@keyframes toastIn{0%{opacity:0;transform:translate(-50%)translateY(6px)}to{opacity:1;transform:translate(-50%)translateY(0)}}@keyframes toastOut{0%{opacity:1}to{opacity:0}}.anam-control-bar{z-index:10;background:0 0;justify-content:center;align-items:center;gap:8px;padding:0;display:flex;position:absolute;bottom:12px;left:12px;right:12px}.anam-ctl-btn{-webkit-backdrop-filter:blur(12px);color:#2a2220;cursor:pointer;background:#ffffff8c;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;padding:0;transition:background .15s;display:flex}.anam-ctl-btn:hover{background:#ffffffb3}.anam-ctl-btn:disabled{opacity:.35;cursor:not-allowed}.anam-ctl-input-wrap{flex:1;align-items:center;min-width:0;display:flex;position:relative}.anam-ctl-input{-webkit-backdrop-filter:blur(12px);color:#2a2220;background:#ffffff8c;border:none;border-radius:999px;outline:none;width:100%;padding:11px 44px 11px 18px;font-family:inherit;font-size:14px;transition:background .15s}.anam-ctl-input::placeholder{color:#2a222080}.anam-ctl-input:focus{background:#ffffffb3}.anam-ctl-input:disabled{opacity:.35;cursor:not-allowed}.anam-ctl-send{color:#2a222080;cursor:pointer;background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;padding:0;transition:color .15s;display:flex;position:absolute;right:6px}.anam-ctl-send:hover{color:#2a2220}.anam-ctl-send:disabled{opacity:.35;cursor:not-allowed}.anam-watermark{z-index:11;opacity:.5;line-height:0;text-decoration:none;transition:opacity .15s;position:absolute;top:16px;left:16px}.anam-watermark:hover{opacity:.8}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}';
3655
3655
  class dr extends we {
3656
3656
  state = { hasError: !1 };
3657
3657
  static getDerivedStateFromError() {
@@ -3686,16 +3686,16 @@ function hr(t) {
3686
3686
  const l = at(t["ui-captions"]);
3687
3687
  return l !== void 0 && (e.showCaptions = l), t["call-to-action"] && (e.callToAction = t["call-to-action"]), e;
3688
3688
  }
3689
- const fr = () => /* @__PURE__ */ w("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2.5", "stroke-linecap": "round", children: /* @__PURE__ */ w("path", { d: "M18 6L6 18M6 6l12 12" }) }), pr = () => /* @__PURE__ */ w("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ w("path", { d: "M8 5.14v13.72a1 1 0 0 0 1.5.86l11.04-6.86a1 1 0 0 0 0-1.72L9.5 4.28A1 1 0 0 0 8 5.14Z" }) }), _r = () => /* @__PURE__ */ w("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", children: [
3689
+ const fr = () => /* @__PURE__ */ w("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "3", "stroke-linecap": "round", children: /* @__PURE__ */ w("path", { d: "M18 6L6 18M6 6l12 12" }) }), pr = () => /* @__PURE__ */ w("svg", { width: "24", height: "24", viewBox: "0 0 640 640", fill: "currentColor", children: /* @__PURE__ */ w("path", { d: "M187.2 100.9C174.8 94.1 159.8 94.4 147.6 101.6C135.4 108.8 128 121.9 128 136L128 504C128 518.1 135.5 531.2 147.6 538.4C159.7 545.6 174.8 545.9 187.2 539.1L523.2 355.1C536 348.1 544 334.6 544 320C544 305.4 536 291.9 523.2 284.9L187.2 100.9z" }) }), _r = () => /* @__PURE__ */ w("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", children: [
3690
3690
  /* @__PURE__ */ w("path", { d: "M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z" }),
3691
3691
  /* @__PURE__ */ w("path", { d: "M19 10v2a7 7 0 0 1-14 0v-2" }),
3692
3692
  /* @__PURE__ */ w("line", { x1: "12", y1: "19", x2: "12", y2: "22" })
3693
- ] }), mr = () => /* @__PURE__ */ w("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", children: [
3693
+ ] }), Er = () => /* @__PURE__ */ w("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", children: [
3694
3694
  /* @__PURE__ */ w("line", { x1: "1", y1: "1", x2: "23", y2: "23" }),
3695
3695
  /* @__PURE__ */ w("path", { d: "M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V5a3 3 0 0 0-5.94-.6" }),
3696
3696
  /* @__PURE__ */ w("path", { d: "M17 16.95A7 7 0 0 1 5 12v-2m14 0v2c0 .87-.16 1.71-.46 2.49" }),
3697
3697
  /* @__PURE__ */ w("line", { x1: "12", y1: "19", x2: "12", y2: "22" })
3698
- ] }), Er = () => /* @__PURE__ */ w("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", children: [
3698
+ ] }), mr = () => /* @__PURE__ */ w("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", children: [
3699
3699
  /* @__PURE__ */ w("line", { x1: "22", y1: "2", x2: "11", y2: "13" }),
3700
3700
  /* @__PURE__ */ w("polygon", { points: "22 2 15 22 11 13 2 9 22 2" })
3701
3701
  ] }), _t = () => /* @__PURE__ */ w("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", style: { opacity: 0.3 }, children: [
@@ -3712,12 +3712,12 @@ function gr({
3712
3712
  onCollapse: u,
3713
3713
  onStop: c
3714
3714
  }) {
3715
- const E = ze(null), [p, _] = Ve(""), [d, S] = Ve(null), [g, y] = Ve(!1), C = ze(null), A = e.connectionStatus.value === "connected", I = e.connectionStatus.value === "connecting", b = e.connectionStatus.value === "error", R = e.isStreaming.value, M = !I && !A && !b, x = nt(async () => {
3715
+ const m = ze(null), [p, _] = Ve(""), [d, S] = Ve(null), [g, y] = Ve(!1), C = ze(null), A = e.connectionStatus.value === "connected", I = e.connectionStatus.value === "connecting", b = e.connectionStatus.value === "error", R = e.isStreaming.value, M = !I && !A && !b, x = nt(async () => {
3716
3716
  n.current && await e.startSession(n.current);
3717
3717
  }, [e.startSession]), Y = nt(() => {
3718
3718
  if (!p.trim()) return;
3719
3719
  const $ = p.trim();
3720
- e.sendMessage($), _(""), E.current?.focus(), C.current && clearTimeout(C.current), y(!1), S($), C.current = window.setTimeout(() => {
3720
+ e.sendMessage($), _(""), m.current?.focus(), C.current && clearTimeout(C.current), y(!1), S($), C.current = window.setTimeout(() => {
3721
3721
  y(!0), C.current = window.setTimeout(() => {
3722
3722
  S(null), y(!1);
3723
3723
  }, 400);
@@ -3801,14 +3801,14 @@ function gr({
3801
3801
  class: `anam-ctl-btn ${e.isMuted.value ? "anam-ctl-btn-muted" : ""}`,
3802
3802
  onClick: () => e.toggleMute(),
3803
3803
  "aria-label": e.isMuted.value ? "Unmute" : "Mute",
3804
- children: e.isMuted.value ? /* @__PURE__ */ w(mr, {}) : /* @__PURE__ */ w(_r, {})
3804
+ children: e.isMuted.value ? /* @__PURE__ */ w(Er, {}) : /* @__PURE__ */ w(_r, {})
3805
3805
  }
3806
3806
  ),
3807
3807
  t.showTextInput && /* @__PURE__ */ w("div", { class: "anam-ctl-input-wrap", children: [
3808
3808
  /* @__PURE__ */ w(
3809
3809
  "input",
3810
3810
  {
3811
- ref: E,
3811
+ ref: m,
3812
3812
  type: "text",
3813
3813
  class: "anam-ctl-input",
3814
3814
  placeholder: "Type a message...",
@@ -3825,7 +3825,7 @@ function gr({
3825
3825
  onClick: Y,
3826
3826
  disabled: !A || !p.trim(),
3827
3827
  "aria-label": "Send message",
3828
- children: /* @__PURE__ */ w(Er, {})
3828
+ children: /* @__PURE__ */ w(mr, {})
3829
3829
  }
3830
3830
  )
3831
3831
  ] })
@@ -3875,7 +3875,7 @@ function yr(t) {
3875
3875
  }, [s.layout, s.initialState]), Ge(() => {
3876
3876
  o.fetchWidgetConfig();
3877
3877
  }, [n, t["api-base-url"], t["session-token"]]);
3878
- const c = t["avatar-url"] || o.avatarThumbnailUrl.value || null, E = t["avatar-video-url"] || o.avatarVideoUrl.value || null, _ = t["agent-name"] || o.personaName.value, d = s.callToAction === qt.callToAction && _ ? `Talk to ${_}` : s.callToAction, S = Ce(() => {
3878
+ const c = t["avatar-url"] || o.avatarThumbnailUrl.value || null, m = t["avatar-video-url"] || o.avatarVideoUrl.value || null, _ = t["agent-name"] || o.personaName.value, d = s.callToAction === qt.callToAction && _ ? `Talk to ${_}` : s.callToAction, S = Ce(() => {
3879
3879
  if (s.layout === "inline") return "";
3880
3880
  const I = yn(s.position);
3881
3881
  return Object.entries(I).map(([b, R]) => `${b}: ${R}`).join("; ");
@@ -3908,7 +3908,7 @@ function yr(t) {
3908
3908
  session: o,
3909
3909
  videoRef: e,
3910
3910
  avatarSrc: c,
3911
- avatarVideoSrc: E,
3911
+ avatarVideoSrc: m,
3912
3912
  displayCta: d,
3913
3913
  onCollapse: g ? C : null,
3914
3914
  onStop: g ? null : () => o.stopSession()