akpm-knowledge-base-chat 1.0.6 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CDN/akb-chat.js +334 -336
  2. package/package.json +1 -1
package/CDN/akb-chat.js CHANGED
@@ -1,4 +1,4 @@
1
- /* Version: 1.0.6 */
1
+ /* Version: 1.0.8 */
2
2
  var gi = Object.defineProperty;
3
3
  var ur = (t) => {
4
4
  throw TypeError(t);
@@ -8,7 +8,7 @@ var $ = (t, e, n) => vi(t, typeof e != "symbol" ? e + "" : e, n), fr = (t, e, n)
8
8
  var H = (t, e, n) => (fr(t, e, "read from private field"), n ? n.call(t) : e.get(t)), un = (t, e, n) => e.has(t) ? ur("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), fn = (t, e, n, r) => (fr(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
9
9
  const _i = "5";
10
10
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(_i);
11
- const On = 1, Nn = 2, Br = 4, bi = 8, mi = 16, ki = 1, wi = 2, Hr = 4, xi = 8, yi = 16, $i = 4, Si = 1, Ei = 2, Ur = "[", Mn = "[!", Dn = "]", qe = {}, U = Symbol();
11
+ const On = 1, Nn = 2, Br = 4, bi = 8, mi = 16, wi = 1, ki = 2, Hr = 4, xi = 8, yi = 16, $i = 4, Si = 1, Ei = 2, Ur = "[", jn = "[!", Mn = "]", Fe = {}, U = Symbol();
12
12
  function Ti(t) {
13
13
  return t.endsWith("capture") && t !== "gotpointercapture" && t !== "lostpointercapture";
14
14
  }
@@ -59,27 +59,27 @@ function Li(t) {
59
59
  return Pi.includes(t);
60
60
  }
61
61
  const _n = !1;
62
- var Zt = Array.isArray, zi = Array.prototype.indexOf, Fn = Array.from, Rt = Object.keys, At = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, Gr = Object.getOwnPropertyDescriptors, Oi = Object.prototype, Ni = Array.prototype, jn = Object.getPrototypeOf;
63
- function Mi(t) {
62
+ var Zt = Array.isArray, zi = Array.prototype.indexOf, Dn = Array.from, Rt = Object.keys, At = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, Gr = Object.getOwnPropertyDescriptors, Oi = Object.prototype, Ni = Array.prototype, qn = Object.getPrototypeOf;
63
+ function ji(t) {
64
64
  return typeof t == "function";
65
65
  }
66
66
  const nt = () => {
67
67
  };
68
- function Di(t) {
68
+ function Mi(t) {
69
69
  return t();
70
70
  }
71
71
  function Pt(t) {
72
72
  for (var e = 0; e < t.length; e++)
73
73
  t[e]();
74
74
  }
75
- const Y = 2, Zr = 4, Vt = 8, Qt = 16, ge = 32, ze = 64, Lt = 128, Oe = 256, zt = 512, q = 1024, we = 2048, Ne = 4096, ae = 8192, Qe = 16384, Vr = 32768, Wt = 65536, Fi = 1 << 17, ji = 1 << 19, Qr = 1 << 20, Ae = Symbol("$state"), Wr = Symbol("legacy props"), qi = Symbol("");
75
+ const Y = 2, Zr = 4, Vt = 8, Qt = 16, ge = 32, ze = 64, Lt = 128, Oe = 256, zt = 512, F = 1024, ke = 2048, Ne = 4096, ae = 8192, Qe = 16384, Vr = 32768, Wt = 65536, Di = 1 << 17, qi = 1 << 19, Qr = 1 << 20, Ae = Symbol("$state"), Wr = Symbol("legacy props"), Fi = Symbol("");
76
76
  function Yr(t) {
77
77
  return t === this.v;
78
78
  }
79
79
  function Bi(t, e) {
80
80
  return t != t ? e == e : t !== e || t !== null && typeof t == "object" || typeof t == "function";
81
81
  }
82
- function qn(t) {
82
+ function Fn(t) {
83
83
  return !Bi(t, this.v);
84
84
  }
85
85
  function Hi(t) {
@@ -135,9 +135,9 @@ function ye(t) {
135
135
  function Yt(t, e = !1) {
136
136
  var r;
137
137
  const n = G(t);
138
- return e || (n.equals = qn), We && P !== null && P.l !== null && ((r = P.l).s ?? (r.s = [])).push(n), n;
138
+ return e || (n.equals = Fn), We && P !== null && P.l !== null && ((r = P.l).s ?? (r.s = [])).push(n), n;
139
139
  }
140
- function wt(t, e = !1) {
140
+ function kt(t, e = !1) {
141
141
  return /* @__PURE__ */ Jr(/* @__PURE__ */ Yt(t, e));
142
142
  }
143
143
  // @__NO_SIDE_EFFECTS__
@@ -156,14 +156,14 @@ function E(t, e) {
156
156
  (ce === null || !ce.includes(t)) && Ki(), bn(t, e);
157
157
  }
158
158
  function bn(t, e) {
159
- return t.equals(e) || (t.v, t.v = e, t.wv = _s(), Kr(t, we), _t() && T !== null && T.f & q && !(T.f & (ge | ze)) && (ve === null ? go([t]) : ve.push(t))), e;
159
+ return t.equals(e) || (t.v, t.v = e, t.wv = _s(), Kr(t, ke), _t() && T !== null && T.f & F && !(T.f & (ge | ze)) && (ve === null ? go([t]) : ve.push(t))), e;
160
160
  }
161
161
  function Kr(t, e) {
162
162
  var n = t.reactions;
163
163
  if (n !== null)
164
164
  for (var r = _t(), s = n.length, i = 0; i < s; i++) {
165
165
  var o = n[i], l = o.f;
166
- l & we || !r && o === T || (oe(o, e), l & (q | Oe) && (l & Y ? Kr(
166
+ l & ke || !r && o === T || (oe(o, e), l & (F | Oe) && (l & Y ? Kr(
167
167
  /** @type {Derived} */
168
168
  o,
169
169
  Ne
@@ -183,7 +183,7 @@ function me(t) {
183
183
  let R;
184
184
  function te(t) {
185
185
  if (t === null)
186
- throw Jt(), qe;
186
+ throw Jt(), Fe;
187
187
  return R = t;
188
188
  }
189
189
  function Ue() {
@@ -192,10 +192,10 @@ function Ue() {
192
192
  /* @__PURE__ */ xe(R)
193
193
  );
194
194
  }
195
- function M(t) {
195
+ function j(t) {
196
196
  if (I) {
197
197
  if (/* @__PURE__ */ xe(R) !== null)
198
- throw Jt(), qe;
198
+ throw Jt(), Fe;
199
199
  R = t;
200
200
  }
201
201
  }
@@ -206,10 +206,10 @@ function mn() {
206
206
  /** @type {Comment} */
207
207
  e.data
208
208
  );
209
- if (n === Dn) {
209
+ if (n === Mn) {
210
210
  if (t === 0) return e;
211
211
  t -= 1;
212
- } else (n === Ur || n === Mn) && (t += 1);
212
+ } else (n === Ur || n === jn) && (t += 1);
213
213
  }
214
214
  var r = (
215
215
  /** @type {TemplateNode} */
@@ -221,7 +221,7 @@ function mn() {
221
221
  function N(t, e = null, n) {
222
222
  if (typeof t != "object" || t === null || Ae in t)
223
223
  return t;
224
- const r = jn(t);
224
+ const r = qn(t);
225
225
  if (r !== Oi && r !== Ni)
226
226
  return t;
227
227
  var s = /* @__PURE__ */ new Map(), i = Zt(t), o = G(0);
@@ -297,7 +297,7 @@ function N(t, e = null, n) {
297
297
  return f;
298
298
  },
299
299
  set(u, a, c, f) {
300
- var k;
300
+ var w;
301
301
  var h = s.get(a), d = a in u;
302
302
  if (i && a === "length")
303
303
  for (var p = c; p < /** @type {Source<number>} */
@@ -305,7 +305,7 @@ function N(t, e = null, n) {
305
305
  var g = s.get(p + "");
306
306
  g !== void 0 ? E(g, U) : p in u && (g = G(U), s.set(p + "", g));
307
307
  }
308
- h === void 0 ? (!d || (k = Re(u, a)) != null && k.writable) && (h = G(void 0), E(h, N(c, l)), s.set(a, h)) : (d = h.v !== U, E(h, N(c, l)));
308
+ h === void 0 ? (!d || (w = Re(u, a)) != null && w.writable) && (h = G(void 0), E(h, N(c, l)), s.set(a, h)) : (d = h.v !== U, E(h, N(c, l)));
309
309
  var b = Reflect.getOwnPropertyDescriptor(u, a);
310
310
  if (b != null && b.set && b.set.call(f, c), !d) {
311
311
  if (i && typeof a == "string") {
@@ -339,7 +339,7 @@ function hr(t, e = 1) {
339
339
  E(t, t.v + e);
340
340
  }
341
341
  var dr, Xr, es;
342
- function kn() {
342
+ function wn() {
343
343
  if (dr === void 0) {
344
344
  dr = window;
345
345
  var t = Element.prototype, e = Node.prototype;
@@ -357,7 +357,7 @@ function W(t) {
357
357
  function xe(t) {
358
358
  return es.call(t);
359
359
  }
360
- function D(t, e) {
360
+ function M(t, e) {
361
361
  if (!I)
362
362
  return /* @__PURE__ */ W(t);
363
363
  var n = (
@@ -372,7 +372,7 @@ function D(t, e) {
372
372
  }
373
373
  return te(n), n;
374
374
  }
375
- function wn(t, e) {
375
+ function kn(t, e) {
376
376
  if (!I) {
377
377
  var n = (
378
378
  /** @type {DocumentFragment} */
@@ -405,7 +405,7 @@ function ts(t) {
405
405
  }
406
406
  // @__NO_SIDE_EFFECTS__
407
407
  function ut(t) {
408
- var e = Y | we;
408
+ var e = Y | ke;
409
409
  T === null ? e |= Oe : T.f |= Qr;
410
410
  var n = z !== null && z.f & Y ? (
411
411
  /** @type {Derived} */
@@ -432,7 +432,7 @@ function ut(t) {
432
432
  // @__NO_SIDE_EFFECTS__
433
433
  function ns(t) {
434
434
  const e = /* @__PURE__ */ ut(t);
435
- return e.equals = qn, e;
435
+ return e.equals = Fn, e;
436
436
  }
437
437
  function rs(t) {
438
438
  var e = t.children;
@@ -472,7 +472,7 @@ function ss(t) {
472
472
  return e;
473
473
  }
474
474
  function is(t) {
475
- var e = ss(t), n = (Ce || t.f & Oe) && t.deps !== null ? Ne : q;
475
+ var e = ss(t), n = (Ce || t.f & Oe) && t.deps !== null ? Ne : F;
476
476
  oe(t, n), t.equals(e) || (t.v = e, t.wv = _s());
477
477
  }
478
478
  function Bn(t) {
@@ -492,7 +492,7 @@ function Ye(t, e, n, r = !0) {
492
492
  deriveds: null,
493
493
  nodes_start: null,
494
494
  nodes_end: null,
495
- f: t | we,
495
+ f: t | ke,
496
496
  first: null,
497
497
  fn: e,
498
498
  last: null,
@@ -579,7 +579,7 @@ function lo() {
579
579
  if (m(t.l.r2)) {
580
580
  for (var e of t.l.r1) {
581
581
  var n = e.effect;
582
- n.f & q && oe(n, Ne), Xe(n) && tn(n), e.ran = !1;
582
+ n.f & F && oe(n, Ne), Xe(n) && tn(n), e.ran = !1;
583
583
  }
584
584
  t.l.r2.v = !1;
585
585
  }
@@ -633,7 +633,7 @@ function ao(t) {
633
633
  }
634
634
  function he(t, e = !0) {
635
635
  var n = !1;
636
- if ((e || t.f & ji) && t.nodes_start !== null) {
636
+ if ((e || t.f & qi) && t.nodes_start !== null) {
637
637
  for (var r = t.nodes_start, s = t.nodes_end; r !== null; ) {
638
638
  var i = r === s ? null : (
639
639
  /** @type {TemplateNode} */
@@ -682,12 +682,12 @@ function Hn(t, e, n) {
682
682
  }
683
683
  }
684
684
  }
685
- function Mt(t) {
685
+ function jt(t) {
686
686
  hs(t, !0);
687
687
  }
688
688
  function hs(t, e) {
689
689
  if (t.f & ae) {
690
- t.f ^= ae, t.f & q || (t.f ^= q), Xe(t) && (oe(t, we), nn(t));
690
+ t.f ^= ae, t.f & F || (t.f ^= F), Xe(t) && (oe(t, ke), nn(t));
691
691
  for (var n = t.first; n !== null; ) {
692
692
  var r = n.next, s = (n.f & Wt) !== 0 || (n.f & ge) !== 0;
693
693
  hs(n, s ? e : !1), n = r;
@@ -698,25 +698,25 @@ function hs(t, e) {
698
698
  }
699
699
  }
700
700
  const co = typeof requestIdleCallback > "u" ? (t) => setTimeout(t, 1) : requestIdleCallback;
701
- let Dt = !1, Ft = !1, xn = [], yn = [];
701
+ let Mt = !1, Dt = !1, xn = [], yn = [];
702
702
  function ds() {
703
- Dt = !1;
703
+ Mt = !1;
704
704
  const t = xn.slice();
705
705
  xn = [], Pt(t);
706
706
  }
707
707
  function ps() {
708
- Ft = !1;
708
+ Dt = !1;
709
709
  const t = yn.slice();
710
710
  yn = [], Pt(t);
711
711
  }
712
712
  function Ke(t) {
713
- Dt || (Dt = !0, queueMicrotask(ds)), xn.push(t);
713
+ Mt || (Mt = !0, queueMicrotask(ds)), xn.push(t);
714
714
  }
715
715
  function uo(t) {
716
- Ft || (Ft = !0, co(ps)), yn.push(t);
716
+ Dt || (Dt = !0, co(ps)), yn.push(t);
717
717
  }
718
718
  function fo() {
719
- Dt && ds(), Ft && ps();
719
+ Mt && ds(), Dt && ps();
720
720
  }
721
721
  function Un(t) {
722
722
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
@@ -746,7 +746,7 @@ let Z = null, Q = 0, ve = null;
746
746
  function go(t) {
747
747
  ve = t;
748
748
  }
749
- let vs = 1, jt = 0, Ce = !1, P = null;
749
+ let vs = 1, qt = 0, Ce = !1, P = null;
750
750
  function _s() {
751
751
  return ++vs;
752
752
  }
@@ -756,7 +756,7 @@ function _t() {
756
756
  function Xe(t) {
757
757
  var a;
758
758
  var e = t.f;
759
- if (e & we)
759
+ if (e & ke)
760
760
  return !0;
761
761
  if (e & Ne) {
762
762
  var n = t.deps, r = (e & Oe) !== 0;
@@ -777,7 +777,7 @@ function Xe(t) {
777
777
  ), i.wv > t.wv)
778
778
  return !0;
779
779
  }
780
- (!r || T !== null && !Ce) && oe(t, q);
780
+ (!r || T !== null && !Ce) && oe(t, F);
781
781
  }
782
782
  return !1;
783
783
  }
@@ -819,7 +819,7 @@ function bs(t, e, n = 0) {
819
819
  i,
820
820
  e,
821
821
  n + 1
822
- ) : e === i && (n === 0 ? oe(i, we) : i.f & q && oe(i, Ne), nn(
822
+ ) : e === i && (n === 0 ? oe(i, ke) : i.f & F && oe(i, Ne), nn(
823
823
  /** @type {Effect} */
824
824
  i
825
825
  ));
@@ -829,7 +829,7 @@ function ms(t) {
829
829
  var d;
830
830
  var e = Z, n = Q, r = ve, s = z, i = Ce, o = ce, l = P, u = Se, a = t.f;
831
831
  Z = /** @type {null | Value[]} */
832
- null, Q = 0, ve = null, z = a & (ge | ze) ? null : t, Ce = !Be && (a & Oe) !== 0, ce = null, P = t.ctx, Se = !1, jt++;
832
+ null, Q = 0, ve = null, z = a & (ge | ze) ? null : t, Ce = !Be && (a & Oe) !== 0, ce = null, P = t.ctx, Se = !1, qt++;
833
833
  try {
834
834
  var c = (
835
835
  /** @type {Function} */
@@ -846,7 +846,7 @@ function ms(t) {
846
846
  for (h = Q; h < f.length; h++)
847
847
  ((d = f[h]).reactions ?? (d.reactions = [])).push(t);
848
848
  } else f !== null && Q < f.length && (pt(t, Q), f.length = Q);
849
- if (_t() && ve !== null && !(t.f & (Y | Ne | we)))
849
+ if (_t() && ve !== null && !(t.f & (Y | Ne | ke)))
850
850
  for (h = 0; h < /** @type {Source[]} */
851
851
  ve.length; h++)
852
852
  bs(
@@ -854,7 +854,7 @@ function ms(t) {
854
854
  /** @type {Effect} */
855
855
  t
856
856
  );
857
- return s !== null && jt++, c;
857
+ return s !== null && qt++, c;
858
858
  } finally {
859
859
  Z = e, Q = n, ve = r, z = s, Ce = i, ce = o, P = l, Se = u;
860
860
  }
@@ -886,7 +886,7 @@ function pt(t, e) {
886
886
  function tn(t) {
887
887
  var e = t.f;
888
888
  if (!(e & Qe)) {
889
- oe(t, q);
889
+ oe(t, F);
890
890
  var n = T, r = P;
891
891
  T = t;
892
892
  try {
@@ -894,7 +894,7 @@ function tn(t) {
894
894
  var s = ms(t);
895
895
  t.teardown = typeof s == "function" ? s : null, t.wv = vs;
896
896
  var i = t.deps, o;
897
- _n && Xi && t.f & we;
897
+ _n && Xi && t.f & ke;
898
898
  } catch (l) {
899
899
  en(l, t, n, r || t.ctx);
900
900
  } finally {
@@ -902,7 +902,7 @@ function tn(t) {
902
902
  }
903
903
  }
904
904
  }
905
- function ks() {
905
+ function ws() {
906
906
  if (He > 1e3) {
907
907
  He = 0;
908
908
  try {
@@ -916,16 +916,16 @@ function ks() {
916
916
  }
917
917
  He++;
918
918
  }
919
- function ws(t) {
919
+ function ks(t) {
920
920
  var e = t.length;
921
921
  if (e !== 0) {
922
- ks();
922
+ ws();
923
923
  var n = Be;
924
924
  Be = !0;
925
925
  try {
926
926
  for (var r = 0; r < e; r++) {
927
927
  var s = t[r];
928
- s.f & q || (s.f ^= q);
928
+ s.f & F || (s.f ^= F);
929
929
  var i = [];
930
930
  xs(s, i), mo(i);
931
931
  }
@@ -947,20 +947,20 @@ function mo(t) {
947
947
  }
948
948
  }
949
949
  }
950
- function ko() {
950
+ function wo() {
951
951
  if (ht = !1, He > 1001)
952
952
  return;
953
953
  const t = Ie;
954
- Ie = [], ws(t), ht || (He = 0, dt = null);
954
+ Ie = [], ks(t), ht || (He = 0, dt = null);
955
955
  }
956
956
  function nn(t) {
957
- Et === gs && (ht || (ht = !0, queueMicrotask(ko))), dt = t;
957
+ Et === gs && (ht || (ht = !0, queueMicrotask(wo))), dt = t;
958
958
  for (var e = t; e.parent !== null; ) {
959
959
  e = e.parent;
960
960
  var n = e.f;
961
961
  if (n & (ze | ge)) {
962
- if (!(n & q)) return;
963
- e.f ^= q;
962
+ if (!(n & F)) return;
963
+ e.f ^= F;
964
964
  }
965
965
  }
966
966
  Ie.push(e);
@@ -968,11 +968,11 @@ function nn(t) {
968
968
  function xs(t, e) {
969
969
  var n = t.first, r = [];
970
970
  e: for (; n !== null; ) {
971
- var s = n.f, i = (s & ge) !== 0, o = i && (s & q) !== 0, l = n.next;
971
+ var s = n.f, i = (s & ge) !== 0, o = i && (s & F) !== 0, l = n.next;
972
972
  if (!o && !(s & ae))
973
973
  if (s & Vt) {
974
974
  if (i)
975
- n.f ^= q;
975
+ n.f ^= F;
976
976
  else
977
977
  try {
978
978
  Xe(n) && tn(n);
@@ -1006,16 +1006,16 @@ function xs(t, e) {
1006
1006
  function V(t) {
1007
1007
  var e = Et, n = Ie;
1008
1008
  try {
1009
- ks();
1009
+ ws();
1010
1010
  const s = [];
1011
- Et = ho, Ie = s, ht = !1, ws(n);
1011
+ Et = ho, Ie = s, ht = !1, ks(n);
1012
1012
  var r = t == null ? void 0 : t();
1013
1013
  return fo(), (Ie.length > 0 || s.length > 0) && V(), He = 0, dt = null, r;
1014
1014
  } finally {
1015
1015
  Et = e, Ie = n;
1016
1016
  }
1017
1017
  }
1018
- async function wo() {
1018
+ async function ko() {
1019
1019
  await Promise.resolve(), V();
1020
1020
  }
1021
1021
  function m(t) {
@@ -1034,7 +1034,7 @@ function m(t) {
1034
1034
  if (z !== null && !Se) {
1035
1035
  ce !== null && ce.includes(t) && Ji();
1036
1036
  var s = z.deps;
1037
- t.rv < jt && (t.rv = jt, Z === null && s !== null && s[Q] === t ? Q++ : Z === null ? Z = [t] : Z.push(t));
1037
+ t.rv < qt && (t.rv = qt, Z === null && s !== null && s[Q] === t ? Q++ : Z === null ? Z = [t] : Z.push(t));
1038
1038
  } else if (n && /** @type {Derived} */
1039
1039
  t.deps === null)
1040
1040
  for (var i = (
@@ -1132,7 +1132,7 @@ function Sn(t, e = /* @__PURE__ */ new Set()) {
1132
1132
  Sn(t[r], e);
1133
1133
  } catch {
1134
1134
  }
1135
- const n = jn(t);
1135
+ const n = qn(t);
1136
1136
  if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
1137
1137
  const r = Gr(n);
1138
1138
  for (let s in r) {
@@ -1250,17 +1250,17 @@ function lt(t) {
1250
1250
  b.apply(i, [t, ...v]);
1251
1251
  } else
1252
1252
  g.call(i, t);
1253
- } catch (k) {
1254
- h ? d.push(k) : h = k;
1253
+ } catch (w) {
1254
+ h ? d.push(w) : h = w;
1255
1255
  }
1256
1256
  if (t.cancelBubble || p === e || p === null)
1257
1257
  break;
1258
1258
  i = p;
1259
1259
  }
1260
1260
  if (h) {
1261
- for (let k of d)
1261
+ for (let w of d)
1262
1262
  queueMicrotask(() => {
1263
- throw k;
1263
+ throw w;
1264
1264
  });
1265
1265
  throw h;
1266
1266
  }
@@ -1336,7 +1336,7 @@ function _r() {
1336
1336
  var t = document.createDocumentFragment(), e = document.createComment(""), n = Ge();
1337
1337
  return t.append(e, n), ue(e, n), t;
1338
1338
  }
1339
- function F(t, e) {
1339
+ function D(t, e) {
1340
1340
  if (I) {
1341
1341
  T.nodes_end = R, Ue();
1342
1342
  return;
@@ -1355,7 +1355,7 @@ function Ts(t, e) {
1355
1355
  return Is(t, e);
1356
1356
  }
1357
1357
  function Io(t, e) {
1358
- kn(), e.intro = e.intro ?? !1;
1358
+ wn(), e.intro = e.intro ?? !1;
1359
1359
  const n = e.target, r = I, s = R;
1360
1360
  try {
1361
1361
  for (var i = (
@@ -1366,28 +1366,28 @@ function Io(t, e) {
1366
1366
  i = /** @type {TemplateNode} */
1367
1367
  /* @__PURE__ */ xe(i);
1368
1368
  if (!i)
1369
- throw qe;
1369
+ throw Fe;
1370
1370
  me(!0), te(
1371
1371
  /** @type {Comment} */
1372
1372
  i
1373
1373
  ), Ue();
1374
1374
  const o = Is(t, { ...e, anchor: i });
1375
1375
  if (R === null || R.nodeType !== 8 || /** @type {Comment} */
1376
- R.data !== Dn)
1377
- throw Jt(), qe;
1376
+ R.data !== Mn)
1377
+ throw Jt(), Fe;
1378
1378
  return me(!1), /** @type {Exports} */
1379
1379
  o;
1380
1380
  } catch (o) {
1381
- if (o === qe)
1382
- return e.recover === !1 && Vi(), kn(), ts(n), me(!1), Ts(t, e);
1381
+ if (o === Fe)
1382
+ return e.recover === !1 && Vi(), wn(), ts(n), me(!1), Ts(t, e);
1383
1383
  throw o;
1384
1384
  } finally {
1385
1385
  me(r), te(s);
1386
1386
  }
1387
1387
  }
1388
- const Fe = /* @__PURE__ */ new Map();
1388
+ const De = /* @__PURE__ */ new Map();
1389
1389
  function Is(t, { target: e, anchor: n, props: r = {}, events: s, context: i, intro: o = !0 }) {
1390
- kn();
1390
+ wn();
1391
1391
  var l = /* @__PURE__ */ new Set(), u = (f) => {
1392
1392
  for (var h = 0; h < f.length; h++) {
1393
1393
  var d = f[h];
@@ -1395,12 +1395,12 @@ function Is(t, { target: e, anchor: n, props: r = {}, events: s, context: i, int
1395
1395
  l.add(d);
1396
1396
  var p = Li(d);
1397
1397
  e.addEventListener(d, lt, { passive: p });
1398
- var g = Fe.get(d);
1399
- g === void 0 ? (document.addEventListener(d, lt, { passive: p }), Fe.set(d, 1)) : Fe.set(d, g + 1);
1398
+ var g = De.get(d);
1399
+ g === void 0 ? (document.addEventListener(d, lt, { passive: p }), De.set(d, 1)) : De.set(d, g + 1);
1400
1400
  }
1401
1401
  }
1402
1402
  };
1403
- u(Fn(Es)), En.add(u);
1403
+ u(Dn(Es)), En.add(u);
1404
1404
  var a = void 0, c = io(() => {
1405
1405
  var f = n ?? e.appendChild(Ge());
1406
1406
  return Ze(() => {
@@ -1423,9 +1423,9 @@ function Is(t, { target: e, anchor: n, props: r = {}, events: s, context: i, int
1423
1423
  e.removeEventListener(h, lt);
1424
1424
  var d = (
1425
1425
  /** @type {number} */
1426
- Fe.get(h)
1426
+ De.get(h)
1427
1427
  );
1428
- --d === 0 ? (document.removeEventListener(h, lt), Fe.delete(h)) : Fe.set(h, d);
1428
+ --d === 0 ? (document.removeEventListener(h, lt), De.delete(h)) : De.set(h, d);
1429
1429
  }
1430
1430
  En.delete(u), f !== n && ((p = f.parentNode) == null || p.removeChild(f));
1431
1431
  };
@@ -1448,13 +1448,13 @@ function gt(t, e, n = !1) {
1448
1448
  if (I) {
1449
1449
  const p = (
1450
1450
  /** @type {Comment} */
1451
- r.data === Mn
1451
+ r.data === jn
1452
1452
  );
1453
1453
  !!o === p && (r = mn(), te(r), me(!1), d = !0);
1454
1454
  }
1455
- o ? (s ? Mt(s) : h && (s = Ze(() => h(r))), i && Nt(i, () => {
1455
+ o ? (s ? jt(s) : h && (s = Ze(() => h(r))), i && Nt(i, () => {
1456
1456
  i = null;
1457
- })) : (i ? Mt(i) : h && (i = Ze(() => h(r))), s && Nt(s, () => {
1457
+ })) : (i ? jt(i) : h && (i = Ze(() => h(r))), s && Nt(s, () => {
1458
1458
  s = null;
1459
1459
  })), d && me(!0);
1460
1460
  };
@@ -1502,7 +1502,7 @@ function Rs(t, e, n, r, s, i = null) {
1502
1502
  I && Ue();
1503
1503
  var c = null, f = !1, h = /* @__PURE__ */ ns(() => {
1504
1504
  var d = n();
1505
- return Zt(d) ? d : d == null ? [] : Fn(d);
1505
+ return Zt(d) ? d : d == null ? [] : Dn(d);
1506
1506
  });
1507
1507
  Xt(() => {
1508
1508
  var d = m(h), p = d.length;
@@ -1513,19 +1513,19 @@ function Rs(t, e, n, r, s, i = null) {
1513
1513
  if (I) {
1514
1514
  var b = (
1515
1515
  /** @type {Comment} */
1516
- o.data === Mn
1516
+ o.data === jn
1517
1517
  );
1518
1518
  b !== (p === 0) && (o = mn(), te(o), me(!1), g = !0);
1519
1519
  }
1520
1520
  if (I) {
1521
- for (var v = null, _, k = 0; k < p; k++) {
1521
+ for (var v = null, _, w = 0; w < p; w++) {
1522
1522
  if (R.nodeType === 8 && /** @type {Comment} */
1523
- R.data === Dn) {
1523
+ R.data === Mn) {
1524
1524
  o = /** @type {Comment} */
1525
1525
  R, g = !0, me(!1);
1526
1526
  break;
1527
1527
  }
1528
- var x = d[k], y = r(x, k);
1528
+ var x = d[w], y = r(x, w);
1529
1529
  _ = As(
1530
1530
  R,
1531
1531
  l,
@@ -1533,7 +1533,7 @@ function Rs(t, e, n, r, s, i = null) {
1533
1533
  null,
1534
1534
  x,
1535
1535
  y,
1536
- k,
1536
+ w,
1537
1537
  s,
1538
1538
  e
1539
1539
  ), l.items.set(y, _), v = _;
@@ -1541,7 +1541,7 @@ function Rs(t, e, n, r, s, i = null) {
1541
1541
  p > 0 && te(mn());
1542
1542
  }
1543
1543
  if (!I) {
1544
- var w = (
1544
+ var k = (
1545
1545
  /** @type {Effect} */
1546
1546
  z
1547
1547
  );
@@ -1551,23 +1551,23 @@ function Rs(t, e, n, r, s, i = null) {
1551
1551
  o,
1552
1552
  s,
1553
1553
  e,
1554
- (w.f & ae) !== 0,
1554
+ (k.f & ae) !== 0,
1555
1555
  r
1556
1556
  );
1557
1557
  }
1558
- i !== null && (p === 0 ? c ? Mt(c) : c = Ze(() => i(o)) : c !== null && Nt(c, () => {
1558
+ i !== null && (p === 0 ? c ? jt(c) : c = Ze(() => i(o)) : c !== null && Nt(c, () => {
1559
1559
  c = null;
1560
1560
  })), g && me(!0), m(h);
1561
1561
  }), I && (o = R);
1562
1562
  }
1563
1563
  function Ao(t, e, n, r, s, i, o, l) {
1564
1564
  var ir, or, lr, ar;
1565
- var u = (s & bi) !== 0, a = (s & (On | Nn)) !== 0, c = t.length, f = e.items, h = e.first, d = h, p, g = null, b, v = [], _ = [], k, x, y, w;
1565
+ var u = (s & bi) !== 0, a = (s & (On | Nn)) !== 0, c = t.length, f = e.items, h = e.first, d = h, p, g = null, b, v = [], _ = [], w, x, y, k;
1566
1566
  if (u)
1567
- for (w = 0; w < c; w += 1)
1568
- k = t[w], x = o(k, w), y = f.get(x), y !== void 0 && ((ir = y.a) == null || ir.measure(), (b ?? (b = /* @__PURE__ */ new Set())).add(y));
1569
- for (w = 0; w < c; w += 1) {
1570
- if (k = t[w], x = o(k, w), y = f.get(x), y === void 0) {
1567
+ for (k = 0; k < c; k += 1)
1568
+ w = t[k], x = o(w, k), y = f.get(x), y !== void 0 && ((ir = y.a) == null || ir.measure(), (b ?? (b = /* @__PURE__ */ new Set())).add(y));
1569
+ for (k = 0; k < c; k += 1) {
1570
+ if (w = t[k], x = o(w, k), y = f.get(x), y === void 0) {
1571
1571
  var L = d ? (
1572
1572
  /** @type {TemplateNode} */
1573
1573
  d.e.nodes_start
@@ -1577,15 +1577,15 @@ function Ao(t, e, n, r, s, i, o, l) {
1577
1577
  e,
1578
1578
  g,
1579
1579
  g === null ? e.first : g.next,
1580
- k,
1581
- x,
1582
1580
  w,
1581
+ x,
1582
+ k,
1583
1583
  r,
1584
1584
  s
1585
1585
  ), f.set(x, g), v = [], _ = [], d = g.next;
1586
1586
  continue;
1587
1587
  }
1588
- if (a && Po(y, k, w, s), y.e.f & ae && (Mt(y.e), u && ((or = y.a) == null || or.unfix(), (b ?? (b = /* @__PURE__ */ new Set())).delete(y))), y !== d) {
1588
+ if (a && Po(y, w, k, s), y.e.f & ae && (jt(y.e), u && ((or = y.a) == null || or.unfix(), (b ?? (b = /* @__PURE__ */ new Set())).delete(y))), y !== d) {
1589
1589
  if (p !== void 0 && p.has(y)) {
1590
1590
  if (v.length < _.length) {
1591
1591
  var S = _[0], O;
@@ -1595,7 +1595,7 @@ function Ao(t, e, n, r, s, i, o, l) {
1595
1595
  br(v[O], S, n);
1596
1596
  for (O = 0; O < _.length; O += 1)
1597
1597
  p.delete(_[O]);
1598
- $e(e, B.prev, an.next), $e(e, g, B), $e(e, an, S), d = S, g = an, w -= 1, v = [], _ = [];
1598
+ $e(e, B.prev, an.next), $e(e, g, B), $e(e, an, S), d = S, g = an, k -= 1, v = [], _ = [];
1599
1599
  } else
1600
1600
  p.delete(y), br(y, d, n), $e(e, y.prev, y.next), $e(e, y, g === null ? e.first : g.next), $e(e, g, y), g = y;
1601
1601
  continue;
@@ -1609,16 +1609,16 @@ function Ao(t, e, n, r, s, i, o, l) {
1609
1609
  v.push(y), g = y, d = y.next;
1610
1610
  }
1611
1611
  if (d !== null || p !== void 0) {
1612
- for (var tt = p === void 0 ? [] : Fn(p); d !== null; )
1612
+ for (var tt = p === void 0 ? [] : Dn(p); d !== null; )
1613
1613
  (i || !(d.e.f & ae)) && tt.push(d), d = d.next;
1614
1614
  var cn = tt.length;
1615
1615
  if (cn > 0) {
1616
1616
  var pi = s & Br && c === 0 ? n : null;
1617
1617
  if (u) {
1618
- for (w = 0; w < cn; w += 1)
1619
- (lr = tt[w].a) == null || lr.measure();
1620
- for (w = 0; w < cn; w += 1)
1621
- (ar = tt[w].a) == null || ar.fix();
1618
+ for (k = 0; k < cn; k += 1)
1619
+ (lr = tt[k].a) == null || lr.measure();
1620
+ for (k = 0; k < cn; k += 1)
1621
+ (ar = tt[k].a) == null || ar.fix();
1622
1622
  }
1623
1623
  Ro(e, tt, pi, f);
1624
1624
  }
@@ -1689,7 +1689,7 @@ function Ps(t, e, n, r, s) {
1689
1689
  a = u, u = /** @type {TemplateNode} */
1690
1690
  /* @__PURE__ */ xe(u);
1691
1691
  if (u === null)
1692
- throw Jt(), qe;
1692
+ throw Jt(), Fe;
1693
1693
  ue(R, a), i = te(u);
1694
1694
  return;
1695
1695
  }
@@ -1754,11 +1754,11 @@ function zo(t) {
1754
1754
  if (!e) {
1755
1755
  if (e = !0, t.hasAttribute("value")) {
1756
1756
  var r = t.value;
1757
- qt(t, "value", null), t.value = r;
1757
+ Ft(t, "value", null), t.value = r;
1758
1758
  }
1759
1759
  if (t.hasAttribute("checked")) {
1760
1760
  var s = t.checked;
1761
- qt(t, "checked", null), t.checked = s;
1761
+ Ft(t, "checked", null), t.checked = s;
1762
1762
  }
1763
1763
  }
1764
1764
  };
@@ -1768,9 +1768,9 @@ function zo(t) {
1768
1768
  function Oo(t, e) {
1769
1769
  e ? t.hasAttribute("selected") || t.setAttribute("selected", "") : t.removeAttribute("selected");
1770
1770
  }
1771
- function qt(t, e, n, r) {
1771
+ function Ft(t, e, n, r) {
1772
1772
  var s = t.__attributes ?? (t.__attributes = {});
1773
- I && (s[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === "LINK") || s[e] !== (s[e] = n) && (e === "style" && "__styles" in t && (t.__styles = {}), e === "loading" && (t[qi] = n), n == null ? t.removeAttribute(e) : typeof n != "string" && Os(t).includes(e) ? t[e] = n : t.setAttribute(e, n));
1773
+ I && (s[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === "LINK") || s[e] !== (s[e] = n) && (e === "style" && "__styles" in t && (t.__styles = {}), e === "loading" && (t[Fi] = n), n == null ? t.removeAttribute(e) : typeof n != "string" && Os(t).includes(e) ? t[e] = n : t.setAttribute(e, n));
1774
1774
  }
1775
1775
  function mr(t, e, n, r, s = !1, i = !1, o = !1) {
1776
1776
  var l = e || {}, u = t.tagName === "OPTION";
@@ -1793,21 +1793,21 @@ function mr(t, e, n, r, s = !1, i = !1, o = !1) {
1793
1793
  var d = v[0] + v[1];
1794
1794
  if (d !== "$$") {
1795
1795
  if (d === "on") {
1796
- const k = {}, x = "$$" + v;
1796
+ const w = {}, x = "$$" + v;
1797
1797
  let y = v.slice(2);
1798
1798
  var p = Ci(y);
1799
- if (Ti(y) && (y = y.slice(0, -7), k.capture = !0), !p && h) {
1799
+ if (Ti(y) && (y = y.slice(0, -7), w.capture = !0), !p && h) {
1800
1800
  if (_ != null) continue;
1801
- t.removeEventListener(y, l[x], k), l[x] = null;
1801
+ t.removeEventListener(y, l[x], w), l[x] = null;
1802
1802
  }
1803
1803
  if (_ != null)
1804
1804
  if (p)
1805
1805
  t[`__${y}`] = _, bt([y]);
1806
1806
  else {
1807
- let w = function(L) {
1807
+ let k = function(L) {
1808
1808
  l[v].call(this, L);
1809
1809
  };
1810
- l[x] = So(y, t, w, k);
1810
+ l[x] = So(y, t, k, w);
1811
1811
  }
1812
1812
  else p && (t[`__${y}`] = void 0);
1813
1813
  } else if (v === "style" && _ != null)
@@ -1832,20 +1832,20 @@ function mr(t, e, n, r, s = !1, i = !1, o = !1) {
1832
1832
  var b = g === "defaultValue" || g === "defaultChecked";
1833
1833
  if (_ == null && !i && !b)
1834
1834
  if (f[v] = null, g === "value" || g === "checked") {
1835
- let k = (
1835
+ let w = (
1836
1836
  /** @type {HTMLInputElement} */
1837
1837
  t
1838
1838
  );
1839
1839
  if (g === "value") {
1840
- let x = k.defaultValue;
1841
- k.removeAttribute(g), k.defaultValue = x;
1840
+ let x = w.defaultValue;
1841
+ w.removeAttribute(g), w.defaultValue = x;
1842
1842
  } else {
1843
- let x = k.defaultChecked;
1844
- k.removeAttribute(g), k.defaultChecked = x;
1843
+ let x = w.defaultChecked;
1844
+ w.removeAttribute(g), w.defaultChecked = x;
1845
1845
  }
1846
1846
  } else
1847
1847
  t.removeAttribute(v);
1848
- else b || c.includes(g) && (i || typeof _ != "string") ? t[g] = _ : typeof _ != "function" && (I && (g === "src" || g === "href" || g === "srcset") || qt(t, g, _));
1848
+ else b || c.includes(g) && (i || typeof _ != "string") ? t[g] = _ : typeof _ != "function" && (I && (g === "src" || g === "href" || g === "srcset") || Ft(t, g, _));
1849
1849
  }
1850
1850
  v === "style" && "__styles" in t && (t.__styles = {});
1851
1851
  }
@@ -1853,27 +1853,27 @@ function mr(t, e, n, r, s = !1, i = !1, o = !1) {
1853
1853
  }
1854
1854
  return l;
1855
1855
  }
1856
- var kr = /* @__PURE__ */ new Map();
1856
+ var wr = /* @__PURE__ */ new Map();
1857
1857
  function Os(t) {
1858
- var e = kr.get(t.nodeName);
1858
+ var e = wr.get(t.nodeName);
1859
1859
  if (e) return e;
1860
- kr.set(t.nodeName, e = []);
1860
+ wr.set(t.nodeName, e = []);
1861
1861
  for (var n, r = t, s = Element.prototype; s !== r; ) {
1862
1862
  n = Gr(r);
1863
1863
  for (var i in n)
1864
1864
  n[i].set && e.push(i);
1865
- r = jn(r);
1865
+ r = qn(r);
1866
1866
  }
1867
1867
  return e;
1868
1868
  }
1869
1869
  function No(t, e, n) {
1870
- var r = t.__className, s = Mo(e, n);
1870
+ var r = t.__className, s = jo(e, n);
1871
1871
  I && t.className === s ? t.__className = s : (r !== s || I && t.className !== s) && (t.className = s, t.__className = s);
1872
1872
  }
1873
- function Mo(t, e) {
1873
+ function jo(t, e) {
1874
1874
  return (t ?? "") + (" " + e);
1875
1875
  }
1876
- const Do = () => performance.now(), be = {
1876
+ const Mo = () => performance.now(), be = {
1877
1877
  // don't access requestAnimationFrame eagerly outside method
1878
1878
  // this allows basic testing of user code without JSDOM
1879
1879
  // bunder will eval and remove ternary when the user's app is built
@@ -1881,7 +1881,7 @@ const Do = () => performance.now(), be = {
1881
1881
  /** @param {any} _ */
1882
1882
  (t) => requestAnimationFrame(t)
1883
1883
  ),
1884
- now: () => Do(),
1884
+ now: () => Mo(),
1885
1885
  tasks: /* @__PURE__ */ new Set()
1886
1886
  };
1887
1887
  function Ns() {
@@ -1890,7 +1890,7 @@ function Ns() {
1890
1890
  e.c(t) || (be.tasks.delete(e), e.f());
1891
1891
  }), be.tasks.size !== 0 && be.tick(Ns);
1892
1892
  }
1893
- function Fo(t) {
1893
+ function Do(t) {
1894
1894
  let e;
1895
1895
  return be.tasks.size === 0 && be.tick(Ns), {
1896
1896
  promise: new Promise((n) => {
@@ -1904,7 +1904,7 @@ function Fo(t) {
1904
1904
  function xt(t, e) {
1905
1905
  t.dispatchEvent(new CustomEvent(e));
1906
1906
  }
1907
- function jo(t) {
1907
+ function qo(t) {
1908
1908
  if (t === "float") return "cssFloat";
1909
1909
  if (t === "offset") return "cssOffset";
1910
1910
  if (t.startsWith("--")) return t;
@@ -1914,18 +1914,18 @@ function jo(t) {
1914
1914
  (n) => n[0].toUpperCase() + n.slice(1)
1915
1915
  ).join("");
1916
1916
  }
1917
- function wr(t) {
1917
+ function kr(t) {
1918
1918
  const e = {}, n = t.split(";");
1919
1919
  for (const r of n) {
1920
1920
  const [s, i] = r.split(":");
1921
1921
  if (!s || i === void 0) break;
1922
- const o = jo(s.trim());
1922
+ const o = qo(s.trim());
1923
1923
  e[o] = i.trim();
1924
1924
  }
1925
1925
  return e;
1926
1926
  }
1927
- const qo = (t) => t;
1928
- function Ms(t, e, n, r) {
1927
+ const Fo = (t) => t;
1928
+ function js(t, e, n, r) {
1929
1929
  var s = (t & $i) !== 0, i = "both", o, l = e.inert, u = e.style.overflow, a, c;
1930
1930
  function f() {
1931
1931
  var b = z, v = T;
@@ -1976,7 +1976,7 @@ function Ms(t, e, n, r) {
1976
1976
  }
1977
1977
  function Cn(t, e, n, r, s) {
1978
1978
  var i = r === 1;
1979
- if (Mi(e)) {
1979
+ if (ji(e)) {
1980
1980
  var o, l = !1;
1981
1981
  return Ke(() => {
1982
1982
  if (!l) {
@@ -1999,10 +1999,10 @@ function Cn(t, e, n, r, s) {
1999
1999
  reset: nt,
2000
2000
  t: () => r
2001
2001
  };
2002
- const { delay: u = 0, css: a, tick: c, easing: f = qo } = e;
2002
+ const { delay: u = 0, css: a, tick: c, easing: f = Fo } = e;
2003
2003
  var h = [];
2004
2004
  if (i && n === void 0 && (c && c(0, 1), a)) {
2005
- var d = wr(a(0, 1));
2005
+ var d = kr(a(0, 1));
2006
2006
  h.push(d, d);
2007
2007
  }
2008
2008
  var p = () => 1 - r, g = t.animate(h, { duration: u });
@@ -2012,13 +2012,13 @@ function Cn(t, e, n, r, s) {
2012
2012
  var v = r - b, _ = (
2013
2013
  /** @type {number} */
2014
2014
  e.duration * Math.abs(v)
2015
- ), k = [];
2015
+ ), w = [];
2016
2016
  if (_ > 0) {
2017
2017
  var x = !1;
2018
2018
  if (a)
2019
- for (var y = Math.ceil(_ / 16.666666666666668), w = 0; w <= y; w += 1) {
2020
- var L = b + v * f(w / y), S = wr(a(L, 1 - L));
2021
- k.push(S), x || (x = S.overflow === "hidden");
2019
+ for (var y = Math.ceil(_ / 16.666666666666668), k = 0; k <= y; k += 1) {
2020
+ var L = b + v * f(k / y), S = kr(a(L, 1 - L));
2021
+ w.push(S), x || (x = S.overflow === "hidden");
2022
2022
  }
2023
2023
  x && (t.style.overflow = "hidden"), p = () => {
2024
2024
  var O = (
@@ -2027,13 +2027,13 @@ function Cn(t, e, n, r, s) {
2027
2027
  g.currentTime
2028
2028
  );
2029
2029
  return b + v * f(O / _);
2030
- }, c && Fo(() => {
2030
+ }, c && Do(() => {
2031
2031
  if (g.playState !== "running") return !1;
2032
2032
  var O = p();
2033
2033
  return c(O, 1 - O), !0;
2034
2034
  });
2035
2035
  }
2036
- g = t.animate(k, { duration: _, fill: "forwards" }), g.onfinish = () => {
2036
+ g = t.animate(w, { duration: _, fill: "forwards" }), g.onfinish = () => {
2037
2037
  p = () => r, c == null || c(r, 1 - r), s();
2038
2038
  };
2039
2039
  }, {
@@ -2114,7 +2114,7 @@ function Uo(t = !1) {
2114
2114
  n.b.length && ro(() => {
2115
2115
  yr(e, r), Pt(n.b);
2116
2116
  }), ft(() => {
2117
- const s = pe(() => n.m.map(Di));
2117
+ const s = pe(() => n.m.map(Mi));
2118
2118
  return () => {
2119
2119
  for (const i of s)
2120
2120
  typeof i == "function" && i();
@@ -2128,7 +2128,7 @@ function yr(t, e) {
2128
2128
  for (const n of t.l.s) m(n);
2129
2129
  e();
2130
2130
  }
2131
- function Ds(t) {
2131
+ function Ms(t) {
2132
2132
  P === null && Un(), We && P.l !== null ? Qo(P).m.push(t) : ft(() => {
2133
2133
  const e = pe(t);
2134
2134
  if (typeof e == "function") return (
@@ -2138,7 +2138,7 @@ function Ds(t) {
2138
2138
  });
2139
2139
  }
2140
2140
  function Go(t) {
2141
- P === null && Un(), Ds(() => () => pe(t));
2141
+ P === null && Un(), Ms(() => () => pe(t));
2142
2142
  }
2143
2143
  function Zo(t, e, { bubbles: n = !1, cancelable: r = !1 } = {}) {
2144
2144
  return new CustomEvent(t, { detail: e, bubbles: n, cancelable: r });
@@ -2233,7 +2233,7 @@ function $r(t) {
2233
2233
  }
2234
2234
  function ne(t, e, n, r) {
2235
2235
  var L;
2236
- var s = (n & ki) !== 0, i = !We || (n & wi) !== 0, o = (n & xi) !== 0, l = (n & yi) !== 0, u = !1, a;
2236
+ var s = (n & wi) !== 0, i = !We || (n & ki) !== 0, o = (n & xi) !== 0, l = (n & yi) !== 0, u = !1, a;
2237
2237
  o ? [a, u] = Wo(() => (
2238
2238
  /** @type {V} */
2239
2239
  t[e]
@@ -2264,7 +2264,7 @@ function ne(t, e, n, r) {
2264
2264
  t[e]
2265
2265
  ))
2266
2266
  );
2267
- v.f |= Fi, b = () => {
2267
+ v.f |= Di, b = () => {
2268
2268
  var S = m(v);
2269
2269
  return S !== void 0 && (h = /** @type {V} */
2270
2270
  void 0), S === void 0 ? h : S;
@@ -2278,18 +2278,18 @@ function ne(t, e, n, r) {
2278
2278
  return arguments.length > 0 ? ((!i || !O || _ || u) && f(O ? b() : S), S) : b();
2279
2279
  };
2280
2280
  }
2281
- var k = !1, x = !1, y = /* @__PURE__ */ Yt(a), w = $r(
2281
+ var w = !1, x = !1, y = /* @__PURE__ */ Yt(a), k = $r(
2282
2282
  () => /* @__PURE__ */ ut(() => {
2283
2283
  var S = b(), O = m(y);
2284
- return k ? (k = !1, x = !0, O) : (x = !1, y.v = S);
2284
+ return w ? (w = !1, x = !0, O) : (x = !1, y.v = S);
2285
2285
  })
2286
2286
  );
2287
- return s || (w.equals = qn), function(S, O) {
2287
+ return s || (k.equals = Fn), function(S, O) {
2288
2288
  if (arguments.length > 0) {
2289
- const B = O ? m(w) : i && o ? N(S) : S;
2290
- return w.equals(B) || (k = !0, E(y, B), p && h !== void 0 && (h = B), pe(() => m(w))), S;
2289
+ const B = O ? m(k) : i && o ? N(S) : S;
2290
+ return k.equals(B) || (w = !0, E(y, B), p && h !== void 0 && (h = B), pe(() => m(k))), S;
2291
2291
  }
2292
- return m(w);
2292
+ return m(k);
2293
2293
  };
2294
2294
  }
2295
2295
  function Ko(t) {
@@ -2376,8 +2376,8 @@ class Xo {
2376
2376
  }
2377
2377
  }
2378
2378
  _e = new WeakMap(), K = new WeakMap();
2379
- let Fs;
2380
- typeof HTMLElement == "function" && (Fs = class extends HTMLElement {
2379
+ let Ds;
2380
+ typeof HTMLElement == "function" && (Ds = class extends HTMLElement {
2381
2381
  /**
2382
2382
  * @param {*} $$componentCtor
2383
2383
  * @param {*} $$slots
@@ -2435,7 +2435,7 @@ typeof HTMLElement == "function" && (Fs = class extends HTMLElement {
2435
2435
  let e = function(s) {
2436
2436
  return (i) => {
2437
2437
  const o = document.createElement("slot");
2438
- s !== "default" && (o.name = s), F(i, o);
2438
+ s !== "default" && (o.name = s), D(i, o);
2439
2439
  };
2440
2440
  };
2441
2441
  if (await Promise.resolve(), !this.$$cn || this.$$c)
@@ -2547,8 +2547,8 @@ function el(t) {
2547
2547
  ] = !0;
2548
2548
  }), e;
2549
2549
  }
2550
- function Me(t, e, n, r, s, i) {
2551
- let o = class extends Fs {
2550
+ function je(t, e, n, r, s, i) {
2551
+ let o = class extends Ds {
2552
2552
  constructor() {
2553
2553
  super(t, n, s), this.$$p_d = e;
2554
2554
  }
@@ -2583,7 +2583,7 @@ function Me(t, e, n, r, s, i) {
2583
2583
  }), t.element = /** @type {any} */
2584
2584
  o, o;
2585
2585
  }
2586
- function js(t) {
2586
+ function qs(t) {
2587
2587
  const e = t - 1;
2588
2588
  return e * e * e + 1;
2589
2589
  }
@@ -2595,7 +2595,7 @@ function Sr(t) {
2595
2595
  "px"
2596
2596
  ];
2597
2597
  }
2598
- function tl(t, { delay: e = 0, duration: n = 400, easing: r = js, x: s = 0, y: i = 0, opacity: o = 0 } = {}) {
2598
+ function tl(t, { delay: e = 0, duration: n = 400, easing: r = qs, x: s = 0, y: i = 0, opacity: o = 0 } = {}) {
2599
2599
  const l = getComputedStyle(t), u = +l.opacity, a = l.transform === "none" ? "" : l.transform, c = u * (1 - o), [f, h] = Sr(s), [d, p] = Sr(i);
2600
2600
  return {
2601
2601
  delay: e,
@@ -2606,7 +2606,7 @@ function tl(t, { delay: e = 0, duration: n = 400, easing: r = js, x: s = 0, y: i
2606
2606
  opacity: ${u - c * b}`
2607
2607
  };
2608
2608
  }
2609
- function nl(t, { delay: e = 0, duration: n = 400, easing: r = js, axis: s = "y" } = {}) {
2609
+ function nl(t, { delay: e = 0, duration: n = 400, easing: r = qs, axis: s = "y" } = {}) {
2610
2610
  const i = getComputedStyle(t), o = +i.opacity, l = s === "y" ? "height" : "width", u = parseFloat(i[l]), a = s === "y" ? ["top", "bottom"] : ["left", "right"], c = a.map(
2611
2611
  (v) => (
2612
2612
  /** @type {'Left' | 'Right' | 'Top' | 'Bottom'} */
@@ -2645,7 +2645,7 @@ class fe {
2645
2645
  return new fe(0, !1, "Ciao, sono Ainstein, come posso aiutarti?");
2646
2646
  }
2647
2647
  }
2648
- class ke {
2648
+ class we {
2649
2649
  constructor(e, n, r, s = "New chat", i = []) {
2650
2650
  $(this, "_id");
2651
2651
  $(this, "companyId");
@@ -2664,14 +2664,14 @@ class ke {
2664
2664
  };
2665
2665
  }
2666
2666
  static fromJson(e) {
2667
- return new ke(e._id, e.companyId, e.userId, e.title, e.messages);
2667
+ return new we(e._id, e.companyId, e.userId, e.title, e.messages);
2668
2668
  }
2669
2669
  static emptyChat(e) {
2670
- return new ke("", "", e, "New chat", [fe.firstMessage()]);
2670
+ return new we("", "", e, "New chat", [fe.firstMessage()]);
2671
2671
  }
2672
2672
  }
2673
2673
  eo();
2674
- const qs = /^[a-z0-9]+(-[a-z0-9]+)*$/, rn = (t, e, n, r = "") => {
2674
+ const Fs = /^[a-z0-9]+(-[a-z0-9]+)*$/, rn = (t, e, n, r = "") => {
2675
2675
  const s = t.split(":");
2676
2676
  if (t.slice(0, 1) === "@") {
2677
2677
  if (s.length < 2 || s.length > 3)
@@ -2963,14 +2963,14 @@ function bl(t, e) {
2963
2963
  let i = n.body;
2964
2964
  [n, r].forEach((g) => {
2965
2965
  const b = [], v = g.hFlip, _ = g.vFlip;
2966
- let k = g.rotate;
2967
- v ? _ ? k += 2 : (b.push(
2966
+ let w = g.rotate;
2967
+ v ? _ ? w += 2 : (b.push(
2968
2968
  "translate(" + (s.width + s.left).toString() + " " + (0 - s.top).toString() + ")"
2969
2969
  ), b.push("scale(-1 1)"), s.top = s.left = 0) : _ && (b.push(
2970
2970
  "translate(" + (0 - s.left).toString() + " " + (s.height + s.top).toString() + ")"
2971
2971
  ), b.push("scale(1 -1)"), s.top = s.left = 0);
2972
2972
  let x;
2973
- switch (k < 0 && (k -= Math.floor(k / 4) * 4), k = k % 4, k) {
2973
+ switch (w < 0 && (w -= Math.floor(w / 4) * 4), w = w % 4, w) {
2974
2974
  case 1:
2975
2975
  x = s.height / 2 + s.top, b.unshift(
2976
2976
  "rotate(90 " + x.toString() + " " + x.toString() + ")"
@@ -2987,7 +2987,7 @@ function bl(t, e) {
2987
2987
  );
2988
2988
  break;
2989
2989
  }
2990
- k % 2 === 1 && (s.left !== s.top && (x = s.left, s.left = s.top, s.top = x), s.width !== s.height && (x = s.width, s.width = s.height, s.height = x)), b.length && (i = vl(
2990
+ w % 2 === 1 && (s.left !== s.top && (x = s.left, s.left = s.top, s.top = x), s.width !== s.height && (x = s.width, s.width = s.height, s.height = x)), b.length && (i = vl(
2991
2991
  i,
2992
2992
  '<g transform="' + b.join(" ") + '">',
2993
2993
  "</g>"
@@ -3007,9 +3007,9 @@ function bl(t, e) {
3007
3007
  body: i
3008
3008
  };
3009
3009
  }
3010
- const ml = /\sid="(\S+)"/g, kl = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
3011
- let wl = 0;
3012
- function xl(t, e = kl) {
3010
+ const ml = /\sid="(\S+)"/g, wl = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
3011
+ let kl = 0;
3012
+ function xl(t, e = wl) {
3013
3013
  const n = [];
3014
3014
  let r;
3015
3015
  for (; r = ml.exec(t); )
@@ -3018,7 +3018,7 @@ function xl(t, e = kl) {
3018
3018
  return t;
3019
3019
  const s = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
3020
3020
  return n.forEach((i) => {
3021
- const o = typeof e == "function" ? e(i) : e + (wl++).toString(), l = i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
3021
+ const o = typeof e == "function" ? e(i) : e + (kl++).toString(), l = i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
3022
3022
  t = t.replace(
3023
3023
  // Allowed characters before id: [#;"]
3024
3024
  // Allowed characters after id: [)"], .[a-z]
@@ -3272,7 +3272,7 @@ function Nl(t, e = !0, n = !1) {
3272
3272
  i && r.push(i);
3273
3273
  }), r;
3274
3274
  }
3275
- var Ml = {
3275
+ var jl = {
3276
3276
  resources: [],
3277
3277
  index: 0,
3278
3278
  timeout: 2e3,
@@ -3280,16 +3280,16 @@ var Ml = {
3280
3280
  random: !1,
3281
3281
  dataAfterTimeout: !1
3282
3282
  };
3283
- function Dl(t, e, n, r) {
3283
+ function Ml(t, e, n, r) {
3284
3284
  const s = t.resources.length, i = t.random ? Math.floor(Math.random() * s) : t.index;
3285
3285
  let o;
3286
3286
  if (t.random) {
3287
- let w = t.resources.slice(0);
3288
- for (o = []; w.length > 1; ) {
3289
- const L = Math.floor(Math.random() * w.length);
3290
- o.push(w[L]), w = w.slice(0, L).concat(w.slice(L + 1));
3287
+ let k = t.resources.slice(0);
3288
+ for (o = []; k.length > 1; ) {
3289
+ const L = Math.floor(Math.random() * k.length);
3290
+ o.push(k[L]), k = k.slice(0, L).concat(k.slice(L + 1));
3291
3291
  }
3292
- o = o.concat(w);
3292
+ o = o.concat(k);
3293
3293
  } else
3294
3294
  o = t.resources.slice(i).concat(t.resources.slice(0, i));
3295
3295
  const l = Date.now();
@@ -3299,12 +3299,12 @@ function Dl(t, e, n, r) {
3299
3299
  f && (clearTimeout(f), f = null);
3300
3300
  }
3301
3301
  function g() {
3302
- u === "pending" && (u = "aborted"), p(), h.forEach((w) => {
3303
- w.status === "pending" && (w.status = "aborted");
3302
+ u === "pending" && (u = "aborted"), p(), h.forEach((k) => {
3303
+ k.status === "pending" && (k.status = "aborted");
3304
3304
  }), h = [];
3305
3305
  }
3306
- function b(w, L) {
3307
- L && (d = []), typeof w == "function" && d.push(w);
3306
+ function b(k, L) {
3307
+ L && (d = []), typeof k == "function" && d.push(k);
3308
3308
  }
3309
3309
  function v() {
3310
3310
  return {
@@ -3318,18 +3318,18 @@ function Dl(t, e, n, r) {
3318
3318
  };
3319
3319
  }
3320
3320
  function _() {
3321
- u = "failed", d.forEach((w) => {
3322
- w(void 0, c);
3321
+ u = "failed", d.forEach((k) => {
3322
+ k(void 0, c);
3323
3323
  });
3324
3324
  }
3325
- function k() {
3326
- h.forEach((w) => {
3327
- w.status === "pending" && (w.status = "aborted");
3325
+ function w() {
3326
+ h.forEach((k) => {
3327
+ k.status === "pending" && (k.status = "aborted");
3328
3328
  }), h = [];
3329
3329
  }
3330
- function x(w, L, S) {
3330
+ function x(k, L, S) {
3331
3331
  const O = L !== "success";
3332
- switch (h = h.filter((B) => B !== w), u) {
3332
+ switch (h = h.filter((B) => B !== k), u) {
3333
3333
  case "pending":
3334
3334
  break;
3335
3335
  case "failed":
@@ -3347,8 +3347,8 @@ function Dl(t, e, n, r) {
3347
3347
  c = S, h.length || (o.length ? y() : _());
3348
3348
  return;
3349
3349
  }
3350
- if (p(), k(), !t.random) {
3351
- const B = t.resources.indexOf(w.resource);
3350
+ if (p(), w(), !t.random) {
3351
+ const B = t.resources.indexOf(k.resource);
3352
3352
  B !== -1 && B !== t.index && (t.index = B);
3353
3353
  }
3354
3354
  u = "completed", d.forEach((B) => {
@@ -3359,11 +3359,11 @@ function Dl(t, e, n, r) {
3359
3359
  if (u !== "pending")
3360
3360
  return;
3361
3361
  p();
3362
- const w = o.shift();
3363
- if (w === void 0) {
3362
+ const k = o.shift();
3363
+ if (k === void 0) {
3364
3364
  if (h.length) {
3365
3365
  f = setTimeout(() => {
3366
- p(), u === "pending" && (k(), _());
3366
+ p(), u === "pending" && (w(), _());
3367
3367
  }, t.timeout);
3368
3368
  return;
3369
3369
  }
@@ -3372,18 +3372,18 @@ function Dl(t, e, n, r) {
3372
3372
  }
3373
3373
  const L = {
3374
3374
  status: "pending",
3375
- resource: w,
3375
+ resource: k,
3376
3376
  callback: (S, O) => {
3377
3377
  x(L, S, O);
3378
3378
  }
3379
3379
  };
3380
- h.push(L), a++, f = setTimeout(y, t.rotate), n(w, e, L.callback);
3380
+ h.push(L), a++, f = setTimeout(y, t.rotate), n(k, e, L.callback);
3381
3381
  }
3382
3382
  return setTimeout(y), v;
3383
3383
  }
3384
3384
  function Ys(t) {
3385
3385
  const e = {
3386
- ...Ml,
3386
+ ...jl,
3387
3387
  ...t
3388
3388
  };
3389
3389
  let n = [];
@@ -3391,7 +3391,7 @@ function Ys(t) {
3391
3391
  n = n.filter((l) => l().status === "pending");
3392
3392
  }
3393
3393
  function s(l, u, a) {
3394
- const c = Dl(
3394
+ const c = Ml(
3395
3395
  e,
3396
3396
  l,
3397
3397
  u,
@@ -3417,7 +3417,7 @@ function Ys(t) {
3417
3417
  function Rr() {
3418
3418
  }
3419
3419
  const vn = /* @__PURE__ */ Object.create(null);
3420
- function Fl(t) {
3420
+ function Dl(t) {
3421
3421
  if (!vn[t]) {
3422
3422
  const e = Wn(t);
3423
3423
  if (!e)
@@ -3430,14 +3430,14 @@ function Fl(t) {
3430
3430
  }
3431
3431
  return vn[t];
3432
3432
  }
3433
- function jl(t, e, n) {
3433
+ function ql(t, e, n) {
3434
3434
  let r, s;
3435
3435
  if (typeof t == "string") {
3436
3436
  const i = Pn(t);
3437
3437
  if (!i)
3438
3438
  return n(void 0, 424), Rr;
3439
3439
  s = i.send;
3440
- const o = Fl(t);
3440
+ const o = Dl(t);
3441
3441
  o && (r = o.redundancy);
3442
3442
  } else {
3443
3443
  const i = Vn(t);
@@ -3451,7 +3451,7 @@ function jl(t, e, n) {
3451
3451
  }
3452
3452
  function Ar() {
3453
3453
  }
3454
- function ql(t) {
3454
+ function Fl(t) {
3455
3455
  t.iconsLoaderFlag || (t.iconsLoaderFlag = !0, setTimeout(() => {
3456
3456
  t.iconsLoaderFlag = !1, Ll(t);
3457
3457
  }));
@@ -3459,7 +3459,7 @@ function ql(t) {
3459
3459
  function Bl(t) {
3460
3460
  const e = [], n = [];
3461
3461
  return t.forEach((r) => {
3462
- (r.match(qs) ? e : n).push(r);
3462
+ (r.match(Fs) ? e : n).push(r);
3463
3463
  }), {
3464
3464
  valid: e,
3465
3465
  invalid: n
@@ -3481,7 +3481,7 @@ function st(t, e, n) {
3481
3481
  } catch (s) {
3482
3482
  console.error(s);
3483
3483
  }
3484
- r(), ql(t);
3484
+ r(), Fl(t);
3485
3485
  }
3486
3486
  function Pr(t, e) {
3487
3487
  t instanceof Promise ? t.then((n) => {
@@ -3524,13 +3524,13 @@ function Hl(t, e) {
3524
3524
  const { valid: o, invalid: l } = Bl(s);
3525
3525
  if (l.length && st(t, l, null), !o.length)
3526
3526
  return;
3527
- const u = r.match(qs) ? Pn(n) : null;
3527
+ const u = r.match(Fs) ? Pn(n) : null;
3528
3528
  if (!u) {
3529
3529
  st(t, o, null);
3530
3530
  return;
3531
3531
  }
3532
3532
  u.prepare(n, r, o).forEach((c) => {
3533
- jl(n, c, (f) => {
3533
+ ql(n, c, (f) => {
3534
3534
  st(t, c.icons, f);
3535
3535
  });
3536
3536
  });
@@ -3798,7 +3798,7 @@ function Pe(t, e) {
3798
3798
  "$$host"
3799
3799
  ]);
3800
3800
  Ee(e, !1);
3801
- const r = wt({
3801
+ const r = kt({
3802
3802
  // Last icon name
3803
3803
  name: "",
3804
3804
  // Loading status
@@ -3806,14 +3806,14 @@ function Pe(t, e) {
3806
3806
  // Destroyed status
3807
3807
  destroyed: !1
3808
3808
  });
3809
- let s = wt(!1), i = wt(0), o = wt();
3809
+ let s = kt(!1), i = kt(0), o = kt();
3810
3810
  const l = (h) => {
3811
3811
  typeof n.onLoad == "function" && n.onLoad(h), Vo()("load", { icon: h });
3812
3812
  };
3813
3813
  function u() {
3814
3814
  $n(i);
3815
3815
  }
3816
- Ds(() => {
3816
+ Ms(() => {
3817
3817
  E(s, !0);
3818
3818
  }), Go(() => {
3819
3819
  hn(r, m(r).destroyed = !0), m(r).loading && (m(r).loading.abort(), hn(r, m(r).loading = null));
@@ -3825,36 +3825,36 @@ function Pe(t, e) {
3825
3825
  E(o, d ? Nr(d.data, n) : null), m(o) && d.classes && hn(o, m(o).attributes.class = (typeof n.class == "string" ? n.class + " " : "") + d.classes.join(" "));
3826
3826
  }
3827
3827
  ), lo(), Uo();
3828
- var a = _r(), c = wn(a);
3828
+ var a = _r(), c = kn(a);
3829
3829
  {
3830
3830
  var f = (h) => {
3831
- var d = _r(), p = wn(d);
3831
+ var d = _r(), p = kn(d);
3832
3832
  {
3833
3833
  var g = (v) => {
3834
3834
  var _ = sa();
3835
- let k;
3836
- var x = D(_);
3837
- Ps(x, () => m(o).body, !0, !1), M(_), Ot(() => k = mr(_, k, { ...m(o).attributes }, void 0, !0)), F(v, _);
3835
+ let w;
3836
+ var x = M(_);
3837
+ Ps(x, () => m(o).body, !0, !1), j(_), Ot(() => w = mr(_, w, { ...m(o).attributes }, void 0, !0)), D(v, _);
3838
3838
  }, b = (v) => {
3839
3839
  var _ = ia();
3840
- let k;
3841
- Ot(() => k = mr(_, k, { ...m(o).attributes })), F(v, _);
3840
+ let w;
3841
+ Ot(() => w = mr(_, w, { ...m(o).attributes })), D(v, _);
3842
3842
  };
3843
3843
  gt(p, (v) => {
3844
3844
  m(o).svg ? v(g) : v(b, !1);
3845
3845
  });
3846
3846
  }
3847
- F(h, d);
3847
+ D(h, d);
3848
3848
  };
3849
3849
  gt(c, (h) => {
3850
3850
  m(o) && h(f);
3851
3851
  });
3852
3852
  }
3853
- F(t, a), Te();
3853
+ D(t, a), Te();
3854
3854
  }
3855
- Me(Pe, {}, [], [], !0);
3855
+ je(Pe, {}, [], [], !0);
3856
3856
  const oa = (t, e) => {
3857
- e(new ke("", "", "", "New Chat", [fe.firstMessage()]));
3857
+ e(new we("", "", "", "New Chat", [fe.firstMessage()]));
3858
3858
  };
3859
3859
  var la = (t, e) => e(!e()), aa = (t, e, n) => {
3860
3860
  e() ? (e(!1), setTimeout(
@@ -3871,30 +3871,30 @@ const ua = {
3871
3871
  function Ks(t, e) {
3872
3872
  Ee(e, !0), mt(t, ua);
3873
3873
  let n = ne(e, "show", 15, !1), r = ne(e, "showHistory", 15), s = ne(e, "actChat", 15);
3874
- var i = ca(), o = D(i), l = ie(D(o), 2), u = D(l);
3874
+ var i = ca(), o = M(i), l = ie(M(o), 2), u = M(l);
3875
3875
  u.__click = [oa, s];
3876
- var a = D(u);
3876
+ var a = M(u);
3877
3877
  Pe(a, {
3878
3878
  icon: "ic:round-plus",
3879
3879
  width: "25px",
3880
3880
  height: "25px"
3881
- }), M(u);
3881
+ }), j(u);
3882
3882
  var c = ie(u, 2);
3883
3883
  c.__click = [la, r];
3884
- var f = D(c);
3884
+ var f = M(c);
3885
3885
  Pe(f, {
3886
3886
  icon: "heroicons:chat-bubble-left-right-solid",
3887
3887
  width: "25px",
3888
3888
  height: "25px"
3889
- }), M(c);
3889
+ }), j(c);
3890
3890
  var h = ie(c, 2);
3891
3891
  h.__click = [aa, r, n];
3892
- var d = D(h);
3892
+ var d = M(h);
3893
3893
  return Pe(d, {
3894
3894
  icon: "gg:close",
3895
3895
  width: "20px",
3896
3896
  height: "20px"
3897
- }), M(h), M(l), M(o), M(i), F(t, i), Te({
3897
+ }), j(h), j(l), j(o), j(i), D(t, i), Te({
3898
3898
  get show() {
3899
3899
  return n();
3900
3900
  },
@@ -3916,7 +3916,7 @@ function Ks(t, e) {
3916
3916
  });
3917
3917
  }
3918
3918
  bt(["click"]);
3919
- Me(Ks, { show: {}, showHistory: {}, actChat: {} }, [], [], !0);
3919
+ je(Ks, { show: {}, showHistory: {}, actChat: {} }, [], [], !0);
3920
3920
  var fa = (t, e) => {
3921
3921
  t.key === "Enter" && e();
3922
3922
  }, ha = /* @__PURE__ */ se('<div class="input svelte-1xtazuc"><input type="text" placeholder="Type your message here" class="svelte-1xtazuc"> <button class="svelte-1xtazuc"><!></button></div>');
@@ -3930,16 +3930,16 @@ function Xs(t, e) {
3930
3930
  const s = () => {
3931
3931
  n()(m(r)), E(r, "");
3932
3932
  };
3933
- var i = ha(), o = D(i);
3933
+ var i = ha(), o = M(i);
3934
3934
  zo(o), o.__keyup = [fa, s];
3935
3935
  var l = ie(o, 2);
3936
3936
  l.__click = s;
3937
- var u = D(l);
3937
+ var u = M(l);
3938
3938
  return Pe(u, {
3939
3939
  icon: "material-symbols:send-rounded",
3940
3940
  width: "25px",
3941
3941
  height: "25px"
3942
- }), M(l), M(i), Bo(o, () => m(r), (a) => E(r, a)), F(t, i), Te({
3942
+ }), j(l), j(i), Bo(o, () => m(r), (a) => E(r, a)), D(t, i), Te({
3943
3943
  get sendMessage() {
3944
3944
  return n();
3945
3945
  },
@@ -3949,7 +3949,7 @@ function Xs(t, e) {
3949
3949
  });
3950
3950
  }
3951
3951
  bt(["keyup", "click"]);
3952
- Me(Xs, { sendMessage: {} }, [], [], !0);
3952
+ je(Xs, { sendMessage: {} }, [], [], !0);
3953
3953
  function Yn() {
3954
3954
  return {
3955
3955
  async: !1,
@@ -3964,9 +3964,9 @@ function Yn() {
3964
3964
  walkTokens: null
3965
3965
  };
3966
3966
  }
3967
- let De = Yn();
3967
+ let Me = Yn();
3968
3968
  function ei(t) {
3969
- De = t;
3969
+ Me = t;
3970
3970
  }
3971
3971
  const at = { exec: () => null };
3972
3972
  function C(t, e = "") {
@@ -3974,13 +3974,13 @@ function C(t, e = "") {
3974
3974
  const r = {
3975
3975
  replace: (s, i) => {
3976
3976
  let o = typeof i == "string" ? i : i.source;
3977
- return o = o.replace(j.caret, "$1"), n = n.replace(s, o), r;
3977
+ return o = o.replace(q.caret, "$1"), n = n.replace(s, o), r;
3978
3978
  },
3979
3979
  getRegex: () => new RegExp(n, e)
3980
3980
  };
3981
3981
  return r;
3982
3982
  }
3983
- const j = {
3983
+ const q = {
3984
3984
  codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
3985
3985
  outputLinkReplace: /\\([\[\]])/g,
3986
3986
  indentCodeCompensation: /^(\s+)(?:```)/,
@@ -4037,25 +4037,25 @@ const j = {
4037
4037
  fencesBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:\`\`\`|~~~)`),
4038
4038
  headingBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}#`),
4039
4039
  htmlBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}<(?:[a-z].*>|!--)`, "i")
4040
- }, pa = /^(?:[ \t]*(?:\n|$))+/, ga = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, va = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, kt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, _a = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Jn = /(?:[*+-]|\d{1,9}[.)])/, ti = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ni = C(ti).replace(/bull/g, Jn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), ba = C(ti).replace(/bull/g, Jn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Kn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ma = /^[^\n]+/, Xn = /(?!\s*\])(?:\\.|[^\[\]\\])+/, ka = C(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Xn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), wa = C(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Jn).getRegex(), on = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", er = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, xa = C("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", er).replace("tag", on).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ri = C(Kn).replace("hr", kt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", on).getRegex(), ya = C(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ri).getRegex(), tr = {
4040
+ }, pa = /^(?:[ \t]*(?:\n|$))+/, ga = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, va = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, wt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, _a = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Jn = /(?:[*+-]|\d{1,9}[.)])/, ti = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ni = C(ti).replace(/bull/g, Jn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), ba = C(ti).replace(/bull/g, Jn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Kn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ma = /^[^\n]+/, Xn = /(?!\s*\])(?:\\.|[^\[\]\\])+/, wa = C(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Xn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), ka = C(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Jn).getRegex(), on = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", er = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, xa = C("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", er).replace("tag", on).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ri = C(Kn).replace("hr", wt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", on).getRegex(), ya = C(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ri).getRegex(), tr = {
4041
4041
  blockquote: ya,
4042
4042
  code: ga,
4043
- def: ka,
4043
+ def: wa,
4044
4044
  fences: va,
4045
4045
  heading: _a,
4046
- hr: kt,
4046
+ hr: wt,
4047
4047
  html: xa,
4048
4048
  lheading: ni,
4049
- list: wa,
4049
+ list: ka,
4050
4050
  newline: pa,
4051
4051
  paragraph: ri,
4052
4052
  table: at,
4053
4053
  text: ma
4054
- }, Mr = C("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", kt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", on).getRegex(), $a = {
4054
+ }, jr = C("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", wt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", on).getRegex(), $a = {
4055
4055
  ...tr,
4056
4056
  lheading: ba,
4057
- table: Mr,
4058
- paragraph: C(Kn).replace("hr", kt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Mr).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", on).getRegex()
4057
+ table: jr,
4058
+ paragraph: C(Kn).replace("hr", wt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", jr).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", on).getRegex()
4059
4059
  }, Sa = {
4060
4060
  ...tr,
4061
4061
  html: C(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", er).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
@@ -4064,27 +4064,27 @@ const j = {
4064
4064
  fences: at,
4065
4065
  // fences not supported
4066
4066
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
4067
- paragraph: C(Kn).replace("hr", kt).replace("heading", ` *#{1,6} *[^
4067
+ paragraph: C(Kn).replace("hr", wt).replace("heading", ` *#{1,6} *[^
4068
4068
  ]`).replace("lheading", ni).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
4069
- }, Ea = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ta = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, si = /^( {2,}|\\)\n(?!\s*$)/, Ia = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, ln = /[\p{P}\p{S}]/u, nr = /[\s\p{P}\p{S}]/u, ii = /[^\s\p{P}\p{S}]/u, Ca = C(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, nr).getRegex(), oi = /(?!~)[\p{P}\p{S}]/u, Ra = /(?!~)[\s\p{P}\p{S}]/u, Aa = /(?:[^\s\p{P}\p{S}]|~)/u, Pa = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, li = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, La = C(li, "u").replace(/punct/g, ln).getRegex(), za = C(li, "u").replace(/punct/g, oi).getRegex(), ai = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Oa = C(ai, "gu").replace(/notPunctSpace/g, ii).replace(/punctSpace/g, nr).replace(/punct/g, ln).getRegex(), Na = C(ai, "gu").replace(/notPunctSpace/g, Aa).replace(/punctSpace/g, Ra).replace(/punct/g, oi).getRegex(), Ma = C("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ii).replace(/punctSpace/g, nr).replace(/punct/g, ln).getRegex(), Da = C(/\\(punct)/, "gu").replace(/punct/g, ln).getRegex(), Fa = C(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), ja = C(er).replace("(?:-->|$)", "-->").getRegex(), qa = C("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", ja).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Ht = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Ba = C(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Ht).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ci = C(/^!?\[(label)\]\[(ref)\]/).replace("label", Ht).replace("ref", Xn).getRegex(), ui = C(/^!?\[(ref)\](?:\[\])?/).replace("ref", Xn).getRegex(), Ha = C("reflink|nolink(?!\\()", "g").replace("reflink", ci).replace("nolink", ui).getRegex(), rr = {
4069
+ }, Ea = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ta = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, si = /^( {2,}|\\)\n(?!\s*$)/, Ia = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, ln = /[\p{P}\p{S}]/u, nr = /[\s\p{P}\p{S}]/u, ii = /[^\s\p{P}\p{S}]/u, Ca = C(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, nr).getRegex(), oi = /(?!~)[\p{P}\p{S}]/u, Ra = /(?!~)[\s\p{P}\p{S}]/u, Aa = /(?:[^\s\p{P}\p{S}]|~)/u, Pa = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, li = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, La = C(li, "u").replace(/punct/g, ln).getRegex(), za = C(li, "u").replace(/punct/g, oi).getRegex(), ai = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Oa = C(ai, "gu").replace(/notPunctSpace/g, ii).replace(/punctSpace/g, nr).replace(/punct/g, ln).getRegex(), Na = C(ai, "gu").replace(/notPunctSpace/g, Aa).replace(/punctSpace/g, Ra).replace(/punct/g, oi).getRegex(), ja = C("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ii).replace(/punctSpace/g, nr).replace(/punct/g, ln).getRegex(), Ma = C(/\\(punct)/, "gu").replace(/punct/g, ln).getRegex(), Da = C(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), qa = C(er).replace("(?:-->|$)", "-->").getRegex(), Fa = C("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", qa).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Ht = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Ba = C(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Ht).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ci = C(/^!?\[(label)\]\[(ref)\]/).replace("label", Ht).replace("ref", Xn).getRegex(), ui = C(/^!?\[(ref)\](?:\[\])?/).replace("ref", Xn).getRegex(), Ha = C("reflink|nolink(?!\\()", "g").replace("reflink", ci).replace("nolink", ui).getRegex(), rr = {
4070
4070
  _backpedal: at,
4071
4071
  // only used for GFM url
4072
- anyPunctuation: Da,
4073
- autolink: Fa,
4072
+ anyPunctuation: Ma,
4073
+ autolink: Da,
4074
4074
  blockSkip: Pa,
4075
4075
  br: si,
4076
4076
  code: Ta,
4077
4077
  del: at,
4078
4078
  emStrongLDelim: La,
4079
4079
  emStrongRDelimAst: Oa,
4080
- emStrongRDelimUnd: Ma,
4080
+ emStrongRDelimUnd: ja,
4081
4081
  escape: Ea,
4082
4082
  link: Ba,
4083
4083
  nolink: ui,
4084
4084
  punctuation: Ca,
4085
4085
  reflink: ci,
4086
4086
  reflinkSearch: Ha,
4087
- tag: qa,
4087
+ tag: Fa,
4088
4088
  text: Ia,
4089
4089
  url: at
4090
4090
  }, Ua = {
@@ -4118,31 +4118,31 @@ const j = {
4118
4118
  ">": "&gt;",
4119
4119
  '"': "&quot;",
4120
4120
  "'": "&#39;"
4121
- }, Dr = (t) => Za[t];
4121
+ }, Mr = (t) => Za[t];
4122
4122
  function le(t, e) {
4123
4123
  if (e) {
4124
- if (j.escapeTest.test(t))
4125
- return t.replace(j.escapeReplace, Dr);
4126
- } else if (j.escapeTestNoEncode.test(t))
4127
- return t.replace(j.escapeReplaceNoEncode, Dr);
4124
+ if (q.escapeTest.test(t))
4125
+ return t.replace(q.escapeReplace, Mr);
4126
+ } else if (q.escapeTestNoEncode.test(t))
4127
+ return t.replace(q.escapeReplaceNoEncode, Mr);
4128
4128
  return t;
4129
4129
  }
4130
- function Fr(t) {
4130
+ function Dr(t) {
4131
4131
  try {
4132
- t = encodeURI(t).replace(j.percentDecode, "%");
4132
+ t = encodeURI(t).replace(q.percentDecode, "%");
4133
4133
  } catch {
4134
4134
  return null;
4135
4135
  }
4136
4136
  return t;
4137
4137
  }
4138
- function jr(t, e) {
4138
+ function qr(t, e) {
4139
4139
  var i;
4140
- const n = t.replace(j.findPipe, (o, l, u) => {
4140
+ const n = t.replace(q.findPipe, (o, l, u) => {
4141
4141
  let a = !1, c = l;
4142
4142
  for (; --c >= 0 && u[c] === "\\"; )
4143
4143
  a = !a;
4144
4144
  return a ? "|" : " |";
4145
- }), r = n.split(j.splitPipe);
4145
+ }), r = n.split(q.splitPipe);
4146
4146
  let s = 0;
4147
4147
  if (r[0].trim() || r.shift(), r.length > 0 && !((i = r.at(-1)) != null && i.trim()) && r.pop(), e)
4148
4148
  if (r.length > e)
@@ -4151,7 +4151,7 @@ function jr(t, e) {
4151
4151
  for (; r.length < e; )
4152
4152
  r.push("");
4153
4153
  for (; s < r.length; s++)
4154
- r[s] = r[s].trim().replace(j.slashPipe, "|");
4154
+ r[s] = r[s].trim().replace(q.slashPipe, "|");
4155
4155
  return r;
4156
4156
  }
4157
4157
  function ot(t, e, n) {
@@ -4176,7 +4176,7 @@ function Va(t, e) {
4176
4176
  return r;
4177
4177
  return -1;
4178
4178
  }
4179
- function qr(t, e, n, r, s) {
4179
+ function Fr(t, e, n, r, s) {
4180
4180
  const i = e.href, o = e.title || null, l = t[1].replace(s.other.outputLinkReplace, "$1");
4181
4181
  if (t[0].charAt(0) !== "!") {
4182
4182
  r.state.inLink = !0;
@@ -4220,7 +4220,7 @@ class Ut {
4220
4220
  $(this, "rules");
4221
4221
  // set by the lexer
4222
4222
  $(this, "lexer");
4223
- this.options = e || De;
4223
+ this.options = e || Me;
4224
4224
  }
4225
4225
  space(e) {
4226
4226
  const n = this.rules.block.newline.exec(e);
@@ -4360,18 +4360,18 @@ ${f}` : f;
4360
4360
  `, 1)[0], p = !h.trim(), g = 0;
4361
4361
  if (this.options.pedantic ? (g = 2, f = h.trimStart()) : p ? g = n[1].length + 1 : (g = n[2].search(this.rules.other.nonSpaceChar), g = g > 4 ? 1 : g, f = h.slice(g), g += n[1].length), p && this.rules.other.blankLine.test(d) && (c += d + `
4362
4362
  `, e = e.substring(d.length + 1), a = !0), !a) {
4363
- const _ = this.rules.other.nextBulletRegex(g), k = this.rules.other.hrRegex(g), x = this.rules.other.fencesBeginRegex(g), y = this.rules.other.headingBeginRegex(g), w = this.rules.other.htmlBeginRegex(g);
4363
+ const _ = this.rules.other.nextBulletRegex(g), w = this.rules.other.hrRegex(g), x = this.rules.other.fencesBeginRegex(g), y = this.rules.other.headingBeginRegex(g), k = this.rules.other.htmlBeginRegex(g);
4364
4364
  for (; e; ) {
4365
4365
  const L = e.split(`
4366
4366
  `, 1)[0];
4367
4367
  let S;
4368
- if (d = L, this.options.pedantic ? (d = d.replace(this.rules.other.listReplaceNesting, " "), S = d) : S = d.replace(this.rules.other.tabCharGlobal, " "), x.test(d) || y.test(d) || w.test(d) || _.test(d) || k.test(d))
4368
+ if (d = L, this.options.pedantic ? (d = d.replace(this.rules.other.listReplaceNesting, " "), S = d) : S = d.replace(this.rules.other.tabCharGlobal, " "), x.test(d) || y.test(d) || k.test(d) || _.test(d) || w.test(d))
4369
4369
  break;
4370
4370
  if (S.search(this.rules.other.nonSpaceChar) >= g || !d.trim())
4371
4371
  f += `
4372
4372
  ` + S.slice(g);
4373
4373
  else {
4374
- if (p || h.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || x.test(h) || y.test(h) || k.test(h))
4374
+ if (p || h.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || x.test(h) || y.test(h) || w.test(h))
4375
4375
  break;
4376
4376
  f += `
4377
4377
  ` + d;
@@ -4438,7 +4438,7 @@ ${f}` : f;
4438
4438
  const n = this.rules.block.table.exec(e);
4439
4439
  if (!n || !this.rules.other.tableDelimiter.test(n[2]))
4440
4440
  return;
4441
- const r = jr(n[1]), s = n[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = (l = n[3]) != null && l.trim() ? n[3].replace(this.rules.other.tableRowBlankLine, "").split(`
4441
+ const r = qr(n[1]), s = n[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = (l = n[3]) != null && l.trim() ? n[3].replace(this.rules.other.tableRowBlankLine, "").split(`
4442
4442
  `) : [], o = {
4443
4443
  type: "table",
4444
4444
  raw: n[0],
@@ -4457,7 +4457,7 @@ ${f}` : f;
4457
4457
  align: o.align[u]
4458
4458
  });
4459
4459
  for (const u of i)
4460
- o.rows.push(jr(u, o.header.length).map((a, c) => ({
4460
+ o.rows.push(qr(u, o.header.length).map((a, c) => ({
4461
4461
  text: a,
4462
4462
  tokens: this.lexer.inline(a),
4463
4463
  header: !1,
@@ -4544,7 +4544,7 @@ ${f}` : f;
4544
4544
  o && (s = o[1], i = o[3]);
4545
4545
  } else
4546
4546
  i = n[3] ? n[3].slice(1, -1) : "";
4547
- return s = s.trim(), this.rules.other.startAngleBracket.test(s) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(r) ? s = s.slice(1) : s = s.slice(1, -1)), qr(n, {
4547
+ return s = s.trim(), this.rules.other.startAngleBracket.test(s) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(r) ? s = s.slice(1) : s = s.slice(1, -1)), Fr(n, {
4548
4548
  href: s && s.replace(this.rules.inline.anyPunctuation, "$1"),
4549
4549
  title: i && i.replace(this.rules.inline.anyPunctuation, "$1")
4550
4550
  }, n[0], this.lexer, this.rules);
@@ -4562,7 +4562,7 @@ ${f}` : f;
4562
4562
  text: o
4563
4563
  };
4564
4564
  }
4565
- return qr(r, i, r[0], this.lexer, this.rules);
4565
+ return Fr(r, i, r[0], this.lexer, this.rules);
4566
4566
  }
4567
4567
  }
4568
4568
  emStrong(e, n, r = "") {
@@ -4704,13 +4704,13 @@ class X {
4704
4704
  $(this, "state");
4705
4705
  $(this, "tokenizer");
4706
4706
  $(this, "inlineQueue");
4707
- this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || De, this.options.tokenizer = this.options.tokenizer || new Ut(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
4707
+ this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || Me, this.options.tokenizer = this.options.tokenizer || new Ut(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
4708
4708
  inLink: !1,
4709
4709
  inRawBlock: !1,
4710
4710
  top: !0
4711
4711
  };
4712
4712
  const n = {
4713
- other: j,
4713
+ other: q,
4714
4714
  block: $t.normal,
4715
4715
  inline: it.normal
4716
4716
  };
@@ -4741,7 +4741,7 @@ class X {
4741
4741
  * Preprocessing
4742
4742
  */
4743
4743
  lex(e) {
4744
- e = e.replace(j.carriageReturn, `
4744
+ e = e.replace(q.carriageReturn, `
4745
4745
  `), this.blockTokens(e, this.tokens);
4746
4746
  for (let n = 0; n < this.inlineQueue.length; n++) {
4747
4747
  const r = this.inlineQueue[n];
@@ -4751,7 +4751,7 @@ class X {
4751
4751
  }
4752
4752
  blockTokens(e, n = [], r = !1) {
4753
4753
  var s, i, o;
4754
- for (this.options.pedantic && (e = e.replace(j.tabCharGlobal, " ").replace(j.spaceLine, "")); e; ) {
4754
+ for (this.options.pedantic && (e = e.replace(q.tabCharGlobal, " ").replace(q.spaceLine, "")); e; ) {
4755
4755
  let l;
4756
4756
  if ((i = (s = this.options.extensions) == null ? void 0 : s.block) != null && i.some((a) => (l = a.call({ lexer: this }, e, n)) ? (e = e.substring(l.raw.length), n.push(l), !0) : !1))
4757
4757
  continue;
@@ -4947,14 +4947,14 @@ class Gt {
4947
4947
  constructor(e) {
4948
4948
  $(this, "options");
4949
4949
  $(this, "parser");
4950
- this.options = e || De;
4950
+ this.options = e || Me;
4951
4951
  }
4952
4952
  space(e) {
4953
4953
  return "";
4954
4954
  }
4955
4955
  code({ text: e, lang: n, escaped: r }) {
4956
4956
  var o;
4957
- const s = (o = (n || "").match(j.notSpaceStart)) == null ? void 0 : o[0], i = e.replace(j.endingNewline, "") + `
4957
+ const s = (o = (n || "").match(q.notSpaceStart)) == null ? void 0 : o[0], i = e.replace(q.endingNewline, "") + `
4958
4958
  `;
4959
4959
  return s ? '<pre><code class="language-' + le(s) + '">' + (r ? i : le(i, !0)) + `</code></pre>
4960
4960
  ` : "<pre><code>" + (r ? i : le(i, !0)) + `</code></pre>
@@ -5058,7 +5058,7 @@ ${e}</tr>
5058
5058
  return `<del>${this.parser.parseInline(e)}</del>`;
5059
5059
  }
5060
5060
  link({ href: e, title: n, tokens: r }) {
5061
- const s = this.parser.parseInline(r), i = Fr(e);
5061
+ const s = this.parser.parseInline(r), i = Dr(e);
5062
5062
  if (i === null)
5063
5063
  return s;
5064
5064
  e = i;
@@ -5066,7 +5066,7 @@ ${e}</tr>
5066
5066
  return n && (o += ' title="' + le(n) + '"'), o += ">" + s + "</a>", o;
5067
5067
  }
5068
5068
  image({ href: e, title: n, text: r }) {
5069
- const s = Fr(e);
5069
+ const s = Dr(e);
5070
5070
  if (s === null)
5071
5071
  return le(r);
5072
5072
  e = s;
@@ -5112,7 +5112,7 @@ class ee {
5112
5112
  $(this, "options");
5113
5113
  $(this, "renderer");
5114
5114
  $(this, "textRenderer");
5115
- this.options = e || De, this.options.renderer = this.options.renderer || new Gt(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new sr();
5115
+ this.options = e || Me, this.options.renderer = this.options.renderer || new Gt(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new sr();
5116
5116
  }
5117
5117
  /**
5118
5118
  * Static Parse Method
@@ -5274,7 +5274,7 @@ class ct {
5274
5274
  constructor(e) {
5275
5275
  $(this, "options");
5276
5276
  $(this, "block");
5277
- this.options = e || De;
5277
+ this.options = e || Me;
5278
5278
  }
5279
5279
  /**
5280
5280
  * Process markdown before marked
@@ -5493,7 +5493,7 @@ A.options = A.setOptions = function(t) {
5493
5493
  return Le.setOptions(t), A.defaults = Le.defaults, ei(A.defaults), A;
5494
5494
  };
5495
5495
  A.getDefaults = Yn;
5496
- A.defaults = De;
5496
+ A.defaults = Me;
5497
5497
  A.use = function(...t) {
5498
5498
  return Le.use(...t), A.defaults = Le.defaults, ei(A.defaults), A;
5499
5499
  };
@@ -5531,32 +5531,32 @@ function fi(t, e) {
5531
5531
  Ee(e, !0), mt(t, Xa);
5532
5532
  let n = ne(e, "messages", 15), r = ne(e, "loading", 15), s = ye(void 0);
5533
5533
  const i = async () => {
5534
- await wo(), m(s) && (m(s).scrollTop = m(s).scrollHeight);
5534
+ await ko(), m(s) && (m(s).scrollTop = m(s).scrollHeight);
5535
5535
  };
5536
5536
  ft(() => {
5537
5537
  n(), i();
5538
5538
  });
5539
- var o = Ka(), l = ie(D(o), 2);
5539
+ var o = Ka(), l = ie(M(o), 2);
5540
5540
  Rs(l, 17, n, Cs, (c, f) => {
5541
- var h = Ya(), d = D(h), p = D(d);
5542
- Ps(p, () => A(m(f).content), !1, !1), M(d), M(h), Ot(() => No(h, zs(m(f).sentByUser ? "message-sent" : "message-received"), "svelte-18vniux")), F(c, h);
5541
+ var h = Ya(), d = M(h), p = M(d);
5542
+ Ps(p, () => A(m(f).content), !1, !1), j(d), j(h), Ot(() => No(h, zs(m(f).sentByUser ? "message-sent" : "message-received"), "svelte-18vniux")), D(c, h);
5543
5543
  });
5544
5544
  var u = ie(l, 2);
5545
5545
  {
5546
5546
  var a = (c) => {
5547
- var f = Ja(), h = D(f);
5547
+ var f = Ja(), h = M(f);
5548
5548
  Pe(h, {
5549
5549
  icon: "svg-spinners:3-dots-bounce",
5550
5550
  width: "25px",
5551
5551
  height: "25px",
5552
5552
  color: "white"
5553
- }), M(f), F(c, f);
5553
+ }), j(f), D(c, f);
5554
5554
  };
5555
5555
  gt(u, (c) => {
5556
5556
  r() && c(a);
5557
5557
  });
5558
5558
  }
5559
- return M(o), Ho(o, (c) => E(s, c), () => m(s)), F(t, o), Te({
5559
+ return j(o), Ho(o, (c) => E(s, c), () => m(s)), D(t, o), Te({
5560
5560
  get messages() {
5561
5561
  return n();
5562
5562
  },
@@ -5571,7 +5571,7 @@ function fi(t, e) {
5571
5571
  }
5572
5572
  });
5573
5573
  }
5574
- Me(fi, { messages: {}, loading: {} }, [], [], !0);
5574
+ je(fi, { messages: {}, loading: {} }, [], [], !0);
5575
5575
  const ec = () => {
5576
5576
  const e = document.cookie.split(";").find((n) => n.includes("akb-chat-token"));
5577
5577
  return e ? e.split("=")[1] : "";
@@ -5584,13 +5584,13 @@ const ec = () => {
5584
5584
  }, et = () => {
5585
5585
  switch (J.getEnvironmentId()) {
5586
5586
  case "aks_svi":
5587
- return "http://localhost:8080";
5587
+ return "https://localhost:8080";
5588
5588
  case "aks_qua":
5589
5589
  return "https://aks-knowledge-base-back-65440859697.europe-west1.run.app";
5590
5590
  case "":
5591
5591
  throw new Error("Environment ID not set");
5592
5592
  default:
5593
- return "";
5593
+ return "https://aks-knowledge-base-back-573906316236.europe-west1.run.app";
5594
5594
  }
5595
5595
  }, nc = async (t) => {
5596
5596
  const e = await fetch(`${et()}/chat/${t}`, {
@@ -5602,7 +5602,7 @@ const ec = () => {
5602
5602
  if (!e.ok)
5603
5603
  throw new Error("Failed to fetch chat");
5604
5604
  const n = await e.json();
5605
- return ke.fromJson(n);
5605
+ return we.fromJson(n);
5606
5606
  }, rc = async () => {
5607
5607
  const t = await fetch(`${et()}/chat`, {
5608
5608
  headers: {
@@ -5612,7 +5612,7 @@ const ec = () => {
5612
5612
  });
5613
5613
  if (!t.ok)
5614
5614
  throw new Error("Failed to fetch chats");
5615
- return (await t.json()).map((n) => ke.fromJson(n));
5615
+ return (await t.json()).map((n) => we.fromJson(n));
5616
5616
  }, sc = async () => {
5617
5617
  const t = await fetch(`${et()}/chat`, {
5618
5618
  method: "POST",
@@ -5624,7 +5624,7 @@ const ec = () => {
5624
5624
  if (!t.ok)
5625
5625
  throw new Error("Failed to create chat");
5626
5626
  const e = await t.json();
5627
- return ke.fromJson(e);
5627
+ return we.fromJson(e);
5628
5628
  }, ic = async (t, e) => {
5629
5629
  const n = await fetch(`${et()}/chat/${t}/message`, {
5630
5630
  method: "POST",
@@ -5659,7 +5659,7 @@ const ec = () => {
5659
5659
  }
5660
5660
  })).ok)
5661
5661
  throw new Error("Failed to delete chat");
5662
- }, je = {
5662
+ }, qe = {
5663
5663
  getChat: nc,
5664
5664
  getChats: rc,
5665
5665
  newChat: sc,
@@ -5669,11 +5669,10 @@ const ec = () => {
5669
5669
  };
5670
5670
  var ac = (t, e, n, r) => {
5671
5671
  e()._id != m(n)._id && r(m(n));
5672
- }, cc = (t, e, n) => e(m(n)._id, m(n).title), uc = /* @__PURE__ */ se('<div class="chat svelte-s62nll"><button class="chat-button svelte-s62nll"><span style="font-weight: bold;" class="svelte-s62nll"> </span></button> <button class="chat-delete svelte-s62nll"><!></button></div>'), fc = /* @__PURE__ */ se('<div class="history svelte-s62nll"><span class="title svelte-s62nll">History</span> <div class="chats svelte-s62nll"></div></div>'), hc = /* @__PURE__ */ se('<div class="external-div svelte-s62nll"><!></div>');
5672
+ }, cc = (t, e, n) => e(m(n)._id, m(n).title), uc = /* @__PURE__ */ se('<div class="chat svelte-pwxjs1"><button class="chat-button svelte-pwxjs1"><span style="font-weight: bold;" class="svelte-pwxjs1"> </span></button> <button class="chat-delete svelte-pwxjs1"><!></button></div>'), fc = /* @__PURE__ */ se('<div class="history svelte-pwxjs1"><span class="title svelte-pwxjs1">History</span> <div class="chats svelte-pwxjs1"></div></div>'), hc = /* @__PURE__ */ se('<div class="external-div"><!></div>');
5673
5673
  const dc = {
5674
- hash: "svelte-s62nll",
5675
- code: `\r
5676
- @import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");.svelte-s62nll {font-family:"Montserrat", sans-serif;}.history.svelte-s62nll {position:fixed;bottom:0;right:350px;width:300px;height:600px;border-radius:15px;display:flex;flex-direction:column;margin:30px;padding:10px;background:#3c4450;box-shadow:0 0 10px rgba(0, 0, 0, 0.1);}.title.svelte-s62nll {font-size:1.5rem;color:#fff;margin:10px;text-align:left;}.chats.svelte-s62nll {display:flex;flex-direction:column;padding:10px;overflow-y:scroll;overflow-x:hidden;height:100%;padding-right:55px;gap:20px;}.chat.svelte-s62nll {background:rgba(255, 255, 255, 0.2);display:flex;justify-content:space-between;align-items:center;border-radius:10px;transition:200ms;width:220px;}.chat.svelte-s62nll > .chat-button:where(.svelte-s62nll) {background:transparent;padding:5px 10px;border-radius:10px;cursor:pointer;transition:200ms;text-align:left;border:none;font-size:15px;}.chat.svelte-s62nll > .chat-delete:where(.svelte-s62nll) {display:flex;justify-content:center;align-items:center;background:transparent;border-radius:100%;cursor:pointer;transition:200ms;border:none;height:35px;width:35px;color:white;margin:3px;}.chat.svelte-s62nll:hover {scale:1.02;}.chat-button.svelte-s62nll:hover {background:rgba(255, 255, 255, 0.2);}.chat-delete.svelte-s62nll:hover {background:rgba(255, 255, 255, 0.2);}.chat.svelte-s62nll > button:where(.svelte-s62nll) > span:where(.svelte-s62nll) {color:white;text-shadow:0 0 5px rgba(0, 0, 0, 0.1);}`
5674
+ hash: "svelte-pwxjs1",
5675
+ code: ".history.svelte-pwxjs1 {position:fixed;bottom:0;right:350px;width:300px;height:600px;border-radius:15px;display:flex;flex-direction:column;margin:30px;padding:10px;background:#3c4450;box-shadow:0 0 10px rgba(0, 0, 0, 0.1);}.title.svelte-pwxjs1 {font-size:1.5rem;color:#fff;margin:10px;text-align:left;}.chats.svelte-pwxjs1 {display:flex;flex-direction:column;padding:10px;overflow-y:scroll;overflow-x:hidden;height:100%;padding-right:55px;gap:20px;}.chat.svelte-pwxjs1 {background:rgba(255, 255, 255, 0.2);display:flex;justify-content:space-between;align-items:center;border-radius:10px;transition:200ms;width:220px;}.chat.svelte-pwxjs1 > .chat-button:where(.svelte-pwxjs1) {background:transparent;padding:5px 10px;border-radius:10px;cursor:pointer;transition:200ms;text-align:left;border:none;font-size:15px;}.chat.svelte-pwxjs1 > .chat-delete:where(.svelte-pwxjs1) {display:flex;justify-content:center;align-items:center;background:transparent;border-radius:100%;cursor:pointer;transition:200ms;border:none;height:35px;width:35px;color:white;margin:3px;}.chat.svelte-pwxjs1:hover {scale:1.02;}.chat-button.svelte-pwxjs1:hover {background:rgba(255, 255, 255, 0.2);}.chat-delete.svelte-pwxjs1:hover {background:rgba(255, 255, 255, 0.2);}.chat.svelte-pwxjs1 > button:where(.svelte-pwxjs1) > span:where(.svelte-pwxjs1) {color:white;text-shadow:0 0 5px rgba(0, 0, 0, 0.1);}"
5677
5676
  };
5678
5677
  function hi(t, e) {
5679
5678
  Ee(e, !0), mt(t, dc);
@@ -5681,36 +5680,36 @@ function hi(t, e) {
5681
5680
  const i = (c) => {
5682
5681
  r(c);
5683
5682
  }, o = (c, f) => {
5684
- confirm("Sei sicuro di voler eliminare la chat " + f + "?") && je.deleteChat(c).then(() => {
5685
- s(s().filter((h) => h._id !== c)), r()._id === c && r(new ke("", "", "", "New Chat", [fe.firstMessage()]));
5683
+ confirm("Sei sicuro di voler eliminare la chat " + f + "?") && qe.deleteChat(c).then(() => {
5684
+ s(s().filter((h) => h._id !== c)), r()._id === c && r(new we("", "", "", "New Chat", [fe.firstMessage()]));
5686
5685
  });
5687
5686
  };
5688
- var l = hc(), u = D(l);
5687
+ var l = hc(), u = M(l);
5689
5688
  {
5690
5689
  var a = (c) => {
5691
- var f = fc(), h = ie(D(f), 2);
5690
+ var f = fc(), h = ie(M(f), 2);
5692
5691
  Rs(h, 21, s, Cs, (d, p) => {
5693
- var g = uc(), b = D(g);
5692
+ var g = uc(), b = M(g);
5694
5693
  b.__click = [ac, r, p, i];
5695
- var v = D(b), _ = D(v, !0);
5696
- M(v), M(b);
5697
- var k = ie(b, 2);
5698
- k.__click = [cc, o, p];
5699
- var x = D(k);
5694
+ var v = M(b), _ = M(v, !0);
5695
+ j(v), j(b);
5696
+ var w = ie(b, 2);
5697
+ w.__click = [cc, o, p];
5698
+ var x = M(w);
5700
5699
  Pe(x, {
5701
5700
  icon: "tabler:trash",
5702
5701
  width: "25px",
5703
5702
  height: "25px"
5704
- }), M(k), M(g), Ot(() => {
5705
- qt(g, "style", r()._id === m(p)._id ? "background: #295dcf; cursor: default;" : ""), To(_, m(p).title);
5706
- }), F(d, g);
5707
- }), M(h), M(f), Ms(3, f, () => nl, () => ({ axis: "x", duration: 600 })), F(c, f);
5703
+ }), j(w), j(g), Ot(() => {
5704
+ Ft(g, "style", r()._id === m(p)._id ? "background: #295dcf; cursor: default;" : ""), To(_, m(p).title);
5705
+ }), D(d, g);
5706
+ }), j(h), j(f), js(3, f, () => nl, () => ({ axis: "x", duration: 600 })), D(c, f);
5708
5707
  };
5709
5708
  gt(u, (c) => {
5710
5709
  n() && c(a);
5711
5710
  });
5712
5711
  }
5713
- return M(l), F(t, l), Te({
5712
+ return j(l), D(t, l), Te({
5714
5713
  get showHistory() {
5715
5714
  return n();
5716
5715
  },
@@ -5732,35 +5731,34 @@ function hi(t, e) {
5732
5731
  });
5733
5732
  }
5734
5733
  bt(["click"]);
5735
- Me(hi, { showHistory: {}, actChat: {}, chats: {} }, [], [], !0);
5736
- var pc = /* @__PURE__ */ se('<!> <div class="chat svelte-18mfzyz"><!> <!> <!></div>', 1), gc = (t, e) => E(e, !0), vc = /* @__PURE__ */ se('<button class="chat-bottom svelte-18mfzyz">Show Chat</button>'), _c = /* @__PURE__ */ se('<div class="external-div svelte-18mfzyz"><!></div>');
5734
+ je(hi, { showHistory: {}, actChat: {}, chats: {} }, [], [], !0);
5735
+ var pc = /* @__PURE__ */ se('<!> <div class="chat svelte-1tvqvlz"><!> <!> <!></div>', 1), gc = (t, e) => E(e, !0), vc = /* @__PURE__ */ se('<button class="btn btn-primary"><i class="fa-solid fa-comment-nodes"></i><span class="d-none d-md-inline ps-2">Show Chat</span></button>'), _c = /* @__PURE__ */ se('<div class="external-div"><!></div>');
5737
5736
  const bc = {
5738
- hash: "svelte-18mfzyz",
5739
- code: `\r
5740
- @import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");.svelte-18mfzyz {font-family:"Montserrat", sans-serif !important;}.chat.svelte-18mfzyz {position:fixed;bottom:0;right:0;width:400px;height:600px;border-radius:15px;display:flex;flex-direction:column;margin:30px;padding:10px;background:#295dcf;box-shadow:0 0 10px rgba(0, 0, 0, 0.1);}.chat-bottom.svelte-18mfzyz {position:fixed;bottom:0;right:0;background:#295dcf;border:none;color:white;font-size:1rem;cursor:pointer;border-radius:30px;padding:10px;margin:30px;font-weight:bold;font-family:"Montserrat", sans-serif !important;}`
5737
+ hash: "svelte-1tvqvlz",
5738
+ code: ".chat.svelte-1tvqvlz {position:fixed;bottom:0;right:0;width:400px;height:600px;border-radius:15px;display:flex;flex-direction:column;margin:30px;padding:10px;background:#295dcf;box-shadow:0 0 10px rgba(0, 0, 0, 0.1);}"
5741
5739
  };
5742
5740
  function di(t, e) {
5743
5741
  Ee(e, !0), mt(t, bc);
5744
- let n = ye(!1), r = ye(!1), s = ye(N(new ke("", "", "", "New Chat", [fe.firstMessage()]))), i = ye(N([])), o = ye(N([fe.firstMessage()])), l = ye(!1);
5742
+ let n = ye(!1), r = ye(!1), s = ye(N(new we("", "", "", "New Chat", [fe.firstMessage()]))), i = ye(N([])), o = ye(N([fe.firstMessage()])), l = ye(!1);
5745
5743
  const u = async (d) => {
5746
5744
  if (E(l, !0), E(o, N([
5747
5745
  ...m(o),
5748
5746
  new fe((/* @__PURE__ */ new Date()).getTime(), !0, d)
5749
- ])), m(o).length == 2 && (E(s, N(await je.newChat())), E(i, N([...m(i), m(s)])), m(s).messages = m(o)), m(s)) {
5750
- let p = await je.sendMessage(m(s)._id, d);
5751
- m(o).length == 2 && E(s, N(await je.getChat(m(s)._id))), E(s, N(await je.getChat(m(s)._id))), E(o, N([...m(o), p]));
5747
+ ])), m(o).length == 2 && (E(s, N(await qe.newChat())), E(i, N([...m(i), m(s)])), m(s).messages = m(o)), m(s)) {
5748
+ let p = await qe.sendMessage(m(s)._id, d);
5749
+ m(o).length == 2 && E(s, N(await qe.getChat(m(s)._id))), E(s, N(await qe.getChat(m(s)._id))), E(o, N([...m(o), p]));
5752
5750
  }
5753
5751
  E(l, !1);
5754
5752
  };
5755
5753
  ft(() => {
5756
- m(s) && E(o, N(m(s).messages)), je.getChats().then((d) => {
5754
+ m(s) && E(o, N(m(s).messages)), qe.getChats().then((d) => {
5757
5755
  E(i, N(d));
5758
5756
  });
5759
5757
  });
5760
- var a = _c(), c = D(a);
5758
+ var a = _c(), c = M(a);
5761
5759
  {
5762
5760
  var f = (d) => {
5763
- var p = pc(), g = wn(p);
5761
+ var p = pc(), g = kn(p);
5764
5762
  hi(g, {
5765
5763
  get showHistory() {
5766
5764
  return m(r);
@@ -5781,7 +5779,7 @@ function di(t, e) {
5781
5779
  E(i, N(x));
5782
5780
  }
5783
5781
  });
5784
- var b = ie(g, 2), v = D(b);
5782
+ var b = ie(g, 2), v = M(b);
5785
5783
  Ks(v, {
5786
5784
  get show() {
5787
5785
  return m(n);
@@ -5817,20 +5815,20 @@ function di(t, e) {
5817
5815
  E(l, N(x));
5818
5816
  }
5819
5817
  });
5820
- var k = ie(_, 2);
5821
- Xs(k, { sendMessage: u }), M(b), Ms(3, b, () => tl, () => ({ y: 50, duration: 500 })), F(d, p);
5818
+ var w = ie(_, 2);
5819
+ Xs(w, { sendMessage: u }), j(b), js(3, b, () => tl, () => ({ y: 50, duration: 500 })), D(d, p);
5822
5820
  }, h = (d) => {
5823
5821
  var p = vc();
5824
- p.__click = [gc, n], F(d, p);
5822
+ p.__click = [gc, n], D(d, p);
5825
5823
  };
5826
5824
  gt(c, (d) => {
5827
5825
  m(n) ? d(f) : d(h, !1);
5828
5826
  });
5829
5827
  }
5830
- M(a), F(t, a), Te();
5828
+ j(a), D(t, a), Te();
5831
5829
  }
5832
5830
  bt(["click"]);
5833
- Me(di, {}, [], [], !0);
5831
+ je(di, {}, [], [], !0);
5834
5832
  function mc(t, e) {
5835
5833
  Ee(e, !0);
5836
5834
  let n = ne(e, "envId", 23, () => {
@@ -5851,7 +5849,7 @@ function mc(t, e) {
5851
5849
  }
5852
5850
  });
5853
5851
  }
5854
- customElements.define("akb-chat", Me(
5852
+ customElements.define("akb-chat", je(
5855
5853
  mc,
5856
5854
  {
5857
5855
  token: {