@telia-ace/widget-core-flamingo 1.1.123-rc.9 → 1.1.124-rc.0

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
@@ -27,24 +27,24 @@ function mt(r) {
27
27
  function vt(r, t) {
28
28
  var e = typeof Symbol == "function" && r[Symbol.iterator];
29
29
  if (!e) return r;
30
- var i = e.call(r), s, o = [], n;
30
+ var i = e.call(r), s, n = [], o;
31
31
  try {
32
- for (; (t === void 0 || t-- > 0) && !(s = i.next()).done; ) o.push(s.value);
32
+ for (; (t === void 0 || t-- > 0) && !(s = i.next()).done; ) n.push(s.value);
33
33
  } catch (a) {
34
- n = { error: a };
34
+ o = { error: a };
35
35
  } finally {
36
36
  try {
37
37
  s && !s.done && (e = i.return) && e.call(i);
38
38
  } finally {
39
- if (n) throw n.error;
39
+ if (o) throw o.error;
40
40
  }
41
41
  }
42
- return o;
42
+ return n;
43
43
  }
44
44
  function yt(r, t, e) {
45
- if (e || arguments.length === 2) for (var i = 0, s = t.length, o; i < s; i++)
46
- (o || !(i in t)) && (o || (o = Array.prototype.slice.call(t, 0, i)), o[i] = t[i]);
47
- return r.concat(o || Array.prototype.slice.call(t));
45
+ if (e || arguments.length === 2) for (var i = 0, s = t.length, n; i < s; i++)
46
+ (n || !(i in t)) && (n || (n = Array.prototype.slice.call(t, 0, i)), n[i] = t[i]);
47
+ return r.concat(n || Array.prototype.slice.call(t));
48
48
  }
49
49
  function _(r) {
50
50
  return typeof r == "function";
@@ -70,19 +70,19 @@ function bt(r, t) {
70
70
  0 <= e && r.splice(e, 1);
71
71
  }
72
72
  }
73
- var ot = (function() {
73
+ var nt = (function() {
74
74
  function r(t) {
75
75
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
76
76
  }
77
77
  return r.prototype.unsubscribe = function() {
78
- var t, e, i, s, o;
78
+ var t, e, i, s, n;
79
79
  if (!this.closed) {
80
80
  this.closed = !0;
81
- var n = this._parentage;
82
- if (n)
83
- if (this._parentage = null, Array.isArray(n))
81
+ var o = this._parentage;
82
+ if (o)
83
+ if (this._parentage = null, Array.isArray(o))
84
84
  try {
85
- for (var a = mt(n), c = a.next(); !c.done; c = a.next()) {
85
+ for (var a = mt(o), c = a.next(); !c.done; c = a.next()) {
86
86
  var h = c.value;
87
87
  h.remove(this);
88
88
  }
@@ -96,13 +96,13 @@ var ot = (function() {
96
96
  }
97
97
  }
98
98
  else
99
- n.remove(this);
99
+ o.remove(this);
100
100
  var l = this.initialTeardown;
101
101
  if (_(l))
102
102
  try {
103
103
  l();
104
104
  } catch (v) {
105
- o = v instanceof at ? v.errors : [v];
105
+ n = v instanceof at ? v.errors : [v];
106
106
  }
107
107
  var d = this._finalizers;
108
108
  if (d) {
@@ -113,7 +113,7 @@ var ot = (function() {
113
113
  try {
114
114
  Ut(g);
115
115
  } catch (v) {
116
- o = o ?? [], v instanceof at ? o = yt(yt([], vt(o)), vt(v.errors)) : o.push(v);
116
+ n = n ?? [], v instanceof at ? n = yt(yt([], vt(n)), vt(v.errors)) : n.push(v);
117
117
  }
118
118
  }
119
119
  } catch (v) {
@@ -126,8 +126,8 @@ var ot = (function() {
126
126
  }
127
127
  }
128
128
  }
129
- if (o)
130
- throw new at(o);
129
+ if (n)
130
+ throw new at(n);
131
131
  }
132
132
  }, r.prototype.add = function(t) {
133
133
  var e;
@@ -158,9 +158,9 @@ var ot = (function() {
158
158
  var t = new r();
159
159
  return t.closed = !0, t;
160
160
  })(), r;
161
- })(), he = ot.EMPTY;
161
+ })(), he = nt.EMPTY;
162
162
  function le(r) {
163
- return r instanceof ot || r && "closed" in r && _(r.remove) && _(r.add) && _(r.unsubscribe);
163
+ return r instanceof nt || r && "closed" in r && _(r.remove) && _(r.add) && _(r.unsubscribe);
164
164
  }
165
165
  function Ut(r) {
166
166
  _(r) ? r() : r.unsubscribe();
@@ -219,7 +219,7 @@ var de = (function(r) {
219
219
  this.unsubscribe();
220
220
  }
221
221
  }, t;
222
- })(ot), Oe = (function() {
222
+ })(nt), Oe = (function() {
223
223
  function r(t) {
224
224
  this.partialObserver = t;
225
225
  }
@@ -253,12 +253,12 @@ var de = (function(r) {
253
253
  })(), wt = (function(r) {
254
254
  G(t, r);
255
255
  function t(e, i, s) {
256
- var o = r.call(this) || this, n;
257
- return _(e) || !e ? n = {
256
+ var n = r.call(this) || this, o;
257
+ return _(e) || !e ? o = {
258
258
  next: e ?? void 0,
259
259
  error: i ?? void 0,
260
260
  complete: s ?? void 0
261
- } : n = e, o.destination = new Oe(n), o;
261
+ } : o = e, n.destination = new Oe(o), n;
262
262
  }
263
263
  return t;
264
264
  })(de);
@@ -294,11 +294,11 @@ var Ht = (function() {
294
294
  var e = new r();
295
295
  return e.source = this, e.operator = t, e;
296
296
  }, r.prototype.subscribe = function(t, e, i) {
297
- var s = this, o = Le(t) ? t : new wt(t, e, i);
297
+ var s = this, n = Le(t) ? t : new wt(t, e, i);
298
298
  return J(function() {
299
- var n = s, a = n.operator, c = n.source;
300
- o.add(a ? a.call(o, c) : c ? s._subscribe(o) : s._trySubscribe(o));
301
- }), o;
299
+ var o = s, a = o.operator, c = o.source;
300
+ n.add(a ? a.call(n, c) : c ? s._subscribe(n) : s._trySubscribe(n));
301
+ }), n;
302
302
  }, r.prototype._trySubscribe = function(t) {
303
303
  try {
304
304
  return this._subscribe(t);
@@ -307,19 +307,19 @@ var Ht = (function() {
307
307
  }
308
308
  }, r.prototype.forEach = function(t, e) {
309
309
  var i = this;
310
- return e = Ft(e), new e(function(s, o) {
311
- var n = new wt({
310
+ return e = Ft(e), new e(function(s, n) {
311
+ var o = new wt({
312
312
  next: function(a) {
313
313
  try {
314
314
  t(a);
315
315
  } catch (c) {
316
- o(c), n.unsubscribe();
316
+ n(c), o.unsubscribe();
317
317
  }
318
318
  },
319
- error: o,
319
+ error: n,
320
320
  complete: s
321
321
  });
322
- i.subscribe(n);
322
+ i.subscribe(o);
323
323
  });
324
324
  }, r.prototype._subscribe = function(t) {
325
325
  var e;
@@ -333,13 +333,13 @@ var Ht = (function() {
333
333
  }, r.prototype.toPromise = function(t) {
334
334
  var e = this;
335
335
  return t = Ft(t), new t(function(i, s) {
336
- var o;
337
- e.subscribe(function(n) {
338
- return o = n;
339
- }, function(n) {
340
- return s(n);
336
+ var n;
337
+ e.subscribe(function(o) {
338
+ return n = o;
339
+ }, function(o) {
340
+ return s(o);
341
341
  }, function() {
342
- return i(o);
342
+ return i(n);
343
343
  });
344
344
  });
345
345
  }, r.create = function(t) {
@@ -375,11 +375,11 @@ var Ue = ce(function(r) {
375
375
  }, t.prototype.next = function(e) {
376
376
  var i = this;
377
377
  J(function() {
378
- var s, o;
378
+ var s, n;
379
379
  if (i._throwIfClosed(), !i.isStopped) {
380
380
  i.currentObservers || (i.currentObservers = Array.from(i.observers));
381
381
  try {
382
- for (var n = mt(i.currentObservers), a = n.next(); !a.done; a = n.next()) {
382
+ for (var o = mt(i.currentObservers), a = o.next(); !a.done; a = o.next()) {
383
383
  var c = a.value;
384
384
  c.next(e);
385
385
  }
@@ -387,7 +387,7 @@ var Ue = ce(function(r) {
387
387
  s = { error: h };
388
388
  } finally {
389
389
  try {
390
- a && !a.done && (o = n.return) && o.call(n);
390
+ a && !a.done && (n = o.return) && n.call(o);
391
391
  } finally {
392
392
  if (s) throw s.error;
393
393
  }
@@ -426,13 +426,13 @@ var Ue = ce(function(r) {
426
426
  }, t.prototype._subscribe = function(e) {
427
427
  return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
428
428
  }, t.prototype._innerSubscribe = function(e) {
429
- var i = this, s = this, o = s.hasError, n = s.isStopped, a = s.observers;
430
- return o || n ? he : (this.currentObservers = null, a.push(e), new ot(function() {
429
+ var i = this, s = this, n = s.hasError, o = s.isStopped, a = s.observers;
430
+ return n || o ? he : (this.currentObservers = null, a.push(e), new nt(function() {
431
431
  i.currentObservers = null, bt(a, e);
432
432
  }));
433
433
  }, t.prototype._checkFinalizedStatuses = function(e) {
434
- var i = this, s = i.hasError, o = i.thrownError, n = i.isStopped;
435
- s ? e.error(o) : n && e.complete();
434
+ var i = this, s = i.hasError, n = i.thrownError, o = i.isStopped;
435
+ s ? e.error(n) : o && e.complete();
436
436
  }, t.prototype.asObservable = function() {
437
437
  var e = new Ht();
438
438
  return e.source = this, e;
@@ -474,10 +474,10 @@ var Ue = ce(function(r) {
474
474
  var i = r.prototype._subscribe.call(this, e);
475
475
  return !i.closed && e.next(this._value), i;
476
476
  }, t.prototype.getValue = function() {
477
- var e = this, i = e.hasError, s = e.thrownError, o = e._value;
477
+ var e = this, i = e.hasError, s = e.thrownError, n = e._value;
478
478
  if (i)
479
479
  throw s;
480
- return this._throwIfClosed(), o;
480
+ return this._throwIfClosed(), n;
481
481
  }, t.prototype.next = function(e) {
482
482
  r.prototype.next.call(this, this._value = e);
483
483
  }, t;
@@ -527,11 +527,11 @@ let pe = class {
527
527
  }
528
528
  };
529
529
  const je = (r) => new pe(typeof r == "string" ? r : r + "", void 0, Et), U = (r, ...t) => {
530
- const e = r.length === 1 ? r[0] : t.reduce(((i, s, o) => i + ((n) => {
531
- if (n._$cssResult$ === !0) return n.cssText;
532
- if (typeof n == "number") return n;
533
- throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
534
- })(s) + r[o + 1]), r[0]);
530
+ const e = r.length === 1 ? r[0] : t.reduce(((i, s, n) => i + ((o) => {
531
+ if (o._$cssResult$ === !0) return o.cssText;
532
+ if (typeof o == "number") return o;
533
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
534
+ })(s) + r[n + 1]), r[0]);
535
535
  return new pe(e, r, Et);
536
536
  }, He = (r, t) => {
537
537
  if (Ct) r.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
@@ -593,14 +593,14 @@ let T = class extends HTMLElement {
593
593
  }
594
594
  }
595
595
  static getPropertyDescriptor(t, e, i) {
596
- const { get: s, set: o } = De(this.prototype, t) ?? { get() {
596
+ const { get: s, set: n } = De(this.prototype, t) ?? { get() {
597
597
  return this[e];
598
- }, set(n) {
599
- this[e] = n;
598
+ }, set(o) {
599
+ this[e] = o;
600
600
  } };
601
- return { get: s, set(n) {
601
+ return { get: s, set(o) {
602
602
  const a = s == null ? void 0 : s.call(this);
603
- o == null || o.call(this, n), this.requestUpdate(t, a, i);
603
+ n == null || n.call(this, o), this.requestUpdate(t, a, i);
604
604
  }, configurable: !0, enumerable: !0 };
605
605
  }
606
606
  static getPropertyOptions(t) {
@@ -685,34 +685,34 @@ let T = class extends HTMLElement {
685
685
  this._$AK(t, i);
686
686
  }
687
687
  _$ET(t, e) {
688
- var o;
688
+ var n;
689
689
  const i = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, i);
690
690
  if (s !== void 0 && i.reflect === !0) {
691
- const n = (((o = i.converter) == null ? void 0 : o.toAttribute) !== void 0 ? i.converter : Q).toAttribute(e, i.type);
692
- this._$Em = t, n == null ? this.removeAttribute(s) : this.setAttribute(s, n), this._$Em = null;
691
+ const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : Q).toAttribute(e, i.type);
692
+ this._$Em = t, o == null ? this.removeAttribute(s) : this.setAttribute(s, o), this._$Em = null;
693
693
  }
694
694
  }
695
695
  _$AK(t, e) {
696
- var o, n;
696
+ var n, o;
697
697
  const i = this.constructor, s = i._$Eh.get(t);
698
698
  if (s !== void 0 && this._$Em !== s) {
699
- const a = i.getPropertyOptions(s), c = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((o = a.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? a.converter : Q;
699
+ const a = i.getPropertyOptions(s), c = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((n = a.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? a.converter : Q;
700
700
  this._$Em = s;
701
701
  const h = c.fromAttribute(e, a.type);
702
- this[s] = h ?? ((n = this._$Ej) == null ? void 0 : n.get(s)) ?? h, this._$Em = null;
702
+ this[s] = h ?? ((o = this._$Ej) == null ? void 0 : o.get(s)) ?? h, this._$Em = null;
703
703
  }
704
704
  }
705
705
  requestUpdate(t, e, i) {
706
706
  var s;
707
707
  if (t !== void 0) {
708
- const o = this.constructor, n = this[t];
709
- if (i ?? (i = o.getPropertyOptions(t)), !((i.hasChanged ?? St)(n, e) || i.useDefault && i.reflect && n === ((s = this._$Ej) == null ? void 0 : s.get(t)) && !this.hasAttribute(o._$Eu(t, i)))) return;
708
+ const n = this.constructor, o = this[t];
709
+ if (i ?? (i = n.getPropertyOptions(t)), !((i.hasChanged ?? St)(o, e) || i.useDefault && i.reflect && o === ((s = this._$Ej) == null ? void 0 : s.get(t)) && !this.hasAttribute(n._$Eu(t, i)))) return;
710
710
  this.C(t, e, i);
711
711
  }
712
712
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
713
713
  }
714
- C(t, e, { useDefault: i, reflect: s, wrapped: o }, n) {
715
- i && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, n ?? e ?? this[t]), o !== !0 || n !== void 0) || (this._$AL.has(t) || (this.hasUpdated || i || (e = void 0), this._$AL.set(t, e)), s === !0 && this._$Em !== t && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t));
714
+ C(t, e, { useDefault: i, reflect: s, wrapped: n }, o) {
715
+ i && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, o ?? e ?? this[t]), n !== !0 || o !== void 0) || (this._$AL.has(t) || (this.hasUpdated || i || (e = void 0), this._$AL.set(t, e)), s === !0 && this._$Em !== t && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t));
716
716
  }
717
717
  async _$EP() {
718
718
  this.isUpdatePending = !0;
@@ -732,21 +732,21 @@ let T = class extends HTMLElement {
732
732
  if (!this.isUpdatePending) return;
733
733
  if (!this.hasUpdated) {
734
734
  if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
735
- for (const [o, n] of this._$Ep) this[o] = n;
735
+ for (const [n, o] of this._$Ep) this[n] = o;
736
736
  this._$Ep = void 0;
737
737
  }
738
738
  const s = this.constructor.elementProperties;
739
- if (s.size > 0) for (const [o, n] of s) {
740
- const { wrapped: a } = n, c = this[o];
741
- a !== !0 || this._$AL.has(o) || c === void 0 || this.C(o, void 0, n, c);
739
+ if (s.size > 0) for (const [n, o] of s) {
740
+ const { wrapped: a } = o, c = this[n];
741
+ a !== !0 || this._$AL.has(n) || c === void 0 || this.C(n, void 0, o, c);
742
742
  }
743
743
  }
744
744
  let t = !1;
745
745
  const e = this._$AL;
746
746
  try {
747
747
  t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach(((s) => {
748
- var o;
749
- return (o = s.hostUpdate) == null ? void 0 : o.call(s);
748
+ var n;
749
+ return (n = s.hostUpdate) == null ? void 0 : n.call(s);
750
750
  })), this.update(e)) : this._$EM();
751
751
  } catch (s) {
752
752
  throw t = !1, this._$EM(), s;
@@ -797,21 +797,21 @@ function ve(r, t) {
797
797
  }
798
798
  const Ze = (r, t) => {
799
799
  const e = r.length - 1, i = [];
800
- let s, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = H;
800
+ let s, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = H;
801
801
  for (let a = 0; a < e; a++) {
802
802
  const c = r[a];
803
803
  let h, l, d = -1, u = 0;
804
- for (; u < c.length && (n.lastIndex = u, l = n.exec(c), l !== null); ) u = n.lastIndex, n === H ? l[1] === "!--" ? n = Kt : l[1] !== void 0 ? n = Yt : l[2] !== void 0 ? (me.test(l[2]) && (s = RegExp("</" + l[2], "g")), n = E) : l[3] !== void 0 && (n = E) : n === E ? l[0] === ">" ? (n = s ?? H, d = -1) : l[1] === void 0 ? d = -2 : (d = n.lastIndex - l[2].length, h = l[1], n = l[3] === void 0 ? E : l[3] === '"' ? Jt : Zt) : n === Jt || n === Zt ? n = E : n === Kt || n === Yt ? n = H : (n = E, s = void 0);
805
- const f = n === E && r[a + 1].startsWith("/>") ? " " : "";
806
- o += n === H ? c + Ge : d >= 0 ? (i.push(h), c.slice(0, d) + fe + c.slice(d) + x + f) : c + x + (d === -2 ? a : f);
804
+ for (; u < c.length && (o.lastIndex = u, l = o.exec(c), l !== null); ) u = o.lastIndex, o === H ? l[1] === "!--" ? o = Kt : l[1] !== void 0 ? o = Yt : l[2] !== void 0 ? (me.test(l[2]) && (s = RegExp("</" + l[2], "g")), o = E) : l[3] !== void 0 && (o = E) : o === E ? l[0] === ">" ? (o = s ?? H, d = -1) : l[1] === void 0 ? d = -2 : (d = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? E : l[3] === '"' ? Jt : Zt) : o === Jt || o === Zt ? o = E : o === Kt || o === Yt ? o = H : (o = E, s = void 0);
805
+ const f = o === E && r[a + 1].startsWith("/>") ? " " : "";
806
+ n += o === H ? c + Ge : d >= 0 ? (i.push(h), c.slice(0, d) + fe + c.slice(d) + x + f) : c + x + (d === -2 ? a : f);
807
807
  }
808
- return [ve(r, o + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
808
+ return [ve(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
809
809
  };
810
810
  let $t = class ye {
811
811
  constructor({ strings: t, _$litType$: e }, i) {
812
812
  let s;
813
813
  this.parts = [];
814
- let o = 0, n = 0;
814
+ let n = 0, o = 0;
815
815
  const a = t.length - 1, c = this.parts, [h, l] = Ze(t, e);
816
816
  if (this.el = ye.createElement(h, i), P.currentNode = this.el.content, e === 2 || e === 3) {
817
817
  const d = this.el.content.firstChild;
@@ -820,23 +820,23 @@ let $t = class ye {
820
820
  for (; (s = P.nextNode()) !== null && c.length < a; ) {
821
821
  if (s.nodeType === 1) {
822
822
  if (s.hasAttributes()) for (const d of s.getAttributeNames()) if (d.endsWith(fe)) {
823
- const u = l[n++], f = s.getAttribute(d).split(x), g = /([.?@])?(.*)/.exec(u);
824
- c.push({ type: 1, index: o, name: g[2], strings: f, ctor: g[1] === "." ? Xe : g[1] === "?" ? Qe : g[1] === "@" ? ti : nt }), s.removeAttribute(d);
825
- } else d.startsWith(x) && (c.push({ type: 6, index: o }), s.removeAttribute(d));
823
+ const u = l[o++], f = s.getAttribute(d).split(x), g = /([.?@])?(.*)/.exec(u);
824
+ c.push({ type: 1, index: n, name: g[2], strings: f, ctor: g[1] === "." ? Xe : g[1] === "?" ? Qe : g[1] === "@" ? ti : ot }), s.removeAttribute(d);
825
+ } else d.startsWith(x) && (c.push({ type: 6, index: n }), s.removeAttribute(d));
826
826
  if (me.test(s.tagName)) {
827
827
  const d = s.textContent.split(x), u = d.length - 1;
828
828
  if (u > 0) {
829
829
  s.textContent = tt ? tt.emptyScript : "";
830
- for (let f = 0; f < u; f++) s.append(d[f], z()), P.nextNode(), c.push({ type: 2, index: ++o });
830
+ for (let f = 0; f < u; f++) s.append(d[f], z()), P.nextNode(), c.push({ type: 2, index: ++n });
831
831
  s.append(d[u], z());
832
832
  }
833
833
  }
834
- } else if (s.nodeType === 8) if (s.data === ge) c.push({ type: 2, index: o });
834
+ } else if (s.nodeType === 8) if (s.data === ge) c.push({ type: 2, index: n });
835
835
  else {
836
836
  let d = -1;
837
- for (; (d = s.data.indexOf(x, d + 1)) !== -1; ) c.push({ type: 7, index: o }), d += x.length - 1;
837
+ for (; (d = s.data.indexOf(x, d + 1)) !== -1; ) c.push({ type: 7, index: n }), d += x.length - 1;
838
838
  }
839
- o++;
839
+ n++;
840
840
  }
841
841
  }
842
842
  static createElement(t, e) {
@@ -845,11 +845,11 @@ let $t = class ye {
845
845
  }
846
846
  };
847
847
  function M(r, t, e = r, i) {
848
- var n, a;
848
+ var o, a;
849
849
  if (t === k) return t;
850
- let s = i !== void 0 ? (n = e._$Co) == null ? void 0 : n[i] : e._$Cl;
851
- const o = V(t) ? void 0 : t._$litDirective$;
852
- return (s == null ? void 0 : s.constructor) !== o && ((a = s == null ? void 0 : s._$AO) == null || a.call(s, !1), o === void 0 ? s = void 0 : (s = new o(r), s._$AT(r, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = s : e._$Cl = s), s !== void 0 && (t = M(r, s._$AS(r, t.values), s, i)), t;
850
+ let s = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
851
+ const n = V(t) ? void 0 : t._$litDirective$;
852
+ return (s == null ? void 0 : s.constructor) !== n && ((a = s == null ? void 0 : s._$AO) == null || a.call(s, !1), n === void 0 ? s = void 0 : (s = new n(r), s._$AT(r, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = s : e._$Cl = s), s !== void 0 && (t = M(r, s._$AS(r, t.values), s, i)), t;
853
853
  }
854
854
  class Je {
855
855
  constructor(t, e) {
@@ -864,13 +864,13 @@ class Je {
864
864
  u(t) {
865
865
  const { el: { content: e }, parts: i } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? I).importNode(e, !0);
866
866
  P.currentNode = s;
867
- let o = P.nextNode(), n = 0, a = 0, c = i[0];
867
+ let n = P.nextNode(), o = 0, a = 0, c = i[0];
868
868
  for (; c !== void 0; ) {
869
- if (n === c.index) {
869
+ if (o === c.index) {
870
870
  let h;
871
- c.type === 2 ? h = new K(o, o.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(o, c.name, c.strings, this, t) : c.type === 6 && (h = new ei(o, this, t)), this._$AV.push(h), c = i[++a];
871
+ c.type === 2 ? h = new K(n, n.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (h = new ei(n, this, t)), this._$AV.push(h), c = i[++a];
872
872
  }
873
- n !== (c == null ? void 0 : c.index) && (o = P.nextNode(), n++);
873
+ o !== (c == null ? void 0 : c.index) && (n = P.nextNode(), o++);
874
874
  }
875
875
  return P.currentNode = I, s;
876
876
  }
@@ -911,12 +911,12 @@ class K {
911
911
  this._$AH !== p && V(this._$AH) ? this._$AA.nextSibling.data = t : this.T(I.createTextNode(t)), this._$AH = t;
912
912
  }
913
913
  $(t) {
914
- var o;
914
+ var n;
915
915
  const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = $t.createElement(ve(i.h, i.h[0]), this.options)), i);
916
- if (((o = this._$AH) == null ? void 0 : o._$AD) === s) this._$AH.p(e);
916
+ if (((n = this._$AH) == null ? void 0 : n._$AD) === s) this._$AH.p(e);
917
917
  else {
918
- const n = new Je(s, this), a = n.u(this.options);
919
- n.p(e), this.T(a), this._$AH = n;
918
+ const o = new Je(s, this), a = o.u(this.options);
919
+ o.p(e), this.T(a), this._$AH = o;
920
920
  }
921
921
  }
922
922
  _$AC(t) {
@@ -927,7 +927,7 @@ class K {
927
927
  Pt(this._$AH) || (this._$AH = [], this._$AR());
928
928
  const e = this._$AH;
929
929
  let i, s = 0;
930
- for (const o of t) s === e.length ? e.push(i = new K(this.O(z()), this.O(z()), this, this.options)) : i = e[s], i._$AI(o), s++;
930
+ for (const n of t) s === e.length ? e.push(i = new K(this.O(z()), this.O(z()), this, this.options)) : i = e[s], i._$AI(n), s++;
931
931
  s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
932
932
  }
933
933
  _$AR(t = this._$AA.nextSibling, e) {
@@ -942,32 +942,32 @@ class K {
942
942
  this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
943
943
  }
944
944
  }
945
- class nt {
945
+ class ot {
946
946
  get tagName() {
947
947
  return this.element.tagName;
948
948
  }
949
949
  get _$AU() {
950
950
  return this._$AM._$AU;
951
951
  }
952
- constructor(t, e, i, s, o) {
953
- this.type = 1, this._$AH = p, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = o, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = p;
952
+ constructor(t, e, i, s, n) {
953
+ this.type = 1, this._$AH = p, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = n, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = p;
954
954
  }
955
955
  _$AI(t, e = this, i, s) {
956
- const o = this.strings;
957
- let n = !1;
958
- if (o === void 0) t = M(this, t, e, 0), n = !V(t) || t !== this._$AH && t !== k, n && (this._$AH = t);
956
+ const n = this.strings;
957
+ let o = !1;
958
+ if (n === void 0) t = M(this, t, e, 0), o = !V(t) || t !== this._$AH && t !== k, o && (this._$AH = t);
959
959
  else {
960
960
  const a = t;
961
961
  let c, h;
962
- for (t = o[0], c = 0; c < o.length - 1; c++) h = M(this, a[i + c], e, c), h === k && (h = this._$AH[c]), n || (n = !V(h) || h !== this._$AH[c]), h === p ? t = p : t !== p && (t += (h ?? "") + o[c + 1]), this._$AH[c] = h;
962
+ for (t = n[0], c = 0; c < n.length - 1; c++) h = M(this, a[i + c], e, c), h === k && (h = this._$AH[c]), o || (o = !V(h) || h !== this._$AH[c]), h === p ? t = p : t !== p && (t += (h ?? "") + n[c + 1]), this._$AH[c] = h;
963
963
  }
964
- n && !s && this.j(t);
964
+ o && !s && this.j(t);
965
965
  }
966
966
  j(t) {
967
967
  t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
968
968
  }
969
969
  }
970
- class Xe extends nt {
970
+ class Xe extends ot {
971
971
  constructor() {
972
972
  super(...arguments), this.type = 3;
973
973
  }
@@ -975,7 +975,7 @@ class Xe extends nt {
975
975
  this.element[this.name] = t === p ? void 0 : t;
976
976
  }
977
977
  }
978
- class Qe extends nt {
978
+ class Qe extends ot {
979
979
  constructor() {
980
980
  super(...arguments), this.type = 4;
981
981
  }
@@ -983,14 +983,14 @@ class Qe extends nt {
983
983
  this.element.toggleAttribute(this.name, !!t && t !== p);
984
984
  }
985
985
  }
986
- class ti extends nt {
987
- constructor(t, e, i, s, o) {
988
- super(t, e, i, s, o), this.type = 5;
986
+ class ti extends ot {
987
+ constructor(t, e, i, s, n) {
988
+ super(t, e, i, s, n), this.type = 5;
989
989
  }
990
990
  _$AI(t, e = this) {
991
991
  if ((t = M(this, t, e, 0) ?? p) === k) return;
992
- const i = this._$AH, s = t === p && i !== p || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== p && (i === p || s);
993
- s && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
992
+ const i = this._$AH, s = t === p && i !== p || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== p && (i === p || s);
993
+ s && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
994
994
  }
995
995
  handleEvent(t) {
996
996
  var e;
@@ -1014,8 +1014,8 @@ const ii = (r, t, e) => {
1014
1014
  const i = (e == null ? void 0 : e.renderBefore) ?? t;
1015
1015
  let s = i._$litPart$;
1016
1016
  if (s === void 0) {
1017
- const o = (e == null ? void 0 : e.renderBefore) ?? null;
1018
- i._$litPart$ = s = new K(t.insertBefore(z(), o), o, void 0, e ?? {});
1017
+ const n = (e == null ? void 0 : e.renderBefore) ?? null;
1018
+ i._$litPart$ = s = new K(t.insertBefore(z(), n), n, void 0, e ?? {});
1019
1019
  }
1020
1020
  return s._$AI(r), s;
1021
1021
  };
@@ -1062,29 +1062,29 @@ dt == null || dt({ LitElement: A });
1062
1062
  */
1063
1063
  const si = { attribute: !0, type: String, converter: Q, reflect: !1, hasChanged: St }, ri = (r = si, t, e) => {
1064
1064
  const { kind: i, metadata: s } = e;
1065
- let o = globalThis.litPropertyMetadata.get(s);
1066
- if (o === void 0 && globalThis.litPropertyMetadata.set(s, o = /* @__PURE__ */ new Map()), i === "setter" && ((r = Object.create(r)).wrapped = !0), o.set(e.name, r), i === "accessor") {
1067
- const { name: n } = e;
1065
+ let n = globalThis.litPropertyMetadata.get(s);
1066
+ if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), i === "setter" && ((r = Object.create(r)).wrapped = !0), n.set(e.name, r), i === "accessor") {
1067
+ const { name: o } = e;
1068
1068
  return { set(a) {
1069
1069
  const c = t.get.call(this);
1070
- t.set.call(this, a), this.requestUpdate(n, c, r);
1070
+ t.set.call(this, a), this.requestUpdate(o, c, r);
1071
1071
  }, init(a) {
1072
- return a !== void 0 && this.C(n, void 0, r, a), a;
1072
+ return a !== void 0 && this.C(o, void 0, r, a), a;
1073
1073
  } };
1074
1074
  }
1075
1075
  if (i === "setter") {
1076
- const { name: n } = e;
1076
+ const { name: o } = e;
1077
1077
  return function(a) {
1078
- const c = this[n];
1079
- t.call(this, a), this.requestUpdate(n, c, r);
1078
+ const c = this[o];
1079
+ t.call(this, a), this.requestUpdate(o, c, r);
1080
1080
  };
1081
1081
  }
1082
1082
  throw Error("Unsupported decorator location: " + i);
1083
1083
  };
1084
1084
  function m(r) {
1085
- return (t, e) => typeof e == "object" ? ri(r, t, e) : ((i, s, o) => {
1086
- const n = s.hasOwnProperty(o);
1087
- return s.constructor.createProperty(o, i), n ? Object.getOwnPropertyDescriptor(s, o) : void 0;
1085
+ return (t, e) => typeof e == "object" ? ri(r, t, e) : ((i, s, n) => {
1086
+ const o = s.hasOwnProperty(n);
1087
+ return s.constructor.createProperty(n, i), o ? Object.getOwnPropertyDescriptor(s, n) : void 0;
1088
1088
  })(r, t, e);
1089
1089
  }
1090
1090
  /**
@@ -1095,10 +1095,10 @@ function m(r) {
1095
1095
  function j(r) {
1096
1096
  return m({ ...r, state: !0, attribute: !1 });
1097
1097
  }
1098
- var oi = Object.defineProperty, ni = (r, t, e, i) => {
1099
- for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
1100
- (n = r[o]) && (s = n(t, e, s) || s);
1101
- return s && oi(t, e, s), s;
1098
+ var ni = Object.defineProperty, oi = (r, t, e, i) => {
1099
+ for (var s = void 0, n = r.length - 1, o; n >= 0; n--)
1100
+ (o = r[n]) && (s = o(t, e, s) || s);
1101
+ return s && ni(t, e, s), s;
1102
1102
  };
1103
1103
  const Tt = class Tt extends A {
1104
1104
  constructor() {
@@ -1132,7 +1132,7 @@ Tt.styles = [
1132
1132
  `
1133
1133
  ];
1134
1134
  let W = Tt;
1135
- ni([
1135
+ oi([
1136
1136
  m({ attribute: !0 })
1137
1137
  ], W.prototype, "anchor");
1138
1138
  /**
@@ -1193,7 +1193,7 @@ function ci(r) {
1193
1193
  }
1194
1194
  function hi(r, t = !1, e = 0) {
1195
1195
  const i = this._$AH, s = this._$AN;
1196
- if (s !== void 0 && s.size !== 0) if (t) if (Array.isArray(i)) for (let o = e; o < i.length; o++) D(i[o], !1), et(i[o]);
1196
+ if (s !== void 0 && s.size !== 0) if (t) if (Array.isArray(i)) for (let n = e; n < i.length; n++) D(i[n], !1), et(i[n]);
1197
1197
  else i != null && (D(i, !1), et(i));
1198
1198
  else D(this, r);
1199
1199
  }
@@ -1276,7 +1276,7 @@ class gi extends $e {
1276
1276
  update(t, [e]) {
1277
1277
  var s;
1278
1278
  const i = this.u === void 0;
1279
- return i && (this.u = (s = t.options) == null ? void 0 : s.host, this.u.addController(this), this.u.updateComplete.then(((o) => this.t = !0)), this.element = t.element, re.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
1279
+ return i && (this.u = (s = t.options) == null ? void 0 : s.host, this.u.addController(this), this.u.updateComplete.then(((n) => this.t = !0)), this.element = t.element, re.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
1280
1280
  }
1281
1281
  p(t) {
1282
1282
  t = t ?? {};
@@ -1286,15 +1286,15 @@ class gi extends $e {
1286
1286
  m() {
1287
1287
  const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
1288
1288
  return this.options.properties.forEach(((s) => {
1289
- const o = e[s] ?? (pt[s] ? void 0 : i[s]), n = Number(o);
1290
- t[s] = isNaN(n) ? o + "" : n;
1289
+ const n = e[s] ?? (pt[s] ? void 0 : i[s]), o = Number(n);
1290
+ t[s] = isNaN(o) ? n + "" : o;
1291
1291
  })), t;
1292
1292
  }
1293
1293
  v() {
1294
1294
  let t, e = !0;
1295
1295
  return this.options.guard && (t = this.options.guard(), e = ((i, s) => {
1296
1296
  if (Array.isArray(i)) {
1297
- if (Array.isArray(s) && s.length === i.length && i.every(((o, n) => o === s[n]))) return !1;
1297
+ if (Array.isArray(s) && s.length === i.length && i.every(((n, o) => n === s[o]))) return !1;
1298
1298
  } else if (s === i) return !1;
1299
1299
  return !0;
1300
1300
  })(t, this._)), this.h = this.t && !this.isDisabled() && !this.isAnimating() && e && this.element.isConnected, this.h && (this._ = Array.isArray(t) ? Array.from(t) : t), this.h;
@@ -1308,14 +1308,14 @@ class gi extends $e {
1308
1308
  this.prepare(), await ee;
1309
1309
  const e = this.O(), i = this.j(this.options.keyframeOptions, e), s = this.m();
1310
1310
  if (this.A !== void 0) {
1311
- const { from: o, to: n } = this.N(this.A, s, e);
1312
- this.log("measured", [this.A, s, o, n]), t = this.calculateKeyframes(o, n);
1311
+ const { from: n, to: o } = this.N(this.A, s, e);
1312
+ this.log("measured", [this.A, s, n, o]), t = this.calculateKeyframes(n, o);
1313
1313
  } else {
1314
- const o = ut.get(this.options.inId);
1315
- if (o) {
1314
+ const n = ut.get(this.options.inId);
1315
+ if (n) {
1316
1316
  ut.delete(this.options.inId);
1317
- const { from: n, to: a } = this.N(o, s, e);
1318
- t = this.calculateKeyframes(n, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Qt++, t.forEach(((c) => c.zIndex = Qt));
1317
+ const { from: o, to: a } = this.N(n, s, e);
1318
+ t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Qt++, t.forEach(((c) => c.zIndex = Qt));
1319
1319
  } else this.options.in && (t = [...this.options.in, {}]);
1320
1320
  }
1321
1321
  this.animate(t, i);
@@ -1337,8 +1337,8 @@ class gi extends $e {
1337
1337
  if (this.i.insertBefore(this.element, i), this.options.stabilizeOut) {
1338
1338
  const s = this.m();
1339
1339
  this.log("stabilizing out");
1340
- const o = this.A.left - s.left, n = this.A.top - s.top;
1341
- getComputedStyle(this.element).position !== "static" || o === 0 && n === 0 || (this.element.style.position = "relative"), o !== 0 && (this.element.style.left = o + "px"), n !== 0 && (this.element.style.top = n + "px");
1340
+ const n = this.A.left - s.left, o = this.A.top - s.top;
1341
+ getComputedStyle(this.element).position !== "static" || n === 0 && o === 0 || (this.element.style.position = "relative"), n !== 0 && (this.element.style.left = n + "px"), o !== 0 && (this.element.style.top = o + "px");
1342
1342
  }
1343
1343
  }
1344
1344
  const t = this.j(this.options.keyframeOptions);
@@ -1376,14 +1376,14 @@ class gi extends $e {
1376
1376
  N(t, e, i) {
1377
1377
  t = { ...t }, e = { ...e };
1378
1378
  const s = i.map(((a) => a.animatingProperties)).filter(((a) => a !== void 0));
1379
- let o = 1, n = 1;
1379
+ let n = 1, o = 1;
1380
1380
  return s.length > 0 && (s.forEach(((a) => {
1381
- a.width && (o /= a.width), a.height && (n /= a.height);
1382
- })), t.left !== void 0 && e.left !== void 0 && (t.left = o * t.left, e.left = o * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = n * t.top, e.top = n * e.top)), { from: t, to: e };
1381
+ a.width && (n /= a.width), a.height && (o /= a.height);
1382
+ })), t.left !== void 0 && e.left !== void 0 && (t.left = n * t.left, e.left = n * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = o * t.top, e.top = o * e.top)), { from: t, to: e };
1383
1383
  }
1384
1384
  calculateKeyframes(t, e, i = !1) {
1385
- const s = {}, o = {};
1386
- let n = !1;
1385
+ const s = {}, n = {};
1386
+ let o = !1;
1387
1387
  const a = {};
1388
1388
  for (const c in e) {
1389
1389
  const h = t[c], l = e[c];
@@ -1391,10 +1391,10 @@ class gi extends $e {
1391
1391
  const d = pt[c];
1392
1392
  if (h === void 0 || l === void 0) continue;
1393
1393
  const u = d(h, l);
1394
- u.transform !== void 0 && (a[c] = u.value, n = !0, s.transform = `${s.transform ?? ""} ${u.transform}`, u.overrideFrom !== void 0 && Object.assign(s, u.overrideFrom));
1395
- } else h !== l && h !== void 0 && l !== void 0 && (n = !0, s[c] = h, o[c] = l);
1394
+ u.transform !== void 0 && (a[c] = u.value, o = !0, s.transform = `${s.transform ?? ""} ${u.transform}`, u.overrideFrom !== void 0 && Object.assign(s, u.overrideFrom));
1395
+ } else h !== l && h !== void 0 && l !== void 0 && (o = !0, s[c] = h, n[c] = l);
1396
1396
  }
1397
- return s.transformOrigin = o.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, n ? [s, o] : void 0;
1397
+ return s.transformOrigin = n.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, o ? [s, n] : void 0;
1398
1398
  }
1399
1399
  async animate(t, e = this.options.keyframeOptions) {
1400
1400
  this.start(), this.frames = t;
@@ -1425,7 +1425,7 @@ const mi = It(gi), vi = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns
1425
1425
  * Copyright 2018 Google LLC
1426
1426
  * SPDX-License-Identifier: BSD-3-Clause
1427
1427
  */
1428
- const oe = It(class extends be {
1428
+ const ne = It(class extends be {
1429
1429
  constructor(r) {
1430
1430
  var t;
1431
1431
  if (super(r), r.type !== Ot.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
@@ -1436,22 +1436,22 @@ const oe = It(class extends be {
1436
1436
  update(r, [t]) {
1437
1437
  var i, s;
1438
1438
  if (this.st === void 0) {
1439
- this.st = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.nt = new Set(r.strings.join(" ").split(/\s/).filter(((o) => o !== ""))));
1440
- for (const o in t) t[o] && !((i = this.nt) != null && i.has(o)) && this.st.add(o);
1439
+ this.st = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.nt = new Set(r.strings.join(" ").split(/\s/).filter(((n) => n !== ""))));
1440
+ for (const n in t) t[n] && !((i = this.nt) != null && i.has(n)) && this.st.add(n);
1441
1441
  return this.render(t);
1442
1442
  }
1443
1443
  const e = r.element.classList;
1444
- for (const o of this.st) o in t || (e.remove(o), this.st.delete(o));
1445
- for (const o in t) {
1446
- const n = !!t[o];
1447
- n === this.st.has(o) || (s = this.nt) != null && s.has(o) || (n ? (e.add(o), this.st.add(o)) : (e.remove(o), this.st.delete(o)));
1444
+ for (const n of this.st) n in t || (e.remove(n), this.st.delete(n));
1445
+ for (const n in t) {
1446
+ const o = !!t[n];
1447
+ o === this.st.has(n) || (s = this.nt) != null && s.has(n) || (o ? (e.add(n), this.st.add(n)) : (e.remove(n), this.st.delete(n)));
1448
1448
  }
1449
1449
  return k;
1450
1450
  }
1451
1451
  }), w = (r, t, e) => {
1452
1452
  r && e.style.setProperty(t, r);
1453
1453
  }, _e = (r, t) => {
1454
- var e, i, s, o, n, a, c, h, l;
1454
+ var e, i, s, n, o, a, c, h, l;
1455
1455
  w((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), w(
1456
1456
  (i = r.colors) == null ? void 0 : i.textOnPrimaryBackground,
1457
1457
  "--text-on-primary-background",
@@ -1461,11 +1461,11 @@ const oe = It(class extends be {
1461
1461
  "--secondary-background",
1462
1462
  t
1463
1463
  ), w(
1464
- (o = r.colors) == null ? void 0 : o.textOnSecondaryBackground,
1464
+ (n = r.colors) == null ? void 0 : n.textOnSecondaryBackground,
1465
1465
  "--text-on-secondary-background",
1466
1466
  t
1467
1467
  ), w(
1468
- (n = r.colors) == null ? void 0 : n.interactiveDestructiveBackground,
1468
+ (o = r.colors) == null ? void 0 : o.interactiveDestructiveBackground,
1469
1469
  "--destructive-color",
1470
1470
  t
1471
1471
  ), w(
@@ -1518,8 +1518,8 @@ const ft = /* @__PURE__ */ new WeakMap(), xe = It(class extends $e {
1518
1518
  }
1519
1519
  });
1520
1520
  var bi = Object.defineProperty, Y = (r, t, e, i) => {
1521
- for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
1522
- (n = r[o]) && (s = n(t, e, s) || s);
1521
+ for (var s = void 0, n = r.length - 1, o; n >= 0; n--)
1522
+ (o = r[n]) && (s = o(t, e, s) || s);
1523
1523
  return s && bi(t, e, s), s;
1524
1524
  };
1525
1525
  const Rt = class Rt extends A {
@@ -1569,8 +1569,8 @@ const Rt = class Rt extends A {
1569
1569
  const i = (h = this.application) == null ? void 0 : h.triggerIcon;
1570
1570
  if (!i)
1571
1571
  return p;
1572
- const s = async (l) => vi, { type: o, content: n } = i;
1573
- switch (o) {
1572
+ const s = async (l) => vi, { type: n, content: o } = i;
1573
+ switch (n) {
1574
1574
  case "Telia": {
1575
1575
  const l = await s();
1576
1576
  return l ? R`<telia-icon
@@ -1597,11 +1597,11 @@ const Rt = class Rt extends A {
1597
1597
  this.triggerVisible = !0;
1598
1598
  }
1599
1599
  render() {
1600
- var t, e, i, s, o, n, a;
1600
+ var t, e, i, s, n, o, a;
1601
1601
  return R`<div
1602
- class=${oe({
1602
+ class=${ne({
1603
1603
  "trigger-container": !0,
1604
- hidden: !this.triggerVisible
1604
+ "ace-hidden": !this.triggerVisible
1605
1605
  })}
1606
1606
  ${xe(this.containerRef)}
1607
1607
  >
@@ -1624,8 +1624,8 @@ const Rt = class Rt extends A {
1624
1624
 
1625
1625
  <button
1626
1626
  type="button"
1627
- aria-label="${((a = (n = (o = this.application) == null ? void 0 : o.settings) == null ? void 0 : n.branding.other) == null ? void 0 : a.buttonLabelText) ?? "Widget trigger"}"
1628
- class=${oe({
1627
+ aria-label="${((a = (o = (n = this.application) == null ? void 0 : n.settings) == null ? void 0 : o.branding.other) == null ? void 0 : a.buttonLabelText) ?? "Widget trigger"}"
1628
+ class=${ne({
1629
1629
  trigger: !0,
1630
1630
  active: this.active,
1631
1631
  rendered: this.loaded
@@ -1685,7 +1685,7 @@ Rt.styles = [
1685
1685
  gap: 1rem;
1686
1686
  }
1687
1687
 
1688
- .trigger-container.hidden {
1688
+ .trigger-container.ace-hidden {
1689
1689
  display: none;
1690
1690
  }
1691
1691
 
@@ -1813,8 +1813,8 @@ Y([
1813
1813
  j()
1814
1814
  ], b.prototype, "icon");
1815
1815
  var wi = Object.defineProperty, S = (r, t, e, i) => {
1816
- for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
1817
- (n = r[o]) && (s = n(t, e, s) || s);
1816
+ for (var s = void 0, n = r.length - 1, o; n >= 0; n--)
1817
+ (o = r[n]) && (s = o(t, e, s) || s);
1818
1818
  return s && wi(t, e, s), s;
1819
1819
  };
1820
1820
  const $i = (r) => {
@@ -1956,19 +1956,19 @@ let Ei = class extends Event {
1956
1956
  super("context-provider", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = e;
1957
1957
  }
1958
1958
  };
1959
- class ne extends Ci {
1959
+ class oe extends Ci {
1960
1960
  constructor(t, e, i) {
1961
- var s, o;
1962
- super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (n) => {
1963
- if (n.context !== this.context) return;
1964
- const a = n.contextTarget ?? n.composedPath()[0];
1965
- a !== this.host && (n.stopPropagation(), this.addCallback(n.callback, a, n.subscribe));
1966
- }, this.onProviderRequest = (n) => {
1967
- if (n.context !== this.context || (n.contextTarget ?? n.composedPath()[0]) === this.host) return;
1961
+ var s, n;
1962
+ super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (o) => {
1963
+ if (o.context !== this.context) return;
1964
+ const a = o.contextTarget ?? o.composedPath()[0];
1965
+ a !== this.host && (o.stopPropagation(), this.addCallback(o.callback, a, o.subscribe));
1966
+ }, this.onProviderRequest = (o) => {
1967
+ if (o.context !== this.context || (o.contextTarget ?? o.composedPath()[0]) === this.host) return;
1968
1968
  const a = /* @__PURE__ */ new Set();
1969
1969
  for (const [c, { consumerHost: h }] of this.subscriptions) a.has(c) || (a.add(c), h.dispatchEvent(new xi(this.context, h, c, !0)));
1970
- n.stopPropagation();
1971
- }, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (o = (s = this.host).addController) == null || o.call(s, this);
1970
+ o.stopPropagation();
1971
+ }, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (n = (s = this.host).addController) == null || n.call(s, this);
1972
1972
  }
1973
1973
  attachListeners() {
1974
1974
  this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
@@ -1990,34 +1990,34 @@ function Si({ context: r }) {
1990
1990
  }, set(s) {
1991
1991
  return i.get(this).setValue(s), t.set.call(this, s);
1992
1992
  }, init(s) {
1993
- return i.set(this, new ne(this, { context: r, initialValue: s })), s;
1993
+ return i.set(this, new oe(this, { context: r, initialValue: s })), s;
1994
1994
  } };
1995
1995
  {
1996
- t.constructor.addInitializer(((n) => {
1997
- i.set(n, new ne(n, { context: r }));
1996
+ t.constructor.addInitializer(((o) => {
1997
+ i.set(o, new oe(o, { context: r }));
1998
1998
  }));
1999
1999
  const s = Object.getOwnPropertyDescriptor(t, e);
2000
- let o;
2000
+ let n;
2001
2001
  if (s === void 0) {
2002
- const n = /* @__PURE__ */ new WeakMap();
2003
- o = { get() {
2004
- return n.get(this);
2002
+ const o = /* @__PURE__ */ new WeakMap();
2003
+ n = { get() {
2004
+ return o.get(this);
2005
2005
  }, set(a) {
2006
- i.get(this).setValue(a), n.set(this, a);
2006
+ i.get(this).setValue(a), o.set(this, a);
2007
2007
  }, configurable: !0, enumerable: !0 };
2008
2008
  } else {
2009
- const n = s.set;
2010
- o = { ...s, set(a) {
2011
- i.get(this).setValue(a), n == null || n.call(this, a);
2009
+ const o = s.set;
2010
+ n = { ...s, set(a) {
2011
+ i.get(this).setValue(a), o == null || o.call(this, a);
2012
2012
  } };
2013
2013
  }
2014
- return void Object.defineProperty(t, e, o);
2014
+ return void Object.defineProperty(t, e, n);
2015
2015
  }
2016
2016
  };
2017
2017
  }
2018
2018
  var Pi = Object.defineProperty, Ce = (r, t, e, i) => {
2019
- for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
2020
- (n = r[o]) && (s = n(t, e, s) || s);
2019
+ for (var s = void 0, n = r.length - 1, o; n >= 0; n--)
2020
+ (o = r[n]) && (s = o(t, e, s) || s);
2021
2021
  return s && Pi(t, e, s), s;
2022
2022
  };
2023
2023
  const Oi = "application", Nt = class Nt extends A {
@@ -2045,10 +2045,9 @@ const Oi = "application", Nt = class Nt extends A {
2045
2045
  this.applyBranding(), this.applyStyles();
2046
2046
  }
2047
2047
  render() {
2048
- var i, s;
2049
- const t = this.application.settings.components.conversation;
2050
- return ((s = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : s.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === $.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"), R`<div class="widget-container" ${xe(this.wrapperRef)}>
2051
- ${_i(this.nodes, (o) => o)}
2048
+ var e, i, s;
2049
+ return ((s = (i = (e = this.application.settings) == null ? void 0 : e.agentConfig) == null ? void 0 : i.live) == null ? void 0 : s.isThirdPartyWidget) ?? !1 ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === $.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"), R`<div class="widget-container" ${xe(this.wrapperRef)}>
2050
+ ${_i(this.nodes, (n) => n)}
2052
2051
  </div>`;
2053
2052
  }
2054
2053
  };
@@ -2202,19 +2201,19 @@ Nt.styles = U`
2202
2201
  }
2203
2202
  }
2204
2203
 
2205
- :host(.expanded) {
2204
+ :host(.ace-expanded) {
2206
2205
  opacity: 1;
2207
2206
  animation: slideUp 0.3s linear;
2208
2207
  }
2209
2208
 
2210
- :host(.hidden) {
2209
+ :host(.ace-hidden) {
2211
2210
  opacity: 0;
2212
2211
  animation: slideDown 0.3s linear;
2213
2212
  pointer-events: none;
2214
2213
  }
2215
2214
 
2216
- :host(.hidden.embedded),
2217
- :host(.expanded.embedded) {
2215
+ :host(.ace-hidden.embedded),
2216
+ :host(.ace-expanded.embedded) {
2218
2217
  animation: none;
2219
2218
  }
2220
2219
  `;
@@ -2262,8 +2261,8 @@ class Ii {
2262
2261
  // views
2263
2262
  ));
2264
2263
  });
2265
- }, { entry: o, components: n } = t;
2266
- return s(this, this.root, [o], n), this.root;
2264
+ }, { entry: n, components: o } = t;
2265
+ return s(this, this.root, [n], o), this.root;
2267
2266
  }
2268
2267
  createRoot() {
2269
2268
  return typeof window < "u" && (window.customElements.get("ace-wrapper") || window.customElements.define("ace-wrapper", N)), document.createElement("ace-wrapper");
@@ -2324,8 +2323,8 @@ class ki {
2324
2323
  }
2325
2324
  const s = i.category;
2326
2325
  if (this.policy[s]) {
2327
- const o = { value: e, category: s };
2328
- this.storage.setItem(this._prefixKey(t), JSON.stringify(o));
2326
+ const n = { value: e, category: s };
2327
+ this.storage.setItem(this._prefixKey(t), JSON.stringify(n));
2329
2328
  } else
2330
2329
  console.warn(
2331
2330
  `Storage policy does not allow storing items in category: ${s}`
@@ -2382,7 +2381,7 @@ class Ti {
2382
2381
  return this.texts.get(t) || e;
2383
2382
  }
2384
2383
  }
2385
- const Ri = "1.1.123-rc.9";
2384
+ const Ri = "##__WIDGETS_VERSION__##";
2386
2385
  class Mi {
2387
2386
  constructor(t) {
2388
2387
  this.widget = t, this.name = t.name;
@@ -2406,8 +2405,8 @@ class Mi {
2406
2405
  }
2407
2406
  }
2408
2407
  class Ni {
2409
- constructor(t, e, i, s, o) {
2410
- this.id = t, this.name = e, this.container = i, this.settings = s, this.options = o, this.platform = new Ii(), this.texts = new Ti(), this.renderStrategy = $.Inline, this.fullscreen = !1, this.anchor = "BottomRight", this.autoActivate = !1, this.plugins = [], this.componentResolver = new _t(), this.components = [], this.trigger = null, this.api = new Mi(this), this.onMessageReceived = async (a) => {
2408
+ constructor(t, e, i, s, n) {
2409
+ this.id = t, this.name = e, this.container = i, this.settings = s, this.options = n, this.platform = new Ii(), this.texts = new Ti(), this.renderStrategy = $.Inline, this.fullscreen = !1, this.anchor = "BottomRight", this.autoActivate = !1, this.plugins = [], this.componentResolver = new _t(), this.components = [], this.trigger = null, this.api = new Mi(this), this.onMessageReceived = async (a) => {
2411
2410
  var h;
2412
2411
  const c = a.data;
2413
2412
  switch (c.type) {
@@ -2456,7 +2455,7 @@ class Ni {
2456
2455
  return;
2457
2456
  }
2458
2457
  }, this.renderStrategy = this.options.renderStrategy || $.Inline, this.triggerIcon = this.options.triggerIcon;
2459
- const n = {
2458
+ const o = {
2460
2459
  [y.Necessary]: !0,
2461
2460
  [y.Functional]: !0,
2462
2461
  [y.Analytics]: !0
@@ -2464,9 +2463,9 @@ class Ni {
2464
2463
  this.storage = new ki(
2465
2464
  this.id,
2466
2465
  "sessionStorage",
2467
- n,
2466
+ o,
2468
2467
  this.settings.storage
2469
- ), typeof o.autoActivate == "boolean" && (this.autoActivate = o.autoActivate), o.anchor && (this.anchor = o.anchor), this.container.register("$settings", s), this.texts.loadTexts(s.texts || {}), window.addEventListener("message", this.onMessageReceived);
2468
+ ), typeof n.autoActivate == "boolean" && (this.autoActivate = n.autoActivate), n.anchor && (this.anchor = n.anchor), this.container.register("$settings", s), this.texts.loadTexts(s.texts || {}), window.addEventListener("message", this.onMessageReceived);
2470
2469
  }
2471
2470
  async activate() {
2472
2471
  if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(ue.Ready), this.autoActivate) {
@@ -2502,10 +2501,10 @@ class Ni {
2502
2501
  return this.plugins.push(t), this;
2503
2502
  }
2504
2503
  appendToDOM(t = {}) {
2505
- this.root && (this.root.classList.add("expanded"), this.root.classList.remove("hidden"), this.root.removeAttribute("inert"), document.body.appendChild(this.root)), t.ignoreStorage || this.storage.set("open", !0);
2504
+ this.root && (this.root.classList.add("ace-expanded"), this.root.classList.remove("ace-hidden"), this.root.removeAttribute("inert"), document.body.appendChild(this.root)), t.ignoreStorage || this.storage.set("open", !0);
2506
2505
  }
2507
2506
  hide() {
2508
- this.root && (this.root.contains(document.activeElement) && (this.trigger && typeof this.trigger.focus == "function" ? this.trigger.focus() : (document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), document.body.focus())), this.root.classList.add("hidden"), this.root.classList.remove("expanded"), this.root.setAttribute("inert", "")), this.storage.set("open", !1);
2507
+ this.root && (this.root.contains(document.activeElement) && (this.trigger && typeof this.trigger.focus == "function" ? this.trigger.focus() : (document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), document.body.focus())), this.root.classList.add("ace-hidden"), this.root.classList.remove("ace-expanded"), this.root.setAttribute("inert", "")), this.storage.set("open", !1);
2509
2508
  }
2510
2509
  setZIndex(t) {
2511
2510
  this.root && (this.root.style.zIndex = t.toString());
@@ -2567,13 +2566,13 @@ const qi = (r) => new q(r), rt = class rt {
2567
2566
  id: i.id,
2568
2567
  triggers: i.triggers || [],
2569
2568
  apps: (i.widgets || []).map((s) => {
2570
- let o = $.Trigger;
2571
- s.renderStrategy.toLowerCase() === "inline" && (o = $.Inline);
2572
- const n = s.widgetId ? s.widgetId : s.id, a = typeof s.autoActivate == "boolean" ? s.autoActivate : !1, c = typeof s.anchor == "string" ? s.anchor : "BottomRight", h = typeof s.triggerIcon == "string" ? s.triggerIcon : "question";
2569
+ let n = $.Trigger;
2570
+ s.renderStrategy.toLowerCase() === "inline" && (n = $.Inline);
2571
+ const o = s.widgetId ? s.widgetId : s.id, a = typeof s.autoActivate == "boolean" ? s.autoActivate : !1, c = typeof s.anchor == "string" ? s.anchor : "BottomRight", h = typeof s.triggerIcon == "string" ? s.triggerIcon : "question";
2573
2572
  return {
2574
- id: n,
2575
- widgetId: n,
2576
- renderStrategy: o,
2573
+ id: o,
2574
+ widgetId: o,
2575
+ renderStrategy: n,
2577
2576
  autoActivate: a,
2578
2577
  anchor: c,
2579
2578
  triggerIcon: {
@@ -2602,12 +2601,12 @@ class Li {
2602
2601
  var i;
2603
2602
  (((i = this.site.environment) == null ? void 0 : i.applications) || []).forEach((s) => {
2604
2603
  if (s.storage) {
2605
- const o = {
2604
+ const n = {
2606
2605
  [y.Analytics]: t.includes("analytics"),
2607
2606
  [y.Necessary]: t.includes("necessary"),
2608
2607
  [y.Functional]: t.includes("functional")
2609
2608
  };
2610
- s.storage.updatePolicy(o);
2609
+ s.storage.updatePolicy(n);
2611
2610
  }
2612
2611
  });
2613
2612
  }
@@ -2640,13 +2639,13 @@ class Ui {
2640
2639
  (i) => i.autoActivate
2641
2640
  );
2642
2641
  (((e = this.site) == null ? void 0 : e.triggers) || []).filter((i) => i.triggerType === "visit").forEach((i) => {
2643
- const s = window.location.pathname, o = i.condition.outputs || [];
2644
- i.condition.type === "url" && o.forEach((n) => {
2645
- const a = n.action.type === "render_widget";
2646
- if ((n.value === s || n.value === "*") && a) {
2642
+ const s = window.location.pathname, n = i.condition.outputs || [];
2643
+ i.condition.type === "url" && n.forEach((o) => {
2644
+ const a = o.action.type === "render_widget";
2645
+ if ((o.value === s || o.value === "*") && a) {
2647
2646
  let h = { widgetId: "" };
2648
2647
  try {
2649
- h = JSON.parse(n.action.data);
2648
+ h = JSON.parse(o.action.data);
2650
2649
  } catch {
2651
2650
  h = {
2652
2651
  widgetId: ""
@@ -2686,16 +2685,16 @@ class Ui {
2686
2685
  if (!i) {
2687
2686
  const s = this.widgetAPIHandlers.get(t) || [];
2688
2687
  s.push(() => {
2689
- const o = this.applications.find((n) => n.name === t);
2690
- e(o == null ? void 0 : o.api);
2688
+ const n = this.applications.find((o) => o.name === t);
2689
+ e(n == null ? void 0 : n.api);
2691
2690
  }), this.widgetAPIHandlers.set(t, s);
2692
2691
  return;
2693
2692
  }
2694
2693
  e(i == null ? void 0 : i.api);
2695
2694
  }
2696
2695
  registerApp(t, e, i, s) {
2697
- const o = new Dt(e, this), n = new Ni(t, e, o, i, s);
2698
- this.applications.push(n);
2696
+ const n = new Dt(e, this), o = new Ni(t, e, n, i, s);
2697
+ this.applications.push(o);
2699
2698
  }
2700
2699
  registerSite(t) {
2701
2700
  this.site = t;
@@ -2763,8 +2762,8 @@ class ji {
2763
2762
  }
2764
2763
  }
2765
2764
  var Hi = Object.defineProperty, kt = (r, t, e, i) => {
2766
- for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
2767
- (n = r[o]) && (s = n(t, e, s) || s);
2765
+ for (var s = void 0, n = r.length - 1, o; n >= 0; n--)
2766
+ (o = r[n]) && (s = o(t, e, s) || s);
2768
2767
  return s && Hi(t, e, s), s;
2769
2768
  };
2770
2769
  const Lt = class Lt extends A {
@@ -2835,6 +2834,7 @@ export {
2835
2834
  ji as Site,
2836
2835
  y as StorageCategory,
2837
2836
  ki as StorageService,
2837
+ Ti as TextsService,
2838
2838
  b as Trigger,
2839
2839
  $i as WidgetComponent,
2840
2840
  Oi as applicationContext,