@telia-ace/widget-components-area-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.
@@ -23,14 +23,14 @@ let se = class {
23
23
  }
24
24
  };
25
25
  const xe = (s) => new se(typeof s == "string" ? s : s + "", void 0, yt), k = (s, ...t) => {
26
- const e = s.length === 1 ? s[0] : t.reduce((i, r, o) => i + ((n) => {
26
+ const e = s.length === 1 ? s[0] : t.reduce(((i, r, o) => i + ((n) => {
27
27
  if (n._$cssResult$ === !0) return n.cssText;
28
28
  if (typeof n == "number") return n;
29
29
  throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
30
- })(r) + s[o + 1], s[0]);
30
+ })(r) + s[o + 1]), s[0]);
31
31
  return new se(e, s, yt);
32
32
  }, Ae = (s, t) => {
33
- if (mt) s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
33
+ if (mt) s.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
34
34
  else for (const e of t) {
35
35
  const i = document.createElement("style"), r = W.litNonce;
36
36
  r !== void 0 && i.setAttribute("nonce", r), i.textContent = e.cssText, s.appendChild(i);
@@ -142,7 +142,7 @@ let R = 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 R = 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 i;
168
168
  return (i = e.hostConnected) == null ? void 0 : i.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 i;
177
177
  return (i = e.hostDisconnected) == null ? void 0 : i.call(e);
178
- });
178
+ }));
179
179
  }
180
180
  attributeChangedCallback(t, e, i) {
181
181
  this._$AK(t, i);
@@ -240,10 +240,10 @@ let R = 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), (i = this._$EO) == null || i.forEach((r) => {
243
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach(((r) => {
244
244
  var o;
245
245
  return (o = r.hostUpdate) == null ? void 0 : o.call(r);
246
- }), this.update(e)) : this._$EM();
246
+ })), this.update(e)) : this._$EM();
247
247
  } catch (r) {
248
248
  throw t = !1, this._$EM(), r;
249
249
  }
@@ -253,10 +253,10 @@ let R = class extends HTMLElement {
253
253
  }
254
254
  _$AE(t) {
255
255
  var e;
256
- (e = this._$EO) == null || e.forEach((i) => {
256
+ (e = this._$EO) == null || e.forEach(((i) => {
257
257
  var r;
258
258
  return (r = i.hostUpdated) == null ? void 0 : r.call(i);
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 R = 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
  }
@@ -634,7 +634,7 @@ function ft(s, t) {
634
634
  0 <= e && s.splice(e, 1);
635
635
  }
636
636
  }
637
- var tt = function() {
637
+ var tt = (function() {
638
638
  function s(t) {
639
639
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
640
640
  }
@@ -718,11 +718,11 @@ var tt = function() {
718
718
  }, s.prototype.remove = function(t) {
719
719
  var e = this._finalizers;
720
720
  e && ft(e, t), t instanceof s && t._removeParent(this);
721
- }, s.EMPTY = function() {
721
+ }, s.EMPTY = (function() {
722
722
  var t = new s();
723
723
  return t.closed = !0, t;
724
- }(), s;
725
- }(), ue = tt.EMPTY;
724
+ })(), s;
725
+ })(), ue = tt.EMPTY;
726
726
  function de(s) {
727
727
  return s instanceof tt || s && "closed" in s && b(s.remove) && b(s.add) && b(s.unsubscribe);
728
728
  }
@@ -752,7 +752,7 @@ function zt() {
752
752
  function Y(s) {
753
753
  s();
754
754
  }
755
- var pe = function(s) {
755
+ var pe = (function(s) {
756
756
  V(t, s);
757
757
  function t(e) {
758
758
  var i = s.call(this) || this;
@@ -783,7 +783,7 @@ var pe = function(s) {
783
783
  this.unsubscribe();
784
784
  }
785
785
  }, t;
786
- }(tt), qe = function() {
786
+ })(tt), qe = (function() {
787
787
  function s(t) {
788
788
  this.partialObserver = t;
789
789
  }
@@ -814,7 +814,7 @@ var pe = function(s) {
814
814
  G(e);
815
815
  }
816
816
  }, s;
817
- }(), gt = function(s) {
817
+ })(), gt = (function(s) {
818
818
  V(t, s);
819
819
  function t(e, i, r) {
820
820
  var o = s.call(this) || this, n;
@@ -825,7 +825,7 @@ var pe = function(s) {
825
825
  } : n = e, o.destination = new qe(n), o;
826
826
  }
827
827
  return t;
828
- }(pe);
828
+ })(pe);
829
829
  function G(s) {
830
830
  Ve(s);
831
831
  }
@@ -837,9 +837,9 @@ var We = {
837
837
  next: zt,
838
838
  error: Ge,
839
839
  complete: zt
840
- }, Ye = function() {
840
+ }, Ye = (function() {
841
841
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
842
- }();
842
+ })();
843
843
  function Ze(s) {
844
844
  return s;
845
845
  }
@@ -850,7 +850,7 @@ function Ke(s) {
850
850
  }, e);
851
851
  };
852
852
  }
