@telia-ace/ace-chat-flamingo 1.1.123-rc.1 → 1.1.123-rc.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/index.js +36 -36
  2. package/index.mjs +425 -413
  3. package/package.json +3 -3
  4. package/types.d.ts +8 -0
package/index.mjs CHANGED
@@ -26,22 +26,22 @@ function vl(n, e, t, i) {
26
26
  return new (t || (t = Promise))(function(r, o) {
27
27
  function a(u) {
28
28
  try {
29
- c(i.next(u));
29
+ l(i.next(u));
30
30
  } catch (p) {
31
31
  o(p);
32
32
  }
33
33
  }
34
- function l(u) {
34
+ function c(u) {
35
35
  try {
36
- c(i.throw(u));
36
+ l(i.throw(u));
37
37
  } catch (p) {
38
38
  o(p);
39
39
  }
40
40
  }
41
- function c(u) {
42
- u.done ? r(u.value) : s(u.value).then(a, l);
41
+ function l(u) {
42
+ u.done ? r(u.value) : s(u.value).then(a, c);
43
43
  }
44
- c((i = i.apply(n, e || [])).next());
44
+ l((i = i.apply(n, e || [])).next());
45
45
  });
46
46
  }
47
47
  function Oo(n, e) {
@@ -52,56 +52,56 @@ function Oo(n, e) {
52
52
  return o.next = a(0), o.throw = a(1), o.return = a(2), typeof Symbol == "function" && (o[Symbol.iterator] = function() {
53
53
  return this;
54
54
  }), o;
55
- function a(c) {
55
+ function a(l) {
56
56
  return function(u) {
57
- return l([c, u]);
57
+ return c([l, u]);
58
58
  };
59
59
  }
60
- function l(c) {
60
+ function c(l) {
61
61
  if (i) throw new TypeError("Generator is already executing.");
62
- for (; o && (o = 0, c[0] && (t = 0)), t; ) try {
63
- if (i = 1, s && (r = c[0] & 2 ? s.return : c[0] ? s.throw || ((r = s.return) && r.call(s), 0) : s.next) && !(r = r.call(s, c[1])).done) return r;
64
- switch (s = 0, r && (c = [c[0] & 2, r.value]), c[0]) {
62
+ for (; o && (o = 0, l[0] && (t = 0)), t; ) try {
63
+ if (i = 1, s && (r = l[0] & 2 ? s.return : l[0] ? s.throw || ((r = s.return) && r.call(s), 0) : s.next) && !(r = r.call(s, l[1])).done) return r;
64
+ switch (s = 0, r && (l = [l[0] & 2, r.value]), l[0]) {
65
65
  case 0:
66
66
  case 1:
67
- r = c;
67
+ r = l;
68
68
  break;
69
69
  case 4:
70
- return t.label++, { value: c[1], done: !1 };
70
+ return t.label++, { value: l[1], done: !1 };
71
71
  case 5:
72
- t.label++, s = c[1], c = [0];
72
+ t.label++, s = l[1], l = [0];
73
73
  continue;
74
74
  case 7:
75
- c = t.ops.pop(), t.trys.pop();
75
+ l = t.ops.pop(), t.trys.pop();
76
76
  continue;
77
77
  default:
78
- if (r = t.trys, !(r = r.length > 0 && r[r.length - 1]) && (c[0] === 6 || c[0] === 2)) {
78
+ if (r = t.trys, !(r = r.length > 0 && r[r.length - 1]) && (l[0] === 6 || l[0] === 2)) {
79
79
  t = 0;
80
80
  continue;
81
81
  }
82
- if (c[0] === 3 && (!r || c[1] > r[0] && c[1] < r[3])) {
83
- t.label = c[1];
82
+ if (l[0] === 3 && (!r || l[1] > r[0] && l[1] < r[3])) {
83
+ t.label = l[1];
84
84
  break;
85
85
  }
86
- if (c[0] === 6 && t.label < r[1]) {
87
- t.label = r[1], r = c;
86
+ if (l[0] === 6 && t.label < r[1]) {
87
+ t.label = r[1], r = l;
88
88
  break;
89
89
  }
90
90
  if (r && t.label < r[2]) {
91
- t.label = r[2], t.ops.push(c);
91
+ t.label = r[2], t.ops.push(l);
92
92
  break;
93
93
  }
94
94
  r[2] && t.ops.pop(), t.trys.pop();
95
95
  continue;
96
96
  }
97
- c = e.call(n, t);
97
+ l = e.call(n, t);
98
98
  } catch (u) {
99
- c = [6, u], s = 0;
99
+ l = [6, u], s = 0;
100
100
  } finally {
101
101
  i = r = 0;
102
102
  }
103
- if (c[0] & 5) throw c[1];
104
- return { value: c[0] ? c[1] : void 0, done: !0 };
103
+ if (l[0] & 5) throw l[1];
104
+ return { value: l[0] ? l[1] : void 0, done: !0 };
105
105
  }
106
106
  }
107
107
  function yt(n) {
@@ -153,28 +153,28 @@ function bl(n, e, t) {
153
153
  function a(g, m) {
154
154
  i[g] && (s[g] = function($) {
155
155
  return new Promise(function($e, ce) {
156
- r.push([g, $, $e, ce]) > 1 || l(g, $);
156
+ r.push([g, $, $e, ce]) > 1 || c(g, $);
157
157
  });
158
158
  }, m && (s[g] = m(s[g])));
159
159
  }
160
- function l(g, m) {
160
+ function c(g, m) {
161
161
  try {
162
- c(i[g](m));
162
+ l(i[g](m));
163
163
  } catch ($) {
164
164
  d(r[0][3], $);
165
165
  }
166
166
  }
167
- function c(g) {
167
+ function l(g) {
168
168
  g.value instanceof gt ? Promise.resolve(g.value.v).then(u, p) : d(r[0][2], g);
169
169
  }
170
170
  function u(g) {
171
- l("next", g);
171
+ c("next", g);
172
172
  }
173
173
  function p(g) {
174
- l("throw", g);
174
+ c("throw", g);
175
175
  }
176
176
  function d(g, m) {
177
- g(m), r.shift(), r.length && l(r[0][0], r[0][1]);
177
+ g(m), r.shift(), r.length && c(r[0][0], r[0][1]);
178
178
  }
179
179
  }
180
180
  function yl(n) {
@@ -185,14 +185,14 @@ function yl(n) {
185
185
  }, t);
186
186
  function i(r) {
187
187
  t[r] = n[r] && function(o) {
188
- return new Promise(function(a, l) {
189
- o = n[r](o), s(a, l, o.done, o.value);
188
+ return new Promise(function(a, c) {
189
+ o = n[r](o), s(a, c, o.done, o.value);
190
190
  });
191
191
  };
192
192
  }
193
- function s(r, o, a, l) {
194
- Promise.resolve(l).then(function(c) {
195
- r({ value: c, done: a });
193
+ function s(r, o, a, c) {
194
+ Promise.resolve(c).then(function(l) {
195
+ r({ value: l, done: a });
196
196
  }, o);
197
197
  }
198
198
  }
@@ -232,15 +232,15 @@ var tn = (function() {
232
232
  if (o)
233
233
  if (this._parentage = null, Array.isArray(o))
234
234
  try {
235
- for (var a = yt(o), l = a.next(); !l.done; l = a.next()) {
236
- var c = l.value;
237
- c.remove(this);
235
+ for (var a = yt(o), c = a.next(); !c.done; c = a.next()) {
236
+ var l = c.value;
237
+ l.remove(this);
238
238
  }
239
239
  } catch ($) {
240
240
  e = { error: $ };
241
241
  } finally {
242
242
  try {
243
- l && !l.done && (t = a.return) && t.call(a);
243
+ c && !c.done && (t = a.return) && t.call(a);
244
244
  } finally {
245
245
  if (e) throw e.error;
246
246
  }
@@ -446,8 +446,8 @@ var j = (function() {
446
446
  }, n.prototype.subscribe = function(e, t, i) {
447
447
  var s = this, r = _l(e) ? e : new Ii(e, t, i);
448
448
  return wn(function() {
449
- var o = s, a = o.operator, l = o.source;
450
- r.add(a ? a.call(r, l) : l ? s._subscribe(r) : s._trySubscribe(r));
449
+ var o = s, a = o.operator, c = o.source;
450
+ r.add(a ? a.call(r, c) : c ? s._subscribe(r) : s._trySubscribe(r));
451
451
  }), r;
452
452
  }, n.prototype._trySubscribe = function(e) {
453
453
  try {
@@ -462,8 +462,8 @@ var j = (function() {
462
462
  next: function(a) {
463
463
  try {
464
464
  e(a);
465
- } catch (l) {
466
- r(l), o.unsubscribe();
465
+ } catch (c) {
466
+ r(c), o.unsubscribe();
467
467
  }
468
468
  },
469
469
  error: r,
@@ -528,30 +528,30 @@ function Y(n, e, t, i, s) {
528
528
  var Tl = (function(n) {
529
529
  Ie(e, n);
530
530
  function e(t, i, s, r, o, a) {
531
- var l = n.call(this, t) || this;
532
- return l.onFinalize = o, l.shouldUnsubscribe = a, l._next = i ? function(c) {
531
+ var c = n.call(this, t) || this;
532
+ return c.onFinalize = o, c.shouldUnsubscribe = a, c._next = i ? function(l) {
533
533
  try {
534
- i(c);
534
+ i(l);
535
535
  } catch (u) {
536
536
  t.error(u);
537
537
  }
538
- } : n.prototype._next, l._error = r ? function(c) {
538
+ } : n.prototype._next, c._error = r ? function(l) {
539
539
  try {
540
- r(c);
540
+ r(l);
541
541
  } catch (u) {
542
542
  t.error(u);
543
543
  } finally {
544
544
  this.unsubscribe();
545
545
  }
546
- } : n.prototype._error, l._complete = s ? function() {
546
+ } : n.prototype._error, c._complete = s ? function() {
547
547
  try {
548
548
  s();
549
- } catch (c) {
550
- t.error(c);
549
+ } catch (l) {
550
+ t.error(l);
551
551
  } finally {
552
552
  this.unsubscribe();
553
553
  }
554
- } : n.prototype._complete, l;
554
+ } : n.prototype._complete, c;
555
555
  }
556
556
  return e.prototype.unsubscribe = function() {
557
557
  var t;
@@ -584,11 +584,11 @@ var Tl = (function(n) {
584
584
  i.currentObservers || (i.currentObservers = Array.from(i.observers));
585
585
  try {
586
586
  for (var o = yt(i.currentObservers), a = o.next(); !a.done; a = o.next()) {
587
- var l = a.value;
588
- l.next(t);
587
+ var c = a.value;
588
+ c.next(t);
589
589
  }
590
- } catch (c) {
591
- s = { error: c };
590
+ } catch (l) {
591
+ s = { error: l };
592
592
  } finally {
593
593
  try {
594
594
  a && !a.done && (r = o.return) && r.call(o);
@@ -934,27 +934,27 @@ function Bl(n, e) {
934
934
  var t, i, s, r;
935
935
  return vl(this, void 0, void 0, function() {
936
936
  var o, a;
937
- return Oo(this, function(l) {
938
- switch (l.label) {
937
+ return Oo(this, function(c) {
938
+ switch (c.label) {
939
939
  case 0:
940
- l.trys.push([0, 5, 6, 11]), t = yl(n), l.label = 1;
940
+ c.trys.push([0, 5, 6, 11]), t = yl(n), c.label = 1;
941
941
  case 1:
942
942
  return [4, t.next()];
943
943
  case 2:
944
- if (i = l.sent(), !!i.done) return [3, 4];
944
+ if (i = c.sent(), !!i.done) return [3, 4];
945
945
  if (o = i.value, e.next(o), e.closed)
946
946
  return [2];
947
- l.label = 3;
947
+ c.label = 3;
948
948
  case 3:
949
949
  return [3, 1];
950
950
  case 4:
951
951
  return [3, 11];
952
952
  case 5:
953
- return a = l.sent(), s = { error: a }, [3, 11];
953
+ return a = c.sent(), s = { error: a }, [3, 11];
954
954
  case 6:
955
- return l.trys.push([6, , 9, 10]), i && !i.done && (r = t.return) ? [4, r.call(t)] : [3, 8];
955
+ return c.trys.push([6, , 9, 10]), i && !i.done && (r = t.return) ? [4, r.call(t)] : [3, 8];
956
956
  case 7:
957
- l.sent(), l.label = 8;
957
+ c.sent(), c.label = 8;
958
958
  case 8:
959
959
  return [3, 10];
960
960
  case 9:
@@ -1125,15 +1125,15 @@ function rc() {
1125
1125
  var t = ss(n), i = Mo(n), s = nc(n), r = s.args, o = s.keys;
1126
1126
  if (r.length === 0)
1127
1127
  return Ye([], t);
1128
- var a = new j(oc(r, t, o ? function(l) {
1129
- return sc(o, l);
1128
+ var a = new j(oc(r, t, o ? function(c) {
1129
+ return sc(o, c);
1130
1130
  } : Ct));
1131
1131
  return i ? a.pipe(Zo(i)) : a;
1132
1132
  }
1133
1133
  function oc(n, e, t) {
1134
1134
  return t === void 0 && (t = Ct), function(i) {
1135
1135
  Or(e, function() {
1136
- for (var s = n.length, r = new Array(s), o = s, a = s, l = function(u) {
1136
+ for (var s = n.length, r = new Array(s), o = s, a = s, c = function(u) {
1137
1137
  Or(e, function() {
1138
1138
  var p = Ye(n[u], e), d = !1;
1139
1139
  p.subscribe(Y(i, function(g) {
@@ -1142,8 +1142,8 @@ function oc(n, e, t) {
1142
1142
  --o || i.complete();
1143
1143
  }));
1144
1144
  }, i);
1145
- }, c = 0; c < s; c++)
1146
- l(c);
1145
+ }, l = 0; l < s; l++)
1146
+ c(l);
1147
1147
  }, i);
1148
1148
  };
1149
1149
  }
@@ -1151,12 +1151,12 @@ function Or(n, e, t) {
1151
1151
  n ? Ne(t, n, e) : e();
1152
1152
  }
1153
1153
  function ac(n, e, t, i, s, r, o, a) {
1154
- var l = [], c = 0, u = 0, p = !1, d = function() {
1155
- p && !l.length && !c && e.complete();
1154
+ var c = [], l = 0, u = 0, p = !1, d = function() {
1155
+ p && !c.length && !l && e.complete();
1156
1156
  }, g = function($) {
1157
- return c < i ? m($) : l.push($);
1157
+ return l < i ? m($) : c.push($);
1158
1158
  }, m = function($) {
1159
- c++;
1159
+ l++;
1160
1160
  var $e = !1;
1161
1161
  ae(t($, u++)).subscribe(Y(e, function(ce) {
1162
1162
  e.next(ce);
@@ -1165,11 +1165,11 @@ function ac(n, e, t, i, s, r, o, a) {
1165
1165
  }, void 0, function() {
1166
1166
  if ($e)
1167
1167
  try {
1168
- c--;
1168
+ l--;
1169
1169
  for (var ce = function() {
1170
- var Pe = l.shift();
1170
+ var Pe = c.shift();
1171
1171
  o || m(Pe);
1172
- }; l.length && c < i; )
1172
+ }; c.length && l < i; )
1173
1173
  ce();
1174
1174
  d();
1175
1175
  } catch (Pe) {
@@ -1204,8 +1204,8 @@ function An(n, e, t, i) {
1204
1204
  if (E(t) && (i = t, t = void 0), i)
1205
1205
  return An(n, e, t).pipe(Zo(i));
1206
1206
  var s = ze(gc(n) ? hc.map(function(a) {
1207
- return function(l) {
1208
- return n[a](e, l, t);
1207
+ return function(c) {
1208
+ return n[a](e, c, t);
1209
1209
  };
1210
1210
  }) : pc(n) ? uc.map(Lr(n, e)) : fc(n) ? dc.map(Lr(n, e)) : [], 2), r = s[0], o = s[1];
1211
1211
  if (!r && rs(n))
@@ -1215,13 +1215,13 @@ function An(n, e, t, i) {
1215
1215
  if (!r)
1216
1216
  throw new TypeError("Invalid event target");
1217
1217
  return new j(function(a) {
1218
- var l = function() {
1219
- for (var c = [], u = 0; u < arguments.length; u++)
1220
- c[u] = arguments[u];
1221
- return a.next(1 < c.length ? c : c[0]);
1218
+ var c = function() {
1219
+ for (var l = [], u = 0; u < arguments.length; u++)
1220
+ l[u] = arguments[u];
1221
+ return a.next(1 < l.length ? l : l[0]);
1222
1222
  };
1223
- return r(l), function() {
1224
- return o(l);
1223
+ return r(c), function() {
1224
+ return o(c);
1225
1225
  };
1226
1226
  });
1227
1227
  }
@@ -1283,15 +1283,15 @@ function bi(n) {
1283
1283
  } : oe(function(i, s) {
1284
1284
  var r = 0, o, a = function() {
1285
1285
  o == null || o.unsubscribe(), o = null;
1286
- var c, u;
1287
- t != null || l();
1288
- }, l = function() {
1289
- var c = !1;
1286
+ var l, u;
1287
+ t != null || c();
1288
+ }, c = function() {
1289
+ var l = !1;
1290
1290
  o = i.subscribe(Y(s, void 0, function() {
1291
- ++r < e ? o ? a() : c = !0 : s.complete();
1292
- })), c && a();
1291
+ ++r < e ? o ? a() : l = !0 : s.complete();
1292
+ })), l && a();
1293
1293
  };
1294
- l();
1294
+ c();
1295
1295
  });
1296
1296
  }
1297
1297
  function Oe(n, e) {
@@ -1299,11 +1299,11 @@ function Oe(n, e) {
1299
1299
  var s = null, r = 0, o = !1, a = function() {
1300
1300
  return o && !s && i.complete();
1301
1301
  };
1302
- t.subscribe(Y(i, function(l) {
1302
+ t.subscribe(Y(i, function(c) {
1303
1303
  s == null || s.unsubscribe();
1304
- var c = 0, u = r++;
1305
- ae(n(l, u)).subscribe(s = Y(i, function(p) {
1306
- return i.next(e ? e(l, p, u, c++) : p);
1304
+ var l = 0, u = r++;
1305
+ ae(n(c, u)).subscribe(s = Y(i, function(p) {
1306
+ return i.next(e ? e(c, p, u, l++) : p);
1307
1307
  }, function() {
1308
1308
  s = null, a();
1309
1309
  }));
@@ -1325,18 +1325,18 @@ function vc(n, e, t) {
1325
1325
  var o;
1326
1326
  (o = i.subscribe) === null || o === void 0 || o.call(i);
1327
1327
  var a = !0;
1328
- s.subscribe(Y(r, function(l) {
1329
- var c;
1330
- (c = i.next) === null || c === void 0 || c.call(i, l), r.next(l);
1331
- }, function() {
1328
+ s.subscribe(Y(r, function(c) {
1332
1329
  var l;
1333
- a = !1, (l = i.complete) === null || l === void 0 || l.call(i), r.complete();
1334
- }, function(l) {
1330
+ (l = i.next) === null || l === void 0 || l.call(i, c), r.next(c);
1331
+ }, function() {
1335
1332
  var c;
1336
- a = !1, (c = i.error) === null || c === void 0 || c.call(i, l), r.error(l);
1333
+ a = !1, (c = i.complete) === null || c === void 0 || c.call(i), r.complete();
1334
+ }, function(c) {
1335
+ var l;
1336
+ a = !1, (l = i.error) === null || l === void 0 || l.call(i, c), r.error(c);
1337
1337
  }, function() {
1338
- var l, c;
1339
- a && ((l = i.unsubscribe) === null || l === void 0 || l.call(i)), (c = i.finalize) === null || c === void 0 || c.call(i);
1338
+ var c, l;
1339
+ a && ((c = i.unsubscribe) === null || c === void 0 || c.call(i)), (l = i.finalize) === null || l === void 0 || l.call(i);
1340
1340
  }));
1341
1341
  }) : Ct;
1342
1342
  }
@@ -1347,14 +1347,14 @@ function Ui() {
1347
1347
  return oe(function(i, s) {
1348
1348
  for (var r = n.length, o = new Array(r), a = n.map(function() {
1349
1349
  return !1;
1350
- }), l = !1, c = function(p) {
1350
+ }), c = !1, l = function(p) {
1351
1351
  ae(n[p]).subscribe(Y(s, function(d) {
1352
- o[p] = d, !l && !a[p] && (a[p] = !0, (l = a.every(Ct)) && (a = null));
1352
+ o[p] = d, !c && !a[p] && (a[p] = !0, (c = a.every(Ct)) && (a = null));
1353
1353
  }, En));
1354
1354
  }, u = 0; u < r; u++)
1355
- c(u);
1355
+ l(u);
1356
1356
  i.subscribe(Y(s, function(p) {
1357
- if (l) {
1357
+ if (c) {
1358
1358
  var d = Xe([p], ze(o));
1359
1359
  s.next(t ? t.apply(void 0, Xe([], ze(d))) : d);
1360
1360
  }
@@ -1396,9 +1396,9 @@ function Rr(n) {
1396
1396
  let o;
1397
1397
  for (; (o = i.exec(n)) !== null; )
1398
1398
  r.push(o[1]);
1399
- return s.filter((l) => !r.includes(l)).forEach((l) => {
1400
- const c = l.endsWith(".") ? l.slice(0, -1) : l, u = new RegExp(
1401
- `(?<!<a[^>]*>)${c.replace(
1399
+ return s.filter((c) => !r.includes(c)).forEach((c) => {
1400
+ const l = c.endsWith(".") ? c.slice(0, -1) : c, u = new RegExp(
1401
+ `(?<!<a[^>]*>)${l.replace(
1402
1402
  /[.*+?^${}()|[\]\\]/g,
1403
1403
  "\\$&"
1404
1404
  )}(?![^<]*</a>)`,
@@ -1406,7 +1406,7 @@ function Rr(n) {
1406
1406
  );
1407
1407
  e = e.replace(
1408
1408
  u,
1409
- `<a title='${c}' target='_blank' href='${c}'>${c}</a>`
1409
+ `<a title='${l}' target='_blank' href='${l}'>${l}</a>`
1410
1410
  );
1411
1411
  }), e;
1412
1412
  }
@@ -1423,12 +1423,12 @@ function Ni(n) {
1423
1423
  const r = /^(https?:\/\/[^/]+)(\/.*)?$/i, o = i.match(r);
1424
1424
  if (!o)
1425
1425
  return t;
1426
- const a = o[1], c = (o[2] || "/").split("?")[0], u = c.split("/").pop(), p = s - a.length;
1427
- let d = c;
1428
- u && u.length < p && c.length > p ? d = c.substring(
1426
+ const a = o[1], l = (o[2] || "/").split("?")[0], u = l.split("/").pop(), p = s - a.length;
1427
+ let d = l;
1428
+ u && u.length < p && l.length > p ? d = l.substring(
1429
1429
  0,
1430
1430
  p - u.length - 4
1431
- ) + ".../" + u : d = c.substring(0, p - 3) + "...";
1431
+ ) + ".../" + u : d = l.substring(0, p - 3) + "...";
1432
1432
  const g = `${a}${d}`;
1433
1433
  return Di(t, g);
1434
1434
  }
@@ -1805,10 +1805,10 @@ let ht = class extends HTMLElement {
1805
1805
  var r, o;
1806
1806
  const i = this.constructor, s = i._$Eh.get(e);
1807
1807
  if (s !== void 0 && this._$Em !== s) {
1808
- const a = i.getPropertyOptions(s), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : Tn;
1808
+ const a = i.getPropertyOptions(s), c = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : Tn;
1809
1809
  this._$Em = s;
1810
- const c = l.fromAttribute(t, a.type);
1811
- this[s] = c ?? ((o = this._$Ej) == null ? void 0 : o.get(s)) ?? c, this._$Em = null;
1810
+ const l = c.fromAttribute(t, a.type);
1811
+ this[s] = l ?? ((o = this._$Ej) == null ? void 0 : o.get(s)) ?? l, this._$Em = null;
1812
1812
  }
1813
1813
  }
1814
1814
  requestUpdate(e, t, i) {
@@ -1846,8 +1846,8 @@ let ht = class extends HTMLElement {
1846
1846
  }
1847
1847
  const s = this.constructor.elementProperties;
1848
1848
  if (s.size > 0) for (const [r, o] of s) {
1849
- const { wrapped: a } = o, l = this[r];
1850
- a !== !0 || this._$AL.has(r) || l === void 0 || this.C(r, void 0, o, l);
1849
+ const { wrapped: a } = o, c = this[r];
1850
+ a !== !0 || this._$AL.has(r) || c === void 0 || this.C(r, void 0, o, c);
1851
1851
  }
1852
1852
  }
1853
1853
  let e = !1;
@@ -1908,11 +1908,11 @@ const Uc = (n, e) => {
1908
1908
  const t = n.length - 1, i = [];
1909
1909
  let s, r = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", o = Lt;
1910
1910
  for (let a = 0; a < t; a++) {
1911
- const l = n[a];
1912
- let c, u, p = -1, d = 0;
1913
- for (; d < l.length && (o.lastIndex = d, u = o.exec(l), u !== null); ) d = o.lastIndex, o === Lt ? u[1] === "!--" ? o = Dr : u[1] !== void 0 ? o = zr : u[2] !== void 0 ? (ea.test(u[2]) && (s = RegExp("</" + u[2], "g")), o = Ve) : u[3] !== void 0 && (o = Ve) : o === Ve ? u[0] === ">" ? (o = s ?? Lt, p = -1) : u[1] === void 0 ? p = -2 : (p = o.lastIndex - u[2].length, c = u[1], o = u[3] === void 0 ? Ve : u[3] === '"' ? Fr : Hr) : o === Fr || o === Hr ? o = Ve : o === Dr || o === zr ? o = Lt : (o = Ve, s = void 0);
1911
+ const c = n[a];
1912
+ let l, u, p = -1, d = 0;
1913
+ for (; d < c.length && (o.lastIndex = d, u = o.exec(c), u !== null); ) d = o.lastIndex, o === Lt ? u[1] === "!--" ? o = Dr : u[1] !== void 0 ? o = zr : u[2] !== void 0 ? (ea.test(u[2]) && (s = RegExp("</" + u[2], "g")), o = Ve) : u[3] !== void 0 && (o = Ve) : o === Ve ? u[0] === ">" ? (o = s ?? Lt, p = -1) : u[1] === void 0 ? p = -2 : (p = o.lastIndex - u[2].length, l = u[1], o = u[3] === void 0 ? Ve : u[3] === '"' ? Fr : Hr) : o === Fr || o === Hr ? o = Ve : o === Dr || o === zr ? o = Lt : (o = Ve, s = void 0);
1914
1914
  const g = o === Ve && n[a + 1].startsWith("/>") ? " " : "";
1915
- r += o === Lt ? l + Ic : p >= 0 ? (i.push(c), l.slice(0, p) + Ko + l.slice(p) + Me + g) : l + Me + (p === -2 ? a : g);
1915
+ r += o === Lt ? c + Ic : p >= 0 ? (i.push(l), c.slice(0, p) + Ko + c.slice(p) + Me + g) : c + Me + (p === -2 ? a : g);
1916
1916
  }
1917
1917
  return [ta(n, r + (n[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
1918
1918
  };
@@ -1921,29 +1921,29 @@ let zi = class na {
1921
1921
  let s;
1922
1922
  this.parts = [];
1923
1923
  let r = 0, o = 0;
1924
- const a = e.length - 1, l = this.parts, [c, u] = Uc(e, t);
1925
- if (this.el = na.createElement(c, i), Ge.currentNode = this.el.content, t === 2 || t === 3) {
1924
+ const a = e.length - 1, c = this.parts, [l, u] = Uc(e, t);
1925
+ if (this.el = na.createElement(l, i), Ge.currentNode = this.el.content, t === 2 || t === 3) {
1926
1926
  const p = this.el.content.firstChild;
1927
1927
  p.replaceWith(...p.childNodes);
1928
1928
  }
1929
- for (; (s = Ge.nextNode()) !== null && l.length < a; ) {
1929
+ for (; (s = Ge.nextNode()) !== null && c.length < a; ) {
1930
1930
  if (s.nodeType === 1) {
1931
1931
  if (s.hasAttributes()) for (const p of s.getAttributeNames()) if (p.endsWith(Ko)) {
1932
1932
  const d = u[o++], g = s.getAttribute(p).split(Me), m = /([.?@])?(.*)/.exec(d);
1933
- l.push({ type: 1, index: r, name: m[2], strings: g, ctor: m[1] === "." ? Dc : m[1] === "?" ? zc : m[1] === "@" ? Hc : Yn }), s.removeAttribute(p);
1934
- } else p.startsWith(Me) && (l.push({ type: 6, index: r }), s.removeAttribute(p));
1933
+ c.push({ type: 1, index: r, name: m[2], strings: g, ctor: m[1] === "." ? Dc : m[1] === "?" ? zc : m[1] === "@" ? Hc : Yn }), s.removeAttribute(p);
1934
+ } else p.startsWith(Me) && (c.push({ type: 6, index: r }), s.removeAttribute(p));
1935
1935
  if (ea.test(s.tagName)) {
1936
1936
  const p = s.textContent.split(Me), d = p.length - 1;
1937
1937
  if (d > 0) {
1938
1938
  s.textContent = On ? On.emptyScript : "";
1939
- for (let g = 0; g < d; g++) s.append(p[g], Vt()), Ge.nextNode(), l.push({ type: 2, index: ++r });
1939
+ for (let g = 0; g < d; g++) s.append(p[g], Vt()), Ge.nextNode(), c.push({ type: 2, index: ++r });
1940
1940
  s.append(p[d], Vt());
1941
1941
  }
1942
1942
  }
1943
- } else if (s.nodeType === 8) if (s.data === Jo) l.push({ type: 2, index: r });
1943
+ } else if (s.nodeType === 8) if (s.data === Jo) c.push({ type: 2, index: r });
1944
1944
  else {
1945
1945
  let p = -1;
1946
- for (; (p = s.data.indexOf(Me, p + 1)) !== -1; ) l.push({ type: 7, index: r }), p += Me.length - 1;
1946
+ for (; (p = s.data.indexOf(Me, p + 1)) !== -1; ) c.push({ type: 7, index: r }), p += Me.length - 1;
1947
1947
  }
1948
1948
  r++;
1949
1949
  }
@@ -1973,13 +1973,13 @@ class Nc {
1973
1973
  u(e) {
1974
1974
  const { el: { content: t }, parts: i } = this._$AD, s = ((e == null ? void 0 : e.creationScope) ?? Ke).importNode(t, !0);
1975
1975
  Ge.currentNode = s;
1976
- let r = Ge.nextNode(), o = 0, a = 0, l = i[0];
1977
- for (; l !== void 0; ) {
1978
- if (o === l.index) {
1979
- let c;
1980
- l.type === 2 ? c = new nn(r, r.nextSibling, this, e) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, e) : l.type === 6 && (c = new Fc(r, this, e)), this._$AV.push(c), l = i[++a];
1976
+ let r = Ge.nextNode(), o = 0, a = 0, c = i[0];
1977
+ for (; c !== void 0; ) {
1978
+ if (o === c.index) {
1979
+ let l;
1980
+ c.type === 2 ? l = new nn(r, r.nextSibling, this, e) : c.type === 1 ? l = new c.ctor(r, c.name, c.strings, this, e) : c.type === 6 && (l = new Fc(r, this, e)), this._$AV.push(l), c = i[++a];
1981
1981
  }
1982
- o !== (l == null ? void 0 : l.index) && (r = Ge.nextNode(), o++);
1982
+ o !== (c == null ? void 0 : c.index) && (r = Ge.nextNode(), o++);
1983
1983
  }
1984
1984
  return Ge.currentNode = Ke, s;
1985
1985
  }
@@ -2067,8 +2067,8 @@ class Yn {
2067
2067
  if (r === void 0) e = $t(this, e, t, 0), o = !Wt(e) || e !== this._$AH && e !== Le, o && (this._$AH = e);
2068
2068
  else {
2069
2069
  const a = e;
2070
- let l, c;
2071
- for (e = r[0], l = 0; l < r.length - 1; l++) c = $t(this, a[i + l], t, l), c === Le && (c = this._$AH[l]), o || (o = !Wt(c) || c !== this._$AH[l]), c === w ? e = w : e !== w && (e += (c ?? "") + r[l + 1]), this._$AH[l] = c;
2070
+ let c, l;
2071
+ for (e = r[0], c = 0; c < r.length - 1; c++) l = $t(this, a[i + c], t, c), l === Le && (l = this._$AH[c]), o || (o = !Wt(l) || l !== this._$AH[c]), l === w ? e = w : e !== w && (e += (l ?? "") + r[c + 1]), this._$AH[c] = l;
2072
2072
  }
2073
2073
  o && !s && this.j(e);
2074
2074
  }
@@ -2277,8 +2277,8 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
2277
2277
  return !1;
2278
2278
  })(), ua = (n, e, t, i) => {
2279
2279
  t && t.map(([s, r, o]) => {
2280
- const a = eu(n, s), l = Jc(e, o), c = tu(s);
2281
- Q.ael(a, r, l, c), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => Q.rel(a, r, l, c));
2280
+ const a = eu(n, s), c = Jc(e, o), l = tu(s);
2281
+ Q.ael(a, r, c, l), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => Q.rel(a, r, c, l));
2282
2282
  });
2283
2283
  }, Jc = (n, e) => (t) => {
2284
2284
  try {
@@ -2306,12 +2306,12 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
2306
2306
  const e = n.$cmpMeta$, t = n.$hostElement$, i = e.$flags$, s = Je("attachStyles", e.$tagName$), r = iu(t.shadowRoot ? t.shadowRoot : t.getRootNode(), e, n.$modeName$);
2307
2307
  i & 10 && (t["s-sc"] = r, t.classList.add(r + "-h"), i & 2 && t.classList.add(r + "-s")), s();
2308
2308
  }, ha = (n, e) => "sc-" + (e && n.$flags$ & 32 ? n.$tagName$ + "-" + e : n.$tagName$), ru = (n) => Iu.map((e) => e(n)).find((e) => !!e), Zr = {}, ou = "http://www.w3.org/2000/svg", au = "http://www.w3.org/1999/xhtml", lu = (n) => n != null, ps = (n) => (n = typeof n, n === "object" || n === "function"), mt = (n, e, ...t) => {
2309
- let i = null, s = null, r = null, o = !1, a = !1, l = [];
2310
- const c = (p) => {
2309
+ let i = null, s = null, r = null, o = !1, a = !1, c = [];
2310
+ const l = (p) => {
2311
2311
  for (let d = 0; d < p.length; d++)
2312
- i = p[d], Array.isArray(i) ? c(i) : i != null && typeof i != "boolean" && ((o = typeof n != "function" && !ps(i)) && (i = String(i)), o && a ? l[l.length - 1].$text$ += i : l.push(o ? Rn(null, i) : i), a = o);
2312
+ i = p[d], Array.isArray(i) ? l(i) : i != null && typeof i != "boolean" && ((o = typeof n != "function" && !ps(i)) && (i = String(i)), o && a ? c[c.length - 1].$text$ += i : c.push(o ? Rn(null, i) : i), a = o);
2313
2313
  };
2314
- if (c(t), e) {
2314
+ if (l(t), e) {
2315
2315
  e.key && (s = e.key), e.name && (r = e.name);
2316
2316
  {
2317
2317
  const p = e.className || e.class;
@@ -2319,9 +2319,9 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
2319
2319
  }
2320
2320
  }
2321
2321
  if (typeof n == "function")
2322
- return n(e === null ? {} : e, l, uu);
2322
+ return n(e === null ? {} : e, c, uu);
2323
2323
  const u = Rn(n, null);
2324
- return u.$attrs$ = e, l.length > 0 && (u.$children$ = l), u.$key$ = s, u.$name$ = r, u;
2324
+ return u.$attrs$ = e, c.length > 0 && (u.$children$ = c), u.$key$ = s, u.$name$ = r, u;
2325
2325
  }, Rn = (n, e) => {
2326
2326
  const t = {
2327
2327
  $flags$: 0,
@@ -2352,21 +2352,21 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
2352
2352
  if (t !== i) {
2353
2353
  let o = eo(n, e), a = e.toLowerCase();
2354
2354
  if (e === "class") {
2355
- const l = n.classList, c = Xr(t), u = Xr(i);
2356
- l.remove(...c.filter((p) => p && !u.includes(p))), l.add(...u.filter((p) => p && !c.includes(p)));
2355
+ const c = n.classList, l = Xr(t), u = Xr(i);
2356
+ c.remove(...l.filter((p) => p && !u.includes(p))), c.add(...u.filter((p) => p && !l.includes(p)));
2357
2357
  } else if (e === "style") {
2358
- for (const l in t)
2359
- (!i || i[l] == null) && (l.includes("-") ? n.style.removeProperty(l) : n.style[l] = "");
2360
- for (const l in i)
2361
- (!t || i[l] !== t[l]) && (l.includes("-") ? n.style.setProperty(l, i[l]) : n.style[l] = i[l]);
2358
+ for (const c in t)
2359
+ (!i || i[c] == null) && (c.includes("-") ? n.style.removeProperty(c) : n.style[c] = "");
2360
+ for (const c in i)
2361
+ (!t || i[c] !== t[c]) && (c.includes("-") ? n.style.setProperty(c, i[c]) : n.style[c] = i[c]);
2362
2362
  } else if (e !== "key")
2363
2363
  if (e === "ref")
2364
2364
  i && i(n);
2365
2365
  else if (!n.__lookupSetter__(e) && e[0] === "o" && e[1] === "n")
2366
2366
  e[2] === "-" ? e = e.slice(3) : eo(Xn, a) ? e = a.slice(2) : e = a[2] + e.slice(3), t && Q.rel(n, e, t, !1), i && Q.ael(n, e, i, !1);
2367
2367
  else {
2368
- const l = ps(i);
2369
- if ((o || l && i !== null) && !s)
2368
+ const c = ps(i);
2369
+ if ((o || c && i !== null) && !s)
2370
2370
  try {
2371
2371
  if (n.tagName.includes("-"))
2372
2372
  n[e] = i;
@@ -2376,8 +2376,8 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
2376
2376
  }
2377
2377
  } catch {
2378
2378
  }
2379
- let c = !1;
2380
- a !== (a = a.replace(/^xlink\:?/, "")) && (e = a, c = !0), i == null || i === !1 ? (i !== !1 || n.getAttribute(e) === "") && (c ? n.removeAttributeNS(Wr, e) : n.removeAttribute(e)) : (!o || r & 4 || s) && !l && (i = i === !0 ? "" : i, c ? n.setAttributeNS(Wr, e, i) : n.setAttribute(e, i));
2379
+ let l = !1;
2380
+ a !== (a = a.replace(/^xlink\:?/, "")) && (e = a, l = !0), i == null || i === !1 ? (i !== !1 || n.getAttribute(e) === "") && (l ? n.removeAttributeNS(Wr, e) : n.removeAttribute(e)) : (!o || r & 4 || s) && !c && (i = i === !0 ? "" : i, l ? n.setAttributeNS(Wr, e, i) : n.setAttribute(e, i));
2381
2381
  }
2382
2382
  }
2383
2383
  }, du = /\s/, Xr = (n) => n ? n.split(du) : [], da = (n, e, t, i) => {
@@ -2387,7 +2387,7 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
2387
2387
  for (i in o)
2388
2388
  Qr(s, i, r[i], o[i], t, e.$flags$);
2389
2389
  }, In = (n, e, t, i) => {
2390
- let s = e.$children$[t], r = 0, o, a, l;
2390
+ let s = e.$children$[t], r = 0, o, a, c;
2391
2391
  if (la || (ds = !0, s.$tag$ === "slot" && (pt && i.classList.add(pt + "-s"), s.$flags$ |= s.$children$ ? (
2392
2392
  // slot element has fallback content
2393
2393
  2
@@ -2404,7 +2404,7 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
2404
2404
  a = In(n, s, r, o), a && o.appendChild(a);
2405
2405
  s.$tag$ === "svg" ? ne = !1 : o.tagName === "foreignObject" && (ne = !0);
2406
2406
  }
2407
- return o["s-hn"] = Qn, s.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = aa, o["s-sn"] = s.$name$ || "", l = n && n.$children$ && n.$children$[t], l && l.$tag$ === s.$tag$ && n.$elm$ && Gt(n.$elm$, !1)), o;
2407
+ return o["s-hn"] = Qn, s.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = aa, o["s-sn"] = s.$name$ || "", c = n && n.$children$ && n.$children$[t], c && c.$tag$ === s.$tag$ && n.$elm$ && Gt(n.$elm$, !1)), o;
2408
2408
  }, Gt = (n, e) => {
2409
2409
  Q.$flags$ |= 1;
2410
2410
  const t = n.childNodes;
@@ -2421,33 +2421,33 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
2421
2421
  for (; e <= t; ++e)
2422
2422
  (i = n[e]) && (s = i.$elm$, ba(i), Ln = !0, s["s-ol"] ? s["s-ol"].remove() : Gt(s, !0), s.remove());
2423
2423
  }, pu = (n, e, t, i) => {
2424
- let s = 0, r = 0, o = 0, a = 0, l = e.length - 1, c = e[0], u = e[l], p = i.length - 1, d = i[0], g = i[p], m, $;
2425
- for (; s <= l && r <= p; )
2426
- if (c == null)
2427
- c = e[++s];
2424
+ let s = 0, r = 0, o = 0, a = 0, c = e.length - 1, l = e[0], u = e[c], p = i.length - 1, d = i[0], g = i[p], m, $;
2425
+ for (; s <= c && r <= p; )
2426
+ if (l == null)
2427
+ l = e[++s];
2428
2428
  else if (u == null)
2429
- u = e[--l];
2429
+ u = e[--c];
2430
2430
  else if (d == null)
2431
2431
  d = i[++r];
2432
2432
  else if (g == null)
2433
2433
  g = i[--p];
2434
- else if (vn(c, d))
2435
- ft(c, d), c = e[++s], d = i[++r];
2434
+ else if (vn(l, d))
2435
+ ft(l, d), l = e[++s], d = i[++r];
2436
2436
  else if (vn(u, g))
2437
- ft(u, g), u = e[--l], g = i[--p];
2438
- else if (vn(c, g))
2439
- (c.$tag$ === "slot" || g.$tag$ === "slot") && Gt(c.$elm$.parentNode, !1), ft(c, g), n.insertBefore(c.$elm$, u.$elm$.nextSibling), c = e[++s], g = i[--p];
2437
+ ft(u, g), u = e[--c], g = i[--p];
2438
+ else if (vn(l, g))
2439
+ (l.$tag$ === "slot" || g.$tag$ === "slot") && Gt(l.$elm$.parentNode, !1), ft(l, g), n.insertBefore(l.$elm$, u.$elm$.nextSibling), l = e[++s], g = i[--p];
2440
2440
  else if (vn(u, d))
2441
- (c.$tag$ === "slot" || g.$tag$ === "slot") && Gt(u.$elm$.parentNode, !1), ft(u, d), n.insertBefore(u.$elm$, c.$elm$), u = e[--l], d = i[++r];
2441
+ (l.$tag$ === "slot" || g.$tag$ === "slot") && Gt(u.$elm$.parentNode, !1), ft(u, d), n.insertBefore(u.$elm$, l.$elm$), u = e[--c], d = i[++r];
2442
2442
  else {
2443
- for (o = -1, a = s; a <= l; ++a)
2443
+ for (o = -1, a = s; a <= c; ++a)
2444
2444
  if (e[a] && e[a].$key$ !== null && e[a].$key$ === d.$key$) {
2445
2445
  o = a;
2446
2446
  break;
2447
2447
  }
2448
- o >= 0 ? ($ = e[o], $.$tag$ !== d.$tag$ ? m = In(e && e[r], t, o, n) : (ft($, d), e[o] = void 0, m = $.$elm$), d = i[++r]) : (m = In(e && e[r], t, r, n), d = i[++r]), m && ga(c.$elm$).insertBefore(m, gs(c.$elm$));
2448
+ o >= 0 ? ($ = e[o], $.$tag$ !== d.$tag$ ? m = In(e && e[r], t, o, n) : (ft($, d), e[o] = void 0, m = $.$elm$), d = i[++r]) : (m = In(e && e[r], t, r, n), d = i[++r]), m && ga(l.$elm$).insertBefore(m, gs(l.$elm$));
2449
2449
  }
2450
- s > l ? pa(n, i[p + 1] == null ? null : i[p + 1].$elm$, t, i, r, p) : r > p && fa(e, s, l);
2450
+ s > c ? pa(n, i[p + 1] == null ? null : i[p + 1].$elm$, t, i, r, p) : r > p && fa(e, s, c);
2451
2451
  }, vn = (n, e) => n.$tag$ === e.$tag$ ? n.$tag$ === "slot" ? n.$name$ === e.$name$ : n.$key$ === e.$key$ : !1, gs = (n) => n && n["s-ol"] || n, ga = (n) => (n["s-ol"] ? n["s-ol"] : n).parentNode, ft = (n, e) => {
2452
2452
  const t = e.$elm$ = n.$elm$, i = n.$children$, s = e.$children$, r = e.$tag$, o = e.$text$;
2453
2453
  let a;
@@ -2471,9 +2471,9 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
2471
2471
  ma(t);
2472
2472
  }
2473
2473
  }, he = [], va = (n) => {
2474
- let e, t, i, s, r, o, a = 0, l = n.childNodes, c = l.length;
2475
- for (; a < c; a++) {
2476
- if (e = l[a], e["s-sr"] && (t = e["s-cr"]) && t.parentNode)
2474
+ let e, t, i, s, r, o, a = 0, c = n.childNodes, l = c.length;
2475
+ for (; a < l; a++) {
2476
+ if (e = c[a], e["s-sr"] && (t = e["s-cr"]) && t.parentNode)
2477
2477
  for (i = t.parentNode.childNodes, s = e["s-sn"], o = i.length - 1; o >= 0; o--)
2478
2478
  t = i[o], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== e["s-hn"] && (Kr(t, s) ? (r = he.find((u) => u.$nodeToRelocate$ === t), Ln = !0, t["s-sn"] = t["s-sn"] || s, r ? r.$slotRefNode$ = e : he.push({
2479
2479
  $slotRefNode$: e,
@@ -2493,17 +2493,17 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
2493
2493
  {
2494
2494
  if (Q.$flags$ |= 1, ds) {
2495
2495
  va(r.$elm$);
2496
- let o, a, l, c, u, p, d = 0;
2496
+ let o, a, c, l, u, p, d = 0;
2497
2497
  for (; d < he.length; d++)
2498
- o = he[d], a = o.$nodeToRelocate$, a["s-ol"] || (l = ye.createTextNode(""), l["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = l, a));
2498
+ o = he[d], a = o.$nodeToRelocate$, a["s-ol"] || (c = ye.createTextNode(""), c["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = c, a));
2499
2499
  for (d = 0; d < he.length; d++)
2500
2500
  if (o = he[d], a = o.$nodeToRelocate$, o.$slotRefNode$) {
2501
- for (c = o.$slotRefNode$.parentNode, u = o.$slotRefNode$.nextSibling, l = a["s-ol"]; l = l.previousSibling; )
2502
- if (p = l["s-nr"], p && p["s-sn"] === a["s-sn"] && c === p.parentNode && (p = p.nextSibling, !p || !p["s-nr"])) {
2501
+ for (l = o.$slotRefNode$.parentNode, u = o.$slotRefNode$.nextSibling, c = a["s-ol"]; c = c.previousSibling; )
2502
+ if (p = c["s-nr"], p && p["s-sn"] === a["s-sn"] && l === p.parentNode && (p = p.nextSibling, !p || !p["s-nr"])) {
2503
2503
  u = p;
2504
2504
  break;
2505
2505
  }
2506
- (!u && c !== a.parentNode || a.nextSibling !== u) && a !== u && (!a["s-hn"] && a["s-ol"] && (a["s-hn"] = a["s-ol"].parentNode.nodeName), c.insertBefore(a, u));
2506
+ (!u && l !== a.parentNode || a.nextSibling !== u) && a !== u && (!a["s-hn"] && a["s-ol"] && (a["s-hn"] = a["s-ol"].parentNode.nodeName), l.insertBefore(a, u));
2507
2507
  } else
2508
2508
  a.nodeType === 1 && (a.hidden = !0);
2509
2509
  }
@@ -2550,24 +2550,24 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
2550
2550
  sn(i);
2551
2551
  }
2552
2552
  }, Jr = (n, e) => n && n.then ? n.then(e) : e(), ku = (n, e) => n != null && !ps(n) ? e & 4 ? n === "false" ? !1 : n === "" || !!n : e & 2 ? parseFloat(n) : e & 1 ? String(n) : n : n, Su = (n, e) => Kn(n).$instanceValues$.get(e), Cu = (n, e, t, i) => {
2553
- const s = Kn(n), r = n, o = s.$instanceValues$.get(e), a = s.$flags$, l = r;
2553
+ const s = Kn(n), r = n, o = s.$instanceValues$.get(e), a = s.$flags$, c = r;
2554
2554
  t = ku(t, i.$members$[e][0]);
2555
- const c = Number.isNaN(o) && Number.isNaN(t);
2556
- if (t !== o && !c) {
2555
+ const l = Number.isNaN(o) && Number.isNaN(t);
2556
+ if (t !== o && !l) {
2557
2557
  s.$instanceValues$.set(e, t);
2558
2558
  {
2559
2559
  if (i.$watchers$ && a & 128) {
2560
2560
  const p = i.$watchers$[e];
2561
2561
  p && p.map((d) => {
2562
2562
  try {
2563
- l[d](t, o, e);
2563
+ c[d](t, o, e);
2564
2564
  } catch (g) {
2565
2565
  sn(g, r);
2566
2566
  }
2567
2567
  });
2568
2568
  }
2569
2569
  if ((a & 18) === 2) {
2570
- if (l.componentShouldUpdate && l.componentShouldUpdate(t, o, e) === !1)
2570
+ if (c.componentShouldUpdate && c.componentShouldUpdate(t, o, e) === !1)
2571
2571
  return;
2572
2572
  ya(s, !1);
2573
2573
  }
@@ -2591,21 +2591,21 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
2591
2591
  });
2592
2592
  {
2593
2593
  const r = /* @__PURE__ */ new Map();
2594
- s.attributeChangedCallback = function(o, a, l) {
2594
+ s.attributeChangedCallback = function(o, a, c) {
2595
2595
  Q.jmp(() => {
2596
- const c = r.get(o);
2597
- if (this.hasOwnProperty(c))
2598
- l = this[c], delete this[c];
2599
- else if (s.hasOwnProperty(c) && typeof this[c] == "number" && this[c] == l)
2596
+ const l = r.get(o);
2597
+ if (this.hasOwnProperty(l))
2598
+ c = this[l], delete this[l];
2599
+ else if (s.hasOwnProperty(l) && typeof this[l] == "number" && this[l] == c)
2600
2600
  return;
2601
- this[c] = l === null && typeof this[c] == "boolean" ? !1 : l;
2601
+ this[l] = c === null && typeof this[l] == "boolean" ? !1 : c;
2602
2602
  });
2603
2603
  }, n.observedAttributes = i.filter(
2604
2604
  ([o, a]) => a[0] & 15
2605
2605
  /* HasAttribute */
2606
2606
  ).map(([o, a]) => {
2607
- const l = a[1] || o;
2608
- return r.set(l, o), a[0] & 512 && e.$attrsToReflect$.push([o, l]), l;
2607
+ const c = a[1] || o;
2608
+ return r.set(c, o), a[0] & 512 && e.$attrsToReflect$.push([o, c]), c;
2609
2609
  });
2610
2610
  }
2611
2611
  }
@@ -2616,8 +2616,8 @@ const Xn = typeof window < "u" ? window : {}, ye = Xn.document || { head: {} },
2616
2616
  typeof o != "string" && (o = o[e.$modeName$ = ru(n)]);
2617
2617
  const a = ha(t, e.$modeName$);
2618
2618
  if (!Pn.has(a)) {
2619
- const l = Je("registerStyles", t.$tagName$);
2620
- nu(a, o, !!(t.$flags$ & 1)), l();
2619
+ const c = Je("registerStyles", t.$tagName$);
2620
+ nu(a, o, !!(t.$flags$ & 1)), c();
2621
2621
  }
2622
2622
  }
2623
2623
  e.$ancestorComponent$, ya(e, !0);
@@ -2806,8 +2806,8 @@ const Zu = { attribute: !0, type: String, converter: Tn, reflect: !1, hasChanged
2806
2806
  if (r === void 0 && globalThis.litPropertyMetadata.set(s, r = /* @__PURE__ */ new Map()), i === "setter" && ((n = Object.create(n)).wrapped = !0), r.set(t.name, n), i === "accessor") {
2807
2807
  const { name: o } = t;
2808
2808
  return { set(a) {
2809
- const l = e.get.call(this);
2810
- e.set.call(this, a), this.requestUpdate(o, l, n);
2809
+ const c = e.get.call(this);
2810
+ e.set.call(this, a), this.requestUpdate(o, c, n);
2811
2811
  }, init(a) {
2812
2812
  return a !== void 0 && this.C(o, void 0, n, a), a;
2813
2813
  } };
@@ -2815,8 +2815,8 @@ const Zu = { attribute: !0, type: String, converter: Tn, reflect: !1, hasChanged
2815
2815
  if (i === "setter") {
2816
2816
  const { name: o } = t;
2817
2817
  return function(a) {
2818
- const l = this[o];
2819
- e.call(this, a), this.requestUpdate(o, l, n);
2818
+ const c = this[o];
2819
+ e.call(this, a), this.requestUpdate(o, c, n);
2820
2820
  };
2821
2821
  }
2822
2822
  throw Error("Unsupported decorator location: " + i);
@@ -3119,7 +3119,7 @@ class lh extends Ca {
3119
3119
  if (r) {
3120
3120
  Si.delete(this.options.inId);
3121
3121
  const { from: o, to: a } = this.N(r, s, t);
3122
- e = this.calculateKeyframes(o, a), e = this.options.in ? [{ ...this.options.in[0], ...e[0] }, ...this.options.in.slice(1), e[1]] : e, io++, e.forEach(((l) => l.zIndex = io));
3122
+ e = this.calculateKeyframes(o, a), e = this.options.in ? [{ ...this.options.in[0], ...e[0] }, ...this.options.in.slice(1), e[1]] : e, io++, e.forEach(((c) => c.zIndex = io));
3123
3123
  } else this.options.in && (e = [...this.options.in, {}]);
3124
3124
  }
3125
3125
  this.animate(e, i);
@@ -3189,14 +3189,14 @@ class lh extends Ca {
3189
3189
  const s = {}, r = {};
3190
3190
  let o = !1;
3191
3191
  const a = {};
3192
- for (const l in t) {
3193
- const c = e[l], u = t[l];
3194
- if (l in Ci) {
3195
- const p = Ci[l];
3196
- if (c === void 0 || u === void 0) continue;
3197
- const d = p(c, u);
3198
- d.transform !== void 0 && (a[l] = d.value, o = !0, s.transform = `${s.transform ?? ""} ${d.transform}`, d.overrideFrom !== void 0 && Object.assign(s, d.overrideFrom));
3199
- } else c !== u && c !== void 0 && u !== void 0 && (o = !0, s[l] = c, r[l] = u);
3192
+ for (const c in t) {
3193
+ const l = e[c], u = t[c];
3194
+ if (c in Ci) {
3195
+ const p = Ci[c];
3196
+ if (l === void 0 || u === void 0) continue;
3197
+ const d = p(l, u);
3198
+ d.transform !== void 0 && (a[c] = d.value, o = !0, s.transform = `${s.transform ?? ""} ${d.transform}`, d.overrideFrom !== void 0 && Object.assign(s, d.overrideFrom));
3199
+ } else l !== u && l !== void 0 && u !== void 0 && (o = !0, s[c] = l, r[c] = u);
3200
3200
  }
3201
3201
  return s.transformOrigin = r.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, o ? [s, r] : void 0;
3202
3202
  }
@@ -3226,7 +3226,7 @@ class lh extends Ca {
3226
3226
  const qi = on(lh), Se = (n, e, t) => {
3227
3227
  n && t.style.setProperty(e, n);
3228
3228
  }, Ea = (n, e) => {
3229
- var t, i, s, r, o, a, l, c, u;
3229
+ var t, i, s, r, o, a, c, l, u;
3230
3230
  Se((t = n.colors) == null ? void 0 : t.primaryBackground, "--primary-background", e), Se(
3231
3231
  (i = n.colors) == null ? void 0 : i.textOnPrimaryBackground,
3232
3232
  "--text-on-primary-background",
@@ -3248,11 +3248,11 @@ const qi = on(lh), Se = (n, e, t) => {
3248
3248
  "--text-on-destructive-color",
3249
3249
  e
3250
3250
  ), Se(
3251
- (l = n.colors) == null ? void 0 : l.interactivePrimaryBackground,
3251
+ (c = n.colors) == null ? void 0 : c.interactivePrimaryBackground,
3252
3252
  "--interactive-primary-background",
3253
3253
  e
3254
3254
  ), Se(
3255
- (c = n.colors) == null ? void 0 : c.interactiveTextOnPrimaryBackground,
3255
+ (l = n.colors) == null ? void 0 : l.interactiveTextOnPrimaryBackground,
3256
3256
  "--interactive-text-on-primary-background",
3257
3257
  e
3258
3258
  ), Se((u = n.colors) == null ? void 0 : u.focusColor, "--focus-color", e);
@@ -3302,11 +3302,11 @@ const Rs = class Rs extends _ {
3302
3302
  (e = this.application) != null && e.settings && Ea(this.application.settings.branding, this);
3303
3303
  }
3304
3304
  async _renderSymbol() {
3305
- var a, l, c;
3306
- const e = (a = this.application) == null ? void 0 : a.branding(), t = (l = e == null ? void 0 : e.graphics) == null ? void 0 : l.trigger;
3305
+ var a, c, l;
3306
+ const e = (a = this.application) == null ? void 0 : a.branding(), t = (c = e == null ? void 0 : e.graphics) == null ? void 0 : c.trigger;
3307
3307
  if (t)
3308
3308
  return y` <img src=${t} class="trigger-icon" alt="" /> `;
3309
- const i = (c = this.application) == null ? void 0 : c.triggerIcon;
3309
+ const i = (l = this.application) == null ? void 0 : l.triggerIcon;
3310
3310
  if (!i)
3311
3311
  return w;
3312
3312
  const s = async (u) => Zc, { type: r, content: o } = i;
@@ -3730,7 +3730,7 @@ let ph = class extends Event {
3730
3730
  }, this.onProviderRequest = (o) => {
3731
3731
  if (o.context !== this.context || (o.contextTarget ?? o.composedPath()[0]) === this.host) return;
3732
3732
  const a = /* @__PURE__ */ new Set();
3733
- for (const [l, { consumerHost: c }] of this.subscriptions) a.has(l) || (a.add(l), c.dispatchEvent(new Aa(this.context, c, l, !0)));
3733
+ for (const [c, { consumerHost: l }] of this.subscriptions) a.has(c) || (a.add(c), l.dispatchEvent(new Aa(this.context, l, c, !0)));
3734
3734
  o.stopPropagation();
3735
3735
  }, this.host = e, t.context !== void 0 ? this.context = t.context : this.context = t, this.attachListeners(), (r = (s = this.host).addController) == null || r.call(s, this);
3736
3736
  }
@@ -4086,17 +4086,17 @@ class vh {
4086
4086
  class po {
4087
4087
  constructor(e, t, i, s, r) {
4088
4088
  this.id = e, this.providerKey = t, this.providerOptions = i, this.component = r, this.provider$ = new de(null), this.entries$ = new de([]), this.removeEntryAction$ = new P(), this.kill$ = new P(), this.isTyping$ = new de(!1), this.data$ = new de({}), this.complete$ = this.provider$.pipe(
4089
- Oe((l) => l ? l.onComplete() : tt)
4089
+ Oe((c) => c ? c.onComplete() : tt)
4090
4090
  );
4091
4091
  const o = this._getProviderFactory(t);
4092
4092
  if (!o)
4093
4093
  throw new Error(`No provider with key "${t}" was found.`);
4094
4094
  this.data$.next(s);
4095
4095
  const a = o(this.component);
4096
- this.provider$.next(a), a.actions().pipe(z(this.kill$)).subscribe((l) => {
4097
- this.write(l);
4098
- }), a.isTyping().pipe(z(this.kill$)).subscribe((l) => {
4099
- this.isTyping$.next(l);
4096
+ this.provider$.next(a), a.actions().pipe(z(this.kill$)).subscribe((c) => {
4097
+ this.write(c);
4098
+ }), a.isTyping().pipe(z(this.kill$)).subscribe((c) => {
4099
+ this.isTyping$.next(c);
4100
4100
  });
4101
4101
  }
4102
4102
  start() {
@@ -4273,7 +4273,7 @@ class yh {
4273
4273
  _n(([s, r]) => r.filter((o) => o.id !== s.id))
4274
4274
  ), i = e.entries().pipe(
4275
4275
  _n((s) => {
4276
- const r = this.entries$.value, o = s.filter((a) => r.findIndex((l) => l.id === a.id) === -1);
4276
+ const r = this.entries$.value, o = s.filter((a) => r.findIndex((c) => c.id === a.id) === -1);
4277
4277
  return [...r, ...o];
4278
4278
  })
4279
4279
  );
@@ -4916,13 +4916,13 @@ function Ua() {
4916
4916
  DocumentFragment: r,
4917
4917
  HTMLTemplateElement: o,
4918
4918
  Node: a,
4919
- Element: l,
4920
- NodeFilter: c,
4919
+ Element: c,
4920
+ NodeFilter: l,
4921
4921
  NamedNodeMap: u = n.NamedNodeMap || n.MozNamedAttrMap,
4922
4922
  HTMLFormElement: p,
4923
4923
  DOMParser: d,
4924
4924
  trustedTypes: g
4925
- } = n, m = l.prototype, $ = Mt(m, "cloneNode"), $e = Mt(m, "remove"), ce = Mt(m, "nextSibling"), Pe = Mt(m, "childNodes"), He = Mt(m, "parentNode");
4925
+ } = n, m = c.prototype, $ = Mt(m, "cloneNode"), $e = Mt(m, "remove"), ce = Mt(m, "nextSibling"), Pe = Mt(m, "childNodes"), He = Mt(m, "parentNode");
4926
4926
  if (typeof o == "function") {
4927
4927
  const b = t.createElement("template");
4928
4928
  b.content && b.content.ownerDocument && (t = b.content.ownerDocument);
@@ -5073,7 +5073,7 @@ function Ua() {
5073
5073
  h.ownerDocument || h,
5074
5074
  h,
5075
5075
  // eslint-disable-next-line no-bitwise
5076
- c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION,
5076
+ l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION,
5077
5077
  null
5078
5078
  );
5079
5079
  }, fi = function(h) {
@@ -5111,7 +5111,7 @@ function Ua() {
5111
5111
  }
5112
5112
  return fe(h), !0;
5113
5113
  }
5114
- return h instanceof l && !pl(h) || (v === "noscript" || v === "noembed" || v === "noframes") && G(/<\/no(script|embed|frames)/i, h.innerHTML) ? (fe(h), !0) : (st && h.nodeType === Ut.text && (f = h.textContent, bn([ni, ii, si], (L) => {
5114
+ return h instanceof c && !pl(h) || (v === "noscript" || v === "noembed" || v === "noframes") && G(/<\/no(script|embed|frames)/i, h.innerHTML) ? (fe(h), !0) : (st && h.nodeType === Ut.text && (f = h.textContent, bn([ni, ii, si], (L) => {
5115
5115
  f = It(f, L, " ");
5116
5116
  }), h.textContent !== f && (Rt(e.removed, {
5117
5117
  element: h.cloneNode()
@@ -5534,10 +5534,10 @@ function Co(n) {
5534
5534
  }
5535
5535
  function Eo(n, e) {
5536
5536
  var r;
5537
- const t = n.replace(Z.findPipe, (o, a, l) => {
5538
- let c = !1, u = a;
5539
- for (; --u >= 0 && l[u] === "\\"; ) c = !c;
5540
- return c ? "|" : " |";
5537
+ const t = n.replace(Z.findPipe, (o, a, c) => {
5538
+ let l = !1, u = a;
5539
+ for (; --u >= 0 && c[u] === "\\"; ) l = !l;
5540
+ return l ? "|" : " |";
5541
5541
  }), i = t.split(Z.splitPipe);
5542
5542
  let s = 0;
5543
5543
  if (i[0].trim() || i.shift(), i.length > 0 && !((r = i.at(-1)) != null && r.trim()) && i.pop(), e)
@@ -5574,7 +5574,7 @@ function Ad(n, e) {
5574
5574
  function _o(n, e, t, i, s) {
5575
5575
  const r = e.href, o = e.title || null, a = n[1].replace(s.other.outputLinkReplace, "$1");
5576
5576
  i.state.inLink = !0;
5577
- const l = {
5577
+ const c = {
5578
5578
  type: n[0].charAt(0) === "!" ? "image" : "link",
5579
5579
  raw: t,
5580
5580
  href: r,
@@ -5582,7 +5582,7 @@ function _o(n, e, t, i, s) {
5582
5582
  text: a,
5583
5583
  tokens: i.inlineTokens(a)
5584
5584
  };
5585
- return i.state.inLink = !1, l;
5585
+ return i.state.inLink = !1, c;
5586
5586
  }
5587
5587
  function Td(n, e, t) {
5588
5588
  const i = n.match(t.other.indentCodeCompensation);
@@ -5677,20 +5677,20 @@ var Hn = class {
5677
5677
  for (; t.length > 0; ) {
5678
5678
  let o = !1;
5679
5679
  const a = [];
5680
- let l;
5681
- for (l = 0; l < t.length; l++)
5682
- if (this.rules.other.blockquoteStart.test(t[l]))
5683
- a.push(t[l]), o = !0;
5680
+ let c;
5681
+ for (c = 0; c < t.length; c++)
5682
+ if (this.rules.other.blockquoteStart.test(t[c]))
5683
+ a.push(t[c]), o = !0;
5684
5684
  else if (!o)
5685
- a.push(t[l]);
5685
+ a.push(t[c]);
5686
5686
  else
5687
5687
  break;
5688
- t = t.slice(l);
5689
- const c = a.join(`
5690
- `), u = c.replace(this.rules.other.blockquoteSetextReplace, `
5688
+ t = t.slice(c);
5689
+ const l = a.join(`
5690
+ `), u = l.replace(this.rules.other.blockquoteSetextReplace, `
5691
5691
  $1`).replace(this.rules.other.blockquoteSetextReplace2, "");
5692
5692
  i = i ? `${i}
5693
- ${c}` : c, s = s ? `${s}
5693
+ ${l}` : l, s = s ? `${s}
5694
5694
  ${u}` : u;
5695
5695
  const p = this.lexer.state.top;
5696
5696
  if (this.lexer.state.top = !0, this.lexer.blockTokens(u, r, !0), this.lexer.state.top = p, t.length === 0)
@@ -5737,15 +5737,15 @@ ${u}` : u;
5737
5737
  const r = this.rules.other.listItemRegex(t);
5738
5738
  let o = !1;
5739
5739
  for (; n; ) {
5740
- let l = !1, c = "", u = "";
5740
+ let c = !1, l = "", u = "";
5741
5741
  if (!(e = r.exec(n)) || this.rules.block.hr.test(n))
5742
5742
  break;
5743
- c = e[0], n = n.substring(c.length);
5743
+ l = e[0], n = n.substring(l.length);
5744
5744
  let p = e[2].split(`
5745
5745
  `, 1)[0].replace(this.rules.other.listReplaceTabs, (ce) => " ".repeat(3 * ce.length)), d = n.split(`
5746
5746
  `, 1)[0], g = !p.trim(), m = 0;
5747
- if (this.options.pedantic ? (m = 2, u = p.trimStart()) : g ? m = e[1].length + 1 : (m = e[2].search(this.rules.other.nonSpaceChar), m = m > 4 ? 1 : m, u = p.slice(m), m += e[1].length), g && this.rules.other.blankLine.test(d) && (c += d + `
5748
- `, n = n.substring(d.length + 1), l = !0), !l) {
5747
+ if (this.options.pedantic ? (m = 2, u = p.trimStart()) : g ? m = e[1].length + 1 : (m = e[2].search(this.rules.other.nonSpaceChar), m = m > 4 ? 1 : m, u = p.slice(m), m += e[1].length), g && this.rules.other.blankLine.test(d) && (l += d + `
5748
+ `, n = n.substring(d.length + 1), c = !0), !c) {
5749
5749
  const ce = this.rules.other.nextBulletRegex(m), Pe = this.rules.other.hrRegex(m), He = this.rules.other.fencesBeginRegex(m), M = this.rules.other.headingBeginRegex(m), Fe = this.rules.other.htmlBeginRegex(m);
5750
5750
  for (; n; ) {
5751
5751
  const je = n.split(`
@@ -5762,21 +5762,21 @@ ${u}` : u;
5762
5762
  u += `
5763
5763
  ` + d;
5764
5764
  }
5765
- !g && !d.trim() && (g = !0), c += je + `
5765
+ !g && !d.trim() && (g = !0), l += je + `
5766
5766
  `, n = n.substring(je.length + 1), p = Be.slice(m);
5767
5767
  }
5768
5768
  }
5769
- s.loose || (o ? s.loose = !0 : this.rules.other.doubleBlankLine.test(c) && (o = !0));
5769
+ s.loose || (o ? s.loose = !0 : this.rules.other.doubleBlankLine.test(l) && (o = !0));
5770
5770
  let $ = null, $e;
5771
5771
  this.options.gfm && ($ = this.rules.other.listIsTask.exec(u), $ && ($e = $[0] !== "[ ] ", u = u.replace(this.rules.other.listReplaceTask, ""))), s.items.push({
5772
5772
  type: "list_item",
5773
- raw: c,
5773
+ raw: l,
5774
5774
  task: !!$,
5775
5775
  checked: $e,
5776
5776
  loose: !1,
5777
5777
  text: u,
5778
5778
  tokens: []
5779
- }), s.raw += c;
5779
+ }), s.raw += l;
5780
5780
  }
5781
5781
  const a = s.items.at(-1);
5782
5782
  if (a)
@@ -5784,14 +5784,14 @@ ${u}` : u;
5784
5784
  else
5785
5785
  return;
5786
5786
  s.raw = s.raw.trimEnd();
5787
- for (let l = 0; l < s.items.length; l++)
5788
- if (this.lexer.state.top = !1, s.items[l].tokens = this.lexer.blockTokens(s.items[l].text, []), !s.loose) {
5789
- const c = s.items[l].tokens.filter((p) => p.type === "space"), u = c.length > 0 && c.some((p) => this.rules.other.anyLine.test(p.raw));
5787
+ for (let c = 0; c < s.items.length; c++)
5788
+ if (this.lexer.state.top = !1, s.items[c].tokens = this.lexer.blockTokens(s.items[c].text, []), !s.loose) {
5789
+ const l = s.items[c].tokens.filter((p) => p.type === "space"), u = l.length > 0 && l.some((p) => this.rules.other.anyLine.test(p.raw));
5790
5790
  s.loose = u;
5791
5791
  }
5792
5792
  if (s.loose)
5793
- for (let l = 0; l < s.items.length; l++)
5794
- s.items[l].loose = !0;
5793
+ for (let c = 0; c < s.items.length; c++)
5794
+ s.items[c].loose = !0;
5795
5795
  return s;
5796
5796
  }
5797
5797
  }
@@ -5843,11 +5843,11 @@ ${u}` : u;
5843
5843
  align: r.align[a]
5844
5844
  });
5845
5845
  for (const a of s)
5846
- r.rows.push(Eo(a, r.header.length).map((l, c) => ({
5847
- text: l,
5848
- tokens: this.lexer.inline(l),
5846
+ r.rows.push(Eo(a, r.header.length).map((c, l) => ({
5847
+ text: c,
5848
+ tokens: this.lexer.inline(c),
5849
5849
  header: !1,
5850
- align: r.align[c]
5850
+ align: r.align[l]
5851
5851
  })));
5852
5852
  return r;
5853
5853
  }
@@ -5958,19 +5958,19 @@ ${u}` : u;
5958
5958
  if (!i || i[3] && t.match(this.rules.other.unicodeAlphaNumeric)) return;
5959
5959
  if (!(i[1] || i[2] || "") || !t || this.rules.inline.punctuation.exec(t)) {
5960
5960
  const r = [...i[0]].length - 1;
5961
- let o, a, l = r, c = 0;
5961
+ let o, a, c = r, l = 0;
5962
5962
  const u = i[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
5963
5963
  for (u.lastIndex = 0, e = e.slice(-1 * n.length + r); (i = u.exec(e)) != null; ) {
5964
5964
  if (o = i[1] || i[2] || i[3] || i[4] || i[5] || i[6], !o) continue;
5965
5965
  if (a = [...o].length, i[3] || i[4]) {
5966
- l += a;
5966
+ c += a;
5967
5967
  continue;
5968
5968
  } else if ((i[5] || i[6]) && r % 3 && !((r + a) % 3)) {
5969
- c += a;
5969
+ l += a;
5970
5970
  continue;
5971
5971
  }
5972
- if (l -= a, l > 0) continue;
5973
- a = Math.min(a, a + l + c);
5972
+ if (c -= a, c > 0) continue;
5973
+ a = Math.min(a, a + c + l);
5974
5974
  const p = [...i[0]][0].length, d = n.slice(0, r + i.index + p + a);
5975
5975
  if (Math.min(r, a) % 2) {
5976
5976
  const m = d.slice(1, -1);
@@ -6137,21 +6137,21 @@ ${u}` : u;
6137
6137
  var s, r, o;
6138
6138
  for (this.options.pedantic && (e = e.replace(Z.tabCharGlobal, " ").replace(Z.spaceLine, "")); e; ) {
6139
6139
  let a;
6140
- 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))
6140
+ if ((r = (s = this.options.extensions) == null ? void 0 : s.block) != null && r.some((l) => (a = l.call({ lexer: this }, e, t)) ? (e = e.substring(a.raw.length), t.push(a), !0) : !1))
6141
6141
  continue;
6142
6142
  if (a = this.tokenizer.space(e)) {
6143
6143
  e = e.substring(a.raw.length);
6144
- const c = t.at(-1);
6145
- a.raw.length === 1 && c !== void 0 ? c.raw += `
6144
+ const l = t.at(-1);
6145
+ a.raw.length === 1 && l !== void 0 ? l.raw += `
6146
6146
  ` : t.push(a);
6147
6147
  continue;
6148
6148
  }
6149
6149
  if (a = this.tokenizer.code(e)) {
6150
6150
  e = e.substring(a.raw.length);
6151
- const c = t.at(-1);
6152
- (c == null ? void 0 : c.type) === "paragraph" || (c == null ? void 0 : c.type) === "text" ? (c.raw += `
6153
- ` + a.raw, c.text += `
6154
- ` + a.text, this.inlineQueue.at(-1).src = c.text) : t.push(a);
6151
+ const l = t.at(-1);
6152
+ (l == null ? void 0 : l.type) === "paragraph" || (l == null ? void 0 : l.type) === "text" ? (l.raw += `
6153
+ ` + a.raw, l.text += `
6154
+ ` + a.text, this.inlineQueue.at(-1).src = l.text) : t.push(a);
6155
6155
  continue;
6156
6156
  }
6157
6157
  if (a = this.tokenizer.fences(e)) {
@@ -6180,10 +6180,10 @@ ${u}` : u;
6180
6180
  }
6181
6181
  if (a = this.tokenizer.def(e)) {
6182
6182
  e = e.substring(a.raw.length);
6183
- const c = t.at(-1);
6184
- (c == null ? void 0 : c.type) === "paragraph" || (c == null ? void 0 : c.type) === "text" ? (c.raw += `
6185
- ` + a.raw, c.text += `
6186
- ` + a.raw, this.inlineQueue.at(-1).src = c.text) : this.tokens.links[a.tag] || (this.tokens.links[a.tag] = {
6183
+ const l = t.at(-1);
6184
+ (l == null ? void 0 : l.type) === "paragraph" || (l == null ? void 0 : l.type) === "text" ? (l.raw += `
6185
+ ` + a.raw, l.text += `
6186
+ ` + a.raw, this.inlineQueue.at(-1).src = l.text) : this.tokens.links[a.tag] || (this.tokens.links[a.tag] = {
6187
6187
  href: a.href,
6188
6188
  title: a.title
6189
6189
  });
@@ -6197,37 +6197,37 @@ ${u}` : u;
6197
6197
  e = e.substring(a.raw.length), t.push(a);
6198
6198
  continue;
6199
6199
  }
6200
- let l = e;
6200
+ let c = e;
6201
6201
  if ((o = this.options.extensions) != null && o.startBlock) {
6202
- let c = 1 / 0;
6202
+ let l = 1 / 0;
6203
6203
  const u = e.slice(1);
6204
6204
  let p;
6205
6205
  this.options.extensions.startBlock.forEach((d) => {
6206
- p = d.call({ lexer: this }, u), typeof p == "number" && p >= 0 && (c = Math.min(c, p));
6207
- }), c < 1 / 0 && c >= 0 && (l = e.substring(0, c + 1));
6208
- }
6209
- if (this.state.top && (a = this.tokenizer.paragraph(l))) {
6210
- const c = t.at(-1);
6211
- i && (c == null ? void 0 : c.type) === "paragraph" ? (c.raw += `
6212
- ` + a.raw, c.text += `
6213
- ` + a.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = c.text) : t.push(a), i = l.length !== e.length, e = e.substring(a.raw.length);
6206
+ p = d.call({ lexer: this }, u), typeof p == "number" && p >= 0 && (l = Math.min(l, p));
6207
+ }), l < 1 / 0 && l >= 0 && (c = e.substring(0, l + 1));
6208
+ }
6209
+ if (this.state.top && (a = this.tokenizer.paragraph(c))) {
6210
+ const l = t.at(-1);
6211
+ i && (l == null ? void 0 : l.type) === "paragraph" ? (l.raw += `
6212
+ ` + a.raw, l.text += `
6213
+ ` + a.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = l.text) : t.push(a), i = c.length !== e.length, e = e.substring(a.raw.length);
6214
6214
  continue;
6215
6215
  }
6216
6216
  if (a = this.tokenizer.text(e)) {
6217
6217
  e = e.substring(a.raw.length);
6218
- const c = t.at(-1);
6219
- (c == null ? void 0 : c.type) === "text" ? (c.raw += `
6220
- ` + a.raw, c.text += `
6221
- ` + a.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = c.text) : t.push(a);
6218
+ const l = t.at(-1);
6219
+ (l == null ? void 0 : l.type) === "text" ? (l.raw += `
6220
+ ` + a.raw, l.text += `
6221
+ ` + a.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = l.text) : t.push(a);
6222
6222
  continue;
6223
6223
  }
6224
6224
  if (e) {
6225
- const c = "Infinite loop on byte: " + e.charCodeAt(0);
6225
+ const l = "Infinite loop on byte: " + e.charCodeAt(0);
6226
6226
  if (this.options.silent) {
6227
- console.error(c);
6227
+ console.error(l);
6228
6228
  break;
6229
6229
  } else
6230
- throw new Error(c);
6230
+ throw new Error(l);
6231
6231
  }
6232
6232
  }
6233
6233
  return this.state.top = !0, t;
@@ -6239,7 +6239,7 @@ ${u}` : u;
6239
6239
  * Lexing/Compiling
6240
6240
  */
6241
6241
  inlineTokens(e, t = []) {
6242
- var a, l, c;
6242
+ var a, c, l;
6243
6243
  let i = e, s = null;
6244
6244
  if (this.tokens.links) {
6245
6245
  const u = Object.keys(this.tokens.links);
@@ -6255,7 +6255,7 @@ ${u}` : u;
6255
6255
  for (; e; ) {
6256
6256
  r || (o = ""), r = !1;
6257
6257
  let u;
6258
- if ((l = (a = this.options.extensions) == null ? void 0 : a.inline) != null && l.some((d) => (u = d.call({ lexer: this }, e, t)) ? (e = e.substring(u.raw.length), t.push(u), !0) : !1))
6258
+ if ((c = (a = this.options.extensions) == null ? void 0 : a.inline) != null && c.some((d) => (u = d.call({ lexer: this }, e, t)) ? (e = e.substring(u.raw.length), t.push(u), !0) : !1))
6259
6259
  continue;
6260
6260
  if (u = this.tokenizer.escape(e)) {
6261
6261
  e = e.substring(u.raw.length), t.push(u);
@@ -6300,7 +6300,7 @@ ${u}` : u;
6300
6300
  continue;
6301
6301
  }
6302
6302
  let p = e;
6303
- if ((c = this.options.extensions) != null && c.startInline) {
6303
+ if ((l = this.options.extensions) != null && l.startInline) {
6304
6304
  let d = 1 / 0;
6305
6305
  const g = e.slice(1);
6306
6306
  let m;
@@ -6517,55 +6517,55 @@ ${n}</tr>
6517
6517
  for (let o = 0; o < e.length; o++) {
6518
6518
  const a = e[o];
6519
6519
  if ((r = (s = this.options.extensions) == null ? void 0 : s.renderers) != null && r[a.type]) {
6520
- const c = a, u = this.options.extensions.renderers[c.type].call({ parser: this }, c);
6521
- if (u !== !1 || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "paragraph", "text"].includes(c.type)) {
6520
+ const l = a, u = this.options.extensions.renderers[l.type].call({ parser: this }, l);
6521
+ if (u !== !1 || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "paragraph", "text"].includes(l.type)) {
6522
6522
  i += u || "";
6523
6523
  continue;
6524
6524
  }
6525
6525
  }
6526
- const l = a;
6527
- switch (l.type) {
6526
+ const c = a;
6527
+ switch (c.type) {
6528
6528
  case "space": {
6529
- i += this.renderer.space(l);
6529
+ i += this.renderer.space(c);
6530
6530
  continue;
6531
6531
  }
6532
6532
  case "hr": {
6533
- i += this.renderer.hr(l);
6533
+ i += this.renderer.hr(c);
6534
6534
  continue;
6535
6535
  }
6536
6536
  case "heading": {
6537
- i += this.renderer.heading(l);
6537
+ i += this.renderer.heading(c);
6538
6538
  continue;
6539
6539
  }
6540
6540
  case "code": {
6541
- i += this.renderer.code(l);
6541
+ i += this.renderer.code(c);
6542
6542
  continue;
6543
6543
  }
6544
6544
  case "table": {
6545
- i += this.renderer.table(l);
6545
+ i += this.renderer.table(c);
6546
6546
  continue;
6547
6547
  }
6548
6548
  case "blockquote": {
6549
- i += this.renderer.blockquote(l);
6549
+ i += this.renderer.blockquote(c);
6550
6550
  continue;
6551
6551
  }
6552
6552
  case "list": {
6553
- i += this.renderer.list(l);
6553
+ i += this.renderer.list(c);
6554
6554
  continue;
6555
6555
  }
6556
6556
  case "html": {
6557
- i += this.renderer.html(l);
6557
+ i += this.renderer.html(c);
6558
6558
  continue;
6559
6559
  }
6560
6560
  case "paragraph": {
6561
- i += this.renderer.paragraph(l);
6561
+ i += this.renderer.paragraph(c);
6562
6562
  continue;
6563
6563
  }
6564
6564
  case "text": {
6565
- let c = l, u = this.renderer.text(c);
6565
+ let l = c, u = this.renderer.text(l);
6566
6566
  for (; o + 1 < e.length && e[o + 1].type === "text"; )
6567
- c = e[++o], u += `
6568
- ` + this.renderer.text(c);
6567
+ l = e[++o], u += `
6568
+ ` + this.renderer.text(l);
6569
6569
  t ? i += this.renderer.paragraph({
6570
6570
  type: "paragraph",
6571
6571
  raw: u,
@@ -6575,10 +6575,10 @@ ${n}</tr>
6575
6575
  continue;
6576
6576
  }
6577
6577
  default: {
6578
- const c = 'Token with "' + l.type + '" type was not found.';
6578
+ const l = 'Token with "' + c.type + '" type was not found.';
6579
6579
  if (this.options.silent)
6580
- return console.error(c), "";
6581
- throw new Error(c);
6580
+ return console.error(l), "";
6581
+ throw new Error(l);
6582
6582
  }
6583
6583
  }
6584
6584
  }
@@ -6593,59 +6593,59 @@ ${n}</tr>
6593
6593
  for (let o = 0; o < e.length; o++) {
6594
6594
  const a = e[o];
6595
6595
  if ((r = (s = this.options.extensions) == null ? void 0 : s.renderers) != null && r[a.type]) {
6596
- const c = this.options.extensions.renderers[a.type].call({ parser: this }, a);
6597
- if (c !== !1 || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(a.type)) {
6598
- i += c || "";
6596
+ const l = this.options.extensions.renderers[a.type].call({ parser: this }, a);
6597
+ if (l !== !1 || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(a.type)) {
6598
+ i += l || "";
6599
6599
  continue;
6600
6600
  }
6601
6601
  }
6602
- const l = a;
6603
- switch (l.type) {
6602
+ const c = a;
6603
+ switch (c.type) {
6604
6604
  case "escape": {
6605
- i += t.text(l);
6605
+ i += t.text(c);
6606
6606
  break;
6607
6607
  }
6608
6608
  case "html": {
6609
- i += t.html(l);
6609
+ i += t.html(c);
6610
6610
  break;
6611
6611
  }
6612
6612
  case "link": {
6613
- i += t.link(l);
6613
+ i += t.link(c);
6614
6614
  break;
6615
6615
  }
6616
6616
  case "image": {
6617
- i += t.image(l);
6617
+ i += t.image(c);
6618
6618
  break;
6619
6619
  }
6620
6620
  case "strong": {
6621
- i += t.strong(l);
6621
+ i += t.strong(c);
6622
6622
  break;
6623
6623
  }
6624
6624
  case "em": {
6625
- i += t.em(l);
6625
+ i += t.em(c);
6626
6626
  break;
6627
6627
  }
6628
6628
  case "codespan": {
6629
- i += t.codespan(l);
6629
+ i += t.codespan(c);
6630
6630
  break;
6631
6631
  }
6632
6632
  case "br": {
6633
- i += t.br(l);
6633
+ i += t.br(c);
6634
6634
  break;
6635
6635
  }
6636
6636
  case "del": {
6637
- i += t.del(l);
6637
+ i += t.del(c);
6638
6638
  break;
6639
6639
  }
6640
6640
  case "text": {
6641
- i += t.text(l);
6641
+ i += t.text(c);
6642
6642
  break;
6643
6643
  }
6644
6644
  default: {
6645
- const c = 'Token with "' + l.type + '" type was not found.';
6645
+ const l = 'Token with "' + c.type + '" type was not found.';
6646
6646
  if (this.options.silent)
6647
- return console.error(c), "";
6648
- throw new Error(c);
6647
+ return console.error(l), "";
6648
+ throw new Error(l);
6649
6649
  }
6650
6650
  }
6651
6651
  }
@@ -6718,8 +6718,8 @@ ${n}</tr>
6718
6718
  for (const a of o.header)
6719
6719
  t = t.concat(this.walkTokens(a.tokens, e));
6720
6720
  for (const a of o.rows)
6721
- for (const l of a)
6722
- t = t.concat(this.walkTokens(l.tokens, e));
6721
+ for (const c of a)
6722
+ t = t.concat(this.walkTokens(c.tokens, e));
6723
6723
  break;
6724
6724
  }
6725
6725
  case "list": {
@@ -6730,8 +6730,8 @@ ${n}</tr>
6730
6730
  default: {
6731
6731
  const o = r;
6732
6732
  (s = (i = this.defaults.extensions) == null ? void 0 : i.childTokens) != null && s[o.type] ? this.defaults.extensions.childTokens[o.type].forEach((a) => {
6733
- const l = o[a].flat(1 / 0);
6734
- t = t.concat(this.walkTokens(l, e));
6733
+ const c = o[a].flat(1 / 0);
6734
+ t = t.concat(this.walkTokens(c, e));
6735
6735
  }) : o.tokens && (t = t.concat(this.walkTokens(o.tokens, e)));
6736
6736
  }
6737
6737
  }
@@ -6765,10 +6765,10 @@ ${n}</tr>
6765
6765
  throw new Error(`renderer '${r}' does not exist`);
6766
6766
  if (["options", "parser"].includes(r))
6767
6767
  continue;
6768
- const o = r, a = t.renderer[o], l = s[o];
6769
- s[o] = (...c) => {
6770
- let u = a.apply(s, c);
6771
- return u === !1 && (u = l.apply(s, c)), u || "";
6768
+ const o = r, a = t.renderer[o], c = s[o];
6769
+ s[o] = (...l) => {
6770
+ let u = a.apply(s, l);
6771
+ return u === !1 && (u = c.apply(s, l)), u || "";
6772
6772
  };
6773
6773
  }
6774
6774
  i.renderer = s;
@@ -6780,10 +6780,10 @@ ${n}</tr>
6780
6780
  throw new Error(`tokenizer '${r}' does not exist`);
6781
6781
  if (["options", "rules", "lexer"].includes(r))
6782
6782
  continue;
6783
- const o = r, a = t.tokenizer[o], l = s[o];
6784
- s[o] = (...c) => {
6785
- let u = a.apply(s, c);
6786
- return u === !1 && (u = l.apply(s, c)), u;
6783
+ const o = r, a = t.tokenizer[o], c = s[o];
6784
+ s[o] = (...l) => {
6785
+ let u = a.apply(s, l);
6786
+ return u === !1 && (u = c.apply(s, l)), u;
6787
6787
  };
6788
6788
  }
6789
6789
  i.tokenizer = s;
@@ -6795,15 +6795,15 @@ ${n}</tr>
6795
6795
  throw new Error(`hook '${r}' does not exist`);
6796
6796
  if (["options", "block"].includes(r))
6797
6797
  continue;
6798
- const o = r, a = t.hooks[o], l = s[o];
6799
- Sn.passThroughHooks.has(r) ? s[o] = (c) => {
6798
+ const o = r, a = t.hooks[o], c = s[o];
6799
+ Sn.passThroughHooks.has(r) ? s[o] = (l) => {
6800
6800
  if (this.defaults.async)
6801
- return Promise.resolve(a.call(s, c)).then((p) => l.call(s, p));
6802
- const u = a.call(s, c);
6803
- return l.call(s, u);
6804
- } : s[o] = (...c) => {
6805
- let u = a.apply(s, c);
6806
- return u === !1 && (u = l.apply(s, c)), u;
6801
+ return Promise.resolve(a.call(s, l)).then((p) => c.call(s, p));
6802
+ const u = a.call(s, l);
6803
+ return c.call(s, u);
6804
+ } : s[o] = (...l) => {
6805
+ let u = a.apply(s, l);
6806
+ return u === !1 && (u = c.apply(s, l)), u;
6807
6807
  };
6808
6808
  }
6809
6809
  i.hooks = s;
@@ -6837,17 +6837,17 @@ ${n}</tr>
6837
6837
  if (typeof t != "string")
6838
6838
  return o(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
6839
6839
  r.hooks && (r.hooks.options = r, r.hooks.block = n);
6840
- const a = r.hooks ? r.hooks.provideLexer() : n ? _e.lex : _e.lexInline, l = r.hooks ? r.hooks.provideParser() : n ? Ae.parse : Ae.parseInline;
6840
+ const a = r.hooks ? r.hooks.provideLexer() : n ? _e.lex : _e.lexInline, c = r.hooks ? r.hooks.provideParser() : n ? Ae.parse : Ae.parseInline;
6841
6841
  if (r.async)
6842
- return Promise.resolve(r.hooks ? r.hooks.preprocess(t) : t).then((c) => a(c, r)).then((c) => r.hooks ? r.hooks.processAllTokens(c) : c).then((c) => r.walkTokens ? Promise.all(this.walkTokens(c, r.walkTokens)).then(() => c) : c).then((c) => l(c, r)).then((c) => r.hooks ? r.hooks.postprocess(c) : c).catch(o);
6842
+ return Promise.resolve(r.hooks ? r.hooks.preprocess(t) : t).then((l) => a(l, r)).then((l) => r.hooks ? r.hooks.processAllTokens(l) : l).then((l) => r.walkTokens ? Promise.all(this.walkTokens(l, r.walkTokens)).then(() => l) : l).then((l) => c(l, r)).then((l) => r.hooks ? r.hooks.postprocess(l) : l).catch(o);
6843
6843
  try {
6844
6844
  r.hooks && (t = r.hooks.preprocess(t));
6845
- let c = a(t, r);
6846
- r.hooks && (c = r.hooks.processAllTokens(c)), r.walkTokens && this.walkTokens(c, r.walkTokens);
6847
- let u = l(c, r);
6845
+ let l = a(t, r);
6846
+ r.hooks && (l = r.hooks.processAllTokens(l)), r.walkTokens && this.walkTokens(l, r.walkTokens);
6847
+ let u = c(l, r);
6848
6848
  return r.hooks && (u = r.hooks.postprocess(u)), u;
6849
- } catch (c) {
6850
- return o(c);
6849
+ } catch (l) {
6850
+ return o(l);
6851
6851
  }
6852
6852
  };
6853
6853
  }
@@ -6953,7 +6953,8 @@ const Fs = class Fs extends _ {
6953
6953
  if (!e) return;
6954
6954
  this.buffer += e;
6955
6955
  const t = Na.sanitize(
6956
- S.parse(this.buffer)
6956
+ S.parse(this.buffer),
6957
+ { ADD_ATTR: ["target"] }
6957
6958
  );
6958
6959
  if (this.includesImage(this.buffer))
6959
6960
  (s = this.contentRef.value) == null || s.appendChild(document.createElement("div")), this.buffer = "";
@@ -8345,26 +8346,26 @@ let it = (bt = class extends _ {
8345
8346
  });
8346
8347
  }
8347
8348
  _onStartChat(e) {
8348
- if (e.preventDefault(), this.showValidationWarning = !1, this.customData.forEach((c) => {
8349
- this.validateCustomDataEntry(c);
8349
+ if (e.preventDefault(), this.showValidationWarning = !1, this.customData.forEach((l) => {
8350
+ this.validateCustomDataEntry(l);
8350
8351
  }), this.validationErrors.length > 0) {
8351
8352
  this.showValidationWarning = !0;
8352
8353
  return;
8353
8354
  }
8354
8355
  this.submitted = !0;
8355
8356
  const t = this.customData.find(
8356
- (c) => c.name === "customerEmailAddress"
8357
+ (l) => l.name === "customerEmailAddress"
8357
8358
  );
8358
8359
  t && (this.emailController.email = t.value);
8359
8360
  const i = this.customData.reduce(
8360
- (c, u) => (c[u.name] = u.value, c),
8361
+ (l, u) => (l[u.name] = u.value, l),
8361
8362
  {}
8362
8363
  ), {
8363
8364
  customerName: s,
8364
8365
  customerEmailAddress: r,
8365
8366
  visitorQuestion: o,
8366
8367
  ...a
8367
- } = i, l = new CustomEvent("action", {
8368
+ } = i, c = new CustomEvent("action", {
8368
8369
  bubbles: !0,
8369
8370
  composed: !0,
8370
8371
  detail: {
@@ -8377,7 +8378,7 @@ let it = (bt = class extends _ {
8377
8378
  }
8378
8379
  }
8379
8380
  });
8380
- this.dispatchEvent(l);
8381
+ this.dispatchEvent(c);
8381
8382
  }
8382
8383
  _customDataValueChanged(e, t) {
8383
8384
  this.customData = this.customData.map((i) => (i.name === t.name && (i.value = e), i));
@@ -9940,36 +9941,42 @@ gp([
9940
9941
  window.customElements.get("ace-video-iframe") || window.customElements.define("ace-video-iframe", en);
9941
9942
  class Os extends kc {
9942
9943
  constructor(e, t) {
9943
- var i, s, r, o;
9944
- super(e, t), this.pendingMessages = [], this.texts = this.component.application.texts, this.headerComponent = this.component.application.getComponent("widget-header"), this.isThirdPartyParticipant = this.component.properties.chat.isThirdPartyWidget, this.agent = this.createAgent(""), this.user = this.createUser(""), this.params = new URLSearchParams(document.location.search), this.invitationUid = this.params.get("invitationUid"), this.customerName = this.params.get("customerName") || void 0, this.idHubUrl = "https://idhub.dev-se.telia-ck8s.com/idhub-gateway/public", this.logoutTimer = null, this.disconnected$ = new P(), this.agentUsername = null, this.conversationOption = null, this._conversationOptions = {}, this.sessionId = null, this.contactId = null, this.errand = null, this.entrance = null, this.guestId = null, this.chatOverlayActive = !1, this.inVideoCall = !1, this.onQueueStatusReceived = (a) => {
9945
- this.setQueueStatus(a.text || null);
9946
- }, this.onEstablished = (a) => {
9947
- this.contactId = a.contactId, this.errand = a.errand, this.entrance = a.entrance, this.agentUsername = a.agentUsername;
9948
- const l = {
9944
+ var i, s, r, o, a, c;
9945
+ super(e, t), this.pendingMessages = [], this.texts = this.component.application.texts, this.headerComponent = this.component.application.getComponent("widget-header"), this.isThirdPartyParticipant = this.component.properties.chat.isThirdPartyWidget, this.agent = this.createAgent(
9946
+ ((i = this.component.application.storage.get("agentInfo")) == null ? void 0 : i.name) || ""
9947
+ ), this.user = this.createUser(
9948
+ ((s = this.component.application.storage.get("userInfo")) == null ? void 0 : s.name) || ""
9949
+ ), this.params = new URLSearchParams(document.location.search), this.invitationUid = this.params.get("invitationUid"), this.customerName = this.params.get("customerName") || void 0, this.idHubUrl = "https://idhub.dev-se.telia-ck8s.com/idhub-gateway/public", this.logoutTimer = null, this.disconnected$ = new P(), this.agentUsername = null, this.conversationOption = null, this._conversationOptions = {}, this.sessionId = null, this.contactId = null, this.errand = null, this.entrance = null, this.guestId = null, this.chatOverlayActive = !1, this.inVideoCall = !1, this.onQueueStatusReceived = (l) => {
9950
+ this.setQueueStatus(l.text || null);
9951
+ }, this.onEstablished = (l) => {
9952
+ this.contactId = l.contactId, this.errand = l.errand, this.entrance = l.entrance, this.agentUsername = l.agentUsername;
9953
+ const u = {
9949
9954
  contactId: this.contactId,
9950
9955
  errand: this.errand,
9951
9956
  entrance: this.entrance,
9952
9957
  agentUsername: this.agentUsername
9953
9958
  };
9954
9959
  this.save({
9955
- survey: l
9956
- }), this.setQueueStatus(null), this.agent.name = a.agentAlias, a.videoEnded && this.removeVideo();
9960
+ survey: u
9961
+ }), this.setQueueStatus(null), this.agent.name = l.agentAlias, this.component.application.storage.set("agentInfo", {
9962
+ name: this.agent.name
9963
+ }), l.videoEnded && this.removeVideo();
9957
9964
  }, this.onPrepareVideo = () => {
9958
9965
  this.showVideoConfirmDialog();
9959
- }, this.onVideoPrepared = (a) => {
9960
- this.showVideoIFrame(a.userUrl);
9961
- }, this.onChatButtonClicked = (a) => {
9962
- this.showChatOverVideo(a.guestId);
9963
- }, this.onEndVideoButtonClicked = (a) => {
9964
- this.guestId && (a == null ? void 0 : a.guestId) === this.guestId && this.removeVideo();
9965
- }, this.onPenStatusChange = (a) => {
9966
- a.penStatus === "on" ? this.setTypingState(!0) : this.setTypingState(!1);
9967
- }, this.onChatEnded = async (a) => {
9968
- var c, u;
9969
- this.shouldUseAuth && this.logoutUser(), this.setToastMessage(null), this.setTypingState(!1), this.videoConfirmDialogEntry && this.videoConfirmDialogEntry.remove(), this.component.disableInput(), a.showForm && this.showConversationEndedForm();
9970
- const l = this.component.application.settings;
9971
- (c = l == null ? void 0 : l.survey) != null && c.shouldUseSurvey && ((u = l == null ? void 0 : l.survey) != null && u.surveyBaseUrl) && this.showSurvey(), this.isThirdPartyParticipant ? this.removeHeaderOptions() : this.setStartNewChatOption(), this.complete();
9972
- }, this.properties = t.properties, this.shouldUseAuth = (s = (i = this.component.application.settings) == null ? void 0 : i.auth) == null ? void 0 : s.shouldUseAuth, this.idHubEidType = (o = (r = this.component.application.settings) == null ? void 0 : r.auth) == null ? void 0 : o.idHubEidType.toLowerCase();
9966
+ }, this.onVideoPrepared = (l) => {
9967
+ this.showVideoIFrame(l.userUrl);
9968
+ }, this.onChatButtonClicked = (l) => {
9969
+ this.showChatOverVideo(l.guestId);
9970
+ }, this.onEndVideoButtonClicked = (l) => {
9971
+ this.guestId && (l == null ? void 0 : l.guestId) === this.guestId && this.removeVideo();
9972
+ }, this.onPenStatusChange = (l) => {
9973
+ l.penStatus === "on" ? this.setTypingState(!0) : this.setTypingState(!1);
9974
+ }, this.onChatEnded = async (l) => {
9975
+ var p, d;
9976
+ this.shouldUseAuth && this.logoutUser(), this.setToastMessage(null), this.setTypingState(!1), this.videoConfirmDialogEntry && this.videoConfirmDialogEntry.remove(), this.component.disableInput(), l.showForm && this.showConversationEndedForm();
9977
+ const u = this.component.application.settings;
9978
+ (p = u == null ? void 0 : u.survey) != null && p.shouldUseSurvey && ((d = u == null ? void 0 : u.survey) != null && d.surveyBaseUrl) && this.showSurvey(), this.isThirdPartyParticipant ? this.removeHeaderOptions() : this.setStartNewChatOption(), this.complete();
9979
+ }, this.properties = t.properties, this.shouldUseAuth = (o = (r = this.component.application.settings) == null ? void 0 : r.auth) == null ? void 0 : o.shouldUseAuth, this.idHubEidType = (c = (a = this.component.application.settings) == null ? void 0 : a.auth) == null ? void 0 : c.idHubEidType.toLowerCase();
9973
9980
  }
9974
9981
  // =============================
9975
9982
  // LIFECYCLE METHODS (overrides)
@@ -10140,7 +10147,7 @@ class Os extends kc {
10140
10147
  customData: {}
10141
10148
  },
10142
10149
  t
10143
- )) : this.showWelcomeForm() : this.showEntranceClosedDialog();
10150
+ )) : this.showWelcomeForm(t) : this.showEntranceClosedDialog();
10144
10151
  }
10145
10152
  startChat(e, t) {
10146
10153
  if (!this.engine)
@@ -10157,7 +10164,7 @@ class Os extends kc {
10157
10164
  visitorQuestion: e.visitorQuestion ?? "",
10158
10165
  customData: e.customData,
10159
10166
  errand: i,
10160
- ...t && { idhubEIDToken: t }
10167
+ ...t && { authToken: t }
10161
10168
  }).pipe(z(this.disconnected$)).subscribe(), this.component.enableInput(), this.component.enableSkipToLatestMessage(), this.setEndConversationOption();
10162
10169
  }
10163
10170
  restartNewChat() {
@@ -10236,15 +10243,15 @@ class Os extends kc {
10236
10243
  } else if (e.status === H.Authenticated) {
10237
10244
  const o = Zd(
10238
10245
  ((t = e == null ? void 0 : e.idhubEIDToken) == null ? void 0 : t.split(".")[1]) ?? ""
10239
- ), a = JSON.parse(o), l = ((s = (i = a == null ? void 0 : a.completionData) == null ? void 0 : i.user) == null ? void 0 : s.name) ?? "", c = a == null ? void 0 : a.exp;
10240
- if (typeof c == "number" && c > 0) {
10241
- const u = c * 1e3 - Date.now();
10246
+ ), a = JSON.parse(o), c = ((s = (i = a == null ? void 0 : a.completionData) == null ? void 0 : i.user) == null ? void 0 : s.name) ?? "", l = a == null ? void 0 : a.exp;
10247
+ if (typeof l == "number" && l > 0) {
10248
+ const u = l * 1e3 - Date.now();
10242
10249
  u <= 0 ? this.logoutUser() : (this.logoutTimer && clearTimeout(this.logoutTimer), this.logoutTimer = setTimeout(() => {
10243
10250
  this.logoutUser();
10244
10251
  }, u));
10245
10252
  }
10246
- this.headerComponent.userName = l, this.headerComponent.authState = ee.Authenticated, this.component.application.storage.set("auth", {
10247
- name: l,
10253
+ this.headerComponent.userName = c, this.headerComponent.authState = ee.Authenticated, this.component.application.storage.set("auth", {
10254
+ name: c,
10248
10255
  authenticated: !0
10249
10256
  }), this.component.setAuthenticationBannerStatus(ee.Authenticated), (r = this.authenticationCardEntry) == null || r.remove(), this.handleWelcomeForm(
10250
10257
  this.engine.config,
@@ -10323,10 +10330,10 @@ class Os extends kc {
10323
10330
  );
10324
10331
  return this.printEntry(s), s;
10325
10332
  }
10326
- showWelcomeForm() {
10333
+ showWelcomeForm(e) {
10327
10334
  this.component.disableInput(), this.component.disableSkipToLatestMessage();
10328
- let e;
10329
- this.isThirdPartyParticipant ? e = new te(
10335
+ let t;
10336
+ this.isThirdPartyParticipant ? t = new te(
10330
10337
  F.System,
10331
10338
  {
10332
10339
  name: ""
@@ -10336,7 +10343,7 @@ class Os extends kc {
10336
10343
  items: [["ace-welcome-form-third-party", { content: "" }]]
10337
10344
  }
10338
10345
  ]
10339
- ) : e = new te(
10346
+ ) : t = new te(
10340
10347
  F.System,
10341
10348
  {
10342
10349
  name: ""
@@ -10346,16 +10353,21 @@ class Os extends kc {
10346
10353
  items: [["ace-welcome-form", { content: "" }]]
10347
10354
  }
10348
10355
  ]
10349
- ), this.printEntry(e), e.actions$.pipe(
10350
- W((t) => t.key === "submitted"),
10356
+ ), this.printEntry(t), t.actions$.pipe(
10357
+ W((i) => i.key === "submitted"),
10351
10358
  me(1)
10352
- ).subscribe((t) => {
10353
- e.remove(), this.user.name = t.data.name, this.startChat({
10354
- customerName: t.data.name,
10355
- customerEmailAddress: t.data.email,
10356
- visitorQuestion: t.data.question,
10357
- customData: t.data.customData
10358
- });
10359
+ ).subscribe((i) => {
10360
+ t.remove(), this.user.name = i.data.name, this.component.application.storage.set("userInfo", {
10361
+ name: this.user.name
10362
+ }), this.startChat(
10363
+ {
10364
+ customerName: i.data.name,
10365
+ customerEmailAddress: i.data.email,
10366
+ visitorQuestion: i.data.question,
10367
+ customData: i.data.customData
10368
+ },
10369
+ e
10370
+ );
10359
10371
  });
10360
10372
  }
10361
10373
  showEntranceClosedDialog() {