@telia-ace/ace-chat-flamingo 1.1.123-rc.32 → 1.1.123-rc.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -1,17 +1,17 @@
1
1
  var fl = Object.defineProperty;
2
2
  var gl = (n, e, t) => e in n ? fl(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
3
  var _ = (n, e, t) => gl(n, typeof e != "symbol" ? e + "" : e, t);
4
- var Li = function(n, e) {
5
- return Li = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) {
4
+ var Ii = function(n, e) {
5
+ return Ii = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) {
6
6
  t.__proto__ = i;
7
7
  } || function(t, i) {
8
8
  for (var s in i) Object.prototype.hasOwnProperty.call(i, s) && (t[s] = i[s]);
9
- }, Li(n, e);
9
+ }, Ii(n, e);
10
10
  };
11
11
  function Pe(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
- Li(n, e);
14
+ Ii(n, e);
15
15
  function t() {
16
16
  this.constructor = n;
17
17
  }
@@ -104,7 +104,7 @@ function Ao(n, e) {
104
104
  return { value: l[0] ? l[1] : void 0, done: !0 };
105
105
  }
106
106
  }
107
- function $t(n) {
107
+ function wt(n) {
108
108
  var e = typeof Symbol == "function" && Symbol.iterator, t = e && n[e], i = 0;
109
109
  if (t) return t.call(n);
110
110
  if (n && typeof n.length == "number") return {
@@ -114,7 +114,7 @@ function $t(n) {
114
114
  };
115
115
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
116
116
  }
117
- function ze(n, e) {
117
+ function Fe(n, e) {
118
118
  var t = typeof Symbol == "function" && n[Symbol.iterator];
119
119
  if (!t) return n;
120
120
  var i = t.call(n), s, r = [], o;
@@ -131,7 +131,7 @@ function ze(n, e) {
131
131
  }
132
132
  return r;
133
133
  }
134
- function Ke(n, e, t) {
134
+ function Je(n, e, t) {
135
135
  if (t || arguments.length === 2) for (var i = 0, s = e.length, r; i < s; i++)
136
136
  (r || !(i in e)) && (r || (r = Array.prototype.slice.call(e, 0, i)), r[i] = e[i]);
137
137
  return n.concat(r || Array.prototype.slice.call(e));
@@ -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($e, le) {
156
- r.push([g, $, $e, le]) > 1 || c(g, $);
155
+ return new Promise(function(we, le) {
156
+ r.push([g, $, we, le]) > 1 || c(g, $);
157
157
  });
158
158
  }, m && (s[g] = m(s[g])));
159
159
  }
@@ -180,7 +180,7 @@ function vl(n, e, t) {
180
180
  function bl(n) {
181
181
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
182
182
  var e = n[Symbol.asyncIterator], t;
183
- return e ? e.call(n) : (n = typeof $t == "function" ? $t(n) : n[Symbol.iterator](), t = {}, i("next"), i("throw"), i("return"), t[Symbol.asyncIterator] = function() {
183
+ return e ? e.call(n) : (n = typeof wt == "function" ? wt(n) : n[Symbol.iterator](), t = {}, i("next"), i("throw"), i("return"), t[Symbol.asyncIterator] = function() {
184
184
  return this;
185
185
  }, t);
186
186
  function i(r) {
@@ -232,7 +232,7 @@ var sn = (function() {
232
232
  if (o)
233
233
  if (this._parentage = null, Array.isArray(o))
234
234
  try {
235
- for (var a = $t(o), c = a.next(); !c.done; c = a.next()) {
235
+ for (var a = wt(o), c = a.next(); !c.done; c = a.next()) {
236
236
  var l = c.value;
237
237
  l.remove(this);
238
238
  }
@@ -258,12 +258,12 @@ var sn = (function() {
258
258
  if (p) {
259
259
  this._finalizers = null;
260
260
  try {
261
- for (var d = $t(p), g = d.next(); !g.done; g = d.next()) {
261
+ for (var d = wt(p), g = d.next(); !g.done; g = d.next()) {
262
262
  var m = g.value;
263
263
  try {
264
- xr(m);
264
+ kr(m);
265
265
  } catch ($) {
266
- r = r ?? [], $ instanceof mi ? r = Ke(Ke([], ze(r)), ze($.errors)) : r.push($);
266
+ r = r ?? [], $ instanceof mi ? r = Je(Je([], Fe(r)), Fe($.errors)) : r.push($);
267
267
  }
268
268
  }
269
269
  } catch ($) {
@@ -283,7 +283,7 @@ var sn = (function() {
283
283
  var t;
284
284
  if (e && e !== this)
285
285
  if (this.closed)
286
- xr(e);
286
+ kr(e);
287
287
  else {
288
288
  if (e instanceof n) {
289
289
  if (e.closed || e._hasParent(this))
@@ -312,7 +312,7 @@ var sn = (function() {
312
312
  function Ro(n) {
313
313
  return n instanceof sn || n && "closed" in n && C(n.remove) && C(n.add) && C(n.unsubscribe);
314
314
  }
315
- function xr(n) {
315
+ function kr(n) {
316
316
  C(n) ? n() : n.unsubscribe();
317
317
  }
318
318
  var yl = {
@@ -321,7 +321,7 @@ var yl = {
321
321
  setTimeout: function(n, e) {
322
322
  for (var t = [], i = 2; i < arguments.length; i++)
323
323
  t[i - 2] = arguments[i];
324
- return setTimeout.apply(void 0, Ke([n, e], ze(t)));
324
+ return setTimeout.apply(void 0, Je([n, e], Fe(t)));
325
325
  },
326
326
  clearTimeout: function(n) {
327
327
  return clearTimeout(n);
@@ -338,14 +338,14 @@ function An() {
338
338
  function kn(n) {
339
339
  n();
340
340
  }
341
- var es = (function(n) {
341
+ var ts = (function(n) {
342
342
  Pe(e, n);
343
343
  function e(t) {
344
344
  var i = n.call(this) || this;
345
345
  return i.isStopped = !1, t ? (i.destination = t, Ro(t) && t.add(i)) : i.destination = kl, i;
346
346
  }
347
347
  return e.create = function(t, i, s) {
348
- return new Ii(t, i, s);
348
+ return new Pi(t, i, s);
349
349
  }, e.prototype.next = function(t) {
350
350
  this.isStopped || this._next(t);
351
351
  }, e.prototype.error = function(t) {
@@ -400,7 +400,7 @@ var es = (function(n) {
400
400
  bn(t);
401
401
  }
402
402
  }, n;
403
- })(), Ii = (function(n) {
403
+ })(), Pi = (function(n) {
404
404
  Pe(e, n);
405
405
  function e(t, i, s) {
406
406
  var r = n.call(this) || this, o;
@@ -411,7 +411,7 @@ var es = (function(n) {
411
411
  } : o = t, r.destination = new wl(o), r;
412
412
  }
413
413
  return e;
414
- })(es);
414
+ })(ts);
415
415
  function bn(n) {
416
416
  Lo(n);
417
417
  }
@@ -423,14 +423,14 @@ var kl = {
423
423
  next: An,
424
424
  error: xl,
425
425
  complete: An
426
- }, ts = (function() {
426
+ }, ns = (function() {
427
427
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
428
428
  })();
429
- function Et(n) {
429
+ function _t(n) {
430
430
  return n;
431
431
  }
432
432
  function Sl(n) {
433
- return n.length === 0 ? Et : n.length === 1 ? n[0] : function(t) {
433
+ return n.length === 0 ? _t : n.length === 1 ? n[0] : function(t) {
434
434
  return n.reduce(function(i, s) {
435
435
  return s(i);
436
436
  }, t);
@@ -444,7 +444,7 @@ var V = (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 = El(e) ? e : new Pi(e, t, i);
448
448
  return kn(function() {
449
449
  var o = s, a = o.operator, c = o.source;
450
450
  r.add(a ? a.call(r, c) : c ? s._subscribe(r) : s._trySubscribe(r));
@@ -457,8 +457,8 @@ var V = (function() {
457
457
  }
458
458
  }, n.prototype.forEach = function(e, t) {
459
459
  var i = this;
460
- return t = kr(t), new t(function(s, r) {
461
- var o = new Ii({
460
+ return t = Sr(t), new t(function(s, r) {
461
+ var o = new Pi({
462
462
  next: function(a) {
463
463
  try {
464
464
  e(a);
@@ -474,7 +474,7 @@ var V = (function() {
474
474
  }, n.prototype._subscribe = function(e) {
475
475
  var t;
476
476
  return (t = this.source) === null || t === void 0 ? void 0 : t.subscribe(e);
477
- }, n.prototype[ts] = function() {
477
+ }, n.prototype[ns] = function() {
478
478
  return this;
479
479
  }, n.prototype.pipe = function() {
480
480
  for (var e = [], t = 0; t < arguments.length; t++)
@@ -482,7 +482,7 @@ var V = (function() {
482
482
  return Sl(e)(this);
483
483
  }, n.prototype.toPromise = function(e) {
484
484
  var t = this;
485
- return e = kr(e), new e(function(i, s) {
485
+ return e = Sr(e), new e(function(i, s) {
486
486
  var r;
487
487
  t.subscribe(function(o) {
488
488
  return r = o;
@@ -496,7 +496,7 @@ var V = (function() {
496
496
  return new n(e);
497
497
  }, n;
498
498
  })();
499
- function kr(n) {
499
+ function Sr(n) {
500
500
  var e;
501
501
  return (e = n ?? yl.Promise) !== null && e !== void 0 ? e : Promise;
502
502
  }
@@ -504,7 +504,7 @@ function Cl(n) {
504
504
  return n && C(n.next) && C(n.error) && C(n.complete);
505
505
  }
506
506
  function El(n) {
507
- return n && n instanceof es || Cl(n) && Ro(n);
507
+ return n && n instanceof ts || Cl(n) && Ro(n);
508
508
  }
509
509
  function _l(n) {
510
510
  return C(n == null ? void 0 : n.lift);
@@ -560,7 +560,7 @@ 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
- })(es), Tl = To(function(n) {
563
+ })(ts), Tl = To(function(n) {
564
564
  return function() {
565
565
  n(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
566
566
  };
@@ -571,7 +571,7 @@ var Al = (function(n) {
571
571
  return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
572
572
  }
573
573
  return e.prototype.lift = function(t) {
574
- var i = new Sr(this, this);
574
+ var i = new Cr(this, this);
575
575
  return i.operator = t, i;
576
576
  }, e.prototype._throwIfClosed = function() {
577
577
  if (this.closed)
@@ -583,7 +583,7 @@ var Al = (function(n) {
583
583
  if (i._throwIfClosed(), !i.isStopped) {
584
584
  i.currentObservers || (i.currentObservers = Array.from(i.observers));
585
585
  try {
586
- for (var o = $t(i.currentObservers), a = o.next(); !a.done; a = o.next()) {
586
+ for (var o = wt(i.currentObservers), a = o.next(); !a.done; a = o.next()) {
587
587
  var c = a.value;
588
588
  c.next(t);
589
589
  }
@@ -641,9 +641,9 @@ var Al = (function(n) {
641
641
  var t = new V();
642
642
  return t.source = this, t;
643
643
  }, e.create = function(t, i) {
644
- return new Sr(t, i);
644
+ return new Cr(t, i);
645
645
  }, e;
646
- })(V), Sr = (function(n) {
646
+ })(V), Cr = (function(n) {
647
647
  Pe(e, n);
648
648
  function e(t, i) {
649
649
  var s = n.call(this) || this;
@@ -697,11 +697,11 @@ var Al = (function(n) {
697
697
  return e.prototype.schedule = function(t, i) {
698
698
  return this;
699
699
  }, e;
700
- })(sn), Cr = {
700
+ })(sn), Er = {
701
701
  setInterval: function(n, e) {
702
702
  for (var t = [], i = 2; i < arguments.length; i++)
703
703
  t[i - 2] = arguments[i];
704
- return setInterval.apply(void 0, Ke([n, e], ze(t)));
704
+ return setInterval.apply(void 0, Je([n, e], Fe(t)));
705
705
  },
706
706
  clearInterval: function(n) {
707
707
  return clearInterval(n);
@@ -721,11 +721,11 @@ var Al = (function(n) {
721
721
  var r = this.id, o = this.scheduler;
722
722
  return r != null && (this.id = this.recycleAsyncId(o, r, i)), this.pending = !0, this.delay = i, this.id = (s = this.id) !== null && s !== void 0 ? s : this.requestAsyncId(o, this.id, i), this;
723
723
  }, e.prototype.requestAsyncId = function(t, i, s) {
724
- return s === void 0 && (s = 0), Cr.setInterval(t.flush.bind(t, this), s);
724
+ return s === void 0 && (s = 0), Er.setInterval(t.flush.bind(t, this), s);
725
725
  }, e.prototype.recycleAsyncId = function(t, i, s) {
726
726
  if (s === void 0 && (s = 0), s != null && this.delay === s && this.pending === !1)
727
727
  return i;
728
- i != null && Cr.clearInterval(i);
728
+ i != null && Er.clearInterval(i);
729
729
  }, e.prototype.execute = function(t, i) {
730
730
  if (this.closed)
731
731
  return new Error("executing a cancelled action");
@@ -749,7 +749,7 @@ var Al = (function(n) {
749
749
  this.work = this.state = this.scheduler = null, this.pending = !1, _n(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
- })(Rl), Er = (function() {
752
+ })(Rl), _r = (function() {
753
753
  function n(e, t) {
754
754
  t === void 0 && (t = n.now), this.schedulerActionCtor = e, this.now = t;
755
755
  }
@@ -759,7 +759,7 @@ var Al = (function(n) {
759
759
  })(), Il = (function(n) {
760
760
  Pe(e, n);
761
761
  function e(t, i) {
762
- i === void 0 && (i = Er.now);
762
+ i === void 0 && (i = _r.now);
763
763
  var s = n.call(this, t, i) || this;
764
764
  return s.actions = [], s._active = !1, s;
765
765
  }
@@ -781,33 +781,33 @@ var Al = (function(n) {
781
781
  throw s;
782
782
  }
783
783
  }, e;
784
- })(Er), fp = new Il(Ll);
784
+ })(_r), fp = new Il(Ll);
785
785
  var Oe = new V(function(n) {
786
786
  return n.complete();
787
787
  });
788
788
  function Pl(n) {
789
789
  return n && C(n.schedule);
790
790
  }
791
- function ns(n) {
791
+ function is(n) {
792
792
  return n[n.length - 1];
793
793
  }
794
794
  function Io(n) {
795
- return C(ns(n)) ? n.pop() : void 0;
795
+ return C(is(n)) ? n.pop() : void 0;
796
796
  }
797
- function is(n) {
798
- return Pl(ns(n)) ? n.pop() : void 0;
797
+ function ss(n) {
798
+ return Pl(is(n)) ? n.pop() : void 0;
799
799
  }
800
800
  function Ml(n, e) {
801
- return typeof ns(n) == "number" ? n.pop() : e;
801
+ return typeof is(n) == "number" ? n.pop() : e;
802
802
  }
803
- var ss = (function(n) {
803
+ var rs = (function(n) {
804
804
  return n && typeof n.length == "number" && typeof n != "function";
805
805
  });
806
806
  function Po(n) {
807
807
  return C(n == null ? void 0 : n.then);
808
808
  }
809
809
  function Mo(n) {
810
- return C(n[ts]);
810
+ return C(n[ns]);
811
811
  }
812
812
  function No(n) {
813
813
  return Symbol.asyncIterator && C(n == null ? void 0 : n[Symbol.asyncIterator]);
@@ -862,7 +862,7 @@ function oe(n) {
862
862
  if (n != null) {
863
863
  if (Mo(n))
864
864
  return Ul(n);
865
- if (ss(n))
865
+ if (rs(n))
866
866
  return Dl(n);
867
867
  if (Po(n))
868
868
  return Hl(n);
@@ -877,7 +877,7 @@ function oe(n) {
877
877
  }
878
878
  function Ul(n) {
879
879
  return new V(function(e) {
880
- var t = n[ts]();
880
+ var t = n[ns]();
881
881
  if (C(t.subscribe))
882
882
  return t.subscribe(e);
883
883
  throw new TypeError("Provided object does not correctly implement Symbol.observable");
@@ -903,7 +903,7 @@ function zl(n) {
903
903
  return new V(function(e) {
904
904
  var t, i;
905
905
  try {
906
- for (var s = $t(n), r = s.next(); !r.done; r = s.next()) {
906
+ for (var s = wt(n), r = s.next(); !r.done; r = s.next()) {
907
907
  var o = r.value;
908
908
  if (e.next(o), e.closed)
909
909
  return;
@@ -968,7 +968,7 @@ function jl(n, e) {
968
968
  });
969
969
  });
970
970
  }
971
- function De(n, e, t, i, s) {
971
+ function He(n, e, t, i, s) {
972
972
  i === void 0 && (i = 0), s === void 0 && (s = !1);
973
973
  var r = e.schedule(function() {
974
974
  t(), s ? n.add(this.schedule(null, i)) : this.unsubscribe();
@@ -979,15 +979,15 @@ function De(n, e, t, i, s) {
979
979
  function Bo(n, e) {
980
980
  return e === void 0 && (e = 0), re(function(t, i) {
981
981
  t.subscribe(Q(i, function(s) {
982
- return De(i, n, function() {
982
+ return He(i, n, function() {
983
983
  return i.next(s);
984
984
  }, e);
985
985
  }, function() {
986
- return De(i, n, function() {
986
+ return He(i, n, function() {
987
987
  return i.complete();
988
988
  }, e);
989
989
  }, function(s) {
990
- return De(i, n, function() {
990
+ return He(i, n, function() {
991
991
  return i.error(s);
992
992
  }, e);
993
993
  }));
@@ -1017,8 +1017,8 @@ function Vl(n, e) {
1017
1017
  function Wl(n, e) {
1018
1018
  return new V(function(t) {
1019
1019
  var i;
1020
- return De(t, e, function() {
1021
- i = n[Do](), De(t, e, function() {
1020
+ return He(t, e, function() {
1021
+ i = n[Do](), He(t, e, function() {
1022
1022
  var s, r, o;
1023
1023
  try {
1024
1024
  s = i.next(), r = s.value, o = s.done;
@@ -1037,9 +1037,9 @@ function Vo(n, e) {
1037
1037
  if (!n)
1038
1038
  throw new Error("Iterable cannot be null");
1039
1039
  return new V(function(t) {
1040
- De(t, e, function() {
1040
+ He(t, e, function() {
1041
1041
  var i = n[Symbol.asyncIterator]();
1042
- De(t, e, function() {
1042
+ He(t, e, function() {
1043
1043
  i.next().then(function(s) {
1044
1044
  s.done ? t.complete() : t.next(s.value);
1045
1045
  });
@@ -1054,7 +1054,7 @@ function Zl(n, e) {
1054
1054
  if (n != null) {
1055
1055
  if (Mo(n))
1056
1056
  return Bl(n, e);
1057
- if (ss(n))
1057
+ if (rs(n))
1058
1058
  return Vl(n, e);
1059
1059
  if (Po(n))
1060
1060
  return ql(n, e);
@@ -1067,16 +1067,16 @@ function Zl(n, e) {
1067
1067
  }
1068
1068
  throw Uo(n);
1069
1069
  }
1070
- function Qe(n, e) {
1070
+ function Xe(n, e) {
1071
1071
  return e ? Zl(n, e) : oe(n);
1072
1072
  }
1073
- function Pi() {
1073
+ function Mi() {
1074
1074
  for (var n = [], e = 0; e < arguments.length; e++)
1075
1075
  n[e] = arguments[e];
1076
- var t = is(n);
1077
- return Qe(n, t);
1076
+ var t = ss(n);
1077
+ return Xe(n, t);
1078
1078
  }
1079
- function _r(n, e) {
1079
+ function vi(n, e) {
1080
1080
  var t = C(n) ? n : function() {
1081
1081
  return n;
1082
1082
  }, i = function(s) {
@@ -1094,7 +1094,7 @@ function Tn(n, e) {
1094
1094
  }
1095
1095
  var Yl = Array.isArray;
1096
1096
  function Ql(n, e) {
1097
- return Yl(e) ? n.apply(void 0, Ke([], ze(e))) : n(e);
1097
+ return Yl(e) ? n.apply(void 0, Je([], Fe(e))) : n(e);
1098
1098
  }
1099
1099
  function Wo(n) {
1100
1100
  return Tn(function(e) {
@@ -1130,20 +1130,20 @@ function ic(n, e) {
1130
1130
  function sc() {
1131
1131
  for (var n = [], e = 0; e < arguments.length; e++)
1132
1132
  n[e] = arguments[e];
1133
- var t = is(n), i = Io(n), s = tc(n), r = s.args, o = s.keys;
1133
+ var t = ss(n), i = Io(n), s = tc(n), r = s.args, o = s.keys;
1134
1134
  if (r.length === 0)
1135
- return Qe([], t);
1135
+ return Xe([], t);
1136
1136
  var a = new V(rc(r, t, o ? function(c) {
1137
1137
  return ic(o, c);
1138
- } : Et));
1138
+ } : _t));
1139
1139
  return i ? a.pipe(Wo(i)) : a;
1140
1140
  }
1141
1141
  function rc(n, e, t) {
1142
- return t === void 0 && (t = Et), function(i) {
1142
+ return t === void 0 && (t = _t), function(i) {
1143
1143
  Ar(e, function() {
1144
1144
  for (var s = n.length, r = new Array(s), o = s, a = s, c = function(u) {
1145
1145
  Ar(e, function() {
1146
- var p = Qe(n[u], e), d = !1;
1146
+ var p = Xe(n[u], e), d = !1;
1147
1147
  p.subscribe(Q(i, function(g) {
1148
1148
  r[u] = g, d || (d = !0, a--), a || i.next(t(r.slice()));
1149
1149
  }, function() {
@@ -1156,7 +1156,7 @@ function rc(n, e, t) {
1156
1156
  };
1157
1157
  }
1158
1158
  function Ar(n, e, t) {
1159
- n ? De(t, n, e) : e();
1159
+ n ? He(t, n, e) : e();
1160
1160
  }
1161
1161
  function oc(n, e, t, i, s, r, o, a) {
1162
1162
  var c = [], l = 0, u = 0, p = !1, d = function() {
@@ -1165,13 +1165,13 @@ function oc(n, e, t, i, s, r, o, a) {
1165
1165
  return l < i ? m($) : c.push($);
1166
1166
  }, m = function($) {
1167
1167
  l++;
1168
- var $e = !1;
1168
+ var we = !1;
1169
1169
  oe(t($, u++)).subscribe(Q(e, function(le) {
1170
1170
  e.next(le);
1171
1171
  }, function() {
1172
- $e = !0;
1172
+ we = !0;
1173
1173
  }, void 0, function() {
1174
- if ($e)
1174
+ if (we)
1175
1175
  try {
1176
1176
  l--;
1177
1177
  for (var le = function() {
@@ -1190,8 +1190,8 @@ function oc(n, e, t, i, s, r, o, a) {
1190
1190
  })), function() {
1191
1191
  };
1192
1192
  }
1193
- function Vt(n, e, t) {
1194
- return t === void 0 && (t = 1 / 0), C(e) ? Vt(function(i, s) {
1193
+ function Wt(n, e, t) {
1194
+ return t === void 0 && (t = 1 / 0), C(e) ? Wt(function(i, s) {
1195
1195
  return Tn(function(r, o) {
1196
1196
  return e(i, r, s, o);
1197
1197
  })(oe(n(i, s)));
@@ -1200,7 +1200,7 @@ function Vt(n, e, t) {
1200
1200
  }));
1201
1201
  }
1202
1202
  function ac(n) {
1203
- return n === void 0 && (n = 1 / 0), Vt(Et, n);
1203
+ return n === void 0 && (n = 1 / 0), Wt(_t, n);
1204
1204
  }
1205
1205
  function lc(n) {
1206
1206
  return new V(function(e) {
@@ -1211,13 +1211,13 @@ var cc = ["addListener", "removeListener"], uc = ["addEventListener", "removeEve
1211
1211
  function On(n, e, t, i) {
1212
1212
  if (C(t) && (i = t, t = void 0), i)
1213
1213
  return On(n, e, t).pipe(Wo(i));
1214
- var s = ze(fc(n) ? uc.map(function(a) {
1214
+ var s = Fe(fc(n) ? uc.map(function(a) {
1215
1215
  return function(c) {
1216
1216
  return n[a](e, c, t);
1217
1217
  };
1218
1218
  }) : dc(n) ? cc.map(Tr(n, e)) : pc(n) ? hc.map(Tr(n, e)) : [], 2), r = s[0], o = s[1];
1219
- if (!r && ss(n))
1220
- return Vt(function(a) {
1219
+ if (!r && rs(n))
1220
+ return Wt(function(a) {
1221
1221
  return On(a, e, t);
1222
1222
  })(oe(n));
1223
1223
  if (!r)
@@ -1252,8 +1252,8 @@ function fc(n) {
1252
1252
  function gc() {
1253
1253
  for (var n = [], e = 0; e < arguments.length; e++)
1254
1254
  n[e] = arguments[e];
1255
- var t = is(n), i = Ml(n, 1 / 0), s = n;
1256
- return s.length ? s.length === 1 ? oe(s[0]) : ac(i)(Qe(s, t)) : Oe;
1255
+ var t = ss(n), i = Ml(n, 1 / 0), s = n;
1256
+ return s.length ? s.length === 1 ? oe(s[0]) : ac(i)(Xe(s, t)) : Oe;
1257
1257
  }
1258
1258
  function G(n, e) {
1259
1259
  return re(function(t, i) {
@@ -1263,18 +1263,18 @@ function G(n, e) {
1263
1263
  }));
1264
1264
  });
1265
1265
  }
1266
- function Wt(n) {
1266
+ function vt(n) {
1267
1267
  return re(function(e, t) {
1268
1268
  var i = null, s = !1, r;
1269
1269
  i = e.subscribe(Q(t, void 0, void 0, function(o) {
1270
- r = oe(n(o, Wt(n)(e))), i ? (i.unsubscribe(), i = null, r.subscribe(t)) : s = !0;
1270
+ r = oe(n(o, vt(n)(e))), i ? (i.unsubscribe(), i = null, r.subscribe(t)) : s = !0;
1271
1271
  })), s && (i.unsubscribe(), i = null, r.subscribe(t));
1272
1272
  });
1273
1273
  }
1274
- function vi(n, e) {
1275
- return C(e) ? Vt(n, e, 1) : Vt(n, 1);
1274
+ function bi(n, e) {
1275
+ return C(e) ? Wt(n, e, 1) : Wt(n, 1);
1276
1276
  }
1277
- function me(n) {
1277
+ function ve(n) {
1278
1278
  return n <= 0 ? function() {
1279
1279
  return Oe;
1280
1280
  } : re(function(e, t) {
@@ -1284,7 +1284,7 @@ function me(n) {
1284
1284
  }));
1285
1285
  });
1286
1286
  }
1287
- function bi(n) {
1287
+ function yi(n) {
1288
1288
  var e = 1 / 0, t;
1289
1289
  return e <= 0 ? function() {
1290
1290
  return Oe;
@@ -1346,9 +1346,9 @@ function mc(n, e, t) {
1346
1346
  var c, l;
1347
1347
  a && ((c = i.unsubscribe) === null || c === void 0 || c.call(i)), (l = i.finalize) === null || l === void 0 || l.call(i);
1348
1348
  }));
1349
- }) : Et;
1349
+ }) : _t;
1350
1350
  }
1351
- function Mi() {
1351
+ function Ni() {
1352
1352
  for (var n = [], e = 0; e < arguments.length; e++)
1353
1353
  n[e] = arguments[e];
1354
1354
  var t = Io(n);
@@ -1357,25 +1357,25 @@ function Mi() {
1357
1357
  return !1;
1358
1358
  }), c = !1, l = function(p) {
1359
1359
  oe(n[p]).subscribe(Q(s, function(d) {
1360
- o[p] = d, !c && !a[p] && (a[p] = !0, (c = a.every(Et)) && (a = null));
1360
+ o[p] = d, !c && !a[p] && (a[p] = !0, (c = a.every(_t)) && (a = null));
1361
1361
  }, An));
1362
1362
  }, u = 0; u < r; u++)
1363
1363
  l(u);
1364
1364
  i.subscribe(Q(s, function(p) {
1365
1365
  if (c) {
1366
- var d = Ke([p], ze(o));
1367
- s.next(t ? t.apply(void 0, Ke([], ze(d))) : d);
1366
+ var d = Je([p], Fe(o));
1367
+ s.next(t ? t.apply(void 0, Je([], Fe(d))) : d);
1368
1368
  }
1369
1369
  }));
1370
1370
  });
1371
1371
  }
1372
- class rs {
1372
+ class os {
1373
1373
  constructor() {
1374
1374
  this.registeredProviders = /* @__PURE__ */ new Map();
1375
1375
  }
1376
1376
  static async getInstance(e) {
1377
1377
  let t = await e.get("conversation");
1378
- return t || (t = new rs(), await e.register("conversation", t), t);
1378
+ return t || (t = new os(), await e.register("conversation", t), t);
1379
1379
  }
1380
1380
  registerProvider(e, t) {
1381
1381
  this.registeredProviders.set(e, t);
@@ -1418,7 +1418,7 @@ function Or(n) {
1418
1418
  );
1419
1419
  }), e;
1420
1420
  }
1421
- function Ni(n) {
1421
+ function Ui(n) {
1422
1422
  if (n.includes("aceChatGuideTitle"))
1423
1423
  return bc(n);
1424
1424
  const e = /<a [^>]*>https?:\/\/[^<]*<\/a>/gim;
@@ -1438,9 +1438,9 @@ function Ni(n) {
1438
1438
  p - u.length - 4
1439
1439
  ) + ".../" + u : d = l.substring(0, p - 3) + "...";
1440
1440
  const g = `${a}${d}`;
1441
- return Ui(t, g);
1441
+ return Di(t, g);
1442
1442
  }
1443
- return Ui(t, i);
1443
+ return Di(t, i);
1444
1444
  });
1445
1445
  }
1446
1446
  function Zo(n) {
@@ -1451,7 +1451,7 @@ function Zo(n) {
1451
1451
  }
1452
1452
  return null;
1453
1453
  }
1454
- function Ui(n, e) {
1454
+ function Di(n, e) {
1455
1455
  return n.replace(/>[^<]*<\/a>/, `>${e}</a>`);
1456
1456
  }
1457
1457
  function bc(n) {
@@ -1461,7 +1461,7 @@ function bc(n) {
1461
1461
  if (!i)
1462
1462
  return t;
1463
1463
  const s = i.split("?").pop(), o = new URLSearchParams(s).get("aceChatGuideTitle");
1464
- return o ? Ui(t, o) : t;
1464
+ return o ? Di(t, o) : t;
1465
1465
  });
1466
1466
  }
1467
1467
  class ie {
@@ -1547,7 +1547,7 @@ class xc {
1547
1547
  this.name = e, this.component = t, this.print$ = new P(), this.typingState$ = new he(!1), this.complete$ = new P(), this.system = this.createSystem(), this.rehydrate$ = new P(), this.saveToCurrentSession$ = new P(), this.showChatOverlay$ = new he(!1), this.onComplete = () => this.complete$.asObservable();
1548
1548
  }
1549
1549
  connect(e = {}) {
1550
- this.complete$.pipe(me(1)).subscribe(() => {
1550
+ this.complete$.pipe(ve(1)).subscribe(() => {
1551
1551
  this.disconnected();
1552
1552
  });
1553
1553
  }
@@ -1624,16 +1624,16 @@ class xc {
1624
1624
  * Copyright 2019 Google LLC
1625
1625
  * SPDX-License-Identifier: BSD-3-Clause
1626
1626
  */
1627
- const Sn = globalThis, os = Sn.ShadowRoot && (Sn.ShadyCSS === void 0 || Sn.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, as = Symbol(), Rr = /* @__PURE__ */ new WeakMap();
1627
+ const Sn = globalThis, as = Sn.ShadowRoot && (Sn.ShadyCSS === void 0 || Sn.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ls = Symbol(), Rr = /* @__PURE__ */ new WeakMap();
1628
1628
  let Yo = class {
1629
1629
  constructor(e, t, i) {
1630
- if (this._$cssResult$ = !0, i !== as) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
1630
+ if (this._$cssResult$ = !0, i !== ls) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
1631
1631
  this.cssText = e, this.t = t;
1632
1632
  }
1633
1633
  get styleSheet() {
1634
1634
  let e = this.o;
1635
1635
  const t = this.t;
1636
- if (os && e === void 0) {
1636
+ if (as && e === void 0) {
1637
1637
  const i = t !== void 0 && t.length === 1;
1638
1638
  i && (e = Rr.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), i && Rr.set(t, e));
1639
1639
  }
@@ -1643,20 +1643,20 @@ let Yo = class {
1643
1643
  return this.cssText;
1644
1644
  }
1645
1645
  };
1646
- const kc = (n) => new Yo(typeof n == "string" ? n : n + "", void 0, as), R = (n, ...e) => {
1646
+ const kc = (n) => new Yo(typeof n == "string" ? n : n + "", void 0, ls), R = (n, ...e) => {
1647
1647
  const t = n.length === 1 ? n[0] : e.reduce(((i, s, r) => i + ((o) => {
1648
1648
  if (o._$cssResult$ === !0) return o.cssText;
1649
1649
  if (typeof o == "number") return o;
1650
1650
  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.");
1651
1651
  })(s) + n[r + 1]), n[0]);
1652
- return new Yo(t, n, as);
1652
+ return new Yo(t, n, ls);
1653
1653
  }, Sc = (n, e) => {
1654
- if (os) n.adoptedStyleSheets = e.map(((t) => t instanceof CSSStyleSheet ? t : t.styleSheet));
1654
+ if (as) n.adoptedStyleSheets = e.map(((t) => t instanceof CSSStyleSheet ? t : t.styleSheet));
1655
1655
  else for (const t of e) {
1656
1656
  const i = document.createElement("style"), s = Sn.litNonce;
1657
1657
  s !== void 0 && i.setAttribute("nonce", s), i.textContent = t.cssText, n.appendChild(i);
1658
1658
  }
1659
- }, Lr = os ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((e) => {
1659
+ }, Lr = as ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((e) => {
1660
1660
  let t = "";
1661
1661
  for (const i of e.cssRules) t += i.cssText;
1662
1662
  return kc(t);
@@ -1666,7 +1666,7 @@ const kc = (n) => new Yo(typeof n == "string" ? n : n + "", void 0, as), R = (n,
1666
1666
  * Copyright 2017 Google LLC
1667
1667
  * SPDX-License-Identifier: BSD-3-Clause
1668
1668
  */
1669
- const { is: Cc, defineProperty: Ec, getOwnPropertyDescriptor: _c, getOwnPropertyNames: Ac, getOwnPropertySymbols: Tc, getPrototypeOf: Oc } = Object, He = globalThis, Ir = He.trustedTypes, Rc = Ir ? Ir.emptyScript : "", yi = He.reactiveElementPolyfillSupport, zt = (n, e) => n, Rn = { toAttribute(n, e) {
1669
+ const { is: Cc, defineProperty: Ec, getOwnPropertyDescriptor: _c, getOwnPropertyNames: Ac, getOwnPropertySymbols: Tc, getPrototypeOf: Oc } = Object, ze = globalThis, Ir = ze.trustedTypes, Rc = Ir ? Ir.emptyScript : "", $i = ze.reactiveElementPolyfillSupport, Ft = (n, e) => n, Rn = { toAttribute(n, e) {
1670
1670
  switch (e) {
1671
1671
  case Boolean:
1672
1672
  n = n ? Rc : null;
@@ -1694,9 +1694,9 @@ const { is: Cc, defineProperty: Ec, getOwnPropertyDescriptor: _c, getOwnProperty
1694
1694
  }
1695
1695
  }
1696
1696
  return t;
1697
- } }, ls = (n, e) => !Cc(n, e), Pr = { attribute: !0, type: String, converter: Rn, reflect: !1, useDefault: !1, hasChanged: ls };
1698
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), He.litPropertyMetadata ?? (He.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
1699
- let ht = class extends HTMLElement {
1697
+ } }, cs = (n, e) => !Cc(n, e), Pr = { attribute: !0, type: String, converter: Rn, reflect: !1, useDefault: !1, hasChanged: cs };
1698
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), ze.litPropertyMetadata ?? (ze.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
1699
+ let dt = class extends HTMLElement {
1700
1700
  static addInitializer(e) {
1701
1701
  this._$Ei(), (this.l ?? (this.l = [])).push(e);
1702
1702
  }
@@ -1724,13 +1724,13 @@ let ht = class extends HTMLElement {
1724
1724
  return this.elementProperties.get(e) ?? Pr;
1725
1725
  }
1726
1726
  static _$Ei() {
1727
- if (this.hasOwnProperty(zt("elementProperties"))) return;
1727
+ if (this.hasOwnProperty(Ft("elementProperties"))) return;
1728
1728
  const e = Oc(this);
1729
1729
  e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
1730
1730
  }
1731
1731
  static finalize() {
1732
- if (this.hasOwnProperty(zt("finalized"))) return;
1733
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(zt("properties"))) {
1732
+ if (this.hasOwnProperty(Ft("finalized"))) return;
1733
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Ft("properties"))) {
1734
1734
  const t = this.properties, i = [...Ac(t), ...Tc(t)];
1735
1735
  for (const s of i) this.createProperty(s, t[s]);
1736
1736
  }
@@ -1823,7 +1823,7 @@ let ht = class extends HTMLElement {
1823
1823
  var s;
1824
1824
  if (e !== void 0) {
1825
1825
  const r = this.constructor, o = this[e];
1826
- if (i ?? (i = r.getPropertyOptions(e)), !((i.hasChanged ?? ls)(o, t) || i.useDefault && i.reflect && o === ((s = this._$Ej) == null ? void 0 : s.get(e)) && !this.hasAttribute(r._$Eu(e, i)))) return;
1826
+ if (i ?? (i = r.getPropertyOptions(e)), !((i.hasChanged ?? cs)(o, t) || i.useDefault && i.reflect && o === ((s = this._$Ej) == null ? void 0 : s.get(e)) && !this.hasAttribute(r._$Eu(e, i)))) return;
1827
1827
  this.C(e, t, i);
1828
1828
  }
1829
1829
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
@@ -1899,74 +1899,74 @@ let ht = class extends HTMLElement {
1899
1899
  firstUpdated(e) {
1900
1900
  }
1901
1901
  };
1902
- ht.elementStyles = [], ht.shadowRootOptions = { mode: "open" }, ht[zt("elementProperties")] = /* @__PURE__ */ new Map(), ht[zt("finalized")] = /* @__PURE__ */ new Map(), yi == null || yi({ ReactiveElement: ht }), (He.reactiveElementVersions ?? (He.reactiveElementVersions = [])).push("2.1.1");
1902
+ dt.elementStyles = [], dt.shadowRootOptions = { mode: "open" }, dt[Ft("elementProperties")] = /* @__PURE__ */ new Map(), dt[Ft("finalized")] = /* @__PURE__ */ new Map(), $i == null || $i({ ReactiveElement: dt }), (ze.reactiveElementVersions ?? (ze.reactiveElementVersions = [])).push("2.1.1");
1903
1903
  /**
1904
1904
  * @license
1905
1905
  * Copyright 2017 Google LLC
1906
1906
  * SPDX-License-Identifier: BSD-3-Clause
1907
1907
  */
1908
- const Ft = globalThis, Ln = Ft.trustedTypes, Mr = Ln ? Ln.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, Qo = "$lit$", Ne = `lit$${Math.random().toFixed(9).slice(2)}$`, Xo = "?" + Ne, Lc = `<${Xo}>`, Je = document, Gt = () => Je.createComment(""), Zt = (n) => n === null || typeof n != "object" && typeof n != "function", cs = Array.isArray, Ic = (n) => cs(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", $i = `[
1909
- \f\r]`, Lt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Nr = /-->/g, Ur = />/g, We = RegExp(`>|${$i}(?:([^\\s"'>=/]+)(${$i}*=${$i}*(?:[^
1910
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Dr = /'/g, Hr = /"/g, Ko = /^(?:script|style|textarea|title)$/i, Pc = (n) => (e, ...t) => ({ _$litType$: n, strings: e, values: t }), y = Pc(1), Le = Symbol.for("lit-noChange"), w = Symbol.for("lit-nothing"), zr = /* @__PURE__ */ new WeakMap(), Ze = Je.createTreeWalker(Je, 129);
1908
+ const jt = globalThis, Ln = jt.trustedTypes, Mr = Ln ? Ln.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, Qo = "$lit$", Ue = `lit$${Math.random().toFixed(9).slice(2)}$`, Xo = "?" + Ue, Lc = `<${Xo}>`, et = document, Gt = () => et.createComment(""), Zt = (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", wi = `[
1909
+ \f\r]`, It = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Nr = /-->/g, Ur = />/g, Ge = RegExp(`>|${wi}(?:([^\\s"'>=/]+)(${wi}*=${wi}*(?:[^
1910
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Dr = /'/g, Hr = /"/g, Ko = /^(?:script|style|textarea|title)$/i, Pc = (n) => (e, ...t) => ({ _$litType$: n, strings: e, values: t }), y = Pc(1), Le = Symbol.for("lit-noChange"), w = Symbol.for("lit-nothing"), zr = /* @__PURE__ */ new WeakMap(), Ye = et.createTreeWalker(et, 129);
1911
1911
  function Jo(n, e) {
1912
- if (!cs(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
1912
+ if (!us(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
1913
1913
  return Mr !== void 0 ? Mr.createHTML(e) : e;
1914
1914
  }
1915
1915
  const Mc = (n, e) => {
1916
1916
  const t = n.length - 1, i = [];
1917
- let s, r = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", o = Lt;
1917
+ let s, r = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", o = It;
1918
1918
  for (let a = 0; a < t; a++) {
1919
1919
  const c = n[a];
1920
1920
  let l, u, p = -1, d = 0;
1921
- for (; d < c.length && (o.lastIndex = d, u = o.exec(c), u !== null); ) d = o.lastIndex, o === Lt ? u[1] === "!--" ? o = Nr : u[1] !== void 0 ? o = Ur : u[2] !== void 0 ? (Ko.test(u[2]) && (s = RegExp("</" + u[2], "g")), o = We) : u[3] !== void 0 && (o = We) : o === We ? u[0] === ">" ? (o = s ?? Lt, p = -1) : u[1] === void 0 ? p = -2 : (p = o.lastIndex - u[2].length, l = u[1], o = u[3] === void 0 ? We : u[3] === '"' ? Hr : Dr) : o === Hr || o === Dr ? o = We : o === Nr || o === Ur ? o = Lt : (o = We, s = void 0);
1922
- const g = o === We && n[a + 1].startsWith("/>") ? " " : "";
1923
- r += o === Lt ? c + Lc : p >= 0 ? (i.push(l), c.slice(0, p) + Qo + c.slice(p) + Ne + g) : c + Ne + (p === -2 ? a : g);
1921
+ for (; d < c.length && (o.lastIndex = d, u = o.exec(c), u !== null); ) d = o.lastIndex, o === It ? u[1] === "!--" ? o = Nr : u[1] !== void 0 ? o = Ur : u[2] !== void 0 ? (Ko.test(u[2]) && (s = RegExp("</" + u[2], "g")), o = Ge) : u[3] !== void 0 && (o = Ge) : o === Ge ? u[0] === ">" ? (o = s ?? It, p = -1) : u[1] === void 0 ? p = -2 : (p = o.lastIndex - u[2].length, l = u[1], o = u[3] === void 0 ? Ge : u[3] === '"' ? Hr : Dr) : o === Hr || o === Dr ? o = Ge : o === Nr || o === Ur ? o = It : (o = Ge, s = void 0);
1922
+ const g = o === Ge && n[a + 1].startsWith("/>") ? " " : "";
1923
+ r += o === It ? c + Lc : p >= 0 ? (i.push(l), c.slice(0, p) + Qo + c.slice(p) + Ue + g) : c + Ue + (p === -2 ? a : g);
1924
1924
  }
1925
1925
  return [Jo(n, r + (n[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
1926
1926
  };
1927
- let Di = class ea {
1927
+ let Hi = class ea {
1928
1928
  constructor({ strings: e, _$litType$: t }, i) {
1929
1929
  let s;
1930
1930
  this.parts = [];
1931
1931
  let r = 0, o = 0;
1932
1932
  const a = e.length - 1, c = this.parts, [l, u] = Mc(e, t);
1933
- if (this.el = ea.createElement(l, i), Ze.currentNode = this.el.content, t === 2 || t === 3) {
1933
+ if (this.el = ea.createElement(l, i), Ye.currentNode = this.el.content, t === 2 || t === 3) {
1934
1934
  const p = this.el.content.firstChild;
1935
1935
  p.replaceWith(...p.childNodes);
1936
1936
  }
1937
- for (; (s = Ze.nextNode()) !== null && c.length < a; ) {
1937
+ for (; (s = Ye.nextNode()) !== null && c.length < a; ) {
1938
1938
  if (s.nodeType === 1) {
1939
1939
  if (s.hasAttributes()) for (const p of s.getAttributeNames()) if (p.endsWith(Qo)) {
1940
- const d = u[o++], g = s.getAttribute(p).split(Ne), m = /([.?@])?(.*)/.exec(d);
1940
+ const d = u[o++], g = s.getAttribute(p).split(Ue), m = /([.?@])?(.*)/.exec(d);
1941
1941
  c.push({ type: 1, index: r, name: m[2], strings: g, ctor: m[1] === "." ? Uc : m[1] === "?" ? Dc : m[1] === "@" ? Hc : Yn }), s.removeAttribute(p);
1942
- } else p.startsWith(Ne) && (c.push({ type: 6, index: r }), s.removeAttribute(p));
1942
+ } else p.startsWith(Ue) && (c.push({ type: 6, index: r }), s.removeAttribute(p));
1943
1943
  if (Ko.test(s.tagName)) {
1944
- const p = s.textContent.split(Ne), d = p.length - 1;
1944
+ const p = s.textContent.split(Ue), d = p.length - 1;
1945
1945
  if (d > 0) {
1946
1946
  s.textContent = Ln ? Ln.emptyScript : "";
1947
- for (let g = 0; g < d; g++) s.append(p[g], Gt()), Ze.nextNode(), c.push({ type: 2, index: ++r });
1947
+ for (let g = 0; g < d; g++) s.append(p[g], Gt()), Ye.nextNode(), c.push({ type: 2, index: ++r });
1948
1948
  s.append(p[d], Gt());
1949
1949
  }
1950
1950
  }
1951
1951
  } else if (s.nodeType === 8) if (s.data === Xo) c.push({ type: 2, index: r });
1952
1952
  else {
1953
1953
  let p = -1;
1954
- for (; (p = s.data.indexOf(Ne, p + 1)) !== -1; ) c.push({ type: 7, index: r }), p += Ne.length - 1;
1954
+ for (; (p = s.data.indexOf(Ue, p + 1)) !== -1; ) c.push({ type: 7, index: r }), p += Ue.length - 1;
1955
1955
  }
1956
1956
  r++;
1957
1957
  }
1958
1958
  }
1959
1959
  static createElement(e, t) {
1960
- const i = Je.createElement("template");
1960
+ const i = et.createElement("template");
1961
1961
  return i.innerHTML = e, i;
1962
1962
  }
1963
1963
  };
1964
- function wt(n, e, t = n, i) {
1964
+ function xt(n, e, t = n, i) {
1965
1965
  var o, a;
1966
1966
  if (e === Le) return e;
1967
1967
  let s = i !== void 0 ? (o = t._$Co) == null ? void 0 : o[i] : t._$Cl;
1968
1968
  const r = Zt(e) ? void 0 : e._$litDirective$;
1969
- 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 = wt(n, s._$AS(n, e.values), s, i)), e;
1969
+ 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 = xt(n, s._$AS(n, e.values), s, i)), e;
1970
1970
  }
1971
1971
  class Nc {
1972
1972
  constructor(e, t) {
@@ -1979,17 +1979,17 @@ class Nc {
1979
1979
  return this._$AM._$AU;
1980
1980
  }
1981
1981
  u(e) {
1982
- const { el: { content: t }, parts: i } = this._$AD, s = ((e == null ? void 0 : e.creationScope) ?? Je).importNode(t, !0);
1983
- Ze.currentNode = s;
1984
- let r = Ze.nextNode(), o = 0, a = 0, c = i[0];
1982
+ const { el: { content: t }, parts: i } = this._$AD, s = ((e == null ? void 0 : e.creationScope) ?? et).importNode(t, !0);
1983
+ Ye.currentNode = s;
1984
+ let r = Ye.nextNode(), o = 0, a = 0, c = i[0];
1985
1985
  for (; c !== void 0; ) {
1986
1986
  if (o === c.index) {
1987
1987
  let l;
1988
1988
  c.type === 2 ? l = new rn(r, r.nextSibling, this, e) : c.type === 1 ? l = new c.ctor(r, c.name, c.strings, this, e) : c.type === 6 && (l = new zc(r, this, e)), this._$AV.push(l), c = i[++a];
1989
1989
  }
1990
- o !== (c == null ? void 0 : c.index) && (r = Ze.nextNode(), o++);
1990
+ o !== (c == null ? void 0 : c.index) && (r = Ye.nextNode(), o++);
1991
1991
  }
1992
- return Ze.currentNode = Je, s;
1992
+ return Ye.currentNode = et, s;
1993
1993
  }
1994
1994
  p(e) {
1995
1995
  let t = 0;
@@ -2016,7 +2016,7 @@ class rn {
2016
2016
  return this._$AB;
2017
2017
  }
2018
2018
  _$AI(e, t = this) {
2019
- e = wt(this, e, t), Zt(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) : Ic(e) ? this.k(e) : this._(e);
2019
+ e = xt(this, e, t), Zt(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) : Ic(e) ? this.k(e) : this._(e);
2020
2020
  }
2021
2021
  O(e) {
2022
2022
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -2025,11 +2025,11 @@ class rn {
2025
2025
  this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
2026
2026
  }
2027
2027
  _(e) {
2028
- this._$AH !== w && Zt(this._$AH) ? this._$AA.nextSibling.data = e : this.T(Je.createTextNode(e)), this._$AH = e;
2028
+ this._$AH !== w && Zt(this._$AH) ? this._$AA.nextSibling.data = e : this.T(et.createTextNode(e)), this._$AH = e;
2029
2029
  }
2030
2030
  $(e) {
2031
2031
  var r;
2032
- const { values: t, _$litType$: i } = e, s = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el = Di.createElement(Jo(i.h, i.h[0]), this.options)), i);
2032
+ const { values: t, _$litType$: i } = e, s = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el = Hi.createElement(Jo(i.h, i.h[0]), this.options)), i);
2033
2033
  if (((r = this._$AH) == null ? void 0 : r._$AD) === s) this._$AH.p(t);
2034
2034
  else {
2035
2035
  const o = new Nc(s, this), a = o.u(this.options);
@@ -2038,10 +2038,10 @@ class rn {
2038
2038
  }
2039
2039
  _$AC(e) {
2040
2040
  let t = zr.get(e.strings);
2041
- return t === void 0 && zr.set(e.strings, t = new Di(e)), t;
2041
+ return t === void 0 && zr.set(e.strings, t = new Hi(e)), t;
2042
2042
  }
2043
2043
  k(e) {
2044
- cs(this._$AH) || (this._$AH = [], this._$AR());
2044
+ us(this._$AH) || (this._$AH = [], this._$AR());
2045
2045
  const t = this._$AH;
2046
2046
  let i, s = 0;
2047
2047
  for (const r of e) s === t.length ? t.push(i = new rn(this.O(Gt()), this.O(Gt()), this, this.options)) : i = t[s], i._$AI(r), s++;
@@ -2072,11 +2072,11 @@ class Yn {
2072
2072
  _$AI(e, t = this, i, s) {
2073
2073
  const r = this.strings;
2074
2074
  let o = !1;
2075
- if (r === void 0) e = wt(this, e, t, 0), o = !Zt(e) || e !== this._$AH && e !== Le, o && (this._$AH = e);
2075
+ if (r === void 0) e = xt(this, e, t, 0), o = !Zt(e) || e !== this._$AH && e !== Le, o && (this._$AH = e);
2076
2076
  else {
2077
2077
  const a = e;
2078
2078
  let c, l;
2079
- for (e = r[0], c = 0; c < r.length - 1; c++) l = wt(this, a[i + c], t, c), l === Le && (l = this._$AH[c]), o || (o = !Zt(l) || l !== this._$AH[c]), l === w ? e = w : e !== w && (e += (l ?? "") + r[c + 1]), this._$AH[c] = l;
2079
+ for (e = r[0], c = 0; c < r.length - 1; c++) l = xt(this, a[i + c], t, c), l === Le && (l = this._$AH[c]), o || (o = !Zt(l) || l !== this._$AH[c]), l === w ? e = w : e !== w && (e += (l ?? "") + r[c + 1]), this._$AH[c] = l;
2080
2080
  }
2081
2081
  o && !s && this.j(e);
2082
2082
  }
@@ -2105,7 +2105,7 @@ class Hc extends Yn {
2105
2105
  super(e, t, i, s, r), this.type = 5;
2106
2106
  }
2107
2107
  _$AI(e, t = this) {
2108
- if ((e = wt(this, e, t, 0) ?? w) === Le) return;
2108
+ if ((e = xt(this, e, t, 0) ?? w) === Le) return;
2109
2109
  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);
2110
2110
  s && this.element.removeEventListener(this.name, this, i), r && this.element.addEventListener(this.name, this, e), this._$AH = e;
2111
2111
  }
@@ -2122,11 +2122,11 @@ class zc {
2122
2122
  return this._$AM._$AU;
2123
2123
  }
2124
2124
  _$AI(e) {
2125
- wt(this, e);
2125
+ xt(this, e);
2126
2126
  }
2127
2127
  }
2128
- const wi = Ft.litHtmlPolyfillSupport;
2129
- wi == null || wi(Di, rn), (Ft.litHtmlVersions ?? (Ft.litHtmlVersions = [])).push("3.3.1");
2128
+ const xi = jt.litHtmlPolyfillSupport;
2129
+ xi == null || xi(Hi, rn), (jt.litHtmlVersions ?? (jt.litHtmlVersions = [])).push("3.3.1");
2130
2130
  const Fc = (n, e, t) => {
2131
2131
  const i = (t == null ? void 0 : t.renderBefore) ?? e;
2132
2132
  let s = i._$litPart$;
@@ -2141,8 +2141,8 @@ const Fc = (n, e, t) => {
2141
2141
  * Copyright 2017 Google LLC
2142
2142
  * SPDX-License-Identifier: BSD-3-Clause
2143
2143
  */
2144
- const Xe = globalThis;
2145
- let A = class extends ht {
2144
+ const Ke = globalThis;
2145
+ let A = class extends dt {
2146
2146
  constructor() {
2147
2147
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
2148
2148
  }
@@ -2168,11 +2168,11 @@ let A = class extends ht {
2168
2168
  }
2169
2169
  };
2170
2170
  var _o;
2171
- A._$litElement$ = !0, A.finalized = !0, (_o = Xe.litElementHydrateSupport) == null || _o.call(Xe, { LitElement: A });
2172
- const xi = Xe.litElementPolyfillSupport;
2173
- xi == null || xi({ LitElement: A });
2174
- (Xe.litElementVersions ?? (Xe.litElementVersions = [])).push("4.2.1");
2175
- 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>' }, ta = { 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>' }, na = { 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>' }, 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="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>' }, 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="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>' }, 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="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>' }, 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="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>' }, 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="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>' }, Fr = { 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>' }, Gc = { 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>' }, jr = { 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>' }, Zc = { 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 = {
2171
+ A._$litElement$ = !0, A.finalized = !0, (_o = Ke.litElementHydrateSupport) == null || _o.call(Ke, { LitElement: A });
2172
+ const ki = Ke.litElementPolyfillSupport;
2173
+ ki == null || ki({ LitElement: A });
2174
+ (Ke.litElementVersions ?? (Ke.litElementVersions = [])).push("4.2.1");
2175
+ 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>' }, ta = { 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>' }, na = { 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>' }, 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="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>' }, 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="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>' }, 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="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>' }, 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="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>' }, 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="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>' }, zi = { 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>' }, Fr = { 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>' }, Gc = { 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>' }, jr = { 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>' }, Zc = { 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>' }, pt = {
2176
2176
  allRenderFn: !1,
2177
2177
  cmpDidLoad: !0,
2178
2178
  cmpDidUnload: !1,
@@ -2256,8 +2256,8 @@ const jc = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" f
2256
2256
  transformTagName: !1,
2257
2257
  attachStyles: !0
2258
2258
  };
2259
- let pt, oa, Qn, aa = !1, In = !1, us = !1, te = !1, Br = null, zi = !1;
2260
- const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} }, la = Xn.HTMLElement || class {
2259
+ let ft, oa, Qn, aa = !1, In = !1, hs = !1, te = !1, Br = null, Fi = !1;
2260
+ const Xn = typeof window < "u" ? window : {}, $e = Xn.document || { head: {} }, la = Xn.HTMLElement || class {
2261
2261
  }, X = {
2262
2262
  $flags$: 0,
2263
2263
  $resourcesUrl$: "",
@@ -2269,7 +2269,7 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
2269
2269
  }, Yc = /* @__PURE__ */ (() => {
2270
2270
  let n = !1;
2271
2271
  try {
2272
- ye.addEventListener("e", null, Object.defineProperty({}, "passive", {
2272
+ $e.addEventListener("e", null, Object.defineProperty({}, "passive", {
2273
2273
  get() {
2274
2274
  n = !0;
2275
2275
  }
@@ -2290,34 +2290,34 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
2290
2290
  });
2291
2291
  }, Kc = (n, e) => (t) => {
2292
2292
  try {
2293
- dt.lazyLoad || n.$hostElement$[e](t);
2293
+ pt.lazyLoad || n.$hostElement$[e](t);
2294
2294
  } catch (i) {
2295
2295
  on(i);
2296
2296
  }
2297
- }, Jc = (n, e) => e & 4 ? ye : e & 8 ? Xn : e & 16 ? ye.body : n, eu = (n) => Yc ? {
2297
+ }, Jc = (n, e) => e & 4 ? $e : e & 8 ? Xn : e & 16 ? $e.body : n, eu = (n) => Yc ? {
2298
2298
  passive: (n & 1) !== 0,
2299
2299
  capture: (n & 2) !== 0
2300
- } : (n & 2) !== 0, qr = "http://www.w3.org/1999/xlink", et = (n, e = "") => () => {
2300
+ } : (n & 2) !== 0, qr = "http://www.w3.org/1999/xlink", tt = (n, e = "") => () => {
2301
2301
  }, Vr = /* @__PURE__ */ new WeakMap(), tu = (n, e, t) => {
2302
2302
  let i = Nn.get(n);
2303
2303
  Xc && t ? (i = i || new CSSStyleSheet(), i.replace(e)) : i = e, Nn.set(n, i);
2304
2304
  }, nu = (n, e, t, i) => {
2305
2305
  let s = ua(e, t), r = Nn.get(s);
2306
- if (n = n.nodeType === 11 ? n : ye, r)
2306
+ if (n = n.nodeType === 11 ? n : $e, r)
2307
2307
  if (typeof r == "string") {
2308
2308
  n = n.head || n;
2309
2309
  let o = Vr.get(n), a;
2310
- o || Vr.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));
2310
+ o || Vr.set(n, o = /* @__PURE__ */ new Set()), o.has(s) || (a = $e.createElement("style"), a.innerHTML = r, n.insertBefore(a, n.querySelector("link")), o && o.add(s));
2311
2311
  } else n.adoptedStyleSheets.includes(r) || (n.adoptedStyleSheets = [...n.adoptedStyleSheets, r]);
2312
2312
  return s;
2313
2313
  }, iu = (n) => {
2314
- const e = n.$cmpMeta$, t = n.$hostElement$, i = e.$flags$, s = et("attachStyles", e.$tagName$), r = nu(t.shadowRoot ? t.shadowRoot : t.getRootNode(), e, n.$modeName$);
2314
+ const e = n.$cmpMeta$, t = n.$hostElement$, i = e.$flags$, s = tt("attachStyles", e.$tagName$), r = nu(t.shadowRoot ? t.shadowRoot : t.getRootNode(), e, n.$modeName$);
2315
2315
  i & 10 && (t["s-sc"] = r, t.classList.add(r + "-h"), i & 2 && t.classList.add(r + "-s")), s();
2316
- }, ua = (n, e) => "sc-" + (e && n.$flags$ & 32 ? n.$tagName$ + "-" + e : n.$tagName$), su = (n) => Lu.map((e) => e(n)).find((e) => !!e), Wr = {}, ru = "http://www.w3.org/2000/svg", ou = "http://www.w3.org/1999/xhtml", au = (n) => n != null, hs = (n) => (n = typeof n, n === "object" || n === "function"), vt = (n, e, ...t) => {
2316
+ }, ua = (n, e) => "sc-" + (e && n.$flags$ & 32 ? n.$tagName$ + "-" + e : n.$tagName$), su = (n) => Lu.map((e) => e(n)).find((e) => !!e), Wr = {}, ru = "http://www.w3.org/2000/svg", ou = "http://www.w3.org/1999/xhtml", au = (n) => n != null, ds = (n) => (n = typeof n, n === "object" || n === "function"), bt = (n, e, ...t) => {
2317
2317
  let i = null, s = null, r = null, o = !1, a = !1, c = [];
2318
2318
  const l = (p) => {
2319
2319
  for (let d = 0; d < p.length; d++)
2320
- i = p[d], Array.isArray(i) ? l(i) : i != null && typeof i != "boolean" && ((o = typeof n != "function" && !hs(i)) && (i = String(i)), o && a ? c[c.length - 1].$text$ += i : c.push(o ? Pn(null, i) : i), a = o);
2320
+ i = p[d], Array.isArray(i) ? l(i) : i != null && typeof i != "boolean" && ((o = typeof n != "function" && !ds(i)) && (i = String(i)), o && a ? c[c.length - 1].$text$ += i : c.push(o ? Pn(null, i) : i), a = o);
2321
2321
  };
2322
2322
  if (l(t), e) {
2323
2323
  e.key && (s = e.key), e.name && (r = e.name);
@@ -2339,7 +2339,7 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
2339
2339
  $children$: null
2340
2340
  };
2341
2341
  return t.$attrs$ = null, t.$key$ = null, t.$name$ = null, t;
2342
- }, ds = {}, lu = (n) => n && n.$tag$ === ds, cu = {
2342
+ }, ps = {}, lu = (n) => n && n.$tag$ === ps, cu = {
2343
2343
  forEach: (n, e) => n.map(Gr).forEach(e),
2344
2344
  map: (n, e) => n.map(Gr).map(e).map(uu)
2345
2345
  }, Gr = (n) => ({
@@ -2352,7 +2352,7 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
2352
2352
  }), uu = (n) => {
2353
2353
  if (typeof n.vtag == "function") {
2354
2354
  const t = Object.assign({}, n.vattrs);
2355
- return n.vkey && (t.key = n.vkey), n.vname && (t.name = n.vname), vt(n.vtag, t, ...n.vchildren || []);
2355
+ return n.vkey && (t.key = n.vkey), n.vname && (t.name = n.vname), bt(n.vtag, t, ...n.vchildren || []);
2356
2356
  }
2357
2357
  const e = Pn(n.vtag, n.vtext);
2358
2358
  return e.$attrs$ = n.vattrs, e.$children$ = n.vchildren, e.$key$ = n.vkey, e.$name$ = n.vname, e;
@@ -2373,7 +2373,7 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
2373
2373
  else if (!n.__lookupSetter__(e) && e[0] === "o" && e[1] === "n")
2374
2374
  e[2] === "-" ? e = e.slice(3) : Kr(Xn, a) ? e = a.slice(2) : e = a[2] + e.slice(3), t && X.rel(n, e, t, !1), i && X.ael(n, e, i, !1);
2375
2375
  else {
2376
- const c = hs(i);
2376
+ const c = ds(i);
2377
2377
  if ((o || c && i !== null) && !s)
2378
2378
  try {
2379
2379
  if (n.tagName.includes("-"))
@@ -2396,18 +2396,18 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
2396
2396
  Zr(s, i, r[i], o[i], t, e.$flags$);
2397
2397
  }, Mn = (n, e, t, i) => {
2398
2398
  let s = e.$children$[t], r = 0, o, a, c;
2399
- if (aa || (us = !0, s.$tag$ === "slot" && (pt && i.classList.add(pt + "-s"), s.$flags$ |= s.$children$ ? (
2399
+ if (aa || (hs = !0, s.$tag$ === "slot" && (ft && i.classList.add(ft + "-s"), s.$flags$ |= s.$children$ ? (
2400
2400
  // slot element has fallback content
2401
2401
  2
2402
2402
  ) : (
2403
2403
  // slot element does not have fallback content
2404
2404
  1
2405
2405
  ))), s.$text$ !== null)
2406
- o = s.$elm$ = ye.createTextNode(s.$text$);
2406
+ o = s.$elm$ = $e.createTextNode(s.$text$);
2407
2407
  else if (s.$flags$ & 1)
2408
- o = s.$elm$ = ye.createTextNode("");
2408
+ o = s.$elm$ = $e.createTextNode("");
2409
2409
  else {
2410
- if (te || (te = s.$tag$ === "svg"), o = s.$elm$ = ye.createElementNS(te ? ru : ou, s.$flags$ & 2 ? "slot-fb" : s.$tag$), te && s.$tag$ === "foreignObject" && (te = !1), ha(null, s, te), au(pt) && o["s-si"] !== pt && o.classList.add(o["s-si"] = pt), s.$children$)
2410
+ if (te || (te = s.$tag$ === "svg"), o = s.$elm$ = $e.createElementNS(te ? ru : ou, s.$flags$ & 2 ? "slot-fb" : s.$tag$), te && s.$tag$ === "foreignObject" && (te = !1), ha(null, s, te), au(ft) && o["s-si"] !== ft && o.classList.add(o["s-si"] = ft), s.$children$)
2411
2411
  for (r = 0; r < s.$children$.length; ++r)
2412
2412
  a = Mn(n, s, r, o), a && o.appendChild(a);
2413
2413
  s.$tag$ === "svg" ? te = !1 : o.tagName === "foreignObject" && (te = !0);
@@ -2418,13 +2418,13 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
2418
2418
  const t = n.childNodes;
2419
2419
  for (let i = t.length - 1; i >= 0; i--) {
2420
2420
  const s = t[i];
2421
- s["s-hn"] !== Qn && s["s-ol"] && (fa(s).insertBefore(s, ps(s)), s["s-ol"].remove(), s["s-ol"] = void 0, us = !0), e && Yt(s, e);
2421
+ s["s-hn"] !== Qn && s["s-ol"] && (fa(s).insertBefore(s, fs(s)), s["s-ol"].remove(), s["s-ol"] = void 0, hs = !0), e && Yt(s, e);
2422
2422
  }
2423
2423
  X.$flags$ &= -2;
2424
2424
  }, da = (n, e, t, i, s, r) => {
2425
2425
  let o = n["s-cr"] && n["s-cr"].parentNode || n, a;
2426
2426
  for (o.shadowRoot && o.tagName === Qn && (o = o.shadowRoot); s <= r; ++s)
2427
- i[s] && (a = Mn(null, t, s, n), a && (i[s].$elm$ = a, o.insertBefore(a, ps(e))));
2427
+ i[s] && (a = Mn(null, t, s, n), a && (i[s].$elm$ = a, o.insertBefore(a, fs(e))));
2428
2428
  }, pa = (n, e, t, i, s) => {
2429
2429
  for (; e <= t; ++e)
2430
2430
  (i = n[e]) && (s = i.$elm$, va(i), In = !0, s["s-ol"] ? s["s-ol"].remove() : Yt(s, !0), s.remove());
@@ -2440,23 +2440,23 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
2440
2440
  else if (g == null)
2441
2441
  g = i[--p];
2442
2442
  else if (yn(l, d))
2443
- ft(l, d), l = e[++s], d = i[++r];
2443
+ gt(l, d), l = e[++s], d = i[++r];
2444
2444
  else if (yn(u, g))
2445
- ft(u, g), u = e[--c], g = i[--p];
2445
+ gt(u, g), u = e[--c], g = i[--p];
2446
2446
  else if (yn(l, g))
2447
- (l.$tag$ === "slot" || g.$tag$ === "slot") && Yt(l.$elm$.parentNode, !1), ft(l, g), n.insertBefore(l.$elm$, u.$elm$.nextSibling), l = e[++s], g = i[--p];
2447
+ (l.$tag$ === "slot" || g.$tag$ === "slot") && Yt(l.$elm$.parentNode, !1), gt(l, g), n.insertBefore(l.$elm$, u.$elm$.nextSibling), l = e[++s], g = i[--p];
2448
2448
  else if (yn(u, d))
2449
- (l.$tag$ === "slot" || g.$tag$ === "slot") && Yt(u.$elm$.parentNode, !1), ft(u, d), n.insertBefore(u.$elm$, l.$elm$), u = e[--c], d = i[++r];
2449
+ (l.$tag$ === "slot" || g.$tag$ === "slot") && Yt(u.$elm$.parentNode, !1), gt(u, d), n.insertBefore(u.$elm$, l.$elm$), u = e[--c], d = i[++r];
2450
2450
  else {
2451
2451
  for (o = -1, a = s; a <= c; ++a)
2452
2452
  if (e[a] && e[a].$key$ !== null && e[a].$key$ === d.$key$) {
2453
2453
  o = a;
2454
2454
  break;
2455
2455
  }
2456
- o >= 0 ? ($ = e[o], $.$tag$ !== d.$tag$ ? m = Mn(e && e[r], t, o, n) : (ft($, d), e[o] = void 0, m = $.$elm$), d = i[++r]) : (m = Mn(e && e[r], t, r, n), d = i[++r]), m && fa(l.$elm$).insertBefore(m, ps(l.$elm$));
2456
+ o >= 0 ? ($ = e[o], $.$tag$ !== d.$tag$ ? m = Mn(e && e[r], t, o, n) : (gt($, d), e[o] = void 0, m = $.$elm$), d = i[++r]) : (m = Mn(e && e[r], t, r, n), d = i[++r]), m && fa(l.$elm$).insertBefore(m, fs(l.$elm$));
2457
2457
  }
2458
2458
  s > c ? da(n, i[p + 1] == null ? null : i[p + 1].$elm$, t, i, r, p) : r > p && pa(e, s, c);
2459
- }, yn = (n, e) => n.$tag$ === e.$tag$ ? n.$tag$ === "slot" ? n.$name$ === e.$name$ : n.$key$ === e.$key$ : !1, ps = (n) => n && n["s-ol"] || n, fa = (n) => (n["s-ol"] ? n["s-ol"] : n).parentNode, ft = (n, e) => {
2459
+ }, yn = (n, e) => n.$tag$ === e.$tag$ ? n.$tag$ === "slot" ? n.$name$ === e.$name$ : n.$key$ === e.$key$ : !1, fs = (n) => n && n["s-ol"] || n, fa = (n) => (n["s-ol"] ? n["s-ol"] : n).parentNode, gt = (n, e) => {
2460
2460
  const t = e.$elm$ = n.$elm$, i = n.$children$, s = e.$children$, r = e.$tag$, o = e.$text$;
2461
2461
  let a;
2462
2462
  o === null ? (te = r === "svg" ? !0 : r === "foreignObject" ? !1 : te, r === "slot" || ha(n, e, te), i !== null && s !== null ? du(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);
@@ -2496,14 +2496,14 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
2496
2496
  }, Qr = (n, e) => n.nodeType === 1 ? n.getAttribute("slot") === null && e === "" || n.getAttribute("slot") === e : n["s-sn"] === e ? !0 : e === "", va = (n) => {
2497
2497
  n.$attrs$ && n.$attrs$.ref && n.$attrs$.ref(null), n.$children$ && n.$children$.map(va);
2498
2498
  }, pu = (n, e) => {
2499
- const t = n.$hostElement$, i = n.$cmpMeta$, s = n.$vnode$ || Pn(null, null), r = lu(e) ? e : vt(null, null, e);
2500
- 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, In = !1, ft(s, r);
2499
+ const t = n.$hostElement$, i = n.$cmpMeta$, s = n.$vnode$ || Pn(null, null), r = lu(e) ? e : bt(null, null, e);
2500
+ 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, ft = t["s-sc"], oa = t["s-cr"], aa = (i.$flags$ & 1) !== 0, In = !1, gt(s, r);
2501
2501
  {
2502
- if (X.$flags$ |= 1, us) {
2502
+ if (X.$flags$ |= 1, hs) {
2503
2503
  ma(r.$elm$);
2504
2504
  let o, a, c, l, u, p, d = 0;
2505
2505
  for (; d < ue.length; d++)
2506
- o = ue[d], a = o.$nodeToRelocate$, a["s-ol"] || (c = ye.createTextNode(""), c["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = c, a));
2506
+ o = ue[d], a = o.$nodeToRelocate$, a["s-ol"] || (c = $e.createTextNode(""), c["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = c, a));
2507
2507
  for (d = 0; d < ue.length; d++)
2508
2508
  if (o = ue[d], a = o.$nodeToRelocate$, o.$slotRefNode$) {
2509
2509
  for (l = o.$slotRefNode$.parentNode, u = o.$slotRefNode$.nextSibling, c = a["s-ol"]; c = c.previousSibling; )
@@ -2532,32 +2532,32 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
2532
2532
  return n.dispatchEvent(i), i;
2533
2533
  }, vu = (n, e) => {
2534
2534
  }, ba = (n, e) => (n.$flags$ |= 16, vu(n, n.$ancestorComponent$), Mu(() => bu(n, e))), bu = (n, e) => {
2535
- const t = n.$hostElement$, i = et("scheduleUpdate", n.$cmpMeta$.$tagName$), s = t;
2535
+ const t = n.$hostElement$, i = tt("scheduleUpdate", n.$cmpMeta$.$tagName$), s = t;
2536
2536
  let r;
2537
- return e ? r = bt(s, "componentWillLoad") : r = bt(s, "componentWillUpdate"), r = Xr(r, () => bt(s, "componentWillRender")), i(), Xr(r, () => yu(n, s, e));
2537
+ return e ? r = yt(s, "componentWillLoad") : r = yt(s, "componentWillUpdate"), r = Xr(r, () => yt(s, "componentWillRender")), i(), Xr(r, () => yu(n, s, e));
2538
2538
  }, yu = async (n, e, t) => {
2539
- const i = n.$hostElement$, s = et("update", n.$cmpMeta$.$tagName$);
2539
+ const i = n.$hostElement$, s = tt("update", n.$cmpMeta$.$tagName$);
2540
2540
  i["s-rc"], t && iu(n);
2541
- const r = et("render", n.$cmpMeta$.$tagName$);
2541
+ const r = tt("render", n.$cmpMeta$.$tagName$);
2542
2542
  $u(n, e, i), r(), s(), wu(n);
2543
2543
  }, $u = (n, e, t) => {
2544
2544
  try {
2545
- Br = e, e = e.render && e.render(), n.$flags$ &= -17, n.$flags$ |= 2, (dt.hasRenderFn || dt.reflect) && (dt.vdomRender || dt.reflect) && (dt.hydrateServerSide || pu(n, e));
2545
+ Br = e, e = e.render && e.render(), n.$flags$ &= -17, n.$flags$ |= 2, (pt.hasRenderFn || pt.reflect) && (pt.vdomRender || pt.reflect) && (pt.hydrateServerSide || pu(n, e));
2546
2546
  } catch (a) {
2547
2547
  on(a, n.$hostElement$);
2548
2548
  }
2549
2549
  return Br = null, null;
2550
2550
  }, wu = (n) => {
2551
- const e = n.$cmpMeta$.$tagName$, t = n.$hostElement$, i = et("postUpdate", e), s = t;
2552
- n.$ancestorComponent$, bt(s, "componentDidRender"), n.$flags$ & 64 ? (bt(s, "componentDidUpdate"), i()) : (n.$flags$ |= 64, bt(s, "componentDidLoad"), i());
2553
- }, bt = (n, e, t) => {
2551
+ const e = n.$cmpMeta$.$tagName$, t = n.$hostElement$, i = tt("postUpdate", e), s = t;
2552
+ n.$ancestorComponent$, yt(s, "componentDidRender"), n.$flags$ & 64 ? (yt(s, "componentDidUpdate"), i()) : (n.$flags$ |= 64, yt(s, "componentDidLoad"), i());
2553
+ }, yt = (n, e, t) => {
2554
2554
  if (n && n[e])
2555
2555
  try {
2556
2556
  return n[e](t);
2557
2557
  } catch (i) {
2558
2558
  on(i);
2559
2559
  }
2560
- }, Xr = (n, e) => n && n.then ? n.then(e) : e(), xu = (n, e) => n != null && !hs(n) ? e & 4 ? n === "false" ? !1 : n === "" || !!n : e & 2 ? parseFloat(n) : e & 1 ? String(n) : n : n, ku = (n, e) => Kn(n).$instanceValues$.get(e), Su = (n, e, t, i) => {
2560
+ }, Xr = (n, e) => n && n.then ? n.then(e) : e(), xu = (n, e) => n != null && !ds(n) ? e & 4 ? n === "false" ? !1 : n === "" || !!n : e & 2 ? parseFloat(n) : e & 1 ? String(n) : n : n, ku = (n, e) => Kn(n).$instanceValues$.get(e), Su = (n, e, t, i) => {
2561
2561
  const s = Kn(n), r = n, o = s.$instanceValues$.get(e), a = s.$flags$, c = r;
2562
2562
  t = xu(t, i.$members$[e][0]);
2563
2563
  const l = Number.isNaN(o) && Number.isNaN(t);
@@ -2624,7 +2624,7 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
2624
2624
  typeof o != "string" && (o = o[e.$modeName$ = su(n)]);
2625
2625
  const a = ua(t, e.$modeName$);
2626
2626
  if (!Nn.has(a)) {
2627
- const c = et("registerStyles", t.$tagName$);
2627
+ const c = tt("registerStyles", t.$tagName$);
2628
2628
  tu(a, o, !!(t.$flags$ & 1)), c();
2629
2629
  }
2630
2630
  }
@@ -2632,7 +2632,7 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
2632
2632
  }, _u = (n) => {
2633
2633
  }, Au = (n) => {
2634
2634
  if ((X.$flags$ & 1) === 0) {
2635
- const e = Kn(n), t = e.$cmpMeta$, i = et("connectedCallback", t.$tagName$);
2635
+ const e = Kn(n), t = e.$cmpMeta$, i = tt("connectedCallback", t.$tagName$);
2636
2636
  e.$flags$ & 1 ? (ca(n, e, t.$listeners$), _u(e.$lazyInstance$)) : (e.$flags$ |= 1, t.$flags$ & 12 && Tu(n), t.$members$ && Object.entries(t.$members$).map(([s, [r]]) => {
2637
2637
  if (r & 31 && n.hasOwnProperty(s)) {
2638
2638
  const o = n[s];
@@ -2641,7 +2641,7 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
2641
2641
  }), Eu(n, e, t)), i();
2642
2642
  }
2643
2643
  }, Tu = (n) => {
2644
- const e = n["s-cr"] = ye.createComment("");
2644
+ const e = n["s-cr"] = $e.createComment("");
2645
2645
  e["s-cn"] = !0, n.insertBefore(e, n.firstChild);
2646
2646
  }, Ou = (n) => {
2647
2647
  if ((X.$flags$ & 1) === 0) {
@@ -2681,7 +2681,7 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
2681
2681
  };
2682
2682
  return ca(n, t, e.$listeners$), $a.set(n, t);
2683
2683
  }, Kr = (n, e) => e in n, on = (n, e) => (0, console.error)(n, e), Nn = /* @__PURE__ */ new Map(), Lu = [], Jr = [], wa = [], Iu = (n, e) => (t) => {
2684
- n.push(t), zi || (zi = !0, e && X.$flags$ & 4 ? Pu(Fi) : X.raf(Fi));
2684
+ n.push(t), Fi || (Fi = !0, e && X.$flags$ & 4 ? Pu(ji) : X.raf(ji));
2685
2685
  }, eo = (n) => {
2686
2686
  for (let e = 0; e < n.length; e++)
2687
2687
  try {
@@ -2690,8 +2690,8 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
2690
2690
  on(t);
2691
2691
  }
2692
2692
  n.length = 0;
2693
- }, Fi = () => {
2694
- eo(Jr), eo(wa), (zi = Jr.length > 0) && X.raf(Fi);
2693
+ }, ji = () => {
2694
+ eo(Jr), eo(wa), (Fi = Jr.length > 0) && X.raf(ji);
2695
2695
  }, Pu = (n) => Qc().then(n), Mu = /* @__PURE__ */ Iu(wa, !0), Nu = (n = {}) => {
2696
2696
  const { content: e = "", title: t, attributes: i = [] } = n;
2697
2697
  let s = "", r = [
@@ -2717,7 +2717,7 @@ const zu = "telia-vst{display:none}", Fu = /* @__PURE__ */ ya(class extends la {
2717
2717
  this.vocaInternalUStats.emit(new Hu(this.dataTrackingId));
2718
2718
  }
2719
2719
  render() {
2720
- return vt(ds, null);
2720
+ return bt(ps, null);
2721
2721
  }
2722
2722
  static get style() {
2723
2723
  return zu;
@@ -2737,15 +2737,15 @@ function xa() {
2737
2737
  });
2738
2738
  }
2739
2739
  xa();
2740
- function ji() {
2740
+ function Bi() {
2741
2741
  return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
2742
2742
  }
2743
2743
  function ju() {
2744
- if (typeof ji().vocadsIcons !== void 0)
2745
- return ji().vocadsIcons;
2744
+ if (typeof Bi().vocadsIcons !== void 0)
2745
+ return Bi().vocadsIcons;
2746
2746
  }
2747
2747
  function Bu() {
2748
- return ji().vocadsIconsRegistered;
2748
+ return Bi().vocadsIconsRegistered;
2749
2749
  }
2750
2750
  const qu = ".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))}", Vu = /* @__PURE__ */ ya(class extends la {
2751
2751
  constructor() {
@@ -2776,7 +2776,7 @@ const qu = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
2776
2776
  attributes: e,
2777
2777
  title: this.allyTitle
2778
2778
  });
2779
- return vt(ds, { class: `telia-icon telia-icon--${this.size}` }, vt("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: t }), vt("telia-vst", { dataTrackingId: this.dataTrackingId }));
2779
+ return bt(ps, { class: `telia-icon telia-icon--${this.size}` }, bt("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: t }), bt("telia-vst", { dataTrackingId: this.dataTrackingId }));
2780
2780
  }
2781
2781
  static get style() {
2782
2782
  return qu;
@@ -2808,7 +2808,7 @@ Wu();
2808
2808
  * Copyright 2017 Google LLC
2809
2809
  * SPDX-License-Identifier: BSD-3-Clause
2810
2810
  */
2811
- const Gu = { attribute: !0, type: String, converter: Rn, reflect: !1, hasChanged: ls }, Zu = (n = Gu, e, t) => {
2811
+ const Gu = { attribute: !0, type: String, converter: Rn, reflect: !1, hasChanged: cs }, Zu = (n = Gu, e, t) => {
2812
2812
  const { kind: i, metadata: s } = t;
2813
2813
  let r = globalThis.litPropertyMetadata.get(s);
2814
2814
  if (r === void 0 && globalThis.litPropertyMetadata.set(s, r = /* @__PURE__ */ new Map()), i === "setter" && ((n = Object.create(n)).wrapped = !0), r.set(t.name, n), i === "accessor") {
@@ -2876,11 +2876,11 @@ let Jn = class {
2876
2876
  * Copyright 2017 Google LLC
2877
2877
  * SPDX-License-Identifier: BSD-3-Clause
2878
2878
  */
2879
- const jt = (n, e) => {
2879
+ const Bt = (n, e) => {
2880
2880
  var i;
2881
2881
  const t = n._$AN;
2882
2882
  if (t === void 0) return !1;
2883
- for (const s of t) (i = s._$AO) == null || i.call(s, e, !1), jt(s, e);
2883
+ for (const s of t) (i = s._$AO) == null || i.call(s, e, !1), Bt(s, e);
2884
2884
  return !0;
2885
2885
  }, Un = (n) => {
2886
2886
  let e, t;
@@ -2901,9 +2901,9 @@ function Qu(n) {
2901
2901
  }
2902
2902
  function Xu(n, e = !1, t = 0) {
2903
2903
  const i = this._$AH, s = this._$AN;
2904
- if (s !== void 0 && s.size !== 0) if (e) if (Array.isArray(i)) for (let r = t; r < i.length; r++) jt(i[r], !1), Un(i[r]);
2905
- else i != null && (jt(i, !1), Un(i));
2906
- else jt(this, n);
2904
+ if (s !== void 0 && s.size !== 0) if (e) if (Array.isArray(i)) for (let r = t; r < i.length; r++) Bt(i[r], !1), Un(i[r]);
2905
+ else i != null && (Bt(i, !1), Un(i));
2906
+ else Bt(this, n);
2907
2907
  }
2908
2908
  const Ku = (n) => {
2909
2909
  n.type == an.CHILD && (n._$AP ?? (n._$AP = Xu), n._$AQ ?? (n._$AQ = Qu));
@@ -2917,7 +2917,7 @@ let Sa = class extends Jn {
2917
2917
  }
2918
2918
  _$AO(e, t = !0) {
2919
2919
  var i, s;
2920
- e !== this.isConnected && (this.isConnected = e, e ? (i = this.reconnected) == null || i.call(this) : (s = this.disconnected) == null || s.call(this)), t && (jt(this, e), Un(this));
2920
+ e !== this.isConnected && (this.isConnected = e, e ? (i = this.reconnected) == null || i.call(this) : (s = this.disconnected) == null || s.call(this)), t && (Bt(this, e), Un(this));
2921
2921
  }
2922
2922
  setValue(e) {
2923
2923
  if (Yu(this._$Ct)) this._$Ct._$AI(e, this);
@@ -2936,10 +2936,10 @@ let Sa = class extends Jn {
2936
2936
  * Copyright 2020 Google LLC
2937
2937
  * SPDX-License-Identifier: BSD-3-Clause
2938
2938
  */
2939
- const ve = () => new Ju();
2939
+ const be = () => new Ju();
2940
2940
  class Ju {
2941
2941
  }
2942
- const ki = /* @__PURE__ */ new WeakMap(), be = ln(class extends Sa {
2942
+ const Si = /* @__PURE__ */ new WeakMap(), ye = ln(class extends Sa {
2943
2943
  render(n) {
2944
2944
  return w;
2945
2945
  }
@@ -2951,13 +2951,13 @@ const ki = /* @__PURE__ */ new WeakMap(), be = ln(class extends Sa {
2951
2951
  rt(n) {
2952
2952
  if (this.isConnected || (n = void 0), typeof this.G == "function") {
2953
2953
  const e = this.ht ?? globalThis;
2954
- let t = ki.get(e);
2955
- t === void 0 && (t = /* @__PURE__ */ new WeakMap(), ki.set(e, t)), t.get(this.G) !== void 0 && this.G.call(this.ht, void 0), t.set(this.G, n), n !== void 0 && this.G.call(this.ht, n);
2954
+ let t = Si.get(e);
2955
+ t === void 0 && (t = /* @__PURE__ */ new WeakMap(), Si.set(e, t)), t.get(this.G) !== void 0 && this.G.call(this.ht, void 0), t.set(this.G, n), n !== void 0 && this.G.call(this.ht, n);
2956
2956
  } else this.G.value = n;
2957
2957
  }
2958
2958
  get lt() {
2959
2959
  var n, e;
2960
- return typeof this.G == "function" ? (n = ki.get(this.ht ?? globalThis)) == null ? void 0 : n.get(this.G) : (e = this.G) == null ? void 0 : e.value;
2960
+ return typeof this.G == "function" ? (n = Si.get(this.ht ?? globalThis)) == null ? void 0 : n.get(this.G) : (e = this.G) == null ? void 0 : e.value;
2961
2961
  }
2962
2962
  disconnected() {
2963
2963
  this.lt === this.ct && this.rt(void 0);
@@ -2971,7 +2971,7 @@ const ki = /* @__PURE__ */ new WeakMap(), be = ln(class extends Sa {
2971
2971
  * Copyright 2018 Google LLC
2972
2972
  * SPDX-License-Identifier: BSD-3-Clause
2973
2973
  */
2974
- const xt = ln(class extends Jn {
2974
+ const kt = ln(class extends Jn {
2975
2975
  constructor(n) {
2976
2976
  var e;
2977
2977
  if (super(n), n.type !== an.ATTRIBUTE || n.name !== "class" || ((e = n.strings) == null ? void 0 : e.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
@@ -3000,7 +3000,7 @@ var eh = Object.defineProperty, th = (n, e, t, i) => {
3000
3000
  (o = n[r]) && (s = o(e, t, s) || s);
3001
3001
  return s && eh(e, t, s), s;
3002
3002
  };
3003
- const Ts = class Ts extends A {
3003
+ const Os = class Os extends A {
3004
3004
  constructor() {
3005
3005
  super(...arguments), this.anchor = "BottomRight";
3006
3006
  }
@@ -3012,7 +3012,7 @@ const Ts = class Ts extends A {
3012
3012
  return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), w;
3013
3013
  }
3014
3014
  };
3015
- Ts.styles = [
3015
+ Os.styles = [
3016
3016
  R`
3017
3017
  :host {
3018
3018
  position: fixed;
@@ -3031,19 +3031,19 @@ Ts.styles = [
3031
3031
  }
3032
3032
  `
3033
3033
  ];
3034
- let Dn = Ts;
3034
+ let Dn = Os;
3035
3035
  th([
3036
3036
  k({ attribute: !0 })
3037
3037
  ], Dn.prototype, "anchor");
3038
3038
  const nh = /* @__PURE__ */ new WeakMap();
3039
3039
  let to = 0;
3040
- const Si = /* @__PURE__ */ new Map(), no = /* @__PURE__ */ new WeakSet(), io = () => new Promise(((n) => requestAnimationFrame(n))), ih = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], sh = [{ opacity: 0 }], so = [{ opacity: 0 }, { opacity: 1 }], ro = (n, e) => {
3040
+ const Ci = /* @__PURE__ */ new Map(), no = /* @__PURE__ */ new WeakSet(), io = () => new Promise(((n) => requestAnimationFrame(n))), ih = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], sh = [{ opacity: 0 }], so = [{ opacity: 0 }, { opacity: 1 }], ro = (n, e) => {
3041
3041
  const t = n - e;
3042
3042
  return t === 0 ? void 0 : t;
3043
3043
  }, oo = (n, e) => {
3044
3044
  const t = n / e;
3045
3045
  return t === 1 ? void 0 : t;
3046
- }, Ci = { left: (n, e) => {
3046
+ }, Ei = { left: (n, e) => {
3047
3047
  const t = ro(n, e);
3048
3048
  return { value: t, transform: t == null || isNaN(t) ? void 0 : `translateX(${t}px)` };
3049
3049
  }, top: (n, e) => {
@@ -3098,7 +3098,7 @@ class ah extends Sa {
3098
3098
  m() {
3099
3099
  const e = {}, t = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
3100
3100
  return this.options.properties.forEach(((s) => {
3101
- const r = t[s] ?? (Ci[s] ? void 0 : i[s]), o = Number(r);
3101
+ const r = t[s] ?? (Ei[s] ? void 0 : i[s]), o = Number(r);
3102
3102
  e[s] = isNaN(o) ? r + "" : o;
3103
3103
  })), e;
3104
3104
  }
@@ -3123,9 +3123,9 @@ class ah extends Sa {
3123
3123
  const { from: r, to: o } = this.N(this.A, s, t);
3124
3124
  this.log("measured", [this.A, s, r, o]), e = this.calculateKeyframes(r, o);
3125
3125
  } else {
3126
- const r = Si.get(this.options.inId);
3126
+ const r = Ci.get(this.options.inId);
3127
3127
  if (r) {
3128
- Si.delete(this.options.inId);
3128
+ Ci.delete(this.options.inId);
3129
3129
  const { from: o, to: a } = this.N(r, s, t);
3130
3130
  e = this.calculateKeyframes(o, a), e = this.options.in ? [{ ...this.options.in[0], ...e[0] }, ...this.options.in.slice(1), e[1]] : e, to++, e.forEach(((c) => c.zIndex = to));
3131
3131
  } else this.options.in && (e = [...this.options.in, {}]);
@@ -3143,7 +3143,7 @@ class ah extends Sa {
3143
3143
  }
3144
3144
  async disconnected() {
3145
3145
  var t;
3146
- if (!this.h || (this.options.id !== void 0 && Si.set(this.options.id, this.A), this.options.out === void 0)) return;
3146
+ if (!this.h || (this.options.id !== void 0 && Ci.set(this.options.id, this.A), this.options.out === void 0)) return;
3147
3147
  if (this.prepare(), await io(), (t = this.i) == null ? void 0 : t.isConnected) {
3148
3148
  const i = this.o && this.o.parentNode === this.i ? this.o : null;
3149
3149
  if (this.i.insertBefore(this.element, i), this.options.stabilizeOut) {
@@ -3199,8 +3199,8 @@ class ah extends Sa {
3199
3199
  const a = {};
3200
3200
  for (const c in t) {
3201
3201
  const l = e[c], u = t[c];
3202
- if (c in Ci) {
3203
- const p = Ci[c];
3202
+ if (c in Ei) {
3203
+ const p = Ei[c];
3204
3204
  if (l === void 0 || u === void 0) continue;
3205
3205
  const d = p(l, u);
3206
3206
  d.transform !== void 0 && (a[c] = d.value, o = !0, s.transform = `${s.transform ?? ""} ${d.transform}`, d.overrideFrom !== void 0 && Object.assign(s, d.overrideFrom));
@@ -3231,48 +3231,48 @@ class ah extends Sa {
3231
3231
  this.shouldLog && !this.isDisabled() && console.log(e, this.options.id, t);
3232
3232
  }
3233
3233
  }
3234
- const Bi = ln(ah), Se = (n, e, t) => {
3234
+ const qi = ln(ah), Ce = (n, e, t) => {
3235
3235
  n && t.style.setProperty(e, n);
3236
3236
  }, Ca = (n, e) => {
3237
3237
  var t, i, s, r, o, a, c, l, u;
3238
- Se((t = n.colors) == null ? void 0 : t.primaryBackground, "--primary-background", e), Se(
3238
+ Ce((t = n.colors) == null ? void 0 : t.primaryBackground, "--primary-background", e), Ce(
3239
3239
  (i = n.colors) == null ? void 0 : i.textOnPrimaryBackground,
3240
3240
  "--text-on-primary-background",
3241
3241
  e
3242
- ), Se(
3242
+ ), Ce(
3243
3243
  (s = n.colors) == null ? void 0 : s.secondaryBackground,
3244
3244
  "--secondary-background",
3245
3245
  e
3246
- ), Se(
3246
+ ), Ce(
3247
3247
  (r = n.colors) == null ? void 0 : r.textOnSecondaryBackground,
3248
3248
  "--text-on-secondary-background",
3249
3249
  e
3250
- ), Se(
3250
+ ), Ce(
3251
3251
  (o = n.colors) == null ? void 0 : o.interactiveDestructiveBackground,
3252
3252
  "--destructive-color",
3253
3253
  e
3254
- ), Se(
3254
+ ), Ce(
3255
3255
  (a = n.colors) == null ? void 0 : a.interactiveTextOnDestructiveBackground,
3256
3256
  "--text-on-destructive-color",
3257
3257
  e
3258
- ), Se(
3258
+ ), Ce(
3259
3259
  (c = n.colors) == null ? void 0 : c.interactivePrimaryBackground,
3260
3260
  "--interactive-primary-background",
3261
3261
  e
3262
- ), Se(
3262
+ ), Ce(
3263
3263
  (l = n.colors) == null ? void 0 : l.interactiveTextOnPrimaryBackground,
3264
3264
  "--interactive-text-on-primary-background",
3265
3265
  e
3266
- ), Se((u = n.colors) == null ? void 0 : u.focusColor, "--focus-color", e);
3266
+ ), Ce((u = n.colors) == null ? void 0 : u.focusColor, "--focus-color", e);
3267
3267
  };
3268
3268
  var lh = Object.defineProperty, cn = (n, e, t, i) => {
3269
3269
  for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
3270
3270
  (o = n[r]) && (s = o(e, t, s) || s);
3271
3271
  return s && lh(e, t, s), s;
3272
3272
  };
3273
- const Os = class Os extends A {
3273
+ const Rs = class Rs extends A {
3274
3274
  constructor() {
3275
- super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = ve(), this.widgetActive$ = new he(!1), this.componentIsDestroyed$ = new P();
3275
+ super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = be(), this.widgetActive$ = new he(!1), this.componentIsDestroyed$ = new P();
3276
3276
  }
3277
3277
  async connectedCallback() {
3278
3278
  super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
@@ -3347,11 +3347,11 @@ const Os = class Os extends A {
3347
3347
  render() {
3348
3348
  var e, t, i, s, r, o, a;
3349
3349
  return y`<div
3350
- class=${xt({
3350
+ class=${kt({
3351
3351
  "trigger-container": !0,
3352
3352
  "ace-hidden": !this.triggerVisible
3353
3353
  })}
3354
- ${be(this.containerRef)}
3354
+ ${ye(this.containerRef)}
3355
3355
  >
3356
3356
  ${!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`
3357
3357
  <button
@@ -3359,7 +3359,7 @@ const Os = class Os extends A {
3359
3359
  aria-label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
3360
3360
  class="trigger-label"
3361
3361
  @click=${this.toggleActive}
3362
- ${Bi({
3362
+ ${qi({
3363
3363
  keyframeOptions: {},
3364
3364
  in: ih,
3365
3365
  stabilizeOut: !0,
@@ -3373,7 +3373,7 @@ const Os = class Os extends A {
3373
3373
  <button
3374
3374
  type="button"
3375
3375
  aria-label="${((a = (o = (r = this.application) == null ? void 0 : r.settings) == null ? void 0 : o.branding.other) == null ? void 0 : a.buttonLabelText) ?? "Widget trigger"}"
3376
- class=${xt({
3376
+ class=${kt({
3377
3377
  trigger: !0,
3378
3378
  active: this.active,
3379
3379
  rendered: this.loaded
@@ -3412,7 +3412,7 @@ const Os = class Os extends A {
3412
3412
  </div>`;
3413
3413
  }
3414
3414
  };
3415
- Os.styles = [
3415
+ Rs.styles = [
3416
3416
  R`
3417
3417
  :host {
3418
3418
  --voca-rem-multiplier: 0.625;
@@ -3544,7 +3544,7 @@ Os.styles = [
3544
3544
  }
3545
3545
  `
3546
3546
  ];
3547
- let Ie = Os;
3547
+ let Ie = Rs;
3548
3548
  cn([
3549
3549
  k({ attribute: !1 })
3550
3550
  ], Ie.prototype, "application");
@@ -3560,7 +3560,7 @@ cn([
3560
3560
  cn([
3561
3561
  T()
3562
3562
  ], Ie.prototype, "icon");
3563
- var ch = Object.defineProperty, Ge = (n, e, t, i) => {
3563
+ var ch = Object.defineProperty, Ze = (n, e, t, i) => {
3564
3564
  for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
3565
3565
  (o = n[r]) && (s = o(e, t, s) || s);
3566
3566
  return s && ch(e, t, s), s;
@@ -3606,34 +3606,34 @@ const Ea = (n) => {
3606
3606
  `
3607
3607
  ];
3608
3608
  let e = t;
3609
- return Ge([
3609
+ return Ze([
3610
3610
  k()
3611
- ], e.prototype, "properties"), Ge([
3611
+ ], e.prototype, "properties"), Ze([
3612
3612
  k()
3613
- ], e.prototype, "context"), Ge([
3613
+ ], e.prototype, "context"), Ze([
3614
3614
  k()
3615
- ], e.prototype, "layout"), Ge([
3615
+ ], e.prototype, "layout"), Ze([
3616
3616
  k()
3617
- ], e.prototype, "name"), Ge([
3617
+ ], e.prototype, "name"), Ze([
3618
3618
  k()
3619
- ], e.prototype, "type"), Ge([
3619
+ ], e.prototype, "type"), Ze([
3620
3620
  k({ attribute: !1 })
3621
- ], e.prototype, "application"), Ge([
3621
+ ], e.prototype, "application"), Ze([
3622
3622
  k({ attribute: !1 })
3623
3623
  ], e.prototype, "parent"), e;
3624
- }, Rs = class Rs extends Ea(A) {
3624
+ }, Ls = class Ls extends Ea(A) {
3625
3625
  render() {
3626
3626
  return y`Non resolved component`;
3627
3627
  }
3628
3628
  };
3629
- Rs.styles = [
3629
+ Ls.styles = [
3630
3630
  R`
3631
3631
  :host {
3632
3632
  display: block;
3633
3633
  }
3634
3634
  `
3635
3635
  ];
3636
- let qi = Rs;
3636
+ let Vi = Ls;
3637
3637
  /**
3638
3638
  * @license
3639
3639
  * Copyright 2021 Google LLC
@@ -3645,7 +3645,7 @@ function* uh(n, e) {
3645
3645
  for (const i of n) yield e(i, t++);
3646
3646
  }
3647
3647
  }
3648
- var fs = /* @__PURE__ */ ((n) => (n.Inline = "inline", n.Trigger = "trigger", n))(fs || {}), H = /* @__PURE__ */ ((n) => (n.NonAuthenticated = "non-authenticated", n.Authenticating = "authenticating", n.Authenticated = "authenticated", n.ChatEnded = "chat-ended", n))(H || {});
3648
+ var gs = /* @__PURE__ */ ((n) => (n.Inline = "inline", n.Trigger = "trigger", n))(gs || {}), H = /* @__PURE__ */ ((n) => (n.NonAuthenticated = "non-authenticated", n.Authenticating = "authenticating", n.Authenticated = "authenticated", n.ChatEnded = "chat-ended", n))(H || {});
3649
3649
  /**
3650
3650
  * @license
3651
3651
  * Copyright 2021 Google LLC
@@ -3810,9 +3810,9 @@ var fh = Object.defineProperty, Aa = (n, e, t, i) => {
3810
3810
  (o = n[r]) && (s = o(e, t, s) || s);
3811
3811
  return s && fh(e, t, s), s;
3812
3812
  };
3813
- const ae = "application", Ls = class Ls extends A {
3813
+ const ae = "application", Is = class Is extends A {
3814
3814
  constructor() {
3815
- super(...arguments), this.nodes = [], this.wrapperRef = ve(), this.fullscreen = !1, this.isReady = new he(!1);
3815
+ super(...arguments), this.nodes = [], this.wrapperRef = be(), this.fullscreen = !1, this.isReady = new he(!1);
3816
3816
  }
3817
3817
  addChild(e) {
3818
3818
  e.parent = this, this.nodes.push(e);
@@ -3837,12 +3837,12 @@ const ae = "application", Ls = class Ls extends A {
3837
3837
  render() {
3838
3838
  var i, s;
3839
3839
  const e = this.application.settings.components.conversation;
3840
- 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 === fs.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)}>
3840
+ 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 === gs.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" ${ye(this.wrapperRef)}>
3841
3841
  ${uh(this.nodes, (r) => r)}
3842
3842
  </div>`;
3843
3843
  }
3844
3844
  };
3845
- Ls.styles = R`
3845
+ Is.styles = R`
3846
3846
  :host {
3847
3847
  --font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
3848
3848
  --spacing-xs: 0.2rem;
@@ -4008,7 +4008,7 @@ Ls.styles = R`
4008
4008
  animation: none;
4009
4009
  }
4010
4010
  `;
4011
- let Qt = Ls;
4011
+ let Qt = Is;
4012
4012
  Aa([
4013
4013
  k({ attribute: !0 })
4014
4014
  ], Qt.prototype, "fullscreen");
@@ -4016,12 +4016,12 @@ Aa([
4016
4016
  k({ attribute: !1 }),
4017
4017
  ph({ context: ae })
4018
4018
  ], Qt.prototype, "application");
4019
- var gh = Object.defineProperty, gs = (n, e, t, i) => {
4019
+ var gh = Object.defineProperty, ms = (n, e, t, i) => {
4020
4020
  for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
4021
4021
  (o = n[r]) && (s = o(e, t, s) || s);
4022
4022
  return s && gh(e, t, s), s;
4023
4023
  };
4024
- const Is = class Is extends A {
4024
+ const Ps = class Ps extends A {
4025
4025
  constructor() {
4026
4026
  super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
4027
4027
  }
@@ -4046,35 +4046,35 @@ const Is = class Is extends A {
4046
4046
  render() {
4047
4047
  if (!this.widget || this.status !== "activated")
4048
4048
  return w;
4049
- if (this.widget.renderStrategy === fs.Trigger) {
4049
+ if (this.widget.renderStrategy === gs.Trigger) {
4050
4050
  const e = new Ie();
4051
4051
  return e.application = this.widget, e;
4052
4052
  }
4053
4053
  return this.widget.render();
4054
4054
  }
4055
4055
  };
4056
- Is.styles = [
4056
+ Ps.styles = [
4057
4057
  R`
4058
4058
  :host {
4059
4059
  display: block;
4060
4060
  }
4061
4061
  `
4062
4062
  ];
4063
- let kt = Is;
4064
- gs([
4063
+ let St = Ps;
4064
+ ms([
4065
4065
  k({ attribute: !0 })
4066
- ], kt.prototype, "name");
4067
- gs([
4066
+ ], St.prototype, "name");
4067
+ ms([
4068
4068
  T()
4069
- ], kt.prototype, "widget");
4070
- gs([
4069
+ ], St.prototype, "widget");
4070
+ ms([
4071
4071
  T()
4072
- ], kt.prototype, "status");
4072
+ ], St.prototype, "status");
4073
4073
  customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", Dn);
4074
4074
  customElements.get("ace-trigger") || customElements.define("ace-trigger", Ie);
4075
- customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", qi);
4075
+ customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Vi);
4076
4076
  customElements.get("ace-wrapper") || customElements.define("ace-wrapper", Qt);
4077
- customElements.get("ace-widget") || customElements.define("ace-widget", kt);
4077
+ customElements.get("ace-widget") || customElements.define("ace-widget", St);
4078
4078
  class mh {
4079
4079
  constructor(e) {
4080
4080
  this._message = null, this._host = e, e.addController(this);
@@ -4131,14 +4131,14 @@ class uo {
4131
4131
  };
4132
4132
  }
4133
4133
  write(e) {
4134
- this._addEntryRemoveHandler(e), this.entries$.pipe(me(1)).subscribe((t) => {
4134
+ this._addEntryRemoveHandler(e), this.entries$.pipe(ve(1)).subscribe((t) => {
4135
4135
  this.entries$.next([...t, e]);
4136
4136
  });
4137
4137
  }
4138
4138
  _addEntryRemoveHandler(e) {
4139
4139
  e.remove$.pipe(
4140
4140
  Re(() => this.entries$),
4141
- me(1)
4141
+ ve(1)
4142
4142
  ).subscribe((t) => {
4143
4143
  this.removeEntryAction$.next(e), this.entries$.next(t.filter((i) => i !== e));
4144
4144
  });
@@ -4249,8 +4249,8 @@ class bh {
4249
4249
  constructor(e, t) {
4250
4250
  this.state$ = e, this.component = t, this.entries$ = new he([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new vh(this.component), this.session$ = this.sessionService.currentSession(), this.isTyping$ = this.session$.pipe(
4251
4251
  Re((i) => i ? i.provider$.pipe(
4252
- Re((s) => s ? s.isTyping() : Pi(!1))
4253
- ) : Pi(!1))
4252
+ Re((s) => s ? s.isTyping() : Mi(!1))
4253
+ ) : Mi(!1))
4254
4254
  ), e.subscribe((i) => {
4255
4255
  switch (i) {
4256
4256
  case "init":
@@ -4277,7 +4277,7 @@ class bh {
4277
4277
  Re((e) => {
4278
4278
  if (!e)
4279
4279
  return Oe;
4280
- const t = e.removeEntryAction$.pipe(Mi(this.entries$)).pipe(
4280
+ const t = e.removeEntryAction$.pipe(Ni(this.entries$)).pipe(
4281
4281
  Tn(([s, r]) => r.filter((o) => o.id !== s.id))
4282
4282
  ), i = e.entries().pipe(
4283
4283
  Tn((s) => {
@@ -4301,7 +4301,7 @@ var yh = Object.defineProperty, Ta = (n, e, t, i) => {
4301
4301
  (o = n[r]) && (s = o(e, t, s) || s);
4302
4302
  return s && yh(e, t, s), s;
4303
4303
  };
4304
- const Ps = class Ps extends A {
4304
+ const Ms = class Ms extends A {
4305
4305
  connectedCallback() {
4306
4306
  var e;
4307
4307
  super.connectedCallback(), (e = this.entry.didUpdate) == null || e.subscribe(() => {
@@ -4367,7 +4367,7 @@ const Ps = class Ps extends A {
4367
4367
  `;
4368
4368
  case q.Agent:
4369
4369
  return y`<div
4370
- class=${xt({
4370
+ class=${kt({
4371
4371
  "conversation-agent-message": !0,
4372
4372
  "has-avatar": !!((e = this.entry.sender) != null && e.avatar)
4373
4373
  })}
@@ -4396,7 +4396,7 @@ const Ps = class Ps extends A {
4396
4396
  </div>`;
4397
4397
  case q.User:
4398
4398
  return y`<div
4399
- class=${xt({
4399
+ class=${kt({
4400
4400
  "conversation-user-message": !0,
4401
4401
  "has-error": this.entry.status === "failed"
4402
4402
  })}
@@ -4425,7 +4425,7 @@ const Ps = class Ps extends A {
4425
4425
  }
4426
4426
  }
4427
4427
  };
4428
- Ps.styles = [
4428
+ Ms.styles = [
4429
4429
  R`
4430
4430
  :host {
4431
4431
  box-sizing: border-box;
@@ -4560,7 +4560,7 @@ Ps.styles = [
4560
4560
  }
4561
4561
  `
4562
4562
  ];
4563
- let Xt = Ps;
4563
+ let Xt = Ms;
4564
4564
  Ta([
4565
4565
  k({ attribute: !1 })
4566
4566
  ], Xt.prototype, "entry");
@@ -4573,7 +4573,7 @@ var $h = Object.defineProperty, Oa = (n, e, t, i) => {
4573
4573
  (o = n[r]) && (s = o(e, t, s) || s);
4574
4574
  return s && $h(e, t, s), s;
4575
4575
  };
4576
- const Ms = class Ms extends A {
4576
+ const Ns = class Ns extends A {
4577
4577
  constructor() {
4578
4578
  super(...arguments), this.entries = [], this.loading = !0;
4579
4579
  }
@@ -4587,7 +4587,7 @@ const Ms = class Ms extends A {
4587
4587
  (e) => y`<div class="conversation-entry" tabindex="-1">
4588
4588
  <conversation-entry
4589
4589
  .entry=${e}
4590
- ${Bi({
4590
+ ${qi({
4591
4591
  keyframeOptions: {},
4592
4592
  in: so,
4593
4593
  stabilizeOut: !0,
@@ -4598,7 +4598,7 @@ const Ms = class Ms extends A {
4598
4598
  </div>`
4599
4599
  )}
4600
4600
  ${this.loading ? y`<ace-typing-state
4601
- ${Bi({
4601
+ ${qi({
4602
4602
  keyframeOptions: {},
4603
4603
  in: so,
4604
4604
  out: sh,
@@ -4609,7 +4609,7 @@ const Ms = class Ms extends A {
4609
4609
  </div>`;
4610
4610
  }
4611
4611
  };
4612
- Ms.styles = [
4612
+ Ns.styles = [
4613
4613
  R`
4614
4614
  :host {
4615
4615
  display: block;
@@ -4628,7 +4628,7 @@ Ms.styles = [
4628
4628
  }
4629
4629
  `
4630
4630
  ];
4631
- let Kt = Ms;
4631
+ let Kt = Ns;
4632
4632
  Oa([
4633
4633
  k({ attribute: !1 })
4634
4634
  ], Kt.prototype, "entries");
@@ -4649,7 +4649,7 @@ var xh = Object.defineProperty, kh = (n, e, t, i) => {
4649
4649
  (o = n[r]) && (s = o(e, t, s) || s);
4650
4650
  return s && xh(e, t, s), s;
4651
4651
  };
4652
- const Ns = class Ns extends A {
4652
+ const Us = class Us extends A {
4653
4653
  render() {
4654
4654
  return y`
4655
4655
  <div class="message-group">
@@ -4678,7 +4678,7 @@ const Ns = class Ns extends A {
4678
4678
  `;
4679
4679
  }
4680
4680
  };
4681
- Ns.styles = [
4681
+ Us.styles = [
4682
4682
  R`
4683
4683
  :host {
4684
4684
  box-sizing: border-box;
@@ -4694,11 +4694,11 @@ Ns.styles = [
4694
4694
  }
4695
4695
  `
4696
4696
  ];
4697
- let Hn = Ns;
4697
+ let Hn = Us;
4698
4698
  kh([
4699
4699
  k({ attribute: !1 })
4700
4700
  ], Hn.prototype, "group");
4701
- const Us = class Us extends A {
4701
+ const Ds = class Ds extends A {
4702
4702
  render() {
4703
4703
  return y`<div class="container">
4704
4704
  <div class="dot"></div>
@@ -4707,7 +4707,7 @@ const Us = class Us extends A {
4707
4707
  </div>`;
4708
4708
  }
4709
4709
  };
4710
- Us.styles = [
4710
+ Ds.styles = [
4711
4711
  R`
4712
4712
  :host {
4713
4713
  display: block;
@@ -4744,13 +4744,13 @@ Us.styles = [
4744
4744
  }
4745
4745
  `
4746
4746
  ];
4747
- let Vi = Us;
4747
+ let Wi = Ds;
4748
4748
  /**
4749
4749
  * @license
4750
4750
  * Copyright 2017 Google LLC
4751
4751
  * SPDX-License-Identifier: BSD-3-Clause
4752
4752
  */
4753
- class Wi extends Jn {
4753
+ class Gi extends Jn {
4754
4754
  constructor(e) {
4755
4755
  if (super(e), this.it = w, e.type !== an.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
4756
4756
  }
@@ -4764,8 +4764,8 @@ class Wi extends Jn {
4764
4764
  return t.raw = t, this._t = { _$litType$: this.constructor.resultType, strings: t, values: [] };
4765
4765
  }
4766
4766
  }
4767
- Wi.directiveName = "unsafeHTML", Wi.resultType = 1;
4768
- const Sh = ln(Wi);
4767
+ Gi.directiveName = "unsafeHTML", Gi.resultType = 1;
4768
+ const Sh = ln(Gi);
4769
4769
  /*! @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 */
4770
4770
  const {
4771
4771
  entries: Ra,
@@ -4779,8 +4779,8 @@ let {
4779
4779
  seal: se,
4780
4780
  create: La
4781
4781
  } = Object, {
4782
- apply: Gi,
4783
- construct: Zi
4782
+ apply: Zi,
4783
+ construct: Yi
4784
4784
  } = typeof Reflect < "u" && Reflect;
4785
4785
  K || (K = function(e) {
4786
4786
  return e;
@@ -4788,26 +4788,26 @@ K || (K = function(e) {
4788
4788
  se || (se = function(e) {
4789
4789
  return e;
4790
4790
  });
4791
- Gi || (Gi = function(e, t, i) {
4791
+ Zi || (Zi = function(e, t, i) {
4792
4792
  return e.apply(t, i);
4793
4793
  });
4794
- Zi || (Zi = function(e, t) {
4794
+ Yi || (Yi = function(e, t) {
4795
4795
  return new e(...t);
4796
4796
  });
4797
- const $n = J(Array.prototype.forEach), Ah = J(Array.prototype.lastIndexOf), po = J(Array.prototype.pop), It = J(Array.prototype.push), Th = J(Array.prototype.splice), Cn = J(String.prototype.toLowerCase), Ei = J(String.prototype.toString), fo = J(String.prototype.match), Pt = J(String.prototype.replace), Oh = J(String.prototype.indexOf), Rh = J(String.prototype.trim), ce = J(Object.prototype.hasOwnProperty), Z = J(RegExp.prototype.test), Mt = Lh(TypeError);
4797
+ const $n = J(Array.prototype.forEach), Ah = J(Array.prototype.lastIndexOf), po = J(Array.prototype.pop), Pt = J(Array.prototype.push), Th = J(Array.prototype.splice), Cn = J(String.prototype.toLowerCase), _i = J(String.prototype.toString), fo = J(String.prototype.match), Mt = J(String.prototype.replace), Oh = J(String.prototype.indexOf), Rh = J(String.prototype.trim), ce = J(Object.prototype.hasOwnProperty), Z = J(RegExp.prototype.test), Nt = Lh(TypeError);
4798
4798
  function J(n) {
4799
4799
  return function(e) {
4800
4800
  e instanceof RegExp && (e.lastIndex = 0);
4801
4801
  for (var t = arguments.length, i = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
4802
4802
  i[s - 1] = arguments[s];
4803
- return Gi(n, e, i);
4803
+ return Zi(n, e, i);
4804
4804
  };
4805
4805
  }
4806
4806
  function Lh(n) {
4807
4807
  return function() {
4808
4808
  for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
4809
4809
  t[i] = arguments[i];
4810
- return Zi(n, t);
4810
+ return Yi(n, t);
4811
4811
  };
4812
4812
  }
4813
4813
  function x(n, e) {
@@ -4835,7 +4835,7 @@ function Ee(n) {
4835
4835
  ce(n, t) && (Array.isArray(i) ? e[t] = Ih(i) : i && typeof i == "object" && i.constructor === Object ? e[t] = Ee(i) : e[t] = i);
4836
4836
  return e;
4837
4837
  }
4838
- function Nt(n, e) {
4838
+ function Ut(n, e) {
4839
4839
  for (; n !== null; ) {
4840
4840
  const i = _h(n, e);
4841
4841
  if (i) {
@@ -4851,7 +4851,7 @@ function Nt(n, e) {
4851
4851
  }
4852
4852
  return t;
4853
4853
  }
4854
- const go = K(["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 = K(["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 = K(["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"]), Ph = K(["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 = K(["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"]), Mh = K(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), mo = K(["#text"]), vo = K(["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 = K(["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"]), bo = K(["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"]), wn = K(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Nh = se(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Uh = se(/<%[\w\W]*|[\w\W]*%>/gm), Dh = se(/\$\{[\w\W]*/gm), Hh = se(/^data-[\-\w.\u00B7-\uFFFF]+$/), zh = se(/^aria-[\-\w]+$/), Ia = se(
4854
+ const go = K(["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"]), Ai = K(["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"]), Ti = K(["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"]), Ph = K(["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"]), Oi = K(["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"]), Mh = K(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), mo = K(["#text"]), vo = K(["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"]), Ri = K(["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"]), bo = K(["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"]), wn = K(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Nh = se(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Uh = se(/<%[\w\W]*|[\w\W]*%>/gm), Dh = se(/\$\{[\w\W]*/gm), Hh = se(/^data-[\-\w.\u00B7-\uFFFF]+$/), zh = se(/^aria-[\-\w]+$/), Ia = se(
4855
4855
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
4856
4856
  // eslint-disable-line no-useless-escape
4857
4857
  ), Fh = se(/^(?:\w+script|data):/i), jh = se(
@@ -4871,7 +4871,7 @@ var yo = /* @__PURE__ */ Object.freeze({
4871
4871
  MUSTACHE_EXPR: Nh,
4872
4872
  TMPLIT_EXPR: Dh
4873
4873
  });
4874
- const Ut = {
4874
+ const Dt = {
4875
4875
  element: 1,
4876
4876
  text: 3,
4877
4877
  // Deprecated
@@ -4915,7 +4915,7 @@ const Ut = {
4915
4915
  function Ma() {
4916
4916
  let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : qh();
4917
4917
  const e = (b) => Ma(b);
4918
- if (e.version = "3.2.6", e.removed = [], !n || !n.document || n.document.nodeType !== Ut.document || !n.Element)
4918
+ if (e.version = "3.2.6", e.removed = [], !n || !n.document || n.document.nodeType !== Dt.document || !n.Element)
4919
4919
  return e.isSupported = !1, e;
4920
4920
  let {
4921
4921
  document: t
@@ -4930,22 +4930,22 @@ function Ma() {
4930
4930
  HTMLFormElement: p,
4931
4931
  DOMParser: d,
4932
4932
  trustedTypes: g
4933
- } = n, m = c.prototype, $ = Nt(m, "cloneNode"), $e = Nt(m, "remove"), le = Nt(m, "nextSibling"), Me = Nt(m, "childNodes"), Fe = Nt(m, "parentNode");
4933
+ } = n, m = c.prototype, $ = Ut(m, "cloneNode"), we = Ut(m, "remove"), le = Ut(m, "nextSibling"), Me = Ut(m, "childNodes"), je = Ut(m, "parentNode");
4934
4934
  if (typeof o == "function") {
4935
4935
  const b = t.createElement("template");
4936
4936
  b.content && b.content.ownerDocument && (t = b.content.ownerDocument);
4937
4937
  }
4938
- let M, je = "";
4938
+ let M, Be = "";
4939
4939
  const {
4940
- implementation: Be,
4941
- createNodeIterator: qe,
4940
+ implementation: qe,
4941
+ createNodeIterator: Ve,
4942
4942
  createDocumentFragment: Ja,
4943
4943
  getElementsByTagName: el
4944
4944
  } = t, {
4945
4945
  importNode: tl
4946
4946
  } = i;
4947
4947
  let W = $o();
4948
- e.isSupported = typeof Ra == "function" && typeof Fe == "function" && Be && Be.createHTMLDocument !== void 0;
4948
+ e.isSupported = typeof Ra == "function" && typeof je == "function" && qe && qe.createHTMLDocument !== void 0;
4949
4949
  const {
4950
4950
  MUSTACHE_EXPR: ni,
4951
4951
  ERB_EXPR: ii,
@@ -4953,15 +4953,15 @@ function Ma() {
4953
4953
  DATA_ATTR: nl,
4954
4954
  ARIA_ATTR: il,
4955
4955
  IS_SCRIPT_OR_DATA: sl,
4956
- ATTR_WHITESPACE: Xs,
4956
+ ATTR_WHITESPACE: Ks,
4957
4957
  CUSTOM_ELEMENT: rl
4958
4958
  } = yo;
4959
4959
  let {
4960
- IS_ALLOWED_URI: Ks
4960
+ IS_ALLOWED_URI: Js
4961
4961
  } = yo, N = null;
4962
- const Js = x({}, [...go, ..._i, ...Ai, ...Ti, ...mo]);
4962
+ const er = x({}, [...go, ...Ai, ...Ti, ...Oi, ...mo]);
4963
4963
  let D = null;
4964
- const er = x({}, [...vo, ...Oi, ...bo, ...wn]);
4964
+ const tr = x({}, [...vo, ...Ri, ...bo, ...wn]);
4965
4965
  let L = Object.seal(La(null, {
4966
4966
  tagNameCheck: {
4967
4967
  writable: !0,
@@ -4981,68 +4981,68 @@ function Ma() {
4981
4981
  enumerable: !0,
4982
4982
  value: !1
4983
4983
  }
4984
- })), At = null, ri = null, tr = !0, oi = !0, nr = !1, ir = !0, st = !1, hn = !0, Ve = !1, ai = !1, li = !1, rt = !1, dn = !1, pn = !1, sr = !0, rr = !1;
4984
+ })), Tt = null, ri = null, nr = !0, oi = !0, ir = !1, sr = !0, rt = !1, hn = !0, We = !1, ai = !1, li = !1, ot = !1, dn = !1, pn = !1, rr = !0, or = !1;
4985
4985
  const ol = "user-content-";
4986
- let ci = !0, Tt = !1, ot = {}, at = null;
4987
- const or = 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"]);
4988
- let ar = null;
4989
- const lr = x({}, ["audio", "video", "img", "source", "image", "track"]);
4986
+ let ci = !0, Ot = !1, at = {}, lt = null;
4987
+ const ar = 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"]);
4988
+ let lr = null;
4989
+ const cr = x({}, ["audio", "video", "img", "source", "image", "track"]);
4990
4990
  let ui = null;
4991
- const cr = x({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), fn = "http://www.w3.org/1998/Math/MathML", gn = "http://www.w3.org/2000/svg", we = "http://www.w3.org/1999/xhtml";
4992
- let lt = we, hi = !1, di = null;
4993
- const al = x({}, [fn, gn, we], Ei);
4991
+ const ur = x({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), fn = "http://www.w3.org/1998/Math/MathML", gn = "http://www.w3.org/2000/svg", xe = "http://www.w3.org/1999/xhtml";
4992
+ let ct = xe, hi = !1, di = null;
4993
+ const al = x({}, [fn, gn, xe], _i);
4994
4994
  let mn = x({}, ["mi", "mo", "mn", "ms", "mtext"]), vn = x({}, ["annotation-xml"]);
4995
4995
  const ll = x({}, ["title", "style", "font", "a", "script"]);
4996
- let Ot = null;
4996
+ let Rt = null;
4997
4997
  const cl = ["application/xhtml+xml", "text/html"], ul = "text/html";
4998
- let U = null, ct = null;
4999
- const hl = t.createElement("form"), ur = function(h) {
4998
+ let U = null, ut = null;
4999
+ const hl = t.createElement("form"), hr = function(h) {
5000
5000
  return h instanceof RegExp || h instanceof Function;
5001
5001
  }, pi = function() {
5002
5002
  let h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
5003
- if (!(ct && ct === h)) {
5004
- if ((!h || typeof h != "object") && (h = {}), h = Ee(h), Ot = // eslint-disable-next-line unicorn/prefer-includes
5005
- cl.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? ul : h.PARSER_MEDIA_TYPE, U = Ot === "application/xhtml+xml" ? Ei : Cn, N = ce(h, "ALLOWED_TAGS") ? x({}, h.ALLOWED_TAGS, U) : Js, D = ce(h, "ALLOWED_ATTR") ? x({}, h.ALLOWED_ATTR, U) : er, di = ce(h, "ALLOWED_NAMESPACES") ? x({}, h.ALLOWED_NAMESPACES, Ei) : al, ui = ce(h, "ADD_URI_SAFE_ATTR") ? x(Ee(cr), h.ADD_URI_SAFE_ATTR, U) : cr, ar = ce(h, "ADD_DATA_URI_TAGS") ? x(Ee(lr), h.ADD_DATA_URI_TAGS, U) : lr, at = ce(h, "FORBID_CONTENTS") ? x({}, h.FORBID_CONTENTS, U) : or, At = ce(h, "FORBID_TAGS") ? x({}, h.FORBID_TAGS, U) : Ee({}), ri = ce(h, "FORBID_ATTR") ? x({}, h.FORBID_ATTR, U) : Ee({}), ot = ce(h, "USE_PROFILES") ? h.USE_PROFILES : !1, tr = h.ALLOW_ARIA_ATTR !== !1, oi = h.ALLOW_DATA_ATTR !== !1, nr = h.ALLOW_UNKNOWN_PROTOCOLS || !1, ir = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, st = h.SAFE_FOR_TEMPLATES || !1, hn = h.SAFE_FOR_XML !== !1, Ve = h.WHOLE_DOCUMENT || !1, rt = h.RETURN_DOM || !1, dn = h.RETURN_DOM_FRAGMENT || !1, pn = h.RETURN_TRUSTED_TYPE || !1, li = h.FORCE_BODY || !1, sr = h.SANITIZE_DOM !== !1, rr = h.SANITIZE_NAMED_PROPS || !1, ci = h.KEEP_CONTENT !== !1, Tt = h.IN_PLACE || !1, Ks = h.ALLOWED_URI_REGEXP || Ia, lt = h.NAMESPACE || we, mn = h.MATHML_TEXT_INTEGRATION_POINTS || mn, vn = h.HTML_INTEGRATION_POINTS || vn, L = h.CUSTOM_ELEMENT_HANDLING || {}, h.CUSTOM_ELEMENT_HANDLING && ur(h.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (L.tagNameCheck = h.CUSTOM_ELEMENT_HANDLING.tagNameCheck), h.CUSTOM_ELEMENT_HANDLING && ur(h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (L.attributeNameCheck = h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), h.CUSTOM_ELEMENT_HANDLING && typeof h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (L.allowCustomizedBuiltInElements = h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), st && (oi = !1), dn && (rt = !0), ot && (N = x({}, mo), D = [], ot.html === !0 && (x(N, go), x(D, vo)), ot.svg === !0 && (x(N, _i), x(D, Oi), x(D, wn)), ot.svgFilters === !0 && (x(N, Ai), x(D, Oi), x(D, wn)), ot.mathMl === !0 && (x(N, Ti), x(D, bo), x(D, wn))), h.ADD_TAGS && (N === Js && (N = Ee(N)), x(N, h.ADD_TAGS, U)), h.ADD_ATTR && (D === er && (D = Ee(D)), x(D, h.ADD_ATTR, U)), h.ADD_URI_SAFE_ATTR && x(ui, h.ADD_URI_SAFE_ATTR, U), h.FORBID_CONTENTS && (at === or && (at = Ee(at)), x(at, h.FORBID_CONTENTS, U)), ci && (N["#text"] = !0), Ve && x(N, ["html", "head", "body"]), N.table && (x(N, ["tbody"]), delete At.tbody), h.TRUSTED_TYPES_POLICY) {
5003
+ if (!(ut && ut === h)) {
5004
+ if ((!h || typeof h != "object") && (h = {}), h = Ee(h), Rt = // eslint-disable-next-line unicorn/prefer-includes
5005
+ cl.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? ul : h.PARSER_MEDIA_TYPE, U = Rt === "application/xhtml+xml" ? _i : Cn, N = ce(h, "ALLOWED_TAGS") ? x({}, h.ALLOWED_TAGS, U) : er, D = ce(h, "ALLOWED_ATTR") ? x({}, h.ALLOWED_ATTR, U) : tr, di = ce(h, "ALLOWED_NAMESPACES") ? x({}, h.ALLOWED_NAMESPACES, _i) : al, ui = ce(h, "ADD_URI_SAFE_ATTR") ? x(Ee(ur), h.ADD_URI_SAFE_ATTR, U) : ur, lr = ce(h, "ADD_DATA_URI_TAGS") ? x(Ee(cr), h.ADD_DATA_URI_TAGS, U) : cr, lt = ce(h, "FORBID_CONTENTS") ? x({}, h.FORBID_CONTENTS, U) : ar, Tt = ce(h, "FORBID_TAGS") ? x({}, h.FORBID_TAGS, U) : Ee({}), ri = ce(h, "FORBID_ATTR") ? x({}, h.FORBID_ATTR, U) : Ee({}), at = ce(h, "USE_PROFILES") ? h.USE_PROFILES : !1, nr = h.ALLOW_ARIA_ATTR !== !1, oi = h.ALLOW_DATA_ATTR !== !1, ir = h.ALLOW_UNKNOWN_PROTOCOLS || !1, sr = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, rt = h.SAFE_FOR_TEMPLATES || !1, hn = h.SAFE_FOR_XML !== !1, We = h.WHOLE_DOCUMENT || !1, ot = h.RETURN_DOM || !1, dn = h.RETURN_DOM_FRAGMENT || !1, pn = h.RETURN_TRUSTED_TYPE || !1, li = h.FORCE_BODY || !1, rr = h.SANITIZE_DOM !== !1, or = h.SANITIZE_NAMED_PROPS || !1, ci = h.KEEP_CONTENT !== !1, Ot = h.IN_PLACE || !1, Js = h.ALLOWED_URI_REGEXP || Ia, ct = h.NAMESPACE || xe, mn = h.MATHML_TEXT_INTEGRATION_POINTS || mn, vn = h.HTML_INTEGRATION_POINTS || vn, L = h.CUSTOM_ELEMENT_HANDLING || {}, h.CUSTOM_ELEMENT_HANDLING && hr(h.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (L.tagNameCheck = h.CUSTOM_ELEMENT_HANDLING.tagNameCheck), h.CUSTOM_ELEMENT_HANDLING && hr(h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (L.attributeNameCheck = h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), h.CUSTOM_ELEMENT_HANDLING && typeof h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (L.allowCustomizedBuiltInElements = h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), rt && (oi = !1), dn && (ot = !0), at && (N = x({}, mo), D = [], at.html === !0 && (x(N, go), x(D, vo)), at.svg === !0 && (x(N, Ai), x(D, Ri), x(D, wn)), at.svgFilters === !0 && (x(N, Ti), x(D, Ri), x(D, wn)), at.mathMl === !0 && (x(N, Oi), x(D, bo), x(D, wn))), h.ADD_TAGS && (N === er && (N = Ee(N)), x(N, h.ADD_TAGS, U)), h.ADD_ATTR && (D === tr && (D = Ee(D)), x(D, h.ADD_ATTR, U)), h.ADD_URI_SAFE_ATTR && x(ui, h.ADD_URI_SAFE_ATTR, U), h.FORBID_CONTENTS && (lt === ar && (lt = Ee(lt)), x(lt, h.FORBID_CONTENTS, U)), ci && (N["#text"] = !0), We && x(N, ["html", "head", "body"]), N.table && (x(N, ["tbody"]), delete Tt.tbody), h.TRUSTED_TYPES_POLICY) {
5006
5006
  if (typeof h.TRUSTED_TYPES_POLICY.createHTML != "function")
5007
- throw Mt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
5007
+ throw Nt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
5008
5008
  if (typeof h.TRUSTED_TYPES_POLICY.createScriptURL != "function")
5009
- throw Mt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
5010
- M = h.TRUSTED_TYPES_POLICY, je = M.createHTML("");
5009
+ throw Nt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
5010
+ M = h.TRUSTED_TYPES_POLICY, Be = M.createHTML("");
5011
5011
  } else
5012
- M === void 0 && (M = Vh(g, s)), M !== null && typeof je == "string" && (je = M.createHTML(""));
5013
- K && K(h), ct = h;
5012
+ M === void 0 && (M = Vh(g, s)), M !== null && typeof Be == "string" && (Be = M.createHTML(""));
5013
+ K && K(h), ut = h;
5014
5014
  }
5015
- }, hr = x({}, [..._i, ...Ai, ...Ph]), dr = x({}, [...Ti, ...Mh]), dl = function(h) {
5016
- let f = Fe(h);
5015
+ }, dr = x({}, [...Ai, ...Ti, ...Ph]), pr = x({}, [...Oi, ...Mh]), dl = function(h) {
5016
+ let f = je(h);
5017
5017
  (!f || !f.tagName) && (f = {
5018
- namespaceURI: lt,
5018
+ namespaceURI: ct,
5019
5019
  tagName: "template"
5020
5020
  });
5021
5021
  const v = Cn(h.tagName), O = Cn(f.tagName);
5022
- return di[h.namespaceURI] ? h.namespaceURI === gn ? f.namespaceURI === we ? v === "svg" : f.namespaceURI === fn ? v === "svg" && (O === "annotation-xml" || mn[O]) : !!hr[v] : h.namespaceURI === fn ? f.namespaceURI === we ? v === "math" : f.namespaceURI === gn ? v === "math" && vn[O] : !!dr[v] : h.namespaceURI === we ? f.namespaceURI === gn && !vn[O] || f.namespaceURI === fn && !mn[O] ? !1 : !dr[v] && (ll[v] || !hr[v]) : !!(Ot === "application/xhtml+xml" && di[h.namespaceURI]) : !1;
5022
+ return di[h.namespaceURI] ? h.namespaceURI === gn ? f.namespaceURI === xe ? v === "svg" : f.namespaceURI === fn ? v === "svg" && (O === "annotation-xml" || mn[O]) : !!dr[v] : h.namespaceURI === fn ? f.namespaceURI === xe ? v === "math" : f.namespaceURI === gn ? v === "math" && vn[O] : !!pr[v] : h.namespaceURI === xe ? f.namespaceURI === gn && !vn[O] || f.namespaceURI === fn && !mn[O] ? !1 : !pr[v] && (ll[v] || !dr[v]) : !!(Rt === "application/xhtml+xml" && di[h.namespaceURI]) : !1;
5023
5023
  }, fe = function(h) {
5024
- It(e.removed, {
5024
+ Pt(e.removed, {
5025
5025
  element: h
5026
5026
  });
5027
5027
  try {
5028
- Fe(h).removeChild(h);
5028
+ je(h).removeChild(h);
5029
5029
  } catch {
5030
- $e(h);
5030
+ we(h);
5031
5031
  }
5032
- }, ut = function(h, f) {
5032
+ }, ht = function(h, f) {
5033
5033
  try {
5034
- It(e.removed, {
5034
+ Pt(e.removed, {
5035
5035
  attribute: f.getAttributeNode(h),
5036
5036
  from: f
5037
5037
  });
5038
5038
  } catch {
5039
- It(e.removed, {
5039
+ Pt(e.removed, {
5040
5040
  attribute: null,
5041
5041
  from: f
5042
5042
  });
5043
5043
  }
5044
5044
  if (f.removeAttribute(h), h === "is")
5045
- if (rt || dn)
5045
+ if (ot || dn)
5046
5046
  try {
5047
5047
  fe(f);
5048
5048
  } catch {
@@ -5052,7 +5052,7 @@ function Ma() {
5052
5052
  f.setAttribute(h, "");
5053
5053
  } catch {
5054
5054
  }
5055
- }, pr = function(h) {
5055
+ }, fr = function(h) {
5056
5056
  let f = null, v = null;
5057
5057
  if (li)
5058
5058
  h = "<remove></remove>" + h;
@@ -5060,24 +5060,24 @@ function Ma() {
5060
5060
  const I = fo(h, /^[\r\n\t ]+/);
5061
5061
  v = I && I[0];
5062
5062
  }
5063
- Ot === "application/xhtml+xml" && lt === we && (h = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + h + "</body></html>");
5063
+ Rt === "application/xhtml+xml" && ct === xe && (h = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + h + "</body></html>");
5064
5064
  const O = M ? M.createHTML(h) : h;
5065
- if (lt === we)
5065
+ if (ct === xe)
5066
5066
  try {
5067
- f = new d().parseFromString(O, Ot);
5067
+ f = new d().parseFromString(O, Rt);
5068
5068
  } catch {
5069
5069
  }
5070
5070
  if (!f || !f.documentElement) {
5071
- f = Be.createDocument(lt, "template", null);
5071
+ f = qe.createDocument(ct, "template", null);
5072
5072
  try {
5073
- f.documentElement.innerHTML = hi ? je : O;
5073
+ f.documentElement.innerHTML = hi ? Be : O;
5074
5074
  } catch {
5075
5075
  }
5076
5076
  }
5077
5077
  const j = f.body || f.documentElement;
5078
- return h && v && j.insertBefore(t.createTextNode(v), j.childNodes[0] || null), lt === we ? el.call(f, Ve ? "html" : "body")[0] : Ve ? f.documentElement : j;
5079
- }, fr = function(h) {
5080
- return qe.call(
5078
+ return h && v && j.insertBefore(t.createTextNode(v), j.childNodes[0] || null), ct === xe ? el.call(f, We ? "html" : "body")[0] : We ? f.documentElement : j;
5079
+ }, gr = function(h) {
5080
+ return Ve.call(
5081
5081
  h.ownerDocument || h,
5082
5082
  h,
5083
5083
  // eslint-disable-next-line no-bitwise
@@ -5086,62 +5086,62 @@ function Ma() {
5086
5086
  );
5087
5087
  }, fi = function(h) {
5088
5088
  return h instanceof p && (typeof h.nodeName != "string" || typeof h.textContent != "string" || typeof h.removeChild != "function" || !(h.attributes instanceof u) || typeof h.removeAttribute != "function" || typeof h.setAttribute != "function" || typeof h.namespaceURI != "string" || typeof h.insertBefore != "function" || typeof h.hasChildNodes != "function");
5089
- }, gr = function(h) {
5089
+ }, mr = function(h) {
5090
5090
  return typeof a == "function" && h instanceof a;
5091
5091
  };
5092
- function xe(b, h, f) {
5092
+ function ke(b, h, f) {
5093
5093
  $n(b, (v) => {
5094
- v.call(e, h, f, ct);
5094
+ v.call(e, h, f, ut);
5095
5095
  });
5096
5096
  }
5097
- const mr = function(h) {
5097
+ const vr = function(h) {
5098
5098
  let f = null;
5099
- if (xe(W.beforeSanitizeElements, h, null), fi(h))
5099
+ if (ke(W.beforeSanitizeElements, h, null), fi(h))
5100
5100
  return fe(h), !0;
5101
5101
  const v = U(h.nodeName);
5102
- if (xe(W.uponSanitizeElement, h, {
5102
+ if (ke(W.uponSanitizeElement, h, {
5103
5103
  tagName: v,
5104
5104
  allowedTags: N
5105
- }), hn && h.hasChildNodes() && !gr(h.firstElementChild) && Z(/<[/\w!]/g, h.innerHTML) && Z(/<[/\w!]/g, h.textContent) || h.nodeType === Ut.progressingInstruction || hn && h.nodeType === Ut.comment && Z(/<[/\w]/g, h.data))
5105
+ }), hn && h.hasChildNodes() && !mr(h.firstElementChild) && Z(/<[/\w!]/g, h.innerHTML) && Z(/<[/\w!]/g, h.textContent) || h.nodeType === Dt.progressingInstruction || hn && h.nodeType === Dt.comment && Z(/<[/\w]/g, h.data))
5106
5106
  return fe(h), !0;
5107
- if (!N[v] || At[v]) {
5108
- if (!At[v] && br(v) && (L.tagNameCheck instanceof RegExp && Z(L.tagNameCheck, v) || L.tagNameCheck instanceof Function && L.tagNameCheck(v)))
5107
+ if (!N[v] || Tt[v]) {
5108
+ if (!Tt[v] && yr(v) && (L.tagNameCheck instanceof RegExp && Z(L.tagNameCheck, v) || L.tagNameCheck instanceof Function && L.tagNameCheck(v)))
5109
5109
  return !1;
5110
- if (ci && !at[v]) {
5111
- const O = Fe(h) || h.parentNode, j = Me(h) || h.childNodes;
5110
+ if (ci && !lt[v]) {
5111
+ const O = je(h) || h.parentNode, j = Me(h) || h.childNodes;
5112
5112
  if (j && O) {
5113
5113
  const I = j.length;
5114
5114
  for (let ee = I - 1; ee >= 0; --ee) {
5115
- const ke = $(j[ee], !0);
5116
- ke.__removalCount = (h.__removalCount || 0) + 1, O.insertBefore(ke, le(h));
5115
+ const Se = $(j[ee], !0);
5116
+ Se.__removalCount = (h.__removalCount || 0) + 1, O.insertBefore(Se, le(h));
5117
5117
  }
5118
5118
  }
5119
5119
  }
5120
5120
  return fe(h), !0;
5121
5121
  }
5122
- return h instanceof c && !dl(h) || (v === "noscript" || v === "noembed" || v === "noframes") && Z(/<\/no(script|embed|frames)/i, h.innerHTML) ? (fe(h), !0) : (st && h.nodeType === Ut.text && (f = h.textContent, $n([ni, ii, si], (O) => {
5123
- f = Pt(f, O, " ");
5124
- }), h.textContent !== f && (It(e.removed, {
5122
+ return h instanceof c && !dl(h) || (v === "noscript" || v === "noembed" || v === "noframes") && Z(/<\/no(script|embed|frames)/i, h.innerHTML) ? (fe(h), !0) : (rt && h.nodeType === Dt.text && (f = h.textContent, $n([ni, ii, si], (O) => {
5123
+ f = Mt(f, O, " ");
5124
+ }), h.textContent !== f && (Pt(e.removed, {
5125
5125
  element: h.cloneNode()
5126
- }), h.textContent = f)), xe(W.afterSanitizeElements, h, null), !1);
5127
- }, vr = function(h, f, v) {
5128
- if (sr && (f === "id" || f === "name") && (v in t || v in hl))
5126
+ }), h.textContent = f)), ke(W.afterSanitizeElements, h, null), !1);
5127
+ }, br = function(h, f, v) {
5128
+ if (rr && (f === "id" || f === "name") && (v in t || v in hl))
5129
5129
  return !1;
5130
5130
  if (!(oi && !ri[f] && Z(nl, f))) {
5131
- if (!(tr && Z(il, f))) {
5131
+ if (!(nr && Z(il, f))) {
5132
5132
  if (!D[f] || ri[f]) {
5133
5133
  if (
5134
5134
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
5135
5135
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
5136
5136
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
5137
- !(br(h) && (L.tagNameCheck instanceof RegExp && Z(L.tagNameCheck, h) || L.tagNameCheck instanceof Function && L.tagNameCheck(h)) && (L.attributeNameCheck instanceof RegExp && Z(L.attributeNameCheck, f) || L.attributeNameCheck instanceof Function && L.attributeNameCheck(f)) || // Alternative, second condition checks if it's an `is`-attribute, AND
5137
+ !(yr(h) && (L.tagNameCheck instanceof RegExp && Z(L.tagNameCheck, h) || L.tagNameCheck instanceof Function && L.tagNameCheck(h)) && (L.attributeNameCheck instanceof RegExp && Z(L.attributeNameCheck, f) || L.attributeNameCheck instanceof Function && L.attributeNameCheck(f)) || // Alternative, second condition checks if it's an `is`-attribute, AND
5138
5138
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
5139
5139
  f === "is" && L.allowCustomizedBuiltInElements && (L.tagNameCheck instanceof RegExp && Z(L.tagNameCheck, v) || L.tagNameCheck instanceof Function && L.tagNameCheck(v)))
5140
5140
  ) return !1;
5141
5141
  } else if (!ui[f]) {
5142
- if (!Z(Ks, Pt(v, Xs, ""))) {
5143
- if (!((f === "src" || f === "xlink:href" || f === "href") && h !== "script" && Oh(v, "data:") === 0 && ar[h])) {
5144
- if (!(nr && !Z(sl, Pt(v, Xs, "")))) {
5142
+ if (!Z(Js, Mt(v, Ks, ""))) {
5143
+ if (!((f === "src" || f === "xlink:href" || f === "href") && h !== "script" && Oh(v, "data:") === 0 && lr[h])) {
5144
+ if (!(ir && !Z(sl, Mt(v, Ks, "")))) {
5145
5145
  if (v)
5146
5146
  return !1;
5147
5147
  }
@@ -5151,10 +5151,10 @@ function Ma() {
5151
5151
  }
5152
5152
  }
5153
5153
  return !0;
5154
- }, br = function(h) {
5155
- return h !== "annotation-xml" && fo(h, rl);
5156
5154
  }, yr = function(h) {
5157
- xe(W.beforeSanitizeAttributes, h, null);
5155
+ return h !== "annotation-xml" && fo(h, rl);
5156
+ }, $r = function(h) {
5157
+ ke(W.beforeSanitizeAttributes, h, null);
5158
5158
  const {
5159
5159
  attributes: f
5160
5160
  } = h;
@@ -5172,33 +5172,33 @@ function Ma() {
5172
5172
  const j = f[O], {
5173
5173
  name: I,
5174
5174
  namespaceURI: ee,
5175
- value: ke
5176
- } = j, Rt = U(I), gi = ke;
5175
+ value: Se
5176
+ } = j, Lt = U(I), gi = Se;
5177
5177
  let B = I === "value" ? gi : Rh(gi);
5178
- if (v.attrName = Rt, v.attrValue = B, v.keepAttr = !0, v.forceKeepAttr = void 0, xe(W.uponSanitizeAttribute, h, v), B = v.attrValue, rr && (Rt === "id" || Rt === "name") && (ut(I, h), B = ol + B), hn && Z(/((--!?|])>)|<\/(style|title)/i, B)) {
5179
- ut(I, h);
5178
+ if (v.attrName = Lt, v.attrValue = B, v.keepAttr = !0, v.forceKeepAttr = void 0, ke(W.uponSanitizeAttribute, h, v), B = v.attrValue, or && (Lt === "id" || Lt === "name") && (ht(I, h), B = ol + B), hn && Z(/((--!?|])>)|<\/(style|title)/i, B)) {
5179
+ ht(I, h);
5180
5180
  continue;
5181
5181
  }
5182
5182
  if (v.forceKeepAttr)
5183
5183
  continue;
5184
5184
  if (!v.keepAttr) {
5185
- ut(I, h);
5185
+ ht(I, h);
5186
5186
  continue;
5187
5187
  }
5188
- if (!ir && Z(/\/>/i, B)) {
5189
- ut(I, h);
5188
+ if (!sr && Z(/\/>/i, B)) {
5189
+ ht(I, h);
5190
5190
  continue;
5191
5191
  }
5192
- st && $n([ni, ii, si], (wr) => {
5193
- B = Pt(B, wr, " ");
5192
+ rt && $n([ni, ii, si], (xr) => {
5193
+ B = Mt(B, xr, " ");
5194
5194
  });
5195
- const $r = U(h.nodeName);
5196
- if (!vr($r, Rt, B)) {
5197
- ut(I, h);
5195
+ const wr = U(h.nodeName);
5196
+ if (!br(wr, Lt, B)) {
5197
+ ht(I, h);
5198
5198
  continue;
5199
5199
  }
5200
5200
  if (M && typeof g == "object" && typeof g.getAttributeType == "function" && !ee)
5201
- switch (g.getAttributeType($r, Rt)) {
5201
+ switch (g.getAttributeType(wr, Lt)) {
5202
5202
  case "TrustedHTML": {
5203
5203
  B = M.createHTML(B);
5204
5204
  break;
@@ -5212,49 +5212,49 @@ function Ma() {
5212
5212
  try {
5213
5213
  ee ? h.setAttributeNS(ee, I, B) : h.setAttribute(I, B), fi(h) ? fe(h) : po(e.removed);
5214
5214
  } catch {
5215
- ut(I, h);
5215
+ ht(I, h);
5216
5216
  }
5217
5217
  }
5218
- xe(W.afterSanitizeAttributes, h, null);
5218
+ ke(W.afterSanitizeAttributes, h, null);
5219
5219
  }, pl = function b(h) {
5220
5220
  let f = null;
5221
- const v = fr(h);
5222
- for (xe(W.beforeSanitizeShadowDOM, h, null); f = v.nextNode(); )
5223
- xe(W.uponSanitizeShadowNode, f, null), mr(f), yr(f), f.content instanceof r && b(f.content);
5224
- xe(W.afterSanitizeShadowDOM, h, null);
5221
+ const v = gr(h);
5222
+ for (ke(W.beforeSanitizeShadowDOM, h, null); f = v.nextNode(); )
5223
+ ke(W.uponSanitizeShadowNode, f, null), vr(f), $r(f), f.content instanceof r && b(f.content);
5224
+ ke(W.afterSanitizeShadowDOM, h, null);
5225
5225
  };
5226
5226
  return e.sanitize = function(b) {
5227
5227
  let h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, f = null, v = null, O = null, j = null;
5228
- if (hi = !b, hi && (b = "<!-->"), typeof b != "string" && !gr(b))
5228
+ if (hi = !b, hi && (b = "<!-->"), typeof b != "string" && !mr(b))
5229
5229
  if (typeof b.toString == "function") {
5230
5230
  if (b = b.toString(), typeof b != "string")
5231
- throw Mt("dirty is not a string, aborting");
5231
+ throw Nt("dirty is not a string, aborting");
5232
5232
  } else
5233
- throw Mt("toString is not a function");
5233
+ throw Nt("toString is not a function");
5234
5234
  if (!e.isSupported)
5235
5235
  return b;
5236
- if (ai || pi(h), e.removed = [], typeof b == "string" && (Tt = !1), Tt) {
5236
+ if (ai || pi(h), e.removed = [], typeof b == "string" && (Ot = !1), Ot) {
5237
5237
  if (b.nodeName) {
5238
- const ke = U(b.nodeName);
5239
- if (!N[ke] || At[ke])
5240
- throw Mt("root node is forbidden and cannot be sanitized in-place");
5238
+ const Se = U(b.nodeName);
5239
+ if (!N[Se] || Tt[Se])
5240
+ throw Nt("root node is forbidden and cannot be sanitized in-place");
5241
5241
  }
5242
5242
  } else if (b instanceof a)
5243
- f = pr("<!---->"), v = f.ownerDocument.importNode(b, !0), v.nodeType === Ut.element && v.nodeName === "BODY" || v.nodeName === "HTML" ? f = v : f.appendChild(v);
5243
+ f = fr("<!---->"), v = f.ownerDocument.importNode(b, !0), v.nodeType === Dt.element && v.nodeName === "BODY" || v.nodeName === "HTML" ? f = v : f.appendChild(v);
5244
5244
  else {
5245
- if (!rt && !st && !Ve && // eslint-disable-next-line unicorn/prefer-includes
5245
+ if (!ot && !rt && !We && // eslint-disable-next-line unicorn/prefer-includes
5246
5246
  b.indexOf("<") === -1)
5247
5247
  return M && pn ? M.createHTML(b) : b;
5248
- if (f = pr(b), !f)
5249
- return rt ? null : pn ? je : "";
5248
+ if (f = fr(b), !f)
5249
+ return ot ? null : pn ? Be : "";
5250
5250
  }
5251
5251
  f && li && fe(f.firstChild);
5252
- const I = fr(Tt ? b : f);
5252
+ const I = gr(Ot ? b : f);
5253
5253
  for (; O = I.nextNode(); )
5254
- mr(O), yr(O), O.content instanceof r && pl(O.content);
5255
- if (Tt)
5254
+ vr(O), $r(O), O.content instanceof r && pl(O.content);
5255
+ if (Ot)
5256
5256
  return b;
5257
- if (rt) {
5257
+ if (ot) {
5258
5258
  if (dn)
5259
5259
  for (j = Ja.call(f.ownerDocument); f.firstChild; )
5260
5260
  j.appendChild(f.firstChild);
@@ -5262,22 +5262,22 @@ function Ma() {
5262
5262
  j = f;
5263
5263
  return (D.shadowroot || D.shadowrootmode) && (j = tl.call(i, j, !0)), j;
5264
5264
  }
5265
- let ee = Ve ? f.outerHTML : f.innerHTML;
5266
- return Ve && N["!doctype"] && f.ownerDocument && f.ownerDocument.doctype && f.ownerDocument.doctype.name && Z(Pa, f.ownerDocument.doctype.name) && (ee = "<!DOCTYPE " + f.ownerDocument.doctype.name + `>
5267
- ` + ee), st && $n([ni, ii, si], (ke) => {
5268
- ee = Pt(ee, ke, " ");
5265
+ let ee = We ? f.outerHTML : f.innerHTML;
5266
+ return We && N["!doctype"] && f.ownerDocument && f.ownerDocument.doctype && f.ownerDocument.doctype.name && Z(Pa, f.ownerDocument.doctype.name) && (ee = "<!DOCTYPE " + f.ownerDocument.doctype.name + `>
5267
+ ` + ee), rt && $n([ni, ii, si], (Se) => {
5268
+ ee = Mt(ee, Se, " ");
5269
5269
  }), M && pn ? M.createHTML(ee) : ee;
5270
5270
  }, e.setConfig = function() {
5271
5271
  let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
5272
5272
  pi(b), ai = !0;
5273
5273
  }, e.clearConfig = function() {
5274
- ct = null, ai = !1;
5274
+ ut = null, ai = !1;
5275
5275
  }, e.isValidAttribute = function(b, h, f) {
5276
- ct || pi({});
5276
+ ut || pi({});
5277
5277
  const v = U(b), O = U(h);
5278
- return vr(v, O, f);
5278
+ return br(v, O, f);
5279
5279
  }, e.addHook = function(b, h) {
5280
- typeof h == "function" && It(W[b], h);
5280
+ typeof h == "function" && Pt(W[b], h);
5281
5281
  }, e.removeHook = function(b, h) {
5282
5282
  if (h !== void 0) {
5283
5283
  const f = Ah(W[b], h);
@@ -5295,14 +5295,14 @@ var Na = Ma(), Wh = Object.defineProperty, Gh = (n, e, t, i) => {
5295
5295
  (o = n[r]) && (s = o(e, t, s) || s);
5296
5296
  return s && Wh(e, t, s), s;
5297
5297
  };
5298
- const Ds = class Ds extends A {
5298
+ const Hs = class Hs extends A {
5299
5299
  render() {
5300
5300
  return y`<div class="message-type-html">
5301
5301
  ${Sh(Na.sanitize(this.message.content))}
5302
5302
  </div>`;
5303
5303
  }
5304
5304
  };
5305
- Ds.styles = [
5305
+ Hs.styles = [
5306
5306
  R`
5307
5307
  :host {
5308
5308
  box-sizing: border-box;
@@ -5339,11 +5339,11 @@ Ds.styles = [
5339
5339
  }
5340
5340
  `
5341
5341
  ];
5342
- let zn = Ds;
5342
+ let zn = Hs;
5343
5343
  Gh([
5344
5344
  k({ attribute: !1 })
5345
5345
  ], zn.prototype, "message");
5346
- function ms() {
5346
+ function vs() {
5347
5347
  return {
5348
5348
  async: !1,
5349
5349
  breaks: !1,
@@ -5357,11 +5357,11 @@ function ms() {
5357
5357
  walkTokens: null
5358
5358
  };
5359
5359
  }
5360
- var nt = ms();
5360
+ var it = vs();
5361
5361
  function Ua(n) {
5362
- nt = n;
5362
+ it = n;
5363
5363
  }
5364
- var Bt = { exec: () => null };
5364
+ var qt = { exec: () => null };
5365
5365
  function E(n, e = "") {
5366
5366
  let t = typeof n == "string" ? n : n.source;
5367
5367
  const i = {
@@ -5430,10 +5430,10 @@ var Y = {
5430
5430
  fencesBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:\`\`\`|~~~)`),
5431
5431
  headingBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}#`),
5432
5432
  htmlBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}<(?:[a-z].*>|!--)`, "i")
5433
- }, Zh = /^(?:[ \t]*(?:\n|$))+/, Yh = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Qh = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, un = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Xh = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, vs = /(?:[*+-]|\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+|$)/, Ha = E(Da).replace(/bull/g, vs).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(), Kh = E(Da).replace(/bull/g, vs).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(), bs = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Jh = /^[^\n]+/, ys = /(?!\s*\])(?:\\.|[^\[\]\\])+/, ed = E(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", ys).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), td = E(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, vs).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", $s = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, nd = E(
5433
+ }, Zh = /^(?:[ \t]*(?:\n|$))+/, Yh = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Qh = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, un = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Xh = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, bs = /(?:[*+-]|\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+|$)/, Ha = E(Da).replace(/bull/g, bs).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(), Kh = E(Da).replace(/bull/g, bs).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(), ys = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Jh = /^[^\n]+/, $s = /(?!\s*\])(?:\\.|[^\[\]\\])+/, ed = E(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", $s).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), td = E(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, bs).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", ws = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, nd = E(
5434
5434
  "^ {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|$))",
5435
5435
  "i"
5436
- ).replace("comment", $s).replace("tag", ei).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), za = E(bs).replace("hr", un).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(), id = E(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", za).getRegex(), ws = {
5436
+ ).replace("comment", ws).replace("tag", ei).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), za = E(ys).replace("hr", un).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(), id = E(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", za).getRegex(), xs = {
5437
5437
  blockquote: id,
5438
5438
  code: Yh,
5439
5439
  def: ed,
@@ -5445,41 +5445,41 @@ var Y = {
5445
5445
  list: td,
5446
5446
  newline: Zh,
5447
5447
  paragraph: za,
5448
- table: Bt,
5448
+ table: qt,
5449
5449
  text: Jh
5450
5450
  }, wo = E(
5451
5451
  "^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"
5452
5452
  ).replace("hr", un).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ei).getRegex(), sd = {
5453
- ...ws,
5453
+ ...xs,
5454
5454
  lheading: Kh,
5455
5455
  table: wo,
5456
- paragraph: E(bs).replace("hr", un).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", wo).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()
5456
+ paragraph: E(ys).replace("hr", un).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", wo).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()
5457
5457
  }, rd = {
5458
- ...ws,
5458
+ ...xs,
5459
5459
  html: E(
5460
5460
  `^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`
5461
- ).replace("comment", $s).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
5461
+ ).replace("comment", ws).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
5462
5462
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
5463
5463
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
5464
- fences: Bt,
5464
+ fences: qt,
5465
5465
  // fences not supported
5466
5466
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
5467
- paragraph: E(bs).replace("hr", un).replace("heading", ` *#{1,6} *[^
5467
+ paragraph: E(ys).replace("hr", un).replace("heading", ` *#{1,6} *[^
5468
5468
  ]`).replace("lheading", Ha).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
5469
- }, od = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ad = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Fa = /^( {2,}|\\)\n(?!\s*$)/, ld = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, ti = /[\p{P}\p{S}]/u, xs = /[\s\p{P}\p{S}]/u, ja = /[^\s\p{P}\p{S}]/u, cd = E(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, xs).getRegex(), Ba = /(?!~)[\p{P}\p{S}]/u, ud = /(?!~)[\s\p{P}\p{S}]/u, hd = /(?:[^\s\p{P}\p{S}]|~)/u, dd = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, qa = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, pd = E(qa, "u").replace(/punct/g, ti).getRegex(), fd = E(qa, "u").replace(/punct/g, Ba).getRegex(), Va = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", gd = E(Va, "gu").replace(/notPunctSpace/g, ja).replace(/punctSpace/g, xs).replace(/punct/g, ti).getRegex(), md = E(Va, "gu").replace(/notPunctSpace/g, hd).replace(/punctSpace/g, ud).replace(/punct/g, Ba).getRegex(), vd = E(
5469
+ }, od = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ad = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Fa = /^( {2,}|\\)\n(?!\s*$)/, ld = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, ti = /[\p{P}\p{S}]/u, ks = /[\s\p{P}\p{S}]/u, ja = /[^\s\p{P}\p{S}]/u, cd = E(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, ks).getRegex(), Ba = /(?!~)[\p{P}\p{S}]/u, ud = /(?!~)[\s\p{P}\p{S}]/u, hd = /(?:[^\s\p{P}\p{S}]|~)/u, dd = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, qa = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, pd = E(qa, "u").replace(/punct/g, ti).getRegex(), fd = E(qa, "u").replace(/punct/g, Ba).getRegex(), Va = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", gd = E(Va, "gu").replace(/notPunctSpace/g, ja).replace(/punctSpace/g, ks).replace(/punct/g, ti).getRegex(), md = E(Va, "gu").replace(/notPunctSpace/g, hd).replace(/punctSpace/g, ud).replace(/punct/g, Ba).getRegex(), vd = E(
5470
5470
  "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)",
5471
5471
  "gu"
5472
- ).replace(/notPunctSpace/g, ja).replace(/punctSpace/g, xs).replace(/punct/g, ti).getRegex(), bd = E(/\\(punct)/, "gu").replace(/punct/g, ti).getRegex(), yd = E(/^<(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(), $d = E($s).replace("(?:-->|$)", "-->").getRegex(), wd = E(
5472
+ ).replace(/notPunctSpace/g, ja).replace(/punctSpace/g, ks).replace(/punct/g, ti).getRegex(), bd = E(/\\(punct)/, "gu").replace(/punct/g, ti).getRegex(), yd = E(/^<(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(), $d = E(ws).replace("(?:-->|$)", "-->").getRegex(), wd = E(
5473
5473
  "^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>"
5474
- ).replace("comment", $d).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Fn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, xd = E(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", Fn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Wa = E(/^!?\[(label)\]\[(ref)\]/).replace("label", Fn).replace("ref", ys).getRegex(), Ga = E(/^!?\[(ref)\](?:\[\])?/).replace("ref", ys).getRegex(), kd = E("reflink|nolink(?!\\()", "g").replace("reflink", Wa).replace("nolink", Ga).getRegex(), ks = {
5475
- _backpedal: Bt,
5474
+ ).replace("comment", $d).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Fn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, xd = E(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", Fn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Wa = E(/^!?\[(label)\]\[(ref)\]/).replace("label", Fn).replace("ref", $s).getRegex(), Ga = E(/^!?\[(ref)\](?:\[\])?/).replace("ref", $s).getRegex(), kd = E("reflink|nolink(?!\\()", "g").replace("reflink", Wa).replace("nolink", Ga).getRegex(), Ss = {
5475
+ _backpedal: qt,
5476
5476
  // only used for GFM url
5477
5477
  anyPunctuation: bd,
5478
5478
  autolink: yd,
5479
5479
  blockSkip: dd,
5480
5480
  br: Fa,
5481
5481
  code: ad,
5482
- del: Bt,
5482
+ del: qt,
5483
5483
  emStrongLDelim: pd,
5484
5484
  emStrongRDelimAst: gd,
5485
5485
  emStrongRDelimUnd: vd,
@@ -5491,13 +5491,13 @@ var Y = {
5491
5491
  reflinkSearch: kd,
5492
5492
  tag: wd,
5493
5493
  text: ld,
5494
- url: Bt
5494
+ url: qt
5495
5495
  }, Sd = {
5496
- ...ks,
5496
+ ...Ss,
5497
5497
  link: E(/^!?\[(label)\]\((.*?)\)/).replace("label", Fn).getRegex(),
5498
5498
  reflink: E(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Fn).getRegex()
5499
- }, Yi = {
5500
- ...ks,
5499
+ }, Qi = {
5500
+ ...Ss,
5501
5501
  emStrongRDelimAst: md,
5502
5502
  emStrongLDelim: fd,
5503
5503
  url: E(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
@@ -5505,16 +5505,16 @@ var Y = {
5505
5505
  del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,
5506
5506
  text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
5507
5507
  }, Cd = {
5508
- ...Yi,
5508
+ ...Qi,
5509
5509
  br: E(Fa).replace("{2,}", "*").getRegex(),
5510
- text: E(Yi.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
5510
+ text: E(Qi.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
5511
5511
  }, xn = {
5512
- normal: ws,
5512
+ normal: xs,
5513
5513
  gfm: sd,
5514
5514
  pedantic: rd
5515
- }, Dt = {
5516
- normal: ks,
5517
- gfm: Yi,
5515
+ }, Ht = {
5516
+ normal: Ss,
5517
+ gfm: Qi,
5518
5518
  breaks: Cd,
5519
5519
  pedantic: Sd
5520
5520
  }, Ed = {
@@ -5524,7 +5524,7 @@ var Y = {
5524
5524
  '"': "&quot;",
5525
5525
  "'": "&#39;"
5526
5526
  }, xo = (n) => Ed[n];
5527
- function ge(n, e) {
5527
+ function me(n, e) {
5528
5528
  if (e) {
5529
5529
  if (Y.escapeTest.test(n))
5530
5530
  return n.replace(Y.escapeReplace, xo);
@@ -5557,7 +5557,7 @@ function So(n, e) {
5557
5557
  i[s] = i[s].trim().replace(Y.slashPipe, "|");
5558
5558
  return i;
5559
5559
  }
5560
- function Ht(n, e, t) {
5560
+ function zt(n, e, t) {
5561
5561
  const i = n.length;
5562
5562
  if (i === 0)
5563
5563
  return "";
@@ -5614,7 +5614,7 @@ var jn = class {
5614
5614
  _(this, "rules");
5615
5615
  // set by the lexer
5616
5616
  _(this, "lexer");
5617
- this.options = n || nt;
5617
+ this.options = n || it;
5618
5618
  }
5619
5619
  space(n) {
5620
5620
  const e = this.rules.block.newline.exec(n);
@@ -5632,7 +5632,7 @@ var jn = class {
5632
5632
  type: "code",
5633
5633
  raw: e[0],
5634
5634
  codeBlockStyle: "indented",
5635
- text: this.options.pedantic ? t : Ht(t, `
5635
+ text: this.options.pedantic ? t : zt(t, `
5636
5636
  `)
5637
5637
  };
5638
5638
  }
@@ -5654,7 +5654,7 @@ var jn = class {
5654
5654
  if (e) {
5655
5655
  let t = e[2].trim();
5656
5656
  if (this.rules.other.endingHash.test(t)) {
5657
- const i = Ht(t, "#");
5657
+ const i = zt(t, "#");
5658
5658
  (this.options.pedantic || !i || this.rules.other.endingSpaceChar.test(i)) && (t = i.trim());
5659
5659
  }
5660
5660
  return {
@@ -5671,14 +5671,14 @@ var jn = class {
5671
5671
  if (e)
5672
5672
  return {
5673
5673
  type: "hr",
5674
- raw: Ht(e[0], `
5674
+ raw: zt(e[0], `
5675
5675
  `)
5676
5676
  };
5677
5677
  }
5678
5678
  blockquote(n) {
5679
5679
  const e = this.rules.block.blockquote.exec(n);
5680
5680
  if (e) {
5681
- let t = Ht(e[0], `
5681
+ let t = zt(e[0], `
5682
5682
  `).split(`
5683
5683
  `), i = "", s = "";
5684
5684
  const r = [];
@@ -5754,33 +5754,33 @@ ${u}` : u;
5754
5754
  `, 1)[0], g = !p.trim(), m = 0;
5755
5755
  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) && (l += d + `
5756
5756
  `, n = n.substring(d.length + 1), c = !0), !c) {
5757
- const le = this.rules.other.nextBulletRegex(m), Me = this.rules.other.hrRegex(m), Fe = this.rules.other.fencesBeginRegex(m), M = this.rules.other.headingBeginRegex(m), je = this.rules.other.htmlBeginRegex(m);
5757
+ const le = this.rules.other.nextBulletRegex(m), Me = this.rules.other.hrRegex(m), je = this.rules.other.fencesBeginRegex(m), M = this.rules.other.headingBeginRegex(m), Be = this.rules.other.htmlBeginRegex(m);
5758
5758
  for (; n; ) {
5759
- const Be = n.split(`
5759
+ const qe = n.split(`
5760
5760
  `, 1)[0];
5761
- let qe;
5762
- if (d = Be, this.options.pedantic ? (d = d.replace(this.rules.other.listReplaceNesting, " "), qe = d) : qe = d.replace(this.rules.other.tabCharGlobal, " "), Fe.test(d) || M.test(d) || je.test(d) || le.test(d) || Me.test(d))
5761
+ let Ve;
5762
+ if (d = qe, this.options.pedantic ? (d = d.replace(this.rules.other.listReplaceNesting, " "), Ve = d) : Ve = d.replace(this.rules.other.tabCharGlobal, " "), je.test(d) || M.test(d) || Be.test(d) || le.test(d) || Me.test(d))
5763
5763
  break;
5764
- if (qe.search(this.rules.other.nonSpaceChar) >= m || !d.trim())
5764
+ if (Ve.search(this.rules.other.nonSpaceChar) >= m || !d.trim())
5765
5765
  u += `
5766
- ` + qe.slice(m);
5766
+ ` + Ve.slice(m);
5767
5767
  else {
5768
- if (g || p.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || Fe.test(p) || M.test(p) || Me.test(p))
5768
+ if (g || p.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || je.test(p) || M.test(p) || Me.test(p))
5769
5769
  break;
5770
5770
  u += `
5771
5771
  ` + d;
5772
5772
  }
5773
- !g && !d.trim() && (g = !0), l += Be + `
5774
- `, n = n.substring(Be.length + 1), p = qe.slice(m);
5773
+ !g && !d.trim() && (g = !0), l += qe + `
5774
+ `, n = n.substring(qe.length + 1), p = Ve.slice(m);
5775
5775
  }
5776
5776
  }
5777
5777
  s.loose || (o ? s.loose = !0 : this.rules.other.doubleBlankLine.test(l) && (o = !0));
5778
- let $ = null, $e;
5779
- this.options.gfm && ($ = this.rules.other.listIsTask.exec(u), $ && ($e = $[0] !== "[ ] ", u = u.replace(this.rules.other.listReplaceTask, ""))), s.items.push({
5778
+ let $ = null, we;
5779
+ this.options.gfm && ($ = this.rules.other.listIsTask.exec(u), $ && (we = $[0] !== "[ ] ", u = u.replace(this.rules.other.listReplaceTask, ""))), s.items.push({
5780
5780
  type: "list_item",
5781
5781
  raw: l,
5782
5782
  task: !!$,
5783
- checked: $e,
5783
+ checked: we,
5784
5784
  loose: !1,
5785
5785
  text: u,
5786
5786
  tokens: []
@@ -5922,7 +5922,7 @@ ${u}` : u;
5922
5922
  if (!this.options.pedantic && this.rules.other.startAngleBracket.test(t)) {
5923
5923
  if (!this.rules.other.endAngleBracket.test(t))
5924
5924
  return;
5925
- const r = Ht(t.slice(0, -1), "\\");
5925
+ const r = zt(t.slice(0, -1), "\\");
5926
5926
  if ((t.length - r.length) % 2 === 0)
5927
5927
  return;
5928
5928
  } else {
@@ -6089,14 +6089,14 @@ ${u}` : u;
6089
6089
  };
6090
6090
  }
6091
6091
  }
6092
- }, _e = class Qi {
6092
+ }, _e = class Xi {
6093
6093
  constructor(e) {
6094
6094
  _(this, "tokens");
6095
6095
  _(this, "options");
6096
6096
  _(this, "state");
6097
6097
  _(this, "tokenizer");
6098
6098
  _(this, "inlineQueue");
6099
- this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || nt, this.options.tokenizer = this.options.tokenizer || new jn(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
6099
+ this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || it, this.options.tokenizer = this.options.tokenizer || new jn(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
6100
6100
  inLink: !1,
6101
6101
  inRawBlock: !1,
6102
6102
  top: !0
@@ -6104,9 +6104,9 @@ ${u}` : u;
6104
6104
  const t = {
6105
6105
  other: Y,
6106
6106
  block: xn.normal,
6107
- inline: Dt.normal
6107
+ inline: Ht.normal
6108
6108
  };
6109
- this.options.pedantic ? (t.block = xn.pedantic, t.inline = Dt.pedantic) : this.options.gfm && (t.block = xn.gfm, this.options.breaks ? t.inline = Dt.breaks : t.inline = Dt.gfm), this.tokenizer.rules = t;
6109
+ this.options.pedantic ? (t.block = xn.pedantic, t.inline = Ht.pedantic) : this.options.gfm && (t.block = xn.gfm, this.options.breaks ? t.inline = Ht.breaks : t.inline = Ht.gfm), this.tokenizer.rules = t;
6110
6110
  }
6111
6111
  /**
6112
6112
  * Expose Rules
@@ -6114,20 +6114,20 @@ ${u}` : u;
6114
6114
  static get rules() {
6115
6115
  return {
6116
6116
  block: xn,
6117
- inline: Dt
6117
+ inline: Ht
6118
6118
  };
6119
6119
  }
6120
6120
  /**
6121
6121
  * Static Lex Method
6122
6122
  */
6123
6123
  static lex(e, t) {
6124
- return new Qi(t).lex(e);
6124
+ return new Xi(t).lex(e);
6125
6125
  }
6126
6126
  /**
6127
6127
  * Static Lex Inline Method
6128
6128
  */
6129
6129
  static lexInline(e, t) {
6130
- return new Qi(t).inlineTokens(e);
6130
+ return new Xi(t).inlineTokens(e);
6131
6131
  }
6132
6132
  /**
6133
6133
  * Preprocessing
@@ -6338,7 +6338,7 @@ ${u}` : u;
6338
6338
  constructor(n) {
6339
6339
  _(this, "options");
6340
6340
  _(this, "parser");
6341
- this.options = n || nt;
6341
+ this.options = n || it;
6342
6342
  }
6343
6343
  space(n) {
6344
6344
  return "";
@@ -6347,8 +6347,8 @@ ${u}` : u;
6347
6347
  var r;
6348
6348
  const i = (r = (e || "").match(Y.notSpaceStart)) == null ? void 0 : r[0], s = n.replace(Y.endingNewline, "") + `
6349
6349
  `;
6350
- return i ? '<pre><code class="language-' + ge(i) + '">' + (t ? s : ge(s, !0)) + `</code></pre>
6351
- ` : "<pre><code>" + (t ? s : ge(s, !0)) + `</code></pre>
6350
+ return i ? '<pre><code class="language-' + me(i) + '">' + (t ? s : me(s, !0)) + `</code></pre>
6351
+ ` : "<pre><code>" + (t ? s : me(s, !0)) + `</code></pre>
6352
6352
  `;
6353
6353
  }
6354
6354
  blockquote({ tokens: n }) {
@@ -6384,7 +6384,7 @@ ${this.parser.parse(n)}</blockquote>
6384
6384
  let e = "";
6385
6385
  if (n.task) {
6386
6386
  const i = this.checkbox({ checked: !!n.checked });
6387
- 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({
6387
+ 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 + " " + me(n.tokens[0].tokens[0].text), n.tokens[0].tokens[0].escaped = !0)) : n.tokens.unshift({
6388
6388
  type: "text",
6389
6389
  raw: i + " ",
6390
6390
  text: i + " ",
@@ -6440,7 +6440,7 @@ ${n}</tr>
6440
6440
  return `<em>${this.parser.parseInline(n)}</em>`;
6441
6441
  }
6442
6442
  codespan({ text: n }) {
6443
- return `<code>${ge(n, !0)}</code>`;
6443
+ return `<code>${me(n, !0)}</code>`;
6444
6444
  }
6445
6445
  br(n) {
6446
6446
  return "<br>";
@@ -6454,21 +6454,21 @@ ${n}</tr>
6454
6454
  return i;
6455
6455
  n = s;
6456
6456
  let r = '<a href="' + n + '"';
6457
- return e && (r += ' title="' + ge(e) + '"'), r += ">" + i + "</a>", r;
6457
+ return e && (r += ' title="' + me(e) + '"'), r += ">" + i + "</a>", r;
6458
6458
  }
6459
6459
  image({ href: n, title: e, text: t, tokens: i }) {
6460
6460
  i && (t = this.parser.parseInline(i, this.parser.textRenderer));
6461
6461
  const s = ko(n);
6462
6462
  if (s === null)
6463
- return ge(t);
6463
+ return me(t);
6464
6464
  n = s;
6465
6465
  let r = `<img src="${n}" alt="${t}"`;
6466
- return e && (r += ` title="${ge(e)}"`), r += ">", r;
6466
+ return e && (r += ` title="${me(e)}"`), r += ">", r;
6467
6467
  }
6468
6468
  text(n) {
6469
- return "tokens" in n && n.tokens ? this.parser.parseInline(n.tokens) : "escaped" in n && n.escaped ? n.text : ge(n.text);
6469
+ return "tokens" in n && n.tokens ? this.parser.parseInline(n.tokens) : "escaped" in n && n.escaped ? n.text : me(n.text);
6470
6470
  }
6471
- }, Ss = class {
6471
+ }, Cs = class {
6472
6472
  // no need for block level renderers
6473
6473
  strong({ text: n }) {
6474
6474
  return n;
@@ -6497,24 +6497,24 @@ ${n}</tr>
6497
6497
  br() {
6498
6498
  return "";
6499
6499
  }
6500
- }, Ae = class Xi {
6500
+ }, Ae = class Ki {
6501
6501
  constructor(e) {
6502
6502
  _(this, "options");
6503
6503
  _(this, "renderer");
6504
6504
  _(this, "textRenderer");
6505
- this.options = e || nt, this.options.renderer = this.options.renderer || new Jt(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Ss();
6505
+ this.options = e || it, this.options.renderer = this.options.renderer || new Jt(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Cs();
6506
6506
  }
6507
6507
  /**
6508
6508
  * Static Parse Method
6509
6509
  */
6510
6510
  static parse(e, t) {
6511
- return new Xi(t).parse(e);
6511
+ return new Ki(t).parse(e);
6512
6512
  }
6513
6513
  /**
6514
6514
  * Static Parse Inline Method
6515
6515
  */
6516
6516
  static parseInline(e, t) {
6517
- return new Xi(t).parseInline(e);
6517
+ return new Ki(t).parseInline(e);
6518
6518
  }
6519
6519
  /**
6520
6520
  * Parse Loop
@@ -6659,11 +6659,11 @@ ${n}</tr>
6659
6659
  }
6660
6660
  return i;
6661
6661
  }
6662
- }, Ri, En = (Ri = class {
6662
+ }, Li, En = (Li = class {
6663
6663
  constructor(n) {
6664
6664
  _(this, "options");
6665
6665
  _(this, "block");
6666
- this.options = n || nt;
6666
+ this.options = n || it;
6667
6667
  }
6668
6668
  /**
6669
6669
  * Process markdown before marked
@@ -6695,19 +6695,19 @@ ${n}</tr>
6695
6695
  provideParser() {
6696
6696
  return this.block ? Ae.parse : Ae.parseInline;
6697
6697
  }
6698
- }, _(Ri, "passThroughHooks", /* @__PURE__ */ new Set([
6698
+ }, _(Li, "passThroughHooks", /* @__PURE__ */ new Set([
6699
6699
  "preprocess",
6700
6700
  "postprocess",
6701
6701
  "processAllTokens"
6702
- ])), Ri), Td = class {
6702
+ ])), Li), Td = class {
6703
6703
  constructor(...n) {
6704
- _(this, "defaults", ms());
6704
+ _(this, "defaults", vs());
6705
6705
  _(this, "options", this.setOptions);
6706
6706
  _(this, "parse", this.parseMarkdown(!0));
6707
6707
  _(this, "parseInline", this.parseMarkdown(!1));
6708
6708
  _(this, "Parser", Ae);
6709
6709
  _(this, "Renderer", Jt);
6710
- _(this, "TextRenderer", Ss);
6710
+ _(this, "TextRenderer", Cs);
6711
6711
  _(this, "Lexer", _e);
6712
6712
  _(this, "Tokenizer", jn);
6713
6713
  _(this, "Hooks", En);
@@ -6863,7 +6863,7 @@ ${n}</tr>
6863
6863
  return (t) => {
6864
6864
  if (t.message += `
6865
6865
  Please report this to https://github.com/markedjs/marked.`, n) {
6866
- const i = "<p>An error occurred:</p><pre>" + ge(t.message + "", !0) + "</pre>";
6866
+ const i = "<p>An error occurred:</p><pre>" + me(t.message + "", !0) + "</pre>";
6867
6867
  return e ? Promise.resolve(i) : i;
6868
6868
  }
6869
6869
  if (e)
@@ -6871,26 +6871,26 @@ Please report this to https://github.com/markedjs/marked.`, n) {
6871
6871
  throw t;
6872
6872
  };
6873
6873
  }
6874
- }, tt = new Td();
6874
+ }, nt = new Td();
6875
6875
  function S(n, e) {
6876
- return tt.parse(n, e);
6876
+ return nt.parse(n, e);
6877
6877
  }
6878
6878
  S.options = S.setOptions = function(n) {
6879
- return tt.setOptions(n), S.defaults = tt.defaults, Ua(S.defaults), S;
6879
+ return nt.setOptions(n), S.defaults = nt.defaults, Ua(S.defaults), S;
6880
6880
  };
6881
- S.getDefaults = ms;
6882
- S.defaults = nt;
6881
+ S.getDefaults = vs;
6882
+ S.defaults = it;
6883
6883
  S.use = function(...n) {
6884
- return tt.use(...n), S.defaults = tt.defaults, Ua(S.defaults), S;
6884
+ return nt.use(...n), S.defaults = nt.defaults, Ua(S.defaults), S;
6885
6885
  };
6886
6886
  S.walkTokens = function(n, e) {
6887
- return tt.walkTokens(n, e);
6887
+ return nt.walkTokens(n, e);
6888
6888
  };
6889
- S.parseInline = tt.parseInline;
6889
+ S.parseInline = nt.parseInline;
6890
6890
  S.Parser = Ae;
6891
6891
  S.parser = Ae.parse;
6892
6892
  S.Renderer = Jt;
6893
- S.TextRenderer = Ss;
6893
+ S.TextRenderer = Cs;
6894
6894
  S.Lexer = _e;
6895
6895
  S.lexer = _e.lex;
6896
6896
  S.Tokenizer = jn;
@@ -6913,9 +6913,9 @@ Ya.link = function({ href: n, title: e, text: t }) {
6913
6913
  return e ?? (e = t), `<a target="_blank" href="${n}" title="${e}">${t}</a>`;
6914
6914
  };
6915
6915
  S.use({ renderer: Ya });
6916
- const Hs = class Hs extends A {
6916
+ const zs = class zs extends A {
6917
6917
  constructor() {
6918
- 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);
6918
+ super(...arguments), this.showLightbox = !1, this.imageUrl = "", this.altText = "", this.scrollRef = be(), this.contentRef = be(), this.autoScroll = !0, this.buffer = "", this.pointer = 0, this.imageRegexp = new RegExp(/!\[[^[]*\([^)]*\)/gm);
6919
6919
  }
6920
6920
  // Stop autoscroll on user interaction
6921
6921
  handleAutoscroll() {
@@ -6962,7 +6962,7 @@ const Hs = class Hs extends A {
6962
6962
  if (this.buffer += e, this.includesImage(this.buffer))
6963
6963
  (o = this.contentRef.value) == null || o.appendChild(document.createElement("div")), this.buffer = "";
6964
6964
  else if (this.buffer.includes("![")) return;
6965
- const t = S.parse(this.buffer), i = Ni(t), s = Na.sanitize(i, {
6965
+ const t = S.parse(this.buffer), i = Ui(t), s = Na.sanitize(i, {
6966
6966
  ADD_ATTR: ["target"]
6967
6967
  }), r = (a = this.contentRef.value) == null ? void 0 : a.querySelector(
6968
6968
  "div:last-of-type"
@@ -6978,10 +6978,10 @@ const Hs = class Hs extends A {
6978
6978
  }
6979
6979
  render() {
6980
6980
  return y`
6981
- <div class="message-type-markdown" ${be(this.contentRef)}>
6981
+ <div class="message-type-markdown" ${ye(this.contentRef)}>
6982
6982
  <div></div>
6983
6983
  </div>
6984
- <div class="scroll" ${be(this.scrollRef)}></div>
6984
+ <div class="scroll" ${ye(this.scrollRef)}></div>
6985
6985
  ${this.showLightbox ? y`<ace-lightbox
6986
6986
  imageUrl="${this.imageUrl}"
6987
6987
  altText="${this.altText}"
@@ -6989,7 +6989,7 @@ const Hs = class Hs extends A {
6989
6989
  `;
6990
6990
  }
6991
6991
  };
6992
- Hs.styles = [
6992
+ zs.styles = [
6993
6993
  R`
6994
6994
  :host {
6995
6995
  box-sizing: border-box;
@@ -7030,7 +7030,7 @@ Hs.styles = [
7030
7030
  }
7031
7031
  `
7032
7032
  ];
7033
- let en = Hs;
7033
+ let en = zs;
7034
7034
  Za([
7035
7035
  k({ attribute: !1 })
7036
7036
  ], en.prototype, "message");
@@ -7042,7 +7042,7 @@ var Rd = Object.defineProperty, Ld = (n, e, t, i) => {
7042
7042
  (o = n[r]) && (s = o(e, t, s) || s);
7043
7043
  return s && Rd(e, t, s), s;
7044
7044
  };
7045
- const zs = class zs extends A {
7045
+ const Fs = class Fs extends A {
7046
7046
  constructor() {
7047
7047
  super(...arguments), this.escapeListener = (e) => {
7048
7048
  e.key === "Escape" && this.closeLightbox();
@@ -7085,7 +7085,7 @@ const zs = class zs extends A {
7085
7085
  </div> `;
7086
7086
  }
7087
7087
  };
7088
- zs.styles = [
7088
+ Fs.styles = [
7089
7089
  R`
7090
7090
  :focus {
7091
7091
  outline-color: var(--focus-color);
@@ -7126,7 +7126,7 @@ zs.styles = [
7126
7126
  }
7127
7127
  `
7128
7128
  ];
7129
- let Bn = zs;
7129
+ let Bn = Fs;
7130
7130
  Ld([
7131
7131
  k({ attribute: !0 })
7132
7132
  ], Bn.prototype, "imageUrl");
@@ -7138,14 +7138,14 @@ var Id = Object.defineProperty, pe = (n, e, t, i) => {
7138
7138
  customElements.get("conversation-entry") || customElements.define("conversation-entry", Xt);
7139
7139
  customElements.get("ace-conversation-feed") || customElements.define("ace-conversation-feed", Kt);
7140
7140
  customElements.get("conversation-group") || customElements.define("conversation-group", Hn);
7141
- customElements.get("ace-typing-state") || customElements.define("ace-typing-state", Vi);
7141
+ customElements.get("ace-typing-state") || customElements.define("ace-typing-state", Wi);
7142
7142
  customElements.get("message-type-html") || customElements.define("message-type-html", zn);
7143
7143
  customElements.get("message-type-markdown") || customElements.define("message-type-markdown", en);
7144
7144
  customElements.get("ace-lightbox") || customElements.define("ace-lightbox", Bn);
7145
- const Eo = Ea(A), Fs = class Fs extends Eo {
7145
+ const Eo = Ea(A), js = class js extends Eo {
7146
7146
  constructor() {
7147
- 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.isKeyboardNavigation = !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 mh(this), this.messageMaxLength = 1e3, this.messageMaxLengthLabel = "Maximum character limit reached", this.skipToLatestMessageLabel = "Skip to latest message", this.conversationState$ = new he("waiting"), this.stateMachine = new bh(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
7148
- Re((e) => e ? e == null ? void 0 : e.provider$ : Pi(null))
7147
+ 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.isKeyboardNavigation = !1, this.conversationContentRef = be(), this.conversationFeedRef = be(), this.formRef = be(), this.inputRef = be(), this.scrollRef = be(), this.counterRef = be(), this.chatCurrentScrollPosition = 0, this.toast = new mh(this), this.messageMaxLength = 1e3, this.messageMaxLengthLabel = "Maximum character limit reached", this.skipToLatestMessageLabel = "Skip to latest message", this.conversationState$ = new he("waiting"), this.stateMachine = new bh(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
7148
+ Re((e) => e ? e == null ? void 0 : e.provider$ : Mi(null))
7149
7149
  ), this.userTyping$ = new P();
7150
7150
  }
7151
7151
  // =================
@@ -7169,9 +7169,9 @@ const Eo = Ea(A), Fs = class Fs extends Eo {
7169
7169
  }), this.userSubmitSubscription = On(
7170
7170
  this,
7171
7171
  "user-submit"
7172
- ).pipe(Mi(this.provider$)).subscribe(([i, s]) => {
7172
+ ).pipe(Ni(this.provider$)).subscribe(([i, s]) => {
7173
7173
  s && s.onUserSubmit(i.detail);
7174
- }), this.addHeaderOptions(), this.provider$.pipe(Mi(this.provider$)).subscribe(([i, s]) => {
7174
+ }), this.addHeaderOptions(), this.provider$.pipe(Ni(this.provider$)).subscribe(([i, s]) => {
7175
7175
  s && s.showChatOverlay$.pipe().subscribe((r) => {
7176
7176
  this.chatOverlayActive = r;
7177
7177
  });
@@ -7349,7 +7349,7 @@ const Eo = Ea(A), Fs = class Fs extends Eo {
7349
7349
  </div>` : w}
7350
7350
  <div
7351
7351
  @action=${this.actionHandler}
7352
- class=${xt({
7352
+ class=${kt({
7353
7353
  conversation: !0,
7354
7354
  disabled: this.disabledInput,
7355
7355
  "conversation--has-toast": this.toast.hasMessage(),
@@ -7366,27 +7366,27 @@ const Eo = Ea(A), Fs = class Fs extends Eo {
7366
7366
  </button>
7367
7367
  </div>` : w}
7368
7368
  <div
7369
- class=${xt({
7369
+ class=${kt({
7370
7370
  "conversation-content": !0,
7371
7371
  "conversation-overlay-mode": this.chatOverlayActive
7372
7372
  })}
7373
7373
  part="scroll-container"
7374
7374
  aria-live="polite"
7375
- ${be(this.conversationContentRef)}
7375
+ ${ye(this.conversationContentRef)}
7376
7376
  >
7377
7377
  ${this.toast.hasMessage() ? y`<div class="conversation__toast">${this.toast.message}</div>` : w}
7378
7378
  <ace-conversation-feed
7379
7379
  .entries=${this.entries}
7380
7380
  .loading=${this.typing}
7381
- ${be(this.conversationFeedRef)}
7381
+ ${ye(this.conversationFeedRef)}
7382
7382
  @updated=${this.onSessionUpdated}
7383
7383
  ></ace-conversation-feed>
7384
- <div class="scroll" ${be(this.scrollRef)}></div>
7384
+ <div class="scroll" ${ye(this.scrollRef)}></div>
7385
7385
  </div>
7386
7386
  <form
7387
7387
  class="conversation-bottom"
7388
7388
  @submit=${this.onSendMessage}
7389
- ${be(this.formRef)}
7389
+ ${ye(this.formRef)}
7390
7390
  ?inert=${this.disabledInput}
7391
7391
  data-testid="conversation-bottom"
7392
7392
  >
@@ -7407,7 +7407,7 @@ const Eo = Ea(A), Fs = class Fs extends Eo {
7407
7407
  @mousedown=${this.mouseDownHandler}
7408
7408
  @focus=${this.focusHandler}
7409
7409
  @blur=${this.blurHandler}
7410
- ${be(this.inputRef)}
7410
+ ${ye(this.inputRef)}
7411
7411
  aria-valuenow=${this.textAreaLength}
7412
7412
  aria-valuemax=${this.messageMaxLength}
7413
7413
  aria-valuemin="0"
@@ -7423,7 +7423,7 @@ const Eo = Ea(A), Fs = class Fs extends Eo {
7423
7423
  >
7424
7424
  <telia-icon svg=${ra.svg}></telia-icon>
7425
7425
  </button>
7426
- <span class="counter" ${be(this.counterRef)}>
7426
+ <span class="counter" ${ye(this.counterRef)}>
7427
7427
  ${this.textAreaLength} / ${this.messageMaxLength}</span
7428
7428
  >
7429
7429
  </div>
@@ -7441,7 +7441,7 @@ const Eo = Ea(A), Fs = class Fs extends Eo {
7441
7441
  </div>`;
7442
7442
  }
7443
7443
  };
7444
- Fs.styles = [
7444
+ js.styles = [
7445
7445
  Eo.styles || [],
7446
7446
  R`
7447
7447
  /* ===== HOST & GLOBAL STYLES ===== */
@@ -7784,7 +7784,7 @@ Fs.styles = [
7784
7784
  }
7785
7785
  `
7786
7786
  ];
7787
- let ne = Fs;
7787
+ let ne = js;
7788
7788
  pe([
7789
7789
  T()
7790
7790
  ], ne.prototype, "platform");
@@ -7819,7 +7819,7 @@ pe([
7819
7819
  T()
7820
7820
  ], ne.prototype, "authenticated");
7821
7821
  var Te = /* @__PURE__ */ ((n) => (n.Tunnistus = "tunnistus", n.BankId = "bankid", n.Freja = "freja", n))(Te || {}), F = /* @__PURE__ */ ((n) => (n.Pending = "pending", n.Authenticated = "authenticated", n.Error = "error", n))(F || {});
7822
- class qt {
7822
+ class Vt {
7823
7823
  constructor(e) {
7824
7824
  this.orderRef = "", e = {
7825
7825
  ...e,
@@ -7832,7 +7832,7 @@ class qt {
7832
7832
  async auth() {
7833
7833
  try {
7834
7834
  const e = await fetch(`${this.url}/auth`, {
7835
- headers: qt.getHeaders(),
7835
+ headers: Vt.getHeaders(),
7836
7836
  body: JSON.stringify({
7837
7837
  clientName: "idhub-web-1.0.0",
7838
7838
  register: {
@@ -7886,7 +7886,7 @@ class qt {
7886
7886
  async cancel() {
7887
7887
  try {
7888
7888
  return this.orderRef ? (await fetch(`${this.url}/cancel`, {
7889
- headers: qt.getHeaders(),
7889
+ headers: Vt.getHeaders(),
7890
7890
  body: JSON.stringify({
7891
7891
  clientName: "idhub-web-1.0.0",
7892
7892
  orderRef: this.orderRef,
@@ -7922,7 +7922,7 @@ class qt {
7922
7922
  errorMessage: "Missing order reference."
7923
7923
  };
7924
7924
  const e = await fetch(`${this.url}/collect`, {
7925
- headers: qt.getHeaders(),
7925
+ headers: Vt.getHeaders(),
7926
7926
  body: JSON.stringify({
7927
7927
  clientName: "idhub-web-1.0.0",
7928
7928
  orderRef: this.orderRef,
@@ -7948,14 +7948,14 @@ class qt {
7948
7948
  }
7949
7949
  }
7950
7950
  }
7951
- const Ce = (n) => n.objectType === "info", Pd = (n) => n.objectType === "chatEntry", Md = (n) => n.objectType === "pen", Nd = (n) => n.objectType === "chatButtonClicked", Ud = (n) => n.objectType === "endVideoButtonClicked", Dd = (n) => n.type === "queue-status", Hd = (n) => n.type === "established", zd = (n) => n.type === "pen-status", Fd = (n) => n.type === "prepareVideo", jd = (n) => n.type === "videoPrepared", Bd = (n) => n.type === "chatButtonClicked", qd = (n) => n.type === "endVideoButtonClicked", Vd = (n) => n.type === "chat-ended";
7952
- var Ye = /* @__PURE__ */ ((n) => (n.Initial = "initial", n.Error = "error", n.Retry = "retry", n))(Ye || {});
7953
- class gt extends Error {
7954
- constructor(e) {
7955
- super(e), this.name = "EngineException";
7951
+ const ge = (n) => n.objectType === "info", Pd = (n) => n.objectType === "chatEntry", Md = (n) => n.objectType === "pen", Nd = (n) => n.objectType === "chatButtonClicked", Ud = (n) => n.objectType === "endVideoButtonClicked", Dd = (n) => n.type === "queue-status", Hd = (n) => n.type === "established", zd = (n) => n.type === "pen-status", Fd = (n) => n.type === "prepareVideo", jd = (n) => n.type === "videoPrepared", Bd = (n) => n.type === "chatButtonClicked", qd = (n) => n.type === "endVideoButtonClicked", Vd = (n) => n.type === "chat-ended";
7952
+ var Qe = /* @__PURE__ */ ((n) => (n.Initial = "initial", n.Error = "error", n.Retry = "retry", n))(Qe || {});
7953
+ class Ne extends Error {
7954
+ constructor(e, t, i) {
7955
+ super(i || (t == null ? void 0 : t.message) || "Unknown engine error"), this.errorType = e, this.originalError = t;
7956
7956
  }
7957
7957
  }
7958
- class Cs {
7958
+ class Es {
7959
7959
  constructor(e, t) {
7960
7960
  this.endpoint = e, this.timeout = t, this.protocolVersion = "A", this.penStatusJustSent = !1;
7961
7961
  }
@@ -8072,7 +8072,7 @@ class Cs {
8072
8072
  });
8073
8073
  }
8074
8074
  async sendRequest(e, t) {
8075
- const i = this.endpoint.includes("engine-simulator") ? "include" : void 0, s = `${Cs.removeTrailingSlashes(this.endpoint)}/${e}`, r = await fetch(s, {
8075
+ const i = this.endpoint.includes("engine-simulator") ? "include" : void 0, s = `${Es.removeTrailingSlashes(this.endpoint)}/${e}`, r = await fetch(s, {
8076
8076
  body: new URLSearchParams(t),
8077
8077
  method: "POST",
8078
8078
  credentials: i,
@@ -8091,8 +8091,8 @@ class Cs {
8091
8091
  const Wd = () => "10000000-1000-4000-8000-100000000000".replace(
8092
8092
  /[018]/g,
8093
8093
  (n) => (+n ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> +n / 4).toString(16)
8094
- ), Ki = () => typeof crypto.randomUUID == "function" ? crypto.randomUUID() : Wd();
8095
- function Ji(n) {
8094
+ ), Ji = () => typeof crypto.randomUUID == "function" ? crypto.randomUUID() : Wd();
8095
+ function es(n) {
8096
8096
  return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n);
8097
8097
  }
8098
8098
  function Qa(n) {
@@ -8105,10 +8105,10 @@ function Gd(n) {
8105
8105
  }
8106
8106
  class Zd {
8107
8107
  constructor(e, t) {
8108
- this.config = e, this.messageSubject$ = new P(), this.actionsSubject$ = new P(), this.messages = () => this.messageSubject$.asObservable(), this.actions = () => this.actionsSubject$.asObservable(), this.sessionId = "", this.lastObjectId = 0, this.sessionId = t ?? Ki(), this.client = new Cs(this.config.engineUrl, this.config.engineTimeout);
8108
+ this.config = e, this.messageSubject$ = new P(), this.actionsSubject$ = new P(), this.messages = () => this.messageSubject$.asObservable(), this.actions = () => this.actionsSubject$.asObservable(), this.sessionId = "", this.lastObjectId = 0, this.sessionId = t ?? Ji(), this.client = new Es(this.config.engineUrl, this.config.engineTimeout);
8109
8109
  }
8110
8110
  chatJoin(e) {
8111
- return Qe(
8111
+ return Xe(
8112
8112
  this.client.chatJoin({
8113
8113
  invitationUid: e.invitationUid,
8114
8114
  uid: this.sessionId,
@@ -8117,23 +8117,16 @@ class Zd {
8117
8117
  videoChatMode: this.config.videoChatMode
8118
8118
  })
8119
8119
  ).pipe(
8120
- Wt((t) => (console.error(t), this.messageSubject$.next({
8121
- text: this.config.errorMessage ?? "An error occurred",
8122
- source: "system"
8123
- }), _r(
8124
- () => new gt(
8125
- this.config.errorMessage ?? "Failed to join chat session"
8126
- )
8127
- ))),
8120
+ vt((t) => vi(() => new Ne("chat-join-error", t))),
8128
8121
  Re(() => this.poll().pipe(
8129
- vi(() => this.poll()),
8122
+ bi(() => this.poll()),
8130
8123
  // Using concatMap here to ensure that each http request gets handled in order
8131
- bi()
8124
+ yi()
8132
8125
  ))
8133
8126
  );
8134
8127
  }
8135
8128
  chatRequest(e) {
8136
- return Qe(
8129
+ return Xe(
8137
8130
  this.client.chatRequest({
8138
8131
  uid: this.sessionId,
8139
8132
  customerName: e.customerName,
@@ -8148,31 +8141,29 @@ class Zd {
8148
8141
  ...e.authToken && { authToken: e.authToken }
8149
8142
  })
8150
8143
  ).pipe(
8151
- Wt((t) => (console.error(t), this.messageSubject$.next({
8152
- text: this.config.errorMessage ?? "An error occurred",
8153
- source: "system"
8154
- }), _r(
8155
- () => new gt(
8156
- this.config.errorMessage ?? "Failed to start chat session"
8157
- )
8158
- ))),
8144
+ vt((t) => vi(
8145
+ () => new Ne("chat-request-error", t)
8146
+ )),
8159
8147
  Re(() => this.poll().pipe(
8160
- vi(() => this.poll()),
8148
+ bi(() => this.poll()),
8161
8149
  // Using concatMap here to ensure that each http request gets handled in order
8162
- bi()
8150
+ yi()
8163
8151
  ))
8164
8152
  );
8165
8153
  }
8166
8154
  reconnect() {
8167
8155
  return this.poll().pipe(
8168
- vi(() => this.poll()),
8156
+ bi(() => this.poll()),
8169
8157
  // Using concatMap here to ensure that each http request gets handled in order
8170
- bi()
8158
+ yi(),
8159
+ vt((e) => vi(
8160
+ () => new Ne("chat-engine-error", e)
8161
+ ))
8171
8162
  );
8172
8163
  }
8173
8164
  poll() {
8174
8165
  return lc(
8175
- () => Qe(
8166
+ () => Xe(
8176
8167
  this.client.chatRead({
8177
8168
  uid: this.sessionId,
8178
8169
  instance: this.config.instance,
@@ -8181,6 +8172,15 @@ class Zd {
8181
8172
  })
8182
8173
  ).pipe(
8183
8174
  mc((e) => {
8175
+ const t = e == null ? void 0 : e.dataObjects.find(
8176
+ (i) => ge(i) && i.infoType === "error"
8177
+ );
8178
+ if (t)
8179
+ throw new Ne(
8180
+ "chat-engine-error",
8181
+ void 0,
8182
+ t.text || "Chat engine error occurred"
8183
+ );
8184
8184
  this.processMessages(e);
8185
8185
  })
8186
8186
  )
@@ -8193,10 +8193,14 @@ class Zd {
8193
8193
  clockstamp: Date.now().toString(),
8194
8194
  message: e
8195
8195
  }), i = ((t == null ? void 0 : t.dataObjects) || []).find(
8196
- (s) => Ce(s) && s.infoType === "error"
8196
+ (s) => ge(s) && s.infoType === "error"
8197
8197
  );
8198
8198
  if (i)
8199
- throw new gt(i.text || "Unable to send message");
8199
+ throw new Ne(
8200
+ "chat-write-error",
8201
+ void 0,
8202
+ i.text || "Unable to send message"
8203
+ );
8200
8204
  }
8201
8205
  // Notify ChatEngine that the user is typing.
8202
8206
  sendPenStatusOn(e) {
@@ -8225,11 +8229,15 @@ class Zd {
8225
8229
  uid: this.sessionId,
8226
8230
  instance: this.config.instance,
8227
8231
  emailAddress: e
8228
- });
8229
- if (((t == null ? void 0 : t.dataObjects) || []).find(
8230
- (s) => Ce(s) && s.infoType === "error"
8231
- ))
8232
- throw new gt("Unable to send email with conversation");
8232
+ }), i = ((t == null ? void 0 : t.dataObjects) || []).find(
8233
+ (s) => ge(s) && s.infoType === "error"
8234
+ );
8235
+ if (i)
8236
+ throw new Ne(
8237
+ "chat-email-session-error",
8238
+ void 0,
8239
+ i.text || "Unable to send email with conversation"
8240
+ );
8233
8241
  }
8234
8242
  processMessages(e) {
8235
8243
  e.dataObjects.forEach((t) => {
@@ -8241,10 +8249,10 @@ class Zd {
8241
8249
  }), Md(t) && this.actionsSubject$.next({
8242
8250
  penStatus: t.penStatus,
8243
8251
  type: "pen-status"
8244
- }), Ce(t) && t.infoType === "queue" && this.actionsSubject$.next({
8252
+ }), ge(t) && t.infoType === "queue" && this.actionsSubject$.next({
8245
8253
  text: t.text,
8246
8254
  type: "queue-status"
8247
- }), Ce(t) && t.infoType === "established" && this.actionsSubject$.next({
8255
+ }), ge(t) && t.infoType === "established" && this.actionsSubject$.next({
8248
8256
  text: t.text,
8249
8257
  agentAlias: t.agentAlias,
8250
8258
  type: "established",
@@ -8253,9 +8261,9 @@ class Zd {
8253
8261
  agentUsername: t.agentUsername,
8254
8262
  entrance: t.entrance,
8255
8263
  errand: t.errand
8256
- }), Ce(t) && t.infoType === "prepareVideo" && this.actionsSubject$.next({
8264
+ }), ge(t) && t.infoType === "prepareVideo" && this.actionsSubject$.next({
8257
8265
  type: "prepareVideo"
8258
- }), Ce(t) && t.infoType === "videoPrepared" && this.actionsSubject$.next({
8266
+ }), ge(t) && t.infoType === "videoPrepared" && this.actionsSubject$.next({
8259
8267
  text: t.text,
8260
8268
  agent: t.agent,
8261
8269
  type: "videoPrepared",
@@ -8266,7 +8274,7 @@ class Zd {
8266
8274
  }), Ud(t) && this.actionsSubject$.next({
8267
8275
  guestId: t.guestId,
8268
8276
  type: "endVideoButtonClicked"
8269
- }), Ce(t) && ["afterChat", "finished"].includes(t.infoType) && this.actionsSubject$.next({
8277
+ }), ge(t) && ["afterChat", "finished"].includes(t.infoType) && this.actionsSubject$.next({
8270
8278
  text: t.text,
8271
8279
  type: "chat-ended",
8272
8280
  showForm: t.infoType === "afterChat",
@@ -8283,7 +8291,7 @@ class Zd {
8283
8291
  return "noSession";
8284
8292
  const t = e.dataObjects;
8285
8293
  for (const i of t)
8286
- if (Ce(i))
8294
+ if (ge(i))
8287
8295
  switch (i.infoType) {
8288
8296
  case "finished":
8289
8297
  case "afterChat":
@@ -8299,43 +8307,17 @@ class Zd {
8299
8307
  instance: this.config.instance
8300
8308
  });
8301
8309
  return !e || (e.dataObjects || []).find(
8302
- (t) => Ce(t) && t.infoType === "noSession"
8310
+ (t) => ge(t) && t.infoType === "noSession"
8303
8311
  ) ? null : (this.processMessages(e), e);
8304
8312
  }
8305
- // TODO: Add missing Chat Engine requests below:
8306
- // chatJoin
8307
- // chatPenStatus
8308
- // chatQuit
8309
- // chatEmailSession
8310
- // chatDelete
8311
- /*
8312
- CallGuide.api.chat.delete (from ACE Chat API specification):
8313
- Remove all references to chat session from the browser.
8314
- When a chat is finished, ACE Chat Engine remembers the session for a
8315
- few minutes. If the page is reloaded, the finished chat will be fetched
8316
- from the server within this time. A call to delete function is needed to
8317
- stop chat to be shown when reloaded within this time frame.
8318
- If a session is in progress, <code>quit</code> will first be sent to
8319
- Chat Engine, so the ACE system is informed that the session is
8320
- ended. [Edit: this is the mysterious reason that one widget chat is
8321
- sending two chatQuit signals when chat session is ended!]
8322
- */
8323
- // videoPrepared
8324
- // endVideo
8325
- // chatCheckSession
8326
- // chatLog
8327
- /*
8328
- Logs message in Chat Engine logs. Not very useful I think, can probably be skipped.
8329
- */
8330
- // chatAuthentication
8331
- }
8332
- class Ue {
8313
+ }
8314
+ class De {
8333
8315
  constructor(e) {
8334
8316
  this._email = "", this._host = e, e.addController(this);
8335
8317
  }
8336
8318
  // Singleton pattern to ensure only one instance of the controller is created.
8337
8319
  static getInstance(e) {
8338
- return Ue.instance ? Ue.instance.updateHost(e) : Ue.instance = new Ue(e), Ue.instance;
8320
+ return De.instance ? De.instance.updateHost(e) : De.instance = new De(e), De.instance;
8339
8321
  }
8340
8322
  updateHost(e) {
8341
8323
  this._host = e, e.addController(this);
@@ -8352,14 +8334,14 @@ class Ue {
8352
8334
  this._email = "", this._host.requestUpdate();
8353
8335
  }
8354
8336
  }
8355
- var Yd = Object.defineProperty, _t = (n, e, t, i) => {
8337
+ var Yd = Object.defineProperty, At = (n, e, t, i) => {
8356
8338
  for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
8357
8339
  (o = n[r]) && (s = o(e, t, s) || s);
8358
8340
  return s && Yd(e, t, s), s;
8359
- }, yt;
8360
- let it = (yt = class extends A {
8341
+ }, $t;
8342
+ let st = ($t = class extends A {
8361
8343
  constructor() {
8362
- super(), this.submitted = !1, this.customData = [], this.customerName = "", this.validationErrors = [], this.showValidationWarning = !1, this.emailController = Ue.getInstance(this), this.emailController.clearData();
8344
+ super(), this.submitted = !1, this.customData = [], this.customerName = "", this.validationErrors = [], this.showValidationWarning = !1, this.emailController = De.getInstance(this), this.emailController.clearData();
8363
8345
  }
8364
8346
  connectedCallback() {
8365
8347
  var i, s;
@@ -8422,7 +8404,7 @@ let it = (yt = class extends A {
8422
8404
  }
8423
8405
  validateCustomDataEntry(e) {
8424
8406
  let t = !1;
8425
- e.name === "customerEmailAddress" && e.value && (Ji(e.value) || (t = !0)), e.required && !e.value && (t = !0), t ? this.validationErrors.includes(e.name) || this.validationErrors.push(e.name) : this.validationErrors = this.validationErrors.filter(
8407
+ e.name === "customerEmailAddress" && e.value && (es(e.value) || (t = !0)), e.required && !e.value && (t = !0), t ? this.validationErrors.includes(e.name) || this.validationErrors.push(e.name) : this.validationErrors = this.validationErrors.filter(
8426
8408
  (i) => i !== e.name
8427
8409
  );
8428
8410
  }
@@ -8485,7 +8467,7 @@ let it = (yt = class extends A {
8485
8467
  </form>
8486
8468
  </div>`;
8487
8469
  }
8488
- }, yt.styles = [
8470
+ }, $t.styles = [
8489
8471
  R`
8490
8472
  :host {
8491
8473
  display: block;
@@ -8568,33 +8550,33 @@ let it = (yt = class extends A {
8568
8550
  margin: 0;
8569
8551
  }
8570
8552
  `
8571
- ], yt);
8572
- _t([
8553
+ ], $t);
8554
+ At([
8573
8555
  T()
8574
- ], it.prototype, "submitted");
8575
- _t([
8556
+ ], st.prototype, "submitted");
8557
+ At([
8576
8558
  T()
8577
- ], it.prototype, "customData");
8578
- _t([
8559
+ ], st.prototype, "customData");
8560
+ At([
8579
8561
  T()
8580
- ], it.prototype, "customerName");
8581
- _t([
8562
+ ], st.prototype, "customerName");
8563
+ At([
8582
8564
  T()
8583
- ], it.prototype, "validationErrors");
8584
- _t([
8565
+ ], st.prototype, "validationErrors");
8566
+ At([
8585
8567
  T()
8586
- ], it.prototype, "showValidationWarning");
8587
- _t([
8568
+ ], st.prototype, "showValidationWarning");
8569
+ At([
8588
8570
  de({ context: ae }),
8589
8571
  k({ attribute: !1 })
8590
- ], it.prototype, "application");
8591
- window.customElements.get("ace-welcome-form") || window.customElements.define("ace-welcome-form", it);
8592
- var Qd = Object.defineProperty, Es = (n, e, t, i) => {
8572
+ ], st.prototype, "application");
8573
+ window.customElements.get("ace-welcome-form") || window.customElements.define("ace-welcome-form", st);
8574
+ var Qd = Object.defineProperty, _s = (n, e, t, i) => {
8593
8575
  for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
8594
8576
  (o = n[r]) && (s = o(e, t, s) || s);
8595
8577
  return s && Qd(e, t, s), s;
8596
8578
  };
8597
- const js = class js extends A {
8579
+ const Bs = class Bs extends A {
8598
8580
  constructor() {
8599
8581
  super(...arguments), this.submitted = !1, this.name = "";
8600
8582
  }
@@ -8659,7 +8641,7 @@ const js = class js extends A {
8659
8641
  </div>`;
8660
8642
  }
8661
8643
  };
8662
- js.styles = [
8644
+ Bs.styles = [
8663
8645
  R`
8664
8646
  :host {
8665
8647
  display: block;
@@ -8740,26 +8722,26 @@ js.styles = [
8740
8722
  }
8741
8723
  `
8742
8724
  ];
8743
- let St = js;
8744
- Es([
8725
+ let Ct = Bs;
8726
+ _s([
8745
8727
  T()
8746
- ], St.prototype, "submitted");
8747
- Es([
8728
+ ], Ct.prototype, "submitted");
8729
+ _s([
8748
8730
  T()
8749
- ], St.prototype, "name");
8750
- Es([
8731
+ ], Ct.prototype, "name");
8732
+ _s([
8751
8733
  de({ context: ae }),
8752
8734
  k({ attribute: !1 })
8753
- ], St.prototype, "application");
8754
- window.customElements.get("ace-welcome-form-third-party") || window.customElements.define("ace-welcome-form-third-party", St);
8755
- var Xd = Object.defineProperty, _s = (n, e, t, i) => {
8735
+ ], Ct.prototype, "application");
8736
+ window.customElements.get("ace-welcome-form-third-party") || window.customElements.define("ace-welcome-form-third-party", Ct);
8737
+ var Xd = Object.defineProperty, As = (n, e, t, i) => {
8756
8738
  for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
8757
8739
  (o = n[r]) && (s = o(e, t, s) || s);
8758
8740
  return s && Xd(e, t, s), s;
8759
8741
  };
8760
- const Bs = class Bs extends A {
8742
+ const qs = class qs extends A {
8761
8743
  constructor() {
8762
- super(...arguments), this.email = "", this.isEmailValid = !1, this.emailController = Ue.getInstance(this);
8744
+ super(...arguments), this.email = "", this.isEmailValid = !1, this.emailController = De.getInstance(this);
8763
8745
  }
8764
8746
  _onSendChatLog(e) {
8765
8747
  e.preventDefault();
@@ -8779,7 +8761,7 @@ const Bs = class Bs extends A {
8779
8761
  this.email = e.target.value;
8780
8762
  }
8781
8763
  connectedCallback() {
8782
- super.connectedCallback(), this.email = this.emailController.email, this.isEmailValid = Ji(this.email);
8764
+ super.connectedCallback(), this.email = this.emailController.email, this.isEmailValid = es(this.email);
8783
8765
  }
8784
8766
  render() {
8785
8767
  const e = this.application.texts;
@@ -8809,7 +8791,7 @@ const Bs = class Bs extends A {
8809
8791
  )}
8810
8792
  .value=${this.email}
8811
8793
  @input=${(t) => {
8812
- this._emailInputHandler(t), this.isEmailValid = Ji(this.email);
8794
+ this._emailInputHandler(t), this.isEmailValid = es(this.email);
8813
8795
  }}
8814
8796
  autocomplete="email"
8815
8797
  />
@@ -8826,7 +8808,7 @@ const Bs = class Bs extends A {
8826
8808
  </div>`;
8827
8809
  }
8828
8810
  };
8829
- Bs.styles = [
8811
+ qs.styles = [
8830
8812
  R`
8831
8813
  :host {
8832
8814
  display: block;
@@ -8903,27 +8885,27 @@ Bs.styles = [
8903
8885
  }
8904
8886
  `
8905
8887
  ];
8906
- let Ct = Bs;
8907
- _s([
8888
+ let Et = qs;
8889
+ As([
8908
8890
  T()
8909
- ], Ct.prototype, "email");
8910
- _s([
8891
+ ], Et.prototype, "email");
8892
+ As([
8911
8893
  T()
8912
- ], Ct.prototype, "isEmailValid");
8913
- _s([
8894
+ ], Et.prototype, "isEmailValid");
8895
+ As([
8914
8896
  de({ context: ae }),
8915
8897
  k({ attribute: !1 })
8916
- ], Ct.prototype, "application");
8898
+ ], Et.prototype, "application");
8917
8899
  window.customElements.get("ace-conversation-ended-form") || window.customElements.define(
8918
8900
  "ace-conversation-ended-form",
8919
- Ct
8901
+ Et
8920
8902
  );
8921
8903
  var Kd = Object.defineProperty, Jd = (n, e, t, i) => {
8922
8904
  for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
8923
8905
  (o = n[r]) && (s = o(e, t, s) || s);
8924
8906
  return s && Kd(e, t, s), s;
8925
8907
  };
8926
- const qs = class qs extends A {
8908
+ const Vs = class Vs extends A {
8927
8909
  _onStartVideo(e) {
8928
8910
  e.preventDefault(), this.dispatchResult(
8929
8911
  "ok",
@@ -8983,7 +8965,7 @@ const qs = class qs extends A {
8983
8965
  </div>`;
8984
8966
  }
8985
8967
  };
8986
- qs.styles = [
8968
+ Vs.styles = [
8987
8969
  R`
8988
8970
  :host {
8989
8971
  display: block;
@@ -9048,7 +9030,7 @@ qs.styles = [
9048
9030
  }
9049
9031
  `
9050
9032
  ];
9051
- let qn = qs;
9033
+ let qn = Vs;
9052
9034
  Jd([
9053
9035
  de({ context: ae }),
9054
9036
  k({ attribute: !1 })
@@ -9059,7 +9041,7 @@ var ep = Object.defineProperty, tp = (n, e, t, i) => {
9059
9041
  (o = n[r]) && (s = o(e, t, s) || s);
9060
9042
  return s && ep(e, t, s), s;
9061
9043
  };
9062
- const Vs = class Vs extends A {
9044
+ const Ws = class Ws extends A {
9063
9045
  constructor(e) {
9064
9046
  super(), this.surveyUrl = "", this.surveyLinkText = "", this.surveyText = "", this.surveyTitle = "", this.searchParams = {}, e && (this.searchParams = e);
9065
9047
  }
@@ -9079,13 +9061,13 @@ const Vs = class Vs extends A {
9079
9061
  <div class="link-container">
9080
9062
  <a class="primary" target="_blank" href="${this.surveyUrl}">
9081
9063
  ${this.surveyLinkText}
9082
- <telia-icon svg=${Hi.svg} size="sm"></telia-icon>
9064
+ <telia-icon svg=${zi.svg} size="sm"></telia-icon>
9083
9065
  </a>
9084
9066
  </div>
9085
9067
  </div>`;
9086
9068
  }
9087
9069
  };
9088
- Vs.styles = [
9070
+ Ws.styles = [
9089
9071
  R`
9090
9072
  :focus {
9091
9073
  outline-color: var(--focus-color);
@@ -9134,7 +9116,7 @@ Vs.styles = [
9134
9116
  }
9135
9117
  `
9136
9118
  ];
9137
- let Vn = Vs;
9119
+ let Vn = Ws;
9138
9120
  tp([
9139
9121
  de({ context: ae }),
9140
9122
  k({ attribute: !1 })
@@ -9145,7 +9127,7 @@ var np = Object.defineProperty, ip = (n, e, t, i) => {
9145
9127
  (o = n[r]) && (s = o(e, t, s) || s);
9146
9128
  return s && np(e, t, s), s;
9147
9129
  };
9148
- const Ws = class Ws extends A {
9130
+ const Gs = class Gs extends A {
9149
9131
  _onClose() {
9150
9132
  this.application.trigger && this.application.trigger.toggleActive();
9151
9133
  }
@@ -9167,7 +9149,7 @@ const Ws = class Ws extends A {
9167
9149
  </div>`;
9168
9150
  }
9169
9151
  };
9170
- Ws.styles = [
9152
+ Gs.styles = [
9171
9153
  R`
9172
9154
  :host {
9173
9155
  display: block;
@@ -9221,7 +9203,7 @@ Ws.styles = [
9221
9203
  }
9222
9204
  `
9223
9205
  ];
9224
- let Wn = Ws;
9206
+ let Wn = Gs;
9225
9207
  ip([
9226
9208
  de({ context: ae }),
9227
9209
  k({ attribute: !1 })
@@ -9235,7 +9217,7 @@ var sp = Object.defineProperty, Xa = (n, e, t, i) => {
9235
9217
  (o = n[r]) && (s = o(e, t, s) || s);
9236
9218
  return s && sp(e, t, s), s;
9237
9219
  };
9238
- const Gs = class Gs extends A {
9220
+ const Zs = class Zs extends A {
9239
9221
  connectedCallback() {
9240
9222
  super.connectedCallback();
9241
9223
  }
@@ -9321,7 +9303,7 @@ const Gs = class Gs extends A {
9321
9303
  </div>` : y`<div>Unknown entry type</div>`;
9322
9304
  }
9323
9305
  };
9324
- Gs.styles = [
9306
+ Zs.styles = [
9325
9307
  R`
9326
9308
  :focus {
9327
9309
  outline-color: var(--focus-color);
@@ -9415,7 +9397,7 @@ Gs.styles = [
9415
9397
  }
9416
9398
  `
9417
9399
  ];
9418
- let tn = Gs;
9400
+ let tn = Zs;
9419
9401
  Xa([
9420
9402
  k({ attribute: !1 })
9421
9403
  ], tn.prototype, "entry");
@@ -9429,7 +9411,7 @@ var rp = Object.defineProperty, op = (n, e, t, i) => {
9429
9411
  (o = n[r]) && (s = o(e, t, s) || s);
9430
9412
  return s && rp(e, t, s), s;
9431
9413
  };
9432
- const Zs = class Zs extends A {
9414
+ const Ys = class Ys extends A {
9433
9415
  firstUpdated() {
9434
9416
  var t;
9435
9417
  const e = (t = this.shadowRoot) == null ? void 0 : t.querySelector(".container");
@@ -9484,7 +9466,7 @@ const Zs = class Zs extends A {
9484
9466
  </div>`;
9485
9467
  }
9486
9468
  };
9487
- Zs.styles = [
9469
+ Ys.styles = [
9488
9470
  R`
9489
9471
  :host {
9490
9472
  display: block;
@@ -9549,7 +9531,7 @@ Zs.styles = [
9549
9531
  }
9550
9532
  `
9551
9533
  ];
9552
- let Gn = Zs;
9534
+ let Gn = Ys;
9553
9535
  op([
9554
9536
  de({ context: ae }),
9555
9537
  k({ attribute: !1 })
@@ -9560,10 +9542,10 @@ var ap = Object.defineProperty, lp = (n, e, t, i) => {
9560
9542
  (o = n[r]) && (s = o(e, t, s) || s);
9561
9543
  return s && ap(e, t, s), s;
9562
9544
  };
9563
- const Ys = class Ys extends A {
9545
+ const Qs = class Qs extends A {
9564
9546
  constructor(e) {
9565
- super(), this.tunnistusURL = "", this.state = Ye.Initial;
9566
- const { tunnistusURL: t = "", state: i = Ye.Initial } = e ?? {};
9547
+ super(), this.tunnistusURL = "", this.state = Qe.Initial;
9548
+ const { tunnistusURL: t = "", state: i = Qe.Initial } = e ?? {};
9567
9549
  this.tunnistusURL = t, this.state = i;
9568
9550
  }
9569
9551
  onStartAuth() {
@@ -9578,7 +9560,7 @@ const Ys = class Ys extends A {
9578
9560
  render() {
9579
9561
  const e = this.application.texts;
9580
9562
  switch (this.state) {
9581
- case Ye.Error:
9563
+ case Qe.Error:
9582
9564
  return y`<div class="container">
9583
9565
  <div class="header-row">
9584
9566
  <telia-icon class="error-icon" svg=${Zc.svg}></telia-icon>
@@ -9607,11 +9589,11 @@ const Ys = class Ys extends A {
9607
9589
  "tunnistus-auth.error.link-button",
9608
9590
  "Try again"
9609
9591
  )}
9610
- <telia-icon svg=${Hi.svg} size="sm"></telia-icon>
9592
+ <telia-icon svg=${zi.svg} size="sm"></telia-icon>
9611
9593
  </a>
9612
9594
  </div>
9613
9595
  </div>`;
9614
- case Ye.Initial:
9596
+ case Qe.Initial:
9615
9597
  default:
9616
9598
  return y`<div class="container">
9617
9599
  <div class="header-row">
@@ -9641,14 +9623,14 @@ const Ys = class Ys extends A {
9641
9623
  "tunnistus-auth.initial.link-button",
9642
9624
  "Authenticate with Tunnistus"
9643
9625
  )}
9644
- <telia-icon svg=${Hi.svg} size="sm"></telia-icon>
9626
+ <telia-icon svg=${zi.svg} size="sm"></telia-icon>
9645
9627
  </a>
9646
9628
  </div>
9647
9629
  </div>`;
9648
9630
  }
9649
9631
  }
9650
9632
  };
9651
- Ys.styles = [
9633
+ Qs.styles = [
9652
9634
  R`
9653
9635
  :focus {
9654
9636
  outline-color: var(--focus-color);
@@ -9722,7 +9704,7 @@ Ys.styles = [
9722
9704
  }
9723
9705
  `
9724
9706
  ];
9725
- let Zn = Ys;
9707
+ let Zn = Qs;
9726
9708
  lp([
9727
9709
  de({ context: ae }),
9728
9710
  k({ attribute: !1 })
@@ -9764,7 +9746,7 @@ var hp = Object.defineProperty, dp = (n, e, t, i) => {
9764
9746
  (o = n[r]) && (s = o(e, t, s) || s);
9765
9747
  return s && hp(e, t, s), s;
9766
9748
  };
9767
- const Qs = class Qs extends A {
9749
+ const Xs = class Xs extends A {
9768
9750
  constructor(e, t) {
9769
9751
  super(), this.primaryColor = "", this.secondaryColor = "", this.tertiaryColor = "", this.headerHeight = 0, this.copyrightHeight = 0, this.userUrl = new URL(e), this.userUrl.searchParams.set("lang", "en"), this.userUrl.searchParams.set("guestId", t);
9770
9752
  }
@@ -9803,7 +9785,7 @@ const Qs = class Qs extends A {
9803
9785
  </div>`;
9804
9786
  }
9805
9787
  };
9806
- Qs.styles = [
9788
+ Xs.styles = [
9807
9789
  R`
9808
9790
  :host {
9809
9791
  display: block;
@@ -9827,13 +9809,13 @@ Qs.styles = [
9827
9809
  }
9828
9810
  `
9829
9811
  ];
9830
- let nn = Qs;
9812
+ let nn = Xs;
9831
9813
  dp([
9832
9814
  de({ context: ae }),
9833
9815
  k({ attribute: !1 })
9834
9816
  ], nn.prototype, "application");
9835
9817
  window.customElements.get("ace-video-iframe") || window.customElements.define("ace-video-iframe", nn);
9836
- class As extends xc {
9818
+ class Ts extends xc {
9837
9819
  constructor(e, t) {
9838
9820
  var i, s, r, o, a, c;
9839
9821
  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(
@@ -9882,7 +9864,7 @@ class As extends xc {
9882
9864
  ...e
9883
9865
  }, i = !!this.sessionId;
9884
9866
  if (!i) {
9885
- const r = Ki();
9867
+ const r = Ji();
9886
9868
  this.setSessionId(r);
9887
9869
  }
9888
9870
  this.save({
@@ -9913,7 +9895,7 @@ class As extends xc {
9913
9895
  var o;
9914
9896
  r ? (o = this.engine) == null || o.reconnect().pipe(z(this.disconnected$)).subscribe({
9915
9897
  error: (a) => {
9916
- console.error("Failed to reconnect to the engine:", a);
9898
+ console.error("Failed to reconnect to the engine"), this.handleChatEngineError(a);
9917
9899
  }
9918
9900
  }) : this.initializeChat(t).catch((a) => {
9919
9901
  console.error(
@@ -9935,14 +9917,14 @@ class As extends xc {
9935
9917
  try {
9936
9918
  await ((i = this.engine) == null ? void 0 : i.chatWrite(e.text));
9937
9919
  } catch (s) {
9938
- s instanceof gt ? t.setStatus("failed") : (t.setStatus("failed"), console.warn("Unhandled error:", s));
9920
+ s instanceof Ne ? t.setStatus("failed") : (t.setStatus("failed"), console.warn("Unhandled error:", s));
9939
9921
  }
9940
9922
  })();
9941
9923
  }
9942
9924
  save(e) {
9943
9925
  this.component.stateMachine.session().pipe(
9944
9926
  Re((t) => (t == null ? void 0 : t.data$) || Oe),
9945
- me(1)
9927
+ ve(1)
9946
9928
  ).subscribe((t) => {
9947
9929
  this.saveToCurrentSession$.next({ ...t, ...e });
9948
9930
  });
@@ -9961,7 +9943,7 @@ class As extends xc {
9961
9943
  // STATIC METHODS
9962
9944
  // ==============
9963
9945
  static getInstance(e, t) {
9964
- return t.providerInstance ?? (t.providerInstance = new As(e, t)), t.providerInstance;
9946
+ return t.providerInstance ?? (t.providerInstance = new Ts(e, t)), t.providerInstance;
9965
9947
  }
9966
9948
  // ========================
9967
9949
  // INTERNAL UTILITY METHODS
@@ -9974,23 +9956,23 @@ class As extends xc {
9974
9956
  t || (this.headerComponent.showAuthOptions = !1), t && this.shouldUseAuth && this.idHubEidType ? (this.component.setAuthenticationBannerStatus(H.NonAuthenticated), this.setupIDHubAuth(), this.idHubClient && await this.startAuthenticationFlow()) : this.handleWelcomeForm(e, void 0, t);
9975
9957
  }
9976
9958
  setupAuthenticationListeners() {
9977
- var e;
9978
- this.shouldUseAuth && this.headerComponent && this.headerComponent.actions$ && ((e = this.headerComponent) == null || e.actions$.pipe(
9979
- G((t) => t.key === "start-auth"),
9959
+ var e, t;
9960
+ this.shouldUseAuth && ((e = this.headerComponent) != null && e.actions$) && ((t = this.headerComponent) == null || t.actions$.pipe(
9961
+ G((i) => i.key === "start-auth"),
9980
9962
  z(this.disconnected$)
9981
- ).subscribe((t) => {
9982
- t.key === "start-auth" && this.handleAuthentication();
9963
+ ).subscribe((i) => {
9964
+ i.key === "start-auth" && this.handleAuthentication();
9983
9965
  }));
9984
9966
  }
9985
9967
  setupIDHubAuth() {
9986
9968
  var e;
9987
- this.idHubClient = new qt({
9969
+ this.idHubClient = new Vt({
9988
9970
  ...(e = this.component.application.settings) == null ? void 0 : e.auth,
9989
9971
  idHubUrl: this.idHubUrl
9990
9972
  });
9991
9973
  }
9992
9974
  async startAuthenticationFlow(e = !1) {
9993
- if (this.component.disableInput(), e || (this.resetAuthState(H.NonAuthenticated), this.authResult = await this.getAuthResult()), !!this.authResult)
9975
+ if (this.component.disableInput(), e === !1 && (this.resetAuthState(H.NonAuthenticated), this.authResult = await this.getAuthResult()), !!this.authResult)
9994
9976
  switch (this.idHubEidType) {
9995
9977
  // ========================
9996
9978
  // Tunnistus authentication
@@ -10006,11 +9988,11 @@ class As extends xc {
10006
9988
  return;
10007
9989
  }
10008
9990
  this.headerComponent.authUrl = this.authResult.tunnistusURL, this.headerComponent.authState = H.NonAuthenticated, e ? this.handleAuthentication() : (this.authenticationCardEntry = this.showTunnistusAuthCard(
10009
- Ye.Initial,
9991
+ Qe.Initial,
10010
9992
  this.authResult.tunnistusURL
10011
9993
  ), this.authenticationCardEntry.actions$.pipe(
10012
9994
  G((t) => t.key === "start-auth"),
10013
- me(1)
9995
+ ve(1)
10014
9996
  ).subscribe(() => {
10015
9997
  this.handleAuthentication();
10016
9998
  }));
@@ -10064,12 +10046,7 @@ class As extends xc {
10064
10046
  customerName: this.customerName ?? e.customerName
10065
10047
  }).pipe(
10066
10048
  z(this.disconnected$),
10067
- Wt((s) => (this.handleChatEngineError(), console.error("Failed to join chat:", s), this.printSystem(
10068
- this.texts.getOrFallback(
10069
- "chat.join-error",
10070
- "Unable to join the chat session. Please try again."
10071
- )
10072
- ), Oe))
10049
+ vt((s) => (this.handleChatEngineError(s), Oe))
10073
10050
  ).subscribe()) : this.engine.chatRequest({
10074
10051
  customerName: e.customerName,
10075
10052
  customerEmailAddress: e.customerEmailAddress ?? "",
@@ -10079,13 +10056,21 @@ class As extends xc {
10079
10056
  ...t && { authToken: t }
10080
10057
  }).pipe(
10081
10058
  z(this.disconnected$),
10082
- Wt((s) => (console.error("Failed to start chat:", s), this.handleChatEngineError(), this.startAuthenticationFlow(), Oe))
10059
+ vt((s) => (this.handleChatEngineError(s), Oe))
10083
10060
  ).subscribe(), this.component.enableInput(), this.component.enableSkipToLatestMessage(), this.setEndConversationOption();
10084
10061
  }
10085
10062
  restartNewChat() {
10086
10063
  this.engine && (this.setSessionId(null), this.component.clearMessages(), this.removeHeaderOptions(), this.connect(this._conversationOptions));
10087
10064
  }
10088
- handleChatEngineError() {
10065
+ handleChatEngineError(e) {
10066
+ console.error(e), this.printSystem(
10067
+ this.texts.getOrFallback(
10068
+ "chat-engine.service-error",
10069
+ "We are experiencing issues. Chat is temporarily down."
10070
+ )
10071
+ ), this.resetChatState();
10072
+ }
10073
+ resetChatState() {
10089
10074
  this.component.setAuthenticationBannerStatus(H.NonAuthenticated), this.setSessionId(null), this.resetAuthState(H.NonAuthenticated), this.endConversation(), this.setStartNewChatOption();
10090
10075
  }
10091
10076
  setQueueStatus(e) {
@@ -10110,13 +10095,12 @@ class As extends xc {
10110
10095
  "email-form.error-message",
10111
10096
  "Unable to send email with the conversation."
10112
10097
  )
10113
- ), i instanceof gt || console.warn("Unhandled error:", i);
10098
+ ), i instanceof Ne || console.warn("Unhandled error:", i);
10114
10099
  }
10115
10100
  }
10116
10101
  clearPendingMessages() {
10117
- this.pendingMessages.forEach((e) => {
10102
+ for (const e of this.pendingMessages)
10118
10103
  e.remove();
10119
- });
10120
10104
  }
10121
10105
  setSessionId(e) {
10122
10106
  this.sessionId = e;
@@ -10159,11 +10143,11 @@ class As extends xc {
10159
10143
  "widget-header.not-authenticated",
10160
10144
  "Not authenticated"
10161
10145
  ), this.headerComponent.authState = H.NonAuthenticated, this.headerComponent.authUrl = this.authResult.tunnistusURL, this.authenticationCardEntry = this.showTunnistusAuthCard(
10162
- Ye.Error,
10146
+ Qe.Error,
10163
10147
  this.authResult.tunnistusURL
10164
10148
  ), this.authenticationCardEntry.actions$.pipe(
10165
10149
  G((o) => o.key === "start-auth"),
10166
- me(1)
10150
+ ve(1)
10167
10151
  ).subscribe(async () => {
10168
10152
  this.startAuthenticationFlow(!0);
10169
10153
  });
@@ -10193,11 +10177,11 @@ class As extends xc {
10193
10177
  return this.setTypingState(!1), i;
10194
10178
  }
10195
10179
  printUser(e) {
10196
- const t = this.unescapeHtml(e), i = Ni(Or(t));
10180
+ const t = this.unescapeHtml(e), i = Ui(Or(t));
10197
10181
  return this.user.print(i);
10198
10182
  }
10199
10183
  printSystem(e) {
10200
- const t = Ni(Or(e));
10184
+ const t = Ui(Or(e));
10201
10185
  return this.system.print(t);
10202
10186
  }
10203
10187
  // ============
@@ -10277,7 +10261,7 @@ class As extends xc {
10277
10261
  ]
10278
10262
  ), this.printEntry(t), t.actions$.pipe(
10279
10263
  G((i) => i.key === "submitted"),
10280
- me(1)
10264
+ ve(1)
10281
10265
  ).subscribe((i) => {
10282
10266
  t.remove(), this.user.name = i.data.name, this.component.application.storage.set("userName", {
10283
10267
  name: this.user.name
@@ -10321,7 +10305,7 @@ class As extends xc {
10321
10305
  ]
10322
10306
  ), this.printEntry(this.quitConfirmDialogEntry), this.quitConfirmDialogEntry.actions$.pipe(
10323
10307
  G((t) => t.key === "quit-chat"),
10324
- me(1)
10308
+ ve(1)
10325
10309
  ).subscribe((t) => {
10326
10310
  var i, s, r, o;
10327
10311
  ((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());
@@ -10341,7 +10325,7 @@ class As extends xc {
10341
10325
  );
10342
10326
  this.printEntry(e), e.actions$.pipe(
10343
10327
  G((t) => t.key === "submitted"),
10344
- me(1)
10328
+ ve(1)
10345
10329
  ).subscribe((t) => {
10346
10330
  e.remove(), t.data.email && this.sendConversationEmail(t.data.email);
10347
10331
  });
@@ -10359,7 +10343,7 @@ class As extends xc {
10359
10343
  ]
10360
10344
  ), this.printEntry(this.videoConfirmDialogEntry), this.videoConfirmDialogEntry.actions$.pipe(
10361
10345
  G((e) => e.key === "video-confirm"),
10362
- me(1)
10346
+ ve(1)
10363
10347
  ).subscribe((e) => {
10364
10348
  var t;
10365
10349
  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);
@@ -10367,7 +10351,7 @@ class As extends xc {
10367
10351
  }
10368
10352
  showVideoIFrame(e) {
10369
10353
  var i;
10370
- this.guestId = Ki(), this.videoIFrameElement = new nn(e, this.guestId);
10354
+ this.guestId = Ji(), this.videoIFrameElement = new nn(e, this.guestId);
10371
10355
  const t = this.component.application.root;
10372
10356
  (i = t == null ? void 0 : t.shadowRoot) == null || i.prepend(this.videoIFrameElement), this.inVideoCall = !0, this.setHeaderOption();
10373
10357
  }
@@ -10446,9 +10430,9 @@ class As extends xc {
10446
10430
  }
10447
10431
  }
10448
10432
  const Cp = async (n) => {
10449
- (await rs.getInstance(n.container)).registerProvider(
10433
+ (await os.getInstance(n.container)).registerProvider(
10450
10434
  "ace-chat",
10451
- (t) => As.getInstance("ace-chat", t)
10435
+ (t) => Ts.getInstance("ace-chat", t)
10452
10436
  );
10453
10437
  };
10454
10438
  export {