akpm-knowledge-base-chat 2.0.11 → 2.0.13

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 +653 -648
  2. package/package.json +1 -1
package/CDN/akb-chat.js CHANGED
@@ -1,14 +1,14 @@
1
- /* Version: 2.0.11 */
1
+ /* Version: 2.0.13 */
2
2
  var co = Object.defineProperty;
3
- var Js = (t) => {
3
+ var Ws = (t) => {
4
4
  throw TypeError(t);
5
5
  };
6
6
  var uo = (t, e, n) => e in t ? co(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
7
- var I = (t, e, n) => uo(t, typeof e != "symbol" ? e + "" : e, n), Ws = (t, e, n) => e.has(t) || Js("Cannot " + n);
8
- var st = (t, e, n) => (Ws(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Mr = (t, e, n) => e.has(t) ? Js("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Nr = (t, e, n, r) => (Ws(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
7
+ var I = (t, e, n) => uo(t, typeof e != "symbol" ? e + "" : e, n), Zs = (t, e, n) => e.has(t) || Ws("Cannot " + n);
8
+ var st = (t, e, n) => (Zs(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Mr = (t, e, n) => e.has(t) ? Ws("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Nr = (t, e, n, r) => (Zs(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
9
9
  const fo = "5";
10
10
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(fo);
11
- const ps = 1, hs = 2, Ai = 4, po = 8, ho = 16, vo = 1, go = 2, Li = 4, mo = 8, bo = 16, xo = 1, wo = 2, _o = 4, ko = 1, yo = 2, ji = "[", vs = "[!", gs = "]", gn = {}, it = Symbol();
11
+ const hs = 1, vs = 2, Li = 4, po = 8, ho = 16, vo = 1, go = 2, ji = 4, mo = 8, bo = 16, xo = 1, wo = 2, _o = 4, ko = 1, yo = 2, Ri = "[", gs = "[!", ms = "]", gn = {}, it = Symbol();
12
12
  function zo(t) {
13
13
  return t.endsWith("capture") && t !== "gotpointercapture" && t !== "lostpointercapture";
14
14
  }
@@ -59,7 +59,7 @@ function Io(t) {
59
59
  return Co.includes(t);
60
60
  }
61
61
  const Wr = !1;
62
- var kr = Array.isArray, Ao = Array.prototype.indexOf, ms = Array.from, lr = Object.keys, cr = Object.defineProperty, an = Object.getOwnPropertyDescriptor, Ri = Object.getOwnPropertyDescriptors, Lo = Object.prototype, jo = Array.prototype, bs = Object.getPrototypeOf;
62
+ var kr = Array.isArray, Ao = Array.prototype.indexOf, bs = Array.from, lr = Object.keys, cr = Object.defineProperty, an = Object.getOwnPropertyDescriptor, Fi = Object.getOwnPropertyDescriptors, Lo = Object.prototype, jo = Array.prototype, xs = Object.getPrototypeOf;
63
63
  function Ro(t) {
64
64
  return typeof t == "function";
65
65
  }
@@ -72,14 +72,14 @@ function ur(t) {
72
72
  for (var e = 0; e < t.length; e++)
73
73
  t[e]();
74
74
  }
75
- const vt = 2, Fi = 4, Hn = 8, yr = 16, Ft = 32, un = 64, dr = 128, dn = 256, fr = 512, Ve = 1024, Ht = 2048, fn = 4096, It = 8192, kn = 16384, Di = 32768, zr = 65536, Do = 1 << 17, Oo = 1 << 19, Oi = 1 << 20, qt = Symbol("$state"), Pi = Symbol("legacy props"), Po = Symbol("");
76
- function Mi(t) {
75
+ const vt = 2, Di = 4, Hn = 8, yr = 16, Ft = 32, un = 64, dr = 128, dn = 256, fr = 512, Ve = 1024, Ht = 2048, fn = 4096, It = 8192, kn = 16384, Oi = 32768, zr = 65536, Do = 1 << 17, Oo = 1 << 19, Pi = 1 << 20, qt = Symbol("$state"), Mi = Symbol("legacy props"), Po = Symbol("");
76
+ function Ni(t) {
77
77
  return t === this.v;
78
78
  }
79
79
  function Mo(t, e) {
80
80
  return t != t ? e == e : t !== e || t !== null && typeof t == "object" || typeof t == "function";
81
81
  }
82
- function xs(t) {
82
+ function ws(t) {
83
83
  return !Mo(t, this.v);
84
84
  }
85
85
  function No(t) {
@@ -122,48 +122,48 @@ function at(t, e) {
122
122
  // TODO ideally we could skip this altogether, but it causes type errors
123
123
  v: t,
124
124
  reactions: null,
125
- equals: Mi,
125
+ equals: Ni,
126
126
  rv: 0,
127
127
  wv: 0
128
128
  };
129
129
  return n;
130
130
  }
131
131
  function G(t) {
132
- return /* @__PURE__ */ Ni(at(t));
132
+ return /* @__PURE__ */ Ui(at(t));
133
133
  }
134
134
  // @__NO_SIDE_EFFECTS__
135
135
  function $r(t, e = !1) {
136
136
  var r;
137
137
  const n = at(t);
138
- return e || (n.equals = xs), yn && Se !== null && Se.l !== null && ((r = Se.l).s ?? (r.s = [])).push(n), n;
138
+ return e || (n.equals = ws), yn && Se !== null && Se.l !== null && ((r = Se.l).s ?? (r.s = [])).push(n), n;
139
139
  }
140
140
  function Jt(t, e = !1) {
141
- return /* @__PURE__ */ Ni(/* @__PURE__ */ $r(t, e));
141
+ return /* @__PURE__ */ Ui(/* @__PURE__ */ $r(t, e));
142
142
  }
143
143
  // @__NO_SIDE_EFFECTS__
144
- function Ni(t) {
144
+ function Ui(t) {
145
145
  return Le !== null && Le.f & vt && (At === null ? ul([t]) : At.push(t)), t;
146
146
  }
147
147
  function Ur(t, e) {
148
- return b(
148
+ return m(
149
149
  t,
150
150
  Rt(() => f(t))
151
151
  ), e;
152
152
  }
153
- function b(t, e) {
153
+ function m(t, e) {
154
154
  return Le !== null && !Vt && Jn() && Le.f & (vt | yr) && // If the source was created locally within the current derived, then
155
155
  // we allow the mutation.
156
156
  (At === null || !At.includes(t)) && Zo(), Zr(t, e);
157
157
  }
158
158
  function Zr(t, e) {
159
- return t.equals(e) || (t.v, t.v = e, t.wv = ia(), Ui(t, Ht), Jn() && pe !== null && pe.f & Ve && !(pe.f & (Ft | un)) && (Ot === null ? dl([t]) : Ot.push(t))), e;
159
+ return t.equals(e) || (t.v, t.v = e, t.wv = aa(), Bi(t, Ht), Jn() && pe !== null && pe.f & Ve && !(pe.f & (Ft | un)) && (Ot === null ? dl([t]) : Ot.push(t))), e;
160
160
  }
161
- function Ui(t, e) {
161
+ function Bi(t, e) {
162
162
  var n = t.reactions;
163
163
  if (n !== null)
164
164
  for (var r = Jn(), s = n.length, i = 0; i < s; i++) {
165
165
  var a = n[i], o = a.f;
166
- o & Ht || !r && a === pe || (yt(a, e), o & (Ve | dn) && (o & vt ? Ui(
166
+ o & Ht || !r && a === pe || (yt(a, e), o & (Ve | dn) && (o & vt ? Bi(
167
167
  /** @type {Derived} */
168
168
  a,
169
169
  fn
@@ -206,10 +206,10 @@ function Xr() {
206
206
  /** @type {Comment} */
207
207
  e.data
208
208
  );
209
- if (n === gs) {
209
+ if (n === ms) {
210
210
  if (t === 0) return e;
211
211
  t -= 1;
212
- } else (n === ji || n === vs) && (t += 1);
212
+ } else (n === Ri || n === gs) && (t += 1);
213
213
  }
214
214
  var r = (
215
215
  /** @type {TemplateNode} */
@@ -221,7 +221,7 @@ function Xr() {
221
221
  function C(t, e = null, n) {
222
222
  if (typeof t != "object" || t === null || qt in t)
223
223
  return t;
224
- const r = bs(t);
224
+ const r = xs(t);
225
225
  if (r !== Lo && r !== jo)
226
226
  return t;
227
227
  var s = /* @__PURE__ */ new Map(), i = kr(t), a = at(0);
@@ -237,7 +237,7 @@ function C(t, e = null, n) {
237
237
  defineProperty(c, l, u) {
238
238
  (!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && Go();
239
239
  var d = s.get(l);
240
- return d === void 0 ? (d = at(u.value), s.set(l, d)) : b(d, C(u.value, o)), !0;
240
+ return d === void 0 ? (d = at(u.value), s.set(l, d)) : m(d, C(u.value, o)), !0;
241
241
  },
242
242
  deleteProperty(c, l) {
243
243
  var u = s.get(l);
@@ -249,9 +249,9 @@ function C(t, e = null, n) {
249
249
  /** @type {Source<number>} */
250
250
  s.get("length")
251
251
  ), p = Number(l);
252
- Number.isInteger(p) && p < d.v && b(d, p);
252
+ Number.isInteger(p) && p < d.v && m(d, p);
253
253
  }
254
- b(u, it), Zs(a);
254
+ m(u, it), Xs(a);
255
255
  }
256
256
  return !0;
257
257
  },
@@ -302,10 +302,10 @@ function C(t, e = null, n) {
302
302
  if (i && l === "length")
303
303
  for (var w = u; w < /** @type {Source<number>} */
304
304
  p.v; w += 1) {
305
- var m = s.get(w + "");
306
- m !== void 0 ? b(m, it) : w in c && (m = at(it), s.set(w + "", m));
305
+ var b = s.get(w + "");
306
+ b !== void 0 ? m(b, it) : w in c && (b = at(it), s.set(w + "", b));
307
307
  }
308
- p === void 0 ? (!h || (y = an(c, l)) != null && y.writable) && (p = at(void 0), b(p, C(u, o)), s.set(l, p)) : (h = p.v !== it, b(p, C(u, o)));
308
+ p === void 0 ? (!h || (y = an(c, l)) != null && y.writable) && (p = at(void 0), m(p, C(u, o)), s.set(l, p)) : (h = p.v !== it, m(p, C(u, o)));
309
309
  var S = Reflect.getOwnPropertyDescriptor(c, l);
310
310
  if (S != null && S.set && S.set.call(d, u), !h) {
311
311
  if (i && typeof l == "string") {
@@ -313,9 +313,9 @@ function C(t, e = null, n) {
313
313
  /** @type {Source<number>} */
314
314
  s.get("length")
315
315
  ), _ = Number(l);
316
- Number.isInteger(_) && _ >= x.v && b(x, _ + 1);
316
+ Number.isInteger(_) && _ >= x.v && m(x, _ + 1);
317
317
  }
318
- Zs(a);
318
+ Xs(a);
319
319
  }
320
320
  return !0;
321
321
  },
@@ -335,21 +335,21 @@ function C(t, e = null, n) {
335
335
  }
336
336
  );
337
337
  }
338
- function Zs(t, e = 1) {
339
- b(t, t.v + e);
338
+ function Xs(t, e = 1) {
339
+ m(t, t.v + e);
340
340
  }
341
- function Xs(t) {
341
+ function Vs(t) {
342
342
  return t !== null && typeof t == "object" && qt in t ? t[qt] : t;
343
343
  }
344
344
  function Qo(t, e) {
345
- return Object.is(Xs(t), Xs(e));
345
+ return Object.is(Vs(t), Vs(e));
346
346
  }
347
- var Vs, Bi, qi;
347
+ var Qs, qi, Hi;
348
348
  function Vr() {
349
- if (Vs === void 0) {
350
- Vs = window;
349
+ if (Qs === void 0) {
350
+ Qs = window;
351
351
  var t = Element.prototype, e = Node.prototype;
352
- Bi = an(e, "firstChild").get, qi = an(e, "nextSibling").get, t.__click = void 0, t.__className = "", t.__attributes = null, t.__styles = null, t.__e = void 0, Text.prototype.__t = void 0;
352
+ qi = an(e, "firstChild").get, Hi = an(e, "nextSibling").get, t.__click = void 0, t.__className = "", t.__attributes = null, t.__styles = null, t.__e = void 0, Text.prototype.__t = void 0;
353
353
  }
354
354
  }
355
355
  function Qt(t = "") {
@@ -357,11 +357,11 @@ function Qt(t = "") {
357
357
  }
358
358
  // @__NO_SIDE_EFFECTS__
359
359
  function lt(t) {
360
- return Bi.call(t);
360
+ return qi.call(t);
361
361
  }
362
362
  // @__NO_SIDE_EFFECTS__
363
363
  function Yt(t) {
364
- return qi.call(t);
364
+ return Hi.call(t);
365
365
  }
366
366
  function z(t, e) {
367
367
  if (!de)
@@ -406,13 +406,13 @@ function P(t, e = 1, n = !1) {
406
406
  return ht(r), /** @type {TemplateNode} */
407
407
  r;
408
408
  }
409
- function ws(t) {
409
+ function _s(t) {
410
410
  t.textContent = "";
411
411
  }
412
412
  // @__NO_SIDE_EFFECTS__
413
413
  function qe(t) {
414
414
  var e = vt | Ht;
415
- pe === null ? e |= dn : pe.f |= Oi;
415
+ pe === null ? e |= dn : pe.f |= Pi;
416
416
  var n = Le !== null && Le.f & vt ? (
417
417
  /** @type {Derived} */
418
418
  Le
@@ -421,7 +421,7 @@ function qe(t) {
421
421
  children: null,
422
422
  ctx: Se,
423
423
  deps: null,
424
- equals: Mi,
424
+ equals: Ni,
425
425
  f: e,
426
426
  fn: t,
427
427
  reactions: null,
@@ -436,17 +436,17 @@ function qe(t) {
436
436
  return n !== null && (n.children ?? (n.children = [])).push(r), r;
437
437
  }
438
438
  // @__NO_SIDE_EFFECTS__
439
- function Hi(t) {
439
+ function Yi(t) {
440
440
  const e = /* @__PURE__ */ qe(t);
441
- return e.equals = xs, e;
441
+ return e.equals = ws, e;
442
442
  }
443
- function Yi(t) {
443
+ function Gi(t) {
444
444
  var e = t.children;
445
445
  if (e !== null) {
446
446
  t.children = null;
447
447
  for (var n = 0; n < e.length; n += 1) {
448
448
  var r = e[n];
449
- r.f & vt ? _s(
449
+ r.f & vt ? ks(
450
450
  /** @type {Derived} */
451
451
  r
452
452
  ) : Lt(
@@ -467,25 +467,25 @@ function Ko(t) {
467
467
  }
468
468
  return null;
469
469
  }
470
- function Gi(t) {
470
+ function Ji(t) {
471
471
  var e, n = pe;
472
472
  kt(Ko(t));
473
473
  try {
474
- Yi(t), e = oa(t);
474
+ Gi(t), e = la(t);
475
475
  } finally {
476
476
  kt(n);
477
477
  }
478
478
  return e;
479
479
  }
480
- function Ji(t) {
481
- var e = Gi(t), n = (sn || t.f & dn) && t.deps !== null ? fn : Ve;
482
- yt(t, n), t.equals(e) || (t.v = e, t.wv = ia());
480
+ function Wi(t) {
481
+ var e = Ji(t), n = (sn || t.f & dn) && t.deps !== null ? fn : Ve;
482
+ yt(t, n), t.equals(e) || (t.v = e, t.wv = aa());
483
483
  }
484
- function _s(t) {
485
- Yi(t), Un(t, 0), yt(t, kn), t.v = t.children = t.deps = t.ctx = t.reactions = null;
484
+ function ks(t) {
485
+ Gi(t), Un(t, 0), yt(t, kn), t.v = t.children = t.deps = t.ctx = t.reactions = null;
486
486
  }
487
- function Wi(t) {
488
- pe === null && Le === null && Bo(), Le !== null && Le.f & dn && Uo(), zs && No();
487
+ function Zi(t) {
488
+ pe === null && Le === null && Bo(), Le !== null && Le.f & dn && Uo(), $s && No();
489
489
  }
490
490
  function el(t, e) {
491
491
  var n = e.last;
@@ -512,14 +512,14 @@ function pn(t, e, n, r = !0) {
512
512
  if (n) {
513
513
  var o = mn;
514
514
  try {
515
- Qs(!0), Cr(a), a.f |= Di;
515
+ Ks(!0), Cr(a), a.f |= Oi;
516
516
  } catch (u) {
517
517
  throw Lt(a), u;
518
518
  } finally {
519
- Qs(o);
519
+ Ks(o);
520
520
  }
521
521
  } else e !== null && Ir(a);
522
- var c = n && a.deps === null && a.first === null && a.nodes_start === null && a.teardown === null && (a.f & (Oi | dr)) === 0;
522
+ var c = n && a.deps === null && a.first === null && a.nodes_start === null && a.teardown === null && (a.f & (Pi | dr)) === 0;
523
523
  if (!c && !s && r && (i !== null && el(a, i), Le !== null && Le.f & vt)) {
524
524
  var l = (
525
525
  /** @type {Derived} */
@@ -534,7 +534,7 @@ function tl(t) {
534
534
  return yt(e, Ve), e.teardown = t, e;
535
535
  }
536
536
  function Ct(t) {
537
- Wi();
537
+ Zi();
538
538
  var e = pe !== null && (pe.f & Ft) !== 0 && Se !== null && !Se.m;
539
539
  if (e) {
540
540
  var n = (
@@ -552,7 +552,7 @@ function Ct(t) {
552
552
  }
553
553
  }
554
554
  function nl(t) {
555
- return Wi(), $n(t);
555
+ return Zi(), $n(t);
556
556
  }
557
557
  function rl(t) {
558
558
  const e = pn(un, t, !0);
@@ -569,7 +569,7 @@ function sl(t) {
569
569
  });
570
570
  }
571
571
  function zn(t) {
572
- return pn(Fi, t, !1);
572
+ return pn(Di, t, !1);
573
573
  }
574
574
  function Yn(t, e) {
575
575
  var n = (
@@ -577,7 +577,7 @@ function Yn(t, e) {
577
577
  Se
578
578
  ), r = { effect: null, ran: !1 };
579
579
  n.l.r1.push(r), r.effect = $n(() => {
580
- t(), !r.ran && (r.ran = !0, b(n.l.r2, !0), Rt(e));
580
+ t(), !r.ran && (r.ran = !0, m(n.l.r2, !0), Rt(e));
581
581
  });
582
582
  }
583
583
  function Gn() {
@@ -608,27 +608,27 @@ function Sr(t, e = 0) {
608
608
  function wn(t, e = !0) {
609
609
  return pn(Hn | Ft, t, !0, e);
610
610
  }
611
- function Zi(t) {
611
+ function Xi(t) {
612
612
  var e = t.teardown;
613
613
  if (e !== null) {
614
- const n = zs, r = Le;
615
- Ks(!0), jt(null);
614
+ const n = $s, r = Le;
615
+ ei(!0), jt(null);
616
616
  try {
617
617
  e.call(null);
618
618
  } finally {
619
- Ks(n), jt(r);
619
+ ei(n), jt(r);
620
620
  }
621
621
  }
622
622
  }
623
- function Xi(t) {
623
+ function Vi(t) {
624
624
  var e = t.deriveds;
625
625
  if (e !== null) {
626
626
  t.deriveds = null;
627
627
  for (var n = 0; n < e.length; n += 1)
628
- _s(e[n]);
628
+ ks(e[n]);
629
629
  }
630
630
  }
631
- function Vi(t, e = !1) {
631
+ function Qi(t, e = !1) {
632
632
  var n = t.first;
633
633
  for (t.first = t.last = null; n !== null; ) {
634
634
  var r = n.next;
@@ -653,26 +653,26 @@ function Lt(t, e = !0) {
653
653
  }
654
654
  n = !0;
655
655
  }
656
- Vi(t, e && !n), Xi(t), Un(t, 0), yt(t, kn);
656
+ Qi(t, e && !n), Vi(t), Un(t, 0), yt(t, kn);
657
657
  var a = t.transitions;
658
658
  if (a !== null)
659
659
  for (const c of a)
660
660
  c.stop();
661
- Zi(t);
661
+ Xi(t);
662
662
  var o = t.parent;
663
- o !== null && o.first !== null && Qi(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes_start = t.nodes_end = null;
663
+ o !== null && o.first !== null && Ki(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes_start = t.nodes_end = null;
664
664
  }
665
- function Qi(t) {
665
+ function Ki(t) {
666
666
  var e = t.parent, n = t.prev, r = t.next;
667
667
  n !== null && (n.next = r), r !== null && (r.prev = n), e !== null && (e.first === t && (e.first = r), e.last === t && (e.last = n));
668
668
  }
669
669
  function pr(t, e) {
670
670
  var n = [];
671
- ks(t, n, !0), Ki(n, () => {
671
+ ys(t, n, !0), ea(n, () => {
672
672
  Lt(t), e && e();
673
673
  });
674
674
  }
675
- function Ki(t, e) {
675
+ function ea(t, e) {
676
676
  var n = t.length;
677
677
  if (n > 0) {
678
678
  var r = () => --n || e();
@@ -681,26 +681,26 @@ function Ki(t, e) {
681
681
  } else
682
682
  e();
683
683
  }
684
- function ks(t, e, n) {
684
+ function ys(t, e, n) {
685
685
  if (!(t.f & It)) {
686
686
  if (t.f ^= It, t.transitions !== null)
687
687
  for (const a of t.transitions)
688
688
  (a.is_global || n) && e.push(a);
689
689
  for (var r = t.first; r !== null; ) {
690
690
  var s = r.next, i = (r.f & zr) !== 0 || (r.f & Ft) !== 0;
691
- ks(r, e, i ? n : !1), r = s;
691
+ ys(r, e, i ? n : !1), r = s;
692
692
  }
693
693
  }
694
694
  }
695
695
  function hr(t) {
696
- ea(t, !0);
696
+ ta(t, !0);
697
697
  }
698
- function ea(t, e) {
698
+ function ta(t, e) {
699
699
  if (t.f & It) {
700
700
  t.f ^= It, t.f & Ve || (t.f ^= Ve), Sn(t) && (yt(t, Ht), Ir(t));
701
701
  for (var n = t.first; n !== null; ) {
702
702
  var r = n.next, s = (n.f & zr) !== 0 || (n.f & Ft) !== 0;
703
- ea(n, s ? e : !1), n = r;
703
+ ta(n, s ? e : !1), n = r;
704
704
  }
705
705
  if (t.transitions !== null)
706
706
  for (const i of t.transitions)
@@ -709,35 +709,35 @@ function ea(t, e) {
709
709
  }
710
710
  const al = typeof requestIdleCallback > "u" ? (t) => setTimeout(t, 1) : requestIdleCallback;
711
711
  let vr = !1, gr = !1, Qr = [], Kr = [];
712
- function ta() {
712
+ function na() {
713
713
  vr = !1;
714
714
  const t = Qr.slice();
715
715
  Qr = [], ur(t);
716
716
  }
717
- function na() {
717
+ function ra() {
718
718
  gr = !1;
719
719
  const t = Kr.slice();
720
720
  Kr = [], ur(t);
721
721
  }
722
722
  function Tn(t) {
723
- vr || (vr = !0, queueMicrotask(ta)), Qr.push(t);
723
+ vr || (vr = !0, queueMicrotask(na)), Qr.push(t);
724
724
  }
725
725
  function ol(t) {
726
- gr || (gr = !0, al(na)), Kr.push(t);
726
+ gr || (gr = !0, al(ra)), Kr.push(t);
727
727
  }
728
728
  function ll() {
729
- vr && ta(), gr && na();
729
+ vr && na(), gr && ra();
730
730
  }
731
- function ys(t) {
731
+ function zs(t) {
732
732
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
733
733
  }
734
- const ra = 0, cl = 1;
735
- let rr = !1, sr = ra, Mn = !1, Nn = null, mn = !1, zs = !1;
736
- function Qs(t) {
734
+ const sa = 0, cl = 1;
735
+ let rr = !1, sr = sa, Mn = !1, Nn = null, mn = !1, $s = !1;
736
+ function Ks(t) {
737
737
  mn = t;
738
738
  }
739
- function Ks(t) {
740
- zs = t;
739
+ function ei(t) {
740
+ $s = t;
741
741
  }
742
742
  let rn = [], bn = 0;
743
743
  let Le = null, Vt = !1;
@@ -756,9 +756,9 @@ let ot = null, dt = 0, Ot = null;
756
756
  function dl(t) {
757
757
  Ot = t;
758
758
  }
759
- let sa = 1, mr = 0, sn = !1, Se = null;
760
- function ia() {
761
- return ++sa;
759
+ let ia = 1, mr = 0, sn = !1, Se = null;
760
+ function aa() {
761
+ return ++ia;
762
762
  }
763
763
  function Jn() {
764
764
  return !yn || Se !== null && Se.l === null;
@@ -781,7 +781,7 @@ function Sn(t) {
781
781
  if (i = n[s], Sn(
782
782
  /** @type {Derived} */
783
783
  i
784
- ) && Ji(
784
+ ) && Wi(
785
785
  /** @type {Derived} */
786
786
  i
787
787
  ), i.wv > t.wv)
@@ -819,12 +819,12 @@ function Er(t, e, n, r) {
819
819
  return;
820
820
  }
821
821
  }
822
- function aa(t, e, n = 0) {
822
+ function oa(t, e, n = 0) {
823
823
  var r = t.reactions;
824
824
  if (r !== null)
825
825
  for (var s = 0; s < r.length; s++) {
826
826
  var i = r[s];
827
- i.f & vt ? aa(
827
+ i.f & vt ? oa(
828
828
  /** @type {Derived} */
829
829
  i,
830
830
  e,
@@ -835,7 +835,7 @@ function aa(t, e, n = 0) {
835
835
  ));
836
836
  }
837
837
  }
838
- function oa(t) {
838
+ function la(t) {
839
839
  var h;
840
840
  var e = ot, n = dt, r = Ot, s = Le, i = sn, a = At, o = Se, c = Vt, l = t.f;
841
841
  ot = /** @type {null | Value[]} */
@@ -859,7 +859,7 @@ function oa(t) {
859
859
  if (Jn() && Ot !== null && !(t.f & (vt | fn | Ht)))
860
860
  for (p = 0; p < /** @type {Source[]} */
861
861
  Ot.length; p++)
862
- aa(
862
+ oa(
863
863
  Ot[p],
864
864
  /** @type {Effect} */
865
865
  t
@@ -900,9 +900,9 @@ function Cr(t) {
900
900
  var n = pe, r = Se;
901
901
  pe = t;
902
902
  try {
903
- e & yr ? il(t) : Vi(t), Xi(t), Zi(t);
904
- var s = oa(t);
905
- t.teardown = typeof s == "function" ? s : null, t.wv = sa;
903
+ e & yr ? il(t) : Qi(t), Vi(t), Xi(t);
904
+ var s = la(t);
905
+ t.teardown = typeof s == "function" ? s : null, t.wv = ia;
906
906
  var i = t.deps, a;
907
907
  Wr && Xo && t.f & Ht;
908
908
  } catch (o) {
@@ -912,7 +912,7 @@ function Cr(t) {
912
912
  }
913
913
  }
914
914
  }
915
- function la() {
915
+ function ca() {
916
916
  if (bn > 1e3) {
917
917
  bn = 0;
918
918
  try {
@@ -926,10 +926,10 @@ function la() {
926
926
  }
927
927
  bn++;
928
928
  }
929
- function ca(t) {
929
+ function ua(t) {
930
930
  var e = t.length;
931
931
  if (e !== 0) {
932
- la();
932
+ ca();
933
933
  var n = mn;
934
934
  mn = !0;
935
935
  try {
@@ -937,7 +937,7 @@ function ca(t) {
937
937
  var s = t[r];
938
938
  s.f & Ve || (s.f ^= Ve);
939
939
  var i = [];
940
- ua(s, i), vl(i);
940
+ da(s, i), vl(i);
941
941
  }
942
942
  } finally {
943
943
  mn = n;
@@ -951,7 +951,7 @@ function vl(t) {
951
951
  var r = t[n];
952
952
  if (!(r.f & (kn | It)))
953
953
  try {
954
- Sn(r) && (Cr(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null ? Qi(r) : r.fn = null));
954
+ Sn(r) && (Cr(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null ? Ki(r) : r.fn = null));
955
955
  } catch (s) {
956
956
  Er(s, r, null, r.ctx);
957
957
  }
@@ -961,10 +961,10 @@ function gl() {
961
961
  if (Mn = !1, bn > 1001)
962
962
  return;
963
963
  const t = rn;
964
- rn = [], ca(t), Mn || (bn = 0, Nn = null);
964
+ rn = [], ua(t), Mn || (bn = 0, Nn = null);
965
965
  }
966
966
  function Ir(t) {
967
- sr === ra && (Mn || (Mn = !0, queueMicrotask(gl))), Nn = t;
967
+ sr === sa && (Mn || (Mn = !0, queueMicrotask(gl))), Nn = t;
968
968
  for (var e = t; e.parent !== null; ) {
969
969
  e = e.parent;
970
970
  var n = e.f;
@@ -975,7 +975,7 @@ function Ir(t) {
975
975
  }
976
976
  rn.push(e);
977
977
  }
978
- function ua(t, e) {
978
+ function da(t, e) {
979
979
  var n = t.first, r = [];
980
980
  e: for (; n !== null; ) {
981
981
  var s = n.f, i = (s & Ft) !== 0, a = i && (s & Ve) !== 0, o = n.next;
@@ -994,7 +994,7 @@ function ua(t, e) {
994
994
  n = c;
995
995
  continue;
996
996
  }
997
- } else s & Fi && r.push(n);
997
+ } else s & Di && r.push(n);
998
998
  if (o === null) {
999
999
  let d = n.parent;
1000
1000
  for (; d !== null; ) {
@@ -1011,14 +1011,14 @@ function ua(t, e) {
1011
1011
  n = o;
1012
1012
  }
1013
1013
  for (var u = 0; u < r.length; u++)
1014
- c = r[u], e.push(c), ua(c, e);
1014
+ c = r[u], e.push(c), da(c, e);
1015
1015
  }
1016
1016
  function v(t) {
1017
1017
  var e = sr, n = rn;
1018
1018
  try {
1019
- la();
1019
+ ca();
1020
1020
  const s = [];
1021
- sr = cl, rn = s, Mn = !1, ca(n);
1021
+ sr = cl, rn = s, Mn = !1, ua(n);
1022
1022
  var r = t == null ? void 0 : t();
1023
1023
  return ll(), (rn.length > 0 || s.length > 0) && v(), bn = 0, Nn = null, r;
1024
1024
  } finally {
@@ -1032,11 +1032,11 @@ function f(t) {
1032
1032
  var u;
1033
1033
  var e = t.f, n = (e & vt) !== 0;
1034
1034
  if (n && e & kn) {
1035
- var r = Gi(
1035
+ var r = Ji(
1036
1036
  /** @type {Derived} */
1037
1037
  t
1038
1038
  );
1039
- return _s(
1039
+ return ks(
1040
1040
  /** @type {Derived} */
1041
1041
  t
1042
1042
  ), r;
@@ -1066,7 +1066,7 @@ function f(t) {
1066
1066
  break;
1067
1067
  }
1068
1068
  return n && (i = /** @type {Derived} */
1069
- t, Sn(i) && Ji(i)), t.v;
1069
+ t, Sn(i) && Wi(i)), t.v;
1070
1070
  }
1071
1071
  function Rt(t) {
1072
1072
  var e = Vt;
@@ -1082,7 +1082,7 @@ function yt(t, e) {
1082
1082
  }
1083
1083
  function Bn(t, e = 1) {
1084
1084
  var n = f(t), r = e === 1 ? n++ : n--;
1085
- return b(t, n), r;
1085
+ return m(t, n), r;
1086
1086
  }
1087
1087
  function ie(t, e = !1, n) {
1088
1088
  Se = {
@@ -1142,9 +1142,9 @@ function es(t, e = /* @__PURE__ */ new Set()) {
1142
1142
  es(t[r], e);
1143
1143
  } catch {
1144
1144
  }
1145
- const n = bs(t);
1145
+ const n = xs(t);
1146
1146
  if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
1147
- const r = Ri(n);
1147
+ const r = Fi(n);
1148
1148
  for (let s in r) {
1149
1149
  const i = r[s].get;
1150
1150
  if (i)
@@ -1165,11 +1165,11 @@ function bl(t, e) {
1165
1165
  }
1166
1166
  }
1167
1167
  function xl(t) {
1168
- de && /* @__PURE__ */ lt(t) !== null && ws(t);
1168
+ de && /* @__PURE__ */ lt(t) !== null && _s(t);
1169
1169
  }
1170
- let ei = !1;
1171
- function da() {
1172
- ei || (ei = !0, document.addEventListener(
1170
+ let ti = !1;
1171
+ function fa() {
1172
+ ti || (ti = !0, document.addEventListener(
1173
1173
  "reset",
1174
1174
  (t) => {
1175
1175
  Promise.resolve().then(() => {
@@ -1187,7 +1187,7 @@ function da() {
1187
1187
  { capture: !0 }
1188
1188
  ));
1189
1189
  }
1190
- function fa(t) {
1190
+ function pa(t) {
1191
1191
  var e = Le, n = pe;
1192
1192
  jt(null), kt(null);
1193
1193
  try {
@@ -1196,32 +1196,32 @@ function fa(t) {
1196
1196
  jt(e), kt(n);
1197
1197
  }
1198
1198
  }
1199
- function pa(t, e, n, r = n) {
1200
- t.addEventListener(e, () => fa(n));
1199
+ function ha(t, e, n, r = n) {
1200
+ t.addEventListener(e, () => pa(n));
1201
1201
  const s = t.__on_r;
1202
1202
  s ? t.__on_r = () => {
1203
1203
  s(), r(!0);
1204
- } : t.__on_r = () => r(!0), da();
1204
+ } : t.__on_r = () => r(!0), fa();
1205
1205
  }
1206
- const ha = /* @__PURE__ */ new Set(), ts = /* @__PURE__ */ new Set();
1207
- function va(t, e, n, r) {
1206
+ const va = /* @__PURE__ */ new Set(), ts = /* @__PURE__ */ new Set();
1207
+ function ga(t, e, n, r) {
1208
1208
  function s(i) {
1209
1209
  if (r.capture || Fn.call(e, i), !i.cancelBubble)
1210
- return fa(() => n.call(this, i));
1210
+ return pa(() => n.call(this, i));
1211
1211
  }
1212
1212
  return t.startsWith("pointer") || t.startsWith("touch") || t === "wheel" ? Tn(() => {
1213
1213
  e.addEventListener(t, s, r);
1214
1214
  }) : e.addEventListener(t, s, r), s;
1215
1215
  }
1216
1216
  function Wt(t, e, n, r, s) {
1217
- var i = { capture: r, passive: s }, a = va(t, e, n, i);
1217
+ var i = { capture: r, passive: s }, a = ga(t, e, n, i);
1218
1218
  (e === document.body || e === window || e === document) && tl(() => {
1219
1219
  e.removeEventListener(t, a, i);
1220
1220
  });
1221
1221
  }
1222
1222
  function nn(t) {
1223
1223
  for (var e = 0; e < t.length; e++)
1224
- ha.add(t[e]);
1224
+ va.add(t[e]);
1225
1225
  for (var n of ts)
1226
1226
  n(t);
1227
1227
  }
@@ -1261,14 +1261,14 @@ function Fn(t) {
1261
1261
  var w = i.assignedSlot || i.parentNode || /** @type {any} */
1262
1262
  i.host || null;
1263
1263
  try {
1264
- var m = i["__" + r];
1265
- if (m !== void 0 && !/** @type {any} */
1264
+ var b = i["__" + r];
1265
+ if (b !== void 0 && !/** @type {any} */
1266
1266
  i.disabled)
1267
- if (kr(m)) {
1268
- var [S, ...x] = m;
1267
+ if (kr(b)) {
1268
+ var [S, ...x] = b;
1269
1269
  S.apply(i, [t, ...x]);
1270
1270
  } else
1271
- m.call(i, t);
1271
+ b.call(i, t);
1272
1272
  } catch (y) {
1273
1273
  p ? h.push(y) : p = y;
1274
1274
  }
@@ -1288,7 +1288,7 @@ function Fn(t) {
1288
1288
  }
1289
1289
  }
1290
1290
  }
1291
- function $s(t) {
1291
+ function Ts(t) {
1292
1292
  var e = document.createElement("template");
1293
1293
  return e.innerHTML = t, e.content;
1294
1294
  }
@@ -1305,7 +1305,7 @@ function j(t, e) {
1305
1305
  return () => {
1306
1306
  if (de)
1307
1307
  return _t(we, null), we;
1308
- s === void 0 && (s = $s(i ? t : "<!>" + t), n || (s = /** @type {Node} */
1308
+ s === void 0 && (s = Ts(i ? t : "<!>" + t), n || (s = /** @type {Node} */
1309
1309
  /* @__PURE__ */ lt(s)));
1310
1310
  var a = (
1311
1311
  /** @type {TemplateNode} */
@@ -1334,7 +1334,7 @@ function wl(t, e, n = "svg") {
1334
1334
  if (!i) {
1335
1335
  var a = (
1336
1336
  /** @type {DocumentFragment} */
1337
- $s(s)
1337
+ Ts(s)
1338
1338
  ), o = (
1339
1339
  /** @type {Element} */
1340
1340
  /* @__PURE__ */ lt(a)
@@ -1378,8 +1378,8 @@ function $e(t, e) {
1378
1378
  var n = e == null ? "" : typeof e == "object" ? e + "" : e;
1379
1379
  n !== (t.__t ?? (t.__t = t.nodeValue)) && (t.__t = n, t.nodeValue = n == null ? "" : n + "");
1380
1380
  }
1381
- function ga(t, e) {
1382
- return ma(t, e);
1381
+ function ma(t, e) {
1382
+ return ba(t, e);
1383
1383
  }
1384
1384
  function _l(t, e) {
1385
1385
  Vr(), e.intro = e.intro ?? !1;
@@ -1389,7 +1389,7 @@ function _l(t, e) {
1389
1389
  /** @type {TemplateNode} */
1390
1390
  /* @__PURE__ */ lt(n)
1391
1391
  ); i && (i.nodeType !== 8 || /** @type {Comment} */
1392
- i.data !== ji); )
1392
+ i.data !== Ri); )
1393
1393
  i = /** @type {TemplateNode} */
1394
1394
  /* @__PURE__ */ Yt(i);
1395
1395
  if (!i)
@@ -1398,22 +1398,22 @@ function _l(t, e) {
1398
1398
  /** @type {Comment} */
1399
1399
  i
1400
1400
  ), xn();
1401
- const a = ma(t, { ...e, anchor: i });
1401
+ const a = ba(t, { ...e, anchor: i });
1402
1402
  if (we === null || we.nodeType !== 8 || /** @type {Comment} */
1403
- we.data !== gs)
1403
+ we.data !== ms)
1404
1404
  throw Tr(), gn;
1405
1405
  return Ut(!1), /** @type {Exports} */
1406
1406
  a;
1407
1407
  } catch (a) {
1408
1408
  if (a === gn)
1409
- return e.recover === !1 && Ho(), Vr(), ws(n), Ut(!1), ga(t, e);
1409
+ return e.recover === !1 && Ho(), Vr(), _s(n), Ut(!1), ma(t, e);
1410
1410
  throw a;
1411
1411
  } finally {
1412
1412
  Ut(r), ht(s);
1413
1413
  }
1414
1414
  }
1415
1415
  const vn = /* @__PURE__ */ new Map();
1416
- function ma(t, { target: e, anchor: n, props: r = {}, events: s, context: i, intro: a = !0 }) {
1416
+ function ba(t, { target: e, anchor: n, props: r = {}, events: s, context: i, intro: a = !0 }) {
1417
1417
  Vr();
1418
1418
  var o = /* @__PURE__ */ new Set(), c = (d) => {
1419
1419
  for (var p = 0; p < d.length; p++) {
@@ -1422,12 +1422,12 @@ function ma(t, { target: e, anchor: n, props: r = {}, events: s, context: i, int
1422
1422
  o.add(h);
1423
1423
  var w = Io(h);
1424
1424
  e.addEventListener(h, Fn, { passive: w });
1425
- var m = vn.get(h);
1426
- m === void 0 ? (document.addEventListener(h, Fn, { passive: w }), vn.set(h, 1)) : vn.set(h, m + 1);
1425
+ var b = vn.get(h);
1426
+ b === void 0 ? (document.addEventListener(h, Fn, { passive: w }), vn.set(h, 1)) : vn.set(h, b + 1);
1427
1427
  }
1428
1428
  }
1429
1429
  };
1430
- c(ms(ha)), ts.add(c);
1430
+ c(bs(va)), ts.add(c);
1431
1431
  var l = void 0, u = sl(() => {
1432
1432
  var d = n ?? e.appendChild(Qt());
1433
1433
  return wn(() => {
@@ -1475,7 +1475,7 @@ function V(t, e, n = !1) {
1475
1475
  if (de) {
1476
1476
  const w = (
1477
1477
  /** @type {Comment} */
1478
- r.data === vs
1478
+ r.data === gs
1479
1479
  );
1480
1480
  !!a === w && (r = Xr(), ht(r), Ut(!1), h = !0);
1481
1481
  }
@@ -1494,7 +1494,7 @@ function Qe(t, e) {
1494
1494
  }
1495
1495
  function yl(t, e, n, r) {
1496
1496
  for (var s = [], i = e.length, a = 0; a < i; a++)
1497
- ks(e[a].e, s, !0);
1497
+ ys(e[a].e, s, !0);
1498
1498
  var o = i > 0 && s.length === 0 && n !== null;
1499
1499
  if (o) {
1500
1500
  var c = (
@@ -1502,12 +1502,12 @@ function yl(t, e, n, r) {
1502
1502
  /** @type {Element} */
1503
1503
  n.parentNode
1504
1504
  );
1505
- ws(c), c.append(
1505
+ _s(c), c.append(
1506
1506
  /** @type {Element} */
1507
1507
  n
1508
1508
  ), r.clear(), Gt(t, e[0].prev, e[i - 1].next);
1509
1509
  }
1510
- Ki(s, () => {
1510
+ ea(s, () => {
1511
1511
  for (var l = 0; l < i; l++) {
1512
1512
  var u = e[l];
1513
1513
  o || (r.delete(u.k), Gt(t, u.prev, u.next)), Lt(u.e, !o);
@@ -1515,7 +1515,7 @@ function yl(t, e, n, r) {
1515
1515
  });
1516
1516
  }
1517
1517
  function Ke(t, e, n, r, s, i = null) {
1518
- var a = t, o = { flags: e, items: /* @__PURE__ */ new Map(), first: null }, c = (e & Ai) !== 0;
1518
+ var a = t, o = { flags: e, items: /* @__PURE__ */ new Map(), first: null }, c = (e & Li) !== 0;
1519
1519
  if (c) {
1520
1520
  var l = (
1521
1521
  /** @type {Element} */
@@ -1527,33 +1527,33 @@ function Ke(t, e, n, r, s, i = null) {
1527
1527
  ) : l.appendChild(Qt());
1528
1528
  }
1529
1529
  de && xn();
1530
- var u = null, d = !1, p = /* @__PURE__ */ Hi(() => {
1530
+ var u = null, d = !1, p = /* @__PURE__ */ Yi(() => {
1531
1531
  var h = n();
1532
- return kr(h) ? h : h == null ? [] : ms(h);
1532
+ return kr(h) ? h : h == null ? [] : bs(h);
1533
1533
  });
1534
1534
  Sr(() => {
1535
1535
  var h = f(p), w = h.length;
1536
1536
  if (d && w === 0)
1537
1537
  return;
1538
1538
  d = w === 0;
1539
- let m = !1;
1539
+ let b = !1;
1540
1540
  if (de) {
1541
1541
  var S = (
1542
1542
  /** @type {Comment} */
1543
- a.data === vs
1543
+ a.data === gs
1544
1544
  );
1545
- S !== (w === 0) && (a = Xr(), ht(a), Ut(!1), m = !0);
1545
+ S !== (w === 0) && (a = Xr(), ht(a), Ut(!1), b = !0);
1546
1546
  }
1547
1547
  if (de) {
1548
1548
  for (var x = null, _, y = 0; y < w; y++) {
1549
1549
  if (we.nodeType === 8 && /** @type {Comment} */
1550
- we.data === gs) {
1550
+ we.data === ms) {
1551
1551
  a = /** @type {Comment} */
1552
- we, m = !0, Ut(!1);
1552
+ we, b = !0, Ut(!1);
1553
1553
  break;
1554
1554
  }
1555
1555
  var F = h[y], $ = r(F, y);
1556
- _ = ba(
1556
+ _ = xa(
1557
1557
  we,
1558
1558
  o,
1559
1559
  x,
@@ -1584,12 +1584,12 @@ function Ke(t, e, n, r, s, i = null) {
1584
1584
  }
1585
1585
  i !== null && (w === 0 ? u ? hr(u) : u = wn(() => i(a)) : u !== null && pr(u, () => {
1586
1586
  u = null;
1587
- })), m && Ut(!0), f(p);
1587
+ })), b && Ut(!0), f(p);
1588
1588
  }), de && (a = we);
1589
1589
  }
1590
1590
  function zl(t, e, n, r, s, i, a, o) {
1591
1591
  var Ze, Xe, ut, gt;
1592
- var c = (s & po) !== 0, l = (s & (ps | hs)) !== 0, u = t.length, d = e.items, p = e.first, h = p, w, m = null, S, x = [], _ = [], y, F, $, A;
1592
+ var c = (s & po) !== 0, l = (s & (hs | vs)) !== 0, u = t.length, d = e.items, p = e.first, h = p, w, b = null, S, x = [], _ = [], y, F, $, A;
1593
1593
  if (c)
1594
1594
  for (A = 0; A < u; A += 1)
1595
1595
  y = t[A], F = a(y, A), $ = d.get(F), $ !== void 0 && ((Ze = $.a) == null || Ze.measure(), (S ?? (S = /* @__PURE__ */ new Set())).add($));
@@ -1599,32 +1599,32 @@ function zl(t, e, n, r, s, i, a, o) {
1599
1599
  /** @type {TemplateNode} */
1600
1600
  h.e.nodes_start
1601
1601
  ) : n;
1602
- m = ba(
1602
+ b = xa(
1603
1603
  L,
1604
1604
  e,
1605
- m,
1606
- m === null ? e.first : m.next,
1605
+ b,
1606
+ b === null ? e.first : b.next,
1607
1607
  y,
1608
1608
  F,
1609
1609
  A,
1610
1610
  r,
1611
1611
  s
1612
- ), d.set(F, m), x = [], _ = [], h = m.next;
1612
+ ), d.set(F, b), x = [], _ = [], h = b.next;
1613
1613
  continue;
1614
1614
  }
1615
1615
  if (l && $l($, y, A, s), $.e.f & It && (hr($.e), c && ((Xe = $.a) == null || Xe.unfix(), (S ?? (S = /* @__PURE__ */ new Set())).delete($))), $ !== h) {
1616
1616
  if (w !== void 0 && w.has($)) {
1617
1617
  if (x.length < _.length) {
1618
1618
  var M = _[0], H;
1619
- m = M.prev;
1619
+ b = M.prev;
1620
1620
  var le = x[0], Oe = x[x.length - 1];
1621
1621
  for (H = 0; H < x.length; H += 1)
1622
- ti(x[H], M, n);
1622
+ ni(x[H], M, n);
1623
1623
  for (H = 0; H < _.length; H += 1)
1624
1624
  w.delete(_[H]);
1625
- Gt(e, le.prev, Oe.next), Gt(e, m, le), Gt(e, Oe, M), h = M, m = Oe, A -= 1, x = [], _ = [];
1625
+ Gt(e, le.prev, Oe.next), Gt(e, b, le), Gt(e, Oe, M), h = M, b = Oe, A -= 1, x = [], _ = [];
1626
1626
  } else
1627
- w.delete($), ti($, h, n), Gt(e, $.prev, $.next), Gt(e, $, m === null ? e.first : m.next), Gt(e, m, $), m = $;
1627
+ w.delete($), ni($, h, n), Gt(e, $.prev, $.next), Gt(e, $, b === null ? e.first : b.next), Gt(e, b, $), b = $;
1628
1628
  continue;
1629
1629
  }
1630
1630
  for (x = [], _ = []; h !== null && h.k !== F; )
@@ -1633,21 +1633,21 @@ function zl(t, e, n, r, s, i, a, o) {
1633
1633
  continue;
1634
1634
  $ = h;
1635
1635
  }
1636
- x.push($), m = $, h = $.next;
1636
+ x.push($), b = $, h = $.next;
1637
1637
  }
1638
1638
  if (h !== null || w !== void 0) {
1639
- for (var je = w === void 0 ? [] : ms(w); h !== null; )
1639
+ for (var je = w === void 0 ? [] : bs(w); h !== null; )
1640
1640
  (i || !(h.e.f & It)) && je.push(h), h = h.next;
1641
1641
  var ge = je.length;
1642
1642
  if (ge > 0) {
1643
- var ue = s & Ai && u === 0 ? n : null;
1643
+ var ce = s & Li && u === 0 ? n : null;
1644
1644
  if (c) {
1645
1645
  for (A = 0; A < ge; A += 1)
1646
1646
  (ut = je[A].a) == null || ut.measure();
1647
1647
  for (A = 0; A < ge; A += 1)
1648
1648
  (gt = je[A].a) == null || gt.fix();
1649
1649
  }
1650
- yl(e, je, ue, d);
1650
+ yl(e, je, ce, d);
1651
1651
  }
1652
1652
  }
1653
1653
  c && Tn(() => {
@@ -1655,17 +1655,17 @@ function zl(t, e, n, r, s, i, a, o) {
1655
1655
  if (S !== void 0)
1656
1656
  for ($ of S)
1657
1657
  (R = $.a) == null || R.apply();
1658
- }), pe.first = e.first && e.first.e, pe.last = m && m.e;
1658
+ }), pe.first = e.first && e.first.e, pe.last = b && b.e;
1659
1659
  }
1660
1660
  function $l(t, e, n, r) {
1661
- r & ps && Zr(t.v, e), r & hs ? Zr(
1661
+ r & hs && Zr(t.v, e), r & vs ? Zr(
1662
1662
  /** @type {Value<number>} */
1663
1663
  t.i,
1664
1664
  n
1665
1665
  ) : t.i = n;
1666
1666
  }
1667
- function ba(t, e, n, r, s, i, a, o, c, l) {
1668
- var u = (c & ps) !== 0, d = (c & ho) === 0, p = u ? d ? /* @__PURE__ */ $r(s) : at(s) : s, h = c & hs ? at(a) : a, w = {
1667
+ function xa(t, e, n, r, s, i, a, o, c, l) {
1668
+ var u = (c & hs) !== 0, d = (c & ho) === 0, p = u ? d ? /* @__PURE__ */ $r(s) : at(s) : s, h = c & vs ? at(a) : a, w = {
1669
1669
  i: h,
1670
1670
  v: p,
1671
1671
  k: i,
@@ -1680,7 +1680,7 @@ function ba(t, e, n, r, s, i, a, o, c, l) {
1680
1680
  } finally {
1681
1681
  }
1682
1682
  }
1683
- function ti(t, e, n) {
1683
+ function ni(t, e, n) {
1684
1684
  for (var r = t.next ? (
1685
1685
  /** @type {TemplateNode} */
1686
1686
  t.next.e.nodes_start
@@ -1722,7 +1722,7 @@ function ss(t, e, n, r, s) {
1722
1722
  }
1723
1723
  var u = a + "";
1724
1724
  n && (u = `<svg>${u}</svg>`);
1725
- var d = $s(u);
1725
+ var d = Ts(u);
1726
1726
  if ((n || r) && (d = /** @type {Element} */
1727
1727
  /* @__PURE__ */ lt(d)), _t(
1728
1728
  /** @type {TemplateNode} */
@@ -1740,7 +1740,7 @@ function ss(t, e, n, r, s) {
1740
1740
  }));
1741
1741
  });
1742
1742
  }
1743
- function ce(t, e) {
1743
+ function ue(t, e) {
1744
1744
  Tn(() => {
1745
1745
  var n = t.getRootNode(), r = (
1746
1746
  /** @type {ShadowRoot} */
@@ -1759,17 +1759,17 @@ function ce(t, e) {
1759
1759
  }
1760
1760
  });
1761
1761
  }
1762
- function xa(t) {
1762
+ function wa(t) {
1763
1763
  var e, n, r = "";
1764
1764
  if (typeof t == "string" || typeof t == "number") r += t;
1765
1765
  else if (typeof t == "object") if (Array.isArray(t)) {
1766
1766
  var s = t.length;
1767
- for (e = 0; e < s; e++) t[e] && (n = xa(t[e])) && (r && (r += " "), r += n);
1767
+ for (e = 0; e < s; e++) t[e] && (n = wa(t[e])) && (r && (r += " "), r += n);
1768
1768
  } else for (n in t) t[n] && (r && (r += " "), r += n);
1769
1769
  return r;
1770
1770
  }
1771
1771
  function Tl() {
1772
- for (var t, e, n = 0, r = "", s = arguments.length; n < s; n++) (t = arguments[n]) && (e = xa(t)) && (r && (r += " "), r += e);
1772
+ for (var t, e, n = 0, r = "", s = arguments.length; n < s; n++) (t = arguments[n]) && (e = wa(t)) && (r && (r += " "), r += e);
1773
1773
  return r;
1774
1774
  }
1775
1775
  function Ar(t) {
@@ -1789,7 +1789,7 @@ function Sl(t) {
1789
1789
  }
1790
1790
  }
1791
1791
  };
1792
- t.__on_r = n, ol(n), da();
1792
+ t.__on_r = n, ol(n), fa();
1793
1793
  }
1794
1794
  }
1795
1795
  function El(t, e) {
@@ -1804,14 +1804,14 @@ function Cl(t, e) {
1804
1804
  }
1805
1805
  function N(t, e, n, r) {
1806
1806
  var s = t.__attributes ?? (t.__attributes = {});
1807
- de && (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[Po] = n), n == null ? t.removeAttribute(e) : typeof n != "string" && wa(t).includes(e) ? t[e] = n : t.setAttribute(e, n));
1807
+ de && (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[Po] = n), n == null ? t.removeAttribute(e) : typeof n != "string" && _a(t).includes(e) ? t[e] = n : t.setAttribute(e, n));
1808
1808
  }
1809
- function ni(t, e, n, r, s = !1, i = !1, a = !1) {
1809
+ function ri(t, e, n, r, s = !1, i = !1, a = !1) {
1810
1810
  var o = e || {}, c = t.tagName === "OPTION";
1811
1811
  for (var l in e)
1812
1812
  l in n || (n[l] = null);
1813
1813
  n.class && (n.class = Ar(n.class));
1814
- var u = wa(t), d = (
1814
+ var u = _a(t), d = (
1815
1815
  /** @type {Record<string, unknown>} **/
1816
1816
  t.__attributes ?? (t.__attributes = {})
1817
1817
  );
@@ -1841,7 +1841,7 @@ function ni(t, e, n, r, s = !1, i = !1, a = !1) {
1841
1841
  let A = function(L) {
1842
1842
  o[x].call(this, L);
1843
1843
  };
1844
- o[F] = va($, t, A, y);
1844
+ o[F] = ga($, t, A, y);
1845
1845
  }
1846
1846
  else w && (t[`__${$}`] = void 0);
1847
1847
  } else if (x === "style" && _ != null)
@@ -1861,25 +1861,25 @@ function ni(t, e, n, r, s = !1, i = !1, a = !1) {
1861
1861
  _
1862
1862
  );
1863
1863
  else {
1864
- var m = x;
1865
- s || (m = Eo(m));
1866
- var S = m === "defaultValue" || m === "defaultChecked";
1864
+ var b = x;
1865
+ s || (b = Eo(b));
1866
+ var S = b === "defaultValue" || b === "defaultChecked";
1867
1867
  if (_ == null && !i && !S)
1868
- if (d[x] = null, m === "value" || m === "checked") {
1868
+ if (d[x] = null, b === "value" || b === "checked") {
1869
1869
  let y = (
1870
1870
  /** @type {HTMLInputElement} */
1871
1871
  t
1872
1872
  );
1873
- if (m === "value") {
1873
+ if (b === "value") {
1874
1874
  let F = y.defaultValue;
1875
- y.removeAttribute(m), y.defaultValue = F;
1875
+ y.removeAttribute(b), y.defaultValue = F;
1876
1876
  } else {
1877
1877
  let F = y.defaultChecked;
1878
- y.removeAttribute(m), y.defaultChecked = F;
1878
+ y.removeAttribute(b), y.defaultChecked = F;
1879
1879
  }
1880
1880
  } else
1881
1881
  t.removeAttribute(x);
1882
- else S || u.includes(m) && (i || typeof _ != "string") ? t[m] = _ : typeof _ != "function" && (de && (m === "src" || m === "href" || m === "srcset") || N(t, m, _));
1882
+ else S || u.includes(b) && (i || typeof _ != "string") ? t[b] = _ : typeof _ != "function" && (de && (b === "src" || b === "href" || b === "srcset") || N(t, b, _));
1883
1883
  }
1884
1884
  x === "style" && "__styles" in t && (t.__styles = {});
1885
1885
  }
@@ -1887,16 +1887,16 @@ function ni(t, e, n, r, s = !1, i = !1, a = !1) {
1887
1887
  }
1888
1888
  return o;
1889
1889
  }
1890
- var ri = /* @__PURE__ */ new Map();
1891
- function wa(t) {
1892
- var e = ri.get(t.nodeName);
1890
+ var si = /* @__PURE__ */ new Map();
1891
+ function _a(t) {
1892
+ var e = si.get(t.nodeName);
1893
1893
  if (e) return e;
1894
- ri.set(t.nodeName, e = []);
1894
+ si.set(t.nodeName, e = []);
1895
1895
  for (var n, r = t, s = Element.prototype; s !== r; ) {
1896
- n = Ri(r);
1896
+ n = Fi(r);
1897
1897
  for (var i in n)
1898
1898
  n[i].set && e.push(i);
1899
- r = bs(r);
1899
+ r = xs(r);
1900
1900
  }
1901
1901
  return e;
1902
1902
  }
@@ -1927,15 +1927,15 @@ const Al = () => performance.now(), Nt = {
1927
1927
  now: () => Al(),
1928
1928
  tasks: /* @__PURE__ */ new Set()
1929
1929
  };
1930
- function _a() {
1930
+ function ka() {
1931
1931
  const t = Nt.now();
1932
1932
  Nt.tasks.forEach((e) => {
1933
1933
  e.c(t) || (Nt.tasks.delete(e), e.f());
1934
- }), Nt.tasks.size !== 0 && Nt.tick(_a);
1934
+ }), Nt.tasks.size !== 0 && Nt.tick(ka);
1935
1935
  }
1936
1936
  function Ll(t) {
1937
1937
  let e;
1938
- return Nt.tasks.size === 0 && Nt.tick(_a), {
1938
+ return Nt.tasks.size === 0 && Nt.tick(ka), {
1939
1939
  promise: new Promise((n) => {
1940
1940
  Nt.tasks.add(e = { c: t, f: n });
1941
1941
  }),
@@ -1957,7 +1957,7 @@ function jl(t) {
1957
1957
  (n) => n[0].toUpperCase() + n.slice(1)
1958
1958
  ).join("");
1959
1959
  }
1960
- function si(t) {
1960
+ function ii(t) {
1961
1961
  const e = {}, n = t.split(";");
1962
1962
  for (const r of n) {
1963
1963
  const [s, i] = r.split(":");
@@ -1982,7 +1982,7 @@ function bt(t, e, n, r) {
1982
1982
  jt(y), kt(F);
1983
1983
  }
1984
1984
  }
1985
- var m = {
1985
+ var b = {
1986
1986
  is_global: o,
1987
1987
  in() {
1988
1988
  var y;
@@ -2010,7 +2010,7 @@ function bt(t, e, n, r) {
2010
2010
  /** @type {Effect} */
2011
2011
  pe
2012
2012
  );
2013
- if ((S.transitions ?? (S.transitions = [])).push(m), s && ns) {
2013
+ if ((S.transitions ?? (S.transitions = [])).push(b), s && ns) {
2014
2014
  var x = o;
2015
2015
  if (!x) {
2016
2016
  for (var _ = (
@@ -2019,10 +2019,10 @@ function bt(t, e, n, r) {
2019
2019
  ); _ && _.f & zr; )
2020
2020
  for (; (_ = _.parent) && !(_.f & yr); )
2021
2021
  ;
2022
- x = !_ || (_.f & Di) !== 0;
2022
+ x = !_ || (_.f & Oi) !== 0;
2023
2023
  }
2024
2024
  x && zn(() => {
2025
- Rt(() => m.in());
2025
+ Rt(() => b.in());
2026
2026
  });
2027
2027
  }
2028
2028
  }
@@ -2054,11 +2054,11 @@ function is(t, e, n, r, s) {
2054
2054
  const { delay: c = 0, css: l, tick: u, easing: d = Rl } = e;
2055
2055
  var p = [];
2056
2056
  if (i && n === void 0 && (u && u(0, 1), l)) {
2057
- var h = si(l(0, 1));
2057
+ var h = ii(l(0, 1));
2058
2058
  p.push(h, h);
2059
2059
  }
2060
- var w = () => 1 - r, m = t.animate(p, { duration: c });
2061
- return m.onfinish = () => {
2060
+ var w = () => 1 - r, b = t.animate(p, { duration: c });
2061
+ return b.onfinish = () => {
2062
2062
  var S = (n == null ? void 0 : n.t()) ?? 1 - r;
2063
2063
  n == null || n.abort();
2064
2064
  var x = r - S, _ = (
@@ -2069,28 +2069,28 @@ function is(t, e, n, r, s) {
2069
2069
  var F = !1;
2070
2070
  if (l)
2071
2071
  for (var $ = Math.ceil(_ / 16.666666666666668), A = 0; A <= $; A += 1) {
2072
- var L = S + x * d(A / $), M = si(l(L, 1 - L));
2072
+ var L = S + x * d(A / $), M = ii(l(L, 1 - L));
2073
2073
  y.push(M), F || (F = M.overflow === "hidden");
2074
2074
  }
2075
2075
  F && (t.style.overflow = "hidden"), w = () => {
2076
2076
  var H = (
2077
2077
  /** @type {number} */
2078
2078
  /** @type {globalThis.Animation} */
2079
- m.currentTime
2079
+ b.currentTime
2080
2080
  );
2081
2081
  return S + x * d(H / _);
2082
2082
  }, u && Ll(() => {
2083
- if (m.playState !== "running") return !1;
2083
+ if (b.playState !== "running") return !1;
2084
2084
  var H = w();
2085
2085
  return u(H, 1 - H), !0;
2086
2086
  });
2087
2087
  }
2088
- m = t.animate(y, { duration: _, fill: "forwards" }), m.onfinish = () => {
2088
+ b = t.animate(y, { duration: _, fill: "forwards" }), b.onfinish = () => {
2089
2089
  w = () => r, u == null || u(r, 1 - r), s();
2090
2090
  };
2091
2091
  }, {
2092
2092
  abort: () => {
2093
- m && (m.cancel(), m.effect = null, m.onfinish = In);
2093
+ b && (b.cancel(), b.effect = null, b.onfinish = In);
2094
2094
  },
2095
2095
  deactivate: () => {
2096
2096
  s = In;
@@ -2103,7 +2103,7 @@ function is(t, e, n, r, s) {
2103
2103
  }
2104
2104
  function Fl(t, e, n = e) {
2105
2105
  var r = Jn();
2106
- pa(t, "input", (s) => {
2106
+ ha(t, "input", (s) => {
2107
2107
  var i = s ? t.defaultValue : t.value;
2108
2108
  if (i = qr(t) ? Hr(i) : i, n(i), r && i !== (i = e())) {
2109
2109
  var a = t.selectionStart, o = t.selectionEnd;
@@ -2125,7 +2125,7 @@ function qr(t) {
2125
2125
  function Hr(t) {
2126
2126
  return t === "" ? null : +t;
2127
2127
  }
2128
- function ka(t, e, n) {
2128
+ function ya(t, e, n) {
2129
2129
  if (t.multiple)
2130
2130
  return Ol(t, e);
2131
2131
  for (var r of t.options) {
@@ -2141,7 +2141,7 @@ function Dl(t, e) {
2141
2141
  zn(() => {
2142
2142
  var n = new MutationObserver(() => {
2143
2143
  var r = t.__value;
2144
- ka(t, r);
2144
+ ya(t, r);
2145
2145
  });
2146
2146
  return n.observe(t, {
2147
2147
  // Listen to option element changes
@@ -2158,9 +2158,9 @@ function Dl(t, e) {
2158
2158
  };
2159
2159
  });
2160
2160
  }
2161
- function ya(t, e, n = e) {
2161
+ function za(t, e, n = e) {
2162
2162
  var r = !0;
2163
- pa(t, "change", (s) => {
2163
+ ha(t, "change", (s) => {
2164
2164
  var i = s ? "[selected]" : ":checked", a;
2165
2165
  if (t.multiple)
2166
2166
  a = [].map.call(t.querySelectorAll(i), Dn);
@@ -2172,7 +2172,7 @@ function ya(t, e, n = e) {
2172
2172
  n(a);
2173
2173
  }), zn(() => {
2174
2174
  var s = e();
2175
- if (ka(t, s, r), r && s === void 0) {
2175
+ if (ya(t, s, r), r && s === void 0) {
2176
2176
  var i = t.querySelector(":checked");
2177
2177
  i !== null && (s = Dn(i), n(s));
2178
2178
  }
@@ -2186,7 +2186,7 @@ function Ol(t, e) {
2186
2186
  function Dn(t) {
2187
2187
  return "__value" in t ? t.__value : t.value;
2188
2188
  }
2189
- function ii(t, e) {
2189
+ function ai(t, e) {
2190
2190
  return t === e || (t == null ? void 0 : t[qt]) === e;
2191
2191
  }
2192
2192
  function as(t = {}, e, n, r) {
@@ -2194,11 +2194,11 @@ function as(t = {}, e, n, r) {
2194
2194
  var s, i;
2195
2195
  return $n(() => {
2196
2196
  s = i, i = [], Rt(() => {
2197
- t !== n(...i) && (e(t, ...i), s && ii(n(...s), t) && e(null, ...s));
2197
+ t !== n(...i) && (e(t, ...i), s && ai(n(...s), t) && e(null, ...s));
2198
2198
  });
2199
2199
  }), () => {
2200
2200
  Tn(() => {
2201
- i && ii(n(...i), t) && e(null, ...i);
2201
+ i && ai(n(...i), t) && e(null, ...i);
2202
2202
  });
2203
2203
  };
2204
2204
  }), t;
@@ -2225,7 +2225,7 @@ function ct(t = !1) {
2225
2225
  r = () => f(a);
2226
2226
  }
2227
2227
  n.b.length && nl(() => {
2228
- ai(e, r), ur(n.b);
2228
+ oi(e, r), ur(n.b);
2229
2229
  }), Ct(() => {
2230
2230
  const s = Rt(() => n.m.map(Fo));
2231
2231
  return () => {
@@ -2233,16 +2233,16 @@ function ct(t = !1) {
2233
2233
  typeof i == "function" && i();
2234
2234
  };
2235
2235
  }), n.a.length && Ct(() => {
2236
- ai(e, r), ur(n.a);
2236
+ oi(e, r), ur(n.a);
2237
2237
  });
2238
2238
  }
2239
- function ai(t, e) {
2239
+ function oi(t, e) {
2240
2240
  if (t.l.s)
2241
2241
  for (const n of t.l.s) f(n);
2242
2242
  e();
2243
2243
  }
2244
2244
  function Lr(t) {
2245
- Se === null && ys(), yn && Se.l !== null ? Ul(Se).m.push(t) : Ct(() => {
2245
+ Se === null && zs(), yn && Se.l !== null ? Ul(Se).m.push(t) : Ct(() => {
2246
2246
  const e = Rt(t);
2247
2247
  if (typeof e == "function") return (
2248
2248
  /** @type {() => void} */
@@ -2251,14 +2251,14 @@ function Lr(t) {
2251
2251
  });
2252
2252
  }
2253
2253
  function Pl(t) {
2254
- Se === null && ys(), Lr(() => () => Rt(t));
2254
+ Se === null && zs(), Lr(() => () => Rt(t));
2255
2255
  }
2256
2256
  function Ml(t, e, { bubbles: n = !1, cancelable: r = !1 } = {}) {
2257
2257
  return new CustomEvent(t, { detail: e, bubbles: n, cancelable: r });
2258
2258
  }
2259
2259
  function Nl() {
2260
2260
  const t = Se;
2261
- return t === null && ys(), (e, n, r) => {
2261
+ return t === null && zs(), (e, n, r) => {
2262
2262
  var i;
2263
2263
  const s = (
2264
2264
  /** @type {Record<string, Function | Function[]>} */
@@ -2311,7 +2311,7 @@ const ql = {
2311
2311
  },
2312
2312
  /** @type {string} */
2313
2313
  e,
2314
- Li
2314
+ ji
2315
2315
  )), t.special[e](n), Bn(t.version), !0;
2316
2316
  },
2317
2317
  getOwnPropertyDescriptor(t, e) {
@@ -2335,7 +2335,7 @@ const ql = {
2335
2335
  function Hl(t, e) {
2336
2336
  return new Proxy({ props: t, exclude: e, special: {}, version: at(0) }, ql);
2337
2337
  }
2338
- function oi(t) {
2338
+ function li(t) {
2339
2339
  for (var e = pe, n = pe; e !== null && !(e.f & (Ft | un)); )
2340
2340
  e = e.parent;
2341
2341
  try {
@@ -2352,15 +2352,15 @@ function g(t, e, n, r) {
2352
2352
  t[e]
2353
2353
  )) : l = /** @type {V} */
2354
2354
  t[e];
2355
- var u = qt in t || Pi in t, d = a && (((L = an(t, e)) == null ? void 0 : L.set) ?? (u && e in t && ((M) => t[e] = M))) || void 0, p = (
2355
+ var u = qt in t || Mi in t, d = a && (((L = an(t, e)) == null ? void 0 : L.set) ?? (u && e in t && ((M) => t[e] = M))) || void 0, p = (
2356
2356
  /** @type {V} */
2357
2357
  r
2358
- ), h = !0, w = !1, m = () => (w = !0, h && (h = !1, o ? p = Rt(
2358
+ ), h = !0, w = !1, b = () => (w = !0, h && (h = !1, o ? p = Rt(
2359
2359
  /** @type {() => V} */
2360
2360
  r
2361
2361
  ) : p = /** @type {V} */
2362
2362
  r), p);
2363
- l === void 0 && r !== void 0 && (d && i && Yo(), l = m(), d && d(l));
2363
+ l === void 0 && r !== void 0 && (d && i && Yo(), l = b(), d && d(l));
2364
2364
  var S;
2365
2365
  if (i)
2366
2366
  S = () => {
@@ -2368,11 +2368,11 @@ function g(t, e, n, r) {
2368
2368
  /** @type {V} */
2369
2369
  t[e]
2370
2370
  );
2371
- return M === void 0 ? m() : (h = !0, w = !1, M);
2371
+ return M === void 0 ? b() : (h = !0, w = !1, M);
2372
2372
  };
2373
2373
  else {
2374
- var x = oi(
2375
- () => (s ? qe : Hi)(() => (
2374
+ var x = li(
2375
+ () => (s ? qe : Yi)(() => (
2376
2376
  /** @type {V} */
2377
2377
  t[e]
2378
2378
  ))
@@ -2383,7 +2383,7 @@ function g(t, e, n, r) {
2383
2383
  void 0), M === void 0 ? p : M;
2384
2384
  };
2385
2385
  }
2386
- if (!(n & Li))
2386
+ if (!(n & ji))
2387
2387
  return S;
2388
2388
  if (d) {
2389
2389
  var _ = t.$$legacy;
@@ -2391,16 +2391,16 @@ function g(t, e, n, r) {
2391
2391
  return arguments.length > 0 ? ((!i || !H || _ || c) && d(H ? S() : M), M) : S();
2392
2392
  };
2393
2393
  }
2394
- var y = !1, F = !1, $ = /* @__PURE__ */ $r(l), A = oi(
2394
+ var y = !1, F = !1, $ = /* @__PURE__ */ $r(l), A = li(
2395
2395
  () => /* @__PURE__ */ qe(() => {
2396
2396
  var M = S(), H = f($);
2397
2397
  return y ? (y = !1, F = !0, H) : (F = !1, $.v = M);
2398
2398
  })
2399
2399
  );
2400
- return s || (A.equals = xs), function(M, H) {
2400
+ return s || (A.equals = ws), function(M, H) {
2401
2401
  if (arguments.length > 0) {
2402
2402
  const le = H ? f(A) : i && a ? C(M) : M;
2403
- return A.equals(le) || (y = !0, b($, le), w && p !== void 0 && (p = le), Rt(() => f(A))), M;
2403
+ return A.equals(le) || (y = !0, m($, le), w && p !== void 0 && (p = le), Rt(() => f(A))), M;
2404
2404
  }
2405
2405
  return f(A);
2406
2406
  };
@@ -2432,14 +2432,14 @@ class Gl {
2432
2432
  return f(n.get(o) ?? r(o, Reflect.get(a, o)));
2433
2433
  },
2434
2434
  has(a, o) {
2435
- return o === Pi ? !0 : (f(n.get(o) ?? r(o, Reflect.get(a, o))), Reflect.has(a, o));
2435
+ return o === Mi ? !0 : (f(n.get(o) ?? r(o, Reflect.get(a, o))), Reflect.has(a, o));
2436
2436
  },
2437
2437
  set(a, o, c) {
2438
- return b(n.get(o) ?? r(o, c), c), Reflect.set(a, o, c);
2438
+ return m(n.get(o) ?? r(o, c), c), Reflect.set(a, o, c);
2439
2439
  }
2440
2440
  }
2441
2441
  );
2442
- Nr(this, mt, (e.hydrate ? _l : ga)(e.component, {
2442
+ Nr(this, mt, (e.hydrate ? _l : ma)(e.component, {
2443
2443
  target: e.target,
2444
2444
  anchor: e.anchor,
2445
2445
  props: s,
@@ -2489,8 +2489,8 @@ class Gl {
2489
2489
  }
2490
2490
  }
2491
2491
  Mt = new WeakMap(), mt = new WeakMap();
2492
- let za;
2493
- typeof HTMLElement == "function" && (za = class extends HTMLElement {
2492
+ let $a;
2493
+ typeof HTMLElement == "function" && ($a = class extends HTMLElement {
2494
2494
  /**
2495
2495
  * @param {*} $$componentCtor
2496
2496
  * @param {*} $$slots
@@ -2661,7 +2661,7 @@ function Jl(t) {
2661
2661
  }), e;
2662
2662
  }
2663
2663
  function oe(t, e, n, r, s, i) {
2664
- let a = class extends za {
2664
+ let a = class extends $a {
2665
2665
  constructor() {
2666
2666
  super(t, n, s), this.$$p_d = e;
2667
2667
  }
@@ -2697,11 +2697,11 @@ function oe(t, e, n, r, s, i) {
2697
2697
  a, a;
2698
2698
  }
2699
2699
  const Wl = (t) => t;
2700
- function Ts(t) {
2700
+ function Ss(t) {
2701
2701
  const e = t - 1;
2702
2702
  return e * e * e + 1;
2703
2703
  }
2704
- function li(t) {
2704
+ function ci(t) {
2705
2705
  const e = typeof t == "string" && t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);
2706
2706
  return e ? [parseFloat(e[1]), e[2] || "px"] : [
2707
2707
  /** @type {number} */
@@ -2718,24 +2718,24 @@ function Bt(t, { delay: e = 0, duration: n = 400, easing: r = Wl } = {}) {
2718
2718
  css: (i) => `opacity: ${i * s}`
2719
2719
  };
2720
2720
  }
2721
- function Zl(t, { delay: e = 0, duration: n = 400, easing: r = Ts, x: s = 0, y: i = 0, opacity: a = 0 } = {}) {
2722
- const o = getComputedStyle(t), c = +o.opacity, l = o.transform === "none" ? "" : o.transform, u = c * (1 - a), [d, p] = li(s), [h, w] = li(i);
2721
+ function Zl(t, { delay: e = 0, duration: n = 400, easing: r = Ss, x: s = 0, y: i = 0, opacity: a = 0 } = {}) {
2722
+ const o = getComputedStyle(t), c = +o.opacity, l = o.transform === "none" ? "" : o.transform, u = c * (1 - a), [d, p] = ci(s), [h, w] = ci(i);
2723
2723
  return {
2724
2724
  delay: e,
2725
2725
  duration: n,
2726
2726
  easing: r,
2727
- css: (m, S) => `
2728
- transform: ${l} translate(${(1 - m) * d}${p}, ${(1 - m) * h}${w});
2727
+ css: (b, S) => `
2728
+ transform: ${l} translate(${(1 - b) * d}${p}, ${(1 - b) * h}${w});
2729
2729
  opacity: ${c - u * S}`
2730
2730
  };
2731
2731
  }
2732
- function Xl(t, { delay: e = 0, duration: n = 400, easing: r = Ts, axis: s = "y" } = {}) {
2732
+ function Xl(t, { delay: e = 0, duration: n = 400, easing: r = Ss, axis: s = "y" } = {}) {
2733
2733
  const i = getComputedStyle(t), a = +i.opacity, o = s === "y" ? "height" : "width", c = parseFloat(i[o]), l = s === "y" ? ["top", "bottom"] : ["left", "right"], u = l.map(
2734
2734
  (x) => (
2735
2735
  /** @type {'Left' | 'Right' | 'Top' | 'Bottom'} */
2736
2736
  `${x[0].toUpperCase()}${x.slice(1)}`
2737
2737
  )
2738
- ), d = parseFloat(i[`padding${u[0]}`]), p = parseFloat(i[`padding${u[1]}`]), h = parseFloat(i[`margin${u[0]}`]), w = parseFloat(i[`margin${u[1]}`]), m = parseFloat(
2738
+ ), d = parseFloat(i[`padding${u[0]}`]), p = parseFloat(i[`padding${u[1]}`]), h = parseFloat(i[`margin${u[0]}`]), w = parseFloat(i[`margin${u[1]}`]), b = parseFloat(
2739
2739
  i[`border${u[0]}Width`]
2740
2740
  ), S = parseFloat(
2741
2741
  i[`border${u[1]}Width`]
@@ -2744,10 +2744,10 @@ function Xl(t, { delay: e = 0, duration: n = 400, easing: r = Ts, axis: s = "y"
2744
2744
  delay: e,
2745
2745
  duration: n,
2746
2746
  easing: r,
2747
- css: (x) => `overflow: hidden;opacity: ${Math.min(x * 20, 1) * a};${o}: ${x * c}px;padding-${l[0]}: ${x * d}px;padding-${l[1]}: ${x * p}px;margin-${l[0]}: ${x * h}px;margin-${l[1]}: ${x * w}px;border-${l[0]}-width: ${x * m}px;border-${l[1]}-width: ${x * S}px;min-${o}: 0`
2747
+ css: (x) => `overflow: hidden;opacity: ${Math.min(x * 20, 1) * a};${o}: ${x * c}px;padding-${l[0]}: ${x * d}px;padding-${l[1]}: ${x * p}px;margin-${l[0]}: ${x * h}px;margin-${l[1]}: ${x * w}px;border-${l[0]}-width: ${x * b}px;border-${l[1]}-width: ${x * S}px;min-${o}: 0`
2748
2748
  };
2749
2749
  }
2750
- function Vl(t, { delay: e = 0, duration: n = 400, easing: r = Ts, start: s = 0, opacity: i = 0 } = {}) {
2750
+ function Vl(t, { delay: e = 0, duration: n = 400, easing: r = Ss, start: s = 0, opacity: i = 0 } = {}) {
2751
2751
  const a = getComputedStyle(t), o = +a.opacity, c = a.transform === "none" ? "" : a.transform, l = 1 - s, u = o * (1 - i);
2752
2752
  return {
2753
2753
  delay: e,
@@ -2781,7 +2781,7 @@ class Zt {
2781
2781
  }
2782
2782
  static fromJson(e) {
2783
2783
  var n;
2784
- return new Zt(e.timeStamp, e.sentByUser, e.content, e.html, ((n = e.attachments) == null ? void 0 : n.map((r) => Ss.fromJson(r))) ?? [], e.agentUsed);
2784
+ return new Zt(e.timeStamp, e.sentByUser, e.content, e.html, ((n = e.attachments) == null ? void 0 : n.map((r) => Es.fromJson(r))) ?? [], e.agentUsed);
2785
2785
  }
2786
2786
  static firstMessage(e = "it", n = "", r = "") {
2787
2787
  let s = [], i = "AInstein";
@@ -2827,7 +2827,7 @@ class Zt {
2827
2827
  return new Zt(0, !1, o, c);
2828
2828
  }
2829
2829
  }
2830
- class Ss {
2830
+ class Es {
2831
2831
  constructor(e, n, r, s, i, a = "Documento Comune") {
2832
2832
  I(this, "filename");
2833
2833
  I(this, "external_id");
@@ -2848,7 +2848,7 @@ class Ss {
2848
2848
  };
2849
2849
  }
2850
2850
  static fromJson(e) {
2851
- return new Ss(e.filename, e.external_id, e.path || "", e.gendoc_id, e.isCommon, e.commonType);
2851
+ return new Es(e.filename, e.external_id, e.path || "", e.gendoc_id, e.isCommon, e.commonType);
2852
2852
  }
2853
2853
  }
2854
2854
  class on {
@@ -2884,9 +2884,9 @@ const Ql = "it", Kl = (
2884
2884
  );
2885
2885
  let X = () => Ql;
2886
2886
  const ec = (t) => {
2887
- typeof t == "function" ? X = ci(t) : X = ci(() => t);
2887
+ typeof t == "function" ? X = ui(t) : X = ui(() => t);
2888
2888
  };
2889
- function ci(t) {
2889
+ function ui(t) {
2890
2890
  return () => {
2891
2891
  const e = t();
2892
2892
  if (!tc(e))
@@ -2906,7 +2906,7 @@ const nc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", rc = /* @__NO_SIDE_
2906
2906
  })[e.languageTag ?? X()](), Ru = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2907
2907
  en: Gc,
2908
2908
  it: sc
2909
- })[e.languageTag ?? X()](), $a = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2909
+ })[e.languageTag ?? X()](), Ta = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2910
2910
  en: Jc,
2911
2911
  it: ic
2912
2912
  })[e.languageTag ?? X()](), Fu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
@@ -2933,10 +2933,10 @@ const nc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", rc = /* @__NO_SIDE_
2933
2933
  })[e.languageTag ?? X()](), Bu = /* @__NO_SIDE_EFFECTS__ */ (t, e = {}) => ({
2934
2934
  en: tu,
2935
2935
  it: pc
2936
- })[e.languageTag ?? X()](t), Ta = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2936
+ })[e.languageTag ?? X()](t), Sa = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2937
2937
  en: nu,
2938
2938
  it: hc
2939
- })[e.languageTag ?? X()](), Sa = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2939
+ })[e.languageTag ?? X()](), Ea = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2940
2940
  en: ru,
2941
2941
  it: vc
2942
2942
  })[e.languageTag ?? X()](), qu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
@@ -2954,13 +2954,13 @@ const nc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", rc = /* @__NO_SIDE_
2954
2954
  })[e.languageTag ?? X()](), Ju = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2955
2955
  en: lu,
2956
2956
  it: wc
2957
- })[e.languageTag ?? X()](), ui = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2957
+ })[e.languageTag ?? X()](), di = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2958
2958
  en: cu,
2959
2959
  it: _c
2960
2960
  })[e.languageTag ?? X()](), Wu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2961
2961
  en: uu,
2962
2962
  it: kc
2963
- })[e.languageTag ?? X()](), di = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2963
+ })[e.languageTag ?? X()](), fi = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2964
2964
  en: du,
2965
2965
  it: yc
2966
2966
  })[e.languageTag ?? X()](), Zu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
@@ -2972,7 +2972,7 @@ const nc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", rc = /* @__NO_SIDE_
2972
2972
  })[e.languageTag ?? X()](), Vu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2973
2973
  en: hu,
2974
2974
  it: Tc
2975
- })[e.languageTag ?? X()](), Ea = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2975
+ })[e.languageTag ?? X()](), os = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2976
2976
  en: vu,
2977
2977
  it: Sc
2978
2978
  })[e.languageTag ?? X()](), Qu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
@@ -2981,7 +2981,7 @@ const nc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", rc = /* @__NO_SIDE_
2981
2981
  })[e.languageTag ?? X()](), Ku = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2982
2982
  en: mu,
2983
2983
  it: Cc
2984
- })[e.languageTag ?? X()](), fi = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2984
+ })[e.languageTag ?? X()](), pi = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2985
2985
  en: bu,
2986
2986
  it: Ic
2987
2987
  })[e.languageTag ?? X()](), ed = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
@@ -3005,7 +3005,7 @@ const nc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", rc = /* @__NO_SIDE_
3005
3005
  })[e.languageTag ?? X()](), sd = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
3006
3006
  en: $u,
3007
3007
  it: Oc
3008
- })[e.languageTag ?? X()](), pi = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
3008
+ })[e.languageTag ?? X()](), hi = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
3009
3009
  en: Tu,
3010
3010
  it: Pc
3011
3011
  })[e.languageTag ?? X()](), id = /* @__NO_SIDE_EFFECTS__ */ (t, e = {}) => ({
@@ -3037,14 +3037,14 @@ const md = {
3037
3037
  code: "header.svelte-ib8fo5 {display:flex;justify-content:center;align-items:center;height:50px;border-radius:30px 30px 0 0;}.header-left.svelte-ib8fo5 {display:flex;align-items:center;gap:12px;}h1.svelte-ib8fo5 {font-size:1.5rem;color:#fff;}.language-select.svelte-ib8fo5 {padding:5px;border-radius:5px;border:none;background:#3c4450;color:white;font-size:20px;font-weight:900;transition:200ms;}.language-select.svelte-ib8fo5:hover {background:#576374;cursor:pointer;}section.svelte-ib8fo5 {display:flex;justify-content:space-between;align-items:center;width:100%;padding:10px;}.buttons.svelte-ib8fo5 {display:flex;gap:10px;}button.svelte-ib8fo5 {display:flex;justify-content:center;align-items:center;border:none;cursor:pointer;border-radius:30px;transition:200ms;}.new-chat.svelte-ib8fo5 {font-size:large;width:30px;height:30px;background:#295dcf;color:white;padding:0;}.new-chat.svelte-ib8fo5:hover {background:#1e3a8a;}.history-button.svelte-ib8fo5 {font-size:large;width:30px;height:30px;background:#295dcf;color:white;font-weight:bold;}.history-button.svelte-ib8fo5:hover {background:#1e3a8a;}.close-button.svelte-ib8fo5 {font-size:large;width:30px;height:30px;background:#295dcf;color:white;}.close-button.svelte-ib8fo5:hover {background:red;}"
3038
3038
  };
3039
3039
  function Ia(t, e) {
3040
- ie(e, !0), ce(t, md);
3040
+ ie(e, !0), ue(t, md);
3041
3041
  let n = g(e, "show", 15, !1), r = g(e, "showHistory", 15), s = g(e, "actChat", 15), i = g(e, "muted", 15), a = g(e, "languageSelected", 15), o = g(e, "username", 15), c = g(e, "error", 15), l = g(e, "newChat", 7);
3042
3042
  Lr(() => {
3043
3043
  });
3044
3044
  var u = gd(), d = z(u), p = z(d), h = P(z(p), 2), w = z(h);
3045
3045
  w.value = (w.__value = "it") == null ? "" : "it";
3046
- var m = P(w);
3047
- m.value = (m.__value = "en") == null ? "" : "en", k(h), k(p);
3046
+ var b = P(w);
3047
+ b.value = (b.__value = "en") == null ? "" : "en", k(h), k(p);
3048
3048
  var S = P(p, 2), x = z(S);
3049
3049
  {
3050
3050
  var _ = (L) => {
@@ -3076,12 +3076,12 @@ function Ia(t, e) {
3076
3076
  N(F, "title", L), N($, "title", M), N($, "aria-label", H), N(A, "title", le), N(A, "aria-label", le);
3077
3077
  },
3078
3078
  [
3079
- () => /* @__PURE__ */ Ta(),
3080
3079
  () => /* @__PURE__ */ Sa(),
3080
+ () => /* @__PURE__ */ Ea(),
3081
3081
  () => /* @__PURE__ */ Yu(),
3082
3082
  () => /* @__PURE__ */ Gu()
3083
3083
  ]
3084
- ), ya(h, a), bt(3, u, () => Bt, () => ({ duration: 300 })), T(t, u), ae({
3084
+ ), za(h, a), bt(3, u, () => Bt, () => ({ duration: 300 })), T(t, u), ae({
3085
3085
  get show() {
3086
3086
  return n();
3087
3087
  },
@@ -3438,7 +3438,7 @@ function Ed(t) {
3438
3438
  return "https://versioneditorfs-573906316236.europe-west1.run.app";
3439
3439
  }
3440
3440
  }
3441
- const Es = (t) => {
3441
+ const Cs = (t) => {
3442
3442
  switch (t) {
3443
3443
  case "aks_svi":
3444
3444
  return "sviluppo";
@@ -3472,7 +3472,7 @@ const Es = (t) => {
3472
3472
  }
3473
3473
  }, Id = () => {
3474
3474
  let t = U.getEnvironmentId();
3475
- return t == "aks_svi" ? "https://mike.aksiliasuite.com/pages/editor_documenti/" : `https://${Es(t)}.aksiliasuite.com/pages/editor_documenti/`;
3475
+ return t == "aks_svi" ? "https://mike.aksiliasuite.com/pages/editor_documenti/" : `https://${Cs(t)}.aksiliasuite.com/pages/editor_documenti/`;
3476
3476
  }, Ad = (t) => {
3477
3477
  let e = U.getEnvironmentId(), n = U.getToken();
3478
3478
  return `${Cd(e)}/it/edit/${t}?token=${n}&envId=${e}`;
@@ -3542,7 +3542,7 @@ const jd = async (t) => {
3542
3542
  function: "edit"
3543
3543
  });
3544
3544
  }, Dd = async () => {
3545
- let t = U.getEnvironmentId(), e = `https://${Es(t)}.aksiliasuite.com/api/v1/operatore`;
3545
+ let t = U.getEnvironmentId(), e = `https://${Cs(t)}.aksiliasuite.com/api/v1/operatore`;
3546
3546
  t == "aks_svi" && (e = "https://mike.aksiliasuite.com/api/v1/operatore");
3547
3547
  const n = await fetch(e, {
3548
3548
  headers: {
@@ -3555,7 +3555,7 @@ const jd = async (t) => {
3555
3555
  const r = await n.text();
3556
3556
  return JSON.parse(r).result[0].nome;
3557
3557
  }, Od = async () => {
3558
- let t = U.getEnvironmentId(), e = `https://${Es(t)}.aksiliasuite.com/api/v1/check_permission/assessment`;
3558
+ let t = U.getEnvironmentId(), e = `https://${Cs(t)}.aksiliasuite.com/api/v1/check_permission/assessment`;
3559
3559
  t == "aks_svi" && (e = "https://mike.aksiliasuite.com/api/v1/check_permission/assessment");
3560
3560
  let n = await fetch(e, {
3561
3561
  method: "GET",
@@ -3665,7 +3665,7 @@ const jd = async (t) => {
3665
3665
  getGenDocs: Ud,
3666
3666
  getTranscriptions: Bd,
3667
3667
  getMeetingSingle: qd
3668
- }, Cs = (t) => {
3668
+ }, Is = (t) => {
3669
3669
  switch (t) {
3670
3670
  case "en":
3671
3671
  return "en-US";
@@ -3674,7 +3674,7 @@ const jd = async (t) => {
3674
3674
  }
3675
3675
  }, Hd = async (t, e) => {
3676
3676
  const n = new FormData();
3677
- n.append("file", t), n.append("lang", Cs(e));
3677
+ n.append("file", t), n.append("lang", Is(e));
3678
3678
  const r = await fetch(`${U.getUrl()}/audio/stt`, {
3679
3679
  method: "POST",
3680
3680
  headers: {
@@ -3694,13 +3694,13 @@ const jd = async (t) => {
3694
3694
  "ngrok-skip-browser-warning": "true",
3695
3695
  "Content-Type": "application/json"
3696
3696
  },
3697
- body: JSON.stringify({ text: t, lang: Cs(e) })
3697
+ body: JSON.stringify({ text: t, lang: Is(e) })
3698
3698
  });
3699
3699
  if (!n.ok)
3700
3700
  throw new Error("Failed to fetch audio");
3701
3701
  const r = await n.blob();
3702
3702
  return URL.createObjectURL(r);
3703
- }, Is = {
3703
+ }, As = {
3704
3704
  getText: Hd,
3705
3705
  getAudio: Yd
3706
3706
  };
@@ -3720,7 +3720,7 @@ const Jd = {
3720
3720
  }`
3721
3721
  };
3722
3722
  function Wd(t, e) {
3723
- ie(e, !1), ce(t, Jd);
3723
+ ie(e, !1), ue(t, Jd);
3724
3724
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "0.75s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
3725
3725
  var o = Gd();
3726
3726
  return O(() => {
@@ -3792,7 +3792,7 @@ const Xd = {
3792
3792
  }`
3793
3793
  };
3794
3794
  function Vd(t, e) {
3795
- ie(e, !1), ce(t, Xd);
3795
+ ie(e, !1), ue(t, Xd);
3796
3796
  let n = g(e, "size", 12, "60"), r = g(e, "unit", 12, "px"), s = g(e, "pause", 12, !1), i = g(e, "colorOuter", 12, "#FF3E00"), a = g(e, "colorCenter", 12, "#40B3FF"), o = g(e, "colorInner", 12, "#676778"), c = g(e, "durationMultiplier", 12, 1), l = g(e, "durationOuter", 28, () => `${c() * 2}s`), u = g(e, "durationInner", 28, () => `${c() * 1.5}s`), d = g(e, "durationCenter", 28, () => `${c() * 3}s`);
3797
3797
  var p = Zd();
3798
3798
  return O(() => {
@@ -3911,13 +3911,13 @@ const Kd = {
3911
3911
  }`
3912
3912
  };
3913
3913
  function ef(t, e) {
3914
- ie(e, !1), ce(t, Kd);
3914
+ ie(e, !1), ue(t, Kd);
3915
3915
  let n = g(e, "size", 12, "60"), r = g(e, "unit", 12, "px"), s = g(e, "pause", 12, !1), i = g(e, "ballTopLeft", 12, "#FF3E00"), a = g(e, "ballTopRight", 12, "#F8B334"), o = g(e, "ballBottomLeft", 12, "#40B3FF"), c = g(e, "ballBottomRight", 12, "#676778"), l = g(e, "duration", 12, "1.5s");
3916
3916
  var u = Qd(), d = z(u), p = z(d), h = z(p), w = z(h);
3917
3917
  k(h);
3918
- var m = P(h, 2), S = z(m);
3919
- k(m);
3920
- var x = P(m, 2), _ = z(x);
3918
+ var b = P(h, 2), S = z(b);
3919
+ k(b);
3920
+ var x = P(b, 2), _ = z(x);
3921
3921
  k(x);
3922
3922
  var y = P(x, 2), F = z(y);
3923
3923
  return k(y), k(p), k(d), k(u), O(() => {
@@ -3989,7 +3989,7 @@ oe(
3989
3989
  [],
3990
3990
  !0
3991
3991
  );
3992
- const Ge = /[a-zA-Z]/, As = (t, e) => {
3992
+ const Ge = /[a-zA-Z]/, Ls = (t, e) => {
3993
3993
  if (t[0] === "#" && (t = t.slice(1)), t.length === 3) {
3994
3994
  let r = "";
3995
3995
  t.split("").forEach((s) => {
@@ -4015,7 +4015,7 @@ const rf = {
4015
4015
  };
4016
4016
  function sf(t, e) {
4017
4017
  var u;
4018
- ie(e, !1), ce(t, rf);
4018
+ ie(e, !1), ue(t, rf);
4019
4019
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "2.1s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = s().match(Ge)) == null ? void 0 : u[0]) ?? "s", c = s().replace(Ge, "");
4020
4020
  ct();
4021
4021
  var l = nf();
@@ -4244,11 +4244,11 @@ const of = {
4244
4244
  }`
4245
4245
  };
4246
4246
  function lf(t, e) {
4247
- ie(e, !1), ce(t, of);
4247
+ ie(e, !1), ue(t, of);
4248
4248
  const n = Jt();
4249
4249
  let r = g(e, "size", 12, "40px"), s = g(e, "duration", 12, "3s"), i = g(e, "pause", 12, !1);
4250
4250
  Yn(() => En(r()), () => {
4251
- b(n, [
4251
+ m(n, [
4252
4252
  `width: ${r()}`,
4253
4253
  `height: ${r()}`
4254
4254
  ].join(";"));
@@ -4294,7 +4294,7 @@ const uf = {
4294
4294
  }`
4295
4295
  };
4296
4296
  function df(t, e) {
4297
- ie(e, !1), ce(t, uf);
4297
+ ie(e, !1), ue(t, uf);
4298
4298
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
4299
4299
  var o = cf(), c = z(o);
4300
4300
  return k(o), O(() => {
@@ -4407,7 +4407,7 @@ const pf = {
4407
4407
  }`
4408
4408
  };
4409
4409
  function hf(t, e) {
4410
- ie(e, !1), ce(t, pf);
4410
+ ie(e, !1), ue(t, pf);
4411
4411
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "4s"), i = g(e, "size", 12, "60"), a = g(e, "stroke", 28, () => +i() / 12 + r()), o = g(e, "pause", 12, !1);
4412
4412
  var c = ff(), l = z(c);
4413
4413
  return k(c), O(() => {
@@ -4483,7 +4483,7 @@ const mf = {
4483
4483
  };
4484
4484
  function bf(t, e) {
4485
4485
  var u;
4486
- ie(e, !1), ce(t, mf);
4486
+ ie(e, !1), ue(t, mf);
4487
4487
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.2s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = s().match(Ge)) == null ? void 0 : u[0]) ?? "s", c = s().replace(Ge, "");
4488
4488
  ct();
4489
4489
  var l = gf();
@@ -4577,12 +4577,12 @@ const _f = {
4577
4577
  }`
4578
4578
  };
4579
4579
  function kf(t, e) {
4580
- ie(e, !1), ce(t, _f);
4580
+ ie(e, !1), ue(t, _f);
4581
4581
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "2.1s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = Jt();
4582
4582
  Yn(
4583
4583
  () => En(n()),
4584
4584
  () => {
4585
- b(o, As(n(), 0.2));
4585
+ m(o, Ls(n(), 0.2));
4586
4586
  }
4587
4587
  ), Gn(), ct();
4588
4588
  var c = wf();
@@ -4658,7 +4658,7 @@ const $f = {
4658
4658
  };
4659
4659
  function Tf(t, e) {
4660
4660
  var u;
4661
- ie(e, !1), ce(t, $f);
4661
+ ie(e, !1), ue(t, $f);
4662
4662
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = s().match(Ge)) == null ? void 0 : u[0]) ?? "s", c = s().replace(Ge, "");
4663
4663
  ct();
4664
4664
  var l = zf();
@@ -4738,7 +4738,7 @@ const Cf = {
4738
4738
  }`
4739
4739
  };
4740
4740
  function If(t, e) {
4741
- ie(e, !1), ce(t, Cf);
4741
+ ie(e, !1), ue(t, Cf);
4742
4742
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "2s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
4743
4743
  ct();
4744
4744
  var o = Ef();
@@ -4830,7 +4830,7 @@ const jf = {
4830
4830
  };
4831
4831
  function Rf(t, e) {
4832
4832
  var u;
4833
- ie(e, !1), ce(t, jf);
4833
+ ie(e, !1), ue(t, jf);
4834
4834
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "0.6s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = s().match(Ge)) == null ? void 0 : u[0]) ?? "s", c = s().replace(Ge, "");
4835
4835
  ct();
4836
4836
  var l = Lf();
@@ -4910,7 +4910,7 @@ const Df = {
4910
4910
  }`
4911
4911
  };
4912
4912
  function Of(t, e) {
4913
- ie(e, !1), ce(t, Df);
4913
+ ie(e, !1), ue(t, Df);
4914
4914
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "3s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
4915
4915
  var o = Ff(), c = z(o);
4916
4916
  return k(o), O(() => {
@@ -4982,7 +4982,7 @@ const Mf = {
4982
4982
  }`
4983
4983
  };
4984
4984
  function Nf(t, e) {
4985
- ie(e, !1), ce(t, Mf);
4985
+ ie(e, !1), ue(t, Mf);
4986
4986
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.25s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
4987
4987
  var o = Pf(), c = z(o);
4988
4988
  return k(o), O(() => {
@@ -5050,9 +5050,9 @@ const qf = {
5050
5050
  }
5051
5051
  }`
5052
5052
  };
5053
- function Ls(t, e) {
5053
+ function js(t, e) {
5054
5054
  var u;
5055
- ie(e, !1), ce(t, qf);
5055
+ ie(e, !1), ue(t, qf);
5056
5056
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.5s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = s().match(Ge)) == null ? void 0 : u[0]) ?? "s", c = s().replace(Ge, "");
5057
5057
  ct();
5058
5058
  var l = Bf();
@@ -5095,7 +5095,7 @@ function Ls(t, e) {
5095
5095
  });
5096
5096
  }
5097
5097
  oe(
5098
- Ls,
5098
+ js,
5099
5099
  {
5100
5100
  color: {},
5101
5101
  unit: {},
@@ -5126,7 +5126,7 @@ const Gf = {
5126
5126
  };
5127
5127
  function Jf(t, e) {
5128
5128
  var u;
5129
- ie(e, !1), ce(t, Gf);
5129
+ ie(e, !1), ue(t, Gf);
5130
5130
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "2.5s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = s().match(Ge)) == null ? void 0 : u[0]) ?? "s", c = s().replace(Ge, "");
5131
5131
  ct();
5132
5132
  var l = Yf();
@@ -5205,7 +5205,7 @@ const Xf = {
5205
5205
  };
5206
5206
  function Vf(t, e) {
5207
5207
  var d;
5208
- ie(e, !1), ce(t, Xf);
5208
+ ie(e, !1), ue(t, Xf);
5209
5209
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "2s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((d = s().match(Ge)) == null ? void 0 : d[0]) ?? "s", c = s().replace(Ge, "");
5210
5210
  ct();
5211
5211
  var l = Zf(), u = z(l);
@@ -5287,7 +5287,7 @@ const Kf = {
5287
5287
  }`
5288
5288
  };
5289
5289
  function ep(t, e) {
5290
- ie(e, !1), ce(t, Kf);
5290
+ ie(e, !1), ue(t, Kf);
5291
5291
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "3s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
5292
5292
  var o = Qf();
5293
5293
  return O(() => {
@@ -5381,7 +5381,7 @@ const np = {
5381
5381
  }`
5382
5382
  };
5383
5383
  function rp(t, e) {
5384
- ie(e, !1), ce(t, np);
5384
+ ie(e, !1), ue(t, np);
5385
5385
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.7s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
5386
5386
  var o = tp(), c = z(o);
5387
5387
  return k(o), O(() => {
@@ -5445,7 +5445,7 @@ const ip = {
5445
5445
  }`
5446
5446
  };
5447
5447
  function ap(t, e) {
5448
- ie(e, !1), ce(t, ip);
5448
+ ie(e, !1), ue(t, ip);
5449
5449
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "0.6s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = +i() / 7, c = +i() / 2 - o / 2;
5450
5450
  var l = sp(), u = z(l), d = P(u, 2);
5451
5451
  return k(l), O(() => {
@@ -5530,12 +5530,12 @@ const lp = {
5530
5530
  }`
5531
5531
  };
5532
5532
  function cp(t, e) {
5533
- ie(e, !1), ce(t, lp);
5533
+ ie(e, !1), ue(t, lp);
5534
5534
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.3s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = Jt();
5535
5535
  Yn(
5536
5536
  () => En(n()),
5537
5537
  () => {
5538
- b(o, As(n(), 0.6));
5538
+ m(o, Ls(n(), 0.6));
5539
5539
  }
5540
5540
  ), Gn(), ct();
5541
5541
  var c = op(), l = z(c);
@@ -5605,7 +5605,7 @@ const dp = {
5605
5605
  }`
5606
5606
  };
5607
5607
  function fp(t, e) {
5608
- ie(e, !1), ce(t, dp);
5608
+ ie(e, !1), ue(t, dp);
5609
5609
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.5s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
5610
5610
  var o = up();
5611
5611
  return O(() => {
@@ -5672,7 +5672,7 @@ const hp = {
5672
5672
  }`
5673
5673
  };
5674
5674
  function vp(t, e) {
5675
- ie(e, !1), ce(t, hp);
5675
+ ie(e, !1), ue(t, hp);
5676
5676
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "8s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1);
5677
5677
  var o = pp();
5678
5678
  return O(() => {
@@ -5743,7 +5743,7 @@ const bp = {
5743
5743
  };
5744
5744
  function xp(t, e) {
5745
5745
  var u;
5746
- ie(e, !1), ce(t, bp);
5746
+ ie(e, !1), ue(t, bp);
5747
5747
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1.25s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((u = s().match(Ge)) == null ? void 0 : u[0]) ?? "s", c = s().replace(Ge, "");
5748
5748
  ct();
5749
5749
  var l = mp();
@@ -5822,12 +5822,12 @@ const kp = {
5822
5822
  };
5823
5823
  function yp(t, e) {
5824
5824
  var d;
5825
- ie(e, !1), ce(t, kp);
5825
+ ie(e, !1), ue(t, kp);
5826
5826
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "1s"), i = g(e, "size", 12, "60"), a = g(e, "pause", 12, !1), o = ((d = s().match(Ge)) == null ? void 0 : d[0]) ?? "s", c = s().replace(Ge, ""), l = Jt();
5827
5827
  Yn(
5828
5828
  () => En(n()),
5829
5829
  () => {
5830
- b(l, As(n(), 1));
5830
+ m(l, Ls(n(), 1));
5831
5831
  }
5832
5832
  ), Gn(), ct();
5833
5833
  var u = _p();
@@ -5897,7 +5897,7 @@ const $p = {
5897
5897
  }`
5898
5898
  };
5899
5899
  function Tp(t, e) {
5900
- ie(e, !1), ce(t, $p);
5900
+ ie(e, !1), ue(t, $p);
5901
5901
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "0.4s"), i = g(e, "size", 12, "15"), a = g(e, "pause", 12, !1);
5902
5902
  var o = zp();
5903
5903
  return O(() => {
@@ -5963,7 +5963,7 @@ const Ep = {
5963
5963
  }`
5964
5964
  };
5965
5965
  function Cp(t, e) {
5966
- ie(e, !1), ce(t, Ep);
5966
+ ie(e, !1), ue(t, Ep);
5967
5967
  let n = g(e, "color", 12, "#FF3E00"), r = g(e, "unit", 12, "px"), s = g(e, "duration", 12, "0.4s"), i = g(e, "size", 12, "15"), a = g(e, "pause", 12, !1);
5968
5968
  var o = Sp();
5969
5969
  return O(() => {
@@ -6052,10 +6052,10 @@ const Aa = (t) => {
6052
6052
  pptx: { icon: "fa-solid fa-file-powerpoint", color: "#d14b2b" },
6053
6053
  akd: { icon: "fa-solid fa-passport", color: "#0DCAF0" },
6054
6054
  tldv: { icon: "fa-solid fa-video", color: "#1d1dff" }
6055
- }, js = (t) => {
6055
+ }, Rs = (t) => {
6056
6056
  const e = Aa(t);
6057
6057
  return Ap[e || ""] || { icon: "fa-solid fa-file", color: "#6c757d" };
6058
- }, Lp = (t) => js(t).icon;
6058
+ }, Lp = (t) => Rs(t).icon;
6059
6059
  function jp(t) {
6060
6060
  return {
6061
6061
  normative: "File Forge",
@@ -6079,7 +6079,7 @@ const tr = (t, e) => `${t}-${e}`, La = (t) => t.isCommon ? t.filename.split(".")
6079
6079
  color: s.name === "Documento Comune" ? "#295DCF" : s.color
6080
6080
  };
6081
6081
  }
6082
- return js(e);
6082
+ return Rs(e);
6083
6083
  }, Fp = (t, e) => t >= 50 || e === "suite", Dp = (t, e) => {
6084
6084
  const n = t.isCommon || !1, r = t.commonType || "";
6085
6085
  return n && e < 50 && r !== "suite";
@@ -6112,7 +6112,7 @@ const tr = (t, e) => `${t}-${e}`, La = (t) => t.isCommon ? t.filename.split(".")
6112
6112
  const n = t;
6113
6113
  if (n.isCommon)
6114
6114
  return { class: "fa-solid fa-file", color: "#295DCF" };
6115
- const r = js(n.title);
6115
+ const r = Rs(n.title);
6116
6116
  return {
6117
6117
  class: r.icon,
6118
6118
  color: r.color
@@ -6136,17 +6136,17 @@ const tr = (t, e) => `${t}-${e}`, La = (t) => t.isCommon ? t.filename.split(".")
6136
6136
  }
6137
6137
  return null;
6138
6138
  }, qp = (t, e, n, r) => {
6139
- e(!1), b(n, ""), r();
6139
+ e(!1), m(n, ""), r();
6140
6140
  }, Hp = (t, e, n, r, s, i, a, o) => {
6141
6141
  const c = t.target;
6142
- b(e, C(c.value));
6142
+ m(e, C(c.value));
6143
6143
  const u = {
6144
- normative: () => n(f(e), () => ft.getForge(f(e), r()), (d) => b(s, C(d)), "Errore nella ricerca forge:"),
6145
- suite: () => n(f(e), () => ft.getForge(f(e), r()), (d) => b(s, C(d)), "Errore nella ricerca forge:"),
6146
- gendoc: () => n(f(e), () => ft.getGenDocs(f(e)), (d) => b(i, C(d)), "Errore nella ricerca gendocs:"),
6147
- transcriptions: () => n(f(e), () => ft.getTranscriptions(f(e)), (d) => b(a, C(d)), "Errore nella ricerca trascrizioni:")
6144
+ normative: () => n(f(e), () => ft.getForge(f(e), r()), (d) => m(s, C(d)), "Errore nella ricerca forge:"),
6145
+ suite: () => n(f(e), () => ft.getForge(f(e), r()), (d) => m(s, C(d)), "Errore nella ricerca forge:"),
6146
+ gendoc: () => n(f(e), () => ft.getGenDocs(f(e)), (d) => m(i, C(d)), "Errore nella ricerca gendocs:"),
6147
+ transcriptions: () => n(f(e), () => ft.getTranscriptions(f(e)), (d) => m(a, C(d)), "Errore nella ricerca trascrizioni:")
6148
6148
  }[r()];
6149
- u ? u() : n(f(e), () => ft.getDocuments(f(e)), (d) => b(o, C(d)), "Errore nella ricerca documenti:");
6149
+ u ? u() : n(f(e), () => ft.getDocuments(f(e)), (d) => m(o, C(d)), "Errore nella ricerca documenti:");
6150
6150
  };
6151
6151
  var Yp = /* @__PURE__ */ j('<div class="text-center p-3"><!> <p class="mt-2 text-muted"> </p></div>'), Gp = /* @__PURE__ */ j('<div class="text-center p-3"><i class="fa-solid fa-search text-muted fa-2x"></i> <p class="mt-2 text-muted"> </p></div>'), Jp = /* @__PURE__ */ j('<div class="text-center p-3"><i class="fa-solid fa-file-circle-exclamation text-muted fa-2x"></i> <p class="mt-2 text-muted"><!></p></div>'), Wp = (t, e, n) => e(f(n)), Zp = /* @__PURE__ */ j('<div class="document-path svelte-zrlk2s"> </div>'), Xp = /* @__PURE__ */ j('<div class="selected-indicator svelte-zrlk2s"><i class="fa-solid fa-circle-check"></i></div>'), Vp = /* @__PURE__ */ j('<button class="document-item svelte-zrlk2s"><div class="document-icon svelte-zrlk2s"><i></i></div> <div class="document-info"><div class="document-title svelte-zrlk2s"> </div> <!></div> <!></button>'), Qp = /* @__PURE__ */ j('<div class="documents-list svelte-zrlk2s"></div>'), Kp = /* @__PURE__ */ j('<div class="modal-overlay svelte-zrlk2s"><div class="document-search-modal svelte-zrlk2s"><div class="modal-header svelte-zrlk2s"><h5 class="svelte-zrlk2s"> </h5> <button class="btn btn-sm btn-danger aks-btn-rounded" aria-label="Chiudi modale"><i class="fa-solid fa-xmark"></i></button></div> <div class="modal-body svelte-zrlk2s"><div class="search-container svelte-zrlk2s"><div class="input-group"><span class="input-group-text svelte-zrlk2s"><i class="fa-solid fa-search"></i></span> <input type="text" class="form-control" style="color: black;"></div></div> <div class="documents-container svelte-zrlk2s"><!></div></div></div></div>');
6152
6152
  const eh = {
@@ -6155,12 +6155,12 @@ const eh = {
6155
6155
  /* Stili per la modale di ricerca documenti */.modal-overlay.svelte-zrlk2s {position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.5);display:flex;justify-content:center;align-items:center;z-index:1050;}.document-search-modal.svelte-zrlk2s {background:white;border-radius:12px;box-shadow:0 8px 32px rgba(0, 0, 0, 0.2);width:90%;max-width:500px;max-height:80vh;display:flex;flex-direction:column;}.modal-header.svelte-zrlk2s {display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid #e9ecef;}.modal-header.svelte-zrlk2s h5:where(.svelte-zrlk2s) {margin:0;font-weight:600;color:#295dcf;}.modal-body.svelte-zrlk2s {padding:20px;flex:1;overflow:hidden;display:flex;flex-direction:column;}.search-container.svelte-zrlk2s {margin-bottom:20px;}.documents-container.svelte-zrlk2s {flex:1;overflow:hidden;display:flex;flex-direction:column;}.documents-list.svelte-zrlk2s {overflow-y:auto;max-height:300px;border:1px solid #e9ecef;border-radius:8px;}.document-item.svelte-zrlk2s {display:flex;align-items:flex-start;width:100%;padding:12px 15px;border:none;background:white;color:#333;cursor:pointer;transition:all 0.2s;border-bottom:1px solid #f0f0f0;text-align:left;}.document-item.svelte-zrlk2s:last-child {border-bottom:none;}.document-item.svelte-zrlk2s:hover {background:#f8f9fa;color:#295dcf;}.document-icon.svelte-zrlk2s {margin-right:12px;color:#6c757d;width:20px;flex-shrink:0;margin-top:2px;}.document-title.svelte-zrlk2s {font-weight:500;margin-bottom:4px;word-wrap:break-word;}.document-path.svelte-zrlk2s {font-size:0.85em;color:#6c757d;word-wrap:break-word;}.input-group-text.svelte-zrlk2s {background:#f8f9fa;border-color:#e9ecef;color:#6c757d;}.document-item.selected.svelte-zrlk2s {background:#e7f3ff;border-left:3px solid #295dcf;}.document-item.selected.svelte-zrlk2s:hover {background:#d0e8ff;}.selected-indicator.svelte-zrlk2s {margin-left:auto;color:#28a745;font-size:1.2em;display:flex;align-items:center;}`
6156
6156
  };
6157
6157
  function Fa(t, e) {
6158
- ie(e, !0), ce(t, eh);
6158
+ ie(e, !0), ue(t, eh);
6159
6159
  let n = g(e, "attachments", 15), r = g(e, "showDocumentSearchModal", 15), s = g(e, "modeSelected", 15);
6160
6160
  const i = { default: 3, gendoc: 1, transcriptions: 1 }, a = 3;
6161
6161
  let o = /* @__PURE__ */ qe(() => Wn(s())), c = G(C([])), l = G(C([])), u = G(C([])), d = G(C([])), p = G(!1), h = G(""), w = /* @__PURE__ */ qe(() => s() === "normative" || s() === "suite" ? f(l) : s() === "gendoc" ? f(u) : s() === "transcriptions" ? f(d) : f(c));
6162
- const m = () => {
6163
- b(c, C([])), b(l, C([])), b(u, C([])), b(d, C([]));
6162
+ const b = () => {
6163
+ m(c, C([])), m(l, C([])), m(u, C([])), m(d, C([]));
6164
6164
  }, S = (R) => n()[R._id] ? (delete n()[R._id], !0) : !1, x = (R) => Object.keys(n()).length >= R ? (alert(/* @__PURE__ */ id({ count: R })), !1) : !0, _ = (R) => {
6165
6165
  if (R instanceof Kt)
6166
6166
  return {
@@ -6201,14 +6201,14 @@ function Fa(t, e) {
6201
6201
  Ee([]);
6202
6202
  return;
6203
6203
  }
6204
- b(p, !0);
6204
+ m(p, !0);
6205
6205
  try {
6206
6206
  const Pe = await Q();
6207
6207
  Ee(Pe);
6208
6208
  } catch (Pe) {
6209
6209
  console.error(Ce, Pe), Ee([]);
6210
6210
  } finally {
6211
- b(p, !1);
6211
+ m(p, !1);
6212
6212
  }
6213
6213
  };
6214
6214
  var $ = Kp(), A = z($), L = z(A), M = z(L), H = z(M);
@@ -6218,10 +6218,10 @@ function Fa(t, e) {
6218
6218
  qp,
6219
6219
  r,
6220
6220
  h,
6221
- m
6221
+ b
6222
6222
  ], k(L);
6223
- var Oe = P(L, 2), je = z(Oe), ge = z(je), ue = P(z(ge), 2);
6224
- Sl(ue), ue.__input = [
6223
+ var Oe = P(L, 2), je = z(Oe), ge = z(je), ce = P(z(ge), 2);
6224
+ Sl(ce), ce.__input = [
6225
6225
  Hp,
6226
6226
  h,
6227
6227
  F,
@@ -6235,7 +6235,7 @@ function Fa(t, e) {
6235
6235
  {
6236
6236
  var ut = (R) => {
6237
6237
  var Q = Yp(), Ee = z(Q);
6238
- Ls(Ee, { size: "30", color: "#295dcf" });
6238
+ js(Ee, { size: "30", color: "#295dcf" });
6239
6239
  var Ce = P(Ee, 2), Pe = z(Ce, !0);
6240
6240
  k(Ce), k(Q), O((Ie) => $e(Pe, Ie), [() => /* @__PURE__ */ Zu()]), T(R, Q);
6241
6241
  }, gt = (R) => {
@@ -6267,7 +6267,7 @@ function Fa(t, e) {
6267
6267
  O((Te) => $e(ve, Te), [() => /* @__PURE__ */ od()]), T(fe, ve);
6268
6268
  }, be = (fe) => {
6269
6269
  var ve = Qn();
6270
- O((Te) => $e(ve, Te), [() => /* @__PURE__ */ Ea()]), T(fe, ve);
6270
+ O((Te) => $e(ve, Te), [() => /* @__PURE__ */ os()]), T(fe, ve);
6271
6271
  };
6272
6272
  V(
6273
6273
  K,
@@ -6357,12 +6357,12 @@ function Fa(t, e) {
6357
6357
  return k(Ze), k(Oe), k(A), k($), O(
6358
6358
  (R, Q, Ee) => {
6359
6359
  $e(H, `${R ?? ""}
6360
- ${Q ?? ""}`), N(ue, "placeholder", `${R ?? ""} ${Ee ?? ""} (min 3 caratteri)...`), El(ue, f(h));
6360
+ ${Q ?? ""}`), N(ce, "placeholder", `${R ?? ""} ${Ee ?? ""} (min 3 caratteri)...`), El(ce, f(h));
6361
6361
  },
6362
6362
  [
6363
6363
  () => /* @__PURE__ */ Wu(),
6364
- () => s() == "normative" || s() == "suite" ? f(o).name : s() == "transcriptions" ? "Meeting" : /* @__PURE__ */ di(),
6365
- () => s() == "normative" || s() == "suite" ? f(o).name : s() == "transcriptions" ? "Meeting" : /* @__PURE__ */ di()
6364
+ () => s() == "normative" || s() == "suite" ? f(o).name : s() == "transcriptions" ? "Meeting" : /* @__PURE__ */ fi(),
6365
+ () => s() == "normative" || s() == "suite" ? f(o).name : s() == "transcriptions" ? "Meeting" : /* @__PURE__ */ fi()
6366
6366
  ]
6367
6367
  ), T(t, $), ae({
6368
6368
  get attachments() {
@@ -6401,7 +6401,7 @@ const th = (t) => t.toLowerCase().includes("it") ? "it" : t.toLowerCase().includ
6401
6401
  function sh(t) {
6402
6402
  return Object.keys(t).map((e) => t[e].ext_id);
6403
6403
  }
6404
- function hi(t) {
6404
+ function vi(t) {
6405
6405
  switch (t) {
6406
6406
  case 1:
6407
6407
  return "Knowledge Base Agent";
@@ -6466,13 +6466,13 @@ const ih = async (t) => {
6466
6466
  const d = U.getUrl().replace(/^http/, "ws"), p = `chat/${t}/message?mode=${l}`, h = p.includes("?") ? "&" : "?", w = `${d}/${p}${h}akstoken=${U.getToken()}&envid=${U.getEnvironmentId()}`;
6467
6467
  o = new WebSocket(w), a && a.addEventListener("abort", () => {
6468
6468
  o && o.readyState === WebSocket.OPEN && (o.close(), c = !0);
6469
- }), await new Promise((m, S) => {
6469
+ }), await new Promise((b, S) => {
6470
6470
  if (!o) return S(new Error("WebSocket not initialized"));
6471
6471
  o.onopen = () => {
6472
6472
  o && o.send(JSON.stringify({
6473
6473
  content: e,
6474
6474
  attachments: r,
6475
- lang: Cs(i)
6475
+ lang: Is(i)
6476
6476
  }));
6477
6477
  }, o.onmessage = (x) => {
6478
6478
  let _ = JSON.parse(x.data);
@@ -6480,7 +6480,7 @@ const ih = async (t) => {
6480
6480
  }, o.onerror = (x) => {
6481
6481
  console.error("WebSocket error:", x), S(new Error("WebSocket connection error"));
6482
6482
  }, o.onclose = (x) => {
6483
- x.wasClean ? m() : S(new Error(`WebSocket closed unexpectedly: ${x.code} ${x.reason}`));
6483
+ x.wasClean ? b() : S(new Error(`WebSocket closed unexpectedly: ${x.code} ${x.reason}`));
6484
6484
  };
6485
6485
  });
6486
6486
  } catch (l) {
@@ -6582,9 +6582,9 @@ const ih = async (t) => {
6582
6582
  const r = t.target;
6583
6583
  e(r.value), n({});
6584
6584
  }, hh = (t, e) => {
6585
- b(e, !f(e));
6585
+ m(e, !f(e));
6586
6586
  }, vh = (t, e, n) => {
6587
- b(e, !1), b(n, !0);
6587
+ m(e, !1), m(n, !0);
6588
6588
  };
6589
6589
  var gh = /* @__PURE__ */ j('<div class="dropdown-content svelte-dx030c"><button><i class="fa-solid fa-file-circle-plus svelte-dx030c"></i> <span> </span></button> <button><i class="fa-solid fa-upload svelte-dx030c"></i> <span> </span></button></div>'), mh = /* @__PURE__ */ j("<option>Generatore di Normative</option>"), bh = /* @__PURE__ */ j('<div class="attachment-title noopen-file-button svelte-dx030c"> </div>'), xh = (t, e, n, r, s) => e(n(), r(), s()), wh = /* @__PURE__ */ j('<button class="attachment-title open-file-button svelte-dx030c"> </button>'), _h = (t, e, n, r, s) => e(n(), r(), s()), kh = /* @__PURE__ */ j('<div><i></i> <!> <button aria-label="Remove attachment"><i class="fa-solid fa-xmark svelte-dx030c"></i></button></div>'), yh = /* @__PURE__ */ j('<button class="btn send-button stop-recording-btn svelte-dx030c" aria-label="Stop recording"><i class="fa-solid fa-stop"></i></button>'), zh = /* @__PURE__ */ j('<button class="btn send-button aks-btn-answer svelte-dx030c" aria-label="Synthesizing" disabled><!></button>'), $h = /* @__PURE__ */ j('<button class="btn send-button aks-btn-answer svelte-dx030c" aria-label="Start recording"><i class="fa-solid fa-microphone"></i></button>'), Th = /* @__PURE__ */ j('<button class="btn send-button stop-stream-btn svelte-dx030c" aria-label="Stop message"><i class="fa-solid fa-stop"></i></button>'), Sh = /* @__PURE__ */ j('<button class="btn send-button aks-btn-answer send-message-btn svelte-dx030c" aria-label="Send message"><i class="fa-solid fa-paper-plane"></i></button>'), Eh = /* @__PURE__ */ j('<div class="input svelte-dx030c"><div class="top svelte-dx030c"><textarea style="color: black !important;" class="form-control form-control-sm svelte-dx030c" rows="2"></textarea></div> <div class="bottom svelte-dx030c"><div class="controls-row svelte-dx030c"><div class="plus-button-container svelte-dx030c"><button><i></i></button> <!></div> <select class="mode-select svelte-dx030c" aria-label="Select mode"><option>Auto</option><option>Manuale Suite</option><option> </option><option>Knowledge Base</option><option>GenDoc</option><option>Trascrizioni</option><!></select> <div class="attachments-container svelte-dx030c"></div> <div class="send-buttons svelte-dx030c"><!> <!></div></div></div></div> <!>', 1);
6590
6590
  const Ch = {
@@ -6595,14 +6595,14 @@ const Ch = {
6595
6595
  /* Stili per il dropdown */.dropdown-content.svelte-dx030c {position:absolute;bottom:100%;left:0;margin-bottom:5px;background:white;border:1px solid #e9ecef;border-radius:8px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);min-width:180px;z-index:1000;}.dropdown-option.svelte-dx030c {display:flex;align-items:center;width:100%;padding:10px 15px;border:none;background:white;color:#333;cursor:pointer;transition:all 0.2s;border-radius:0;}.dropdown-option.svelte-dx030c:first-child {border-top-left-radius:8px;border-top-right-radius:8px;}.dropdown-option.svelte-dx030c:last-child {border-bottom-left-radius:8px;border-bottom-right-radius:8px;}.dropdown-option.svelte-dx030c:hover {background:#f8f9fa;color:#295dcf;}.dropdown-option.svelte-dx030c i:where(.svelte-dx030c) {margin-right:10px;width:16px;text-align:center;}.option-disabled.svelte-dx030c {color:#ccc;cursor:default;}.option-disabled.svelte-dx030c:hover {background:white;color:#ccc;}`
6596
6596
  };
6597
6597
  function Oa(t, e) {
6598
- ie(e, !0), ce(t, Ch);
6599
- let n = g(e, "sendMessage", 7), r = g(e, "stopMessage", 7), s = g(e, "loading", 15), i = g(e, "languageSelected", 15), a = g(e, "modeSelected", 15), o = g(e, "attachments", 15), c = g(e, "userLevel", 15), l = g(e, "uploadFiles", 7), u = g(e, "actChat", 15), d = G(""), p, h, w = G(C([])), m = G(!1), S = G(!1), x = G(!1), _ = G(!1), y, F = /* @__PURE__ */ qe(() => Wn(a()));
6598
+ ie(e, !0), ue(t, Ch);
6599
+ let n = g(e, "sendMessage", 7), r = g(e, "stopMessage", 7), s = g(e, "loading", 15), i = g(e, "languageSelected", 15), a = g(e, "modeSelected", 15), o = g(e, "attachments", 15), c = g(e, "userLevel", 15), l = g(e, "uploadFiles", 7), u = g(e, "actChat", 15), d = G(""), p, h, w = G(C([])), b = G(!1), S = G(!1), x = G(!1), _ = G(!1), y, F = /* @__PURE__ */ qe(() => Wn(a()));
6600
6600
  const $ = 20, A = 5, L = 0.5;
6601
6601
  function M(E, D) {
6602
6602
  return E ? a() === "normative" || a() === "suite" ? f(F).name : "" : D;
6603
6603
  }
6604
6604
  function H() {
6605
- b(d, ""), o({}), p && (p.style.height = "auto");
6605
+ m(d, ""), o({}), p && (p.style.height = "auto");
6606
6606
  }
6607
6607
  function le() {
6608
6608
  h != null && h.stream && h.stream.getTracks().forEach((E) => E.stop());
@@ -6623,29 +6623,29 @@ function Oa(t, e) {
6623
6623
  if (s() || !f(d).trim()) return;
6624
6624
  const E = sh(o());
6625
6625
  n()(f(d), a(), E), H();
6626
- }, ue = async () => {
6626
+ }, ce = async () => {
6627
6627
  if (!s())
6628
6628
  try {
6629
6629
  const E = await navigator.mediaDevices.getUserMedia({ audio: !0 });
6630
6630
  h = new MediaRecorder(E, { mimeType: "audio/webm" }), h.ondataavailable = (D) => {
6631
6631
  D.data.size > 0 && f(w).push(D.data);
6632
6632
  }, h.onstop = async () => {
6633
- b(S, !0);
6633
+ m(S, !0);
6634
6634
  const D = new Blob(f(w), { type: "audio/webm" });
6635
6635
  try {
6636
- const Z = await Is.getText(D, i());
6637
- Z && (b(d, C(Z)), ge());
6636
+ const Z = await As.getText(D, i());
6637
+ Z && (m(d, C(Z)), ge());
6638
6638
  } finally {
6639
- b(S, !1);
6639
+ m(S, !1);
6640
6640
  }
6641
- }, b(m, !0), h.start();
6641
+ }, m(b, !0), h.start();
6642
6642
  } catch (E) {
6643
6643
  console.error("Failed to start recording:", E);
6644
6644
  }
6645
6645
  }, Ze = () => {
6646
- h && (h.stop(), le(), b(m, !1), b(w, C([])));
6646
+ h && (h.stop(), le(), m(b, !1), m(w, C([])));
6647
6647
  }, Xe = () => {
6648
- b(x, !1);
6648
+ m(x, !1);
6649
6649
  const E = document.createElement("input");
6650
6650
  E.type = "file", E.multiple = !1, E.onchange = async (D) => {
6651
6651
  var te;
@@ -6753,8 +6753,8 @@ function Oa(t, e) {
6753
6753
  var Or = (St) => {
6754
6754
  var zt = bh(), Cn = z(zt, !0);
6755
6755
  k(zt), O(
6756
- (Gs) => {
6757
- N(zt, "title", Gs), $e(Cn, Gs);
6756
+ (Js) => {
6757
+ N(zt, "title", Js), $e(Cn, Js);
6758
6758
  },
6759
6759
  [() => te().split(".")[0]]
6760
6760
  ), T(St, zt);
@@ -6802,10 +6802,10 @@ function Oa(t, e) {
6802
6802
  {
6803
6803
  var te = (De) => {
6804
6804
  var He = zh(), We = z(He);
6805
- Ls(We, { size: "20", color: "white" }), k(He), T(De, He);
6805
+ js(We, { size: "20", color: "white" }), k(He), T(De, He);
6806
6806
  }, Fe = (De) => {
6807
6807
  var He = $h();
6808
- He.__click = ue, O((We) => N(He, "title", We), [() => /* @__PURE__ */ Nu()]), T(De, He);
6808
+ He.__click = ce, O((We) => N(He, "title", We), [() => /* @__PURE__ */ Nu()]), T(De, He);
6809
6809
  };
6810
6810
  V(
6811
6811
  Z,
@@ -6818,7 +6818,7 @@ function Oa(t, e) {
6818
6818
  T(E, D);
6819
6819
  };
6820
6820
  V(be, (E) => {
6821
- f(m) ? E(fe) : E(ve, !1);
6821
+ f(b) ? E(fe) : E(ve, !1);
6822
6822
  });
6823
6823
  }
6824
6824
  var Te = P(be, 2);
@@ -6852,7 +6852,7 @@ function Oa(t, e) {
6852
6852
  return f(_);
6853
6853
  },
6854
6854
  set showDocumentSearchModal(D) {
6855
- b(_, C(D));
6855
+ m(_, C(D));
6856
6856
  },
6857
6857
  get modeSelected() {
6858
6858
  return a();
@@ -6873,11 +6873,11 @@ function Oa(t, e) {
6873
6873
  [
6874
6874
  () => /* @__PURE__ */ ju(),
6875
6875
  () => /* @__PURE__ */ Ru(),
6876
- () => /* @__PURE__ */ $a()
6876
+ () => /* @__PURE__ */ Ta()
6877
6877
  ]
6878
6878
  ), Wt("keypress", Ie, (E) => {
6879
6879
  E.key === "Enter" && !E.shiftKey && (E.preventDefault(), ge());
6880
- }), Fl(Ie, () => f(d), (E) => b(d, E)), ya(he, a), Wt("wheel", K, je), bt(3, Ce, () => Bt, () => ({ duration: 300, delay: 200 })), T(t, Ee), ae({
6880
+ }), Fl(Ie, () => f(d), (E) => m(d, E)), za(he, a), Wt("wheel", K, je), bt(3, Ce, () => Bt, () => ({ duration: 300, delay: 200 })), T(t, Ee), ae({
6881
6881
  get sendMessage() {
6882
6882
  return n();
6883
6883
  },
@@ -7004,7 +7004,7 @@ const Pa = /^[a-z0-9]+(-[a-z0-9]+)*$/, jr = (t, e, n, r = "") => {
7004
7004
  }), Rr = Object.freeze({
7005
7005
  ...Ma,
7006
7006
  ...br
7007
- }), os = Object.freeze({
7007
+ }), ls = Object.freeze({
7008
7008
  ...Rr,
7009
7009
  body: "",
7010
7010
  hidden: !1
@@ -7015,9 +7015,9 @@ function Ih(t, e) {
7015
7015
  const r = ((t.rotate || 0) + (e.rotate || 0)) % 4;
7016
7016
  return r && (n.rotate = r), n;
7017
7017
  }
7018
- function vi(t, e) {
7018
+ function gi(t, e) {
7019
7019
  const n = Ih(t, e);
7020
- for (const r in os)
7020
+ for (const r in ls)
7021
7021
  r in br ? r in t && !(r in n) && (n[r] = br[r]) : r in e ? n[r] = e[r] : r in t && (n[r] = t[r]);
7022
7022
  return n;
7023
7023
  }
@@ -7039,12 +7039,12 @@ function Lh(t, e, n) {
7039
7039
  const r = t.icons, s = t.aliases || /* @__PURE__ */ Object.create(null);
7040
7040
  let i = {};
7041
7041
  function a(o) {
7042
- i = vi(
7042
+ i = gi(
7043
7043
  r[o] || s[o],
7044
7044
  i
7045
7045
  );
7046
7046
  }
7047
- return a(e), n.forEach(a), vi(t, i);
7047
+ return a(e), n.forEach(a), gi(t, i);
7048
7048
  }
7049
7049
  function Na(t, e) {
7050
7050
  const n = [];
@@ -7087,7 +7087,7 @@ function Ua(t) {
7087
7087
  typeof i.body != "string" || // Check other props
7088
7088
  !Gr(
7089
7089
  i,
7090
- os
7090
+ ls
7091
7091
  )
7092
7092
  )
7093
7093
  return null;
@@ -7101,14 +7101,14 @@ function Ua(t) {
7101
7101
  typeof a != "string" || !n[a] && !r[a] || // Check other props
7102
7102
  !Gr(
7103
7103
  i,
7104
- os
7104
+ ls
7105
7105
  )
7106
7106
  )
7107
7107
  return null;
7108
7108
  }
7109
7109
  return e;
7110
7110
  }
7111
- const gi = /* @__PURE__ */ Object.create(null);
7111
+ const mi = /* @__PURE__ */ Object.create(null);
7112
7112
  function Rh(t, e) {
7113
7113
  return {
7114
7114
  provider: t,
@@ -7118,7 +7118,7 @@ function Rh(t, e) {
7118
7118
  };
7119
7119
  }
7120
7120
  function _n(t, e) {
7121
- const n = gi[t] || (gi[t] = /* @__PURE__ */ Object.create(null));
7121
+ const n = mi[t] || (mi[t] = /* @__PURE__ */ Object.create(null));
7122
7122
  return n[e] || (n[e] = Rh(t, e));
7123
7123
  }
7124
7124
  function Ba(t, e) {
@@ -7180,7 +7180,7 @@ const Ha = Object.freeze({
7180
7180
  // Transformations
7181
7181
  ...br
7182
7182
  }), Mh = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Nh = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
7183
- function mi(t, e, n) {
7183
+ function bi(t, e, n) {
7184
7184
  if (e === 1)
7185
7185
  return t;
7186
7186
  if (n = n || 100, typeof t == "number")
@@ -7242,9 +7242,9 @@ function Yh(t, e) {
7242
7242
  height: n.height
7243
7243
  };
7244
7244
  let i = n.body;
7245
- [n, r].forEach((m) => {
7246
- const S = [], x = m.hFlip, _ = m.vFlip;
7247
- let y = m.rotate;
7245
+ [n, r].forEach((b) => {
7246
+ const S = [], x = b.hFlip, _ = b.vFlip;
7247
+ let y = b.rotate;
7248
7248
  x ? _ ? y += 2 : (S.push(
7249
7249
  "translate(" + (s.width + s.left).toString() + " " + (0 - s.top).toString() + ")"
7250
7250
  ), S.push("scale(-1 1)"), s.top = s.left = 0) : _ && (S.push(
@@ -7276,9 +7276,9 @@ function Yh(t, e) {
7276
7276
  });
7277
7277
  const a = r.width, o = r.height, c = s.width, l = s.height;
7278
7278
  let u, d;
7279
- a === null ? (d = o === null ? "1em" : o === "auto" ? l : o, u = mi(d, c / l)) : (u = a === "auto" ? c : a, d = o === null ? mi(u, l / c) : o === "auto" ? l : o);
7280
- const p = {}, h = (m, S) => {
7281
- Hh(S) || (p[m] = S.toString());
7279
+ a === null ? (d = o === null ? "1em" : o === "auto" ? l : o, u = bi(d, c / l)) : (u = a === "auto" ? c : a, d = o === null ? bi(u, l / c) : o === "auto" ? l : o);
7280
+ const p = {}, h = (b, S) => {
7281
+ Hh(S) || (p[b] = S.toString());
7282
7282
  };
7283
7283
  h("width", u), h("height", d);
7284
7284
  const w = [s.left, s.top, c, l];
@@ -7308,14 +7308,14 @@ function Zh(t, e = Jh) {
7308
7308
  );
7309
7309
  }), t = t.replace(new RegExp(s, "g"), ""), t;
7310
7310
  }
7311
- const ls = /* @__PURE__ */ Object.create(null);
7311
+ const cs = /* @__PURE__ */ Object.create(null);
7312
7312
  function Xh(t, e) {
7313
- ls[t] = e;
7313
+ cs[t] = e;
7314
7314
  }
7315
- function cs(t) {
7316
- return ls[t] || ls[""];
7315
+ function us(t) {
7316
+ return cs[t] || cs[""];
7317
7317
  }
7318
- function Rs(t) {
7318
+ function Fs(t) {
7319
7319
  let e;
7320
7320
  if (typeof t.resources == "string")
7321
7321
  e = [t.resources];
@@ -7340,21 +7340,21 @@ function Rs(t) {
7340
7340
  dataAfterTimeout: t.dataAfterTimeout !== !1
7341
7341
  };
7342
7342
  }
7343
- const Fs = /* @__PURE__ */ Object.create(null), An = [
7343
+ const Ds = /* @__PURE__ */ Object.create(null), An = [
7344
7344
  "https://api.simplesvg.com",
7345
7345
  "https://api.unisvg.com"
7346
7346
  ], or = [];
7347
7347
  for (; An.length > 0; )
7348
7348
  An.length === 1 || Math.random() > 0.5 ? or.push(An.shift()) : or.push(An.pop());
7349
- Fs[""] = Rs({
7349
+ Ds[""] = Fs({
7350
7350
  resources: ["https://api.iconify.design"].concat(or)
7351
7351
  });
7352
7352
  function Vh(t, e) {
7353
- const n = Rs(e);
7354
- return n === null ? !1 : (Fs[t] = n, !0);
7353
+ const n = Fs(e);
7354
+ return n === null ? !1 : (Ds[t] = n, !0);
7355
7355
  }
7356
- function Ds(t) {
7357
- return Fs[t];
7356
+ function Os(t) {
7357
+ return Ds[t];
7358
7358
  }
7359
7359
  const Qh = () => {
7360
7360
  let t;
@@ -7364,9 +7364,9 @@ const Qh = () => {
7364
7364
  } catch {
7365
7365
  }
7366
7366
  };
7367
- let bi = Qh();
7367
+ let xi = Qh();
7368
7368
  function Kh(t, e) {
7369
- const n = Ds(t);
7369
+ const n = Os(t);
7370
7370
  if (!n)
7371
7371
  return 0;
7372
7372
  let r;
@@ -7404,14 +7404,14 @@ const tv = (t, e, n) => {
7404
7404
  };
7405
7405
  function nv(t) {
7406
7406
  if (typeof t == "string") {
7407
- const e = Ds(t);
7407
+ const e = Os(t);
7408
7408
  if (e)
7409
7409
  return e.path;
7410
7410
  }
7411
7411
  return "/";
7412
7412
  }
7413
7413
  const rv = (t, e, n) => {
7414
- if (!bi) {
7414
+ if (!xi) {
7415
7415
  n("abort", 424);
7416
7416
  return;
7417
7417
  }
@@ -7434,7 +7434,7 @@ const rv = (t, e, n) => {
7434
7434
  return;
7435
7435
  }
7436
7436
  let s = 503;
7437
- bi(t + r).then((i) => {
7437
+ xi(t + r).then((i) => {
7438
7438
  const a = i.status;
7439
7439
  if (a !== 200) {
7440
7440
  setTimeout(() => {
@@ -7579,7 +7579,7 @@ function dv(t, e, n, r) {
7579
7579
  function w() {
7580
7580
  d && (clearTimeout(d), d = null);
7581
7581
  }
7582
- function m() {
7582
+ function b() {
7583
7583
  c === "pending" && (c = "aborted"), w(), p.forEach((A) => {
7584
7584
  A.status === "pending" && (A.status = "aborted");
7585
7585
  }), p = [];
@@ -7595,7 +7595,7 @@ function dv(t, e, n, r) {
7595
7595
  queriesSent: l,
7596
7596
  queriesPending: p.length,
7597
7597
  subscribe: S,
7598
- abort: m
7598
+ abort: b
7599
7599
  };
7600
7600
  }
7601
7601
  function _() {
@@ -7695,12 +7695,12 @@ function Ja(t) {
7695
7695
  cleanup: r
7696
7696
  };
7697
7697
  }
7698
- function xi() {
7698
+ function wi() {
7699
7699
  }
7700
7700
  const Jr = /* @__PURE__ */ Object.create(null);
7701
7701
  function fv(t) {
7702
7702
  if (!Jr[t]) {
7703
- const e = Ds(t);
7703
+ const e = Os(t);
7704
7704
  if (!e)
7705
7705
  return;
7706
7706
  const n = Ja(e), r = {
@@ -7714,23 +7714,23 @@ function fv(t) {
7714
7714
  function pv(t, e, n) {
7715
7715
  let r, s;
7716
7716
  if (typeof t == "string") {
7717
- const i = cs(t);
7717
+ const i = us(t);
7718
7718
  if (!i)
7719
- return n(void 0, 424), xi;
7719
+ return n(void 0, 424), wi;
7720
7720
  s = i.send;
7721
7721
  const a = fv(t);
7722
7722
  a && (r = a.redundancy);
7723
7723
  } else {
7724
- const i = Rs(t);
7724
+ const i = Fs(t);
7725
7725
  if (i) {
7726
7726
  r = Ja(i);
7727
- const a = t.resources ? t.resources[0] : "", o = cs(a);
7727
+ const a = t.resources ? t.resources[0] : "", o = us(a);
7728
7728
  o && (s = o.send);
7729
7729
  }
7730
7730
  }
7731
- return !r || !s ? (n(void 0, 424), xi) : r.query(e, s, n)().abort;
7731
+ return !r || !s ? (n(void 0, 424), wi) : r.query(e, s, n)().abort;
7732
7732
  }
7733
- function wi() {
7733
+ function _i() {
7734
7734
  }
7735
7735
  function hv(t) {
7736
7736
  t.iconsLoaderFlag || (t.iconsLoaderFlag = !0, setTimeout(() => {
@@ -7764,7 +7764,7 @@ function Ln(t, e, n) {
7764
7764
  }
7765
7765
  r(), hv(t);
7766
7766
  }
7767
- function _i(t, e) {
7767
+ function ki(t, e) {
7768
7768
  t instanceof Promise ? t.then((n) => {
7769
7769
  e(n);
7770
7770
  }).catch(() => {
@@ -7779,7 +7779,7 @@ function gv(t, e) {
7779
7779
  return;
7780
7780
  const i = t.loadIcon;
7781
7781
  if (t.loadIcons && (s.length > 1 || !i)) {
7782
- _i(
7782
+ ki(
7783
7783
  t.loadIcons(s, r, n),
7784
7784
  (u) => {
7785
7785
  Ln(t, s, u);
@@ -7790,7 +7790,7 @@ function gv(t, e) {
7790
7790
  if (i) {
7791
7791
  s.forEach((u) => {
7792
7792
  const d = i(u, r, n);
7793
- _i(d, (p) => {
7793
+ ki(d, (p) => {
7794
7794
  const h = p ? {
7795
7795
  prefix: r,
7796
7796
  icons: {
@@ -7805,7 +7805,7 @@ function gv(t, e) {
7805
7805
  const { valid: a, invalid: o } = vv(s);
7806
7806
  if (o.length && Ln(t, o, null), !a.length)
7807
7807
  return;
7808
- const c = r.match(Pa) ? cs(n) : null;
7808
+ const c = r.match(Pa) ? us(n) : null;
7809
7809
  if (!c) {
7810
7810
  Ln(t, a, null);
7811
7811
  return;
@@ -7826,7 +7826,7 @@ const mv = (t, e) => {
7826
7826
  r.loaded,
7827
7827
  r.missing,
7828
7828
  r.pending,
7829
- wi
7829
+ _i
7830
7830
  );
7831
7831
  }), () => {
7832
7832
  c = !1;
@@ -7847,7 +7847,7 @@ const mv = (t, e) => {
7847
7847
  }), i.forEach((c) => {
7848
7848
  const l = s[c.provider][c.prefix];
7849
7849
  l.length && gv(c, l);
7850
- }), e ? lv(e, r, i) : wi;
7850
+ }), e ? lv(e, r, i) : _i;
7851
7851
  };
7852
7852
  function bv(t, e) {
7853
7853
  const n = {
@@ -7913,7 +7913,7 @@ function zv(t) {
7913
7913
  function $v(t) {
7914
7914
  return 'url("' + zv(t) + '")';
7915
7915
  }
7916
- const ki = {
7916
+ const yi = {
7917
7917
  ...Ya,
7918
7918
  inline: !1
7919
7919
  }, Tv = {
@@ -7923,29 +7923,29 @@ const ki = {
7923
7923
  role: "img"
7924
7924
  }, Sv = {
7925
7925
  display: "inline-block"
7926
- }, us = {
7926
+ }, ds = {
7927
7927
  "background-color": "currentColor"
7928
7928
  }, Wa = {
7929
7929
  "background-color": "transparent"
7930
- }, yi = {
7930
+ }, zi = {
7931
7931
  image: "var(--svg)",
7932
7932
  repeat: "no-repeat",
7933
7933
  size: "100% 100%"
7934
- }, zi = {
7935
- "-webkit-mask": us,
7936
- mask: us,
7934
+ }, $i = {
7935
+ "-webkit-mask": ds,
7936
+ mask: ds,
7937
7937
  background: Wa
7938
7938
  };
7939
- for (const t in zi) {
7940
- const e = zi[t];
7941
- for (const n in yi)
7942
- e[t + "-" + n] = yi[n];
7939
+ for (const t in $i) {
7940
+ const e = $i[t];
7941
+ for (const n in zi)
7942
+ e[t + "-" + n] = zi[n];
7943
7943
  }
7944
7944
  function Ev(t) {
7945
7945
  return t + (t.match(/^[-0-9.]+$/) ? "px" : "");
7946
7946
  }
7947
7947
  function Cv(t, e) {
7948
- const n = bv(ki, e), r = e.mode || "svg", s = r === "svg" ? { ...Tv } : {};
7948
+ const n = bv(yi, e), r = e.mode || "svg", s = r === "svg" ? { ...Tv } : {};
7949
7949
  t.body.indexOf("xlink:") === -1 && delete s["xmlns:xlink"];
7950
7950
  let i = typeof e.style == "string" ? e.style : "";
7951
7951
  for (let x in e) {
@@ -7979,7 +7979,7 @@ function Cv(t, e) {
7979
7979
  default:
7980
7980
  if (x.slice(0, 3) === "on:")
7981
7981
  break;
7982
- ki[x] === void 0 && (s[x] = _);
7982
+ yi[x] === void 0 && (s[x] = _);
7983
7983
  }
7984
7984
  }
7985
7985
  const a = Yh(t, n), o = a.attributes;
@@ -7998,11 +7998,11 @@ function Cv(t, e) {
7998
7998
  height: u + ""
7999
7999
  }), w = {
8000
8000
  "--svg": $v(p)
8001
- }, m = (x) => {
8001
+ }, b = (x) => {
8002
8002
  const _ = o[x];
8003
8003
  _ && (w[x] = Ev(_));
8004
8004
  };
8005
- m("width"), m("height"), Object.assign(w, Sv, d ? us : Wa);
8005
+ b("width"), b("height"), Object.assign(w, Sv, d ? ds : Wa);
8006
8006
  let S = "";
8007
8007
  for (const x in w)
8008
8008
  S += x + ": " + w[x] + ";";
@@ -8063,7 +8063,7 @@ function Iv(t, e, n, r, s) {
8063
8063
  const c = ["iconify"];
8064
8064
  return a.prefix !== "" && c.push("iconify--" + a.prefix), a.provider !== "" && c.push("iconify--" + a.provider), { data: o, classes: c };
8065
8065
  }
8066
- function $i(t, e) {
8066
+ function Ti(t, e) {
8067
8067
  return t ? Cv({
8068
8068
  ...Rr,
8069
8069
  ...t
@@ -8095,15 +8095,15 @@ function Xt(t, e) {
8095
8095
  Bn(i);
8096
8096
  }
8097
8097
  Lr(() => {
8098
- b(s, !0);
8098
+ m(s, !0);
8099
8099
  }), Pl(() => {
8100
8100
  Ur(r, f(r).destroyed = !0), f(r).loading && (f(r).loading.abort(), Ur(r, f(r).loading = null));
8101
8101
  }), Yn(
8102
- () => (f(i), En(n), f(s), f(r), f(a), $i),
8102
+ () => (f(i), En(n), f(s), f(r), f(a), Ti),
8103
8103
  () => {
8104
8104
  f(i);
8105
8105
  const p = !!n.ssr || f(s), h = Iv(n.icon, f(r), p, c, o);
8106
- b(a, h ? $i(h.data, n) : null), f(a) && h.classes && Ur(a, f(a).attributes.class = (typeof n.class == "string" ? n.class + " " : "") + h.classes.join(" "));
8106
+ m(a, h ? Ti(h.data, n) : null), f(a) && h.classes && Ur(a, f(a).attributes.class = (typeof n.class == "string" ? n.class + " " : "") + h.classes.join(" "));
8107
8107
  }
8108
8108
  ), Gn(), ct();
8109
8109
  var l = $t(), u = pt(l);
@@ -8111,18 +8111,18 @@ function Xt(t, e) {
8111
8111
  var d = (p) => {
8112
8112
  var h = $t(), w = pt(h);
8113
8113
  {
8114
- var m = (x) => {
8114
+ var b = (x) => {
8115
8115
  var _ = Av();
8116
8116
  let y;
8117
8117
  var F = z(_);
8118
- ss(F, () => f(a).body, !0, !1), k(_), O(() => y = ni(_, y, { ...f(a).attributes }, void 0, !0)), T(x, _);
8118
+ ss(F, () => f(a).body, !0, !1), k(_), O(() => y = ri(_, y, { ...f(a).attributes }, void 0, !0)), T(x, _);
8119
8119
  }, S = (x) => {
8120
8120
  var _ = Lv();
8121
8121
  let y;
8122
- O(() => y = ni(_, y, { ...f(a).attributes })), T(x, _);
8122
+ O(() => y = ri(_, y, { ...f(a).attributes })), T(x, _);
8123
8123
  };
8124
8124
  V(w, (x) => {
8125
- f(a).svg ? x(m) : x(S, !1);
8125
+ f(a).svg ? x(b) : x(S, !1);
8126
8126
  });
8127
8127
  }
8128
8128
  T(p, h);
@@ -8134,7 +8134,7 @@ function Xt(t, e) {
8134
8134
  T(t, l), ae();
8135
8135
  }
8136
8136
  oe(Xt, {}, [], [], !0);
8137
- function Os() {
8137
+ function Ps() {
8138
8138
  return {
8139
8139
  async: !1,
8140
8140
  breaks: !1,
@@ -8148,7 +8148,7 @@ function Os() {
8148
8148
  walkTokens: null
8149
8149
  };
8150
8150
  }
8151
- let hn = Os();
8151
+ let hn = Ps();
8152
8152
  function Za(t) {
8153
8153
  hn = t;
8154
8154
  }
@@ -8221,7 +8221,7 @@ const nt = {
8221
8221
  fencesBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:\`\`\`|~~~)`),
8222
8222
  headingBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}#`),
8223
8223
  htmlBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}<(?:[a-z].*>|!--)`, "i")
8224
- }, jv = /^(?:[ \t]*(?:\n|$))+/, Rv = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Fv = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Zn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Dv = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ps = /(?:[*+-]|\d{1,9}[.)])/, Xa = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Va = ke(Xa).replace(/bull/g, Ps).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(), Ov = ke(Xa).replace(/bull/g, Ps).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(), Ms = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Pv = /^[^\n]+/, Ns = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Mv = ke(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Ns).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Nv = ke(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Ps).getRegex(), Fr = "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", Us = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Uv = ke("^ {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", Us).replace("tag", Fr).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Qa = ke(Ms).replace("hr", Zn).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", Fr).getRegex(), Bv = ke(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Qa).getRegex(), Bs = {
8224
+ }, jv = /^(?:[ \t]*(?:\n|$))+/, Rv = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Fv = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Zn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Dv = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ms = /(?:[*+-]|\d{1,9}[.)])/, Xa = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Va = ke(Xa).replace(/bull/g, Ms).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(), Ov = ke(Xa).replace(/bull/g, Ms).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(), Ns = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Pv = /^[^\n]+/, Us = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Mv = ke(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Us).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Nv = ke(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Ms).getRegex(), Fr = "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", Bs = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Uv = ke("^ {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", Bs).replace("tag", Fr).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Qa = ke(Ns).replace("hr", Zn).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", Fr).getRegex(), Bv = ke(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Qa).getRegex(), qs = {
8225
8225
  blockquote: Bv,
8226
8226
  code: Rv,
8227
8227
  def: Mv,
@@ -8235,22 +8235,22 @@ const nt = {
8235
8235
  paragraph: Qa,
8236
8236
  table: On,
8237
8237
  text: Pv
8238
- }, Ti = ke("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Zn).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", Fr).getRegex(), qv = {
8239
- ...Bs,
8238
+ }, Si = ke("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Zn).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", Fr).getRegex(), qv = {
8239
+ ...qs,
8240
8240
  lheading: Ov,
8241
- table: Ti,
8242
- paragraph: ke(Ms).replace("hr", Zn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Ti).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", Fr).getRegex()
8241
+ table: Si,
8242
+ paragraph: ke(Ns).replace("hr", Zn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Si).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", Fr).getRegex()
8243
8243
  }, Hv = {
8244
- ...Bs,
8245
- html: ke(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Us).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(),
8244
+ ...qs,
8245
+ html: ke(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Bs).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(),
8246
8246
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
8247
8247
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
8248
8248
  fences: On,
8249
8249
  // fences not supported
8250
8250
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
8251
- paragraph: ke(Ms).replace("hr", Zn).replace("heading", ` *#{1,6} *[^
8251
+ paragraph: ke(Ns).replace("hr", Zn).replace("heading", ` *#{1,6} *[^
8252
8252
  ]`).replace("lheading", Va).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
8253
- }, Yv = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Gv = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Ka = /^( {2,}|\\)\n(?!\s*$)/, Jv = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Dr = /[\p{P}\p{S}]/u, qs = /[\s\p{P}\p{S}]/u, eo = /[^\s\p{P}\p{S}]/u, Wv = ke(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, qs).getRegex(), to = /(?!~)[\p{P}\p{S}]/u, Zv = /(?!~)[\s\p{P}\p{S}]/u, Xv = /(?:[^\s\p{P}\p{S}]|~)/u, Vv = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, no = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Qv = ke(no, "u").replace(/punct/g, Dr).getRegex(), Kv = ke(no, "u").replace(/punct/g, to).getRegex(), ro = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", eg = ke(ro, "gu").replace(/notPunctSpace/g, eo).replace(/punctSpace/g, qs).replace(/punct/g, Dr).getRegex(), tg = ke(ro, "gu").replace(/notPunctSpace/g, Xv).replace(/punctSpace/g, Zv).replace(/punct/g, to).getRegex(), ng = ke("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, eo).replace(/punctSpace/g, qs).replace(/punct/g, Dr).getRegex(), rg = ke(/\\(punct)/, "gu").replace(/punct/g, Dr).getRegex(), sg = ke(/^<(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(), ig = ke(Us).replace("(?:-->|$)", "-->").getRegex(), ag = ke("^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", ig).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), xr = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, og = ke(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", xr).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), so = ke(/^!?\[(label)\]\[(ref)\]/).replace("label", xr).replace("ref", Ns).getRegex(), io = ke(/^!?\[(ref)\](?:\[\])?/).replace("ref", Ns).getRegex(), lg = ke("reflink|nolink(?!\\()", "g").replace("reflink", so).replace("nolink", io).getRegex(), Hs = {
8253
+ }, Yv = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Gv = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Ka = /^( {2,}|\\)\n(?!\s*$)/, Jv = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Dr = /[\p{P}\p{S}]/u, Hs = /[\s\p{P}\p{S}]/u, eo = /[^\s\p{P}\p{S}]/u, Wv = ke(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Hs).getRegex(), to = /(?!~)[\p{P}\p{S}]/u, Zv = /(?!~)[\s\p{P}\p{S}]/u, Xv = /(?:[^\s\p{P}\p{S}]|~)/u, Vv = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, no = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Qv = ke(no, "u").replace(/punct/g, Dr).getRegex(), Kv = ke(no, "u").replace(/punct/g, to).getRegex(), ro = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", eg = ke(ro, "gu").replace(/notPunctSpace/g, eo).replace(/punctSpace/g, Hs).replace(/punct/g, Dr).getRegex(), tg = ke(ro, "gu").replace(/notPunctSpace/g, Xv).replace(/punctSpace/g, Zv).replace(/punct/g, to).getRegex(), ng = ke("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, eo).replace(/punctSpace/g, Hs).replace(/punct/g, Dr).getRegex(), rg = ke(/\\(punct)/, "gu").replace(/punct/g, Dr).getRegex(), sg = ke(/^<(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(), ig = ke(Bs).replace("(?:-->|$)", "-->").getRegex(), ag = ke("^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", ig).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), xr = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, og = ke(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", xr).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), so = ke(/^!?\[(label)\]\[(ref)\]/).replace("label", xr).replace("ref", Us).getRegex(), io = ke(/^!?\[(ref)\](?:\[\])?/).replace("ref", Us).getRegex(), lg = ke("reflink|nolink(?!\\()", "g").replace("reflink", so).replace("nolink", io).getRegex(), Ys = {
8254
8254
  _backpedal: On,
8255
8255
  // only used for GFM url
8256
8256
  anyPunctuation: rg,
@@ -8272,11 +8272,11 @@ const nt = {
8272
8272
  text: Jv,
8273
8273
  url: On
8274
8274
  }, cg = {
8275
- ...Hs,
8275
+ ...Ys,
8276
8276
  link: ke(/^!?\[(label)\]\((.*?)\)/).replace("label", xr).getRegex(),
8277
8277
  reflink: ke(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", xr).getRegex()
8278
- }, ds = {
8279
- ...Hs,
8278
+ }, fs = {
8279
+ ...Ys,
8280
8280
  emStrongRDelimAst: tg,
8281
8281
  emStrongLDelim: Kv,
8282
8282
  url: ke(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
@@ -8284,16 +8284,16 @@ const nt = {
8284
8284
  del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,
8285
8285
  text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
8286
8286
  }, ug = {
8287
- ...ds,
8287
+ ...fs,
8288
8288
  br: ke(Ka).replace("{2,}", "*").getRegex(),
8289
- text: ke(ds.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
8289
+ text: ke(fs.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
8290
8290
  }, nr = {
8291
- normal: Bs,
8291
+ normal: qs,
8292
8292
  gfm: qv,
8293
8293
  pedantic: Hv
8294
8294
  }, jn = {
8295
- normal: Hs,
8296
- gfm: ds,
8295
+ normal: Ys,
8296
+ gfm: fs,
8297
8297
  breaks: ug,
8298
8298
  pedantic: cg
8299
8299
  }, dg = {
@@ -8302,16 +8302,16 @@ const nt = {
8302
8302
  ">": "&gt;",
8303
8303
  '"': "&quot;",
8304
8304
  "'": "&#39;"
8305
- }, Si = (t) => dg[t];
8305
+ }, Ei = (t) => dg[t];
8306
8306
  function Et(t, e) {
8307
8307
  if (e) {
8308
8308
  if (nt.escapeTest.test(t))
8309
- return t.replace(nt.escapeReplace, Si);
8309
+ return t.replace(nt.escapeReplace, Ei);
8310
8310
  } else if (nt.escapeTestNoEncode.test(t))
8311
- return t.replace(nt.escapeReplaceNoEncode, Si);
8311
+ return t.replace(nt.escapeReplaceNoEncode, Ei);
8312
8312
  return t;
8313
8313
  }
8314
- function Ei(t) {
8314
+ function Ci(t) {
8315
8315
  try {
8316
8316
  t = encodeURI(t).replace(nt.percentDecode, "%");
8317
8317
  } catch {
@@ -8319,7 +8319,7 @@ function Ei(t) {
8319
8319
  }
8320
8320
  return t;
8321
8321
  }
8322
- function Ci(t, e) {
8322
+ function Ii(t, e) {
8323
8323
  var i;
8324
8324
  const n = t.replace(nt.findPipe, (a, o, c) => {
8325
8325
  let l = !1, u = o;
@@ -8360,7 +8360,7 @@ function fg(t, e) {
8360
8360
  return r;
8361
8361
  return -1;
8362
8362
  }
8363
- function Ii(t, e, n, r, s) {
8363
+ function Ai(t, e, n, r, s) {
8364
8364
  const i = e.href, a = e.title || null, o = t[1].replace(s.other.outputLinkReplace, "$1");
8365
8365
  if (t[0].charAt(0) !== "!") {
8366
8366
  r.state.inLink = !0;
@@ -8497,16 +8497,16 @@ ${d}` : d;
8497
8497
  if ((h == null ? void 0 : h.type) === "code")
8498
8498
  break;
8499
8499
  if ((h == null ? void 0 : h.type) === "blockquote") {
8500
- const w = h, m = w.raw + `
8500
+ const w = h, b = w.raw + `
8501
8501
  ` + r.join(`
8502
- `), S = this.blockquote(m);
8502
+ `), S = this.blockquote(b);
8503
8503
  a[a.length - 1] = S, s = s.substring(0, s.length - w.raw.length) + S.raw, i = i.substring(0, i.length - w.text.length) + S.text;
8504
8504
  break;
8505
8505
  } else if ((h == null ? void 0 : h.type) === "list") {
8506
- const w = h, m = w.raw + `
8506
+ const w = h, b = w.raw + `
8507
8507
  ` + r.join(`
8508
- `), S = this.list(m);
8509
- a[a.length - 1] = S, s = s.substring(0, s.length - h.raw.length) + S.raw, i = i.substring(0, i.length - w.raw.length) + S.raw, r = m.substring(a.at(-1).raw.length).split(`
8508
+ `), S = this.list(b);
8509
+ a[a.length - 1] = S, s = s.substring(0, s.length - h.raw.length) + S.raw, i = i.substring(0, i.length - w.raw.length) + S.raw, r = b.substring(a.at(-1).raw.length).split(`
8510
8510
  `);
8511
8511
  continue;
8512
8512
  }
@@ -8541,19 +8541,19 @@ ${d}` : d;
8541
8541
  u = n[0], e = e.substring(u.length);
8542
8542
  let p = n[2].split(`
8543
8543
  `, 1)[0].replace(this.rules.other.listReplaceTabs, (_) => " ".repeat(3 * _.length)), h = e.split(`
8544
- `, 1)[0], w = !p.trim(), m = 0;
8545
- if (this.options.pedantic ? (m = 2, d = p.trimStart()) : w ? m = n[1].length + 1 : (m = n[2].search(this.rules.other.nonSpaceChar), m = m > 4 ? 1 : m, d = p.slice(m), m += n[1].length), w && this.rules.other.blankLine.test(h) && (u += h + `
8544
+ `, 1)[0], w = !p.trim(), b = 0;
8545
+ if (this.options.pedantic ? (b = 2, d = p.trimStart()) : w ? b = n[1].length + 1 : (b = n[2].search(this.rules.other.nonSpaceChar), b = b > 4 ? 1 : b, d = p.slice(b), b += n[1].length), w && this.rules.other.blankLine.test(h) && (u += h + `
8546
8546
  `, e = e.substring(h.length + 1), l = !0), !l) {
8547
- const _ = this.rules.other.nextBulletRegex(m), y = this.rules.other.hrRegex(m), F = this.rules.other.fencesBeginRegex(m), $ = this.rules.other.headingBeginRegex(m), A = this.rules.other.htmlBeginRegex(m);
8547
+ const _ = this.rules.other.nextBulletRegex(b), y = this.rules.other.hrRegex(b), F = this.rules.other.fencesBeginRegex(b), $ = this.rules.other.headingBeginRegex(b), A = this.rules.other.htmlBeginRegex(b);
8548
8548
  for (; e; ) {
8549
8549
  const L = e.split(`
8550
8550
  `, 1)[0];
8551
8551
  let M;
8552
8552
  if (h = L, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), M = h) : M = h.replace(this.rules.other.tabCharGlobal, " "), F.test(h) || $.test(h) || A.test(h) || _.test(h) || y.test(h))
8553
8553
  break;
8554
- if (M.search(this.rules.other.nonSpaceChar) >= m || !h.trim())
8554
+ if (M.search(this.rules.other.nonSpaceChar) >= b || !h.trim())
8555
8555
  d += `
8556
- ` + M.slice(m);
8556
+ ` + M.slice(b);
8557
8557
  else {
8558
8558
  if (w || p.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || F.test(p) || $.test(p) || y.test(p))
8559
8559
  break;
@@ -8561,7 +8561,7 @@ ${d}` : d;
8561
8561
  ` + h;
8562
8562
  }
8563
8563
  !w && !h.trim() && (w = !0), u += L + `
8564
- `, e = e.substring(L.length + 1), p = M.slice(m);
8564
+ `, e = e.substring(L.length + 1), p = M.slice(b);
8565
8565
  }
8566
8566
  }
8567
8567
  i.loose || (o ? i.loose = !0 : this.rules.other.doubleBlankLine.test(u) && (o = !0));
@@ -8622,7 +8622,7 @@ ${d}` : d;
8622
8622
  const n = this.rules.block.table.exec(e);
8623
8623
  if (!n || !this.rules.other.tableDelimiter.test(n[2]))
8624
8624
  return;
8625
- const r = Ci(n[1]), s = n[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = (o = n[3]) != null && o.trim() ? n[3].replace(this.rules.other.tableRowBlankLine, "").split(`
8625
+ const r = Ii(n[1]), s = n[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = (o = n[3]) != null && o.trim() ? n[3].replace(this.rules.other.tableRowBlankLine, "").split(`
8626
8626
  `) : [], a = {
8627
8627
  type: "table",
8628
8628
  raw: n[0],
@@ -8641,7 +8641,7 @@ ${d}` : d;
8641
8641
  align: a.align[c]
8642
8642
  });
8643
8643
  for (const c of i)
8644
- a.rows.push(Ci(c, a.header.length).map((l, u) => ({
8644
+ a.rows.push(Ii(c, a.header.length).map((l, u) => ({
8645
8645
  text: l,
8646
8646
  tokens: this.lexer.inline(l),
8647
8647
  header: !1,
@@ -8728,7 +8728,7 @@ ${d}` : d;
8728
8728
  a && (s = a[1], i = a[3]);
8729
8729
  } else
8730
8730
  i = n[3] ? n[3].slice(1, -1) : "";
8731
- 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)), Ii(n, {
8731
+ 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)), Ai(n, {
8732
8732
  href: s && s.replace(this.rules.inline.anyPunctuation, "$1"),
8733
8733
  title: i && i.replace(this.rules.inline.anyPunctuation, "$1")
8734
8734
  }, n[0], this.lexer, this.rules);
@@ -8746,7 +8746,7 @@ ${d}` : d;
8746
8746
  text: a
8747
8747
  };
8748
8748
  }
8749
- return Ii(r, i, r[0], this.lexer, this.rules);
8749
+ return Ai(r, i, r[0], this.lexer, this.rules);
8750
8750
  }
8751
8751
  }
8752
8752
  emStrong(e, n, r = "") {
@@ -8772,12 +8772,12 @@ ${d}` : d;
8772
8772
  c = Math.min(c, c + l + u);
8773
8773
  const p = [...s[0]][0].length, h = e.slice(0, a + s.index + p + c);
8774
8774
  if (Math.min(a, c) % 2) {
8775
- const m = h.slice(1, -1);
8775
+ const b = h.slice(1, -1);
8776
8776
  return {
8777
8777
  type: "em",
8778
8778
  raw: h,
8779
- text: m,
8780
- tokens: this.lexer.inlineTokens(m)
8779
+ text: b,
8780
+ tokens: this.lexer.inlineTokens(b)
8781
8781
  };
8782
8782
  }
8783
8783
  const w = h.slice(2, -2);
@@ -9104,8 +9104,8 @@ class xt {
9104
9104
  let p = 1 / 0;
9105
9105
  const h = e.slice(1);
9106
9106
  let w;
9107
- this.options.extensions.startInline.forEach((m) => {
9108
- w = m.call({ lexer: this }, h), typeof w == "number" && w >= 0 && (p = Math.min(p, w));
9107
+ this.options.extensions.startInline.forEach((b) => {
9108
+ w = b.call({ lexer: this }, h), typeof w == "number" && w >= 0 && (p = Math.min(p, w));
9109
9109
  }), p < 1 / 0 && p >= 0 && (d = e.substring(0, p + 1));
9110
9110
  }
9111
9111
  if (u = this.tokenizer.inlineText(d)) {
@@ -9242,7 +9242,7 @@ ${e}</tr>
9242
9242
  return `<del>${this.parser.parseInline(e)}</del>`;
9243
9243
  }
9244
9244
  link({ href: e, title: n, tokens: r }) {
9245
- const s = this.parser.parseInline(r), i = Ei(e);
9245
+ const s = this.parser.parseInline(r), i = Ci(e);
9246
9246
  if (i === null)
9247
9247
  return s;
9248
9248
  e = i;
@@ -9250,7 +9250,7 @@ ${e}</tr>
9250
9250
  return n && (a += ' title="' + Et(n) + '"'), a += ">" + s + "</a>", a;
9251
9251
  }
9252
9252
  image({ href: e, title: n, text: r }) {
9253
- const s = Ei(e);
9253
+ const s = Ci(e);
9254
9254
  if (s === null)
9255
9255
  return Et(r);
9256
9256
  e = s;
@@ -9261,7 +9261,7 @@ ${e}</tr>
9261
9261
  return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : Et(e.text);
9262
9262
  }
9263
9263
  }
9264
- class Ys {
9264
+ class Gs {
9265
9265
  // no need for block level renderers
9266
9266
  strong({ text: e }) {
9267
9267
  return e;
@@ -9296,7 +9296,7 @@ class wt {
9296
9296
  I(this, "options");
9297
9297
  I(this, "renderer");
9298
9298
  I(this, "textRenderer");
9299
- this.options = e || hn, this.options.renderer = this.options.renderer || new _r(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Ys();
9299
+ this.options = e || hn, this.options.renderer = this.options.renderer || new _r(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Gs();
9300
9300
  }
9301
9301
  /**
9302
9302
  * Static Parse Method
@@ -9498,13 +9498,13 @@ I(Pn, "passThroughHooks", /* @__PURE__ */ new Set([
9498
9498
  ]));
9499
9499
  class hg {
9500
9500
  constructor(...e) {
9501
- I(this, "defaults", Os());
9501
+ I(this, "defaults", Ps());
9502
9502
  I(this, "options", this.setOptions);
9503
9503
  I(this, "parse", this.parseMarkdown(!0));
9504
9504
  I(this, "parseInline", this.parseMarkdown(!1));
9505
9505
  I(this, "Parser", wt);
9506
9506
  I(this, "Renderer", _r);
9507
- I(this, "TextRenderer", Ys);
9507
+ I(this, "TextRenderer", Gs);
9508
9508
  I(this, "Lexer", xt);
9509
9509
  I(this, "Tokenizer", wr);
9510
9510
  I(this, "Hooks", Pn);
@@ -9676,7 +9676,7 @@ function _e(t, e) {
9676
9676
  _e.options = _e.setOptions = function(t) {
9677
9677
  return cn.setOptions(t), _e.defaults = cn.defaults, Za(_e.defaults), _e;
9678
9678
  };
9679
- _e.getDefaults = Os;
9679
+ _e.getDefaults = Ps;
9680
9680
  _e.defaults = hn;
9681
9681
  _e.use = function(...t) {
9682
9682
  return cn.use(...t), _e.defaults = cn.defaults, Za(_e.defaults), _e;
@@ -9688,7 +9688,7 @@ _e.parseInline = cn.parseInline;
9688
9688
  _e.Parser = wt;
9689
9689
  _e.parser = wt.parse;
9690
9690
  _e.Renderer = _r;
9691
- _e.TextRenderer = Ys;
9691
+ _e.TextRenderer = Gs;
9692
9692
  _e.Lexer = xt;
9693
9693
  _e.lexer = xt.lex;
9694
9694
  _e.Tokenizer = wr;
@@ -9719,15 +9719,15 @@ const zg = {
9719
9719
  hash: "svelte-173vhzm",
9720
9720
  code: ".sources-container.svelte-173vhzm {display:flex;flex-direction:column;width:100%;}.sources-expanded.svelte-173vhzm {background:rgba(255, 255, 255, 0.2);border-radius:0 0 8px 0;box-shadow:0 2px 8px rgba(0, 0, 0, 0.15);margin-top:-10px;overflow:hidden;width:fit-content;min-width:350px;}.sources-header.svelte-173vhzm {height:10px;}.sources-footer.svelte-173vhzm {display:flex;justify-content:flex-end;align-items:center;padding:0 10px 10px 10px;}.sources-title.svelte-173vhzm {margin:0;font-size:16px;font-weight:600;color:#333;}.copy-sources-btn.svelte-173vhzm {display:flex;align-items:center;gap:6px;padding:8px 12px;background:rgba(255, 255, 255, 0.9);color:#295dcf;border:1px solid rgba(255, 255, 255, 0.3);border-radius:8px;cursor:pointer;font-size:13px;transition:all 0.2s;white-space:nowrap;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.copy-sources-btn.svelte-173vhzm:hover {background:white;box-shadow:0 4px 8px rgba(0, 0, 0, 0.15);transform:translateY(-1px);}.copy-sources-btn.svelte-173vhzm i:where(.svelte-173vhzm) {font-size:12px;}.sources-list.svelte-173vhzm {display:flex;flex-wrap:wrap;gap:10px;padding:10px;}.dropdown-option.svelte-173vhzm {display:flex;align-items:center;flex:0 1 calc(50% - 5px);min-width:250px;padding:12px 15px;border:1px solid rgba(255, 255, 255, 0.5);border-radius:8px;background:white;color:#333;cursor:pointer;transition:all 0.2s;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.dropdown-option.svelte-173vhzm:disabled {cursor:wait;opacity:0.7;}.dropdown-option.common.svelte-173vhzm {color:#8fa1c9;cursor:default;opacity:0.8;}.dropdown-option.svelte-173vhzm:hover {background:white;color:#295dcf;border-color:rgba(41, 93, 207, 0.3);box-shadow:0 4px 8px rgba(0, 0, 0, 0.15);transform:translateY(-1px);}.dropdown-option.common.svelte-173vhzm:hover {background:white;color:#8fa1c9;border-color:rgba(255, 255, 255, 0.5);box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);transform:none;}.dropdown-option.svelte-173vhzm i:where(.svelte-173vhzm) {margin-right:10px;width:16px;text-align:center;}.dropdown-option.svelte-173vhzm span:where(.svelte-173vhzm) {font-size:14px;}.document-info.svelte-173vhzm {display:flex;flex-direction:column;align-items:flex-start;flex:1;}.document-title.svelte-173vhzm {font-weight:500;margin-bottom:4px;text-align:left;word-break:break-word;}.document-path.svelte-173vhzm {font-size:0.85em;color:#6c757d;text-align:left;word-break:break-word;}"
9721
9721
  };
9722
- function fs(t, e) {
9723
- ie(e, !0), ce(t, zg);
9722
+ function ps(t, e) {
9723
+ ie(e, !0), ue(t, zg);
9724
9724
  let n = g(e, "isDropdownOpen", 15), r = g(e, "attachmentList", 15), s = g(e, "userLevel", 15), i = G(C({})), a = G(C(/* @__PURE__ */ Yr()));
9725
9725
  const o = (x, _) => {
9726
9726
  f(i)[x] = _;
9727
9727
  }, c = () => {
9728
- b(a, C(/* @__PURE__ */ rd())), setTimeout(
9728
+ m(a, C(/* @__PURE__ */ rd())), setTimeout(
9729
9729
  () => {
9730
- b(a, C(/* @__PURE__ */ Yr()));
9730
+ m(a, C(/* @__PURE__ */ Yr()));
9731
9731
  },
9732
9732
  2e3
9733
9733
  );
@@ -9789,7 +9789,7 @@ function fs(t, e) {
9789
9789
  const L = Aa(y);
9790
9790
  !Ip(y) || L === "mp3" ? await d(_, A || "", y) : await u(_, A || "", y);
9791
9791
  };
9792
- var w = yg(), m = z(w);
9792
+ var w = yg(), b = z(w);
9793
9793
  {
9794
9794
  var S = (x) => {
9795
9795
  var _ = kg(), y = z(_);
@@ -9797,10 +9797,10 @@ function fs(t, e) {
9797
9797
  var F = ($) => {
9798
9798
  var A = _g(), L = P(z(A), 2);
9799
9799
  Ke(L, 21, r, Qe, (je, ge) => {
9800
- var ue = wg();
9801
- const Ze = /* @__PURE__ */ qe(() => tr(f(ge).external_id, f(ge).filename)), Xe = /* @__PURE__ */ qe(() => Rp(f(ge))), ut = /* @__PURE__ */ qe(() => f(i)[f(Ze)]), gt = /* @__PURE__ */ qe(() => Dp(f(ge), s())), R = /* @__PURE__ */ qe(() => La(f(ge))), Q = /* @__PURE__ */ qe(() => ja(f(ge))), Ee = /* @__PURE__ */ qe(() => f(ge).isCommon ? Wn(f(ge).commonType).name : /* @__PURE__ */ ui());
9802
- ue.__click = [gg, h, ge];
9803
- var Ce = z(ue);
9800
+ var ce = wg();
9801
+ const Ze = /* @__PURE__ */ qe(() => tr(f(ge).external_id, f(ge).filename)), Xe = /* @__PURE__ */ qe(() => Rp(f(ge))), ut = /* @__PURE__ */ qe(() => f(i)[f(Ze)]), gt = /* @__PURE__ */ qe(() => Dp(f(ge), s())), R = /* @__PURE__ */ qe(() => La(f(ge))), Q = /* @__PURE__ */ qe(() => ja(f(ge))), Ee = /* @__PURE__ */ qe(() => f(ge).isCommon ? Wn(f(ge).commonType).name : /* @__PURE__ */ di());
9802
+ ce.__click = [gg, h, ge];
9803
+ var Ce = z(ce);
9804
9804
  {
9805
9805
  var Pe = (ne) => {
9806
9806
  var me = mg();
@@ -9827,12 +9827,12 @@ function fs(t, e) {
9827
9827
  f(ge).isCommon || ne(ze);
9828
9828
  });
9829
9829
  }
9830
- k(Ue), k(ue), O(
9830
+ k(Ue), k(ce), O(
9831
9831
  (ne) => {
9832
- tt(ue, `${`dropdown-option ${f(gt) ? "common" : ""}` ?? ""} svelte-173vhzm`), N(ue, "aria-label", ne), N(ue, "title", f(Ee)), ue.disabled = f(ut), $e(ye, f(R));
9832
+ tt(ce, `${`dropdown-option ${f(gt) ? "common" : ""}` ?? ""} svelte-173vhzm`), N(ce, "aria-label", ne), N(ce, "title", f(Ee)), ce.disabled = f(ut), $e(ye, f(R));
9833
9833
  },
9834
- [() => /* @__PURE__ */ ui()]
9835
- ), T(je, ue);
9834
+ [() => /* @__PURE__ */ di()]
9835
+ ), T(je, ce);
9836
9836
  }), k(L);
9837
9837
  var M = P(L, 2), H = z(M);
9838
9838
  H.__click = [
@@ -9854,7 +9854,7 @@ function fs(t, e) {
9854
9854
  }
9855
9855
  k(_), T(x, _);
9856
9856
  };
9857
- V(m, (x) => {
9857
+ V(b, (x) => {
9858
9858
  r().length > 0 && x(S);
9859
9859
  });
9860
9860
  }
@@ -9881,7 +9881,7 @@ function fs(t, e) {
9881
9881
  }
9882
9882
  nn(["click"]);
9883
9883
  oe(
9884
- fs,
9884
+ ps,
9885
9885
  {
9886
9886
  isDropdownOpen: {},
9887
9887
  attachmentList: {},
@@ -9892,7 +9892,7 @@ oe(
9892
9892
  !0
9893
9893
  );
9894
9894
  const $g = (t, e, n) => {
9895
- f(e).pause(), b(n, !1);
9895
+ f(e).pause(), m(n, !1);
9896
9896
  };
9897
9897
  var Tg = /* @__PURE__ */ j('<button aria-label="Pause message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-1c80pjc"><i class="fa-solid fa-pause"></i></button>'), Sg = (t, e, n) => e(f(n)), Eg = /* @__PURE__ */ j('<button aria-label="Play message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-1c80pjc"><i class="fa-solid fa-play"></i></button>'), Cg = /* @__PURE__ */ j('<div class="agent-badge svelte-1c80pjc" title="Agente utilizzato"><i class="fa-solid fa-robot svelte-1c80pjc"></i> <span> </span></div>'), Ig = /* @__PURE__ */ j('<button class="sources-toggle-btn svelte-1c80pjc" aria-label="Visualizza fonti"><span> </span> <i></i></button>'), Ag = /* @__PURE__ */ j('<i class="fa-solid fa-check"></i>'), Lg = /* @__PURE__ */ j('<i class="fa-regular fa-copy"></i>'), jg = /* @__PURE__ */ j('<div><div class="message-plus-play svelte-1c80pjc"><div><div class="message-content svelte-1c80pjc"><!></div></div> <!></div> <div class="w-100 d-flex"><div class="attachments-container svelte-1c80pjc"><!> <div class="d-flex gap-1"><!> <!> <button aria-label="Copy message" class="copy-button svelte-1c80pjc"><!></button></div></div></div></div>'), Rg = /* @__PURE__ */ j('<div><div class="message-plus-play svelte-1c80pjc"><div class="message-received svelte-1c80pjc"><div class="message-content svelte-1c80pjc"><!></div></div> <!></div> <div class="w-100 d-flex" style="justify-content: flex-start"><div class="attachments-container svelte-1c80pjc"><!> <div class="d-flex gap-1" style="width: 100%; justify-content: flex-start; align-items: flex-start;"><div class="agent-badge svelte-1c80pjc" title="Agente utilizzato"><i class="fa-solid fa-robot svelte-1c80pjc"></i> <span> </span></div></div></div></div></div>'), Fg = /* @__PURE__ */ j('<div class="loading svelte-1c80pjc"><!></div>'), Dg = /* @__PURE__ */ j('<div class="alert alert-danger"> </div>'), Og = /* @__PURE__ */ j('<div class="messages-wrapper svelte-1c80pjc"><div class="empty-placeholder svelte-1c80pjc"></div> <!> <!> <!></div>'), Pg = /* @__PURE__ */ j('<div class="loading-placeholder svelte-1c80pjc"><!></div>'), Mg = /* @__PURE__ */ j('<div class="chat-body svelte-1c80pjc"><!> <!></div>');
9898
9898
  const Ng = {
@@ -9905,22 +9905,22 @@ const Ng = {
9905
9905
  ); /* Colore del "pollice" della scrollbar */border-radius:10px;transition:0.3s;}.chat-body.svelte-1c80pjc::-webkit-scrollbar-thumb:hover {background:rgba(255, 255, 255, 0.8); /* Più visibile quando hoverata */}.message-sent.svelte-1c80pjc {display:flex;background:#c8d9ff;border-radius:10px;border-bottom-right-radius:0;width:fit-content;max-width:80%;margin-left:auto;transition:200ms;z-index:1000;user-select:text;}.message-received.svelte-1c80pjc {background:white;border-radius:10px;border-bottom-left-radius:0;width:fit-content;max-width:80%;transition:200ms;position:relative;z-index:1000;user-select:text;}.message-content.svelte-1c80pjc {padding:10px;font-size:16px;}.attachments-container.svelte-1c80pjc {display:flex;flex-direction:column;width:80%;height:35px;}.play-button.svelte-1c80pjc {transition:opacity 200ms;opacity:0;background-color:white;color:#295dcf;transition:200ms;}.play-button.svelte-1c80pjc:hover {background-color:#e9ecef;translate:0 -1px;}.sources-toggle-btn.svelte-1c80pjc {display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:rgba(255, 255, 255, 0.2);color:white;border-radius:0 0 8px 8px;cursor:pointer;font-size:14px;transition:all 200ms;width:fit-content;gap:10px;box-shadow:0 2px 4px rgba(0, 0, 0, 0.15);border:none;height:30px;}.sources-toggle-btn.svelte-1c80pjc:hover {background:rgba(255, 255, 255, 0.25);border-color:rgba(255, 255, 255, 0.5);}.sources-toggle-btn.svelte-1c80pjc i:where(.svelte-1c80pjc) {font-size:12px;transition:transform 200ms;}.copy-button.svelte-1c80pjc {transition:opacity 200ms;background-color:rgba(255, 255, 255, 0.2);box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);border:none;color:white;transition:200ms;border-radius:0 0 8px 8px;height:30px;width:30px;padding:0;font-size:18px;margin:0;}.copy-button.svelte-1c80pjc:hover {background:rgba(255, 255, 255, 0.25);border-color:rgba(255, 255, 255, 0.5);}.agent-badge.svelte-1c80pjc {display:flex;align-items:center;gap:6px;padding:6px 12px;background:rgba(60, 60, 60, 0.75);color:white;border-radius:0 0 8px 8px;font-size:12px;font-weight:500;width:fit-content;box-shadow:0 2px 4px rgba(0, 0, 0, 0.15);backdrop-filter:blur(5px);cursor:default;pointer-events:none;height:30px;}.agent-badge.svelte-1c80pjc i:where(.svelte-1c80pjc) {font-size:14px;opacity:0.9;}.message-plus-play.svelte-1c80pjc {display:flex;justify-content:flex-start;align-items:center;gap:5px;}.message-plus-play.svelte-1c80pjc:hover .play-button:where(.svelte-1c80pjc) {opacity:1;}.loading.svelte-1c80pjc {display:flex;justify-content:start;align-items:center;padding-left:10px;}`
9906
9906
  };
9907
9907
  function ao(t, e) {
9908
- ie(e, !0), ce(t, Ng);
9909
- let n = g(e, "messages", 15), r = g(e, "loading", 15), s = g(e, "error", 15), i = g(e, "streamMessage", 15), a = g(e, "streamAttachments", 15), o = g(e, "streamedAgent", 15), c = g(e, "languageSelected", 15), l = g(e, "userLevel", 15), u = g(e, "loadingChat", 15), d = G(void 0), p = G(C(new Audio())), h = G(!1), w = G(C({})), m = G(C({})), S = G(C(n())), x = G(null), _ = G(!0), y = G(!1), F = G(!1), $ = G(C(u())), A = G(!1);
9908
+ ie(e, !0), ue(t, Ng);
9909
+ let n = g(e, "messages", 15), r = g(e, "loading", 15), s = g(e, "error", 15), i = g(e, "streamMessage", 15), a = g(e, "streamAttachments", 15), o = g(e, "streamedAgent", 15), c = g(e, "languageSelected", 15), l = g(e, "userLevel", 15), u = g(e, "loadingChat", 15), d = G(void 0), p = G(C(new Audio())), h = G(!1), w = G(C({})), b = G(C({})), S = G(C(n())), x = G(null), _ = G(!0), y = G(!1), F = G(!1), $ = G(C(u())), A = G(!1);
9910
9910
  const L = async () => {
9911
9911
  await Br(), f(d) && (f(d).scrollTop = f(d).scrollHeight);
9912
9912
  }, M = async () => {
9913
- await Br(), b(_, !1);
9913
+ await Br(), m(_, !1);
9914
9914
  }, H = async () => {
9915
- f(A) || (b(A, !0), await Br(), b(y, !1));
9915
+ f(A) || (m(A, !0), await Br(), m(y, !1));
9916
9916
  }, le = () => {
9917
- f(F) && b(y, !0);
9917
+ f(F) && m(y, !0);
9918
9918
  }, Oe = () => {
9919
- f(F) && (b(S, C(f(x) ?? n())), b(x, null), b(_, !0), b(F, !1), b(A, !1));
9919
+ f(F) && (m(S, C(f(x) ?? n())), m(x, null), m(_, !0), m(F, !1), m(A, !1));
9920
9920
  }, je = (R) => {
9921
- Is.getAudio(R.content, c()).then((Q) => {
9922
- b(p, C(new Audio(Q))), f(p).play(), b(h, !0), f(p).onended = () => {
9923
- b(h, !1);
9921
+ As.getAudio(R.content, c()).then((Q) => {
9922
+ m(p, C(new Audio(Q))), f(p).play(), m(h, !0), f(p).onended = () => {
9923
+ m(h, !1);
9924
9924
  };
9925
9925
  });
9926
9926
  }, ge = async (R, Q) => {
@@ -9929,18 +9929,18 @@ function ao(t, e) {
9929
9929
  const Pe = Ce.innerHTML, Ie = Ce.textContent || Ce.innerText || "";
9930
9930
  try {
9931
9931
  const Ue = new Blob([Pe], { type: "text/html" }), Me = new Blob([Ie], { type: "text/plain" }), ye = new ClipboardItem({ "text/html": Ue, "text/plain": Me });
9932
- await navigator.clipboard.write([ye]), f(m)[Q] = /* @__PURE__ */ pi(), setTimeout(
9932
+ await navigator.clipboard.write([ye]), f(b)[Q] = /* @__PURE__ */ hi(), setTimeout(
9933
9933
  () => {
9934
- f(m)[Q] = "";
9934
+ f(b)[Q] = "";
9935
9935
  },
9936
9936
  2e3
9937
9937
  );
9938
9938
  } catch (Ue) {
9939
9939
  console.error("Errore durante la copia:", Ue);
9940
9940
  try {
9941
- await navigator.clipboard.writeText(Ie), f(m)[Q] = /* @__PURE__ */ pi(), setTimeout(
9941
+ await navigator.clipboard.writeText(Ie), f(b)[Q] = /* @__PURE__ */ hi(), setTimeout(
9942
9942
  () => {
9943
- f(m)[Q] = "";
9943
+ f(b)[Q] = "";
9944
9944
  },
9945
9945
  2e3
9946
9946
  );
@@ -9950,15 +9950,15 @@ function ao(t, e) {
9950
9950
  }
9951
9951
  };
9952
9952
  Ct(() => {
9953
- u() && !f($) ? (b(F, !0), b(x, null), b(y, !1), b(_, !0), M()) : !u() && f($) && (b(x, C(n())), f(y) && H()), b($, C(u()));
9953
+ u() && !f($) ? (m(F, !0), m(x, null), m(y, !1), m(_, !0), M()) : !u() && f($) && (m(x, C(n())), f(y) && H()), m($, C(u()));
9954
9954
  }), Ct(() => {
9955
9955
  f(F) && f(y) && !u() && H();
9956
9956
  }), Ct(() => {
9957
- f(F) ? b(x, C(n())) : u() || b(S, C(n()));
9957
+ f(F) ? m(x, C(n())) : u() || m(S, C(n()));
9958
9958
  }), Ct(() => {
9959
9959
  i(), f(S), L();
9960
9960
  });
9961
- var ue = Mg(), Ze = z(ue);
9961
+ var ce = Mg(), Ze = z(ce);
9962
9962
  {
9963
9963
  var Xe = (R) => {
9964
9964
  var Q = Og(), Ee = P(z(Q), 2);
@@ -9992,7 +9992,7 @@ function ao(t, e) {
9992
9992
  {
9993
9993
  var B = (W) => {
9994
9994
  var ee = /* @__PURE__ */ qe(() => f(w)[ze] || !1);
9995
- fs(W, {
9995
+ ps(W, {
9996
9996
  get isDropdownOpen() {
9997
9997
  return f(ee);
9998
9998
  },
@@ -10019,7 +10019,7 @@ function ao(t, e) {
10019
10019
  var re = (W) => {
10020
10020
  var ee = Cg(), E = P(z(ee), 2), D = z(E, !0);
10021
10021
  k(E), k(ee), O((Z) => $e(D, Z), [
10022
- () => hi(f(J).agentUsed)
10022
+ () => vi(f(J).agentUsed)
10023
10023
  ]), T(W, ee);
10024
10024
  };
10025
10025
  V(K, (W) => {
@@ -10057,7 +10057,7 @@ function ao(t, e) {
10057
10057
  T(W, ee);
10058
10058
  };
10059
10059
  V(Te, (W) => {
10060
- f(m)[ze] ? W(Ae) : W(xe, !1);
10060
+ f(b)[ze] ? W(Ae) : W(xe, !1);
10061
10061
  });
10062
10062
  }
10063
10063
  k(ve), k(Y), k(et), k(Be), k(ne), O(
@@ -10065,7 +10065,7 @@ function ao(t, e) {
10065
10065
  tt(he, Ar(f(J).sentByUser ? "message-sent" : "message-received"), "svelte-1c80pjc"), N(Be, "style", `justify-content: ${(f(J).sentByUser ? "flex-end" : "flex-start") ?? ""}`), N(Y, "style", `width: 100%; align-items: flex-start; justify-content: ${(f(J).sentByUser ? "flex-end" : "flex-start") ?? ""}`), N(ve, "title", W);
10066
10066
  },
10067
10067
  [
10068
- () => f(m)[ze] || /* @__PURE__ */ sd()
10068
+ () => f(b)[ze] || /* @__PURE__ */ sd()
10069
10069
  ]
10070
10070
  ), T(ye, ne);
10071
10071
  });
@@ -10093,7 +10093,7 @@ function ao(t, e) {
10093
10093
  {
10094
10094
  var et = (re) => {
10095
10095
  var be = /* @__PURE__ */ qe(() => f(w)[-1] || !1);
10096
- fs(re, {
10096
+ ps(re, {
10097
10097
  get isDropdownOpen() {
10098
10098
  return f(be);
10099
10099
  },
@@ -10116,7 +10116,7 @@ function ao(t, e) {
10116
10116
  });
10117
10117
  }
10118
10118
  var Je = P(Be, 2), B = z(Je), Y = P(z(B), 2), K = z(Y, !0);
10119
- k(Y), k(B), k(Je), k(Ye), k(Re), k(J), O((re) => $e(K, re), [() => hi(o())]), T(ye, J);
10119
+ k(Y), k(B), k(Je), k(Ye), k(Re), k(J), O((re) => $e(K, re), [() => vi(o())]), T(ye, J);
10120
10120
  }, Ie = (ye) => {
10121
10121
  var J = $t(), ze = pt(J);
10122
10122
  {
@@ -10174,7 +10174,7 @@ function ao(t, e) {
10174
10174
  f(y) && R(gt);
10175
10175
  });
10176
10176
  }
10177
- return k(ue), as(ue, (R) => b(d, R), () => f(d)), T(t, ue), ae({
10177
+ return k(ce), as(ce, (R) => m(d, R), () => f(d)), T(t, ce), ae({
10178
10178
  get messages() {
10179
10179
  return n();
10180
10180
  },
@@ -10272,20 +10272,20 @@ const Jg = {
10272
10272
  }`
10273
10273
  };
10274
10274
  function oo(t, e) {
10275
- ie(e, !0), ce(t, Jg);
10275
+ ie(e, !0), ue(t, Jg);
10276
10276
  let n = g(e, "showHistory", 15), r = g(e, "actChat", 15), s = g(e, "chats", 15), i = g(e, "messages", 15), a = g(e, "error", 15), o = g(e, "loadingChat", 15), c = g(e, "loadingChats", 15), l = g(e, "newChat", 7);
10277
- const u = async (m) => {
10277
+ const u = async (b) => {
10278
10278
  o(!0);
10279
- let S = await Pt.getChat(m);
10279
+ let S = await Pt.getChat(b);
10280
10280
  r(S), i(r().messages), o(!1), a("");
10281
- }, d = (m, S) => {
10282
- confirm(/* @__PURE__ */ Bu({ chatTitle: S })) && Pt.deleteChat(m).then(() => {
10283
- s(s().filter((x) => x._id !== m)), r()._id === m && l()();
10281
+ }, d = (b, S) => {
10282
+ confirm(/* @__PURE__ */ Bu({ chatTitle: S })) && Pt.deleteChat(b).then(() => {
10283
+ s(s().filter((x) => x._id !== b)), r()._id === b && l()();
10284
10284
  });
10285
10285
  };
10286
10286
  var p = Gg(), h = z(p);
10287
10287
  {
10288
- var w = (m) => {
10288
+ var w = (b) => {
10289
10289
  var S = Yg(), x = z(S), _ = z(x, !0);
10290
10290
  k(x);
10291
10291
  var y = P(x, 2), F = z(y);
@@ -10298,8 +10298,8 @@ function oo(t, e) {
10298
10298
  Ke(H, 17, s, Qe, (le, Oe) => {
10299
10299
  var je = Hg(), ge = z(je);
10300
10300
  ge.__click = [Bg, r, Oe, u];
10301
- var ue = z(ge), Ze = z(ue, !0);
10302
- k(ue), k(ge);
10301
+ var ce = z(ge), Ze = z(ce, !0);
10302
+ k(ce), k(ge);
10303
10303
  var Xe = P(ge, 2);
10304
10304
  Xe.__click = [qg, d, Oe], k(je), O(() => {
10305
10305
  N(je, "style", r()._id === f(Oe)._id ? "background: #295dcf; cursor: default;" : ""), $e(Ze, f(Oe).title);
@@ -10310,60 +10310,60 @@ function oo(t, e) {
10310
10310
  c() ? L($) : L(A, !1);
10311
10311
  });
10312
10312
  }
10313
- k(y), k(S), O((L) => $e(_, L), [() => /* @__PURE__ */ Sa()]), bt(3, S, () => Vl, () => ({ duration: 600 })), T(m, S);
10313
+ k(y), k(S), O((L) => $e(_, L), [() => /* @__PURE__ */ Ea()]), bt(3, S, () => Vl, () => ({ duration: 600 })), T(b, S);
10314
10314
  };
10315
- V(h, (m) => {
10316
- n() && m(w);
10315
+ V(h, (b) => {
10316
+ n() && b(w);
10317
10317
  });
10318
10318
  }
10319
10319
  return k(p), T(t, p), ae({
10320
10320
  get showHistory() {
10321
10321
  return n();
10322
10322
  },
10323
- set showHistory(m) {
10324
- n(m), v();
10323
+ set showHistory(b) {
10324
+ n(b), v();
10325
10325
  },
10326
10326
  get actChat() {
10327
10327
  return r();
10328
10328
  },
10329
- set actChat(m) {
10330
- r(m), v();
10329
+ set actChat(b) {
10330
+ r(b), v();
10331
10331
  },
10332
10332
  get chats() {
10333
10333
  return s();
10334
10334
  },
10335
- set chats(m) {
10336
- s(m), v();
10335
+ set chats(b) {
10336
+ s(b), v();
10337
10337
  },
10338
10338
  get messages() {
10339
10339
  return i();
10340
10340
  },
10341
- set messages(m) {
10342
- i(m), v();
10341
+ set messages(b) {
10342
+ i(b), v();
10343
10343
  },
10344
10344
  get error() {
10345
10345
  return a();
10346
10346
  },
10347
- set error(m) {
10348
- a(m), v();
10347
+ set error(b) {
10348
+ a(b), v();
10349
10349
  },
10350
10350
  get loadingChat() {
10351
10351
  return o();
10352
10352
  },
10353
- set loadingChat(m) {
10354
- o(m), v();
10353
+ set loadingChat(b) {
10354
+ o(b), v();
10355
10355
  },
10356
10356
  get loadingChats() {
10357
10357
  return c();
10358
10358
  },
10359
- set loadingChats(m) {
10360
- c(m), v();
10359
+ set loadingChats(b) {
10360
+ c(b), v();
10361
10361
  },
10362
10362
  get newChat() {
10363
10363
  return l();
10364
10364
  },
10365
- set newChat(m) {
10366
- l(m), v();
10365
+ set newChat(b) {
10366
+ l(b), v();
10367
10367
  }
10368
10368
  });
10369
10369
  }
@@ -10385,18 +10385,18 @@ oe(
10385
10385
  !0
10386
10386
  );
10387
10387
  const Wg = (t, e, n, r, s) => {
10388
- b(e, "auto"), n(), r(), b(s, C({}));
10388
+ m(e, "auto"), n(), r(), m(s, C({}));
10389
10389
  };
10390
- var Zg = /* @__PURE__ */ j('<div class="drag-overlay svelte-1uxkxb0"><div class="drag-content svelte-1uxkxb0"><!> <p class="svelte-1uxkxb0"> </p></div></div>'), Xg = /* @__PURE__ */ j('<div class="upload-progress-overlay svelte-1uxkxb0"><div class="upload-progress-content svelte-1uxkxb0"><!> <p class="upload-filename svelte-1uxkxb0"> </p> <div class="progress-bar-container svelte-1uxkxb0"><div class="progress-bar svelte-1uxkxb0"></div></div> <p class="upload-percentage svelte-1uxkxb0"> </p></div></div>'), Vg = /* @__PURE__ */ j('<div class="loading-placeholder svelte-1uxkxb0"><!></div>'), Qg = /* @__PURE__ */ j('<!> <div class="resize-border-left svelte-1uxkxb0"></div> <div class="resize-border-top svelte-1uxkxb0"></div> <div class="resize-handle svelte-1uxkxb0"><!></div> <!> <!> <!>', 1), Kg = /* @__PURE__ */ j('<div class="chat svelte-1uxkxb0"><!> <!> <!></div>'), em = (t, e) => b(e, !f(e)), tm = (t, e) => e("normative"), nm = (t, e) => e("suite"), rm = /* @__PURE__ */ j('<div class="bottom-right-buttons svelte-1uxkxb0"><button class="pin-forge-buttons svelte-1uxkxb0"><i class="fa-solid fa-thumbtack"></i></button> <div class="btn-with-tooltip svelte-1uxkxb0"><span class="custom-tooltip svelte-1uxkxb0"> </span> <button class="hidden-btn hidden-btn-1 svelte-1uxkxb0" aria-label="normative"><i class="fa-solid fa-book-open"></i></button></div> <div class="btn-with-tooltip svelte-1uxkxb0"><span class="custom-tooltip svelte-1uxkxb0"> </span> <button class="hidden-btn hidden-btn-2 svelte-1uxkxb0" aria-label="suite info"><i class="fa-solid fa-circle-info"></i></button></div></div>'), sm = /* @__PURE__ */ j('<div class="external-div"><!> <button><i class="fa-solid fa-comment-nodes"></i><span class="d-none d-md-inline ps-2"> </span></button> <!></div>');
10390
+ var Zg = /* @__PURE__ */ j('<div class="drag-overlay svelte-1uxkxb0"><div class="drag-content svelte-1uxkxb0"><!> <p class="svelte-1uxkxb0"> </p></div></div>'), Xg = /* @__PURE__ */ j('<div class="upload-progress-overlay svelte-1uxkxb0"><div class="upload-progress-content svelte-1uxkxb0"><!> <p class="upload-filename svelte-1uxkxb0"> </p> <div class="progress-bar-container svelte-1uxkxb0"><div class="progress-bar svelte-1uxkxb0"></div></div> <p class="upload-percentage svelte-1uxkxb0"> </p></div></div>'), Vg = /* @__PURE__ */ j('<div class="loading-placeholder svelte-1uxkxb0"><!></div>'), Qg = /* @__PURE__ */ j('<!> <div class="resize-border-left svelte-1uxkxb0"></div> <div class="resize-border-top svelte-1uxkxb0"></div> <div class="resize-handle svelte-1uxkxb0"><!></div> <!> <!> <!>', 1), Kg = /* @__PURE__ */ j('<div class="chat svelte-1uxkxb0"><!> <!> <!></div>'), em = (t, e) => m(e, !f(e)), tm = (t, e) => e("normative"), nm = (t, e) => e("suite"), rm = /* @__PURE__ */ j('<div class="bottom-right-buttons svelte-1uxkxb0"><button class="pin-forge-buttons svelte-1uxkxb0"><i class="fa-solid fa-thumbtack"></i></button> <div class="btn-with-tooltip svelte-1uxkxb0"><span class="custom-tooltip svelte-1uxkxb0"> </span> <button class="hidden-btn hidden-btn-1 svelte-1uxkxb0" aria-label="normative"><i class="fa-solid fa-book-open"></i></button></div> <div class="btn-with-tooltip svelte-1uxkxb0"><span class="custom-tooltip svelte-1uxkxb0"> </span> <button class="hidden-btn hidden-btn-2 svelte-1uxkxb0" aria-label="suite info"><i class="fa-solid fa-circle-info"></i></button></div></div>'), sm = /* @__PURE__ */ j('<div class="external-div"><!> <button><i class="fa-solid fa-comment-nodes"></i><span class="d-none d-md-inline ps-2"> </span></button> <!></div>');
10391
10391
  const im = {
10392
10392
  hash: "svelte-1uxkxb0",
10393
10393
  code: ".loading-placeholder.svelte-1uxkxb0 {display:flex;justify-content:center;align-items:center;height:100%;}.chat.svelte-1uxkxb0 {position:fixed;bottom:0;right:0;width:75%;height:90%;min-width:300px;min-height:400px;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);resize:none;overflow:visible;z-index:1000;}.resize-handle.svelte-1uxkxb0 {position:absolute;top:-2px;left:-2px;cursor:nw-resize;z-index:1002;display:flex;align-items:flex-start;justify-content:flex-start;}.resize-border-left.svelte-1uxkxb0 {position:absolute;top:0;left:-2px;width:4px;height:100%;cursor:ew-resize;z-index:1001;background:transparent;}.resize-border-top.svelte-1uxkxb0 {position:absolute;top:-2px;left:0;width:100%;height:4px;cursor:ns-resize;z-index:1001;background:transparent;}.no-select.svelte-1uxkxb0 {user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;}.bottom-right-buttons.svelte-1uxkxb0 {position:fixed;bottom:20px;right:0;display:flex;flex-direction:column;gap:15px;z-index:999;transform:translateX(50px);padding:5px;transition:350ms;}.bottom-right-buttons.visible.svelte-1uxkxb0 {transform:translateX(0);}.bottom-right-buttons.svelte-1uxkxb0:hover {transform:translateX(0);}.pin-forge-buttons.svelte-1uxkxb0 {width:30px;height:30px;border-radius:50%;border:none;background:rgba(0, 0, 0, 0.6);color:white;box-shadow:0 2px 8px rgba(0, 0, 0, 0.2);cursor:pointer;display:flex;align-items:center;justify-content:center;align-self:center;transition:200ms;font-size:14px;}.pin-forge-buttons.svelte-1uxkxb0:hover {background:rgba(0, 0, 0, 0.85);transform:scale(1.1);}.pin-forge-buttons.pinned.svelte-1uxkxb0 {background:#295dcf;transform:rotate(45deg);}.pin-forge-buttons.pinned.svelte-1uxkxb0:hover {background:#1e4ba8;transform:rotate(45deg) scale(1.1);}.btn-with-tooltip.svelte-1uxkxb0 {position:relative;display:flex;align-items:center;transition:300ms;}.btn-with-tooltip.svelte-1uxkxb0:hover {transform:translateX(-6px);}.custom-tooltip.svelte-1uxkxb0 {position:absolute;right:70px;background:rgba(0, 0, 0, 0.85);color:white;padding:8px 12px;border-radius:6px;white-space:nowrap;font-size:14px;opacity:0;pointer-events:none;transition:opacity 200ms;box-shadow:0 2px 8px rgba(0, 0, 0, 0.3);}.bottom-right-buttons.visible.svelte-1uxkxb0 .custom-tooltip:where(.svelte-1uxkxb0) {opacity:1;}.btn-with-tooltip.svelte-1uxkxb0:hover .custom-tooltip:where(.svelte-1uxkxb0) {opacity:1;}.hidden-btn.svelte-1uxkxb0 {width:60px;height:60px;border-radius:50%;border:none;box-shadow:0 2px 8px rgba(0, 0, 0, 0.2);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:200ms;}.hidden-btn-1.svelte-1uxkxb0 {background:#28853d;color:white;}.hidden-btn-1.svelte-1uxkxb0:hover {background:#206a31;}.hidden-btn-2.svelte-1uxkxb0 {background:#0099ff;color:white;}.hidden-btn-2.svelte-1uxkxb0:hover {background:#007acc;}.drag-overlay.svelte-1uxkxb0 {position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(41, 93, 207, 0.95);border-radius:15px;display:flex;align-items:center;justify-content:center;z-index:1010;pointer-events:none;}.drag-content.svelte-1uxkxb0 {text-align:center;color:white;}.drag-content.svelte-1uxkxb0 p:where(.svelte-1uxkxb0) {margin-top:20px;font-size:24px;font-weight:600;}.upload-progress-overlay.svelte-1uxkxb0 {position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.8);border-radius:15px;display:flex;align-items:center;justify-content:center;z-index:1011;}.upload-progress-content.svelte-1uxkxb0 {text-align:center;color:white;padding:30px;background:rgba(41, 93, 207, 0.9);border-radius:10px;min-width:300px;}.upload-filename.svelte-1uxkxb0 {margin:15px 0 10px 0;font-size:16px;font-weight:500;}.progress-bar-container.svelte-1uxkxb0 {width:100%;height:8px;background:rgba(255, 255, 255, 0.2);border-radius:4px;overflow:hidden;margin:10px 0;}.progress-bar.svelte-1uxkxb0 {height:100%;background:white;border-radius:4px;transition:width 0.3s ease;}.upload-percentage.svelte-1uxkxb0 {margin:10px 0 0 0;font-size:20px;font-weight:600;}"
10394
10394
  };
10395
10395
  function lo(t, e) {
10396
- ie(e, !0), ce(t, im);
10397
- let n = G(!1), r = G(!1), s = G("it"), i = G(""), a = G(0), o = G(null), c = G(C([])), l = G(C([])), u = G(!1), d = G(!0), p = G(C(new Audio())), h = G(!0), w = G(""), m = G(""), S = G(C([])), x = G(0), _ = G(null), y = G(!1), F = G(0), $ = G("");
10396
+ ie(e, !0), ue(t, im);
10397
+ let n = G(!1), r = G(!1), s = G("it"), i = G(""), a = G(0), o = G(null), c = G(C([])), l = G(C([])), u = G(!1), d = G(!0), p = G(C(new Audio())), h = G(!0), w = G(""), b = G(""), S = G(C([])), x = G(0), _ = G(null), y = G(!1), F = G(0), $ = G("");
10398
10398
  const A = (B, Y, K) => {
10399
- b(m, f(m) + B), b(S, C(Y)), b(x, C(K));
10399
+ m(b, f(b) + B), m(S, C(Y)), m(x, C(K));
10400
10400
  };
10401
10401
  let L = G("auto");
10402
10402
  const M = ["auto", "audit_handler"];
@@ -10406,70 +10406,75 @@ function lo(t, e) {
10406
10406
  });
10407
10407
  const je = async (B, Y, K = []) => {
10408
10408
  var re, be;
10409
- if (b(w, ""), b(u, !0), b(l, C([
10409
+ if (m(w, ""), m(u, !0), m(l, C([
10410
10410
  ...f(l),
10411
10411
  new Zt((/* @__PURE__ */ new Date()).getTime(), !0, B, B)
10412
- ])), console.log("Current messages:", f(l)), f(l).length == 2 && (console.log("Creating new chat with state:", (re = f(o)) == null ? void 0 : re.state), b(o, C(await Pt.newChat((be = f(o)) == null ? void 0 : be.state))), b(c, C([...f(c), f(o)])), f(o).messages = f(l), await Me()), f(o)) {
10413
- b(_, C(new AbortController()));
10412
+ ])), console.log("Current messages:", f(l)), f(l).length == 2 && (console.log("Creating new chat with state:", (re = f(o)) == null ? void 0 : re.state), m(o, C(await Pt.newChat((be = f(o)) == null ? void 0 : be.state))), m(c, C([...f(c), f(o)])), f(o).messages = f(l), await Me()), f(o)) {
10413
+ m(_, C(new AbortController()));
10414
10414
  try {
10415
10415
  let fe = await Pt.sendMessage(f(o)._id, B, Y, K, A, f(s), f(_).signal);
10416
10416
  if (console.log(fe), fe) {
10417
- b(l, C([
10417
+ m(l, C([
10418
10418
  ...f(l),
10419
- new Zt((/* @__PURE__ */ new Date()).getTime(), !1, "", f(m))
10420
- ])), b(m, "");
10419
+ new Zt((/* @__PURE__ */ new Date()).getTime(), !1, "", f(b))
10420
+ ])), m(b, "");
10421
10421
  return;
10422
10422
  }
10423
- if (b(o, C(await Pt.getChat(f(o)._id))), await Me(), b(m, ""), b(S, C([])), b(l, C([
10423
+ if (m(o, C(await Pt.getChat(f(o)._id))), await Me(), m(b, ""), m(S, C([])), m(l, C([
10424
10424
  ...f(l),
10425
10425
  f(o).messages[f(o).messages.length - 1]
10426
10426
  ])), !f(h)) {
10427
10427
  const ve = f(o).messages[f(o).messages.length - 1];
10428
10428
  try {
10429
- const Te = await Is.getAudio(ve.content, f(s));
10430
- b(p, C(new Audio(Te))), await f(p).play();
10429
+ const Te = await As.getAudio(ve.content, f(s));
10430
+ m(p, C(new Audio(Te))), await f(p).play();
10431
10431
  } catch (Te) {
10432
10432
  console.error("Error playing audio:", Te);
10433
10433
  }
10434
10434
  }
10435
10435
  } catch (fe) {
10436
- fe instanceof Error && fe.name !== "AbortError" && (console.error("Error sending message:", fe), b(w, C(/* @__PURE__ */ fi())));
10436
+ fe instanceof Error && fe.name !== "AbortError" && (console.error("Error sending message:", fe), m(w, C(/* @__PURE__ */ pi())));
10437
10437
  } finally {
10438
- b(_, null), b(u, !1);
10438
+ m(_, null), m(u, !1);
10439
10439
  }
10440
10440
  } else
10441
- b(w, C(/* @__PURE__ */ ed())), b(u, !1);
10441
+ m(w, C(/* @__PURE__ */ ed())), m(u, !1);
10442
10442
  }, ge = () => {
10443
10443
  f(_) && f(_).abort();
10444
10444
  };
10445
- let ue = G(0);
10445
+ let ce = G(0);
10446
10446
  const Ze = (B) => {
10447
- M.includes(f(L)) && (B.preventDefault(), B.stopPropagation(), Bn(ue), b(y, !0));
10447
+ M.includes(f(L)) && (B.preventDefault(), B.stopPropagation(), Bn(ce), m(y, !0));
10448
10448
  }, Xe = (B) => {
10449
10449
  M.includes(f(L)) && (B.preventDefault(), B.stopPropagation());
10450
10450
  }, ut = (B) => {
10451
- M.includes(f(L)) && (B.preventDefault(), B.stopPropagation(), Bn(ue, -1), f(ue) === 0 && b(y, !1));
10451
+ M.includes(f(L)) && (B.preventDefault(), B.stopPropagation(), Bn(ce, -1), f(ce) === 0 && m(y, !1));
10452
10452
  }, gt = async (B) => {
10453
10453
  var fe, ve, Te;
10454
10454
  if (!M.includes(f(L))) return;
10455
10455
  B.preventDefault(), B.stopPropagation();
10456
10456
  const Y = (fe = B.dataTransfer) == null ? void 0 : fe.types;
10457
- console.log("[DROP DEBUG] DataTransfer types:", Y), b($, C(/* @__PURE__ */ cd())), b(F, 0);
10457
+ console.log("[DROP DEBUG] DataTransfer types:", Y), m($, C(/* @__PURE__ */ cd())), m(F, 0);
10458
10458
  let K = "", re = "";
10459
10459
  if (Y && Y.includes("file_id")) {
10460
10460
  let Ae = B.dataTransfer.getData("file_id");
10461
10461
  console.log("[DROP DEBUG] externalId:", Ae);
10462
- let W = U.getEnvironmentId().split("_")[1] + "_" + Ae, ee = await ft.getDocumentFromSuite(W);
10463
- if (!ee) {
10464
- alert(/* @__PURE__ */ Ea()), b(y, !1), b(ue, 0), b($, ""), b(F, 0);
10465
- return;
10462
+ let W = U.getEnvironmentId().split("_")[1] + "_" + Ae;
10463
+ try {
10464
+ let ee = await ft.getDocumentFromSuite(W);
10465
+ if (!ee) {
10466
+ alert(/* @__PURE__ */ os()), m(y, !1), m(ce, 0), m($, ""), m(F, 0);
10467
+ return;
10468
+ }
10469
+ m($, C(ee.name)), Ae = await R(ee), re = ee.name;
10470
+ } catch (ee) {
10471
+ console.error("Error fetching document from Suite:", ee), alert(/* @__PURE__ */ os()), m(y, !1), m(ce, 0), m($, "");
10466
10472
  }
10467
- b($, C(ee.name)), Ae = await R(ee), re = ee.name;
10468
10473
  } else {
10469
10474
  const Ae = (ve = B.dataTransfer) == null ? void 0 : ve.files;
10470
- Ae && Ae.length > 0 && (b($, C(Array.from(Ae)[0].name)), await R(Array.from(Ae)[0]), re = Array.from(Ae)[0].name);
10475
+ Ae && Ae.length > 0 && (m($, C(Array.from(Ae)[0].name)), await R(Array.from(Ae)[0]), re = Array.from(Ae)[0].name);
10471
10476
  }
10472
- b(y, !1), b(ue, 0);
10477
+ m(y, !1), m(ce, 0);
10473
10478
  let be = {
10474
10479
  id: K,
10475
10480
  filename: re,
@@ -10482,11 +10487,11 @@ function lo(t, e) {
10482
10487
  }, R = async (B) => {
10483
10488
  try {
10484
10489
  const Y = await Pt.uploadFile(B, (K) => {
10485
- b(F, C(K));
10490
+ m(F, C(K));
10486
10491
  });
10487
10492
  return Object.keys(f(H)).forEach((K) => {
10488
10493
  f(H)[K].storage_id && f(H)[K].storage_id !== "" && (delete f(H)[K], Pt.deleteFile(f(H)[K].storage_id, f(H)[K].title));
10489
- }), b($, ""), b(F, 0), f(H)[Y] = {
10494
+ }), m($, ""), m(F, 0), f(H)[Y] = {
10490
10495
  title: B.name,
10491
10496
  ext_id: "",
10492
10497
  gendoc_id: "",
@@ -10494,7 +10499,7 @@ function lo(t, e) {
10494
10499
  isCommon: !0
10495
10500
  }, Y;
10496
10501
  } catch (Y) {
10497
- throw console.error("Error uploading file:", Y), b(w, C(/* @__PURE__ */ fi())), b($, ""), b(F, 0), Y;
10502
+ throw console.error("Error uploading file:", Y), m(w, C(/* @__PURE__ */ pi())), m($, ""), m(F, 0), Y;
10498
10503
  }
10499
10504
  };
10500
10505
  Ct(() => {
@@ -10529,22 +10534,22 @@ function lo(t, e) {
10529
10534
  }
10530
10535
  }
10531
10536
  const Me = async () => {
10532
- b(c, C(await Pt.getChats())), b(c, C(f(c).sort((B, Y) => Y.lastUpdate - B.lastUpdate)));
10537
+ m(c, C(await Pt.getChats())), m(c, C(f(c).sort((B, Y) => Y.lastUpdate - B.lastUpdate)));
10533
10538
  };
10534
10539
  let ye = G(!1), J = G(!1);
10535
10540
  const ze = async () => {
10536
- f(n) ? f(r) ? (b(r, !1), setTimeout(
10541
+ f(n) ? f(r) ? (m(r, !1), setTimeout(
10537
10542
  () => {
10538
- b(n, !1);
10543
+ m(n, !1);
10539
10544
  },
10540
10545
  450
10541
- )) : b(n, !1) : (b(n, !0), b(J, !0), await Me(), b(J, !1));
10546
+ )) : m(n, !1) : (m(n, !0), m(J, !0), await Me(), m(J, !1));
10542
10547
  }, ne = () => {
10543
- b(o, C(new on(
10548
+ m(o, C(new on(
10544
10549
  "",
10545
10550
  "",
10546
10551
  "",
10547
- /* @__PURE__ */ Ta(),
10552
+ /* @__PURE__ */ Sa(),
10548
10553
  {
10549
10554
  lockedAgentId: null,
10550
10555
  pendingAction: null,
@@ -10553,19 +10558,19 @@ function lo(t, e) {
10553
10558
  [
10554
10559
  Zt.firstMessage(f(s), f(i), f(L))
10555
10560
  ]
10556
- ))), b(m, ""), b(l, C(f(o).messages)), b(w, "");
10561
+ ))), m(b, ""), m(l, C(f(o).messages)), m(w, "");
10557
10562
  }, me = (B) => {
10558
- f(L) !== B && (b(L, C(B)), ne()), ze(), b(H, C({}));
10563
+ f(L) !== B && (m(L, C(B)), ne()), ze(), m(H, C({}));
10559
10564
  };
10560
10565
  Lr(async () => {
10561
10566
  try {
10562
- b(s, C(X()));
10567
+ m(s, C(X()));
10563
10568
  const B = await ft.getUsername();
10564
- b(i, C(B));
10569
+ m(i, C(B));
10565
10570
  const Y = await ft.getUserLevel();
10566
- b(a, C(Y));
10571
+ m(a, C(Y));
10567
10572
  const K = Zt.firstMessage(f(s), f(i), f(L));
10568
- b(l, C([K])), b(o, C(new on(
10573
+ m(l, C([K])), m(o, C(new on(
10569
10574
  "",
10570
10575
  "",
10571
10576
  "",
@@ -10576,15 +10581,15 @@ function lo(t, e) {
10576
10581
  info: []
10577
10582
  },
10578
10583
  [K]
10579
- ))), b(le, C(U.getForgeButtonsPinned())), b(Oe, !0);
10584
+ ))), m(le, C(U.getForgeButtonsPinned())), m(Oe, !0);
10580
10585
  const re = (be) => {
10581
- (be.clientX <= 0 || be.clientY <= 0 || be.clientX >= window.innerWidth || be.clientY >= window.innerHeight) && (b(y, !1), b(ue, 0));
10586
+ (be.clientX <= 0 || be.clientY <= 0 || be.clientX >= window.innerWidth || be.clientY >= window.innerHeight) && (m(y, !1), m(ce, 0));
10582
10587
  };
10583
10588
  window.addEventListener("dragleave", re), window.addEventListener("dragend", () => {
10584
- b(y, !1), b(ue, 0);
10585
- }), b(d, !1);
10589
+ m(y, !1), m(ce, 0);
10590
+ }), m(d, !1);
10586
10591
  } catch (B) {
10587
- console.error("Failed to load username", B), b(w, C(/* @__PURE__ */ td())), b(d, !1);
10592
+ console.error("Failed to load username", B), m(w, C(/* @__PURE__ */ td())), m(d, !1);
10588
10593
  }
10589
10594
  });
10590
10595
  var he = sm(), Ne = z(he);
@@ -10660,43 +10665,43 @@ function lo(t, e) {
10660
10665
  return f(r);
10661
10666
  },
10662
10667
  set showHistory(q) {
10663
- b(r, C(q));
10668
+ m(r, C(q));
10664
10669
  },
10665
10670
  get actChat() {
10666
10671
  return f(o);
10667
10672
  },
10668
10673
  set actChat(q) {
10669
- b(o, C(q));
10674
+ m(o, C(q));
10670
10675
  },
10671
10676
  get chats() {
10672
10677
  return f(c);
10673
10678
  },
10674
10679
  set chats(q) {
10675
- b(c, C(q));
10680
+ m(c, C(q));
10676
10681
  },
10677
10682
  get messages() {
10678
10683
  return f(l);
10679
10684
  },
10680
10685
  set messages(q) {
10681
- b(l, C(q));
10686
+ m(l, C(q));
10682
10687
  },
10683
10688
  get error() {
10684
10689
  return f(w);
10685
10690
  },
10686
10691
  set error(q) {
10687
- b(w, C(q));
10692
+ m(w, C(q));
10688
10693
  },
10689
10694
  get loadingChat() {
10690
10695
  return f(ye);
10691
10696
  },
10692
10697
  set loadingChat(q) {
10693
- b(ye, C(q));
10698
+ m(ye, C(q));
10694
10699
  },
10695
10700
  get loadingChats() {
10696
10701
  return f(J);
10697
10702
  },
10698
10703
  set loadingChats(q) {
10699
- b(J, C(q));
10704
+ m(J, C(q));
10700
10705
  }
10701
10706
  });
10702
10707
  var Fe = P(te, 6), De = z(Fe);
@@ -10716,43 +10721,43 @@ function lo(t, e) {
10716
10721
  return f(n);
10717
10722
  },
10718
10723
  set show(q) {
10719
- b(n, C(q));
10724
+ m(n, C(q));
10720
10725
  },
10721
10726
  get showHistory() {
10722
10727
  return f(r);
10723
10728
  },
10724
10729
  set showHistory(q) {
10725
- b(r, C(q));
10730
+ m(r, C(q));
10726
10731
  },
10727
10732
  get actChat() {
10728
10733
  return f(o);
10729
10734
  },
10730
10735
  set actChat(q) {
10731
- b(o, C(q));
10736
+ m(o, C(q));
10732
10737
  },
10733
10738
  get muted() {
10734
10739
  return f(h);
10735
10740
  },
10736
10741
  set muted(q) {
10737
- b(h, C(q));
10742
+ m(h, C(q));
10738
10743
  },
10739
10744
  get languageSelected() {
10740
10745
  return f(s);
10741
10746
  },
10742
10747
  set languageSelected(q) {
10743
- b(s, C(q));
10748
+ m(s, C(q));
10744
10749
  },
10745
10750
  get username() {
10746
10751
  return f(i);
10747
10752
  },
10748
10753
  set username(q) {
10749
- b(i, C(q));
10754
+ m(i, C(q));
10750
10755
  },
10751
10756
  get error() {
10752
10757
  return f(w);
10753
10758
  },
10754
10759
  set error(q) {
10755
- b(w, C(q));
10760
+ m(w, C(q));
10756
10761
  }
10757
10762
  });
10758
10763
  var We = P(He, 2);
@@ -10761,55 +10766,55 @@ function lo(t, e) {
10761
10766
  return f(l);
10762
10767
  },
10763
10768
  set messages(q) {
10764
- b(l, C(q));
10769
+ m(l, C(q));
10765
10770
  },
10766
10771
  get loading() {
10767
10772
  return f(u);
10768
10773
  },
10769
10774
  set loading(q) {
10770
- b(u, C(q));
10775
+ m(u, C(q));
10771
10776
  },
10772
10777
  get error() {
10773
10778
  return f(w);
10774
10779
  },
10775
10780
  set error(q) {
10776
- b(w, C(q));
10781
+ m(w, C(q));
10777
10782
  },
10778
10783
  get streamMessage() {
10779
- return f(m);
10784
+ return f(b);
10780
10785
  },
10781
10786
  set streamMessage(q) {
10782
- b(m, C(q));
10787
+ m(b, C(q));
10783
10788
  },
10784
10789
  get streamAttachments() {
10785
10790
  return f(S);
10786
10791
  },
10787
10792
  set streamAttachments(q) {
10788
- b(S, C(q));
10793
+ m(S, C(q));
10789
10794
  },
10790
10795
  get streamedAgent() {
10791
10796
  return f(x);
10792
10797
  },
10793
10798
  set streamedAgent(q) {
10794
- b(x, C(q));
10799
+ m(x, C(q));
10795
10800
  },
10796
10801
  get languageSelected() {
10797
10802
  return f(s);
10798
10803
  },
10799
10804
  set languageSelected(q) {
10800
- b(s, C(q));
10805
+ m(s, C(q));
10801
10806
  },
10802
10807
  get userLevel() {
10803
10808
  return f(a);
10804
10809
  },
10805
10810
  set userLevel(q) {
10806
- b(a, C(q));
10811
+ m(a, C(q));
10807
10812
  },
10808
10813
  get loadingChat() {
10809
10814
  return f(ye);
10810
10815
  },
10811
10816
  set loadingChat(q) {
10812
- b(ye, C(q));
10817
+ m(ye, C(q));
10813
10818
  }
10814
10819
  });
10815
10820
  var Dt = P(We, 2);
@@ -10821,37 +10826,37 @@ function lo(t, e) {
10821
10826
  return f(u);
10822
10827
  },
10823
10828
  set loading(q) {
10824
- b(u, C(q));
10829
+ m(u, C(q));
10825
10830
  },
10826
10831
  get languageSelected() {
10827
10832
  return f(s);
10828
10833
  },
10829
10834
  set languageSelected(q) {
10830
- b(s, C(q));
10835
+ m(s, C(q));
10831
10836
  },
10832
10837
  get modeSelected() {
10833
10838
  return f(L);
10834
10839
  },
10835
10840
  set modeSelected(q) {
10836
- b(L, C(q));
10841
+ m(L, C(q));
10837
10842
  },
10838
10843
  get attachments() {
10839
10844
  return f(H);
10840
10845
  },
10841
10846
  set attachments(q) {
10842
- b(H, C(q));
10847
+ m(H, C(q));
10843
10848
  },
10844
10849
  get userLevel() {
10845
10850
  return f(a);
10846
10851
  },
10847
10852
  set userLevel(q) {
10848
- b(a, C(q));
10853
+ m(a, C(q));
10849
10854
  },
10850
10855
  get actChat() {
10851
10856
  return f(o);
10852
10857
  },
10853
10858
  set actChat(q) {
10854
- b(o, C(q));
10859
+ m(o, C(q));
10855
10860
  }
10856
10861
  }), T(D, Z);
10857
10862
  };
@@ -10902,7 +10907,7 @@ function lo(t, e) {
10902
10907
  se(Y, "visible", f(le)), N(K, "aria-label", f(le) ? "unpin forge buttons" : "pin forge buttons"), se(K, "pinned", f(le)), $e(fe, ee), $e(xe, E);
10903
10908
  },
10904
10909
  [
10905
- () => /* @__PURE__ */ $a(),
10910
+ () => /* @__PURE__ */ Ta(),
10906
10911
  () => /* @__PURE__ */ Ca()
10907
10912
  ]
10908
10913
  ), bt(3, Y, () => Bt), T(B, Y);