853
- var Vt = function() {
853
+ var Vt = (function() {
854
854
  function s(t) {
855
855
  t && (this._subscribe = t);
856
856
  }
@@ -909,7 +909,7 @@ var Vt = function() {
909
909
  }, s.create = function(t) {
910
910
  return new s(t);
911
911
  }, s;
912
- }();
912
+ })();
913
913
  function qt(s) {
914
914
  var t;
915
915
  return (t = s ?? De.Promise) !== null && t !== void 0 ? t : Promise;
@@ -924,7 +924,7 @@ var Qe = le(function(s) {
924
924
  return function() {
925
925
  s(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
926
926
  };
927
- }), _t = function(s) {
927
+ }), _t = (function(s) {
928
928
  V(t, s);
929
929
  function t() {
930
930
  var e = s.call(this) || this;
@@ -1003,7 +1003,7 @@ var Qe = le(function(s) {
1003
1003
  }, t.create = function(e, i) {
1004
1004
  return new Gt(e, i);
1005
1005
  }, t;
1006
- }(Vt), Gt = function(s) {
1006
+ })(Vt), Gt = (function(s) {
1007
1007
  V(t, s);
1008
1008
  function t(e, i) {
1009
1009
  var r = s.call(this) || this;
@@ -1022,7 +1022,7 @@ var Qe = le(function(s) {
1022
1022
  var i, r;
1023
1023
  return (r = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && r !== void 0 ? r : ue;
1024
1024
  }, t;
1025
- }(_t), fe = function(s) {
1025
+ })(_t), fe = (function(s) {
1026
1026
  V(t, s);
1027
1027
  function t(e) {
1028
1028
  var i = s.call(this) || this;
@@ -1045,7 +1045,7 @@ var Qe = le(function(s) {
1045
1045
  }, t.prototype.next = function(e) {
1046
1046
  s.prototype.next.call(this, this._value = e);
1047
1047
  }, t;
1048
- }(_t);
1048
+ })(_t);
1049
1049
  /**
1050
1050
  * @license
1051
1051
  * Copyright 2017 Google LLC
@@ -1216,7 +1216,7 @@ class me extends ge {
1216
1216
  }
1217
1217
  const ci = /* @__PURE__ */ new WeakMap();
1218
1218
  let Wt = 0;
1219
- const nt = /* @__PURE__ */ new Map(), Yt = /* @__PURE__ */ new WeakSet(), Zt = () => new Promise((s) => requestAnimationFrame(s)), hi = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Kt = (s, t) => {
1219
+ const nt = /* @__PURE__ */ new Map(), Yt = /* @__PURE__ */ new WeakSet(), Zt = () => new Promise(((s) => requestAnimationFrame(s))), hi = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Kt = (s, t) => {
1220
1220
  const e = s - t;
1221
1221
  return e === 0 ? void 0 : e;
1222
1222
  }, Xt = (s, t) => {
@@ -1246,9 +1246,9 @@ class di extends me {
1246
1246
  }
1247
1247
  createFinished() {
1248
1248
  var t;
1249
- (t = this.resolveFinished) == null || t.call(this), this.finished = new Promise((e) => {
1249
+ (t = this.resolveFinished) == null || t.call(this), this.finished = new Promise(((e) => {
1250
1250
  this.l = e;
1251
- });
1251
+ }));
1252
1252
  }
1253
1253
  async resolveFinished() {
1254
1254
  var t;
@@ -1267,7 +1267,7 @@ class di extends me {
1267
1267
  update(t, [e]) {
1268
1268
  var r;
1269
1269
  const i = this.u === void 0;
1270
- return i && (this.u = (r = t.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((o) => this.t = !0), this.element = t.element, Jt.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
1270
+ return i && (this.u = (r = t.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then(((o) => this.t = !0)), this.element = t.element, Jt.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
1271
1271
  }
1272
1272
  p(t) {
1273
1273
  t = t ?? {};
@@ -1276,16 +1276,16 @@ class di extends me {
1276
1276
  }
1277
1277
  m() {
1278
1278
  const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
1279
- return this.options.properties.forEach((r) => {
1279
+ return this.options.properties.forEach(((r) => {
1280
1280
  const o = e[r] ?? (at[r] ? void 0 : i[r]), n = Number(o);
1281
1281
  t[r] = isNaN(n) ? o + "" : n;
1282
- }), t;
1282
+ })), t;
1283
1283
  }
1284
1284
  v() {
1285
1285
  let t, e = !0;
1286
1286
  return this.options.guard && (t = this.options.guard(), e = ((i, r) => {
1287
1287
  if (Array.isArray(i)) {
1288
- if (Array.isArray(r) && r.length === i.length && i.every((o, n) => o === r[n])) return !1;
1288
+ if (Array.isArray(r) && r.length === i.length && i.every(((o, n) => o === r[n]))) return !1;
1289
1289
  } else if (r === i) return !1;
1290
1290
  return !0;
1291
1291
  })(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;
@@ -1306,7 +1306,7 @@ class di extends me {
1306
1306
  if (o) {
1307
1307
  nt.delete(this.options.inId);
1308
1308
  const { from: n, to: a } = this.N(o, r, e);
1309
- t = this.calculateKeyframes(n, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Wt++, t.forEach((c) => c.zIndex = Wt);
1309
+ t = this.calculateKeyframes(n, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Wt++, t.forEach(((c) => c.zIndex = Wt));
1310
1310
  } else this.options.in && (t = [...this.options.in, {}]);
1311
1311
  }
1312
1312
  this.animate(t, i);
@@ -1356,21 +1356,21 @@ class di extends me {
1356
1356
  }
1357
1357
  get isHostRendered() {
1358
1358
  const t = Yt.has(this.u);
1359
- return t || this.u.updateComplete.then(() => {
1359
+ return t || this.u.updateComplete.then((() => {
1360
1360
  Yt.add(this.u);
1361
- }), t;
1361
+ })), t;
1362
1362
  }
1363
1363
  j(t, e = this.O()) {
1364
1364
  const i = { ...li };
1365
- return e.forEach((r) => Object.assign(i, r.options.keyframeOptions)), Object.assign(i, t), i;
1365
+ return e.forEach(((r) => Object.assign(i, r.options.keyframeOptions))), Object.assign(i, t), i;
1366
1366
  }
1367
1367
  N(t, e, i) {
1368
1368
  t = { ...t }, e = { ...e };
1369
- const r = i.map((a) => a.animatingProperties).filter((a) => a !== void 0);
1369
+ const r = i.map(((a) => a.animatingProperties)).filter(((a) => a !== void 0));
1370
1370
  let o = 1, n = 1;
1371
- return r.length > 0 && (r.forEach((a) => {
1371
+ return r.length > 0 && (r.forEach(((a) => {
1372
1372
  a.width && (o /= a.width), a.height && (n /= a.height);
1373
- }), t.left !== void 0 && e.left !== void 0 && (t.left = o * t.left, e.left = o * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = n * t.top, e.top = n * e.top)), { from: t, to: e };
1373
+ })), t.left !== void 0 && e.left !== void 0 && (t.left = o * t.left, e.left = o * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = n * t.top, e.top = n * e.top)), { from: t, to: e };
1374
1374
  }
1375
1375
  calculateKeyframes(t, e, i = !1) {
1376
1376
  const r = {}, o = {};
@@ -1422,12 +1422,12 @@ const Qt = xt(class extends ge {
1422
1422
  if (super(s), s.type !== wt.ATTRIBUTE || s.name !== "class" || ((t = s.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.");
1423
1423
  }
1424
1424
  render(s) {
1425
- return " " + Object.keys(s).filter((t) => s[t]).join(" ") + " ";
1425
+ return " " + Object.keys(s).filter(((t) => s[t])).join(" ") + " ";
1426
1426
  }
1427
1427
  update(s, [t]) {
1428
1428
  var i, r;
1429
1429
  if (this.st === void 0) {
1430
- this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter((o) => o !== "")));
1430
+ this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter(((o) => o !== ""))));
1431
1431
  for (const o in t) t[o] && !((i = this.nt) != null && i.has(o)) && this.st.add(o);
1432
1432
  return this.render(t);
1433
1433
  }
@@ -1973,9 +1973,9 @@ function _i({ context: s }) {
1973
1973
  return i.set(this, new te(this, { context: s, initialValue: r })), r;
1974
1974
  } };
1975
1975
  {
1976
- t.constructor.addInitializer((n) => {
1976
+ t.constructor.addInitializer(((n) => {
1977
1977
  i.set(n, new te(n, { context: s }));
1978
- });
1978
+ }));
1979
1979
  const r = Object.getOwnPropertyDescriptor(t, e);
1980
1980
  let o;
1981
1981
  if (r === 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 W=globalThis,yt=W.ShadowRoot&&(W.ShadyCSS===void 0||W.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,bt=Symbol(),Mt=new WeakMap;let se=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==bt)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(yt&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Mt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Mt.set(e,t))}return t}toString(){return this.cssText}};const xe=s=>new se(typeof s=="string"?s:s+"",void 0,bt),k=(s,...t)=>{const e=s.length===1?s[0]:t.reduce((i,r,o)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+s[o+1],s[0]);return new se(e,s,bt)},Ae=(s,t)=>{if(yt)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),r=W.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=e.cssText,s.appendChild(i)}},Ut=yt?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return xe(e)})(s):s;/**
5
+ */const W=globalThis,yt=W.ShadowRoot&&(W.ShadyCSS===void 0||W.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,bt=Symbol(),Mt=new WeakMap;let se=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==bt)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(yt&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Mt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Mt.set(e,t))}return t}toString(){return this.cssText}};const xe=s=>new se(typeof s=="string"?s:s+"",void 0,bt),k=(s,...t)=>{const e=s.length===1?s[0]:t.reduce(((i,r,o)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+s[o+1]),s[0]);return new se(e,s,bt)},Ae=(s,t)=>{if(yt)s.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const e of t){const i=document.createElement("style"),r=W.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=e.cssText,s.appendChild(i)}},Ut=yt?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return xe(e)})(s):s;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:Ce,defineProperty:Ee,getOwnPropertyDescriptor:Se,getOwnPropertyNames:Pe,getOwnPropertySymbols:Oe,getPrototypeOf:ke}=Object,w=globalThis,jt=w.trustedTypes,Te=jt?jt.emptyScript:"",it=w.reactiveElementPolyfillSupport,L=(s,t)=>s,Z={toAttribute(s,t){switch(t){case Boolean:s=s?Te:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},$t=(s,t)=>!Ce(s,t),Nt={attribute:!0,type:String,converter:Z,reflect:!1,useDefault:!1,hasChanged:$t};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),w.litPropertyMetadata??(w.litPropertyMetadata=new WeakMap);let R=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=Nt){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 i=Symbol(),r=this.getPropertyDescriptor(t,i,e);r!==void 0&&Ee(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){const{get:r,set:o}=Se(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:r,set(n){const a=r==null?void 0:r.call(this);o==null||o.call(this,n),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Nt}static _$Ei(){if(this.hasOwnProperty(L("elementProperties")))return;const t=ke(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(L("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(L("properties"))){const e=this.properties,i=[...Pe(e),...Oe(e)];for(const r of i)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,r]of e)this.elementProperties.set(i,r)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const r=this._$Eu(e,i);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const r of i)e.unshift(Ut(r))}else t!==void 0&&e.push(Ut(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i: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 i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ae(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 i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){var o;const i=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,i);if(r!==void 0&&i.reflect===!0){const n=(((o=i.converter)==null?void 0:o.toAttribute)!==void 0?i.converter:Z).toAttribute(e,i.type);this._$Em=t,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(t,e){var o,n;const i=this.constructor,r=i._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const a=i.getPropertyOptions(r),c=typeof a.converter=="function"?{fromAttribute:a.converter}:((o=a.converter)==null?void 0:o.fromAttribute)!==void 0?a.converter:Z;this._$Em=r;const h=c.fromAttribute(e,a.type);this[r]=h??((n=this._$Ej)==null?void 0:n.get(r))??h,this._$Em=null}}requestUpdate(t,e,i){var r;if(t!==void 0){const o=this.constructor,n=this[t];if(i??(i=o.getPropertyOptions(t)),!((i.hasChanged??$t)(n,e)||i.useDefault&&i.reflect&&n===((r=this._$Ej)==null?void 0:r.get(t))&&!this.hasAttribute(o._$Eu(t,i))))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:r,wrapped:o},n){i&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,n??e??this[t]),o!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),r===!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 i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[o,n]of r){const{wrapped:a}=n,c=this[o];a!==!0||this._$AL.has(o)||c===void 0||this.C(o,void 0,n,c)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(r=>{var o;return(o=r.hostUpdate)==null?void 0:o.call(r)}),this.update(e)):this._$EM()}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var r;return(r=i.hostUpdated)==null?void 0:r.call(i)}),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){}};R.elementStyles=[],R.shadowRootOptions={mode:"open"},R[L("elementProperties")]=new Map,R[L("finalized")]=new Map,it==null||it({ReactiveElement:R}),(w.reactiveElementVersions??(w.reactiveElementVersions=[])).push("2.1.1");/**
9
+ */const{is:Ce,defineProperty:Ee,getOwnPropertyDescriptor:Se,getOwnPropertyNames:Pe,getOwnPropertySymbols:Oe,getPrototypeOf:ke}=Object,w=globalThis,jt=w.trustedTypes,Te=jt?jt.emptyScript:"",it=w.reactiveElementPolyfillSupport,L=(s,t)=>s,Z={toAttribute(s,t){switch(t){case Boolean:s=s?Te:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},$t=(s,t)=>!Ce(s,t),Nt={attribute:!0,type:String,converter:Z,reflect:!1,useDefault:!1,hasChanged:$t};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),w.litPropertyMetadata??(w.litPropertyMetadata=new WeakMap);let R=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=Nt){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 i=Symbol(),r=this.getPropertyDescriptor(t,i,e);r!==void 0&&Ee(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){const{get:r,set:o}=Se(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:r,set(n){const a=r==null?void 0:r.call(this);o==null||o.call(this,n),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Nt}static _$Ei(){if(this.hasOwnProperty(L("elementProperties")))return;const t=ke(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(L("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(L("properties"))){const e=this.properties,i=[...Pe(e),...Oe(e)];for(const r of i)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,r]of e)this.elementProperties.set(i,r)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const r=this._$Eu(e,i);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const r of i)e.unshift(Ut(r))}else t!==void 0&&e.push(Ut(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i: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 i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ae(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 i;return(i=e.hostConnected)==null?void 0:i.call(e)}))}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach((e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){var o;const i=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,i);if(r!==void 0&&i.reflect===!0){const n=(((o=i.converter)==null?void 0:o.toAttribute)!==void 0?i.converter:Z).toAttribute(e,i.type);this._$Em=t,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(t,e){var o,n;const i=this.constructor,r=i._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const a=i.getPropertyOptions(r),c=typeof a.converter=="function"?{fromAttribute:a.converter}:((o=a.converter)==null?void 0:o.fromAttribute)!==void 0?a.converter:Z;this._$Em=r;const h=c.fromAttribute(e,a.type);this[r]=h??((n=this._$Ej)==null?void 0:n.get(r))??h,this._$Em=null}}requestUpdate(t,e,i){var r;if(t!==void 0){const o=this.constructor,n=this[t];if(i??(i=o.getPropertyOptions(t)),!((i.hasChanged??$t)(n,e)||i.useDefault&&i.reflect&&n===((r=this._$Ej)==null?void 0:r.get(t))&&!this.hasAttribute(o._$Eu(t,i))))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:r,wrapped:o},n){i&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,n??e??this[t]),o!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),r===!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 i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[o,n]of r){const{wrapped:a}=n,c=this[o];a!==!0||this._$AL.has(o)||c===void 0||this.C(o,void 0,n,c)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach((r=>{var o;return(o=r.hostUpdate)==null?void 0:o.call(r)})),this.update(e)):this._$EM()}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach((i=>{var r;return(r=i.hostUpdated)==null?void 0:r.call(i)})),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){}};R.elementStyles=[],R.shadowRootOptions={mode:"open"},R[L("elementProperties")]=new Map,R[L("finalized")]=new Map,it==null||it({ReactiveElement:R}),(w.reactiveElementVersions??(w.reactiveElementVersions=[])).push("2.1.1");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
@@ -22,7 +22,7 @@
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
23
  */function*he(s,t){if(s!==void 0){let e=0;for(const i of s)yield t(i,e++)}}var ut=function(s,t){return ut=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])},ut(s,t)};function V(s,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ut(s,t);function e(){this.constructor=s}s.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function dt(s){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&s[t],i=0;if(e)return e.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&i>=s.length&&(s=void 0),{value:s&&s[i++],done:!s}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function pt(s,t){var e=typeof Symbol=="function"&&s[Symbol.iterator];if(!e)return s;var i=e.call(s),r,o=[],n;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(n)throw n.error}}return o}function ft(s,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,o;i<r;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return s.concat(o||Array.prototype.slice.call(t))}function b(s){return typeof s=="function"}function le(s){var t=function(i){Error.call(i),i.stack=new Error().stack},e=s(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var nt=le(function(s){return function(e){s(this),this.message=e?e.length+` errors occurred during unsubscription:
24
24
  `+e.map(function(i,r){return r+1+") "+i.toString()}).join(`
25
- `):"",this.name="UnsubscriptionError",this.errors=e}});function gt(s,t){if(s){var e=s.indexOf(t);0<=e&&s.splice(e,1)}}var et=function(){function s(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return s.prototype.unsubscribe=function(){var t,e,i,r,o;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n))try{for(var a=dt(n),c=a.next();!c.done;c=a.next()){var h=c.value;h.remove(this)}}catch(v){t={error:v}}finally{try{c&&!c.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else n.remove(this);var l=this.initialTeardown;if(b(l))try{l()}catch(v){o=v instanceof nt?v.errors:[v]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var p=dt(u),f=p.next();!f.done;f=p.next()){var T=f.value;try{zt(T)}catch(v){o=o??[],v instanceof nt?o=ft(ft([],pt(o)),pt(v.errors)):o.push(v)}}}catch(v){i={error:v}}finally{try{f&&!f.done&&(r=p.return)&&r.call(p)}finally{if(i)throw i.error}}}if(o)throw new nt(o)}},s.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)zt(t);else{if(t instanceof s){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},s.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},s.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},s.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&gt(e,t)},s.prototype.remove=function(t){var e=this._finalizers;e&&gt(e,t),t instanceof s&&t._removeParent(this)},s.EMPTY=function(){var t=new s;return t.closed=!0,t}(),s}(),ue=et.EMPTY;function de(s){return s instanceof et||s&&"closed"in s&&b(s.remove)&&b(s.add)&&b(s.unsubscribe)}function zt(s){b(s)?s():s.unsubscribe()}var De={Promise:void 0},ze={setTimeout:function(s,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,ft([s,t],pt(e)))},clearTimeout:function(s){return clearTimeout(s)},delegate:void 0};function Ve(s){ze.setTimeout(function(){throw s})}function Vt(){}function Y(s){s()}var pe=function(s){V(t,s);function t(e){var i=s.call(this)||this;return i.isStopped=!1,e?(i.destination=e,de(e)&&e.add(i)):i.destination=We,i}return t.create=function(e,i,r){return new vt(e,i,r)},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,s.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}(et),qe=function(){function s(t){this.partialObserver=t}return s.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(i){G(i)}},s.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){G(i)}else G(t)},s.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){G(e)}},s}(),vt=function(s){V(t,s);function t(e,i,r){var o=s.call(this)||this,n;return b(e)||!e?n={next:e??void 0,error:i??void 0,complete:r??void 0}:n=e,o.destination=new qe(n),o}return t}(pe);function G(s){Ve(s)}function Ge(s){throw s}var We={closed:!0,next:Vt,error:Ge,complete:Vt},Ye=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ze(s){return s}function Ke(s){return s.length===0?Ze:s.length===1?s[0]:function(e){return s.reduce(function(i,r){return r(i)},e)}}var qt=function(){function s(t){t&&(this._subscribe=t)}return s.prototype.lift=function(t){var e=new s;return e.source=this,e.operator=t,e},s.prototype.subscribe=function(t,e,i){var r=this,o=Je(t)?t:new vt(t,e,i);return Y(function(){var n=r,a=n.operator,c=n.source;o.add(a?a.call(o,c):c?r._subscribe(o):r._trySubscribe(o))}),o},s.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},s.prototype.forEach=function(t,e){var i=this;return e=Gt(e),new e(function(r,o){var n=new vt({next:function(a){try{t(a)}catch(c){o(c),n.unsubscribe()}},error:o,complete:r});i.subscribe(n)})},s.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},s.prototype[Ye]=function(){return this},s.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Ke(t)(this)},s.prototype.toPromise=function(t){var e=this;return t=Gt(t),new t(function(i,r){var o;e.subscribe(function(n){return o=n},function(n){return r(n)},function(){return i(o)})})},s.create=function(t){return new s(t)},s}();function Gt(s){var t;return(t=s??De.Promise)!==null&&t!==void 0?t:Promise}function Xe(s){return s&&b(s.next)&&b(s.error)&&b(s.complete)}function Je(s){return s&&s instanceof pe||Xe(s)&&de(s)}var Qe=le(function(s){return function(){s(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),wt=function(s){V(t,s);function t(){var e=s.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 i=new Wt(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new Qe},t.prototype.next=function(e){var i=this;Y(function(){var r,o;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var n=dt(i.currentObservers),a=n.next();!a.done;a=n.next()){var c=a.value;c.next(e)}}catch(h){r={error:h}}finally{try{a&&!a.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var i=this;Y(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=e;for(var r=i.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;Y(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var i=e.observers;i.length;)i.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(),s.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 i=this,r=this,o=r.hasError,n=r.isStopped,a=r.observers;return o||n?ue:(this.currentObservers=null,a.push(e),new et(function(){i.currentObservers=null,gt(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,r=i.hasError,o=i.thrownError,n=i.isStopped;r?e.error(o):n&&e.complete()},t.prototype.asObservable=function(){var e=new qt;return e.source=this,e},t.create=function(e,i){return new Wt(e,i)},t}(qt),Wt=function(s){V(t,s);function t(e,i){var r=s.call(this)||this;return r.destination=e,r.source=i,r}return t.prototype.next=function(e){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.next)===null||r===void 0||r.call(i,e)},t.prototype.error=function(e){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.error)===null||r===void 0||r.call(i,e)},t.prototype.complete=function(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)},t.prototype._subscribe=function(e){var i,r;return(r=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&r!==void 0?r:ue},t}(wt),fe=function(s){V(t,s);function t(e){var i=s.call(this)||this;return i._value=e,i}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var i=s.prototype._subscribe.call(this,e);return!i.closed&&e.next(this._value),i},t.prototype.getValue=function(){var e=this,i=e.hasError,r=e.thrownError,o=e._value;if(i)throw r;return this._throwIfClosed(),o},t.prototype.next=function(e){s.prototype.next.call(this,this._value=e)},t}(wt);/**
25
+ `):"",this.name="UnsubscriptionError",this.errors=e}});function gt(s,t){if(s){var e=s.indexOf(t);0<=e&&s.splice(e,1)}}var et=(function(){function s(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return s.prototype.unsubscribe=function(){var t,e,i,r,o;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n))try{for(var a=dt(n),c=a.next();!c.done;c=a.next()){var h=c.value;h.remove(this)}}catch(v){t={error:v}}finally{try{c&&!c.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else n.remove(this);var l=this.initialTeardown;if(b(l))try{l()}catch(v){o=v instanceof nt?v.errors:[v]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var p=dt(u),f=p.next();!f.done;f=p.next()){var T=f.value;try{zt(T)}catch(v){o=o??[],v instanceof nt?o=ft(ft([],pt(o)),pt(v.errors)):o.push(v)}}}catch(v){i={error:v}}finally{try{f&&!f.done&&(r=p.return)&&r.call(p)}finally{if(i)throw i.error}}}if(o)throw new nt(o)}},s.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)zt(t);else{if(t instanceof s){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},s.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},s.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},s.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&gt(e,t)},s.prototype.remove=function(t){var e=this._finalizers;e&&gt(e,t),t instanceof s&&t._removeParent(this)},s.EMPTY=(function(){var t=new s;return t.closed=!0,t})(),s})(),ue=et.EMPTY;function de(s){return s instanceof et||s&&"closed"in s&&b(s.remove)&&b(s.add)&&b(s.unsubscribe)}function zt(s){b(s)?s():s.unsubscribe()}var De={Promise:void 0},ze={setTimeout:function(s,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,ft([s,t],pt(e)))},clearTimeout:function(s){return clearTimeout(s)},delegate:void 0};function Ve(s){ze.setTimeout(function(){throw s})}function Vt(){}function Y(s){s()}var pe=(function(s){V(t,s);function t(e){var i=s.call(this)||this;return i.isStopped=!1,e?(i.destination=e,de(e)&&e.add(i)):i.destination=We,i}return t.create=function(e,i,r){return new vt(e,i,r)},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,s.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})(et),qe=(function(){function s(t){this.partialObserver=t}return s.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(i){G(i)}},s.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){G(i)}else G(t)},s.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){G(e)}},s})(),vt=(function(s){V(t,s);function t(e,i,r){var o=s.call(this)||this,n;return b(e)||!e?n={next:e??void 0,error:i??void 0,complete:r??void 0}:n=e,o.destination=new qe(n),o}return t})(pe);function G(s){Ve(s)}function Ge(s){throw s}var We={closed:!0,next:Vt,error:Ge,complete:Vt},Ye=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function Ze(s){return s}function Ke(s){return s.length===0?Ze:s.length===1?s[0]:function(e){return s.reduce(function(i,r){return r(i)},e)}}var qt=(function(){function s(t){t&&(this._subscribe=t)}return s.prototype.lift=function(t){var e=new s;return e.source=this,e.operator=t,e},s.prototype.subscribe=function(t,e,i){var r=this,o=Je(t)?t:new vt(t,e,i);return Y(function(){var n=r,a=n.operator,c=n.source;o.add(a?a.call(o,c):c?r._subscribe(o):r._trySubscribe(o))}),o},s.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},s.prototype.forEach=function(t,e){var i=this;return e=Gt(e),new e(function(r,o){var n=new vt({next:function(a){try{t(a)}catch(c){o(c),n.unsubscribe()}},error:o,complete:r});i.subscribe(n)})},s.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},s.prototype[Ye]=function(){return this},s.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Ke(t)(this)},s.prototype.toPromise=function(t){var e=this;return t=Gt(t),new t(function(i,r){var o;e.subscribe(function(n){return o=n},function(n){return r(n)},function(){return i(o)})})},s.create=function(t){return new s(t)},s})();function Gt(s){var t;return(t=s??De.Promise)!==null&&t!==void 0?t:Promise}function Xe(s){return s&&b(s.next)&&b(s.error)&&b(s.complete)}function Je(s){return s&&s instanceof pe||Xe(s)&&de(s)}var Qe=le(function(s){return function(){s(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),wt=(function(s){V(t,s);function t(){var e=s.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 i=new Wt(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new Qe},t.prototype.next=function(e){var i=this;Y(function(){var r,o;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var n=dt(i.currentObservers),a=n.next();!a.done;a=n.next()){var c=a.value;c.next(e)}}catch(h){r={error:h}}finally{try{a&&!a.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var i=this;Y(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=e;for(var r=i.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;Y(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var i=e.observers;i.length;)i.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(),s.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 i=this,r=this,o=r.hasError,n=r.isStopped,a=r.observers;return o||n?ue:(this.currentObservers=null,a.push(e),new et(function(){i.currentObservers=null,gt(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,r=i.hasError,o=i.thrownError,n=i.isStopped;r?e.error(o):n&&e.complete()},t.prototype.asObservable=function(){var e=new qt;return e.source=this,e},t.create=function(e,i){return new Wt(e,i)},t})(qt),Wt=(function(s){V(t,s);function t(e,i){var r=s.call(this)||this;return r.destination=e,r.source=i,r}return t.prototype.next=function(e){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.next)===null||r===void 0||r.call(i,e)},t.prototype.error=function(e){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.error)===null||r===void 0||r.call(i,e)},t.prototype.complete=function(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)},t.prototype._subscribe=function(e){var i,r;return(r=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&r!==void 0?r:ue},t})(wt),fe=(function(s){V(t,s);function t(e){var i=s.call(this)||this;return i._value=e,i}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var i=s.prototype._subscribe.call(this,e);return!i.closed&&e.next(this._value),i},t.prototype.getValue=function(){var e=this,i=e.hasError,r=e.thrownError,o=e._value;if(i)throw r;return this._throwIfClosed(),o},t.prototype.next=function(e){s.prototype.next.call(this,this._value=e)},t})(wt);/**
26
26
  * @license
27
27
  * Copyright 2017 Google LLC
28
28
  * SPDX-License-Identifier: BSD-3-Clause
@@ -58,11 +58,11 @@
58
58
  * @license
59
59
  * Copyright 2017 Google LLC
60
60
  * SPDX-License-Identifier: BSD-3-Clause
61
- */const I=(s,t)=>{var i;const e=s._$AN;if(e===void 0)return!1;for(const r of e)(i=r._$AO)==null||i.call(r,t,!1),I(r,t);return!0},J=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while((e==null?void 0:e.size)===0)},ve=s=>{for(let t;t=s._$AM;s=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(s))break;e.add(s),ai(t)}};function oi(s){this._$AN!==void 0?(J(this),this._$AM=s,ve(this)):this._$AM=s}function ni(s,t=!1,e=0){const i=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(i))for(let o=e;o<i.length;o++)I(i[o],!1),J(i[o]);else i!=null&&(I(i,!1),J(i));else I(this,s)}const ai=s=>{s.type==xt.CHILD&&(s._$AP??(s._$AP=ni),s._$AQ??(s._$AQ=oi))};class me extends ge{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),ve(this),this.isConnected=t._$AU}_$AO(t,e=!0){var i,r;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(r=this.disconnected)==null||r.call(this)),e&&(I(this,t),J(this))}setValue(t){if(ri(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const ci=new WeakMap;let Yt=0;const at=new Map,Zt=new WeakSet,Kt=()=>new Promise(s=>requestAnimationFrame(s)),hi=[{transform:"translateX(100%) scale(0)",opacity:0}],Xt=(s,t)=>{const e=s-t;return e===0?void 0:e},Jt=(s,t)=>{const e=s/t;return e===1?void 0:e},ct={left:(s,t)=>{const e=Xt(s,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateX(${e}px)`}},top:(s,t)=>{const e=Xt(s,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateY(${e}px)`}},width:(s,t)=>{let e;t===0&&(t=1,e={width:"1px"});const i=Jt(s,t);return{value:i,overrideFrom:e,transform:i==null||isNaN(i)?void 0:`scaleX(${i})`}},height:(s,t)=>{let e;t===0&&(t=1,e={height:"1px"});const i=Jt(s,t);return{value:i,overrideFrom:e,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},li={duration:333,easing:"ease-in-out"},ui=["left","top","width","height","opacity","color","background"],Qt=new WeakMap;class di extends me{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===xt.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 d}getController(){return ci.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[e]){var r;const i=this.u===void 0;return i&&(this.u=(r=t.options)==null?void 0:r.host,this.u.addController(this),this.u.updateComplete.then(o=>this.t=!0),this.element=t.element,Qt.set(this.element,this)),this.optionsOrCallback=e,(i||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=ui),this.options=t}m(){const t={},e=this.element.getBoundingClientRect(),i=getComputedStyle(this.element);return this.options.properties.forEach(r=>{const o=e[r]??(ct[r]?void 0:i[r]),n=Number(o);t[r]=isNaN(n)?o+"":n}),t}v(){let t,e=!0;return this.options.guard&&(t=this.options.guard(),e=((i,r)=>{if(Array.isArray(i)){if(Array.isArray(r)&&r.length===i.length&&i.every((o,n)=>o===r[n]))return!1}else if(r===i)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 Kt;const e=this.O(),i=this.j(this.options.keyframeOptions,e),r=this.m();if(this.A!==void 0){const{from:o,to:n}=this.N(this.A,r,e);this.log("measured",[this.A,r,o,n]),t=this.calculateKeyframes(o,n)}else{const o=at.get(this.options.inId);if(o){at.delete(this.options.inId);const{from:n,to:a}=this.N(o,r,e);t=this.calculateKeyframes(n,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Yt++,t.forEach(c=>c.zIndex=Yt)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,i)}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&&at.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await Kt(),(e=this.i)==null?void 0:e.isConnected){const i=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,i),this.options.stabilizeOut){const r=this.m();this.log("stabilizing out");const o=this.A.left-r.left,n=this.A.top-r.top;getComputedStyle(this.element).position!=="static"||o===0&&n===0||(this.element.style.position="relative"),o!==0&&(this.element.style.left=o+"px"),n!==0&&(this.element.style.top=n+"px")}}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,i;t&&((i=(e=this.options).onComplete)==null||i.call(e,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let e=this.element.parentNode;e;e=e==null?void 0:e.parentNode){const i=Qt.get(e);i&&!i.isDisabled()&&i&&t.push(i)}return t}get isHostRendered(){const t=Zt.has(this.u);return t||this.u.updateComplete.then(()=>{Zt.add(this.u)}),t}j(t,e=this.O()){const i={...li};return e.forEach(r=>Object.assign(i,r.options.keyframeOptions)),Object.assign(i,t),i}N(t,e,i){t={...t},e={...e};const r=i.map(a=>a.animatingProperties).filter(a=>a!==void 0);let o=1,n=1;return r.length>0&&(r.forEach(a=>{a.width&&(o/=a.width),a.height&&(n/=a.height)}),t.left!==void 0&&e.left!==void 0&&(t.left=o*t.left,e.left=o*e.left),t.top!==void 0&&e.top!==void 0&&(t.top=n*t.top,e.top=n*e.top)),{from:t,to:e}}calculateKeyframes(t,e,i=!1){const r={},o={};let n=!1;const a={};for(const c in e){const h=t[c],l=e[c];if(c in ct){const u=ct[c];if(h===void 0||l===void 0)continue;const p=u(h,l);p.transform!==void 0&&(a[c]=p.value,n=!0,r.transform=`${r.transform??""} ${p.transform}`,p.overrideFrom!==void 0&&Object.assign(r,p.overrideFrom))}else h!==l&&h!==void 0&&l!==void 0&&(n=!0,r[c]=h,o[c]=l)}return r.transformOrigin=o.transformOrigin=i?"center center":"top left",this.animatingProperties=a,n?[r,o]:void 0}async animate(t,e=this.options.keyframeOptions){this.start(),this.frames=t;let i=!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]),i=!0,this.webAnimation=this.element.animate(t,e);const r=this.getController();r==null||r.add(this);try{await this.webAnimation.finished}catch{}r==null||r.remove(this)}return this.didFinish(i),i}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 pi=At(di),fi={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
+ */const I=(s,t)=>{var i;const e=s._$AN;if(e===void 0)return!1;for(const r of e)(i=r._$AO)==null||i.call(r,t,!1),I(r,t);return!0},J=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while((e==null?void 0:e.size)===0)},ve=s=>{for(let t;t=s._$AM;s=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(s))break;e.add(s),ai(t)}};function oi(s){this._$AN!==void 0?(J(this),this._$AM=s,ve(this)):this._$AM=s}function ni(s,t=!1,e=0){const i=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(i))for(let o=e;o<i.length;o++)I(i[o],!1),J(i[o]);else i!=null&&(I(i,!1),J(i));else I(this,s)}const ai=s=>{s.type==xt.CHILD&&(s._$AP??(s._$AP=ni),s._$AQ??(s._$AQ=oi))};class me extends ge{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),ve(this),this.isConnected=t._$AU}_$AO(t,e=!0){var i,r;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(r=this.disconnected)==null||r.call(this)),e&&(I(this,t),J(this))}setValue(t){if(ri(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const ci=new WeakMap;let Yt=0;const at=new Map,Zt=new WeakSet,Kt=()=>new Promise((s=>requestAnimationFrame(s))),hi=[{transform:"translateX(100%) scale(0)",opacity:0}],Xt=(s,t)=>{const e=s-t;return e===0?void 0:e},Jt=(s,t)=>{const e=s/t;return e===1?void 0:e},ct={left:(s,t)=>{const e=Xt(s,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateX(${e}px)`}},top:(s,t)=>{const e=Xt(s,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateY(${e}px)`}},width:(s,t)=>{let e;t===0&&(t=1,e={width:"1px"});const i=Jt(s,t);return{value:i,overrideFrom:e,transform:i==null||isNaN(i)?void 0:`scaleX(${i})`}},height:(s,t)=>{let e;t===0&&(t=1,e={height:"1px"});const i=Jt(s,t);return{value:i,overrideFrom:e,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},li={duration:333,easing:"ease-in-out"},ui=["left","top","width","height","opacity","color","background"],Qt=new WeakMap;class di extends me{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===xt.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 d}getController(){return ci.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[e]){var r;const i=this.u===void 0;return i&&(this.u=(r=t.options)==null?void 0:r.host,this.u.addController(this),this.u.updateComplete.then((o=>this.t=!0)),this.element=t.element,Qt.set(this.element,this)),this.optionsOrCallback=e,(i||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=ui),this.options=t}m(){const t={},e=this.element.getBoundingClientRect(),i=getComputedStyle(this.element);return this.options.properties.forEach((r=>{const o=e[r]??(ct[r]?void 0:i[r]),n=Number(o);t[r]=isNaN(n)?o+"":n})),t}v(){let t,e=!0;return this.options.guard&&(t=this.options.guard(),e=((i,r)=>{if(Array.isArray(i)){if(Array.isArray(r)&&r.length===i.length&&i.every(((o,n)=>o===r[n])))return!1}else if(r===i)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 Kt;const e=this.O(),i=this.j(this.options.keyframeOptions,e),r=this.m();if(this.A!==void 0){const{from:o,to:n}=this.N(this.A,r,e);this.log("measured",[this.A,r,o,n]),t=this.calculateKeyframes(o,n)}else{const o=at.get(this.options.inId);if(o){at.delete(this.options.inId);const{from:n,to:a}=this.N(o,r,e);t=this.calculateKeyframes(n,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Yt++,t.forEach((c=>c.zIndex=Yt))}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,i)}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&&at.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await Kt(),(e=this.i)==null?void 0:e.isConnected){const i=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,i),this.options.stabilizeOut){const r=this.m();this.log("stabilizing out");const o=this.A.left-r.left,n=this.A.top-r.top;getComputedStyle(this.element).position!=="static"||o===0&&n===0||(this.element.style.position="relative"),o!==0&&(this.element.style.left=o+"px"),n!==0&&(this.element.style.top=n+"px")}}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,i;t&&((i=(e=this.options).onComplete)==null||i.call(e,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let e=this.element.parentNode;e;e=e==null?void 0:e.parentNode){const i=Qt.get(e);i&&!i.isDisabled()&&i&&t.push(i)}return t}get isHostRendered(){const t=Zt.has(this.u);return t||this.u.updateComplete.then((()=>{Zt.add(this.u)})),t}j(t,e=this.O()){const i={...li};return e.forEach((r=>Object.assign(i,r.options.keyframeOptions))),Object.assign(i,t),i}N(t,e,i){t={...t},e={...e};const r=i.map((a=>a.animatingProperties)).filter((a=>a!==void 0));let o=1,n=1;return r.length>0&&(r.forEach((a=>{a.width&&(o/=a.width),a.height&&(n/=a.height)})),t.left!==void 0&&e.left!==void 0&&(t.left=o*t.left,e.left=o*e.left),t.top!==void 0&&e.top!==void 0&&(t.top=n*t.top,e.top=n*e.top)),{from:t,to:e}}calculateKeyframes(t,e,i=!1){const r={},o={};let n=!1;const a={};for(const c in e){const h=t[c],l=e[c];if(c in ct){const u=ct[c];if(h===void 0||l===void 0)continue;const p=u(h,l);p.transform!==void 0&&(a[c]=p.value,n=!0,r.transform=`${r.transform??""} ${p.transform}`,p.overrideFrom!==void 0&&Object.assign(r,p.overrideFrom))}else h!==l&&h!==void 0&&l!==void 0&&(n=!0,r[c]=h,o[c]=l)}return r.transformOrigin=o.transformOrigin=i?"center center":"top left",this.animatingProperties=a,n?[r,o]:void 0}async animate(t,e=this.options.keyframeOptions){this.start(),this.frames=t;let i=!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]),i=!0,this.webAnimation=this.element.animate(t,e);const r=this.getController();r==null||r.add(this);try{await this.webAnimation.finished}catch{}r==null||r.remove(this)}return this.didFinish(i),i}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 pi=At(di),fi={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 te=At(class extends ge{constructor(s){var t;if(super(s),s.type!==xt.ATTRIBUTE||s.name!=="class"||((t=s.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(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){var i,r;if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in t)t[o]&&!((i=this.nt)!=null&&i.has(o))&&this.st.add(o);return this.render(t)}const e=s.element.classList;for(const o of this.st)o in t||(e.remove(o),this.st.delete(o));for(const o in t){const n=!!t[o];n===this.st.has(o)||(r=this.nt)!=null&&r.has(o)||(n?(e.add(o),this.st.add(o)):(e.remove(o),this.st.delete(o)))}return O}}),y=(s,t,e)=>{s&&e.style.setProperty(t,s)},ye=(s,t)=>{var e,i,r,o,n,a,c,h,l;y((e=s.colors)==null?void 0:e.primaryBackground,"--primary-background",t),y((i=s.colors)==null?void 0:i.textOnPrimaryBackground,"--text-on-primary-background",t),y((r=s.colors)==null?void 0:r.secondaryBackground,"--secondary-background",t),y((o=s.colors)==null?void 0:o.textOnSecondaryBackground,"--text-on-secondary-background",t),y((n=s.colors)==null?void 0:n.interactiveDestructiveBackground,"--destructive-color",t),y((a=s.colors)==null?void 0:a.interactiveTextOnDestructiveBackground,"--text-on-destructive-color",t),y((c=s.colors)==null?void 0:c.interactivePrimaryBackground,"--interactive-primary-background",t),y((h=s.colors)==null?void 0:h.interactiveTextOnPrimaryBackground,"--interactive-text-on-primary-background",t),y((l=s.colors)==null?void 0:l.focusColor,"--focus-color",t)};/**
65
+ */const te=At(class extends ge{constructor(s){var t;if(super(s),s.type!==xt.ATTRIBUTE||s.name!=="class"||((t=s.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(s){return" "+Object.keys(s).filter((t=>s[t])).join(" ")+" "}update(s,[t]){var i,r;if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((o=>o!==""))));for(const o in t)t[o]&&!((i=this.nt)!=null&&i.has(o))&&this.st.add(o);return this.render(t)}const e=s.element.classList;for(const o of this.st)o in t||(e.remove(o),this.st.delete(o));for(const o in t){const n=!!t[o];n===this.st.has(o)||(r=this.nt)!=null&&r.has(o)||(n?(e.add(o),this.st.add(o)):(e.remove(o),this.st.delete(o)))}return O}}),y=(s,t,e)=>{s&&e.style.setProperty(t,s)},ye=(s,t)=>{var e,i,r,o,n,a,c,h,l;y((e=s.colors)==null?void 0:e.primaryBackground,"--primary-background",t),y((i=s.colors)==null?void 0:i.textOnPrimaryBackground,"--text-on-primary-background",t),y((r=s.colors)==null?void 0:r.secondaryBackground,"--secondary-background",t),y((o=s.colors)==null?void 0:o.textOnSecondaryBackground,"--text-on-secondary-background",t),y((n=s.colors)==null?void 0:n.interactiveDestructiveBackground,"--destructive-color",t),y((a=s.colors)==null?void 0:a.interactiveTextOnDestructiveBackground,"--text-on-destructive-color",t),y((c=s.colors)==null?void 0:c.interactivePrimaryBackground,"--interactive-primary-background",t),y((h=s.colors)==null?void 0:h.interactiveTextOnPrimaryBackground,"--interactive-text-on-primary-background",t),y((l=s.colors)==null?void 0:l.focusColor,"--focus-color",t)};/**
66
66
  * @license
67
67
  * Copyright 2020 Google LLC
68
68
  * SPDX-License-Identifier: BSD-3-Clause
@@ -286,7 +286,7 @@
286
286
  * @license
287
287
  * Copyright 2017 Google LLC
288
288
  * SPDX-License-Identifier: BSD-3-Clause
289
- */function _i({context:s}){return(t,e)=>{const i=new WeakMap;if(typeof e=="object")return{get(){return t.get.call(this)},set(r){return i.get(this).setValue(r),t.set.call(this,r)},init(r){return i.set(this,new ee(this,{context:s,initialValue:r})),r}};{t.constructor.addInitializer(n=>{i.set(n,new ee(n,{context:s}))});const r=Object.getOwnPropertyDescriptor(t,e);let o;if(r===void 0){const n=new WeakMap;o={get(){return n.get(this)},set(a){i.get(this).setValue(a),n.set(this,a)},configurable:!0,enumerable:!0}}else{const n=r.set;o={...r,set(a){i.get(this).setValue(a),n==null||n.call(this,a)}}}return void Object.defineProperty(t,e,o)}}}var wi=Object.defineProperty,we=(s,t,e,i)=>{for(var r=void 0,o=s.length-1,n;o>=0;o--)(n=s[o])&&(r=n(t,e,r)||r);return r&&wi(t,e,r),r};const xi="application",kt=class kt extends m{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=be(),this.fullscreen=!1,this.isReady=new fe(!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&&ye(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),e=this.wrapperRef.value;Object.entries(t).forEach(([i,r])=>{e.style.setProperty(`--${i}`,r)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){var i,r;const t=this.application.settings.components.conversation;return((r=(i=t==null?void 0:t.properties)==null?void 0:i.chat)==null?void 0:r.isThirdPartyWidget)?this.renderRoot.host.classList.add("third-party"):this.application.renderStrategy===Ct.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"),C`<div class="widget-container" ${$e(this.wrapperRef)}>
289
+ */function _i({context:s}){return(t,e)=>{const i=new WeakMap;if(typeof e=="object")return{get(){return t.get.call(this)},set(r){return i.get(this).setValue(r),t.set.call(this,r)},init(r){return i.set(this,new ee(this,{context:s,initialValue:r})),r}};{t.constructor.addInitializer((n=>{i.set(n,new ee(n,{context:s}))}));const r=Object.getOwnPropertyDescriptor(t,e);let o;if(r===void 0){const n=new WeakMap;o={get(){return n.get(this)},set(a){i.get(this).setValue(a),n.set(this,a)},configurable:!0,enumerable:!0}}else{const n=r.set;o={...r,set(a){i.get(this).setValue(a),n==null||n.call(this,a)}}}return void Object.defineProperty(t,e,o)}}}var wi=Object.defineProperty,we=(s,t,e,i)=>{for(var r=void 0,o=s.length-1,n;o>=0;o--)(n=s[o])&&(r=n(t,e,r)||r);return r&&wi(t,e,r),r};const xi="application",kt=class kt extends m{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=be(),this.fullscreen=!1,this.isReady=new fe(!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&&ye(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),e=this.wrapperRef.value;Object.entries(t).forEach(([i,r])=>{e.style.setProperty(`--${i}`,r)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){var i,r;const t=this.application.settings.components.conversation;return((r=(i=t==null?void 0:t.properties)==null?void 0:i.chat)==null?void 0:r.isThirdPartyWidget)?this.renderRoot.host.classList.add("third-party"):this.application.renderStrategy===Ct.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"),C`<div class="widget-container" ${$e(this.wrapperRef)}>
290
290
  ${he(this.nodes,o=>o)}
291
291
  </div>`}};kt.styles=k`
292
292
  :host {
package/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";const r=async e=>{e.registerComponent("area",Promise.resolve().then(()=>require("./area-DyeEuDGW.js")))};module.exports=r;
1
+ "use strict";const r=async e=>{e.registerComponent("area",Promise.resolve().then(()=>require("./area-Muu1scep.js")))};module.exports=r;
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  const o = async (e) => {
2
- e.registerComponent("area", import("./area-C9GQ0si4.mjs"));
2
+ e.registerComponent("area", import("./area-DNwNulDn.mjs"));
3
3
  };
4
4
  export {
5
5
  o as default
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-components-area-flamingo",
3
- "version": "1.1.121-rc.0",
3
+ "version": "1.1.121-rc.2",
4
4
  "dependencies": {
5
- "@telia-ace/widget-core-flamingo": "1.1.120",
5
+ "@telia-ace/widget-core-flamingo": "1.1.121-rc.2",
6
6
  "lit": "^3.0.2"
7
7
  },
8
8
  "main": "./index.js",