@telia-ace/ace-chat-flamingo 1.1.123-rc.43 → 1.1.123-rc.45

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
@@ -8,7 +8,7 @@ var Pn = function(i, e) {
8
8
  for (var s in n) Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
9
9
  }, Pn(i, e);
10
10
  };
11
- function Me(i, e) {
11
+ function Ne(i, e) {
12
12
  if (typeof e != "function" && e !== null)
13
13
  throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
14
14
  Pn(i, e);
@@ -104,7 +104,7 @@ function Lo(i, e) {
104
104
  return { value: c[0] ? c[1] : void 0, done: !0 };
105
105
  }
106
106
  }
107
- function $t(i) {
107
+ function wt(i) {
108
108
  var e = typeof Symbol == "function" && Symbol.iterator, t = e && i[e], n = 0;
109
109
  if (t) return t.call(i);
110
110
  if (i && typeof i.length == "number") return {
@@ -139,29 +139,29 @@ function Je(i, e, t) {
139
139
  function mt(i) {
140
140
  return this instanceof mt ? (this.v = i, this) : new mt(i);
141
141
  }
142
- function wl(i, e, t) {
142
+ function $l(i, e, t) {
143
143
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
144
144
  var n = t.apply(i, e || []), s, r = [];
145
145
  return s = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), a("next"), a("throw"), a("return", o), s[Symbol.asyncIterator] = function() {
146
146
  return this;
147
147
  }, s;
148
148
  function o(g) {
149
- return function(m) {
150
- return Promise.resolve(m).then(g, p);
149
+ return function(v) {
150
+ return Promise.resolve(v).then(g, p);
151
151
  };
152
152
  }
153
- function a(g, m) {
154
- n[g] && (s[g] = function(w) {
155
- return new Promise(function(xe, ce) {
156
- r.push([g, w, xe, ce]) > 1 || l(g, w);
153
+ function a(g, v) {
154
+ n[g] && (s[g] = function(m) {
155
+ return new Promise(function(W, G) {
156
+ r.push([g, m, W, G]) > 1 || l(g, m);
157
157
  });
158
- }, m && (s[g] = m(s[g])));
158
+ }, v && (s[g] = v(s[g])));
159
159
  }
160
- function l(g, m) {
160
+ function l(g, v) {
161
161
  try {
162
- c(n[g](m));
163
- } catch (w) {
164
- d(r[0][3], w);
162
+ c(n[g](v));
163
+ } catch (m) {
164
+ d(r[0][3], m);
165
165
  }
166
166
  }
167
167
  function c(g) {
@@ -173,14 +173,14 @@ function wl(i, e, t) {
173
173
  function p(g) {
174
174
  l("throw", g);
175
175
  }
176
- function d(g, m) {
177
- g(m), r.shift(), r.length && l(r[0][0], r[0][1]);
176
+ function d(g, v) {
177
+ g(v), r.shift(), r.length && l(r[0][0], r[0][1]);
178
178
  }
179
179
  }
180
- function $l(i) {
180
+ function wl(i) {
181
181
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
182
182
  var e = i[Symbol.asyncIterator], t;
183
- return e ? e.call(i) : (i = typeof $t == "function" ? $t(i) : i[Symbol.iterator](), t = {}, n("next"), n("throw"), n("return"), t[Symbol.asyncIterator] = function() {
183
+ return e ? e.call(i) : (i = typeof wt == "function" ? wt(i) : i[Symbol.iterator](), t = {}, n("next"), n("throw"), n("return"), t[Symbol.asyncIterator] = function() {
184
184
  return this;
185
185
  }, t);
186
186
  function n(r) {
@@ -232,12 +232,12 @@ var ni = (function() {
232
232
  if (o)
233
233
  if (this._parentage = null, Array.isArray(o))
234
234
  try {
235
- for (var a = $t(o), l = a.next(); !l.done; l = a.next()) {
235
+ for (var a = wt(o), l = a.next(); !l.done; l = a.next()) {
236
236
  var c = l.value;
237
237
  c.remove(this);
238
238
  }
239
- } catch (w) {
240
- e = { error: w };
239
+ } catch (m) {
240
+ e = { error: m };
241
241
  } finally {
242
242
  try {
243
243
  l && !l.done && (t = a.return) && t.call(a);
@@ -251,23 +251,23 @@ var ni = (function() {
251
251
  if (C(u))
252
252
  try {
253
253
  u();
254
- } catch (w) {
255
- r = w instanceof vn ? w.errors : [w];
254
+ } catch (m) {
255
+ r = m instanceof vn ? m.errors : [m];
256
256
  }
257
257
  var p = this._finalizers;
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()) {
262
- var m = g.value;
261
+ for (var d = wt(p), g = d.next(); !g.done; g = d.next()) {
262
+ var v = g.value;
263
263
  try {
264
- _r(m);
265
- } catch (w) {
266
- r = r ?? [], w instanceof vn ? r = Je(Je([], je(r)), je(w.errors)) : r.push(w);
264
+ _r(v);
265
+ } catch (m) {
266
+ r = r ?? [], m instanceof vn ? r = Je(Je([], je(r)), je(m.errors)) : r.push(m);
267
267
  }
268
268
  }
269
- } catch (w) {
270
- n = { error: w };
269
+ } catch (m) {
270
+ n = { error: m };
271
271
  } finally {
272
272
  try {
273
273
  g && !g.done && (s = d.return) && s.call(d);
@@ -339,7 +339,7 @@ function xi(i) {
339
339
  i();
340
340
  }
341
341
  var ts = (function(i) {
342
- Me(e, i);
342
+ Ne(e, i);
343
343
  function e(t) {
344
344
  var n = i.call(this) || this;
345
345
  return n.isStopped = !1, t ? (n.destination = t, Mo(t) && t.add(n)) : n.destination = _l, n;
@@ -401,7 +401,7 @@ var ts = (function(i) {
401
401
  }
402
402
  }, i;
403
403
  })(), Mn = (function(i) {
404
- Me(e, i);
404
+ Ne(e, i);
405
405
  function e(t, n, s) {
406
406
  var r = i.call(this) || this, o;
407
407
  return C(t) || !t ? o = {
@@ -509,7 +509,7 @@ function Tl(i) {
509
509
  function Ol(i) {
510
510
  return C(i == null ? void 0 : i.lift);
511
511
  }
512
- function oe(i) {
512
+ function le(i) {
513
513
  return function(e) {
514
514
  if (Ol(e))
515
515
  return e.lift(function(t) {
@@ -522,11 +522,11 @@ function oe(i) {
522
522
  throw new TypeError("Unable to lift unknown Observable type");
523
523
  };
524
524
  }
525
- function Q(i, e, t, n, s) {
525
+ function K(i, e, t, n, s) {
526
526
  return new Rl(i, e, t, n, s);
527
527
  }
528
528
  var Rl = (function(i) {
529
- Me(e, i);
529
+ Ne(e, i);
530
530
  function e(t, n, s, r, o, a) {
531
531
  var l = i.call(this, t) || this;
532
532
  return l.onFinalize = o, l.shouldUnsubscribe = a, l._next = n ? function(c) {
@@ -565,7 +565,7 @@ var Rl = (function(i) {
565
565
  i(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
566
566
  };
567
567
  }), P = (function(i) {
568
- Me(e, i);
568
+ Ne(e, i);
569
569
  function e() {
570
570
  var t = i.call(this) || this;
571
571
  return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
@@ -583,7 +583,7 @@ var Rl = (function(i) {
583
583
  if (n._throwIfClosed(), !n.isStopped) {
584
584
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
585
585
  try {
586
- for (var o = $t(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
586
+ for (var o = wt(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
587
587
  var l = a.value;
588
588
  l.next(t);
589
589
  }
@@ -644,7 +644,7 @@ var Rl = (function(i) {
644
644
  return new Ar(t, n);
645
645
  }, e;
646
646
  })(V), Ar = (function(i) {
647
- Me(e, i);
647
+ Ne(e, i);
648
648
  function e(t, n) {
649
649
  var s = i.call(this) || this;
650
650
  return s.destination = t, s.source = n, s;
@@ -662,8 +662,8 @@ var Rl = (function(i) {
662
662
  var n, s;
663
663
  return (s = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t)) !== null && s !== void 0 ? s : Po;
664
664
  }, e;
665
- })(P), pe = (function(i) {
666
- Me(e, i);
665
+ })(P), fe = (function(i) {
666
+ Ne(e, i);
667
667
  function e(t) {
668
668
  var n = i.call(this) || this;
669
669
  return n._value = t, n;
@@ -690,7 +690,7 @@ var Rl = (function(i) {
690
690
  return Date.now();
691
691
  }
692
692
  }, Pl = (function(i) {
693
- Me(e, i);
693
+ Ne(e, i);
694
694
  function e(t, n) {
695
695
  return i.call(this) || this;
696
696
  }
@@ -708,7 +708,7 @@ var Rl = (function(i) {
708
708
  },
709
709
  delegate: void 0
710
710
  }, Ml = (function(i) {
711
- Me(e, i);
711
+ Ne(e, i);
712
712
  function e(t, n) {
713
713
  var s = i.call(this, t, n) || this;
714
714
  return s.scheduler = t, s.work = n, s.pending = !1, s;
@@ -757,7 +757,7 @@ var Rl = (function(i) {
757
757
  return t === void 0 && (t = 0), new this.schedulerActionCtor(this, e).schedule(n, t);
758
758
  }, i.now = Il.now, i;
759
759
  })(), Nl = (function(i) {
760
- Me(e, i);
760
+ Ne(e, i);
761
761
  function e(t, n) {
762
762
  n === void 0 && (n = Or.now);
763
763
  var s = i.call(this, t, n) || this;
@@ -782,7 +782,7 @@ var Rl = (function(i) {
782
782
  }
783
783
  }, e;
784
784
  })(Or), xp = new Nl(Ml);
785
- var Re = new V(function(i) {
785
+ var Le = new V(function(i) {
786
786
  return i.complete();
787
787
  });
788
788
  function Ul(i) {
@@ -823,7 +823,7 @@ function Bo(i) {
823
823
  return C(i == null ? void 0 : i[jo]);
824
824
  }
825
825
  function qo(i) {
826
- return wl(this, arguments, function() {
826
+ return $l(this, arguments, function() {
827
827
  var t, n, s, r;
828
828
  return Lo(this, function(o) {
829
829
  switch (o.label) {
@@ -856,7 +856,7 @@ function qo(i) {
856
856
  function Vo(i) {
857
857
  return C(i == null ? void 0 : i.getReader);
858
858
  }
859
- function ae(i) {
859
+ function ce(i) {
860
860
  if (i instanceof V)
861
861
  return i;
862
862
  if (i != null) {
@@ -903,7 +903,7 @@ function Bl(i) {
903
903
  return new V(function(e) {
904
904
  var t, n;
905
905
  try {
906
- for (var s = $t(i), r = s.next(); !r.done; r = s.next()) {
906
+ for (var s = wt(i), 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;
@@ -937,7 +937,7 @@ function Vl(i, e) {
937
937
  return Lo(this, function(l) {
938
938
  switch (l.label) {
939
939
  case 0:
940
- l.trys.push([0, 5, 6, 11]), t = $l(i), l.label = 1;
940
+ l.trys.push([0, 5, 6, 11]), t = wl(i), l.label = 1;
941
941
  case 1:
942
942
  return [4, t.next()];
943
943
  case 2:
@@ -977,8 +977,8 @@ function He(i, e, t, n, s) {
977
977
  return r;
978
978
  }
979
979
  function Go(i, e) {
980
- return e === void 0 && (e = 0), oe(function(t, n) {
981
- t.subscribe(Q(n, function(s) {
980
+ return e === void 0 && (e = 0), le(function(t, n) {
981
+ t.subscribe(K(n, function(s) {
982
982
  return He(n, i, function() {
983
983
  return n.next(s);
984
984
  }, e);
@@ -994,17 +994,17 @@ function Go(i, e) {
994
994
  });
995
995
  }
996
996
  function Zo(i, e) {
997
- return e === void 0 && (e = 0), oe(function(t, n) {
997
+ return e === void 0 && (e = 0), le(function(t, n) {
998
998
  n.add(i.schedule(function() {
999
999
  return t.subscribe(n);
1000
1000
  }, e));
1001
1001
  });
1002
1002
  }
1003
1003
  function Wl(i, e) {
1004
- return ae(i).pipe(Zo(e), Go(e));
1004
+ return ce(i).pipe(Zo(e), Go(e));
1005
1005
  }
1006
1006
  function Gl(i, e) {
1007
- return ae(i).pipe(Zo(e), Go(e));
1007
+ return ce(i).pipe(Zo(e), Go(e));
1008
1008
  }
1009
1009
  function Zl(i, e) {
1010
1010
  return new V(function(t) {
@@ -1068,7 +1068,7 @@ function Xl(i, e) {
1068
1068
  throw Fo(i);
1069
1069
  }
1070
1070
  function Xe(i, e) {
1071
- return e ? Xl(i, e) : ae(i);
1071
+ return e ? Xl(i, e) : ce(i);
1072
1072
  }
1073
1073
  function Nn() {
1074
1074
  for (var i = [], e = 0; e < arguments.length; e++)
@@ -1085,9 +1085,9 @@ function bn(i, e) {
1085
1085
  return new V(n);
1086
1086
  }
1087
1087
  function Ai(i, e) {
1088
- return oe(function(t, n) {
1088
+ return le(function(t, n) {
1089
1089
  var s = 0;
1090
- t.subscribe(Q(n, function(r) {
1090
+ t.subscribe(K(n, function(r) {
1091
1091
  n.next(i.call(e, r, s++));
1092
1092
  }));
1093
1093
  });
@@ -1144,7 +1144,7 @@ function lc(i, e, t) {
1144
1144
  for (var s = i.length, r = new Array(s), o = s, a = s, l = function(u) {
1145
1145
  Rr(e, function() {
1146
1146
  var p = Xe(i[u], e), d = !1;
1147
- p.subscribe(Q(n, function(g) {
1147
+ p.subscribe(K(n, function(g) {
1148
1148
  r[u] = g, d || (d = !0, a--), a || n.next(t(r.slice()));
1149
1149
  }, function() {
1150
1150
  --o || n.complete();
@@ -1161,31 +1161,31 @@ function Rr(i, e, t) {
1161
1161
  function cc(i, e, t, n, s, r, o, a) {
1162
1162
  var l = [], c = 0, u = 0, p = !1, d = function() {
1163
1163
  p && !l.length && !c && e.complete();
1164
- }, g = function(w) {
1165
- return c < n ? m(w) : l.push(w);
1166
- }, m = function(w) {
1164
+ }, g = function(m) {
1165
+ return c < n ? v(m) : l.push(m);
1166
+ }, v = function(m) {
1167
1167
  c++;
1168
- var xe = !1;
1169
- ae(t(w, u++)).subscribe(Q(e, function(ce) {
1170
- e.next(ce);
1168
+ var W = !1;
1169
+ ce(t(m, u++)).subscribe(K(e, function(G) {
1170
+ e.next(G);
1171
1171
  }, function() {
1172
- xe = !0;
1172
+ W = !0;
1173
1173
  }, void 0, function() {
1174
- if (xe)
1174
+ if (W)
1175
1175
  try {
1176
1176
  c--;
1177
- for (var ce = function() {
1178
- var Ne = l.shift();
1179
- o || m(Ne);
1177
+ for (var G = function() {
1178
+ var Ue = l.shift();
1179
+ o || v(Ue);
1180
1180
  }; l.length && c < n; )
1181
- ce();
1181
+ G();
1182
1182
  d();
1183
- } catch (Ne) {
1184
- e.error(Ne);
1183
+ } catch (Ue) {
1184
+ e.error(Ue);
1185
1185
  }
1186
1186
  }));
1187
1187
  };
1188
- return i.subscribe(Q(e, g, function() {
1188
+ return i.subscribe(K(e, g, function() {
1189
1189
  p = !0, d();
1190
1190
  })), function() {
1191
1191
  };
@@ -1194,8 +1194,8 @@ function Wt(i, e, t) {
1194
1194
  return t === void 0 && (t = 1 / 0), C(e) ? Wt(function(n, s) {
1195
1195
  return Ai(function(r, o) {
1196
1196
  return e(n, r, s, o);
1197
- })(ae(i(n, s)));
1198
- }, t) : (typeof e == "number" && (t = e), oe(function(n, s) {
1197
+ })(ce(i(n, s)));
1198
+ }, t) : (typeof e == "number" && (t = e), le(function(n, s) {
1199
1199
  return cc(n, s, i, t);
1200
1200
  }));
1201
1201
  }
@@ -1204,7 +1204,7 @@ function uc(i) {
1204
1204
  }
1205
1205
  function hc(i) {
1206
1206
  return new V(function(e) {
1207
- ae(i()).subscribe(e);
1207
+ ce(i()).subscribe(e);
1208
1208
  });
1209
1209
  }
1210
1210
  var dc = ["addListener", "removeListener"], pc = ["addEventListener", "removeEventListener"], fc = ["on", "off"];
@@ -1219,7 +1219,7 @@ function Ti(i, e, t, n) {
1219
1219
  if (!r && rs(i))
1220
1220
  return Wt(function(a) {
1221
1221
  return Ti(a, e, t);
1222
- })(ae(i));
1222
+ })(ce(i));
1223
1223
  if (!r)
1224
1224
  throw new TypeError("Invalid event target");
1225
1225
  return new V(function(a) {
@@ -1253,21 +1253,21 @@ function bc() {
1253
1253
  for (var i = [], e = 0; e < arguments.length; e++)
1254
1254
  i[e] = arguments[e];
1255
1255
  var t = ss(i), n = Dl(i, 1 / 0), s = i;
1256
- return s.length ? s.length === 1 ? ae(s[0]) : uc(n)(Xe(s, t)) : Re;
1256
+ return s.length ? s.length === 1 ? ce(s[0]) : uc(n)(Xe(s, t)) : Le;
1257
1257
  }
1258
- function Z(i, e) {
1259
- return oe(function(t, n) {
1258
+ function Q(i, e) {
1259
+ return le(function(t, n) {
1260
1260
  var s = 0;
1261
- t.subscribe(Q(n, function(r) {
1261
+ t.subscribe(K(n, function(r) {
1262
1262
  return i.call(e, r, s++) && n.next(r);
1263
1263
  }));
1264
1264
  });
1265
1265
  }
1266
1266
  function vt(i) {
1267
- return oe(function(e, t) {
1267
+ return le(function(e, t) {
1268
1268
  var n = null, s = !1, r;
1269
- n = e.subscribe(Q(t, void 0, void 0, function(o) {
1270
- r = ae(i(o, vt(i)(e))), n ? (n.unsubscribe(), n = null, r.subscribe(t)) : s = !0;
1269
+ n = e.subscribe(K(t, void 0, void 0, function(o) {
1270
+ r = ce(i(o, vt(i)(e))), n ? (n.unsubscribe(), n = null, r.subscribe(t)) : s = !0;
1271
1271
  })), s && (n.unsubscribe(), n = null, r.subscribe(t));
1272
1272
  });
1273
1273
  }
@@ -1276,41 +1276,41 @@ function yn(i, e) {
1276
1276
  }
1277
1277
  function we(i) {
1278
1278
  return i <= 0 ? function() {
1279
- return Re;
1280
- } : oe(function(e, t) {
1279
+ return Le;
1280
+ } : le(function(e, t) {
1281
1281
  var n = 0;
1282
- e.subscribe(Q(t, function(s) {
1282
+ e.subscribe(K(t, function(s) {
1283
1283
  ++n <= i && (t.next(s), i <= n && t.complete());
1284
1284
  }));
1285
1285
  });
1286
1286
  }
1287
- function wn(i) {
1287
+ function $n(i) {
1288
1288
  var e = 1 / 0, t;
1289
1289
  return e <= 0 ? function() {
1290
- return Re;
1291
- } : oe(function(n, s) {
1290
+ return Le;
1291
+ } : le(function(n, s) {
1292
1292
  var r = 0, o, a = function() {
1293
1293
  o == null || o.unsubscribe(), o = null;
1294
1294
  var c, u;
1295
1295
  t != null || l();
1296
1296
  }, l = function() {
1297
1297
  var c = !1;
1298
- o = n.subscribe(Q(s, void 0, function() {
1298
+ o = n.subscribe(K(s, void 0, function() {
1299
1299
  ++r < e ? o ? a() : c = !0 : s.complete();
1300
1300
  })), c && a();
1301
1301
  };
1302
1302
  l();
1303
1303
  });
1304
1304
  }
1305
- function Le(i, e) {
1306
- return oe(function(t, n) {
1305
+ function Ie(i, e) {
1306
+ return le(function(t, n) {
1307
1307
  var s = null, r = 0, o = !1, a = function() {
1308
1308
  return o && !s && n.complete();
1309
1309
  };
1310
- t.subscribe(Q(n, function(l) {
1310
+ t.subscribe(K(n, function(l) {
1311
1311
  s == null || s.unsubscribe();
1312
1312
  var c = 0, u = r++;
1313
- ae(i(l, u)).subscribe(s = Q(n, function(p) {
1313
+ ce(i(l, u)).subscribe(s = K(n, function(p) {
1314
1314
  return n.next(e ? e(l, p, u, c++) : p);
1315
1315
  }, function() {
1316
1316
  s = null, a();
@@ -1321,19 +1321,19 @@ function Le(i, e) {
1321
1321
  });
1322
1322
  }
1323
1323
  function z(i) {
1324
- return oe(function(e, t) {
1325
- ae(i).subscribe(Q(t, function() {
1324
+ return le(function(e, t) {
1325
+ ce(i).subscribe(K(t, function() {
1326
1326
  return t.complete();
1327
1327
  }, Ei)), !t.closed && e.subscribe(t);
1328
1328
  });
1329
1329
  }
1330
1330
  function yc(i, e, t) {
1331
1331
  var n = C(i) || e || t ? { next: i, error: e, complete: t } : i;
1332
- return n ? oe(function(s, r) {
1332
+ return n ? le(function(s, r) {
1333
1333
  var o;
1334
1334
  (o = n.subscribe) === null || o === void 0 || o.call(n);
1335
1335
  var a = !0;
1336
- s.subscribe(Q(r, function(l) {
1336
+ s.subscribe(K(r, function(l) {
1337
1337
  var c;
1338
1338
  (c = n.next) === null || c === void 0 || c.call(n, l), r.next(l);
1339
1339
  }, function() {
@@ -1352,16 +1352,16 @@ function Un() {
1352
1352
  for (var i = [], e = 0; e < arguments.length; e++)
1353
1353
  i[e] = arguments[e];
1354
1354
  var t = Uo(i);
1355
- return oe(function(n, s) {
1355
+ return le(function(n, s) {
1356
1356
  for (var r = i.length, o = new Array(r), a = i.map(function() {
1357
1357
  return !1;
1358
1358
  }), l = !1, c = function(p) {
1359
- ae(i[p]).subscribe(Q(s, function(d) {
1359
+ ce(i[p]).subscribe(K(s, function(d) {
1360
1360
  o[p] = d, !l && !a[p] && (a[p] = !0, (l = a.every(Et)) && (a = null));
1361
1361
  }, Ei));
1362
1362
  }, u = 0; u < r; u++)
1363
1363
  c(u);
1364
- n.subscribe(Q(s, function(p) {
1364
+ n.subscribe(K(s, function(p) {
1365
1365
  if (l) {
1366
1366
  var d = Je([p], je(o));
1367
1367
  s.next(t ? t.apply(void 0, Je([], je(d))) : d);
@@ -1394,10 +1394,10 @@ class os {
1394
1394
  // }
1395
1395
  }
1396
1396
  var j = /* @__PURE__ */ ((i) => (i.User = "user", i.Agent = "agent", i.System = "system", i))(j || {});
1397
- const wc = () => "10000000-1000-4000-8000-100000000000".replace(
1397
+ const $c = () => "10000000-1000-4000-8000-100000000000".replace(
1398
1398
  /[018]/g,
1399
1399
  (i) => (+i ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> +i / 4).toString(16)
1400
- ), Xo = () => typeof crypto.randomUUID == "function" ? crypto.randomUUID() : wc();
1400
+ ), Xo = () => typeof crypto.randomUUID == "function" ? crypto.randomUUID() : $c();
1401
1401
  function Ir(i) {
1402
1402
  let e = i;
1403
1403
  const t = /https?:\/\/[^\s<]+/gi, n = /<a [^>]*href="([^"]*)"[^>]*>[^<]*<\/a>/g, s = i.match(t) || [], r = [];
@@ -1420,7 +1420,7 @@ function Ir(i) {
1420
1420
  }
1421
1421
  function Dn(i) {
1422
1422
  if (i.includes("aceChatGuideTitle"))
1423
- return $c(i);
1423
+ return wc(i);
1424
1424
  const e = /<a [^>]*>https?:\/\/[^<]*<\/a>/gim;
1425
1425
  return i.replace(e, (t) => {
1426
1426
  const n = Ko(t);
@@ -1454,7 +1454,7 @@ function Ko(i) {
1454
1454
  function zn(i, e) {
1455
1455
  return i.replace(/>[^<]*<\/a>/, `>${e}</a>`);
1456
1456
  }
1457
- function $c(i) {
1457
+ function wc(i) {
1458
1458
  const e = /<a [^>]*aceChatGuideTitle[^>]*>[^<]*<\/a>/gm;
1459
1459
  return i.replace(e, (t) => {
1460
1460
  const n = Ko(t);
@@ -1464,7 +1464,7 @@ function $c(i) {
1464
1464
  return o ? zn(t, o) : t;
1465
1465
  });
1466
1466
  }
1467
- class te {
1467
+ class ne {
1468
1468
  constructor(e, t, n) {
1469
1469
  this.type = e, this.sender = t, this.messages = n, this.status = "delivered", this.didUpdate = new P(), this.actions$ = new P(), this.remove$ = new P(), this.timestamp = Date.now(), this.id = Xo();
1470
1470
  }
@@ -1487,7 +1487,7 @@ class xc {
1487
1487
  this.name = e, this.print$ = new P();
1488
1488
  }
1489
1489
  print(e, t = "html", n = this.name) {
1490
- const s = new te(
1490
+ const s = new ne(
1491
1491
  j.Agent,
1492
1492
  { name: n },
1493
1493
  [
@@ -1507,7 +1507,7 @@ class kc {
1507
1507
  this.name = e, this.print$ = new P();
1508
1508
  }
1509
1509
  print(e) {
1510
- const t = new te(
1510
+ const t = new ne(
1511
1511
  j.User,
1512
1512
  { name: this.name },
1513
1513
  [
@@ -1527,7 +1527,7 @@ class Sc {
1527
1527
  this.print$ = new P(), this.name = "system";
1528
1528
  }
1529
1529
  print(e) {
1530
- const t = new te(
1530
+ const t = new ne(
1531
1531
  j.System,
1532
1532
  { name: this.name },
1533
1533
  [
@@ -1544,7 +1544,7 @@ class Sc {
1544
1544
  }
1545
1545
  class Cc {
1546
1546
  constructor(e, t) {
1547
- this.name = e, this.component = t, this.print$ = new P(), this.typingState$ = new pe(!1), this.complete$ = new P(), this.system = this.createSystem(), this.rehydrate$ = new P(), this.saveToCurrentSession$ = new P(), this.showChatOverlay$ = new pe(!1), this.onComplete = () => this.complete$.asObservable();
1547
+ this.name = e, this.component = t, this.print$ = new P(), this.typingState$ = new fe(!1), this.complete$ = new P(), this.system = this.createSystem(), this.rehydrate$ = new P(), this.saveToCurrentSession$ = new P(), this.showChatOverlay$ = new fe(!1), this.onComplete = () => this.complete$.asObservable();
1548
1548
  }
1549
1549
  connect(e = {}) {
1550
1550
  this.complete$.pipe(we(1)).subscribe(() => {
@@ -1559,7 +1559,7 @@ class Cc {
1559
1559
  this.print(j.User, e.text);
1560
1560
  }
1561
1561
  print(e, t) {
1562
- const n = new te(
1562
+ const n = new ne(
1563
1563
  e,
1564
1564
  {
1565
1565
  name: ""
@@ -1666,7 +1666,7 @@ const _c = (i) => new Jo(typeof i == "string" ? i : i + "", void 0, ls), O = (i,
1666
1666
  * Copyright 2017 Google LLC
1667
1667
  * SPDX-License-Identifier: BSD-3-Clause
1668
1668
  */
1669
- const { is: Ac, defineProperty: Tc, getOwnPropertyDescriptor: Oc, getOwnPropertyNames: Rc, getOwnPropertySymbols: Lc, getPrototypeOf: Ic } = Object, Fe = globalThis, Nr = Fe.trustedTypes, Pc = Nr ? Nr.emptyScript : "", $n = Fe.reactiveElementPolyfillSupport, Ft = (i, e) => i, Oi = { toAttribute(i, e) {
1669
+ const { is: Ac, defineProperty: Tc, getOwnPropertyDescriptor: Oc, getOwnPropertyNames: Rc, getOwnPropertySymbols: Lc, getPrototypeOf: Ic } = Object, Fe = globalThis, Nr = Fe.trustedTypes, Pc = Nr ? Nr.emptyScript : "", wn = Fe.reactiveElementPolyfillSupport, Ft = (i, e) => i, Oi = { toAttribute(i, e) {
1670
1670
  switch (e) {
1671
1671
  case Boolean:
1672
1672
  i = i ? Pc : null;
@@ -1899,7 +1899,7 @@ let dt = class extends HTMLElement {
1899
1899
  firstUpdated(e) {
1900
1900
  }
1901
1901
  };
1902
- dt.elementStyles = [], dt.shadowRootOptions = { mode: "open" }, dt[Ft("elementProperties")] = /* @__PURE__ */ new Map(), dt[Ft("finalized")] = /* @__PURE__ */ new Map(), $n == null || $n({ ReactiveElement: dt }), (Fe.reactiveElementVersions ?? (Fe.reactiveElementVersions = [])).push("2.1.1");
1902
+ dt.elementStyles = [], dt.shadowRootOptions = { mode: "open" }, dt[Ft("elementProperties")] = /* @__PURE__ */ new Map(), dt[Ft("finalized")] = /* @__PURE__ */ new Map(), wn == null || wn({ ReactiveElement: dt }), (Fe.reactiveElementVersions ?? (Fe.reactiveElementVersions = [])).push("2.1.1");
1903
1903
  /**
1904
1904
  * @license
1905
1905
  * Copyright 2017 Google LLC
@@ -1907,7 +1907,7 @@ dt.elementStyles = [], dt.shadowRootOptions = { mode: "open" }, dt[Ft("elementPr
1907
1907
  */
1908
1908
  const jt = globalThis, Ri = jt.trustedTypes, Dr = Ri ? Ri.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, ea = "$lit$", De = `lit$${Math.random().toFixed(9).slice(2)}$`, ta = "?" + De, Mc = `<${ta}>`, et = document, Gt = () => et.createComment(""), Zt = (i) => i === null || typeof i != "object" && typeof i != "function", us = Array.isArray, Nc = (i) => us(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", xn = `[
1909
1909
  \f\r]`, It = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, zr = /-->/g, Hr = />/g, Ze = RegExp(`>|${xn}(?:([^\\s"'>=/]+)(${xn}*=${xn}*(?:[^
1910
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Fr = /'/g, jr = /"/g, ia = /^(?:script|style|textarea|title)$/i, Uc = (i) => (e, ...t) => ({ _$litType$: i, strings: e, values: t }), y = Uc(1), Ie = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), Br = /* @__PURE__ */ new WeakMap(), Qe = et.createTreeWalker(et, 129);
1910
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Fr = /'/g, jr = /"/g, ia = /^(?:script|style|textarea|title)$/i, Uc = (i) => (e, ...t) => ({ _$litType$: i, strings: e, values: t }), $ = Uc(1), Pe = Symbol.for("lit-noChange"), w = Symbol.for("lit-nothing"), Br = /* @__PURE__ */ new WeakMap(), Qe = et.createTreeWalker(et, 129);
1911
1911
  function na(i, e) {
1912
1912
  if (!us(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
1913
1913
  return Dr !== void 0 ? Dr.createHTML(e) : e;
@@ -1937,8 +1937,8 @@ let Hn = class sa {
1937
1937
  for (; (s = Qe.nextNode()) !== null && l.length < a; ) {
1938
1938
  if (s.nodeType === 1) {
1939
1939
  if (s.hasAttributes()) for (const p of s.getAttributeNames()) if (p.endsWith(ea)) {
1940
- const d = u[o++], g = s.getAttribute(p).split(De), m = /([.?@])?(.*)/.exec(d);
1941
- l.push({ type: 1, index: r, name: m[2], strings: g, ctor: m[1] === "." ? Hc : m[1] === "?" ? Fc : m[1] === "@" ? jc : Yi }), s.removeAttribute(p);
1940
+ const d = u[o++], g = s.getAttribute(p).split(De), v = /([.?@])?(.*)/.exec(d);
1941
+ l.push({ type: 1, index: r, name: v[2], strings: g, ctor: v[1] === "." ? Hc : v[1] === "?" ? Fc : v[1] === "@" ? jc : Yi }), s.removeAttribute(p);
1942
1942
  } else p.startsWith(De) && (l.push({ type: 6, index: r }), s.removeAttribute(p));
1943
1943
  if (ia.test(s.tagName)) {
1944
1944
  const p = s.textContent.split(De), d = p.length - 1;
@@ -1963,7 +1963,7 @@ let Hn = class sa {
1963
1963
  };
1964
1964
  function xt(i, e, t = i, n) {
1965
1965
  var o, a;
1966
- if (e === Ie) return e;
1966
+ if (e === Pe) return e;
1967
1967
  let s = n !== void 0 ? (o = t._$Co) == null ? void 0 : o[n] : t._$Cl;
1968
1968
  const r = Zt(e) ? void 0 : e._$litDirective$;
1969
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(i), s._$AT(i, t, n)), n !== void 0 ? (t._$Co ?? (t._$Co = []))[n] = s : t._$Cl = s), s !== void 0 && (e = xt(i, s._$AS(i, e.values), s, n)), e;
@@ -2002,7 +2002,7 @@ class si {
2002
2002
  return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
2003
2003
  }
2004
2004
  constructor(e, t, n, s) {
2005
- this.type = 2, this._$AH = $, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = n, this.options = s, this._$Cv = (s == null ? void 0 : s.isConnected) ?? !0;
2005
+ this.type = 2, this._$AH = w, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = n, this.options = s, this._$Cv = (s == null ? void 0 : s.isConnected) ?? !0;
2006
2006
  }
2007
2007
  get parentNode() {
2008
2008
  let e = this._$AA.parentNode;
@@ -2016,7 +2016,7 @@ class si {
2016
2016
  return this._$AB;
2017
2017
  }
2018
2018
  _$AI(e, t = this) {
2019
- e = xt(this, e, t), Zt(e) ? e === $ || e == null || e === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : e !== this._$AH && e !== Ie && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Nc(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 !== Pe && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Nc(e) ? this.k(e) : this._(e);
2020
2020
  }
2021
2021
  O(e) {
2022
2022
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -2025,7 +2025,7 @@ class si {
2025
2025
  this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
2026
2026
  }
2027
2027
  _(e) {
2028
- this._$AH !== $ && Zt(this._$AH) ? this._$AA.nextSibling.data = e : this.T(et.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;
@@ -2067,21 +2067,21 @@ class Yi {
2067
2067
  return this._$AM._$AU;
2068
2068
  }
2069
2069
  constructor(e, t, n, s, r) {
2070
- this.type = 1, this._$AH = $, this._$AN = void 0, this.element = e, this.name = t, this._$AM = s, this.options = r, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = $;
2070
+ this.type = 1, this._$AH = w, this._$AN = void 0, this.element = e, this.name = t, this._$AM = s, this.options = r, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = w;
2071
2071
  }
2072
2072
  _$AI(e, t = this, n, s) {
2073
2073
  const r = this.strings;
2074
2074
  let o = !1;
2075
- if (r === void 0) e = xt(this, e, t, 0), o = !Zt(e) || e !== this._$AH && e !== Ie, o && (this._$AH = e);
2075
+ if (r === void 0) e = xt(this, e, t, 0), o = !Zt(e) || e !== this._$AH && e !== Pe, o && (this._$AH = e);
2076
2076
  else {
2077
2077
  const a = e;
2078
2078
  let l, c;
2079
- for (e = r[0], l = 0; l < r.length - 1; l++) c = xt(this, a[n + l], t, l), c === Ie && (c = this._$AH[l]), o || (o = !Zt(c) || c !== this._$AH[l]), c === $ ? e = $ : e !== $ && (e += (c ?? "") + r[l + 1]), this._$AH[l] = c;
2079
+ for (e = r[0], l = 0; l < r.length - 1; l++) c = xt(this, a[n + l], t, l), c === Pe && (c = this._$AH[l]), o || (o = !Zt(c) || c !== this._$AH[l]), c === w ? e = w : e !== w && (e += (c ?? "") + r[l + 1]), this._$AH[l] = c;
2080
2080
  }
2081
2081
  o && !s && this.j(e);
2082
2082
  }
2083
2083
  j(e) {
2084
- e === $ ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
2084
+ e === w ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
2085
2085
  }
2086
2086
  }
2087
2087
  let Hc = class extends Yi {
@@ -2089,7 +2089,7 @@ let Hc = class extends Yi {
2089
2089
  super(...arguments), this.type = 3;
2090
2090
  }
2091
2091
  j(e) {
2092
- this.element[this.name] = e === $ ? void 0 : e;
2092
+ this.element[this.name] = e === w ? void 0 : e;
2093
2093
  }
2094
2094
  };
2095
2095
  class Fc extends Yi {
@@ -2097,7 +2097,7 @@ class Fc extends Yi {
2097
2097
  super(...arguments), this.type = 4;
2098
2098
  }
2099
2099
  j(e) {
2100
- this.element.toggleAttribute(this.name, !!e && e !== $);
2100
+ this.element.toggleAttribute(this.name, !!e && e !== w);
2101
2101
  }
2102
2102
  }
2103
2103
  class jc extends Yi {
@@ -2105,8 +2105,8 @@ class jc extends Yi {
2105
2105
  super(e, t, n, s, r), this.type = 5;
2106
2106
  }
2107
2107
  _$AI(e, t = this) {
2108
- if ((e = xt(this, e, t, 0) ?? $) === Ie) return;
2109
- const n = this._$AH, s = e === $ && n !== $ || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, r = e !== $ && (n === $ || s);
2108
+ if ((e = xt(this, e, t, 0) ?? w) === Pe) return;
2109
+ const n = this._$AH, s = e === w && n !== w || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, r = e !== w && (n === w || s);
2110
2110
  s && this.element.removeEventListener(this.name, this, n), r && this.element.addEventListener(this.name, this, e), this._$AH = e;
2111
2111
  }
2112
2112
  handleEvent(e) {
@@ -2164,7 +2164,7 @@ let E = class extends dt {
2164
2164
  super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1);
2165
2165
  }
2166
2166
  render() {
2167
- return Ie;
2167
+ return Pe;
2168
2168
  }
2169
2169
  };
2170
2170
  var Ro;
@@ -2256,9 +2256,9 @@ const Vc = { 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 ft, ca, Qi, ua = !1, Li = !1, ds = !1, ie = !1, Gr = null, jn = !1;
2260
- const Xi = typeof window < "u" ? window : {}, $e = Xi.document || { head: {} }, ha = Xi.HTMLElement || class {
2261
- }, X = {
2259
+ let ft, ca, Qi, ua = !1, Li = !1, ds = !1, se = !1, Gr = null, jn = !1;
2260
+ const Xi = typeof window < "u" ? window : {}, xe = Xi.document || { head: {} }, ha = Xi.HTMLElement || class {
2261
+ }, J = {
2262
2262
  $flags$: 0,
2263
2263
  $resourcesUrl$: "",
2264
2264
  jmp: (i) => i(),
@@ -2269,7 +2269,7 @@ const Xi = typeof window < "u" ? window : {}, $e = Xi.document || { head: {} },
2269
2269
  }, Xc = /* @__PURE__ */ (() => {
2270
2270
  let i = !1;
2271
2271
  try {
2272
- $e.addEventListener("e", null, Object.defineProperty({}, "passive", {
2272
+ xe.addEventListener("e", null, Object.defineProperty({}, "passive", {
2273
2273
  get() {
2274
2274
  i = !0;
2275
2275
  }
@@ -2286,7 +2286,7 @@ const Xi = typeof window < "u" ? window : {}, $e = Xi.document || { head: {} },
2286
2286
  })(), da = (i, e, t, n) => {
2287
2287
  t && t.map(([s, r, o]) => {
2288
2288
  const a = tu(i, s), l = eu(e, o), c = iu(s);
2289
- X.ael(a, r, l, c), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => X.rel(a, r, l, c));
2289
+ J.ael(a, r, l, c), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => J.rel(a, r, l, c));
2290
2290
  });
2291
2291
  }, eu = (i, e) => (t) => {
2292
2292
  try {
@@ -2294,7 +2294,7 @@ const Xi = typeof window < "u" ? window : {}, $e = Xi.document || { head: {} },
2294
2294
  } catch (n) {
2295
2295
  ri(n);
2296
2296
  }
2297
- }, tu = (i, e) => e & 4 ? $e : e & 8 ? Xi : e & 16 ? $e.body : i, iu = (i) => Xc ? {
2297
+ }, tu = (i, e) => e & 4 ? xe : e & 8 ? Xi : e & 16 ? xe.body : i, iu = (i) => Xc ? {
2298
2298
  passive: (i & 1) !== 0,
2299
2299
  capture: (i & 2) !== 0
2300
2300
  } : (i & 2) !== 0, Zr = "http://www.w3.org/1999/xlink", tt = (i, e = "") => () => {
@@ -2303,11 +2303,11 @@ const Xi = typeof window < "u" ? window : {}, $e = Xi.document || { head: {} },
2303
2303
  Jc && t ? (n = n || new CSSStyleSheet(), n.replace(e)) : n = e, Mi.set(i, n);
2304
2304
  }, su = (i, e, t, n) => {
2305
2305
  let s = pa(e, t), r = Mi.get(s);
2306
- if (i = i.nodeType === 11 ? i : $e, r)
2306
+ if (i = i.nodeType === 11 ? i : xe, r)
2307
2307
  if (typeof r == "string") {
2308
2308
  i = i.head || i;
2309
2309
  let o = Yr.get(i), a;
2310
- o || Yr.set(i, o = /* @__PURE__ */ new Set()), o.has(s) || (a = $e.createElement("style"), a.innerHTML = r, i.insertBefore(a, i.querySelector("link")), o && o.add(s));
2310
+ o || Yr.set(i, o = /* @__PURE__ */ new Set()), o.has(s) || (a = xe.createElement("style"), a.innerHTML = r, i.insertBefore(a, i.querySelector("link")), o && o.add(s));
2311
2311
  } else i.adoptedStyleSheets.includes(r) || (i.adoptedStyleSheets = [...i.adoptedStyleSheets, r]);
2312
2312
  return s;
2313
2313
  }, ru = (i) => {
@@ -2371,7 +2371,7 @@ const Xi = typeof window < "u" ? window : {}, $e = Xi.document || { head: {} },
2371
2371
  if (e === "ref")
2372
2372
  n && n(i);
2373
2373
  else if (!i.__lookupSetter__(e) && e[0] === "o" && e[1] === "n")
2374
- e[2] === "-" ? e = e.slice(3) : io(Xi, a) ? e = a.slice(2) : e = a[2] + e.slice(3), t && X.rel(i, e, t, !1), n && X.ael(i, e, n, !1);
2374
+ e[2] === "-" ? e = e.slice(3) : io(Xi, a) ? e = a.slice(2) : e = a[2] + e.slice(3), t && J.rel(i, e, t, !1), n && J.ael(i, e, n, !1);
2375
2375
  else {
2376
2376
  const l = ps(n);
2377
2377
  if ((o || l && n !== null) && !s)
@@ -2403,33 +2403,33 @@ const Xi = typeof window < "u" ? window : {}, $e = Xi.document || { head: {} },
2403
2403
  // slot element does not have fallback content
2404
2404
  1
2405
2405
  ))), s.$text$ !== null)
2406
- o = s.$elm$ = $e.createTextNode(s.$text$);
2406
+ o = s.$elm$ = xe.createTextNode(s.$text$);
2407
2407
  else if (s.$flags$ & 1)
2408
- o = s.$elm$ = $e.createTextNode("");
2408
+ o = s.$elm$ = xe.createTextNode("");
2409
2409
  else {
2410
- if (ie || (ie = s.$tag$ === "svg"), o = s.$elm$ = $e.createElementNS(ie ? au : lu, s.$flags$ & 2 ? "slot-fb" : s.$tag$), ie && s.$tag$ === "foreignObject" && (ie = !1), fa(null, s, ie), cu(ft) && o["s-si"] !== ft && o.classList.add(o["s-si"] = ft), s.$children$)
2410
+ if (se || (se = s.$tag$ === "svg"), o = s.$elm$ = xe.createElementNS(se ? au : lu, s.$flags$ & 2 ? "slot-fb" : s.$tag$), se && s.$tag$ === "foreignObject" && (se = !1), fa(null, s, se), cu(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 = Pi(i, s, r, o), a && o.appendChild(a);
2413
- s.$tag$ === "svg" ? ie = !1 : o.tagName === "foreignObject" && (ie = !0);
2413
+ s.$tag$ === "svg" ? se = !1 : o.tagName === "foreignObject" && (se = !0);
2414
2414
  }
2415
2415
  return o["s-hn"] = Qi, s.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = ca, o["s-sn"] = s.$name$ || "", l = i && i.$children$ && i.$children$[t], l && l.$tag$ === s.$tag$ && i.$elm$ && Yt(i.$elm$, !1)), o;
2416
2416
  }, Yt = (i, e) => {
2417
- X.$flags$ |= 1;
2417
+ J.$flags$ |= 1;
2418
2418
  const t = i.childNodes;
2419
2419
  for (let n = t.length - 1; n >= 0; n--) {
2420
2420
  const s = t[n];
2421
2421
  s["s-hn"] !== Qi && s["s-ol"] && (va(s).insertBefore(s, gs(s)), s["s-ol"].remove(), s["s-ol"] = void 0, ds = !0), e && Yt(s, e);
2422
2422
  }
2423
- X.$flags$ &= -2;
2423
+ J.$flags$ &= -2;
2424
2424
  }, ga = (i, e, t, n, s, r) => {
2425
2425
  let o = i["s-cr"] && i["s-cr"].parentNode || i, a;
2426
2426
  for (o.shadowRoot && o.tagName === Qi && (o = o.shadowRoot); s <= r; ++s)
2427
2427
  n[s] && (a = Pi(null, t, s, i), a && (n[s].$elm$ = a, o.insertBefore(a, gs(e))));
2428
2428
  }, ma = (i, e, t, n, s) => {
2429
2429
  for (; e <= t; ++e)
2430
- (n = i[e]) && (s = n.$elm$, wa(n), Li = !0, s["s-ol"] ? s["s-ol"].remove() : Yt(s, !0), s.remove());
2430
+ (n = i[e]) && (s = n.$elm$, $a(n), Li = !0, s["s-ol"] ? s["s-ol"].remove() : Yt(s, !0), s.remove());
2431
2431
  }, fu = (i, e, t, n) => {
2432
- let s = 0, r = 0, o = 0, a = 0, l = e.length - 1, c = e[0], u = e[l], p = n.length - 1, d = n[0], g = n[p], m, w;
2432
+ let s = 0, r = 0, o = 0, a = 0, l = e.length - 1, c = e[0], u = e[l], p = n.length - 1, d = n[0], g = n[p], v, m;
2433
2433
  for (; s <= l && r <= p; )
2434
2434
  if (c == null)
2435
2435
  c = e[++s];
@@ -2453,13 +2453,13 @@ const Xi = typeof window < "u" ? window : {}, $e = Xi.document || { head: {} },
2453
2453
  o = a;
2454
2454
  break;
2455
2455
  }
2456
- o >= 0 ? (w = e[o], w.$tag$ !== d.$tag$ ? m = Pi(e && e[r], t, o, i) : (gt(w, d), e[o] = void 0, m = w.$elm$), d = n[++r]) : (m = Pi(e && e[r], t, r, i), d = n[++r]), m && va(c.$elm$).insertBefore(m, gs(c.$elm$));
2456
+ o >= 0 ? (m = e[o], m.$tag$ !== d.$tag$ ? v = Pi(e && e[r], t, o, i) : (gt(m, d), e[o] = void 0, v = m.$elm$), d = n[++r]) : (v = Pi(e && e[r], t, r, i), d = n[++r]), v && va(c.$elm$).insertBefore(v, gs(c.$elm$));
2457
2457
  }
2458
2458
  s > l ? ga(i, n[p + 1] == null ? null : n[p + 1].$elm$, t, n, r, p) : r > p && ma(e, s, l);
2459
2459
  }, bi = (i, e) => i.$tag$ === e.$tag$ ? i.$tag$ === "slot" ? i.$name$ === e.$name$ : i.$key$ === e.$key$ : !1, gs = (i) => i && i["s-ol"] || i, va = (i) => (i["s-ol"] ? i["s-ol"] : i).parentNode, gt = (i, e) => {
2460
2460
  const t = e.$elm$ = i.$elm$, n = i.$children$, s = e.$children$, r = e.$tag$, o = e.$text$;
2461
2461
  let a;
2462
- o === null ? (ie = r === "svg" ? !0 : r === "foreignObject" ? !1 : ie, r === "slot" || fa(i, e, ie), n !== null && s !== null ? fu(t, n, e, s) : s !== null ? (i.$text$ !== null && (t.textContent = ""), ga(t, null, e, s, 0, s.length - 1)) : n !== null && ma(n, 0, n.length - 1), ie && r === "svg" && (ie = !1)) : (a = t["s-cr"]) ? a.parentNode.textContent = o : i.$text$ !== o && (t.data = o);
2462
+ o === null ? (se = r === "svg" ? !0 : r === "foreignObject" ? !1 : se, r === "slot" || fa(i, e, se), n !== null && s !== null ? fu(t, n, e, s) : s !== null ? (i.$text$ !== null && (t.textContent = ""), ga(t, null, e, s, 0, s.length - 1)) : n !== null && ma(n, 0, n.length - 1), se && r === "svg" && (se = !1)) : (a = t["s-cr"]) ? a.parentNode.textContent = o : i.$text$ !== o && (t.data = o);
2463
2463
  }, ba = (i) => {
2464
2464
  let e = i.childNodes, t, n, s, r, o, a;
2465
2465
  for (n = 0, s = e.length; n < s; n++)
@@ -2478,34 +2478,34 @@ const Xi = typeof window < "u" ? window : {}, $e = Xi.document || { head: {} },
2478
2478
  }
2479
2479
  ba(t);
2480
2480
  }
2481
- }, he = [], ya = (i) => {
2481
+ }, de = [], ya = (i) => {
2482
2482
  let e, t, n, s, r, o, a = 0, l = i.childNodes, c = l.length;
2483
2483
  for (; a < c; a++) {
2484
2484
  if (e = l[a], e["s-sr"] && (t = e["s-cr"]) && t.parentNode)
2485
2485
  for (n = t.parentNode.childNodes, s = e["s-sn"], o = n.length - 1; o >= 0; o--)
2486
- t = n[o], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== e["s-hn"] && (eo(t, s) ? (r = he.find((u) => u.$nodeToRelocate$ === t), Li = !0, t["s-sn"] = t["s-sn"] || s, r ? r.$slotRefNode$ = e : he.push({
2486
+ t = n[o], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== e["s-hn"] && (eo(t, s) ? (r = de.find((u) => u.$nodeToRelocate$ === t), Li = !0, t["s-sn"] = t["s-sn"] || s, r ? r.$slotRefNode$ = e : de.push({
2487
2487
  $slotRefNode$: e,
2488
2488
  $nodeToRelocate$: t
2489
- }), t["s-sr"] && he.map((u) => {
2490
- eo(u.$nodeToRelocate$, t["s-sn"]) && (r = he.find((p) => p.$nodeToRelocate$ === t), r && !u.$slotRefNode$ && (u.$slotRefNode$ = r.$slotRefNode$));
2491
- })) : he.some((u) => u.$nodeToRelocate$ === t) || he.push({
2489
+ }), t["s-sr"] && de.map((u) => {
2490
+ eo(u.$nodeToRelocate$, t["s-sn"]) && (r = de.find((p) => p.$nodeToRelocate$ === t), r && !u.$slotRefNode$ && (u.$slotRefNode$ = r.$slotRefNode$));
2491
+ })) : de.some((u) => u.$nodeToRelocate$ === t) || de.push({
2492
2492
  $nodeToRelocate$: t
2493
2493
  }));
2494
2494
  e.nodeType === 1 && ya(e);
2495
2495
  }
2496
- }, eo = (i, e) => i.nodeType === 1 ? i.getAttribute("slot") === null && e === "" || i.getAttribute("slot") === e : i["s-sn"] === e ? !0 : e === "", wa = (i) => {
2497
- i.$attrs$ && i.$attrs$.ref && i.$attrs$.ref(null), i.$children$ && i.$children$.map(wa);
2496
+ }, eo = (i, e) => i.nodeType === 1 ? i.getAttribute("slot") === null && e === "" || i.getAttribute("slot") === e : i["s-sn"] === e ? !0 : e === "", $a = (i) => {
2497
+ i.$attrs$ && i.$attrs$.ref && i.$attrs$.ref(null), i.$children$ && i.$children$.map($a);
2498
2498
  }, gu = (i, e) => {
2499
2499
  const t = i.$hostElement$, n = i.$cmpMeta$, s = i.$vnode$ || Ii(null, null), r = uu(e) ? e : bt(null, null, e);
2500
2500
  Qi = t.tagName, n.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, n.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = t[o])), r.$tag$ = null, r.$flags$ |= 4, i.$vnode$ = r, r.$elm$ = s.$elm$ = t.shadowRoot || t, ft = t["s-sc"], ca = t["s-cr"], ua = (n.$flags$ & 1) !== 0, Li = !1, gt(s, r);
2501
2501
  {
2502
- if (X.$flags$ |= 1, ds) {
2502
+ if (J.$flags$ |= 1, ds) {
2503
2503
  ya(r.$elm$);
2504
2504
  let o, a, l, c, u, p, d = 0;
2505
- for (; d < he.length; d++)
2506
- o = he[d], a = o.$nodeToRelocate$, a["s-ol"] || (l = $e.createTextNode(""), l["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = l, a));
2507
- for (d = 0; d < he.length; d++)
2508
- if (o = he[d], a = o.$nodeToRelocate$, o.$slotRefNode$) {
2505
+ for (; d < de.length; d++)
2506
+ o = de[d], a = o.$nodeToRelocate$, a["s-ol"] || (l = xe.createTextNode(""), l["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = l, a));
2507
+ for (d = 0; d < de.length; d++)
2508
+ if (o = de[d], a = o.$nodeToRelocate$, o.$slotRefNode$) {
2509
2509
  for (c = o.$slotRefNode$.parentNode, u = o.$slotRefNode$.nextSibling, l = a["s-ol"]; l = l.previousSibling; )
2510
2510
  if (p = l["s-nr"], p && p["s-sn"] === a["s-sn"] && c === p.parentNode && (p = p.nextSibling, !p || !p["s-nr"])) {
2511
2511
  u = p;
@@ -2515,7 +2515,7 @@ const Xi = typeof window < "u" ? window : {}, $e = Xi.document || { head: {} },
2515
2515
  } else
2516
2516
  a.nodeType === 1 && (a.hidden = !0);
2517
2517
  }
2518
- Li && ba(r.$elm$), X.$flags$ &= -2, he.length = 0;
2518
+ Li && ba(r.$elm$), J.$flags$ &= -2, de.length = 0;
2519
2519
  }
2520
2520
  }, mu = (i) => i, vu = (i, e, t) => {
2521
2521
  const n = mu(i);
@@ -2528,14 +2528,14 @@ const Xi = typeof window < "u" ? window : {}, $e = Xi.document || { head: {} },
2528
2528
  })
2529
2529
  };
2530
2530
  }, bu = (i, e, t) => {
2531
- const n = X.ce(e, t);
2531
+ const n = J.ce(e, t);
2532
2532
  return i.dispatchEvent(n), n;
2533
2533
  }, yu = (i, e) => {
2534
- }, $a = (i, e) => (i.$flags$ |= 16, yu(i, i.$ancestorComponent$), Uu(() => wu(i, e))), wu = (i, e) => {
2534
+ }, wa = (i, e) => (i.$flags$ |= 16, yu(i, i.$ancestorComponent$), Uu(() => $u(i, e))), $u = (i, e) => {
2535
2535
  const t = i.$hostElement$, n = tt("scheduleUpdate", i.$cmpMeta$.$tagName$), s = t;
2536
2536
  let r;
2537
- return e ? r = yt(s, "componentWillLoad") : r = yt(s, "componentWillUpdate"), r = to(r, () => yt(s, "componentWillRender")), n(), to(r, () => $u(i, s, e));
2538
- }, $u = async (i, e, t) => {
2537
+ return e ? r = yt(s, "componentWillLoad") : r = yt(s, "componentWillUpdate"), r = to(r, () => yt(s, "componentWillRender")), n(), to(r, () => wu(i, s, e));
2538
+ }, wu = async (i, e, t) => {
2539
2539
  const n = i.$hostElement$, s = tt("update", i.$cmpMeta$.$tagName$);
2540
2540
  n["s-rc"], t && ru(i);
2541
2541
  const r = tt("render", i.$cmpMeta$.$tagName$);
@@ -2577,7 +2577,7 @@ const Xi = typeof window < "u" ? window : {}, $e = Xi.document || { head: {} },
2577
2577
  if ((a & 18) === 2) {
2578
2578
  if (l.componentShouldUpdate && l.componentShouldUpdate(t, o, e) === !1)
2579
2579
  return;
2580
- $a(s, !1);
2580
+ wa(s, !1);
2581
2581
  }
2582
2582
  }
2583
2583
  }
@@ -2600,7 +2600,7 @@ const Xi = typeof window < "u" ? window : {}, $e = Xi.document || { head: {} },
2600
2600
  {
2601
2601
  const r = /* @__PURE__ */ new Map();
2602
2602
  s.attributeChangedCallback = function(o, a, l) {
2603
- X.jmp(() => {
2603
+ J.jmp(() => {
2604
2604
  const c = r.get(o);
2605
2605
  if (this.hasOwnProperty(c))
2606
2606
  l = this[c], delete this[c];
@@ -2628,10 +2628,10 @@ const Xi = typeof window < "u" ? window : {}, $e = Xi.document || { head: {} },
2628
2628
  nu(a, o, !!(t.$flags$ & 1)), l();
2629
2629
  }
2630
2630
  }
2631
- e.$ancestorComponent$, $a(e, !0);
2631
+ e.$ancestorComponent$, wa(e, !0);
2632
2632
  }, Tu = (i) => {
2633
2633
  }, Ou = (i) => {
2634
- if ((X.$flags$ & 1) === 0) {
2634
+ if ((J.$flags$ & 1) === 0) {
2635
2635
  const e = Ki(i), t = e.$cmpMeta$, n = tt("connectedCallback", t.$tagName$);
2636
2636
  e.$flags$ & 1 ? (da(i, e, t.$listeners$), Tu(e.$lazyInstance$)) : (e.$flags$ |= 1, t.$flags$ & 12 && Ru(i), t.$members$ && Object.entries(t.$members$).map(([s, [r]]) => {
2637
2637
  if (r & 31 && i.hasOwnProperty(s)) {
@@ -2641,10 +2641,10 @@ const Xi = typeof window < "u" ? window : {}, $e = Xi.document || { head: {} },
2641
2641
  }), Au(i, e, t)), n();
2642
2642
  }
2643
2643
  }, Ru = (i) => {
2644
- const e = i["s-cr"] = $e.createComment("");
2644
+ const e = i["s-cr"] = xe.createComment("");
2645
2645
  e["s-cn"] = !0, i.insertBefore(e, i.firstChild);
2646
2646
  }, Lu = (i) => {
2647
- if ((X.$flags$ & 1) === 0) {
2647
+ if ((J.$flags$ & 1) === 0) {
2648
2648
  const e = Ki(i);
2649
2649
  e.$rmListeners$ && (e.$rmListeners$.map((t) => t()), e.$rmListeners$ = void 0);
2650
2650
  }
@@ -2681,7 +2681,7 @@ const Xi = typeof window < "u" ? window : {}, $e = Xi.document || { head: {} },
2681
2681
  };
2682
2682
  return da(i, t, e.$listeners$), ka.set(i, t);
2683
2683
  }, io = (i, e) => e in i, ri = (i, e) => (0, console.error)(i, e), Mi = /* @__PURE__ */ new Map(), Pu = [], no = [], Sa = [], Mu = (i, e) => (t) => {
2684
- i.push(t), jn || (jn = !0, e && X.$flags$ & 4 ? Nu(Bn) : X.raf(Bn));
2684
+ i.push(t), jn || (jn = !0, e && J.$flags$ & 4 ? Nu(Bn) : J.raf(Bn));
2685
2685
  }, so = (i) => {
2686
2686
  for (let e = 0; e < i.length; e++)
2687
2687
  try {
@@ -2691,7 +2691,7 @@ const Xi = typeof window < "u" ? window : {}, $e = Xi.document || { head: {} },
2691
2691
  }
2692
2692
  i.length = 0;
2693
2693
  }, Bn = () => {
2694
- so(no), so(Sa), (jn = no.length > 0) && X.raf(Bn);
2694
+ so(no), so(Sa), (jn = no.length > 0) && J.raf(Bn);
2695
2695
  }, Nu = (i) => Kc().then(i), Uu = /* @__PURE__ */ Mu(Sa, !0), Du = (i = {}) => {
2696
2696
  const { content: e = "", title: t, attributes: n = [] } = i;
2697
2697
  let s = "", r = [
@@ -2936,17 +2936,17 @@ let Ea = class extends Ji {
2936
2936
  * Copyright 2020 Google LLC
2937
2937
  * SPDX-License-Identifier: BSD-3-Clause
2938
2938
  */
2939
- const be = () => new th();
2939
+ const ye = () => new th();
2940
2940
  class th {
2941
2941
  }
2942
- const Cn = /* @__PURE__ */ new WeakMap(), ye = ai(class extends Ea {
2942
+ const Cn = /* @__PURE__ */ new WeakMap(), $e = ai(class extends Ea {
2943
2943
  render(i) {
2944
- return $;
2944
+ return w;
2945
2945
  }
2946
2946
  update(i, [e]) {
2947
2947
  var n;
2948
2948
  const t = e !== this.G;
2949
- return t && this.G !== void 0 && this.rt(void 0), (t || this.lt !== this.ct) && (this.G = e, this.ht = (n = i.options) == null ? void 0 : n.host, this.rt(this.ct = i.element)), $;
2949
+ return t && this.G !== void 0 && this.rt(void 0), (t || this.lt !== this.ct) && (this.G = e, this.ht = (n = i.options) == null ? void 0 : n.host, this.rt(this.ct = i.element)), w;
2950
2950
  }
2951
2951
  rt(i) {
2952
2952
  if (this.isConnected || (i = void 0), typeof this.G == "function") {
@@ -2992,7 +2992,7 @@ const kt = ai(class extends Ji {
2992
2992
  const o = !!e[r];
2993
2993
  o === this.st.has(r) || (s = this.nt) != null && s.has(r) || (o ? (t.add(r), this.st.add(r)) : (t.remove(r), this.st.delete(r)));
2994
2994
  }
2995
- return Ie;
2995
+ return Pe;
2996
2996
  }
2997
2997
  });
2998
2998
  var ih = Object.defineProperty, nh = (i, e, t, n) => {
@@ -3009,7 +3009,7 @@ const Ls = class Ls extends E {
3009
3009
  return (t = this.shadowRoot) == null || t.appendChild(e), e;
3010
3010
  }
3011
3011
  render() {
3012
- return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), $;
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
3015
  Ls.styles = [
@@ -3076,7 +3076,7 @@ class ch extends Ea {
3076
3076
  (e = this.l) == null || e.call(this), this.l = void 0;
3077
3077
  }
3078
3078
  render(e) {
3079
- return $;
3079
+ return w;
3080
3080
  }
3081
3081
  getController() {
3082
3082
  return sh.get(this.u);
@@ -3272,7 +3272,7 @@ var uh = Object.defineProperty, li = (i, e, t, n) => {
3272
3272
  };
3273
3273
  const Is = class Is extends E {
3274
3274
  constructor() {
3275
- super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = be(), this.widgetActive$ = new pe(!1), this.componentIsDestroyed$ = new P();
3275
+ super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = ye(), this.widgetActive$ = new fe(!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();
@@ -3313,19 +3313,19 @@ const Is = class Is extends E {
3313
3313
  var a, l, c;
3314
3314
  const e = (a = this.application) == null ? void 0 : a.branding(), t = (l = e == null ? void 0 : e.graphics) == null ? void 0 : l.trigger;
3315
3315
  if (t)
3316
- return y` <img src=${t} class="trigger-icon" alt="" /> `;
3316
+ return $` <img src=${t} class="trigger-icon" alt="" /> `;
3317
3317
  const n = (c = this.application) == null ? void 0 : c.triggerIcon;
3318
3318
  if (!n)
3319
- return $;
3319
+ return w;
3320
3320
  const s = async (u) => Qc, { type: r, content: o } = n;
3321
3321
  switch (r) {
3322
3322
  case "Telia": {
3323
3323
  const u = await s();
3324
- return u ? y`<telia-icon
3324
+ return u ? $`<telia-icon
3325
3325
  class="trigger-icon"
3326
3326
  svg=${u.svg}
3327
3327
  size="lg"
3328
- ></telia-icon>` : $;
3328
+ ></telia-icon>` : w;
3329
3329
  }
3330
3330
  // case 'FontAwesome':
3331
3331
  // return html`<i class="trigger-fa-icon fa fa-${content}"></i>`;
@@ -3335,7 +3335,7 @@ const Is = class Is extends E {
3335
3335
  // style="background: url(${content}) no-repeat center center;background-size: contain;"
3336
3336
  // ></i>`;
3337
3337
  default:
3338
- return $;
3338
+ return w;
3339
3339
  }
3340
3340
  }
3341
3341
  hideTrigger() {
@@ -3346,14 +3346,14 @@ const Is = class Is extends E {
3346
3346
  }
3347
3347
  render() {
3348
3348
  var e, t, n, s, r, o, a;
3349
- return y`<div
3349
+ return $`<div
3350
3350
  class=${kt({
3351
3351
  "trigger-container": !0,
3352
3352
  "ace-hidden": !this.triggerVisible
3353
3353
  })}
3354
- ${ye(this.containerRef)}
3354
+ ${$e(this.containerRef)}
3355
3355
  >
3356
- ${!this.active && ((s = (n = (t = (e = this.application) == null ? void 0 : e.settings) == null ? void 0 : t.branding) == null ? void 0 : n.other) != null && s.showButtonLabel) ? y`
3356
+ ${!this.active && ((s = (n = (t = (e = this.application) == null ? void 0 : e.settings) == null ? void 0 : t.branding) == null ? void 0 : n.other) != null && s.showButtonLabel) ? $`
3357
3357
  <button
3358
3358
  type="button"
3359
3359
  aria-label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
@@ -3368,7 +3368,7 @@ const Is = class Is extends E {
3368
3368
  >
3369
3369
  ${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}
3370
3370
  </button>
3371
- ` : $}
3371
+ ` : w}
3372
3372
 
3373
3373
  <button
3374
3374
  type="button"
@@ -3544,22 +3544,22 @@ Is.styles = [
3544
3544
  }
3545
3545
  `
3546
3546
  ];
3547
- let Pe = Is;
3547
+ let Me = Is;
3548
3548
  li([
3549
3549
  k({ attribute: !1 })
3550
- ], Pe.prototype, "application");
3550
+ ], Me.prototype, "application");
3551
3551
  li([
3552
3552
  T()
3553
- ], Pe.prototype, "active");
3553
+ ], Me.prototype, "active");
3554
3554
  li([
3555
3555
  T()
3556
- ], Pe.prototype, "triggerVisible");
3556
+ ], Me.prototype, "triggerVisible");
3557
3557
  li([
3558
3558
  T()
3559
- ], Pe.prototype, "loaded");
3559
+ ], Me.prototype, "loaded");
3560
3560
  li([
3561
3561
  T()
3562
- ], Pe.prototype, "icon");
3562
+ ], Me.prototype, "icon");
3563
3563
  var hh = Object.defineProperty, Ye = (i, e, t, n) => {
3564
3564
  for (var s = void 0, r = i.length - 1, o; r >= 0; r--)
3565
3565
  (o = i[r]) && (s = o(e, t, s) || s);
@@ -3623,7 +3623,7 @@ const Ta = (i) => {
3623
3623
  ], e.prototype, "parent"), e;
3624
3624
  }, Ps = class Ps extends Ta(E) {
3625
3625
  render() {
3626
- return y`Non resolved component`;
3626
+ return $`Non resolved component`;
3627
3627
  }
3628
3628
  };
3629
3629
  Ps.styles = [
@@ -3792,7 +3792,7 @@ function gh({ context: i }) {
3792
3792
  * Copyright 2022 Google LLC
3793
3793
  * SPDX-License-Identifier: BSD-3-Clause
3794
3794
  */
3795
- function le({ context: i, subscribe: e }) {
3795
+ function ue({ context: i, subscribe: e }) {
3796
3796
  return (t, n) => {
3797
3797
  typeof n == "object" ? n.addInitializer((function() {
3798
3798
  new po(this, { context: i, callback: (s) => {
@@ -3810,9 +3810,9 @@ var mh = Object.defineProperty, Ra = (i, e, t, n) => {
3810
3810
  (o = i[r]) && (s = o(e, t, s) || s);
3811
3811
  return s && mh(e, t, s), s;
3812
3812
  };
3813
- const se = "application", Ms = class Ms extends E {
3813
+ const oe = "application", Ms = class Ms extends E {
3814
3814
  constructor() {
3815
- super(...arguments), this.nodes = [], this.wrapperRef = be(), this.fullscreen = !1, this.isReady = new pe(!1);
3815
+ super(...arguments), this.nodes = [], this.wrapperRef = ye(), this.fullscreen = !1, this.isReady = new fe(!1);
3816
3816
  }
3817
3817
  addChild(e) {
3818
3818
  e.parent = this, this.nodes.push(e);
@@ -3836,7 +3836,7 @@ const se = "application", Ms = class Ms extends E {
3836
3836
  }
3837
3837
  render() {
3838
3838
  var t, n, s;
3839
- return ((s = (n = (t = this.application.settings) == null ? void 0 : t.agentConfig) == null ? void 0 : n.live) == null ? void 0 : s.isThirdPartyWidget) ?? !1 ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === ms.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), this.application.fullscreen && this.renderRoot.host.classList.add("fullscreen"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), y`<div class="widget-container" ${ye(this.wrapperRef)}>
3839
+ return ((s = (n = (t = this.application.settings) == null ? void 0 : t.agentConfig) == null ? void 0 : n.live) == null ? void 0 : s.isThirdPartyWidget) ?? !1 ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === ms.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), this.application.fullscreen && this.renderRoot.host.classList.add("fullscreen"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), $`<div class="widget-container" ${$e(this.wrapperRef)}>
3840
3840
  ${dh(this.nodes, (r) => r)}
3841
3841
  </div>`;
3842
3842
  }
@@ -4013,7 +4013,7 @@ Ra([
4013
4013
  ], Qt.prototype, "fullscreen");
4014
4014
  Ra([
4015
4015
  k({ attribute: !1 }),
4016
- gh({ context: se })
4016
+ gh({ context: oe })
4017
4017
  ], Qt.prototype, "application");
4018
4018
  var vh = Object.defineProperty, vs = (i, e, t, n) => {
4019
4019
  for (var s = void 0, r = i.length - 1, o; r >= 0; r--)
@@ -4044,9 +4044,9 @@ const Ns = class Ns extends E {
4044
4044
  }
4045
4045
  render() {
4046
4046
  if (!this.widget || this.status !== "activated")
4047
- return $;
4047
+ return w;
4048
4048
  if (this.widget.renderStrategy === ms.Trigger) {
4049
- const e = new Pe();
4049
+ const e = new Me();
4050
4050
  return e.application = this.widget, e;
4051
4051
  }
4052
4052
  return this.widget.render();
@@ -4070,7 +4070,7 @@ vs([
4070
4070
  T()
4071
4071
  ], St.prototype, "status");
4072
4072
  customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", Ui);
4073
- customElements.get("ace-trigger") || customElements.define("ace-trigger", Pe);
4073
+ customElements.get("ace-trigger") || customElements.define("ace-trigger", Me);
4074
4074
  customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Wn);
4075
4075
  customElements.get("ace-wrapper") || customElements.define("ace-wrapper", Qt);
4076
4076
  customElements.get("ace-widget") || customElements.define("ace-widget", St);
@@ -4092,8 +4092,8 @@ class bh {
4092
4092
  }
4093
4093
  class go {
4094
4094
  constructor(e, t, n, s, r) {
4095
- this.id = e, this.providerKey = t, this.providerOptions = n, this.component = r, this.provider$ = new pe(null), this.entries$ = new pe([]), this.removeEntryAction$ = new P(), this.kill$ = new P(), this.isTyping$ = new pe(!1), this.data$ = new pe({}), this.complete$ = this.provider$.pipe(
4096
- Le((l) => l ? l.onComplete() : Re)
4095
+ this.id = e, this.providerKey = t, this.providerOptions = n, this.component = r, this.provider$ = new fe(null), this.entries$ = new fe([]), this.removeEntryAction$ = new P(), this.kill$ = new P(), this.isTyping$ = new fe(!1), this.data$ = new fe({}), this.complete$ = this.provider$.pipe(
4096
+ Ie((l) => l ? l.onComplete() : Le)
4097
4097
  );
4098
4098
  const o = this._getProviderFactory(t);
4099
4099
  if (!o)
@@ -4136,7 +4136,7 @@ class go {
4136
4136
  }
4137
4137
  _addEntryRemoveHandler(e) {
4138
4138
  e.remove$.pipe(
4139
- Le(() => this.entries$),
4139
+ Ie(() => this.entries$),
4140
4140
  we(1)
4141
4141
  ).subscribe((t) => {
4142
4142
  this.removeEntryAction$.next(e), this.entries$.next(t.filter((n) => n !== e));
@@ -4148,7 +4148,7 @@ class go {
4148
4148
  }
4149
4149
  class yh {
4150
4150
  constructor(e) {
4151
- this.component = e, this.currentSession$ = new pe(null), this.sessions = [], this.storage = null, Ti(e, "handover").subscribe((t) => {
4151
+ this.component = e, this.currentSession$ = new fe(null), this.sessions = [], this.storage = null, Ti(e, "handover").subscribe((t) => {
4152
4152
  const n = this._createNewSession(
4153
4153
  t.detail.providerKey,
4154
4154
  t.detail.providerOptions
@@ -4244,11 +4244,11 @@ class yh {
4244
4244
  return this.component.properties.providers[0];
4245
4245
  }
4246
4246
  }
4247
- class wh {
4247
+ class $h {
4248
4248
  constructor(e, t) {
4249
- this.state$ = e, this.component = t, this.entries$ = new pe([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new yh(this.component), this.session$ = this.sessionService.currentSession(), this.isTyping$ = this.session$.pipe(
4250
- Le((n) => n ? n.provider$.pipe(
4251
- Le((s) => s ? s.isTyping() : Nn(!1))
4249
+ this.state$ = e, this.component = t, this.entries$ = new fe([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new yh(this.component), this.session$ = this.sessionService.currentSession(), this.isTyping$ = this.session$.pipe(
4250
+ Ie((n) => n ? n.provider$.pipe(
4251
+ Ie((s) => s ? s.isTyping() : Nn(!1))
4252
4252
  ) : Nn(!1))
4253
4253
  ), e.subscribe((n) => {
4254
4254
  switch (n) {
@@ -4273,9 +4273,9 @@ class wh {
4273
4273
  }
4274
4274
  rehydrate() {
4275
4275
  this.session$.pipe(
4276
- Le((e) => {
4276
+ Ie((e) => {
4277
4277
  if (!e)
4278
- return Re;
4278
+ return Le;
4279
4279
  const t = e.removeEntryAction$.pipe(Un(this.entries$)).pipe(
4280
4280
  Ai(([s, r]) => r.filter((o) => o.id !== s.id))
4281
4281
  ), n = e.entries().pipe(
@@ -4295,10 +4295,10 @@ class wh {
4295
4295
  (e = this.sessionService) == null || e.startSession();
4296
4296
  }
4297
4297
  }
4298
- var $h = Object.defineProperty, La = (i, e, t, n) => {
4298
+ var wh = Object.defineProperty, La = (i, e, t, n) => {
4299
4299
  for (var s = void 0, r = i.length - 1, o; r >= 0; r--)
4300
4300
  (o = i[r]) && (s = o(e, t, s) || s);
4301
- return s && $h(e, t, s), s;
4301
+ return s && wh(e, t, s), s;
4302
4302
  };
4303
4303
  const Us = class Us extends E {
4304
4304
  connectedCallback() {
@@ -4316,14 +4316,14 @@ const Us = class Us extends E {
4316
4316
  }
4317
4317
  _renderTimestamp(e, t) {
4318
4318
  if (!e && !t)
4319
- return $;
4319
+ return w;
4320
4320
  let n = "";
4321
4321
  e ? t ? n = `${e}: ${this._getTimestamp(t)}` : n = e : t && (n = this._getTimestamp(t));
4322
4322
  const s = this.application.texts.getOrFallback(
4323
4323
  "conversation.sr-only.message-from-label",
4324
4324
  "Message from"
4325
4325
  );
4326
- return y`
4326
+ return $`
4327
4327
  <p class="conversation-timestamp">
4328
4328
  <span class="sr-only">${s}</span>
4329
4329
  ${n}
@@ -4331,14 +4331,14 @@ const Us = class Us extends E {
4331
4331
  `;
4332
4332
  }
4333
4333
  _renderDeliveryStatus(e) {
4334
- return e === "delivered" ? y`<telia-icon
4334
+ return e === "delivered" ? $`<telia-icon
4335
4335
  svg=${Wc.svg}
4336
4336
  size="sm"
4337
- ></telia-icon>` : e === "failed" ? y`<telia-icon
4337
+ ></telia-icon>` : e === "failed" ? $`<telia-icon
4338
4338
  svg=${Vc.svg}
4339
4339
  size="sm"
4340
4340
  title="Message could not be delivered"
4341
- ></telia-icon>` : y`<telia-icon svg=${oa.svg} size="sm"></telia-icon>`;
4341
+ ></telia-icon>` : $`<telia-icon svg=${oa.svg} size="sm"></telia-icon>`;
4342
4342
  }
4343
4343
  _dispatchEntryAction(e) {
4344
4344
  this.entry.actions$.next(e.detail);
@@ -4347,10 +4347,10 @@ const Us = class Us extends E {
4347
4347
  var e, t;
4348
4348
  switch (this.entry.type) {
4349
4349
  case j.System:
4350
- return y`
4350
+ return $`
4351
4351
  <div class="conversation-system-message">
4352
4352
  ${this.entry.messages.map(
4353
- (n) => y`
4353
+ (n) => $`
4354
4354
  <div class="message-container">
4355
4355
  <div class="message-content">
4356
4356
  <conversation-group
@@ -4365,19 +4365,19 @@ const Us = class Us extends E {
4365
4365
  </div>
4366
4366
  `;
4367
4367
  case j.Agent:
4368
- return y`<div
4368
+ return $`<div
4369
4369
  class=${kt({
4370
4370
  "conversation-agent-message": !0,
4371
4371
  "has-avatar": !!((e = this.entry.sender) != null && e.avatar)
4372
4372
  })}
4373
4373
  >
4374
- ${typeof ((t = this.entry.sender) == null ? void 0 : t.avatar) == "string" ? y`<div class="avatar">
4374
+ ${typeof ((t = this.entry.sender) == null ? void 0 : t.avatar) == "string" ? $`<div class="avatar">
4375
4375
  <img src=${this.entry.sender.avatar} />
4376
- </div>` : $}
4376
+ </div>` : w}
4377
4377
 
4378
4378
  <div class="entry-content">
4379
4379
  ${this.entry.messages.map(
4380
- (n) => y`
4380
+ (n) => $`
4381
4381
  <div class="message-container">
4382
4382
  <div class="message-content">
4383
4383
  <conversation-group .group=${n}></conversation-group>
@@ -4394,7 +4394,7 @@ const Us = class Us extends E {
4394
4394
  </div>
4395
4395
  </div>`;
4396
4396
  case j.User:
4397
- return y`<div
4397
+ return $`<div
4398
4398
  class=${kt({
4399
4399
  "conversation-user-message": !0,
4400
4400
  "has-error": this.entry.status === "failed"
@@ -4402,7 +4402,7 @@ const Us = class Us extends E {
4402
4402
  >
4403
4403
  <div class="entry-content">
4404
4404
  ${this.entry.messages.map(
4405
- (n) => y`
4405
+ (n) => $`
4406
4406
  <div class="message-container">
4407
4407
  <div class="message-content">
4408
4408
  <conversation-group .group=${n}></conversation-group>
@@ -4420,7 +4420,7 @@ const Us = class Us extends E {
4420
4420
  </div>
4421
4421
  </div>`;
4422
4422
  default:
4423
- return $;
4423
+ return w;
4424
4424
  }
4425
4425
  }
4426
4426
  };
@@ -4564,7 +4564,7 @@ La([
4564
4564
  k({ attribute: !1 })
4565
4565
  ], Xt.prototype, "entry");
4566
4566
  La([
4567
- le({ context: se }),
4567
+ ue({ context: oe }),
4568
4568
  k({ attribute: !1 })
4569
4569
  ], Xt.prototype, "application");
4570
4570
  var xh = Object.defineProperty, Ia = (i, e, t, n) => {
@@ -4581,9 +4581,9 @@ const Ds = class Ds extends E {
4581
4581
  this.dispatchEvent(t);
4582
4582
  }
4583
4583
  render() {
4584
- return y`<div class="conversation-feed">
4584
+ return $`<div class="conversation-feed">
4585
4585
  ${this.entries.map(
4586
- (e) => y`<div class="conversation-entry" tabindex="-1">
4586
+ (e) => $`<div class="conversation-entry" tabindex="-1">
4587
4587
  <conversation-entry
4588
4588
  .entry=${e}
4589
4589
  ${Vn({
@@ -4596,7 +4596,7 @@ const Ds = class Ds extends E {
4596
4596
  </conversation-entry>
4597
4597
  </div>`
4598
4598
  )}
4599
- ${this.loading ? y`<ace-typing-state
4599
+ ${this.loading ? $`<ace-typing-state
4600
4600
  ${Vn({
4601
4601
  keyframeOptions: {},
4602
4602
  in: lo,
@@ -4604,7 +4604,7 @@ const Ds = class Ds extends E {
4604
4604
  stabilizeOut: !0,
4605
4605
  skipInitial: !1
4606
4606
  })}
4607
- ></ace-typing-state>` : $}
4607
+ ></ace-typing-state>` : w}
4608
4608
  </div>`;
4609
4609
  }
4610
4610
  };
@@ -4650,25 +4650,25 @@ var Sh = Object.defineProperty, Ch = (i, e, t, n) => {
4650
4650
  };
4651
4651
  const zs = class zs extends E {
4652
4652
  render() {
4653
- return y`
4653
+ return $`
4654
4654
  <div class="message-group">
4655
4655
  ${this.group.items.map(
4656
- ([e, t, n]) => y`
4656
+ ([e, t, n]) => $`
4657
4657
  ${kh(
4658
4658
  e,
4659
4659
  [
4660
- ["html", () => y`<message-type-html .message=${t} />`],
4660
+ ["html", () => $`<message-type-html .message=${t} />`],
4661
4661
  [
4662
4662
  "markdown",
4663
- () => y`<message-type-markdown .message=${t} />`
4663
+ () => $`<message-type-markdown .message=${t} />`
4664
4664
  ]
4665
4665
  ],
4666
4666
  () => {
4667
4667
  const s = customElements.get(e);
4668
4668
  if (!s)
4669
- return $;
4669
+ return w;
4670
4670
  const r = new s(n || null);
4671
- return y`${r}`;
4671
+ return $`${r}`;
4672
4672
  }
4673
4673
  )}
4674
4674
  `
@@ -4699,7 +4699,7 @@ Ch([
4699
4699
  ], Di.prototype, "group");
4700
4700
  const Hs = class Hs extends E {
4701
4701
  render() {
4702
- return y`<div class="container">
4702
+ return $`<div class="container">
4703
4703
  <div class="dot"></div>
4704
4704
  <div class="dot"></div>
4705
4705
  <div class="dot"></div>
@@ -4751,11 +4751,11 @@ let Gn = Hs;
4751
4751
  */
4752
4752
  class Zn extends Ji {
4753
4753
  constructor(e) {
4754
- if (super(e), this.it = $, e.type !== oi.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
4754
+ if (super(e), this.it = w, e.type !== oi.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
4755
4755
  }
4756
4756
  render(e) {
4757
- if (e === $ || e == null) return this._t = void 0, this.it = e;
4758
- if (e === Ie) return e;
4757
+ if (e === w || e == null) return this._t = void 0, this.it = e;
4758
+ if (e === Pe) return e;
4759
4759
  if (typeof e != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
4760
4760
  if (e === this.it) return this._t;
4761
4761
  this.it = e;
@@ -4774,17 +4774,17 @@ const {
4774
4774
  getOwnPropertyDescriptor: Th
4775
4775
  } = Object;
4776
4776
  let {
4777
- freeze: K,
4778
- seal: re,
4777
+ freeze: ee,
4778
+ seal: ae,
4779
4779
  create: Ma
4780
4780
  } = Object, {
4781
4781
  apply: Yn,
4782
4782
  construct: Qn
4783
4783
  } = typeof Reflect < "u" && Reflect;
4784
- K || (K = function(e) {
4784
+ ee || (ee = function(e) {
4785
4785
  return e;
4786
4786
  });
4787
- re || (re = function(e) {
4787
+ ae || (ae = function(e) {
4788
4788
  return e;
4789
4789
  });
4790
4790
  Yn || (Yn = function(e, t, n) {
@@ -4793,8 +4793,8 @@ Yn || (Yn = function(e, t, n) {
4793
4793
  Qn || (Qn = function(e, t) {
4794
4794
  return new e(...t);
4795
4795
  });
4796
- const yi = J(Array.prototype.forEach), Oh = J(Array.prototype.lastIndexOf), vo = J(Array.prototype.pop), Pt = J(Array.prototype.push), Rh = J(Array.prototype.splice), Si = J(String.prototype.toLowerCase), An = J(String.prototype.toString), bo = J(String.prototype.match), Mt = J(String.prototype.replace), Lh = J(String.prototype.indexOf), Ih = J(String.prototype.trim), ue = J(Object.prototype.hasOwnProperty), G = J(RegExp.prototype.test), Nt = Ph(TypeError);
4797
- function J(i) {
4796
+ const yi = te(Array.prototype.forEach), Oh = te(Array.prototype.lastIndexOf), vo = te(Array.prototype.pop), Pt = te(Array.prototype.push), Rh = te(Array.prototype.splice), Si = te(String.prototype.toLowerCase), An = te(String.prototype.toString), bo = te(String.prototype.match), Mt = te(String.prototype.replace), Lh = te(String.prototype.indexOf), Ih = te(String.prototype.trim), he = te(Object.prototype.hasOwnProperty), Y = te(RegExp.prototype.test), Nt = Ph(TypeError);
4797
+ function te(i) {
4798
4798
  return function(e) {
4799
4799
  e instanceof RegExp && (e.lastIndex = 0);
4800
4800
  for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
@@ -4825,13 +4825,13 @@ function x(i, e) {
4825
4825
  }
4826
4826
  function Mh(i) {
4827
4827
  for (let e = 0; e < i.length; e++)
4828
- ue(i, e) || (i[e] = null);
4828
+ he(i, e) || (i[e] = null);
4829
4829
  return i;
4830
4830
  }
4831
4831
  function Ee(i) {
4832
4832
  const e = Ma(null);
4833
4833
  for (const [t, n] of Pa(i))
4834
- ue(i, t) && (Array.isArray(n) ? e[t] = Mh(n) : n && typeof n == "object" && n.constructor === Object ? e[t] = Ee(n) : e[t] = n);
4834
+ he(i, t) && (Array.isArray(n) ? e[t] = Mh(n) : n && typeof n == "object" && n.constructor === Object ? e[t] = Ee(n) : e[t] = n);
4835
4835
  return e;
4836
4836
  }
4837
4837
  function Ut(i, e) {
@@ -4839,9 +4839,9 @@ function Ut(i, e) {
4839
4839
  const n = Th(i, e);
4840
4840
  if (n) {
4841
4841
  if (n.get)
4842
- return J(n.get);
4842
+ return te(n.get);
4843
4843
  if (typeof n.value == "function")
4844
- return J(n.value);
4844
+ return te(n.value);
4845
4845
  }
4846
4846
  i = Ah(i);
4847
4847
  }
@@ -4850,13 +4850,13 @@ function Ut(i, e) {
4850
4850
  }
4851
4851
  return t;
4852
4852
  }
4853
- const yo = 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"]), Tn = 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"]), On = 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"]), Nh = 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"]), Rn = 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"]), Uh = K(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), wo = K(["#text"]), $o = 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"]), Ln = 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"]), xo = 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"]), wi = K(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Dh = re(/\{\{[\w\W]*|[\w\W]*\}\}/gm), zh = re(/<%[\w\W]*|[\w\W]*%>/gm), Hh = re(/\$\{[\w\W]*/gm), Fh = re(/^data-[\-\w.\u00B7-\uFFFF]+$/), jh = re(/^aria-[\-\w]+$/), Na = re(
4853
+ const yo = ee(["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"]), Tn = ee(["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"]), On = ee(["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"]), Nh = ee(["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"]), Rn = ee(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Uh = ee(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), $o = ee(["#text"]), wo = ee(["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"]), Ln = ee(["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"]), xo = ee(["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"]), $i = ee(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Dh = ae(/\{\{[\w\W]*|[\w\W]*\}\}/gm), zh = ae(/<%[\w\W]*|[\w\W]*%>/gm), Hh = ae(/\$\{[\w\W]*/gm), Fh = ae(/^data-[\-\w.\u00B7-\uFFFF]+$/), jh = ae(/^aria-[\-\w]+$/), Na = ae(
4854
4854
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
4855
4855
  // eslint-disable-line no-useless-escape
4856
- ), Bh = re(/^(?:\w+script|data):/i), qh = re(
4856
+ ), Bh = ae(/^(?:\w+script|data):/i), qh = ae(
4857
4857
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
4858
4858
  // eslint-disable-line no-control-regex
4859
- ), Ua = re(/^html$/i), Vh = re(/^[a-z][.\w]*(-[.\w]+)+$/i);
4859
+ ), Ua = ae(/^html$/i), Vh = ae(/^[a-z][.\w]*(-[.\w]+)+$/i);
4860
4860
  var ko = /* @__PURE__ */ Object.freeze({
4861
4861
  __proto__: null,
4862
4862
  ARIA_ATTR: jh,
@@ -4913,7 +4913,7 @@ const Dt = {
4913
4913
  };
4914
4914
  function Da() {
4915
4915
  let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Wh();
4916
- const e = (b) => Da(b);
4916
+ const e = (y) => Da(y);
4917
4917
  if (e.version = "3.2.6", e.removed = [], !i || !i.document || i.document.nodeType !== Dt.document || !i.Element)
4918
4918
  return e.isSupported = !1, e;
4919
4919
  let {
@@ -4929,10 +4929,10 @@ function Da() {
4929
4929
  HTMLFormElement: p,
4930
4930
  DOMParser: d,
4931
4931
  trustedTypes: g
4932
- } = i, m = l.prototype, w = Ut(m, "cloneNode"), xe = Ut(m, "remove"), ce = Ut(m, "nextSibling"), Ne = Ut(m, "childNodes"), Be = Ut(m, "parentNode");
4932
+ } = i, v = l.prototype, m = Ut(v, "cloneNode"), W = Ut(v, "remove"), G = Ut(v, "nextSibling"), Ue = Ut(v, "childNodes"), Be = Ut(v, "parentNode");
4933
4933
  if (typeof o == "function") {
4934
- const b = t.createElement("template");
4935
- b.content && b.content.ownerDocument && (t = b.content.ownerDocument);
4934
+ const y = t.createElement("template");
4935
+ y.content && y.content.ownerDocument && (t = y.content.ownerDocument);
4936
4936
  }
4937
4937
  let M, qe = "";
4938
4938
  const {
@@ -4943,7 +4943,7 @@ function Da() {
4943
4943
  } = t, {
4944
4944
  importNode: sl
4945
4945
  } = n;
4946
- let W = So();
4946
+ let Z = So();
4947
4947
  e.isSupported = typeof Pa == "function" && typeof Be == "function" && Ve && Ve.createHTMLDocument !== void 0;
4948
4948
  const {
4949
4949
  MUSTACHE_EXPR: nn,
@@ -4958,9 +4958,9 @@ function Da() {
4958
4958
  let {
4959
4959
  IS_ALLOWED_URI: ir
4960
4960
  } = ko, N = null;
4961
- const nr = x({}, [...yo, ...Tn, ...On, ...Rn, ...wo]);
4961
+ const nr = x({}, [...yo, ...Tn, ...On, ...Rn, ...$o]);
4962
4962
  let D = null;
4963
- const sr = x({}, [...$o, ...Ln, ...xo, ...wi]);
4963
+ const sr = x({}, [...wo, ...Ln, ...xo, ...$i]);
4964
4964
  let L = Object.seal(Ma(null, {
4965
4965
  tagNameCheck: {
4966
4966
  writable: !0,
@@ -5001,7 +5001,7 @@ function Da() {
5001
5001
  let h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
5002
5002
  if (!(ut && ut === h)) {
5003
5003
  if ((!h || typeof h != "object") && (h = {}), h = Ee(h), Rt = // eslint-disable-next-line unicorn/prefer-includes
5004
- dl.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? pl : h.PARSER_MEDIA_TYPE, U = Rt === "application/xhtml+xml" ? An : Si, N = ue(h, "ALLOWED_TAGS") ? x({}, h.ALLOWED_TAGS, U) : nr, D = ue(h, "ALLOWED_ATTR") ? x({}, h.ALLOWED_ATTR, U) : sr, pn = ue(h, "ALLOWED_NAMESPACES") ? x({}, h.ALLOWED_NAMESPACES, An) : ul, hn = ue(h, "ADD_URI_SAFE_ATTR") ? x(Ee(pr), h.ADD_URI_SAFE_ATTR, U) : pr, hr = ue(h, "ADD_DATA_URI_TAGS") ? x(Ee(dr), h.ADD_DATA_URI_TAGS, U) : dr, lt = ue(h, "FORBID_CONTENTS") ? x({}, h.FORBID_CONTENTS, U) : ur, Tt = ue(h, "FORBID_TAGS") ? x({}, h.FORBID_TAGS, U) : Ee({}), on = ue(h, "FORBID_ATTR") ? x({}, h.FORBID_ATTR, U) : Ee({}), at = ue(h, "USE_PROFILES") ? h.USE_PROFILES : !1, rr = h.ALLOW_ARIA_ATTR !== !1, an = h.ALLOW_DATA_ATTR !== !1, or = h.ALLOW_UNKNOWN_PROTOCOLS || !1, ar = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, rt = h.SAFE_FOR_TEMPLATES || !1, ui = h.SAFE_FOR_XML !== !1, Ge = h.WHOLE_DOCUMENT || !1, ot = h.RETURN_DOM || !1, hi = h.RETURN_DOM_FRAGMENT || !1, di = h.RETURN_TRUSTED_TYPE || !1, cn = h.FORCE_BODY || !1, lr = h.SANITIZE_DOM !== !1, cr = h.SANITIZE_NAMED_PROPS || !1, un = h.KEEP_CONTENT !== !1, Ot = h.IN_PLACE || !1, ir = h.ALLOWED_URI_REGEXP || Na, ct = h.NAMESPACE || ke, gi = h.MATHML_TEXT_INTEGRATION_POINTS || gi, mi = h.HTML_INTEGRATION_POINTS || mi, L = h.CUSTOM_ELEMENT_HANDLING || {}, h.CUSTOM_ELEMENT_HANDLING && fr(h.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (L.tagNameCheck = h.CUSTOM_ELEMENT_HANDLING.tagNameCheck), h.CUSTOM_ELEMENT_HANDLING && fr(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 && (an = !1), hi && (ot = !0), at && (N = x({}, wo), D = [], at.html === !0 && (x(N, yo), x(D, $o)), at.svg === !0 && (x(N, Tn), x(D, Ln), x(D, wi)), at.svgFilters === !0 && (x(N, On), x(D, Ln), x(D, wi)), at.mathMl === !0 && (x(N, Rn), x(D, xo), x(D, wi))), h.ADD_TAGS && (N === nr && (N = Ee(N)), x(N, h.ADD_TAGS, U)), h.ADD_ATTR && (D === sr && (D = Ee(D)), x(D, h.ADD_ATTR, U)), h.ADD_URI_SAFE_ATTR && x(hn, h.ADD_URI_SAFE_ATTR, U), h.FORBID_CONTENTS && (lt === ur && (lt = Ee(lt)), x(lt, h.FORBID_CONTENTS, U)), un && (N["#text"] = !0), Ge && x(N, ["html", "head", "body"]), N.table && (x(N, ["tbody"]), delete Tt.tbody), h.TRUSTED_TYPES_POLICY) {
5004
+ dl.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? pl : h.PARSER_MEDIA_TYPE, U = Rt === "application/xhtml+xml" ? An : Si, N = he(h, "ALLOWED_TAGS") ? x({}, h.ALLOWED_TAGS, U) : nr, D = he(h, "ALLOWED_ATTR") ? x({}, h.ALLOWED_ATTR, U) : sr, pn = he(h, "ALLOWED_NAMESPACES") ? x({}, h.ALLOWED_NAMESPACES, An) : ul, hn = he(h, "ADD_URI_SAFE_ATTR") ? x(Ee(pr), h.ADD_URI_SAFE_ATTR, U) : pr, hr = he(h, "ADD_DATA_URI_TAGS") ? x(Ee(dr), h.ADD_DATA_URI_TAGS, U) : dr, lt = he(h, "FORBID_CONTENTS") ? x({}, h.FORBID_CONTENTS, U) : ur, Tt = he(h, "FORBID_TAGS") ? x({}, h.FORBID_TAGS, U) : Ee({}), on = he(h, "FORBID_ATTR") ? x({}, h.FORBID_ATTR, U) : Ee({}), at = he(h, "USE_PROFILES") ? h.USE_PROFILES : !1, rr = h.ALLOW_ARIA_ATTR !== !1, an = h.ALLOW_DATA_ATTR !== !1, or = h.ALLOW_UNKNOWN_PROTOCOLS || !1, ar = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, rt = h.SAFE_FOR_TEMPLATES || !1, ui = h.SAFE_FOR_XML !== !1, Ge = h.WHOLE_DOCUMENT || !1, ot = h.RETURN_DOM || !1, hi = h.RETURN_DOM_FRAGMENT || !1, di = h.RETURN_TRUSTED_TYPE || !1, cn = h.FORCE_BODY || !1, lr = h.SANITIZE_DOM !== !1, cr = h.SANITIZE_NAMED_PROPS || !1, un = h.KEEP_CONTENT !== !1, Ot = h.IN_PLACE || !1, ir = h.ALLOWED_URI_REGEXP || Na, ct = h.NAMESPACE || ke, gi = h.MATHML_TEXT_INTEGRATION_POINTS || gi, mi = h.HTML_INTEGRATION_POINTS || mi, L = h.CUSTOM_ELEMENT_HANDLING || {}, h.CUSTOM_ELEMENT_HANDLING && fr(h.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (L.tagNameCheck = h.CUSTOM_ELEMENT_HANDLING.tagNameCheck), h.CUSTOM_ELEMENT_HANDLING && fr(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 && (an = !1), hi && (ot = !0), at && (N = x({}, $o), D = [], at.html === !0 && (x(N, yo), x(D, wo)), at.svg === !0 && (x(N, Tn), x(D, Ln), x(D, $i)), at.svgFilters === !0 && (x(N, On), x(D, Ln), x(D, $i)), at.mathMl === !0 && (x(N, Rn), x(D, xo), x(D, $i))), h.ADD_TAGS && (N === nr && (N = Ee(N)), x(N, h.ADD_TAGS, U)), h.ADD_ATTR && (D === sr && (D = Ee(D)), x(D, h.ADD_ATTR, U)), h.ADD_URI_SAFE_ATTR && x(hn, h.ADD_URI_SAFE_ATTR, U), h.FORBID_CONTENTS && (lt === ur && (lt = Ee(lt)), x(lt, h.FORBID_CONTENTS, U)), un && (N["#text"] = !0), Ge && x(N, ["html", "head", "body"]), N.table && (x(N, ["tbody"]), delete Tt.tbody), h.TRUSTED_TYPES_POLICY) {
5005
5005
  if (typeof h.TRUSTED_TYPES_POLICY.createHTML != "function")
5006
5006
  throw Nt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
5007
5007
  if (typeof h.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -5009,7 +5009,7 @@ function Da() {
5009
5009
  M = h.TRUSTED_TYPES_POLICY, qe = M.createHTML("");
5010
5010
  } else
5011
5011
  M === void 0 && (M = Gh(g, s)), M !== null && typeof qe == "string" && (qe = M.createHTML(""));
5012
- K && K(h), ut = h;
5012
+ ee && ee(h), ut = h;
5013
5013
  }
5014
5014
  }, gr = x({}, [...Tn, ...On, ...Nh]), mr = x({}, [...Rn, ...Uh]), gl = function(h) {
5015
5015
  let f = Be(h);
@@ -5017,16 +5017,16 @@ function Da() {
5017
5017
  namespaceURI: ct,
5018
5018
  tagName: "template"
5019
5019
  });
5020
- const v = Si(h.tagName), R = Si(f.tagName);
5021
- return pn[h.namespaceURI] ? h.namespaceURI === fi ? f.namespaceURI === ke ? v === "svg" : f.namespaceURI === pi ? v === "svg" && (R === "annotation-xml" || gi[R]) : !!gr[v] : h.namespaceURI === pi ? f.namespaceURI === ke ? v === "math" : f.namespaceURI === fi ? v === "math" && mi[R] : !!mr[v] : h.namespaceURI === ke ? f.namespaceURI === fi && !mi[R] || f.namespaceURI === pi && !gi[R] ? !1 : !mr[v] && (hl[v] || !gr[v]) : !!(Rt === "application/xhtml+xml" && pn[h.namespaceURI]) : !1;
5022
- }, ge = function(h) {
5020
+ const b = Si(h.tagName), R = Si(f.tagName);
5021
+ return pn[h.namespaceURI] ? h.namespaceURI === fi ? f.namespaceURI === ke ? b === "svg" : f.namespaceURI === pi ? b === "svg" && (R === "annotation-xml" || gi[R]) : !!gr[b] : h.namespaceURI === pi ? f.namespaceURI === ke ? b === "math" : f.namespaceURI === fi ? b === "math" && mi[R] : !!mr[b] : h.namespaceURI === ke ? f.namespaceURI === fi && !mi[R] || f.namespaceURI === pi && !gi[R] ? !1 : !mr[b] && (hl[b] || !gr[b]) : !!(Rt === "application/xhtml+xml" && pn[h.namespaceURI]) : !1;
5022
+ }, me = function(h) {
5023
5023
  Pt(e.removed, {
5024
5024
  element: h
5025
5025
  });
5026
5026
  try {
5027
5027
  Be(h).removeChild(h);
5028
5028
  } catch {
5029
- xe(h);
5029
+ W(h);
5030
5030
  }
5031
5031
  }, ht = function(h, f) {
5032
5032
  try {
@@ -5043,7 +5043,7 @@ function Da() {
5043
5043
  if (f.removeAttribute(h), h === "is")
5044
5044
  if (ot || hi)
5045
5045
  try {
5046
- ge(f);
5046
+ me(f);
5047
5047
  } catch {
5048
5048
  }
5049
5049
  else
@@ -5052,12 +5052,12 @@ function Da() {
5052
5052
  } catch {
5053
5053
  }
5054
5054
  }, vr = function(h) {
5055
- let f = null, v = null;
5055
+ let f = null, b = null;
5056
5056
  if (cn)
5057
5057
  h = "<remove></remove>" + h;
5058
5058
  else {
5059
5059
  const I = bo(h, /^[\r\n\t ]+/);
5060
- v = I && I[0];
5060
+ b = I && I[0];
5061
5061
  }
5062
5062
  Rt === "application/xhtml+xml" && ct === ke && (h = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + h + "</body></html>");
5063
5063
  const R = M ? M.createHTML(h) : h;
@@ -5074,7 +5074,7 @@ function Da() {
5074
5074
  }
5075
5075
  }
5076
5076
  const B = f.body || f.documentElement;
5077
- return h && v && B.insertBefore(t.createTextNode(v), B.childNodes[0] || null), ct === ke ? nl.call(f, Ge ? "html" : "body")[0] : Ge ? f.documentElement : B;
5077
+ return h && b && B.insertBefore(t.createTextNode(b), B.childNodes[0] || null), ct === ke ? nl.call(f, Ge ? "html" : "body")[0] : Ge ? f.documentElement : B;
5078
5078
  }, br = function(h) {
5079
5079
  return We.call(
5080
5080
  h.ownerDocument || h,
@@ -5088,60 +5088,60 @@ function Da() {
5088
5088
  }, yr = function(h) {
5089
5089
  return typeof a == "function" && h instanceof a;
5090
5090
  };
5091
- function Se(b, h, f) {
5092
- yi(b, (v) => {
5093
- v.call(e, h, f, ut);
5091
+ function Se(y, h, f) {
5092
+ yi(y, (b) => {
5093
+ b.call(e, h, f, ut);
5094
5094
  });
5095
5095
  }
5096
- const wr = function(h) {
5096
+ const $r = function(h) {
5097
5097
  let f = null;
5098
- if (Se(W.beforeSanitizeElements, h, null), gn(h))
5099
- return ge(h), !0;
5100
- const v = U(h.nodeName);
5101
- if (Se(W.uponSanitizeElement, h, {
5102
- tagName: v,
5098
+ if (Se(Z.beforeSanitizeElements, h, null), gn(h))
5099
+ return me(h), !0;
5100
+ const b = U(h.nodeName);
5101
+ if (Se(Z.uponSanitizeElement, h, {
5102
+ tagName: b,
5103
5103
  allowedTags: N
5104
- }), ui && h.hasChildNodes() && !yr(h.firstElementChild) && G(/<[/\w!]/g, h.innerHTML) && G(/<[/\w!]/g, h.textContent) || h.nodeType === Dt.progressingInstruction || ui && h.nodeType === Dt.comment && G(/<[/\w]/g, h.data))
5105
- return ge(h), !0;
5106
- if (!N[v] || Tt[v]) {
5107
- if (!Tt[v] && xr(v) && (L.tagNameCheck instanceof RegExp && G(L.tagNameCheck, v) || L.tagNameCheck instanceof Function && L.tagNameCheck(v)))
5104
+ }), ui && h.hasChildNodes() && !yr(h.firstElementChild) && Y(/<[/\w!]/g, h.innerHTML) && Y(/<[/\w!]/g, h.textContent) || h.nodeType === Dt.progressingInstruction || ui && h.nodeType === Dt.comment && Y(/<[/\w]/g, h.data))
5105
+ return me(h), !0;
5106
+ if (!N[b] || Tt[b]) {
5107
+ if (!Tt[b] && xr(b) && (L.tagNameCheck instanceof RegExp && Y(L.tagNameCheck, b) || L.tagNameCheck instanceof Function && L.tagNameCheck(b)))
5108
5108
  return !1;
5109
- if (un && !lt[v]) {
5110
- const R = Be(h) || h.parentNode, B = Ne(h) || h.childNodes;
5109
+ if (un && !lt[b]) {
5110
+ const R = Be(h) || h.parentNode, B = Ue(h) || h.childNodes;
5111
5111
  if (B && R) {
5112
5112
  const I = B.length;
5113
- for (let ee = I - 1; ee >= 0; --ee) {
5114
- const Ce = w(B[ee], !0);
5115
- Ce.__removalCount = (h.__removalCount || 0) + 1, R.insertBefore(Ce, ce(h));
5113
+ for (let ie = I - 1; ie >= 0; --ie) {
5114
+ const Ce = m(B[ie], !0);
5115
+ Ce.__removalCount = (h.__removalCount || 0) + 1, R.insertBefore(Ce, G(h));
5116
5116
  }
5117
5117
  }
5118
5118
  }
5119
- return ge(h), !0;
5119
+ return me(h), !0;
5120
5120
  }
5121
- return h instanceof l && !gl(h) || (v === "noscript" || v === "noembed" || v === "noframes") && G(/<\/no(script|embed|frames)/i, h.innerHTML) ? (ge(h), !0) : (rt && h.nodeType === Dt.text && (f = h.textContent, yi([nn, sn, rn], (R) => {
5121
+ return h instanceof l && !gl(h) || (b === "noscript" || b === "noembed" || b === "noframes") && Y(/<\/no(script|embed|frames)/i, h.innerHTML) ? (me(h), !0) : (rt && h.nodeType === Dt.text && (f = h.textContent, yi([nn, sn, rn], (R) => {
5122
5122
  f = Mt(f, R, " ");
5123
5123
  }), h.textContent !== f && (Pt(e.removed, {
5124
5124
  element: h.cloneNode()
5125
- }), h.textContent = f)), Se(W.afterSanitizeElements, h, null), !1);
5126
- }, $r = function(h, f, v) {
5127
- if (lr && (f === "id" || f === "name") && (v in t || v in fl))
5125
+ }), h.textContent = f)), Se(Z.afterSanitizeElements, h, null), !1);
5126
+ }, wr = function(h, f, b) {
5127
+ if (lr && (f === "id" || f === "name") && (b in t || b in fl))
5128
5128
  return !1;
5129
- if (!(an && !on[f] && G(rl, f))) {
5130
- if (!(rr && G(ol, f))) {
5129
+ if (!(an && !on[f] && Y(rl, f))) {
5130
+ if (!(rr && Y(ol, f))) {
5131
5131
  if (!D[f] || on[f]) {
5132
5132
  if (
5133
5133
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
5134
5134
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
5135
5135
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
5136
- !(xr(h) && (L.tagNameCheck instanceof RegExp && G(L.tagNameCheck, h) || L.tagNameCheck instanceof Function && L.tagNameCheck(h)) && (L.attributeNameCheck instanceof RegExp && G(L.attributeNameCheck, f) || L.attributeNameCheck instanceof Function && L.attributeNameCheck(f)) || // Alternative, second condition checks if it's an `is`-attribute, AND
5136
+ !(xr(h) && (L.tagNameCheck instanceof RegExp && Y(L.tagNameCheck, h) || L.tagNameCheck instanceof Function && L.tagNameCheck(h)) && (L.attributeNameCheck instanceof RegExp && Y(L.attributeNameCheck, f) || L.attributeNameCheck instanceof Function && L.attributeNameCheck(f)) || // Alternative, second condition checks if it's an `is`-attribute, AND
5137
5137
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
5138
- f === "is" && L.allowCustomizedBuiltInElements && (L.tagNameCheck instanceof RegExp && G(L.tagNameCheck, v) || L.tagNameCheck instanceof Function && L.tagNameCheck(v)))
5138
+ f === "is" && L.allowCustomizedBuiltInElements && (L.tagNameCheck instanceof RegExp && Y(L.tagNameCheck, b) || L.tagNameCheck instanceof Function && L.tagNameCheck(b)))
5139
5139
  ) return !1;
5140
5140
  } else if (!hn[f]) {
5141
- if (!G(ir, Mt(v, tr, ""))) {
5142
- if (!((f === "src" || f === "xlink:href" || f === "href") && h !== "script" && Lh(v, "data:") === 0 && hr[h])) {
5143
- if (!(or && !G(al, Mt(v, tr, "")))) {
5144
- if (v)
5141
+ if (!Y(ir, Mt(b, tr, ""))) {
5142
+ if (!((f === "src" || f === "xlink:href" || f === "href") && h !== "script" && Lh(b, "data:") === 0 && hr[h])) {
5143
+ if (!(or && !Y(al, Mt(b, tr, "")))) {
5144
+ if (b)
5145
5145
  return !1;
5146
5146
  }
5147
5147
  }
@@ -5153,13 +5153,13 @@ function Da() {
5153
5153
  }, xr = function(h) {
5154
5154
  return h !== "annotation-xml" && bo(h, ll);
5155
5155
  }, kr = function(h) {
5156
- Se(W.beforeSanitizeAttributes, h, null);
5156
+ Se(Z.beforeSanitizeAttributes, h, null);
5157
5157
  const {
5158
5158
  attributes: f
5159
5159
  } = h;
5160
5160
  if (!f || gn(h))
5161
5161
  return;
5162
- const v = {
5162
+ const b = {
5163
5163
  attrName: "",
5164
5164
  attrValue: "",
5165
5165
  keepAttr: !0,
@@ -5170,21 +5170,21 @@ function Da() {
5170
5170
  for (; R--; ) {
5171
5171
  const B = f[R], {
5172
5172
  name: I,
5173
- namespaceURI: ee,
5173
+ namespaceURI: ie,
5174
5174
  value: Ce
5175
5175
  } = B, Lt = U(I), mn = Ce;
5176
5176
  let q = I === "value" ? mn : Ih(mn);
5177
- if (v.attrName = Lt, v.attrValue = q, v.keepAttr = !0, v.forceKeepAttr = void 0, Se(W.uponSanitizeAttribute, h, v), q = v.attrValue, cr && (Lt === "id" || Lt === "name") && (ht(I, h), q = cl + q), ui && G(/((--!?|])>)|<\/(style|title)/i, q)) {
5177
+ if (b.attrName = Lt, b.attrValue = q, b.keepAttr = !0, b.forceKeepAttr = void 0, Se(Z.uponSanitizeAttribute, h, b), q = b.attrValue, cr && (Lt === "id" || Lt === "name") && (ht(I, h), q = cl + q), ui && Y(/((--!?|])>)|<\/(style|title)/i, q)) {
5178
5178
  ht(I, h);
5179
5179
  continue;
5180
5180
  }
5181
- if (v.forceKeepAttr)
5181
+ if (b.forceKeepAttr)
5182
5182
  continue;
5183
- if (!v.keepAttr) {
5183
+ if (!b.keepAttr) {
5184
5184
  ht(I, h);
5185
5185
  continue;
5186
5186
  }
5187
- if (!ar && G(/\/>/i, q)) {
5187
+ if (!ar && Y(/\/>/i, q)) {
5188
5188
  ht(I, h);
5189
5189
  continue;
5190
5190
  }
@@ -5192,11 +5192,11 @@ function Da() {
5192
5192
  q = Mt(q, Cr, " ");
5193
5193
  });
5194
5194
  const Sr = U(h.nodeName);
5195
- if (!$r(Sr, Lt, q)) {
5195
+ if (!wr(Sr, Lt, q)) {
5196
5196
  ht(I, h);
5197
5197
  continue;
5198
5198
  }
5199
- if (M && typeof g == "object" && typeof g.getAttributeType == "function" && !ee)
5199
+ if (M && typeof g == "object" && typeof g.getAttributeType == "function" && !ie)
5200
5200
  switch (g.getAttributeType(Sr, Lt)) {
5201
5201
  case "TrustedHTML": {
5202
5202
  q = M.createHTML(q);
@@ -5209,50 +5209,50 @@ function Da() {
5209
5209
  }
5210
5210
  if (q !== mn)
5211
5211
  try {
5212
- ee ? h.setAttributeNS(ee, I, q) : h.setAttribute(I, q), gn(h) ? ge(h) : vo(e.removed);
5212
+ ie ? h.setAttributeNS(ie, I, q) : h.setAttribute(I, q), gn(h) ? me(h) : vo(e.removed);
5213
5213
  } catch {
5214
5214
  ht(I, h);
5215
5215
  }
5216
5216
  }
5217
- Se(W.afterSanitizeAttributes, h, null);
5218
- }, ml = function b(h) {
5217
+ Se(Z.afterSanitizeAttributes, h, null);
5218
+ }, ml = function y(h) {
5219
5219
  let f = null;
5220
- const v = br(h);
5221
- for (Se(W.beforeSanitizeShadowDOM, h, null); f = v.nextNode(); )
5222
- Se(W.uponSanitizeShadowNode, f, null), wr(f), kr(f), f.content instanceof r && b(f.content);
5223
- Se(W.afterSanitizeShadowDOM, h, null);
5220
+ const b = br(h);
5221
+ for (Se(Z.beforeSanitizeShadowDOM, h, null); f = b.nextNode(); )
5222
+ Se(Z.uponSanitizeShadowNode, f, null), $r(f), kr(f), f.content instanceof r && y(f.content);
5223
+ Se(Z.afterSanitizeShadowDOM, h, null);
5224
5224
  };
5225
- return e.sanitize = function(b) {
5226
- let h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, f = null, v = null, R = null, B = null;
5227
- if (dn = !b, dn && (b = "<!-->"), typeof b != "string" && !yr(b))
5228
- if (typeof b.toString == "function") {
5229
- if (b = b.toString(), typeof b != "string")
5225
+ return e.sanitize = function(y) {
5226
+ let h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, f = null, b = null, R = null, B = null;
5227
+ if (dn = !y, dn && (y = "<!-->"), typeof y != "string" && !yr(y))
5228
+ if (typeof y.toString == "function") {
5229
+ if (y = y.toString(), typeof y != "string")
5230
5230
  throw Nt("dirty is not a string, aborting");
5231
5231
  } else
5232
5232
  throw Nt("toString is not a function");
5233
5233
  if (!e.isSupported)
5234
- return b;
5235
- if (ln || fn(h), e.removed = [], typeof b == "string" && (Ot = !1), Ot) {
5236
- if (b.nodeName) {
5237
- const Ce = U(b.nodeName);
5234
+ return y;
5235
+ if (ln || fn(h), e.removed = [], typeof y == "string" && (Ot = !1), Ot) {
5236
+ if (y.nodeName) {
5237
+ const Ce = U(y.nodeName);
5238
5238
  if (!N[Ce] || Tt[Ce])
5239
5239
  throw Nt("root node is forbidden and cannot be sanitized in-place");
5240
5240
  }
5241
- } else if (b instanceof a)
5242
- f = vr("<!---->"), v = f.ownerDocument.importNode(b, !0), v.nodeType === Dt.element && v.nodeName === "BODY" || v.nodeName === "HTML" ? f = v : f.appendChild(v);
5241
+ } else if (y instanceof a)
5242
+ f = vr("<!---->"), b = f.ownerDocument.importNode(y, !0), b.nodeType === Dt.element && b.nodeName === "BODY" || b.nodeName === "HTML" ? f = b : f.appendChild(b);
5243
5243
  else {
5244
5244
  if (!ot && !rt && !Ge && // eslint-disable-next-line unicorn/prefer-includes
5245
- b.indexOf("<") === -1)
5246
- return M && di ? M.createHTML(b) : b;
5247
- if (f = vr(b), !f)
5245
+ y.indexOf("<") === -1)
5246
+ return M && di ? M.createHTML(y) : y;
5247
+ if (f = vr(y), !f)
5248
5248
  return ot ? null : di ? qe : "";
5249
5249
  }
5250
- f && cn && ge(f.firstChild);
5251
- const I = br(Ot ? b : f);
5250
+ f && cn && me(f.firstChild);
5251
+ const I = br(Ot ? y : f);
5252
5252
  for (; R = I.nextNode(); )
5253
- wr(R), kr(R), R.content instanceof r && ml(R.content);
5253
+ $r(R), kr(R), R.content instanceof r && ml(R.content);
5254
5254
  if (Ot)
5255
- return b;
5255
+ return y;
5256
5256
  if (ot) {
5257
5257
  if (hi)
5258
5258
  for (B = il.call(f.ownerDocument); f.firstChild; )
@@ -5261,32 +5261,32 @@ function Da() {
5261
5261
  B = f;
5262
5262
  return (D.shadowroot || D.shadowrootmode) && (B = sl.call(n, B, !0)), B;
5263
5263
  }
5264
- let ee = Ge ? f.outerHTML : f.innerHTML;
5265
- return Ge && N["!doctype"] && f.ownerDocument && f.ownerDocument.doctype && f.ownerDocument.doctype.name && G(Ua, f.ownerDocument.doctype.name) && (ee = "<!DOCTYPE " + f.ownerDocument.doctype.name + `>
5266
- ` + ee), rt && yi([nn, sn, rn], (Ce) => {
5267
- ee = Mt(ee, Ce, " ");
5268
- }), M && di ? M.createHTML(ee) : ee;
5264
+ let ie = Ge ? f.outerHTML : f.innerHTML;
5265
+ return Ge && N["!doctype"] && f.ownerDocument && f.ownerDocument.doctype && f.ownerDocument.doctype.name && Y(Ua, f.ownerDocument.doctype.name) && (ie = "<!DOCTYPE " + f.ownerDocument.doctype.name + `>
5266
+ ` + ie), rt && yi([nn, sn, rn], (Ce) => {
5267
+ ie = Mt(ie, Ce, " ");
5268
+ }), M && di ? M.createHTML(ie) : ie;
5269
5269
  }, e.setConfig = function() {
5270
- let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
5271
- fn(b), ln = !0;
5270
+ let y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
5271
+ fn(y), ln = !0;
5272
5272
  }, e.clearConfig = function() {
5273
5273
  ut = null, ln = !1;
5274
- }, e.isValidAttribute = function(b, h, f) {
5274
+ }, e.isValidAttribute = function(y, h, f) {
5275
5275
  ut || fn({});
5276
- const v = U(b), R = U(h);
5277
- return $r(v, R, f);
5278
- }, e.addHook = function(b, h) {
5279
- typeof h == "function" && Pt(W[b], h);
5280
- }, e.removeHook = function(b, h) {
5276
+ const b = U(y), R = U(h);
5277
+ return wr(b, R, f);
5278
+ }, e.addHook = function(y, h) {
5279
+ typeof h == "function" && Pt(Z[y], h);
5280
+ }, e.removeHook = function(y, h) {
5281
5281
  if (h !== void 0) {
5282
- const f = Oh(W[b], h);
5283
- return f === -1 ? void 0 : Rh(W[b], f, 1)[0];
5282
+ const f = Oh(Z[y], h);
5283
+ return f === -1 ? void 0 : Rh(Z[y], f, 1)[0];
5284
5284
  }
5285
- return vo(W[b]);
5286
- }, e.removeHooks = function(b) {
5287
- W[b] = [];
5285
+ return vo(Z[y]);
5286
+ }, e.removeHooks = function(y) {
5287
+ Z[y] = [];
5288
5288
  }, e.removeAllHooks = function() {
5289
- W = So();
5289
+ Z = So();
5290
5290
  }, e;
5291
5291
  }
5292
5292
  var za = Da(), Zh = Object.defineProperty, Yh = (i, e, t, n) => {
@@ -5296,7 +5296,7 @@ var za = Da(), Zh = Object.defineProperty, Yh = (i, e, t, n) => {
5296
5296
  };
5297
5297
  const Fs = class Fs extends E {
5298
5298
  render() {
5299
- return y`<div class="message-type-html">
5299
+ return $`<div class="message-type-html">
5300
5300
  ${_h(za.sanitize(this.message.content))}
5301
5301
  </div>`;
5302
5302
  }
@@ -5366,13 +5366,13 @@ function _(i, e = "") {
5366
5366
  const n = {
5367
5367
  replace: (s, r) => {
5368
5368
  let o = typeof r == "string" ? r : r.source;
5369
- return o = o.replace(Y.caret, "$1"), t = t.replace(s, o), n;
5369
+ return o = o.replace(X.caret, "$1"), t = t.replace(s, o), n;
5370
5370
  },
5371
5371
  getRegex: () => new RegExp(t, e)
5372
5372
  };
5373
5373
  return n;
5374
5374
  }
5375
- var Y = {
5375
+ var X = {
5376
5376
  codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
5377
5377
  outputLinkReplace: /\\([\[\]])/g,
5378
5378
  indentCodeCompensation: /^(\s+)(?:```)/,
@@ -5429,10 +5429,10 @@ var Y = {
5429
5429
  fencesBeginRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}(?:\`\`\`|~~~)`),
5430
5430
  headingBeginRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}#`),
5431
5431
  htmlBeginRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}<(?:[a-z].*>|!--)`, "i")
5432
- }, Qh = /^(?:[ \t]*(?:\n|$))+/, Xh = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Kh = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, ci = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Jh = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, ys = /(?:[*+-]|\d{1,9}[.)])/, Fa = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ja = _(Fa).replace(/bull/g, ys).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), ed = _(Fa).replace(/bull/g, ys).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), ws = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, td = /^[^\n]+/, $s = /(?!\s*\])(?:\\.|[^\[\]\\])+/, id = _(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", $s).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), nd = _(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, ys).getRegex(), en = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", xs = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, sd = _(
5432
+ }, Qh = /^(?:[ \t]*(?:\n|$))+/, Xh = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Kh = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, ci = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Jh = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, ys = /(?:[*+-]|\d{1,9}[.)])/, Fa = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ja = _(Fa).replace(/bull/g, ys).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), ed = _(Fa).replace(/bull/g, ys).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), $s = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, td = /^[^\n]+/, ws = /(?!\s*\])(?:\\.|[^\[\]\\])+/, id = _(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", ws).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), nd = _(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, ys).getRegex(), en = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", xs = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, sd = _(
5433
5433
  "^ {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|$))",
5434
5434
  "i"
5435
- ).replace("comment", xs).replace("tag", en).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Ba = _(ws).replace("hr", ci).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", en).getRegex(), rd = _(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Ba).getRegex(), ks = {
5435
+ ).replace("comment", xs).replace("tag", en).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Ba = _($s).replace("hr", ci).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", en).getRegex(), rd = _(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Ba).getRegex(), ks = {
5436
5436
  blockquote: rd,
5437
5437
  code: Xh,
5438
5438
  def: id,
@@ -5452,7 +5452,7 @@ var Y = {
5452
5452
  ...ks,
5453
5453
  lheading: ed,
5454
5454
  table: Co,
5455
- paragraph: _(ws).replace("hr", ci).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Co).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", en).getRegex()
5455
+ paragraph: _($s).replace("hr", ci).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Co).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", en).getRegex()
5456
5456
  }, ad = {
5457
5457
  ...ks,
5458
5458
  html: _(
@@ -5463,18 +5463,18 @@ var Y = {
5463
5463
  fences: qt,
5464
5464
  // fences not supported
5465
5465
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
5466
- paragraph: _(ws).replace("hr", ci).replace("heading", ` *#{1,6} *[^
5466
+ paragraph: _($s).replace("hr", ci).replace("heading", ` *#{1,6} *[^
5467
5467
  ]`).replace("lheading", ja).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
5468
5468
  }, ld = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, cd = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, qa = /^( {2,}|\\)\n(?!\s*$)/, ud = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, tn = /[\p{P}\p{S}]/u, Ss = /[\s\p{P}\p{S}]/u, Va = /[^\s\p{P}\p{S}]/u, hd = _(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Ss).getRegex(), Wa = /(?!~)[\p{P}\p{S}]/u, dd = /(?!~)[\s\p{P}\p{S}]/u, pd = /(?:[^\s\p{P}\p{S}]|~)/u, fd = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Ga = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, gd = _(Ga, "u").replace(/punct/g, tn).getRegex(), md = _(Ga, "u").replace(/punct/g, Wa).getRegex(), Za = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", vd = _(Za, "gu").replace(/notPunctSpace/g, Va).replace(/punctSpace/g, Ss).replace(/punct/g, tn).getRegex(), bd = _(Za, "gu").replace(/notPunctSpace/g, pd).replace(/punctSpace/g, dd).replace(/punct/g, Wa).getRegex(), yd = _(
5469
5469
  "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)",
5470
5470
  "gu"
5471
- ).replace(/notPunctSpace/g, Va).replace(/punctSpace/g, Ss).replace(/punct/g, tn).getRegex(), wd = _(/\\(punct)/, "gu").replace(/punct/g, tn).getRegex(), $d = _(/^<(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(), xd = _(xs).replace("(?:-->|$)", "-->").getRegex(), kd = _(
5471
+ ).replace(/notPunctSpace/g, Va).replace(/punctSpace/g, Ss).replace(/punct/g, tn).getRegex(), $d = _(/\\(punct)/, "gu").replace(/punct/g, tn).getRegex(), wd = _(/^<(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(), xd = _(xs).replace("(?:-->|$)", "-->").getRegex(), kd = _(
5472
5472
  "^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>"
5473
- ).replace("comment", xd).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Hi = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Sd = _(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", Hi).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Ya = _(/^!?\[(label)\]\[(ref)\]/).replace("label", Hi).replace("ref", $s).getRegex(), Qa = _(/^!?\[(ref)\](?:\[\])?/).replace("ref", $s).getRegex(), Cd = _("reflink|nolink(?!\\()", "g").replace("reflink", Ya).replace("nolink", Qa).getRegex(), Cs = {
5473
+ ).replace("comment", xd).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Hi = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Sd = _(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", Hi).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Ya = _(/^!?\[(label)\]\[(ref)\]/).replace("label", Hi).replace("ref", ws).getRegex(), Qa = _(/^!?\[(ref)\](?:\[\])?/).replace("ref", ws).getRegex(), Cd = _("reflink|nolink(?!\\()", "g").replace("reflink", Ya).replace("nolink", Qa).getRegex(), Cs = {
5474
5474
  _backpedal: qt,
5475
5475
  // only used for GFM url
5476
- anyPunctuation: wd,
5477
- autolink: $d,
5476
+ anyPunctuation: $d,
5477
+ autolink: wd,
5478
5478
  blockSkip: fd,
5479
5479
  br: qa,
5480
5480
  code: cd,
@@ -5507,7 +5507,7 @@ var Y = {
5507
5507
  ...Xn,
5508
5508
  br: _(qa).replace("{2,}", "*").getRegex(),
5509
5509
  text: _(Xn.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
5510
- }, $i = {
5510
+ }, wi = {
5511
5511
  normal: ks,
5512
5512
  gfm: od,
5513
5513
  pedantic: ad
@@ -5523,17 +5523,17 @@ var Y = {
5523
5523
  '"': "&quot;",
5524
5524
  "'": "&#39;"
5525
5525
  }, _o = (i) => Ad[i];
5526
- function ve(i, e) {
5526
+ function be(i, e) {
5527
5527
  if (e) {
5528
- if (Y.escapeTest.test(i))
5529
- return i.replace(Y.escapeReplace, _o);
5530
- } else if (Y.escapeTestNoEncode.test(i))
5531
- return i.replace(Y.escapeReplaceNoEncode, _o);
5528
+ if (X.escapeTest.test(i))
5529
+ return i.replace(X.escapeReplace, _o);
5530
+ } else if (X.escapeTestNoEncode.test(i))
5531
+ return i.replace(X.escapeReplaceNoEncode, _o);
5532
5532
  return i;
5533
5533
  }
5534
5534
  function Eo(i) {
5535
5535
  try {
5536
- i = encodeURI(i).replace(Y.percentDecode, "%");
5536
+ i = encodeURI(i).replace(X.percentDecode, "%");
5537
5537
  } catch {
5538
5538
  return null;
5539
5539
  }
@@ -5541,11 +5541,11 @@ function Eo(i) {
5541
5541
  }
5542
5542
  function Ao(i, e) {
5543
5543
  var r;
5544
- const t = i.replace(Y.findPipe, (o, a, l) => {
5544
+ const t = i.replace(X.findPipe, (o, a, l) => {
5545
5545
  let c = !1, u = a;
5546
5546
  for (; --u >= 0 && l[u] === "\\"; ) c = !c;
5547
5547
  return c ? "|" : " |";
5548
- }), n = t.split(Y.splitPipe);
5548
+ }), n = t.split(X.splitPipe);
5549
5549
  let s = 0;
5550
5550
  if (n[0].trim() || n.shift(), n.length > 0 && !((r = n.at(-1)) != null && r.trim()) && n.pop(), e)
5551
5551
  if (n.length > e)
@@ -5553,7 +5553,7 @@ function Ao(i, e) {
5553
5553
  else
5554
5554
  for (; n.length < e; ) n.push("");
5555
5555
  for (; s < n.length; s++)
5556
- n[s] = n[s].trim().replace(Y.slashPipe, "|");
5556
+ n[s] = n[s].trim().replace(X.slashPipe, "|");
5557
5557
  return n;
5558
5558
  }
5559
5559
  function Ht(i, e, t) {
@@ -5706,16 +5706,16 @@ ${u}` : u;
5706
5706
  if ((d == null ? void 0 : d.type) === "code")
5707
5707
  break;
5708
5708
  if ((d == null ? void 0 : d.type) === "blockquote") {
5709
- const g = d, m = g.raw + `
5709
+ const g = d, v = g.raw + `
5710
5710
  ` + t.join(`
5711
- `), w = this.blockquote(m);
5712
- r[r.length - 1] = w, n = n.substring(0, n.length - g.raw.length) + w.raw, s = s.substring(0, s.length - g.text.length) + w.text;
5711
+ `), m = this.blockquote(v);
5712
+ r[r.length - 1] = m, n = n.substring(0, n.length - g.raw.length) + m.raw, s = s.substring(0, s.length - g.text.length) + m.text;
5713
5713
  break;
5714
5714
  } else if ((d == null ? void 0 : d.type) === "list") {
5715
- const g = d, m = g.raw + `
5715
+ const g = d, v = g.raw + `
5716
5716
  ` + t.join(`
5717
- `), w = this.list(m);
5718
- r[r.length - 1] = w, n = n.substring(0, n.length - d.raw.length) + w.raw, s = s.substring(0, s.length - g.raw.length) + w.raw, t = m.substring(r.at(-1).raw.length).split(`
5717
+ `), m = this.list(v);
5718
+ r[r.length - 1] = m, n = n.substring(0, n.length - d.raw.length) + m.raw, s = s.substring(0, s.length - g.raw.length) + m.raw, t = v.substring(r.at(-1).raw.length).split(`
5719
5719
  `);
5720
5720
  continue;
5721
5721
  }
@@ -5749,37 +5749,37 @@ ${u}` : u;
5749
5749
  break;
5750
5750
  c = e[0], i = i.substring(c.length);
5751
5751
  let p = e[2].split(`
5752
- `, 1)[0].replace(this.rules.other.listReplaceTabs, (ce) => " ".repeat(3 * ce.length)), d = i.split(`
5753
- `, 1)[0], g = !p.trim(), m = 0;
5754
- if (this.options.pedantic ? (m = 2, u = p.trimStart()) : g ? m = e[1].length + 1 : (m = e[2].search(this.rules.other.nonSpaceChar), m = m > 4 ? 1 : m, u = p.slice(m), m += e[1].length), g && this.rules.other.blankLine.test(d) && (c += d + `
5752
+ `, 1)[0].replace(this.rules.other.listReplaceTabs, (G) => " ".repeat(3 * G.length)), d = i.split(`
5753
+ `, 1)[0], g = !p.trim(), v = 0;
5754
+ if (this.options.pedantic ? (v = 2, u = p.trimStart()) : g ? v = e[1].length + 1 : (v = e[2].search(this.rules.other.nonSpaceChar), v = v > 4 ? 1 : v, u = p.slice(v), v += e[1].length), g && this.rules.other.blankLine.test(d) && (c += d + `
5755
5755
  `, i = i.substring(d.length + 1), l = !0), !l) {
5756
- const ce = this.rules.other.nextBulletRegex(m), Ne = this.rules.other.hrRegex(m), Be = this.rules.other.fencesBeginRegex(m), M = this.rules.other.headingBeginRegex(m), qe = this.rules.other.htmlBeginRegex(m);
5756
+ const G = this.rules.other.nextBulletRegex(v), Ue = this.rules.other.hrRegex(v), Be = this.rules.other.fencesBeginRegex(v), M = this.rules.other.headingBeginRegex(v), qe = this.rules.other.htmlBeginRegex(v);
5757
5757
  for (; i; ) {
5758
5758
  const Ve = i.split(`
5759
5759
  `, 1)[0];
5760
5760
  let We;
5761
- if (d = Ve, this.options.pedantic ? (d = d.replace(this.rules.other.listReplaceNesting, " "), We = d) : We = d.replace(this.rules.other.tabCharGlobal, " "), Be.test(d) || M.test(d) || qe.test(d) || ce.test(d) || Ne.test(d))
5761
+ if (d = Ve, this.options.pedantic ? (d = d.replace(this.rules.other.listReplaceNesting, " "), We = d) : We = d.replace(this.rules.other.tabCharGlobal, " "), Be.test(d) || M.test(d) || qe.test(d) || G.test(d) || Ue.test(d))
5762
5762
  break;
5763
- if (We.search(this.rules.other.nonSpaceChar) >= m || !d.trim())
5763
+ if (We.search(this.rules.other.nonSpaceChar) >= v || !d.trim())
5764
5764
  u += `
5765
- ` + We.slice(m);
5765
+ ` + We.slice(v);
5766
5766
  else {
5767
- if (g || p.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || Be.test(p) || M.test(p) || Ne.test(p))
5767
+ if (g || p.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || Be.test(p) || M.test(p) || Ue.test(p))
5768
5768
  break;
5769
5769
  u += `
5770
5770
  ` + d;
5771
5771
  }
5772
5772
  !g && !d.trim() && (g = !0), c += Ve + `
5773
- `, i = i.substring(Ve.length + 1), p = We.slice(m);
5773
+ `, i = i.substring(Ve.length + 1), p = We.slice(v);
5774
5774
  }
5775
5775
  }
5776
5776
  s.loose || (o ? s.loose = !0 : this.rules.other.doubleBlankLine.test(c) && (o = !0));
5777
- let w = null, xe;
5778
- this.options.gfm && (w = this.rules.other.listIsTask.exec(u), w && (xe = w[0] !== "[ ] ", u = u.replace(this.rules.other.listReplaceTask, ""))), s.items.push({
5777
+ let m = null, W;
5778
+ this.options.gfm && (m = this.rules.other.listIsTask.exec(u), m && (W = m[0] !== "[ ] ", u = u.replace(this.rules.other.listReplaceTask, ""))), s.items.push({
5779
5779
  type: "list_item",
5780
5780
  raw: c,
5781
- task: !!w,
5782
- checked: xe,
5781
+ task: !!m,
5782
+ checked: W,
5783
5783
  loose: !1,
5784
5784
  text: u,
5785
5785
  tokens: []
@@ -5980,12 +5980,12 @@ ${u}` : u;
5980
5980
  a = Math.min(a, a + l + c);
5981
5981
  const p = [...n[0]][0].length, d = i.slice(0, r + n.index + p + a);
5982
5982
  if (Math.min(r, a) % 2) {
5983
- const m = d.slice(1, -1);
5983
+ const v = d.slice(1, -1);
5984
5984
  return {
5985
5985
  type: "em",
5986
5986
  raw: d,
5987
- text: m,
5988
- tokens: this.lexer.inlineTokens(m)
5987
+ text: v,
5988
+ tokens: this.lexer.inlineTokens(v)
5989
5989
  };
5990
5990
  }
5991
5991
  const g = d.slice(2, -2);
@@ -6088,7 +6088,7 @@ ${u}` : u;
6088
6088
  };
6089
6089
  }
6090
6090
  }
6091
- }, Ae = class Kn {
6091
+ }, Te = class Kn {
6092
6092
  constructor(e) {
6093
6093
  A(this, "tokens");
6094
6094
  A(this, "options");
@@ -6101,18 +6101,18 @@ ${u}` : u;
6101
6101
  top: !0
6102
6102
  };
6103
6103
  const t = {
6104
- other: Y,
6105
- block: $i.normal,
6104
+ other: X,
6105
+ block: wi.normal,
6106
6106
  inline: zt.normal
6107
6107
  };
6108
- this.options.pedantic ? (t.block = $i.pedantic, t.inline = zt.pedantic) : this.options.gfm && (t.block = $i.gfm, this.options.breaks ? t.inline = zt.breaks : t.inline = zt.gfm), this.tokenizer.rules = t;
6108
+ this.options.pedantic ? (t.block = wi.pedantic, t.inline = zt.pedantic) : this.options.gfm && (t.block = wi.gfm, this.options.breaks ? t.inline = zt.breaks : t.inline = zt.gfm), this.tokenizer.rules = t;
6109
6109
  }
6110
6110
  /**
6111
6111
  * Expose Rules
6112
6112
  */
6113
6113
  static get rules() {
6114
6114
  return {
6115
- block: $i,
6115
+ block: wi,
6116
6116
  inline: zt
6117
6117
  };
6118
6118
  }
@@ -6132,7 +6132,7 @@ ${u}` : u;
6132
6132
  * Preprocessing
6133
6133
  */
6134
6134
  lex(e) {
6135
- e = e.replace(Y.carriageReturn, `
6135
+ e = e.replace(X.carriageReturn, `
6136
6136
  `), this.blockTokens(e, this.tokens);
6137
6137
  for (let t = 0; t < this.inlineQueue.length; t++) {
6138
6138
  const n = this.inlineQueue[t];
@@ -6142,7 +6142,7 @@ ${u}` : u;
6142
6142
  }
6143
6143
  blockTokens(e, t = [], n = !1) {
6144
6144
  var s, r, o;
6145
- for (this.options.pedantic && (e = e.replace(Y.tabCharGlobal, " ").replace(Y.spaceLine, "")); e; ) {
6145
+ for (this.options.pedantic && (e = e.replace(X.tabCharGlobal, " ").replace(X.spaceLine, "")); e; ) {
6146
6146
  let a;
6147
6147
  if ((r = (s = this.options.extensions) == null ? void 0 : s.block) != null && r.some((c) => (a = c.call({ lexer: this }, e, t)) ? (e = e.substring(a.raw.length), t.push(a), !0) : !1))
6148
6148
  continue;
@@ -6310,9 +6310,9 @@ ${u}` : u;
6310
6310
  if ((c = this.options.extensions) != null && c.startInline) {
6311
6311
  let d = 1 / 0;
6312
6312
  const g = e.slice(1);
6313
- let m;
6314
- this.options.extensions.startInline.forEach((w) => {
6315
- m = w.call({ lexer: this }, g), typeof m == "number" && m >= 0 && (d = Math.min(d, m));
6313
+ let v;
6314
+ this.options.extensions.startInline.forEach((m) => {
6315
+ v = m.call({ lexer: this }, g), typeof v == "number" && v >= 0 && (d = Math.min(d, v));
6316
6316
  }), d < 1 / 0 && d >= 0 && (p = e.substring(0, d + 1));
6317
6317
  }
6318
6318
  if (u = this.tokenizer.inlineText(p)) {
@@ -6344,10 +6344,10 @@ ${u}` : u;
6344
6344
  }
6345
6345
  code({ text: i, lang: e, escaped: t }) {
6346
6346
  var r;
6347
- const n = (r = (e || "").match(Y.notSpaceStart)) == null ? void 0 : r[0], s = i.replace(Y.endingNewline, "") + `
6347
+ const n = (r = (e || "").match(X.notSpaceStart)) == null ? void 0 : r[0], s = i.replace(X.endingNewline, "") + `
6348
6348
  `;
6349
- return n ? '<pre><code class="language-' + ve(n) + '">' + (t ? s : ve(s, !0)) + `</code></pre>
6350
- ` : "<pre><code>" + (t ? s : ve(s, !0)) + `</code></pre>
6349
+ return n ? '<pre><code class="language-' + be(n) + '">' + (t ? s : be(s, !0)) + `</code></pre>
6350
+ ` : "<pre><code>" + (t ? s : be(s, !0)) + `</code></pre>
6351
6351
  `;
6352
6352
  }
6353
6353
  blockquote({ tokens: i }) {
@@ -6383,7 +6383,7 @@ ${this.parser.parse(i)}</blockquote>
6383
6383
  let e = "";
6384
6384
  if (i.task) {
6385
6385
  const n = this.checkbox({ checked: !!i.checked });
6386
- i.loose ? ((t = i.tokens[0]) == null ? void 0 : t.type) === "paragraph" ? (i.tokens[0].text = n + " " + i.tokens[0].text, i.tokens[0].tokens && i.tokens[0].tokens.length > 0 && i.tokens[0].tokens[0].type === "text" && (i.tokens[0].tokens[0].text = n + " " + ve(i.tokens[0].tokens[0].text), i.tokens[0].tokens[0].escaped = !0)) : i.tokens.unshift({
6386
+ i.loose ? ((t = i.tokens[0]) == null ? void 0 : t.type) === "paragraph" ? (i.tokens[0].text = n + " " + i.tokens[0].text, i.tokens[0].tokens && i.tokens[0].tokens.length > 0 && i.tokens[0].tokens[0].type === "text" && (i.tokens[0].tokens[0].text = n + " " + be(i.tokens[0].tokens[0].text), i.tokens[0].tokens[0].escaped = !0)) : i.tokens.unshift({
6387
6387
  type: "text",
6388
6388
  raw: n + " ",
6389
6389
  text: n + " ",
@@ -6439,7 +6439,7 @@ ${i}</tr>
6439
6439
  return `<em>${this.parser.parseInline(i)}</em>`;
6440
6440
  }
6441
6441
  codespan({ text: i }) {
6442
- return `<code>${ve(i, !0)}</code>`;
6442
+ return `<code>${be(i, !0)}</code>`;
6443
6443
  }
6444
6444
  br(i) {
6445
6445
  return "<br>";
@@ -6453,19 +6453,19 @@ ${i}</tr>
6453
6453
  return n;
6454
6454
  i = s;
6455
6455
  let r = '<a href="' + i + '"';
6456
- return e && (r += ' title="' + ve(e) + '"'), r += ">" + n + "</a>", r;
6456
+ return e && (r += ' title="' + be(e) + '"'), r += ">" + n + "</a>", r;
6457
6457
  }
6458
6458
  image({ href: i, title: e, text: t, tokens: n }) {
6459
6459
  n && (t = this.parser.parseInline(n, this.parser.textRenderer));
6460
6460
  const s = Eo(i);
6461
6461
  if (s === null)
6462
- return ve(t);
6462
+ return be(t);
6463
6463
  i = s;
6464
6464
  let r = `<img src="${i}" alt="${t}"`;
6465
- return e && (r += ` title="${ve(e)}"`), r += ">", r;
6465
+ return e && (r += ` title="${be(e)}"`), r += ">", r;
6466
6466
  }
6467
6467
  text(i) {
6468
- return "tokens" in i && i.tokens ? this.parser.parseInline(i.tokens) : "escaped" in i && i.escaped ? i.text : ve(i.text);
6468
+ return "tokens" in i && i.tokens ? this.parser.parseInline(i.tokens) : "escaped" in i && i.escaped ? i.text : be(i.text);
6469
6469
  }
6470
6470
  }, _s = class {
6471
6471
  // no need for block level renderers
@@ -6496,7 +6496,7 @@ ${i}</tr>
6496
6496
  br() {
6497
6497
  return "";
6498
6498
  }
6499
- }, Te = class Jn {
6499
+ }, Oe = class Jn {
6500
6500
  constructor(e) {
6501
6501
  A(this, "options");
6502
6502
  A(this, "renderer");
@@ -6686,13 +6686,13 @@ ${i}</tr>
6686
6686
  * Provide function to tokenize markdown
6687
6687
  */
6688
6688
  provideLexer() {
6689
- return this.block ? Ae.lex : Ae.lexInline;
6689
+ return this.block ? Te.lex : Te.lexInline;
6690
6690
  }
6691
6691
  /**
6692
6692
  * Provide function to parse tokens
6693
6693
  */
6694
6694
  provideParser() {
6695
- return this.block ? Te.parse : Te.parseInline;
6695
+ return this.block ? Oe.parse : Oe.parseInline;
6696
6696
  }
6697
6697
  }, A(In, "passThroughHooks", /* @__PURE__ */ new Set([
6698
6698
  "preprocess",
@@ -6704,10 +6704,10 @@ ${i}</tr>
6704
6704
  A(this, "options", this.setOptions);
6705
6705
  A(this, "parse", this.parseMarkdown(!0));
6706
6706
  A(this, "parseInline", this.parseMarkdown(!1));
6707
- A(this, "Parser", Te);
6707
+ A(this, "Parser", Oe);
6708
6708
  A(this, "Renderer", Jt);
6709
6709
  A(this, "TextRenderer", _s);
6710
- A(this, "Lexer", Ae);
6710
+ A(this, "Lexer", Te);
6711
6711
  A(this, "Tokenizer", Fi);
6712
6712
  A(this, "Hooks", Ci);
6713
6713
  this.use(...i);
@@ -6829,10 +6829,10 @@ ${i}</tr>
6829
6829
  return this.defaults = { ...this.defaults, ...i }, this;
6830
6830
  }
6831
6831
  lexer(i, e) {
6832
- return Ae.lex(i, e ?? this.defaults);
6832
+ return Te.lex(i, e ?? this.defaults);
6833
6833
  }
6834
6834
  parser(i, e) {
6835
- return Te.parse(i, e ?? this.defaults);
6835
+ return Oe.parse(i, e ?? this.defaults);
6836
6836
  }
6837
6837
  parseMarkdown(i) {
6838
6838
  return (t, n) => {
@@ -6844,7 +6844,7 @@ ${i}</tr>
6844
6844
  if (typeof t != "string")
6845
6845
  return o(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
6846
6846
  r.hooks && (r.hooks.options = r, r.hooks.block = i);
6847
- const a = r.hooks ? r.hooks.provideLexer() : i ? Ae.lex : Ae.lexInline, l = r.hooks ? r.hooks.provideParser() : i ? Te.parse : Te.parseInline;
6847
+ const a = r.hooks ? r.hooks.provideLexer() : i ? Te.lex : Te.lexInline, l = r.hooks ? r.hooks.provideParser() : i ? Oe.parse : Oe.parseInline;
6848
6848
  if (r.async)
6849
6849
  return Promise.resolve(r.hooks ? r.hooks.preprocess(t) : t).then((c) => a(c, r)).then((c) => r.hooks ? r.hooks.processAllTokens(c) : c).then((c) => r.walkTokens ? Promise.all(this.walkTokens(c, r.walkTokens)).then(() => c) : c).then((c) => l(c, r)).then((c) => r.hooks ? r.hooks.postprocess(c) : c).catch(o);
6850
6850
  try {
@@ -6862,7 +6862,7 @@ ${i}</tr>
6862
6862
  return (t) => {
6863
6863
  if (t.message += `
6864
6864
  Please report this to https://github.com/markedjs/marked.`, i) {
6865
- const n = "<p>An error occurred:</p><pre>" + ve(t.message + "", !0) + "</pre>";
6865
+ const n = "<p>An error occurred:</p><pre>" + be(t.message + "", !0) + "</pre>";
6866
6866
  return e ? Promise.resolve(n) : n;
6867
6867
  }
6868
6868
  if (e)
@@ -6886,12 +6886,12 @@ S.walkTokens = function(i, e) {
6886
6886
  return it.walkTokens(i, e);
6887
6887
  };
6888
6888
  S.parseInline = it.parseInline;
6889
- S.Parser = Te;
6890
- S.parser = Te.parse;
6889
+ S.Parser = Oe;
6890
+ S.parser = Oe.parse;
6891
6891
  S.Renderer = Jt;
6892
6892
  S.TextRenderer = _s;
6893
- S.Lexer = Ae;
6894
- S.lexer = Ae.lex;
6893
+ S.Lexer = Te;
6894
+ S.lexer = Te.lex;
6895
6895
  S.Tokenizer = Fi;
6896
6896
  S.Hooks = Ci;
6897
6897
  S.parse = S;
@@ -6900,8 +6900,8 @@ S.setOptions;
6900
6900
  S.use;
6901
6901
  S.walkTokens;
6902
6902
  S.parseInline;
6903
- Te.parse;
6904
- Ae.lex;
6903
+ Oe.parse;
6904
+ Te.lex;
6905
6905
  var Ld = Object.defineProperty, Xa = (i, e, t, n) => {
6906
6906
  for (var s = void 0, r = i.length - 1, o; r >= 0; r--)
6907
6907
  (o = i[r]) && (s = o(e, t, s) || s);
@@ -6914,7 +6914,7 @@ Ka.link = function({ href: i, title: e, text: t }) {
6914
6914
  S.use({ renderer: Ka });
6915
6915
  const js = class js extends E {
6916
6916
  constructor() {
6917
- 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);
6917
+ super(...arguments), this.showLightbox = !1, this.imageUrl = "", this.altText = "", this.scrollRef = ye(), this.contentRef = ye(), this.autoScroll = !0, this.buffer = "", this.pointer = 0, this.imageRegexp = new RegExp(/!\[[^[]*\([^)]*\)/gm);
6918
6918
  }
6919
6919
  // Stop autoscroll on user interaction
6920
6920
  handleAutoscroll() {
@@ -6976,12 +6976,12 @@ const js = class js extends E {
6976
6976
  });
6977
6977
  }
6978
6978
  render() {
6979
- return y`
6980
- <div class="message-type-markdown" ${ye(this.contentRef)}>
6979
+ return $`
6980
+ <div class="message-type-markdown" ${$e(this.contentRef)}>
6981
6981
  <div></div>
6982
6982
  </div>
6983
- <div class="scroll" ${ye(this.scrollRef)}></div>
6984
- ${this.showLightbox ? y`<ace-lightbox
6983
+ <div class="scroll" ${$e(this.scrollRef)}></div>
6984
+ ${this.showLightbox ? $`<ace-lightbox
6985
6985
  imageUrl="${this.imageUrl}"
6986
6986
  altText="${this.altText}"
6987
6987
  />` : null}
@@ -7072,7 +7072,7 @@ const Bs = class Bs extends E {
7072
7072
  }
7073
7073
  }
7074
7074
  render() {
7075
- return y`<div
7075
+ return $`<div
7076
7076
  class="lightbox"
7077
7077
  tabindex="-1"
7078
7078
  @keydown=${this.handleKeyDown}
@@ -7129,7 +7129,7 @@ let ji = Bs;
7129
7129
  Pd([
7130
7130
  k({ attribute: !0 })
7131
7131
  ], ji.prototype, "imageUrl");
7132
- var Md = Object.defineProperty, fe = (i, e, t, n) => {
7132
+ var Md = Object.defineProperty, ge = (i, e, t, n) => {
7133
7133
  for (var s = void 0, r = i.length - 1, o; r >= 0; r--)
7134
7134
  (o = i[r]) && (s = o(e, t, s) || s);
7135
7135
  return s && Md(e, t, s), s;
@@ -7143,8 +7143,8 @@ customElements.get("message-type-markdown") || customElements.define("message-ty
7143
7143
  customElements.get("ace-lightbox") || customElements.define("ace-lightbox", ji);
7144
7144
  const Oo = Ta(E), qs = class qs extends Oo {
7145
7145
  constructor() {
7146
- 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 bh(this), this.messageMaxLength = 1e3, this.messageMaxLengthLabel = "Maximum character limit reached", this.skipToLatestMessageLabel = "Skip to latest message", this.conversationState$ = new pe("waiting"), this.stateMachine = new wh(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
7147
- Le((e) => e ? e == null ? void 0 : e.provider$ : Nn(null))
7146
+ 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 = ye(), this.conversationFeedRef = ye(), this.formRef = ye(), this.inputRef = ye(), this.scrollRef = ye(), this.counterRef = ye(), this.chatCurrentScrollPosition = 0, this.toast = new bh(this), this.messageMaxLength = 1e3, this.messageMaxLengthLabel = "Maximum character limit reached", this.skipToLatestMessageLabel = "Skip to latest message", this.conversationState$ = new fe("waiting"), this.stateMachine = new $h(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
7147
+ Ie((e) => e ? e == null ? void 0 : e.provider$ : Nn(null))
7148
7148
  ), this.userTyping$ = new P();
7149
7149
  }
7150
7150
  // =================
@@ -7326,24 +7326,24 @@ const Oo = Ta(E), qs = class qs extends Oo {
7326
7326
  providerOptions: t
7327
7327
  }
7328
7328
  });
7329
- return this.dispatchEvent(n), n.detail.complete || Re;
7329
+ return this.dispatchEvent(n), n.detail.complete || Le;
7330
7330
  }
7331
7331
  render() {
7332
7332
  var n, s, r, o;
7333
7333
  const e = this.application.texts;
7334
- return this.conversationState$.value === "waiting" && ((n = this.application) != null && n.storage) && this.platform && (this.stateMachine.setStorage(this.application.storage), this.conversationState$.next("init")), (((o = (r = (s = this.application.settings) == null ? void 0 : s.agentConfig) == null ? void 0 : r.live) == null ? void 0 : o.isThirdPartyWidget) ?? !1) && (this.renderRoot.host.style.width = "100%"), y` <div class="conversation-container">
7335
- ${this.showAuthBanner ? y`<div
7334
+ return this.conversationState$.value === "waiting" && ((n = this.application) != null && n.storage) && this.platform && (this.stateMachine.setStorage(this.application.storage), this.conversationState$.next("init")), (((o = (r = (s = this.application.settings) == null ? void 0 : s.agentConfig) == null ? void 0 : r.live) == null ? void 0 : o.isThirdPartyWidget) ?? !1) && (this.renderRoot.host.style.width = "100%"), $` <div class="conversation-container">
7335
+ ${this.showAuthBanner ? $`<div
7336
7336
  class="auth-banner ${this.authenticated ? "auth-banner--authenticated" : "auth-banner--unauthenticated"}"
7337
7337
  role="status"
7338
7338
  aria-live="polite"
7339
7339
  >
7340
- ${this.authenticated ? y`<telia-icon
7340
+ ${this.authenticated ? $`<telia-icon
7341
7341
  class="auth-banner__icon"
7342
7342
  size="sm"
7343
7343
  svg=${oa.svg}
7344
- ></telia-icon>` : $}
7344
+ ></telia-icon>` : w}
7345
7345
  <span>${this.getAuthBannerMessage()}</span>
7346
- </div>` : $}
7346
+ </div>` : w}
7347
7347
  <div
7348
7348
  @action=${this.actionHandler}
7349
7349
  class=${kt({
@@ -7354,14 +7354,14 @@ const Oo = Ta(E), qs = class qs extends Oo {
7354
7354
  "overlay-mode": this.chatOverlayActive
7355
7355
  })}
7356
7356
  >
7357
- ${this.chatOverlayActive ? y`<div class="overlay-header">
7357
+ ${this.chatOverlayActive ? $`<div class="overlay-header">
7358
7358
  <button
7359
7359
  class="overlay-button"
7360
7360
  @click=${() => this.chatOverlayActive = !1}
7361
7361
  >
7362
7362
  <telia-icon svg=${aa.svg}></telia-icon>
7363
7363
  </button>
7364
- </div>` : $}
7364
+ </div>` : w}
7365
7365
  <div
7366
7366
  class=${kt({
7367
7367
  "conversation-content": !0,
@@ -7369,21 +7369,21 @@ const Oo = Ta(E), qs = class qs extends Oo {
7369
7369
  })}
7370
7370
  part="scroll-container"
7371
7371
  aria-live="polite"
7372
- ${ye(this.conversationContentRef)}
7372
+ ${$e(this.conversationContentRef)}
7373
7373
  >
7374
- ${this.toast.hasMessage() ? y`<div class="conversation__toast">${this.toast.message}</div>` : $}
7374
+ ${this.toast.hasMessage() ? $`<div class="conversation__toast">${this.toast.message}</div>` : w}
7375
7375
  <ace-conversation-feed
7376
7376
  .entries=${this.entries}
7377
7377
  .loading=${this.typing}
7378
- ${ye(this.conversationFeedRef)}
7378
+ ${$e(this.conversationFeedRef)}
7379
7379
  @updated=${this.onSessionUpdated}
7380
7380
  ></ace-conversation-feed>
7381
- <div class="scroll" ${ye(this.scrollRef)}></div>
7381
+ <div class="scroll" ${$e(this.scrollRef)}></div>
7382
7382
  </div>
7383
7383
  <form
7384
7384
  class="conversation-bottom"
7385
7385
  @submit=${this.onSendMessage}
7386
- ${ye(this.formRef)}
7386
+ ${$e(this.formRef)}
7387
7387
  ?inert=${this.disabledInput}
7388
7388
  data-testid="conversation-bottom"
7389
7389
  >
@@ -7404,7 +7404,7 @@ const Oo = Ta(E), qs = class qs extends Oo {
7404
7404
  @mousedown=${this.mouseDownHandler}
7405
7405
  @focus=${this.focusHandler}
7406
7406
  @blur=${this.blurHandler}
7407
- ${ye(this.inputRef)}
7407
+ ${$e(this.inputRef)}
7408
7408
  aria-valuenow=${this.textAreaLength}
7409
7409
  aria-valuemax=${this.messageMaxLength}
7410
7410
  aria-valuemin="0"
@@ -7420,7 +7420,7 @@ const Oo = Ta(E), qs = class qs extends Oo {
7420
7420
  >
7421
7421
  <telia-icon svg=${la.svg}></telia-icon>
7422
7422
  </button>
7423
- <span class="counter" ${ye(this.counterRef)}>
7423
+ <span class="counter" ${$e(this.counterRef)}>
7424
7424
  ${this.textAreaLength} / ${this.messageMaxLength}</span
7425
7425
  >
7426
7426
  </div>
@@ -7428,7 +7428,7 @@ const Oo = Ta(E), qs = class qs extends Oo {
7428
7428
  ${this.textAreaLength > this.messageMaxLength ? this.messageMaxLengthLabel : ""}
7429
7429
  </div>
7430
7430
  </form>
7431
- ${this.disabledSkipToLatest ? $ : y`<button
7431
+ ${this.disabledSkipToLatest ? w : $`<button
7432
7432
  class="skip-to-latest-message-button"
7433
7433
  @click=${this.skipToLatestMessage}
7434
7434
  >
@@ -7781,43 +7781,43 @@ qs.styles = [
7781
7781
  }
7782
7782
  `
7783
7783
  ];
7784
- let ne = qs;
7785
- fe([
7784
+ let re = qs;
7785
+ ge([
7786
7786
  T()
7787
- ], ne.prototype, "platform");
7788
- fe([
7787
+ ], re.prototype, "platform");
7788
+ ge([
7789
7789
  T()
7790
- ], ne.prototype, "entries");
7791
- fe([
7790
+ ], re.prototype, "entries");
7791
+ ge([
7792
7792
  T()
7793
- ], ne.prototype, "typing");
7794
- fe([
7793
+ ], re.prototype, "typing");
7794
+ ge([
7795
7795
  T()
7796
- ], ne.prototype, "message");
7797
- fe([
7796
+ ], re.prototype, "message");
7797
+ ge([
7798
7798
  T()
7799
- ], ne.prototype, "disabledInput");
7800
- fe([
7799
+ ], re.prototype, "disabledInput");
7800
+ ge([
7801
7801
  T()
7802
- ], ne.prototype, "disabledSkipToLatest");
7803
- fe([
7802
+ ], re.prototype, "disabledSkipToLatest");
7803
+ ge([
7804
7804
  T()
7805
- ], ne.prototype, "disabledSubmit");
7806
- fe([
7805
+ ], re.prototype, "disabledSubmit");
7806
+ ge([
7807
7807
  T()
7808
- ], ne.prototype, "chatOverlayActive");
7809
- fe([
7808
+ ], re.prototype, "chatOverlayActive");
7809
+ ge([
7810
7810
  T()
7811
- ], ne.prototype, "textAreaLength");
7812
- fe([
7811
+ ], re.prototype, "textAreaLength");
7812
+ ge([
7813
7813
  T()
7814
- ], ne.prototype, "showAuthBanner");
7815
- fe([
7814
+ ], re.prototype, "showAuthBanner");
7815
+ ge([
7816
7816
  T()
7817
- ], ne.prototype, "authenticated");
7818
- const me = (i) => i.objectType === "info", Nd = (i) => i.objectType === "chatEntry", Ud = (i) => i.objectType === "pen", Dd = (i) => i.objectType === "chatButtonClicked", zd = (i) => i.objectType === "endVideoButtonClicked", Hd = (i) => i.type === "queue-status", Fd = (i) => i.type === "established", jd = (i) => i.type === "pen-status", Bd = (i) => i.type === "prepareVideo", qd = (i) => i.type === "videoPrepared", Vd = (i) => i.type === "chatButtonClicked", Wd = (i) => i.type === "endVideoButtonClicked", Gd = (i) => i.type === "chat-ended";
7819
- var de = /* @__PURE__ */ ((i) => (i.Initial = "initial", i.Error = "error", i.Retry = "retry", i.InitError = "init-error", i))(de || {});
7820
- class Ue extends Error {
7817
+ ], re.prototype, "authenticated");
7818
+ const ve = (i) => i.objectType === "info", Nd = (i) => i.objectType === "chatEntry", Ud = (i) => i.objectType === "pen", Dd = (i) => i.objectType === "chatButtonClicked", zd = (i) => i.objectType === "endVideoButtonClicked", Hd = (i) => i.type === "queue-status", Fd = (i) => i.type === "established", jd = (i) => i.type === "pen-status", Bd = (i) => i.type === "prepareVideo", qd = (i) => i.type === "videoPrepared", Vd = (i) => i.type === "chatButtonClicked", Wd = (i) => i.type === "endVideoButtonClicked", Gd = (i) => i.type === "chat-ended";
7819
+ var pe = /* @__PURE__ */ ((i) => (i.Initial = "initial", i.Error = "error", i.Retry = "retry", i.InitError = "init-error", i))(pe || {});
7820
+ class Ae extends Error {
7821
7821
  constructor(e, t, n) {
7822
7822
  super(n || (t == null ? void 0 : t.message) || "Unknown engine error"), this.errorType = e, this.originalError = t;
7823
7823
  }
@@ -7938,6 +7938,22 @@ class Es {
7938
7938
  protocolVersion: this.protocolVersion
7939
7939
  });
7940
7940
  }
7941
+ async isOpenEntrance(e) {
7942
+ var s;
7943
+ const t = await this.sendRequest(
7944
+ "isOpenEntrance",
7945
+ {
7946
+ uid: e.uid,
7947
+ instance: e.instance,
7948
+ entrance: e.entrance,
7949
+ protocolVersion: this.protocolVersion
7950
+ }
7951
+ ), n = (s = t == null ? void 0 : t.dataObjects) == null ? void 0 : s[0];
7952
+ return {
7953
+ open: (n == null ? void 0 : n.open) ?? !1,
7954
+ result: (n == null ? void 0 : n.result) ?? "error"
7955
+ };
7956
+ }
7941
7957
  async sendRequest(e, t) {
7942
7958
  const n = this.endpoint.includes("engine-simulator") ? "include" : void 0, s = `${Es.removeTrailingSlashes(this.endpoint)}/${e}`, r = await fetch(s, {
7943
7959
  body: new URLSearchParams(t),
@@ -7984,11 +8000,11 @@ class Qd {
7984
8000
  videoChatMode: this.config.videoChatMode
7985
8001
  })
7986
8002
  ).pipe(
7987
- vt((t) => bn(() => new Ue("chat-join-error", t))),
7988
- Le(() => this.poll().pipe(
8003
+ vt((t) => bn(() => new Ae("chat-join-error", t))),
8004
+ Ie(() => this.poll().pipe(
7989
8005
  yn(() => this.poll()),
7990
8006
  // Using concatMap here to ensure that each http request gets handled in order
7991
- wn()
8007
+ $n()
7992
8008
  ))
7993
8009
  );
7994
8010
  }
@@ -8009,12 +8025,12 @@ class Qd {
8009
8025
  })
8010
8026
  ).pipe(
8011
8027
  vt((t) => bn(
8012
- () => new Ue("chat-request-error", t)
8028
+ () => new Ae("chat-request-error", t)
8013
8029
  )),
8014
- Le(() => this.poll().pipe(
8030
+ Ie(() => this.poll().pipe(
8015
8031
  yn(() => this.poll()),
8016
8032
  // Using concatMap here to ensure that each http request gets handled in order
8017
- wn()
8033
+ $n()
8018
8034
  ))
8019
8035
  );
8020
8036
  }
@@ -8022,9 +8038,9 @@ class Qd {
8022
8038
  return this.poll().pipe(
8023
8039
  yn(() => this.poll()),
8024
8040
  // Using concatMap here to ensure that each http request gets handled in order
8025
- wn(),
8041
+ $n(),
8026
8042
  vt((e) => bn(
8027
- () => new Ue("chat-engine-error", e)
8043
+ () => new Ae("chat-engine-error", e)
8028
8044
  ))
8029
8045
  );
8030
8046
  }
@@ -8040,10 +8056,10 @@ class Qd {
8040
8056
  ).pipe(
8041
8057
  yc((e) => {
8042
8058
  const t = e == null ? void 0 : e.dataObjects.find(
8043
- (n) => me(n) && n.infoType === "error"
8059
+ (n) => ve(n) && n.infoType === "error"
8044
8060
  );
8045
8061
  if (t)
8046
- throw new Ue(
8062
+ throw new Ae(
8047
8063
  "chat-engine-error",
8048
8064
  void 0,
8049
8065
  t.text || "Chat engine error occurred"
@@ -8060,10 +8076,10 @@ class Qd {
8060
8076
  clockstamp: Date.now().toString(),
8061
8077
  message: e
8062
8078
  }), n = ((t == null ? void 0 : t.dataObjects) || []).find(
8063
- (s) => me(s) && s.infoType === "error"
8079
+ (s) => ve(s) && s.infoType === "error"
8064
8080
  );
8065
8081
  if (n)
8066
- throw new Ue(
8082
+ throw new Ae(
8067
8083
  "chat-write-error",
8068
8084
  void 0,
8069
8085
  n.text || "Unable to send message"
@@ -8097,15 +8113,29 @@ class Qd {
8097
8113
  instance: this.config.instance,
8098
8114
  emailAddress: e
8099
8115
  }), n = ((t == null ? void 0 : t.dataObjects) || []).find(
8100
- (s) => me(s) && s.infoType === "error"
8116
+ (s) => ve(s) && s.infoType === "error"
8101
8117
  );
8102
8118
  if (n)
8103
- throw new Ue(
8119
+ throw new Ae(
8104
8120
  "chat-email-session-error",
8105
8121
  void 0,
8106
8122
  n.text || "Unable to send email with conversation"
8107
8123
  );
8108
8124
  }
8125
+ async isOpenEntrance(e) {
8126
+ const t = await this.client.isOpenEntrance({
8127
+ uid: this.sessionId,
8128
+ instance: this.config.instance,
8129
+ entrance: e
8130
+ });
8131
+ if (t.result !== "ok")
8132
+ throw new Ae(
8133
+ "chat-is-open-error",
8134
+ void 0,
8135
+ "Failed to check if entrance is open"
8136
+ );
8137
+ return t.open;
8138
+ }
8109
8139
  processMessages(e) {
8110
8140
  e.dataObjects.forEach((t) => {
8111
8141
  Nd(t) && t.source && t.objectId >= this.lastObjectId && this.messageSubject$.next({
@@ -8116,10 +8146,10 @@ class Qd {
8116
8146
  }), Ud(t) && this.actionsSubject$.next({
8117
8147
  penStatus: t.penStatus,
8118
8148
  type: "pen-status"
8119
- }), me(t) && t.infoType === "queue" && this.actionsSubject$.next({
8149
+ }), ve(t) && t.infoType === "queue" && this.actionsSubject$.next({
8120
8150
  text: t.text,
8121
8151
  type: "queue-status"
8122
- }), me(t) && t.infoType === "established" && this.actionsSubject$.next({
8152
+ }), ve(t) && t.infoType === "established" && this.actionsSubject$.next({
8123
8153
  text: t.text,
8124
8154
  agentAlias: t.agentAlias,
8125
8155
  type: "established",
@@ -8128,9 +8158,9 @@ class Qd {
8128
8158
  agentUsername: t.agentUsername,
8129
8159
  entrance: t.entrance,
8130
8160
  errand: t.errand
8131
- }), me(t) && t.infoType === "prepareVideo" && this.actionsSubject$.next({
8161
+ }), ve(t) && t.infoType === "prepareVideo" && this.actionsSubject$.next({
8132
8162
  type: "prepareVideo"
8133
- }), me(t) && t.infoType === "videoPrepared" && this.actionsSubject$.next({
8163
+ }), ve(t) && t.infoType === "videoPrepared" && this.actionsSubject$.next({
8134
8164
  text: t.text,
8135
8165
  agent: t.agent,
8136
8166
  type: "videoPrepared",
@@ -8141,7 +8171,7 @@ class Qd {
8141
8171
  }), zd(t) && this.actionsSubject$.next({
8142
8172
  guestId: t.guestId,
8143
8173
  type: "endVideoButtonClicked"
8144
- }), me(t) && ["afterChat", "finished"].includes(t.infoType) && this.actionsSubject$.next({
8174
+ }), ve(t) && ["afterChat", "finished"].includes(t.infoType) && this.actionsSubject$.next({
8145
8175
  text: t.text,
8146
8176
  type: "chat-ended",
8147
8177
  showForm: t.infoType === "afterChat",
@@ -8158,15 +8188,23 @@ class Qd {
8158
8188
  return "noSession";
8159
8189
  const t = e.dataObjects;
8160
8190
  for (const n of t)
8161
- if (me(n))
8191
+ if (ve(n))
8162
8192
  switch (n.infoType) {
8193
+ case "startup":
8194
+ case "queue":
8195
+ case "placedInQueue":
8196
+ case "pendingJoin":
8197
+ case "prepareVideo":
8198
+ case "videoPrepared":
8199
+ case "established":
8200
+ return "active";
8163
8201
  case "finished":
8164
8202
  case "afterChat":
8165
8203
  return "finished";
8166
8204
  case "noSession":
8167
8205
  return "noSession";
8168
8206
  }
8169
- return "active";
8207
+ return "noSession";
8170
8208
  }
8171
8209
  async rehydrate() {
8172
8210
  const e = await this.client.chatCheckSession({
@@ -8174,11 +8212,11 @@ class Qd {
8174
8212
  instance: this.config.instance
8175
8213
  });
8176
8214
  return !e || (e.dataObjects || []).find(
8177
- (t) => me(t) && t.infoType === "noSession"
8215
+ (t) => ve(t) && t.infoType === "noSession"
8178
8216
  ) ? null : (this.processMessages(e), e);
8179
8217
  }
8180
8218
  }
8181
- var Oe = /* @__PURE__ */ ((i) => (i.Tunnistus = "tunnistus", i.BankId = "bankid", i.Freja = "freja", i))(Oe || {}), H = /* @__PURE__ */ ((i) => (i.Pending = "pending", i.Authenticated = "authenticated", i.Error = "error", i))(H || {});
8219
+ var Re = /* @__PURE__ */ ((i) => (i.Tunnistus = "tunnistus", i.BankId = "bankid", i.Freja = "freja", i))(Re || {}), H = /* @__PURE__ */ ((i) => (i.Pending = "pending", i.Authenticated = "authenticated", i.Error = "error", i))(H || {});
8182
8220
  class Vt {
8183
8221
  constructor(e) {
8184
8222
  this.orderRef = "", this.config = e, this.url = `${e.idHubUrl}/${e.idHubCustomerKey}/${e.idHubOrgKey}/${e.idHubEidType}`, this.maxRetries = e.idHubMaxRetries ?? 300;
@@ -8207,18 +8245,18 @@ class Vt {
8207
8245
  };
8208
8246
  const t = await e.json();
8209
8247
  switch (this.orderRef = t.orderRef, this.config.idHubEidType) {
8210
- case Oe.Tunnistus:
8248
+ case Re.Tunnistus:
8211
8249
  return {
8212
8250
  tunnistusURL: t.tunnistusURL,
8213
8251
  status: H.Pending
8214
8252
  };
8215
- case Oe.BankId:
8253
+ case Re.BankId:
8216
8254
  return {
8217
8255
  autoStartToken: t.autoStartToken,
8218
8256
  status: H.Pending
8219
8257
  };
8220
- case Oe.Freja:
8221
- throw new Error(`${Oe.Freja} is not implemented`);
8258
+ case Re.Freja:
8259
+ throw new Error(`${Re.Freja} is not implemented`);
8222
8260
  default:
8223
8261
  throw new Error(
8224
8262
  `The service ${this.config.idHubEidType} is not implemented`
@@ -8325,7 +8363,7 @@ class Xd {
8325
8363
  // ========================
8326
8364
  // Tunnistus authentication
8327
8365
  // ========================
8328
- case Oe.Tunnistus:
8366
+ case Re.Tunnistus:
8329
8367
  if (!this._authResult.tunnistusURL) {
8330
8368
  this.provider.printSystem(
8331
8369
  this.provider.textsService.getOrFallback(
@@ -8336,10 +8374,10 @@ class Xd {
8336
8374
  return;
8337
8375
  }
8338
8376
  this.provider.headerComponent.authUrl = this._authResult.tunnistusURL, this.provider.headerComponent.authState = F.NonAuthenticated, e ? this.handleAuthentication() : (this._authenticationCardEntry = this.provider.showTunnistusAuthCard(
8339
- de.Initial,
8377
+ pe.Initial,
8340
8378
  this._authResult.tunnistusURL
8341
8379
  ), this._authenticationCardEntry.actions$.pipe(
8342
- Z((t) => t.key === "start-auth"),
8380
+ Q((t) => t.key === "start-auth"),
8343
8381
  we(1)
8344
8382
  ).subscribe(() => {
8345
8383
  this.handleAuthentication();
@@ -8348,7 +8386,7 @@ class Xd {
8348
8386
  // =====================
8349
8387
  // BankId authentication
8350
8388
  // =====================
8351
- case Oe.BankId:
8389
+ case Re.BankId:
8352
8390
  break;
8353
8391
  }
8354
8392
  }
@@ -8358,24 +8396,24 @@ class Xd {
8358
8396
  "widget-header.authenticating",
8359
8397
  "Authenticating..."
8360
8398
  ), this.provider.headerComponent.authState = F.Authenticating, (t = this._authenticationCardEntry) == null || t.remove(), this._authenticationCardEntry = this.provider.showTunnistusAuthCard(
8361
- (n = this._authResult) != null && n.tunnistusURL ? de.Initial : de.InitError,
8399
+ (n = this._authResult) != null && n.tunnistusURL ? pe.Initial : pe.InitError,
8362
8400
  (s = this._authResult) == null ? void 0 : s.tunnistusURL,
8363
8401
  void 0,
8364
8402
  !0
8365
8403
  );
8366
8404
  const e = await this._idHubClient.collect();
8367
8405
  switch ((r = this._authenticationCardEntry) == null || r.remove(), this.provider.auth.idHubEidType) {
8368
- case Oe.Tunnistus:
8406
+ case Re.Tunnistus:
8369
8407
  if (e.status === H.Error) {
8370
8408
  if (this._authResult = await this.getAuthResult(), !this._authResult) return;
8371
8409
  this.provider.headerComponent.userName = this.provider.textsService.getOrFallback(
8372
8410
  "widget-header.not-authenticated",
8373
8411
  "Not authenticated"
8374
8412
  ), this.provider.headerComponent.authState = F.NonAuthenticated, this.provider.headerComponent.authUrl = this._authResult.tunnistusURL, this._authenticationCardEntry = this.provider.showTunnistusAuthCard(
8375
- de.Error,
8413
+ pe.Error,
8376
8414
  this._authResult.tunnistusURL
8377
8415
  ), this._authenticationCardEntry.actions$.pipe(
8378
- Z((u) => u.key === "start-auth"),
8416
+ Q((u) => u.key === "start-auth"),
8379
8417
  we(1)
8380
8418
  ).subscribe(async () => {
8381
8419
  this.startAuthenticationFlow(!0);
@@ -8390,13 +8428,10 @@ class Xd {
8390
8428
  authenticated: !0
8391
8429
  }), this.provider.component.setAuthenticationBannerStatus(
8392
8430
  F.Authenticated
8393
- ), (c = this._authenticationCardEntry) == null || c.remove(), await this.provider.handleWelcomeForm(
8394
- e.idhubEIDToken,
8395
- !0
8396
- );
8431
+ ), (c = this._authenticationCardEntry) == null || c.remove(), await this.provider.handleWelcomeForm(e.idhubEIDToken);
8397
8432
  }
8398
8433
  break;
8399
- case Oe.BankId:
8434
+ case Re.BankId:
8400
8435
  break;
8401
8436
  }
8402
8437
  }
@@ -8411,7 +8446,7 @@ class Xd {
8411
8446
  async getAuthResult() {
8412
8447
  const e = await this._idHubClient.auth();
8413
8448
  if (e.status === H.Error) {
8414
- this.provider.showTunnistusAuthCard(de.InitError), this.provider.headerComponent.showAuthOptions = !1;
8449
+ this.provider.showTunnistusAuthCard(pe.InitError), this.provider.headerComponent.showAuthOptions = !1;
8415
8450
  return;
8416
8451
  }
8417
8452
  return e;
@@ -8433,7 +8468,7 @@ class Kd {
8433
8468
  (e = this._videoConfirmDialogEntry) == null || e.remove(), this._videoConfirmDialogEntry = void 0;
8434
8469
  }
8435
8470
  showSurvey(e, t, n, s) {
8436
- const r = new te(
8471
+ const r = new ne(
8437
8472
  j.System,
8438
8473
  { name: "" },
8439
8474
  [
@@ -8456,7 +8491,7 @@ class Kd {
8456
8491
  this.provider.printEntry(r);
8457
8492
  }
8458
8493
  showTunnistusAuthCard(e, t, n, s) {
8459
- const r = new te(
8494
+ const r = new ne(
8460
8495
  j.System,
8461
8496
  { name: "" },
8462
8497
  [
@@ -8481,7 +8516,7 @@ class Kd {
8481
8516
  showWelcomeForm(e, t) {
8482
8517
  this.provider.component.disableInput(), this.provider.component.disableSkipToLatestMessage();
8483
8518
  let n;
8484
- this.provider.isThirdPartyWidget ? n = new te(
8519
+ this.provider.isThirdPartyWidget ? n = new ne(
8485
8520
  j.System,
8486
8521
  { name: "" },
8487
8522
  [
@@ -8489,7 +8524,7 @@ class Kd {
8489
8524
  items: [["ace-welcome-form-third-party", { content: "" }]]
8490
8525
  }
8491
8526
  ]
8492
- ) : n = new te(
8527
+ ) : n = new ne(
8493
8528
  j.System,
8494
8529
  { name: "" },
8495
8530
  [
@@ -8498,7 +8533,7 @@ class Kd {
8498
8533
  }
8499
8534
  ]
8500
8535
  ), this.provider.printEntry(n), n.actions$.pipe(
8501
- Z((s) => s.key === "submitted"),
8536
+ Q((s) => s.key === "submitted"),
8502
8537
  we(1)
8503
8538
  ).subscribe((s) => {
8504
8539
  n.remove(), t({
@@ -8512,7 +8547,7 @@ class Kd {
8512
8547
  }
8513
8548
  showEntranceClosedDialog() {
8514
8549
  this.provider.component.disableInput();
8515
- const e = new te(
8550
+ const e = new ne(
8516
8551
  j.System,
8517
8552
  { name: "" },
8518
8553
  [
@@ -8525,7 +8560,7 @@ class Kd {
8525
8560
  }
8526
8561
  showQuitConfirmDialog(e) {
8527
8562
  var t;
8528
- (t = this._quitConfirmDialogEntry) == null || t.remove(), this._quitConfirmDialogEntry = new te(
8563
+ (t = this._quitConfirmDialogEntry) == null || t.remove(), this._quitConfirmDialogEntry = new ne(
8529
8564
  j.System,
8530
8565
  { name: "" },
8531
8566
  [
@@ -8534,7 +8569,7 @@ class Kd {
8534
8569
  }
8535
8570
  ]
8536
8571
  ), this.provider.printEntry(this._quitConfirmDialogEntry), this._quitConfirmDialogEntry.actions$.pipe(
8537
- Z((n) => n.key === "quit-chat"),
8572
+ Q((n) => n.key === "quit-chat"),
8538
8573
  we(1)
8539
8574
  ).subscribe((n) => {
8540
8575
  var s, r, o, a;
@@ -8542,7 +8577,7 @@ class Kd {
8542
8577
  });
8543
8578
  }
8544
8579
  showConversationEndedForm(e) {
8545
- const t = new te(
8580
+ const t = new ne(
8546
8581
  j.System,
8547
8582
  { name: "" },
8548
8583
  [
@@ -8552,14 +8587,14 @@ class Kd {
8552
8587
  ]
8553
8588
  );
8554
8589
  this.provider.printEntry(t), t.actions$.pipe(
8555
- Z((n) => n.key === "submitted"),
8590
+ Q((n) => n.key === "submitted"),
8556
8591
  we(1)
8557
8592
  ).subscribe((n) => {
8558
8593
  t.remove(), n.data.email && e(n.data.email);
8559
8594
  });
8560
8595
  }
8561
8596
  showVideoConfirmDialog(e) {
8562
- this._videoConfirmDialogEntry = new te(
8597
+ this._videoConfirmDialogEntry = new ne(
8563
8598
  j.System,
8564
8599
  { name: "" },
8565
8600
  [
@@ -8568,7 +8603,7 @@ class Kd {
8568
8603
  }
8569
8604
  ]
8570
8605
  ), this.provider.printEntry(this._videoConfirmDialogEntry), this._videoConfirmDialogEntry.actions$.pipe(
8571
- Z((t) => t.key === "video-confirm"),
8606
+ Q((t) => t.key === "video-confirm"),
8572
8607
  we(1)
8573
8608
  ).subscribe((t) => {
8574
8609
  var n;
@@ -8666,7 +8701,7 @@ const el = "important", ep = " !" + el, tp = ai(class extends Ji {
8666
8701
  n.includes("-") || r ? t.setProperty(n, r ? s.slice(0, -11) : s, r ? el : "") : t[n] = s;
8667
8702
  }
8668
8703
  }
8669
- return Ie;
8704
+ return Pe;
8670
8705
  }
8671
8706
  });
8672
8707
  var ip = Object.defineProperty, np = (i, e, t, n) => {
@@ -8704,7 +8739,7 @@ const Vs = class Vs extends E {
8704
8739
  top: this.headerHeight + e + "px",
8705
8740
  bottom: this.copyrightHeight + e + "px"
8706
8741
  };
8707
- return y` <div class="container" style=${tp(t)}>
8742
+ return $` <div class="container" style=${tp(t)}>
8708
8743
  <iframe
8709
8744
  class="video-iframe"
8710
8745
  src=${this.userUrl.href}
@@ -8739,7 +8774,7 @@ Vs.styles = [
8739
8774
  ];
8740
8775
  let ti = Vs;
8741
8776
  np([
8742
- le({ context: se }),
8777
+ ue({ context: oe }),
8743
8778
  k({ attribute: !1 })
8744
8779
  ], ti.prototype, "application");
8745
8780
  window.customElements.get("ace-video-iframe") || window.customElements.define("ace-video-iframe", ti);
@@ -8788,7 +8823,7 @@ const Ws = class Ws extends E {
8788
8823
  }
8789
8824
  render() {
8790
8825
  const e = this.application.texts;
8791
- return y`<div class="container">
8826
+ return $`<div class="container">
8792
8827
  <h3 data-testid="chat-unavailable-title">
8793
8828
  ${e.getOrFallback(
8794
8829
  "chat-unavailable.title",
@@ -8873,7 +8908,7 @@ Ws.styles = [
8873
8908
  ];
8874
8909
  let Bi = Ws;
8875
8910
  op([
8876
- le({ context: se }),
8911
+ ue({ context: oe }),
8877
8912
  k({ attribute: !1 })
8878
8913
  ], Bi.prototype, "application");
8879
8914
  window.customElements.get("ace-chat-unavailable-card") || window.customElements.define(
@@ -8912,9 +8947,9 @@ const Gs = class Gs extends E {
8912
8947
  }
8913
8948
  renderRequiredIndicator(e) {
8914
8949
  if (!e)
8915
- return $;
8950
+ return w;
8916
8951
  const t = this.application.texts;
8917
- return y`
8952
+ return $`
8918
8953
  <span aria-hidden="true">*</span>
8919
8954
  <span class="sr-only">
8920
8955
  ${t.getOrFallback("welcome-form.sr-only.required", "(required)")}
@@ -8923,7 +8958,7 @@ const Gs = class Gs extends E {
8923
8958
  }
8924
8959
  render() {
8925
8960
  const e = `form-${Ja(this.entry.name)}`, t = this.entry.displayName;
8926
- return this.entry.entryType === "text" ? y`<div class="container">
8961
+ return this.entry.entryType === "text" ? $`<div class="container">
8927
8962
  <label for=${e}
8928
8963
  >${t} ${this.renderRequiredIndicator(this.entry.required)}
8929
8964
  </label>
@@ -8939,7 +8974,7 @@ const Gs = class Gs extends E {
8939
8974
  ?required=${this.entry.required}
8940
8975
  ?disabled=${this.entry.disabled}
8941
8976
  />
8942
- </div>` : this.entry.entryType === "dropdown" ? y`<div class="container">
8977
+ </div>` : this.entry.entryType === "dropdown" ? $`<div class="container">
8943
8978
  <label for=${e}
8944
8979
  >${t} ${this.renderRequiredIndicator(this.entry.required)}
8945
8980
  </label>
@@ -8957,7 +8992,7 @@ const Gs = class Gs extends E {
8957
8992
  <option value="" selected hidden ?disabled=${this.entry.required}>
8958
8993
  ${this.entry.placeholderText}
8959
8994
  </option>
8960
- ${(this.entry.dropdownOptions || []).map((n) => y`<option
8995
+ ${(this.entry.dropdownOptions || []).map((n) => $`<option
8961
8996
  class="options-text-color"
8962
8997
  value=${n.value}
8963
8998
  >
@@ -8968,7 +9003,7 @@ const Gs = class Gs extends E {
8968
9003
  <telia-icon .svg=${aa.svg}></telia-icon>
8969
9004
  </div>
8970
9005
  </div>
8971
- </div>` : y`<div>Unknown entry type</div>`;
9006
+ </div>` : $`<div>Unknown entry type</div>`;
8972
9007
  }
8973
9008
  };
8974
9009
  Gs.styles = [
@@ -9070,7 +9105,7 @@ tl([
9070
9105
  k({ attribute: !1 })
9071
9106
  ], ii.prototype, "entry");
9072
9107
  tl([
9073
- le({ context: se }),
9108
+ ue({ context: oe }),
9074
9109
  k({ attribute: !1 })
9075
9110
  ], ii.prototype, "application");
9076
9111
  window.customElements.get("ace-contact-data-field") || window.customElements.define("ace-contact-data-field", ii);
@@ -9128,7 +9163,7 @@ const Zs = class Zs extends E {
9128
9163
  }
9129
9164
  render() {
9130
9165
  const e = this.application.texts;
9131
- return y`<div class="container">
9166
+ return $`<div class="container">
9132
9167
  <form class="form" @submit=${this._onSendChatLog}>
9133
9168
  <h3>
9134
9169
  ${e.getOrFallback("email-form.title", "Chat sent to email")}
@@ -9256,7 +9291,7 @@ Ts([
9256
9291
  T()
9257
9292
  ], Ct.prototype, "isEmailValid");
9258
9293
  Ts([
9259
- le({ context: se }),
9294
+ ue({ context: oe }),
9260
9295
  k({ attribute: !1 })
9261
9296
  ], Ct.prototype, "application");
9262
9297
  window.customElements.get("ace-conversation-ended-form") || window.customElements.define(
@@ -9271,7 +9306,7 @@ var cp = Object.defineProperty, up = (i, e, t, n) => {
9271
9306
  const Ys = class Ys extends E {
9272
9307
  render() {
9273
9308
  const e = this.application.texts;
9274
- return y`<div class="container">
9309
+ return $`<div class="container">
9275
9310
  <h3 data-testid="entrance-closed-title">
9276
9311
  ${e.getOrFallback(
9277
9312
  "entrance-closed.title",
@@ -9343,7 +9378,7 @@ Ys.styles = [
9343
9378
  ];
9344
9379
  let qi = Ys;
9345
9380
  up([
9346
- le({ context: se }),
9381
+ ue({ context: oe }),
9347
9382
  k({ attribute: !1 })
9348
9383
  ], qi.prototype, "application");
9349
9384
  window.customElements.get("ace-entrance-closed-dialog") || window.customElements.define(
@@ -9381,7 +9416,7 @@ const Qs = class Qs extends E {
9381
9416
  }
9382
9417
  render() {
9383
9418
  const e = this.application.texts;
9384
- return y`<div
9419
+ return $`<div
9385
9420
  class="container"
9386
9421
  role="dialog"
9387
9422
  aria-modal="true"
@@ -9477,7 +9512,7 @@ Qs.styles = [
9477
9512
  ];
9478
9513
  let Vi = Qs;
9479
9514
  dp([
9480
- le({ context: se }),
9515
+ ue({ context: oe }),
9481
9516
  k({ attribute: !1 })
9482
9517
  ], Vi.prototype, "application");
9483
9518
  window.customElements.get("ace-quit-confirm-dialog") || window.customElements.define("ace-quit-confirm-dialog", Vi);
@@ -9500,7 +9535,7 @@ const Xs = class Xs extends E {
9500
9535
  }), this.surveyUrl = n.href;
9501
9536
  }
9502
9537
  render() {
9503
- return y`<div class="container survey">
9538
+ return $`<div class="container survey">
9504
9539
  <h3>${this.surveyTitle}</h3>
9505
9540
  <p>${this.surveyText}</p>
9506
9541
  <div class="link-container">
@@ -9563,7 +9598,7 @@ Xs.styles = [
9563
9598
  ];
9564
9599
  let Wi = Xs;
9565
9600
  fp([
9566
- le({ context: se }),
9601
+ ue({ context: oe }),
9567
9602
  k({ attribute: !1 })
9568
9603
  ], Wi.prototype, "application");
9569
9604
  window.customElements.get("ace-survey") || window.customElements.define("ace-survey", Wi);
@@ -9574,10 +9609,10 @@ var gp = Object.defineProperty, mp = (i, e, t, n) => {
9574
9609
  };
9575
9610
  const Ks = class Ks extends E {
9576
9611
  constructor(e) {
9577
- super(), this.tunnistusURL = "", this.state = de.Initial, this.isAuthenticating = !1;
9612
+ super(), this.tunnistusURL = "", this.state = pe.Initial, this.isAuthenticating = !1;
9578
9613
  const {
9579
9614
  tunnistusURL: t = "",
9580
- state: n = de.Initial,
9615
+ state: n = pe.Initial,
9581
9616
  isAuthenticating: s = !1
9582
9617
  } = e ?? {};
9583
9618
  this.tunnistusURL = t, this.state = n, this.isAuthenticating = s;
@@ -9594,8 +9629,8 @@ const Ks = class Ks extends E {
9594
9629
  render() {
9595
9630
  const e = this.application.texts;
9596
9631
  switch (this.state) {
9597
- case de.InitError:
9598
- return y`<div class="container">
9632
+ case pe.InitError:
9633
+ return $`<div class="container">
9599
9634
  <div class="header-row">
9600
9635
  <telia-icon class="error-icon" svg=${Wr.svg}></telia-icon>
9601
9636
  <h3>
@@ -9612,8 +9647,8 @@ const Ks = class Ks extends E {
9612
9647
  )}
9613
9648
  </p>
9614
9649
  </div>`;
9615
- case de.Error:
9616
- return y`<div class="container">
9650
+ case pe.Error:
9651
+ return $`<div class="container">
9617
9652
  <div class="header-row">
9618
9653
  <telia-icon class="error-icon" svg=${Wr.svg}></telia-icon>
9619
9654
  <h3>
@@ -9647,9 +9682,9 @@ const Ks = class Ks extends E {
9647
9682
  </a>
9648
9683
  </div>
9649
9684
  </div>`;
9650
- case de.Initial:
9685
+ case pe.Initial:
9651
9686
  default:
9652
- return y`<div class="container">
9687
+ return $`<div class="container">
9653
9688
  <div class="header-row">
9654
9689
  <telia-icon class="header-icon" svg=${ra.svg}></telia-icon>
9655
9690
  <h3>
@@ -9762,7 +9797,7 @@ Ks.styles = [
9762
9797
  ];
9763
9798
  let Gi = Ks;
9764
9799
  mp([
9765
- le({ context: se }),
9800
+ ue({ context: oe }),
9766
9801
  k({ attribute: !1 })
9767
9802
  ], Gi.prototype, "application");
9768
9803
  window.customElements.get("ace-tunnistus-auth-card") || window.customElements.define("ace-tunnistus-auth-card", Gi);
@@ -9805,7 +9840,7 @@ const Js = class Js extends E {
9805
9840
  }
9806
9841
  render() {
9807
9842
  const e = this.application.texts;
9808
- return y`<div class="container">
9843
+ return $`<div class="container">
9809
9844
  <h3>
9810
9845
  ${e.getOrFallback(
9811
9846
  "video-confirm.title",
@@ -9898,7 +9933,7 @@ Js.styles = [
9898
9933
  ];
9899
9934
  let Zi = Js;
9900
9935
  bp([
9901
- le({ context: se }),
9936
+ ue({ context: oe }),
9902
9937
  k({ attribute: !1 })
9903
9938
  ], Zi.prototype, "application");
9904
9939
  window.customElements.get("ace-video-confirm-dialog") || window.customElements.define("ace-video-confirm-dialog", Zi);
@@ -9906,8 +9941,8 @@ var yp = Object.defineProperty, At = (i, e, t, n) => {
9906
9941
  for (var s = void 0, r = i.length - 1, o; r >= 0; r--)
9907
9942
  (o = i[r]) && (s = o(e, t, s) || s);
9908
9943
  return s && yp(e, t, s), s;
9909
- }, wt;
9910
- let st = (wt = class extends E {
9944
+ }, $t;
9945
+ let st = ($t = class extends E {
9911
9946
  constructor() {
9912
9947
  super(), this.submitted = !1, this.customData = [], this.customerName = "", this.validationErrors = [], this.showValidationWarning = !1, this.emailController = ze.getInstance(this), this.emailController.clearData();
9913
9948
  }
@@ -9978,9 +10013,9 @@ let st = (wt = class extends E {
9978
10013
  }
9979
10014
  render() {
9980
10015
  if (this.submitted)
9981
- return $;
10016
+ return w;
9982
10017
  const e = this.application.texts;
9983
- return y`<div class="container">
10018
+ return $`<div class="container">
9984
10019
  <form class="form" @submit=${this._onStartChat}>
9985
10020
  <div class="header-row">
9986
10021
  <telia-icon class="header-icon" svg=${ra.svg}></telia-icon>
@@ -10004,7 +10039,7 @@ let st = (wt = class extends E {
10004
10039
  );
10005
10040
  n != null && n.authenticated && (t.value = n == null ? void 0 : n.name, t.disabled = !0);
10006
10041
  }
10007
- return y`<div>
10042
+ return $`<div>
10008
10043
  <ace-contact-data-field
10009
10044
  value=${t.value}
10010
10045
  .entry=${t}
@@ -10035,7 +10070,7 @@ let st = (wt = class extends E {
10035
10070
  </form>
10036
10071
  </div>`;
10037
10072
  }
10038
- }, wt.styles = [
10073
+ }, $t.styles = [
10039
10074
  O`
10040
10075
  :host {
10041
10076
  display: block;
@@ -10118,7 +10153,7 @@ let st = (wt = class extends E {
10118
10153
  margin: 0;
10119
10154
  }
10120
10155
  `
10121
- ], wt);
10156
+ ], $t);
10122
10157
  At([
10123
10158
  T()
10124
10159
  ], st.prototype, "submitted");
@@ -10135,14 +10170,14 @@ At([
10135
10170
  T()
10136
10171
  ], st.prototype, "showValidationWarning");
10137
10172
  At([
10138
- le({ context: se }),
10173
+ ue({ context: oe }),
10139
10174
  k({ attribute: !1 })
10140
10175
  ], st.prototype, "application");
10141
10176
  window.customElements.get("ace-welcome-form") || window.customElements.define("ace-welcome-form", st);
10142
- var wp = Object.defineProperty, Os = (i, e, t, n) => {
10177
+ var $p = Object.defineProperty, Os = (i, e, t, n) => {
10143
10178
  for (var s = void 0, r = i.length - 1, o; r >= 0; r--)
10144
10179
  (o = i[r]) && (s = o(e, t, s) || s);
10145
- return s && wp(e, t, s), s;
10180
+ return s && $p(e, t, s), s;
10146
10181
  };
10147
10182
  const er = class er extends E {
10148
10183
  constructor() {
@@ -10170,7 +10205,7 @@ const er = class er extends E {
10170
10205
  const t = (o = this.application.branding().graphics) == null ? void 0 : o.logotype, n = this.application.texts;
10171
10206
  this.application.root.style.getPropertyValue("visibility") === "" && (this.application.root.style.visibility = "hidden");
10172
10207
  const r = new URLSearchParams(document.location.search).get("invitationUid");
10173
- return this.submitted ? $ : r ? y`<div class="container">
10208
+ return this.submitted ? w : r ? $`<div class="container">
10174
10209
  <img class="logotype" src="${t}" />
10175
10210
  <p>
10176
10211
  ${n.getOrFallback(
@@ -10201,7 +10236,7 @@ const er = class er extends E {
10201
10236
  )}
10202
10237
  </button>
10203
10238
  </form>
10204
- </div>` : y`<div>
10239
+ </div>` : $`<div>
10205
10240
  ${n.getOrFallback(
10206
10241
  "third-pary-chat.error-message",
10207
10242
  "Please check your invitation URL"
@@ -10302,7 +10337,7 @@ Os([
10302
10337
  T()
10303
10338
  ], _t.prototype, "name");
10304
10339
  Os([
10305
- le({ context: se }),
10340
+ ue({ context: oe }),
10306
10341
  k({ attribute: !1 })
10307
10342
  ], _t.prototype, "application");
10308
10343
  window.customElements.get("ace-welcome-form-third-party") || window.customElements.define("ace-welcome-form-third-party", _t);
@@ -10392,9 +10427,10 @@ class Rs extends Cc {
10392
10427
  // LIFECYCLE METHODS (ConversationProvider overrides)
10393
10428
  // ==================================================
10394
10429
  connect(e = {}) {
10430
+ var r, o, a, l, c, u, p, d, g, v;
10395
10431
  if (super.connect(), !this.live.shouldUseLiveAgent) {
10396
10432
  this.headerComponent.showAuthOptions = !1;
10397
- const r = new te(
10433
+ const m = new ne(
10398
10434
  j.System,
10399
10435
  {
10400
10436
  name: ""
@@ -10405,53 +10441,53 @@ class Rs extends Cc {
10405
10441
  }
10406
10442
  ]
10407
10443
  );
10408
- this.printEntry(r);
10444
+ this.printEntry(m);
10409
10445
  return;
10410
10446
  }
10411
10447
  this.setupAuthenticationListeners(), this.conversationOptions = e;
10412
10448
  const t = this.createEngineConfig(), n = !!this.sessionId;
10413
10449
  if (!n) {
10414
- const r = As();
10415
- this.setSessionId(r);
10450
+ const m = As();
10451
+ this.setSessionId(m);
10416
10452
  }
10417
10453
  this.save({
10418
10454
  chatSessionId: this.sessionId
10419
- }), this.engine = new Qd(t, this.sessionId), this.engine.messages().subscribe((r) => {
10420
- switch (r.source) {
10455
+ }), this.engine = new Qd(t, this.sessionId), (r = this.engine) == null || r.messages().subscribe((m) => {
10456
+ switch (m.source) {
10421
10457
  case "agent":
10422
- this.printAgent(r.text);
10458
+ this.printAgent(m.text);
10423
10459
  break;
10424
10460
  case "customer":
10425
- this.clearPendingMessages(), this.isThirdPartyWidget ? r.source === "customer" && r.invitationNo === "0" ? this.printAgent(r.text, r.alias) : this.printUser(r.text) : r.source === "customer" && Number(r.invitationNo) > 0 ? this.printAgent(r.text, r.alias) : this.printUser(r.text);
10461
+ this.clearPendingMessages(), this.isThirdPartyWidget ? m.source === "customer" && m.invitationNo === "0" ? this.printAgent(m.text, m.alias) : this.printUser(m.text) : m.source === "customer" && Number(m.invitationNo) > 0 ? this.printAgent(m.text, m.alias) : this.printUser(m.text);
10426
10462
  break;
10427
10463
  case "system":
10428
- this.printSystem(r.text);
10464
+ this.printSystem(m.text);
10429
10465
  break;
10430
10466
  }
10431
- }), this.engine.actions().pipe(z(this.disconnected$), Z(Hd)).subscribe(this.onQueueStatusReceived), this.engine.actions().pipe(z(this.disconnected$), Z(Fd)).subscribe(this.onEstablished), this.engine.actions().pipe(z(this.disconnected$), Z(Bd)).subscribe(this.onPrepareVideo), this.engine.actions().pipe(z(this.disconnected$), Z(qd)).subscribe(this.onVideoPrepared), this.engine.actions().pipe(z(this.disconnected$), Z(Vd)).subscribe(this.onChatButtonClicked), this.engine.actions().pipe(
10467
+ }), (o = this.engine) == null || o.actions().pipe(z(this.disconnected$), Q(Hd)).subscribe(this.onQueueStatusReceived), (a = this.engine) == null || a.actions().pipe(z(this.disconnected$), Q(Fd)).subscribe(this.onEstablished), (l = this.engine) == null || l.actions().pipe(z(this.disconnected$), Q(Bd)).subscribe(this.onPrepareVideo), (c = this.engine) == null || c.actions().pipe(z(this.disconnected$), Q(qd)).subscribe(this.onVideoPrepared), (u = this.engine) == null || u.actions().pipe(z(this.disconnected$), Q(Vd)).subscribe(this.onChatButtonClicked), (p = this.engine) == null || p.actions().pipe(
10432
10468
  z(this.disconnected$),
10433
- Z(Wd)
10434
- ).subscribe(this.onEndVideoButtonClicked), this.engine.actions().pipe(z(this.disconnected$), Z(jd)).subscribe(this.onPenStatusChange), this.engine.actions().pipe(z(this.disconnected$), Z(Gd)).subscribe(this.onChatEnded), this.headerMenuService.setHeaderOption();
10469
+ Q(Wd)
10470
+ ).subscribe(this.onEndVideoButtonClicked), (d = this.engine) == null || d.actions().pipe(z(this.disconnected$), Q(jd)).subscribe(this.onPenStatusChange), (g = this.engine) == null || g.actions().pipe(z(this.disconnected$), Q(Gd)).subscribe(this.onChatEnded), this.headerMenuService.setHeaderOption();
10435
10471
  const s = this.application.trigger;
10436
- s && s.widgetActive$.pipe(z(s.componentIsDestroyed$)).subscribe((r) => {
10437
- r && (this.conversationOption = null, this.headerMenuService.setHeaderOption());
10438
- }), this.component.userTyping$.pipe(z(this.disconnected$)).subscribe((r) => {
10439
- var o;
10440
- (o = this.engine) == null || o.sendPenStatusOn(r);
10441
- }), n ? this.engine.rehydrate().then((r) => {
10442
- var o;
10443
- r ? (o = this.engine) == null || o.reconnect().pipe(z(this.disconnected$)).subscribe({
10444
- error: (a) => {
10445
- console.error("Failed to reconnect to the engine"), this.handleChatEngineError(a);
10472
+ s && s.widgetActive$.pipe(z(s.componentIsDestroyed$)).subscribe((m) => {
10473
+ m && (this.conversationOption = null, this.headerMenuService.setHeaderOption());
10474
+ }), this.component.userTyping$.pipe(z(this.disconnected$)).subscribe((m) => {
10475
+ var W;
10476
+ (W = this.engine) == null || W.sendPenStatusOn(m);
10477
+ }), n ? (v = this.engine) == null || v.rehydrate().then((m) => {
10478
+ var W;
10479
+ m ? (W = this.engine) == null || W.reconnect().pipe(z(this.disconnected$)).subscribe({
10480
+ error: (G) => {
10481
+ console.error("Failed to reconnect to the engine"), this.handleChatEngineError(G);
10446
10482
  }
10447
- }) : this.initializeChat().catch((a) => {
10483
+ }) : this.initializeChat().catch((G) => {
10448
10484
  console.error(
10449
10485
  "Failed to initialize chat during rehydration:",
10450
- a
10486
+ G
10451
10487
  );
10452
10488
  });
10453
- }) : this.initializeChat().catch((r) => {
10454
- console.error("Failed to initialize chat:", r);
10489
+ }) : this.initializeChat().catch((m) => {
10490
+ console.error("Failed to initialize chat:", m);
10455
10491
  });
10456
10492
  }
10457
10493
  disconnected() {
@@ -10464,13 +10500,13 @@ class Rs extends Cc {
10464
10500
  try {
10465
10501
  await ((n = this.engine) == null ? void 0 : n.chatWrite(e.text));
10466
10502
  } catch (s) {
10467
- s instanceof Ue ? t.setStatus("failed") : (t.setStatus("failed"), console.warn("Unhandled error:", s));
10503
+ s instanceof Ae ? t.setStatus("failed") : (t.setStatus("failed"), console.warn("Unhandled error:", s));
10468
10504
  }
10469
10505
  })();
10470
10506
  }
10471
10507
  save(e) {
10472
10508
  this.component.stateMachine.session().pipe(
10473
- Le((t) => (t == null ? void 0 : t.data$) || Re),
10509
+ Ie((t) => (t == null ? void 0 : t.data$) || Le),
10474
10510
  we(1)
10475
10511
  ).subscribe((t) => {
10476
10512
  this.saveToCurrentSession$.next({ ...t, ...e });
@@ -10504,53 +10540,47 @@ class Rs extends Cc {
10504
10540
  };
10505
10541
  }
10506
10542
  async initializeChat() {
10507
- var s, r;
10508
- const e = (s = this.live) == null ? void 0 : s.webApiUrl, t = ((r = this.live) == null ? void 0 : r.entrance) ?? "", n = e ? await this.isEntranceOpen(e, t) : !0;
10509
- n || (this.headerComponent.showAuthOptions = !1), n && this.auth.shouldUseAuth && this.auth.idHubEidType ? (this.component.setAuthenticationBannerStatus(F.NonAuthenticated), this.authService.setupIDHubAuth(), await this.authService.startAuthenticationFlow()) : this.handleWelcomeForm(void 0, n);
10543
+ var t;
10544
+ if (!await this.isEntranceOpen((t = this.live) == null ? void 0 : t.entrance)) {
10545
+ this.headerComponent.showAuthOptions = !1, this.dialogService.showEntranceClosedDialog();
10546
+ return;
10547
+ }
10548
+ this.auth.shouldUseAuth && this.auth.idHubEidType ? (this.component.setAuthenticationBannerStatus(F.NonAuthenticated), this.authService.setupIDHubAuth(), await this.authService.startAuthenticationFlow()) : this.handleWelcomeForm();
10510
10549
  }
10511
10550
  setupAuthenticationListeners() {
10512
10551
  var e, t;
10513
10552
  this.auth.shouldUseAuth && ((e = this.headerComponent) != null && e.actions$) && ((t = this.headerComponent) == null || t.actions$.pipe(
10514
- Z((n) => n.key === "start-auth"),
10553
+ Q((n) => n.key === "start-auth"),
10515
10554
  z(this.disconnected$)
10516
10555
  ).subscribe((n) => {
10517
10556
  n.key === "start-auth" && this.authService.handleAuthentication();
10518
10557
  }));
10519
10558
  }
10520
- async handleWelcomeForm(e, t = !0) {
10521
- var r, o;
10522
- const n = (r = this.live) == null ? void 0 : r.webApiUrl, s = ((o = this.live) == null ? void 0 : o.entrance) ?? "";
10523
- if (n)
10524
- try {
10525
- t = await this.isEntranceOpen(n, s);
10526
- } catch (a) {
10527
- console.error("Error checking entrance status:", a), t = !1;
10528
- }
10529
- t ? this.customerName ? (this.user.name = this.customerName, this.startChat(
10559
+ async handleWelcomeForm(e) {
10560
+ this.customerName ? (this.user.name = this.customerName, this.startChat(
10530
10561
  {
10531
10562
  customerName: this.customerName,
10532
10563
  customData: {}
10533
10564
  },
10534
10565
  e
10535
- )) : this.dialogService.showWelcomeForm(e, (a) => {
10536
- this.user.name = a.customerName, this.storageService.set("userName", {
10566
+ )) : this.dialogService.showWelcomeForm(e, (t) => {
10567
+ this.user.name = t.customerName, this.storageService.set("userName", {
10537
10568
  name: this.user.name
10538
10569
  }), this.startChat(
10539
10570
  {
10540
- customerName: a.customerName,
10541
- customerEmailAddress: a.customerEmailAddress,
10542
- visitorQuestion: a.visitorQuestion,
10543
- customData: a.customData
10571
+ customerName: t.customerName,
10572
+ customerEmailAddress: t.customerEmailAddress,
10573
+ visitorQuestion: t.visitorQuestion,
10574
+ customData: t.customData
10544
10575
  },
10545
- a.idhubEIDToken
10576
+ t.idhubEIDToken
10546
10577
  );
10547
- }) : this.dialogService.showEntranceClosedDialog();
10578
+ });
10548
10579
  }
10549
10580
  startChat(e, t) {
10550
10581
  var s;
10551
10582
  if (!this.engine)
10552
10583
  return;
10553
- console.log("Starting chat with options:", e);
10554
10584
  const n = ((s = e.customData) == null ? void 0 : s.errand) ?? this.live.defaultErrand;
10555
10585
  if (!n)
10556
10586
  throw new Error("Errand is required but was not configured");
@@ -10559,7 +10589,7 @@ class Rs extends Cc {
10559
10589
  customerName: this.customerName ?? e.customerName
10560
10590
  }).pipe(
10561
10591
  z(this.disconnected$),
10562
- vt((r) => (this.handleChatEngineError(r), Re))
10592
+ vt((r) => (this.handleChatEngineError(r), Le))
10563
10593
  ).subscribe()) : this.engine.chatRequest({
10564
10594
  customerName: e.customerName,
10565
10595
  customerEmailAddress: e.customerEmailAddress ?? "",
@@ -10569,7 +10599,7 @@ class Rs extends Cc {
10569
10599
  ...t && { authToken: t }
10570
10600
  }).pipe(
10571
10601
  z(this.disconnected$),
10572
- vt((r) => (this.handleChatEngineError(r), Re))
10602
+ vt((r) => (this.handleChatEngineError(r), Le))
10573
10603
  ).subscribe(), this.component.enableInput(), this.component.enableSkipToLatestMessage(), this.headerMenuService.setEndConversationOption();
10574
10604
  }
10575
10605
  restartNewChat() {
@@ -10614,7 +10644,7 @@ class Rs extends Cc {
10614
10644
  "email-form.error-message",
10615
10645
  "Unable to send email with the conversation."
10616
10646
  )
10617
- ), n instanceof Ue || console.warn("Unhandled error:", n);
10647
+ ), n instanceof Ae || console.warn("Unhandled error:", n);
10618
10648
  }
10619
10649
  }
10620
10650
  clearPendingMessages() {
@@ -10624,21 +10654,13 @@ class Rs extends Cc {
10624
10654
  setSessionId(e) {
10625
10655
  this.sessionId = e;
10626
10656
  }
10627
- async isEntranceOpen(e, t) {
10628
- var s;
10629
- let n = !1;
10657
+ async isEntranceOpen(e) {
10658
+ var t;
10630
10659
  try {
10631
- const r = await fetch(
10632
- `${e}/1/entrances/${t}/is-open`
10633
- ), o = await r.json();
10634
- r.ok ? n = (s = o == null ? void 0 : o.resultData) == null ? void 0 : s.isOpen : console.log(
10635
- `Problem when fetching open status for entrance ${t}:`,
10636
- o == null ? void 0 : o.resultMessage
10637
- );
10638
- } catch (r) {
10639
- console.log(`Failed to fetch open status for ${t}:`, r);
10660
+ return await ((t = this.engine) == null ? void 0 : t.isOpenEntrance(e)) ?? !1;
10661
+ } catch (n) {
10662
+ return console.log(`Failed to check if entrance ${e} is open:`, n), !1;
10640
10663
  }
10641
- return n;
10642
10664
  }
10643
10665
  unescapeHtml(e) {
10644
10666
  const t = document.createElement("textarea");