akpm-knowledge-base-chat 2.0.5 → 2.0.6

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 +867 -867
  2. package/package.json +1 -1
package/CDN/akb-chat.js CHANGED
@@ -1,4 +1,4 @@
1
- /* Version: 2.0.5 */
1
+ /* Version: 2.0.6 */
2
2
  var lo = Object.defineProperty;
3
3
  var Js = (t) => {
4
4
  throw TypeError(t);
@@ -8,7 +8,7 @@ var C = (t, e, n) => co(t, typeof e != "symbol" ? e + "" : e, n), Ws = (t, e, n)
8
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);
9
9
  const uo = "5";
10
10
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(uo);
11
- const hs = 1, ps = 2, Ai = 4, fo = 8, ho = 16, po = 1, vo = 2, Li = 4, go = 8, mo = 16, bo = 1, xo = 2, wo = 4, _o = 1, ko = 2, Ri = "[", vs = "[!", gs = "]", mn = {}, it = Symbol();
11
+ const ps = 1, hs = 2, Ai = 4, fo = 8, po = 16, ho = 1, vo = 2, Li = 4, go = 8, mo = 16, bo = 1, xo = 2, wo = 4, _o = 1, ko = 2, ji = "[", vs = "[!", gs = "]", mn = {}, it = Symbol();
12
12
  function yo(t) {
13
13
  return t.endsWith("capture") && t !== "gotpointercapture" && t !== "lostpointercapture";
14
14
  }
@@ -59,20 +59,20 @@ function Co(t) {
59
59
  return Eo.includes(t);
60
60
  }
61
61
  const Wr = !1;
