@telia-ace/widget-components-widget-header-flamingo 1.1.121-rc.0 → 1.1.121-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=async e=>{e.registerComponent("widget-header",Promise.resolve().then(()=>require("./widget-header-
|
|
1
|
+
"use strict";const r=async e=>{e.registerComponent("widget-header",Promise.resolve().then(()=>require("./widget-header-DXe2EWBu.js")))};module.exports=r;
|
package/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/widget-components-widget-header-flamingo",
|
|
3
|
-
"version": "1.1.121-rc.
|
|
3
|
+
"version": "1.1.121-rc.2",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"lit": "^3.0.2",
|
|
6
|
-
"@telia-ace/widget-core-flamingo": "1.1.
|
|
6
|
+
"@telia-ace/widget-core-flamingo": "1.1.121-rc.2",
|
|
7
7
|
"@teliads/components": "^22.1.1",
|
|
8
8
|
"@teliads/icons": "^8.4.0",
|
|
9
9
|
"@lit-labs/motion": "^1.0.8",
|
|
@@ -23,14 +23,14 @@ let si = class {
|
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
const ts = (i) => new si(typeof i == "string" ? i : i + "", void 0, ie), B = (i, ...t) => {
|
|
26
|
-
const e = i.length === 1 ? i[0] : t.reduce((s, n, r) => s + ((o) => {
|
|
26
|
+
const e = i.length === 1 ? i[0] : t.reduce(((s, n, r) => s + ((o) => {
|
|
27
27
|
if (o._$cssResult$ === !0) return o.cssText;
|
|
28
28
|
if (typeof o == "number") return o;
|
|
29
29
|
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.");
|
|
30
|
-
})(n) + i[r + 1], i[0]);
|
|
30
|
+
})(n) + i[r + 1]), i[0]);
|
|
31
31
|
return new si(e, i, ie);
|
|
32
32
|
}, es = (i, t) => {
|
|
33
|
-
if (ee) i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
33
|
+
if (ee) i.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
|
|
34
34
|
else for (const e of t) {
|
|
35
35
|
const s = document.createElement("style"), n = $t.litNonce;
|
|
36
36
|
n !== void 0 && s.setAttribute("nonce", n), s.textContent = e.cssText, i.appendChild(s);
|
|
@@ -142,7 +142,7 @@ let H = class extends HTMLElement {
|
|
|
142
142
|
}
|
|
143
143
|
_$Ev() {
|
|
144
144
|
var t;
|
|
145
|
-
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));
|
|
145
|
+
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)));
|
|
146
146
|
}
|
|
147
147
|
addController(t) {
|
|
148
148
|
var e;
|
|
@@ -163,19 +163,19 @@ let H = class extends HTMLElement {
|
|
|
163
163
|
}
|
|
164
164
|
connectedCallback() {
|
|
165
165
|
var t;
|
|
166
|
-
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
|
|
166
|
+
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach(((e) => {
|
|
167
167
|
var s;
|
|
168
168
|
return (s = e.hostConnected) == null ? void 0 : s.call(e);
|
|
169
|
-
});
|
|
169
|
+
}));
|
|
170
170
|
}
|
|
171
171
|
enableUpdating(t) {
|
|
172
172
|
}
|
|
173
173
|
disconnectedCallback() {
|
|
174
174
|
var t;
|
|
175
|
-
(t = this._$EO) == null || t.forEach((e) => {
|
|
175
|
+
(t = this._$EO) == null || t.forEach(((e) => {
|
|
176
176
|
var s;
|
|
177
177
|
return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
|
|
178
|
-
});
|
|
178
|
+
}));
|
|
179
179
|
}
|
|
180
180
|
attributeChangedCallback(t, e, s) {
|
|
181
181
|
this._$AK(t, s);
|
|
@@ -240,10 +240,10 @@ let H = class extends HTMLElement {
|
|
|
240
240
|
let t = !1;
|
|
241
241
|
const e = this._$AL;
|
|
242
242
|
try {
|
|
243
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((n) => {
|
|
243
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach(((n) => {
|
|
244
244
|
var r;
|
|
245
245
|
return (r = n.hostUpdate) == null ? void 0 : r.call(n);
|
|
246
|
-
}), this.update(e)) : this._$EM();
|
|
246
|
+
})), this.update(e)) : this._$EM();
|
|
247
247
|
} catch (n) {
|
|
248
248
|
throw t = !1, this._$EM(), n;
|
|
249
249
|
}
|
|
@@ -253,10 +253,10 @@ let H = class extends HTMLElement {
|
|
|
253
253
|
}
|
|
254
254
|
_$AE(t) {
|
|
255
255
|
var e;
|
|
256
|
-
(e = this._$EO) == null || e.forEach((s) => {
|
|
256
|
+
(e = this._$EO) == null || e.forEach(((s) => {
|
|
257
257
|
var n;
|
|
258
258
|
return (n = s.hostUpdated) == null ? void 0 : n.call(s);
|
|
259
|
-
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
259
|
+
})), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
260
260
|
}
|
|
261
261
|
_$EM() {
|
|
262
262
|
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
|
@@ -271,7 +271,7 @@ let H = class extends HTMLElement {
|
|
|
271
271
|
return !0;
|
|
272
272
|
}
|
|
273
273
|
update(t) {
|
|
274
|
-
this._$Eq && (this._$Eq = this._$Eq.forEach((e) => this._$ET(e, this[e]))), this._$EM();
|
|
274
|
+
this._$Eq && (this._$Eq = this._$Eq.forEach(((e) => this._$ET(e, this[e])))), this._$EM();
|
|
275
275
|
}
|
|
276
276
|
updated(t) {
|
|
277
277
|
}
|
|
@@ -933,7 +933,7 @@ function Zt(i, t) {
|
|
|
933
933
|
0 <= e && i.splice(e, 1);
|
|
934
934
|
}
|
|
935
935
|
}
|
|
936
|
-
var Pt = function() {
|
|
936
|
+
var Pt = (function() {
|
|
937
937
|
function i(t) {
|
|
938
938
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
939
939
|
}
|
|
@@ -1017,11 +1017,11 @@ var Pt = function() {
|
|
|
1017
1017
|
}, i.prototype.remove = function(t) {
|
|
1018
1018
|
var e = this._finalizers;
|
|
1019
1019
|
e && Zt(e, t), t instanceof i && t._removeParent(this);
|
|
1020
|
-
}, i.EMPTY = function() {
|
|
1020
|
+
}, i.EMPTY = (function() {
|
|
1021
1021
|
var t = new i();
|
|
1022
1022
|
return t.closed = !0, t;
|
|
1023
|
-
}(), i;
|
|
1024
|
-
}(), pi = Pt.EMPTY;
|
|
1023
|
+
})(), i;
|
|
1024
|
+
})(), pi = Pt.EMPTY;
|
|
1025
1025
|
function gi(i) {
|
|
1026
1026
|
return i instanceof Pt || i && "closed" in i && $(i.remove) && $(i.add) && $(i.unsubscribe);
|
|
1027
1027
|
}
|
|
@@ -1051,7 +1051,7 @@ function Le() {
|
|
|
1051
1051
|
function mt(i) {
|
|
1052
1052
|
i();
|
|
1053
1053
|
}
|
|
1054
|
-
var ae = function(i) {
|
|
1054
|
+
var ae = (function(i) {
|
|
1055
1055
|
V(t, i);
|
|
1056
1056
|
function t(e) {
|
|
1057
1057
|
var s = i.call(this) || this;
|
|
@@ -1082,7 +1082,7 @@ var ae = function(i) {
|
|
|
1082
1082
|
this.unsubscribe();
|
|
1083
1083
|
}
|
|
1084
1084
|
}, t;
|
|
1085
|
-
}(Pt), Ps = function() {
|
|
1085
|
+
})(Pt), Ps = (function() {
|
|
1086
1086
|
function i(t) {
|
|
1087
1087
|
this.partialObserver = t;
|
|
1088
1088
|
}
|
|
@@ -1113,7 +1113,7 @@ var ae = function(i) {
|
|
|
1113
1113
|
gt(e);
|
|
1114
1114
|
}
|
|
1115
1115
|
}, i;
|
|
1116
|
-
}(), Xt = function(i) {
|
|
1116
|
+
})(), Xt = (function(i) {
|
|
1117
1117
|
V(t, i);
|
|
1118
1118
|
function t(e, s, n) {
|
|
1119
1119
|
var r = i.call(this) || this, o;
|
|
@@ -1124,7 +1124,7 @@ var ae = function(i) {
|
|
|
1124
1124
|
} : o = e, r.destination = new Ps(o), r;
|
|
1125
1125
|
}
|
|
1126
1126
|
return t;
|
|
1127
|
-
}(ae);
|
|
1127
|
+
})(ae);
|
|
1128
1128
|
function gt(i) {
|
|
1129
1129
|
vi(i);
|
|
1130
1130
|
}
|
|
@@ -1136,9 +1136,9 @@ var Is = {
|
|
|
1136
1136
|
next: Le,
|
|
1137
1137
|
error: Ls,
|
|
1138
1138
|
complete: Le
|
|
1139
|
-
}, le = function() {
|
|
1139
|
+
}, le = (function() {
|
|
1140
1140
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
1141
|
-
}();
|
|
1141
|
+
})();
|
|
1142
1142
|
function $i(i) {
|
|
1143
1143
|
return i;
|
|
1144
1144
|
}
|
|
@@ -1149,7 +1149,7 @@ function Rs(i) {
|
|
|
1149
1149
|
}, e);
|
|
1150
1150
|
};
|
|
1151
1151
|
}
|
|
1152
|
-
var _ = function() {
|
|
1152
|
+
var _ = (function() {
|
|
1153
1153
|
function i(t) {
|
|
1154
1154
|
t && (this._subscribe = t);
|
|
1155
1155
|
}
|
|
@@ -1208,7 +1208,7 @@ var _ = function() {
|
|
|
1208
1208
|
}, i.create = function(t) {
|
|
1209
1209
|
return new i(t);
|
|
1210
1210
|
}, i;
|
|
1211
|
-
}();
|
|
1211
|
+
})();
|
|
1212
1212
|
function Ie(i) {
|
|
1213
1213
|
var t;
|
|
1214
1214
|
return (t = i ?? Os.Promise) !== null && t !== void 0 ? t : Promise;
|
|
@@ -1238,7 +1238,7 @@ function Lt(i) {
|
|
|
1238
1238
|
function St(i, t, e, s, n) {
|
|
1239
1239
|
return new Ns(i, t, e, s, n);
|
|
1240
1240
|
}
|
|
1241
|
-
var Ns = function(i) {
|
|
1241
|
+
var Ns = (function(i) {
|
|
1242
1242
|
V(t, i);
|
|
1243
1243
|
function t(e, s, n, r, o, a) {
|
|
1244
1244
|
var l = i.call(this, e) || this;
|
|
@@ -1273,11 +1273,11 @@ var Ns = function(i) {
|
|
|
1273
1273
|
i.prototype.unsubscribe.call(this), !s && ((e = this.onFinalize) === null || e === void 0 || e.call(this));
|
|
1274
1274
|
}
|
|
1275
1275
|
}, t;
|
|
1276
|
-
}(ae), Fs = fi(function(i) {
|
|
1276
|
+
})(ae), Fs = fi(function(i) {
|
|
1277
1277
|
return function() {
|
|
1278
1278
|
i(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
1279
1279
|
};
|
|
1280
|
-
}), ut = function(i) {
|
|
1280
|
+
}), ut = (function(i) {
|
|
1281
1281
|
V(t, i);
|
|
1282
1282
|
function t() {
|
|
1283
1283
|
var e = i.call(this) || this;
|
|
@@ -1356,7 +1356,7 @@ var Ns = function(i) {
|
|
|
1356
1356
|
}, t.create = function(e, s) {
|
|
1357
1357
|
return new Re(e, s);
|
|
1358
1358
|
}, t;
|
|
1359
|
-
}(_), Re = function(i) {
|
|
1359
|
+
})(_), Re = (function(i) {
|
|
1360
1360
|
V(t, i);
|
|
1361
1361
|
function t(e, s) {
|
|
1362
1362
|
var n = i.call(this) || this;
|
|
@@ -1375,7 +1375,7 @@ var Ns = function(i) {
|
|
|
1375
1375
|
var s, n;
|
|
1376
1376
|
return (n = (s = this.source) === null || s === void 0 ? void 0 : s.subscribe(e)) !== null && n !== void 0 ? n : pi;
|
|
1377
1377
|
}, t;
|
|
1378
|
-
}(ut), mi = function(i) {
|
|
1378
|
+
})(ut), mi = (function(i) {
|
|
1379
1379
|
V(t, i);
|
|
1380
1380
|
function t(e) {
|
|
1381
1381
|
var s = i.call(this) || this;
|
|
@@ -1398,7 +1398,7 @@ var Ns = function(i) {
|
|
|
1398
1398
|
}, t.prototype.next = function(e) {
|
|
1399
1399
|
i.prototype.next.call(this, this._value = e);
|
|
1400
1400
|
}, t;
|
|
1401
|
-
}(ut), Bs = new _(function(i) {
|
|
1401
|
+
})(ut), Bs = new _(function(i) {
|
|
1402
1402
|
return i.complete();
|
|
1403
1403
|
});
|
|
1404
1404
|
function Hs(i) {
|
|
@@ -1413,9 +1413,9 @@ function zs(i) {
|
|
|
1413
1413
|
function Ds(i, t) {
|
|
1414
1414
|
return typeof yi(i) == "number" ? i.pop() : t;
|
|
1415
1415
|
}
|
|
1416
|
-
var bi = function(i) {
|
|
1416
|
+
var bi = (function(i) {
|
|
1417
1417
|
return i && typeof i.length == "number" && typeof i != "function";
|
|
1418
|
-
};
|
|
1418
|
+
});
|
|
1419
1419
|
function wi(i) {
|
|
1420
1420
|
return $(i == null ? void 0 : i.then);
|
|
1421
1421
|
}
|
|
@@ -1783,7 +1783,7 @@ un([
|
|
|
1783
1783
|
], At.prototype, "anchor");
|
|
1784
1784
|
const hn = /* @__PURE__ */ new WeakMap();
|
|
1785
1785
|
let Ue = 0;
|
|
1786
|
-
const Dt = /* @__PURE__ */ new Map(), Me = /* @__PURE__ */ new WeakSet(), je = () => new Promise((i) => requestAnimationFrame(i)), dn = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Ne = (i, t) => {
|
|
1786
|
+
const Dt = /* @__PURE__ */ new Map(), Me = /* @__PURE__ */ new WeakSet(), je = () => new Promise(((i) => requestAnimationFrame(i))), dn = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Ne = (i, t) => {
|
|
1787
1787
|
const e = i - t;
|
|
1788
1788
|
return e === 0 ? void 0 : e;
|
|
1789
1789
|
}, Fe = (i, t) => {
|
|
@@ -1813,9 +1813,9 @@ class gn extends hi {
|
|
|
1813
1813
|
}
|
|
1814
1814
|
createFinished() {
|
|
1815
1815
|
var t;
|
|
1816
|
-
(t = this.resolveFinished) == null || t.call(this), this.finished = new Promise((e) => {
|
|
1816
|
+
(t = this.resolveFinished) == null || t.call(this), this.finished = new Promise(((e) => {
|
|
1817
1817
|
this.l = e;
|
|
1818
|
-
});
|
|
1818
|
+
}));
|
|
1819
1819
|
}
|
|
1820
1820
|
async resolveFinished() {
|
|
1821
1821
|
var t;
|
|
@@ -1834,7 +1834,7 @@ class gn extends hi {
|
|
|
1834
1834
|
update(t, [e]) {
|
|
1835
1835
|
var n;
|
|
1836
1836
|
const s = this.u === void 0;
|
|
1837
|
-
return s && (this.u = (n = t.options) == null ? void 0 : n.host, this.u.addController(this), this.u.updateComplete.then((r) => this.t = !0), this.element = t.element, Be.set(this.element, this)), this.optionsOrCallback = e, (s || typeof e != "function") && this.p(e), this.render(e);
|
|
1837
|
+
return s && (this.u = (n = t.options) == null ? void 0 : n.host, this.u.addController(this), this.u.updateComplete.then(((r) => this.t = !0)), this.element = t.element, Be.set(this.element, this)), this.optionsOrCallback = e, (s || typeof e != "function") && this.p(e), this.render(e);
|
|
1838
1838
|
}
|
|
1839
1839
|
p(t) {
|
|
1840
1840
|
t = t ?? {};
|
|
@@ -1843,16 +1843,16 @@ class gn extends hi {
|
|
|
1843
1843
|
}
|
|
1844
1844
|
m() {
|
|
1845
1845
|
const t = {}, e = this.element.getBoundingClientRect(), s = getComputedStyle(this.element);
|
|
1846
|
-
return this.options.properties.forEach((n) => {
|
|
1846
|
+
return this.options.properties.forEach(((n) => {
|
|
1847
1847
|
const r = e[n] ?? (Wt[n] ? void 0 : s[n]), o = Number(r);
|
|
1848
1848
|
t[n] = isNaN(o) ? r + "" : o;
|
|
1849
|
-
}), t;
|
|
1849
|
+
})), t;
|
|
1850
1850
|
}
|
|
1851
1851
|
v() {
|
|
1852
1852
|
let t, e = !0;
|
|
1853
1853
|
return this.options.guard && (t = this.options.guard(), e = ((s, n) => {
|
|
1854
1854
|
if (Array.isArray(s)) {
|
|
1855
|
-
if (Array.isArray(n) && n.length === s.length && s.every((r, o) => r === n[o])) return !1;
|
|
1855
|
+
if (Array.isArray(n) && n.length === s.length && s.every(((r, o) => r === n[o]))) return !1;
|
|
1856
1856
|
} else if (n === s) return !1;
|
|
1857
1857
|
return !0;
|
|
1858
1858
|
})(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;
|
|
@@ -1873,7 +1873,7 @@ class gn extends hi {
|
|
|
1873
1873
|
if (r) {
|
|
1874
1874
|
Dt.delete(this.options.inId);
|
|
1875
1875
|
const { from: o, to: a } = this.N(r, n, e);
|
|
1876
|
-
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Ue++, t.forEach((l) => l.zIndex = Ue);
|
|
1876
|
+
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Ue++, t.forEach(((l) => l.zIndex = Ue));
|
|
1877
1877
|
} else this.options.in && (t = [...this.options.in, {}]);
|
|
1878
1878
|
}
|
|
1879
1879
|
this.animate(t, s);
|
|
@@ -1923,21 +1923,21 @@ class gn extends hi {
|
|
|
1923
1923
|
}
|
|
1924
1924
|
get isHostRendered() {
|
|
1925
1925
|
const t = Me.has(this.u);
|
|
1926
|
-
return t || this.u.updateComplete.then(() => {
|
|
1926
|
+
return t || this.u.updateComplete.then((() => {
|
|
1927
1927
|
Me.add(this.u);
|
|
1928
|
-
}), t;
|
|
1928
|
+
})), t;
|
|
1929
1929
|
}
|
|
1930
1930
|
j(t, e = this.O()) {
|
|
1931
1931
|
const s = { ...fn };
|
|
1932
|
-
return e.forEach((n) => Object.assign(s, n.options.keyframeOptions)), Object.assign(s, t), s;
|
|
1932
|
+
return e.forEach(((n) => Object.assign(s, n.options.keyframeOptions))), Object.assign(s, t), s;
|
|
1933
1933
|
}
|
|
1934
1934
|
N(t, e, s) {
|
|
1935
1935
|
t = { ...t }, e = { ...e };
|
|
1936
|
-
const n = s.map((a) => a.animatingProperties).filter((a) => a !== void 0);
|
|
1936
|
+
const n = s.map(((a) => a.animatingProperties)).filter(((a) => a !== void 0));
|
|
1937
1937
|
let r = 1, o = 1;
|
|
1938
|
-
return n.length > 0 && (n.forEach((a) => {
|
|
1938
|
+
return n.length > 0 && (n.forEach(((a) => {
|
|
1939
1939
|
a.width && (r /= a.width), a.height && (o /= a.height);
|
|
1940
|
-
}), t.left !== void 0 && e.left !== void 0 && (t.left = r * t.left, e.left = r * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = o * t.top, e.top = o * e.top)), { from: t, to: e };
|
|
1940
|
+
})), t.left !== void 0 && e.left !== void 0 && (t.left = r * t.left, e.left = r * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = o * t.top, e.top = o * e.top)), { from: t, to: e };
|
|
1941
1941
|
}
|
|
1942
1942
|
calculateKeyframes(t, e, s = !1) {
|
|
1943
1943
|
const n = {}, r = {};
|
|
@@ -1989,12 +1989,12 @@ const He = oe(class extends ci {
|
|
|
1989
1989
|
if (super(i), i.type !== re.ATTRIBUTE || i.name !== "class" || ((t = i.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
1990
1990
|
}
|
|
1991
1991
|
render(i) {
|
|
1992
|
-
return " " + Object.keys(i).filter((t) => i[t]).join(" ") + " ";
|
|
1992
|
+
return " " + Object.keys(i).filter(((t) => i[t])).join(" ") + " ";
|
|
1993
1993
|
}
|
|
1994
1994
|
update(i, [t]) {
|
|
1995
1995
|
var s, n;
|
|
1996
1996
|
if (this.st === void 0) {
|
|
1997
|
-
this.st = /* @__PURE__ */ new Set(), i.strings !== void 0 && (this.nt = new Set(i.strings.join(" ").split(/\s/).filter((r) => r !== "")));
|
|
1997
|
+
this.st = /* @__PURE__ */ new Set(), i.strings !== void 0 && (this.nt = new Set(i.strings.join(" ").split(/\s/).filter(((r) => r !== ""))));
|
|
1998
1998
|
for (const r in t) t[r] && !((s = this.nt) != null && s.has(r)) && this.st.add(r);
|
|
1999
1999
|
return this.render(t);
|
|
2000
2000
|
}
|
|
@@ -2516,9 +2516,9 @@ function kn({ context: i }) {
|
|
|
2516
2516
|
return s.set(this, new ze(this, { context: i, initialValue: n })), n;
|
|
2517
2517
|
} };
|
|
2518
2518
|
{
|
|
2519
|
-
t.constructor.addInitializer((o) => {
|
|
2519
|
+
t.constructor.addInitializer(((o) => {
|
|
2520
2520
|
s.set(o, new ze(o, { context: i }));
|
|
2521
|
-
});
|
|
2521
|
+
}));
|
|
2522
2522
|
const n = Object.getOwnPropertyDescriptor(t, e);
|
|
2523
2523
|
let r;
|
|
2524
2524
|
if (n === void 0) {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const $t=globalThis,ee=$t.ShadowRoot&&($t.ShadyCSS===void 0||$t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ie=Symbol(),we=new WeakMap;let si=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==ie)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(ee&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=we.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&we.set(e,t))}return t}toString(){return this.cssText}};const ts=i=>new si(typeof i=="string"?i:i+"",void 0,ie),H=(i,...t)=>{const e=i.length===1?i[0]:t.reduce((s,n,r)=>s+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;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.")})(n)+i[r+1],i[0]);return new si(e,i,ie)},es=(i,t)=>{if(ee)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),n=$t.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=e.cssText,i.appendChild(s)}},_e=ee?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return ts(e)})(i):i;/**
|
|
5
|
+
*/const $t=globalThis,ee=$t.ShadowRoot&&($t.ShadyCSS===void 0||$t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ie=Symbol(),we=new WeakMap;let si=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==ie)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(ee&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=we.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&we.set(e,t))}return t}toString(){return this.cssText}};const ts=i=>new si(typeof i=="string"?i:i+"",void 0,ie),H=(i,...t)=>{const e=i.length===1?i[0]:t.reduce(((s,n,r)=>s+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;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.")})(n)+i[r+1]),i[0]);return new si(e,i,ie)},es=(i,t)=>{if(ee)i.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const e of t){const s=document.createElement("style"),n=$t.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=e.cssText,i.appendChild(s)}},_e=ee?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return ts(e)})(i):i;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const{is,defineProperty:ss,getOwnPropertyDescriptor:ns,getOwnPropertyNames:rs,getOwnPropertySymbols:os,getPrototypeOf:as}=Object,P=globalThis,xe=P.trustedTypes,ls=xe?xe.emptyScript:"",jt=P.reactiveElementPolyfillSupport,it=(i,t)=>i,yt={toAttribute(i,t){switch(t){case Boolean:i=i?ls:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},se=(i,t)=>!is(i,t),Se={attribute:!0,type:String,converter:yt,reflect:!1,useDefault:!1,hasChanged:se};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),P.litPropertyMetadata??(P.litPropertyMetadata=new WeakMap);let B=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Se){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),n=this.getPropertyDescriptor(t,s,e);n!==void 0&&ss(this.prototype,t,n)}}static getPropertyDescriptor(t,e,s){const{get:n,set:r}=ns(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get:n,set(o){const a=n==null?void 0:n.call(this);r==null||r.call(this,o),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Se}static _$Ei(){if(this.hasOwnProperty(it("elementProperties")))return;const t=as(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(it("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(it("properties"))){const e=this.properties,s=[...rs(e),...os(e)];for(const n of s)this.createProperty(n,e[n])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,n]of e)this.elementProperties.set(s,n)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const n=this._$Eu(e,s);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const n of s)e.unshift(_e(n))}else t!==void 0&&e.push(_e(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return es(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){var r;const s=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,s);if(n!==void 0&&s.reflect===!0){const o=(((r=s.converter)==null?void 0:r.toAttribute)!==void 0?s.converter:yt).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(t,e){var r,o;const s=this.constructor,n=s._$Eh.get(t);if(n!==void 0&&this._$Em!==n){const a=s.getPropertyOptions(n),l=typeof a.converter=="function"?{fromAttribute:a.converter}:((r=a.converter)==null?void 0:r.fromAttribute)!==void 0?a.converter:yt;this._$Em=n;const c=l.fromAttribute(e,a.type);this[n]=c??((o=this._$Ej)==null?void 0:o.get(n))??c,this._$Em=null}}requestUpdate(t,e,s){var n;if(t!==void 0){const r=this.constructor,o=this[t];if(s??(s=r.getPropertyOptions(t)),!((s.hasChanged??se)(o,e)||s.useDefault&&s.reflect&&o===((n=this._$Ej)==null?void 0:n.get(t))&&!this.hasAttribute(r._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:n,wrapped:r},o){s&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,o??e??this[t]),r!==!0||o!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),n===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[r,o]of this._$Ep)this[r]=o;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[r,o]of n){const{wrapped:a}=o,l=this[r];a!==!0||this._$AL.has(r)||l===void 0||this.C(r,void 0,o,l)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(n=>{var r;return(r=n.hostUpdate)==null?void 0:r.call(n)}),this.update(e)):this._$EM()}catch(n){throw t=!1,this._$EM(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var n;return(n=s.hostUpdated)==null?void 0:n.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};B.elementStyles=[],B.shadowRootOptions={mode:"open"},B[it("elementProperties")]=new Map,B[it("finalized")]=new Map,jt==null||jt({ReactiveElement:B}),(P.reactiveElementVersions??(P.reactiveElementVersions=[])).push("2.1.1");/**
|
|
9
|
+
*/const{is,defineProperty:ss,getOwnPropertyDescriptor:ns,getOwnPropertyNames:rs,getOwnPropertySymbols:os,getPrototypeOf:as}=Object,P=globalThis,xe=P.trustedTypes,ls=xe?xe.emptyScript:"",jt=P.reactiveElementPolyfillSupport,it=(i,t)=>i,yt={toAttribute(i,t){switch(t){case Boolean:i=i?ls:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},se=(i,t)=>!is(i,t),Se={attribute:!0,type:String,converter:yt,reflect:!1,useDefault:!1,hasChanged:se};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),P.litPropertyMetadata??(P.litPropertyMetadata=new WeakMap);let B=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Se){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),n=this.getPropertyDescriptor(t,s,e);n!==void 0&&ss(this.prototype,t,n)}}static getPropertyDescriptor(t,e,s){const{get:n,set:r}=ns(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get:n,set(o){const a=n==null?void 0:n.call(this);r==null||r.call(this,o),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Se}static _$Ei(){if(this.hasOwnProperty(it("elementProperties")))return;const t=as(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(it("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(it("properties"))){const e=this.properties,s=[...rs(e),...os(e)];for(const n of s)this.createProperty(n,e[n])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,n]of e)this.elementProperties.set(s,n)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const n=this._$Eu(e,s);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const n of s)e.unshift(_e(n))}else t!==void 0&&e.push(_e(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach((e=>e(this)))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return es(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach((e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)}))}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach((e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)}))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){var r;const s=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,s);if(n!==void 0&&s.reflect===!0){const o=(((r=s.converter)==null?void 0:r.toAttribute)!==void 0?s.converter:yt).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(t,e){var r,o;const s=this.constructor,n=s._$Eh.get(t);if(n!==void 0&&this._$Em!==n){const a=s.getPropertyOptions(n),l=typeof a.converter=="function"?{fromAttribute:a.converter}:((r=a.converter)==null?void 0:r.fromAttribute)!==void 0?a.converter:yt;this._$Em=n;const c=l.fromAttribute(e,a.type);this[n]=c??((o=this._$Ej)==null?void 0:o.get(n))??c,this._$Em=null}}requestUpdate(t,e,s){var n;if(t!==void 0){const r=this.constructor,o=this[t];if(s??(s=r.getPropertyOptions(t)),!((s.hasChanged??se)(o,e)||s.useDefault&&s.reflect&&o===((n=this._$Ej)==null?void 0:n.get(t))&&!this.hasAttribute(r._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:n,wrapped:r},o){s&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,o??e??this[t]),r!==!0||o!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),n===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[r,o]of this._$Ep)this[r]=o;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[r,o]of n){const{wrapped:a}=o,l=this[r];a!==!0||this._$AL.has(r)||l===void 0||this.C(r,void 0,o,l)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach((n=>{var r;return(r=n.hostUpdate)==null?void 0:r.call(n)})),this.update(e)):this._$EM()}catch(n){throw t=!1,this._$EM(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach((s=>{var n;return(n=s.hostUpdated)==null?void 0:n.call(s)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach((e=>this._$ET(e,this[e])))),this._$EM()}updated(t){}firstUpdated(t){}};B.elementStyles=[],B.shadowRootOptions={mode:"open"},B[it("elementProperties")]=new Map,B[it("finalized")]=new Map,jt==null||jt({ReactiveElement:B}),(P.reactiveElementVersions??(P.reactiveElementVersions=[])).push("2.1.1");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
43
|
*/const _t=()=>new As;let As=class{};const Bt=new WeakMap,xt=oe(class extends hi{render(i){return p}update(i,[t]){var s;const e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=(s=i.options)==null?void 0:s.host,this.rt(this.ct=i.element)),p}rt(i){if(this.isConnected||(i=void 0),typeof this.G=="function"){const t=this.ht??globalThis;let e=Bt.get(t);e===void 0&&(e=new WeakMap,Bt.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,i),i!==void 0&&this.G.call(this.ht,i)}else this.G.value=i}get lt(){var i,t;return typeof this.G=="function"?(i=Bt.get(this.ht??globalThis))==null?void 0:i.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Gt=function(i,t){return Gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,s){e.__proto__=s}||function(e,s){for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])},Gt(i,t)};function V(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Gt(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function ks(i,t,e,s){function n(r){return r instanceof e?r:new e(function(o){o(r)})}return new(e||(e=Promise))(function(r,o){function a(u){try{c(s.next(u))}catch(h){o(h)}}function l(u){try{c(s.throw(u))}catch(h){o(h)}}function c(u){u.done?r(u.value):n(u.value).then(a,l)}c((s=s.apply(i,t||[])).next())})}function di(i,t){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},s,n,r,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(u){return l([c,u])}}function l(c){if(s)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(e=0)),e;)try{if(s=1,n&&(r=c[0]&2?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return e.label++,{value:c[1],done:!1};case 5:e.label++,n=c[1],c=[0];continue;case 7:c=e.ops.pop(),e.trys.pop();continue;default:if(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){e.label=c[1];break}if(c[0]===6&&e.label<r[1]){e.label=r[1],r=c;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(c);break}r[2]&&e.ops.pop(),e.trys.pop();continue}c=t.call(i,e)}catch(u){c=[6,u],n=0}finally{s=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function X(i){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&i[t],s=0;if(e)return e.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&s>=i.length&&(i=void 0),{value:i&&i[s++],done:!i}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Yt(i,t){var e=typeof Symbol=="function"&&i[Symbol.iterator];if(!e)return i;var s=e.call(i),n,r=[],o;try{for(;(t===void 0||t-- >0)&&!(n=s.next()).done;)r.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(e=s.return)&&e.call(s)}finally{if(o)throw o.error}}return r}function Kt(i,t,e){if(e||arguments.length===2)for(var s=0,n=t.length,r;s<n;s++)(r||!(s in t))&&(r||(r=Array.prototype.slice.call(t,0,s)),r[s]=t[s]);return i.concat(r||Array.prototype.slice.call(t))}function G(i){return this instanceof G?(this.v=i,this):new G(i)}function Cs(i,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=e.apply(i,t||[]),n,r=[];return n=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),n[Symbol.asyncIterator]=function(){return this},n;function o(f){return function(v){return Promise.resolve(v).then(f,h)}}function a(f,v){s[f]&&(n[f]=function(g){return new Promise(function(pt,tt){r.push([f,g,pt,tt])>1||l(f,g)})},v&&(n[f]=v(n[f])))}function l(f,v){try{c(s[f](v))}catch(g){d(r[0][3],g)}}function c(f){f.value instanceof G?Promise.resolve(f.value.v).then(u,h):d(r[0][2],f)}function u(f){l("next",f)}function h(f){l("throw",f)}function d(f,v){f(v),r.shift(),r.length&&l(r[0][0],r[0][1])}}function Es(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=i[Symbol.asyncIterator],e;return t?t.call(i):(i=typeof X=="function"?X(i):i[Symbol.iterator](),e={},s("next"),s("throw"),s("return"),e[Symbol.asyncIterator]=function(){return this},e);function s(r){e[r]=i[r]&&function(o){return new Promise(function(a,l){o=i[r](o),n(a,l,o.done,o.value)})}}function n(r,o,a,l){Promise.resolve(l).then(function(c){r({value:c,done:a})},o)}}function $(i){return typeof i=="function"}function fi(i){var t=function(s){Error.call(s),s.stack=new Error().stack},e=i(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var zt=fi(function(i){return function(e){i(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
44
44
|
`+e.map(function(s,n){return n+1+") "+s.toString()}).join(`
|
|
45
|
-
`):"",this.name="UnsubscriptionError",this.errors=e}});function Zt(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var Pt=function(){function i(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var t,e,s,n,r;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=X(o),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var u=this.initialTeardown;if($(u))try{u()}catch(g){r=g instanceof zt?g.errors:[g]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=X(h),f=d.next();!f.done;f=d.next()){var v=f.value;try{Pe(v)}catch(g){r=r??[],g instanceof zt?r=Kt(Kt([],Yt(r)),Yt(g.errors)):r.push(g)}}}catch(g){s={error:g}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(s)throw s.error}}}if(r)throw new zt(r)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Pe(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},i.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},i.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},i.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Zt(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&Zt(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=function(){var t=new i;return t.closed=!0,t}(),i}(),pi=Pt.EMPTY;function gi(i){return i instanceof Pt||i&&"closed"in i&&$(i.remove)&&$(i.add)&&$(i.unsubscribe)}function Pe(i){$(i)?i():i.unsubscribe()}var Os={Promise:void 0},Ts={setTimeout:function(i,t){for(var e=[],s=2;s<arguments.length;s++)e[s-2]=arguments[s];return setTimeout.apply(void 0,Kt([i,t],Yt(e)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function vi(i){Ts.setTimeout(function(){throw i})}function Le(){}function mt(i){i()}var ae=function(i){V(t,i);function t(e){var s=i.call(this)||this;return s.isStopped=!1,e?(s.destination=e,gi(e)&&e.add(s)):s.destination=Is,s}return t.create=function(e,s,n){return new Xt(e,s,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Pt),Ps=function(){function i(t){this.partialObserver=t}return i.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(s){gt(s)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(s){gt(s)}else gt(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){gt(e)}},i}(),Xt=function(i){V(t,i);function t(e,s,n){var r=i.call(this)||this,o;return $(e)||!e?o={next:e??void 0,error:s??void 0,complete:n??void 0}:o=e,r.destination=new Ps(o),r}return t}(ae);function gt(i){vi(i)}function Ls(i){throw i}var Is={closed:!0,next:Le,error:Ls,complete:Le},le=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function $i(i){return i}function Rs(i){return i.length===0?$i:i.length===1?i[0]:function(e){return i.reduce(function(s,n){return n(s)},e)}}var _=function(){function i(t){t&&(this._subscribe=t)}return i.prototype.lift=function(t){var e=new i;return e.source=this,e.operator=t,e},i.prototype.subscribe=function(t,e,s){var n=this,r=Ms(t)?t:new Xt(t,e,s);return mt(function(){var o=n,a=o.operator,l=o.source;r.add(a?a.call(r,l):l?n._subscribe(r):n._trySubscribe(r))}),r},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(t,e){var s=this;return e=Ie(e),new e(function(n,r){var o=new Xt({next:function(a){try{t(a)}catch(l){r(l),o.unsubscribe()}},error:r,complete:n});s.subscribe(o)})},i.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},i.prototype[le]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Rs(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=Ie(t),new t(function(s,n){var r;e.subscribe(function(o){return r=o},function(o){return n(o)},function(){return s(r)})})},i.create=function(t){return new i(t)},i}();function Ie(i){var t;return(t=i??Os.Promise)!==null&&t!==void 0?t:Promise}function Us(i){return i&&$(i.next)&&$(i.error)&&$(i.complete)}function Ms(i){return i&&i instanceof ae||Us(i)&&gi(i)}function js(i){return $(i==null?void 0:i.lift)}function Lt(i){return function(t){if(js(t))return t.lift(function(e){try{return i(e,this)}catch(s){this.error(s)}});throw new TypeError("Unable to lift unknown Observable type")}}function St(i,t,e,s,n){return new Ns(i,t,e,s,n)}var Ns=function(i){V(t,i);function t(e,s,n,r,o,a){var l=i.call(this,e)||this;return l.onFinalize=o,l.shouldUnsubscribe=a,l._next=s?function(c){try{s(c)}catch(u){e.error(u)}}:i.prototype._next,l._error=r?function(c){try{r(c)}catch(u){e.error(u)}finally{this.unsubscribe()}}:i.prototype._error,l._complete=n?function(){try{n()}catch(c){e.error(c)}finally{this.unsubscribe()}}:i.prototype._complete,l}return t.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var s=this.closed;i.prototype.unsubscribe.call(this),!s&&((e=this.onFinalize)===null||e===void 0||e.call(this))}},t}(ae),Fs=fi(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ut=function(i){V(t,i);function t(){var e=i.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var s=new Re(this,this);return s.operator=e,s},t.prototype._throwIfClosed=function(){if(this.closed)throw new Fs},t.prototype.next=function(e){var s=this;mt(function(){var n,r;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var o=X(s.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(e)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var s=this;mt(function(){if(s._throwIfClosed(),!s.isStopped){s.hasError=s.isStopped=!0,s.thrownError=e;for(var n=s.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;mt(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var s=e.observers;s.length;)s.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var s=this,n=this,r=n.hasError,o=n.isStopped,a=n.observers;return r||o?pi:(this.currentObservers=null,a.push(e),new Pt(function(){s.currentObservers=null,Zt(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var s=this,n=s.hasError,r=s.thrownError,o=s.isStopped;n?e.error(r):o&&e.complete()},t.prototype.asObservable=function(){var e=new _;return e.source=this,e},t.create=function(e,s){return new Re(e,s)},t}(_),Re=function(i){V(t,i);function t(e,s){var n=i.call(this)||this;return n.destination=e,n.source=s,n}return t.prototype.next=function(e){var s,n;(n=(s=this.destination)===null||s===void 0?void 0:s.next)===null||n===void 0||n.call(s,e)},t.prototype.error=function(e){var s,n;(n=(s=this.destination)===null||s===void 0?void 0:s.error)===null||n===void 0||n.call(s,e)},t.prototype.complete=function(){var e,s;(s=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||s===void 0||s.call(e)},t.prototype._subscribe=function(e){var s,n;return(n=(s=this.source)===null||s===void 0?void 0:s.subscribe(e))!==null&&n!==void 0?n:pi},t}(ut),mi=function(i){V(t,i);function t(e){var s=i.call(this)||this;return s._value=e,s}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var s=i.prototype._subscribe.call(this,e);return!s.closed&&e.next(this._value),s},t.prototype.getValue=function(){var e=this,s=e.hasError,n=e.thrownError,r=e._value;if(s)throw n;return this._throwIfClosed(),r},t.prototype.next=function(e){i.prototype.next.call(this,this._value=e)},t}(ut),Hs=new _(function(i){return i.complete()});function Bs(i){return i&&$(i.schedule)}function yi(i){return i[i.length-1]}function zs(i){return Bs(yi(i))?i.pop():void 0}function Ds(i,t){return typeof yi(i)=="number"?i.pop():t}var bi=function(i){return i&&typeof i.length=="number"&&typeof i!="function"};function wi(i){return $(i==null?void 0:i.then)}function _i(i){return $(i[le])}function xi(i){return Symbol.asyncIterator&&$(i==null?void 0:i[Symbol.asyncIterator])}function Si(i){return new TypeError("You provided "+(i!==null&&typeof i=="object"?"an invalid object":"'"+i+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Ws(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ai=Ws();function ki(i){return $(i==null?void 0:i[Ai])}function Ci(i){return Cs(this,arguments,function(){var e,s,n,r;return di(this,function(o){switch(o.label){case 0:e=i.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,G(e.read())];case 3:return s=o.sent(),n=s.value,r=s.done,r?[4,G(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,G(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}function Ei(i){return $(i==null?void 0:i.getReader)}function J(i){if(i instanceof _)return i;if(i!=null){if(_i(i))return qs(i);if(bi(i))return Gs(i);if(wi(i))return Ys(i);if(xi(i))return Oi(i);if(ki(i))return Ks(i);if(Ei(i))return Zs(i)}throw Si(i)}function qs(i){return new _(function(t){var e=i[le]();if($(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Gs(i){return new _(function(t){for(var e=0;e<i.length&&!t.closed;e++)t.next(i[e]);t.complete()})}function Ys(i){return new _(function(t){i.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,vi)})}function Ks(i){return new _(function(t){var e,s;try{for(var n=X(i),r=n.next();!r.done;r=n.next()){var o=r.value;if(t.next(o),t.closed)return}}catch(a){e={error:a}}finally{try{r&&!r.done&&(s=n.return)&&s.call(n)}finally{if(e)throw e.error}}t.complete()})}function Oi(i){return new _(function(t){Xs(i,t).catch(function(e){return t.error(e)})})}function Zs(i){return Oi(Ci(i))}function Xs(i,t){var e,s,n,r;return ks(this,void 0,void 0,function(){var o,a;return di(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),e=Es(i),l.label=1;case 1:return[4,e.next()];case 2:if(s=l.sent(),!!s.done)return[3,4];if(o=s.value,t.next(o),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),n={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),s&&!s.done&&(r=e.return)?[4,r.call(e)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function M(i,t,e,s,n){s===void 0&&(s=0),n===void 0&&(n=!1);var r=t.schedule(function(){e(),n?i.add(this.schedule(null,s)):this.unsubscribe()},s);if(i.add(r),!n)return r}function Ti(i,t){return t===void 0&&(t=0),Lt(function(e,s){e.subscribe(St(s,function(n){return M(s,i,function(){return s.next(n)},t)},function(){return M(s,i,function(){return s.complete()},t)},function(n){return M(s,i,function(){return s.error(n)},t)}))})}function Pi(i,t){return t===void 0&&(t=0),Lt(function(e,s){s.add(i.schedule(function(){return e.subscribe(s)},t))})}function Qs(i,t){return J(i).pipe(Pi(t),Ti(t))}function Vs(i,t){return J(i).pipe(Pi(t),Ti(t))}function Js(i,t){return new _(function(e){var s=0;return t.schedule(function(){s===i.length?e.complete():(e.next(i[s++]),e.closed||this.schedule())})})}function tn(i,t){return new _(function(e){var s;return M(e,t,function(){s=i[Ai](),M(e,t,function(){var n,r,o;try{n=s.next(),r=n.value,o=n.done}catch(a){e.error(a);return}o?e.complete():e.next(r)},0,!0)}),function(){return $(s==null?void 0:s.return)&&s.return()}})}function Li(i,t){if(!i)throw new Error("Iterable cannot be null");return new _(function(e){M(e,t,function(){var s=i[Symbol.asyncIterator]();M(e,t,function(){s.next().then(function(n){n.done?e.complete():e.next(n.value)})},0,!0)})})}function en(i,t){return Li(Ci(i),t)}function sn(i,t){if(i!=null){if(_i(i))return Qs(i,t);if(bi(i))return Js(i,t);if(wi(i))return Vs(i,t);if(xi(i))return Li(i,t);if(ki(i))return tn(i,t);if(Ei(i))return en(i,t)}throw Si(i)}function nn(i,t){return t?sn(i,t):J(i)}function rn(i,t){return Lt(function(e,s){var n=0;e.subscribe(St(s,function(r){s.next(i.call(t,r,n++))}))})}function on(i,t,e,s,n,r,o,a){var l=[],c=0,u=0,h=!1,d=function(){h&&!l.length&&!c&&t.complete()},f=function(g){return c<s?v(g):l.push(g)},v=function(g){c++;var pt=!1;J(e(g,u++)).subscribe(St(t,function(tt){t.next(tt)},function(){pt=!0},void 0,function(){if(pt)try{c--;for(var tt=function(){var Mt=l.shift();o||v(Mt)};l.length&&c<s;)tt();d()}catch(Mt){t.error(Mt)}}))};return i.subscribe(St(t,f,function(){h=!0,d()})),function(){}}function Ii(i,t,e){return e===void 0&&(e=1/0),$(t)?Ii(function(s,n){return rn(function(r,o){return t(s,r,n,o)})(J(i(s,n)))},e):(typeof t=="number"&&(e=t),Lt(function(s,n){return on(s,n,i,e)}))}function an(i){return i===void 0&&(i=1/0),Ii($i,i)}function ln(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];var e=zs(i),s=Ds(i,1/0),n=i;return n.length?n.length===1?J(n[0]):an(s)(nn(n,e)):Hs}var cn=Object.defineProperty,un=(i,t,e,s)=>{for(var n=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=o(t,e,n)||n);return n&&cn(t,e,n),n};const ge=class ge extends A{constructor(){super(...arguments),this.anchor="BottomRight"}appendChild(t){var e;return(e=this.shadowRoot)==null||e.appendChild(t),t}render(){return this.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right"),p}};ge.styles=[H`
|
|
45
|
+
`):"",this.name="UnsubscriptionError",this.errors=e}});function Zt(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var Pt=(function(){function i(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var t,e,s,n,r;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=X(o),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var u=this.initialTeardown;if($(u))try{u()}catch(g){r=g instanceof zt?g.errors:[g]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=X(h),f=d.next();!f.done;f=d.next()){var v=f.value;try{Pe(v)}catch(g){r=r??[],g instanceof zt?r=Kt(Kt([],Yt(r)),Yt(g.errors)):r.push(g)}}}catch(g){s={error:g}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(s)throw s.error}}}if(r)throw new zt(r)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Pe(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},i.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},i.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},i.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Zt(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&Zt(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=(function(){var t=new i;return t.closed=!0,t})(),i})(),pi=Pt.EMPTY;function gi(i){return i instanceof Pt||i&&"closed"in i&&$(i.remove)&&$(i.add)&&$(i.unsubscribe)}function Pe(i){$(i)?i():i.unsubscribe()}var Os={Promise:void 0},Ts={setTimeout:function(i,t){for(var e=[],s=2;s<arguments.length;s++)e[s-2]=arguments[s];return setTimeout.apply(void 0,Kt([i,t],Yt(e)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function vi(i){Ts.setTimeout(function(){throw i})}function Le(){}function mt(i){i()}var ae=(function(i){V(t,i);function t(e){var s=i.call(this)||this;return s.isStopped=!1,e?(s.destination=e,gi(e)&&e.add(s)):s.destination=Is,s}return t.create=function(e,s,n){return new Xt(e,s,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(Pt),Ps=(function(){function i(t){this.partialObserver=t}return i.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(s){gt(s)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(s){gt(s)}else gt(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){gt(e)}},i})(),Xt=(function(i){V(t,i);function t(e,s,n){var r=i.call(this)||this,o;return $(e)||!e?o={next:e??void 0,error:s??void 0,complete:n??void 0}:o=e,r.destination=new Ps(o),r}return t})(ae);function gt(i){vi(i)}function Ls(i){throw i}var Is={closed:!0,next:Le,error:Ls,complete:Le},le=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function $i(i){return i}function Rs(i){return i.length===0?$i:i.length===1?i[0]:function(e){return i.reduce(function(s,n){return n(s)},e)}}var _=(function(){function i(t){t&&(this._subscribe=t)}return i.prototype.lift=function(t){var e=new i;return e.source=this,e.operator=t,e},i.prototype.subscribe=function(t,e,s){var n=this,r=Ms(t)?t:new Xt(t,e,s);return mt(function(){var o=n,a=o.operator,l=o.source;r.add(a?a.call(r,l):l?n._subscribe(r):n._trySubscribe(r))}),r},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(t,e){var s=this;return e=Ie(e),new e(function(n,r){var o=new Xt({next:function(a){try{t(a)}catch(l){r(l),o.unsubscribe()}},error:r,complete:n});s.subscribe(o)})},i.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},i.prototype[le]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Rs(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=Ie(t),new t(function(s,n){var r;e.subscribe(function(o){return r=o},function(o){return n(o)},function(){return s(r)})})},i.create=function(t){return new i(t)},i})();function Ie(i){var t;return(t=i??Os.Promise)!==null&&t!==void 0?t:Promise}function Us(i){return i&&$(i.next)&&$(i.error)&&$(i.complete)}function Ms(i){return i&&i instanceof ae||Us(i)&&gi(i)}function js(i){return $(i==null?void 0:i.lift)}function Lt(i){return function(t){if(js(t))return t.lift(function(e){try{return i(e,this)}catch(s){this.error(s)}});throw new TypeError("Unable to lift unknown Observable type")}}function St(i,t,e,s,n){return new Ns(i,t,e,s,n)}var Ns=(function(i){V(t,i);function t(e,s,n,r,o,a){var l=i.call(this,e)||this;return l.onFinalize=o,l.shouldUnsubscribe=a,l._next=s?function(c){try{s(c)}catch(u){e.error(u)}}:i.prototype._next,l._error=r?function(c){try{r(c)}catch(u){e.error(u)}finally{this.unsubscribe()}}:i.prototype._error,l._complete=n?function(){try{n()}catch(c){e.error(c)}finally{this.unsubscribe()}}:i.prototype._complete,l}return t.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var s=this.closed;i.prototype.unsubscribe.call(this),!s&&((e=this.onFinalize)===null||e===void 0||e.call(this))}},t})(ae),Fs=fi(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ut=(function(i){V(t,i);function t(){var e=i.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var s=new Re(this,this);return s.operator=e,s},t.prototype._throwIfClosed=function(){if(this.closed)throw new Fs},t.prototype.next=function(e){var s=this;mt(function(){var n,r;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var o=X(s.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(e)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var s=this;mt(function(){if(s._throwIfClosed(),!s.isStopped){s.hasError=s.isStopped=!0,s.thrownError=e;for(var n=s.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;mt(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var s=e.observers;s.length;)s.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var s=this,n=this,r=n.hasError,o=n.isStopped,a=n.observers;return r||o?pi:(this.currentObservers=null,a.push(e),new Pt(function(){s.currentObservers=null,Zt(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var s=this,n=s.hasError,r=s.thrownError,o=s.isStopped;n?e.error(r):o&&e.complete()},t.prototype.asObservable=function(){var e=new _;return e.source=this,e},t.create=function(e,s){return new Re(e,s)},t})(_),Re=(function(i){V(t,i);function t(e,s){var n=i.call(this)||this;return n.destination=e,n.source=s,n}return t.prototype.next=function(e){var s,n;(n=(s=this.destination)===null||s===void 0?void 0:s.next)===null||n===void 0||n.call(s,e)},t.prototype.error=function(e){var s,n;(n=(s=this.destination)===null||s===void 0?void 0:s.error)===null||n===void 0||n.call(s,e)},t.prototype.complete=function(){var e,s;(s=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||s===void 0||s.call(e)},t.prototype._subscribe=function(e){var s,n;return(n=(s=this.source)===null||s===void 0?void 0:s.subscribe(e))!==null&&n!==void 0?n:pi},t})(ut),mi=(function(i){V(t,i);function t(e){var s=i.call(this)||this;return s._value=e,s}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var s=i.prototype._subscribe.call(this,e);return!s.closed&&e.next(this._value),s},t.prototype.getValue=function(){var e=this,s=e.hasError,n=e.thrownError,r=e._value;if(s)throw n;return this._throwIfClosed(),r},t.prototype.next=function(e){i.prototype.next.call(this,this._value=e)},t})(ut),Hs=new _(function(i){return i.complete()});function Bs(i){return i&&$(i.schedule)}function yi(i){return i[i.length-1]}function zs(i){return Bs(yi(i))?i.pop():void 0}function Ds(i,t){return typeof yi(i)=="number"?i.pop():t}var bi=(function(i){return i&&typeof i.length=="number"&&typeof i!="function"});function wi(i){return $(i==null?void 0:i.then)}function _i(i){return $(i[le])}function xi(i){return Symbol.asyncIterator&&$(i==null?void 0:i[Symbol.asyncIterator])}function Si(i){return new TypeError("You provided "+(i!==null&&typeof i=="object"?"an invalid object":"'"+i+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Ws(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ai=Ws();function ki(i){return $(i==null?void 0:i[Ai])}function Ci(i){return Cs(this,arguments,function(){var e,s,n,r;return di(this,function(o){switch(o.label){case 0:e=i.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,G(e.read())];case 3:return s=o.sent(),n=s.value,r=s.done,r?[4,G(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,G(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}function Ei(i){return $(i==null?void 0:i.getReader)}function J(i){if(i instanceof _)return i;if(i!=null){if(_i(i))return qs(i);if(bi(i))return Gs(i);if(wi(i))return Ys(i);if(xi(i))return Oi(i);if(ki(i))return Ks(i);if(Ei(i))return Zs(i)}throw Si(i)}function qs(i){return new _(function(t){var e=i[le]();if($(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Gs(i){return new _(function(t){for(var e=0;e<i.length&&!t.closed;e++)t.next(i[e]);t.complete()})}function Ys(i){return new _(function(t){i.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,vi)})}function Ks(i){return new _(function(t){var e,s;try{for(var n=X(i),r=n.next();!r.done;r=n.next()){var o=r.value;if(t.next(o),t.closed)return}}catch(a){e={error:a}}finally{try{r&&!r.done&&(s=n.return)&&s.call(n)}finally{if(e)throw e.error}}t.complete()})}function Oi(i){return new _(function(t){Xs(i,t).catch(function(e){return t.error(e)})})}function Zs(i){return Oi(Ci(i))}function Xs(i,t){var e,s,n,r;return ks(this,void 0,void 0,function(){var o,a;return di(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),e=Es(i),l.label=1;case 1:return[4,e.next()];case 2:if(s=l.sent(),!!s.done)return[3,4];if(o=s.value,t.next(o),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),n={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),s&&!s.done&&(r=e.return)?[4,r.call(e)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function M(i,t,e,s,n){s===void 0&&(s=0),n===void 0&&(n=!1);var r=t.schedule(function(){e(),n?i.add(this.schedule(null,s)):this.unsubscribe()},s);if(i.add(r),!n)return r}function Ti(i,t){return t===void 0&&(t=0),Lt(function(e,s){e.subscribe(St(s,function(n){return M(s,i,function(){return s.next(n)},t)},function(){return M(s,i,function(){return s.complete()},t)},function(n){return M(s,i,function(){return s.error(n)},t)}))})}function Pi(i,t){return t===void 0&&(t=0),Lt(function(e,s){s.add(i.schedule(function(){return e.subscribe(s)},t))})}function Qs(i,t){return J(i).pipe(Pi(t),Ti(t))}function Vs(i,t){return J(i).pipe(Pi(t),Ti(t))}function Js(i,t){return new _(function(e){var s=0;return t.schedule(function(){s===i.length?e.complete():(e.next(i[s++]),e.closed||this.schedule())})})}function tn(i,t){return new _(function(e){var s;return M(e,t,function(){s=i[Ai](),M(e,t,function(){var n,r,o;try{n=s.next(),r=n.value,o=n.done}catch(a){e.error(a);return}o?e.complete():e.next(r)},0,!0)}),function(){return $(s==null?void 0:s.return)&&s.return()}})}function Li(i,t){if(!i)throw new Error("Iterable cannot be null");return new _(function(e){M(e,t,function(){var s=i[Symbol.asyncIterator]();M(e,t,function(){s.next().then(function(n){n.done?e.complete():e.next(n.value)})},0,!0)})})}function en(i,t){return Li(Ci(i),t)}function sn(i,t){if(i!=null){if(_i(i))return Qs(i,t);if(bi(i))return Js(i,t);if(wi(i))return Vs(i,t);if(xi(i))return Li(i,t);if(ki(i))return tn(i,t);if(Ei(i))return en(i,t)}throw Si(i)}function nn(i,t){return t?sn(i,t):J(i)}function rn(i,t){return Lt(function(e,s){var n=0;e.subscribe(St(s,function(r){s.next(i.call(t,r,n++))}))})}function on(i,t,e,s,n,r,o,a){var l=[],c=0,u=0,h=!1,d=function(){h&&!l.length&&!c&&t.complete()},f=function(g){return c<s?v(g):l.push(g)},v=function(g){c++;var pt=!1;J(e(g,u++)).subscribe(St(t,function(tt){t.next(tt)},function(){pt=!0},void 0,function(){if(pt)try{c--;for(var tt=function(){var Mt=l.shift();o||v(Mt)};l.length&&c<s;)tt();d()}catch(Mt){t.error(Mt)}}))};return i.subscribe(St(t,f,function(){h=!0,d()})),function(){}}function Ii(i,t,e){return e===void 0&&(e=1/0),$(t)?Ii(function(s,n){return rn(function(r,o){return t(s,r,n,o)})(J(i(s,n)))},e):(typeof t=="number"&&(e=t),Lt(function(s,n){return on(s,n,i,e)}))}function an(i){return i===void 0&&(i=1/0),Ii($i,i)}function ln(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];var e=zs(i),s=Ds(i,1/0),n=i;return n.length?n.length===1?J(n[0]):an(s)(nn(n,e)):Hs}var cn=Object.defineProperty,un=(i,t,e,s)=>{for(var n=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=o(t,e,n)||n);return n&&cn(t,e,n),n};const ge=class ge extends A{constructor(){super(...arguments),this.anchor="BottomRight"}appendChild(t){var e;return(e=this.shadowRoot)==null||e.appendChild(t),t}render(){return this.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right"),p}};ge.styles=[H`
|
|
46
46
|
:host {
|
|
47
47
|
position: fixed;
|
|
48
48
|
display: flex;
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
bottom: 20px;
|
|
59
59
|
left: 20px;
|
|
60
60
|
}
|
|
61
|
-
`];let At=ge;un([w({attribute:!0})],At.prototype,"anchor");const hn=new WeakMap;let Ue=0;const Dt=new Map,Me=new WeakSet,je=()=>new Promise(i=>requestAnimationFrame(i)),dn=[{transform:"translateX(100%) scale(0)",opacity:0}],Ne=(i,t)=>{const e=i-t;return e===0?void 0:e},Fe=(i,t)=>{const e=i/t;return e===1?void 0:e},Wt={left:(i,t)=>{const e=Ne(i,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateX(${e}px)`}},top:(i,t)=>{const e=Ne(i,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateY(${e}px)`}},width:(i,t)=>{let e;t===0&&(t=1,e={width:"1px"});const s=Fe(i,t);return{value:s,overrideFrom:e,transform:s==null||isNaN(s)?void 0:`scaleX(${s})`}},height:(i,t)=>{let e;t===0&&(t=1,e={height:"1px"});const s=Fe(i,t);return{value:s,overrideFrom:e,transform:s==null||isNaN(s)?void 0:`scaleY(${s})`}}},fn={duration:333,easing:"ease-in-out"},pn=["left","top","width","height","opacity","color","background"],He=new WeakMap;class gn extends hi{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===re.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(e=>{this.l=e})}async resolveFinished(){var t;(t=this.l)==null||t.call(this),this.l=void 0}render(t){return p}getController(){return hn.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[e]){var n;const s=this.u===void 0;return s&&(this.u=(n=t.options)==null?void 0:n.host,this.u.addController(this),this.u.updateComplete.then(r=>this.t=!0),this.element=t.element,He.set(this.element,this)),this.optionsOrCallback=e,(s||typeof e!="function")&&this.p(e),this.render(e)}p(t){t=t??{};const e=this.getController();e!==void 0&&((t={...e.defaultOptions,...t}).keyframeOptions={...e.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=pn),this.options=t}m(){const t={},e=this.element.getBoundingClientRect(),s=getComputedStyle(this.element);return this.options.properties.forEach(n=>{const r=e[n]??(Wt[n]?void 0:s[n]),o=Number(r);t[n]=isNaN(o)?r+"":o}),t}v(){let t,e=!0;return this.options.guard&&(t=this.options.guard(),e=((s,n)=>{if(Array.isArray(s)){if(Array.isArray(n)&&n.length===s.length&&s.every((r,o)=>r===n[o]))return!1}else if(n===s)return!1;return!0})(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}hostUpdate(){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)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await je;const e=this.O(),s=this.j(this.options.keyframeOptions,e),n=this.m();if(this.A!==void 0){const{from:r,to:o}=this.N(this.A,n,e);this.log("measured",[this.A,n,r,o]),t=this.calculateKeyframes(r,o)}else{const r=Dt.get(this.options.inId);if(r){Dt.delete(this.options.inId);const{from:o,to:a}=this.N(r,n,e);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Ue++,t.forEach(l=>l.zIndex=Ue)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,s)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){var t,e;this.P=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(e=this.webAnimation)==null||e.cancel()}reconnected(){}async disconnected(){var e;if(!this.h||(this.options.id!==void 0&&Dt.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await je(),(e=this.i)==null?void 0:e.isConnected){const s=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,s),this.options.stabilizeOut){const n=this.m();this.log("stabilizing out");const r=this.A.left-n.left,o=this.A.top-n.top;getComputedStyle(this.element).position!=="static"||r===0&&o===0||(this.element.style.position="relative"),r!==0&&(this.element.style.left=r+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,e;(e=(t=this.options).onStart)==null||e.call(t,this)}didFinish(t){var e,s;t&&((s=(e=this.options).onComplete)==null||s.call(e,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let e=this.element.parentNode;e;e=e==null?void 0:e.parentNode){const s=He.get(e);s&&!s.isDisabled()&&s&&t.push(s)}return t}get isHostRendered(){const t=Me.has(this.u);return t||this.u.updateComplete.then(()=>{Me.add(this.u)}),t}j(t,e=this.O()){const s={...fn};return e.forEach(n=>Object.assign(s,n.options.keyframeOptions)),Object.assign(s,t),s}N(t,e,s){t={...t},e={...e};const n=s.map(a=>a.animatingProperties).filter(a=>a!==void 0);let r=1,o=1;return n.length>0&&(n.forEach(a=>{a.width&&(r/=a.width),a.height&&(o/=a.height)}),t.left!==void 0&&e.left!==void 0&&(t.left=r*t.left,e.left=r*e.left),t.top!==void 0&&e.top!==void 0&&(t.top=o*t.top,e.top=o*e.top)),{from:t,to:e}}calculateKeyframes(t,e,s=!1){const n={},r={};let o=!1;const a={};for(const l in e){const c=t[l],u=e[l];if(l in Wt){const h=Wt[l];if(c===void 0||u===void 0)continue;const d=h(c,u);d.transform!==void 0&&(a[l]=d.value,o=!0,n.transform=`${n.transform??""} ${d.transform}`,d.overrideFrom!==void 0&&Object.assign(n,d.overrideFrom))}else c!==u&&c!==void 0&&u!==void 0&&(o=!0,n[l]=c,r[l]=u)}return n.transformOrigin=r.transformOrigin=s?"center center":"top left",this.animatingProperties=a,o?[n,r]:void 0}async animate(t,e=this.options.keyframeOptions){this.start(),this.frames=t;let s=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,e]),s=!0,this.webAnimation=this.element.animate(t,e);const n=this.getController();n==null||n.add(this);try{await this.webAnimation.finished}catch{}n==null||n.remove(this)}return this.didFinish(s),s}isAnimating(){var t,e;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((e=this.webAnimation)==null?void 0:e.pending)}log(t,e){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,e)}}const vn=oe(gn),$n={svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M53.0318 24.8653L33.5318 44.3653C33.1256 44.7717 32.5745 45.0001 31.9999 45.0001C31.4253 45.0001 30.8742 44.7717 30.468 44.3653L10.968 24.8653C10.122 24.0193 10.122 22.6476 10.968 21.8015C11.8141 20.9555 13.1858 20.9555 14.0318 21.8015L31.9999 39.7696L49.968 21.8015C50.8141 20.9555 52.1858 20.9555 53.0318 21.8015C53.8779 22.6476 53.8779 24.0193 53.0318 24.8653Z"/></svg>'},mn={svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M18 36C15.7909 36 14 34.2091 14 32C14 29.7909 15.7909 28 18 28C20.2091 28 22 29.7909 22 32C22 34.2091 20.2091 36 18 36ZM28 32C28 34.2091 29.7909 36 32 36C34.2091 36 36 34.2091 36 32C36 29.7909 34.2091 28 32 28C29.7909 28 28 29.7909 28 32ZM46 36C43.7909 36 42 34.2091 42 32C42 29.7909 43.7909 28 46 28C48.2091 28 50 29.7909 50 32C50 34.2091 48.2091 36 46 36Z"/></svg>'},yn={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>'};/**
|
|
61
|
+
`];let At=ge;un([w({attribute:!0})],At.prototype,"anchor");const hn=new WeakMap;let Ue=0;const Dt=new Map,Me=new WeakSet,je=()=>new Promise((i=>requestAnimationFrame(i))),dn=[{transform:"translateX(100%) scale(0)",opacity:0}],Ne=(i,t)=>{const e=i-t;return e===0?void 0:e},Fe=(i,t)=>{const e=i/t;return e===1?void 0:e},Wt={left:(i,t)=>{const e=Ne(i,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateX(${e}px)`}},top:(i,t)=>{const e=Ne(i,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateY(${e}px)`}},width:(i,t)=>{let e;t===0&&(t=1,e={width:"1px"});const s=Fe(i,t);return{value:s,overrideFrom:e,transform:s==null||isNaN(s)?void 0:`scaleX(${s})`}},height:(i,t)=>{let e;t===0&&(t=1,e={height:"1px"});const s=Fe(i,t);return{value:s,overrideFrom:e,transform:s==null||isNaN(s)?void 0:`scaleY(${s})`}}},fn={duration:333,easing:"ease-in-out"},pn=["left","top","width","height","opacity","color","background"],He=new WeakMap;class gn extends hi{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===re.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise((e=>{this.l=e}))}async resolveFinished(){var t;(t=this.l)==null||t.call(this),this.l=void 0}render(t){return p}getController(){return hn.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[e]){var n;const s=this.u===void 0;return s&&(this.u=(n=t.options)==null?void 0:n.host,this.u.addController(this),this.u.updateComplete.then((r=>this.t=!0)),this.element=t.element,He.set(this.element,this)),this.optionsOrCallback=e,(s||typeof e!="function")&&this.p(e),this.render(e)}p(t){t=t??{};const e=this.getController();e!==void 0&&((t={...e.defaultOptions,...t}).keyframeOptions={...e.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=pn),this.options=t}m(){const t={},e=this.element.getBoundingClientRect(),s=getComputedStyle(this.element);return this.options.properties.forEach((n=>{const r=e[n]??(Wt[n]?void 0:s[n]),o=Number(r);t[n]=isNaN(o)?r+"":o})),t}v(){let t,e=!0;return this.options.guard&&(t=this.options.guard(),e=((s,n)=>{if(Array.isArray(s)){if(Array.isArray(n)&&n.length===s.length&&s.every(((r,o)=>r===n[o])))return!1}else if(n===s)return!1;return!0})(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}hostUpdate(){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)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await je;const e=this.O(),s=this.j(this.options.keyframeOptions,e),n=this.m();if(this.A!==void 0){const{from:r,to:o}=this.N(this.A,n,e);this.log("measured",[this.A,n,r,o]),t=this.calculateKeyframes(r,o)}else{const r=Dt.get(this.options.inId);if(r){Dt.delete(this.options.inId);const{from:o,to:a}=this.N(r,n,e);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Ue++,t.forEach((l=>l.zIndex=Ue))}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,s)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){var t,e;this.P=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(e=this.webAnimation)==null||e.cancel()}reconnected(){}async disconnected(){var e;if(!this.h||(this.options.id!==void 0&&Dt.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await je(),(e=this.i)==null?void 0:e.isConnected){const s=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,s),this.options.stabilizeOut){const n=this.m();this.log("stabilizing out");const r=this.A.left-n.left,o=this.A.top-n.top;getComputedStyle(this.element).position!=="static"||r===0&&o===0||(this.element.style.position="relative"),r!==0&&(this.element.style.left=r+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,e;(e=(t=this.options).onStart)==null||e.call(t,this)}didFinish(t){var e,s;t&&((s=(e=this.options).onComplete)==null||s.call(e,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let e=this.element.parentNode;e;e=e==null?void 0:e.parentNode){const s=He.get(e);s&&!s.isDisabled()&&s&&t.push(s)}return t}get isHostRendered(){const t=Me.has(this.u);return t||this.u.updateComplete.then((()=>{Me.add(this.u)})),t}j(t,e=this.O()){const s={...fn};return e.forEach((n=>Object.assign(s,n.options.keyframeOptions))),Object.assign(s,t),s}N(t,e,s){t={...t},e={...e};const n=s.map((a=>a.animatingProperties)).filter((a=>a!==void 0));let r=1,o=1;return n.length>0&&(n.forEach((a=>{a.width&&(r/=a.width),a.height&&(o/=a.height)})),t.left!==void 0&&e.left!==void 0&&(t.left=r*t.left,e.left=r*e.left),t.top!==void 0&&e.top!==void 0&&(t.top=o*t.top,e.top=o*e.top)),{from:t,to:e}}calculateKeyframes(t,e,s=!1){const n={},r={};let o=!1;const a={};for(const l in e){const c=t[l],u=e[l];if(l in Wt){const h=Wt[l];if(c===void 0||u===void 0)continue;const d=h(c,u);d.transform!==void 0&&(a[l]=d.value,o=!0,n.transform=`${n.transform??""} ${d.transform}`,d.overrideFrom!==void 0&&Object.assign(n,d.overrideFrom))}else c!==u&&c!==void 0&&u!==void 0&&(o=!0,n[l]=c,r[l]=u)}return n.transformOrigin=r.transformOrigin=s?"center center":"top left",this.animatingProperties=a,o?[n,r]:void 0}async animate(t,e=this.options.keyframeOptions){this.start(),this.frames=t;let s=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,e]),s=!0,this.webAnimation=this.element.animate(t,e);const n=this.getController();n==null||n.add(this);try{await this.webAnimation.finished}catch{}n==null||n.remove(this)}return this.didFinish(s),s}isAnimating(){var t,e;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((e=this.webAnimation)==null?void 0:e.pending)}log(t,e){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,e)}}const vn=oe(gn),$n={svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M53.0318 24.8653L33.5318 44.3653C33.1256 44.7717 32.5745 45.0001 31.9999 45.0001C31.4253 45.0001 30.8742 44.7717 30.468 44.3653L10.968 24.8653C10.122 24.0193 10.122 22.6476 10.968 21.8015C11.8141 20.9555 13.1858 20.9555 14.0318 21.8015L31.9999 39.7696L49.968 21.8015C50.8141 20.9555 52.1858 20.9555 53.0318 21.8015C53.8779 22.6476 53.8779 24.0193 53.0318 24.8653Z"/></svg>'},mn={svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M18 36C15.7909 36 14 34.2091 14 32C14 29.7909 15.7909 28 18 28C20.2091 28 22 29.7909 22 32C22 34.2091 20.2091 36 18 36ZM28 32C28 34.2091 29.7909 36 32 36C34.2091 36 36 34.2091 36 32C36 29.7909 34.2091 28 32 28C29.7909 28 28 29.7909 28 32ZM46 36C43.7909 36 42 34.2091 42 32C42 29.7909 43.7909 28 46 28C48.2091 28 50 29.7909 50 32C50 34.2091 48.2091 36 46 36Z"/></svg>'},yn={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>'};/**
|
|
62
62
|
* @license
|
|
63
63
|
* Copyright 2018 Google LLC
|
|
64
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
65
|
-
*/const Be=oe(class extends ci{constructor(i){var t;if(super(i),i.type!==re.ATTRIBUTE||i.name!=="class"||((t=i.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(t=>i[t]).join(" ")+" "}update(i,[t]){var s,n;if(this.st===void 0){this.st=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(r=>r!=="")));for(const r in t)t[r]&&!((s=this.nt)!=null&&s.has(r))&&this.st.add(r);return this.render(t)}const e=i.element.classList;for(const r of this.st)r in t||(e.remove(r),this.st.delete(r));for(const r in t){const o=!!t[r];o===this.st.has(r)||(n=this.nt)!=null&&n.has(r)||(o?(e.add(r),this.st.add(r)):(e.remove(r),this.st.delete(r)))}return N}}),C=(i,t,e)=>{i&&e.style.setProperty(t,i)},Ri=(i,t)=>{var e,s,n,r,o,a,l,c,u;C((e=i.colors)==null?void 0:e.primaryBackground,"--primary-background",t),C((s=i.colors)==null?void 0:s.textOnPrimaryBackground,"--text-on-primary-background",t),C((n=i.colors)==null?void 0:n.secondaryBackground,"--secondary-background",t),C((r=i.colors)==null?void 0:r.textOnSecondaryBackground,"--text-on-secondary-background",t),C((o=i.colors)==null?void 0:o.interactiveDestructiveBackground,"--destructive-color",t),C((a=i.colors)==null?void 0:a.interactiveTextOnDestructiveBackground,"--text-on-destructive-color",t),C((l=i.colors)==null?void 0:l.interactivePrimaryBackground,"--interactive-primary-background",t),C((c=i.colors)==null?void 0:c.interactiveTextOnPrimaryBackground,"--interactive-text-on-primary-background",t),C((u=i.colors)==null?void 0:u.focusColor,"--focus-color",t)};var bn=Object.defineProperty,ht=(i,t,e,s)=>{for(var n=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=o(t,e,n)||n);return n&&bn(t,e,n),n};const ve=class ve extends A{constructor(){super(...arguments),this.active=!1,this.triggerVisible=!0,this.loaded=!1,this.containerRef=_t(),this.widgetActive$=new mi(!1),this.componentIsDestroyed$=new ut}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}disconnectedCallback(){super.disconnectedCallback(),this.componentIsDestroyed$.next(),this.componentIsDestroyed$.complete()}toggleActive(){var t;if(!((t=this.application)!=null&&t.root)){console.warn("Could not activate widget. No root element assigned to widget.");return}this.active=!this.active,this.active?(this.application.appendToDOM(),this.notify("widget-set-active",{widgetId:this.application.id,active:!0}),this.widgetActive$.next(!0),this.hideTrigger()):(this.application.hide(),this.notify("widget-set-active",{widgetId:this.application.id,active:!1}),this.widgetActive$.next(!1),this.showTrigger())}notify(t,e={}){window!=null&&window.parent&&window.parent.postMessage({type:t,data:e},"*")}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&Ri(this.application.settings.branding,this)}async _renderSymbol(){var a,l,c;const t=(a=this.application)==null?void 0:a.branding(),e=(l=t==null?void 0:t.graphics)==null?void 0:l.trigger;if(e)return m` <img src=${e} class="trigger-icon" alt="" /> `;const s=(c=this.application)==null?void 0:c.triggerIcon;if(!s)return p;const n=async u=>yn,{type:r,content:o}=s;switch(r){case"Telia":{const u=await n();return u?m`<telia-icon
|
|
65
|
+
*/const Be=oe(class extends ci{constructor(i){var t;if(super(i),i.type!==re.ATTRIBUTE||i.name!=="class"||((t=i.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter((t=>i[t])).join(" ")+" "}update(i,[t]){var s,n;if(this.st===void 0){this.st=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter((r=>r!==""))));for(const r in t)t[r]&&!((s=this.nt)!=null&&s.has(r))&&this.st.add(r);return this.render(t)}const e=i.element.classList;for(const r of this.st)r in t||(e.remove(r),this.st.delete(r));for(const r in t){const o=!!t[r];o===this.st.has(r)||(n=this.nt)!=null&&n.has(r)||(o?(e.add(r),this.st.add(r)):(e.remove(r),this.st.delete(r)))}return N}}),C=(i,t,e)=>{i&&e.style.setProperty(t,i)},Ri=(i,t)=>{var e,s,n,r,o,a,l,c,u;C((e=i.colors)==null?void 0:e.primaryBackground,"--primary-background",t),C((s=i.colors)==null?void 0:s.textOnPrimaryBackground,"--text-on-primary-background",t),C((n=i.colors)==null?void 0:n.secondaryBackground,"--secondary-background",t),C((r=i.colors)==null?void 0:r.textOnSecondaryBackground,"--text-on-secondary-background",t),C((o=i.colors)==null?void 0:o.interactiveDestructiveBackground,"--destructive-color",t),C((a=i.colors)==null?void 0:a.interactiveTextOnDestructiveBackground,"--text-on-destructive-color",t),C((l=i.colors)==null?void 0:l.interactivePrimaryBackground,"--interactive-primary-background",t),C((c=i.colors)==null?void 0:c.interactiveTextOnPrimaryBackground,"--interactive-text-on-primary-background",t),C((u=i.colors)==null?void 0:u.focusColor,"--focus-color",t)};var bn=Object.defineProperty,ht=(i,t,e,s)=>{for(var n=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=o(t,e,n)||n);return n&&bn(t,e,n),n};const ve=class ve extends A{constructor(){super(...arguments),this.active=!1,this.triggerVisible=!0,this.loaded=!1,this.containerRef=_t(),this.widgetActive$=new mi(!1),this.componentIsDestroyed$=new ut}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}disconnectedCallback(){super.disconnectedCallback(),this.componentIsDestroyed$.next(),this.componentIsDestroyed$.complete()}toggleActive(){var t;if(!((t=this.application)!=null&&t.root)){console.warn("Could not activate widget. No root element assigned to widget.");return}this.active=!this.active,this.active?(this.application.appendToDOM(),this.notify("widget-set-active",{widgetId:this.application.id,active:!0}),this.widgetActive$.next(!0),this.hideTrigger()):(this.application.hide(),this.notify("widget-set-active",{widgetId:this.application.id,active:!1}),this.widgetActive$.next(!1),this.showTrigger())}notify(t,e={}){window!=null&&window.parent&&window.parent.postMessage({type:t,data:e},"*")}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&Ri(this.application.settings.branding,this)}async _renderSymbol(){var a,l,c;const t=(a=this.application)==null?void 0:a.branding(),e=(l=t==null?void 0:t.graphics)==null?void 0:l.trigger;if(e)return m` <img src=${e} class="trigger-icon" alt="" /> `;const s=(c=this.application)==null?void 0:c.triggerIcon;if(!s)return p;const n=async u=>yn,{type:r,content:o}=s;switch(r){case"Telia":{const u=await n();return u?m`<telia-icon
|
|
66
66
|
class="trigger-icon"
|
|
67
67
|
svg=${u.svg}
|
|
68
68
|
size="lg"
|
|
@@ -286,7 +286,7 @@
|
|
|
286
286
|
* @license
|
|
287
287
|
* Copyright 2017 Google LLC
|
|
288
288
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
289
|
-
*/function kn({context:i}){return(t,e)=>{const s=new WeakMap;if(typeof e=="object")return{get(){return t.get.call(this)},set(n){return s.get(this).setValue(n),t.set.call(this,n)},init(n){return s.set(this,new ze(this,{context:i,initialValue:n})),n}};{t.constructor.addInitializer(o=>{s.set(o,new ze(o,{context:i}))});const n=Object.getOwnPropertyDescriptor(t,e);let r;if(n===void 0){const o=new WeakMap;r={get(){return o.get(this)},set(a){s.get(this).setValue(a),o.set(this,a)},configurable:!0,enumerable:!0}}else{const o=n.set;r={...n,set(a){s.get(this).setValue(a),o==null||o.call(this,a)}}}return void Object.defineProperty(t,e,r)}}}var Cn=Object.defineProperty,Mi=(i,t,e,s)=>{for(var n=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=o(t,e,n)||n);return n&&Cn(t,e,n),n};const En="application",me=class me extends A{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=_t(),this.fullscreen=!1,this.isReady=new mi(!1)}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&Ri(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),e=this.wrapperRef.value;Object.entries(t).forEach(([s,n])=>{e.style.setProperty(`--${s}`,n)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){var s,n;const t=this.application.settings.components.conversation;return((n=(s=t==null?void 0:t.properties)==null?void 0:s.chat)==null?void 0:n.isThirdPartyWidget)?this.renderRoot.host.classList.add("third-party"):this.application.renderStrategy===ce.Trigger&&(this.renderRoot.host.classList.add("floating"),this.application.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.application.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right")),this.application.fullscreen&&this.renderRoot.host.classList.add("fullscreen"),window.self!==window.top&&this.renderRoot.host.classList.add("embedded"),m`<div class="widget-container" ${xt(this.wrapperRef)}>
|
|
289
|
+
*/function kn({context:i}){return(t,e)=>{const s=new WeakMap;if(typeof e=="object")return{get(){return t.get.call(this)},set(n){return s.get(this).setValue(n),t.set.call(this,n)},init(n){return s.set(this,new ze(this,{context:i,initialValue:n})),n}};{t.constructor.addInitializer((o=>{s.set(o,new ze(o,{context:i}))}));const n=Object.getOwnPropertyDescriptor(t,e);let r;if(n===void 0){const o=new WeakMap;r={get(){return o.get(this)},set(a){s.get(this).setValue(a),o.set(this,a)},configurable:!0,enumerable:!0}}else{const o=n.set;r={...n,set(a){s.get(this).setValue(a),o==null||o.call(this,a)}}}return void Object.defineProperty(t,e,r)}}}var Cn=Object.defineProperty,Mi=(i,t,e,s)=>{for(var n=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=o(t,e,n)||n);return n&&Cn(t,e,n),n};const En="application",me=class me extends A{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=_t(),this.fullscreen=!1,this.isReady=new mi(!1)}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&Ri(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),e=this.wrapperRef.value;Object.entries(t).forEach(([s,n])=>{e.style.setProperty(`--${s}`,n)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){var s,n;const t=this.application.settings.components.conversation;return((n=(s=t==null?void 0:t.properties)==null?void 0:s.chat)==null?void 0:n.isThirdPartyWidget)?this.renderRoot.host.classList.add("third-party"):this.application.renderStrategy===ce.Trigger&&(this.renderRoot.host.classList.add("floating"),this.application.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.application.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right")),this.application.fullscreen&&this.renderRoot.host.classList.add("fullscreen"),window.self!==window.top&&this.renderRoot.host.classList.add("embedded"),m`<div class="widget-container" ${xt(this.wrapperRef)}>
|
|
290
290
|
${_n(this.nodes,r=>r)}
|
|
291
291
|
</div>`}};me.styles=H`
|
|
292
292
|
:host {
|