@telia-ace/widget-components-area-flamingo 1.1.33-rc.0 → 1.1.33-rc.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,8 +3,8 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const I = globalThis, tt = I.ShadowRoot && (I.ShadyCSS === void 0 || I.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, et = Symbol(), ht = /* @__PURE__ */ new WeakMap();
7
- let Ct = class {
6
+ const z = globalThis, tt = z.ShadowRoot && (z.ShadyCSS === void 0 || z.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, et = Symbol(), lt = /* @__PURE__ */ new WeakMap();
7
+ let Et = class {
8
8
  constructor(t, e, s) {
9
9
  if (this._$cssResult$ = !0, s !== et)
10
10
  throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
@@ -15,7 +15,7 @@ let Ct = class {
15
15
  const e = this.t;
16
16
  if (tt && t === void 0) {
17
17
  const s = e !== void 0 && e.length === 1;
18
- s && (t = ht.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && ht.set(e, t));
18
+ s && (t = lt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && lt.set(e, t));
19
19
  }
20
20
  return t;
21
21
  }
@@ -23,7 +23,7 @@ let Ct = class {
23
23
  return this.cssText;
24
24
  }
25
25
  };
26
- const zt = (r) => new Ct(typeof r == "string" ? r : r + "", void 0, et), P = (r, ...t) => {
26
+ const zt = (r) => new Et(typeof r == "string" ? r : r + "", void 0, et), C = (r, ...t) => {
27
27
  const e = r.length === 1 ? r[0] : t.reduce((s, i, o) => s + ((n) => {
28
28
  if (n._$cssResult$ === !0)
29
29
  return n.cssText;
@@ -31,16 +31,16 @@ const zt = (r) => new Ct(typeof r == "string" ? r : r + "", void 0, et), P = (r,
31
31
  return n;
32
32
  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.");
33
33
  })(i) + r[o + 1], r[0]);
34
- return new Ct(e, r, et);
35
- }, Bt = (r, t) => {
34
+ return new Et(e, r, et);
35
+ }, It = (r, t) => {
36
36
  if (tt)
37
37
  r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
38
38
  else
39
39
  for (const e of t) {
40
- const s = document.createElement("style"), i = I.litNonce;
40
+ const s = document.createElement("style"), i = z.litNonce;
41
41
  i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, r.appendChild(s);
42
42
  }
43
- }, lt = tt ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
43
+ }, ct = tt ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
44
44
  let e = "";
45
45
  for (const s of t.cssRules)
46
46
  e += s.cssText;
@@ -51,10 +51,10 @@ const zt = (r) => new Ct(typeof r == "string" ? r : r + "", void 0, et), P = (r,
51
51
  * Copyright 2017 Google LLC
52
52
  * SPDX-License-Identifier: BSD-3-Clause
53
53
  */
54
- const { is: It, defineProperty: Ft, getOwnPropertyDescriptor: Wt, getOwnPropertyNames: Gt, getOwnPropertySymbols: Vt, getPrototypeOf: qt } = Object, y = globalThis, ct = y.trustedTypes, Yt = ct ? ct.emptyScript : "", q = y.reactiveElementPolyfillSupport, k = (r, t) => r, F = { toAttribute(r, t) {
54
+ const { is: Ft, defineProperty: Wt, getOwnPropertyDescriptor: Gt, getOwnPropertyNames: Vt, getOwnPropertySymbols: qt, getPrototypeOf: Yt } = Object, v = globalThis, dt = v.trustedTypes, Kt = dt ? dt.emptyScript : "", q = v.reactiveElementPolyfillSupport, T = (r, t) => r, I = { toAttribute(r, t) {
55
55
  switch (t) {
56
56
  case Boolean:
57
- r = r ? Yt : null;
57
+ r = r ? Kt : null;
58
58
  break;
59
59
  case Object:
60
60
  case Array:
@@ -79,23 +79,23 @@ const { is: It, defineProperty: Ft, getOwnPropertyDescriptor: Wt, getOwnProperty
79
79
  }
80
80
  }
81
81
  return e;
82
- } }, st = (r, t) => !It(r, t), dt = { attribute: !0, type: String, converter: F, reflect: !1, hasChanged: st };
83
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), y.litPropertyMetadata ?? (y.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
84
- let E = class extends HTMLElement {
82
+ } }, st = (r, t) => !Ft(r, t), pt = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged: st };
83
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), v.litPropertyMetadata ?? (v.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
84
+ let S = class extends HTMLElement {
85
85
  static addInitializer(t) {
86
86
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
87
87
  }
88
88
  static get observedAttributes() {
89
89
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
90
90
  }
91
- static createProperty(t, e = dt) {
91
+ static createProperty(t, e = pt) {
92
92
  if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
93
93
  const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
94
- i !== void 0 && Ft(this.prototype, t, i);
94
+ i !== void 0 && Wt(this.prototype, t, i);
95
95
  }
96
96
  }
97
97
  static getPropertyDescriptor(t, e, s) {
98
- const { get: i, set: o } = Wt(this.prototype, t) ?? { get() {
98
+ const { get: i, set: o } = Gt(this.prototype, t) ?? { get() {
99
99
  return this[e];
100
100
  }, set(n) {
101
101
  this[e] = n;
@@ -108,19 +108,19 @@ let E = class extends HTMLElement {
108
108
  }, configurable: !0, enumerable: !0 };
109
109
  }
110
110
  static getPropertyOptions(t) {
111
- return this.elementProperties.get(t) ?? dt;
111
+ return this.elementProperties.get(t) ?? pt;
112
112
  }
113
113
  static _$Ei() {
114
- if (this.hasOwnProperty(k("elementProperties")))
114
+ if (this.hasOwnProperty(T("elementProperties")))
115
115
  return;
116
- const t = qt(this);
116
+ const t = Yt(this);
117
117
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
118
118
  }
119
119
  static finalize() {
120
- if (this.hasOwnProperty(k("finalized")))
120
+ if (this.hasOwnProperty(T("finalized")))
121
121
  return;
122
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(k("properties"))) {
123
- const e = this.properties, s = [...Gt(e), ...Vt(e)];
122
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(T("properties"))) {
123
+ const e = this.properties, s = [...Vt(e), ...qt(e)];
124
124
  for (const i of s)
125
125
  this.createProperty(i, e[i]);
126
126
  }
@@ -143,9 +143,9 @@ let E = class extends HTMLElement {
143
143
  if (Array.isArray(t)) {
144
144
  const s = new Set(t.flat(1 / 0).reverse());
145
145
  for (const i of s)
146
- e.unshift(lt(i));
146
+ e.unshift(ct(i));
147
147
  } else
148
- t !== void 0 && e.push(lt(t));
148
+ t !== void 0 && e.push(ct(t));
149
149
  return e;
150
150
  }
151
151
  static _$Eu(t, e) {
@@ -175,7 +175,7 @@ let E = class extends HTMLElement {
175
175
  }
176
176
  createRenderRoot() {
177
177
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
178
- return Bt(t, this.constructor.elementStyles), t;
178
+ return It(t, this.constructor.elementStyles), t;
179
179
  }
180
180
  connectedCallback() {
181
181
  var t;
@@ -200,7 +200,7 @@ let E = class extends HTMLElement {
200
200
  var o;
201
201
  const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
202
202
  if (i !== void 0 && s.reflect === !0) {
203
- const n = (((o = s.converter) == null ? void 0 : o.toAttribute) !== void 0 ? s.converter : F).toAttribute(e, s.type);
203
+ const n = (((o = s.converter) == null ? void 0 : o.toAttribute) !== void 0 ? s.converter : I).toAttribute(e, s.type);
204
204
  this._$Em = t, n == null ? this.removeAttribute(i) : this.setAttribute(i, n), this._$Em = null;
205
205
  }
206
206
  }
@@ -208,7 +208,7 @@ let E = class extends HTMLElement {
208
208
  var o;
209
209
  const s = this.constructor, i = s._$Eh.get(t);
210
210
  if (i !== void 0 && this._$Em !== i) {
211
- const n = s.getPropertyOptions(i), h = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((o = n.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? n.converter : F;
211
+ const n = s.getPropertyOptions(i), h = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((o = n.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? n.converter : I;
212
212
  this._$Em = i, this[i] = h.fromAttribute(e, n.type), this._$Em = null;
213
213
  }
214
214
  }
@@ -292,63 +292,63 @@ let E = class extends HTMLElement {
292
292
  firstUpdated(t) {
293
293
  }
294
294
  };
295
- E.elementStyles = [], E.shadowRootOptions = { mode: "open" }, E[k("elementProperties")] = /* @__PURE__ */ new Map(), E[k("finalized")] = /* @__PURE__ */ new Map(), q == null || q({ ReactiveElement: E }), (y.reactiveElementVersions ?? (y.reactiveElementVersions = [])).push("2.0.1");
295
+ S.elementStyles = [], S.shadowRootOptions = { mode: "open" }, S[T("elementProperties")] = /* @__PURE__ */ new Map(), S[T("finalized")] = /* @__PURE__ */ new Map(), q == null || q({ ReactiveElement: S }), (v.reactiveElementVersions ?? (v.reactiveElementVersions = [])).push("2.0.1");
296
296
  /**
297
297
  * @license
298
298
  * Copyright 2017 Google LLC
299
299
  * SPDX-License-Identifier: BSD-3-Clause
300
300
  */
301
- const N = globalThis, W = N.trustedTypes, pt = W ? W.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Et = "$lit$", $ = `lit$${(Math.random() + "").slice(9)}$`, St = "?" + $, Kt = `<${St}>`, x = document, R = () => x.createComment(""), M = (r) => r === null || typeof r != "object" && typeof r != "function", Pt = Array.isArray, Xt = (r) => Pt(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", Y = `[
302
- \f\r]`, T = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ut = /-->/g, gt = />/g, _ = RegExp(`>|${Y}(?:([^\\s"'>=/]+)(${Y}*=${Y}*(?:[^
303
- \f\r"'\`<>=]|("|')|))|$)`, "g"), ft = /'/g, mt = /"/g, Ot = /^(?:script|style|textarea|title)$/i, Jt = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), A = Jt(1), C = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), $t = /* @__PURE__ */ new WeakMap(), w = x.createTreeWalker(x, 129);
304
- function Tt(r, t) {
301
+ const N = globalThis, F = N.trustedTypes, ut = F ? F.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, St = "$lit$", $ = `lit$${(Math.random() + "").slice(9)}$`, Pt = "?" + $, Xt = `<${Pt}>`, w = document, k = () => w.createComment(""), R = (r) => r === null || typeof r != "object" && typeof r != "function", Ot = Array.isArray, Jt = (r) => Ot(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", Y = `[
302
+ \f\r]`, O = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, gt = /-->/g, ft = />/g, y = RegExp(`>|${Y}(?:([^\\s"'>=/]+)(${Y}*=${Y}*(?:[^
303
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), mt = /'/g, $t = /"/g, Tt = /^(?:script|style|textarea|title)$/i, Zt = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), b = Zt(1), x = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), vt = /* @__PURE__ */ new WeakMap(), A = w.createTreeWalker(w, 129);
304
+ function Nt(r, t) {
305
305
  if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
306
306
  throw Error("invalid template strings array");
307
- return pt !== void 0 ? pt.createHTML(t) : t;
307
+ return ut !== void 0 ? ut.createHTML(t) : t;
308
308
  }
309
- const Zt = (r, t) => {
309
+ const Qt = (r, t) => {
310
310
  const e = r.length - 1, s = [];
311
- let i, o = t === 2 ? "<svg>" : "", n = T;
311
+ let i, o = t === 2 ? "<svg>" : "", n = O;
312
312
  for (let h = 0; h < e; h++) {
313
313
  const a = r[h];
314
314
  let l, c, d = -1, u = 0;
315
315
  for (; u < a.length && (n.lastIndex = u, c = n.exec(a), c !== null); )
316
- u = n.lastIndex, n === T ? c[1] === "!--" ? n = ut : c[1] !== void 0 ? n = gt : c[2] !== void 0 ? (Ot.test(c[2]) && (i = RegExp("</" + c[2], "g")), n = _) : c[3] !== void 0 && (n = _) : n === _ ? c[0] === ">" ? (n = i ?? T, d = -1) : c[1] === void 0 ? d = -2 : (d = n.lastIndex - c[2].length, l = c[1], n = c[3] === void 0 ? _ : c[3] === '"' ? mt : ft) : n === mt || n === ft ? n = _ : n === ut || n === gt ? n = T : (n = _, i = void 0);
317
- const m = n === _ && r[h + 1].startsWith("/>") ? " " : "";
318
- o += n === T ? a + Kt : d >= 0 ? (s.push(l), a.slice(0, d) + Et + a.slice(d) + $ + m) : a + $ + (d === -2 ? h : m);
316
+ u = n.lastIndex, n === O ? c[1] === "!--" ? n = gt : c[1] !== void 0 ? n = ft : c[2] !== void 0 ? (Tt.test(c[2]) && (i = RegExp("</" + c[2], "g")), n = y) : c[3] !== void 0 && (n = y) : n === y ? c[0] === ">" ? (n = i ?? O, d = -1) : c[1] === void 0 ? d = -2 : (d = n.lastIndex - c[2].length, l = c[1], n = c[3] === void 0 ? y : c[3] === '"' ? $t : mt) : n === $t || n === mt ? n = y : n === gt || n === ft ? n = O : (n = y, i = void 0);
317
+ const m = n === y && r[h + 1].startsWith("/>") ? " " : "";
318
+ o += n === O ? a + Xt : d >= 0 ? (s.push(l), a.slice(0, d) + St + a.slice(d) + $ + m) : a + $ + (d === -2 ? h : m);
319
319
  }
320
- return [Tt(r, o + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
320
+ return [Nt(r, o + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
321
321
  };
322
- class H {
322
+ class M {
323
323
  constructor({ strings: t, _$litType$: e }, s) {
324
324
  let i;
325
325
  this.parts = [];
326
326
  let o = 0, n = 0;
327
- const h = t.length - 1, a = this.parts, [l, c] = Zt(t, e);
328
- if (this.el = H.createElement(l, s), w.currentNode = this.el.content, e === 2) {
327
+ const h = t.length - 1, a = this.parts, [l, c] = Qt(t, e);
328
+ if (this.el = M.createElement(l, s), A.currentNode = this.el.content, e === 2) {
329
329
  const d = this.el.content.firstChild;
330
330
  d.replaceWith(...d.childNodes);
331
331
  }
332
- for (; (i = w.nextNode()) !== null && a.length < h; ) {
332
+ for (; (i = A.nextNode()) !== null && a.length < h; ) {
333
333
  if (i.nodeType === 1) {
334
334
  if (i.hasAttributes())
335
335
  for (const d of i.getAttributeNames())
336
- if (d.endsWith(Et)) {
337
- const u = c[n++], m = i.getAttribute(d).split($), z = /([.?@])?(.*)/.exec(u);
338
- a.push({ type: 1, index: o, name: z[2], strings: m, ctor: z[1] === "." ? te : z[1] === "?" ? ee : z[1] === "@" ? se : V }), i.removeAttribute(d);
336
+ if (d.endsWith(St)) {
337
+ const u = c[n++], m = i.getAttribute(d).split($), D = /([.?@])?(.*)/.exec(u);
338
+ a.push({ type: 1, index: o, name: D[2], strings: m, ctor: D[1] === "." ? ee : D[1] === "?" ? se : D[1] === "@" ? ie : G }), i.removeAttribute(d);
339
339
  } else
340
340
  d.startsWith($) && (a.push({ type: 6, index: o }), i.removeAttribute(d));
341
- if (Ot.test(i.tagName)) {
341
+ if (Tt.test(i.tagName)) {
342
342
  const d = i.textContent.split($), u = d.length - 1;
343
343
  if (u > 0) {
344
- i.textContent = W ? W.emptyScript : "";
344
+ i.textContent = F ? F.emptyScript : "";
345
345
  for (let m = 0; m < u; m++)
346
- i.append(d[m], R()), w.nextNode(), a.push({ type: 2, index: ++o });
347
- i.append(d[u], R());
346
+ i.append(d[m], k()), A.nextNode(), a.push({ type: 2, index: ++o });
347
+ i.append(d[u], k());
348
348
  }
349
349
  }
350
350
  } else if (i.nodeType === 8)
351
- if (i.data === St)
351
+ if (i.data === Pt)
352
352
  a.push({ type: 2, index: o });
353
353
  else {
354
354
  let d = -1;
@@ -359,19 +359,19 @@ class H {
359
359
  }
360
360
  }
361
361
  static createElement(t, e) {
362
- const s = x.createElement("template");
362
+ const s = w.createElement("template");
363
363
  return s.innerHTML = t, s;
364
364
  }
365
365
  }
366
- function S(r, t, e = r, s) {
366
+ function P(r, t, e = r, s) {
367
367
  var n, h;
368
- if (t === C)
368
+ if (t === x)
369
369
  return t;
370
370
  let i = s !== void 0 ? (n = e._$Co) == null ? void 0 : n[s] : e._$Cl;
371
- const o = M(t) ? void 0 : t._$litDirective$;
372
- return (i == null ? void 0 : i.constructor) !== o && ((h = i == null ? void 0 : i._$AO) == null || h.call(i, !1), o === void 0 ? i = void 0 : (i = new o(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = S(r, i._$AS(r, t.values), i, s)), t;
371
+ const o = R(t) ? void 0 : t._$litDirective$;
372
+ return (i == null ? void 0 : i.constructor) !== o && ((h = i == null ? void 0 : i._$AO) == null || h.call(i, !1), o === void 0 ? i = void 0 : (i = new o(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = P(r, i._$AS(r, t.values), i, s)), t;
373
373
  }
374
- class Qt {
374
+ class te {
375
375
  constructor(t, e) {
376
376
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
377
377
  }
@@ -382,17 +382,17 @@ class Qt {
382
382
  return this._$AM._$AU;
383
383
  }
384
384
  u(t) {
385
- const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? x).importNode(e, !0);
386
- w.currentNode = i;
387
- let o = w.nextNode(), n = 0, h = 0, a = s[0];
385
+ const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? w).importNode(e, !0);
386
+ A.currentNode = i;
387
+ let o = A.nextNode(), n = 0, h = 0, a = s[0];
388
388
  for (; a !== void 0; ) {
389
389
  if (n === a.index) {
390
390
  let l;
391
- a.type === 2 ? l = new j(o, o.nextSibling, this, t) : a.type === 1 ? l = new a.ctor(o, a.name, a.strings, this, t) : a.type === 6 && (l = new ie(o, this, t)), this._$AV.push(l), a = s[++h];
391
+ a.type === 2 ? l = new H(o, o.nextSibling, this, t) : a.type === 1 ? l = new a.ctor(o, a.name, a.strings, this, t) : a.type === 6 && (l = new re(o, this, t)), this._$AV.push(l), a = s[++h];
392
392
  }
393
- n !== (a == null ? void 0 : a.index) && (o = w.nextNode(), n++);
393
+ n !== (a == null ? void 0 : a.index) && (o = A.nextNode(), n++);
394
394
  }
395
- return w.currentNode = x, i;
395
+ return A.currentNode = w, i;
396
396
  }
397
397
  p(t) {
398
398
  let e = 0;
@@ -400,7 +400,7 @@ class Qt {
400
400
  s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
401
401
  }
402
402
  }
403
- class j {
403
+ class H {
404
404
  get _$AU() {
405
405
  var t;
406
406
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
@@ -420,7 +420,7 @@ class j {
420
420
  return this._$AB;
421
421
  }
422
422
  _$AI(t, e = this) {
423
- t = S(this, t, e), M(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== C && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Xt(t) ? this.T(t) : this._(t);
423
+ t = P(this, t, e), R(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== x && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Jt(t) ? this.T(t) : this._(t);
424
424
  }
425
425
  k(t) {
426
426
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -429,28 +429,28 @@ class j {
429
429
  this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
430
430
  }
431
431
  _(t) {
432
- this._$AH !== p && M(this._$AH) ? this._$AA.nextSibling.data = t : this.$(x.createTextNode(t)), this._$AH = t;
432
+ this._$AH !== p && R(this._$AH) ? this._$AA.nextSibling.data = t : this.$(w.createTextNode(t)), this._$AH = t;
433
433
  }
434
434
  g(t) {
435
435
  var o;
436
- const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = H.createElement(Tt(s.h, s.h[0]), this.options)), s);
436
+ const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = M.createElement(Nt(s.h, s.h[0]), this.options)), s);
437
437
  if (((o = this._$AH) == null ? void 0 : o._$AD) === i)
438
438
  this._$AH.p(e);
439
439
  else {
440
- const n = new Qt(i, this), h = n.u(this.options);
440
+ const n = new te(i, this), h = n.u(this.options);
441
441
  n.p(e), this.$(h), this._$AH = n;
442
442
  }
443
443
  }
444
444
  _$AC(t) {
445
- let e = $t.get(t.strings);
446
- return e === void 0 && $t.set(t.strings, e = new H(t)), e;
445
+ let e = vt.get(t.strings);
446
+ return e === void 0 && vt.set(t.strings, e = new M(t)), e;
447
447
  }
448
448
  T(t) {
449
- Pt(this._$AH) || (this._$AH = [], this._$AR());
449
+ Ot(this._$AH) || (this._$AH = [], this._$AR());
450
450
  const e = this._$AH;
451
451
  let s, i = 0;
452
452
  for (const o of t)
453
- i === e.length ? e.push(s = new j(this.k(R()), this.k(R()), this, this.options)) : s = e[i], s._$AI(o), i++;
453
+ i === e.length ? e.push(s = new H(this.k(k()), this.k(k()), this, this.options)) : s = e[i], s._$AI(o), i++;
454
454
  i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
455
455
  }
456
456
  _$AR(t = this._$AA.nextSibling, e) {
@@ -465,7 +465,7 @@ class j {
465
465
  this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
466
466
  }
467
467
  }
468
- class V {
468
+ class G {
469
469
  get tagName() {
470
470
  return this.element.tagName;
471
471
  }
@@ -479,12 +479,12 @@ class V {
479
479
  const o = this.strings;
480
480
  let n = !1;
481
481
  if (o === void 0)
482
- t = S(this, t, e, 0), n = !M(t) || t !== this._$AH && t !== C, n && (this._$AH = t);
482
+ t = P(this, t, e, 0), n = !R(t) || t !== this._$AH && t !== x, n && (this._$AH = t);
483
483
  else {
484
484
  const h = t;
485
485
  let a, l;
486
486
  for (t = o[0], a = 0; a < o.length - 1; a++)
487
- l = S(this, h[s + a], e, a), l === C && (l = this._$AH[a]), n || (n = !M(l) || l !== this._$AH[a]), l === p ? t = p : t !== p && (t += (l ?? "") + o[a + 1]), this._$AH[a] = l;
487
+ l = P(this, h[s + a], e, a), l === x && (l = this._$AH[a]), n || (n = !R(l) || l !== this._$AH[a]), l === p ? t = p : t !== p && (t += (l ?? "") + o[a + 1]), this._$AH[a] = l;
488
488
  }
489
489
  n && !i && this.O(t);
490
490
  }
@@ -492,7 +492,7 @@ class V {
492
492
  t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
493
493
  }
494
494
  }
495
- class te extends V {
495
+ class ee extends G {
496
496
  constructor() {
497
497
  super(...arguments), this.type = 3;
498
498
  }
@@ -500,7 +500,7 @@ class te extends V {
500
500
  this.element[this.name] = t === p ? void 0 : t;
501
501
  }
502
502
  }
503
- class ee extends V {
503
+ class se extends G {
504
504
  constructor() {
505
505
  super(...arguments), this.type = 4;
506
506
  }
@@ -508,12 +508,12 @@ class ee extends V {
508
508
  this.element.toggleAttribute(this.name, !!t && t !== p);
509
509
  }
510
510
  }
511
- class se extends V {
511
+ class ie extends G {
512
512
  constructor(t, e, s, i, o) {
513
513
  super(t, e, s, i, o), this.type = 5;
514
514
  }
515
515
  _$AI(t, e = this) {
516
- if ((t = S(this, t, e, 0) ?? p) === C)
516
+ if ((t = P(this, t, e, 0) ?? p) === x)
517
517
  return;
518
518
  const s = this._$AH, i = t === p && s !== p || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== p && (s === p || i);
519
519
  i && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
@@ -523,7 +523,7 @@ class se extends V {
523
523
  typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
524
524
  }
525
525
  }
526
- class ie {
526
+ class re {
527
527
  constructor(t, e, s) {
528
528
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
529
529
  }
@@ -531,17 +531,17 @@ class ie {
531
531
  return this._$AM._$AU;
532
532
  }
533
533
  _$AI(t) {
534
- S(this, t);
534
+ P(this, t);
535
535
  }
536
536
  }
537
537
  const K = N.litHtmlPolyfillSupport;
538
- K == null || K(H, j), (N.litHtmlVersions ?? (N.litHtmlVersions = [])).push("3.0.2");
539
- const re = (r, t, e) => {
538
+ K == null || K(M, H), (N.litHtmlVersions ?? (N.litHtmlVersions = [])).push("3.0.2");
539
+ const oe = (r, t, e) => {
540
540
  const s = (e == null ? void 0 : e.renderBefore) ?? t;
541
541
  let i = s._$litPart$;
542
542
  if (i === void 0) {
543
543
  const o = (e == null ? void 0 : e.renderBefore) ?? null;
544
- s._$litPart$ = i = new j(t.insertBefore(R(), o), o, void 0, e ?? {});
544
+ s._$litPart$ = i = new H(t.insertBefore(k(), o), o, void 0, e ?? {});
545
545
  }
546
546
  return i._$AI(r), i;
547
547
  };
@@ -550,7 +550,7 @@ const re = (r, t, e) => {
550
550
  * Copyright 2017 Google LLC
551
551
  * SPDX-License-Identifier: BSD-3-Clause
552
552
  */
553
- let f = class extends E {
553
+ let f = class extends S {
554
554
  constructor() {
555
555
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
556
556
  }
@@ -561,7 +561,7 @@ let f = class extends E {
561
561
  }
562
562
  update(t) {
563
563
  const e = this.render();
564
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = re(e, this.renderRoot, this.renderOptions);
564
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = oe(e, this.renderRoot, this.renderOptions);
565
565
  }
566
566
  connectedCallback() {
567
567
  var t;
@@ -572,11 +572,11 @@ let f = class extends E {
572
572
  super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
573
573
  }
574
574
  render() {
575
- return C;
575
+ return x;
576
576
  }
577
577
  };
578
- var xt;
579
- f._$litElement$ = !0, f.finalized = !0, (xt = globalThis.litElementHydrateSupport) == null || xt.call(globalThis, { LitElement: f });
578
+ var Ct;
579
+ f._$litElement$ = !0, f.finalized = !0, (Ct = globalThis.litElementHydrateSupport) == null || Ct.call(globalThis, { LitElement: f });
580
580
  const X = globalThis.litElementPolyfillSupport;
581
581
  X == null || X({ LitElement: f });
582
582
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.1");
@@ -585,7 +585,7 @@ X == null || X({ LitElement: f });
585
585
  * Copyright 2021 Google LLC
586
586
  * SPDX-License-Identifier: BSD-3-Clause
587
587
  */
588
- function* kt(r, t) {
588
+ function* Ut(r, t) {
589
589
  if (r !== void 0) {
590
590
  let e = 0;
591
591
  for (const s of r)
@@ -597,8 +597,87 @@ function* kt(r, t) {
597
597
  * Copyright 2017 Google LLC
598
598
  * SPDX-License-Identifier: BSD-3-Clause
599
599
  */
600
- const it = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, rt = (r) => (...t) => ({ _$litDirective$: r, values: t });
601
- let Nt = class {
600
+ const ne = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged: st }, ae = (r = ne, t, e) => {
601
+ const { kind: s, metadata: i } = e;
602
+ let o = globalThis.litPropertyMetadata.get(i);
603
+ if (o === void 0 && globalThis.litPropertyMetadata.set(i, o = /* @__PURE__ */ new Map()), o.set(e.name, r), s === "accessor") {
604
+ const { name: n } = e;
605
+ return { set(h) {
606
+ const a = t.get.call(this);
607
+ t.set.call(this, h), this.requestUpdate(n, a, r);
608
+ }, init(h) {
609
+ return h !== void 0 && this.C(n, void 0, r), h;
610
+ } };
611
+ }
612
+ if (s === "setter") {
613
+ const { name: n } = e;
614
+ return function(h) {
615
+ const a = this[n];
616
+ t.call(this, h), this.requestUpdate(n, a, r);
617
+ };
618
+ }
619
+ throw Error("Unsupported decorator location: " + s);
620
+ };
621
+ function g(r) {
622
+ return (t, e) => typeof e == "object" ? ae(r, t, e) : ((s, i, o) => {
623
+ const n = i.hasOwnProperty(o);
624
+ return i.constructor.createProperty(o, n ? { ...s, wrapped: !0 } : s), n ? Object.getOwnPropertyDescriptor(i, o) : void 0;
625
+ })(r, t, e);
626
+ }
627
+ /**
628
+ * @license
629
+ * Copyright 2017 Google LLC
630
+ * SPDX-License-Identifier: BSD-3-Clause
631
+ */
632
+ function L(r) {
633
+ return g({ ...r, state: !0, attribute: !1 });
634
+ }
635
+ var he = Object.defineProperty, le = Object.getOwnPropertyDescriptor, ce = (r, t, e, s) => {
636
+ for (var i = s > 1 ? void 0 : s ? le(t, e) : t, o = r.length - 1, n; o >= 0; o--)
637
+ (n = r[o]) && (i = (s ? n(t, e, i) : n(i)) || i);
638
+ return s && i && he(t, e, i), i;
639
+ };
640
+ class it extends f {
641
+ constructor() {
642
+ super(...arguments), this.anchor = "BottomRight";
643
+ }
644
+ appendChild(t) {
645
+ var e;
646
+ return (e = this.shadowRoot) == null || e.appendChild(t), t;
647
+ }
648
+ render() {
649
+ return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), p;
650
+ }
651
+ }
652
+ it.styles = [
653
+ C`
654
+ :host {
655
+ position: fixed;
656
+ display: flex;
657
+ align-items: center;
658
+ gap: 1rem;
659
+ }
660
+
661
+ :host(.bottom-right) {
662
+ bottom: 20px;
663
+ right: 20px;
664
+ }
665
+ :host(.bottom-left) {
666
+ bottom: 20px;
667
+ left: 20px;
668
+ }
669
+ `
670
+ ];
671
+ ce([
672
+ g({ attribute: !0 })
673
+ ], it.prototype, "anchor", 2);
674
+ /**
675
+ * @license
676
+ * Copyright 2017 Google LLC
677
+ * SPDX-License-Identifier: BSD-3-Clause
678
+ */
679
+ const rt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, ot = (r) => (...t) => ({ _$litDirective$: r, values: t });
680
+ let kt = class {
602
681
  constructor(t) {
603
682
  }
604
683
  get _$AU() {
@@ -619,7 +698,7 @@ let Nt = class {
619
698
  * Copyright 2020 Google LLC
620
699
  * SPDX-License-Identifier: BSD-3-Clause
621
700
  */
622
- const oe = (r) => r.strings === void 0;
701
+ const de = (r) => r.strings === void 0;
623
702
  /**
624
703
  * @license
625
704
  * Copyright 2017 Google LLC
@@ -633,54 +712,54 @@ const U = (r, t) => {
633
712
  for (const i of e)
634
713
  (s = i._$AO) == null || s.call(i, t, !1), U(i, t);
635
714
  return !0;
636
- }, G = (r) => {
715
+ }, W = (r) => {
637
716
  let t, e;
638
717
  do {
639
718
  if ((t = r._$AM) === void 0)
640
719
  break;
641
720
  e = t._$AN, e.delete(r), r = t;
642
721
  } while ((e == null ? void 0 : e.size) === 0);
643
- }, Ut = (r) => {
722
+ }, Rt = (r) => {
644
723
  for (let t; t = r._$AM; r = t) {
645
724
  let e = t._$AN;
646
725
  if (e === void 0)
647
726
  t._$AN = e = /* @__PURE__ */ new Set();
648
727
  else if (e.has(r))
649
728
  break;
650
- e.add(r), he(t);
729
+ e.add(r), ge(t);
651
730
  }
652
731
  };
653
- function ne(r) {
654
- this._$AN !== void 0 ? (G(this), this._$AM = r, Ut(this)) : this._$AM = r;
732
+ function pe(r) {
733
+ this._$AN !== void 0 ? (W(this), this._$AM = r, Rt(this)) : this._$AM = r;
655
734
  }
656
- function ae(r, t = !1, e = 0) {
735
+ function ue(r, t = !1, e = 0) {
657
736
  const s = this._$AH, i = this._$AN;
658
737
  if (i !== void 0 && i.size !== 0)
659
738
  if (t)
660
739
  if (Array.isArray(s))
661
740
  for (let o = e; o < s.length; o++)
662
- U(s[o], !1), G(s[o]);
741
+ U(s[o], !1), W(s[o]);
663
742
  else
664
- s != null && (U(s, !1), G(s));
743
+ s != null && (U(s, !1), W(s));
665
744
  else
666
745
  U(this, r);
667
746
  }
668
- const he = (r) => {
669
- r.type == it.CHILD && (r._$AP ?? (r._$AP = ae), r._$AQ ?? (r._$AQ = ne));
747
+ const ge = (r) => {
748
+ r.type == rt.CHILD && (r._$AP ?? (r._$AP = ue), r._$AQ ?? (r._$AQ = pe));
670
749
  };
671
- class Rt extends Nt {
750
+ class Mt extends kt {
672
751
  constructor() {
673
752
  super(...arguments), this._$AN = void 0;
674
753
  }
675
754
  _$AT(t, e, s) {
676
- super._$AT(t, e, s), Ut(this), this.isConnected = t._$AU;
755
+ super._$AT(t, e, s), Rt(this), this.isConnected = t._$AU;
677
756
  }
678
757
  _$AO(t, e = !0) {
679
758
  var s, i;
680
- t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (i = this.disconnected) == null || i.call(this)), e && (U(this, t), G(this));
759
+ t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (i = this.disconnected) == null || i.call(this)), e && (U(this, t), W(this));
681
760
  }
682
761
  setValue(t) {
683
- if (oe(this._$Ct))
762
+ if (de(this._$Ct))
684
763
  this._$Ct._$AI(t, this);
685
764
  else {
686
765
  const e = [...this._$Ct._$AH];
@@ -692,34 +771,34 @@ class Rt extends Nt {
692
771
  reconnected() {
693
772
  }
694
773
  }
695
- const le = /* @__PURE__ */ new WeakMap();
774
+ const fe = /* @__PURE__ */ new WeakMap();
696
775
  let yt = 0;
697
- const J = /* @__PURE__ */ new Map(), vt = /* @__PURE__ */ new WeakSet(), _t = () => new Promise((r) => requestAnimationFrame(r)), ce = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], bt = (r, t) => {
776
+ const J = /* @__PURE__ */ new Map(), _t = /* @__PURE__ */ new WeakSet(), bt = () => new Promise((r) => requestAnimationFrame(r)), me = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], At = (r, t) => {
698
777
  const e = r - t;
699
778
  return e === 0 ? void 0 : e;
700
- }, At = (r, t) => {
779
+ }, wt = (r, t) => {
701
780
  const e = r / t;
702
781
  return e === 1 ? void 0 : e;
703
782
  }, Z = { left: (r, t) => {
704
- const e = bt(r, t);
783
+ const e = At(r, t);
705
784
  return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
706
785
  }, top: (r, t) => {
707
- const e = bt(r, t);
786
+ const e = At(r, t);
708
787
  return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
709
788
  }, width: (r, t) => {
710
789
  let e;
711
790
  t === 0 && (t = 1, e = { width: "1px" });
712
- const s = At(r, t);
791
+ const s = wt(r, t);
713
792
  return { value: s, overrideFrom: e, transform: s == null || isNaN(s) ? void 0 : `scaleX(${s})` };
714
793
  }, height: (r, t) => {
715
794
  let e;
716
795
  t === 0 && (t = 1, e = { height: "1px" });
717
- const s = At(r, t);
796
+ const s = wt(r, t);
718
797
  return { value: s, overrideFrom: e, transform: s == null || isNaN(s) ? void 0 : `scaleY(${s})` };
719
- } }, de = { duration: 333, easing: "ease-in-out" }, pe = ["left", "top", "width", "height", "opacity", "color", "background"], wt = /* @__PURE__ */ new WeakMap();
720
- class ue extends Rt {
798
+ } }, $e = { duration: 333, easing: "ease-in-out" }, ve = ["left", "top", "width", "height", "opacity", "color", "background"], xt = /* @__PURE__ */ new WeakMap();
799
+ class ye extends Mt {
721
800
  constructor(t) {
722
- if (super(t), this.t = null, this.i = null, this.o = !0, this.shouldLog = !1, t.type === it.CHILD)
801
+ if (super(t), this.t = null, this.i = null, this.o = !0, this.shouldLog = !1, t.type === rt.CHILD)
723
802
  throw Error("The `animate` directive must be used in attribute position.");
724
803
  this.createFinished();
725
804
  }
@@ -737,7 +816,7 @@ class ue extends Rt {
737
816
  return p;
738
817
  }
739
818
  getController() {
740
- return le.get(this.l);
819
+ return fe.get(this.l);
741
820
  }
742
821
  isDisabled() {
743
822
  var t;
@@ -746,12 +825,12 @@ class ue extends Rt {
746
825
  update(t, [e]) {
747
826
  var i;
748
827
  const s = this.l === void 0;
749
- return s && (this.l = (i = t.options) == null ? void 0 : i.host, this.l.addController(this), this.element = t.element, wt.set(this.element, this)), this.optionsOrCallback = e, (s || typeof e != "function") && this.u(e), this.render(e);
828
+ return s && (this.l = (i = t.options) == null ? void 0 : i.host, this.l.addController(this), this.element = t.element, xt.set(this.element, this)), this.optionsOrCallback = e, (s || typeof e != "function") && this.u(e), this.render(e);
750
829
  }
751
830
  u(t) {
752
831
  t = t ?? {};
753
832
  const e = this.getController();
754
- e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = pe), this.options = t;
833
+ e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = ve), this.options = t;
755
834
  }
756
835
  p() {
757
836
  const t = {}, e = this.element.getBoundingClientRect(), s = getComputedStyle(this.element);
@@ -778,7 +857,7 @@ class ue extends Rt {
778
857
  if (!this.o || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered)
779
858
  return;
780
859
  let t;
781
- this.prepare(), await _t;
860
+ this.prepare(), await bt;
782
861
  const e = this._(), s = this.A(this.options.keyframeOptions, e), i = this.p();
783
862
  if (this.g !== void 0) {
784
863
  const { from: o, to: n } = this.O(this.g, i, e);
@@ -807,7 +886,7 @@ class ue extends Rt {
807
886
  var e;
808
887
  if (!this.o || (this.options.id !== void 0 && J.set(this.options.id, this.g), this.options.out === void 0))
809
888
  return;
810
- if (this.prepare(), await _t(), (e = this.t) == null ? void 0 : e.isConnected) {
889
+ if (this.prepare(), await bt(), (e = this.t) == null ? void 0 : e.isConnected) {
811
890
  const s = this.i && this.i.parentNode === this.t ? this.i : null;
812
891
  if (this.t.insertBefore(this.element, s), this.options.stabilizeOut) {
813
892
  const i = this.p();
@@ -833,19 +912,19 @@ class ue extends Rt {
833
912
  _() {
834
913
  const t = [];
835
914
  for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
836
- const s = wt.get(e);
915
+ const s = xt.get(e);
837
916
  s && !s.isDisabled() && s && t.push(s);
838
917
  }
839
918
  return t;
840
919
  }
841
920
  get isHostRendered() {
842
- const t = vt.has(this.l);
921
+ const t = _t.has(this.l);
843
922
  return t || this.l.updateComplete.then(() => {
844
- vt.add(this.l);
923
+ _t.add(this.l);
845
924
  }), t;
846
925
  }
847
926
  A(t, e = this._()) {
848
- const s = { ...de };
927
+ const s = { ...$e };
849
928
  return e.forEach((i) => Object.assign(s, i.options.keyframeOptions)), Object.assign(s, t), s;
850
929
  }
851
930
  O(t, e, s) {
@@ -896,56 +975,16 @@ class ue extends Rt {
896
975
  this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
897
976
  }
898
977
  }
899
- const ge = rt(ue);
900
- /**
901
- * @license
902
- * Copyright 2017 Google LLC
903
- * SPDX-License-Identifier: BSD-3-Clause
904
- */
905
- const fe = { attribute: !0, type: String, converter: F, reflect: !1, hasChanged: st }, me = (r = fe, t, e) => {
906
- const { kind: s, metadata: i } = e;
907
- let o = globalThis.litPropertyMetadata.get(i);
908
- if (o === void 0 && globalThis.litPropertyMetadata.set(i, o = /* @__PURE__ */ new Map()), o.set(e.name, r), s === "accessor") {
909
- const { name: n } = e;
910
- return { set(h) {
911
- const a = t.get.call(this);
912
- t.set.call(this, h), this.requestUpdate(n, a, r);
913
- }, init(h) {
914
- return h !== void 0 && this.C(n, void 0, r), h;
915
- } };
916
- }
917
- if (s === "setter") {
918
- const { name: n } = e;
919
- return function(h) {
920
- const a = this[n];
921
- t.call(this, h), this.requestUpdate(n, a, r);
922
- };
923
- }
924
- throw Error("Unsupported decorator location: " + s);
925
- };
926
- function g(r) {
927
- return (t, e) => typeof e == "object" ? me(r, t, e) : ((s, i, o) => {
928
- const n = i.hasOwnProperty(o);
929
- return i.constructor.createProperty(o, n ? { ...s, wrapped: !0 } : s), n ? Object.getOwnPropertyDescriptor(i, o) : void 0;
930
- })(r, t, e);
931
- }
932
- /**
933
- * @license
934
- * Copyright 2017 Google LLC
935
- * SPDX-License-Identifier: BSD-3-Clause
936
- */
937
- function O(r) {
938
- return g({ ...r, state: !0, attribute: !1 });
939
- }
978
+ const _e = ot(ye);
940
979
  /**
941
980
  * @license
942
981
  * Copyright 2018 Google LLC
943
982
  * SPDX-License-Identifier: BSD-3-Clause
944
983
  */
945
- const $e = rt(class extends Nt {
984
+ const be = ot(class extends kt {
946
985
  constructor(r) {
947
986
  var t;
948
- if (super(r), r.type !== it.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2)
987
+ if (super(r), r.type !== rt.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2)
949
988
  throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
950
989
  }
951
990
  render(r) {
@@ -966,11 +1005,11 @@ const $e = rt(class extends Nt {
966
1005
  const n = !!t[o];
967
1006
  n === this.it.has(o) || (i = this.st) != null && i.has(o) || (n ? (e.add(o), this.it.add(o)) : (e.remove(o), this.it.delete(o)));
968
1007
  }
969
- return C;
1008
+ return x;
970
1009
  }
971
1010
  }), B = (r, t, e) => {
972
1011
  r && e.style.setProperty(t, r);
973
- }, Mt = (r, t) => {
1012
+ }, Ht = (r, t) => {
974
1013
  var e, s, i, o;
975
1014
  B((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), B(
976
1015
  (s = r.colors) == null ? void 0 : s.textOnPrimaryBackground,
@@ -991,10 +1030,10 @@ const $e = rt(class extends Nt {
991
1030
  * Copyright 2020 Google LLC
992
1031
  * SPDX-License-Identifier: BSD-3-Clause
993
1032
  */
994
- const Ht = () => new ye();
995
- class ye {
1033
+ const Lt = () => new Ae();
1034
+ class Ae {
996
1035
  }
997
- const Q = /* @__PURE__ */ new WeakMap(), jt = rt(class extends Rt {
1036
+ const Q = /* @__PURE__ */ new WeakMap(), jt = ot(class extends Mt {
998
1037
  render(r) {
999
1038
  return p;
1000
1039
  }
@@ -1022,17 +1061,17 @@ const Q = /* @__PURE__ */ new WeakMap(), jt = rt(class extends Rt {
1022
1061
  this.ot(this.lt);
1023
1062
  }
1024
1063
  });
1025
- var ve = Object.defineProperty, _e = Object.getOwnPropertyDescriptor, L = (r, t, e, s) => {
1026
- for (var i = s > 1 ? void 0 : s ? _e(t, e) : t, o = r.length - 1, n; o >= 0; o--)
1064
+ var we = Object.defineProperty, xe = Object.getOwnPropertyDescriptor, V = (r, t, e, s) => {
1065
+ for (var i = s > 1 ? void 0 : s ? xe(t, e) : t, o = r.length - 1, n; o >= 0; o--)
1027
1066
  (n = r[o]) && (i = (s ? n(t, e, i) : n(i)) || i);
1028
- return s && i && ve(t, e, i), i;
1067
+ return s && i && we(t, e, i), i;
1029
1068
  };
1030
- class v extends f {
1069
+ class E extends f {
1031
1070
  constructor() {
1032
- super(...arguments), this.active = !1, this.loaded = !1, this.offset = 0, this.buttonRef = Ht();
1071
+ super(...arguments), this.active = !1, this.loaded = !1, this.containerRef = Lt();
1033
1072
  }
1034
1073
  async connectedCallback() {
1035
- super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding(), this.offset > 0 && this.buttonRef.value && (this.buttonRef.value.style.right = `calc(${this.offset}px + 20px)`);
1074
+ super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
1036
1075
  }
1037
1076
  _toggleActive() {
1038
1077
  var t;
@@ -1046,13 +1085,13 @@ class v extends f {
1046
1085
  }
1047
1086
  _applyBranding() {
1048
1087
  var t;
1049
- (t = this.application) != null && t.settings && Mt(this.application.settings.branding, this);
1088
+ (t = this.application) != null && t.settings && Ht(this.application.settings.branding, this);
1050
1089
  }
1051
1090
  async _renderSymbol() {
1052
1091
  var h, a, l;
1053
1092
  const t = (h = this.application) == null ? void 0 : h.branding(), e = (a = t == null ? void 0 : t.graphics) == null ? void 0 : a.trigger;
1054
1093
  if (e)
1055
- return A` <img src=${e} class="trigger-icon" alt="" /> `;
1094
+ return b` <img src=${e} class="trigger-icon" alt="" /> `;
1056
1095
  const s = (l = this.application) == null ? void 0 : l.triggerIcon;
1057
1096
  if (!s)
1058
1097
  return p;
@@ -1062,7 +1101,7 @@ class v extends f {
1062
1101
  switch (o) {
1063
1102
  case "Telia": {
1064
1103
  const c = await i(n);
1065
- return c ? A`<telia-icon
1104
+ return c ? b`<telia-icon
1066
1105
  class="trigger-icon"
1067
1106
  svg=${c.svg}
1068
1107
  size="lg"
@@ -1072,19 +1111,16 @@ class v extends f {
1072
1111
  return p;
1073
1112
  }
1074
1113
  }
1075
- setOffset(t) {
1076
- this.offset = t;
1077
- }
1078
1114
  render() {
1079
1115
  var t, e, s, i;
1080
- return A`<div class="trigger-container">
1081
- ${!this.active && ((i = (s = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : s.other) != null && i.showButtonLabel) ? A`
1116
+ return b`<div class="trigger-container" ${jt(this.containerRef)}>
1117
+ ${!this.active && ((i = (s = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : s.other) != null && i.showButtonLabel) ? b`
1082
1118
  <button
1083
1119
  class="trigger-label"
1084
1120
  @click=${this._toggleActive}
1085
- ${ge({
1121
+ ${_e({
1086
1122
  keyframeOptions: {},
1087
- in: ce,
1123
+ in: me,
1088
1124
  stabilizeOut: !0,
1089
1125
  skipInitial: !1
1090
1126
  })}
@@ -1094,13 +1130,12 @@ class v extends f {
1094
1130
  ` : p}
1095
1131
 
1096
1132
  <button
1097
- class=${$e({
1133
+ class=${be({
1098
1134
  trigger: !0,
1099
1135
  active: this.active,
1100
1136
  rendered: this.loaded
1101
1137
  })}
1102
1138
  @click=${this._toggleActive}
1103
- ${jt(this.buttonRef)}
1104
1139
  >
1105
1140
  ${this.icon}
1106
1141
  <span class="trigger-close">
@@ -1134,8 +1169,8 @@ class v extends f {
1134
1169
  </div>`;
1135
1170
  }
1136
1171
  }
1137
- v.styles = [
1138
- P`
1172
+ E.styles = [
1173
+ C`
1139
1174
  :host {
1140
1175
  --voca-rem-multiplier: 0.625;
1141
1176
  --trigger-label-bg: #f5e0ff;
@@ -1147,9 +1182,6 @@ v.styles = [
1147
1182
  }
1148
1183
 
1149
1184
  .trigger-container {
1150
- position: fixed;
1151
- bottom: 20px;
1152
- right: 20px;
1153
1185
  display: flex;
1154
1186
  align-items: center;
1155
1187
  gap: 1rem;
@@ -1244,27 +1276,24 @@ v.styles = [
1244
1276
  }
1245
1277
  `
1246
1278
  ];
1247
- L([
1279
+ V([
1248
1280
  g({ attribute: !1 })
1249
- ], v.prototype, "application", 2);
1250
- L([
1251
- O()
1252
- ], v.prototype, "active", 2);
1253
- L([
1254
- O()
1255
- ], v.prototype, "loaded", 2);
1256
- L([
1257
- O()
1258
- ], v.prototype, "icon", 2);
1259
- L([
1260
- O()
1261
- ], v.prototype, "offset", 2);
1262
- var be = Object.defineProperty, Ae = Object.getOwnPropertyDescriptor, b = (r, t, e, s) => {
1263
- for (var i = s > 1 ? void 0 : s ? Ae(t, e) : t, o = r.length - 1, n; o >= 0; o--)
1281
+ ], E.prototype, "application", 2);
1282
+ V([
1283
+ L()
1284
+ ], E.prototype, "active", 2);
1285
+ V([
1286
+ L()
1287
+ ], E.prototype, "loaded", 2);
1288
+ V([
1289
+ L()
1290
+ ], E.prototype, "icon", 2);
1291
+ var Ce = Object.defineProperty, Ee = Object.getOwnPropertyDescriptor, _ = (r, t, e, s) => {
1292
+ for (var i = s > 1 ? void 0 : s ? Ee(t, e) : t, o = r.length - 1, n; o >= 0; o--)
1264
1293
  (n = r[o]) && (i = (s ? n(t, e, i) : n(i)) || i);
1265
- return s && i && be(t, e, i), i;
1294
+ return s && i && Ce(t, e, i), i;
1266
1295
  };
1267
- const Lt = (r) => {
1296
+ const Dt = (r) => {
1268
1297
  class t extends r {
1269
1298
  constructor() {
1270
1299
  super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
@@ -1290,7 +1319,7 @@ const Lt = (r) => {
1290
1319
  }
1291
1320
  return t.styles = [
1292
1321
  // (superClass as unknown as typeof LitElement).styles ?? [],
1293
- P`
1322
+ C`
1294
1323
  :host {
1295
1324
  font-family: var(--font-family);
1296
1325
  grid-column: span var(--width);
@@ -1303,42 +1332,42 @@ const Lt = (r) => {
1303
1332
  box-sizing: border-box;
1304
1333
  }
1305
1334
  `
1306
- ], b([
1335
+ ], _([
1307
1336
  g()
1308
- ], t.prototype, "properties", 2), b([
1337
+ ], t.prototype, "properties", 2), _([
1309
1338
  g()
1310
- ], t.prototype, "context", 2), b([
1339
+ ], t.prototype, "context", 2), _([
1311
1340
  g()
1312
- ], t.prototype, "layout", 2), b([
1341
+ ], t.prototype, "layout", 2), _([
1313
1342
  g()
1314
- ], t.prototype, "name", 2), b([
1343
+ ], t.prototype, "name", 2), _([
1315
1344
  g()
1316
- ], t.prototype, "type", 2), b([
1345
+ ], t.prototype, "type", 2), _([
1317
1346
  g({ attribute: !1 })
1318
- ], t.prototype, "application", 2), b([
1347
+ ], t.prototype, "application", 2), _([
1319
1348
  g({ attribute: !1 })
1320
1349
  ], t.prototype, "parent", 2), t;
1321
1350
  };
1322
- class Dt extends Lt(f) {
1351
+ class Bt extends Dt(f) {
1323
1352
  render() {
1324
- return A`Non resolved component`;
1353
+ return b`Non resolved component`;
1325
1354
  }
1326
1355
  }
1327
- Dt.styles = [
1328
- P`
1356
+ Bt.styles = [
1357
+ C`
1329
1358
  :host {
1330
1359
  display: block;
1331
1360
  }
1332
1361
  `
1333
1362
  ];
1334
- var ot = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))(ot || {}), we = Object.defineProperty, xe = Object.getOwnPropertyDescriptor, Ce = (r, t, e, s) => {
1335
- for (var i = s > 1 ? void 0 : s ? xe(t, e) : t, o = r.length - 1, n; o >= 0; o--)
1363
+ var nt = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))(nt || {}), Se = Object.defineProperty, Pe = Object.getOwnPropertyDescriptor, Oe = (r, t, e, s) => {
1364
+ for (var i = s > 1 ? void 0 : s ? Pe(t, e) : t, o = r.length - 1, n; o >= 0; o--)
1336
1365
  (n = r[o]) && (i = (s ? n(t, e, i) : n(i)) || i);
1337
- return s && i && we(t, e, i), i;
1366
+ return s && i && Se(t, e, i), i;
1338
1367
  };
1339
- class nt extends f {
1368
+ class at extends f {
1340
1369
  constructor() {
1341
- super(...arguments), this.nodes = [], this.wrapperRef = Ht();
1370
+ super(...arguments), this.nodes = [], this.wrapperRef = Lt();
1342
1371
  }
1343
1372
  addChild(t) {
1344
1373
  t.parent = this, this.nodes.push(t);
@@ -1347,7 +1376,7 @@ class nt extends f {
1347
1376
  if (!this.wrapperRef.value)
1348
1377
  return;
1349
1378
  const t = this.application.settings;
1350
- t != null && t.branding && Mt(t.branding, this.wrapperRef.value);
1379
+ t != null && t.branding && Ht(t.branding, this.wrapperRef.value);
1351
1380
  }
1352
1381
  applyStyles() {
1353
1382
  if (!this.wrapperRef.value)
@@ -1361,12 +1390,12 @@ class nt extends f {
1361
1390
  this.applyBranding(), this.applyStyles();
1362
1391
  }
1363
1392
  render() {
1364
- return this.application.renderStrategy === ot.Trigger && this.renderRoot.host.classList.add("floating"), A`<div class="widget-container" ${jt(this.wrapperRef)}>
1365
- ${kt(this.nodes, (t) => t)}
1393
+ return this.application.renderStrategy === nt.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")), b`<div class="widget-container" ${jt(this.wrapperRef)}>
1394
+ ${Ut(this.nodes, (t) => t)}
1366
1395
  </div>`;
1367
1396
  }
1368
1397
  }
1369
- nt.styles = P`
1398
+ at.styles = C`
1370
1399
  :host {
1371
1400
  --font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
1372
1401
  --spacing-xs: 0.2rem;
@@ -1413,6 +1442,12 @@ nt.styles = P`
1413
1442
  width: 400px;
1414
1443
  height: 700px;
1415
1444
  }
1445
+ :host(.floating.bottom-right) {
1446
+ inset: auto 20px 95px auto;
1447
+ }
1448
+ :host(.floating.bottom-left) {
1449
+ inset: auto auto 95px 20px;
1450
+ }
1416
1451
  }
1417
1452
 
1418
1453
  :host(.floating) .widget-container {
@@ -1458,15 +1493,15 @@ nt.styles = P`
1458
1493
  animation: slideDown 0.3s linear;
1459
1494
  }
1460
1495
  `;
1461
- Ce([
1496
+ Oe([
1462
1497
  g({ attribute: !1 })
1463
- ], nt.prototype, "application", 2);
1464
- var Ee = Object.defineProperty, Se = Object.getOwnPropertyDescriptor, at = (r, t, e, s) => {
1465
- for (var i = s > 1 ? void 0 : s ? Se(t, e) : t, o = r.length - 1, n; o >= 0; o--)
1498
+ ], at.prototype, "application", 2);
1499
+ var Te = Object.defineProperty, Ne = Object.getOwnPropertyDescriptor, ht = (r, t, e, s) => {
1500
+ for (var i = s > 1 ? void 0 : s ? Ne(t, e) : t, o = r.length - 1, n; o >= 0; o--)
1466
1501
  (n = r[o]) && (i = (s ? n(t, e, i) : n(i)) || i);
1467
- return s && i && Ee(t, e, i), i;
1502
+ return s && i && Te(t, e, i), i;
1468
1503
  };
1469
- class D extends f {
1504
+ class j extends f {
1470
1505
  constructor() {
1471
1506
  super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
1472
1507
  }
@@ -1491,58 +1526,59 @@ class D extends f {
1491
1526
  render() {
1492
1527
  if (!this.widget || this.status !== "activated")
1493
1528
  return p;
1494
- if (this.widget.renderStrategy === ot.Trigger) {
1495
- const t = new v();
1529
+ if (this.widget.renderStrategy === nt.Trigger) {
1530
+ const t = new E();
1496
1531
  return t.application = this.widget, t;
1497
1532
  }
1498
1533
  return this.widget.render();
1499
1534
  }
1500
1535
  }
1501
- D.styles = [
1502
- P`
1536
+ j.styles = [
1537
+ C`
1503
1538
  :host {
1504
1539
  display: block;
1505
1540
  }
1506
1541
  `
1507
1542
  ];
1508
- at([
1543
+ ht([
1509
1544
  g({ attribute: !0 })
1510
- ], D.prototype, "name", 2);
1511
- at([
1512
- O()
1513
- ], D.prototype, "widget", 2);
1514
- at([
1515
- O()
1516
- ], D.prototype, "status", 2);
1517
- customElements.get("ace-trigger") || customElements.define("ace-trigger", v);
1518
- customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Dt);
1519
- customElements.get("ace-wrapper") || customElements.define("ace-wrapper", nt);
1520
- customElements.get("ace-widget") || customElements.define("ace-widget", D);
1521
- const Pe = (r) => {
1545
+ ], j.prototype, "name", 2);
1546
+ ht([
1547
+ L()
1548
+ ], j.prototype, "widget", 2);
1549
+ ht([
1550
+ L()
1551
+ ], j.prototype, "status", 2);
1552
+ customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", it);
1553
+ customElements.get("ace-trigger") || customElements.define("ace-trigger", E);
1554
+ customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Bt);
1555
+ customElements.get("ace-wrapper") || customElements.define("ace-wrapper", at);
1556
+ customElements.get("ace-widget") || customElements.define("ace-widget", j);
1557
+ const Ue = (r) => {
1522
1558
  const t = {};
1523
1559
  return Object.keys(r).forEach((e) => {
1524
1560
  e.indexOf("css-") > -1 && (t[e] = r[e]);
1525
1561
  }), t;
1526
- }, Oe = (r, t) => {
1527
- const e = Pe(t);
1562
+ }, ke = (r, t) => {
1563
+ const e = Ue(t);
1528
1564
  Object.entries(e).forEach(([s, i]) => {
1529
1565
  r.style.setProperty(s.replace("css-", ""), i);
1530
1566
  });
1531
1567
  };
1532
- class Te extends Lt(f) {
1568
+ class Re extends Dt(f) {
1533
1569
  constructor() {
1534
1570
  super(...arguments), this.nodes = [];
1535
1571
  }
1536
1572
  render() {
1537
1573
  var t;
1538
- return Oe(this.renderRoot.host, this.properties), this.renderRoot.host.style.setProperty(
1574
+ return ke(this.renderRoot.host, this.properties), this.renderRoot.host.style.setProperty(
1539
1575
  "--columns",
1540
1576
  ((t = this.properties.columns) == null ? void 0 : t.toString()) || "1"
1541
- ), A`${kt(this.nodes, (e) => e)}`;
1577
+ ), b`${Ut(this.nodes, (e) => e)}`;
1542
1578
  }
1543
1579
  }
1544
- Te.styles = [
1545
- P`
1580
+ Re.styles = [
1581
+ C`
1546
1582
  :host {
1547
1583
  height: 100%;
1548
1584
  display: grid;
@@ -1555,6 +1591,6 @@ Te.styles = [
1555
1591
  `
1556
1592
  ];
1557
1593
  export {
1558
- Te as Area,
1559
- Te as default
1594
+ Re as Area,
1595
+ Re as default
1560
1596
  };