62
- var kr = Array.isArray, Io = Array.prototype.indexOf, ms = Array.from, lr = Object.keys, cr = Object.defineProperty, on = Object.getOwnPropertyDescriptor, ji = Object.getOwnPropertyDescriptors, Ao = Object.prototype, Lo = Array.prototype, bs = Object.getPrototypeOf;
63
- function Ro(t) {
62
+ var kr = Array.isArray, Io = Array.prototype.indexOf, ms = Array.from, lr = Object.keys, cr = Object.defineProperty, on = Object.getOwnPropertyDescriptor, Ri = Object.getOwnPropertyDescriptors, Ao = Object.prototype, Lo = Array.prototype, bs = Object.getPrototypeOf;
63
+ function jo(t) {
64
64
  return typeof t == "function";
65
65
  }
66
66
  const An = () => {
67
67
  };
68
- function jo(t) {
68
+ function Ro(t) {
69
69
  return t();
70
70
  }
71
71
  function ur(t) {
72
72
  for (var e = 0; e < t.length; e++)
73
73
  t[e]();
74
74
  }
75
- const pt = 2, Fi = 4, Yn = 8, yr = 16, Dt = 32, dn = 64, dr = 128, fn = 256, fr = 512, Xe = 1024, Ht = 2048, hn = 4096, At = 8192, yn = 16384, Di = 32768, zr = 65536, Fo = 1 << 17, Do = 1 << 19, Oi = 1 << 20, qt = Symbol("$state"), Pi = Symbol("legacy props"), Oo = Symbol("");
75
+ const ht = 2, Fi = 4, Yn = 8, yr = 16, Dt = 32, dn = 64, dr = 128, fn = 256, fr = 512, Xe = 1024, Ht = 2048, pn = 4096, At = 8192, yn = 16384, Di = 32768, zr = 65536, Fo = 1 << 17, Do = 1 << 19, Oi = 1 << 20, qt = Symbol("$state"), Pi = Symbol("legacy props"), Oo = Symbol("");
76
76
  function Mi(t) {
77
77
  return t === this.v;
78
78
  }
@@ -142,7 +142,7 @@ function Jt(t, e = !1) {
142
142
  }
143
143
  // @__NO_SIDE_EFFECTS__
144
144
  function Ni(t) {
145
- return Ie !== null && Ie.f & pt && (Lt === null ? cl([t]) : Lt.push(t)), t;
145
+ return Ie !== null && Ie.f & ht && (Lt === null ? cl([t]) : Lt.push(t)), t;
146
146
  }
147
147
  function Ur(t, e) {
148
148
  return b(
@@ -151,22 +151,22 @@ function Ur(t, e) {
151
151
  ), e;
152
152
  }
153
153
  function b(t, e) {
154
- return Ie !== null && !Vt && Wn() && Ie.f & (pt | yr) && // If the source was created locally within the current derived, then
154
+ return Ie !== null && !Vt && Wn() && Ie.f & (ht | yr) && // If the source was created locally within the current derived, then
155
155
  // we allow the mutation.
156
156
  (Lt === null || !Lt.includes(t)) && Wo(), 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), Wn() && pe !== null && pe.f & Xe && !(pe.f & (Dt | dn)) && (Ot === null ? ul([t]) : Ot.push(t))), e;
159
+ return t.equals(e) || (t.v, t.v = e, t.wv = ia(), Ui(t, Ht), Wn() && he !== null && he.f & Xe && !(he.f & (Dt | dn)) && (Ot === null ? ul([t]) : Ot.push(t))), e;
160
160
  }
161
161
  function Ui(t, e) {
162
162
  var n = t.reactions;
163
163
  if (n !== null)
164
164
  for (var r = Wn(), s = n.length, i = 0; i < s; i++) {
165
165
  var a = n[i], o = a.f;
166
- o & Ht || !r && a === pe || (zt(a, e), o & (Xe | fn) && (o & pt ? Ui(
166
+ o & Ht || !r && a === he || (zt(a, e), o & (Xe | fn) && (o & ht ? Ui(
167
167
  /** @type {Derived} */
168
168
  a,
169
- hn
169
+ pn
170
170
  ) : Ir(
171
171
  /** @type {Effect} */
172
172
  a
@@ -181,13 +181,13 @@ function Ut(t) {
181
181
  de = t;
182
182
  }
183
183
  let be;
184
- function ht(t) {
184
+ function pt(t) {
185
185
  if (t === null)
186
186
  throw Tr(), mn;
187
187
  return be = t;
188
188
  }
189
189
  function wn() {
190
- return ht(
190
+ return pt(
191
191
  /** @type {TemplateNode} */
192
192
  /* @__PURE__ */ Yt(be)
193
193
  );
@@ -209,7 +209,7 @@ function Xr() {
209
209
  if (n === gs) {
210
210
  if (t === 0) return e;
211
211
  t -= 1;
212
- } else (n === Ri || n === vs) && (t += 1);
212
+ } else (n === ji || n === vs) && (t += 1);
213
213
  }
214
214
  var r = (
215
215
  /** @type {TemplateNode} */
@@ -248,8 +248,8 @@ function I(t, e = null, n) {
248
248
  var d = (
249
249
  /** @type {Source<number>} */
250
250
  s.get("length")
251
- ), h = Number(l);
252
- Number.isInteger(h) && h < d.v && b(d, h);
251
+ ), p = Number(l);
252
+ Number.isInteger(p) && p < d.v && b(d, p);
253
253
  }
254
254
  b(u, it), Zs(a);
255
255
  }
@@ -259,10 +259,10 @@ function I(t, e = null, n) {
259
259
  var w;
260
260
  if (l === qt)
261
261
  return t;
262
- var d = s.get(l), h = l in c;
263
- if (d === void 0 && (!h || (w = on(c, l)) != null && w.writable) && (d = at(I(h ? c[l] : it, o)), s.set(l, d)), d !== void 0) {
264
- var p = f(d);
265
- return p === it ? void 0 : p;
262
+ var d = s.get(l), p = l in c;
263
+ if (d === void 0 && (!p || (w = on(c, l)) != null && w.writable) && (d = at(I(p ? c[l] : it, o)), s.set(l, d)), d !== void 0) {
264
+ var h = f(d);
265
+ return h === it ? void 0 : h;
266
266
  }
267
267
  return Reflect.get(c, l, u);
268
268
  },
@@ -272,42 +272,42 @@ function I(t, e = null, n) {
272
272
  var d = s.get(l);
273
273
  d && (u.value = f(d));
274
274
  } else if (u === void 0) {
275
- var h = s.get(l), p = h == null ? void 0 : h.v;
276
- if (h !== void 0 && p !== it)
275
+ var p = s.get(l), h = p == null ? void 0 : p.v;
276
+ if (p !== void 0 && h !== it)
277
277
  return {
278
278
  enumerable: !0,
279
279
  configurable: !0,
280
- value: p,
280
+ value: h,
281
281
  writable: !0
282
282
  };
283
283
  }
284
284
  return u;
285
285
  },
286
286
  has(c, l) {
287
- var p;
287
+ var h;
288
288
  if (l === qt)
289
289
  return !0;
290
290
  var u = s.get(l), d = u !== void 0 && u.v !== it || Reflect.has(c, l);
291
- if (u !== void 0 || pe !== null && (!d || (p = on(c, l)) != null && p.writable)) {
291
+ if (u !== void 0 || he !== null && (!d || (h = on(c, l)) != null && h.writable)) {
292
292
  u === void 0 && (u = at(d ? I(c[l], o) : it), s.set(l, u));
293
- var h = f(u);
294
- if (h === it)
293
+ var p = f(u);
294
+ if (p === it)
295
295
  return !1;
296
296
  }
297
297
  return d;
298
298
  },
299
299
  set(c, l, u, d) {
300
300
  var z;
301
- var h = s.get(l), p = l in c;
301
+ var p = s.get(l), h = l in c;
302
302
  if (i && l === "length")
303
303
  for (var w = u; w < /** @type {Source<number>} */
304
- h.v; w += 1) {
304
+ p.v; w += 1) {
305
305
  var m = s.get(w + "");
306
306
  m !== void 0 ? b(m, it) : w in c && (m = at(it), s.set(w + "", m));
307
307
  }
308
- h === void 0 ? (!p || (z = on(c, l)) != null && z.writable) && (h = at(void 0), b(h, I(u, o)), s.set(l, h)) : (p = h.v !== it, b(h, I(u, o)));
308
+ p === void 0 ? (!h || (z = on(c, l)) != null && z.writable) && (p = at(void 0), b(p, I(u, o)), s.set(l, p)) : (h = p.v !== it, b(p, I(u, o)));
309
309
  var S = Reflect.getOwnPropertyDescriptor(c, l);
310
- if (S != null && S.set && S.set.call(d, u), !p) {
310
+ if (S != null && S.set && S.set.call(d, u), !h) {
311
311
  if (i && typeof l == "string") {
312
312
  var x = (
313
313
  /** @type {Source<number>} */
@@ -321,9 +321,9 @@ function I(t, e = null, n) {
321
321
  },
322
322
  ownKeys(c) {
323
323
  f(a);
324
- var l = Reflect.ownKeys(c).filter((h) => {
325
- var p = s.get(h);
326
- return p === void 0 || p.v !== it;
324
+ var l = Reflect.ownKeys(c).filter((p) => {
325
+ var h = s.get(p);
326
+ return h === void 0 || h.v !== it;
327
327
  });
328
328
  for (var [u, d] of s)
329
329
  d.v !== it && !(u in c) && l.push(u);
@@ -374,9 +374,9 @@ function y(t, e) {
374
374
  n = be.appendChild(Qt());
375
375
  else if (e && n.nodeType !== 3) {
376
376
  var r = Qt();
377
- return n == null || n.before(r), ht(r), r;
377
+ return n == null || n.before(r), pt(r), r;
378
378
  }
379
- return ht(n), n;
379
+ return pt(n), n;
380
380
  }
381
381
  function ft(t, e) {
382
382
  if (!de) {
@@ -401,9 +401,9 @@ function O(t, e = 1, n = !1) {
401
401
  var i = r == null ? void 0 : r.nodeType;
402
402
  if (n && i !== 3) {
403
403
  var a = Qt();
404
- return r === null ? s == null || s.after(a) : r.before(a), ht(a), a;
404
+ return r === null ? s == null || s.after(a) : r.before(a), pt(a), a;
405
405
  }
406
- return ht(r), /** @type {TemplateNode} */
406
+ return pt(r), /** @type {TemplateNode} */
407
407
  r;
408
408
  }
409
409
  function ws(t) {
@@ -411,9 +411,9 @@ function ws(t) {
411
411
  }
412
412
  // @__NO_SIDE_EFFECTS__
413
413
  function Ne(t) {
414
- var e = pt | Ht;
415
- pe === null ? e |= fn : pe.f |= Oi;
416
- var n = Ie !== null && Ie.f & pt ? (
414
+ var e = ht | Ht;
415
+ he === null ? e |= fn : he.f |= Oi;
416
+ var n = Ie !== null && Ie.f & ht ? (
417
417
  /** @type {Derived} */
418
418
  Ie
419
419
  ) : null;
@@ -431,7 +431,7 @@ function Ne(t) {
431
431
  null
432
432
  ),
433
433
  wv: 0,
434
- parent: n ?? pe
434
+ parent: n ?? he
435
435
  };
436
436
  return n !== null && (n.children ?? (n.children = [])).push(r), r;
437
437
  }
@@ -446,10 +446,10 @@ function Yi(t) {
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 & pt ? _s(
449
+ r.f & ht ? _s(
450
450
  /** @type {Derived} */
451
451
  r
452
- ) : Rt(
452
+ ) : jt(
453
453
  /** @type {Effect} */
454
454
  r
455
455
  );
@@ -458,7 +458,7 @@ function Yi(t) {
458
458
  }
459
459
  function Qo(t) {
460
460
  for (var e = t.parent; e !== null; ) {
461
- if (!(e.f & pt))
461
+ if (!(e.f & ht))
462
462
  return (
463
463
  /** @type {Effect} */
464
464
  e
@@ -468,7 +468,7 @@ function Qo(t) {
468
468
  return null;
469
469
  }
470
470
  function Gi(t) {
471
- var e, n = pe;
471
+ var e, n = he;
472
472
  yt(Qo(t));
473
473
  try {
474
474
  Yi(t), e = oa(t);
@@ -478,21 +478,21 @@ function Gi(t) {
478
478
  return e;
479
479
  }
480
480
  function Ji(t) {
481
- var e = Gi(t), n = (an || t.f & fn) && t.deps !== null ? hn : Xe;
481
+ var e = Gi(t), n = (an || t.f & fn) && t.deps !== null ? pn : Xe;
482
482
  zt(t, n), t.equals(e) || (t.v = e, t.wv = ia());
483
483
  }
484
484
  function _s(t) {
485
485
  Yi(t), Bn(t, 0), zt(t, yn), t.v = t.children = t.deps = t.ctx = t.reactions = null;
486
486
  }
487
487
  function Wi(t) {
488
- pe === null && Ie === null && Uo(), Ie !== null && Ie.f & fn && No(), zs && Mo();
488
+ he === null && Ie === null && Uo(), Ie !== null && Ie.f & fn && No(), zs && Mo();
489
489
  }
490
490
  function Ko(t, e) {
491
491
  var n = e.last;
492
492
  n === null ? e.last = e.first = t : (n.next = t, t.prev = n, e.last = t);
493
493
  }
494
- function pn(t, e, n, r = !0) {
495
- var s = (t & dn) !== 0, i = pe, a = {
494
+ function hn(t, e, n, r = !0) {
495
+ var s = (t & dn) !== 0, i = he, a = {
496
496
  ctx: ze,
497
497
  deps: null,
498
498
  deriveds: null,
@@ -514,13 +514,13 @@ function pn(t, e, n, r = !0) {
514
514
  try {
515
515
  Qs(!0), Cr(a), a.f |= Di;
516
516
  } catch (u) {
517
- throw Rt(a), u;
517
+ throw jt(a), u;
518
518
  } finally {
519
519
  Qs(o);
520
520
  }
521
521
  } else e !== null && Ir(a);
522
522
  var c = n && a.deps === null && a.first === null && a.nodes_start === null && a.teardown === null && (a.f & (Oi | dr)) === 0;
523
- if (!c && !s && r && (i !== null && Ko(a, i), Ie !== null && Ie.f & pt)) {
523
+ if (!c && !s && r && (i !== null && Ko(a, i), Ie !== null && Ie.f & ht)) {
524
524
  var l = (
525
525
  /** @type {Derived} */
526
526
  Ie
@@ -530,12 +530,12 @@ function pn(t, e, n, r = !0) {
530
530
  return a;
531
531
  }
532
532
  function el(t) {
533
- const e = pn(Yn, null, !1);
533
+ const e = hn(Yn, null, !1);
534
534
  return zt(e, Xe), e.teardown = t, e;
535
535
  }
536
536
  function It(t) {
537
537
  Wi();
538
- var e = pe !== null && (pe.f & Dt) !== 0 && ze !== null && !ze.m;
538
+ var e = he !== null && (he.f & Dt) !== 0 && ze !== null && !ze.m;
539
539
  if (e) {
540
540
  var n = (
541
541
  /** @type {ComponentContext} */
@@ -543,7 +543,7 @@ function It(t) {
543
543
  );
544
544
  (n.e ?? (n.e = [])).push({
545
545
  fn: t,
546
- effect: pe,
546
+ effect: he,
547
547
  reaction: Ie
548
548
  });
549
549
  } else {
@@ -555,21 +555,21 @@ function tl(t) {
555
555
  return Wi(), Tn(t);
556
556
  }
557
557
  function nl(t) {
558
- const e = pn(dn, t, !0);
558
+ const e = hn(dn, t, !0);
559
559
  return () => {
560
- Rt(e);
560
+ jt(e);
561
561
  };
562
562
  }
563
563
  function rl(t) {
564
- const e = pn(dn, t, !0);
564
+ const e = hn(dn, t, !0);
565
565
  return (n = {}) => new Promise((r) => {
566
- n.outro ? hr(e, () => {
567
- Rt(e), r(void 0);
568
- }) : (Rt(e), r(void 0));
566
+ n.outro ? pr(e, () => {
567
+ jt(e), r(void 0);
568
+ }) : (jt(e), r(void 0));
569
569
  });
570
570
  }
571
571
  function $n(t) {
572
- return pn(Fi, t, !1);
572
+ return hn(Fi, t, !1);
573
573
  }
574
574
  function Gn(t, e) {
575
575
  var n = (
@@ -589,34 +589,34 @@ function Jn() {
589
589
  if (f(t.l.r2)) {
590
590
  for (var e of t.l.r1) {
591
591
  var n = e.effect;
592
- n.f & Xe && zt(n, hn), En(n) && Cr(n), e.ran = !1;
592
+ n.f & Xe && zt(n, pn), En(n) && Cr(n), e.ran = !1;
593
593
  }
594
594
  t.l.r2.v = !1;
595
595
  }
596
596
  });
597
597
  }
598
598
  function Tn(t) {
599
- return pn(Yn, t, !0);
599
+ return hn(Yn, t, !0);
600
600
  }
601
601
  function D(t, e = [], n = Ne) {
602
602
  const r = e.map(n);
603
603
  return Sr(() => t(...r.map(f)));
604
604
  }
605
605
  function Sr(t, e = 0) {
606
- return pn(Yn | yr | e, t, !0);
606
+ return hn(Yn | yr | e, t, !0);
607
607
  }
608
608
  function _n(t, e = !0) {
609
- return pn(Yn | Dt, t, !0, e);
609
+ return hn(Yn | Dt, t, !0, e);
610
610
  }
611
611
  function Zi(t) {
612
612
  var e = t.teardown;
613
613
  if (e !== null) {
614
614
  const n = zs, r = Ie;
615
- Ks(!0), jt(null);
615
+ Ks(!0), Rt(null);
616
616
  try {
617
617
  e.call(null);
618
618
  } finally {
619
- Ks(n), jt(r);
619
+ Ks(n), Rt(r);
620
620
  }
621
621
  }
622
622
  }
@@ -632,16 +632,16 @@ function Vi(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;
635
- Rt(n, e), n = r;
635
+ jt(n, e), n = r;
636
636
  }
637
637
  }
638
638
  function sl(t) {
639
639
  for (var e = t.first; e !== null; ) {
640
640
  var n = e.next;
641
- e.f & Dt || Rt(e), e = n;
641
+ e.f & Dt || jt(e), e = n;
642
642
  }
643
643
  }
644
- function Rt(t, e = !0) {
644
+ function jt(t, e = !0) {
645
645
  var n = !1;
646
646
  if ((e || t.f & Do) && t.nodes_start !== null) {
647
647
  for (var r = t.nodes_start, s = t.nodes_end; r !== null; ) {
@@ -666,10 +666,10 @@ function Qi(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
- function hr(t, e) {
669
+ function pr(t, e) {
670
670
  var n = [];
671
671
  ks(t, n, !0), Ki(n, () => {
672
- Rt(t), e && e();
672
+ jt(t), e && e();
673
673
  });
674
674
  }
675
675
  function Ki(t, e) {
@@ -692,7 +692,7 @@ function ks(t, e, n) {
692
692
  }
693
693
  }
694
694
  }
695
- function pr(t) {
695
+ function hr(t) {
696
696
  ea(t, !0);
697
697
  }
698
698
  function ea(t, e) {
@@ -741,12 +741,12 @@ function Ks(t) {
741
741
  }
742
742
  let sn = [], xn = 0;
743
743
  let Ie = null, Vt = !1;
744
- function jt(t) {
744
+ function Rt(t) {
745
745
  Ie = t;
746
746
  }
747
- let pe = null;
747
+ let he = null;
748
748
  function yt(t) {
749
- pe = t;
749
+ he = t;
750
750
  }
751
751
  let Lt = null;
752
752
  function cl(t) {
@@ -768,10 +768,10 @@ function En(t) {
768
768
  var e = t.f;
769
769
  if (e & Ht)
770
770
  return !0;
771
- if (e & hn) {
771
+ if (e & pn) {
772
772
  var n = t.deps, r = (e & fn) !== 0;
773
773
  if (n !== null) {
774
- var s, i, a = (e & fr) !== 0, o = r && pe !== null && !an, c = n.length;
774
+ var s, i, a = (e & fr) !== 0, o = r && he !== null && !an, c = n.length;
775
775
  if (a || o) {
776
776
  for (s = 0; s < c; s++)
777
777
  i = n[s], (a || !((l = i == null ? void 0 : i.reactions) != null && l.includes(t))) && (i.reactions ?? (i.reactions = [])).push(t);
@@ -787,7 +787,7 @@ function En(t) {
787
787
  ), i.wv > t.wv)
788
788
  return !0;
789
789
  }
790
- (!r || pe !== null && !an) && zt(t, Xe);
790
+ (!r || he !== null && !an) && zt(t, Xe);
791
791
  }
792
792
  return !1;
793
793
  }
@@ -824,19 +824,19 @@ function aa(t, e, n = 0) {
824
824
  if (r !== null)
825
825
  for (var s = 0; s < r.length; s++) {
826
826
  var i = r[s];
827
- i.f & pt ? aa(
827
+ i.f & ht ? aa(
828
828
  /** @type {Derived} */
829
829
  i,
830
830
  e,
831
831
  n + 1
832
- ) : e === i && (n === 0 ? zt(i, Ht) : i.f & Xe && zt(i, hn), Ir(
832
+ ) : e === i && (n === 0 ? zt(i, Ht) : i.f & Xe && zt(i, pn), Ir(
833
833
  /** @type {Effect} */
834
834
  i
835
835
  ));
836
836
  }
837
837
  }
838
838
  function oa(t) {
839
- var p;
839
+ var h;
840
840
  var e = ot, n = dt, r = Ot, s = Ie, i = an, a = Lt, o = ze, c = Vt, l = t.f;
841
841
  ot = /** @type {null | Value[]} */
842
842
  null, dt = 0, Ot = null, Ie = l & (Dt | dn) ? null : t, an = !bn && (l & fn) !== 0, Lt = null, ze = t.ctx, Vt = !1, mr++;
@@ -846,21 +846,21 @@ function oa(t) {
846
846
  (0, t.fn)()
847
847
  ), d = t.deps;
848
848
  if (ot !== null) {
849
- var h;
849
+ var p;
850
850
  if (Bn(t, dt), d !== null && dt > 0)
851
- for (d.length = dt + ot.length, h = 0; h < ot.length; h++)
852
- d[dt + h] = ot[h];
851
+ for (d.length = dt + ot.length, p = 0; p < ot.length; p++)
852
+ d[dt + p] = ot[p];
853
853
  else
854
854
  t.deps = d = ot;
855
855
  if (!an)
856
- for (h = dt; h < d.length; h++)
857
- ((p = d[h]).reactions ?? (p.reactions = [])).push(t);
856
+ for (p = dt; p < d.length; p++)
857
+ ((h = d[p]).reactions ?? (h.reactions = [])).push(t);
858
858
  } else d !== null && dt < d.length && (Bn(t, dt), d.length = dt);
859
- if (Wn() && Ot !== null && !(t.f & (pt | hn | Ht)))
860
- for (h = 0; h < /** @type {Source[]} */
861
- Ot.length; h++)
859
+ if (Wn() && Ot !== null && !(t.f & (ht | pn | Ht)))
860
+ for (p = 0; p < /** @type {Source[]} */
861
+ Ot.length; p++)
862
862
  aa(
863
- Ot[h],
863
+ Ot[p],
864
864
  /** @type {Effect} */
865
865
  t
866
866
  );
@@ -869,7 +869,7 @@ function oa(t) {
869
869
  ot = e, dt = n, Ot = r, Ie = s, an = i, Lt = a, ze = o, Vt = c;
870
870
  }
871
871
  }
872
- function hl(t, e) {
872
+ function pl(t, e) {
873
873
  let n = e.reactions;
874
874
  if (n !== null) {
875
875
  var r = Io.call(n, t);
@@ -878,10 +878,10 @@ function hl(t, e) {
878
878
  s === 0 ? n = e.reactions = null : (n[r] = n[s], n.pop());
879
879
  }
880
880
  }
881
- n === null && e.f & pt && // Destroying a child effect while updating a parent effect can cause a dependency to appear
881
+ n === null && e.f & ht && // Destroying a child effect while updating a parent effect can cause a dependency to appear
882
882
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
883
883
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
884
- (ot === null || !ot.includes(e)) && (zt(e, hn), e.f & (fn | fr) || (e.f ^= fr), Bn(
884
+ (ot === null || !ot.includes(e)) && (zt(e, pn), e.f & (fn | fr) || (e.f ^= fr), Bn(
885
885
  /** @type {Derived} **/
886
886
  e,
887
887
  0
@@ -891,14 +891,14 @@ function Bn(t, e) {
891
891
  var n = t.deps;
892
892
  if (n !== null)
893
893
  for (var r = e; r < n.length; r++)
894
- hl(t, n[r]);
894
+ pl(t, n[r]);
895
895
  }
896
896
  function Cr(t) {
897
897
  var e = t.f;
898
898
  if (!(e & yn)) {
899
899
  zt(t, Xe);
900
- var n = pe, r = ze;
901
- pe = t;
900
+ var n = he, r = ze;
901
+ he = t;
902
902
  try {
903
903
  e & yr ? sl(t) : Vi(t), Xi(t), Zi(t);
904
904
  var s = oa(t);
@@ -908,7 +908,7 @@ function Cr(t) {
908
908
  } catch (o) {
909
909
  Er(o, t, n, r || t.ctx);
910
910
  } finally {
911
- pe = n;
911
+ he = n;
912
912
  }
913
913
  }
914
914
  }
@@ -937,14 +937,14 @@ function ca(t) {
937
937
  var s = t[r];
938
938
  s.f & Xe || (s.f ^= Xe);
939
939
  var i = [];
940
- ua(s, i), pl(i);
940
+ ua(s, i), hl(i);
941
941
  }
942
942
  } finally {
943
943
  bn = n;
944
944
  }
945
945
  }
946
946
  }
947
- function pl(t) {
947
+ function hl(t) {
948
948
  var e = t.length;
949
949
  if (e !== 0)
950
950
  for (var n = 0; n < e; n++) {
@@ -1030,7 +1030,7 @@ async function Br() {
1030
1030
  }
1031
1031
  function f(t) {
1032
1032
  var u;
1033
- var e = t.f, n = (e & pt) !== 0;
1033
+ var e = t.f, n = (e & ht) !== 0;
1034
1034
  if (n && e & yn) {
1035
1035
  var r = Gi(
1036
1036
  /** @type {Derived} */
@@ -1051,7 +1051,7 @@ function f(t) {
1051
1051
  /** @type {Derived} */
1052
1052
  t
1053
1053
  ), a = i.parent, o = i; a !== null; )
1054
- if (a.f & pt) {
1054
+ if (a.f & ht) {
1055
1055
  var c = (
1056
1056
  /** @type {Derived} */
1057
1057
  a
@@ -1106,15 +1106,15 @@ function se(t) {
1106
1106
  t !== void 0 && (e.x = t);
1107
1107
  const a = e.e;
1108
1108
  if (a !== null) {
1109
- var n = pe, r = Ie;
1109
+ var n = he, r = Ie;
1110
1110
  e.e = null;
1111
1111
  try {
1112
1112
  for (var s = 0; s < a.length; s++) {
1113
1113
  var i = a[s];
1114
- yt(i.effect), jt(i.reaction), $n(i.fn);
1114
+ yt(i.effect), Rt(i.reaction), $n(i.fn);
1115
1115
  }
1116
1116
  } finally {
1117
- yt(n), jt(r);
1117
+ yt(n), Rt(r);
1118
1118
  }
1119
1119
  }
1120
1120
  ze = e.p, e.m = !0;
@@ -1144,7 +1144,7 @@ function es(t, e = /* @__PURE__ */ new Set()) {
1144
1144
  }
1145
1145
  const n = bs(t);
1146
1146
  if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
1147
- const r = ji(n);
1147
+ const r = Ri(n);
1148
1148
  for (let s in r) {
1149
1149
  const i = r[s].get;
1150
1150
  if (i)
@@ -1188,22 +1188,22 @@ function da() {
1188
1188
  ));
1189
1189
  }
1190
1190
  function fa(t) {
1191
- var e = Ie, n = pe;
1192
- jt(null), yt(null);
1191
+ var e = Ie, n = he;
1192
+ Rt(null), yt(null);
1193
1193
  try {
1194
1194
  return t();
1195
1195
  } finally {
1196
- jt(e), yt(n);
1196
+ Rt(e), yt(n);
1197
1197
  }
1198
1198
  }
1199
- function ha(t, e, n, r = n) {
1199
+ function pa(t, e, n, r = n) {
1200
1200
  t.addEventListener(e, () => fa(n));
1201
1201
  const s = t.__on_r;
1202
1202
  s ? t.__on_r = () => {
1203
1203
  s(), r(!0);
1204
1204
  } : t.__on_r = () => r(!0), da();
1205
1205
  }
1206
- const pa = /* @__PURE__ */ new Set(), ts = /* @__PURE__ */ new Set();
1206
+ const ha = /* @__PURE__ */ new Set(), ts = /* @__PURE__ */ new Set();
1207
1207
  function va(t, e, n, r) {
1208
1208
  function s(i) {
1209
1209
  if (r.capture || Dn.call(e, i), !i.cancelBubble)
@@ -1221,7 +1221,7 @@ function Wt(t, e, n, r, s) {
1221
1221
  }
1222
1222
  function nn(t) {
1223
1223
  for (var e = 0; e < t.length; e++)
1224
- pa.add(t[e]);
1224
+ ha.add(t[e]);
1225
1225
  for (var n of ts)
1226
1226
  n(t);
1227
1227
  }
@@ -1254,10 +1254,10 @@ function Dn(t) {
1254
1254
  return i || n;
1255
1255
  }
1256
1256
  });
1257
- var u = Ie, d = pe;
1258
- jt(null), yt(null);
1257
+ var u = Ie, d = he;
1258
+ Rt(null), yt(null);
1259
1259
  try {
1260
- for (var h, p = []; i !== null; ) {
1260
+ for (var p, h = []; i !== null; ) {
1261
1261
  var w = i.assignedSlot || i.parentNode || /** @type {any} */
1262
1262
  i.host || null;
1263
1263
  try {
@@ -1270,21 +1270,21 @@ function Dn(t) {
1270
1270
  } else
1271
1271
  m.call(i, t);
1272
1272
  } catch (z) {
1273
- h ? p.push(z) : h = z;
1273
+ p ? h.push(z) : p = z;
1274
1274
  }
1275
1275
  if (t.cancelBubble || w === e || w === null)
1276
1276
  break;
1277
1277
  i = w;
1278
1278
  }
1279
- if (h) {
1280
- for (let z of p)
1279
+ if (p) {
1280
+ for (let z of h)
1281
1281
  queueMicrotask(() => {
1282
1282
  throw z;
1283
1283
  });
1284
- throw h;
1284
+ throw p;
1285
1285
  }
1286
1286
  } finally {
1287
- t.__root = e, delete t.currentTarget, jt(u), yt(d);
1287
+ t.__root = e, delete t.currentTarget, Rt(u), yt(d);
1288
1288
  }
1289
1289
  }
1290
1290
  }
@@ -1295,12 +1295,12 @@ function $s(t) {
1295
1295
  function kt(t, e) {
1296
1296
  var n = (
1297
1297
  /** @type {Effect} */
1298
- pe
1298
+ he
1299
1299
  );
1300
1300
  n.nodes_start === null && (n.nodes_start = t, n.nodes_end = e);
1301
1301
  }
1302
1302
  // @__NO_SIDE_EFFECTS__
1303
- function R(t, e) {
1303
+ function j(t, e) {
1304
1304
  var n = (e & _o) !== 0, r = (e & ko) !== 0, s, i = !t.startsWith("<!>");
1305
1305
  return () => {
1306
1306
  if (de)
@@ -1355,7 +1355,7 @@ function Qn(t = "") {
1355
1355
  return kt(e, e), e;
1356
1356
  }
1357
1357
  var n = be;
1358
- return n.nodeType !== 3 && (n.before(n = Qt()), ht(n)), kt(n, n), n;
1358
+ return n.nodeType !== 3 && (n.before(n = Qt()), pt(n)), kt(n, n), n;
1359
1359
  }
1360
1360
  function Tt() {
1361
1361
  if (de)
@@ -1365,7 +1365,7 @@ function Tt() {
1365
1365
  }
1366
1366
  function T(t, e) {
1367
1367
  if (de) {
1368
- pe.nodes_end = be, wn();
1368
+ he.nodes_end = be, wn();
1369
1369
  return;
1370
1370
  }
1371
1371
  t !== null && t.before(
@@ -1389,12 +1389,12 @@ function wl(t, e) {
1389
1389
  /** @type {TemplateNode} */
1390
1390
  /* @__PURE__ */ lt(n)
1391
1391
  ); i && (i.nodeType !== 8 || /** @type {Comment} */
1392
- i.data !== Ri); )
1392
+ i.data !== ji); )
1393
1393
  i = /** @type {TemplateNode} */
1394
1394
  /* @__PURE__ */ Yt(i);
1395
1395
  if (!i)
1396
1396
  throw mn;
1397
- Ut(!0), ht(
1397
+ Ut(!0), pt(
1398
1398
  /** @type {Comment} */
1399
1399
  i
1400
1400
  ), wn();
@@ -1409,50 +1409,50 @@ function wl(t, e) {
1409
1409
  return e.recover === !1 && qo(), Vr(), ws(n), Ut(!1), ga(t, e);
1410
1410
  throw a;
1411
1411
  } finally {
1412
- Ut(r), ht(s);
1412
+ Ut(r), pt(s);
1413
1413
  }
1414
1414
  }
1415
1415
  const gn = /* @__PURE__ */ new Map();
1416
1416
  function ma(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
- for (var h = 0; h < d.length; h++) {
1420
- var p = d[h];
1421
- if (!o.has(p)) {
1422
- o.add(p);
1423
- var w = Co(p);
1424
- e.addEventListener(p, Dn, { passive: w });
1425
- var m = gn.get(p);
1426
- m === void 0 ? (document.addEventListener(p, Dn, { passive: w }), gn.set(p, 1)) : gn.set(p, m + 1);
1419
+ for (var p = 0; p < d.length; p++) {
1420
+ var h = d[p];
1421
+ if (!o.has(h)) {
1422
+ o.add(h);
1423
+ var w = Co(h);
1424
+ e.addEventListener(h, Dn, { passive: w });
1425
+ var m = gn.get(h);
1426
+ m === void 0 ? (document.addEventListener(h, Dn, { passive: w }), gn.set(h, 1)) : gn.set(h, m + 1);
1427
1427
  }
1428
1428
  }
1429
1429
  };
1430
- c(ms(pa)), ts.add(c);
1430
+ c(ms(ha)), ts.add(c);
1431
1431
  var l = void 0, u = rl(() => {
1432
1432
  var d = n ?? e.appendChild(Qt());
1433
1433
  return _n(() => {
1434
1434
  if (i) {
1435
1435
  re({});
1436
- var h = (
1436
+ var p = (
1437
1437
  /** @type {ComponentContext} */
1438
1438
  ze
1439
1439
  );
1440
- h.c = i;
1440
+ p.c = i;
1441
1441
  }
1442
1442
  s && (r.$$events = s), de && kt(
1443
1443
  /** @type {TemplateNode} */
1444
1444
  d,
1445
1445
  null
1446
- ), ns = a, l = t(d, r) || {}, ns = !0, de && (pe.nodes_end = be), i && se();
1446
+ ), ns = a, l = t(d, r) || {}, ns = !0, de && (he.nodes_end = be), i && se();
1447
1447
  }), () => {
1448
1448
  var w;
1449
- for (var h of o) {
1450
- e.removeEventListener(h, Dn);
1451
- var p = (
1449
+ for (var p of o) {
1450
+ e.removeEventListener(p, Dn);
1451
+ var h = (
1452
1452
  /** @type {number} */
1453
- gn.get(h)
1453
+ gn.get(p)
1454
1454
  );
1455
- --p === 0 ? (document.removeEventListener(h, Dn), gn.delete(h)) : gn.set(h, p);
1455
+ --h === 0 ? (document.removeEventListener(p, Dn), gn.delete(p)) : gn.set(p, h);
1456
1456
  }
1457
1457
  ts.delete(c), d !== n && ((w = d.parentNode) == null || w.removeChild(d));
1458
1458
  };
@@ -1467,23 +1467,23 @@ function _l(t, e) {
1467
1467
  function K(t, e, n = !1) {
1468
1468
  de && wn();
1469
1469
  var r = t, s = null, i = null, a = it, o = n ? zr : 0, c = !1;
1470
- const l = (d, h = !0) => {
1471
- c = !0, u(h, d);
1472
- }, u = (d, h) => {
1470
+ const l = (d, p = !0) => {
1471
+ c = !0, u(p, d);
1472
+ }, u = (d, p) => {
1473
1473
  if (a === (a = d)) return;
1474
- let p = !1;
1474
+ let h = !1;
1475
1475
  if (de) {
1476
1476
  const w = (
1477
1477
  /** @type {Comment} */
1478
1478
  r.data === vs
1479
1479
  );
1480
- !!a === w && (r = Xr(), ht(r), Ut(!1), p = !0);
1480
+ !!a === w && (r = Xr(), pt(r), Ut(!1), h = !0);
1481
1481
  }
1482
- a ? (s ? pr(s) : h && (s = _n(() => h(r))), i && hr(i, () => {
1482
+ a ? (s ? hr(s) : p && (s = _n(() => p(r))), i && pr(i, () => {
1483
1483
  i = null;
1484
- })) : (i ? pr(i) : h && (i = _n(() => h(r))), s && hr(s, () => {
1484
+ })) : (i ? hr(i) : p && (i = _n(() => p(r))), s && pr(s, () => {
1485
1485
  s = null;
1486
- })), p && Ut(!0);
1486
+ })), h && Ut(!0);
1487
1487
  };
1488
1488
  Sr(() => {
1489
1489
  c = !1, e(l), c || u(null, null);
@@ -1510,7 +1510,7 @@ function kl(t, e, n, r) {
1510
1510
  Ki(s, () => {
1511
1511
  for (var l = 0; l < i; l++) {
1512
1512
  var u = e[l];
1513
- o || (r.delete(u.k), Gt(t, u.prev, u.next)), Rt(u.e, !o);
1513
+ o || (r.delete(u.k), Gt(t, u.prev, u.next)), jt(u.e, !o);
1514
1514
  }
1515
1515
  });
1516
1516
  }
@@ -1521,18 +1521,18 @@ function Qe(t, e, n, r, s, i = null) {
1521
1521
  /** @type {Element} */
1522
1522
  t
1523
1523
  );
1524
- a = de ? ht(
1524
+ a = de ? pt(
1525
1525
  /** @type {Comment | Text} */
1526
1526
  /* @__PURE__ */ lt(l)
1527
1527
  ) : l.appendChild(Qt());
1528
1528
  }
1529
1529
  de && wn();
1530
- var u = null, d = !1, h = /* @__PURE__ */ Hi(() => {
1531
- var p = n();
1532
- return kr(p) ? p : p == null ? [] : ms(p);
1530
+ var u = null, d = !1, p = /* @__PURE__ */ Hi(() => {
1531
+ var h = n();
1532
+ return kr(h) ? h : h == null ? [] : ms(h);
1533
1533
  });
1534
1534
  Sr(() => {
1535
- var p = f(h), w = p.length;
1535
+ var h = f(p), w = h.length;
1536
1536
  if (d && w === 0)
1537
1537
  return;
1538
1538
  d = w === 0;
@@ -1542,7 +1542,7 @@ function Qe(t, e, n, r, s, i = null) {
1542
1542
  /** @type {Comment} */
1543
1543
  a.data === vs
1544
1544
  );
1545
- S !== (w === 0) && (a = Xr(), ht(a), Ut(!1), m = !0);
1545
+ S !== (w === 0) && (a = Xr(), pt(a), Ut(!1), m = !0);
1546
1546
  }
1547
1547
  if (de) {
1548
1548
  for (var x = null, _, z = 0; z < w; z++) {
@@ -1552,7 +1552,7 @@ function Qe(t, e, n, r, s, i = null) {
1552
1552
  be, m = !0, Ut(!1);
1553
1553
  break;
1554
1554
  }
1555
- var F = p[z], E = r(F, z);
1555
+ var F = h[z], E = r(F, z);
1556
1556
  _ = ba(
1557
1557
  be,
1558
1558
  o,
@@ -1565,7 +1565,7 @@ function Qe(t, e, n, r, s, i = null) {
1565
1565
  e
1566
1566
  ), o.items.set(E, _), x = _;
1567
1567
  }
1568
- w > 0 && ht(Xr());
1568
+ w > 0 && pt(Xr());
1569
1569
  }
1570
1570
  if (!de) {
1571
1571
  var L = (
@@ -1573,7 +1573,7 @@ function Qe(t, e, n, r, s, i = null) {
1573
1573
  Ie
1574
1574
  );
1575
1575
  yl(
1576
- p,
1576
+ h,
1577
1577
  o,
1578
1578
  a,
1579
1579
  s,
@@ -1582,22 +1582,22 @@ function Qe(t, e, n, r, s, i = null) {
1582
1582
  r
1583
1583
  );
1584
1584
  }
1585
- i !== null && (w === 0 ? u ? pr(u) : u = _n(() => i(a)) : u !== null && hr(u, () => {
1585
+ i !== null && (w === 0 ? u ? hr(u) : u = _n(() => i(a)) : u !== null && pr(u, () => {
1586
1586
  u = null;
1587
- })), m && Ut(!0), f(h);
1587
+ })), m && Ut(!0), f(p);
1588
1588
  }), de && (a = be);
1589
1589
  }
1590
1590
  function yl(t, e, n, r, s, i, a, o) {
1591
1591
  var We, Ze, ut, Ke;
1592
- var c = (s & fo) !== 0, l = (s & (hs | ps)) !== 0, u = t.length, d = e.items, h = e.first, p = h, w, m = null, S, x = [], _ = [], z, F, E, L;
1592
+ var c = (s & fo) !== 0, l = (s & (ps | hs)) !== 0, u = t.length, d = e.items, p = e.first, h = p, w, m = null, S, x = [], _ = [], z, F, E, L;
1593
1593
  if (c)
1594
1594
  for (L = 0; L < u; L += 1)
1595
1595
  z = t[L], F = a(z, L), E = d.get(F), E !== void 0 && ((We = E.a) == null || We.measure(), (S ?? (S = /* @__PURE__ */ new Set())).add(E));
1596
1596
  for (L = 0; L < u; L += 1) {
1597
1597
  if (z = t[L], F = a(z, L), E = d.get(F), E === void 0) {
1598
- var A = p ? (
1598
+ var A = h ? (
1599
1599
  /** @type {TemplateNode} */
1600
- p.e.nodes_start
1600
+ h.e.nodes_start
1601
1601
  ) : n;
1602
1602
  m = ba(
1603
1603
  A,
@@ -1609,10 +1609,10 @@ function yl(t, e, n, r, s, i, a, o) {
1609
1609
  L,
1610
1610
  r,
1611
1611
  s
1612
- ), d.set(F, m), x = [], _ = [], p = m.next;
1612
+ ), d.set(F, m), x = [], _ = [], h = m.next;
1613
1613
  continue;
1614
1614
  }
1615
- if (l && zl(E, z, L, s), E.e.f & At && (pr(E.e), c && ((Ze = E.a) == null || Ze.unfix(), (S ?? (S = /* @__PURE__ */ new Set())).delete(E))), E !== p) {
1615
+ if (l && zl(E, z, L, s), E.e.f & At && (hr(E.e), c && ((Ze = E.a) == null || Ze.unfix(), (S ?? (S = /* @__PURE__ */ new Set())).delete(E))), E !== h) {
1616
1616
  if (w !== void 0 && w.has(E)) {
1617
1617
  if (x.length < _.length) {
1618
1618
  var N = _[0], Y;
@@ -1622,22 +1622,22 @@ function yl(t, e, n, r, s, i, a, o) {
1622
1622
  ti(x[Y], N, n);
1623
1623
  for (Y = 0; Y < _.length; Y += 1)
1624
1624
  w.delete(_[Y]);
1625
- Gt(e, le.prev, Fe.next), Gt(e, m, le), Gt(e, Fe, N), p = N, m = Fe, L -= 1, x = [], _ = [];
1625
+ Gt(e, le.prev, Fe.next), Gt(e, m, le), Gt(e, Fe, N), h = N, m = Fe, L -= 1, x = [], _ = [];
1626
1626
  } else
1627
- w.delete(E), ti(E, p, n), Gt(e, E.prev, E.next), Gt(e, E, m === null ? e.first : m.next), Gt(e, m, E), m = E;
1627
+ w.delete(E), ti(E, h, n), Gt(e, E.prev, E.next), Gt(e, E, m === null ? e.first : m.next), Gt(e, m, E), m = E;
1628
1628
  continue;
1629
1629
  }
1630
- for (x = [], _ = []; p !== null && p.k !== F; )
1631
- (i || !(p.e.f & At)) && (w ?? (w = /* @__PURE__ */ new Set())).add(p), _.push(p), p = p.next;
1632
- if (p === null)
1630
+ for (x = [], _ = []; h !== null && h.k !== F; )
1631
+ (i || !(h.e.f & At)) && (w ?? (w = /* @__PURE__ */ new Set())).add(h), _.push(h), h = h.next;
1632
+ if (h === null)
1633
1633
  continue;
1634
- E = p;
1634
+ E = h;
1635
1635
  }
1636
- x.push(E), m = E, p = E.next;
1636
+ x.push(E), m = E, h = E.next;
1637
1637
  }
1638
- if (p !== null || w !== void 0) {
1639
- for (var Ae = w === void 0 ? [] : ms(w); p !== null; )
1640
- (i || !(p.e.f & At)) && Ae.push(p), p = p.next;
1638
+ if (h !== null || w !== void 0) {
1639
+ for (var Ae = w === void 0 ? [] : ms(w); h !== null; )
1640
+ (i || !(h.e.f & At)) && Ae.push(h), h = h.next;
1641
1641
  var ge = Ae.length;
1642
1642
  if (ge > 0) {
1643
1643
  var fe = s & Ai && u === 0 ? n : null;
@@ -1651,23 +1651,23 @@ function yl(t, e, n, r, s, i, a, o) {
1651
1651
  }
1652
1652
  }
1653
1653
  c && Sn(() => {
1654
- var j;
1654
+ var R;
1655
1655
  if (S !== void 0)
1656
1656
  for (E of S)
1657
- (j = E.a) == null || j.apply();
1658
- }), pe.first = e.first && e.first.e, pe.last = m && m.e;
1657
+ (R = E.a) == null || R.apply();
1658
+ }), he.first = e.first && e.first.e, he.last = m && m.e;
1659
1659
  }
1660
1660
  function zl(t, e, n, r) {
1661
- r & hs && Zr(t.v, e), r & ps ? Zr(
1661
+ r & ps && Zr(t.v, e), r & hs ? Zr(
1662
1662
  /** @type {Value<number>} */
1663
1663
  t.i,
1664
1664
  n
1665
1665
  ) : t.i = n;
1666
1666
  }
1667
1667
  function ba(t, e, n, r, s, i, a, o, c, l) {
1668
- var u = (c & hs) !== 0, d = (c & ho) === 0, h = u ? d ? /* @__PURE__ */ $r(s) : at(s) : s, p = c & ps ? at(a) : a, w = {
1669
- i: p,
1670
- v: h,
1668
+ var u = (c & ps) !== 0, d = (c & po) === 0, p = u ? d ? /* @__PURE__ */ $r(s) : at(s) : s, h = c & hs ? at(a) : a, w = {
1669
+ i: h,
1670
+ v: p,
1671
1671
  k: i,
1672
1672
  a: null,
1673
1673
  // @ts-expect-error
@@ -1676,7 +1676,7 @@ function ba(t, e, n, r, s, i, a, o, c, l) {
1676
1676
  next: r
1677
1677
  };
1678
1678
  try {
1679
- return w.e = _n(() => o(t, h, p), de), w.e.prev = n && n.e, w.e.next = r && r.e, n === null ? e.first = w : (n.next = w, n.e.next = w.e), r !== null && (r.prev = w, r.e.prev = w.e), w;
1679
+ return w.e = _n(() => o(t, p, h), de), w.e.prev = n && n.e, w.e.next = r && r.e, n === null ? e.first = w : (n.next = w, n.e.next = w.e), r !== null && (r.prev = w, r.e.prev = w.e), w;
1680
1680
  } finally {
1681
1681
  }
1682
1682
  }
@@ -1708,7 +1708,7 @@ function ss(t, e, n, r, s) {
1708
1708
  de && wn();
1709
1709
  return;
1710
1710
  }
1711
- o !== void 0 && (Rt(o), o = void 0), a !== "" && (o = _n(() => {
1711
+ o !== void 0 && (jt(o), o = void 0), a !== "" && (o = _n(() => {
1712
1712
  if (de) {
1713
1713
  be.data;
1714
1714
  for (var c = wn(), l = c; c !== null && (c.nodeType !== 8 || /** @type {Comment} */
@@ -1717,7 +1717,7 @@ function ss(t, e, n, r, s) {
1717
1717
  /* @__PURE__ */ Yt(c);
1718
1718
  if (c === null)
1719
1719
  throw Tr(), mn;
1720
- kt(be, l), i = ht(c);
1720
+ kt(be, l), i = pt(c);
1721
1721
  return;
1722
1722
  }
1723
1723
  var u = a + "";
@@ -1821,16 +1821,16 @@ function ni(t, e, n, r, s = !1, i = !1, a = !1) {
1821
1821
  t.value = t.__value = "", o[x] = _;
1822
1822
  continue;
1823
1823
  }
1824
- var h = o[x];
1825
- if (_ !== h) {
1824
+ var p = o[x];
1825
+ if (_ !== p) {
1826
1826
  o[x] = _;
1827
- var p = x[0] + x[1];
1828
- if (p !== "$$") {
1829
- if (p === "on") {
1827
+ var h = x[0] + x[1];
1828
+ if (h !== "$$") {
1829
+ if (h === "on") {
1830
1830
  const z = {}, F = "$$" + x;
1831
1831
  let E = x.slice(2);
1832
1832
  var w = $o(E);
1833
- if (yo(E) && (E = E.slice(0, -7), z.capture = !0), !w && h) {
1833
+ if (yo(E) && (E = E.slice(0, -7), z.capture = !0), !w && p) {
1834
1834
  if (_ != null) continue;
1835
1835
  t.removeEventListener(E, o[F], z), o[F] = null;
1836
1836
  }
@@ -1893,7 +1893,7 @@ function wa(t) {
1893
1893
  if (e) return e;
1894
1894
  ri.set(t.nodeName, e = []);
1895
1895
  for (var n, r = t, s = Element.prototype; s !== r; ) {
1896
- n = ji(r);
1896
+ n = Ri(r);
1897
1897
  for (var i in n)
1898
1898
  n[i].set && e.push(i);
1899
1899
  r = bs(r);
@@ -1967,19 +1967,19 @@ function si(t) {
1967
1967
  }
1968
1968
  return e;
1969
1969
  }
1970
- const Rl = (t) => t;
1970
+ const jl = (t) => t;
1971
1971
  function xt(t, e, n, r) {
1972
- var s = (t & bo) !== 0, i = (t & xo) !== 0, a = s && i, o = (t & wo) !== 0, c = a ? "both" : s ? "in" : "out", l, u = e.inert, d = e.style.overflow, h, p;
1972
+ var s = (t & bo) !== 0, i = (t & xo) !== 0, a = s && i, o = (t & wo) !== 0, c = a ? "both" : s ? "in" : "out", l, u = e.inert, d = e.style.overflow, p, h;
1973
1973
  function w() {
1974
- var z = Ie, F = pe;
1975
- jt(null), yt(null);
1974
+ var z = Ie, F = he;
1975
+ Rt(null), yt(null);
1976
1976
  try {
1977
1977
  return l ?? (l = n()(e, (r == null ? void 0 : r()) ?? /** @type {P} */
1978
1978
  {}, {
1979
1979
  direction: c
1980
1980
  }));
1981
1981
  } finally {
1982
- jt(z), yt(F);
1982
+ Rt(z), yt(F);
1983
1983
  }
1984
1984
  }
1985
1985
  var m = {
@@ -1987,11 +1987,11 @@ function xt(t, e, n, r) {
1987
1987
  in() {
1988
1988
  var z;
1989
1989
  if (e.inert = u, !s) {
1990
- p == null || p.abort(), (z = p == null ? void 0 : p.reset) == null || z.call(p);
1990
+ h == null || h.abort(), (z = h == null ? void 0 : h.reset) == null || z.call(h);
1991
1991
  return;
1992
1992
  }
1993
- i || h == null || h.abort(), Kn(e, "introstart"), h = is(e, w(), p, 1, () => {
1994
- Kn(e, "introend"), h == null || h.abort(), h = l = void 0, e.style.overflow = d;
1993
+ i || p == null || p.abort(), Kn(e, "introstart"), p = is(e, w(), h, 1, () => {
1994
+ Kn(e, "introend"), p == null || p.abort(), p = l = void 0, e.style.overflow = d;
1995
1995
  });
1996
1996
  },
1997
1997
  out(z) {
@@ -1999,16 +1999,16 @@ function xt(t, e, n, r) {
1999
1999
  z == null || z(), l = void 0;
2000
2000
  return;
2001
2001
  }
2002
- e.inert = !0, Kn(e, "outrostart"), p = is(e, w(), h, 0, () => {
2002
+ e.inert = !0, Kn(e, "outrostart"), h = is(e, w(), p, 0, () => {
2003
2003
  Kn(e, "outroend"), z == null || z();
2004
2004
  });
2005
2005
  },
2006
2006
  stop: () => {
2007
- h == null || h.abort(), p == null || p.abort();
2007
+ p == null || p.abort(), h == null || h.abort();
2008
2008
  }
2009
2009
  }, S = (
2010
2010
  /** @type {Effect} */
2011
- pe
2011
+ he
2012
2012
  );
2013
2013
  if ((S.transitions ?? (S.transitions = [])).push(m), s && ns) {
2014
2014
  var x = o;
@@ -2028,7 +2028,7 @@ function xt(t, e, n, r) {
2028
2028
  }
2029
2029
  function is(t, e, n, r, s) {
2030
2030
  var i = r === 1;
2031
- if (Ro(e)) {
2031
+ if (jo(e)) {
2032
2032
  var a, o = !1;
2033
2033
  return Sn(() => {
2034
2034
  if (!o) {
@@ -2051,13 +2051,13 @@ function is(t, e, n, r, s) {
2051
2051
  reset: An,
2052
2052
  t: () => r
2053
2053
  };
2054
- const { delay: c = 0, css: l, tick: u, easing: d = Rl } = e;
2055
- var h = [];
2054
+ const { delay: c = 0, css: l, tick: u, easing: d = jl } = e;
2055
+ var p = [];
2056
2056
  if (i && n === void 0 && (u && u(0, 1), l)) {
2057
- var p = si(l(0, 1));
2058
- h.push(p, p);
2057
+ var h = si(l(0, 1));
2058
+ p.push(h, h);
2059
2059
  }
2060
- var w = () => 1 - r, m = t.animate(h, { duration: c });
2060
+ var w = () => 1 - r, m = t.animate(p, { duration: c });
2061
2061
  return m.onfinish = () => {
2062
2062
  var S = (n == null ? void 0 : n.t()) ?? 1 - r;
2063
2063
  n == null || n.abort();
@@ -2101,9 +2101,9 @@ function is(t, e, n, r, s) {
2101
2101
  t: () => w()
2102
2102
  };
2103
2103
  }
2104
- function jl(t, e, n = e) {
2104
+ function Rl(t, e, n = e) {
2105
2105
  var r = Wn();
2106
- ha(t, "input", (s) => {
2106
+ pa(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;
@@ -2160,7 +2160,7 @@ function Fl(t, e) {
2160
2160
  }
2161
2161
  function ya(t, e, n = e) {
2162
2162
  var r = !0;
2163
- ha(t, "change", (s) => {
2163
+ pa(t, "change", (s) => {
2164
2164
  var i = s ? "[selected]" : ":checked", a;
2165
2165
  if (t.multiple)
2166
2166
  a = [].map.call(t.querySelectorAll(i), On);
@@ -2227,7 +2227,7 @@ function ct(t = !1) {
2227
2227
  n.b.length && tl(() => {
2228
2228
  ai(e, r), ur(n.b);
2229
2229
  }), It(() => {
2230
- const s = Ft(() => n.m.map(jo));
2230
+ const s = Ft(() => n.m.map(Ro));
2231
2231
  return () => {
2232
2232
  for (const i of s)
2233
2233
  typeof i == "function" && i();
@@ -2336,7 +2336,7 @@ function ql(t, e) {
2336
2336
  return new Proxy({ props: t, exclude: e, special: {}, version: at(0) }, Bl);
2337
2337
  }
2338
2338
  function oi(t) {
2339
- for (var e = pe, n = pe; e !== null && !(e.f & (Dt | dn)); )
2339
+ for (var e = he, n = he; e !== null && !(e.f & (Dt | dn)); )
2340
2340
  e = e.parent;
2341
2341
  try {
2342
2342
  return yt(e), t();
@@ -2346,20 +2346,20 @@ function oi(t) {
2346
2346
  }
2347
2347
  function g(t, e, n, r) {
2348
2348
  var A;
2349
- var s = (n & po) !== 0, i = !zn || (n & vo) !== 0, a = (n & go) !== 0, o = (n & mo) !== 0, c = !1, l;
2349
+ var s = (n & ho) !== 0, i = !zn || (n & vo) !== 0, a = (n & go) !== 0, o = (n & mo) !== 0, c = !1, l;
2350
2350
  a ? [l, c] = Ul(() => (
2351
2351
  /** @type {V} */
2352
2352
  t[e]
2353
2353
  )) : l = /** @type {V} */
2354
2354
  t[e];
2355
- var u = qt in t || Pi in t, d = a && (((A = on(t, e)) == null ? void 0 : A.set) ?? (u && e in t && ((N) => t[e] = N))) || void 0, h = (
2355
+ var u = qt in t || Pi in t, d = a && (((A = on(t, e)) == null ? void 0 : A.set) ?? (u && e in t && ((N) => t[e] = N))) || void 0, p = (
2356
2356
  /** @type {V} */
2357
2357
  r
2358
- ), p = !0, w = !1, m = () => (w = !0, p && (p = !1, o ? h = Ft(
2358
+ ), h = !0, w = !1, m = () => (w = !0, h && (h = !1, o ? p = Ft(
2359
2359
  /** @type {() => V} */
2360
2360
  r
2361
- ) : h = /** @type {V} */
2362
- r), h);
2361
+ ) : p = /** @type {V} */
2362
+ r), p);
2363
2363
  l === void 0 && r !== void 0 && (d && i && Ho(), l = m(), d && d(l));
2364
2364
  var S;
2365
2365
  if (i)
@@ -2368,7 +2368,7 @@ function g(t, e, n, r) {
2368
2368
  /** @type {V} */
2369
2369
  t[e]
2370
2370
  );
2371
- return N === void 0 ? m() : (p = !0, w = !1, N);
2371
+ return N === void 0 ? m() : (h = !0, w = !1, N);
2372
2372
  };
2373
2373
  else {
2374
2374
  var x = oi(
@@ -2379,8 +2379,8 @@ function g(t, e, n, r) {
2379
2379
  );
2380
2380
  x.f |= Fo, S = () => {
2381
2381
  var N = f(x);
2382
- return N !== void 0 && (h = /** @type {V} */
2383
- void 0), N === void 0 ? h : N;
2382
+ return N !== void 0 && (p = /** @type {V} */
2383
+ void 0), N === void 0 ? p : N;
2384
2384
  };
2385
2385
  }
2386
2386
  if (!(n & Li))
@@ -2400,7 +2400,7 @@ function g(t, e, n, r) {
2400
2400
  return s || (L.equals = xs), function(N, Y) {
2401
2401
  if (arguments.length > 0) {
2402
2402
  const le = Y ? f(L) : i && a ? I(N) : N;
2403
- return L.equals(le) || (z = !0, b(E, le), w && h !== void 0 && (h = le), Ft(() => f(L))), N;
2403
+ return L.equals(le) || (z = !0, b(E, le), w && p !== void 0 && (p = le), Ft(() => f(L))), N;
2404
2404
  }
2405
2405
  return f(L);
2406
2406
  };
@@ -2719,13 +2719,13 @@ function Bt(t, { delay: e = 0, duration: n = 400, easing: r = Jl } = {}) {
2719
2719
  };
2720
2720
  }
2721
2721
  function Wl(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, h] = li(s), [p, w] = li(i);
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);
2723
2723
  return {
2724
2724
  delay: e,
2725
2725
  duration: n,
2726
2726
  easing: r,
2727
2727
  css: (m, S) => `
2728
- transform: ${l} translate(${(1 - m) * d}${h}, ${(1 - m) * p}${w});
2728
+ transform: ${l} translate(${(1 - m) * d}${p}, ${(1 - m) * h}${w});
2729
2729
  opacity: ${c - u * S}`
2730
2730
  };
2731
2731
  }
@@ -2735,7 +2735,7 @@ function Zl(t, { delay: e = 0, duration: n = 400, easing: r = Ts, axis: s = "y"
2735
2735
  /** @type {'Left' | 'Right' | 'Top' | 'Bottom'} */
2736
2736
  `${x[0].toUpperCase()}${x.slice(1)}`
2737
2737
  )
2738
- ), d = parseFloat(i[`padding${u[0]}`]), h = parseFloat(i[`padding${u[1]}`]), p = 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]}`]), m = parseFloat(
2739
2739
  i[`border${u[0]}Width`]
2740
2740
  ), S = parseFloat(
2741
2741
  i[`border${u[1]}Width`]
@@ -2744,7 +2744,7 @@ function Zl(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 * h}px;margin-${l[0]}: ${x * p}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 * m}px;border-${l[1]}-width: ${x * S}px;min-${o}: 0`
2748
2748
  };
2749
2749
  }
2750
2750
  function Xl(t, { delay: e = 0, duration: n = 400, easing: r = Ts, start: s = 0, opacity: i = 0 } = {}) {
@@ -2753,9 +2753,9 @@ function Xl(t, { delay: e = 0, duration: n = 400, easing: r = Ts, start: s = 0,
2753
2753
  delay: e,
2754
2754
  duration: n,
2755
2755
  easing: r,
2756
- css: (d, h) => `
2757
- transform: ${c} scale(${1 - l * h});
2758
- opacity: ${o - u * h}
2756
+ css: (d, p) => `
2757
+ transform: ${c} scale(${1 - l * p});
2758
+ opacity: ${o - u * p}
2759
2759
  `
2760
2760
  };
2761
2761
  }
@@ -2897,19 +2897,19 @@ function ci(t) {
2897
2897
  function ec(t) {
2898
2898
  return Ql.includes(t);
2899
2899
  }
2900
- const tc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", nc = /* @__NO_SIDE_EFFECTS__ */ () => "Scrivi un messaggio...", rc = /* @__NO_SIDE_EFFECTS__ */ () => "Aggiungi allegato", sc = /* @__NO_SIDE_EFFECTS__ */ () => "Normative", ic = /* @__NO_SIDE_EFFECTS__ */ () => "Normativa", ac = /* @__NO_SIDE_EFFECTS__ */ () => "Scegli", oc = /* @__NO_SIDE_EFFECTS__ */ () => "Carica file", lc = /* @__NO_SIDE_EFFECTS__ */ () => "Documento Comune", cc = /* @__NO_SIDE_EFFECTS__ */ () => "Interrompi registrazione", uc = /* @__NO_SIDE_EFFECTS__ */ () => "Inizia registrazione", dc = /* @__NO_SIDE_EFFECTS__ */ () => "Invia messaggio", fc = /* @__NO_SIDE_EFFECTS__ */ (t) => `Sei sicuro di voler eliminare la chat: ${t.chatTitle}?`, hc = /* @__NO_SIDE_EFFECTS__ */ () => "Nuova Chat", pc = /* @__NO_SIDE_EFFECTS__ */ () => "Cronologia", vc = /* @__NO_SIDE_EFFECTS__ */ () => "Attiva volume", gc = /* @__NO_SIDE_EFFECTS__ */ () => "Disattiva volume", mc = /* @__NO_SIDE_EFFECTS__ */ () => "Mostra cronologia", bc = /* @__NO_SIDE_EFFECTS__ */ () => "Chiudi", xc = /* @__NO_SIDE_EFFECTS__ */ () => "Fonti", wc = /* @__NO_SIDE_EFFECTS__ */ () => "Visualizza allegato", _c = /* @__NO_SIDE_EFFECTS__ */ () => "Cerca", kc = /* @__NO_SIDE_EFFECTS__ */ () => "Documenti", yc = /* @__NO_SIDE_EFFECTS__ */ () => "Ricerca in corso...", zc = /* @__NO_SIDE_EFFECTS__ */ () => "Inserisci almeno 3 caratteri per iniziare la ricerca", $c = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna normativa trovata", Tc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessun documento trovato", Sc = /* @__NO_SIDE_EFFECTS__ */ () => "Riproduci", Ec = /* @__NO_SIDE_EFFECTS__ */ () => "Pausa", Cc = /* @__NO_SIDE_EFFECTS__ */ () => "Errore durante l'invio del messaggio. Riprova.", Ic = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna chat attiva. Crea una nuova chat per iniziare.", Ac = /* @__NO_SIDE_EFFECTS__ */ () => "Errore durante il caricamento del nome utente.", Lc = /* @__NO_SIDE_EFFECTS__ */ () => "Manuale Suite", Rc = /* @__NO_SIDE_EFFECTS__ */ () => "Ferma", jc = /* @__NO_SIDE_EFFECTS__ */ () => "Copia elenco fonti", Fc = /* @__NO_SIDE_EFFECTS__ */ () => "Fonti copiate!", Dc = /* @__NO_SIDE_EFFECTS__ */ () => "Copia", Oc = /* @__NO_SIDE_EFFECTS__ */ () => "Copiato!", Pc = /* @__NO_SIDE_EFFECTS__ */ (t) => `Hai raggiunto il numero massimo di ${t.count} allegati consentiti.`, Mc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessun gendoc trovato", Nc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna trascrizione trovata", Uc = /* @__NO_SIDE_EFFECTS__ */ () => "Trascina i file qui", Bc = /* @__NO_SIDE_EFFECTS__ */ () => "L'agente selezionato non supporta file esterni.", qc = /* @__NO_SIDE_EFFECTS__ */ () => "AI Assistant", Hc = /* @__NO_SIDE_EFFECTS__ */ () => "Type your message here...", Yc = /* @__NO_SIDE_EFFECTS__ */ () => "Add attachment", Gc = /* @__NO_SIDE_EFFECTS__ */ () => "Normatives", Jc = /* @__NO_SIDE_EFFECTS__ */ () => "Normative", Wc = /* @__NO_SIDE_EFFECTS__ */ () => "Choose", Zc = /* @__NO_SIDE_EFFECTS__ */ () => "Upload file", Xc = /* @__NO_SIDE_EFFECTS__ */ () => "Common Document", Vc = /* @__NO_SIDE_EFFECTS__ */ () => "Stop recording", Qc = /* @__NO_SIDE_EFFECTS__ */ () => "Start recording", Kc = /* @__NO_SIDE_EFFECTS__ */ () => "Send message", eu = /* @__NO_SIDE_EFFECTS__ */ (t) => `Are you sure you want to delete the chat: ${t.chatTitle}?`, tu = /* @__NO_SIDE_EFFECTS__ */ () => "New Chat", nu = /* @__NO_SIDE_EFFECTS__ */ () => "History", ru = /* @__NO_SIDE_EFFECTS__ */ () => "Unmute", su = /* @__NO_SIDE_EFFECTS__ */ () => "Mute", iu = /* @__NO_SIDE_EFFECTS__ */ () => "Show history", au = /* @__NO_SIDE_EFFECTS__ */ () => "Close", ou = /* @__NO_SIDE_EFFECTS__ */ () => "Sources", lu = /* @__NO_SIDE_EFFECTS__ */ () => "View attachment", cu = /* @__NO_SIDE_EFFECTS__ */ () => "Search", uu = /* @__NO_SIDE_EFFECTS__ */ () => "Documents", du = /* @__NO_SIDE_EFFECTS__ */ () => "Search in progress...", fu = /* @__NO_SIDE_EFFECTS__ */ () => "Please enter at least 3 characters to start the search", hu = /* @__NO_SIDE_EFFECTS__ */ () => "No normative found", pu = /* @__NO_SIDE_EFFECTS__ */ () => "No document found", vu = /* @__NO_SIDE_EFFECTS__ */ () => "Play", gu = /* @__NO_SIDE_EFFECTS__ */ () => "Pause", mu = /* @__NO_SIDE_EFFECTS__ */ () => "Error sending message. Please try again.", bu = /* @__NO_SIDE_EFFECTS__ */ () => "No active chat. Please create a new chat to get started.", xu = /* @__NO_SIDE_EFFECTS__ */ () => "Error loading username.", wu = /* @__NO_SIDE_EFFECTS__ */ () => "Suite Manual", _u = /* @__NO_SIDE_EFFECTS__ */ () => "Stop", ku = /* @__NO_SIDE_EFFECTS__ */ () => "Copy sources list", yu = /* @__NO_SIDE_EFFECTS__ */ () => "Sources copied!", zu = /* @__NO_SIDE_EFFECTS__ */ () => "Copy", $u = /* @__NO_SIDE_EFFECTS__ */ () => "Copied!", Tu = /* @__NO_SIDE_EFFECTS__ */ (t) => `You have reached the maximum number of ${t.count} attachments allowed.`, Su = /* @__NO_SIDE_EFFECTS__ */ () => "No gendoc found", Eu = /* @__NO_SIDE_EFFECTS__ */ () => "No transcription found", Cu = /* @__NO_SIDE_EFFECTS__ */ () => "Drop files here", Iu = /* @__NO_SIDE_EFFECTS__ */ () => "The selected agent does not support external files.", Au = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2900
+ const tc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", nc = /* @__NO_SIDE_EFFECTS__ */ () => "Scrivi un messaggio...", rc = /* @__NO_SIDE_EFFECTS__ */ () => "Aggiungi allegato", sc = /* @__NO_SIDE_EFFECTS__ */ () => "Normative", ic = /* @__NO_SIDE_EFFECTS__ */ () => "Normativa", ac = /* @__NO_SIDE_EFFECTS__ */ () => "Scegli", oc = /* @__NO_SIDE_EFFECTS__ */ () => "Carica file", lc = /* @__NO_SIDE_EFFECTS__ */ () => "Documento Comune", cc = /* @__NO_SIDE_EFFECTS__ */ () => "Interrompi registrazione", uc = /* @__NO_SIDE_EFFECTS__ */ () => "Inizia registrazione", dc = /* @__NO_SIDE_EFFECTS__ */ () => "Invia messaggio", fc = /* @__NO_SIDE_EFFECTS__ */ (t) => `Sei sicuro di voler eliminare la chat: ${t.chatTitle}?`, pc = /* @__NO_SIDE_EFFECTS__ */ () => "Nuova Chat", hc = /* @__NO_SIDE_EFFECTS__ */ () => "Cronologia", vc = /* @__NO_SIDE_EFFECTS__ */ () => "Attiva volume", gc = /* @__NO_SIDE_EFFECTS__ */ () => "Disattiva volume", mc = /* @__NO_SIDE_EFFECTS__ */ () => "Mostra cronologia", bc = /* @__NO_SIDE_EFFECTS__ */ () => "Chiudi", xc = /* @__NO_SIDE_EFFECTS__ */ () => "Fonti", wc = /* @__NO_SIDE_EFFECTS__ */ () => "Visualizza allegato", _c = /* @__NO_SIDE_EFFECTS__ */ () => "Cerca", kc = /* @__NO_SIDE_EFFECTS__ */ () => "Documenti", yc = /* @__NO_SIDE_EFFECTS__ */ () => "Ricerca in corso...", zc = /* @__NO_SIDE_EFFECTS__ */ () => "Inserisci almeno 3 caratteri per iniziare la ricerca", $c = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna normativa trovata", Tc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessun documento trovato", Sc = /* @__NO_SIDE_EFFECTS__ */ () => "Riproduci", Ec = /* @__NO_SIDE_EFFECTS__ */ () => "Pausa", Cc = /* @__NO_SIDE_EFFECTS__ */ () => "Errore durante l'invio del messaggio. Riprova.", Ic = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna chat attiva. Crea una nuova chat per iniziare.", Ac = /* @__NO_SIDE_EFFECTS__ */ () => "Errore durante il caricamento del nome utente.", Lc = /* @__NO_SIDE_EFFECTS__ */ () => "Manuale Suite", jc = /* @__NO_SIDE_EFFECTS__ */ () => "Ferma", Rc = /* @__NO_SIDE_EFFECTS__ */ () => "Copia elenco fonti", Fc = /* @__NO_SIDE_EFFECTS__ */ () => "Fonti copiate!", Dc = /* @__NO_SIDE_EFFECTS__ */ () => "Copia", Oc = /* @__NO_SIDE_EFFECTS__ */ () => "Copiato!", Pc = /* @__NO_SIDE_EFFECTS__ */ (t) => `Hai raggiunto il numero massimo di ${t.count} allegati consentiti.`, Mc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessun gendoc trovato", Nc = /* @__NO_SIDE_EFFECTS__ */ () => "Nessuna trascrizione trovata", Uc = /* @__NO_SIDE_EFFECTS__ */ () => "Trascina i file qui", Bc = /* @__NO_SIDE_EFFECTS__ */ () => "L'agente selezionato non supporta file esterni.", qc = /* @__NO_SIDE_EFFECTS__ */ () => "AI Assistant", Hc = /* @__NO_SIDE_EFFECTS__ */ () => "Type your message here...", Yc = /* @__NO_SIDE_EFFECTS__ */ () => "Add attachment", Gc = /* @__NO_SIDE_EFFECTS__ */ () => "Normatives", Jc = /* @__NO_SIDE_EFFECTS__ */ () => "Normative", Wc = /* @__NO_SIDE_EFFECTS__ */ () => "Choose", Zc = /* @__NO_SIDE_EFFECTS__ */ () => "Upload file", Xc = /* @__NO_SIDE_EFFECTS__ */ () => "Common Document", Vc = /* @__NO_SIDE_EFFECTS__ */ () => "Stop recording", Qc = /* @__NO_SIDE_EFFECTS__ */ () => "Start recording", Kc = /* @__NO_SIDE_EFFECTS__ */ () => "Send message", eu = /* @__NO_SIDE_EFFECTS__ */ (t) => `Are you sure you want to delete the chat: ${t.chatTitle}?`, tu = /* @__NO_SIDE_EFFECTS__ */ () => "New Chat", nu = /* @__NO_SIDE_EFFECTS__ */ () => "History", ru = /* @__NO_SIDE_EFFECTS__ */ () => "Unmute", su = /* @__NO_SIDE_EFFECTS__ */ () => "Mute", iu = /* @__NO_SIDE_EFFECTS__ */ () => "Show history", au = /* @__NO_SIDE_EFFECTS__ */ () => "Close", ou = /* @__NO_SIDE_EFFECTS__ */ () => "Sources", lu = /* @__NO_SIDE_EFFECTS__ */ () => "View attachment", cu = /* @__NO_SIDE_EFFECTS__ */ () => "Search", uu = /* @__NO_SIDE_EFFECTS__ */ () => "Documents", du = /* @__NO_SIDE_EFFECTS__ */ () => "Search in progress...", fu = /* @__NO_SIDE_EFFECTS__ */ () => "Please enter at least 3 characters to start the search", pu = /* @__NO_SIDE_EFFECTS__ */ () => "No normative found", hu = /* @__NO_SIDE_EFFECTS__ */ () => "No document found", vu = /* @__NO_SIDE_EFFECTS__ */ () => "Play", gu = /* @__NO_SIDE_EFFECTS__ */ () => "Pause", mu = /* @__NO_SIDE_EFFECTS__ */ () => "Error sending message. Please try again.", bu = /* @__NO_SIDE_EFFECTS__ */ () => "No active chat. Please create a new chat to get started.", xu = /* @__NO_SIDE_EFFECTS__ */ () => "Error loading username.", wu = /* @__NO_SIDE_EFFECTS__ */ () => "Suite Manual", _u = /* @__NO_SIDE_EFFECTS__ */ () => "Stop", ku = /* @__NO_SIDE_EFFECTS__ */ () => "Copy sources list", yu = /* @__NO_SIDE_EFFECTS__ */ () => "Sources copied!", zu = /* @__NO_SIDE_EFFECTS__ */ () => "Copy", $u = /* @__NO_SIDE_EFFECTS__ */ () => "Copied!", Tu = /* @__NO_SIDE_EFFECTS__ */ (t) => `You have reached the maximum number of ${t.count} attachments allowed.`, Su = /* @__NO_SIDE_EFFECTS__ */ () => "No gendoc found", Eu = /* @__NO_SIDE_EFFECTS__ */ () => "No transcription found", Cu = /* @__NO_SIDE_EFFECTS__ */ () => "Drop files here", Iu = /* @__NO_SIDE_EFFECTS__ */ () => "The selected agent does not support external files.", Au = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2901
2901
  en: qc,
2902
2902
  it: tc
2903
2903
  })[e.languageTag ?? V()](), Lu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2904
2904
  en: Hc,
2905
2905
  it: nc
2906
- })[e.languageTag ?? V()](), Ru = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2906
+ })[e.languageTag ?? V()](), ju = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2907
2907
  en: Yc,
2908
2908
  it: rc
2909
2909
  })[e.languageTag ?? V()](), $a = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2910
2910
  en: Gc,
2911
2911
  it: sc
2912
- })[e.languageTag ?? V()](), ju = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2912
+ })[e.languageTag ?? V()](), Ru = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2913
2913
  en: Jc,
2914
2914
  it: ic
2915
2915
  })[e.languageTag ?? V()](), Fu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
@@ -2935,10 +2935,10 @@ const tc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", nc = /* @__NO_SIDE_
2935
2935
  it: fc
2936
2936
  })[e.languageTag ?? V()](t), Ta = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2937
2937
  en: tu,
2938
- it: hc
2938
+ it: pc
2939
2939
  })[e.languageTag ?? V()](), Sa = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2940
2940
  en: nu,
2941
- it: pc
2941
+ it: hc
2942
2942
  })[e.languageTag ?? V()](), Bu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2943
2943
  en: ru,
2944
2944
  it: vc
@@ -2970,10 +2970,10 @@ const tc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", nc = /* @__NO_SIDE_
2970
2970
  en: fu,
2971
2971
  it: zc
2972
2972
  })[e.languageTag ?? V()](), Xu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2973
- en: hu,
2973
+ en: pu,
2974
2974
  it: $c
2975
2975
  })[e.languageTag ?? V()](), Vu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2976
- en: pu,
2976
+ en: hu,
2977
2977
  it: Tc
2978
2978
  })[e.languageTag ?? V()](), Qu = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2979
2979
  en: vu,
@@ -2995,17 +2995,17 @@ const tc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", nc = /* @__NO_SIDE_
2995
2995
  it: Lc
2996
2996
  })[e.languageTag ?? V()](), nd = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
2997
2997
  en: _u,
2998
- it: Rc
2998
+ it: jc
2999
2999
  })[e.languageTag ?? V()](), Yr = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
3000
3000
  en: ku,
3001
- it: jc
3001
+ it: Rc
3002
3002
  })[e.languageTag ?? V()](), rd = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
3003
3003
  en: yu,
3004
3004
  it: Fc
3005
3005
  })[e.languageTag ?? V()](), sd = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
3006
3006
  en: zu,
3007
3007
  it: Dc
3008
- })[e.languageTag ?? V()](), hi = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
3008
+ })[e.languageTag ?? V()](), pi = /* @__NO_SIDE_EFFECTS__ */ (t = {}, e = {}) => ({
3009
3009
  en: $u,
3010
3010
  it: Oc
3011
3011
  })[e.languageTag ?? V()](), id = /* @__NO_SIDE_EFFECTS__ */ (t, e = {}) => ({
@@ -3024,14 +3024,14 @@ const tc = /* @__NO_SIDE_EFFECTS__ */ () => "Assistente AI", nc = /* @__NO_SIDE_
3024
3024
  en: Iu,
3025
3025
  it: Bc
3026
3026
  })[e.languageTag ?? V()]();
3027
- var ud = (t, e) => e(!e()), dd = /* @__PURE__ */ R('<button class="new-chat svelte-ib8fo5"><i class="fa-solid fa-volume-xmark"></i></button>'), fd = (t, e) => e(!e()), hd = /* @__PURE__ */ R('<button class="new-chat svelte-ib8fo5" aria-label="Mute"><i class="fa-solid fa-volume-high"></i></button>'), pd = (t, e) => e(!e()), vd = (t, e, n) => {
3027
+ var ud = (t, e) => e(!e()), dd = /* @__PURE__ */ j('<button class="new-chat svelte-ib8fo5"><i class="fa-solid fa-volume-xmark"></i></button>'), fd = (t, e) => e(!e()), pd = /* @__PURE__ */ j('<button class="new-chat svelte-ib8fo5" aria-label="Mute"><i class="fa-solid fa-volume-high"></i></button>'), hd = (t, e) => e(!e()), vd = (t, e, n) => {
3028
3028
  e() ? (e(!1), setTimeout(
3029
3029
  () => {
3030
3030
  n(!1);
3031
3031
  },
3032
3032
  450
3033
3033
  )) : n(!1);
3034
- }, gd = /* @__PURE__ */ R('<header class="svelte-ib8fo5"><section class="svelte-ib8fo5"><div class="header-left svelte-ib8fo5"><h1 class="svelte-ib8fo5">Chat</h1> <select class="language-select svelte-ib8fo5" aria-label="Select language"><option>IT</option><option>EN</option></select></div> <div class="buttons svelte-ib8fo5"><!> <button class="new-chat svelte-ib8fo5" aria-label="New chat"><i class="fa-solid fa-comment-medical"></i></button> <button class="history-button svelte-ib8fo5"><i class="fa-solid fa-clock-rotate-left"></i></button> <button class="close-button svelte-ib8fo5"><i class="fa-solid fa-xmark"></i></button></div></section></header>');
3034
+ }, gd = /* @__PURE__ */ j('<header class="svelte-ib8fo5"><section class="svelte-ib8fo5"><div class="header-left svelte-ib8fo5"><h1 class="svelte-ib8fo5">Chat</h1> <select class="language-select svelte-ib8fo5" aria-label="Select language"><option>IT</option><option>EN</option></select></div> <div class="buttons svelte-ib8fo5"><!> <button class="new-chat svelte-ib8fo5" aria-label="New chat"><i class="fa-solid fa-comment-medical"></i></button> <button class="history-button svelte-ib8fo5"><i class="fa-solid fa-clock-rotate-left"></i></button> <button class="close-button svelte-ib8fo5"><i class="fa-solid fa-xmark"></i></button></div></section></header>');
3035
3035
  const md = {
3036
3036
  hash: "svelte-ib8fo5",
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;}"
@@ -3041,11 +3041,11 @@ function Ca(t, e) {
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
- var u = gd(), d = y(u), h = y(d), p = O(y(h), 2), w = y(p);
3044
+ var u = gd(), d = y(u), p = y(d), h = O(y(p), 2), w = y(h);
3045
3045
  w.value = (w.__value = "it") == null ? "" : "it";
3046
3046
  var m = O(w);
3047
- m.value = (m.__value = "en") == null ? "" : "en", k(p), k(h);
3048
- var S = O(h, 2), x = y(S);
3047
+ m.value = (m.__value = "en") == null ? "" : "en", k(h), k(p);
3048
+ var S = O(p, 2), x = y(S);
3049
3049
  {
3050
3050
  var _ = (A) => {
3051
3051
  var N = dd();
@@ -3056,7 +3056,7 @@ function Ca(t, e) {
3056
3056
  [() => /* @__PURE__ */ Bu()]
3057
3057
  ), T(A, N);
3058
3058
  }, z = (A) => {
3059
- var N = hd();
3059
+ var N = pd();
3060
3060
  N.__click = [fd, i], D((Y) => M(N, "title", Y), [() => /* @__PURE__ */ qu()]), T(A, N);
3061
3061
  };
3062
3062
  K(x, (A) => {
@@ -3069,7 +3069,7 @@ function Ca(t, e) {
3069
3069
  (N = l()) == null || N.apply(this, A);
3070
3070
  };
3071
3071
  var E = O(F, 2);
3072
- E.__click = [pd, r];
3072
+ E.__click = [hd, r];
3073
3073
  var L = O(E, 2);
3074
3074
  return L.__click = [vd, r, n], k(S), k(d), k(u), D(
3075
3075
  (A, N, Y, le) => {
@@ -3081,7 +3081,7 @@ function Ca(t, e) {
3081
3081
  () => /* @__PURE__ */ Hu(),
3082
3082
  () => /* @__PURE__ */ Yu()
3083
3083
  ]
3084
- ), ya(p, a), xt(3, u, () => Bt, () => ({ duration: 300 })), T(t, u), se({
3084
+ ), ya(h, a), xt(3, u, () => Bt, () => ({ duration: 300 })), T(t, u), se({
3085
3085
  get show() {
3086
3086
  return n();
3087
3087
  },
@@ -3227,7 +3227,7 @@ const bd = () => {
3227
3227
  setForgeButtonsPinned: Td
3228
3228
  };
3229
3229
  class Kt {
3230
- constructor(e, n, r, s, i, a, o, c = "", l = !1, u = (/* @__PURE__ */ new Date()).getTime(), d = "loading", h = "") {
3230
+ constructor(e, n, r, s, i, a, o, c = "", l = !1, u = (/* @__PURE__ */ new Date()).getTime(), d = "loading", p = "") {
3231
3231
  C(this, "_id");
3232
3232
  C(this, "title");
3233
3233
  C(this, "companyId");
@@ -3240,7 +3240,7 @@ class Kt {
3240
3240
  C(this, "hash");
3241
3241
  C(this, "checked");
3242
3242
  C(this, "path");
3243
- this._id = e, this.title = n, this.companyId = r, this.private = s, this.externalId = i, this.idArchivio = a, this.hash = o, this.gendocId = c, this.isCommon = l, this.createdAt = u, this.checked = d, this.path = h;
3243
+ this._id = e, this.title = n, this.companyId = r, this.private = s, this.externalId = i, this.idArchivio = a, this.hash = o, this.gendocId = c, this.isCommon = l, this.createdAt = u, this.checked = d, this.path = p;
3244
3244
  }
3245
3245
  toJson() {
3246
3246
  return {
@@ -3303,7 +3303,7 @@ class en {
3303
3303
  }
3304
3304
  }
3305
3305
  class cn {
3306
- constructor(e, n, r, s, i, a, o, c = 0, l = !1, u = 40, d = !1, h = "") {
3306
+ constructor(e, n, r, s, i, a, o, c = 0, l = !1, u = 40, d = !1, p = "") {
3307
3307
  C(this, "_id", "");
3308
3308
  C(this, "path", "");
3309
3309
  C(this, "name");
@@ -3320,7 +3320,7 @@ class cn {
3320
3320
  C(this, "minLevel", 40);
3321
3321
  C(this, "cancellato", !1);
3322
3322
  C(this, "altTitle", "");
3323
- this._id = e, this.path = n, this.name = r, this.userId = s, this.companyId = i, this.isPrivate = a, this.isTemplate = o, this.suiteId = c, this.createdAt = Date.now(), this.updatedAt = Date.now(), this.excludeFromDocumentale = l, this.minLevel = u, this.cancellato = d, this.altTitle = h;
3323
+ this._id = e, this.path = n, this.name = r, this.userId = s, this.companyId = i, this.isPrivate = a, this.isTemplate = o, this.suiteId = c, this.createdAt = Date.now(), this.updatedAt = Date.now(), this.excludeFromDocumentale = l, this.minLevel = u, this.cancellato = d, this.altTitle = p;
3324
3324
  }
3325
3325
  static fromJSON(e) {
3326
3326
  return new cn(
@@ -3469,7 +3469,7 @@ const Ad = async (t) => {
3469
3469
  estensione_file: e.split(".").pop() || "",
3470
3470
  function: "edit"
3471
3471
  });
3472
- }, Rd = async () => {
3472
+ }, jd = async () => {
3473
3473
  let t = U.getEnvironmentId(), e = `https://${Es(t)}.aksiliasuite.com/api/v1/operatore`;
3474
3474
  t == "aks_svi" && (e = "https://mike.aksiliasuite.com/api/v1/operatore");
3475
3475
  const n = await fetch(e, {
@@ -3482,7 +3482,7 @@ const Ad = async (t) => {
3482
3482
  return console.error("Failed to fetch username"), "User";
3483
3483
  const r = await n.text();
3484
3484
  return JSON.parse(r).result[0].nome;
3485
- }, jd = async () => {
3485
+ }, Rd = async () => {
3486
3486
  let t = U.getEnvironmentId(), e = `https://${Es(t)}.aksiliasuite.com/api/v1/check_permission/assessment`;
3487
3487
  t == "aks_svi" && (e = "https://mike.aksiliasuite.com/api/v1/check_permission/assessment");
3488
3488
  let n = await fetch(e, {
@@ -3586,8 +3586,8 @@ const Ad = async (t) => {
3586
3586
  getDocumentPage: Ld,
3587
3587
  getForge: Fd,
3588
3588
  getForgeSingle: Dd,
3589
- getUsername: Rd,
3590
- getUserLevel: jd,
3589
+ getUsername: jd,
3590
+ getUserLevel: Rd,
3591
3591
  downloadForgePdf: Od,
3592
3592
  getGenDocs: Pd,
3593
3593
  getTranscriptions: Md,
@@ -3632,7 +3632,7 @@ const Ad = async (t) => {
3632
3632
  getAudio: Bd
3633
3633
  };
3634
3634
  Xo();
3635
- var qd = /* @__PURE__ */ R('<div class="circle svelte-dqjlks"></div>');
3635
+ var qd = /* @__PURE__ */ j('<div class="circle svelte-dqjlks"></div>');
3636
3636
  const Hd = {
3637
3637
  hash: "svelte-dqjlks",
3638
3638
  code: `.circle.svelte-dqjlks {height:var(--size);width:var(--size);border-color:var(--color) transparent var(--color) var(--color);border-width:calc(var(--size) / 15);border-style:solid;border-image:initial;border-radius:50%;
@@ -3698,7 +3698,7 @@ oe(
3698
3698
  [],
3699
3699
  !0
3700
3700
  );
3701
- var Gd = /* @__PURE__ */ R('<div class="circle svelte-1w4sjib"></div>');
3701
+ var Gd = /* @__PURE__ */ j('<div class="circle svelte-1w4sjib"></div>');
3702
3702
  const Jd = {
3703
3703
  hash: "svelte-1w4sjib",
3704
3704
  code: `.circle.svelte-1w4sjib {width:var(--size);height:var(--size);box-sizing:border-box;position:relative;border:3px solid transparent;border-top-color:var(--colorOuter);border-radius:50%;
@@ -3721,69 +3721,69 @@ const Jd = {
3721
3721
  function Wd(t, e) {
3722
3722
  re(e, !1), ue(t, Jd);
3723
3723
  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`);
3724
- var h = Gd();
3724
+ var p = Gd();
3725
3725
  return D(() => {
3726
- M(h, "style", `--size: ${n() ?? ""}${r() ?? ""}; --colorInner: ${o() ?? ""}; --colorCenter: ${a() ?? ""}; --colorOuter: ${i() ?? ""}; --durationInner: ${u() ?? ""}; --durationCenter: ${d() ?? ""}; --durationOuter: ${l() ?? ""};`), ne(h, "pause-animation", s());
3727
- }), T(t, h), se({
3726
+ M(p, "style", `--size: ${n() ?? ""}${r() ?? ""}; --colorInner: ${o() ?? ""}; --colorCenter: ${a() ?? ""}; --colorOuter: ${i() ?? ""}; --durationInner: ${u() ?? ""}; --durationCenter: ${d() ?? ""}; --durationOuter: ${l() ?? ""};`), ne(p, "pause-animation", s());
3727
+ }), T(t, p), se({
3728
3728
  get size() {
3729
3729
  return n();
3730
3730
  },
3731
- set size(p) {
3732
- n(p), v();
3731
+ set size(h) {
3732
+ n(h), v();
3733
3733
  },
3734
3734
  get unit() {
3735
3735
  return r();
3736
3736
  },
3737
- set unit(p) {
3738
- r(p), v();
3737
+ set unit(h) {
3738
+ r(h), v();
3739
3739
  },
3740
3740
  get pause() {
3741
3741
  return s();
3742
3742
  },
3743
- set pause(p) {
3744
- s(p), v();
3743
+ set pause(h) {
3744
+ s(h), v();
3745
3745
  },
3746
3746
  get colorOuter() {
3747
3747
  return i();
3748
3748
  },
3749
- set colorOuter(p) {
3750
- i(p), v();
3749
+ set colorOuter(h) {
3750
+ i(h), v();
3751
3751
  },
3752
3752
  get colorCenter() {
3753
3753
  return a();
3754
3754
  },
3755
- set colorCenter(p) {
3756
- a(p), v();
3755
+ set colorCenter(h) {
3756
+ a(h), v();
3757
3757
  },
3758
3758
  get colorInner() {
3759
3759
  return o();
3760
3760
  },
3761
- set colorInner(p) {
3762
- o(p), v();
3761
+ set colorInner(h) {
3762
+ o(h), v();
3763
3763
  },
3764
3764
  get durationMultiplier() {
3765
3765
  return c();
3766
3766
  },
3767
- set durationMultiplier(p) {
3768
- c(p), v();
3767
+ set durationMultiplier(h) {
3768
+ c(h), v();
3769
3769
  },
3770
3770
  get durationOuter() {
3771
3771
  return l();
3772
3772
  },
3773
- set durationOuter(p) {
3774
- l(p), v();
3773
+ set durationOuter(h) {
3774
+ l(h), v();
3775
3775
  },
3776
3776
  get durationInner() {
3777
3777
  return u();
3778
3778
  },
3779
- set durationInner(p) {
3780
- u(p), v();
3779
+ set durationInner(h) {
3780
+ u(h), v();
3781
3781
  },
3782
3782
  get durationCenter() {
3783
3783
  return d();
3784
3784
  },
3785
- set durationCenter(p) {
3786
- d(p), v();
3785
+ set durationCenter(h) {
3786
+ d(h), v();
3787
3787
  }
3788
3788
  });
3789
3789
  }
@@ -3805,7 +3805,7 @@ oe(
3805
3805
  [],
3806
3806
  !0
3807
3807
  );
3808
- var Zd = /* @__PURE__ */ R('<div class="wrapper svelte-7wj78d"><div class="inner svelte-7wj78d"><div class="ball-container svelte-7wj78d"><div class="single-ball svelte-7wj78d"><div class="ball ball-top-left svelte-7wj78d">&nbsp;</div></div> <div class="contener_mixte svelte-7wj78d"><div class="ball ball-top-right svelte-7wj78d">&nbsp;</div></div> <div class="contener_mixte svelte-7wj78d"><div class="ball ball-bottom-left svelte-7wj78d">&nbsp;</div></div> <div class="contener_mixte svelte-7wj78d"><div class="ball ball-bottom-right svelte-7wj78d">&nbsp;</div></div></div></div></div>');
3808
+ var Zd = /* @__PURE__ */ j('<div class="wrapper svelte-7wj78d"><div class="inner svelte-7wj78d"><div class="ball-container svelte-7wj78d"><div class="single-ball svelte-7wj78d"><div class="ball ball-top-left svelte-7wj78d">&nbsp;</div></div> <div class="contener_mixte svelte-7wj78d"><div class="ball ball-top-right svelte-7wj78d">&nbsp;</div></div> <div class="contener_mixte svelte-7wj78d"><div class="ball ball-bottom-left svelte-7wj78d">&nbsp;</div></div> <div class="contener_mixte svelte-7wj78d"><div class="ball ball-bottom-right svelte-7wj78d">&nbsp;</div></div></div></div></div>');
3809
3809
  const Xd = {
3810
3810
  hash: "svelte-7wj78d",
3811
3811
  code: `.wrapper.svelte-7wj78d {width:var(--size);height:var(--size);display:flex;justify-content:center;align-items:center;line-height:0;box-sizing:border-box;}.inner.svelte-7wj78d {transform:scale(calc(var(--floatSize) / 52));}.ball-container.svelte-7wj78d {
@@ -3840,15 +3840,15 @@ const Xd = {
3840
3840
  function Vd(t, e) {
3841
3841
  re(e, !1), ue(t, Xd);
3842
3842
  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");
3843
- var u = Zd(), d = y(u), h = y(d), p = y(h), w = y(p);
3844
- k(p);
3845
- var m = O(p, 2), S = y(m);
3843
+ var u = Zd(), d = y(u), p = y(d), h = y(p), w = y(h);
3844
+ k(h);
3845
+ var m = O(h, 2), S = y(m);
3846
3846
  k(m);
3847
3847
  var x = O(m, 2), _ = y(x);
3848
3848
  k(x);
3849
3849
  var z = O(x, 2), F = y(z);
3850
- return k(z), k(h), k(d), k(u), D(() => {
3851
- M(u, "style", `--size: ${n() ?? ""}${r() ?? ""}; --floatSize: ${n() ?? ""}; --ballTopLeftColor: ${i() ?? ""}; --ballTopRightColor: ${a() ?? ""}; --ballBottomLeftColor: ${o() ?? ""}; --ballBottomRightColor: ${c() ?? ""}; --duration: ${l() ?? ""};`), ne(h, "pause-animation", s()), ne(w, "pause-animation", s()), ne(S, "pause-animation", s()), ne(_, "pause-animation", s()), ne(F, "pause-animation", s());
3850
+ return k(z), k(p), k(d), k(u), D(() => {
3851
+ M(u, "style", `--size: ${n() ?? ""}${r() ?? ""}; --floatSize: ${n() ?? ""}; --ballTopLeftColor: ${i() ?? ""}; --ballTopRightColor: ${a() ?? ""}; --ballBottomLeftColor: ${o() ?? ""}; --ballBottomRightColor: ${c() ?? ""}; --duration: ${l() ?? ""};`), ne(p, "pause-animation", s()), ne(w, "pause-animation", s()), ne(S, "pause-animation", s()), ne(_, "pause-animation", s()), ne(F, "pause-animation", s());
3852
3852
  }), T(t, u), se({
3853
3853
  get size() {
3854
3854
  return n();
@@ -3925,7 +3925,7 @@ const He = /[a-zA-Z]/, As = (t, e) => {
3925
3925
  }
3926
3926
  return `rgba(${(t.match(/.{2}/g) || []).map((r) => parseInt(r, 16)).join(", ")}, ${e})`;
3927
3927
  }, St = (t, e = 0) => [...Array(t).keys()].map((n) => n + e);
3928
- var Qd = /* @__PURE__ */ R('<div class="circle svelte-1bsg8wv"></div>'), Kd = /* @__PURE__ */ R('<div class="wrapper svelte-1bsg8wv"></div>');
3928
+ var Qd = /* @__PURE__ */ j('<div class="circle svelte-1bsg8wv"></div>'), Kd = /* @__PURE__ */ j('<div class="wrapper svelte-1bsg8wv"></div>');
3929
3929
  const ef = {
3930
3930
  hash: "svelte-1bsg8wv",
3931
3931
  code: `.wrapper.svelte-1bsg8wv {position:relative;width:var(--size);height:var(--size);}.circle.svelte-1bsg8wv {position:absolute;width:var(--size);height:var(--size);background-color:var(--color);border-radius:100%;opacity:0.6;top:0;left:0;animation-fill-mode:both;
@@ -3946,11 +3946,11 @@ function tf(t, e) {
3946
3946
  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(He)) == null ? void 0 : u[0]) ?? "s", c = s().replace(He, "");
3947
3947
  ct();
3948
3948
  var l = Kd();
3949
- return Qe(l, 5, () => St(2, 1), Ve, (d, h) => {
3950
- var p = Qd();
3949
+ return Qe(l, 5, () => St(2, 1), Ve, (d, p) => {
3950
+ var h = Qd();
3951
3951
  D(() => {
3952
- M(p, "style", `animation: ${s() ?? ""} ${(f(h) === 1 ? `${(+c - 0.1) / 2}${o}` : "0s") ?? ""} infinite ease-in-out`), ne(p, "pause-animation", a());
3953
- }), T(d, p);
3952
+ M(h, "style", `animation: ${s() ?? ""} ${(f(p) === 1 ? `${(+c - 0.1) / 2}${o}` : "0s") ?? ""} infinite ease-in-out`), ne(h, "pause-animation", a());
3953
+ }), T(d, h);
3954
3954
  }), k(l), D(() => M(l, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}`)), T(t, l), se({
3955
3955
  get color() {
3956
3956
  return n();
@@ -3997,7 +3997,7 @@ oe(
3997
3997
  [],
3998
3998
  !0
3999
3999
  );
4000
- var nf = /* @__PURE__ */ R('<div class="spinner spinner--google svelte-rhgdjk"></div>');
4000
+ var nf = /* @__PURE__ */ j('<div class="spinner spinner--google svelte-rhgdjk"></div>');
4001
4001
  const rf = {
4002
4002
  hash: "svelte-rhgdjk",
4003
4003
  code: `.svelte-rhgdjk {overflow:hidden;position:relative;text-indent:-9999px;display:inline-block;background:#f86;border-radius:50%;transform:rotateZ(90deg);transform-origin:50% 50%;
@@ -4205,7 +4205,7 @@ function sf(t, e) {
4205
4205
  });
4206
4206
  }
4207
4207
  oe(sf, { size: {}, duration: {}, pause: {} }, [], [], !0);
4208
- var af = /* @__PURE__ */ R('<div class="wrapper svelte-1w1ueev"><div class="circle svelte-1w1ueev"></div></div>');
4208
+ var af = /* @__PURE__ */ j('<div class="wrapper svelte-1w1ueev"><div class="circle svelte-1w1ueev"></div></div>');
4209
4209
  const of = {
4210
4210
  hash: "svelte-1w1ueev",
4211
4211
  code: `.wrapper.svelte-1w1ueev {width:var(--size);height:var(--size);}.circle.svelte-1w1ueev {width:var(--size);height:var(--size);background-color:var(--color);animation-duration:var(--duration);border-radius:100%;display:inline-block;
@@ -4272,7 +4272,7 @@ oe(
4272
4272
  [],
4273
4273
  !0
4274
4274
  );
4275
- var cf = /* @__PURE__ */ R('<div class="wrapper svelte-nfuakd"><div class="line svelte-nfuakd"></div></div>');
4275
+ var cf = /* @__PURE__ */ j('<div class="wrapper svelte-nfuakd"><div class="line svelte-nfuakd"></div></div>');
4276
4276
  const uf = {
4277
4277
  hash: "svelte-nfuakd",
4278
4278
  code: `.wrapper.svelte-nfuakd {width:var(--size);height:var(--stroke);transform:scale(calc(var(--floatSize) / 75));display:flex;justify-content:center;align-items:center;}.line.svelte-nfuakd {width:var(--size);height:var(--stroke);background:var(--color);border-radius:var(--stroke);transform-origin:center center;
@@ -4392,8 +4392,8 @@ oe(
4392
4392
  [],
4393
4393
  !0
4394
4394
  );
4395
- var ff = /* @__PURE__ */ R('<div class="rect svelte-cihful"></div>'), hf = /* @__PURE__ */ R('<div class="wrapper svelte-cihful"></div>');
4396
- const pf = {
4395
+ var ff = /* @__PURE__ */ j('<div class="rect svelte-cihful"></div>'), pf = /* @__PURE__ */ j('<div class="wrapper svelte-cihful"></div>');
4396
+ const hf = {
4397
4397
  hash: "svelte-cihful",
4398
4398
  code: `.wrapper.svelte-cihful {height:var(--size);width:var(--size);display:inline-block;text-align:center;font-size:10px;}.rect.svelte-cihful {height:100%;width:10%;display:inline-block;margin-right:4px;transform:scaleY(0.4);background-color:var(--color);
4399
4399
  animation: svelte-cihful-stretch var(--duration) ease-in-out infinite;}.pause-animation.svelte-cihful {animation-play-state:paused;}
@@ -4410,15 +4410,15 @@ const pf = {
4410
4410
  };
4411
4411
  function vf(t, e) {
4412
4412
  var u;
4413
- re(e, !1), ue(t, pf);
4413
+ re(e, !1), ue(t, hf);
4414
4414
  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(He)) == null ? void 0 : u[0]) ?? "s", c = s().replace(He, "");
4415
4415
  ct();
4416
- var l = hf();
4417
- return Qe(l, 5, () => St(5, 1), Ve, (d, h) => {
4418
- var p = ff();
4416
+ var l = pf();
4417
+ return Qe(l, 5, () => St(5, 1), Ve, (d, p) => {
4418
+ var h = ff();
4419
4419
  D(() => {
4420
- M(p, "style", `animation-delay: ${(f(h) - 1) * (+c / 12)}${o ?? ""}`), ne(p, "pause-animation", a());
4421
- }), T(d, p);
4420
+ M(h, "style", `animation-delay: ${(f(p) - 1) * (+c / 12)}${o ?? ""}`), ne(h, "pause-animation", a());
4421
+ }), T(d, h);
4422
4422
  }), k(l), D(() => M(l, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""}`)), T(t, l), se({
4423
4423
  get color() {
4424
4424
  return n();
@@ -4465,7 +4465,7 @@ oe(
4465
4465
  [],
4466
4466
  !0
4467
4467
  );
4468
- var gf = /* @__PURE__ */ R("<div></div>"), mf = /* @__PURE__ */ R('<div class="wrapper svelte-bnawe9"></div>');
4468
+ var gf = /* @__PURE__ */ j("<div></div>"), mf = /* @__PURE__ */ j('<div class="wrapper svelte-bnawe9"></div>');
4469
4469
  const bf = {
4470
4470
  hash: "svelte-bnawe9",
4471
4471
  code: `.wrapper.svelte-bnawe9 {height:calc(var(--size) / 15);width:calc(var(--size) * 2);background-color:var(--rgba);position:relative;overflow:hidden;background-clip:padding-box;}.lines.svelte-bnawe9 {height:calc(var(--size) / 15);background-color:var(--color);}.small-lines.svelte-bnawe9 {position:absolute;overflow:hidden;background-clip:padding-box;display:block;border-radius:2px;will-change:left, right;animation-fill-mode:forwards;}.small-lines.\\31.svelte-bnawe9 {
@@ -4564,7 +4564,7 @@ oe(
4564
4564
  [],
4565
4565
  !0
4566
4566
  );
4567
- var wf = /* @__PURE__ */ R('<div class="circle svelte-c0n7a9"></div>'), _f = /* @__PURE__ */ R('<div class="wrapper svelte-c0n7a9"></div>');
4567
+ var wf = /* @__PURE__ */ j('<div class="circle svelte-c0n7a9"></div>'), _f = /* @__PURE__ */ j('<div class="wrapper svelte-c0n7a9"></div>');
4568
4568
  const kf = {
4569
4569
  hash: "svelte-c0n7a9",
4570
4570
  code: `.wrapper.svelte-c0n7a9 {width:var(--size);height:var(--size);}.circle.svelte-c0n7a9 {border-radius:100%;animation-fill-mode:both;position:absolute;opacity:0;width:var(--size);height:var(--size);background-color:var(--color);
@@ -4589,11 +4589,11 @@ function yf(t, e) {
4589
4589
  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(He)) == null ? void 0 : u[0]) ?? "s", c = s().replace(He, "");
4590
4590
  ct();
4591
4591
  var l = _f();
4592
- return Qe(l, 5, () => St(3, 1), Ve, (d, h) => {
4593
- var p = wf();
4592
+ return Qe(l, 5, () => St(3, 1), Ve, (d, p) => {
4593
+ var h = wf();
4594
4594
  D(() => {
4595
- M(p, "style", `animation-delay: ${+c / 3 * (f(h) - 1) + o};`), ne(p, "pause-animation", a());
4596
- }), T(d, p);
4595
+ M(h, "style", `animation-delay: ${+c / 3 * (f(p) - 1) + o};`), ne(h, "pause-animation", a());
4596
+ }), T(d, h);
4597
4597
  }), k(l), D(() => M(l, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""};`)), T(t, l), se({
4598
4598
  get color() {
4599
4599
  return n();
@@ -4640,7 +4640,7 @@ oe(
4640
4640
  [],
4641
4641
  !0
4642
4642
  );
4643
- var zf = /* @__PURE__ */ R("<div></div>"), $f = /* @__PURE__ */ R('<div class="wrapper svelte-kxapcj"></div>');
4643
+ var zf = /* @__PURE__ */ j("<div></div>"), $f = /* @__PURE__ */ j('<div class="wrapper svelte-kxapcj"></div>');
4644
4644
  const Tf = {
4645
4645
  hash: "svelte-kxapcj",
4646
4646
  code: `.wrapper.svelte-kxapcj {position:relative;width:var(--size);height:var(--size);}.border.svelte-kxapcj {border-color:var(--color);position:absolute;top:0px;left:0px;width:var(--size);height:var(--size);opacity:0.4;perspective:800px;border-width:6px;border-style:solid;border-image:initial;border-radius:100%;}.border.\\31.svelte-kxapcj {
@@ -4720,7 +4720,7 @@ oe(
4720
4720
  [],
4721
4721
  !0
4722
4722
  );
4723
- var Ef = /* @__PURE__ */ R('<div class="dot svelte-14x3x60"></div>'), Cf = /* @__PURE__ */ R('<div class="wrapper svelte-14x3x60"></div>');
4723
+ var Ef = /* @__PURE__ */ j('<div class="dot svelte-14x3x60"></div>'), Cf = /* @__PURE__ */ j('<div class="wrapper svelte-14x3x60"></div>');
4724
4724
  const If = {
4725
4725
  hash: "svelte-14x3x60",
4726
4726
  code: `.wrapper.svelte-14x3x60 {height:var(--size);width:var(--size);display:flex;align-items:center;justify-content:center;}.dot.svelte-14x3x60 {height:var(--dotSize);width:var(--dotSize);background-color:var(--color);margin:2px;display:inline-block;border-radius:100%;
@@ -4761,11 +4761,11 @@ function Af(t, e) {
4761
4761
  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(He)) == null ? void 0 : u[0]) ?? "s", c = s().replace(He, "");
4762
4762
  ct();
4763
4763
  var l = Cf();
4764
- return Qe(l, 5, () => St(3, 1), Ve, (d, h) => {
4765
- var p = Ef();
4764
+ return Qe(l, 5, () => St(3, 1), Ve, (d, p) => {
4765
+ var h = Ef();
4766
4766
  D(() => {
4767
- M(p, "style", `--dotSize:${+i() * 0.25}${r() ?? ""}; --color:${n() ?? ""}; animation-delay: ${f(h) * (+c / 10)}${o ?? ""};`), ne(p, "pause-animation", a());
4768
- }), T(d, p);
4767
+ M(h, "style", `--dotSize:${+i() * 0.25}${r() ?? ""}; --color:${n() ?? ""}; animation-delay: ${f(p) * (+c / 10)}${o ?? ""};`), ne(h, "pause-animation", a());
4768
+ }), T(d, h);
4769
4769
  }), k(l), D(() => M(l, "style", `--size:${i() ?? ""}${r() ?? ""}; --duration: ${s() ?? ""};`)), T(t, l), se({
4770
4770
  get color() {
4771
4771
  return n();
@@ -4812,8 +4812,8 @@ oe(
4812
4812
  [],
4813
4813
  !0
4814
4814
  );
4815
- var Lf = /* @__PURE__ */ R('<div class="wrapper svelte-1lgkc8y"><div class="rainbow svelte-1lgkc8y"></div></div>');
4816
- const Rf = {
4815
+ var Lf = /* @__PURE__ */ j('<div class="wrapper svelte-1lgkc8y"><div class="rainbow svelte-1lgkc8y"></div></div>');
4816
+ const jf = {
4817
4817
  hash: "svelte-1lgkc8y",
4818
4818
  code: `.wrapper.svelte-1lgkc8y {width:var(--size);height:calc(var(--size) / 2);overflow:hidden;}.rainbow.svelte-1lgkc8y {width:var(--size);height:var(--size);border-left-color:transparent;border-bottom-color:transparent;border-top-color:var(--color);border-right-color:var(--color);box-sizing:border-box;transform:rotate(-200deg);border-radius:50%;border-style:solid;
4819
4819
  animation: var(--duration) ease-in-out 0s infinite normal none running svelte-1lgkc8y-rotate;}.pause-animation.svelte-1lgkc8y {animation-play-state:paused;}
@@ -4836,8 +4836,8 @@ const Rf = {
4836
4836
  }
4837
4837
  }`
4838
4838
  };
4839
- function jf(t, e) {
4840
- re(e, !1), ue(t, Rf);
4839
+ function Rf(t, e) {
4840
+ re(e, !1), ue(t, jf);
4841
4841
  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);
4842
4842
  var o = Lf(), c = y(o);
4843
4843
  return k(o), D(() => {
@@ -4876,7 +4876,7 @@ function jf(t, e) {
4876
4876
  });
4877
4877
  }
4878
4878
  oe(
4879
- jf,
4879
+ Rf,
4880
4880
  {
4881
4881
  color: {},
4882
4882
  unit: {},
@@ -4888,7 +4888,7 @@ oe(
4888
4888
  [],
4889
4889
  !0
4890
4890
  );
4891
- var Ff = /* @__PURE__ */ R('<div class="wrapper svelte-x7zza7"><div class="firework svelte-x7zza7"></div></div>');
4891
+ var Ff = /* @__PURE__ */ j('<div class="wrapper svelte-x7zza7"><div class="firework svelte-x7zza7"></div></div>');
4892
4892
  const Df = {
4893
4893
  hash: "svelte-x7zza7",
4894
4894
  code: `.wrapper.svelte-x7zza7 {width:calc(var(--size) * 1.3);height:calc(var(--size) * 1.3);display:flex;justify-content:center;align-items:center;}.firework.svelte-x7zza7 {border:calc(var(--size) / 10) dotted var(--color);width:var(--size);height:var(--size);border-radius:50%;
@@ -4960,7 +4960,7 @@ oe(
4960
4960
  [],
4961
4961
  !0
4962
4962
  );
4963
- var Pf = /* @__PURE__ */ R('<div class="cube svelte-1w8rpx6"></div>'), Mf = /* @__PURE__ */ R('<div class="wrapper svelte-1w8rpx6"></div>');
4963
+ var Pf = /* @__PURE__ */ j('<div class="cube svelte-1w8rpx6"></div>'), Mf = /* @__PURE__ */ j('<div class="wrapper svelte-1w8rpx6"></div>');
4964
4964
  const Nf = {
4965
4965
  hash: "svelte-1w8rpx6",
4966
4966
  code: `.wrapper.svelte-1w8rpx6 {position:relative;display:flex;justify-content:center;align-items:center;width:var(--size);height:calc(var(--size) / 2.5);}.cube.svelte-1w8rpx6 {position:absolute;top:0px;width:calc(var(--size) / 5);height:calc(var(--size) / 2.5);background-color:var(--color);
@@ -4983,11 +4983,11 @@ function Ls(t, e) {
4983
4983
  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(He)) == null ? void 0 : u[0]) ?? "s", c = s().replace(He, "");
4984
4984
  ct();
4985
4985
  var l = Mf();
4986
- return Qe(l, 5, () => St(3, 0), Ve, (d, h) => {
4987
- var p = Pf();
4986
+ return Qe(l, 5, () => St(3, 0), Ve, (d, p) => {
4987
+ var h = Pf();
4988
4988
  D(() => {
4989
- M(p, "style", `animation-delay: ${f(h) * (+c / 10)}${o ?? ""}; left: ${f(h) * (+i() / 3 + +i() / 15) + r()};`), ne(p, "pause-animation", a());
4990
- }), T(d, p);
4989
+ M(h, "style", `animation-delay: ${f(p) * (+c / 10)}${o ?? ""}; left: ${f(p) * (+i() / 3 + +i() / 15) + r()};`), ne(h, "pause-animation", a());
4990
+ }), T(d, h);
4991
4991
  }), k(l), D(() => M(l, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""}`)), T(t, l), se({
4992
4992
  get color() {
4993
4993
  return n();
@@ -5034,7 +5034,7 @@ oe(
5034
5034
  [],
5035
5035
  !0
5036
5036
  );
5037
- var Uf = /* @__PURE__ */ R('<div class="ring svelte-1rvptk"></div>'), Bf = /* @__PURE__ */ R('<div class="wrapper svelte-1rvptk"></div>');
5037
+ var Uf = /* @__PURE__ */ j('<div class="ring svelte-1rvptk"></div>'), Bf = /* @__PURE__ */ j('<div class="wrapper svelte-1rvptk"></div>');
5038
5038
  const qf = {
5039
5039
  hash: "svelte-1rvptk",
5040
5040
  code: `.wrapper.svelte-1rvptk {position:relative;display:flex;justify-content:center;align-items:center;width:var(--size);height:var(--size);}.ring.svelte-1rvptk {position:absolute;border:2px solid var(--color);border-radius:50%;background-color:transparent;
@@ -5057,11 +5057,11 @@ function Hf(t, e) {
5057
5057
  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(He)) == null ? void 0 : u[0]) ?? "s", c = s().replace(He, "");
5058
5058
  ct();
5059
5059
  var l = Bf();
5060
- return Qe(l, 5, () => St(6, 0), Ve, (d, h) => {
5061
- var p = Uf();
5060
+ return Qe(l, 5, () => St(6, 0), Ve, (d, p) => {
5061
+ var h = Uf();
5062
5062
  D(() => {
5063
- M(p, "style", `animation-delay: ${f(h) * (+c / 25)}${o ?? ""}; width: ${f(h) * (+i() / 6) + r()}; height: ${f(h) * (+i() / 6) / 2 + r()}; `), ne(p, "pause-animation", a());
5064
- }), T(d, p);
5063
+ M(h, "style", `animation-delay: ${f(p) * (+c / 25)}${o ?? ""}; width: ${f(p) * (+i() / 6) + r()}; height: ${f(p) * (+i() / 6) / 2 + r()}; `), ne(h, "pause-animation", a());
5064
+ }), T(d, h);
5065
5065
  }), k(l), D(() => M(l, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --motionOne: ${-i() / 5}${r() ?? ""}; --motionTwo: ${+i() / 4}${r() ?? ""}; --motionThree: ${-i() / 5}${r() ?? ""}; --duration: ${s() ?? ""};`)), T(t, l), se({
5066
5066
  get color() {
5067
5067
  return n();
@@ -5108,7 +5108,7 @@ oe(
5108
5108
  [],
5109
5109
  !0
5110
5110
  );
5111
- var Yf = /* @__PURE__ */ R('<div class="dot svelte-1uhddr4"></div>'), Gf = /* @__PURE__ */ R('<div class="wrapper svelte-1uhddr4"><div class="spinner svelte-1uhddr4"></div></div>');
5111
+ var Yf = /* @__PURE__ */ j('<div class="dot svelte-1uhddr4"></div>'), Gf = /* @__PURE__ */ j('<div class="wrapper svelte-1uhddr4"><div class="spinner svelte-1uhddr4"></div></div>');
5112
5112
  const Jf = {
5113
5113
  hash: "svelte-1uhddr4",
5114
5114
  code: `.wrapper.svelte-1uhddr4 {height:var(--size);width:var(--size);display:flex;justify-content:center;align-items:center;}.spinner.svelte-1uhddr4 {height:var(--size);width:var(--size);
@@ -5136,43 +5136,43 @@ function Wf(t, e) {
5136
5136
  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(He)) == null ? void 0 : d[0]) ?? "s", c = s().replace(He, "");
5137
5137
  ct();
5138
5138
  var l = Gf(), u = y(l);
5139
- return Qe(u, 5, () => St(2, 0), Ve, (h, p) => {
5139
+ return Qe(u, 5, () => St(2, 0), Ve, (p, h) => {
5140
5140
  var w = Yf();
5141
5141
  D(() => {
5142
- M(w, "style", `animation-delay: ${(f(p) === 1 ? `${+c / 2}${o}` : "0s") ?? ""}; ${(f(p) === 1 ? "bottom: 0;" : "") ?? ""} ${(f(p) === 1 ? "top: auto;" : "") ?? ""}`), ne(w, "pause-animation", a());
5143
- }), T(h, w);
5142
+ M(w, "style", `animation-delay: ${(f(h) === 1 ? `${+c / 2}${o}` : "0s") ?? ""}; ${(f(h) === 1 ? "bottom: 0;" : "") ?? ""} ${(f(h) === 1 ? "top: auto;" : "") ?? ""}`), ne(w, "pause-animation", a());
5143
+ }), T(p, w);
5144
5144
  }), k(u), k(l), D(() => {
5145
5145
  M(l, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""};`), ne(u, "pause-animation", a());
5146
5146
  }), T(t, l), se({
5147
5147
  get color() {
5148
5148
  return n();
5149
5149
  },
5150
- set color(h) {
5151
- n(h), v();
5150
+ set color(p) {
5151
+ n(p), v();
5152
5152
  },
5153
5153
  get unit() {
5154
5154
  return r();
5155
5155
  },
5156
- set unit(h) {
5157
- r(h), v();
5156
+ set unit(p) {
5157
+ r(p), v();
5158
5158
  },
5159
5159
  get duration() {
5160
5160
  return s();
5161
5161
  },
5162
- set duration(h) {
5163
- s(h), v();
5162
+ set duration(p) {
5163
+ s(p), v();
5164
5164
  },
5165
5165
  get size() {
5166
5166
  return i();
5167
5167
  },
5168
- set size(h) {
5169
- i(h), v();
5168
+ set size(p) {
5169
+ i(p), v();
5170
5170
  },
5171
5171
  get pause() {
5172
5172
  return a();
5173
5173
  },
5174
- set pause(h) {
5175
- a(h), v();
5174
+ set pause(p) {
5175
+ a(p), v();
5176
5176
  }
5177
5177
  });
5178
5178
  }
@@ -5189,7 +5189,7 @@ oe(
5189
5189
  [],
5190
5190
  !0
5191
5191
  );
5192
- var Zf = /* @__PURE__ */ R('<div class="square svelte-x90y"></div>');
5192
+ var Zf = /* @__PURE__ */ j('<div class="square svelte-x90y"></div>');
5193
5193
  const Xf = {
5194
5194
  hash: "svelte-x90y",
5195
5195
  code: `.square.svelte-x90y {height:var(--size);width:var(--size);background-color:var(--color);
@@ -5265,7 +5265,7 @@ oe(
5265
5265
  [],
5266
5266
  !0
5267
5267
  );
5268
- var Qf = /* @__PURE__ */ R('<div class="wrapper svelte-5bpnhx"><div class="shadow svelte-5bpnhx"></div></div>');
5268
+ var Qf = /* @__PURE__ */ j('<div class="wrapper svelte-5bpnhx"><div class="shadow svelte-5bpnhx"></div></div>');
5269
5269
  const Kf = {
5270
5270
  hash: "svelte-5bpnhx",
5271
5271
  code: `.wrapper.svelte-5bpnhx {position:relative;display:flex;justify-content:center;align-items:center;width:var(--size);height:var(--size);}.shadow.svelte-5bpnhx {color:var(--color);font-size:var(--size);overflow:hidden;width:var(--size);height:var(--size);border-radius:50%;margin:28px auto;position:relative;transform:translateZ(0);
@@ -5307,7 +5307,7 @@ const Kf = {
5307
5307
  }
5308
5308
  }`
5309
5309
  };
5310
- function eh(t, e) {
5310
+ function ep(t, e) {
5311
5311
  re(e, !1), ue(t, Kf);
5312
5312
  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);
5313
5313
  var o = Qf(), c = y(o);
@@ -5347,7 +5347,7 @@ function eh(t, e) {
5347
5347
  });
5348
5348
  }
5349
5349
  oe(
5350
- eh,
5350
+ ep,
5351
5351
  {
5352
5352
  color: {},
5353
5353
  unit: {},
@@ -5359,8 +5359,8 @@ oe(
5359
5359
  [],
5360
5360
  !0
5361
5361
  );
5362
- var th = /* @__PURE__ */ R('<div class="wrapper svelte-e653jg"><div class="circle-one svelte-e653jg"></div> <div class="circle-two svelte-e653jg"></div></div>');
5363
- const nh = {
5362
+ var tp = /* @__PURE__ */ j('<div class="wrapper svelte-e653jg"><div class="circle-one svelte-e653jg"></div> <div class="circle-two svelte-e653jg"></div></div>');
5363
+ const np = {
5364
5364
  hash: "svelte-e653jg",
5365
5365
  code: `.wrapper.svelte-e653jg {height:var(--size);width:var(--size);border-radius:100%;
5366
5366
  animation: svelte-e653jg-moonStretchDelay var(--duration) 0s infinite linear;animation-fill-mode:forwards;position:relative;}.circle-one.svelte-e653jg {top:var(--moonSize);background-color:var(--color);width:calc(var(--size) / 7);height:calc(var(--size) / 7);border-radius:100%;
@@ -5371,47 +5371,47 @@ const nh = {
5371
5371
  }
5372
5372
  }`
5373
5373
  };
5374
- function rh(t, e) {
5375
- re(e, !1), ue(t, nh);
5374
+ function rp(t, e) {
5375
+ re(e, !1), ue(t, np);
5376
5376
  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;
5377
- var l = th(), u = y(l), d = O(u, 2);
5377
+ var l = tp(), u = y(l), d = O(u, 2);
5378
5378
  return k(l), D(() => {
5379
5379
  M(l, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --moonSize: ${c ?? ""}${r() ?? ""}; --duration: ${s() ?? ""};`), ne(l, "pause-animation", a()), ne(u, "pause-animation", a()), ne(d, "pause-animation", a());
5380
5380
  }), T(t, l), se({
5381
5381
  get color() {
5382
5382
  return n();
5383
5383
  },
5384
- set color(h) {
5385
- n(h), v();
5384
+ set color(p) {
5385
+ n(p), v();
5386
5386
  },
5387
5387
  get unit() {
5388
5388
  return r();
5389
5389
  },
5390
- set unit(h) {
5391
- r(h), v();
5390
+ set unit(p) {
5391
+ r(p), v();
5392
5392
  },
5393
5393
  get duration() {
5394
5394
  return s();
5395
5395
  },
5396
- set duration(h) {
5397
- s(h), v();
5396
+ set duration(p) {
5397
+ s(p), v();
5398
5398
  },
5399
5399
  get size() {
5400
5400
  return i();
5401
5401
  },
5402
- set size(h) {
5403
- i(h), v();
5402
+ set size(p) {
5403
+ i(p), v();
5404
5404
  },
5405
5405
  get pause() {
5406
5406
  return a();
5407
5407
  },
5408
- set pause(h) {
5409
- a(h), v();
5408
+ set pause(p) {
5409
+ a(p), v();
5410
5410
  }
5411
5411
  });
5412
5412
  }
5413
5413
  oe(
5414
- rh,
5414
+ rp,
5415
5415
  {
5416
5416
  color: {},
5417
5417
  unit: {},
@@ -5423,8 +5423,8 @@ oe(
5423
5423
  [],
5424
5424
  !0
5425
5425
  );
5426
- var sh = /* @__PURE__ */ R('<div class="wrapper svelte-1cx3779"><div class="spinner-inner svelte-1cx3779"><div id="top" class="mask svelte-1cx3779"><div class="plane svelte-1cx3779"></div></div> <div id="middle" class="mask svelte-1cx3779"><div class="plane svelte-1cx3779"></div></div> <div id="bottom" class="mask svelte-1cx3779"><div class="plane svelte-1cx3779"></div></div></div></div>');
5427
- const ih = {
5426
+ var sp = /* @__PURE__ */ j('<div class="wrapper svelte-1cx3779"><div class="spinner-inner svelte-1cx3779"><div id="top" class="mask svelte-1cx3779"><div class="plane svelte-1cx3779"></div></div> <div id="middle" class="mask svelte-1cx3779"><div class="plane svelte-1cx3779"></div></div> <div id="bottom" class="mask svelte-1cx3779"><div class="plane svelte-1cx3779"></div></div></div></div>');
5427
+ const ip = {
5428
5428
  hash: "svelte-1cx3779",
5429
5429
  code: `.wrapper.svelte-1cx3779 {height:var(--size);width:var(--size);position:relative;display:flex;justify-content:center;align-items:center;}.wrapper.svelte-1cx3779 :where(.svelte-1cx3779) {line-height:0;box-sizing:border-box;}.spinner-inner.svelte-1cx3779 {height:var(--size);width:var(--size);transform:scale(calc(var(--size) / 70));}.mask.svelte-1cx3779 {position:absolute;border-radius:2px;overflow:hidden;perspective:1000;backface-visibility:hidden;}.plane.svelte-1cx3779 {background:var(--color);width:400%;height:100%;position:absolute;z-index:100;perspective:1000;backface-visibility:hidden;}#top.svelte-1cx3779 .plane:where(.svelte-1cx3779) {z-index:2000;
5430
5430
  animation: svelte-1cx3779-trans1 var(--duration) ease-in infinite 0s backwards;}#middle.svelte-1cx3779 .plane:where(.svelte-1cx3779) {transform:translate3d(0px, 0, 0);background:var(--rgba);
@@ -5456,8 +5456,8 @@ const ih = {
5456
5456
  }
5457
5457
  }`
5458
5458
  };
5459
- function ah(t, e) {
5460
- re(e, !1), ue(t, ih);
5459
+ function ap(t, e) {
5460
+ re(e, !1), ue(t, ip);
5461
5461
  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();
5462
5462
  Gn(
5463
5463
  () => Cn(n()),
@@ -5465,7 +5465,7 @@ function ah(t, e) {
5465
5465
  b(o, As(n(), 0.6));
5466
5466
  }
5467
5467
  ), Jn(), ct();
5468
- var c = sh(), l = y(c);
5468
+ var c = sp(), l = y(c);
5469
5469
  return k(c), D(() => {
5470
5470
  M(c, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --rgba: ${f(o) ?? ""}; --duration: ${s() ?? ""};`), ne(l, "pause-animation", a());
5471
5471
  }), T(t, c), se({
@@ -5502,7 +5502,7 @@ function ah(t, e) {
5502
5502
  });
5503
5503
  }
5504
5504
  oe(
5505
- ah,
5505
+ ap,
5506
5506
  {
5507
5507
  color: {},
5508
5508
  unit: {},
@@ -5514,8 +5514,8 @@ oe(
5514
5514
  [],
5515
5515
  !0
5516
5516
  );
5517
- var oh = /* @__PURE__ */ R('<span class="svelte-1jnfmql"><div class="svelte-1jnfmql"></div> <div class="svelte-1jnfmql"></div> <div class="svelte-1jnfmql"></div></span>');
5518
- const lh = {
5517
+ var op = /* @__PURE__ */ j('<span class="svelte-1jnfmql"><div class="svelte-1jnfmql"></div> <div class="svelte-1jnfmql"></div> <div class="svelte-1jnfmql"></div></span>');
5518
+ const lp = {
5519
5519
  hash: "svelte-1jnfmql",
5520
5520
  code: `span.svelte-1jnfmql {width:var(--size);height:calc(var(--size) / 4);position:relative;display:block;}div.svelte-1jnfmql {width:calc(var(--size) / 4);height:calc(var(--size) / 4);position:absolute;left:0%;top:0;border-radius:2px;background:var(--color);transform:translateX(-50%) rotate(45deg) scale(0);
5521
5521
  animation: svelte-1jnfmql-diamonds var(--duration) linear infinite;}div.svelte-1jnfmql:nth-child(1) {animation-delay:calc(var(--duration) * 2 / 3 * -1);}div.svelte-1jnfmql:nth-child(2) {animation-delay:calc(var(--duration) * 2 / 3 * -2);}div.svelte-1jnfmql:nth-child(3) {animation-delay:calc(var(--duration) * 2 / 3 * -3);}.pause-animation.svelte-1jnfmql div:where(.svelte-1jnfmql) {animation-play-state:paused;}
@@ -5531,10 +5531,10 @@ const lh = {
5531
5531
  }
5532
5532
  }`
5533
5533
  };
5534
- function ch(t, e) {
5535
- re(e, !1), ue(t, lh);
5534
+ function cp(t, e) {
5535
+ re(e, !1), ue(t, lp);
5536
5536
  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);
5537
- var o = oh();
5537
+ var o = op();
5538
5538
  return D(() => {
5539
5539
  M(o, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color:${n() ?? ""}; --duration: ${s() ?? ""};`), ne(o, "pause-animation", a());
5540
5540
  }), T(t, o), se({
@@ -5571,7 +5571,7 @@ function ch(t, e) {
5571
5571
  });
5572
5572
  }
5573
5573
  oe(
5574
- ch,
5574
+ cp,
5575
5575
  {
5576
5576
  color: {},
5577
5577
  unit: {},
@@ -5583,8 +5583,8 @@ oe(
5583
5583
  [],
5584
5584
  !0
5585
5585
  );
5586
- var uh = /* @__PURE__ */ R('<div class="svelte-db2m9w"></div>');
5587
- const dh = {
5586
+ var up = /* @__PURE__ */ j('<div class="svelte-db2m9w"></div>');
5587
+ const dp = {
5588
5588
  hash: "svelte-db2m9w",
5589
5589
  code: `div.svelte-db2m9w {position:relative;width:var(--size);height:var(--size);background-color:transparent;box-shadow:inset 0px 0px 0px 2px var(--color);border-radius:50%;}div.svelte-db2m9w::before,
5590
5590
  div.svelte-db2m9w::after {position:absolute;content:'';background-color:var(--color);}div.svelte-db2m9w::after {width:calc(var(--size) / 2.4);height:2px;top:calc(var(--size) / 2);left:calc(var(--size) / 2);transform-origin:1px 1px;
@@ -5598,10 +5598,10 @@ const dh = {
5598
5598
  }
5599
5599
  }`
5600
5600
  };
5601
- function fh(t, e) {
5602
- re(e, !1), ue(t, dh);
5601
+ function fp(t, e) {
5602
+ re(e, !1), ue(t, dp);
5603
5603
  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);
5604
- var o = uh();
5604
+ var o = up();
5605
5605
  return D(() => {
5606
5606
  M(o, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color:${n() ?? ""}; --duration:${s() ?? ""}`), ne(o, "pause-animation", a());
5607
5607
  }), T(t, o), se({
@@ -5638,7 +5638,7 @@ function fh(t, e) {
5638
5638
  });
5639
5639
  }
5640
5640
  oe(
5641
- fh,
5641
+ fp,
5642
5642
  {
5643
5643
  color: {},
5644
5644
  unit: {},
@@ -5650,8 +5650,8 @@ oe(
5650
5650
  [],
5651
5651
  !0
5652
5652
  );
5653
- var hh = /* @__PURE__ */ R('<div class="bar svelte-1vzsw15"></div>'), ph = /* @__PURE__ */ R('<div class="wrapper svelte-1vzsw15"></div>');
5654
- const vh = {
5653
+ var pp = /* @__PURE__ */ j('<div class="bar svelte-1vzsw15"></div>'), hp = /* @__PURE__ */ j('<div class="wrapper svelte-1vzsw15"></div>');
5654
+ const vp = {
5655
5655
  hash: "svelte-1vzsw15",
5656
5656
  code: `.wrapper.svelte-1vzsw15 {position:relative;display:flex;justify-content:center;align-items:center;width:calc(var(--size) * 2.5);height:var(--size);overflow:hidden;}.bar.svelte-1vzsw15 {position:absolute;top:calc(var(--size) / 10);width:calc(var(--size) / 5);height:calc(var(--size) / 10);margin-top:calc(var(--size) - var(--size) / 10);transform:skewY(0deg);background-color:var(--color);
5657
5657
  animation: svelte-1vzsw15-motion var(--duration) ease-in-out infinite;}.pause-animation.svelte-1vzsw15 {animation-play-state:paused;}
@@ -5668,17 +5668,17 @@ const vh = {
5668
5668
  }
5669
5669
  }`
5670
5670
  };
5671
- function gh(t, e) {
5671
+ function gp(t, e) {
5672
5672
  var u;
5673
- re(e, !1), ue(t, vh);
5673
+ re(e, !1), ue(t, vp);
5674
5674
  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(He)) == null ? void 0 : u[0]) ?? "s", c = s().replace(He, "");
5675
5675
  ct();
5676
- var l = ph();
5677
- return Qe(l, 5, () => St(10, 0), Ve, (d, h) => {
5678
- var p = hh();
5676
+ var l = hp();
5677
+ return Qe(l, 5, () => St(10, 0), Ve, (d, p) => {
5678
+ var h = pp();
5679
5679
  D(() => {
5680
- M(p, "style", `left: ${f(h) * (+i() / 5 + (+i() / 15 - +i() / 100)) + r()}; animation-delay: ${f(h) * (+c / 8.3)}${o ?? ""};`), ne(p, "pause-animation", a());
5681
- }), T(d, p);
5680
+ M(h, "style", `left: ${f(p) * (+i() / 5 + (+i() / 15 - +i() / 100)) + r()}; animation-delay: ${f(p) * (+c / 8.3)}${o ?? ""};`), ne(h, "pause-animation", a());
5681
+ }), T(d, h);
5682
5682
  }), k(l), D(() => M(l, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""};`)), T(t, l), se({
5683
5683
  get color() {
5684
5684
  return n();
@@ -5713,7 +5713,7 @@ function gh(t, e) {
5713
5713
  });
5714
5714
  }
5715
5715
  oe(
5716
- gh,
5716
+ gp,
5717
5717
  {
5718
5718
  color: {},
5719
5719
  unit: {},
@@ -5725,8 +5725,8 @@ oe(
5725
5725
  [],
5726
5726
  !0
5727
5727
  );
5728
- var mh = /* @__PURE__ */ R('<span class="circle svelte-bv9t2p"></span>'), bh = /* @__PURE__ */ R('<span class="wrapper svelte-bv9t2p"></span>');
5729
- const xh = {
5728
+ var mp = /* @__PURE__ */ j('<span class="circle svelte-bv9t2p"></span>'), bp = /* @__PURE__ */ j('<span class="wrapper svelte-bv9t2p"></span>');
5729
+ const xp = {
5730
5730
  hash: "svelte-bv9t2p",
5731
5731
  code: `.wrapper.svelte-bv9t2p {display:inherit;position:relative;width:var(--size);height:var(--size);}.circle.svelte-bv9t2p {position:absolute;width:var(--size);height:var(--size);border:thick solid var(--rgba);border-radius:50%;opacity:1;top:0px;left:0px;animation-fill-mode:both;animation-iteration-count:infinite;animation-timing-function:cubic-bezier(0.165, 0.84, 0.44, 1), cubic-bezier(0.3, 0.61, 0.355, 1);animation-direction:normal, normal;animation-fill-mode:none, none;animation-play-state:running, running;
5732
5732
  animation-name: svelte-bv9t2p-puff-1, svelte-bv9t2p-puff-2;box-sizing:border-box;}.pause-animation.svelte-bv9t2p {animation-play-state:paused;}
@@ -5747,9 +5747,9 @@ const xh = {
5747
5747
  }
5748
5748
  }`
5749
5749
  };
5750
- function wh(t, e) {
5750
+ function wp(t, e) {
5751
5751
  var d;
5752
- re(e, !1), ue(t, xh);
5752
+ re(e, !1), ue(t, xp);
5753
5753
  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(He)) == null ? void 0 : d[0]) ?? "s", c = s().replace(He, ""), l = Jt();
5754
5754
  Gn(
5755
5755
  () => Cn(n()),
@@ -5757,47 +5757,47 @@ function wh(t, e) {
5757
5757
  b(l, As(n(), 1));
5758
5758
  }
5759
5759
  ), Jn(), ct();
5760
- var u = bh();
5761
- return Qe(u, 5, () => St(2, 1), Ve, (h, p) => {
5762
- var w = mh();
5760
+ var u = bp();
5761
+ return Qe(u, 5, () => St(2, 1), Ve, (p, h) => {
5762
+ var w = mp();
5763
5763
  D(() => {
5764
- M(w, "style", `animation-delay: ${(f(p) === 1 ? "-1s" : "0s") ?? ""}; animation-duration: ${2 / +c + o};`), ne(w, "pause-animation", a());
5765
- }), T(h, w);
5764
+ M(w, "style", `animation-delay: ${(f(h) === 1 ? "-1s" : "0s") ?? ""}; animation-duration: ${2 / +c + o};`), ne(w, "pause-animation", a());
5765
+ }), T(p, w);
5766
5766
  }), k(u), D(() => M(u, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --rgba: ${f(l) ?? ""}; --duration: ${s() ?? ""}`)), T(t, u), se({
5767
5767
  get color() {
5768
5768
  return n();
5769
5769
  },
5770
- set color(h) {
5771
- n(h), v();
5770
+ set color(p) {
5771
+ n(p), v();
5772
5772
  },
5773
5773
  get unit() {
5774
5774
  return r();
5775
5775
  },
5776
- set unit(h) {
5777
- r(h), v();
5776
+ set unit(p) {
5777
+ r(p), v();
5778
5778
  },
5779
5779
  get duration() {
5780
5780
  return s();
5781
5781
  },
5782
- set duration(h) {
5783
- s(h), v();
5782
+ set duration(p) {
5783
+ s(p), v();
5784
5784
  },
5785
5785
  get size() {
5786
5786
  return i();
5787
5787
  },
5788
- set size(h) {
5789
- i(h), v();
5788
+ set size(p) {
5789
+ i(p), v();
5790
5790
  },
5791
5791
  get pause() {
5792
5792
  return a();
5793
5793
  },
5794
- set pause(h) {
5795
- a(h), v();
5794
+ set pause(p) {
5795
+ a(p), v();
5796
5796
  }
5797
5797
  });
5798
5798
  }
5799
5799
  oe(
5800
- wh,
5800
+ wp,
5801
5801
  {
5802
5802
  color: {},
5803
5803
  unit: {},
@@ -5809,8 +5809,8 @@ oe(
5809
5809
  [],
5810
5810
  !0
5811
5811
  );
5812
- var _h = /* @__PURE__ */ R('<div class="wrapper svelte-f6hkgc"></div>');
5813
- const kh = {
5812
+ var _p = /* @__PURE__ */ j('<div class="wrapper svelte-f6hkgc"></div>');
5813
+ const kp = {
5814
5814
  hash: "svelte-f6hkgc",
5815
5815
  code: `.wrapper.svelte-f6hkgc {width:var(--size);height:calc(var(--size) * 1.5);margin-left:var(--size);background:var(--color);display:inline-block;position:relative;box-sizing:border-box;
5816
5816
  animation: svelte-f6hkgc-bump var(--duration) ease-in infinite alternate;}.wrapper.svelte-f6hkgc::after {content:'';box-sizing:border-box;left:50%;top:100%;transform:translate(-50%, 0);position:absolute;border:var(--size) solid transparent;border-top-color:var(--color);}.pause-animation.svelte-f6hkgc {animation-play-state:paused;}
@@ -5823,10 +5823,10 @@ const kh = {
5823
5823
  }
5824
5824
  }`
5825
5825
  };
5826
- function yh(t, e) {
5827
- re(e, !1), ue(t, kh);
5826
+ function yp(t, e) {
5827
+ re(e, !1), ue(t, kp);
5828
5828
  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);
5829
- var o = _h();
5829
+ var o = _p();
5830
5830
  return D(() => {
5831
5831
  M(o, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""};`), ne(o, "pause-animation", a());
5832
5832
  }), T(t, o), se({
@@ -5863,7 +5863,7 @@ function yh(t, e) {
5863
5863
  });
5864
5864
  }
5865
5865
  oe(
5866
- yh,
5866
+ yp,
5867
5867
  {
5868
5868
  color: {},
5869
5869
  unit: {},
@@ -5875,8 +5875,8 @@ oe(
5875
5875
  [],
5876
5876
  !0
5877
5877
  );
5878
- var zh = /* @__PURE__ */ R('<div class="wrapper svelte-1ju64u"></div>');
5879
- const $h = {
5878
+ var zp = /* @__PURE__ */ j('<div class="wrapper svelte-1ju64u"></div>');
5879
+ const $p = {
5880
5880
  hash: "svelte-1ju64u",
5881
5881
  code: `.wrapper.svelte-1ju64u {width:var(--size);height:calc(var(--size) * 1.5);margin-left:var(--size);margin-top:var(--size);background:var(--color);display:inline-block;position:relative;box-sizing:border-box;
5882
5882
  animation: svelte-1ju64u-bump var(--duration) ease-in infinite alternate;}.wrapper.svelte-1ju64u::after {content:'';box-sizing:border-box;left:50%;bottom:100%;transform:translate(-50%, 0);position:absolute;border:var(--size) solid transparent;border-bottom-color:var(--color);}.pause-animation.svelte-1ju64u {animation-play-state:paused;}
@@ -5889,10 +5889,10 @@ const $h = {
5889
5889
  }
5890
5890
  }`
5891
5891
  };
5892
- function Th(t, e) {
5893
- re(e, !1), ue(t, $h);
5892
+ function Tp(t, e) {
5893
+ re(e, !1), ue(t, $p);
5894
5894
  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);
5895
- var o = zh();
5895
+ var o = zp();
5896
5896
  return D(() => {
5897
5897
  M(o, "style", `--size: ${i() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${s() ?? ""};`), ne(o, "pause-animation", a());
5898
5898
  }), T(t, o), se({
@@ -5929,7 +5929,7 @@ function Th(t, e) {
5929
5929
  });
5930
5930
  }
5931
5931
  oe(
5932
- Th,
5932
+ Tp,
5933
5933
  {
5934
5934
  color: {},
5935
5935
  unit: {},
@@ -5945,7 +5945,7 @@ function Zn(t) {
5945
5945
  switch (t) {
5946
5946
  case "normative":
5947
5947
  return {
5948
- name: /* @__PURE__ */ ju(),
5948
+ name: /* @__PURE__ */ Ru(),
5949
5949
  icon: "fa-solid fa-book-open",
5950
5950
  color: "#28853d",
5951
5951
  textColor: "white"
@@ -5969,21 +5969,21 @@ function Zn(t) {
5969
5969
  const Ia = (t) => {
5970
5970
  var e;
5971
5971
  return (e = t.split(".").pop()) == null ? void 0 : e.toLowerCase();
5972
- }, Sh = (t) => {
5972
+ }, Sp = (t) => {
5973
5973
  const e = t.split(".").pop();
5974
5974
  return t.includes(".") && e !== t;
5975
- }, Eh = {
5975
+ }, Ep = {
5976
5976
  pdf: { icon: "fa-solid fa-file-pdf", color: "#f0463c" },
5977
5977
  docx: { icon: "fa-solid fa-file-word", color: "#305b9a" },
5978
5978
  xlsx: { icon: "fa-solid fa-file-excel", color: "#0c7540" },
5979
5979
  pptx: { icon: "fa-solid fa-file-powerpoint", color: "#d14b2b" },
5980
5980
  akd: { icon: "fa-solid fa-passport", color: "#0DCAF0" },
5981
5981
  tldv: { icon: "fa-solid fa-video", color: "#1d1dff" }
5982
- }, Rs = (t) => {
5982
+ }, js = (t) => {
5983
5983
  const e = Ia(t);
5984
- return Eh[e || ""] || { icon: "fa-solid fa-file", color: "#6c757d" };
5985
- }, Ch = (t) => Rs(t).icon;
5986
- function Ih(t) {
5984
+ return Ep[e || ""] || { icon: "fa-solid fa-file", color: "#6c757d" };
5985
+ }, Cp = (t) => js(t).icon;
5986
+ function Ip(t) {
5987
5987
  return {
5988
5988
  normative: "File Forge",
5989
5989
  suite: "File Forge",
@@ -5992,10 +5992,10 @@ function Ih(t) {
5992
5992
  transcriptions: "Meeting"
5993
5993
  }[t] || "File";
5994
5994
  }
5995
- const tr = (t, e) => `${t}-${e}`, Aa = (t) => t.isCommon ? t.filename.split(".")[0] : t.filename, La = (t) => t.isCommon ? Zn(t.commonType).name : t.path !== "" ? t.path : "root /", Ra = (t) => {
5995
+ const tr = (t, e) => `${t}-${e}`, Aa = (t) => t.isCommon ? t.filename.split(".")[0] : t.filename, La = (t) => t.isCommon ? Zn(t.commonType).name : t.path !== "" ? t.path : "root /", ja = (t) => {
5996
5996
  const e = Aa(t), n = La(t);
5997
5997
  return { displayName: e, path: n };
5998
- }, Ah = (t) => {
5998
+ }, Ap = (t) => {
5999
5999
  const { filename: e, isCommon: n, commonType: r } = t;
6000
6000
  if (r === "trascrizione")
6001
6001
  return { icon: "fa-solid fa-video", color: "#1d1dff" };
@@ -6006,26 +6006,26 @@ const tr = (t, e) => `${t}-${e}`, Aa = (t) => t.isCommon ? t.filename.split(".")
6006
6006
  color: s.name === "Documento Comune" ? "#295DCF" : s.color
6007
6007
  };
6008
6008
  }
6009
- return Rs(e);
6010
- }, Lh = (t, e) => t >= 50 || e === "suite", Rh = (t, e) => {
6009
+ return js(e);
6010
+ }, Lp = (t, e) => t >= 50 || e === "suite", jp = (t, e) => {
6011
6011
  const n = t.isCommon || !1, r = t.commonType || "";
6012
6012
  return n && e < 50 && r !== "suite";
6013
- }, jh = (t) => `<ul>${t.map((n) => {
6014
- const { displayName: r, path: s } = Ra(n);
6013
+ }, Rp = (t) => `<ul>${t.map((n) => {
6014
+ const { displayName: r, path: s } = ja(n);
6015
6015
  return `<li><strong>${r}</strong><br>${s}</li>`;
6016
- }).join("")}</ul>`, Fh = (t) => t.map((e) => {
6017
- const { displayName: n, path: r } = Ra(e);
6016
+ }).join("")}</ul>`, Fp = (t) => t.map((e) => {
6017
+ const { displayName: n, path: r } = ja(e);
6018
6018
  return `• ${n}
6019
6019
  ${r}`;
6020
6020
  }).join(`
6021
6021
 
6022
- `), Dh = async (t, e) => {
6022
+ `), Dp = async (t, e) => {
6023
6023
  const n = new Blob([t], { type: "text/html" }), r = new Blob([e], { type: "text/plain" }), s = new ClipboardItem({
6024
6024
  "text/html": n,
6025
6025
  "text/plain": r
6026
6026
  });
6027
6027
  await navigator.clipboard.write([s]);
6028
- }, Oh = (t, e) => {
6028
+ }, Op = (t, e) => {
6029
6029
  if (t instanceof en)
6030
6030
  return {
6031
6031
  class: e.icon,
@@ -6039,14 +6039,14 @@ const tr = (t, e) => `${t}-${e}`, Aa = (t) => t.isCommon ? t.filename.split(".")
6039
6039
  const n = t;
6040
6040
  if (n.isCommon)
6041
6041
  return { class: "fa-solid fa-file", color: "#295DCF" };
6042
- const r = Rs(n.title);
6042
+ const r = js(n.title);
6043
6043
  return {
6044
6044
  class: r.icon,
6045
6045
  color: r.color
6046
6046
  };
6047
6047
  }
6048
6048
  return { class: "fa-solid fa-file", color: "#6c757d" };
6049
- }, Ph = (t) => {
6049
+ }, Pp = (t) => {
6050
6050
  if (t instanceof en)
6051
6051
  return t.title.split(".")[0];
6052
6052
  if (t instanceof cn || t instanceof tn)
@@ -6056,15 +6056,15 @@ const tr = (t, e) => `${t}-${e}`, Aa = (t) => t.isCommon ? t.filename.split(".")
6056
6056
  return e.isCommon ? e.title.split(".")[0] : e.title;
6057
6057
  }
6058
6058
  return "";
6059
- }, Mh = (t) => {
6059
+ }, Mp = (t) => {
6060
6060
  if (t instanceof Kt) {
6061
6061
  const e = t.path;
6062
6062
  return e && e !== "" ? e : "root";
6063
6063
  }
6064
6064
  return null;
6065
- }, Nh = (t, e, n, r) => {
6065
+ }, Np = (t, e, n, r) => {
6066
6066
  e(!1), b(n, ""), r();
6067
- }, Uh = (t, e, n, r, s, i, a, o) => {
6067
+ }, Up = (t, e, n, r, s, i, a, o) => {
6068
6068
  const c = t.target;
6069
6069
  b(e, I(c.value));
6070
6070
  const u = {
@@ -6075,82 +6075,82 @@ const tr = (t, e) => `${t}-${e}`, Aa = (t) => t.isCommon ? t.filename.split(".")
6075
6075
  }[r()];
6076
6076
  u ? u() : n(f(e), () => bt.getDocuments(f(e)), (d) => b(o, I(d)), "Errore nella ricerca documenti:");
6077
6077
  };
6078
- var Bh = /* @__PURE__ */ R('<div class="text-center p-3"><!> <p class="mt-2 text-muted"> </p></div>'), qh = /* @__PURE__ */ R('<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>'), Hh = /* @__PURE__ */ R('<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>'), Yh = (t, e, n) => e(f(n)), Gh = /* @__PURE__ */ R('<div class="document-path svelte-zrlk2s"> </div>'), Jh = /* @__PURE__ */ R('<div class="selected-indicator svelte-zrlk2s"><i class="fa-solid fa-circle-check"></i></div>'), Wh = /* @__PURE__ */ R('<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>'), Zh = /* @__PURE__ */ R('<div class="documents-list svelte-zrlk2s"></div>'), Xh = /* @__PURE__ */ R('<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>');
6079
- const Vh = {
6078
+ var Bp = /* @__PURE__ */ j('<div class="text-center p-3"><!> <p class="mt-2 text-muted"> </p></div>'), qp = /* @__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>'), Hp = /* @__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>'), Yp = (t, e, n) => e(f(n)), Gp = /* @__PURE__ */ j('<div class="document-path svelte-zrlk2s"> </div>'), Jp = /* @__PURE__ */ j('<div class="selected-indicator svelte-zrlk2s"><i class="fa-solid fa-circle-check"></i></div>'), Wp = /* @__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>'), Zp = /* @__PURE__ */ j('<div class="documents-list svelte-zrlk2s"></div>'), Xp = /* @__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>');
6079
+ const Vp = {
6080
6080
  hash: "svelte-zrlk2s",
6081
6081
  code: `\r
6082
6082
  /* 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;}`
6083
6083
  };
6084
- function ja(t, e) {
6085
- re(e, !0), ue(t, Vh);
6084
+ function Ra(t, e) {
6085
+ re(e, !0), ue(t, Vp);
6086
6086
  let n = g(e, "attachments", 15), r = g(e, "showDocumentSearchModal", 15), s = g(e, "modeSelected", 15);
6087
6087
  const i = { default: 3, gendoc: 1, transcriptions: 1 }, a = 3;
6088
- let o = /* @__PURE__ */ Ne(() => Zn(s())), c = J(I([])), l = J(I([])), u = J(I([])), d = J(I([])), h = J(!1), p = J(""), w = /* @__PURE__ */ Ne(() => s() === "normative" || s() === "suite" ? f(l) : s() === "gendoc" ? f(u) : s() === "transcriptions" ? f(d) : f(c));
6088
+ let o = /* @__PURE__ */ Ne(() => Zn(s())), c = J(I([])), l = J(I([])), u = J(I([])), d = J(I([])), p = J(!1), h = J(""), w = /* @__PURE__ */ Ne(() => s() === "normative" || s() === "suite" ? f(l) : s() === "gendoc" ? f(u) : s() === "transcriptions" ? f(d) : f(c));
6089
6089
  const m = () => {
6090
6090
  b(c, I([])), b(l, I([])), b(u, I([])), b(d, I([]));
6091
- }, S = (j) => n()[j._id] ? (delete n()[j._id], !0) : !1, x = (j) => Object.keys(n()).length >= j ? (alert(/* @__PURE__ */ id({ count: j })), !1) : !0, _ = (j) => {
6092
- if (j instanceof Kt)
6091
+ }, 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) => {
6092
+ if (R instanceof Kt)
6093
6093
  return {
6094
- title: j.title,
6095
- ext_id: j.externalId,
6096
- gendoc_id: j.gendocId,
6097
- isCommon: j.isCommon
6094
+ title: R.title,
6095
+ ext_id: R.externalId,
6096
+ gendoc_id: R.gendocId,
6097
+ isCommon: R.isCommon
6098
6098
  };
6099
- if (j instanceof en)
6099
+ if (R instanceof en)
6100
6100
  return {
6101
- title: j.title,
6102
- ext_id: j.externalId,
6101
+ title: R.title,
6102
+ ext_id: R.externalId,
6103
6103
  gendoc_id: "",
6104
6104
  isCommon: !0
6105
6105
  };
6106
- if (j instanceof cn)
6106
+ if (R instanceof cn)
6107
6107
  return {
6108
- title: j.name + ".akd",
6109
- ext_id: j._id,
6110
- gendoc_id: j._id,
6108
+ title: R.name + ".akd",
6109
+ ext_id: R._id,
6110
+ gendoc_id: R._id,
6111
6111
  isCommon: !1
6112
6112
  };
6113
- if (j instanceof tn)
6113
+ if (R instanceof tn)
6114
6114
  return {
6115
- title: j.name + ".tldv",
6116
- ext_id: j.externalMeetingId,
6115
+ title: R.name + ".tldv",
6116
+ ext_id: R.externalMeetingId,
6117
6117
  gendoc_id: "",
6118
6118
  isCommon: !0
6119
6119
  };
6120
6120
  throw new Error("Unknown document type");
6121
- }, z = (j) => {
6122
- if (S(j))
6121
+ }, z = (R) => {
6122
+ if (S(R))
6123
6123
  return;
6124
- const ee = j instanceof cn || j instanceof tn ? i.gendoc : i.default;
6125
- x(ee) && n(n()[j._id] = _(j), !0);
6126
- }, F = async (j, ee, Se, Ee) => {
6127
- if (j.length < a) {
6124
+ const ee = R instanceof cn || R instanceof tn ? i.gendoc : i.default;
6125
+ x(ee) && n(n()[R._id] = _(R), !0);
6126
+ }, F = async (R, ee, Se, Ee) => {
6127
+ if (R.length < a) {
6128
6128
  Se([]);
6129
6129
  return;
6130
6130
  }
6131
- b(h, !0);
6131
+ b(p, !0);
6132
6132
  try {
6133
6133
  const De = await ee();
6134
6134
  Se(De);
6135
6135
  } catch (De) {
6136
6136
  console.error(Ee, De), Se([]);
6137
6137
  } finally {
6138
- b(h, !1);
6138
+ b(p, !1);
6139
6139
  }
6140
6140
  };
6141
- var E = Xh(), L = y(E), A = y(L), N = y(A), Y = y(N);
6141
+ var E = Xp(), L = y(E), A = y(L), N = y(A), Y = y(N);
6142
6142
  k(N);
6143
6143
  var le = O(N, 2);
6144
6144
  le.__click = [
6145
- Nh,
6145
+ Np,
6146
6146
  r,
6147
- p,
6147
+ h,
6148
6148
  m
6149
6149
  ], k(A);
6150
6150
  var Fe = O(A, 2), Ae = y(Fe), ge = y(Ae), fe = O(y(ge), 2);
6151
6151
  Tl(fe), fe.__input = [
6152
- Uh,
6153
- p,
6152
+ Up,
6153
+ h,
6154
6154
  F,
6155
6155
  s,
6156
6156
  l,
@@ -6160,24 +6160,24 @@ function ja(t, e) {
6160
6160
  ], k(ge), k(Ae);
6161
6161
  var We = O(Ae, 2), Ze = y(We);
6162
6162
  {
6163
- var ut = (j) => {
6164
- var ee = Bh(), Se = y(ee);
6163
+ var ut = (R) => {
6164
+ var ee = Bp(), Se = y(ee);
6165
6165
  Ls(Se, { size: "30", color: "#295dcf" });
6166
6166
  var Ee = O(Se, 2), De = y(Ee, !0);
6167
- k(Ee), k(ee), D((Ce) => _e(De, Ce), [() => /* @__PURE__ */ Wu()]), T(j, ee);
6168
- }, Ke = (j) => {
6167
+ k(Ee), k(ee), D((Ce) => _e(De, Ce), [() => /* @__PURE__ */ Wu()]), T(R, ee);
6168
+ }, Ke = (R) => {
6169
6169
  var ee = Tt(), Se = ft(ee);
6170
6170
  {
6171
6171
  var Ee = (Ce) => {
6172
- var Re = qh(), Ue = O(y(Re), 2), ke = y(Ue, !0);
6173
- k(Ue), k(Re), D((W) => _e(ke, W), [() => /* @__PURE__ */ Zu()]), T(Ce, Re);
6172
+ var je = qp(), Ue = O(y(je), 2), ke = y(Ue, !0);
6173
+ k(Ue), k(je), D((W) => _e(ke, W), [() => /* @__PURE__ */ Zu()]), T(Ce, je);
6174
6174
  }, De = (Ce) => {
6175
- var Re = Tt(), Ue = ft(Re);
6175
+ var je = Tt(), Ue = ft(je);
6176
6176
  {
6177
6177
  var ke = (ve) => {
6178
- var ce = Hh(), he = O(y(ce), 2), me = y(he);
6178
+ var ce = Hp(), pe = O(y(ce), 2), me = y(pe);
6179
6179
  {
6180
- var je = (Oe) => {
6180
+ var Re = (Oe) => {
6181
6181
  var Pe = Qn();
6182
6182
  D((Me) => _e(Pe, Me), [() => /* @__PURE__ */ Xu()]), T(Oe, Pe);
6183
6183
  }, et = (Oe) => {
@@ -6217,24 +6217,24 @@ function ja(t, e) {
6217
6217
  T(Oe, Pe);
6218
6218
  };
6219
6219
  K(me, (Oe) => {
6220
- s() === "normative" || s() === "suite" ? Oe(je) : Oe(et, !1);
6220
+ s() === "normative" || s() === "suite" ? Oe(Re) : Oe(et, !1);
6221
6221
  });
6222
6222
  }
6223
- k(he), k(ce), T(ve, ce);
6223
+ k(pe), k(ce), T(ve, ce);
6224
6224
  }, W = (ve) => {
6225
- var ce = Zh();
6226
- Qe(ce, 21, () => f(w), Ve, (he, me) => {
6227
- var je = Wh();
6228
- const et = /* @__PURE__ */ Ne(() => Oh(f(me), f(o))), Oe = /* @__PURE__ */ Ne(() => Ph(f(me))), Pe = /* @__PURE__ */ Ne(() => Mh(f(me)));
6229
- je.__click = [Yh, z, me];
6230
- var Me = y(je), tt = y(Me);
6225
+ var ce = Zp();
6226
+ Qe(ce, 21, () => f(w), Ve, (pe, me) => {
6227
+ var Re = Wp();
6228
+ const et = /* @__PURE__ */ Ne(() => Op(f(me), f(o))), Oe = /* @__PURE__ */ Ne(() => Pp(f(me))), Pe = /* @__PURE__ */ Ne(() => Mp(f(me)));
6229
+ Re.__click = [Yp, z, me];
6230
+ var Me = y(Re), tt = y(Me);
6231
6231
  k(Me);
6232
6232
  var Ye = O(Me, 2), Be = y(Ye), B = y(Be, !0);
6233
6233
  k(Be);
6234
6234
  var H = O(Be, 2);
6235
6235
  {
6236
6236
  var X = (ae) => {
6237
- var Le = Gh(), Ge = y(Le, !0);
6237
+ var Le = Gp(), Ge = y(Le, !0);
6238
6238
  k(Le), D(() => _e(Ge, f(Pe))), T(ae, Le);
6239
6239
  };
6240
6240
  K(H, (ae) => {
@@ -6245,16 +6245,16 @@ function ja(t, e) {
6245
6245
  var ye = O(Ye, 2);
6246
6246
  {
6247
6247
  var ie = (ae) => {
6248
- var Le = Jh();
6248
+ var Le = Jp();
6249
6249
  T(ae, Le);
6250
6250
  };
6251
6251
  K(ye, (ae) => {
6252
6252
  n()[f(me)._id] && ae(ie);
6253
6253
  });
6254
6254
  }
6255
- k(je), D(() => {
6256
- ne(je, "selected", n()[f(me)._id]), nt(tt, Ar(f(et).class), "svelte-zrlk2s"), M(tt, "style", `color: ${f(et).color}`), _e(B, f(Oe));
6257
- }), T(he, je);
6255
+ k(Re), D(() => {
6256
+ ne(Re, "selected", n()[f(me)._id]), nt(tt, Ar(f(et).class), "svelte-zrlk2s"), M(tt, "style", `color: ${f(et).color}`), _e(B, f(Oe));
6257
+ }), T(pe, Re);
6258
6258
  }), k(ce), T(ve, ce);
6259
6259
  };
6260
6260
  K(
@@ -6265,26 +6265,26 @@ function ja(t, e) {
6265
6265
  !0
6266
6266
  );
6267
6267
  }
6268
- T(Ce, Re);
6268
+ T(Ce, je);
6269
6269
  };
6270
6270
  K(
6271
6271
  Se,
6272
6272
  (Ce) => {
6273
- f(p).length < a ? Ce(Ee) : Ce(De, !1);
6273
+ f(h).length < a ? Ce(Ee) : Ce(De, !1);
6274
6274
  },
6275
6275
  !0
6276
6276
  );
6277
6277
  }
6278
- T(j, ee);
6278
+ T(R, ee);
6279
6279
  };
6280
- K(Ze, (j) => {
6281
- f(h) ? j(ut) : j(Ke, !1);
6280
+ K(Ze, (R) => {
6281
+ f(p) ? R(ut) : R(Ke, !1);
6282
6282
  });
6283
6283
  }
6284
6284
  return k(We), k(Fe), k(L), k(E), D(
6285
- (j, ee, Se) => {
6286
- _e(Y, `${j ?? ""}
6287
- ${ee ?? ""}`), M(fe, "placeholder", `${j ?? ""} ${Se ?? ""} (min 3 caratteri)...`), Sl(fe, f(p));
6285
+ (R, ee, Se) => {
6286
+ _e(Y, `${R ?? ""}
6287
+ ${ee ?? ""}`), M(fe, "placeholder", `${R ?? ""} ${Se ?? ""} (min 3 caratteri)...`), Sl(fe, f(h));
6288
6288
  },
6289
6289
  [
6290
6290
  () => /* @__PURE__ */ Ju(),
@@ -6295,26 +6295,26 @@ function ja(t, e) {
6295
6295
  get attachments() {
6296
6296
  return n();
6297
6297
  },
6298
- set attachments(j) {
6299
- n(j), v();
6298
+ set attachments(R) {
6299
+ n(R), v();
6300
6300
  },
6301
6301
  get showDocumentSearchModal() {
6302
6302
  return r();
6303
6303
  },
6304
- set showDocumentSearchModal(j) {
6305
- r(j), v();
6304
+ set showDocumentSearchModal(R) {
6305
+ r(R), v();
6306
6306
  },
6307
6307
  get modeSelected() {
6308
6308
  return s();
6309
6309
  },
6310
- set modeSelected(j) {
6311
- s(j), v();
6310
+ set modeSelected(R) {
6311
+ s(R), v();
6312
6312
  }
6313
6313
  });
6314
6314
  }
6315
6315
  nn(["click", "input"]);
6316
6316
  oe(
6317
- ja,
6317
+ Ra,
6318
6318
  {
6319
6319
  attachments: {},
6320
6320
  showDocumentSearchModal: {},
@@ -6324,11 +6324,11 @@ oe(
6324
6324
  [],
6325
6325
  !0
6326
6326
  );
6327
- const Qh = (t) => t.toLowerCase().includes("it") ? "it" : t.toLowerCase().includes("en") ? "en" : "it", Kh = Ch, ep = Ih;
6328
- function tp(t) {
6327
+ const Qp = (t) => t.toLowerCase().includes("it") ? "it" : t.toLowerCase().includes("en") ? "en" : "it", Kp = Cp, eh = Ip;
6328
+ function th(t) {
6329
6329
  return Object.keys(t).map((e) => t[e].ext_id);
6330
6330
  }
6331
- function pi(t) {
6331
+ function hi(t) {
6332
6332
  switch (t) {
6333
6333
  case 1:
6334
6334
  return "Knowledge Base Agent";
@@ -6346,7 +6346,7 @@ function pi(t) {
6346
6346
  return "Standard Agent";
6347
6347
  }
6348
6348
  }
6349
- const np = async (t) => {
6349
+ const nh = async (t) => {
6350
6350
  const e = await fetch(`${U.getUrl()}/chat/${t}`, {
6351
6351
  headers: {
6352
6352
  akstoken: U.getToken(),
@@ -6358,7 +6358,7 @@ const np = async (t) => {
6358
6358
  throw new Error("Failed to fetch chat");
6359
6359
  const n = await e.json();
6360
6360
  return ln.fromJson(n);
6361
- }, rp = async () => {
6361
+ }, rh = async () => {
6362
6362
  const t = await fetch(`${U.getUrl()}/chat`, {
6363
6363
  headers: {
6364
6364
  akstoken: U.getToken(),
@@ -6369,7 +6369,7 @@ const np = async (t) => {
6369
6369
  if (!t.ok)
6370
6370
  throw new Error("Failed to fetch chats");
6371
6371
  return (await t.json()).map((n) => ln.fromJson(n));
6372
- }, sp = async (t) => {
6372
+ }, sh = async (t) => {
6373
6373
  const e = await fetch(`${U.getUrl()}/chat`, {
6374
6374
  method: "POST",
6375
6375
  headers: {
@@ -6384,13 +6384,13 @@ const np = async (t) => {
6384
6384
  throw new Error("Failed to create chat");
6385
6385
  const n = await e.json();
6386
6386
  return ln.fromJson(n);
6387
- }, ip = async (t, e, n, r = [], s, i, a) => {
6387
+ }, ih = async (t, e, n, r = [], s, i, a) => {
6388
6388
  let o, c = !1;
6389
6389
  try {
6390
6390
  await Fa(t, e, r);
6391
6391
  let l = 0;
6392
6392
  n === "kb" ? l = 1 : n === "normative" ? l = 2 : n === "suite" ? l = 3 : n === "gendoc" ? l = 4 : n === "transcriptions" ? l = 5 : n === "audit_handler" && (l = 6);
6393
- const d = U.getUrl().replace(/^http/, "ws"), h = `chat/${t}/message?mode=${l}`, p = h.includes("?") ? "&" : "?", w = `${d}/${h}${p}akstoken=${U.getToken()}&envid=${U.getEnvironmentId()}`;
6393
+ 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()}`;
6394
6394
  o = new WebSocket(w), a && a.addEventListener("abort", () => {
6395
6395
  o && o.readyState === WebSocket.OPEN && (o.close(), c = !0);
6396
6396
  }), await new Promise((m, S) => {
@@ -6424,7 +6424,7 @@ const np = async (t) => {
6424
6424
  }
6425
6425
  }
6426
6426
  return c;
6427
- }, ap = async (t, e) => {
6427
+ }, ah = async (t, e) => {
6428
6428
  if (!(await fetch(`${U.getUrl()}/chat/${t}/title`, {
6429
6429
  method: "POST",
6430
6430
  headers: {
@@ -6436,7 +6436,7 @@ const np = async (t) => {
6436
6436
  body: JSON.stringify({ title: e })
6437
6437
  })).ok)
6438
6438
  throw new Error("Failed to change title");
6439
- }, op = async (t) => {
6439
+ }, oh = async (t) => {
6440
6440
  if (!(await fetch(`${U.getUrl()}/chat/${t}`, {
6441
6441
  method: "DELETE",
6442
6442
  headers: {
@@ -6461,7 +6461,7 @@ const np = async (t) => {
6461
6461
  })
6462
6462
  })).ok)
6463
6463
  throw new Error("Failed to insert message");
6464
- }, lp = async (t, e) => new Promise((n, r) => {
6464
+ }, lh = async (t, e) => new Promise((n, r) => {
6465
6465
  const s = new FormData();
6466
6466
  s.append("file", t);
6467
6467
  const i = new XMLHttpRequest();
@@ -6483,7 +6483,7 @@ const np = async (t) => {
6483
6483
  }), i.addEventListener("error", () => {
6484
6484
  r(new Error("Failed to upload file"));
6485
6485
  }), i.open("POST", `${U.getUrl()}/files`), i.setRequestHeader("akstoken", U.getToken()), i.setRequestHeader("envid", U.getEnvironmentId()), i.setRequestHeader("ngrok-skip-browser-warning", "true"), i.send(s);
6486
- }), cp = async (t, e) => {
6486
+ }), ch = async (t, e) => {
6487
6487
  if (!(await fetch(`${U.getUrl()}/files`, {
6488
6488
  method: "DELETE",
6489
6489
  headers: {
@@ -6496,25 +6496,25 @@ const np = async (t) => {
6496
6496
  })).ok)
6497
6497
  throw new Error("Failed to delete file");
6498
6498
  }, Pt = {
6499
- getChat: np,
6500
- getChats: rp,
6501
- newChat: sp,
6502
- sendMessage: ip,
6503
- deleteChat: op,
6504
- changeTitle: ap,
6499
+ getChat: nh,
6500
+ getChats: rh,
6501
+ newChat: sh,
6502
+ sendMessage: ih,
6503
+ deleteChat: oh,
6504
+ changeTitle: ah,
6505
6505
  insertMessage: Fa,
6506
- uploadFile: lp,
6507
- deleteFile: cp
6508
- }, up = (t, e, n) => {
6506
+ uploadFile: lh,
6507
+ deleteFile: ch
6508
+ }, uh = (t, e, n) => {
6509
6509
  const r = t.target;
6510
6510
  e(r.value), n({});
6511
- }, dp = (t, e) => {
6511
+ }, dh = (t, e) => {
6512
6512
  b(e, !f(e));
6513
- }, fp = (t, e, n) => {
6513
+ }, fh = (t, e, n) => {
6514
6514
  b(e, !1), b(n, !0);
6515
6515
  };
6516
- var hp = /* @__PURE__ */ R('<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>'), pp = /* @__PURE__ */ R("<option>Generatore di Normative</option>"), vp = /* @__PURE__ */ R('<div class="attachment-title noopen-file-button svelte-dx030c"> </div>'), gp = (t, e, n, r, s) => e(n(), r(), s()), mp = /* @__PURE__ */ R('<button class="attachment-title open-file-button svelte-dx030c"> </button>'), bp = (t, e, n, r, s) => e(n(), r(), s()), xp = /* @__PURE__ */ R('<div><i></i> <!> <button aria-label="Remove attachment"><i class="fa-solid fa-xmark svelte-dx030c"></i></button></div>'), wp = /* @__PURE__ */ R('<button class="btn send-button stop-recording-btn svelte-dx030c" aria-label="Stop recording"><i class="fa-solid fa-stop"></i></button>'), _p = /* @__PURE__ */ R('<button class="btn send-button aks-btn-answer svelte-dx030c" aria-label="Synthesizing" disabled><!></button>'), kp = /* @__PURE__ */ R('<button class="btn send-button aks-btn-answer svelte-dx030c" aria-label="Start recording"><i class="fa-solid fa-microphone"></i></button>'), yp = /* @__PURE__ */ R('<button class="btn send-button stop-stream-btn svelte-dx030c" aria-label="Stop message"><i class="fa-solid fa-stop"></i></button>'), zp = /* @__PURE__ */ R('<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>'), $p = /* @__PURE__ */ R('<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);
6517
- const Tp = {
6516
+ var ph = /* @__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>'), hh = /* @__PURE__ */ j("<option>Generatore di Normative</option>"), vh = /* @__PURE__ */ j('<div class="attachment-title noopen-file-button svelte-dx030c"> </div>'), gh = (t, e, n, r, s) => e(n(), r(), s()), mh = /* @__PURE__ */ j('<button class="attachment-title open-file-button svelte-dx030c"> </button>'), bh = (t, e, n, r, s) => e(n(), r(), s()), xh = /* @__PURE__ */ j('<div><i></i> <!> <button aria-label="Remove attachment"><i class="fa-solid fa-xmark svelte-dx030c"></i></button></div>'), wh = /* @__PURE__ */ j('<button class="btn send-button stop-recording-btn svelte-dx030c" aria-label="Stop recording"><i class="fa-solid fa-stop"></i></button>'), _h = /* @__PURE__ */ j('<button class="btn send-button aks-btn-answer svelte-dx030c" aria-label="Synthesizing" disabled><!></button>'), kh = /* @__PURE__ */ j('<button class="btn send-button aks-btn-answer svelte-dx030c" aria-label="Start recording"><i class="fa-solid fa-microphone"></i></button>'), yh = /* @__PURE__ */ j('<button class="btn send-button stop-stream-btn svelte-dx030c" aria-label="Stop message"><i class="fa-solid fa-stop"></i></button>'), zh = /* @__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>'), $h = /* @__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);
6517
+ const Th = {
6518
6518
  hash: "svelte-dx030c",
6519
6519
  code: `textarea.svelte-dx030c {border:none;overflow-y:auto;resize:none;transition:height 0.1s ease;max-height:120px; /* 5 righe circa */}.noopen-file-button.svelte-dx030c {background:none;border:none;padding:0;font-size:0.875rem;color:black;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;text-align:left;min-width:0;}.open-file-button.svelte-dx030c {background:none;border:none;cursor:pointer;padding:0;font-size:0.875rem;color:white;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;text-align:left;min-width:0;}.open-file-button.svelte-dx030c:hover {background-color:transparent;text-decoration:underline;}.mode-select.svelte-dx030c {flex-shrink:0;height:32px;padding:0 8px;border-radius:16px;border:2px solid #e9ecef;background-color:#f8f9fa;color:#295dcf;font-size:0.8rem;font-weight:500;cursor:pointer;transition:all 0.2s ease;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);outline:none;max-width:120px;}.mode-select.svelte-dx030c:hover {background-color:#e9ecef;border-color:#295dcf;}.mode-select.svelte-dx030c:focus {border-color:#295dcf;box-shadow:0 0 0 3px rgba(41, 93, 207, 0.1);}.plus-button-container.svelte-dx030c {position:relative;flex-shrink:0;}.plus-button.svelte-dx030c {display:flex;justify-content:center;align-items:center;padding:0;width:38px;height:38px;border-radius:50%;background-color:#f8f9fa;color:#295dcf;border:2px solid #e9ecef;transition:all 0.2s ease;font-size:1.1rem;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.plus-button.svelte-dx030c:hover {background-color:#295dcf;color:white;border-color:#295dcf;transform:scale(1.05);box-shadow:0 4px 8px rgba(0, 0, 0, 0.15);}.plus-button.svelte-dx030c:active {transform:scale(0.95);}.plus-button-active.svelte-dx030c {background-color:#295dcf;color:white;border-color:#295dcf;}.plus-button-active.svelte-dx030c:hover {background-color:#1d4a9e;border-color:#1d4a9e;transform:scale(1.05);}.controls-row.svelte-dx030c {display:flex;align-items:center;width:100%;gap:5px;min-width:0;}.attachments-container.svelte-dx030c {display:flex;gap:5px;overflow-x:auto;min-width:0;flex:1;padding:2px 0;\r
6520
6520
  /* Migliore supporto per lo scroll su touch devices */-webkit-overflow-scrolling:touch;}.attachments-container.svelte-dx030c::-webkit-scrollbar {height:6px;}.attachments-container.svelte-dx030c::-webkit-scrollbar-track {background:#f7fafc;border-radius:3px;}.attachments-container.svelte-dx030c::-webkit-scrollbar-thumb {background:#cbd5e0;border-radius:3px;}.attachments-container.svelte-dx030c::-webkit-scrollbar-thumb:hover {background:#a0aec0;}.attachment-item.svelte-dx030c {display:flex;align-items:center;flex-shrink:0;max-width:150px;background:#515b6a;color:white;border-radius:20px;padding:3px 10px 3px 10px;gap:5px;border:none;cursor:default;box-sizing:border-box;}.attachment-item.common.svelte-dx030c {background:#e2e8f0;color:black;}.attachment-title.svelte-dx030c {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:0.875rem;}.remove-btn.svelte-dx030c {flex-shrink:0;width:20px;height:20px;padding:0;display:flex;align-items:center;justify-content:center;font-size:0.75rem;background:transparent;border:none;color:white;cursor:pointer;transition:100ms;}.remove-btn.common.svelte-dx030c {color:black;}.remove-btn.svelte-dx030c:hover {background:rgba(255, 255, 255, 0.3);border-radius:50%;}.remove-btn.common.svelte-dx030c:hover {background:rgba(0, 0, 0, 0.3);color:black;}.remove-btn.svelte-dx030c i:where(.svelte-dx030c) {margin:0;}.input.svelte-dx030c {display:flex;flex-direction:column;justify-content:center;align-items:center;padding:5px;background:white;border-radius:15px;margin:10px;gap:3px;width:calc(100% - 20px);min-width:0;box-sizing:border-box;}.input.svelte-dx030c > .top:where(.svelte-dx030c) {display:flex;justify-content:center;align-items:center;width:100%;}.input.svelte-dx030c > .bottom:where(.svelte-dx030c) {display:flex;justify-content:center;align-items:center;width:100%;min-width:0;}.send-buttons.svelte-dx030c {display:flex;gap:5px;flex-shrink:0;}.send-button.svelte-dx030c {display:flex;justify-content:center;align-items:center;padding:0;width:38px;height:38px;border-radius:50%;transition:all 0.2s ease;border:none;font-size:1rem;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.send-button.svelte-dx030c:hover {transform:scale(1.05);box-shadow:0 4px 8px rgba(0, 0, 0, 0.15);}.send-button.svelte-dx030c:active {transform:scale(0.95);}.send-button.aks-btn-answer.svelte-dx030c:hover {background-color:#295dcf;border-color:#295dcf;color:white;}.send-button.svelte-dx030c:disabled {opacity:0.8;cursor:not-allowed;transform:none;}.send-button.svelte-dx030c:disabled:hover {transform:none;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.send-message-btn.svelte-dx030c {background-color:#295dcf;color:white;}.send-message-btn.svelte-dx030c:hover {background-color:#1d4a9e;}.stop-recording-btn.svelte-dx030c {background-color:#dc3545;color:white;border-color:#dc3545;}.stop-recording-btn.svelte-dx030c:hover {background-color:#c82333;border-color:#bd2130;transform:scale(1.05);}.stop-stream-btn.svelte-dx030c {background-color:#6c757d;color:white;border-color:#6c757d;}.stop-stream-btn.svelte-dx030c:hover {background-color:#5a6268;border-color:#545b62;transform:scale(1.05);}\r
@@ -6522,23 +6522,23 @@ const Tp = {
6522
6522
  /* 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;}`
6523
6523
  };
6524
6524
  function Da(t, e) {
6525
- re(e, !0), ue(t, Tp);
6526
- 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 = J(""), h, p, w = J(I([])), m = J(!1), S = J(!1), x = J(!1), _ = J(!1), z, F = /* @__PURE__ */ Ne(() => Zn(a()));
6525
+ re(e, !0), ue(t, Th);
6526
+ 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 = J(""), p, h, w = J(I([])), m = J(!1), S = J(!1), x = J(!1), _ = J(!1), z, F = /* @__PURE__ */ Ne(() => Zn(a()));
6527
6527
  const E = 20, L = 5, A = 0.5;
6528
6528
  function N($, P) {
6529
6529
  return $ ? a() === "normative" || a() === "suite" ? f(F).name : "" : P;
6530
6530
  }
6531
6531
  function Y() {
6532
- b(d, ""), o({}), h && (h.style.height = "auto");
6532
+ b(d, ""), o({}), p && (p.style.height = "auto");
6533
6533
  }
6534
6534
  function le() {
6535
- p != null && p.stream && p.stream.getTracks().forEach(($) => $.stop());
6535
+ h != null && h.stream && h.stream.getTracks().forEach(($) => $.stop());
6536
6536
  }
6537
6537
  const Fe = () => {
6538
- if (!h) return;
6539
- h.style.height = "auto";
6540
- const $ = h.scrollHeight, P = E * L;
6541
- h.style.height = Math.min($, P) + "px";
6538
+ if (!p) return;
6539
+ p.style.height = "auto";
6540
+ const $ = p.scrollHeight, P = E * L;
6541
+ p.style.height = Math.min($, P) + "px";
6542
6542
  }, Ae = ($) => {
6543
6543
  $.preventDefault();
6544
6544
  const P = $.deltaY * A;
@@ -6548,15 +6548,15 @@ function Da(t, e) {
6548
6548
  });
6549
6549
  }, ge = () => {
6550
6550
  if (s() || !f(d).trim()) return;
6551
- const $ = tp(o());
6551
+ const $ = th(o());
6552
6552
  n()(f(d), a(), $), Y();
6553
6553
  }, fe = async () => {
6554
6554
  if (!s())
6555
6555
  try {
6556
6556
  const $ = await navigator.mediaDevices.getUserMedia({ audio: !0 });
6557
- p = new MediaRecorder($, { mimeType: "audio/webm" }), p.ondataavailable = (P) => {
6557
+ h = new MediaRecorder($, { mimeType: "audio/webm" }), h.ondataavailable = (P) => {
6558
6558
  P.data.size > 0 && f(w).push(P.data);
6559
- }, p.onstop = async () => {
6559
+ }, h.onstop = async () => {
6560
6560
  b(S, !0);
6561
6561
  const P = new Blob(f(w), { type: "audio/webm" });
6562
6562
  try {
@@ -6565,12 +6565,12 @@ function Da(t, e) {
6565
6565
  } finally {
6566
6566
  b(S, !1);
6567
6567
  }
6568
- }, b(m, !0), p.start();
6568
+ }, b(m, !0), h.start();
6569
6569
  } catch ($) {
6570
6570
  console.error("Failed to start recording:", $);
6571
6571
  }
6572
6572
  }, We = () => {
6573
- p && (p.stop(), le(), b(m, !1), b(w, I([])));
6573
+ h && (h.stop(), le(), b(m, !1), b(w, I([])));
6574
6574
  }, Ze = () => {
6575
6575
  b(x, !1);
6576
6576
  const $ = document.createElement("input");
@@ -6594,7 +6594,7 @@ function Da(t, e) {
6594
6594
  delete o()[$], G && Pt.deleteFile(G, P);
6595
6595
  }, Ke = async ($, P, G) => {
6596
6596
  await bt.getDocumentPage($, P, G);
6597
- }, j = [
6597
+ }, R = [
6598
6598
  "suite",
6599
6599
  "normative",
6600
6600
  "kb",
@@ -6604,18 +6604,18 @@ function Da(t, e) {
6604
6604
  It(() => {
6605
6605
  f(d) !== void 0 && Fe();
6606
6606
  });
6607
- var Se = $p(), Ee = ft(Se), De = y(Ee), Ce = y(De);
6608
- bl(Ce), Ce.__input = Fe, as(Ce, ($) => h = $, () => h), k(De);
6609
- var Re = O(De, 2), Ue = y(Re), ke = y(Ue), W = y(ke);
6610
- W.__click = [dp, x];
6607
+ var Se = $h(), Ee = ft(Se), De = y(Ee), Ce = y(De);
6608
+ bl(Ce), Ce.__input = Fe, as(Ce, ($) => p = $, () => p), k(De);
6609
+ var je = O(De, 2), Ue = y(je), ke = y(Ue), W = y(ke);
6610
+ W.__click = [dh, x];
6611
6611
  var ve = y(W);
6612
6612
  k(W);
6613
6613
  var ce = O(W, 2);
6614
6614
  {
6615
- var he = ($) => {
6616
- var P = hp(), G = y(P);
6615
+ var pe = ($) => {
6616
+ var P = ph(), G = y(P);
6617
6617
  G.__click = [
6618
- fp,
6618
+ fh,
6619
6619
  x,
6620
6620
  _
6621
6621
  ];
@@ -6630,10 +6630,10 @@ function Da(t, e) {
6630
6630
  ${Or ?? ""}`), nt(Te, `${Pr ?? ""} svelte-dx030c`), Te.disabled = Vn, _e(Je, Et);
6631
6631
  },
6632
6632
  [
6633
- () => `dropdown-option ${j.includes(a()) ? "" : "option-disabled"}`,
6634
- () => !j.includes(a()),
6633
+ () => `dropdown-option ${R.includes(a()) ? "" : "option-disabled"}`,
6634
+ () => !R.includes(a()),
6635
6635
  () => /* @__PURE__ */ Fu(),
6636
- () => ep(a()),
6636
+ () => eh(a()),
6637
6637
  () => `dropdown-option ${ee.includes(a()) ? "" : "option-disabled"}`,
6638
6638
  () => !ee.includes(a()),
6639
6639
  () => /* @__PURE__ */ Du()
@@ -6641,15 +6641,15 @@ function Da(t, e) {
6641
6641
  ), T($, P);
6642
6642
  };
6643
6643
  K(ce, ($) => {
6644
- f(x) && $(he);
6644
+ f(x) && $(pe);
6645
6645
  });
6646
6646
  }
6647
6647
  k(ke);
6648
6648
  var me = O(ke, 2);
6649
- me.__change = [up, a, o];
6650
- var je = y(me);
6651
- je.value = (je.__value = "auto") == null ? "" : "auto";
6652
- var et = O(je);
6649
+ me.__change = [uh, a, o];
6650
+ var Re = y(me);
6651
+ Re.value = (Re.__value = "auto") == null ? "" : "auto";
6652
+ var et = O(Re);
6653
6653
  et.value = (et.__value = "suite") == null ? "" : "suite";
6654
6654
  var Oe = O(et);
6655
6655
  Oe.value = (Oe.__value = "normative") == null ? "" : "normative";
@@ -6664,7 +6664,7 @@ function Da(t, e) {
6664
6664
  var Be = O(Ye);
6665
6665
  {
6666
6666
  var B = ($) => {
6667
- var P = pp();
6667
+ var P = hh();
6668
6668
  P.value = (P.__value = "audit_handler") == null ? "" : "audit_handler", T($, P);
6669
6669
  };
6670
6670
  K(Be, ($) => {
@@ -6675,10 +6675,10 @@ function Da(t, e) {
6675
6675
  var H = O(me, 2);
6676
6676
  Qe(H, 21, () => Object.entries(o()), Ve, ($, P) => {
6677
6677
  let G = () => f(P)[0], te = () => f(P)[1].title, $e = () => f(P)[1].ext_id, Te = () => f(P)[1].gendoc_id, qe = () => f(P)[1].storage_id, Je = () => f(P)[1].isCommon;
6678
- var gt = xp(), rn = y(gt), q = O(rn, 2);
6678
+ var gt = xh(), rn = y(gt), q = O(rn, 2);
6679
6679
  {
6680
6680
  var Or = (Et) => {
6681
- var $t = vp(), In = y($t, !0);
6681
+ var $t = vh(), In = y($t, !0);
6682
6682
  k($t), D(
6683
6683
  (Gs) => {
6684
6684
  M($t, "title", Gs), _e(In, Gs);
@@ -6686,9 +6686,9 @@ function Da(t, e) {
6686
6686
  [() => te().split(".")[0]]
6687
6687
  ), T(Et, $t);
6688
6688
  }, Pr = (Et) => {
6689
- var $t = mp();
6689
+ var $t = mh();
6690
6690
  $t.__click = [
6691
- gp,
6691
+ gh,
6692
6692
  Ke,
6693
6693
  $e,
6694
6694
  te,
@@ -6703,7 +6703,7 @@ function Da(t, e) {
6703
6703
  }
6704
6704
  var Vn = O(q, 2);
6705
6705
  Vn.__click = [
6706
- bp,
6706
+ bh,
6707
6707
  ut,
6708
6708
  G,
6709
6709
  te,
@@ -6714,7 +6714,7 @@ function Da(t, e) {
6714
6714
  },
6715
6715
  [
6716
6716
  () => N(Je() ?? !1, te()),
6717
- () => `fa-solid ${Kh(te())}`,
6717
+ () => `fa-solid ${Kp(te())}`,
6718
6718
  () => te().toLowerCase().endsWith(".tldv") ? "color: #1d1dff" : ""
6719
6719
  ]
6720
6720
  ), T($, gt);
@@ -6722,16 +6722,16 @@ function Da(t, e) {
6722
6722
  var X = O(H, 2), ye = y(X);
6723
6723
  {
6724
6724
  var ie = ($) => {
6725
- var P = wp();
6725
+ var P = wh();
6726
6726
  P.__click = We, D((G) => M(P, "title", G), [() => /* @__PURE__ */ Pu()]), T($, P);
6727
6727
  }, ae = ($) => {
6728
6728
  var P = Tt(), G = ft(P);
6729
6729
  {
6730
6730
  var te = (Te) => {
6731
- var qe = _p(), Je = y(qe);
6731
+ var qe = _h(), Je = y(qe);
6732
6732
  Ls(Je, { size: "20", color: "white" }), k(qe), T(Te, qe);
6733
6733
  }, $e = (Te) => {
6734
- var qe = kp();
6734
+ var qe = kh();
6735
6735
  qe.__click = fe, D((Je) => M(qe, "title", Je), [() => /* @__PURE__ */ Mu()]), T(Te, qe);
6736
6736
  };
6737
6737
  K(
@@ -6751,24 +6751,24 @@ function Da(t, e) {
6751
6751
  var Le = O(ye, 2);
6752
6752
  {
6753
6753
  var Ge = ($) => {
6754
- var P = yp();
6754
+ var P = yh();
6755
6755
  P.__click = function(...G) {
6756
6756
  var te;
6757
6757
  (te = r()) == null || te.apply(this, G);
6758
6758
  }, D((G) => M(P, "title", G), [() => /* @__PURE__ */ nd()]), T($, P);
6759
6759
  }, vt = ($) => {
6760
- var P = zp();
6760
+ var P = zh();
6761
6761
  P.__click = ge, D((G) => M(P, "title", G), [() => /* @__PURE__ */ Nu()]), T($, P);
6762
6762
  };
6763
6763
  K(Le, ($) => {
6764
6764
  s() ? $(Ge) : $(vt, !1);
6765
6765
  });
6766
6766
  }
6767
- k(X), k(Ue), k(Re), k(Ee);
6767
+ k(X), k(Ue), k(je), k(Ee);
6768
6768
  var Z = O(Ee, 2);
6769
6769
  {
6770
6770
  var Q = ($) => {
6771
- ja($, {
6771
+ Ra($, {
6772
6772
  get attachments() {
6773
6773
  return o();
6774
6774
  },
@@ -6799,12 +6799,12 @@ function Da(t, e) {
6799
6799
  },
6800
6800
  [
6801
6801
  () => /* @__PURE__ */ Lu(),
6802
- () => /* @__PURE__ */ Ru(),
6802
+ () => /* @__PURE__ */ ju(),
6803
6803
  () => /* @__PURE__ */ $a()
6804
6804
  ]
6805
6805
  ), Wt("keypress", Ce, ($) => {
6806
6806
  $.key === "Enter" && !$.shiftKey && ($.preventDefault(), ge());
6807
- }), jl(Ce, () => f(d), ($) => b(d, $)), ya(me, a), Wt("wheel", H, Ae), xt(3, Ee, () => Bt, () => ({ duration: 300, delay: 200 })), T(t, Se), se({
6807
+ }), Rl(Ce, () => f(d), ($) => b(d, $)), ya(me, a), Wt("wheel", H, Ae), xt(3, Ee, () => Bt, () => ({ duration: 300, delay: 200 })), T(t, Se), se({
6808
6808
  get sendMessage() {
6809
6809
  return n();
6810
6810
  },
@@ -6879,7 +6879,7 @@ oe(
6879
6879
  [],
6880
6880
  !0
6881
6881
  );
6882
- const Oa = /^[a-z0-9]+(-[a-z0-9]+)*$/, Rr = (t, e, n, r = "") => {
6882
+ const Oa = /^[a-z0-9]+(-[a-z0-9]+)*$/, jr = (t, e, n, r = "") => {
6883
6883
  const s = t.split(":");
6884
6884
  if (t.slice(0, 1) === "@") {
6885
6885
  if (s.length < 2 || s.length > 3)
@@ -6928,27 +6928,27 @@ const Oa = /^[a-z0-9]+(-[a-z0-9]+)*$/, Rr = (t, e, n, r = "") => {
6928
6928
  rotate: 0,
6929
6929
  vFlip: !1,
6930
6930
  hFlip: !1
6931
- }), jr = Object.freeze({
6931
+ }), Rr = Object.freeze({
6932
6932
  ...Pa,
6933
6933
  ...br
6934
6934
  }), os = Object.freeze({
6935
- ...jr,
6935
+ ...Rr,
6936
6936
  body: "",
6937
6937
  hidden: !1
6938
6938
  });
6939
- function Sp(t, e) {
6939
+ function Sh(t, e) {
6940
6940
  const n = {};
6941
6941
  !t.hFlip != !e.hFlip && (n.hFlip = !0), !t.vFlip != !e.vFlip && (n.vFlip = !0);
6942
6942
  const r = ((t.rotate || 0) + (e.rotate || 0)) % 4;
6943
6943
  return r && (n.rotate = r), n;
6944
6944
  }
6945
6945
  function vi(t, e) {
6946
- const n = Sp(t, e);
6946
+ const n = Sh(t, e);
6947
6947
  for (const r in os)
6948
6948
  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]);
6949
6949
  return n;
6950
6950
  }
6951
- function Ep(t, e) {
6951
+ function Eh(t, e) {
6952
6952
  const n = t.icons, r = t.aliases || /* @__PURE__ */ Object.create(null), s = /* @__PURE__ */ Object.create(null);
6953
6953
  function i(a) {
6954
6954
  if (n[a])
@@ -6962,7 +6962,7 @@ function Ep(t, e) {
6962
6962
  }
6963
6963
  return Object.keys(n).concat(Object.keys(r)).forEach(i), s;
6964
6964
  }
6965
- function Cp(t, e, n) {
6965
+ function Ch(t, e, n) {
6966
6966
  const r = t.icons, s = t.aliases || /* @__PURE__ */ Object.create(null);
6967
6967
  let i = {};
6968
6968
  function a(o) {
@@ -6980,14 +6980,14 @@ function Ma(t, e) {
6980
6980
  t.not_found instanceof Array && t.not_found.forEach((s) => {
6981
6981
  e(s, null), n.push(s);
6982
6982
  });
6983
- const r = Ep(t);
6983
+ const r = Eh(t);
6984
6984
  for (const s in r) {
6985
6985
  const i = r[s];
6986
- i && (e(s, Cp(t, s, i)), n.push(s));
6986
+ i && (e(s, Ch(t, s, i)), n.push(s));
6987
6987
  }
6988
6988
  return n;
6989
6989
  }
6990
- const Ip = {
6990
+ const Ih = {
6991
6991
  provider: "",
6992
6992
  aliases: {},
6993
6993
  not_found: {},
@@ -7003,7 +7003,7 @@ function Na(t) {
7003
7003
  if (typeof t != "object" || t === null)
7004
7004
  return null;
7005
7005
  const e = t;
7006
- if (typeof e.prefix != "string" || !t.icons || typeof t.icons != "object" || !Gr(t, Ip))
7006
+ if (typeof e.prefix != "string" || !t.icons || typeof t.icons != "object" || !Gr(t, Ih))
7007
7007
  return null;
7008
7008
  const n = e.icons;
7009
7009
  for (const s in n) {
@@ -7036,7 +7036,7 @@ function Na(t) {
7036
7036
  return e;
7037
7037
  }
7038
7038
  const gi = /* @__PURE__ */ Object.create(null);
7039
- function Ap(t, e) {
7039
+ function Ah(t, e) {
7040
7040
  return {
7041
7041
  provider: t,
7042
7042
  prefix: e,
@@ -7046,14 +7046,14 @@ function Ap(t, e) {
7046
7046
  }
7047
7047
  function kn(t, e) {
7048
7048
  const n = gi[t] || (gi[t] = /* @__PURE__ */ Object.create(null));
7049
- return n[e] || (n[e] = Ap(t, e));
7049
+ return n[e] || (n[e] = Ah(t, e));
7050
7050
  }
7051
7051
  function Ua(t, e) {
7052
7052
  return Na(e) ? Ma(e, (n, r) => {
7053
7053
  r ? t.icons[n] = r : t.missing.add(n);
7054
7054
  }) : [];
7055
7055
  }
7056
- function Lp(t, e, n) {
7056
+ function Lh(t, e, n) {
7057
7057
  try {
7058
7058
  if (typeof n.body == "string")
7059
7059
  return t.icons[e] = { ...n }, !0;
@@ -7065,27 +7065,27 @@ let Hn = !1;
7065
7065
  function Ba(t) {
7066
7066
  return typeof t == "boolean" && (Hn = t), Hn;
7067
7067
  }
7068
- function Rp(t) {
7069
- const e = typeof t == "string" ? Rr(t, !0, Hn) : t;
7068
+ function jh(t) {
7069
+ const e = typeof t == "string" ? jr(t, !0, Hn) : t;
7070
7070
  if (e) {
7071
7071
  const n = kn(e.provider, e.prefix), r = e.name;
7072
7072
  return n.icons[r] || (n.missing.has(r) ? null : void 0);
7073
7073
  }
7074
7074
  }
7075
- function jp(t, e) {
7076
- const n = Rr(t, !0, Hn);
7075
+ function Rh(t, e) {
7076
+ const n = jr(t, !0, Hn);
7077
7077
  if (!n)
7078
7078
  return !1;
7079
7079
  const r = kn(n.provider, n.prefix);
7080
- return e ? Lp(r, n.name, e) : (r.missing.add(n.name), !0);
7080
+ return e ? Lh(r, n.name, e) : (r.missing.add(n.name), !0);
7081
7081
  }
7082
- function Fp(t, e) {
7082
+ function Fh(t, e) {
7083
7083
  if (typeof t != "object")
7084
7084
  return !1;
7085
7085
  if (typeof e != "string" && (e = t.provider || ""), Hn && !e && !t.prefix) {
7086
7086
  let s = !1;
7087
7087
  return Na(t) && (t.prefix = "", Ma(t, (i, a) => {
7088
- jp(i, a) && (s = !0);
7088
+ Rh(i, a) && (s = !0);
7089
7089
  })), s;
7090
7090
  }
7091
7091
  const n = t.prefix;
@@ -7106,7 +7106,7 @@ const qa = Object.freeze({
7106
7106
  ...qa,
7107
7107
  // Transformations
7108
7108
  ...br
7109
- }), Dp = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Op = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
7109
+ }), Dh = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Oh = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
7110
7110
  function mi(t, e, n) {
7111
7111
  if (e === 1)
7112
7112
  return t;
@@ -7114,11 +7114,11 @@ function mi(t, e, n) {
7114
7114
  return Math.ceil(t * e * n) / n;
7115
7115
  if (typeof t != "string")
7116
7116
  return t;
7117
- const r = t.split(Dp);
7117
+ const r = t.split(Dh);
7118
7118
  if (r === null || !r.length)
7119
7119
  return t;
7120
7120
  const s = [];
7121
- let i = r.shift(), a = Op.test(i);
7121
+ let i = r.shift(), a = Oh.test(i);
7122
7122
  for (; ; ) {
7123
7123
  if (a) {
7124
7124
  const o = parseFloat(i);
@@ -7130,7 +7130,7 @@ function mi(t, e, n) {
7130
7130
  a = !a;
7131
7131
  }
7132
7132
  }
7133
- function Pp(t, e = "defs") {
7133
+ function Ph(t, e = "defs") {
7134
7134
  let n = "";
7135
7135
  const r = t.indexOf("<" + e);
7136
7136
  for (; r >= 0; ) {
@@ -7147,17 +7147,17 @@ function Pp(t, e = "defs") {
7147
7147
  content: t
7148
7148
  };
7149
7149
  }
7150
- function Mp(t, e) {
7150
+ function Mh(t, e) {
7151
7151
  return t ? "<defs>" + t + "</defs>" + e : e;
7152
7152
  }
7153
- function Np(t, e, n) {
7154
- const r = Pp(t);
7155
- return Mp(r.defs, e + r.content + n);
7153
+ function Nh(t, e, n) {
7154
+ const r = Ph(t);
7155
+ return Mh(r.defs, e + r.content + n);
7156
7156
  }
7157
- const Up = (t) => t === "unset" || t === "undefined" || t === "none";
7158
- function Bp(t, e) {
7157
+ const Uh = (t) => t === "unset" || t === "undefined" || t === "none";
7158
+ function Bh(t, e) {
7159
7159
  const n = {
7160
- ...jr,
7160
+ ...Rr,
7161
7161
  ...t
7162
7162
  }, r = {
7163
7163
  ...Ha,
@@ -7195,7 +7195,7 @@ function Bp(t, e) {
7195
7195
  );
7196
7196
  break;
7197
7197
  }
7198
- z % 2 === 1 && (s.left !== s.top && (F = s.left, s.left = s.top, s.top = F), s.width !== s.height && (F = s.width, s.width = s.height, s.height = F)), S.length && (i = Np(
7198
+ z % 2 === 1 && (s.left !== s.top && (F = s.left, s.left = s.top, s.top = F), s.width !== s.height && (F = s.width, s.width = s.height, s.height = F)), S.length && (i = Nh(
7199
7199
  i,
7200
7200
  '<g transform="' + S.join(" ") + '">',
7201
7201
  "</g>"
@@ -7204,29 +7204,29 @@ function Bp(t, e) {
7204
7204
  const a = r.width, o = r.height, c = s.width, l = s.height;
7205
7205
  let u, d;
7206
7206
  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);
7207
- const h = {}, p = (m, S) => {
7208
- Up(S) || (h[m] = S.toString());
7207
+ const p = {}, h = (m, S) => {
7208
+ Uh(S) || (p[m] = S.toString());
7209
7209
  };
7210
- p("width", u), p("height", d);
7210
+ h("width", u), h("height", d);
7211
7211
  const w = [s.left, s.top, c, l];
7212
- return h.viewBox = w.join(" "), {
7213
- attributes: h,
7212
+ return p.viewBox = w.join(" "), {
7213
+ attributes: p,
7214
7214
  viewBox: w,
7215
7215
  body: i
7216
7216
  };
7217
7217
  }
7218
- const qp = /\sid="(\S+)"/g, Hp = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
7219
- let Yp = 0;
7220
- function Gp(t, e = Hp) {
7218
+ const qh = /\sid="(\S+)"/g, Hh = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
7219
+ let Yh = 0;
7220
+ function Gh(t, e = Hh) {
7221
7221
  const n = [];
7222
7222
  let r;
7223
- for (; r = qp.exec(t); )
7223
+ for (; r = qh.exec(t); )
7224
7224
  n.push(r[1]);
7225
7225
  if (!n.length)
7226
7226
  return t;
7227
7227
  const s = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
7228
7228
  return n.forEach((i) => {
7229
- const a = typeof e == "function" ? e(i) : e + (Yp++).toString(), o = i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
7229
+ const a = typeof e == "function" ? e(i) : e + (Yh++).toString(), o = i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
7230
7230
  t = t.replace(
7231
7231
  // Allowed characters before id: [#;"]
7232
7232
  // Allowed characters after id: [)"], .[a-z]
@@ -7236,13 +7236,13 @@ function Gp(t, e = Hp) {
7236
7236
  }), t = t.replace(new RegExp(s, "g"), ""), t;
7237
7237
  }
7238
7238
  const ls = /* @__PURE__ */ Object.create(null);
7239
- function Jp(t, e) {
7239
+ function Jh(t, e) {
7240
7240
  ls[t] = e;
7241
7241
  }
7242
7242
  function cs(t) {
7243
7243
  return ls[t] || ls[""];
7244
7244
  }
7245
- function js(t) {
7245
+ function Rs(t) {
7246
7246
  let e;
7247
7247
  if (typeof t.resources == "string")
7248
7248
  e = [t.resources];
@@ -7273,17 +7273,17 @@ const Fs = /* @__PURE__ */ Object.create(null), Ln = [
7273
7273
  ], or = [];
7274
7274
  for (; Ln.length > 0; )
7275
7275
  Ln.length === 1 || Math.random() > 0.5 ? or.push(Ln.shift()) : or.push(Ln.pop());
7276
- Fs[""] = js({
7276
+ Fs[""] = Rs({
7277
7277
  resources: ["https://api.iconify.design"].concat(or)
7278
7278
  });
7279
- function Wp(t, e) {
7280
- const n = js(e);
7279
+ function Wh(t, e) {
7280
+ const n = Rs(e);
7281
7281
  return n === null ? !1 : (Fs[t] = n, !0);
7282
7282
  }
7283
7283
  function Ds(t) {
7284
7284
  return Fs[t];
7285
7285
  }
7286
- const Zp = () => {
7286
+ const Zh = () => {
7287
7287
  let t;
7288
7288
  try {
7289
7289
  if (t = fetch, typeof t == "function")
@@ -7291,8 +7291,8 @@ const Zp = () => {
7291
7291
  } catch {
7292
7292
  }
7293
7293
  };
7294
- let bi = Zp();
7295
- function Xp(t, e) {
7294
+ let bi = Zh();
7295
+ function Xh(t, e) {
7296
7296
  const n = Ds(t);
7297
7297
  if (!n)
7298
7298
  return 0;
@@ -7309,11 +7309,11 @@ function Xp(t, e) {
7309
7309
  }
7310
7310
  return r;
7311
7311
  }
7312
- function Vp(t) {
7312
+ function Vh(t) {
7313
7313
  return t === 404;
7314
7314
  }
7315
- const Qp = (t, e, n) => {
7316
- const r = [], s = Xp(t, e), i = "icons";
7315
+ const Qh = (t, e, n) => {
7316
+ const r = [], s = Xh(t, e), i = "icons";
7317
7317
  let a = {
7318
7318
  type: i,
7319
7319
  provider: t,
@@ -7329,7 +7329,7 @@ const Qp = (t, e, n) => {
7329
7329
  }, o = c.length), a.icons.push(c);
7330
7330
  }), r.push(a), r;
7331
7331
  };
7332
- function Kp(t) {
7332
+ function Kh(t) {
7333
7333
  if (typeof t == "string") {
7334
7334
  const e = Ds(t);
7335
7335
  if (e)
@@ -7342,7 +7342,7 @@ const ev = (t, e, n) => {
7342
7342
  n("abort", 424);
7343
7343
  return;
7344
7344
  }
7345
- let r = Kp(e.provider);
7345
+ let r = Kh(e.provider);
7346
7346
  switch (e.type) {
7347
7347
  case "icons": {
7348
7348
  const i = e.prefix, o = e.icons.join(","), c = new URLSearchParams({
@@ -7365,7 +7365,7 @@ const ev = (t, e, n) => {
7365
7365
  const a = i.status;
7366
7366
  if (a !== 200) {
7367
7367
  setTimeout(() => {
7368
- n(Vp(a) ? "abort" : "next", a);
7368
+ n(Vh(a) ? "abort" : "next", a);
7369
7369
  });
7370
7370
  return;
7371
7371
  }
@@ -7384,7 +7384,7 @@ const ev = (t, e, n) => {
7384
7384
  n("next", s);
7385
7385
  });
7386
7386
  }, tv = {
7387
- prepare: Qp,
7387
+ prepare: Qh,
7388
7388
  send: ev
7389
7389
  };
7390
7390
  function nv(t) {
@@ -7476,7 +7476,7 @@ function iv(t, e, n) {
7476
7476
  function av(t, e = !0, n = !1) {
7477
7477
  const r = [];
7478
7478
  return t.forEach((s) => {
7479
- const i = typeof s == "string" ? Rr(s, e, n) : s;
7479
+ const i = typeof s == "string" ? jr(s, e, n) : s;
7480
7480
  i && r.push(i);
7481
7481
  }), r;
7482
7482
  }
@@ -7501,18 +7501,18 @@ function lv(t, e, n, r) {
7501
7501
  } else
7502
7502
  a = t.resources.slice(i).concat(t.resources.slice(0, i));
7503
7503
  const o = Date.now();
7504
- let c = "pending", l = 0, u, d = null, h = [], p = [];
7505
- typeof r == "function" && p.push(r);
7504
+ let c = "pending", l = 0, u, d = null, p = [], h = [];
7505
+ typeof r == "function" && h.push(r);
7506
7506
  function w() {
7507
7507
  d && (clearTimeout(d), d = null);
7508
7508
  }
7509
7509
  function m() {
7510
- c === "pending" && (c = "aborted"), w(), h.forEach((L) => {
7510
+ c === "pending" && (c = "aborted"), w(), p.forEach((L) => {
7511
7511
  L.status === "pending" && (L.status = "aborted");
7512
- }), h = [];
7512
+ }), p = [];
7513
7513
  }
7514
7514
  function S(L, A) {
7515
- A && (p = []), typeof L == "function" && p.push(L);
7515
+ A && (h = []), typeof L == "function" && h.push(L);
7516
7516
  }
7517
7517
  function x() {
7518
7518
  return {
@@ -7520,24 +7520,24 @@ function lv(t, e, n, r) {
7520
7520
  payload: e,
7521
7521
  status: c,
7522
7522
  queriesSent: l,
7523
- queriesPending: h.length,
7523
+ queriesPending: p.length,
7524
7524
  subscribe: S,
7525
7525
  abort: m
7526
7526
  };
7527
7527
  }
7528
7528
  function _() {
7529
- c = "failed", p.forEach((L) => {
7529
+ c = "failed", h.forEach((L) => {
7530
7530
  L(void 0, u);
7531
7531
  });
7532
7532
  }
7533
7533
  function z() {
7534
- h.forEach((L) => {
7534
+ p.forEach((L) => {
7535
7535
  L.status === "pending" && (L.status = "aborted");
7536
- }), h = [];
7536
+ }), p = [];
7537
7537
  }
7538
7538
  function F(L, A, N) {
7539
7539
  const Y = A !== "success";
7540
- switch (h = h.filter((le) => le !== L), c) {
7540
+ switch (p = p.filter((le) => le !== L), c) {
7541
7541
  case "pending":
7542
7542
  break;
7543
7543
  case "failed":
@@ -7552,14 +7552,14 @@ function lv(t, e, n, r) {
7552
7552
  return;
7553
7553
  }
7554
7554
  if (Y) {
7555
- u = N, h.length || (a.length ? E() : _());
7555
+ u = N, p.length || (a.length ? E() : _());
7556
7556
  return;
7557
7557
  }
7558
7558
  if (w(), z(), !t.random) {
7559
7559
  const le = t.resources.indexOf(L.resource);
7560
7560
  le !== -1 && le !== t.index && (t.index = le);
7561
7561
  }
7562
- c = "completed", p.forEach((le) => {
7562
+ c = "completed", h.forEach((le) => {
7563
7563
  le(N);
7564
7564
  });
7565
7565
  }
@@ -7569,7 +7569,7 @@ function lv(t, e, n, r) {
7569
7569
  w();
7570
7570
  const L = a.shift();
7571
7571
  if (L === void 0) {
7572
- if (h.length) {
7572
+ if (p.length) {
7573
7573
  d = setTimeout(() => {
7574
7574
  w(), c === "pending" && (z(), _());
7575
7575
  }, t.timeout);
@@ -7585,7 +7585,7 @@ function lv(t, e, n, r) {
7585
7585
  F(A, N, Y);
7586
7586
  }
7587
7587
  };
7588
- h.push(A), l++, d = setTimeout(E, t.rotate), n(L, e, A.callback);
7588
+ p.push(A), l++, d = setTimeout(E, t.rotate), n(L, e, A.callback);
7589
7589
  }
7590
7590
  return setTimeout(E), x;
7591
7591
  }
@@ -7603,8 +7603,8 @@ function Ga(t) {
7603
7603
  e,
7604
7604
  o,
7605
7605
  c,
7606
- (d, h) => {
7607
- r(), l && l(d, h);
7606
+ (d, p) => {
7607
+ r(), l && l(d, p);
7608
7608
  }
7609
7609
  );
7610
7610
  return n.push(u), u;
@@ -7648,7 +7648,7 @@ function uv(t, e, n) {
7648
7648
  const a = cv(t);
7649
7649
  a && (r = a.redundancy);
7650
7650
  } else {
7651
- const i = js(t);
7651
+ const i = Rs(t);
7652
7652
  if (i) {
7653
7653
  r = Ga(i);
7654
7654
  const a = t.resources ? t.resources[0] : "", o = cs(a);
@@ -7673,7 +7673,7 @@ function fv(t) {
7673
7673
  invalid: n
7674
7674
  };
7675
7675
  }
7676
- function Rn(t, e, n) {
7676
+ function jn(t, e, n) {
7677
7677
  function r() {
7678
7678
  const s = t.pendingIcons;
7679
7679
  e.forEach((i) => {
@@ -7698,7 +7698,7 @@ function _i(t, e) {
7698
7698
  e(null);
7699
7699
  }) : e(t);
7700
7700
  }
7701
- function hv(t, e) {
7701
+ function pv(t, e) {
7702
7702
  t.iconsToLoad ? t.iconsToLoad = t.iconsToLoad.concat(e).sort() : t.iconsToLoad = e, t.iconsQueueFlag || (t.iconsQueueFlag = !0, setTimeout(() => {
7703
7703
  t.iconsQueueFlag = !1;
7704
7704
  const { provider: n, prefix: r } = t, s = t.iconsToLoad;
@@ -7709,7 +7709,7 @@ function hv(t, e) {
7709
7709
  _i(
7710
7710
  t.loadIcons(s, r, n),
7711
7711
  (u) => {
7712
- Rn(t, s, u);
7712
+ jn(t, s, u);
7713
7713
  }
7714
7714
  );
7715
7715
  return;
@@ -7717,34 +7717,34 @@ function hv(t, e) {
7717
7717
  if (i) {
7718
7718
  s.forEach((u) => {
7719
7719
  const d = i(u, r, n);
7720
- _i(d, (h) => {
7721
- const p = h ? {
7720
+ _i(d, (p) => {
7721
+ const h = p ? {
7722
7722
  prefix: r,
7723
7723
  icons: {
7724
- [u]: h
7724
+ [u]: p
7725
7725
  }
7726
7726
  } : null;
7727
- Rn(t, [u], p);
7727
+ jn(t, [u], h);
7728
7728
  });
7729
7729
  });
7730
7730
  return;
7731
7731
  }
7732
7732
  const { valid: a, invalid: o } = fv(s);
7733
- if (o.length && Rn(t, o, null), !a.length)
7733
+ if (o.length && jn(t, o, null), !a.length)
7734
7734
  return;
7735
7735
  const c = r.match(Oa) ? cs(n) : null;
7736
7736
  if (!c) {
7737
- Rn(t, a, null);
7737
+ jn(t, a, null);
7738
7738
  return;
7739
7739
  }
7740
7740
  c.prepare(n, r, a).forEach((u) => {
7741
7741
  uv(n, u, (d) => {
7742
- Rn(t, u.icons, d);
7742
+ jn(t, u.icons, d);
7743
7743
  });
7744
7744
  });
7745
7745
  }));
7746
7746
  }
7747
- const pv = (t, e) => {
7747
+ const hv = (t, e) => {
7748
7748
  const n = av(t, !0, Ba()), r = nv(n);
7749
7749
  if (!r.pending.length) {
7750
7750
  let c = !0;
@@ -7769,11 +7769,11 @@ const pv = (t, e) => {
7769
7769
  const d = s[l] || (s[l] = /* @__PURE__ */ Object.create(null));
7770
7770
  d[u] || (d[u] = []);
7771
7771
  }), r.pending.forEach((c) => {
7772
- const { provider: l, prefix: u, name: d } = c, h = kn(l, u), p = h.pendingIcons || (h.pendingIcons = /* @__PURE__ */ new Set());
7773
- p.has(d) || (p.add(d), s[l][u].push(d));
7772
+ const { provider: l, prefix: u, name: d } = c, p = kn(l, u), h = p.pendingIcons || (p.pendingIcons = /* @__PURE__ */ new Set());
7773
+ h.has(d) || (h.add(d), s[l][u].push(d));
7774
7774
  }), i.forEach((c) => {
7775
7775
  const l = s[c.provider][c.prefix];
7776
- l.length && hv(c, l);
7776
+ l.length && pv(c, l);
7777
7777
  }), e ? iv(e, r, i) : wi;
7778
7778
  };
7779
7779
  function vv(t, e) {
@@ -7909,22 +7909,22 @@ function Tv(t, e) {
7909
7909
  ki[x] === void 0 && (s[x] = _);
7910
7910
  }
7911
7911
  }
7912
- const a = Bp(t, n), o = a.attributes;
7912
+ const a = Bh(t, n), o = a.attributes;
7913
7913
  if (n.inline && (i = "vertical-align: -0.125em; " + i), r === "svg") {
7914
7914
  Object.assign(s, o), i !== "" && (s.style = i);
7915
7915
  let x = 0, _ = e.id;
7916
7916
  return typeof _ == "string" && (_ = _.replace(/-/g, "_")), {
7917
7917
  svg: !0,
7918
7918
  attributes: s,
7919
- body: Gp(a.body, _ ? () => _ + "ID" + x++ : "iconifySvelte")
7919
+ body: Gh(a.body, _ ? () => _ + "ID" + x++ : "iconifySvelte")
7920
7920
  };
7921
7921
  }
7922
- const { body: c, width: l, height: u } = t, d = r === "mask" || (r === "bg" ? !1 : c.indexOf("currentColor") !== -1), h = xv(c, {
7922
+ const { body: c, width: l, height: u } = t, d = r === "mask" || (r === "bg" ? !1 : c.indexOf("currentColor") !== -1), p = xv(c, {
7923
7923
  ...o,
7924
7924
  width: l + "",
7925
7925
  height: u + ""
7926
7926
  }), w = {
7927
- "--svg": kv(h)
7927
+ "--svg": kv(p)
7928
7928
  }, m = (x) => {
7929
7929
  const _ = o[x];
7930
7930
  _ && (w[x] = $v(_));
@@ -7939,7 +7939,7 @@ function Tv(t, e) {
7939
7939
  };
7940
7940
  }
7941
7941
  Ba(!0);
7942
- Jp("", tv);
7942
+ Jh("", tv);
7943
7943
  if (typeof document < "u" && typeof window < "u") {
7944
7944
  const t = window;
7945
7945
  if (t.IconifyPreload !== void 0) {
@@ -7949,7 +7949,7 @@ if (typeof document < "u" && typeof window < "u") {
7949
7949
  // Check if item is an object and not null/array
7950
7950
  (typeof r != "object" || r === null || r instanceof Array || // Check for 'icons' and 'prefix'
7951
7951
  typeof r.icons != "object" || typeof r.prefix != "string" || // Add icon set
7952
- !Fp(r)) && console.error(n);
7952
+ !Fh(r)) && console.error(n);
7953
7953
  } catch {
7954
7954
  console.error(n);
7955
7955
  }
@@ -7964,7 +7964,7 @@ if (typeof document < "u" && typeof window < "u") {
7964
7964
  const s = e[n];
7965
7965
  if (typeof s != "object" || !s || s.resources === void 0)
7966
7966
  continue;
7967
- Wp(n, s) || console.error(r);
7967
+ Wh(n, s) || console.error(r);
7968
7968
  } catch {
7969
7969
  console.error(r);
7970
7970
  }
@@ -7976,15 +7976,15 @@ function Sv(t, e, n, r, s) {
7976
7976
  e.loading && (e.loading.abort(), e.loading = null);
7977
7977
  }
7978
7978
  if (typeof t == "object" && t !== null && typeof t.body == "string")
7979
- return e.name = "", i(), { data: { ...jr, ...t } };
7979
+ return e.name = "", i(), { data: { ...Rr, ...t } };
7980
7980
  let a;
7981
- if (typeof t != "string" || (a = Rr(t, !1, !0)) === null)
7981
+ if (typeof t != "string" || (a = jr(t, !1, !0)) === null)
7982
7982
  return i(), null;
7983
- const o = Rp(a);
7983
+ const o = jh(a);
7984
7984
  if (!o)
7985
7985
  return n && (!e.loading || e.loading.name !== t) && (i(), e.name = "", e.loading = {
7986
7986
  name: t,
7987
- abort: pv([a], r)
7987
+ abort: hv([a], r)
7988
7988
  }), null;
7989
7989
  i(), e.name !== t && (e.name = t, s && !e.destroyed && s(t));
7990
7990
  const c = ["iconify"];
@@ -7992,11 +7992,11 @@ function Sv(t, e, n, r, s) {
7992
7992
  }
7993
7993
  function $i(t, e) {
7994
7994
  return t ? Tv({
7995
- ...jr,
7995
+ ...Rr,
7996
7996
  ...t
7997
7997
  }, e) : null;
7998
7998
  }
7999
- var Ev = /* @__PURE__ */ xl("<svg><!></svg>"), Cv = /* @__PURE__ */ R("<span></span>");
7999
+ var Ev = /* @__PURE__ */ xl("<svg><!></svg>"), Cv = /* @__PURE__ */ j("<span></span>");
8000
8000
  function Xt(t, e) {
8001
8001
  const n = ql(e, [
8002
8002
  "children",
@@ -8015,8 +8015,8 @@ function Xt(t, e) {
8015
8015
  destroyed: !1
8016
8016
  });
8017
8017
  let s = Jt(!1), i = Jt(0), a = Jt();
8018
- const o = (h) => {
8019
- typeof n.onLoad == "function" && n.onLoad(h), Ml()("load", { icon: h });
8018
+ const o = (p) => {
8019
+ typeof n.onLoad == "function" && n.onLoad(p), Ml()("load", { icon: p });
8020
8020
  };
8021
8021
  function c() {
8022
8022
  qn(i);
@@ -8029,14 +8029,14 @@ function Xt(t, e) {
8029
8029
  () => (f(i), Cn(n), f(s), f(r), f(a), $i),
8030
8030
  () => {
8031
8031
  f(i);
8032
- const h = !!n.ssr || f(s), p = Sv(n.icon, f(r), h, c, o);
8033
- b(a, p ? $i(p.data, n) : null), f(a) && p.classes && Ur(a, f(a).attributes.class = (typeof n.class == "string" ? n.class + " " : "") + p.classes.join(" "));
8032
+ const p = !!n.ssr || f(s), h = Sv(n.icon, f(r), p, c, o);
8033
+ 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(" "));
8034
8034
  }
8035
8035
  ), Jn(), ct();
8036
8036
  var l = Tt(), u = ft(l);
8037
8037
  {
8038
- var d = (h) => {
8039
- var p = Tt(), w = ft(p);
8038
+ var d = (p) => {
8039
+ var h = Tt(), w = ft(h);
8040
8040
  {
8041
8041
  var m = (x) => {
8042
8042
  var _ = Ev();
@@ -8052,10 +8052,10 @@ function Xt(t, e) {
8052
8052
  f(a).svg ? x(m) : x(S, !1);
8053
8053
  });
8054
8054
  }
8055
- T(h, p);
8055
+ T(p, h);
8056
8056
  };
8057
- K(u, (h) => {
8058
- f(a) && h(d);
8057
+ K(u, (p) => {
8058
+ f(a) && p(d);
8059
8059
  });
8060
8060
  }
8061
8061
  T(t, l), se();
@@ -8148,12 +8148,12 @@ const rt = {
8148
8148
  fencesBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:\`\`\`|~~~)`),
8149
8149
  headingBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}#`),
8150
8150
  htmlBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}<(?:[a-z].*>|!--)`, "i")
8151
- }, Iv = /^(?:[ \t]*(?:\n|$))+/, Av = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Lv = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Xn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Rv = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ps = /(?:[*+-]|\d{1,9}[.)])/, Za = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Xa = we(Za).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(), jv = we(Za).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]+)*)/, Fv = /^[^\n]+/, Ns = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Dv = we(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Ns).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Ov = we(/^( {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]*?(?:-->|$))/, Pv = we("^ {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(), Va = we(Ms).replace("hr", Xn).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(), Mv = we(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Va).getRegex(), Bs = {
8151
+ }, Iv = /^(?:[ \t]*(?:\n|$))+/, Av = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Lv = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Xn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, jv = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ps = /(?:[*+-]|\d{1,9}[.)])/, Za = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Xa = we(Za).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(), Rv = we(Za).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]+)*)/, Fv = /^[^\n]+/, Ns = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Dv = we(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Ns).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Ov = we(/^( {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]*?(?:-->|$))/, Pv = we("^ {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(), Va = we(Ms).replace("hr", Xn).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(), Mv = we(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Va).getRegex(), Bs = {
8152
8152
  blockquote: Mv,
8153
8153
  code: Av,
8154
8154
  def: Dv,
8155
8155
  fences: Lv,
8156
- heading: Rv,
8156
+ heading: jv,
8157
8157
  hr: Xn,
8158
8158
  html: Pv,
8159
8159
  lheading: Xa,
@@ -8164,7 +8164,7 @@ const rt = {
8164
8164
  text: Fv
8165
8165
  }, Ti = we("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Xn).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(), Nv = {
8166
8166
  ...Bs,
8167
- lheading: jv,
8167
+ lheading: Rv,
8168
8168
  table: Ti,
8169
8169
  paragraph: we(Ms).replace("hr", Xn).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()
8170
8170
  }, Uv = {
@@ -8218,7 +8218,7 @@ const rt = {
8218
8218
  normal: Bs,
8219
8219
  gfm: Nv,
8220
8220
  pedantic: Uv
8221
- }, jn = {
8221
+ }, Rn = {
8222
8222
  normal: Hs,
8223
8223
  gfm: ds,
8224
8224
  breaks: og,
@@ -8417,23 +8417,23 @@ class wr {
8417
8417
  s = s ? `${s}
8418
8418
  ${u}` : u, i = i ? `${i}
8419
8419
  ${d}` : d;
8420
- const h = this.lexer.state.top;
8421
- if (this.lexer.state.top = !0, this.lexer.blockTokens(d, a, !0), this.lexer.state.top = h, r.length === 0)
8420
+ const p = this.lexer.state.top;
8421
+ if (this.lexer.state.top = !0, this.lexer.blockTokens(d, a, !0), this.lexer.state.top = p, r.length === 0)
8422
8422
  break;
8423
- const p = a.at(-1);
8424
- if ((p == null ? void 0 : p.type) === "code")
8423
+ const h = a.at(-1);
8424
+ if ((h == null ? void 0 : h.type) === "code")
8425
8425
  break;
8426
- if ((p == null ? void 0 : p.type) === "blockquote") {
8427
- const w = p, m = w.raw + `
8426
+ if ((h == null ? void 0 : h.type) === "blockquote") {
8427
+ const w = h, m = w.raw + `
8428
8428
  ` + r.join(`
8429
8429
  `), S = this.blockquote(m);
8430
8430
  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;
8431
8431
  break;
8432
- } else if ((p == null ? void 0 : p.type) === "list") {
8433
- const w = p, m = w.raw + `
8432
+ } else if ((h == null ? void 0 : h.type) === "list") {
8433
+ const w = h, m = w.raw + `
8434
8434
  ` + r.join(`
8435
8435
  `), S = this.list(m);
8436
- a[a.length - 1] = S, s = s.substring(0, s.length - p.raw.length) + S.raw, i = i.substring(0, i.length - w.raw.length) + S.raw, r = m.substring(a.at(-1).raw.length).split(`
8436
+ 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(`
8437
8437
  `);
8438
8438
  continue;
8439
8439
  }
@@ -8466,29 +8466,29 @@ ${d}` : d;
8466
8466
  if (!(n = a.exec(e)) || this.rules.block.hr.test(e))
8467
8467
  break;
8468
8468
  u = n[0], e = e.substring(u.length);
8469
- let h = n[2].split(`
8470
- `, 1)[0].replace(this.rules.other.listReplaceTabs, (_) => " ".repeat(3 * _.length)), p = e.split(`
8471
- `, 1)[0], w = !h.trim(), m = 0;
8472
- if (this.options.pedantic ? (m = 2, d = h.trimStart()) : w ? m = n[1].length + 1 : (m = n[2].search(this.rules.other.nonSpaceChar), m = m > 4 ? 1 : m, d = h.slice(m), m += n[1].length), w && this.rules.other.blankLine.test(p) && (u += p + `
8473
- `, e = e.substring(p.length + 1), l = !0), !l) {
8469
+ let p = n[2].split(`
8470
+ `, 1)[0].replace(this.rules.other.listReplaceTabs, (_) => " ".repeat(3 * _.length)), h = e.split(`
8471
+ `, 1)[0], w = !p.trim(), m = 0;
8472
+ 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 + `
8473
+ `, e = e.substring(h.length + 1), l = !0), !l) {
8474
8474
  const _ = this.rules.other.nextBulletRegex(m), z = this.rules.other.hrRegex(m), F = this.rules.other.fencesBeginRegex(m), E = this.rules.other.headingBeginRegex(m), L = this.rules.other.htmlBeginRegex(m);
8475
8475
  for (; e; ) {
8476
8476
  const A = e.split(`
8477
8477
  `, 1)[0];
8478
8478
  let N;
8479
- if (p = A, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), N = p) : N = p.replace(this.rules.other.tabCharGlobal, " "), F.test(p) || E.test(p) || L.test(p) || _.test(p) || z.test(p))
8479
+ if (h = A, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), N = h) : N = h.replace(this.rules.other.tabCharGlobal, " "), F.test(h) || E.test(h) || L.test(h) || _.test(h) || z.test(h))
8480
8480
  break;
8481
- if (N.search(this.rules.other.nonSpaceChar) >= m || !p.trim())
8481
+ if (N.search(this.rules.other.nonSpaceChar) >= m || !h.trim())
8482
8482
  d += `
8483
8483
  ` + N.slice(m);
8484
8484
  else {
8485
- if (w || h.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || F.test(h) || E.test(h) || z.test(h))
8485
+ if (w || p.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || F.test(p) || E.test(p) || z.test(p))
8486
8486
  break;
8487
8487
  d += `
8488
- ` + p;
8488
+ ` + h;
8489
8489
  }
8490
- !w && !p.trim() && (w = !0), u += A + `
8491
- `, e = e.substring(A.length + 1), h = N.slice(m);
8490
+ !w && !h.trim() && (w = !0), u += A + `
8491
+ `, e = e.substring(A.length + 1), p = N.slice(m);
8492
8492
  }
8493
8493
  }
8494
8494
  i.loose || (o ? i.loose = !0 : this.rules.other.doubleBlankLine.test(u) && (o = !0));
@@ -8511,7 +8511,7 @@ ${d}` : d;
8511
8511
  i.raw = i.raw.trimEnd();
8512
8512
  for (let l = 0; l < i.items.length; l++)
8513
8513
  if (this.lexer.state.top = !1, i.items[l].tokens = this.lexer.blockTokens(i.items[l].text, []), !i.loose) {
8514
- const u = i.items[l].tokens.filter((h) => h.type === "space"), d = u.length > 0 && u.some((h) => this.rules.other.anyLine.test(h.raw));
8514
+ const u = i.items[l].tokens.filter((p) => p.type === "space"), d = u.length > 0 && u.some((p) => this.rules.other.anyLine.test(p.raw));
8515
8515
  i.loose = d;
8516
8516
  }
8517
8517
  if (i.loose)
@@ -8697,20 +8697,20 @@ ${d}` : d;
8697
8697
  if (l -= c, l > 0)
8698
8698
  continue;
8699
8699
  c = Math.min(c, c + l + u);
8700
- const h = [...s[0]][0].length, p = e.slice(0, a + s.index + h + c);
8700
+ const p = [...s[0]][0].length, h = e.slice(0, a + s.index + p + c);
8701
8701
  if (Math.min(a, c) % 2) {
8702
- const m = p.slice(1, -1);
8702
+ const m = h.slice(1, -1);
8703
8703
  return {
8704
8704
  type: "em",
8705
- raw: p,
8705
+ raw: h,
8706
8706
  text: m,
8707
8707
  tokens: this.lexer.inlineTokens(m)
8708
8708
  };
8709
8709
  }
8710
- const w = p.slice(2, -2);
8710
+ const w = h.slice(2, -2);
8711
8711
  return {
8712
8712
  type: "strong",
8713
- raw: p,
8713
+ raw: h,
8714
8714
  text: w,
8715
8715
  tokens: this.lexer.inlineTokens(w)
8716
8716
  };
@@ -8823,9 +8823,9 @@ class wt {
8823
8823
  const n = {
8824
8824
  other: rt,
8825
8825
  block: nr.normal,
8826
- inline: jn.normal
8826
+ inline: Rn.normal
8827
8827
  };
8828
- this.options.pedantic ? (n.block = nr.pedantic, n.inline = jn.pedantic) : this.options.gfm && (n.block = nr.gfm, this.options.breaks ? n.inline = jn.breaks : n.inline = jn.gfm), this.tokenizer.rules = n;
8828
+ this.options.pedantic ? (n.block = nr.pedantic, n.inline = Rn.pedantic) : this.options.gfm && (n.block = nr.gfm, this.options.breaks ? n.inline = Rn.breaks : n.inline = Rn.gfm), this.tokenizer.rules = n;
8829
8829
  }
8830
8830
  /**
8831
8831
  * Expose Rules
@@ -8833,7 +8833,7 @@ class wt {
8833
8833
  static get rules() {
8834
8834
  return {
8835
8835
  block: nr,
8836
- inline: jn
8836
+ inline: Rn
8837
8837
  };
8838
8838
  }
8839
8839
  /**
@@ -8929,8 +8929,8 @@ class wt {
8929
8929
  let l = 1 / 0;
8930
8930
  const u = e.slice(1);
8931
8931
  let d;
8932
- this.options.extensions.startBlock.forEach((h) => {
8933
- d = h.call({ lexer: this }, u), typeof d == "number" && d >= 0 && (l = Math.min(l, d));
8932
+ this.options.extensions.startBlock.forEach((p) => {
8933
+ d = p.call({ lexer: this }, u), typeof d == "number" && d >= 0 && (l = Math.min(l, d));
8934
8934
  }), l < 1 / 0 && l >= 0 && (c = e.substring(0, l + 1));
8935
8935
  }
8936
8936
  if (this.state.top && (o = this.tokenizer.paragraph(c))) {
@@ -8982,7 +8982,7 @@ class wt {
8982
8982
  for (; e; ) {
8983
8983
  i || (a = ""), i = !1;
8984
8984
  let u;
8985
- if ((c = (o = this.options.extensions) == null ? void 0 : o.inline) != null && c.some((h) => (u = h.call({ lexer: this }, e, n)) ? (e = e.substring(u.raw.length), n.push(u), !0) : !1))
8985
+ if ((c = (o = this.options.extensions) == null ? void 0 : o.inline) != null && c.some((p) => (u = p.call({ lexer: this }, e, n)) ? (e = e.substring(u.raw.length), n.push(u), !0) : !1))
8986
8986
  continue;
8987
8987
  if (u = this.tokenizer.escape(e)) {
8988
8988
  e = e.substring(u.raw.length), n.push(u);
@@ -8998,8 +8998,8 @@ class wt {
8998
8998
  }
8999
8999
  if (u = this.tokenizer.reflink(e, this.tokens.links)) {
9000
9000
  e = e.substring(u.raw.length);
9001
- const h = n.at(-1);
9002
- u.type === "text" && (h == null ? void 0 : h.type) === "text" ? (h.raw += u.raw, h.text += u.text) : n.push(u);
9001
+ const p = n.at(-1);
9002
+ u.type === "text" && (p == null ? void 0 : p.type) === "text" ? (p.raw += u.raw, p.text += u.text) : n.push(u);
9003
9003
  continue;
9004
9004
  }
9005
9005
  if (u = this.tokenizer.emStrong(e, r, a)) {
@@ -9028,26 +9028,26 @@ class wt {
9028
9028
  }
9029
9029
  let d = e;
9030
9030
  if ((l = this.options.extensions) != null && l.startInline) {
9031
- let h = 1 / 0;
9032
- const p = e.slice(1);
9031
+ let p = 1 / 0;
9032
+ const h = e.slice(1);
9033
9033
  let w;
9034
9034
  this.options.extensions.startInline.forEach((m) => {
9035
- w = m.call({ lexer: this }, p), typeof w == "number" && w >= 0 && (h = Math.min(h, w));
9036
- }), h < 1 / 0 && h >= 0 && (d = e.substring(0, h + 1));
9035
+ w = m.call({ lexer: this }, h), typeof w == "number" && w >= 0 && (p = Math.min(p, w));
9036
+ }), p < 1 / 0 && p >= 0 && (d = e.substring(0, p + 1));
9037
9037
  }
9038
9038
  if (u = this.tokenizer.inlineText(d)) {
9039
9039
  e = e.substring(u.raw.length), u.raw.slice(-1) !== "_" && (a = u.raw.slice(-1)), i = !0;
9040
- const h = n.at(-1);
9041
- (h == null ? void 0 : h.type) === "text" ? (h.raw += u.raw, h.text += u.text) : n.push(u);
9040
+ const p = n.at(-1);
9041
+ (p == null ? void 0 : p.type) === "text" ? (p.raw += u.raw, p.text += u.text) : n.push(u);
9042
9042
  continue;
9043
9043
  }
9044
9044
  if (e) {
9045
- const h = "Infinite loop on byte: " + e.charCodeAt(0);
9045
+ const p = "Infinite loop on byte: " + e.charCodeAt(0);
9046
9046
  if (this.options.silent) {
9047
- console.error(h);
9047
+ console.error(p);
9048
9048
  break;
9049
9049
  } else
9050
- throw new Error(h);
9050
+ throw new Error(p);
9051
9051
  }
9052
9052
  }
9053
9053
  return n;
@@ -9530,7 +9530,7 @@ class dg {
9530
9530
  const o = a, c = r.hooks[o], l = i[o];
9531
9531
  Mn.passThroughHooks.has(a) ? i[o] = (u) => {
9532
9532
  if (this.defaults.async)
9533
- return Promise.resolve(c.call(i, u)).then((h) => l.call(i, h));
9533
+ return Promise.resolve(c.call(i, u)).then((p) => l.call(i, p));
9534
9534
  const d = c.call(i, u);
9535
9535
  return l.call(i, d);
9536
9536
  } : i[o] = (...u) => {
@@ -9629,9 +9629,9 @@ xe.parseInline;
9629
9629
  _t.parse;
9630
9630
  wt.lex;
9631
9631
  const fg = async (t, e, n) => {
9632
- const r = jh(e()), s = Fh(e());
9632
+ const r = Rp(e()), s = Fp(e());
9633
9633
  try {
9634
- await Dh(r, s), n();
9634
+ await Dp(r, s), n();
9635
9635
  } catch (i) {
9636
9636
  console.error("Errore durante la copia:", i);
9637
9637
  try {
@@ -9641,7 +9641,7 @@ const fg = async (t, e, n) => {
9641
9641
  }
9642
9642
  }
9643
9643
  };
9644
- var hg = (t, e, n) => e(f(n)), pg = /* @__PURE__ */ R('<i class="fa-solid fa-spinner fa-spin svelte-173vhzm"></i>'), vg = /* @__PURE__ */ R("<i></i>"), gg = /* @__PURE__ */ R('<div class="document-path svelte-173vhzm"> </div>'), mg = /* @__PURE__ */ R('<button><!> <div class="document-info svelte-173vhzm"><span class="document-title svelte-173vhzm"> </span> <!></div></button>'), bg = /* @__PURE__ */ R('<div class="sources-expanded svelte-173vhzm"><div class="sources-header svelte-173vhzm"></div> <div class="sources-list svelte-173vhzm"></div> <div class="sources-footer svelte-173vhzm"><button class="copy-sources-btn svelte-173vhzm"><i class="fa-solid fa-copy svelte-173vhzm"></i> <span> </span></button></div></div>'), xg = /* @__PURE__ */ R('<div class="sources-container svelte-173vhzm"><!></div>'), wg = /* @__PURE__ */ R('<div class="message-attachments"><!></div>');
9644
+ var pg = (t, e, n) => e(f(n)), hg = /* @__PURE__ */ j('<i class="fa-solid fa-spinner fa-spin svelte-173vhzm"></i>'), vg = /* @__PURE__ */ j("<i></i>"), gg = /* @__PURE__ */ j('<div class="document-path svelte-173vhzm"> </div>'), mg = /* @__PURE__ */ j('<button><!> <div class="document-info svelte-173vhzm"><span class="document-title svelte-173vhzm"> </span> <!></div></button>'), bg = /* @__PURE__ */ j('<div class="sources-expanded svelte-173vhzm"><div class="sources-header svelte-173vhzm"></div> <div class="sources-list svelte-173vhzm"></div> <div class="sources-footer svelte-173vhzm"><button class="copy-sources-btn svelte-173vhzm"><i class="fa-solid fa-copy svelte-173vhzm"></i> <span> </span></button></div></div>'), xg = /* @__PURE__ */ j('<div class="sources-container svelte-173vhzm"><!></div>'), wg = /* @__PURE__ */ j('<div class="message-attachments"><!></div>');
9645
9645
  const _g = {
9646
9646
  hash: "svelte-173vhzm",
9647
9647
  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;}"
@@ -9661,7 +9661,7 @@ function fs(t, e) {
9661
9661
  }, l = async (x, _, z) => {
9662
9662
  await bt.getDocumentPage(x, _, z);
9663
9663
  }, u = async (x, _, z) => {
9664
- if (!Lh(s(), _)) {
9664
+ if (!Lp(s(), _)) {
9665
9665
  console.error("L'utente non ha il permesso di scaricare PDF normativi.");
9666
9666
  return;
9667
9667
  }
@@ -9686,7 +9686,7 @@ function fs(t, e) {
9686
9686
  } finally {
9687
9687
  o(F, !1);
9688
9688
  }
9689
- }, h = async (x, _) => {
9689
+ }, p = async (x, _) => {
9690
9690
  const z = tr(x, _);
9691
9691
  o(z, !0);
9692
9692
  try {
@@ -9697,7 +9697,7 @@ function fs(t, e) {
9697
9697
  } finally {
9698
9698
  o(z, !1);
9699
9699
  }
9700
- }, p = async (x) => {
9700
+ }, h = async (x) => {
9701
9701
  const {
9702
9702
  external_id: _,
9703
9703
  filename: z,
@@ -9710,11 +9710,11 @@ function fs(t, e) {
9710
9710
  return;
9711
9711
  }
9712
9712
  if (L === "trascrizione") {
9713
- await h(_, z);
9713
+ await p(_, z);
9714
9714
  return;
9715
9715
  }
9716
9716
  const A = Ia(z);
9717
- !Sh(z) || A === "mp3" ? await d(_, L || "", z) : await u(_, L || "", z);
9717
+ !Sp(z) || A === "mp3" ? await d(_, L || "", z) : await u(_, L || "", z);
9718
9718
  };
9719
9719
  var w = wg(), m = y(w);
9720
9720
  {
@@ -9725,38 +9725,38 @@ function fs(t, e) {
9725
9725
  var L = bg(), A = O(y(L), 2);
9726
9726
  Qe(A, 21, r, Ve, (Ae, ge) => {
9727
9727
  var fe = mg();
9728
- const We = /* @__PURE__ */ Ne(() => tr(f(ge).external_id, f(ge).filename)), Ze = /* @__PURE__ */ Ne(() => Ah(f(ge))), ut = /* @__PURE__ */ Ne(() => f(i)[f(We)]), Ke = /* @__PURE__ */ Ne(() => Rh(f(ge), s())), j = /* @__PURE__ */ Ne(() => Aa(f(ge))), ee = /* @__PURE__ */ Ne(() => La(f(ge))), Se = /* @__PURE__ */ Ne(() => f(ge).isCommon ? Zn(f(ge).commonType).name : /* @__PURE__ */ ui());
9729
- fe.__click = [hg, p, ge];
9728
+ const We = /* @__PURE__ */ Ne(() => tr(f(ge).external_id, f(ge).filename)), Ze = /* @__PURE__ */ Ne(() => Ap(f(ge))), ut = /* @__PURE__ */ Ne(() => f(i)[f(We)]), Ke = /* @__PURE__ */ Ne(() => jp(f(ge), s())), R = /* @__PURE__ */ Ne(() => Aa(f(ge))), ee = /* @__PURE__ */ Ne(() => La(f(ge))), Se = /* @__PURE__ */ Ne(() => f(ge).isCommon ? Zn(f(ge).commonType).name : /* @__PURE__ */ ui());
9729
+ fe.__click = [pg, h, ge];
9730
9730
  var Ee = y(fe);
9731
9731
  {
9732
9732
  var De = (ce) => {
9733
- var he = pg();
9734
- T(ce, he);
9733
+ var pe = hg();
9734
+ T(ce, pe);
9735
9735
  }, Ce = (ce) => {
9736
- var he = vg();
9736
+ var pe = vg();
9737
9737
  D(() => {
9738
- nt(he, Ar(f(Ze).icon), "svelte-173vhzm"), M(he, "style", f(Ze).color ? `color: ${f(Ze).color}` : "");
9739
- }), T(ce, he);
9738
+ nt(pe, Ar(f(Ze).icon), "svelte-173vhzm"), M(pe, "style", f(Ze).color ? `color: ${f(Ze).color}` : "");
9739
+ }), T(ce, pe);
9740
9740
  };
9741
9741
  K(Ee, (ce) => {
9742
9742
  f(ut) ? ce(De) : ce(Ce, !1);
9743
9743
  });
9744
9744
  }
9745
- var Re = O(Ee, 2), Ue = y(Re), ke = y(Ue, !0);
9745
+ var je = O(Ee, 2), Ue = y(je), ke = y(Ue, !0);
9746
9746
  k(Ue);
9747
9747
  var W = O(Ue, 2);
9748
9748
  {
9749
9749
  var ve = (ce) => {
9750
- var he = gg(), me = y(he, !0);
9751
- k(he), D(() => _e(me, f(ee))), T(ce, he);
9750
+ var pe = gg(), me = y(pe, !0);
9751
+ k(pe), D(() => _e(me, f(ee))), T(ce, pe);
9752
9752
  };
9753
9753
  K(W, (ce) => {
9754
9754
  f(ge).isCommon || ce(ve);
9755
9755
  });
9756
9756
  }
9757
- k(Re), k(fe), D(
9757
+ k(je), k(fe), D(
9758
9758
  (ce) => {
9759
- nt(fe, `${`dropdown-option ${f(Ke) ? "common" : ""}` ?? ""} svelte-173vhzm`), M(fe, "aria-label", ce), M(fe, "title", f(Se)), fe.disabled = f(ut), _e(ke, f(j));
9759
+ nt(fe, `${`dropdown-option ${f(Ke) ? "common" : ""}` ?? ""} svelte-173vhzm`), M(fe, "aria-label", ce), M(fe, "title", f(Se)), fe.disabled = f(ut), _e(ke, f(R));
9760
9760
  },
9761
9761
  [() => /* @__PURE__ */ ui()]
9762
9762
  ), T(Ae, fe);
@@ -9821,19 +9821,19 @@ oe(
9821
9821
  const kg = (t, e, n) => {
9822
9822
  f(e).pause(), b(n, !1);
9823
9823
  };
9824
- var yg = /* @__PURE__ */ R('<button aria-label="Pause message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-2fpzuh"><i class="fa-solid fa-pause"></i></button>'), zg = (t, e, n) => e(f(n)), $g = /* @__PURE__ */ R('<button aria-label="Play message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-2fpzuh"><i class="fa-solid fa-play"></i></button>'), Tg = /* @__PURE__ */ R('<div class="agent-badge svelte-2fpzuh" title="Agente utilizzato"><i class="fa-solid fa-robot svelte-2fpzuh"></i> <span> </span></div>'), Sg = /* @__PURE__ */ R('<button class="sources-toggle-btn svelte-2fpzuh" aria-label="Visualizza fonti"><span> </span> <i></i></button>'), Eg = /* @__PURE__ */ R('<i class="fa-solid fa-check"></i>'), Cg = /* @__PURE__ */ R('<i class="fa-regular fa-copy"></i>'), Ig = /* @__PURE__ */ R('<div><div class="message-plus-play svelte-2fpzuh"><div><div class="message-content svelte-2fpzuh"><!></div></div> <!></div> <div class="w-100 d-flex"><div class="attachments-container svelte-2fpzuh"><!> <div class="d-flex gap-1"><!> <!> <button aria-label="Copy message" class="copy-button svelte-2fpzuh"><!></button></div></div></div></div>'), Ag = /* @__PURE__ */ R('<div><div class="message-plus-play svelte-2fpzuh"><div class="message-received svelte-2fpzuh"><div class="message-content svelte-2fpzuh"><!></div></div> <!></div> <div class="w-100 d-flex" style="justify-content: flex-start"><div class="attachments-container svelte-2fpzuh"><!> <div class="d-flex gap-1" style="width: 100%; justify-content: flex-start; align-items: flex-start;"><div class="agent-badge svelte-2fpzuh" title="Agente utilizzato"><i class="fa-solid fa-robot svelte-2fpzuh"></i> <span> </span></div></div></div></div></div>'), Lg = /* @__PURE__ */ R('<div class="loading svelte-2fpzuh"><!></div>'), Rg = /* @__PURE__ */ R('<div class="alert alert-danger"> </div>'), jg = /* @__PURE__ */ R('<div class="messages-wrapper svelte-2fpzuh"><div class="empty-placeholder svelte-2fpzuh"></div> <!> <!> <!></div>'), Fg = /* @__PURE__ */ R('<div class="loading-placeholder svelte-2fpzuh"><!></div>'), Dg = /* @__PURE__ */ R('<div class="chat-body svelte-2fpzuh"><!> <!></div>');
9824
+ var yg = /* @__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>'), zg = (t, e, n) => e(f(n)), $g = /* @__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>'), Tg = /* @__PURE__ */ j('<div class="agent-badge svelte-1c80pjc" title="Agente utilizzato"><i class="fa-solid fa-robot svelte-1c80pjc"></i> <span> </span></div>'), Sg = /* @__PURE__ */ j('<button class="sources-toggle-btn svelte-1c80pjc" aria-label="Visualizza fonti"><span> </span> <i></i></button>'), Eg = /* @__PURE__ */ j('<i class="fa-solid fa-check"></i>'), Cg = /* @__PURE__ */ j('<i class="fa-regular fa-copy"></i>'), Ig = /* @__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>'), Ag = /* @__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>'), Lg = /* @__PURE__ */ j('<div class="loading svelte-1c80pjc"><!></div>'), jg = /* @__PURE__ */ j('<div class="alert alert-danger"> </div>'), Rg = /* @__PURE__ */ j('<div class="messages-wrapper svelte-1c80pjc"><div class="empty-placeholder svelte-1c80pjc"></div> <!> <!> <!></div>'), Fg = /* @__PURE__ */ j('<div class="loading-placeholder svelte-1c80pjc"><!></div>'), Dg = /* @__PURE__ */ j('<div class="chat-body svelte-1c80pjc"><!> <!></div>');
9825
9825
  const Og = {
9826
- hash: "svelte-2fpzuh",
9827
- code: `.empty-placeholder.svelte-2fpzuh {height:100%;}.messages-wrapper.svelte-2fpzuh {display:flex;flex-direction:column;gap:10px;min-height:100%;}.loading-placeholder.svelte-2fpzuh {display:flex;justify-content:center;align-items:center;height:100%;}.chat-body.svelte-2fpzuh {display:flex;flex-direction:column;gap:10px;overflow-y:auto;height:100%;padding:10px;}.chat-body.svelte-2fpzuh::-webkit-scrollbar {width:8px;}.chat-body.svelte-2fpzuh * {--bs-table-color: #333333;--bs-table-striped-color: #333333;--bs-link-color-rgb: 41, 93, 207;}.chat-body.svelte-2fpzuh table {min-width:auto;}.chat-body.svelte-2fpzuh::-webkit-scrollbar-track {background:rgba(255, 255, 255, 0.2); /* Sfondo semi-trasparente */border-radius:10px;}.chat-body.svelte-2fpzuh::-webkit-scrollbar-thumb {background:rgba(\r
9826
+ hash: "svelte-1c80pjc",
9827
+ code: `.empty-placeholder.svelte-1c80pjc {height:100%;}.messages-wrapper.svelte-1c80pjc {display:flex;flex-direction:column;gap:10px;min-height:100%;}.loading-placeholder.svelte-1c80pjc {display:flex;justify-content:center;align-items:center;height:100%;}.chat-body.svelte-1c80pjc {display:flex;flex-direction:column;gap:10px;overflow-y:auto;height:100%;padding:10px;}.chat-body.svelte-1c80pjc::-webkit-scrollbar {width:8px;}.chat-body.svelte-1c80pjc * {--bs-table-color: #333333;--bs-table-striped-color: #333333;--bs-link-color-rgb: 41, 93, 207;}.chat-body.svelte-1c80pjc li {color:inherit;}.chat-body.svelte-1c80pjc table {min-width:auto;}.chat-body.svelte-1c80pjc::-webkit-scrollbar-track {background:rgba(255, 255, 255, 0.2); /* Sfondo semi-trasparente */border-radius:10px;}.chat-body.svelte-1c80pjc::-webkit-scrollbar-thumb {background:rgba(\r
9828
9828
  255,\r
9829
9829
  255,\r
9830
9830
  255,\r
9831
9831
  0.5\r
9832
- ); /* Colore del "pollice" della scrollbar */border-radius:10px;transition:0.3s;}.chat-body.svelte-2fpzuh::-webkit-scrollbar-thumb:hover {background:rgba(255, 255, 255, 0.8); /* Più visibile quando hoverata */}.message-sent.svelte-2fpzuh {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-2fpzuh {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-2fpzuh {padding:10px;font-size:16px;}.attachments-container.svelte-2fpzuh {display:flex;flex-direction:column;width:80%;height:35px;}.play-button.svelte-2fpzuh {transition:opacity 200ms;opacity:0;background-color:white;color:#295dcf;transition:200ms;}.play-button.svelte-2fpzuh:hover {background-color:#e9ecef;translate:0 -1px;}.sources-toggle-btn.svelte-2fpzuh {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-2fpzuh:hover {background:rgba(255, 255, 255, 0.25);border-color:rgba(255, 255, 255, 0.5);}.sources-toggle-btn.svelte-2fpzuh i:where(.svelte-2fpzuh) {font-size:12px;transition:transform 200ms;}.copy-button.svelte-2fpzuh {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-2fpzuh:hover {background:rgba(255, 255, 255, 0.25);border-color:rgba(255, 255, 255, 0.5);}.agent-badge.svelte-2fpzuh {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-2fpzuh i:where(.svelte-2fpzuh) {font-size:14px;opacity:0.9;}.message-plus-play.svelte-2fpzuh {display:flex;justify-content:flex-start;align-items:center;gap:5px;}.message-plus-play.svelte-2fpzuh:hover .play-button:where(.svelte-2fpzuh) {opacity:1;}.loading.svelte-2fpzuh {display:flex;justify-content:start;align-items:center;padding-left:10px;}`
9832
+ ); /* 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;}`
9833
9833
  };
9834
9834
  function io(t, e) {
9835
9835
  re(e, !0), ue(t, Og);
9836
- 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 = J(void 0), h = J(I(new Audio())), p = J(!1), w = J(I({})), m = J(I({})), S = J(I(n())), x = J(null), _ = J(!0), z = J(!1), F = J(!1), E = J(I(u())), L = J(!1);
9836
+ 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 = J(void 0), p = J(I(new Audio())), h = J(!1), w = J(I({})), m = J(I({})), S = J(I(n())), x = J(null), _ = J(!0), z = J(!1), F = J(!1), E = J(I(u())), L = J(!1);
9837
9837
  const A = async () => {
9838
9838
  await Br(), f(d) && (f(d).scrollTop = f(d).scrollHeight);
9839
9839
  }, N = async () => {
@@ -9844,28 +9844,28 @@ function io(t, e) {
9844
9844
  f(F) && b(z, !0);
9845
9845
  }, Fe = () => {
9846
9846
  f(F) && (b(S, I(f(x) ?? n())), b(x, null), b(_, !0), b(F, !1), b(L, !1));
9847
- }, Ae = (j) => {
9848
- Is.getAudio(j.content, c()).then((ee) => {
9849
- b(h, I(new Audio(ee))), f(h).play(), b(p, !0), f(h).onended = () => {
9850
- b(p, !1);
9847
+ }, Ae = (R) => {
9848
+ Is.getAudio(R.content, c()).then((ee) => {
9849
+ b(p, I(new Audio(ee))), f(p).play(), b(h, !0), f(p).onended = () => {
9850
+ b(h, !1);
9851
9851
  };
9852
9852
  });
9853
- }, ge = async (j, ee) => {
9854
- const Se = j.html ?? xe.parseInline(j.content), Ee = document.createElement("div");
9853
+ }, ge = async (R, ee) => {
9854
+ const Se = R.html ?? xe.parseInline(R.content), Ee = document.createElement("div");
9855
9855
  Ee.innerHTML = Se;
9856
9856
  const De = Ee.innerHTML, Ce = Ee.textContent || Ee.innerText || "";
9857
9857
  try {
9858
- const Re = new Blob([De], { type: "text/html" }), Ue = new Blob([Ce], { type: "text/plain" }), ke = new ClipboardItem({ "text/html": Re, "text/plain": Ue });
9859
- await navigator.clipboard.write([ke]), f(m)[ee] = /* @__PURE__ */ hi(), setTimeout(
9858
+ const je = new Blob([De], { type: "text/html" }), Ue = new Blob([Ce], { type: "text/plain" }), ke = new ClipboardItem({ "text/html": je, "text/plain": Ue });
9859
+ await navigator.clipboard.write([ke]), f(m)[ee] = /* @__PURE__ */ pi(), setTimeout(
9860
9860
  () => {
9861
9861
  f(m)[ee] = "";
9862
9862
  },
9863
9863
  2e3
9864
9864
  );
9865
- } catch (Re) {
9866
- console.error("Errore durante la copia:", Re);
9865
+ } catch (je) {
9866
+ console.error("Errore durante la copia:", je);
9867
9867
  try {
9868
- await navigator.clipboard.writeText(Ce), f(m)[ee] = /* @__PURE__ */ hi(), setTimeout(
9868
+ await navigator.clipboard.writeText(Ce), f(m)[ee] = /* @__PURE__ */ pi(), setTimeout(
9869
9869
  () => {
9870
9870
  f(m)[ee] = "";
9871
9871
  },
@@ -9887,11 +9887,11 @@ function io(t, e) {
9887
9887
  });
9888
9888
  var fe = Dg(), We = y(fe);
9889
9889
  {
9890
- var Ze = (j) => {
9891
- var ee = jg(), Se = O(y(ee), 2);
9890
+ var Ze = (R) => {
9891
+ var ee = Rg(), Se = O(y(ee), 2);
9892
9892
  Qe(Se, 17, () => f(S), Ve, (ke, W, ve) => {
9893
- var ce = Ig(), he = y(ce), me = y(he), je = y(me), et = y(je);
9894
- ss(et, () => f(W).html ?? xe.parseInline(f(W).content), !1, !1), k(je), k(me);
9893
+ var ce = Ig(), pe = y(ce), me = y(pe), Re = y(me), et = y(Re);
9894
+ ss(et, () => f(W).html ?? xe.parseInline(f(W).content), !1, !1), k(Re), k(me);
9895
9895
  var Oe = O(me, 2);
9896
9896
  {
9897
9897
  var Pe = (Z) => {
@@ -9899,13 +9899,13 @@ function io(t, e) {
9899
9899
  {
9900
9900
  var P = (te) => {
9901
9901
  var $e = yg();
9902
- $e.__click = [kg, h, p], D((Te) => M($e, "title", Te), [() => /* @__PURE__ */ Ku()]), T(te, $e);
9902
+ $e.__click = [kg, p, h], D((Te) => M($e, "title", Te), [() => /* @__PURE__ */ Ku()]), T(te, $e);
9903
9903
  }, G = (te) => {
9904
9904
  var $e = $g();
9905
9905
  $e.__click = [zg, Ae, W], D((Te) => M($e, "title", Te), [() => /* @__PURE__ */ Qu()]), T(te, $e);
9906
9906
  };
9907
9907
  K($, (te) => {
9908
- f(p) ? te(P) : te(G, !1);
9908
+ f(h) ? te(P) : te(G, !1);
9909
9909
  });
9910
9910
  }
9911
9911
  T(Z, Q);
@@ -9914,8 +9914,8 @@ function io(t, e) {
9914
9914
  f(W).content != "" && !f(W).sentByUser && Z(Pe);
9915
9915
  });
9916
9916
  }
9917
- k(he);
9918
- var Me = O(he, 2), tt = y(Me), Ye = y(tt);
9917
+ k(pe);
9918
+ var Me = O(pe, 2), tt = y(Me), Ye = y(tt);
9919
9919
  {
9920
9920
  var Be = (Z) => {
9921
9921
  var Q = /* @__PURE__ */ Ne(() => f(w)[ve] || !1);
@@ -9946,7 +9946,7 @@ function io(t, e) {
9946
9946
  var X = (Z) => {
9947
9947
  var Q = Tg(), $ = O(y(Q), 2), P = y($, !0);
9948
9948
  k($), k(Q), D((G) => _e(P, G), [
9949
- () => pi(f(W).agentUsed)
9949
+ () => hi(f(W).agentUsed)
9950
9950
  ]), T(Z, Q);
9951
9951
  };
9952
9952
  K(H, (Z) => {
@@ -9963,7 +9963,7 @@ function io(t, e) {
9963
9963
  var G = O($, 2);
9964
9964
  k(Q), D(
9965
9965
  (te) => {
9966
- _e(P, `${te ?? ""} (${f(W).attachments.length ?? ""})`), nt(G, `${`fa-solid fa-chevron-${f(w)[ve] ? "up" : "down"}` ?? ""} svelte-2fpzuh`);
9966
+ _e(P, `${te ?? ""} (${f(W).attachments.length ?? ""})`), nt(G, `${`fa-solid fa-chevron-${f(w)[ve] ? "up" : "down"}` ?? ""} svelte-1c80pjc`);
9967
9967
  },
9968
9968
  [() => /* @__PURE__ */ Gu()]
9969
9969
  ), T(Z, Q);
@@ -9989,7 +9989,7 @@ function io(t, e) {
9989
9989
  }
9990
9990
  k(ae), k(B), k(tt), k(Me), k(ce), D(
9991
9991
  (Z) => {
9992
- nt(me, Ar(f(W).sentByUser ? "message-sent" : "message-received"), "svelte-2fpzuh"), M(Me, "style", `justify-content: ${(f(W).sentByUser ? "flex-end" : "flex-start") ?? ""}`), M(B, "style", `width: 100%; align-items: flex-start; justify-content: ${(f(W).sentByUser ? "flex-end" : "flex-start") ?? ""}`), M(ae, "title", Z);
9992
+ nt(me, Ar(f(W).sentByUser ? "message-sent" : "message-received"), "svelte-1c80pjc"), M(Me, "style", `justify-content: ${(f(W).sentByUser ? "flex-end" : "flex-start") ?? ""}`), M(B, "style", `width: 100%; align-items: flex-start; justify-content: ${(f(W).sentByUser ? "flex-end" : "flex-start") ?? ""}`), M(ae, "title", Z);
9993
9993
  },
9994
9994
  [
9995
9995
  () => f(m)[ve] || /* @__PURE__ */ sd()
@@ -9999,9 +9999,9 @@ function io(t, e) {
9999
9999
  var Ee = O(Se, 2);
10000
10000
  {
10001
10001
  var De = (ke) => {
10002
- var W = Ag(), ve = y(W), ce = y(ve), he = y(ce), me = y(he);
10003
- ss(me, i, !1, !1), k(he), k(ce);
10004
- var je = O(ce, 2);
10002
+ var W = Ag(), ve = y(W), ce = y(ve), pe = y(ce), me = y(pe);
10003
+ ss(me, i, !1, !1), k(pe), k(ce);
10004
+ var Re = O(ce, 2);
10005
10005
  {
10006
10006
  var et = (X) => {
10007
10007
  Xt(X, {
@@ -10011,7 +10011,7 @@ function io(t, e) {
10011
10011
  color: "white"
10012
10012
  });
10013
10013
  };
10014
- K(je, (X) => {
10014
+ K(Re, (X) => {
10015
10015
  r() && X(et);
10016
10016
  });
10017
10017
  }
@@ -10043,23 +10043,23 @@ function io(t, e) {
10043
10043
  });
10044
10044
  }
10045
10045
  var Ye = O(Me, 2), Be = y(Ye), B = O(y(Be), 2), H = y(B, !0);
10046
- k(B), k(Be), k(Ye), k(Pe), k(Oe), k(W), D((X) => _e(H, X), [() => pi(o())]), T(ke, W);
10046
+ k(B), k(Be), k(Ye), k(Pe), k(Oe), k(W), D((X) => _e(H, X), [() => hi(o())]), T(ke, W);
10047
10047
  }, Ce = (ke) => {
10048
10048
  var W = Tt(), ve = ft(W);
10049
10049
  {
10050
- var ce = (he) => {
10051
- var me = Lg(), je = y(me);
10052
- Xt(je, {
10050
+ var ce = (pe) => {
10051
+ var me = Lg(), Re = y(me);
10052
+ Xt(Re, {
10053
10053
  icon: "svg-spinners:3-dots-bounce",
10054
10054
  width: "25px",
10055
10055
  height: "25px",
10056
10056
  color: "white"
10057
- }), k(me), T(he, me);
10057
+ }), k(me), T(pe, me);
10058
10058
  };
10059
10059
  K(
10060
10060
  ve,
10061
- (he) => {
10062
- r() && he(ce);
10061
+ (pe) => {
10062
+ r() && pe(ce);
10063
10063
  },
10064
10064
  !0
10065
10065
  );
@@ -10070,91 +10070,91 @@ function io(t, e) {
10070
10070
  i().length > 0 ? ke(De) : ke(Ce, !1);
10071
10071
  });
10072
10072
  }
10073
- var Re = O(Ee, 2);
10073
+ var je = O(Ee, 2);
10074
10074
  {
10075
10075
  var Ue = (ke) => {
10076
- var W = Rg(), ve = y(W, !0);
10076
+ var W = jg(), ve = y(W, !0);
10077
10077
  k(W), D(() => _e(ve, s())), T(ke, W);
10078
10078
  };
10079
- K(Re, (ke) => {
10079
+ K(je, (ke) => {
10080
10080
  s() != "" && ke(Ue);
10081
10081
  });
10082
10082
  }
10083
- k(ee), Wt("outroend", ee, le), xt(1, ee, () => Bt, () => ({ duration: 100, delay: 100 })), xt(2, ee, () => Bt, () => ({ duration: 100 })), T(j, ee);
10083
+ k(ee), Wt("outroend", ee, le), xt(1, ee, () => Bt, () => ({ duration: 100, delay: 100 })), xt(2, ee, () => Bt, () => ({ duration: 100 })), T(R, ee);
10084
10084
  };
10085
- K(We, (j) => {
10086
- f(_) && j(Ze);
10085
+ K(We, (R) => {
10086
+ f(_) && R(Ze);
10087
10087
  });
10088
10088
  }
10089
10089
  var ut = O(We, 2);
10090
10090
  {
10091
- var Ke = (j) => {
10091
+ var Ke = (R) => {
10092
10092
  var ee = Fg(), Se = y(ee);
10093
10093
  Xt(Se, {
10094
10094
  icon: "svg-spinners:270-ring-with-bg",
10095
10095
  width: "50px",
10096
10096
  height: "50px",
10097
10097
  color: "white"
10098
- }), k(ee), Wt("outroend", ee, Fe), xt(1, ee, () => Bt, () => ({ duration: 100, delay: 200 })), xt(2, ee, () => Bt, () => ({ duration: 100 })), T(j, ee);
10098
+ }), k(ee), Wt("outroend", ee, Fe), xt(1, ee, () => Bt, () => ({ duration: 100, delay: 200 })), xt(2, ee, () => Bt, () => ({ duration: 100 })), T(R, ee);
10099
10099
  };
10100
- K(ut, (j) => {
10101
- f(z) && j(Ke);
10100
+ K(ut, (R) => {
10101
+ f(z) && R(Ke);
10102
10102
  });
10103
10103
  }
10104
- return k(fe), as(fe, (j) => b(d, j), () => f(d)), T(t, fe), se({
10104
+ return k(fe), as(fe, (R) => b(d, R), () => f(d)), T(t, fe), se({
10105
10105
  get messages() {
10106
10106
  return n();
10107
10107
  },
10108
- set messages(j) {
10109
- n(j), v();
10108
+ set messages(R) {
10109
+ n(R), v();
10110
10110
  },
10111
10111
  get loading() {
10112
10112
  return r();
10113
10113
  },
10114
- set loading(j) {
10115
- r(j), v();
10114
+ set loading(R) {
10115
+ r(R), v();
10116
10116
  },
10117
10117
  get error() {
10118
10118
  return s();
10119
10119
  },
10120
- set error(j) {
10121
- s(j), v();
10120
+ set error(R) {
10121
+ s(R), v();
10122
10122
  },
10123
10123
  get streamMessage() {
10124
10124
  return i();
10125
10125
  },
10126
- set streamMessage(j) {
10127
- i(j), v();
10126
+ set streamMessage(R) {
10127
+ i(R), v();
10128
10128
  },
10129
10129
  get streamAttachments() {
10130
10130
  return a();
10131
10131
  },
10132
- set streamAttachments(j) {
10133
- a(j), v();
10132
+ set streamAttachments(R) {
10133
+ a(R), v();
10134
10134
  },
10135
10135
  get streamedAgent() {
10136
10136
  return o();
10137
10137
  },
10138
- set streamedAgent(j) {
10139
- o(j), v();
10138
+ set streamedAgent(R) {
10139
+ o(R), v();
10140
10140
  },
10141
10141
  get languageSelected() {
10142
10142
  return c();
10143
10143
  },
10144
- set languageSelected(j) {
10145
- c(j), v();
10144
+ set languageSelected(R) {
10145
+ c(R), v();
10146
10146
  },
10147
10147
  get userLevel() {
10148
10148
  return l();
10149
10149
  },
10150
- set userLevel(j) {
10151
- l(j), v();
10150
+ set userLevel(R) {
10151
+ l(R), v();
10152
10152
  },
10153
10153
  get loadingChat() {
10154
10154
  return u();
10155
10155
  },
10156
- set loadingChat(j) {
10157
- u(j), v();
10156
+ set loadingChat(R) {
10157
+ u(R), v();
10158
10158
  }
10159
10159
  });
10160
10160
  }
@@ -10176,9 +10176,9 @@ oe(
10176
10176
  [],
10177
10177
  !0
10178
10178
  );
10179
- var Pg = /* @__PURE__ */ R('<div class="loader-container svelte-1sgnsaj"><div class="loader svelte-1sgnsaj"></div></div>'), Mg = (t, e, n, r) => {
10179
+ var Pg = /* @__PURE__ */ j('<div class="loader-container svelte-1sgnsaj"><div class="loader svelte-1sgnsaj"></div></div>'), Mg = (t, e, n, r) => {
10180
10180
  e()._id != f(n)._id && r(f(n)._id);
10181
- }, Ng = (t, e, n) => e(f(n)._id, f(n).title), Ug = /* @__PURE__ */ R('<div class="chat svelte-1sgnsaj"><button class="chat-button svelte-1sgnsaj"><span style="font-weight: bold;" class="svelte-1sgnsaj"> </span></button> <button class="chat-delete svelte-1sgnsaj" aria-label="Delete chat"><i class="fa-solid fa-trash-can svelte-1sgnsaj"></i></button></div>'), Bg = /* @__PURE__ */ R('<div class="history svelte-1sgnsaj"><span class="title svelte-1sgnsaj"> </span> <div class="chats svelte-1sgnsaj"><!></div></div>'), qg = /* @__PURE__ */ R('<div class="external-div svelte-1sgnsaj"><!></div>');
10181
+ }, Ng = (t, e, n) => e(f(n)._id, f(n).title), Ug = /* @__PURE__ */ j('<div class="chat svelte-1sgnsaj"><button class="chat-button svelte-1sgnsaj"><span style="font-weight: bold;" class="svelte-1sgnsaj"> </span></button> <button class="chat-delete svelte-1sgnsaj" aria-label="Delete chat"><i class="fa-solid fa-trash-can svelte-1sgnsaj"></i></button></div>'), Bg = /* @__PURE__ */ j('<div class="history svelte-1sgnsaj"><span class="title svelte-1sgnsaj"> </span> <div class="chats svelte-1sgnsaj"><!></div></div>'), qg = /* @__PURE__ */ j('<div class="external-div svelte-1sgnsaj"><!></div>');
10182
10182
  const Hg = {
10183
10183
  hash: "svelte-1sgnsaj",
10184
10184
  code: `.history.svelte-1sgnsaj {position:absolute;top:0;left:-250px;width:250px;height:100%; /* Cambiato da 600px a 100% */border-radius:15px;display:flex;flex-direction:column;margin:0; /* Rimosso il margin */padding:10px;background:#3c4450;box-shadow:0 0 10px rgba(0, 0, 0, 0.1);z-index:-1; /* Cambiato da 999 a -1 */}.title.svelte-1sgnsaj {font-size:1.5rem;color:#fff;margin:10px;text-align:left;}.chats.svelte-1sgnsaj {display:flex;flex-direction:column;padding:10px;overflow-y:scroll;overflow-x:hidden;height:100%;gap:20px;}.chat.svelte-1sgnsaj {background:rgba(255, 255, 255, 0.2);display:flex;justify-content:space-between;align-items:center;border-radius:10px;transition:200ms;width:100%;}.chat.svelte-1sgnsaj > .chat-button:where(.svelte-1sgnsaj) {background:transparent;padding:5px 10px;border-radius:10px;cursor:pointer;transition:200ms;text-align:left;border:none;font-size:15px;width:calc(95% - 35px);}.chat.svelte-1sgnsaj > .chat-delete:where(.svelte-1sgnsaj) {display:flex;justify-content:center;align-items:center;background:transparent;border-radius:100%;cursor:pointer;transition:200ms;border:none;height:35px;width:35px;color:white;margin:3px;}.chat.svelte-1sgnsaj:hover {scale:1.02;}.chat-button.svelte-1sgnsaj:hover {background:rgba(255, 255, 255, 0.2);}.chat-delete.svelte-1sgnsaj:hover {background:rgba(255, 255, 255, 0.2);}.chat.svelte-1sgnsaj > button:where(.svelte-1sgnsaj) > span:where(.svelte-1sgnsaj) {color:white;text-shadow:0 0 5px rgba(0, 0, 0, 0.1);}.chats.svelte-1sgnsaj::-webkit-scrollbar {width:8px;}.chats.svelte-1sgnsaj::-webkit-scrollbar-track {background:rgba(255, 255, 255, 0.2); /* Sfondo semi-trasparente */border-radius:10px;}.chats.svelte-1sgnsaj::-webkit-scrollbar-thumb {background:rgba(\r
@@ -10210,7 +10210,7 @@ function ao(t, e) {
10210
10210
  s(s().filter((x) => x._id !== m)), r()._id === m && l()();
10211
10211
  });
10212
10212
  };
10213
- var h = qg(), p = y(h);
10213
+ var p = qg(), h = y(p);
10214
10214
  {
10215
10215
  var w = (m) => {
10216
10216
  var S = Bg(), x = y(S), _ = y(x, !0);
@@ -10239,11 +10239,11 @@ function ao(t, e) {
10239
10239
  }
10240
10240
  k(z), k(S), D((A) => _e(_, A), [() => /* @__PURE__ */ Sa()]), xt(3, S, () => Xl, () => ({ duration: 600 })), T(m, S);
10241
10241
  };
10242
- K(p, (m) => {
10242
+ K(h, (m) => {
10243
10243
  n() && m(w);
10244
10244
  });
10245
10245
  }
10246
- return k(h), T(t, h), se({
10246
+ return k(p), T(t, p), se({
10247
10247
  get showHistory() {
10248
10248
  return n();
10249
10249
  },
@@ -10314,14 +10314,14 @@ oe(
10314
10314
  const Yg = (t, e, n, r, s) => {
10315
10315
  b(e, "auto"), n(), r(), b(s, I({}));
10316
10316
  };
10317
- var Gg = /* @__PURE__ */ R('<div class="drag-overlay svelte-1uxkxb0"><div class="drag-content svelte-1uxkxb0"><!> <p class="svelte-1uxkxb0"> </p></div></div>'), Jg = /* @__PURE__ */ R('<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>'), Wg = /* @__PURE__ */ R('<div class="loading-placeholder svelte-1uxkxb0"><!></div>'), Zg = /* @__PURE__ */ R('<!> <div class="resize-border-left svelte-1uxkxb0"></div> <div class="resize-border-top svelte-1uxkxb0"></div> <div class="resize-handle svelte-1uxkxb0"><!></div> <!> <!> <!>', 1), Xg = /* @__PURE__ */ R('<div class="chat svelte-1uxkxb0"><!> <!> <!></div>'), Vg = (t, e) => b(e, !f(e)), Qg = (t, e) => e("normative"), Kg = (t, e) => e("suite"), em = /* @__PURE__ */ R('<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>'), tm = /* @__PURE__ */ R('<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>');
10317
+ var Gg = /* @__PURE__ */ j('<div class="drag-overlay svelte-1uxkxb0"><div class="drag-content svelte-1uxkxb0"><!> <p class="svelte-1uxkxb0"> </p></div></div>'), Jg = /* @__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>'), Wg = /* @__PURE__ */ j('<div class="loading-placeholder svelte-1uxkxb0"><!></div>'), Zg = /* @__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), Xg = /* @__PURE__ */ j('<div class="chat svelte-1uxkxb0"><!> <!> <!></div>'), Vg = (t, e) => b(e, !f(e)), Qg = (t, e) => e("normative"), Kg = (t, e) => e("suite"), em = /* @__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>'), tm = /* @__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>');
10318
10318
  const nm = {
10319
10319
  hash: "svelte-1uxkxb0",
10320
10320
  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;}"
10321
10321
  };
10322
10322
  function oo(t, e) {
10323
10323
  re(e, !0), ue(t, nm);
10324
- let n = J(!1), r = J(!1), s = J("it"), i = J(""), a = J(0), o = J(null), c = J(I([])), l = J(I([])), u = J(!1), d = J(!0), h = J(I(new Audio())), p = J(!0), w = J(""), m = J(""), S = J(I([])), x = J(0), _ = J(null), z = J(!1), F = J(0), E = J("");
10324
+ let n = J(!1), r = J(!1), s = J("it"), i = J(""), a = J(0), o = J(null), c = J(I([])), l = J(I([])), u = J(!1), d = J(!0), p = J(I(new Audio())), h = J(!0), w = J(""), m = J(""), S = J(I([])), x = J(0), _ = J(null), z = J(!1), F = J(0), E = J("");
10325
10325
  const L = (B, H, X) => {
10326
10326
  b(m, f(m) + B), b(S, I(H)), b(x, I(X));
10327
10327
  };
@@ -10350,11 +10350,11 @@ function oo(t, e) {
10350
10350
  if (b(o, I(await Pt.getChat(f(o)._id))), await ke(), b(m, ""), b(S, I([])), b(l, I([
10351
10351
  ...f(l),
10352
10352
  f(o).messages[f(o).messages.length - 1]
10353
- ])), !f(p)) {
10353
+ ])), !f(h)) {
10354
10354
  const Le = f(o).messages[f(o).messages.length - 1];
10355
10355
  try {
10356
10356
  const Ge = await Is.getAudio(Le.content, f(s));
10357
- b(h, I(new Audio(Ge))), await f(h).play();
10357
+ b(p, I(new Audio(Ge))), await f(p).play();
10358
10358
  } catch (Ge) {
10359
10359
  console.error("Error playing audio:", Ge);
10360
10360
  }
@@ -10376,7 +10376,7 @@ function oo(t, e) {
10376
10376
  Ke.includes(f(A)) && (B.preventDefault(), B.stopPropagation());
10377
10377
  }, ut = (B) => {
10378
10378
  Ke.includes(f(A)) && (B.preventDefault(), B.stopPropagation(), qn(fe, -1), f(fe) === 0 && b(z, !1));
10379
- }, Ke = ["auto", "audit_handler"], j = async (B) => {
10379
+ }, Ke = ["auto", "audit_handler"], R = async (B) => {
10380
10380
  var ie, ae;
10381
10381
  if (!Ke.includes(f(A))) return;
10382
10382
  if (B.preventDefault(), B.stopPropagation(), b(z, !1), b(fe, 0), !N.includes(f(A))) {
@@ -10415,15 +10415,15 @@ function oo(t, e) {
10415
10415
  }
10416
10416
  };
10417
10417
  It(() => {
10418
- f(p) && f(h).pause();
10418
+ f(h) && f(p).pause();
10419
10419
  });
10420
- let Se = !1, Ee, De, Ce, Re;
10420
+ let Se = !1, Ee, De, Ce, je;
10421
10421
  function Ue(B) {
10422
10422
  const H = B.target;
10423
10423
  if (H.closest(".resize-handle") || H.classList.contains("resize-border-left") || H.classList.contains("resize-border-top")) {
10424
10424
  B.preventDefault(), B.stopPropagation(), Se = !0, Ee = B.clientX, De = B.clientY;
10425
10425
  const ye = document.querySelector(".chat");
10426
- Ce = ye.offsetWidth, Re = ye.offsetHeight, ye.classList.add("no-select");
10426
+ Ce = ye.offsetWidth, je = ye.offsetHeight, ye.classList.add("no-select");
10427
10427
  const ie = H.closest(".resize-handle"), ae = H.classList.contains("resize-border-left"), Le = H.classList.contains("resize-border-top"), Ge = (Z) => {
10428
10428
  if (!Se) return;
10429
10429
  Z.preventDefault();
@@ -10432,10 +10432,10 @@ function oo(t, e) {
10432
10432
  const G = Ee - Z.clientX, te = Math.min(Math.max(Ce + G, 300), $);
10433
10433
  Q.style.width = `${te}px`;
10434
10434
  } else if (Le) {
10435
- const G = De - Z.clientY, te = Math.min(Math.max(Re + G, 400), P);
10435
+ const G = De - Z.clientY, te = Math.min(Math.max(je + G, 400), P);
10436
10436
  Q.style.height = `${te}px`;
10437
10437
  } else if (ie) {
10438
- const G = Ee - Z.clientX, te = De - Z.clientY, $e = Math.min(Math.max(Ce + G, 300), $), Te = Math.min(Math.max(Re + te, 400), P);
10438
+ const G = Ee - Z.clientX, te = De - Z.clientY, $e = Math.min(Math.max(Ce + G, 300), $), Te = Math.min(Math.max(je + te, 400), P);
10439
10439
  Q.style.width = `${$e}px`, Q.style.height = `${Te}px`;
10440
10440
  }
10441
10441
  }, vt = () => {
@@ -10456,7 +10456,7 @@ function oo(t, e) {
10456
10456
  },
10457
10457
  450
10458
10458
  )) : b(n, !1) : (b(n, !0), b(ve, !0), await ke(), b(ve, !1));
10459
- }, he = () => {
10459
+ }, pe = () => {
10460
10460
  b(o, I(new ln(
10461
10461
  "",
10462
10462
  "",
@@ -10472,7 +10472,7 @@ function oo(t, e) {
10472
10472
  ]
10473
10473
  ))), b(m, ""), b(l, I(f(o).messages)), b(w, "");
10474
10474
  }, me = (B) => {
10475
- f(A) !== B && (b(A, I(B)), he()), ce(), b(Y, I({}));
10475
+ f(A) !== B && (b(A, I(B)), pe()), ce(), b(Y, I({}));
10476
10476
  };
10477
10477
  Lr(async () => {
10478
10478
  try {
@@ -10504,7 +10504,7 @@ function oo(t, e) {
10504
10504
  console.error("Failed to load username", B), b(w, I(/* @__PURE__ */ td())), b(d, !1);
10505
10505
  }
10506
10506
  });
10507
- var je = tm(), et = y(je);
10507
+ var Re = tm(), et = y(Re);
10508
10508
  {
10509
10509
  var Oe = (B) => {
10510
10510
  var H = Xg();
@@ -10572,7 +10572,7 @@ function oo(t, e) {
10572
10572
  var P = (G) => {
10573
10573
  var te = Zg(), $e = ft(te);
10574
10574
  ao($e, {
10575
- newChat: he,
10575
+ newChat: pe,
10576
10576
  get showHistory() {
10577
10577
  return f(r);
10578
10578
  },
@@ -10628,7 +10628,7 @@ function oo(t, e) {
10628
10628
  }), k(Te);
10629
10629
  var Je = O(Te, 2);
10630
10630
  Ca(Je, {
10631
- newChat: he,
10631
+ newChat: pe,
10632
10632
  get show() {
10633
10633
  return f(n);
10634
10634
  },
@@ -10648,10 +10648,10 @@ function oo(t, e) {
10648
10648
  b(o, I(q));
10649
10649
  },
10650
10650
  get muted() {
10651
- return f(p);
10651
+ return f(h);
10652
10652
  },
10653
10653
  set muted(q) {
10654
- b(p, I(q));
10654
+ b(h, I(q));
10655
10655
  },
10656
10656
  get languageSelected() {
10657
10657
  return f(s);
@@ -10786,7 +10786,7 @@ function oo(t, e) {
10786
10786
  f(d) ? Z(Ge) : Z(vt, !1);
10787
10787
  });
10788
10788
  }
10789
- k(H), Wt("dragenter", H, We), Wt("dragover", H, Ze), Wt("dragleave", H, ut), Wt("drop", H, j), xt(3, H, () => Wl, () => ({ y: 50, duration: 500 })), T(B, H);
10789
+ k(H), Wt("dragenter", H, We), Wt("dragover", H, Ze), Wt("dragleave", H, ut), Wt("drop", H, R), xt(3, H, () => Wl, () => ({ y: 50, duration: 500 })), T(B, H);
10790
10790
  };
10791
10791
  K(et, (B) => {
10792
10792
  f(n) && B(Oe);
@@ -10796,7 +10796,7 @@ function oo(t, e) {
10796
10796
  Pe.__click = [
10797
10797
  Yg,
10798
10798
  A,
10799
- he,
10799
+ pe,
10800
10800
  ce,
10801
10801
  Y
10802
10802
  ];
@@ -10828,12 +10828,12 @@ function oo(t, e) {
10828
10828
  f(n) || B(Be);
10829
10829
  });
10830
10830
  }
10831
- k(je), D(
10831
+ k(Re), D(
10832
10832
  (B) => {
10833
10833
  nt(Pe, `${`btn ${f(n) ? "aks-btn-answer" : "btn-primary"}` ?? ""} svelte-1uxkxb0`), _e(tt, B);
10834
10834
  },
10835
10835
  [() => /* @__PURE__ */ Au()]
10836
- ), T(t, je), se();
10836
+ ), T(t, Re), se();
10837
10837
  }
10838
10838
  nn(["mousedown", "click"]);
10839
10839
  oe(oo, {}, [], [], !0);
@@ -10842,7 +10842,7 @@ function rm(t, e) {
10842
10842
  let n = g(e, "envId", 23, () => {
10843
10843
  }), r = g(e, "token", 23, () => {
10844
10844
  }), s = g(e, "lang", 7, "it");
10845
- return document.cookie = `akb-chat-envid=${n()}`, document.cookie = `akb-chat-token=${r()}`, Kl(Qh(s())), oo(t, {}), se({
10845
+ return document.cookie = `akb-chat-envid=${n()}`, document.cookie = `akb-chat-token=${r()}`, Kl(Qp(s())), oo(t, {}), se({
10846
10846
  get envId() {
10847
10847
  return n();
10848
10848
  },