@telia-ace/widget-components-copyright-flamingo 1.1.70-rc.2 → 1.1.70-rc.20

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,2299 @@
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 I(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 Z(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 q(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 qt(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 = qt(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 ut(s, t) {
75
+ if (s) {
76
+ var e = s.indexOf(t);
77
+ 0 <= e && s.splice(e, 1);
78
+ }
79
+ }
80
+ var J = 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 d = pt(p), f = d.next(); !f.done; f = d.next()) {
120
+ var O = f.value;
121
+ try {
122
+ xt(O);
123
+ } catch (v) {
124
+ n = n ?? [], v instanceof et ? n = q(q([], Z(n)), Z(v.errors)) : n.push(v);
125
+ }
126
+ }
127
+ } catch (v) {
128
+ i = { error: v };
129
+ } finally {
130
+ try {
131
+ f && !f.done && (r = d.return) && r.call(d);
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) && ut(e, t);
163
+ }, s.prototype.remove = function(t) {
164
+ var e = this._finalizers;
165
+ e && ut(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
+ }(), Kt = J.EMPTY;
171
+ function Gt(s) {
172
+ return s instanceof J || 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 Xt = {
178
+ onUnhandledError: null,
179
+ onStoppedNotification: null,
180
+ Promise: void 0,
181
+ useDeprecatedSynchronousErrorHandling: !1,
182
+ useDeprecatedNextContext: !1
183
+ }, dt = {
184
+ setTimeout: function(s, t) {
185
+ for (var e = [], i = 2; i < arguments.length; i++)
186
+ e[i - 2] = arguments[i];
187
+ var r = dt.delegate;
188
+ return r != null && r.setTimeout ? r.setTimeout.apply(r, q([s, t], Z(e))) : setTimeout.apply(void 0, q([s, t], Z(e)));
189
+ },
190
+ clearTimeout: function(s) {
191
+ var t = dt.delegate;
192
+ return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(s);
193
+ },
194
+ delegate: void 0
195
+ };
196
+ function ge(s) {
197
+ dt.setTimeout(function() {
198
+ throw s;
199
+ });
200
+ }
201
+ function Et() {
202
+ }
203
+ function F(s) {
204
+ s();
205
+ }
206
+ var Jt = function(s) {
207
+ I(t, s);
208
+ function t(e) {
209
+ var i = s.call(this) || this;
210
+ return i.isStopped = !1, e ? (i.destination = e, Gt(e) && e.add(i)) : i.destination = be, 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
+ }(J), ve = Function.prototype.bind;
238
+ function it(s, t) {
239
+ return ve.call(s, t);
240
+ }
241
+ var me = 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
+ z(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
+ z(i);
260
+ }
261
+ else
262
+ z(t);
263
+ }, s.prototype.complete = function() {
264
+ var t = this.partialObserver;
265
+ if (t.complete)
266
+ try {
267
+ t.complete();
268
+ } catch (e) {
269
+ z(e);
270
+ }
271
+ }, s;
272
+ }(), ft = function(s) {
273
+ I(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 && Xt.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 me(o), n;
293
+ }
294
+ return t;
295
+ }(Jt);
296
+ function z(s) {
297
+ ge(s);
298
+ }
299
+ function ye(s) {
300
+ throw s;
301
+ }
302
+ var be = {
303
+ closed: !0,
304
+ next: Et,
305
+ error: ye,
306
+ complete: Et
307
+ }, $e = function() {
308
+ return typeof Symbol == "function" && Symbol.observable || "@@observable";
309
+ }();
310
+ function _e(s) {
311
+ return s;
312
+ }
313
+ function we(s) {
314
+ return s.length === 0 ? _e : 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 = Ae(t) ? t : new ft(t, e, i);
329
+ return F(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 we(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 ?? Xt.Promise) !== null && t !== void 0 ? t : Promise;
383
+ }
384
+ function Ce(s) {
385
+ return s && y(s.next) && y(s.error) && y(s.complete);
386
+ }
387
+ function Ae(s) {
388
+ return s && s instanceof Jt || Ce(s) && Gt(s);
389
+ }
390
+ var xe = qt(function(s) {
391
+ return function() {
392
+ s(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
393
+ };
394
+ }), gt = function(s) {
395
+ I(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 xe();
406
+ }, t.prototype.next = function(e) {
407
+ var i = this;
408
+ F(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
+ F(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
+ F(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 ? Kt : (this.currentObservers = null, a.push(e), new J(function() {
463
+ i.currentObservers = null, ut(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
+ I(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 : Kt;
492
+ }, t;
493
+ }(gt), Ee = function(s) {
494
+ I(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 W = globalThis, vt = W.ShadowRoot && (W.ShadyCSS === void 0 || W.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, mt = Symbol(), Tt = /* @__PURE__ */ new WeakMap();
523
+ let Qt = 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 Se = (s) => new Qt(typeof s == "string" ? s : s + "", void 0, mt), S = (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 Qt(e, s, mt);
551
+ }, Pe = (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 = W.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 Se(e);
564
+ })(s) : s;
565
+ /**
566
+ * @license
567
+ * Copyright 2017 Google LLC
568
+ * SPDX-License-Identifier: BSD-3-Clause
569
+ */
570
+ const { is: Oe, defineProperty: Te, getOwnPropertyDescriptor: Me, getOwnPropertyNames: ke, getOwnPropertySymbols: Ue, getPrototypeOf: He } = Object, $ = globalThis, kt = $.trustedTypes, Le = kt ? kt.emptyScript : "", st = $.reactiveElementPolyfillSupport, U = (s, t) => s, K = { toAttribute(s, t) {
571
+ switch (t) {
572
+ case Boolean:
573
+ s = s ? Le : 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) => !Oe(s, t), Ut = { attribute: !0, type: String, converter: K, 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 && Te(this.prototype, t, r);
611
+ }
612
+ }
613
+ static getPropertyDescriptor(t, e, i) {
614
+ const { get: r, set: n } = Me(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(U("elementProperties")))
631
+ return;
632
+ const t = He(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(U("finalized")))
637
+ return;
638
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(U("properties"))) {
639
+ const e = this.properties, i = [...ke(e), ...Ue(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 Pe(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 : K).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 : K;
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[U("elementProperties")] = /* @__PURE__ */ new Map(), T[U("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 H = globalThis, G = H.trustedTypes, Ht = G ? G.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, te = "$lit$", b = `lit$${(Math.random() + "").slice(9)}$`, ee = "?" + b, Re = `<${ee}>`, x = document, R = () => x.createComment(""), j = (s) => s === null || typeof s != "object" && typeof s != "function", ie = Array.isArray, je = (s) => ie(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", rt = `[
818
+ \f\r]`, k = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Lt = /-->/g, Rt = />/g, _ = RegExp(`>|${rt}(?:([^\\s"'>=/]+)(${rt}*=${rt}*(?:[^
819
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), jt = /'/g, Nt = /"/g, se = /^(?:script|style|textarea|title)$/i, re = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), C = re(1), Ne = re(2), E = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), It = /* @__PURE__ */ new WeakMap(), A = x.createTreeWalker(x, 129);
820
+ function ne(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 Ie = (s, t) => {
826
+ const e = s.length - 1, i = [];
827
+ let r, n = t === 2 ? "<svg>" : "", o = k;
828
+ for (let a = 0; a < e; a++) {
829
+ const l = s[a];
830
+ let c, h, p = -1, d = 0;
831
+ for (; d < l.length && (o.lastIndex = d, h = o.exec(l), h !== null); )
832
+ d = o.lastIndex, o === k ? h[1] === "!--" ? o = Lt : h[1] !== void 0 ? o = Rt : h[2] !== void 0 ? (se.test(h[2]) && (r = RegExp("</" + h[2], "g")), o = _) : h[3] !== void 0 && (o = _) : o === _ ? h[0] === ">" ? (o = r ?? k, p = -1) : h[1] === void 0 ? p = -2 : (p = o.lastIndex - h[2].length, c = h[1], o = h[3] === void 0 ? _ : h[3] === '"' ? Nt : jt) : o === Nt || o === jt ? o = _ : o === Lt || o === Rt ? o = k : (o = _, r = void 0);
833
+ const f = o === _ && s[a + 1].startsWith("/>") ? " " : "";
834
+ n += o === k ? l + Re : p >= 0 ? (i.push(c), l.slice(0, p) + te + l.slice(p) + b + f) : l + b + (p === -2 ? a : f);
835
+ }
836
+ return [ne(s, n + (s[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
837
+ };
838
+ class N {
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] = Ie(t, e);
844
+ if (this.el = N.createElement(c, i), A.currentNode = this.el.content, e === 2) {
845
+ const p = this.el.content.firstChild;
846
+ p.replaceWith(...p.childNodes);
847
+ }
848
+ for (; (r = A.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(te)) {
853
+ const d = h[o++], f = r.getAttribute(p).split(b), O = /([.?@])?(.*)/.exec(d);
854
+ l.push({ type: 1, index: n, name: O[2], strings: f, ctor: O[1] === "." ? Be : O[1] === "?" ? Ve : O[1] === "@" ? ze : Q }), r.removeAttribute(p);
855
+ } else
856
+ p.startsWith(b) && (l.push({ type: 6, index: n }), r.removeAttribute(p));
857
+ if (se.test(r.tagName)) {
858
+ const p = r.textContent.split(b), d = p.length - 1;
859
+ if (d > 0) {
860
+ r.textContent = G ? G.emptyScript : "";
861
+ for (let f = 0; f < d; f++)
862
+ r.append(p[f], R()), A.nextNode(), l.push({ type: 2, index: ++n });
863
+ r.append(p[d], R());
864
+ }
865
+ }
866
+ } else if (r.nodeType === 8)
867
+ if (r.data === ee)
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 = x.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 === E)
885
+ return t;
886
+ let r = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
887
+ const n = j(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) ?? x).importNode(e, !0);
902
+ A.currentNode = r;
903
+ let n = A.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 Ye(n, this, t)), this._$AV.push(c), l = i[++a];
908
+ }
909
+ o !== (l == null ? void 0 : l.index) && (n = A.nextNode(), o++);
910
+ }
911
+ return A.currentNode = x, 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 = u, 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), j(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== E && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : je(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 !== u && j(this._$AH) ? this._$AA.nextSibling.data = t : this.T(x.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 = N.createElement(ne(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 N(t)), e;
963
+ }
964
+ k(t) {
965
+ ie(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(R()), this.S(R()), 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 Q {
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 = u, 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 = u;
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 = !j(t) || t !== this._$AH && t !== E, 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 === E && (c = this._$AH[l]), o || (o = !j(c) || c !== this._$AH[l]), c === u ? t = u : t !== u && (t += (c ?? "") + n[l + 1]), this._$AH[l] = c;
1004
+ }
1005
+ o && !r && this.j(t);
1006
+ }
1007
+ j(t) {
1008
+ t === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
1009
+ }
1010
+ }
1011
+ class Be extends Q {
1012
+ constructor() {
1013
+ super(...arguments), this.type = 3;
1014
+ }
1015
+ j(t) {
1016
+ this.element[this.name] = t === u ? void 0 : t;
1017
+ }
1018
+ }
1019
+ class Ve extends Q {
1020
+ constructor() {
1021
+ super(...arguments), this.type = 4;
1022
+ }
1023
+ j(t) {
1024
+ this.element.toggleAttribute(this.name, !!t && t !== u);
1025
+ }
1026
+ }
1027
+ class ze extends Q {
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) ?? u) === E)
1033
+ return;
1034
+ const i = this._$AH, r = t === u && i !== u || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== u && (i === u || 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 Ye {
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 = H.litHtmlPolyfillSupport;
1054
+ nt == null || nt(N, D), (H.litHtmlVersions ?? (H.litHtmlVersions = [])).push("3.1.2");
1055
+ const Fe = (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(R(), 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 = Fe(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 E;
1092
+ }
1093
+ };
1094
+ var Zt;
1095
+ m._$litElement$ = !0, m.finalized = !0, (Zt = globalThis.litElementHydrateSupport) == null || Zt.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 We = { attribute: !0, type: String, converter: K, reflect: !1, hasChanged: yt }, Ze = (s = We, 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" ? Ze(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 B(s) {
1137
+ return g({ ...s, state: !0, attribute: !1 });
1138
+ }
1139
+ var qe = Object.defineProperty, Ke = Object.getOwnPropertyDescriptor, Ge = (s, t, e, i) => {
1140
+ for (var r = i > 1 ? void 0 : i ? Ke(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 && qe(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"), u;
1154
+ }
1155
+ }
1156
+ bt.styles = [
1157
+ S`
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
+ Ge([
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 oe = 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 Xe = (s) => s.strings === void 0;
1206
+ /**
1207
+ * @license
1208
+ * Copyright 2017 Google LLC
1209
+ * SPDX-License-Identifier: BSD-3-Clause
1210
+ */
1211
+ const L = (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), L(r, t);
1218
+ return !0;
1219
+ }, X = (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
+ }, ae = (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), ti(t);
1234
+ }
1235
+ };
1236
+ function Je(s) {
1237
+ this._$AN !== void 0 ? (X(this), this._$AM = s, ae(this)) : this._$AM = s;
1238
+ }
1239
+ function Qe(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
+ L(i[n], !1), X(i[n]);
1246
+ else
1247
+ i != null && (L(i, !1), X(i));
1248
+ else
1249
+ L(this, s);
1250
+ }
1251
+ const ti = (s) => {
1252
+ s.type == $t.CHILD && (s._$AP ?? (s._$AP = Qe), s._$AQ ?? (s._$AQ = Je));
1253
+ };
1254
+ class le extends oe {
1255
+ constructor() {
1256
+ super(...arguments), this._$AN = void 0;
1257
+ }
1258
+ _$AT(t, e, i) {
1259
+ super._$AT(t, e, i), ae(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 && (L(this, t), X(this));
1264
+ }
1265
+ setValue(t) {
1266
+ if (Xe(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 ei = /* @__PURE__ */ new WeakMap();
1279
+ let Dt = 0;
1280
+ const at = /* @__PURE__ */ new Map(), Bt = /* @__PURE__ */ new WeakSet(), Vt = () => new Promise((s) => requestAnimationFrame(s)), ii = [{ 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
+ } }, si = { duration: 333, easing: "ease-in-out" }, ri = ["left", "top", "width", "height", "opacity", "color", "background"], Ft = /* @__PURE__ */ new WeakMap();
1303
+ class ni extends le {
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 u;
1321
+ }
1322
+ getController() {
1323
+ return ei.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 = ri), 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 Vt;
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, Dt++, t.forEach((l) => l.zIndex = Dt);
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 Vt(), (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 = Bt.has(this.u);
1426
+ return t || this.u.updateComplete.then(() => {
1427
+ Bt.add(this.u);
1428
+ }), t;
1429
+ }
1430
+ j(t, e = this.O()) {
1431
+ const i = { ...si };
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 d = p(c, h);
1453
+ d.transform !== void 0 && (a[l] = d.value, o = !0, r.transform = `${r.transform ?? ""} ${d.transform}`, d.overrideFrom !== void 0 && Object.assign(r, d.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 oi = _t(ni), ai = { 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 li = _t(class extends oe {
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 E;
1513
+ }
1514
+ }), Y = (s, t, e) => {
1515
+ s && e.style.setProperty(t, s);
1516
+ }, ce = (s, t) => {
1517
+ var e, i, r, n;
1518
+ Y((e = s.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), Y(
1519
+ (i = s.colors) == null ? void 0 : i.textOnPrimaryBackground,
1520
+ "--text-on-primary-background",
1521
+ t
1522
+ ), Y(
1523
+ (r = s.colors) == null ? void 0 : r.secondaryBackground,
1524
+ "--secondary-background",
1525
+ t
1526
+ ), Y(
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 he = () => new ci();
1538
+ class ci {
1539
+ }
1540
+ const ct = /* @__PURE__ */ new WeakMap(), pe = _t(class extends le {
1541
+ render(s) {
1542
+ return u;
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)), u;
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, tt = (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 P extends m {
1574
+ constructor() {
1575
+ super(...arguments), this.active = !1, this.loaded = !1, this.containerRef = he(), this.widgetActive$ = new Ee(!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 && ce(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 C` <img src=${e} class="trigger-icon" alt="" /> `;
1602
+ const i = (c = this.application) == null ? void 0 : c.triggerIcon;
1603
+ if (!i)
1604
+ return u;
1605
+ const r = async (h) => ai, { type: n, content: o } = i;
1606
+ switch (n) {
1607
+ case "Telia": {
1608
+ const h = await r();
1609
+ return h ? C`<telia-icon
1610
+ class="trigger-icon"
1611
+ svg=${h.svg}
1612
+ size="lg"
1613
+ ></telia-icon>` : u;
1614
+ }
1615
+ default:
1616
+ return u;
1617
+ }
1618
+ }
1619
+ render() {
1620
+ var t, e, i, r;
1621
+ return C`<div class="trigger-container" ${pe(this.containerRef)}>
1622
+ ${!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) ? C`
1623
+ <button
1624
+ label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
1625
+ class="trigger-label"
1626
+ @click=${this.toggleActive}
1627
+ ${oi({
1628
+ keyframeOptions: {},
1629
+ in: ii,
1630
+ stabilizeOut: !0,
1631
+ skipInitial: !1
1632
+ })}
1633
+ >
1634
+ ${this.application.settings.branding.other.buttonLabelText}
1635
+ </button>
1636
+ ` : u}
1637
+
1638
+ <button
1639
+ label="Widget trigger"
1640
+ class=${li({
1641
+ trigger: !0,
1642
+ active: this.active,
1643
+ rendered: this.loaded
1644
+ })}
1645
+ @click=${this.toggleActive}
1646
+ >
1647
+ ${this.icon}
1648
+ <span class="trigger-close">
1649
+ <svg
1650
+ width="18"
1651
+ height="9"
1652
+ viewBox="0 0 18 9"
1653
+ fill="none"
1654
+ xmlns="http://www.w3.org/2000/svg"
1655
+ >
1656
+ <path
1657
+ 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"
1658
+ fill="white"
1659
+ />
1660
+ </svg>
1661
+ </span>
1662
+ <span class="trigger-loader">
1663
+ <svg viewBox="25 25 50 50">
1664
+ <circle
1665
+ cx="50"
1666
+ cy="50"
1667
+ r="20"
1668
+ fill="none"
1669
+ stroke="#000"
1670
+ stroke-width="2"
1671
+ stroke-miterlimit="10"
1672
+ />
1673
+ </svg>
1674
+ </span>
1675
+ </button>
1676
+ </div>`;
1677
+ }
1678
+ }
1679
+ P.styles = [
1680
+ S`
1681
+ :host {
1682
+ --voca-rem-multiplier: 0.625;
1683
+ --trigger-label-bg: #f5e0ff;
1684
+ --trigger-label-text-color: rgba(0, 0, 0, 0.8);
1685
+ display: block;
1686
+ box-sizing: border-box;
1687
+ /* font-family: var(--font-family); */
1688
+ font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
1689
+ }
1690
+
1691
+ .trigger-container {
1692
+ display: flex;
1693
+ align-items: center;
1694
+ gap: 1rem;
1695
+ }
1696
+
1697
+ .trigger {
1698
+ transform: scale(0);
1699
+ box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
1700
+ z-index: 5;
1701
+ display: flex;
1702
+ align-items: center;
1703
+ justify-content: center;
1704
+ border: none;
1705
+ line-height: 55px;
1706
+ height: 55px;
1707
+ width: 55px;
1708
+ border-radius: 55px;
1709
+ cursor: pointer;
1710
+ background-color: var(--trigger-bg, var(--primary-background));
1711
+ font-family: Lato;
1712
+ text-decoration: none;
1713
+ border: 3px dashed transparent;
1714
+ box-sizing: border-box;
1715
+ transition: transform 200ms ease-out;
1716
+ }
1717
+ .trigger:active {
1718
+ transform: scale(0.8) !important;
1719
+ }
1720
+ .trigger:hover:not(:active) {
1721
+ transform: scale(1.1) !important;
1722
+ }
1723
+ .trigger.rendered {
1724
+ transform: scale(1);
1725
+ }
1726
+ .trigger.active .trigger-icon {
1727
+ opacity: 0;
1728
+ transform: rotate(-180deg) scale(0);
1729
+ }
1730
+ .trigger.active .trigger-close {
1731
+ opacity: 1;
1732
+ transform: rotate(0deg) scale(1);
1733
+ }
1734
+
1735
+ .trigger-icon {
1736
+ display: inline-block;
1737
+ line-height: inherit;
1738
+ text-align: center;
1739
+ opacity: 1;
1740
+ transform: rotate(0deg) scale(1);
1741
+ transition: opacity 200ms ease-out, transform 200ms ease-out;
1742
+ color: var(--trigger-text-color, var(--text-on-primary-background));
1743
+ }
1744
+ .trigger-close {
1745
+ opacity: 0;
1746
+ transition: transform 200ms ease-out;
1747
+ transform: rotate(180deg) scale(0);
1748
+ position: absolute;
1749
+ top: 0;
1750
+ bottom: 0;
1751
+ left: 0;
1752
+ right: 0;
1753
+ display: flex;
1754
+ justify-content: center;
1755
+ align-items: center;
1756
+ }
1757
+ .trigger-close svg path {
1758
+ fill: var(--trigger-text-color, var(--text-on-primary-background));
1759
+ }
1760
+
1761
+ img {
1762
+ max-width: 100%;
1763
+ }
1764
+
1765
+ .trigger-label {
1766
+ box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1);
1767
+ background-color: var(--trigger-label-bg);
1768
+ color: var(--trigger-label-text-color);
1769
+ white-space: nowrap;
1770
+ padding: 0.7rem 1rem;
1771
+ border-radius: 0.3rem;
1772
+ font-weight: 500;
1773
+ display: flex;
1774
+ justify-content: center;
1775
+ align-items: center;
1776
+ cursor: pointer;
1777
+ border: none;
1778
+ font-size: 1rem;
1779
+ font-family: inherit;
1780
+ transition: all 300ms ease-in-out;
1781
+ }
1782
+
1783
+ .trigger-label:hover {
1784
+ opacity: 0.8;
1785
+ }
1786
+ `
1787
+ ];
1788
+ tt([
1789
+ g({ attribute: !1 })
1790
+ ], P.prototype, "application", 2);
1791
+ tt([
1792
+ B()
1793
+ ], P.prototype, "active", 2);
1794
+ tt([
1795
+ B()
1796
+ ], P.prototype, "loaded", 2);
1797
+ tt([
1798
+ B()
1799
+ ], P.prototype, "icon", 2);
1800
+ var ui = Object.defineProperty, di = Object.getOwnPropertyDescriptor, w = (s, t, e, i) => {
1801
+ for (var r = i > 1 ? void 0 : i ? di(t, e) : t, n = s.length - 1, o; n >= 0; n--)
1802
+ (o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
1803
+ return i && r && ui(t, e, r), r;
1804
+ };
1805
+ const ue = (s) => {
1806
+ class t extends s {
1807
+ constructor() {
1808
+ super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
1809
+ }
1810
+ writeProperties(i) {
1811
+ this.properties = i;
1812
+ }
1813
+ writeLayout(i) {
1814
+ this.layout = i;
1815
+ }
1816
+ writeContext(i) {
1817
+ this.context = i;
1818
+ }
1819
+ addChild(i) {
1820
+ i.parent = this, this.nodes.push(i);
1821
+ }
1822
+ connectedCallback() {
1823
+ super.connectedCallback(), this.renderRoot.host.style.setProperty(
1824
+ "--width",
1825
+ this.layout.size === "full" ? "var(--columns, 1)" : `min(${this.layout.size || "var(--columns)"}, var(--columns))`
1826
+ ), this.application.mountComponent(this);
1827
+ }
1828
+ }
1829
+ return t.styles = [
1830
+ // (superClass as unknown as typeof LitElement).styles ?? [],
1831
+ S`
1832
+ :host {
1833
+ font-family: var(--font-family);
1834
+ grid-column: span var(--width);
1835
+ max-width: 100%;
1836
+ overflow: hidden;
1837
+ box-sizing: border-box;
1838
+ display: block;
1839
+ }
1840
+ * {
1841
+ box-sizing: border-box;
1842
+ }
1843
+ `
1844
+ ], w([
1845
+ g()
1846
+ ], t.prototype, "properties", 2), w([
1847
+ g()
1848
+ ], t.prototype, "context", 2), w([
1849
+ g()
1850
+ ], t.prototype, "layout", 2), w([
1851
+ g()
1852
+ ], t.prototype, "name", 2), w([
1853
+ g()
1854
+ ], t.prototype, "type", 2), w([
1855
+ g({ attribute: !1 })
1856
+ ], t.prototype, "application", 2), w([
1857
+ g({ attribute: !1 })
1858
+ ], t.prototype, "parent", 2), t;
1859
+ };
1860
+ class de extends ue(m) {
1861
+ render() {
1862
+ return C`Non resolved component`;
1863
+ }
1864
+ }
1865
+ de.styles = [
1866
+ S`
1867
+ :host {
1868
+ display: block;
1869
+ }
1870
+ `
1871
+ ];
1872
+ /**
1873
+ * @license
1874
+ * Copyright 2021 Google LLC
1875
+ * SPDX-License-Identifier: BSD-3-Clause
1876
+ */
1877
+ function* fi(s, t) {
1878
+ if (s !== void 0) {
1879
+ let e = 0;
1880
+ for (const i of s)
1881
+ yield t(i, e++);
1882
+ }
1883
+ }
1884
+ var wt = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s))(wt || {});
1885
+ /**
1886
+ * @license
1887
+ * Copyright 2021 Google LLC
1888
+ * SPDX-License-Identifier: BSD-3-Clause
1889
+ */
1890
+ let gi = class extends Event {
1891
+ constructor(t, e, i) {
1892
+ super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = i ?? !1;
1893
+ }
1894
+ };
1895
+ /**
1896
+ * @license
1897
+ * Copyright 2021 Google LLC
1898
+ * SPDX-License-Identifier: BSD-3-Clause
1899
+ */
1900
+ /**
1901
+ * @license
1902
+ * Copyright 2021 Google LLC
1903
+ * SPDX-License-Identifier: BSD-3-Clause
1904
+ */
1905
+ class vi {
1906
+ get value() {
1907
+ return this.o;
1908
+ }
1909
+ set value(t) {
1910
+ this.setValue(t);
1911
+ }
1912
+ setValue(t, e = !1) {
1913
+ const i = e || !Object.is(t, this.o);
1914
+ this.o = t, i && this.updateObservers();
1915
+ }
1916
+ constructor(t) {
1917
+ this.subscriptions = /* @__PURE__ */ new Map(), this.updateObservers = () => {
1918
+ for (const [e, { disposer: i }] of this.subscriptions)
1919
+ e(this.o, i);
1920
+ }, t !== void 0 && (this.value = t);
1921
+ }
1922
+ addCallback(t, e, i) {
1923
+ if (!i)
1924
+ return void t(this.value);
1925
+ this.subscriptions.has(t) || this.subscriptions.set(t, { disposer: () => {
1926
+ this.subscriptions.delete(t);
1927
+ }, consumerHost: e });
1928
+ const { disposer: r } = this.subscriptions.get(t);
1929
+ t(this.value, r);
1930
+ }
1931
+ clearCallbacks() {
1932
+ this.subscriptions.clear();
1933
+ }
1934
+ }
1935
+ /**
1936
+ * @license
1937
+ * Copyright 2021 Google LLC
1938
+ * SPDX-License-Identifier: BSD-3-Clause
1939
+ */
1940
+ let mi = class extends Event {
1941
+ constructor(t) {
1942
+ super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
1943
+ }
1944
+ };
1945
+ class Wt extends vi {
1946
+ constructor(t, e, i) {
1947
+ var r, n;
1948
+ super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (o) => {
1949
+ const a = o.composedPath()[0];
1950
+ o.context === this.context && a !== this.host && (o.stopPropagation(), this.addCallback(o.callback, a, o.subscribe));
1951
+ }, this.onProviderRequest = (o) => {
1952
+ const a = o.composedPath()[0];
1953
+ if (o.context !== this.context || a === this.host)
1954
+ return;
1955
+ const l = /* @__PURE__ */ new Set();
1956
+ for (const [c, { consumerHost: h }] of this.subscriptions)
1957
+ l.has(c) || (l.add(c), h.dispatchEvent(new gi(this.context, c, !0)));
1958
+ o.stopPropagation();
1959
+ }, 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);
1960
+ }
1961
+ attachListeners() {
1962
+ this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
1963
+ }
1964
+ hostConnected() {
1965
+ this.host.dispatchEvent(new mi(this.context));
1966
+ }
1967
+ }
1968
+ /**
1969
+ * @license
1970
+ * Copyright 2017 Google LLC
1971
+ * SPDX-License-Identifier: BSD-3-Clause
1972
+ */
1973
+ function yi({ context: s }) {
1974
+ return (t, e) => {
1975
+ const i = /* @__PURE__ */ new WeakMap();
1976
+ if (typeof e == "object")
1977
+ return e.addInitializer(function() {
1978
+ i.set(this, new Wt(this, { context: s }));
1979
+ }), { get() {
1980
+ return t.get.call(this);
1981
+ }, set(r) {
1982
+ var n;
1983
+ return (n = i.get(this)) == null || n.setValue(r), t.set.call(this, r);
1984
+ }, init(r) {
1985
+ var n;
1986
+ return (n = i.get(this)) == null || n.setValue(r), r;
1987
+ } };
1988
+ {
1989
+ t.constructor.addInitializer((o) => {
1990
+ i.set(o, new Wt(o, { context: s }));
1991
+ });
1992
+ const r = Object.getOwnPropertyDescriptor(t, e);
1993
+ let n;
1994
+ if (r === void 0) {
1995
+ const o = /* @__PURE__ */ new WeakMap();
1996
+ n = { get: function() {
1997
+ return o.get(this);
1998
+ }, set: function(a) {
1999
+ i.get(this).setValue(a), o.set(this, a);
2000
+ }, configurable: !0, enumerable: !0 };
2001
+ } else {
2002
+ const o = r.set;
2003
+ n = { ...r, set: function(a) {
2004
+ i.get(this).setValue(a), o == null || o.call(this, a);
2005
+ } };
2006
+ }
2007
+ return void Object.defineProperty(t, e, n);
2008
+ }
2009
+ };
2010
+ }
2011
+ var bi = Object.defineProperty, $i = Object.getOwnPropertyDescriptor, _i = (s, t, e, i) => {
2012
+ for (var r = i > 1 ? void 0 : i ? $i(t, e) : t, n = s.length - 1, o; n >= 0; n--)
2013
+ (o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
2014
+ return i && r && bi(t, e, r), r;
2015
+ };
2016
+ const wi = "application";
2017
+ class Ct extends m {
2018
+ constructor() {
2019
+ super(...arguments), this.nodes = [], this.wrapperRef = he();
2020
+ }
2021
+ addChild(t) {
2022
+ t.parent = this, this.nodes.push(t);
2023
+ }
2024
+ applyBranding() {
2025
+ if (!this.wrapperRef.value)
2026
+ return;
2027
+ const t = this.application.settings;
2028
+ t != null && t.branding && ce(t.branding, this.wrapperRef.value);
2029
+ }
2030
+ applyStyles() {
2031
+ if (!this.wrapperRef.value)
2032
+ return;
2033
+ const t = this.application.styles(), e = this.wrapperRef.value;
2034
+ Object.entries(t).forEach(([i, r]) => {
2035
+ e.style.setProperty(`--${i}`, r);
2036
+ });
2037
+ }
2038
+ firstUpdated(t) {
2039
+ this.applyBranding(), this.applyStyles();
2040
+ }
2041
+ render() {
2042
+ 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")), C`<div class="widget-container" ${pe(this.wrapperRef)}>
2043
+ ${fi(this.nodes, (t) => t)}
2044
+ </div>`;
2045
+ }
2046
+ }
2047
+ Ct.styles = S`
2048
+ :host {
2049
+ --font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
2050
+ --spacing-xs: 0.2rem;
2051
+ --spacing-sm: 0.5rem;
2052
+ --spacing-md: 1rem;
2053
+ --spacing-lg: 1.2rem;
2054
+ --spacing-xl: 1.8rem;
2055
+
2056
+ --inverted-spacing-lg: -1.2rem;
2057
+
2058
+ --text-color: #222222;
2059
+ --link-color: #990ae3;
2060
+ --gray-color: #f3f3f8;
2061
+ --white-color: #fff;
2062
+ --gray-dark-color: #a6a6a6;
2063
+
2064
+ --box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
2065
+ --border-radius: var(--spacing-sm);
2066
+ --border-radius-sm: var(--spacing-sm);
2067
+ --border-radius-lg: var(--spacing-lg);
2068
+ --border-radius-xl: var(--spacing-xl);
2069
+ --gap: var(--spacing-sm);
2070
+
2071
+ --header-height: 69px;
2072
+ }
2073
+ :host {
2074
+ --voca-rem-multiplier: 0.625;
2075
+ box-sizing: border-box;
2076
+ display: block;
2077
+ }
2078
+
2079
+ :host(.inline) {
2080
+ height: 100%;
2081
+ position: fixed;
2082
+ inset: 0 0 0 0;
2083
+ }
2084
+
2085
+ :host(.floating) {
2086
+ z-index: 6;
2087
+ position: fixed;
2088
+ }
2089
+ @media screen and (max-width: 800px) {
2090
+ :host(.floating) {
2091
+ inset: 0 0 95px 0;
2092
+ height: 100%;
2093
+ }
2094
+ }
2095
+ @media screen and (min-width: 801px) {
2096
+ :host(.floating) {
2097
+ inset: auto 20px 95px auto;
2098
+ max-height: calc(100vh - 120px);
2099
+ width: 400px;
2100
+ height: 700px;
2101
+ }
2102
+ :host(.floating.bottom-right) {
2103
+ inset: auto 20px 95px auto;
2104
+ }
2105
+ :host(.floating.bottom-left) {
2106
+ inset: auto auto 95px 20px;
2107
+ }
2108
+ }
2109
+
2110
+ :host(.floating) .widget-container {
2111
+ box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
2112
+ border-radius: 0.7rem;
2113
+
2114
+ @media screen and (max-width: 800px) {
2115
+ border-radius: 0;
2116
+ }
2117
+ }
2118
+
2119
+ * {
2120
+ box-sizing: border-box;
2121
+ }
2122
+ .widget-container {
2123
+ height: 100%;
2124
+ background-color: var(--primary-background);
2125
+ padding: var(--spacing-sm);
2126
+ border: var(--widget-border, none);
2127
+ }
2128
+ @keyframes slideDown {
2129
+ from {
2130
+ transform: translateY(0);
2131
+ opacity: 1;
2132
+ }
2133
+ to {
2134
+ transform: translateY(100%);
2135
+ opacity: 0;
2136
+ }
2137
+ }
2138
+ @keyframes slideUp {
2139
+ from {
2140
+ transform: translateY(100%);
2141
+ opacity: 0;
2142
+ }
2143
+ to {
2144
+ transform: translateY(0);
2145
+ opacity: 1;
2146
+ }
2147
+ }
2148
+ :host(.expanded) {
2149
+ opacity: 1;
2150
+ animation: slideUp 0.3s linear;
2151
+ }
2152
+ :host(.hidden) {
2153
+ opacity: 0;
2154
+ animation: slideDown 0.3s linear;
2155
+ pointer-events: none;
2156
+ }
2157
+ `;
2158
+ _i([
2159
+ g({ attribute: !1 }),
2160
+ yi({ context: wi })
2161
+ ], Ct.prototype, "application", 2);
2162
+ var Ci = Object.defineProperty, Ai = Object.getOwnPropertyDescriptor, At = (s, t, e, i) => {
2163
+ for (var r = i > 1 ? void 0 : i ? Ai(t, e) : t, n = s.length - 1, o; n >= 0; n--)
2164
+ (o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
2165
+ return i && r && Ci(t, e, r), r;
2166
+ };
2167
+ class V extends m {
2168
+ constructor() {
2169
+ super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
2170
+ }
2171
+ async connectedCallback() {
2172
+ super.connectedCallback(), await this.getGlobalEnvironment();
2173
+ }
2174
+ disconnectedCallback() {
2175
+ super.disconnectedCallback(), this.removeEventListener("environment-created", this.onEnvironmentCreated);
2176
+ }
2177
+ async onEnvironmentCreated(t) {
2178
+ this.widget = t.detail.widget, await this.activate(), this.requestUpdate();
2179
+ }
2180
+ async activate() {
2181
+ this.widget && (await this.widget.activate(), this.status = "activated");
2182
+ }
2183
+ async getGlobalEnvironment() {
2184
+ const t = globalThis.widgets;
2185
+ t && (this.widget = t.applications.find(
2186
+ (e) => e.name === this.name
2187
+ ), await this.activate());
2188
+ }
2189
+ render() {
2190
+ if (!this.widget || this.status !== "activated")
2191
+ return u;
2192
+ if (this.widget.renderStrategy === wt.Trigger) {
2193
+ const t = new P();
2194
+ return t.application = this.widget, t;
2195
+ }
2196
+ return this.widget.render();
2197
+ }
2198
+ }
2199
+ V.styles = [
2200
+ S`
2201
+ :host {
2202
+ display: block;
2203
+ }
2204
+ `
2205
+ ];
2206
+ At([
2207
+ g({ attribute: !0 })
2208
+ ], V.prototype, "name", 2);
2209
+ At([
2210
+ B()
2211
+ ], V.prototype, "widget", 2);
2212
+ At([
2213
+ B()
2214
+ ], V.prototype, "status", 2);
2215
+ customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", bt);
2216
+ customElements.get("ace-trigger") || customElements.define("ace-trigger", P);
2217
+ customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", de);
2218
+ customElements.get("ace-wrapper") || customElements.define("ace-wrapper", Ct);
2219
+ customElements.get("ace-widget") || customElements.define("ace-widget", V);
2220
+ const xi = Ne`
2221
+ <g clip-path="url(#clip0_119_1665)">
2222
+ <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"/>
2223
+ <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"/>
2224
+ <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"/>
2225
+ </g>
2226
+ <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"/>
2227
+ <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"/>
2228
+ <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"/>
2229
+ <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"/>
2230
+ <path d="M51.5839 10.3984H46.6379V24.3077H43.4998V10.3984H38.5068V7.69226H51.5839V10.3984Z" fill="#990AE3"/>
2231
+ <path d="M126.394 7.98875H138.935V10.7756H129.668V14.2592H137.889V17.0461H129.668V21.4587H139.167V24.2456H126.394V7.98875Z" fill="#990AE3"/>
2232
+ <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"/>
2233
+ <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"/>
2234
+ <defs>
2235
+ <clipPath id="clip0_119_1665">
2236
+ <rect width="30.5068" height="32.0011" fill="white"/>
2237
+ </clipPath>
2238
+ </defs>`, fe = ue(m);
2239
+ class Ei extends fe {
2240
+ render() {
2241
+ var e;
2242
+ return (e = this.application.branding().other) != null && e.whiteLabel ? u : C` <div class="copyright">
2243
+ <a
2244
+ aria-label="Powered by Telia ACE"
2245
+ href="https://ace-showcase.com"
2246
+ target="_blank"
2247
+ rel="noopener noreferrer"
2248
+ >
2249
+ <span>Powered by</span>
2250
+ <svg
2251
+ width="142"
2252
+ height="32"
2253
+ viewBox="0 0 142 32"
2254
+ fill="none"
2255
+ xmlns="http://www.w3.org/2000/svg"
2256
+ >
2257
+ ${xi}
2258
+ </svg>
2259
+ </a>
2260
+ </div>`;
2261
+ }
2262
+ }
2263
+ Ei.styles = [
2264
+ fe.styles || [],
2265
+ S`
2266
+ :host {
2267
+ --copyright-text-color: var(--text-on-primary-background);
2268
+ }
2269
+
2270
+ .copyright {
2271
+ padding: var(--spacing-sm);
2272
+ box-shadow: 1px 0px 10px rgba(0, 0, 0, 0.1);
2273
+ z-index: 6;
2274
+ background-color: transparent;
2275
+ }
2276
+
2277
+ a {
2278
+ display: flex;
2279
+ justify-content: center;
2280
+ align-items: center;
2281
+ color: var(--copyright-text-color);
2282
+ text-decoration: none;
2283
+ font-size: 0.8rem;
2284
+ gap: var(--spacing-sm);
2285
+ }
2286
+
2287
+ span {
2288
+ opacity: 0.55;
2289
+ }
2290
+
2291
+ svg {
2292
+ width: 88px;
2293
+ }
2294
+ `
2295
+ ];
2296
+ export {
2297
+ Ei as Copyright,
2298
+ Ei as default
2299
+ };