@telia-ace/widget-components-copyright-flamingo 1.1.70-rc.3 → 1.1.70-rc.30

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.
@@ -0,0 +1,2317 @@
1
+ var ht = function(s, t) {
2
+ return ht = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, i) {
3
+ e.__proto__ = i;
4
+ } || function(e, i) {
5
+ for (var r in i)
6
+ Object.prototype.hasOwnProperty.call(i, r) && (e[r] = i[r]);
7
+ }, ht(s, t);
8
+ };
9
+ function V(s, t) {
10
+ if (typeof t != "function" && t !== null)
11
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
12
+ ht(s, t);
13
+ function e() {
14
+ this.constructor = s;
15
+ }
16
+ s.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
17
+ }
18
+ function pt(s) {
19
+ var t = typeof Symbol == "function" && Symbol.iterator, e = t && s[t], i = 0;
20
+ if (e)
21
+ return e.call(s);
22
+ if (s && typeof s.length == "number")
23
+ return {
24
+ next: function() {
25
+ return s && i >= s.length && (s = void 0), { value: s && s[i++], done: !s };
26
+ }
27
+ };
28
+ throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
29
+ }
30
+ function q(s, t) {
31
+ var e = typeof Symbol == "function" && s[Symbol.iterator];
32
+ if (!e)
33
+ return s;
34
+ var i = e.call(s), r, n = [], o;
35
+ try {
36
+ for (; (t === void 0 || t-- > 0) && !(r = i.next()).done; )
37
+ n.push(r.value);
38
+ } catch (a) {
39
+ o = { error: a };
40
+ } finally {
41
+ try {
42
+ r && !r.done && (e = i.return) && e.call(i);
43
+ } finally {
44
+ if (o)
45
+ throw o.error;
46
+ }
47
+ }
48
+ return n;
49
+ }
50
+ function K(s, t, e) {
51
+ if (e || arguments.length === 2)
52
+ for (var i = 0, r = t.length, n; i < r; i++)
53
+ (n || !(i in t)) && (n || (n = Array.prototype.slice.call(t, 0, i)), n[i] = t[i]);
54
+ return s.concat(n || Array.prototype.slice.call(t));
55
+ }
56
+ function y(s) {
57
+ return typeof s == "function";
58
+ }
59
+ function Kt(s) {
60
+ var t = function(i) {
61
+ Error.call(i), i.stack = new Error().stack;
62
+ }, e = s(t);
63
+ return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
64
+ }
65
+ var et = Kt(function(s) {
66
+ return function(e) {
67
+ s(this), this.message = e ? e.length + ` errors occurred during unsubscription:
68
+ ` + e.map(function(i, r) {
69
+ return r + 1 + ") " + i.toString();
70
+ }).join(`
71
+ `) : "", this.name = "UnsubscriptionError", this.errors = e;
72
+ };
73
+ });
74
+ function dt(s, t) {
75
+ if (s) {
76
+ var e = s.indexOf(t);
77
+ 0 <= e && s.splice(e, 1);
78
+ }
79
+ }
80
+ var Q = function() {
81
+ function s(t) {
82
+ this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
83
+ }
84
+ return s.prototype.unsubscribe = function() {
85
+ var t, e, i, r, n;
86
+ if (!this.closed) {
87
+ this.closed = !0;
88
+ var o = this._parentage;
89
+ if (o)
90
+ if (this._parentage = null, Array.isArray(o))
91
+ try {
92
+ for (var a = pt(o), l = a.next(); !l.done; l = a.next()) {
93
+ var c = l.value;
94
+ c.remove(this);
95
+ }
96
+ } catch (v) {
97
+ t = { error: v };
98
+ } finally {
99
+ try {
100
+ l && !l.done && (e = a.return) && e.call(a);
101
+ } finally {
102
+ if (t)
103
+ throw t.error;
104
+ }
105
+ }
106
+ else
107
+ o.remove(this);
108
+ var h = this.initialTeardown;
109
+ if (y(h))
110
+ try {
111
+ h();
112
+ } catch (v) {
113
+ n = v instanceof et ? v.errors : [v];
114
+ }
115
+ var p = this._finalizers;
116
+ if (p) {
117
+ this._finalizers = null;
118
+ try {
119
+ for (var u = pt(p), f = u.next(); !f.done; f = u.next()) {
120
+ var O = f.value;
121
+ try {
122
+ xt(O);
123
+ } catch (v) {
124
+ n = n ?? [], v instanceof et ? n = K(K([], q(n)), q(v.errors)) : n.push(v);
125
+ }
126
+ }
127
+ } catch (v) {
128
+ i = { error: v };
129
+ } finally {
130
+ try {
131
+ f && !f.done && (r = u.return) && r.call(u);
132
+ } finally {
133
+ if (i)
134
+ throw i.error;
135
+ }
136
+ }
137
+ }
138
+ if (n)
139
+ throw new et(n);
140
+ }
141
+ }, s.prototype.add = function(t) {
142
+ var e;
143
+ if (t && t !== this)
144
+ if (this.closed)
145
+ xt(t);
146
+ else {
147
+ if (t instanceof s) {
148
+ if (t.closed || t._hasParent(this))
149
+ return;
150
+ t._addParent(this);
151
+ }
152
+ (this._finalizers = (e = this._finalizers) !== null && e !== void 0 ? e : []).push(t);
153
+ }
154
+ }, s.prototype._hasParent = function(t) {
155
+ var e = this._parentage;
156
+ return e === t || Array.isArray(e) && e.includes(t);
157
+ }, s.prototype._addParent = function(t) {
158
+ var e = this._parentage;
159
+ this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
160
+ }, s.prototype._removeParent = function(t) {
161
+ var e = this._parentage;
162
+ e === t ? this._parentage = null : Array.isArray(e) && dt(e, t);
163
+ }, s.prototype.remove = function(t) {
164
+ var e = this._finalizers;
165
+ e && dt(e, t), t instanceof s && t._removeParent(this);
166
+ }, s.EMPTY = function() {
167
+ var t = new s();
168
+ return t.closed = !0, t;
169
+ }(), s;
170
+ }(), Gt = Q.EMPTY;
171
+ function Xt(s) {
172
+ return s instanceof Q || s && "closed" in s && y(s.remove) && y(s.add) && y(s.unsubscribe);
173
+ }
174
+ function xt(s) {
175
+ y(s) ? s() : s.unsubscribe();
176
+ }
177
+ var Jt = {
178
+ onUnhandledError: null,
179
+ onStoppedNotification: null,
180
+ Promise: void 0,
181
+ useDeprecatedSynchronousErrorHandling: !1,
182
+ useDeprecatedNextContext: !1
183
+ }, ut = {
184
+ setTimeout: function(s, t) {
185
+ for (var e = [], i = 2; i < arguments.length; i++)
186
+ e[i - 2] = arguments[i];
187
+ var r = ut.delegate;
188
+ return r != null && r.setTimeout ? r.setTimeout.apply(r, K([s, t], q(e))) : setTimeout.apply(void 0, K([s, t], q(e)));
189
+ },
190
+ clearTimeout: function(s) {
191
+ var t = ut.delegate;
192
+ return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(s);
193
+ },
194
+ delegate: void 0
195
+ };
196
+ function ve(s) {
197
+ ut.setTimeout(function() {
198
+ throw s;
199
+ });
200
+ }
201
+ function Et() {
202
+ }
203
+ function W(s) {
204
+ s();
205
+ }
206
+ var Qt = function(s) {
207
+ V(t, s);
208
+ function t(e) {
209
+ var i = s.call(this) || this;
210
+ return i.isStopped = !1, e ? (i.destination = e, Xt(e) && e.add(i)) : i.destination = $e, i;
211
+ }
212
+ return t.create = function(e, i, r) {
213
+ return new ft(e, i, r);
214
+ }, t.prototype.next = function(e) {
215
+ this.isStopped || this._next(e);
216
+ }, t.prototype.error = function(e) {
217
+ this.isStopped || (this.isStopped = !0, this._error(e));
218
+ }, t.prototype.complete = function() {
219
+ this.isStopped || (this.isStopped = !0, this._complete());
220
+ }, t.prototype.unsubscribe = function() {
221
+ this.closed || (this.isStopped = !0, s.prototype.unsubscribe.call(this), this.destination = null);
222
+ }, t.prototype._next = function(e) {
223
+ this.destination.next(e);
224
+ }, t.prototype._error = function(e) {
225
+ try {
226
+ this.destination.error(e);
227
+ } finally {
228
+ this.unsubscribe();
229
+ }
230
+ }, t.prototype._complete = function() {
231
+ try {
232
+ this.destination.complete();
233
+ } finally {
234
+ this.unsubscribe();
235
+ }
236
+ }, t;
237
+ }(Q), me = Function.prototype.bind;
238
+ function it(s, t) {
239
+ return me.call(s, t);
240
+ }
241
+ var ye = function() {
242
+ function s(t) {
243
+ this.partialObserver = t;
244
+ }
245
+ return s.prototype.next = function(t) {
246
+ var e = this.partialObserver;
247
+ if (e.next)
248
+ try {
249
+ e.next(t);
250
+ } catch (i) {
251
+ Y(i);
252
+ }
253
+ }, s.prototype.error = function(t) {
254
+ var e = this.partialObserver;
255
+ if (e.error)
256
+ try {
257
+ e.error(t);
258
+ } catch (i) {
259
+ Y(i);
260
+ }
261
+ else
262
+ Y(t);
263
+ }, s.prototype.complete = function() {
264
+ var t = this.partialObserver;
265
+ if (t.complete)
266
+ try {
267
+ t.complete();
268
+ } catch (e) {
269
+ Y(e);
270
+ }
271
+ }, s;
272
+ }(), ft = function(s) {
273
+ V(t, s);
274
+ function t(e, i, r) {
275
+ var n = s.call(this) || this, o;
276
+ if (y(e) || !e)
277
+ o = {
278
+ next: e ?? void 0,
279
+ error: i ?? void 0,
280
+ complete: r ?? void 0
281
+ };
282
+ else {
283
+ var a;
284
+ n && Jt.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
285
+ return n.unsubscribe();
286
+ }, o = {
287
+ next: e.next && it(e.next, a),
288
+ error: e.error && it(e.error, a),
289
+ complete: e.complete && it(e.complete, a)
290
+ }) : o = e;
291
+ }
292
+ return n.destination = new ye(o), n;
293
+ }
294
+ return t;
295
+ }(Qt);
296
+ function Y(s) {
297
+ ve(s);
298
+ }
299
+ function be(s) {
300
+ throw s;
301
+ }
302
+ var $e = {
303
+ closed: !0,
304
+ next: Et,
305
+ error: be,
306
+ complete: Et
307
+ }, _e = function() {
308
+ return typeof Symbol == "function" && Symbol.observable || "@@observable";
309
+ }();
310
+ function we(s) {
311
+ return s;
312
+ }
313
+ function Ce(s) {
314
+ return s.length === 0 ? we : s.length === 1 ? s[0] : function(e) {
315
+ return s.reduce(function(i, r) {
316
+ return r(i);
317
+ }, e);
318
+ };
319
+ }
320
+ var St = function() {
321
+ function s(t) {
322
+ t && (this._subscribe = t);
323
+ }
324
+ return s.prototype.lift = function(t) {
325
+ var e = new s();
326
+ return e.source = this, e.operator = t, e;
327
+ }, s.prototype.subscribe = function(t, e, i) {
328
+ var r = this, n = xe(t) ? t : new ft(t, e, i);
329
+ return W(function() {
330
+ var o = r, a = o.operator, l = o.source;
331
+ n.add(a ? a.call(n, l) : l ? r._subscribe(n) : r._trySubscribe(n));
332
+ }), n;
333
+ }, s.prototype._trySubscribe = function(t) {
334
+ try {
335
+ return this._subscribe(t);
336
+ } catch (e) {
337
+ t.error(e);
338
+ }
339
+ }, s.prototype.forEach = function(t, e) {
340
+ var i = this;
341
+ return e = Pt(e), new e(function(r, n) {
342
+ var o = new ft({
343
+ next: function(a) {
344
+ try {
345
+ t(a);
346
+ } catch (l) {
347
+ n(l), o.unsubscribe();
348
+ }
349
+ },
350
+ error: n,
351
+ complete: r
352
+ });
353
+ i.subscribe(o);
354
+ });
355
+ }, s.prototype._subscribe = function(t) {
356
+ var e;
357
+ return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
358
+ }, s.prototype[_e] = function() {
359
+ return this;
360
+ }, s.prototype.pipe = function() {
361
+ for (var t = [], e = 0; e < arguments.length; e++)
362
+ t[e] = arguments[e];
363
+ return Ce(t)(this);
364
+ }, s.prototype.toPromise = function(t) {
365
+ var e = this;
366
+ return t = Pt(t), new t(function(i, r) {
367
+ var n;
368
+ e.subscribe(function(o) {
369
+ return n = o;
370
+ }, function(o) {
371
+ return r(o);
372
+ }, function() {
373
+ return i(n);
374
+ });
375
+ });
376
+ }, s.create = function(t) {
377
+ return new s(t);
378
+ }, s;
379
+ }();
380
+ function Pt(s) {
381
+ var t;
382
+ return (t = s ?? Jt.Promise) !== null && t !== void 0 ? t : Promise;
383
+ }
384
+ function Ae(s) {
385
+ return s && y(s.next) && y(s.error) && y(s.complete);
386
+ }
387
+ function xe(s) {
388
+ return s && s instanceof Qt || Ae(s) && Xt(s);
389
+ }
390
+ var Ee = Kt(function(s) {
391
+ return function() {
392
+ s(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
393
+ };
394
+ }), gt = function(s) {
395
+ V(t, s);
396
+ function t() {
397
+ var e = s.call(this) || this;
398
+ return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
399
+ }
400
+ return t.prototype.lift = function(e) {
401
+ var i = new Ot(this, this);
402
+ return i.operator = e, i;
403
+ }, t.prototype._throwIfClosed = function() {
404
+ if (this.closed)
405
+ throw new Ee();
406
+ }, t.prototype.next = function(e) {
407
+ var i = this;
408
+ W(function() {
409
+ var r, n;
410
+ if (i._throwIfClosed(), !i.isStopped) {
411
+ i.currentObservers || (i.currentObservers = Array.from(i.observers));
412
+ try {
413
+ for (var o = pt(i.currentObservers), a = o.next(); !a.done; a = o.next()) {
414
+ var l = a.value;
415
+ l.next(e);
416
+ }
417
+ } catch (c) {
418
+ r = { error: c };
419
+ } finally {
420
+ try {
421
+ a && !a.done && (n = o.return) && n.call(o);
422
+ } finally {
423
+ if (r)
424
+ throw r.error;
425
+ }
426
+ }
427
+ }
428
+ });
429
+ }, t.prototype.error = function(e) {
430
+ var i = this;
431
+ W(function() {
432
+ if (i._throwIfClosed(), !i.isStopped) {
433
+ i.hasError = i.isStopped = !0, i.thrownError = e;
434
+ for (var r = i.observers; r.length; )
435
+ r.shift().error(e);
436
+ }
437
+ });
438
+ }, t.prototype.complete = function() {
439
+ var e = this;
440
+ W(function() {
441
+ if (e._throwIfClosed(), !e.isStopped) {
442
+ e.isStopped = !0;
443
+ for (var i = e.observers; i.length; )
444
+ i.shift().complete();
445
+ }
446
+ });
447
+ }, t.prototype.unsubscribe = function() {
448
+ this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
449
+ }, Object.defineProperty(t.prototype, "observed", {
450
+ get: function() {
451
+ var e;
452
+ return ((e = this.observers) === null || e === void 0 ? void 0 : e.length) > 0;
453
+ },
454
+ enumerable: !1,
455
+ configurable: !0
456
+ }), t.prototype._trySubscribe = function(e) {
457
+ return this._throwIfClosed(), s.prototype._trySubscribe.call(this, e);
458
+ }, t.prototype._subscribe = function(e) {
459
+ return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
460
+ }, t.prototype._innerSubscribe = function(e) {
461
+ var i = this, r = this, n = r.hasError, o = r.isStopped, a = r.observers;
462
+ return n || o ? Gt : (this.currentObservers = null, a.push(e), new Q(function() {
463
+ i.currentObservers = null, dt(a, e);
464
+ }));
465
+ }, t.prototype._checkFinalizedStatuses = function(e) {
466
+ var i = this, r = i.hasError, n = i.thrownError, o = i.isStopped;
467
+ r ? e.error(n) : o && e.complete();
468
+ }, t.prototype.asObservable = function() {
469
+ var e = new St();
470
+ return e.source = this, e;
471
+ }, t.create = function(e, i) {
472
+ return new Ot(e, i);
473
+ }, t;
474
+ }(St), Ot = function(s) {
475
+ V(t, s);
476
+ function t(e, i) {
477
+ var r = s.call(this) || this;
478
+ return r.destination = e, r.source = i, r;
479
+ }
480
+ return t.prototype.next = function(e) {
481
+ var i, r;
482
+ (r = (i = this.destination) === null || i === void 0 ? void 0 : i.next) === null || r === void 0 || r.call(i, e);
483
+ }, t.prototype.error = function(e) {
484
+ var i, r;
485
+ (r = (i = this.destination) === null || i === void 0 ? void 0 : i.error) === null || r === void 0 || r.call(i, e);
486
+ }, t.prototype.complete = function() {
487
+ var e, i;
488
+ (i = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || i === void 0 || i.call(e);
489
+ }, t.prototype._subscribe = function(e) {
490
+ var i, r;
491
+ return (r = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && r !== void 0 ? r : Gt;
492
+ }, t;
493
+ }(gt), Se = function(s) {
494
+ V(t, s);
495
+ function t(e) {
496
+ var i = s.call(this) || this;
497
+ return i._value = e, i;
498
+ }
499
+ return Object.defineProperty(t.prototype, "value", {
500
+ get: function() {
501
+ return this.getValue();
502
+ },
503
+ enumerable: !1,
504
+ configurable: !0
505
+ }), t.prototype._subscribe = function(e) {
506
+ var i = s.prototype._subscribe.call(this, e);
507
+ return !i.closed && e.next(this._value), i;
508
+ }, t.prototype.getValue = function() {
509
+ var e = this, i = e.hasError, r = e.thrownError, n = e._value;
510
+ if (i)
511
+ throw r;
512
+ return this._throwIfClosed(), n;
513
+ }, t.prototype.next = function(e) {
514
+ s.prototype.next.call(this, this._value = e);
515
+ }, t;
516
+ }(gt);
517
+ /**
518
+ * @license
519
+ * Copyright 2019 Google LLC
520
+ * SPDX-License-Identifier: BSD-3-Clause
521
+ */
522
+ const Z = globalThis, vt = Z.ShadowRoot && (Z.ShadyCSS === void 0 || Z.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, mt = Symbol(), Tt = /* @__PURE__ */ new WeakMap();
523
+ let te = class {
524
+ constructor(t, e, i) {
525
+ if (this._$cssResult$ = !0, i !== mt)
526
+ throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
527
+ this.cssText = t, this.t = e;
528
+ }
529
+ get styleSheet() {
530
+ let t = this.o;
531
+ const e = this.t;
532
+ if (vt && t === void 0) {
533
+ const i = e !== void 0 && e.length === 1;
534
+ i && (t = Tt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Tt.set(e, t));
535
+ }
536
+ return t;
537
+ }
538
+ toString() {
539
+ return this.cssText;
540
+ }
541
+ };
542
+ const Pe = (s) => new te(typeof s == "string" ? s : s + "", void 0, mt), P = (s, ...t) => {
543
+ const e = s.length === 1 ? s[0] : t.reduce((i, r, n) => i + ((o) => {
544
+ if (o._$cssResult$ === !0)
545
+ return o.cssText;
546
+ if (typeof o == "number")
547
+ return o;
548
+ 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.");
549
+ })(r) + s[n + 1], s[0]);
550
+ return new te(e, s, mt);
551
+ }, Oe = (s, t) => {
552
+ if (vt)
553
+ s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
554
+ else
555
+ for (const e of t) {
556
+ const i = document.createElement("style"), r = Z.litNonce;
557
+ r !== void 0 && i.setAttribute("nonce", r), i.textContent = e.cssText, s.appendChild(i);
558
+ }
559
+ }, Mt = vt ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
560
+ let e = "";
561
+ for (const i of t.cssRules)
562
+ e += i.cssText;
563
+ return Pe(e);
564
+ })(s) : s;
565
+ /**
566
+ * @license
567
+ * Copyright 2017 Google LLC
568
+ * SPDX-License-Identifier: BSD-3-Clause
569
+ */
570
+ const { is: Te, defineProperty: Me, getOwnPropertyDescriptor: ke, getOwnPropertyNames: Ue, getOwnPropertySymbols: He, getPrototypeOf: Le } = Object, $ = globalThis, kt = $.trustedTypes, Re = kt ? kt.emptyScript : "", st = $.reactiveElementPolyfillSupport, H = (s, t) => s, G = { toAttribute(s, t) {
571
+ switch (t) {
572
+ case Boolean:
573
+ s = s ? Re : null;
574
+ break;
575
+ case Object:
576
+ case Array:
577
+ s = s == null ? s : JSON.stringify(s);
578
+ }
579
+ return s;
580
+ }, fromAttribute(s, t) {
581
+ let e = s;
582
+ switch (t) {
583
+ case Boolean:
584
+ e = s !== null;
585
+ break;
586
+ case Number:
587
+ e = s === null ? null : Number(s);
588
+ break;
589
+ case Object:
590
+ case Array:
591
+ try {
592
+ e = JSON.parse(s);
593
+ } catch {
594
+ e = null;
595
+ }
596
+ }
597
+ return e;
598
+ } }, yt = (s, t) => !Te(s, t), Ut = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged: yt };
599
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), $.litPropertyMetadata ?? ($.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
600
+ let T = class extends HTMLElement {
601
+ static addInitializer(t) {
602
+ this._$Ei(), (this.l ?? (this.l = [])).push(t);
603
+ }
604
+ static get observedAttributes() {
605
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
606
+ }
607
+ static createProperty(t, e = Ut) {
608
+ if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
609
+ const i = Symbol(), r = this.getPropertyDescriptor(t, i, e);
610
+ r !== void 0 && Me(this.prototype, t, r);
611
+ }
612
+ }
613
+ static getPropertyDescriptor(t, e, i) {
614
+ const { get: r, set: n } = ke(this.prototype, t) ?? { get() {
615
+ return this[e];
616
+ }, set(o) {
617
+ this[e] = o;
618
+ } };
619
+ return { get() {
620
+ return r == null ? void 0 : r.call(this);
621
+ }, set(o) {
622
+ const a = r == null ? void 0 : r.call(this);
623
+ n.call(this, o), this.requestUpdate(t, a, i);
624
+ }, configurable: !0, enumerable: !0 };
625
+ }
626
+ static getPropertyOptions(t) {
627
+ return this.elementProperties.get(t) ?? Ut;
628
+ }
629
+ static _$Ei() {
630
+ if (this.hasOwnProperty(H("elementProperties")))
631
+ return;
632
+ const t = Le(this);
633
+ t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
634
+ }
635
+ static finalize() {
636
+ if (this.hasOwnProperty(H("finalized")))
637
+ return;
638
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(H("properties"))) {
639
+ const e = this.properties, i = [...Ue(e), ...He(e)];
640
+ for (const r of i)
641
+ this.createProperty(r, e[r]);
642
+ }
643
+ const t = this[Symbol.metadata];
644
+ if (t !== null) {
645
+ const e = litPropertyMetadata.get(t);
646
+ if (e !== void 0)
647
+ for (const [i, r] of e)
648
+ this.elementProperties.set(i, r);
649
+ }
650
+ this._$Eh = /* @__PURE__ */ new Map();
651
+ for (const [e, i] of this.elementProperties) {
652
+ const r = this._$Eu(e, i);
653
+ r !== void 0 && this._$Eh.set(r, e);
654
+ }
655
+ this.elementStyles = this.finalizeStyles(this.styles);
656
+ }
657
+ static finalizeStyles(t) {
658
+ const e = [];
659
+ if (Array.isArray(t)) {
660
+ const i = new Set(t.flat(1 / 0).reverse());
661
+ for (const r of i)
662
+ e.unshift(Mt(r));
663
+ } else
664
+ t !== void 0 && e.push(Mt(t));
665
+ return e;
666
+ }
667
+ static _$Eu(t, e) {
668
+ const i = e.attribute;
669
+ return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
670
+ }
671
+ constructor() {
672
+ super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
673
+ }
674
+ _$Ev() {
675
+ var t;
676
+ this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
677
+ }
678
+ addController(t) {
679
+ var e;
680
+ (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
681
+ }
682
+ removeController(t) {
683
+ var e;
684
+ (e = this._$EO) == null || e.delete(t);
685
+ }
686
+ _$E_() {
687
+ const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
688
+ for (const i of e.keys())
689
+ this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
690
+ t.size > 0 && (this._$Ep = t);
691
+ }
692
+ createRenderRoot() {
693
+ const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
694
+ return Oe(t, this.constructor.elementStyles), t;
695
+ }
696
+ connectedCallback() {
697
+ var t;
698
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
699
+ var i;
700
+ return (i = e.hostConnected) == null ? void 0 : i.call(e);
701
+ });
702
+ }
703
+ enableUpdating(t) {
704
+ }
705
+ disconnectedCallback() {
706
+ var t;
707
+ (t = this._$EO) == null || t.forEach((e) => {
708
+ var i;
709
+ return (i = e.hostDisconnected) == null ? void 0 : i.call(e);
710
+ });
711
+ }
712
+ attributeChangedCallback(t, e, i) {
713
+ this._$AK(t, i);
714
+ }
715
+ _$EC(t, e) {
716
+ var n;
717
+ const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
718
+ if (r !== void 0 && i.reflect === !0) {
719
+ const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : G).toAttribute(e, i.type);
720
+ this._$Em = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
721
+ }
722
+ }
723
+ _$AK(t, e) {
724
+ var n;
725
+ const i = this.constructor, r = i._$Eh.get(t);
726
+ if (r !== void 0 && this._$Em !== r) {
727
+ const o = i.getPropertyOptions(r), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : G;
728
+ this._$Em = r, this[r] = a.fromAttribute(e, o.type), this._$Em = null;
729
+ }
730
+ }
731
+ requestUpdate(t, e, i) {
732
+ if (t !== void 0) {
733
+ if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? yt)(this[t], e))
734
+ return;
735
+ this.P(t, e, i);
736
+ }
737
+ this.isUpdatePending === !1 && (this._$ES = this._$ET());
738
+ }
739
+ P(t, e, i) {
740
+ this._$AL.has(t) || this._$AL.set(t, e), i.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
741
+ }
742
+ async _$ET() {
743
+ this.isUpdatePending = !0;
744
+ try {
745
+ await this._$ES;
746
+ } catch (e) {
747
+ Promise.reject(e);
748
+ }
749
+ const t = this.scheduleUpdate();
750
+ return t != null && await t, !this.isUpdatePending;
751
+ }
752
+ scheduleUpdate() {
753
+ return this.performUpdate();
754
+ }
755
+ performUpdate() {
756
+ var i;
757
+ if (!this.isUpdatePending)
758
+ return;
759
+ if (!this.hasUpdated) {
760
+ if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
761
+ for (const [n, o] of this._$Ep)
762
+ this[n] = o;
763
+ this._$Ep = void 0;
764
+ }
765
+ const r = this.constructor.elementProperties;
766
+ if (r.size > 0)
767
+ for (const [n, o] of r)
768
+ o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], o);
769
+ }
770
+ let t = !1;
771
+ const e = this._$AL;
772
+ try {
773
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((r) => {
774
+ var n;
775
+ return (n = r.hostUpdate) == null ? void 0 : n.call(r);
776
+ }), this.update(e)) : this._$EU();
777
+ } catch (r) {
778
+ throw t = !1, this._$EU(), r;
779
+ }
780
+ t && this._$AE(e);
781
+ }
782
+ willUpdate(t) {
783
+ }
784
+ _$AE(t) {
785
+ var e;
786
+ (e = this._$EO) == null || e.forEach((i) => {
787
+ var r;
788
+ return (r = i.hostUpdated) == null ? void 0 : r.call(i);
789
+ }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
790
+ }
791
+ _$EU() {
792
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
793
+ }
794
+ get updateComplete() {
795
+ return this.getUpdateComplete();
796
+ }
797
+ getUpdateComplete() {
798
+ return this._$ES;
799
+ }
800
+ shouldUpdate(t) {
801
+ return !0;
802
+ }
803
+ update(t) {
804
+ this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
805
+ }
806
+ updated(t) {
807
+ }
808
+ firstUpdated(t) {
809
+ }
810
+ };
811
+ T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[H("elementProperties")] = /* @__PURE__ */ new Map(), T[H("finalized")] = /* @__PURE__ */ new Map(), st == null || st({ ReactiveElement: T }), ($.reactiveElementVersions ?? ($.reactiveElementVersions = [])).push("2.0.4");
812
+ /**
813
+ * @license
814
+ * Copyright 2017 Google LLC
815
+ * SPDX-License-Identifier: BSD-3-Clause
816
+ */
817
+ const L = globalThis, X = L.trustedTypes, Ht = X ? X.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, ee = "$lit$", b = `lit$${(Math.random() + "").slice(9)}$`, ie = "?" + b, je = `<${ie}>`, E = document, j = () => E.createComment(""), N = (s) => s === null || typeof s != "object" && typeof s != "function", se = Array.isArray, Ne = (s) => se(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", rt = `[
818
+ \f\r]`, U = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Lt = /-->/g, Rt = />/g, w = RegExp(`>|${rt}(?:([^\\s"'>=/]+)(${rt}*=${rt}*(?:[^
819
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), jt = /'/g, Nt = /"/g, re = /^(?:script|style|textarea|title)$/i, ne = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), A = ne(1), Ie = ne(2), S = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), It = /* @__PURE__ */ new WeakMap(), x = E.createTreeWalker(E, 129);
820
+ function oe(s, t) {
821
+ if (!Array.isArray(s) || !s.hasOwnProperty("raw"))
822
+ throw Error("invalid template strings array");
823
+ return Ht !== void 0 ? Ht.createHTML(t) : t;
824
+ }
825
+ const Ve = (s, t) => {
826
+ const e = s.length - 1, i = [];
827
+ let r, n = t === 2 ? "<svg>" : "", o = U;
828
+ for (let a = 0; a < e; a++) {
829
+ const l = s[a];
830
+ let c, h, p = -1, u = 0;
831
+ for (; u < l.length && (o.lastIndex = u, h = o.exec(l), h !== null); )
832
+ u = o.lastIndex, o === U ? h[1] === "!--" ? o = Lt : h[1] !== void 0 ? o = Rt : h[2] !== void 0 ? (re.test(h[2]) && (r = RegExp("</" + h[2], "g")), o = w) : h[3] !== void 0 && (o = w) : o === w ? h[0] === ">" ? (o = r ?? U, p = -1) : h[1] === void 0 ? p = -2 : (p = o.lastIndex - h[2].length, c = h[1], o = h[3] === void 0 ? w : h[3] === '"' ? Nt : jt) : o === Nt || o === jt ? o = w : o === Lt || o === Rt ? o = U : (o = w, r = void 0);
833
+ const f = o === w && s[a + 1].startsWith("/>") ? " " : "";
834
+ n += o === U ? l + je : p >= 0 ? (i.push(c), l.slice(0, p) + ee + l.slice(p) + b + f) : l + b + (p === -2 ? a : f);
835
+ }
836
+ return [oe(s, n + (s[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
837
+ };
838
+ class I {
839
+ constructor({ strings: t, _$litType$: e }, i) {
840
+ let r;
841
+ this.parts = [];
842
+ let n = 0, o = 0;
843
+ const a = t.length - 1, l = this.parts, [c, h] = Ve(t, e);
844
+ if (this.el = I.createElement(c, i), x.currentNode = this.el.content, e === 2) {
845
+ const p = this.el.content.firstChild;
846
+ p.replaceWith(...p.childNodes);
847
+ }
848
+ for (; (r = x.nextNode()) !== null && l.length < a; ) {
849
+ if (r.nodeType === 1) {
850
+ if (r.hasAttributes())
851
+ for (const p of r.getAttributeNames())
852
+ if (p.endsWith(ee)) {
853
+ const u = h[o++], f = r.getAttribute(p).split(b), O = /([.?@])?(.*)/.exec(u);
854
+ l.push({ type: 1, index: n, name: O[2], strings: f, ctor: O[1] === "." ? Be : O[1] === "?" ? ze : O[1] === "@" ? Ye : tt }), r.removeAttribute(p);
855
+ } else
856
+ p.startsWith(b) && (l.push({ type: 6, index: n }), r.removeAttribute(p));
857
+ if (re.test(r.tagName)) {
858
+ const p = r.textContent.split(b), u = p.length - 1;
859
+ if (u > 0) {
860
+ r.textContent = X ? X.emptyScript : "";
861
+ for (let f = 0; f < u; f++)
862
+ r.append(p[f], j()), x.nextNode(), l.push({ type: 2, index: ++n });
863
+ r.append(p[u], j());
864
+ }
865
+ }
866
+ } else if (r.nodeType === 8)
867
+ if (r.data === ie)
868
+ l.push({ type: 2, index: n });
869
+ else {
870
+ let p = -1;
871
+ for (; (p = r.data.indexOf(b, p + 1)) !== -1; )
872
+ l.push({ type: 7, index: n }), p += b.length - 1;
873
+ }
874
+ n++;
875
+ }
876
+ }
877
+ static createElement(t, e) {
878
+ const i = E.createElement("template");
879
+ return i.innerHTML = t, i;
880
+ }
881
+ }
882
+ function M(s, t, e = s, i) {
883
+ var o, a;
884
+ if (t === S)
885
+ return t;
886
+ let r = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
887
+ const n = N(t) ? void 0 : t._$litDirective$;
888
+ return (r == null ? void 0 : r.constructor) !== n && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), n === void 0 ? r = void 0 : (r = new n(s), r._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = r : e._$Cl = r), r !== void 0 && (t = M(s, r._$AS(s, t.values), r, i)), t;
889
+ }
890
+ class De {
891
+ constructor(t, e) {
892
+ this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
893
+ }
894
+ get parentNode() {
895
+ return this._$AM.parentNode;
896
+ }
897
+ get _$AU() {
898
+ return this._$AM._$AU;
899
+ }
900
+ u(t) {
901
+ const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? E).importNode(e, !0);
902
+ x.currentNode = r;
903
+ let n = x.nextNode(), o = 0, a = 0, l = i[0];
904
+ for (; l !== void 0; ) {
905
+ if (o === l.index) {
906
+ let c;
907
+ l.type === 2 ? c = new D(n, n.nextSibling, this, t) : l.type === 1 ? c = new l.ctor(n, l.name, l.strings, this, t) : l.type === 6 && (c = new Fe(n, this, t)), this._$AV.push(c), l = i[++a];
908
+ }
909
+ o !== (l == null ? void 0 : l.index) && (n = x.nextNode(), o++);
910
+ }
911
+ return x.currentNode = E, r;
912
+ }
913
+ p(t) {
914
+ let e = 0;
915
+ for (const i of this._$AV)
916
+ i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
917
+ }
918
+ }
919
+ class D {
920
+ get _$AU() {
921
+ var t;
922
+ return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
923
+ }
924
+ constructor(t, e, i, r) {
925
+ this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
926
+ }
927
+ get parentNode() {
928
+ let t = this._$AA.parentNode;
929
+ const e = this._$AM;
930
+ return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
931
+ }
932
+ get startNode() {
933
+ return this._$AA;
934
+ }
935
+ get endNode() {
936
+ return this._$AB;
937
+ }
938
+ _$AI(t, e = this) {
939
+ t = M(this, t, e), N(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== S && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ne(t) ? this.k(t) : this._(t);
940
+ }
941
+ S(t) {
942
+ return this._$AA.parentNode.insertBefore(t, this._$AB);
943
+ }
944
+ T(t) {
945
+ this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
946
+ }
947
+ _(t) {
948
+ this._$AH !== d && N(this._$AH) ? this._$AA.nextSibling.data = t : this.T(E.createTextNode(t)), this._$AH = t;
949
+ }
950
+ $(t) {
951
+ var n;
952
+ const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = I.createElement(oe(i.h, i.h[0]), this.options)), i);
953
+ if (((n = this._$AH) == null ? void 0 : n._$AD) === r)
954
+ this._$AH.p(e);
955
+ else {
956
+ const o = new De(r, this), a = o.u(this.options);
957
+ o.p(e), this.T(a), this._$AH = o;
958
+ }
959
+ }
960
+ _$AC(t) {
961
+ let e = It.get(t.strings);
962
+ return e === void 0 && It.set(t.strings, e = new I(t)), e;
963
+ }
964
+ k(t) {
965
+ se(this._$AH) || (this._$AH = [], this._$AR());
966
+ const e = this._$AH;
967
+ let i, r = 0;
968
+ for (const n of t)
969
+ r === e.length ? e.push(i = new D(this.S(j()), this.S(j()), this, this.options)) : i = e[r], i._$AI(n), r++;
970
+ r < e.length && (this._$AR(i && i._$AB.nextSibling, r), e.length = r);
971
+ }
972
+ _$AR(t = this._$AA.nextSibling, e) {
973
+ var i;
974
+ for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t && t !== this._$AB; ) {
975
+ const r = t.nextSibling;
976
+ t.remove(), t = r;
977
+ }
978
+ }
979
+ setConnected(t) {
980
+ var e;
981
+ this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
982
+ }
983
+ }
984
+ class tt {
985
+ get tagName() {
986
+ return this.element.tagName;
987
+ }
988
+ get _$AU() {
989
+ return this._$AM._$AU;
990
+ }
991
+ constructor(t, e, i, r, n) {
992
+ this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = n, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = d;
993
+ }
994
+ _$AI(t, e = this, i, r) {
995
+ const n = this.strings;
996
+ let o = !1;
997
+ if (n === void 0)
998
+ t = M(this, t, e, 0), o = !N(t) || t !== this._$AH && t !== S, o && (this._$AH = t);
999
+ else {
1000
+ const a = t;
1001
+ let l, c;
1002
+ for (t = n[0], l = 0; l < n.length - 1; l++)
1003
+ c = M(this, a[i + l], e, l), c === S && (c = this._$AH[l]), o || (o = !N(c) || c !== this._$AH[l]), c === d ? t = d : t !== d && (t += (c ?? "") + n[l + 1]), this._$AH[l] = c;
1004
+ }
1005
+ o && !r && this.j(t);
1006
+ }
1007
+ j(t) {
1008
+ t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
1009
+ }
1010
+ }
1011
+ class Be extends tt {
1012
+ constructor() {
1013
+ super(...arguments), this.type = 3;
1014
+ }
1015
+ j(t) {
1016
+ this.element[this.name] = t === d ? void 0 : t;
1017
+ }
1018
+ }
1019
+ class ze extends tt {
1020
+ constructor() {
1021
+ super(...arguments), this.type = 4;
1022
+ }
1023
+ j(t) {
1024
+ this.element.toggleAttribute(this.name, !!t && t !== d);
1025
+ }
1026
+ }
1027
+ class Ye extends tt {
1028
+ constructor(t, e, i, r, n) {
1029
+ super(t, e, i, r, n), this.type = 5;
1030
+ }
1031
+ _$AI(t, e = this) {
1032
+ if ((t = M(this, t, e, 0) ?? d) === S)
1033
+ return;
1034
+ const i = this._$AH, r = t === d && i !== d || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== d && (i === d || r);
1035
+ r && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
1036
+ }
1037
+ handleEvent(t) {
1038
+ var e;
1039
+ typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
1040
+ }
1041
+ }
1042
+ class Fe {
1043
+ constructor(t, e, i) {
1044
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
1045
+ }
1046
+ get _$AU() {
1047
+ return this._$AM._$AU;
1048
+ }
1049
+ _$AI(t) {
1050
+ M(this, t);
1051
+ }
1052
+ }
1053
+ const nt = L.litHtmlPolyfillSupport;
1054
+ nt == null || nt(I, D), (L.litHtmlVersions ?? (L.litHtmlVersions = [])).push("3.1.2");
1055
+ const We = (s, t, e) => {
1056
+ const i = (e == null ? void 0 : e.renderBefore) ?? t;
1057
+ let r = i._$litPart$;
1058
+ if (r === void 0) {
1059
+ const n = (e == null ? void 0 : e.renderBefore) ?? null;
1060
+ i._$litPart$ = r = new D(t.insertBefore(j(), n), n, void 0, e ?? {});
1061
+ }
1062
+ return r._$AI(s), r;
1063
+ };
1064
+ /**
1065
+ * @license
1066
+ * Copyright 2017 Google LLC
1067
+ * SPDX-License-Identifier: BSD-3-Clause
1068
+ */
1069
+ let m = class extends T {
1070
+ constructor() {
1071
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
1072
+ }
1073
+ createRenderRoot() {
1074
+ var e;
1075
+ const t = super.createRenderRoot();
1076
+ return (e = this.renderOptions).renderBefore ?? (e.renderBefore = t.firstChild), t;
1077
+ }
1078
+ update(t) {
1079
+ const e = this.render();
1080
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = We(e, this.renderRoot, this.renderOptions);
1081
+ }
1082
+ connectedCallback() {
1083
+ var t;
1084
+ super.connectedCallback(), (t = this._$Do) == null || t.setConnected(!0);
1085
+ }
1086
+ disconnectedCallback() {
1087
+ var t;
1088
+ super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
1089
+ }
1090
+ render() {
1091
+ return S;
1092
+ }
1093
+ };
1094
+ var qt;
1095
+ m._$litElement$ = !0, m.finalized = !0, (qt = globalThis.litElementHydrateSupport) == null || qt.call(globalThis, { LitElement: m });
1096
+ const ot = globalThis.litElementPolyfillSupport;
1097
+ ot == null || ot({ LitElement: m });
1098
+ (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.4");
1099
+ /**
1100
+ * @license
1101
+ * Copyright 2017 Google LLC
1102
+ * SPDX-License-Identifier: BSD-3-Clause
1103
+ */
1104
+ const Ze = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged: yt }, qe = (s = Ze, t, e) => {
1105
+ const { kind: i, metadata: r } = e;
1106
+ let n = globalThis.litPropertyMetadata.get(r);
1107
+ if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), n.set(e.name, s), i === "accessor") {
1108
+ const { name: o } = e;
1109
+ return { set(a) {
1110
+ const l = t.get.call(this);
1111
+ t.set.call(this, a), this.requestUpdate(o, l, s);
1112
+ }, init(a) {
1113
+ return a !== void 0 && this.P(o, void 0, s), a;
1114
+ } };
1115
+ }
1116
+ if (i === "setter") {
1117
+ const { name: o } = e;
1118
+ return function(a) {
1119
+ const l = this[o];
1120
+ t.call(this, a), this.requestUpdate(o, l, s);
1121
+ };
1122
+ }
1123
+ throw Error("Unsupported decorator location: " + i);
1124
+ };
1125
+ function g(s) {
1126
+ return (t, e) => typeof e == "object" ? qe(s, t, e) : ((i, r, n) => {
1127
+ const o = r.hasOwnProperty(n);
1128
+ return r.constructor.createProperty(n, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(r, n) : void 0;
1129
+ })(s, t, e);
1130
+ }
1131
+ /**
1132
+ * @license
1133
+ * Copyright 2017 Google LLC
1134
+ * SPDX-License-Identifier: BSD-3-Clause
1135
+ */
1136
+ function k(s) {
1137
+ return g({ ...s, state: !0, attribute: !1 });
1138
+ }
1139
+ var Ke = Object.defineProperty, Ge = Object.getOwnPropertyDescriptor, Xe = (s, t, e, i) => {
1140
+ for (var r = i > 1 ? void 0 : i ? Ge(t, e) : t, n = s.length - 1, o; n >= 0; n--)
1141
+ (o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
1142
+ return i && r && Ke(t, e, r), r;
1143
+ };
1144
+ class bt extends m {
1145
+ constructor() {
1146
+ super(...arguments), this.anchor = "BottomRight";
1147
+ }
1148
+ appendChild(t) {
1149
+ var e;
1150
+ return (e = this.shadowRoot) == null || e.appendChild(t), t;
1151
+ }
1152
+ render() {
1153
+ return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), d;
1154
+ }
1155
+ }
1156
+ bt.styles = [
1157
+ P`
1158
+ :host {
1159
+ position: fixed;
1160
+ display: flex;
1161
+ align-items: center;
1162
+ gap: 1rem;
1163
+ }
1164
+
1165
+ :host(.bottom-right) {
1166
+ bottom: 20px;
1167
+ right: 20px;
1168
+ }
1169
+ :host(.bottom-left) {
1170
+ bottom: 20px;
1171
+ left: 20px;
1172
+ }
1173
+ `
1174
+ ];
1175
+ Xe([
1176
+ g({ attribute: !0 })
1177
+ ], bt.prototype, "anchor", 2);
1178
+ /**
1179
+ * @license
1180
+ * Copyright 2017 Google LLC
1181
+ * SPDX-License-Identifier: BSD-3-Clause
1182
+ */
1183
+ const $t = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, _t = (s) => (...t) => ({ _$litDirective$: s, values: t });
1184
+ let ae = class {
1185
+ constructor(t) {
1186
+ }
1187
+ get _$AU() {
1188
+ return this._$AM._$AU;
1189
+ }
1190
+ _$AT(t, e, i) {
1191
+ this._$Ct = t, this._$AM = e, this._$Ci = i;
1192
+ }
1193
+ _$AS(t, e) {
1194
+ return this.update(t, e);
1195
+ }
1196
+ update(t, e) {
1197
+ return this.render(...e);
1198
+ }
1199
+ };
1200
+ /**
1201
+ * @license
1202
+ * Copyright 2020 Google LLC
1203
+ * SPDX-License-Identifier: BSD-3-Clause
1204
+ */
1205
+ const Je = (s) => s.strings === void 0;
1206
+ /**
1207
+ * @license
1208
+ * Copyright 2017 Google LLC
1209
+ * SPDX-License-Identifier: BSD-3-Clause
1210
+ */
1211
+ const R = (s, t) => {
1212
+ var i;
1213
+ const e = s._$AN;
1214
+ if (e === void 0)
1215
+ return !1;
1216
+ for (const r of e)
1217
+ (i = r._$AO) == null || i.call(r, t, !1), R(r, t);
1218
+ return !0;
1219
+ }, J = (s) => {
1220
+ let t, e;
1221
+ do {
1222
+ if ((t = s._$AM) === void 0)
1223
+ break;
1224
+ e = t._$AN, e.delete(s), s = t;
1225
+ } while ((e == null ? void 0 : e.size) === 0);
1226
+ }, le = (s) => {
1227
+ for (let t; t = s._$AM; s = t) {
1228
+ let e = t._$AN;
1229
+ if (e === void 0)
1230
+ t._$AN = e = /* @__PURE__ */ new Set();
1231
+ else if (e.has(s))
1232
+ break;
1233
+ e.add(s), ei(t);
1234
+ }
1235
+ };
1236
+ function Qe(s) {
1237
+ this._$AN !== void 0 ? (J(this), this._$AM = s, le(this)) : this._$AM = s;
1238
+ }
1239
+ function ti(s, t = !1, e = 0) {
1240
+ const i = this._$AH, r = this._$AN;
1241
+ if (r !== void 0 && r.size !== 0)
1242
+ if (t)
1243
+ if (Array.isArray(i))
1244
+ for (let n = e; n < i.length; n++)
1245
+ R(i[n], !1), J(i[n]);
1246
+ else
1247
+ i != null && (R(i, !1), J(i));
1248
+ else
1249
+ R(this, s);
1250
+ }
1251
+ const ei = (s) => {
1252
+ s.type == $t.CHILD && (s._$AP ?? (s._$AP = ti), s._$AQ ?? (s._$AQ = Qe));
1253
+ };
1254
+ class ce extends ae {
1255
+ constructor() {
1256
+ super(...arguments), this._$AN = void 0;
1257
+ }
1258
+ _$AT(t, e, i) {
1259
+ super._$AT(t, e, i), le(this), this.isConnected = t._$AU;
1260
+ }
1261
+ _$AO(t, e = !0) {
1262
+ var i, r;
1263
+ t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), e && (R(this, t), J(this));
1264
+ }
1265
+ setValue(t) {
1266
+ if (Je(this._$Ct))
1267
+ this._$Ct._$AI(t, this);
1268
+ else {
1269
+ const e = [...this._$Ct._$AH];
1270
+ e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
1271
+ }
1272
+ }
1273
+ disconnected() {
1274
+ }
1275
+ reconnected() {
1276
+ }
1277
+ }
1278
+ const ii = /* @__PURE__ */ new WeakMap();
1279
+ let Vt = 0;
1280
+ const at = /* @__PURE__ */ new Map(), Dt = /* @__PURE__ */ new WeakSet(), Bt = () => new Promise((s) => requestAnimationFrame(s)), si = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], zt = (s, t) => {
1281
+ const e = s - t;
1282
+ return e === 0 ? void 0 : e;
1283
+ }, Yt = (s, t) => {
1284
+ const e = s / t;
1285
+ return e === 1 ? void 0 : e;
1286
+ }, lt = { left: (s, t) => {
1287
+ const e = zt(s, t);
1288
+ return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
1289
+ }, top: (s, t) => {
1290
+ const e = zt(s, t);
1291
+ return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
1292
+ }, width: (s, t) => {
1293
+ let e;
1294
+ t === 0 && (t = 1, e = { width: "1px" });
1295
+ const i = Yt(s, t);
1296
+ return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
1297
+ }, height: (s, t) => {
1298
+ let e;
1299
+ t === 0 && (t = 1, e = { height: "1px" });
1300
+ const i = Yt(s, t);
1301
+ return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
1302
+ } }, ri = { duration: 333, easing: "ease-in-out" }, ni = ["left", "top", "width", "height", "opacity", "color", "background"], Ft = /* @__PURE__ */ new WeakMap();
1303
+ class oi extends ce {
1304
+ constructor(t) {
1305
+ if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === $t.CHILD)
1306
+ throw Error("The `animate` directive must be used in attribute position.");
1307
+ this.createFinished();
1308
+ }
1309
+ createFinished() {
1310
+ var t;
1311
+ (t = this.resolveFinished) == null || t.call(this), this.finished = new Promise((e) => {
1312
+ this.l = e;
1313
+ });
1314
+ }
1315
+ async resolveFinished() {
1316
+ var t;
1317
+ (t = this.l) == null || t.call(this), this.l = void 0;
1318
+ }
1319
+ render(t) {
1320
+ return d;
1321
+ }
1322
+ getController() {
1323
+ return ii.get(this.u);
1324
+ }
1325
+ isDisabled() {
1326
+ var t;
1327
+ return this.options.disabled || ((t = this.getController()) == null ? void 0 : t.disabled);
1328
+ }
1329
+ update(t, [e]) {
1330
+ var r;
1331
+ const i = this.u === void 0;
1332
+ return i && (this.u = (r = t.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((n) => this.t = !0), this.element = t.element, Ft.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
1333
+ }
1334
+ p(t) {
1335
+ t = t ?? {};
1336
+ const e = this.getController();
1337
+ e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = ni), this.options = t;
1338
+ }
1339
+ m() {
1340
+ const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
1341
+ return this.options.properties.forEach((r) => {
1342
+ const n = e[r] ?? (lt[r] ? void 0 : i[r]), o = Number(n);
1343
+ t[r] = isNaN(o) ? n + "" : o;
1344
+ }), t;
1345
+ }
1346
+ v() {
1347
+ let t, e = !0;
1348
+ return this.options.guard && (t = this.options.guard(), e = ((i, r) => {
1349
+ if (Array.isArray(i)) {
1350
+ if (Array.isArray(r) && r.length === i.length && i.every((n, o) => n === r[o]))
1351
+ return !1;
1352
+ } else if (r === i)
1353
+ return !1;
1354
+ return !0;
1355
+ })(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;
1356
+ }
1357
+ hostUpdate() {
1358
+ typeof this.optionsOrCallback == "function" && this.p(this.optionsOrCallback()), this.v() && (this.A = this.m(), this.i = this.i ?? this.element.parentNode, this.o = this.element.nextSibling);
1359
+ }
1360
+ async hostUpdated() {
1361
+ if (!this.h || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered)
1362
+ return;
1363
+ let t;
1364
+ this.prepare(), await Bt;
1365
+ const e = this.O(), i = this.j(this.options.keyframeOptions, e), r = this.m();
1366
+ if (this.A !== void 0) {
1367
+ const { from: n, to: o } = this.N(this.A, r, e);
1368
+ this.log("measured", [this.A, r, n, o]), t = this.calculateKeyframes(n, o);
1369
+ } else {
1370
+ const n = at.get(this.options.inId);
1371
+ if (n) {
1372
+ at.delete(this.options.inId);
1373
+ const { from: o, to: a } = this.N(n, r, e);
1374
+ t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Vt++, t.forEach((l) => l.zIndex = Vt);
1375
+ } else
1376
+ this.options.in && (t = [...this.options.in, {}]);
1377
+ }
1378
+ this.animate(t, i);
1379
+ }
1380
+ resetStyles() {
1381
+ this.P !== void 0 && (this.element.setAttribute("style", this.P ?? ""), this.P = void 0);
1382
+ }
1383
+ commitStyles() {
1384
+ var t, e;
1385
+ this.P = this.element.getAttribute("style"), (t = this.webAnimation) == null || t.commitStyles(), (e = this.webAnimation) == null || e.cancel();
1386
+ }
1387
+ reconnected() {
1388
+ }
1389
+ async disconnected() {
1390
+ var e;
1391
+ if (!this.h || (this.options.id !== void 0 && at.set(this.options.id, this.A), this.options.out === void 0))
1392
+ return;
1393
+ if (this.prepare(), await Bt(), (e = this.i) == null ? void 0 : e.isConnected) {
1394
+ const i = this.o && this.o.parentNode === this.i ? this.o : null;
1395
+ if (this.i.insertBefore(this.element, i), this.options.stabilizeOut) {
1396
+ const r = this.m();
1397
+ this.log("stabilizing out");
1398
+ const n = this.A.left - r.left, o = this.A.top - r.top;
1399
+ 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");
1400
+ }
1401
+ }
1402
+ const t = this.j(this.options.keyframeOptions);
1403
+ await this.animate(this.options.out, t), this.element.remove();
1404
+ }
1405
+ prepare() {
1406
+ this.createFinished();
1407
+ }
1408
+ start() {
1409
+ var t, e;
1410
+ (e = (t = this.options).onStart) == null || e.call(t, this);
1411
+ }
1412
+ didFinish(t) {
1413
+ var e, i;
1414
+ t && ((i = (e = this.options).onComplete) == null || i.call(e, this)), this.A = void 0, this.animatingProperties = void 0, this.frames = void 0, this.resolveFinished();
1415
+ }
1416
+ O() {
1417
+ const t = [];
1418
+ for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
1419
+ const i = Ft.get(e);
1420
+ i && !i.isDisabled() && i && t.push(i);
1421
+ }
1422
+ return t;
1423
+ }
1424
+ get isHostRendered() {
1425
+ const t = Dt.has(this.u);
1426
+ return t || this.u.updateComplete.then(() => {
1427
+ Dt.add(this.u);
1428
+ }), t;
1429
+ }
1430
+ j(t, e = this.O()) {
1431
+ const i = { ...ri };
1432
+ return e.forEach((r) => Object.assign(i, r.options.keyframeOptions)), Object.assign(i, t), i;
1433
+ }
1434
+ N(t, e, i) {
1435
+ t = { ...t }, e = { ...e };
1436
+ const r = i.map((a) => a.animatingProperties).filter((a) => a !== void 0);
1437
+ let n = 1, o = 1;
1438
+ return r.length > 0 && (r.forEach((a) => {
1439
+ a.width && (n /= a.width), a.height && (o /= a.height);
1440
+ }), 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 };
1441
+ }
1442
+ calculateKeyframes(t, e, i = !1) {
1443
+ const r = {}, n = {};
1444
+ let o = !1;
1445
+ const a = {};
1446
+ for (const l in e) {
1447
+ const c = t[l], h = e[l];
1448
+ if (l in lt) {
1449
+ const p = lt[l];
1450
+ if (c === void 0 || h === void 0)
1451
+ continue;
1452
+ const u = p(c, h);
1453
+ u.transform !== void 0 && (a[l] = u.value, o = !0, r.transform = `${r.transform ?? ""} ${u.transform}`, u.overrideFrom !== void 0 && Object.assign(r, u.overrideFrom));
1454
+ } else
1455
+ c !== h && c !== void 0 && h !== void 0 && (o = !0, r[l] = c, n[l] = h);
1456
+ }
1457
+ return r.transformOrigin = n.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, o ? [r, n] : void 0;
1458
+ }
1459
+ async animate(t, e = this.options.keyframeOptions) {
1460
+ this.start(), this.frames = t;
1461
+ let i = !1;
1462
+ if (!this.isAnimating() && !this.isDisabled() && (this.options.onFrames && (this.frames = t = this.options.onFrames(this), this.log("modified frames", t)), t !== void 0)) {
1463
+ this.log("animate", [t, e]), i = !0, this.webAnimation = this.element.animate(t, e);
1464
+ const r = this.getController();
1465
+ r == null || r.add(this);
1466
+ try {
1467
+ await this.webAnimation.finished;
1468
+ } catch {
1469
+ }
1470
+ r == null || r.remove(this);
1471
+ }
1472
+ return this.didFinish(i), i;
1473
+ }
1474
+ isAnimating() {
1475
+ var t, e;
1476
+ return ((t = this.webAnimation) == null ? void 0 : t.playState) === "running" || ((e = this.webAnimation) == null ? void 0 : e.pending);
1477
+ }
1478
+ log(t, e) {
1479
+ this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
1480
+ }
1481
+ }
1482
+ const ai = _t(oi), li = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>' };
1483
+ /**
1484
+ * @license
1485
+ * Copyright 2018 Google LLC
1486
+ * SPDX-License-Identifier: BSD-3-Clause
1487
+ */
1488
+ const Wt = _t(class extends ae {
1489
+ constructor(s) {
1490
+ var t;
1491
+ if (super(s), s.type !== $t.ATTRIBUTE || s.name !== "class" || ((t = s.strings) == null ? void 0 : t.length) > 2)
1492
+ throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
1493
+ }
1494
+ render(s) {
1495
+ return " " + Object.keys(s).filter((t) => s[t]).join(" ") + " ";
1496
+ }
1497
+ update(s, [t]) {
1498
+ var i, r;
1499
+ if (this.st === void 0) {
1500
+ this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter((n) => n !== "")));
1501
+ for (const n in t)
1502
+ t[n] && !((i = this.nt) != null && i.has(n)) && this.st.add(n);
1503
+ return this.render(t);
1504
+ }
1505
+ const e = s.element.classList;
1506
+ for (const n of this.st)
1507
+ n in t || (e.remove(n), this.st.delete(n));
1508
+ for (const n in t) {
1509
+ const o = !!t[n];
1510
+ o === this.st.has(n) || (r = this.nt) != null && r.has(n) || (o ? (e.add(n), this.st.add(n)) : (e.remove(n), this.st.delete(n)));
1511
+ }
1512
+ return S;
1513
+ }
1514
+ }), F = (s, t, e) => {
1515
+ s && e.style.setProperty(t, s);
1516
+ }, he = (s, t) => {
1517
+ var e, i, r, n;
1518
+ F((e = s.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), F(
1519
+ (i = s.colors) == null ? void 0 : i.textOnPrimaryBackground,
1520
+ "--text-on-primary-background",
1521
+ t
1522
+ ), F(
1523
+ (r = s.colors) == null ? void 0 : r.secondaryBackground,
1524
+ "--secondary-background",
1525
+ t
1526
+ ), F(
1527
+ (n = s.colors) == null ? void 0 : n.textOnSecondaryBackground,
1528
+ "--text-on-secondary-background",
1529
+ t
1530
+ );
1531
+ };
1532
+ /**
1533
+ * @license
1534
+ * Copyright 2020 Google LLC
1535
+ * SPDX-License-Identifier: BSD-3-Clause
1536
+ */
1537
+ const pe = () => new ci();
1538
+ class ci {
1539
+ }
1540
+ const ct = /* @__PURE__ */ new WeakMap(), de = _t(class extends ce {
1541
+ render(s) {
1542
+ return d;
1543
+ }
1544
+ update(s, [t]) {
1545
+ var i;
1546
+ const e = t !== this.Y;
1547
+ return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (i = s.options) == null ? void 0 : i.host, this.rt(this.ct = s.element)), d;
1548
+ }
1549
+ rt(s) {
1550
+ if (typeof this.Y == "function") {
1551
+ const t = this.ht ?? globalThis;
1552
+ let e = ct.get(t);
1553
+ e === void 0 && (e = /* @__PURE__ */ new WeakMap(), ct.set(t, e)), e.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), e.set(this.Y, s), s !== void 0 && this.Y.call(this.ht, s);
1554
+ } else
1555
+ this.Y.value = s;
1556
+ }
1557
+ get lt() {
1558
+ var s, t;
1559
+ return typeof this.Y == "function" ? (s = ct.get(this.ht ?? globalThis)) == null ? void 0 : s.get(this.Y) : (t = this.Y) == null ? void 0 : t.value;
1560
+ }
1561
+ disconnected() {
1562
+ this.lt === this.ct && this.rt(void 0);
1563
+ }
1564
+ reconnected() {
1565
+ this.rt(this.ct);
1566
+ }
1567
+ });
1568
+ var hi = Object.defineProperty, pi = Object.getOwnPropertyDescriptor, B = (s, t, e, i) => {
1569
+ for (var r = i > 1 ? void 0 : i ? pi(t, e) : t, n = s.length - 1, o; n >= 0; n--)
1570
+ (o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
1571
+ return i && r && hi(t, e, r), r;
1572
+ };
1573
+ class _ extends m {
1574
+ constructor() {
1575
+ super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = pe(), this.widgetActive$ = new Se(!1), this.componentIsDestroyed$ = new gt();
1576
+ }
1577
+ async connectedCallback() {
1578
+ super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
1579
+ }
1580
+ disconnectedCallback() {
1581
+ super.disconnectedCallback(), this.componentIsDestroyed$.next(), this.componentIsDestroyed$.complete();
1582
+ }
1583
+ toggleActive() {
1584
+ var t;
1585
+ if (!((t = this.application) != null && t.root)) {
1586
+ console.warn(
1587
+ "Could not activate widget. No root element assigned to widget."
1588
+ );
1589
+ return;
1590
+ }
1591
+ this.active = !this.active, this.active ? (this.application.appendToDOM(), this.widgetActive$.next(!0)) : (this.application.hide(), this.widgetActive$.next(!1));
1592
+ }
1593
+ _applyBranding() {
1594
+ var t;
1595
+ (t = this.application) != null && t.settings && he(this.application.settings.branding, this);
1596
+ }
1597
+ async _renderSymbol() {
1598
+ var a, l, c;
1599
+ const t = (a = this.application) == null ? void 0 : a.branding(), e = (l = t == null ? void 0 : t.graphics) == null ? void 0 : l.trigger;
1600
+ if (e)
1601
+ return A` <img src=${e} class="trigger-icon" alt="" /> `;
1602
+ const i = (c = this.application) == null ? void 0 : c.triggerIcon;
1603
+ if (!i)
1604
+ return d;
1605
+ const r = async (h) => li, { type: n, content: o } = i;
1606
+ switch (n) {
1607
+ case "Telia": {
1608
+ const h = await r();
1609
+ return h ? A`<telia-icon
1610
+ class="trigger-icon"
1611
+ svg=${h.svg}
1612
+ size="lg"
1613
+ ></telia-icon>` : d;
1614
+ }
1615
+ default:
1616
+ return d;
1617
+ }
1618
+ }
1619
+ hideTrigger() {
1620
+ this.triggerVisible = !1;
1621
+ }
1622
+ showTrigger() {
1623
+ this.triggerVisible = !0;
1624
+ }
1625
+ render() {
1626
+ var t, e, i, r;
1627
+ return A`<div
1628
+ class=${Wt({
1629
+ "trigger-container": !0,
1630
+ hidden: !this.triggerVisible
1631
+ })}
1632
+ ${de(this.containerRef)}
1633
+ >
1634
+ ${!this.active && ((r = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && r.showButtonLabel) ? A`
1635
+ <button
1636
+ label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
1637
+ class="trigger-label"
1638
+ @click=${this.toggleActive}
1639
+ ${ai({
1640
+ keyframeOptions: {},
1641
+ in: si,
1642
+ stabilizeOut: !0,
1643
+ skipInitial: !1
1644
+ })}
1645
+ >
1646
+ ${this.application.settings.branding.other.buttonLabelText}
1647
+ </button>
1648
+ ` : d}
1649
+
1650
+ <button
1651
+ label="Widget trigger"
1652
+ class=${Wt({
1653
+ trigger: !0,
1654
+ active: this.active,
1655
+ rendered: this.loaded
1656
+ })}
1657
+ @click=${this.toggleActive}
1658
+ >
1659
+ ${this.icon}
1660
+ <span class="trigger-close">
1661
+ <svg
1662
+ width="18"
1663
+ height="9"
1664
+ viewBox="0 0 18 9"
1665
+ fill="none"
1666
+ xmlns="http://www.w3.org/2000/svg"
1667
+ >
1668
+ <path
1669
+ d="M9 9C8.81794 9.00045 8.63759 8.96634 8.46939 8.89965C8.3012 8.83295 8.14851 8.735 8.02015 8.61145L0.194523 1.12367C0.068294 0.99862 -0.00155266 0.831133 2.61958e-05 0.657285C0.00160506 0.483436 0.0744832 0.317136 0.202964 0.194202C0.331445 0.0712675 0.505249 0.00153576 0.686941 2.50649e-05C0.868634 -0.00148563 1.04368 0.0653456 1.17437 0.186125L9 7.6739L16.8256 0.186125C16.9563 0.0653456 17.1314 -0.00148563 17.3131 2.50649e-05C17.4948 0.00153576 17.6686 0.0712675 17.797 0.194202C17.9255 0.317136 17.9984 0.483436 18 0.657285C18.0016 0.831133 17.9317 0.99862 17.8055 1.12367L9.97985 8.61145C9.85149 8.735 9.6988 8.83295 9.53061 8.89965C9.36241 8.96634 9.18206 9.00045 9 9Z"
1670
+ fill="white"
1671
+ />
1672
+ </svg>
1673
+ </span>
1674
+ <span class="trigger-loader">
1675
+ <svg viewBox="25 25 50 50">
1676
+ <circle
1677
+ cx="50"
1678
+ cy="50"
1679
+ r="20"
1680
+ fill="none"
1681
+ stroke="#000"
1682
+ stroke-width="2"
1683
+ stroke-miterlimit="10"
1684
+ />
1685
+ </svg>
1686
+ </span>
1687
+ </button>
1688
+ </div>`;
1689
+ }
1690
+ }
1691
+ _.styles = [
1692
+ P`
1693
+ :host {
1694
+ --voca-rem-multiplier: 0.625;
1695
+ --trigger-label-bg: #f5e0ff;
1696
+ --trigger-label-text-color: rgba(0, 0, 0, 0.8);
1697
+ display: block;
1698
+ box-sizing: border-box;
1699
+ /* font-family: var(--font-family); */
1700
+ font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
1701
+ }
1702
+
1703
+ .trigger-container {
1704
+ display: flex;
1705
+ align-items: center;
1706
+ gap: 1rem;
1707
+ }
1708
+ .trigger-container.hidden {
1709
+ display: none;
1710
+ }
1711
+
1712
+ .trigger {
1713
+ transform: scale(0);
1714
+ box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
1715
+ z-index: 5;
1716
+ display: flex;
1717
+ align-items: center;
1718
+ justify-content: center;
1719
+ border: none;
1720
+ line-height: 55px;
1721
+ height: 55px;
1722
+ width: 55px;
1723
+ border-radius: 55px;
1724
+ cursor: pointer;
1725
+ background-color: var(--trigger-bg, var(--primary-background));
1726
+ font-family: Lato;
1727
+ text-decoration: none;
1728
+ border: 3px dashed transparent;
1729
+ box-sizing: border-box;
1730
+ transition: transform 200ms ease-out;
1731
+ }
1732
+ .trigger:active {
1733
+ transform: scale(0.8) !important;
1734
+ }
1735
+ .trigger:hover:not(:active) {
1736
+ transform: scale(1.1) !important;
1737
+ }
1738
+ .trigger.rendered {
1739
+ transform: scale(1);
1740
+ }
1741
+ .trigger.active .trigger-icon {
1742
+ opacity: 0;
1743
+ transform: rotate(-180deg) scale(0);
1744
+ }
1745
+ .trigger.active .trigger-close {
1746
+ opacity: 1;
1747
+ transform: rotate(0deg) scale(1);
1748
+ }
1749
+
1750
+ .trigger-icon {
1751
+ display: inline-block;
1752
+ line-height: inherit;
1753
+ text-align: center;
1754
+ opacity: 1;
1755
+ transform: rotate(0deg) scale(1);
1756
+ transition: opacity 200ms ease-out, transform 200ms ease-out;
1757
+ color: var(--trigger-text-color, var(--text-on-primary-background));
1758
+ }
1759
+ .trigger-close {
1760
+ opacity: 0;
1761
+ transition: transform 200ms ease-out;
1762
+ transform: rotate(180deg) scale(0);
1763
+ position: absolute;
1764
+ top: 0;
1765
+ bottom: 0;
1766
+ left: 0;
1767
+ right: 0;
1768
+ display: flex;
1769
+ justify-content: center;
1770
+ align-items: center;
1771
+ }
1772
+ .trigger-close svg path {
1773
+ fill: var(--trigger-text-color, var(--text-on-primary-background));
1774
+ }
1775
+
1776
+ img {
1777
+ max-width: 100%;
1778
+ }
1779
+
1780
+ .trigger-label {
1781
+ box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1);
1782
+ background-color: var(--trigger-label-bg);
1783
+ color: var(--trigger-label-text-color);
1784
+ white-space: nowrap;
1785
+ padding: 0.7rem 1rem;
1786
+ border-radius: 0.3rem;
1787
+ font-weight: 500;
1788
+ display: flex;
1789
+ justify-content: center;
1790
+ align-items: center;
1791
+ cursor: pointer;
1792
+ border: none;
1793
+ font-size: 1rem;
1794
+ font-family: inherit;
1795
+ transition: all 300ms ease-in-out;
1796
+ }
1797
+
1798
+ .trigger-label:hover {
1799
+ opacity: 0.8;
1800
+ }
1801
+ `
1802
+ ];
1803
+ B([
1804
+ g({ attribute: !1 })
1805
+ ], _.prototype, "application", 2);
1806
+ B([
1807
+ k()
1808
+ ], _.prototype, "active", 2);
1809
+ B([
1810
+ k()
1811
+ ], _.prototype, "triggerVisible", 2);
1812
+ B([
1813
+ k()
1814
+ ], _.prototype, "loaded", 2);
1815
+ B([
1816
+ k()
1817
+ ], _.prototype, "icon", 2);
1818
+ var di = Object.defineProperty, ui = Object.getOwnPropertyDescriptor, C = (s, t, e, i) => {
1819
+ for (var r = i > 1 ? void 0 : i ? ui(t, e) : t, n = s.length - 1, o; n >= 0; n--)
1820
+ (o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
1821
+ return i && r && di(t, e, r), r;
1822
+ };
1823
+ const ue = (s) => {
1824
+ class t extends s {
1825
+ constructor() {
1826
+ super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
1827
+ }
1828
+ writeProperties(i) {
1829
+ this.properties = i;
1830
+ }
1831
+ writeLayout(i) {
1832
+ this.layout = i;
1833
+ }
1834
+ writeContext(i) {
1835
+ this.context = i;
1836
+ }
1837
+ addChild(i) {
1838
+ i.parent = this, this.nodes.push(i);
1839
+ }
1840
+ connectedCallback() {
1841
+ super.connectedCallback(), this.renderRoot.host.style.setProperty(
1842
+ "--width",
1843
+ this.layout.size === "full" ? "var(--columns, 1)" : `min(${this.layout.size || "var(--columns)"}, var(--columns))`
1844
+ ), this.application.mountComponent(this);
1845
+ }
1846
+ }
1847
+ return t.styles = [
1848
+ // (superClass as unknown as typeof LitElement).styles ?? [],
1849
+ P`
1850
+ :host {
1851
+ font-family: var(--font-family);
1852
+ grid-column: span var(--width);
1853
+ max-width: 100%;
1854
+ overflow: hidden;
1855
+ box-sizing: border-box;
1856
+ display: block;
1857
+ }
1858
+ * {
1859
+ box-sizing: border-box;
1860
+ }
1861
+ `
1862
+ ], C([
1863
+ g()
1864
+ ], t.prototype, "properties", 2), C([
1865
+ g()
1866
+ ], t.prototype, "context", 2), C([
1867
+ g()
1868
+ ], t.prototype, "layout", 2), C([
1869
+ g()
1870
+ ], t.prototype, "name", 2), C([
1871
+ g()
1872
+ ], t.prototype, "type", 2), C([
1873
+ g({ attribute: !1 })
1874
+ ], t.prototype, "application", 2), C([
1875
+ g({ attribute: !1 })
1876
+ ], t.prototype, "parent", 2), t;
1877
+ };
1878
+ class fe extends ue(m) {
1879
+ render() {
1880
+ return A`Non resolved component`;
1881
+ }
1882
+ }
1883
+ fe.styles = [
1884
+ P`
1885
+ :host {
1886
+ display: block;
1887
+ }
1888
+ `
1889
+ ];
1890
+ /**
1891
+ * @license
1892
+ * Copyright 2021 Google LLC
1893
+ * SPDX-License-Identifier: BSD-3-Clause
1894
+ */
1895
+ function* fi(s, t) {
1896
+ if (s !== void 0) {
1897
+ let e = 0;
1898
+ for (const i of s)
1899
+ yield t(i, e++);
1900
+ }
1901
+ }
1902
+ var wt = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s))(wt || {});
1903
+ /**
1904
+ * @license
1905
+ * Copyright 2021 Google LLC
1906
+ * SPDX-License-Identifier: BSD-3-Clause
1907
+ */
1908
+ let gi = class extends Event {
1909
+ constructor(t, e, i) {
1910
+ super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = i ?? !1;
1911
+ }
1912
+ };
1913
+ /**
1914
+ * @license
1915
+ * Copyright 2021 Google LLC
1916
+ * SPDX-License-Identifier: BSD-3-Clause
1917
+ */
1918
+ /**
1919
+ * @license
1920
+ * Copyright 2021 Google LLC
1921
+ * SPDX-License-Identifier: BSD-3-Clause
1922
+ */
1923
+ class vi {
1924
+ get value() {
1925
+ return this.o;
1926
+ }
1927
+ set value(t) {
1928
+ this.setValue(t);
1929
+ }
1930
+ setValue(t, e = !1) {
1931
+ const i = e || !Object.is(t, this.o);
1932
+ this.o = t, i && this.updateObservers();
1933
+ }
1934
+ constructor(t) {
1935
+ this.subscriptions = /* @__PURE__ */ new Map(), this.updateObservers = () => {
1936
+ for (const [e, { disposer: i }] of this.subscriptions)
1937
+ e(this.o, i);
1938
+ }, t !== void 0 && (this.value = t);
1939
+ }
1940
+ addCallback(t, e, i) {
1941
+ if (!i)
1942
+ return void t(this.value);
1943
+ this.subscriptions.has(t) || this.subscriptions.set(t, { disposer: () => {
1944
+ this.subscriptions.delete(t);
1945
+ }, consumerHost: e });
1946
+ const { disposer: r } = this.subscriptions.get(t);
1947
+ t(this.value, r);
1948
+ }
1949
+ clearCallbacks() {
1950
+ this.subscriptions.clear();
1951
+ }
1952
+ }
1953
+ /**
1954
+ * @license
1955
+ * Copyright 2021 Google LLC
1956
+ * SPDX-License-Identifier: BSD-3-Clause
1957
+ */
1958
+ let mi = class extends Event {
1959
+ constructor(t) {
1960
+ super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
1961
+ }
1962
+ };
1963
+ class Zt extends vi {
1964
+ constructor(t, e, i) {
1965
+ var r, n;
1966
+ super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (o) => {
1967
+ const a = o.composedPath()[0];
1968
+ o.context === this.context && a !== this.host && (o.stopPropagation(), this.addCallback(o.callback, a, o.subscribe));
1969
+ }, this.onProviderRequest = (o) => {
1970
+ const a = o.composedPath()[0];
1971
+ if (o.context !== this.context || a === this.host)
1972
+ return;
1973
+ const l = /* @__PURE__ */ new Set();
1974
+ for (const [c, { consumerHost: h }] of this.subscriptions)
1975
+ l.has(c) || (l.add(c), h.dispatchEvent(new gi(this.context, c, !0)));
1976
+ o.stopPropagation();
1977
+ }, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (n = (r = this.host).addController) == null || n.call(r, this);
1978
+ }
1979
+ attachListeners() {
1980
+ this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
1981
+ }
1982
+ hostConnected() {
1983
+ this.host.dispatchEvent(new mi(this.context));
1984
+ }
1985
+ }
1986
+ /**
1987
+ * @license
1988
+ * Copyright 2017 Google LLC
1989
+ * SPDX-License-Identifier: BSD-3-Clause
1990
+ */
1991
+ function yi({ context: s }) {
1992
+ return (t, e) => {
1993
+ const i = /* @__PURE__ */ new WeakMap();
1994
+ if (typeof e == "object")
1995
+ return e.addInitializer(function() {
1996
+ i.set(this, new Zt(this, { context: s }));
1997
+ }), { get() {
1998
+ return t.get.call(this);
1999
+ }, set(r) {
2000
+ var n;
2001
+ return (n = i.get(this)) == null || n.setValue(r), t.set.call(this, r);
2002
+ }, init(r) {
2003
+ var n;
2004
+ return (n = i.get(this)) == null || n.setValue(r), r;
2005
+ } };
2006
+ {
2007
+ t.constructor.addInitializer((o) => {
2008
+ i.set(o, new Zt(o, { context: s }));
2009
+ });
2010
+ const r = Object.getOwnPropertyDescriptor(t, e);
2011
+ let n;
2012
+ if (r === void 0) {
2013
+ const o = /* @__PURE__ */ new WeakMap();
2014
+ n = { get: function() {
2015
+ return o.get(this);
2016
+ }, set: function(a) {
2017
+ i.get(this).setValue(a), o.set(this, a);
2018
+ }, configurable: !0, enumerable: !0 };
2019
+ } else {
2020
+ const o = r.set;
2021
+ n = { ...r, set: function(a) {
2022
+ i.get(this).setValue(a), o == null || o.call(this, a);
2023
+ } };
2024
+ }
2025
+ return void Object.defineProperty(t, e, n);
2026
+ }
2027
+ };
2028
+ }
2029
+ var bi = Object.defineProperty, $i = Object.getOwnPropertyDescriptor, _i = (s, t, e, i) => {
2030
+ for (var r = i > 1 ? void 0 : i ? $i(t, e) : t, n = s.length - 1, o; n >= 0; n--)
2031
+ (o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
2032
+ return i && r && bi(t, e, r), r;
2033
+ };
2034
+ const wi = "application";
2035
+ class Ct extends m {
2036
+ constructor() {
2037
+ super(...arguments), this.nodes = [], this.wrapperRef = pe();
2038
+ }
2039
+ addChild(t) {
2040
+ t.parent = this, this.nodes.push(t);
2041
+ }
2042
+ applyBranding() {
2043
+ if (!this.wrapperRef.value)
2044
+ return;
2045
+ const t = this.application.settings;
2046
+ t != null && t.branding && he(t.branding, this.wrapperRef.value);
2047
+ }
2048
+ applyStyles() {
2049
+ if (!this.wrapperRef.value)
2050
+ return;
2051
+ const t = this.application.styles(), e = this.wrapperRef.value;
2052
+ Object.entries(t).forEach(([i, r]) => {
2053
+ e.style.setProperty(`--${i}`, r);
2054
+ });
2055
+ }
2056
+ firstUpdated(t) {
2057
+ this.applyBranding(), this.applyStyles();
2058
+ }
2059
+ render() {
2060
+ return this.application.renderStrategy === wt.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")), A`<div class="widget-container" ${de(this.wrapperRef)}>
2061
+ ${fi(this.nodes, (t) => t)}
2062
+ </div>`;
2063
+ }
2064
+ }
2065
+ Ct.styles = P`
2066
+ :host {
2067
+ --font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
2068
+ --spacing-xs: 0.2rem;
2069
+ --spacing-sm: 0.5rem;
2070
+ --spacing-md: 1rem;
2071
+ --spacing-lg: 1.2rem;
2072
+ --spacing-xl: 1.8rem;
2073
+
2074
+ --inverted-spacing-lg: -1.2rem;
2075
+
2076
+ --text-color: #222222;
2077
+ --link-color: #990ae3;
2078
+ --gray-color: #f3f3f8;
2079
+ --white-color: #fff;
2080
+ --gray-dark-color: #a6a6a6;
2081
+
2082
+ --box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
2083
+ --border-radius: var(--spacing-sm);
2084
+ --border-radius-sm: var(--spacing-sm);
2085
+ --border-radius-lg: var(--spacing-lg);
2086
+ --border-radius-xl: var(--spacing-xl);
2087
+ --gap: var(--spacing-sm);
2088
+
2089
+ --header-height: 69px;
2090
+ }
2091
+ :host {
2092
+ --voca-rem-multiplier: 0.625;
2093
+ box-sizing: border-box;
2094
+ display: block;
2095
+ }
2096
+
2097
+ :host(.inline) {
2098
+ height: 100%;
2099
+ position: fixed;
2100
+ inset: 0 0 0 0;
2101
+ }
2102
+
2103
+ :host(.floating) {
2104
+ z-index: 6;
2105
+ position: fixed;
2106
+ }
2107
+ @media screen and (max-width: 800px) {
2108
+ :host(.floating) {
2109
+ inset: 0 0 95px 0;
2110
+ height: 100%;
2111
+ }
2112
+ }
2113
+ @media screen and (min-width: 801px) {
2114
+ :host(.floating) {
2115
+ inset: auto 20px 95px auto;
2116
+ max-height: calc(100vh - 120px);
2117
+ width: 400px;
2118
+ height: 700px;
2119
+ }
2120
+ :host(.floating.bottom-right) {
2121
+ inset: auto 20px 95px auto;
2122
+ }
2123
+ :host(.floating.bottom-left) {
2124
+ inset: auto auto 95px 20px;
2125
+ }
2126
+ }
2127
+
2128
+ :host(.floating) .widget-container {
2129
+ box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
2130
+ border-radius: 0.7rem;
2131
+
2132
+ @media screen and (max-width: 800px) {
2133
+ border-radius: 0;
2134
+ }
2135
+ }
2136
+
2137
+ * {
2138
+ box-sizing: border-box;
2139
+ }
2140
+ .widget-container {
2141
+ height: 100%;
2142
+ background-color: var(--primary-background);
2143
+ padding: var(--spacing-sm);
2144
+ border: var(--widget-border, none);
2145
+ }
2146
+ @keyframes slideDown {
2147
+ from {
2148
+ transform: translateY(0);
2149
+ opacity: 1;
2150
+ }
2151
+ to {
2152
+ transform: translateY(100%);
2153
+ opacity: 0;
2154
+ }
2155
+ }
2156
+ @keyframes slideUp {
2157
+ from {
2158
+ transform: translateY(100%);
2159
+ opacity: 0;
2160
+ }
2161
+ to {
2162
+ transform: translateY(0);
2163
+ opacity: 1;
2164
+ }
2165
+ }
2166
+ :host(.expanded) {
2167
+ opacity: 1;
2168
+ animation: slideUp 0.3s linear;
2169
+ }
2170
+ :host(.hidden) {
2171
+ opacity: 0;
2172
+ animation: slideDown 0.3s linear;
2173
+ pointer-events: none;
2174
+ }
2175
+ `;
2176
+ _i([
2177
+ g({ attribute: !1 }),
2178
+ yi({ context: wi })
2179
+ ], Ct.prototype, "application", 2);
2180
+ var Ci = Object.defineProperty, Ai = Object.getOwnPropertyDescriptor, At = (s, t, e, i) => {
2181
+ for (var r = i > 1 ? void 0 : i ? Ai(t, e) : t, n = s.length - 1, o; n >= 0; n--)
2182
+ (o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
2183
+ return i && r && Ci(t, e, r), r;
2184
+ };
2185
+ class z extends m {
2186
+ constructor() {
2187
+ super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
2188
+ }
2189
+ async connectedCallback() {
2190
+ super.connectedCallback(), await this.getGlobalEnvironment();
2191
+ }
2192
+ disconnectedCallback() {
2193
+ super.disconnectedCallback(), this.removeEventListener("environment-created", this.onEnvironmentCreated);
2194
+ }
2195
+ async onEnvironmentCreated(t) {
2196
+ this.widget = t.detail.widget, await this.activate(), this.requestUpdate();
2197
+ }
2198
+ async activate() {
2199
+ this.widget && (await this.widget.activate(), this.status = "activated");
2200
+ }
2201
+ async getGlobalEnvironment() {
2202
+ const t = globalThis.ace;
2203
+ t && (this.widget = t.applications.find(
2204
+ (e) => e.name === this.name
2205
+ ), await this.activate());
2206
+ }
2207
+ render() {
2208
+ if (!this.widget || this.status !== "activated")
2209
+ return d;
2210
+ if (this.widget.renderStrategy === wt.Trigger) {
2211
+ const t = new _();
2212
+ return t.application = this.widget, t;
2213
+ }
2214
+ return this.widget.render();
2215
+ }
2216
+ }
2217
+ z.styles = [
2218
+ P`
2219
+ :host {
2220
+ display: block;
2221
+ }
2222
+ `
2223
+ ];
2224
+ At([
2225
+ g({ attribute: !0 })
2226
+ ], z.prototype, "name", 2);
2227
+ At([
2228
+ k()
2229
+ ], z.prototype, "widget", 2);
2230
+ At([
2231
+ k()
2232
+ ], z.prototype, "status", 2);
2233
+ customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", bt);
2234
+ customElements.get("ace-trigger") || customElements.define("ace-trigger", _);
2235
+ customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", fe);
2236
+ customElements.get("ace-wrapper") || customElements.define("ace-wrapper", Ct);
2237
+ customElements.get("ace-widget") || customElements.define("ace-widget", z);
2238
+ const xi = Ie`
2239
+ <g clip-path="url(#clip0_119_1665)">
2240
+ <path d="M16.9321 27.4656C11.5983 29.6245 8.54568 28.9365 6.85856 27.5904L6.83398 27.5712C9.44534 30.1717 12.4221 32.0011 15.0324 32.0011C19.6033 32.0011 25.8614 26.4651 28.8232 17.8805C27.1542 20.9792 23.5727 24.7861 16.9321 27.4656Z" fill="#990AE3"/>
2241
+ <path d="M20.9805 22.4843C25.1369 20.0779 28.8809 15.9968 30.0615 13.0869C30.397 10.6784 30.4654 10.3744 30.506 7.72479C30.5113 7.35786 30.4889 7.00586 30.4547 6.66879C30.2122 10.56 25.1743 15.4528 18.5092 18.6496C10.4689 22.5056 4.43734 23.5435 1.74585 20.6027C2.68077 22.4459 3.29407 23.3408 4.34545 24.7083C7.45044 27.4539 13.9852 26.5355 20.9805 22.4843Z" fill="#990AE3"/>
2242
+ <path d="M17.5721 15.8923C25.1562 12.24 30.4387 7.04427 29.5177 3.6C28.0058 0.993067 24.9457 0 21.6644 0C11.9381 0 0 6.4 0 14.5653C0 15.6149 0.231859 16.7883 0.647496 18.0181C2.86565 20.9568 9.64833 19.7077 17.5721 15.8923Z" fill="#990AE3"/>
2243
+ </g>
2244
+ <path d="M84.228 15.9056V24.3077H81.4938V22.9307C80.5664 24.1413 79.0919 24.5925 77.8557 24.5925C75.2881 24.5925 73.7666 22.9787 73.7666 20.9605C73.7666 18.6587 76.3587 16.7835 79.5203 16.7835C80.139 16.7835 80.8046 16.8315 81.3987 17.0213V16.2384C81.3987 15.0512 80.7096 14.4347 79.3066 14.4347C78.0469 14.4347 76.9293 15.0757 76.2401 15.9067L74.1716 14.3877C75.3362 13.0352 77.3342 12.0859 79.3547 12.0859C82.5163 12.0837 84.228 13.4608 84.228 15.9056ZM81.3987 19.7264V19.2037C80.9232 19.0373 80.4243 18.9904 79.8056 18.9904C77.6655 18.9904 76.5724 19.8448 76.5724 20.8891C76.5724 21.7435 77.3097 22.2896 78.4273 22.2896C79.9007 22.2896 81.3987 21.4117 81.3987 19.7264Z" fill="#990AE3"/>
2245
+ <path d="M68.75 9.06934C68.75 8.14347 69.5588 7.384 70.4852 7.384C71.3891 7.384 72.1969 8.14347 72.1969 9.06934C72.1969 9.9952 71.3881 10.7547 70.4852 10.7547C69.5588 10.7547 68.75 9.9952 68.75 9.06934ZM69.0118 24.3077V12.44H71.9362V24.3077H69.0118Z" fill="#990AE3"/>
2246
+ <path d="M67.2286 24.3547C66.7766 24.4496 66.3012 24.4731 65.8738 24.4731C63.7817 24.4731 62.8542 23.4757 62.8542 21.4587V7.69226H65.7787V21.0555C65.7787 22.0763 66.3973 22.2181 67.2286 22.1232V24.3547Z" fill="#990AE3"/>
2247
+ <path d="M60.9994 19.2048H52.2262C52.535 20.9616 53.7958 22.1243 55.4124 22.1243C56.6251 22.1243 57.5995 21.5781 58.1947 20.6768L60.525 22.0773C59.3358 23.6677 57.3869 24.6171 55.4134 24.6171C52.1567 24.6171 49.3274 22.0304 49.3274 18.3269C49.3274 14.6235 52.1332 12.0613 55.2713 12.0613C59.3828 12.0603 61.4033 15.336 60.9994 19.2048ZM52.3213 16.9968H58.1701C57.8132 15.4544 56.8153 14.4805 55.2692 14.4805C53.8193 14.4816 52.7251 15.4779 52.3213 16.9968Z" fill="#990AE3"/>
2248
+ <path d="M51.5839 10.3984H46.6379V24.3077H43.4998V10.3984H38.5068V7.69226H51.5839V10.3984Z" fill="#990AE3"/>
2249
+ <path d="M126.394 7.98875H138.935V10.7756H129.668V14.2592H137.889V17.0461H129.668V21.4587H139.167V24.2456H126.394V7.98875Z" fill="#990AE3"/>
2250
+ <path d="M117.4 24.6171C115.682 24.6171 114.126 24.261 112.732 23.5488C111.339 22.8366 110.24 21.8379 109.434 20.5529C108.645 19.2523 108.25 17.7737 108.25 16.1171C108.25 14.4604 108.645 12.9896 109.434 11.7045C110.24 10.404 111.339 9.39758 112.732 8.68537C114.126 7.97317 115.682 7.61707 117.4 7.61707C118.84 7.61707 120.148 7.84156 121.325 8.29056C122.502 8.72408 123.477 9.32016 124.251 10.0788L121.999 12.2154C120.868 11.0078 119.359 10.404 117.47 10.404C116.34 10.404 115.326 10.6517 114.428 11.1471C113.53 11.6271 112.825 12.3006 112.314 13.1676C111.819 14.0346 111.571 15.0178 111.571 16.1171C111.571 17.2163 111.819 18.1995 112.314 19.0665C112.825 19.9336 113.53 20.6148 114.428 21.1102C115.326 21.5902 116.34 21.8302 117.47 21.8302C118.523 21.8302 119.429 21.6521 120.187 21.296C120.961 20.9399 121.627 20.4367 122.184 19.7865L124.414 21.8302C123.609 22.7127 122.61 23.4017 121.418 23.8971C120.241 24.3771 118.902 24.6171 117.4 24.6171Z" fill="#990AE3"/>
2251
+ <path d="M97.1488 7.98875H100.656L107.46 24.2456H103.977L102.514 20.6226H95.0122L93.5026 24.2456H90.228L97.1488 7.98875ZM101.445 17.9751L98.8209 11.5188L96.1269 17.9751H101.445Z" fill="#990AE3"/>
2252
+ <defs>
2253
+ <clipPath id="clip0_119_1665">
2254
+ <rect width="30.5068" height="32.0011" fill="white"/>
2255
+ </clipPath>
2256
+ </defs>`, ge = ue(m);
2257
+ class Ei extends ge {
2258
+ render() {
2259
+ var e;
2260
+ return (e = this.application.branding().other) != null && e.whiteLabel ? d : A` <div class="copyright">
2261
+ <a
2262
+ aria-label="Powered by Telia ACE"
2263
+ href="https://ace-showcase.com"
2264
+ target="_blank"
2265
+ rel="noopener noreferrer"
2266
+ >
2267
+ <span>Powered by</span>
2268
+ <svg
2269
+ width="142"
2270
+ height="32"
2271
+ viewBox="0 0 142 32"
2272
+ fill="none"
2273
+ xmlns="http://www.w3.org/2000/svg"
2274
+ >
2275
+ ${xi}
2276
+ </svg>
2277
+ </a>
2278
+ </div>`;
2279
+ }
2280
+ }
2281
+ Ei.styles = [
2282
+ ge.styles || [],
2283
+ P`
2284
+ :host {
2285
+ --copyright-text-color: var(--text-on-primary-background);
2286
+ }
2287
+
2288
+ .copyright {
2289
+ padding: var(--spacing-sx);
2290
+ box-shadow: 1px 0px 10px rgba(0, 0, 0, 0.1);
2291
+ z-index: 6;
2292
+ background-color: transparent;
2293
+ }
2294
+
2295
+ a {
2296
+ display: flex;
2297
+ justify-content: center;
2298
+ align-items: center;
2299
+ color: var(--copyright-text-color);
2300
+ text-decoration: none;
2301
+ font-size: 0.8rem;
2302
+ gap: var(--spacing-sm);
2303
+ }
2304
+
2305
+ span {
2306
+ opacity: 0.55;
2307
+ }
2308
+
2309
+ svg {
2310
+ width: 88px;
2311
+ }
2312
+ `
2313
+ ];
2314
+ export {
2315
+ Ei as Copyright,
2316
+ Ei as default
2317
+ };