@florid-kit/components 0.6.1 → 0.7.0

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.mjs CHANGED
@@ -3,18 +3,18 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const et = globalThis, ft = et.ShadowRoot && (et.ShadyCSS === void 0 || et.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, bt = Symbol(), _t = /* @__PURE__ */ new WeakMap();
7
- let zt = class {
8
- constructor(t, e, i) {
9
- if (this._$cssResult$ = !0, i !== bt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
6
+ const rt = globalThis, mt = rt.ShadowRoot && (rt.ShadyCSS === void 0 || rt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, wt = Symbol(), At = /* @__PURE__ */ new WeakMap();
7
+ let Mt = class {
8
+ constructor(t, e, n) {
9
+ if (this._$cssResult$ = !0, n !== wt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
10
10
  this.cssText = t, this.t = e;
11
11
  }
12
12
  get styleSheet() {
13
13
  let t = this.o;
14
14
  const e = this.t;
15
- if (ft && t === void 0) {
16
- const i = e !== void 0 && e.length === 1;
17
- i && (t = _t.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && _t.set(e, t));
15
+ if (mt && t === void 0) {
16
+ const n = e !== void 0 && e.length === 1;
17
+ n && (t = At.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), n && At.set(e, t));
18
18
  }
19
19
  return t;
20
20
  }
@@ -22,33 +22,33 @@ let zt = class {
22
22
  return this.cssText;
23
23
  }
24
24
  };
25
- const Ut = (o) => new zt(typeof o == "string" ? o : o + "", void 0, bt), w = (o, ...t) => {
26
- const e = o.length === 1 ? o[0] : t.reduce((i, n, s) => i + ((r) => {
25
+ const Ft = (o) => new Mt(typeof o == "string" ? o : o + "", void 0, wt), w = (o, ...t) => {
26
+ const e = o.length === 1 ? o[0] : t.reduce((n, i, s) => n + ((r) => {
27
27
  if (r._$cssResult$ === !0) return r.cssText;
28
28
  if (typeof r == "number") return r;
29
29
  throw Error("Value passed to 'css' function must be a 'css' function result: " + r + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
30
- })(n) + o[s + 1], o[0]);
31
- return new zt(e, o, bt);
32
- }, jt = (o, t) => {
33
- if (ft) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
30
+ })(i) + o[s + 1], o[0]);
31
+ return new Mt(e, o, wt);
32
+ }, Rt = (o, t) => {
33
+ if (mt) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
34
34
  else for (const e of t) {
35
- const i = document.createElement("style"), n = et.litNonce;
36
- n !== void 0 && i.setAttribute("nonce", n), i.textContent = e.cssText, o.appendChild(i);
35
+ const n = document.createElement("style"), i = rt.litNonce;
36
+ i !== void 0 && n.setAttribute("nonce", i), n.textContent = e.cssText, o.appendChild(n);
37
37
  }
38
- }, Ct = ft ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
38
+ }, Et = mt ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
39
39
  let e = "";
40
- for (const i of t.cssRules) e += i.cssText;
41
- return Ut(e);
40
+ for (const n of t.cssRules) e += n.cssText;
41
+ return Ft(e);
42
42
  })(o) : o;
43
43
  /**
44
44
  * @license
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: Nt, defineProperty: Ft, getOwnPropertyDescriptor: Vt, getOwnPropertyNames: Rt, getOwnPropertySymbols: Zt, getPrototypeOf: qt } = Object, P = globalThis, At = P.trustedTypes, Wt = At ? At.emptyScript : "", lt = P.reactiveElementPolyfillSupport, Z = (o, t) => o, ot = { toAttribute(o, t) {
48
+ const { is: Vt, defineProperty: Zt, getOwnPropertyDescriptor: Wt, getOwnPropertyNames: qt, getOwnPropertySymbols: Kt, getPrototypeOf: Gt } = Object, O = globalThis, St = O.trustedTypes, Xt = St ? St.emptyScript : "", dt = O.reactiveElementPolyfillSupport, X = (o, t) => o, st = { toAttribute(o, t) {
49
49
  switch (t) {
50
50
  case Boolean:
51
- o = o ? Wt : null;
51
+ o = o ? Xt : null;
52
52
  break;
53
53
  case Object:
54
54
  case Array:
@@ -73,69 +73,69 @@ const { is: Nt, defineProperty: Ft, getOwnPropertyDescriptor: Vt, getOwnProperty
73
73
  }
74
74
  }
75
75
  return e;
76
- } }, yt = (o, t) => !Nt(o, t), kt = { attribute: !0, type: String, converter: ot, reflect: !1, useDefault: !1, hasChanged: yt };
77
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), P.litPropertyMetadata ?? (P.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
- let U = class extends HTMLElement {
76
+ } }, xt = (o, t) => !Vt(o, t), Lt = { attribute: !0, type: String, converter: st, reflect: !1, useDefault: !1, hasChanged: xt };
77
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), O.litPropertyMetadata ?? (O.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
+ let R = class extends HTMLElement {
79
79
  static addInitializer(t) {
80
80
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
81
81
  }
82
82
  static get observedAttributes() {
83
83
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
84
84
  }
85
- static createProperty(t, e = kt) {
85
+ static createProperty(t, e = Lt) {
86
86
  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) {
87
- const i = Symbol(), n = this.getPropertyDescriptor(t, i, e);
88
- n !== void 0 && Ft(this.prototype, t, n);
87
+ const n = Symbol(), i = this.getPropertyDescriptor(t, n, e);
88
+ i !== void 0 && Zt(this.prototype, t, i);
89
89
  }
90
90
  }
91
- static getPropertyDescriptor(t, e, i) {
92
- const { get: n, set: s } = Vt(this.prototype, t) ?? { get() {
91
+ static getPropertyDescriptor(t, e, n) {
92
+ const { get: i, set: s } = Wt(this.prototype, t) ?? { get() {
93
93
  return this[e];
94
94
  }, set(r) {
95
95
  this[e] = r;
96
96
  } };
97
- return { get: n, set(r) {
98
- const c = n == null ? void 0 : n.call(this);
99
- s == null || s.call(this, r), this.requestUpdate(t, c, i);
97
+ return { get: i, set(r) {
98
+ const h = i == null ? void 0 : i.call(this);
99
+ s == null || s.call(this, r), this.requestUpdate(t, h, n);
100
100
  }, configurable: !0, enumerable: !0 };
101
101
  }
102
102
  static getPropertyOptions(t) {
103
- return this.elementProperties.get(t) ?? kt;
103
+ return this.elementProperties.get(t) ?? Lt;
104
104
  }
105
105
  static _$Ei() {
106
- if (this.hasOwnProperty(Z("elementProperties"))) return;
107
- const t = qt(this);
106
+ if (this.hasOwnProperty(X("elementProperties"))) return;
107
+ const t = Gt(this);
108
108
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
109
109
  }
110
110
  static finalize() {
111
- if (this.hasOwnProperty(Z("finalized"))) return;
112
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Z("properties"))) {
113
- const e = this.properties, i = [...Rt(e), ...Zt(e)];
114
- for (const n of i) this.createProperty(n, e[n]);
111
+ if (this.hasOwnProperty(X("finalized"))) return;
112
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(X("properties"))) {
113
+ const e = this.properties, n = [...qt(e), ...Kt(e)];
114
+ for (const i of n) this.createProperty(i, e[i]);
115
115
  }
116
116
  const t = this[Symbol.metadata];
117
117
  if (t !== null) {
118
118
  const e = litPropertyMetadata.get(t);
119
- if (e !== void 0) for (const [i, n] of e) this.elementProperties.set(i, n);
119
+ if (e !== void 0) for (const [n, i] of e) this.elementProperties.set(n, i);
120
120
  }
121
121
  this._$Eh = /* @__PURE__ */ new Map();
122
- for (const [e, i] of this.elementProperties) {
123
- const n = this._$Eu(e, i);
124
- n !== void 0 && this._$Eh.set(n, e);
122
+ for (const [e, n] of this.elementProperties) {
123
+ const i = this._$Eu(e, n);
124
+ i !== void 0 && this._$Eh.set(i, e);
125
125
  }
126
126
  this.elementStyles = this.finalizeStyles(this.styles);
127
127
  }
128
128
  static finalizeStyles(t) {
129
129
  const e = [];
130
130
  if (Array.isArray(t)) {
131
- const i = new Set(t.flat(1 / 0).reverse());
132
- for (const n of i) e.unshift(Ct(n));
133
- } else t !== void 0 && e.push(Ct(t));
131
+ const n = new Set(t.flat(1 / 0).reverse());
132
+ for (const i of n) e.unshift(Et(i));
133
+ } else t !== void 0 && e.push(Et(t));
134
134
  return e;
135
135
  }
136
136
  static _$Eu(t, e) {
137
- const i = e.attribute;
138
- return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
137
+ const n = e.attribute;
138
+ return n === !1 ? void 0 : typeof n == "string" ? n : typeof t == "string" ? t.toLowerCase() : void 0;
139
139
  }
140
140
  constructor() {
141
141
  super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
@@ -154,18 +154,18 @@ let U = class extends HTMLElement {
154
154
  }
155
155
  _$E_() {
156
156
  const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
157
- for (const i of e.keys()) this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
157
+ for (const n of e.keys()) this.hasOwnProperty(n) && (t.set(n, this[n]), delete this[n]);
158
158
  t.size > 0 && (this._$Ep = t);
159
159
  }
160
160
  createRenderRoot() {
161
161
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
162
- return jt(t, this.constructor.elementStyles), t;
162
+ return Rt(t, this.constructor.elementStyles), t;
163
163
  }
164
164
  connectedCallback() {
165
165
  var t;
166
166
  this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
167
- var i;
168
- return (i = e.hostConnected) == null ? void 0 : i.call(e);
167
+ var n;
168
+ return (n = e.hostConnected) == null ? void 0 : n.call(e);
169
169
  });
170
170
  }
171
171
  enableUpdating(t) {
@@ -173,40 +173,40 @@ let U = class extends HTMLElement {
173
173
  disconnectedCallback() {
174
174
  var t;
175
175
  (t = this._$EO) == null || t.forEach((e) => {
176
- var i;
177
- return (i = e.hostDisconnected) == null ? void 0 : i.call(e);
176
+ var n;
177
+ return (n = e.hostDisconnected) == null ? void 0 : n.call(e);
178
178
  });
179
179
  }
180
- attributeChangedCallback(t, e, i) {
181
- this._$AK(t, i);
180
+ attributeChangedCallback(t, e, n) {
181
+ this._$AK(t, n);
182
182
  }
183
183
  _$ET(t, e) {
184
184
  var s;
185
- const i = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, i);
186
- if (n !== void 0 && i.reflect === !0) {
187
- const r = (((s = i.converter) == null ? void 0 : s.toAttribute) !== void 0 ? i.converter : ot).toAttribute(e, i.type);
188
- this._$Em = t, r == null ? this.removeAttribute(n) : this.setAttribute(n, r), this._$Em = null;
185
+ const n = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, n);
186
+ if (i !== void 0 && n.reflect === !0) {
187
+ const r = (((s = n.converter) == null ? void 0 : s.toAttribute) !== void 0 ? n.converter : st).toAttribute(e, n.type);
188
+ this._$Em = t, r == null ? this.removeAttribute(i) : this.setAttribute(i, r), this._$Em = null;
189
189
  }
190
190
  }
191
191
  _$AK(t, e) {
192
192
  var s, r;
193
- const i = this.constructor, n = i._$Eh.get(t);
194
- if (n !== void 0 && this._$Em !== n) {
195
- const c = i.getPropertyOptions(n), l = typeof c.converter == "function" ? { fromAttribute: c.converter } : ((s = c.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? c.converter : ot;
196
- this._$Em = n, this[n] = l.fromAttribute(e, c.type) ?? ((r = this._$Ej) == null ? void 0 : r.get(n)) ?? null, this._$Em = null;
193
+ const n = this.constructor, i = n._$Eh.get(t);
194
+ if (i !== void 0 && this._$Em !== i) {
195
+ const h = n.getPropertyOptions(i), l = typeof h.converter == "function" ? { fromAttribute: h.converter } : ((s = h.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? h.converter : st;
196
+ this._$Em = i, this[i] = l.fromAttribute(e, h.type) ?? ((r = this._$Ej) == null ? void 0 : r.get(i)) ?? null, this._$Em = null;
197
197
  }
198
198
  }
199
- requestUpdate(t, e, i) {
200
- var n;
199
+ requestUpdate(t, e, n) {
200
+ var i;
201
201
  if (t !== void 0) {
202
202
  const s = this.constructor, r = this[t];
203
- if (i ?? (i = s.getPropertyOptions(t)), !((i.hasChanged ?? yt)(r, e) || i.useDefault && i.reflect && r === ((n = this._$Ej) == null ? void 0 : n.get(t)) && !this.hasAttribute(s._$Eu(t, i)))) return;
204
- this.C(t, e, i);
203
+ if (n ?? (n = s.getPropertyOptions(t)), !((n.hasChanged ?? xt)(r, e) || n.useDefault && n.reflect && r === ((i = this._$Ej) == null ? void 0 : i.get(t)) && !this.hasAttribute(s._$Eu(t, n)))) return;
204
+ this.C(t, e, n);
205
205
  }
206
206
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
207
207
  }
208
- C(t, e, { useDefault: i, reflect: n, wrapped: s }, r) {
209
- i && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, r ?? e ?? this[t]), s !== !0 || r !== void 0) || (this._$AL.has(t) || (this.hasUpdated || i || (e = void 0), this._$AL.set(t, e)), n === !0 && this._$Em !== t && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t));
208
+ C(t, e, { useDefault: n, reflect: i, wrapped: s }, r) {
209
+ n && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, r ?? e ?? this[t]), s !== !0 || r !== void 0) || (this._$AL.has(t) || (this.hasUpdated || n || (e = void 0), this._$AL.set(t, e)), i === !0 && this._$Em !== t && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t));
210
210
  }
211
211
  async _$EP() {
212
212
  this.isUpdatePending = !0;
@@ -222,28 +222,28 @@ let U = class extends HTMLElement {
222
222
  return this.performUpdate();
223
223
  }
224
224
  performUpdate() {
225
- var i;
225
+ var n;
226
226
  if (!this.isUpdatePending) return;
227
227
  if (!this.hasUpdated) {
228
228
  if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
229
229
  for (const [s, r] of this._$Ep) this[s] = r;
230
230
  this._$Ep = void 0;
231
231
  }
232
- const n = this.constructor.elementProperties;
233
- if (n.size > 0) for (const [s, r] of n) {
234
- const { wrapped: c } = r, l = this[s];
235
- c !== !0 || this._$AL.has(s) || l === void 0 || this.C(s, void 0, r, l);
232
+ const i = this.constructor.elementProperties;
233
+ if (i.size > 0) for (const [s, r] of i) {
234
+ const { wrapped: h } = r, l = this[s];
235
+ h !== !0 || this._$AL.has(s) || l === void 0 || this.C(s, void 0, r, l);
236
236
  }
237
237
  }
238
238
  let t = !1;
239
239
  const e = this._$AL;
240
240
  try {
241
- t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((n) => {
241
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (n = this._$EO) == null || n.forEach((i) => {
242
242
  var s;
243
- return (s = n.hostUpdate) == null ? void 0 : s.call(n);
243
+ return (s = i.hostUpdate) == null ? void 0 : s.call(i);
244
244
  }), this.update(e)) : this._$EM();
245
- } catch (n) {
246
- throw t = !1, this._$EM(), n;
245
+ } catch (i) {
246
+ throw t = !1, this._$EM(), i;
247
247
  }
248
248
  t && this._$AE(e);
249
249
  }
@@ -251,9 +251,9 @@ let U = class extends HTMLElement {
251
251
  }
252
252
  _$AE(t) {
253
253
  var e;
254
- (e = this._$EO) == null || e.forEach((i) => {
255
- var n;
256
- return (n = i.hostUpdated) == null ? void 0 : n.call(i);
254
+ (e = this._$EO) == null || e.forEach((n) => {
255
+ var i;
256
+ return (i = n.hostUpdated) == null ? void 0 : i.call(n);
257
257
  }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
258
258
  }
259
259
  _$EM() {
@@ -276,76 +276,76 @@ let U = class extends HTMLElement {
276
276
  firstUpdated(t) {
277
277
  }
278
278
  };
279
- U.elementStyles = [], U.shadowRootOptions = { mode: "open" }, U[Z("elementProperties")] = /* @__PURE__ */ new Map(), U[Z("finalized")] = /* @__PURE__ */ new Map(), lt == null || lt({ ReactiveElement: U }), (P.reactiveElementVersions ?? (P.reactiveElementVersions = [])).push("2.1.0");
279
+ R.elementStyles = [], R.shadowRootOptions = { mode: "open" }, R[X("elementProperties")] = /* @__PURE__ */ new Map(), R[X("finalized")] = /* @__PURE__ */ new Map(), dt == null || dt({ ReactiveElement: R }), (O.reactiveElementVersions ?? (O.reactiveElementVersions = [])).push("2.1.0");
280
280
  /**
281
281
  * @license
282
282
  * Copyright 2017 Google LLC
283
283
  * SPDX-License-Identifier: BSD-3-Clause
284
284
  */
285
- const q = globalThis, nt = q.trustedTypes, Et = nt ? nt.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, Ht = "$lit$", L = `lit$${Math.random().toFixed(9).slice(2)}$`, Mt = "?" + L, Kt = `<${Mt}>`, H = document, W = () => H.createComment(""), K = (o) => o === null || typeof o != "object" && typeof o != "function", mt = Array.isArray, Gt = (o) => mt(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", ct = `[
286
- \f\r]`, R = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, St = /-->/g, Lt = />/g, B = RegExp(`>|${ct}(?:([^\\s"'>=/]+)(${ct}*=${ct}*(?:[^
287
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Pt = /'/g, It = /"/g, Dt = /^(?:script|style|textarea|title)$/i, Xt = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), h = Xt(1), M = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Bt = /* @__PURE__ */ new WeakMap(), O = H.createTreeWalker(H, 129);
288
- function Tt(o, t) {
289
- if (!mt(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
290
- return Et !== void 0 ? Et.createHTML(t) : t;
285
+ const J = globalThis, at = J.trustedTypes, It = at ? at.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, Tt = "$lit$", P = `lit$${Math.random().toFixed(9).slice(2)}$`, jt = "?" + P, Jt = `<${jt}>`, T = document, Y = () => T.createComment(""), Q = (o) => o === null || typeof o != "object" && typeof o != "function", $t = Array.isArray, Yt = (o) => $t(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", pt = `[
286
+ \f\r]`, K = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Pt = /-->/g, Ot = />/g, D = RegExp(`>|${pt}(?:([^\\s"'>=/]+)(${pt}*=${pt}*(?:[^
287
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Bt = /'/g, zt = /"/g, Ut = /^(?:script|style|textarea|title)$/i, Qt = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), c = Qt(1), j = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Dt = /* @__PURE__ */ new WeakMap(), H = T.createTreeWalker(T, 129);
288
+ function Nt(o, t) {
289
+ if (!$t(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
290
+ return It !== void 0 ? It.createHTML(t) : t;
291
291
  }
292
- const Jt = (o, t) => {
293
- const e = o.length - 1, i = [];
294
- let n, s = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", r = R;
295
- for (let c = 0; c < e; c++) {
296
- const l = o[c];
297
- let v, f, p = -1, C = 0;
298
- for (; C < l.length && (r.lastIndex = C, f = r.exec(l), f !== null); ) C = r.lastIndex, r === R ? f[1] === "!--" ? r = St : f[1] !== void 0 ? r = Lt : f[2] !== void 0 ? (Dt.test(f[2]) && (n = RegExp("</" + f[2], "g")), r = B) : f[3] !== void 0 && (r = B) : r === B ? f[0] === ">" ? (r = n ?? R, p = -1) : f[1] === void 0 ? p = -2 : (p = r.lastIndex - f[2].length, v = f[1], r = f[3] === void 0 ? B : f[3] === '"' ? It : Pt) : r === It || r === Pt ? r = B : r === St || r === Lt ? r = R : (r = B, n = void 0);
299
- const S = r === B && o[c + 1].startsWith("/>") ? " " : "";
300
- s += r === R ? l + Kt : p >= 0 ? (i.push(v), l.slice(0, p) + Ht + l.slice(p) + L + S) : l + L + (p === -2 ? c : S);
301
- }
302
- return [Tt(o, s + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
292
+ const te = (o, t) => {
293
+ const e = o.length - 1, n = [];
294
+ let i, s = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", r = K;
295
+ for (let h = 0; h < e; h++) {
296
+ const l = o[h];
297
+ let v, f, p = -1, A = 0;
298
+ for (; A < l.length && (r.lastIndex = A, f = r.exec(l), f !== null); ) A = r.lastIndex, r === K ? f[1] === "!--" ? r = Pt : f[1] !== void 0 ? r = Ot : f[2] !== void 0 ? (Ut.test(f[2]) && (i = RegExp("</" + f[2], "g")), r = D) : f[3] !== void 0 && (r = D) : r === D ? f[0] === ">" ? (r = i ?? K, p = -1) : f[1] === void 0 ? p = -2 : (p = r.lastIndex - f[2].length, v = f[1], r = f[3] === void 0 ? D : f[3] === '"' ? zt : Bt) : r === zt || r === Bt ? r = D : r === Pt || r === Ot ? r = K : (r = D, i = void 0);
299
+ const I = r === D && o[h + 1].startsWith("/>") ? " " : "";
300
+ s += r === K ? l + Jt : p >= 0 ? (n.push(v), l.slice(0, p) + Tt + l.slice(p) + P + I) : l + P + (p === -2 ? h : I);
301
+ }
302
+ return [Nt(o, s + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
303
303
  };
304
- class G {
305
- constructor({ strings: t, _$litType$: e }, i) {
306
- let n;
304
+ class tt {
305
+ constructor({ strings: t, _$litType$: e }, n) {
306
+ let i;
307
307
  this.parts = [];
308
308
  let s = 0, r = 0;
309
- const c = t.length - 1, l = this.parts, [v, f] = Jt(t, e);
310
- if (this.el = G.createElement(v, i), O.currentNode = this.el.content, e === 2 || e === 3) {
309
+ const h = t.length - 1, l = this.parts, [v, f] = te(t, e);
310
+ if (this.el = tt.createElement(v, n), H.currentNode = this.el.content, e === 2 || e === 3) {
311
311
  const p = this.el.content.firstChild;
312
312
  p.replaceWith(...p.childNodes);
313
313
  }
314
- for (; (n = O.nextNode()) !== null && l.length < c; ) {
315
- if (n.nodeType === 1) {
316
- if (n.hasAttributes()) for (const p of n.getAttributeNames()) if (p.endsWith(Ht)) {
317
- const C = f[r++], S = n.getAttribute(p).split(L), tt = /([.?@])?(.*)/.exec(C);
318
- l.push({ type: 1, index: s, name: tt[2], strings: S, ctor: tt[1] === "." ? Qt : tt[1] === "?" ? te : tt[1] === "@" ? ee : it }), n.removeAttribute(p);
319
- } else p.startsWith(L) && (l.push({ type: 6, index: s }), n.removeAttribute(p));
320
- if (Dt.test(n.tagName)) {
321
- const p = n.textContent.split(L), C = p.length - 1;
322
- if (C > 0) {
323
- n.textContent = nt ? nt.emptyScript : "";
324
- for (let S = 0; S < C; S++) n.append(p[S], W()), O.nextNode(), l.push({ type: 2, index: ++s });
325
- n.append(p[C], W());
314
+ for (; (i = H.nextNode()) !== null && l.length < h; ) {
315
+ if (i.nodeType === 1) {
316
+ if (i.hasAttributes()) for (const p of i.getAttributeNames()) if (p.endsWith(Tt)) {
317
+ const A = f[r++], I = i.getAttribute(p).split(P), nt = /([.?@])?(.*)/.exec(A);
318
+ l.push({ type: 1, index: s, name: nt[2], strings: I, ctor: nt[1] === "." ? oe : nt[1] === "?" ? ie : nt[1] === "@" ? ne : lt }), i.removeAttribute(p);
319
+ } else p.startsWith(P) && (l.push({ type: 6, index: s }), i.removeAttribute(p));
320
+ if (Ut.test(i.tagName)) {
321
+ const p = i.textContent.split(P), A = p.length - 1;
322
+ if (A > 0) {
323
+ i.textContent = at ? at.emptyScript : "";
324
+ for (let I = 0; I < A; I++) i.append(p[I], Y()), H.nextNode(), l.push({ type: 2, index: ++s });
325
+ i.append(p[A], Y());
326
326
  }
327
327
  }
328
- } else if (n.nodeType === 8) if (n.data === Mt) l.push({ type: 2, index: s });
328
+ } else if (i.nodeType === 8) if (i.data === jt) l.push({ type: 2, index: s });
329
329
  else {
330
330
  let p = -1;
331
- for (; (p = n.data.indexOf(L, p + 1)) !== -1; ) l.push({ type: 7, index: s }), p += L.length - 1;
331
+ for (; (p = i.data.indexOf(P, p + 1)) !== -1; ) l.push({ type: 7, index: s }), p += P.length - 1;
332
332
  }
333
333
  s++;
334
334
  }
335
335
  }
336
336
  static createElement(t, e) {
337
- const i = H.createElement("template");
338
- return i.innerHTML = t, i;
337
+ const n = T.createElement("template");
338
+ return n.innerHTML = t, n;
339
339
  }
340
340
  }
341
- function j(o, t, e = o, i) {
342
- var r, c;
343
- if (t === M) return t;
344
- let n = i !== void 0 ? (r = e._$Co) == null ? void 0 : r[i] : e._$Cl;
345
- const s = K(t) ? void 0 : t._$litDirective$;
346
- return (n == null ? void 0 : n.constructor) !== s && ((c = n == null ? void 0 : n._$AO) == null || c.call(n, !1), s === void 0 ? n = void 0 : (n = new s(o), n._$AT(o, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = n : e._$Cl = n), n !== void 0 && (t = j(o, n._$AS(o, t.values), n, i)), t;
341
+ function V(o, t, e = o, n) {
342
+ var r, h;
343
+ if (t === j) return t;
344
+ let i = n !== void 0 ? (r = e._$Co) == null ? void 0 : r[n] : e._$Cl;
345
+ const s = Q(t) ? void 0 : t._$litDirective$;
346
+ return (i == null ? void 0 : i.constructor) !== s && ((h = i == null ? void 0 : i._$AO) == null || h.call(i, !1), s === void 0 ? i = void 0 : (i = new s(o), i._$AT(o, e, n)), n !== void 0 ? (e._$Co ?? (e._$Co = []))[n] = i : e._$Cl = i), i !== void 0 && (t = V(o, i._$AS(o, t.values), i, n)), t;
347
347
  }
348
- class Yt {
348
+ class ee {
349
349
  constructor(t, e) {
350
350
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
351
351
  }
@@ -356,30 +356,30 @@ class Yt {
356
356
  return this._$AM._$AU;
357
357
  }
358
358
  u(t) {
359
- const { el: { content: e }, parts: i } = this._$AD, n = ((t == null ? void 0 : t.creationScope) ?? H).importNode(e, !0);
360
- O.currentNode = n;
361
- let s = O.nextNode(), r = 0, c = 0, l = i[0];
359
+ const { el: { content: e }, parts: n } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? T).importNode(e, !0);
360
+ H.currentNode = i;
361
+ let s = H.nextNode(), r = 0, h = 0, l = n[0];
362
362
  for (; l !== void 0; ) {
363
363
  if (r === l.index) {
364
364
  let v;
365
- l.type === 2 ? v = new Y(s, s.nextSibling, this, t) : l.type === 1 ? v = new l.ctor(s, l.name, l.strings, this, t) : l.type === 6 && (v = new oe(s, this, t)), this._$AV.push(v), l = i[++c];
365
+ l.type === 2 ? v = new it(s, s.nextSibling, this, t) : l.type === 1 ? v = new l.ctor(s, l.name, l.strings, this, t) : l.type === 6 && (v = new re(s, this, t)), this._$AV.push(v), l = n[++h];
366
366
  }
367
- r !== (l == null ? void 0 : l.index) && (s = O.nextNode(), r++);
367
+ r !== (l == null ? void 0 : l.index) && (s = H.nextNode(), r++);
368
368
  }
369
- return O.currentNode = H, n;
369
+ return H.currentNode = T, i;
370
370
  }
371
371
  p(t) {
372
372
  let e = 0;
373
- for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
373
+ for (const n of this._$AV) n !== void 0 && (n.strings !== void 0 ? (n._$AI(t, n, e), e += n.strings.length - 2) : n._$AI(t[e])), e++;
374
374
  }
375
375
  }
376
- class Y {
376
+ class it {
377
377
  get _$AU() {
378
378
  var t;
379
379
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
380
380
  }
381
- constructor(t, e, i, n) {
382
- this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = n, this._$Cv = (n == null ? void 0 : n.isConnected) ?? !0;
381
+ constructor(t, e, n, i) {
382
+ this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = n, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
383
383
  }
384
384
  get parentNode() {
385
385
  let t = this._$AA.parentNode;
@@ -393,7 +393,7 @@ class Y {
393
393
  return this._$AB;
394
394
  }
395
395
  _$AI(t, e = this) {
396
- t = j(this, t, e), K(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== M && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Gt(t) ? this.k(t) : this._(t);
396
+ t = V(this, t, e), Q(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== j && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Yt(t) ? this.k(t) : this._(t);
397
397
  }
398
398
  O(t) {
399
399
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -402,33 +402,33 @@ class Y {
402
402
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
403
403
  }
404
404
  _(t) {
405
- this._$AH !== d && K(this._$AH) ? this._$AA.nextSibling.data = t : this.T(H.createTextNode(t)), this._$AH = t;
405
+ this._$AH !== d && Q(this._$AH) ? this._$AA.nextSibling.data = t : this.T(T.createTextNode(t)), this._$AH = t;
406
406
  }
407
407
  $(t) {
408
408
  var s;
409
- const { values: e, _$litType$: i } = t, n = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = G.createElement(Tt(i.h, i.h[0]), this.options)), i);
410
- if (((s = this._$AH) == null ? void 0 : s._$AD) === n) this._$AH.p(e);
409
+ const { values: e, _$litType$: n } = t, i = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = tt.createElement(Nt(n.h, n.h[0]), this.options)), n);
410
+ if (((s = this._$AH) == null ? void 0 : s._$AD) === i) this._$AH.p(e);
411
411
  else {
412
- const r = new Yt(n, this), c = r.u(this.options);
413
- r.p(e), this.T(c), this._$AH = r;
412
+ const r = new ee(i, this), h = r.u(this.options);
413
+ r.p(e), this.T(h), this._$AH = r;
414
414
  }
415
415
  }
416
416
  _$AC(t) {
417
- let e = Bt.get(t.strings);
418
- return e === void 0 && Bt.set(t.strings, e = new G(t)), e;
417
+ let e = Dt.get(t.strings);
418
+ return e === void 0 && Dt.set(t.strings, e = new tt(t)), e;
419
419
  }
420
420
  k(t) {
421
- mt(this._$AH) || (this._$AH = [], this._$AR());
421
+ $t(this._$AH) || (this._$AH = [], this._$AR());
422
422
  const e = this._$AH;
423
- let i, n = 0;
424
- for (const s of t) n === e.length ? e.push(i = new Y(this.O(W()), this.O(W()), this, this.options)) : i = e[n], i._$AI(s), n++;
425
- n < e.length && (this._$AR(i && i._$AB.nextSibling, n), e.length = n);
423
+ let n, i = 0;
424
+ for (const s of t) i === e.length ? e.push(n = new it(this.O(Y()), this.O(Y()), this, this.options)) : n = e[i], n._$AI(s), i++;
425
+ i < e.length && (this._$AR(n && n._$AB.nextSibling, i), e.length = i);
426
426
  }
427
427
  _$AR(t = this._$AA.nextSibling, e) {
428
- var i;
429
- for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t && t !== this._$AB; ) {
430
- const n = t.nextSibling;
431
- t.remove(), t = n;
428
+ var n;
429
+ for ((n = this._$AP) == null ? void 0 : n.call(this, !1, !0, e); t && t !== this._$AB; ) {
430
+ const i = t.nextSibling;
431
+ t.remove(), t = i;
432
432
  }
433
433
  }
434
434
  setConnected(t) {
@@ -436,32 +436,32 @@ class Y {
436
436
  this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
437
437
  }
438
438
  }
439
- class it {
439
+ class lt {
440
440
  get tagName() {
441
441
  return this.element.tagName;
442
442
  }
443
443
  get _$AU() {
444
444
  return this._$AM._$AU;
445
445
  }
446
- constructor(t, e, i, n, s) {
447
- this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = n, this.options = s, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = d;
446
+ constructor(t, e, n, i, s) {
447
+ this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = s, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = d;
448
448
  }
449
- _$AI(t, e = this, i, n) {
449
+ _$AI(t, e = this, n, i) {
450
450
  const s = this.strings;
451
451
  let r = !1;
452
- if (s === void 0) t = j(this, t, e, 0), r = !K(t) || t !== this._$AH && t !== M, r && (this._$AH = t);
452
+ if (s === void 0) t = V(this, t, e, 0), r = !Q(t) || t !== this._$AH && t !== j, r && (this._$AH = t);
453
453
  else {
454
- const c = t;
454
+ const h = t;
455
455
  let l, v;
456
- for (t = s[0], l = 0; l < s.length - 1; l++) v = j(this, c[i + l], e, l), v === M && (v = this._$AH[l]), r || (r = !K(v) || v !== this._$AH[l]), v === d ? t = d : t !== d && (t += (v ?? "") + s[l + 1]), this._$AH[l] = v;
456
+ for (t = s[0], l = 0; l < s.length - 1; l++) v = V(this, h[n + l], e, l), v === j && (v = this._$AH[l]), r || (r = !Q(v) || v !== this._$AH[l]), v === d ? t = d : t !== d && (t += (v ?? "") + s[l + 1]), this._$AH[l] = v;
457
457
  }
458
- r && !n && this.j(t);
458
+ r && !i && this.j(t);
459
459
  }
460
460
  j(t) {
461
461
  t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
462
462
  }
463
463
  }
464
- class Qt extends it {
464
+ class oe extends lt {
465
465
  constructor() {
466
466
  super(...arguments), this.type = 3;
467
467
  }
@@ -469,7 +469,7 @@ class Qt extends it {
469
469
  this.element[this.name] = t === d ? void 0 : t;
470
470
  }
471
471
  }
472
- class te extends it {
472
+ class ie extends lt {
473
473
  constructor() {
474
474
  super(...arguments), this.type = 4;
475
475
  }
@@ -477,49 +477,49 @@ class te extends it {
477
477
  this.element.toggleAttribute(this.name, !!t && t !== d);
478
478
  }
479
479
  }
480
- class ee extends it {
481
- constructor(t, e, i, n, s) {
482
- super(t, e, i, n, s), this.type = 5;
480
+ class ne extends lt {
481
+ constructor(t, e, n, i, s) {
482
+ super(t, e, n, i, s), this.type = 5;
483
483
  }
484
484
  _$AI(t, e = this) {
485
- if ((t = j(this, t, e, 0) ?? d) === M) return;
486
- const i = this._$AH, n = t === d && i !== d || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, s = t !== d && (i === d || n);
487
- n && this.element.removeEventListener(this.name, this, i), s && this.element.addEventListener(this.name, this, t), this._$AH = t;
485
+ if ((t = V(this, t, e, 0) ?? d) === j) return;
486
+ const n = this._$AH, i = t === d && n !== d || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, s = t !== d && (n === d || i);
487
+ i && this.element.removeEventListener(this.name, this, n), s && this.element.addEventListener(this.name, this, t), this._$AH = t;
488
488
  }
489
489
  handleEvent(t) {
490
490
  var e;
491
491
  typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
492
492
  }
493
493
  }
494
- class oe {
495
- constructor(t, e, i) {
496
- this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
494
+ class re {
495
+ constructor(t, e, n) {
496
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = n;
497
497
  }
498
498
  get _$AU() {
499
499
  return this._$AM._$AU;
500
500
  }
501
501
  _$AI(t) {
502
- j(this, t);
502
+ V(this, t);
503
503
  }
504
504
  }
505
- const ht = q.litHtmlPolyfillSupport;
506
- ht == null || ht(G, Y), (q.litHtmlVersions ?? (q.litHtmlVersions = [])).push("3.3.0");
507
- const ne = (o, t, e) => {
508
- const i = (e == null ? void 0 : e.renderBefore) ?? t;
509
- let n = i._$litPart$;
510
- if (n === void 0) {
505
+ const ut = J.litHtmlPolyfillSupport;
506
+ ut == null || ut(tt, it), (J.litHtmlVersions ?? (J.litHtmlVersions = [])).push("3.3.0");
507
+ const se = (o, t, e) => {
508
+ const n = (e == null ? void 0 : e.renderBefore) ?? t;
509
+ let i = n._$litPart$;
510
+ if (i === void 0) {
511
511
  const s = (e == null ? void 0 : e.renderBefore) ?? null;
512
- i._$litPart$ = n = new Y(t.insertBefore(W(), s), s, void 0, e ?? {});
512
+ n._$litPart$ = i = new it(t.insertBefore(Y(), s), s, void 0, e ?? {});
513
513
  }
514
- return n._$AI(o), n;
514
+ return i._$AI(o), i;
515
515
  };
516
516
  /**
517
517
  * @license
518
518
  * Copyright 2017 Google LLC
519
519
  * SPDX-License-Identifier: BSD-3-Clause
520
520
  */
521
- const z = globalThis;
522
- let y = class extends U {
521
+ const M = globalThis;
522
+ let b = class extends R {
523
523
  constructor() {
524
524
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
525
525
  }
@@ -530,7 +530,7 @@ let y = class extends U {
530
530
  }
531
531
  update(t) {
532
532
  const e = this.render();
533
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = ne(e, this.renderRoot, this.renderOptions);
533
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = se(e, this.renderRoot, this.renderOptions);
534
534
  }
535
535
  connectedCallback() {
536
536
  var t;
@@ -541,14 +541,14 @@ let y = class extends U {
541
541
  super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
542
542
  }
543
543
  render() {
544
- return M;
544
+ return j;
545
545
  }
546
546
  };
547
- var Ot;
548
- y._$litElement$ = !0, y.finalized = !0, (Ot = z.litElementHydrateSupport) == null || Ot.call(z, { LitElement: y });
549
- const dt = z.litElementPolyfillSupport;
550
- dt == null || dt({ LitElement: y });
551
- (z.litElementVersions ?? (z.litElementVersions = [])).push("4.2.0");
547
+ var Ht;
548
+ b._$litElement$ = !0, b.finalized = !0, (Ht = M.litElementHydrateSupport) == null || Ht.call(M, { LitElement: b });
549
+ const vt = M.litElementPolyfillSupport;
550
+ vt == null || vt({ LitElement: b });
551
+ (M.litElementVersions ?? (M.litElementVersions = [])).push("4.2.0");
552
552
  /**
553
553
  * @license
554
554
  * Copyright 2017 Google LLC
@@ -564,31 +564,31 @@ const $ = (o) => (t, e) => {
564
564
  * Copyright 2017 Google LLC
565
565
  * SPDX-License-Identifier: BSD-3-Clause
566
566
  */
567
- const ie = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged: yt }, re = (o = ie, t, e) => {
568
- const { kind: i, metadata: n } = e;
569
- let s = globalThis.litPropertyMetadata.get(n);
570
- if (s === void 0 && globalThis.litPropertyMetadata.set(n, s = /* @__PURE__ */ new Map()), i === "setter" && ((o = Object.create(o)).wrapped = !0), s.set(e.name, o), i === "accessor") {
567
+ const ae = { attribute: !0, type: String, converter: st, reflect: !1, hasChanged: xt }, le = (o = ae, t, e) => {
568
+ const { kind: n, metadata: i } = e;
569
+ let s = globalThis.litPropertyMetadata.get(i);
570
+ if (s === void 0 && globalThis.litPropertyMetadata.set(i, s = /* @__PURE__ */ new Map()), n === "setter" && ((o = Object.create(o)).wrapped = !0), s.set(e.name, o), n === "accessor") {
571
571
  const { name: r } = e;
572
- return { set(c) {
572
+ return { set(h) {
573
573
  const l = t.get.call(this);
574
- t.set.call(this, c), this.requestUpdate(r, l, o);
575
- }, init(c) {
576
- return c !== void 0 && this.C(r, void 0, o, c), c;
574
+ t.set.call(this, h), this.requestUpdate(r, l, o);
575
+ }, init(h) {
576
+ return h !== void 0 && this.C(r, void 0, o, h), h;
577
577
  } };
578
578
  }
579
- if (i === "setter") {
579
+ if (n === "setter") {
580
580
  const { name: r } = e;
581
- return function(c) {
581
+ return function(h) {
582
582
  const l = this[r];
583
- t.call(this, c), this.requestUpdate(r, l, o);
583
+ t.call(this, h), this.requestUpdate(r, l, o);
584
584
  };
585
585
  }
586
- throw Error("Unsupported decorator location: " + i);
586
+ throw Error("Unsupported decorator location: " + n);
587
587
  };
588
588
  function a(o) {
589
- return (t, e) => typeof e == "object" ? re(o, t, e) : ((i, n, s) => {
590
- const r = n.hasOwnProperty(s);
591
- return n.constructor.createProperty(s, i), r ? Object.getOwnPropertyDescriptor(n, s) : void 0;
589
+ return (t, e) => typeof e == "object" ? le(o, t, e) : ((n, i, s) => {
590
+ const r = i.hasOwnProperty(s);
591
+ return i.constructor.createProperty(s, n), r ? Object.getOwnPropertyDescriptor(i, s) : void 0;
592
592
  })(o, t, e);
593
593
  }
594
594
  /**
@@ -596,10 +596,10 @@ function a(o) {
596
596
  * Copyright 2017 Google LLC
597
597
  * SPDX-License-Identifier: BSD-3-Clause
598
598
  */
599
- function rt(o) {
599
+ function U(o) {
600
600
  return a({ ...o, state: !0, attribute: !1 });
601
601
  }
602
- const se = w`
602
+ const ce = w`
603
603
  outline: 1px dashed var(--button-border-color);
604
604
  outline-offset: 2px;
605
605
  outline: dashed black;
@@ -614,12 +614,12 @@ w`
614
614
  * Copyright 2023 Google LLC
615
615
  * SPDX-License-Identifier: Apache-2.0
616
616
  */
617
- const wt = Symbol("internals"), pt = Symbol("privateInternals");
618
- function ae(o) {
617
+ const _t = Symbol("internals"), gt = Symbol("privateInternals");
618
+ function he(o) {
619
619
  var t;
620
620
  class e extends o {
621
- get [(t = wt, t)]() {
622
- return this[pt] || (this[pt] = this.attachInternals()), this[pt];
621
+ get [(t = _t, t)]() {
622
+ return this[gt] || (this[gt] = this.attachInternals()), this[gt];
623
623
  }
624
624
  }
625
625
  return e;
@@ -629,22 +629,22 @@ function ae(o) {
629
629
  * Copyright 2023 Google LLC
630
630
  * SPDX-License-Identifier: Apache-2.0
631
631
  */
632
- function le(o) {
632
+ function de(o) {
633
633
  o.addInitializer((t) => {
634
634
  const e = t;
635
- e.addEventListener("click", async (i) => {
636
- const { type: n, [wt]: s } = e, { form: r } = s;
637
- if (!(!r || n === "button") && (await new Promise((c) => {
638
- setTimeout(c);
639
- }), !i.defaultPrevented)) {
640
- if (n === "reset") {
635
+ e.addEventListener("click", async (n) => {
636
+ const { type: i, [_t]: s } = e, { form: r } = s;
637
+ if (!(!r || i === "button") && (await new Promise((h) => {
638
+ setTimeout(h);
639
+ }), !n.defaultPrevented)) {
640
+ if (i === "reset") {
641
641
  r.reset();
642
642
  return;
643
643
  }
644
644
  r.addEventListener(
645
645
  "submit",
646
- (c) => {
647
- Object.defineProperty(c, "submitter", {
646
+ (h) => {
647
+ Object.defineProperty(h, "submitter", {
648
648
  configurable: !0,
649
649
  enumerable: !0,
650
650
  get: () => e
@@ -656,41 +656,41 @@ function le(o) {
656
656
  });
657
657
  });
658
658
  }
659
- const ce = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
659
+ const pe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
660
660
  <path d="M8 3.6275C7.06799 0.971489 3.25399 -0.0226278 1.67414 2.30983C0.0877404 4.65197 1.67414 6.99412 2.62598 8.33249C3.0147 8.87905 8 14 8 14C8 14 12.9853 8.87905 13.374 8.33249C14.3259 6.99412 15.9123 4.65197 14.3259 2.30983C12.746 -0.0226277 8.97167 0.971489 8 3.6275Z" stroke="#3F2B2E" stroke-linecap="round"/>
661
661
  </svg>
662
- `, he = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
662
+ `, ue = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
663
663
  <path d="M16 8L4 0V16L16 8Z" fill="#3F2B2E"/>
664
664
  </svg>
665
- `, de = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
665
+ `, ve = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
666
666
  <path d="M12.2266 8.16162C11.0953 9.26599 8.72489 11.8788 5.11546 16L4.63062 15.7172C5.78886 13.4007 7.17607 10.8283 8.79223 8C7.17607 5.17172 5.78886 2.59933 4.63062 0.282827L5.11546 0C8.72489 4.12121 11.0953 6.73401 12.2266 7.83838V8.16162Z" fill="#3F2B2E"/>
667
667
  </svg>
668
- `, pe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
668
+ `, ge = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
669
669
  <path d="M5 7.83838C6.02128 6.73401 8.16109 4.12121 11.4195 0L11.8571 0.282829C10.8116 2.59933 9.55927 5.17172 8.1003 8C9.55927 10.8283 10.8115 13.4007 11.8571 15.7172L11.4195 16C8.16109 11.8788 6.02128 9.266 5 8.16162L5 7.83838Z" fill="#3F2B2E"/>
670
670
  </svg>
671
- `, ue = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
671
+ `, fe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
672
672
  <path d="M12.2834 14.4585L7.98873 11.3928L3.69404 14.4585L5.33977 9.4972L1 6.39639H6.36554L8 1.4585L9.63446 6.39639H15L10.6602 9.4972L12.306 14.4585H12.2834ZM7.98873 10.328L10.6602 12.2353L9.64573 9.15787L12.2721 7.28568H9.02576L8 4.17317L6.97424 7.28568H3.72786L6.35427 9.15787L5.33977 12.2353L8.01127 10.328H7.98873Z" fill="#3F2B2E"/>
673
673
  </svg>
674
- `, ve = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
674
+ `, be = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
675
675
  <path d="M15 6.43789H9.63446L8 1.5L6.36554 6.43789H1L5.33977 9.5387L3.69404 14.5L7.98873 11.4343L12.2834 14.5H12.306L10.6602 9.5387L15 6.43789ZM6.36554 11.5396V7.32718H6.97424L8 4.21467L9.02576 7.32718H12.2721L9.64573 9.19937L10.6602 12.2768L8 10.3812L6.36554 11.5513V11.5396Z" fill="#3F2B2E"/>
676
676
  </svg>
677
- `, ge = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
677
+ `, ye = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
678
678
  <path d="M15 6.39639H9.63446L8 1.4585L6.36554 6.39639H1L5.33977 9.4972L3.69404 14.4585L7.98873 11.3928L12.2834 14.4585L10.6377 9.4972L14.9775 6.39639H15ZM10.6715 12.2353L8.05636 10.3631V4.32528L9.03704 7.27398H12.2834L9.65701 9.14616L10.6715 12.2236V12.2353Z" fill="#3F2B2E"/>
679
679
  </svg>
680
- `, fe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
680
+ `, me = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
681
681
  <path d="M15 6.43789H9.63446L8 1.5L6.36554 6.43789H1L5.33977 9.5387L3.69404 14.5L7.98873 11.4343L9.46538 12.4874L12.2834 14.5H12.306L10.6602 9.5387L15 6.43789ZM9.46538 11.4226V7.32718H12.2721L9.64573 9.19937L10.6602 12.2768L9.46538 11.4226Z" fill="#3F2B2E"/>
682
682
  </svg>
683
- `, be = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
683
+ `, we = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
684
684
  <path d="M12.2834 14.4585L7.98873 11.3928L3.69404 14.4585L5.33977 9.4972L1 6.39639H6.36554L8 1.4585L9.63446 6.39639H15L10.6602 9.4972L12.306 14.4585H12.2834Z" fill="#3F2B2E"/>
685
685
  </svg>
686
- `, ye = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
686
+ `, xe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
687
687
  <path d="M2 2L14 14" stroke="#3F2B2E"/>
688
688
  <path d="M14 2L2 14" stroke="#3F2B2E"/>
689
689
  </svg>
690
- `, me = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
690
+ `, $e = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
691
691
  <path d="M7.12506 1C10.5018 1 13.2509 3.74834 13.251 7.125C13.2511 8.59738 12.7172 10.0206 11.7491 11.1299L14.8731 14.2539C15.0433 14.4253 15.0435 14.7018 14.8731 14.873C14.7913 14.9555 14.6797 15.002 14.5635 15.002C14.4475 15.0019 14.3357 14.9554 14.254 14.873L11.1309 11.749C10.0555 12.6818 8.6564 13.251 7.12506 13.251C3.7484 13.2508 1.00006 10.5017 1.00006 7.125C1.00025 3.74846 3.74852 1.00019 7.12506 1ZM7.12506 1.875C4.22971 1.87522 1.87506 4.23058 1.87506 7.12598C1.87532 10.0212 4.22987 12.3758 7.12506 12.376C10.0204 12.376 12.3758 10.0213 12.376 7.12598C12.376 4.23044 10.0206 1.875 7.12506 1.875Z" fill="#3F2B2E"/>
692
692
  </svg>
693
- `, we = `<?xml version="1.0" encoding="utf-8"?>
693
+ `, _e = `<?xml version="1.0" encoding="utf-8"?>
694
694
  <!-- Generator: $$$/GeneralStr/196=Adobe Illustrator 27.6.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
695
695
  <svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
696
696
  viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">
@@ -700,7 +700,7 @@ const ce = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
700
700
  <path class="st0" d="M40,20c0,0.7-0.6,1.2-1.2,1.2H21.2v17.5c0,0.7-0.6,1.2-1.2,1.2s-1.2-0.6-1.2-1.2V21.2H1.2C0.6,21.2,0,20.7,0,20
701
701
  s0.6-1.2,1.2-1.2h17.5V1.2C18.8,0.6,19.3,0,20,0s1.2,0.6,1.2,1.2v17.5h17.5C39.4,18.8,40,19.3,40,20z"/>
702
702
  </svg>
703
- `, xe = `<?xml version="1.0" encoding="utf-8"?>
703
+ `, Ce = `<?xml version="1.0" encoding="utf-8"?>
704
704
  <!-- Generator: $$$/GeneralStr/196=Adobe Illustrator 27.6.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
705
705
  <svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
706
706
  viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">
@@ -709,63 +709,63 @@ const ce = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
709
709
  </style>
710
710
  <path class="st0" d="M38.8,20.5H1.2c-0.7,0-1.2-0.6-1.2-1.2S0.6,18,1.2,18h37.5c0.7,0,1.2,0.6,1.2,1.2S39.4,20.5,38.8,20.5z"/>
711
711
  </svg>
712
- `, $e = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
712
+ `, ke = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
713
713
  <path d="M15.0009 8.12175C15.0009 8.36347 14.805 8.55943 14.5634 8.55943H2.49495L7.43502 13.5017C7.60609 13.6726 7.60628 13.9499 7.43546 14.1211C7.26464 14.2922 6.98749 14.2924 6.81642 14.1215L1.13 8.43163C1.04685 8.34998 1 8.23831 1 8.12175C1 8.00518 1.04685 7.89351 1.13 7.81187L6.81642 2.12286C6.98808 1.95699 7.26094 1.95937 7.4297 2.12819C7.59845 2.29702 7.60082 2.57001 7.43502 2.74175L2.49495 7.68406H14.5634C14.805 7.68406 15.0009 7.88002 15.0009 8.12175Z" fill="#3F2B2E"/>
714
714
  </svg>
715
- `, _e = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
715
+ `, Ae = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
716
716
  <path d="M14.1218 7.43502C13.9504 7.60543 13.6735 7.60543 13.5021 7.43502L8.55961 2.49408V14.5625C8.55961 14.8041 8.36365 15 8.12192 15C7.88018 15 7.68422 14.8041 7.68422 14.5625V2.49408L2.74177 7.43502C2.57002 7.60082 2.29703 7.59845 2.1282 7.4297C1.95936 7.26094 1.95699 6.98808 2.12287 6.81642L7.81203 1.13C7.89368 1.04685 8.00535 1 8.12192 1C8.23848 1 8.35015 1.04685 8.4318 1.13L14.121 6.81642C14.2921 6.98702 14.2925 7.26395 14.1218 7.43502Z" fill="#3F2B2E"/>
717
717
  </svg>
718
- `, Ce = `<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
718
+ `, Ee = `<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
719
719
  <path d="M6.33317 8.00033C6.33317 3.95024 7.52708 0.666992 8.99984 0.666992C10.4726 0.666992 11.6665 3.95024 11.6665 8.00033M5.33317 15.3337H12.6665L16.3332 6.20033C14.9582 5.76699 12.2998 5.33366 8.99984 5.33366C5.69984 5.33366 3.49984 5.76699 1.6665 6.20033L5.33317 15.3337Z" stroke="#3F2B2E"/>
720
720
  </svg>
721
- `, Ae = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
721
+ `, Se = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
722
722
  <path d="M7.99376 14.4486C7.46684 14.4486 6.93991 14.251 6.54472 13.8558C6.14953 13.4606 5.8202 12.9995 5.68847 12.4067H3.77837C2.98798 12.4067 2.59279 12.4067 2.32933 12.1433C2.13173 12.0116 2 11.7481 2 11.5505C2 11.2212 2.13173 10.826 2.52692 10.1673L2.92212 9.4428C3.31731 8.78415 3.51491 8.05963 3.64664 7.3351L3.84423 5.68847C3.97596 4.63462 4.43702 3.7125 5.22741 3.05385C6.01779 2.39519 7.00578 2 7.99376 2C8.98174 2 10.0356 2.39519 10.7601 3.05385C11.5505 3.7125 12.0116 4.70049 12.1433 5.68847L12.3409 7.26924C12.4067 8.05963 12.6702 8.78415 13.0654 9.37693L13.4606 10.1015C13.8558 10.7601 14.0534 11.0894 13.9875 11.4846C13.9875 11.7481 13.8558 11.9457 13.6582 12.0774C13.3947 12.3409 12.9995 12.3409 12.2092 12.3409H10.2991C10.1673 12.9337 9.83799 13.4606 9.4428 13.7899C9.04761 14.1851 8.52068 14.3827 7.99376 14.3827V14.4486ZM6.28126 12.4067C6.41299 12.8019 6.61058 13.1971 6.93991 13.4606C7.5327 13.9875 8.45482 13.9875 9.11347 13.4606C9.4428 13.1971 9.6404 12.8019 9.77213 12.4067H6.28126ZM7.99376 2.65865C7.13751 2.65865 6.28126 2.98798 5.6226 3.58077C4.96395 4.17356 4.56875 4.96395 4.43702 5.88606L4.23943 7.46684C4.1077 8.32309 3.84423 9.11347 3.44904 9.83799L3.05385 10.5625C2.72452 11.0894 2.59279 11.3529 2.59279 11.5505C2.59279 11.6164 2.59279 11.7481 2.72452 11.814C2.85625 11.8798 3.25144 11.8798 3.77837 11.8798H12.2092C12.7361 11.8798 13.1971 11.8798 13.263 11.814C13.3289 11.814 13.3947 11.6822 13.3947 11.5505C13.3947 11.4188 13.1971 11.0894 12.9337 10.5625L12.5385 9.83799C12.0774 9.11347 11.814 8.32309 11.7481 7.5327L11.5505 5.88606C11.4846 5.02981 11.0236 4.17356 10.3649 3.58077C9.70626 2.98798 8.85001 2.65865 7.99376 2.65865Z" fill="#3F2B2E"/>
723
723
  </svg>
724
- `, ke = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
724
+ `, Le = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
725
725
  <path d="M12 17.4585L4 6.4585L20 6.4585L12 17.4585Z" fill="#3F2B2E"/>
726
726
  </svg>
727
- `, Ee = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
727
+ `, Ie = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
728
728
  <path d="M12 6.4585L20 17.4585H4L12 6.4585Z" fill="#3F2B2E"/>
729
729
  </svg>
730
- `, Se = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
730
+ `, Pe = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
731
731
  <path d="M5.24611 10.4659C5.04705 10.4654 4.85616 10.3867 4.71465 10.2467L0.210718 5.74273C-0.0737595 5.44819 -0.0696911 4.98 0.219862 4.69045C0.509415 4.4009 0.977603 4.39683 1.27214 4.6813L5.18306 8.59071L10.6628 1.74024C10.9219 1.41646 11.3945 1.36403 11.7183 1.62314C12.042 1.88225 12.0945 2.35477 11.8354 2.67856L5.83012 10.1851C5.69763 10.3521 5.49956 10.4539 5.28665 10.4643L5.24611 10.4659Z" fill="#3F2B2E"/>
732
732
  </svg>
733
- `, Q = {
734
- wishlist: ce,
735
- playerv: he,
736
- chevronRight: de,
737
- chevronLeft: pe,
738
- icoPlus: we,
739
- icoMinus: xe,
740
- "star-0": ue,
741
- "star-25": ve,
742
- "star-50": ge,
743
- "star-75": fe,
744
- "star-100": be,
745
- cross: ye,
746
- search: me,
747
- arrowLeft: $e,
748
- arrowTop: _e,
749
- cart: Ce,
750
- notifyme: Ae,
751
- triangledown: ke,
752
- triangleup: Ee,
753
- checkstroke: Se
733
+ `, q = {
734
+ wishlist: pe,
735
+ playerv: ue,
736
+ chevronRight: ve,
737
+ chevronLeft: ge,
738
+ icoPlus: _e,
739
+ icoMinus: Ce,
740
+ "star-0": fe,
741
+ "star-25": be,
742
+ "star-50": ye,
743
+ "star-75": me,
744
+ "star-100": we,
745
+ cross: xe,
746
+ search: $e,
747
+ arrowLeft: ke,
748
+ arrowTop: Ae,
749
+ cart: Ee,
750
+ notifyme: Se,
751
+ triangledown: Le,
752
+ triangleup: Ie,
753
+ checkstroke: Pe
754
754
  };
755
755
  /**
756
756
  * @license
757
757
  * Copyright 2017 Google LLC
758
758
  * SPDX-License-Identifier: BSD-3-Clause
759
759
  */
760
- const Le = { CHILD: 2 }, Pe = (o) => (...t) => ({ _$litDirective$: o, values: t });
761
- class Ie {
760
+ const Oe = { CHILD: 2 }, Be = (o) => (...t) => ({ _$litDirective$: o, values: t });
761
+ class ze {
762
762
  constructor(t) {
763
763
  }
764
764
  get _$AU() {
765
765
  return this._$AM._$AU;
766
766
  }
767
- _$AT(t, e, i) {
768
- this._$Ct = t, this._$AM = e, this._$Ci = i;
767
+ _$AT(t, e, n) {
768
+ this._$Ct = t, this._$AM = e, this._$Ci = n;
769
769
  }
770
770
  _$AS(t, e) {
771
771
  return this.update(t, e);
@@ -779,13 +779,13 @@ class Ie {
779
779
  * Copyright 2017 Google LLC
780
780
  * SPDX-License-Identifier: BSD-3-Clause
781
781
  */
782
- class ut extends Ie {
782
+ class ft extends ze {
783
783
  constructor(t) {
784
- if (super(t), this.it = d, t.type !== Le.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
784
+ if (super(t), this.it = d, t.type !== Oe.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
785
785
  }
786
786
  render(t) {
787
787
  if (t === d || t == null) return this._t = void 0, this.it = t;
788
- if (t === M) return t;
788
+ if (t === j) return t;
789
789
  if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
790
790
  if (t === this.it) return this._t;
791
791
  this.it = t;
@@ -793,23 +793,23 @@ class ut extends Ie {
793
793
  return e.raw = e, this._t = { _$litType$: this.constructor.resultType, strings: e, values: [] };
794
794
  }
795
795
  }
796
- ut.directiveName = "unsafeHTML", ut.resultType = 1;
796
+ ft.directiveName = "unsafeHTML", ft.resultType = 1;
797
797
  /**
798
798
  * @license
799
799
  * Copyright 2017 Google LLC
800
800
  * SPDX-License-Identifier: BSD-3-Clause
801
801
  */
802
- class vt extends ut {
802
+ class bt extends ft {
803
803
  }
804
- vt.directiveName = "unsafeSVG", vt.resultType = 2;
805
- const N = Pe(vt);
806
- var Be = Object.defineProperty, Oe = Object.getOwnPropertyDescriptor, m = (o, t, e, i) => {
807
- for (var n = i > 1 ? void 0 : i ? Oe(t, e) : t, s = o.length - 1, r; s >= 0; s--)
808
- (r = o[s]) && (n = (i ? r(t, e, n) : r(n)) || n);
809
- return i && n && Be(t, e, n), n;
804
+ bt.directiveName = "unsafeSVG", bt.resultType = 2;
805
+ const B = Be(bt);
806
+ var De = Object.defineProperty, He = Object.getOwnPropertyDescriptor, m = (o, t, e, n) => {
807
+ for (var i = n > 1 ? void 0 : n ? He(t, e) : t, s = o.length - 1, r; s >= 0; s--)
808
+ (r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
809
+ return n && i && De(t, e, i), i;
810
810
  };
811
- const ze = ae(y);
812
- let u = class extends ze {
811
+ const Me = he(b);
812
+ let u = class extends Me {
813
813
  constructor() {
814
814
  super(...arguments), this.type = "submit", this.value = "", this.variant = "primary", this.text = "", this.textsecond = "", this.fullwidth = !1, this.disabled = !1, this.startIconModel = "search", this.endIconModel = "chevronRight", this.startIcon = !1, this.endIcon = !1, this.panelTarget = "", this.href = "", this.target = "";
815
815
  }
@@ -820,7 +820,7 @@ let u = class extends ze {
820
820
  this.setAttribute("name", o);
821
821
  }
822
822
  get form() {
823
- return this[wt].form;
823
+ return this[_t].form;
824
824
  }
825
825
  handleClick() {
826
826
  if (this.panelTarget) {
@@ -834,28 +834,28 @@ let u = class extends ze {
834
834
  renderIcon(o) {
835
835
  const t = o === "start" ? this.startIconModel : this.endIconModel;
836
836
  if (!t) return d;
837
- const e = Q[t].replace(
837
+ const e = q[t].replace(
838
838
  "<svg",
839
839
  '<svg aria-hidden="true" focusable="false" part="svg"'
840
840
  );
841
- return h`<span class="${o === "start" ? "icon-start" : "icon-end"}">${N(e)}</span>`;
841
+ return c`<span class="${o === "start" ? "icon-start" : "icon-end"}">${B(e)}</span>`;
842
842
  }
843
843
  renderButton() {
844
844
  const o = this.text || this.textsecond;
845
- return h`
845
+ return c`
846
846
  <button type=${this.type} class="button" ?disabled=${this.disabled} @click=${this.handleClick}>
847
847
  ${this.startIcon ? this.renderIcon("start") : d}
848
- ${o ? h`
849
- ${this.text ? h`<span class="text">${this.text}</span>` : d}
850
- ${this.textsecond ? h`<span class="text">${this.textsecond}</span>` : d}
851
- ` : h`<slot></slot>`}
848
+ ${o ? c`
849
+ ${this.text ? c`<span class="text">${this.text}</span>` : d}
850
+ ${this.textsecond ? c`<span class="text">${this.textsecond}</span>` : d}
851
+ ` : c`<slot></slot>`}
852
852
  ${this.endIcon ? this.renderIcon("end") : d}
853
853
  </button>
854
854
  `;
855
855
  }
856
856
  renderLink() {
857
857
  const o = this.text || this.textsecond;
858
- return h`
858
+ return c`
859
859
  <a
860
860
  href=${this.href}
861
861
  target=${this.target || d}
@@ -863,16 +863,16 @@ let u = class extends ze {
863
863
  ?disabled=${this.disabled}
864
864
  >
865
865
  ${this.startIcon ? this.renderIcon("start") : d}
866
- ${o ? h`
867
- ${this.text ? h`<span>${this.text}</span>` : d}
868
- ${this.textsecond ? h`<span>${this.textsecond}</span>` : d}
869
- ` : h`<slot></slot>`}
866
+ ${o ? c`
867
+ ${this.text ? c`<span>${this.text}</span>` : d}
868
+ ${this.textsecond ? c`<span>${this.textsecond}</span>` : d}
869
+ ` : c`<slot></slot>`}
870
870
  ${this.endIcon ? this.renderIcon("end") : d}
871
871
  </a>
872
872
  `;
873
873
  }
874
874
  };
875
- le(u);
875
+ de(u);
876
876
  u.formAssociated = !0;
877
877
  u.styles = w`
878
878
  :host {
@@ -986,7 +986,7 @@ u.styles = w`
986
986
  }
987
987
 
988
988
  .button:focus-visible {
989
- ${se};
989
+ ${ce};
990
990
  }
991
991
 
992
992
  span.text + span.text::before {
@@ -1077,12 +1077,12 @@ m([
1077
1077
  u = m([
1078
1078
  $("o-button")
1079
1079
  ], u);
1080
- var He = Object.defineProperty, Me = Object.getOwnPropertyDescriptor, st = (o, t, e, i) => {
1081
- for (var n = i > 1 ? void 0 : i ? Me(t, e) : t, s = o.length - 1, r; s >= 0; s--)
1082
- (r = o[s]) && (n = (i ? r(t, e, n) : r(n)) || n);
1083
- return i && n && He(t, e, n), n;
1080
+ var Te = Object.defineProperty, je = Object.getOwnPropertyDescriptor, ct = (o, t, e, n) => {
1081
+ for (var i = n > 1 ? void 0 : n ? je(t, e) : t, s = o.length - 1, r; s >= 0; s--)
1082
+ (r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
1083
+ return n && i && Te(t, e, i), i;
1084
1084
  };
1085
- let F = class extends y {
1085
+ let Z = class extends b {
1086
1086
  constructor() {
1087
1087
  super(...arguments), this.status = "empty", this.ariaDescribedBy = "a-product-name", this.label = "Add to wishlist", this.toggleStatus = () => {
1088
1088
  this.status = this.status === "empty" ? "filled" : "empty", this.setAttribute("aria-pressed", String(this.status === "filled")), this.dispatchEvent(new CustomEvent("wishlist-toggle", {
@@ -1102,14 +1102,14 @@ let F = class extends y {
1102
1102
  (o.key === "Enter" || o.key === " ") && (o.preventDefault(), this.toggleStatus());
1103
1103
  }
1104
1104
  render() {
1105
- const o = Q.wishlist.replace(
1105
+ const o = q.wishlist.replace(
1106
1106
  "<svg",
1107
1107
  '<svg aria-hidden="true" focusable="false" part="svg"'
1108
1108
  );
1109
- return h`
1109
+ return c`
1110
1110
  <button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
1111
1111
  <span class="sr-only">${this.label}</span>
1112
- ${N(o)}
1112
+ ${B(o)}
1113
1113
  </button>
1114
1114
  `;
1115
1115
  }
@@ -1123,7 +1123,7 @@ let F = class extends y {
1123
1123
  this.label = o, this.requestUpdate();
1124
1124
  }
1125
1125
  };
1126
- F.styles = w`
1126
+ Z.styles = w`
1127
1127
  :host {
1128
1128
  display: inline-flex;
1129
1129
  justify-content: center;
@@ -1188,24 +1188,24 @@ F.styles = w`
1188
1188
  white-space: nowrap !important;
1189
1189
  }
1190
1190
  `;
1191
- st([
1191
+ ct([
1192
1192
  a({ type: String, reflect: !0 })
1193
- ], F.prototype, "status", 2);
1194
- st([
1193
+ ], Z.prototype, "status", 2);
1194
+ ct([
1195
1195
  a({ type: String, reflect: !0 })
1196
- ], F.prototype, "ariaDescribedBy", 2);
1197
- st([
1196
+ ], Z.prototype, "ariaDescribedBy", 2);
1197
+ ct([
1198
1198
  a({ type: String, reflect: !0 })
1199
- ], F.prototype, "label", 2);
1200
- F = st([
1199
+ ], Z.prototype, "label", 2);
1200
+ Z = ct([
1201
1201
  $("o-wishlist-button")
1202
- ], F);
1203
- var De = Object.defineProperty, Te = Object.getOwnPropertyDescriptor, I = (o, t, e, i) => {
1204
- for (var n = i > 1 ? void 0 : i ? Te(t, e) : t, s = o.length - 1, r; s >= 0; s--)
1205
- (r = o[s]) && (n = (i ? r(t, e, n) : r(n)) || n);
1206
- return i && n && De(t, e, n), n;
1202
+ ], Z);
1203
+ var Ue = Object.defineProperty, Ne = Object.getOwnPropertyDescriptor, z = (o, t, e, n) => {
1204
+ for (var i = n > 1 ? void 0 : n ? Ne(t, e) : t, s = o.length - 1, r; s >= 0; s--)
1205
+ (r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
1206
+ return n && i && Ue(t, e, i), i;
1207
1207
  };
1208
- let _ = class extends y {
1208
+ let C = class extends b {
1209
1209
  constructor() {
1210
1210
  super(...arguments), this.bgstyle = "background-light", this.size = "medium", this.status = "empty", this.type = "button", this.strokewidth = "1", this.icon = "wishlist", this.disabled = !1;
1211
1211
  }
@@ -1213,29 +1213,29 @@ let _ = class extends y {
1213
1213
  super.updated(o), this.style.setProperty("--icon-stroke-width", this.strokewidth);
1214
1214
  }
1215
1215
  render() {
1216
- const o = Q[this.icon] ?? "", t = `icon-${this.icon}`, e = o.replace(
1216
+ const o = q[this.icon] ?? "", t = `icon-${this.icon}`, e = o.replace(
1217
1217
  "<svg",
1218
1218
  '<svg aria-hidden="true" focusable="false" part="svg"'
1219
1219
  );
1220
- return h`
1221
- ${this.type === "span" ? h`
1220
+ return c`
1221
+ ${this.type === "span" ? c`
1222
1222
  <span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
1223
- ${N(e)}
1223
+ ${B(e)}
1224
1224
  </span>
1225
- ` : h`
1225
+ ` : c`
1226
1226
  <button
1227
1227
  type="button"
1228
1228
  aria-label="icon"
1229
1229
  class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}"
1230
1230
  ?disabled="${this.disabled}"
1231
1231
  >
1232
- ${N(e)}
1232
+ ${B(e)}
1233
1233
  </button>
1234
1234
  `}
1235
1235
  `;
1236
1236
  }
1237
1237
  };
1238
- _.styles = w`
1238
+ C.styles = w`
1239
1239
  :host {
1240
1240
  display: inline-flex;
1241
1241
  justify-content: center;
@@ -1435,42 +1435,42 @@ _.styles = w`
1435
1435
 
1436
1436
  }
1437
1437
  `;
1438
- I([
1438
+ z([
1439
1439
  a({ type: String, reflect: !0 })
1440
- ], _.prototype, "bgstyle", 2);
1441
- I([
1440
+ ], C.prototype, "bgstyle", 2);
1441
+ z([
1442
1442
  a({ type: String, reflect: !0 })
1443
- ], _.prototype, "size", 2);
1444
- I([
1443
+ ], C.prototype, "size", 2);
1444
+ z([
1445
1445
  a({ type: String, reflect: !0 })
1446
- ], _.prototype, "status", 2);
1447
- I([
1446
+ ], C.prototype, "status", 2);
1447
+ z([
1448
1448
  a({ type: String, reflect: !0 })
1449
- ], _.prototype, "type", 2);
1450
- I([
1449
+ ], C.prototype, "type", 2);
1450
+ z([
1451
1451
  a({ type: String })
1452
- ], _.prototype, "strokewidth", 2);
1453
- I([
1452
+ ], C.prototype, "strokewidth", 2);
1453
+ z([
1454
1454
  a({ type: String })
1455
- ], _.prototype, "icon", 2);
1456
- I([
1455
+ ], C.prototype, "icon", 2);
1456
+ z([
1457
1457
  a({ type: Boolean, reflect: !0 })
1458
- ], _.prototype, "disabled", 2);
1459
- _ = I([
1458
+ ], C.prototype, "disabled", 2);
1459
+ C = z([
1460
1460
  $("o-icon-button")
1461
- ], _);
1461
+ ], C);
1462
1462
  /**
1463
1463
  * @license
1464
1464
  * Copyright 2018 Google LLC
1465
1465
  * SPDX-License-Identifier: BSD-3-Clause
1466
1466
  */
1467
- const Ue = (o) => o ?? d;
1468
- var je = Object.defineProperty, Ne = Object.getOwnPropertyDescriptor, D = (o, t, e, i) => {
1469
- for (var n = i > 1 ? void 0 : i ? Ne(t, e) : t, s = o.length - 1, r; s >= 0; s--)
1470
- (r = o[s]) && (n = (i ? r(t, e, n) : r(n)) || n);
1471
- return i && n && je(t, e, n), n;
1467
+ const G = (o) => o ?? d;
1468
+ var Fe = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, N = (o, t, e, n) => {
1469
+ for (var i = n > 1 ? void 0 : n ? Re(t, e) : t, s = o.length - 1, r; s >= 0; s--)
1470
+ (r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
1471
+ return n && i && Fe(t, e, i), i;
1472
1472
  };
1473
- let A = class extends y {
1473
+ let E = class extends b {
1474
1474
  constructor() {
1475
1475
  super(...arguments), this.href = "", this.target = "", this.template = "standard", this.inverse = !1, this.endIcon = !1, this.reverseEndIcon = !1;
1476
1476
  }
@@ -1479,13 +1479,13 @@ let A = class extends y {
1479
1479
  }
1480
1480
  render() {
1481
1481
  const o = this.href || "#";
1482
- return h`
1482
+ return c`
1483
1483
  <a
1484
1484
  href="${o}"
1485
- target="${Ue(this.target || void 0)}"
1485
+ target="${G(this.target || void 0)}"
1486
1486
  @click="${this._handleClick}"
1487
1487
  >
1488
- ${this.endIcon && this.reverseEndIcon ? h`
1488
+ ${this.endIcon && this.reverseEndIcon ? c`
1489
1489
  <o-icon-button
1490
1490
  icon="chevronLeft"
1491
1491
  bgstyle="${this.inverse ? "none-light" : "none-contrast"}"
@@ -1495,7 +1495,7 @@ let A = class extends y {
1495
1495
  ></o-icon-button>
1496
1496
  ` : null}
1497
1497
  <span class="link-text"><slot></slot></span>
1498
- ${this.endIcon && !this.reverseEndIcon ? h`
1498
+ ${this.endIcon && !this.reverseEndIcon ? c`
1499
1499
  <o-icon-button
1500
1500
  icon="chevronRight"
1501
1501
  bgstyle="${this.inverse ? "none-light" : "none-contrast"}"
@@ -1508,7 +1508,7 @@ let A = class extends y {
1508
1508
  `;
1509
1509
  }
1510
1510
  };
1511
- A.styles = w`
1511
+ E.styles = w`
1512
1512
  :host([template="standard"]) a {
1513
1513
  color: var(--color-content-action-secondary);
1514
1514
  font-size: var(--font-size-200);
@@ -1596,33 +1596,33 @@ A.styles = w`
1596
1596
  }
1597
1597
  /* End of underline effect */
1598
1598
  `;
1599
- D([
1599
+ N([
1600
1600
  a({ type: String })
1601
- ], A.prototype, "href", 2);
1602
- D([
1601
+ ], E.prototype, "href", 2);
1602
+ N([
1603
1603
  a({ type: String })
1604
- ], A.prototype, "target", 2);
1605
- D([
1604
+ ], E.prototype, "target", 2);
1605
+ N([
1606
1606
  a({ type: String, reflect: !0 })
1607
- ], A.prototype, "template", 2);
1608
- D([
1607
+ ], E.prototype, "template", 2);
1608
+ N([
1609
1609
  a({ type: Boolean, reflect: !0 })
1610
- ], A.prototype, "inverse", 2);
1611
- D([
1610
+ ], E.prototype, "inverse", 2);
1611
+ N([
1612
1612
  a({ type: Boolean, reflect: !0 })
1613
- ], A.prototype, "endIcon", 2);
1614
- D([
1613
+ ], E.prototype, "endIcon", 2);
1614
+ N([
1615
1615
  a({ type: Boolean, reflect: !0 })
1616
- ], A.prototype, "reverseEndIcon", 2);
1617
- A = D([
1616
+ ], E.prototype, "reverseEndIcon", 2);
1617
+ E = N([
1618
1618
  $("o-link")
1619
- ], A);
1620
- var Fe = Object.defineProperty, Ve = Object.getOwnPropertyDescriptor, at = (o, t, e, i) => {
1621
- for (var n = i > 1 ? void 0 : i ? Ve(t, e) : t, s = o.length - 1, r; s >= 0; s--)
1622
- (r = o[s]) && (n = (i ? r(t, e, n) : r(n)) || n);
1623
- return i && n && Fe(t, e, n), n;
1619
+ ], E);
1620
+ var Ve = Object.defineProperty, Ze = Object.getOwnPropertyDescriptor, ht = (o, t, e, n) => {
1621
+ for (var i = n > 1 ? void 0 : n ? Ze(t, e) : t, s = o.length - 1, r; s >= 0; s--)
1622
+ (r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
1623
+ return n && i && Ve(t, e, i), i;
1624
1624
  };
1625
- let V = class extends y {
1625
+ let W = class extends b {
1626
1626
  constructor() {
1627
1627
  super(...arguments), this.rating = 0;
1628
1628
  }
@@ -1630,26 +1630,26 @@ let V = class extends y {
1630
1630
  const o = [];
1631
1631
  for (let t = 0; t < 5; t++) {
1632
1632
  const e = this.rating - t;
1633
- let i;
1634
- e >= 1 ? i = 100 : e <= 0 ? i = 0 : i = Math.round(e * 100 / 25) * 25, o.push(`star-${i}`);
1633
+ let n;
1634
+ e >= 1 ? n = 100 : e <= 0 ? n = 0 : n = Math.round(e * 100 / 25) * 25, o.push(`star-${n}`);
1635
1635
  }
1636
1636
  return o;
1637
1637
  }
1638
1638
  render() {
1639
1639
  const o = this.getStarKeys();
1640
- return h`
1640
+ return c`
1641
1641
  <div class="rating">
1642
1642
  <div class="stars">
1643
1643
  ${o.map(
1644
- (t) => h`<span class="star">${N(Q[t] ?? "")}</span>`
1644
+ (t) => c`<span class="star">${B(q[t] ?? "")}</span>`
1645
1645
  )}
1646
1646
  </div>
1647
- ${this.reviewCount != null && this.href != null ? h`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>` : null}
1647
+ ${this.reviewCount != null && this.href != null ? c`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>` : null}
1648
1648
  </div>
1649
1649
  `;
1650
1650
  }
1651
1651
  };
1652
- V.styles = w`
1652
+ W.styles = w`
1653
1653
  svg {
1654
1654
  width: 12px;
1655
1655
  height: 12px;
@@ -1683,24 +1683,24 @@ V.styles = w`
1683
1683
  cursor: pointer;
1684
1684
  }
1685
1685
  `;
1686
- at([
1686
+ ht([
1687
1687
  a({ type: Number })
1688
- ], V.prototype, "rating", 2);
1689
- at([
1688
+ ], W.prototype, "rating", 2);
1689
+ ht([
1690
1690
  a({ type: String })
1691
- ], V.prototype, "reviewCount", 2);
1692
- at([
1691
+ ], W.prototype, "reviewCount", 2);
1692
+ ht([
1693
1693
  a({ type: String })
1694
- ], V.prototype, "href", 2);
1695
- V = at([
1694
+ ], W.prototype, "href", 2);
1695
+ W = ht([
1696
1696
  $("o-rating")
1697
- ], V);
1698
- var Re = Object.defineProperty, Ze = Object.getOwnPropertyDescriptor, b = (o, t, e, i) => {
1699
- for (var n = i > 1 ? void 0 : i ? Ze(t, e) : t, s = o.length - 1, r; s >= 0; s--)
1700
- (r = o[s]) && (n = (i ? r(t, e, n) : r(n)) || n);
1701
- return i && n && Re(t, e, n), n;
1697
+ ], W);
1698
+ var We = Object.defineProperty, qe = Object.getOwnPropertyDescriptor, y = (o, t, e, n) => {
1699
+ for (var i = n > 1 ? void 0 : n ? qe(t, e) : t, s = o.length - 1, r; s >= 0; s--)
1700
+ (r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
1701
+ return n && i && We(t, e, i), i;
1702
1702
  };
1703
- let g = class extends y {
1703
+ let g = class extends b {
1704
1704
  constructor() {
1705
1705
  super(...arguments), this.open = !1, this.showHeader = !0, this.showFooter = !1, this.showHeaderStartIcon = !1, this.headerTitle = "", this.closeButtonLabel = "Close the modal", this.firstButtonLabel = "Close", this.firstButtonVariant = "primary", this.secondaryButtonLabel = "", this.secondaryButtonVariant = "secondary", this.disablePortal = !1, this.zIndex = 99, this.initialized = !1, this.previousFocusedElement = null, this.handleKeyDown = (o) => {
1706
1706
  this.open && (o.key === "Escape" ? this.closePanel() : o.key === "Tab" && this.trapFocus(o));
@@ -1717,8 +1717,8 @@ let g = class extends y {
1717
1717
  trapFocus(o) {
1718
1718
  const t = this.getFocusableElements();
1719
1719
  if (t.length === 0) return;
1720
- const e = t[0], i = t[t.length - 1];
1721
- o.shiftKey && document.activeElement === e ? (o.preventDefault(), i.focus()) : !o.shiftKey && document.activeElement === i && (o.preventDefault(), e.focus());
1720
+ const e = t[0], n = t[t.length - 1];
1721
+ o.shiftKey && document.activeElement === e ? (o.preventDefault(), n.focus()) : !o.shiftKey && document.activeElement === n && (o.preventDefault(), e.focus());
1722
1722
  }
1723
1723
  getFocusableElements() {
1724
1724
  const o = this.renderRoot.querySelector(".panel");
@@ -1750,7 +1750,7 @@ let g = class extends y {
1750
1750
  this.style.setProperty("--z-overlay", `${this.zIndex}`), this.style.setProperty("--z-panel", `${this.zIndex + 1}`);
1751
1751
  }
1752
1752
  render() {
1753
- return h`
1753
+ return c`
1754
1754
  <div class="overlay" style="z-index: ${this.zIndex}" @click=${this.closePanel}></div>
1755
1755
  <div
1756
1756
  class="panel"
@@ -1760,9 +1760,9 @@ let g = class extends y {
1760
1760
  style="z-index: ${this.zIndex + 1}"
1761
1761
  >
1762
1762
 
1763
- ${this.showHeader ? h`
1763
+ ${this.showHeader ? c`
1764
1764
  <div class="header">
1765
- ${this.showHeaderStartIcon ? h`
1765
+ ${this.showHeaderStartIcon ? c`
1766
1766
  <o-icon-button icon="arrowLeft" size="small" class="return-btn" bgstyle="background-light" @click=${this.closePanel} aria-label="${this.closeButtonLabel}"></o-icon-button>
1767
1767
  ` : null}
1768
1768
  <span id="panel-title" class="panel-title">${this.headerTitle}</span>
@@ -1774,9 +1774,9 @@ let g = class extends y {
1774
1774
  <slot></slot>
1775
1775
  </div>
1776
1776
 
1777
- ${this.showFooter ? h`
1777
+ ${this.showFooter ? c`
1778
1778
  <div class="footer">
1779
- ${this.firstButtonVariant && this.firstButtonLabel ? h`
1779
+ ${this.firstButtonVariant && this.firstButtonLabel ? c`
1780
1780
  <o-button
1781
1781
  variant="${this.firstButtonVariant}"
1782
1782
  @click=${this.handleFirstClick}
@@ -1785,7 +1785,7 @@ let g = class extends y {
1785
1785
  </o-button>
1786
1786
  ` : null}
1787
1787
 
1788
- ${this.secondaryButtonVariant && this.secondaryButtonLabel ? h`
1788
+ ${this.secondaryButtonVariant && this.secondaryButtonLabel ? c`
1789
1789
  <o-button
1790
1790
  variant="${this.secondaryButtonVariant}"
1791
1791
  @click=${this.handleSecondaryClick}
@@ -1940,62 +1940,62 @@ g.styles = w`
1940
1940
  }
1941
1941
  }
1942
1942
  `;
1943
- b([
1943
+ y([
1944
1944
  a({ type: Boolean, reflect: !0 })
1945
1945
  ], g.prototype, "open", 2);
1946
- b([
1946
+ y([
1947
1947
  a({ type: Boolean, reflect: !0 })
1948
1948
  ], g.prototype, "showHeader", 2);
1949
- b([
1949
+ y([
1950
1950
  a({ type: Boolean, reflect: !0 })
1951
1951
  ], g.prototype, "showFooter", 2);
1952
- b([
1952
+ y([
1953
1953
  a({ type: Boolean, reflect: !0 })
1954
1954
  ], g.prototype, "showHeaderStartIcon", 2);
1955
- b([
1955
+ y([
1956
1956
  a({ type: String, reflect: !0 })
1957
1957
  ], g.prototype, "headerTitle", 2);
1958
- b([
1958
+ y([
1959
1959
  a({ type: String, reflect: !0 })
1960
1960
  ], g.prototype, "closeButtonLabel", 2);
1961
- b([
1961
+ y([
1962
1962
  a({ type: String, reflect: !0 })
1963
1963
  ], g.prototype, "firstButtonLabel", 2);
1964
- b([
1964
+ y([
1965
1965
  a({ type: String, reflect: !0 })
1966
1966
  ], g.prototype, "firstButtonVariant", 2);
1967
- b([
1967
+ y([
1968
1968
  a({ type: Function })
1969
1969
  ], g.prototype, "onFirstButtonClick", 2);
1970
- b([
1970
+ y([
1971
1971
  a({ type: String, reflect: !0 })
1972
1972
  ], g.prototype, "secondaryButtonLabel", 2);
1973
- b([
1973
+ y([
1974
1974
  a({ type: String, reflect: !0 })
1975
1975
  ], g.prototype, "secondaryButtonVariant", 2);
1976
- b([
1976
+ y([
1977
1977
  a({ type: Function })
1978
1978
  ], g.prototype, "onSecondaryButtonClick", 2);
1979
- b([
1979
+ y([
1980
1980
  a({ type: Boolean, reflect: !0 })
1981
1981
  ], g.prototype, "disablePortal", 2);
1982
- b([
1982
+ y([
1983
1983
  a({ type: Number, reflect: !0 })
1984
1984
  ], g.prototype, "zIndex", 2);
1985
- b([
1985
+ y([
1986
1986
  a({ type: Boolean, reflect: !0 })
1987
1987
  ], g.prototype, "initialized", 2);
1988
- g = b([
1988
+ g = y([
1989
1989
  $("o-side-panel")
1990
1990
  ], g);
1991
- var qe = Object.defineProperty, We = Object.getOwnPropertyDescriptor, T = (o, t, e, i) => {
1992
- for (var n = i > 1 ? void 0 : i ? We(t, e) : t, s = o.length - 1, r; s >= 0; s--)
1993
- (r = o[s]) && (n = (i ? r(t, e, n) : r(n)) || n);
1994
- return i && n && qe(t, e, n), n;
1991
+ var Ke = Object.defineProperty, Ge = Object.getOwnPropertyDescriptor, F = (o, t, e, n) => {
1992
+ for (var i = n > 1 ? void 0 : n ? Ge(t, e) : t, s = o.length - 1, r; s >= 0; s--)
1993
+ (r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
1994
+ return n && i && Ke(t, e, i), i;
1995
1995
  };
1996
- let k = class extends y {
1996
+ let S = class extends b {
1997
1997
  constructor() {
1998
- super(...arguments), this.thumbnails = [], this.activeIndex = 0, this.disabledIndexes = [], this.maxWidth = "100%", this.focusedIndex = 0, this.playerIconTemplate = h`
1998
+ super(...arguments), this.thumbnails = [], this.activeIndex = 0, this.disabledIndexes = [], this.maxWidth = "100%", this.focusedIndex = 0, this.playerIconTemplate = c`
1999
1999
  <o-icon-button
2000
2000
  icon="playerv"
2001
2001
  size="xsmall"
@@ -2029,24 +2029,24 @@ let k = class extends y {
2029
2029
  this.disabledIndexes.includes(o) || (this.activeIndex = o, this.swiperInstance && typeof this.swiperInstance.slideTo == "function" && this.swiperInstance.slideTo(o), this.dispatchEvent(new CustomEvent("thumbnail-select", { detail: { index: o } })));
2030
2030
  }
2031
2031
  render() {
2032
- return h`
2032
+ return c`
2033
2033
  <div class="scroll-container" style="max-width: ${this.maxWidth};">
2034
2034
  ${this.thumbnails.map((o, t) => {
2035
- const e = this.disabledIndexes.includes(t), i = this.activeIndex === t, n = o.type === "video";
2036
- return h`
2035
+ const e = this.disabledIndexes.includes(t), n = this.activeIndex === t, i = o.type === "video";
2036
+ return c`
2037
2037
  <div class="thumb-wrapper">
2038
2038
  <button
2039
2039
  class="thumb"
2040
2040
  data-index="${t}"
2041
2041
  ?disabled=${e}
2042
- aria-selected=${i}
2042
+ aria-selected=${n}
2043
2043
  tabindex="${this.focusedIndex === t ? 0 : -1}"
2044
2044
  @click=${() => this.selectThumbnail(t)}
2045
2045
  @keydown=${this.handleKeyDown}
2046
2046
  >
2047
2047
  <img src="${o.src}" />
2048
2048
  </button>
2049
- ${n ? h`<div class="play-icon-wrapper">${this.playerIconTemplate}</div>` : null}
2049
+ ${i ? c`<div class="play-icon-wrapper">${this.playerIconTemplate}</div>` : null}
2050
2050
  </div>
2051
2051
  `;
2052
2052
  })}
@@ -2054,7 +2054,7 @@ let k = class extends y {
2054
2054
  `;
2055
2055
  }
2056
2056
  };
2057
- k.styles = w`
2057
+ S.styles = w`
2058
2058
  :host {
2059
2059
  display: flex;
2060
2060
  gap: 5px;
@@ -2158,43 +2158,43 @@ k.styles = w`
2158
2158
  width: 0;
2159
2159
  }
2160
2160
  `;
2161
- T([
2161
+ F([
2162
2162
  a({ type: Array })
2163
- ], k.prototype, "thumbnails", 2);
2164
- T([
2163
+ ], S.prototype, "thumbnails", 2);
2164
+ F([
2165
2165
  a({ type: Number })
2166
- ], k.prototype, "activeIndex", 2);
2167
- T([
2166
+ ], S.prototype, "activeIndex", 2);
2167
+ F([
2168
2168
  a({ type: Array })
2169
- ], k.prototype, "disabledIndexes", 2);
2170
- T([
2169
+ ], S.prototype, "disabledIndexes", 2);
2170
+ F([
2171
2171
  a({ type: String })
2172
- ], k.prototype, "maxWidth", 2);
2173
- T([
2172
+ ], S.prototype, "maxWidth", 2);
2173
+ F([
2174
2174
  a({ type: Object })
2175
- ], k.prototype, "swiperInstance", 2);
2176
- T([
2177
- rt()
2178
- ], k.prototype, "focusedIndex", 2);
2179
- k = T([
2175
+ ], S.prototype, "swiperInstance", 2);
2176
+ F([
2177
+ U()
2178
+ ], S.prototype, "focusedIndex", 2);
2179
+ S = F([
2180
2180
  $("thumbnail-navigation")
2181
- ], k);
2182
- var Ke = Object.defineProperty, Ge = Object.getOwnPropertyDescriptor, xt = (o, t, e, i) => {
2183
- for (var n = i > 1 ? void 0 : i ? Ge(t, e) : t, s = o.length - 1, r; s >= 0; s--)
2184
- (r = o[s]) && (n = (i ? r(t, e, n) : r(n)) || n);
2185
- return i && n && Ke(t, e, n), n;
2181
+ ], S);
2182
+ var Xe = Object.defineProperty, Je = Object.getOwnPropertyDescriptor, Ct = (o, t, e, n) => {
2183
+ for (var i = n > 1 ? void 0 : n ? Je(t, e) : t, s = o.length - 1, r; s >= 0; s--)
2184
+ (r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
2185
+ return n && i && Xe(t, e, i), i;
2186
2186
  };
2187
- let X = class extends y {
2187
+ let et = class extends b {
2188
2188
  constructor() {
2189
2189
  super(...arguments), this.type = "", this.bgstyle = "background-white";
2190
2190
  }
2191
2191
  render() {
2192
- return h`
2192
+ return c`
2193
2193
  <span class="tag ${this.bgstyle}"><slot></slot></span>
2194
2194
  `;
2195
2195
  }
2196
2196
  };
2197
- X.styles = w`
2197
+ et.styles = w`
2198
2198
  .tag {
2199
2199
  display: inline-block;
2200
2200
  padding: var(--spacing-2-xs) var(--spacing-s);
@@ -2250,26 +2250,26 @@ X.styles = w`
2250
2250
  }
2251
2251
 
2252
2252
  `;
2253
- xt([
2253
+ Ct([
2254
2254
  a({ type: String, reflect: !0 })
2255
- ], X.prototype, "type", 2);
2256
- xt([
2255
+ ], et.prototype, "type", 2);
2256
+ Ct([
2257
2257
  a({ type: String, reflect: !0 })
2258
- ], X.prototype, "bgstyle", 2);
2259
- X = xt([
2258
+ ], et.prototype, "bgstyle", 2);
2259
+ et = Ct([
2260
2260
  $("o-tag")
2261
- ], X);
2262
- var Xe = Object.defineProperty, Je = Object.getOwnPropertyDescriptor, $t = (o, t, e, i) => {
2263
- for (var n = i > 1 ? void 0 : i ? Je(t, e) : t, s = o.length - 1, r; s >= 0; s--)
2264
- (r = o[s]) && (n = (i ? r(t, e, n) : r(n)) || n);
2265
- return i && n && Xe(t, e, n), n;
2261
+ ], et);
2262
+ var Ye = Object.defineProperty, Qe = Object.getOwnPropertyDescriptor, kt = (o, t, e, n) => {
2263
+ for (var i = n > 1 ? void 0 : n ? Qe(t, e) : t, s = o.length - 1, r; s >= 0; s--)
2264
+ (r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
2265
+ return n && i && Ye(t, e, i), i;
2266
2266
  };
2267
- let J = class extends y {
2267
+ let ot = class extends b {
2268
2268
  constructor() {
2269
2269
  super(...arguments), this.type = "top", this.text = "";
2270
2270
  }
2271
2271
  render() {
2272
- return h`
2272
+ return c`
2273
2273
  <div class="tooltip">
2274
2274
  <span class="tooltiptext">${this.text}</span>
2275
2275
  <slot></slot>
@@ -2277,7 +2277,7 @@ let J = class extends y {
2277
2277
  `;
2278
2278
  }
2279
2279
  };
2280
- J.styles = w`
2280
+ ot.styles = w`
2281
2281
  .tooltip {
2282
2282
  position: relative;
2283
2283
  display: inline-block;
@@ -2370,21 +2370,21 @@ J.styles = w`
2370
2370
  }
2371
2371
 
2372
2372
  `;
2373
- $t([
2373
+ kt([
2374
2374
  a({ type: String, reflect: !0 })
2375
- ], J.prototype, "type", 2);
2376
- $t([
2375
+ ], ot.prototype, "type", 2);
2376
+ kt([
2377
2377
  a({ type: String, reflect: !0 })
2378
- ], J.prototype, "text", 2);
2379
- J = $t([
2378
+ ], ot.prototype, "text", 2);
2379
+ ot = kt([
2380
2380
  $("o-tooltip")
2381
- ], J);
2382
- var Ye = Object.defineProperty, Qe = Object.getOwnPropertyDescriptor, E = (o, t, e, i) => {
2383
- for (var n = i > 1 ? void 0 : i ? Qe(t, e) : t, s = o.length - 1, r; s >= 0; s--)
2384
- (r = o[s]) && (n = (i ? r(t, e, n) : r(n)) || n);
2385
- return i && n && Ye(t, e, n), n;
2381
+ ], ot);
2382
+ var to = Object.defineProperty, eo = Object.getOwnPropertyDescriptor, L = (o, t, e, n) => {
2383
+ for (var i = n > 1 ? void 0 : n ? eo(t, e) : t, s = o.length - 1, r; s >= 0; s--)
2384
+ (r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
2385
+ return n && i && to(t, e, i), i;
2386
2386
  };
2387
- let x = class extends y {
2387
+ let _ = class extends b {
2388
2388
  constructor() {
2389
2389
  super(...arguments), this.options = [], this.value = "", this.name = "", this.disabled = !1, this.width = "100%", this.open = !1, this.activeIndex = -1, this._handleOutsideClick = (o) => {
2390
2390
  this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
@@ -2434,37 +2434,40 @@ let x = class extends y {
2434
2434
  this.options.length > 0 && (this.options.some((e) => e.value === this.value) || (this.value = this.options[0].value));
2435
2435
  }
2436
2436
  render() {
2437
- const o = Q.checkstroke.replace(
2437
+ const o = q.checkstroke.replace(
2438
2438
  "<svg",
2439
2439
  '<svg aria-hidden="true" focusable="false" part="svg"'
2440
2440
  ), t = this.options.find((e) => e.value === this.value);
2441
- return h`
2441
+ return c`
2442
2442
  <button
2443
2443
  @click=${this.toggle}
2444
2444
  @keydown=${this.handleKeydown}
2445
2445
  aria-haspopup="listbox"
2446
2446
  aria-expanded="${this.open}"
2447
2447
  style=${`width: ${this.width};`}
2448
- ?disabled=${this.disabled}
2448
+ ?disabled=${this.disabled}
2449
2449
  >
2450
- <div class="btn-content">
2451
2450
  <span class="label">${t ? t.label : "Select an option"}</span>
2452
2451
  <span class="arrow"><o-icon-button icon='${this.open ? "triangleup" : "triangledown"}' size="small" bgstyle="none-contrast" type="span"></o-icon-button></span>
2453
- </div>
2454
2452
  </button>
2455
2453
 
2456
- ${this.open ? h`
2454
+ ${this.open ? c`
2457
2455
  <ul role="listbox" style=${`width: ${this.width};`}>
2458
2456
  ${this.options.map(
2459
- (e, i) => h`
2457
+ (e, n) => c`
2460
2458
  <li
2461
2459
  role="option"
2462
2460
  aria-selected="${e.value === this.value}"
2463
- class="${i === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
2464
- @click=${() => !e.disabled && this.selectOption(e)}
2461
+ class="${n === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
2462
+ @click=${() => this.selectOption(e)}
2465
2463
  >
2466
- <span>${e.label}</span>
2467
- ${e.value === this.value ? h`<span class="check">${N(o)}</span>` : null}
2464
+ ${e.url ? c`
2465
+ <a href="${e.url}">
2466
+ <span>${e.label}</span>
2467
+ ${e.value === this.value ? c`<span class="check">${B(o)}</span>` : null}
2468
+ </a>` : c`
2469
+ <span>${e.label}</span>
2470
+ ${e.value === this.value ? c`<span class="check">${B(o)}</span>` : null}`}
2468
2471
  </li>
2469
2472
  `
2470
2473
  )}
@@ -2475,14 +2478,19 @@ let x = class extends y {
2475
2478
  `;
2476
2479
  }
2477
2480
  };
2478
- x.styles = w`
2481
+ _.styles = w`
2479
2482
  :host {
2480
2483
  display: inline-block;
2481
2484
  position: relative;
2482
2485
  width: 100%;
2483
2486
  }
2484
2487
 
2485
- .btn-content {
2488
+ button {
2489
+ padding: var(--spacing-s) var(--spacing-l);
2490
+ background-color: var(--color-container-default);
2491
+ cursor: pointer;
2492
+ border-radius: var(--radius-m);
2493
+ border: var(--border-m) solid var(--color-border-tertiary);
2486
2494
  display: flex;
2487
2495
  justify-content: space-between;
2488
2496
  width: 100%;
@@ -2501,18 +2509,14 @@ x.styles = w`
2501
2509
  margin-bottom: auto;
2502
2510
  margin-left: var(--spacing-s);
2503
2511
  }
2504
- }
2505
-
2506
- button {
2507
- padding: var(--spacing-s) var(--spacing-l);
2508
- background-color: var(--color-container-default);
2509
- cursor: pointer;
2510
- border-radius: var(--radius-m);
2511
- border: var(--border-m) solid var(--color-border-tertiary);
2512
2512
 
2513
2513
  &:disabled {
2514
2514
  background-color: var(--color-container-disabled);
2515
2515
  pointer-events: none;
2516
+
2517
+ .label {
2518
+ color: var(--color-content-disabled);
2519
+ }
2516
2520
  }
2517
2521
  }
2518
2522
 
@@ -2539,9 +2543,20 @@ x.styles = w`
2539
2543
  cursor: pointer;
2540
2544
  border-bottom: var(--border-s) solid var(--color-border-tertiary);
2541
2545
 
2546
+ a {
2547
+ display: flex;
2548
+ justify-content: space-between;
2549
+ width: 100%;
2550
+ text-decoration: none;
2551
+ color: var(--color-content-body);
2552
+ }
2553
+
2542
2554
  &.disabled {
2543
2555
  background-color: var(--color-container-disabled);
2544
- pointer-events: none;
2556
+
2557
+ span {
2558
+ color: var(--color-content-disabled);
2559
+ }
2545
2560
  }
2546
2561
 
2547
2562
  &:hover:not(.disabled) {
@@ -2562,6 +2577,10 @@ x.styles = w`
2562
2577
  &:active {
2563
2578
  background-color: var(--color-container-action-tertiary-pressed);
2564
2579
  }
2580
+
2581
+ &.disabled {
2582
+ background-color: var(--color-container-disabled);
2583
+ }
2565
2584
  }
2566
2585
 
2567
2586
  &:last-child {
@@ -2575,6 +2594,8 @@ x.styles = w`
2575
2594
  line-height: var(--line-height-200);
2576
2595
  letter-spacing: var(--letter-spacing-000);
2577
2596
  height: auto;
2597
+ color: var(--color-content-body);
2598
+
2578
2599
  }
2579
2600
  }
2580
2601
 
@@ -2589,44 +2610,44 @@ x.styles = w`
2589
2610
  display: none;
2590
2611
  }
2591
2612
  `;
2592
- E([
2613
+ L([
2593
2614
  a({ type: Array, reflect: !0 })
2594
- ], x.prototype, "options", 2);
2595
- E([
2615
+ ], _.prototype, "options", 2);
2616
+ L([
2596
2617
  a({ type: String, reflect: !0 })
2597
- ], x.prototype, "value", 2);
2598
- E([
2618
+ ], _.prototype, "value", 2);
2619
+ L([
2599
2620
  a({ type: String, reflect: !0 })
2600
- ], x.prototype, "name", 2);
2601
- E([
2621
+ ], _.prototype, "name", 2);
2622
+ L([
2602
2623
  a({ type: Boolean, reflect: !0 })
2603
- ], x.prototype, "disabled", 2);
2604
- E([
2624
+ ], _.prototype, "disabled", 2);
2625
+ L([
2605
2626
  a({ type: String, reflect: !0 })
2606
- ], x.prototype, "width", 2);
2607
- E([
2608
- rt()
2609
- ], x.prototype, "open", 2);
2610
- E([
2611
- rt()
2612
- ], x.prototype, "activeIndex", 2);
2613
- E([
2614
- rt()
2615
- ], x.prototype, "menuWidth", 2);
2616
- x = E([
2627
+ ], _.prototype, "width", 2);
2628
+ L([
2629
+ U()
2630
+ ], _.prototype, "open", 2);
2631
+ L([
2632
+ U()
2633
+ ], _.prototype, "activeIndex", 2);
2634
+ L([
2635
+ U()
2636
+ ], _.prototype, "menuWidth", 2);
2637
+ _ = L([
2617
2638
  $("o-dropdown")
2618
- ], x);
2619
- var to = Object.getOwnPropertyDescriptor, eo = (o, t, e, i) => {
2620
- for (var n = i > 1 ? void 0 : i ? to(t, e) : t, s = o.length - 1, r; s >= 0; s--)
2621
- (r = o[s]) && (n = r(n) || n);
2622
- return n;
2639
+ ], _);
2640
+ var oo = Object.getOwnPropertyDescriptor, io = (o, t, e, n) => {
2641
+ for (var i = n > 1 ? void 0 : n ? oo(t, e) : t, s = o.length - 1, r; s >= 0; s--)
2642
+ (r = o[s]) && (i = r(i) || i);
2643
+ return i;
2623
2644
  };
2624
- let gt = class extends y {
2645
+ let yt = class extends b {
2625
2646
  render() {
2626
- return h` <span class="dots"></span> `;
2647
+ return c` <span class="dots"></span> `;
2627
2648
  }
2628
2649
  };
2629
- gt.styles = w`
2650
+ yt.styles = w`
2630
2651
  :host {
2631
2652
  display: flex;
2632
2653
  align-items: center;
@@ -2677,6 +2698,323 @@ gt.styles = w`
2677
2698
  }
2678
2699
  }
2679
2700
  `;
2680
- gt = eo([
2701
+ yt = io([
2681
2702
  $("o-dots")
2682
- ], gt);
2703
+ ], yt);
2704
+ var no = Object.defineProperty, ro = Object.getOwnPropertyDescriptor, k = (o, t, e, n) => {
2705
+ for (var i = n > 1 ? void 0 : n ? ro(t, e) : t, s = o.length - 1, r; s >= 0; s--)
2706
+ (r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
2707
+ return n && i && no(t, e, i), i;
2708
+ };
2709
+ let x = class extends b {
2710
+ constructor() {
2711
+ super(...arguments), this.options = [], this.value = "", this.name = "", this.additionaltext = "+X variant(s)", this.disabled = !1, this.width = "100%", this.open = !1, this.activeIndex = -1, this._handleOutsideClick = (o) => {
2712
+ this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
2713
+ }, this.menuWidth = "";
2714
+ }
2715
+ connectedCallback() {
2716
+ super.connectedCallback(), document.addEventListener("click", this._handleOutsideClick);
2717
+ }
2718
+ disconnectedCallback() {
2719
+ document.removeEventListener("click", this._handleOutsideClick), super.disconnectedCallback();
2720
+ }
2721
+ toggle() {
2722
+ var o;
2723
+ if (!this.disabled && (this.open = !this.open, this.activeIndex = this.open ? this.options.findIndex((t) => t.value === this.value) : -1, this.open && this.width === "auto")) {
2724
+ const t = (o = this.renderRoot) == null ? void 0 : o.querySelector("button");
2725
+ t && (this.menuWidth = `${t.getBoundingClientRect().width}px`);
2726
+ }
2727
+ }
2728
+ selectOption(o) {
2729
+ this.value = o.value, this.dispatchEvent(
2730
+ new CustomEvent("change", {
2731
+ detail: { value: this.value, url: o.url }
2732
+ })
2733
+ );
2734
+ }
2735
+ handleKeydown(o) {
2736
+ if (this.disabled) {
2737
+ o.preventDefault();
2738
+ return;
2739
+ }
2740
+ if (!this.open) {
2741
+ (o.key === "ArrowDown" || o.key === "ArrowUp") && (o.preventDefault(), this.open = !0, this.activeIndex = this.options.findIndex(
2742
+ (t) => t.value === this.value
2743
+ ));
2744
+ return;
2745
+ }
2746
+ switch (o.key) {
2747
+ case "ArrowDown":
2748
+ o.preventDefault(), this.activeIndex = (this.activeIndex + 1) % this.options.length;
2749
+ break;
2750
+ case "ArrowUp":
2751
+ o.preventDefault(), this.activeIndex = (this.activeIndex - 1 + this.options.length) % this.options.length;
2752
+ break;
2753
+ case "Enter":
2754
+ o.preventDefault(), this.activeIndex >= 0 && this.selectOption(this.options[this.activeIndex]);
2755
+ break;
2756
+ case "Escape":
2757
+ o.preventDefault(), this.open = !1, this.activeIndex = -1;
2758
+ break;
2759
+ }
2760
+ }
2761
+ updated(o) {
2762
+ this.options.length > 0 && (this.options.some((e) => e.value === this.value) || (this.value = this.options[0].value));
2763
+ }
2764
+ render() {
2765
+ const o = q.checkstroke.replace(
2766
+ "<svg",
2767
+ '<svg aria-hidden="true" focusable="false" part="svg"'
2768
+ ), t = this.options.find((e) => e.value === this.value);
2769
+ return c`
2770
+ <button
2771
+ @click=${this.toggle}
2772
+ @keydown=${this.handleKeydown}
2773
+ aria-haspopup="listbox"
2774
+ aria-expanded="${this.open}"
2775
+ style=${`width: ${this.width};`}
2776
+ ?disabled=${this.disabled}
2777
+ class="btn-dropdown"
2778
+ >
2779
+
2780
+ <img src="${G(t == null ? void 0 : t.imgurl)}" />
2781
+ <span class="label">${t ? t.label : "Select an option"}</span>
2782
+ <div class="right">
2783
+ <span class="additional-text">${this.additionaltext}</span>
2784
+ <span class="arrow">
2785
+ <o-icon-button
2786
+ icon="${this.open ? "triangleup" : "triangledown"}"
2787
+ size="small"
2788
+ bgstyle="none-contrast"
2789
+ type="span"
2790
+ >
2791
+ </o-icon-button>
2792
+ </span>
2793
+ </div>
2794
+ </button>
2795
+
2796
+ ${this.open ? c`
2797
+ <ul role="listbox" style=${`width: ${this.width};`}>
2798
+ ${this.options.map(
2799
+ (e, n) => c`
2800
+ <li role="option" aria-selected="${e.value === this.value}"
2801
+ class="${n === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
2802
+ @click=${() => this.selectOption(e)}
2803
+ >
2804
+ <a href="${G(t == null ? void 0 : t.url)}">
2805
+ <img src="${G(t == null ? void 0 : t.imgurl)}" />
2806
+ <span class="label">${e.label}</span>
2807
+ <div class="right">
2808
+ <span class="additional-text">${G(e.additionaltext)}</span>
2809
+ ${e.value === this.value && (e.additionaltext == null || e.additionaltext == null) ? c`<span class="check">${B(o)}</span>` : null}
2810
+ </div>
2811
+ </a>
2812
+ </li>
2813
+ `
2814
+ )}
2815
+ </ul>
2816
+ ` : null}
2817
+
2818
+ <input type="hidden" name="${this.name}" .value="${this.value}" />
2819
+ `;
2820
+ }
2821
+ };
2822
+ x.styles = w`
2823
+ :host {
2824
+ display: inline-block;
2825
+ position: relative;
2826
+ width: 100%;
2827
+ }
2828
+
2829
+ .btn-dropdown {
2830
+ display: flex;
2831
+ gap: var(--spacing-l);
2832
+ width: 100%;
2833
+ color: var(--color-content-body);
2834
+ align-items: center;
2835
+ background-color: var(--color-container-default);
2836
+ cursor: pointer;
2837
+ border-radius: var(--radius-m);
2838
+ border: var(--border-m) solid var(--color-border-tertiary);
2839
+ padding: 0;
2840
+ overflow: hidden;
2841
+
2842
+ &:disabled {
2843
+ background-color: var(--color-container-disabled);
2844
+ pointer-events: none;
2845
+
2846
+ .label {
2847
+ color: var(--color-content-disabled);
2848
+ }
2849
+ }
2850
+
2851
+ img {
2852
+ width: 40px;
2853
+ height: 50px;
2854
+ }
2855
+
2856
+ .right {
2857
+ display: flex;
2858
+ align-items: center;
2859
+ gap: var(--spacing-l);
2860
+ }
2861
+
2862
+ .arrow {
2863
+ margin-top: auto;
2864
+ margin-bottom: auto;
2865
+ margin-right: var(--spacing-l);
2866
+ }
2867
+
2868
+ &:hover, &[aria-expanded="true"] {
2869
+ border: var(--border-m) solid var(--color-border-primary);
2870
+ }
2871
+ }
2872
+
2873
+ .label {
2874
+ flex: 1;
2875
+ text-align: start;
2876
+ font-family: var(--font-family-loccitane-sans);
2877
+ font-weight: var(--font-weight-500);
2878
+ font-size: var(--font-size-100);
2879
+ line-height: var(--line-height-160);
2880
+ letter-spacing: var(--letter-spacing-400);
2881
+ text-transform: uppercase;
2882
+ color: var(--color-content-body);
2883
+ }
2884
+
2885
+ ul {
2886
+ list-style: none;
2887
+ margin: 4px 0 0 0;
2888
+ padding: 0;
2889
+ border: var(--border-m) solid var(--color-border-tertiary);
2890
+ position: absolute;
2891
+ background: white;
2892
+ height: auto;
2893
+ overflow-y: auto;
2894
+ z-index: 1000;
2895
+ border-radius: var(--radius-200);
2896
+ background-color: var(--color-container-action-secondary-default);
2897
+ max-height: calc(5 * 40px);
2898
+ overflow: hidden;
2899
+ }
2900
+
2901
+ li {
2902
+ display: flex;
2903
+ justify-content: space-between;
2904
+ align-items: center;
2905
+ cursor: pointer;
2906
+ border-bottom: var(--border-s) solid var(--color-border-tertiary);
2907
+ gap: var(--spacing-l);
2908
+ padding-right: var(--spacing-l);
2909
+
2910
+ a {
2911
+ display: flex;
2912
+ width: 100%;
2913
+ gap: var(--spacing-l);
2914
+ align-items: center;
2915
+ text-decoration: none;
2916
+
2917
+ &:active {
2918
+ color: inherit;
2919
+ text-decoration: none;
2920
+ }
2921
+
2922
+ img {
2923
+ width: 40px;
2924
+ height: 50px;
2925
+ }
2926
+ }
2927
+
2928
+ &.disabled {
2929
+ background-color: var(--color-container-disabled);
2930
+ }
2931
+
2932
+ &:hover:not(.disabled) {
2933
+ background-color: var(--color-container-action-secondary-hover);
2934
+ }
2935
+
2936
+ &:active:not(.disabled) {
2937
+ background-color: var(--color-container-action-secondary-pressed);
2938
+ }
2939
+
2940
+ &[aria-selected="true"] {
2941
+ background-color: var(--color-container-action-tertiary-default);
2942
+
2943
+ &:hover {
2944
+ background-color: var(--color-container-action-tertiary-hover);
2945
+ }
2946
+
2947
+ &:active {
2948
+ background-color: var(--color-container-action-tertiary-pressed);
2949
+ }
2950
+
2951
+ &.disabled {
2952
+ background-color: var(--color-container-disabled);
2953
+ }
2954
+ }
2955
+
2956
+ &:last-child {
2957
+ border-bottom: none;
2958
+ }
2959
+
2960
+ span {
2961
+ font-family: var(--font-family-loccitane-sans);
2962
+ font-weight: var(--font-weight-400);
2963
+ font-size: var(--font-size-150);
2964
+ line-height: var(--line-height-200);
2965
+ letter-spacing: var(--letter-spacing-000);
2966
+ height: auto;
2967
+ }
2968
+ }
2969
+
2970
+ .additional-text {
2971
+ font-family: var(--font-family-loccitane-sans);
2972
+ font-weight: var(--font-weight-400);
2973
+ font-size: var(--font-size-100);
2974
+ line-height: var(--line-height-160);
2975
+ letter-spacing: var(--letter-spacing-400);
2976
+ text-decoration: none;
2977
+ color: var(--color-content-description);
2978
+ }
2979
+
2980
+ .check {
2981
+ margin-left: var(--spacing-100);
2982
+ width: 12px;
2983
+ height: auto;
2984
+ color: var(--color-content-action-secondary);
2985
+ }
2986
+
2987
+ input[type="hidden"] {
2988
+ display: none;
2989
+ }
2990
+ `;
2991
+ k([
2992
+ a({ type: Array, reflect: !0 })
2993
+ ], x.prototype, "options", 2);
2994
+ k([
2995
+ a({ type: String, reflect: !0 })
2996
+ ], x.prototype, "value", 2);
2997
+ k([
2998
+ a({ type: String, reflect: !0 })
2999
+ ], x.prototype, "name", 2);
3000
+ k([
3001
+ a({ type: String, reflect: !0 })
3002
+ ], x.prototype, "additionaltext", 2);
3003
+ k([
3004
+ a({ type: Boolean, reflect: !0 })
3005
+ ], x.prototype, "disabled", 2);
3006
+ k([
3007
+ a({ type: String, reflect: !0 })
3008
+ ], x.prototype, "width", 2);
3009
+ k([
3010
+ U()
3011
+ ], x.prototype, "open", 2);
3012
+ k([
3013
+ U()
3014
+ ], x.prototype, "activeIndex", 2);
3015
+ k([
3016
+ U()
3017
+ ], x.prototype, "menuWidth", 2);
3018
+ x = k([
3019
+ $("o-dropdown-variant")
3020
+ ], x);