@telia-ace/ace-chat-flamingo 1.1.123-rc.0 → 1.1.123-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +288 -229
  2. package/index.mjs +893 -798
  3. package/package.json +3 -3
package/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- var fl = Object.defineProperty;
2
- var gl = (n, e, t) => e in n ? fl(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var A = (n, e, t) => gl(n, typeof e != "symbol" ? e + "" : e, t);
1
+ var gl = Object.defineProperty;
2
+ var ml = (n, e, t) => e in n ? gl(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var A = (n, e, t) => ml(n, typeof e != "symbol" ? e + "" : e, t);
4
4
  var Ri = function(n, e) {
5
5
  return Ri = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) {
6
6
  t.__proto__ = i;
@@ -8,7 +8,7 @@ var Ri = function(n, e) {
8
8
  for (var s in i) Object.prototype.hasOwnProperty.call(i, s) && (t[s] = i[s]);
9
9
  }, Ri(n, e);
10
10
  };
11
- function Le(n, e) {
11
+ function Ie(n, e) {
12
12
  if (typeof e != "function" && e !== null)
13
13
  throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
14
14
  Ri(n, e);
@@ -17,7 +17,7 @@ function Le(n, e) {
17
17
  }
18
18
  n.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
19
19
  }
20
- function ml(n, e, t, i) {
20
+ function vl(n, e, t, i) {
21
21
  function s(r) {
22
22
  return r instanceof t ? r : new t(function(o) {
23
23
  o(r);
@@ -139,7 +139,7 @@ function Xe(n, e, t) {
139
139
  function gt(n) {
140
140
  return this instanceof gt ? (this.v = n, this) : new gt(n);
141
141
  }
142
- function vl(n, e, t) {
142
+ function bl(n, e, t) {
143
143
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
144
144
  var i = t.apply(n, e || []), s, r = [];
145
145
  return s = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), a("next"), a("throw"), a("return", o), s[Symbol.asyncIterator] = function() {
@@ -152,8 +152,8 @@ function vl(n, e, t) {
152
152
  }
153
153
  function a(g, m) {
154
154
  i[g] && (s[g] = function($) {
155
- return new Promise(function(be, ae) {
156
- r.push([g, $, be, ae]) > 1 || l(g, $);
155
+ return new Promise(function($e, ce) {
156
+ r.push([g, $, $e, ce]) > 1 || l(g, $);
157
157
  });
158
158
  }, m && (s[g] = m(s[g])));
159
159
  }
@@ -177,7 +177,7 @@ function vl(n, e, t) {
177
177
  g(m), r.shift(), r.length && l(r[0][0], r[0][1]);
178
178
  }
179
179
  }
180
- function bl(n) {
180
+ function yl(n) {
181
181
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
182
182
  var e = n[Symbol.asyncIterator], t;
183
183
  return e ? e.call(n) : (n = typeof yt == "function" ? yt(n) : n[Symbol.iterator](), t = {}, i("next"), i("throw"), i("return"), t[Symbol.asyncIterator] = function() {
@@ -315,9 +315,9 @@ function Io(n) {
315
315
  function Cr(n) {
316
316
  E(n) ? n() : n.unsubscribe();
317
317
  }
318
- var yl = {
318
+ var $l = {
319
319
  Promise: void 0
320
- }, $l = {
320
+ }, wl = {
321
321
  setTimeout: function(n, e) {
322
322
  for (var t = [], i = 2; i < arguments.length; i++)
323
323
  t[i - 2] = arguments[i];
@@ -329,7 +329,7 @@ var yl = {
329
329
  delegate: void 0
330
330
  };
331
331
  function Po(n) {
332
- $l.setTimeout(function() {
332
+ wl.setTimeout(function() {
333
333
  throw n;
334
334
  });
335
335
  }
@@ -339,10 +339,10 @@ function wn(n) {
339
339
  n();
340
340
  }
341
341
  var ts = (function(n) {
342
- Le(e, n);
342
+ Ie(e, n);
343
343
  function e(t) {
344
344
  var i = n.call(this) || this;
345
- return i.isStopped = !1, t ? (i.destination = t, Io(t) && t.add(i)) : i.destination = kl, i;
345
+ return i.isStopped = !1, t ? (i.destination = t, Io(t) && t.add(i)) : i.destination = Sl, i;
346
346
  }
347
347
  return e.create = function(t, i, s) {
348
348
  return new Ii(t, i, s);
@@ -369,7 +369,7 @@ var ts = (function(n) {
369
369
  this.unsubscribe();
370
370
  }
371
371
  }, e;
372
- })(tn), wl = (function() {
372
+ })(tn), xl = (function() {
373
373
  function n(e) {
374
374
  this.partialObserver = e;
375
375
  }
@@ -401,27 +401,27 @@ var ts = (function(n) {
401
401
  }
402
402
  }, n;
403
403
  })(), Ii = (function(n) {
404
- Le(e, n);
404
+ Ie(e, n);
405
405
  function e(t, i, s) {
406
406
  var r = n.call(this) || this, o;
407
407
  return E(t) || !t ? o = {
408
408
  next: t ?? void 0,
409
409
  error: i ?? void 0,
410
410
  complete: s ?? void 0
411
- } : o = t, r.destination = new wl(o), r;
411
+ } : o = t, r.destination = new xl(o), r;
412
412
  }
413
413
  return e;
414
414
  })(ts);
415
415
  function mn(n) {
416
416
  Po(n);
417
417
  }
418
- function xl(n) {
418
+ function kl(n) {
419
419
  throw n;
420
420
  }
421
- var kl = {
421
+ var Sl = {
422
422
  closed: !0,
423
423
  next: En,
424
- error: xl,
424
+ error: kl,
425
425
  complete: En
426
426
  }, ns = (function() {
427
427
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
@@ -429,7 +429,7 @@ var kl = {
429
429
  function Ct(n) {
430
430
  return n;
431
431
  }
432
- function Sl(n) {
432
+ function Cl(n) {
433
433
  return n.length === 0 ? Ct : n.length === 1 ? n[0] : function(t) {
434
434
  return n.reduce(function(i, s) {
435
435
  return s(i);
@@ -444,7 +444,7 @@ var j = (function() {
444
444
  var t = new n();
445
445
  return t.source = this, t.operator = e, t;
446
446
  }, n.prototype.subscribe = function(e, t, i) {
447
- var s = this, r = El(e) ? e : new Ii(e, t, i);
447
+ var s = this, r = _l(e) ? e : new Ii(e, t, i);
448
448
  return wn(function() {
449
449
  var o = s, a = o.operator, l = o.source;
450
450
  r.add(a ? a.call(r, l) : l ? s._subscribe(r) : s._trySubscribe(r));
@@ -479,7 +479,7 @@ var j = (function() {
479
479
  }, n.prototype.pipe = function() {
480
480
  for (var e = [], t = 0; t < arguments.length; t++)
481
481
  e[t] = arguments[t];
482
- return Sl(e)(this);
482
+ return Cl(e)(this);
483
483
  }, n.prototype.toPromise = function(e) {
484
484
  var t = this;
485
485
  return e = Er(e), new e(function(i, s) {
@@ -498,20 +498,20 @@ var j = (function() {
498
498
  })();
499
499
  function Er(n) {
500
500
  var e;
501
- return (e = n ?? yl.Promise) !== null && e !== void 0 ? e : Promise;
502
- }
503
- function Cl(n) {
504
- return n && E(n.next) && E(n.error) && E(n.complete);
501
+ return (e = n ?? $l.Promise) !== null && e !== void 0 ? e : Promise;
505
502
  }
506
503
  function El(n) {
507
- return n && n instanceof ts || Cl(n) && Io(n);
504
+ return n && E(n.next) && E(n.error) && E(n.complete);
508
505
  }
509
506
  function _l(n) {
507
+ return n && n instanceof ts || El(n) && Io(n);
508
+ }
509
+ function Al(n) {
510
510
  return E(n == null ? void 0 : n.lift);
511
511
  }
512
- function se(n) {
512
+ function oe(n) {
513
513
  return function(e) {
514
- if (_l(e))
514
+ if (Al(e))
515
515
  return e.lift(function(t) {
516
516
  try {
517
517
  return n(t, this);
@@ -523,10 +523,10 @@ function se(n) {
523
523
  };
524
524
  }
525
525
  function Y(n, e, t, i, s) {
526
- return new Al(n, e, t, i, s);
526
+ return new Tl(n, e, t, i, s);
527
527
  }
528
- var Al = (function(n) {
529
- Le(e, n);
528
+ var Tl = (function(n) {
529
+ Ie(e, n);
530
530
  function e(t, i, s, r, o, a) {
531
531
  var l = n.call(this, t) || this;
532
532
  return l.onFinalize = o, l.shouldUnsubscribe = a, l._next = i ? function(c) {
@@ -560,12 +560,12 @@ var Al = (function(n) {
560
560
  n.prototype.unsubscribe.call(this), !i && ((t = this.onFinalize) === null || t === void 0 || t.call(this));
561
561
  }
562
562
  }, e;
563
- })(ts), Tl = Lo(function(n) {
563
+ })(ts), Ol = Lo(function(n) {
564
564
  return function() {
565
565
  n(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
566
566
  };
567
567
  }), P = (function(n) {
568
- Le(e, n);
568
+ Ie(e, n);
569
569
  function e() {
570
570
  var t = n.call(this) || this;
571
571
  return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
@@ -575,7 +575,7 @@ var Al = (function(n) {
575
575
  return i.operator = t, i;
576
576
  }, e.prototype._throwIfClosed = function() {
577
577
  if (this.closed)
578
- throw new Tl();
578
+ throw new Ol();
579
579
  }, e.prototype.next = function(t) {
580
580
  var i = this;
581
581
  wn(function() {
@@ -644,7 +644,7 @@ var Al = (function(n) {
644
644
  return new _r(t, i);
645
645
  }, e;
646
646
  })(j), _r = (function(n) {
647
- Le(e, n);
647
+ Ie(e, n);
648
648
  function e(t, i) {
649
649
  var s = n.call(this) || this;
650
650
  return s.destination = t, s.source = i, s;
@@ -662,8 +662,8 @@ var Al = (function(n) {
662
662
  var i, s;
663
663
  return (s = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(t)) !== null && s !== void 0 ? s : Ro;
664
664
  }, e;
665
- })(P), ue = (function(n) {
666
- Le(e, n);
665
+ })(P), de = (function(n) {
666
+ Ie(e, n);
667
667
  function e(t) {
668
668
  var i = n.call(this) || this;
669
669
  return i._value = t, i;
@@ -685,12 +685,12 @@ var Al = (function(n) {
685
685
  }, e.prototype.next = function(t) {
686
686
  n.prototype.next.call(this, this._value = t);
687
687
  }, e;
688
- })(P), Ol = {
688
+ })(P), Ll = {
689
689
  now: function() {
690
690
  return Date.now();
691
691
  }
692
- }, Ll = (function(n) {
693
- Le(e, n);
692
+ }, Rl = (function(n) {
693
+ Ie(e, n);
694
694
  function e(t, i) {
695
695
  return n.call(this) || this;
696
696
  }
@@ -707,8 +707,8 @@ var Al = (function(n) {
707
707
  return clearInterval(n);
708
708
  },
709
709
  delegate: void 0
710
- }, Rl = (function(n) {
711
- Le(e, n);
710
+ }, Il = (function(n) {
711
+ Ie(e, n);
712
712
  function e(t, i) {
713
713
  var s = n.call(this, t, i) || this;
714
714
  return s.scheduler = t, s.work = i, s.pending = !1, s;
@@ -749,15 +749,15 @@ var Al = (function(n) {
749
749
  this.work = this.state = this.scheduler = null, this.pending = !1, Cn(r, this), i != null && (this.id = this.recycleAsyncId(s, i, null)), this.delay = null, n.prototype.unsubscribe.call(this);
750
750
  }
751
751
  }, e;
752
- })(Ll), Tr = (function() {
752
+ })(Rl), Tr = (function() {
753
753
  function n(e, t) {
754
754
  t === void 0 && (t = n.now), this.schedulerActionCtor = e, this.now = t;
755
755
  }
756
756
  return n.prototype.schedule = function(e, t, i) {
757
757
  return t === void 0 && (t = 0), new this.schedulerActionCtor(this, e).schedule(i, t);
758
- }, n.now = Ol.now, n;
759
- })(), Il = (function(n) {
760
- Le(e, n);
758
+ }, n.now = Ll.now, n;
759
+ })(), Pl = (function(n) {
760
+ Ie(e, n);
761
761
  function e(t, i) {
762
762
  i === void 0 && (i = Tr.now);
763
763
  var s = n.call(this, t, i) || this;
@@ -781,11 +781,11 @@ var Al = (function(n) {
781
781
  throw s;
782
782
  }
783
783
  }, e;
784
- })(Tr), vp = new Il(Rl);
784
+ })(Tr), vp = new Pl(Il);
785
785
  var tt = new j(function(n) {
786
786
  return n.complete();
787
787
  });
788
- function Pl(n) {
788
+ function Ml(n) {
789
789
  return n && E(n.schedule);
790
790
  }
791
791
  function is(n) {
@@ -795,9 +795,9 @@ function Mo(n) {
795
795
  return E(is(n)) ? n.pop() : void 0;
796
796
  }
797
797
  function ss(n) {
798
- return Pl(is(n)) ? n.pop() : void 0;
798
+ return Ml(is(n)) ? n.pop() : void 0;
799
799
  }
800
- function Ml(n, e) {
800
+ function Ul(n, e) {
801
801
  return typeof is(n) == "number" ? n.pop() : e;
802
802
  }
803
803
  var rs = (function(n) {
@@ -815,15 +815,15 @@ function Do(n) {
815
815
  function zo(n) {
816
816
  return new TypeError("You provided " + (n !== null && typeof n == "object" ? "an invalid object" : "'" + n + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
817
817
  }
818
- function Ul() {
818
+ function Nl() {
819
819
  return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
820
820
  }
821
- var Ho = Ul();
821
+ var Ho = Nl();
822
822
  function Fo(n) {
823
823
  return E(n == null ? void 0 : n[Ho]);
824
824
  }
825
825
  function jo(n) {
826
- return vl(this, arguments, function() {
826
+ return bl(this, arguments, function() {
827
827
  var t, i, s, r;
828
828
  return Oo(this, function(o) {
829
829
  switch (o.label) {
@@ -856,26 +856,26 @@ function jo(n) {
856
856
  function Bo(n) {
857
857
  return E(n == null ? void 0 : n.getReader);
858
858
  }
859
- function re(n) {
859
+ function ae(n) {
860
860
  if (n instanceof j)
861
861
  return n;
862
862
  if (n != null) {
863
863
  if (No(n))
864
- return Nl(n);
865
- if (rs(n))
866
864
  return Dl(n);
867
- if (Uo(n))
865
+ if (rs(n))
868
866
  return zl(n);
867
+ if (Uo(n))
868
+ return Hl(n);
869
869
  if (Do(n))
870
870
  return qo(n);
871
871
  if (Fo(n))
872
- return Hl(n);
873
- if (Bo(n))
874
872
  return Fl(n);
873
+ if (Bo(n))
874
+ return jl(n);
875
875
  }
876
876
  throw zo(n);
877
877
  }
878
- function Nl(n) {
878
+ function Dl(n) {
879
879
  return new j(function(e) {
880
880
  var t = n[ns]();
881
881
  if (E(t.subscribe))
@@ -883,14 +883,14 @@ function Nl(n) {
883
883
  throw new TypeError("Provided object does not correctly implement Symbol.observable");
884
884
  });
885
885
  }
886
- function Dl(n) {
886
+ function zl(n) {
887
887
  return new j(function(e) {
888
888
  for (var t = 0; t < n.length && !e.closed; t++)
889
889
  e.next(n[t]);
890
890
  e.complete();
891
891
  });
892
892
  }
893
- function zl(n) {
893
+ function Hl(n) {
894
894
  return new j(function(e) {
895
895
  n.then(function(t) {
896
896
  e.closed || (e.next(t), e.complete());
@@ -899,7 +899,7 @@ function zl(n) {
899
899
  }).then(null, Po);
900
900
  });
901
901
  }
902
- function Hl(n) {
902
+ function Fl(n) {
903
903
  return new j(function(e) {
904
904
  var t, i;
905
905
  try {
@@ -922,22 +922,22 @@ function Hl(n) {
922
922
  }
923
923
  function qo(n) {
924
924
  return new j(function(e) {
925
- jl(n, e).catch(function(t) {
925
+ Bl(n, e).catch(function(t) {
926
926
  return e.error(t);
927
927
  });
928
928
  });
929
929
  }
930
- function Fl(n) {
930
+ function jl(n) {
931
931
  return qo(jo(n));
932
932
  }
933
- function jl(n, e) {
933
+ function Bl(n, e) {
934
934
  var t, i, s, r;
935
- return ml(this, void 0, void 0, function() {
935
+ return vl(this, void 0, void 0, function() {
936
936
  var o, a;
937
937
  return Oo(this, function(l) {
938
938
  switch (l.label) {
939
939
  case 0:
940
- l.trys.push([0, 5, 6, 11]), t = bl(n), l.label = 1;
940
+ l.trys.push([0, 5, 6, 11]), t = yl(n), l.label = 1;
941
941
  case 1:
942
942
  return [4, t.next()];
943
943
  case 2:
@@ -977,7 +977,7 @@ function Ne(n, e, t, i, s) {
977
977
  return r;
978
978
  }
979
979
  function Vo(n, e) {
980
- return e === void 0 && (e = 0), se(function(t, i) {
980
+ return e === void 0 && (e = 0), oe(function(t, i) {
981
981
  t.subscribe(Y(i, function(s) {
982
982
  return Ne(i, n, function() {
983
983
  return i.next(s);
@@ -994,19 +994,19 @@ function Vo(n, e) {
994
994
  });
995
995
  }
996
996
  function Wo(n, e) {
997
- return e === void 0 && (e = 0), se(function(t, i) {
997
+ return e === void 0 && (e = 0), oe(function(t, i) {
998
998
  i.add(n.schedule(function() {
999
999
  return t.subscribe(i);
1000
1000
  }, e));
1001
1001
  });
1002
1002
  }
1003
- function Bl(n, e) {
1004
- return re(n).pipe(Wo(e), Vo(e));
1005
- }
1006
1003
  function ql(n, e) {
1007
- return re(n).pipe(Wo(e), Vo(e));
1004
+ return ae(n).pipe(Wo(e), Vo(e));
1008
1005
  }
1009
1006
  function Vl(n, e) {
1007
+ return ae(n).pipe(Wo(e), Vo(e));
1008
+ }
1009
+ function Wl(n, e) {
1010
1010
  return new j(function(t) {
1011
1011
  var i = 0;
1012
1012
  return e.schedule(function() {
@@ -1014,7 +1014,7 @@ function Vl(n, e) {
1014
1014
  });
1015
1015
  });
1016
1016
  }
1017
- function Wl(n, e) {
1017
+ function Gl(n, e) {
1018
1018
  return new j(function(t) {
1019
1019
  var i;
1020
1020
  return Ne(t, e, function() {
@@ -1047,28 +1047,28 @@ function Go(n, e) {
1047
1047
  });
1048
1048
  });
1049
1049
  }
1050
- function Gl(n, e) {
1050
+ function Zl(n, e) {
1051
1051
  return Go(jo(n), e);
1052
1052
  }
1053
- function Zl(n, e) {
1053
+ function Yl(n, e) {
1054
1054
  if (n != null) {
1055
1055
  if (No(n))
1056
- return Bl(n, e);
1056
+ return ql(n, e);
1057
1057
  if (rs(n))
1058
- return Vl(n, e);
1058
+ return Wl(n, e);
1059
1059
  if (Uo(n))
1060
- return ql(n, e);
1060
+ return Vl(n, e);
1061
1061
  if (Do(n))
1062
1062
  return Go(n, e);
1063
1063
  if (Fo(n))
1064
- return Wl(n, e);
1065
- if (Bo(n))
1066
1064
  return Gl(n, e);
1065
+ if (Bo(n))
1066
+ return Zl(n, e);
1067
1067
  }
1068
1068
  throw zo(n);
1069
1069
  }
1070
1070
  function Ye(n, e) {
1071
- return e ? Zl(n, e) : re(n);
1071
+ return e ? Yl(n, e) : ae(n);
1072
1072
  }
1073
1073
  function Pi() {
1074
1074
  for (var n = [], e = 0; e < arguments.length; e++)
@@ -1077,30 +1077,30 @@ function Pi() {
1077
1077
  return Ye(n, t);
1078
1078
  }
1079
1079
  function _n(n, e) {
1080
- return se(function(t, i) {
1080
+ return oe(function(t, i) {
1081
1081
  var s = 0;
1082
1082
  t.subscribe(Y(i, function(r) {
1083
1083
  i.next(n.call(e, r, s++));
1084
1084
  }));
1085
1085
  });
1086
1086
  }
1087
- var Yl = Array.isArray;
1088
- function Ql(n, e) {
1089
- return Yl(e) ? n.apply(void 0, Xe([], ze(e))) : n(e);
1087
+ var Ql = Array.isArray;
1088
+ function Xl(n, e) {
1089
+ return Ql(e) ? n.apply(void 0, Xe([], ze(e))) : n(e);
1090
1090
  }
1091
1091
  function Zo(n) {
1092
1092
  return _n(function(e) {
1093
- return Ql(n, e);
1093
+ return Xl(n, e);
1094
1094
  });
1095
1095
  }
1096
- var Xl = Array.isArray, Kl = Object.getPrototypeOf, Jl = Object.prototype, ec = Object.keys;
1097
- function tc(n) {
1096
+ var Kl = Array.isArray, Jl = Object.getPrototypeOf, ec = Object.prototype, tc = Object.keys;
1097
+ function nc(n) {
1098
1098
  if (n.length === 1) {
1099
1099
  var e = n[0];
1100
- if (Xl(e))
1100
+ if (Kl(e))
1101
1101
  return { args: e, keys: null };
1102
- if (nc(e)) {
1103
- var t = ec(e);
1102
+ if (ic(e)) {
1103
+ var t = tc(e);
1104
1104
  return {
1105
1105
  args: t.map(function(i) {
1106
1106
  return e[i];
@@ -1111,26 +1111,26 @@ function tc(n) {
1111
1111
  }
1112
1112
  return { args: n, keys: null };
1113
1113
  }
1114
- function nc(n) {
1115
- return n && typeof n == "object" && Kl(n) === Jl;
1114
+ function ic(n) {
1115
+ return n && typeof n == "object" && Jl(n) === ec;
1116
1116
  }
1117
- function ic(n, e) {
1117
+ function sc(n, e) {
1118
1118
  return n.reduce(function(t, i, s) {
1119
1119
  return t[i] = e[s], t;
1120
1120
  }, {});
1121
1121
  }
1122
- function sc() {
1122
+ function rc() {
1123
1123
  for (var n = [], e = 0; e < arguments.length; e++)
1124
1124
  n[e] = arguments[e];
1125
- var t = ss(n), i = Mo(n), s = tc(n), r = s.args, o = s.keys;
1125
+ var t = ss(n), i = Mo(n), s = nc(n), r = s.args, o = s.keys;
1126
1126
  if (r.length === 0)
1127
1127
  return Ye([], t);
1128
- var a = new j(rc(r, t, o ? function(l) {
1129
- return ic(o, l);
1128
+ var a = new j(oc(r, t, o ? function(l) {
1129
+ return sc(o, l);
1130
1130
  } : Ct));
1131
1131
  return i ? a.pipe(Zo(i)) : a;
1132
1132
  }
1133
- function rc(n, e, t) {
1133
+ function oc(n, e, t) {
1134
1134
  return t === void 0 && (t = Ct), function(i) {
1135
1135
  Or(e, function() {
1136
1136
  for (var s = n.length, r = new Array(s), o = s, a = s, l = function(u) {
@@ -1150,30 +1150,30 @@ function rc(n, e, t) {
1150
1150
  function Or(n, e, t) {
1151
1151
  n ? Ne(t, n, e) : e();
1152
1152
  }
1153
- function oc(n, e, t, i, s, r, o, a) {
1153
+ function ac(n, e, t, i, s, r, o, a) {
1154
1154
  var l = [], c = 0, u = 0, p = !1, d = function() {
1155
1155
  p && !l.length && !c && e.complete();
1156
1156
  }, g = function($) {
1157
1157
  return c < i ? m($) : l.push($);
1158
1158
  }, m = function($) {
1159
1159
  c++;
1160
- var be = !1;
1161
- re(t($, u++)).subscribe(Y(e, function(ae) {
1162
- e.next(ae);
1160
+ var $e = !1;
1161
+ ae(t($, u++)).subscribe(Y(e, function(ce) {
1162
+ e.next(ce);
1163
1163
  }, function() {
1164
- be = !0;
1164
+ $e = !0;
1165
1165
  }, void 0, function() {
1166
- if (be)
1166
+ if ($e)
1167
1167
  try {
1168
1168
  c--;
1169
- for (var ae = function() {
1170
- var Ie = l.shift();
1171
- o || m(Ie);
1169
+ for (var ce = function() {
1170
+ var Pe = l.shift();
1171
+ o || m(Pe);
1172
1172
  }; l.length && c < i; )
1173
- ae();
1173
+ ce();
1174
1174
  d();
1175
- } catch (Ie) {
1176
- e.error(Ie);
1175
+ } catch (Pe) {
1176
+ e.error(Pe);
1177
1177
  }
1178
1178
  }));
1179
1179
  };
@@ -1186,32 +1186,32 @@ function qt(n, e, t) {
1186
1186
  return t === void 0 && (t = 1 / 0), E(e) ? qt(function(i, s) {
1187
1187
  return _n(function(r, o) {
1188
1188
  return e(i, r, s, o);
1189
- })(re(n(i, s)));
1190
- }, t) : (typeof e == "number" && (t = e), se(function(i, s) {
1191
- return oc(i, s, n, t);
1189
+ })(ae(n(i, s)));
1190
+ }, t) : (typeof e == "number" && (t = e), oe(function(i, s) {
1191
+ return ac(i, s, n, t);
1192
1192
  }));
1193
1193
  }
1194
- function ac(n) {
1194
+ function lc(n) {
1195
1195
  return n === void 0 && (n = 1 / 0), qt(Ct, n);
1196
1196
  }
1197
- function lc(n) {
1197
+ function cc(n) {
1198
1198
  return new j(function(e) {
1199
- re(n()).subscribe(e);
1199
+ ae(n()).subscribe(e);
1200
1200
  });
1201
1201
  }
1202
- var cc = ["addListener", "removeListener"], uc = ["addEventListener", "removeEventListener"], hc = ["on", "off"];
1202
+ var uc = ["addListener", "removeListener"], hc = ["addEventListener", "removeEventListener"], dc = ["on", "off"];
1203
1203
  function An(n, e, t, i) {
1204
1204
  if (E(t) && (i = t, t = void 0), i)
1205
1205
  return An(n, e, t).pipe(Zo(i));
1206
- var s = ze(fc(n) ? uc.map(function(a) {
1206
+ var s = ze(gc(n) ? hc.map(function(a) {
1207
1207
  return function(l) {
1208
1208
  return n[a](e, l, t);
1209
1209
  };
1210
- }) : dc(n) ? cc.map(Lr(n, e)) : pc(n) ? hc.map(Lr(n, e)) : [], 2), r = s[0], o = s[1];
1210
+ }) : pc(n) ? uc.map(Lr(n, e)) : fc(n) ? dc.map(Lr(n, e)) : [], 2), r = s[0], o = s[1];
1211
1211
  if (!r && rs(n))
1212
1212
  return qt(function(a) {
1213
1213
  return An(a, e, t);
1214
- })(re(n));
1214
+ })(ae(n));
1215
1215
  if (!r)
1216
1216
  throw new TypeError("Invalid event target");
1217
1217
  return new j(function(a) {
@@ -1232,23 +1232,23 @@ function Lr(n, e) {
1232
1232
  };
1233
1233
  };
1234
1234
  }
1235
- function dc(n) {
1235
+ function pc(n) {
1236
1236
  return E(n.addListener) && E(n.removeListener);
1237
1237
  }
1238
- function pc(n) {
1238
+ function fc(n) {
1239
1239
  return E(n.on) && E(n.off);
1240
1240
  }
1241
- function fc(n) {
1241
+ function gc(n) {
1242
1242
  return E(n.addEventListener) && E(n.removeEventListener);
1243
1243
  }
1244
- function gc() {
1244
+ function mc() {
1245
1245
  for (var n = [], e = 0; e < arguments.length; e++)
1246
1246
  n[e] = arguments[e];
1247
- var t = ss(n), i = Ml(n, 1 / 0), s = n;
1248
- return s.length ? s.length === 1 ? re(s[0]) : ac(i)(Ye(s, t)) : tt;
1247
+ var t = ss(n), i = Ul(n, 1 / 0), s = n;
1248
+ return s.length ? s.length === 1 ? ae(s[0]) : lc(i)(Ye(s, t)) : tt;
1249
1249
  }
1250
1250
  function W(n, e) {
1251
- return se(function(t, i) {
1251
+ return oe(function(t, i) {
1252
1252
  var s = 0;
1253
1253
  t.subscribe(Y(i, function(r) {
1254
1254
  return n.call(e, r, s++) && i.next(r);
@@ -1256,20 +1256,20 @@ function W(n, e) {
1256
1256
  });
1257
1257
  }
1258
1258
  function Mi(n) {
1259
- return se(function(e, t) {
1259
+ return oe(function(e, t) {
1260
1260
  var i = null, s = !1, r;
1261
1261
  i = e.subscribe(Y(t, void 0, void 0, function(o) {
1262
- r = re(n(o, Mi(n)(e))), i ? (i.unsubscribe(), i = null, r.subscribe(t)) : s = !0;
1262
+ r = ae(n(o, Mi(n)(e))), i ? (i.unsubscribe(), i = null, r.subscribe(t)) : s = !0;
1263
1263
  })), s && (i.unsubscribe(), i = null, r.subscribe(t));
1264
1264
  });
1265
1265
  }
1266
1266
  function vi(n, e) {
1267
1267
  return E(e) ? qt(n, e, 1) : qt(n, 1);
1268
1268
  }
1269
- function fe(n) {
1269
+ function me(n) {
1270
1270
  return n <= 0 ? function() {
1271
1271
  return tt;
1272
- } : se(function(e, t) {
1272
+ } : oe(function(e, t) {
1273
1273
  var i = 0;
1274
1274
  e.subscribe(Y(t, function(s) {
1275
1275
  ++i <= n && (t.next(s), n <= i && t.complete());
@@ -1280,7 +1280,7 @@ function bi(n) {
1280
1280
  var e = 1 / 0, t;
1281
1281
  return e <= 0 ? function() {
1282
1282
  return tt;
1283
- } : se(function(i, s) {
1283
+ } : oe(function(i, s) {
1284
1284
  var r = 0, o, a = function() {
1285
1285
  o == null || o.unsubscribe(), o = null;
1286
1286
  var c, u;
@@ -1294,15 +1294,15 @@ function bi(n) {
1294
1294
  l();
1295
1295
  });
1296
1296
  }
1297
- function Ae(n, e) {
1298
- return se(function(t, i) {
1297
+ function Oe(n, e) {
1298
+ return oe(function(t, i) {
1299
1299
  var s = null, r = 0, o = !1, a = function() {
1300
1300
  return o && !s && i.complete();
1301
1301
  };
1302
1302
  t.subscribe(Y(i, function(l) {
1303
1303
  s == null || s.unsubscribe();
1304
1304
  var c = 0, u = r++;
1305
- re(n(l, u)).subscribe(s = Y(i, function(p) {
1305
+ ae(n(l, u)).subscribe(s = Y(i, function(p) {
1306
1306
  return i.next(e ? e(l, p, u, c++) : p);
1307
1307
  }, function() {
1308
1308
  s = null, a();
@@ -1313,15 +1313,15 @@ function Ae(n, e) {
1313
1313
  });
1314
1314
  }
1315
1315
  function z(n) {
1316
- return se(function(e, t) {
1317
- re(n).subscribe(Y(t, function() {
1316
+ return oe(function(e, t) {
1317
+ ae(n).subscribe(Y(t, function() {
1318
1318
  return t.complete();
1319
1319
  }, En)), !t.closed && e.subscribe(t);
1320
1320
  });
1321
1321
  }
1322
- function mc(n, e, t) {
1322
+ function vc(n, e, t) {
1323
1323
  var i = E(n) || e || t ? { next: n, error: e, complete: t } : n;
1324
- return i ? se(function(s, r) {
1324
+ return i ? oe(function(s, r) {
1325
1325
  var o;
1326
1326
  (o = i.subscribe) === null || o === void 0 || o.call(i);
1327
1327
  var a = !0;
@@ -1344,11 +1344,11 @@ function Ui() {
1344
1344
  for (var n = [], e = 0; e < arguments.length; e++)
1345
1345
  n[e] = arguments[e];
1346
1346
  var t = Mo(n);
1347
- return se(function(i, s) {
1347
+ return oe(function(i, s) {
1348
1348
  for (var r = n.length, o = new Array(r), a = n.map(function() {
1349
1349
  return !1;
1350
1350
  }), l = !1, c = function(p) {
1351
- re(n[p]).subscribe(Y(s, function(d) {
1351
+ ae(n[p]).subscribe(Y(s, function(d) {
1352
1352
  o[p] = d, !l && !a[p] && (a[p] = !0, (l = a.every(Ct)) && (a = null));
1353
1353
  }, En));
1354
1354
  }, u = 0; u < r; u++)
@@ -1386,10 +1386,10 @@ class os {
1386
1386
  // }
1387
1387
  }
1388
1388
  var F = /* @__PURE__ */ ((n) => (n.User = "user", n.Agent = "agent", n.System = "system", n))(F || {});
1389
- const vc = () => "10000000-1000-4000-8000-100000000000".replace(
1389
+ const bc = () => "10000000-1000-4000-8000-100000000000".replace(
1390
1390
  /[018]/g,
1391
1391
  (n) => (+n ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> +n / 4).toString(16)
1392
- ), Yo = () => typeof crypto.randomUUID == "function" ? crypto.randomUUID() : vc();
1392
+ ), Yo = () => typeof crypto.randomUUID == "function" ? crypto.randomUUID() : bc();
1393
1393
  function Rr(n) {
1394
1394
  let e = n;
1395
1395
  const t = /https?:\/\/[^\s<]+/gi, i = /<a [^>]*href="([^"]*)"[^>]*>[^<]*<\/a>/g, s = n.match(t) || [], r = [];
@@ -1412,7 +1412,7 @@ function Rr(n) {
1412
1412
  }
1413
1413
  function Ni(n) {
1414
1414
  if (n.includes("aceChatGuideTitle"))
1415
- return bc(n);
1415
+ return yc(n);
1416
1416
  const e = /<a [^>]*>https?:\/\/[^<]*<\/a>/gim;
1417
1417
  return n.replace(e, (t) => {
1418
1418
  const i = Qo(t);
@@ -1446,7 +1446,7 @@ function Qo(n) {
1446
1446
  function Di(n, e) {
1447
1447
  return n.replace(/>[^<]*<\/a>/, `>${e}</a>`);
1448
1448
  }
1449
- function bc(n) {
1449
+ function yc(n) {
1450
1450
  const e = /<a [^>]*aceChatGuideTitle[^>]*>[^<]*<\/a>/gm;
1451
1451
  return n.replace(e, (t) => {
1452
1452
  const i = Qo(t);
@@ -1456,7 +1456,7 @@ function bc(n) {
1456
1456
  return o ? Di(t, o) : t;
1457
1457
  });
1458
1458
  }
1459
- class ee {
1459
+ class te {
1460
1460
  constructor(e, t, i) {
1461
1461
  this.type = e, this.sender = t, this.messages = i, this.status = "delivered", this.didUpdate = new P(), this.actions$ = new P(), this.remove$ = new P(), this.timestamp = Date.now(), this.id = Yo();
1462
1462
  }
@@ -1474,12 +1474,12 @@ class ee {
1474
1474
  this.remove$.next();
1475
1475
  }
1476
1476
  }
1477
- class yc {
1477
+ class $c {
1478
1478
  constructor(e) {
1479
1479
  this.name = e, this.print$ = new P();
1480
1480
  }
1481
1481
  print(e, t = "html", i = this.name) {
1482
- const s = new ee(
1482
+ const s = new te(
1483
1483
  F.Agent,
1484
1484
  { name: i },
1485
1485
  [
@@ -1494,12 +1494,12 @@ class yc {
1494
1494
  return this.print$.asObservable();
1495
1495
  }
1496
1496
  }
1497
- class $c {
1497
+ class wc {
1498
1498
  constructor(e) {
1499
1499
  this.name = e, this.print$ = new P();
1500
1500
  }
1501
1501
  print(e) {
1502
- const t = new ee(
1502
+ const t = new te(
1503
1503
  F.User,
1504
1504
  { name: this.name },
1505
1505
  [
@@ -1514,12 +1514,12 @@ class $c {
1514
1514
  return this.print$.asObservable();
1515
1515
  }
1516
1516
  }
1517
- class wc {
1517
+ class xc {
1518
1518
  constructor() {
1519
1519
  this.print$ = new P(), this.name = "system";
1520
1520
  }
1521
1521
  print(e) {
1522
- const t = new ee(
1522
+ const t = new te(
1523
1523
  F.System,
1524
1524
  { name: this.name },
1525
1525
  [
@@ -1534,12 +1534,12 @@ class wc {
1534
1534
  return this.print$.asObservable();
1535
1535
  }
1536
1536
  }
1537
- class xc {
1537
+ class kc {
1538
1538
  constructor(e, t) {
1539
- this.name = e, this.component = t, this.print$ = new P(), this.typingState$ = new ue(!1), this.complete$ = new P(), this.system = this.createSystem(), this.rehydrate$ = new P(), this.saveToCurrentSession$ = new P(), this.showChatOverlay$ = new ue(!1), this.onComplete = () => this.complete$.asObservable();
1539
+ this.name = e, this.component = t, this.print$ = new P(), this.typingState$ = new de(!1), this.complete$ = new P(), this.system = this.createSystem(), this.rehydrate$ = new P(), this.saveToCurrentSession$ = new P(), this.showChatOverlay$ = new de(!1), this.onComplete = () => this.complete$.asObservable();
1540
1540
  }
1541
1541
  connect(e = {}) {
1542
- this.complete$.pipe(fe(1)).subscribe(() => {
1542
+ this.complete$.pipe(me(1)).subscribe(() => {
1543
1543
  this.disconnected();
1544
1544
  });
1545
1545
  }
@@ -1551,7 +1551,7 @@ class xc {
1551
1551
  this.print(F.User, e.text);
1552
1552
  }
1553
1553
  print(e, t) {
1554
- const i = new ee(
1554
+ const i = new te(
1555
1555
  e,
1556
1556
  {
1557
1557
  name: ""
@@ -1568,19 +1568,19 @@ class xc {
1568
1568
  return this.print$.next(e), e;
1569
1569
  }
1570
1570
  createAgent(e) {
1571
- const t = new yc(e);
1571
+ const t = new $c(e);
1572
1572
  return t.subscribe().subscribe((i) => {
1573
1573
  this.playNotification(), this.printEntry(i);
1574
1574
  }), t;
1575
1575
  }
1576
1576
  createUser(e) {
1577
- const t = new $c(e);
1577
+ const t = new wc(e);
1578
1578
  return t.subscribe().subscribe((i) => {
1579
1579
  this.printEntry(i);
1580
1580
  }), t;
1581
1581
  }
1582
1582
  createSystem() {
1583
- const e = new wc();
1583
+ const e = new xc();
1584
1584
  return e.subscribe().subscribe((t) => {
1585
1585
  this.printEntry(t);
1586
1586
  }), e;
@@ -1635,14 +1635,14 @@ let Xo = class {
1635
1635
  return this.cssText;
1636
1636
  }
1637
1637
  };
1638
- const kc = (n) => new Xo(typeof n == "string" ? n : n + "", void 0, ls), T = (n, ...e) => {
1638
+ const Sc = (n) => new Xo(typeof n == "string" ? n : n + "", void 0, ls), O = (n, ...e) => {
1639
1639
  const t = n.length === 1 ? n[0] : e.reduce(((i, s, r) => i + ((o) => {
1640
1640
  if (o._$cssResult$ === !0) return o.cssText;
1641
1641
  if (typeof o == "number") return o;
1642
1642
  throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
1643
1643
  })(s) + n[r + 1]), n[0]);
1644
1644
  return new Xo(t, n, ls);
1645
- }, Sc = (n, e) => {
1645
+ }, Cc = (n, e) => {
1646
1646
  if (as) n.adoptedStyleSheets = e.map(((t) => t instanceof CSSStyleSheet ? t : t.styleSheet));
1647
1647
  else for (const t of e) {
1648
1648
  const i = document.createElement("style"), s = xn.litNonce;
@@ -1651,17 +1651,17 @@ const kc = (n) => new Xo(typeof n == "string" ? n : n + "", void 0, ls), T = (n,
1651
1651
  }, Pr = as ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((e) => {
1652
1652
  let t = "";
1653
1653
  for (const i of e.cssRules) t += i.cssText;
1654
- return kc(t);
1654
+ return Sc(t);
1655
1655
  })(n) : n;
1656
1656
  /**
1657
1657
  * @license
1658
1658
  * Copyright 2017 Google LLC
1659
1659
  * SPDX-License-Identifier: BSD-3-Clause
1660
1660
  */
1661
- const { is: Cc, defineProperty: Ec, getOwnPropertyDescriptor: _c, getOwnPropertyNames: Ac, getOwnPropertySymbols: Tc, getPrototypeOf: Oc } = Object, De = globalThis, Mr = De.trustedTypes, Lc = Mr ? Mr.emptyScript : "", yi = De.reactiveElementPolyfillSupport, zt = (n, e) => n, Tn = { toAttribute(n, e) {
1661
+ const { is: Ec, defineProperty: _c, getOwnPropertyDescriptor: Ac, getOwnPropertyNames: Tc, getOwnPropertySymbols: Oc, getPrototypeOf: Lc } = Object, De = globalThis, Mr = De.trustedTypes, Rc = Mr ? Mr.emptyScript : "", yi = De.reactiveElementPolyfillSupport, zt = (n, e) => n, Tn = { toAttribute(n, e) {
1662
1662
  switch (e) {
1663
1663
  case Boolean:
1664
- n = n ? Lc : null;
1664
+ n = n ? Rc : null;
1665
1665
  break;
1666
1666
  case Object:
1667
1667
  case Array:
@@ -1686,7 +1686,7 @@ const { is: Cc, defineProperty: Ec, getOwnPropertyDescriptor: _c, getOwnProperty
1686
1686
  }
1687
1687
  }
1688
1688
  return t;
1689
- } }, cs = (n, e) => !Cc(n, e), Ur = { attribute: !0, type: String, converter: Tn, reflect: !1, useDefault: !1, hasChanged: cs };
1689
+ } }, cs = (n, e) => !Ec(n, e), Ur = { attribute: !0, type: String, converter: Tn, reflect: !1, useDefault: !1, hasChanged: cs };
1690
1690
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), De.litPropertyMetadata ?? (De.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
1691
1691
  let ht = class extends HTMLElement {
1692
1692
  static addInitializer(e) {
@@ -1698,11 +1698,11 @@ let ht = class extends HTMLElement {
1698
1698
  static createProperty(e, t = Ur) {
1699
1699
  if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
1700
1700
  const i = Symbol(), s = this.getPropertyDescriptor(e, i, t);
1701
- s !== void 0 && Ec(this.prototype, e, s);
1701
+ s !== void 0 && _c(this.prototype, e, s);
1702
1702
  }
1703
1703
  }
1704
1704
  static getPropertyDescriptor(e, t, i) {
1705
- const { get: s, set: r } = _c(this.prototype, e) ?? { get() {
1705
+ const { get: s, set: r } = Ac(this.prototype, e) ?? { get() {
1706
1706
  return this[t];
1707
1707
  }, set(o) {
1708
1708
  this[t] = o;
@@ -1717,13 +1717,13 @@ let ht = class extends HTMLElement {
1717
1717
  }
1718
1718
  static _$Ei() {
1719
1719
  if (this.hasOwnProperty(zt("elementProperties"))) return;
1720
- const e = Oc(this);
1720
+ const e = Lc(this);
1721
1721
  e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
1722
1722
  }
1723
1723
  static finalize() {
1724
1724
  if (this.hasOwnProperty(zt("finalized"))) return;
1725
1725
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(zt("properties"))) {
1726
- const t = this.properties, i = [...Ac(t), ...Tc(t)];
1726
+ const t = this.properties, i = [...Tc(t), ...Oc(t)];
1727
1727
  for (const s of i) this.createProperty(s, t[s]);
1728
1728
  }
1729
1729
  const e = this[Symbol.metadata];
@@ -1772,7 +1772,7 @@ let ht = class extends HTMLElement {
1772
1772
  }
1773
1773
  createRenderRoot() {
1774
1774
  const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
1775
- return Sc(e, this.constructor.elementStyles), e;
1775
+ return Cc(e, this.constructor.elementStyles), e;
1776
1776
  }
1777
1777
  connectedCallback() {
1778
1778
  var e;
@@ -1897,14 +1897,14 @@ ht.elementStyles = [], ht.shadowRootOptions = { mode: "open" }, ht[zt("elementPr
1897
1897
  * Copyright 2017 Google LLC
1898
1898
  * SPDX-License-Identifier: BSD-3-Clause
1899
1899
  */
1900
- const Ht = globalThis, On = Ht.trustedTypes, Nr = On ? On.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, Ko = "$lit$", Me = `lit$${Math.random().toFixed(9).slice(2)}$`, Jo = "?" + Me, Rc = `<${Jo}>`, Ke = document, Vt = () => Ke.createComment(""), Wt = (n) => n === null || typeof n != "object" && typeof n != "function", us = Array.isArray, Ic = (n) => us(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", $i = `[
1900
+ const Ht = globalThis, On = Ht.trustedTypes, Nr = On ? On.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, Ko = "$lit$", Me = `lit$${Math.random().toFixed(9).slice(2)}$`, Jo = "?" + Me, Ic = `<${Jo}>`, Ke = document, Vt = () => Ke.createComment(""), Wt = (n) => n === null || typeof n != "object" && typeof n != "function", us = Array.isArray, Pc = (n) => us(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", $i = `[
1901
1901
  \f\r]`, Lt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Dr = /-->/g, zr = />/g, Ve = RegExp(`>|${$i}(?:([^\\s"'>=/]+)(${$i}*=${$i}*(?:[^
1902
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Hr = /'/g, Fr = /"/g, ea = /^(?:script|style|textarea|title)$/i, Pc = (n) => (e, ...t) => ({ _$litType$: n, strings: e, values: t }), y = Pc(1), Te = Symbol.for("lit-noChange"), w = Symbol.for("lit-nothing"), jr = /* @__PURE__ */ new WeakMap(), Ge = Ke.createTreeWalker(Ke, 129);
1902
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Hr = /'/g, Fr = /"/g, ea = /^(?:script|style|textarea|title)$/i, Mc = (n) => (e, ...t) => ({ _$litType$: n, strings: e, values: t }), y = Mc(1), Le = Symbol.for("lit-noChange"), w = Symbol.for("lit-nothing"), jr = /* @__PURE__ */ new WeakMap(), Ge = Ke.createTreeWalker(Ke, 129);
1903
1903
  function ta(n, e) {
1904
1904
  if (!us(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
1905
1905
  return Nr !== void 0 ? Nr.createHTML(e) : e;
1906
1906
  }
1907
- const Mc = (n, e) => {
1907
+ const Uc = (n, e) => {
1908
1908
  const t = n.length - 1, i = [];
1909
1909
  let s, r = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", o = Lt;
1910
1910
  for (let a = 0; a < t; a++) {
@@ -1912,7 +1912,7 @@ const Mc = (n, e) => {
1912
1912
  let c, u, p = -1, d = 0;
1913
1913
  for (; d < l.length && (o.lastIndex = d, u = o.exec(l), u !== null); ) d = o.lastIndex, o === Lt ? u[1] === "!--" ? o = Dr : u[1] !== void 0 ? o = zr : u[2] !== void 0 ? (ea.test(u[2]) && (s = RegExp("</" + u[2], "g")), o = Ve) : u[3] !== void 0 && (o = Ve) : o === Ve ? u[0] === ">" ? (o = s ?? Lt, p = -1) : u[1] === void 0 ? p = -2 : (p = o.lastIndex - u[2].length, c = u[1], o = u[3] === void 0 ? Ve : u[3] === '"' ? Fr : Hr) : o === Fr || o === Hr ? o = Ve : o === Dr || o === zr ? o = Lt : (o = Ve, s = void 0);
1914
1914
  const g = o === Ve && n[a + 1].startsWith("/>") ? " " : "";
1915
- r += o === Lt ? l + Rc : p >= 0 ? (i.push(c), l.slice(0, p) + Ko + l.slice(p) + Me + g) : l + Me + (p === -2 ? a : g);
1915
+ r += o === Lt ? l + Ic : p >= 0 ? (i.push(c), l.slice(0, p) + Ko + l.slice(p) + Me + g) : l + Me + (p === -2 ? a : g);
1916
1916
  }
1917
1917
  return [ta(n, r + (n[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
1918
1918
  };
@@ -1921,7 +1921,7 @@ let zi = class na {
1921
1921
  let s;
1922
1922
  this.parts = [];
1923
1923
  let r = 0, o = 0;
1924
- const a = e.length - 1, l = this.parts, [c, u] = Mc(e, t);
1924
+ const a = e.length - 1, l = this.parts, [c, u] = Uc(e, t);
1925
1925
  if (this.el = na.createElement(c, i), Ge.currentNode = this.el.content, t === 2 || t === 3) {
1926
1926
  const p = this.el.content.firstChild;
1927
1927
  p.replaceWith(...p.childNodes);
@@ -1930,7 +1930,7 @@ let zi = class na {
1930
1930
  if (s.nodeType === 1) {
1931
1931
  if (s.hasAttributes()) for (const p of s.getAttributeNames()) if (p.endsWith(Ko)) {
1932
1932
  const d = u[o++], g = s.getAttribute(p).split(Me), m = /([.?@])?(.*)/.exec(d);
1933
- l.push({ type: 1, index: r, name: m[2], strings: g, ctor: m[1] === "." ? Nc : m[1] === "?" ? Dc : m[1] === "@" ? zc : Yn }), s.removeAttribute(p);
1933
+ l.push({ type: 1, index: r, name: m[2], strings: g, ctor: m[1] === "." ? Dc : m[1] === "?" ? zc : m[1] === "@" ? Hc : Yn }), s.removeAttribute(p);
1934
1934
  } else p.startsWith(Me) && (l.push({ type: 6, index: r }), s.removeAttribute(p));
1935
1935
  if (ea.test(s.tagName)) {
1936
1936
  const p = s.textContent.split(Me), d = p.length - 1;
@@ -1955,12 +1955,12 @@ let zi = class na {
1955
1955
  };
1956
1956
  function $t(n, e, t = n, i) {
1957
1957
  var o, a;
1958
- if (e === Te) return e;
1958
+ if (e === Le) return e;
1959
1959
  let s = i !== void 0 ? (o = t._$Co) == null ? void 0 : o[i] : t._$Cl;
1960
1960
  const r = Wt(e) ? void 0 : e._$litDirective$;
1961
1961
  return (s == null ? void 0 : s.constructor) !== r && ((a = s == null ? void 0 : s._$AO) == null || a.call(s, !1), r === void 0 ? s = void 0 : (s = new r(n), s._$AT(n, t, i)), i !== void 0 ? (t._$Co ?? (t._$Co = []))[i] = s : t._$Cl = s), s !== void 0 && (e = $t(n, s._$AS(n, e.values), s, i)), e;
1962
1962
  }
1963
- class Uc {
1963
+ class Nc {
1964
1964
  constructor(e, t) {
1965
1965
  this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
1966
1966
  }
@@ -1977,7 +1977,7 @@ class Uc {
1977
1977
  for (; l !== void 0; ) {
1978
1978
  if (o === l.index) {
1979
1979
  let c;
1980
- l.type === 2 ? c = new nn(r, r.nextSibling, this, e) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, e) : l.type === 6 && (c = new Hc(r, this, e)), this._$AV.push(c), l = i[++a];
1980
+ l.type === 2 ? c = new nn(r, r.nextSibling, this, e) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, e) : l.type === 6 && (c = new Fc(r, this, e)), this._$AV.push(c), l = i[++a];
1981
1981
  }
1982
1982
  o !== (l == null ? void 0 : l.index) && (r = Ge.nextNode(), o++);
1983
1983
  }
@@ -2008,7 +2008,7 @@ class nn {
2008
2008
  return this._$AB;
2009
2009
  }
2010
2010
  _$AI(e, t = this) {
2011
- e = $t(this, e, t), Wt(e) ? e === w || e == null || e === "" ? (this._$AH !== w && this._$AR(), this._$AH = w) : e !== this._$AH && e !== Te && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Ic(e) ? this.k(e) : this._(e);
2011
+ e = $t(this, e, t), Wt(e) ? e === w || e == null || e === "" ? (this._$AH !== w && this._$AR(), this._$AH = w) : e !== this._$AH && e !== Le && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Pc(e) ? this.k(e) : this._(e);
2012
2012
  }
2013
2013
  O(e) {
2014
2014
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -2024,7 +2024,7 @@ class nn {
2024
2024
  const { values: t, _$litType$: i } = e, s = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el = zi.createElement(ta(i.h, i.h[0]), this.options)), i);
2025
2025
  if (((r = this._$AH) == null ? void 0 : r._$AD) === s) this._$AH.p(t);
2026
2026
  else {
2027
- const o = new Uc(s, this), a = o.u(this.options);
2027
+ const o = new Nc(s, this), a = o.u(this.options);
2028
2028
  o.p(t), this.T(a), this._$AH = o;
2029
2029
  }
2030
2030
  }
@@ -2064,11 +2064,11 @@ class Yn {
2064
2064
  _$AI(e, t = this, i, s) {
2065
2065
  const r = this.strings;
2066
2066
  let o = !1;
2067
- if (r === void 0) e = $t(this, e, t, 0), o = !Wt(e) || e !== this._$AH && e !== Te, o && (this._$AH = e);
2067
+ if (r === void 0) e = $t(this, e, t, 0), o = !Wt(e) || e !== this._$AH && e !== Le, o && (this._$AH = e);
2068
2068
  else {
2069
2069
  const a = e;
2070
2070
  let l, c;
2071
- for (e = r[0], l = 0; l < r.length - 1; l++) c = $t(this, a[i + l], t, l), c === Te && (c = this._$AH[l]), o || (o = !Wt(c) || c !== this._$AH[l]), c === w ? e = w : e !== w && (e += (c ?? "") + r[l + 1]), this._$AH[l] = c;
2071
+ for (e = r[0], l = 0; l < r.length - 1; l++) c = $t(this, a[i + l], t, l), c === Le && (c = this._$AH[l]), o || (o = !Wt(c) || c !== this._$AH[l]), c === w ? e = w : e !== w && (e += (c ?? "") + r[l + 1]), this._$AH[l] = c;
2072
2072
  }
2073
2073
  o && !s && this.j(e);
2074
2074
  }
@@ -2076,7 +2076,7 @@ class Yn {
2076
2076
  e === w ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
2077
2077
  }
2078
2078
  }
2079
- let Nc = class extends Yn {
2079
+ let Dc = class extends Yn {
2080
2080
  constructor() {
2081
2081
  super(...arguments), this.type = 3;
2082
2082
  }
@@ -2084,7 +2084,7 @@ let Nc = class extends Yn {
2084
2084
  this.element[this.name] = e === w ? void 0 : e;
2085
2085
  }
2086
2086
  };
2087
- class Dc extends Yn {
2087
+ class zc extends Yn {
2088
2088
  constructor() {
2089
2089
  super(...arguments), this.type = 4;
2090
2090
  }
@@ -2092,12 +2092,12 @@ class Dc extends Yn {
2092
2092
  this.element.toggleAttribute(this.name, !!e && e !== w);
2093
2093
  }
2094
2094
  }
2095
- class zc extends Yn {
2095
+ class Hc extends Yn {
2096
2096
  constructor(e, t, i, s, r) {
2097
2097
  super(e, t, i, s, r), this.type = 5;
2098
2098
  }
2099
2099
  _$AI(e, t = this) {
2100
- if ((e = $t(this, e, t, 0) ?? w) === Te) return;
2100
+ if ((e = $t(this, e, t, 0) ?? w) === Le) return;
2101
2101
  const i = this._$AH, s = e === w && i !== w || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive, r = e !== w && (i === w || s);
2102
2102
  s && this.element.removeEventListener(this.name, this, i), r && this.element.addEventListener(this.name, this, e), this._$AH = e;
2103
2103
  }
@@ -2106,7 +2106,7 @@ class zc extends Yn {
2106
2106
  typeof this._$AH == "function" ? this._$AH.call(((t = this.options) == null ? void 0 : t.host) ?? this.element, e) : this._$AH.handleEvent(e);
2107
2107
  }
2108
2108
  }
2109
- class Hc {
2109
+ class Fc {
2110
2110
  constructor(e, t, i) {
2111
2111
  this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = i;
2112
2112
  }
@@ -2119,7 +2119,7 @@ class Hc {
2119
2119
  }
2120
2120
  const wi = Ht.litHtmlPolyfillSupport;
2121
2121
  wi == null || wi(zi, nn), (Ht.litHtmlVersions ?? (Ht.litHtmlVersions = [])).push("3.3.1");
2122
- const Fc = (n, e, t) => {
2122
+ const jc = (n, e, t) => {
2123
2123
  const i = (t == null ? void 0 : t.renderBefore) ?? e;
2124
2124
  let s = i._$litPart$;
2125
2125
  if (s === void 0) {
@@ -2145,7 +2145,7 @@ let _ = class extends ht {
2145
2145
  }
2146
2146
  update(e) {
2147
2147
  const t = this.render();
2148
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = Fc(t, this.renderRoot, this.renderOptions);
2148
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = jc(t, this.renderRoot, this.renderOptions);
2149
2149
  }
2150
2150
  connectedCallback() {
2151
2151
  var e;
@@ -2156,7 +2156,7 @@ let _ = class extends ht {
2156
2156
  super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1);
2157
2157
  }
2158
2158
  render() {
2159
- return Te;
2159
+ return Le;
2160
2160
  }
2161
2161
  };
2162
2162
  var To;
@@ -2164,7 +2164,7 @@ _._$litElement$ = !0, _.finalized = !0, (To = Qe.litElementHydrateSupport) == nu
2164
2164
  const xi = Qe.litElementPolyfillSupport;
2165
2165
  xi == null || xi({ LitElement: _ });
2166
2166
  (Qe.litElementVersions ?? (Qe.litElementVersions = [])).push("4.2.1");
2167
- const jc = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 60C47.464 60 60 47.464 60 32C60 16.536 47.464 4 32 4C16.536 4 4 16.536 4 32C4.01731 47.4568 16.5432 59.9827 32 60ZM32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6923 45.0849 45.0849 55.6923 32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.32247 18.9212 18.9212 8.32247 32 8.30769Z"/><path d="M29.3491 38.6031V20.6807C29.348 19.8662 29.4903 19.0598 29.7675 18.3096C29.9945 17.6371 30.3484 17.0302 30.804 16.5322C31.1251 16.1524 31.5593 15.9246 32.0204 15.894C32.6852 15.894 33.3496 16.471 34.0134 17.625C34.3738 18.1337 34.5955 18.7525 34.6509 19.4042V37.3267C34.6509 37.9947 34.2454 38.6329 33.4345 39.2414C32.6632 39.835 31.7547 40.1521 30.825 40.1523C29.8423 40.1524 29.3503 39.636 29.3491 38.6031Z"/><path d="M33.66 44.6959C33.9649 45.0866 34.161 45.551 34.2284 46.0419C34.2284 46.5397 33.8893 47.0083 33.2109 47.4476C32.5638 47.8771 31.8043 48.1062 31.0275 48.1061C30.1902 48.1061 29.7716 47.7271 29.7716 46.9693C29.7703 46.3788 29.8874 45.7941 30.116 45.2496C30.3064 44.7579 30.6022 44.3138 30.9826 43.9487C31.2626 43.6591 31.6427 43.4875 32.045 43.4692C32.5635 43.4692 33.1019 43.8781 33.66 44.6959Z"/></svg>' }, ia = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M52 7H24C19.5838 7.00505 16.0051 10.5838 16 15V23H12C7.58382 23.0051 4.00505 26.5838 4 31V43C4.00505 47.4162 7.58382 50.9949 12 51H19.1699L24.8789 56.7075C25.737 57.5654 27.0273 57.8219 28.1482 57.3575C29.2692 56.8931 30 55.7993 30 54.5859V51H39.999C44.4152 50.995 47.994 47.4162 47.999 43V35H52C56.4162 34.9949 59.9949 31.4162 60 27V15C59.9949 10.5838 56.4162 7.00505 52 7ZM43.999 43C43.9967 45.2082 42.2072 46.9977 39.999 47H26V52.1724L20.8262 47H12C9.79184 46.9976 8.00235 45.2082 8 43V31C8.00235 28.7918 9.79184 27.0024 12 27H16C16.0051 31.4162 19.5838 34.9949 24 35H30V38.5859C29.999 39.7998 30.7298 40.8945 31.8512 41.359C32.9726 41.8236 34.2634 41.5664 35.1211 40.7075L40.8291 35H43.999V43ZM56 27C55.9977 29.2082 54.2082 30.9976 52 31H39.1729L34 36.1719V31H24C21.7918 30.9976 20.0024 29.2082 20 27V15C20.0024 12.7918 21.7918 11.0024 24 11H52C54.2082 11.0024 55.9977 12.7918 56 15V27Z"/></svg>' }, Bc = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9829 16.5431 47.4569 4.01712 32 4ZM44.5613 24.5793L31.6382 43.9639C31.2806 44.5011 30.7008 44.8493 30.0586 44.9126C29.988 44.9197 29.9171 44.9232 29.8462 44.9231C29.275 44.9229 28.7272 44.696 28.3233 44.2921L19.7079 35.6767C19.1639 35.1326 18.9514 34.3396 19.1505 33.5964C19.3497 32.8533 19.9302 32.2728 20.6734 32.0736C21.4166 31.8745 22.2095 32.087 22.7536 32.631L29.5117 39.3881L40.9772 22.1899C41.4016 21.5439 42.1396 21.1749 42.9111 21.2229C43.6825 21.2709 44.3691 21.7286 44.7101 22.4223C45.0511 23.1159 44.9944 23.9391 44.5613 24.5793Z"/></svg>' }, qc = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9998 4C16.5358 4 3.99976 16.536 3.99976 32C3.99976 47.464 16.5358 60 31.9998 60C47.4637 60 59.9998 47.464 59.9998 32C59.9826 16.5431 47.4566 4.01712 31.9998 4ZM31.9998 55.6923C18.9149 55.6923 8.30745 45.0849 8.30745 32C8.30745 18.9151 18.9149 8.30769 31.9998 8.30769C45.0847 8.30769 55.6921 18.9151 55.6921 32C55.6773 45.0788 45.0785 55.6775 31.9998 55.6923ZM44.5611 24.5793L31.638 43.9639C31.2804 44.5011 30.7005 44.8493 30.0584 44.9126C29.9878 44.9197 29.9169 44.9232 29.8459 44.9231C29.2747 44.9229 28.727 44.696 28.3231 44.2921L19.7077 35.6767C19.1636 35.1326 18.9512 34.3396 19.1503 33.5964C19.3494 32.8533 19.9299 32.2728 20.6731 32.0736C21.4163 31.8745 22.2093 32.087 22.7534 32.631L29.5115 39.3881L40.9769 22.1899C41.4013 21.5439 42.1394 21.1749 42.9108 21.2229C43.6823 21.2709 44.3688 21.7286 44.7099 22.4223C45.0509 23.1159 44.9941 23.9391 44.5611 24.5793Z"/></svg>' }, Vc = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M57.5438 13.4967L28.717 50.5596C27.9537 51.5407 26.8061 52.147 25.5654 52.2248C25.4755 52.2301 25.3856 52.2332 25.2967 52.2332C24.1476 52.233 23.0455 51.7763 22.233 50.9637L6.63458 35.3654C6.08729 34.8181 5.87354 34.0204 6.07387 33.2728C6.27419 32.5252 6.85815 31.9412 7.60577 31.7409C8.35339 31.5406 9.15109 31.7543 9.69838 32.3016L25.2967 47.8999L54.1225 10.837C54.5976 10.2258 55.3626 9.91453 56.1295 10.0204C56.8963 10.1263 57.5484 10.6332 57.8402 11.3502C58.1319 12.0673 58.0189 12.8855 57.5438 13.4967Z"/></svg>' }, sa = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M53.0318 24.8653L33.5318 44.3653C33.1256 44.7717 32.5745 45.0001 31.9999 45.0001C31.4253 45.0001 30.8742 44.7717 30.468 44.3653L10.968 24.8653C10.122 24.0193 10.122 22.6476 10.968 21.8015C11.8141 20.9555 13.1858 20.9555 14.0318 21.8015L31.9999 39.7696L49.968 21.8015C50.8141 20.9555 52.1858 20.9555 53.0318 21.8015C53.8779 22.6476 53.8779 24.0193 53.0318 24.8653Z"/></svg>' }, Wc = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 56C45.2548 56 56 45.2548 56 32C56 18.7452 45.2548 8 32 8C18.7452 8 8 18.7452 8 32C8 45.2548 18.7452 56 32 56ZM32 60C47.464 60 60 47.464 60 32C60 16.536 47.464 4 32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60Z"/><path d="M25.2772 22.695C24.5164 21.8942 23.2505 21.8617 22.4497 22.6225C21.6488 23.3833 21.6164 24.6492 22.3772 25.45L29.2411 32.6752L22.4773 39.795C21.7166 40.5958 21.749 41.8617 22.5498 42.6225C23.3507 43.3833 24.6166 43.3508 25.3773 42.55L31.9998 35.5791L38.6222 42.55C39.3829 43.3508 40.6488 43.3833 41.4497 42.6225C42.2505 41.8617 42.2829 40.5958 41.5222 39.795L34.7584 32.6752L41.6223 25.45C42.3831 24.6492 42.3507 23.3833 41.5498 22.6225C40.749 21.8617 39.4831 21.8942 38.7224 22.695L31.9998 29.7714L25.2772 22.695Z"/></svg>' }, hs = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M51.365 48.3012C51.9123 48.8485 52.1261 49.6462 51.9258 50.3939C51.7254 51.1415 51.1415 51.7254 50.3939 51.9258C49.6462 52.1261 48.8485 51.9123 48.3012 51.365L32.4998 35.5636L16.6984 51.365C16.1511 51.9123 15.3534 52.1261 14.6058 51.9258C13.8581 51.7254 13.2742 51.1415 13.0739 50.3939C12.8735 49.6462 13.0873 48.8485 13.6346 48.3012L29.436 32.4998L13.6346 16.6984C13.0873 16.1511 12.8735 15.3534 13.0739 14.6058C13.2742 13.8581 13.8581 13.2742 14.6058 13.0739C15.3534 12.8735 16.1511 13.0873 16.6984 13.6346L32.4998 29.436L48.3012 13.6346C49.1473 12.7885 50.519 12.7885 51.365 13.6346C52.2111 14.4806 52.2111 15.8523 51.365 16.6984L35.5636 32.4998L51.365 48.3012Z"/></svg>' }, Gc = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M58.2618 43.8838L38.8585 11.5469C37.4136 9.13651 34.8097 7.66134 31.9994 7.66113C29.1891 7.66093 26.585 9.13572 25.1397 11.5459L5.73642 43.8838C4.25367 46.3552 4.21482 49.4331 5.6347 51.9411C7.05459 54.4492 9.71372 55.9997 12.5958 56H51.4024C54.2845 55.9997 56.9436 54.4492 58.3635 51.9411C59.7834 49.4331 59.7446 46.3552 58.2618 43.8838ZM29.9991 36.9772V25.1569C29.9983 24.6198 30.1056 24.0879 30.3148 23.5932C30.486 23.1496 30.753 22.7494 31.0968 22.4209C31.339 22.1704 31.6666 22.0202 32.0145 22C32.5161 22 33.0173 22.3805 33.5182 23.1416C33.7901 23.4771 33.9573 23.8852 33.9991 24.3151V36.1354C33.9991 36.5759 33.6932 36.9969 33.0814 37.3982C32.4994 37.7897 31.814 37.9988 31.1126 37.999C30.3712 37.999 30 37.6584 29.9991 36.9772ZM34.2408 43.9236C34.173 43.4297 33.9757 42.9626 33.669 42.5696C33.1076 41.7469 32.566 41.3355 32.0444 41.3355C31.6396 41.354 31.2573 41.5266 30.9757 41.8179C30.593 42.1852 30.2954 42.6319 30.1039 43.1266C29.874 43.6743 29.7562 44.2625 29.7574 44.8565C29.7574 45.6189 30.1786 46 31.0208 46C31.8022 46.0001 32.5662 45.7697 33.2173 45.3377C33.8996 44.8957 34.2408 44.4243 34.2408 43.9236Z"/></svg>' }, Hi = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M59.9139 23.8477V7.90923C59.902 5.75094 58.1522 4.00588 55.9939 4H40.0554C38.8659 4 37.9016 4.96431 37.9016 6.15385C37.9016 7.34338 38.8659 8.30769 40.0554 8.30769H52.4616L29.8462 30.9231C29.4417 31.3271 29.2145 31.8753 29.2145 32.4469C29.2145 33.0186 29.4417 33.5668 29.8462 33.9708C30.2394 34.3609 30.7677 34.5846 31.3216 34.5954C31.8941 34.5987 32.4443 34.3739 32.8508 33.9708L55.6062 11.2046V23.8477C55.6062 25.0372 56.5705 26.0015 57.76 26.0015C58.9495 26.0015 59.9139 25.0372 59.9139 23.8477Z"/><path d="M12.217 60H47.4001C51.9189 59.9942 55.5874 56.3449 55.617 51.8262V38.4615C55.617 37.272 54.6527 36.3077 53.4631 36.3077C52.2736 36.3077 51.3093 37.272 51.3093 38.4615V51.7831C51.3034 53.9396 49.5566 55.6864 47.4001 55.6923H12.217C10.0771 55.6866 8.33714 53.9659 8.30776 51.8262V16.5569C8.29914 15.5145 8.7072 14.5119 9.44126 13.7718C10.1753 13.0316 11.1746 12.6153 12.217 12.6154H25.5385C26.7281 12.6154 27.6924 11.6511 27.6924 10.4615C27.6924 9.272 26.7281 8.30769 25.5385 8.30769H12.217C10.0321 8.30767 7.9372 9.17782 6.39529 10.7258C4.85339 12.2738 3.99147 14.3721 4.00006 16.5569V51.8262C4.02963 56.3449 7.6981 59.9942 12.217 60Z"/></svg>' }, Br = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M51.4283 11.6761L53.1768 9.53891C53.9347 8.61282 53.7982 7.24774 52.8722 6.48993C51.9461 5.73211 50.581 5.86852 49.8232 6.79461L36.3333 23.2822V13.3972C36.3332 11.6447 35.2774 10.0648 33.6583 9.39418C32.0391 8.72356 30.1755 9.09425 28.9362 10.3334L18.1029 21.1668H14.6667C9.88247 21.1722 6.00547 25.0492 6 29.8334V34.1668C6.00547 38.951 9.88247 42.828 14.6667 42.8334H18.1029L19.3315 44.0621L10.8232 54.4613C10.0653 55.3874 10.2018 56.7525 11.1279 57.5103C12.0539 58.2681 13.419 58.1317 14.1768 57.2056L22.411 47.1416L28.9362 53.6668C30.1755 54.9059 32.0391 55.2766 33.6583 54.606C35.2774 53.9354 36.3332 52.3555 36.3333 50.603V30.1254L42.6092 22.4549C44.2201 25.3756 45.044 28.6649 45 32.0001C45.1184 36.1899 43.7698 40.2896 41.1872 43.5909C40.409 44.5001 40.5152 45.8679 41.4243 46.6461C42.3334 47.4243 43.7012 47.3183 44.4795 46.4093C47.7313 42.3208 49.4486 37.2227 49.3333 32.0001C49.403 27.3538 48.067 22.7949 45.5005 18.9211L48.6119 15.1182C52.019 20.0793 53.7867 25.9829 53.6667 32.0001C53.6667 39.0587 51.4873 45.6518 47.6872 50.0909C46.909 51.0001 47.0152 52.3679 47.9243 53.1461C48.8334 53.9243 50.2012 53.8183 50.9795 52.9093C55.4408 47.6968 58 40.0764 58 32.0001C58 24.21 55.6006 16.8662 51.4283 11.6761ZM19.8971 38.5H14.6667C12.2744 38.4977 10.3357 36.559 10.3333 34.1667V29.8334C10.3357 27.4411 12.2744 25.5024 14.6667 25.5H19.8971L32 13.3972V28.5784L22.089 40.6919L19.8971 38.5ZM31.9997 50.603L25.1682 43.7715L31.9997 35.4218V50.603Z"/></svg>' }, Zc = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>' }, ra = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.41642 6.29292C5.99705 5.18016 3.38612 7.41823 4.12858 9.96847L10.5427 32L4.12858 54.0315C3.38612 56.5818 5.99704 58.8198 8.41642 57.7071L58.1942 34.8125C60.6019 33.7051 60.6019 30.2949 58.1942 29.1875L8.41642 6.29292ZM14.2569 29.9351L8.74174 10.9913L49.9295 29.9351H14.2569ZM14.2568 34.0651L8.74174 53.0087L49.9291 34.0651H14.2568Z"/></svg>' }, qr = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M33.6578 9.3322C32.0391 8.65799 30.1735 9.02919 28.9362 10.2717L18.1029 21.105H14.6667C9.88247 21.1105 6.00547 24.9875 6 29.7717V34.105C6.00547 38.8892 9.88247 42.7662 14.6667 42.7717H18.1029L28.9362 53.605C30.1755 54.8442 32.0391 55.2149 33.6583 54.5442C35.2774 53.8736 36.3332 52.2937 36.3333 50.5412V13.3355C36.3365 11.5817 35.2794 10.0001 33.6578 9.3322ZM32 50.5411L19.8971 38.4382H14.6667C12.2744 38.4358 10.3357 36.4971 10.3333 34.1049V29.7716C10.3357 27.3793 12.2744 25.4406 14.6667 25.4382H19.8971L32 13.3353V50.5411ZM49.3334 31.9383C49.4487 37.161 47.7314 42.2591 44.4796 46.3475C43.7013 47.2565 42.3335 47.3625 41.4244 46.5843C40.5153 45.8061 40.4092 44.4383 41.1873 43.5291C43.7699 40.2278 45.1185 36.1282 45.0001 31.9383C45.1185 27.7485 43.7699 23.6488 41.1873 20.3475C40.4092 19.4383 40.5153 18.0705 41.4244 17.2923C42.3335 16.5141 43.7013 16.6201 44.4796 17.5291C47.7314 21.6176 49.4487 26.7157 49.3334 31.9383ZM58.0001 31.9383C58.0001 40.0147 55.441 47.635 50.9796 52.8475C50.2013 53.7565 48.8335 53.8625 47.9244 53.0843C47.0153 52.3061 46.9092 50.9383 47.6873 50.0291C51.4874 45.59 53.6668 38.9969 53.6668 31.9383C53.6668 24.8797 51.4874 18.2866 47.6873 13.8475C46.9092 12.9383 47.0153 11.5705 47.9244 10.7923C48.8335 10.0141 50.2013 10.1201 50.9796 11.0291C55.441 16.2416 58.0001 23.862 58.0001 31.9383Z"/></svg>' }, Yc = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M27.2561 39.1924C27.3201 40.5364 28.0241 41.1764 29.3681 41.1764C32.1201 41.1764 34.8081 39.3844 34.8721 37.5924L35.8961 12.3764C35.8961 10.6484 35.0001 9.81641 33.1441 9.81641C29.6241 9.81641 25.9761 12.1844 25.9761 14.4244L27.2561 39.1924ZM30.9041 55.3847C28.4081 55.3847 26.0401 51.2247 26.0401 49.6247C26.0401 47.3847 29.6881 45.0167 33.2081 45.0167C35.0641 45.0167 36.0241 45.8487 36.0241 47.5767C36.0241 50.2007 34.8081 52.8887 33.2721 54.2967C32.5041 55.0007 31.7361 55.3847 30.9041 55.3847Z"/></svg>' }, dt = {
2167
+ const Bc = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 60C47.464 60 60 47.464 60 32C60 16.536 47.464 4 32 4C16.536 4 4 16.536 4 32C4.01731 47.4568 16.5432 59.9827 32 60ZM32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6923 45.0849 45.0849 55.6923 32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.32247 18.9212 18.9212 8.32247 32 8.30769Z"/><path d="M29.3491 38.6031V20.6807C29.348 19.8662 29.4903 19.0598 29.7675 18.3096C29.9945 17.6371 30.3484 17.0302 30.804 16.5322C31.1251 16.1524 31.5593 15.9246 32.0204 15.894C32.6852 15.894 33.3496 16.471 34.0134 17.625C34.3738 18.1337 34.5955 18.7525 34.6509 19.4042V37.3267C34.6509 37.9947 34.2454 38.6329 33.4345 39.2414C32.6632 39.835 31.7547 40.1521 30.825 40.1523C29.8423 40.1524 29.3503 39.636 29.3491 38.6031Z"/><path d="M33.66 44.6959C33.9649 45.0866 34.161 45.551 34.2284 46.0419C34.2284 46.5397 33.8893 47.0083 33.2109 47.4476C32.5638 47.8771 31.8043 48.1062 31.0275 48.1061C30.1902 48.1061 29.7716 47.7271 29.7716 46.9693C29.7703 46.3788 29.8874 45.7941 30.116 45.2496C30.3064 44.7579 30.6022 44.3138 30.9826 43.9487C31.2626 43.6591 31.6427 43.4875 32.045 43.4692C32.5635 43.4692 33.1019 43.8781 33.66 44.6959Z"/></svg>' }, ia = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M52 7H24C19.5838 7.00505 16.0051 10.5838 16 15V23H12C7.58382 23.0051 4.00505 26.5838 4 31V43C4.00505 47.4162 7.58382 50.9949 12 51H19.1699L24.8789 56.7075C25.737 57.5654 27.0273 57.8219 28.1482 57.3575C29.2692 56.8931 30 55.7993 30 54.5859V51H39.999C44.4152 50.995 47.994 47.4162 47.999 43V35H52C56.4162 34.9949 59.9949 31.4162 60 27V15C59.9949 10.5838 56.4162 7.00505 52 7ZM43.999 43C43.9967 45.2082 42.2072 46.9977 39.999 47H26V52.1724L20.8262 47H12C9.79184 46.9976 8.00235 45.2082 8 43V31C8.00235 28.7918 9.79184 27.0024 12 27H16C16.0051 31.4162 19.5838 34.9949 24 35H30V38.5859C29.999 39.7998 30.7298 40.8945 31.8512 41.359C32.9726 41.8236 34.2634 41.5664 35.1211 40.7075L40.8291 35H43.999V43ZM56 27C55.9977 29.2082 54.2082 30.9976 52 31H39.1729L34 36.1719V31H24C21.7918 30.9976 20.0024 29.2082 20 27V15C20.0024 12.7918 21.7918 11.0024 24 11H52C54.2082 11.0024 55.9977 12.7918 56 15V27Z"/></svg>' }, qc = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9829 16.5431 47.4569 4.01712 32 4ZM44.5613 24.5793L31.6382 43.9639C31.2806 44.5011 30.7008 44.8493 30.0586 44.9126C29.988 44.9197 29.9171 44.9232 29.8462 44.9231C29.275 44.9229 28.7272 44.696 28.3233 44.2921L19.7079 35.6767C19.1639 35.1326 18.9514 34.3396 19.1505 33.5964C19.3497 32.8533 19.9302 32.2728 20.6734 32.0736C21.4166 31.8745 22.2095 32.087 22.7536 32.631L29.5117 39.3881L40.9772 22.1899C41.4016 21.5439 42.1396 21.1749 42.9111 21.2229C43.6825 21.2709 44.3691 21.7286 44.7101 22.4223C45.0511 23.1159 44.9944 23.9391 44.5613 24.5793Z"/></svg>' }, sa = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9998 4C16.5358 4 3.99976 16.536 3.99976 32C3.99976 47.464 16.5358 60 31.9998 60C47.4637 60 59.9998 47.464 59.9998 32C59.9826 16.5431 47.4566 4.01712 31.9998 4ZM31.9998 55.6923C18.9149 55.6923 8.30745 45.0849 8.30745 32C8.30745 18.9151 18.9149 8.30769 31.9998 8.30769C45.0847 8.30769 55.6921 18.9151 55.6921 32C55.6773 45.0788 45.0785 55.6775 31.9998 55.6923ZM44.5611 24.5793L31.638 43.9639C31.2804 44.5011 30.7005 44.8493 30.0584 44.9126C29.9878 44.9197 29.9169 44.9232 29.8459 44.9231C29.2747 44.9229 28.727 44.696 28.3231 44.2921L19.7077 35.6767C19.1636 35.1326 18.9512 34.3396 19.1503 33.5964C19.3494 32.8533 19.9299 32.2728 20.6731 32.0736C21.4163 31.8745 22.2093 32.087 22.7534 32.631L29.5115 39.3881L40.9769 22.1899C41.4013 21.5439 42.1394 21.1749 42.9108 21.2229C43.6823 21.2709 44.3688 21.7286 44.7099 22.4223C45.0509 23.1159 44.9941 23.9391 44.5611 24.5793Z"/></svg>' }, Vc = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M57.5438 13.4967L28.717 50.5596C27.9537 51.5407 26.8061 52.147 25.5654 52.2248C25.4755 52.2301 25.3856 52.2332 25.2967 52.2332C24.1476 52.233 23.0455 51.7763 22.233 50.9637L6.63458 35.3654C6.08729 34.8181 5.87354 34.0204 6.07387 33.2728C6.27419 32.5252 6.85815 31.9412 7.60577 31.7409C8.35339 31.5406 9.15109 31.7543 9.69838 32.3016L25.2967 47.8999L54.1225 10.837C54.5976 10.2258 55.3626 9.91453 56.1295 10.0204C56.8963 10.1263 57.5484 10.6332 57.8402 11.3502C58.1319 12.0673 58.0189 12.8855 57.5438 13.4967Z"/></svg>' }, ra = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M53.0318 24.8653L33.5318 44.3653C33.1256 44.7717 32.5745 45.0001 31.9999 45.0001C31.4253 45.0001 30.8742 44.7717 30.468 44.3653L10.968 24.8653C10.122 24.0193 10.122 22.6476 10.968 21.8015C11.8141 20.9555 13.1858 20.9555 14.0318 21.8015L31.9999 39.7696L49.968 21.8015C50.8141 20.9555 52.1858 20.9555 53.0318 21.8015C53.8779 22.6476 53.8779 24.0193 53.0318 24.8653Z"/></svg>' }, Wc = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 56C45.2548 56 56 45.2548 56 32C56 18.7452 45.2548 8 32 8C18.7452 8 8 18.7452 8 32C8 45.2548 18.7452 56 32 56ZM32 60C47.464 60 60 47.464 60 32C60 16.536 47.464 4 32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60Z"/><path d="M25.2772 22.695C24.5164 21.8942 23.2505 21.8617 22.4497 22.6225C21.6488 23.3833 21.6164 24.6492 22.3772 25.45L29.2411 32.6752L22.4773 39.795C21.7166 40.5958 21.749 41.8617 22.5498 42.6225C23.3507 43.3833 24.6166 43.3508 25.3773 42.55L31.9998 35.5791L38.6222 42.55C39.3829 43.3508 40.6488 43.3833 41.4497 42.6225C42.2505 41.8617 42.2829 40.5958 41.5222 39.795L34.7584 32.6752L41.6223 25.45C42.3831 24.6492 42.3507 23.3833 41.5498 22.6225C40.749 21.8617 39.4831 21.8942 38.7224 22.695L31.9998 29.7714L25.2772 22.695Z"/></svg>' }, hs = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M51.365 48.3012C51.9123 48.8485 52.1261 49.6462 51.9258 50.3939C51.7254 51.1415 51.1415 51.7254 50.3939 51.9258C49.6462 52.1261 48.8485 51.9123 48.3012 51.365L32.4998 35.5636L16.6984 51.365C16.1511 51.9123 15.3534 52.1261 14.6058 51.9258C13.8581 51.7254 13.2742 51.1415 13.0739 50.3939C12.8735 49.6462 13.0873 48.8485 13.6346 48.3012L29.436 32.4998L13.6346 16.6984C13.0873 16.1511 12.8735 15.3534 13.0739 14.6058C13.2742 13.8581 13.8581 13.2742 14.6058 13.0739C15.3534 12.8735 16.1511 13.0873 16.6984 13.6346L32.4998 29.436L48.3012 13.6346C49.1473 12.7885 50.519 12.7885 51.365 13.6346C52.2111 14.4806 52.2111 15.8523 51.365 16.6984L35.5636 32.4998L51.365 48.3012Z"/></svg>' }, Gc = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M58.2618 43.8838L38.8585 11.5469C37.4136 9.13651 34.8097 7.66134 31.9994 7.66113C29.1891 7.66093 26.585 9.13572 25.1397 11.5459L5.73642 43.8838C4.25367 46.3552 4.21482 49.4331 5.6347 51.9411C7.05459 54.4492 9.71372 55.9997 12.5958 56H51.4024C54.2845 55.9997 56.9436 54.4492 58.3635 51.9411C59.7834 49.4331 59.7446 46.3552 58.2618 43.8838ZM29.9991 36.9772V25.1569C29.9983 24.6198 30.1056 24.0879 30.3148 23.5932C30.486 23.1496 30.753 22.7494 31.0968 22.4209C31.339 22.1704 31.6666 22.0202 32.0145 22C32.5161 22 33.0173 22.3805 33.5182 23.1416C33.7901 23.4771 33.9573 23.8852 33.9991 24.3151V36.1354C33.9991 36.5759 33.6932 36.9969 33.0814 37.3982C32.4994 37.7897 31.814 37.9988 31.1126 37.999C30.3712 37.999 30 37.6584 29.9991 36.9772ZM34.2408 43.9236C34.173 43.4297 33.9757 42.9626 33.669 42.5696C33.1076 41.7469 32.566 41.3355 32.0444 41.3355C31.6396 41.354 31.2573 41.5266 30.9757 41.8179C30.593 42.1852 30.2954 42.6319 30.1039 43.1266C29.874 43.6743 29.7562 44.2625 29.7574 44.8565C29.7574 45.6189 30.1786 46 31.0208 46C31.8022 46.0001 32.5662 45.7697 33.2173 45.3377C33.8996 44.8957 34.2408 44.4243 34.2408 43.9236Z"/></svg>' }, Hi = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M59.9139 23.8477V7.90923C59.902 5.75094 58.1522 4.00588 55.9939 4H40.0554C38.8659 4 37.9016 4.96431 37.9016 6.15385C37.9016 7.34338 38.8659 8.30769 40.0554 8.30769H52.4616L29.8462 30.9231C29.4417 31.3271 29.2145 31.8753 29.2145 32.4469C29.2145 33.0186 29.4417 33.5668 29.8462 33.9708C30.2394 34.3609 30.7677 34.5846 31.3216 34.5954C31.8941 34.5987 32.4443 34.3739 32.8508 33.9708L55.6062 11.2046V23.8477C55.6062 25.0372 56.5705 26.0015 57.76 26.0015C58.9495 26.0015 59.9139 25.0372 59.9139 23.8477Z"/><path d="M12.217 60H47.4001C51.9189 59.9942 55.5874 56.3449 55.617 51.8262V38.4615C55.617 37.272 54.6527 36.3077 53.4631 36.3077C52.2736 36.3077 51.3093 37.272 51.3093 38.4615V51.7831C51.3034 53.9396 49.5566 55.6864 47.4001 55.6923H12.217C10.0771 55.6866 8.33714 53.9659 8.30776 51.8262V16.5569C8.29914 15.5145 8.7072 14.5119 9.44126 13.7718C10.1753 13.0316 11.1746 12.6153 12.217 12.6154H25.5385C26.7281 12.6154 27.6924 11.6511 27.6924 10.4615C27.6924 9.272 26.7281 8.30769 25.5385 8.30769H12.217C10.0321 8.30767 7.9372 9.17782 6.39529 10.7258C4.85339 12.2738 3.99147 14.3721 4.00006 16.5569V51.8262C4.02963 56.3449 7.6981 59.9942 12.217 60Z"/></svg>' }, Br = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M51.4283 11.6761L53.1768 9.53891C53.9347 8.61282 53.7982 7.24774 52.8722 6.48993C51.9461 5.73211 50.581 5.86852 49.8232 6.79461L36.3333 23.2822V13.3972C36.3332 11.6447 35.2774 10.0648 33.6583 9.39418C32.0391 8.72356 30.1755 9.09425 28.9362 10.3334L18.1029 21.1668H14.6667C9.88247 21.1722 6.00547 25.0492 6 29.8334V34.1668C6.00547 38.951 9.88247 42.828 14.6667 42.8334H18.1029L19.3315 44.0621L10.8232 54.4613C10.0653 55.3874 10.2018 56.7525 11.1279 57.5103C12.0539 58.2681 13.419 58.1317 14.1768 57.2056L22.411 47.1416L28.9362 53.6668C30.1755 54.9059 32.0391 55.2766 33.6583 54.606C35.2774 53.9354 36.3332 52.3555 36.3333 50.603V30.1254L42.6092 22.4549C44.2201 25.3756 45.044 28.6649 45 32.0001C45.1184 36.1899 43.7698 40.2896 41.1872 43.5909C40.409 44.5001 40.5152 45.8679 41.4243 46.6461C42.3334 47.4243 43.7012 47.3183 44.4795 46.4093C47.7313 42.3208 49.4486 37.2227 49.3333 32.0001C49.403 27.3538 48.067 22.7949 45.5005 18.9211L48.6119 15.1182C52.019 20.0793 53.7867 25.9829 53.6667 32.0001C53.6667 39.0587 51.4873 45.6518 47.6872 50.0909C46.909 51.0001 47.0152 52.3679 47.9243 53.1461C48.8334 53.9243 50.2012 53.8183 50.9795 52.9093C55.4408 47.6968 58 40.0764 58 32.0001C58 24.21 55.6006 16.8662 51.4283 11.6761ZM19.8971 38.5H14.6667C12.2744 38.4977 10.3357 36.559 10.3333 34.1667V29.8334C10.3357 27.4411 12.2744 25.5024 14.6667 25.5H19.8971L32 13.3972V28.5784L22.089 40.6919L19.8971 38.5ZM31.9997 50.603L25.1682 43.7715L31.9997 35.4218V50.603Z"/></svg>' }, Zc = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>' }, oa = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.41642 6.29292C5.99705 5.18016 3.38612 7.41823 4.12858 9.96847L10.5427 32L4.12858 54.0315C3.38612 56.5818 5.99704 58.8198 8.41642 57.7071L58.1942 34.8125C60.6019 33.7051 60.6019 30.2949 58.1942 29.1875L8.41642 6.29292ZM14.2569 29.9351L8.74174 10.9913L49.9295 29.9351H14.2569ZM14.2568 34.0651L8.74174 53.0087L49.9291 34.0651H14.2568Z"/></svg>' }, qr = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M33.6578 9.3322C32.0391 8.65799 30.1735 9.02919 28.9362 10.2717L18.1029 21.105H14.6667C9.88247 21.1105 6.00547 24.9875 6 29.7717V34.105C6.00547 38.8892 9.88247 42.7662 14.6667 42.7717H18.1029L28.9362 53.605C30.1755 54.8442 32.0391 55.2149 33.6583 54.5442C35.2774 53.8736 36.3332 52.2937 36.3333 50.5412V13.3355C36.3365 11.5817 35.2794 10.0001 33.6578 9.3322ZM32 50.5411L19.8971 38.4382H14.6667C12.2744 38.4358 10.3357 36.4971 10.3333 34.1049V29.7716C10.3357 27.3793 12.2744 25.4406 14.6667 25.4382H19.8971L32 13.3353V50.5411ZM49.3334 31.9383C49.4487 37.161 47.7314 42.2591 44.4796 46.3475C43.7013 47.2565 42.3335 47.3625 41.4244 46.5843C40.5153 45.8061 40.4092 44.4383 41.1873 43.5291C43.7699 40.2278 45.1185 36.1282 45.0001 31.9383C45.1185 27.7485 43.7699 23.6488 41.1873 20.3475C40.4092 19.4383 40.5153 18.0705 41.4244 17.2923C42.3335 16.5141 43.7013 16.6201 44.4796 17.5291C47.7314 21.6176 49.4487 26.7157 49.3334 31.9383ZM58.0001 31.9383C58.0001 40.0147 55.441 47.635 50.9796 52.8475C50.2013 53.7565 48.8335 53.8625 47.9244 53.0843C47.0153 52.3061 46.9092 50.9383 47.6873 50.0291C51.4874 45.59 53.6668 38.9969 53.6668 31.9383C53.6668 24.8797 51.4874 18.2866 47.6873 13.8475C46.9092 12.9383 47.0153 11.5705 47.9244 10.7923C48.8335 10.0141 50.2013 10.1201 50.9796 11.0291C55.441 16.2416 58.0001 23.862 58.0001 31.9383Z"/></svg>' }, Yc = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M27.2561 39.1924C27.3201 40.5364 28.0241 41.1764 29.3681 41.1764C32.1201 41.1764 34.8081 39.3844 34.8721 37.5924L35.8961 12.3764C35.8961 10.6484 35.0001 9.81641 33.1441 9.81641C29.6241 9.81641 25.9761 12.1844 25.9761 14.4244L27.2561 39.1924ZM30.9041 55.3847C28.4081 55.3847 26.0401 51.2247 26.0401 49.6247C26.0401 47.3847 29.6881 45.0167 33.2081 45.0167C35.0641 45.0167 36.0241 45.8487 36.0241 47.5767C36.0241 50.2007 34.8081 52.8887 33.2721 54.2967C32.5041 55.0007 31.7361 55.3847 30.9041 55.3847Z"/></svg>' }, dt = {
2168
2168
  allRenderFn: !1,
2169
2169
  cmpDidLoad: !0,
2170
2170
  cmpDidUnload: !1,
@@ -2248,8 +2248,8 @@ const jc = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" f
2248
2248
  transformTagName: !1,
2249
2249
  attachStyles: !0
2250
2250
  };
2251
- let pt, oa, Qn, aa = !1, Ln = !1, ds = !1, te = !1, Vr = null, Fi = !1;
2252
- const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} }, la = Xn.HTMLElement || class {
2251
+ let pt, aa, Qn, la = !1, Ln = !1, ds = !1, ne = !1, Vr = null, Fi = !1;
2252
+ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} }, ca = Xn.HTMLElement || class {
2253
2253
  }, Q = {
2254
2254
  $flags$: 0,
2255
2255
  $resourcesUrl$: "",
@@ -2261,7 +2261,7 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
2261
2261
  }, Qc = /* @__PURE__ */ (() => {
2262
2262
  let n = !1;
2263
2263
  try {
2264
- ve.addEventListener("e", null, Object.defineProperty({}, "passive", {
2264
+ ye.addEventListener("e", null, Object.defineProperty({}, "passive", {
2265
2265
  get() {
2266
2266
  n = !0;
2267
2267
  }
@@ -2275,7 +2275,7 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
2275
2275
  } catch {
2276
2276
  }
2277
2277
  return !1;
2278
- })(), ca = (n, e, t, i) => {
2278
+ })(), ua = (n, e, t, i) => {
2279
2279
  t && t.map(([s, r, o]) => {
2280
2280
  const a = eu(n, s), l = Jc(e, o), c = tu(s);
2281
2281
  Q.ael(a, r, l, c), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => Q.rel(a, r, l, c));
@@ -2286,7 +2286,7 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
2286
2286
  } catch (i) {
2287
2287
  sn(i);
2288
2288
  }
2289
- }, eu = (n, e) => e & 4 ? ve : e & 8 ? Xn : e & 16 ? ve.body : n, tu = (n) => Qc ? {
2289
+ }, eu = (n, e) => e & 4 ? ye : e & 8 ? Xn : e & 16 ? ye.body : n, tu = (n) => Qc ? {
2290
2290
  passive: (n & 1) !== 0,
2291
2291
  capture: (n & 2) !== 0
2292
2292
  } : (n & 2) !== 0, Wr = "http://www.w3.org/1999/xlink", Je = (n, e = "") => () => {
@@ -2294,18 +2294,18 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
2294
2294
  let i = Pn.get(n);
2295
2295
  Kc && t ? (i = i || new CSSStyleSheet(), i.replace(e)) : i = e, Pn.set(n, i);
2296
2296
  }, iu = (n, e, t, i) => {
2297
- let s = ua(e, t), r = Pn.get(s);
2298
- if (n = n.nodeType === 11 ? n : ve, r)
2297
+ let s = ha(e, t), r = Pn.get(s);
2298
+ if (n = n.nodeType === 11 ? n : ye, r)
2299
2299
  if (typeof r == "string") {
2300
2300
  n = n.head || n;
2301
2301
  let o = Gr.get(n), a;
2302
- o || Gr.set(n, o = /* @__PURE__ */ new Set()), o.has(s) || (a = ve.createElement("style"), a.innerHTML = r, n.insertBefore(a, n.querySelector("link")), o && o.add(s));
2302
+ o || Gr.set(n, o = /* @__PURE__ */ new Set()), o.has(s) || (a = ye.createElement("style"), a.innerHTML = r, n.insertBefore(a, n.querySelector("link")), o && o.add(s));
2303
2303
  } else n.adoptedStyleSheets.includes(r) || (n.adoptedStyleSheets = [...n.adoptedStyleSheets, r]);
2304
2304
  return s;
2305
2305
  }, su = (n) => {
2306
2306
  const e = n.$cmpMeta$, t = n.$hostElement$, i = e.$flags$, s = Je("attachStyles", e.$tagName$), r = iu(t.shadowRoot ? t.shadowRoot : t.getRootNode(), e, n.$modeName$);
2307
2307
  i & 10 && (t["s-sc"] = r, t.classList.add(r + "-h"), i & 2 && t.classList.add(r + "-s")), s();
2308
- }, ua = (n, e) => "sc-" + (e && n.$flags$ & 32 ? n.$tagName$ + "-" + e : n.$tagName$), ru = (n) => Iu.map((e) => e(n)).find((e) => !!e), Zr = {}, ou = "http://www.w3.org/2000/svg", au = "http://www.w3.org/1999/xhtml", lu = (n) => n != null, ps = (n) => (n = typeof n, n === "object" || n === "function"), mt = (n, e, ...t) => {
2308
+ }, ha = (n, e) => "sc-" + (e && n.$flags$ & 32 ? n.$tagName$ + "-" + e : n.$tagName$), ru = (n) => Iu.map((e) => e(n)).find((e) => !!e), Zr = {}, ou = "http://www.w3.org/2000/svg", au = "http://www.w3.org/1999/xhtml", lu = (n) => n != null, ps = (n) => (n = typeof n, n === "object" || n === "function"), mt = (n, e, ...t) => {
2309
2309
  let i = null, s = null, r = null, o = !1, a = !1, l = [];
2310
2310
  const c = (p) => {
2311
2311
  for (let d = 0; d < p.length; d++)
@@ -2380,7 +2380,7 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
2380
2380
  a !== (a = a.replace(/^xlink\:?/, "")) && (e = a, c = !0), i == null || i === !1 ? (i !== !1 || n.getAttribute(e) === "") && (c ? n.removeAttributeNS(Wr, e) : n.removeAttribute(e)) : (!o || r & 4 || s) && !l && (i = i === !0 ? "" : i, c ? n.setAttributeNS(Wr, e, i) : n.setAttribute(e, i));
2381
2381
  }
2382
2382
  }
2383
- }, du = /\s/, Xr = (n) => n ? n.split(du) : [], ha = (n, e, t, i) => {
2383
+ }, du = /\s/, Xr = (n) => n ? n.split(du) : [], da = (n, e, t, i) => {
2384
2384
  const s = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, r = n && n.$attrs$ || Zr, o = e.$attrs$ || Zr;
2385
2385
  for (i in r)
2386
2386
  i in o || Qr(s, i, r[i], void 0, t, e.$flags$);
@@ -2388,38 +2388,38 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
2388
2388
  Qr(s, i, r[i], o[i], t, e.$flags$);
2389
2389
  }, In = (n, e, t, i) => {
2390
2390
  let s = e.$children$[t], r = 0, o, a, l;
2391
- if (aa || (ds = !0, s.$tag$ === "slot" && (pt && i.classList.add(pt + "-s"), s.$flags$ |= s.$children$ ? (
2391
+ if (la || (ds = !0, s.$tag$ === "slot" && (pt && i.classList.add(pt + "-s"), s.$flags$ |= s.$children$ ? (
2392
2392
  // slot element has fallback content
2393
2393
  2
2394
2394
  ) : (
2395
2395
  // slot element does not have fallback content
2396
2396
  1
2397
2397
  ))), s.$text$ !== null)
2398
- o = s.$elm$ = ve.createTextNode(s.$text$);
2398
+ o = s.$elm$ = ye.createTextNode(s.$text$);
2399
2399
  else if (s.$flags$ & 1)
2400
- o = s.$elm$ = ve.createTextNode("");
2400
+ o = s.$elm$ = ye.createTextNode("");
2401
2401
  else {
2402
- if (te || (te = s.$tag$ === "svg"), o = s.$elm$ = ve.createElementNS(te ? ou : au, s.$flags$ & 2 ? "slot-fb" : s.$tag$), te && s.$tag$ === "foreignObject" && (te = !1), ha(null, s, te), lu(pt) && o["s-si"] !== pt && o.classList.add(o["s-si"] = pt), s.$children$)
2402
+ if (ne || (ne = s.$tag$ === "svg"), o = s.$elm$ = ye.createElementNS(ne ? ou : au, s.$flags$ & 2 ? "slot-fb" : s.$tag$), ne && s.$tag$ === "foreignObject" && (ne = !1), da(null, s, ne), lu(pt) && o["s-si"] !== pt && o.classList.add(o["s-si"] = pt), s.$children$)
2403
2403
  for (r = 0; r < s.$children$.length; ++r)
2404
2404
  a = In(n, s, r, o), a && o.appendChild(a);
2405
- s.$tag$ === "svg" ? te = !1 : o.tagName === "foreignObject" && (te = !0);
2405
+ s.$tag$ === "svg" ? ne = !1 : o.tagName === "foreignObject" && (ne = !0);
2406
2406
  }
2407
- return o["s-hn"] = Qn, s.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = oa, o["s-sn"] = s.$name$ || "", l = n && n.$children$ && n.$children$[t], l && l.$tag$ === s.$tag$ && n.$elm$ && Gt(n.$elm$, !1)), o;
2407
+ return o["s-hn"] = Qn, s.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = aa, o["s-sn"] = s.$name$ || "", l = n && n.$children$ && n.$children$[t], l && l.$tag$ === s.$tag$ && n.$elm$ && Gt(n.$elm$, !1)), o;
2408
2408
  }, Gt = (n, e) => {
2409
2409
  Q.$flags$ |= 1;
2410
2410
  const t = n.childNodes;
2411
2411
  for (let i = t.length - 1; i >= 0; i--) {
2412
2412
  const s = t[i];
2413
- s["s-hn"] !== Qn && s["s-ol"] && (fa(s).insertBefore(s, gs(s)), s["s-ol"].remove(), s["s-ol"] = void 0, ds = !0), e && Gt(s, e);
2413
+ s["s-hn"] !== Qn && s["s-ol"] && (ga(s).insertBefore(s, gs(s)), s["s-ol"].remove(), s["s-ol"] = void 0, ds = !0), e && Gt(s, e);
2414
2414
  }
2415
2415
  Q.$flags$ &= -2;
2416
- }, da = (n, e, t, i, s, r) => {
2416
+ }, pa = (n, e, t, i, s, r) => {
2417
2417
  let o = n["s-cr"] && n["s-cr"].parentNode || n, a;
2418
2418
  for (o.shadowRoot && o.tagName === Qn && (o = o.shadowRoot); s <= r; ++s)
2419
2419
  i[s] && (a = In(null, t, s, n), a && (i[s].$elm$ = a, o.insertBefore(a, gs(e))));
2420
- }, pa = (n, e, t, i, s) => {
2420
+ }, fa = (n, e, t, i, s) => {
2421
2421
  for (; e <= t; ++e)
2422
- (i = n[e]) && (s = i.$elm$, va(i), Ln = !0, s["s-ol"] ? s["s-ol"].remove() : Gt(s, !0), s.remove());
2422
+ (i = n[e]) && (s = i.$elm$, ba(i), Ln = !0, s["s-ol"] ? s["s-ol"].remove() : Gt(s, !0), s.remove());
2423
2423
  }, pu = (n, e, t, i) => {
2424
2424
  let s = 0, r = 0, o = 0, a = 0, l = e.length - 1, c = e[0], u = e[l], p = i.length - 1, d = i[0], g = i[p], m, $;
2425
2425
  for (; s <= l && r <= p; )
@@ -2445,14 +2445,14 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
2445
2445
  o = a;
2446
2446
  break;
2447
2447
  }
2448
- o >= 0 ? ($ = e[o], $.$tag$ !== d.$tag$ ? m = In(e && e[r], t, o, n) : (ft($, d), e[o] = void 0, m = $.$elm$), d = i[++r]) : (m = In(e && e[r], t, r, n), d = i[++r]), m && fa(c.$elm$).insertBefore(m, gs(c.$elm$));
2448
+ o >= 0 ? ($ = e[o], $.$tag$ !== d.$tag$ ? m = In(e && e[r], t, o, n) : (ft($, d), e[o] = void 0, m = $.$elm$), d = i[++r]) : (m = In(e && e[r], t, r, n), d = i[++r]), m && ga(c.$elm$).insertBefore(m, gs(c.$elm$));
2449
2449
  }
2450
- s > l ? da(n, i[p + 1] == null ? null : i[p + 1].$elm$, t, i, r, p) : r > p && pa(e, s, l);
2451
- }, vn = (n, e) => n.$tag$ === e.$tag$ ? n.$tag$ === "slot" ? n.$name$ === e.$name$ : n.$key$ === e.$key$ : !1, gs = (n) => n && n["s-ol"] || n, fa = (n) => (n["s-ol"] ? n["s-ol"] : n).parentNode, ft = (n, e) => {
2450
+ s > l ? pa(n, i[p + 1] == null ? null : i[p + 1].$elm$, t, i, r, p) : r > p && fa(e, s, l);
2451
+ }, vn = (n, e) => n.$tag$ === e.$tag$ ? n.$tag$ === "slot" ? n.$name$ === e.$name$ : n.$key$ === e.$key$ : !1, gs = (n) => n && n["s-ol"] || n, ga = (n) => (n["s-ol"] ? n["s-ol"] : n).parentNode, ft = (n, e) => {
2452
2452
  const t = e.$elm$ = n.$elm$, i = n.$children$, s = e.$children$, r = e.$tag$, o = e.$text$;
2453
2453
  let a;
2454
- o === null ? (te = r === "svg" ? !0 : r === "foreignObject" ? !1 : te, r === "slot" || ha(n, e, te), i !== null && s !== null ? pu(t, i, e, s) : s !== null ? (n.$text$ !== null && (t.textContent = ""), da(t, null, e, s, 0, s.length - 1)) : i !== null && pa(i, 0, i.length - 1), te && r === "svg" && (te = !1)) : (a = t["s-cr"]) ? a.parentNode.textContent = o : n.$text$ !== o && (t.data = o);
2455
- }, ga = (n) => {
2454
+ o === null ? (ne = r === "svg" ? !0 : r === "foreignObject" ? !1 : ne, r === "slot" || da(n, e, ne), i !== null && s !== null ? pu(t, i, e, s) : s !== null ? (n.$text$ !== null && (t.textContent = ""), pa(t, null, e, s, 0, s.length - 1)) : i !== null && fa(i, 0, i.length - 1), ne && r === "svg" && (ne = !1)) : (a = t["s-cr"]) ? a.parentNode.textContent = o : n.$text$ !== o && (t.data = o);
2455
+ }, ma = (n) => {
2456
2456
  let e = n.childNodes, t, i, s, r, o, a;
2457
2457
  for (i = 0, s = e.length; i < s; i++)
2458
2458
  if (t = e[i], t.nodeType === 1) {
@@ -2468,36 +2468,36 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
2468
2468
  break;
2469
2469
  }
2470
2470
  }
2471
- ga(t);
2471
+ ma(t);
2472
2472
  }
2473
- }, ce = [], ma = (n) => {
2473
+ }, he = [], va = (n) => {
2474
2474
  let e, t, i, s, r, o, a = 0, l = n.childNodes, c = l.length;
2475
2475
  for (; a < c; a++) {
2476
2476
  if (e = l[a], e["s-sr"] && (t = e["s-cr"]) && t.parentNode)
2477
2477
  for (i = t.parentNode.childNodes, s = e["s-sn"], o = i.length - 1; o >= 0; o--)
2478
- t = i[o], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== e["s-hn"] && (Kr(t, s) ? (r = ce.find((u) => u.$nodeToRelocate$ === t), Ln = !0, t["s-sn"] = t["s-sn"] || s, r ? r.$slotRefNode$ = e : ce.push({
2478
+ t = i[o], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== e["s-hn"] && (Kr(t, s) ? (r = he.find((u) => u.$nodeToRelocate$ === t), Ln = !0, t["s-sn"] = t["s-sn"] || s, r ? r.$slotRefNode$ = e : he.push({
2479
2479
  $slotRefNode$: e,
2480
2480
  $nodeToRelocate$: t
2481
- }), t["s-sr"] && ce.map((u) => {
2482
- Kr(u.$nodeToRelocate$, t["s-sn"]) && (r = ce.find((p) => p.$nodeToRelocate$ === t), r && !u.$slotRefNode$ && (u.$slotRefNode$ = r.$slotRefNode$));
2483
- })) : ce.some((u) => u.$nodeToRelocate$ === t) || ce.push({
2481
+ }), t["s-sr"] && he.map((u) => {
2482
+ Kr(u.$nodeToRelocate$, t["s-sn"]) && (r = he.find((p) => p.$nodeToRelocate$ === t), r && !u.$slotRefNode$ && (u.$slotRefNode$ = r.$slotRefNode$));
2483
+ })) : he.some((u) => u.$nodeToRelocate$ === t) || he.push({
2484
2484
  $nodeToRelocate$: t
2485
2485
  }));
2486
- e.nodeType === 1 && ma(e);
2486
+ e.nodeType === 1 && va(e);
2487
2487
  }
2488
- }, Kr = (n, e) => n.nodeType === 1 ? n.getAttribute("slot") === null && e === "" || n.getAttribute("slot") === e : n["s-sn"] === e ? !0 : e === "", va = (n) => {
2489
- n.$attrs$ && n.$attrs$.ref && n.$attrs$.ref(null), n.$children$ && n.$children$.map(va);
2488
+ }, Kr = (n, e) => n.nodeType === 1 ? n.getAttribute("slot") === null && e === "" || n.getAttribute("slot") === e : n["s-sn"] === e ? !0 : e === "", ba = (n) => {
2489
+ n.$attrs$ && n.$attrs$.ref && n.$attrs$.ref(null), n.$children$ && n.$children$.map(ba);
2490
2490
  }, fu = (n, e) => {
2491
2491
  const t = n.$hostElement$, i = n.$cmpMeta$, s = n.$vnode$ || Rn(null, null), r = cu(e) ? e : mt(null, null, e);
2492
- Qn = t.tagName, i.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, i.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = t[o])), r.$tag$ = null, r.$flags$ |= 4, n.$vnode$ = r, r.$elm$ = s.$elm$ = t.shadowRoot || t, pt = t["s-sc"], oa = t["s-cr"], aa = (i.$flags$ & 1) !== 0, Ln = !1, ft(s, r);
2492
+ Qn = t.tagName, i.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, i.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = t[o])), r.$tag$ = null, r.$flags$ |= 4, n.$vnode$ = r, r.$elm$ = s.$elm$ = t.shadowRoot || t, pt = t["s-sc"], aa = t["s-cr"], la = (i.$flags$ & 1) !== 0, Ln = !1, ft(s, r);
2493
2493
  {
2494
2494
  if (Q.$flags$ |= 1, ds) {
2495
- ma(r.$elm$);
2495
+ va(r.$elm$);
2496
2496
  let o, a, l, c, u, p, d = 0;
2497
- for (; d < ce.length; d++)
2498
- o = ce[d], a = o.$nodeToRelocate$, a["s-ol"] || (l = ve.createTextNode(""), l["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = l, a));
2499
- for (d = 0; d < ce.length; d++)
2500
- if (o = ce[d], a = o.$nodeToRelocate$, o.$slotRefNode$) {
2497
+ for (; d < he.length; d++)
2498
+ o = he[d], a = o.$nodeToRelocate$, a["s-ol"] || (l = ye.createTextNode(""), l["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = l, a));
2499
+ for (d = 0; d < he.length; d++)
2500
+ if (o = he[d], a = o.$nodeToRelocate$, o.$slotRefNode$) {
2501
2501
  for (c = o.$slotRefNode$.parentNode, u = o.$slotRefNode$.nextSibling, l = a["s-ol"]; l = l.previousSibling; )
2502
2502
  if (p = l["s-nr"], p && p["s-sn"] === a["s-sn"] && c === p.parentNode && (p = p.nextSibling, !p || !p["s-nr"])) {
2503
2503
  u = p;
@@ -2507,7 +2507,7 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
2507
2507
  } else
2508
2508
  a.nodeType === 1 && (a.hidden = !0);
2509
2509
  }
2510
- Ln && ga(r.$elm$), Q.$flags$ &= -2, ce.length = 0;
2510
+ Ln && ma(r.$elm$), Q.$flags$ &= -2, he.length = 0;
2511
2511
  }
2512
2512
  }, gu = (n) => n, mu = (n, e, t) => {
2513
2513
  const i = gu(n);
@@ -2523,7 +2523,7 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
2523
2523
  const i = Q.ce(e, t);
2524
2524
  return n.dispatchEvent(i), i;
2525
2525
  }, bu = (n, e) => {
2526
- }, ba = (n, e) => (n.$flags$ |= 16, bu(n, n.$ancestorComponent$), Uu(() => yu(n, e))), yu = (n, e) => {
2526
+ }, ya = (n, e) => (n.$flags$ |= 16, bu(n, n.$ancestorComponent$), Uu(() => yu(n, e))), yu = (n, e) => {
2527
2527
  const t = n.$hostElement$, i = Je("scheduleUpdate", n.$cmpMeta$.$tagName$), s = t;
2528
2528
  let r;
2529
2529
  return e ? r = vt(s, "componentWillLoad") : r = vt(s, "componentWillUpdate"), r = Jr(r, () => vt(s, "componentWillRender")), i(), Jr(r, () => $u(n, s, e));
@@ -2569,7 +2569,7 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
2569
2569
  if ((a & 18) === 2) {
2570
2570
  if (l.componentShouldUpdate && l.componentShouldUpdate(t, o, e) === !1)
2571
2571
  return;
2572
- ba(s, !1);
2572
+ ya(s, !1);
2573
2573
  }
2574
2574
  }
2575
2575
  }
@@ -2614,18 +2614,18 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
2614
2614
  if ((e.$flags$ & 32) === 0 && (s = n.constructor, e.$flags$ |= 32, customElements.whenDefined(t.$tagName$).then(() => e.$flags$ |= 128), s.style)) {
2615
2615
  let o = s.style;
2616
2616
  typeof o != "string" && (o = o[e.$modeName$ = ru(n)]);
2617
- const a = ua(t, e.$modeName$);
2617
+ const a = ha(t, e.$modeName$);
2618
2618
  if (!Pn.has(a)) {
2619
2619
  const l = Je("registerStyles", t.$tagName$);
2620
2620
  nu(a, o, !!(t.$flags$ & 1)), l();
2621
2621
  }
2622
2622
  }
2623
- e.$ancestorComponent$, ba(e, !0);
2623
+ e.$ancestorComponent$, ya(e, !0);
2624
2624
  }, Au = (n) => {
2625
2625
  }, Tu = (n) => {
2626
2626
  if ((Q.$flags$ & 1) === 0) {
2627
2627
  const e = Kn(n), t = e.$cmpMeta$, i = Je("connectedCallback", t.$tagName$);
2628
- e.$flags$ & 1 ? (ca(n, e, t.$listeners$), Au(e.$lazyInstance$)) : (e.$flags$ |= 1, t.$flags$ & 12 && Ou(n), t.$members$ && Object.entries(t.$members$).map(([s, [r]]) => {
2628
+ e.$flags$ & 1 ? (ua(n, e, t.$listeners$), Au(e.$lazyInstance$)) : (e.$flags$ |= 1, t.$flags$ & 12 && Ou(n), t.$members$ && Object.entries(t.$members$).map(([s, [r]]) => {
2629
2629
  if (r & 31 && n.hasOwnProperty(s)) {
2630
2630
  const o = n[s];
2631
2631
  delete n[s], n[s] = o;
@@ -2633,14 +2633,14 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
2633
2633
  }), _u(n, e, t)), i();
2634
2634
  }
2635
2635
  }, Ou = (n) => {
2636
- const e = n["s-cr"] = ve.createComment("");
2636
+ const e = n["s-cr"] = ye.createComment("");
2637
2637
  e["s-cn"] = !0, n.insertBefore(e, n.firstChild);
2638
2638
  }, Lu = (n) => {
2639
2639
  if ((Q.$flags$ & 1) === 0) {
2640
2640
  const e = Kn(n);
2641
2641
  e.$rmListeners$ && (e.$rmListeners$.map((t) => t()), e.$rmListeners$ = void 0);
2642
2642
  }
2643
- }, ya = (n, e) => {
2643
+ }, $a = (n, e) => {
2644
2644
  const t = {
2645
2645
  $flags$: e[0],
2646
2646
  $tagName$: e[1]
@@ -2664,15 +2664,15 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
2664
2664
  });
2665
2665
  }
2666
2666
  }), n.is = t.$tagName$, Eu(n, t);
2667
- }, $a = /* @__PURE__ */ new WeakMap(), Kn = (n) => $a.get(n), Ru = (n, e) => {
2667
+ }, wa = /* @__PURE__ */ new WeakMap(), Kn = (n) => wa.get(n), Ru = (n, e) => {
2668
2668
  const t = {
2669
2669
  $flags$: 0,
2670
2670
  $hostElement$: n,
2671
2671
  $cmpMeta$: e,
2672
2672
  $instanceValues$: /* @__PURE__ */ new Map()
2673
2673
  };
2674
- return ca(n, t, e.$listeners$), $a.set(n, t);
2675
- }, eo = (n, e) => e in n, sn = (n, e) => (0, console.error)(n, e), Pn = /* @__PURE__ */ new Map(), Iu = [], to = [], wa = [], Pu = (n, e) => (t) => {
2674
+ return ua(n, t, e.$listeners$), wa.set(n, t);
2675
+ }, eo = (n, e) => e in n, sn = (n, e) => (0, console.error)(n, e), Pn = /* @__PURE__ */ new Map(), Iu = [], to = [], xa = [], Pu = (n, e) => (t) => {
2676
2676
  n.push(t), Fi || (Fi = !0, e && Q.$flags$ & 4 ? Mu(ji) : Q.raf(ji));
2677
2677
  }, no = (n) => {
2678
2678
  for (let e = 0; e < n.length; e++)
@@ -2683,8 +2683,8 @@ const Xn = typeof window < "u" ? window : {}, ve = Xn.document || { head: {} },
2683
2683
  }
2684
2684
  n.length = 0;
2685
2685
  }, ji = () => {
2686
- no(to), no(wa), (Fi = to.length > 0) && Q.raf(ji);
2687
- }, Mu = (n) => Xc().then(n), Uu = /* @__PURE__ */ Pu(wa, !0), Nu = (n = {}) => {
2686
+ no(to), no(xa), (Fi = to.length > 0) && Q.raf(ji);
2687
+ }, Mu = (n) => Xc().then(n), Uu = /* @__PURE__ */ Pu(xa, !0), Nu = (n = {}) => {
2688
2688
  const { content: e = "", title: t, attributes: i = [] } = n;
2689
2689
  let s = "", r = [
2690
2690
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
@@ -2701,7 +2701,7 @@ class Hu {
2701
2701
  this.voca_component = e, this.voca_added = zu(/* @__PURE__ */ new Date());
2702
2702
  }
2703
2703
  }
2704
- const Fu = "telia-vst{display:none}", ju = /* @__PURE__ */ ya(class extends la {
2704
+ const Fu = "telia-vst{display:none}", ju = /* @__PURE__ */ $a(class extends ca {
2705
2705
  constructor() {
2706
2706
  super(), this.__registerHost(), this.vocaInternalUStats = mu(this, "vocaInternalUStats");
2707
2707
  }
@@ -2717,7 +2717,7 @@ const Fu = "telia-vst{display:none}", ju = /* @__PURE__ */ ya(class extends la {
2717
2717
  }, [0, "telia-vst", {
2718
2718
  dataTrackingId: [1, "data-tracking-id"]
2719
2719
  }]);
2720
- function xa() {
2720
+ function ka() {
2721
2721
  if (typeof customElements > "u")
2722
2722
  return;
2723
2723
  ["telia-vst"].forEach((e) => {
@@ -2728,7 +2728,7 @@ function xa() {
2728
2728
  }
2729
2729
  });
2730
2730
  }
2731
- xa();
2731
+ ka();
2732
2732
  function Bi() {
2733
2733
  return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
2734
2734
  }
@@ -2739,7 +2739,7 @@ function Bu() {
2739
2739
  function qu() {
2740
2740
  return Bi().vocadsIconsRegistered;
2741
2741
  }
2742
- const Vu = ".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}", Wu = /* @__PURE__ */ ya(class extends la {
2742
+ const Vu = ".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}", Wu = /* @__PURE__ */ $a(class extends ca {
2743
2743
  constructor() {
2744
2744
  super(), this.__registerHost(), this.size = "md", this.allyTitle = null, this.dataTrackingId = "telia-icon";
2745
2745
  }
@@ -2789,7 +2789,7 @@ function Gu() {
2789
2789
  customElements.get(e) || customElements.define(e, Wu);
2790
2790
  break;
2791
2791
  case "telia-vst":
2792
- customElements.get(e) || xa();
2792
+ customElements.get(e) || ka();
2793
2793
  break;
2794
2794
  }
2795
2795
  });
@@ -2832,7 +2832,7 @@ function k(n) {
2832
2832
  * Copyright 2017 Google LLC
2833
2833
  * SPDX-License-Identifier: BSD-3-Clause
2834
2834
  */
2835
- function O(n) {
2835
+ function T(n) {
2836
2836
  return k({ ...n, state: !0, attribute: !1 });
2837
2837
  }
2838
2838
  /**
@@ -2880,7 +2880,7 @@ const Ft = (n, e) => {
2880
2880
  if ((e = n._$AM) === void 0) break;
2881
2881
  t = e._$AN, t.delete(n), n = e;
2882
2882
  } while ((t == null ? void 0 : t.size) === 0);
2883
- }, ka = (n) => {
2883
+ }, Sa = (n) => {
2884
2884
  for (let e; e = n._$AM; n = e) {
2885
2885
  let t = e._$AN;
2886
2886
  if (t === void 0) e._$AN = t = /* @__PURE__ */ new Set();
@@ -2889,7 +2889,7 @@ const Ft = (n, e) => {
2889
2889
  }
2890
2890
  };
2891
2891
  function Xu(n) {
2892
- this._$AN !== void 0 ? (Mn(this), this._$AM = n, ka(this)) : this._$AM = n;
2892
+ this._$AN !== void 0 ? (Mn(this), this._$AM = n, Sa(this)) : this._$AM = n;
2893
2893
  }
2894
2894
  function Ku(n, e = !1, t = 0) {
2895
2895
  const i = this._$AH, s = this._$AN;
@@ -2900,12 +2900,12 @@ function Ku(n, e = !1, t = 0) {
2900
2900
  const Ju = (n) => {
2901
2901
  n.type == rn.CHILD && (n._$AP ?? (n._$AP = Ku), n._$AQ ?? (n._$AQ = Xu));
2902
2902
  };
2903
- let Sa = class extends Jn {
2903
+ let Ca = class extends Jn {
2904
2904
  constructor() {
2905
2905
  super(...arguments), this._$AN = void 0;
2906
2906
  }
2907
2907
  _$AT(e, t, i) {
2908
- super._$AT(e, t, i), ka(this), this.isConnected = e._$AU;
2908
+ super._$AT(e, t, i), Sa(this), this.isConnected = e._$AU;
2909
2909
  }
2910
2910
  _$AO(e, t = !0) {
2911
2911
  var i, s;
@@ -2928,10 +2928,10 @@ let Sa = class extends Jn {
2928
2928
  * Copyright 2020 Google LLC
2929
2929
  * SPDX-License-Identifier: BSD-3-Clause
2930
2930
  */
2931
- const ge = () => new eh();
2931
+ const ve = () => new eh();
2932
2932
  class eh {
2933
2933
  }
2934
- const ki = /* @__PURE__ */ new WeakMap(), me = on(class extends Sa {
2934
+ const ki = /* @__PURE__ */ new WeakMap(), be = on(class extends Ca {
2935
2935
  render(n) {
2936
2936
  return w;
2937
2937
  }
@@ -2984,7 +2984,7 @@ const wt = on(class extends Jn {
2984
2984
  const o = !!e[r];
2985
2985
  o === this.st.has(r) || (s = this.nt) != null && s.has(r) || (o ? (t.add(r), this.st.add(r)) : (t.remove(r), this.st.delete(r)));
2986
2986
  }
2987
- return Te;
2987
+ return Le;
2988
2988
  }
2989
2989
  });
2990
2990
  var th = Object.defineProperty, nh = (n, e, t, i) => {
@@ -3005,7 +3005,7 @@ const Ls = class Ls extends _ {
3005
3005
  }
3006
3006
  };
3007
3007
  Ls.styles = [
3008
- T`
3008
+ O`
3009
3009
  :host {
3010
3010
  position: fixed;
3011
3011
  display: flex;
@@ -3052,7 +3052,7 @@ const Si = /* @__PURE__ */ new Map(), so = /* @__PURE__ */ new WeakSet(), ro = (
3052
3052
  const i = lo(n, e);
3053
3053
  return { value: i, overrideFrom: t, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
3054
3054
  } }, oh = { duration: 333, easing: "ease-in-out" }, ah = ["left", "top", "width", "height", "opacity", "color", "background"], co = /* @__PURE__ */ new WeakMap();
3055
- class lh extends Sa {
3055
+ class lh extends Ca {
3056
3056
  constructor(e) {
3057
3057
  if (super(e), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, e.type === rn.CHILD) throw Error("The `animate` directive must be used in attribute position.");
3058
3058
  this.createFinished();
@@ -3223,39 +3223,39 @@ class lh extends Sa {
3223
3223
  this.shouldLog && !this.isDisabled() && console.log(e, this.options.id, t);
3224
3224
  }
3225
3225
  }
3226
- const qi = on(lh), xe = (n, e, t) => {
3226
+ const qi = on(lh), Se = (n, e, t) => {
3227
3227
  n && t.style.setProperty(e, n);
3228
- }, Ca = (n, e) => {
3228
+ }, Ea = (n, e) => {
3229
3229
  var t, i, s, r, o, a, l, c, u;
3230
- xe((t = n.colors) == null ? void 0 : t.primaryBackground, "--primary-background", e), xe(
3230
+ Se((t = n.colors) == null ? void 0 : t.primaryBackground, "--primary-background", e), Se(
3231
3231
  (i = n.colors) == null ? void 0 : i.textOnPrimaryBackground,
3232
3232
  "--text-on-primary-background",
3233
3233
  e
3234
- ), xe(
3234
+ ), Se(
3235
3235
  (s = n.colors) == null ? void 0 : s.secondaryBackground,
3236
3236
  "--secondary-background",
3237
3237
  e
3238
- ), xe(
3238
+ ), Se(
3239
3239
  (r = n.colors) == null ? void 0 : r.textOnSecondaryBackground,
3240
3240
  "--text-on-secondary-background",
3241
3241
  e
3242
- ), xe(
3242
+ ), Se(
3243
3243
  (o = n.colors) == null ? void 0 : o.interactiveDestructiveBackground,
3244
3244
  "--destructive-color",
3245
3245
  e
3246
- ), xe(
3246
+ ), Se(
3247
3247
  (a = n.colors) == null ? void 0 : a.interactiveTextOnDestructiveBackground,
3248
3248
  "--text-on-destructive-color",
3249
3249
  e
3250
- ), xe(
3250
+ ), Se(
3251
3251
  (l = n.colors) == null ? void 0 : l.interactivePrimaryBackground,
3252
3252
  "--interactive-primary-background",
3253
3253
  e
3254
- ), xe(
3254
+ ), Se(
3255
3255
  (c = n.colors) == null ? void 0 : c.interactiveTextOnPrimaryBackground,
3256
3256
  "--interactive-text-on-primary-background",
3257
3257
  e
3258
- ), xe((u = n.colors) == null ? void 0 : u.focusColor, "--focus-color", e);
3258
+ ), Se((u = n.colors) == null ? void 0 : u.focusColor, "--focus-color", e);
3259
3259
  };
3260
3260
  var ch = Object.defineProperty, an = (n, e, t, i) => {
3261
3261
  for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
@@ -3264,7 +3264,7 @@ var ch = Object.defineProperty, an = (n, e, t, i) => {
3264
3264
  };
3265
3265
  const Rs = class Rs extends _ {
3266
3266
  constructor() {
3267
- super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = ge(), this.widgetActive$ = new ue(!1), this.componentIsDestroyed$ = new P();
3267
+ super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = ve(), this.widgetActive$ = new de(!1), this.componentIsDestroyed$ = new P();
3268
3268
  }
3269
3269
  async connectedCallback() {
3270
3270
  super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
@@ -3299,7 +3299,7 @@ const Rs = class Rs extends _ {
3299
3299
  }
3300
3300
  _applyBranding() {
3301
3301
  var e;
3302
- (e = this.application) != null && e.settings && Ca(this.application.settings.branding, this);
3302
+ (e = this.application) != null && e.settings && Ea(this.application.settings.branding, this);
3303
3303
  }
3304
3304
  async _renderSymbol() {
3305
3305
  var a, l, c;
@@ -3343,7 +3343,7 @@ const Rs = class Rs extends _ {
3343
3343
  "trigger-container": !0,
3344
3344
  hidden: !this.triggerVisible
3345
3345
  })}
3346
- ${me(this.containerRef)}
3346
+ ${be(this.containerRef)}
3347
3347
  >
3348
3348
  ${!this.active && ((s = (i = (t = (e = this.application) == null ? void 0 : e.settings) == null ? void 0 : t.branding) == null ? void 0 : i.other) != null && s.showButtonLabel) ? y`
3349
3349
  <button
@@ -3405,7 +3405,7 @@ const Rs = class Rs extends _ {
3405
3405
  }
3406
3406
  };
3407
3407
  Rs.styles = [
3408
- T`
3408
+ O`
3409
3409
  :host {
3410
3410
  --voca-rem-multiplier: 0.625;
3411
3411
  --trigger-label-bg: #f5e0ff;
@@ -3536,28 +3536,28 @@ Rs.styles = [
3536
3536
  }
3537
3537
  `
3538
3538
  ];
3539
- let Oe = Rs;
3539
+ let Re = Rs;
3540
3540
  an([
3541
3541
  k({ attribute: !1 })
3542
- ], Oe.prototype, "application");
3542
+ ], Re.prototype, "application");
3543
3543
  an([
3544
- O()
3545
- ], Oe.prototype, "active");
3544
+ T()
3545
+ ], Re.prototype, "active");
3546
3546
  an([
3547
- O()
3548
- ], Oe.prototype, "triggerVisible");
3547
+ T()
3548
+ ], Re.prototype, "triggerVisible");
3549
3549
  an([
3550
- O()
3551
- ], Oe.prototype, "loaded");
3550
+ T()
3551
+ ], Re.prototype, "loaded");
3552
3552
  an([
3553
- O()
3554
- ], Oe.prototype, "icon");
3553
+ T()
3554
+ ], Re.prototype, "icon");
3555
3555
  var uh = Object.defineProperty, We = (n, e, t, i) => {
3556
3556
  for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
3557
3557
  (o = n[r]) && (s = o(e, t, s) || s);
3558
3558
  return s && uh(e, t, s), s;
3559
3559
  };
3560
- const Ea = (n) => {
3560
+ const _a = (n) => {
3561
3561
  const t = class t extends n {
3562
3562
  constructor() {
3563
3563
  super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
@@ -3583,7 +3583,7 @@ const Ea = (n) => {
3583
3583
  };
3584
3584
  t.styles = [
3585
3585
  // (superClass as unknown as typeof LitElement).styles ?? [],
3586
- T`
3586
+ O`
3587
3587
  :host {
3588
3588
  font-family: var(--font-family);
3589
3589
  grid-column: span var(--width);
@@ -3613,13 +3613,13 @@ const Ea = (n) => {
3613
3613
  ], e.prototype, "application"), We([
3614
3614
  k({ attribute: !1 })
3615
3615
  ], e.prototype, "parent"), e;
3616
- }, Is = class Is extends Ea(_) {
3616
+ }, Is = class Is extends _a(_) {
3617
3617
  render() {
3618
3618
  return y`Non resolved component`;
3619
3619
  }
3620
3620
  };
3621
3621
  Is.styles = [
3622
- T`
3622
+ O`
3623
3623
  :host {
3624
3624
  display: block;
3625
3625
  }
@@ -3637,13 +3637,13 @@ function* hh(n, e) {
3637
3637
  for (const i of n) yield e(i, t++);
3638
3638
  }
3639
3639
  }
3640
- var ms = /* @__PURE__ */ ((n) => (n.Inline = "inline", n.Trigger = "trigger", n))(ms || {}), Pe = /* @__PURE__ */ ((n) => (n.NonAuthenticated = "non-authenticated", n.Authenticating = "authenticating", n.Authenticated = "authenticated", n.ChatEnded = "chat-ended", n))(Pe || {});
3640
+ var ms = /* @__PURE__ */ ((n) => (n.Inline = "inline", n.Trigger = "trigger", n))(ms || {}), ee = /* @__PURE__ */ ((n) => (n.NonAuthenticated = "non-authenticated", n.Authenticating = "authenticating", n.Authenticated = "authenticated", n.ChatEnded = "chat-ended", n))(ee || {});
3641
3641
  /**
3642
3642
  * @license
3643
3643
  * Copyright 2021 Google LLC
3644
3644
  * SPDX-License-Identifier: BSD-3-Clause
3645
3645
  */
3646
- let _a = class extends Event {
3646
+ let Aa = class extends Event {
3647
3647
  constructor(e, t, i, s) {
3648
3648
  super("context-request", { bubbles: !0, composed: !0 }), this.context = e, this.contextTarget = t, this.callback = i, this.subscribe = s ?? !1;
3649
3649
  }
@@ -3675,7 +3675,7 @@ let uo = class {
3675
3675
  this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0);
3676
3676
  }
3677
3677
  dispatchRequest() {
3678
- this.host.dispatchEvent(new _a(this.context, this.host, this.t, this.subscribe));
3678
+ this.host.dispatchEvent(new Aa(this.context, this.host, this.t, this.subscribe));
3679
3679
  }
3680
3680
  };
3681
3681
  /**
@@ -3730,7 +3730,7 @@ let ph = class extends Event {
3730
3730
  }, this.onProviderRequest = (o) => {
3731
3731
  if (o.context !== this.context || (o.contextTarget ?? o.composedPath()[0]) === this.host) return;
3732
3732
  const a = /* @__PURE__ */ new Set();
3733
- for (const [l, { consumerHost: c }] of this.subscriptions) a.has(l) || (a.add(l), c.dispatchEvent(new _a(this.context, c, l, !0)));
3733
+ for (const [l, { consumerHost: c }] of this.subscriptions) a.has(l) || (a.add(l), c.dispatchEvent(new Aa(this.context, c, l, !0)));
3734
3734
  o.stopPropagation();
3735
3735
  }, this.host = e, t.context !== void 0 ? this.context = t.context : this.context = t, this.attachListeners(), (r = (s = this.host).addController) == null || r.call(s, this);
3736
3736
  }
@@ -3784,7 +3784,7 @@ function fh({ context: n }) {
3784
3784
  * Copyright 2022 Google LLC
3785
3785
  * SPDX-License-Identifier: BSD-3-Clause
3786
3786
  */
3787
- function oe({ context: n, subscribe: e }) {
3787
+ function le({ context: n, subscribe: e }) {
3788
3788
  return (t, i) => {
3789
3789
  typeof i == "object" ? i.addInitializer((function() {
3790
3790
  new uo(this, { context: n, callback: (s) => {
@@ -3797,14 +3797,14 @@ function oe({ context: n, subscribe: e }) {
3797
3797
  }));
3798
3798
  };
3799
3799
  }
3800
- var gh = Object.defineProperty, Aa = (n, e, t, i) => {
3800
+ var gh = Object.defineProperty, Ta = (n, e, t, i) => {
3801
3801
  for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
3802
3802
  (o = n[r]) && (s = o(e, t, s) || s);
3803
3803
  return s && gh(e, t, s), s;
3804
3804
  };
3805
- const ne = "application", Ps = class Ps extends _ {
3805
+ const se = "application", Ps = class Ps extends _ {
3806
3806
  constructor() {
3807
- super(...arguments), this.nodes = [], this.wrapperRef = ge(), this.fullscreen = !1, this.isReady = new ue(!1);
3807
+ super(...arguments), this.nodes = [], this.wrapperRef = ve(), this.fullscreen = !1, this.isReady = new de(!1);
3808
3808
  }
3809
3809
  addChild(e) {
3810
3810
  e.parent = this, this.nodes.push(e);
@@ -3813,7 +3813,7 @@ const ne = "application", Ps = class Ps extends _ {
3813
3813
  if (!this.wrapperRef.value)
3814
3814
  return;
3815
3815
  const e = this.application.settings;
3816
- e != null && e.branding && Ca(e.branding, this.wrapperRef.value);
3816
+ e != null && e.branding && Ea(e.branding, this.wrapperRef.value);
3817
3817
  }
3818
3818
  applyStyles() {
3819
3819
  if (!this.wrapperRef.value)
@@ -3829,12 +3829,12 @@ const ne = "application", Ps = class Ps extends _ {
3829
3829
  render() {
3830
3830
  var i, s;
3831
3831
  const e = this.application.settings.components.conversation;
3832
- return ((s = (i = e == null ? void 0 : e.properties) == null ? void 0 : i.chat) == null ? void 0 : s.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === ms.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), this.application.fullscreen && this.renderRoot.host.classList.add("fullscreen"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), y`<div class="widget-container" ${me(this.wrapperRef)}>
3832
+ return ((s = (i = e == null ? void 0 : e.properties) == null ? void 0 : i.chat) == null ? void 0 : s.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === ms.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), this.application.fullscreen && this.renderRoot.host.classList.add("fullscreen"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), y`<div class="widget-container" ${be(this.wrapperRef)}>
3833
3833
  ${hh(this.nodes, (r) => r)}
3834
3834
  </div>`;
3835
3835
  }
3836
3836
  };
3837
- Ps.styles = T`
3837
+ Ps.styles = O`
3838
3838
  :host {
3839
3839
  --font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
3840
3840
  --spacing-xs: 0.2rem;
@@ -4001,12 +4001,12 @@ Ps.styles = T`
4001
4001
  }
4002
4002
  `;
4003
4003
  let Zt = Ps;
4004
- Aa([
4004
+ Ta([
4005
4005
  k({ attribute: !0 })
4006
4006
  ], Zt.prototype, "fullscreen");
4007
- Aa([
4007
+ Ta([
4008
4008
  k({ attribute: !1 }),
4009
- fh({ context: ne })
4009
+ fh({ context: se })
4010
4010
  ], Zt.prototype, "application");
4011
4011
  var mh = Object.defineProperty, vs = (n, e, t, i) => {
4012
4012
  for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
@@ -4039,14 +4039,14 @@ const Ms = class Ms extends _ {
4039
4039
  if (!this.widget || this.status !== "activated")
4040
4040
  return w;
4041
4041
  if (this.widget.renderStrategy === ms.Trigger) {
4042
- const e = new Oe();
4042
+ const e = new Re();
4043
4043
  return e.application = this.widget, e;
4044
4044
  }
4045
4045
  return this.widget.render();
4046
4046
  }
4047
4047
  };
4048
4048
  Ms.styles = [
4049
- T`
4049
+ O`
4050
4050
  :host {
4051
4051
  display: block;
4052
4052
  }
@@ -4057,13 +4057,13 @@ vs([
4057
4057
  k({ attribute: !0 })
4058
4058
  ], xt.prototype, "name");
4059
4059
  vs([
4060
- O()
4060
+ T()
4061
4061
  ], xt.prototype, "widget");
4062
4062
  vs([
4063
- O()
4063
+ T()
4064
4064
  ], xt.prototype, "status");
4065
4065
  customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", Un);
4066
- customElements.get("ace-trigger") || customElements.define("ace-trigger", Oe);
4066
+ customElements.get("ace-trigger") || customElements.define("ace-trigger", Re);
4067
4067
  customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Vi);
4068
4068
  customElements.get("ace-wrapper") || customElements.define("ace-wrapper", Zt);
4069
4069
  customElements.get("ace-widget") || customElements.define("ace-widget", xt);
@@ -4085,8 +4085,8 @@ class vh {
4085
4085
  }
4086
4086
  class po {
4087
4087
  constructor(e, t, i, s, r) {
4088
- this.id = e, this.providerKey = t, this.providerOptions = i, this.component = r, this.provider$ = new ue(null), this.entries$ = new ue([]), this.removeEntryAction$ = new P(), this.kill$ = new P(), this.isTyping$ = new ue(!1), this.data$ = new ue({}), this.complete$ = this.provider$.pipe(
4089
- Ae((l) => l ? l.onComplete() : tt)
4088
+ this.id = e, this.providerKey = t, this.providerOptions = i, this.component = r, this.provider$ = new de(null), this.entries$ = new de([]), this.removeEntryAction$ = new P(), this.kill$ = new P(), this.isTyping$ = new de(!1), this.data$ = new de({}), this.complete$ = this.provider$.pipe(
4089
+ Oe((l) => l ? l.onComplete() : tt)
4090
4090
  );
4091
4091
  const o = this._getProviderFactory(t);
4092
4092
  if (!o)
@@ -4123,14 +4123,14 @@ class po {
4123
4123
  };
4124
4124
  }
4125
4125
  write(e) {
4126
- this._addEntryRemoveHandler(e), this.entries$.pipe(fe(1)).subscribe((t) => {
4126
+ this._addEntryRemoveHandler(e), this.entries$.pipe(me(1)).subscribe((t) => {
4127
4127
  this.entries$.next([...t, e]);
4128
4128
  });
4129
4129
  }
4130
4130
  _addEntryRemoveHandler(e) {
4131
4131
  e.remove$.pipe(
4132
- Ae(() => this.entries$),
4133
- fe(1)
4132
+ Oe(() => this.entries$),
4133
+ me(1)
4134
4134
  ).subscribe((t) => {
4135
4135
  this.removeEntryAction$.next(e), this.entries$.next(t.filter((i) => i !== e));
4136
4136
  });
@@ -4141,7 +4141,7 @@ class po {
4141
4141
  }
4142
4142
  class bh {
4143
4143
  constructor(e) {
4144
- this.component = e, this.currentSession$ = new ue(null), this.sessions = [], this.storage = null, An(e, "handover").subscribe((t) => {
4144
+ this.component = e, this.currentSession$ = new de(null), this.sessions = [], this.storage = null, An(e, "handover").subscribe((t) => {
4145
4145
  const i = this._createNewSession(
4146
4146
  t.detail.providerKey,
4147
4147
  t.detail.providerOptions
@@ -4239,9 +4239,9 @@ class bh {
4239
4239
  }
4240
4240
  class yh {
4241
4241
  constructor(e, t) {
4242
- this.state$ = e, this.component = t, this.entries$ = new ue([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new bh(this.component), this.session$ = this.sessionService.currentSession(), this.isTyping$ = this.session$.pipe(
4243
- Ae((i) => i ? i.provider$.pipe(
4244
- Ae((s) => s ? s.isTyping() : Pi(!1))
4242
+ this.state$ = e, this.component = t, this.entries$ = new de([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new bh(this.component), this.session$ = this.sessionService.currentSession(), this.isTyping$ = this.session$.pipe(
4243
+ Oe((i) => i ? i.provider$.pipe(
4244
+ Oe((s) => s ? s.isTyping() : Pi(!1))
4245
4245
  ) : Pi(!1))
4246
4246
  ), e.subscribe((i) => {
4247
4247
  switch (i) {
@@ -4266,7 +4266,7 @@ class yh {
4266
4266
  }
4267
4267
  rehydrate() {
4268
4268
  this.session$.pipe(
4269
- Ae((e) => {
4269
+ Oe((e) => {
4270
4270
  if (!e)
4271
4271
  return tt;
4272
4272
  const t = e.removeEntryAction$.pipe(Ui(this.entries$)).pipe(
@@ -4277,7 +4277,7 @@ class yh {
4277
4277
  return [...r, ...o];
4278
4278
  })
4279
4279
  );
4280
- return gc(t, i);
4280
+ return mc(t, i);
4281
4281
  })
4282
4282
  ).subscribe((e) => {
4283
4283
  this.entries$.next(e);
@@ -4288,7 +4288,7 @@ class yh {
4288
4288
  (e = this.sessionService) == null || e.startSession();
4289
4289
  }
4290
4290
  }
4291
- var $h = Object.defineProperty, Ta = (n, e, t, i) => {
4291
+ var $h = Object.defineProperty, Oa = (n, e, t, i) => {
4292
4292
  for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
4293
4293
  (o = n[r]) && (s = o(e, t, s) || s);
4294
4294
  return s && $h(e, t, s), s;
@@ -4325,13 +4325,13 @@ const Us = class Us extends _ {
4325
4325
  }
4326
4326
  _renderDeliveryStatus(e) {
4327
4327
  return e === "delivered" ? y`<telia-icon
4328
- svg=${Bc.svg}
4328
+ svg=${qc.svg}
4329
4329
  size="sm"
4330
4330
  ></telia-icon>` : e === "failed" ? y`<telia-icon
4331
- svg=${jc.svg}
4331
+ svg=${Bc.svg}
4332
4332
  size="sm"
4333
4333
  title="Message could not be delivered"
4334
- ></telia-icon>` : y`<telia-icon svg=${qc.svg} size="sm"></telia-icon>`;
4334
+ ></telia-icon>` : y`<telia-icon svg=${sa.svg} size="sm"></telia-icon>`;
4335
4335
  }
4336
4336
  _dispatchEntryAction(e) {
4337
4337
  this.entry.actions$.next(e.detail);
@@ -4418,7 +4418,7 @@ const Us = class Us extends _ {
4418
4418
  }
4419
4419
  };
4420
4420
  Us.styles = [
4421
- T`
4421
+ O`
4422
4422
  :host {
4423
4423
  box-sizing: border-box;
4424
4424
  display: inline;
@@ -4553,14 +4553,14 @@ Us.styles = [
4553
4553
  `
4554
4554
  ];
4555
4555
  let Yt = Us;
4556
- Ta([
4556
+ Oa([
4557
4557
  k({ attribute: !1 })
4558
4558
  ], Yt.prototype, "entry");
4559
- Ta([
4560
- oe({ context: ne }),
4559
+ Oa([
4560
+ le({ context: se }),
4561
4561
  k({ attribute: !1 })
4562
4562
  ], Yt.prototype, "application");
4563
- var wh = Object.defineProperty, Oa = (n, e, t, i) => {
4563
+ var wh = Object.defineProperty, La = (n, e, t, i) => {
4564
4564
  for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
4565
4565
  (o = n[r]) && (s = o(e, t, s) || s);
4566
4566
  return s && wh(e, t, s), s;
@@ -4602,7 +4602,7 @@ const Ns = class Ns extends _ {
4602
4602
  }
4603
4603
  };
4604
4604
  Ns.styles = [
4605
- T`
4605
+ O`
4606
4606
  :host {
4607
4607
  display: block;
4608
4608
  }
@@ -4621,10 +4621,10 @@ Ns.styles = [
4621
4621
  `
4622
4622
  ];
4623
4623
  let Qt = Ns;
4624
- Oa([
4624
+ La([
4625
4625
  k({ attribute: !1 })
4626
4626
  ], Qt.prototype, "entries");
4627
- Oa([
4627
+ La([
4628
4628
  k({ type: Boolean })
4629
4629
  ], Qt.prototype, "loading");
4630
4630
  /**
@@ -4671,7 +4671,7 @@ const Ds = class Ds extends _ {
4671
4671
  }
4672
4672
  };
4673
4673
  Ds.styles = [
4674
- T`
4674
+ O`
4675
4675
  :host {
4676
4676
  box-sizing: border-box;
4677
4677
  display: block;
@@ -4700,7 +4700,7 @@ const zs = class zs extends _ {
4700
4700
  }
4701
4701
  };
4702
4702
  zs.styles = [
4703
- T`
4703
+ O`
4704
4704
  :host {
4705
4705
  display: block;
4706
4706
  }
@@ -4748,7 +4748,7 @@ class Gi extends Jn {
4748
4748
  }
4749
4749
  render(e) {
4750
4750
  if (e === w || e == null) return this._t = void 0, this.it = e;
4751
- if (e === Te) return e;
4751
+ if (e === Le) return e;
4752
4752
  if (typeof e != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
4753
4753
  if (e === this.it) return this._t;
4754
4754
  this.it = e;
@@ -4760,7 +4760,7 @@ Gi.directiveName = "unsafeHTML", Gi.resultType = 1;
4760
4760
  const Ch = on(Gi);
4761
4761
  /*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
4762
4762
  const {
4763
- entries: La,
4763
+ entries: Ra,
4764
4764
  setPrototypeOf: fo,
4765
4765
  isFrozen: Eh,
4766
4766
  getPrototypeOf: _h,
@@ -4768,8 +4768,8 @@ const {
4768
4768
  } = Object;
4769
4769
  let {
4770
4770
  freeze: X,
4771
- seal: ie,
4772
- create: Ra
4771
+ seal: re,
4772
+ create: Ia
4773
4773
  } = Object, {
4774
4774
  apply: Zi,
4775
4775
  construct: Yi
@@ -4777,7 +4777,7 @@ let {
4777
4777
  X || (X = function(e) {
4778
4778
  return e;
4779
4779
  });
4780
- ie || (ie = function(e) {
4780
+ re || (re = function(e) {
4781
4781
  return e;
4782
4782
  });
4783
4783
  Zi || (Zi = function(e, t, i) {
@@ -4786,7 +4786,7 @@ Zi || (Zi = function(e, t, i) {
4786
4786
  Yi || (Yi = function(e, t) {
4787
4787
  return new e(...t);
4788
4788
  });
4789
- const bn = K(Array.prototype.forEach), Th = K(Array.prototype.lastIndexOf), go = K(Array.prototype.pop), Rt = K(Array.prototype.push), Oh = K(Array.prototype.splice), kn = K(String.prototype.toLowerCase), Ei = K(String.prototype.toString), mo = K(String.prototype.match), It = K(String.prototype.replace), Lh = K(String.prototype.indexOf), Rh = K(String.prototype.trim), le = K(Object.prototype.hasOwnProperty), G = K(RegExp.prototype.test), Pt = Ih(TypeError);
4789
+ const bn = K(Array.prototype.forEach), Th = K(Array.prototype.lastIndexOf), go = K(Array.prototype.pop), Rt = K(Array.prototype.push), Oh = K(Array.prototype.splice), kn = K(String.prototype.toLowerCase), Ei = K(String.prototype.toString), mo = K(String.prototype.match), It = K(String.prototype.replace), Lh = K(String.prototype.indexOf), Rh = K(String.prototype.trim), ue = K(Object.prototype.hasOwnProperty), G = K(RegExp.prototype.test), Pt = Ih(TypeError);
4790
4790
  function K(n) {
4791
4791
  return function(e) {
4792
4792
  e instanceof RegExp && (e.lastIndex = 0);
@@ -4818,13 +4818,13 @@ function x(n, e) {
4818
4818
  }
4819
4819
  function Ph(n) {
4820
4820
  for (let e = 0; e < n.length; e++)
4821
- le(n, e) || (n[e] = null);
4821
+ ue(n, e) || (n[e] = null);
4822
4822
  return n;
4823
4823
  }
4824
- function Se(n) {
4825
- const e = Ra(null);
4826
- for (const [t, i] of La(n))
4827
- le(n, t) && (Array.isArray(i) ? e[t] = Ph(i) : i && typeof i == "object" && i.constructor === Object ? e[t] = Se(i) : e[t] = i);
4824
+ function Ee(n) {
4825
+ const e = Ia(null);
4826
+ for (const [t, i] of Ra(n))
4827
+ ue(n, t) && (Array.isArray(i) ? e[t] = Ph(i) : i && typeof i == "object" && i.constructor === Object ? e[t] = Ee(i) : e[t] = i);
4828
4828
  return e;
4829
4829
  }
4830
4830
  function Mt(n, e) {
@@ -4843,22 +4843,22 @@ function Mt(n, e) {
4843
4843
  }
4844
4844
  return t;
4845
4845
  }
4846
- const vo = X(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), _i = X(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Ai = X(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Mh = X(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Ti = X(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Uh = X(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), bo = X(["#text"]), yo = X(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Oi = X(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), $o = X(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), yn = X(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Nh = ie(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Dh = ie(/<%[\w\W]*|[\w\W]*%>/gm), zh = ie(/\$\{[\w\W]*/gm), Hh = ie(/^data-[\-\w.\u00B7-\uFFFF]+$/), Fh = ie(/^aria-[\-\w]+$/), Ia = ie(
4846
+ const vo = X(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), _i = X(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Ai = X(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Mh = X(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Ti = X(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Uh = X(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), bo = X(["#text"]), yo = X(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Oi = X(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), $o = X(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), yn = X(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Nh = re(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Dh = re(/<%[\w\W]*|[\w\W]*%>/gm), zh = re(/\$\{[\w\W]*/gm), Hh = re(/^data-[\-\w.\u00B7-\uFFFF]+$/), Fh = re(/^aria-[\-\w]+$/), Pa = re(
4847
4847
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
4848
4848
  // eslint-disable-line no-useless-escape
4849
- ), jh = ie(/^(?:\w+script|data):/i), Bh = ie(
4849
+ ), jh = re(/^(?:\w+script|data):/i), Bh = re(
4850
4850
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
4851
4851
  // eslint-disable-line no-control-regex
4852
- ), Pa = ie(/^html$/i), qh = ie(/^[a-z][.\w]*(-[.\w]+)+$/i);
4852
+ ), Ma = re(/^html$/i), qh = re(/^[a-z][.\w]*(-[.\w]+)+$/i);
4853
4853
  var wo = /* @__PURE__ */ Object.freeze({
4854
4854
  __proto__: null,
4855
4855
  ARIA_ATTR: Fh,
4856
4856
  ATTR_WHITESPACE: Bh,
4857
4857
  CUSTOM_ELEMENT: qh,
4858
4858
  DATA_ATTR: Hh,
4859
- DOCTYPE_NAME: Pa,
4859
+ DOCTYPE_NAME: Ma,
4860
4860
  ERB_EXPR: Dh,
4861
- IS_ALLOWED_URI: Ia,
4861
+ IS_ALLOWED_URI: Pa,
4862
4862
  IS_SCRIPT_OR_DATA: jh,
4863
4863
  MUSTACHE_EXPR: Nh,
4864
4864
  TMPLIT_EXPR: zh
@@ -4904,9 +4904,9 @@ const Ut = {
4904
4904
  uponSanitizeShadowNode: []
4905
4905
  };
4906
4906
  };
4907
- function Ma() {
4907
+ function Ua() {
4908
4908
  let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Vh();
4909
- const e = (b) => Ma(b);
4909
+ const e = (b) => Ua(b);
4910
4910
  if (e.version = "3.2.6", e.removed = [], !n || !n.document || n.document.nodeType !== Ut.document || !n.Element)
4911
4911
  return e.isSupported = !1, e;
4912
4912
  let {
@@ -4922,7 +4922,7 @@ function Ma() {
4922
4922
  HTMLFormElement: p,
4923
4923
  DOMParser: d,
4924
4924
  trustedTypes: g
4925
- } = n, m = l.prototype, $ = Mt(m, "cloneNode"), be = Mt(m, "remove"), ae = Mt(m, "nextSibling"), Ie = Mt(m, "childNodes"), He = Mt(m, "parentNode");
4925
+ } = n, m = l.prototype, $ = Mt(m, "cloneNode"), $e = Mt(m, "remove"), ce = Mt(m, "nextSibling"), Pe = Mt(m, "childNodes"), He = Mt(m, "parentNode");
4926
4926
  if (typeof o == "function") {
4927
4927
  const b = t.createElement("template");
4928
4928
  b.content && b.content.ownerDocument && (t = b.content.ownerDocument);
@@ -4931,22 +4931,22 @@ function Ma() {
4931
4931
  const {
4932
4932
  implementation: je,
4933
4933
  createNodeIterator: Be,
4934
- createDocumentFragment: Ja,
4935
- getElementsByTagName: el
4934
+ createDocumentFragment: el,
4935
+ getElementsByTagName: tl
4936
4936
  } = t, {
4937
- importNode: tl
4937
+ importNode: nl
4938
4938
  } = i;
4939
4939
  let V = xo();
4940
- e.isSupported = typeof La == "function" && typeof He == "function" && je && je.createHTMLDocument !== void 0;
4940
+ e.isSupported = typeof Ra == "function" && typeof He == "function" && je && je.createHTMLDocument !== void 0;
4941
4941
  const {
4942
4942
  MUSTACHE_EXPR: ni,
4943
4943
  ERB_EXPR: ii,
4944
4944
  TMPLIT_EXPR: si,
4945
- DATA_ATTR: nl,
4946
- ARIA_ATTR: il,
4947
- IS_SCRIPT_OR_DATA: sl,
4945
+ DATA_ATTR: il,
4946
+ ARIA_ATTR: sl,
4947
+ IS_SCRIPT_OR_DATA: rl,
4948
4948
  ATTR_WHITESPACE: er,
4949
- CUSTOM_ELEMENT: rl
4949
+ CUSTOM_ELEMENT: ol
4950
4950
  } = wo;
4951
4951
  let {
4952
4952
  IS_ALLOWED_URI: tr
@@ -4954,7 +4954,7 @@ function Ma() {
4954
4954
  const nr = x({}, [...vo, ..._i, ...Ai, ...Ti, ...bo]);
4955
4955
  let D = null;
4956
4956
  const ir = x({}, [...yo, ...Oi, ...$o, ...yn]);
4957
- let R = Object.seal(Ra(null, {
4957
+ let R = Object.seal(Ia(null, {
4958
4958
  tagNameCheck: {
4959
4959
  writable: !0,
4960
4960
  configurable: !1,
@@ -4974,27 +4974,27 @@ function Ma() {
4974
4974
  value: !1
4975
4975
  }
4976
4976
  })), _t = null, ri = null, sr = !0, oi = !0, rr = !1, or = !0, st = !1, cn = !0, qe = !1, ai = !1, li = !1, rt = !1, un = !1, hn = !1, ar = !0, lr = !1;
4977
- const ol = "user-content-";
4977
+ const al = "user-content-";
4978
4978
  let ci = !0, At = !1, ot = {}, at = null;
4979
4979
  const cr = x({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
4980
4980
  let ur = null;
4981
4981
  const hr = x({}, ["audio", "video", "img", "source", "image", "track"]);
4982
4982
  let ui = null;
4983
- const dr = x({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), dn = "http://www.w3.org/1998/Math/MathML", pn = "http://www.w3.org/2000/svg", ye = "http://www.w3.org/1999/xhtml";
4984
- let lt = ye, hi = !1, di = null;
4985
- const al = x({}, [dn, pn, ye], Ei);
4983
+ const dr = x({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), dn = "http://www.w3.org/1998/Math/MathML", pn = "http://www.w3.org/2000/svg", we = "http://www.w3.org/1999/xhtml";
4984
+ let lt = we, hi = !1, di = null;
4985
+ const ll = x({}, [dn, pn, we], Ei);
4986
4986
  let fn = x({}, ["mi", "mo", "mn", "ms", "mtext"]), gn = x({}, ["annotation-xml"]);
4987
- const ll = x({}, ["title", "style", "font", "a", "script"]);
4987
+ const cl = x({}, ["title", "style", "font", "a", "script"]);
4988
4988
  let Tt = null;
4989
- const cl = ["application/xhtml+xml", "text/html"], ul = "text/html";
4989
+ const ul = ["application/xhtml+xml", "text/html"], hl = "text/html";
4990
4990
  let N = null, ct = null;
4991
- const hl = t.createElement("form"), pr = function(h) {
4991
+ const dl = t.createElement("form"), pr = function(h) {
4992
4992
  return h instanceof RegExp || h instanceof Function;
4993
4993
  }, pi = function() {
4994
4994
  let h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4995
4995
  if (!(ct && ct === h)) {
4996
- if ((!h || typeof h != "object") && (h = {}), h = Se(h), Tt = // eslint-disable-next-line unicorn/prefer-includes
4997
- cl.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? ul : h.PARSER_MEDIA_TYPE, N = Tt === "application/xhtml+xml" ? Ei : kn, U = le(h, "ALLOWED_TAGS") ? x({}, h.ALLOWED_TAGS, N) : nr, D = le(h, "ALLOWED_ATTR") ? x({}, h.ALLOWED_ATTR, N) : ir, di = le(h, "ALLOWED_NAMESPACES") ? x({}, h.ALLOWED_NAMESPACES, Ei) : al, ui = le(h, "ADD_URI_SAFE_ATTR") ? x(Se(dr), h.ADD_URI_SAFE_ATTR, N) : dr, ur = le(h, "ADD_DATA_URI_TAGS") ? x(Se(hr), h.ADD_DATA_URI_TAGS, N) : hr, at = le(h, "FORBID_CONTENTS") ? x({}, h.FORBID_CONTENTS, N) : cr, _t = le(h, "FORBID_TAGS") ? x({}, h.FORBID_TAGS, N) : Se({}), ri = le(h, "FORBID_ATTR") ? x({}, h.FORBID_ATTR, N) : Se({}), ot = le(h, "USE_PROFILES") ? h.USE_PROFILES : !1, sr = h.ALLOW_ARIA_ATTR !== !1, oi = h.ALLOW_DATA_ATTR !== !1, rr = h.ALLOW_UNKNOWN_PROTOCOLS || !1, or = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, st = h.SAFE_FOR_TEMPLATES || !1, cn = h.SAFE_FOR_XML !== !1, qe = h.WHOLE_DOCUMENT || !1, rt = h.RETURN_DOM || !1, un = h.RETURN_DOM_FRAGMENT || !1, hn = h.RETURN_TRUSTED_TYPE || !1, li = h.FORCE_BODY || !1, ar = h.SANITIZE_DOM !== !1, lr = h.SANITIZE_NAMED_PROPS || !1, ci = h.KEEP_CONTENT !== !1, At = h.IN_PLACE || !1, tr = h.ALLOWED_URI_REGEXP || Ia, lt = h.NAMESPACE || ye, fn = h.MATHML_TEXT_INTEGRATION_POINTS || fn, gn = h.HTML_INTEGRATION_POINTS || gn, R = h.CUSTOM_ELEMENT_HANDLING || {}, h.CUSTOM_ELEMENT_HANDLING && pr(h.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (R.tagNameCheck = h.CUSTOM_ELEMENT_HANDLING.tagNameCheck), h.CUSTOM_ELEMENT_HANDLING && pr(h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (R.attributeNameCheck = h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), h.CUSTOM_ELEMENT_HANDLING && typeof h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), st && (oi = !1), un && (rt = !0), ot && (U = x({}, bo), D = [], ot.html === !0 && (x(U, vo), x(D, yo)), ot.svg === !0 && (x(U, _i), x(D, Oi), x(D, yn)), ot.svgFilters === !0 && (x(U, Ai), x(D, Oi), x(D, yn)), ot.mathMl === !0 && (x(U, Ti), x(D, $o), x(D, yn))), h.ADD_TAGS && (U === nr && (U = Se(U)), x(U, h.ADD_TAGS, N)), h.ADD_ATTR && (D === ir && (D = Se(D)), x(D, h.ADD_ATTR, N)), h.ADD_URI_SAFE_ATTR && x(ui, h.ADD_URI_SAFE_ATTR, N), h.FORBID_CONTENTS && (at === cr && (at = Se(at)), x(at, h.FORBID_CONTENTS, N)), ci && (U["#text"] = !0), qe && x(U, ["html", "head", "body"]), U.table && (x(U, ["tbody"]), delete _t.tbody), h.TRUSTED_TYPES_POLICY) {
4996
+ if ((!h || typeof h != "object") && (h = {}), h = Ee(h), Tt = // eslint-disable-next-line unicorn/prefer-includes
4997
+ ul.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? hl : h.PARSER_MEDIA_TYPE, N = Tt === "application/xhtml+xml" ? Ei : kn, U = ue(h, "ALLOWED_TAGS") ? x({}, h.ALLOWED_TAGS, N) : nr, D = ue(h, "ALLOWED_ATTR") ? x({}, h.ALLOWED_ATTR, N) : ir, di = ue(h, "ALLOWED_NAMESPACES") ? x({}, h.ALLOWED_NAMESPACES, Ei) : ll, ui = ue(h, "ADD_URI_SAFE_ATTR") ? x(Ee(dr), h.ADD_URI_SAFE_ATTR, N) : dr, ur = ue(h, "ADD_DATA_URI_TAGS") ? x(Ee(hr), h.ADD_DATA_URI_TAGS, N) : hr, at = ue(h, "FORBID_CONTENTS") ? x({}, h.FORBID_CONTENTS, N) : cr, _t = ue(h, "FORBID_TAGS") ? x({}, h.FORBID_TAGS, N) : Ee({}), ri = ue(h, "FORBID_ATTR") ? x({}, h.FORBID_ATTR, N) : Ee({}), ot = ue(h, "USE_PROFILES") ? h.USE_PROFILES : !1, sr = h.ALLOW_ARIA_ATTR !== !1, oi = h.ALLOW_DATA_ATTR !== !1, rr = h.ALLOW_UNKNOWN_PROTOCOLS || !1, or = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, st = h.SAFE_FOR_TEMPLATES || !1, cn = h.SAFE_FOR_XML !== !1, qe = h.WHOLE_DOCUMENT || !1, rt = h.RETURN_DOM || !1, un = h.RETURN_DOM_FRAGMENT || !1, hn = h.RETURN_TRUSTED_TYPE || !1, li = h.FORCE_BODY || !1, ar = h.SANITIZE_DOM !== !1, lr = h.SANITIZE_NAMED_PROPS || !1, ci = h.KEEP_CONTENT !== !1, At = h.IN_PLACE || !1, tr = h.ALLOWED_URI_REGEXP || Pa, lt = h.NAMESPACE || we, fn = h.MATHML_TEXT_INTEGRATION_POINTS || fn, gn = h.HTML_INTEGRATION_POINTS || gn, R = h.CUSTOM_ELEMENT_HANDLING || {}, h.CUSTOM_ELEMENT_HANDLING && pr(h.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (R.tagNameCheck = h.CUSTOM_ELEMENT_HANDLING.tagNameCheck), h.CUSTOM_ELEMENT_HANDLING && pr(h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (R.attributeNameCheck = h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), h.CUSTOM_ELEMENT_HANDLING && typeof h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), st && (oi = !1), un && (rt = !0), ot && (U = x({}, bo), D = [], ot.html === !0 && (x(U, vo), x(D, yo)), ot.svg === !0 && (x(U, _i), x(D, Oi), x(D, yn)), ot.svgFilters === !0 && (x(U, Ai), x(D, Oi), x(D, yn)), ot.mathMl === !0 && (x(U, Ti), x(D, $o), x(D, yn))), h.ADD_TAGS && (U === nr && (U = Ee(U)), x(U, h.ADD_TAGS, N)), h.ADD_ATTR && (D === ir && (D = Ee(D)), x(D, h.ADD_ATTR, N)), h.ADD_URI_SAFE_ATTR && x(ui, h.ADD_URI_SAFE_ATTR, N), h.FORBID_CONTENTS && (at === cr && (at = Ee(at)), x(at, h.FORBID_CONTENTS, N)), ci && (U["#text"] = !0), qe && x(U, ["html", "head", "body"]), U.table && (x(U, ["tbody"]), delete _t.tbody), h.TRUSTED_TYPES_POLICY) {
4998
4998
  if (typeof h.TRUSTED_TYPES_POLICY.createHTML != "function")
4999
4999
  throw Pt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
5000
5000
  if (typeof h.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -5004,22 +5004,22 @@ function Ma() {
5004
5004
  M === void 0 && (M = Wh(g, s)), M !== null && typeof Fe == "string" && (Fe = M.createHTML(""));
5005
5005
  X && X(h), ct = h;
5006
5006
  }
5007
- }, fr = x({}, [..._i, ...Ai, ...Mh]), gr = x({}, [...Ti, ...Uh]), dl = function(h) {
5007
+ }, fr = x({}, [..._i, ...Ai, ...Mh]), gr = x({}, [...Ti, ...Uh]), pl = function(h) {
5008
5008
  let f = He(h);
5009
5009
  (!f || !f.tagName) && (f = {
5010
5010
  namespaceURI: lt,
5011
5011
  tagName: "template"
5012
5012
  });
5013
5013
  const v = kn(h.tagName), L = kn(f.tagName);
5014
- return di[h.namespaceURI] ? h.namespaceURI === pn ? f.namespaceURI === ye ? v === "svg" : f.namespaceURI === dn ? v === "svg" && (L === "annotation-xml" || fn[L]) : !!fr[v] : h.namespaceURI === dn ? f.namespaceURI === ye ? v === "math" : f.namespaceURI === pn ? v === "math" && gn[L] : !!gr[v] : h.namespaceURI === ye ? f.namespaceURI === pn && !gn[L] || f.namespaceURI === dn && !fn[L] ? !1 : !gr[v] && (ll[v] || !fr[v]) : !!(Tt === "application/xhtml+xml" && di[h.namespaceURI]) : !1;
5015
- }, de = function(h) {
5014
+ return di[h.namespaceURI] ? h.namespaceURI === pn ? f.namespaceURI === we ? v === "svg" : f.namespaceURI === dn ? v === "svg" && (L === "annotation-xml" || fn[L]) : !!fr[v] : h.namespaceURI === dn ? f.namespaceURI === we ? v === "math" : f.namespaceURI === pn ? v === "math" && gn[L] : !!gr[v] : h.namespaceURI === we ? f.namespaceURI === pn && !gn[L] || f.namespaceURI === dn && !fn[L] ? !1 : !gr[v] && (cl[v] || !fr[v]) : !!(Tt === "application/xhtml+xml" && di[h.namespaceURI]) : !1;
5015
+ }, fe = function(h) {
5016
5016
  Rt(e.removed, {
5017
5017
  element: h
5018
5018
  });
5019
5019
  try {
5020
5020
  He(h).removeChild(h);
5021
5021
  } catch {
5022
- be(h);
5022
+ $e(h);
5023
5023
  }
5024
5024
  }, ut = function(h, f) {
5025
5025
  try {
@@ -5036,7 +5036,7 @@ function Ma() {
5036
5036
  if (f.removeAttribute(h), h === "is")
5037
5037
  if (rt || un)
5038
5038
  try {
5039
- de(f);
5039
+ fe(f);
5040
5040
  } catch {
5041
5041
  }
5042
5042
  else
@@ -5052,9 +5052,9 @@ function Ma() {
5052
5052
  const I = mo(h, /^[\r\n\t ]+/);
5053
5053
  v = I && I[0];
5054
5054
  }
5055
- Tt === "application/xhtml+xml" && lt === ye && (h = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + h + "</body></html>");
5055
+ Tt === "application/xhtml+xml" && lt === we && (h = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + h + "</body></html>");
5056
5056
  const L = M ? M.createHTML(h) : h;
5057
- if (lt === ye)
5057
+ if (lt === we)
5058
5058
  try {
5059
5059
  f = new d().parseFromString(L, Tt);
5060
5060
  } catch {
@@ -5067,7 +5067,7 @@ function Ma() {
5067
5067
  }
5068
5068
  }
5069
5069
  const B = f.body || f.documentElement;
5070
- return h && v && B.insertBefore(t.createTextNode(v), B.childNodes[0] || null), lt === ye ? el.call(f, qe ? "html" : "body")[0] : qe ? f.documentElement : B;
5070
+ return h && v && B.insertBefore(t.createTextNode(v), B.childNodes[0] || null), lt === we ? tl.call(f, qe ? "html" : "body")[0] : qe ? f.documentElement : B;
5071
5071
  }, vr = function(h) {
5072
5072
  return Be.call(
5073
5073
  h.ownerDocument || h,
@@ -5081,46 +5081,46 @@ function Ma() {
5081
5081
  }, br = function(h) {
5082
5082
  return typeof a == "function" && h instanceof a;
5083
5083
  };
5084
- function $e(b, h, f) {
5084
+ function xe(b, h, f) {
5085
5085
  bn(b, (v) => {
5086
5086
  v.call(e, h, f, ct);
5087
5087
  });
5088
5088
  }
5089
5089
  const yr = function(h) {
5090
5090
  let f = null;
5091
- if ($e(V.beforeSanitizeElements, h, null), fi(h))
5092
- return de(h), !0;
5091
+ if (xe(V.beforeSanitizeElements, h, null), fi(h))
5092
+ return fe(h), !0;
5093
5093
  const v = N(h.nodeName);
5094
- if ($e(V.uponSanitizeElement, h, {
5094
+ if (xe(V.uponSanitizeElement, h, {
5095
5095
  tagName: v,
5096
5096
  allowedTags: U
5097
5097
  }), cn && h.hasChildNodes() && !br(h.firstElementChild) && G(/<[/\w!]/g, h.innerHTML) && G(/<[/\w!]/g, h.textContent) || h.nodeType === Ut.progressingInstruction || cn && h.nodeType === Ut.comment && G(/<[/\w]/g, h.data))
5098
- return de(h), !0;
5098
+ return fe(h), !0;
5099
5099
  if (!U[v] || _t[v]) {
5100
5100
  if (!_t[v] && wr(v) && (R.tagNameCheck instanceof RegExp && G(R.tagNameCheck, v) || R.tagNameCheck instanceof Function && R.tagNameCheck(v)))
5101
5101
  return !1;
5102
5102
  if (ci && !at[v]) {
5103
- const L = He(h) || h.parentNode, B = Ie(h) || h.childNodes;
5103
+ const L = He(h) || h.parentNode, B = Pe(h) || h.childNodes;
5104
5104
  if (B && L) {
5105
5105
  const I = B.length;
5106
5106
  for (let J = I - 1; J >= 0; --J) {
5107
- const we = $(B[J], !0);
5108
- we.__removalCount = (h.__removalCount || 0) + 1, L.insertBefore(we, ae(h));
5107
+ const ke = $(B[J], !0);
5108
+ ke.__removalCount = (h.__removalCount || 0) + 1, L.insertBefore(ke, ce(h));
5109
5109
  }
5110
5110
  }
5111
5111
  }
5112
- return de(h), !0;
5112
+ return fe(h), !0;
5113
5113
  }
5114
- return h instanceof l && !dl(h) || (v === "noscript" || v === "noembed" || v === "noframes") && G(/<\/no(script|embed|frames)/i, h.innerHTML) ? (de(h), !0) : (st && h.nodeType === Ut.text && (f = h.textContent, bn([ni, ii, si], (L) => {
5114
+ return h instanceof l && !pl(h) || (v === "noscript" || v === "noembed" || v === "noframes") && G(/<\/no(script|embed|frames)/i, h.innerHTML) ? (fe(h), !0) : (st && h.nodeType === Ut.text && (f = h.textContent, bn([ni, ii, si], (L) => {
5115
5115
  f = It(f, L, " ");
5116
5116
  }), h.textContent !== f && (Rt(e.removed, {
5117
5117
  element: h.cloneNode()
5118
- }), h.textContent = f)), $e(V.afterSanitizeElements, h, null), !1);
5118
+ }), h.textContent = f)), xe(V.afterSanitizeElements, h, null), !1);
5119
5119
  }, $r = function(h, f, v) {
5120
- if (ar && (f === "id" || f === "name") && (v in t || v in hl))
5120
+ if (ar && (f === "id" || f === "name") && (v in t || v in dl))
5121
5121
  return !1;
5122
- if (!(oi && !ri[f] && G(nl, f))) {
5123
- if (!(sr && G(il, f))) {
5122
+ if (!(oi && !ri[f] && G(il, f))) {
5123
+ if (!(sr && G(sl, f))) {
5124
5124
  if (!D[f] || ri[f]) {
5125
5125
  if (
5126
5126
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
@@ -5133,7 +5133,7 @@ function Ma() {
5133
5133
  } else if (!ui[f]) {
5134
5134
  if (!G(tr, It(v, er, ""))) {
5135
5135
  if (!((f === "src" || f === "xlink:href" || f === "href") && h !== "script" && Lh(v, "data:") === 0 && ur[h])) {
5136
- if (!(rr && !G(sl, It(v, er, "")))) {
5136
+ if (!(rr && !G(rl, It(v, er, "")))) {
5137
5137
  if (v)
5138
5138
  return !1;
5139
5139
  }
@@ -5144,9 +5144,9 @@ function Ma() {
5144
5144
  }
5145
5145
  return !0;
5146
5146
  }, wr = function(h) {
5147
- return h !== "annotation-xml" && mo(h, rl);
5147
+ return h !== "annotation-xml" && mo(h, ol);
5148
5148
  }, xr = function(h) {
5149
- $e(V.beforeSanitizeAttributes, h, null);
5149
+ xe(V.beforeSanitizeAttributes, h, null);
5150
5150
  const {
5151
5151
  attributes: f
5152
5152
  } = h;
@@ -5164,10 +5164,10 @@ function Ma() {
5164
5164
  const B = f[L], {
5165
5165
  name: I,
5166
5166
  namespaceURI: J,
5167
- value: we
5168
- } = B, Ot = N(I), gi = we;
5167
+ value: ke
5168
+ } = B, Ot = N(I), gi = ke;
5169
5169
  let q = I === "value" ? gi : Rh(gi);
5170
- if (v.attrName = Ot, v.attrValue = q, v.keepAttr = !0, v.forceKeepAttr = void 0, $e(V.uponSanitizeAttribute, h, v), q = v.attrValue, lr && (Ot === "id" || Ot === "name") && (ut(I, h), q = ol + q), cn && G(/((--!?|])>)|<\/(style|title)/i, q)) {
5170
+ if (v.attrName = Ot, v.attrValue = q, v.keepAttr = !0, v.forceKeepAttr = void 0, xe(V.uponSanitizeAttribute, h, v), q = v.attrValue, lr && (Ot === "id" || Ot === "name") && (ut(I, h), q = al + q), cn && G(/((--!?|])>)|<\/(style|title)/i, q)) {
5171
5171
  ut(I, h);
5172
5172
  continue;
5173
5173
  }
@@ -5202,18 +5202,18 @@ function Ma() {
5202
5202
  }
5203
5203
  if (q !== gi)
5204
5204
  try {
5205
- J ? h.setAttributeNS(J, I, q) : h.setAttribute(I, q), fi(h) ? de(h) : go(e.removed);
5205
+ J ? h.setAttributeNS(J, I, q) : h.setAttribute(I, q), fi(h) ? fe(h) : go(e.removed);
5206
5206
  } catch {
5207
5207
  ut(I, h);
5208
5208
  }
5209
5209
  }
5210
- $e(V.afterSanitizeAttributes, h, null);
5211
- }, pl = function b(h) {
5210
+ xe(V.afterSanitizeAttributes, h, null);
5211
+ }, fl = function b(h) {
5212
5212
  let f = null;
5213
5213
  const v = vr(h);
5214
- for ($e(V.beforeSanitizeShadowDOM, h, null); f = v.nextNode(); )
5215
- $e(V.uponSanitizeShadowNode, f, null), yr(f), xr(f), f.content instanceof r && b(f.content);
5216
- $e(V.afterSanitizeShadowDOM, h, null);
5214
+ for (xe(V.beforeSanitizeShadowDOM, h, null); f = v.nextNode(); )
5215
+ xe(V.uponSanitizeShadowNode, f, null), yr(f), xr(f), f.content instanceof r && b(f.content);
5216
+ xe(V.afterSanitizeShadowDOM, h, null);
5217
5217
  };
5218
5218
  return e.sanitize = function(b) {
5219
5219
  let h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, f = null, v = null, L = null, B = null;
@@ -5227,8 +5227,8 @@ function Ma() {
5227
5227
  return b;
5228
5228
  if (ai || pi(h), e.removed = [], typeof b == "string" && (At = !1), At) {
5229
5229
  if (b.nodeName) {
5230
- const we = N(b.nodeName);
5231
- if (!U[we] || _t[we])
5230
+ const ke = N(b.nodeName);
5231
+ if (!U[ke] || _t[ke])
5232
5232
  throw Pt("root node is forbidden and cannot be sanitized in-place");
5233
5233
  }
5234
5234
  } else if (b instanceof a)
@@ -5240,24 +5240,24 @@ function Ma() {
5240
5240
  if (f = mr(b), !f)
5241
5241
  return rt ? null : hn ? Fe : "";
5242
5242
  }
5243
- f && li && de(f.firstChild);
5243
+ f && li && fe(f.firstChild);
5244
5244
  const I = vr(At ? b : f);
5245
5245
  for (; L = I.nextNode(); )
5246
- yr(L), xr(L), L.content instanceof r && pl(L.content);
5246
+ yr(L), xr(L), L.content instanceof r && fl(L.content);
5247
5247
  if (At)
5248
5248
  return b;
5249
5249
  if (rt) {
5250
5250
  if (un)
5251
- for (B = Ja.call(f.ownerDocument); f.firstChild; )
5251
+ for (B = el.call(f.ownerDocument); f.firstChild; )
5252
5252
  B.appendChild(f.firstChild);
5253
5253
  else
5254
5254
  B = f;
5255
- return (D.shadowroot || D.shadowrootmode) && (B = tl.call(i, B, !0)), B;
5255
+ return (D.shadowroot || D.shadowrootmode) && (B = nl.call(i, B, !0)), B;
5256
5256
  }
5257
5257
  let J = qe ? f.outerHTML : f.innerHTML;
5258
- return qe && U["!doctype"] && f.ownerDocument && f.ownerDocument.doctype && f.ownerDocument.doctype.name && G(Pa, f.ownerDocument.doctype.name) && (J = "<!DOCTYPE " + f.ownerDocument.doctype.name + `>
5259
- ` + J), st && bn([ni, ii, si], (we) => {
5260
- J = It(J, we, " ");
5258
+ return qe && U["!doctype"] && f.ownerDocument && f.ownerDocument.doctype && f.ownerDocument.doctype.name && G(Ma, f.ownerDocument.doctype.name) && (J = "<!DOCTYPE " + f.ownerDocument.doctype.name + `>
5259
+ ` + J), st && bn([ni, ii, si], (ke) => {
5260
+ J = It(J, ke, " ");
5261
5261
  }), M && hn ? M.createHTML(J) : J;
5262
5262
  }, e.setConfig = function() {
5263
5263
  let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -5282,7 +5282,7 @@ function Ma() {
5282
5282
  V = xo();
5283
5283
  }, e;
5284
5284
  }
5285
- var Ua = Ma(), Gh = Object.defineProperty, Zh = (n, e, t, i) => {
5285
+ var Na = Ua(), Gh = Object.defineProperty, Zh = (n, e, t, i) => {
5286
5286
  for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
5287
5287
  (o = n[r]) && (s = o(e, t, s) || s);
5288
5288
  return s && Gh(e, t, s), s;
@@ -5290,12 +5290,12 @@ var Ua = Ma(), Gh = Object.defineProperty, Zh = (n, e, t, i) => {
5290
5290
  const Hs = class Hs extends _ {
5291
5291
  render() {
5292
5292
  return y`<div class="message-type-html">
5293
- ${Ch(Ua.sanitize(this.message.content))}
5293
+ ${Ch(Na.sanitize(this.message.content))}
5294
5294
  </div>`;
5295
5295
  }
5296
5296
  };
5297
5297
  Hs.styles = [
5298
- T`
5298
+ O`
5299
5299
  :host {
5300
5300
  box-sizing: border-box;
5301
5301
  }
@@ -5350,7 +5350,7 @@ function bs() {
5350
5350
  };
5351
5351
  }
5352
5352
  var nt = bs();
5353
- function Na(n) {
5353
+ function Da(n) {
5354
5354
  nt = n;
5355
5355
  }
5356
5356
  var jt = { exec: () => null };
@@ -5422,10 +5422,10 @@ var Z = {
5422
5422
  fencesBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:\`\`\`|~~~)`),
5423
5423
  headingBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}#`),
5424
5424
  htmlBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}<(?:[a-z].*>|!--)`, "i")
5425
- }, Yh = /^(?:[ \t]*(?:\n|$))+/, Qh = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Xh = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, ln = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Kh = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, ys = /(?:[*+-]|\d{1,9}[.)])/, Da = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, za = C(Da).replace(/bull/g, ys).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(), Jh = C(Da).replace(/bull/g, ys).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(), $s = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ed = /^[^\n]+/, ws = /(?!\s*\])(?:\\.|[^\[\]\\])+/, td = C(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", ws).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), nd = C(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, ys).getRegex(), ei = "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", xs = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, id = C(
5425
+ }, Yh = /^(?:[ \t]*(?:\n|$))+/, Qh = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Xh = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, ln = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Kh = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, ys = /(?:[*+-]|\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+|$)/, Ha = C(za).replace(/bull/g, ys).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(), Jh = C(za).replace(/bull/g, ys).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(), $s = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ed = /^[^\n]+/, ws = /(?!\s*\])(?:\\.|[^\[\]\\])+/, td = C(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", ws).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), nd = C(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, ys).getRegex(), ei = "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", xs = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, id = C(
5426
5426
  "^ {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|$))",
5427
5427
  "i"
5428
- ).replace("comment", xs).replace("tag", ei).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Ha = C($s).replace("hr", ln).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", ei).getRegex(), sd = C(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Ha).getRegex(), ks = {
5428
+ ).replace("comment", xs).replace("tag", ei).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Fa = C($s).replace("hr", ln).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", ei).getRegex(), sd = C(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Fa).getRegex(), ks = {
5429
5429
  blockquote: sd,
5430
5430
  code: Qh,
5431
5431
  def: td,
@@ -5433,10 +5433,10 @@ var Z = {
5433
5433
  heading: Kh,
5434
5434
  hr: ln,
5435
5435
  html: id,
5436
- lheading: za,
5436
+ lheading: Ha,
5437
5437
  list: nd,
5438
5438
  newline: Yh,
5439
- paragraph: Ha,
5439
+ paragraph: Fa,
5440
5440
  table: jt,
5441
5441
  text: ed
5442
5442
  }, ko = C(
@@ -5457,19 +5457,19 @@ var Z = {
5457
5457
  // fences not supported
5458
5458
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
5459
5459
  paragraph: C($s).replace("hr", ln).replace("heading", ` *#{1,6} *[^
5460
- ]`).replace("lheading", za).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
5461
- }, ad = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ld = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Fa = /^( {2,}|\\)\n(?!\s*$)/, cd = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, ti = /[\p{P}\p{S}]/u, Ss = /[\s\p{P}\p{S}]/u, ja = /[^\s\p{P}\p{S}]/u, ud = C(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Ss).getRegex(), Ba = /(?!~)[\p{P}\p{S}]/u, hd = /(?!~)[\s\p{P}\p{S}]/u, dd = /(?:[^\s\p{P}\p{S}]|~)/u, pd = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, qa = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, fd = C(qa, "u").replace(/punct/g, ti).getRegex(), gd = C(qa, "u").replace(/punct/g, Ba).getRegex(), Va = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", md = C(Va, "gu").replace(/notPunctSpace/g, ja).replace(/punctSpace/g, Ss).replace(/punct/g, ti).getRegex(), vd = C(Va, "gu").replace(/notPunctSpace/g, dd).replace(/punctSpace/g, hd).replace(/punct/g, Ba).getRegex(), bd = C(
5460
+ ]`).replace("lheading", Ha).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
5461
+ }, ad = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ld = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ja = /^( {2,}|\\)\n(?!\s*$)/, cd = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, ti = /[\p{P}\p{S}]/u, Ss = /[\s\p{P}\p{S}]/u, Ba = /[^\s\p{P}\p{S}]/u, ud = C(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Ss).getRegex(), qa = /(?!~)[\p{P}\p{S}]/u, hd = /(?!~)[\s\p{P}\p{S}]/u, dd = /(?:[^\s\p{P}\p{S}]|~)/u, pd = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Va = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, fd = C(Va, "u").replace(/punct/g, ti).getRegex(), gd = C(Va, "u").replace(/punct/g, qa).getRegex(), Wa = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", md = C(Wa, "gu").replace(/notPunctSpace/g, Ba).replace(/punctSpace/g, Ss).replace(/punct/g, ti).getRegex(), vd = C(Wa, "gu").replace(/notPunctSpace/g, dd).replace(/punctSpace/g, hd).replace(/punct/g, qa).getRegex(), bd = C(
5462
5462
  "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)",
5463
5463
  "gu"
5464
- ).replace(/notPunctSpace/g, ja).replace(/punctSpace/g, Ss).replace(/punct/g, ti).getRegex(), yd = C(/\\(punct)/, "gu").replace(/punct/g, ti).getRegex(), $d = C(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), wd = C(xs).replace("(?:-->|$)", "-->").getRegex(), xd = C(
5464
+ ).replace(/notPunctSpace/g, Ba).replace(/punctSpace/g, Ss).replace(/punct/g, ti).getRegex(), yd = C(/\\(punct)/, "gu").replace(/punct/g, ti).getRegex(), $d = C(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), wd = C(xs).replace("(?:-->|$)", "-->").getRegex(), xd = C(
5465
5465
  "^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>"
5466
- ).replace("comment", wd).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), zn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, kd = C(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", zn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Wa = C(/^!?\[(label)\]\[(ref)\]/).replace("label", zn).replace("ref", ws).getRegex(), Ga = C(/^!?\[(ref)\](?:\[\])?/).replace("ref", ws).getRegex(), Sd = C("reflink|nolink(?!\\()", "g").replace("reflink", Wa).replace("nolink", Ga).getRegex(), Cs = {
5466
+ ).replace("comment", wd).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), zn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, kd = C(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", zn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Ga = C(/^!?\[(label)\]\[(ref)\]/).replace("label", zn).replace("ref", ws).getRegex(), Za = C(/^!?\[(ref)\](?:\[\])?/).replace("ref", ws).getRegex(), Sd = C("reflink|nolink(?!\\()", "g").replace("reflink", Ga).replace("nolink", Za).getRegex(), Cs = {
5467
5467
  _backpedal: jt,
5468
5468
  // only used for GFM url
5469
5469
  anyPunctuation: yd,
5470
5470
  autolink: $d,
5471
5471
  blockSkip: pd,
5472
- br: Fa,
5472
+ br: ja,
5473
5473
  code: ld,
5474
5474
  del: jt,
5475
5475
  emStrongLDelim: fd,
@@ -5477,9 +5477,9 @@ var Z = {
5477
5477
  emStrongRDelimUnd: bd,
5478
5478
  escape: ad,
5479
5479
  link: kd,
5480
- nolink: Ga,
5480
+ nolink: Za,
5481
5481
  punctuation: ud,
5482
- reflink: Wa,
5482
+ reflink: Ga,
5483
5483
  reflinkSearch: Sd,
5484
5484
  tag: xd,
5485
5485
  text: cd,
@@ -5498,7 +5498,7 @@ var Z = {
5498
5498
  text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
5499
5499
  }, Ed = {
5500
5500
  ...Qi,
5501
- br: C(Fa).replace("{2,}", "*").getRegex(),
5501
+ br: C(ja).replace("{2,}", "*").getRegex(),
5502
5502
  text: C(Qi.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
5503
5503
  }, $n = {
5504
5504
  normal: ks,
@@ -5516,7 +5516,7 @@ var Z = {
5516
5516
  '"': "&quot;",
5517
5517
  "'": "&#39;"
5518
5518
  }, So = (n) => _d[n];
5519
- function pe(n, e) {
5519
+ function ge(n, e) {
5520
5520
  if (e) {
5521
5521
  if (Z.escapeTest.test(n))
5522
5522
  return n.replace(Z.escapeReplace, So);
@@ -5742,22 +5742,22 @@ ${u}` : u;
5742
5742
  break;
5743
5743
  c = e[0], n = n.substring(c.length);
5744
5744
  let p = e[2].split(`
5745
- `, 1)[0].replace(this.rules.other.listReplaceTabs, (ae) => " ".repeat(3 * ae.length)), d = n.split(`
5745
+ `, 1)[0].replace(this.rules.other.listReplaceTabs, (ce) => " ".repeat(3 * ce.length)), d = n.split(`
5746
5746
  `, 1)[0], g = !p.trim(), m = 0;
5747
5747
  if (this.options.pedantic ? (m = 2, u = p.trimStart()) : g ? m = e[1].length + 1 : (m = e[2].search(this.rules.other.nonSpaceChar), m = m > 4 ? 1 : m, u = p.slice(m), m += e[1].length), g && this.rules.other.blankLine.test(d) && (c += d + `
5748
5748
  `, n = n.substring(d.length + 1), l = !0), !l) {
5749
- const ae = this.rules.other.nextBulletRegex(m), Ie = this.rules.other.hrRegex(m), He = this.rules.other.fencesBeginRegex(m), M = this.rules.other.headingBeginRegex(m), Fe = this.rules.other.htmlBeginRegex(m);
5749
+ const ce = this.rules.other.nextBulletRegex(m), Pe = this.rules.other.hrRegex(m), He = this.rules.other.fencesBeginRegex(m), M = this.rules.other.headingBeginRegex(m), Fe = this.rules.other.htmlBeginRegex(m);
5750
5750
  for (; n; ) {
5751
5751
  const je = n.split(`
5752
5752
  `, 1)[0];
5753
5753
  let Be;
5754
- if (d = je, this.options.pedantic ? (d = d.replace(this.rules.other.listReplaceNesting, " "), Be = d) : Be = d.replace(this.rules.other.tabCharGlobal, " "), He.test(d) || M.test(d) || Fe.test(d) || ae.test(d) || Ie.test(d))
5754
+ if (d = je, this.options.pedantic ? (d = d.replace(this.rules.other.listReplaceNesting, " "), Be = d) : Be = d.replace(this.rules.other.tabCharGlobal, " "), He.test(d) || M.test(d) || Fe.test(d) || ce.test(d) || Pe.test(d))
5755
5755
  break;
5756
5756
  if (Be.search(this.rules.other.nonSpaceChar) >= m || !d.trim())
5757
5757
  u += `
5758
5758
  ` + Be.slice(m);
5759
5759
  else {
5760
- if (g || p.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || He.test(p) || M.test(p) || Ie.test(p))
5760
+ if (g || p.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || He.test(p) || M.test(p) || Pe.test(p))
5761
5761
  break;
5762
5762
  u += `
5763
5763
  ` + d;
@@ -5767,12 +5767,12 @@ ${u}` : u;
5767
5767
  }
5768
5768
  }
5769
5769
  s.loose || (o ? s.loose = !0 : this.rules.other.doubleBlankLine.test(c) && (o = !0));
5770
- let $ = null, be;
5771
- this.options.gfm && ($ = this.rules.other.listIsTask.exec(u), $ && (be = $[0] !== "[ ] ", u = u.replace(this.rules.other.listReplaceTask, ""))), s.items.push({
5770
+ let $ = null, $e;
5771
+ this.options.gfm && ($ = this.rules.other.listIsTask.exec(u), $ && ($e = $[0] !== "[ ] ", u = u.replace(this.rules.other.listReplaceTask, ""))), s.items.push({
5772
5772
  type: "list_item",
5773
5773
  raw: c,
5774
5774
  task: !!$,
5775
- checked: be,
5775
+ checked: $e,
5776
5776
  loose: !1,
5777
5777
  text: u,
5778
5778
  tokens: []
@@ -6081,7 +6081,7 @@ ${u}` : u;
6081
6081
  };
6082
6082
  }
6083
6083
  }
6084
- }, Ce = class Xi {
6084
+ }, _e = class Xi {
6085
6085
  constructor(e) {
6086
6086
  A(this, "tokens");
6087
6087
  A(this, "options");
@@ -6339,8 +6339,8 @@ ${u}` : u;
6339
6339
  var r;
6340
6340
  const i = (r = (e || "").match(Z.notSpaceStart)) == null ? void 0 : r[0], s = n.replace(Z.endingNewline, "") + `
6341
6341
  `;
6342
- return i ? '<pre><code class="language-' + pe(i) + '">' + (t ? s : pe(s, !0)) + `</code></pre>
6343
- ` : "<pre><code>" + (t ? s : pe(s, !0)) + `</code></pre>
6342
+ return i ? '<pre><code class="language-' + ge(i) + '">' + (t ? s : ge(s, !0)) + `</code></pre>
6343
+ ` : "<pre><code>" + (t ? s : ge(s, !0)) + `</code></pre>
6344
6344
  `;
6345
6345
  }
6346
6346
  blockquote({ tokens: n }) {
@@ -6376,7 +6376,7 @@ ${this.parser.parse(n)}</blockquote>
6376
6376
  let e = "";
6377
6377
  if (n.task) {
6378
6378
  const i = this.checkbox({ checked: !!n.checked });
6379
- n.loose ? ((t = n.tokens[0]) == null ? void 0 : t.type) === "paragraph" ? (n.tokens[0].text = i + " " + n.tokens[0].text, n.tokens[0].tokens && n.tokens[0].tokens.length > 0 && n.tokens[0].tokens[0].type === "text" && (n.tokens[0].tokens[0].text = i + " " + pe(n.tokens[0].tokens[0].text), n.tokens[0].tokens[0].escaped = !0)) : n.tokens.unshift({
6379
+ n.loose ? ((t = n.tokens[0]) == null ? void 0 : t.type) === "paragraph" ? (n.tokens[0].text = i + " " + n.tokens[0].text, n.tokens[0].tokens && n.tokens[0].tokens.length > 0 && n.tokens[0].tokens[0].type === "text" && (n.tokens[0].tokens[0].text = i + " " + ge(n.tokens[0].tokens[0].text), n.tokens[0].tokens[0].escaped = !0)) : n.tokens.unshift({
6380
6380
  type: "text",
6381
6381
  raw: i + " ",
6382
6382
  text: i + " ",
@@ -6432,7 +6432,7 @@ ${n}</tr>
6432
6432
  return `<em>${this.parser.parseInline(n)}</em>`;
6433
6433
  }
6434
6434
  codespan({ text: n }) {
6435
- return `<code>${pe(n, !0)}</code>`;
6435
+ return `<code>${ge(n, !0)}</code>`;
6436
6436
  }
6437
6437
  br(n) {
6438
6438
  return "<br>";
@@ -6446,19 +6446,19 @@ ${n}</tr>
6446
6446
  return i;
6447
6447
  n = s;
6448
6448
  let r = '<a href="' + n + '"';
6449
- return e && (r += ' title="' + pe(e) + '"'), r += ">" + i + "</a>", r;
6449
+ return e && (r += ' title="' + ge(e) + '"'), r += ">" + i + "</a>", r;
6450
6450
  }
6451
6451
  image({ href: n, title: e, text: t, tokens: i }) {
6452
6452
  i && (t = this.parser.parseInline(i, this.parser.textRenderer));
6453
6453
  const s = Co(n);
6454
6454
  if (s === null)
6455
- return pe(t);
6455
+ return ge(t);
6456
6456
  n = s;
6457
6457
  let r = `<img src="${n}" alt="${t}"`;
6458
- return e && (r += ` title="${pe(e)}"`), r += ">", r;
6458
+ return e && (r += ` title="${ge(e)}"`), r += ">", r;
6459
6459
  }
6460
6460
  text(n) {
6461
- return "tokens" in n && n.tokens ? this.parser.parseInline(n.tokens) : "escaped" in n && n.escaped ? n.text : pe(n.text);
6461
+ return "tokens" in n && n.tokens ? this.parser.parseInline(n.tokens) : "escaped" in n && n.escaped ? n.text : ge(n.text);
6462
6462
  }
6463
6463
  }, Es = class {
6464
6464
  // no need for block level renderers
@@ -6489,7 +6489,7 @@ ${n}</tr>
6489
6489
  br() {
6490
6490
  return "";
6491
6491
  }
6492
- }, Ee = class Ki {
6492
+ }, Ae = class Ki {
6493
6493
  constructor(e) {
6494
6494
  A(this, "options");
6495
6495
  A(this, "renderer");
@@ -6679,13 +6679,13 @@ ${n}</tr>
6679
6679
  * Provide function to tokenize markdown
6680
6680
  */
6681
6681
  provideLexer() {
6682
- return this.block ? Ce.lex : Ce.lexInline;
6682
+ return this.block ? _e.lex : _e.lexInline;
6683
6683
  }
6684
6684
  /**
6685
6685
  * Provide function to parse tokens
6686
6686
  */
6687
6687
  provideParser() {
6688
- return this.block ? Ee.parse : Ee.parseInline;
6688
+ return this.block ? Ae.parse : Ae.parseInline;
6689
6689
  }
6690
6690
  }, A(Li, "passThroughHooks", /* @__PURE__ */ new Set([
6691
6691
  "preprocess",
@@ -6697,10 +6697,10 @@ ${n}</tr>
6697
6697
  A(this, "options", this.setOptions);
6698
6698
  A(this, "parse", this.parseMarkdown(!0));
6699
6699
  A(this, "parseInline", this.parseMarkdown(!1));
6700
- A(this, "Parser", Ee);
6700
+ A(this, "Parser", Ae);
6701
6701
  A(this, "Renderer", Xt);
6702
6702
  A(this, "TextRenderer", Es);
6703
- A(this, "Lexer", Ce);
6703
+ A(this, "Lexer", _e);
6704
6704
  A(this, "Tokenizer", Hn);
6705
6705
  A(this, "Hooks", Sn);
6706
6706
  this.use(...n);
@@ -6822,10 +6822,10 @@ ${n}</tr>
6822
6822
  return this.defaults = { ...this.defaults, ...n }, this;
6823
6823
  }
6824
6824
  lexer(n, e) {
6825
- return Ce.lex(n, e ?? this.defaults);
6825
+ return _e.lex(n, e ?? this.defaults);
6826
6826
  }
6827
6827
  parser(n, e) {
6828
- return Ee.parse(n, e ?? this.defaults);
6828
+ return Ae.parse(n, e ?? this.defaults);
6829
6829
  }
6830
6830
  parseMarkdown(n) {
6831
6831
  return (t, i) => {
@@ -6837,7 +6837,7 @@ ${n}</tr>
6837
6837
  if (typeof t != "string")
6838
6838
  return o(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
6839
6839
  r.hooks && (r.hooks.options = r, r.hooks.block = n);
6840
- const a = r.hooks ? r.hooks.provideLexer() : n ? Ce.lex : Ce.lexInline, l = r.hooks ? r.hooks.provideParser() : n ? Ee.parse : Ee.parseInline;
6840
+ const a = r.hooks ? r.hooks.provideLexer() : n ? _e.lex : _e.lexInline, l = r.hooks ? r.hooks.provideParser() : n ? Ae.parse : Ae.parseInline;
6841
6841
  if (r.async)
6842
6842
  return Promise.resolve(r.hooks ? r.hooks.preprocess(t) : t).then((c) => a(c, r)).then((c) => r.hooks ? r.hooks.processAllTokens(c) : c).then((c) => r.walkTokens ? Promise.all(this.walkTokens(c, r.walkTokens)).then(() => c) : c).then((c) => l(c, r)).then((c) => r.hooks ? r.hooks.postprocess(c) : c).catch(o);
6843
6843
  try {
@@ -6855,7 +6855,7 @@ ${n}</tr>
6855
6855
  return (t) => {
6856
6856
  if (t.message += `
6857
6857
  Please report this to https://github.com/markedjs/marked.`, n) {
6858
- const i = "<p>An error occurred:</p><pre>" + pe(t.message + "", !0) + "</pre>";
6858
+ const i = "<p>An error occurred:</p><pre>" + ge(t.message + "", !0) + "</pre>";
6859
6859
  return e ? Promise.resolve(i) : i;
6860
6860
  }
6861
6861
  if (e)
@@ -6868,23 +6868,23 @@ function S(n, e) {
6868
6868
  return et.parse(n, e);
6869
6869
  }
6870
6870
  S.options = S.setOptions = function(n) {
6871
- return et.setOptions(n), S.defaults = et.defaults, Na(S.defaults), S;
6871
+ return et.setOptions(n), S.defaults = et.defaults, Da(S.defaults), S;
6872
6872
  };
6873
6873
  S.getDefaults = bs;
6874
6874
  S.defaults = nt;
6875
6875
  S.use = function(...n) {
6876
- return et.use(...n), S.defaults = et.defaults, Na(S.defaults), S;
6876
+ return et.use(...n), S.defaults = et.defaults, Da(S.defaults), S;
6877
6877
  };
6878
6878
  S.walkTokens = function(n, e) {
6879
6879
  return et.walkTokens(n, e);
6880
6880
  };
6881
6881
  S.parseInline = et.parseInline;
6882
- S.Parser = Ee;
6883
- S.parser = Ee.parse;
6882
+ S.Parser = Ae;
6883
+ S.parser = Ae.parse;
6884
6884
  S.Renderer = Xt;
6885
6885
  S.TextRenderer = Es;
6886
- S.Lexer = Ce;
6887
- S.lexer = Ce.lex;
6886
+ S.Lexer = _e;
6887
+ S.lexer = _e.lex;
6888
6888
  S.Tokenizer = Hn;
6889
6889
  S.Hooks = Sn;
6890
6890
  S.parse = S;
@@ -6893,21 +6893,21 @@ S.setOptions;
6893
6893
  S.use;
6894
6894
  S.walkTokens;
6895
6895
  S.parseInline;
6896
- Ee.parse;
6897
- Ce.lex;
6898
- var Ld = Object.defineProperty, Za = (n, e, t, i) => {
6896
+ Ae.parse;
6897
+ _e.lex;
6898
+ var Ld = Object.defineProperty, Ya = (n, e, t, i) => {
6899
6899
  for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
6900
6900
  (o = n[r]) && (s = o(e, t, s) || s);
6901
6901
  return s && Ld(e, t, s), s;
6902
6902
  };
6903
- const Ya = new Xt();
6904
- Ya.link = function({ href: n, title: e, text: t }) {
6903
+ const Qa = new Xt();
6904
+ Qa.link = function({ href: n, title: e, text: t }) {
6905
6905
  return e ?? (e = t), `<a target="_blank" href="${n}" title="${e}">${t}</a>`;
6906
6906
  };
6907
- S.use({ renderer: Ya });
6907
+ S.use({ renderer: Qa });
6908
6908
  const Fs = class Fs extends _ {
6909
6909
  constructor() {
6910
- super(...arguments), this.showLightbox = !1, this.imageUrl = "", this.altText = "", this.scrollRef = ge(), this.contentRef = ge(), this.autoScroll = !0, this.buffer = "", this.pointer = 0, this.imageRegexp = new RegExp(/!\[[^[]*\([^)]*\)/gm);
6910
+ super(...arguments), this.showLightbox = !1, this.imageUrl = "", this.altText = "", this.scrollRef = ve(), this.contentRef = ve(), this.autoScroll = !0, this.buffer = "", this.pointer = 0, this.imageRegexp = new RegExp(/!\[[^[]*\([^)]*\)/gm);
6911
6911
  }
6912
6912
  // Stop autoscroll on user interaction
6913
6913
  handleAutoscroll() {
@@ -6952,8 +6952,9 @@ const Fs = class Fs extends _ {
6952
6952
  const e = this.getLastChunk();
6953
6953
  if (!e) return;
6954
6954
  this.buffer += e;
6955
- const t = Ua.sanitize(
6956
- S.parse(this.buffer)
6955
+ const t = Na.sanitize(
6956
+ S.parse(this.buffer),
6957
+ { ADD_ATTR: ["target"] }
6957
6958
  );
6958
6959
  if (this.includesImage(this.buffer))
6959
6960
  (s = this.contentRef.value) == null || s.appendChild(document.createElement("div")), this.buffer = "";
@@ -6972,10 +6973,10 @@ const Fs = class Fs extends _ {
6972
6973
  }
6973
6974
  render() {
6974
6975
  return y`
6975
- <div class="message-type-markdown" ${me(this.contentRef)}>
6976
+ <div class="message-type-markdown" ${be(this.contentRef)}>
6976
6977
  <div></div>
6977
6978
  </div>
6978
- <div class="scroll" ${me(this.scrollRef)}></div>
6979
+ <div class="scroll" ${be(this.scrollRef)}></div>
6979
6980
  ${this.showLightbox ? y`<ace-lightbox
6980
6981
  imageUrl="${this.imageUrl}"
6981
6982
  altText="${this.altText}"
@@ -6984,7 +6985,7 @@ const Fs = class Fs extends _ {
6984
6985
  }
6985
6986
  };
6986
6987
  Fs.styles = [
6987
- T`
6988
+ O`
6988
6989
  :host {
6989
6990
  box-sizing: border-box;
6990
6991
  }
@@ -7025,11 +7026,11 @@ Fs.styles = [
7025
7026
  `
7026
7027
  ];
7027
7028
  let Kt = Fs;
7028
- Za([
7029
+ Ya([
7029
7030
  k({ attribute: !1 })
7030
7031
  ], Kt.prototype, "message");
7031
- Za([
7032
- O()
7032
+ Ya([
7033
+ T()
7033
7034
  ], Kt.prototype, "showLightbox");
7034
7035
  var Rd = Object.defineProperty, Id = (n, e, t, i) => {
7035
7036
  for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
@@ -7080,7 +7081,7 @@ const js = class js extends _ {
7080
7081
  }
7081
7082
  };
7082
7083
  js.styles = [
7083
- T`
7084
+ O`
7084
7085
  :focus {
7085
7086
  outline-color: var(--focus-color);
7086
7087
  }
@@ -7124,7 +7125,7 @@ let Fn = js;
7124
7125
  Id([
7125
7126
  k({ attribute: !0 })
7126
7127
  ], Fn.prototype, "imageUrl");
7127
- var Pd = Object.defineProperty, Re = (n, e, t, i) => {
7128
+ var Pd = Object.defineProperty, pe = (n, e, t, i) => {
7128
7129
  for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
7129
7130
  (o = n[r]) && (s = o(e, t, s) || s);
7130
7131
  return s && Pd(e, t, s), s;
@@ -7136,12 +7137,15 @@ customElements.get("ace-typing-state") || customElements.define("ace-typing-stat
7136
7137
  customElements.get("message-type-html") || customElements.define("message-type-html", Dn);
7137
7138
  customElements.get("message-type-markdown") || customElements.define("message-type-markdown", Kt);
7138
7139
  customElements.get("ace-lightbox") || customElements.define("ace-lightbox", Fn);
7139
- const Ao = Ea(_), Bs = class Bs extends Ao {
7140
+ const Ao = _a(_), Bs = class Bs extends Ao {
7140
7141
  constructor() {
7141
- super(...arguments), this.message = "", this.disabledInput = !1, this.disabledSkipToLatest = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.isMuted = !1, this.conversationContentRef = ge(), this.conversationFeedRef = ge(), this.formRef = ge(), this.inputRef = ge(), this.scrollRef = ge(), this.counterRef = ge(), this.chatScrollHeight = 0, this.chatCurrentScrollPosition = 0, this.toast = new vh(this), this.messageMaxLength = 1e3, this.messageMaxLengthLabel = "Maximum character limit reached", this.skipToLatestMessageLabel = "Skip to latest message", this.platform = null, this.entries = [], this.typing = !1, this.conversationState$ = new ue("waiting"), this.stateMachine = new yh(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
7142
- Ae((e) => e ? e == null ? void 0 : e.provider$ : Pi(null))
7142
+ super(...arguments), this.platform = null, this.entries = [], this.typing = !1, this.message = "", this.disabledInput = !1, this.disabledSkipToLatest = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.showAuthBanner = !1, this.authenticated = !1, this.isMuted = !1, this.conversationContentRef = ve(), this.conversationFeedRef = ve(), this.formRef = ve(), this.inputRef = ve(), this.scrollRef = ve(), this.counterRef = ve(), this.chatCurrentScrollPosition = 0, this.toast = new vh(this), this.messageMaxLength = 1e3, this.messageMaxLengthLabel = "Maximum character limit reached", this.skipToLatestMessageLabel = "Skip to latest message", this.conversationState$ = new de("waiting"), this.stateMachine = new yh(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
7143
+ Oe((e) => e ? e == null ? void 0 : e.provider$ : Pi(null))
7143
7144
  ), this.userTyping$ = new P();
7144
7145
  }
7146
+ // =================
7147
+ // LIFECYCLE METHODS
7148
+ // =================
7145
7149
  async connectedCallback() {
7146
7150
  super.connectedCallback(), this.messageMaxLength = this.properties.messageMaxLength ?? this.messageMaxLength, this.messageMaxLengthLabel = this.properties.messageMaxLengthLabel ?? this.messageMaxLengthLabel, this.skipToLatestMessageLabel = this.properties.skipToLatestMessageLabel ?? this.skipToLatestMessageLabel;
7147
7151
  const e = await this.application.container.get(
@@ -7152,7 +7156,7 @@ const Ao = Ea(_), Bs = class Bs extends Ao {
7152
7156
  t && t.widgetActive$.pipe(z(t.componentIsDestroyed$)).subscribe((i) => {
7153
7157
  const s = this.conversationContentRef.value;
7154
7158
  s && (i ? s.scrollTop = this.chatCurrentScrollPosition : this.chatCurrentScrollPosition = s.scrollTop);
7155
- }), this.stateSubscription = sc([
7159
+ }), this.stateSubscription = rc([
7156
7160
  this.stateMachine.entries(),
7157
7161
  this.stateMachine.isTyping()
7158
7162
  ]).subscribe(([i, s]) => {
@@ -7162,17 +7166,23 @@ const Ao = Ea(_), Bs = class Bs extends Ao {
7162
7166
  "user-submit"
7163
7167
  ).pipe(Ui(this.provider$)).subscribe(([i, s]) => {
7164
7168
  s && s.onUserSubmit(i.detail);
7165
- }), this._addHeaderOptions(), this.provider$.pipe(Ui(this.provider$)).subscribe(([i, s]) => {
7169
+ }), this.addHeaderOptions(), this.provider$.pipe(Ui(this.provider$)).subscribe(([i, s]) => {
7166
7170
  s && s.showChatOverlay$.pipe().subscribe((r) => {
7167
7171
  this.chatOverlayActive = r;
7168
7172
  });
7169
7173
  });
7170
7174
  }
7175
+ firstUpdated() {
7176
+ this.isMuted = this.application.storage.get("muteAudioNotifications") ?? !1;
7177
+ }
7171
7178
  disconnectedCallback() {
7172
7179
  var e, t;
7173
7180
  super.disconnectedCallback(), (e = this.userSubmitSubscription) == null || e.unsubscribe(), (t = this.stateSubscription) == null || t.unsubscribe();
7174
7181
  }
7175
- _actionHandler(e) {
7182
+ // ============================
7183
+ // PRIVATE METHODS AND HANDLERS
7184
+ // ============================
7185
+ actionHandler(e) {
7176
7186
  }
7177
7187
  isTypingState() {
7178
7188
  var t, i;
@@ -7191,46 +7201,19 @@ const Ao = Ea(_), Bs = class Bs extends Ao {
7191
7201
  return e ? e.scrollHeight - e.scrollTop - e.clientHeight < 1 : !1;
7192
7202
  }
7193
7203
  scrollToBottom() {
7194
- var e, t;
7204
+ var e;
7195
7205
  (!this.isTypingState() || this.isAtBottom()) && (setTimeout(
7196
7206
  () => {
7197
- var i;
7198
- return (i = this.scrollRef.value) == null ? void 0 : i.scrollIntoView({ behavior: "smooth" });
7207
+ var t;
7208
+ return (t = this.scrollRef.value) == null ? void 0 : t.scrollIntoView({ behavior: "smooth" });
7199
7209
  },
7200
7210
  300
7201
- ), this.chatScrollHeight = (e = this.scrollRef.value) == null ? void 0 : e.scrollHeight, this.chatCurrentScrollPosition = (t = this.scrollRef.value) == null ? void 0 : t.scrollTop);
7211
+ ), this.chatCurrentScrollPosition = (e = this.scrollRef.value) == null ? void 0 : e.scrollTop);
7202
7212
  }
7203
7213
  onSessionUpdated() {
7204
7214
  this.scrollToBottom();
7205
7215
  }
7206
- disableInput() {
7207
- this.disabledInput = !0, this.message = "";
7208
- }
7209
- enableInput() {
7210
- this.disabledInput = !1;
7211
- }
7212
- enableSkipToLatestMessage() {
7213
- this.disabledSkipToLatest = !1;
7214
- }
7215
- disableSkipToLatestMessage() {
7216
- this.disabledSkipToLatest = !0;
7217
- }
7218
- disableSubmit() {
7219
- this.disabledSubmit = !0;
7220
- }
7221
- enableSubmit() {
7222
- this.disabledSubmit = !1;
7223
- }
7224
- // Clear messages when starting a new chat to avoid confusion
7225
- clearMessages() {
7226
- var s, r;
7227
- const e = (s = this.shadowRoot) == null ? void 0 : s.querySelector("ace-conversation-feed"), t = (r = e == null ? void 0 : e.shadowRoot) == null ? void 0 : r.querySelector(".conversation-feed"), i = t == null ? void 0 : t.querySelectorAll(".conversation-entry");
7228
- i == null || i.forEach((o) => o.remove());
7229
- }
7230
- setToastMessage(e) {
7231
- this.toast.message = e;
7232
- }
7233
- async _onSendMessage(e) {
7216
+ async onSendMessage(e) {
7234
7217
  var i, s;
7235
7218
  if (e.preventDefault(), this.message.length <= 0 || this.message.length > this.messageMaxLength) {
7236
7219
  (i = this.formRef.value) == null || i.classList.add("shake"), setTimeout(() => {
@@ -7247,7 +7230,7 @@ const Ao = Ea(_), Bs = class Bs extends Ao {
7247
7230
  "--textarea-default-height"
7248
7231
  );
7249
7232
  }
7250
- _addHeaderOptions() {
7233
+ addHeaderOptions() {
7251
7234
  const e = this.application.getComponent("widget-header");
7252
7235
  if (!e)
7253
7236
  return;
@@ -7261,14 +7244,54 @@ const Ao = Ea(_), Bs = class Bs extends Ao {
7261
7244
  }
7262
7245
  });
7263
7246
  }
7264
- _inputHandler(e) {
7247
+ inputHandler(e) {
7265
7248
  var t, i;
7266
7249
  this.message = e.target.value, e.target.style.height = this.style.getPropertyValue(
7267
7250
  "--textarea-default-height"
7268
7251
  ), e.target.style.height = e.target.scrollHeight + "px", this.textAreaLength = e.target.value.length, e.target.value.length > this.messageMaxLength ? (t = this.counterRef.value) == null || t.classList.add("max-char-count-reached") : (i = this.counterRef.value) == null || i.classList.remove("max-char-count-reached");
7269
7252
  }
7270
- _keyDownHandler(e) {
7271
- this.userTyping$.next(e.key), e.key === "Enter" && !e.shiftKey && !this.disabledSubmit && (this._onSendMessage(e), e.preventDefault());
7253
+ keyDownHandler(e) {
7254
+ this.userTyping$.next(e.key), e.key === "Enter" && !e.shiftKey && !this.disabledSubmit && (this.onSendMessage(e), e.preventDefault());
7255
+ }
7256
+ getAuthBannerMessage() {
7257
+ const e = this.application.texts;
7258
+ return this.authenticated ? e.getOrFallback(
7259
+ "conversation.auth-banner.authenticated",
7260
+ "Authenticated"
7261
+ ) : e.getOrFallback(
7262
+ "conversation.auth-banner.unauthenticated",
7263
+ "Not authenticated"
7264
+ );
7265
+ }
7266
+ // ==============
7267
+ // PUBLIC METHODS
7268
+ // ==============
7269
+ disableInput() {
7270
+ this.disabledInput = !0, this.message = "";
7271
+ }
7272
+ enableInput() {
7273
+ this.disabledInput = !1;
7274
+ }
7275
+ enableSkipToLatestMessage() {
7276
+ this.disabledSkipToLatest = !1;
7277
+ }
7278
+ disableSkipToLatestMessage() {
7279
+ this.disabledSkipToLatest = !0;
7280
+ }
7281
+ disableSubmit() {
7282
+ this.disabledSubmit = !0;
7283
+ }
7284
+ enableSubmit() {
7285
+ this.disabledSubmit = !1;
7286
+ }
7287
+ // Clear messages when starting a new chat to avoid confusion
7288
+ clearMessages() {
7289
+ var s, r;
7290
+ const e = (s = this.shadowRoot) == null ? void 0 : s.querySelector("ace-conversation-feed"), t = (r = e == null ? void 0 : e.shadowRoot) == null ? void 0 : r.querySelector(".conversation-feed"), i = t == null ? void 0 : t.querySelectorAll(".conversation-entry");
7291
+ i == null || i.forEach((o) => o.remove());
7292
+ }
7293
+ setToastMessage(e) {
7294
+ this.toast.message = e;
7272
7295
  }
7273
7296
  skipToLatestMessage() {
7274
7297
  var i, s;
@@ -7279,6 +7302,9 @@ const Ao = Ea(_), Bs = class Bs extends Ao {
7279
7302
  t
7280
7303
  ).pop().focus();
7281
7304
  }
7305
+ setAuthenticationBannerStatus(e) {
7306
+ this.showAuthBanner = e !== null, this.authenticated = e === ee.Authenticated;
7307
+ }
7282
7308
  handover(e, t) {
7283
7309
  this.enableInput(), this.setToastMessage(null);
7284
7310
  const i = new CustomEvent("handover", {
@@ -7289,110 +7315,121 @@ const Ao = Ea(_), Bs = class Bs extends Ao {
7289
7315
  });
7290
7316
  return this.dispatchEvent(i), i.detail.complete || tt;
7291
7317
  }
7292
- firstUpdated() {
7293
- this.isMuted = this.application.storage.get("muteAudioNotifications") ?? !1;
7294
- }
7295
7318
  render() {
7296
7319
  var s, r, o;
7297
7320
  const e = this.application.texts;
7298
7321
  this.conversationState$.value === "waiting" && ((s = this.application) != null && s.storage) && this.platform && (this.stateMachine.setStorage(this.application.storage), this.conversationState$.next("init"));
7299
7322
  const t = this.application.settings.components.conversation;
7300
- return ((o = (r = t == null ? void 0 : t.properties) == null ? void 0 : r.chat) == null ? void 0 : o.isThirdPartyWidget) && (this.renderRoot.host.style.width = "100%"), y` <div
7301
- @action=${this._actionHandler}
7302
- class=${wt({
7323
+ return ((o = (r = t == null ? void 0 : t.properties) == null ? void 0 : r.chat) == null ? void 0 : o.isThirdPartyWidget) && (this.renderRoot.host.style.width = "100%"), y` <div class="conversation-container">
7324
+ ${this.showAuthBanner ? y`<div
7325
+ class="auth-banner ${this.authenticated ? "auth-banner--authenticated" : "auth-banner--unauthenticated"}"
7326
+ role="status"
7327
+ aria-live="polite"
7328
+ >
7329
+ ${this.authenticated ? y`<telia-icon
7330
+ class="auth-banner__icon"
7331
+ size="sm"
7332
+ svg=${sa.svg}
7333
+ ></telia-icon>` : w}
7334
+ <span>${this.getAuthBannerMessage()}</span>
7335
+ </div>` : w}
7336
+ <div
7337
+ @action=${this.actionHandler}
7338
+ class=${wt({
7303
7339
  conversation: !0,
7304
7340
  disabled: this.disabledInput,
7305
7341
  "conversation--has-toast": this.toast.hasMessage(),
7306
7342
  "conversation--input-has-valid-text": this.message.length > 0 && this.message.length <= this.messageMaxLength && !this.disabledSubmit,
7307
7343
  "overlay-mode": this.chatOverlayActive
7308
7344
  })}
7309
- >
7310
- ${this.chatOverlayActive ? y`<div class="overlay-header">
7311
- <button
7312
- class="overlay-button"
7313
- @click=${() => this.chatOverlayActive = !1}
7314
- >
7315
- <telia-icon svg=${sa.svg}></telia-icon>
7316
- </button>
7317
- </div>` : w}
7318
- <div
7319
- class=${wt({
7345
+ >
7346
+ ${this.chatOverlayActive ? y`<div class="overlay-header">
7347
+ <button
7348
+ class="overlay-button"
7349
+ @click=${() => this.chatOverlayActive = !1}
7350
+ >
7351
+ <telia-icon svg=${ra.svg}></telia-icon>
7352
+ </button>
7353
+ </div>` : w}
7354
+ <div
7355
+ class=${wt({
7320
7356
  "conversation-content": !0,
7321
7357
  "conversation-overlay-mode": this.chatOverlayActive
7322
7358
  })}
7323
- part="scroll-container"
7324
- aria-live="polite"
7325
- ${me(this.conversationContentRef)}
7326
- >
7327
- ${this.toast.hasMessage() ? y`<div class="conversation__toast">${this.toast.message}</div>` : w}
7328
- <ace-conversation-feed
7329
- .entries=${this.entries}
7330
- .loading=${this.typing}
7331
- ${me(this.conversationFeedRef)}
7332
- @updated=${this.onSessionUpdated}
7333
- ></ace-conversation-feed>
7334
- <div class="scroll" ${me(this.scrollRef)}></div>
7335
- </div>
7336
- <form
7337
- class="conversation-bottom"
7338
- @submit=${this._onSendMessage}
7339
- ${me(this.formRef)}
7340
- ?inert=${this.disabledInput}
7341
- data-testid="conversation-bottom"
7342
- >
7343
- <label for="chat-message-input" class="visually-hidden">
7344
- Chat message
7345
- </label>
7346
- <textarea
7347
- id="chat-message-input"
7348
- autocomplete="off"
7349
- placeholder=${e.getOrFallback(
7359
+ part="scroll-container"
7360
+ aria-live="polite"
7361
+ ${be(this.conversationContentRef)}
7362
+ >
7363
+ ${this.toast.hasMessage() ? y`<div class="conversation__toast">${this.toast.message}</div>` : w}
7364
+ <ace-conversation-feed
7365
+ .entries=${this.entries}
7366
+ .loading=${this.typing}
7367
+ ${be(this.conversationFeedRef)}
7368
+ @updated=${this.onSessionUpdated}
7369
+ ></ace-conversation-feed>
7370
+ <div class="scroll" ${be(this.scrollRef)}></div>
7371
+ </div>
7372
+ <form
7373
+ class="conversation-bottom"
7374
+ @submit=${this.onSendMessage}
7375
+ ${be(this.formRef)}
7376
+ ?inert=${this.disabledInput}
7377
+ data-testid="conversation-bottom"
7378
+ >
7379
+ <label for="chat-message-input" class="visually-hidden">
7380
+ Chat message
7381
+ </label>
7382
+ <textarea
7383
+ id="chat-message-input"
7384
+ autocomplete="off"
7385
+ placeholder=${e.getOrFallback(
7350
7386
  "conversation.input-placeholder",
7351
7387
  "Aa"
7352
7388
  )}
7353
- data-testid="message-input"
7354
- .value=${this.message}
7355
- @input=${this._inputHandler}
7356
- @keydown=${this._keyDownHandler}
7357
- ${me(this.inputRef)}
7358
- aria-valuenow=${this.textAreaLength}
7359
- aria-valuemax=${this.messageMaxLength}
7360
- aria-valuemin="0"
7361
- role="textbox"
7362
- aria-multiline="true"
7363
- ></textarea>
7364
- <div class="conversation-actions">
7365
- <button
7366
- class="conversation-send-button"
7367
- type="submit"
7368
- data-testid="send-message-button"
7369
- title=${e.getOrFallback("conversation.send-alt", "Send")}
7370
- >
7371
- <telia-icon svg=${ra.svg}></telia-icon>
7372
- </button>
7373
- <span class="counter" ${me(this.counterRef)}>
7374
- ${this.textAreaLength} / ${this.messageMaxLength}</span
7375
- >
7376
- </div>
7377
- <div class="sr-only" aria-live="polite">
7378
- ${this.textAreaLength > this.messageMaxLength ? this.messageMaxLengthLabel : ""}
7379
- </div>
7380
- </form>
7381
- ${this.disabledSkipToLatest ? w : y`<button
7382
- class="skip-to-latest-message-button"
7383
- @click=${this.skipToLatestMessage}
7384
- >
7385
- ${this.skipToLatestMessageLabel}
7386
- </button>`}
7389
+ data-testid="message-input"
7390
+ .value=${this.message}
7391
+ @input=${this.inputHandler}
7392
+ @keydown=${this.keyDownHandler}
7393
+ ${be(this.inputRef)}
7394
+ aria-valuenow=${this.textAreaLength}
7395
+ aria-valuemax=${this.messageMaxLength}
7396
+ aria-valuemin="0"
7397
+ role="textbox"
7398
+ aria-multiline="true"
7399
+ ></textarea>
7400
+ <div class="conversation-actions">
7401
+ <button
7402
+ class="conversation-send-button"
7403
+ type="submit"
7404
+ data-testid="send-message-button"
7405
+ title=${e.getOrFallback("conversation.send-alt", "Send")}
7406
+ >
7407
+ <telia-icon svg=${oa.svg}></telia-icon>
7408
+ </button>
7409
+ <span class="counter" ${be(this.counterRef)}>
7410
+ ${this.textAreaLength} / ${this.messageMaxLength}</span
7411
+ >
7412
+ </div>
7413
+ <div class="sr-only" aria-live="polite">
7414
+ ${this.textAreaLength > this.messageMaxLength ? this.messageMaxLengthLabel : ""}
7415
+ </div>
7416
+ </form>
7417
+ ${this.disabledSkipToLatest ? w : y`<button
7418
+ class="skip-to-latest-message-button"
7419
+ @click=${this.skipToLatestMessage}
7420
+ >
7421
+ ${this.skipToLatestMessageLabel}
7422
+ </button>`}
7423
+ </div>
7387
7424
  </div>`;
7388
7425
  }
7389
7426
  };
7390
7427
  Bs.styles = [
7391
7428
  Ao.styles || [],
7392
- T`
7429
+ O`
7430
+ /* ===== HOST & GLOBAL STYLES ===== */
7393
7431
  :host {
7394
7432
  font-family: var(--font-family);
7395
- /* --send-icon-color: var(--gray-dark-color, #a6a6a6); */
7396
7433
  --textarea-default-height: 1.5rem;
7397
7434
  --send-icon-opacity: 0.4;
7398
7435
  --send-icon-color: var(--text-color);
@@ -7422,9 +7459,7 @@ Bs.styles = [
7422
7459
 
7423
7460
  --toast-bg: #caeaff;
7424
7461
  --toast-border: 1px solid #0078cb;
7425
-
7426
7462
  --toast-text-color: #000;
7427
-
7428
7463
  --error-text-color: #eb5185;
7429
7464
 
7430
7465
  --message-info-color: var(
@@ -7434,28 +7469,19 @@ Bs.styles = [
7434
7469
 
7435
7470
  scrollbar-width: thin; /* Firefox */
7436
7471
  scrollbar-color: #7f7f7f transparent; /* Firefox */
7437
- }
7438
7472
 
7439
- :focus {
7440
- outline-color: var(--focus-color);
7441
- }
7473
+ --status-info-bg: #e8f6ff;
7474
+ --status-info-text: var(--text-on-secondary-background);
7442
7475
 
7443
- ::-webkit-scrollbar {
7444
- width: 3px !important;
7445
- background-color: transparent;
7446
- border-left: none;
7476
+ --status-success-bg: #e1f9ec;
7477
+ --status-success-text: var(--text-on-secondary-background);
7447
7478
  }
7448
7479
 
7449
- ::-webkit-scrollbar-thumb {
7450
- background-color: #7f7f7f;
7451
- }
7452
-
7453
- ::-webkit-scrollbar-track {
7454
- -webkit-box-shadow: none !important;
7455
- box-shadow: none !important;
7456
- background-color: transparent;
7480
+ :focus {
7481
+ outline-color: var(--focus-color);
7457
7482
  }
7458
7483
 
7484
+ /* ===== ANIMATIONS ===== */
7459
7485
  @keyframes shake {
7460
7486
  10%,
7461
7487
  90% {
@@ -7475,48 +7501,41 @@ Bs.styles = [
7475
7501
  transform: translateX(-2px);
7476
7502
  }
7477
7503
  }
7478
- .visually-hidden {
7479
- border: 0;
7480
- clip: rect(0 0 0 0);
7481
- height: 1px;
7482
- margin: -1px;
7483
- overflow: hidden;
7484
- padding: 0;
7485
- position: absolute;
7486
- width: 1px;
7504
+
7505
+ /* ===== LAYOUT CONTAINERS ===== */
7506
+ .conversation-container {
7507
+ display: flex;
7508
+ flex-direction: column;
7509
+ height: 100%;
7487
7510
  }
7488
- .skip-to-latest-message-button {
7489
- position: absolute;
7490
- bottom: 80px;
7491
- text-align: center;
7492
- background-color: var(--conversation-bg);
7493
- text-decoration: none;
7494
- padding: var(--spacing-sm);
7495
- border-radius: var(--spacing-sm);
7496
- left: -10000000px;
7511
+
7512
+ .conversation-container:has(.auth-banner) .auth-banner {
7513
+ border-top-left-radius: var(--border-radius-sm);
7514
+ border-top-right-radius: var(--border-radius-sm);
7497
7515
  }
7498
- .skip-to-latest-message-button:focus-visible {
7499
- left: 50%;
7500
- transform: translateX(-50%);
7516
+
7517
+ .conversation-container:has(.auth-banner) .conversation-content {
7518
+ border-top-left-radius: 0;
7519
+ border-top-right-radius: 0;
7501
7520
  }
7521
+
7502
7522
  .conversation {
7503
7523
  display: grid;
7504
7524
  grid-template-rows: 1fr auto;
7505
7525
  gap: var(--spacing-lg);
7506
- height: 100%;
7526
+ flex: 1;
7527
+ min-height: 0;
7507
7528
  background-color: transparent;
7508
7529
  }
7530
+
7509
7531
  .conversation.conversation--input-has-valid-text {
7510
7532
  --send-icon-opacity: 1;
7511
7533
  }
7512
- .conversation.conversation--has-toast .conversation-content {
7513
- border-top-right-radius: 0;
7514
- border-top-left-radius: 0;
7515
- padding-top: var(--spacing-md);
7516
- }
7534
+
7517
7535
  .conversation.disabled .conversation-bottom {
7518
7536
  --conversation-input-bg: rgba(255, 255, 255, 0.4);
7519
7537
  }
7538
+
7520
7539
  .conversation-content {
7521
7540
  flex: 1;
7522
7541
  background-color: var(--conversation-bg);
@@ -7526,6 +7545,35 @@ Bs.styles = [
7526
7545
  border: 1px solid var(--content-border);
7527
7546
  position: relative;
7528
7547
  }
7548
+
7549
+ /* ===== AUTH BANNER ===== */
7550
+ .auth-banner {
7551
+ font-size: 0.85rem;
7552
+ text-align: center;
7553
+ display: flex;
7554
+ align-items: center;
7555
+ justify-content: center;
7556
+ padding: var(--spacing-sm);
7557
+ border: 1px solid var(--content-border);
7558
+ border-bottom: none;
7559
+ }
7560
+
7561
+ .auth-banner--authenticated {
7562
+ background-color: var(--status-success-bg);
7563
+ color: var(--status-success-text);
7564
+ }
7565
+
7566
+ .auth-banner--unauthenticated {
7567
+ background-color: var(--status-info-bg);
7568
+ color: var(--status-info-text);
7569
+ }
7570
+
7571
+ .auth-banner__icon {
7572
+ margin-right: var(--spacing-xs);
7573
+ flex-shrink: 0;
7574
+ }
7575
+
7576
+ /* ===== CONVERSATION COMPONENTS ===== */
7529
7577
  .conversation-bottom {
7530
7578
  border: var(--input-border);
7531
7579
  border-radius: var(--border-radius-sm);
@@ -7538,14 +7586,12 @@ Bs.styles = [
7538
7586
  margin: 0;
7539
7587
  transition: background-color 500ms ease-in-out;
7540
7588
  }
7589
+
7541
7590
  .conversation-bottom.shake {
7542
7591
  animation: 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) 0s 1 normal both
7543
7592
  running shake;
7544
7593
  }
7545
- .conversation-bottom-left {
7546
- border-right: 1px solid var(--gray-color);
7547
- padding-right: var(--spacing-md);
7548
- }
7594
+
7549
7595
  .conversation-send-button {
7550
7596
  border: none;
7551
7597
  background: transparent;
@@ -7556,25 +7602,61 @@ Bs.styles = [
7556
7602
  justify-content: right;
7557
7603
  margin-bottom: var(--spacing-xs);
7558
7604
  }
7605
+
7559
7606
  .conversation-send-button:not(:disabled):hover {
7560
7607
  --send-icon-opacity: 1;
7561
7608
  cursor: pointer;
7562
7609
  }
7610
+
7563
7611
  .conversation__toast {
7564
7612
  background-color: var(--toast-bg);
7565
7613
  border: var(--toast-border);
7566
7614
  border-radius: var(--border-radius-sm);
7567
- margin: 0 var(--spacing-md) var(--spacing-md) var(--spacing-md);
7615
+ margin: var(--spacing-md);
7568
7616
  color: var(--toast-text-color);
7569
7617
  padding: var(--spacing-md);
7570
7618
  position: sticky;
7571
- top: 0;
7572
- left: 0;
7573
- right: 0;
7619
+ top: var(--spacing-md);
7574
7620
  font-size: 0.8rem;
7575
7621
  text-align: center;
7576
7622
  font-weight: 500;
7577
7623
  }
7624
+
7625
+ .conversation-actions {
7626
+ display: flex;
7627
+ flex-direction: column;
7628
+ }
7629
+
7630
+ .counter {
7631
+ display: flex;
7632
+ justify-content: right;
7633
+ bottom: var(--spacing-xs);
7634
+ padding-top: var(--spacing-sm);
7635
+ position: absolute;
7636
+ font-size: 0.6rem;
7637
+ }
7638
+
7639
+ .max-char-count-reached {
7640
+ color: var(--error-text-color);
7641
+ }
7642
+
7643
+ .skip-to-latest-message-button {
7644
+ position: absolute;
7645
+ bottom: 80px;
7646
+ text-align: center;
7647
+ background-color: var(--conversation-bg);
7648
+ text-decoration: none;
7649
+ padding: var(--spacing-sm);
7650
+ border-radius: var(--spacing-sm);
7651
+ left: -10000000px;
7652
+ }
7653
+
7654
+ .skip-to-latest-message-button:focus-visible {
7655
+ left: 50%;
7656
+ transform: translateX(-50%);
7657
+ }
7658
+
7659
+ /* ===== FORM ELEMENTS ===== */
7578
7660
  textarea {
7579
7661
  border: none;
7580
7662
  font-family: inherit;
@@ -7589,6 +7671,7 @@ Bs.styles = [
7589
7671
  color: var(--input-text-color);
7590
7672
  }
7591
7673
 
7674
+ /* ===== SCROLLBAR STYLES ===== */
7592
7675
  [part='scroll-container'] {
7593
7676
  scrollbar-width: thin;
7594
7677
  scrollbar-color: #7f7f7f transparent !important;
@@ -7599,15 +7682,18 @@ Bs.styles = [
7599
7682
  background-color: transparent;
7600
7683
  border-left: none;
7601
7684
  }
7685
+
7602
7686
  [part='scroll-container']::-webkit-scrollbar-thumb {
7603
7687
  background-color: #7f7f7f;
7604
7688
  }
7689
+
7605
7690
  [part='scroll-container']::-webkit-scrollbar-track {
7606
7691
  -webkit-box-shadow: none !important;
7607
7692
  box-shadow: none !important;
7608
7693
  background-color: transparent;
7609
7694
  }
7610
7695
 
7696
+ /* ===== OVERLAY MODE ===== */
7611
7697
  .overlay-mode {
7612
7698
  z-index: 1;
7613
7699
  position: absolute;
@@ -7615,11 +7701,6 @@ Bs.styles = [
7615
7701
  height: auto;
7616
7702
  max-height: 68%;
7617
7703
  }
7618
- @media screen and (max-width: 800px) {
7619
- .overlay-mode {
7620
- width: 100%;
7621
- }
7622
- }
7623
7704
 
7624
7705
  .overlay-header {
7625
7706
  display: flex;
@@ -7643,22 +7724,16 @@ Bs.styles = [
7643
7724
  border-top-right-radius: 0;
7644
7725
  }
7645
7726
 
7646
- .conversation-actions {
7647
- display: flex;
7648
- flex-direction: column;
7649
- }
7650
-
7651
- .counter {
7652
- display: flex;
7653
- justify-content: right;
7654
- bottom: var(--spacing-xs);
7655
- padding-top: var(--spacing-sm);
7727
+ /* ===== UTILITY CLASSES ===== */
7728
+ .visually-hidden {
7729
+ border: 0;
7730
+ clip: rect(0 0 0 0);
7731
+ height: 1px;
7732
+ margin: -1px;
7733
+ overflow: hidden;
7734
+ padding: 0;
7656
7735
  position: absolute;
7657
- font-size: 0.6rem;
7658
- }
7659
-
7660
- .max-char-count-reached {
7661
- color: var(--error-text-color);
7736
+ width: 1px;
7662
7737
  }
7663
7738
 
7664
7739
  .sr-only {
@@ -7671,37 +7746,50 @@ Bs.styles = [
7671
7746
  clip: rect(0, 0, 0, 0);
7672
7747
  border: 0;
7673
7748
  }
7749
+
7750
+ /* ===== RESPONSIVE ===== */
7751
+ @media screen and (max-width: 800px) {
7752
+ .overlay-mode {
7753
+ width: 100%;
7754
+ }
7755
+ }
7674
7756
  `
7675
7757
  ];
7676
- let he = Bs;
7677
- Re([
7678
- O()
7679
- ], he.prototype, "message");
7680
- Re([
7681
- O()
7682
- ], he.prototype, "disabledInput");
7683
- Re([
7684
- O()
7685
- ], he.prototype, "disabledSkipToLatest");
7686
- Re([
7687
- O()
7688
- ], he.prototype, "disabledSubmit");
7689
- Re([
7690
- O()
7691
- ], he.prototype, "chatOverlayActive");
7692
- Re([
7693
- O()
7694
- ], he.prototype, "textAreaLength");
7695
- Re([
7696
- O()
7697
- ], he.prototype, "platform");
7698
- Re([
7699
- O()
7700
- ], he.prototype, "entries");
7701
- Re([
7702
- O()
7703
- ], he.prototype, "typing");
7704
- var _e = /* @__PURE__ */ ((n) => (n.Tunnistus = "tunnistus", n.BankId = "bankid", n.Freja = "freja", n))(_e || {}), H = /* @__PURE__ */ ((n) => (n.Pending = "pending", n.Authenticated = "authenticated", n.Error = "error", n))(H || {});
7758
+ let ie = Bs;
7759
+ pe([
7760
+ T()
7761
+ ], ie.prototype, "platform");
7762
+ pe([
7763
+ T()
7764
+ ], ie.prototype, "entries");
7765
+ pe([
7766
+ T()
7767
+ ], ie.prototype, "typing");
7768
+ pe([
7769
+ T()
7770
+ ], ie.prototype, "message");
7771
+ pe([
7772
+ T()
7773
+ ], ie.prototype, "disabledInput");
7774
+ pe([
7775
+ T()
7776
+ ], ie.prototype, "disabledSkipToLatest");
7777
+ pe([
7778
+ T()
7779
+ ], ie.prototype, "disabledSubmit");
7780
+ pe([
7781
+ T()
7782
+ ], ie.prototype, "chatOverlayActive");
7783
+ pe([
7784
+ T()
7785
+ ], ie.prototype, "textAreaLength");
7786
+ pe([
7787
+ T()
7788
+ ], ie.prototype, "showAuthBanner");
7789
+ pe([
7790
+ T()
7791
+ ], ie.prototype, "authenticated");
7792
+ var Te = /* @__PURE__ */ ((n) => (n.Tunnistus = "tunnistus", n.BankId = "bankid", n.Freja = "freja", n))(Te || {}), H = /* @__PURE__ */ ((n) => (n.Pending = "pending", n.Authenticated = "authenticated", n.Error = "error", n))(H || {});
7705
7793
  class Bt {
7706
7794
  constructor(e) {
7707
7795
  this.orderRef = "", e = {
@@ -7733,18 +7821,18 @@ class Bt {
7733
7821
  };
7734
7822
  const t = await e.json();
7735
7823
  switch (this.orderRef = t.orderRef, this.config.idHubEidType) {
7736
- case _e.Tunnistus:
7824
+ case Te.Tunnistus:
7737
7825
  return {
7738
7826
  tunnistusURL: t.tunnistusURL,
7739
7827
  status: H.Pending
7740
7828
  };
7741
- case _e.BankId:
7829
+ case Te.BankId:
7742
7830
  return {
7743
7831
  autoStartToken: t.autoStartToken,
7744
7832
  status: H.Pending
7745
7833
  };
7746
- case _e.Freja:
7747
- throw new Error(`${_e.Freja} is not implemented`);
7834
+ case Te.Freja:
7835
+ throw new Error(`${Te.Freja} is not implemented`);
7748
7836
  default:
7749
7837
  throw new Error(
7750
7838
  `The service ${this.config.idHubEidType} is not implemented`
@@ -7831,7 +7919,7 @@ class Bt {
7831
7919
  }
7832
7920
  }
7833
7921
  }
7834
- const ke = (n) => n.objectType === "info", Md = (n) => n.objectType === "chatEntry", Ud = (n) => n.objectType === "pen", Nd = (n) => n.objectType === "chatButtonClicked", Dd = (n) => n.objectType === "endVideoButtonClicked", zd = (n) => n.type === "queue-status", Hd = (n) => n.type === "established", Fd = (n) => n.type === "pen-status", jd = (n) => n.type === "prepareVideo", Bd = (n) => n.type === "videoPrepared", qd = (n) => n.type === "chatButtonClicked", Vd = (n) => n.type === "endVideoButtonClicked", Wd = (n) => n.type === "chat-ended";
7922
+ const Ce = (n) => n.objectType === "info", Md = (n) => n.objectType === "chatEntry", Ud = (n) => n.objectType === "pen", Nd = (n) => n.objectType === "chatButtonClicked", Dd = (n) => n.objectType === "endVideoButtonClicked", zd = (n) => n.type === "queue-status", Hd = (n) => n.type === "established", Fd = (n) => n.type === "pen-status", jd = (n) => n.type === "prepareVideo", Bd = (n) => n.type === "videoPrepared", qd = (n) => n.type === "chatButtonClicked", Vd = (n) => n.type === "endVideoButtonClicked", Wd = (n) => n.type === "chat-ended";
7835
7923
  var Ze = /* @__PURE__ */ ((n) => (n.Initial = "initial", n.Error = "error", n.Retry = "retry", n))(Ze || {});
7836
7924
  class jn extends Error {
7837
7925
  constructor(e) {
@@ -7978,7 +8066,7 @@ const Gd = () => "10000000-1000-4000-8000-100000000000".replace(
7978
8066
  function es(n) {
7979
8067
  return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n);
7980
8068
  }
7981
- function Qa(n) {
8069
+ function Xa(n) {
7982
8070
  return n.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
7983
8071
  }
7984
8072
  function Zd(n) {
@@ -8004,7 +8092,7 @@ class Yd {
8004
8092
  text: this.config.errorMessage ?? "An error occured",
8005
8093
  source: "system"
8006
8094
  }), new j())),
8007
- Ae(() => this.poll().pipe(
8095
+ Oe(() => this.poll().pipe(
8008
8096
  vi(() => this.poll()),
8009
8097
  // Using concatMap here to ensure that each http request gets handled in order
8010
8098
  bi()
@@ -8031,7 +8119,7 @@ class Yd {
8031
8119
  text: this.config.errorMessage ?? "An error occured",
8032
8120
  source: "system"
8033
8121
  }), new j())),
8034
- Ae(() => this.poll().pipe(
8122
+ Oe(() => this.poll().pipe(
8035
8123
  vi(() => this.poll()),
8036
8124
  // Using concatMap here to ensure that each http request gets handled in order
8037
8125
  bi()
@@ -8046,7 +8134,7 @@ class Yd {
8046
8134
  );
8047
8135
  }
8048
8136
  poll() {
8049
- return lc(
8137
+ return cc(
8050
8138
  () => Ye(
8051
8139
  this.client.chatRead({
8052
8140
  uid: this.sessionId,
@@ -8055,7 +8143,7 @@ class Yd {
8055
8143
  maxObjectId: this.lastObjectId
8056
8144
  })
8057
8145
  ).pipe(
8058
- mc((e) => {
8146
+ vc((e) => {
8059
8147
  this.processMessages(e);
8060
8148
  })
8061
8149
  )
@@ -8068,7 +8156,7 @@ class Yd {
8068
8156
  clockstamp: Date.now().toString(),
8069
8157
  message: e
8070
8158
  }), i = ((t == null ? void 0 : t.dataObjects) || []).find(
8071
- (s) => ke(s) && s.infoType === "error"
8159
+ (s) => Ce(s) && s.infoType === "error"
8072
8160
  );
8073
8161
  if (i)
8074
8162
  throw new jn(i.text || "Unable to send message");
@@ -8102,7 +8190,7 @@ class Yd {
8102
8190
  emailAddress: e
8103
8191
  });
8104
8192
  if (((t == null ? void 0 : t.dataObjects) || []).find(
8105
- (s) => ke(s) && s.infoType === "error"
8193
+ (s) => Ce(s) && s.infoType === "error"
8106
8194
  ))
8107
8195
  throw new jn("Unable to send email with conversation");
8108
8196
  }
@@ -8116,10 +8204,10 @@ class Yd {
8116
8204
  }), Ud(t) && this.actionsSubject$.next({
8117
8205
  penStatus: t.penStatus,
8118
8206
  type: "pen-status"
8119
- }), ke(t) && t.infoType === "queue" && this.actionsSubject$.next({
8207
+ }), Ce(t) && t.infoType === "queue" && this.actionsSubject$.next({
8120
8208
  text: t.text,
8121
8209
  type: "queue-status"
8122
- }), ke(t) && t.infoType === "established" && this.actionsSubject$.next({
8210
+ }), Ce(t) && t.infoType === "established" && this.actionsSubject$.next({
8123
8211
  text: t.text,
8124
8212
  agentAlias: t.agentAlias,
8125
8213
  type: "established",
@@ -8128,9 +8216,9 @@ class Yd {
8128
8216
  agentUsername: t.agentUsername,
8129
8217
  entrance: t.entrance,
8130
8218
  errand: t.errand
8131
- }), ke(t) && t.infoType === "prepareVideo" && this.actionsSubject$.next({
8219
+ }), Ce(t) && t.infoType === "prepareVideo" && this.actionsSubject$.next({
8132
8220
  type: "prepareVideo"
8133
- }), ke(t) && t.infoType === "videoPrepared" && this.actionsSubject$.next({
8221
+ }), Ce(t) && t.infoType === "videoPrepared" && this.actionsSubject$.next({
8134
8222
  text: t.text,
8135
8223
  agent: t.agent,
8136
8224
  type: "videoPrepared",
@@ -8141,7 +8229,7 @@ class Yd {
8141
8229
  }), Dd(t) && this.actionsSubject$.next({
8142
8230
  guestId: t.guestId,
8143
8231
  type: "endVideoButtonClicked"
8144
- }), ke(t) && ["afterChat", "finished"].includes(t.infoType) && this.actionsSubject$.next({
8232
+ }), Ce(t) && ["afterChat", "finished"].includes(t.infoType) && this.actionsSubject$.next({
8145
8233
  text: t.text,
8146
8234
  type: "chat-ended",
8147
8235
  showForm: t.infoType === "afterChat",
@@ -8158,7 +8246,7 @@ class Yd {
8158
8246
  return "noSession";
8159
8247
  const t = e.dataObjects;
8160
8248
  for (const i of t)
8161
- if (ke(i))
8249
+ if (Ce(i))
8162
8250
  switch (i.infoType) {
8163
8251
  case "finished":
8164
8252
  case "afterChat":
@@ -8174,7 +8262,7 @@ class Yd {
8174
8262
  instance: this.config.instance
8175
8263
  });
8176
8264
  return !e || (e.dataObjects || []).find(
8177
- (t) => ke(t) && t.infoType === "noSession"
8265
+ (t) => Ce(t) && t.infoType === "noSession"
8178
8266
  ) ? null : (this.processMessages(e), e);
8179
8267
  }
8180
8268
  // TODO: Add missing Chat Engine requests below:
@@ -8341,7 +8429,7 @@ let it = (bt = class extends _ {
8341
8429
  ></ace-contact-data-field>
8342
8430
  <div
8343
8431
  class="warning-row"
8344
- data-testid=${`form-${Qa(t.name)}-warning`}
8432
+ data-testid=${`form-${Xa(t.name)}-warning`}
8345
8433
  style="display: ${this.showValidationWarning && this.validationErrors.includes(t.name) ? "flex" : "none"};"
8346
8434
  >
8347
8435
  <telia-icon
@@ -8360,7 +8448,7 @@ let it = (bt = class extends _ {
8360
8448
  </div>`;
8361
8449
  }
8362
8450
  }, bt.styles = [
8363
- T`
8451
+ O`
8364
8452
  :host {
8365
8453
  display: block;
8366
8454
  }
@@ -8444,22 +8532,22 @@ let it = (bt = class extends _ {
8444
8532
  `
8445
8533
  ], bt);
8446
8534
  Et([
8447
- O()
8535
+ T()
8448
8536
  ], it.prototype, "submitted");
8449
8537
  Et([
8450
- O()
8538
+ T()
8451
8539
  ], it.prototype, "customData");
8452
8540
  Et([
8453
- O()
8541
+ T()
8454
8542
  ], it.prototype, "customerName");
8455
8543
  Et([
8456
- O()
8544
+ T()
8457
8545
  ], it.prototype, "validationErrors");
8458
8546
  Et([
8459
- O()
8547
+ T()
8460
8548
  ], it.prototype, "showValidationWarning");
8461
8549
  Et([
8462
- oe({ context: ne }),
8550
+ le({ context: se }),
8463
8551
  k({ attribute: !1 })
8464
8552
  ], it.prototype, "application");
8465
8553
  window.customElements.get("ace-welcome-form") || window.customElements.define("ace-welcome-form", it);
@@ -8534,7 +8622,7 @@ const qs = class qs extends _ {
8534
8622
  }
8535
8623
  };
8536
8624
  qs.styles = [
8537
- T`
8625
+ O`
8538
8626
  :host {
8539
8627
  display: block;
8540
8628
  visibility: visible;
@@ -8616,13 +8704,13 @@ qs.styles = [
8616
8704
  ];
8617
8705
  let kt = qs;
8618
8706
  As([
8619
- O()
8707
+ T()
8620
8708
  ], kt.prototype, "submitted");
8621
8709
  As([
8622
- O()
8710
+ T()
8623
8711
  ], kt.prototype, "name");
8624
8712
  As([
8625
- oe({ context: ne }),
8713
+ le({ context: se }),
8626
8714
  k({ attribute: !1 })
8627
8715
  ], kt.prototype, "application");
8628
8716
  window.customElements.get("ace-welcome-form-third-party") || window.customElements.define("ace-welcome-form-third-party", kt);
@@ -8701,7 +8789,7 @@ const Vs = class Vs extends _ {
8701
8789
  }
8702
8790
  };
8703
8791
  Vs.styles = [
8704
- T`
8792
+ O`
8705
8793
  :host {
8706
8794
  display: block;
8707
8795
  }
@@ -8779,13 +8867,13 @@ Vs.styles = [
8779
8867
  ];
8780
8868
  let St = Vs;
8781
8869
  Ts([
8782
- O()
8870
+ T()
8783
8871
  ], St.prototype, "email");
8784
8872
  Ts([
8785
- O()
8873
+ T()
8786
8874
  ], St.prototype, "isEmailValid");
8787
8875
  Ts([
8788
- oe({ context: ne }),
8876
+ le({ context: se }),
8789
8877
  k({ attribute: !1 })
8790
8878
  ], St.prototype, "application");
8791
8879
  window.customElements.get("ace-conversation-ended-form") || window.customElements.define(
@@ -8858,7 +8946,7 @@ const Ws = class Ws extends _ {
8858
8946
  }
8859
8947
  };
8860
8948
  Ws.styles = [
8861
- T`
8949
+ O`
8862
8950
  :host {
8863
8951
  display: block;
8864
8952
  }
@@ -8924,7 +9012,7 @@ Ws.styles = [
8924
9012
  ];
8925
9013
  let Bn = Ws;
8926
9014
  ep([
8927
- oe({ context: ne }),
9015
+ le({ context: se }),
8928
9016
  k({ attribute: !1 })
8929
9017
  ], Bn.prototype, "application");
8930
9018
  window.customElements.get("ace-video-confirm-dialog") || window.customElements.define("ace-video-confirm-dialog", Bn);
@@ -8960,7 +9048,7 @@ const Gs = class Gs extends _ {
8960
9048
  }
8961
9049
  };
8962
9050
  Gs.styles = [
8963
- T`
9051
+ O`
8964
9052
  :focus {
8965
9053
  outline-color: var(--focus-color);
8966
9054
  }
@@ -9010,7 +9098,7 @@ Gs.styles = [
9010
9098
  ];
9011
9099
  let qn = Gs;
9012
9100
  np([
9013
- oe({ context: ne }),
9101
+ le({ context: se }),
9014
9102
  k({ attribute: !1 })
9015
9103
  ], qn.prototype, "application");
9016
9104
  window.customElements.get("ace-survey") || window.customElements.define("ace-survey", qn);
@@ -9052,7 +9140,7 @@ const Zs = class Zs extends _ {
9052
9140
  }
9053
9141
  };
9054
9142
  Zs.styles = [
9055
- T`
9143
+ O`
9056
9144
  :host {
9057
9145
  display: block;
9058
9146
  }
@@ -9107,14 +9195,14 @@ Zs.styles = [
9107
9195
  ];
9108
9196
  let Vn = Zs;
9109
9197
  sp([
9110
- oe({ context: ne }),
9198
+ le({ context: se }),
9111
9199
  k({ attribute: !1 })
9112
9200
  ], Vn.prototype, "application");
9113
9201
  window.customElements.get("ace-entrance-closed-dialog") || window.customElements.define(
9114
9202
  "ace-entrance-closed-dialog",
9115
9203
  Vn
9116
9204
  );
9117
- var rp = Object.defineProperty, Xa = (n, e, t, i) => {
9205
+ var rp = Object.defineProperty, Ka = (n, e, t, i) => {
9118
9206
  for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
9119
9207
  (o = n[r]) && (s = o(e, t, s) || s);
9120
9208
  return s && rp(e, t, s), s;
@@ -9156,7 +9244,7 @@ const Ys = class Ys extends _ {
9156
9244
  `;
9157
9245
  }
9158
9246
  render() {
9159
- const e = `form-${Qa(this.entry.name)}`, t = this.entry.displayName;
9247
+ const e = `form-${Xa(this.entry.name)}`, t = this.entry.displayName;
9160
9248
  return this.entry.entryType === "text" ? y`<div class="container">
9161
9249
  <label for=${e}
9162
9250
  >${t} ${this.renderRequiredIndicator(this.entry.required)}
@@ -9199,14 +9287,14 @@ const Ys = class Ys extends _ {
9199
9287
  </option>`)}
9200
9288
  </select>
9201
9289
  <div class="custom-chevron-down">
9202
- <telia-icon .svg=${sa.svg}></telia-icon>
9290
+ <telia-icon .svg=${ra.svg}></telia-icon>
9203
9291
  </div>
9204
9292
  </div>
9205
9293
  </div>` : y`<div>Unknown entry type</div>`;
9206
9294
  }
9207
9295
  };
9208
9296
  Ys.styles = [
9209
- T`
9297
+ O`
9210
9298
  :focus {
9211
9299
  outline-color: var(--focus-color);
9212
9300
  }
@@ -9300,11 +9388,11 @@ Ys.styles = [
9300
9388
  `
9301
9389
  ];
9302
9390
  let Jt = Ys;
9303
- Xa([
9391
+ Ka([
9304
9392
  k({ attribute: !1 })
9305
9393
  ], Jt.prototype, "entry");
9306
- Xa([
9307
- oe({ context: ne }),
9394
+ Ka([
9395
+ le({ context: se }),
9308
9396
  k({ attribute: !1 })
9309
9397
  ], Jt.prototype, "application");
9310
9398
  window.customElements.get("ace-contact-data-field") || window.customElements.define("ace-contact-data-field", Jt);
@@ -9369,7 +9457,7 @@ const Qs = class Qs extends _ {
9369
9457
  }
9370
9458
  };
9371
9459
  Qs.styles = [
9372
- T`
9460
+ O`
9373
9461
  :host {
9374
9462
  display: block;
9375
9463
  }
@@ -9435,7 +9523,7 @@ Qs.styles = [
9435
9523
  ];
9436
9524
  let Wn = Qs;
9437
9525
  ap([
9438
- oe({ context: ne }),
9526
+ le({ context: se }),
9439
9527
  k({ attribute: !1 })
9440
9528
  ], Wn.prototype, "application");
9441
9529
  window.customElements.get("ace-quit-confirm-dialog") || window.customElements.define("ace-quit-confirm-dialog", Wn);
@@ -9500,7 +9588,7 @@ const Xs = class Xs extends _ {
9500
9588
  }
9501
9589
  };
9502
9590
  Xs.styles = [
9503
- T`
9591
+ O`
9504
9592
  :host {
9505
9593
  display: block;
9506
9594
  }
@@ -9566,7 +9654,7 @@ Xs.styles = [
9566
9654
  ];
9567
9655
  let Gn = Xs;
9568
9656
  cp([
9569
- oe({ context: ne }),
9657
+ le({ context: se }),
9570
9658
  k({ attribute: !1 })
9571
9659
  ], Gn.prototype, "application");
9572
9660
  window.customElements.get("ace-logout-confirm-dialog") || window.customElements.define(
@@ -9667,7 +9755,7 @@ const Ks = class Ks extends _ {
9667
9755
  }
9668
9756
  };
9669
9757
  Ks.styles = [
9670
- T`
9758
+ O`
9671
9759
  :focus {
9672
9760
  outline-color: var(--focus-color);
9673
9761
  }
@@ -9742,7 +9830,7 @@ Ks.styles = [
9742
9830
  ];
9743
9831
  let Zn = Ks;
9744
9832
  hp([
9745
- oe({ context: ne }),
9833
+ le({ context: se }),
9746
9834
  k({ attribute: !1 })
9747
9835
  ], Zn.prototype, "application");
9748
9836
  window.customElements.get("ace-tunnistus-auth-card") || window.customElements.define("ace-tunnistus-auth-card", Zn);
@@ -9751,7 +9839,7 @@ window.customElements.get("ace-tunnistus-auth-card") || window.customElements.de
9751
9839
  * Copyright 2018 Google LLC
9752
9840
  * SPDX-License-Identifier: BSD-3-Clause
9753
9841
  */
9754
- const Ka = "important", dp = " !" + Ka, pp = on(class extends Jn {
9842
+ const Ja = "important", dp = " !" + Ja, pp = on(class extends Jn {
9755
9843
  constructor(n) {
9756
9844
  var e;
9757
9845
  if (super(n), n.type !== rn.ATTRIBUTE || n.name !== "style" || ((e = n.strings) == null ? void 0 : e.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
@@ -9771,10 +9859,10 @@ const Ka = "important", dp = " !" + Ka, pp = on(class extends Jn {
9771
9859
  if (s != null) {
9772
9860
  this.ft.add(i);
9773
9861
  const r = typeof s == "string" && s.endsWith(dp);
9774
- i.includes("-") || r ? t.setProperty(i, r ? s.slice(0, -11) : s, r ? Ka : "") : t[i] = s;
9862
+ i.includes("-") || r ? t.setProperty(i, r ? s.slice(0, -11) : s, r ? Ja : "") : t[i] = s;
9775
9863
  }
9776
9864
  }
9777
- return Te;
9865
+ return Le;
9778
9866
  }
9779
9867
  });
9780
9868
  var fp = Object.defineProperty, gp = (n, e, t, i) => {
@@ -9822,7 +9910,7 @@ const Js = class Js extends _ {
9822
9910
  }
9823
9911
  };
9824
9912
  Js.styles = [
9825
- T`
9913
+ O`
9826
9914
  :host {
9827
9915
  display: block;
9828
9916
  }
@@ -9847,11 +9935,11 @@ Js.styles = [
9847
9935
  ];
9848
9936
  let en = Js;
9849
9937
  gp([
9850
- oe({ context: ne }),
9938
+ le({ context: se }),
9851
9939
  k({ attribute: !1 })
9852
9940
  ], en.prototype, "application");
9853
9941
  window.customElements.get("ace-video-iframe") || window.customElements.define("ace-video-iframe", en);
9854
- class Os extends xc {
9942
+ class Os extends kc {
9855
9943
  constructor(e, t) {
9856
9944
  var i, s, r, o;
9857
9945
  super(e, t), this.pendingMessages = [], this.texts = this.component.application.texts, this.headerComponent = this.component.application.getComponent("widget-header"), this.isThirdPartyParticipant = this.component.properties.chat.isThirdPartyWidget, this.agent = this.createAgent(""), this.user = this.createUser(""), this.params = new URLSearchParams(document.location.search), this.invitationUid = this.params.get("invitationUid"), this.customerName = this.params.get("customerName") || void 0, this.idHubUrl = "https://idhub.dev-se.telia-ck8s.com/idhub-gateway/public", this.logoutTimer = null, this.disconnected$ = new P(), this.agentUsername = null, this.conversationOption = null, this._conversationOptions = {}, this.sessionId = null, this.contactId = null, this.errand = null, this.entrance = null, this.guestId = null, this.chatOverlayActive = !1, this.inVideoCall = !1, this.onQueueStatusReceived = (a) => {
@@ -9953,14 +10041,21 @@ class Os extends xc {
9953
10041
  }
9954
10042
  save(e) {
9955
10043
  this.component.stateMachine.session().pipe(
9956
- Ae((t) => (t == null ? void 0 : t.data$) || tt),
9957
- fe(1)
10044
+ Oe((t) => (t == null ? void 0 : t.data$) || tt),
10045
+ me(1)
9958
10046
  ).subscribe((t) => {
9959
10047
  this.saveToCurrentSession$.next({ ...t, ...e });
9960
10048
  });
9961
10049
  }
9962
10050
  async rehydrate(e) {
9963
- e.chatSessionId && this.setSessionId(e.chatSessionId), e.survey && (this.contactId = e.survey.contactId, this.errand = e.survey.errand, this.entrance = e.survey.entrance, this.agentUsername = e.survey.agentUsername);
10051
+ if (e.chatSessionId && this.setSessionId(e.chatSessionId), e.survey && (this.contactId = e.survey.contactId, this.errand = e.survey.errand, this.entrance = e.survey.entrance, this.agentUsername = e.survey.agentUsername), this.shouldUseAuth) {
10052
+ const t = this.component.application.storage.get(
10053
+ "auth"
10054
+ );
10055
+ t != null && t.authenticated ? this.component.setAuthenticationBannerStatus(ee.Authenticated) : this.component.setAuthenticationBannerStatus(
10056
+ ee.NonAuthenticated
10057
+ );
10058
+ }
9964
10059
  }
9965
10060
  // ==============
9966
10061
  // STATIC METHODS
@@ -9972,7 +10067,7 @@ class Os extends xc {
9972
10067
  // INTERNAL UTILITY METHODS
9973
10068
  // ========================
9974
10069
  async initializeChat(e) {
9975
- this.shouldUseAuth && this.idHubEidType ? (this.setupIDHubAuth(), this.idHubClient && await this.startAuthenticationFlow()) : this.handleWelcomeForm(e);
10070
+ this.shouldUseAuth && this.idHubEidType ? (this.component.setAuthenticationBannerStatus(ee.NonAuthenticated), this.setupIDHubAuth(), this.idHubClient && await this.startAuthenticationFlow()) : this.handleWelcomeForm(e);
9976
10071
  }
9977
10072
  setupAuthenticationListeners() {
9978
10073
  var e;
@@ -9993,7 +10088,7 @@ class Os extends xc {
9993
10088
  });
9994
10089
  }
9995
10090
  async startAuthenticationFlow() {
9996
- this.component.disableInput(), this.resetAuthState(Pe.NonAuthenticated);
10091
+ this.component.disableInput(), this.resetAuthState(ee.NonAuthenticated);
9997
10092
  const e = await this.idHubClient.auth();
9998
10093
  if (e.status === H.Error) {
9999
10094
  this.printSystem(
@@ -10008,7 +10103,7 @@ class Os extends xc {
10008
10103
  // ========================
10009
10104
  // Tunnistus authentication
10010
10105
  // ========================
10011
- case _e.Tunnistus:
10106
+ case Te.Tunnistus:
10012
10107
  if (!e.tunnistusURL) {
10013
10108
  this.printSystem(
10014
10109
  this.texts.getOrFallback(
@@ -10018,12 +10113,12 @@ class Os extends xc {
10018
10113
  ), this.headerComponent.showAuthOptions = !1;
10019
10114
  return;
10020
10115
  }
10021
- this.authURL = e.tunnistusURL, this.headerComponent.authUrl = e.tunnistusURL, this.headerComponent.authState = Pe.NonAuthenticated, this.authenticationCardEntry = this.showTunnistusAuthCard(
10116
+ this.authURL = e.tunnistusURL, this.headerComponent.authUrl = e.tunnistusURL, this.headerComponent.authState = ee.NonAuthenticated, this.authenticationCardEntry = this.showTunnistusAuthCard(
10022
10117
  Ze.Initial,
10023
10118
  e.tunnistusURL
10024
10119
  ), this.authenticationCardEntry.actions$.pipe(
10025
10120
  W((t) => t.key === "start-auth"),
10026
- fe(1)
10121
+ me(1)
10027
10122
  ).subscribe(() => {
10028
10123
  this.handleAuthentication();
10029
10124
  });
@@ -10031,7 +10126,7 @@ class Os extends xc {
10031
10126
  // =====================
10032
10127
  // BankId authentication
10033
10128
  // =====================
10034
- case _e.BankId:
10129
+ case Te.BankId:
10035
10130
  break;
10036
10131
  }
10037
10132
  }
@@ -10074,7 +10169,7 @@ class Os extends xc {
10074
10169
  }
10075
10170
  async endConversation() {
10076
10171
  var e;
10077
- this.shouldUseAuth && this.resetAuthState(Pe.ChatEnded), await ((e = this.engine) == null ? void 0 : e.chatQuit());
10172
+ this.shouldUseAuth && this.resetAuthState(ee.ChatEnded), await ((e = this.engine) == null ? void 0 : e.chatQuit());
10078
10173
  }
10079
10174
  async sendConversationEmail(e) {
10080
10175
  var t;
@@ -10126,15 +10221,15 @@ class Os extends xc {
10126
10221
  this.headerComponent.userName = this.texts.getOrFallback(
10127
10222
  "widget-header.authenticating",
10128
10223
  "Authenticating..."
10129
- ), this.headerComponent.authState = Pe.Authenticating;
10224
+ ), this.headerComponent.authState = ee.Authenticating;
10130
10225
  const e = await this.idHubClient.collect();
10131
10226
  switch (this.authenticationCardEntry && this.authenticationCardEntry.remove(), this.idHubEidType) {
10132
- case _e.Tunnistus:
10227
+ case Te.Tunnistus:
10133
10228
  if (e.status === H.Error) {
10134
10229
  this.headerComponent.userName = this.texts.getOrFallback(
10135
10230
  "widget-header.not-authenticated",
10136
10231
  "Not authenticated"
10137
- ), this.headerComponent.authState = Pe.NonAuthenticated, this.authenticationCardEntry = this.showTunnistusAuthCard(
10232
+ ), this.headerComponent.authState = ee.NonAuthenticated, this.authenticationCardEntry = this.showTunnistusAuthCard(
10138
10233
  Ze.Error,
10139
10234
  this.authURL
10140
10235
  );
@@ -10149,16 +10244,16 @@ class Os extends xc {
10149
10244
  this.logoutUser();
10150
10245
  }, u));
10151
10246
  }
10152
- this.headerComponent.userName = l, this.headerComponent.authState = Pe.Authenticated, this.component.application.storage.set("auth", {
10247
+ this.headerComponent.userName = l, this.headerComponent.authState = ee.Authenticated, this.component.application.storage.set("auth", {
10153
10248
  name: l,
10154
10249
  authenticated: !0
10155
- }), (r = this.authenticationCardEntry) == null || r.remove(), this.handleWelcomeForm(
10250
+ }), this.component.setAuthenticationBannerStatus(ee.Authenticated), (r = this.authenticationCardEntry) == null || r.remove(), this.handleWelcomeForm(
10156
10251
  this.engine.config,
10157
10252
  e.idhubEIDToken
10158
10253
  );
10159
10254
  }
10160
10255
  break;
10161
- case _e.BankId:
10256
+ case Te.BankId:
10162
10257
  break;
10163
10258
  }
10164
10259
  }
@@ -10181,7 +10276,7 @@ class Os extends xc {
10181
10276
  // UI INJECTORS
10182
10277
  // ============
10183
10278
  showSurvey() {
10184
- const e = new ee(
10279
+ const e = new te(
10185
10280
  F.System,
10186
10281
  {
10187
10282
  name: ""
@@ -10206,7 +10301,7 @@ class Os extends xc {
10206
10301
  this.printEntry(e);
10207
10302
  }
10208
10303
  showTunnistusAuthCard(e, t, i) {
10209
- const s = new ee(
10304
+ const s = new te(
10210
10305
  F.System,
10211
10306
  {
10212
10307
  name: ""
@@ -10232,7 +10327,7 @@ class Os extends xc {
10232
10327
  showWelcomeForm() {
10233
10328
  this.component.disableInput(), this.component.disableSkipToLatestMessage();
10234
10329
  let e;
10235
- this.isThirdPartyParticipant ? e = new ee(
10330
+ this.isThirdPartyParticipant ? e = new te(
10236
10331
  F.System,
10237
10332
  {
10238
10333
  name: ""
@@ -10242,7 +10337,7 @@ class Os extends xc {
10242
10337
  items: [["ace-welcome-form-third-party", { content: "" }]]
10243
10338
  }
10244
10339
  ]
10245
- ) : e = new ee(
10340
+ ) : e = new te(
10246
10341
  F.System,
10247
10342
  {
10248
10343
  name: ""
@@ -10254,7 +10349,7 @@ class Os extends xc {
10254
10349
  ]
10255
10350
  ), this.printEntry(e), e.actions$.pipe(
10256
10351
  W((t) => t.key === "submitted"),
10257
- fe(1)
10352
+ me(1)
10258
10353
  ).subscribe((t) => {
10259
10354
  e.remove(), this.user.name = t.data.name, this.startChat({
10260
10355
  customerName: t.data.name,
@@ -10266,7 +10361,7 @@ class Os extends xc {
10266
10361
  }
10267
10362
  showEntranceClosedDialog() {
10268
10363
  this.component.disableInput();
10269
- const e = new ee(
10364
+ const e = new te(
10270
10365
  F.System,
10271
10366
  {
10272
10367
  name: ""
@@ -10281,7 +10376,7 @@ class Os extends xc {
10281
10376
  }
10282
10377
  showQuitConfirmDialog() {
10283
10378
  var e;
10284
- (e = this.quitConfirmDialogEntry) == null || e.remove(), this.quitConfirmDialogEntry = new ee(
10379
+ (e = this.quitConfirmDialogEntry) == null || e.remove(), this.quitConfirmDialogEntry = new te(
10285
10380
  F.System,
10286
10381
  {
10287
10382
  name: ""
@@ -10293,14 +10388,14 @@ class Os extends xc {
10293
10388
  ]
10294
10389
  ), this.printEntry(this.quitConfirmDialogEntry), this.quitConfirmDialogEntry.actions$.pipe(
10295
10390
  W((t) => t.key === "quit-chat"),
10296
- fe(1)
10391
+ me(1)
10297
10392
  ).subscribe((t) => {
10298
10393
  var i, s, r, o;
10299
10394
  ((i = t.data) == null ? void 0 : i.result) === "quit" ? (this.endConversation(), (s = this.quitConfirmDialogEntry) == null || s.remove()) : ((r = t.data) == null ? void 0 : r.result) === "cancel" && ((o = this.quitConfirmDialogEntry) == null || o.remove());
10300
10395
  });
10301
10396
  }
10302
10397
  showConversationEndedForm() {
10303
- const e = new ee(
10398
+ const e = new te(
10304
10399
  F.System,
10305
10400
  {
10306
10401
  name: ""
@@ -10313,13 +10408,13 @@ class Os extends xc {
10313
10408
  );
10314
10409
  this.printEntry(e), e.actions$.pipe(
10315
10410
  W((t) => t.key === "submitted"),
10316
- fe(1)
10411
+ me(1)
10317
10412
  ).subscribe((t) => {
10318
10413
  e.remove(), t.data.email && this.sendConversationEmail(t.data.email);
10319
10414
  });
10320
10415
  }
10321
10416
  showVideoConfirmDialog() {
10322
- this.videoConfirmDialogEntry = new ee(
10417
+ this.videoConfirmDialogEntry = new te(
10323
10418
  F.System,
10324
10419
  {
10325
10420
  name: ""
@@ -10331,7 +10426,7 @@ class Os extends xc {
10331
10426
  ]
10332
10427
  ), this.printEntry(this.videoConfirmDialogEntry), this.videoConfirmDialogEntry.actions$.pipe(
10333
10428
  W((e) => e.key === "video-confirm"),
10334
- fe(1)
10429
+ me(1)
10335
10430
  ).subscribe((e) => {
10336
10431
  var t;
10337
10432
  this.videoConfirmDialogEntry && this.videoConfirmDialogEntry.remove(), e.data.result === "declined" && (this.guestId = null), (t = this.engine) == null || t.videoPrepared(e.data.result), this.printSystem(e.data.text);
@@ -10348,11 +10443,11 @@ class Os extends xc {
10348
10443
  }
10349
10444
  // Function to log out the user and end any active chat session.
10350
10445
  async logoutUser() {
10351
- this.logoutConfirmDialogEntry && this.logoutConfirmDialogEntry.remove(), await this.engine.getChatStatus() === "noSession" ? (this.resetAuthState(Pe.NonAuthenticated), this.setSessionId(null), this.component.clearMessages(), this.shouldUseAuth && this.startAuthenticationFlow()) : this.endConversation();
10446
+ this.component.setAuthenticationBannerStatus(ee.NonAuthenticated), this.logoutConfirmDialogEntry && this.logoutConfirmDialogEntry.remove(), await this.engine.getChatStatus() === "noSession" ? (this.resetAuthState(ee.NonAuthenticated), this.setSessionId(null), this.component.clearMessages(), this.shouldUseAuth && this.startAuthenticationFlow()) : this.endConversation();
10352
10447
  }
10353
10448
  showLogoutConfirmDialog() {
10354
10449
  var e;
10355
- (e = this.logoutConfirmDialogEntry) == null || e.remove(), this.logoutConfirmDialogEntry = new ee(
10450
+ (e = this.logoutConfirmDialogEntry) == null || e.remove(), this.logoutConfirmDialogEntry = new te(
10356
10451
  F.System,
10357
10452
  {
10358
10453
  name: ""
@@ -10364,7 +10459,7 @@ class Os extends xc {
10364
10459
  ]
10365
10460
  ), this.printEntry(this.logoutConfirmDialogEntry), this.logoutConfirmDialogEntry.actions$.pipe(
10366
10461
  W((t) => t.key === "logout-chat"),
10367
- fe(1)
10462
+ me(1)
10368
10463
  ).subscribe(async (t) => {
10369
10464
  var i, s, r, o;
10370
10465
  ((i = t.data) == null ? void 0 : i.result) === "logout" ? (this.logoutUser(), (s = this.logoutConfirmDialogEntry) == null || s.remove()) : ((r = t.data) == null ? void 0 : r.result) === "cancel" && ((o = this.logoutConfirmDialogEntry) == null || o.remove());
@@ -10403,7 +10498,7 @@ class Os extends xc {
10403
10498
  "Start new chat"
10404
10499
  ),
10405
10500
  "start-new-chat-button",
10406
- ra.svg,
10501
+ oa.svg,
10407
10502
  () => {
10408
10503
  this.restartNewChat();
10409
10504
  }